evernode-js-client 0.6.14 → 0.6.16
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
|
|
1
|
+
(()=>{var __webpack_modules__={1758:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const i=r(2361);const a=n(r(4085));const o=n(r(1705));const s=a.default("agent-base");function isAgent(e){return Boolean(e)&&typeof e.addRequest==="function"}function isSecureEndpoint(){const{stack:e}=new Error;if(typeof e!=="string")return false;return e.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}function createAgent(e,t){return new createAgent.Agent(e,t)}(function(e){class Agent extends i.EventEmitter{constructor(e,t){super();let r=t;if(typeof e==="function"){this.callback=e}else if(e){r=e}this.timeout=null;if(r&&typeof r.timeout==="number"){this.timeout=r.timeout}this.maxFreeSockets=1;this.maxSockets=1;this.maxTotalSockets=Infinity;this.sockets={};this.freeSockets={};this.requests={};this.options={}}get defaultPort(){if(typeof this.explicitDefaultPort==="number"){return this.explicitDefaultPort}return isSecureEndpoint()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){if(typeof this.explicitProtocol==="string"){return this.explicitProtocol}return isSecureEndpoint()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,t,r){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){const r=Object.assign({},t);if(typeof r.secureEndpoint!=="boolean"){r.secureEndpoint=isSecureEndpoint()}if(r.host==null){r.host="localhost"}if(r.port==null){r.port=r.secureEndpoint?443:80}if(r.protocol==null){r.protocol=r.secureEndpoint?"https:":"http:"}if(r.host&&r.path){delete r.path}delete r.agent;delete r.hostname;delete r._defaultAgent;delete r.defaultPort;delete r.createConnection;e._last=true;e.shouldKeepAlive=false;let n=false;let i=null;const a=r.timeout||this.timeout;const onerror=t=>{if(e._hadError)return;e.emit("error",t);e._hadError=true};const ontimeout=()=>{i=null;n=true;const e=new Error(`A "socket" was not created for HTTP request before ${a}ms`);e.code="ETIMEOUT";onerror(e)};const callbackError=e=>{if(n)return;if(i!==null){clearTimeout(i);i=null}onerror(e)};const onsocket=t=>{if(n)return;if(i!=null){clearTimeout(i);i=null}if(isAgent(t)){s("Callback returned another Agent instance %o",t.constructor.name);t.addRequest(e,r);return}if(t){t.once("free",(()=>{this.freeSocket(t,r)}));e.onSocket(t);return}const a=new Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);onerror(a)};if(typeof this.callback!=="function"){onerror(new Error("`callback` is not defined"));return}if(!this.promisifiedCallback){if(this.callback.length>=3){s("Converting legacy callback function to promise");this.promisifiedCallback=o.default(this.callback)}else{this.promisifiedCallback=this.callback}}if(typeof a==="number"&&a>0){i=setTimeout(ontimeout,a)}if("port"in r&&typeof r.port!=="number"){r.port=Number(r.port)}try{s("Resolving socket for %o request: %o",r.protocol,`${e.method} ${e.path}`);Promise.resolve(this.promisifiedCallback(e,r)).then(onsocket,callbackError)}catch(e){Promise.reject(e).catch(callbackError)}}freeSocket(e,t){s("Freeing socket %o %o",e.constructor.name,t);e.destroy()}destroy(){s("Destroying agent %o",this.constructor.name)}}e.Agent=Agent;e.prototype=e.Agent.prototype})(createAgent||(createAgent={}));e.exports=createAgent},1705:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function promisify(e){return function(t,r){return new Promise(((n,i)=>{e.call(this,t,r,((e,t)=>{if(e){i(e)}else{n(t)}}))}))}}t["default"]=promisify},3358:(e,t,r)=>{"use strict";var n=r(6621).Buffer;function base(e){if(e.length>=255){throw new TypeError("Alphabet too long")}var t=new Uint8Array(256);for(var r=0;r<t.length;r++){t[r]=255}for(var i=0;i<e.length;i++){var a=e.charAt(i);var o=a.charCodeAt(0);if(t[o]!==255){throw new TypeError(a+" is ambiguous")}t[o]=i}var s=e.length;var u=e.charAt(0);var c=Math.log(s)/Math.log(256);var l=Math.log(256)/Math.log(s);function encode(t){if(Array.isArray(t)||t instanceof Uint8Array){t=n.from(t)}if(!n.isBuffer(t)){throw new TypeError("Expected Buffer")}if(t.length===0){return""}var r=0;var i=0;var a=0;var o=t.length;while(a!==o&&t[a]===0){a++;r++}var c=(o-a)*l+1>>>0;var d=new Uint8Array(c);while(a!==o){var h=t[a];var p=0;for(var m=c-1;(h!==0||p<i)&&m!==-1;m--,p++){h+=256*d[m]>>>0;d[m]=h%s>>>0;h=h/s>>>0}if(h!==0){throw new Error("Non-zero carry")}i=p;a++}var g=c-i;while(g!==c&&d[g]===0){g++}var v=u.repeat(r);for(;g<c;++g){v+=e.charAt(d[g])}return v}function decodeUnsafe(e){if(typeof e!=="string"){throw new TypeError("Expected String")}if(e.length===0){return n.alloc(0)}var r=0;var i=0;var a=0;while(e[r]===u){i++;r++}var o=(e.length-r)*c+1>>>0;var l=new Uint8Array(o);while(e[r]){var d=t[e.charCodeAt(r)];if(d===255){return}var h=0;for(var p=o-1;(d!==0||h<a)&&p!==-1;p--,h++){d+=s*l[p]>>>0;l[p]=d%256>>>0;d=d/256>>>0}if(d!==0){throw new Error("Non-zero carry")}a=h;r++}var m=o-a;while(m!==o&&l[m]===0){m++}var g=n.allocUnsafe(i+(o-m));g.fill(0,0,i);var v=i;while(m!==o){g[v++]=l[m++]}return g}function decode(e){var t=decodeUnsafe(e);if(t){return t}throw new Error("Non-base"+s+" character")}return{encode:encode,decodeUnsafe:decodeUnsafe,decode:decode}}e.exports=base},3325:(e,t)=>{"use strict";t.byteLength=byteLength;t.toByteArray=toByteArray;t.fromByteArray=fromByteArray;var r=[];var n=[];var i=typeof Uint8Array!=="undefined"?Uint8Array:Array;var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var o=0,s=a.length;o<s;++o){r[o]=a[o];n[a.charCodeAt(o)]=o}n["-".charCodeAt(0)]=62;n["_".charCodeAt(0)]=63;function getLens(e){var t=e.length;if(t%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}var r=e.indexOf("=");if(r===-1)r=t;var n=r===t?0:4-r%4;return[r,n]}function byteLength(e){var t=getLens(e);var r=t[0];var n=t[1];return(r+n)*3/4-n}function _byteLength(e,t,r){return(t+r)*3/4-r}function toByteArray(e){var t;var r=getLens(e);var a=r[0];var o=r[1];var s=new i(_byteLength(e,a,o));var u=0;var c=o>0?a-4:a;var l;for(l=0;l<c;l+=4){t=n[e.charCodeAt(l)]<<18|n[e.charCodeAt(l+1)]<<12|n[e.charCodeAt(l+2)]<<6|n[e.charCodeAt(l+3)];s[u++]=t>>16&255;s[u++]=t>>8&255;s[u++]=t&255}if(o===2){t=n[e.charCodeAt(l)]<<2|n[e.charCodeAt(l+1)]>>4;s[u++]=t&255}if(o===1){t=n[e.charCodeAt(l)]<<10|n[e.charCodeAt(l+1)]<<4|n[e.charCodeAt(l+2)]>>2;s[u++]=t>>8&255;s[u++]=t&255}return s}function tripletToBase64(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[e&63]}function encodeChunk(e,t,r){var n;var i=[];for(var a=t;a<r;a+=3){n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255);i.push(tripletToBase64(n))}return i.join("")}function fromByteArray(e){var t;var n=e.length;var i=n%3;var a=[];var o=16383;for(var s=0,u=n-i;s<u;s+=o){a.push(encodeChunk(e,s,s+o>u?u:s+o))}if(i===1){t=e[n-1];a.push(r[t>>2]+r[t<<4&63]+"==")}else if(i===2){t=(e[n-2]<<8)+e[n-1];a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")}return a.join("")}},4922:(e,t,r)=>{e=r.nmd(e);var n=function(e){"use strict";var t=1e7,r=7,i=9007199254740992,a=smallToArray(i),o="0123456789abcdefghijklmnopqrstuvwxyz";var s=typeof BigInt==="function";function Integer(e,t,r,n){if(typeof e==="undefined")return Integer[0];if(typeof t!=="undefined")return+t===10&&!r?parseValue(e):parseBase(e,t,r,n);return parseValue(e)}function BigInteger(e,t){this.value=e;this.sign=t;this.isSmall=false}BigInteger.prototype=Object.create(Integer.prototype);function SmallInteger(e){this.value=e;this.sign=e<0;this.isSmall=true}SmallInteger.prototype=Object.create(Integer.prototype);function NativeBigInt(e){this.value=e}NativeBigInt.prototype=Object.create(Integer.prototype);function isPrecise(e){return-i<e&&e<i}function smallToArray(e){if(e<1e7)return[e];if(e<1e14)return[e%1e7,Math.floor(e/1e7)];return[e%1e7,Math.floor(e/1e7)%1e7,Math.floor(e/1e14)]}function arrayToSmall(e){trim(e);var r=e.length;if(r<4&&compareAbs(e,a)<0){switch(r){case 0:return 0;case 1:return e[0];case 2:return e[0]+e[1]*t;default:return e[0]+(e[1]+e[2]*t)*t}}return e}function trim(e){var t=e.length;while(e[--t]===0);e.length=t+1}function createArray(e){var t=new Array(e);var r=-1;while(++r<e){t[r]=0}return t}function truncate(e){if(e>0)return Math.floor(e);return Math.ceil(e)}function add(e,r){var n=e.length,i=r.length,a=new Array(n),o=0,s=t,u,c;for(c=0;c<i;c++){u=e[c]+r[c]+o;o=u>=s?1:0;a[c]=u-o*s}while(c<n){u=e[c]+o;o=u===s?1:0;a[c++]=u-o*s}if(o>0)a.push(o);return a}function addAny(e,t){if(e.length>=t.length)return add(e,t);return add(t,e)}function addSmall(e,r){var n=e.length,i=new Array(n),a=t,o,s;for(s=0;s<n;s++){o=e[s]-a+r;r=Math.floor(o/a);i[s]=o-r*a;r+=1}while(r>0){i[s++]=r%a;r=Math.floor(r/a)}return i}BigInteger.prototype.add=function(e){var t=parseValue(e);if(this.sign!==t.sign){return this.subtract(t.negate())}var r=this.value,n=t.value;if(t.isSmall){return new BigInteger(addSmall(r,Math.abs(n)),this.sign)}return new BigInteger(addAny(r,n),this.sign)};BigInteger.prototype.plus=BigInteger.prototype.add;SmallInteger.prototype.add=function(e){var t=parseValue(e);var r=this.value;if(r<0!==t.sign){return this.subtract(t.negate())}var n=t.value;if(t.isSmall){if(isPrecise(r+n))return new SmallInteger(r+n);n=smallToArray(Math.abs(n))}return new BigInteger(addSmall(n,Math.abs(r)),r<0)};SmallInteger.prototype.plus=SmallInteger.prototype.add;NativeBigInt.prototype.add=function(e){return new NativeBigInt(this.value+parseValue(e).value)};NativeBigInt.prototype.plus=NativeBigInt.prototype.add;function subtract(e,r){var n=e.length,i=r.length,a=new Array(n),o=0,s=t,u,c;for(u=0;u<i;u++){c=e[u]-o-r[u];if(c<0){c+=s;o=1}else o=0;a[u]=c}for(u=i;u<n;u++){c=e[u]-o;if(c<0)c+=s;else{a[u++]=c;break}a[u]=c}for(;u<n;u++){a[u]=e[u]}trim(a);return a}function subtractAny(e,t,r){var n;if(compareAbs(e,t)>=0){n=subtract(e,t)}else{n=subtract(t,e);r=!r}n=arrayToSmall(n);if(typeof n==="number"){if(r)n=-n;return new SmallInteger(n)}return new BigInteger(n,r)}function subtractSmall(e,r,n){var i=e.length,a=new Array(i),o=-r,s=t,u,c;for(u=0;u<i;u++){c=e[u]+o;o=Math.floor(c/s);c%=s;a[u]=c<0?c+s:c}a=arrayToSmall(a);if(typeof a==="number"){if(n)a=-a;return new SmallInteger(a)}return new BigInteger(a,n)}BigInteger.prototype.subtract=function(e){var t=parseValue(e);if(this.sign!==t.sign){return this.add(t.negate())}var r=this.value,n=t.value;if(t.isSmall)return subtractSmall(r,Math.abs(n),this.sign);return subtractAny(r,n,this.sign)};BigInteger.prototype.minus=BigInteger.prototype.subtract;SmallInteger.prototype.subtract=function(e){var t=parseValue(e);var r=this.value;if(r<0!==t.sign){return this.add(t.negate())}var n=t.value;if(t.isSmall){return new SmallInteger(r-n)}return subtractSmall(n,Math.abs(r),r>=0)};SmallInteger.prototype.minus=SmallInteger.prototype.subtract;NativeBigInt.prototype.subtract=function(e){return new NativeBigInt(this.value-parseValue(e).value)};NativeBigInt.prototype.minus=NativeBigInt.prototype.subtract;BigInteger.prototype.negate=function(){return new BigInteger(this.value,!this.sign)};SmallInteger.prototype.negate=function(){var e=this.sign;var t=new SmallInteger(-this.value);t.sign=!e;return t};NativeBigInt.prototype.negate=function(){return new NativeBigInt(-this.value)};BigInteger.prototype.abs=function(){return new BigInteger(this.value,false)};SmallInteger.prototype.abs=function(){return new SmallInteger(Math.abs(this.value))};NativeBigInt.prototype.abs=function(){return new NativeBigInt(this.value>=0?this.value:-this.value)};function multiplyLong(e,r){var n=e.length,i=r.length,a=n+i,o=createArray(a),s=t,u,c,l,d,h;for(l=0;l<n;++l){d=e[l];for(var p=0;p<i;++p){h=r[p];u=d*h+o[l+p];c=Math.floor(u/s);o[l+p]=u-c*s;o[l+p+1]+=c}}trim(o);return o}function multiplySmall(e,r){var n=e.length,i=new Array(n),a=t,o=0,s,u;for(u=0;u<n;u++){s=e[u]*r+o;o=Math.floor(s/a);i[u]=s-o*a}while(o>0){i[u++]=o%a;o=Math.floor(o/a)}return i}function shiftLeft(e,t){var r=[];while(t-- >0)r.push(0);return r.concat(e)}function multiplyKaratsuba(e,t){var r=Math.max(e.length,t.length);if(r<=30)return multiplyLong(e,t);r=Math.ceil(r/2);var n=e.slice(r),i=e.slice(0,r),a=t.slice(r),o=t.slice(0,r);var s=multiplyKaratsuba(i,o),u=multiplyKaratsuba(n,a),c=multiplyKaratsuba(addAny(i,n),addAny(o,a));var l=addAny(addAny(s,shiftLeft(subtract(subtract(c,s),u),r)),shiftLeft(u,2*r));trim(l);return l}function useKaratsuba(e,t){return-.012*e-.012*t+15e-6*e*t>0}BigInteger.prototype.multiply=function(e){var r=parseValue(e),n=this.value,i=r.value,a=this.sign!==r.sign,o;if(r.isSmall){if(i===0)return Integer[0];if(i===1)return this;if(i===-1)return this.negate();o=Math.abs(i);if(o<t){return new BigInteger(multiplySmall(n,o),a)}i=smallToArray(o)}if(useKaratsuba(n.length,i.length))return new BigInteger(multiplyKaratsuba(n,i),a);return new BigInteger(multiplyLong(n,i),a)};BigInteger.prototype.times=BigInteger.prototype.multiply;function multiplySmallAndArray(e,r,n){if(e<t){return new BigInteger(multiplySmall(r,e),n)}return new BigInteger(multiplyLong(r,smallToArray(e)),n)}SmallInteger.prototype._multiplyBySmall=function(e){if(isPrecise(e.value*this.value)){return new SmallInteger(e.value*this.value)}return multiplySmallAndArray(Math.abs(e.value),smallToArray(Math.abs(this.value)),this.sign!==e.sign)};BigInteger.prototype._multiplyBySmall=function(e){if(e.value===0)return Integer[0];if(e.value===1)return this;if(e.value===-1)return this.negate();return multiplySmallAndArray(Math.abs(e.value),this.value,this.sign!==e.sign)};SmallInteger.prototype.multiply=function(e){return parseValue(e)._multiplyBySmall(this)};SmallInteger.prototype.times=SmallInteger.prototype.multiply;NativeBigInt.prototype.multiply=function(e){return new NativeBigInt(this.value*parseValue(e).value)};NativeBigInt.prototype.times=NativeBigInt.prototype.multiply;function square(e){var r=e.length,n=createArray(r+r),i=t,a,o,s,u,c;for(s=0;s<r;s++){u=e[s];o=0-u*u;for(var l=s;l<r;l++){c=e[l];a=2*(u*c)+n[s+l]+o;o=Math.floor(a/i);n[s+l]=a-o*i}n[s+r]=o}trim(n);return n}BigInteger.prototype.square=function(){return new BigInteger(square(this.value),false)};SmallInteger.prototype.square=function(){var e=this.value*this.value;if(isPrecise(e))return new SmallInteger(e);return new BigInteger(square(smallToArray(Math.abs(this.value))),false)};NativeBigInt.prototype.square=function(e){return new NativeBigInt(this.value*this.value)};function divMod1(e,r){var n=e.length,i=r.length,a=t,o=createArray(r.length),s=r[i-1],u=Math.ceil(a/(2*s)),c=multiplySmall(e,u),l=multiplySmall(r,u),d,h,p,m,g,v,b;if(c.length<=n)c.push(0);l.push(0);s=l[i-1];for(h=n-i;h>=0;h--){d=a-1;if(c[h+i]!==s){d=Math.floor((c[h+i]*a+c[h+i-1])/s)}p=0;m=0;v=l.length;for(g=0;g<v;g++){p+=d*l[g];b=Math.floor(p/a);m+=c[h+g]-(p-b*a);p=b;if(m<0){c[h+g]=m+a;m=-1}else{c[h+g]=m;m=0}}while(m!==0){d-=1;p=0;for(g=0;g<v;g++){p+=c[h+g]-a+l[g];if(p<0){c[h+g]=p+a;p=0}else{c[h+g]=p;p=1}}m+=p}o[h]=d}c=divModSmall(c,u)[0];return[arrayToSmall(o),arrayToSmall(c)]}function divMod2(e,r){var n=e.length,i=r.length,a=[],o=[],s=t,u,c,l,d,h;while(n){o.unshift(e[--n]);trim(o);if(compareAbs(o,r)<0){a.push(0);continue}c=o.length;l=o[c-1]*s+o[c-2];d=r[i-1]*s+r[i-2];if(c>i){l=(l+1)*s}u=Math.ceil(l/d);do{h=multiplySmall(r,u);if(compareAbs(h,o)<=0)break;u--}while(u);a.push(u);o=subtract(o,h)}a.reverse();return[arrayToSmall(a),arrayToSmall(o)]}function divModSmall(e,r){var n=e.length,i=createArray(n),a=t,o,s,u,c;u=0;for(o=n-1;o>=0;--o){c=u*a+e[o];s=truncate(c/r);u=c-s*r;i[o]=s|0}return[i,u|0]}function divModAny(e,r){var n,i=parseValue(r);if(s){return[new NativeBigInt(e.value/i.value),new NativeBigInt(e.value%i.value)]}var a=e.value,o=i.value;var u;if(o===0)throw new Error("Cannot divide by zero");if(e.isSmall){if(i.isSmall){return[new SmallInteger(truncate(a/o)),new SmallInteger(a%o)]}return[Integer[0],e]}if(i.isSmall){if(o===1)return[e,Integer[0]];if(o==-1)return[e.negate(),Integer[0]];var c=Math.abs(o);if(c<t){n=divModSmall(a,c);u=arrayToSmall(n[0]);var l=n[1];if(e.sign)l=-l;if(typeof u==="number"){if(e.sign!==i.sign)u=-u;return[new SmallInteger(u),new SmallInteger(l)]}return[new BigInteger(u,e.sign!==i.sign),new SmallInteger(l)]}o=smallToArray(c)}var d=compareAbs(a,o);if(d===-1)return[Integer[0],e];if(d===0)return[Integer[e.sign===i.sign?1:-1],Integer[0]];if(a.length+o.length<=200)n=divMod1(a,o);else n=divMod2(a,o);u=n[0];var h=e.sign!==i.sign,p=n[1],m=e.sign;if(typeof u==="number"){if(h)u=-u;u=new SmallInteger(u)}else u=new BigInteger(u,h);if(typeof p==="number"){if(m)p=-p;p=new SmallInteger(p)}else p=new BigInteger(p,m);return[u,p]}BigInteger.prototype.divmod=function(e){var t=divModAny(this,e);return{quotient:t[0],remainder:t[1]}};NativeBigInt.prototype.divmod=SmallInteger.prototype.divmod=BigInteger.prototype.divmod;BigInteger.prototype.divide=function(e){return divModAny(this,e)[0]};NativeBigInt.prototype.over=NativeBigInt.prototype.divide=function(e){return new NativeBigInt(this.value/parseValue(e).value)};SmallInteger.prototype.over=SmallInteger.prototype.divide=BigInteger.prototype.over=BigInteger.prototype.divide;BigInteger.prototype.mod=function(e){return divModAny(this,e)[1]};NativeBigInt.prototype.mod=NativeBigInt.prototype.remainder=function(e){return new NativeBigInt(this.value%parseValue(e).value)};SmallInteger.prototype.remainder=SmallInteger.prototype.mod=BigInteger.prototype.remainder=BigInteger.prototype.mod;BigInteger.prototype.pow=function(e){var t=parseValue(e),r=this.value,n=t.value,i,a,o;if(n===0)return Integer[1];if(r===0)return Integer[0];if(r===1)return Integer[1];if(r===-1)return t.isEven()?Integer[1]:Integer[-1];if(t.sign){return Integer[0]}if(!t.isSmall)throw new Error("The exponent "+t.toString()+" is too large.");if(this.isSmall){if(isPrecise(i=Math.pow(r,n)))return new SmallInteger(truncate(i))}a=this;o=Integer[1];while(true){if(n&1===1){o=o.times(a);--n}if(n===0)break;n/=2;a=a.square()}return o};SmallInteger.prototype.pow=BigInteger.prototype.pow;NativeBigInt.prototype.pow=function(e){var t=parseValue(e);var r=this.value,n=t.value;var i=BigInt(0),a=BigInt(1),o=BigInt(2);if(n===i)return Integer[1];if(r===i)return Integer[0];if(r===a)return Integer[1];if(r===BigInt(-1))return t.isEven()?Integer[1]:Integer[-1];if(t.isNegative())return new NativeBigInt(i);var s=this;var u=Integer[1];while(true){if((n&a)===a){u=u.times(s);--n}if(n===i)break;n/=o;s=s.square()}return u};BigInteger.prototype.modPow=function(e,t){e=parseValue(e);t=parseValue(t);if(t.isZero())throw new Error("Cannot take modPow with modulus 0");var r=Integer[1],n=this.mod(t);if(e.isNegative()){e=e.multiply(Integer[-1]);n=n.modInv(t)}while(e.isPositive()){if(n.isZero())return Integer[0];if(e.isOdd())r=r.multiply(n).mod(t);e=e.divide(2);n=n.square().mod(t)}return r};NativeBigInt.prototype.modPow=SmallInteger.prototype.modPow=BigInteger.prototype.modPow;function compareAbs(e,t){if(e.length!==t.length){return e.length>t.length?1:-1}for(var r=e.length-1;r>=0;r--){if(e[r]!==t[r])return e[r]>t[r]?1:-1}return 0}BigInteger.prototype.compareAbs=function(e){var t=parseValue(e),r=this.value,n=t.value;if(t.isSmall)return 1;return compareAbs(r,n)};SmallInteger.prototype.compareAbs=function(e){var t=parseValue(e),r=Math.abs(this.value),n=t.value;if(t.isSmall){n=Math.abs(n);return r===n?0:r>n?1:-1}return-1};NativeBigInt.prototype.compareAbs=function(e){var t=this.value;var r=parseValue(e).value;t=t>=0?t:-t;r=r>=0?r:-r;return t===r?0:t>r?1:-1};BigInteger.prototype.compare=function(e){if(e===Infinity){return-1}if(e===-Infinity){return 1}var t=parseValue(e),r=this.value,n=t.value;if(this.sign!==t.sign){return t.sign?1:-1}if(t.isSmall){return this.sign?-1:1}return compareAbs(r,n)*(this.sign?-1:1)};BigInteger.prototype.compareTo=BigInteger.prototype.compare;SmallInteger.prototype.compare=function(e){if(e===Infinity){return-1}if(e===-Infinity){return 1}var t=parseValue(e),r=this.value,n=t.value;if(t.isSmall){return r==n?0:r>n?1:-1}if(r<0!==t.sign){return r<0?-1:1}return r<0?1:-1};SmallInteger.prototype.compareTo=SmallInteger.prototype.compare;NativeBigInt.prototype.compare=function(e){if(e===Infinity){return-1}if(e===-Infinity){return 1}var t=this.value;var r=parseValue(e).value;return t===r?0:t>r?1:-1};NativeBigInt.prototype.compareTo=NativeBigInt.prototype.compare;BigInteger.prototype.equals=function(e){return this.compare(e)===0};NativeBigInt.prototype.eq=NativeBigInt.prototype.equals=SmallInteger.prototype.eq=SmallInteger.prototype.equals=BigInteger.prototype.eq=BigInteger.prototype.equals;BigInteger.prototype.notEquals=function(e){return this.compare(e)!==0};NativeBigInt.prototype.neq=NativeBigInt.prototype.notEquals=SmallInteger.prototype.neq=SmallInteger.prototype.notEquals=BigInteger.prototype.neq=BigInteger.prototype.notEquals;BigInteger.prototype.greater=function(e){return this.compare(e)>0};NativeBigInt.prototype.gt=NativeBigInt.prototype.greater=SmallInteger.prototype.gt=SmallInteger.prototype.greater=BigInteger.prototype.gt=BigInteger.prototype.greater;BigInteger.prototype.lesser=function(e){return this.compare(e)<0};NativeBigInt.prototype.lt=NativeBigInt.prototype.lesser=SmallInteger.prototype.lt=SmallInteger.prototype.lesser=BigInteger.prototype.lt=BigInteger.prototype.lesser;BigInteger.prototype.greaterOrEquals=function(e){return this.compare(e)>=0};NativeBigInt.prototype.geq=NativeBigInt.prototype.greaterOrEquals=SmallInteger.prototype.geq=SmallInteger.prototype.greaterOrEquals=BigInteger.prototype.geq=BigInteger.prototype.greaterOrEquals;BigInteger.prototype.lesserOrEquals=function(e){return this.compare(e)<=0};NativeBigInt.prototype.leq=NativeBigInt.prototype.lesserOrEquals=SmallInteger.prototype.leq=SmallInteger.prototype.lesserOrEquals=BigInteger.prototype.leq=BigInteger.prototype.lesserOrEquals;BigInteger.prototype.isEven=function(){return(this.value[0]&1)===0};SmallInteger.prototype.isEven=function(){return(this.value&1)===0};NativeBigInt.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)};BigInteger.prototype.isOdd=function(){return(this.value[0]&1)===1};SmallInteger.prototype.isOdd=function(){return(this.value&1)===1};NativeBigInt.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)};BigInteger.prototype.isPositive=function(){return!this.sign};SmallInteger.prototype.isPositive=function(){return this.value>0};NativeBigInt.prototype.isPositive=SmallInteger.prototype.isPositive;BigInteger.prototype.isNegative=function(){return this.sign};SmallInteger.prototype.isNegative=function(){return this.value<0};NativeBigInt.prototype.isNegative=SmallInteger.prototype.isNegative;BigInteger.prototype.isUnit=function(){return false};SmallInteger.prototype.isUnit=function(){return Math.abs(this.value)===1};NativeBigInt.prototype.isUnit=function(){return this.abs().value===BigInt(1)};BigInteger.prototype.isZero=function(){return false};SmallInteger.prototype.isZero=function(){return this.value===0};NativeBigInt.prototype.isZero=function(){return this.value===BigInt(0)};BigInteger.prototype.isDivisibleBy=function(e){var t=parseValue(e);if(t.isZero())return false;if(t.isUnit())return true;if(t.compareAbs(2)===0)return this.isEven();return this.mod(t).isZero()};NativeBigInt.prototype.isDivisibleBy=SmallInteger.prototype.isDivisibleBy=BigInteger.prototype.isDivisibleBy;function isBasicPrime(e){var t=e.abs();if(t.isUnit())return false;if(t.equals(2)||t.equals(3)||t.equals(5))return true;if(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))return false;if(t.lesser(49))return true}function millerRabinTest(e,t){var r=e.prev(),i=r,a=0,o,s,u,c;while(i.isEven())i=i.divide(2),a++;e:for(u=0;u<t.length;u++){if(e.lesser(t[u]))continue;c=n(t[u]).modPow(i,e);if(c.isUnit()||c.equals(r))continue;for(o=a-1;o!=0;o--){c=c.square().mod(e);if(c.isUnit())return false;if(c.equals(r))continue e}return false}return true}BigInteger.prototype.isPrime=function(t){var r=isBasicPrime(this);if(r!==e)return r;var i=this.abs();var a=i.bitLength();if(a<=64)return millerRabinTest(i,[2,3,5,7,11,13,17,19,23,29,31,37]);var o=Math.log(2)*a.toJSNumber();var s=Math.ceil(t===true?2*Math.pow(o,2):o);for(var u=[],c=0;c<s;c++){u.push(n(c+2))}return millerRabinTest(i,u)};NativeBigInt.prototype.isPrime=SmallInteger.prototype.isPrime=BigInteger.prototype.isPrime;BigInteger.prototype.isProbablePrime=function(t,r){var i=isBasicPrime(this);if(i!==e)return i;var a=this.abs();var o=t===e?5:t;for(var s=[],u=0;u<o;u++){s.push(n.randBetween(2,a.minus(2),r))}return millerRabinTest(a,s)};NativeBigInt.prototype.isProbablePrime=SmallInteger.prototype.isProbablePrime=BigInteger.prototype.isProbablePrime;BigInteger.prototype.modInv=function(e){var t=n.zero,r=n.one,i=parseValue(e),a=this.abs(),o,s,u;while(!a.isZero()){o=i.divide(a);s=t;u=i;t=r;i=a;r=s.subtract(o.multiply(r));a=u.subtract(o.multiply(a))}if(!i.isUnit())throw new Error(this.toString()+" and "+e.toString()+" are not co-prime");if(t.compare(0)===-1){t=t.add(e)}if(this.isNegative()){return t.negate()}return t};NativeBigInt.prototype.modInv=SmallInteger.prototype.modInv=BigInteger.prototype.modInv;BigInteger.prototype.next=function(){var e=this.value;if(this.sign){return subtractSmall(e,1,this.sign)}return new BigInteger(addSmall(e,1),this.sign)};SmallInteger.prototype.next=function(){var e=this.value;if(e+1<i)return new SmallInteger(e+1);return new BigInteger(a,false)};NativeBigInt.prototype.next=function(){return new NativeBigInt(this.value+BigInt(1))};BigInteger.prototype.prev=function(){var e=this.value;if(this.sign){return new BigInteger(addSmall(e,1),true)}return subtractSmall(e,1,this.sign)};SmallInteger.prototype.prev=function(){var e=this.value;if(e-1>-i)return new SmallInteger(e-1);return new BigInteger(a,true)};NativeBigInt.prototype.prev=function(){return new NativeBigInt(this.value-BigInt(1))};var u=[1];while(2*u[u.length-1]<=t)u.push(2*u[u.length-1]);var c=u.length,l=u[c-1];function shift_isSmall(e){return Math.abs(e)<=t}BigInteger.prototype.shiftLeft=function(e){var t=parseValue(e).toJSNumber();if(!shift_isSmall(t)){throw new Error(String(t)+" is too large for shifting.")}if(t<0)return this.shiftRight(-t);var r=this;if(r.isZero())return r;while(t>=c){r=r.multiply(l);t-=c-1}return r.multiply(u[t])};NativeBigInt.prototype.shiftLeft=SmallInteger.prototype.shiftLeft=BigInteger.prototype.shiftLeft;BigInteger.prototype.shiftRight=function(e){var t;var r=parseValue(e).toJSNumber();if(!shift_isSmall(r)){throw new Error(String(r)+" is too large for shifting.")}if(r<0)return this.shiftLeft(-r);var n=this;while(r>=c){if(n.isZero()||n.isNegative()&&n.isUnit())return n;t=divModAny(n,l);n=t[1].isNegative()?t[0].prev():t[0];r-=c-1}t=divModAny(n,u[r]);return t[1].isNegative()?t[0].prev():t[0]};NativeBigInt.prototype.shiftRight=SmallInteger.prototype.shiftRight=BigInteger.prototype.shiftRight;function bitwise(e,t,r){t=parseValue(t);var i=e.isNegative(),a=t.isNegative();var o=i?e.not():e,s=a?t.not():t;var u=0,c=0;var d=null,h=null;var p=[];while(!o.isZero()||!s.isZero()){d=divModAny(o,l);u=d[1].toJSNumber();if(i){u=l-1-u}h=divModAny(s,l);c=h[1].toJSNumber();if(a){c=l-1-c}o=d[0];s=h[0];p.push(r(u,c))}var m=r(i?1:0,a?1:0)!==0?n(-1):n(0);for(var g=p.length-1;g>=0;g-=1){m=m.multiply(l).add(n(p[g]))}return m}BigInteger.prototype.not=function(){return this.negate().prev()};NativeBigInt.prototype.not=SmallInteger.prototype.not=BigInteger.prototype.not;BigInteger.prototype.and=function(e){return bitwise(this,e,(function(e,t){return e&t}))};NativeBigInt.prototype.and=SmallInteger.prototype.and=BigInteger.prototype.and;BigInteger.prototype.or=function(e){return bitwise(this,e,(function(e,t){return e|t}))};NativeBigInt.prototype.or=SmallInteger.prototype.or=BigInteger.prototype.or;BigInteger.prototype.xor=function(e){return bitwise(this,e,(function(e,t){return e^t}))};NativeBigInt.prototype.xor=SmallInteger.prototype.xor=BigInteger.prototype.xor;var d=1<<30,h=(t&-t)*(t&-t)|d;function roughLOB(e){var r=e.value,n=typeof r==="number"?r|d:typeof r==="bigint"?r|BigInt(d):r[0]+r[1]*t|h;return n&-n}function integerLogarithm(e,t){if(t.compareTo(e)<=0){var r=integerLogarithm(e,t.square(t));var i=r.p;var a=r.e;var o=i.multiply(t);return o.compareTo(e)<=0?{p:o,e:a*2+1}:{p:i,e:a*2}}return{p:n(1),e:0}}BigInteger.prototype.bitLength=function(){var e=this;if(e.compareTo(n(0))<0){e=e.negate().subtract(n(1))}if(e.compareTo(n(0))===0){return n(0)}return n(integerLogarithm(e,n(2)).e).add(n(1))};NativeBigInt.prototype.bitLength=SmallInteger.prototype.bitLength=BigInteger.prototype.bitLength;function max(e,t){e=parseValue(e);t=parseValue(t);return e.greater(t)?e:t}function min(e,t){e=parseValue(e);t=parseValue(t);return e.lesser(t)?e:t}function gcd(e,t){e=parseValue(e).abs();t=parseValue(t).abs();if(e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;var r=Integer[1],n,i;while(e.isEven()&&t.isEven()){n=min(roughLOB(e),roughLOB(t));e=e.divide(n);t=t.divide(n);r=r.multiply(n)}while(e.isEven()){e=e.divide(roughLOB(e))}do{while(t.isEven()){t=t.divide(roughLOB(t))}if(e.greater(t)){i=t;t=e;e=i}t=t.subtract(e)}while(!t.isZero());return r.isUnit()?e:e.multiply(r)}function lcm(e,t){e=parseValue(e).abs();t=parseValue(t).abs();return e.divide(gcd(e,t)).multiply(t)}function randBetween(e,r,n){e=parseValue(e);r=parseValue(r);var i=n||Math.random;var a=min(e,r),o=max(e,r);var s=o.subtract(a).add(1);if(s.isSmall)return a.add(Math.floor(i()*s));var u=toBase(s,t).value;var c=[],l=true;for(var d=0;d<u.length;d++){var h=l?u[d]+(d+1<u.length?u[d+1]/t:0):t;var p=truncate(i()*h);c.push(p);if(p<u[d])l=false}return a.add(Integer.fromArray(c,t,false))}var parseBase=function(e,t,r,n){r=r||o;e=String(e);if(!n){e=e.toLowerCase();r=r.toLowerCase()}var i=e.length;var a;var s=Math.abs(t);var u={};for(a=0;a<r.length;a++){u[r[a]]=a}for(a=0;a<i;a++){var c=e[a];if(c==="-")continue;if(c in u){if(u[c]>=s){if(c==="1"&&s===1)continue;throw new Error(c+" is not a valid digit in base "+t+".")}}}t=parseValue(t);var l=[];var d=e[0]==="-";for(a=d?1:0;a<e.length;a++){var c=e[a];if(c in u)l.push(parseValue(u[c]));else if(c==="<"){var h=a;do{a++}while(e[a]!==">"&&a<e.length);l.push(parseValue(e.slice(h+1,a)))}else throw new Error(c+" is not a valid character")}return parseBaseFromArray(l,t,d)};function parseBaseFromArray(e,t,r){var n=Integer[0],i=Integer[1],a;for(a=e.length-1;a>=0;a--){n=n.add(e[a].times(i));i=i.times(t)}return r?n.negate():n}function stringify(e,t){t=t||o;if(e<t.length){return t[e]}return"<"+e+">"}function toBase(e,t){t=n(t);if(t.isZero()){if(e.isZero())return{value:[0],isNegative:false};throw new Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:false};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:false};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);r.unshift([1]);return{value:[].concat.apply([],r),isNegative:false}}var i=false;if(e.isNegative()&&t.isPositive()){i=true;e=e.abs()}if(t.isUnit()){if(e.isZero())return{value:[0],isNegative:false};return{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i}}var a=[];var o=e,s;while(o.isNegative()||o.compareAbs(t)>=0){s=o.divmod(t);o=s.quotient;var u=s.remainder;if(u.isNegative()){u=t.minus(u).abs();o=o.next()}a.push(u.toJSNumber())}a.push(o.toJSNumber());return{value:a.reverse(),isNegative:i}}function toBaseString(e,t,r){var n=toBase(e,t);return(n.isNegative?"-":"")+n.value.map((function(e){return stringify(e,r)})).join("")}BigInteger.prototype.toArray=function(e){return toBase(this,e)};SmallInteger.prototype.toArray=function(e){return toBase(this,e)};NativeBigInt.prototype.toArray=function(e){return toBase(this,e)};BigInteger.prototype.toString=function(t,r){if(t===e)t=10;if(t!==10)return toBaseString(this,t,r);var n=this.value,i=n.length,a=String(n[--i]),o="0000000",s;while(--i>=0){s=String(n[i]);a+=o.slice(s.length)+s}var u=this.sign?"-":"";return u+a};SmallInteger.prototype.toString=function(t,r){if(t===e)t=10;if(t!=10)return toBaseString(this,t,r);return String(this.value)};NativeBigInt.prototype.toString=SmallInteger.prototype.toString;NativeBigInt.prototype.toJSON=BigInteger.prototype.toJSON=SmallInteger.prototype.toJSON=function(){return this.toString()};BigInteger.prototype.valueOf=function(){return parseInt(this.toString(),10)};BigInteger.prototype.toJSNumber=BigInteger.prototype.valueOf;SmallInteger.prototype.valueOf=function(){return this.value};SmallInteger.prototype.toJSNumber=SmallInteger.prototype.valueOf;NativeBigInt.prototype.valueOf=NativeBigInt.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function parseStringValue(e){if(isPrecise(+e)){var t=+e;if(t===truncate(t))return s?new NativeBigInt(BigInt(t)):new SmallInteger(t);throw new Error("Invalid integer: "+e)}var n=e[0]==="-";if(n)e=e.slice(1);var i=e.split(/e/i);if(i.length>2)throw new Error("Invalid integer: "+i.join("e"));if(i.length===2){var a=i[1];if(a[0]==="+")a=a.slice(1);a=+a;if(a!==truncate(a)||!isPrecise(a))throw new Error("Invalid integer: "+a+" is not a valid exponent.");var o=i[0];var u=o.indexOf(".");if(u>=0){a-=o.length-u-1;o=o.slice(0,u)+o.slice(u+1)}if(a<0)throw new Error("Cannot include negative exponent part for integers");o+=new Array(a+1).join("0");e=o}var c=/^([0-9][0-9]*)$/.test(e);if(!c)throw new Error("Invalid integer: "+e);if(s){return new NativeBigInt(BigInt(n?"-"+e:e))}var l=[],d=e.length,h=r,p=d-h;while(d>0){l.push(+e.slice(p,d));p-=h;if(p<0)p=0;d-=h}trim(l);return new BigInteger(l,n)}function parseNumberValue(e){if(s){return new NativeBigInt(BigInt(e))}if(isPrecise(e)){if(e!==truncate(e))throw new Error(e+" is not an integer.");return new SmallInteger(e)}return parseStringValue(e.toString())}function parseValue(e){if(typeof e==="number"){return parseNumberValue(e)}if(typeof e==="string"){return parseStringValue(e)}if(typeof e==="bigint"){return new NativeBigInt(e)}return e}for(var p=0;p<1e3;p++){Integer[p]=parseValue(p);if(p>0)Integer[-p]=parseValue(-p)}Integer.one=Integer[1];Integer.zero=Integer[0];Integer.minusOne=Integer[-1];Integer.max=max;Integer.min=min;Integer.gcd=gcd;Integer.lcm=lcm;Integer.isInstance=function(e){return e instanceof BigInteger||e instanceof SmallInteger||e instanceof NativeBigInt};Integer.randBetween=randBetween;Integer.fromArray=function(e,t,r){return parseBaseFromArray(e.map(parseValue),parseValue(t||10),r)};return Integer}();if(true&&e.hasOwnProperty("exports")){e.exports=n}if(typeof define==="function"&&define.amd){define((function(){return n}))}},1806:function(e){(function(t){"use strict";var r,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,a=Math.floor,o="[BigNumber Error] ",s=o+"Number primitive has more than 15 significant digits: ",u=1e14,c=14,l=9007199254740991,d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],h=1e7,p=1e9;function clone(e){var t,r,m,g=BigNumber.prototype={constructor:BigNumber,toString:null,valueOf:null},v=new BigNumber(1),b=20,y=4,w=-7,_=21,k=-1e7,A=1e7,E=false,I=1,T=0,B={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},M="0123456789abcdefghijklmnopqrstuvwxyz",N=true;function BigNumber(e,t){var i,o,u,d,h,p,g,v,w=this;if(!(w instanceof BigNumber))return new BigNumber(e,t);if(t==null){if(e&&e._isBigNumber===true){w.s=e.s;if(!e.c||e.e>A){w.c=w.e=null}else if(e.e<k){w.c=[w.e=0]}else{w.e=e.e;w.c=e.c.slice()}return}if((p=typeof e=="number")&&e*0==0){w.s=1/e<0?(e=-e,-1):1;if(e===~~e){for(d=0,h=e;h>=10;h/=10,d++);if(d>A){w.c=w.e=null}else{w.e=d;w.c=[e]}return}v=String(e)}else{if(!n.test(v=String(e)))return m(w,v,p);w.s=v.charCodeAt(0)==45?(v=v.slice(1),-1):1}if((d=v.indexOf("."))>-1)v=v.replace(".","");if((h=v.search(/e/i))>0){if(d<0)d=h;d+=+v.slice(h+1);v=v.substring(0,h)}else if(d<0){d=v.length}}else{intCheck(t,2,M.length,"Base");if(t==10&&N){w=new BigNumber(e);return round(w,b+w.e+1,y)}v=String(e);if(p=typeof e=="number"){if(e*0!=0)return m(w,v,p,t);w.s=1/e<0?(v=v.slice(1),-1):1;if(BigNumber.DEBUG&&v.replace(/^0\.0*|\./,"").length>15){throw Error(s+e)}}else{w.s=v.charCodeAt(0)===45?(v=v.slice(1),-1):1}i=M.slice(0,t);d=h=0;for(g=v.length;h<g;h++){if(i.indexOf(o=v.charAt(h))<0){if(o=="."){if(h>d){d=g;continue}}else if(!u){if(v==v.toUpperCase()&&(v=v.toLowerCase())||v==v.toLowerCase()&&(v=v.toUpperCase())){u=true;h=-1;d=0;continue}}return m(w,String(e),p,t)}}p=false;v=r(v,t,10,w.s);if((d=v.indexOf("."))>-1)v=v.replace(".","");else d=v.length}for(h=0;v.charCodeAt(h)===48;h++);for(g=v.length;v.charCodeAt(--g)===48;);if(v=v.slice(h,++g)){g-=h;if(p&&BigNumber.DEBUG&&g>15&&(e>l||e!==a(e))){throw Error(s+w.s*e)}if((d=d-h-1)>A){w.c=w.e=null}else if(d<k){w.c=[w.e=0]}else{w.e=d;w.c=[];h=(d+1)%c;if(d<0)h+=c;if(h<g){if(h)w.c.push(+v.slice(0,h));for(g-=c;h<g;){w.c.push(+v.slice(h,h+=c))}h=c-(v=v.slice(h)).length}else{h-=g}for(;h--;v+="0");w.c.push(+v)}}else{w.c=[w.e=0]}}BigNumber.clone=clone;BigNumber.ROUND_UP=0;BigNumber.ROUND_DOWN=1;BigNumber.ROUND_CEIL=2;BigNumber.ROUND_FLOOR=3;BigNumber.ROUND_HALF_UP=4;BigNumber.ROUND_HALF_DOWN=5;BigNumber.ROUND_HALF_EVEN=6;BigNumber.ROUND_HALF_CEIL=7;BigNumber.ROUND_HALF_FLOOR=8;BigNumber.EUCLID=9;BigNumber.config=BigNumber.set=function(e){var t,r;if(e!=null){if(typeof e=="object"){if(e.hasOwnProperty(t="DECIMAL_PLACES")){r=e[t];intCheck(r,0,p,t);b=r}if(e.hasOwnProperty(t="ROUNDING_MODE")){r=e[t];intCheck(r,0,8,t);y=r}if(e.hasOwnProperty(t="EXPONENTIAL_AT")){r=e[t];if(r&&r.pop){intCheck(r[0],-p,0,t);intCheck(r[1],0,p,t);w=r[0];_=r[1]}else{intCheck(r,-p,p,t);w=-(_=r<0?-r:r)}}if(e.hasOwnProperty(t="RANGE")){r=e[t];if(r&&r.pop){intCheck(r[0],-p,-1,t);intCheck(r[1],1,p,t);k=r[0];A=r[1]}else{intCheck(r,-p,p,t);if(r){k=-(A=r<0?-r:r)}else{throw Error(o+t+" cannot be zero: "+r)}}}if(e.hasOwnProperty(t="CRYPTO")){r=e[t];if(r===!!r){if(r){if(typeof crypto!="undefined"&&crypto&&(crypto.getRandomValues||crypto.randomBytes)){E=r}else{E=!r;throw Error(o+"crypto unavailable")}}else{E=r}}else{throw Error(o+t+" not true or false: "+r)}}if(e.hasOwnProperty(t="MODULO_MODE")){r=e[t];intCheck(r,0,9,t);I=r}if(e.hasOwnProperty(t="POW_PRECISION")){r=e[t];intCheck(r,0,p,t);T=r}if(e.hasOwnProperty(t="FORMAT")){r=e[t];if(typeof r=="object")B=r;else throw Error(o+t+" not an object: "+r)}if(e.hasOwnProperty(t="ALPHABET")){r=e[t];if(typeof r=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(r)){N=r.slice(0,10)=="0123456789";M=r}else{throw Error(o+t+" invalid: "+r)}}}else{throw Error(o+"Object expected: "+e)}}return{DECIMAL_PLACES:b,ROUNDING_MODE:y,EXPONENTIAL_AT:[w,_],RANGE:[k,A],CRYPTO:E,MODULO_MODE:I,POW_PRECISION:T,FORMAT:B,ALPHABET:M}};BigNumber.isBigNumber=function(e){if(!e||e._isBigNumber!==true)return false;if(!BigNumber.DEBUG)return true;var t,r,n=e.c,i=e.e,s=e.s;e:if({}.toString.call(n)=="[object Array]"){if((s===1||s===-1)&&i>=-p&&i<=p&&i===a(i)){if(n[0]===0){if(i===0&&n.length===1)return true;break e}t=(i+1)%c;if(t<1)t+=c;if(String(n[0]).length==t){for(t=0;t<n.length;t++){r=n[t];if(r<0||r>=u||r!==a(r))break e}if(r!==0)return true}}}else if(n===null&&i===null&&(s===null||s===1||s===-1)){return true}throw Error(o+"Invalid BigNumber: "+e)};BigNumber.maximum=BigNumber.max=function(){return maxOrMin(arguments,g.lt)};BigNumber.minimum=BigNumber.min=function(){return maxOrMin(arguments,g.gt)};BigNumber.random=function(){var e=9007199254740992;var t=Math.random()*e&2097151?function(){return a(Math.random()*e)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(e){var r,n,s,u,l,h=0,m=[],g=new BigNumber(v);if(e==null)e=b;else intCheck(e,0,p);u=i(e/c);if(E){if(crypto.getRandomValues){r=crypto.getRandomValues(new Uint32Array(u*=2));for(;h<u;){l=r[h]*131072+(r[h+1]>>>11);if(l>=9e15){n=crypto.getRandomValues(new Uint32Array(2));r[h]=n[0];r[h+1]=n[1]}else{m.push(l%1e14);h+=2}}h=u/2}else if(crypto.randomBytes){r=crypto.randomBytes(u*=7);for(;h<u;){l=(r[h]&31)*281474976710656+r[h+1]*1099511627776+r[h+2]*4294967296+r[h+3]*16777216+(r[h+4]<<16)+(r[h+5]<<8)+r[h+6];if(l>=9e15){crypto.randomBytes(7).copy(r,h)}else{m.push(l%1e14);h+=7}}h=u/7}else{E=false;throw Error(o+"crypto unavailable")}}if(!E){for(;h<u;){l=t();if(l<9e15)m[h++]=l%1e14}}u=m[--h];e%=c;if(u&&e){l=d[c-e];m[h]=a(u/l)*l}for(;m[h]===0;m.pop(),h--);if(h<0){m=[s=0]}else{for(s=-1;m[0]===0;m.splice(0,1),s-=c);for(h=1,l=m[0];l>=10;l/=10,h++);if(h<c)s-=c-h}g.e=s;g.c=m;return g}}();BigNumber.sum=function(){var e=1,t=arguments,r=new BigNumber(t[0]);for(;e<t.length;)r=r.plus(t[e++]);return r};r=function(){var e="0123456789";function toBaseOut(e,t,r,n){var i,a=[0],o,s=0,u=e.length;for(;s<u;){for(o=a.length;o--;a[o]*=t);a[0]+=n.indexOf(e.charAt(s++));for(i=0;i<a.length;i++){if(a[i]>r-1){if(a[i+1]==null)a[i+1]=0;a[i+1]+=a[i]/r|0;a[i]%=r}}}return a.reverse()}return function(r,n,i,a,o){var s,u,c,l,d,h,p,m,g=r.indexOf("."),v=b,w=y;if(g>=0){l=T;T=0;r=r.replace(".","");m=new BigNumber(n);h=m.pow(r.length-g);T=l;m.c=toBaseOut(toFixedPoint(coeffToString(h.c),h.e,"0"),10,i,e);m.e=m.c.length}p=toBaseOut(r,n,i,o?(s=M,e):(s=e,M));c=l=p.length;for(;p[--l]==0;p.pop());if(!p[0])return s.charAt(0);if(g<0){--c}else{h.c=p;h.e=c;h.s=a;h=t(h,m,v,w,i);p=h.c;d=h.r;c=h.e}u=c+v+1;g=p[u];l=i/2;d=d||u<0||p[u+1]!=null;d=w<4?(g!=null||d)&&(w==0||w==(h.s<0?3:2)):g>l||g==l&&(w==4||d||w==6&&p[u-1]&1||w==(h.s<0?8:7));if(u<1||!p[0]){r=d?toFixedPoint(s.charAt(1),-v,s.charAt(0)):s.charAt(0)}else{p.length=u;if(d){for(--i;++p[--u]>i;){p[u]=0;if(!u){++c;p=[1].concat(p)}}}for(l=p.length;!p[--l];);for(g=0,r="";g<=l;r+=s.charAt(p[g++]));r=toFixedPoint(r,c,s.charAt(0))}return r}}();t=function(){function multiply(e,t,r){var n,i,a,o,s=0,u=e.length,c=t%h,l=t/h|0;for(e=e.slice();u--;){a=e[u]%h;o=e[u]/h|0;n=l*a+o*c;i=c*a+n%h*h+s;s=(i/r|0)+(n/h|0)+l*o;e[u]=i%r}if(s)e=[s].concat(e);return e}function compare(e,t,r,n){var i,a;if(r!=n){a=r>n?1:-1}else{for(i=a=0;i<r;i++){if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}}}return a}function subtract(e,t,r,n){var i=0;for(;r--;){e[r]-=i;i=e[r]<t[r]?1:0;e[r]=i*n+e[r]-t[r]}for(;!e[0]&&e.length>1;e.splice(0,1));}return function(e,t,r,n,i){var o,s,l,d,h,p,m,g,v,b,y,w,_,k,A,E,I,T=e.s==t.s?1:-1,B=e.c,M=t.c;if(!B||!B[0]||!M||!M[0]){return new BigNumber(!e.s||!t.s||(B?M&&B[0]==M[0]:!M)?NaN:B&&B[0]==0||!M?T*0:T/0)}g=new BigNumber(T);v=g.c=[];s=e.e-t.e;T=r+s+1;if(!i){i=u;s=bitFloor(e.e/c)-bitFloor(t.e/c);T=T/c|0}for(l=0;M[l]==(B[l]||0);l++);if(M[l]>(B[l]||0))s--;if(T<0){v.push(1);d=true}else{k=B.length;E=M.length;l=0;T+=2;h=a(i/(M[0]+1));if(h>1){M=multiply(M,h,i);B=multiply(B,h,i);E=M.length;k=B.length}_=E;b=B.slice(0,E);y=b.length;for(;y<E;b[y++]=0);I=M.slice();I=[0].concat(I);A=M[0];if(M[1]>=i/2)A++;do{h=0;o=compare(M,b,E,y);if(o<0){w=b[0];if(E!=y)w=w*i+(b[1]||0);h=a(w/A);if(h>1){if(h>=i)h=i-1;p=multiply(M,h,i);m=p.length;y=b.length;while(compare(p,b,m,y)==1){h--;subtract(p,E<m?I:M,m,i);m=p.length;o=1}}else{if(h==0){o=h=1}p=M.slice();m=p.length}if(m<y)p=[0].concat(p);subtract(b,p,y,i);y=b.length;if(o==-1){while(compare(M,b,E,y)<1){h++;subtract(b,E<y?I:M,y,i);y=b.length}}}else if(o===0){h++;b=[0]}v[l++]=h;if(b[0]){b[y++]=B[_]||0}else{b=[B[_]];y=1}}while((_++<k||b[0]!=null)&&T--);d=b[0]!=null;if(!v[0])v.splice(0,1)}if(i==u){for(l=1,T=v[0];T>=10;T/=10,l++);round(g,r+(g.e=l+s*c-1)+1,n,d)}else{g.e=s;g.r=+d}return g}}();function format(e,t,r,n){var i,a,o,s,u;if(r==null)r=y;else intCheck(r,0,8);if(!e.c)return e.toString();i=e.c[0];o=e.e;if(t==null){u=coeffToString(e.c);u=n==1||n==2&&(o<=w||o>=_)?toExponential(u,o):toFixedPoint(u,o,"0")}else{e=round(new BigNumber(e),t,r);a=e.e;u=coeffToString(e.c);s=u.length;if(n==1||n==2&&(t<=a||a<=w)){for(;s<t;u+="0",s++);u=toExponential(u,a)}else{t-=o;u=toFixedPoint(u,a,"0");if(a+1>s){if(--t>0)for(u+=".";t--;u+="0");}else{t+=a-s;if(t>0){if(a+1==s)u+=".";for(;t--;u+="0");}}}}return e.s<0&&i?"-"+u:u}function maxOrMin(e,t){var r,n=1,i=new BigNumber(e[0]);for(;n<e.length;n++){r=new BigNumber(e[n]);if(!r.s){i=r;break}else if(t.call(i,r)){i=r}}return i}function normalise(e,t,r){var n=1,i=t.length;for(;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);if((r=n+r*c-1)>A){e.c=e.e=null}else if(r<k){e.c=[e.e=0]}else{e.e=r;e.c=t}return e}m=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,r=/^\.([^.]+)$/,n=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(a,s,u,c){var l,d=u?s:s.replace(i,"");if(n.test(d)){a.s=isNaN(d)?null:d<0?-1:1}else{if(!u){d=d.replace(e,(function(e,t,r){l=(r=r.toLowerCase())=="x"?16:r=="b"?2:8;return!c||c==l?t:e}));if(c){l=c;d=d.replace(t,"$1").replace(r,"0.$1")}if(s!=d)return new BigNumber(d,l)}if(BigNumber.DEBUG){throw Error(o+"Not a"+(c?" base "+c:"")+" number: "+s)}a.s=null}a.c=a.e=null}}();function round(e,t,r,n){var o,s,l,h,p,m,g,v=e.c,b=d;if(v){e:{for(o=1,h=v[0];h>=10;h/=10,o++);s=t-o;if(s<0){s+=c;l=t;p=v[m=0];g=p/b[o-l-1]%10|0}else{m=i((s+1)/c);if(m>=v.length){if(n){for(;v.length<=m;v.push(0));p=g=0;o=1;s%=c;l=s-c+1}else{break e}}else{p=h=v[m];for(o=1;h>=10;h/=10,o++);s%=c;l=s-c+o;g=l<0?0:p/b[o-l-1]%10|0}}n=n||t<0||v[m+1]!=null||(l<0?p:p%b[o-l-1]);n=r<4?(g||n)&&(r==0||r==(e.s<0?3:2)):g>5||g==5&&(r==4||n||r==6&&(s>0?l>0?p/b[o-l]:0:v[m-1])%10&1||r==(e.s<0?8:7));if(t<1||!v[0]){v.length=0;if(n){t-=e.e+1;v[0]=b[(c-t%c)%c];e.e=-t||0}else{v[0]=e.e=0}return e}if(s==0){v.length=m;h=1;m--}else{v.length=m+1;h=b[c-s];v[m]=l>0?a(p/b[o-l]%b[l])*h:0}if(n){for(;;){if(m==0){for(s=1,l=v[0];l>=10;l/=10,s++);l=v[0]+=h;for(h=1;l>=10;l/=10,h++);if(s!=h){e.e++;if(v[0]==u)v[0]=1}break}else{v[m]+=h;if(v[m]!=u)break;v[m--]=0;h=1}}}for(s=v.length;v[--s]===0;v.pop());}if(e.e>A){e.c=e.e=null}else if(e.e<k){e.c=[e.e=0]}}return e}function valueOf(e){var t,r=e.e;if(r===null)return e.toString();t=coeffToString(e.c);t=r<=w||r>=_?toExponential(t,r):toFixedPoint(t,r,"0");return e.s<0?"-"+t:t}g.absoluteValue=g.abs=function(){var e=new BigNumber(this);if(e.s<0)e.s=1;return e};g.comparedTo=function(e,t){return compare(this,new BigNumber(e,t))};g.decimalPlaces=g.dp=function(e,t){var r,n,i,a=this;if(e!=null){intCheck(e,0,p);if(t==null)t=y;else intCheck(t,0,8);return round(new BigNumber(a),e+a.e+1,t)}if(!(r=a.c))return null;n=((i=r.length-1)-bitFloor(this.e/c))*c;if(i=r[i])for(;i%10==0;i/=10,n--);if(n<0)n=0;return n};g.dividedBy=g.div=function(e,r){return t(this,new BigNumber(e,r),b,y)};g.dividedToIntegerBy=g.idiv=function(e,r){return t(this,new BigNumber(e,r),0,1)};g.exponentiatedBy=g.pow=function(e,t){var r,n,s,u,l,d,h,p,m,g=this;e=new BigNumber(e);if(e.c&&!e.isInteger()){throw Error(o+"Exponent not an integer: "+valueOf(e))}if(t!=null)t=new BigNumber(t);d=e.e>14;if(!g.c||!g.c[0]||g.c[0]==1&&!g.e&&g.c.length==1||!e.c||!e.c[0]){m=new BigNumber(Math.pow(+valueOf(g),d?2-isOdd(e):+valueOf(e)));return t?m.mod(t):m}h=e.s<0;if(t){if(t.c?!t.c[0]:!t.s)return new BigNumber(NaN);n=!h&&g.isInteger()&&t.isInteger();if(n)g=g.mod(t)}else if(e.e>9&&(g.e>0||g.e<-1||(g.e==0?g.c[0]>1||d&&g.c[1]>=24e7:g.c[0]<8e13||d&&g.c[0]<=9999975e7))){u=g.s<0&&isOdd(e)?-0:0;if(g.e>-1)u=1/u;return new BigNumber(h?1/u:u)}else if(T){u=i(T/c+2)}if(d){r=new BigNumber(.5);if(h)e.s=1;p=isOdd(e)}else{s=Math.abs(+valueOf(e));p=s%2}m=new BigNumber(v);for(;;){if(p){m=m.times(g);if(!m.c)break;if(u){if(m.c.length>u)m.c.length=u}else if(n){m=m.mod(t)}}if(s){s=a(s/2);if(s===0)break;p=s%2}else{e=e.times(r);round(e,e.e+1,1);if(e.e>14){p=isOdd(e)}else{s=+valueOf(e);if(s===0)break;p=s%2}}g=g.times(g);if(u){if(g.c&&g.c.length>u)g.c.length=u}else if(n){g=g.mod(t)}}if(n)return m;if(h)m=v.div(m);return t?m.mod(t):u?round(m,T,y,l):m};g.integerValue=function(e){var t=new BigNumber(this);if(e==null)e=y;else intCheck(e,0,8);return round(t,t.e+1,e)};g.isEqualTo=g.eq=function(e,t){return compare(this,new BigNumber(e,t))===0};g.isFinite=function(){return!!this.c};g.isGreaterThan=g.gt=function(e,t){return compare(this,new BigNumber(e,t))>0};g.isGreaterThanOrEqualTo=g.gte=function(e,t){return(t=compare(this,new BigNumber(e,t)))===1||t===0};g.isInteger=function(){return!!this.c&&bitFloor(this.e/c)>this.c.length-2};g.isLessThan=g.lt=function(e,t){return compare(this,new BigNumber(e,t))<0};g.isLessThanOrEqualTo=g.lte=function(e,t){return(t=compare(this,new BigNumber(e,t)))===-1||t===0};g.isNaN=function(){return!this.s};g.isNegative=function(){return this.s<0};g.isPositive=function(){return this.s>0};g.isZero=function(){return!!this.c&&this.c[0]==0};g.minus=function(e,t){var r,n,i,a,o=this,s=o.s;e=new BigNumber(e,t);t=e.s;if(!s||!t)return new BigNumber(NaN);if(s!=t){e.s=-t;return o.plus(e)}var l=o.e/c,d=e.e/c,h=o.c,p=e.c;if(!l||!d){if(!h||!p)return h?(e.s=-t,e):new BigNumber(p?o:NaN);if(!h[0]||!p[0]){return p[0]?(e.s=-t,e):new BigNumber(h[0]?o:y==3?-0:0)}}l=bitFloor(l);d=bitFloor(d);h=h.slice();if(s=l-d){if(a=s<0){s=-s;i=h}else{d=l;i=p}i.reverse();for(t=s;t--;i.push(0));i.reverse()}else{n=(a=(s=h.length)<(t=p.length))?s:t;for(s=t=0;t<n;t++){if(h[t]!=p[t]){a=h[t]<p[t];break}}}if(a)i=h,h=p,p=i,e.s=-e.s;t=(n=p.length)-(r=h.length);if(t>0)for(;t--;h[r++]=0);t=u-1;for(;n>s;){if(h[--n]<p[n]){for(r=n;r&&!h[--r];h[r]=t);--h[r];h[n]+=u}h[n]-=p[n]}for(;h[0]==0;h.splice(0,1),--d);if(!h[0]){e.s=y==3?-1:1;e.c=[e.e=0];return e}return normalise(e,h,d)};g.modulo=g.mod=function(e,r){var n,i,a=this;e=new BigNumber(e,r);if(!a.c||!e.s||e.c&&!e.c[0]){return new BigNumber(NaN)}else if(!e.c||a.c&&!a.c[0]){return new BigNumber(a)}if(I==9){i=e.s;e.s=1;n=t(a,e,0,3);e.s=i;n.s*=i}else{n=t(a,e,0,I)}e=a.minus(n.times(e));if(!e.c[0]&&I==1)e.s=a.s;return e};g.multipliedBy=g.times=function(e,t){var r,n,i,a,o,s,l,d,p,m,g,v,b,y,w,_=this,k=_.c,A=(e=new BigNumber(e,t)).c;if(!k||!A||!k[0]||!A[0]){if(!_.s||!e.s||k&&!k[0]&&!A||A&&!A[0]&&!k){e.c=e.e=e.s=null}else{e.s*=_.s;if(!k||!A){e.c=e.e=null}else{e.c=[0];e.e=0}}return e}n=bitFloor(_.e/c)+bitFloor(e.e/c);e.s*=_.s;l=k.length;m=A.length;if(l<m)b=k,k=A,A=b,i=l,l=m,m=i;for(i=l+m,b=[];i--;b.push(0));y=u;w=h;for(i=m;--i>=0;){r=0;g=A[i]%w;v=A[i]/w|0;for(o=l,a=i+o;a>i;){d=k[--o]%w;p=k[o]/w|0;s=v*d+p*g;d=g*d+s%w*w+b[a]+r;r=(d/y|0)+(s/w|0)+v*p;b[a--]=d%y}b[a]=r}if(r){++n}else{b.splice(0,1)}return normalise(e,b,n)};g.negated=function(){var e=new BigNumber(this);e.s=-e.s||null;return e};g.plus=function(e,t){var r,n=this,i=n.s;e=new BigNumber(e,t);t=e.s;if(!i||!t)return new BigNumber(NaN);if(i!=t){e.s=-t;return n.minus(e)}var a=n.e/c,o=e.e/c,s=n.c,l=e.c;if(!a||!o){if(!s||!l)return new BigNumber(i/0);if(!s[0]||!l[0])return l[0]?e:new BigNumber(s[0]?n:i*0)}a=bitFloor(a);o=bitFloor(o);s=s.slice();if(i=a-o){if(i>0){o=a;r=l}else{i=-i;r=s}r.reverse();for(;i--;r.push(0));r.reverse()}i=s.length;t=l.length;if(i-t<0)r=l,l=s,s=r,t=i;for(i=0;t;){i=(s[--t]=s[t]+l[t]+i)/u|0;s[t]=u===s[t]?0:s[t]%u}if(i){s=[i].concat(s);++o}return normalise(e,s,o)};g.precision=g.sd=function(e,t){var r,n,i,a=this;if(e!=null&&e!==!!e){intCheck(e,1,p);if(t==null)t=y;else intCheck(t,0,8);return round(new BigNumber(a),e,t)}if(!(r=a.c))return null;i=r.length-1;n=i*c+1;if(i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}if(e&&a.e+1>n)n=a.e+1;return n};g.shiftedBy=function(e){intCheck(e,-l,l);return this.times("1e"+e)};g.squareRoot=g.sqrt=function(){var e,r,n,i,a,o=this,s=o.c,u=o.s,c=o.e,l=b+4,d=new BigNumber("0.5");if(u!==1||!s||!s[0]){return new BigNumber(!u||u<0&&(!s||s[0])?NaN:s?o:1/0)}u=Math.sqrt(+valueOf(o));if(u==0||u==1/0){r=coeffToString(s);if((r.length+c)%2==0)r+="0";u=Math.sqrt(+r);c=bitFloor((c+1)/2)-(c<0||c%2);if(u==1/0){r="5e"+c}else{r=u.toExponential();r=r.slice(0,r.indexOf("e")+1)+c}n=new BigNumber(r)}else{n=new BigNumber(u+"")}if(n.c[0]){c=n.e;u=c+l;if(u<3)u=0;for(;;){a=n;n=d.times(a.plus(t(o,a,l,1)));if(coeffToString(a.c).slice(0,u)===(r=coeffToString(n.c)).slice(0,u)){if(n.e<c)--u;r=r.slice(u-3,u+1);if(r=="9999"||!i&&r=="4999"){if(!i){round(a,a.e+b+2,0);if(a.times(a).eq(o)){n=a;break}}l+=4;u+=4;i=1}else{if(!+r||!+r.slice(1)&&r.charAt(0)=="5"){round(n,n.e+b+2,1);e=!n.times(n).eq(o)}break}}}}return round(n,n.e+b+1,y,e)};g.toExponential=function(e,t){if(e!=null){intCheck(e,0,p);e++}return format(this,e,t,1)};g.toFixed=function(e,t){if(e!=null){intCheck(e,0,p);e=e+this.e+1}return format(this,e,t)};g.toFormat=function(e,t,r){var n,i=this;if(r==null){if(e!=null&&t&&typeof t=="object"){r=t;t=null}else if(e&&typeof e=="object"){r=e;e=t=null}else{r=B}}else if(typeof r!="object"){throw Error(o+"Argument not an object: "+r)}n=i.toFixed(e,t);if(i.c){var a,s=n.split("."),u=+r.groupSize,c=+r.secondaryGroupSize,l=r.groupSeparator||"",d=s[0],h=s[1],p=i.s<0,m=p?d.slice(1):d,g=m.length;if(c)a=u,u=c,c=a,g-=a;if(u>0&&g>0){a=g%u||u;d=m.substr(0,a);for(;a<g;a+=u)d+=l+m.substr(a,u);if(c>0)d+=l+m.slice(a);if(p)d="-"+d}n=h?d+(r.decimalSeparator||"")+((c=+r.fractionGroupSize)?h.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):h):d}return(r.prefix||"")+n+(r.suffix||"")};g.toFraction=function(e){var r,n,i,a,s,u,l,h,p,m,g,b,w=this,_=w.c;if(e!=null){l=new BigNumber(e);if(!l.isInteger()&&(l.c||l.s!==1)||l.lt(v)){throw Error(o+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+valueOf(l))}}if(!_)return new BigNumber(w);r=new BigNumber(v);p=n=new BigNumber(v);i=h=new BigNumber(v);b=coeffToString(_);s=r.e=b.length-w.e-1;r.c[0]=d[(u=s%c)<0?c+u:u];e=!e||l.comparedTo(r)>0?s>0?r:p:l;u=A;A=1/0;l=new BigNumber(b);h.c[0]=0;for(;;){m=t(l,r,0,1);a=n.plus(m.times(i));if(a.comparedTo(e)==1)break;n=i;i=a;p=h.plus(m.times(a=p));h=a;r=l.minus(m.times(a=r));l=a}a=t(e.minus(n),i,0,1);h=h.plus(a.times(p));n=n.plus(a.times(i));h.s=p.s=w.s;s=s*2;g=t(p,i,s,y).minus(w).abs().comparedTo(t(h,n,s,y).minus(w).abs())<1?[p,i]:[h,n];A=u;return g};g.toNumber=function(){return+valueOf(this)};g.toPrecision=function(e,t){if(e!=null)intCheck(e,1,p);return format(this,e,t,2)};g.toString=function(e){var t,n=this,i=n.s,a=n.e;if(a===null){if(i){t="Infinity";if(i<0)t="-"+t}else{t="NaN"}}else{if(e==null){t=a<=w||a>=_?toExponential(coeffToString(n.c),a):toFixedPoint(coeffToString(n.c),a,"0")}else if(e===10&&N){n=round(new BigNumber(n),b+a+1,y);t=toFixedPoint(coeffToString(n.c),n.e,"0")}else{intCheck(e,2,M.length,"Base");t=r(toFixedPoint(coeffToString(n.c),a,"0"),10,e,i,true)}if(i<0&&n.c[0])t="-"+t}return t};g.valueOf=g.toJSON=function(){return valueOf(this)};g._isBigNumber=true;if(e!=null)BigNumber.set(e);return BigNumber}function bitFloor(e){var t=e|0;return e>0||e===t?t:t-1}function coeffToString(e){var t,r,n=1,i=e.length,a=e[0]+"";for(;n<i;){t=e[n++]+"";r=c-t.length;for(;r--;t="0"+t);a+=t}for(i=a.length;a.charCodeAt(--i)===48;);return a.slice(0,i+1||1)}function compare(e,t){var r,n,i=e.c,a=t.c,o=e.s,s=t.s,u=e.e,c=t.e;if(!o||!s)return null;r=i&&!i[0];n=a&&!a[0];if(r||n)return r?n?0:-s:o;if(o!=s)return o;r=o<0;n=u==c;if(!i||!a)return n?0:!i^r?1:-1;if(!n)return u>c^r?1:-1;s=(u=i.length)<(c=a.length)?u:c;for(o=0;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^r?1:-1;return u==c?0:u>c^r?1:-1}function intCheck(e,t,r,n){if(e<t||e>r||e!==a(e)){throw Error(o+(n||"Argument")+(typeof e=="number"?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}}function isOdd(e){var t=e.c.length-1;return bitFloor(e.e/c)==t&&e.c[t]%2!=0}function toExponential(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function toFixedPoint(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else{n=e.length;if(++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else if(t<n){e=e.slice(0,t)+"."+e.slice(t)}}return e}r=clone();r["default"]=r.BigNumber=r;if(typeof define=="function"&&define.amd){define((function(){return r}))}else if(true&&e.exports){e.exports=r}else{if(!t){t=typeof self!="undefined"&&self?self:window}t.BigNumber=r}})(this)},3783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(4155);const i=r(1768);const a=r(5303);const o=r(8158);const s=r(8445);const u=o.BufferN(32);const c=o.compile({wif:o.UInt8,bip32:{public:o.UInt32,private:o.UInt32}});const l={messagePrefix:"Bitcoin Signed Message:\n",bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128};const d=2147483648;const h=Math.pow(2,31)-1;function BIP32Path(e){return o.String(e)&&e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)!==null}function UInt31(e){return o.UInt32(e)&&e<=h}class BIP32{constructor(e,t,r,n,i=0,a=0,s=0){this.__D=e;this.__Q=t;this.chainCode=r;this.network=n;this.__DEPTH=i;this.__INDEX=a;this.__PARENT_FINGERPRINT=s;o(c,n);this.lowR=false}get depth(){return this.__DEPTH}get index(){return this.__INDEX}get parentFingerprint(){return this.__PARENT_FINGERPRINT}get publicKey(){if(this.__Q===undefined)this.__Q=a.pointFromScalar(this.__D,true);return this.__Q}get privateKey(){return this.__D}get identifier(){return n.hash160(this.publicKey)}get fingerprint(){return this.identifier.slice(0,4)}get compressed(){return true}isNeutered(){return this.__D===undefined}neutered(){return fromPublicKeyLocal(this.publicKey,this.chainCode,this.network,this.depth,this.index,this.parentFingerprint)}toBase58(){const e=this.network;const t=!this.isNeutered()?e.bip32.private:e.bip32.public;const r=Buffer.allocUnsafe(78);r.writeUInt32BE(t,0);r.writeUInt8(this.depth,4);r.writeUInt32BE(this.parentFingerprint,5);r.writeUInt32BE(this.index,9);this.chainCode.copy(r,13);if(!this.isNeutered()){r.writeUInt8(0,45);this.privateKey.copy(r,46)}else{this.publicKey.copy(r,45)}return i.encode(r)}toWIF(){if(!this.privateKey)throw new TypeError("Missing private key");return s.encode(this.network.wif,this.privateKey,true)}derive(e){o(o.UInt32,e);const t=e>=d;const r=Buffer.allocUnsafe(37);if(t){if(this.isNeutered())throw new TypeError("Missing private key for hardened child key");r[0]=0;this.privateKey.copy(r,1);r.writeUInt32BE(e,33)}else{this.publicKey.copy(r,0);r.writeUInt32BE(e,33)}const i=n.hmacSHA512(this.chainCode,r);const s=i.slice(0,32);const u=i.slice(32);if(!a.isPrivate(s))return this.derive(e+1);let c;if(!this.isNeutered()){const t=a.privateAdd(this.privateKey,s);if(t==null)return this.derive(e+1);c=fromPrivateKeyLocal(t,u,this.network,this.depth+1,e,this.fingerprint.readUInt32BE(0))}else{const t=a.pointAddScalar(this.publicKey,s,true);if(t===null)return this.derive(e+1);c=fromPublicKeyLocal(t,u,this.network,this.depth+1,e,this.fingerprint.readUInt32BE(0))}return c}deriveHardened(e){o(UInt31,e);return this.derive(e+d)}derivePath(e){o(BIP32Path,e);let t=e.split("/");if(t[0]==="m"){if(this.parentFingerprint)throw new TypeError("Expected master, got child");t=t.slice(1)}return t.reduce(((e,t)=>{let r;if(t.slice(-1)===`'`){r=parseInt(t.slice(0,-1),10);return e.deriveHardened(r)}else{r=parseInt(t,10);return e.derive(r)}}),this)}sign(e,t){if(!this.privateKey)throw new Error("Missing private key");if(t===undefined)t=this.lowR;if(t===false){return a.sign(e,this.privateKey)}else{let t=a.sign(e,this.privateKey);const r=Buffer.alloc(32,0);let n=0;while(t[0]>127){n++;r.writeUIntLE(n,0,6);t=a.signWithEntropy(e,this.privateKey,r)}return t}}verify(e,t){return a.verify(e,this.publicKey,t)}}function fromBase58(e,t){const r=i.decode(e);if(r.length!==78)throw new TypeError("Invalid buffer length");t=t||l;const n=r.readUInt32BE(0);if(n!==t.bip32.private&&n!==t.bip32.public)throw new TypeError("Invalid network version");const a=r[4];const o=r.readUInt32BE(5);if(a===0){if(o!==0)throw new TypeError("Invalid parent fingerprint")}const s=r.readUInt32BE(9);if(a===0&&s!==0)throw new TypeError("Invalid index");const u=r.slice(13,45);let c;if(n===t.bip32.private){if(r.readUInt8(45)!==0)throw new TypeError("Invalid private key");const e=r.slice(46,78);c=fromPrivateKeyLocal(e,u,t,a,s,o)}else{const e=r.slice(45,78);c=fromPublicKeyLocal(e,u,t,a,s,o)}return c}t.fromBase58=fromBase58;function fromPrivateKey(e,t,r){return fromPrivateKeyLocal(e,t,r)}t.fromPrivateKey=fromPrivateKey;function fromPrivateKeyLocal(e,t,r,n,i,s){o({privateKey:u,chainCode:u},{privateKey:e,chainCode:t});r=r||l;if(!a.isPrivate(e))throw new TypeError("Private key not in range [1, n)");return new BIP32(e,undefined,t,r,n,i,s)}function fromPublicKey(e,t,r){return fromPublicKeyLocal(e,t,r)}t.fromPublicKey=fromPublicKey;function fromPublicKeyLocal(e,t,r,n,i,s){o({publicKey:o.BufferN(33),chainCode:u},{publicKey:e,chainCode:t});r=r||l;if(!a.isPoint(e))throw new TypeError("Point is not on the curve");return new BIP32(undefined,e,t,r,n,i,s)}function fromSeed(e,t){o(o.Buffer,e);if(e.length<16)throw new TypeError("Seed should be at least 128 bits");if(e.length>64)throw new TypeError("Seed should be at most 512 bits");t=t||l;const r=n.hmacSHA512(Buffer.from("Bitcoin seed","utf8"),e);const i=r.slice(0,32);const a=r.slice(32);return fromPrivateKey(i,a,t)}t.fromSeed=fromSeed},4155:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3614);const i=r(9922);function hash160(e){const t=n("sha256").update(e).digest();try{return n("rmd160").update(t).digest()}catch(e){return n("ripemd160").update(t).digest()}}t.hash160=hash160;function hmacSHA512(e,t){return i("sha512",e).update(t).digest()}t.hmacSHA512=hmacSHA512},821:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(3783);t.fromSeed=n.fromSeed;t.fromBase58=n.fromBase58;t.fromPublicKey=n.fromPublicKey;t.fromPrivateKey=n.fromPrivateKey},8112:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n={};t.wordlists=n;let i;t._default=i;try{t._default=i=r(32);n.czech=i}catch(e){}try{t._default=i=r(6996);n.chinese_simplified=i}catch(e){}try{t._default=i=r(4262);n.chinese_traditional=i}catch(e){}try{t._default=i=r(8013);n.korean=i}catch(e){}try{t._default=i=r(1848);n.french=i}catch(e){}try{t._default=i=r(2841);n.italian=i}catch(e){}try{t._default=i=r(659);n.spanish=i}catch(e){}try{t._default=i=r(4472);n.japanese=i;n.JA=i}catch(e){}try{t._default=i=r(1945);n.portuguese=i}catch(e){}try{t._default=i=r(4573);n.english=i;n.EN=i}catch(e){}},781:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(3614);const i=r(7401);const a=r(8922);const o=r(8112);let s=o._default;const u="Invalid mnemonic";const c="Invalid entropy";const l="Invalid mnemonic checksum";const d="A wordlist is required but a default could not be found.\n"+"Please pass a 2048 word array explicitly.";function pbkdf2Promise(e,t,r,n,a){return Promise.resolve().then((()=>new Promise(((o,s)=>{const callback=(e,t)=>{if(e){return s(e)}else{return o(t)}};i.pbkdf2(e,t,r,n,a,callback)}))))}function normalize(e){return(e||"").normalize("NFKD")}function lpad(e,t,r){while(e.length<r){e=t+e}return e}function binaryToByte(e){return parseInt(e,2)}function bytesToBinary(e){return e.map((e=>lpad(e.toString(2),"0",8))).join("")}function deriveChecksumBits(e){const t=e.length*8;const r=t/32;const i=n("sha256").update(e).digest();return bytesToBinary(Array.from(i)).slice(0,r)}function salt(e){return"mnemonic"+(e||"")}function mnemonicToSeedSync(e,t){const r=Buffer.from(normalize(e),"utf8");const n=Buffer.from(salt(normalize(t)),"utf8");return i.pbkdf2Sync(r,n,2048,64,"sha512")}t.mnemonicToSeedSync=mnemonicToSeedSync;function mnemonicToSeed(e,t){return Promise.resolve().then((()=>{const r=Buffer.from(normalize(e),"utf8");const n=Buffer.from(salt(normalize(t)),"utf8");return pbkdf2Promise(r,n,2048,64,"sha512")}))}t.mnemonicToSeed=mnemonicToSeed;function mnemonicToEntropy(e,t){t=t||s;if(!t){throw new Error(d)}const r=normalize(e).split(" ");if(r.length%3!==0){throw new Error(u)}const n=r.map((e=>{const r=t.indexOf(e);if(r===-1){throw new Error(u)}return lpad(r.toString(2),"0",11)})).join("");const i=Math.floor(n.length/33)*32;const a=n.slice(0,i);const o=n.slice(i);const h=a.match(/(.{1,8})/g).map(binaryToByte);if(h.length<16){throw new Error(c)}if(h.length>32){throw new Error(c)}if(h.length%4!==0){throw new Error(c)}const p=Buffer.from(h);const m=deriveChecksumBits(p);if(m!==o){throw new Error(l)}return p.toString("hex")}t.mnemonicToEntropy=mnemonicToEntropy;function entropyToMnemonic(e,t){if(!Buffer.isBuffer(e)){e=Buffer.from(e,"hex")}t=t||s;if(!t){throw new Error(d)}if(e.length<16){throw new TypeError(c)}if(e.length>32){throw new TypeError(c)}if(e.length%4!==0){throw new TypeError(c)}const r=bytesToBinary(Array.from(e));const n=deriveChecksumBits(e);const i=r+n;const a=i.match(/(.{1,11})/g);const o=a.map((e=>{const r=binaryToByte(e);return t[r]}));return t[0]==="あいこくしん"?o.join(" "):o.join(" ")}t.entropyToMnemonic=entropyToMnemonic;function generateMnemonic(e,t,r){e=e||128;if(e%32!==0){throw new TypeError(c)}t=t||a;return entropyToMnemonic(t(e/8),r)}t.generateMnemonic=generateMnemonic;function validateMnemonic(e,t){try{mnemonicToEntropy(e,t)}catch(e){return false}return true}t.validateMnemonic=validateMnemonic;function setDefaultWordlist(e){const t=o.wordlists[e];if(t){s=t}else{throw new Error('Could not find wordlist for language "'+e+'"')}}t.setDefaultWordlist=setDefaultWordlist;function getDefaultWordlist(){if(!s){throw new Error("No Default Wordlist set")}return Object.keys(o.wordlists).filter((e=>{if(e==="JA"||e==="EN"){return false}return o.wordlists[e].every(((e,t)=>e===s[t]))}))[0]}t.getDefaultWordlist=getDefaultWordlist;var h=r(8112);t.wordlists=h.wordlists},3693:function(e,t,r){e=r.nmd(e);(function(e,t){"use strict";function assert(e,t){if(!e)throw new Error(t||"Assertion failed")}function inherits(e,t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}function BN(e,t,r){if(BN.isBN(e)){return e}this.negative=0;this.words=null;this.length=0;this.red=null;if(e!==null){if(t==="le"||t==="be"){r=t;t=10}this._init(e||0,t||10,r||"be")}}if(typeof e==="object"){e.exports=BN}else{t.BN=BN}BN.BN=BN;BN.wordSize=26;var n;try{if(typeof window!=="undefined"&&typeof window.Buffer!=="undefined"){n=window.Buffer}else{n=r(4300).Buffer}}catch(e){}BN.isBN=function isBN(e){if(e instanceof BN){return true}return e!==null&&typeof e==="object"&&e.constructor.wordSize===BN.wordSize&&Array.isArray(e.words)};BN.max=function max(e,t){if(e.cmp(t)>0)return e;return t};BN.min=function min(e,t){if(e.cmp(t)<0)return e;return t};BN.prototype._init=function init(e,t,r){if(typeof e==="number"){return this._initNumber(e,t,r)}if(typeof e==="object"){return this._initArray(e,t,r)}if(t==="hex"){t=16}assert(t===(t|0)&&t>=2&&t<=36);e=e.toString().replace(/\s+/g,"");var n=0;if(e[0]==="-"){n++;this.negative=1}if(n<e.length){if(t===16){this._parseHex(e,n,r)}else{this._parseBase(e,t,n);if(r==="le"){this._initArray(this.toArray(),t,r)}}}};BN.prototype._initNumber=function _initNumber(e,t,r){if(e<0){this.negative=1;e=-e}if(e<67108864){this.words=[e&67108863];this.length=1}else if(e<4503599627370496){this.words=[e&67108863,e/67108864&67108863];this.length=2}else{assert(e<9007199254740992);this.words=[e&67108863,e/67108864&67108863,1];this.length=3}if(r!=="le")return;this._initArray(this.toArray(),t,r)};BN.prototype._initArray=function _initArray(e,t,r){assert(typeof e.length==="number");if(e.length<=0){this.words=[0];this.length=1;return this}this.length=Math.ceil(e.length/3);this.words=new Array(this.length);for(var n=0;n<this.length;n++){this.words[n]=0}var i,a;var o=0;if(r==="be"){for(n=e.length-1,i=0;n>=0;n-=3){a=e[n]|e[n-1]<<8|e[n-2]<<16;this.words[i]|=a<<o&67108863;this.words[i+1]=a>>>26-o&67108863;o+=24;if(o>=26){o-=26;i++}}}else if(r==="le"){for(n=0,i=0;n<e.length;n+=3){a=e[n]|e[n+1]<<8|e[n+2]<<16;this.words[i]|=a<<o&67108863;this.words[i+1]=a>>>26-o&67108863;o+=24;if(o>=26){o-=26;i++}}}return this.strip()};function parseHex4Bits(e,t){var r=e.charCodeAt(t);if(r>=65&&r<=70){return r-55}else if(r>=97&&r<=102){return r-87}else{return r-48&15}}function parseHexByte(e,t,r){var n=parseHex4Bits(e,r);if(r-1>=t){n|=parseHex4Bits(e,r-1)<<4}return n}BN.prototype._parseHex=function _parseHex(e,t,r){this.length=Math.ceil((e.length-t)/6);this.words=new Array(this.length);for(var n=0;n<this.length;n++){this.words[n]=0}var i=0;var a=0;var o;if(r==="be"){for(n=e.length-1;n>=t;n-=2){o=parseHexByte(e,t,n)<<i;this.words[a]|=o&67108863;if(i>=18){i-=18;a+=1;this.words[a]|=o>>>26}else{i+=8}}}else{var s=e.length-t;for(n=s%2===0?t+1:t;n<e.length;n+=2){o=parseHexByte(e,t,n)<<i;this.words[a]|=o&67108863;if(i>=18){i-=18;a+=1;this.words[a]|=o>>>26}else{i+=8}}}this.strip()};function parseBase(e,t,r,n){var i=0;var a=Math.min(e.length,r);for(var o=t;o<a;o++){var s=e.charCodeAt(o)-48;i*=n;if(s>=49){i+=s-49+10}else if(s>=17){i+=s-17+10}else{i+=s}}return i}BN.prototype._parseBase=function _parseBase(e,t,r){this.words=[0];this.length=1;for(var n=0,i=1;i<=67108863;i*=t){n++}n--;i=i/t|0;var a=e.length-r;var o=a%n;var s=Math.min(a,a-o)+r;var u=0;for(var c=r;c<s;c+=n){u=parseBase(e,c,c+n,t);this.imuln(i);if(this.words[0]+u<67108864){this.words[0]+=u}else{this._iaddn(u)}}if(o!==0){var l=1;u=parseBase(e,c,e.length,t);for(c=0;c<o;c++){l*=t}this.imuln(l);if(this.words[0]+u<67108864){this.words[0]+=u}else{this._iaddn(u)}}this.strip()};BN.prototype.copy=function copy(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++){e.words[t]=this.words[t]}e.length=this.length;e.negative=this.negative;e.red=this.red};BN.prototype.clone=function clone(){var e=new BN(null);this.copy(e);return e};BN.prototype._expand=function _expand(e){while(this.length<e){this.words[this.length++]=0}return this};BN.prototype.strip=function strip(){while(this.length>1&&this.words[this.length-1]===0){this.length--}return this._normSign()};BN.prototype._normSign=function _normSign(){if(this.length===1&&this.words[0]===0){this.negative=0}return this};BN.prototype.inspect=function inspect(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var i=["","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"];var a=[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];var o=[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];BN.prototype.toString=function toString(e,t){e=e||10;t=t|0||1;var r;if(e===16||e==="hex"){r="";var n=0;var s=0;for(var u=0;u<this.length;u++){var c=this.words[u];var l=((c<<n|s)&16777215).toString(16);s=c>>>24-n&16777215;if(s!==0||u!==this.length-1){r=i[6-l.length]+l+r}else{r=l+r}n+=2;if(n>=26){n-=26;u--}}if(s!==0){r=s.toString(16)+r}while(r.length%t!==0){r="0"+r}if(this.negative!==0){r="-"+r}return r}if(e===(e|0)&&e>=2&&e<=36){var d=a[e];var h=o[e];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(h).toString(e);p=p.idivn(h);if(!p.isZero()){r=i[d-m.length]+m+r}else{r=m+r}}if(this.isZero()){r="0"+r}while(r.length%t!==0){r="0"+r}if(this.negative!==0){r="-"+r}return r}assert(false,"Base should be between 2 and 36")};BN.prototype.toNumber=function toNumber(){var e=this.words[0];if(this.length===2){e+=this.words[1]*67108864}else if(this.length===3&&this.words[2]===1){e+=4503599627370496+this.words[1]*67108864}else if(this.length>2){assert(false,"Number can only safely store up to 53 bits")}return this.negative!==0?-e:e};BN.prototype.toJSON=function toJSON(){return this.toString(16)};BN.prototype.toBuffer=function toBuffer(e,t){assert(typeof n!=="undefined");return this.toArrayLike(n,e,t)};BN.prototype.toArray=function toArray(e,t){return this.toArrayLike(Array,e,t)};BN.prototype.toArrayLike=function toArrayLike(e,t,r){var n=this.byteLength();var i=r||Math.max(1,n);assert(n<=i,"byte array longer than desired length");assert(i>0,"Requested array length <= 0");this.strip();var a=t==="le";var o=new e(i);var s,u;var c=this.clone();if(!a){for(u=0;u<i-n;u++){o[u]=0}for(u=0;!c.isZero();u++){s=c.andln(255);c.iushrn(8);o[i-u-1]=s}}else{for(u=0;!c.isZero();u++){s=c.andln(255);c.iushrn(8);o[u]=s}for(;u<i;u++){o[u]=0}}return o};if(Math.clz32){BN.prototype._countBits=function _countBits(e){return 32-Math.clz32(e)}}else{BN.prototype._countBits=function _countBits(e){var t=e;var r=0;if(t>=4096){r+=13;t>>>=13}if(t>=64){r+=7;t>>>=7}if(t>=8){r+=4;t>>>=4}if(t>=2){r+=2;t>>>=2}return r+t}}BN.prototype._zeroBits=function _zeroBits(e){if(e===0)return 26;var t=e;var r=0;if((t&8191)===0){r+=13;t>>>=13}if((t&127)===0){r+=7;t>>>=7}if((t&15)===0){r+=4;t>>>=4}if((t&3)===0){r+=2;t>>>=2}if((t&1)===0){r++}return r};BN.prototype.bitLength=function bitLength(){var e=this.words[this.length-1];var t=this._countBits(e);return(this.length-1)*26+t};function toBitArray(e){var t=new Array(e.bitLength());for(var r=0;r<t.length;r++){var n=r/26|0;var i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}BN.prototype.zeroBits=function zeroBits(){if(this.isZero())return 0;var e=0;for(var t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);e+=r;if(r!==26)break}return e};BN.prototype.byteLength=function byteLength(){return Math.ceil(this.bitLength()/8)};BN.prototype.toTwos=function toTwos(e){if(this.negative!==0){return this.abs().inotn(e).iaddn(1)}return this.clone()};BN.prototype.fromTwos=function fromTwos(e){if(this.testn(e-1)){return this.notn(e).iaddn(1).ineg()}return this.clone()};BN.prototype.isNeg=function isNeg(){return this.negative!==0};BN.prototype.neg=function neg(){return this.clone().ineg()};BN.prototype.ineg=function ineg(){if(!this.isZero()){this.negative^=1}return this};BN.prototype.iuor=function iuor(e){while(this.length<e.length){this.words[this.length++]=0}for(var t=0;t<e.length;t++){this.words[t]=this.words[t]|e.words[t]}return this.strip()};BN.prototype.ior=function ior(e){assert((this.negative|e.negative)===0);return this.iuor(e)};BN.prototype.or=function or(e){if(this.length>e.length)return this.clone().ior(e);return e.clone().ior(this)};BN.prototype.uor=function uor(e){if(this.length>e.length)return this.clone().iuor(e);return e.clone().iuor(this)};BN.prototype.iuand=function iuand(e){var t;if(this.length>e.length){t=e}else{t=this}for(var r=0;r<t.length;r++){this.words[r]=this.words[r]&e.words[r]}this.length=t.length;return this.strip()};BN.prototype.iand=function iand(e){assert((this.negative|e.negative)===0);return this.iuand(e)};BN.prototype.and=function and(e){if(this.length>e.length)return this.clone().iand(e);return e.clone().iand(this)};BN.prototype.uand=function uand(e){if(this.length>e.length)return this.clone().iuand(e);return e.clone().iuand(this)};BN.prototype.iuxor=function iuxor(e){var t;var r;if(this.length>e.length){t=this;r=e}else{t=e;r=this}for(var n=0;n<r.length;n++){this.words[n]=t.words[n]^r.words[n]}if(this!==t){for(;n<t.length;n++){this.words[n]=t.words[n]}}this.length=t.length;return this.strip()};BN.prototype.ixor=function ixor(e){assert((this.negative|e.negative)===0);return this.iuxor(e)};BN.prototype.xor=function xor(e){if(this.length>e.length)return this.clone().ixor(e);return e.clone().ixor(this)};BN.prototype.uxor=function uxor(e){if(this.length>e.length)return this.clone().iuxor(e);return e.clone().iuxor(this)};BN.prototype.inotn=function inotn(e){assert(typeof e==="number"&&e>=0);var t=Math.ceil(e/26)|0;var r=e%26;this._expand(t);if(r>0){t--}for(var n=0;n<t;n++){this.words[n]=~this.words[n]&67108863}if(r>0){this.words[n]=~this.words[n]&67108863>>26-r}return this.strip()};BN.prototype.notn=function notn(e){return this.clone().inotn(e)};BN.prototype.setn=function setn(e,t){assert(typeof e==="number"&&e>=0);var r=e/26|0;var n=e%26;this._expand(r+1);if(t){this.words[r]=this.words[r]|1<<n}else{this.words[r]=this.words[r]&~(1<<n)}return this.strip()};BN.prototype.iadd=function iadd(e){var t;if(this.negative!==0&&e.negative===0){this.negative=0;t=this.isub(e);this.negative^=1;return this._normSign()}else if(this.negative===0&&e.negative!==0){e.negative=0;t=this.isub(e);e.negative=1;return t._normSign()}var r,n;if(this.length>e.length){r=this;n=e}else{r=e;n=this}var i=0;for(var a=0;a<n.length;a++){t=(r.words[a]|0)+(n.words[a]|0)+i;this.words[a]=t&67108863;i=t>>>26}for(;i!==0&&a<r.length;a++){t=(r.words[a]|0)+i;this.words[a]=t&67108863;i=t>>>26}this.length=r.length;if(i!==0){this.words[this.length]=i;this.length++}else if(r!==this){for(;a<r.length;a++){this.words[a]=r.words[a]}}return this};BN.prototype.add=function add(e){var t;if(e.negative!==0&&this.negative===0){e.negative=0;t=this.sub(e);e.negative^=1;return t}else if(e.negative===0&&this.negative!==0){this.negative=0;t=e.sub(this);this.negative=1;return t}if(this.length>e.length)return this.clone().iadd(e);return e.clone().iadd(this)};BN.prototype.isub=function isub(e){if(e.negative!==0){e.negative=0;var t=this.iadd(e);e.negative=1;return t._normSign()}else if(this.negative!==0){this.negative=0;this.iadd(e);this.negative=1;return this._normSign()}var r=this.cmp(e);if(r===0){this.negative=0;this.length=1;this.words[0]=0;return this}var n,i;if(r>0){n=this;i=e}else{n=e;i=this}var a=0;for(var o=0;o<i.length;o++){t=(n.words[o]|0)-(i.words[o]|0)+a;a=t>>26;this.words[o]=t&67108863}for(;a!==0&&o<n.length;o++){t=(n.words[o]|0)+a;a=t>>26;this.words[o]=t&67108863}if(a===0&&o<n.length&&n!==this){for(;o<n.length;o++){this.words[o]=n.words[o]}}this.length=Math.max(this.length,o);if(n!==this){this.negative=1}return this.strip()};BN.prototype.sub=function sub(e){return this.clone().isub(e)};function smallMulTo(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n;n=n-1|0;var i=e.words[0]|0;var a=t.words[0]|0;var o=i*a;var s=o&67108863;var u=o/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){var l=u>>>26;var d=u&67108863;var h=Math.min(c,t.length-1);for(var p=Math.max(0,c-e.length+1);p<=h;p++){var m=c-p|0;i=e.words[m]|0;a=t.words[p]|0;o=i*a+d;l+=o/67108864|0;d=o&67108863}r.words[c]=d|0;u=l|0}if(u!==0){r.words[c]=u|0}else{r.length--}return r.strip()}var s=function comb10MulTo(e,t,r){var n=e.words;var i=t.words;var a=r.words;var o=0;var s;var u;var c;var l=n[0]|0;var d=l&8191;var h=l>>>13;var p=n[1]|0;var m=p&8191;var g=p>>>13;var v=n[2]|0;var b=v&8191;var y=v>>>13;var w=n[3]|0;var _=w&8191;var k=w>>>13;var A=n[4]|0;var E=A&8191;var I=A>>>13;var T=n[5]|0;var B=T&8191;var M=T>>>13;var N=n[6]|0;var x=N&8191;var O=N>>>13;var P=n[7]|0;var C=P&8191;var z=P>>>13;var F=n[8]|0;var j=F&8191;var L=F>>>13;var D=n[9]|0;var U=D&8191;var q=D>>>13;var V=i[0]|0;var H=V&8191;var W=V>>>13;var X=i[1]|0;var G=X&8191;var $=X>>>13;var J=i[2]|0;var Z=J&8191;var Y=J>>>13;var Q=i[3]|0;var ee=Q&8191;var te=Q>>>13;var re=i[4]|0;var ne=re&8191;var ie=re>>>13;var ae=i[5]|0;var oe=ae&8191;var se=ae>>>13;var ue=i[6]|0;var ce=ue&8191;var le=ue>>>13;var fe=i[7]|0;var de=fe&8191;var he=fe>>>13;var pe=i[8]|0;var me=pe&8191;var ge=pe>>>13;var ve=i[9]|0;var be=ve&8191;var ye=ve>>>13;r.negative=e.negative^t.negative;r.length=19;s=Math.imul(d,H);u=Math.imul(d,W);u=u+Math.imul(h,H)|0;c=Math.imul(h,W);var we=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(we>>>26)|0;we&=67108863;s=Math.imul(m,H);u=Math.imul(m,W);u=u+Math.imul(g,H)|0;c=Math.imul(g,W);s=s+Math.imul(d,G)|0;u=u+Math.imul(d,$)|0;u=u+Math.imul(h,G)|0;c=c+Math.imul(h,$)|0;var _e=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(_e>>>26)|0;_e&=67108863;s=Math.imul(b,H);u=Math.imul(b,W);u=u+Math.imul(y,H)|0;c=Math.imul(y,W);s=s+Math.imul(m,G)|0;u=u+Math.imul(m,$)|0;u=u+Math.imul(g,G)|0;c=c+Math.imul(g,$)|0;s=s+Math.imul(d,Z)|0;u=u+Math.imul(d,Y)|0;u=u+Math.imul(h,Z)|0;c=c+Math.imul(h,Y)|0;var Se=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Se>>>26)|0;Se&=67108863;s=Math.imul(_,H);u=Math.imul(_,W);u=u+Math.imul(k,H)|0;c=Math.imul(k,W);s=s+Math.imul(b,G)|0;u=u+Math.imul(b,$)|0;u=u+Math.imul(y,G)|0;c=c+Math.imul(y,$)|0;s=s+Math.imul(m,Z)|0;u=u+Math.imul(m,Y)|0;u=u+Math.imul(g,Z)|0;c=c+Math.imul(g,Y)|0;s=s+Math.imul(d,ee)|0;u=u+Math.imul(d,te)|0;u=u+Math.imul(h,ee)|0;c=c+Math.imul(h,te)|0;var ke=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(ke>>>26)|0;ke&=67108863;s=Math.imul(E,H);u=Math.imul(E,W);u=u+Math.imul(I,H)|0;c=Math.imul(I,W);s=s+Math.imul(_,G)|0;u=u+Math.imul(_,$)|0;u=u+Math.imul(k,G)|0;c=c+Math.imul(k,$)|0;s=s+Math.imul(b,Z)|0;u=u+Math.imul(b,Y)|0;u=u+Math.imul(y,Z)|0;c=c+Math.imul(y,Y)|0;s=s+Math.imul(m,ee)|0;u=u+Math.imul(m,te)|0;u=u+Math.imul(g,ee)|0;c=c+Math.imul(g,te)|0;s=s+Math.imul(d,ne)|0;u=u+Math.imul(d,ie)|0;u=u+Math.imul(h,ne)|0;c=c+Math.imul(h,ie)|0;var Ae=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Ae>>>26)|0;Ae&=67108863;s=Math.imul(B,H);u=Math.imul(B,W);u=u+Math.imul(M,H)|0;c=Math.imul(M,W);s=s+Math.imul(E,G)|0;u=u+Math.imul(E,$)|0;u=u+Math.imul(I,G)|0;c=c+Math.imul(I,$)|0;s=s+Math.imul(_,Z)|0;u=u+Math.imul(_,Y)|0;u=u+Math.imul(k,Z)|0;c=c+Math.imul(k,Y)|0;s=s+Math.imul(b,ee)|0;u=u+Math.imul(b,te)|0;u=u+Math.imul(y,ee)|0;c=c+Math.imul(y,te)|0;s=s+Math.imul(m,ne)|0;u=u+Math.imul(m,ie)|0;u=u+Math.imul(g,ne)|0;c=c+Math.imul(g,ie)|0;s=s+Math.imul(d,oe)|0;u=u+Math.imul(d,se)|0;u=u+Math.imul(h,oe)|0;c=c+Math.imul(h,se)|0;var Ee=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Ee>>>26)|0;Ee&=67108863;s=Math.imul(x,H);u=Math.imul(x,W);u=u+Math.imul(O,H)|0;c=Math.imul(O,W);s=s+Math.imul(B,G)|0;u=u+Math.imul(B,$)|0;u=u+Math.imul(M,G)|0;c=c+Math.imul(M,$)|0;s=s+Math.imul(E,Z)|0;u=u+Math.imul(E,Y)|0;u=u+Math.imul(I,Z)|0;c=c+Math.imul(I,Y)|0;s=s+Math.imul(_,ee)|0;u=u+Math.imul(_,te)|0;u=u+Math.imul(k,ee)|0;c=c+Math.imul(k,te)|0;s=s+Math.imul(b,ne)|0;u=u+Math.imul(b,ie)|0;u=u+Math.imul(y,ne)|0;c=c+Math.imul(y,ie)|0;s=s+Math.imul(m,oe)|0;u=u+Math.imul(m,se)|0;u=u+Math.imul(g,oe)|0;c=c+Math.imul(g,se)|0;s=s+Math.imul(d,ce)|0;u=u+Math.imul(d,le)|0;u=u+Math.imul(h,ce)|0;c=c+Math.imul(h,le)|0;var Ie=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Ie>>>26)|0;Ie&=67108863;s=Math.imul(C,H);u=Math.imul(C,W);u=u+Math.imul(z,H)|0;c=Math.imul(z,W);s=s+Math.imul(x,G)|0;u=u+Math.imul(x,$)|0;u=u+Math.imul(O,G)|0;c=c+Math.imul(O,$)|0;s=s+Math.imul(B,Z)|0;u=u+Math.imul(B,Y)|0;u=u+Math.imul(M,Z)|0;c=c+Math.imul(M,Y)|0;s=s+Math.imul(E,ee)|0;u=u+Math.imul(E,te)|0;u=u+Math.imul(I,ee)|0;c=c+Math.imul(I,te)|0;s=s+Math.imul(_,ne)|0;u=u+Math.imul(_,ie)|0;u=u+Math.imul(k,ne)|0;c=c+Math.imul(k,ie)|0;s=s+Math.imul(b,oe)|0;u=u+Math.imul(b,se)|0;u=u+Math.imul(y,oe)|0;c=c+Math.imul(y,se)|0;s=s+Math.imul(m,ce)|0;u=u+Math.imul(m,le)|0;u=u+Math.imul(g,ce)|0;c=c+Math.imul(g,le)|0;s=s+Math.imul(d,de)|0;u=u+Math.imul(d,he)|0;u=u+Math.imul(h,de)|0;c=c+Math.imul(h,he)|0;var Te=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Te>>>26)|0;Te&=67108863;s=Math.imul(j,H);u=Math.imul(j,W);u=u+Math.imul(L,H)|0;c=Math.imul(L,W);s=s+Math.imul(C,G)|0;u=u+Math.imul(C,$)|0;u=u+Math.imul(z,G)|0;c=c+Math.imul(z,$)|0;s=s+Math.imul(x,Z)|0;u=u+Math.imul(x,Y)|0;u=u+Math.imul(O,Z)|0;c=c+Math.imul(O,Y)|0;s=s+Math.imul(B,ee)|0;u=u+Math.imul(B,te)|0;u=u+Math.imul(M,ee)|0;c=c+Math.imul(M,te)|0;s=s+Math.imul(E,ne)|0;u=u+Math.imul(E,ie)|0;u=u+Math.imul(I,ne)|0;c=c+Math.imul(I,ie)|0;s=s+Math.imul(_,oe)|0;u=u+Math.imul(_,se)|0;u=u+Math.imul(k,oe)|0;c=c+Math.imul(k,se)|0;s=s+Math.imul(b,ce)|0;u=u+Math.imul(b,le)|0;u=u+Math.imul(y,ce)|0;c=c+Math.imul(y,le)|0;s=s+Math.imul(m,de)|0;u=u+Math.imul(m,he)|0;u=u+Math.imul(g,de)|0;c=c+Math.imul(g,he)|0;s=s+Math.imul(d,me)|0;u=u+Math.imul(d,ge)|0;u=u+Math.imul(h,me)|0;c=c+Math.imul(h,ge)|0;var Be=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Be>>>26)|0;Be&=67108863;s=Math.imul(U,H);u=Math.imul(U,W);u=u+Math.imul(q,H)|0;c=Math.imul(q,W);s=s+Math.imul(j,G)|0;u=u+Math.imul(j,$)|0;u=u+Math.imul(L,G)|0;c=c+Math.imul(L,$)|0;s=s+Math.imul(C,Z)|0;u=u+Math.imul(C,Y)|0;u=u+Math.imul(z,Z)|0;c=c+Math.imul(z,Y)|0;s=s+Math.imul(x,ee)|0;u=u+Math.imul(x,te)|0;u=u+Math.imul(O,ee)|0;c=c+Math.imul(O,te)|0;s=s+Math.imul(B,ne)|0;u=u+Math.imul(B,ie)|0;u=u+Math.imul(M,ne)|0;c=c+Math.imul(M,ie)|0;s=s+Math.imul(E,oe)|0;u=u+Math.imul(E,se)|0;u=u+Math.imul(I,oe)|0;c=c+Math.imul(I,se)|0;s=s+Math.imul(_,ce)|0;u=u+Math.imul(_,le)|0;u=u+Math.imul(k,ce)|0;c=c+Math.imul(k,le)|0;s=s+Math.imul(b,de)|0;u=u+Math.imul(b,he)|0;u=u+Math.imul(y,de)|0;c=c+Math.imul(y,he)|0;s=s+Math.imul(m,me)|0;u=u+Math.imul(m,ge)|0;u=u+Math.imul(g,me)|0;c=c+Math.imul(g,ge)|0;s=s+Math.imul(d,be)|0;u=u+Math.imul(d,ye)|0;u=u+Math.imul(h,be)|0;c=c+Math.imul(h,ye)|0;var Me=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Me>>>26)|0;Me&=67108863;s=Math.imul(U,G);u=Math.imul(U,$);u=u+Math.imul(q,G)|0;c=Math.imul(q,$);s=s+Math.imul(j,Z)|0;u=u+Math.imul(j,Y)|0;u=u+Math.imul(L,Z)|0;c=c+Math.imul(L,Y)|0;s=s+Math.imul(C,ee)|0;u=u+Math.imul(C,te)|0;u=u+Math.imul(z,ee)|0;c=c+Math.imul(z,te)|0;s=s+Math.imul(x,ne)|0;u=u+Math.imul(x,ie)|0;u=u+Math.imul(O,ne)|0;c=c+Math.imul(O,ie)|0;s=s+Math.imul(B,oe)|0;u=u+Math.imul(B,se)|0;u=u+Math.imul(M,oe)|0;c=c+Math.imul(M,se)|0;s=s+Math.imul(E,ce)|0;u=u+Math.imul(E,le)|0;u=u+Math.imul(I,ce)|0;c=c+Math.imul(I,le)|0;s=s+Math.imul(_,de)|0;u=u+Math.imul(_,he)|0;u=u+Math.imul(k,de)|0;c=c+Math.imul(k,he)|0;s=s+Math.imul(b,me)|0;u=u+Math.imul(b,ge)|0;u=u+Math.imul(y,me)|0;c=c+Math.imul(y,ge)|0;s=s+Math.imul(m,be)|0;u=u+Math.imul(m,ye)|0;u=u+Math.imul(g,be)|0;c=c+Math.imul(g,ye)|0;var Ne=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Ne>>>26)|0;Ne&=67108863;s=Math.imul(U,Z);u=Math.imul(U,Y);u=u+Math.imul(q,Z)|0;c=Math.imul(q,Y);s=s+Math.imul(j,ee)|0;u=u+Math.imul(j,te)|0;u=u+Math.imul(L,ee)|0;c=c+Math.imul(L,te)|0;s=s+Math.imul(C,ne)|0;u=u+Math.imul(C,ie)|0;u=u+Math.imul(z,ne)|0;c=c+Math.imul(z,ie)|0;s=s+Math.imul(x,oe)|0;u=u+Math.imul(x,se)|0;u=u+Math.imul(O,oe)|0;c=c+Math.imul(O,se)|0;s=s+Math.imul(B,ce)|0;u=u+Math.imul(B,le)|0;u=u+Math.imul(M,ce)|0;c=c+Math.imul(M,le)|0;s=s+Math.imul(E,de)|0;u=u+Math.imul(E,he)|0;u=u+Math.imul(I,de)|0;c=c+Math.imul(I,he)|0;s=s+Math.imul(_,me)|0;u=u+Math.imul(_,ge)|0;u=u+Math.imul(k,me)|0;c=c+Math.imul(k,ge)|0;s=s+Math.imul(b,be)|0;u=u+Math.imul(b,ye)|0;u=u+Math.imul(y,be)|0;c=c+Math.imul(y,ye)|0;var xe=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(xe>>>26)|0;xe&=67108863;s=Math.imul(U,ee);u=Math.imul(U,te);u=u+Math.imul(q,ee)|0;c=Math.imul(q,te);s=s+Math.imul(j,ne)|0;u=u+Math.imul(j,ie)|0;u=u+Math.imul(L,ne)|0;c=c+Math.imul(L,ie)|0;s=s+Math.imul(C,oe)|0;u=u+Math.imul(C,se)|0;u=u+Math.imul(z,oe)|0;c=c+Math.imul(z,se)|0;s=s+Math.imul(x,ce)|0;u=u+Math.imul(x,le)|0;u=u+Math.imul(O,ce)|0;c=c+Math.imul(O,le)|0;s=s+Math.imul(B,de)|0;u=u+Math.imul(B,he)|0;u=u+Math.imul(M,de)|0;c=c+Math.imul(M,he)|0;s=s+Math.imul(E,me)|0;u=u+Math.imul(E,ge)|0;u=u+Math.imul(I,me)|0;c=c+Math.imul(I,ge)|0;s=s+Math.imul(_,be)|0;u=u+Math.imul(_,ye)|0;u=u+Math.imul(k,be)|0;c=c+Math.imul(k,ye)|0;var Oe=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Oe>>>26)|0;Oe&=67108863;s=Math.imul(U,ne);u=Math.imul(U,ie);u=u+Math.imul(q,ne)|0;c=Math.imul(q,ie);s=s+Math.imul(j,oe)|0;u=u+Math.imul(j,se)|0;u=u+Math.imul(L,oe)|0;c=c+Math.imul(L,se)|0;s=s+Math.imul(C,ce)|0;u=u+Math.imul(C,le)|0;u=u+Math.imul(z,ce)|0;c=c+Math.imul(z,le)|0;s=s+Math.imul(x,de)|0;u=u+Math.imul(x,he)|0;u=u+Math.imul(O,de)|0;c=c+Math.imul(O,he)|0;s=s+Math.imul(B,me)|0;u=u+Math.imul(B,ge)|0;u=u+Math.imul(M,me)|0;c=c+Math.imul(M,ge)|0;s=s+Math.imul(E,be)|0;u=u+Math.imul(E,ye)|0;u=u+Math.imul(I,be)|0;c=c+Math.imul(I,ye)|0;var Pe=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Pe>>>26)|0;Pe&=67108863;s=Math.imul(U,oe);u=Math.imul(U,se);u=u+Math.imul(q,oe)|0;c=Math.imul(q,se);s=s+Math.imul(j,ce)|0;u=u+Math.imul(j,le)|0;u=u+Math.imul(L,ce)|0;c=c+Math.imul(L,le)|0;s=s+Math.imul(C,de)|0;u=u+Math.imul(C,he)|0;u=u+Math.imul(z,de)|0;c=c+Math.imul(z,he)|0;s=s+Math.imul(x,me)|0;u=u+Math.imul(x,ge)|0;u=u+Math.imul(O,me)|0;c=c+Math.imul(O,ge)|0;s=s+Math.imul(B,be)|0;u=u+Math.imul(B,ye)|0;u=u+Math.imul(M,be)|0;c=c+Math.imul(M,ye)|0;var Ce=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Ce>>>26)|0;Ce&=67108863;s=Math.imul(U,ce);u=Math.imul(U,le);u=u+Math.imul(q,ce)|0;c=Math.imul(q,le);s=s+Math.imul(j,de)|0;u=u+Math.imul(j,he)|0;u=u+Math.imul(L,de)|0;c=c+Math.imul(L,he)|0;s=s+Math.imul(C,me)|0;u=u+Math.imul(C,ge)|0;u=u+Math.imul(z,me)|0;c=c+Math.imul(z,ge)|0;s=s+Math.imul(x,be)|0;u=u+Math.imul(x,ye)|0;u=u+Math.imul(O,be)|0;c=c+Math.imul(O,ye)|0;var ze=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(ze>>>26)|0;ze&=67108863;s=Math.imul(U,de);u=Math.imul(U,he);u=u+Math.imul(q,de)|0;c=Math.imul(q,he);s=s+Math.imul(j,me)|0;u=u+Math.imul(j,ge)|0;u=u+Math.imul(L,me)|0;c=c+Math.imul(L,ge)|0;s=s+Math.imul(C,be)|0;u=u+Math.imul(C,ye)|0;u=u+Math.imul(z,be)|0;c=c+Math.imul(z,ye)|0;var Fe=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Fe>>>26)|0;Fe&=67108863;s=Math.imul(U,me);u=Math.imul(U,ge);u=u+Math.imul(q,me)|0;c=Math.imul(q,ge);s=s+Math.imul(j,be)|0;u=u+Math.imul(j,ye)|0;u=u+Math.imul(L,be)|0;c=c+Math.imul(L,ye)|0;var je=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(je>>>26)|0;je&=67108863;s=Math.imul(U,be);u=Math.imul(U,ye);u=u+Math.imul(q,be)|0;c=Math.imul(q,ye);var Le=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Le>>>26)|0;Le&=67108863;a[0]=we;a[1]=_e;a[2]=Se;a[3]=ke;a[4]=Ae;a[5]=Ee;a[6]=Ie;a[7]=Te;a[8]=Be;a[9]=Me;a[10]=Ne;a[11]=xe;a[12]=Oe;a[13]=Pe;a[14]=Ce;a[15]=ze;a[16]=Fe;a[17]=je;a[18]=Le;if(o!==0){a[19]=o;r.length++}return r};if(!Math.imul){s=smallMulTo}function bigMulTo(e,t,r){r.negative=t.negative^e.negative;r.length=e.length+t.length;var n=0;var i=0;for(var a=0;a<r.length-1;a++){var o=i;i=0;var s=n&67108863;var u=Math.min(a,t.length-1);for(var c=Math.max(0,a-e.length+1);c<=u;c++){var l=a-c;var d=e.words[l]|0;var h=t.words[c]|0;var p=d*h;var m=p&67108863;o=o+(p/67108864|0)|0;m=m+s|0;s=m&67108863;o=o+(m>>>26)|0;i+=o>>>26;o&=67108863}r.words[a]=s;n=o;o=i}if(n!==0){r.words[a]=n}else{r.length--}return r.strip()}function jumboMulTo(e,t,r){var n=new FFTM;return n.mulp(e,t,r)}BN.prototype.mulTo=function mulTo(e,t){var r;var n=this.length+e.length;if(this.length===10&&e.length===10){r=s(this,e,t)}else if(n<63){r=smallMulTo(this,e,t)}else if(n<1024){r=bigMulTo(this,e,t)}else{r=jumboMulTo(this,e,t)}return r};function FFTM(e,t){this.x=e;this.y=t}FFTM.prototype.makeRBT=function makeRBT(e){var t=new Array(e);var r=BN.prototype._countBits(e)-1;for(var n=0;n<e;n++){t[n]=this.revBin(n,r,e)}return t};FFTM.prototype.revBin=function revBin(e,t,r){if(e===0||e===r-1)return e;var n=0;for(var i=0;i<t;i++){n|=(e&1)<<t-i-1;e>>=1}return n};FFTM.prototype.permute=function permute(e,t,r,n,i,a){for(var o=0;o<a;o++){n[o]=t[e[o]];i[o]=r[e[o]]}};FFTM.prototype.transform=function transform(e,t,r,n,i,a){this.permute(a,e,t,r,n,i);for(var o=1;o<i;o<<=1){var s=o<<1;var u=Math.cos(2*Math.PI/s);var c=Math.sin(2*Math.PI/s);for(var l=0;l<i;l+=s){var d=u;var h=c;for(var p=0;p<o;p++){var m=r[l+p];var g=n[l+p];var v=r[l+p+o];var b=n[l+p+o];var y=d*v-h*b;b=d*b+h*v;v=y;r[l+p]=m+v;n[l+p]=g+b;r[l+p+o]=m-v;n[l+p+o]=g-b;if(p!==s){y=u*d-c*h;h=u*h+c*d;d=y}}}}};FFTM.prototype.guessLen13b=function guessLen13b(e,t){var r=Math.max(t,e)|1;var n=r&1;var i=0;for(r=r/2|0;r;r=r>>>1){i++}return 1<<i+1+n};FFTM.prototype.conjugate=function conjugate(e,t,r){if(r<=1)return;for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1];e[r-n-1]=i;i=t[n];t[n]=-t[r-n-1];t[r-n-1]=-i}};FFTM.prototype.normalize13b=function normalize13b(e,t){var r=0;for(var n=0;n<t/2;n++){var i=Math.round(e[2*n+1]/t)*8192+Math.round(e[2*n]/t)+r;e[n]=i&67108863;if(i<67108864){r=0}else{r=i/67108864|0}}return e};FFTM.prototype.convert13b=function convert13b(e,t,r,n){var i=0;for(var a=0;a<t;a++){i=i+(e[a]|0);r[2*a]=i&8191;i=i>>>13;r[2*a+1]=i&8191;i=i>>>13}for(a=2*t;a<n;++a){r[a]=0}assert(i===0);assert((i&~8191)===0)};FFTM.prototype.stub=function stub(e){var t=new Array(e);for(var r=0;r<e;r++){t[r]=0}return t};FFTM.prototype.mulp=function mulp(e,t,r){var n=2*this.guessLen13b(e.length,t.length);var i=this.makeRBT(n);var a=this.stub(n);var o=new Array(n);var s=new Array(n);var u=new Array(n);var c=new Array(n);var l=new Array(n);var d=new Array(n);var h=r.words;h.length=n;this.convert13b(e.words,e.length,o,n);this.convert13b(t.words,t.length,c,n);this.transform(o,a,s,u,n,i);this.transform(c,a,l,d,n,i);for(var p=0;p<n;p++){var m=s[p]*l[p]-u[p]*d[p];u[p]=s[p]*d[p]+u[p]*l[p];s[p]=m}this.conjugate(s,u,n);this.transform(s,u,h,a,n,i);this.conjugate(h,a,n);this.normalize13b(h,n);r.negative=e.negative^t.negative;r.length=e.length+t.length;return r.strip()};BN.prototype.mul=function mul(e){var t=new BN(null);t.words=new Array(this.length+e.length);return this.mulTo(e,t)};BN.prototype.mulf=function mulf(e){var t=new BN(null);t.words=new Array(this.length+e.length);return jumboMulTo(this,e,t)};BN.prototype.imul=function imul(e){return this.clone().mulTo(e,this)};BN.prototype.imuln=function imuln(e){assert(typeof e==="number");assert(e<67108864);var t=0;for(var r=0;r<this.length;r++){var n=(this.words[r]|0)*e;var i=(n&67108863)+(t&67108863);t>>=26;t+=n/67108864|0;t+=i>>>26;this.words[r]=i&67108863}if(t!==0){this.words[r]=t;this.length++}return this};BN.prototype.muln=function muln(e){return this.clone().imuln(e)};BN.prototype.sqr=function sqr(){return this.mul(this)};BN.prototype.isqr=function isqr(){return this.imul(this.clone())};BN.prototype.pow=function pow(e){var t=toBitArray(e);if(t.length===0)return new BN(1);var r=this;for(var n=0;n<t.length;n++,r=r.sqr()){if(t[n]!==0)break}if(++n<t.length){for(var i=r.sqr();n<t.length;n++,i=i.sqr()){if(t[n]===0)continue;r=r.mul(i)}}return r};BN.prototype.iushln=function iushln(e){assert(typeof e==="number"&&e>=0);var t=e%26;var r=(e-t)/26;var n=67108863>>>26-t<<26-t;var i;if(t!==0){var a=0;for(i=0;i<this.length;i++){var o=this.words[i]&n;var s=(this.words[i]|0)-o<<t;this.words[i]=s|a;a=o>>>26-t}if(a){this.words[i]=a;this.length++}}if(r!==0){for(i=this.length-1;i>=0;i--){this.words[i+r]=this.words[i]}for(i=0;i<r;i++){this.words[i]=0}this.length+=r}return this.strip()};BN.prototype.ishln=function ishln(e){assert(this.negative===0);return this.iushln(e)};BN.prototype.iushrn=function iushrn(e,t,r){assert(typeof e==="number"&&e>=0);var n;if(t){n=(t-t%26)/26}else{n=0}var i=e%26;var a=Math.min((e-i)/26,this.length);var o=67108863^67108863>>>i<<i;var s=r;n-=a;n=Math.max(0,n);if(s){for(var u=0;u<a;u++){s.words[u]=this.words[u]}s.length=a}if(a===0){}else if(this.length>a){this.length-=a;for(u=0;u<this.length;u++){this.words[u]=this.words[u+a]}}else{this.words[0]=0;this.length=1}var c=0;for(u=this.length-1;u>=0&&(c!==0||u>=n);u--){var l=this.words[u]|0;this.words[u]=c<<26-i|l>>>i;c=l&o}if(s&&c!==0){s.words[s.length++]=c}if(this.length===0){this.words[0]=0;this.length=1}return this.strip()};BN.prototype.ishrn=function ishrn(e,t,r){assert(this.negative===0);return this.iushrn(e,t,r)};BN.prototype.shln=function shln(e){return this.clone().ishln(e)};BN.prototype.ushln=function ushln(e){return this.clone().iushln(e)};BN.prototype.shrn=function shrn(e){return this.clone().ishrn(e)};BN.prototype.ushrn=function ushrn(e){return this.clone().iushrn(e)};BN.prototype.testn=function testn(e){assert(typeof e==="number"&&e>=0);var t=e%26;var r=(e-t)/26;var n=1<<t;if(this.length<=r)return false;var i=this.words[r];return!!(i&n)};BN.prototype.imaskn=function imaskn(e){assert(typeof e==="number"&&e>=0);var t=e%26;var r=(e-t)/26;assert(this.negative===0,"imaskn works only with positive numbers");if(this.length<=r){return this}if(t!==0){r++}this.length=Math.min(r,this.length);if(t!==0){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this.strip()};BN.prototype.maskn=function maskn(e){return this.clone().imaskn(e)};BN.prototype.iaddn=function iaddn(e){assert(typeof e==="number");assert(e<67108864);if(e<0)return this.isubn(-e);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<e){this.words[0]=e-(this.words[0]|0);this.negative=0;return this}this.negative=0;this.isubn(e);this.negative=1;return this}return this._iaddn(e)};BN.prototype._iaddn=function _iaddn(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++){this.words[t]-=67108864;if(t===this.length-1){this.words[t+1]=1}else{this.words[t+1]++}}this.length=Math.max(this.length,t+1);return this};BN.prototype.isubn=function isubn(e){assert(typeof e==="number");assert(e<67108864);if(e<0)return this.iaddn(-e);if(this.negative!==0){this.negative=0;this.iaddn(e);this.negative=1;return this}this.words[0]-=e;if(this.length===1&&this.words[0]<0){this.words[0]=-this.words[0];this.negative=1}else{for(var t=0;t<this.length&&this.words[t]<0;t++){this.words[t]+=67108864;this.words[t+1]-=1}}return this.strip()};BN.prototype.addn=function addn(e){return this.clone().iaddn(e)};BN.prototype.subn=function subn(e){return this.clone().isubn(e)};BN.prototype.iabs=function iabs(){this.negative=0;return this};BN.prototype.abs=function abs(){return this.clone().iabs()};BN.prototype._ishlnsubmul=function _ishlnsubmul(e,t,r){var n=e.length+r;var i;this._expand(n);var a;var o=0;for(i=0;i<e.length;i++){a=(this.words[i+r]|0)+o;var s=(e.words[i]|0)*t;a-=s&67108863;o=(a>>26)-(s/67108864|0);this.words[i+r]=a&67108863}for(;i<this.length-r;i++){a=(this.words[i+r]|0)+o;o=a>>26;this.words[i+r]=a&67108863}if(o===0)return this.strip();assert(o===-1);o=0;for(i=0;i<this.length;i++){a=-(this.words[i]|0)+o;o=a>>26;this.words[i]=a&67108863}this.negative=1;return this.strip()};BN.prototype._wordDiv=function _wordDiv(e,t){var r=this.length-e.length;var n=this.clone();var i=e;var a=i.words[i.length-1]|0;var o=this._countBits(a);r=26-o;if(r!==0){i=i.ushln(r);n.iushln(r);a=i.words[i.length-1]|0}var s=n.length-i.length;var u;if(t!=="mod"){u=new BN(null);u.length=s+1;u.words=new Array(u.length);for(var c=0;c<u.length;c++){u.words[c]=0}}var l=n.clone()._ishlnsubmul(i,1,s);if(l.negative===0){n=l;if(u){u.words[s]=1}}for(var d=s-1;d>=0;d--){var h=(n.words[i.length+d]|0)*67108864+(n.words[i.length+d-1]|0);h=Math.min(h/a|0,67108863);n._ishlnsubmul(i,h,d);while(n.negative!==0){h--;n.negative=0;n._ishlnsubmul(i,1,d);if(!n.isZero()){n.negative^=1}}if(u){u.words[d]=h}}if(u){u.strip()}n.strip();if(t!=="div"&&r!==0){n.iushrn(r)}return{div:u||null,mod:n}};BN.prototype.divmod=function divmod(e,t,r){assert(!e.isZero());if(this.isZero()){return{div:new BN(0),mod:new BN(0)}}var n,i,a;if(this.negative!==0&&e.negative===0){a=this.neg().divmod(e,t);if(t!=="mod"){n=a.div.neg()}if(t!=="div"){i=a.mod.neg();if(r&&i.negative!==0){i.iadd(e)}}return{div:n,mod:i}}if(this.negative===0&&e.negative!==0){a=this.divmod(e.neg(),t);if(t!=="mod"){n=a.div.neg()}return{div:n,mod:a.mod}}if((this.negative&e.negative)!==0){a=this.neg().divmod(e.neg(),t);if(t!=="div"){i=a.mod.neg();if(r&&i.negative!==0){i.isub(e)}}return{div:a.div,mod:i}}if(e.length>this.length||this.cmp(e)<0){return{div:new BN(0),mod:this}}if(e.length===1){if(t==="div"){return{div:this.divn(e.words[0]),mod:null}}if(t==="mod"){return{div:null,mod:new BN(this.modn(e.words[0]))}}return{div:this.divn(e.words[0]),mod:new BN(this.modn(e.words[0]))}}return this._wordDiv(e,t)};BN.prototype.div=function div(e){return this.divmod(e,"div",false).div};BN.prototype.mod=function mod(e){return this.divmod(e,"mod",false).mod};BN.prototype.umod=function umod(e){return this.divmod(e,"mod",true).mod};BN.prototype.divRound=function divRound(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=t.div.negative!==0?t.mod.isub(e):t.mod;var n=e.ushrn(1);var i=e.andln(1);var a=r.cmp(n);if(a<0||i===1&&a===0)return t.div;return t.div.negative!==0?t.div.isubn(1):t.div.iaddn(1)};BN.prototype.modn=function modn(e){assert(e<=67108863);var t=(1<<26)%e;var r=0;for(var n=this.length-1;n>=0;n--){r=(t*r+(this.words[n]|0))%e}return r};BN.prototype.idivn=function idivn(e){assert(e<=67108863);var t=0;for(var r=this.length-1;r>=0;r--){var n=(this.words[r]|0)+t*67108864;this.words[r]=n/e|0;t=n%e}return this.strip()};BN.prototype.divn=function divn(e){return this.clone().idivn(e)};BN.prototype.egcd=function egcd(e){assert(e.negative===0);assert(!e.isZero());var t=this;var r=e.clone();if(t.negative!==0){t=t.umod(e)}else{t=t.clone()}var n=new BN(1);var i=new BN(0);var a=new BN(0);var o=new BN(1);var s=0;while(t.isEven()&&r.isEven()){t.iushrn(1);r.iushrn(1);++s}var u=r.clone();var c=t.clone();while(!t.isZero()){for(var l=0,d=1;(t.words[0]&d)===0&&l<26;++l,d<<=1);if(l>0){t.iushrn(l);while(l-- >0){if(n.isOdd()||i.isOdd()){n.iadd(u);i.isub(c)}n.iushrn(1);i.iushrn(1)}}for(var h=0,p=1;(r.words[0]&p)===0&&h<26;++h,p<<=1);if(h>0){r.iushrn(h);while(h-- >0){if(a.isOdd()||o.isOdd()){a.iadd(u);o.isub(c)}a.iushrn(1);o.iushrn(1)}}if(t.cmp(r)>=0){t.isub(r);n.isub(a);i.isub(o)}else{r.isub(t);a.isub(n);o.isub(i)}}return{a:a,b:o,gcd:r.iushln(s)}};BN.prototype._invmp=function _invmp(e){assert(e.negative===0);assert(!e.isZero());var t=this;var r=e.clone();if(t.negative!==0){t=t.umod(e)}else{t=t.clone()}var n=new BN(1);var i=new BN(0);var a=r.clone();while(t.cmpn(1)>0&&r.cmpn(1)>0){for(var o=0,s=1;(t.words[0]&s)===0&&o<26;++o,s<<=1);if(o>0){t.iushrn(o);while(o-- >0){if(n.isOdd()){n.iadd(a)}n.iushrn(1)}}for(var u=0,c=1;(r.words[0]&c)===0&&u<26;++u,c<<=1);if(u>0){r.iushrn(u);while(u-- >0){if(i.isOdd()){i.iadd(a)}i.iushrn(1)}}if(t.cmp(r)>=0){t.isub(r);n.isub(i)}else{r.isub(t);i.isub(n)}}var l;if(t.cmpn(1)===0){l=n}else{l=i}if(l.cmpn(0)<0){l.iadd(e)}return l};BN.prototype.gcd=function gcd(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone();var r=e.clone();t.negative=0;r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++){t.iushrn(1);r.iushrn(1)}do{while(t.isEven()){t.iushrn(1)}while(r.isEven()){r.iushrn(1)}var i=t.cmp(r);if(i<0){var a=t;t=r;r=a}else if(i===0||r.cmpn(1)===0){break}t.isub(r)}while(true);return r.iushln(n)};BN.prototype.invm=function invm(e){return this.egcd(e).a.umod(e)};BN.prototype.isEven=function isEven(){return(this.words[0]&1)===0};BN.prototype.isOdd=function isOdd(){return(this.words[0]&1)===1};BN.prototype.andln=function andln(e){return this.words[0]&e};BN.prototype.bincn=function bincn(e){assert(typeof e==="number");var t=e%26;var r=(e-t)/26;var n=1<<t;if(this.length<=r){this._expand(r+1);this.words[r]|=n;return this}var i=n;for(var a=r;i!==0&&a<this.length;a++){var o=this.words[a]|0;o+=i;i=o>>>26;o&=67108863;this.words[a]=o}if(i!==0){this.words[a]=i;this.length++}return this};BN.prototype.isZero=function isZero(){return this.length===1&&this.words[0]===0};BN.prototype.cmpn=function cmpn(e){var t=e<0;if(this.negative!==0&&!t)return-1;if(this.negative===0&&t)return 1;this.strip();var r;if(this.length>1){r=1}else{if(t){e=-e}assert(e<=67108863,"Number is too big");var n=this.words[0]|0;r=n===e?0:n<e?-1:1}if(this.negative!==0)return-r|0;return r};BN.prototype.cmp=function cmp(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var t=this.ucmp(e);if(this.negative!==0)return-t|0;return t};BN.prototype.ucmp=function ucmp(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;var t=0;for(var r=this.length-1;r>=0;r--){var n=this.words[r]|0;var i=e.words[r]|0;if(n===i)continue;if(n<i){t=-1}else if(n>i){t=1}break}return t};BN.prototype.gtn=function gtn(e){return this.cmpn(e)===1};BN.prototype.gt=function gt(e){return this.cmp(e)===1};BN.prototype.gten=function gten(e){return this.cmpn(e)>=0};BN.prototype.gte=function gte(e){return this.cmp(e)>=0};BN.prototype.ltn=function ltn(e){return this.cmpn(e)===-1};BN.prototype.lt=function lt(e){return this.cmp(e)===-1};BN.prototype.lten=function lten(e){return this.cmpn(e)<=0};BN.prototype.lte=function lte(e){return this.cmp(e)<=0};BN.prototype.eqn=function eqn(e){return this.cmpn(e)===0};BN.prototype.eq=function eq(e){return this.cmp(e)===0};BN.red=function red(e){return new Red(e)};BN.prototype.toRed=function toRed(e){assert(!this.red,"Already a number in reduction context");assert(this.negative===0,"red works only with positives");return e.convertTo(this)._forceRed(e)};BN.prototype.fromRed=function fromRed(){assert(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)};BN.prototype._forceRed=function _forceRed(e){this.red=e;return this};BN.prototype.forceRed=function forceRed(e){assert(!this.red,"Already a number in reduction context");return this._forceRed(e)};BN.prototype.redAdd=function redAdd(e){assert(this.red,"redAdd works only with red numbers");return this.red.add(this,e)};BN.prototype.redIAdd=function redIAdd(e){assert(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,e)};BN.prototype.redSub=function redSub(e){assert(this.red,"redSub works only with red numbers");return this.red.sub(this,e)};BN.prototype.redISub=function redISub(e){assert(this.red,"redISub works only with red numbers");return this.red.isub(this,e)};BN.prototype.redShl=function redShl(e){assert(this.red,"redShl works only with red numbers");return this.red.shl(this,e)};BN.prototype.redMul=function redMul(e){assert(this.red,"redMul works only with red numbers");this.red._verify2(this,e);return this.red.mul(this,e)};BN.prototype.redIMul=function redIMul(e){assert(this.red,"redMul works only with red numbers");this.red._verify2(this,e);return this.red.imul(this,e)};BN.prototype.redSqr=function redSqr(){assert(this.red,"redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};BN.prototype.redISqr=function redISqr(){assert(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};BN.prototype.redSqrt=function redSqrt(){assert(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};BN.prototype.redInvm=function redInvm(){assert(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};BN.prototype.redNeg=function redNeg(){assert(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};BN.prototype.redPow=function redPow(e){assert(this.red&&!e.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,e)};var u={k256:null,p224:null,p192:null,p25519:null};function MPrime(e,t){this.name=e;this.p=new BN(t,16);this.n=this.p.bitLength();this.k=new BN(1).iushln(this.n).isub(this.p);this.tmp=this._tmp()}MPrime.prototype._tmp=function _tmp(){var e=new BN(null);e.words=new Array(Math.ceil(this.n/13));return e};MPrime.prototype.ireduce=function ireduce(e){var t=e;var r;do{this.split(t,this.tmp);t=this.imulK(t);t=t.iadd(this.tmp);r=t.bitLength()}while(r>this.n);var n=r<this.n?-1:t.ucmp(this.p);if(n===0){t.words[0]=0;t.length=1}else if(n>0){t.isub(this.p)}else{if(t.strip!==undefined){t.strip()}else{t._strip()}}return t};MPrime.prototype.split=function split(e,t){e.iushrn(this.n,0,t)};MPrime.prototype.imulK=function imulK(e){return e.imul(this.k)};function K256(){MPrime.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}inherits(K256,MPrime);K256.prototype.split=function split(e,t){var r=4194303;var n=Math.min(e.length,9);for(var i=0;i<n;i++){t.words[i]=e.words[i]}t.length=n;if(e.length<=9){e.words[0]=0;e.length=1;return}var a=e.words[9];t.words[t.length++]=a&r;for(i=10;i<e.length;i++){var o=e.words[i]|0;e.words[i-10]=(o&r)<<4|a>>>22;a=o}a>>>=22;e.words[i-10]=a;if(a===0&&e.length>10){e.length-=10}else{e.length-=9}};K256.prototype.imulK=function imulK(e){e.words[e.length]=0;e.words[e.length+1]=0;e.length+=2;var t=0;for(var r=0;r<e.length;r++){var n=e.words[r]|0;t+=n*977;e.words[r]=t&67108863;t=n*64+(t/67108864|0)}if(e.words[e.length-1]===0){e.length--;if(e.words[e.length-1]===0){e.length--}}return e};function P224(){MPrime.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}inherits(P224,MPrime);function P192(){MPrime.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}inherits(P192,MPrime);function P25519(){MPrime.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}inherits(P25519,MPrime);P25519.prototype.imulK=function imulK(e){var t=0;for(var r=0;r<e.length;r++){var n=(e.words[r]|0)*19+t;var i=n&67108863;n>>>=26;e.words[r]=i;t=n}if(t!==0){e.words[e.length++]=t}return e};BN._prime=function prime(e){if(u[e])return u[e];var prime;if(e==="k256"){prime=new K256}else if(e==="p224"){prime=new P224}else if(e==="p192"){prime=new P192}else if(e==="p25519"){prime=new P25519}else{throw new Error("Unknown prime "+e)}u[e]=prime;return prime};function Red(e){if(typeof e==="string"){var t=BN._prime(e);this.m=t.p;this.prime=t}else{assert(e.gtn(1),"modulus must be greater than 1");this.m=e;this.prime=null}}Red.prototype._verify1=function _verify1(e){assert(e.negative===0,"red works only with positives");assert(e.red,"red works only with red numbers")};Red.prototype._verify2=function _verify2(e,t){assert((e.negative|t.negative)===0,"red works only with positives");assert(e.red&&e.red===t.red,"red works only with red numbers")};Red.prototype.imod=function imod(e){if(this.prime)return this.prime.ireduce(e)._forceRed(this);return e.umod(this.m)._forceRed(this)};Red.prototype.neg=function neg(e){if(e.isZero()){return e.clone()}return this.m.sub(e)._forceRed(this)};Red.prototype.add=function add(e,t){this._verify2(e,t);var r=e.add(t);if(r.cmp(this.m)>=0){r.isub(this.m)}return r._forceRed(this)};Red.prototype.iadd=function iadd(e,t){this._verify2(e,t);var r=e.iadd(t);if(r.cmp(this.m)>=0){r.isub(this.m)}return r};Red.prototype.sub=function sub(e,t){this._verify2(e,t);var r=e.sub(t);if(r.cmpn(0)<0){r.iadd(this.m)}return r._forceRed(this)};Red.prototype.isub=function isub(e,t){this._verify2(e,t);var r=e.isub(t);if(r.cmpn(0)<0){r.iadd(this.m)}return r};Red.prototype.shl=function shl(e,t){this._verify1(e);return this.imod(e.ushln(t))};Red.prototype.imul=function imul(e,t){this._verify2(e,t);return this.imod(e.imul(t))};Red.prototype.mul=function mul(e,t){this._verify2(e,t);return this.imod(e.mul(t))};Red.prototype.isqr=function isqr(e){return this.imul(e,e.clone())};Red.prototype.sqr=function sqr(e){return this.mul(e,e)};Red.prototype.sqrt=function sqrt(e){if(e.isZero())return e.clone();var t=this.m.andln(3);assert(t%2===1);if(t===3){var r=this.m.add(new BN(1)).iushrn(2);return this.pow(e,r)}var n=this.m.subn(1);var i=0;while(!n.isZero()&&n.andln(1)===0){i++;n.iushrn(1)}assert(!n.isZero());var a=new BN(1).toRed(this);var o=a.redNeg();var s=this.m.subn(1).iushrn(1);var u=this.m.bitLength();u=new BN(2*u*u).toRed(this);while(this.pow(u,s).cmp(o)!==0){u.redIAdd(o)}var c=this.pow(u,n);var l=this.pow(e,n.addn(1).iushrn(1));var d=this.pow(e,n);var h=i;while(d.cmp(a)!==0){var p=d;for(var m=0;p.cmp(a)!==0;m++){p=p.redSqr()}assert(m<h);var g=this.pow(c,new BN(1).iushln(h-m-1));l=l.redMul(g);c=g.redSqr();d=d.redMul(c);h=m}return l};Red.prototype.invm=function invm(e){var t=e._invmp(this.m);if(t.negative!==0){t.negative=0;return this.imod(t).redNeg()}else{return this.imod(t)}};Red.prototype.pow=function pow(e,t){if(t.isZero())return new BN(1).toRed(this);if(t.cmpn(1)===0)return e.clone();var r=4;var n=new Array(1<<r);n[0]=new BN(1).toRed(this);n[1]=e;for(var i=2;i<n.length;i++){n[i]=this.mul(n[i-1],e)}var a=n[0];var o=0;var s=0;var u=t.bitLength()%26;if(u===0){u=26}for(i=t.length-1;i>=0;i--){var c=t.words[i];for(var l=u-1;l>=0;l--){var d=c>>l&1;if(a!==n[0]){a=this.sqr(a)}if(d===0&&o===0){s=0;continue}o<<=1;o|=d;s++;if(s!==r&&(i!==0||l!==0))continue;a=this.mul(a,n[o]);s=0;o=0}u=26}return a};Red.prototype.convertTo=function convertTo(e){var t=e.umod(this.m);return t===e?t.clone():t};Red.prototype.convertFrom=function convertFrom(e){var t=e.clone();t.red=null;return t};BN.mont=function mont(e){return new Mont(e)};function Mont(e){Red.call(this,e);this.shift=this.m.bitLength();if(this.shift%26!==0){this.shift+=26-this.shift%26}this.r=new BN(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)}inherits(Mont,Red);Mont.prototype.convertTo=function convertTo(e){return this.imod(e.ushln(this.shift))};Mont.prototype.convertFrom=function convertFrom(e){var t=this.imod(e.mul(this.rinv));t.red=null;return t};Mont.prototype.imul=function imul(e,t){if(e.isZero()||t.isZero()){e.words[0]=0;e.length=1;return e}var r=e.imul(t);var n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);var i=r.isub(n).iushrn(this.shift);var a=i;if(i.cmp(this.m)>=0){a=i.isub(this.m)}else if(i.cmpn(0)<0){a=i.iadd(this.m)}return a._forceRed(this)};Mont.prototype.mul=function mul(e,t){if(e.isZero()||t.isZero())return new BN(0)._forceRed(this);var r=e.mul(t);var n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);var i=r.isub(n).iushrn(this.shift);var a=i;if(i.cmp(this.m)>=0){a=i.isub(this.m)}else if(i.cmpn(0)<0){a=i.iadd(this.m)}return a._forceRed(this)};Mont.prototype.invm=function invm(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}})(false||e,this)},3803:(e,t,r)=>{var n;e.exports=function rand(e){if(!n)n=new Rand(null);return n.generate(e)};function Rand(e){this.rand=e}e.exports.Rand=Rand;Rand.prototype.generate=function generate(e){return this._rand(e)};Rand.prototype._rand=function _rand(e){if(this.rand.getBytes)return this.rand.getBytes(e);var t=new Uint8Array(e);for(var r=0;r<t.length;r++)t[r]=this.rand.getByte();return t};if(typeof self==="object"){if(self.crypto&&self.crypto.getRandomValues){Rand.prototype._rand=function _rand(e){var t=new Uint8Array(e);self.crypto.getRandomValues(t);return t}}else if(self.msCrypto&&self.msCrypto.getRandomValues){Rand.prototype._rand=function _rand(e){var t=new Uint8Array(e);self.msCrypto.getRandomValues(t);return t}}else if(typeof window==="object"){Rand.prototype._rand=function(){throw new Error("Not implemented yet")}}}else{try{var i=r(6113);if(typeof i.randomBytes!=="function")throw new Error("Not supported");Rand.prototype._rand=function _rand(e){return i.randomBytes(e)}}catch(e){}}},1983:(e,t,r)=>{var n=r(3358);var i="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";e.exports=n(i)},778:(e,t,r)=>{"use strict";var n=r(1983);var i=r(6621).Buffer;e.exports=function(e){function encode(t){var r=e(t);return n.encode(i.concat([t,r],t.length+4))}function decodeRaw(t){var r=t.slice(0,-4);var n=t.slice(-4);var i=e(r);if(n[0]^i[0]|n[1]^i[1]|n[2]^i[2]|n[3]^i[3])return;return r}function decodeUnsafe(e){var t=n.decodeUnsafe(e);if(!t)return;return decodeRaw(t)}function decode(t){var r=n.decode(t);var i=decodeRaw(r,e);if(!i)throw new Error("Invalid checksum");return i}return{encode:encode,decode:decode,decodeUnsafe:decodeUnsafe}}},1768:(e,t,r)=>{"use strict";var n=r(3614);var i=r(778);function sha256x2(e){var t=n("sha256").update(e).digest();return n("sha256").update(t).digest()}e.exports=i(sha256x2)},3365:(e,t,r)=>{"use strict";
|
2
|
+
/*!
|
3
|
+
* The buffer module from node.js, for the browser.
|
4
|
+
*
|
5
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
6
|
+
* @license MIT
|
7
|
+
*/var n=r(3325);var i=r(2458);var a=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=Buffer;t.SlowBuffer=SlowBuffer;t.INSPECT_MAX_BYTES=50;var o=2147483647;t.kMaxLength=o;Buffer.TYPED_ARRAY_SUPPORT=typedArraySupport();if(!Buffer.TYPED_ARRAY_SUPPORT&&typeof console!=="undefined"&&typeof console.error==="function"){console.error("This browser lacks typed array (Uint8Array) support which is required by "+"`buffer` v5.x. Use `buffer` v4.x if you require old browser support.")}function typedArraySupport(){try{var e=new Uint8Array(1);var t={foo:function(){return 42}};Object.setPrototypeOf(t,Uint8Array.prototype);Object.setPrototypeOf(e,t);return e.foo()===42}catch(e){return false}}Object.defineProperty(Buffer.prototype,"parent",{enumerable:true,get:function(){if(!Buffer.isBuffer(this))return undefined;return this.buffer}});Object.defineProperty(Buffer.prototype,"offset",{enumerable:true,get:function(){if(!Buffer.isBuffer(this))return undefined;return this.byteOffset}});function createBuffer(e){if(e>o){throw new RangeError('The value "'+e+'" is invalid for option "size"')}var t=new Uint8Array(e);Object.setPrototypeOf(t,Buffer.prototype);return t}function Buffer(e,t,r){if(typeof e==="number"){if(typeof t==="string"){throw new TypeError('The "string" argument must be of type string. Received type number')}return allocUnsafe(e)}return from(e,t,r)}Buffer.poolSize=8192;function from(e,t,r){if(typeof e==="string"){return fromString(e,t)}if(ArrayBuffer.isView(e)){return fromArrayLike(e)}if(e==null){throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, "+"or Array-like Object. Received type "+typeof e)}if(isInstance(e,ArrayBuffer)||e&&isInstance(e.buffer,ArrayBuffer)){return fromArrayBuffer(e,t,r)}if(typeof SharedArrayBuffer!=="undefined"&&(isInstance(e,SharedArrayBuffer)||e&&isInstance(e.buffer,SharedArrayBuffer))){return fromArrayBuffer(e,t,r)}if(typeof e==="number"){throw new TypeError('The "value" argument must not be of type number. Received type number')}var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e){return Buffer.from(n,t,r)}var i=fromObject(e);if(i)return i;if(typeof Symbol!=="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==="function"){return Buffer.from(e[Symbol.toPrimitive]("string"),t,r)}throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, "+"or Array-like Object. Received type "+typeof e)}Buffer.from=function(e,t,r){return from(e,t,r)};Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype);Object.setPrototypeOf(Buffer,Uint8Array);function assertSize(e){if(typeof e!=="number"){throw new TypeError('"size" argument must be of type number')}else if(e<0){throw new RangeError('The value "'+e+'" is invalid for option "size"')}}function alloc(e,t,r){assertSize(e);if(e<=0){return createBuffer(e)}if(t!==undefined){return typeof r==="string"?createBuffer(e).fill(t,r):createBuffer(e).fill(t)}return createBuffer(e)}Buffer.alloc=function(e,t,r){return alloc(e,t,r)};function allocUnsafe(e){assertSize(e);return createBuffer(e<0?0:checked(e)|0)}Buffer.allocUnsafe=function(e){return allocUnsafe(e)};Buffer.allocUnsafeSlow=function(e){return allocUnsafe(e)};function fromString(e,t){if(typeof t!=="string"||t===""){t="utf8"}if(!Buffer.isEncoding(t)){throw new TypeError("Unknown encoding: "+t)}var r=byteLength(e,t)|0;var n=createBuffer(r);var i=n.write(e,t);if(i!==r){n=n.slice(0,i)}return n}function fromArrayLike(e){var t=e.length<0?0:checked(e.length)|0;var r=createBuffer(t);for(var n=0;n<t;n+=1){r[n]=e[n]&255}return r}function fromArrayBuffer(e,t,r){if(t<0||e.byteLength<t){throw new RangeError('"offset" is outside of buffer bounds')}if(e.byteLength<t+(r||0)){throw new RangeError('"length" is outside of buffer bounds')}var n;if(t===undefined&&r===undefined){n=new Uint8Array(e)}else if(r===undefined){n=new Uint8Array(e,t)}else{n=new Uint8Array(e,t,r)}Object.setPrototypeOf(n,Buffer.prototype);return n}function fromObject(e){if(Buffer.isBuffer(e)){var t=checked(e.length)|0;var r=createBuffer(t);if(r.length===0){return r}e.copy(r,0,0,t);return r}if(e.length!==undefined){if(typeof e.length!=="number"||numberIsNaN(e.length)){return createBuffer(0)}return fromArrayLike(e)}if(e.type==="Buffer"&&Array.isArray(e.data)){return fromArrayLike(e.data)}}function checked(e){if(e>=o){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+o.toString(16)+" bytes")}return e|0}function SlowBuffer(e){if(+e!=e){e=0}return Buffer.alloc(+e)}Buffer.isBuffer=function isBuffer(e){return e!=null&&e._isBuffer===true&&e!==Buffer.prototype};Buffer.compare=function compare(e,t){if(isInstance(e,Uint8Array))e=Buffer.from(e,e.offset,e.byteLength);if(isInstance(t,Uint8Array))t=Buffer.from(t,t.offset,t.byteLength);if(!Buffer.isBuffer(e)||!Buffer.isBuffer(t)){throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array')}if(e===t)return 0;var r=e.length;var n=t.length;for(var i=0,a=Math.min(r,n);i<a;++i){if(e[i]!==t[i]){r=e[i];n=t[i];break}}if(r<n)return-1;if(n<r)return 1;return 0};Buffer.isEncoding=function isEncoding(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};Buffer.concat=function concat(e,t){if(!Array.isArray(e)){throw new TypeError('"list" argument must be an Array of Buffers')}if(e.length===0){return Buffer.alloc(0)}var r;if(t===undefined){t=0;for(r=0;r<e.length;++r){t+=e[r].length}}var n=Buffer.allocUnsafe(t);var i=0;for(r=0;r<e.length;++r){var a=e[r];if(isInstance(a,Uint8Array)){a=Buffer.from(a)}if(!Buffer.isBuffer(a)){throw new TypeError('"list" argument must be an Array of Buffers')}a.copy(n,i);i+=a.length}return n};function byteLength(e,t){if(Buffer.isBuffer(e)){return e.length}if(ArrayBuffer.isView(e)||isInstance(e,ArrayBuffer)){return e.byteLength}if(typeof e!=="string"){throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. '+"Received type "+typeof e)}var r=e.length;var n=arguments.length>2&&arguments[2]===true;if(!n&&r===0)return 0;var i=false;for(;;){switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return base64ToBytes(e).length;default:if(i){return n?-1:utf8ToBytes(e).length}t=(""+t).toLowerCase();i=true}}}Buffer.byteLength=byteLength;function slowToString(e,t,r){var n=false;if(t===undefined||t<0){t=0}if(t>this.length){return""}if(r===undefined||r>this.length){r=this.length}if(r<=0){return""}r>>>=0;t>>>=0;if(r<=t){return""}if(!e)e="utf8";while(true){switch(e){case"hex":return hexSlice(this,t,r);case"utf8":case"utf-8":return utf8Slice(this,t,r);case"ascii":return asciiSlice(this,t,r);case"latin1":case"binary":return latin1Slice(this,t,r);case"base64":return base64Slice(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase();n=true}}}Buffer.prototype._isBuffer=true;function swap(e,t,r){var n=e[t];e[t]=e[r];e[r]=n}Buffer.prototype.swap16=function swap16(){var e=this.length;if(e%2!==0){throw new RangeError("Buffer size must be a multiple of 16-bits")}for(var t=0;t<e;t+=2){swap(this,t,t+1)}return this};Buffer.prototype.swap32=function swap32(){var e=this.length;if(e%4!==0){throw new RangeError("Buffer size must be a multiple of 32-bits")}for(var t=0;t<e;t+=4){swap(this,t,t+3);swap(this,t+1,t+2)}return this};Buffer.prototype.swap64=function swap64(){var e=this.length;if(e%8!==0){throw new RangeError("Buffer size must be a multiple of 64-bits")}for(var t=0;t<e;t+=8){swap(this,t,t+7);swap(this,t+1,t+6);swap(this,t+2,t+5);swap(this,t+3,t+4)}return this};Buffer.prototype.toString=function toString(){var e=this.length;if(e===0)return"";if(arguments.length===0)return utf8Slice(this,0,e);return slowToString.apply(this,arguments)};Buffer.prototype.toLocaleString=Buffer.prototype.toString;Buffer.prototype.equals=function equals(e){if(!Buffer.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(this===e)return true;return Buffer.compare(this,e)===0};Buffer.prototype.inspect=function inspect(){var e="";var r=t.INSPECT_MAX_BYTES;e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim();if(this.length>r)e+=" ... ";return"<Buffer "+e+">"};if(a){Buffer.prototype[a]=Buffer.prototype.inspect}Buffer.prototype.compare=function compare(e,t,r,n,i){if(isInstance(e,Uint8Array)){e=Buffer.from(e,e.offset,e.byteLength)}if(!Buffer.isBuffer(e)){throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. '+"Received type "+typeof e)}if(t===undefined){t=0}if(r===undefined){r=e?e.length:0}if(n===undefined){n=0}if(i===undefined){i=this.length}if(t<0||r>e.length||n<0||i>this.length){throw new RangeError("out of range index")}if(n>=i&&t>=r){return 0}if(n>=i){return-1}if(t>=r){return 1}t>>>=0;r>>>=0;n>>>=0;i>>>=0;if(this===e)return 0;var a=i-n;var o=r-t;var s=Math.min(a,o);var u=this.slice(n,i);var c=e.slice(t,r);for(var l=0;l<s;++l){if(u[l]!==c[l]){a=u[l];o=c[l];break}}if(a<o)return-1;if(o<a)return 1;return 0};function bidirectionalIndexOf(e,t,r,n,i){if(e.length===0)return-1;if(typeof r==="string"){n=r;r=0}else if(r>2147483647){r=2147483647}else if(r<-2147483648){r=-2147483648}r=+r;if(numberIsNaN(r)){r=i?0:e.length-1}if(r<0)r=e.length+r;if(r>=e.length){if(i)return-1;else r=e.length-1}else if(r<0){if(i)r=0;else return-1}if(typeof t==="string"){t=Buffer.from(t,n)}if(Buffer.isBuffer(t)){if(t.length===0){return-1}return arrayIndexOf(e,t,r,n,i)}else if(typeof t==="number"){t=t&255;if(typeof Uint8Array.prototype.indexOf==="function"){if(i){return Uint8Array.prototype.indexOf.call(e,t,r)}else{return Uint8Array.prototype.lastIndexOf.call(e,t,r)}}return arrayIndexOf(e,[t],r,n,i)}throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,t,r,n,i){var a=1;var o=e.length;var s=t.length;if(n!==undefined){n=String(n).toLowerCase();if(n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le"){if(e.length<2||t.length<2){return-1}a=2;o/=2;s/=2;r/=2}}function read(e,t){if(a===1){return e[t]}else{return e.readUInt16BE(t*a)}}var u;if(i){var c=-1;for(u=r;u<o;u++){if(read(e,u)===read(t,c===-1?0:u-c)){if(c===-1)c=u;if(u-c+1===s)return c*a}else{if(c!==-1)u-=u-c;c=-1}}}else{if(r+s>o)r=o-s;for(u=r;u>=0;u--){var l=true;for(var d=0;d<s;d++){if(read(e,u+d)!==read(t,d)){l=false;break}}if(l)return u}}return-1}Buffer.prototype.includes=function includes(e,t,r){return this.indexOf(e,t,r)!==-1};Buffer.prototype.indexOf=function indexOf(e,t,r){return bidirectionalIndexOf(this,e,t,r,true)};Buffer.prototype.lastIndexOf=function lastIndexOf(e,t,r){return bidirectionalIndexOf(this,e,t,r,false)};function hexWrite(e,t,r,n){r=Number(r)||0;var i=e.length-r;if(!n){n=i}else{n=Number(n);if(n>i){n=i}}var a=t.length;if(n>a/2){n=a/2}for(var o=0;o<n;++o){var s=parseInt(t.substr(o*2,2),16);if(numberIsNaN(s))return o;e[r+o]=s}return o}function utf8Write(e,t,r,n){return blitBuffer(utf8ToBytes(t,e.length-r),e,r,n)}function asciiWrite(e,t,r,n){return blitBuffer(asciiToBytes(t),e,r,n)}function latin1Write(e,t,r,n){return asciiWrite(e,t,r,n)}function base64Write(e,t,r,n){return blitBuffer(base64ToBytes(t),e,r,n)}function ucs2Write(e,t,r,n){return blitBuffer(utf16leToBytes(t,e.length-r),e,r,n)}Buffer.prototype.write=function write(e,t,r,n){if(t===undefined){n="utf8";r=this.length;t=0}else if(r===undefined&&typeof t==="string"){n=t;r=this.length;t=0}else if(isFinite(t)){t=t>>>0;if(isFinite(r)){r=r>>>0;if(n===undefined)n="utf8"}else{n=r;r=undefined}}else{throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")}var i=this.length-t;if(r===undefined||r>i)r=i;if(e.length>0&&(r<0||t<0)||t>this.length){throw new RangeError("Attempt to write outside buffer bounds")}if(!n)n="utf8";var a=false;for(;;){switch(n){case"hex":return hexWrite(this,e,t,r);case"utf8":case"utf-8":return utf8Write(this,e,t,r);case"ascii":return asciiWrite(this,e,t,r);case"latin1":case"binary":return latin1Write(this,e,t,r);case"base64":return base64Write(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase();a=true}}};Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice(e,t,r){if(t===0&&r===e.length){return n.fromByteArray(e)}else{return n.fromByteArray(e.slice(t,r))}}function utf8Slice(e,t,r){r=Math.min(e.length,r);var n=[];var i=t;while(i<r){var a=e[i];var o=null;var s=a>239?4:a>223?3:a>191?2:1;if(i+s<=r){var u,c,l,d;switch(s){case 1:if(a<128){o=a}break;case 2:u=e[i+1];if((u&192)===128){d=(a&31)<<6|u&63;if(d>127){o=d}}break;case 3:u=e[i+1];c=e[i+2];if((u&192)===128&&(c&192)===128){d=(a&15)<<12|(u&63)<<6|c&63;if(d>2047&&(d<55296||d>57343)){o=d}}break;case 4:u=e[i+1];c=e[i+2];l=e[i+3];if((u&192)===128&&(c&192)===128&&(l&192)===128){d=(a&15)<<18|(u&63)<<12|(c&63)<<6|l&63;if(d>65535&&d<1114112){o=d}}}}if(o===null){o=65533;s=1}else if(o>65535){o-=65536;n.push(o>>>10&1023|55296);o=56320|o&1023}n.push(o);i+=s}return decodeCodePointsArray(n)}var s=4096;function decodeCodePointsArray(e){var t=e.length;if(t<=s){return String.fromCharCode.apply(String,e)}var r="";var n=0;while(n<t){r+=String.fromCharCode.apply(String,e.slice(n,n+=s))}return r}function asciiSlice(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i){n+=String.fromCharCode(e[i]&127)}return n}function latin1Slice(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i){n+=String.fromCharCode(e[i])}return n}function hexSlice(e,t,r){var n=e.length;if(!t||t<0)t=0;if(!r||r<0||r>n)r=n;var i="";for(var a=t;a<r;++a){i+=c[e[a]]}return i}function utf16leSlice(e,t,r){var n=e.slice(t,r);var i="";for(var a=0;a<n.length;a+=2){i+=String.fromCharCode(n[a]+n[a+1]*256)}return i}Buffer.prototype.slice=function slice(e,t){var r=this.length;e=~~e;t=t===undefined?r:~~t;if(e<0){e+=r;if(e<0)e=0}else if(e>r){e=r}if(t<0){t+=r;if(t<0)t=0}else if(t>r){t=r}if(t<e)t=e;var n=this.subarray(e,t);Object.setPrototypeOf(n,Buffer.prototype);return n};function checkOffset(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}Buffer.prototype.readUIntLE=function readUIntLE(e,t,r){e=e>>>0;t=t>>>0;if(!r)checkOffset(e,t,this.length);var n=this[e];var i=1;var a=0;while(++a<t&&(i*=256)){n+=this[e+a]*i}return n};Buffer.prototype.readUIntBE=function readUIntBE(e,t,r){e=e>>>0;t=t>>>0;if(!r){checkOffset(e,t,this.length)}var n=this[e+--t];var i=1;while(t>0&&(i*=256)){n+=this[e+--t]*i}return n};Buffer.prototype.readUInt8=function readUInt8(e,t){e=e>>>0;if(!t)checkOffset(e,1,this.length);return this[e]};Buffer.prototype.readUInt16LE=function readUInt16LE(e,t){e=e>>>0;if(!t)checkOffset(e,2,this.length);return this[e]|this[e+1]<<8};Buffer.prototype.readUInt16BE=function readUInt16BE(e,t){e=e>>>0;if(!t)checkOffset(e,2,this.length);return this[e]<<8|this[e+1]};Buffer.prototype.readUInt32LE=function readUInt32LE(e,t){e=e>>>0;if(!t)checkOffset(e,4,this.length);return(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};Buffer.prototype.readUInt32BE=function readUInt32BE(e,t){e=e>>>0;if(!t)checkOffset(e,4,this.length);return this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};Buffer.prototype.readIntLE=function readIntLE(e,t,r){e=e>>>0;t=t>>>0;if(!r)checkOffset(e,t,this.length);var n=this[e];var i=1;var a=0;while(++a<t&&(i*=256)){n+=this[e+a]*i}i*=128;if(n>=i)n-=Math.pow(2,8*t);return n};Buffer.prototype.readIntBE=function readIntBE(e,t,r){e=e>>>0;t=t>>>0;if(!r)checkOffset(e,t,this.length);var n=t;var i=1;var a=this[e+--n];while(n>0&&(i*=256)){a+=this[e+--n]*i}i*=128;if(a>=i)a-=Math.pow(2,8*t);return a};Buffer.prototype.readInt8=function readInt8(e,t){e=e>>>0;if(!t)checkOffset(e,1,this.length);if(!(this[e]&128))return this[e];return(255-this[e]+1)*-1};Buffer.prototype.readInt16LE=function readInt16LE(e,t){e=e>>>0;if(!t)checkOffset(e,2,this.length);var r=this[e]|this[e+1]<<8;return r&32768?r|4294901760:r};Buffer.prototype.readInt16BE=function readInt16BE(e,t){e=e>>>0;if(!t)checkOffset(e,2,this.length);var r=this[e+1]|this[e]<<8;return r&32768?r|4294901760:r};Buffer.prototype.readInt32LE=function readInt32LE(e,t){e=e>>>0;if(!t)checkOffset(e,4,this.length);return this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};Buffer.prototype.readInt32BE=function readInt32BE(e,t){e=e>>>0;if(!t)checkOffset(e,4,this.length);return this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};Buffer.prototype.readFloatLE=function readFloatLE(e,t){e=e>>>0;if(!t)checkOffset(e,4,this.length);return i.read(this,e,true,23,4)};Buffer.prototype.readFloatBE=function readFloatBE(e,t){e=e>>>0;if(!t)checkOffset(e,4,this.length);return i.read(this,e,false,23,4)};Buffer.prototype.readDoubleLE=function readDoubleLE(e,t){e=e>>>0;if(!t)checkOffset(e,8,this.length);return i.read(this,e,true,52,8)};Buffer.prototype.readDoubleBE=function readDoubleBE(e,t){e=e>>>0;if(!t)checkOffset(e,8,this.length);return i.read(this,e,false,52,8)};function checkInt(e,t,r,n,i,a){if(!Buffer.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}Buffer.prototype.writeUIntLE=function writeUIntLE(e,t,r,n){e=+e;t=t>>>0;r=r>>>0;if(!n){var i=Math.pow(2,8*r)-1;checkInt(this,e,t,r,i,0)}var a=1;var o=0;this[t]=e&255;while(++o<r&&(a*=256)){this[t+o]=e/a&255}return t+r};Buffer.prototype.writeUIntBE=function writeUIntBE(e,t,r,n){e=+e;t=t>>>0;r=r>>>0;if(!n){var i=Math.pow(2,8*r)-1;checkInt(this,e,t,r,i,0)}var a=r-1;var o=1;this[t+a]=e&255;while(--a>=0&&(o*=256)){this[t+a]=e/o&255}return t+r};Buffer.prototype.writeUInt8=function writeUInt8(e,t,r){e=+e;t=t>>>0;if(!r)checkInt(this,e,t,1,255,0);this[t]=e&255;return t+1};Buffer.prototype.writeUInt16LE=function writeUInt16LE(e,t,r){e=+e;t=t>>>0;if(!r)checkInt(this,e,t,2,65535,0);this[t]=e&255;this[t+1]=e>>>8;return t+2};Buffer.prototype.writeUInt16BE=function writeUInt16BE(e,t,r){e=+e;t=t>>>0;if(!r)checkInt(this,e,t,2,65535,0);this[t]=e>>>8;this[t+1]=e&255;return t+2};Buffer.prototype.writeUInt32LE=function writeUInt32LE(e,t,r){e=+e;t=t>>>0;if(!r)checkInt(this,e,t,4,4294967295,0);this[t+3]=e>>>24;this[t+2]=e>>>16;this[t+1]=e>>>8;this[t]=e&255;return t+4};Buffer.prototype.writeUInt32BE=function writeUInt32BE(e,t,r){e=+e;t=t>>>0;if(!r)checkInt(this,e,t,4,4294967295,0);this[t]=e>>>24;this[t+1]=e>>>16;this[t+2]=e>>>8;this[t+3]=e&255;return t+4};Buffer.prototype.writeIntLE=function writeIntLE(e,t,r,n){e=+e;t=t>>>0;if(!n){var i=Math.pow(2,8*r-1);checkInt(this,e,t,r,i-1,-i)}var a=0;var o=1;var s=0;this[t]=e&255;while(++a<r&&(o*=256)){if(e<0&&s===0&&this[t+a-1]!==0){s=1}this[t+a]=(e/o>>0)-s&255}return t+r};Buffer.prototype.writeIntBE=function writeIntBE(e,t,r,n){e=+e;t=t>>>0;if(!n){var i=Math.pow(2,8*r-1);checkInt(this,e,t,r,i-1,-i)}var a=r-1;var o=1;var s=0;this[t+a]=e&255;while(--a>=0&&(o*=256)){if(e<0&&s===0&&this[t+a+1]!==0){s=1}this[t+a]=(e/o>>0)-s&255}return t+r};Buffer.prototype.writeInt8=function writeInt8(e,t,r){e=+e;t=t>>>0;if(!r)checkInt(this,e,t,1,127,-128);if(e<0)e=255+e+1;this[t]=e&255;return t+1};Buffer.prototype.writeInt16LE=function writeInt16LE(e,t,r){e=+e;t=t>>>0;if(!r)checkInt(this,e,t,2,32767,-32768);this[t]=e&255;this[t+1]=e>>>8;return t+2};Buffer.prototype.writeInt16BE=function writeInt16BE(e,t,r){e=+e;t=t>>>0;if(!r)checkInt(this,e,t,2,32767,-32768);this[t]=e>>>8;this[t+1]=e&255;return t+2};Buffer.prototype.writeInt32LE=function writeInt32LE(e,t,r){e=+e;t=t>>>0;if(!r)checkInt(this,e,t,4,2147483647,-2147483648);this[t]=e&255;this[t+1]=e>>>8;this[t+2]=e>>>16;this[t+3]=e>>>24;return t+4};Buffer.prototype.writeInt32BE=function writeInt32BE(e,t,r){e=+e;t=t>>>0;if(!r)checkInt(this,e,t,4,2147483647,-2147483648);if(e<0)e=4294967295+e+1;this[t]=e>>>24;this[t+1]=e>>>16;this[t+2]=e>>>8;this[t+3]=e&255;return t+4};function checkIEEE754(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function writeFloat(e,t,r,n,a){t=+t;r=r>>>0;if(!a){checkIEEE754(e,t,r,4,34028234663852886e22,-34028234663852886e22)}i.write(e,t,r,n,23,4);return r+4}Buffer.prototype.writeFloatLE=function writeFloatLE(e,t,r){return writeFloat(this,e,t,true,r)};Buffer.prototype.writeFloatBE=function writeFloatBE(e,t,r){return writeFloat(this,e,t,false,r)};function writeDouble(e,t,r,n,a){t=+t;r=r>>>0;if(!a){checkIEEE754(e,t,r,8,17976931348623157e292,-17976931348623157e292)}i.write(e,t,r,n,52,8);return r+8}Buffer.prototype.writeDoubleLE=function writeDoubleLE(e,t,r){return writeDouble(this,e,t,true,r)};Buffer.prototype.writeDoubleBE=function writeDoubleBE(e,t,r){return writeDouble(this,e,t,false,r)};Buffer.prototype.copy=function copy(e,t,r,n){if(!Buffer.isBuffer(e))throw new TypeError("argument should be a Buffer");if(!r)r=0;if(!n&&n!==0)n=this.length;if(t>=e.length)t=e.length;if(!t)t=0;if(n>0&&n<r)n=r;if(n===r)return 0;if(e.length===0||this.length===0)return 0;if(t<0){throw new RangeError("targetStart out of bounds")}if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");if(n>this.length)n=this.length;if(e.length-t<n-r){n=e.length-t+r}var i=n-r;if(this===e&&typeof Uint8Array.prototype.copyWithin==="function"){this.copyWithin(t,r,n)}else if(this===e&&r<t&&t<n){for(var a=i-1;a>=0;--a){e[a+t]=this[a+r]}}else{Uint8Array.prototype.set.call(e,this.subarray(r,n),t)}return i};Buffer.prototype.fill=function fill(e,t,r,n){if(typeof e==="string"){if(typeof t==="string"){n=t;t=0;r=this.length}else if(typeof r==="string"){n=r;r=this.length}if(n!==undefined&&typeof n!=="string"){throw new TypeError("encoding must be a string")}if(typeof n==="string"&&!Buffer.isEncoding(n)){throw new TypeError("Unknown encoding: "+n)}if(e.length===1){var i=e.charCodeAt(0);if(n==="utf8"&&i<128||n==="latin1"){e=i}}}else if(typeof e==="number"){e=e&255}else if(typeof e==="boolean"){e=Number(e)}if(t<0||this.length<t||this.length<r){throw new RangeError("Out of range index")}if(r<=t){return this}t=t>>>0;r=r===undefined?this.length:r>>>0;if(!e)e=0;var a;if(typeof e==="number"){for(a=t;a<r;++a){this[a]=e}}else{var o=Buffer.isBuffer(e)?e:Buffer.from(e,n);var s=o.length;if(s===0){throw new TypeError('The value "'+e+'" is invalid for argument "value"')}for(a=0;a<r-t;++a){this[a+t]=o[a%s]}}return this};var u=/[^+/0-9A-Za-z-_]/g;function base64clean(e){e=e.split("=")[0];e=e.trim().replace(u,"");if(e.length<2)return"";while(e.length%4!==0){e=e+"="}return e}function utf8ToBytes(e,t){t=t||Infinity;var r;var n=e.length;var i=null;var a=[];for(var o=0;o<n;++o){r=e.charCodeAt(o);if(r>55295&&r<57344){if(!i){if(r>56319){if((t-=3)>-1)a.push(239,191,189);continue}else if(o+1===n){if((t-=3)>-1)a.push(239,191,189);continue}i=r;continue}if(r<56320){if((t-=3)>-1)a.push(239,191,189);i=r;continue}r=(i-55296<<10|r-56320)+65536}else if(i){if((t-=3)>-1)a.push(239,191,189)}i=null;if(r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else{throw new Error("Invalid code point")}}return a}function asciiToBytes(e){var t=[];for(var r=0;r<e.length;++r){t.push(e.charCodeAt(r)&255)}return t}function utf16leToBytes(e,t){var r,n,i;var a=[];for(var o=0;o<e.length;++o){if((t-=2)<0)break;r=e.charCodeAt(o);n=r>>8;i=r%256;a.push(i);a.push(n)}return a}function base64ToBytes(e){return n.toByteArray(base64clean(e))}function blitBuffer(e,t,r,n){for(var i=0;i<n;++i){if(i+r>=t.length||i>=e.length)break;t[i+r]=e[i]}return i}function isInstance(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function numberIsNaN(e){return e!==e}var c=function(){var e="0123456789abcdef";var t=new Array(256);for(var r=0;r<16;++r){var n=r*16;for(var i=0;i<16;++i){t[n+i]=e[r]+e[i]}}return t}()},3614:(e,t,r)=>{e.exports=r(6113).createHash},9922:(e,t,r)=>{e.exports=r(6113).createHmac},3079:(e,t,r)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){i=n}}));t.splice(i,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(1289)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},1289:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(5150);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let r=null;let n;let i;function debug(...e){if(!debug.enabled){return}const r=debug;const n=Number(new Date);const i=n-(t||n);r.diff=i;r.prev=t;r.curr=n;t=n;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,n)=>{if(t==="%%"){return"%"}a++;const i=createDebug.formatters[n];if(typeof i==="function"){const n=e[a];t=i.call(r,n);e.splice(a,1);a--}return t}));createDebug.formatArgs.call(r,e);const o=r.log||createDebug.log;o.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(n!==createDebug.namespaces){n=createDebug.namespaces;i=createDebug.enabled(e)}return i},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const r=(typeof e==="string"?e:"").split(/[\s,]+/);const n=r.length;for(t=0;t<n;t++){if(!r[t]){continue}e=r[t].replace(/\*/g,".*?");if(e[0]==="-"){createDebug.skips.push(new RegExp("^"+e.substr(1)+"$"))}else{createDebug.names.push(new RegExp("^"+e+"$"))}}}function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let r;for(t=0,r=createDebug.skips.length;t<r;t++){if(createDebug.skips[t].test(e)){return false}}for(t=0,r=createDebug.names.length;t<r;t++){if(createDebug.names[t].test(e)){return true}}return false}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},4085:(e,t,r)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(3079)}else{e.exports=r(2723)}},2723:(e,t,r)=>{const n=r(6224);const i=r(3837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(8400);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const i="[3"+(n<8?n:"8;5;"+n);const a=` ${i};1m${r} [0m`;t[0]=a+t[0].split("\n").join("\n"+a);t.push(i+"m+"+e.exports.humanize(this.diff)+"[0m")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(i.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++){e.inspectOpts[r[n]]=t.inspectOpts[r[n]]}}e.exports=r(1289)(t);const{formatters:a}=e.exports;a.o=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};a.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)}},7569:function(e){(function(t){"use strict";var r=9e15,n=1e9,i="0123456789abcdef",a="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",o="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",s={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-r,maxE:r,crypto:false},u,c,l,d,h=true,p="[DecimalError] ",m=p+"Invalid argument: ",g=p+"Precision limit exceeded",v=p+"crypto unavailable",b="[object Decimal]",y=Math.floor,w=Math.pow,_=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,k=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,A=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,E=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,I=1e7,T=7,B=9007199254740991,M=a.length-1,N=o.length-1,x={toStringTag:b};x.absoluteValue=x.abs=function(){var e=new this.constructor(this);if(e.s<0)e.s=1;return finalise(e)};x.ceil=function(){return finalise(new this.constructor(this),this.e+1,2)};x.clampedTo=x.clamp=function(e,t){var r,n=this,i=n.constructor;e=new i(e);t=new i(t);if(!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(m+t);r=n.cmp(e);return r<0?e:n.cmp(t)>0?t:new i(n)};x.comparedTo=x.cmp=function(e){var t,r,n,i,a=this,o=a.d,s=(e=new a.constructor(e)).d,u=a.s,c=e.s;if(!o||!s){return!u||!c?NaN:u!==c?u:o===s?0:!o^u<0?1:-1}if(!o[0]||!s[0])return o[0]?u:s[0]?-c:0;if(u!==c)return u;if(a.e!==e.e)return a.e>e.e^u<0?1:-1;n=o.length;i=s.length;for(t=0,r=n<i?n:i;t<r;++t){if(o[t]!==s[t])return o[t]>s[t]^u<0?1:-1}return n===i?0:n>i^u<0?1:-1};x.cosine=x.cos=function(){var e,t,r=this,n=r.constructor;if(!r.d)return new n(NaN);if(!r.d[0])return new n(1);e=n.precision;t=n.rounding;n.precision=e+Math.max(r.e,r.sd())+T;n.rounding=1;r=cosine(n,toLessThanHalfPi(n,r));n.precision=e;n.rounding=t;return finalise(d==2||d==3?r.neg():r,e,t,true)};x.cubeRoot=x.cbrt=function(){var e,t,r,n,i,a,o,s,u,c,l=this,d=l.constructor;if(!l.isFinite()||l.isZero())return new d(l);h=false;a=l.s*w(l.s*l,1/3);if(!a||Math.abs(a)==1/0){r=digitsToString(l.d);e=l.e;if(a=(e-r.length+1)%3)r+=a==1||a==-2?"0":"00";a=w(r,1/3);e=y((e+1)/3)-(e%3==(e<0?-1:2));if(a==1/0){r="5e"+e}else{r=a.toExponential();r=r.slice(0,r.indexOf("e")+1)+e}n=new d(r);n.s=l.s}else{n=new d(a.toString())}o=(e=d.precision)+3;for(;;){s=n;u=s.times(s).times(s);c=u.plus(l);n=O(c.plus(l).times(s),c.plus(u),o+2,1);if(digitsToString(s.d).slice(0,o)===(r=digitsToString(n.d)).slice(0,o)){r=r.slice(o-3,o+1);if(r=="9999"||!i&&r=="4999"){if(!i){finalise(s,e+1,0);if(s.times(s).times(s).eq(l)){n=s;break}}o+=4;i=1}else{if(!+r||!+r.slice(1)&&r.charAt(0)=="5"){finalise(n,e+1,1);t=!n.times(n).times(n).eq(l)}break}}}h=true;return finalise(n,e,d.rounding,t)};x.decimalPlaces=x.dp=function(){var e,t=this.d,r=NaN;if(t){e=t.length-1;r=(e-y(this.e/T))*T;e=t[e];if(e)for(;e%10==0;e/=10)r--;if(r<0)r=0}return r};x.dividedBy=x.div=function(e){return O(this,new this.constructor(e))};x.dividedToIntegerBy=x.divToInt=function(e){var t=this,r=t.constructor;return finalise(O(t,new r(e),0,1,1),r.precision,r.rounding)};x.equals=x.eq=function(e){return this.cmp(e)===0};x.floor=function(){return finalise(new this.constructor(this),this.e+1,3)};x.greaterThan=x.gt=function(e){return this.cmp(e)>0};x.greaterThanOrEqualTo=x.gte=function(e){var t=this.cmp(e);return t==1||t===0};x.hyperbolicCosine=x.cosh=function(){var e,t,r,n,i,a=this,o=a.constructor,s=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return s;r=o.precision;n=o.rounding;o.precision=r+Math.max(a.e,a.sd())+4;o.rounding=1;i=a.d.length;if(i<32){e=Math.ceil(i/3);t=(1/tinyPow(4,e)).toString()}else{e=16;t="2.3283064365386962890625e-10"}a=taylorSeries(o,1,a.times(t),new o(1),true);var u,c=e,l=new o(8);for(;c--;){u=a.times(a);a=s.minus(u.times(l.minus(u.times(l))))}return finalise(a,o.precision=r,o.rounding=n,true)};x.hyperbolicSine=x.sinh=function(){var e,t,r,n,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);t=a.precision;r=a.rounding;a.precision=t+Math.max(i.e,i.sd())+4;a.rounding=1;n=i.d.length;if(n<3){i=taylorSeries(a,2,i,i,true)}else{e=1.4*Math.sqrt(n);e=e>16?16:e|0;i=i.times(1/tinyPow(5,e));i=taylorSeries(a,2,i,i,true);var o,s=new a(5),u=new a(16),c=new a(20);for(;e--;){o=i.times(i);i=i.times(s.plus(o.times(u.times(o).plus(c))))}}a.precision=t;a.rounding=r;return finalise(i,t,r,true)};x.hyperbolicTangent=x.tanh=function(){var e,t,r=this,n=r.constructor;if(!r.isFinite())return new n(r.s);if(r.isZero())return new n(r);e=n.precision;t=n.rounding;n.precision=e+7;n.rounding=1;return O(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)};x.inverseCosine=x.acos=function(){var e,t=this,r=t.constructor,n=t.abs().cmp(1),i=r.precision,a=r.rounding;if(n!==-1){return n===0?t.isNeg()?getPi(r,i,a):new r(0):new r(NaN)}if(t.isZero())return getPi(r,i+4,a).times(.5);r.precision=i+6;r.rounding=1;t=t.asin();e=getPi(r,i+4,a).times(.5);r.precision=i;r.rounding=a;return e.minus(t)};x.inverseHyperbolicCosine=x.acosh=function(){var e,t,r=this,n=r.constructor;if(r.lte(1))return new n(r.eq(1)?0:NaN);if(!r.isFinite())return new n(r);e=n.precision;t=n.rounding;n.precision=e+Math.max(Math.abs(r.e),r.sd())+4;n.rounding=1;h=false;r=r.times(r).minus(1).sqrt().plus(r);h=true;n.precision=e;n.rounding=t;return r.ln()};x.inverseHyperbolicSine=x.asinh=function(){var e,t,r=this,n=r.constructor;if(!r.isFinite()||r.isZero())return new n(r);e=n.precision;t=n.rounding;n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6;n.rounding=1;h=false;r=r.times(r).plus(1).sqrt().plus(r);h=true;n.precision=e;n.rounding=t;return r.ln()};x.inverseHyperbolicTangent=x.atanh=function(){var e,t,r,n,i=this,a=i.constructor;if(!i.isFinite())return new a(NaN);if(i.e>=0)return new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN);e=a.precision;t=a.rounding;n=i.sd();if(Math.max(n,e)<2*-i.e-1)return finalise(new a(i),e,t,true);a.precision=r=n-i.e;i=O(i.plus(1),new a(1).minus(i),r+e,1);a.precision=e+4;a.rounding=1;i=i.ln();a.precision=e;a.rounding=t;return i.times(.5)};x.inverseSine=x.asin=function(){var e,t,r,n,i=this,a=i.constructor;if(i.isZero())return new a(i);t=i.abs().cmp(1);r=a.precision;n=a.rounding;if(t!==-1){if(t===0){e=getPi(a,r+4,n).times(.5);e.s=i.s;return e}return new a(NaN)}a.precision=r+6;a.rounding=1;i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan();a.precision=r;a.rounding=n;return i.times(2)};x.inverseTangent=x.atan=function(){var e,t,r,n,i,a,o,s,u,c=this,l=c.constructor,d=l.precision,p=l.rounding;if(!c.isFinite()){if(!c.s)return new l(NaN);if(d+4<=N){o=getPi(l,d+4,p).times(.5);o.s=c.s;return o}}else if(c.isZero()){return new l(c)}else if(c.abs().eq(1)&&d+4<=N){o=getPi(l,d+4,p).times(.25);o.s=c.s;return o}l.precision=s=d+10;l.rounding=1;r=Math.min(28,s/T+2|0);for(e=r;e;--e)c=c.div(c.times(c).plus(1).sqrt().plus(1));h=false;t=Math.ceil(s/T);n=1;u=c.times(c);o=new l(c);i=c;for(;e!==-1;){i=i.times(u);a=o.minus(i.div(n+=2));i=i.times(u);o=a.plus(i.div(n+=2));if(o.d[t]!==void 0)for(e=t;o.d[e]===a.d[e]&&e--;);}if(r)o=o.times(2<<r-1);h=true;return finalise(o,l.precision=d,l.rounding=p,true)};x.isFinite=function(){return!!this.d};x.isInteger=x.isInt=function(){return!!this.d&&y(this.e/T)>this.d.length-2};x.isNaN=function(){return!this.s};x.isNegative=x.isNeg=function(){return this.s<0};x.isPositive=x.isPos=function(){return this.s>0};x.isZero=function(){return!!this.d&&this.d[0]===0};x.lessThan=x.lt=function(e){return this.cmp(e)<0};x.lessThanOrEqualTo=x.lte=function(e){return this.cmp(e)<1};x.logarithm=x.log=function(e){var t,r,n,i,a,o,s,u,c=this,l=c.constructor,d=l.precision,p=l.rounding,m=5;if(e==null){e=new l(10);t=true}else{e=new l(e);r=e.d;if(e.s<0||!r||!r[0]||e.eq(1))return new l(NaN);t=e.eq(10)}r=c.d;if(c.s<0||!r||!r[0]||c.eq(1)){return new l(r&&!r[0]?-1/0:c.s!=1?NaN:r?0:1/0)}if(t){if(r.length>1){a=true}else{for(i=r[0];i%10===0;)i/=10;a=i!==1}}h=false;s=d+m;o=naturalLogarithm(c,s);n=t?getLn10(l,s+10):naturalLogarithm(e,s);u=O(o,n,s,1);if(checkRoundingDigits(u.d,i=d,p)){do{s+=10;o=naturalLogarithm(c,s);n=t?getLn10(l,s+10):naturalLogarithm(e,s);u=O(o,n,s,1);if(!a){if(+digitsToString(u.d).slice(i+1,i+15)+1==1e14){u=finalise(u,d+1,0)}break}}while(checkRoundingDigits(u.d,i+=10,p))}h=true;return finalise(u,d,p)};x.minus=x.sub=function(e){var t,r,n,i,a,o,s,u,c,l,d,p,m=this,g=m.constructor;e=new g(e);if(!m.d||!e.d){if(!m.s||!e.s)e=new g(NaN);else if(m.d)e.s=-e.s;else e=new g(e.d||m.s!==e.s?m:NaN);return e}if(m.s!=e.s){e.s=-e.s;return m.plus(e)}c=m.d;p=e.d;s=g.precision;u=g.rounding;if(!c[0]||!p[0]){if(p[0])e.s=-e.s;else if(c[0])e=new g(m);else return new g(u===3?-0:0);return h?finalise(e,s,u):e}r=y(e.e/T);l=y(m.e/T);c=c.slice();a=l-r;if(a){d=a<0;if(d){t=c;a=-a;o=p.length}else{t=p;r=l;o=c.length}n=Math.max(Math.ceil(s/T),o)+2;if(a>n){a=n;t.length=1}t.reverse();for(n=a;n--;)t.push(0);t.reverse()}else{n=c.length;o=p.length;d=n<o;if(d)o=n;for(n=0;n<o;n++){if(c[n]!=p[n]){d=c[n]<p[n];break}}a=0}if(d){t=c;c=p;p=t;e.s=-e.s}o=c.length;for(n=p.length-o;n>0;--n)c[o++]=0;for(n=p.length;n>a;){if(c[--n]<p[n]){for(i=n;i&&c[--i]===0;)c[i]=I-1;--c[i];c[n]+=I}c[n]-=p[n]}for(;c[--o]===0;)c.pop();for(;c[0]===0;c.shift())--r;if(!c[0])return new g(u===3?-0:0);e.d=c;e.e=getBase10Exponent(c,r);return h?finalise(e,s,u):e};x.modulo=x.mod=function(e){var t,r=this,n=r.constructor;e=new n(e);if(!r.d||!e.s||e.d&&!e.d[0])return new n(NaN);if(!e.d||r.d&&!r.d[0]){return finalise(new n(r),n.precision,n.rounding)}h=false;if(n.modulo==9){t=O(r,e.abs(),0,3,1);t.s*=e.s}else{t=O(r,e,0,n.modulo,1)}t=t.times(e);h=true;return r.minus(t)};x.naturalExponential=x.exp=function(){return naturalExponential(this)};x.naturalLogarithm=x.ln=function(){return naturalLogarithm(this)};x.negated=x.neg=function(){var e=new this.constructor(this);e.s=-e.s;return finalise(e)};x.plus=x.add=function(e){var t,r,n,i,a,o,s,u,c,l,d=this,p=d.constructor;e=new p(e);if(!d.d||!e.d){if(!d.s||!e.s)e=new p(NaN);else if(!d.d)e=new p(e.d||d.s===e.s?d:NaN);return e}if(d.s!=e.s){e.s=-e.s;return d.minus(e)}c=d.d;l=e.d;s=p.precision;u=p.rounding;if(!c[0]||!l[0]){if(!l[0])e=new p(d);return h?finalise(e,s,u):e}a=y(d.e/T);n=y(e.e/T);c=c.slice();i=a-n;if(i){if(i<0){r=c;i=-i;o=l.length}else{r=l;n=a;o=c.length}a=Math.ceil(s/T);o=a>o?a+1:o+1;if(i>o){i=o;r.length=1}r.reverse();for(;i--;)r.push(0);r.reverse()}o=c.length;i=l.length;if(o-i<0){i=o;r=l;l=c;c=r}for(t=0;i;){t=(c[--i]=c[i]+l[i]+t)/I|0;c[i]%=I}if(t){c.unshift(t);++n}for(o=c.length;c[--o]==0;)c.pop();e.d=c;e.e=getBase10Exponent(c,n);return h?finalise(e,s,u):e};x.precision=x.sd=function(e){var t,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(m+e);if(r.d){t=getPrecision(r.d);if(e&&r.e+1>t)t=r.e+1}else{t=NaN}return t};x.round=function(){var e=this,t=e.constructor;return finalise(new t(e),e.e+1,t.rounding)};x.sine=x.sin=function(){var e,t,r=this,n=r.constructor;if(!r.isFinite())return new n(NaN);if(r.isZero())return new n(r);e=n.precision;t=n.rounding;n.precision=e+Math.max(r.e,r.sd())+T;n.rounding=1;r=sine(n,toLessThanHalfPi(n,r));n.precision=e;n.rounding=t;return finalise(d>2?r.neg():r,e,t,true)};x.squareRoot=x.sqrt=function(){var e,t,r,n,i,a,o=this,s=o.d,u=o.e,c=o.s,l=o.constructor;if(c!==1||!s||!s[0]){return new l(!c||c<0&&(!s||s[0])?NaN:s?o:1/0)}h=false;c=Math.sqrt(+o);if(c==0||c==1/0){t=digitsToString(s);if((t.length+u)%2==0)t+="0";c=Math.sqrt(t);u=y((u+1)/2)-(u<0||u%2);if(c==1/0){t="5e"+u}else{t=c.toExponential();t=t.slice(0,t.indexOf("e")+1)+u}n=new l(t)}else{n=new l(c.toString())}r=(u=l.precision)+3;for(;;){a=n;n=a.plus(O(o,a,r+2,1)).times(.5);if(digitsToString(a.d).slice(0,r)===(t=digitsToString(n.d)).slice(0,r)){t=t.slice(r-3,r+1);if(t=="9999"||!i&&t=="4999"){if(!i){finalise(a,u+1,0);if(a.times(a).eq(o)){n=a;break}}r+=4;i=1}else{if(!+t||!+t.slice(1)&&t.charAt(0)=="5"){finalise(n,u+1,1);e=!n.times(n).eq(o)}break}}}h=true;return finalise(n,u,l.rounding,e)};x.tangent=x.tan=function(){var e,t,r=this,n=r.constructor;if(!r.isFinite())return new n(NaN);if(r.isZero())return new n(r);e=n.precision;t=n.rounding;n.precision=e+10;n.rounding=1;r=r.sin();r.s=1;r=O(r,new n(1).minus(r.times(r)).sqrt(),e+10,0);n.precision=e;n.rounding=t;return finalise(d==2||d==4?r.neg():r,e,t,true)};x.times=x.mul=function(e){var t,r,n,i,a,o,s,u,c,l=this,d=l.constructor,p=l.d,m=(e=new d(e)).d;e.s*=l.s;if(!p||!p[0]||!m||!m[0]){return new d(!e.s||p&&!p[0]&&!m||m&&!m[0]&&!p?NaN:!p||!m?e.s/0:e.s*0)}r=y(l.e/T)+y(e.e/T);u=p.length;c=m.length;if(u<c){a=p;p=m;m=a;o=u;u=c;c=o}a=[];o=u+c;for(n=o;n--;)a.push(0);for(n=c;--n>=0;){t=0;for(i=u+n;i>n;){s=a[i]+m[n]*p[i-n-1]+t;a[i--]=s%I|0;t=s/I|0}a[i]=(a[i]+t)%I|0}for(;!a[--o];)a.pop();if(t)++r;else a.shift();e.d=a;e.e=getBase10Exponent(a,r);return h?finalise(e,d.precision,d.rounding):e};x.toBinary=function(e,t){return toStringBinary(this,2,e,t)};x.toDecimalPlaces=x.toDP=function(e,t){var r=this,i=r.constructor;r=new i(r);if(e===void 0)return r;checkInt32(e,0,n);if(t===void 0)t=i.rounding;else checkInt32(t,0,8);return finalise(r,e+r.e+1,t)};x.toExponential=function(e,t){var r,i=this,a=i.constructor;if(e===void 0){r=finiteToString(i,true)}else{checkInt32(e,0,n);if(t===void 0)t=a.rounding;else checkInt32(t,0,8);i=finalise(new a(i),e+1,t);r=finiteToString(i,true,e+1)}return i.isNeg()&&!i.isZero()?"-"+r:r};x.toFixed=function(e,t){var r,i,a=this,o=a.constructor;if(e===void 0){r=finiteToString(a)}else{checkInt32(e,0,n);if(t===void 0)t=o.rounding;else checkInt32(t,0,8);i=finalise(new o(a),e+a.e+1,t);r=finiteToString(i,false,e+i.e+1)}return a.isNeg()&&!a.isZero()?"-"+r:r};x.toFraction=function(e){var t,r,n,i,a,o,s,u,c,l,d,p,g=this,v=g.d,b=g.constructor;if(!v)return new b(g);c=r=new b(1);n=u=new b(0);t=new b(n);a=t.e=getPrecision(v)-g.e-1;o=a%T;t.d[0]=w(10,o<0?T+o:o);if(e==null){e=a>0?t:c}else{s=new b(e);if(!s.isInt()||s.lt(c))throw Error(m+s);e=s.gt(t)?a>0?t:c:s}h=false;s=new b(digitsToString(v));l=b.precision;b.precision=a=v.length*T*2;for(;;){d=O(s,t,0,1,1);i=r.plus(d.times(n));if(i.cmp(e)==1)break;r=n;n=i;i=c;c=u.plus(d.times(i));u=i;i=t;t=s.minus(d.times(i));s=i}i=O(e.minus(r),n,0,1,1);u=u.plus(i.times(c));r=r.plus(i.times(n));u.s=c.s=g.s;p=O(c,n,a,1).minus(g).abs().cmp(O(u,r,a,1).minus(g).abs())<1?[c,n]:[u,r];b.precision=l;h=true;return p};x.toHexadecimal=x.toHex=function(e,t){return toStringBinary(this,16,e,t)};x.toNearest=function(e,t){var r=this,n=r.constructor;r=new n(r);if(e==null){if(!r.d)return r;e=new n(1);t=n.rounding}else{e=new n(e);if(t===void 0){t=n.rounding}else{checkInt32(t,0,8)}if(!r.d)return e.s?r:e;if(!e.d){if(e.s)e.s=r.s;return e}}if(e.d[0]){h=false;r=O(r,e,0,t,1).times(e);h=true;finalise(r)}else{e.s=r.s;r=e}return r};x.toNumber=function(){return+this};x.toOctal=function(e,t){return toStringBinary(this,8,e,t)};x.toPower=x.pow=function(e){var t,r,n,i,a,o,s=this,u=s.constructor,c=+(e=new u(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new u(w(+s,c));s=new u(s);if(s.eq(1))return s;n=u.precision;a=u.rounding;if(e.eq(1))return finalise(s,n,a);t=y(e.e/T);if(t>=e.d.length-1&&(r=c<0?-c:c)<=B){i=intPow(u,s,r,n);return e.s<0?new u(1).div(i):finalise(i,n,a)}o=s.s;if(o<0){if(t<e.d.length-1)return new u(NaN);if((e.d[t]&1)==0)o=1;if(s.e==0&&s.d[0]==1&&s.d.length==1){s.s=o;return s}}r=w(+s,c);t=r==0||!isFinite(r)?y(c*(Math.log("0."+digitsToString(s.d))/Math.LN10+s.e+1)):new u(r+"").e;if(t>u.maxE+1||t<u.minE-1)return new u(t>0?o/0:0);h=false;u.rounding=s.s=1;r=Math.min(12,(t+"").length);i=naturalExponential(e.times(naturalLogarithm(s,n+r)),n);if(i.d){i=finalise(i,n+5,1);if(checkRoundingDigits(i.d,n,a)){t=n+10;i=finalise(naturalExponential(e.times(naturalLogarithm(s,t+r)),t),t+5,1);if(+digitsToString(i.d).slice(n+1,n+15)+1==1e14){i=finalise(i,n+1,0)}}}i.s=o;h=true;u.rounding=a;return finalise(i,n,a)};x.toPrecision=function(e,t){var r,i=this,a=i.constructor;if(e===void 0){r=finiteToString(i,i.e<=a.toExpNeg||i.e>=a.toExpPos)}else{checkInt32(e,1,n);if(t===void 0)t=a.rounding;else checkInt32(t,0,8);i=finalise(new a(i),e,t);r=finiteToString(i,e<=i.e||i.e<=a.toExpNeg,e)}return i.isNeg()&&!i.isZero()?"-"+r:r};x.toSignificantDigits=x.toSD=function(e,t){var r=this,i=r.constructor;if(e===void 0){e=i.precision;t=i.rounding}else{checkInt32(e,1,n);if(t===void 0)t=i.rounding;else checkInt32(t,0,8)}return finalise(new i(r),e,t)};x.toString=function(){var e=this,t=e.constructor,r=finiteToString(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r};x.truncated=x.trunc=function(){return finalise(new this.constructor(this),this.e+1,1)};x.valueOf=x.toJSON=function(){var e=this,t=e.constructor,r=finiteToString(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};function digitsToString(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){a+=o;for(t=1;t<i;t++){n=e[t]+"";r=T-n.length;if(r)a+=getZeroString(r);a+=n}o=e[t];n=o+"";r=T-n.length;if(r)a+=getZeroString(r)}else if(o===0){return"0"}for(;o%10===0;)o/=10;return a+o}function checkInt32(e,t,r){if(e!==~~e||e<t||e>r){throw Error(m+e)}}function checkRoundingDigits(e,t,r,n){var i,a,o,s;for(a=e[0];a>=10;a/=10)--t;if(--t<0){t+=T;i=0}else{i=Math.ceil((t+1)/T);t%=T}a=w(10,T-t);s=e[i]%a|0;if(n==null){if(t<3){if(t==0)s=s/100|0;else if(t==1)s=s/10|0;o=r<4&&s==99999||r>3&&s==49999||s==5e4||s==0}else{o=(r<4&&s+1==a||r>3&&s+1==a/2)&&(e[i+1]/a/100|0)==w(10,t-2)-1||(s==a/2||s==0)&&(e[i+1]/a/100|0)==0}}else{if(t<4){if(t==0)s=s/1e3|0;else if(t==1)s=s/100|0;else if(t==2)s=s/10|0;o=(n||r<4)&&s==9999||!n&&r>3&&s==4999}else{o=((n||r<4)&&s+1==a||!n&&r>3&&s+1==a/2)&&(e[i+1]/a/1e3|0)==w(10,t-3)-1}}return o}function convertBase(e,t,r){var n,a=[0],o,s=0,u=e.length;for(;s<u;){for(o=a.length;o--;)a[o]*=t;a[0]+=i.indexOf(e.charAt(s++));for(n=0;n<a.length;n++){if(a[n]>r-1){if(a[n+1]===void 0)a[n+1]=0;a[n+1]+=a[n]/r|0;a[n]%=r}}}return a.reverse()}function cosine(e,t){var r,n,i;if(t.isZero())return t;n=t.d.length;if(n<32){r=Math.ceil(n/3);i=(1/tinyPow(4,r)).toString()}else{r=16;i="2.3283064365386962890625e-10"}e.precision+=r;t=taylorSeries(e,1,t.times(i),new e(1));for(var a=r;a--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}e.precision-=r;return t}var O=function(){function multiplyInteger(e,t,r){var n,i=0,a=e.length;for(e=e.slice();a--;){n=e[a]*t+i;e[a]=n%r|0;i=n/r|0}if(i)e.unshift(i);return e}function compare(e,t,r,n){var i,a;if(r!=n){a=r>n?1:-1}else{for(i=a=0;i<r;i++){if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}}}return a}function subtract(e,t,r,n){var i=0;for(;r--;){e[r]-=i;i=e[r]<t[r]?1:0;e[r]=i*n+e[r]-t[r]}for(;!e[0]&&e.length>1;)e.shift()}return function(e,t,r,n,i,a){var o,s,u,l,d,h,p,m,g,v,b,w,_,k,A,E,B,M,N,x,O=e.constructor,P=e.s==t.s?1:-1,C=e.d,z=t.d;if(!C||!C[0]||!z||!z[0]){return new O(!e.s||!t.s||(C?z&&C[0]==z[0]:!z)?NaN:C&&C[0]==0||!z?P*0:P/0)}if(a){d=1;s=e.e-t.e}else{a=I;d=T;s=y(e.e/d)-y(t.e/d)}N=z.length;B=C.length;g=new O(P);v=g.d=[];for(u=0;z[u]==(C[u]||0);u++);if(z[u]>(C[u]||0))s--;if(r==null){k=r=O.precision;n=O.rounding}else if(i){k=r+(e.e-t.e)+1}else{k=r}if(k<0){v.push(1);h=true}else{k=k/d+2|0;u=0;if(N==1){l=0;z=z[0];k++;for(;(u<B||l)&&k--;u++){A=l*a+(C[u]||0);v[u]=A/z|0;l=A%z|0}h=l||u<B}else{l=a/(z[0]+1)|0;if(l>1){z=multiplyInteger(z,l,a);C=multiplyInteger(C,l,a);N=z.length;B=C.length}E=N;b=C.slice(0,N);w=b.length;for(;w<N;)b[w++]=0;x=z.slice();x.unshift(0);M=z[0];if(z[1]>=a/2)++M;do{l=0;o=compare(z,b,N,w);if(o<0){_=b[0];if(N!=w)_=_*a+(b[1]||0);l=_/M|0;if(l>1){if(l>=a)l=a-1;p=multiplyInteger(z,l,a);m=p.length;w=b.length;o=compare(p,b,m,w);if(o==1){l--;subtract(p,N<m?x:z,m,a)}}else{if(l==0)o=l=1;p=z.slice()}m=p.length;if(m<w)p.unshift(0);subtract(b,p,w,a);if(o==-1){w=b.length;o=compare(z,b,N,w);if(o<1){l++;subtract(b,N<w?x:z,w,a)}}w=b.length}else if(o===0){l++;b=[0]}v[u++]=l;if(o&&b[0]){b[w++]=C[E]||0}else{b=[C[E]];w=1}}while((E++<B||b[0]!==void 0)&&k--);h=b[0]!==void 0}if(!v[0])v.shift()}if(d==1){g.e=s;c=h}else{for(u=1,l=v[0];l>=10;l/=10)u++;g.e=u+s*d-1;finalise(g,i?r+g.e+1:r,n,h)}return g}}();function finalise(e,t,r,n){var i,a,o,s,u,c,l,d,p,m=e.constructor;e:if(t!=null){d=e.d;if(!d)return e;for(i=1,s=d[0];s>=10;s/=10)i++;a=t-i;if(a<0){a+=T;o=t;l=d[p=0];u=l/w(10,i-o-1)%10|0}else{p=Math.ceil((a+1)/T);s=d.length;if(p>=s){if(n){for(;s++<=p;)d.push(0);l=u=0;i=1;a%=T;o=a-T+1}else{break e}}else{l=s=d[p];for(i=1;s>=10;s/=10)i++;a%=T;o=a-T+i;u=o<0?0:l/w(10,i-o-1)%10|0}}n=n||t<0||d[p+1]!==void 0||(o<0?l:l%w(10,i-o-1));c=r<4?(u||n)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||n||r==6&&(a>0?o>0?l/w(10,i-o):0:d[p-1])%10&1||r==(e.s<0?8:7));if(t<1||!d[0]){d.length=0;if(c){t-=e.e+1;d[0]=w(10,(T-t%T)%T);e.e=-t||0}else{d[0]=e.e=0}return e}if(a==0){d.length=p;s=1;p--}else{d.length=p+1;s=w(10,T-a);d[p]=o>0?(l/w(10,i-o)%w(10,o)|0)*s:0}if(c){for(;;){if(p==0){for(a=1,o=d[0];o>=10;o/=10)a++;o=d[0]+=s;for(s=1;o>=10;o/=10)s++;if(a!=s){e.e++;if(d[0]==I)d[0]=1}break}else{d[p]+=s;if(d[p]!=I)break;d[p--]=0;s=1}}}for(a=d.length;d[--a]===0;)d.pop()}if(h){if(e.e>m.maxE){e.d=null;e.e=NaN}else if(e.e<m.minE){e.e=0;e.d=[0]}}return e}function finiteToString(e,t,r){if(!e.isFinite())return nonFiniteToString(e);var n,i=e.e,a=digitsToString(e.d),o=a.length;if(t){if(r&&(n=r-o)>0){a=a.charAt(0)+"."+a.slice(1)+getZeroString(n)}else if(o>1){a=a.charAt(0)+"."+a.slice(1)}a=a+(e.e<0?"e":"e+")+e.e}else if(i<0){a="0."+getZeroString(-i-1)+a;if(r&&(n=r-o)>0)a+=getZeroString(n)}else if(i>=o){a+=getZeroString(i+1-o);if(r&&(n=r-i-1)>0)a=a+"."+getZeroString(n)}else{if((n=i+1)<o)a=a.slice(0,n)+"."+a.slice(n);if(r&&(n=r-o)>0){if(i+1===o)a+=".";a+=getZeroString(n)}}return a}function getBase10Exponent(e,t){var r=e[0];for(t*=T;r>=10;r/=10)t++;return t}function getLn10(e,t,r){if(t>M){h=true;if(r)e.precision=r;throw Error(g)}return finalise(new e(a),t,1,true)}function getPi(e,t,r){if(t>N)throw Error(g);return finalise(new e(o),t,r,true)}function getPrecision(e){var t=e.length-1,r=t*T+1;t=e[t];if(t){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function getZeroString(e){var t="";for(;e--;)t+="0";return t}function intPow(e,t,r,n){var i,a=new e(1),o=Math.ceil(n/T+4);h=false;for(;;){if(r%2){a=a.times(t);if(truncate(a.d,o))i=true}r=y(r/2);if(r===0){r=a.d.length-1;if(i&&a.d[r]===0)++a.d[r];break}t=t.times(t);truncate(t.d,o)}h=true;return a}function isOdd(e){return e.d[e.d.length-1]&1}function maxOrMin(e,t,r){var n,i=new e(t[0]),a=0;for(;++a<t.length;){n=new e(t[a]);if(!n.s){i=n;break}else if(i[r](n)){i=n}}return i}function naturalExponential(e,t){var r,n,i,a,o,s,u,c=0,l=0,d=0,p=e.constructor,m=p.rounding,g=p.precision;if(!e.d||!e.d[0]||e.e>17){return new p(e.d?!e.d[0]?1:e.s<0?0:1/0:e.s?e.s<0?0:e:0/0)}if(t==null){h=false;u=g}else{u=t}s=new p(.03125);while(e.e>-2){e=e.times(s);d+=5}n=Math.log(w(2,d))/Math.LN10*2+5|0;u+=n;r=a=o=new p(1);p.precision=u;for(;;){a=finalise(a.times(e),u,1);r=r.times(++l);s=o.plus(O(a,r,u,1));if(digitsToString(s.d).slice(0,u)===digitsToString(o.d).slice(0,u)){i=d;while(i--)o=finalise(o.times(o),u,1);if(t==null){if(c<3&&checkRoundingDigits(o.d,u-n,m,c)){p.precision=u+=10;r=a=s=new p(1);l=0;c++}else{return finalise(o,p.precision=g,m,h=true)}}else{p.precision=g;return o}}o=s}}function naturalLogarithm(e,t){var r,n,i,a,o,s,u,c,l,d,p,m=1,g=10,v=e,b=v.d,y=v.constructor,w=y.rounding,_=y.precision;if(v.s<0||!b||!b[0]||!v.e&&b[0]==1&&b.length==1){return new y(b&&!b[0]?-1/0:v.s!=1?NaN:b?0:v)}if(t==null){h=false;l=_}else{l=t}y.precision=l+=g;r=digitsToString(b);n=r.charAt(0);if(Math.abs(a=v.e)<15e14){while(n<7&&n!=1||n==1&&r.charAt(1)>3){v=v.times(e);r=digitsToString(v.d);n=r.charAt(0);m++}a=v.e;if(n>1){v=new y("0."+r);a++}else{v=new y(n+"."+r.slice(1))}}else{c=getLn10(y,l+2,_).times(a+"");v=naturalLogarithm(new y(n+"."+r.slice(1)),l-g).plus(c);y.precision=_;return t==null?finalise(v,_,w,h=true):v}d=v;u=o=v=O(v.minus(1),v.plus(1),l,1);p=finalise(v.times(v),l,1);i=3;for(;;){o=finalise(o.times(p),l,1);c=u.plus(O(o,new y(i),l,1));if(digitsToString(c.d).slice(0,l)===digitsToString(u.d).slice(0,l)){u=u.times(2);if(a!==0)u=u.plus(getLn10(y,l+2,_).times(a+""));u=O(u,new y(m),l,1);if(t==null){if(checkRoundingDigits(u.d,l-g,w,s)){y.precision=l+=g;c=o=v=O(d.minus(1),d.plus(1),l,1);p=finalise(v.times(v),l,1);i=s=1}else{return finalise(u,y.precision=_,w,h=true)}}else{y.precision=_;return u}}u=c;i+=2}}function nonFiniteToString(e){return String(e.s*e.s/0)}function parseDecimal(e,t){var r,n,i;if((r=t.indexOf("."))>-1)t=t.replace(".","");if((n=t.search(/e/i))>0){if(r<0)r=n;r+=+t.slice(n+1);t=t.substring(0,n)}else if(r<0){r=t.length}for(n=0;t.charCodeAt(n)===48;n++);for(i=t.length;t.charCodeAt(i-1)===48;--i);t=t.slice(n,i);if(t){i-=n;e.e=r=r-n-1;e.d=[];n=(r+1)%T;if(r<0)n+=T;if(n<i){if(n)e.d.push(+t.slice(0,n));for(i-=T;n<i;)e.d.push(+t.slice(n,n+=T));t=t.slice(n);n=T-t.length}else{n-=i}for(;n--;)t+="0";e.d.push(+t);if(h){if(e.e>e.constructor.maxE){e.d=null;e.e=NaN}else if(e.e<e.constructor.minE){e.e=0;e.d=[0]}}}else{e.e=0;e.d=[0]}return e}function parseOther(e,t){var r,n,i,a,o,s,c,l,d;if(t.indexOf("_")>-1){t=t.replace(/(\d)_(?=\d)/g,"$1");if(E.test(t))return parseDecimal(e,t)}else if(t==="Infinity"||t==="NaN"){if(!+t)e.s=NaN;e.e=NaN;e.d=null;return e}if(k.test(t)){r=16;t=t.toLowerCase()}else if(_.test(t)){r=2}else if(A.test(t)){r=8}else{throw Error(m+t)}a=t.search(/p/i);if(a>0){c=+t.slice(a+1);t=t.substring(2,a)}else{t=t.slice(2)}a=t.indexOf(".");o=a>=0;n=e.constructor;if(o){t=t.replace(".","");s=t.length;a=s-a;i=intPow(n,new n(r),a,a*2)}l=convertBase(t,r,I);d=l.length-1;for(a=d;l[a]===0;--a)l.pop();if(a<0)return new n(e.s*0);e.e=getBase10Exponent(l,d);e.d=l;h=false;if(o)e=O(e,i,s*4);if(c)e=e.times(Math.abs(c)<54?w(2,c):u.pow(2,c));h=true;return e}function sine(e,t){var r,n=t.d.length;if(n<3){return t.isZero()?t:taylorSeries(e,2,t,t)}r=1.4*Math.sqrt(n);r=r>16?16:r|0;t=t.times(1/tinyPow(5,r));t=taylorSeries(e,2,t,t);var i,a=new e(5),o=new e(16),s=new e(20);for(;r--;){i=t.times(t);t=t.times(a.plus(i.times(o.times(i).minus(s))))}return t}function taylorSeries(e,t,r,n,i){var a,o,s,u,c=1,l=e.precision,d=Math.ceil(l/T);h=false;u=r.times(r);s=new e(n);for(;;){o=O(s.times(u),new e(t++*t++),l,1);s=i?n.plus(o):n.minus(o);n=O(o.times(u),new e(t++*t++),l,1);o=s.plus(n);if(o.d[d]!==void 0){for(a=d;o.d[a]===s.d[a]&&a--;);if(a==-1)break}a=s;s=n;n=o;o=a;c++}h=true;o.d.length=d+1;return o}function tinyPow(e,t){var r=e;while(--t)r*=e;return r}function toLessThanHalfPi(e,t){var r,n=t.s<0,i=getPi(e,e.precision,1),a=i.times(.5);t=t.abs();if(t.lte(a)){d=n?4:1;return t}r=t.divToInt(i);if(r.isZero()){d=n?3:2}else{t=t.minus(r.times(i));if(t.lte(a)){d=isOdd(r)?n?2:3:n?4:1;return t}d=isOdd(r)?n?1:4:n?3:2}return t.minus(i).abs()}function toStringBinary(e,t,r,a){var o,s,u,l,d,h,p,m,g,v=e.constructor,b=r!==void 0;if(b){checkInt32(r,1,n);if(a===void 0)a=v.rounding;else checkInt32(a,0,8)}else{r=v.precision;a=v.rounding}if(!e.isFinite()){p=nonFiniteToString(e)}else{p=finiteToString(e);u=p.indexOf(".");if(b){o=2;if(t==16){r=r*4-3}else if(t==8){r=r*3-2}}else{o=t}if(u>=0){p=p.replace(".","");g=new v(1);g.e=p.length-u;g.d=convertBase(finiteToString(g),10,o);g.e=g.d.length}m=convertBase(p,10,o);s=d=m.length;for(;m[--d]==0;)m.pop();if(!m[0]){p=b?"0p+0":"0"}else{if(u<0){s--}else{e=new v(e);e.d=m;e.e=s;e=O(e,g,r,a,0,o);m=e.d;s=e.e;h=c}u=m[r];l=o/2;h=h||m[r+1]!==void 0;h=a<4?(u!==void 0||h)&&(a===0||a===(e.s<0?3:2)):u>l||u===l&&(a===4||h||a===6&&m[r-1]&1||a===(e.s<0?8:7));m.length=r;if(h){for(;++m[--r]>o-1;){m[r]=0;if(!r){++s;m.unshift(1)}}}for(d=m.length;!m[d-1];--d);for(u=0,p="";u<d;u++)p+=i.charAt(m[u]);if(b){if(d>1){if(t==16||t==8){u=t==16?4:3;for(--d;d%u;d++)p+="0";m=convertBase(p,o,t);for(d=m.length;!m[d-1];--d);for(u=1,p="1.";u<d;u++)p+=i.charAt(m[u])}else{p=p.charAt(0)+"."+p.slice(1)}}p=p+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)p="0"+p;p="0."+p}else{if(++s>d)for(s-=d;s--;)p+="0";else if(s<d)p=p.slice(0,s)+"."+p.slice(s)}}p=(t==16?"0x":t==2?"0b":t==8?"0o":"")+p}return e.s<0?"-"+p:p}function truncate(e,t){if(e.length>t){e.length=t;return true}}function abs(e){return new this(e).abs()}function acos(e){return new this(e).acos()}function acosh(e){return new this(e).acosh()}function add(e,t){return new this(e).plus(t)}function asin(e){return new this(e).asin()}function asinh(e){return new this(e).asinh()}function atan(e){return new this(e).atan()}function atanh(e){return new this(e).atanh()}function atan2(e,t){e=new this(e);t=new this(t);var r,n=this.precision,i=this.rounding,a=n+4;if(!e.s||!t.s){r=new this(NaN)}else if(!e.d&&!t.d){r=getPi(this,a,1).times(t.s>0?.25:.75);r.s=e.s}else if(!t.d||e.isZero()){r=t.s<0?getPi(this,n,i):new this(0);r.s=e.s}else if(!e.d||t.isZero()){r=getPi(this,a,1).times(.5);r.s=e.s}else if(t.s<0){this.precision=a;this.rounding=1;r=this.atan(O(e,t,a,1));t=getPi(this,a,1);this.precision=n;this.rounding=i;r=e.s<0?r.minus(t):r.plus(t)}else{r=this.atan(O(e,t,a,1))}return r}function cbrt(e){return new this(e).cbrt()}function ceil(e){return finalise(e=new this(e),e.e+1,2)}function clamp(e,t,r){return new this(e).clamp(t,r)}function config(e){if(!e||typeof e!=="object")throw Error(p+"Object expected");var t,i,a,o=e.defaults===true,u=["precision",1,n,"rounding",0,8,"toExpNeg",-r,0,"toExpPos",0,r,"maxE",0,r,"minE",-r,0,"modulo",0,9];for(t=0;t<u.length;t+=3){if(i=u[t],o)this[i]=s[i];if((a=e[i])!==void 0){if(y(a)===a&&a>=u[t+1]&&a<=u[t+2])this[i]=a;else throw Error(m+i+": "+a)}}if(i="crypto",o)this[i]=s[i];if((a=e[i])!==void 0){if(a===true||a===false||a===0||a===1){if(a){if(typeof crypto!="undefined"&&crypto&&(crypto.getRandomValues||crypto.randomBytes)){this[i]=true}else{throw Error(v)}}else{this[i]=false}}else{throw Error(m+i+": "+a)}}return this}function cos(e){return new this(e).cos()}function cosh(e){return new this(e).cosh()}function clone(e){var t,r,n;function Decimal(e){var t,r,n,i=this;if(!(i instanceof Decimal))return new Decimal(e);i.constructor=Decimal;if(isDecimalInstance(e)){i.s=e.s;if(h){if(!e.d||e.e>Decimal.maxE){i.e=NaN;i.d=null}else if(e.e<Decimal.minE){i.e=0;i.d=[0]}else{i.e=e.e;i.d=e.d.slice()}}else{i.e=e.e;i.d=e.d?e.d.slice():e.d}return}n=typeof e;if(n==="number"){if(e===0){i.s=1/e<0?-1:1;i.e=0;i.d=[0];return}if(e<0){e=-e;i.s=-1}else{i.s=1}if(e===~~e&&e<1e7){for(t=0,r=e;r>=10;r/=10)t++;if(h){if(t>Decimal.maxE){i.e=NaN;i.d=null}else if(t<Decimal.minE){i.e=0;i.d=[0]}else{i.e=t;i.d=[e]}}else{i.e=t;i.d=[e]}return}else if(e*0!==0){if(!e)i.s=NaN;i.e=NaN;i.d=null;return}return parseDecimal(i,e.toString())}else if(n!=="string"){throw Error(m+e)}if((r=e.charCodeAt(0))===45){e=e.slice(1);i.s=-1}else{if(r===43)e=e.slice(1);i.s=1}return E.test(e)?parseDecimal(i,e):parseOther(i,e)}Decimal.prototype=x;Decimal.ROUND_UP=0;Decimal.ROUND_DOWN=1;Decimal.ROUND_CEIL=2;Decimal.ROUND_FLOOR=3;Decimal.ROUND_HALF_UP=4;Decimal.ROUND_HALF_DOWN=5;Decimal.ROUND_HALF_EVEN=6;Decimal.ROUND_HALF_CEIL=7;Decimal.ROUND_HALF_FLOOR=8;Decimal.EUCLID=9;Decimal.config=Decimal.set=config;Decimal.clone=clone;Decimal.isDecimal=isDecimalInstance;Decimal.abs=abs;Decimal.acos=acos;Decimal.acosh=acosh;Decimal.add=add;Decimal.asin=asin;Decimal.asinh=asinh;Decimal.atan=atan;Decimal.atanh=atanh;Decimal.atan2=atan2;Decimal.cbrt=cbrt;Decimal.ceil=ceil;Decimal.clamp=clamp;Decimal.cos=cos;Decimal.cosh=cosh;Decimal.div=div;Decimal.exp=exp;Decimal.floor=floor;Decimal.hypot=hypot;Decimal.ln=ln;Decimal.log=log;Decimal.log10=log10;Decimal.log2=log2;Decimal.max=max;Decimal.min=min;Decimal.mod=mod;Decimal.mul=mul;Decimal.pow=pow;Decimal.random=random;Decimal.round=round;Decimal.sign=sign;Decimal.sin=sin;Decimal.sinh=sinh;Decimal.sqrt=sqrt;Decimal.sub=sub;Decimal.sum=sum;Decimal.tan=tan;Decimal.tanh=tanh;Decimal.trunc=trunc;if(e===void 0)e={};if(e){if(e.defaults!==true){n=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];for(t=0;t<n.length;)if(!e.hasOwnProperty(r=n[t++]))e[r]=this[r]}}Decimal.config(e);return Decimal}function div(e,t){return new this(e).div(t)}function exp(e){return new this(e).exp()}function floor(e){return finalise(e=new this(e),e.e+1,3)}function hypot(){var e,t,r=new this(0);h=false;for(e=0;e<arguments.length;){t=new this(arguments[e++]);if(!t.d){if(t.s){h=true;return new this(1/0)}r=t}else if(r.d){r=r.plus(t.times(t))}}h=true;return r.sqrt()}function isDecimalInstance(e){return e instanceof u||e&&e.toStringTag===b||false}function ln(e){return new this(e).ln()}function log(e,t){return new this(e).log(t)}function log2(e){return new this(e).log(2)}function log10(e){return new this(e).log(10)}function max(){return maxOrMin(this,arguments,"lt")}function min(){return maxOrMin(this,arguments,"gt")}function mod(e,t){return new this(e).mod(t)}function mul(e,t){return new this(e).mul(t)}function pow(e,t){return new this(e).pow(t)}function random(e){var t,r,i,a,o=0,s=new this(1),u=[];if(e===void 0)e=this.precision;else checkInt32(e,1,n);i=Math.ceil(e/T);if(!this.crypto){for(;o<i;)u[o++]=Math.random()*1e7|0}else if(crypto.getRandomValues){t=crypto.getRandomValues(new Uint32Array(i));for(;o<i;){a=t[o];if(a>=429e7){t[o]=crypto.getRandomValues(new Uint32Array(1))[0]}else{u[o++]=a%1e7}}}else if(crypto.randomBytes){t=crypto.randomBytes(i*=4);for(;o<i;){a=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((t[o+3]&127)<<24);if(a>=214e7){crypto.randomBytes(4).copy(t,o)}else{u.push(a%1e7);o+=4}}o=i/4}else{throw Error(v)}i=u[--o];e%=T;if(i&&e){a=w(10,T-e);u[o]=(i/a|0)*a}for(;u[o]===0;o--)u.pop();if(o<0){r=0;u=[0]}else{r=-1;for(;u[0]===0;r-=T)u.shift();for(i=1,a=u[0];a>=10;a/=10)i++;if(i<T)r-=T-i}s.e=r;s.d=u;return s}function round(e){return finalise(e=new this(e),e.e+1,this.rounding)}function sign(e){e=new this(e);return e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function sin(e){return new this(e).sin()}function sinh(e){return new this(e).sinh()}function sqrt(e){return new this(e).sqrt()}function sub(e,t){return new this(e).sub(t)}function sum(){var e=0,t=arguments,r=new this(t[e]);h=false;for(;r.s&&++e<t.length;)r=r.plus(t[e]);h=true;return finalise(r,this.precision,this.rounding)}function tan(e){return new this(e).tan()}function tanh(e){return new this(e).tanh()}function trunc(e){return finalise(e=new this(e),e.e+1,1)}u=clone(s);u.prototype.constructor=u;u["default"]=u.Decimal=u;a=new u(a);o=new u(o);if(typeof define=="function"&&define.amd){define((function(){return u}))}else if(true&&e.exports){if(typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"){x[Symbol["for"]("nodejs.util.inspect.custom")]=x.toString;x[Symbol.toStringTag]="Decimal"}e.exports=u}else{if(!t){t=typeof self!="undefined"&&self&&self.self==self?self:window}l=t.Decimal;u.noConflict=function(){t.Decimal=l;return u};t.Decimal=u}})(this)},577:(e,t,r)=>{"use strict";var n=t;n.version=r(8597).i8;n.utils=r(2727);n.rand=r(3803);n.curve=r(2728);n.curves=r(1516);n.ec=r(7433);n.eddsa=r(5755)},966:(e,t,r)=>{"use strict";var n=r(3693);var i=r(2727);var a=i.getNAF;var o=i.getJSF;var s=i.assert;function BaseCurve(e,t){this.type=e;this.p=new n(t.p,16);this.red=t.prime?n.red(t.prime):n.mont(this.p);this.zero=new n(0).toRed(this.red);this.one=new n(1).toRed(this.red);this.two=new n(2).toRed(this.red);this.n=t.n&&new n(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);this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);if(!r||r.cmpn(100)>0){this.redN=null}else{this._maxwellTrick=true;this.redN=this.n.toRed(this.red)}}e.exports=BaseCurve;BaseCurve.prototype.point=function point(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function validate(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function _fixedNafMul(e,t){s(e.precomputed);var r=e._getDoubles();var n=a(t,1,this._bitLength);var i=(1<<r.step+1)-(r.step%2===0?2:1);i/=3;var o=[];var u;var c;for(u=0;u<n.length;u+=r.step){c=0;for(var l=u+r.step-1;l>=u;l--)c=(c<<1)+n[l];o.push(c)}var d=this.jpoint(null,null,null);var h=this.jpoint(null,null,null);for(var p=i;p>0;p--){for(u=0;u<o.length;u++){c=o[u];if(c===p)h=h.mixedAdd(r.points[u]);else if(c===-p)h=h.mixedAdd(r.points[u].neg())}d=d.add(h)}return d.toP()};BaseCurve.prototype._wnafMul=function _wnafMul(e,t){var r=4;var n=e._getNAFPoints(r);r=n.wnd;var i=n.points;var o=a(t,r,this._bitLength);var u=this.jpoint(null,null,null);for(var c=o.length-1;c>=0;c--){for(var l=0;c>=0&&o[c]===0;c--)l++;if(c>=0)l++;u=u.dblp(l);if(c<0)break;var d=o[c];s(d!==0);if(e.type==="affine"){if(d>0)u=u.mixedAdd(i[d-1>>1]);else u=u.mixedAdd(i[-d-1>>1].neg())}else{if(d>0)u=u.add(i[d-1>>1]);else u=u.add(i[-d-1>>1].neg())}}return e.type==="affine"?u.toP():u};BaseCurve.prototype._wnafMulAdd=function _wnafMulAdd(e,t,r,n,i){var s=this._wnafT1;var u=this._wnafT2;var c=this._wnafT3;var l=0;var d;var h;var p;for(d=0;d<n;d++){p=t[d];var m=p._getNAFPoints(e);s[d]=m.wnd;u[d]=m.points}for(d=n-1;d>=1;d-=2){var g=d-1;var v=d;if(s[g]!==1||s[v]!==1){c[g]=a(r[g],s[g],this._bitLength);c[v]=a(r[v],s[v],this._bitLength);l=Math.max(c[g].length,l);l=Math.max(c[v].length,l);continue}var b=[t[g],null,null,t[v]];if(t[g].y.cmp(t[v].y)===0){b[1]=t[g].add(t[v]);b[2]=t[g].toJ().mixedAdd(t[v].neg())}else if(t[g].y.cmp(t[v].y.redNeg())===0){b[1]=t[g].toJ().mixedAdd(t[v]);b[2]=t[g].add(t[v].neg())}else{b[1]=t[g].toJ().mixedAdd(t[v]);b[2]=t[g].toJ().mixedAdd(t[v].neg())}var y=[-3,-1,-5,-7,0,7,5,1,3];var w=o(r[g],r[v]);l=Math.max(w[0].length,l);c[g]=new Array(l);c[v]=new Array(l);for(h=0;h<l;h++){var _=w[0][h]|0;var k=w[1][h]|0;c[g][h]=y[(_+1)*3+(k+1)];c[v][h]=0;u[g]=b}}var A=this.jpoint(null,null,null);var E=this._wnafT4;for(d=l;d>=0;d--){var I=0;while(d>=0){var T=true;for(h=0;h<n;h++){E[h]=c[h][d]|0;if(E[h]!==0)T=false}if(!T)break;I++;d--}if(d>=0)I++;A=A.dblp(I);if(d<0)break;for(h=0;h<n;h++){var B=E[h];p;if(B===0)continue;else if(B>0)p=u[h][B-1>>1];else if(B<0)p=u[h][-B-1>>1].neg();if(p.type==="affine")A=A.mixedAdd(p);else A=A.add(p)}}for(d=0;d<n;d++)u[d]=null;if(i)return A;else return A.toP()};function BasePoint(e,t){this.curve=e;this.type=t;this.precomputed=null}BaseCurve.BasePoint=BasePoint;BasePoint.prototype.eq=function eq(){throw new Error("Not implemented")};BasePoint.prototype.validate=function validate(){return this.curve.validate(this)};BaseCurve.prototype.decodePoint=function decodePoint(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1===2*r){if(e[0]===6)s(e[e.length-1]%2===0);else if(e[0]===7)s(e[e.length-1]%2===1);var n=this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));return n}else if((e[0]===2||e[0]===3)&&e.length-1===r){return this.pointFromX(e.slice(1,1+r),e[0]===3)}throw new Error("Unknown point format")};BasePoint.prototype.encodeCompressed=function encodeCompressed(e){return this.encode(e,true)};BasePoint.prototype._encode=function _encode(e){var t=this.curve.p.byteLength();var r=this.getX().toArray("be",t);if(e)return[this.getY().isEven()?2:3].concat(r);return[4].concat(r,this.getY().toArray("be",t))};BasePoint.prototype.encode=function encode(e,t){return i.encode(this._encode(t),e)};BasePoint.prototype.precompute=function precompute(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};t.naf=this._getNAFPoints(8);t.doubles=this._getDoubles(4,e);t.beta=this._getBeta();this.precomputed=t;return this};BasePoint.prototype._hasDoubles=function _hasDoubles(e){if(!this.precomputed)return false;var t=this.precomputed.doubles;if(!t)return false;return t.points.length>=Math.ceil((e.bitLength()+1)/t.step)};BasePoint.prototype._getDoubles=function _getDoubles(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;var r=[this];var n=this;for(var i=0;i<t;i+=e){for(var a=0;a<e;a++)n=n.dbl();r.push(n)}return{step:e,points:r}};BasePoint.prototype._getNAFPoints=function _getNAFPoints(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;var t=[this];var r=(1<<e)-1;var n=r===1?null:this.dbl();for(var i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}};BasePoint.prototype._getBeta=function _getBeta(){return null};BasePoint.prototype.dblp=function dblp(e){var t=this;for(var r=0;r<e;r++)t=t.dbl();return t}},5640:(e,t,r)=>{"use strict";var n=r(2727);var i=r(3693);var a=r(7263);var o=r(966);var s=n.assert;function EdwardsCurve(e){this.twisted=(e.a|0)!==1;this.mOneA=this.twisted&&(e.a|0)===-1;this.extended=this.mOneA;o.call(this,"edwards",e);this.a=new i(e.a,16).umod(this.red.m);this.a=this.a.toRed(this.red);this.c=new i(e.c,16).toRed(this.red);this.c2=this.c.redSqr();this.d=new i(e.d,16).toRed(this.red);this.dd=this.d.redAdd(this.d);s(!this.twisted||this.c.fromRed().cmpn(1)===0);this.oneC=(e.c|0)===1}a(EdwardsCurve,o);e.exports=EdwardsCurve;EdwardsCurve.prototype._mulA=function _mulA(e){if(this.mOneA)return e.redNeg();else return this.a.redMul(e)};EdwardsCurve.prototype._mulC=function _mulC(e){if(this.oneC)return e;else return this.c.redMul(e)};EdwardsCurve.prototype.jpoint=function jpoint(e,t,r,n){return this.point(e,t,r,n)};EdwardsCurve.prototype.pointFromX=function pointFromX(e,t){e=new i(e,16);if(!e.red)e=e.toRed(this.red);var r=e.redSqr();var n=this.c2.redSub(this.a.redMul(r));var a=this.one.redSub(this.c2.redMul(this.d).redMul(r));var o=n.redMul(a.redInvm());var s=o.redSqrt();if(s.redSqr().redSub(o).cmp(this.zero)!==0)throw new Error("invalid point");var u=s.fromRed().isOdd();if(t&&!u||!t&&u)s=s.redNeg();return this.point(e,s)};EdwardsCurve.prototype.pointFromY=function pointFromY(e,t){e=new i(e,16);if(!e.red)e=e.toRed(this.red);var r=e.redSqr();var n=r.redSub(this.c2);var a=r.redMul(this.d).redMul(this.c2).redSub(this.a);var o=n.redMul(a.redInvm());if(o.cmp(this.zero)===0){if(t)throw new Error("invalid point");else return this.point(this.zero,e)}var s=o.redSqrt();if(s.redSqr().redSub(o).cmp(this.zero)!==0)throw new Error("invalid point");if(s.fromRed().isOdd()!==t)s=s.redNeg();return this.point(s,e)};EdwardsCurve.prototype.validate=function validate(e){if(e.isInfinity())return true;e.normalize();var t=e.x.redSqr();var r=e.y.redSqr();var n=t.redMul(this.a).redAdd(r);var i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return n.cmp(i)===0};function Point(e,t,r,n,a){o.BasePoint.call(this,e,"projective");if(t===null&&r===null&&n===null){this.x=this.curve.zero;this.y=this.curve.one;this.z=this.curve.one;this.t=this.curve.zero;this.zOne=true}else{this.x=new i(t,16);this.y=new i(r,16);this.z=n?new i(n,16):this.curve.one;this.t=a&&new i(a,16);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);if(this.t&&!this.t.red)this.t=this.t.toRed(this.curve.red);this.zOne=this.z===this.curve.one;if(this.curve.extended&&!this.t){this.t=this.x.redMul(this.y);if(!this.zOne)this.t=this.t.redMul(this.z.redInvm())}}}a(Point,o.BasePoint);EdwardsCurve.prototype.pointFromJSON=function pointFromJSON(e){return Point.fromJSON(this,e)};EdwardsCurve.prototype.point=function point(e,t,r,n){return new Point(this,e,t,r,n)};Point.fromJSON=function fromJSON(e,t){return new Point(e,t[0],t[1],t[2])};Point.prototype.inspect=function inspect(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};Point.prototype.isInfinity=function isInfinity(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point.prototype._extDbl=function _extDbl(){var e=this.x.redSqr();var t=this.y.redSqr();var r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e);var i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t);var a=n.redAdd(t);var o=a.redSub(r);var s=n.redSub(t);var u=i.redMul(o);var c=a.redMul(s);var l=i.redMul(s);var d=o.redMul(a);return this.curve.point(u,c,d,l)};Point.prototype._projDbl=function _projDbl(){var e=this.x.redAdd(this.y).redSqr();var t=this.x.redSqr();var r=this.y.redSqr();var n;var i;var a;var o;var s;var u;if(this.curve.twisted){o=this.curve._mulA(t);var c=o.redAdd(r);if(this.zOne){n=e.redSub(t).redSub(r).redMul(c.redSub(this.curve.two));i=c.redMul(o.redSub(r));a=c.redSqr().redSub(c).redSub(c)}else{s=this.z.redSqr();u=c.redSub(s).redISub(s);n=e.redSub(t).redISub(r).redMul(u);i=c.redMul(o.redSub(r));a=c.redMul(u)}}else{o=t.redAdd(r);s=this.curve._mulC(this.z).redSqr();u=o.redSub(s).redSub(s);n=this.curve._mulC(e.redISub(o)).redMul(u);i=this.curve._mulC(o).redMul(t.redISub(r));a=o.redMul(u)}return this.curve.point(n,i,a)};Point.prototype.dbl=function dbl(){if(this.isInfinity())return this;if(this.curve.extended)return this._extDbl();else return this._projDbl()};Point.prototype._extAdd=function _extAdd(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x));var r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x));var n=this.t.redMul(this.curve.dd).redMul(e.t);var i=this.z.redMul(e.z.redAdd(e.z));var a=r.redSub(t);var o=i.redSub(n);var s=i.redAdd(n);var u=r.redAdd(t);var c=a.redMul(o);var l=s.redMul(u);var d=a.redMul(u);var h=o.redMul(s);return this.curve.point(c,l,h,d)};Point.prototype._projAdd=function _projAdd(e){var t=this.z.redMul(e.z);var r=t.redSqr();var n=this.x.redMul(e.x);var i=this.y.redMul(e.y);var a=this.curve.d.redMul(n).redMul(i);var o=r.redSub(a);var s=r.redAdd(a);var u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(n).redISub(i);var c=t.redMul(o).redMul(u);var l;var d;if(this.curve.twisted){l=t.redMul(s).redMul(i.redSub(this.curve._mulA(n)));d=o.redMul(s)}else{l=t.redMul(s).redMul(i.redSub(n));d=this.curve._mulC(o).redMul(s)}return this.curve.point(c,l,d)};Point.prototype.add=function add(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.curve.extended)return this._extAdd(e);else return this._projAdd(e)};Point.prototype.mul=function mul(e){if(this._hasDoubles(e))return this.curve._fixedNafMul(this,e);else return this.curve._wnafMul(this,e)};Point.prototype.mulAdd=function mulAdd(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,false)};Point.prototype.jmulAdd=function jmulAdd(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,true)};Point.prototype.normalize=function normalize(){if(this.zOne)return this;var e=this.z.redInvm();this.x=this.x.redMul(e);this.y=this.y.redMul(e);if(this.t)this.t=this.t.redMul(e);this.z=this.curve.one;this.zOne=true;return this};Point.prototype.neg=function neg(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function getX(){this.normalize();return this.x.fromRed()};Point.prototype.getY=function getY(){this.normalize();return this.y.fromRed()};Point.prototype.eq=function eq(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};Point.prototype.eqXToP=function eqXToP(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return true;var r=e.clone();var n=this.curve.redN.redMul(this.z);for(;;){r.iadd(this.curve.n);if(r.cmp(this.curve.p)>=0)return false;t.redIAdd(n);if(this.x.cmp(t)===0)return true}};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add},2728:(e,t,r)=>{"use strict";var n=t;n.base=r(966);n.short=r(8753);n.mont=r(3055);n.edwards=r(5640)},3055:(e,t,r)=>{"use strict";var n=r(3693);var i=r(7263);var a=r(966);var o=r(2727);function MontCurve(e){a.call(this,"mont",e);this.a=new n(e.a,16).toRed(this.red);this.b=new n(e.b,16).toRed(this.red);this.i4=new n(4).toRed(this.red).redInvm();this.two=new n(2).toRed(this.red);this.a24=this.i4.redMul(this.a.redAdd(this.two))}i(MontCurve,a);e.exports=MontCurve;MontCurve.prototype.validate=function validate(e){var t=e.normalize().x;var r=t.redSqr();var n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);var i=n.redSqrt();return i.redSqr().cmp(n)===0};function Point(e,t,r){a.BasePoint.call(this,e,"projective");if(t===null&&r===null){this.x=this.curve.one;this.z=this.curve.zero}else{this.x=new n(t,16);this.z=new n(r,16);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red)}}i(Point,a.BasePoint);MontCurve.prototype.decodePoint=function decodePoint(e,t){return this.point(o.toArray(e,t),1)};MontCurve.prototype.point=function point(e,t){return new Point(this,e,t)};MontCurve.prototype.pointFromJSON=function pointFromJSON(e){return Point.fromJSON(this,e)};Point.prototype.precompute=function precompute(){};Point.prototype._encode=function _encode(){return this.getX().toArray("be",this.curve.p.byteLength())};Point.fromJSON=function fromJSON(e,t){return new Point(e,t[0],t[1]||e.one)};Point.prototype.inspect=function inspect(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};Point.prototype.isInfinity=function isInfinity(){return this.z.cmpn(0)===0};Point.prototype.dbl=function dbl(){var e=this.x.redAdd(this.z);var t=e.redSqr();var r=this.x.redSub(this.z);var n=r.redSqr();var i=t.redSub(n);var a=t.redMul(n);var o=i.redMul(n.redAdd(this.curve.a24.redMul(i)));return this.curve.point(a,o)};Point.prototype.add=function add(){throw new Error("Not supported on Montgomery curve")};Point.prototype.diffAdd=function diffAdd(e,t){var r=this.x.redAdd(this.z);var n=this.x.redSub(this.z);var i=e.x.redAdd(e.z);var a=e.x.redSub(e.z);var o=a.redMul(r);var s=i.redMul(n);var u=t.z.redMul(o.redAdd(s).redSqr());var c=t.x.redMul(o.redISub(s).redSqr());return this.curve.point(u,c)};Point.prototype.mul=function mul(e){var t=e.clone();var r=this;var n=this.curve.point(null,null);var i=this;for(var a=[];t.cmpn(0)!==0;t.iushrn(1))a.push(t.andln(1));for(var o=a.length-1;o>=0;o--){if(a[o]===0){r=r.diffAdd(n,i);n=n.dbl()}else{n=r.diffAdd(n,i);r=r.dbl()}}return n};Point.prototype.mulAdd=function mulAdd(){throw new Error("Not supported on Montgomery curve")};Point.prototype.jumlAdd=function jumlAdd(){throw new Error("Not supported on Montgomery curve")};Point.prototype.eq=function eq(e){return this.getX().cmp(e.getX())===0};Point.prototype.normalize=function normalize(){this.x=this.x.redMul(this.z.redInvm());this.z=this.curve.one;return this};Point.prototype.getX=function getX(){this.normalize();return this.x.fromRed()}},8753:(e,t,r)=>{"use strict";var n=r(2727);var i=r(3693);var a=r(7263);var o=r(966);var s=n.assert;function ShortCurve(e){o.call(this,"short",e);this.a=new i(e.a,16).toRed(this.red);this.b=new i(e.b,16).toRed(this.red);this.tinv=this.two.redInvm();this.zeroA=this.a.fromRed().cmpn(0)===0;this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0;this.endo=this._getEndomorphism(e);this._endoWnafT1=new Array(4);this._endoWnafT2=new Array(4)}a(ShortCurve,o);e.exports=ShortCurve;ShortCurve.prototype._getEndomorphism=function _getEndomorphism(e){if(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)return;var t;var r;if(e.beta){t=new i(e.beta,16).toRed(this.red)}else{var n=this._getEndoRoots(this.p);t=n[0].cmp(n[1])<0?n[0]:n[1];t=t.toRed(this.red)}if(e.lambda){r=new i(e.lambda,16)}else{var a=this._getEndoRoots(this.n);if(this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))===0){r=a[0]}else{r=a[1];s(this.g.mul(r).x.cmp(this.g.x.redMul(t))===0)}}var o;if(e.basis){o=e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}))}else{o=this._getEndoBasis(r)}return{beta:t,lambda:r,basis:o}};ShortCurve.prototype._getEndoRoots=function _getEndoRoots(e){var t=e===this.p?this.red:i.mont(e);var r=new i(2).toRed(t).redInvm();var n=r.redNeg();var a=new i(3).toRed(t).redNeg().redSqrt().redMul(r);var o=n.redAdd(a).fromRed();var s=n.redSub(a).fromRed();return[o,s]};ShortCurve.prototype._getEndoBasis=function _getEndoBasis(e){var t=this.n.ushrn(Math.floor(this.n.bitLength()/2));var r=e;var n=this.n.clone();var a=new i(1);var o=new i(0);var s=new i(0);var u=new i(1);var c;var l;var d;var h;var p;var m;var g;var v=0;var b;var y;while(r.cmpn(0)!==0){var w=n.div(r);b=n.sub(w.mul(r));y=s.sub(w.mul(a));var _=u.sub(w.mul(o));if(!d&&b.cmp(t)<0){c=g.neg();l=a;d=b.neg();h=y}else if(d&&++v===2){break}g=b;n=r;r=b;s=a;a=y;u=o;o=_}p=b.neg();m=y;var k=d.sqr().add(h.sqr());var A=p.sqr().add(m.sqr());if(A.cmp(k)>=0){p=c;m=l}if(d.negative){d=d.neg();h=h.neg()}if(p.negative){p=p.neg();m=m.neg()}return[{a:d,b:h},{a:p,b:m}]};ShortCurve.prototype._endoSplit=function _endoSplit(e){var t=this.endo.basis;var r=t[0];var n=t[1];var i=n.b.mul(e).divRound(this.n);var a=r.b.neg().mul(e).divRound(this.n);var o=i.mul(r.a);var s=a.mul(n.a);var u=i.mul(r.b);var c=a.mul(n.b);var l=e.sub(o).sub(s);var d=u.add(c).neg();return{k1:l,k2:d}};ShortCurve.prototype.pointFromX=function pointFromX(e,t){e=new i(e,16);if(!e.red)e=e.toRed(this.red);var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b);var n=r.redSqrt();if(n.redSqr().redSub(r).cmp(this.zero)!==0)throw new Error("invalid point");var a=n.fromRed().isOdd();if(t&&!a||!t&&a)n=n.redNeg();return this.point(e,n)};ShortCurve.prototype.validate=function validate(e){if(e.inf)return true;var t=e.x;var r=e.y;var n=this.a.redMul(t);var i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return r.redSqr().redISub(i).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function _endoWnafMulAdd(e,t,r){var n=this._endoWnafT1;var i=this._endoWnafT2;for(var a=0;a<e.length;a++){var o=this._endoSplit(t[a]);var s=e[a];var u=s._getBeta();if(o.k1.negative){o.k1.ineg();s=s.neg(true)}if(o.k2.negative){o.k2.ineg();u=u.neg(true)}n[a*2]=s;n[a*2+1]=u;i[a*2]=o.k1;i[a*2+1]=o.k2}var c=this._wnafMulAdd(1,n,i,a*2,r);for(var l=0;l<a*2;l++){n[l]=null;i[l]=null}return c};function Point(e,t,r,n){o.BasePoint.call(this,e,"affine");if(t===null&&r===null){this.x=null;this.y=null;this.inf=true}else{this.x=new i(t,16);this.y=new i(r,16);if(n){this.x.forceRed(this.curve.red);this.y.forceRed(this.curve.red)}if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);this.inf=false}}a(Point,o.BasePoint);ShortCurve.prototype.point=function point(e,t,r){return new Point(this,e,t,r)};ShortCurve.prototype.pointFromJSON=function pointFromJSON(e,t){return Point.fromJSON(this,e,t)};Point.prototype._getBeta=function _getBeta(){if(!this.curve.endo)return;var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve;var endoMul=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t;t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(endoMul)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(endoMul)}}}return t};Point.prototype.toJSON=function toJSON(){if(!this.precomputed)return[this.x,this.y];return[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]};Point.fromJSON=function fromJSON(e,t,r){if(typeof t==="string")t=JSON.parse(t);var n=e.point(t[0],t[1],r);if(!t[2])return n;function obj2point(t){return e.point(t[0],t[1],r)}var i=t[2];n.precomputed={beta:null,doubles:i.doubles&&{step:i.doubles.step,points:[n].concat(i.doubles.points.map(obj2point))},naf:i.naf&&{wnd:i.naf.wnd,points:[n].concat(i.naf.points.map(obj2point))}};return n};Point.prototype.inspect=function inspect(){if(this.isInfinity())return"<EC Point Infinity>";return"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};Point.prototype.isInfinity=function isInfinity(){return this.inf};Point.prototype.add=function add(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(this.x.cmp(e.x)===0)return this.curve.point(null,null);var t=this.y.redSub(e.y);if(t.cmpn(0)!==0)t=t.redMul(this.x.redSub(e.x).redInvm());var r=t.redSqr().redISub(this.x).redISub(e.x);var n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)};Point.prototype.dbl=function dbl(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var t=this.curve.a;var r=this.x.redSqr();var n=e.redInvm();var i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n);var a=i.redSqr().redISub(this.x.redAdd(this.x));var o=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)};Point.prototype.getX=function getX(){return this.x.fromRed()};Point.prototype.getY=function getY(){return this.y.fromRed()};Point.prototype.mul=function mul(e){e=new i(e,16);if(this.isInfinity())return this;else if(this._hasDoubles(e))return this.curve._fixedNafMul(this,e);else if(this.curve.endo)return this.curve._endoWnafMulAdd([this],[e]);else return this.curve._wnafMul(this,e)};Point.prototype.mulAdd=function mulAdd(e,t,r){var n=[this,t];var i=[e,r];if(this.curve.endo)return this.curve._endoWnafMulAdd(n,i);else return this.curve._wnafMulAdd(1,n,i,2)};Point.prototype.jmulAdd=function jmulAdd(e,t,r){var n=[this,t];var i=[e,r];if(this.curve.endo)return this.curve._endoWnafMulAdd(n,i,true);else return this.curve._wnafMulAdd(1,n,i,2,true)};Point.prototype.eq=function eq(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};Point.prototype.neg=function neg(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed;var negate=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(negate)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(negate)}}}return t};Point.prototype.toJ=function toJ(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function JPoint(e,t,r,n){o.BasePoint.call(this,e,"jacobian");if(t===null&&r===null&&n===null){this.x=this.curve.one;this.y=this.curve.one;this.z=new i(0)}else{this.x=new i(t,16);this.y=new i(r,16);this.z=new i(n,16)}if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);this.zOne=this.z===this.curve.one}a(JPoint,o.BasePoint);ShortCurve.prototype.jpoint=function jpoint(e,t,r){return new JPoint(this,e,t,r)};JPoint.prototype.toP=function toP(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm();var t=e.redSqr();var r=this.x.redMul(t);var n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)};JPoint.prototype.neg=function neg(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function add(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr();var r=this.z.redSqr();var n=this.x.redMul(t);var i=e.x.redMul(r);var a=this.y.redMul(t.redMul(e.z));var o=e.y.redMul(r.redMul(this.z));var s=n.redSub(i);var u=a.redSub(o);if(s.cmpn(0)===0){if(u.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl()}var c=s.redSqr();var l=c.redMul(s);var d=n.redMul(c);var h=u.redSqr().redIAdd(l).redISub(d).redISub(d);var p=u.redMul(d.redISub(h)).redISub(a.redMul(l));var m=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,p,m)};JPoint.prototype.mixedAdd=function mixedAdd(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr();var r=this.x;var n=e.x.redMul(t);var i=this.y;var a=e.y.redMul(t).redMul(this.z);var o=r.redSub(n);var s=i.redSub(a);if(o.cmpn(0)===0){if(s.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl()}var u=o.redSqr();var c=u.redMul(o);var l=r.redMul(u);var d=s.redSqr().redIAdd(c).redISub(l).redISub(l);var h=s.redMul(l.redISub(d)).redISub(i.redMul(c));var p=this.z.redMul(o);return this.curve.jpoint(d,h,p)};JPoint.prototype.dblp=function dblp(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a;var i=this.curve.tinv;var a=this.x;var o=this.y;var s=this.z;var u=s.redSqr().redSqr();var c=o.redAdd(o);for(t=0;t<e;t++){var l=a.redSqr();var d=c.redSqr();var h=d.redSqr();var p=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(u));var m=a.redMul(d);var g=p.redSqr().redISub(m.redAdd(m));var v=m.redISub(g);var b=p.redMul(v);b=b.redIAdd(b).redISub(h);var y=c.redMul(s);if(t+1<e)u=u.redMul(h);a=g;s=y;c=b}return this.curve.jpoint(a,c.redMul(i),s)};JPoint.prototype.dbl=function dbl(){if(this.isInfinity())return this;if(this.curve.zeroA)return this._zeroDbl();else if(this.curve.threeA)return this._threeDbl();else return this._dbl()};JPoint.prototype._zeroDbl=function _zeroDbl(){var e;var t;var r;if(this.zOne){var n=this.x.redSqr();var i=this.y.redSqr();var a=i.redSqr();var o=this.x.redAdd(i).redSqr().redISub(n).redISub(a);o=o.redIAdd(o);var s=n.redAdd(n).redIAdd(n);var u=s.redSqr().redISub(o).redISub(o);var c=a.redIAdd(a);c=c.redIAdd(c);c=c.redIAdd(c);e=u;t=s.redMul(o.redISub(u)).redISub(c);r=this.y.redAdd(this.y)}else{var l=this.x.redSqr();var d=this.y.redSqr();var h=d.redSqr();var p=this.x.redAdd(d).redSqr().redISub(l).redISub(h);p=p.redIAdd(p);var m=l.redAdd(l).redIAdd(l);var g=m.redSqr();var v=h.redIAdd(h);v=v.redIAdd(v);v=v.redIAdd(v);e=g.redISub(p).redISub(p);t=m.redMul(p.redISub(e)).redISub(v);r=this.y.redMul(this.z);r=r.redIAdd(r)}return this.curve.jpoint(e,t,r)};JPoint.prototype._threeDbl=function _threeDbl(){var e;var t;var r;if(this.zOne){var n=this.x.redSqr();var i=this.y.redSqr();var a=i.redSqr();var o=this.x.redAdd(i).redSqr().redISub(n).redISub(a);o=o.redIAdd(o);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a);var u=s.redSqr().redISub(o).redISub(o);e=u;var c=a.redIAdd(a);c=c.redIAdd(c);c=c.redIAdd(c);t=s.redMul(o.redISub(u)).redISub(c);r=this.y.redAdd(this.y)}else{var l=this.z.redSqr();var d=this.y.redSqr();var h=this.x.redMul(d);var p=this.x.redSub(l).redMul(this.x.redAdd(l));p=p.redAdd(p).redIAdd(p);var m=h.redIAdd(h);m=m.redIAdd(m);var g=m.redAdd(m);e=p.redSqr().redISub(g);r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(l);var v=d.redSqr();v=v.redIAdd(v);v=v.redIAdd(v);v=v.redIAdd(v);t=p.redMul(m.redISub(e)).redISub(v)}return this.curve.jpoint(e,t,r)};JPoint.prototype._dbl=function _dbl(){var e=this.curve.a;var t=this.x;var r=this.y;var n=this.z;var i=n.redSqr().redSqr();var a=t.redSqr();var o=r.redSqr();var s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(i));var u=t.redAdd(t);u=u.redIAdd(u);var c=u.redMul(o);var l=s.redSqr().redISub(c.redAdd(c));var d=c.redISub(l);var h=o.redSqr();h=h.redIAdd(h);h=h.redIAdd(h);h=h.redIAdd(h);var p=s.redMul(d).redISub(h);var m=r.redAdd(r).redMul(n);return this.curve.jpoint(l,p,m)};JPoint.prototype.trpl=function trpl(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr();var t=this.y.redSqr();var r=this.z.redSqr();var n=t.redSqr();var i=e.redAdd(e).redIAdd(e);var a=i.redSqr();var o=this.x.redAdd(t).redSqr().redISub(e).redISub(n);o=o.redIAdd(o);o=o.redAdd(o).redIAdd(o);o=o.redISub(a);var s=o.redSqr();var u=n.redIAdd(n);u=u.redIAdd(u);u=u.redIAdd(u);u=u.redIAdd(u);var c=i.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(u);var l=t.redMul(c);l=l.redIAdd(l);l=l.redIAdd(l);var d=this.x.redMul(s).redISub(l);d=d.redIAdd(d);d=d.redIAdd(d);var h=this.y.redMul(c.redMul(u.redISub(c)).redISub(o.redMul(s)));h=h.redIAdd(h);h=h.redIAdd(h);h=h.redIAdd(h);var p=this.z.redAdd(o).redSqr().redISub(r).redISub(s);return this.curve.jpoint(d,h,p)};JPoint.prototype.mul=function mul(e,t){e=new i(e,t);return this.curve._wnafMul(this,e)};JPoint.prototype.eq=function eq(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return true;var t=this.z.redSqr();var r=e.z.redSqr();if(this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0)!==0)return false;var n=t.redMul(this.z);var i=r.redMul(e.z);return this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)===0};JPoint.prototype.eqXToP=function eqXToP(e){var t=this.z.redSqr();var r=e.toRed(this.curve.red).redMul(t);if(this.x.cmp(r)===0)return true;var n=e.clone();var i=this.curve.redN.redMul(t);for(;;){n.iadd(this.curve.n);if(n.cmp(this.curve.p)>=0)return false;r.redIAdd(i);if(this.x.cmp(r)===0)return true}};JPoint.prototype.inspect=function inspect(){if(this.isInfinity())return"<EC JPoint Infinity>";return"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"};JPoint.prototype.isInfinity=function isInfinity(){return this.z.cmpn(0)===0}},1516:(e,t,r)=>{"use strict";var n=t;var i=r(609);var a=r(2728);var o=r(2727);var s=o.assert;function PresetCurve(e){if(e.type==="short")this.curve=new a.short(e);else if(e.type==="edwards")this.curve=new a.edwards(e);else this.curve=new a.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")}n.PresetCurve=PresetCurve;function defineCurve(e,t){Object.defineProperty(n,e,{configurable:true,enumerable:true,get:function(){var r=new PresetCurve(t);Object.defineProperty(n,e,{configurable:true,enumerable:true,value:r});return r}})}defineCurve("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:i.sha256,gRed:false,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});defineCurve("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:i.sha256,gRed:false,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});defineCurve("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:i.sha256,gRed:false,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});defineCurve("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:i.sha384,gRed:false,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"]});defineCurve("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:i.sha512,gRed:false,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"]});defineCurve("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:false,g:["9"]});defineCurve("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:i.sha256,gRed:false,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var u;try{u=r(1284)}catch(e){u=undefined}defineCurve("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:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:false,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",u]})},7433:(e,t,r)=>{"use strict";var n=r(3693);var i=r(9300);var a=r(2727);var o=r(1516);var s=r(3803);var u=a.assert;var c=r(2859);var l=r(256);function EC(e){if(!(this instanceof EC))return new EC(e);if(typeof e==="string"){u(Object.prototype.hasOwnProperty.call(o,e),"Unknown curve "+e);e=o[e]}if(e instanceof o.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}e.exports=EC;EC.prototype.keyPair=function keyPair(e){return new c(this,e)};EC.prototype.keyFromPrivate=function keyFromPrivate(e,t){return c.fromPrivate(this,e,t)};EC.prototype.keyFromPublic=function keyFromPublic(e,t){return c.fromPublic(this,e,t)};EC.prototype.genKeyPair=function genKeyPair(e){if(!e)e={};var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()});var r=this.n.byteLength();var a=this.n.sub(new n(2));for(;;){var o=new n(t.generate(r));if(o.cmp(a)>0)continue;o.iaddn(1);return this.keyFromPrivate(o)}};EC.prototype._truncateToN=function _truncateToN(e,t){var r=e.byteLength()*8-this.n.bitLength();if(r>0)e=e.ushrn(r);if(!t&&e.cmp(this.n)>=0)return e.sub(this.n);else return e};EC.prototype.sign=function sign(e,t,r,a){if(typeof r==="object"){a=r;r=null}if(!a)a={};t=this.keyFromPrivate(t,r);e=this._truncateToN(new n(e,16));var o=this.n.byteLength();var s=t.getPrivate().toArray("be",o);var u=e.toArray("be",o);var c=new i({hash:this.hash,entropy:s,nonce:u,pers:a.pers,persEnc:a.persEnc||"utf8"});var d=this.n.sub(new n(1));for(var h=0;;h++){var p=a.k?a.k(h):new n(c.generate(this.n.byteLength()));p=this._truncateToN(p,true);if(p.cmpn(1)<=0||p.cmp(d)>=0)continue;var m=this.g.mul(p);if(m.isInfinity())continue;var g=m.getX();var v=g.umod(this.n);if(v.cmpn(0)===0)continue;var b=p.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e));b=b.umod(this.n);if(b.cmpn(0)===0)continue;var y=(m.getY().isOdd()?1:0)|(g.cmp(v)!==0?2:0);if(a.canonical&&b.cmp(this.nh)>0){b=this.n.sub(b);y^=1}return new l({r:v,s:b,recoveryParam:y})}};EC.prototype.verify=function verify(e,t,r,i){e=this._truncateToN(new n(e,16));r=this.keyFromPublic(r,i);t=new l(t,"hex");var a=t.r;var o=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return false;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return false;var s=o.invm(this.n);var u=s.mul(e).umod(this.n);var c=s.mul(a).umod(this.n);var d;if(!this.curve._maxwellTrick){d=this.g.mulAdd(u,r.getPublic(),c);if(d.isInfinity())return false;return d.getX().umod(this.n).cmp(a)===0}d=this.g.jmulAdd(u,r.getPublic(),c);if(d.isInfinity())return false;return d.eqXToP(a)};EC.prototype.recoverPubKey=function(e,t,r,i){u((3&r)===r,"The recovery param is more than two bits");t=new l(t,i);var a=this.n;var o=new n(e);var s=t.r;var c=t.s;var d=r&1;var h=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");if(h)s=this.curve.pointFromX(s.add(this.curve.n),d);else s=this.curve.pointFromX(s,d);var p=t.r.invm(a);var m=a.sub(o).mul(p).umod(a);var g=c.mul(p).umod(a);return this.g.mulAdd(m,s,g)};EC.prototype.getKeyRecoveryParam=function(e,t,r,n){t=new l(t,n);if(t.recoveryParam!==null)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},2859:(e,t,r)=>{"use strict";var n=r(3693);var i=r(2727);var a=i.assert;function KeyPair(e,t){this.ec=e;this.priv=null;this.pub=null;if(t.priv)this._importPrivate(t.priv,t.privEnc);if(t.pub)this._importPublic(t.pub,t.pubEnc)}e.exports=KeyPair;KeyPair.fromPublic=function fromPublic(e,t,r){if(t instanceof KeyPair)return t;return new KeyPair(e,{pub:t,pubEnc:r})};KeyPair.fromPrivate=function fromPrivate(e,t,r){if(t instanceof KeyPair)return t;return new KeyPair(e,{priv:t,privEnc:r})};KeyPair.prototype.validate=function validate(){var e=this.getPublic();if(e.isInfinity())return{result:false,reason:"Invalid public key"};if(!e.validate())return{result:false,reason:"Public key is not a point"};if(!e.mul(this.ec.curve.n).isInfinity())return{result:false,reason:"Public key * N != O"};return{result:true,reason:null}};KeyPair.prototype.getPublic=function getPublic(e,t){if(typeof e==="string"){t=e;e=null}if(!this.pub)this.pub=this.ec.g.mul(this.priv);if(!t)return this.pub;return this.pub.encode(t,e)};KeyPair.prototype.getPrivate=function getPrivate(e){if(e==="hex")return this.priv.toString(16,2);else return this.priv};KeyPair.prototype._importPrivate=function _importPrivate(e,t){this.priv=new n(e,t||16);this.priv=this.priv.umod(this.ec.curve.n)};KeyPair.prototype._importPublic=function _importPublic(e,t){if(e.x||e.y){if(this.ec.curve.type==="mont"){a(e.x,"Need x coordinate")}else if(this.ec.curve.type==="short"||this.ec.curve.type==="edwards"){a(e.x&&e.y,"Need both x and y coordinate")}this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)};KeyPair.prototype.derive=function derive(e){if(!e.validate()){a(e.validate(),"public point not validated")}return e.mul(this.priv).getX()};KeyPair.prototype.sign=function sign(e,t,r){return this.ec.sign(e,this,t,r)};KeyPair.prototype.verify=function verify(e,t){return this.ec.verify(e,t,this)};KeyPair.prototype.inspect=function inspect(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},256:(e,t,r)=>{"use strict";var n=r(3693);var i=r(2727);var a=i.assert;function Signature(e,t){if(e instanceof Signature)return e;if(this._importDER(e,t))return;a(e.r&&e.s,"Signature without r or s");this.r=new n(e.r,16);this.s=new n(e.s,16);if(e.recoveryParam===undefined)this.recoveryParam=null;else this.recoveryParam=e.recoveryParam}e.exports=Signature;function Position(){this.place=0}function getLength(e,t){var r=e[t.place++];if(!(r&128)){return r}var n=r&15;if(n===0||n>4){return false}var i=0;for(var a=0,o=t.place;a<n;a++,o++){i<<=8;i|=e[o];i>>>=0}if(i<=127){return false}t.place=o;return i}function rmPadding(e){var t=0;var r=e.length-1;while(!e[t]&&!(e[t+1]&128)&&t<r){t++}if(t===0){return e}return e.slice(t)}Signature.prototype._importDER=function _importDER(e,t){e=i.toArray(e,t);var r=new Position;if(e[r.place++]!==48){return false}var a=getLength(e,r);if(a===false){return false}if(a+r.place!==e.length){return false}if(e[r.place++]!==2){return false}var o=getLength(e,r);if(o===false){return false}var s=e.slice(r.place,o+r.place);r.place+=o;if(e[r.place++]!==2){return false}var u=getLength(e,r);if(u===false){return false}if(e.length!==u+r.place){return false}var c=e.slice(r.place,u+r.place);if(s[0]===0){if(s[1]&128){s=s.slice(1)}else{return false}}if(c[0]===0){if(c[1]&128){c=c.slice(1)}else{return false}}this.r=new n(s);this.s=new n(c);this.recoveryParam=null;return true};function constructLength(e,t){if(t<128){e.push(t);return}var r=1+(Math.log(t)/Math.LN2>>>3);e.push(r|128);while(--r){e.push(t>>>(r<<3)&255)}e.push(t)}Signature.prototype.toDER=function toDER(e){var t=this.r.toArray();var r=this.s.toArray();if(t[0]&128)t=[0].concat(t);if(r[0]&128)r=[0].concat(r);t=rmPadding(t);r=rmPadding(r);while(!r[0]&&!(r[1]&128)){r=r.slice(1)}var n=[2];constructLength(n,t.length);n=n.concat(t);n.push(2);constructLength(n,r.length);var a=n.concat(r);var o=[48];constructLength(o,a.length);o=o.concat(a);return i.encode(o,e)}},5755:(e,t,r)=>{"use strict";var n=r(609);var i=r(1516);var a=r(2727);var o=a.assert;var s=a.parseBytes;var u=r(754);var c=r(3866);function EDDSA(e){o(e==="ed25519","only tested with ed25519 so far");if(!(this instanceof EDDSA))return new EDDSA(e);e=i[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}e.exports=EDDSA;EDDSA.prototype.sign=function sign(e,t){e=s(e);var r=this.keyFromSecret(t);var n=this.hashInt(r.messagePrefix(),e);var i=this.g.mul(n);var a=this.encodePoint(i);var o=this.hashInt(a,r.pubBytes(),e).mul(r.priv());var u=n.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:a})};EDDSA.prototype.verify=function verify(e,t,r){e=s(e);t=this.makeSignature(t);var n=this.keyFromPublic(r);var i=this.hashInt(t.Rencoded(),n.pubBytes(),e);var a=this.g.mul(t.S());var o=t.R().add(n.pub().mul(i));return o.eq(a)};EDDSA.prototype.hashInt=function hashInt(){var e=this.hash();for(var t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)};EDDSA.prototype.keyFromPublic=function keyFromPublic(e){return u.fromPublic(this,e)};EDDSA.prototype.keyFromSecret=function keyFromSecret(e){return u.fromSecret(this,e)};EDDSA.prototype.makeSignature=function makeSignature(e){if(e instanceof c)return e;return new c(this,e)};EDDSA.prototype.encodePoint=function encodePoint(e){var t=e.getY().toArray("le",this.encodingLength);t[this.encodingLength-1]|=e.getX().isOdd()?128:0;return t};EDDSA.prototype.decodePoint=function decodePoint(e){e=a.parseBytes(e);var t=e.length-1;var r=e.slice(0,t).concat(e[t]&~128);var n=(e[t]&128)!==0;var i=a.intFromLE(r);return this.curve.pointFromY(i,n)};EDDSA.prototype.encodeInt=function encodeInt(e){return e.toArray("le",this.encodingLength)};EDDSA.prototype.decodeInt=function decodeInt(e){return a.intFromLE(e)};EDDSA.prototype.isPoint=function isPoint(e){return e instanceof this.pointClass}},754:(e,t,r)=>{"use strict";var n=r(2727);var i=n.assert;var a=n.parseBytes;var o=n.cachedProperty;function KeyPair(e,t){this.eddsa=e;this._secret=a(t.secret);if(e.isPoint(t.pub))this._pub=t.pub;else this._pubBytes=a(t.pub)}KeyPair.fromPublic=function fromPublic(e,t){if(t instanceof KeyPair)return t;return new KeyPair(e,{pub:t})};KeyPair.fromSecret=function fromSecret(e,t){if(t instanceof KeyPair)return t;return new KeyPair(e,{secret:t})};KeyPair.prototype.secret=function secret(){return this._secret};o(KeyPair,"pubBytes",(function pubBytes(){return this.eddsa.encodePoint(this.pub())}));o(KeyPair,"pub",(function pub(){if(this._pubBytes)return this.eddsa.decodePoint(this._pubBytes);return this.eddsa.g.mul(this.priv())}));o(KeyPair,"privBytes",(function privBytes(){var e=this.eddsa;var t=this.hash();var r=e.encodingLength-1;var n=t.slice(0,e.encodingLength);n[0]&=248;n[r]&=127;n[r]|=64;return n}));o(KeyPair,"priv",(function priv(){return this.eddsa.decodeInt(this.privBytes())}));o(KeyPair,"hash",(function hash(){return this.eddsa.hash().update(this.secret()).digest()}));o(KeyPair,"messagePrefix",(function messagePrefix(){return this.hash().slice(this.eddsa.encodingLength)}));KeyPair.prototype.sign=function sign(e){i(this._secret,"KeyPair can only verify");return this.eddsa.sign(e,this)};KeyPair.prototype.verify=function verify(e,t){return this.eddsa.verify(e,t,this)};KeyPair.prototype.getSecret=function getSecret(e){i(this._secret,"KeyPair is public only");return n.encode(this.secret(),e)};KeyPair.prototype.getPublic=function getPublic(e){return n.encode(this.pubBytes(),e)};e.exports=KeyPair},3866:(e,t,r)=>{"use strict";var n=r(3693);var i=r(2727);var a=i.assert;var o=i.cachedProperty;var s=i.parseBytes;function Signature(e,t){this.eddsa=e;if(typeof t!=="object")t=s(t);if(Array.isArray(t)){t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}}a(t.R&&t.S,"Signature without R or S");if(e.isPoint(t.R))this._R=t.R;if(t.S instanceof n)this._S=t.S;this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded;this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}o(Signature,"S",(function S(){return this.eddsa.decodeInt(this.Sencoded())}));o(Signature,"R",(function R(){return this.eddsa.decodePoint(this.Rencoded())}));o(Signature,"Rencoded",(function Rencoded(){return this.eddsa.encodePoint(this.R())}));o(Signature,"Sencoded",(function Sencoded(){return this.eddsa.encodeInt(this.S())}));Signature.prototype.toBytes=function toBytes(){return this.Rencoded().concat(this.Sencoded())};Signature.prototype.toHex=function toHex(){return i.encode(this.toBytes(),"hex").toUpperCase()};e.exports=Signature},1284:e=>{e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},2727:(e,t,r)=>{"use strict";var n=t;var i=r(3693);var a=r(4795);var o=r(3756);n.assert=a;n.toArray=o.toArray;n.zero2=o.zero2;n.toHex=o.toHex;n.encode=o.encode;function getNAF(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);var i=1<<t+1;var a=e.clone();for(var o=0;o<n.length;o++){var s;var u=a.andln(i-1);if(a.isOdd()){if(u>(i>>1)-1)s=(i>>1)-u;else s=u;a.isubn(s)}else{s=0}n[o]=s;a.iushrn(1)}return n}n.getNAF=getNAF;function getJSF(e,t){var r=[[],[]];e=e.clone();t=t.clone();var n=0;var i=0;var a;while(e.cmpn(-n)>0||t.cmpn(-i)>0){var o=e.andln(3)+n&3;var s=t.andln(3)+i&3;if(o===3)o=-1;if(s===3)s=-1;var u;if((o&1)===0){u=0}else{a=e.andln(7)+n&7;if((a===3||a===5)&&s===2)u=-o;else u=o}r[0].push(u);var c;if((s&1)===0){c=0}else{a=t.andln(7)+i&7;if((a===3||a===5)&&o===2)c=-s;else c=s}r[1].push(c);if(2*n===u+1)n=1-n;if(2*i===c+1)i=1-i;e.iushrn(1);t.iushrn(1)}return r}n.getJSF=getJSF;function cachedProperty(e,t,r){var n="_"+t;e.prototype[t]=function cachedProperty(){return this[n]!==undefined?this[n]:this[n]=r.call(this)}}n.cachedProperty=cachedProperty;function parseBytes(e){return typeof e==="string"?n.toArray(e,"hex"):e}n.parseBytes=parseBytes;function intFromLE(e){return new i(e,"hex","le")}n.intFromLE=intFromLE},6125:e=>{"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}},609:(e,t,r)=>{var n=t;n.utils=r(2592);n.common=r(6304);n.sha=r(3460);n.ripemd=r(8385);n.hmac=r(4459);n.sha1=n.sha.sha1;n.sha256=n.sha.sha256;n.sha224=n.sha.sha224;n.sha384=n.sha.sha384;n.sha512=n.sha.sha512;n.ripemd160=n.ripemd.ripemd160},6304:(e,t,r)=>{"use strict";var n=r(2592);var i=r(4795);function BlockHash(){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}t.BlockHash=BlockHash;BlockHash.prototype.update=function update(e,t){e=n.toArray(e,t);if(!this.pending)this.pending=e;else this.pending=this.pending.concat(e);this.pendingTotal+=e.length;if(this.pending.length>=this._delta8){e=this.pending;var r=e.length%this._delta8;this.pending=e.slice(e.length-r,e.length);if(this.pending.length===0)this.pending=null;e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this};BlockHash.prototype.digest=function digest(e){this.update(this._pad());i(this.pending===null);return this._digest(e)};BlockHash.prototype._pad=function pad(){var e=this.pendingTotal;var t=this._delta8;var r=t-(e+this.padLength)%t;var n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;e<<=3;if(this.endian==="big"){for(var a=8;a<this.padLength;a++)n[i++]=0;n[i++]=0;n[i++]=0;n[i++]=0;n[i++]=0;n[i++]=e>>>24&255;n[i++]=e>>>16&255;n[i++]=e>>>8&255;n[i++]=e&255}else{n[i++]=e&255;n[i++]=e>>>8&255;n[i++]=e>>>16&255;n[i++]=e>>>24&255;n[i++]=0;n[i++]=0;n[i++]=0;n[i++]=0;for(a=8;a<this.padLength;a++)n[i++]=0}return n}},4459:(e,t,r)=>{"use strict";var n=r(2592);var i=r(4795);function Hmac(e,t,r){if(!(this instanceof Hmac))return new Hmac(e,t,r);this.Hash=e;this.blockSize=e.blockSize/8;this.outSize=e.outSize/8;this.inner=null;this.outer=null;this._init(n.toArray(t,r))}e.exports=Hmac;Hmac.prototype._init=function init(e){if(e.length>this.blockSize)e=(new this.Hash).update(e).digest();i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;this.inner=(new this.Hash).update(e);for(t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)};Hmac.prototype.update=function update(e,t){this.inner.update(e,t);return this};Hmac.prototype.digest=function digest(e){this.outer.update(this.inner.digest());return this.outer.digest(e)}},8385:(e,t,r)=>{"use strict";var n=r(2592);var i=r(6304);var a=n.rotl32;var o=n.sum32;var s=n.sum32_3;var u=n.sum32_4;var c=i.BlockHash;function RIPEMD160(){if(!(this instanceof RIPEMD160))return new RIPEMD160;c.call(this);this.h=[1732584193,4023233417,2562383102,271733878,3285377520];this.endian="little"}n.inherits(RIPEMD160,c);t.ripemd160=RIPEMD160;RIPEMD160.blockSize=512;RIPEMD160.outSize=160;RIPEMD160.hmacStrength=192;RIPEMD160.padLength=64;RIPEMD160.prototype._update=function update(e,t){var r=this.h[0];var n=this.h[1];var i=this.h[2];var c=this.h[3];var m=this.h[4];var g=r;var v=n;var b=i;var y=c;var w=m;for(var _=0;_<80;_++){var k=o(a(u(r,f(_,n,i,c),e[l[_]+t],K(_)),h[_]),m);r=m;m=c;c=a(i,10);i=n;n=k;k=o(a(u(g,f(79-_,v,b,y),e[d[_]+t],Kh(_)),p[_]),w);g=w;w=y;y=a(b,10);b=v;v=k}k=s(this.h[1],i,y);this.h[1]=s(this.h[2],c,w);this.h[2]=s(this.h[3],m,g);this.h[3]=s(this.h[4],r,v);this.h[4]=s(this.h[0],n,b);this.h[0]=k};RIPEMD160.prototype._digest=function digest(e){if(e==="hex")return n.toHex32(this.h,"little");else return n.split32(this.h,"little")};function f(e,t,r,n){if(e<=15)return t^r^n;else if(e<=31)return t&r|~t&n;else if(e<=47)return(t|~r)^n;else if(e<=63)return t&n|r&~n;else return t^(r|~n)}function K(e){if(e<=15)return 0;else if(e<=31)return 1518500249;else if(e<=47)return 1859775393;else if(e<=63)return 2400959708;else return 2840853838}function Kh(e){if(e<=15)return 1352829926;else if(e<=31)return 1548603684;else if(e<=47)return 1836072691;else if(e<=63)return 2053994217;else return 0}var l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13];var d=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11];var h=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6];var p=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},3460:(e,t,r)=>{"use strict";t.sha1=r(5616);t.sha224=r(982);t.sha256=r(2054);t.sha384=r(5810);t.sha512=r(4048)},5616:(e,t,r)=>{"use strict";var n=r(2592);var i=r(6304);var a=r(2745);var o=n.rotl32;var s=n.sum32;var u=n.sum32_5;var c=a.ft_1;var l=i.BlockHash;var d=[1518500249,1859775393,2400959708,3395469782];function SHA1(){if(!(this instanceof SHA1))return new SHA1;l.call(this);this.h=[1732584193,4023233417,2562383102,271733878,3285377520];this.W=new Array(80)}n.inherits(SHA1,l);e.exports=SHA1;SHA1.blockSize=512;SHA1.outSize=160;SHA1.hmacStrength=80;SHA1.padLength=64;SHA1.prototype._update=function _update(e,t){var r=this.W;for(var n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=o(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0];var a=this.h[1];var l=this.h[2];var h=this.h[3];var p=this.h[4];for(n=0;n<r.length;n++){var m=~~(n/20);var g=u(o(i,5),c(m,a,l,h),p,r[n],d[m]);p=h;h=l;l=o(a,30);a=i;i=g}this.h[0]=s(this.h[0],i);this.h[1]=s(this.h[1],a);this.h[2]=s(this.h[2],l);this.h[3]=s(this.h[3],h);this.h[4]=s(this.h[4],p)};SHA1.prototype._digest=function digest(e){if(e==="hex")return n.toHex32(this.h,"big");else return n.split32(this.h,"big")}},982:(e,t,r)=>{"use strict";var n=r(2592);var i=r(2054);function SHA224(){if(!(this instanceof SHA224))return new SHA224;i.call(this);this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(SHA224,i);e.exports=SHA224;SHA224.blockSize=512;SHA224.outSize=224;SHA224.hmacStrength=192;SHA224.padLength=64;SHA224.prototype._digest=function digest(e){if(e==="hex")return n.toHex32(this.h.slice(0,7),"big");else return n.split32(this.h.slice(0,7),"big")}},2054:(e,t,r)=>{"use strict";var n=r(2592);var i=r(6304);var a=r(2745);var o=r(4795);var s=n.sum32;var u=n.sum32_4;var c=n.sum32_5;var l=a.ch32;var d=a.maj32;var h=a.s0_256;var p=a.s1_256;var m=a.g0_256;var g=a.g1_256;var v=i.BlockHash;var b=[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];function SHA256(){if(!(this instanceof SHA256))return new SHA256;v.call(this);this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];this.k=b;this.W=new Array(64)}n.inherits(SHA256,v);e.exports=SHA256;SHA256.blockSize=512;SHA256.outSize=256;SHA256.hmacStrength=192;SHA256.padLength=64;SHA256.prototype._update=function _update(e,t){var r=this.W;for(var n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=u(g(r[n-2]),r[n-7],m(r[n-15]),r[n-16]);var i=this.h[0];var a=this.h[1];var v=this.h[2];var b=this.h[3];var y=this.h[4];var w=this.h[5];var _=this.h[6];var k=this.h[7];o(this.k.length===r.length);for(n=0;n<r.length;n++){var A=c(k,p(y),l(y,w,_),this.k[n],r[n]);var E=s(h(i),d(i,a,v));k=_;_=w;w=y;y=s(b,A);b=v;v=a;a=i;i=s(A,E)}this.h[0]=s(this.h[0],i);this.h[1]=s(this.h[1],a);this.h[2]=s(this.h[2],v);this.h[3]=s(this.h[3],b);this.h[4]=s(this.h[4],y);this.h[5]=s(this.h[5],w);this.h[6]=s(this.h[6],_);this.h[7]=s(this.h[7],k)};SHA256.prototype._digest=function digest(e){if(e==="hex")return n.toHex32(this.h,"big");else return n.split32(this.h,"big")}},5810:(e,t,r)=>{"use strict";var n=r(2592);var i=r(4048);function SHA384(){if(!(this instanceof SHA384))return new SHA384;i.call(this);this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(SHA384,i);e.exports=SHA384;SHA384.blockSize=1024;SHA384.outSize=384;SHA384.hmacStrength=192;SHA384.padLength=128;SHA384.prototype._digest=function digest(e){if(e==="hex")return n.toHex32(this.h.slice(0,12),"big");else return n.split32(this.h.slice(0,12),"big")}},4048:(e,t,r)=>{"use strict";var n=r(2592);var i=r(6304);var a=r(4795);var o=n.rotr64_hi;var s=n.rotr64_lo;var u=n.shr64_hi;var c=n.shr64_lo;var l=n.sum64;var d=n.sum64_hi;var h=n.sum64_lo;var p=n.sum64_4_hi;var m=n.sum64_4_lo;var g=n.sum64_5_hi;var v=n.sum64_5_lo;var b=i.BlockHash;var y=[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];function SHA512(){if(!(this instanceof SHA512))return new SHA512;b.call(this);this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209];this.k=y;this.W=new Array(160)}n.inherits(SHA512,b);e.exports=SHA512;SHA512.blockSize=1024;SHA512.outSize=512;SHA512.hmacStrength=192;SHA512.padLength=128;SHA512.prototype._prepareBlock=function _prepareBlock(e,t){var r=this.W;for(var n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=g1_512_hi(r[n-4],r[n-3]);var a=g1_512_lo(r[n-4],r[n-3]);var o=r[n-14];var s=r[n-13];var u=g0_512_hi(r[n-30],r[n-29]);var c=g0_512_lo(r[n-30],r[n-29]);var l=r[n-32];var d=r[n-31];r[n]=p(i,a,o,s,u,c,l,d);r[n+1]=m(i,a,o,s,u,c,l,d)}};SHA512.prototype._update=function _update(e,t){this._prepareBlock(e,t);var r=this.W;var n=this.h[0];var i=this.h[1];var o=this.h[2];var s=this.h[3];var u=this.h[4];var c=this.h[5];var p=this.h[6];var m=this.h[7];var b=this.h[8];var y=this.h[9];var w=this.h[10];var _=this.h[11];var k=this.h[12];var A=this.h[13];var E=this.h[14];var I=this.h[15];a(this.k.length===r.length);for(var T=0;T<r.length;T+=2){var B=E;var M=I;var N=s1_512_hi(b,y);var x=s1_512_lo(b,y);var O=ch64_hi(b,y,w,_,k,A);var P=ch64_lo(b,y,w,_,k,A);var C=this.k[T];var z=this.k[T+1];var F=r[T];var j=r[T+1];var L=g(B,M,N,x,O,P,C,z,F,j);var D=v(B,M,N,x,O,P,C,z,F,j);B=s0_512_hi(n,i);M=s0_512_lo(n,i);N=maj64_hi(n,i,o,s,u,c);x=maj64_lo(n,i,o,s,u,c);var U=d(B,M,N,x);var q=h(B,M,N,x);E=k;I=A;k=w;A=_;w=b;_=y;b=d(p,m,L,D);y=h(m,m,L,D);p=u;m=c;u=o;c=s;o=n;s=i;n=d(L,D,U,q);i=h(L,D,U,q)}l(this.h,0,n,i);l(this.h,2,o,s);l(this.h,4,u,c);l(this.h,6,p,m);l(this.h,8,b,y);l(this.h,10,w,_);l(this.h,12,k,A);l(this.h,14,E,I)};SHA512.prototype._digest=function digest(e){if(e==="hex")return n.toHex32(this.h,"big");else return n.split32(this.h,"big")};function ch64_hi(e,t,r,n,i){var a=e&r^~e&i;if(a<0)a+=4294967296;return a}function ch64_lo(e,t,r,n,i,a){var o=t&n^~t&a;if(o<0)o+=4294967296;return o}function maj64_hi(e,t,r,n,i){var a=e&r^e&i^r&i;if(a<0)a+=4294967296;return a}function maj64_lo(e,t,r,n,i,a){var o=t&n^t&a^n&a;if(o<0)o+=4294967296;return o}function s0_512_hi(e,t){var r=o(e,t,28);var n=o(t,e,2);var i=o(t,e,7);var a=r^n^i;if(a<0)a+=4294967296;return a}function s0_512_lo(e,t){var r=s(e,t,28);var n=s(t,e,2);var i=s(t,e,7);var a=r^n^i;if(a<0)a+=4294967296;return a}function s1_512_hi(e,t){var r=o(e,t,14);var n=o(e,t,18);var i=o(t,e,9);var a=r^n^i;if(a<0)a+=4294967296;return a}function s1_512_lo(e,t){var r=s(e,t,14);var n=s(e,t,18);var i=s(t,e,9);var a=r^n^i;if(a<0)a+=4294967296;return a}function g0_512_hi(e,t){var r=o(e,t,1);var n=o(e,t,8);var i=u(e,t,7);var a=r^n^i;if(a<0)a+=4294967296;return a}function g0_512_lo(e,t){var r=s(e,t,1);var n=s(e,t,8);var i=c(e,t,7);var a=r^n^i;if(a<0)a+=4294967296;return a}function g1_512_hi(e,t){var r=o(e,t,19);var n=o(t,e,29);var i=u(e,t,6);var a=r^n^i;if(a<0)a+=4294967296;return a}function g1_512_lo(e,t){var r=s(e,t,19);var n=s(t,e,29);var i=c(e,t,6);var a=r^n^i;if(a<0)a+=4294967296;return a}},2745:(e,t,r)=>{"use strict";var n=r(2592);var i=n.rotr32;function ft_1(e,t,r,n){if(e===0)return ch32(t,r,n);if(e===1||e===3)return p32(t,r,n);if(e===2)return maj32(t,r,n)}t.ft_1=ft_1;function ch32(e,t,r){return e&t^~e&r}t.ch32=ch32;function maj32(e,t,r){return e&t^e&r^t&r}t.maj32=maj32;function p32(e,t,r){return e^t^r}t.p32=p32;function s0_256(e){return i(e,2)^i(e,13)^i(e,22)}t.s0_256=s0_256;function s1_256(e){return i(e,6)^i(e,11)^i(e,25)}t.s1_256=s1_256;function g0_256(e){return i(e,7)^i(e,18)^e>>>3}t.g0_256=g0_256;function g1_256(e){return i(e,17)^i(e,19)^e>>>10}t.g1_256=g1_256},2592:(e,t,r)=>{"use strict";var n=r(4795);var i=r(7263);t.inherits=i;function isSurrogatePair(e,t){if((e.charCodeAt(t)&64512)!==55296){return false}if(t<0||t+1>=e.length){return false}return(e.charCodeAt(t+1)&64512)===56320}function toArray(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e==="string"){if(!t){var n=0;for(var i=0;i<e.length;i++){var a=e.charCodeAt(i);if(a<128){r[n++]=a}else if(a<2048){r[n++]=a>>6|192;r[n++]=a&63|128}else if(isSurrogatePair(e,i)){a=65536+((a&1023)<<10)+(e.charCodeAt(++i)&1023);r[n++]=a>>18|240;r[n++]=a>>12&63|128;r[n++]=a>>6&63|128;r[n++]=a&63|128}else{r[n++]=a>>12|224;r[n++]=a>>6&63|128;r[n++]=a&63|128}}}else if(t==="hex"){e=e.replace(/[^a-z0-9]+/gi,"");if(e.length%2!==0)e="0"+e;for(i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}}else{for(i=0;i<e.length;i++)r[i]=e[i]|0}return r}t.toArray=toArray;function toHex(e){var t="";for(var r=0;r<e.length;r++)t+=zero2(e[r].toString(16));return t}t.toHex=toHex;function htonl(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}t.htonl=htonl;function toHex32(e,t){var r="";for(var n=0;n<e.length;n++){var i=e[n];if(t==="little")i=htonl(i);r+=zero8(i.toString(16))}return r}t.toHex32=toHex32;function zero2(e){if(e.length===1)return"0"+e;else return e}t.zero2=zero2;function zero8(e){if(e.length===7)return"0"+e;else if(e.length===6)return"00"+e;else if(e.length===5)return"000"+e;else if(e.length===4)return"0000"+e;else if(e.length===3)return"00000"+e;else if(e.length===2)return"000000"+e;else if(e.length===1)return"0000000"+e;else return e}t.zero8=zero8;function join32(e,t,r,i){var a=r-t;n(a%4===0);var o=new Array(a/4);for(var s=0,u=t;s<o.length;s++,u+=4){var c;if(i==="big")c=e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3];else c=e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u];o[s]=c>>>0}return o}t.join32=join32;function split32(e,t){var r=new Array(e.length*4);for(var n=0,i=0;n<e.length;n++,i+=4){var a=e[n];if(t==="big"){r[i]=a>>>24;r[i+1]=a>>>16&255;r[i+2]=a>>>8&255;r[i+3]=a&255}else{r[i+3]=a>>>24;r[i+2]=a>>>16&255;r[i+1]=a>>>8&255;r[i]=a&255}}return r}t.split32=split32;function rotr32(e,t){return e>>>t|e<<32-t}t.rotr32=rotr32;function rotl32(e,t){return e<<t|e>>>32-t}t.rotl32=rotl32;function sum32(e,t){return e+t>>>0}t.sum32=sum32;function sum32_3(e,t,r){return e+t+r>>>0}t.sum32_3=sum32_3;function sum32_4(e,t,r,n){return e+t+r+n>>>0}t.sum32_4=sum32_4;function sum32_5(e,t,r,n,i){return e+t+r+n+i>>>0}t.sum32_5=sum32_5;function sum64(e,t,r,n){var i=e[t];var a=e[t+1];var o=n+a>>>0;var s=(o<n?1:0)+r+i;e[t]=s>>>0;e[t+1]=o}t.sum64=sum64;function sum64_hi(e,t,r,n){var i=t+n>>>0;var a=(i<t?1:0)+e+r;return a>>>0}t.sum64_hi=sum64_hi;function sum64_lo(e,t,r,n){var i=t+n;return i>>>0}t.sum64_lo=sum64_lo;function sum64_4_hi(e,t,r,n,i,a,o,s){var u=0;var c=t;c=c+n>>>0;u+=c<t?1:0;c=c+a>>>0;u+=c<a?1:0;c=c+s>>>0;u+=c<s?1:0;var l=e+r+i+o+u;return l>>>0}t.sum64_4_hi=sum64_4_hi;function sum64_4_lo(e,t,r,n,i,a,o,s){var u=t+n+a+s;return u>>>0}t.sum64_4_lo=sum64_4_lo;function sum64_5_hi(e,t,r,n,i,a,o,s,u,c){var l=0;var d=t;d=d+n>>>0;l+=d<t?1:0;d=d+a>>>0;l+=d<a?1:0;d=d+s>>>0;l+=d<s?1:0;d=d+c>>>0;l+=d<c?1:0;var h=e+r+i+o+u+l;return h>>>0}t.sum64_5_hi=sum64_5_hi;function sum64_5_lo(e,t,r,n,i,a,o,s,u,c){var l=t+n+a+s+c;return l>>>0}t.sum64_5_lo=sum64_5_lo;function rotr64_hi(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}t.rotr64_hi=rotr64_hi;function rotr64_lo(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}t.rotr64_lo=rotr64_lo;function shr64_hi(e,t,r){return e>>>r}t.shr64_hi=shr64_hi;function shr64_lo(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}t.shr64_lo=shr64_lo},9300:(e,t,r)=>{"use strict";var n=r(609);var i=r(3756);var a=r(4795);function HmacDRBG(e){if(!(this instanceof HmacDRBG))return new HmacDRBG(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=i.toArray(e.entropy,e.entropyEnc||"hex");var r=i.toArray(e.nonce,e.nonceEnc||"hex");var n=i.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._init(t,r,n)}e.exports=HmacDRBG;HmacDRBG.prototype._init=function init(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8);this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++){this.K[i]=0;this.V[i]=1}this._update(n);this._reseed=1;this.reseedInterval=281474976710656};HmacDRBG.prototype._hmac=function hmac(){return new n.hmac(this.hash,this.K)};HmacDRBG.prototype._update=function update(e){var t=this._hmac().update(this.V).update([0]);if(e)t=t.update(e);this.K=t.digest();this.V=this._hmac().update(this.V).digest();if(!e)return;this.K=this._hmac().update(this.V).update([1]).update(e).digest();this.V=this._hmac().update(this.V).digest()};HmacDRBG.prototype.reseed=function reseed(e,t,r,n){if(typeof t!=="string"){n=r;r=t;t=null}e=i.toArray(e,t);r=i.toArray(r,n);a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._update(e.concat(r||[]));this._reseed=1};HmacDRBG.prototype.generate=function generate(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");if(typeof t!=="string"){n=r;r=t;t=null}if(r){r=i.toArray(r,n||"hex");this._update(r)}var a=[];while(a.length<e){this.V=this._hmac().update(this.V).digest();a=a.concat(this.V)}var o=a.slice(0,e);this._update(r);this._reseed++;return i.encode(o,t)}},9900:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const a=i(r(1808));const o=i(r(4404));const s=i(r(7310));const u=i(r(9491));const c=i(r(4085));const l=r(1758);const d=i(r(5499));const h=c.default("https-proxy-agent:agent");class HttpsProxyAgent extends l.Agent{constructor(e){let t;if(typeof e==="string"){t=s.default.parse(e)}else{t=e}if(!t){throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!")}h("creating new HttpsProxyAgent instance: %o",t);super(t);const r=Object.assign({},t);this.secureProxy=t.secureProxy||isHTTPS(r.protocol);r.host=r.hostname||r.host;if(typeof r.port==="string"){r.port=parseInt(r.port,10)}if(!r.port&&r.host){r.port=this.secureProxy?443:80}if(this.secureProxy&&!("ALPNProtocols"in r)){r.ALPNProtocols=["http 1.1"]}if(r.host&&r.path){delete r.path;delete r.pathname}this.proxy=r}callback(e,t){return n(this,void 0,void 0,(function*(){const{proxy:r,secureProxy:n}=this;let i;if(n){h("Creating `tls.Socket`: %o",r);i=o.default.connect(r)}else{h("Creating `net.Socket`: %o",r);i=a.default.connect(r)}const s=Object.assign({},r.headers);const c=`${t.host}:${t.port}`;let l=`CONNECT ${c} HTTP/1.1\r\n`;if(r.auth){s["Proxy-Authorization"]=`Basic ${Buffer.from(r.auth).toString("base64")}`}let{host:p,port:m,secureEndpoint:g}=t;if(!isDefaultPort(m,g)){p+=`:${m}`}s.Host=p;s.Connection="close";for(const e of Object.keys(s)){l+=`${e}: ${s[e]}\r\n`}const v=d.default(i);i.write(`${l}\r\n`);const{statusCode:b,buffered:y}=yield v;if(b===200){e.once("socket",resume);if(t.secureEndpoint){h("Upgrading socket connection to TLS");const e=t.servername||t.host;return o.default.connect(Object.assign(Object.assign({},omit(t,"host","hostname","path","port")),{socket:i,servername:e}))}return i}i.destroy();const w=new a.default.Socket({writable:false});w.readable=true;e.once("socket",(e=>{h("replaying proxy buffer for failed request");u.default(e.listenerCount("data")>0);e.push(y);e.push(null)}));return w}))}}t["default"]=HttpsProxyAgent;function resume(e){e.resume()}function isDefaultPort(e,t){return Boolean(!t&&e===80||t&&e===443)}function isHTTPS(e){return typeof e==="string"?/^https:?$/i.test(e):false}function omit(e,...t){const r={};let n;for(n in e){if(!t.includes(n)){r[n]=e[n]}}return r}},774:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const i=n(r(9900));function createHttpsProxyAgent(e){return new i.default(e)}(function(e){e.HttpsProxyAgent=i.default;e.prototype=i.default.prototype})(createHttpsProxyAgent||(createHttpsProxyAgent={}));e.exports=createHttpsProxyAgent},5499:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(4085));const a=i.default("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,r)=>{let n=0;const i=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose);e.removeListener("readable",read)}function onclose(e){a("onclose had error %o",e)}function onend(){a("onend")}function onerror(e){cleanup();a("onerror %o",e);r(e)}function ondata(e){i.push(e);n+=e.length;const r=Buffer.concat(i,n);const o=r.indexOf("\r\n\r\n");if(o===-1){a("have not received end of HTTP headers yet...");read();return}const s=r.toString("ascii",0,r.indexOf("\r\n"));const u=+s.split(" ")[1];a("got proxy server response: %o",s);t({statusCode:u,buffered:r})}e.on("error",onerror);e.on("close",onclose);e.on("end",onend);read()}))}t["default"]=parseProxyResponse},2458:(e,t)=>{
|
8
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
9
|
+
t.read=function(e,t,r,n,i){var a,o;var s=i*8-n-1;var u=(1<<s)-1;var c=u>>1;var l=-7;var d=r?i-1:0;var h=r?-1:1;var p=e[t+d];d+=h;a=p&(1<<-l)-1;p>>=-l;l+=s;for(;l>0;a=a*256+e[t+d],d+=h,l-=8){}o=a&(1<<-l)-1;a>>=-l;l+=n;for(;l>0;o=o*256+e[t+d],d+=h,l-=8){}if(a===0){a=1-c}else if(a===u){return o?NaN:(p?-1:1)*Infinity}else{o=o+Math.pow(2,n);a=a-c}return(p?-1:1)*o*Math.pow(2,a-n)};t.write=function(e,t,r,n,i,a){var o,s,u;var c=a*8-i-1;var l=(1<<c)-1;var d=l>>1;var h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0;var p=n?0:a-1;var m=n?1:-1;var g=t<0||t===0&&1/t<0?1:0;t=Math.abs(t);if(isNaN(t)||t===Infinity){s=isNaN(t)?1:0;o=l}else{o=Math.floor(Math.log(t)/Math.LN2);if(t*(u=Math.pow(2,-o))<1){o--;u*=2}if(o+d>=1){t+=h/u}else{t+=h*Math.pow(2,1-d)}if(t*u>=2){o++;u/=2}if(o+d>=l){s=0;o=l}else if(o+d>=1){s=(t*u-1)*Math.pow(2,i);o=o+d}else{s=t*Math.pow(2,d-1)*Math.pow(2,i);o=0}}for(;i>=8;e[r+p]=s&255,p+=m,s/=256,i-=8){}o=o<<i|s;c+=i;for(;c>0;e[r+p]=o&255,p+=m,o/=256,c-=8){}e[r+p-m]|=g*128}},7263:(e,t,r)=>{try{var n=r(3837);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(t){e.exports=r(9733)}},9733:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},2219:function(e,t,r){e=r.nmd(e);
|
10
|
+
/**
|
11
|
+
* @license
|
12
|
+
* Lodash <https://lodash.com/>
|
13
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
14
|
+
* Released under MIT license <https://lodash.com/license>
|
15
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
16
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
17
|
+
*/(function(){var r;var n="4.17.21";var i=200;var a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`";var u="__lodash_hash_undefined__";var c=500;var l="__lodash_placeholder__";var d=1,h=2,p=4;var m=1,g=2;var v=1,b=2,y=4,w=8,_=16,k=32,A=64,E=128,I=256,T=512;var B=30,M="...";var N=800,x=16;var O=1,P=2,C=3;var z=1/0,F=9007199254740991,j=17976931348623157e292,L=0/0;var D=4294967295,U=D-1,q=D>>>1;var V=[["ary",E],["bind",v],["bindKey",b],["curry",w],["curryRight",_],["flip",T],["partial",k],["partialRight",A],["rearg",I]];var H="[object Arguments]",W="[object Array]",X="[object AsyncFunction]",G="[object Boolean]",$="[object Date]",J="[object DOMException]",Z="[object Error]",Y="[object Function]",Q="[object GeneratorFunction]",ee="[object Map]",te="[object Number]",re="[object Null]",ne="[object Object]",ie="[object Promise]",ae="[object Proxy]",oe="[object RegExp]",se="[object Set]",ue="[object String]",ce="[object Symbol]",le="[object Undefined]",fe="[object WeakMap]",de="[object WeakSet]";var he="[object ArrayBuffer]",pe="[object DataView]",me="[object Float32Array]",ge="[object Float64Array]",ve="[object Int8Array]",be="[object Int16Array]",ye="[object Int32Array]",we="[object Uint8Array]",_e="[object Uint8ClampedArray]",Se="[object Uint16Array]",ke="[object Uint32Array]";var Ae=/\b__p \+= '';/g,Ee=/\b(__p \+=) '' \+/g,Ie=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var Te=/&(?:amp|lt|gt|quot|#39);/g,Be=/[&<>"']/g,Me=RegExp(Te.source),Ne=RegExp(Be.source);var xe=/<%-([\s\S]+?)%>/g,Oe=/<%([\s\S]+?)%>/g,Pe=/<%=([\s\S]+?)%>/g;var Ce=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ze=/^\w*$/,Fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var je=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(je.source);var Re=/^\s+/;var De=/\s/;var Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qe=/\{\n\/\* \[wrapped with (.+)\] \*/,Ve=/,? & /;var He=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var We=/[()=,{}\[\]\/\s]/;var Ke=/\\(\\)?/g;var Xe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var Ge=/\w*$/;var $e=/^[-+]0x[0-9a-f]+$/i;var Je=/^0b[01]+$/i;var Ze=/^\[object .+?Constructor\]$/;var Ye=/^0o[0-7]+$/i;var Qe=/^(?:0|[1-9]\d*)$/;var et=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;var tt=/($^)/;var rt=/['\n\r\u2028\u2029\\]/g;var nt="\\ud800-\\udfff",it="\\u0300-\\u036f",at="\\ufe20-\\ufe2f",ot="\\u20d0-\\u20ff",st=it+at+ot,ut="\\u2700-\\u27bf",ct="a-z\\xdf-\\xf6\\xf8-\\xff",ft="\\xac\\xb1\\xd7\\xf7",dt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ht="\\u2000-\\u206f",pt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",mt="A-Z\\xc0-\\xd6\\xd8-\\xde",vt="\\ufe0e\\ufe0f",bt=ft+dt+ht+pt;var yt="['’]",wt="["+nt+"]",_t="["+bt+"]",St="["+st+"]",kt="\\d+",At="["+ut+"]",Et="["+ct+"]",It="[^"+nt+bt+kt+ut+ct+mt+"]",Tt="\\ud83c[\\udffb-\\udfff]",Bt="(?:"+St+"|"+Tt+")",Mt="[^"+nt+"]",Nt="(?:\\ud83c[\\udde6-\\uddff]){2}",xt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ot="["+mt+"]",Pt="\\u200d";var Ct="(?:"+Et+"|"+It+")",zt="(?:"+Ot+"|"+It+")",Ft="(?:"+yt+"(?:d|ll|m|re|s|t|ve))?",jt="(?:"+yt+"(?:D|LL|M|RE|S|T|VE))?",Lt=Bt+"?",Rt="["+vt+"]?",Dt="(?:"+Pt+"(?:"+[Mt,Nt,xt].join("|")+")"+Rt+Lt+")*",Ut="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vt=Rt+Lt+Dt,Ht="(?:"+[At,Nt,xt].join("|")+")"+Vt,Wt="(?:"+[Mt+St+"?",St,Nt,xt,wt].join("|")+")";var Kt=RegExp(yt,"g");var Xt=RegExp(St,"g");var Gt=RegExp(Tt+"(?="+Tt+")|"+Wt+Vt,"g");var $t=RegExp([Ot+"?"+Et+"+"+Ft+"(?="+[_t,Ot,"$"].join("|")+")",zt+"+"+jt+"(?="+[_t,Ot+Ct,"$"].join("|")+")",Ot+"?"+Ct+"+"+Ft,Ot+"+"+jt,qt,Ut,kt,Ht].join("|"),"g");var Jt=RegExp("["+Pt+nt+st+vt+"]");var Zt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Yt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"];var Qt=-1;var er={};er[me]=er[ge]=er[ve]=er[be]=er[ye]=er[we]=er[_e]=er[Se]=er[ke]=true;er[H]=er[W]=er[he]=er[G]=er[pe]=er[$]=er[Z]=er[Y]=er[ee]=er[te]=er[ne]=er[oe]=er[se]=er[ue]=er[fe]=false;var tr={};tr[H]=tr[W]=tr[he]=tr[pe]=tr[G]=tr[$]=tr[me]=tr[ge]=tr[ve]=tr[be]=tr[ye]=tr[ee]=tr[te]=tr[ne]=tr[oe]=tr[se]=tr[ue]=tr[ce]=tr[we]=tr[_e]=tr[Se]=tr[ke]=true;tr[Z]=tr[Y]=tr[fe]=false;var rr={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"};var nr={"&":"&","<":"<",">":">",'"':""","'":"'"};var ir={"&":"&","<":"<",">":">",""":'"',"'":"'"};var ar={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var sr=parseFloat,ur=parseInt;var cr=typeof global=="object"&&global&&global.Object===Object&&global;var lr=typeof self=="object"&&self&&self.Object===Object&&self;var fr=cr||lr||Function("return this")();var dr=true&&t&&!t.nodeType&&t;var hr=dr&&"object"=="object"&&e&&!e.nodeType&&e;var pr=hr&&hr.exports===dr;var mr=pr&&cr.process;var gr=function(){try{var e=hr&&hr.require&&hr.require("util").types;if(e){return e}return mr&&mr.binding&&mr.binding("util")}catch(e){}}();var vr=gr&&gr.isArrayBuffer,br=gr&&gr.isDate,yr=gr&&gr.isMap,wr=gr&&gr.isRegExp,_r=gr&&gr.isSet,Sr=gr&&gr.isTypedArray;function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function arrayAggregator(e,t,r,n){var i=-1,a=e==null?0:e.length;while(++i<a){var o=e[i];t(n,o,r(o),e)}return n}function arrayEach(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)===false){break}}return e}function arrayEachRight(e,t){var r=e==null?0:e.length;while(r--){if(t(e[r],r,e)===false){break}}return e}function arrayEvery(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(!t(e[r],r,e)){return false}}return true}function arrayFilter(e,t){var r=-1,n=e==null?0:e.length,i=0,a=[];while(++r<n){var o=e[r];if(t(o,r,e)){a[i++]=o}}return a}function arrayIncludes(e,t){var r=e==null?0:e.length;return!!r&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){var n=-1,i=e==null?0:e.length;while(++n<i){if(r(t,e[n])){return true}}return false}function arrayMap(e,t){var r=-1,n=e==null?0:e.length,i=Array(n);while(++r<n){i[r]=t(e[r],r,e)}return i}function arrayPush(e,t){var r=-1,n=t.length,i=e.length;while(++r<n){e[i+r]=t[r]}return e}function arrayReduce(e,t,r,n){var i=-1,a=e==null?0:e.length;if(n&&a){r=e[++i]}while(++i<a){r=t(r,e[i],i,e)}return r}function arrayReduceRight(e,t,r,n){var i=e==null?0:e.length;if(n&&i){r=e[--i]}while(i--){r=t(r,e[i],i,e)}return r}function arraySome(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)){return true}}return false}var kr=baseProperty("length");function asciiToArray(e){return e.split("")}function asciiWords(e){return e.match(He)||[]}function baseFindKey(e,t,r){var n;r(e,(function(e,r,i){if(t(e,r,i)){n=r;return false}}));return n}function baseFindIndex(e,t,r,n){var i=e.length,a=r+(n?1:-1);while(n?a--:++a<i){if(t(e[a],a,e)){return a}}return-1}function baseIndexOf(e,t,r){return t===t?strictIndexOf(e,t,r):baseFindIndex(e,baseIsNaN,r)}function baseIndexOfWith(e,t,r,n){var i=r-1,a=e.length;while(++i<a){if(n(e[i],t)){return i}}return-1}function baseIsNaN(e){return e!==e}function baseMean(e,t){var r=e==null?0:e.length;return r?baseSum(e,t)/r:L}function baseProperty(e){return function(t){return t==null?r:t[e]}}function basePropertyOf(e){return function(t){return e==null?r:e[t]}}function baseReduce(e,t,r,n,i){i(e,(function(e,i,a){r=n?(n=false,e):t(r,e,i,a)}));return r}function baseSortBy(e,t){var r=e.length;e.sort(t);while(r--){e[r]=e[r].value}return e}function baseSum(e,t){var n,i=-1,a=e.length;while(++i<a){var o=t(e[i]);if(o!==r){n=n===r?o:n+o}}return n}function baseTimes(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}function baseToPairs(e,t){return arrayMap(t,(function(t){return[t,e[t]]}))}function baseTrim(e){return e?e.slice(0,trimmedEndIndex(e)+1).replace(Re,""):e}function baseUnary(e){return function(t){return e(t)}}function baseValues(e,t){return arrayMap(t,(function(t){return e[t]}))}function cacheHas(e,t){return e.has(t)}function charsStartIndex(e,t){var r=-1,n=e.length;while(++r<n&&baseIndexOf(t,e[r],0)>-1){}return r}function charsEndIndex(e,t){var r=e.length;while(r--&&baseIndexOf(t,e[r],0)>-1){}return r}function countHolders(e,t){var r=e.length,n=0;while(r--){if(e[r]===t){++n}}return n}var Ar=basePropertyOf(rr);var Er=basePropertyOf(nr);function escapeStringChar(e){return"\\"+ar[e]}function getValue(e,t){return e==null?r:e[t]}function hasUnicode(e){return Jt.test(e)}function hasUnicodeWord(e){return Zt.test(e)}function iteratorToArray(e){var t,r=[];while(!(t=e.next()).done){r.push(t.value)}return r}function mapToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e,n){r[++t]=[n,e]}));return r}function overArg(e,t){return function(r){return e(t(r))}}function replaceHolders(e,t){var r=-1,n=e.length,i=0,a=[];while(++r<n){var o=e[r];if(o===t||o===l){e[r]=l;a[i++]=r}}return a}function setToArray(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}function setToPairs(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=[e,e]}));return r}function strictIndexOf(e,t,r){var n=r-1,i=e.length;while(++n<i){if(e[n]===t){return n}}return-1}function strictLastIndexOf(e,t,r){var n=r+1;while(n--){if(e[n]===t){return n}}return n}function stringSize(e){return hasUnicode(e)?unicodeSize(e):kr(e)}function stringToArray(e){return hasUnicode(e)?unicodeToArray(e):asciiToArray(e)}function trimmedEndIndex(e){var t=e.length;while(t--&&De.test(e.charAt(t))){}return t}var Ir=basePropertyOf(ir);function unicodeSize(e){var t=Gt.lastIndex=0;while(Gt.test(e)){++t}return t}function unicodeToArray(e){return e.match(Gt)||[]}function unicodeWords(e){return e.match($t)||[]}var Tr=function runInContext(e){e=e==null?fr:Br.defaults(fr.Object(),e,Br.pick(fr,Yt));var t=e.Array,De=e.Date,He=e.Error,nt=e.Function,it=e.Math,at=e.Object,ot=e.RegExp,st=e.String,ut=e.TypeError;var ct=t.prototype,ft=nt.prototype,dt=at.prototype;var ht=e["__core-js_shared__"];var pt=ft.toString;var mt=dt.hasOwnProperty;var vt=0;var bt=function(){var e=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var yt=dt.toString;var wt=pt.call(at);var _t=fr._;var St=ot("^"+pt.call(mt).replace(je,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var kt=pr?e.Buffer:r,At=e.Symbol,Et=e.Uint8Array,It=kt?kt.allocUnsafe:r,Tt=overArg(at.getPrototypeOf,at),Bt=at.create,Mt=dt.propertyIsEnumerable,Nt=ct.splice,xt=At?At.isConcatSpreadable:r,Ot=At?At.iterator:r,Pt=At?At.toStringTag:r;var Ct=function(){try{var e=getNative(at,"defineProperty");e({},"",{});return e}catch(e){}}();var zt=e.clearTimeout!==fr.clearTimeout&&e.clearTimeout,Ft=De&&De.now!==fr.Date.now&&De.now,jt=e.setTimeout!==fr.setTimeout&&e.setTimeout;var Lt=it.ceil,Rt=it.floor,Dt=at.getOwnPropertySymbols,Ut=kt?kt.isBuffer:r,qt=e.isFinite,Vt=ct.join,Ht=overArg(at.keys,at),Wt=it.max,Gt=it.min,$t=De.now,Jt=e.parseInt,Zt=it.random,rr=ct.reverse;var nr=getNative(e,"DataView"),ir=getNative(e,"Map"),ar=getNative(e,"Promise"),cr=getNative(e,"Set"),lr=getNative(e,"WeakMap"),dr=getNative(at,"create");var hr=lr&&new lr;var mr={};var gr=toSource(nr),kr=toSource(ir),Tr=toSource(ar),Mr=toSource(cr),Nr=toSource(lr);var xr=At?At.prototype:r,Or=xr?xr.valueOf:r,Pr=xr?xr.toString:r;function lodash(e){if(isObjectLike(e)&&!Rn(e)&&!(e instanceof LazyWrapper)){if(e instanceof LodashWrapper){return e}if(mt.call(e,"__wrapped__")){return wrapperClone(e)}}return new LodashWrapper(e)}var Cr=function(){function object(){}return function(e){if(!isObject(e)){return{}}if(Bt){return Bt(e)}object.prototype=e;var t=new object;object.prototype=r;return t}}();function baseLodash(){}function LodashWrapper(e,t){this.__wrapped__=e;this.__actions__=[];this.__chain__=!!t;this.__index__=0;this.__values__=r}lodash.templateSettings={escape:xe,evaluate:Oe,interpolate:Pe,variable:"",imports:{_:lodash}};lodash.prototype=baseLodash.prototype;lodash.prototype.constructor=lodash;LodashWrapper.prototype=Cr(baseLodash.prototype);LodashWrapper.prototype.constructor=LodashWrapper;function LazyWrapper(e){this.__wrapped__=e;this.__actions__=[];this.__dir__=1;this.__filtered__=false;this.__iteratees__=[];this.__takeCount__=D;this.__views__=[]}function lazyClone(){var e=new LazyWrapper(this.__wrapped__);e.__actions__=copyArray(this.__actions__);e.__dir__=this.__dir__;e.__filtered__=this.__filtered__;e.__iteratees__=copyArray(this.__iteratees__);e.__takeCount__=this.__takeCount__;e.__views__=copyArray(this.__views__);return e}function lazyReverse(){if(this.__filtered__){var e=new LazyWrapper(this);e.__dir__=-1;e.__filtered__=true}else{e=this.clone();e.__dir__*=-1}return e}function lazyValue(){var e=this.__wrapped__.value(),t=this.__dir__,r=Rn(e),n=t<0,i=r?e.length:0,a=getView(0,i,this.__views__),o=a.start,s=a.end,u=s-o,c=n?s:o-1,l=this.__iteratees__,d=l.length,h=0,p=Gt(u,this.__takeCount__);if(!r||!n&&i==u&&p==u){return baseWrapperValue(e,this.__actions__)}var m=[];e:while(u--&&h<p){c+=t;var g=-1,v=e[c];while(++g<d){var b=l[g],y=b.iteratee,w=b.type,_=y(v);if(w==P){v=_}else if(!_){if(w==O){continue e}else{break e}}}m[h++]=v}return m}LazyWrapper.prototype=Cr(baseLodash.prototype);LazyWrapper.prototype.constructor=LazyWrapper;function Hash(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function hashClear(){this.__data__=dr?dr(null):{};this.size=0}function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}function hashGet(e){var t=this.__data__;if(dr){var n=t[e];return n===u?r:n}return mt.call(t,e)?t[e]:r}function hashHas(e){var t=this.__data__;return dr?t[e]!==r:mt.call(t,e)}function hashSet(e,t){var n=this.__data__;this.size+=this.has(e)?0:1;n[e]=dr&&t===r?u:t;return this}Hash.prototype.clear=hashClear;Hash.prototype["delete"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function ListCache(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function listCacheClear(){this.__data__=[];this.size=0}function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);if(r<0){return false}var n=t.length-1;if(r==n){t.pop()}else{Nt.call(t,r,1)}--this.size;return true}function listCacheGet(e){var t=this.__data__,n=assocIndexOf(t,e);return n<0?r:t[n][1]}function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);if(n<0){++this.size;r.push([e,t])}else{r[n][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function mapCacheClear(){this.size=0;this.__data__={hash:new Hash,map:new(ir||ListCache),string:new Hash}}function mapCacheDelete(e){var t=getMapData(this,e)["delete"](e);this.size-=t?1:0;return t}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){var r=getMapData(this,e),n=r.size;r.set(e,t);this.size+=r.size==n?0:1;return this}MapCache.prototype.clear=mapCacheClear;MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function SetCache(e){var t=-1,r=e==null?0:e.length;this.__data__=new MapCache;while(++t<r){this.add(e[t])}}function setCacheAdd(e){this.__data__.set(e,u);return this}function setCacheHas(e){return this.__data__.has(e)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function Stack(e){var t=this.__data__=new ListCache(e);this.size=t.size}function stackClear(){this.__data__=new ListCache;this.size=0}function stackDelete(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}function stackGet(e){return this.__data__.get(e)}function stackHas(e){return this.__data__.has(e)}function stackSet(e,t){var r=this.__data__;if(r instanceof ListCache){var n=r.__data__;if(!ir||n.length<i-1){n.push([e,t]);this.size=++r.size;return this}r=this.__data__=new MapCache(n)}r.set(e,t);this.size=r.size;return this}Stack.prototype.clear=stackClear;Stack.prototype["delete"]=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function arrayLikeKeys(e,t){var r=Rn(e),n=!r&&Ln(e),i=!r&&!n&&Un(e),a=!r&&!n&&!i&&Kn(e),o=r||n||i||a,s=o?baseTimes(e.length,st):[],u=s.length;for(var c in e){if((t||mt.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||isIndex(c,u)))){s.push(c)}}return s}function arraySample(e){var t=e.length;return t?e[baseRandom(0,t-1)]:r}function arraySampleSize(e,t){return shuffleSelf(copyArray(e),baseClamp(t,0,e.length))}function arrayShuffle(e){return shuffleSelf(copyArray(e))}function assignMergeValue(e,t,n){if(n!==r&&!eq(e[t],n)||n===r&&!(t in e)){baseAssignValue(e,t,n)}}function assignValue(e,t,n){var i=e[t];if(!(mt.call(e,t)&&eq(i,n))||n===r&&!(t in e)){baseAssignValue(e,t,n)}}function assocIndexOf(e,t){var r=e.length;while(r--){if(eq(e[r][0],t)){return r}}return-1}function baseAggregator(e,t,r,n){zr(e,(function(e,i,a){t(n,e,r(e),a)}));return n}function baseAssign(e,t){return e&©Object(t,keys(t),e)}function baseAssignIn(e,t){return e&©Object(t,keysIn(t),e)}function baseAssignValue(e,t,r){if(t=="__proto__"&&Ct){Ct(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}function baseAt(e,n){var i=-1,a=n.length,o=t(a),s=e==null;while(++i<a){o[i]=s?r:get(e,n[i])}return o}function baseClamp(e,t,n){if(e===e){if(n!==r){e=e<=n?e:n}if(t!==r){e=e>=t?e:t}}return e}function baseClone(e,t,n,i,a,o){var s,u=t&d,c=t&h,l=t&p;if(n){s=a?n(e,i,a,o):n(e)}if(s!==r){return s}if(!isObject(e)){return e}var m=Rn(e);if(m){s=initCloneArray(e);if(!u){return copyArray(e,s)}}else{var g=Xr(e),v=g==Y||g==Q;if(Un(e)){return cloneBuffer(e,u)}if(g==ne||g==H||v&&!a){s=c||v?{}:initCloneObject(e);if(!u){return c?copySymbolsIn(e,baseAssignIn(s,e)):copySymbols(e,baseAssign(s,e))}}else{if(!tr[g]){return a?e:{}}s=initCloneByTag(e,g,u)}}o||(o=new Stack);var b=o.get(e);if(b){return b}o.set(e,s);if(Wn(e)){e.forEach((function(r){s.add(baseClone(r,t,n,r,e,o))}))}else if(Vn(e)){e.forEach((function(r,i){s.set(i,baseClone(r,t,n,i,e,o))}))}var y=l?c?getAllKeysIn:getAllKeys:c?keysIn:keys;var w=m?r:y(e);arrayEach(w||e,(function(r,i){if(w){i=r;r=e[i]}assignValue(s,i,baseClone(r,t,n,i,e,o))}));return s}function baseConforms(e){var t=keys(e);return function(r){return baseConformsTo(r,e,t)}}function baseConformsTo(e,t,n){var i=n.length;if(e==null){return!i}e=at(e);while(i--){var a=n[i],o=t[a],s=e[a];if(s===r&&!(a in e)||!o(s)){return false}}return true}function baseDelay(e,t,n){if(typeof e!="function"){throw new ut(o)}return Jr((function(){e.apply(r,n)}),t)}function baseDifference(e,t,r,n){var a=-1,o=arrayIncludes,s=true,u=e.length,c=[],l=t.length;if(!u){return c}if(r){t=arrayMap(t,baseUnary(r))}if(n){o=arrayIncludesWith;s=false}else if(t.length>=i){o=cacheHas;s=false;t=new SetCache(t)}e:while(++a<u){var d=e[a],h=r==null?d:r(d);d=n||d!==0?d:0;if(s&&h===h){var p=l;while(p--){if(t[p]===h){continue e}}c.push(d)}else if(!o(t,h,n)){c.push(d)}}return c}var zr=createBaseEach(baseForOwn);var Fr=createBaseEach(baseForOwnRight,true);function baseEvery(e,t){var r=true;zr(e,(function(e,n,i){r=!!t(e,n,i);return r}));return r}function baseExtremum(e,t,n){var i=-1,a=e.length;while(++i<a){var o=e[i],s=t(o);if(s!=null&&(u===r?s===s&&!isSymbol(s):n(s,u))){var u=s,c=o}}return c}function baseFill(e,t,n,i){var a=e.length;n=toInteger(n);if(n<0){n=-n>a?0:a+n}i=i===r||i>a?a:toInteger(i);if(i<0){i+=a}i=n>i?0:toLength(i);while(n<i){e[n++]=t}return e}function baseFilter(e,t){var r=[];zr(e,(function(e,n,i){if(t(e,n,i)){r.push(e)}}));return r}function baseFlatten(e,t,r,n,i){var a=-1,o=e.length;r||(r=isFlattenable);i||(i=[]);while(++a<o){var s=e[a];if(t>0&&r(s)){if(t>1){baseFlatten(s,t-1,r,n,i)}else{arrayPush(i,s)}}else if(!n){i[i.length]=s}}return i}var jr=createBaseFor();var Lr=createBaseFor(true);function baseForOwn(e,t){return e&&jr(e,t,keys)}function baseForOwnRight(e,t){return e&&Lr(e,t,keys)}function baseFunctions(e,t){return arrayFilter(t,(function(t){return isFunction(e[t])}))}function baseGet(e,t){t=castPath(t,e);var n=0,i=t.length;while(e!=null&&n<i){e=e[toKey(t[n++])]}return n&&n==i?e:r}function baseGetAllKeys(e,t,r){var n=t(e);return Rn(e)?n:arrayPush(n,r(e))}function baseGetTag(e){if(e==null){return e===r?le:re}return Pt&&Pt in at(e)?getRawTag(e):objectToString(e)}function baseGt(e,t){return e>t}function baseHas(e,t){return e!=null&&mt.call(e,t)}function baseHasIn(e,t){return e!=null&&t in at(e)}function baseInRange(e,t,r){return e>=Gt(t,r)&&e<Wt(t,r)}function baseIntersection(e,n,i){var a=i?arrayIncludesWith:arrayIncludes,o=e[0].length,s=e.length,u=s,c=t(s),l=Infinity,d=[];while(u--){var h=e[u];if(u&&n){h=arrayMap(h,baseUnary(n))}l=Gt(h.length,l);c[u]=!i&&(n||o>=120&&h.length>=120)?new SetCache(u&&h):r}h=e[0];var p=-1,m=c[0];e:while(++p<o&&d.length<l){var g=h[p],v=n?n(g):g;g=i||g!==0?g:0;if(!(m?cacheHas(m,v):a(d,v,i))){u=s;while(--u){var b=c[u];if(!(b?cacheHas(b,v):a(e[u],v,i))){continue e}}if(m){m.push(v)}d.push(g)}}return d}function baseInverter(e,t,r,n){baseForOwn(e,(function(e,i,a){t(n,r(e),i,a)}));return n}function baseInvoke(e,t,n){t=castPath(t,e);e=parent(e,t);var i=e==null?e:e[toKey(last(t))];return i==null?r:apply(i,e,n)}function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==H}function baseIsArrayBuffer(e){return isObjectLike(e)&&baseGetTag(e)==he}function baseIsDate(e){return isObjectLike(e)&&baseGetTag(e)==$}function baseIsEqual(e,t,r,n,i){if(e===t){return true}if(e==null||t==null||!isObjectLike(e)&&!isObjectLike(t)){return e!==e&&t!==t}return baseIsEqualDeep(e,t,r,n,baseIsEqual,i)}function baseIsEqualDeep(e,t,r,n,i,a){var o=Rn(e),s=Rn(t),u=o?W:Xr(e),c=s?W:Xr(t);u=u==H?ne:u;c=c==H?ne:c;var l=u==ne,d=c==ne,h=u==c;if(h&&Un(e)){if(!Un(t)){return false}o=true;l=false}if(h&&!l){a||(a=new Stack);return o||Kn(e)?equalArrays(e,t,r,n,i,a):equalByTag(e,t,u,r,n,i,a)}if(!(r&m)){var p=l&&mt.call(e,"__wrapped__"),g=d&&mt.call(t,"__wrapped__");if(p||g){var v=p?e.value():e,b=g?t.value():t;a||(a=new Stack);return i(v,b,r,n,a)}}if(!h){return false}a||(a=new Stack);return equalObjects(e,t,r,n,i,a)}function baseIsMap(e){return isObjectLike(e)&&Xr(e)==ee}function baseIsMatch(e,t,n,i){var a=n.length,o=a,s=!i;if(e==null){return!o}e=at(e);while(a--){var u=n[a];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e)){return false}}while(++a<o){u=n[a];var c=u[0],l=e[c],d=u[1];if(s&&u[2]){if(l===r&&!(c in e)){return false}}else{var h=new Stack;if(i){var p=i(l,d,c,e,t,h)}if(!(p===r?baseIsEqual(d,l,m|g,i,h):p)){return false}}}return true}function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var t=isFunction(e)?St:Ze;return t.test(toSource(e))}function baseIsRegExp(e){return isObjectLike(e)&&baseGetTag(e)==oe}function baseIsSet(e){return isObjectLike(e)&&Xr(e)==se}function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!er[baseGetTag(e)]}function baseIteratee(e){if(typeof e=="function"){return e}if(e==null){return identity}if(typeof e=="object"){return Rn(e)?baseMatchesProperty(e[0],e[1]):baseMatches(e)}return property(e)}function baseKeys(e){if(!isPrototype(e)){return Ht(e)}var t=[];for(var r in at(e)){if(mt.call(e,r)&&r!="constructor"){t.push(r)}}return t}function baseKeysIn(e){if(!isObject(e)){return nativeKeysIn(e)}var t=isPrototype(e),r=[];for(var n in e){if(!(n=="constructor"&&(t||!mt.call(e,n)))){r.push(n)}}return r}function baseLt(e,t){return e<t}function baseMap(e,r){var n=-1,i=isArrayLike(e)?t(e.length):[];zr(e,(function(e,t,a){i[++n]=r(e,t,a)}));return i}function baseMatches(e){var t=getMatchData(e);if(t.length==1&&t[0][2]){return matchesStrictComparable(t[0][0],t[0][1])}return function(r){return r===e||baseIsMatch(r,e,t)}}function baseMatchesProperty(e,t){if(isKey(e)&&isStrictComparable(t)){return matchesStrictComparable(toKey(e),t)}return function(n){var i=get(n,e);return i===r&&i===t?hasIn(n,e):baseIsEqual(t,i,m|g)}}function baseMerge(e,t,n,i,a){if(e===t){return}jr(t,(function(o,s){a||(a=new Stack);if(isObject(o)){baseMergeDeep(e,t,s,n,baseMerge,i,a)}else{var u=i?i(safeGet(e,s),o,s+"",e,t,a):r;if(u===r){u=o}assignMergeValue(e,s,u)}}),keysIn)}function baseMergeDeep(e,t,n,i,a,o,s){var u=safeGet(e,n),c=safeGet(t,n),l=s.get(c);if(l){assignMergeValue(e,n,l);return}var d=o?o(u,c,n+"",e,t,s):r;var h=d===r;if(h){var p=Rn(c),m=!p&&Un(c),g=!p&&!m&&Kn(c);d=c;if(p||m||g){if(Rn(u)){d=u}else if(isArrayLikeObject(u)){d=copyArray(u)}else if(m){h=false;d=cloneBuffer(c,true)}else if(g){h=false;d=cloneTypedArray(c,true)}else{d=[]}}else if(isPlainObject(c)||Ln(c)){d=u;if(Ln(u)){d=toPlainObject(u)}else if(!isObject(u)||isFunction(u)){d=initCloneObject(c)}}else{h=false}}if(h){s.set(c,d);a(d,c,i,o,s);s["delete"](c)}assignMergeValue(e,n,d)}function baseNth(e,t){var n=e.length;if(!n){return}t+=t<0?n:0;return isIndex(t,n)?e[t]:r}function baseOrderBy(e,t,r){if(t.length){t=arrayMap(t,(function(e){if(Rn(e)){return function(t){return baseGet(t,e.length===1?e[0]:e)}}return e}))}else{t=[identity]}var n=-1;t=arrayMap(t,baseUnary(getIteratee()));var i=baseMap(e,(function(e,r,i){var a=arrayMap(t,(function(t){return t(e)}));return{criteria:a,index:++n,value:e}}));return baseSortBy(i,(function(e,t){return compareMultiple(e,t,r)}))}function basePick(e,t){return basePickBy(e,t,(function(t,r){return hasIn(e,r)}))}function basePickBy(e,t,r){var n=-1,i=t.length,a={};while(++n<i){var o=t[n],s=baseGet(e,o);if(r(s,o)){baseSet(a,castPath(o,e),s)}}return a}function basePropertyDeep(e){return function(t){return baseGet(t,e)}}function basePullAll(e,t,r,n){var i=n?baseIndexOfWith:baseIndexOf,a=-1,o=t.length,s=e;if(e===t){t=copyArray(t)}if(r){s=arrayMap(e,baseUnary(r))}while(++a<o){var u=0,c=t[a],l=r?r(c):c;while((u=i(s,l,u,n))>-1){if(s!==e){Nt.call(s,u,1)}Nt.call(e,u,1)}}return e}function basePullAt(e,t){var r=e?t.length:0,n=r-1;while(r--){var i=t[r];if(r==n||i!==a){var a=i;if(isIndex(i)){Nt.call(e,i,1)}else{baseUnset(e,i)}}}return e}function baseRandom(e,t){return e+Rt(Zt()*(t-e+1))}function baseRange(e,r,n,i){var a=-1,o=Wt(Lt((r-e)/(n||1)),0),s=t(o);while(o--){s[i?o:++a]=e;e+=n}return s}function baseRepeat(e,t){var r="";if(!e||t<1||t>F){return r}do{if(t%2){r+=e}t=Rt(t/2);if(t){e+=e}}while(t);return r}function baseRest(e,t){return Zr(overRest(e,t,identity),e+"")}function baseSample(e){return arraySample(values(e))}function baseSampleSize(e,t){var r=values(e);return shuffleSelf(r,baseClamp(t,0,r.length))}function baseSet(e,t,n,i){if(!isObject(e)){return e}t=castPath(t,e);var a=-1,o=t.length,s=o-1,u=e;while(u!=null&&++a<o){var c=toKey(t[a]),l=n;if(c==="__proto__"||c==="constructor"||c==="prototype"){return e}if(a!=s){var d=u[c];l=i?i(d,c,u):r;if(l===r){l=isObject(d)?d:isIndex(t[a+1])?[]:{}}}assignValue(u,c,l);u=u[c]}return e}var Rr=!hr?identity:function(e,t){hr.set(e,t);return e};var Dr=!Ct?identity:function(e,t){return Ct(e,"toString",{configurable:true,enumerable:false,value:constant(t),writable:true})};function baseShuffle(e){return shuffleSelf(values(e))}function baseSlice(e,r,n){var i=-1,a=e.length;if(r<0){r=-r>a?0:a+r}n=n>a?a:n;if(n<0){n+=a}a=r>n?0:n-r>>>0;r>>>=0;var o=t(a);while(++i<a){o[i]=e[i+r]}return o}function baseSome(e,t){var r;zr(e,(function(e,n,i){r=t(e,n,i);return!r}));return!!r}function baseSortedIndex(e,t,r){var n=0,i=e==null?n:e.length;if(typeof t=="number"&&t===t&&i<=q){while(n<i){var a=n+i>>>1,o=e[a];if(o!==null&&!isSymbol(o)&&(r?o<=t:o<t)){n=a+1}else{i=a}}return i}return baseSortedIndexBy(e,t,identity,r)}function baseSortedIndexBy(e,t,n,i){var a=0,o=e==null?0:e.length;if(o===0){return 0}t=n(t);var s=t!==t,u=t===null,c=isSymbol(t),l=t===r;while(a<o){var d=Rt((a+o)/2),h=n(e[d]),p=h!==r,m=h===null,g=h===h,v=isSymbol(h);if(s){var b=i||g}else if(l){b=g&&(i||p)}else if(u){b=g&&p&&(i||!m)}else if(c){b=g&&p&&!m&&(i||!v)}else if(m||v){b=false}else{b=i?h<=t:h<t}if(b){a=d+1}else{o=d}}return Gt(o,U)}function baseSortedUniq(e,t){var r=-1,n=e.length,i=0,a=[];while(++r<n){var o=e[r],s=t?t(o):o;if(!r||!eq(s,u)){var u=s;a[i++]=o===0?0:o}}return a}function baseToNumber(e){if(typeof e=="number"){return e}if(isSymbol(e)){return L}return+e}function baseToString(e){if(typeof e=="string"){return e}if(Rn(e)){return arrayMap(e,baseToString)+""}if(isSymbol(e)){return Pr?Pr.call(e):""}var t=e+"";return t=="0"&&1/e==-z?"-0":t}function baseUniq(e,t,r){var n=-1,a=arrayIncludes,o=e.length,s=true,u=[],c=u;if(r){s=false;a=arrayIncludesWith}else if(o>=i){var l=t?null:Vr(e);if(l){return setToArray(l)}s=false;a=cacheHas;c=new SetCache}else{c=t?[]:u}e:while(++n<o){var d=e[n],h=t?t(d):d;d=r||d!==0?d:0;if(s&&h===h){var p=c.length;while(p--){if(c[p]===h){continue e}}if(t){c.push(h)}u.push(d)}else if(!a(c,h,r)){if(c!==u){c.push(h)}u.push(d)}}return u}function baseUnset(e,t){t=castPath(t,e);e=parent(e,t);return e==null||delete e[toKey(last(t))]}function baseUpdate(e,t,r,n){return baseSet(e,t,r(baseGet(e,t)),n)}function baseWhile(e,t,r,n){var i=e.length,a=n?i:-1;while((n?a--:++a<i)&&t(e[a],a,e)){}return r?baseSlice(e,n?0:a,n?a+1:i):baseSlice(e,n?a+1:0,n?i:a)}function baseWrapperValue(e,t){var r=e;if(r instanceof LazyWrapper){r=r.value()}return arrayReduce(t,(function(e,t){return t.func.apply(t.thisArg,arrayPush([e],t.args))}),r)}function baseXor(e,r,n){var i=e.length;if(i<2){return i?baseUniq(e[0]):[]}var a=-1,o=t(i);while(++a<i){var s=e[a],u=-1;while(++u<i){if(u!=a){o[a]=baseDifference(o[a]||s,e[u],r,n)}}}return baseUniq(baseFlatten(o,1),r,n)}function baseZipObject(e,t,n){var i=-1,a=e.length,o=t.length,s={};while(++i<a){var u=i<o?t[i]:r;n(s,e[i],u)}return s}function castArrayLikeObject(e){return isArrayLikeObject(e)?e:[]}function castFunction(e){return typeof e=="function"?e:identity}function castPath(e,t){if(Rn(e)){return e}return isKey(e,t)?[e]:Yr(toString(e))}var Ur=baseRest;function castSlice(e,t,n){var i=e.length;n=n===r?i:n;return!t&&n>=i?e:baseSlice(e,t,n)}var qr=zt||function(e){return fr.clearTimeout(e)};function cloneBuffer(e,t){if(t){return e.slice()}var r=e.length,n=It?It(r):new e.constructor(r);e.copy(n);return n}function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);new Et(t).set(new Et(e));return t}function cloneDataView(e,t){var r=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function cloneRegExp(e){var t=new e.constructor(e.source,Ge.exec(e));t.lastIndex=e.lastIndex;return t}function cloneSymbol(e){return Or?at(Or.call(e)):{}}function cloneTypedArray(e,t){var r=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function compareAscending(e,t){if(e!==t){var n=e!==r,i=e===null,a=e===e,o=isSymbol(e);var s=t!==r,u=t===null,c=t===t,l=isSymbol(t);if(!u&&!l&&!o&&e>t||o&&s&&c&&!u&&!l||i&&s&&c||!n&&c||!a){return 1}if(!i&&!o&&!l&&e<t||l&&n&&a&&!i&&!o||u&&n&&a||!s&&a||!c){return-1}}return 0}function compareMultiple(e,t,r){var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;while(++n<o){var u=compareAscending(i[n],a[n]);if(u){if(n>=s){return u}var c=r[n];return u*(c=="desc"?-1:1)}}return e.index-t.index}function composeArgs(e,r,n,i){var a=-1,o=e.length,s=n.length,u=-1,c=r.length,l=Wt(o-s,0),d=t(c+l),h=!i;while(++u<c){d[u]=r[u]}while(++a<s){if(h||a<o){d[n[a]]=e[a]}}while(l--){d[u++]=e[a++]}return d}function composeArgsRight(e,r,n,i){var a=-1,o=e.length,s=-1,u=n.length,c=-1,l=r.length,d=Wt(o-u,0),h=t(d+l),p=!i;while(++a<d){h[a]=e[a]}var m=a;while(++c<l){h[m+c]=r[c]}while(++s<u){if(p||a<o){h[m+n[s]]=e[a++]}}return h}function copyArray(e,r){var n=-1,i=e.length;r||(r=t(i));while(++n<i){r[n]=e[n]}return r}function copyObject(e,t,n,i){var a=!n;n||(n={});var o=-1,s=t.length;while(++o<s){var u=t[o];var c=i?i(n[u],e[u],u,n,e):r;if(c===r){c=e[u]}if(a){baseAssignValue(n,u,c)}else{assignValue(n,u,c)}}return n}function copySymbols(e,t){return copyObject(e,Wr(e),t)}function copySymbolsIn(e,t){return copyObject(e,Kr(e),t)}function createAggregator(e,t){return function(r,n){var i=Rn(r)?arrayAggregator:baseAggregator,a=t?t():{};return i(r,e,getIteratee(n,2),a)}}function createAssigner(e){return baseRest((function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:r,s=a>2?n[2]:r;o=e.length>3&&typeof o=="function"?(a--,o):r;if(s&&isIterateeCall(n[0],n[1],s)){o=a<3?r:o;a=1}t=at(t);while(++i<a){var u=n[i];if(u){e(t,u,i,o)}}return t}))}function createBaseEach(e,t){return function(r,n){if(r==null){return r}if(!isArrayLike(r)){return e(r,n)}var i=r.length,a=t?i:-1,o=at(r);while(t?a--:++a<i){if(n(o[a],a,o)===false){break}}return r}}function createBaseFor(e){return function(t,r,n){var i=-1,a=at(t),o=n(t),s=o.length;while(s--){var u=o[e?s:++i];if(r(a[u],u,a)===false){break}}return t}}function createBind(e,t,r){var n=t&v,i=createCtor(e);function wrapper(){var t=this&&this!==fr&&this instanceof wrapper?i:e;return t.apply(n?r:this,arguments)}return wrapper}function createCaseFirst(e){return function(t){t=toString(t);var n=hasUnicode(t)?stringToArray(t):r;var i=n?n[0]:t.charAt(0);var a=n?castSlice(n,1).join(""):t.slice(1);return i[e]()+a}}function createCompounder(e){return function(t){return arrayReduce(words(deburr(t).replace(Kt,"")),e,"")}}function createCtor(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Cr(e.prototype),n=e.apply(r,t);return isObject(n)?n:r}}function createCurry(e,n,i){var a=createCtor(e);function wrapper(){var o=arguments.length,s=t(o),u=o,c=getHolder(wrapper);while(u--){s[u]=arguments[u]}var l=o<3&&s[0]!==c&&s[o-1]!==c?[]:replaceHolders(s,c);o-=l.length;if(o<i){return createRecurry(e,n,createHybrid,wrapper.placeholder,r,s,l,r,r,i-o)}var d=this&&this!==fr&&this instanceof wrapper?a:e;return apply(d,this,s)}return wrapper}function createFind(e){return function(t,n,i){var a=at(t);if(!isArrayLike(t)){var o=getIteratee(n,3);t=keys(t);n=function(e){return o(a[e],e,a)}}var s=e(t,n,i);return s>-1?a[o?t[s]:s]:r}}function createFlow(e){return flatRest((function(t){var n=t.length,i=n,a=LodashWrapper.prototype.thru;if(e){t.reverse()}while(i--){var s=t[i];if(typeof s!="function"){throw new ut(o)}if(a&&!u&&getFuncName(s)=="wrapper"){var u=new LodashWrapper([],true)}}i=u?i:n;while(++i<n){s=t[i];var c=getFuncName(s),l=c=="wrapper"?Hr(s):r;if(l&&isLaziable(l[0])&&l[1]==(E|w|k|I)&&!l[4].length&&l[9]==1){u=u[getFuncName(l[0])].apply(u,l[3])}else{u=s.length==1&&isLaziable(s)?u[c]():u.thru(s)}}return function(){var e=arguments,r=e[0];if(u&&e.length==1&&Rn(r)){return u.plant(r).value()}var i=0,a=n?t[i].apply(this,e):r;while(++i<n){a=t[i].call(this,a)}return a}}))}function createHybrid(e,n,i,a,o,s,u,c,l,d){var h=n&E,p=n&v,m=n&b,g=n&(w|_),y=n&T,k=m?r:createCtor(e);function wrapper(){var r=arguments.length,v=t(r),b=r;while(b--){v[b]=arguments[b]}if(g){var w=getHolder(wrapper),_=countHolders(v,w)}if(a){v=composeArgs(v,a,o,g)}if(s){v=composeArgsRight(v,s,u,g)}r-=_;if(g&&r<d){var A=replaceHolders(v,w);return createRecurry(e,n,createHybrid,wrapper.placeholder,i,v,A,c,l,d-r)}var E=p?i:this,I=m?E[e]:e;r=v.length;if(c){v=reorder(v,c)}else if(y&&r>1){v.reverse()}if(h&&l<r){v.length=l}if(this&&this!==fr&&this instanceof wrapper){I=k||createCtor(I)}return I.apply(E,v)}return wrapper}function createInverter(e,t){return function(r,n){return baseInverter(r,e,t(n),{})}}function createMathOperation(e,t){return function(n,i){var a;if(n===r&&i===r){return t}if(n!==r){a=n}if(i!==r){if(a===r){return i}if(typeof n=="string"||typeof i=="string"){n=baseToString(n);i=baseToString(i)}else{n=baseToNumber(n);i=baseToNumber(i)}a=e(n,i)}return a}}function createOver(e){return flatRest((function(t){t=arrayMap(t,baseUnary(getIteratee()));return baseRest((function(r){var n=this;return e(t,(function(e){return apply(e,n,r)}))}))}))}function createPadding(e,t){t=t===r?" ":baseToString(t);var n=t.length;if(n<2){return n?baseRepeat(t,e):t}var i=baseRepeat(t,Lt(e/stringSize(t)));return hasUnicode(t)?castSlice(stringToArray(i),0,e).join(""):i.slice(0,e)}function createPartial(e,r,n,i){var a=r&v,o=createCtor(e);function wrapper(){var r=-1,s=arguments.length,u=-1,c=i.length,l=t(c+s),d=this&&this!==fr&&this instanceof wrapper?o:e;while(++u<c){l[u]=i[u]}while(s--){l[u++]=arguments[++r]}return apply(d,a?n:this,l)}return wrapper}function createRange(e){return function(t,n,i){if(i&&typeof i!="number"&&isIterateeCall(t,n,i)){n=i=r}t=toFinite(t);if(n===r){n=t;t=0}else{n=toFinite(n)}i=i===r?t<n?1:-1:toFinite(i);return baseRange(t,n,i,e)}}function createRelationalOperation(e){return function(t,r){if(!(typeof t=="string"&&typeof r=="string")){t=toNumber(t);r=toNumber(r)}return e(t,r)}}function createRecurry(e,t,n,i,a,o,s,u,c,l){var d=t&w,h=d?s:r,p=d?r:s,m=d?o:r,g=d?r:o;t|=d?k:A;t&=~(d?A:k);if(!(t&y)){t&=~(v|b)}var _=[e,t,a,m,h,g,p,u,c,l];var E=n.apply(r,_);if(isLaziable(e)){$r(E,_)}E.placeholder=i;return setWrapToString(E,e,t)}function createRound(e){var t=it[e];return function(e,r){e=toNumber(e);r=r==null?0:Gt(toInteger(r),292);if(r&&qt(e)){var n=(toString(e)+"e").split("e"),i=t(n[0]+"e"+(+n[1]+r));n=(toString(i)+"e").split("e");return+(n[0]+"e"+(+n[1]-r))}return t(e)}}var Vr=!(cr&&1/setToArray(new cr([,-0]))[1]==z)?noop:function(e){return new cr(e)};function createToPairs(e){return function(t){var r=Xr(t);if(r==ee){return mapToArray(t)}if(r==se){return setToPairs(t)}return baseToPairs(t,e(t))}}function createWrap(e,t,n,i,a,s,u,c){var l=t&b;if(!l&&typeof e!="function"){throw new ut(o)}var d=i?i.length:0;if(!d){t&=~(k|A);i=a=r}u=u===r?u:Wt(toInteger(u),0);c=c===r?c:toInteger(c);d-=a?a.length:0;if(t&A){var h=i,p=a;i=a=r}var m=l?r:Hr(e);var g=[e,t,n,i,a,h,p,s,u,c];if(m){mergeData(g,m)}e=g[0];t=g[1];n=g[2];i=g[3];a=g[4];c=g[9]=g[9]===r?l?0:e.length:Wt(g[9]-d,0);if(!c&&t&(w|_)){t&=~(w|_)}if(!t||t==v){var y=createBind(e,t,n)}else if(t==w||t==_){y=createCurry(e,t,c)}else if((t==k||t==(v|k))&&!a.length){y=createPartial(e,t,n,i)}else{y=createHybrid.apply(r,g)}var E=m?Rr:$r;return setWrapToString(E(y,g),e,t)}function customDefaultsAssignIn(e,t,n,i){if(e===r||eq(e,dt[n])&&!mt.call(i,n)){return t}return e}function customDefaultsMerge(e,t,n,i,a,o){if(isObject(e)&&isObject(t)){o.set(t,e);baseMerge(e,t,r,customDefaultsMerge,o);o["delete"](t)}return e}function customOmitClone(e){return isPlainObject(e)?r:e}function equalArrays(e,t,n,i,a,o){var s=n&m,u=e.length,c=t.length;if(u!=c&&!(s&&c>u)){return false}var l=o.get(e);var d=o.get(t);if(l&&d){return l==t&&d==e}var h=-1,p=true,v=n&g?new SetCache:r;o.set(e,t);o.set(t,e);while(++h<u){var b=e[h],y=t[h];if(i){var w=s?i(y,b,h,t,e,o):i(b,y,h,e,t,o)}if(w!==r){if(w){continue}p=false;break}if(v){if(!arraySome(t,(function(e,t){if(!cacheHas(v,t)&&(b===e||a(b,e,n,i,o))){return v.push(t)}}))){p=false;break}}else if(!(b===y||a(b,y,n,i,o))){p=false;break}}o["delete"](e);o["delete"](t);return p}function equalByTag(e,t,r,n,i,a,o){switch(r){case pe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case he:if(e.byteLength!=t.byteLength||!a(new Et(e),new Et(t))){return false}return true;case G:case $:case te:return eq(+e,+t);case Z:return e.name==t.name&&e.message==t.message;case oe:case ue:return e==t+"";case ee:var s=mapToArray;case se:var u=n&m;s||(s=setToArray);if(e.size!=t.size&&!u){return false}var c=o.get(e);if(c){return c==t}n|=g;o.set(e,t);var l=equalArrays(s(e),s(t),n,i,a,o);o["delete"](e);return l;case ce:if(Or){return Or.call(e)==Or.call(t)}}return false}function equalObjects(e,t,n,i,a,o){var s=n&m,u=getAllKeys(e),c=u.length,l=getAllKeys(t),d=l.length;if(c!=d&&!s){return false}var h=c;while(h--){var p=u[h];if(!(s?p in t:mt.call(t,p))){return false}}var g=o.get(e);var v=o.get(t);if(g&&v){return g==t&&v==e}var b=true;o.set(e,t);o.set(t,e);var y=s;while(++h<c){p=u[h];var w=e[p],_=t[p];if(i){var k=s?i(_,w,p,t,e,o):i(w,_,p,e,t,o)}if(!(k===r?w===_||a(w,_,n,i,o):k)){b=false;break}y||(y=p=="constructor")}if(b&&!y){var A=e.constructor,E=t.constructor;if(A!=E&&("constructor"in e&&"constructor"in t)&&!(typeof A=="function"&&A instanceof A&&typeof E=="function"&&E instanceof E)){b=false}}o["delete"](e);o["delete"](t);return b}function flatRest(e){return Zr(overRest(e,r,flatten),e+"")}function getAllKeys(e){return baseGetAllKeys(e,keys,Wr)}function getAllKeysIn(e){return baseGetAllKeys(e,keysIn,Kr)}var Hr=!hr?noop:function(e){return hr.get(e)};function getFuncName(e){var t=e.name+"",r=mr[t],n=mt.call(mr,t)?r.length:0;while(n--){var i=r[n],a=i.func;if(a==null||a==e){return i.name}}return t}function getHolder(e){var t=mt.call(lodash,"placeholder")?lodash:e;return t.placeholder}function getIteratee(){var e=lodash.iteratee||iteratee;e=e===iteratee?baseIteratee:e;return arguments.length?e(arguments[0],arguments[1]):e}function getMapData(e,t){var r=e.__data__;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function getMatchData(e){var t=keys(e),r=t.length;while(r--){var n=t[r],i=e[n];t[r]=[n,i,isStrictComparable(i)]}return t}function getNative(e,t){var n=getValue(e,t);return baseIsNative(n)?n:r}function getRawTag(e){var t=mt.call(e,Pt),n=e[Pt];try{e[Pt]=r;var i=true}catch(e){}var a=yt.call(e);if(i){if(t){e[Pt]=n}else{delete e[Pt]}}return a}var Wr=!Dt?stubArray:function(e){if(e==null){return[]}e=at(e);return arrayFilter(Dt(e),(function(t){return Mt.call(e,t)}))};var Kr=!Dt?stubArray:function(e){var t=[];while(e){arrayPush(t,Wr(e));e=Tt(e)}return t};var Xr=baseGetTag;if(nr&&Xr(new nr(new ArrayBuffer(1)))!=pe||ir&&Xr(new ir)!=ee||ar&&Xr(ar.resolve())!=ie||cr&&Xr(new cr)!=se||lr&&Xr(new lr)!=fe){Xr=function(e){var t=baseGetTag(e),n=t==ne?e.constructor:r,i=n?toSource(n):"";if(i){switch(i){case gr:return pe;case kr:return ee;case Tr:return ie;case Mr:return se;case Nr:return fe}}return t}}function getView(e,t,r){var n=-1,i=r.length;while(++n<i){var a=r[n],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=Gt(t,e+o);break;case"takeRight":e=Wt(e,t-o);break}}return{start:e,end:t}}function getWrapDetails(e){var t=e.match(qe);return t?t[1].split(Ve):[]}function hasPath(e,t,r){t=castPath(t,e);var n=-1,i=t.length,a=false;while(++n<i){var o=toKey(t[n]);if(!(a=e!=null&&r(e,o))){break}e=e[o]}if(a||++n!=i){return a}i=e==null?0:e.length;return!!i&&isLength(i)&&isIndex(o,i)&&(Rn(e)||Ln(e))}function initCloneArray(e){var t=e.length,r=new e.constructor(t);if(t&&typeof e[0]=="string"&&mt.call(e,"index")){r.index=e.index;r.input=e.input}return r}function initCloneObject(e){return typeof e.constructor=="function"&&!isPrototype(e)?Cr(Tt(e)):{}}function initCloneByTag(e,t,r){var n=e.constructor;switch(t){case he:return cloneArrayBuffer(e);case G:case $:return new n(+e);case pe:return cloneDataView(e,r);case me:case ge:case ve:case be:case ye:case we:case _e:case Se:case ke:return cloneTypedArray(e,r);case ee:return new n;case te:case ue:return new n(e);case oe:return cloneRegExp(e);case se:return new n;case ce:return cloneSymbol(e)}}function insertWrapDetails(e,t){var r=t.length;if(!r){return e}var n=r-1;t[n]=(r>1?"& ":"")+t[n];t=t.join(r>2?", ":" ");return e.replace(Ue,"{\n/* [wrapped with "+t+"] */\n")}function isFlattenable(e){return Rn(e)||Ln(e)||!!(xt&&e&&e[xt])}function isIndex(e,t){var r=typeof e;t=t==null?F:t;return!!t&&(r=="number"||r!="symbol"&&Qe.test(e))&&(e>-1&&e%1==0&&e<t)}function isIterateeCall(e,t,r){if(!isObject(r)){return false}var n=typeof t;if(n=="number"?isArrayLike(r)&&isIndex(t,r.length):n=="string"&&t in r){return eq(r[t],e)}return false}function isKey(e,t){if(Rn(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||isSymbol(e)){return true}return ze.test(e)||!Ce.test(e)||t!=null&&e in at(t)}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function isLaziable(e){var t=getFuncName(e),r=lodash[t];if(typeof r!="function"||!(t in LazyWrapper.prototype)){return false}if(e===r){return true}var n=Hr(r);return!!n&&e===n[0]}function isMasked(e){return!!bt&&bt in e}var Gr=ht?isFunction:stubFalse;function isPrototype(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||dt;return e===r}function isStrictComparable(e){return e===e&&!isObject(e)}function matchesStrictComparable(e,t){return function(n){if(n==null){return false}return n[e]===t&&(t!==r||e in at(n))}}function memoizeCapped(e){var t=memoize(e,(function(e){if(r.size===c){r.clear()}return e}));var r=t.cache;return t}function mergeData(e,t){var r=e[1],n=t[1],i=r|n,a=i<(v|b|E);var o=n==E&&r==w||n==E&&r==I&&e[7].length<=t[8]||n==(E|I)&&t[7].length<=t[8]&&r==w;if(!(a||o)){return e}if(n&v){e[2]=t[2];i|=r&v?0:y}var s=t[3];if(s){var u=e[3];e[3]=u?composeArgs(u,s,t[4]):s;e[4]=u?replaceHolders(e[3],l):t[4]}s=t[5];if(s){u=e[5];e[5]=u?composeArgsRight(u,s,t[6]):s;e[6]=u?replaceHolders(e[5],l):t[6]}s=t[7];if(s){e[7]=s}if(n&E){e[8]=e[8]==null?t[8]:Gt(e[8],t[8])}if(e[9]==null){e[9]=t[9]}e[0]=t[0];e[1]=i;return e}function nativeKeysIn(e){var t=[];if(e!=null){for(var r in at(e)){t.push(r)}}return t}function objectToString(e){return yt.call(e)}function overRest(e,n,i){n=Wt(n===r?e.length-1:n,0);return function(){var r=arguments,a=-1,o=Wt(r.length-n,0),s=t(o);while(++a<o){s[a]=r[n+a]}a=-1;var u=t(n+1);while(++a<n){u[a]=r[a]}u[n]=i(s);return apply(e,this,u)}}function parent(e,t){return t.length<2?e:baseGet(e,baseSlice(t,0,-1))}function reorder(e,t){var n=e.length,i=Gt(t.length,n),a=copyArray(e);while(i--){var o=t[i];e[i]=isIndex(o,n)?a[o]:r}return e}function safeGet(e,t){if(t==="constructor"&&typeof e[t]==="function"){return}if(t=="__proto__"){return}return e[t]}var $r=shortOut(Rr);var Jr=jt||function(e,t){return fr.setTimeout(e,t)};var Zr=shortOut(Dr);function setWrapToString(e,t,r){var n=t+"";return Zr(e,insertWrapDetails(n,updateWrapDetails(getWrapDetails(n),r)))}function shortOut(e){var t=0,n=0;return function(){var i=$t(),a=x-(i-n);n=i;if(a>0){if(++t>=N){return arguments[0]}}else{t=0}return e.apply(r,arguments)}}function shuffleSelf(e,t){var n=-1,i=e.length,a=i-1;t=t===r?i:t;while(++n<t){var o=baseRandom(n,a),s=e[o];e[o]=e[n];e[n]=s}e.length=t;return e}var Yr=memoizeCapped((function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(Fe,(function(e,r,n,i){t.push(n?i.replace(Ke,"$1"):r||e)}));return t}));function toKey(e){if(typeof e=="string"||isSymbol(e)){return e}var t=e+"";return t=="0"&&1/e==-z?"-0":t}function toSource(e){if(e!=null){try{return pt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function updateWrapDetails(e,t){arrayEach(V,(function(r){var n="_."+r[0];if(t&r[1]&&!arrayIncludes(e,n)){e.push(n)}}));return e.sort()}function wrapperClone(e){if(e instanceof LazyWrapper){return e.clone()}var t=new LodashWrapper(e.__wrapped__,e.__chain__);t.__actions__=copyArray(e.__actions__);t.__index__=e.__index__;t.__values__=e.__values__;return t}function chunk(e,n,i){if(i?isIterateeCall(e,n,i):n===r){n=1}else{n=Wt(toInteger(n),0)}var a=e==null?0:e.length;if(!a||n<1){return[]}var o=0,s=0,u=t(Lt(a/n));while(o<a){u[s++]=baseSlice(e,o,o+=n)}return u}function compact(e){var t=-1,r=e==null?0:e.length,n=0,i=[];while(++t<r){var a=e[t];if(a){i[n++]=a}}return i}function concat(){var e=arguments.length;if(!e){return[]}var r=t(e-1),n=arguments[0],i=e;while(i--){r[i-1]=arguments[i]}return arrayPush(Rn(n)?copyArray(n):[n],baseFlatten(r,1))}var Qr=baseRest((function(e,t){return isArrayLikeObject(e)?baseDifference(e,baseFlatten(t,1,isArrayLikeObject,true)):[]}));var en=baseRest((function(e,t){var n=last(t);if(isArrayLikeObject(n)){n=r}return isArrayLikeObject(e)?baseDifference(e,baseFlatten(t,1,isArrayLikeObject,true),getIteratee(n,2)):[]}));var tn=baseRest((function(e,t){var n=last(t);if(isArrayLikeObject(n)){n=r}return isArrayLikeObject(e)?baseDifference(e,baseFlatten(t,1,isArrayLikeObject,true),r,n):[]}));function drop(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:toInteger(t);return baseSlice(e,t<0?0:t,i)}function dropRight(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:toInteger(t);t=i-t;return baseSlice(e,0,t<0?0:t)}function dropRightWhile(e,t){return e&&e.length?baseWhile(e,getIteratee(t,3),true,true):[]}function dropWhile(e,t){return e&&e.length?baseWhile(e,getIteratee(t,3),true):[]}function fill(e,t,r,n){var i=e==null?0:e.length;if(!i){return[]}if(r&&typeof r!="number"&&isIterateeCall(e,t,r)){r=0;n=i}return baseFill(e,t,r,n)}function findIndex(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:toInteger(r);if(i<0){i=Wt(n+i,0)}return baseFindIndex(e,getIteratee(t,3),i)}function findLastIndex(e,t,n){var i=e==null?0:e.length;if(!i){return-1}var a=i-1;if(n!==r){a=toInteger(n);a=n<0?Wt(i+a,0):Gt(a,i-1)}return baseFindIndex(e,getIteratee(t,3),a,true)}function flatten(e){var t=e==null?0:e.length;return t?baseFlatten(e,1):[]}function flattenDeep(e){var t=e==null?0:e.length;return t?baseFlatten(e,z):[]}function flattenDepth(e,t){var n=e==null?0:e.length;if(!n){return[]}t=t===r?1:toInteger(t);return baseFlatten(e,t)}function fromPairs(e){var t=-1,r=e==null?0:e.length,n={};while(++t<r){var i=e[t];n[i[0]]=i[1]}return n}function head(e){return e&&e.length?e[0]:r}function indexOf(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:toInteger(r);if(i<0){i=Wt(n+i,0)}return baseIndexOf(e,t,i)}function initial(e){var t=e==null?0:e.length;return t?baseSlice(e,0,-1):[]}var rn=baseRest((function(e){var t=arrayMap(e,castArrayLikeObject);return t.length&&t[0]===e[0]?baseIntersection(t):[]}));var nn=baseRest((function(e){var t=last(e),n=arrayMap(e,castArrayLikeObject);if(t===last(n)){t=r}else{n.pop()}return n.length&&n[0]===e[0]?baseIntersection(n,getIteratee(t,2)):[]}));var an=baseRest((function(e){var t=last(e),n=arrayMap(e,castArrayLikeObject);t=typeof t=="function"?t:r;if(t){n.pop()}return n.length&&n[0]===e[0]?baseIntersection(n,r,t):[]}));function join(e,t){return e==null?"":Vt.call(e,t)}function last(e){var t=e==null?0:e.length;return t?e[t-1]:r}function lastIndexOf(e,t,n){var i=e==null?0:e.length;if(!i){return-1}var a=i;if(n!==r){a=toInteger(n);a=a<0?Wt(i+a,0):Gt(a,i-1)}return t===t?strictLastIndexOf(e,t,a):baseFindIndex(e,baseIsNaN,a,true)}function nth(e,t){return e&&e.length?baseNth(e,toInteger(t)):r}var on=baseRest(pullAll);function pullAll(e,t){return e&&e.length&&t&&t.length?basePullAll(e,t):e}function pullAllBy(e,t,r){return e&&e.length&&t&&t.length?basePullAll(e,t,getIteratee(r,2)):e}function pullAllWith(e,t,n){return e&&e.length&&t&&t.length?basePullAll(e,t,r,n):e}var sn=flatRest((function(e,t){var r=e==null?0:e.length,n=baseAt(e,t);basePullAt(e,arrayMap(t,(function(e){return isIndex(e,r)?+e:e})).sort(compareAscending));return n}));function remove(e,t){var r=[];if(!(e&&e.length)){return r}var n=-1,i=[],a=e.length;t=getIteratee(t,3);while(++n<a){var o=e[n];if(t(o,n,e)){r.push(o);i.push(n)}}basePullAt(e,i);return r}function reverse(e){return e==null?e:rr.call(e)}function slice(e,t,n){var i=e==null?0:e.length;if(!i){return[]}if(n&&typeof n!="number"&&isIterateeCall(e,t,n)){t=0;n=i}else{t=t==null?0:toInteger(t);n=n===r?i:toInteger(n)}return baseSlice(e,t,n)}function sortedIndex(e,t){return baseSortedIndex(e,t)}function sortedIndexBy(e,t,r){return baseSortedIndexBy(e,t,getIteratee(r,2))}function sortedIndexOf(e,t){var r=e==null?0:e.length;if(r){var n=baseSortedIndex(e,t);if(n<r&&eq(e[n],t)){return n}}return-1}function sortedLastIndex(e,t){return baseSortedIndex(e,t,true)}function sortedLastIndexBy(e,t,r){return baseSortedIndexBy(e,t,getIteratee(r,2),true)}function sortedLastIndexOf(e,t){var r=e==null?0:e.length;if(r){var n=baseSortedIndex(e,t,true)-1;if(eq(e[n],t)){return n}}return-1}function sortedUniq(e){return e&&e.length?baseSortedUniq(e):[]}function sortedUniqBy(e,t){return e&&e.length?baseSortedUniq(e,getIteratee(t,2)):[]}function tail(e){var t=e==null?0:e.length;return t?baseSlice(e,1,t):[]}function take(e,t,n){if(!(e&&e.length)){return[]}t=n||t===r?1:toInteger(t);return baseSlice(e,0,t<0?0:t)}function takeRight(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:toInteger(t);t=i-t;return baseSlice(e,t<0?0:t,i)}function takeRightWhile(e,t){return e&&e.length?baseWhile(e,getIteratee(t,3),false,true):[]}function takeWhile(e,t){return e&&e.length?baseWhile(e,getIteratee(t,3)):[]}var un=baseRest((function(e){return baseUniq(baseFlatten(e,1,isArrayLikeObject,true))}));var cn=baseRest((function(e){var t=last(e);if(isArrayLikeObject(t)){t=r}return baseUniq(baseFlatten(e,1,isArrayLikeObject,true),getIteratee(t,2))}));var fn=baseRest((function(e){var t=last(e);t=typeof t=="function"?t:r;return baseUniq(baseFlatten(e,1,isArrayLikeObject,true),r,t)}));function uniq(e){return e&&e.length?baseUniq(e):[]}function uniqBy(e,t){return e&&e.length?baseUniq(e,getIteratee(t,2)):[]}function uniqWith(e,t){t=typeof t=="function"?t:r;return e&&e.length?baseUniq(e,r,t):[]}function unzip(e){if(!(e&&e.length)){return[]}var t=0;e=arrayFilter(e,(function(e){if(isArrayLikeObject(e)){t=Wt(e.length,t);return true}}));return baseTimes(t,(function(t){return arrayMap(e,baseProperty(t))}))}function unzipWith(e,t){if(!(e&&e.length)){return[]}var n=unzip(e);if(t==null){return n}return arrayMap(n,(function(e){return apply(t,r,e)}))}var dn=baseRest((function(e,t){return isArrayLikeObject(e)?baseDifference(e,t):[]}));var hn=baseRest((function(e){return baseXor(arrayFilter(e,isArrayLikeObject))}));var pn=baseRest((function(e){var t=last(e);if(isArrayLikeObject(t)){t=r}return baseXor(arrayFilter(e,isArrayLikeObject),getIteratee(t,2))}));var mn=baseRest((function(e){var t=last(e);t=typeof t=="function"?t:r;return baseXor(arrayFilter(e,isArrayLikeObject),r,t)}));var gn=baseRest(unzip);function zipObject(e,t){return baseZipObject(e||[],t||[],assignValue)}function zipObjectDeep(e,t){return baseZipObject(e||[],t||[],baseSet)}var vn=baseRest((function(e){var t=e.length,n=t>1?e[t-1]:r;n=typeof n=="function"?(e.pop(),n):r;return unzipWith(e,n)}));function chain(e){var t=lodash(e);t.__chain__=true;return t}function tap(e,t){t(e);return e}function thru(e,t){return t(e)}var bn=flatRest((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,interceptor=function(t){return baseAt(t,e)};if(t>1||this.__actions__.length||!(i instanceof LazyWrapper)||!isIndex(n)){return this.thru(interceptor)}i=i.slice(n,+n+(t?1:0));i.__actions__.push({func:thru,args:[interceptor],thisArg:r});return new LodashWrapper(i,this.__chain__).thru((function(e){if(t&&!e.length){e.push(r)}return e}))}));function wrapperChain(){return chain(this)}function wrapperCommit(){return new LodashWrapper(this.value(),this.__chain__)}function wrapperNext(){if(this.__values__===r){this.__values__=toArray(this.value())}var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function wrapperToIterator(){return this}function wrapperPlant(e){var t,n=this;while(n instanceof baseLodash){var i=wrapperClone(n);i.__index__=0;i.__values__=r;if(t){a.__wrapped__=i}else{t=i}var a=i;n=n.__wrapped__}a.__wrapped__=e;return t}function wrapperReverse(){var e=this.__wrapped__;if(e instanceof LazyWrapper){var t=e;if(this.__actions__.length){t=new LazyWrapper(this)}t=t.reverse();t.__actions__.push({func:thru,args:[reverse],thisArg:r});return new LodashWrapper(t,this.__chain__)}return this.thru(reverse)}function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__)}var yn=createAggregator((function(e,t,r){if(mt.call(e,r)){++e[r]}else{baseAssignValue(e,r,1)}}));function every(e,t,n){var i=Rn(e)?arrayEvery:baseEvery;if(n&&isIterateeCall(e,t,n)){t=r}return i(e,getIteratee(t,3))}function filter(e,t){var r=Rn(e)?arrayFilter:baseFilter;return r(e,getIteratee(t,3))}var wn=createFind(findIndex);var _n=createFind(findLastIndex);function flatMap(e,t){return baseFlatten(map(e,t),1)}function flatMapDeep(e,t){return baseFlatten(map(e,t),z)}function flatMapDepth(e,t,n){n=n===r?1:toInteger(n);return baseFlatten(map(e,t),n)}function forEach(e,t){var r=Rn(e)?arrayEach:zr;return r(e,getIteratee(t,3))}function forEachRight(e,t){var r=Rn(e)?arrayEachRight:Fr;return r(e,getIteratee(t,3))}var Sn=createAggregator((function(e,t,r){if(mt.call(e,r)){e[r].push(t)}else{baseAssignValue(e,r,[t])}}));function includes(e,t,r,n){e=isArrayLike(e)?e:values(e);r=r&&!n?toInteger(r):0;var i=e.length;if(r<0){r=Wt(i+r,0)}return isString(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&baseIndexOf(e,t,r)>-1}var kn=baseRest((function(e,r,n){var i=-1,a=typeof r=="function",o=isArrayLike(e)?t(e.length):[];zr(e,(function(e){o[++i]=a?apply(r,e,n):baseInvoke(e,r,n)}));return o}));var An=createAggregator((function(e,t,r){baseAssignValue(e,r,t)}));function map(e,t){var r=Rn(e)?arrayMap:baseMap;return r(e,getIteratee(t,3))}function orderBy(e,t,n,i){if(e==null){return[]}if(!Rn(t)){t=t==null?[]:[t]}n=i?r:n;if(!Rn(n)){n=n==null?[]:[n]}return baseOrderBy(e,t,n)}var En=createAggregator((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));function reduce(e,t,r){var n=Rn(e)?arrayReduce:baseReduce,i=arguments.length<3;return n(e,getIteratee(t,4),r,i,zr)}function reduceRight(e,t,r){var n=Rn(e)?arrayReduceRight:baseReduce,i=arguments.length<3;return n(e,getIteratee(t,4),r,i,Fr)}function reject(e,t){var r=Rn(e)?arrayFilter:baseFilter;return r(e,negate(getIteratee(t,3)))}function sample(e){var t=Rn(e)?arraySample:baseSample;return t(e)}function sampleSize(e,t,n){if(n?isIterateeCall(e,t,n):t===r){t=1}else{t=toInteger(t)}var i=Rn(e)?arraySampleSize:baseSampleSize;return i(e,t)}function shuffle(e){var t=Rn(e)?arrayShuffle:baseShuffle;return t(e)}function size(e){if(e==null){return 0}if(isArrayLike(e)){return isString(e)?stringSize(e):e.length}var t=Xr(e);if(t==ee||t==se){return e.size}return baseKeys(e).length}function some(e,t,n){var i=Rn(e)?arraySome:baseSome;if(n&&isIterateeCall(e,t,n)){t=r}return i(e,getIteratee(t,3))}var In=baseRest((function(e,t){if(e==null){return[]}var r=t.length;if(r>1&&isIterateeCall(e,t[0],t[1])){t=[]}else if(r>2&&isIterateeCall(t[0],t[1],t[2])){t=[t[0]]}return baseOrderBy(e,baseFlatten(t,1),[])}));var Tn=Ft||function(){return fr.Date.now()};function after(e,t){if(typeof t!="function"){throw new ut(o)}e=toInteger(e);return function(){if(--e<1){return t.apply(this,arguments)}}}function ary(e,t,n){t=n?r:t;t=e&&t==null?e.length:t;return createWrap(e,E,r,r,r,r,t)}function before(e,t){var n;if(typeof t!="function"){throw new ut(o)}e=toInteger(e);return function(){if(--e>0){n=t.apply(this,arguments)}if(e<=1){t=r}return n}}var Bn=baseRest((function(e,t,r){var n=v;if(r.length){var i=replaceHolders(r,getHolder(Bn));n|=k}return createWrap(e,n,t,r,i)}));var Mn=baseRest((function(e,t,r){var n=v|b;if(r.length){var i=replaceHolders(r,getHolder(Mn));n|=k}return createWrap(t,n,e,r,i)}));function curry(e,t,n){t=n?r:t;var i=createWrap(e,w,r,r,r,r,r,t);i.placeholder=curry.placeholder;return i}function curryRight(e,t,n){t=n?r:t;var i=createWrap(e,_,r,r,r,r,r,t);i.placeholder=curryRight.placeholder;return i}function debounce(e,t,n){var i,a,s,u,c,l,d=0,h=false,p=false,m=true;if(typeof e!="function"){throw new ut(o)}t=toNumber(t)||0;if(isObject(n)){h=!!n.leading;p="maxWait"in n;s=p?Wt(toNumber(n.maxWait)||0,t):s;m="trailing"in n?!!n.trailing:m}function invokeFunc(t){var n=i,o=a;i=a=r;d=t;u=e.apply(o,n);return u}function leadingEdge(e){d=e;c=Jr(timerExpired,t);return h?invokeFunc(e):u}function remainingWait(e){var r=e-l,n=e-d,i=t-r;return p?Gt(i,s-n):i}function shouldInvoke(e){var n=e-l,i=e-d;return l===r||n>=t||n<0||p&&i>=s}function timerExpired(){var e=Tn();if(shouldInvoke(e)){return trailingEdge(e)}c=Jr(timerExpired,remainingWait(e))}function trailingEdge(e){c=r;if(m&&i){return invokeFunc(e)}i=a=r;return u}function cancel(){if(c!==r){qr(c)}d=0;i=l=a=c=r}function flush(){return c===r?u:trailingEdge(Tn())}function debounced(){var e=Tn(),n=shouldInvoke(e);i=arguments;a=this;l=e;if(n){if(c===r){return leadingEdge(l)}if(p){qr(c);c=Jr(timerExpired,t);return invokeFunc(l)}}if(c===r){c=Jr(timerExpired,t)}return u}debounced.cancel=cancel;debounced.flush=flush;return debounced}var Nn=baseRest((function(e,t){return baseDelay(e,1,t)}));var xn=baseRest((function(e,t,r){return baseDelay(e,toNumber(t)||0,r)}));function flip(e){return createWrap(e,T)}function memoize(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new ut(o)}var memoized=function(){var r=arguments,n=t?t.apply(this,r):r[0],i=memoized.cache;if(i.has(n)){return i.get(n)}var a=e.apply(this,r);memoized.cache=i.set(n,a)||i;return a};memoized.cache=new(memoize.Cache||MapCache);return memoized}memoize.Cache=MapCache;function negate(e){if(typeof e!="function"){throw new ut(o)}return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function once(e){return before(2,e)}var On=Ur((function(e,t){t=t.length==1&&Rn(t[0])?arrayMap(t[0],baseUnary(getIteratee())):arrayMap(baseFlatten(t,1),baseUnary(getIteratee()));var r=t.length;return baseRest((function(n){var i=-1,a=Gt(n.length,r);while(++i<a){n[i]=t[i].call(this,n[i])}return apply(e,this,n)}))}));var Pn=baseRest((function(e,t){var n=replaceHolders(t,getHolder(Pn));return createWrap(e,k,r,t,n)}));var Cn=baseRest((function(e,t){var n=replaceHolders(t,getHolder(Cn));return createWrap(e,A,r,t,n)}));var zn=flatRest((function(e,t){return createWrap(e,I,r,r,r,t)}));function rest(e,t){if(typeof e!="function"){throw new ut(o)}t=t===r?t:toInteger(t);return baseRest(e,t)}function spread(e,t){if(typeof e!="function"){throw new ut(o)}t=t==null?0:Wt(toInteger(t),0);return baseRest((function(r){var n=r[t],i=castSlice(r,0,t);if(n){arrayPush(i,n)}return apply(e,this,i)}))}function throttle(e,t,r){var n=true,i=true;if(typeof e!="function"){throw new ut(o)}if(isObject(r)){n="leading"in r?!!r.leading:n;i="trailing"in r?!!r.trailing:i}return debounce(e,t,{leading:n,maxWait:t,trailing:i})}function unary(e){return ary(e,1)}function wrap(e,t){return Pn(castFunction(t),e)}function castArray(){if(!arguments.length){return[]}var e=arguments[0];return Rn(e)?e:[e]}function clone(e){return baseClone(e,p)}function cloneWith(e,t){t=typeof t=="function"?t:r;return baseClone(e,p,t)}function cloneDeep(e){return baseClone(e,d|p)}function cloneDeepWith(e,t){t=typeof t=="function"?t:r;return baseClone(e,d|p,t)}function conformsTo(e,t){return t==null||baseConformsTo(e,t,keys(t))}function eq(e,t){return e===t||e!==e&&t!==t}var Fn=createRelationalOperation(baseGt);var jn=createRelationalOperation((function(e,t){return e>=t}));var Ln=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&mt.call(e,"callee")&&!Mt.call(e,"callee")};var Rn=t.isArray;var Dn=vr?baseUnary(vr):baseIsArrayBuffer;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isBoolean(e){return e===true||e===false||isObjectLike(e)&&baseGetTag(e)==G}var Un=Ut||stubFalse;var qn=br?baseUnary(br):baseIsDate;function isElement(e){return isObjectLike(e)&&e.nodeType===1&&!isPlainObject(e)}function isEmpty(e){if(e==null){return true}if(isArrayLike(e)&&(Rn(e)||typeof e=="string"||typeof e.splice=="function"||Un(e)||Kn(e)||Ln(e))){return!e.length}var t=Xr(e);if(t==ee||t==se){return!e.size}if(isPrototype(e)){return!baseKeys(e).length}for(var r in e){if(mt.call(e,r)){return false}}return true}function isEqual(e,t){return baseIsEqual(e,t)}function isEqualWith(e,t,n){n=typeof n=="function"?n:r;var i=n?n(e,t):r;return i===r?baseIsEqual(e,t,r,n):!!i}function isError(e){if(!isObjectLike(e)){return false}var t=baseGetTag(e);return t==Z||t==J||typeof e.message=="string"&&typeof e.name=="string"&&!isPlainObject(e)}function isFinite(e){return typeof e=="number"&&qt(e)}function isFunction(e){if(!isObject(e)){return false}var t=baseGetTag(e);return t==Y||t==Q||t==X||t==ae}function isInteger(e){return typeof e=="number"&&e==toInteger(e)}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=F}function isObject(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function isObjectLike(e){return e!=null&&typeof e=="object"}var Vn=yr?baseUnary(yr):baseIsMap;function isMatch(e,t){return e===t||baseIsMatch(e,t,getMatchData(t))}function isMatchWith(e,t,n){n=typeof n=="function"?n:r;return baseIsMatch(e,t,getMatchData(t),n)}function isNaN(e){return isNumber(e)&&e!=+e}function isNative(e){if(Gr(e)){throw new He(a)}return baseIsNative(e)}function isNull(e){return e===null}function isNil(e){return e==null}function isNumber(e){return typeof e=="number"||isObjectLike(e)&&baseGetTag(e)==te}function isPlainObject(e){if(!isObjectLike(e)||baseGetTag(e)!=ne){return false}var t=Tt(e);if(t===null){return true}var r=mt.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&pt.call(r)==wt}var Hn=wr?baseUnary(wr):baseIsRegExp;function isSafeInteger(e){return isInteger(e)&&e>=-F&&e<=F}var Wn=_r?baseUnary(_r):baseIsSet;function isString(e){return typeof e=="string"||!Rn(e)&&isObjectLike(e)&&baseGetTag(e)==ue}function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&baseGetTag(e)==ce}var Kn=Sr?baseUnary(Sr):baseIsTypedArray;function isUndefined(e){return e===r}function isWeakMap(e){return isObjectLike(e)&&Xr(e)==fe}function isWeakSet(e){return isObjectLike(e)&&baseGetTag(e)==de}var Xn=createRelationalOperation(baseLt);var Gn=createRelationalOperation((function(e,t){return e<=t}));function toArray(e){if(!e){return[]}if(isArrayLike(e)){return isString(e)?stringToArray(e):copyArray(e)}if(Ot&&e[Ot]){return iteratorToArray(e[Ot]())}var t=Xr(e),r=t==ee?mapToArray:t==se?setToArray:values;return r(e)}function toFinite(e){if(!e){return e===0?e:0}e=toNumber(e);if(e===z||e===-z){var t=e<0?-1:1;return t*j}return e===e?e:0}function toInteger(e){var t=toFinite(e),r=t%1;return t===t?r?t-r:t:0}function toLength(e){return e?baseClamp(toInteger(e),0,D):0}function toNumber(e){if(typeof e=="number"){return e}if(isSymbol(e)){return L}if(isObject(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=isObject(t)?t+"":t}if(typeof e!="string"){return e===0?e:+e}e=baseTrim(e);var r=Je.test(e);return r||Ye.test(e)?ur(e.slice(2),r?2:8):$e.test(e)?L:+e}function toPlainObject(e){return copyObject(e,keysIn(e))}function toSafeInteger(e){return e?baseClamp(toInteger(e),-F,F):e===0?e:0}function toString(e){return e==null?"":baseToString(e)}var $n=createAssigner((function(e,t){if(isPrototype(t)||isArrayLike(t)){copyObject(t,keys(t),e);return}for(var r in t){if(mt.call(t,r)){assignValue(e,r,t[r])}}}));var Jn=createAssigner((function(e,t){copyObject(t,keysIn(t),e)}));var Zn=createAssigner((function(e,t,r,n){copyObject(t,keysIn(t),e,n)}));var Yn=createAssigner((function(e,t,r,n){copyObject(t,keys(t),e,n)}));var Qn=flatRest(baseAt);function create(e,t){var r=Cr(e);return t==null?r:baseAssign(r,t)}var ei=baseRest((function(e,t){e=at(e);var n=-1;var i=t.length;var a=i>2?t[2]:r;if(a&&isIterateeCall(t[0],t[1],a)){i=1}while(++n<i){var o=t[n];var s=keysIn(o);var u=-1;var c=s.length;while(++u<c){var l=s[u];var d=e[l];if(d===r||eq(d,dt[l])&&!mt.call(e,l)){e[l]=o[l]}}}return e}));var ti=baseRest((function(e){e.push(r,customDefaultsMerge);return apply(oi,r,e)}));function findKey(e,t){return baseFindKey(e,getIteratee(t,3),baseForOwn)}function findLastKey(e,t){return baseFindKey(e,getIteratee(t,3),baseForOwnRight)}function forIn(e,t){return e==null?e:jr(e,getIteratee(t,3),keysIn)}function forInRight(e,t){return e==null?e:Lr(e,getIteratee(t,3),keysIn)}function forOwn(e,t){return e&&baseForOwn(e,getIteratee(t,3))}function forOwnRight(e,t){return e&&baseForOwnRight(e,getIteratee(t,3))}function functions(e){return e==null?[]:baseFunctions(e,keys(e))}function functionsIn(e){return e==null?[]:baseFunctions(e,keysIn(e))}function get(e,t,n){var i=e==null?r:baseGet(e,t);return i===r?n:i}function has(e,t){return e!=null&&hasPath(e,t,baseHas)}function hasIn(e,t){return e!=null&&hasPath(e,t,baseHasIn)}var ri=createInverter((function(e,t,r){if(t!=null&&typeof t.toString!="function"){t=yt.call(t)}e[t]=r}),constant(identity));var ni=createInverter((function(e,t,r){if(t!=null&&typeof t.toString!="function"){t=yt.call(t)}if(mt.call(e,t)){e[t].push(r)}else{e[t]=[r]}}),getIteratee);var ii=baseRest(baseInvoke);function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function keysIn(e){return isArrayLike(e)?arrayLikeKeys(e,true):baseKeysIn(e)}function mapKeys(e,t){var r={};t=getIteratee(t,3);baseForOwn(e,(function(e,n,i){baseAssignValue(r,t(e,n,i),e)}));return r}function mapValues(e,t){var r={};t=getIteratee(t,3);baseForOwn(e,(function(e,n,i){baseAssignValue(r,n,t(e,n,i))}));return r}var ai=createAssigner((function(e,t,r){baseMerge(e,t,r)}));var oi=createAssigner((function(e,t,r,n){baseMerge(e,t,r,n)}));var si=flatRest((function(e,t){var r={};if(e==null){return r}var n=false;t=arrayMap(t,(function(t){t=castPath(t,e);n||(n=t.length>1);return t}));copyObject(e,getAllKeysIn(e),r);if(n){r=baseClone(r,d|h|p,customOmitClone)}var i=t.length;while(i--){baseUnset(r,t[i])}return r}));function omitBy(e,t){return pickBy(e,negate(getIteratee(t)))}var ui=flatRest((function(e,t){return e==null?{}:basePick(e,t)}));function pickBy(e,t){if(e==null){return{}}var r=arrayMap(getAllKeysIn(e),(function(e){return[e]}));t=getIteratee(t);return basePickBy(e,r,(function(e,r){return t(e,r[0])}))}function result(e,t,n){t=castPath(t,e);var i=-1,a=t.length;if(!a){a=1;e=r}while(++i<a){var o=e==null?r:e[toKey(t[i])];if(o===r){i=a;o=n}e=isFunction(o)?o.call(e):o}return e}function set(e,t,r){return e==null?e:baseSet(e,t,r)}function setWith(e,t,n,i){i=typeof i=="function"?i:r;return e==null?e:baseSet(e,t,n,i)}var ci=createToPairs(keys);var li=createToPairs(keysIn);function transform(e,t,r){var n=Rn(e),i=n||Un(e)||Kn(e);t=getIteratee(t,4);if(r==null){var a=e&&e.constructor;if(i){r=n?new a:[]}else if(isObject(e)){r=isFunction(a)?Cr(Tt(e)):{}}else{r={}}}(i?arrayEach:baseForOwn)(e,(function(e,n,i){return t(r,e,n,i)}));return r}function unset(e,t){return e==null?true:baseUnset(e,t)}function update(e,t,r){return e==null?e:baseUpdate(e,t,castFunction(r))}function updateWith(e,t,n,i){i=typeof i=="function"?i:r;return e==null?e:baseUpdate(e,t,castFunction(n),i)}function values(e){return e==null?[]:baseValues(e,keys(e))}function valuesIn(e){return e==null?[]:baseValues(e,keysIn(e))}function clamp(e,t,n){if(n===r){n=t;t=r}if(n!==r){n=toNumber(n);n=n===n?n:0}if(t!==r){t=toNumber(t);t=t===t?t:0}return baseClamp(toNumber(e),t,n)}function inRange(e,t,n){t=toFinite(t);if(n===r){n=t;t=0}else{n=toFinite(n)}e=toNumber(e);return baseInRange(e,t,n)}function random(e,t,n){if(n&&typeof n!="boolean"&&isIterateeCall(e,t,n)){t=n=r}if(n===r){if(typeof t=="boolean"){n=t;t=r}else if(typeof e=="boolean"){n=e;e=r}}if(e===r&&t===r){e=0;t=1}else{e=toFinite(e);if(t===r){t=e;e=0}else{t=toFinite(t)}}if(e>t){var i=e;e=t;t=i}if(n||e%1||t%1){var a=Zt();return Gt(e+a*(t-e+sr("1e-"+((a+"").length-1))),t)}return baseRandom(e,t)}var fi=createCompounder((function(e,t,r){t=t.toLowerCase();return e+(r?capitalize(t):t)}));function capitalize(e){return bi(toString(e).toLowerCase())}function deburr(e){e=toString(e);return e&&e.replace(et,Ar).replace(Xt,"")}function endsWith(e,t,n){e=toString(e);t=baseToString(t);var i=e.length;n=n===r?i:baseClamp(toInteger(n),0,i);var a=n;n-=t.length;return n>=0&&e.slice(n,a)==t}function escape(e){e=toString(e);return e&&Ne.test(e)?e.replace(Be,Er):e}function escapeRegExp(e){e=toString(e);return e&&Le.test(e)?e.replace(je,"\\$&"):e}var di=createCompounder((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}));var hi=createCompounder((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}));var pi=createCaseFirst("toLowerCase");function pad(e,t,r){e=toString(e);t=toInteger(t);var n=t?stringSize(e):0;if(!t||n>=t){return e}var i=(t-n)/2;return createPadding(Rt(i),r)+e+createPadding(Lt(i),r)}function padEnd(e,t,r){e=toString(e);t=toInteger(t);var n=t?stringSize(e):0;return t&&n<t?e+createPadding(t-n,r):e}function padStart(e,t,r){e=toString(e);t=toInteger(t);var n=t?stringSize(e):0;return t&&n<t?createPadding(t-n,r)+e:e}function parseInt(e,t,r){if(r||t==null){t=0}else if(t){t=+t}return Jt(toString(e).replace(Re,""),t||0)}function repeat(e,t,n){if(n?isIterateeCall(e,t,n):t===r){t=1}else{t=toInteger(t)}return baseRepeat(toString(e),t)}function replace(){var e=arguments,t=toString(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var mi=createCompounder((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));function split(e,t,n){if(n&&typeof n!="number"&&isIterateeCall(e,t,n)){t=n=r}n=n===r?D:n>>>0;if(!n){return[]}e=toString(e);if(e&&(typeof t=="string"||t!=null&&!Hn(t))){t=baseToString(t);if(!t&&hasUnicode(e)){return castSlice(stringToArray(e),0,n)}}return e.split(t,n)}var gi=createCompounder((function(e,t,r){return e+(r?" ":"")+bi(t)}));function startsWith(e,t,r){e=toString(e);r=r==null?0:baseClamp(toInteger(r),0,e.length);t=baseToString(t);return e.slice(r,r+t.length)==t}function template(e,t,n){var i=lodash.templateSettings;if(n&&isIterateeCall(e,t,n)){t=r}e=toString(e);t=Zn({},t,i,customDefaultsAssignIn);var a=Zn({},t.imports,i.imports,customDefaultsAssignIn),o=keys(a),u=baseValues(a,o);var c,l,d=0,h=t.interpolate||tt,p="__p += '";var m=ot((t.escape||tt).source+"|"+h.source+"|"+(h===Pe?Xe:tt).source+"|"+(t.evaluate||tt).source+"|$","g");var g="//# sourceURL="+(mt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Qt+"]")+"\n";e.replace(m,(function(t,r,n,i,a,o){n||(n=i);p+=e.slice(d,o).replace(rt,escapeStringChar);if(r){c=true;p+="' +\n__e("+r+") +\n'"}if(a){l=true;p+="';\n"+a+";\n__p += '"}if(n){p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"}d=o+t.length;return t}));p+="';\n";var v=mt.call(t,"variable")&&t.variable;if(!v){p="with (obj) {\n"+p+"\n}\n"}else if(We.test(v)){throw new He(s)}p=(l?p.replace(Ae,""):p).replace(Ee,"$1").replace(Ie,"$1;");p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(c?", __e = _.escape":"")+(l?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var b=yi((function(){return nt(o,g+"return "+p).apply(r,u)}));b.source=p;if(isError(b)){throw b}return b}function toLower(e){return toString(e).toLowerCase()}function toUpper(e){return toString(e).toUpperCase()}function trim(e,t,n){e=toString(e);if(e&&(n||t===r)){return baseTrim(e)}if(!e||!(t=baseToString(t))){return e}var i=stringToArray(e),a=stringToArray(t),o=charsStartIndex(i,a),s=charsEndIndex(i,a)+1;return castSlice(i,o,s).join("")}function trimEnd(e,t,n){e=toString(e);if(e&&(n||t===r)){return e.slice(0,trimmedEndIndex(e)+1)}if(!e||!(t=baseToString(t))){return e}var i=stringToArray(e),a=charsEndIndex(i,stringToArray(t))+1;return castSlice(i,0,a).join("")}function trimStart(e,t,n){e=toString(e);if(e&&(n||t===r)){return e.replace(Re,"")}if(!e||!(t=baseToString(t))){return e}var i=stringToArray(e),a=charsStartIndex(i,stringToArray(t));return castSlice(i,a).join("")}function truncate(e,t){var n=B,i=M;if(isObject(t)){var a="separator"in t?t.separator:a;n="length"in t?toInteger(t.length):n;i="omission"in t?baseToString(t.omission):i}e=toString(e);var o=e.length;if(hasUnicode(e)){var s=stringToArray(e);o=s.length}if(n>=o){return e}var u=n-stringSize(i);if(u<1){return i}var c=s?castSlice(s,0,u).join(""):e.slice(0,u);if(a===r){return c+i}if(s){u+=c.length-u}if(Hn(a)){if(e.slice(u).search(a)){var l,d=c;if(!a.global){a=ot(a.source,toString(Ge.exec(a))+"g")}a.lastIndex=0;while(l=a.exec(d)){var h=l.index}c=c.slice(0,h===r?u:h)}}else if(e.indexOf(baseToString(a),u)!=u){var p=c.lastIndexOf(a);if(p>-1){c=c.slice(0,p)}}return c+i}function unescape(e){e=toString(e);return e&&Me.test(e)?e.replace(Te,Ir):e}var vi=createCompounder((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}));var bi=createCaseFirst("toUpperCase");function words(e,t,n){e=toString(e);t=n?r:t;if(t===r){return hasUnicodeWord(e)?unicodeWords(e):asciiWords(e)}return e.match(t)||[]}var yi=baseRest((function(e,t){try{return apply(e,r,t)}catch(e){return isError(e)?e:new He(e)}}));var wi=flatRest((function(e,t){arrayEach(t,(function(t){t=toKey(t);baseAssignValue(e,t,Bn(e[t],e))}));return e}));function cond(e){var t=e==null?0:e.length,r=getIteratee();e=!t?[]:arrayMap(e,(function(e){if(typeof e[1]!="function"){throw new ut(o)}return[r(e[0]),e[1]]}));return baseRest((function(r){var n=-1;while(++n<t){var i=e[n];if(apply(i[0],this,r)){return apply(i[1],this,r)}}}))}function conforms(e){return baseConforms(baseClone(e,d))}function constant(e){return function(){return e}}function defaultTo(e,t){return e==null||e!==e?t:e}var _i=createFlow();var Si=createFlow(true);function identity(e){return e}function iteratee(e){return baseIteratee(typeof e=="function"?e:baseClone(e,d))}function matches(e){return baseMatches(baseClone(e,d))}function matchesProperty(e,t){return baseMatchesProperty(e,baseClone(t,d))}var ki=baseRest((function(e,t){return function(r){return baseInvoke(r,e,t)}}));var Ai=baseRest((function(e,t){return function(r){return baseInvoke(e,r,t)}}));function mixin(e,t,r){var n=keys(t),i=baseFunctions(t,n);if(r==null&&!(isObject(t)&&(i.length||!n.length))){r=t;t=e;e=this;i=baseFunctions(t,keys(t))}var a=!(isObject(r)&&"chain"in r)||!!r.chain,o=isFunction(e);arrayEach(i,(function(r){var n=t[r];e[r]=n;if(o){e.prototype[r]=function(){var t=this.__chain__;if(a||t){var r=e(this.__wrapped__),i=r.__actions__=copyArray(this.__actions__);i.push({func:n,args:arguments,thisArg:e});r.__chain__=t;return r}return n.apply(e,arrayPush([this.value()],arguments))}}}));return e}function noConflict(){if(fr._===this){fr._=_t}return this}function noop(){}function nthArg(e){e=toInteger(e);return baseRest((function(t){return baseNth(t,e)}))}var Ei=createOver(arrayMap);var Ii=createOver(arrayEvery);var Ti=createOver(arraySome);function property(e){return isKey(e)?baseProperty(toKey(e)):basePropertyDeep(e)}function propertyOf(e){return function(t){return e==null?r:baseGet(e,t)}}var Bi=createRange();var Mi=createRange(true);function stubArray(){return[]}function stubFalse(){return false}function stubObject(){return{}}function stubString(){return""}function stubTrue(){return true}function times(e,t){e=toInteger(e);if(e<1||e>F){return[]}var r=D,n=Gt(e,D);t=getIteratee(t);e-=D;var i=baseTimes(n,t);while(++r<e){t(r)}return i}function toPath(e){if(Rn(e)){return arrayMap(e,toKey)}return isSymbol(e)?[e]:copyArray(Yr(toString(e)))}function uniqueId(e){var t=++vt;return toString(e)+t}var Ni=createMathOperation((function(e,t){return e+t}),0);var xi=createRound("ceil");var Oi=createMathOperation((function(e,t){return e/t}),1);var Pi=createRound("floor");function max(e){return e&&e.length?baseExtremum(e,identity,baseGt):r}function maxBy(e,t){return e&&e.length?baseExtremum(e,getIteratee(t,2),baseGt):r}function mean(e){return baseMean(e,identity)}function meanBy(e,t){return baseMean(e,getIteratee(t,2))}function min(e){return e&&e.length?baseExtremum(e,identity,baseLt):r}function minBy(e,t){return e&&e.length?baseExtremum(e,getIteratee(t,2),baseLt):r}var Ci=createMathOperation((function(e,t){return e*t}),1);var zi=createRound("round");var Fi=createMathOperation((function(e,t){return e-t}),0);function sum(e){return e&&e.length?baseSum(e,identity):0}function sumBy(e,t){return e&&e.length?baseSum(e,getIteratee(t,2)):0}lodash.after=after;lodash.ary=ary;lodash.assign=$n;lodash.assignIn=Jn;lodash.assignInWith=Zn;lodash.assignWith=Yn;lodash.at=Qn;lodash.before=before;lodash.bind=Bn;lodash.bindAll=wi;lodash.bindKey=Mn;lodash.castArray=castArray;lodash.chain=chain;lodash.chunk=chunk;lodash.compact=compact;lodash.concat=concat;lodash.cond=cond;lodash.conforms=conforms;lodash.constant=constant;lodash.countBy=yn;lodash.create=create;lodash.curry=curry;lodash.curryRight=curryRight;lodash.debounce=debounce;lodash.defaults=ei;lodash.defaultsDeep=ti;lodash.defer=Nn;lodash.delay=xn;lodash.difference=Qr;lodash.differenceBy=en;lodash.differenceWith=tn;lodash.drop=drop;lodash.dropRight=dropRight;lodash.dropRightWhile=dropRightWhile;lodash.dropWhile=dropWhile;lodash.fill=fill;lodash.filter=filter;lodash.flatMap=flatMap;lodash.flatMapDeep=flatMapDeep;lodash.flatMapDepth=flatMapDepth;lodash.flatten=flatten;lodash.flattenDeep=flattenDeep;lodash.flattenDepth=flattenDepth;lodash.flip=flip;lodash.flow=_i;lodash.flowRight=Si;lodash.fromPairs=fromPairs;lodash.functions=functions;lodash.functionsIn=functionsIn;lodash.groupBy=Sn;lodash.initial=initial;lodash.intersection=rn;lodash.intersectionBy=nn;lodash.intersectionWith=an;lodash.invert=ri;lodash.invertBy=ni;lodash.invokeMap=kn;lodash.iteratee=iteratee;lodash.keyBy=An;lodash.keys=keys;lodash.keysIn=keysIn;lodash.map=map;lodash.mapKeys=mapKeys;lodash.mapValues=mapValues;lodash.matches=matches;lodash.matchesProperty=matchesProperty;lodash.memoize=memoize;lodash.merge=ai;lodash.mergeWith=oi;lodash.method=ki;lodash.methodOf=Ai;lodash.mixin=mixin;lodash.negate=negate;lodash.nthArg=nthArg;lodash.omit=si;lodash.omitBy=omitBy;lodash.once=once;lodash.orderBy=orderBy;lodash.over=Ei;lodash.overArgs=On;lodash.overEvery=Ii;lodash.overSome=Ti;lodash.partial=Pn;lodash.partialRight=Cn;lodash.partition=En;lodash.pick=ui;lodash.pickBy=pickBy;lodash.property=property;lodash.propertyOf=propertyOf;lodash.pull=on;lodash.pullAll=pullAll;lodash.pullAllBy=pullAllBy;lodash.pullAllWith=pullAllWith;lodash.pullAt=sn;lodash.range=Bi;lodash.rangeRight=Mi;lodash.rearg=zn;lodash.reject=reject;lodash.remove=remove;lodash.rest=rest;lodash.reverse=reverse;lodash.sampleSize=sampleSize;lodash.set=set;lodash.setWith=setWith;lodash.shuffle=shuffle;lodash.slice=slice;lodash.sortBy=In;lodash.sortedUniq=sortedUniq;lodash.sortedUniqBy=sortedUniqBy;lodash.split=split;lodash.spread=spread;lodash.tail=tail;lodash.take=take;lodash.takeRight=takeRight;lodash.takeRightWhile=takeRightWhile;lodash.takeWhile=takeWhile;lodash.tap=tap;lodash.throttle=throttle;lodash.thru=thru;lodash.toArray=toArray;lodash.toPairs=ci;lodash.toPairsIn=li;lodash.toPath=toPath;lodash.toPlainObject=toPlainObject;lodash.transform=transform;lodash.unary=unary;lodash.union=un;lodash.unionBy=cn;lodash.unionWith=fn;lodash.uniq=uniq;lodash.uniqBy=uniqBy;lodash.uniqWith=uniqWith;lodash.unset=unset;lodash.unzip=unzip;lodash.unzipWith=unzipWith;lodash.update=update;lodash.updateWith=updateWith;lodash.values=values;lodash.valuesIn=valuesIn;lodash.without=dn;lodash.words=words;lodash.wrap=wrap;lodash.xor=hn;lodash.xorBy=pn;lodash.xorWith=mn;lodash.zip=gn;lodash.zipObject=zipObject;lodash.zipObjectDeep=zipObjectDeep;lodash.zipWith=vn;lodash.entries=ci;lodash.entriesIn=li;lodash.extend=Jn;lodash.extendWith=Zn;mixin(lodash,lodash);lodash.add=Ni;lodash.attempt=yi;lodash.camelCase=fi;lodash.capitalize=capitalize;lodash.ceil=xi;lodash.clamp=clamp;lodash.clone=clone;lodash.cloneDeep=cloneDeep;lodash.cloneDeepWith=cloneDeepWith;lodash.cloneWith=cloneWith;lodash.conformsTo=conformsTo;lodash.deburr=deburr;lodash.defaultTo=defaultTo;lodash.divide=Oi;lodash.endsWith=endsWith;lodash.eq=eq;lodash.escape=escape;lodash.escapeRegExp=escapeRegExp;lodash.every=every;lodash.find=wn;lodash.findIndex=findIndex;lodash.findKey=findKey;lodash.findLast=_n;lodash.findLastIndex=findLastIndex;lodash.findLastKey=findLastKey;lodash.floor=Pi;lodash.forEach=forEach;lodash.forEachRight=forEachRight;lodash.forIn=forIn;lodash.forInRight=forInRight;lodash.forOwn=forOwn;lodash.forOwnRight=forOwnRight;lodash.get=get;lodash.gt=Fn;lodash.gte=jn;lodash.has=has;lodash.hasIn=hasIn;lodash.head=head;lodash.identity=identity;lodash.includes=includes;lodash.indexOf=indexOf;lodash.inRange=inRange;lodash.invoke=ii;lodash.isArguments=Ln;lodash.isArray=Rn;lodash.isArrayBuffer=Dn;lodash.isArrayLike=isArrayLike;lodash.isArrayLikeObject=isArrayLikeObject;lodash.isBoolean=isBoolean;lodash.isBuffer=Un;lodash.isDate=qn;lodash.isElement=isElement;lodash.isEmpty=isEmpty;lodash.isEqual=isEqual;lodash.isEqualWith=isEqualWith;lodash.isError=isError;lodash.isFinite=isFinite;lodash.isFunction=isFunction;lodash.isInteger=isInteger;lodash.isLength=isLength;lodash.isMap=Vn;lodash.isMatch=isMatch;lodash.isMatchWith=isMatchWith;lodash.isNaN=isNaN;lodash.isNative=isNative;lodash.isNil=isNil;lodash.isNull=isNull;lodash.isNumber=isNumber;lodash.isObject=isObject;lodash.isObjectLike=isObjectLike;lodash.isPlainObject=isPlainObject;lodash.isRegExp=Hn;lodash.isSafeInteger=isSafeInteger;lodash.isSet=Wn;lodash.isString=isString;lodash.isSymbol=isSymbol;lodash.isTypedArray=Kn;lodash.isUndefined=isUndefined;lodash.isWeakMap=isWeakMap;lodash.isWeakSet=isWeakSet;lodash.join=join;lodash.kebabCase=di;lodash.last=last;lodash.lastIndexOf=lastIndexOf;lodash.lowerCase=hi;lodash.lowerFirst=pi;lodash.lt=Xn;lodash.lte=Gn;lodash.max=max;lodash.maxBy=maxBy;lodash.mean=mean;lodash.meanBy=meanBy;lodash.min=min;lodash.minBy=minBy;lodash.stubArray=stubArray;lodash.stubFalse=stubFalse;lodash.stubObject=stubObject;lodash.stubString=stubString;lodash.stubTrue=stubTrue;lodash.multiply=Ci;lodash.nth=nth;lodash.noConflict=noConflict;lodash.noop=noop;lodash.now=Tn;lodash.pad=pad;lodash.padEnd=padEnd;lodash.padStart=padStart;lodash.parseInt=parseInt;lodash.random=random;lodash.reduce=reduce;lodash.reduceRight=reduceRight;lodash.repeat=repeat;lodash.replace=replace;lodash.result=result;lodash.round=zi;lodash.runInContext=runInContext;lodash.sample=sample;lodash.size=size;lodash.snakeCase=mi;lodash.some=some;lodash.sortedIndex=sortedIndex;lodash.sortedIndexBy=sortedIndexBy;lodash.sortedIndexOf=sortedIndexOf;lodash.sortedLastIndex=sortedLastIndex;lodash.sortedLastIndexBy=sortedLastIndexBy;lodash.sortedLastIndexOf=sortedLastIndexOf;lodash.startCase=gi;lodash.startsWith=startsWith;lodash.subtract=Fi;lodash.sum=sum;lodash.sumBy=sumBy;lodash.template=template;lodash.times=times;lodash.toFinite=toFinite;lodash.toInteger=toInteger;lodash.toLength=toLength;lodash.toLower=toLower;lodash.toNumber=toNumber;lodash.toSafeInteger=toSafeInteger;lodash.toString=toString;lodash.toUpper=toUpper;lodash.trim=trim;lodash.trimEnd=trimEnd;lodash.trimStart=trimStart;lodash.truncate=truncate;lodash.unescape=unescape;lodash.uniqueId=uniqueId;lodash.upperCase=vi;lodash.upperFirst=bi;lodash.each=forEach;lodash.eachRight=forEachRight;lodash.first=head;mixin(lodash,function(){var e={};baseForOwn(lodash,(function(t,r){if(!mt.call(lodash.prototype,r)){e[r]=t}}));return e}(),{chain:false});lodash.VERSION=n;arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){lodash[e].placeholder=lodash}));arrayEach(["drop","take"],(function(e,t){LazyWrapper.prototype[e]=function(n){n=n===r?1:Wt(toInteger(n),0);var i=this.__filtered__&&!t?new LazyWrapper(this):this.clone();if(i.__filtered__){i.__takeCount__=Gt(n,i.__takeCount__)}else{i.__views__.push({size:Gt(n,D),type:e+(i.__dir__<0?"Right":"")})}return i};LazyWrapper.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}));arrayEach(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=r==O||r==C;LazyWrapper.prototype[e]=function(e){var t=this.clone();t.__iteratees__.push({iteratee:getIteratee(e,3),type:r});t.__filtered__=t.__filtered__||n;return t}}));arrayEach(["head","last"],(function(e,t){var r="take"+(t?"Right":"");LazyWrapper.prototype[e]=function(){return this[r](1).value()[0]}}));arrayEach(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");LazyWrapper.prototype[e]=function(){return this.__filtered__?new LazyWrapper(this):this[r](1)}}));LazyWrapper.prototype.compact=function(){return this.filter(identity)};LazyWrapper.prototype.find=function(e){return this.filter(e).head()};LazyWrapper.prototype.findLast=function(e){return this.reverse().find(e)};LazyWrapper.prototype.invokeMap=baseRest((function(e,t){if(typeof e=="function"){return new LazyWrapper(this)}return this.map((function(r){return baseInvoke(r,e,t)}))}));LazyWrapper.prototype.reject=function(e){return this.filter(negate(getIteratee(e)))};LazyWrapper.prototype.slice=function(e,t){e=toInteger(e);var n=this;if(n.__filtered__&&(e>0||t<0)){return new LazyWrapper(n)}if(e<0){n=n.takeRight(-e)}else if(e){n=n.drop(e)}if(t!==r){t=toInteger(t);n=t<0?n.dropRight(-t):n.take(t-e)}return n};LazyWrapper.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};LazyWrapper.prototype.toArray=function(){return this.take(D)};baseForOwn(LazyWrapper.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=lodash[i?"take"+(t=="last"?"Right":""):t],o=i||/^find/.test(t);if(!a){return}lodash.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,u=t instanceof LazyWrapper,c=s[0],l=u||Rn(t);var interceptor=function(e){var t=a.apply(lodash,arrayPush([e],s));return i&&d?t[0]:t};if(l&&n&&typeof c=="function"&&c.length!=1){u=l=false}var d=this.__chain__,h=!!this.__actions__.length,p=o&&!d,m=u&&!h;if(!o&&l){t=m?t:new LazyWrapper(this);var g=e.apply(t,s);g.__actions__.push({func:thru,args:[interceptor],thisArg:r});return new LodashWrapper(g,d)}if(p&&m){return e.apply(this,s)}g=this.thru(interceptor);return p?i?g.value()[0]:g.value():g}}));arrayEach(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ct[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);lodash.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(Rn(i)?i:[],e)}return this[r]((function(r){return t.apply(Rn(r)?r:[],e)}))}}));baseForOwn(LazyWrapper.prototype,(function(e,t){var r=lodash[t];if(r){var n=r.name+"";if(!mt.call(mr,n)){mr[n]=[]}mr[n].push({name:t,func:r})}}));mr[createHybrid(r,b).name]=[{name:"wrapper",func:r}];LazyWrapper.prototype.clone=lazyClone;LazyWrapper.prototype.reverse=lazyReverse;LazyWrapper.prototype.value=lazyValue;lodash.prototype.at=bn;lodash.prototype.chain=wrapperChain;lodash.prototype.commit=wrapperCommit;lodash.prototype.next=wrapperNext;lodash.prototype.plant=wrapperPlant;lodash.prototype.reverse=wrapperReverse;lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=wrapperValue;lodash.prototype.first=lodash.prototype.head;if(Ot){lodash.prototype[Ot]=wrapperToIterator}return lodash};var Br=Tr();if(typeof define=="function"&&typeof define.amd=="object"&&define.amd){fr._=Br;define((function(){return Br}))}else if(hr){(hr.exports=Br)._=Br;dr._=Br}else{fr._=Br}}).call(this)},4795:e=>{e.exports=assert;function assert(e,t){if(!e)throw new Error(t||"Assertion failed")}assert.equal=function assertEqual(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},3756:(e,t)=>{"use strict";var r=t;function toArray(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e!=="string"){for(var n=0;n<e.length;n++)r[n]=e[n]|0;return r}if(t==="hex"){e=e.replace(/[^a-z0-9]+/gi,"");if(e.length%2!==0)e="0"+e;for(var n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else{for(var n=0;n<e.length;n++){var i=e.charCodeAt(n);var a=i>>8;var o=i&255;if(a)r.push(a,o);else r.push(o)}}return r}r.toArray=toArray;function zero2(e){if(e.length===1)return"0"+e;else return e}r.zero2=zero2;function toHex(e){var t="";for(var r=0;r<e.length;r++)t+=zero2(e[r].toString(16));return t}r.toHex=toHex;r.encode=function encode(e,t){if(t==="hex")return toHex(e);else return e}},5150:e=>{var t=1e3;var r=t*60;var n=r*60;var i=n*24;var a=i*7;var o=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s){return}var u=parseFloat(s[1]);var c=(s[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return u*o;case"weeks":case"week":case"w":return u*a;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var a=Math.abs(e);if(a>=i){return Math.round(e/i)+"d"}if(a>=n){return Math.round(e/n)+"h"}if(a>=r){return Math.round(e/r)+"m"}if(a>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var a=Math.abs(e);if(a>=i){return plural(e,a,i,"day")}if(a>=n){return plural(e,a,n,"hour")}if(a>=r){return plural(e,a,r,"minute")}if(a>=t){return plural(e,a,t,"second")}return e+" ms"}function plural(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}},7401:(e,t,r)=>{var n=r(6113);var i=r(6596);var a=r(3607);var o=r(7805);function nativePBKDF2(e,t,r,s,u,c){i(r,s);e=o(e,a,"Password");t=o(t,a,"Salt");if(typeof u==="function"){c=u;u="sha1"}if(typeof c!=="function")throw new Error("No callback provided to pbkdf2");return n.pbkdf2(e,t,r,s,u,c)}function nativePBKDF2Sync(e,t,r,s,u){i(r,s);e=o(e,a,"Password");t=o(t,a,"Salt");u=u||"sha1";return n.pbkdf2Sync(e,t,r,s,u)}if(!n.pbkdf2Sync||n.pbkdf2Sync.toString().indexOf("keylen, digest")===-1){t.pbkdf2Sync=r(2786);t.pbkdf2=r(5098)}else{t.pbkdf2Sync=nativePBKDF2Sync;t.pbkdf2=nativePBKDF2}},5098:(e,t,r)=>{var n=r(6621).Buffer;var i=r(6596);var a=r(3607);var o=r(2786);var s=r(7805);var u;var c=global.crypto&&global.crypto.subtle;var l={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"};var d=[];function checkNative(e){if(global.process&&!global.process.browser){return Promise.resolve(false)}if(!c||!c.importKey||!c.deriveBits){return Promise.resolve(false)}if(d[e]!==undefined){return d[e]}u=u||n.alloc(8);var t=browserPbkdf2(u,u,10,128,e).then((function(){return true})).catch((function(){return false}));d[e]=t;return t}var h;function getNextTick(){if(h){return h}if(global.process&&global.process.nextTick){h=global.process.nextTick}else if(global.queueMicrotask){h=global.queueMicrotask}else if(global.setImmediate){h=global.setImmediate}else{h=global.setTimeout}return h}function browserPbkdf2(e,t,r,i,a){return c.importKey("raw",e,{name:"PBKDF2"},false,["deriveBits"]).then((function(e){return c.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:a}},e,i<<3)})).then((function(e){return n.from(e)}))}function resolvePromise(e,t){e.then((function(e){getNextTick()((function(){t(null,e)}))}),(function(e){getNextTick()((function(){t(e)}))}))}e.exports=function(e,t,r,n,u,c){if(typeof u==="function"){c=u;u=undefined}u=u||"sha1";var d=l[u.toLowerCase()];if(!d||typeof global.Promise!=="function"){getNextTick()((function(){var i;try{i=o(e,t,r,n,u)}catch(e){return c(e)}c(null,i)}));return}i(r,n);e=s(e,a,"Password");t=s(t,a,"Salt");if(typeof c!=="function")throw new Error("No callback provided to pbkdf2");resolvePromise(checkNative(d).then((function(i){if(i)return browserPbkdf2(e,t,r,n,d);return o(e,t,r,n,u)})),c)}},3607:e=>{var t;if(global.process&&global.process.browser){t="utf-8"}else if(global.process&&global.process.version){var r=parseInt(process.version.split(".")[0].slice(1),10);t=r>=6?"utf-8":"binary"}else{t="utf-8"}e.exports=t},6596:e=>{var t=Math.pow(2,30)-1;e.exports=function(e,r){if(typeof e!=="number"){throw new TypeError("Iterations not a number")}if(e<0){throw new TypeError("Bad iterations")}if(typeof r!=="number"){throw new TypeError("Key length not a number")}if(r<0||r>t||r!==r){throw new TypeError("Bad key length")}}},2786:(e,t,r)=>{var n={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};var i=r(9922);var a=r(6621).Buffer;var o=r(6596);var s=r(3607);var u=r(7805);function pbkdf2(e,t,r,c,l){o(r,c);e=u(e,s,"Password");t=u(t,s,"Salt");l=l||"sha1";var d=a.allocUnsafe(c);var h=a.allocUnsafe(t.length+4);t.copy(h,0,0,t.length);var p=0;var m=n[l];var g=Math.ceil(c/m);for(var v=1;v<=g;v++){h.writeUInt32BE(v,t.length);var b=i(l,e).update(h).digest();var y=b;for(var w=1;w<r;w++){y=i(l,e).update(y).digest();for(var _=0;_<m;_++)b[_]^=y[_]}b.copy(d,p);p+=m}return d}e.exports=pbkdf2},7805:(e,t,r)=>{var n=r(6621).Buffer;e.exports=function(e,t,r){if(n.isBuffer(e)){return e}else if(typeof e==="string"){return n.from(e,t)}else if(ArrayBuffer.isView(e)){return n.from(e.buffer)}else{throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}}},8922:(e,t,r)=>{e.exports=r(6113).randomBytes},9943:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transactionID=t.sha512Half=t.binaryToJSON=t.signingClaimData=t.signingData=t.multiSigningData=t.readJSON=t.serializeObject=t.makeParser=t.BytesList=t.BinarySerializer=t.BinaryParser=void 0;var n=r(4594);var i=r(2626);Object.defineProperty(t,"BinaryParser",{enumerable:true,get:function(){return i.BinaryParser}});var a=r(6788);var o=r(7731);Object.defineProperty(t,"BinarySerializer",{enumerable:true,get:function(){return o.BinarySerializer}});Object.defineProperty(t,"BytesList",{enumerable:true,get:function(){return o.BytesList}});var s=r(6675);Object.defineProperty(t,"sha512Half",{enumerable:true,get:function(){return s.sha512Half}});Object.defineProperty(t,"transactionID",{enumerable:true,get:function(){return s.transactionID}});var u=r(4922);var makeParser=function(e){return new i.BinaryParser(e)};t.makeParser=makeParser;var readJSON=function(e){return e.readType(n.coreTypes.STObject).toJSON()};t.readJSON=readJSON;var binaryToJSON=function(e){return readJSON(makeParser(e))};t.binaryToJSON=binaryToJSON;function serializeObject(e,t){if(t===void 0){t={}}var r=t.prefix,i=t.suffix,a=t.signingFieldsOnly,s=a===void 0?false:a;var u=new o.BytesList;if(r){u.put(r)}var c=s?function(e){return e.isSigningField}:undefined;n.coreTypes.STObject.from(e,c).toBytesSink(u);if(i){u.put(i)}return u.toBytes()}t.serializeObject=serializeObject;function signingData(e,t){if(t===void 0){t=a.HashPrefix.transactionSig}return serializeObject(e,{prefix:t,signingFieldsOnly:true})}t.signingData=signingData;function signingClaimData(e){var t=u(String(e.amount));var r=a.HashPrefix.paymentChannelClaim;var i=n.coreTypes.Hash256.from(e.channel).toBytes();var s=n.coreTypes.UInt64.from(t).toBytes();var c=new o.BytesList;c.put(r);c.put(i);c.put(s);return c.toBytes()}t.signingClaimData=signingClaimData;function multiSigningData(e,t){var r=a.HashPrefix.transactionMultiSig;var i=n.coreTypes.AccountID.from(t).toBytes();return serializeObject(e,{prefix:r,suffix:i,signingFieldsOnly:true})}t.multiSigningData=multiSigningData},1908:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.types=t.ShaMap=t.HashPrefix=t.quality=t.TransactionResult=t.Type=t.LedgerEntryType=t.TransactionType=t.Field=t.ledgerHashes=t.binary=t.hashes=void 0;var n=r(1144);Object.defineProperty(t,"Field",{enumerable:true,get:function(){return n.Field}});Object.defineProperty(t,"TransactionType",{enumerable:true,get:function(){return n.TransactionType}});Object.defineProperty(t,"LedgerEntryType",{enumerable:true,get:function(){return n.LedgerEntryType}});Object.defineProperty(t,"Type",{enumerable:true,get:function(){return n.Type}});Object.defineProperty(t,"TransactionResult",{enumerable:true,get:function(){return n.TransactionResult}});var i=r(4594);t.types=i;var a=r(9943);t.binary=a;var o=r(2431);Object.defineProperty(t,"ShaMap",{enumerable:true,get:function(){return o.ShaMap}});var s=r(6914);t.ledgerHashes=s;var u=r(6675);t.hashes=u;var c=r(5055);Object.defineProperty(t,"quality",{enumerable:true,get:function(){return c.quality}});var l=r(6788);Object.defineProperty(t,"HashPrefix",{enumerable:true,get:function(){return l.HashPrefix}})},1144:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TransactionType=t.TransactionResult=t.LedgerEntryType=t.Type=t.Field=t.Bytes=t.TRANSACTION_TYPES=void 0;var n=r(8652);var i=r(1032);var a=r(3365);t.TRANSACTION_TYPES=Object.entries(n.TRANSACTION_TYPES).filter((function(e){var t=e[0],r=e[1];return r>=0})).map((function(e){var t=e[0],r=e[1];return t}));var o=2;var s=2;var u=2;var c=1;function fieldHeader(e,t){var r=[];if(e<16){if(t<16){r.push(e<<4|t)}else{r.push(e<<4,t)}}else if(t<16){r.push(t,e)}else{r.push(0,e,t)}return a.Buffer.from(r)}var l=function(){function Bytes(e,t,r){this.name=e;this.ordinal=t;this.ordinalWidth=r;this.bytes=a.Buffer.alloc(r);for(var n=0;n<r;n++){this.bytes[r-n-1]=t>>>n*8&255}}Bytes.prototype.toJSON=function(){return this.name};Bytes.prototype.toBytesSink=function(e){e.put(this.bytes)};Bytes.prototype.toBytes=function(){return this.bytes};return Bytes}();t.Bytes=l;var d=function(){function BytesLookup(e,t){var r=this;this.ordinalWidth=t;Object.entries(e).forEach((function(e){var n=e[0],i=e[1];r[n]=new l(n,i,t);r[i.toString()]=r[n]}))}BytesLookup.prototype.from=function(e){return e instanceof l?e:this[e]};BytesLookup.prototype.fromParser=function(e){return this.from(e.readUIntN(this.ordinalWidth).toString())};return BytesLookup}();function buildField(e){var t=e[0],r=e[1];var a=n.TYPES[r.type];var s=fieldHeader(a,r.nth);return{name:t,nth:r.nth,isVariableLengthEncoded:r.isVLEncoded,isSerialized:r.isSerialized,isSigningField:r.isSigningField,ordinal:a<<16|r.nth,type:new l(r.type,a,o),header:s,associatedType:i.SerializedType}}var h=function(){function FieldLookup(e){var t=this;e.forEach((function(e){var r=e[0],n=e[1];t[r]=buildField([r,n]);t[t[r].ordinal.toString()]=t[r]}))}FieldLookup.prototype.fromString=function(e){return this[e]};return FieldLookup}();var p=new d(n.TYPES,o);t.Type=p;var m=new d(n.LEDGER_ENTRY_TYPES,s);t.LedgerEntryType=m;var g=new d(n.TRANSACTION_TYPES,u);t.TransactionType=g;var v=new d(n.TRANSACTION_RESULTS,c);t.TransactionResult=v;var b=new h(n.FIELDS);t.Field=b},6788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.HashPrefix=void 0;var n=r(3365);function bytes(e){var t=n.Buffer.alloc(4);t.writeUInt32BE(e,0);return t}var i={transactionID:bytes(1415073280),transaction:bytes(1397638144),accountStateEntry:bytes(1296846336),innerNode:bytes(1296649728),ledgerHeader:bytes(1280791040),transactionSig:bytes(1398036480),transactionMultiSig:bytes(1397576704),validation:bytes(1447119872),proposal:bytes(1347571712),paymentChannelClaim:bytes(1129073920)};t.HashPrefix=i},6675:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.transactionID=t.sha512Half=t.Sha512Half=void 0;var i=r(6788);var a=r(3614);var o=r(6979);var s=r(7731);var u=r(3365);var c=function(e){n(Sha512Half,e);function Sha512Half(){var t=e!==null&&e.apply(this,arguments)||this;t.hash=a("sha512");return t}Sha512Half.put=function(e){return(new Sha512Half).put(e)};Sha512Half.prototype.put=function(e){this.hash.update(e);return this};Sha512Half.prototype.finish256=function(){return u.Buffer.from(this.hash.digest().slice(0,32))};Sha512Half.prototype.finish=function(){return new o.Hash256(this.finish256())};return Sha512Half}(s.BytesList);t.Sha512Half=c;function sha512Half(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r=new c;e.forEach((function(e){return r.put(e)}));return r.finish256()}t.sha512Half=sha512Half;function transactionID(e){return new o.Hash256(sha512Half(i.HashPrefix.transactionID,e))}t.transactionID=transactionID},8169:(e,t,r)=>{"use strict";var n=r(9491);var i=r(1908);var a=r(6914);var o=r(1144);var s=i.binary.signingData,u=i.binary.signingClaimData,c=i.binary.multiSigningData,l=i.binary.binaryToJSON,d=i.binary.serializeObject;function decode(e){n.ok(typeof e==="string","binary must be a hex string");return l(e)}function encode(e){n.ok(typeof e==="object");return d(e).toString("hex").toUpperCase()}function encodeForSigning(e){n.ok(typeof e==="object");return s(e).toString("hex").toUpperCase()}function encodeForSigningClaim(e){n.ok(typeof e==="object");return u(e).toString("hex").toUpperCase()}function encodeForMultisigning(e,t){n.ok(typeof e==="object");n.equal(e["SigningPubKey"],"");return c(e,t).toString("hex").toUpperCase()}function encodeQuality(e){n.ok(typeof e==="string");return i.quality.encode(e).toString("hex").toUpperCase()}function decodeQuality(e){n.ok(typeof e==="string");return i.quality.decode(e).toString()}e.exports={decode:decode,encode:encode,encodeForSigning:encodeForSigning,encodeForSigningClaim:encodeForSigningClaim,encodeForMultisigning:encodeForMultisigning,encodeQuality:encodeQuality,decodeQuality:decodeQuality,decodeLedgerData:a.decodeLedgerData,TRANSACTION_TYPES:o.TRANSACTION_TYPES}},6914:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decodeLedgerData=t.ledgerHash=t.transactionTreeHash=t.accountStateHash=void 0;var n=r(9491);var i=r(2431);var a=r(6788);var o=r(6675);var s=r(9943);var u=r(6979);var c=r(922);var l=r(4681);var d=r(2611);var h=r(7546);var p=r(2626);var m=r(4922);function computeHash(e,t){var r=new i.ShaMap;t.forEach((function(t){return r.addItem.apply(r,e(t))}));return r.hash()}function transactionItemizer(e){n.ok(e.hash);var t=u.Hash256.from(e.hash);var r={hashPrefix:function(){return a.HashPrefix.transaction},toBytesSink:function(t){var r=new s.BinarySerializer(t);r.writeLengthEncoded(c.STObject.from(e));r.writeLengthEncoded(c.STObject.from(e.metaData))}};return[t,r,undefined]}function entryItemizer(e){var t=u.Hash256.from(e.index);var r=(0,s.serializeObject)(e);var n={hashPrefix:function(){return a.HashPrefix.accountStateEntry},toBytesSink:function(e){e.put(r)}};return[t,n,undefined]}function transactionTreeHash(e){var t=transactionItemizer;return computeHash(t,e)}t.transactionTreeHash=transactionTreeHash;function accountStateHash(e){var t=entryItemizer;return computeHash(t,e)}t.accountStateHash=accountStateHash;function ledgerHash(e){var t=new o.Sha512Half;t.put(a.HashPrefix.ledgerHeader);n.ok(e.parent_close_time!==undefined);n.ok(e.close_flags!==undefined);d.UInt32.from(e.ledger_index).toBytesSink(t);l.UInt64.from(m(String(e.total_coins))).toBytesSink(t);u.Hash256.from(e.parent_hash).toBytesSink(t);u.Hash256.from(e.transaction_hash).toBytesSink(t);u.Hash256.from(e.account_hash).toBytesSink(t);d.UInt32.from(e.parent_close_time).toBytesSink(t);d.UInt32.from(e.close_time).toBytesSink(t);h.UInt8.from(e.close_time_resolution).toBytesSink(t);h.UInt8.from(e.close_flags).toBytesSink(t);return t.finish()}t.ledgerHash=ledgerHash;function decodeLedgerData(e){n.ok(typeof e==="string","binary must be a hex string");var t=new p.BinaryParser(e);return{ledger_index:t.readUInt32(),total_coins:t.readType(l.UInt64).valueOf().toString(),parent_hash:t.readType(u.Hash256).toHex(),transaction_hash:t.readType(u.Hash256).toHex(),account_hash:t.readType(u.Hash256).toHex(),parent_close_time:t.readUInt32(),close_time:t.readUInt32(),close_time_resolution:t.readUInt8(),close_flags:t.readUInt8()}}t.decodeLedgerData=decodeLedgerData},5055:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.quality=void 0;var n=r(4594);var i=r(7569);var a=r(4922);var o=r(3365);var s=function(){function quality(){}quality.encode=function(e){var t=new i.Decimal(e);var r=t.e-15;var o=t.times("1e".concat(-r)).abs().toString();var s=n.coreTypes.UInt64.from(a(o)).toBytes();s[0]=r+100;return s};quality.decode=function(e){var t=o.Buffer.from(e,"hex").slice(-8);var r=t[0]-100;var n=new i.Decimal("0x".concat(t.slice(1).toString("hex")));return n.times("1e".concat(r))};return quality}();t.quality=s},2626:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BinaryParser=void 0;var n=r(9491);var i=r(1144);var a=r(3365);var o=function(){function BinaryParser(e){this.bytes=a.Buffer.from(e,"hex")}BinaryParser.prototype.peek=function(){n.ok(this.bytes.byteLength!==0);return this.bytes[0]};BinaryParser.prototype.skip=function(e){n.ok(e<=this.bytes.byteLength);this.bytes=this.bytes.slice(e)};BinaryParser.prototype.read=function(e){n.ok(e<=this.bytes.byteLength);var t=this.bytes.slice(0,e);this.skip(e);return t};BinaryParser.prototype.readUIntN=function(e){n.ok(0<e&&e<=4,"invalid n");return this.read(e).reduce((function(e,t){return e<<8|t}))>>>0};BinaryParser.prototype.readUInt8=function(){return this.readUIntN(1)};BinaryParser.prototype.readUInt16=function(){return this.readUIntN(2)};BinaryParser.prototype.readUInt32=function(){return this.readUIntN(4)};BinaryParser.prototype.size=function(){return this.bytes.byteLength};BinaryParser.prototype.end=function(e){var t=this.bytes.byteLength;return t===0||e!==undefined&&t<=e};BinaryParser.prototype.readVariableLength=function(){return this.read(this.readVariableLengthLength())};BinaryParser.prototype.readVariableLengthLength=function(){var e=this.readUInt8();if(e<=192){return e}else if(e<=240){var t=this.readUInt8();return 193+(e-193)*256+t}else if(e<=254){var t=this.readUInt8();var r=this.readUInt8();return 12481+(e-241)*65536+t*256+r}throw new Error("Invalid variable length indicator")};BinaryParser.prototype.readFieldOrdinal=function(){var e=this.readUInt8();var t=e&15;e>>=4;if(e===0){e=this.readUInt8();if(e===0||e<16){throw new Error("Cannot read FieldOrdinal, type_code out of range")}}if(t===0){t=this.readUInt8();if(t===0||t<16){throw new Error("Cannot read FieldOrdinal, field_code out of range")}}return e<<16|t};BinaryParser.prototype.readField=function(){return i.Field.fromString(this.readFieldOrdinal().toString())};BinaryParser.prototype.readType=function(e){return e.fromParser(this)};BinaryParser.prototype.typeForField=function(e){return e.associatedType};BinaryParser.prototype.readFieldValue=function(e){var t=this.typeForField(e);if(!t){throw new Error("unsupported: (".concat(e.name,", ").concat(e.type.name,")"))}var r=e.isVariableLengthEncoded?this.readVariableLengthLength():undefined;var n=t.fromParser(this,r);if(n===undefined){throw new Error("fromParser for (".concat(e.name,", ").concat(e.type.name,") -> undefined "))}return n};BinaryParser.prototype.readFieldAndValue=function(){var e=this.readField();return[e,this.readFieldValue(e)]};return BinaryParser}();t.BinaryParser=o},7731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BinarySerializer=t.BytesList=void 0;var n=r(9491);var i=r(3365);var a=function(){function BytesList(){this.bytesArray=[]}BytesList.prototype.getLength=function(){return i.Buffer.concat(this.bytesArray).byteLength};BytesList.prototype.put=function(e){var t=i.Buffer.from(e);this.bytesArray.push(t);return this};BytesList.prototype.toBytesSink=function(e){e.put(this.toBytes())};BytesList.prototype.toBytes=function(){return i.Buffer.concat(this.bytesArray)};BytesList.prototype.toHex=function(){return this.toBytes().toString("hex").toUpperCase()};return BytesList}();t.BytesList=a;var o=function(){function BinarySerializer(e){this.sink=new a;this.sink=e}BinarySerializer.prototype.write=function(e){e.toBytesSink(this.sink)};BinarySerializer.prototype.put=function(e){this.sink.put(e)};BinarySerializer.prototype.writeType=function(e,t){this.write(e.from(t))};BinarySerializer.prototype.writeBytesList=function(e){e.toBytesSink(this.sink)};BinarySerializer.prototype.encodeVariableLength=function(e){var t=i.Buffer.alloc(3);if(e<=192){t[0]=e;return t.slice(0,1)}else if(e<=12480){e-=193;t[0]=193+(e>>>8);t[1]=e&255;return t.slice(0,2)}else if(e<=918744){e-=12481;t[0]=241+(e>>>16);t[1]=e>>8&255;t[2]=e&255;return t.slice(0,3)}throw new Error("Overflow error")};BinarySerializer.prototype.writeFieldAndValue=function(e,t,r){if(r===void 0){r=false}var i=e.associatedType.from(t);n.ok(i.toBytesSink!==undefined);n.ok(e.name!==undefined);this.sink.put(e.header);if(e.isVariableLengthEncoded){this.writeLengthEncoded(i,r)}else{i.toBytesSink(this.sink)}};BinarySerializer.prototype.writeLengthEncoded=function(e,t){if(t===void 0){t=false}var r=new a;if(!t){e.toBytesSink(r)}this.put(this.encodeVariableLength(r.getLength()));this.writeBytesList(r)};return BinarySerializer}();t.BinarySerializer=o},2431:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.ShaMapLeaf=t.ShaMapNode=t.ShaMap=void 0;var i=r(9491);var a=r(4594);var o=r(6788);var s=r(6675);var u=r(3365);var c=function(){function ShaMapNode(){}return ShaMapNode}();t.ShaMapNode=c;var l=function(e){n(ShaMapLeaf,e);function ShaMapLeaf(t,r){var n=e.call(this)||this;n.index=t;n.item=r;return n}ShaMapLeaf.prototype.isLeaf=function(){return true};ShaMapLeaf.prototype.isInner=function(){return false};ShaMapLeaf.prototype.hashPrefix=function(){return this.item===undefined?u.Buffer.alloc(0):this.item.hashPrefix()};ShaMapLeaf.prototype.hash=function(){var e=s.Sha512Half.put(this.hashPrefix());this.toBytesSink(e);return e.finish()};ShaMapLeaf.prototype.toBytesSink=function(e){if(this.item!==undefined){this.item.toBytesSink(e)}this.index.toBytesSink(e)};return ShaMapLeaf}(c);t.ShaMapLeaf=l;var d=function(e){n(ShaMapInner,e);function ShaMapInner(t){if(t===void 0){t=0}var r=e.call(this)||this;r.depth=t;r.slotBits=0;r.branches=Array(16);return r}ShaMapInner.prototype.isInner=function(){return true};ShaMapInner.prototype.isLeaf=function(){return false};ShaMapInner.prototype.hashPrefix=function(){return o.HashPrefix.innerNode};ShaMapInner.prototype.setBranch=function(e,t){this.slotBits=this.slotBits|1<<e;this.branches[e]=t};ShaMapInner.prototype.empty=function(){return this.slotBits===0};ShaMapInner.prototype.hash=function(){if(this.empty()){return a.coreTypes.Hash256.ZERO_256}var e=s.Sha512Half.put(this.hashPrefix());this.toBytesSink(e);return e.finish()};ShaMapInner.prototype.toBytesSink=function(e){for(var t=0;t<this.branches.length;t++){var r=this.branches[t];var n=r?r.hash():a.coreTypes.Hash256.ZERO_256;n.toBytesSink(e)}};ShaMapInner.prototype.addItem=function(e,t,r){i.strict.ok(e!==undefined);var n=e.nibblet(this.depth);var a=this.branches[n];if(a===undefined){this.setBranch(n,r||new l(e,t))}else if(a instanceof l){var o=new ShaMapInner(this.depth+1);o.addItem(a.index,undefined,a);o.addItem(e,t,r);this.setBranch(n,o)}else if(a instanceof ShaMapInner){a.addItem(e,t,r)}else{throw new Error("invalid ShaMap.addItem call")}};return ShaMapInner}(c);var h=function(e){n(ShaMap,e);function ShaMap(){return e!==null&&e.apply(this,arguments)||this}return ShaMap}(d);t.ShaMap=h},749:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.AccountID=void 0;var i=r(7675);var a=r(2722);var o=r(3365);var s=/^[A-F0-9]{40}$/;var u=function(e){n(AccountID,e);function AccountID(t){return e.call(this,t!==null&&t!==void 0?t:AccountID.defaultAccountID.bytes)||this}AccountID.from=function(e){if(e instanceof AccountID){return e}if(typeof e==="string"){if(e===""){return new AccountID}return s.test(e)?new AccountID(o.Buffer.from(e,"hex")):this.fromBase58(e)}throw new Error("Cannot construct AccountID from value given")};AccountID.fromBase58=function(e){if((0,i.isValidXAddress)(e)){var t=(0,i.xAddressToClassicAddress)(e);if(t.tag!==false)throw new Error("Only allowed to have tag on Account or Destination");e=t.classicAddress}return new AccountID(o.Buffer.from((0,i.decodeAccountID)(e)))};AccountID.prototype.toJSON=function(){return this.toBase58()};AccountID.prototype.toBase58=function(){return(0,i.encodeAccountID)(this.bytes)};AccountID.defaultAccountID=new AccountID(o.Buffer.alloc(20));return AccountID}(a.Hash160);t.AccountID=u},3994:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.Amount=void 0;var i=r(7569);var a=r(2626);var o=r(749);var s=r(384);var u=r(1032);var c=r(4922);var l=r(3365);var d=-96;var h=80;var p=16;var m=new i.Decimal("1e17");var g=new i.Decimal("1e-6");var v=c(4294967295);i.Decimal.config({toExpPos:h+p,toExpNeg:d-p});function isAmountObject(e){var t=Object.keys(e).sort();return t.length===3&&t[0]==="currency"&&t[1]==="issuer"&&t[2]==="value"}var b=function(e){n(Amount,e);function Amount(t){return e.call(this,t!==null&&t!==void 0?t:Amount.defaultAmount.bytes)||this}Amount.from=function(e){if(e instanceof Amount){return e}var t=l.Buffer.alloc(8);if(typeof e==="string"){Amount.assertXrpIsValid(e);var r=c(e);var n=[l.Buffer.alloc(4),l.Buffer.alloc(4)];n[0].writeUInt32BE(Number(r.shiftRight(32)),0);n[1].writeUInt32BE(Number(r.and(v)),0);t=l.Buffer.concat(n);t[0]|=64;return new Amount(t)}if(isAmountObject(e)){var r=new i.Decimal(e.value);Amount.assertIouIsValid(r);if(r.isZero()){t[0]|=128}else{var a=r.times("1e".concat(-(r.e-15))).abs().toString();var u=c(a);var n=[l.Buffer.alloc(4),l.Buffer.alloc(4)];n[0].writeUInt32BE(Number(u.shiftRight(32)),0);n[1].writeUInt32BE(Number(u.and(v)),0);t=l.Buffer.concat(n);t[0]|=128;if(r.gt(new i.Decimal(0))){t[0]|=64}var d=r.e-15;var h=97+d;t[0]|=h>>>2;t[1]|=(h&3)<<6}var p=s.Currency.from(e.currency).toBytes();var m=o.AccountID.from(e.issuer).toBytes();return new Amount(l.Buffer.concat([t,p,m]))}throw new Error("Invalid type to construct an Amount")};Amount.fromParser=function(e){var t=e.peek()&128;var r=t?48:8;return new Amount(e.read(r))};Amount.prototype.toJSON=function(){if(this.isNative()){var e=this.bytes;var t=e[0]&64;var r=t?"":"-";e[0]&=63;var n=c(e.slice(0,4).readUInt32BE(0));var u=c(e.slice(4).readUInt32BE(0));var l=n.shiftLeft(32).or(u);return"".concat(r).concat(l.toString())}else{var d=new a.BinaryParser(this.toString());var h=d.read(8);var p=s.Currency.fromParser(d);var m=o.AccountID.fromParser(d);var g=h[0];var v=h[1];var t=g&64;var r=t?"":"-";var b=((g&63)<<2)+((v&255)>>6)-97;h[0]=0;h[1]&=63;var y=new i.Decimal("".concat(r,"0x").concat(h.toString("hex"))).times("1e".concat(b));Amount.assertIouIsValid(y);return{value:y.toString(),currency:p.toJSON(),issuer:m.toJSON()}}};Amount.assertXrpIsValid=function(e){if(e.indexOf(".")!==-1){throw new Error("".concat(e.toString()," is an illegal amount"))}var t=new i.Decimal(e);if(!t.isZero()){if(t.lt(g)||t.gt(m)){throw new Error("".concat(e.toString()," is an illegal amount"))}}};Amount.assertIouIsValid=function(e){if(!e.isZero()){var t=e.precision();var r=e.e-15;if(t>p||r>h||r<d){throw new Error("Decimal precision out of range")}this.verifyNoDecimal(e)}};Amount.verifyNoDecimal=function(e){var t=e.times("1e".concat(-(e.e-15))).abs().toString();if(t.indexOf(".")!==-1){throw new Error("Decimal place found in integerNumberString")}};Amount.prototype.isNative=function(){return(this.bytes[0]&128)===0};Amount.defaultAmount=new Amount(l.Buffer.from("4000000000000000","hex"));return Amount}(u.SerializedType);t.Amount=b},8966:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.Blob=void 0;var i=r(1032);var a=r(3365);var o=function(e){n(Blob,e);function Blob(t){return e.call(this,t)||this}Blob.fromParser=function(e,t){return new Blob(e.read(t))};Blob.from=function(e){if(e instanceof Blob){return e}if(typeof e==="string"){return new Blob(a.Buffer.from(e,"hex"))}throw new Error("Cannot construct Blob from value given")};return Blob}(i.SerializedType);t.Blob=o},384:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.Currency=void 0;var i=r(2722);var a=r(3365);var o=/^0{40}$/;var s=/^[A-Z0-9]{3}$/;var u=/^[A-F0-9]{40}$/;var c=/^0{24}[\x00-\x7F]{6}0{10}$/;function isoToBytes(e){var t=a.Buffer.alloc(20);if(e!=="XRP"){var r=e.split("").map((function(e){return e.charCodeAt(0)}));t.set(r,12)}return t}function isIsoCode(e){return s.test(e)}function isoCodeFromHex(e){var t=e.toString();if(t==="XRP"){return null}if(isIsoCode(t)){return t}return null}function isHex(e){return u.test(e)}function isStringRepresentation(e){return e.length===3||isHex(e)}function isBytesArray(e){return e.byteLength===20}function isValidRepresentation(e){return e instanceof a.Buffer?isBytesArray(e):isStringRepresentation(e)}function bytesFromRepresentation(e){if(!isValidRepresentation(e)){throw new Error("Unsupported Currency representation: ".concat(e))}return e.length===3?isoToBytes(e):a.Buffer.from(e,"hex")}var l=function(e){n(Currency,e);function Currency(t){var r=e.call(this,t!==null&&t!==void 0?t:Currency.XRP.bytes)||this;var n=r.bytes.toString("hex");if(o.test(n)){r._iso="XRP"}else if(c.test(n)){r._iso=isoCodeFromHex(r.bytes.slice(12,15))}else{r._iso=null}return r}Currency.prototype.iso=function(){return this._iso};Currency.from=function(e){if(e instanceof Currency){return e}if(typeof e==="string"){return new Currency(bytesFromRepresentation(e))}throw new Error("Cannot construct Currency from value given")};Currency.prototype.toJSON=function(){var e=this.iso();if(e!==null){return e}return this.bytes.toString("hex").toUpperCase()};Currency.XRP=new Currency(a.Buffer.alloc(20));return Currency}(i.Hash160);t.Currency=l},4343:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.Hash128=void 0;var i=r(8226);var a=r(3365);var o=function(e){n(Hash128,e);function Hash128(t){return e.call(this,t!==null&&t!==void 0?t:Hash128.ZERO_128.bytes)||this}Hash128.width=16;Hash128.ZERO_128=new Hash128(a.Buffer.alloc(Hash128.width));return Hash128}(i.Hash);t.Hash128=o},2722:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.Hash160=void 0;var i=r(8226);var a=r(3365);var o=function(e){n(Hash160,e);function Hash160(t){if(t&&t.byteLength===0){t=Hash160.ZERO_160.bytes}return e.call(this,t!==null&&t!==void 0?t:Hash160.ZERO_160.bytes)||this}Hash160.width=20;Hash160.ZERO_160=new Hash160(a.Buffer.alloc(Hash160.width));return Hash160}(i.Hash);t.Hash160=o},6979:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.Hash256=void 0;var i=r(8226);var a=r(3365);var o=function(e){n(Hash256,e);function Hash256(t){return e.call(this,t!==null&&t!==void 0?t:Hash256.ZERO_256.bytes)||this}Hash256.width=32;Hash256.ZERO_256=new Hash256(a.Buffer.alloc(Hash256.width));return Hash256}(i.Hash);t.Hash256=o},8226:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.Hash=void 0;var i=r(1032);var a=r(3365);var o=function(e){n(Hash,e);function Hash(t){var r=e.call(this,t)||this;if(r.bytes.byteLength!==r.constructor.width){throw new Error("Invalid Hash length ".concat(r.bytes.byteLength))}return r}Hash.from=function(e){if(e instanceof this){return e}if(typeof e==="string"){return new this(a.Buffer.from(e,"hex"))}throw new Error("Cannot construct Hash from given value")};Hash.fromParser=function(e,t){return new this(e.read(t!==null&&t!==void 0?t:this.width))};Hash.prototype.compareTo=function(e){return this.bytes.compare(this.constructor.from(e).bytes)};Hash.prototype.toString=function(){return this.toHex()};Hash.prototype.nibblet=function(e){var t=e>0?e/2|0:0;var r=this.bytes[t];if(e%2===0){r=(r&240)>>>4}else{r=r&15}return r};return Hash}(i.Comparable);t.Hash=o},4594:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.coreTypes=void 0;var n=r(1144);var i=r(749);var a=r(3994);var o=r(8966);var s=r(384);var u=r(4343);var c=r(2722);var l=r(6979);var d=r(711);var h=r(284);var p=r(922);var m=r(5953);var g=r(2611);var v=r(4681);var b=r(7546);var y=r(7733);var w={AccountID:i.AccountID,Amount:a.Amount,Blob:o.Blob,Currency:s.Currency,Hash128:u.Hash128,Hash160:c.Hash160,Hash256:l.Hash256,PathSet:d.PathSet,STArray:h.STArray,STObject:p.STObject,UInt8:b.UInt8,UInt16:m.UInt16,UInt32:g.UInt32,UInt64:v.UInt64,Vector256:y.Vector256};t.coreTypes=w;Object.values(n.Field).forEach((function(e){e.associatedType=w[e.type.name]}));n.Field["TransactionType"].associatedType=n.TransactionType;n.Field["TransactionResult"].associatedType=n.TransactionResult;n.Field["LedgerEntryType"].associatedType=n.LedgerEntryType},711:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.PathSet=void 0;var i=r(749);var a=r(384);var o=r(2626);var s=r(1032);var u=r(3365);var c=0;var l=255;var d=1;var h=16;var p=32;function isHopObject(e){return e.issuer!==undefined||e.account!==undefined||e.currency!==undefined}function isPathSet(e){return Array.isArray(e)&&e.length===0||Array.isArray(e)&&Array.isArray(e[0])&&e[0].length===0||Array.isArray(e)&&Array.isArray(e[0])&&isHopObject(e[0][0])}var m=function(e){n(Hop,e);function Hop(){return e!==null&&e.apply(this,arguments)||this}Hop.from=function(e){if(e instanceof Hop){return e}var t=[u.Buffer.from([0])];if(e.account){t.push(i.AccountID.from(e.account).toBytes());t[0][0]|=d}if(e.currency){t.push(a.Currency.from(e.currency).toBytes());t[0][0]|=h}if(e.issuer){t.push(i.AccountID.from(e.issuer).toBytes());t[0][0]|=p}return new Hop(u.Buffer.concat(t))};Hop.fromParser=function(e){var t=e.readUInt8();var r=[u.Buffer.from([t])];if(t&d){r.push(e.read(i.AccountID.width))}if(t&h){r.push(e.read(a.Currency.width))}if(t&p){r.push(e.read(i.AccountID.width))}return new Hop(u.Buffer.concat(r))};Hop.prototype.toJSON=function(){var e=new o.BinaryParser(this.bytes.toString("hex"));var t=e.readUInt8();var r,n,s;if(t&d){r=i.AccountID.fromParser(e).toJSON()}if(t&h){n=a.Currency.fromParser(e).toJSON()}if(t&p){s=i.AccountID.fromParser(e).toJSON()}var u={};if(r){u.account=r}if(s){u.issuer=s}if(n){u.currency=n}return u};Hop.prototype.type=function(){return this.bytes[0]};return Hop}(s.SerializedType);var g=function(e){n(Path,e);function Path(){return e!==null&&e.apply(this,arguments)||this}Path.from=function(e){if(e instanceof Path){return e}var t=[];e.forEach((function(e){t.push(m.from(e).toBytes())}));return new Path(u.Buffer.concat(t))};Path.fromParser=function(e){var t=[];while(!e.end()){t.push(m.fromParser(e).toBytes());if(e.peek()===c||e.peek()===l){break}}return new Path(u.Buffer.concat(t))};Path.prototype.toJSON=function(){var e=[];var t=new o.BinaryParser(this.toString());while(!t.end()){e.push(m.fromParser(t).toJSON())}return e};return Path}(s.SerializedType);var v=function(e){n(PathSet,e);function PathSet(){return e!==null&&e.apply(this,arguments)||this}PathSet.from=function(e){if(e instanceof PathSet){return e}if(isPathSet(e)){var t=[];e.forEach((function(e){t.push(g.from(e).toBytes());t.push(u.Buffer.from([l]))}));t[t.length-1]=u.Buffer.from([c]);return new PathSet(u.Buffer.concat(t))}throw new Error("Cannot construct PathSet from given value")};PathSet.fromParser=function(e){var t=[];while(!e.end()){t.push(g.fromParser(e).toBytes());t.push(e.read(1));if(t[t.length-1][0]==c){break}}return new PathSet(u.Buffer.concat(t))};PathSet.prototype.toJSON=function(){var e=[];var t=new o.BinaryParser(this.toString());while(!t.end()){e.push(g.fromParser(t).toJSON());t.skip(1)}return e};return PathSet}(s.SerializedType);t.PathSet=v},1032:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.Comparable=t.SerializedType=void 0;var i=r(7731);var a=r(3365);var o=function(){function SerializedType(e){this.bytes=a.Buffer.alloc(0);this.bytes=e!==null&&e!==void 0?e:a.Buffer.alloc(0)}SerializedType.fromParser=function(e,t){throw new Error("fromParser not implemented");return this.fromParser(e,t)};SerializedType.from=function(e){throw new Error("from not implemented");return this.from(e)};SerializedType.prototype.toBytesSink=function(e){e.put(this.bytes)};SerializedType.prototype.toHex=function(){return this.toBytes().toString("hex").toUpperCase()};SerializedType.prototype.toBytes=function(){if(this.bytes){return this.bytes}var e=new i.BytesList;this.toBytesSink(e);return e.toBytes()};SerializedType.prototype.toJSON=function(){return this.toHex()};SerializedType.prototype.toString=function(){return this.toHex()};return SerializedType}();t.SerializedType=o;var s=function(e){n(Comparable,e);function Comparable(){return e!==null&&e.apply(this,arguments)||this}Comparable.prototype.lt=function(e){return this.compareTo(e)<0};Comparable.prototype.eq=function(e){return this.compareTo(e)===0};Comparable.prototype.gt=function(e){return this.compareTo(e)>0};Comparable.prototype.gte=function(e){return this.compareTo(e)>-1};Comparable.prototype.lte=function(e){return this.compareTo(e)<1};Comparable.prototype.compareTo=function(e){throw new Error("cannot compare ".concat(this.toString()," and ").concat(e.toString()))};return Comparable}(o);t.Comparable=s},284:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.STArray=void 0;var i=r(1032);var a=r(922);var o=r(2626);var s=r(3365);var u=s.Buffer.from([241]);var c="ArrayEndMarker";var l=s.Buffer.from([225]);function isObjects(e){return Array.isArray(e)&&(e.length===0||typeof e[0]==="object")}var d=function(e){n(STArray,e);function STArray(){return e!==null&&e.apply(this,arguments)||this}STArray.fromParser=function(e){var t=[];while(!e.end()){var r=e.readField();if(r.name===c){break}t.push(r.header,e.readFieldValue(r).toBytes(),l)}t.push(u);return new STArray(s.Buffer.concat(t))};STArray.from=function(e){if(e instanceof STArray){return e}if(isObjects(e)){var t=[];e.forEach((function(e){t.push(a.STObject.from(e).toBytes())}));t.push(u);return new STArray(s.Buffer.concat(t))}throw new Error("Cannot construct STArray from value given")};STArray.prototype.toJSON=function(){var e=[];var t=new o.BinaryParser(this.toString());while(!t.end()){var r=t.readField();if(r.name===c){break}var n={};n[r.name]=a.STObject.fromParser(t).toJSON();e.push(n)}return e};return STArray}(i.SerializedType);t.STArray=d},922:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.STObject=void 0;var i=r(1144);var a=r(1032);var o=r(7675);var s=r(2626);var u=r(7731);var c=r(3365);var l=c.Buffer.from([225]);var d="ObjectEndMarker";var h="STObject";var p="Destination";var m="Account";var g="SourceTag";var v="DestinationTag";function handleXAddress(e,t){var r,n;var i=(0,o.xAddressToClassicAddress)(t);var a;if(e===p)a=v;else if(e===m)a=g;else if(i.tag!==false)throw new Error("".concat(e," cannot have an associated tag"));return i.tag!==false?(r={},r[e]=i.classicAddress,r[a]=i.tag,r):(n={},n[e]=i.classicAddress,n)}function checkForDuplicateTags(e,t){if(!(e[g]===undefined||t[g]===undefined))throw new Error("Cannot have Account X-Address and SourceTag");if(!(e[v]===undefined||t[v]===undefined))throw new Error("Cannot have Destination X-Address and DestinationTag")}var b=function(e){n(STObject,e);function STObject(){return e!==null&&e.apply(this,arguments)||this}STObject.fromParser=function(e){var t=new u.BytesList;var r=new u.BinarySerializer(t);while(!e.end()){var n=e.readField();if(n.name===d){break}var i=e.readFieldValue(n);r.writeFieldAndValue(n,i);if(n.type.name===h){r.put(l)}}return new STObject(t.toBytes())};STObject.from=function(e,t){if(e instanceof STObject){return e}var r=new u.BytesList;var n=new u.BinarySerializer(r);var a=false;var s=Object.entries(e).reduce((function(t,r){var n;var i=r[0],a=r[1];var s=undefined;if(a&&(0,o.isValidXAddress)(a.toString())){s=handleXAddress(i,a.toString());checkForDuplicateTags(s,e)}return Object.assign(t,s!==null&&s!==void 0?s:(n={},n[i]=a,n))}),{});var c=Object.keys(s).map((function(e){return i.Field[e]})).filter((function(e){return e!==undefined&&s[e.name]!==undefined&&e.isSerialized})).sort((function(e,t){return e.ordinal-t.ordinal}));if(t!==undefined){c=c.filter(t)}c.forEach((function(e){var t=e.associatedType.from(s[e.name]);if(t==undefined){throw new TypeError('Unable to interpret "'.concat(e.name,": ").concat(s[e.name],'".'))}if(t.name==="UNLModify"){a=true}var r=e.name=="Account"&&a;n.writeFieldAndValue(e,t,r);if(e.type.name===h){n.put(l)}}));return new STObject(r.toBytes())};STObject.prototype.toJSON=function(){var e=new s.BinaryParser(this.toString());var t={};while(!e.end()){var r=e.readField();if(r.name===d){break}t[r.name]=e.readFieldValue(r).toJSON()}return t};return STObject}(a.SerializedType);t.STObject=b},5953:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.UInt16=void 0;var i=r(7749);var a=r(3365);var o=function(e){n(UInt16,e);function UInt16(t){return e.call(this,t!==null&&t!==void 0?t:UInt16.defaultUInt16.bytes)||this}UInt16.fromParser=function(e){return new UInt16(e.read(UInt16.width))};UInt16.from=function(e){if(e instanceof UInt16){return e}if(typeof e==="number"){var t=a.Buffer.alloc(UInt16.width);t.writeUInt16BE(e,0);return new UInt16(t)}throw new Error("Can not construct UInt16 with given value")};UInt16.prototype.valueOf=function(){return this.bytes.readUInt16BE(0)};UInt16.width=16/8;UInt16.defaultUInt16=new UInt16(a.Buffer.alloc(UInt16.width));return UInt16}(i.UInt);t.UInt16=o},2611:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.UInt32=void 0;var i=r(7749);var a=r(3365);var o=function(e){n(UInt32,e);function UInt32(t){return e.call(this,t!==null&&t!==void 0?t:UInt32.defaultUInt32.bytes)||this}UInt32.fromParser=function(e){return new UInt32(e.read(UInt32.width))};UInt32.from=function(e){if(e instanceof UInt32){return e}var t=a.Buffer.alloc(UInt32.width);if(typeof e==="string"){var r=Number.parseInt(e);t.writeUInt32BE(r,0);return new UInt32(t)}if(typeof e==="number"){t.writeUInt32BE(e,0);return new UInt32(t)}throw new Error("Cannot construct UInt32 from given value")};UInt32.prototype.valueOf=function(){return this.bytes.readUInt32BE(0)};UInt32.width=32/8;UInt32.defaultUInt32=new UInt32(a.Buffer.alloc(UInt32.width));return UInt32}(i.UInt);t.UInt32=o},4681:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.UInt64=void 0;var i=r(7749);var a=r(4922);var o=r(4922);var s=r(3365);var u=/^[a-fA-F0-9]{1,16}$/;var c=a(4294967295);var l=function(e){n(UInt64,e);function UInt64(t){return e.call(this,t!==null&&t!==void 0?t:UInt64.defaultUInt64.bytes)||this}UInt64.fromParser=function(e){return new UInt64(e.read(UInt64.width))};UInt64.from=function(e){if(e instanceof UInt64){return e}var t=s.Buffer.alloc(UInt64.width);if(typeof e==="number"){if(e<0){throw new Error("value must be an unsigned integer")}var r=a(e);var n=[s.Buffer.alloc(4),s.Buffer.alloc(4)];n[0].writeUInt32BE(Number(r.shiftRight(32)),0);n[1].writeUInt32BE(Number(r.and(c)),0);return new UInt64(s.Buffer.concat(n))}if(typeof e==="string"){if(!u.test(e)){throw new Error("".concat(e," is not a valid hex-string"))}var i=e.padStart(16,"0");t=s.Buffer.from(i,"hex");return new UInt64(t)}if((0,o.isInstance)(e)){var n=[s.Buffer.alloc(4),s.Buffer.alloc(4)];n[0].writeUInt32BE(Number(e.shiftRight(a(32))),0);n[1].writeUInt32BE(Number(e.and(c)),0);return new UInt64(s.Buffer.concat(n))}throw new Error("Cannot construct UInt64 from given value")};UInt64.prototype.toJSON=function(){return this.bytes.toString("hex").toUpperCase()};UInt64.prototype.valueOf=function(){var e=a(this.bytes.slice(0,4).readUInt32BE(0));var t=a(this.bytes.slice(4).readUInt32BE(0));return e.shiftLeft(a(32)).or(t)};UInt64.prototype.toBytes=function(){return this.bytes};UInt64.width=64/8;UInt64.defaultUInt64=new UInt64(s.Buffer.alloc(UInt64.width));return UInt64}(i.UInt);t.UInt64=l},7546:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.UInt8=void 0;var i=r(7749);var a=r(3365);var o=function(e){n(UInt8,e);function UInt8(t){return e.call(this,t!==null&&t!==void 0?t:UInt8.defaultUInt8.bytes)||this}UInt8.fromParser=function(e){return new UInt8(e.read(UInt8.width))};UInt8.from=function(e){if(e instanceof UInt8){return e}if(typeof e==="number"){var t=a.Buffer.alloc(UInt8.width);t.writeUInt8(e,0);return new UInt8(t)}throw new Error("Cannot construct UInt8 from given value")};UInt8.prototype.valueOf=function(){return this.bytes.readUInt8(0)};UInt8.width=8/8;UInt8.defaultUInt8=new UInt8(a.Buffer.alloc(UInt8.width));return UInt8}(i.UInt);t.UInt8=o},7749:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.UInt=void 0;var i=r(1032);function compare(e,t){return e<t?-1:e==t?0:1}var a=function(e){n(UInt,e);function UInt(t){return e.call(this,t)||this}UInt.prototype.compareTo=function(e){return compare(this.valueOf(),e.valueOf())};UInt.prototype.toJSON=function(){var e=this.valueOf();return typeof e==="number"?e:e.toString()};return UInt}(i.Comparable);t.UInt=a},7733:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.Vector256=void 0;var i=r(1032);var a=r(6979);var o=r(7731);function isStrings(e){return Array.isArray(e)&&(e.length===0||typeof e[0]==="string")}var s=function(e){n(Vector256,e);function Vector256(t){return e.call(this,t)||this}Vector256.fromParser=function(e,t){var r=new o.BytesList;var n=t!==null&&t!==void 0?t:e.size();var i=n/32;for(var s=0;s<i;s++){a.Hash256.fromParser(e).toBytesSink(r)}return new Vector256(r.toBytes())};Vector256.from=function(e){if(e instanceof Vector256){return e}if(isStrings(e)){var t=new o.BytesList;e.forEach((function(e){a.Hash256.from(e).toBytesSink(t)}));return new Vector256(t.toBytes())}throw new Error("Cannot construct Vector256 from given value")};Vector256.prototype.toJSON=function(){if(this.bytes.byteLength%32!==0){throw new Error("Invalid bytes for Vector256")}var e=[];for(var t=0;t<this.bytes.byteLength;t+=32){e.push(this.bytes.slice(t,t+32).toString("hex").toUpperCase())}return e};return Vector256}(i.SerializedType);t.Vector256=s},7675:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isValidXAddress=t.decodeXAddress=t.xAddressToClassicAddress=t.encodeXAddress=t.classicAddressToXAddress=t.isValidClassicAddress=t.decodeAccountPublic=t.encodeAccountPublic=t.decodeNodePublic=t.encodeNodePublic=t.decodeAccountID=t.encodeAccountID=t.decodeSeed=t.encodeSeed=t.codec=void 0;const n=r(9491);const i=r(6365);Object.defineProperty(t,"codec",{enumerable:true,get:function(){return i.codec}});Object.defineProperty(t,"encodeSeed",{enumerable:true,get:function(){return i.encodeSeed}});Object.defineProperty(t,"decodeSeed",{enumerable:true,get:function(){return i.decodeSeed}});Object.defineProperty(t,"encodeAccountID",{enumerable:true,get:function(){return i.encodeAccountID}});Object.defineProperty(t,"decodeAccountID",{enumerable:true,get:function(){return i.decodeAccountID}});Object.defineProperty(t,"encodeNodePublic",{enumerable:true,get:function(){return i.encodeNodePublic}});Object.defineProperty(t,"decodeNodePublic",{enumerable:true,get:function(){return i.decodeNodePublic}});Object.defineProperty(t,"encodeAccountPublic",{enumerable:true,get:function(){return i.encodeAccountPublic}});Object.defineProperty(t,"decodeAccountPublic",{enumerable:true,get:function(){return i.decodeAccountPublic}});Object.defineProperty(t,"isValidClassicAddress",{enumerable:true,get:function(){return i.isValidClassicAddress}});const a={main:Buffer.from([5,68]),test:Buffer.from([4,147])};const o=4294967295;function classicAddressToXAddress(e,t,r){const n=(0,i.decodeAccountID)(e);return encodeXAddress(n,t,r)}t.classicAddressToXAddress=classicAddressToXAddress;function encodeXAddress(e,t,r){if(e.length!==20){throw new Error("Account ID must be 20 bytes")}if(t>o){throw new Error("Invalid tag")}const n=t||0;const s=t===false||t==null?0:1;const u=Buffer.concat([r?a.test:a.main,e,Buffer.from([s,n&255,n>>8&255,n>>16&255,n>>24&255,0,0,0,0])]);return i.codec.encodeChecked(u)}t.encodeXAddress=encodeXAddress;function xAddressToClassicAddress(e){const{accountId:t,tag:r,test:n}=decodeXAddress(e);const a=(0,i.encodeAccountID)(t);return{classicAddress:a,tag:r,test:n}}t.xAddressToClassicAddress=xAddressToClassicAddress;function decodeXAddress(e){const t=i.codec.decodeChecked(e);const r=isBufferForTestAddress(t);const n=t.slice(2,22);const a=tagFromBuffer(t);return{accountId:n,tag:a,test:r}}t.decodeXAddress=decodeXAddress;function isBufferForTestAddress(e){const t=e.slice(0,2);if(a.main.equals(t)){return false}if(a.test.equals(t)){return true}throw new Error("Invalid X-address: bad prefix")}function tagFromBuffer(e){const t=e[22];if(t>=2){throw new Error("Unsupported X-address")}if(t===1){return e[23]+e[24]*256+e[25]*65536+e[26]*16777216}n.strictEqual(t,0,"flag must be zero to indicate no tag");n.ok(Buffer.from("0000000000000000","hex").equals(e.slice(23,23+8)),"remaining bytes must be zero");return false}function isValidXAddress(e){try{decodeXAddress(e)}catch(e){return false}return true}t.isValidXAddress=isValidXAddress},3808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.concatArgs=t.seqEqual=void 0;function seqEqual(e,t){if(e.length!==t.length){return false}for(let r=0;r<e.length;r++){if(e[r]!==t[r]){return false}}return true}t.seqEqual=seqEqual;function isSequence(e){return typeof e!=="number"}function concatArgs(...e){const t=[];e.forEach((e=>{if(isSequence(e)){for(const r of e){t.push(r)}}else{t.push(e)}}));return t}t.concatArgs=concatArgs},6365:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isValidClassicAddress=t.decodeAccountPublic=t.encodeAccountPublic=t.encodeNodePublic=t.decodeNodePublic=t.decodeAddress=t.decodeAccountID=t.encodeAddress=t.encodeAccountID=t.decodeSeed=t.encodeSeed=t.codec=void 0;const n=r(3358);const i=r(3614);const a=r(3808);class Codec{constructor(e){this._sha256=e.sha256;this._alphabet=e.alphabet;this._codec=n(this._alphabet)}encode(e,t){const r=t.versions;return this._encodeVersioned(e,r,t.expectedLength)}decode(e,t){var r;const n=t.versions;const i=t.versionTypes;const o=this.decodeChecked(e);if(n.length>1&&!t.expectedLength){throw new Error("expectedLength is required because there are >= 2 possible versions")}const s=typeof n[0]==="number"?1:n[0].length;const u=(r=t.expectedLength)!==null&&r!==void 0?r:o.length-s;const c=o.slice(0,-u);const l=o.slice(-u);for(let e=0;e<n.length;e++){const t=Array.isArray(n[e])?n[e]:[n[e]];if((0,a.seqEqual)(c,t)){return{version:t,bytes:l,type:i?i[e]:null}}}throw new Error("version_invalid: version bytes do not match any of the provided version(s)")}encodeChecked(e){const t=this._sha256(this._sha256(e)).slice(0,4);return this._encodeRaw(Buffer.from((0,a.concatArgs)(e,t)))}decodeChecked(e){const t=this._decodeRaw(e);if(t.length<5){throw new Error("invalid_input_size: decoded data must have length >= 5")}if(!this._verifyCheckSum(t)){throw new Error("checksum_invalid")}return t.slice(0,-4)}_encodeVersioned(e,t,r){if(r&&e.length!==r){throw new Error("unexpected_payload_length: bytes.length does not match expectedLength."+" Ensure that the bytes are a Buffer.")}return this.encodeChecked(Buffer.from((0,a.concatArgs)(t,e)))}_encodeRaw(e){return this._codec.encode(e)}_decodeRaw(e){return this._codec.decode(e)}_verifyCheckSum(e){const t=this._sha256(this._sha256(e.slice(0,-4))).slice(0,4);const r=e.slice(-4);return(0,a.seqEqual)(t,r)}}const o=0;const s=35;const u=33;const c=28;const l=[1,225,75];const d={sha256(e){return i("sha256").update(Buffer.from(e)).digest()},alphabet:"rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"};const h=new Codec(d);t.codec=h;function encodeSeed(e,t){if(e.length!==16){throw new Error("entropy must have length 16")}const r={expectedLength:16,versions:t==="ed25519"?l:[u]};return h.encode(e,r)}t.encodeSeed=encodeSeed;function decodeSeed(e,t={versionTypes:["ed25519","secp256k1"],versions:[l,u],expectedLength:16}){return h.decode(e,t)}t.decodeSeed=decodeSeed;function encodeAccountID(e){const t={versions:[o],expectedLength:20};return h.encode(e,t)}t.encodeAccountID=encodeAccountID;t.encodeAddress=encodeAccountID;function decodeAccountID(e){const t={versions:[o],expectedLength:20};return h.decode(e,t).bytes}t.decodeAccountID=decodeAccountID;t.decodeAddress=decodeAccountID;function decodeNodePublic(e){const t={versions:[c],expectedLength:33};return h.decode(e,t).bytes}t.decodeNodePublic=decodeNodePublic;function encodeNodePublic(e){const t={versions:[c],expectedLength:33};return h.encode(e,t)}t.encodeNodePublic=encodeNodePublic;function encodeAccountPublic(e){const t={versions:[s],expectedLength:33};return h.encode(e,t)}t.encodeAccountPublic=encodeAccountPublic;function decodeAccountPublic(e){const t={versions:[s],expectedLength:33};return h.decode(e,t).bytes}t.decodeAccountPublic=decodeAccountPublic;function isValidClassicAddress(e){try{decodeAccountID(e)}catch(e){return false}return true}t.isValidClassicAddress=isValidClassicAddress},6621:(e,t,r)=>{
|
18
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
19
|
+
var n=r(4300);var i=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return i(e,t,r)}SafeBuffer.prototype=Object.create(i.prototype);copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=i(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},8400:(e,t,r)=>{"use strict";const n=r(2037);const i=r(6224);const a=r(6125);const{env:o}=process;let s;if(a("no-color")||a("no-colors")||a("color=false")||a("color=never")){s=0}else if(a("color")||a("colors")||a("color=true")||a("color=always")){s=1}if("FORCE_COLOR"in o){if(o.FORCE_COLOR==="true"){s=1}else if(o.FORCE_COLOR==="false"){s=0}else{s=o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(s===0){return 0}if(a("color=16m")||a("color=full")||a("color=truecolor")){return 3}if(a("color=256")){return 2}if(e&&!t&&s===undefined){return 0}const r=s||0;if(o.TERM==="dumb"){return r}if(process.platform==="win32"){const e=n.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in o))||o.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if(o.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},5303:(e,t,r)=>{"use strict";try{e.exports=r(5e3)}catch(t){e.exports=r(6738)}},6738:(e,t,r)=>{const n=r(3693);const i=r(577).ec;const a=new i("secp256k1");const o=r(9482);const s=Buffer.alloc(32,0);const u=Buffer.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex");const c=Buffer.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","hex");const l=a.curve.n;const d=l.shrn(1);const h=a.curve.g;const p="Expected Private";const m="Expected Point";const g="Expected Tweak";const v="Expected Hash";const b="Expected Signature";const y="Expected Extra Data (32 bytes)";function isScalar(e){return Buffer.isBuffer(e)&&e.length===32}function isOrderScalar(e){if(!isScalar(e))return false;return e.compare(u)<0}function isPoint(e){if(!Buffer.isBuffer(e))return false;if(e.length<33)return false;const t=e[0];const r=e.slice(1,33);if(r.compare(s)===0)return false;if(r.compare(c)>=0)return false;if((t===2||t===3)&&e.length===33){try{decodeFrom(e)}catch(e){return false}return true}const n=e.slice(33);if(n.compare(s)===0)return false;if(n.compare(c)>=0)return false;if(t===4&&e.length===65)return true;return false}function __isPointCompressed(e){return e[0]!==4}function isPointCompressed(e){if(!isPoint(e))return false;return __isPointCompressed(e)}function isPrivate(e){if(!isScalar(e))return false;return e.compare(s)>0&&e.compare(u)<0}function isSignature(e){const t=e.slice(0,32);const r=e.slice(32,64);return Buffer.isBuffer(e)&&e.length===64&&t.compare(u)<0&&r.compare(u)<0}function assumeCompression(e,t){if(e===undefined&&t!==undefined)return __isPointCompressed(t);if(e===undefined)return true;return e}function fromBuffer(e){return new n(e)}function toBuffer(e){return e.toArrayLike(Buffer,"be",32)}function decodeFrom(e){return a.curve.decodePoint(e)}function getEncoded(e,t){return Buffer.from(e._encode(t))}function pointAdd(e,t,r){if(!isPoint(e))throw new TypeError(m);if(!isPoint(t))throw new TypeError(m);const n=decodeFrom(e);const i=decodeFrom(t);const a=n.add(i);if(a.isInfinity())return null;const o=assumeCompression(r,e);return getEncoded(a,o)}function pointAddScalar(e,t,r){if(!isPoint(e))throw new TypeError(m);if(!isOrderScalar(t))throw new TypeError(g);const n=assumeCompression(r,e);const i=decodeFrom(e);if(t.compare(s)===0)return getEncoded(i,n);const a=fromBuffer(t);const o=h.mul(a);const u=i.add(o);if(u.isInfinity())return null;return getEncoded(u,n)}function pointCompress(e,t){if(!isPoint(e))throw new TypeError(m);const r=decodeFrom(e);if(r.isInfinity())throw new TypeError(m);const n=assumeCompression(t,e);return getEncoded(r,n)}function pointFromScalar(e,t){if(!isPrivate(e))throw new TypeError(p);const r=fromBuffer(e);const n=h.mul(r);if(n.isInfinity())return null;const i=assumeCompression(t);return getEncoded(n,i)}function pointMultiply(e,t,r){if(!isPoint(e))throw new TypeError(m);if(!isOrderScalar(t))throw new TypeError(g);const n=assumeCompression(r,e);const i=decodeFrom(e);const a=fromBuffer(t);const o=i.mul(a);if(o.isInfinity())return null;return getEncoded(o,n)}function privateAdd(e,t){if(!isPrivate(e))throw new TypeError(p);if(!isOrderScalar(t))throw new TypeError(g);const r=fromBuffer(e);const n=fromBuffer(t);const i=toBuffer(r.add(n).umod(l));if(!isPrivate(i))return null;return i}function privateSub(e,t){if(!isPrivate(e))throw new TypeError(p);if(!isOrderScalar(t))throw new TypeError(g);const r=fromBuffer(e);const n=fromBuffer(t);const i=toBuffer(r.sub(n).umod(l));if(!isPrivate(i))return null;return i}function sign(e,t){return __sign(e,t)}function signWithEntropy(e,t,r){return __sign(e,t,r)}function __sign(e,t,r){if(!isScalar(e))throw new TypeError(v);if(!isPrivate(t))throw new TypeError(p);if(r!==undefined&&!isScalar(r))throw new TypeError(y);const n=fromBuffer(t);const i=fromBuffer(e);let a,s;const checkSig=function(e){const t=fromBuffer(e);const r=h.mul(t);if(r.isInfinity())return false;a=r.x.umod(l);if(a.isZero()===0)return false;s=t.invm(l).mul(i.add(n.mul(a))).umod(l);if(s.isZero()===0)return false;return true};o(e,t,checkSig,isPrivate,r);if(s.cmp(d)>0){s=l.sub(s)}const u=Buffer.allocUnsafe(64);toBuffer(a).copy(u,0);toBuffer(s).copy(u,32);return u}function verify(e,t,r,n){if(!isScalar(e))throw new TypeError(v);if(!isPoint(t))throw new TypeError(m);if(!isSignature(r))throw new TypeError(b);const i=decodeFrom(t);const a=fromBuffer(r.slice(0,32));const o=fromBuffer(r.slice(32,64));if(n&&o.cmp(d)>0){return false}if(a.gtn(0)<=0)return false;if(o.gtn(0)<=0)return false;const s=fromBuffer(e);const u=o.invm(l);const c=s.mul(u).umod(l);const p=a.mul(u).umod(l);const g=h.mulAdd(c,i,p);if(g.isInfinity())return false;const y=g.x;const w=y.umod(l);return w.eq(a)}e.exports={isPoint:isPoint,isPointCompressed:isPointCompressed,isPrivate:isPrivate,pointAdd:pointAdd,pointAddScalar:pointAddScalar,pointCompress:pointCompress,pointFromScalar:pointFromScalar,pointMultiply:pointMultiply,privateAdd:privateAdd,privateSub:privateSub,sign:sign,signWithEntropy:signWithEntropy,verify:verify}},5e3:(e,t,r)=>{"use strict";let n=require(r.ab+"build/Release/secp256k1.node");delete n.path;for(let e in n){if(e.indexOf("is")!==0)continue;n[e].toJSON=function(){return e}}e.exports=n},9482:(e,t,r)=>{const n=r(9922);const i=Buffer.alloc(1,1);const a=Buffer.alloc(1,0);function deterministicGenerateK(e,t,r,o,s){let u=Buffer.alloc(32,0);let c=Buffer.alloc(32,1);u=n("sha256",u).update(c).update(a).update(t).update(e).update(s||"").digest();c=n("sha256",u).update(c).digest();u=n("sha256",u).update(c).update(i).update(t).update(e).update(s||"").digest();c=n("sha256",u).update(c).digest();c=n("sha256",u).update(c).digest();let l=c;while(!o(l)||!r(l)){u=n("sha256",u).update(c).update(a).digest();c=n("sha256",u).update(c).digest();c=n("sha256",u).update(c).digest();l=c}return l}e.exports=deterministicGenerateK},2580:(e,t,r)=>{var n=r(5926);function getTypeName(e){return e.name||e.toString().match(/function (.*?)\s*\(/)[1]}function getValueTypeName(e){return n.Nil(e)?"":getTypeName(e.constructor)}function getValue(e){if(n.Function(e))return"";if(n.String(e))return JSON.stringify(e);if(e&&n.Object(e))return"";return e}function captureStackTrace(e,t){if(Error.captureStackTrace){Error.captureStackTrace(e,t)}}function tfJSON(e){if(n.Function(e))return e.toJSON?e.toJSON():getTypeName(e);if(n.Array(e))return"Array";if(e&&n.Object(e))return"Object";return e!==undefined?e:""}function tfErrorString(e,t,r){var n=getValue(t);return"Expected "+tfJSON(e)+", got"+(r!==""?" "+r:"")+(n!==""?" "+n:"")}function TfTypeError(e,t,r){r=r||getValueTypeName(t);this.message=tfErrorString(e,t,r);captureStackTrace(this,TfTypeError);this.__type=e;this.__value=t;this.__valueTypeName=r}TfTypeError.prototype=Object.create(Error.prototype);TfTypeError.prototype.constructor=TfTypeError;function tfPropertyErrorString(e,t,r,n,i){var a='" of type ';if(t==="key")a='" with key type ';return tfErrorString('property "'+tfJSON(r)+a+tfJSON(e),n,i)}function TfPropertyTypeError(e,t,r,n,i){if(e){i=i||getValueTypeName(n);this.message=tfPropertyErrorString(e,r,t,n,i)}else{this.message='Unexpected property "'+t+'"'}captureStackTrace(this,TfTypeError);this.__label=r;this.__property=t;this.__type=e;this.__value=n;this.__valueTypeName=i}TfPropertyTypeError.prototype=Object.create(Error.prototype);TfPropertyTypeError.prototype.constructor=TfTypeError;function tfCustomError(e,t){return new TfTypeError(e,{},t)}function tfSubError(e,t,r){if(e instanceof TfPropertyTypeError){t=t+"."+e.__property;e=new TfPropertyTypeError(e.__type,t,e.__label,e.__value,e.__valueTypeName)}else if(e instanceof TfTypeError){e=new TfPropertyTypeError(e.__type,t,r,e.__value,e.__valueTypeName)}captureStackTrace(e);return e}e.exports={TfTypeError:TfTypeError,TfPropertyTypeError:TfPropertyTypeError,tfCustomError:tfCustomError,tfSubError:tfSubError,tfJSON:tfJSON,getValueTypeName:getValueTypeName}},4613:(e,t,r)=>{var n=r(5926);var i=r(2580);function _Buffer(e){return Buffer.isBuffer(e)}function Hex(e){return typeof e==="string"&&/^([0-9a-f]{2})+$/i.test(e)}function _LengthN(e,t){var r=e.toJSON();function Length(n){if(!e(n))return false;if(n.length===t)return true;throw i.tfCustomError(r+"(Length: "+t+")",r+"(Length: "+n.length+")")}Length.toJSON=function(){return r};return Length}var a=_LengthN.bind(null,n.Array);var o=_LengthN.bind(null,_Buffer);var s=_LengthN.bind(null,Hex);var u=_LengthN.bind(null,n.String);function Range(e,t,r){r=r||n.Number;function _range(n,i){return r(n,i)&&n>e&&n<t}_range.toJSON=function(){return`${r.toJSON()} between [${e}, ${t}]`};return _range}var c=Math.pow(2,53)-1;function Finite(e){return typeof e==="number"&&isFinite(e)}function Int8(e){return e<<24>>24===e}function Int16(e){return e<<16>>16===e}function Int32(e){return(e|0)===e}function Int53(e){return typeof e==="number"&&e>=-c&&e<=c&&Math.floor(e)===e}function UInt8(e){return(e&255)===e}function UInt16(e){return(e&65535)===e}function UInt32(e){return e>>>0===e}function UInt53(e){return typeof e==="number"&&e>=0&&e<=c&&Math.floor(e)===e}var l={ArrayN:a,Buffer:_Buffer,BufferN:o,Finite:Finite,Hex:Hex,HexN:s,Int8:Int8,Int16:Int16,Int32:Int32,Int53:Int53,Range:Range,StringN:u,UInt8:UInt8,UInt16:UInt16,UInt32:UInt32,UInt53:UInt53};for(var d in l){l[d].toJSON=function(e){return e}.bind(null,d)}e.exports=l},8158:(e,t,r)=>{var n=r(2580);var i=r(5926);var a=n.tfJSON;var o=n.TfTypeError;var s=n.TfPropertyTypeError;var u=n.tfSubError;var c=n.getValueTypeName;var l={arrayOf:function arrayOf(e,t){e=compile(e);t=t||{};function _arrayOf(r,n){if(!i.Array(r))return false;if(i.Nil(r))return false;if(t.minLength!==undefined&&r.length<t.minLength)return false;if(t.maxLength!==undefined&&r.length>t.maxLength)return false;if(t.length!==undefined&&r.length!==t.length)return false;return r.every((function(t,r){try{return typeforce(e,t,n)}catch(e){throw u(e,r)}}))}_arrayOf.toJSON=function(){var r="["+a(e)+"]";if(t.length!==undefined){r+="{"+t.length+"}"}else if(t.minLength!==undefined||t.maxLength!==undefined){r+="{"+(t.minLength===undefined?0:t.minLength)+","+(t.maxLength===undefined?Infinity:t.maxLength)+"}"}return r};return _arrayOf},maybe:function maybe(e){e=compile(e);function _maybe(t,r){return i.Nil(t)||e(t,r,maybe)}_maybe.toJSON=function(){return"?"+a(e)};return _maybe},map:function map(e,t){e=compile(e);if(t)t=compile(t);function _map(r,n){if(!i.Object(r))return false;if(i.Nil(r))return false;for(var a in r){try{if(t){typeforce(t,a,n)}}catch(e){throw u(e,a,"key")}try{var o=r[a];typeforce(e,o,n)}catch(e){throw u(e,a)}}return true}if(t){_map.toJSON=function(){return"{"+a(t)+": "+a(e)+"}"}}else{_map.toJSON=function(){return"{"+a(e)+"}"}}return _map},object:function object(e){var t={};for(var r in e){t[r]=compile(e[r])}function _object(e,r){if(!i.Object(e))return false;if(i.Nil(e))return false;var n;try{for(n in t){var a=t[n];var o=e[n];typeforce(a,o,r)}}catch(e){throw u(e,n)}if(r){for(n in e){if(t[n])continue;throw new s(undefined,n)}}return true}_object.toJSON=function(){return a(t)};return _object},anyOf:function anyOf(){var e=[].slice.call(arguments).map(compile);function _anyOf(t,r){return e.some((function(e){try{return typeforce(e,t,r)}catch(e){return false}}))}_anyOf.toJSON=function(){return e.map(a).join("|")};return _anyOf},allOf:function allOf(){var e=[].slice.call(arguments).map(compile);function _allOf(t,r){return e.every((function(e){try{return typeforce(e,t,r)}catch(e){return false}}))}_allOf.toJSON=function(){return e.map(a).join(" & ")};return _allOf},quacksLike:function quacksLike(e){function _quacksLike(t){return e===c(t)}_quacksLike.toJSON=function(){return e};return _quacksLike},tuple:function tuple(){var e=[].slice.call(arguments).map(compile);function _tuple(t,r){if(i.Nil(t))return false;if(i.Nil(t.length))return false;if(r&&t.length!==e.length)return false;return e.every((function(e,n){try{return typeforce(e,t[n],r)}catch(e){throw u(e,n)}}))}_tuple.toJSON=function(){return"("+e.map(a).join(", ")+")"};return _tuple},value:function value(e){function _value(t){return t===e}_value.toJSON=function(){return e};return _value}};l.oneOf=l.anyOf;function compile(e){if(i.String(e)){if(e[0]==="?")return l.maybe(e.slice(1));return i[e]||l.quacksLike(e)}else if(e&&i.Object(e)){if(i.Array(e)){if(e.length!==1)throw new TypeError("Expected compile() parameter of type Array of length 1");return l.arrayOf(e[0])}return l.object(e)}else if(i.Function(e)){return e}return l.value(e)}function typeforce(e,t,r,n){if(i.Function(e)){if(e(t,r))return true;throw new o(n||e,t)}return typeforce(compile(e),t,r)}for(var d in i){typeforce[d]=i[d]}for(d in l){typeforce[d]=l[d]}var h=r(4613);for(d in h){typeforce[d]=h[d]}typeforce.compile=compile;typeforce.TfTypeError=o;typeforce.TfPropertyTypeError=s;e.exports=typeforce},5926:e=>{var t={Array:function(e){return e!==null&&e!==undefined&&e.constructor===Array},Boolean:function(e){return typeof e==="boolean"},Function:function(e){return typeof e==="function"},Nil:function(e){return e===undefined||e===null},Number:function(e){return typeof e==="number"},Object:function(e){return typeof e==="object"},String:function(e){return typeof e==="string"},"":function(){return true}};t.Null=t.Nil;for(var r in t){t[r].toJSON=function(e){return e}.bind(null,r)}e.exports=t},8445:(e,t,r)=>{var n=r(1768);function decodeRaw(e,t){if(t!==undefined&&e[0]!==t)throw new Error("Invalid network version");if(e.length===33){return{version:e[0],privateKey:e.slice(1,33),compressed:false}}if(e.length!==34)throw new Error("Invalid WIF length");if(e[33]!==1)throw new Error("Invalid compression flag");return{version:e[0],privateKey:e.slice(1,33),compressed:true}}function encodeRaw(e,t,r){var n=new Buffer(r?34:33);n.writeUInt8(e,0);t.copy(n,1);if(r){n[33]=1}return n}function decode(e,t){return decodeRaw(n.decode(e),t)}function encode(e,t,r){if(typeof e==="number")return n.encode(encodeRaw(e,t,r));return n.encode(encodeRaw(e.version,e.privateKey,e.compressed))}e.exports={decode:decode,decodeRaw:decodeRaw,encode:encode,encodeRaw:encodeRaw}},6036:(e,t,r)=>{"use strict";const n=r(3413);n.createWebSocketStream=r(9417);n.Server=r(7378);n.Receiver=r(3318);n.Sender=r(1445);n.WebSocket=n;n.WebSocketServer=n.Server;e.exports=n},3735:(e,t,r)=>{"use strict";const{EMPTY_BUFFER:n}=r(13);function concat(e,t){if(e.length===0)return n;if(e.length===1)return e[0];const r=Buffer.allocUnsafe(t);let i=0;for(let t=0;t<e.length;t++){const n=e[t];r.set(n,i);i+=n.length}if(i<t)return r.slice(0,i);return r}function _mask(e,t,r,n,i){for(let a=0;a<i;a++){r[n+a]=e[a]^t[a&3]}}function _unmask(e,t){for(let r=0;r<e.length;r++){e[r]^=t[r&3]}}function toArrayBuffer(e){if(e.byteLength===e.buffer.byteLength){return e.buffer}return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function toBuffer(e){toBuffer.readOnly=true;if(Buffer.isBuffer(e))return e;let t;if(e instanceof ArrayBuffer){t=Buffer.from(e)}else if(ArrayBuffer.isView(e)){t=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else{t=Buffer.from(e);toBuffer.readOnly=false}return t}try{const t=r(2888);e.exports={concat:concat,mask(e,r,n,i,a){if(a<48)_mask(e,r,n,i,a);else t.mask(e,r,n,i,a)},toArrayBuffer:toArrayBuffer,toBuffer:toBuffer,unmask(e,r){if(e.length<32)_unmask(e,r);else t.unmask(e,r)}}}catch(t){e.exports={concat:concat,mask:_mask,toArrayBuffer:toArrayBuffer,toBuffer:toBuffer,unmask:_unmask}}},13:e=>{"use strict";e.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}},3610:(e,t,r)=>{"use strict";const{kForOnEventAttribute:n,kListener:i}=r(13);const a=Symbol("kCode");const o=Symbol("kData");const s=Symbol("kError");const u=Symbol("kMessage");const c=Symbol("kReason");const l=Symbol("kTarget");const d=Symbol("kType");const h=Symbol("kWasClean");class Event{constructor(e){this[l]=null;this[d]=e}get target(){return this[l]}get type(){return this[d]}}Object.defineProperty(Event.prototype,"target",{enumerable:true});Object.defineProperty(Event.prototype,"type",{enumerable:true});class CloseEvent extends Event{constructor(e,t={}){super(e);this[a]=t.code===undefined?0:t.code;this[c]=t.reason===undefined?"":t.reason;this[h]=t.wasClean===undefined?false:t.wasClean}get code(){return this[a]}get reason(){return this[c]}get wasClean(){return this[h]}}Object.defineProperty(CloseEvent.prototype,"code",{enumerable:true});Object.defineProperty(CloseEvent.prototype,"reason",{enumerable:true});Object.defineProperty(CloseEvent.prototype,"wasClean",{enumerable:true});class ErrorEvent extends Event{constructor(e,t={}){super(e);this[s]=t.error===undefined?null:t.error;this[u]=t.message===undefined?"":t.message}get error(){return this[s]}get message(){return this[u]}}Object.defineProperty(ErrorEvent.prototype,"error",{enumerable:true});Object.defineProperty(ErrorEvent.prototype,"message",{enumerable:true});class MessageEvent extends Event{constructor(e,t={}){super(e);this[o]=t.data===undefined?null:t.data}get data(){return this[o]}}Object.defineProperty(MessageEvent.prototype,"data",{enumerable:true});const p={addEventListener(e,t,r={}){let a;if(e==="message"){a=function onMessage(e,r){const n=new MessageEvent("message",{data:r?e:e.toString()});n[l]=this;t.call(this,n)}}else if(e==="close"){a=function onClose(e,r){const n=new CloseEvent("close",{code:e,reason:r.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});n[l]=this;t.call(this,n)}}else if(e==="error"){a=function onError(e){const r=new ErrorEvent("error",{error:e,message:e.message});r[l]=this;t.call(this,r)}}else if(e==="open"){a=function onOpen(){const e=new Event("open");e[l]=this;t.call(this,e)}}else{return}a[n]=!!r[n];a[i]=t;if(r.once){this.once(e,a)}else{this.on(e,a)}},removeEventListener(e,t){for(const r of this.listeners(e)){if(r[i]===t&&!r[n]){this.removeListener(e,r);break}}}};e.exports={CloseEvent:CloseEvent,ErrorEvent:ErrorEvent,Event:Event,EventTarget:p,MessageEvent:MessageEvent}},5853:(e,t,r)=>{"use strict";const{tokenChars:n}=r(8415);function push(e,t,r){if(e[t]===undefined)e[t]=[r];else e[t].push(r)}function parse(e){const t=Object.create(null);let r=Object.create(null);let i=false;let a=false;let o=false;let s;let u;let c=-1;let l=-1;let d=-1;let h=0;for(;h<e.length;h++){l=e.charCodeAt(h);if(s===undefined){if(d===-1&&n[l]===1){if(c===-1)c=h}else if(h!==0&&(l===32||l===9)){if(d===-1&&c!==-1)d=h}else if(l===59||l===44){if(c===-1){throw new SyntaxError(`Unexpected character at index ${h}`)}if(d===-1)d=h;const n=e.slice(c,d);if(l===44){push(t,n,r);r=Object.create(null)}else{s=n}c=d=-1}else{throw new SyntaxError(`Unexpected character at index ${h}`)}}else if(u===undefined){if(d===-1&&n[l]===1){if(c===-1)c=h}else if(l===32||l===9){if(d===-1&&c!==-1)d=h}else if(l===59||l===44){if(c===-1){throw new SyntaxError(`Unexpected character at index ${h}`)}if(d===-1)d=h;push(r,e.slice(c,d),true);if(l===44){push(t,s,r);r=Object.create(null);s=undefined}c=d=-1}else if(l===61&&c!==-1&&d===-1){u=e.slice(c,h);c=d=-1}else{throw new SyntaxError(`Unexpected character at index ${h}`)}}else{if(a){if(n[l]!==1){throw new SyntaxError(`Unexpected character at index ${h}`)}if(c===-1)c=h;else if(!i)i=true;a=false}else if(o){if(n[l]===1){if(c===-1)c=h}else if(l===34&&c!==-1){o=false;d=h}else if(l===92){a=true}else{throw new SyntaxError(`Unexpected character at index ${h}`)}}else if(l===34&&e.charCodeAt(h-1)===61){o=true}else if(d===-1&&n[l]===1){if(c===-1)c=h}else if(c!==-1&&(l===32||l===9)){if(d===-1)d=h}else if(l===59||l===44){if(c===-1){throw new SyntaxError(`Unexpected character at index ${h}`)}if(d===-1)d=h;let n=e.slice(c,d);if(i){n=n.replace(/\\/g,"");i=false}push(r,u,n);if(l===44){push(t,s,r);r=Object.create(null);s=undefined}u=undefined;c=d=-1}else{throw new SyntaxError(`Unexpected character at index ${h}`)}}}if(c===-1||o||l===32||l===9){throw new SyntaxError("Unexpected end of input")}if(d===-1)d=h;const p=e.slice(c,d);if(s===undefined){push(t,p,r)}else{if(u===undefined){push(r,p,true)}else if(i){push(r,u,p.replace(/\\/g,""))}else{push(r,u,p)}push(t,s,r)}return t}function format(e){return Object.keys(e).map((t=>{let r=e[t];if(!Array.isArray(r))r=[r];return r.map((e=>[t].concat(Object.keys(e).map((t=>{let r=e[t];if(!Array.isArray(r))r=[r];return r.map((e=>e===true?t:`${t}=${e}`)).join("; ")}))).join("; "))).join(", ")})).join(", ")}e.exports={format:format,parse:parse}},261:e=>{"use strict";const t=Symbol("kDone");const r=Symbol("kRun");class Limiter{constructor(e){this[t]=()=>{this.pending--;this[r]()};this.concurrency=e||Infinity;this.jobs=[];this.pending=0}add(e){this.jobs.push(e);this[r]()}[r](){if(this.pending===this.concurrency)return;if(this.jobs.length){const e=this.jobs.shift();this.pending++;e(this[t])}}}e.exports=Limiter},5705:(e,t,r)=>{"use strict";const n=r(9796);const i=r(3735);const a=r(261);const{kStatusCode:o}=r(13);const s=Buffer.from([0,0,255,255]);const u=Symbol("permessage-deflate");const c=Symbol("total-length");const l=Symbol("callback");const d=Symbol("buffers");const h=Symbol("error");let p;class PerMessageDeflate{constructor(e,t,r){this._maxPayload=r|0;this._options=e||{};this._threshold=this._options.threshold!==undefined?this._options.threshold:1024;this._isServer=!!t;this._deflate=null;this._inflate=null;this.params=null;if(!p){const e=this._options.concurrencyLimit!==undefined?this._options.concurrencyLimit:10;p=new a(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={};if(this._options.serverNoContextTakeover){e.server_no_context_takeover=true}if(this._options.clientNoContextTakeover){e.client_no_context_takeover=true}if(this._options.serverMaxWindowBits){e.server_max_window_bits=this._options.serverMaxWindowBits}if(this._options.clientMaxWindowBits){e.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits==null){e.client_max_window_bits=true}return e}accept(e){e=this.normalizeParams(e);this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e);return this.params}cleanup(){if(this._inflate){this._inflate.close();this._inflate=null}if(this._deflate){const e=this._deflate[l];this._deflate.close();this._deflate=null;if(e){e(new Error("The deflate stream was closed while data was being processed"))}}}acceptAsServer(e){const t=this._options;const r=e.find((e=>{if(t.serverNoContextTakeover===false&&e.server_no_context_takeover||e.server_max_window_bits&&(t.serverMaxWindowBits===false||typeof t.serverMaxWindowBits==="number"&&t.serverMaxWindowBits>e.server_max_window_bits)||typeof t.clientMaxWindowBits==="number"&&!e.client_max_window_bits){return false}return true}));if(!r){throw new Error("None of the extension offers can be accepted")}if(t.serverNoContextTakeover){r.server_no_context_takeover=true}if(t.clientNoContextTakeover){r.client_no_context_takeover=true}if(typeof t.serverMaxWindowBits==="number"){r.server_max_window_bits=t.serverMaxWindowBits}if(typeof t.clientMaxWindowBits==="number"){r.client_max_window_bits=t.clientMaxWindowBits}else if(r.client_max_window_bits===true||t.clientMaxWindowBits===false){delete r.client_max_window_bits}return r}acceptAsClient(e){const t=e[0];if(this._options.clientNoContextTakeover===false&&t.client_no_context_takeover){throw new Error('Unexpected parameter "client_no_context_takeover"')}if(!t.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number"){t.client_max_window_bits=this._options.clientMaxWindowBits}}else if(this._options.clientMaxWindowBits===false||typeof this._options.clientMaxWindowBits==="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits){throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}return t}normalizeParams(e){e.forEach((e=>{Object.keys(e).forEach((t=>{let r=e[t];if(r.length>1){throw new Error(`Parameter "${t}" must have only a single value`)}r=r[0];if(t==="client_max_window_bits"){if(r!==true){const e=+r;if(!Number.isInteger(e)||e<8||e>15){throw new TypeError(`Invalid value for parameter "${t}": ${r}`)}r=e}else if(!this._isServer){throw new TypeError(`Invalid value for parameter "${t}": ${r}`)}}else if(t==="server_max_window_bits"){const e=+r;if(!Number.isInteger(e)||e<8||e>15){throw new TypeError(`Invalid value for parameter "${t}": ${r}`)}r=e}else if(t==="client_no_context_takeover"||t==="server_no_context_takeover"){if(r!==true){throw new TypeError(`Invalid value for parameter "${t}": ${r}`)}}else{throw new Error(`Unknown parameter "${t}"`)}e[t]=r}))}));return e}decompress(e,t,r){p.add((n=>{this._decompress(e,t,((e,t)=>{n();r(e,t)}))}))}compress(e,t,r){p.add((n=>{this._compress(e,t,((e,t)=>{n();r(e,t)}))}))}_decompress(e,t,r){const a=this._isServer?"client":"server";if(!this._inflate){const e=`${a}_max_window_bits`;const t=typeof this.params[e]!=="number"?n.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=n.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t});this._inflate[u]=this;this._inflate[c]=0;this._inflate[d]=[];this._inflate.on("error",inflateOnError);this._inflate.on("data",inflateOnData)}this._inflate[l]=r;this._inflate.write(e);if(t)this._inflate.write(s);this._inflate.flush((()=>{const e=this._inflate[h];if(e){this._inflate.close();this._inflate=null;r(e);return}const n=i.concat(this._inflate[d],this._inflate[c]);if(this._inflate._readableState.endEmitted){this._inflate.close();this._inflate=null}else{this._inflate[c]=0;this._inflate[d]=[];if(t&&this.params[`${a}_no_context_takeover`]){this._inflate.reset()}}r(null,n)}))}_compress(e,t,r){const a=this._isServer?"server":"client";if(!this._deflate){const e=`${a}_max_window_bits`;const t=typeof this.params[e]!=="number"?n.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=n.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t});this._deflate[c]=0;this._deflate[d]=[];this._deflate.on("data",deflateOnData)}this._deflate[l]=r;this._deflate.write(e);this._deflate.flush(n.Z_SYNC_FLUSH,(()=>{if(!this._deflate){return}let e=i.concat(this._deflate[d],this._deflate[c]);if(t)e=e.slice(0,e.length-4);this._deflate[l]=null;this._deflate[c]=0;this._deflate[d]=[];if(t&&this.params[`${a}_no_context_takeover`]){this._deflate.reset()}r(null,e)}))}}e.exports=PerMessageDeflate;function deflateOnData(e){this[d].push(e);this[c]+=e.length}function inflateOnData(e){this[c]+=e.length;if(this[u]._maxPayload<1||this[c]<=this[u]._maxPayload){this[d].push(e);return}this[h]=new RangeError("Max payload size exceeded");this[h].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH";this[h][o]=1009;this.removeListener("data",inflateOnData);this.reset()}function inflateOnError(e){this[u]._inflate=null;e[o]=1007;this[l](e)}},3318:(e,t,r)=>{"use strict";const{Writable:n}=r(2781);const i=r(5705);const{BINARY_TYPES:a,EMPTY_BUFFER:o,kStatusCode:s,kWebSocket:u}=r(13);const{concat:c,toArrayBuffer:l,unmask:d}=r(3735);const{isValidStatusCode:h,isValidUTF8:p}=r(8415);const m=0;const g=1;const v=2;const b=3;const y=4;const w=5;class Receiver extends n{constructor(e={}){super();this._binaryType=e.binaryType||a[0];this._extensions=e.extensions||{};this._isServer=!!e.isServer;this._maxPayload=e.maxPayload|0;this._skipUTF8Validation=!!e.skipUTF8Validation;this[u]=undefined;this._bufferedBytes=0;this._buffers=[];this._compressed=false;this._payloadLength=0;this._mask=undefined;this._fragmented=0;this._masked=false;this._fin=false;this._opcode=0;this._totalPayloadLength=0;this._messageLength=0;this._fragments=[];this._state=m;this._loop=false}_write(e,t,r){if(this._opcode===8&&this._state==m)return r();this._bufferedBytes+=e.length;this._buffers.push(e);this.startLoop(r)}consume(e){this._bufferedBytes-=e;if(e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){const t=this._buffers[0];this._buffers[0]=t.slice(e);return t.slice(0,e)}const t=Buffer.allocUnsafe(e);do{const r=this._buffers[0];const n=t.length-e;if(e>=r.length){t.set(this._buffers.shift(),n)}else{t.set(new Uint8Array(r.buffer,r.byteOffset,e),n);this._buffers[0]=r.slice(e)}e-=r.length}while(e>0);return t}startLoop(e){let t;this._loop=true;do{switch(this._state){case m:t=this.getInfo();break;case g:t=this.getPayloadLength16();break;case v:t=this.getPayloadLength64();break;case b:this.getMask();break;case y:t=this.getData(e);break;default:this._loop=false;return}}while(this._loop);e(t)}getInfo(){if(this._bufferedBytes<2){this._loop=false;return}const e=this.consume(2);if((e[0]&48)!==0){this._loop=false;return error(RangeError,"RSV2 and RSV3 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_2_3")}const t=(e[0]&64)===64;if(t&&!this._extensions[i.extensionName]){this._loop=false;return error(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1")}this._fin=(e[0]&128)===128;this._opcode=e[0]&15;this._payloadLength=e[1]&127;if(this._opcode===0){if(t){this._loop=false;return error(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1")}if(!this._fragmented){this._loop=false;return error(RangeError,"invalid opcode 0",true,1002,"WS_ERR_INVALID_OPCODE")}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){this._loop=false;return error(RangeError,`invalid opcode ${this._opcode}`,true,1002,"WS_ERR_INVALID_OPCODE")}this._compressed=t}else if(this._opcode>7&&this._opcode<11){if(!this._fin){this._loop=false;return error(RangeError,"FIN must be set",true,1002,"WS_ERR_EXPECTED_FIN")}if(t){this._loop=false;return error(RangeError,"RSV1 must be clear",true,1002,"WS_ERR_UNEXPECTED_RSV_1")}if(this._payloadLength>125){this._loop=false;return error(RangeError,`invalid payload length ${this._payloadLength}`,true,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH")}}else{this._loop=false;return error(RangeError,`invalid opcode ${this._opcode}`,true,1002,"WS_ERR_INVALID_OPCODE")}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;this._masked=(e[1]&128)===128;if(this._isServer){if(!this._masked){this._loop=false;return error(RangeError,"MASK must be set",true,1002,"WS_ERR_EXPECTED_MASK")}}else if(this._masked){this._loop=false;return error(RangeError,"MASK must be clear",true,1002,"WS_ERR_UNEXPECTED_MASK")}if(this._payloadLength===126)this._state=g;else if(this._payloadLength===127)this._state=v;else return this.haveLength()}getPayloadLength16(){if(this._bufferedBytes<2){this._loop=false;return}this._payloadLength=this.consume(2).readUInt16BE(0);return this.haveLength()}getPayloadLength64(){if(this._bufferedBytes<8){this._loop=false;return}const e=this.consume(8);const t=e.readUInt32BE(0);if(t>Math.pow(2,53-32)-1){this._loop=false;return error(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",false,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH")}this._payloadLength=t*Math.pow(2,32)+e.readUInt32BE(4);return this.haveLength()}haveLength(){if(this._payloadLength&&this._opcode<8){this._totalPayloadLength+=this._payloadLength;if(this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){this._loop=false;return error(RangeError,"Max payload size exceeded",false,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH")}}if(this._masked)this._state=b;else this._state=y}getMask(){if(this._bufferedBytes<4){this._loop=false;return}this._mask=this.consume(4);this._state=y}getData(e){let t=o;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=false;return}t=this.consume(this._payloadLength);if(this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0){d(t,this._mask)}}if(this._opcode>7)return this.controlMessage(t);if(this._compressed){this._state=w;this.decompress(t,e);return}if(t.length){this._messageLength=this._totalPayloadLength;this._fragments.push(t)}return this.dataMessage()}decompress(e,t){const r=this._extensions[i.extensionName];r.decompress(e,this._fin,((e,r)=>{if(e)return t(e);if(r.length){this._messageLength+=r.length;if(this._messageLength>this._maxPayload&&this._maxPayload>0){return t(error(RangeError,"Max payload size exceeded",false,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"))}this._fragments.push(r)}const n=this.dataMessage();if(n)return t(n);this.startLoop(t)}))}dataMessage(){if(this._fin){const e=this._messageLength;const t=this._fragments;this._totalPayloadLength=0;this._messageLength=0;this._fragmented=0;this._fragments=[];if(this._opcode===2){let r;if(this._binaryType==="nodebuffer"){r=c(t,e)}else if(this._binaryType==="arraybuffer"){r=l(c(t,e))}else{r=t}this.emit("message",r,true)}else{const r=c(t,e);if(!this._skipUTF8Validation&&!p(r)){this._loop=false;return error(Error,"invalid UTF-8 sequence",true,1007,"WS_ERR_INVALID_UTF8")}this.emit("message",r,false)}}this._state=m}controlMessage(e){if(this._opcode===8){this._loop=false;if(e.length===0){this.emit("conclude",1005,o);this.end()}else if(e.length===1){return error(RangeError,"invalid payload length 1",true,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH")}else{const t=e.readUInt16BE(0);if(!h(t)){return error(RangeError,`invalid status code ${t}`,true,1002,"WS_ERR_INVALID_CLOSE_CODE")}const r=e.slice(2);if(!this._skipUTF8Validation&&!p(r)){return error(Error,"invalid UTF-8 sequence",true,1007,"WS_ERR_INVALID_UTF8")}this.emit("conclude",t,r);this.end()}}else if(this._opcode===9){this.emit("ping",e)}else{this.emit("pong",e)}this._state=m}}e.exports=Receiver;function error(e,t,r,n,i){const a=new e(r?`Invalid WebSocket frame: ${t}`:t);Error.captureStackTrace(a,error);a.code=i;a[s]=n;return a}},1445:(e,t,r)=>{"use strict";const n=r(1808);const i=r(4404);const{randomFillSync:a}=r(6113);const o=r(5705);const{EMPTY_BUFFER:s}=r(13);const{isValidStatusCode:u}=r(8415);const{mask:c,toBuffer:l}=r(3735);const d=Symbol("kByteLength");const h=Buffer.alloc(4);class Sender{constructor(e,t,r){this._extensions=t||{};if(r){this._generateMask=r;this._maskBuffer=Buffer.alloc(4)}this._socket=e;this._firstFragment=true;this._compress=false;this._bufferedBytes=0;this._deflating=false;this._queue=[]}static frame(e,t){let r;let n=false;let i=2;let o=false;if(t.mask){r=t.maskBuffer||h;if(t.generateMask){t.generateMask(r)}else{a(r,0,4)}o=(r[0]|r[1]|r[2]|r[3])===0;i=6}let s;if(typeof e==="string"){if((!t.mask||o)&&t[d]!==undefined){s=t[d]}else{e=Buffer.from(e);s=e.length}}else{s=e.length;n=t.mask&&t.readOnly&&!o}let u=s;if(s>=65536){i+=8;u=127}else if(s>125){i+=2;u=126}const l=Buffer.allocUnsafe(n?s+i:i);l[0]=t.fin?t.opcode|128:t.opcode;if(t.rsv1)l[0]|=64;l[1]=u;if(u===126){l.writeUInt16BE(s,2)}else if(u===127){l[2]=l[3]=0;l.writeUIntBE(s,4,6)}if(!t.mask)return[l,e];l[1]|=128;l[i-4]=r[0];l[i-3]=r[1];l[i-2]=r[2];l[i-1]=r[3];if(o)return[l,e];if(n){c(e,r,l,i,s);return[l]}c(e,r,e,0,s);return[l,e]}close(e,t,r,n){let i;if(e===undefined){i=s}else if(typeof e!=="number"||!u(e)){throw new TypeError("First argument must be a valid error code number")}else if(t===undefined||!t.length){i=Buffer.allocUnsafe(2);i.writeUInt16BE(e,0)}else{const r=Buffer.byteLength(t);if(r>123){throw new RangeError("The message must not be greater than 123 bytes")}i=Buffer.allocUnsafe(2+r);i.writeUInt16BE(e,0);if(typeof t==="string"){i.write(t,2)}else{i.set(t,2)}}const a={[d]:i.length,fin:true,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:false,rsv1:false};if(this._deflating){this.enqueue([this.dispatch,i,false,a,n])}else{this.sendFrame(Sender.frame(i,a),n)}}ping(e,t,r){let n;let i;if(typeof e==="string"){n=Buffer.byteLength(e);i=false}else{e=l(e);n=e.length;i=l.readOnly}if(n>125){throw new RangeError("The data size must not be greater than 125 bytes")}const a={[d]:n,fin:true,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:i,rsv1:false};if(this._deflating){this.enqueue([this.dispatch,e,false,a,r])}else{this.sendFrame(Sender.frame(e,a),r)}}pong(e,t,r){let n;let i;if(typeof e==="string"){n=Buffer.byteLength(e);i=false}else{e=l(e);n=e.length;i=l.readOnly}if(n>125){throw new RangeError("The data size must not be greater than 125 bytes")}const a={[d]:n,fin:true,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:i,rsv1:false};if(this._deflating){this.enqueue([this.dispatch,e,false,a,r])}else{this.sendFrame(Sender.frame(e,a),r)}}send(e,t,r){const n=this._extensions[o.extensionName];let i=t.binary?2:1;let a=t.compress;let s;let u;if(typeof e==="string"){s=Buffer.byteLength(e);u=false}else{e=l(e);s=e.length;u=l.readOnly}if(this._firstFragment){this._firstFragment=false;if(a&&n&&n.params[n._isServer?"server_no_context_takeover":"client_no_context_takeover"]){a=s>=n._threshold}this._compress=a}else{a=false;i=0}if(t.fin)this._firstFragment=true;if(n){const n={[d]:s,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:u,rsv1:a};if(this._deflating){this.enqueue([this.dispatch,e,this._compress,n,r])}else{this.dispatch(e,this._compress,n,r)}}else{this.sendFrame(Sender.frame(e,{[d]:s,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:u,rsv1:false}),r)}}dispatch(e,t,r,n){if(!t){this.sendFrame(Sender.frame(e,r),n);return}const i=this._extensions[o.extensionName];this._bufferedBytes+=r[d];this._deflating=true;i.compress(e,r.fin,((e,t)=>{if(this._socket.destroyed){const e=new Error("The socket was closed while data was being compressed");if(typeof n==="function")n(e);for(let t=0;t<this._queue.length;t++){const r=this._queue[t];const n=r[r.length-1];if(typeof n==="function")n(e)}return}this._bufferedBytes-=r[d];this._deflating=false;r.readOnly=false;this.sendFrame(Sender.frame(t,r),n);this.dequeue()}))}dequeue(){while(!this._deflating&&this._queue.length){const e=this._queue.shift();this._bufferedBytes-=e[3][d];Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][d];this._queue.push(e)}sendFrame(e,t){if(e.length===2){this._socket.cork();this._socket.write(e[0]);this._socket.write(e[1],t);this._socket.uncork()}else{this._socket.write(e[0],t)}}}e.exports=Sender},9417:(e,t,r)=>{"use strict";const{Duplex:n}=r(2781);function emitClose(e){e.emit("close")}function duplexOnEnd(){if(!this.destroyed&&this._writableState.finished){this.destroy()}}function duplexOnError(e){this.removeListener("error",duplexOnError);this.destroy();if(this.listenerCount("error")===0){this.emit("error",e)}}function createWebSocketStream(e,t){let r=true;const i=new n({...t,autoDestroy:false,emitClose:false,objectMode:false,writableObjectMode:false});e.on("message",(function message(t,r){const n=!r&&i._readableState.objectMode?t.toString():t;if(!i.push(n))e.pause()}));e.once("error",(function error(e){if(i.destroyed)return;r=false;i.destroy(e)}));e.once("close",(function close(){if(i.destroyed)return;i.push(null)}));i._destroy=function(t,n){if(e.readyState===e.CLOSED){n(t);process.nextTick(emitClose,i);return}let a=false;e.once("error",(function error(e){a=true;n(e)}));e.once("close",(function close(){if(!a)n(t);process.nextTick(emitClose,i)}));if(r)e.terminate()};i._final=function(t){if(e.readyState===e.CONNECTING){e.once("open",(function open(){i._final(t)}));return}if(e._socket===null)return;if(e._socket._writableState.finished){t();if(i._readableState.endEmitted)i.destroy()}else{e._socket.once("finish",(function finish(){t()}));e.close()}};i._read=function(){if(e.isPaused)e.resume()};i._write=function(t,r,n){if(e.readyState===e.CONNECTING){e.once("open",(function open(){i._write(t,r,n)}));return}e.send(t,n)};i.on("end",duplexOnEnd);i.on("error",duplexOnError);return i}e.exports=createWebSocketStream},4421:(e,t,r)=>{"use strict";const{tokenChars:n}=r(8415);function parse(e){const t=new Set;let r=-1;let i=-1;let a=0;for(a;a<e.length;a++){const o=e.charCodeAt(a);if(i===-1&&n[o]===1){if(r===-1)r=a}else if(a!==0&&(o===32||o===9)){if(i===-1&&r!==-1)i=a}else if(o===44){if(r===-1){throw new SyntaxError(`Unexpected character at index ${a}`)}if(i===-1)i=a;const n=e.slice(r,i);if(t.has(n)){throw new SyntaxError(`The "${n}" subprotocol is duplicated`)}t.add(n);r=i=-1}else{throw new SyntaxError(`Unexpected character at index ${a}`)}}if(r===-1||i!==-1){throw new SyntaxError("Unexpected end of input")}const o=e.slice(r,a);if(t.has(o)){throw new SyntaxError(`The "${o}" subprotocol is duplicated`)}t.add(o);return t}e.exports={parse:parse}},8415:(e,t,r)=>{"use strict";const n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function isValidStatusCode(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}function _isValidUTF8(e){const t=e.length;let r=0;while(r<t){if((e[r]&128)===0){r++}else if((e[r]&224)===192){if(r+1===t||(e[r+1]&192)!==128||(e[r]&254)===192){return false}r+=2}else if((e[r]&240)===224){if(r+2>=t||(e[r+1]&192)!==128||(e[r+2]&192)!==128||e[r]===224&&(e[r+1]&224)===128||e[r]===237&&(e[r+1]&224)===160){return false}r+=3}else if((e[r]&248)===240){if(r+3>=t||(e[r+1]&192)!==128||(e[r+2]&192)!==128||(e[r+3]&192)!==128||e[r]===240&&(e[r+1]&240)===128||e[r]===244&&e[r+1]>143||e[r]>244){return false}r+=4}else{return false}}return true}try{const t=r(5466);e.exports={isValidStatusCode:isValidStatusCode,isValidUTF8(e){return e.length<150?_isValidUTF8(e):t(e)},tokenChars:n}}catch(t){e.exports={isValidStatusCode:isValidStatusCode,isValidUTF8:_isValidUTF8,tokenChars:n}}},7378:(e,t,r)=>{"use strict";const n=r(2361);const i=r(3685);const a=r(5687);const o=r(1808);const s=r(4404);const{createHash:u}=r(6113);const c=r(5853);const l=r(5705);const d=r(4421);const h=r(3413);const{GUID:p,kWebSocket:m}=r(13);const g=/^[+/0-9A-Za-z]{22}==$/;const v=0;const b=1;const y=2;class WebSocketServer extends n{constructor(e,t){super();e={maxPayload:100*1024*1024,skipUTF8Validation:false,perMessageDeflate:false,handleProtocols:null,clientTracking:true,verifyClient:null,noServer:false,backlog:null,server:null,host:null,path:null,port:null,WebSocket:h,...e};if(e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer){throw new TypeError('One and only one of the "port", "server", or "noServer" options '+"must be specified")}if(e.port!=null){this._server=i.createServer(((e,t)=>{const r=i.STATUS_CODES[426];t.writeHead(426,{"Content-Length":r.length,"Content-Type":"text/plain"});t.end(r)}));this._server.listen(e.port,e.host,e.backlog,t)}else if(e.server){this._server=e.server}if(this._server){const e=this.emit.bind(this,"connection");this._removeListeners=addListeners(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(t,r,n)=>{this.handleUpgrade(t,r,n,e)}})}if(e.perMessageDeflate===true)e.perMessageDeflate={};if(e.clientTracking){this.clients=new Set;this._shouldEmitClose=false}this.options=e;this._state=v}address(){if(this.options.noServer){throw new Error('The server is operating in "noServer" mode')}if(!this._server)return null;return this._server.address()}close(e){if(this._state===y){if(e){this.once("close",(()=>{e(new Error("The server is not running"))}))}process.nextTick(emitClose,this);return}if(e)this.once("close",e);if(this._state===b)return;this._state=b;if(this.options.noServer||this.options.server){if(this._server){this._removeListeners();this._removeListeners=this._server=null}if(this.clients){if(!this.clients.size){process.nextTick(emitClose,this)}else{this._shouldEmitClose=true}}else{process.nextTick(emitClose,this)}}else{const e=this._server;this._removeListeners();this._removeListeners=this._server=null;e.close((()=>{emitClose(this)}))}}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?");const r=t!==-1?e.url.slice(0,t):e.url;if(r!==this.options.path)return false}return true}handleUpgrade(e,t,r,n){t.on("error",socketOnError);const i=e.headers["sec-websocket-key"]!==undefined?e.headers["sec-websocket-key"]:false;const a=+e.headers["sec-websocket-version"];if(e.method!=="GET"||e.headers.upgrade.toLowerCase()!=="websocket"||!i||!g.test(i)||a!==8&&a!==13||!this.shouldHandle(e)){return abortHandshake(t,400)}const o=e.headers["sec-websocket-protocol"];let s=new Set;if(o!==undefined){try{s=d.parse(o)}catch(e){return abortHandshake(t,400)}}const u=e.headers["sec-websocket-extensions"];const h={};if(this.options.perMessageDeflate&&u!==undefined){const e=new l(this.options.perMessageDeflate,true,this.options.maxPayload);try{const t=c.parse(u);if(t[l.extensionName]){e.accept(t[l.extensionName]);h[l.extensionName]=e}}catch(e){return abortHandshake(t,400)}}if(this.options.verifyClient){const o={origin:e.headers[`${a===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(o,((a,o,u,c)=>{if(!a){return abortHandshake(t,o||401,u,c)}this.completeUpgrade(h,i,s,e,t,r,n)}));return}if(!this.options.verifyClient(o))return abortHandshake(t,401)}this.completeUpgrade(h,i,s,e,t,r,n)}completeUpgrade(e,t,r,n,i,a,o){if(!i.readable||!i.writable)return i.destroy();if(i[m]){throw new Error("server.handleUpgrade() was called more than once with the same "+"socket, possibly due to a misconfiguration")}if(this._state>v)return abortHandshake(i,503);const s=u("sha1").update(t+p).digest("base64");const d=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${s}`];const h=new this.options.WebSocket(null);if(r.size){const e=this.options.handleProtocols?this.options.handleProtocols(r,n):r.values().next().value;if(e){d.push(`Sec-WebSocket-Protocol: ${e}`);h._protocol=e}}if(e[l.extensionName]){const t=e[l.extensionName].params;const r=c.format({[l.extensionName]:[t]});d.push(`Sec-WebSocket-Extensions: ${r}`);h._extensions=e}this.emit("headers",d,n);i.write(d.concat("\r\n").join("\r\n"));i.removeListener("error",socketOnError);h.setSocket(i,a,{maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation});if(this.clients){this.clients.add(h);h.on("close",(()=>{this.clients.delete(h);if(this._shouldEmitClose&&!this.clients.size){process.nextTick(emitClose,this)}}))}o(h,n)}}e.exports=WebSocketServer;function addListeners(e,t){for(const r of Object.keys(t))e.on(r,t[r]);return function removeListeners(){for(const r of Object.keys(t)){e.removeListener(r,t[r])}}}function emitClose(e){e._state=y;e.emit("close")}function socketOnError(){this.destroy()}function abortHandshake(e,t,r,n){if(e.writable){r=r||i.STATUS_CODES[t];n={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(r),...n};e.write(`HTTP/1.1 ${t} ${i.STATUS_CODES[t]}\r\n`+Object.keys(n).map((e=>`${e}: ${n[e]}`)).join("\r\n")+"\r\n\r\n"+r)}e.removeListener("error",socketOnError);e.destroy()}},3413:(e,t,r)=>{"use strict";const n=r(2361);const i=r(5687);const a=r(3685);const o=r(1808);const s=r(4404);const{randomBytes:u,createHash:c}=r(6113);const{Readable:l}=r(2781);const{URL:d}=r(7310);const h=r(5705);const p=r(3318);const m=r(1445);const{BINARY_TYPES:g,EMPTY_BUFFER:v,GUID:b,kForOnEventAttribute:y,kListener:w,kStatusCode:_,kWebSocket:k,NOOP:A}=r(13);const{EventTarget:{addEventListener:E,removeEventListener:I}}=r(3610);const{format:T,parse:B}=r(5853);const{toBuffer:M}=r(3735);const N=["CONNECTING","OPEN","CLOSING","CLOSED"];const x=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;const O=[8,13];const P=30*1e3;class WebSocket extends n{constructor(e,t,r){super();this._binaryType=g[0];this._closeCode=1006;this._closeFrameReceived=false;this._closeFrameSent=false;this._closeMessage=v;this._closeTimer=null;this._extensions={};this._paused=false;this._protocol="";this._readyState=WebSocket.CONNECTING;this._receiver=null;this._sender=null;this._socket=null;if(e!==null){this._bufferedAmount=0;this._isServer=false;this._redirects=0;if(t===undefined){t=[]}else if(!Array.isArray(t)){if(typeof t==="object"&&t!==null){r=t;t=[]}else{t=[t]}}initAsClient(this,e,t,r)}else{this._isServer=true}}get binaryType(){return this._binaryType}set binaryType(e){if(!g.includes(e))return;this._binaryType=e;if(this._receiver)this._receiver._binaryType=e}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,r){const n=new p({binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation});this._sender=new m(e,this._extensions,r.generateMask);this._receiver=n;this._socket=e;n[k]=this;e[k]=this;n.on("conclude",receiverOnConclude);n.on("drain",receiverOnDrain);n.on("error",receiverOnError);n.on("message",receiverOnMessage);n.on("ping",receiverOnPing);n.on("pong",receiverOnPong);e.setTimeout(0);e.setNoDelay();if(t.length>0)e.unshift(t);e.on("close",socketOnClose);e.on("data",socketOnData);e.on("end",socketOnEnd);e.on("error",socketOnError);this._readyState=WebSocket.OPEN;this.emit("open")}emitClose(){if(!this._socket){this._readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[h.extensionName]){this._extensions[h.extensionName].cleanup()}this._receiver.removeAllListeners();this._readyState=WebSocket.CLOSED;this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const e="WebSocket was closed before the connection was established";return abortHandshake(this,this._req,e)}if(this.readyState===WebSocket.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)){this._socket.end()}return}this._readyState=WebSocket.CLOSING;this._sender.close(e,t,!this._isServer,(e=>{if(e)return;this._closeFrameSent=true;if(this._closeFrameReceived||this._receiver._writableState.errorEmitted){this._socket.end()}}));this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),P)}pause(){if(this.readyState===WebSocket.CONNECTING||this.readyState===WebSocket.CLOSED){return}this._paused=true;this._socket.pause()}ping(e,t,r){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof e==="function"){r=e;e=t=undefined}else if(typeof t==="function"){r=t;t=undefined}if(typeof e==="number")e=e.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,e,r);return}if(t===undefined)t=!this._isServer;this._sender.ping(e||v,t,r)}pong(e,t,r){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof e==="function"){r=e;e=t=undefined}else if(typeof t==="function"){r=t;t=undefined}if(typeof e==="number")e=e.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,e,r);return}if(t===undefined)t=!this._isServer;this._sender.pong(e||v,t,r)}resume(){if(this.readyState===WebSocket.CONNECTING||this.readyState===WebSocket.CLOSED){return}this._paused=false;if(!this._receiver._writableState.needDrain)this._socket.resume()}send(e,t,r){if(this.readyState===WebSocket.CONNECTING){throw new Error("WebSocket is not open: readyState 0 (CONNECTING)")}if(typeof t==="function"){r=t;t={}}if(typeof e==="number")e=e.toString();if(this.readyState!==WebSocket.OPEN){sendAfterClose(this,e,r);return}const n={binary:typeof e!=="string",mask:!this._isServer,compress:true,fin:true,...t};if(!this._extensions[h.extensionName]){n.compress=false}this._sender.send(e||v,n,r)}terminate(){if(this.readyState===WebSocket.CLOSED)return;if(this.readyState===WebSocket.CONNECTING){const e="WebSocket was closed before the connection was established";return abortHandshake(this,this._req,e)}if(this._socket){this._readyState=WebSocket.CLOSING;this._socket.destroy()}}}Object.defineProperty(WebSocket,"CONNECTING",{enumerable:true,value:N.indexOf("CONNECTING")});Object.defineProperty(WebSocket.prototype,"CONNECTING",{enumerable:true,value:N.indexOf("CONNECTING")});Object.defineProperty(WebSocket,"OPEN",{enumerable:true,value:N.indexOf("OPEN")});Object.defineProperty(WebSocket.prototype,"OPEN",{enumerable:true,value:N.indexOf("OPEN")});Object.defineProperty(WebSocket,"CLOSING",{enumerable:true,value:N.indexOf("CLOSING")});Object.defineProperty(WebSocket.prototype,"CLOSING",{enumerable:true,value:N.indexOf("CLOSING")});Object.defineProperty(WebSocket,"CLOSED",{enumerable:true,value:N.indexOf("CLOSED")});Object.defineProperty(WebSocket.prototype,"CLOSED",{enumerable:true,value:N.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((e=>{Object.defineProperty(WebSocket.prototype,e,{enumerable:true})}));["open","error","close","message"].forEach((e=>{Object.defineProperty(WebSocket.prototype,`on${e}`,{enumerable:true,get(){for(const t of this.listeners(e)){if(t[y])return t[w]}return null},set(t){for(const t of this.listeners(e)){if(t[y]){this.removeListener(e,t);break}}if(typeof t!=="function")return;this.addEventListener(e,t,{[y]:true})}})}));WebSocket.prototype.addEventListener=E;WebSocket.prototype.removeEventListener=I;e.exports=WebSocket;function initAsClient(e,t,r,n){const o={protocolVersion:O[1],maxPayload:100*1024*1024,skipUTF8Validation:false,perMessageDeflate:true,followRedirects:false,maxRedirects:10,...n,createConnection:undefined,socketPath:undefined,hostname:undefined,protocol:undefined,timeout:undefined,method:undefined,host:undefined,path:undefined,port:undefined};if(!O.includes(o.protocolVersion)){throw new RangeError(`Unsupported protocol version: ${o.protocolVersion} `+`(supported versions: ${O.join(", ")})`)}let s;if(t instanceof d){s=t;e._url=t.href}else{try{s=new d(t)}catch(e){throw new SyntaxError(`Invalid URL: ${t}`)}e._url=t}const l=s.protocol==="wss:";const p=s.protocol==="ws+unix:";let m;if(s.protocol!=="ws:"&&!l&&!p){m='The URL\'s protocol must be one of "ws:", "wss:", or "ws+unix:"'}else if(p&&!s.pathname){m="The URL's pathname is empty"}else if(s.hash){m="The URL contains a fragment identifier"}if(m){const t=new SyntaxError(m);if(e._redirects===0){throw t}else{emitErrorAndClose(e,t);return}}const g=l?443:80;const v=u(16).toString("base64");const y=l?i.get:a.get;const w=new Set;let _;o.createConnection=l?tlsConnect:netConnect;o.defaultPort=o.defaultPort||g;o.port=s.port||g;o.host=s.hostname.startsWith("[")?s.hostname.slice(1,-1):s.hostname;o.headers={"Sec-WebSocket-Version":o.protocolVersion,"Sec-WebSocket-Key":v,Connection:"Upgrade",Upgrade:"websocket",...o.headers};o.path=s.pathname+s.search;o.timeout=o.handshakeTimeout;if(o.perMessageDeflate){_=new h(o.perMessageDeflate!==true?o.perMessageDeflate:{},false,o.maxPayload);o.headers["Sec-WebSocket-Extensions"]=T({[h.extensionName]:_.offer()})}if(r.length){for(const e of r){if(typeof e!=="string"||!x.test(e)||w.has(e)){throw new SyntaxError("An invalid or duplicated subprotocol was specified")}w.add(e)}o.headers["Sec-WebSocket-Protocol"]=r.join(",")}if(o.origin){if(o.protocolVersion<13){o.headers["Sec-WebSocket-Origin"]=o.origin}else{o.headers.Origin=o.origin}}if(s.username||s.password){o.auth=`${s.username}:${s.password}`}if(p){const e=o.path.split(":");o.socketPath=e[0];o.path=e[1]}if(o.followRedirects){if(e._redirects===0){e._originalHost=s.host;const t=n&&n.headers;n={...n,headers:{}};if(t){for(const[e,r]of Object.entries(t)){n.headers[e.toLowerCase()]=r}}}else if(s.host!==e._originalHost){delete o.headers.authorization;delete o.headers.cookie;delete o.headers.host;o.auth=undefined}if(o.auth&&!n.headers.authorization){n.headers.authorization="Basic "+Buffer.from(o.auth).toString("base64")}}let k=e._req=y(o);if(o.timeout){k.on("timeout",(()=>{abortHandshake(e,k,"Opening handshake has timed out")}))}k.on("error",(t=>{if(k===null||k.aborted)return;k=e._req=null;emitErrorAndClose(e,t)}));k.on("response",(i=>{const a=i.headers.location;const s=i.statusCode;if(a&&o.followRedirects&&s>=300&&s<400){if(++e._redirects>o.maxRedirects){abortHandshake(e,k,"Maximum redirects exceeded");return}k.abort();let i;try{i=new d(a,t)}catch(t){const r=new SyntaxError(`Invalid URL: ${a}`);emitErrorAndClose(e,r);return}initAsClient(e,i,r,n)}else if(!e.emit("unexpected-response",k,i)){abortHandshake(e,k,`Unexpected server response: ${i.statusCode}`)}}));k.on("upgrade",((t,r,n)=>{e.emit("upgrade",t);if(e.readyState!==WebSocket.CONNECTING)return;k=e._req=null;const i=c("sha1").update(v+b).digest("base64");if(t.headers["sec-websocket-accept"]!==i){abortHandshake(e,r,"Invalid Sec-WebSocket-Accept header");return}const a=t.headers["sec-websocket-protocol"];let s;if(a!==undefined){if(!w.size){s="Server sent a subprotocol but none was requested"}else if(!w.has(a)){s="Server sent an invalid subprotocol"}}else if(w.size){s="Server sent no subprotocol"}if(s){abortHandshake(e,r,s);return}if(a)e._protocol=a;const u=t.headers["sec-websocket-extensions"];if(u!==undefined){if(!_){const t="Server sent a Sec-WebSocket-Extensions header but no extension "+"was requested";abortHandshake(e,r,t);return}let t;try{t=B(u)}catch(t){const n="Invalid Sec-WebSocket-Extensions header";abortHandshake(e,r,n);return}const n=Object.keys(t);if(n.length!==1||n[0]!==h.extensionName){const t="Server indicated an extension that was not requested";abortHandshake(e,r,t);return}try{_.accept(t[h.extensionName])}catch(t){const n="Invalid Sec-WebSocket-Extensions header";abortHandshake(e,r,n);return}e._extensions[h.extensionName]=_}e.setSocket(r,n,{generateMask:o.generateMask,maxPayload:o.maxPayload,skipUTF8Validation:o.skipUTF8Validation})}))}function emitErrorAndClose(e,t){e._readyState=WebSocket.CLOSING;e.emit("error",t);e.emitClose()}function netConnect(e){e.path=e.socketPath;return o.connect(e)}function tlsConnect(e){e.path=undefined;if(!e.servername&&e.servername!==""){e.servername=o.isIP(e.host)?"":e.host}return s.connect(e)}function abortHandshake(e,t,r){e._readyState=WebSocket.CLOSING;const n=new Error(r);Error.captureStackTrace(n,abortHandshake);if(t.setHeader){t.abort();if(t.socket&&!t.socket.destroyed){t.socket.destroy()}t.once("abort",e.emitClose.bind(e));e.emit("error",n)}else{t.destroy(n);t.once("error",e.emit.bind(e,"error"));t.once("close",e.emitClose.bind(e))}}function sendAfterClose(e,t,r){if(t){const r=M(t).length;if(e._socket)e._sender._bufferedBytes+=r;else e._bufferedAmount+=r}if(r){const t=new Error(`WebSocket is not open: readyState ${e.readyState} `+`(${N[e.readyState]})`);r(t)}}function receiverOnConclude(e,t){const r=this[k];r._closeFrameReceived=true;r._closeMessage=t;r._closeCode=e;if(r._socket[k]===undefined)return;r._socket.removeListener("data",socketOnData);process.nextTick(resume,r._socket);if(e===1005)r.close();else r.close(e,t)}function receiverOnDrain(){const e=this[k];if(!e.isPaused)e._socket.resume()}function receiverOnError(e){const t=this[k];if(t._socket[k]!==undefined){t._socket.removeListener("data",socketOnData);process.nextTick(resume,t._socket);t.close(e[_])}t.emit("error",e)}function receiverOnFinish(){this[k].emitClose()}function receiverOnMessage(e,t){this[k].emit("message",e,t)}function receiverOnPing(e){const t=this[k];t.pong(e,!t._isServer,A);t.emit("ping",e)}function receiverOnPong(e){this[k].emit("pong",e)}function resume(e){e.resume()}function socketOnClose(){const e=this[k];this.removeListener("close",socketOnClose);this.removeListener("data",socketOnData);this.removeListener("end",socketOnEnd);e._readyState=WebSocket.CLOSING;let t;if(!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&(t=e._socket.read())!==null){e._receiver.write(t)}e._receiver.end();this[k]=undefined;clearTimeout(e._closeTimer);if(e._receiver._writableState.finished||e._receiver._writableState.errorEmitted){e.emitClose()}else{e._receiver.on("error",receiverOnFinish);e._receiver.on("finish",receiverOnFinish)}}function socketOnData(e){if(!this[k]._receiver.write(e)){this.pause()}}function socketOnEnd(){const e=this[k];e._readyState=WebSocket.CLOSING;e._receiver.end();this.end()}function socketOnError(){const e=this[k];this.removeListener("error",socketOnError);this.on("error",A);if(e){e._readyState=WebSocket.CLOSING;this.destroy()}}},7852:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r;(function(e){e["ed25519"]="ed25519";e["secp256k1"]="ecdsa-secp256k1"})(r||(r={}));t["default"]=r},3623:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t._private=void 0;const a=r(5687);const o=r(3544);const s=r(5449);const u=i(r(1439));var c;(function(e){e["Testnet"]="faucet.altnet.rippletest.net";e["Devnet"]="faucet.devnet.rippletest.net"})(c||(c={}));const l=1;const d=20;function fundWallet(e,t){return n(this,void 0,void 0,(function*(){if(!this.isConnected()){throw new s.RippledError("Client not connected, cannot call faucet")}const r=e&&(0,o.isValidClassicAddress)(e.classicAddress)?e:u.default.generate();const n=Buffer.from((new TextEncoder).encode(JSON.stringify({destination:r.classicAddress})));let i=0;try{i=Number(yield this.getXrpBalance(r.classicAddress))}catch(e){}const a=getHTTPOptions(this,n,t===null||t===void 0?void 0:t.faucetHost);return returnPromise(a,this,i,r,n)}))}function returnPromise(e,t,r,i,o){return n(this,void 0,void 0,(function*(){return new Promise(((s,u)=>{const c=(0,a.request)(e,(e=>{const a=[];e.on("data",(e=>a.push(e)));e.on("end",(()=>n(this,void 0,void 0,(function*(){return onEnd(e,a,t,r,i,s,u)}))))}));c.write(o);c.on("error",(e=>{u(e)}));c.end()}))}))}function getHTTPOptions(e,t,r){return{hostname:r!==null&&r!==void 0?r:getFaucetHost(e),port:443,path:"/accounts",method:"POST",headers:{"Content-Type":"application/json","Content-Length":t.length}}}function onEnd(e,t,r,i,a,o,u){var c;return n(this,void 0,void 0,(function*(){const n=Buffer.concat(t).toString();if((c=e.headers["content-type"])===null||c===void 0?void 0:c.startsWith("application/json")){yield processSuccessfulResponse(r,n,i,a,o,u)}else{u(new s.XRPLFaucetError(`Content type is not \`application/json\`: ${JSON.stringify({statusCode:e.statusCode,contentType:e.headers["content-type"],body:n})}`))}}))}function processSuccessfulResponse(e,t,r,i,a,o){return n(this,void 0,void 0,(function*(){const n=JSON.parse(t);const u=n.account.classicAddress;if(!u){o(new s.XRPLFaucetError(`The faucet account is undefined`));return}try{const t=yield getUpdatedBalance(e,u,r);if(t>r){a({wallet:i,balance:yield getUpdatedBalance(e,i.classicAddress,r)})}else{o(new s.XRPLFaucetError(`Unable to fund address with faucet after waiting ${l*d} seconds`))}}catch(e){if(e instanceof Error){o(new s.XRPLFaucetError(e.message))}o(e)}}))}function getUpdatedBalance(e,t,r){return n(this,void 0,void 0,(function*(){return new Promise(((i,a)=>{let o=d;const u=setInterval((()=>n(this,void 0,void 0,(function*(){if(o<0){clearInterval(u);i(r)}else{o-=1}try{let n;try{n=Number(yield e.getXrpBalance(t))}catch(e){}if(n>r){clearInterval(u);i(n)}}catch(e){clearInterval(u);if(e instanceof Error){a(new s.XRPLFaucetError(`Unable to check if the address ${t} balance has increased. Error: ${e.message}`))}a(e)}}))),l*1e3)}))}))}function getFaucetHost(e){const t=e.url;if(t.includes("altnet")||t.includes("testnet")){return c.Testnet}if(t.includes("devnet")){return c.Devnet}throw new s.XRPLFaucetError("Faucet URL is not defined or inferrable.")}t["default"]=fundWallet;const h={FaucetNetwork:c,getFaucetHost:getFaucetHost};t._private=h},1439:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=r(821);const a=r(781);const o=n(r(2219));const s=r(3544);const u=r(8169);const c=r(9466);const l=n(r(7852));const d=r(5449);const h=r(2692);const p=r(2116);const m=l.default.ed25519;const g="m/44'/144'/0'/0/0";function hexFromBuffer(e){return e.toString("hex").toUpperCase()}class Wallet{constructor(e,t,r={}){this.publicKey=e;this.privateKey=t;this.classicAddress=r.masterAddress?(0,h.ensureClassicAddress)(r.masterAddress):(0,c.deriveAddress)(e);this.seed=r.seed}get address(){return this.classicAddress}static generate(e=m){const t=(0,c.generateSeed)({algorithm:e});return Wallet.fromSeed(t)}static fromSeed(e,t={}){return Wallet.deriveWallet(e,{algorithm:t.algorithm,masterAddress:t.masterAddress})}static fromMnemonic(e,t={}){var r;const n=(0,a.mnemonicToSeedSync)(e);const o=(0,i.fromSeed)(n);const s=o.derivePath((r=t.derivationPath)!==null&&r!==void 0?r:g);if(s.privateKey===undefined){throw new d.ValidationError("Unable to derive privateKey from mnemonic input")}const u=hexFromBuffer(s.publicKey);const c=hexFromBuffer(s.privateKey);return new Wallet(u,`00${c}`,{masterAddress:t.masterAddress})}static fromEntropy(e,t={}){var r;const n=(r=t.algorithm)!==null&&r!==void 0?r:m;const i={entropy:Uint8Array.from(e),algorithm:n};const a=(0,c.generateSeed)(i);return Wallet.deriveWallet(a,{algorithm:n,masterAddress:t.masterAddress})}static deriveWallet(e,t={}){var r;const{publicKey:n,privateKey:i}=(0,c.deriveKeypair)(e,{algorithm:(r=t.algorithm)!==null&&r!==void 0?r:m});return new Wallet(n,i,{seed:e,masterAddress:t.masterAddress})}sign(e,t){let r=false;if(typeof t==="string"&&t.startsWith("X")){r=t}else if(t){r=this.classicAddress}if(e.TxnSignature||e.Signers){throw new d.ValidationError('txJSON must not contain "TxnSignature" or "Signers" properties')}const n=Object.assign({},e);n.SigningPubKey=r?"":this.publicKey;if(r){const e={Account:r,SigningPubKey:this.publicKey,TxnSignature:computeSignature(n,this.privateKey,r)};n.Signers=[{Signer:e}]}else{n.TxnSignature=computeSignature(n,this.privateKey)}const i=(0,u.encode)(n);this.checkTxSerialization(i,e);return{tx_blob:i,hash:(0,p.hashSignedTx)(i)}}verifyTransaction(e){const t=(0,u.decode)(e);const r=(0,u.encodeForSigning)(t);const n=t.TxnSignature;return(0,c.verify)(r,n,this.publicKey)}getXAddress(e=false,t=false){return(0,s.classicAddressToXAddress)(this.classicAddress,e,t)}checkTxSerialization(e,t){var r;const n=(0,u.decode)(e);const i=Object.assign({},t);if(!n.TxnSignature&&!n.Signers){throw new d.ValidationError("Serialized transaction must have a TxnSignature or Signers property")}delete n.TxnSignature;delete n.Signers;if(!t.SigningPubKey){delete n.SigningPubKey}(r=i.Memos)===null||r===void 0?void 0:r.map((e=>{const t=Object.assign({},e);if(e.Memo.MemoData){t.Memo.MemoData=e.Memo.MemoData.toUpperCase()}if(e.Memo.MemoType){t.Memo.MemoType=e.Memo.MemoType.toUpperCase()}if(e.Memo.MemoFormat){t.Memo.MemoFormat=e.Memo.MemoFormat.toUpperCase()}return e}));if(!o.default.isEqual(n,t)){const e={decoded:n,tx:t};const r=new d.ValidationError("Serialized transaction does not match original txJSON. See error.data",e);throw r}}}Wallet.fromSecret=Wallet.fromSeed;function computeSignature(e,t,r){if(r){const n=(0,s.isValidXAddress)(r)?(0,s.xAddressToClassicAddress)(r).classicAddress:r;return(0,c.sign)((0,u.encodeForMultisigning)(e,n),t)}return(0,c.sign)((0,u.encodeForSigning)(e),t)}t["default"]=Wallet},5481:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.multisign=t.verifySignature=t.authorizeChannel=void 0;const n=r(1806);const i=r(2219);const a=r(3544);const o=r(8169);const s=r(9466);const u=r(5449);const c=r(4174);function multisign(e){if(e.length===0){throw new u.ValidationError("There were 0 transactions to multisign")}e.forEach((e=>{const t=getDecodedTransaction(e);(0,c.validate)(t);if(t.Signers==null||t.Signers.length===0){throw new u.ValidationError("For multisigning all transactions must include a Signers field containing an array of signatures. You may have forgotten to pass the 'forMultisign' parameter when signing.")}if(t.SigningPubKey!==""){throw new u.ValidationError("SigningPubKey must be an empty string for all transactions when multisigning.")}}));const t=e.map((e=>getDecodedTransaction(e)));validateTransactionEquivalence(t);return(0,o.encode)(getTransactionWithAllSigners(t))}t.multisign=multisign;function authorizeChannel(e,t,r){const n=(0,o.encodeForSigningClaim)({channel:t,amount:r});return(0,s.sign)(n,e.privateKey)}t.authorizeChannel=authorizeChannel;function verifySignature(e){const t=getDecodedTransaction(e);return(0,s.verify)((0,o.encodeForSigning)(t),t.TxnSignature,t.SigningPubKey)}t.verifySignature=verifySignature;function validateTransactionEquivalence(e){const t=JSON.stringify(Object.assign(Object.assign({},e[0]),{Signers:null}));if(e.slice(1).some((e=>JSON.stringify(Object.assign(Object.assign({},e),{Signers:null}))!==t))){throw new u.ValidationError("txJSON is not the same for all signedTransactions")}}function getTransactionWithAllSigners(e){const t=(0,i.flatMap)(e,(e=>{var t;return(t=e.Signers)!==null&&t!==void 0?t:[]})).sort(compareSigners);return Object.assign(Object.assign({},e[0]),{Signers:t})}function compareSigners(e,t){return addressToBigNumber(e.Signer.Account).comparedTo(addressToBigNumber(t.Signer.Account))}function addressToBigNumber(e){const t=Buffer.from((0,a.decodeAccountID)(e)).toString("hex");const r=16;return new n.BigNumber(t,r)}function getDecodedTransaction(e){if(typeof e==="object"){return(0,o.decode)((0,o.encode)(e))}return(0,o.decode)(e)}},8856:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});const i=r(9107);class BroadcastClient extends i.Client{constructor(e,t={}){super(e[0],t);const r=e.map((e=>new i.Client(e,t)));this.clients=r;this.getMethodNames().forEach((e=>{this[e]=(...t)=>n(this,void 0,void 0,(function*(){return Promise.race(r.map((r=>n(this,void 0,void 0,(function*(){return r[e](...t)})))))}))}));this.connect=()=>n(this,void 0,void 0,(function*(){yield Promise.all(r.map((e=>n(this,void 0,void 0,(function*(){return e.connect()})))))}));this.disconnect=()=>n(this,void 0,void 0,(function*(){yield Promise.all(r.map((e=>n(this,void 0,void 0,(function*(){return e.disconnect()})))))}));this.isConnected=()=>r.map((e=>e.isConnected())).every(Boolean);r.forEach((e=>{e.on("error",((e,t,r)=>this.emit("error",e,t,r)))}))}getMethodNames(){const e=[];const t=this.clients[0];const r=Object.getOwnPropertyNames(t);r.push(...Object.getOwnPropertyNames(Object.getPrototypeOf(t)));for(const n of r){if(typeof t[n]==="function"&&n!=="constructor"&&n!=="on"){e.push(n)}}return e}}t["default"]=BroadcastClient},8435:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});class ConnectionManager{constructor(){this.promisesAwaitingConnection=[]}resolveAllAwaiting(){this.promisesAwaitingConnection.map((({resolve:e})=>e()));this.promisesAwaitingConnection=[]}rejectAllAwaiting(e){this.promisesAwaitingConnection.map((({reject:t})=>t(e)));this.promisesAwaitingConnection=[]}awaitConnection(){return r(this,void 0,void 0,(function*(){return new Promise(((e,t)=>{this.promisesAwaitingConnection.push({resolve:e,reject:t})}))}))}}t["default"]=ConnectionManager},7906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=100;const n=1e3;class ExponentialBackoff{constructor(e={}){var t,i;this.factor=2;this.numAttempts=0;this.ms=(t=e.min)!==null&&t!==void 0?t:r;this.max=(i=e.max)!==null&&i!==void 0?i:n}get attempts(){return this.numAttempts}duration(){const e=this.ms*Math.pow(this.factor,this.numAttempts);this.numAttempts+=1;return Math.floor(Math.min(e,this.max))}reset(){this.numAttempts=0}}t["default"]=ExponentialBackoff},8339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5449);class RequestManager{constructor(){this.nextId=0;this.promisesAwaitingResponse=new Map}resolve(e,t){const r=this.promisesAwaitingResponse.get(e);if(r==null){throw new n.XrplError(`No existing promise with id ${e}`)}clearTimeout(r.timer);r.resolve(t);this.deletePromise(e)}reject(e,t){const r=this.promisesAwaitingResponse.get(e);if(r==null){throw new n.XrplError(`No existing promise with id ${e}`)}clearTimeout(r.timer);r.reject(t);this.deletePromise(e)}rejectAll(e){this.promisesAwaitingResponse.forEach(((t,r,n)=>{this.reject(r,e);this.deletePromise(r)}))}createRequest(e,t){let r;if(e.id==null){r=this.nextId;this.nextId+=1}else{r=e.id}const i=JSON.stringify(Object.assign(Object.assign({},e),{id:r}));const a=setTimeout((()=>this.reject(r,new n.TimeoutError)),t);if(a.unref){a.unref()}if(this.promisesAwaitingResponse.has(r)){throw new n.XrplError(`Response with id '${r}' is already pending`)}const o=new Promise(((e,t)=>{this.promisesAwaitingResponse.set(r,{resolve:e,reject:t,timer:a})}));return[r,i,o]}handleResponse(e){var t,r;if(e.id==null||!(typeof e.id==="string"||typeof e.id==="number")){throw new n.ResponseFormatError("valid id not found in response",e)}if(!this.promisesAwaitingResponse.has(e.id)){return}if(e.status==null){const t=new n.ResponseFormatError("Response has no status");this.reject(e.id,t)}if(e.status==="error"){const r=e;const i=new n.RippledError((t=r.error_message)!==null&&t!==void 0?t:r.error,r);this.reject(e.id,i);return}if(e.status!=="success"){const t=new n.ResponseFormatError(`unrecognized response.status: ${(r=e.status)!==null&&r!==void 0?r:""}`,e);this.reject(e.id,t);return}delete e.status;this.resolve(e.id,e)}deletePromise(e){this.promisesAwaitingResponse.delete(e)}}t["default"]=RequestManager},3303:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Connection=t.INTENTIONAL_DISCONNECT_CODE=void 0;const a=r(2361);const o=i(r(2219));const s=i(r(6036));const u=r(5449);const c=i(r(8435));const l=i(r(7906));const d=i(r(8339));const h=60;const p=20;const m=5;t.INTENTIONAL_DISCONNECT_CODE=4e3;function getAgent(e,t){if(t.proxy==null){return undefined}const n=new URL(e);const i=new URL(t.proxy);const a=o.default.omitBy({secureEndpoint:n.protocol==="wss:",secureProxy:i.protocol==="https:",auth:t.proxyAuthorization,ca:t.trustedCertificates,key:t.key,passphrase:t.passphrase,cert:t.certificate,href:i.href,origin:i.origin,protocol:i.protocol,username:i.username,password:i.password,host:i.host,hostname:i.hostname,port:i.port,pathname:i.pathname,search:i.search,hash:i.hash},(e=>e==null));let s;try{s=r(774)}catch(e){throw new Error('"proxy" option is not supported in the browser')}return new s(a)}function createWebSocket(e,t){const r={};r.agent=getAgent(e,t);if(t.authorization!=null){const e=Buffer.from(t.authorization).toString("base64");r.headers={Authorization:`Basic ${e}`}}const n=o.default.omitBy({ca:t.trustedCertificates,key:t.key,passphrase:t.passphrase,cert:t.certificate},(e=>e==null));const i=Object.assign(Object.assign({},r),n);const a=new s.default(e,i);if(typeof a.setMaxListeners==="function"){a.setMaxListeners(Infinity)}return a}function websocketSendAsync(e,t){return n(this,void 0,void 0,(function*(){return new Promise(((r,n)=>{e.send(t,(e=>{if(e){n(new u.DisconnectedError(e.message,e))}else{r()}}))}))}))}class Connection extends a.EventEmitter{constructor(e,t={}){super();this.ws=null;this.reconnectTimeoutID=null;this.heartbeatIntervalID=null;this.retryConnectionBackoff=new l.default({min:100,max:h*1e3});this.requestManager=new d.default;this.connectionManager=new c.default;this.trace=()=>{};this.setMaxListeners(Infinity);this.url=e;this.config=Object.assign({timeout:p*1e3,connectionTimeout:m*1e3},t);if(typeof t.trace==="function"){this.trace=t.trace}else if(t.trace){this.trace=console.log}}isConnected(){return this.state===s.default.OPEN}connect(){return n(this,void 0,void 0,(function*(){if(this.isConnected()){return Promise.resolve()}if(this.state===s.default.CONNECTING){return this.connectionManager.awaitConnection()}if(!this.url){return Promise.reject(new u.ConnectionError("Cannot connect because no server was specified"))}if(this.ws!=null){return Promise.reject(new u.XrplError("Websocket connection never cleaned up.",{state:this.state}))}const e=setTimeout((()=>{this.onConnectionFailed(new u.ConnectionError(`Error: connect() timed out after ${this.config.connectionTimeout} ms. If your internet connection is working, the `+`rippled server may be blocked or inaccessible. You can also try setting the 'connectionTimeout' option in the Client constructor.`))}),this.config.connectionTimeout);this.ws=createWebSocket(this.url,this.config);if(this.ws==null){throw new u.XrplError("Connect: created null websocket")}this.ws.on("error",(e=>this.onConnectionFailed(e)));this.ws.on("error",(()=>clearTimeout(e)));this.ws.on("close",(e=>this.onConnectionFailed(e)));this.ws.on("close",(()=>clearTimeout(e)));this.ws.once("open",(()=>{void this.onceOpen(e)}));return this.connectionManager.awaitConnection()}))}disconnect(){return n(this,void 0,void 0,(function*(){if(this.reconnectTimeoutID!==null){clearTimeout(this.reconnectTimeoutID);this.reconnectTimeoutID=null}if(this.state===s.default.CLOSED){return Promise.resolve(undefined)}if(this.ws==null){return Promise.resolve(undefined)}return new Promise((e=>{if(this.ws==null){e(undefined)}if(this.ws!=null){this.ws.once("close",(t=>e(t)))}if(this.ws!=null&&this.state!==s.default.CLOSING){this.ws.close(t.INTENTIONAL_DISCONNECT_CODE)}}))}))}reconnect(){return n(this,void 0,void 0,(function*(){this.emit("reconnect");yield this.disconnect();yield this.connect()}))}request(e,t){return n(this,void 0,void 0,(function*(){if(!this.shouldBeConnected||this.ws==null){throw new u.NotConnectedError}const[r,n,i]=this.requestManager.createRequest(e,t!==null&&t!==void 0?t:this.config.timeout);this.trace("send",n);websocketSendAsync(this.ws,n).catch((e=>{this.requestManager.reject(r,e)}));return i}))}getUrl(){var e;return(e=this.url)!==null&&e!==void 0?e:""}onMessage(e){this.trace("receive",e);let t;try{t=JSON.parse(e)}catch(t){if(t instanceof Error){this.emit("error","badMessage",t.message,e)}return}if(t.type==null&&t.error){this.emit("error",t.error,t.error_message,t);return}if(t.type){this.emit(t.type,t)}if(t.type==="response"){try{this.requestManager.handleResponse(t)}catch(t){if(t instanceof Error){this.emit("error","badMessage",t.message,e)}else{this.emit("error","badMessage",t,t)}}}}get state(){return this.ws?this.ws.readyState:s.default.CLOSED}get shouldBeConnected(){return this.ws!==null}onceOpen(e){return n(this,void 0,void 0,(function*(){if(this.ws==null){throw new u.XrplError("onceOpen: ws is null")}this.ws.removeAllListeners();clearTimeout(e);this.ws.on("message",(e=>this.onMessage(e)));this.ws.on("error",(e=>this.emit("error","websocket",e.message,e)));this.ws.once("close",((e,r)=>{if(this.ws==null){throw new u.XrplError("onceClose: ws is null")}this.clearHeartbeatInterval();this.requestManager.rejectAll(new u.DisconnectedError(`websocket was closed, ${new TextDecoder("utf-8").decode(r)}`));this.ws.removeAllListeners();this.ws=null;this.emit("disconnected",e);if(e!==t.INTENTIONAL_DISCONNECT_CODE){this.intentionalDisconnect()}}));try{this.retryConnectionBackoff.reset();this.startHeartbeatInterval();this.connectionManager.resolveAllAwaiting();this.emit("connected")}catch(e){if(e instanceof Error){this.connectionManager.rejectAllAwaiting(e);yield this.disconnect().catch((()=>{}))}}}))}intentionalDisconnect(){const e=this.retryConnectionBackoff.duration();this.trace("reconnect",`Retrying connection in ${e}ms.`);this.emit("reconnecting",this.retryConnectionBackoff.attempts);this.reconnectTimeoutID=setTimeout((()=>{this.reconnect().catch((e=>{this.emit("error","reconnect",e.message,e)}))}),e)}clearHeartbeatInterval(){if(this.heartbeatIntervalID){clearInterval(this.heartbeatIntervalID)}}startHeartbeatInterval(){this.clearHeartbeatInterval();this.heartbeatIntervalID=setInterval((()=>{void this.heartbeat()}),this.config.timeout)}heartbeat(){return n(this,void 0,void 0,(function*(){this.request({command:"ping"}).catch((()=>n(this,void 0,void 0,(function*(){return this.reconnect().catch((e=>{this.emit("error","reconnect",e.message,e)}))}))))}))}onConnectionFailed(e){if(this.ws){this.ws.removeAllListeners();this.ws.on("error",(()=>{}));this.ws.close();this.ws=null}if(typeof e==="number"){this.connectionManager.rejectAllAwaiting(new u.NotConnectedError(`Connection failed with code ${e}.`,{code:e}))}else if(e===null||e===void 0?void 0:e.message){this.connectionManager.rejectAllAwaiting(new u.NotConnectedError(e.message,e))}else{this.connectionManager.rejectAllAwaiting(new u.NotConnectedError("Connection failed."))}}}t.Connection=Connection},9107:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Client=void 0;const u=a(r(9491));const c=r(2361);const l=r(5449);const d=r(2188);const h=s(r(3623));const p=r(3303);const m=r(3907);function getCollectKeyFromCommand(e){switch(e){case"account_channels":return"channels";case"account_lines":return"lines";case"account_objects":return"account_objects";case"account_tx":return"transactions";case"account_offers":case"book_offers":return"offers";case"ledger_data":return"state";default:return null}}function clamp(e,t,r){u.ok(t<=r,"Illegal clamp bounds");return Math.min(Math.max(e,t),r)}const g=1.2;const v="2";const b=10;const y=400;const w=1e3;class Client extends c.EventEmitter{constructor(e,t={}){var r,n;super();this.autofill=d.autofill;this.submit=d.submit;this.submitAndWait=d.submitAndWait;this.prepareTransaction=d.autofill;this.getXrpBalance=d.getXrpBalance;this.getBalances=d.getBalances;this.getOrderbook=d.getOrderbook;this.getLedgerIndex=d.getLedgerIndex;this.fundWallet=h.default;if(typeof e!=="string"||!/wss?(?:\+unix)?:\/\//u.exec(e)){throw new l.ValidationError("server URI must start with `wss://`, `ws://`, `wss+unix://`, or `ws+unix://`.")}this.feeCushion=(r=t.feeCushion)!==null&&r!==void 0?r:g;this.maxFeeXRP=(n=t.maxFeeXRP)!==null&&n!==void 0?n:v;this.connection=new p.Connection(e,t);this.connection.on("error",((e,t,r)=>{this.emit("error",e,t,r)}));this.connection.on("connected",(()=>{this.emit("connected")}));this.connection.on("disconnected",(e=>{let t=e;if(t===p.INTENTIONAL_DISCONNECT_CODE){t=w}this.emit("disconnected",t)}));this.connection.on("ledgerClosed",(e=>{this.emit("ledgerClosed",e)}));this.connection.on("transaction",(e=>{(0,m.handleStreamPartialPayment)(e,this.connection.trace);this.emit("transaction",e)}));this.connection.on("validationReceived",(e=>{this.emit("validationReceived",e)}));this.connection.on("manifestReceived",(e=>{this.emit("manifestReceived",e)}));this.connection.on("peerStatusChange",(e=>{this.emit("peerStatusChange",e)}));this.connection.on("consensusPhase",(e=>{this.emit("consensusPhase",e)}));this.connection.on("path_find",(e=>{this.emit("path_find",e)}))}get url(){return this.connection.getUrl()}request(e){return o(this,void 0,void 0,(function*(){const t=yield this.connection.request(Object.assign(Object.assign({},e),{account:e.account?(0,d.ensureClassicAddress)(e.account):undefined}));(0,m.handlePartialPayment)(e.command,t);return t}))}requestNextPage(e,t){return o(this,void 0,void 0,(function*(){if(!t.result.marker){return Promise.reject(new l.NotFoundError("response does not have a next page"))}const r=Object.assign(Object.assign({},e),{marker:t.result.marker});return this.request(r)}))}on(e,t){return super.on(e,t)}requestAll(e,t){return o(this,void 0,void 0,(function*(){const r=t!==null&&t!==void 0?t:getCollectKeyFromCommand(e.command);if(!r){throw new l.ValidationError(`no collect key for command ${e.command}`)}const n=e.limit==null?Infinity:e.limit;let i=0;let a=e.marker;let o;const s=[];do{const t=clamp(n-i,b,y);const u=Object.assign(Object.assign({},e),{limit:t,marker:a});const c=yield this.connection.request(u);const d=c.result;if(!(r in d)){throw new l.XrplError(`${r} not in result`)}const h=d[r];a=d.marker;s.push(c);if(Array.isArray(h)){i+=h.length;o=h.length}else{o=0}}while(Boolean(a)&&i<n&&o!==0);return s}))}connect(){return o(this,void 0,void 0,(function*(){return this.connection.connect()}))}disconnect(){return o(this,void 0,void 0,(function*(){yield this.connection.disconnect()}))}isConnected(){return this.connection.isConnected()}}t.Client=Client},3907:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.handleStreamPartialPayment=t.handlePartialPayment=void 0;const i=n(r(1806));const a=r(8169);const o=r(4174);const s=r(7115);const u=2001;function amountsEqual(e,t){if(typeof e==="string"&&typeof t==="string"){return e===t}if(typeof e==="string"||typeof t==="string"){return false}const r=new i.default(e.value);const n=new i.default(t.value);return e.currency===t.currency&&e.issuer===t.issuer&&r.isEqualTo(n)}function isPartialPayment(e,t){var r;if(e==null||t==null||e.TransactionType!=="Payment"){return false}let n=t;if(typeof n==="string"){if(n==="unavailable"){return false}n=(0,a.decode)(n)}const i=typeof e.Flags==="number"?(0,s.isFlagEnabled)(e.Flags,o.PaymentFlags.tfPartialPayment):(r=e.Flags)===null||r===void 0?void 0:r.tfPartialPayment;if(!i){return false}const u=n.delivered_amount;const c=e.Amount;if(u===undefined){return false}return!amountsEqual(u,c)}function txHasPartialPayment(e){return isPartialPayment(e.result,e.result.meta)}function txEntryHasPartialPayment(e){return isPartialPayment(e.result.tx_json,e.result.metadata)}function accountTxHasPartialPayment(e){const{transactions:t}=e.result;const r=t.some((e=>isPartialPayment(e.tx,e.meta)));return r}function hasPartialPayment(e,t){switch(e){case"tx":return txHasPartialPayment(t);case"transaction_entry":return txEntryHasPartialPayment(t);case"account_tx":return accountTxHasPartialPayment(t);default:return false}}function handlePartialPayment(e,t){var r;if(hasPartialPayment(e,t)){const e=(r=t.warnings)!==null&&r!==void 0?r:[];const n={id:u,message:"This response contains a Partial Payment"};e.push(n);t.warnings=e}}t.handlePartialPayment=handlePartialPayment;function handleStreamPartialPayment(e,t){var r;if(isPartialPayment(e.transaction,e.meta)){const n=(r=e.warnings)!==null&&r!==void 0?r:[];const i={id:u,message:"This response contains a Partial Payment"};n.push(i);e.warnings=n;t("Partial payment received",JSON.stringify(e))}}t.handleStreamPartialPayment=handleStreamPartialPayment},5449:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.XRPLFaucetError=t.NotFoundError=t.ValidationError=t.ResponseFormatError=t.TimeoutError=t.RippledNotInitializedError=t.DisconnectedError=t.NotConnectedError=t.RippledError=t.ConnectionError=t.UnexpectedError=t.XrplError=void 0;const n=r(3837);class XrplError extends Error{constructor(e="",t){super(e);this.name=this.constructor.name;this.message=e;this.data=t;if(Error.captureStackTrace!=null){Error.captureStackTrace(this,this.constructor)}}toString(){let e=`[${this.name}(${this.message}`;if(this.data){e+=`, ${(0,n.inspect)(this.data)}`}e+=")]";return e}inspect(){return this.toString()}}t.XrplError=XrplError;class RippledError extends XrplError{}t.RippledError=RippledError;class UnexpectedError extends XrplError{}t.UnexpectedError=UnexpectedError;class ConnectionError extends XrplError{}t.ConnectionError=ConnectionError;class NotConnectedError extends ConnectionError{}t.NotConnectedError=NotConnectedError;class DisconnectedError extends ConnectionError{}t.DisconnectedError=DisconnectedError;class RippledNotInitializedError extends ConnectionError{}t.RippledNotInitializedError=RippledNotInitializedError;class TimeoutError extends ConnectionError{}t.TimeoutError=TimeoutError;class ResponseFormatError extends ConnectionError{}t.ResponseFormatError=ResponseFormatError;class ValidationError extends XrplError{}t.ValidationError=ValidationError;class XRPLFaucetError extends XrplError{}t.XRPLFaucetError=XRPLFaucetError;class NotFoundError extends XrplError{constructor(e="Not found"){super(e)}}t.NotFoundError=NotFoundError},73:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Wallet=t.Client=t.BroadcastClient=void 0;var o=r(8856);Object.defineProperty(t,"BroadcastClient",{enumerable:true,get:function(){return a(o).default}});var s=r(9107);Object.defineProperty(t,"Client",{enumerable:true,get:function(){return s.Client}});i(r(741),t);i(r(9682),t);i(r(5449),t);var u=r(1439);Object.defineProperty(t,"Wallet",{enumerable:true,get:function(){return a(u).default}});i(r(5481),t)},741:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.parseAccountRootFlags=t.setTransactionFlagsToNumber=t.LedgerEntry=void 0;t.LedgerEntry=a(r(629));var s=r(7756);Object.defineProperty(t,"setTransactionFlagsToNumber",{enumerable:true,get:function(){return s.setTransactionFlagsToNumber}});Object.defineProperty(t,"parseAccountRootFlags",{enumerable:true,get:function(){return s.parseAccountRootFlags}});o(r(2424),t);o(r(4174),t)},7092:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AccountRootFlags=void 0;var r;(function(e){e[e["lsfPasswordSpent"]=65536]="lsfPasswordSpent";e[e["lsfRequireDestTag"]=131072]="lsfRequireDestTag";e[e["lsfRequireAuth"]=262144]="lsfRequireAuth";e[e["lsfDisallowXRP"]=524288]="lsfDisallowXRP";e[e["lsfDisableMaster"]=1048576]="lsfDisableMaster";e[e["lsfNoFreeze"]=2097152]="lsfNoFreeze";e[e["lsfGlobalFreeze"]=4194304]="lsfGlobalFreeze";e[e["lsfDefaultRipple"]=8388608]="lsfDefaultRipple";e[e["lsfDepositAuth"]=16777216]="lsfDepositAuth"})(r=t.AccountRootFlags||(t.AccountRootFlags={}))},2401:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.OfferFlags=void 0;var r;(function(e){e[e["lsfPassive"]=65536]="lsfPassive";e[e["lsfSell"]=131072]="lsfSell"})(r=t.OfferFlags||(t.OfferFlags={}))},4882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RippleStateFlags=void 0;var r;(function(e){e[e["lsfLowReserve"]=65536]="lsfLowReserve";e[e["lsfHighReserve"]=131072]="lsfHighReserve";e[e["lsfLowAuth"]=262144]="lsfLowAuth";e[e["lsfHighAuth"]=524288]="lsfHighAuth";e[e["lsfLowNoRipple"]=1048576]="lsfLowNoRipple";e[e["lsfHighNoRipple"]=2097152]="lsfHighNoRipple";e[e["lsfLowFreeze"]=4194304]="lsfLowFreeze";e[e["lsfHighFreeze"]=8388608]="lsfHighFreeze"})(r=t.RippleStateFlags||(t.RippleStateFlags={}))},4041:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SignerListFlags=void 0;var r;(function(e){e[e["lsfOneOwnerCount"]=65536]="lsfOneOwnerCount"})(r=t.SignerListFlags||(t.SignerListFlags={}))},629:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SignerListFlags=t.RippleStateFlags=t.OfferFlags=t.AccountRootFlags=void 0;const n=r(7092);Object.defineProperty(t,"AccountRootFlags",{enumerable:true,get:function(){return n.AccountRootFlags}});const i=r(2401);Object.defineProperty(t,"OfferFlags",{enumerable:true,get:function(){return i.OfferFlags}});const a=r(4882);Object.defineProperty(t,"RippleStateFlags",{enumerable:true,get:function(){return a.RippleStateFlags}});const o=r(4041);Object.defineProperty(t,"SignerListFlags",{enumerable:true,get:function(){return o.SignerListFlags}})},2424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},1297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateNFTokenAcceptOffer=void 0;const n=r(5449);const i=r(5092);function validateNFTokenBrokerFee(e){const t=(0,i.parseAmountValue)(e.NFTokenBrokerFee);if(Number.isNaN(t)){throw new n.ValidationError("NFTokenAcceptOffer: invalid NFTokenBrokerFee")}if(t<=0){throw new n.ValidationError("NFTokenAcceptOffer: NFTokenBrokerFee must be greater than 0; omit if there is no fee")}if(e.NFTokenSellOffer==null||e.NFTokenBuyOffer==null){throw new n.ValidationError("NFTokenAcceptOffer: both NFTokenSellOffer and NFTokenBuyOffer must be set if using brokered mode")}}function validateNFTokenAcceptOffer(e){(0,i.validateBaseTransaction)(e);if(e.NFTokenBrokerFee!=null){validateNFTokenBrokerFee(e)}if(e.NFTokenSellOffer==null&&e.NFTokenBuyOffer==null){throw new n.ValidationError("NFTokenAcceptOffer: must set either NFTokenSellOffer or NFTokenBuyOffer")}}t.validateNFTokenAcceptOffer=validateNFTokenAcceptOffer},3107:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateNFTokenBurn=void 0;const n=r(5449);const i=r(5092);function validateNFTokenBurn(e){(0,i.validateBaseTransaction)(e);if(e.NFTokenID==null){throw new n.ValidationError("NFTokenBurn: missing field NFTokenID")}}t.validateNFTokenBurn=validateNFTokenBurn},6292:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateNFTokenCancelOffer=void 0;const n=r(5449);const i=r(5092);function validateNFTokenCancelOffer(e){(0,i.validateBaseTransaction)(e);if(!Array.isArray(e.NFTokenOffers)){throw new n.ValidationError("NFTokenCancelOffer: missing field NFTokenOffers")}if(e.NFTokenOffers.length<1){throw new n.ValidationError("NFTokenCancelOffer: empty field NFTokenOffers")}}t.validateNFTokenCancelOffer=validateNFTokenCancelOffer},3697:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateNFTokenCreateOffer=t.NFTokenCreateOfferFlags=void 0;const n=r(5449);const i=r(7115);const a=r(5092);var o;(function(e){e[e["tfSellToken"]=1]="tfSellToken"})(o=t.NFTokenCreateOfferFlags||(t.NFTokenCreateOfferFlags={}));function validateNFTokenSellOfferCases(e){if(e.Owner!=null){throw new n.ValidationError("NFTokenCreateOffer: Owner must not be present for sell offers")}}function validateNFTokenBuyOfferCases(e){if(e.Owner==null){throw new n.ValidationError("NFTokenCreateOffer: Owner must be present for buy offers")}if((0,a.parseAmountValue)(e.Amount)<=0){throw new n.ValidationError("NFTokenCreateOffer: Amount must be greater than 0 for buy offers")}}function validateNFTokenCreateOffer(e){(0,a.validateBaseTransaction)(e);if(e.Account===e.Owner){throw new n.ValidationError("NFTokenCreateOffer: Owner and Account must not be equal")}if(e.Account===e.Destination){throw new n.ValidationError("NFTokenCreateOffer: Destination and Account must not be equal")}if(e.NFTokenID==null){throw new n.ValidationError("NFTokenCreateOffer: missing field NFTokenID")}if(!(0,a.isAmount)(e.Amount)){throw new n.ValidationError("NFTokenCreateOffer: invalid Amount")}if(typeof e.Flags==="number"&&(0,i.isFlagEnabled)(e.Flags,o.tfSellToken)){validateNFTokenSellOfferCases(e)}else{validateNFTokenBuyOfferCases(e)}}t.validateNFTokenCreateOffer=validateNFTokenCreateOffer},2970:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateNFTokenMint=t.NFTokenMintFlags=void 0;const n=r(5449);const i=r(5092);var a;(function(e){e[e["tfBurnable"]=1]="tfBurnable";e[e["tfOnlyXRP"]=2]="tfOnlyXRP";e[e["tfTrustLine"]=4]="tfTrustLine";e[e["tfTransferable"]=8]="tfTransferable"})(a=t.NFTokenMintFlags||(t.NFTokenMintFlags={}));function validateNFTokenMint(e){(0,i.validateBaseTransaction)(e);if(e.Account===e.Issuer){throw new n.ValidationError("NFTokenMint: Issuer must not be equal to Account")}if(e.NFTokenTaxon==null){throw new n.ValidationError("NFTokenMint: missing field NFTokenTaxon")}}t.validateNFTokenMint=validateNFTokenMint},1321:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateAccountDelete=void 0;const n=r(5449);const i=r(5092);function validateAccountDelete(e){(0,i.validateBaseTransaction)(e);if(e.Destination===undefined){throw new n.ValidationError("AccountDelete: missing field Destination")}if(typeof e.Destination!=="string"){throw new n.ValidationError("AccountDelete: invalid Destination")}if(e.DestinationTag!==undefined&&typeof e.DestinationTag!=="number"){throw new n.ValidationError("AccountDelete: invalid DestinationTag")}}t.validateAccountDelete=validateAccountDelete},3473:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateAccountSet=t.AccountSetTfFlags=t.AccountSetAsfFlags=void 0;const n=r(5449);const i=r(5092);var a;(function(e){e[e["asfRequireDest"]=1]="asfRequireDest";e[e["asfRequireAuth"]=2]="asfRequireAuth";e[e["asfDisallowXRP"]=3]="asfDisallowXRP";e[e["asfDisableMaster"]=4]="asfDisableMaster";e[e["asfAccountTxnID"]=5]="asfAccountTxnID";e[e["asfNoFreeze"]=6]="asfNoFreeze";e[e["asfGlobalFreeze"]=7]="asfGlobalFreeze";e[e["asfDefaultRipple"]=8]="asfDefaultRipple";e[e["asfDepositAuth"]=9]="asfDepositAuth";e[e["asfAuthorizedNFTokenMinter"]=10]="asfAuthorizedNFTokenMinter"})(a=t.AccountSetAsfFlags||(t.AccountSetAsfFlags={}));var o;(function(e){e[e["tfRequireDestTag"]=65536]="tfRequireDestTag";e[e["tfOptionalDestTag"]=131072]="tfOptionalDestTag";e[e["tfRequireAuth"]=262144]="tfRequireAuth";e[e["tfOptionalAuth"]=524288]="tfOptionalAuth";e[e["tfDisallowXRP"]=1048576]="tfDisallowXRP";e[e["tfAllowXRP"]=2097152]="tfAllowXRP"})(o=t.AccountSetTfFlags||(t.AccountSetTfFlags={}));const s=3;const u=15;function validateAccountSet(e){(0,i.validateBaseTransaction)(e);if(e.ClearFlag!==undefined){if(typeof e.ClearFlag!=="number"){throw new n.ValidationError("AccountSet: invalid ClearFlag")}if(!Object.values(a).includes(e.ClearFlag)){throw new n.ValidationError("AccountSet: invalid ClearFlag")}}if(e.Domain!==undefined&&typeof e.Domain!=="string"){throw new n.ValidationError("AccountSet: invalid Domain")}if(e.EmailHash!==undefined&&typeof e.EmailHash!=="string"){throw new n.ValidationError("AccountSet: invalid EmailHash")}if(e.MessageKey!==undefined&&typeof e.MessageKey!=="string"){throw new n.ValidationError("AccountSet: invalid MessageKey")}if(e.SetFlag!==undefined){if(typeof e.SetFlag!=="number"){throw new n.ValidationError("AccountSet: invalid SetFlag")}if(!Object.values(a).includes(e.SetFlag)){throw new n.ValidationError("AccountSet: invalid SetFlag")}}if(e.TransferRate!==undefined&&typeof e.TransferRate!=="number"){throw new n.ValidationError("AccountSet: invalid TransferRate")}if(e.TickSize!==undefined){if(typeof e.TickSize!=="number"){throw new n.ValidationError("AccountSet: invalid TickSize")}if(e.TickSize!==0&&(e.TickSize<s||e.TickSize>u)){throw new n.ValidationError("AccountSet: invalid TickSize")}}}t.validateAccountSet=validateAccountSet},5834:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateCheckCancel=void 0;const n=r(5449);const i=r(5092);function validateCheckCancel(e){(0,i.validateBaseTransaction)(e);if(e.CheckID!==undefined&&typeof e.CheckID!=="string"){throw new n.ValidationError("CheckCancel: invalid CheckID")}}t.validateCheckCancel=validateCheckCancel},4531:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateCheckCash=void 0;const n=r(5449);const i=r(5092);function validateCheckCash(e){(0,i.validateBaseTransaction)(e);if(e.Amount==null&&e.DeliverMin==null){throw new n.ValidationError("CheckCash: must have either Amount or DeliverMin")}if(e.Amount!=null&&e.DeliverMin!=null){throw new n.ValidationError("CheckCash: cannot have both Amount and DeliverMin")}if(e.Amount!=null&&e.Amount!==undefined&&!(0,i.isAmount)(e.Amount)){throw new n.ValidationError("CheckCash: invalid Amount")}if(e.DeliverMin!=null&&e.DeliverMin!==undefined&&!(0,i.isAmount)(e.DeliverMin)){throw new n.ValidationError("CheckCash: invalid DeliverMin")}if(e.CheckID!==undefined&&typeof e.CheckID!=="string"){throw new n.ValidationError("CheckCash: invalid CheckID")}}t.validateCheckCash=validateCheckCash},1387:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateCheckCreate=void 0;const n=r(5449);const i=r(5092);function validateCheckCreate(e){(0,i.validateBaseTransaction)(e);if(e.SendMax===undefined){throw new n.ValidationError("CheckCreate: missing field SendMax")}if(e.Destination===undefined){throw new n.ValidationError("CheckCreate: missing field Destination")}if(typeof e.SendMax!=="string"&&!(0,i.isIssuedCurrency)(e.SendMax)){throw new n.ValidationError("CheckCreate: invalid SendMax")}if(typeof e.Destination!=="string"){throw new n.ValidationError("CheckCreate: invalid Destination")}if(e.DestinationTag!==undefined&&typeof e.DestinationTag!=="number"){throw new n.ValidationError("CheckCreate: invalid DestinationTag")}if(e.Expiration!==undefined&&typeof e.Expiration!=="number"){throw new n.ValidationError("CheckCreate: invalid Expiration")}if(e.InvoiceID!==undefined&&typeof e.InvoiceID!=="string"){throw new n.ValidationError("CheckCreate: invalid InvoiceID")}}t.validateCheckCreate=validateCheckCreate},5092:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseAmountValue=t.validateBaseTransaction=t.isAmount=t.isIssuedCurrency=void 0;const n=r(8169);const i=r(5449);const a=r(7115);const o=3;function isMemo(e){if(e.Memo==null){return false}const t=e.Memo;const r=Object.keys(t).length;const n=t.MemoData==null||typeof t.MemoData==="string";const i=t.MemoFormat==null||typeof t.MemoFormat==="string";const s=t.MemoType==null||typeof t.MemoType==="string";return r>=1&&r<=o&&n&&i&&s&&(0,a.onlyHasFields)(t,["MemoFormat","MemoData","MemoType"])}const s=3;function isSigner(e){const t=e;if(t.Signer==null){return false}const r=t.Signer;return Object.keys(r).length===s&&typeof r.Account==="string"&&typeof r.TxnSignature==="string"&&typeof r.SigningPubKey==="string"}const u=3;function isRecord(e){return e!==null&&typeof e==="object"}function isIssuedCurrency(e){return isRecord(e)&&Object.keys(e).length===u&&typeof e.value==="string"&&typeof e.issuer==="string"&&typeof e.currency==="string"}t.isIssuedCurrency=isIssuedCurrency;function isAmount(e){return typeof e==="string"||isIssuedCurrency(e)}t.isAmount=isAmount;function validateBaseTransaction(e){if(e.Account===undefined){throw new i.ValidationError("BaseTransaction: missing field Account")}if(typeof e.Account!=="string"){throw new i.ValidationError("BaseTransaction: Account not string")}if(e.TransactionType===undefined){throw new i.ValidationError("BaseTransaction: missing field TransactionType")}if(typeof e.TransactionType!=="string"){throw new i.ValidationError("BaseTransaction: TransactionType not string")}if(!n.TRANSACTION_TYPES.includes(e.TransactionType)){throw new i.ValidationError("BaseTransaction: Unknown TransactionType")}if(e.Fee!==undefined&&typeof e.Fee!=="string"){throw new i.ValidationError("BaseTransaction: invalid Fee")}if(e.Sequence!==undefined&&typeof e.Sequence!=="number"){throw new i.ValidationError("BaseTransaction: invalid Sequence")}if(e.AccountTxnID!==undefined&&typeof e.AccountTxnID!=="string"){throw new i.ValidationError("BaseTransaction: invalid AccountTxnID")}if(e.LastLedgerSequence!==undefined&&typeof e.LastLedgerSequence!=="number"){throw new i.ValidationError("BaseTransaction: invalid LastLedgerSequence")}const t=e.Memos;if(t!==undefined&&!t.every(isMemo)){throw new i.ValidationError("BaseTransaction: invalid Memos")}const r=e.Signers;if(r!==undefined&&(r.length===0||!r.every(isSigner))){throw new i.ValidationError("BaseTransaction: invalid Signers")}if(e.SourceTag!==undefined&&typeof e.SourceTag!=="number"){throw new i.ValidationError("BaseTransaction: invalid SourceTag")}if(e.SigningPubKey!==undefined&&typeof e.SigningPubKey!=="string"){throw new i.ValidationError("BaseTransaction: invalid SigningPubKey")}if(e.TicketSequence!==undefined&&typeof e.TicketSequence!=="number"){throw new i.ValidationError("BaseTransaction: invalid TicketSequence")}if(e.TxnSignature!==undefined&&typeof e.TxnSignature!=="string"){throw new i.ValidationError("BaseTransaction: invalid TxnSignature")}}t.validateBaseTransaction=validateBaseTransaction;function parseAmountValue(e){if(!isAmount(e)){return NaN}if(typeof e==="string"){return parseFloat(e)}return parseFloat(e.value)}t.parseAmountValue=parseAmountValue},9250:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateDepositPreauth=void 0;const n=r(5449);const i=r(5092);function validateDepositPreauth(e){(0,i.validateBaseTransaction)(e);if(e.Authorize!==undefined&&e.Unauthorize!==undefined){throw new n.ValidationError("DepositPreauth: can't provide both Authorize and Unauthorize fields")}if(e.Authorize===undefined&&e.Unauthorize===undefined){throw new n.ValidationError("DepositPreauth: must provide either Authorize or Unauthorize field")}if(e.Authorize!==undefined){if(typeof e.Authorize!=="string"){throw new n.ValidationError("DepositPreauth: Authorize must be a string")}if(e.Account===e.Authorize){throw new n.ValidationError("DepositPreauth: Account can't preauthorize its own address")}}if(e.Unauthorize!==undefined){if(typeof e.Unauthorize!=="string"){throw new n.ValidationError("DepositPreauth: Unauthorize must be a string")}if(e.Account===e.Unauthorize){throw new n.ValidationError("DepositPreauth: Account can't unauthorize its own address")}}}t.validateDepositPreauth=validateDepositPreauth},3311:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateEscrowCancel=void 0;const n=r(5449);const i=r(5092);function validateEscrowCancel(e){(0,i.validateBaseTransaction)(e);if(e.Owner===undefined){throw new n.ValidationError("EscrowCancel: missing Owner")}if(typeof e.Owner!=="string"){throw new n.ValidationError("EscrowCancel: Owner must be a string")}if(e.OfferSequence===undefined){throw new n.ValidationError("EscrowCancel: missing OfferSequence")}if(typeof e.OfferSequence!=="number"){throw new n.ValidationError("EscrowCancel: OfferSequence must be a number")}}t.validateEscrowCancel=validateEscrowCancel},3586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateEscrowCreate=void 0;const n=r(5449);const i=r(5092);function validateEscrowCreate(e){(0,i.validateBaseTransaction)(e);if(e.Amount===undefined){throw new n.ValidationError("EscrowCreate: missing field Amount")}if(typeof e.Amount!=="string"){throw new n.ValidationError("EscrowCreate: Amount must be a string")}if(e.Destination===undefined){throw new n.ValidationError("EscrowCreate: missing field Destination")}if(typeof e.Destination!=="string"){throw new n.ValidationError("EscrowCreate: Destination must be a string")}if(e.CancelAfter===undefined&&e.FinishAfter===undefined){throw new n.ValidationError("EscrowCreate: Either CancelAfter or FinishAfter must be specified")}if(e.FinishAfter===undefined&&e.Condition===undefined){throw new n.ValidationError("EscrowCreate: Either Condition or FinishAfter must be specified")}if(e.CancelAfter!==undefined&&typeof e.CancelAfter!=="number"){throw new n.ValidationError("EscrowCreate: CancelAfter must be a number")}if(e.FinishAfter!==undefined&&typeof e.FinishAfter!=="number"){throw new n.ValidationError("EscrowCreate: FinishAfter must be a number")}if(e.Condition!==undefined&&typeof e.Condition!=="string"){throw new n.ValidationError("EscrowCreate: Condition must be a string")}if(e.DestinationTag!==undefined&&typeof e.DestinationTag!=="number"){throw new n.ValidationError("EscrowCreate: DestinationTag must be a number")}}t.validateEscrowCreate=validateEscrowCreate},5728:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateEscrowFinish=void 0;const n=r(5449);const i=r(5092);function validateEscrowFinish(e){(0,i.validateBaseTransaction)(e);if(e.Owner===undefined){throw new n.ValidationError("EscrowFinish: missing field Owner")}if(typeof e.Owner!=="string"){throw new n.ValidationError("EscrowFinish: Owner must be a string")}if(e.OfferSequence===undefined){throw new n.ValidationError("EscrowFinish: missing field OfferSequence")}if(typeof e.OfferSequence!=="number"){throw new n.ValidationError("EscrowFinish: OfferSequence must be a number")}if(e.Condition!==undefined&&typeof e.Condition!=="string"){throw new n.ValidationError("EscrowFinish: Condition must be a string")}if(e.Fulfillment!==undefined&&typeof e.Fulfillment!=="string"){throw new n.ValidationError("EscrowFinish: Fulfillment must be a string")}}t.validateEscrowFinish=validateEscrowFinish},4174:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TrustSetFlags=t.PaymentChannelClaimFlags=t.PaymentFlags=t.OfferCreateFlags=t.NFTokenMintFlags=t.NFTokenCreateOfferFlags=t.AccountSetTfFlags=t.AccountSetAsfFlags=t.validate=void 0;var n=r(6913);Object.defineProperty(t,"validate",{enumerable:true,get:function(){return n.validate}});var i=r(3473);Object.defineProperty(t,"AccountSetAsfFlags",{enumerable:true,get:function(){return i.AccountSetAsfFlags}});Object.defineProperty(t,"AccountSetTfFlags",{enumerable:true,get:function(){return i.AccountSetTfFlags}});var a=r(3697);Object.defineProperty(t,"NFTokenCreateOfferFlags",{enumerable:true,get:function(){return a.NFTokenCreateOfferFlags}});var o=r(2970);Object.defineProperty(t,"NFTokenMintFlags",{enumerable:true,get:function(){return o.NFTokenMintFlags}});var s=r(2344);Object.defineProperty(t,"OfferCreateFlags",{enumerable:true,get:function(){return s.OfferCreateFlags}});var u=r(4943);Object.defineProperty(t,"PaymentFlags",{enumerable:true,get:function(){return u.PaymentFlags}});var c=r(3644);Object.defineProperty(t,"PaymentChannelClaimFlags",{enumerable:true,get:function(){return c.PaymentChannelClaimFlags}});var l=r(3954);Object.defineProperty(t,"TrustSetFlags",{enumerable:true,get:function(){return l.TrustSetFlags}})},1114:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateOfferCancel=void 0;const n=r(5449);const i=r(5092);function validateOfferCancel(e){(0,i.validateBaseTransaction)(e);if(e.OfferSequence===undefined){throw new n.ValidationError("OfferCancel: missing field OfferSequence")}if(typeof e.OfferSequence!=="number"){throw new n.ValidationError("OfferCancel: OfferSequence must be a number")}}t.validateOfferCancel=validateOfferCancel},2344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateOfferCreate=t.OfferCreateFlags=void 0;const n=r(5449);const i=r(5092);var a;(function(e){e[e["tfPassive"]=65536]="tfPassive";e[e["tfImmediateOrCancel"]=131072]="tfImmediateOrCancel";e[e["tfFillOrKill"]=262144]="tfFillOrKill";e[e["tfSell"]=524288]="tfSell"})(a=t.OfferCreateFlags||(t.OfferCreateFlags={}));function validateOfferCreate(e){(0,i.validateBaseTransaction)(e);if(e.TakerGets===undefined){throw new n.ValidationError("OfferCreate: missing field TakerGets")}if(e.TakerPays===undefined){throw new n.ValidationError("OfferCreate: missing field TakerPays")}if(typeof e.TakerGets!=="string"&&!(0,i.isAmount)(e.TakerGets)){throw new n.ValidationError("OfferCreate: invalid TakerGets")}if(typeof e.TakerPays!=="string"&&!(0,i.isAmount)(e.TakerPays)){throw new n.ValidationError("OfferCreate: invalid TakerPays")}if(e.Expiration!==undefined&&typeof e.Expiration!=="number"){throw new n.ValidationError("OfferCreate: invalid Expiration")}if(e.OfferSequence!==undefined&&typeof e.OfferSequence!=="number"){throw new n.ValidationError("OfferCreate: invalid OfferSequence")}}t.validateOfferCreate=validateOfferCreate},4943:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validatePayment=t.PaymentFlags=void 0;const n=r(5449);const i=r(7115);const a=r(5092);var o;(function(e){e[e["tfNoDirectRipple"]=65536]="tfNoDirectRipple";e[e["tfPartialPayment"]=131072]="tfPartialPayment";e[e["tfLimitQuality"]=262144]="tfLimitQuality"})(o=t.PaymentFlags||(t.PaymentFlags={}));function validatePayment(e){(0,a.validateBaseTransaction)(e);if(e.Amount===undefined){throw new n.ValidationError("PaymentTransaction: missing field Amount")}if(!(0,a.isAmount)(e.Amount)){throw new n.ValidationError("PaymentTransaction: invalid Amount")}if(e.Destination===undefined){throw new n.ValidationError("PaymentTransaction: missing field Destination")}if(!(0,a.isAmount)(e.Destination)){throw new n.ValidationError("PaymentTransaction: invalid Destination")}if(e.DestinationTag!=null&&typeof e.DestinationTag!=="number"){throw new n.ValidationError("PaymentTransaction: DestinationTag must be a number")}if(e.InvoiceID!==undefined&&typeof e.InvoiceID!=="string"){throw new n.ValidationError("PaymentTransaction: InvoiceID must be a string")}if(e.Paths!==undefined&&!isPaths(e.Paths)){throw new n.ValidationError("PaymentTransaction: invalid Paths")}if(e.SendMax!==undefined&&!(0,a.isAmount)(e.SendMax)){throw new n.ValidationError("PaymentTransaction: invalid SendMax")}checkPartialPayment(e)}t.validatePayment=validatePayment;function checkPartialPayment(e){var t;if(e.DeliverMin!=null){if(e.Flags==null){throw new n.ValidationError("PaymentTransaction: tfPartialPayment flag required with DeliverMin")}const r=e.Flags;const s=typeof r==="number"?(0,i.isFlagEnabled)(r,o.tfPartialPayment):(t=r.tfPartialPayment)!==null&&t!==void 0?t:false;if(!s){throw new n.ValidationError("PaymentTransaction: tfPartialPayment flag required with DeliverMin")}if(!(0,a.isAmount)(e.DeliverMin)){throw new n.ValidationError("PaymentTransaction: invalid DeliverMin")}}}function isPathStep(e){if(e.account!==undefined&&typeof e.account!=="string"){return false}if(e.currency!==undefined&&typeof e.currency!=="string"){return false}if(e.issuer!==undefined&&typeof e.issuer!=="string"){return false}if(e.account!==undefined&&e.currency===undefined&&e.issuer===undefined){return true}if(e.currency!==undefined||e.issuer!==undefined){return true}return false}function isPath(e){for(const t of e){if(!isPathStep(t)){return false}}return true}function isPaths(e){if(!Array.isArray(e)||e.length===0){return false}for(const t of e){if(!Array.isArray(t)||t.length===0){return false}if(!isPath(t)){return false}}return true}},3644:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validatePaymentChannelClaim=t.PaymentChannelClaimFlags=void 0;const n=r(5449);const i=r(5092);var a;(function(e){e[e["tfRenew"]=65536]="tfRenew";e[e["tfClose"]=131072]="tfClose"})(a=t.PaymentChannelClaimFlags||(t.PaymentChannelClaimFlags={}));function validatePaymentChannelClaim(e){(0,i.validateBaseTransaction)(e);if(e.Channel===undefined){throw new n.ValidationError("PaymentChannelClaim: missing Channel")}if(typeof e.Channel!=="string"){throw new n.ValidationError("PaymentChannelClaim: Channel must be a string")}if(e.Balance!==undefined&&typeof e.Balance!=="string"){throw new n.ValidationError("PaymentChannelClaim: Balance must be a string")}if(e.Amount!==undefined&&typeof e.Amount!=="string"){throw new n.ValidationError("PaymentChannelClaim: Amount must be a string")}if(e.Signature!==undefined&&typeof e.Signature!=="string"){throw new n.ValidationError("PaymentChannelClaim: Signature must be a string")}if(e.PublicKey!==undefined&&typeof e.PublicKey!=="string"){throw new n.ValidationError("PaymentChannelClaim: PublicKey must be a string")}}t.validatePaymentChannelClaim=validatePaymentChannelClaim},2550:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validatePaymentChannelCreate=void 0;const n=r(5449);const i=r(5092);function validatePaymentChannelCreate(e){(0,i.validateBaseTransaction)(e);if(e.Amount===undefined){throw new n.ValidationError("PaymentChannelCreate: missing Amount")}if(typeof e.Amount!=="string"){throw new n.ValidationError("PaymentChannelCreate: Amount must be a string")}if(e.Destination===undefined){throw new n.ValidationError("PaymentChannelCreate: missing Destination")}if(typeof e.Destination!=="string"){throw new n.ValidationError("PaymentChannelCreate: Destination must be a string")}if(e.SettleDelay===undefined){throw new n.ValidationError("PaymentChannelCreate: missing SettleDelay")}if(typeof e.SettleDelay!=="number"){throw new n.ValidationError("PaymentChannelCreate: SettleDelay must be a number")}if(e.PublicKey===undefined){throw new n.ValidationError("PaymentChannelCreate: missing PublicKey")}if(typeof e.PublicKey!=="string"){throw new n.ValidationError("PaymentChannelCreate: PublicKey must be a string")}if(e.CancelAfter!==undefined&&typeof e.CancelAfter!=="number"){throw new n.ValidationError("PaymentChannelCreate: CancelAfter must be a number")}if(e.DestinationTag!==undefined&&typeof e.DestinationTag!=="number"){throw new n.ValidationError("PaymentChannelCreate: DestinationTag must be a number")}}t.validatePaymentChannelCreate=validatePaymentChannelCreate},9777:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validatePaymentChannelFund=void 0;const n=r(5449);const i=r(5092);function validatePaymentChannelFund(e){(0,i.validateBaseTransaction)(e);if(e.Channel===undefined){throw new n.ValidationError("PaymentChannelFund: missing Channel")}if(typeof e.Channel!=="string"){throw new n.ValidationError("PaymentChannelFund: Channel must be a string")}if(e.Amount===undefined){throw new n.ValidationError("PaymentChannelFund: missing Amount")}if(typeof e.Amount!=="string"){throw new n.ValidationError("PaymentChannelFund: Amount must be a string")}if(e.Expiration!==undefined&&typeof e.Expiration!=="number"){throw new n.ValidationError("PaymentChannelFund: Expiration must be a number")}}t.validatePaymentChannelFund=validatePaymentChannelFund},4316:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateSetRegularKey=void 0;const n=r(5449);const i=r(5092);function validateSetRegularKey(e){(0,i.validateBaseTransaction)(e);if(e.RegularKey!==undefined&&typeof e.RegularKey!=="string"){throw new n.ValidationError("SetRegularKey: RegularKey must be a string")}}t.validateSetRegularKey=validateSetRegularKey},9485:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateSignerListSet=void 0;const n=r(5449);const i=r(5092);const a=8;function validateSignerListSet(e){(0,i.validateBaseTransaction)(e);if(e.SignerQuorum===undefined){throw new n.ValidationError("SignerListSet: missing field SignerQuorum")}if(typeof e.SignerQuorum!=="number"){throw new n.ValidationError("SignerListSet: invalid SignerQuorum")}if(e.SignerEntries===undefined){throw new n.ValidationError("SignerListSet: missing field SignerEntries")}if(!Array.isArray(e.SignerEntries)){throw new n.ValidationError("SignerListSet: invalid SignerEntries")}if(e.SignerEntries.length===0){throw new n.ValidationError("SignerListSet: need atleast 1 member in SignerEntries")}if(e.SignerEntries.length>a){throw new n.ValidationError("SignerListSet: maximum of 8 members allowed in SignerEntries")}}t.validateSignerListSet=validateSignerListSet},750:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateTicketCreate=void 0;const n=r(5449);const i=r(5092);const a=250;function validateTicketCreate(e){(0,i.validateBaseTransaction)(e);const{TicketCount:t}=e;if(t===undefined){throw new n.ValidationError("TicketCreate: missing field TicketCount")}if(typeof t!=="number"){throw new n.ValidationError("TicketCreate: TicketCount must be a number")}if(!Number.isInteger(t)||t<1||t>a){throw new n.ValidationError("TicketCreate: TicketCount must be an integer from 1 to 250")}}t.validateTicketCreate=validateTicketCreate},6913:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.validate=void 0;const i=n(r(2219));const a=r(8169);const o=r(5449);const s=r(7756);const u=r(1321);const c=r(3473);const l=r(5834);const d=r(4531);const h=r(1387);const p=r(9250);const m=r(3311);const g=r(3586);const v=r(5728);const b=r(1297);const y=r(3107);const w=r(6292);const _=r(3697);const k=r(2970);const A=r(1114);const E=r(2344);const I=r(4943);const T=r(3644);const B=r(2550);const M=r(9777);const N=r(4316);const x=r(9485);const O=r(750);const P=r(3954);function validate(e){const t=Object.assign({},e);if(t.TransactionType==null){throw new o.ValidationError("Object does not have a `TransactionType`")}if(typeof t.TransactionType!=="string"){throw new o.ValidationError("Object's `TransactionType` is not a string")}(0,s.setTransactionFlagsToNumber)(t);switch(t.TransactionType){case"AccountDelete":(0,u.validateAccountDelete)(t);break;case"AccountSet":(0,c.validateAccountSet)(t);break;case"CheckCancel":(0,l.validateCheckCancel)(t);break;case"CheckCash":(0,d.validateCheckCash)(t);break;case"CheckCreate":(0,h.validateCheckCreate)(t);break;case"DepositPreauth":(0,p.validateDepositPreauth)(t);break;case"EscrowCancel":(0,m.validateEscrowCancel)(t);break;case"EscrowCreate":(0,g.validateEscrowCreate)(t);break;case"EscrowFinish":(0,v.validateEscrowFinish)(t);break;case"NFTokenAcceptOffer":(0,b.validateNFTokenAcceptOffer)(t);break;case"NFTokenBurn":(0,y.validateNFTokenBurn)(t);break;case"NFTokenCancelOffer":(0,w.validateNFTokenCancelOffer)(t);break;case"NFTokenCreateOffer":(0,_.validateNFTokenCreateOffer)(t);break;case"NFTokenMint":(0,k.validateNFTokenMint)(t);break;case"OfferCancel":(0,A.validateOfferCancel)(t);break;case"OfferCreate":(0,E.validateOfferCreate)(t);break;case"Payment":(0,I.validatePayment)(t);break;case"PaymentChannelClaim":(0,T.validatePaymentChannelClaim)(t);break;case"PaymentChannelCreate":(0,B.validatePaymentChannelCreate)(t);break;case"PaymentChannelFund":(0,M.validatePaymentChannelFund)(t);break;case"SetRegularKey":(0,N.validateSetRegularKey)(t);break;case"SignerListSet":(0,x.validateSignerListSet)(t);break;case"TicketCreate":(0,O.validateTicketCreate)(t);break;case"TrustSet":(0,P.validateTrustSet)(t);break;default:throw new o.ValidationError(`Invalid field TransactionType: ${t.TransactionType}`)}if(!i.default.isEqual((0,a.decode)((0,a.encode)(t)),i.default.omitBy(t,(e=>e==null)))){throw new o.ValidationError(`Invalid Transaction: ${t.TransactionType}`)}}t.validate=validate},3954:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateTrustSet=t.TrustSetFlags=void 0;const n=r(5449);const i=r(5092);var a;(function(e){e[e["tfSetfAuth"]=65536]="tfSetfAuth";e[e["tfSetNoRipple"]=131072]="tfSetNoRipple";e[e["tfClearNoRipple"]=262144]="tfClearNoRipple";e[e["tfSetFreeze"]=1048576]="tfSetFreeze";e[e["tfClearFreeze"]=2097152]="tfClearFreeze"})(a=t.TrustSetFlags||(t.TrustSetFlags={}));function validateTrustSet(e){(0,i.validateBaseTransaction)(e);const{LimitAmount:t,QualityIn:r,QualityOut:a}=e;if(t===undefined){throw new n.ValidationError("TrustSet: missing field LimitAmount")}if(!(0,i.isAmount)(t)){throw new n.ValidationError("TrustSet: invalid LimitAmount")}if(r!==undefined&&typeof r!=="number"){throw new n.ValidationError("TrustSet: QualityIn must be a number")}if(a!==undefined&&typeof a!=="number"){throw new n.ValidationError("TrustSet: QualityOut must be a number")}}t.validateTrustSet=validateTrustSet},7756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setTransactionFlagsToNumber=t.parseAccountRootFlags=void 0;const n=r(5449);const i=r(7092);const a=r(3473);const o=r(2344);const s=r(4943);const u=r(3644);const c=r(3954);const l=r(7115);function parseAccountRootFlags(e){const t={};Object.keys(i.AccountRootFlags).forEach((r=>{if((0,l.isFlagEnabled)(e,i.AccountRootFlags[r])){t[r]=true}}));return t}t.parseAccountRootFlags=parseAccountRootFlags;function setTransactionFlagsToNumber(e){if(e.Flags==null){e.Flags=0;return}if(typeof e.Flags==="number"){return}switch(e.TransactionType){case"AccountSet":e.Flags=convertAccountSetFlagsToNumber(e.Flags);return;case"OfferCreate":e.Flags=convertOfferCreateFlagsToNumber(e.Flags);return;case"PaymentChannelClaim":e.Flags=convertPaymentChannelClaimFlagsToNumber(e.Flags);return;case"Payment":e.Flags=convertPaymentTransactionFlagsToNumber(e.Flags);return;case"TrustSet":e.Flags=convertTrustSetFlagsToNumber(e.Flags);return;default:e.Flags=0}}t.setTransactionFlagsToNumber=setTransactionFlagsToNumber;function convertAccountSetFlagsToNumber(e){return reduceFlags(e,a.AccountSetTfFlags)}function convertOfferCreateFlagsToNumber(e){return reduceFlags(e,o.OfferCreateFlags)}function convertPaymentChannelClaimFlagsToNumber(e){return reduceFlags(e,u.PaymentChannelClaimFlags)}function convertPaymentTransactionFlagsToNumber(e){return reduceFlags(e,s.PaymentFlags)}function convertTrustSetFlagsToNumber(e){return reduceFlags(e,c.TrustSetFlags)}function reduceFlags(e,t){return Object.keys(e).reduce(((r,i)=>{if(t[i]==null){throw new n.ValidationError(`flag ${i} doesn't exist in flagEnum: ${JSON.stringify(t)}`)}return e[i]?r|t[i]:r}),0)}},7115:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isFlagEnabled=t.onlyHasFields=void 0;function onlyHasFields(e,t){return Object.keys(e).every((e=>t.includes(e)))}t.onlyHasFields=onlyHasFields;function isFlagEnabled(e,t){return(t&e)===t}t.isFlagEnabled=isFlagEnabled},3692:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const a=i(r(1806));const o=r(3544);const s=r(5449);const u=r(7756);const c=r(9682);const l=i(r(219));const d=20;function autofill(e,t){return n(this,void 0,void 0,(function*(){const r=Object.assign({},e);setValidAddresses(r);(0,u.setTransactionFlagsToNumber)(r);const n=[];if(r.Sequence==null){n.push(setNextValidSequenceNumber(this,r))}if(r.Fee==null){n.push(calculateFeePerTransactionType(this,r,t))}if(r.LastLedgerSequence==null){n.push(setLatestValidatedLedgerSequence(this,r))}if(r.TransactionType==="AccountDelete"){n.push(checkAccountDeleteBlockers(this,r))}return Promise.all(n).then((()=>r))}))}function setValidAddresses(e){validateAccountAddress(e,"Account","SourceTag");if(e["Destination"]!=null){validateAccountAddress(e,"Destination","DestinationTag")}convertToClassicAddress(e,"Authorize");convertToClassicAddress(e,"Unauthorize");convertToClassicAddress(e,"Owner");convertToClassicAddress(e,"RegularKey")}function validateAccountAddress(e,t,r){const{classicAccount:n,tag:i}=getClassicAccountAndTag(e[t]);e[t]=n;if(i!=null&&i!==false){if(e[r]&&e[r]!==i){throw new s.ValidationError(`The ${r}, if present, must match the tag of the ${t} X-address`)}e[r]=i}}function getClassicAccountAndTag(e,t){if((0,o.isValidXAddress)(e)){const r=(0,o.xAddressToClassicAddress)(e);if(t!=null&&r.tag!==t){throw new s.ValidationError("address includes a tag that does not match the tag specified in the transaction")}return{classicAccount:r.classicAddress,tag:r.tag}}return{classicAccount:e,tag:t}}function convertToClassicAddress(e,t){const r=e[t];if(typeof r==="string"){const{classicAccount:n}=getClassicAccountAndTag(r);e[t]=n}}function setNextValidSequenceNumber(e,t){return n(this,void 0,void 0,(function*(){const r={command:"account_info",account:t.Account,ledger_index:"current"};const n=yield e.request(r);t.Sequence=n.result.account_data.Sequence}))}function fetchAccountDeleteFee(e){var t;return n(this,void 0,void 0,(function*(){const r=yield e.request({command:"server_state"});const n=(t=r.result.state.validated_ledger)===null||t===void 0?void 0:t.reserve_inc;if(n==null){return Promise.reject(new Error("Could not fetch Owner Reserve."))}return new a.default(n)}))}function calculateFeePerTransactionType(e,t,r=0){return n(this,void 0,void 0,(function*(){const n=yield(0,l.default)(e);const i=(0,c.xrpToDrops)(n);let o=new a.default(i);if(t.TransactionType==="EscrowFinish"&&t.Fulfillment!=null){const e=Math.ceil(t.Fulfillment.length/2);const r=new a.default(scaleValue(i,33+e/16));o=r.dp(0,a.default.ROUND_CEIL)}if(t.TransactionType==="AccountDelete"){o=yield fetchAccountDeleteFee(e)}if(r>0){o=a.default.sum(o,scaleValue(i,1+r))}const s=(0,c.xrpToDrops)(e.maxFeeXRP);const u=t.TransactionType==="AccountDelete"?o:a.default.min(o,s);t.Fee=u.dp(0,a.default.ROUND_CEIL).toString(10)}))}function scaleValue(e,t){return new a.default(e).times(t).toString()}function setLatestValidatedLedgerSequence(e,t){return n(this,void 0,void 0,(function*(){const r=yield e.getLedgerIndex();t.LastLedgerSequence=r+d}))}function checkAccountDeleteBlockers(e,t){return n(this,void 0,void 0,(function*(){const r={command:"account_objects",account:t.Account,ledger_index:"validated",deletion_blockers_only:true};const n=yield e.request(r);return new Promise(((e,r)=>{if(n.result.account_objects.length>0){r(new s.XrplError(`Account ${t.Account} cannot be deleted; there are Escrows, PayChannels, RippleStates, or Checks associated with the account.`,n.result.account_objects))}e()}))}))}t["default"]=autofill},7945:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getBalances=t.getXrpBalance=void 0;const a=i(r(2219));const o=r(9682);function formatBalances(e){return e.map((e=>({value:e.balance,currency:e.currency,issuer:e.account})))}function getXrpBalance(e,t={}){var r;return n(this,void 0,void 0,(function*(){const n={command:"account_info",account:e,ledger_index:(r=t.ledger_index)!==null&&r!==void 0?r:"validated",ledger_hash:t.ledger_hash};const i=yield this.request(n);return(0,o.dropsToXrp)(i.result.account_data.Balance)}))}t.getXrpBalance=getXrpBalance;function getBalances(e,t={}){var r;return n(this,void 0,void 0,(function*(){const n=[];let i=Promise.resolve("");if(!t.peer){i=this.getXrpBalance(e,{ledger_hash:t.ledger_hash,ledger_index:t.ledger_index})}const o={command:"account_lines",account:e,ledger_index:(r=t.ledger_index)!==null&&r!==void 0?r:"validated",ledger_hash:t.ledger_hash,peer:t.peer,limit:t.limit};const s=this.requestAll(o);yield Promise.all([i,s]).then((([e,t])=>{const r=a.default.flatMap(t,(e=>formatBalances(e.result.lines)));if(e!==""){n.push({currency:"XRP",value:e})}n.push(...r)}));return n.slice(0,t.limit)}))}t.getBalances=getBalances},219:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const a=i(r(1806));const o=r(5449);const s=6;const u=10;function getFeeXrp(e,t){var r;return n(this,void 0,void 0,(function*(){const n=t!==null&&t!==void 0?t:e.feeCushion;const i=(yield e.request({command:"server_info"})).result.info;const c=(r=i.validated_ledger)===null||r===void 0?void 0:r.base_fee_xrp;if(c==null){throw new o.XrplError("getFeeXrp: Could not get base_fee_xrp from server_info")}const l=new a.default(c);if(i.load_factor==null){i.load_factor=1}let d=l.times(i.load_factor).times(n);d=a.default.min(d,e.maxFeeXRP);return new a.default(d.toFixed(s)).toString(u)}))}t["default"]=getFeeXrp},7212:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});function getLedgerIndex(){return r(this,void 0,void 0,(function*(){const e=yield this.request({command:"ledger",ledger_index:"validated"});return e.result.ledger_index}))}t["default"]=getLedgerIndex},9861:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const a=i(r(1806));const o=i(r(2219));const s=r(2401);const u=20;function sortOffers(e){return e.sort(((e,t)=>{var r,n;const i=(r=e.quality)!==null&&r!==void 0?r:0;const o=(n=t.quality)!==null&&n!==void 0?n:0;return new a.default(i).comparedTo(o)}))}function getOrderbook(e,t,r={}){var i,a;return n(this,void 0,void 0,(function*(){const n={command:"book_offers",taker_pays:e,taker_gets:t,ledger_index:(i=r.ledger_index)!==null&&i!==void 0?i:"validated",ledger_hash:r.ledger_hash,limit:(a=r.limit)!==null&&a!==void 0?a:u,taker:r.taker};const c=yield this.requestAll(n);n.taker_gets=e;n.taker_pays=t;const l=yield this.requestAll(n);const d=o.default.flatMap(c,(e=>e.result.offers));const h=o.default.flatMap(l,(e=>e.result.offers));const p=[...d,...h];const m=[];const g=[];p.forEach((e=>{if((e.Flags&s.OfferFlags.lsfSell)===0){m.push(e)}else{g.push(e)}}));return{buy:sortOffers(m).slice(0,r.limit),sell:sortOffers(g).slice(0,r.limit)}}))}t["default"]=getOrderbook},2188:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.getOrderbook=t.getLedgerIndex=t.getXrpBalance=t.getBalances=t.autofill=void 0;var o=r(3692);Object.defineProperty(t,"autofill",{enumerable:true,get:function(){return a(o).default}});var s=r(7945);Object.defineProperty(t,"getBalances",{enumerable:true,get:function(){return s.getBalances}});Object.defineProperty(t,"getXrpBalance",{enumerable:true,get:function(){return s.getXrpBalance}});var u=r(7212);Object.defineProperty(t,"getLedgerIndex",{enumerable:true,get:function(){return a(u).default}});var c=r(9861);Object.defineProperty(t,"getOrderbook",{enumerable:true,get:function(){return a(c).default}});i(r(2747),t);i(r(2692),t)},2747:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.submitAndWait=t.submit=void 0;const i=r(8169);const a=r(5449);const o=r(9682);const s=4e3;function sleep(e){return n(this,void 0,void 0,(function*(){return new Promise((t=>{setTimeout(t,e)}))}))}function submit(e,t){return n(this,void 0,void 0,(function*(){const r=yield getSignedTx(this,e,t);return submitRequest(this,r,t===null||t===void 0?void 0:t.failHard)}))}t.submit=submit;function submitAndWait(e,t){return n(this,void 0,void 0,(function*(){const r=yield getSignedTx(this,e,t);const n=getLastLedgerSequence(r);if(n==null){throw new a.ValidationError("Transaction must contain a LastLedgerSequence value for reliable submission.")}const i=yield submitRequest(this,r,t===null||t===void 0?void 0:t.failHard);const s=o.hashes.hashSignedTx(r);return waitForFinalTransactionOutcome(this,s,n,i.result.engine_result)}))}t.submitAndWait=submitAndWait;function submitRequest(e,t,r=false){return n(this,void 0,void 0,(function*(){if(!isSigned(t)){throw new a.ValidationError("Transaction must be signed")}const n=typeof t==="string"?t:(0,i.encode)(t);const o={command:"submit",tx_blob:n,fail_hard:isAccountDelete(t)||r};return e.request(o)}))}function waitForFinalTransactionOutcome(e,t,r,i){return n(this,void 0,void 0,(function*(){yield sleep(s);const o=yield e.getLedgerIndex();if(r<o){throw new a.XrplError(`The latest ledger sequence ${o} is greater than the transaction's LastLedgerSequence (${r}).\n`+`Preliminary result: ${i}`)}const u=yield e.request({command:"tx",transaction:t}).catch((a=>n(this,void 0,void 0,(function*(){const n=a.data.error;if(n==="txnNotFound"){return waitForFinalTransactionOutcome(e,t,r,i)}throw new Error(`${n} \n Preliminary result: ${i}.`)}))));if(u.result.validated){return u}return waitForFinalTransactionOutcome(e,t,r,i)}))}function isSigned(e){const t=typeof e==="string"?(0,i.decode)(e):e;return typeof t!=="string"&&(t.SigningPubKey!=null||t.TxnSignature!=null)}function getSignedTx(e,t,{autofill:r=true,wallet:o}={}){return n(this,void 0,void 0,(function*(){if(isSigned(t)){return t}if(!o){throw new a.ValidationError("Wallet must be provided when submitting an unsigned transaction")}let n=typeof t==="string"?(0,i.decode)(t):t;if(r){n=yield e.autofill(n)}return o.sign(n).tx_blob}))}function getLastLedgerSequence(e){const t=typeof e==="string"?(0,i.decode)(e):e;return t.LastLedgerSequence}function isAccountDelete(e){const t=typeof e==="string"?(0,i.decode)(e):e;return t.TransactionType==="AccountDelete"}},2692:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ensureClassicAddress=void 0;const n=r(3544);function ensureClassicAddress(e){if((0,n.isValidXAddress)(e)){const{classicAddress:t,tag:r}=(0,n.xAddressToClassicAddress)(e);if(r!==false){throw new Error("This command does not support the use of a tag. Use an address without a tag.")}return t}return e}t.ensureClassicAddress=ensureClassicAddress},3721:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5449);const i=r(9963);function createCrossChainPayment(e,t){var r;const a=(0,i.convertStringToHex)(t);const o={Memo:{MemoData:a}};const s=(r=e.Memos)!==null&&r!==void 0?r:[];if(s.length>2){throw new n.XrplError("Cannot have more than 2 memos in a cross-chain transaction.")}const u=[o,...s];const c=Object.assign(Object.assign({},e),{Memos:u});delete c.TxnSignature;return c}t["default"]=createCrossChainPayment},9688:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deriveXAddress=t.deriveKeypair=void 0;const n=r(3544);const i=r(9466);Object.defineProperty(t,"deriveKeypair",{enumerable:true,get:function(){return i.deriveKeypair}});function deriveXAddress(e){const t=(0,i.deriveAddress)(e.publicKey);return(0,n.classicAddressToXAddress)(t,e.tag,e.test)}t.deriveXAddress=deriveXAddress},2232:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(1806));const a=n(r(2219));const o=r(6594);function normalizeNode(e){const t=Object.keys(e)[0];const r=e[t];return Object.assign(Object.assign({},r),{NodeType:t,LedgerEntryType:r.LedgerEntryType,LedgerIndex:r.LedgerIndex,NewFields:r.NewFields,FinalFields:r.FinalFields,PreviousFields:r.PreviousFields})}function normalizeNodes(e){if(e.AffectedNodes.length===0){return[]}return e.AffectedNodes.map(normalizeNode)}function groupByAccount(e){const t=a.default.groupBy(e,(e=>e.account));return Object.entries(t).map((([e,t])=>({account:e,balances:t.map((e=>e.balance))})))}function getValue(e){if(typeof e==="string"){return new i.default(e)}return new i.default(e.value)}function computeBalanceChange(e){var t,r,n;let i=null;if((t=e.NewFields)===null||t===void 0?void 0:t.Balance){i=getValue(e.NewFields.Balance)}else if(((r=e.PreviousFields)===null||r===void 0?void 0:r.Balance)&&((n=e.FinalFields)===null||n===void 0?void 0:n.Balance)){i=getValue(e.FinalFields.Balance).minus(getValue(e.PreviousFields.Balance))}if(i===null||i.isZero()){return null}return i}function getXRPQuantity(e){var t,r,n;const i=computeBalanceChange(e);if(i===null){return null}return{account:(r=(t=e.FinalFields)===null||t===void 0?void 0:t.Account)!==null&&r!==void 0?r:(n=e.NewFields)===null||n===void 0?void 0:n.Account,balance:{currency:"XRP",value:(0,o.dropsToXrp)(i).toString()}}}function flipTrustlinePerspective(e){const t=new i.default(e.balance.value).negated();return{account:e.balance.issuer,balance:{issuer:e.account,currency:e.balance.currency,value:t.toString()}}}function getTrustlineQuantity(e){var t,r;const n=computeBalanceChange(e);if(n===null){return null}const i=e.NewFields==null?e.FinalFields:e.NewFields;const a={account:(t=i===null||i===void 0?void 0:i.LowLimit)===null||t===void 0?void 0:t.issuer,balance:{issuer:(r=i===null||i===void 0?void 0:i.HighLimit)===null||r===void 0?void 0:r.issuer,currency:(i===null||i===void 0?void 0:i.Balance).currency,value:n.toString()}};return[a,flipTrustlinePerspective(a)]}function getBalanceChanges(e){const t=normalizeNodes(e).map((e=>{if(e.LedgerEntryType==="AccountRoot"){const t=getXRPQuantity(e);if(t==null){return[]}return[t]}if(e.LedgerEntryType==="RippleState"){const t=getTrustlineQuantity(e);if(t==null){return[]}return t}return[]}));return groupByAccount(a.default.flatten(t))}t["default"]=getBalanceChanges},5104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r;(function(e){e[e["TRANSACTION_ID"]=1415073280]="TRANSACTION_ID";e[e["TRANSACTION_NODE"]=1397638144]="TRANSACTION_NODE";e[e["INNER_NODE"]=1296649728]="INNER_NODE";e[e["LEAF_NODE"]=1296846336]="LEAF_NODE";e[e["TRANSACTION_SIGN"]=1398036480]="TRANSACTION_SIGN";e[e["TRANSACTION_SIGN_TESTNET"]=1937012736]="TRANSACTION_SIGN_TESTNET";e[e["TRANSACTION_MULTISIGN"]=1397576704]="TRANSACTION_MULTISIGN";e[e["LEDGER"]=1280791040]="LEDGER"})(r||(r={}));t["default"]=r},7322:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=r(5449);const a=n(r(5104));const o=n(r(9152));const s=n(r(4431));const u=r(6316);const c="0000000000000000000000000000000000000000000000000000000000000000";const l=15;const d=16;class InnerNode extends u.Node{constructor(e=0){super();this.leaves={};this.type=u.NodeType.INNER;this.depth=e;this.empty=true}addItem(e,t){const r=this.getNode(parseInt(e[this.depth],d));if(r===undefined){this.setNode(parseInt(e[this.depth],d),t);return}if(r instanceof InnerNode){r.addItem(e,t)}else if(r instanceof s.default){if(r.tag===e){throw new i.XrplError("Tried to add a node to a SHAMap that was already in there.")}else{const n=new InnerNode(this.depth+1);n.addItem(r.tag,r);n.addItem(e,t);this.setNode(parseInt(e[this.depth],d),n)}}}setNode(e,t){if(e<0||e>l){throw new i.XrplError("Invalid slot: slot must be between 0-15.")}this.leaves[e]=t;this.empty=false}getNode(e){if(e<0||e>l){throw new i.XrplError("Invalid slot: slot must be between 0-15.")}return this.leaves[e]}get hash(){if(this.empty){return c}let e="";for(let t=0;t<=l;t++){const r=this.leaves[t];const n=r==null?c:r.hash;e+=n}const t=a.default.INNER_NODE.toString(d);return(0,o.default)(t+e)}}t["default"]=InnerNode},4431:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=r(5449);const a=n(r(5104));const o=n(r(9152));const s=r(6316);const u=16;class LeafNode extends s.Node{constructor(e,t,r){super();this.tag=e;this.type=r;this.data=t}addItem(e,t){throw new i.XrplError("Cannot call addItem on a LeafNode");this.addItem(e,t)}get hash(){switch(this.type){case s.NodeType.ACCOUNT_STATE:{const e=a.default.LEAF_NODE.toString(u);return(0,o.default)(e+this.data+this.tag)}case s.NodeType.TRANSACTION_NO_METADATA:{const e=a.default.TRANSACTION_ID.toString(u);return(0,o.default)(e+this.data)}case s.NodeType.TRANSACTION_METADATA:{const e=a.default.TRANSACTION_NODE.toString(u);return(0,o.default)(e+this.data+this.tag)}default:throw new i.XrplError("Tried to hash a SHAMap node of unknown type.")}}}t["default"]=LeafNode},6984:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const o=a(r(7322));const s=a(r(4431));class SHAMap{constructor(){this.root=new o.default(0)}addItem(e,t,r){this.root.addItem(e,new s.default(e,t,r))}get hash(){return this.root.hash}}i(r(6316),t);t["default"]=SHAMap},6316:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Node=t.NodeType=void 0;var r;(function(e){e[e["INNER"]=1]="INNER";e[e["TRANSACTION_NO_METADATA"]=2]="TRANSACTION_NO_METADATA";e[e["TRANSACTION_METADATA"]=3]="TRANSACTION_METADATA";e[e["ACCOUNT_STATE"]=4]="ACCOUNT_STATE"})(r=t.NodeType||(t.NodeType={}));class Node{}t.Node=Node},2116:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.hashStateTree=t.hashTxTree=t.hashLedgerHeader=t.hashSignedTx=void 0;const s=o(r(1806));const u=r(8169);const c=r(5449);const l=o(r(5104));const d=o(r(9152));const h=a(r(6984));const p=16;function intToHex(e,t){const r=Number(e).toString(p).padStart(t*2,"0");return r}function bytesToHex(e){return Buffer.from(e).toString("hex")}function bigintToHex(e,t){const r=new s.default(e).toString(p);return r.padStart(t*2,"0")}function addLengthPrefix(e){const t=e.length/2;if(t<=192){return bytesToHex([t])+e}if(t<=12480){const r=t-193;return bytesToHex([193+(r>>>8),r&255])+e}if(t<=918744){const r=t-12481;return bytesToHex([241+(r>>>16),r>>>8&255,r&255])+e}throw new c.XrplError("Variable integer overflow.")}function hashSignedTx(e){let t;let r;if(typeof e==="string"){t=e;r=(0,u.decode)(e)}else{t=(0,u.encode)(e);r=e}if(r.TxnSignature===undefined&&r.Signers===undefined){throw new c.ValidationError("The transaction must be signed to hash it.")}const n=l.default.TRANSACTION_ID.toString(16).toUpperCase();return(0,d.default)(n.concat(t))}t.hashSignedTx=hashSignedTx;function hashLedgerHeader(e){const t=l.default.LEDGER.toString(p).toUpperCase();const r=t+intToHex(Number(e.ledger_index),4)+bigintToHex(e.total_coins,8)+e.parent_hash+e.transaction_hash+e.account_hash+intToHex(e.parent_close_time,4)+intToHex(e.close_time,4)+intToHex(e.close_time_resolution,1)+intToHex(e.close_flags,1);return(0,d.default)(r)}t.hashLedgerHeader=hashLedgerHeader;function hashTxTree(e){var t;const r=new h.default;for(const n of e){const e=(0,u.encode)(n);const i=(0,u.encode)((t=n.metaData)!==null&&t!==void 0?t:{});const a=hashSignedTx(e);const o=addLengthPrefix(e)+addLengthPrefix(i);r.addItem(a,o,h.NodeType.TRANSACTION_METADATA)}return r.hash}t.hashTxTree=hashTxTree;function hashStateTree(e){const t=new h.default;e.forEach((e=>{const r=(0,u.encode)(e);t.addItem(e.index,r,h.NodeType.ACCOUNT_STATE)}));return t.hash}t.hashStateTree=hashStateTree;function computeTransactionHash(e,t){const{transaction_hash:r}=e;if(!t.computeTreeHashes){return r}if(e.transactions==null){throw new c.ValidationError("transactions is missing from the ledger")}const n=hashTxTree(e.transactions);if(r!==n){throw new c.ValidationError("transactionHash in header"+" does not match computed hash of transactions",{transactionHashInHeader:r,computedHashOfTransactions:n})}return n}function computeStateHash(e,t){const{account_hash:r}=e;if(!t.computeTreeHashes){return r}if(e.accountState==null){throw new c.ValidationError("accountState is missing from the ledger")}const n=hashStateTree(e.accountState);if(r!==n){throw new c.ValidationError("stateHash in header does not match computed hash of state")}return n}function hashLedger(e,t={}){const r={transaction_hash:computeTransactionHash(e,t),account_hash:computeStateHash(e,t)};return hashLedgerHeader(Object.assign(Object.assign({},e),r))}t["default"]=hashLedger},283:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.hashTxTree=t.hashStateTree=t.hashLedger=t.hashSignedTx=t.hashLedgerHeader=t.hashPaymentChannel=t.hashEscrow=t.hashTrustline=t.hashOfferId=t.hashSignerListId=t.hashAccountRoot=t.hashTx=void 0;const s=o(r(1806));const u=r(3544);const c=a(r(2116));t.hashLedger=c.default;Object.defineProperty(t,"hashLedgerHeader",{enumerable:true,get:function(){return c.hashLedgerHeader}});Object.defineProperty(t,"hashSignedTx",{enumerable:true,get:function(){return c.hashSignedTx}});Object.defineProperty(t,"hashTxTree",{enumerable:true,get:function(){return c.hashTxTree}});Object.defineProperty(t,"hashStateTree",{enumerable:true,get:function(){return c.hashStateTree}});const l=o(r(5104));const d=o(r(3922));const h=o(r(9152));const p=16;const m=4;function addressToHex(e){return Buffer.from((0,u.decodeAccountID)(e)).toString("hex")}function ledgerSpaceHex(e){return d.default[e].charCodeAt(0).toString(p).padStart(4,"0")}const g=255;function currencyToHex(e){if(e.length!==3){return e}const t=Array(20).fill(0);t[12]=e.charCodeAt(0)&g;t[13]=e.charCodeAt(1)&g;t[14]=e.charCodeAt(2)&g;return Buffer.from(t).toString("hex")}function hashTx(e){const t=l.default.TRANSACTION_SIGN.toString(p).toUpperCase();return(0,h.default)(t+e)}t.hashTx=hashTx;function hashAccountRoot(e){return(0,h.default)(ledgerSpaceHex("account")+addressToHex(e))}t.hashAccountRoot=hashAccountRoot;function hashSignerListId(e){return(0,h.default)(`${ledgerSpaceHex("signerList")+addressToHex(e)}00000000`)}t.hashSignerListId=hashSignerListId;function hashOfferId(e,t){const r=d.default.offer.charCodeAt(0).toString(p).padStart(2,"0");const n=t.toString(p).padStart(8,"0");const i=`00${r}`;return(0,h.default)(i+addressToHex(e)+n)}t.hashOfferId=hashOfferId;function hashTrustline(e,t,r){const n=addressToHex(e);const i=addressToHex(t);const a=new s.default(n,16).isGreaterThan(new s.default(i,16));const o=a?i:n;const u=a?n:i;const c=ledgerSpaceHex("rippleState");return(0,h.default)(c+o+u+currencyToHex(r))}t.hashTrustline=hashTrustline;function hashEscrow(e,t){return(0,h.default)(ledgerSpaceHex("escrow")+addressToHex(e)+t.toString(p).padStart(m*2,"0"))}t.hashEscrow=hashEscrow;function hashPaymentChannel(e,t,r){return(0,h.default)(ledgerSpaceHex("paychan")+addressToHex(e)+addressToHex(t)+r.toString(p).padStart(m*2,"0"))}t.hashPaymentChannel=hashPaymentChannel},3922:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={account:"a",dirNode:"d",generatorMap:"g",rippleState:"r",offer:"o",ownerDir:"O",bookDir:"B",contract:"c",skipList:"s",escrow:"u",amendment:"f",feeSettings:"e",ticket:"T",signerList:"S",paychan:"x",check:"C",depositPreauth:"p"};t["default"]=r},9152:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(6113);const i=64;function sha512Half(e){return(0,n.createHash)("sha512").update(Buffer.from(e,"hex")).digest("hex").toUpperCase().slice(0,i)}t["default"]=sha512Half},9682:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;Object.defineProperty(e,n,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.parseNFTokenID=t.createCrossChainPayment=t.encodeForSigningClaim=t.encodeForSigning=t.encodeForMultiSigning=t.decode=t.encode=t.decodeXAddress=t.encodeXAddress=t.decodeAccountPublic=t.encodeAccountPublic=t.decodeNodePublic=t.encodeNodePublic=t.decodeAccountID=t.encodeAccountID=t.decodeSeed=t.encodeSeed=t.isValidClassicAddress=t.isValidXAddress=t.xAddressToClassicAddress=t.classicAddressToXAddress=t.convertHexToString=t.convertStringToHex=t.verifyPaymentChannelClaim=t.signPaymentChannelClaim=t.deriveXAddress=t.deriveKeypair=t.hashes=t.isValidAddress=t.isValidSecret=t.qualityToDecimal=t.transferRateToDecimal=t.decimalToTransferRate=t.percentToTransferRate=t.decimalToQuality=t.percentToQuality=t.unixTimeToRippleTime=t.rippleTimeToUnixTime=t.isoTimeToRippleTime=t.rippleTimeToISOTime=t.hasNextPage=t.xrpToDrops=t.dropsToXrp=t.getBalanceChanges=void 0;const s=r(3544);Object.defineProperty(t,"classicAddressToXAddress",{enumerable:true,get:function(){return s.classicAddressToXAddress}});Object.defineProperty(t,"decodeAccountID",{enumerable:true,get:function(){return s.decodeAccountID}});Object.defineProperty(t,"decodeAccountPublic",{enumerable:true,get:function(){return s.decodeAccountPublic}});Object.defineProperty(t,"decodeNodePublic",{enumerable:true,get:function(){return s.decodeNodePublic}});Object.defineProperty(t,"decodeSeed",{enumerable:true,get:function(){return s.decodeSeed}});Object.defineProperty(t,"decodeXAddress",{enumerable:true,get:function(){return s.decodeXAddress}});Object.defineProperty(t,"encodeAccountID",{enumerable:true,get:function(){return s.encodeAccountID}});Object.defineProperty(t,"encodeAccountPublic",{enumerable:true,get:function(){return s.encodeAccountPublic}});Object.defineProperty(t,"encodeNodePublic",{enumerable:true,get:function(){return s.encodeNodePublic}});Object.defineProperty(t,"encodeSeed",{enumerable:true,get:function(){return s.encodeSeed}});Object.defineProperty(t,"encodeXAddress",{enumerable:true,get:function(){return s.encodeXAddress}});Object.defineProperty(t,"isValidClassicAddress",{enumerable:true,get:function(){return s.isValidClassicAddress}});Object.defineProperty(t,"isValidXAddress",{enumerable:true,get:function(){return s.isValidXAddress}});Object.defineProperty(t,"xAddressToClassicAddress",{enumerable:true,get:function(){return s.xAddressToClassicAddress}});const u=a(r(8169));const c=o(r(3721));t.createCrossChainPayment=c.default;const l=r(9688);Object.defineProperty(t,"deriveKeypair",{enumerable:true,get:function(){return l.deriveKeypair}});Object.defineProperty(t,"deriveXAddress",{enumerable:true,get:function(){return l.deriveXAddress}});const d=o(r(2232));t.getBalanceChanges=d.default;const h=r(283);const p=o(r(1547));t.parseNFTokenID=p.default;const m=r(4146);Object.defineProperty(t,"percentToTransferRate",{enumerable:true,get:function(){return m.percentToTransferRate}});Object.defineProperty(t,"decimalToTransferRate",{enumerable:true,get:function(){return m.decimalToTransferRate}});Object.defineProperty(t,"transferRateToDecimal",{enumerable:true,get:function(){return m.transferRateToDecimal}});Object.defineProperty(t,"percentToQuality",{enumerable:true,get:function(){return m.percentToQuality}});Object.defineProperty(t,"decimalToQuality",{enumerable:true,get:function(){return m.decimalToQuality}});Object.defineProperty(t,"qualityToDecimal",{enumerable:true,get:function(){return m.qualityToDecimal}});const g=o(r(3839));t.signPaymentChannelClaim=g.default;const v=r(9963);Object.defineProperty(t,"convertHexToString",{enumerable:true,get:function(){return v.convertHexToString}});Object.defineProperty(t,"convertStringToHex",{enumerable:true,get:function(){return v.convertStringToHex}});const b=r(2445);Object.defineProperty(t,"rippleTimeToISOTime",{enumerable:true,get:function(){return b.rippleTimeToISOTime}});Object.defineProperty(t,"isoTimeToRippleTime",{enumerable:true,get:function(){return b.isoTimeToRippleTime}});Object.defineProperty(t,"rippleTimeToUnixTime",{enumerable:true,get:function(){return b.rippleTimeToUnixTime}});Object.defineProperty(t,"unixTimeToRippleTime",{enumerable:true,get:function(){return b.unixTimeToRippleTime}});const y=o(r(4902));t.verifyPaymentChannelClaim=y.default;const w=r(6594);Object.defineProperty(t,"xrpToDrops",{enumerable:true,get:function(){return w.xrpToDrops}});Object.defineProperty(t,"dropsToXrp",{enumerable:true,get:function(){return w.dropsToXrp}});function isValidSecret(e){try{(0,l.deriveKeypair)(e);return true}catch(e){return false}}t.isValidSecret=isValidSecret;function encode(e){return u.encode(e)}t.encode=encode;function encodeForSigning(e){return u.encodeForSigning(e)}t.encodeForSigning=encodeForSigning;function encodeForSigningClaim(e){return u.encodeForSigningClaim(e)}t.encodeForSigningClaim=encodeForSigningClaim;function encodeForMultiSigning(e,t){return u.encodeForMultisigning(e,t)}t.encodeForMultiSigning=encodeForMultiSigning;function decode(e){return u.decode(e)}t.decode=decode;function isValidAddress(e){return(0,s.isValidXAddress)(e)||(0,s.isValidClassicAddress)(e)}t.isValidAddress=isValidAddress;function hasNextPage(e){return Boolean(e.result["marker"])}t.hasNextPage=hasNextPage;const _={hashSignedTx:h.hashSignedTx,hashTx:h.hashTx,hashAccountRoot:h.hashAccountRoot,hashSignerListId:h.hashSignerListId,hashOfferId:h.hashOfferId,hashTrustline:h.hashTrustline,hashTxTree:h.hashTxTree,hashStateTree:h.hashStateTree,hashLedger:h.hashLedger,hashLedgerHeader:h.hashLedgerHeader,hashEscrow:h.hashEscrow,hashPaymentChannel:h.hashPaymentChannel};t.hashes=_},1547:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(1806));const a=r(3544);const o=r(5449);function unscrambleTaxon(e,t){return(e^384160001*t+2459)%4294967296}function parseNFTokenID(e){const t=64;if(e.length!==t){throw new o.XrplError(`Attempting to parse a nftokenID with length ${e.length}\n , but expected a token with length ${t}`)}const r=new i.default(e.substring(48,56),16).toNumber();const n=new i.default(e.substring(56,64),16).toNumber();const s={NFTokenID:e,Flags:new i.default(e.substring(0,4),16).toNumber(),TransferFee:new i.default(e.substring(4,8),16).toNumber(),Issuer:(0,a.encodeAccountID)(Buffer.from(e.substring(8,48),"hex")),Taxon:unscrambleTaxon(r,n),Sequence:n};return s}t["default"]=parseNFTokenID},4146:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.percentToQuality=t.transferRateToDecimal=t.qualityToDecimal=t.decimalToQuality=t.percentToTransferRate=t.decimalToTransferRate=void 0;const i=n(r(1806));const a=r(5449);const o=10;const s="1000000000";const u="2000000000";function percentToDecimal(e){if(!e.endsWith("%")){throw new a.ValidationError(`Value ${e} must end with %`)}const t=e.split("%").filter((e=>e!==""));if(t.length!==1){throw new a.ValidationError(`Value ${e} contains too many % signs`)}return new i.default(t[0]).dividedBy("100").toString(o)}function decimalToTransferRate(e){const t=new i.default(e).times(s).plus(s);if(t.isLessThan(s)||t.isGreaterThan(u)){throw new a.ValidationError(`Decimal value must be between 0 and 1.00.`)}const r=t.toString(o);if(r===s){return 0}if(r==="NaN"){throw new a.ValidationError(`Value is not a number`)}if(r.includes(".")){throw new a.ValidationError(`Decimal exceeds maximum precision.`)}return Number(r)}t.decimalToTransferRate=decimalToTransferRate;function percentToTransferRate(e){return decimalToTransferRate(percentToDecimal(e))}t.percentToTransferRate=percentToTransferRate;function decimalToQuality(e){const t=new i.default(e).times(s);const r=t.toString(o);if(r==="NaN"){throw new a.ValidationError(`Value is not a number`)}if(r.includes("-")){throw new a.ValidationError("Cannot have negative Quality")}if(r===s){return 0}if(r.includes(".")){throw new a.ValidationError(`Decimal exceeds maximum precision.`)}return Number(r)}t.decimalToQuality=decimalToQuality;function qualityToDecimal(e){if(!Number.isInteger(e)){throw new a.ValidationError("Quality must be an integer")}if(e<0){throw new a.ValidationError("Negative quality not allowed")}if(e===0){return"1"}const t=new i.default(e).dividedBy(s);return t.toString(o)}t.qualityToDecimal=qualityToDecimal;function transferRateToDecimal(e){if(!Number.isInteger(e)){throw new a.ValidationError("Error decoding, transfer Rate must be an integer")}if(e===0){return"0"}const t=new i.default(e).minus(s).dividedBy(s);if(t.isLessThan(0)){throw new a.ValidationError("Error decoding, negative transfer rate")}return t.toString(o)}t.transferRateToDecimal=transferRateToDecimal;function percentToQuality(e){return decimalToQuality(percentToDecimal(e))}t.percentToQuality=percentToQuality},3839:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(8169));const a=n(r(9466));const o=r(6594);function signPaymentChannelClaim(e,t,r){const n=i.default.encodeForSigningClaim({channel:e,amount:(0,o.xrpToDrops)(t)});return a.default.sign(n,r)}t["default"]=signPaymentChannelClaim},9963:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.convertStringToHex=t.convertHexToString=void 0;function convertStringToHex(e){return Buffer.from(e,"utf8").toString("hex").toUpperCase()}t.convertStringToHex=convertStringToHex;function convertHexToString(e,t="utf8"){return Buffer.from(e,"hex").toString(t)}t.convertHexToString=convertHexToString},2445:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isoTimeToRippleTime=t.rippleTimeToISOTime=t.unixTimeToRippleTime=t.rippleTimeToUnixTime=void 0;const r=946684800;function rippleTimeToUnixTime(e){return(e+r)*1e3}t.rippleTimeToUnixTime=rippleTimeToUnixTime;function unixTimeToRippleTime(e){return Math.round(e/1e3)-r}t.unixTimeToRippleTime=unixTimeToRippleTime;function rippleTimeToISOTime(e){return new Date(rippleTimeToUnixTime(e)).toISOString()}t.rippleTimeToISOTime=rippleTimeToISOTime;function isoTimeToRippleTime(e){const t=typeof e==="string"?new Date(e):e;return unixTimeToRippleTime(t.getTime())}t.isoTimeToRippleTime=isoTimeToRippleTime},4902:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(8169));const a=n(r(9466));const o=r(6594);function verifyPaymentChannelClaim(e,t,r,n){const s=i.default.encodeForSigningClaim({channel:e,amount:(0,o.xrpToDrops)(t)});return a.default.verify(s,r,n)}t["default"]=verifyPaymentChannelClaim},6594:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.xrpToDrops=t.dropsToXrp=void 0;const i=n(r(1806));const a=r(5449);const o=1e6;const s=6;const u=10;const c=/^-?[0-9.]+$/u;function dropsToXrp(e){const t=new i.default(e).toString(u);if(typeof e==="string"&&t==="NaN"){throw new a.ValidationError(`dropsToXrp: invalid value '${e}', should be a BigNumber or string-encoded number.`)}if(t.includes(".")){throw new a.ValidationError(`dropsToXrp: value '${t}' has too many decimal places.`)}if(!c.exec(t)){throw new a.ValidationError(`dropsToXrp: failed sanity check -`+` value '${t}',`+` does not match (^-?[0-9]+$).`)}return new i.default(t).dividedBy(o).toString(u)}t.dropsToXrp=dropsToXrp;function xrpToDrops(e){const t=new i.default(e).toString(u);if(typeof e==="string"&&t==="NaN"){throw new a.ValidationError(`xrpToDrops: invalid value '${e}', should be a BigNumber or string-encoded number.`)}if(!c.exec(t)){throw new a.ValidationError(`xrpToDrops: failed sanity check - value '${t}', does not match (^-?[0-9.]+$).`)}const r=t.split(".");if(r.length>2){throw new a.ValidationError(`xrpToDrops: failed sanity check - value '${t}' has too many decimal points.`)}const n=r[1]||"0";if(n.length>s){throw new a.ValidationError(`xrpToDrops: value '${t}' has too many decimal places.`)}return new i.default(t).times(o).integerValue(i.default.ROUND_FLOOR).toString(u)}t.xrpToDrops=xrpToDrops},1519:function(e,t,r){e=r.nmd(e);(function(e,t){"use strict";function assert(e,t){if(!e)throw new Error(t||"Assertion failed")}function inherits(e,t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}function BN(e,t,r){if(BN.isBN(e)){return e}this.negative=0;this.words=null;this.length=0;this.red=null;if(e!==null){if(t==="le"||t==="be"){r=t;t=10}this._init(e||0,t||10,r||"be")}}if(typeof e==="object"){e.exports=BN}else{t.BN=BN}BN.BN=BN;BN.wordSize=26;var n;try{if(typeof window!=="undefined"&&typeof window.Buffer!=="undefined"){n=window.Buffer}else{n=r(4300).Buffer}}catch(e){}BN.isBN=function isBN(e){if(e instanceof BN){return true}return e!==null&&typeof e==="object"&&e.constructor.wordSize===BN.wordSize&&Array.isArray(e.words)};BN.max=function max(e,t){if(e.cmp(t)>0)return e;return t};BN.min=function min(e,t){if(e.cmp(t)<0)return e;return t};BN.prototype._init=function init(e,t,r){if(typeof e==="number"){return this._initNumber(e,t,r)}if(typeof e==="object"){return this._initArray(e,t,r)}if(t==="hex"){t=16}assert(t===(t|0)&&t>=2&&t<=36);e=e.toString().replace(/\s+/g,"");var n=0;if(e[0]==="-"){n++;this.negative=1}if(n<e.length){if(t===16){this._parseHex(e,n,r)}else{this._parseBase(e,t,n);if(r==="le"){this._initArray(this.toArray(),t,r)}}}};BN.prototype._initNumber=function _initNumber(e,t,r){if(e<0){this.negative=1;e=-e}if(e<67108864){this.words=[e&67108863];this.length=1}else if(e<4503599627370496){this.words=[e&67108863,e/67108864&67108863];this.length=2}else{assert(e<9007199254740992);this.words=[e&67108863,e/67108864&67108863,1];this.length=3}if(r!=="le")return;this._initArray(this.toArray(),t,r)};BN.prototype._initArray=function _initArray(e,t,r){assert(typeof e.length==="number");if(e.length<=0){this.words=[0];this.length=1;return this}this.length=Math.ceil(e.length/3);this.words=new Array(this.length);for(var n=0;n<this.length;n++){this.words[n]=0}var i,a;var o=0;if(r==="be"){for(n=e.length-1,i=0;n>=0;n-=3){a=e[n]|e[n-1]<<8|e[n-2]<<16;this.words[i]|=a<<o&67108863;this.words[i+1]=a>>>26-o&67108863;o+=24;if(o>=26){o-=26;i++}}}else if(r==="le"){for(n=0,i=0;n<e.length;n+=3){a=e[n]|e[n+1]<<8|e[n+2]<<16;this.words[i]|=a<<o&67108863;this.words[i+1]=a>>>26-o&67108863;o+=24;if(o>=26){o-=26;i++}}}return this._strip()};function parseHex4Bits(e,t){var r=e.charCodeAt(t);if(r>=48&&r<=57){return r-48}else if(r>=65&&r<=70){return r-55}else if(r>=97&&r<=102){return r-87}else{assert(false,"Invalid character in "+e)}}function parseHexByte(e,t,r){var n=parseHex4Bits(e,r);if(r-1>=t){n|=parseHex4Bits(e,r-1)<<4}return n}BN.prototype._parseHex=function _parseHex(e,t,r){this.length=Math.ceil((e.length-t)/6);this.words=new Array(this.length);for(var n=0;n<this.length;n++){this.words[n]=0}var i=0;var a=0;var o;if(r==="be"){for(n=e.length-1;n>=t;n-=2){o=parseHexByte(e,t,n)<<i;this.words[a]|=o&67108863;if(i>=18){i-=18;a+=1;this.words[a]|=o>>>26}else{i+=8}}}else{var s=e.length-t;for(n=s%2===0?t+1:t;n<e.length;n+=2){o=parseHexByte(e,t,n)<<i;this.words[a]|=o&67108863;if(i>=18){i-=18;a+=1;this.words[a]|=o>>>26}else{i+=8}}}this._strip()};function parseBase(e,t,r,n){var i=0;var a=0;var o=Math.min(e.length,r);for(var s=t;s<o;s++){var u=e.charCodeAt(s)-48;i*=n;if(u>=49){a=u-49+10}else if(u>=17){a=u-17+10}else{a=u}assert(u>=0&&a<n,"Invalid character");i+=a}return i}BN.prototype._parseBase=function _parseBase(e,t,r){this.words=[0];this.length=1;for(var n=0,i=1;i<=67108863;i*=t){n++}n--;i=i/t|0;var a=e.length-r;var o=a%n;var s=Math.min(a,a-o)+r;var u=0;for(var c=r;c<s;c+=n){u=parseBase(e,c,c+n,t);this.imuln(i);if(this.words[0]+u<67108864){this.words[0]+=u}else{this._iaddn(u)}}if(o!==0){var l=1;u=parseBase(e,c,e.length,t);for(c=0;c<o;c++){l*=t}this.imuln(l);if(this.words[0]+u<67108864){this.words[0]+=u}else{this._iaddn(u)}}this._strip()};BN.prototype.copy=function copy(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++){e.words[t]=this.words[t]}e.length=this.length;e.negative=this.negative;e.red=this.red};function move(e,t){e.words=t.words;e.length=t.length;e.negative=t.negative;e.red=t.red}BN.prototype._move=function _move(e){move(e,this)};BN.prototype.clone=function clone(){var e=new BN(null);this.copy(e);return e};BN.prototype._expand=function _expand(e){while(this.length<e){this.words[this.length++]=0}return this};BN.prototype._strip=function strip(){while(this.length>1&&this.words[this.length-1]===0){this.length--}return this._normSign()};BN.prototype._normSign=function _normSign(){if(this.length===1&&this.words[0]===0){this.negative=0}return this};if(typeof Symbol!=="undefined"&&typeof Symbol.for==="function"){try{BN.prototype[Symbol.for("nodejs.util.inspect.custom")]=inspect}catch(e){BN.prototype.inspect=inspect}}else{BN.prototype.inspect=inspect}function inspect(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var i=["","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"];var a=[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];var o=[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];BN.prototype.toString=function toString(e,t){e=e||10;t=t|0||1;var r;if(e===16||e==="hex"){r="";var n=0;var s=0;for(var u=0;u<this.length;u++){var c=this.words[u];var l=((c<<n|s)&16777215).toString(16);s=c>>>24-n&16777215;n+=2;if(n>=26){n-=26;u--}if(s!==0||u!==this.length-1){r=i[6-l.length]+l+r}else{r=l+r}}if(s!==0){r=s.toString(16)+r}while(r.length%t!==0){r="0"+r}if(this.negative!==0){r="-"+r}return r}if(e===(e|0)&&e>=2&&e<=36){var d=a[e];var h=o[e];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modrn(h).toString(e);p=p.idivn(h);if(!p.isZero()){r=i[d-m.length]+m+r}else{r=m+r}}if(this.isZero()){r="0"+r}while(r.length%t!==0){r="0"+r}if(this.negative!==0){r="-"+r}return r}assert(false,"Base should be between 2 and 36")};BN.prototype.toNumber=function toNumber(){var e=this.words[0];if(this.length===2){e+=this.words[1]*67108864}else if(this.length===3&&this.words[2]===1){e+=4503599627370496+this.words[1]*67108864}else if(this.length>2){assert(false,"Number can only safely store up to 53 bits")}return this.negative!==0?-e:e};BN.prototype.toJSON=function toJSON(){return this.toString(16,2)};if(n){BN.prototype.toBuffer=function toBuffer(e,t){return this.toArrayLike(n,e,t)}}BN.prototype.toArray=function toArray(e,t){return this.toArrayLike(Array,e,t)};var s=function allocate(e,t){if(e.allocUnsafe){return e.allocUnsafe(t)}return new e(t)};BN.prototype.toArrayLike=function toArrayLike(e,t,r){this._strip();var n=this.byteLength();var i=r||Math.max(1,n);assert(n<=i,"byte array longer than desired length");assert(i>0,"Requested array length <= 0");var a=s(e,i);var o=t==="le"?"LE":"BE";this["_toArrayLike"+o](a,n);return a};BN.prototype._toArrayLikeLE=function _toArrayLikeLE(e,t){var r=0;var n=0;for(var i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|n;e[r++]=o&255;if(r<e.length){e[r++]=o>>8&255}if(r<e.length){e[r++]=o>>16&255}if(a===6){if(r<e.length){e[r++]=o>>24&255}n=0;a=0}else{n=o>>>24;a+=2}}if(r<e.length){e[r++]=n;while(r<e.length){e[r++]=0}}};BN.prototype._toArrayLikeBE=function _toArrayLikeBE(e,t){var r=e.length-1;var n=0;for(var i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|n;e[r--]=o&255;if(r>=0){e[r--]=o>>8&255}if(r>=0){e[r--]=o>>16&255}if(a===6){if(r>=0){e[r--]=o>>24&255}n=0;a=0}else{n=o>>>24;a+=2}}if(r>=0){e[r--]=n;while(r>=0){e[r--]=0}}};if(Math.clz32){BN.prototype._countBits=function _countBits(e){return 32-Math.clz32(e)}}else{BN.prototype._countBits=function _countBits(e){var t=e;var r=0;if(t>=4096){r+=13;t>>>=13}if(t>=64){r+=7;t>>>=7}if(t>=8){r+=4;t>>>=4}if(t>=2){r+=2;t>>>=2}return r+t}}BN.prototype._zeroBits=function _zeroBits(e){if(e===0)return 26;var t=e;var r=0;if((t&8191)===0){r+=13;t>>>=13}if((t&127)===0){r+=7;t>>>=7}if((t&15)===0){r+=4;t>>>=4}if((t&3)===0){r+=2;t>>>=2}if((t&1)===0){r++}return r};BN.prototype.bitLength=function bitLength(){var e=this.words[this.length-1];var t=this._countBits(e);return(this.length-1)*26+t};function toBitArray(e){var t=new Array(e.bitLength());for(var r=0;r<t.length;r++){var n=r/26|0;var i=r%26;t[r]=e.words[n]>>>i&1}return t}BN.prototype.zeroBits=function zeroBits(){if(this.isZero())return 0;var e=0;for(var t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);e+=r;if(r!==26)break}return e};BN.prototype.byteLength=function byteLength(){return Math.ceil(this.bitLength()/8)};BN.prototype.toTwos=function toTwos(e){if(this.negative!==0){return this.abs().inotn(e).iaddn(1)}return this.clone()};BN.prototype.fromTwos=function fromTwos(e){if(this.testn(e-1)){return this.notn(e).iaddn(1).ineg()}return this.clone()};BN.prototype.isNeg=function isNeg(){return this.negative!==0};BN.prototype.neg=function neg(){return this.clone().ineg()};BN.prototype.ineg=function ineg(){if(!this.isZero()){this.negative^=1}return this};BN.prototype.iuor=function iuor(e){while(this.length<e.length){this.words[this.length++]=0}for(var t=0;t<e.length;t++){this.words[t]=this.words[t]|e.words[t]}return this._strip()};BN.prototype.ior=function ior(e){assert((this.negative|e.negative)===0);return this.iuor(e)};BN.prototype.or=function or(e){if(this.length>e.length)return this.clone().ior(e);return e.clone().ior(this)};BN.prototype.uor=function uor(e){if(this.length>e.length)return this.clone().iuor(e);return e.clone().iuor(this)};BN.prototype.iuand=function iuand(e){var t;if(this.length>e.length){t=e}else{t=this}for(var r=0;r<t.length;r++){this.words[r]=this.words[r]&e.words[r]}this.length=t.length;return this._strip()};BN.prototype.iand=function iand(e){assert((this.negative|e.negative)===0);return this.iuand(e)};BN.prototype.and=function and(e){if(this.length>e.length)return this.clone().iand(e);return e.clone().iand(this)};BN.prototype.uand=function uand(e){if(this.length>e.length)return this.clone().iuand(e);return e.clone().iuand(this)};BN.prototype.iuxor=function iuxor(e){var t;var r;if(this.length>e.length){t=this;r=e}else{t=e;r=this}for(var n=0;n<r.length;n++){this.words[n]=t.words[n]^r.words[n]}if(this!==t){for(;n<t.length;n++){this.words[n]=t.words[n]}}this.length=t.length;return this._strip()};BN.prototype.ixor=function ixor(e){assert((this.negative|e.negative)===0);return this.iuxor(e)};BN.prototype.xor=function xor(e){if(this.length>e.length)return this.clone().ixor(e);return e.clone().ixor(this)};BN.prototype.uxor=function uxor(e){if(this.length>e.length)return this.clone().iuxor(e);return e.clone().iuxor(this)};BN.prototype.inotn=function inotn(e){assert(typeof e==="number"&&e>=0);var t=Math.ceil(e/26)|0;var r=e%26;this._expand(t);if(r>0){t--}for(var n=0;n<t;n++){this.words[n]=~this.words[n]&67108863}if(r>0){this.words[n]=~this.words[n]&67108863>>26-r}return this._strip()};BN.prototype.notn=function notn(e){return this.clone().inotn(e)};BN.prototype.setn=function setn(e,t){assert(typeof e==="number"&&e>=0);var r=e/26|0;var n=e%26;this._expand(r+1);if(t){this.words[r]=this.words[r]|1<<n}else{this.words[r]=this.words[r]&~(1<<n)}return this._strip()};BN.prototype.iadd=function iadd(e){var t;if(this.negative!==0&&e.negative===0){this.negative=0;t=this.isub(e);this.negative^=1;return this._normSign()}else if(this.negative===0&&e.negative!==0){e.negative=0;t=this.isub(e);e.negative=1;return t._normSign()}var r,n;if(this.length>e.length){r=this;n=e}else{r=e;n=this}var i=0;for(var a=0;a<n.length;a++){t=(r.words[a]|0)+(n.words[a]|0)+i;this.words[a]=t&67108863;i=t>>>26}for(;i!==0&&a<r.length;a++){t=(r.words[a]|0)+i;this.words[a]=t&67108863;i=t>>>26}this.length=r.length;if(i!==0){this.words[this.length]=i;this.length++}else if(r!==this){for(;a<r.length;a++){this.words[a]=r.words[a]}}return this};BN.prototype.add=function add(e){var t;if(e.negative!==0&&this.negative===0){e.negative=0;t=this.sub(e);e.negative^=1;return t}else if(e.negative===0&&this.negative!==0){this.negative=0;t=e.sub(this);this.negative=1;return t}if(this.length>e.length)return this.clone().iadd(e);return e.clone().iadd(this)};BN.prototype.isub=function isub(e){if(e.negative!==0){e.negative=0;var t=this.iadd(e);e.negative=1;return t._normSign()}else if(this.negative!==0){this.negative=0;this.iadd(e);this.negative=1;return this._normSign()}var r=this.cmp(e);if(r===0){this.negative=0;this.length=1;this.words[0]=0;return this}var n,i;if(r>0){n=this;i=e}else{n=e;i=this}var a=0;for(var o=0;o<i.length;o++){t=(n.words[o]|0)-(i.words[o]|0)+a;a=t>>26;this.words[o]=t&67108863}for(;a!==0&&o<n.length;o++){t=(n.words[o]|0)+a;a=t>>26;this.words[o]=t&67108863}if(a===0&&o<n.length&&n!==this){for(;o<n.length;o++){this.words[o]=n.words[o]}}this.length=Math.max(this.length,o);if(n!==this){this.negative=1}return this._strip()};BN.prototype.sub=function sub(e){return this.clone().isub(e)};function smallMulTo(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n;n=n-1|0;var i=e.words[0]|0;var a=t.words[0]|0;var o=i*a;var s=o&67108863;var u=o/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){var l=u>>>26;var d=u&67108863;var h=Math.min(c,t.length-1);for(var p=Math.max(0,c-e.length+1);p<=h;p++){var m=c-p|0;i=e.words[m]|0;a=t.words[p]|0;o=i*a+d;l+=o/67108864|0;d=o&67108863}r.words[c]=d|0;u=l|0}if(u!==0){r.words[c]=u|0}else{r.length--}return r._strip()}var u=function comb10MulTo(e,t,r){var n=e.words;var i=t.words;var a=r.words;var o=0;var s;var u;var c;var l=n[0]|0;var d=l&8191;var h=l>>>13;var p=n[1]|0;var m=p&8191;var g=p>>>13;var v=n[2]|0;var b=v&8191;var y=v>>>13;var w=n[3]|0;var _=w&8191;var k=w>>>13;var A=n[4]|0;var E=A&8191;var I=A>>>13;var T=n[5]|0;var B=T&8191;var M=T>>>13;var N=n[6]|0;var x=N&8191;var O=N>>>13;var P=n[7]|0;var C=P&8191;var z=P>>>13;var F=n[8]|0;var j=F&8191;var L=F>>>13;var D=n[9]|0;var U=D&8191;var q=D>>>13;var V=i[0]|0;var H=V&8191;var W=V>>>13;var X=i[1]|0;var G=X&8191;var $=X>>>13;var J=i[2]|0;var Z=J&8191;var Y=J>>>13;var Q=i[3]|0;var ee=Q&8191;var te=Q>>>13;var re=i[4]|0;var ne=re&8191;var ie=re>>>13;var ae=i[5]|0;var oe=ae&8191;var se=ae>>>13;var ue=i[6]|0;var ce=ue&8191;var le=ue>>>13;var fe=i[7]|0;var de=fe&8191;var he=fe>>>13;var pe=i[8]|0;var me=pe&8191;var ge=pe>>>13;var ve=i[9]|0;var be=ve&8191;var ye=ve>>>13;r.negative=e.negative^t.negative;r.length=19;s=Math.imul(d,H);u=Math.imul(d,W);u=u+Math.imul(h,H)|0;c=Math.imul(h,W);var we=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(we>>>26)|0;we&=67108863;s=Math.imul(m,H);u=Math.imul(m,W);u=u+Math.imul(g,H)|0;c=Math.imul(g,W);s=s+Math.imul(d,G)|0;u=u+Math.imul(d,$)|0;u=u+Math.imul(h,G)|0;c=c+Math.imul(h,$)|0;var _e=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(_e>>>26)|0;_e&=67108863;s=Math.imul(b,H);u=Math.imul(b,W);u=u+Math.imul(y,H)|0;c=Math.imul(y,W);s=s+Math.imul(m,G)|0;u=u+Math.imul(m,$)|0;u=u+Math.imul(g,G)|0;c=c+Math.imul(g,$)|0;s=s+Math.imul(d,Z)|0;u=u+Math.imul(d,Y)|0;u=u+Math.imul(h,Z)|0;c=c+Math.imul(h,Y)|0;var Se=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Se>>>26)|0;Se&=67108863;s=Math.imul(_,H);u=Math.imul(_,W);u=u+Math.imul(k,H)|0;c=Math.imul(k,W);s=s+Math.imul(b,G)|0;u=u+Math.imul(b,$)|0;u=u+Math.imul(y,G)|0;c=c+Math.imul(y,$)|0;s=s+Math.imul(m,Z)|0;u=u+Math.imul(m,Y)|0;u=u+Math.imul(g,Z)|0;c=c+Math.imul(g,Y)|0;s=s+Math.imul(d,ee)|0;u=u+Math.imul(d,te)|0;u=u+Math.imul(h,ee)|0;c=c+Math.imul(h,te)|0;var ke=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(ke>>>26)|0;ke&=67108863;s=Math.imul(E,H);u=Math.imul(E,W);u=u+Math.imul(I,H)|0;c=Math.imul(I,W);s=s+Math.imul(_,G)|0;u=u+Math.imul(_,$)|0;u=u+Math.imul(k,G)|0;c=c+Math.imul(k,$)|0;s=s+Math.imul(b,Z)|0;u=u+Math.imul(b,Y)|0;u=u+Math.imul(y,Z)|0;c=c+Math.imul(y,Y)|0;s=s+Math.imul(m,ee)|0;u=u+Math.imul(m,te)|0;u=u+Math.imul(g,ee)|0;c=c+Math.imul(g,te)|0;s=s+Math.imul(d,ne)|0;u=u+Math.imul(d,ie)|0;u=u+Math.imul(h,ne)|0;c=c+Math.imul(h,ie)|0;var Ae=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Ae>>>26)|0;Ae&=67108863;s=Math.imul(B,H);u=Math.imul(B,W);u=u+Math.imul(M,H)|0;c=Math.imul(M,W);s=s+Math.imul(E,G)|0;u=u+Math.imul(E,$)|0;u=u+Math.imul(I,G)|0;c=c+Math.imul(I,$)|0;s=s+Math.imul(_,Z)|0;u=u+Math.imul(_,Y)|0;u=u+Math.imul(k,Z)|0;c=c+Math.imul(k,Y)|0;s=s+Math.imul(b,ee)|0;u=u+Math.imul(b,te)|0;u=u+Math.imul(y,ee)|0;c=c+Math.imul(y,te)|0;s=s+Math.imul(m,ne)|0;u=u+Math.imul(m,ie)|0;u=u+Math.imul(g,ne)|0;c=c+Math.imul(g,ie)|0;s=s+Math.imul(d,oe)|0;u=u+Math.imul(d,se)|0;u=u+Math.imul(h,oe)|0;c=c+Math.imul(h,se)|0;var Ee=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Ee>>>26)|0;Ee&=67108863;s=Math.imul(x,H);u=Math.imul(x,W);u=u+Math.imul(O,H)|0;c=Math.imul(O,W);s=s+Math.imul(B,G)|0;u=u+Math.imul(B,$)|0;u=u+Math.imul(M,G)|0;c=c+Math.imul(M,$)|0;s=s+Math.imul(E,Z)|0;u=u+Math.imul(E,Y)|0;u=u+Math.imul(I,Z)|0;c=c+Math.imul(I,Y)|0;s=s+Math.imul(_,ee)|0;u=u+Math.imul(_,te)|0;u=u+Math.imul(k,ee)|0;c=c+Math.imul(k,te)|0;s=s+Math.imul(b,ne)|0;u=u+Math.imul(b,ie)|0;u=u+Math.imul(y,ne)|0;c=c+Math.imul(y,ie)|0;s=s+Math.imul(m,oe)|0;u=u+Math.imul(m,se)|0;u=u+Math.imul(g,oe)|0;c=c+Math.imul(g,se)|0;s=s+Math.imul(d,ce)|0;u=u+Math.imul(d,le)|0;u=u+Math.imul(h,ce)|0;c=c+Math.imul(h,le)|0;var Ie=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Ie>>>26)|0;Ie&=67108863;s=Math.imul(C,H);u=Math.imul(C,W);u=u+Math.imul(z,H)|0;c=Math.imul(z,W);s=s+Math.imul(x,G)|0;u=u+Math.imul(x,$)|0;u=u+Math.imul(O,G)|0;c=c+Math.imul(O,$)|0;s=s+Math.imul(B,Z)|0;u=u+Math.imul(B,Y)|0;u=u+Math.imul(M,Z)|0;c=c+Math.imul(M,Y)|0;s=s+Math.imul(E,ee)|0;u=u+Math.imul(E,te)|0;u=u+Math.imul(I,ee)|0;c=c+Math.imul(I,te)|0;s=s+Math.imul(_,ne)|0;u=u+Math.imul(_,ie)|0;u=u+Math.imul(k,ne)|0;c=c+Math.imul(k,ie)|0;s=s+Math.imul(b,oe)|0;u=u+Math.imul(b,se)|0;u=u+Math.imul(y,oe)|0;c=c+Math.imul(y,se)|0;s=s+Math.imul(m,ce)|0;u=u+Math.imul(m,le)|0;u=u+Math.imul(g,ce)|0;c=c+Math.imul(g,le)|0;s=s+Math.imul(d,de)|0;u=u+Math.imul(d,he)|0;u=u+Math.imul(h,de)|0;c=c+Math.imul(h,he)|0;var Te=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Te>>>26)|0;Te&=67108863;s=Math.imul(j,H);u=Math.imul(j,W);u=u+Math.imul(L,H)|0;c=Math.imul(L,W);s=s+Math.imul(C,G)|0;u=u+Math.imul(C,$)|0;u=u+Math.imul(z,G)|0;c=c+Math.imul(z,$)|0;s=s+Math.imul(x,Z)|0;u=u+Math.imul(x,Y)|0;u=u+Math.imul(O,Z)|0;c=c+Math.imul(O,Y)|0;s=s+Math.imul(B,ee)|0;u=u+Math.imul(B,te)|0;u=u+Math.imul(M,ee)|0;c=c+Math.imul(M,te)|0;s=s+Math.imul(E,ne)|0;u=u+Math.imul(E,ie)|0;u=u+Math.imul(I,ne)|0;c=c+Math.imul(I,ie)|0;s=s+Math.imul(_,oe)|0;u=u+Math.imul(_,se)|0;u=u+Math.imul(k,oe)|0;c=c+Math.imul(k,se)|0;s=s+Math.imul(b,ce)|0;u=u+Math.imul(b,le)|0;u=u+Math.imul(y,ce)|0;c=c+Math.imul(y,le)|0;s=s+Math.imul(m,de)|0;u=u+Math.imul(m,he)|0;u=u+Math.imul(g,de)|0;c=c+Math.imul(g,he)|0;s=s+Math.imul(d,me)|0;u=u+Math.imul(d,ge)|0;u=u+Math.imul(h,me)|0;c=c+Math.imul(h,ge)|0;var Be=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Be>>>26)|0;Be&=67108863;s=Math.imul(U,H);u=Math.imul(U,W);u=u+Math.imul(q,H)|0;c=Math.imul(q,W);s=s+Math.imul(j,G)|0;u=u+Math.imul(j,$)|0;u=u+Math.imul(L,G)|0;c=c+Math.imul(L,$)|0;s=s+Math.imul(C,Z)|0;u=u+Math.imul(C,Y)|0;u=u+Math.imul(z,Z)|0;c=c+Math.imul(z,Y)|0;s=s+Math.imul(x,ee)|0;u=u+Math.imul(x,te)|0;u=u+Math.imul(O,ee)|0;c=c+Math.imul(O,te)|0;s=s+Math.imul(B,ne)|0;u=u+Math.imul(B,ie)|0;u=u+Math.imul(M,ne)|0;c=c+Math.imul(M,ie)|0;s=s+Math.imul(E,oe)|0;u=u+Math.imul(E,se)|0;u=u+Math.imul(I,oe)|0;c=c+Math.imul(I,se)|0;s=s+Math.imul(_,ce)|0;u=u+Math.imul(_,le)|0;u=u+Math.imul(k,ce)|0;c=c+Math.imul(k,le)|0;s=s+Math.imul(b,de)|0;u=u+Math.imul(b,he)|0;u=u+Math.imul(y,de)|0;c=c+Math.imul(y,he)|0;s=s+Math.imul(m,me)|0;u=u+Math.imul(m,ge)|0;u=u+Math.imul(g,me)|0;c=c+Math.imul(g,ge)|0;s=s+Math.imul(d,be)|0;u=u+Math.imul(d,ye)|0;u=u+Math.imul(h,be)|0;c=c+Math.imul(h,ye)|0;var Me=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Me>>>26)|0;Me&=67108863;s=Math.imul(U,G);u=Math.imul(U,$);u=u+Math.imul(q,G)|0;c=Math.imul(q,$);s=s+Math.imul(j,Z)|0;u=u+Math.imul(j,Y)|0;u=u+Math.imul(L,Z)|0;c=c+Math.imul(L,Y)|0;s=s+Math.imul(C,ee)|0;u=u+Math.imul(C,te)|0;u=u+Math.imul(z,ee)|0;c=c+Math.imul(z,te)|0;s=s+Math.imul(x,ne)|0;u=u+Math.imul(x,ie)|0;u=u+Math.imul(O,ne)|0;c=c+Math.imul(O,ie)|0;s=s+Math.imul(B,oe)|0;u=u+Math.imul(B,se)|0;u=u+Math.imul(M,oe)|0;c=c+Math.imul(M,se)|0;s=s+Math.imul(E,ce)|0;u=u+Math.imul(E,le)|0;u=u+Math.imul(I,ce)|0;c=c+Math.imul(I,le)|0;s=s+Math.imul(_,de)|0;u=u+Math.imul(_,he)|0;u=u+Math.imul(k,de)|0;c=c+Math.imul(k,he)|0;s=s+Math.imul(b,me)|0;u=u+Math.imul(b,ge)|0;u=u+Math.imul(y,me)|0;c=c+Math.imul(y,ge)|0;s=s+Math.imul(m,be)|0;u=u+Math.imul(m,ye)|0;u=u+Math.imul(g,be)|0;c=c+Math.imul(g,ye)|0;var Ne=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Ne>>>26)|0;Ne&=67108863;s=Math.imul(U,Z);u=Math.imul(U,Y);u=u+Math.imul(q,Z)|0;c=Math.imul(q,Y);s=s+Math.imul(j,ee)|0;u=u+Math.imul(j,te)|0;u=u+Math.imul(L,ee)|0;c=c+Math.imul(L,te)|0;s=s+Math.imul(C,ne)|0;u=u+Math.imul(C,ie)|0;u=u+Math.imul(z,ne)|0;c=c+Math.imul(z,ie)|0;s=s+Math.imul(x,oe)|0;u=u+Math.imul(x,se)|0;u=u+Math.imul(O,oe)|0;c=c+Math.imul(O,se)|0;s=s+Math.imul(B,ce)|0;u=u+Math.imul(B,le)|0;u=u+Math.imul(M,ce)|0;c=c+Math.imul(M,le)|0;s=s+Math.imul(E,de)|0;u=u+Math.imul(E,he)|0;u=u+Math.imul(I,de)|0;c=c+Math.imul(I,he)|0;s=s+Math.imul(_,me)|0;u=u+Math.imul(_,ge)|0;u=u+Math.imul(k,me)|0;c=c+Math.imul(k,ge)|0;s=s+Math.imul(b,be)|0;u=u+Math.imul(b,ye)|0;u=u+Math.imul(y,be)|0;c=c+Math.imul(y,ye)|0;var xe=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(xe>>>26)|0;xe&=67108863;s=Math.imul(U,ee);u=Math.imul(U,te);u=u+Math.imul(q,ee)|0;c=Math.imul(q,te);s=s+Math.imul(j,ne)|0;u=u+Math.imul(j,ie)|0;u=u+Math.imul(L,ne)|0;c=c+Math.imul(L,ie)|0;s=s+Math.imul(C,oe)|0;u=u+Math.imul(C,se)|0;u=u+Math.imul(z,oe)|0;c=c+Math.imul(z,se)|0;s=s+Math.imul(x,ce)|0;u=u+Math.imul(x,le)|0;u=u+Math.imul(O,ce)|0;c=c+Math.imul(O,le)|0;s=s+Math.imul(B,de)|0;u=u+Math.imul(B,he)|0;u=u+Math.imul(M,de)|0;c=c+Math.imul(M,he)|0;s=s+Math.imul(E,me)|0;u=u+Math.imul(E,ge)|0;u=u+Math.imul(I,me)|0;c=c+Math.imul(I,ge)|0;s=s+Math.imul(_,be)|0;u=u+Math.imul(_,ye)|0;u=u+Math.imul(k,be)|0;c=c+Math.imul(k,ye)|0;var Oe=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Oe>>>26)|0;Oe&=67108863;s=Math.imul(U,ne);u=Math.imul(U,ie);u=u+Math.imul(q,ne)|0;c=Math.imul(q,ie);s=s+Math.imul(j,oe)|0;u=u+Math.imul(j,se)|0;u=u+Math.imul(L,oe)|0;c=c+Math.imul(L,se)|0;s=s+Math.imul(C,ce)|0;u=u+Math.imul(C,le)|0;u=u+Math.imul(z,ce)|0;c=c+Math.imul(z,le)|0;s=s+Math.imul(x,de)|0;u=u+Math.imul(x,he)|0;u=u+Math.imul(O,de)|0;c=c+Math.imul(O,he)|0;s=s+Math.imul(B,me)|0;u=u+Math.imul(B,ge)|0;u=u+Math.imul(M,me)|0;c=c+Math.imul(M,ge)|0;s=s+Math.imul(E,be)|0;u=u+Math.imul(E,ye)|0;u=u+Math.imul(I,be)|0;c=c+Math.imul(I,ye)|0;var Pe=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Pe>>>26)|0;Pe&=67108863;s=Math.imul(U,oe);u=Math.imul(U,se);u=u+Math.imul(q,oe)|0;c=Math.imul(q,se);s=s+Math.imul(j,ce)|0;u=u+Math.imul(j,le)|0;u=u+Math.imul(L,ce)|0;c=c+Math.imul(L,le)|0;s=s+Math.imul(C,de)|0;u=u+Math.imul(C,he)|0;u=u+Math.imul(z,de)|0;c=c+Math.imul(z,he)|0;s=s+Math.imul(x,me)|0;u=u+Math.imul(x,ge)|0;u=u+Math.imul(O,me)|0;c=c+Math.imul(O,ge)|0;s=s+Math.imul(B,be)|0;u=u+Math.imul(B,ye)|0;u=u+Math.imul(M,be)|0;c=c+Math.imul(M,ye)|0;var Ce=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Ce>>>26)|0;Ce&=67108863;s=Math.imul(U,ce);u=Math.imul(U,le);u=u+Math.imul(q,ce)|0;c=Math.imul(q,le);s=s+Math.imul(j,de)|0;u=u+Math.imul(j,he)|0;u=u+Math.imul(L,de)|0;c=c+Math.imul(L,he)|0;s=s+Math.imul(C,me)|0;u=u+Math.imul(C,ge)|0;u=u+Math.imul(z,me)|0;c=c+Math.imul(z,ge)|0;s=s+Math.imul(x,be)|0;u=u+Math.imul(x,ye)|0;u=u+Math.imul(O,be)|0;c=c+Math.imul(O,ye)|0;var ze=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(ze>>>26)|0;ze&=67108863;s=Math.imul(U,de);u=Math.imul(U,he);u=u+Math.imul(q,de)|0;c=Math.imul(q,he);s=s+Math.imul(j,me)|0;u=u+Math.imul(j,ge)|0;u=u+Math.imul(L,me)|0;c=c+Math.imul(L,ge)|0;s=s+Math.imul(C,be)|0;u=u+Math.imul(C,ye)|0;u=u+Math.imul(z,be)|0;c=c+Math.imul(z,ye)|0;var Fe=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Fe>>>26)|0;Fe&=67108863;s=Math.imul(U,me);u=Math.imul(U,ge);u=u+Math.imul(q,me)|0;c=Math.imul(q,ge);s=s+Math.imul(j,be)|0;u=u+Math.imul(j,ye)|0;u=u+Math.imul(L,be)|0;c=c+Math.imul(L,ye)|0;var je=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(je>>>26)|0;je&=67108863;s=Math.imul(U,be);u=Math.imul(U,ye);u=u+Math.imul(q,be)|0;c=Math.imul(q,ye);var Le=(o+s|0)+((u&8191)<<13)|0;o=(c+(u>>>13)|0)+(Le>>>26)|0;Le&=67108863;a[0]=we;a[1]=_e;a[2]=Se;a[3]=ke;a[4]=Ae;a[5]=Ee;a[6]=Ie;a[7]=Te;a[8]=Be;a[9]=Me;a[10]=Ne;a[11]=xe;a[12]=Oe;a[13]=Pe;a[14]=Ce;a[15]=ze;a[16]=Fe;a[17]=je;a[18]=Le;if(o!==0){a[19]=o;r.length++}return r};if(!Math.imul){u=smallMulTo}function bigMulTo(e,t,r){r.negative=t.negative^e.negative;r.length=e.length+t.length;var n=0;var i=0;for(var a=0;a<r.length-1;a++){var o=i;i=0;var s=n&67108863;var u=Math.min(a,t.length-1);for(var c=Math.max(0,a-e.length+1);c<=u;c++){var l=a-c;var d=e.words[l]|0;var h=t.words[c]|0;var p=d*h;var m=p&67108863;o=o+(p/67108864|0)|0;m=m+s|0;s=m&67108863;o=o+(m>>>26)|0;i+=o>>>26;o&=67108863}r.words[a]=s;n=o;o=i}if(n!==0){r.words[a]=n}else{r.length--}return r._strip()}function jumboMulTo(e,t,r){return bigMulTo(e,t,r)}BN.prototype.mulTo=function mulTo(e,t){var r;var n=this.length+e.length;if(this.length===10&&e.length===10){r=u(this,e,t)}else if(n<63){r=smallMulTo(this,e,t)}else if(n<1024){r=bigMulTo(this,e,t)}else{r=jumboMulTo(this,e,t)}return r};function FFTM(e,t){this.x=e;this.y=t}FFTM.prototype.makeRBT=function makeRBT(e){var t=new Array(e);var r=BN.prototype._countBits(e)-1;for(var n=0;n<e;n++){t[n]=this.revBin(n,r,e)}return t};FFTM.prototype.revBin=function revBin(e,t,r){if(e===0||e===r-1)return e;var n=0;for(var i=0;i<t;i++){n|=(e&1)<<t-i-1;e>>=1}return n};FFTM.prototype.permute=function permute(e,t,r,n,i,a){for(var o=0;o<a;o++){n[o]=t[e[o]];i[o]=r[e[o]]}};FFTM.prototype.transform=function transform(e,t,r,n,i,a){this.permute(a,e,t,r,n,i);for(var o=1;o<i;o<<=1){var s=o<<1;var u=Math.cos(2*Math.PI/s);var c=Math.sin(2*Math.PI/s);for(var l=0;l<i;l+=s){var d=u;var h=c;for(var p=0;p<o;p++){var m=r[l+p];var g=n[l+p];var v=r[l+p+o];var b=n[l+p+o];var y=d*v-h*b;b=d*b+h*v;v=y;r[l+p]=m+v;n[l+p]=g+b;r[l+p+o]=m-v;n[l+p+o]=g-b;if(p!==s){y=u*d-c*h;h=u*h+c*d;d=y}}}}};FFTM.prototype.guessLen13b=function guessLen13b(e,t){var r=Math.max(t,e)|1;var n=r&1;var i=0;for(r=r/2|0;r;r=r>>>1){i++}return 1<<i+1+n};FFTM.prototype.conjugate=function conjugate(e,t,r){if(r<=1)return;for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1];e[r-n-1]=i;i=t[n];t[n]=-t[r-n-1];t[r-n-1]=-i}};FFTM.prototype.normalize13b=function normalize13b(e,t){var r=0;for(var n=0;n<t/2;n++){var i=Math.round(e[2*n+1]/t)*8192+Math.round(e[2*n]/t)+r;e[n]=i&67108863;if(i<67108864){r=0}else{r=i/67108864|0}}return e};FFTM.prototype.convert13b=function convert13b(e,t,r,n){var i=0;for(var a=0;a<t;a++){i=i+(e[a]|0);r[2*a]=i&8191;i=i>>>13;r[2*a+1]=i&8191;i=i>>>13}for(a=2*t;a<n;++a){r[a]=0}assert(i===0);assert((i&~8191)===0)};FFTM.prototype.stub=function stub(e){var t=new Array(e);for(var r=0;r<e;r++){t[r]=0}return t};FFTM.prototype.mulp=function mulp(e,t,r){var n=2*this.guessLen13b(e.length,t.length);var i=this.makeRBT(n);var a=this.stub(n);var o=new Array(n);var s=new Array(n);var u=new Array(n);var c=new Array(n);var l=new Array(n);var d=new Array(n);var h=r.words;h.length=n;this.convert13b(e.words,e.length,o,n);this.convert13b(t.words,t.length,c,n);this.transform(o,a,s,u,n,i);this.transform(c,a,l,d,n,i);for(var p=0;p<n;p++){var m=s[p]*l[p]-u[p]*d[p];u[p]=s[p]*d[p]+u[p]*l[p];s[p]=m}this.conjugate(s,u,n);this.transform(s,u,h,a,n,i);this.conjugate(h,a,n);this.normalize13b(h,n);r.negative=e.negative^t.negative;r.length=e.length+t.length;return r._strip()};BN.prototype.mul=function mul(e){var t=new BN(null);t.words=new Array(this.length+e.length);return this.mulTo(e,t)};BN.prototype.mulf=function mulf(e){var t=new BN(null);t.words=new Array(this.length+e.length);return jumboMulTo(this,e,t)};BN.prototype.imul=function imul(e){return this.clone().mulTo(e,this)};BN.prototype.imuln=function imuln(e){var t=e<0;if(t)e=-e;assert(typeof e==="number");assert(e<67108864);var r=0;for(var n=0;n<this.length;n++){var i=(this.words[n]|0)*e;var a=(i&67108863)+(r&67108863);r>>=26;r+=i/67108864|0;r+=a>>>26;this.words[n]=a&67108863}if(r!==0){this.words[n]=r;this.length++}return t?this.ineg():this};BN.prototype.muln=function muln(e){return this.clone().imuln(e)};BN.prototype.sqr=function sqr(){return this.mul(this)};BN.prototype.isqr=function isqr(){return this.imul(this.clone())};BN.prototype.pow=function pow(e){var t=toBitArray(e);if(t.length===0)return new BN(1);var r=this;for(var n=0;n<t.length;n++,r=r.sqr()){if(t[n]!==0)break}if(++n<t.length){for(var i=r.sqr();n<t.length;n++,i=i.sqr()){if(t[n]===0)continue;r=r.mul(i)}}return r};BN.prototype.iushln=function iushln(e){assert(typeof e==="number"&&e>=0);var t=e%26;var r=(e-t)/26;var n=67108863>>>26-t<<26-t;var i;if(t!==0){var a=0;for(i=0;i<this.length;i++){var o=this.words[i]&n;var s=(this.words[i]|0)-o<<t;this.words[i]=s|a;a=o>>>26-t}if(a){this.words[i]=a;this.length++}}if(r!==0){for(i=this.length-1;i>=0;i--){this.words[i+r]=this.words[i]}for(i=0;i<r;i++){this.words[i]=0}this.length+=r}return this._strip()};BN.prototype.ishln=function ishln(e){assert(this.negative===0);return this.iushln(e)};BN.prototype.iushrn=function iushrn(e,t,r){assert(typeof e==="number"&&e>=0);var n;if(t){n=(t-t%26)/26}else{n=0}var i=e%26;var a=Math.min((e-i)/26,this.length);var o=67108863^67108863>>>i<<i;var s=r;n-=a;n=Math.max(0,n);if(s){for(var u=0;u<a;u++){s.words[u]=this.words[u]}s.length=a}if(a===0){}else if(this.length>a){this.length-=a;for(u=0;u<this.length;u++){this.words[u]=this.words[u+a]}}else{this.words[0]=0;this.length=1}var c=0;for(u=this.length-1;u>=0&&(c!==0||u>=n);u--){var l=this.words[u]|0;this.words[u]=c<<26-i|l>>>i;c=l&o}if(s&&c!==0){s.words[s.length++]=c}if(this.length===0){this.words[0]=0;this.length=1}return this._strip()};BN.prototype.ishrn=function ishrn(e,t,r){assert(this.negative===0);return this.iushrn(e,t,r)};BN.prototype.shln=function shln(e){return this.clone().ishln(e)};BN.prototype.ushln=function ushln(e){return this.clone().iushln(e)};BN.prototype.shrn=function shrn(e){return this.clone().ishrn(e)};BN.prototype.ushrn=function ushrn(e){return this.clone().iushrn(e)};BN.prototype.testn=function testn(e){assert(typeof e==="number"&&e>=0);var t=e%26;var r=(e-t)/26;var n=1<<t;if(this.length<=r)return false;var i=this.words[r];return!!(i&n)};BN.prototype.imaskn=function imaskn(e){assert(typeof e==="number"&&e>=0);var t=e%26;var r=(e-t)/26;assert(this.negative===0,"imaskn works only with positive numbers");if(this.length<=r){return this}if(t!==0){r++}this.length=Math.min(r,this.length);if(t!==0){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this._strip()};BN.prototype.maskn=function maskn(e){return this.clone().imaskn(e)};BN.prototype.iaddn=function iaddn(e){assert(typeof e==="number");assert(e<67108864);if(e<0)return this.isubn(-e);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<=e){this.words[0]=e-(this.words[0]|0);this.negative=0;return this}this.negative=0;this.isubn(e);this.negative=1;return this}return this._iaddn(e)};BN.prototype._iaddn=function _iaddn(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++){this.words[t]-=67108864;if(t===this.length-1){this.words[t+1]=1}else{this.words[t+1]++}}this.length=Math.max(this.length,t+1);return this};BN.prototype.isubn=function isubn(e){assert(typeof e==="number");assert(e<67108864);if(e<0)return this.iaddn(-e);if(this.negative!==0){this.negative=0;this.iaddn(e);this.negative=1;return this}this.words[0]-=e;if(this.length===1&&this.words[0]<0){this.words[0]=-this.words[0];this.negative=1}else{for(var t=0;t<this.length&&this.words[t]<0;t++){this.words[t]+=67108864;this.words[t+1]-=1}}return this._strip()};BN.prototype.addn=function addn(e){return this.clone().iaddn(e)};BN.prototype.subn=function subn(e){return this.clone().isubn(e)};BN.prototype.iabs=function iabs(){this.negative=0;return this};BN.prototype.abs=function abs(){return this.clone().iabs()};BN.prototype._ishlnsubmul=function _ishlnsubmul(e,t,r){var n=e.length+r;var i;this._expand(n);var a;var o=0;for(i=0;i<e.length;i++){a=(this.words[i+r]|0)+o;var s=(e.words[i]|0)*t;a-=s&67108863;o=(a>>26)-(s/67108864|0);this.words[i+r]=a&67108863}for(;i<this.length-r;i++){a=(this.words[i+r]|0)+o;o=a>>26;this.words[i+r]=a&67108863}if(o===0)return this._strip();assert(o===-1);o=0;for(i=0;i<this.length;i++){a=-(this.words[i]|0)+o;o=a>>26;this.words[i]=a&67108863}this.negative=1;return this._strip()};BN.prototype._wordDiv=function _wordDiv(e,t){var r=this.length-e.length;var n=this.clone();var i=e;var a=i.words[i.length-1]|0;var o=this._countBits(a);r=26-o;if(r!==0){i=i.ushln(r);n.iushln(r);a=i.words[i.length-1]|0}var s=n.length-i.length;var u;if(t!=="mod"){u=new BN(null);u.length=s+1;u.words=new Array(u.length);for(var c=0;c<u.length;c++){u.words[c]=0}}var l=n.clone()._ishlnsubmul(i,1,s);if(l.negative===0){n=l;if(u){u.words[s]=1}}for(var d=s-1;d>=0;d--){var h=(n.words[i.length+d]|0)*67108864+(n.words[i.length+d-1]|0);h=Math.min(h/a|0,67108863);n._ishlnsubmul(i,h,d);while(n.negative!==0){h--;n.negative=0;n._ishlnsubmul(i,1,d);if(!n.isZero()){n.negative^=1}}if(u){u.words[d]=h}}if(u){u._strip()}n._strip();if(t!=="div"&&r!==0){n.iushrn(r)}return{div:u||null,mod:n}};BN.prototype.divmod=function divmod(e,t,r){assert(!e.isZero());if(this.isZero()){return{div:new BN(0),mod:new BN(0)}}var n,i,a;if(this.negative!==0&&e.negative===0){a=this.neg().divmod(e,t);if(t!=="mod"){n=a.div.neg()}if(t!=="div"){i=a.mod.neg();if(r&&i.negative!==0){i.iadd(e)}}return{div:n,mod:i}}if(this.negative===0&&e.negative!==0){a=this.divmod(e.neg(),t);if(t!=="mod"){n=a.div.neg()}return{div:n,mod:a.mod}}if((this.negative&e.negative)!==0){a=this.neg().divmod(e.neg(),t);if(t!=="div"){i=a.mod.neg();if(r&&i.negative!==0){i.isub(e)}}return{div:a.div,mod:i}}if(e.length>this.length||this.cmp(e)<0){return{div:new BN(0),mod:this}}if(e.length===1){if(t==="div"){return{div:this.divn(e.words[0]),mod:null}}if(t==="mod"){return{div:null,mod:new BN(this.modrn(e.words[0]))}}return{div:this.divn(e.words[0]),mod:new BN(this.modrn(e.words[0]))}}return this._wordDiv(e,t)};BN.prototype.div=function div(e){return this.divmod(e,"div",false).div};BN.prototype.mod=function mod(e){return this.divmod(e,"mod",false).mod};BN.prototype.umod=function umod(e){return this.divmod(e,"mod",true).mod};BN.prototype.divRound=function divRound(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=t.div.negative!==0?t.mod.isub(e):t.mod;var n=e.ushrn(1);var i=e.andln(1);var a=r.cmp(n);if(a<0||i===1&&a===0)return t.div;return t.div.negative!==0?t.div.isubn(1):t.div.iaddn(1)};BN.prototype.modrn=function modrn(e){var t=e<0;if(t)e=-e;assert(e<=67108863);var r=(1<<26)%e;var n=0;for(var i=this.length-1;i>=0;i--){n=(r*n+(this.words[i]|0))%e}return t?-n:n};BN.prototype.modn=function modn(e){return this.modrn(e)};BN.prototype.idivn=function idivn(e){var t=e<0;if(t)e=-e;assert(e<=67108863);var r=0;for(var n=this.length-1;n>=0;n--){var i=(this.words[n]|0)+r*67108864;this.words[n]=i/e|0;r=i%e}this._strip();return t?this.ineg():this};BN.prototype.divn=function divn(e){return this.clone().idivn(e)};BN.prototype.egcd=function egcd(e){assert(e.negative===0);assert(!e.isZero());var t=this;var r=e.clone();if(t.negative!==0){t=t.umod(e)}else{t=t.clone()}var n=new BN(1);var i=new BN(0);var a=new BN(0);var o=new BN(1);var s=0;while(t.isEven()&&r.isEven()){t.iushrn(1);r.iushrn(1);++s}var u=r.clone();var c=t.clone();while(!t.isZero()){for(var l=0,d=1;(t.words[0]&d)===0&&l<26;++l,d<<=1);if(l>0){t.iushrn(l);while(l-- >0){if(n.isOdd()||i.isOdd()){n.iadd(u);i.isub(c)}n.iushrn(1);i.iushrn(1)}}for(var h=0,p=1;(r.words[0]&p)===0&&h<26;++h,p<<=1);if(h>0){r.iushrn(h);while(h-- >0){if(a.isOdd()||o.isOdd()){a.iadd(u);o.isub(c)}a.iushrn(1);o.iushrn(1)}}if(t.cmp(r)>=0){t.isub(r);n.isub(a);i.isub(o)}else{r.isub(t);a.isub(n);o.isub(i)}}return{a:a,b:o,gcd:r.iushln(s)}};BN.prototype._invmp=function _invmp(e){assert(e.negative===0);assert(!e.isZero());var t=this;var r=e.clone();if(t.negative!==0){t=t.umod(e)}else{t=t.clone()}var n=new BN(1);var i=new BN(0);var a=r.clone();while(t.cmpn(1)>0&&r.cmpn(1)>0){for(var o=0,s=1;(t.words[0]&s)===0&&o<26;++o,s<<=1);if(o>0){t.iushrn(o);while(o-- >0){if(n.isOdd()){n.iadd(a)}n.iushrn(1)}}for(var u=0,c=1;(r.words[0]&c)===0&&u<26;++u,c<<=1);if(u>0){r.iushrn(u);while(u-- >0){if(i.isOdd()){i.iadd(a)}i.iushrn(1)}}if(t.cmp(r)>=0){t.isub(r);n.isub(i)}else{r.isub(t);i.isub(n)}}var l;if(t.cmpn(1)===0){l=n}else{l=i}if(l.cmpn(0)<0){l.iadd(e)}return l};BN.prototype.gcd=function gcd(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone();var r=e.clone();t.negative=0;r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++){t.iushrn(1);r.iushrn(1)}do{while(t.isEven()){t.iushrn(1)}while(r.isEven()){r.iushrn(1)}var i=t.cmp(r);if(i<0){var a=t;t=r;r=a}else if(i===0||r.cmpn(1)===0){break}t.isub(r)}while(true);return r.iushln(n)};BN.prototype.invm=function invm(e){return this.egcd(e).a.umod(e)};BN.prototype.isEven=function isEven(){return(this.words[0]&1)===0};BN.prototype.isOdd=function isOdd(){return(this.words[0]&1)===1};BN.prototype.andln=function andln(e){return this.words[0]&e};BN.prototype.bincn=function bincn(e){assert(typeof e==="number");var t=e%26;var r=(e-t)/26;var n=1<<t;if(this.length<=r){this._expand(r+1);this.words[r]|=n;return this}var i=n;for(var a=r;i!==0&&a<this.length;a++){var o=this.words[a]|0;o+=i;i=o>>>26;o&=67108863;this.words[a]=o}if(i!==0){this.words[a]=i;this.length++}return this};BN.prototype.isZero=function isZero(){return this.length===1&&this.words[0]===0};BN.prototype.cmpn=function cmpn(e){var t=e<0;if(this.negative!==0&&!t)return-1;if(this.negative===0&&t)return 1;this._strip();var r;if(this.length>1){r=1}else{if(t){e=-e}assert(e<=67108863,"Number is too big");var n=this.words[0]|0;r=n===e?0:n<e?-1:1}if(this.negative!==0)return-r|0;return r};BN.prototype.cmp=function cmp(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var t=this.ucmp(e);if(this.negative!==0)return-t|0;return t};BN.prototype.ucmp=function ucmp(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;var t=0;for(var r=this.length-1;r>=0;r--){var n=this.words[r]|0;var i=e.words[r]|0;if(n===i)continue;if(n<i){t=-1}else if(n>i){t=1}break}return t};BN.prototype.gtn=function gtn(e){return this.cmpn(e)===1};BN.prototype.gt=function gt(e){return this.cmp(e)===1};BN.prototype.gten=function gten(e){return this.cmpn(e)>=0};BN.prototype.gte=function gte(e){return this.cmp(e)>=0};BN.prototype.ltn=function ltn(e){return this.cmpn(e)===-1};BN.prototype.lt=function lt(e){return this.cmp(e)===-1};BN.prototype.lten=function lten(e){return this.cmpn(e)<=0};BN.prototype.lte=function lte(e){return this.cmp(e)<=0};BN.prototype.eqn=function eqn(e){return this.cmpn(e)===0};BN.prototype.eq=function eq(e){return this.cmp(e)===0};BN.red=function red(e){return new Red(e)};BN.prototype.toRed=function toRed(e){assert(!this.red,"Already a number in reduction context");assert(this.negative===0,"red works only with positives");return e.convertTo(this)._forceRed(e)};BN.prototype.fromRed=function fromRed(){assert(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)};BN.prototype._forceRed=function _forceRed(e){this.red=e;return this};BN.prototype.forceRed=function forceRed(e){assert(!this.red,"Already a number in reduction context");return this._forceRed(e)};BN.prototype.redAdd=function redAdd(e){assert(this.red,"redAdd works only with red numbers");return this.red.add(this,e)};BN.prototype.redIAdd=function redIAdd(e){assert(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,e)};BN.prototype.redSub=function redSub(e){assert(this.red,"redSub works only with red numbers");return this.red.sub(this,e)};BN.prototype.redISub=function redISub(e){assert(this.red,"redISub works only with red numbers");return this.red.isub(this,e)};BN.prototype.redShl=function redShl(e){assert(this.red,"redShl works only with red numbers");return this.red.shl(this,e)};BN.prototype.redMul=function redMul(e){assert(this.red,"redMul works only with red numbers");this.red._verify2(this,e);return this.red.mul(this,e)};BN.prototype.redIMul=function redIMul(e){assert(this.red,"redMul works only with red numbers");this.red._verify2(this,e);return this.red.imul(this,e)};BN.prototype.redSqr=function redSqr(){assert(this.red,"redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};BN.prototype.redISqr=function redISqr(){assert(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};BN.prototype.redSqrt=function redSqrt(){assert(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};BN.prototype.redInvm=function redInvm(){assert(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};BN.prototype.redNeg=function redNeg(){assert(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};BN.prototype.redPow=function redPow(e){assert(this.red&&!e.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,e)};var c={k256:null,p224:null,p192:null,p25519:null};function MPrime(e,t){this.name=e;this.p=new BN(t,16);this.n=this.p.bitLength();this.k=new BN(1).iushln(this.n).isub(this.p);this.tmp=this._tmp()}MPrime.prototype._tmp=function _tmp(){var e=new BN(null);e.words=new Array(Math.ceil(this.n/13));return e};MPrime.prototype.ireduce=function ireduce(e){var t=e;var r;do{this.split(t,this.tmp);t=this.imulK(t);t=t.iadd(this.tmp);r=t.bitLength()}while(r>this.n);var n=r<this.n?-1:t.ucmp(this.p);if(n===0){t.words[0]=0;t.length=1}else if(n>0){t.isub(this.p)}else{if(t.strip!==undefined){t.strip()}else{t._strip()}}return t};MPrime.prototype.split=function split(e,t){e.iushrn(this.n,0,t)};MPrime.prototype.imulK=function imulK(e){return e.imul(this.k)};function K256(){MPrime.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}inherits(K256,MPrime);K256.prototype.split=function split(e,t){var r=4194303;var n=Math.min(e.length,9);for(var i=0;i<n;i++){t.words[i]=e.words[i]}t.length=n;if(e.length<=9){e.words[0]=0;e.length=1;return}var a=e.words[9];t.words[t.length++]=a&r;for(i=10;i<e.length;i++){var o=e.words[i]|0;e.words[i-10]=(o&r)<<4|a>>>22;a=o}a>>>=22;e.words[i-10]=a;if(a===0&&e.length>10){e.length-=10}else{e.length-=9}};K256.prototype.imulK=function imulK(e){e.words[e.length]=0;e.words[e.length+1]=0;e.length+=2;var t=0;for(var r=0;r<e.length;r++){var n=e.words[r]|0;t+=n*977;e.words[r]=t&67108863;t=n*64+(t/67108864|0)}if(e.words[e.length-1]===0){e.length--;if(e.words[e.length-1]===0){e.length--}}return e};function P224(){MPrime.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}inherits(P224,MPrime);function P192(){MPrime.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}inherits(P192,MPrime);function P25519(){MPrime.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}inherits(P25519,MPrime);P25519.prototype.imulK=function imulK(e){var t=0;for(var r=0;r<e.length;r++){var n=(e.words[r]|0)*19+t;var i=n&67108863;n>>>=26;e.words[r]=i;t=n}if(t!==0){e.words[e.length++]=t}return e};BN._prime=function prime(e){if(c[e])return c[e];var prime;if(e==="k256"){prime=new K256}else if(e==="p224"){prime=new P224}else if(e==="p192"){prime=new P192}else if(e==="p25519"){prime=new P25519}else{throw new Error("Unknown prime "+e)}c[e]=prime;return prime};function Red(e){if(typeof e==="string"){var t=BN._prime(e);this.m=t.p;this.prime=t}else{assert(e.gtn(1),"modulus must be greater than 1");this.m=e;this.prime=null}}Red.prototype._verify1=function _verify1(e){assert(e.negative===0,"red works only with positives");assert(e.red,"red works only with red numbers")};Red.prototype._verify2=function _verify2(e,t){assert((e.negative|t.negative)===0,"red works only with positives");assert(e.red&&e.red===t.red,"red works only with red numbers")};Red.prototype.imod=function imod(e){if(this.prime)return this.prime.ireduce(e)._forceRed(this);move(e,e.umod(this.m)._forceRed(this));return e};Red.prototype.neg=function neg(e){if(e.isZero()){return e.clone()}return this.m.sub(e)._forceRed(this)};Red.prototype.add=function add(e,t){this._verify2(e,t);var r=e.add(t);if(r.cmp(this.m)>=0){r.isub(this.m)}return r._forceRed(this)};Red.prototype.iadd=function iadd(e,t){this._verify2(e,t);var r=e.iadd(t);if(r.cmp(this.m)>=0){r.isub(this.m)}return r};Red.prototype.sub=function sub(e,t){this._verify2(e,t);var r=e.sub(t);if(r.cmpn(0)<0){r.iadd(this.m)}return r._forceRed(this)};Red.prototype.isub=function isub(e,t){this._verify2(e,t);var r=e.isub(t);if(r.cmpn(0)<0){r.iadd(this.m)}return r};Red.prototype.shl=function shl(e,t){this._verify1(e);return this.imod(e.ushln(t))};Red.prototype.imul=function imul(e,t){this._verify2(e,t);return this.imod(e.imul(t))};Red.prototype.mul=function mul(e,t){this._verify2(e,t);return this.imod(e.mul(t))};Red.prototype.isqr=function isqr(e){return this.imul(e,e.clone())};Red.prototype.sqr=function sqr(e){return this.mul(e,e)};Red.prototype.sqrt=function sqrt(e){if(e.isZero())return e.clone();var t=this.m.andln(3);assert(t%2===1);if(t===3){var r=this.m.add(new BN(1)).iushrn(2);return this.pow(e,r)}var n=this.m.subn(1);var i=0;while(!n.isZero()&&n.andln(1)===0){i++;n.iushrn(1)}assert(!n.isZero());var a=new BN(1).toRed(this);var o=a.redNeg();var s=this.m.subn(1).iushrn(1);var u=this.m.bitLength();u=new BN(2*u*u).toRed(this);while(this.pow(u,s).cmp(o)!==0){u.redIAdd(o)}var c=this.pow(u,n);var l=this.pow(e,n.addn(1).iushrn(1));var d=this.pow(e,n);var h=i;while(d.cmp(a)!==0){var p=d;for(var m=0;p.cmp(a)!==0;m++){p=p.redSqr()}assert(m<h);var g=this.pow(c,new BN(1).iushln(h-m-1));l=l.redMul(g);c=g.redSqr();d=d.redMul(c);h=m}return l};Red.prototype.invm=function invm(e){var t=e._invmp(this.m);if(t.negative!==0){t.negative=0;return this.imod(t).redNeg()}else{return this.imod(t)}};Red.prototype.pow=function pow(e,t){if(t.isZero())return new BN(1).toRed(this);if(t.cmpn(1)===0)return e.clone();var r=4;var n=new Array(1<<r);n[0]=new BN(1).toRed(this);n[1]=e;for(var i=2;i<n.length;i++){n[i]=this.mul(n[i-1],e)}var a=n[0];var o=0;var s=0;var u=t.bitLength()%26;if(u===0){u=26}for(i=t.length-1;i>=0;i--){var c=t.words[i];for(var l=u-1;l>=0;l--){var d=c>>l&1;if(a!==n[0]){a=this.sqr(a)}if(d===0&&o===0){s=0;continue}o<<=1;o|=d;s++;if(s!==r&&(i!==0||l!==0))continue;a=this.mul(a,n[o]);s=0;o=0}u=26}return a};Red.prototype.convertTo=function convertTo(e){var t=e.umod(this.m);return t===e?t.clone():t};Red.prototype.convertFrom=function convertFrom(e){var t=e.clone();t.red=null;return t};BN.mont=function mont(e){return new Mont(e)};function Mont(e){Red.call(this,e);this.shift=this.m.bitLength();if(this.shift%26!==0){this.shift+=26-this.shift%26}this.r=new BN(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)}inherits(Mont,Red);Mont.prototype.convertTo=function convertTo(e){return this.imod(e.ushln(this.shift))};Mont.prototype.convertFrom=function convertFrom(e){var t=this.imod(e.mul(this.rinv));t.red=null;return t};Mont.prototype.imul=function imul(e,t){if(e.isZero()||t.isZero()){e.words[0]=0;e.length=1;return e}var r=e.imul(t);var n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);var i=r.isub(n).iushrn(this.shift);var a=i;if(i.cmp(this.m)>=0){a=i.isub(this.m)}else if(i.cmpn(0)<0){a=i.iadd(this.m)}return a._forceRed(this)};Mont.prototype.mul=function mul(e,t){if(e.isZero()||t.isZero())return new BN(0)._forceRed(this);var r=e.mul(t);var n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);var i=r.isub(n).iushrn(this.shift);var a=i;if(i.cmp(this.m)>=0){a=i.isub(this.m)}else if(i.cmpn(0)<0){a=i.iadd(this.m)}return a._forceRed(this)};Mont.prototype.invm=function invm(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}})(false||e,this)},3544:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isValidXAddress=t.decodeXAddress=t.xAddressToClassicAddress=t.encodeXAddress=t.classicAddressToXAddress=t.isValidClassicAddress=t.decodeAccountPublic=t.encodeAccountPublic=t.decodeNodePublic=t.encodeNodePublic=t.decodeAccountID=t.encodeAccountID=t.decodeSeed=t.encodeSeed=t.codec=void 0;const n=r(9491);const i=r(8401);Object.defineProperty(t,"codec",{enumerable:true,get:function(){return i.codec}});Object.defineProperty(t,"encodeSeed",{enumerable:true,get:function(){return i.encodeSeed}});Object.defineProperty(t,"decodeSeed",{enumerable:true,get:function(){return i.decodeSeed}});Object.defineProperty(t,"encodeAccountID",{enumerable:true,get:function(){return i.encodeAccountID}});Object.defineProperty(t,"decodeAccountID",{enumerable:true,get:function(){return i.decodeAccountID}});Object.defineProperty(t,"encodeNodePublic",{enumerable:true,get:function(){return i.encodeNodePublic}});Object.defineProperty(t,"decodeNodePublic",{enumerable:true,get:function(){return i.decodeNodePublic}});Object.defineProperty(t,"encodeAccountPublic",{enumerable:true,get:function(){return i.encodeAccountPublic}});Object.defineProperty(t,"decodeAccountPublic",{enumerable:true,get:function(){return i.decodeAccountPublic}});Object.defineProperty(t,"isValidClassicAddress",{enumerable:true,get:function(){return i.isValidClassicAddress}});const a={main:Buffer.from([5,68]),test:Buffer.from([4,147])};const o=4294967295;function classicAddressToXAddress(e,t,r){const n=(0,i.decodeAccountID)(e);return encodeXAddress(n,t,r)}t.classicAddressToXAddress=classicAddressToXAddress;function encodeXAddress(e,t,r){if(e.length!==20){throw new Error("Account ID must be 20 bytes")}if(t>o){throw new Error("Invalid tag")}const n=t||0;const s=t===false||t==null?0:1;const u=Buffer.concat([r?a.test:a.main,e,Buffer.from([s,n&255,n>>8&255,n>>16&255,n>>24&255,0,0,0,0])]);return i.codec.encodeChecked(u)}t.encodeXAddress=encodeXAddress;function xAddressToClassicAddress(e){const{accountId:t,tag:r,test:n}=decodeXAddress(e);const a=(0,i.encodeAccountID)(t);return{classicAddress:a,tag:r,test:n}}t.xAddressToClassicAddress=xAddressToClassicAddress;function decodeXAddress(e){const t=i.codec.decodeChecked(e);const r=isBufferForTestAddress(t);const n=t.slice(2,22);const a=tagFromBuffer(t);return{accountId:n,tag:a,test:r}}t.decodeXAddress=decodeXAddress;function isBufferForTestAddress(e){const t=e.slice(0,2);if(a.main.equals(t)){return false}if(a.test.equals(t)){return true}throw new Error("Invalid X-address: bad prefix")}function tagFromBuffer(e){const t=e[22];if(t>=2){throw new Error("Unsupported X-address")}if(t===1){return e[23]+e[24]*256+e[25]*65536+e[26]*16777216}n.strictEqual(t,0,"flag must be zero to indicate no tag");n.ok(Buffer.from("0000000000000000","hex").equals(e.slice(23,23+8)),"remaining bytes must be zero");return false}function isValidXAddress(e){try{decodeXAddress(e)}catch(e){return false}return true}t.isValidXAddress=isValidXAddress},9728:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.concatArgs=t.seqEqual=void 0;function seqEqual(e,t){if(e.length!==t.length){return false}for(let r=0;r<e.length;r++){if(e[r]!==t[r]){return false}}return true}t.seqEqual=seqEqual;function isSequence(e){return typeof e!=="number"}function concatArgs(...e){const t=[];e.forEach((e=>{if(isSequence(e)){for(const r of e){t.push(r)}}else{t.push(e)}}));return t}t.concatArgs=concatArgs},8401:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isValidClassicAddress=t.decodeAccountPublic=t.encodeAccountPublic=t.encodeNodePublic=t.decodeNodePublic=t.decodeAddress=t.decodeAccountID=t.encodeAddress=t.encodeAccountID=t.decodeSeed=t.encodeSeed=t.codec=void 0;const n=r(3358);const i=r(3614);const a=r(9728);class Codec{constructor(e){this._sha256=e.sha256;this._alphabet=e.alphabet;this._codec=n(this._alphabet)}encode(e,t){const r=t.versions;return this._encodeVersioned(e,r,t.expectedLength)}decode(e,t){var r;const n=t.versions;const i=t.versionTypes;const o=this.decodeChecked(e);if(n.length>1&&!t.expectedLength){throw new Error("expectedLength is required because there are >= 2 possible versions")}const s=typeof n[0]==="number"?1:n[0].length;const u=(r=t.expectedLength)!==null&&r!==void 0?r:o.length-s;const c=o.slice(0,-u);const l=o.slice(-u);for(let e=0;e<n.length;e++){const t=Array.isArray(n[e])?n[e]:[n[e]];if((0,a.seqEqual)(c,t)){return{version:t,bytes:l,type:i?i[e]:null}}}throw new Error("version_invalid: version bytes do not match any of the provided version(s)")}encodeChecked(e){const t=this._sha256(this._sha256(e)).slice(0,4);return this._encodeRaw(Buffer.from((0,a.concatArgs)(e,t)))}decodeChecked(e){const t=this._decodeRaw(e);if(t.length<5){throw new Error("invalid_input_size: decoded data must have length >= 5")}if(!this._verifyCheckSum(t)){throw new Error("checksum_invalid")}return t.slice(0,-4)}_encodeVersioned(e,t,r){if(r&&e.length!==r){throw new Error("unexpected_payload_length: bytes.length does not match expectedLength."+" Ensure that the bytes are a Buffer.")}return this.encodeChecked(Buffer.from((0,a.concatArgs)(t,e)))}_encodeRaw(e){return this._codec.encode(e)}_decodeRaw(e){return this._codec.decode(e)}_verifyCheckSum(e){const t=this._sha256(this._sha256(e.slice(0,-4))).slice(0,4);const r=e.slice(-4);return(0,a.seqEqual)(t,r)}}const o=0;const s=35;const u=33;const c=28;const l=[1,225,75];const d={sha256(e){return i("sha256").update(Buffer.from(e)).digest()},alphabet:"rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"};const h=new Codec(d);t.codec=h;function encodeSeed(e,t){if(e.length!==16){throw new Error("entropy must have length 16")}const r={expectedLength:16,versions:t==="ed25519"?l:[u]};return h.encode(e,r)}t.encodeSeed=encodeSeed;function decodeSeed(e,t={versionTypes:["ed25519","secp256k1"],versions:[l,u],expectedLength:16}){return h.decode(e,t)}t.decodeSeed=decodeSeed;function encodeAccountID(e){const t={versions:[o],expectedLength:20};return h.encode(e,t)}t.encodeAccountID=encodeAccountID;t.encodeAddress=encodeAccountID;function decodeAccountID(e){const t={versions:[o],expectedLength:20};return h.decode(e,t).bytes}t.decodeAccountID=decodeAccountID;t.decodeAddress=decodeAccountID;function decodeNodePublic(e){const t={versions:[c],expectedLength:33};return h.decode(e,t).bytes}t.decodeNodePublic=decodeNodePublic;function encodeNodePublic(e){const t={versions:[c],expectedLength:33};return h.encode(e,t)}t.encodeNodePublic=encodeNodePublic;function encodeAccountPublic(e){const t={versions:[s],expectedLength:33};return h.encode(e,t)}t.encodeAccountPublic=encodeAccountPublic;function decodeAccountPublic(e){const t={versions:[s],expectedLength:33};return h.decode(e,t).bytes}t.decodeAccountPublic=decodeAccountPublic;function isValidClassicAddress(e){try{decodeAccountID(e)}catch(e){return false}return true}t.isValidClassicAddress=isValidClassicAddress},2305:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(609);const i=r(1519);class Sha512{constructor(){this.hash=n.sha512()}add(e){this.hash.update(e);return this}addU32(e){return this.add([e>>>24&255,e>>>16&255,e>>>8&255,e&255])}finish(){return this.hash.digest()}first256(){return this.finish().slice(0,32)}first256BN(){return new i(this.first256())}}t["default"]=Sha512},9466:(e,t,r)=>{"use strict";const n=r(9491);const i=r(3803);const a=r(609);const o=r(577);const s=r(3544);const u=r(6972);const c=r(3847);const l=o.eddsa("ed25519");const d=o.ec("secp256k1");const{hexToBytes:h}=c;const{bytesToHex:p}=c;function generateSeed(e={}){n.ok(!e.entropy||e.entropy.length>=16,"entropy too short");const t=e.entropy?e.entropy.slice(0,16):i(16);const r=e.algorithm==="ed25519"?"ed25519":"secp256k1";return s.encodeSeed(Buffer.from(t),r)}function hash(e){return a.sha512().update(e).digest().slice(0,32)}const m={deriveKeypair(e,t){const r="00";const n=r+(0,u.derivePrivateKey)(e,t).toString(16,64).toUpperCase();const i=p(d.keyFromPrivate(n.slice(2)).getPublic().encodeCompressed());return{privateKey:n,publicKey:i}},sign(e,t){return p(d.sign(hash(e),h(t),{canonical:true}).toDER())},verify(e,t,r){return d.verify(hash(e),t,h(r))}};const g={deriveKeypair(e){const t="ED";const r=hash(e);const n=t+p(r);const i=t+p(l.keyFromSecret(r).pubBytes());return{privateKey:n,publicKey:i}},sign(e,t){n.ok(Array.isArray(e),"message must be array of octets");return p(l.sign(e,h(t).slice(1)).toBytes())},verify(e,t,r){return l.verify(e,h(t),h(r).slice(1))}};function select(e){const t={"ecdsa-secp256k1":m,ed25519:g};return t[e]}function deriveKeypair(e,t){const r=s.decodeSeed(e);const n=r.type==="ed25519"?"ed25519":"ecdsa-secp256k1";const i=select(n);const a=i.deriveKeypair(r.bytes,t);const o=hash("This test message should verify.");const u=i.sign(o,a.privateKey);if(i.verify(o,u,a.publicKey)!==true){throw new Error("derived keypair did not generate verifiable signature")}return a}function getAlgorithmFromKey(e){const t=h(e);return t.length===33&&t[0]===237?"ed25519":"ecdsa-secp256k1"}function sign(e,t){const r=getAlgorithmFromKey(t);return select(r).sign(h(e),t)}function verify(e,t,r){const n=getAlgorithmFromKey(r);return select(n).verify(h(e),t,r)}function deriveAddressFromBytes(e){return s.encodeAccountID(c.computePublicKeyHash(e))}function deriveAddress(e){return deriveAddressFromBytes(Buffer.from(h(e)))}function deriveNodeAddress(e){const t=s.decodeNodePublic(e);const r=(0,u.accountPublicFromPublicGenerator)(t);return deriveAddressFromBytes(r)}const{decodeSeed:v}=s;e.exports={generateSeed:generateSeed,deriveKeypair:deriveKeypair,sign:sign,verify:verify,deriveAddress:deriveAddress,deriveNodeAddress:deriveNodeAddress,decodeSeed:v}},6972:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.accountPublicFromPublicGenerator=t.derivePrivateKey=void 0;const n=r(577);const i=r(2305);const a=n.ec("secp256k1");function deriveScalar(e,t){const r=a.curve.n;for(let n=0;n<=4294967295;n++){const a=(new i.default).add(e);if(t!==undefined){a.addU32(t)}a.addU32(n);const o=a.first256BN();if(o.cmpn(0)>0&&o.cmp(r)<0){return o}}throw new Error("impossible unicorn ;)")}function derivePrivateKey(e,t={}){const r=t.validator;const n=a.curve.n;const i=deriveScalar(e);if(r){return i}const o=a.g.mul(i);const s=t.accountIndex||0;return deriveScalar(o.encodeCompressed(),s).add(i).mod(n)}t.derivePrivateKey=derivePrivateKey;function accountPublicFromPublicGenerator(e){const t=a.curve.decodePoint(e);const r=deriveScalar(e,0);const n=a.g.mul(r);const i=t.add(n);return i.encodeCompressed()}t.accountPublicFromPublicGenerator=accountPublicFromPublicGenerator},3847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.computePublicKeyHash=t.hexToBytes=t.bytesToHex=void 0;const n=r(9491);const i=r(609);const a=r(1519);function bytesToHex(e){return Array.from(e,(e=>{const t=e.toString(16).toUpperCase();return t.length>1?t:`0${t}`})).join("")}t.bytesToHex=bytesToHex;function hexToBytes(e){n.ok(e.length%2===0);return e.length===0?[]:new a(e,16).toArray(null,e.length/2)}t.hexToBytes=hexToBytes;function computePublicKeyHash(e){const t=i.sha256().update(e).digest();const r=i.ripemd160().update(t).digest();return Buffer.from(r)}t.computePublicKeyHash=computePublicKeyHash},2888:module=>{module.exports=eval("require")("bufferutil")},5466:module=>{module.exports=eval("require")("utf-8-validate")},9491:e=>{"use strict";e.exports=require("assert")},4300:e=>{"use strict";e.exports=require("buffer")},6113:e=>{"use strict";e.exports=require("crypto")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},7282:e=>{"use strict";e.exports=require("process")},2781:e=>{"use strict";e.exports=require("stream")},4404:e=>{"use strict";e.exports=require("tls")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},9796:e=>{"use strict";e.exports=require("zlib")},6996:e=>{"use strict";e.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","这","中","大","为","上","个","国","我","以","要","他","时","来","用","们","生","到","作","地","于","出","就","分","对","成","会","可","主","发","年","动","同","工","也","能","下","过","子","说","产","种","面","而","方","后","多","定","行","学","法","所","民","得","经","十","三","之","进","着","等","部","度","家","电","力","里","如","水","化","高","自","二","理","起","小","物","现","实","加","量","都","两","体","制","机","当","使","点","从","业","本","去","把","性","好","应","开","它","合","还","因","由","其","些","然","前","外","天","政","四","日","那","社","义","事","平","形","相","全","表","间","样","与","关","各","重","新","线","内","数","正","心","反","你","明","看","原","又","么","利","比","或","但","质","气","第","向","道","命","此","变","条","只","没","结","解","问","意","建","月","公","无","系","军","很","情","者","最","立","代","想","已","通","并","提","直","题","党","程","展","五","果","料","象","员","革","位","入","常","文","总","次","品","式","活","设","及","管","特","件","长","求","老","头","基","资","边","流","路","级","少","图","山","统","接","知","较","将","组","见","计","别","她","手","角","期","根","论","运","农","指","几","九","区","强","放","决","西","被","干","做","必","战","先","回","则","任","取","据","处","队","南","给","色","光","门","即","保","治","北","造","百","规","热","领","七","海","口","东","导","器","压","志","世","金","增","争","济","阶","油","思","术","极","交","受","联","什","认","六","共","权","收","证","改","清","美","再","采","转","更","单","风","切","打","白","教","速","花","带","安","场","身","车","例","真","务","具","万","每","目","至","达","走","积","示","议","声","报","斗","完","类","八","离","华","名","确","才","科","张","信","马","节","话","米","整","空","元","况","今","集","温","传","土","许","步","群","广","石","记","需","段","研","界","拉","林","律","叫","且","究","观","越","织","装","影","算","低","持","音","众","书","布","复","容","儿","须","际","商","非","验","连","断","深","难","近","矿","千","周","委","素","技","备","半","办","青","省","列","习","响","约","支","般","史","感","劳","便","团","往","酸","历","市","克","何","除","消","构","府","称","太","准","精","值","号","率","族","维","划","选","标","写","存","候","毛","亲","快","效","斯","院","查","江","型","眼","王","按","格","养","易","置","派","层","片","始","却","专","状","育","厂","京","识","适","属","圆","包","火","住","调","满","县","局","照","参","红","细","引","听","该","铁","价","严","首","底","液","官","德","随","病","苏","失","尔","死","讲","配","女","黄","推","显","谈","罪","神","艺","呢","席","含","企","望","密","批","营","项","防","举","球","英","氧","势","告","李","台","落","木","帮","轮","破","亚","师","围","注","远","字","材","排","供","河","态","封","另","施","减","树","溶","怎","止","案","言","士","均","武","固","叶","鱼","波","视","仅","费","紧","爱","左","章","早","朝","害","续","轻","服","试","食","充","兵","源","判","护","司","足","某","练","差","致","板","田","降","黑","犯","负","击","范","继","兴","似","余","坚","曲","输","修","故","城","夫","够","送","笔","船","占","右","财","吃","富","春","职","觉","汉","画","功","巴","跟","虽","杂","飞","检","吸","助","升","阳","互","初","创","抗","考","投","坏","策","古","径","换","未","跑","留","钢","曾","端","责","站","简","述","钱","副","尽","帝","射","草","冲","承","独","令","限","阿","宣","环","双","请","超","微","让","控","州","良","轴","找","否","纪","益","依","优","顶","础","载","倒","房","突","坐","粉","敌","略","客","袁","冷","胜","绝","析","块","剂","测","丝","协","诉","念","陈","仍","罗","盐","友","洋","错","苦","夜","刑","移","频","逐","靠","混","母","短","皮","终","聚","汽","村","云","哪","既","距","卫","停","烈","央","察","烧","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","游","久","菜","味","旧","模","湖","货","损","预","阻","毫","普","稳","乙","妈","植","息","扩","银","语","挥","酒","守","拿","序","纸","医","缺","雨","吗","针","刘","啊","急","唱","误","训","愿","审","附","获","茶","鲜","粮","斤","孩","脱","硫","肥","善","龙","演","父","渐","血","欢","械","掌","歌","沙","刚","攻","谓","盾","讨","晚","粒","乱","燃","矛","乎","杀","药","宁","鲁","贵","钟","煤","读","班","伯","香","介","迫","句","丰","培","握","兰","担","弦","蛋","沉","假","穿","执","答","乐","谁","顺","烟","缩","征","脸","喜","松","脚","困","异","免","背","星","福","买","染","井","概","慢","怕","磁","倍","祖","皇","促","静","补","评","翻","肉","践","尼","衣","宽","扬","棉","希","伤","操","垂","秋","宜","氢","套","督","振","架","亮","末","宪","庆","编","牛","触","映","雷","销","诗","座","居","抓","裂","胞","呼","娘","景","威","绿","晶","厚","盟","衡","鸡","孙","延","危","胶","屋","乡","临","陆","顾","掉","呀","灯","岁","措","束","耐","剧","玉","赵","跳","哥","季","课","凯","胡","额","款","绍","卷","齐","伟","蒸","殖","永","宗","苗","川","炉","岩","弱","零","杨","奏","沿","露","杆","探","滑","镇","饭","浓","航","怀","赶","库","夺","伊","灵","税","途","灭","赛","归","召","鼓","播","盘","裁","险","康","唯","录","菌","纯","借","糖","盖","横","符","私","努","堂","域","枪","润","幅","哈","竟","熟","虫","泽","脑","壤","碳","欧","遍","侧","寨","敢","彻","虑","斜","薄","庭","纳","弹","饲","伸","折","麦","湿","暗","荷","瓦","塞","床","筑","恶","户","访","塔","奇","透","梁","刀","旋","迹","卡","氯","遇","份","毒","泥","退","洗","摆","灰","彩","卖","耗","夏","择","忙","铜","献","硬","予","繁","圈","雪","函","亦","抽","篇","阵","阴","丁","尺","追","堆","雄","迎","泛","爸","楼","避","谋","吨","野","猪","旗","累","偏","典","馆","索","秦","脂","潮","爷","豆","忽","托","惊","塑","遗","愈","朱","替","纤","粗","倾","尚","痛","楚","谢","奋","购","磨","君","池","旁","碎","骨","监","捕","弟","暴","割","贯","殊","释","词","亡","壁","顿","宝","午","尘","闻","揭","炮","残","冬","桥","妇","警","综","招","吴","付","浮","遭","徐","您","摇","谷","赞","箱","隔","订","男","吹","园","纷","唐","败","宋","玻","巨","耕","坦","荣","闭","湾","键","凡","驻","锅","救","恩","剥","凝","碱","齿","截","炼","麻","纺","禁","废","盛","版","缓","净","睛","昌","婚","涉","筒","嘴","插","岸","朗","庄","街","藏","姑","贸","腐","奴","啦","惯","乘","伙","恢","匀","纱","扎","辩","耳","彪","臣","亿","璃","抵","脉","秀","萨","俄","网","舞","店","喷","纵","寸","汗","挂","洪","贺","闪","柬","爆","烯","津","稻","墙","软","勇","像","滚","厘","蒙","芳","肯","坡","柱","荡","腿","仪","旅","尾","轧","冰","贡","登","黎","削","钻","勒","逃","障","氨","郭","峰","币","港","伏","轨","亩","毕","擦","莫","刺","浪","秘","援","株","健","售","股","岛","甘","泡","睡","童","铸","汤","阀","休","汇","舍","牧","绕","炸","哲","磷","绩","朋","淡","尖","启","陷","柴","呈","徒","颜","泪","稍","忘","泵","蓝","拖","洞","授","镜","辛","壮","锋","贫","虚","弯","摩","泰","幼","廷","尊","窗","纲","弄","隶","疑","氏","宫","姐","震","瑞","怪","尤","琴","循","描","膜","违","夹","腰","缘","珠","穷","森","枝","竹","沟","催","绳","忆","邦","剩","幸","浆","栏","拥","牙","贮","礼","滤","钠","纹","罢","拍","咱","喊","袖","埃","勤","罚","焦","潜","伍","墨","欲","缝","姓","刊","饱","仿","奖","铝","鬼","丽","跨","默","挖","链","扫","喝","袋","炭","污","幕","诸","弧","励","梅","奶","洁","灾","舟","鉴","苯","讼","抱","毁","懂","寒","智","埔","寄","届","跃","渡","挑","丹","艰","贝","碰","拔","爹","戴","码","梦","芽","熔","赤","渔","哭","敬","颗","奔","铅","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","仓","魏","锐","晓","氮","兼","隐","碍","赫","拨","忠","肃","缸","牵","抢","博","巧","壳","兄","杜","讯","诚","碧","祥","柯","页","巡","矩","悲","灌","龄","伦","票","寻","桂","铺","圣","恐","恰","郑","趣","抬","荒","腾","贴","柔","滴","猛","阔","辆","妻","填","撤","储","签","闹","扰","紫","砂","递","戏","吊","陶","伐","喂","疗","瓶","婆","抚","臂","摸","忍","虾","蜡","邻","胸","巩","挤","偶","弃","槽","劲","乳","邓","吉","仁","烂","砖","租","乌","舰","伴","瓜","浅","丙","暂","燥","橡","柳","迷","暖","牌","秧","胆","详","簧","踏","瓷","谱","呆","宾","糊","洛","辉","愤","竞","隙","怒","粘","乃","绪","肩","籍","敏","涂","熙","皆","侦","悬","掘","享","纠","醒","狂","锁","淀","恨","牲","霸","爬","赏","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鸭","趋","凤","晨","畜","辈","秩","卵","署","梯","炎","滩","棋","驱","筛","峡","冒","啥","寿","译","浸","泉","帽","迟","硅","疆","贷","漏","稿","冠","嫩","胁","芯","牢","叛","蚀","奥","鸣","岭","羊","凭","串","塘","绘","酵","融","盆","锡","庙","筹","冻","辅","摄","袭","筋","拒","僚","旱","钾","鸟","漆","沈","眉","疏","添","棒","穗","硝","韩","逼","扭","侨","凉","挺","碗","栽","炒","杯","患","馏","劝","豪","辽","勃","鸿","旦","吏","拜","狗","埋","辊","掩","饮","搬","骂","辞","勾","扣","估","蒋","绒","雾","丈","朵","姆","拟","宇","辑","陕","雕","偿","蓄","崇","剪","倡","厅","咬","驶","薯","刷","斥","番","赋","奉","佛","浇","漫","曼","扇","钙","桃","扶","仔","返","俗","亏","腔","鞋","棱","覆","框","悄","叔","撞","骗","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","胀","谐","抛","霉","桑","岗","嘛","衰","盗","渗","脏","赖","涌","甜","曹","阅","肌","哩","厉","烃","纬","毅","昨","伪","症","煮","叹","钉","搭","茎","笼","酷","偷","弓","锥","恒","杰","坑","鼻","翼","纶","叙","狱","逮","罐","络","棚","抑","膨","蔬","寺","骤","穆","冶","枯","册","尸","凸","绅","坯","牺","焰","轰","欣","晋","瘦","御","锭","锦","丧","旬","锻","垄","搜","扑","邀","亭","酯","迈","舒","脆","酶","闲","忧","酚","顽","羽","涨","卸","仗","陪","辟","惩","杭","姚","肚","捉","飘","漂","昆","欺","吾","郎","烷","汁","呵","饰","萧","雅","邮","迁","燕","撒","姻","赴","宴","烦","债","帐","斑","铃","旨","醇","董","饼","雏","姿","拌","傅","腹","妥","揉","贤","拆","歪","葡","胺","丢","浩","徽","昂","垫","挡","览","贪","慰","缴","汪","慌","冯","诺","姜","谊","凶","劣","诬","耀","昏","躺","盈","骑","乔","溪","丛","卢","抹","闷","咨","刮","驾","缆","悟","摘","铒","掷","颇","幻","柄","惠","惨","佳","仇","腊","窝","涤","剑","瞧","堡","泼","葱","罩","霍","捞","胎","苍","滨","俩","捅","湘","砍","霞","邵","萄","疯","淮","遂","熊","粪","烘","宿","档","戈","驳","嫂","裕","徙","箭","捐","肠","撑","晒","辨","殿","莲","摊","搅","酱","屏","疫","哀","蔡","堵","沫","皱","畅","叠","阁","莱","敲","辖","钩","痕","坝","巷","饿","祸","丘","玄","溜","曰","逻","彭","尝","卿","妨","艇","吞","韦","怨","矮","歇"]')},4262:e=>{"use strict";e.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","這","中","大","為","上","個","國","我","以","要","他","時","來","用","們","生","到","作","地","於","出","就","分","對","成","會","可","主","發","年","動","同","工","也","能","下","過","子","說","產","種","面","而","方","後","多","定","行","學","法","所","民","得","經","十","三","之","進","著","等","部","度","家","電","力","裡","如","水","化","高","自","二","理","起","小","物","現","實","加","量","都","兩","體","制","機","當","使","點","從","業","本","去","把","性","好","應","開","它","合","還","因","由","其","些","然","前","外","天","政","四","日","那","社","義","事","平","形","相","全","表","間","樣","與","關","各","重","新","線","內","數","正","心","反","你","明","看","原","又","麼","利","比","或","但","質","氣","第","向","道","命","此","變","條","只","沒","結","解","問","意","建","月","公","無","系","軍","很","情","者","最","立","代","想","已","通","並","提","直","題","黨","程","展","五","果","料","象","員","革","位","入","常","文","總","次","品","式","活","設","及","管","特","件","長","求","老","頭","基","資","邊","流","路","級","少","圖","山","統","接","知","較","將","組","見","計","別","她","手","角","期","根","論","運","農","指","幾","九","區","強","放","決","西","被","幹","做","必","戰","先","回","則","任","取","據","處","隊","南","給","色","光","門","即","保","治","北","造","百","規","熱","領","七","海","口","東","導","器","壓","志","世","金","增","爭","濟","階","油","思","術","極","交","受","聯","什","認","六","共","權","收","證","改","清","美","再","採","轉","更","單","風","切","打","白","教","速","花","帶","安","場","身","車","例","真","務","具","萬","每","目","至","達","走","積","示","議","聲","報","鬥","完","類","八","離","華","名","確","才","科","張","信","馬","節","話","米","整","空","元","況","今","集","溫","傳","土","許","步","群","廣","石","記","需","段","研","界","拉","林","律","叫","且","究","觀","越","織","裝","影","算","低","持","音","眾","書","布","复","容","兒","須","際","商","非","驗","連","斷","深","難","近","礦","千","週","委","素","技","備","半","辦","青","省","列","習","響","約","支","般","史","感","勞","便","團","往","酸","歷","市","克","何","除","消","構","府","稱","太","準","精","值","號","率","族","維","劃","選","標","寫","存","候","毛","親","快","效","斯","院","查","江","型","眼","王","按","格","養","易","置","派","層","片","始","卻","專","狀","育","廠","京","識","適","屬","圓","包","火","住","調","滿","縣","局","照","參","紅","細","引","聽","該","鐵","價","嚴","首","底","液","官","德","隨","病","蘇","失","爾","死","講","配","女","黃","推","顯","談","罪","神","藝","呢","席","含","企","望","密","批","營","項","防","舉","球","英","氧","勢","告","李","台","落","木","幫","輪","破","亞","師","圍","注","遠","字","材","排","供","河","態","封","另","施","減","樹","溶","怎","止","案","言","士","均","武","固","葉","魚","波","視","僅","費","緊","愛","左","章","早","朝","害","續","輕","服","試","食","充","兵","源","判","護","司","足","某","練","差","致","板","田","降","黑","犯","負","擊","范","繼","興","似","餘","堅","曲","輸","修","故","城","夫","夠","送","筆","船","佔","右","財","吃","富","春","職","覺","漢","畫","功","巴","跟","雖","雜","飛","檢","吸","助","昇","陽","互","初","創","抗","考","投","壞","策","古","徑","換","未","跑","留","鋼","曾","端","責","站","簡","述","錢","副","盡","帝","射","草","衝","承","獨","令","限","阿","宣","環","雙","請","超","微","讓","控","州","良","軸","找","否","紀","益","依","優","頂","礎","載","倒","房","突","坐","粉","敵","略","客","袁","冷","勝","絕","析","塊","劑","測","絲","協","訴","念","陳","仍","羅","鹽","友","洋","錯","苦","夜","刑","移","頻","逐","靠","混","母","短","皮","終","聚","汽","村","雲","哪","既","距","衛","停","烈","央","察","燒","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","遊","久","菜","味","舊","模","湖","貨","損","預","阻","毫","普","穩","乙","媽","植","息","擴","銀","語","揮","酒","守","拿","序","紙","醫","缺","雨","嗎","針","劉","啊","急","唱","誤","訓","願","審","附","獲","茶","鮮","糧","斤","孩","脫","硫","肥","善","龍","演","父","漸","血","歡","械","掌","歌","沙","剛","攻","謂","盾","討","晚","粒","亂","燃","矛","乎","殺","藥","寧","魯","貴","鐘","煤","讀","班","伯","香","介","迫","句","豐","培","握","蘭","擔","弦","蛋","沉","假","穿","執","答","樂","誰","順","煙","縮","徵","臉","喜","松","腳","困","異","免","背","星","福","買","染","井","概","慢","怕","磁","倍","祖","皇","促","靜","補","評","翻","肉","踐","尼","衣","寬","揚","棉","希","傷","操","垂","秋","宜","氫","套","督","振","架","亮","末","憲","慶","編","牛","觸","映","雷","銷","詩","座","居","抓","裂","胞","呼","娘","景","威","綠","晶","厚","盟","衡","雞","孫","延","危","膠","屋","鄉","臨","陸","顧","掉","呀","燈","歲","措","束","耐","劇","玉","趙","跳","哥","季","課","凱","胡","額","款","紹","卷","齊","偉","蒸","殖","永","宗","苗","川","爐","岩","弱","零","楊","奏","沿","露","桿","探","滑","鎮","飯","濃","航","懷","趕","庫","奪","伊","靈","稅","途","滅","賽","歸","召","鼓","播","盤","裁","險","康","唯","錄","菌","純","借","糖","蓋","橫","符","私","努","堂","域","槍","潤","幅","哈","竟","熟","蟲","澤","腦","壤","碳","歐","遍","側","寨","敢","徹","慮","斜","薄","庭","納","彈","飼","伸","折","麥","濕","暗","荷","瓦","塞","床","築","惡","戶","訪","塔","奇","透","梁","刀","旋","跡","卡","氯","遇","份","毒","泥","退","洗","擺","灰","彩","賣","耗","夏","擇","忙","銅","獻","硬","予","繁","圈","雪","函","亦","抽","篇","陣","陰","丁","尺","追","堆","雄","迎","泛","爸","樓","避","謀","噸","野","豬","旗","累","偏","典","館","索","秦","脂","潮","爺","豆","忽","托","驚","塑","遺","愈","朱","替","纖","粗","傾","尚","痛","楚","謝","奮","購","磨","君","池","旁","碎","骨","監","捕","弟","暴","割","貫","殊","釋","詞","亡","壁","頓","寶","午","塵","聞","揭","炮","殘","冬","橋","婦","警","綜","招","吳","付","浮","遭","徐","您","搖","谷","贊","箱","隔","訂","男","吹","園","紛","唐","敗","宋","玻","巨","耕","坦","榮","閉","灣","鍵","凡","駐","鍋","救","恩","剝","凝","鹼","齒","截","煉","麻","紡","禁","廢","盛","版","緩","淨","睛","昌","婚","涉","筒","嘴","插","岸","朗","莊","街","藏","姑","貿","腐","奴","啦","慣","乘","夥","恢","勻","紗","扎","辯","耳","彪","臣","億","璃","抵","脈","秀","薩","俄","網","舞","店","噴","縱","寸","汗","掛","洪","賀","閃","柬","爆","烯","津","稻","牆","軟","勇","像","滾","厘","蒙","芳","肯","坡","柱","盪","腿","儀","旅","尾","軋","冰","貢","登","黎","削","鑽","勒","逃","障","氨","郭","峰","幣","港","伏","軌","畝","畢","擦","莫","刺","浪","秘","援","株","健","售","股","島","甘","泡","睡","童","鑄","湯","閥","休","匯","舍","牧","繞","炸","哲","磷","績","朋","淡","尖","啟","陷","柴","呈","徒","顏","淚","稍","忘","泵","藍","拖","洞","授","鏡","辛","壯","鋒","貧","虛","彎","摩","泰","幼","廷","尊","窗","綱","弄","隸","疑","氏","宮","姐","震","瑞","怪","尤","琴","循","描","膜","違","夾","腰","緣","珠","窮","森","枝","竹","溝","催","繩","憶","邦","剩","幸","漿","欄","擁","牙","貯","禮","濾","鈉","紋","罷","拍","咱","喊","袖","埃","勤","罰","焦","潛","伍","墨","欲","縫","姓","刊","飽","仿","獎","鋁","鬼","麗","跨","默","挖","鏈","掃","喝","袋","炭","污","幕","諸","弧","勵","梅","奶","潔","災","舟","鑑","苯","訟","抱","毀","懂","寒","智","埔","寄","屆","躍","渡","挑","丹","艱","貝","碰","拔","爹","戴","碼","夢","芽","熔","赤","漁","哭","敬","顆","奔","鉛","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","倉","魏","銳","曉","氮","兼","隱","礙","赫","撥","忠","肅","缸","牽","搶","博","巧","殼","兄","杜","訊","誠","碧","祥","柯","頁","巡","矩","悲","灌","齡","倫","票","尋","桂","鋪","聖","恐","恰","鄭","趣","抬","荒","騰","貼","柔","滴","猛","闊","輛","妻","填","撤","儲","簽","鬧","擾","紫","砂","遞","戲","吊","陶","伐","餵","療","瓶","婆","撫","臂","摸","忍","蝦","蠟","鄰","胸","鞏","擠","偶","棄","槽","勁","乳","鄧","吉","仁","爛","磚","租","烏","艦","伴","瓜","淺","丙","暫","燥","橡","柳","迷","暖","牌","秧","膽","詳","簧","踏","瓷","譜","呆","賓","糊","洛","輝","憤","競","隙","怒","粘","乃","緒","肩","籍","敏","塗","熙","皆","偵","懸","掘","享","糾","醒","狂","鎖","淀","恨","牲","霸","爬","賞","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鴨","趨","鳳","晨","畜","輩","秩","卵","署","梯","炎","灘","棋","驅","篩","峽","冒","啥","壽","譯","浸","泉","帽","遲","矽","疆","貸","漏","稿","冠","嫩","脅","芯","牢","叛","蝕","奧","鳴","嶺","羊","憑","串","塘","繪","酵","融","盆","錫","廟","籌","凍","輔","攝","襲","筋","拒","僚","旱","鉀","鳥","漆","沈","眉","疏","添","棒","穗","硝","韓","逼","扭","僑","涼","挺","碗","栽","炒","杯","患","餾","勸","豪","遼","勃","鴻","旦","吏","拜","狗","埋","輥","掩","飲","搬","罵","辭","勾","扣","估","蔣","絨","霧","丈","朵","姆","擬","宇","輯","陝","雕","償","蓄","崇","剪","倡","廳","咬","駛","薯","刷","斥","番","賦","奉","佛","澆","漫","曼","扇","鈣","桃","扶","仔","返","俗","虧","腔","鞋","棱","覆","框","悄","叔","撞","騙","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","脹","諧","拋","黴","桑","崗","嘛","衰","盜","滲","臟","賴","湧","甜","曹","閱","肌","哩","厲","烴","緯","毅","昨","偽","症","煮","嘆","釘","搭","莖","籠","酷","偷","弓","錐","恆","傑","坑","鼻","翼","綸","敘","獄","逮","罐","絡","棚","抑","膨","蔬","寺","驟","穆","冶","枯","冊","屍","凸","紳","坯","犧","焰","轟","欣","晉","瘦","禦","錠","錦","喪","旬","鍛","壟","搜","撲","邀","亭","酯","邁","舒","脆","酶","閒","憂","酚","頑","羽","漲","卸","仗","陪","闢","懲","杭","姚","肚","捉","飄","漂","昆","欺","吾","郎","烷","汁","呵","飾","蕭","雅","郵","遷","燕","撒","姻","赴","宴","煩","債","帳","斑","鈴","旨","醇","董","餅","雛","姿","拌","傅","腹","妥","揉","賢","拆","歪","葡","胺","丟","浩","徽","昂","墊","擋","覽","貪","慰","繳","汪","慌","馮","諾","姜","誼","兇","劣","誣","耀","昏","躺","盈","騎","喬","溪","叢","盧","抹","悶","諮","刮","駕","纜","悟","摘","鉺","擲","頗","幻","柄","惠","慘","佳","仇","臘","窩","滌","劍","瞧","堡","潑","蔥","罩","霍","撈","胎","蒼","濱","倆","捅","湘","砍","霞","邵","萄","瘋","淮","遂","熊","糞","烘","宿","檔","戈","駁","嫂","裕","徙","箭","捐","腸","撐","曬","辨","殿","蓮","攤","攪","醬","屏","疫","哀","蔡","堵","沫","皺","暢","疊","閣","萊","敲","轄","鉤","痕","壩","巷","餓","禍","丘","玄","溜","曰","邏","彭","嘗","卿","妨","艇","吞","韋","怨","矮","歇"]')},32:e=>{"use strict";e.exports=JSON.parse('["abdikace","abeceda","adresa","agrese","akce","aktovka","alej","alkohol","amputace","ananas","andulka","anekdota","anketa","antika","anulovat","archa","arogance","asfalt","asistent","aspirace","astma","astronom","atlas","atletika","atol","autobus","azyl","babka","bachor","bacil","baculka","badatel","bageta","bagr","bahno","bakterie","balada","baletka","balkon","balonek","balvan","balza","bambus","bankomat","barbar","baret","barman","baroko","barva","baterka","batoh","bavlna","bazalka","bazilika","bazuka","bedna","beran","beseda","bestie","beton","bezinka","bezmoc","beztak","bicykl","bidlo","biftek","bikiny","bilance","biograf","biolog","bitva","bizon","blahobyt","blatouch","blecha","bledule","blesk","blikat","blizna","blokovat","bloudit","blud","bobek","bobr","bodlina","bodnout","bohatost","bojkot","bojovat","bokorys","bolest","borec","borovice","bota","boubel","bouchat","bouda","boule","bourat","boxer","bradavka","brambora","branka","bratr","brepta","briketa","brko","brloh","bronz","broskev","brunetka","brusinka","brzda","brzy","bublina","bubnovat","buchta","buditel","budka","budova","bufet","bujarost","bukvice","buldok","bulva","bunda","bunkr","burza","butik","buvol","buzola","bydlet","bylina","bytovka","bzukot","capart","carevna","cedr","cedule","cejch","cejn","cela","celer","celkem","celnice","cenina","cennost","cenovka","centrum","cenzor","cestopis","cetka","chalupa","chapadlo","charita","chata","chechtat","chemie","chichot","chirurg","chlad","chleba","chlubit","chmel","chmura","chobot","chochol","chodba","cholera","chomout","chopit","choroba","chov","chrapot","chrlit","chrt","chrup","chtivost","chudina","chutnat","chvat","chvilka","chvost","chyba","chystat","chytit","cibule","cigareta","cihelna","cihla","cinkot","cirkus","cisterna","citace","citrus","cizinec","cizost","clona","cokoliv","couvat","ctitel","ctnost","cudnost","cuketa","cukr","cupot","cvaknout","cval","cvik","cvrkot","cyklista","daleko","dareba","datel","datum","dcera","debata","dechovka","decibel","deficit","deflace","dekl","dekret","demokrat","deprese","derby","deska","detektiv","dikobraz","diktovat","dioda","diplom","disk","displej","divadlo","divoch","dlaha","dlouho","dluhopis","dnes","dobro","dobytek","docent","dochutit","dodnes","dohled","dohoda","dohra","dojem","dojnice","doklad","dokola","doktor","dokument","dolar","doleva","dolina","doma","dominant","domluvit","domov","donutit","dopad","dopis","doplnit","doposud","doprovod","dopustit","dorazit","dorost","dort","dosah","doslov","dostatek","dosud","dosyta","dotaz","dotek","dotknout","doufat","doutnat","dovozce","dozadu","doznat","dozorce","drahota","drak","dramatik","dravec","draze","drdol","drobnost","drogerie","drozd","drsnost","drtit","drzost","duben","duchovno","dudek","duha","duhovka","dusit","dusno","dutost","dvojice","dvorec","dynamit","ekolog","ekonomie","elektron","elipsa","email","emise","emoce","empatie","epizoda","epocha","epopej","epos","esej","esence","eskorta","eskymo","etiketa","euforie","evoluce","exekuce","exkurze","expedice","exploze","export","extrakt","facka","fajfka","fakulta","fanatik","fantazie","farmacie","favorit","fazole","federace","fejeton","fenka","fialka","figurant","filozof","filtr","finance","finta","fixace","fjord","flanel","flirt","flotila","fond","fosfor","fotbal","fotka","foton","frakce","freska","fronta","fukar","funkce","fyzika","galeje","garant","genetika","geolog","gilotina","glazura","glejt","golem","golfista","gotika","graf","gramofon","granule","grep","gril","grog","groteska","guma","hadice","hadr","hala","halenka","hanba","hanopis","harfa","harpuna","havran","hebkost","hejkal","hejno","hejtman","hektar","helma","hematom","herec","herna","heslo","hezky","historik","hladovka","hlasivky","hlava","hledat","hlen","hlodavec","hloh","hloupost","hltat","hlubina","hluchota","hmat","hmota","hmyz","hnis","hnojivo","hnout","hoblina","hoboj","hoch","hodiny","hodlat","hodnota","hodovat","hojnost","hokej","holinka","holka","holub","homole","honitba","honorace","horal","horda","horizont","horko","horlivec","hormon","hornina","horoskop","horstvo","hospoda","hostina","hotovost","houba","houf","houpat","houska","hovor","hradba","hranice","hravost","hrazda","hrbolek","hrdina","hrdlo","hrdost","hrnek","hrobka","hromada","hrot","hrouda","hrozen","hrstka","hrubost","hryzat","hubenost","hubnout","hudba","hukot","humr","husita","hustota","hvozd","hybnost","hydrant","hygiena","hymna","hysterik","idylka","ihned","ikona","iluze","imunita","infekce","inflace","inkaso","inovace","inspekce","internet","invalida","investor","inzerce","ironie","jablko","jachta","jahoda","jakmile","jakost","jalovec","jantar","jarmark","jaro","jasan","jasno","jatka","javor","jazyk","jedinec","jedle","jednatel","jehlan","jekot","jelen","jelito","jemnost","jenom","jepice","jeseter","jevit","jezdec","jezero","jinak","jindy","jinoch","jiskra","jistota","jitrnice","jizva","jmenovat","jogurt","jurta","kabaret","kabel","kabinet","kachna","kadet","kadidlo","kahan","kajak","kajuta","kakao","kaktus","kalamita","kalhoty","kalibr","kalnost","kamera","kamkoliv","kamna","kanibal","kanoe","kantor","kapalina","kapela","kapitola","kapka","kaple","kapota","kapr","kapusta","kapybara","karamel","karotka","karton","kasa","katalog","katedra","kauce","kauza","kavalec","kazajka","kazeta","kazivost","kdekoliv","kdesi","kedluben","kemp","keramika","kino","klacek","kladivo","klam","klapot","klasika","klaun","klec","klenba","klepat","klesnout","klid","klima","klisna","klobouk","klokan","klopa","kloub","klubovna","klusat","kluzkost","kmen","kmitat","kmotr","kniha","knot","koalice","koberec","kobka","kobliha","kobyla","kocour","kohout","kojenec","kokos","koktejl","kolaps","koleda","kolize","kolo","komando","kometa","komik","komnata","komora","kompas","komunita","konat","koncept","kondice","konec","konfese","kongres","konina","konkurs","kontakt","konzerva","kopanec","kopie","kopnout","koprovka","korbel","korektor","kormidlo","koroptev","korpus","koruna","koryto","korzet","kosatec","kostka","kotel","kotleta","kotoul","koukat","koupelna","kousek","kouzlo","kovboj","koza","kozoroh","krabice","krach","krajina","kralovat","krasopis","kravata","kredit","krejcar","kresba","kreveta","kriket","kritik","krize","krkavec","krmelec","krmivo","krocan","krok","kronika","kropit","kroupa","krovka","krtek","kruhadlo","krupice","krutost","krvinka","krychle","krypta","krystal","kryt","kudlanka","kufr","kujnost","kukla","kulajda","kulich","kulka","kulomet","kultura","kuna","kupodivu","kurt","kurzor","kutil","kvalita","kvasinka","kvestor","kynolog","kyselina","kytara","kytice","kytka","kytovec","kyvadlo","labrador","lachtan","ladnost","laik","lakomec","lamela","lampa","lanovka","lasice","laso","lastura","latinka","lavina","lebka","leckdy","leden","lednice","ledovka","ledvina","legenda","legie","legrace","lehce","lehkost","lehnout","lektvar","lenochod","lentilka","lepenka","lepidlo","letadlo","letec","letmo","letokruh","levhart","levitace","levobok","libra","lichotka","lidojed","lidskost","lihovina","lijavec","lilek","limetka","linie","linka","linoleum","listopad","litina","litovat","lobista","lodivod","logika","logoped","lokalita","loket","lomcovat","lopata","lopuch","lord","losos","lotr","loudal","louh","louka","louskat","lovec","lstivost","lucerna","lucifer","lump","lusk","lustrace","lvice","lyra","lyrika","lysina","madam","madlo","magistr","mahagon","majetek","majitel","majorita","makak","makovice","makrela","malba","malina","malovat","malvice","maminka","mandle","manko","marnost","masakr","maskot","masopust","matice","matrika","maturita","mazanec","mazivo","mazlit","mazurka","mdloba","mechanik","meditace","medovina","melasa","meloun","mentolka","metla","metoda","metr","mezera","migrace","mihnout","mihule","mikina","mikrofon","milenec","milimetr","milost","mimika","mincovna","minibar","minomet","minulost","miska","mistr","mixovat","mladost","mlha","mlhovina","mlok","mlsat","mluvit","mnich","mnohem","mobil","mocnost","modelka","modlitba","mohyla","mokro","molekula","momentka","monarcha","monokl","monstrum","montovat","monzun","mosaz","moskyt","most","motivace","motorka","motyka","moucha","moudrost","mozaika","mozek","mozol","mramor","mravenec","mrkev","mrtvola","mrzet","mrzutost","mstitel","mudrc","muflon","mulat","mumie","munice","muset","mutace","muzeum","muzikant","myslivec","mzda","nabourat","nachytat","nadace","nadbytek","nadhoz","nadobro","nadpis","nahlas","nahnat","nahodile","nahradit","naivita","najednou","najisto","najmout","naklonit","nakonec","nakrmit","nalevo","namazat","namluvit","nanometr","naoko","naopak","naostro","napadat","napevno","naplnit","napnout","naposled","naprosto","narodit","naruby","narychlo","nasadit","nasekat","naslepo","nastat","natolik","navenek","navrch","navzdory","nazvat","nebe","nechat","necky","nedaleko","nedbat","neduh","negace","nehet","nehoda","nejen","nejprve","neklid","nelibost","nemilost","nemoc","neochota","neonka","nepokoj","nerost","nerv","nesmysl","nesoulad","netvor","neuron","nevina","nezvykle","nicota","nijak","nikam","nikdy","nikl","nikterak","nitro","nocleh","nohavice","nominace","nora","norek","nositel","nosnost","nouze","noviny","novota","nozdra","nuda","nudle","nuget","nutit","nutnost","nutrie","nymfa","obal","obarvit","obava","obdiv","obec","obehnat","obejmout","obezita","obhajoba","obilnice","objasnit","objekt","obklopit","oblast","oblek","obliba","obloha","obluda","obnos","obohatit","obojek","obout","obrazec","obrna","obruba","obrys","obsah","obsluha","obstarat","obuv","obvaz","obvinit","obvod","obvykle","obyvatel","obzor","ocas","ocel","ocenit","ochladit","ochota","ochrana","ocitnout","odboj","odbyt","odchod","odcizit","odebrat","odeslat","odevzdat","odezva","odhadce","odhodit","odjet","odjinud","odkaz","odkoupit","odliv","odluka","odmlka","odolnost","odpad","odpis","odplout","odpor","odpustit","odpykat","odrazka","odsoudit","odstup","odsun","odtok","odtud","odvaha","odveta","odvolat","odvracet","odznak","ofina","ofsajd","ohlas","ohnisko","ohrada","ohrozit","ohryzek","okap","okenice","oklika","okno","okouzlit","okovy","okrasa","okres","okrsek","okruh","okupant","okurka","okusit","olejnina","olizovat","omak","omeleta","omezit","omladina","omlouvat","omluva","omyl","onehdy","opakovat","opasek","operace","opice","opilost","opisovat","opora","opozice","opravdu","oproti","orbital","orchestr","orgie","orlice","orloj","ortel","osada","oschnout","osika","osivo","oslava","oslepit","oslnit","oslovit","osnova","osoba","osolit","ospalec","osten","ostraha","ostuda","ostych","osvojit","oteplit","otisk","otop","otrhat","otrlost","otrok","otruby","otvor","ovanout","ovar","oves","ovlivnit","ovoce","oxid","ozdoba","pachatel","pacient","padouch","pahorek","pakt","palanda","palec","palivo","paluba","pamflet","pamlsek","panenka","panika","panna","panovat","panstvo","pantofle","paprika","parketa","parodie","parta","paruka","paryba","paseka","pasivita","pastelka","patent","patrona","pavouk","pazneht","pazourek","pecka","pedagog","pejsek","peklo","peloton","penalta","pendrek","penze","periskop","pero","pestrost","petarda","petice","petrolej","pevnina","pexeso","pianista","piha","pijavice","pikle","piknik","pilina","pilnost","pilulka","pinzeta","pipeta","pisatel","pistole","pitevna","pivnice","pivovar","placenta","plakat","plamen","planeta","plastika","platit","plavidlo","plaz","plech","plemeno","plenta","ples","pletivo","plevel","plivat","plnit","plno","plocha","plodina","plomba","plout","pluk","plyn","pobavit","pobyt","pochod","pocit","poctivec","podat","podcenit","podepsat","podhled","podivit","podklad","podmanit","podnik","podoba","podpora","podraz","podstata","podvod","podzim","poezie","pohanka","pohnutka","pohovor","pohroma","pohyb","pointa","pojistka","pojmout","pokazit","pokles","pokoj","pokrok","pokuta","pokyn","poledne","polibek","polknout","poloha","polynom","pomalu","pominout","pomlka","pomoc","pomsta","pomyslet","ponechat","ponorka","ponurost","popadat","popel","popisek","poplach","poprosit","popsat","popud","poradce","porce","porod","porucha","poryv","posadit","posed","posila","poskok","poslanec","posoudit","pospolu","postava","posudek","posyp","potah","potkan","potlesk","potomek","potrava","potupa","potvora","poukaz","pouto","pouzdro","povaha","povidla","povlak","povoz","povrch","povstat","povyk","povzdech","pozdrav","pozemek","poznatek","pozor","pozvat","pracovat","prahory","praktika","prales","praotec","praporek","prase","pravda","princip","prkno","probudit","procento","prodej","profese","prohra","projekt","prolomit","promile","pronikat","propad","prorok","prosba","proton","proutek","provaz","prskavka","prsten","prudkost","prut","prvek","prvohory","psanec","psovod","pstruh","ptactvo","puberta","puch","pudl","pukavec","puklina","pukrle","pult","pumpa","punc","pupen","pusa","pusinka","pustina","putovat","putyka","pyramida","pysk","pytel","racek","rachot","radiace","radnice","radon","raft","ragby","raketa","rakovina","rameno","rampouch","rande","rarach","rarita","rasovna","rastr","ratolest","razance","razidlo","reagovat","reakce","recept","redaktor","referent","reflex","rejnok","reklama","rekord","rekrut","rektor","reputace","revize","revma","revolver","rezerva","riskovat","riziko","robotika","rodokmen","rohovka","rokle","rokoko","romaneto","ropovod","ropucha","rorejs","rosol","rostlina","rotmistr","rotoped","rotunda","roubenka","roucho","roup","roura","rovina","rovnice","rozbor","rozchod","rozdat","rozeznat","rozhodce","rozinka","rozjezd","rozkaz","rozloha","rozmar","rozpad","rozruch","rozsah","roztok","rozum","rozvod","rubrika","ruchadlo","rukavice","rukopis","ryba","rybolov","rychlost","rydlo","rypadlo","rytina","ryzost","sadista","sahat","sako","samec","samizdat","samota","sanitka","sardinka","sasanka","satelit","sazba","sazenice","sbor","schovat","sebranka","secese","sedadlo","sediment","sedlo","sehnat","sejmout","sekera","sekta","sekunda","sekvoje","semeno","seno","servis","sesadit","seshora","seskok","seslat","sestra","sesuv","sesypat","setba","setina","setkat","setnout","setrvat","sever","seznam","shoda","shrnout","sifon","silnice","sirka","sirotek","sirup","situace","skafandr","skalisko","skanzen","skaut","skeptik","skica","skladba","sklenice","sklo","skluz","skoba","skokan","skoro","skripta","skrz","skupina","skvost","skvrna","slabika","sladidlo","slanina","slast","slavnost","sledovat","slepec","sleva","slezina","slib","slina","sliznice","slon","sloupek","slovo","sluch","sluha","slunce","slupka","slza","smaragd","smetana","smilstvo","smlouva","smog","smrad","smrk","smrtka","smutek","smysl","snad","snaha","snob","sobota","socha","sodovka","sokol","sopka","sotva","souboj","soucit","soudce","souhlas","soulad","soumrak","souprava","soused","soutok","souviset","spalovna","spasitel","spis","splav","spodek","spojenec","spolu","sponzor","spornost","spousta","sprcha","spustit","sranda","sraz","srdce","srna","srnec","srovnat","srpen","srst","srub","stanice","starosta","statika","stavba","stehno","stezka","stodola","stolek","stopa","storno","stoupat","strach","stres","strhnout","strom","struna","studna","stupnice","stvol","styk","subjekt","subtropy","suchar","sudost","sukno","sundat","sunout","surikata","surovina","svah","svalstvo","svetr","svatba","svazek","svisle","svitek","svoboda","svodidlo","svorka","svrab","sykavka","sykot","synek","synovec","sypat","sypkost","syrovost","sysel","sytost","tabletka","tabule","tahoun","tajemno","tajfun","tajga","tajit","tajnost","taktika","tamhle","tampon","tancovat","tanec","tanker","tapeta","tavenina","tazatel","technika","tehdy","tekutina","telefon","temnota","tendence","tenista","tenor","teplota","tepna","teprve","terapie","termoska","textil","ticho","tiskopis","titulek","tkadlec","tkanina","tlapka","tleskat","tlukot","tlupa","tmel","toaleta","topinka","topol","torzo","touha","toulec","tradice","traktor","tramp","trasa","traverza","trefit","trest","trezor","trhavina","trhlina","trochu","trojice","troska","trouba","trpce","trpitel","trpkost","trubec","truchlit","truhlice","trus","trvat","tudy","tuhnout","tuhost","tundra","turista","turnaj","tuzemsko","tvaroh","tvorba","tvrdost","tvrz","tygr","tykev","ubohost","uboze","ubrat","ubrousek","ubrus","ubytovna","ucho","uctivost","udivit","uhradit","ujednat","ujistit","ujmout","ukazatel","uklidnit","uklonit","ukotvit","ukrojit","ulice","ulita","ulovit","umyvadlo","unavit","uniforma","uniknout","upadnout","uplatnit","uplynout","upoutat","upravit","uran","urazit","usednout","usilovat","usmrtit","usnadnit","usnout","usoudit","ustlat","ustrnout","utahovat","utkat","utlumit","utonout","utopenec","utrousit","uvalit","uvolnit","uvozovka","uzdravit","uzel","uzenina","uzlina","uznat","vagon","valcha","valoun","vana","vandal","vanilka","varan","varhany","varovat","vcelku","vchod","vdova","vedro","vegetace","vejce","velbloud","veletrh","velitel","velmoc","velryba","venkov","veranda","verze","veselka","veskrze","vesnice","vespodu","vesta","veterina","veverka","vibrace","vichr","videohra","vidina","vidle","vila","vinice","viset","vitalita","vize","vizitka","vjezd","vklad","vkus","vlajka","vlak","vlasec","vlevo","vlhkost","vliv","vlnovka","vloupat","vnucovat","vnuk","voda","vodivost","vodoznak","vodstvo","vojensky","vojna","vojsko","volant","volba","volit","volno","voskovka","vozidlo","vozovna","vpravo","vrabec","vracet","vrah","vrata","vrba","vrcholek","vrhat","vrstva","vrtule","vsadit","vstoupit","vstup","vtip","vybavit","vybrat","vychovat","vydat","vydra","vyfotit","vyhledat","vyhnout","vyhodit","vyhradit","vyhubit","vyjasnit","vyjet","vyjmout","vyklopit","vykonat","vylekat","vymazat","vymezit","vymizet","vymyslet","vynechat","vynikat","vynutit","vypadat","vyplatit","vypravit","vypustit","vyrazit","vyrovnat","vyrvat","vyslovit","vysoko","vystavit","vysunout","vysypat","vytasit","vytesat","vytratit","vyvinout","vyvolat","vyvrhel","vyzdobit","vyznat","vzadu","vzbudit","vzchopit","vzdor","vzduch","vzdychat","vzestup","vzhledem","vzkaz","vzlykat","vznik","vzorek","vzpoura","vztah","vztek","xylofon","zabrat","zabydlet","zachovat","zadarmo","zadusit","zafoukat","zahltit","zahodit","zahrada","zahynout","zajatec","zajet","zajistit","zaklepat","zakoupit","zalepit","zamezit","zamotat","zamyslet","zanechat","zanikat","zaplatit","zapojit","zapsat","zarazit","zastavit","zasunout","zatajit","zatemnit","zatknout","zaujmout","zavalit","zavelet","zavinit","zavolat","zavrtat","zazvonit","zbavit","zbrusu","zbudovat","zbytek","zdaleka","zdarma","zdatnost","zdivo","zdobit","zdroj","zdvih","zdymadlo","zelenina","zeman","zemina","zeptat","zezadu","zezdola","zhatit","zhltnout","zhluboka","zhotovit","zhruba","zima","zimnice","zjemnit","zklamat","zkoumat","zkratka","zkumavka","zlato","zlehka","zloba","zlom","zlost","zlozvyk","zmapovat","zmar","zmatek","zmije","zmizet","zmocnit","zmodrat","zmrzlina","zmutovat","znak","znalost","znamenat","znovu","zobrazit","zotavit","zoubek","zoufale","zplodit","zpomalit","zprava","zprostit","zprudka","zprvu","zrada","zranit","zrcadlo","zrnitost","zrno","zrovna","zrychlit","zrzavost","zticha","ztratit","zubovina","zubr","zvednout","zvenku","zvesela","zvon","zvrat","zvukovod","zvyk"]')},4573:e=>{"use strict";e.exports=JSON.parse('["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]')},1848:e=>{"use strict";e.exports=JSON.parse('["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","académie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acquérir","acronyme","acteur","actif","actuel","adepte","adéquat","adhésif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","aérer","aéronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agréable","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","algèbre","algue","aliéner","aliment","alléger","alliage","allouer","allumer","alourdir","alpaga","altesse","alvéole","amateur","ambigu","ambre","aménager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","anéantir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","apéritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","artériel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannière","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","bélier","belote","bénéfice","berceau","berger","berline","bermuda","besace","besogne","bétail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","brèche","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","caféine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","caméra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","cédille","ceinture","céleste","cellule","cendrier","censurer","central","cercle","cérébral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","chéquier","chercher","cheval","chien","chiffre","chignon","chimère","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cinéma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohésion","coiffer","coincer","colère","colibri","colline","colmater","colonel","combat","comédie","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","cortège","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","créature","créditer","crémeux","creuser","crevette","cribler","crier","cristal","critère","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuillère","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","débattre","débiter","déborder","débrider","débutant","décaler","décembre","déchirer","décider","déclarer","décorer","décrire","décupler","dédale","déductif","déesse","défensif","défiler","défrayer","dégager","dégivrer","déglutir","dégrafer","déjeuner","délice","déloger","demander","demeurer","démolir","dénicher","dénouer","dentelle","dénuder","départ","dépenser","déphaser","déplacer","déposer","déranger","dérober","désastre","descente","désert","désigner","désobéir","dessiner","destrier","détacher","détester","détourer","détresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","différer","digérer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","éblouir","écarter","écharpe","échelle","éclairer","éclipse","éclore","écluse","école","économie","écorce","écouter","écraser","écrémer","écrivain","écrou","écume","écureuil","édifier","éduquer","effacer","effectif","effigie","effort","effrayer","effusion","égaliser","égarer","éjecter","élaborer","élargir","électron","élégant","éléphant","élève","éligible","élitisme","éloge","élucider","éluder","emballer","embellir","embryon","émeraude","émission","emmener","émotion","émouvoir","empereur","employer","emporter","emprise","émulsion","encadrer","enchère","enclave","encoche","endiguer","endosser","endroit","enduire","énergie","enfance","enfermer","enfouir","engager","engin","englober","énigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","énumérer","envahir","enviable","envoyer","enzyme","éolien","épaissir","épargne","épatant","épaule","épicerie","épidémie","épier","épilogue","épine","épisode","épitaphe","époque","épreuve","éprouver","épuisant","équerre","équipe","ériger","érosion","erreur","éruption","escalier","espadon","espèce","espiègle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","étagère","étaler","étanche","étatique","éteindre","étendoir","éternel","éthanol","éthique","ethnie","étirer","étoffer","étoile","étonnant","étourdir","étrange","étroit","étude","euphorie","évaluer","évasion","éventail","évidence","éviter","évolutif","évoquer","exact","exagérer","exaucer","exceller","excitant","exclusif","excuse","exécuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expédier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fébrile","féconder","fédérer","félin","femme","fémur","fendoir","féodal","fermer","féroce","ferveur","festival","feuille","feutre","février","fiasco","ficeler","fictif","fidèle","figure","filature","filetage","filière","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fléau","flèche","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fougère","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","frégate","freiner","frelon","frémir","frénésie","frère","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","géant","gélatine","gélule","gendarme","général","génie","genou","gentil","géologie","géomètre","géranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruyère","guépard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","hélium","hématome","herbe","hérisson","hermine","héron","hésiter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homogène","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygiène","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impérial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","inédit","ineptie","inexact","infini","infliger","informer","infusion","ingérer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irréel","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juvénile","kayak","kimono","kiosque","label","labial","labourer","lacérer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","légal","léger","légume","lessive","lettre","levier","lexique","lézard","liasse","libérer","libre","licence","licorne","liège","lièvre","ligature","ligoter","ligue","limer","limite","limonade","limpide","linéaire","lingot","lionceau","liquide","lisière","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumière","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","maléfice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","matériel","matière","matraque","maudire","maussade","mauve","maximal","méchant","méconnu","médaille","médecin","méditer","méduse","meilleur","mélange","mélodie","membre","mémoire","menacer","mener","menhir","mensonge","mentor","mercredi","mérite","merle","messager","mesure","métal","météore","méthode","métier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","minéral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","murène","murmure","muscle","muséum","musicien","mutation","muter","mutuel","myriade","myrtille","mystère","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","nébuleux","nectar","néfaste","négation","négliger","négocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","numéro","nuptial","nuque","nutritif","obéir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","océan","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","onéreux","onirique","opale","opaque","opérer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxygène","ozone","paisible","palace","palmarès","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","pastèque","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pélican","pelle","pelouse","peluche","pendule","pénétrer","pénible","pensif","pénurie","pépite","péplum","perdrix","perforer","période","permuter","perplexe","persil","perte","peser","pétale","petit","pétrir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pièce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poésie","poète","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","pondérer","poney","portique","position","posséder","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","précieux","prédire","préfixe","prélude","prénom","présence","prétexte","prévoir","primitif","prince","prison","priver","problème","procéder","prodige","profond","progrès","proie","projeter","prologue","promener","propre","prospère","protéger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quiétude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","réactif","réagir","réaliser","réanimer","recevoir","réciter","réclamer","récolter","recruter","reculer","recycler","rédiger","redouter","refaire","réflexe","réformer","refrain","refuge","régalien","région","réglage","régulier","réitérer","rejeter","rejouer","relatif","relever","relief","remarque","remède","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","réserve","résineux","résoudre","respect","rester","résultat","rétablir","retenir","réticule","retomber","retracer","réunion","réussir","revanche","revivre","révolte","révulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivière","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","scélérat","scénario","sceptre","schéma","science","scinder","score","scrutin","sculpter","séance","sécable","sécher","secouer","sécréter","sédatif","séduire","seigneur","séjour","sélectif","semaine","sembler","semence","séminal","sénateur","sensible","sentence","séparer","séquence","serein","sergent","sérieux","serrure","sérum","service","sésame","sévir","sevrage","sextuple","sidéral","siècle","siéger","siffler","sigle","signal","silence","silicium","simple","sincère","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spécial","sphère","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succès","sucre","suffixe","suggérer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","symétrie","synapse","syntaxe","système","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","témoin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","tétine","texte","thème","théorie","thérapie","thorax","tibia","tiède","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tolérant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","trèfle","tremper","trésor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","végétal","véhicule","veinard","véloce","vendredi","vénérer","venger","venimeux","ventouse","verdure","vérin","vernir","verrou","verser","vertu","veston","vétéran","vétuste","vexant","vexer","viaduc","viande","victoire","vidange","vidéo","vignette","vigueur","vilain","village","vinaigre","violon","vipère","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xénon","yacht","zèbre","zénith","zeste","zoologie"]')},2841:e=>{"use strict";e.exports=JSON.parse('["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"]')},4472:e=>{"use strict";e.exports=JSON.parse('["あいこくしん","あいさつ","あいだ","あおぞら","あかちゃん","あきる","あけがた","あける","あこがれる","あさい","あさひ","あしあと","あじわう","あずかる","あずき","あそぶ","あたえる","あたためる","あたりまえ","あたる","あつい","あつかう","あっしゅく","あつまり","あつめる","あてな","あてはまる","あひる","あぶら","あぶる","あふれる","あまい","あまど","あまやかす","あまり","あみもの","あめりか","あやまる","あゆむ","あらいぐま","あらし","あらすじ","あらためる","あらゆる","あらわす","ありがとう","あわせる","あわてる","あんい","あんがい","あんこ","あんぜん","あんてい","あんない","あんまり","いいだす","いおん","いがい","いがく","いきおい","いきなり","いきもの","いきる","いくじ","いくぶん","いけばな","いけん","いこう","いこく","いこつ","いさましい","いさん","いしき","いじゅう","いじょう","いじわる","いずみ","いずれ","いせい","いせえび","いせかい","いせき","いぜん","いそうろう","いそがしい","いだい","いだく","いたずら","いたみ","いたりあ","いちおう","いちじ","いちど","いちば","いちぶ","いちりゅう","いつか","いっしゅん","いっせい","いっそう","いったん","いっち","いってい","いっぽう","いてざ","いてん","いどう","いとこ","いない","いなか","いねむり","いのち","いのる","いはつ","いばる","いはん","いびき","いひん","いふく","いへん","いほう","いみん","いもうと","いもたれ","いもり","いやがる","いやす","いよかん","いよく","いらい","いらすと","いりぐち","いりょう","いれい","いれもの","いれる","いろえんぴつ","いわい","いわう","いわかん","いわば","いわゆる","いんげんまめ","いんさつ","いんしょう","いんよう","うえき","うえる","うおざ","うがい","うかぶ","うかべる","うきわ","うくらいな","うくれれ","うけたまわる","うけつけ","うけとる","うけもつ","うける","うごかす","うごく","うこん","うさぎ","うしなう","うしろがみ","うすい","うすぎ","うすぐらい","うすめる","うせつ","うちあわせ","うちがわ","うちき","うちゅう","うっかり","うつくしい","うったえる","うつる","うどん","うなぎ","うなじ","うなずく","うなる","うねる","うのう","うぶげ","うぶごえ","うまれる","うめる","うもう","うやまう","うよく","うらがえす","うらぐち","うらない","うりあげ","うりきれ","うるさい","うれしい","うれゆき","うれる","うろこ","うわき","うわさ","うんこう","うんちん","うんてん","うんどう","えいえん","えいが","えいきょう","えいご","えいせい","えいぶん","えいよう","えいわ","えおり","えがお","えがく","えきたい","えくせる","えしゃく","えすて","えつらん","えのぐ","えほうまき","えほん","えまき","えもじ","えもの","えらい","えらぶ","えりあ","えんえん","えんかい","えんぎ","えんげき","えんしゅう","えんぜつ","えんそく","えんちょう","えんとつ","おいかける","おいこす","おいしい","おいつく","おうえん","おうさま","おうじ","おうせつ","おうたい","おうふく","おうべい","おうよう","おえる","おおい","おおう","おおどおり","おおや","おおよそ","おかえり","おかず","おがむ","おかわり","おぎなう","おきる","おくさま","おくじょう","おくりがな","おくる","おくれる","おこす","おこなう","おこる","おさえる","おさない","おさめる","おしいれ","おしえる","おじぎ","おじさん","おしゃれ","おそらく","おそわる","おたがい","おたく","おだやか","おちつく","おっと","おつり","おでかけ","おとしもの","おとなしい","おどり","おどろかす","おばさん","おまいり","おめでとう","おもいで","おもう","おもたい","おもちゃ","おやつ","おやゆび","およぼす","おらんだ","おろす","おんがく","おんけい","おんしゃ","おんせん","おんだん","おんちゅう","おんどけい","かあつ","かいが","がいき","がいけん","がいこう","かいさつ","かいしゃ","かいすいよく","かいぜん","かいぞうど","かいつう","かいてん","かいとう","かいふく","がいへき","かいほう","かいよう","がいらい","かいわ","かえる","かおり","かかえる","かがく","かがし","かがみ","かくご","かくとく","かざる","がぞう","かたい","かたち","がちょう","がっきゅう","がっこう","がっさん","がっしょう","かなざわし","かのう","がはく","かぶか","かほう","かほご","かまう","かまぼこ","かめれおん","かゆい","かようび","からい","かるい","かろう","かわく","かわら","がんか","かんけい","かんこう","かんしゃ","かんそう","かんたん","かんち","がんばる","きあい","きあつ","きいろ","ぎいん","きうい","きうん","きえる","きおう","きおく","きおち","きおん","きかい","きかく","きかんしゃ","ききて","きくばり","きくらげ","きけんせい","きこう","きこえる","きこく","きさい","きさく","きさま","きさらぎ","ぎじかがく","ぎしき","ぎじたいけん","ぎじにってい","ぎじゅつしゃ","きすう","きせい","きせき","きせつ","きそう","きぞく","きぞん","きたえる","きちょう","きつえん","ぎっちり","きつつき","きつね","きてい","きどう","きどく","きない","きなが","きなこ","きぬごし","きねん","きのう","きのした","きはく","きびしい","きひん","きふく","きぶん","きぼう","きほん","きまる","きみつ","きむずかしい","きめる","きもだめし","きもち","きもの","きゃく","きやく","ぎゅうにく","きよう","きょうりゅう","きらい","きらく","きりん","きれい","きれつ","きろく","ぎろん","きわめる","ぎんいろ","きんかくじ","きんじょ","きんようび","ぐあい","くいず","くうかん","くうき","くうぐん","くうこう","ぐうせい","くうそう","ぐうたら","くうふく","くうぼ","くかん","くきょう","くげん","ぐこう","くさい","くさき","くさばな","くさる","くしゃみ","くしょう","くすのき","くすりゆび","くせげ","くせん","ぐたいてき","くださる","くたびれる","くちこみ","くちさき","くつした","ぐっすり","くつろぐ","くとうてん","くどく","くなん","くねくね","くのう","くふう","くみあわせ","くみたてる","くめる","くやくしょ","くらす","くらべる","くるま","くれる","くろう","くわしい","ぐんかん","ぐんしょく","ぐんたい","ぐんて","けあな","けいかく","けいけん","けいこ","けいさつ","げいじゅつ","けいたい","げいのうじん","けいれき","けいろ","けおとす","けおりもの","げきか","げきげん","げきだん","げきちん","げきとつ","げきは","げきやく","げこう","げこくじょう","げざい","けさき","げざん","けしき","けしごむ","けしょう","げすと","けたば","けちゃっぷ","けちらす","けつあつ","けつい","けつえき","けっこん","けつじょ","けっせき","けってい","けつまつ","げつようび","げつれい","けつろん","げどく","けとばす","けとる","けなげ","けなす","けなみ","けぬき","げねつ","けねん","けはい","げひん","けぶかい","げぼく","けまり","けみかる","けむし","けむり","けもの","けらい","けろけろ","けわしい","けんい","けんえつ","けんお","けんか","げんき","けんげん","けんこう","けんさく","けんしゅう","けんすう","げんそう","けんちく","けんてい","けんとう","けんない","けんにん","げんぶつ","けんま","けんみん","けんめい","けんらん","けんり","こあくま","こいぬ","こいびと","ごうい","こうえん","こうおん","こうかん","ごうきゅう","ごうけい","こうこう","こうさい","こうじ","こうすい","ごうせい","こうそく","こうたい","こうちゃ","こうつう","こうてい","こうどう","こうない","こうはい","ごうほう","ごうまん","こうもく","こうりつ","こえる","こおり","ごかい","ごがつ","ごかん","こくご","こくさい","こくとう","こくない","こくはく","こぐま","こけい","こける","ここのか","こころ","こさめ","こしつ","こすう","こせい","こせき","こぜん","こそだて","こたい","こたえる","こたつ","こちょう","こっか","こつこつ","こつばん","こつぶ","こてい","こてん","ことがら","ことし","ことば","ことり","こなごな","こねこね","このまま","このみ","このよ","ごはん","こひつじ","こふう","こふん","こぼれる","ごまあぶら","こまかい","ごますり","こまつな","こまる","こむぎこ","こもじ","こもち","こもの","こもん","こやく","こやま","こゆう","こゆび","こよい","こよう","こりる","これくしょん","ころっけ","こわもて","こわれる","こんいん","こんかい","こんき","こんしゅう","こんすい","こんだて","こんとん","こんなん","こんびに","こんぽん","こんまけ","こんや","こんれい","こんわく","ざいえき","さいかい","さいきん","ざいげん","ざいこ","さいしょ","さいせい","ざいたく","ざいちゅう","さいてき","ざいりょう","さうな","さかいし","さがす","さかな","さかみち","さがる","さぎょう","さくし","さくひん","さくら","さこく","さこつ","さずかる","ざせき","さたん","さつえい","ざつおん","ざっか","ざつがく","さっきょく","ざっし","さつじん","ざっそう","さつたば","さつまいも","さてい","さといも","さとう","さとおや","さとし","さとる","さのう","さばく","さびしい","さべつ","さほう","さほど","さます","さみしい","さみだれ","さむけ","さめる","さやえんどう","さゆう","さよう","さよく","さらだ","ざるそば","さわやか","さわる","さんいん","さんか","さんきゃく","さんこう","さんさい","ざんしょ","さんすう","さんせい","さんそ","さんち","さんま","さんみ","さんらん","しあい","しあげ","しあさって","しあわせ","しいく","しいん","しうち","しえい","しおけ","しかい","しかく","じかん","しごと","しすう","じだい","したうけ","したぎ","したて","したみ","しちょう","しちりん","しっかり","しつじ","しつもん","してい","してき","してつ","じてん","じどう","しなぎれ","しなもの","しなん","しねま","しねん","しのぐ","しのぶ","しはい","しばかり","しはつ","しはらい","しはん","しひょう","しふく","じぶん","しへい","しほう","しほん","しまう","しまる","しみん","しむける","じむしょ","しめい","しめる","しもん","しゃいん","しゃうん","しゃおん","じゃがいも","しやくしょ","しゃくほう","しゃけん","しゃこ","しゃざい","しゃしん","しゃせん","しゃそう","しゃたい","しゃちょう","しゃっきん","じゃま","しゃりん","しゃれい","じゆう","じゅうしょ","しゅくはく","じゅしん","しゅっせき","しゅみ","しゅらば","じゅんばん","しょうかい","しょくたく","しょっけん","しょどう","しょもつ","しらせる","しらべる","しんか","しんこう","じんじゃ","しんせいじ","しんちく","しんりん","すあげ","すあし","すあな","ずあん","すいえい","すいか","すいとう","ずいぶん","すいようび","すうがく","すうじつ","すうせん","すおどり","すきま","すくう","すくない","すける","すごい","すこし","ずさん","すずしい","すすむ","すすめる","すっかり","ずっしり","ずっと","すてき","すてる","すねる","すのこ","すはだ","すばらしい","ずひょう","ずぶぬれ","すぶり","すふれ","すべて","すべる","ずほう","すぼん","すまい","すめし","すもう","すやき","すらすら","するめ","すれちがう","すろっと","すわる","すんぜん","すんぽう","せあぶら","せいかつ","せいげん","せいじ","せいよう","せおう","せかいかん","せきにん","せきむ","せきゆ","せきらんうん","せけん","せこう","せすじ","せたい","せたけ","せっかく","せっきゃく","ぜっく","せっけん","せっこつ","せっさたくま","せつぞく","せつだん","せつでん","せっぱん","せつび","せつぶん","せつめい","せつりつ","せなか","せのび","せはば","せびろ","せぼね","せまい","せまる","せめる","せもたれ","せりふ","ぜんあく","せんい","せんえい","せんか","せんきょ","せんく","せんげん","ぜんご","せんさい","せんしゅ","せんすい","せんせい","せんぞ","せんたく","せんちょう","せんてい","せんとう","せんぬき","せんねん","せんぱい","ぜんぶ","ぜんぽう","せんむ","せんめんじょ","せんもん","せんやく","せんゆう","せんよう","ぜんら","ぜんりゃく","せんれい","せんろ","そあく","そいとげる","そいね","そうがんきょう","そうき","そうご","そうしん","そうだん","そうなん","そうび","そうめん","そうり","そえもの","そえん","そがい","そげき","そこう","そこそこ","そざい","そしな","そせい","そせん","そそぐ","そだてる","そつう","そつえん","そっかん","そつぎょう","そっけつ","そっこう","そっせん","そっと","そとがわ","そとづら","そなえる","そなた","そふぼ","そぼく","そぼろ","そまつ","そまる","そむく","そむりえ","そめる","そもそも","そよかぜ","そらまめ","そろう","そんかい","そんけい","そんざい","そんしつ","そんぞく","そんちょう","ぞんび","ぞんぶん","そんみん","たあい","たいいん","たいうん","たいえき","たいおう","だいがく","たいき","たいぐう","たいけん","たいこ","たいざい","だいじょうぶ","だいすき","たいせつ","たいそう","だいたい","たいちょう","たいてい","だいどころ","たいない","たいねつ","たいのう","たいはん","だいひょう","たいふう","たいへん","たいほ","たいまつばな","たいみんぐ","たいむ","たいめん","たいやき","たいよう","たいら","たいりょく","たいる","たいわん","たうえ","たえる","たおす","たおる","たおれる","たかい","たかね","たきび","たくさん","たこく","たこやき","たさい","たしざん","だじゃれ","たすける","たずさわる","たそがれ","たたかう","たたく","ただしい","たたみ","たちばな","だっかい","だっきゃく","だっこ","だっしゅつ","だったい","たてる","たとえる","たなばた","たにん","たぬき","たのしみ","たはつ","たぶん","たべる","たぼう","たまご","たまる","だむる","ためいき","ためす","ためる","たもつ","たやすい","たよる","たらす","たりきほんがん","たりょう","たりる","たると","たれる","たれんと","たろっと","たわむれる","だんあつ","たんい","たんおん","たんか","たんき","たんけん","たんご","たんさん","たんじょうび","だんせい","たんそく","たんたい","だんち","たんてい","たんとう","だんな","たんにん","だんねつ","たんのう","たんぴん","だんぼう","たんまつ","たんめい","だんれつ","だんろ","だんわ","ちあい","ちあん","ちいき","ちいさい","ちえん","ちかい","ちから","ちきゅう","ちきん","ちけいず","ちけん","ちこく","ちさい","ちしき","ちしりょう","ちせい","ちそう","ちたい","ちたん","ちちおや","ちつじょ","ちてき","ちてん","ちぬき","ちぬり","ちのう","ちひょう","ちへいせん","ちほう","ちまた","ちみつ","ちみどろ","ちめいど","ちゃんこなべ","ちゅうい","ちゆりょく","ちょうし","ちょさくけん","ちらし","ちらみ","ちりがみ","ちりょう","ちるど","ちわわ","ちんたい","ちんもく","ついか","ついたち","つうか","つうじょう","つうはん","つうわ","つかう","つかれる","つくね","つくる","つけね","つける","つごう","つたえる","つづく","つつじ","つつむ","つとめる","つながる","つなみ","つねづね","つのる","つぶす","つまらない","つまる","つみき","つめたい","つもり","つもる","つよい","つるぼ","つるみく","つわもの","つわり","てあし","てあて","てあみ","ていおん","ていか","ていき","ていけい","ていこく","ていさつ","ていし","ていせい","ていたい","ていど","ていねい","ていひょう","ていへん","ていぼう","てうち","ておくれ","てきとう","てくび","でこぼこ","てさぎょう","てさげ","てすり","てそう","てちがい","てちょう","てつがく","てつづき","でっぱ","てつぼう","てつや","でぬかえ","てぬき","てぬぐい","てのひら","てはい","てぶくろ","てふだ","てほどき","てほん","てまえ","てまきずし","てみじか","てみやげ","てらす","てれび","てわけ","てわたし","でんあつ","てんいん","てんかい","てんき","てんぐ","てんけん","てんごく","てんさい","てんし","てんすう","でんち","てんてき","てんとう","てんない","てんぷら","てんぼうだい","てんめつ","てんらんかい","でんりょく","でんわ","どあい","といれ","どうかん","とうきゅう","どうぐ","とうし","とうむぎ","とおい","とおか","とおく","とおす","とおる","とかい","とかす","ときおり","ときどき","とくい","とくしゅう","とくてん","とくに","とくべつ","とけい","とける","とこや","とさか","としょかん","とそう","とたん","とちゅう","とっきゅう","とっくん","とつぜん","とつにゅう","とどける","ととのえる","とない","となえる","となり","とのさま","とばす","どぶがわ","とほう","とまる","とめる","ともだち","ともる","どようび","とらえる","とんかつ","どんぶり","ないかく","ないこう","ないしょ","ないす","ないせん","ないそう","なおす","ながい","なくす","なげる","なこうど","なさけ","なたでここ","なっとう","なつやすみ","ななおし","なにごと","なにもの","なにわ","なのか","なふだ","なまいき","なまえ","なまみ","なみだ","なめらか","なめる","なやむ","ならう","ならび","ならぶ","なれる","なわとび","なわばり","にあう","にいがた","にうけ","におい","にかい","にがて","にきび","にくしみ","にくまん","にげる","にさんかたんそ","にしき","にせもの","にちじょう","にちようび","にっか","にっき","にっけい","にっこう","にっさん","にっしょく","にっすう","にっせき","にってい","になう","にほん","にまめ","にもつ","にやり","にゅういん","にりんしゃ","にわとり","にんい","にんか","にんき","にんげん","にんしき","にんずう","にんそう","にんたい","にんち","にんてい","にんにく","にんぷ","にんまり","にんむ","にんめい","にんよう","ぬいくぎ","ぬかす","ぬぐいとる","ぬぐう","ぬくもり","ぬすむ","ぬまえび","ぬめり","ぬらす","ぬんちゃく","ねあげ","ねいき","ねいる","ねいろ","ねぐせ","ねくたい","ねくら","ねこぜ","ねこむ","ねさげ","ねすごす","ねそべる","ねだん","ねつい","ねっしん","ねつぞう","ねったいぎょ","ねぶそく","ねふだ","ねぼう","ねほりはほり","ねまき","ねまわし","ねみみ","ねむい","ねむたい","ねもと","ねらう","ねわざ","ねんいり","ねんおし","ねんかん","ねんきん","ねんぐ","ねんざ","ねんし","ねんちゃく","ねんど","ねんぴ","ねんぶつ","ねんまつ","ねんりょう","ねんれい","のいず","のおづま","のがす","のきなみ","のこぎり","のこす","のこる","のせる","のぞく","のぞむ","のたまう","のちほど","のっく","のばす","のはら","のべる","のぼる","のみもの","のやま","のらいぬ","のらねこ","のりもの","のりゆき","のれん","のんき","ばあい","はあく","ばあさん","ばいか","ばいく","はいけん","はいご","はいしん","はいすい","はいせん","はいそう","はいち","ばいばい","はいれつ","はえる","はおる","はかい","ばかり","はかる","はくしゅ","はけん","はこぶ","はさみ","はさん","はしご","ばしょ","はしる","はせる","ぱそこん","はそん","はたん","はちみつ","はつおん","はっかく","はづき","はっきり","はっくつ","はっけん","はっこう","はっさん","はっしん","はったつ","はっちゅう","はってん","はっぴょう","はっぽう","はなす","はなび","はにかむ","はぶらし","はみがき","はむかう","はめつ","はやい","はやし","はらう","はろうぃん","はわい","はんい","はんえい","はんおん","はんかく","はんきょう","ばんぐみ","はんこ","はんしゃ","はんすう","はんだん","ぱんち","ぱんつ","はんてい","はんとし","はんのう","はんぱ","はんぶん","はんぺん","はんぼうき","はんめい","はんらん","はんろん","ひいき","ひうん","ひえる","ひかく","ひかり","ひかる","ひかん","ひくい","ひけつ","ひこうき","ひこく","ひさい","ひさしぶり","ひさん","びじゅつかん","ひしょ","ひそか","ひそむ","ひたむき","ひだり","ひたる","ひつぎ","ひっこし","ひっし","ひつじゅひん","ひっす","ひつぜん","ぴったり","ぴっちり","ひつよう","ひてい","ひとごみ","ひなまつり","ひなん","ひねる","ひはん","ひびく","ひひょう","ひほう","ひまわり","ひまん","ひみつ","ひめい","ひめじし","ひやけ","ひやす","ひよう","びょうき","ひらがな","ひらく","ひりつ","ひりょう","ひるま","ひるやすみ","ひれい","ひろい","ひろう","ひろき","ひろゆき","ひんかく","ひんけつ","ひんこん","ひんしゅ","ひんそう","ぴんち","ひんぱん","びんぼう","ふあん","ふいうち","ふうけい","ふうせん","ぷうたろう","ふうとう","ふうふ","ふえる","ふおん","ふかい","ふきん","ふくざつ","ふくぶくろ","ふこう","ふさい","ふしぎ","ふじみ","ふすま","ふせい","ふせぐ","ふそく","ぶたにく","ふたん","ふちょう","ふつう","ふつか","ふっかつ","ふっき","ふっこく","ぶどう","ふとる","ふとん","ふのう","ふはい","ふひょう","ふへん","ふまん","ふみん","ふめつ","ふめん","ふよう","ふりこ","ふりる","ふるい","ふんいき","ぶんがく","ぶんぐ","ふんしつ","ぶんせき","ふんそう","ぶんぽう","へいあん","へいおん","へいがい","へいき","へいげん","へいこう","へいさ","へいしゃ","へいせつ","へいそ","へいたく","へいてん","へいねつ","へいわ","へきが","へこむ","べにいろ","べにしょうが","へらす","へんかん","べんきょう","べんごし","へんさい","へんたい","べんり","ほあん","ほいく","ぼうぎょ","ほうこく","ほうそう","ほうほう","ほうもん","ほうりつ","ほえる","ほおん","ほかん","ほきょう","ぼきん","ほくろ","ほけつ","ほけん","ほこう","ほこる","ほしい","ほしつ","ほしゅ","ほしょう","ほせい","ほそい","ほそく","ほたて","ほたる","ぽちぶくろ","ほっきょく","ほっさ","ほったん","ほとんど","ほめる","ほんい","ほんき","ほんけ","ほんしつ","ほんやく","まいにち","まかい","まかせる","まがる","まける","まこと","まさつ","まじめ","ますく","まぜる","まつり","まとめ","まなぶ","まぬけ","まねく","まほう","まもる","まゆげ","まよう","まろやか","まわす","まわり","まわる","まんが","まんきつ","まんぞく","まんなか","みいら","みうち","みえる","みがく","みかた","みかん","みけん","みこん","みじかい","みすい","みすえる","みせる","みっか","みつかる","みつける","みてい","みとめる","みなと","みなみかさい","みねらる","みのう","みのがす","みほん","みもと","みやげ","みらい","みりょく","みわく","みんか","みんぞく","むいか","むえき","むえん","むかい","むかう","むかえ","むかし","むぎちゃ","むける","むげん","むさぼる","むしあつい","むしば","むじゅん","むしろ","むすう","むすこ","むすぶ","むすめ","むせる","むせん","むちゅう","むなしい","むのう","むやみ","むよう","むらさき","むりょう","むろん","めいあん","めいうん","めいえん","めいかく","めいきょく","めいさい","めいし","めいそう","めいぶつ","めいれい","めいわく","めぐまれる","めざす","めした","めずらしい","めだつ","めまい","めやす","めんきょ","めんせき","めんどう","もうしあげる","もうどうけん","もえる","もくし","もくてき","もくようび","もちろん","もどる","もらう","もんく","もんだい","やおや","やける","やさい","やさしい","やすい","やすたろう","やすみ","やせる","やそう","やたい","やちん","やっと","やっぱり","やぶる","やめる","ややこしい","やよい","やわらかい","ゆうき","ゆうびんきょく","ゆうべ","ゆうめい","ゆけつ","ゆしゅつ","ゆせん","ゆそう","ゆたか","ゆちゃく","ゆでる","ゆにゅう","ゆびわ","ゆらい","ゆれる","ようい","ようか","ようきゅう","ようじ","ようす","ようちえん","よかぜ","よかん","よきん","よくせい","よくぼう","よけい","よごれる","よさん","よしゅう","よそう","よそく","よっか","よてい","よどがわく","よねつ","よやく","よゆう","よろこぶ","よろしい","らいう","らくがき","らくご","らくさつ","らくだ","らしんばん","らせん","らぞく","らたい","らっか","られつ","りえき","りかい","りきさく","りきせつ","りくぐん","りくつ","りけん","りこう","りせい","りそう","りそく","りてん","りねん","りゆう","りゅうがく","りよう","りょうり","りょかん","りょくちゃ","りょこう","りりく","りれき","りろん","りんご","るいけい","るいさい","るいじ","るいせき","るすばん","るりがわら","れいかん","れいぎ","れいせい","れいぞうこ","れいとう","れいぼう","れきし","れきだい","れんあい","れんけい","れんこん","れんさい","れんしゅう","れんぞく","れんらく","ろうか","ろうご","ろうじん","ろうそく","ろくが","ろこつ","ろじうら","ろしゅつ","ろせん","ろてん","ろめん","ろれつ","ろんぎ","ろんぱ","ろんぶん","ろんり","わかす","わかめ","わかやま","わかれる","わしつ","わじまし","わすれもの","わらう","われる"]')},8013:e=>{"use strict";e.exports=JSON.parse('["가격","가끔","가난","가능","가득","가르침","가뭄","가방","가상","가슴","가운데","가을","가이드","가입","가장","가정","가족","가죽","각오","각자","간격","간부","간섭","간장","간접","간판","갈등","갈비","갈색","갈증","감각","감기","감소","감수성","감자","감정","갑자기","강남","강당","강도","강력히","강변","강북","강사","강수량","강아지","강원도","강의","강제","강조","같이","개구리","개나리","개방","개별","개선","개성","개인","객관적","거실","거액","거울","거짓","거품","걱정","건강","건물","건설","건조","건축","걸음","검사","검토","게시판","게임","겨울","견해","결과","결국","결론","결석","결승","결심","결정","결혼","경계","경고","경기","경력","경복궁","경비","경상도","경영","경우","경쟁","경제","경주","경찰","경치","경향","경험","계곡","계단","계란","계산","계속","계약","계절","계층","계획","고객","고구려","고궁","고급","고등학생","고무신","고민","고양이","고장","고전","고집","고춧가루","고통","고향","곡식","골목","골짜기","골프","공간","공개","공격","공군","공급","공기","공동","공무원","공부","공사","공식","공업","공연","공원","공장","공짜","공책","공통","공포","공항","공휴일","과목","과일","과장","과정","과학","관객","관계","관광","관념","관람","관련","관리","관습","관심","관점","관찰","광경","광고","광장","광주","괴로움","굉장히","교과서","교문","교복","교실","교양","교육","교장","교직","교통","교환","교훈","구경","구름","구멍","구별","구분","구석","구성","구속","구역","구입","구청","구체적","국가","국기","국내","국립","국물","국민","국수","국어","국왕","국적","국제","국회","군대","군사","군인","궁극적","권리","권위","권투","귀국","귀신","규정","규칙","균형","그날","그냥","그늘","그러나","그룹","그릇","그림","그제서야","그토록","극복","극히","근거","근교","근래","근로","근무","근본","근원","근육","근처","글씨","글자","금강산","금고","금년","금메달","금액","금연","금요일","금지","긍정적","기간","기관","기념","기능","기독교","기둥","기록","기름","기법","기본","기분","기쁨","기숙사","기술","기억","기업","기온","기운","기원","기적","기준","기침","기혼","기획","긴급","긴장","길이","김밥","김치","김포공항","깍두기","깜빡","깨달음","깨소금","껍질","꼭대기","꽃잎","나들이","나란히","나머지","나물","나침반","나흘","낙엽","난방","날개","날씨","날짜","남녀","남대문","남매","남산","남자","남편","남학생","낭비","낱말","내년","내용","내일","냄비","냄새","냇물","냉동","냉면","냉방","냉장고","넥타이","넷째","노동","노란색","노력","노인","녹음","녹차","녹화","논리","논문","논쟁","놀이","농구","농담","농민","농부","농업","농장","농촌","높이","눈동자","눈물","눈썹","뉴욕","느낌","늑대","능동적","능력","다방","다양성","다음","다이어트","다행","단계","단골","단독","단맛","단순","단어","단위","단점","단체","단추","단편","단풍","달걀","달러","달력","달리","닭고기","담당","담배","담요","담임","답변","답장","당근","당분간","당연히","당장","대규모","대낮","대단히","대답","대도시","대략","대량","대륙","대문","대부분","대신","대응","대장","대전","대접","대중","대책","대출","대충","대통령","대학","대한민국","대합실","대형","덩어리","데이트","도대체","도덕","도둑","도망","도서관","도심","도움","도입","도자기","도저히","도전","도중","도착","독감","독립","독서","독일","독창적","동화책","뒷모습","뒷산","딸아이","마누라","마늘","마당","마라톤","마련","마무리","마사지","마약","마요네즈","마을","마음","마이크","마중","마지막","마찬가지","마찰","마흔","막걸리","막내","막상","만남","만두","만세","만약","만일","만점","만족","만화","많이","말기","말씀","말투","맘대로","망원경","매년","매달","매력","매번","매스컴","매일","매장","맥주","먹이","먼저","먼지","멀리","메일","며느리","며칠","면담","멸치","명단","명령","명예","명의","명절","명칭","명함","모금","모니터","모델","모든","모범","모습","모양","모임","모조리","모집","모퉁이","목걸이","목록","목사","목소리","목숨","목적","목표","몰래","몸매","몸무게","몸살","몸속","몸짓","몸통","몹시","무관심","무궁화","무더위","무덤","무릎","무슨","무엇","무역","무용","무조건","무지개","무척","문구","문득","문법","문서","문제","문학","문화","물가","물건","물결","물고기","물론","물리학","물음","물질","물체","미국","미디어","미사일","미술","미역","미용실","미움","미인","미팅","미혼","민간","민족","민주","믿음","밀가루","밀리미터","밑바닥","바가지","바구니","바나나","바늘","바닥","바닷가","바람","바이러스","바탕","박물관","박사","박수","반대","반드시","반말","반발","반성","반응","반장","반죽","반지","반찬","받침","발가락","발걸음","발견","발달","발레","발목","발바닥","발생","발음","발자국","발전","발톱","발표","밤하늘","밥그릇","밥맛","밥상","밥솥","방금","방면","방문","방바닥","방법","방송","방식","방안","방울","방지","방학","방해","방향","배경","배꼽","배달","배드민턴","백두산","백색","백성","백인","백제","백화점","버릇","버섯","버튼","번개","번역","번지","번호","벌금","벌레","벌써","범위","범인","범죄","법률","법원","법적","법칙","베이징","벨트","변경","변동","변명","변신","변호사","변화","별도","별명","별일","병실","병아리","병원","보관","보너스","보라색","보람","보름","보상","보안","보자기","보장","보전","보존","보통","보편적","보험","복도","복사","복숭아","복습","볶음","본격적","본래","본부","본사","본성","본인","본질","볼펜","봉사","봉지","봉투","부근","부끄러움","부담","부동산","부문","부분","부산","부상","부엌","부인","부작용","부장","부정","부족","부지런히","부친","부탁","부품","부회장","북부","북한","분노","분량","분리","분명","분석","분야","분위기","분필","분홍색","불고기","불과","불교","불꽃","불만","불법","불빛","불안","불이익","불행","브랜드","비극","비난","비닐","비둘기","비디오","비로소","비만","비명","비밀","비바람","비빔밥","비상","비용","비율","비중","비타민","비판","빌딩","빗물","빗방울","빗줄기","빛깔","빨간색","빨래","빨리","사건","사계절","사나이","사냥","사람","사랑","사립","사모님","사물","사방","사상","사생활","사설","사슴","사실","사업","사용","사월","사장","사전","사진","사촌","사춘기","사탕","사투리","사흘","산길","산부인과","산업","산책","살림","살인","살짝","삼계탕","삼국","삼십","삼월","삼촌","상관","상금","상대","상류","상반기","상상","상식","상업","상인","상자","상점","상처","상추","상태","상표","상품","상황","새벽","색깔","색연필","생각","생명","생물","생방송","생산","생선","생신","생일","생활","서랍","서른","서명","서민","서비스","서양","서울","서적","서점","서쪽","서클","석사","석유","선거","선물","선배","선생","선수","선원","선장","선전","선택","선풍기","설거지","설날","설렁탕","설명","설문","설사","설악산","설치","설탕","섭씨","성공","성당","성명","성별","성인","성장","성적","성질","성함","세금","세미나","세상","세월","세종대왕","세탁","센터","센티미터","셋째","소규모","소극적","소금","소나기","소년","소득","소망","소문","소설","소속","소아과","소용","소원","소음","소중히","소지품","소질","소풍","소형","속담","속도","속옷","손가락","손길","손녀","손님","손등","손목","손뼉","손실","손질","손톱","손해","솔직히","솜씨","송아지","송이","송편","쇠고기","쇼핑","수건","수년","수단","수돗물","수동적","수면","수명","수박","수상","수석","수술","수시로","수업","수염","수영","수입","수준","수집","수출","수컷","수필","수학","수험생","수화기","숙녀","숙소","숙제","순간","순서","순수","순식간","순위","숟가락","술병","술집","숫자","스님","스물","스스로","스승","스웨터","스위치","스케이트","스튜디오","스트레스","스포츠","슬쩍","슬픔","습관","습기","승객","승리","승부","승용차","승진","시각","시간","시골","시금치","시나리오","시댁","시리즈","시멘트","시민","시부모","시선","시설","시스템","시아버지","시어머니","시월","시인","시일","시작","시장","시절","시점","시중","시즌","시집","시청","시합","시험","식구","식기","식당","식량","식료품","식물","식빵","식사","식생활","식초","식탁","식품","신고","신규","신념","신문","신발","신비","신사","신세","신용","신제품","신청","신체","신화","실감","실내","실력","실례","실망","실수","실습","실시","실장","실정","실질적","실천","실체","실컷","실태","실패","실험","실현","심리","심부름","심사","심장","심정","심판","쌍둥이","씨름","씨앗","아가씨","아나운서","아드님","아들","아쉬움","아스팔트","아시아","아울러","아저씨","아줌마","아직","아침","아파트","아프리카","아픔","아홉","아흔","악기","악몽","악수","안개","안경","안과","안내","안녕","안동","안방","안부","안주","알루미늄","알코올","암시","암컷","압력","앞날","앞문","애인","애정","액수","앨범","야간","야단","야옹","약간","약국","약속","약수","약점","약품","약혼녀","양념","양력","양말","양배추","양주","양파","어둠","어려움","어른","어젯밤","어쨌든","어쩌다가","어쩐지","언니","언덕","언론","언어","얼굴","얼른","얼음","얼핏","엄마","업무","업종","업체","엉덩이","엉망","엉터리","엊그제","에너지","에어컨","엔진","여건","여고생","여관","여군","여권","여대생","여덟","여동생","여든","여론","여름","여섯","여성","여왕","여인","여전히","여직원","여학생","여행","역사","역시","역할","연결","연구","연극","연기","연락","연설","연세","연속","연습","연애","연예인","연인","연장","연주","연출","연필","연합","연휴","열기","열매","열쇠","열심히","열정","열차","열흘","염려","엽서","영국","영남","영상","영양","영역","영웅","영원히","영하","영향","영혼","영화","옆구리","옆방","옆집","예감","예금","예방","예산","예상","예선","예술","예습","예식장","예약","예전","예절","예정","예컨대","옛날","오늘","오락","오랫동안","오렌지","오로지","오른발","오븐","오십","오염","오월","오전","오직","오징어","오페라","오피스텔","오히려","옥상","옥수수","온갖","온라인","온몸","온종일","온통","올가을","올림픽","올해","옷차림","와이셔츠","와인","완성","완전","왕비","왕자","왜냐하면","왠지","외갓집","외국","외로움","외삼촌","외출","외침","외할머니","왼발","왼손","왼쪽","요금","요일","요즘","요청","용기","용서","용어","우산","우선","우승","우연히","우정","우체국","우편","운동","운명","운반","운전","운행","울산","울음","움직임","웃어른","웃음","워낙","원고","원래","원서","원숭이","원인","원장","원피스","월급","월드컵","월세","월요일","웨이터","위반","위법","위성","위원","위험","위협","윗사람","유난히","유럽","유명","유물","유산","유적","유치원","유학","유행","유형","육군","육상","육십","육체","은행","음력","음료","음반","음성","음식","음악","음주","의견","의논","의문","의복","의식","의심","의외로","의욕","의원","의학","이것","이곳","이념","이놈","이달","이대로","이동","이렇게","이력서","이론적","이름","이민","이발소","이별","이불","이빨","이상","이성","이슬","이야기","이용","이웃","이월","이윽고","이익","이전","이중","이튿날","이틀","이혼","인간","인격","인공","인구","인근","인기","인도","인류","인물","인생","인쇄","인연","인원","인재","인종","인천","인체","인터넷","인하","인형","일곱","일기","일단","일대","일등","일반","일본","일부","일상","일생","일손","일요일","일월","일정","일종","일주일","일찍","일체","일치","일행","일회용","임금","임무","입대","입력","입맛","입사","입술","입시","입원","입장","입학","자가용","자격","자극","자동","자랑","자부심","자식","자신","자연","자원","자율","자전거","자정","자존심","자판","작가","작년","작성","작업","작용","작은딸","작품","잔디","잔뜩","잔치","잘못","잠깐","잠수함","잠시","잠옷","잠자리","잡지","장관","장군","장기간","장래","장례","장르","장마","장면","장모","장미","장비","장사","장소","장식","장애인","장인","장점","장차","장학금","재능","재빨리","재산","재생","재작년","재정","재채기","재판","재학","재활용","저것","저고리","저곳","저녁","저런","저렇게","저번","저울","저절로","저축","적극","적당히","적성","적용","적응","전개","전공","전기","전달","전라도","전망","전문","전반","전부","전세","전시","전용","전자","전쟁","전주","전철","전체","전통","전혀","전후","절대","절망","절반","절약","절차","점검","점수","점심","점원","점점","점차","접근","접시","접촉","젓가락","정거장","정도","정류장","정리","정말","정면","정문","정반대","정보","정부","정비","정상","정성","정오","정원","정장","정지","정치","정확히","제공","제과점","제대로","제목","제발","제법","제삿날","제안","제일","제작","제주도","제출","제품","제한","조각","조건","조금","조깅","조명","조미료","조상","조선","조용히","조절","조정","조직","존댓말","존재","졸업","졸음","종교","종로","종류","종소리","종업원","종종","종합","좌석","죄인","주관적","주름","주말","주머니","주먹","주문","주민","주방","주변","주식","주인","주일","주장","주전자","주택","준비","줄거리","줄기","줄무늬","중간","중계방송","중국","중년","중단","중독","중반","중부","중세","중소기업","중순","중앙","중요","중학교","즉석","즉시","즐거움","증가","증거","증권","증상","증세","지각","지갑","지경","지극히","지금","지급","지능","지름길","지리산","지방","지붕","지식","지역","지우개","지원","지적","지점","지진","지출","직선","직업","직원","직장","진급","진동","진로","진료","진리","진짜","진찰","진출","진통","진행","질문","질병","질서","짐작","집단","집안","집중","짜증","찌꺼기","차남","차라리","차량","차림","차별","차선","차츰","착각","찬물","찬성","참가","참기름","참새","참석","참여","참외","참조","찻잔","창가","창고","창구","창문","창밖","창작","창조","채널","채점","책가방","책방","책상","책임","챔피언","처벌","처음","천국","천둥","천장","천재","천천히","철도","철저히","철학","첫날","첫째","청년","청바지","청소","청춘","체계","체력","체온","체육","체중","체험","초등학생","초반","초밥","초상화","초순","초여름","초원","초저녁","초점","초청","초콜릿","촛불","총각","총리","총장","촬영","최근","최상","최선","최신","최악","최종","추석","추억","추진","추천","추측","축구","축소","축제","축하","출근","출발","출산","출신","출연","출입","출장","출판","충격","충고","충돌","충분히","충청도","취업","취직","취향","치약","친구","친척","칠십","칠월","칠판","침대","침묵","침실","칫솔","칭찬","카메라","카운터","칼국수","캐릭터","캠퍼스","캠페인","커튼","컨디션","컬러","컴퓨터","코끼리","코미디","콘서트","콜라","콤플렉스","콩나물","쾌감","쿠데타","크림","큰길","큰딸","큰소리","큰아들","큰어머니","큰일","큰절","클래식","클럽","킬로","타입","타자기","탁구","탁자","탄생","태권도","태양","태풍","택시","탤런트","터널","터미널","테니스","테스트","테이블","텔레비전","토론","토마토","토요일","통계","통과","통로","통신","통역","통일","통장","통제","통증","통합","통화","퇴근","퇴원","퇴직금","튀김","트럭","특급","특별","특성","특수","특징","특히","튼튼히","티셔츠","파란색","파일","파출소","판결","판단","판매","판사","팔십","팔월","팝송","패션","팩스","팩시밀리","팬티","퍼센트","페인트","편견","편의","편지","편히","평가","평균","평생","평소","평양","평일","평화","포스터","포인트","포장","포함","표면","표정","표준","표현","품목","품질","풍경","풍속","풍습","프랑스","프린터","플라스틱","피곤","피망","피아노","필름","필수","필요","필자","필통","핑계","하느님","하늘","하드웨어","하룻밤","하반기","하숙집","하순","하여튼","하지만","하천","하품","하필","학과","학교","학급","학기","학년","학력","학번","학부모","학비","학생","학술","학습","학용품","학원","학위","학자","학점","한계","한글","한꺼번에","한낮","한눈","한동안","한때","한라산","한마디","한문","한번","한복","한식","한여름","한쪽","할머니","할아버지","할인","함께","함부로","합격","합리적","항공","항구","항상","항의","해결","해군","해답","해당","해물","해석","해설","해수욕장","해안","핵심","핸드백","햄버거","햇볕","햇살","행동","행복","행사","행운","행위","향기","향상","향수","허락","허용","헬기","현관","현금","현대","현상","현실","현장","현재","현지","혈액","협력","형부","형사","형수","형식","형제","형태","형편","혜택","호기심","호남","호랑이","호박","호텔","호흡","혹시","홀로","홈페이지","홍보","홍수","홍차","화면","화분","화살","화요일","화장","화학","확보","확인","확장","확정","환갑","환경","환영","환율","환자","활기","활동","활발히","활용","활짝","회견","회관","회복","회색","회원","회장","회전","횟수","횡단보도","효율적","후반","후춧가루","훈련","훨씬","휴식","휴일","흉내","흐름","흑백","흑인","흔적","흔히","흥미","흥분","희곡","희망","희생","흰색","힘껏"]')},1945:e=>{"use strict";e.exports=JSON.parse('["abacate","abaixo","abalar","abater","abduzir","abelha","aberto","abismo","abotoar","abranger","abreviar","abrigar","abrupto","absinto","absoluto","absurdo","abutre","acabado","acalmar","acampar","acanhar","acaso","aceitar","acelerar","acenar","acervo","acessar","acetona","achatar","acidez","acima","acionado","acirrar","aclamar","aclive","acolhida","acomodar","acoplar","acordar","acumular","acusador","adaptar","adega","adentro","adepto","adequar","aderente","adesivo","adeus","adiante","aditivo","adjetivo","adjunto","admirar","adorar","adquirir","adubo","adverso","advogado","aeronave","afastar","aferir","afetivo","afinador","afivelar","aflito","afluente","afrontar","agachar","agarrar","agasalho","agenciar","agilizar","agiota","agitado","agora","agradar","agreste","agrupar","aguardar","agulha","ajoelhar","ajudar","ajustar","alameda","alarme","alastrar","alavanca","albergue","albino","alcatra","aldeia","alecrim","alegria","alertar","alface","alfinete","algum","alheio","aliar","alicate","alienar","alinhar","aliviar","almofada","alocar","alpiste","alterar","altitude","alucinar","alugar","aluno","alusivo","alvo","amaciar","amador","amarelo","amassar","ambas","ambiente","ameixa","amenizar","amido","amistoso","amizade","amolador","amontoar","amoroso","amostra","amparar","ampliar","ampola","anagrama","analisar","anarquia","anatomia","andaime","anel","anexo","angular","animar","anjo","anomalia","anotado","ansioso","anterior","anuidade","anunciar","anzol","apagador","apalpar","apanhado","apego","apelido","apertada","apesar","apetite","apito","aplauso","aplicada","apoio","apontar","aposta","aprendiz","aprovar","aquecer","arame","aranha","arara","arcada","ardente","areia","arejar","arenito","aresta","argiloso","argola","arma","arquivo","arraial","arrebate","arriscar","arroba","arrumar","arsenal","arterial","artigo","arvoredo","asfaltar","asilado","aspirar","assador","assinar","assoalho","assunto","astral","atacado","atadura","atalho","atarefar","atear","atender","aterro","ateu","atingir","atirador","ativo","atoleiro","atracar","atrevido","atriz","atual","atum","auditor","aumentar","aura","aurora","autismo","autoria","autuar","avaliar","avante","avaria","avental","avesso","aviador","avisar","avulso","axila","azarar","azedo","azeite","azulejo","babar","babosa","bacalhau","bacharel","bacia","bagagem","baiano","bailar","baioneta","bairro","baixista","bajular","baleia","baliza","balsa","banal","bandeira","banho","banir","banquete","barato","barbado","baronesa","barraca","barulho","baseado","bastante","batata","batedor","batida","batom","batucar","baunilha","beber","beijo","beirada","beisebol","beldade","beleza","belga","beliscar","bendito","bengala","benzer","berimbau","berlinda","berro","besouro","bexiga","bezerro","bico","bicudo","bienal","bifocal","bifurcar","bigorna","bilhete","bimestre","bimotor","biologia","biombo","biosfera","bipolar","birrento","biscoito","bisneto","bispo","bissexto","bitola","bizarro","blindado","bloco","bloquear","boato","bobagem","bocado","bocejo","bochecha","boicotar","bolada","boletim","bolha","bolo","bombeiro","bonde","boneco","bonita","borbulha","borda","boreal","borracha","bovino","boxeador","branco","brasa","braveza","breu","briga","brilho","brincar","broa","brochura","bronzear","broto","bruxo","bucha","budismo","bufar","bule","buraco","busca","busto","buzina","cabana","cabelo","cabide","cabo","cabrito","cacau","cacetada","cachorro","cacique","cadastro","cadeado","cafezal","caiaque","caipira","caixote","cajado","caju","calafrio","calcular","caldeira","calibrar","calmante","calota","camada","cambista","camisa","camomila","campanha","camuflar","canavial","cancelar","caneta","canguru","canhoto","canivete","canoa","cansado","cantar","canudo","capacho","capela","capinar","capotar","capricho","captador","capuz","caracol","carbono","cardeal","careca","carimbar","carneiro","carpete","carreira","cartaz","carvalho","casaco","casca","casebre","castelo","casulo","catarata","cativar","caule","causador","cautelar","cavalo","caverna","cebola","cedilha","cegonha","celebrar","celular","cenoura","censo","centeio","cercar","cerrado","certeiro","cerveja","cetim","cevada","chacota","chaleira","chamado","chapada","charme","chatice","chave","chefe","chegada","cheiro","cheque","chicote","chifre","chinelo","chocalho","chover","chumbo","chutar","chuva","cicatriz","ciclone","cidade","cidreira","ciente","cigana","cimento","cinto","cinza","ciranda","circuito","cirurgia","citar","clareza","clero","clicar","clone","clube","coado","coagir","cobaia","cobertor","cobrar","cocada","coelho","coentro","coeso","cogumelo","coibir","coifa","coiote","colar","coleira","colher","colidir","colmeia","colono","coluna","comando","combinar","comentar","comitiva","comover","complexo","comum","concha","condor","conectar","confuso","congelar","conhecer","conjugar","consumir","contrato","convite","cooperar","copeiro","copiador","copo","coquetel","coragem","cordial","corneta","coronha","corporal","correio","cortejo","coruja","corvo","cosseno","costela","cotonete","couro","couve","covil","cozinha","cratera","cravo","creche","credor","creme","crer","crespo","criada","criminal","crioulo","crise","criticar","crosta","crua","cruzeiro","cubano","cueca","cuidado","cujo","culatra","culminar","culpar","cultura","cumprir","cunhado","cupido","curativo","curral","cursar","curto","cuspir","custear","cutelo","damasco","datar","debater","debitar","deboche","debulhar","decalque","decimal","declive","decote","decretar","dedal","dedicado","deduzir","defesa","defumar","degelo","degrau","degustar","deitado","deixar","delator","delegado","delinear","delonga","demanda","demitir","demolido","dentista","depenado","depilar","depois","depressa","depurar","deriva","derramar","desafio","desbotar","descanso","desenho","desfiado","desgaste","desigual","deslize","desmamar","desova","despesa","destaque","desviar","detalhar","detentor","detonar","detrito","deusa","dever","devido","devotado","dezena","diagrama","dialeto","didata","difuso","digitar","dilatado","diluente","diminuir","dinastia","dinheiro","diocese","direto","discreta","disfarce","disparo","disquete","dissipar","distante","ditador","diurno","diverso","divisor","divulgar","dizer","dobrador","dolorido","domador","dominado","donativo","donzela","dormente","dorsal","dosagem","dourado","doutor","drenagem","drible","drogaria","duelar","duende","dueto","duplo","duquesa","durante","duvidoso","eclodir","ecoar","ecologia","edificar","edital","educado","efeito","efetivar","ejetar","elaborar","eleger","eleitor","elenco","elevador","eliminar","elogiar","embargo","embolado","embrulho","embutido","emenda","emergir","emissor","empatia","empenho","empinado","empolgar","emprego","empurrar","emulador","encaixe","encenado","enchente","encontro","endeusar","endossar","enfaixar","enfeite","enfim","engajado","engenho","englobar","engomado","engraxar","enguia","enjoar","enlatar","enquanto","enraizar","enrolado","enrugar","ensaio","enseada","ensino","ensopado","entanto","enteado","entidade","entortar","entrada","entulho","envergar","enviado","envolver","enxame","enxerto","enxofre","enxuto","epiderme","equipar","ereto","erguido","errata","erva","ervilha","esbanjar","esbelto","escama","escola","escrita","escuta","esfinge","esfolar","esfregar","esfumado","esgrima","esmalte","espanto","espelho","espiga","esponja","espreita","espumar","esquerda","estaca","esteira","esticar","estofado","estrela","estudo","esvaziar","etanol","etiqueta","euforia","europeu","evacuar","evaporar","evasivo","eventual","evidente","evoluir","exagero","exalar","examinar","exato","exausto","excesso","excitar","exclamar","executar","exemplo","exibir","exigente","exonerar","expandir","expelir","expirar","explanar","exposto","expresso","expulsar","externo","extinto","extrato","fabricar","fabuloso","faceta","facial","fada","fadiga","faixa","falar","falta","familiar","fandango","fanfarra","fantoche","fardado","farelo","farinha","farofa","farpa","fartura","fatia","fator","favorita","faxina","fazenda","fechado","feijoada","feirante","felino","feminino","fenda","feno","fera","feriado","ferrugem","ferver","festejar","fetal","feudal","fiapo","fibrose","ficar","ficheiro","figurado","fileira","filho","filme","filtrar","firmeza","fisgada","fissura","fita","fivela","fixador","fixo","flacidez","flamingo","flanela","flechada","flora","flutuar","fluxo","focal","focinho","fofocar","fogo","foguete","foice","folgado","folheto","forjar","formiga","forno","forte","fosco","fossa","fragata","fralda","frango","frasco","fraterno","freira","frente","fretar","frieza","friso","fritura","fronha","frustrar","fruteira","fugir","fulano","fuligem","fundar","fungo","funil","furador","furioso","futebol","gabarito","gabinete","gado","gaiato","gaiola","gaivota","galega","galho","galinha","galocha","ganhar","garagem","garfo","gargalo","garimpo","garoupa","garrafa","gasoduto","gasto","gata","gatilho","gaveta","gazela","gelado","geleia","gelo","gemada","gemer","gemido","generoso","gengiva","genial","genoma","genro","geologia","gerador","germinar","gesso","gestor","ginasta","gincana","gingado","girafa","girino","glacial","glicose","global","glorioso","goela","goiaba","golfe","golpear","gordura","gorjeta","gorro","gostoso","goteira","governar","gracejo","gradual","grafite","gralha","grampo","granada","gratuito","graveto","graxa","grego","grelhar","greve","grilo","grisalho","gritaria","grosso","grotesco","grudado","grunhido","gruta","guache","guarani","guaxinim","guerrear","guiar","guincho","guisado","gula","guloso","guru","habitar","harmonia","haste","haver","hectare","herdar","heresia","hesitar","hiato","hibernar","hidratar","hiena","hino","hipismo","hipnose","hipoteca","hoje","holofote","homem","honesto","honrado","hormonal","hospedar","humorado","iate","ideia","idoso","ignorado","igreja","iguana","ileso","ilha","iludido","iluminar","ilustrar","imagem","imediato","imenso","imersivo","iminente","imitador","imortal","impacto","impedir","implante","impor","imprensa","impune","imunizar","inalador","inapto","inativo","incenso","inchar","incidir","incluir","incolor","indeciso","indireto","indutor","ineficaz","inerente","infantil","infestar","infinito","inflamar","informal","infrator","ingerir","inibido","inicial","inimigo","injetar","inocente","inodoro","inovador","inox","inquieto","inscrito","inseto","insistir","inspetor","instalar","insulto","intacto","integral","intimar","intocado","intriga","invasor","inverno","invicto","invocar","iogurte","iraniano","ironizar","irreal","irritado","isca","isento","isolado","isqueiro","italiano","janeiro","jangada","janta","jararaca","jardim","jarro","jasmim","jato","javali","jazida","jejum","joaninha","joelhada","jogador","joia","jornal","jorrar","jovem","juba","judeu","judoca","juiz","julgador","julho","jurado","jurista","juro","justa","labareda","laboral","lacre","lactante","ladrilho","lagarta","lagoa","laje","lamber","lamentar","laminar","lampejo","lanche","lapidar","lapso","laranja","lareira","largura","lasanha","lastro","lateral","latido","lavanda","lavoura","lavrador","laxante","lazer","lealdade","lebre","legado","legendar","legista","leigo","leiloar","leitura","lembrete","leme","lenhador","lentilha","leoa","lesma","leste","letivo","letreiro","levar","leveza","levitar","liberal","libido","liderar","ligar","ligeiro","limitar","limoeiro","limpador","linda","linear","linhagem","liquidez","listagem","lisura","litoral","livro","lixa","lixeira","locador","locutor","lojista","lombo","lona","longe","lontra","lorde","lotado","loteria","loucura","lousa","louvar","luar","lucidez","lucro","luneta","lustre","lutador","luva","macaco","macete","machado","macio","madeira","madrinha","magnata","magreza","maior","mais","malandro","malha","malote","maluco","mamilo","mamoeiro","mamute","manada","mancha","mandato","manequim","manhoso","manivela","manobrar","mansa","manter","manusear","mapeado","maquinar","marcador","maresia","marfim","margem","marinho","marmita","maroto","marquise","marreco","martelo","marujo","mascote","masmorra","massagem","mastigar","matagal","materno","matinal","matutar","maxilar","medalha","medida","medusa","megafone","meiga","melancia","melhor","membro","memorial","menino","menos","mensagem","mental","merecer","mergulho","mesada","mesclar","mesmo","mesquita","mestre","metade","meteoro","metragem","mexer","mexicano","micro","migalha","migrar","milagre","milenar","milhar","mimado","minerar","minhoca","ministro","minoria","miolo","mirante","mirtilo","misturar","mocidade","moderno","modular","moeda","moer","moinho","moita","moldura","moleza","molho","molinete","molusco","montanha","moqueca","morango","morcego","mordomo","morena","mosaico","mosquete","mostarda","motel","motim","moto","motriz","muda","muito","mulata","mulher","multar","mundial","munido","muralha","murcho","muscular","museu","musical","nacional","nadador","naja","namoro","narina","narrado","nascer","nativa","natureza","navalha","navegar","navio","neblina","nebuloso","negativa","negociar","negrito","nervoso","neta","neural","nevasca","nevoeiro","ninar","ninho","nitidez","nivelar","nobreza","noite","noiva","nomear","nominal","nordeste","nortear","notar","noticiar","noturno","novelo","novilho","novo","nublado","nudez","numeral","nupcial","nutrir","nuvem","obcecado","obedecer","objetivo","obrigado","obscuro","obstetra","obter","obturar","ocidente","ocioso","ocorrer","oculista","ocupado","ofegante","ofensiva","oferenda","oficina","ofuscado","ogiva","olaria","oleoso","olhar","oliveira","ombro","omelete","omisso","omitir","ondulado","oneroso","ontem","opcional","operador","oponente","oportuno","oposto","orar","orbitar","ordem","ordinal","orfanato","orgasmo","orgulho","oriental","origem","oriundo","orla","ortodoxo","orvalho","oscilar","ossada","osso","ostentar","otimismo","ousadia","outono","outubro","ouvido","ovelha","ovular","oxidar","oxigenar","pacato","paciente","pacote","pactuar","padaria","padrinho","pagar","pagode","painel","pairar","paisagem","palavra","palestra","palheta","palito","palmada","palpitar","pancada","panela","panfleto","panqueca","pantanal","papagaio","papelada","papiro","parafina","parcial","pardal","parede","partida","pasmo","passado","pastel","patamar","patente","patinar","patrono","paulada","pausar","peculiar","pedalar","pedestre","pediatra","pedra","pegada","peitoral","peixe","pele","pelicano","penca","pendurar","peneira","penhasco","pensador","pente","perceber","perfeito","pergunta","perito","permitir","perna","perplexo","persiana","pertence","peruca","pescado","pesquisa","pessoa","petiscar","piada","picado","piedade","pigmento","pilastra","pilhado","pilotar","pimenta","pincel","pinguim","pinha","pinote","pintar","pioneiro","pipoca","piquete","piranha","pires","pirueta","piscar","pistola","pitanga","pivete","planta","plaqueta","platina","plebeu","plumagem","pluvial","pneu","poda","poeira","poetisa","polegada","policiar","poluente","polvilho","pomar","pomba","ponderar","pontaria","populoso","porta","possuir","postal","pote","poupar","pouso","povoar","praia","prancha","prato","praxe","prece","predador","prefeito","premiar","prensar","preparar","presilha","pretexto","prevenir","prezar","primata","princesa","prisma","privado","processo","produto","profeta","proibido","projeto","prometer","propagar","prosa","protetor","provador","publicar","pudim","pular","pulmonar","pulseira","punhal","punir","pupilo","pureza","puxador","quadra","quantia","quarto","quase","quebrar","queda","queijo","quente","querido","quimono","quina","quiosque","rabanada","rabisco","rachar","racionar","radial","raiar","rainha","raio","raiva","rajada","ralado","ramal","ranger","ranhura","rapadura","rapel","rapidez","raposa","raquete","raridade","rasante","rascunho","rasgar","raspador","rasteira","rasurar","ratazana","ratoeira","realeza","reanimar","reaver","rebaixar","rebelde","rebolar","recado","recente","recheio","recibo","recordar","recrutar","recuar","rede","redimir","redonda","reduzida","reenvio","refinar","refletir","refogar","refresco","refugiar","regalia","regime","regra","reinado","reitor","rejeitar","relativo","remador","remendo","remorso","renovado","reparo","repelir","repleto","repolho","represa","repudiar","requerer","resenha","resfriar","resgatar","residir","resolver","respeito","ressaca","restante","resumir","retalho","reter","retirar","retomada","retratar","revelar","revisor","revolta","riacho","rica","rigidez","rigoroso","rimar","ringue","risada","risco","risonho","robalo","rochedo","rodada","rodeio","rodovia","roedor","roleta","romano","roncar","rosado","roseira","rosto","rota","roteiro","rotina","rotular","rouco","roupa","roxo","rubro","rugido","rugoso","ruivo","rumo","rupestre","russo","sabor","saciar","sacola","sacudir","sadio","safira","saga","sagrada","saibro","salada","saleiro","salgado","saliva","salpicar","salsicha","saltar","salvador","sambar","samurai","sanar","sanfona","sangue","sanidade","sapato","sarda","sargento","sarjeta","saturar","saudade","saxofone","sazonal","secar","secular","seda","sedento","sediado","sedoso","sedutor","segmento","segredo","segundo","seiva","seleto","selvagem","semanal","semente","senador","senhor","sensual","sentado","separado","sereia","seringa","serra","servo","setembro","setor","sigilo","silhueta","silicone","simetria","simpatia","simular","sinal","sincero","singular","sinopse","sintonia","sirene","siri","situado","soberano","sobra","socorro","sogro","soja","solda","soletrar","solteiro","sombrio","sonata","sondar","sonegar","sonhador","sono","soprano","soquete","sorrir","sorteio","sossego","sotaque","soterrar","sovado","sozinho","suavizar","subida","submerso","subsolo","subtrair","sucata","sucesso","suco","sudeste","sufixo","sugador","sugerir","sujeito","sulfato","sumir","suor","superior","suplicar","suposto","suprimir","surdina","surfista","surpresa","surreal","surtir","suspiro","sustento","tabela","tablete","tabuada","tacho","tagarela","talher","talo","talvez","tamanho","tamborim","tampa","tangente","tanto","tapar","tapioca","tardio","tarefa","tarja","tarraxa","tatuagem","taurino","taxativo","taxista","teatral","tecer","tecido","teclado","tedioso","teia","teimar","telefone","telhado","tempero","tenente","tensor","tentar","termal","terno","terreno","tese","tesoura","testado","teto","textura","texugo","tiara","tigela","tijolo","timbrar","timidez","tingido","tinteiro","tiragem","titular","toalha","tocha","tolerar","tolice","tomada","tomilho","tonel","tontura","topete","tora","torcido","torneio","torque","torrada","torto","tostar","touca","toupeira","toxina","trabalho","tracejar","tradutor","trafegar","trajeto","trama","trancar","trapo","traseiro","tratador","travar","treino","tremer","trepidar","trevo","triagem","tribo","triciclo","tridente","trilogia","trindade","triplo","triturar","triunfal","trocar","trombeta","trova","trunfo","truque","tubular","tucano","tudo","tulipa","tupi","turbo","turma","turquesa","tutelar","tutorial","uivar","umbigo","unha","unidade","uniforme","urologia","urso","urtiga","urubu","usado","usina","usufruir","vacina","vadiar","vagaroso","vaidoso","vala","valente","validade","valores","vantagem","vaqueiro","varanda","vareta","varrer","vascular","vasilha","vassoura","vazar","vazio","veado","vedar","vegetar","veicular","veleiro","velhice","veludo","vencedor","vendaval","venerar","ventre","verbal","verdade","vereador","vergonha","vermelho","verniz","versar","vertente","vespa","vestido","vetorial","viaduto","viagem","viajar","viatura","vibrador","videira","vidraria","viela","viga","vigente","vigiar","vigorar","vilarejo","vinco","vinheta","vinil","violeta","virada","virtude","visitar","visto","vitral","viveiro","vizinho","voador","voar","vogal","volante","voleibol","voltagem","volumoso","vontade","vulto","vuvuzela","xadrez","xarope","xeque","xeretar","xerife","xingar","zangado","zarpar","zebu","zelador","zombar","zoologia","zumbido"]')},659:e=>{"use strict";e.exports=JSON.parse('["ábaco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","acción","aceite","acelga","acento","aceptar","ácido","aclarar","acné","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","aéreo","afectar","afición","afinar","afirmar","ágil","agitar","agonía","agosto","agotar","agregar","agrio","agua","agudo","águila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacrán","alambre","alarma","alba","álbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodón","aliado","aliento","alivio","alma","almeja","almíbar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","ámbar","ámbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","andén","anemia","ángulo","anillo","ánimo","anís","anotar","antena","antiguo","antojo","anual","anular","anuncio","añadir","añejo","año","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","araña","arar","árbitro","árbol","arbusto","archivo","arco","arder","ardilla","arduo","área","árido","aries","armonía","arnés","aroma","arpa","arpón","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","áspero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","ático","atleta","átomo","atraer","atroz","atún","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avión","aviso","ayer","ayuda","ayuno","azafrán","azar","azote","azúcar","azufre","azul","baba","babor","bache","bahía","baile","bajar","balanza","balcón","balde","bambú","banco","banda","baño","barba","barco","barniz","barro","báscula","bastón","basura","batalla","batería","batir","batuta","baúl","bazar","bebé","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsái","borde","borrar","bosque","bote","botín","bóveda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufón","búho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzón","caballo","cabeza","cabina","cabra","cacao","cadáver","cadena","caer","café","caída","caimán","caja","cajón","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","cáncer","candil","canela","canguro","canica","canto","caña","cañón","caoba","caos","capaz","capitán","capote","captar","capucha","cara","carbón","cárcel","careta","carga","cariño","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","célebre","celoso","célula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","césped","cetro","chacal","chaleco","champú","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclón","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","ciprés","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","clínica","cobre","cocción","cochino","cocina","coco","código","codo","cofre","coger","cohete","cojín","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","cómodo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazón","corbata","corcho","cordón","corona","correr","coser","cosmos","costa","cráneo","cráter","crear","crecer","creído","crema","cría","crimen","cripta","crisis","cromo","crónica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupón","cúpula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","dátil","deber","débil","década","decir","dedo","defensa","definir","dejar","delfín","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvío","detalle","detener","deuda","día","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difícil","digno","dilema","diluir","dinero","directo","dirigir","disco","diseño","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","dragón","droga","ducha","duda","duelo","dueño","dulce","dúo","duque","durar","dureza","duro","ébano","ebrio","echar","eco","ecuador","edad","edición","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","élite","elixir","elogio","eludir","embudo","emitir","emoción","empate","empeño","empleo","empresa","enano","encargo","enchufe","encía","enemigo","enero","enfado","enfermo","engaño","enigma","enlace","enorme","enredo","ensayo","enseñar","entero","entrar","envase","envío","época","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espía","esposa","espuma","esquí","estar","este","estilo","estufa","etapa","eterno","ética","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","éxito","experto","explicar","exponer","extremo","fábrica","fábula","fachada","fácil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","faraón","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fértil","fervor","festín","fiable","fianza","fiar","fibra","ficción","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flúor","fobia","foca","fogata","fogón","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","frágil","franja","frase","fraude","freír","freno","fresa","frío","frito","fruta","fuego","fuente","fuerza","fuga","fumar","función","funda","furgón","furia","fusil","fútbol","futuro","gacela","gafas","gaita","gajo","gala","galería","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavilán","gemelo","gemir","gen","género","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gráfico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","grúa","grueso","grumo","grupo","guante","guapo","guardia","guerra","guía","guiño","guion","guiso","guitarra","gusano","gustar","haber","hábil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazaña","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","héroe","hervir","hielo","hierro","hígado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","húmedo","humilde","humo","hundir","huracán","hurto","icono","ideal","idioma","ídolo","iglesia","iglú","igual","ilegal","ilusión","imagen","imán","imitar","impar","imperio","imponer","impulso","incapaz","índice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","interés","íntimo","intuir","inútil","invierno","ira","iris","ironía","isla","islote","jabalí","jabón","jamón","jarabe","jardín","jarra","jaula","jazmín","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","júpiter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladrón","lagarto","lágrima","laguna","laico","lamer","lámina","lámpara","lana","lancha","langosta","lanza","lápiz","largo","larva","lástima","lata","látex","latir","laurel","lavar","lazo","leal","lección","leche","lector","leer","legión","legumbre","lejano","lengua","lento","leña","león","leopardo","lesión","letal","letra","leve","leyenda","libertad","libro","licor","líder","lidiar","lienzo","liga","ligero","lima","límite","limón","limpio","lince","lindo","línea","lingote","lino","linterna","líquido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","loción","loco","locura","lógica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","maíz","maldad","maleta","malla","malo","mamá","mambo","mamut","manco","mando","manejar","manga","maniquí","manjar","mano","manso","manta","mañana","mapa","máquina","mar","marco","marea","marfil","margen","marido","mármol","marrón","martes","marzo","masa","máscara","masivo","matar","materia","matiz","matriz","máximo","mayor","mazorca","mecha","medalla","medio","médula","mejilla","mejor","melena","melón","memoria","menor","mensaje","mente","menú","mercado","merengue","mérito","mes","mesón","meta","meter","método","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millón","mimo","mina","minero","mínimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","moción","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","moño","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","móvil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","muñeca","mural","muro","músculo","museo","musgo","música","muslo","nácar","nación","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","náusea","naval","nave","navidad","necio","néctar","negar","negocio","negro","neón","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","niñez","niño","nítido","nivel","nobleza","noche","nómina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","núcleo","nudillo","nudo","nuera","nueve","nuez","nulo","número","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","océano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oído","oír","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opción","ópera","opinar","oponer","optar","óptica","opuesto","oración","orador","oral","órbita","orca","orden","oreja","órgano","orgía","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadía","oscuro","osezno","oso","ostra","otoño","otro","oveja","óvulo","óxido","oxígeno","oyente","ozono","pacto","padre","paella","página","pago","país","pájaro","palabra","palco","paleta","pálido","palma","paloma","palpar","pan","panal","pánico","pantera","pañuelo","papá","papel","papilla","paquete","parar","parcela","pared","parir","paro","párpado","parque","párrafo","parte","pasar","paseo","pasión","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peatón","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldaño","pelea","peligro","pellejo","pelo","peluca","pena","pensar","peñón","peón","peor","pepino","pequeño","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pésimo","pestaña","pétalo","petróleo","pez","pezuña","picar","pichón","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","piña","piojo","pipa","pirata","pisar","piscina","piso","pista","pitón","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesía","poeta","polen","policía","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porción","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","príncipe","prisión","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","próximo","prueba","público","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmón","pulpo","pulso","puma","punto","puñal","puño","pupa","pupila","puré","quedar","queja","quemar","querer","queso","quieto","química","quince","quitar","rábano","rabia","rabo","ración","radical","raíz","rama","rampa","rancho","rango","rapaz","rápido","rapto","rasgo","raspa","rato","rayo","raza","razón","reacción","realidad","rebaño","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refrán","refugio","regalo","regir","regla","regreso","rehén","reino","reír","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","revés","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","rígido","rigor","rincón","riñón","río","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubí","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sábado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmón","salón","salsa","salto","salud","salvar","samba","sanción","sandía","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sartén","sastre","satán","sauna","saxofón","sección","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","señal","señor","separar","sepia","sequía","ser","serie","sermón","servir","sesenta","sesión","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","sílaba","silbar","silencio","silla","símbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","sólido","soltar","solución","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","sostén","sótano","suave","subir","suceso","sudor","suegra","suelo","sueño","suerte","sufrir","sujeto","sultán","sumar","superar","suplir","suponer","supremo","sur","surco","sureño","surgir","susto","sutil","tabaco","tabique","tabla","tabú","taco","tacto","tajo","talar","talco","talento","talla","talón","tamaño","tambor","tango","tanque","tapa","tapete","tapia","tapón","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazón","teatro","techo","tecla","técnica","tejado","tejer","tejido","tela","teléfono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teoría","terapia","terco","término","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburón","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","tímido","timo","tinta","tío","típico","tipo","tira","tirón","titán","títere","título","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","tórax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","tóxico","trabajo","tractor","traer","tráfico","trago","traje","tramo","trance","trato","trauma","trazar","trébol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tubería","tubo","tuerto","tumba","tumor","túnel","túnica","turbina","turismo","turno","tutor","ubicar","úlcera","umbral","unidad","unir","universo","uno","untar","uña","urbano","urbe","urgente","urna","usar","usuario","útil","utopía","uva","vaca","vacío","vacuna","vagar","vago","vaina","vajilla","vale","válido","valle","valor","válvula","vampiro","vara","variar","varón","vaso","vecino","vector","vehículo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vía","viaje","vibrar","vicio","víctima","vida","vídeo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","viñedo","violín","viral","virgo","virtud","visor","víspera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volcán","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"]')},8597:e=>{"use strict";e.exports={i8:"6.5.4"}},8652:e=>{"use strict";e.exports=JSON.parse('{"FIELDS":[["Generic",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":0,"type":"Unknown"}],["Invalid",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":-1,"type":"Unknown"}],["ObjectEndMarker",{"isSerialized":false,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"STObject"}],["ArrayEndMarker",{"isSerialized":false,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"STArray"}],["hash",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":257,"type":"Hash256"}],["index",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":258,"type":"Hash256"}],["taker_gets_funded",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":258,"type":"Amount"}],["taker_pays_funded",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":259,"type":"Amount"}],["LedgerEntryType",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"UInt16"}],["TransactionType",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"UInt16"}],["SignerWeight",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":3,"type":"UInt16"}],["TransferFee",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"UInt16"}],["Version",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":16,"type":"UInt16"}],["HookStateChangeCount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":17,"type":"UInt16"}],["HookEmitCount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":18,"type":"UInt16"}],["HookExecutionIndex",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":19,"type":"UInt16"}],["HookApiVersion",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":20,"type":"UInt16"}],["NetworkID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"UInt32"}],["Flags",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"UInt32"}],["SourceTag",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":3,"type":"UInt32"}],["Sequence",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"UInt32"}],["PreviousTxnLgrSeq",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":5,"type":"UInt32"}],["LedgerSequence",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":6,"type":"UInt32"}],["CloseTime",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":7,"type":"UInt32"}],["ParentCloseTime",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":8,"type":"UInt32"}],["SigningTime",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":9,"type":"UInt32"}],["Expiration",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":10,"type":"UInt32"}],["TransferRate",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":11,"type":"UInt32"}],["WalletSize",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":12,"type":"UInt32"}],["OwnerCount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":13,"type":"UInt32"}],["DestinationTag",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":14,"type":"UInt32"}],["HighQualityIn",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":16,"type":"UInt32"}],["HighQualityOut",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":17,"type":"UInt32"}],["LowQualityIn",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":18,"type":"UInt32"}],["LowQualityOut",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":19,"type":"UInt32"}],["QualityIn",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":20,"type":"UInt32"}],["QualityOut",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":21,"type":"UInt32"}],["StampEscrow",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":22,"type":"UInt32"}],["BondAmount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":23,"type":"UInt32"}],["LoadFee",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":24,"type":"UInt32"}],["OfferSequence",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":25,"type":"UInt32"}],["FirstLedgerSequence",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":26,"type":"UInt32"}],["LastLedgerSequence",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":27,"type":"UInt32"}],["TransactionIndex",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":28,"type":"UInt32"}],["OperationLimit",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":29,"type":"UInt32"}],["ReferenceFeeUnits",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":30,"type":"UInt32"}],["ReserveBase",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":31,"type":"UInt32"}],["ReserveIncrement",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":32,"type":"UInt32"}],["SetFlag",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":33,"type":"UInt32"}],["ClearFlag",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":34,"type":"UInt32"}],["SignerQuorum",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":35,"type":"UInt32"}],["CancelAfter",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":36,"type":"UInt32"}],["FinishAfter",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":37,"type":"UInt32"}],["SignerListID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":38,"type":"UInt32"}],["SettleDelay",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":39,"type":"UInt32"}],["TicketCount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":40,"type":"UInt32"}],["TicketSequence",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":41,"type":"UInt32"}],["NFTokenTaxon",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":42,"type":"UInt32"}],["MintedNFTokens",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":43,"type":"UInt32"}],["BurnedNFTokens",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":44,"type":"UInt32"}],["HookStateCount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":45,"type":"UInt32"}],["EmitGeneration",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":46,"type":"UInt32"}],["LockCount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":49,"type":"UInt32"}],["FirstNFTokenSequence",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":50,"type":"UInt32"}],["ImportSequence",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":97,"type":"UInt32"}],["RewardTime",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":98,"type":"UInt32"}],["RewardLgrFirst",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":99,"type":"UInt32"}],["RewardLgrLast",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":100,"type":"UInt32"}],["IndexNext",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"UInt64"}],["IndexPrevious",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"UInt64"}],["BookNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":3,"type":"UInt64"}],["OwnerNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"UInt64"}],["BaseFee",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":5,"type":"UInt64"}],["ExchangeRate",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":6,"type":"UInt64"}],["LowNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":7,"type":"UInt64"}],["HighNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":8,"type":"UInt64"}],["DestinationNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":9,"type":"UInt64"}],["Cookie",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":10,"type":"UInt64"}],["ServerVersion",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":11,"type":"UInt64"}],["NFTokenOfferNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":12,"type":"UInt64"}],["EmitBurden",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":13,"type":"UInt64"}],["HookInstructionCount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":17,"type":"UInt64"}],["HookReturnCode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":18,"type":"UInt64"}],["ReferenceCount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":19,"type":"UInt64"}],["RewardAccumulator",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":100,"type":"UInt64"}],["EmailHash",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"Hash128"}],["LedgerHash",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"Hash256"}],["ParentHash",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"Hash256"}],["TransactionHash",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":3,"type":"Hash256"}],["AccountHash",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"Hash256"}],["PreviousTxnID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":5,"type":"Hash256"}],["LedgerIndex",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":6,"type":"Hash256"}],["WalletLocator",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":7,"type":"Hash256"}],["RootIndex",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":8,"type":"Hash256"}],["AccountTxnID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":9,"type":"Hash256"}],["NFTokenID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":10,"type":"Hash256"}],["EmitParentTxnID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":11,"type":"Hash256"}],["EmitNonce",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":12,"type":"Hash256"}],["EmitHookHash",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":13,"type":"Hash256"}],["BookDirectory",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":16,"type":"Hash256"}],["InvoiceID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":17,"type":"Hash256"}],["Nickname",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":18,"type":"Hash256"}],["Amendment",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":19,"type":"Hash256"}],["HookOn",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":20,"type":"Hash256"}],["Digest",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":21,"type":"Hash256"}],["Channel",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":22,"type":"Hash256"}],["ConsensusHash",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":23,"type":"Hash256"}],["CheckID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":24,"type":"Hash256"}],["ValidatedHash",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":25,"type":"Hash256"}],["PreviousPageMin",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":26,"type":"Hash256"}],["NextPageMin",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":27,"type":"Hash256"}],["NFTokenBuyOffer",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":28,"type":"Hash256"}],["NFTokenSellOffer",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":29,"type":"Hash256"}],["HookStateKey",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":30,"type":"Hash256"}],["HookHash",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":31,"type":"Hash256"}],["HookNamespace",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":32,"type":"Hash256"}],["HookSetTxnID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":33,"type":"Hash256"}],["OfferID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":34,"type":"Hash256"}],["EscrowID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":35,"type":"Hash256"}],["URITokenID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":36,"type":"Hash256"}],["EmittedTxnID",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":97,"type":"Hash256"}],["GovernanceMarks",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":98,"type":"Hash256"}],["GovernanceFlags",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":99,"type":"Hash256"}],["hash",{"isSerialized":true,"isSigningField":false,"isVLEncoded":false,"nth":1,"type":"Hash256"}],["index",{"isSerialized":true,"isSigningField":false,"isVLEncoded":false,"nth":2,"type":"Hash256"}],["Amount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"Amount"}],["Balance",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"Amount"}],["LimitAmount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":3,"type":"Amount"}],["TakerPays",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"Amount"}],["TakerGets",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":5,"type":"Amount"}],["LowLimit",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":6,"type":"Amount"}],["HighLimit",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":7,"type":"Amount"}],["Fee",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":8,"type":"Amount"}],["SendMax",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":9,"type":"Amount"}],["DeliverMin",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":10,"type":"Amount"}],["MinimumOffer",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":16,"type":"Amount"}],["RippleEscrow",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":17,"type":"Amount"}],["DeliveredAmount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":18,"type":"Amount"}],["NFTokenBrokerFee",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":19,"type":"Amount"}],["HookCallbackFee",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":20,"type":"Amount"}],["LockedBalance",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":21,"type":"Amount"}],["BaseFeeDrops",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":22,"type":"Amount"}],["ReserveBaseDrops",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":23,"type":"Amount"}],["ReserveIncrementDrops",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":24,"type":"Amount"}],["PublicKey",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":1,"type":"Blob"}],["MessageKey",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":2,"type":"Blob"}],["SigningPubKey",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":3,"type":"Blob"}],["TxnSignature",{"isSerialized":true,"isSigningField":false,"isVLEncoded":true,"nth":4,"type":"Blob"}],["URI",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":5,"type":"Blob"}],["Signature",{"isSerialized":true,"isSigningField":false,"isVLEncoded":true,"nth":6,"type":"Blob"}],["Domain",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":7,"type":"Blob"}],["FundCode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":8,"type":"Blob"}],["RemoveCode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":9,"type":"Blob"}],["ExpireCode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":10,"type":"Blob"}],["CreateCode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":11,"type":"Blob"}],["MemoType",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":12,"type":"Blob"}],["MemoData",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":13,"type":"Blob"}],["MemoFormat",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":14,"type":"Blob"}],["Fulfillment",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":16,"type":"Blob"}],["Condition",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":17,"type":"Blob"}],["MasterSignature",{"isSerialized":true,"isSigningField":false,"isVLEncoded":true,"nth":18,"type":"Blob"}],["UNLModifyValidator",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":19,"type":"Blob"}],["ValidatorToDisable",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":20,"type":"Blob"}],["ValidatorToReEnable",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":21,"type":"Blob"}],["HookStateData",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":22,"type":"Blob"}],["HookReturnString",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":23,"type":"Blob"}],["HookParameterName",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":24,"type":"Blob"}],["HookParameterValue",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":25,"type":"Blob"}],["Blob",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":26,"type":"Blob"}],["Account",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":1,"type":"AccountID"}],["Owner",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":2,"type":"AccountID"}],["Destination",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":3,"type":"AccountID"}],["Issuer",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":4,"type":"AccountID"}],["Authorize",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":5,"type":"AccountID"}],["Unauthorize",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":6,"type":"AccountID"}],["RegularKey",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":8,"type":"AccountID"}],["NFTokenMinter",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":9,"type":"AccountID"}],["EmitCallback",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":10,"type":"AccountID"}],["HookAccount",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":16,"type":"AccountID"}],["TransactionMetaData",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"STObject"}],["CreatedNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":3,"type":"STObject"}],["DeletedNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"STObject"}],["ModifiedNode",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":5,"type":"STObject"}],["PreviousFields",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":6,"type":"STObject"}],["FinalFields",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":7,"type":"STObject"}],["NewFields",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":8,"type":"STObject"}],["TemplateEntry",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":9,"type":"STObject"}],["Memo",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":10,"type":"STObject"}],["SignerEntry",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":11,"type":"STObject"}],["NFToken",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":12,"type":"STObject"}],["EmitDetails",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":13,"type":"STObject"}],["Hook",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":14,"type":"STObject"}],["Signer",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":16,"type":"STObject"}],["Majority",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":18,"type":"STObject"}],["DisabledValidator",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":19,"type":"STObject"}],["EmittedTxn",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":20,"type":"STObject"}],["HookExecution",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":21,"type":"STObject"}],["HookDefinition",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":22,"type":"STObject"}],["HookParameter",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":23,"type":"STObject"}],["HookGrant",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":24,"type":"STObject"}],["HookEmission",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":93,"type":"STObject"}],["ImportVLKey",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":94,"type":"STObject"}],["ActiveValidator",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":95,"type":"STObject"}],["GenesisMint",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":96,"type":"STObject"}],["Signers",{"isSerialized":true,"isSigningField":false,"isVLEncoded":false,"nth":3,"type":"STArray"}],["SignerEntries",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"STArray"}],["Template",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":5,"type":"STArray"}],["Necessary",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":6,"type":"STArray"}],["Sufficient",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":7,"type":"STArray"}],["AffectedNodes",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":8,"type":"STArray"}],["Memos",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":9,"type":"STArray"}],["NFTokens",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":10,"type":"STArray"}],["Hooks",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":11,"type":"STArray"}],["Majorities",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":16,"type":"STArray"}],["DisabledValidators",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":17,"type":"STArray"}],["HookExecutions",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":18,"type":"STArray"}],["HookParameters",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":19,"type":"STArray"}],["HookGrants",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":20,"type":"STArray"}],["HookEmissions",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":93,"type":"STArray"}],["ImportVLKeys",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":94,"type":"STArray"}],["ActiveValidators",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":95,"type":"STArray"}],["GenesisMints",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":96,"type":"STArray"}],["CloseResolution",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"UInt8"}],["Method",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"UInt8"}],["TransactionResult",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":3,"type":"UInt8"}],["TickSize",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":16,"type":"UInt8"}],["UNLModifyDisabling",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":17,"type":"UInt8"}],["HookResult",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":18,"type":"UInt8"}],["TakerPaysCurrency",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"Hash160"}],["TakerPaysIssuer",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":2,"type":"Hash160"}],["TakerGetsCurrency",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":3,"type":"Hash160"}],["TakerGetsIssuer",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":4,"type":"Hash160"}],["Paths",{"isSerialized":true,"isSigningField":true,"isVLEncoded":false,"nth":1,"type":"PathSet"}],["Indexes",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":1,"type":"Vector256"}],["Hashes",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":2,"type":"Vector256"}],["Amendments",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":3,"type":"Vector256"}],["NFTokenOffers",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":4,"type":"Vector256"}],["HookNamespaces",{"isSerialized":true,"isSigningField":true,"isVLEncoded":true,"nth":5,"type":"Vector256"}],["Transaction",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":1,"type":"Transaction"}],["LedgerEntry",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":1,"type":"LedgerEntry"}],["Validation",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":1,"type":"Validation"}],["Metadata",{"isSerialized":false,"isSigningField":false,"isVLEncoded":false,"nth":1,"type":"Metadata"}]],"LEDGER_ENTRY_TYPES":{"AccountRoot":97,"Amendments":102,"Any":0,"Check":67,"Child":7378,"Contract":99,"DepositPreauth":112,"DirectoryNode":100,"EmittedTxn":69,"Escrow":117,"FeeSettings":115,"GeneratorMap":103,"Hook":72,"HookDefinition":68,"HookState":118,"ImportVlseq":73,"Invalid":-1,"LedgerHashes":104,"NFTokenOffer":55,"NFTokenPage":80,"NegativeUNL":78,"Nickname":110,"Offer":111,"PayChannel":120,"RippleState":114,"SignerList":83,"Ticket":84,"UNLReport":82,"URIToken":85},"TRANSACTION_RESULTS":{"tecAMM_BALANCE":163,"tecAMM_FAILED_BID":167,"tecAMM_FAILED_DEPOSIT":164,"tecAMM_FAILED_VOTE":168,"tecAMM_FAILED_WITHDRAW":165,"tecAMM_INVALID_TOKENS":166,"tecAMM_UNFUNDED":162,"tecBAD_XCHAIN_TRANSFER_ISSUE":171,"tecCANT_ACCEPT_OWN_NFTOKEN_OFFER":158,"tecCLAIM":100,"tecCRYPTOCONDITION_ERROR":146,"tecDIR_FULL":121,"tecDST_TAG_NEEDED":143,"tecDUPLICATE":149,"tecEXPIRED":148,"tecFAILED_PROCESSING":105,"tecFROZEN":137,"tecHAS_OBLIGATIONS":151,"tecHOOK_REJECTED":153,"tecINSUFFICIENT_FUNDS":159,"tecINSUFFICIENT_PAYMENT":161,"tecINSUFFICIENT_RESERVE":141,"tecINSUFF_FEE":136,"tecINSUF_RESERVE_LINE":122,"tecINSUF_RESERVE_OFFER":123,"tecINTERNAL":144,"tecINVARIANT_FAILED":147,"tecKILLED":150,"tecLAST_POSSIBLE_ENTRY":255,"tecMAX_SEQUENCE_REACHED":154,"tecNEED_MASTER_KEY":142,"tecNFTOKEN_BUY_SELL_MISMATCH":156,"tecNFTOKEN_OFFER_TYPE_MISMATCH":157,"tecNO_ALTERNATIVE_KEY":130,"tecNO_AUTH":134,"tecNO_DST":124,"tecNO_DST_INSUF_XRP":125,"tecNO_ENTRY":140,"tecNO_ISSUER":133,"tecNO_LINE":135,"tecNO_LINE_INSUF_RESERVE":126,"tecNO_LINE_REDUNDANT":127,"tecNO_PERMISSION":139,"tecNO_REGULAR_KEY":131,"tecNO_SUITABLE_NFTOKEN_PAGE":155,"tecNO_TARGET":138,"tecOBJECT_NOT_FOUND":160,"tecOVERSIZE":145,"tecOWNERS":132,"tecPATH_DRY":128,"tecPATH_PARTIAL":101,"tecPRECISION_LOSS":170,"tecREQUIRES_FLAG":169,"tecTOO_SOON":152,"tecUNFUNDED":129,"tecUNFUNDED_ADD":102,"tecUNFUNDED_OFFER":103,"tecUNFUNDED_PAYMENT":104,"tecXCHAIN_ACCOUNT_CREATE_PAST":182,"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY":183,"tecXCHAIN_BAD_CLAIM_ID":173,"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR":186,"tecXCHAIN_CLAIM_NO_QUORUM":174,"tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE":176,"tecXCHAIN_INSUFF_CREATE_AMOUNT":181,"tecXCHAIN_NO_CLAIM_ID":172,"tecXCHAIN_NO_SIGNERS_LIST":179,"tecXCHAIN_PAYMENT_FAILED":184,"tecXCHAIN_PROOF_UNKNOWN_KEY":175,"tecXCHAIN_REWARD_MISMATCH":178,"tecXCHAIN_SELF_COMMIT":185,"tecXCHAIN_SENDING_ACCOUNT_MISMATCH":180,"tecXCHAIN_WRONG_CHAIN":177,"tefALREADY":-198,"tefBAD_ADD_AUTH":-197,"tefBAD_AUTH":-196,"tefBAD_AUTH_MASTER":-183,"tefBAD_LEDGER":-195,"tefBAD_QUORUM":-185,"tefBAD_SIGNATURE":-186,"tefCREATED":-194,"tefEXCEPTION":-193,"tefFAILURE":-199,"tefINTERNAL":-192,"tefINVARIANT_FAILED":-182,"tefMASTER_DISABLED":-188,"tefMAX_LEDGER":-187,"tefNFTOKEN_IS_NOT_TRANSFERABLE":-179,"tefNOT_MULTI_SIGNING":-184,"tefNO_AUTH_REQUIRED":-191,"tefNO_TICKET":-180,"tefPAST_IMPORT_SEQ":-178,"tefPAST_IMPORT_VL_SEQ":-177,"tefPAST_SEQ":-190,"tefTOO_BIG":-181,"tefWRONG_PRIOR":-189,"telBAD_DOMAIN":-398,"telBAD_PATH_COUNT":-397,"telBAD_PUBLIC_KEY":-396,"telCAN_NOT_QUEUE":-392,"telCAN_NOT_QUEUE_BALANCE":-391,"telCAN_NOT_QUEUE_BLOCKED":-389,"telCAN_NOT_QUEUE_BLOCKS":-390,"telCAN_NOT_QUEUE_FEE":-388,"telCAN_NOT_QUEUE_FULL":-387,"telCAN_NOT_QUEUE_IMPORT":-381,"telFAILED_PROCESSING":-395,"telIMPORT_VL_KEY_NOT_RECOGNISED":-382,"telINSUF_FEE_P":-394,"telLOCAL_ERROR":-399,"telNETWORK_ID_MAKES_TX_NON_CANONICAL":-384,"telNON_LOCAL_EMITTED_TXN":-383,"telNO_DST_PARTIAL":-393,"telREQUIRES_NETWORK_ID":-385,"telWRONG_NETWORK":-386,"temAMM_BAD_TOKENS":-261,"temBAD_AMOUNT":-298,"temBAD_CURRENCY":-297,"temBAD_EXPIRATION":-296,"temBAD_FEE":-295,"temBAD_ISSUER":-294,"temBAD_LIMIT":-293,"temBAD_NFTOKEN_TRANSFER_FEE":-262,"temBAD_OFFER":-292,"temBAD_PATH":-291,"temBAD_PATH_LOOP":-290,"temBAD_QUORUM":-271,"temBAD_REGKEY":-289,"temBAD_SEND_XRP_LIMIT":-288,"temBAD_SEND_XRP_MAX":-287,"temBAD_SEND_XRP_NO_DIRECT":-286,"temBAD_SEND_XRP_PARTIAL":-285,"temBAD_SEND_XRP_PATHS":-284,"temBAD_SEQUENCE":-283,"temBAD_SIGNATURE":-282,"temBAD_SIGNER":-272,"temBAD_SRC_ACCOUNT":-281,"temBAD_TICK_SIZE":-269,"temBAD_TRANSFER_RATE":-280,"temBAD_WEIGHT":-270,"temCANNOT_PREAUTH_SELF":-267,"temDISABLED":-273,"temDST_IS_SRC":-279,"temDST_NEEDED":-278,"temHOOK_DATA_TOO_LARGE":-253,"temHOOK_REJECTED":-252,"temINVALID":-277,"temINVALID_ACCOUNT_ID":-268,"temINVALID_COUNT":-266,"temINVALID_FLAG":-276,"temMALFORMED":-299,"temREDUNDANT":-275,"temRIPPLE_EMPTY":-274,"temSEQ_AND_TICKET":-263,"temUNCERTAIN":-265,"temUNKNOWN":-264,"temXCHAIN_BAD_PROOF":-259,"temXCHAIN_BRIDGE_BAD_ISSUES":-258,"temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT":-256,"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT":-255,"temXCHAIN_BRIDGE_NONDOOR_OWNER":-257,"temXCHAIN_EQUAL_DOOR_ACCOUNTS":-260,"temXCHAIN_TOO_MANY_ATTESTATIONS":-254,"terFUNDS_SPENT":-98,"terINSUF_FEE_B":-97,"terLAST":-91,"terNO_ACCOUNT":-96,"terNO_AMM":-87,"terNO_AUTH":-95,"terNO_HOOK":-86,"terNO_LINE":-94,"terNO_RIPPLE":-90,"terOWNERS":-93,"terPRE_SEQ":-92,"terPRE_TICKET":-88,"terQUEUED":-89,"terRETRY":-99,"tesSUCCESS":0},"TRANSACTION_TYPES":{"AccountDelete":21,"AccountSet":3,"Amendment":100,"CheckCancel":18,"CheckCash":17,"CheckCreate":16,"ClaimReward":98,"Contract":9,"DepositPreauth":19,"EmitFailure":103,"EscrowCancel":4,"EscrowCreate":1,"EscrowFinish":2,"Fee":101,"GenesisMint":96,"Import":97,"Invalid":-1,"Invoke":99,"NFTokenAcceptOffer":29,"NFTokenBurn":26,"NFTokenCancelOffer":28,"NFTokenCreateOffer":27,"NFTokenMint":25,"NicknameSet":6,"OfferCancel":8,"OfferCreate":7,"Payment":0,"PaymentChannelClaim":15,"PaymentChannelCreate":13,"PaymentChannelFund":14,"SetHook":22,"SetRegularKey":5,"SignerListSet":12,"SpinalTap":11,"TicketCreate":10,"TrustSet":20,"UNLModify":102,"UNLReport":104,"URITokenBurn":46,"URITokenBuy":47,"URITokenCancelSellOffer":49,"URITokenCreateSellOffer":48,"URITokenMint":45},"TYPES":{"AccountID":8,"Amount":6,"Blob":7,"Done":-1,"Hash128":4,"Hash160":17,"Hash256":5,"LedgerEntry":10002,"Metadata":10004,"NotPresent":0,"PathSet":18,"STArray":15,"STObject":14,"Transaction":10001,"UInt16":1,"UInt192":21,"UInt32":2,"UInt384":22,"UInt512":23,"UInt64":3,"UInt8":16,"UInt96":20,"Unknown":-2,"Validation":10003,"Vector256":19},"hash":"E127FEF2404DEBCB69F4B06088825A877D5FCBC927F9551957C8ADEE86F8D4B7"}')}};var __webpack_module_cache__={};function __nccwpck_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var r=__webpack_module_cache__[e]={id:e,loaded:false,exports:{}};var n=true;try{__webpack_modules__[e].call(r.exports,r,r.exports,__nccwpck_require__);n=false}finally{if(n)delete __webpack_module_cache__[e]}r.loaded=true;return r.exports}(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__={};(()=>{const{Client:e}=__nccwpck_require__(73);const{writeFileSync:t,existsSync:r}=__nccwpck_require__(7147);const n=__nccwpck_require__(7282);async function main(){try{const i=n.argv[2]=="external"?"../../":"./";const a=`${i}node_modules/xrpl-binary-codec/dist/enums/definitions.json`;const o=`${i}node_modules/ripple-binary-codec/dist/enums/definitions.json`;const s="wss://hooks-testnet-v3.xrpl-labs.com";const u=new e(s,{connectionTimeout:6e4});await u.connect();try{const e=await u.request({command:"server_definitions"});if(e?.result){if(r(a)){t(a,JSON.stringify(e.result,null,4));console.log("Server definition update was successful in xrpl-binary-codec.")}if(r(o)){t(o,JSON.stringify(e.result,null,4));console.log("Server definition update was successful in ripple-binary-codec.")}}else console.log("No server result was found.")}catch(e){console.error(e);console.log("Server definition update was failed.")}finally{u.disconnect()}}catch(e){console.error(e);console.log("Server connectivity problem occurred.")}}main()})();module.exports=__webpack_exports__})();
|