PageSourceSearch

https://cloud.taosdata.com/js/crypto-browserify-CcMhSEAR.js

js taosdata.com collected 2026-10-03 22:49:06 UTC 493,055 bytes, 22 lines download raw bytes

vendor: 4,548 bytes, line 1
1import{a as __toCommonJS,n as __esmMin,r as __exportAll,t as __commonJSMin}from"./rolldown-runtime-ChpBd9eV.js";import{L as global,Qn as init_dist$1,R as init_dist,Zn as global$1}from"./vue-vendor-CpGg53Mz.js";import{n as process$1,t as init_dist$2}from"./dist-DoWFzmm1.js";import{n as init_dist$3,t as Buffer}from"./dist-qj-eSCsq.js";import{t as process$1$1}from"./dist-C-Pir0_1.js";init_dist();function bind(n,l){return function(){return n.apply(l,arguments)}}var{toString}=Object.prototype,{getPrototypeOf}=Object,{iterator,toStringTag}=Symbol,kindOf=(n=>l=>{const a=toString.call(l);return n[a]||(n[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=n=>(n=n.toLowerCase(),l=>kindOf(l)===n),typeOfTest=n=>l=>typeof l===n,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(n){return n!==null&&!isUndefined(n)&&n.constructor!==null&&!isUndefined(n.constructor)&&isFunction$1(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}var isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(n){let l;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?l=ArrayBuffer.isView(n):l=n&&n.buffer&&isArrayBuffer(n.buffer),l}var isString=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=n=>n!==null&&typeof n=="object",isBoolean=n=>n===!0||n===!1,isPlainObject=n=>{if(kindOf(n)!=="object")return!1;const l=getPrototypeOf(n);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(toStringTag in n)&&!(iterator in n)},isEmptyObject=n=>{if(!isObject(n)||isBuffer(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=n=>isObject(n)&&isFunction$1(n.pipe),isFormData=n=>{let l;return n&&(typeof FormData=="function"&&n instanceof FormData||isFunction$1(n.append)&&((l=kindOf(n))==="formdata"||l==="object"&&isFunction$1(n.toString)&&n.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(n,l,{allOwnKeys:a=!1}={}){if(n===null||typeof n>"u")return;let d,u;if(typeof n!="object"&&(n=[n]),isArray(n))for(d=0,u=n.length;d<u;d++)l.call(null,n[d],d,n);else{if(isBuffer(n))return;const y=a?Object.getOwnPropertyNames(n):Object.keys(n),e=y.length;let s;for(d=0;d<e;d++)s=y[d],l.call(null,n[s],s,n)}}function findKey(n,l){if(isBuffer(n))return null;l=l.toLowerCase();const a=Object.keys(n);let d=a.length,u;for(;d-- >0;)if(u=a[d],l===u.toLowerCase())return u;return null}var _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=n=>!isUndefined(n)&&n!==_global;function merge(){const{caseless:n,skipUndefined:l}=isContextDefined(this)&&this||{},a={},d=(u,y)=>{if(y==="__proto__"||y==="constructor"||y==="prototype")return;const e=n&&findKey(a,y)||y;isPlainObject(a[e])&&isPlainObject(u)?a[e]=merge(a[e],u):isPlainObject(u)?a[e]=merge({},u):isArray(u)?a[e]=u.slice():(!l||!isUndefined(u))&&(a[e]=u)};for(let u=0,y=arguments.length;u<y;u++)arguments[u]&&forEach(arguments[u],d);return a}var extend=(n,l,a,{allOwnKeys:d}={})=>(forEach(l,(u,y)=>{a&&isFunction$1(u)?Object.defineProperty(n,y,{value:bind(u,a),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(n,y,{value:u,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:d}),n),stripBOM=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),inherits=(n,l,a,d)=>{n.prototype=Object.create(l.prototype,d),Object.defineProperty(n.prototype,"constructor",{value:n,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(n,"super",{value:l.prototype}),a&&Object.assign(n.prototype,a)},toFlatObject=(n,l,a,d)=>{let u,y,e;const s={};if(l=l||{},n==null)return l;do{for(u=Object.getOwnPropertyNames(n),y=u.length;y-- >0;)e=u[y],(!d||d(e,n,l))&&!s[e]&&(l[e]=n[e],s[e]=!0);n=a!==!1&&getPrototypeOf(n)}while(n&&(!a||a(n,l))&&n!==Object.prototype);return l},endsWith=(n,l,a)=>{n=String(n),(a===void 0||a>n.length)&&(a=n.length),a-=l.length;const d=n.indexOf(l,a);return d!==-1&&d===a},toArray=n=>{if(!n)return null;if(isArray(n))return n;let l=n.length;if(!isNumber(l))return null;const a=new Array(l);for(;l-- >0;)a[l]=n[l];return a},isTypedArray=(n=>l=>n&&l instanceof n)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEac
vendor: 12,467 bytes, lines 1-2
1hEntry=(n,l)=>{const a=(n&&n[iterator]).call(n);let d;for(;(d=a.next())&&!d.done;){const u=d.value;l.call(n,u[0],u[1])}},matchAll=(n,l)=>{let a;const d=[];for(;(a=n.exec(l))!==null;)d.push(a);return d},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,d,u){return d.toUpperCase()+u}),hasOwnProperty=(({hasOwnProperty:n})=>(l,a)=>n.call(l,a))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(n,l)=>{const a=Object.getOwnPropertyDescriptors(n),d={};forEach(a,(u,y)=>{let e;(e=l(u,y,n))!==!1&&(d[y]=e||u)}),Object.defineProperties(n,d)},freezeMethods=n=>{reduceDescriptors(n,(l,a)=>{if(isFunction$1(n)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const d=n[a];if(isFunction$1(d)){if(l.enumerable=!1,"writable"in l){l.writable=!1;return}l.set||(l.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},toObjectSet=(n,l)=>{const a={},d=u=>{u.forEach(y=>{a[y]=!0})};return isArray(n)?d(n):d(String(n).split(l)),a},noop=()=>{},toFiniteNumber=(n,l)=>n!=null&&Number.isFinite(n=+n)?n:l;function isSpecCompliantForm(n){return!!(n&&isFunction$1(n.append)&&n[toStringTag]==="FormData"&&n[iterator])}var toJSONObject=n=>{const l=new Array(10),a=(d,u)=>{if(isObject(d)){if(l.indexOf(d)>=0)return;if(isBuffer(d))return d;if(!("toJSON"in d)){l[u]=d;const y=isArray(d)?[]:{};return forEach(d,(e,s)=>{const p=a(e,u+1);!isUndefined(p)&&(y[s]=p)}),l[u]=void 0,y}}return d};return a(n,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=n=>n&&(isObject(n)||isFunction$1(n))&&isFunction$1(n.then)&&isFunction$1(n.catch),_setImmediate=((n,l)=>n?setImmediate:l?((a,d)=>(_global.addEventListener("message",({source:u,data:y})=>{u===_global&&y===a&&d.length&&d.shift()()},!1),u=>{d.push(u),_global.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process$1$1<"u"&&process$1$1.nextTick||_setImmediate,isIterable=n=>n!=null&&isFunction$1(n[iterator]),utils_default={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject,isPlainObject,isEmptyObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap,isIterable};init_dist$3();var AxiosError=class dr extends Error{static from(l,a,d,u,y,e){const s=new dr(l.message,a||l.code,d,u,y);return s.cause=l,s.name=l.name,e&&Object.assign(s,e),s}constructor(l,a,d,u,y){super(l),this.name="AxiosError",this.isAxiosError=!0,a&&(this.code=a),d&&(this.config=d),u&&(this.request=u),y&&(this.response=y,this.status=y.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils_default.toJSONObject(this.config),code:this.code,status:this.status}}};AxiosError.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";AxiosError.ERR_BAD_OPTION="ERR_BAD_OPTION";AxiosError.ECONNABORTED="ECONNABORTED";AxiosError.ETIMEDOUT="ETIMEDOUT";AxiosError.ERR_NETWORK="ERR_NETWORK";AxiosError.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";AxiosError.ERR_DEPRECATED="ERR_DEPRECATED";AxiosError.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";AxiosError.ERR_BAD_REQUEST="ERR_BAD_REQUEST";AxiosError.ERR_CANCELED="ERR_CANCELED";AxiosError.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";AxiosError.ERR_INVALID_URL="ERR_INVALID_URL";function isVisitable(n){return utils_default.isPlainObject(n)||utils_default.isArray(n)}function removeBrackets(n){return utils_default.endsWith(n,"[]")?n.slice(0,-2):n}function renderKey(n,l,a){return n?n.concat(l).map(function(u,y){return u=removeBrackets(u),!a&&y?"["+u+"]":u}).join(a?".":""):l}function isFlatArray(n){return utils_default.isArray(n)&&!n.some(isVisitable)}var predicates=utils_default.toFlatObject(utils_default,{},null,function(l){return/^is[A-Z]/.test(l)});function toFormData(n,l,a){if(!utils_default.isObject(n))throw new TypeError("target must be an object");l=l||new FormData,a=utils_default.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(i,v){return!utils_default.isUndefined(v[i])});const d=a.metaTokens,u=a.visitor||h,y=a.dots,e=a.indexes,s=(a.Blob||typeof Blob<"u"&&Blob)&&utils_default.isSpecCompliantForm(l);if(!utils_default.isFunction(u))throw new TypeError("visitor must be a function");function p(c){if(c===null)return"";if(utils_default.isDate(c))return c.toISOString();if(utils_default.isBoolean(c))return c.toString();if(!s&&utils_default.isBlob(c))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils_default.isArrayBuffer(c)||utils_default.isTypedArray(c)?s&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function h(c,i,v){let b=c;if(c&&!v&&typeof c=="object"){if(utils_default.endsWith(i,"{}"))i=d?i:i.slice(0,-2),c=JSON.stringify(c);else if(utils_default.isArray(c)&&isFlatArray(c)||(utils_default.isFileList(c)||utils_default.endsWith(i,"[]"))&&(b=utils_default.toArray(c)))return i=removeBrackets(i),b.forEach(function(q,I){!(utils_default.isUndefined(q)||q===null)&&l.append(e===!0?renderKey([i],I,y):e===null?i:i+"[]",p(q))}),!1}return isVisitable(c)?!0:(l.append(renderKey(v,i,y),p(c)),!1)}const f=[],o=Object.assign(predicates,{defaultVisitor:h,convertValue:p,isVisitable});function r(c,i){if(!utils_default.isUndefined(c)){if(f.indexOf(c)!==-1)throw Error("Circular reference detected in "+i.join("."));f.push(c),utils_default.forEach(c,function(b,S){(!(utils_default.isUndefined(b)||b===null)&&u.call(l,b,utils_default.isString(S)?S.trim():S,i,o))===!0&&r(b,i?i.concat(S):[S])}),f.pop()}}if(!utils_default.isObject(n))throw new TypeError("data must be an object");return r(n),l}function encode$1(n){const l={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(d){return l[d]})}function AxiosURLSearchParams(n,l){this._pairs=[],n&&toFormData(n,this,l)}var prototype=AxiosURLSearchParams.prototype;prototype.append=function(l,a){this._pairs.push([l,a])};prototype.toString=function(l){const a=l?function(d){return l.call(this,d,encode$1)}:encode$1;return this._pairs.map(function(u){return a(u[0])+"="+a(u[1])},"").join("&")};function encode(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(n,l,a){if(!l)return n;const d=a&&a.encode||encode,u=utils_default.isFunction(a)?{serialize:a}:a,y=u&&u.serialize;let e;if(y?e=y(l,u):e=utils_default.isURLSearchParams(l)?l.toString():new AxiosURLSearchParams(l,u).toString(d),e){const s=n.indexOf("#");s!==-1&&(n=n.slice(0,s)),n+=(n.indexOf("?")===-1?"?":"&")+e}return n}var InterceptorManager=class{constructor(){this.handlers=[]}use(n,l,a){return this.handlers.push({fulfilled:n,rejected:l,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){utils_default.forEach(this.handlers,function(a){a!==null&&n(a)})}},transitional_default={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},URLSearchParams_default=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData_default=typeof FormData<"u"?FormData:null,Blob_default=typeof Blob<"u"?Blob:null,browser_default={isBrowser:!0,classes:{URLSearchParams:URLSearchParams_default,FormData:FormData_default,Blob:Blob_default},protocols:["http","https","file","blob","url","data"]},utils_exports=__exportAll({hasBrowserEnv:()=>hasBrowserEnv,hasStandardBrowserEnv:()=>hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv:()=>hasStandardBrowserWebWorkerEnv,navigator:()=>_navigator,origin:()=>origin}),hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",platform_default={...utils_exports,...browser_default};function toURLEncodedForm(n,l){return toFormData(n,new platform_default.classes.URLSearchParams,{visitor:function(a,d,u,y){return platform_default.isNode&&utils_default.isBuffer(a)?(this.append(d,a.toString("base64")),!1):y.defaultVisitor.apply(this,arguments)},...l})}function parsePropPath(n){return utils_default.matchAll(/\w+|\[(\w*)]/g,n).map(l=>l[0]==="[]"?"":l[1]||l[0])}function arrayToObject(n){const l={},a=Object.keys(n);let d;const u=a.length;let y;for(d=0;d<u;d++)y=a[d],l[y]=n[y];return l}function formDataToJSON(n){function l(a,d,u,y){let e=a[y++];if(e==="__proto__")return!0;const s=Number.isFinite(+e),p=y>=a.length;return e=!e&&utils_default.isArray(u)?u.length:e,p?(utils_default.hasOwnProp(u,e)?u[e]=[u[e],d]:u[e]=d,!s):((!u[e]||!utils_default.isObject(u[e]))&&(u[e]=[]),l(a,d,u[e],y)&&utils_default.isArray(u[e])&&(u[e]=arrayToObject(u[e])),!s)}if(utils_default.isFormData(n)&&utils_default.isFunction(n.entries)){const a={};return utils_default.forEachEntry(n,(d,u)=>{l(parsePropPath(d),u,a,0)}),a}return null}function stringifySafely(n,l,a){if(utils_default.isString(n))try{return(l||JSON.parse)(n),utils_default.trim(n)}catch(d){if(d.name!=="SyntaxError")throw d}return(a||JSON.stringify)(n)}var defaults={transitional:transitional_default,adapter:["xhr","http","fetch"],transformRequest:[function(l,a){const d=a.getContentType()||"",u=d.indexOf("application/json")>-1,y=utils_default.isObject(l);if(y&&utils_default.isHTMLForm(l)&&(l=new FormData(l)),utils_default.isFormData(l))return u?JSON.stringify(formDataToJSON(l)):l;if(utils_default.isArrayBuffer(l)||utils_default.isBuffer(l)||utils_default.isStream(l)||utils_default.isFile(l)||utils_default.isBlob(l)||utils_default.isReadableStream(l))return l;if(utils_default.isArrayBufferView(l))return l.buffer;if(utils_default.isURLSearchParams(l))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),l.toString();let e;if(y){if(d.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(l,this.formSerializer).toString();if((e=utils_default.isFileList(l))||d.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return toFormData(e?{"files[]":l}:l,s&&new s,this.formSerializer)}}return y||u?(a.setContentType("application/json",!1),stringifySafely(l)):l}],transformResponse:[function(l){const a=this.transitional||defaults.transitional,d=a&&a.forcedJSONParsing,u=this.responseType==="json";if(utils_default.isResponse(l)||utils_default.isReadableStream(l))return l;if(l&&utils_default.isString(l)&&(d&&!this.responseType||u)){const y=!(a&&a.silentJSONParsing)&&u;try{return JSON.parse(l,this.parseReviver)}catch(e){if(y)throw e.name==="SyntaxError"?AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):e}}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform_default.classes.FormData,Blob:platform_default.classes.Blob},validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils_default.forEach(["delete","get","head","post","put","patch"],n=>{defaults.headers[n]={}});var ignoreDuplicateOf=utils_default.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders_default=n=>{const l={};let a,d,u;return n&&n.split(`
2`).forEach(function(e){u=e.indexOf(":"),a=e.substring(0,u).trim().toLowerCase(),d=e.substring(u+1).trim(),!(!a||l[a]&&ignoreDuplicateOf[a])&&(a==="set-cookie"?l[a
vendor: 2,946 bytes, line 2
2]?l[a].push(d):l[a]=[d]:l[a]=l[a]?l[a]+", "+d:d)}),l},$internals=Symbol("internals");function normalizeHeader(n){return n&&String(n).trim().toLowerCase()}function normalizeValue(n){return n===!1||n==null?n:utils_default.isArray(n)?n.map(normalizeValue):String(n)}function parseTokens(n){const l=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let d;for(;d=a.exec(n);)l[d[1]]=d[2];return l}var isValidHeaderName=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function matchHeaderValue(n,l,a,d,u){if(utils_default.isFunction(d))return d.call(this,l,a);if(u&&(l=a),!!utils_default.isString(l)){if(utils_default.isString(d))return l.indexOf(d)!==-1;if(utils_default.isRegExp(d))return d.test(l)}}function formatHeader(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(l,a,d)=>a.toUpperCase()+d)}function buildAccessors(n,l){const a=utils_default.toCamelCase(" "+l);["get","set","has"].forEach(d=>{Object.defineProperty(n,d+a,{value:function(u,y,e){return this[d].call(this,l,u,y,e)},configurable:!0})})}var AxiosHeaders=class{constructor(n){n&&this.set(n)}set(n,l,a){const d=this;function u(e,s,p){const h=normalizeHeader(s);if(!h)throw new Error("header name must be a non-empty string");const f=utils_default.findKey(d,h);(!f||d[f]===void 0||p===!0||p===void 0&&d[f]!==!1)&&(d[f||s]=normalizeValue(e))}const y=(e,s)=>utils_default.forEach(e,(p,h)=>u(p,h,s));if(utils_default.isPlainObject(n)||n instanceof this.constructor)y(n,l);else if(utils_default.isString(n)&&(n=n.trim())&&!isValidHeaderName(n))y(parseHeaders_default(n),l);else if(utils_default.isObject(n)&&utils_default.isIterable(n)){let e={},s,p;for(const h of n){if(!utils_default.isArray(h))throw TypeError("Object iterator must return a key-value pair");e[p=h[0]]=(s=e[p])?utils_default.isArray(s)?[...s,h[1]]:[s,h[1]]:h[1]}y(e,l)}else n!=null&&u(l,n,a);return this}get(n,l){if(n=normalizeHeader(n),n){const a=utils_default.findKey(this,n);if(a){const d=this[a];if(!l)return d;if(l===!0)return parseTokens(d);if(utils_default.isFunction(l))return l.call(this,d,a);if(utils_default.isRegExp(l))return l.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,l){if(n=normalizeHeader(n),n){const a=utils_default.findKey(this,n);return!!(a&&this[a]!==void 0&&(!l||matchHeaderValue(this,this[a],a,l)))}return!1}delete(n,l){const a=this;let d=!1;function u(y){if(y=normalizeHeader(y),y){const e=utils_default.findKey(a,y);e&&(!l||matchHeaderValue(a,a[e],e,l))&&(delete a[e],d=!0)}}return utils_default.isArray(n)?n.forEach(u):u(n),d}clear(n){const l=Object.keys(this);let a=l.length,d=!1;for(;a--;){const u=l[a];(!n||matchHeaderValue(this,this[u],u,n,!0))&&(delete this[u],d=!0)}return d}normalize(n){const l=this,a={};return utils_default.forEach(this,(d,u)=>{const y=utils_default.findKey(a,u);if(y){l[y]=normalizeValue(d),delete l[u];return}const e=n?formatHeader(u):String(u).trim();e!==u&&delete l[u],l[e]=normalizeValue(d),a[e]=!0}),this}
vendor: 8,925 bytes, lines 2-3
2concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const l=Object.create(null);return utils_default.forEach(this,(a,d)=>{a!=null&&a!==!1&&(l[d]=n&&utils_default.isArray(a)?a.join(", "):a)}),l}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,l])=>n+": "+l).join(`
3`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...l){const a=new this(n);return l.forEach(d=>a.set(d)),a}static accessor(n){const l=(this[$internals]=this[$internals]={accessors:{}}).accessors,a=this.prototype;function d(u){const y=normalizeHeader(u);l[y]||(buildAccessors(a,u),l[y]=!0)}return utils_default.isArray(n)?n.forEach(d):d(n),this}};AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils_default.reduceDescriptors(AxiosHeaders.prototype,({value:n},l)=>{let a=l[0].toUpperCase()+l.slice(1);return{get:()=>n,set(d){this[a]=d}}});utils_default.freezeMethods(AxiosHeaders);function transformData(n,l){const a=this||defaults,d=l||a,u=AxiosHeaders.from(d.headers);let y=d.data;return utils_default.forEach(n,function(s){y=s.call(a,y,u.normalize(),l?l.status:void 0)}),u.normalize(),y}function isCancel(n){return!!(n&&n.__CANCEL__)}var CanceledError=class extends AxiosError{constructor(n,l,a){super(n??"canceled",AxiosError.ERR_CANCELED,l,a),this.name="CanceledError",this.__CANCEL__=!0}};function settle(n,l,a){const d=a.config.validateStatus;!a.status||!d||d(a.status)?n(a):l(new AxiosError("Request failed with status code "+a.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function parseProtocol(n){const l=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return l&&l[1]||""}function speedometer(n,l){n=n||10;const a=new Array(n),d=new Array(n);let u=0,y=0,e;return l=l!==void 0?l:1e3,function(p){const h=Date.now(),f=d[y];e||(e=h),a[u]=p,d[u]=h;let o=y,r=0;for(;o!==u;)r+=a[o++],o=o%n;if(u=(u+1)%n,u===y&&(y=(y+1)%n),h-e<l)return;const c=f&&h-f;return c?Math.round(r*1e3/c):void 0}}function throttle(n,l){let a=0,d=1e3/l,u,y;const e=(h,f=Date.now())=>{a=f,u=null,y&&(clearTimeout(y),y=null),n(...h)};return[(...h)=>{const f=Date.now(),o=f-a;o>=d?e(h,f):(u=h,y||(y=setTimeout(()=>{y=null,e(u)},d-o)))},()=>u&&e(u)]}var progressEventReducer=(n,l,a=3)=>{let d=0;const u=speedometer(50,250);return throttle(y=>{const e=y.loaded,s=y.lengthComputable?y.total:void 0,p=e-d,h=u(p),f=e<=s;d=e,n({loaded:e,total:s,progress:s?e/s:void 0,bytes:p,rate:h||void 0,estimated:h&&s&&f?(s-e)/h:void 0,event:y,lengthComputable:s!=null,[l?"download":"upload"]:!0})},a)},progressEventDecorator=(n,l)=>{const a=n!=null;return[d=>l[0]({lengthComputable:a,total:n,loaded:d}),l[1]]},asyncDecorator=n=>(...l)=>utils_default.asap(()=>n(...l)),isURLSameOrigin_default=platform_default.hasStandardBrowserEnv?((n,l)=>a=>(a=new URL(a,platform_default.origin),n.protocol===a.protocol&&n.host===a.host&&(l||n.port===a.port)))(new URL(platform_default.origin),platform_default.navigator&&/(msie|trident)/i.test(platform_default.navigator.userAgent)):()=>!0,cookies_default=platform_default.hasStandardBrowserEnv?{write(n,l,a,d,u,y,e){if(typeof document>"u")return;const s=[`${n}=${encodeURIComponent(l)}`];utils_default.isNumber(a)&&s.push(`expires=${new Date(a).toUTCString()}`),utils_default.isString(d)&&s.push(`path=${d}`),utils_default.isString(u)&&s.push(`domain=${u}`),y===!0&&s.push("secure"),utils_default.isString(e)&&s.push(`SameSite=${e}`),document.cookie=s.join("; ")},read(n){if(typeof document>"u")return null;const l=document.cookie.match(new RegExp("(?:^|; )"+n+"=([^;]*)"));return l?decodeURIComponent(l[1]):null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(n){return typeof n!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function combineURLs(n,l){return l?n.replace(/\/?\/$/,"")+"/"+l.replace(/^\/+/,""):n}function buildFullPath(n,l,a){let d=!isAbsoluteURL(l);return n&&(d||a==!1)?combineURLs(n,l):l}var headersToObject=n=>n instanceof AxiosHeaders?{...n}:n;function mergeConfig(n,l){l=l||{};const a={};function d(h,f,o,r){return utils_default.isPlainObject(h)&&utils_default.isPlainObject(f)?utils_default.merge.call({caseless:r},h,f):utils_default.isPlainObject(f)?utils_default.merge({},f):utils_default.isArray(f)?f.slice():f}function u(h,f,o,r){if(utils_default.isUndefined(f)){if(!utils_default.isUndefined(h))return d(void 0,h,o,r)}else return d(h,f,o,r)}function y(h,f){if(!utils_default.isUndefined(f))return d(void 0,f)}function e(h,f){if(utils_default.isUndefined(f)){if(!utils_default.isUndefined(h))return d(void 0,h)}else return d(void 0,f)}function s(h,f,o){if(o in l)return d(h,f);if(o in n)return d(void 0,h)}const p={url:y,method:y,data:y,baseURL:e,transformRequest:e,transformResponse:e,paramsSerializer:e,timeout:e,timeoutMessage:e,withCredentials:e,withXSRFToken:e,adapter:e,responseType:e,xsrfCookieName:e,xsrfHeaderName:e,onUploadProgress:e,onDownloadProgress:e,decompress:e,maxContentLength:e,maxBodyLength:e,beforeRedirect:e,transport:e,httpAgent:e,httpsAgent:e,cancelToken:e,socketPath:e,responseEncoding:e,validateStatus:s,headers:(h,f,o)=>u(headersToObject(h),headersToObject(f),o,!0)};return utils_default.forEach(Object.keys({...n,...l}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const o=utils_default.hasOwnProp(p,f)?p[f]:u,r=o(n[f],l[f],f);utils_default.isUndefined(r)&&o!==s||(a[f]=r)}),a}var resolveConfig_default=n=>{const l=mergeConfig({},n);let{data:a,withXSRFToken:d,xsrfHeaderName:u,xsrfCookieName:y,headers:e,auth:s}=l;if(l.headers=e=AxiosHeaders.from(e),l.url=buildURL(buildFullPath(l.baseURL,l.url,l.allowAbsoluteUrls),n.params,n.paramsSerializer),s&&e.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),utils_default.isFormData(a)){if(platform_default.hasStandardBrowserEnv||platform_default.hasStandardBrowserWebWorkerEnv)e.setContentType(void 0);else if(utils_default.isFunction(a.getHeaders)){const p=a.getHeaders(),h=["content-type","content-length"];Object.entries(p).forEach(([f,o])=>{h.includes(f.toLowerCase())&&e.set(f,o)})}}if(platform_default.hasStandardBrowserEnv&&(d&&utils_default.isFunction(d)&&(d=d(l)),d||d!==!1&&isURLSameOrigin_default(l.url))){const p=u&&y&&cookies_default.read(y);p&&e.set(u,p)}return l},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhr_default=isXHRAdapterSupported&&function(n){return new Promise(function(a,d){const u=resolveConfig_default(n);let y=u.data;const e=AxiosHeaders.from(u.headers).normalize();let{responseType:s,onUploadProgress:p,onDownloadProgress:h}=u,f,o,r,c,i;function v(){c&&c(),i&&i(),u.cancelToken&&u.cancelToken.unsubscribe(f),u.signal&&u.signal.removeEventListener("abort",f)}let b=new XMLHttpRequest;b.open(u.method.toUpperCase(),u.url,!0),b.timeout=u.timeout;function S(){if(!b)return;const I=AxiosHeaders.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());settle(function(D){a(D),v()},function(D){d(D),v()},{data:!s||s==="text"||s==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:I,config:n,request:b}),b=null}"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(S)},b.onabort=function(){b&&(d(new AxiosError("Request aborted",AxiosError.ECONNABORTED,n,b)),b=null)},b.onerror=function(k){const D=new AxiosError(k&&k.message?k.message:"Network Error",AxiosError.ERR_NETWORK,n,b);D.event=k||null,d(D),b=null},b.ontimeout=function(){let k=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded";const D=u.transitional||transitional_default;u.timeoutErrorMessage&&(k=u.timeoutErrorMessage),d(new AxiosError(k,D.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,n,b)),b=null},y===void 0&&e.setContentType(null),"setRequestHeader"in b&&utils_default.forEach(e.toJSON(),function(k,D){b.setRequestHeader(D,k)}),utils_default.isUndefined(u.withCredentials)||(b.withCredentials=!!u.withCredentials),s&&s!=="json"&&(b.responseType=u.responseType),h&&([r,i]=progressEventReducer(h,!0),b.addEventListener("progress",r)),p&&b.upload&&([o,c]=progressEventReducer(p),b.upload.addEventListener("progress",o),b.upload.addEventListener("loadend",c)),(u.cancelToken||u.signal)&&(f=I=>{b&&(d(!I||I.type?new CanceledError(null,n,b):I),b.abort(),b=null)},u.cancelToken&&u.cancelToken.subscribe(f),u.signal&&(u.signal.aborted?f():u.signal.addEventListener("abort",f)));const q=parseProtocol(u.url);if(q&&platform_default.protocols.indexOf(q)===-1){d(new AxiosError("Unsupported protocol "+q+":",AxiosError.ERR_BAD_REQUEST,n));return}b.send(y||null)})},composeSignals=(n,l)=>{const{length:a}
vendor: 4,913 bytes, line 3
3=n=n?n.filter(Boolean):[];if(l||a){let d=new AbortController,u;const y=function(h){if(!u){u=!0,s();const f=h instanceof Error?h:this.reason;d.abort(f instanceof AxiosError?f:new CanceledError(f instanceof Error?f.message:f))}};let e=l&&setTimeout(()=>{e=null,y(new AxiosError(`timeout of ${l}ms exceeded`,AxiosError.ETIMEDOUT))},l);const s=()=>{n&&(e&&clearTimeout(e),e=null,n.forEach(h=>{h.unsubscribe?h.unsubscribe(y):h.removeEventListener("abort",y)}),n=null)};n.forEach(h=>h.addEventListener("abort",y));const{signal:p}=d;return p.unsubscribe=()=>utils_default.asap(s),p}},streamChunk=function*(n,l){let a=n.byteLength;if(!l||a<l){yield n;return}let d=0,u;for(;d<a;)u=d+l,yield n.slice(d,u),d=u},readBytes=async function*(n,l){for await(const a of readStream(n))yield*streamChunk(a,l)},readStream=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const l=n.getReader();try{for(;;){const{done:a,value:d}=await l.read();if(a)break;yield d}}finally{await l.cancel()}},trackStream=(n,l,a,d)=>{const u=readBytes(n,l);let y=0,e,s=p=>{e||(e=!0,d&&d(p))};return new ReadableStream({async pull(p){try{const{done:h,value:f}=await u.next();if(h){s(),p.close();return}let o=f.byteLength;a&&a(y+=o),p.enqueue(new Uint8Array(f))}catch(h){throw s(h),h}},cancel(p){return s(p),u.return()}},{highWaterMark:2})},DEFAULT_CHUNK_SIZE=64*1024,{isFunction}=utils_default,globalFetchAPI=(({Request:n,Response:l})=>({Request:n,Response:l}))(utils_default.global),{ReadableStream:ReadableStream$1,TextEncoder}=utils_default.global,test=(n,...l)=>{try{return!!n(...l)}catch{return!1}},factory=n=>{n=utils_default.merge.call({skipUndefined:!0},globalFetchAPI,n);const{fetch:l,Request:a,Response:d}=n,u=l?isFunction(l):typeof fetch=="function",y=isFunction(a),e=isFunction(d);if(!u)return!1;const s=u&&isFunction(ReadableStream$1),p=u&&(typeof TextEncoder=="function"?(i=>v=>i.encode(v))(new TextEncoder):async i=>new Uint8Array(await new a(i).arrayBuffer())),h=y&&s&&test(()=>{let i=!1;const v=new a(platform_default.origin,{body:new ReadableStream$1,method:"POST",get duplex(){return i=!0,"half"}}).headers.has("Content-Type");return i&&!v}),f=e&&s&&test(()=>utils_default.isReadableStream(new d("").body)),o={stream:f&&(i=>i.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!o[i]&&(o[i]=(v,b)=>{let S=v&&v[i];if(S)return S.call(v);throw new AxiosError(`Response type '${i}' is not supported`,AxiosError.ERR_NOT_SUPPORT,b)})});const r=async i=>{if(i==null)return 0;if(utils_default.isBlob(i))return i.size;if(utils_default.isSpecCompliantForm(i))return(await new a(platform_default.origin,{method:"POST",body:i}).arrayBuffer()).byteLength;if(utils_default.isArrayBufferView(i)||utils_default.isArrayBuffer(i))return i.byteLength;if(utils_default.isURLSearchParams(i)&&(i=i+""),utils_default.isString(i))return(await p(i)).byteLength},c=async(i,v)=>{const b=utils_default.toFiniteNumber(i.getContentLength());return b??r(v)};return async i=>{let{url:v,method:b,data:S,signal:q,cancelToken:I,timeout:k,onDownloadProgress:D,onUploadProgress:N,responseType:F,headers:z,withCredentials:G="same-origin",fetchOptions:Z}=resolveConfig_default(i),re=l||fetch;F=F?(F+"").toLowerCase():"text";let C=composeSignals([q,I&&I.toAbortSignal()],k),m=null;const O=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let E;try{if(N&&h&&b!=="get"&&b!=="head"&&(E=await c(z,S))!==0){let _=new a(v,{method:"POST",body:S,duplex:"half"}),B;if(utils_default.isFormData(S)&&(B=_.headers.get("content-type"))&&z.setContentType(B),_.body){const[T,A]=progressEventDecorator(E,progressEventReducer(asyncDecorator(N)));S=trackStream(_.body,DEFAULT_CHUNK_SIZE,T,A)}}utils_default.isString(G)||(G=G?"include":"omit");const t=y&&"credentials"in a.prototype,g={...Z,signal:C,method:b.toUpperCase(),headers:z.normalize().toJSON(),body:S,duplex:"half",credentials:t?G:void 0};m=y&&new a(v,g);let R=await(y?re(m,Z):re(v,g));const M=f&&(F==="stream"||F==="response");if(f&&(D||M&&O)){const _={};["status","statusText","headers"].forEach($=>{_[$]=R[$]});const B=utils_default.toFiniteNumber(R.headers.get("content-length")),[T,A]=D&&progressEventDecorator(B,progressEventReducer(asyncDecorator(D),!0))||[];R=new d(trackStream(R.body,DEFAULT_CHUNK_SIZE,T,()=>{A&&A(),O&&O()}),_)}F=F||"text";let w=await o[utils_default.findKey(o,F)||"text"](R,i);return!M&&O&&O(),await new Promise((_,B)=>{settle(_,B,{data:w,headers:AxiosHeaders.from(R.headers),status:R.status,statusText:R.statusText,config:i,request:m})})}catch(t){throw O&&O(),t&&t.name==="TypeError"&&/Load failed|fetch/i.test(t.message)?Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,i,m,t&&t.response),{cause:t.cause||t}):AxiosError.from(t,t&&t.code,i,m,t&&t.response)}}},seedCache=new Map,getFetch=n=>{let l=n&&n.env||{};const{fetch:a,Request:d,Response:u}=l,y=[d,u,a];let e=y.length,s,p,h=seedCache;for(;e--;)s=y[e],p=h.get(s),p===void 0&&h.set(s,p=e?new Map:factory(l)),h=
3p;return p},adapter=getFetch(),knownAdapters={http:null,xhr:xhr_default,fetch:{get:getFetch}};utils_default.forEach(knownAdapters,(n,l)=>{if(n){try{Object.defineProperty(n,"name",{value:l})}catch{}Object.defineProperty(n,"adapterName",{value:l})}});var renderReason=n=>`- ${n}`,isResolvedHandle=n=>utils_default.isFunction(n)||n===null||n===!1;function getAdapter(n,l){n=utils_default.isArray(n)?n:[n];const{length:a}=n;let d,u;const y={};for(let e=0;e<a;e++){d=n[e];let s;if(u=d,!isResolvedHandle(d)&&(u=knownAdapters[(s=String(d)).toLowerCase()],u===void 0))throw new AxiosError(`Unknown adapter '${s}'`);if(u&&(utils_default.isFunction(u)||(u=u.get(l))))break;y[s||"#"+e]=u}if(!u){const e=Object.entries(y).map(([s,p])=>`adapter ${s} `+(p===!1?"is not supported by the environment":"is not available in the build"));throw new AxiosError("There is no suitable adapter to dispatch the request "+(a?e.length>1?`since :
4`+e.map(renderReason).join(`
5`):" "+renderReason(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return u}var adapters_default={getAdapter,adapters:knownAdapters};function throwIfCancellationRequested(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new CanceledError(null,n)}function dispatchRequest(n){return throwIfCancellationRequested(n),n.headers=AxiosHeaders.from(n.headers),n.data=transformData.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),adapters_default.getAdapter(n.adapter||defaults.adapter,n)(n).then(function(a){return throwIfCancellationRequested(n),a.data=transformData.call(n,n.transformResponse,a),a.headers=AxiosHeaders.from(a.headers),a},function(a){return isCancel(a)||(throwIfCancellationRequested(n),a&&a.response&&(a.response.data=transformData.call(n,n.transformResponse,a.response),a.response.headers=AxiosHeaders.from(a.response.headers))),Promise.reject(a)})}var VERSION="1.13.5",validators$1={};["object","boolean","number","function","string","symbol"].forEach((n,l)=>{validators$1[n]=function(d){return typeof d===n||"a"+(l<1?"n ":" ")+n}});var deprecatedWarnings={};validators$1.transitional=function(l,a,d){function u(y,e){return"[Axios v"+VERSION+"] Transitional option '"+y+"'"+e+(d?". "+d:"")}return(y,e,s)=>{if(l===!1)throw new AxiosError(u(e," has been removed"+(a?" in "+a:"")),AxiosError.ERR_DEPRECATED);return a&&!deprecatedWarnings[e]&&(deprecatedWarnings[e]=!0,console.warn(u(e," has been deprecated since v"+a+" and will be removed in the near future"))),l?l(y,e,s):!0}};validators$1.spelling=function(l){return(a,d)=>(console.warn(`${d} is likely a misspelling of ${l}`),!0)};function assertOptions(n,l,a){if(typeof n!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const d=Object.keys(n);let u=d.length;for(;u-- >0;){const y=d[u],e=l[y];if(e){const s=n[y],p=s===void 0||e(s,y,n);if(p!==!0)throw new AxiosError("option "+y+" must be "+p,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new AxiosError("Unknown option "+y,AxiosError.ERR_BAD_OPTION)}}var validator_default={assertOptions,validators:validators$1},validators=validator_default.validators,Axios=class{constructor(n){this.defaults=n||{},this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(n,l){try{return await this._request(n,l)}catch(a){if(a instanceof Error){let d={};Error.captureStackTrace?Error.captureStackTrace(d):d=new Error;const u=d.stack?d.stack.replace(/^.+\n/,""):"";try{a.stack?u&&!String(a.stack).endsWith(u.replace(/^.+\n.+\n/,""))&&(a.stack+=`
6`+u):a.stack=u}catch{}}throw a}}_request(n,l){typeof n=="string"?(l=l||{},l.url=n):l=n||{},l=mergeConfig(this.defaults,l);const{transitional:a,paramsSerializer:d,headers:u}=l;a!==void 0&&validator_default.assertOptions(a,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean),legacyInterceptorReqResOrdering:validators.transitional(validators.boolean)}
vendor: 3,380 bytes, line 6
6,!1),d!=null&&(utils_default.isFunction(d)?l.paramsSerializer={serialize:d}:validator_default.assertOptions(d,{encode:validators.function,serialize:validators.function},!0)),l.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?l.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:l.allowAbsoluteUrls=!0),validator_default.assertOptions(l,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),l.method=(l.method||this.defaults.method||"get").toLowerCase();let y=u&&utils_default.merge(u.common,u[l.method]);u&&utils_default.forEach(["delete","get","head","post","put","patch","common"],c=>{delete u[c]}),l.headers=AxiosHeaders.concat(y,u);const e=[];let s=!0;this.interceptors.request.forEach(function(i){if(typeof i.runWhen=="function"&&i.runWhen(l)===!1)return;s=s&&i.synchronous;const v=l.transitional||transitional_default;v&&v.legacyInterceptorReqResOrdering?e.unshift(i.fulfilled,i.rejected):e.push(i.fulfilled,i.rejected)});const p=[];this.interceptors.response.forEach(function(i){p.push(i.fulfilled,i.rejected)});let h,f=0,o;if(!s){const c=[dispatchRequest.bind(this),void 0];for(c.unshift(...e),c.push(...p),o=c.length,h=Promise.resolve(l);f<o;)h=h.then(c[f++],c[f++]);return h}o=e.length;let r=l;for(;f<o;){const c=e[f++],i=e[f++];try{r=c(r)}catch(v){i.call(this,v);break}}try{h=dispatchRequest.call(this,r)}catch(c){return Promise.reject(c)}for(f=0,o=p.length;f<o;)h=h.then(p[f++],p[f++]);return h}getUri(n){return n=mergeConfig(this.defaults,n),buildURL(buildFullPath(n.baseURL,n.url,n.allowAbsoluteUrls),n.params,n.paramsSerializer)}};utils_default.forEach(["delete","get","head","options"],function(l){Axios.prototype[l]=function(a,d){return this.request(mergeConfig(d||{},{method:l,url:a,data:(d||{}).data}))}});utils_default.forEach(["post","put","patch"],function(l){function a(d){return function(y,e,s){return this.request(mergeConfig(s||{},{method:l,headers:d?{"Content-Type":"multipart/form-data"}:{},url:y,data:e}))}}Axios.prototype[l]=a(),Axios.prototype[l+"Form"]=a(!0)});var CancelToken=class pr{constructor(l){if(typeof l!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(y){a=y});const d=this;this.promise.then(u=>{if(!d._listeners)return;let y=d._listeners.length;for(;y-- >0;)d._listeners[y](u);d._listeners=null}),this.promise.then=u=>{let y;const e=new Promise(s=>{d.subscribe(s),y=s}).then(u);return e.cancel=function(){d.unsubscribe(y)},e},l(function(y,e,s){d.reason||(d.reason=new CanceledError(y,e,s),a(d.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(l){if(this.reason){l(this.reason);return}this._listeners?this._listeners.push(l):this._listeners=[l]}unsubscribe(l){if(!this._listeners)return;const a=this._listeners.indexOf(l);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const l=new AbortController,a=d=>{l.abort(d)};return this.subscribe(a),l.signal.unsubscribe=()=>this.unsubscribe(a),l.signal}static source(){let l;return{token:new pr(function(d){l=d}),cancel:l}}};function spread(n){return function(a){return n.apply(null,a)}}function isAxiosError(n){return utils_default.isObject(n)&&n.isAxiosError===!0}var HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
vendor: 4,416 bytes, line 6
6alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(HttpStatusCode).forEach(([n,l])=>{HttpStatusCode[l]=n});function createInstance(n){const l=new Axios(n),a=bind(Axios.prototype.request,l);return utils_default.extend(a,Axios.prototype,l,{allOwnKeys:!0}),utils_default.extend(a,l,null,{allOwnKeys:!0}),a.create=function(u){return createInstance(mergeConfig(n,u))},a}var axios=createInstance(defaults);axios.Axios=Axios;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(l){return Promise.all(l)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders;axios.formToJSON=n=>formDataToJSON(utils_default.isHTMLForm(n)?new FormData(n):n);axios.getAdapter=adapters_default.getAdapter;axios.HttpStatusCode=HttpStatusCode;axios.default=axios;var require_dist=__commonJSMin(n=>{Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var l={},a={};a.byteLength=f,a.toByteArray=r,a.fromByteArray=v;for(var d=[],u=[],y=typeof Uint8Array<"u"?Uint8Array:Array,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,p=e.length;s<p;++s)d[s]=e[s],u[e.charCodeAt(s)]=s;u[45]=62,u[95]=63;function h(q){var I=q.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var k=q.indexOf("=");k===-1&&(k=I);var D=k===I?0:4-k%4;return[k,D]}function f(q){var I=h(q),k=I[0],D=I[1];return(k+D)*3/4-D}function o(q,I,k){return(I+k)*3/4-k}function r(q){var I,k=h(q),D=k[0],N=k[1],F=new y(o(q,D,N)),z=0,G=N>0?D-4:D,Z;for(Z=0;Z<G;Z+=4)I=u[q.charCodeAt(Z)]<<18|u[q.charCodeAt(Z+1)]<<12|u[q.charCodeAt(Z+2)]<<6|u[q.charCodeAt(Z+3)],F[z++]=I>>16&255,F[z++]=I>>8&255,F[z++]=I&255;return N===2&&(I=u[q.charCodeAt(Z)]<<2|u[q.charCodeAt(Z+1)]>>4,F[z++]=I&255),N===1&&(I=u[q.charCodeAt(Z)]<<10|u[q.charCodeAt(Z+1)]<<4|u[q.charCodeAt(Z+2)]>>2,F[z++]=I>>8&255,F[z++]=I&255),F}function c(q){return d[q>>18&63]+d[q>>12&63]+d[q>>6&63]+d[q&63]}function i(q,I,k){for(var D,N=[],F=I;F<k;F+=3)D=(q[F]<<16&16711680)+(q[F+1]<<8&65280)+(q[F+2]&255),N.push(c(D));return N.join("")}function v(q){for(var I,k=q.length,D=k%3,N=[],F=16383,z=0,G=k-D;z<G;z+=F)N.push(i(q,z,z+F>G?G:z+F));return D===1?(I=q[k-1],N.push(d[I>>2]+d[I<<4&63]+"==")):D===2&&(I=(q[k-2]<<8)+q[k-1],N.push(d[I>>10]+d[I>>4&63]+d[I<<2&63]+"=")),N.join("")}var b={};b.read=function(q,I,k,D,N){var F,z,G=N*8-D-1,Z=(1<<G)-1,re=Z>>1,C=-7,m=k?N-1:0,O=k?-1:1,E=q[I+m];for(m+=O,F=E&(1<<-C)-1,E>>=-C,C+=G;C>0;F=F*256+q[I+m],m+=O,C-=8);for(z=F&(1<<-C)-1,F>>=-C,C+=D;C>0;z=z*256+q[I+m],m+=O,C-=8);if(F===0)F=1-re;else{if(F===Z)return z?NaN:(E?-1:1)*(1/0);z=z+Math.pow(2,D),F=F-re}return(E?-1:1)*z*Math.pow(2,F-D)},b.write=function(q,I,k,D,N,F){var z,G,Z,re=F*8-N-1,C=(1<<re)-1,m=C>>1,O=N===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=D?0:F-1,t=D?1:-1,g=I<0||I===0&&1/I<0?1:0;for(I=Math.abs(I),isNaN(I)||I===1/0?(G=isNaN(I)?1:0,z=C):(z=Math.floor(Math.log(I)/Math.LN2),I*(Z=Math.pow(2,-z))<1&&(z--,Z*=2),z+m>=1?I+=O/Z:I+=O*Math.pow(2,1-m),I*Z>=2&&(z++,Z/=2),z+m>=C?(G=0,z=C):z+m>=1?(G=(I*Z-1)*Math.pow(2,N),z=z+m):(G=I*Math.pow(2,m-1)*Math.pow(2,N),z=0));N>=8;q[k+E]=G&255,E+=t,G/=256,N-=8);
vendor: 21,284 bytes, line 6
6for(z=z<<N|G,re+=N;re>0;q[k+E]=z&255,E+=t,z/=256,re-=8);q[k+E-t]|=g*128},function(q){const I=a,k=b,D=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;q.Buffer=C,q.SlowBuffer=T,q.INSPECT_MAX_BYTES=50;const N=2147483647;q.kMaxLength=N;const{Uint8Array:F,ArrayBuffer:z,SharedArrayBuffer:G}=globalThis;C.TYPED_ARRAY_SUPPORT=Z(),!C.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&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 Z(){try{const H=new F(1),P={foo:function(){return 42}};return Object.setPrototypeOf(P,F.prototype),Object.setPrototypeOf(H,P),H.foo()===42}catch{return!1}}Object.defineProperty(C.prototype,"parent",{enumerable:!0,get:function(){if(C.isBuffer(this))return this.buffer}}),Object.defineProperty(C.prototype,"offset",{enumerable:!0,get:function(){if(C.isBuffer(this))return this.byteOffset}});function re(H){if(H>N)throw new RangeError('The value "'+H+'" is invalid for option "size"');const P=new F(H);return Object.setPrototypeOf(P,C.prototype),P}function C(H,P,x){if(typeof H=="number"){if(typeof P=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return t(H)}return m(H,P,x)}C.poolSize=8192;function m(H,P,x){if(typeof H=="string")return g(H,P);if(z.isView(H))return M(H);if(H==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof H);if(_e(H,z)||H&&_e(H.buffer,z)||typeof G<"u"&&(_e(H,G)||H&&_e(H.buffer,G)))return w(H,P,x);if(typeof H=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const V=H.valueOf&&H.valueOf();if(V!=null&&V!==H)return C.from(V,P,x);const Y=_(H);if(Y)return Y;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof H[Symbol.toPrimitive]=="function")return C.from(H[Symbol.toPrimitive]("string"),P,x);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof H)}C.from=function(H,P,x){return m(H,P,x)},Object.setPrototypeOf(C.prototype,F.prototype),Object.setPrototypeOf(C,F);function O(H){if(typeof H!="number")throw new TypeError('"size" argument must be of type number');if(H<0)throw new RangeError('The value "'+H+'" is invalid for option "size"')}function E(H,P,x){return O(H),H<=0?re(H):P!==void 0?typeof x=="string"?re(H).fill(P,x):re(H).fill(P):re(H)}C.alloc=function(H,P,x){return E(H,P,x)};function t(H){return O(H),re(H<0?0:B(H)|0)}C.allocUnsafe=function(H){return t(H)},C.allocUnsafeSlow=function(H){return t(H)};function g(H,P){if((typeof P!="string"||P==="")&&(P="utf8"),!C.isEncoding(P))throw new TypeError("Unknown encoding: "+P);const x=A(H,P)|0;let V=re(x);const Y=V.write(H,P);return Y!==x&&(V=V.slice(0,Y)),V}function R(H){const P=H.length<0?0:B(H.length)|0,x=re(P);for(let V=0;V<P;V+=1)x[V]=H[V]&255;return x}function M(H){if(_e(H,F)){const P=new F(H);return w(P.buffer,P.byteOffset,P.byteLength)}return R(H)}function w(H,P,x){if(P<0||H.byteLength<P)throw new RangeError('"offset" is outside of buffer bounds');if(H.byteLength<P+(x||0))throw new RangeError('"length" is outside of buffer bounds');let V;return P===void 0&&x===void 0?V=new F(H):x===void 0?V=new F(H,P):V=new F(H,P,x),Object.setPrototypeOf(V,C.prototype),V}function _(H){if(C.isBuffer(H)){const P=B(H.length)|0,x=re(P);return x.length===0||H.copy(x,0,0,P),x}if(H.length!==void 0)return typeof H.length!="number"||Ae(H.length)?re(0):R(H);if(H.type==="Buffer"&&Array.isArray(H.data))return R(H.data)}function B(H){if(H>=N)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+N.toString(16)+" bytes");return H|0}function T(H){return+H!=H&&(H=0),C.alloc(+H)}C.isBuffer=function(P){return P!=null&&P._isBuffer===!0&&P!==C.prototype},C.compare=function(P,x){if(_e(P,F)&&(P=C.from(P,P.offset,P.byteLength)),_e(x,F)&&(x=C.from(x,x.offset,x.byteLength)),!C.isBuffer(P)||!C.isBuffer(x))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(P===x)return 0;let V=P.length,Y=x.length;for(let ee=0,ae=Math.min(V,Y);ee<ae;++ee)if(P[ee]!==x[ee]){V=P[ee],Y=x[ee];break}return V<Y?-1:Y<V?1:0},C.isEncoding=function(P){switch(String(P).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!0;default:return!1}},C.concat=function(P,x){if(!Array.isArray(P))throw new TypeError('"list" argument must be an Array of Buffers');if(P.length===0)return C.alloc(0);let V;if(x===void 0)for(x=0,V=0;V<P.length;++V)x+=P[V].length;const Y=C.allocUnsafe(x);let ee=0;for(V=0;V<P.length;++V){let ae=P[V];if(_e(ae,F))ee+ae.length>Y.length?(C.isBuffer(ae)||(ae=C.from(ae)),ae.copy(Y,ee)):F.prototype.set.call(Y,ae,ee);else if(C.isBuffer(ae))ae.copy(Y,ee);else throw new TypeError('"list" argument must be an Array of Buffers');ee+=ae.length}return Y};function A(H,P){if(C.isBuffer(H))return H.length;if(z.isView(H)||_e(H,z))return H.byteLength;if(typeof H!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof H);const x=H.length,V=arguments.length>2&&arguments[2]===!0;if(!V&&x===0)return 0;let Y=!1;for(;;)switch(P){case"ascii":case"latin1":case"binary":return x;case"utf8":case"utf-8":return Ee(H).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x*2;case"hex":return x>>>1;case"base64":return Re(H).length;default:if(Y)return V?-1:Ee(H).length;P=(""+P).toLowerCase(),Y=!0}}C.byteLength=A;function $(H,P,x){let V=!1;if((P===void 0||P<0)&&(P=0),P>this.length||((x===void 0||x>this.length)&&(x=this.length),x<=0)||(x>>>=0,P>>>=0,x<=P))return"";for(H||(H="utf8");;)switch(H){case"hex":return ve(this,P,x);case"utf8":case"utf-8":return ne(this,P,x);case"ascii":return we(this,P,x);case"latin1":case"binary":return ie(this,P,x);case"base64":return Q(this,P,x);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,P,x);default:if(V)throw new TypeError("Unknown encoding: "+H);H=(H+"").toLowerCase(),V=!0}}C.prototype._isBuffer=!0;function te(H,P,x){const V=H[P];H[P]=H[x],H[x]=V}C.prototype.swap16=function(){const P=this.length;if(P%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let x=0;x<P;x+=2)te(this,x,x+1);return this},C.prototype.swap32=function(){const P=this.length;if(P%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let x=0;x<P;x+=4)te(this,x,x+3),te(this,x+1,x+2);return this},C.prototype.swap64=function(){const P=this.length;if(P%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let x=0;x<P;x+=8)te(this,x,x+7),te(this,x+1,x+6),te(this,x+2,x+5),te(this,x+3,x+4);return this},C.prototype.toString=function(){const P=this.length;return P===0?"":arguments.length===0?ne(this,0,P):$.apply(this,arguments)},C.prototype.toLocaleString=C.prototype.toString,C.prototype.equals=function(P){if(!C.isBuffer(P))throw new TypeError("Argument must be a Buffer");return this===P?!0:C.compare(this,P)===0},C.prototype.inspect=function(){let P="";const x=q.INSPECT_MAX_BYTES;return P=this.toString("hex",0,x).replace(/(.{2})/g,"$1 ").trim(),this.length>x&&(P+=" ... "),"<Buffer "+P+">"},D&&(C.prototype[D]=C.prototype.inspect),C.prototype.compare=function(P,x,V,Y,ee){if(_e(P,F)&&(P=C.from(P,P.offset,P.byteLength)),!C.isBuffer(P))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof P);if(x===void 0&&(x=0),V===void 0&&(V=P?P.length:0),Y===void 0&&(Y=0),ee===void 0&&(ee=this.length),x<0||V>P.length||Y<0||ee>this.length)throw new RangeError("out of range index");if(Y>=ee&&x>=V)return 0;if(Y>=ee)return-1;if(x>=V)return 1;if(x>>>=0,V>>>=0,Y>>>=0,ee>>>=0,this===P)return 0;let ae=ee-Y,ce=V-x;const de=Math.min(ae,ce),Ce=this.slice(Y,ee),pe=P.slice(x,V);for(let he=0;he<de;++he)if(Ce[he]!==pe[he]){ae=Ce[he],ce=pe[he];break}return ae<ce?-1:ce<ae?1:0};function W(H,P,x,V,Y){if(H.length===0)return-1;if(typeof x=="string"?(V=x,x=0):x>2147483647?x=2147483647:x<-2147483648&&(x=-2147483648),x=+x,Ae(x)&&(x=Y?0:H.length-1),x<0&&(x=H.length+x),x>=H.length){if(Y)return-1;x=H.length-1}else if(x<0)if(Y)x=0;else return-1;if(typeof P=="string"&&(P=C.from(P,V)),C.isBuffer(P))return P.length===0?-1:K(H,P,x,V,Y);if(typeof P=="number")return P=P&255,typeof F.prototype.indexOf=="function"?Y?F.prototype.indexOf.call(H,P,x):F.prototype.lastIndexOf.call(H,P,x):K(H,[P],x,V,Y);throw new TypeError("val must be string, number or Buffer")}function K(H,P,x,V,Y){let ee=1,ae=H.length,ce=P.length;if(V!==void 0&&(V=String(V).toLowerCase(),V==="ucs2"||V==="ucs-2"||V==="utf16le"||V==="utf-16le")){if(H.length<2||P.length<2)return-1;ee=2,ae/=2,ce/=2,x/=2}function de(pe,he){return ee===1?pe[he]:pe.readUInt16BE(he*ee)}let Ce;if(Y){let pe=-1;for(Ce=x;Ce<ae;Ce++)if(de(H,Ce)===de(P,pe===-1?0:Ce-pe)){if(pe===-1&&(pe=Ce),Ce-pe+1===ce)return pe*ee}else pe!==-1&&(Ce-=Ce-pe),pe=-1}else for(x+ce>ae&&(x=ae-ce),Ce=x;Ce>=0;Ce--){let pe=!0;for(let he=0;he<ce;he++)if(de(H,Ce+he)!==de(P,he)){pe=!1;break}if(pe)return Ce}return-1}C.prototype.includes=function(P,x,V){return this.indexOf(P,x,V)!==-1},C.prototype.indexOf=function(P,x,V){return W(this,P,x,V,!0)},C.prototype.lastIndexOf=function(P,x,V){return W(this,P,x,V,!1)};function L(H,P,x,V){x=Number(x)||0;const Y=H.length-x;V?(V=Number(V),V>Y&&(V=Y)):V=Y;const ee=P.length;V>ee/2&&(V=ee/2);let ae;for(ae=0;ae<V;++ae){const ce=parseInt(P.substr(ae*2,2),16);if(Ae(ce))return ae;H[x+ae]=ce}return ae}function U(H,P,x,V){return $e(Ee(P,H.length-x),H,x,V)}function X(H,P,x,V){return $e(He(P),H,x,V)}function j(H,P,x,V){return $e(Re(P),H,x,V)}function J(H,P,x,V){return $e(Pe(P,H.length-x),H,x,V)}C.prototype.write=function(P,x,V,Y){if(x===void 0)Y="utf8",V=this.length,x=0;else if(V===void 0&&typeof x=="string")Y=x,V=this.length,x=0;else if(isFinite(x))x=x>>>0,isFinite(V)?(V=V>>>0,Y===void 0&&(Y="utf8")):(Y=V,V=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ee=this.length-x;if((V===void 0||V>ee)&&(V=ee),P.length>0&&(V<0||x<0)||x>this.length)throw new RangeError("Attempt to write outside buffer bounds");Y||(Y="utf8");let ae=!1;for(;;)switch(Y){case"hex":return L(this,P,x,V);case"utf8":case"utf-8":return U(this,P,x,V);case"ascii":case"latin1":case"binary":return X(this,P,x,V);case"base64":return j(this,P,x,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,P,x,V);default:if(ae)throw new TypeError("Unknown encoding: "+Y);Y=(""+Y).toLowerCase(),ae=!0}},C.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Q(H,P,x){return P===0&&x===H.length?I.fromByteArray(H):I.fromByteArray(H.slice(P,x))}function ne(H,P,x){x=Math.min(H.length,x);const V=[];let Y=P;for(;Y<x;){const ee=H[Y];let ae=null,ce=ee>239?4:ee>223?3:ee>191?2:1;if(Y+ce<=x){let de,Ce,pe,he;switch(ce){case 1:ee<128&&(ae=ee);break;case 2:de=H[Y+1],(de&192)===128&&(he=(ee&31)<<6|de&63,he>127&&(ae=he));break;case 3:de=H[Y+1],Ce=H[Y+2],(de&192)===128&&(Ce&192)===128&&(he=(ee&15)<<12|(de&63)<<6|Ce&63,he>2047&&(he<55296||he>57343)&&(ae=he));break;case 4:de=H[Y+1],Ce=H[Y+2],pe=H[Y+3],(de&192)===128&&(Ce&192)===128&&(pe&192)===128&&(he=(ee&15)<<18|(de&63)<<12|(Ce&63)<<6|pe&63,he>65535&&he<1114112&&(ae=he))}}ae===null?(ae=65533,ce=1):ae>65535&&(ae-=65536,V.push(ae>>>10&1023|55296),ae=56320|ae&1023),V.push(ae),Y+=ce}return oe(V)}const se=4096;function oe(H){const P=H.length;if(P<=se)return String.fromCharCode.apply(String,H);let x="",V=0;for(;V<P;)x+=String.fromCharCode.apply(String,H.slice(V,V+=se));return x}function we(H,P,x){let V="";x=Math.min(H.length,x);for(let Y=P;Y<x;++Y)V+=String.fromCharCode(H[Y]&127);return V}function ie(H,P,x){let V="";x=Math.min(H.length,x);for(let Y=P;Y<x;++Y)V+=String.fromCharCode(H[Y]);return V}function ve(H,P,x){const V=H.length;(!P||P<0)&&(P=0),(!x||x<0||x>V)&&(x=V);let Y="";for(let ee=P;ee<x;++ee)Y+=ze[H[ee]];return Y}function De(H,P,x){const V=H.slice(P,x);let Y="";for(let ee=0;ee<V.length-1;ee+=2)Y+=String.fromCharCode(V[ee]+V[ee+1]*256);return Y}C.prototype.slice=function(P,x){const V=this.length;P=~~P,x=x===void 0?V:~~x,P<0?(P+=V,P<0&&(P=0)):P>V&&(P=V),x<0?(x+=V,x<0&&(x=0)):x>V&&(x=V),x<P&&(x=P);const Y=this.subarray(P,x);return Object.setPrototypeOf(Y,C.prototype),Y};function ue(H,P,x){if(H%1!==0||H<0)throw new RangeError("offset is not uint");if(H+P>x)throw new RangeError("Trying to access beyond buffer length")}C.prototype.readUintLE=C.prototype.readUIntLE=function(P,x,V){P=P>>>0,x=x>>>0,V||ue(P,x,this.length);let Y=this[P],ee=1,ae=0;for(;++ae<x&&(ee*=256);)Y+=this[P+ae]*ee;return Y},C.prototype.readUintBE=C.prototype.readUIntBE=function(P,x,V){P=P>>>0,x=x>>>0,V||ue(P,x,this.length);let Y=this[P+--x],ee=1;for(;x>0&&(ee*=256);)Y+=this[P+--x]*ee;return Y},C.prototype.readUint8=C.prototype.readUInt8=function(P,x){return P=P>>>0,x||ue(P,1,this.length),this[P]},C.prototype.readUint16LE=C.prototype.readUInt16LE=function(P,x){return P=P>>>0,x||ue(P,2,this.length),this[P]|this[P+1]<<8},C.prototype.readUint16BE=C.prototype.readUInt16BE=function(P,x){return P=P>>>0,x||ue(P,2,this.length),this[P]<<8|this[P+1]},C.prototype.readUint32LE=C.prototype.readUInt32LE=function(P,x){return P=P>>>0,x||ue(P,4,this.length),(this[P]|this[P+1]<<8|this[P+2]<<16)+this[P+3]*16777216},C.prototype.readUint32BE=C.prototype.readUInt32BE=function(P,x){return P=P>>>0,x||ue(P,4,this.length),this[P]*16777216+(this[P+1]<<16|this[P+2]<<8|this[P+3])},C.prototype.readBigUInt64LE=ge(function(P){P=P>>>0,Se(P,"offset");const x=this[P],V=this[P+7];(x===void 0||V===void 0)&&Me(P,this.length-8);const Y=x+this[++P]*2**8+this[++P]*2**16+this[++P]*2**24,ee=this[++P]+this[++P]*2**8+this[++P]*2**16+V*2**24;return BigInt(Y)+(BigInt(ee)<<BigInt(32))}),C.prototype.readBigUInt64BE=ge(function(P){P=P>>>0,Se(P,"offset");const x=this[P],V=this[P+7];(x===void 0||V===void 0)&&Me(P,this.length-8);const Y=x*2**24+this[++P]*2**16+this[++P]*2**8+this[++P],ee=this[++P]*2**24+this[++P]*2**16+this[++P]*2**8+V;return(BigInt(Y)<<BigInt(32))+BigInt(ee)}),C.prototype.readIntLE=function(P,x,V){P=P>>>0,x=x>>>0,V||ue(P,x,this.length);let Y=this[P],ee=1,ae=0;for(;++ae<x&&(ee*=256);)Y+=this[P+ae]*ee;return ee*=128,Y>=ee&&(Y-=Math.pow(2,8*x)),Y},C.prototype.readIntBE=function(P,x,V){P=P>>>0,x=x>>>0,V||ue(P,x,this.length);let Y=x,ee=1,ae=this[P+--Y];for(;Y>0&&(ee*=256);)ae+=this[P+--Y]*ee;return ee*=128,ae>=ee&&(ae-=Math.pow(2,8*x)),ae},C.prototype.readInt8=function(P,x){return P=P>>>0,x||ue(P,1,this.length),this[P]&128?(255-this[P]+1)*-1:this[P]},C.prototype.readInt16LE=function(P,x){P=P>>>0,x||ue(P,2,this.length);const V=this[P]|this[P+1]<<8;return V&32768?V|4294901760:V},C.prototype.readInt16BE=function(P,x){P=P>>>0,x||ue(P,2,this.length);const V=this[P+1]|this[P]<<8;return V&32768?V|4294901760:V},C.prototype.readInt32LE=function(P,x){return P=P>>>0,x||ue(P,4,this.length),this[P]|this[P+1]<<8|this[P+2]<<16|this[P+3]<<24},C.prototype.readInt32BE=function(P,x){return P=P>>>0,x||ue(P,4,this.length),this[P]<<24|this[P+1]<<16|this[P+2]<<8|this[P+3]},C.prototype.readBigInt64LE=ge(function(P){P=P>>>0,Se(P,"offset");const x=this[P],V=this[P+7];(x===void 0||V===void 0)&&Me(P,this.length-8);const Y=this[P+4]+this[P+5]*2**8+this[P+6]*2**16+(V<<24);return(BigInt(Y)<<BigInt(32))+BigInt(x+this[++P]*2**8+this[++P]*2**16+this[++P]*2**24)}),C.prototype.readBigInt64BE=ge(function(P){P=P>>>0,Se(P,"offset");const x=this[P],V=this[P+7];(x===void 0||V===void 0)&&Me(P,this.length-8);const Y=(x<<24)+this[++P]*2**16+this[++P]*2**8+this[++P];return(BigInt(Y)<<BigInt(32))+BigInt(this[++P]*2**24+this[++P]*2**16+this[++P]*2**8+V)}),C.prototype.readFloatLE=function(P,x){return P=P>>>0,x||ue(P,4,this.length),k.read(this,P,!0,23,4)},C.prototype.readFloatBE=function(P,x){return P=P>>>0,x||ue(P,4,this.length),k.read(this,P,!1,23,4)},C.prototype.readDoubleLE=function(P,x){return P=P>>>0,x||ue(P,8,this.length),k.read(this,P,!0,52,8)},C.prototype.readDoubleBE=function(P,x){return P=P>>>0,x||ue(P,8,this.length),k.read(this,P,!1,52,8)};function fe(H,P,x,V,Y,ee){if(!C.isBuffer(H))throw new TypeError('"buffer" argument must be a Buffer instance');if(P>Y||P<ee)throw new RangeError('"value" argument is out of bounds');if(x+V>H.length)throw new RangeError("Index out of range")}C.prototype.writeUintLE=C.prototype.writeUIntLE=function(P,x,V,Y){if(P=+P,x=x>>>0,V=V>>>0,!Y){const ce=Math.pow(2,8*V)-1;fe(this,P,x,V,ce,0)}let ee=1,ae=0;for(this[x]=P&255;++ae<V&&(ee*=256);)this[x+ae]=P/ee&255;return x+V},C.prototype.writeUintBE=C.prototype.writeUIntBE=function(P,x,V,Y){if(P=+P,x=x>>>0,V=V>>>0,!Y){const ce=Math.pow(2,8*V)-1;fe(this,P,x,V,ce,0)}let ee=V-1,ae=1;for(this[x+ee]=P&255;--ee>=0&&(ae*=256);)this[x+ee]=P/ae&255;return x+V},C.prototype.writeUint8=C.prototype.writeUInt8=function(P,x,V){return P=+P,x=x>>>0,V||fe(this,P,x,1,255,0),this[x]=P&255,x+1},C.prototype.writeUint16LE=C.prototype.writeUInt16LE=function(P,x,V){return P=+P,x=x>>>0,V||fe(this,P,x,2,65535,0),this[x]=P&255,this[x+1]=P>>>8,x+2},C.prototype.writeUint16BE=C.prototype.writeUInt16BE=function(P,x,V){return P=+P,x=x>>>0,V||fe(this,P,x,2,65535,0),this[x]=P>>>8,this[x+1]=P&255,x+2},C.prototype.writeUint32LE=C.prototype.writeUInt32LE=function(P,x,V){return P=+P,x=x>>>0,V||fe(this,P,x,4,4294967295,0),this[x+3]=P>>>24,this[x+2]=P>>>16,this[x+1]=P>>>8,this[x]=P&255,x+4},C.prototype.writeUint32BE=C.prototype.writeUInt32BE=function(P,x,V){return P=+P,x=x>>>0,V||fe(this,P,x,4,4294967295,0),this[x]=P>>>24,this[x+1]=P>>>16,this[x+2]=P>>>8,this[x+3]=P&255,x+4};function ke(H,P,x,V,Y){Fe(P,V,Y,H,x,7);let ee=Number(P&BigInt(4294967295));H[x++]=ee,ee=ee>>8,H[x++]=ee,ee=ee>>8,H[x++]=ee,ee=ee>>8,H[x++]=ee;let ae=Number(P>>BigInt(32)&BigInt(4294967295));return H[x++]=ae,ae=ae>>8,H[x++]=ae,ae=ae>>8,H[x++]=ae,ae=ae>>8,H[x++]=ae,x}function le(H,P,x,V,Y){Fe(P,V,Y,H,x,7);let ee=Number(P&BigInt(4294967295));H[x+7]=ee,ee=ee>>8,H[x+6]=ee,ee=ee>>8,H[x+5]=ee,ee=ee>>8,H[x+4]=ee;let ae=Number(P>>BigInt(32)&BigInt(4294967295));return H[x+3]=ae,ae=ae>>8,H[x+2]=ae,ae=ae>>8,H[x+1]=ae,ae=ae>>8,H[x]=ae,x+8}C.prototype.writeBigUInt64LE=ge(function(P,x=0){return ke(this,P,x,BigInt(0),BigInt("0xffffffffffffffff"))}),C.prototype.writeBigUInt64BE=ge(function(P,x=0){return le(this,P,x,BigInt(0),BigInt("0xffffffffffffffff"))}),C.prototype.writeIntLE=function(P,x,V,Y){if(P=+P,x=x>>>0,!Y){const de=Math.pow(2,8*V-1);fe(this,P,x,V,de-1,-de)}let ee=0,ae=1,ce=0;for(this[x]=P&255;++ee<V&&(ae*=256);)P<0&&ce===0&&this[x+ee-1]!==0&&(ce=1),this[x+ee]=(P/ae>>0)-ce&255;return x+V},C.prototype.writeIntBE=function(P,x,V,Y){if(P=+P,x=x>>>0,!Y){const de=Math.pow(2,8*V-1);fe(this,P,x,V,de-1,-de)}let ee=V-1,ae=1,ce=0;for(this[x+ee]=P&255;--ee>=0&&(ae*=256);)P<0&&ce===0&&this[x+ee+1]!==0&&(ce=1),this[x+ee]=(P/ae>>0)-ce&255;return x+V},C.prototype.writeInt8=function(P,x,V){return P=+P,x=x>>>0,V||fe(this,P,x,1,127,-128),P<0&&(P=255+P+1),this[x]=P&255,x+1},C.prototype.writeInt16LE=function(P,x,V){return P=+P,x=x>>>0,V||fe(this,P,x,2,32767,-32768),this[x]=P&255,this[x+1]=P>>>8,x+2},C.prototype.writeInt16BE=function(P,x,V){return P=+P,x=x>>>0,V||fe(this,P,x,2,32767,-32768),this[x]=P>>>8,this[x+1]=P&255,x+2},C.prototype.writeInt32LE=function(P,x,V){return P=+P,x=x>>>0,V||fe(this,P,x,4,2147483647,-2147483648),this[x]=P&255,this[x+1]=P>>>8,this[x+2]=P>>>16,this[x+3]=P>>>24,x+4},C.prototype.writeInt32BE=function(P,x,V){return P=+P,x=x>>>0,V||fe(this,P,x,4,2147483647,-2147483648),P<0&&(P=4294967295+P+1),this[x]=P>>>24,this[x+1]=P>>>16,this[x+2]=P>>>8,this[x+3]=P&255,x+4},C.prototype.writeBigInt64LE=ge(function(P,x=0){return ke(this,P,x,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),C.prototype.writeBigInt64BE=ge(function(P,x=0){return le(this,P,x,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function be(H,P,x,V,Y,ee){if(x+V>H.length)throw new RangeError("Index out of range");if(x<0)throw new RangeError("Index out of range")}function Ue(H,P,x,V,Y){return P=+P,x=x>>>0,Y||be(H,P,x,4),k.write(H,P,x,V,23,4),x+4}C.prototype.writeFloatLE=function(P,x,V){return Ue(this,P,x,!0,V)},C.prototype.writeFloatBE=function(P,x,V){return Ue(this,P,x,!1,V)};function ye(H,P,x,V,Y){return P=+P,x=x>>>0,Y||be(H,P,x,8),k.write(H,P,x,V,52,8),x+8}C.prototype.writeDoubleLE=function(P,x,V){return ye(this,P,x,!0,V)},C.prototype.writeDoubleBE=function(P,x,V){return ye(this,P,x,!1,V)},C.prototype.copy=function(P,x,V,Y){if(!C.isBuffer(P))throw new TypeError("argument should be a Buffer");if(V||(V=0),!Y&&Y!==0&&(Y=this.length),x>=P.length&&(x=P.length),x||(x=0),Y>0&&Y<V&&(Y=V),Y===V||P.length===0||this.length===0)return 0;if(x<0)throw new RangeError("targetStart out of bounds");if(V<0||V>=this.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("sourceEnd out of bounds");Y>this.length&&(Y=this.length),P.length-x<Y-V&&(Y=P.length-x+V);const ee=Y-V;return this===P&&typeof F.prototype.copyWithin=="function"?this.copyWithin(x,V,Y):F.prototype.set.call(P,this.subarray(V,Y),x),ee},C.prototype.fill=function(P,x,V,Y){if(typeof P=="string"){if(typeof x=="str
6ing"?(Y=x,x=0,V=this.length):typeof V=="string"&&(Y=V,V=this.length),Y!==void 0&&typeof Y!="string")throw new TypeError("encoding must be a string");if(typeof Y=="string"&&!C.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);if(P.length===1){const ae=P.charCodeAt(0);(Y==="utf8"&&ae<128||Y==="latin1")&&(P=ae)}}else typeof P=="number"?P=P&255:typeof P=="boolean"&&(P=Number(P));if(x<0||this.length<x||this.length<V)throw new RangeError("Out of range index");if(V<=x)return this;x=x>>>0,V=V===void 0?this.length:V>>>0,P||(P=0);let ee;if(typeof P=="number")for(ee=x;ee<V;++ee)this[ee]=P;else{const ae=C.isBuffer(P)?P:C.from(P,Y),ce=ae.length;if(ce===0)throw new TypeError('The value "'+P+'" is invalid for argument "value"');for(ee=0;ee<V-x;++ee)this[ee+x]=ae[ee%ce]}return this};const me={};function je(H,P,x){me[H]=class extends x{constructor(){super(),Object.defineProperty(this,"message",{value:P.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${H}]`,this.stack,delete this.name}get code(){return H}set code(Y){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Y,writable:!0})}toString(){return`${this.name} [${H}]: ${this.message}`}}}je("ERR_BUFFER_OUT_OF_BOUNDS",function(H){return H?`${H} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),je("ERR_INVALID_ARG_TYPE",function(H,P){return`The "${H}" argument must be of type number. Received type ${typeof P}`},TypeError),je("ERR_OUT_OF_RANGE",function(H,P,x){let V=`The value of "${H}" is out of range.`,Y=x;return Number.isInteger(x)&&Math.abs(x)>2**32?Y=qe(String(x)):typeof x=="bigint"&&(Y=String(x),(x>BigInt(2)**BigInt(32)||x<-(BigInt(2)**BigInt(32)))&&(Y=qe(Y)),Y+="n"),V+=` It must be ${P}. Received ${Y}`,V},RangeError);function qe(H){let P="",x=H.length;const V=H[0]==="-"?1:0;for(;x>=V+4;x-=3)P=`_${H.slice(x-3,x)}${P}`;return`${H.slice(0,x)}${P}`}function Be(H,P,x){Se(P,"offset"),(H[P]===void 0||H[P+x]===void 0)&&Me(P,H.length-(x+1))}function Fe(H,P,x,V,Y,ee){if(H>x||H<P){const ae=typeof P=="bigint"?"n":"";let ce;throw ee>3?P===0||P===BigInt(0)?ce=`>= 0${ae} and < 2${ae} ** ${(ee+1)*8}${ae}`:ce=`>= -(2${ae} ** ${(ee+1)*8-1}${ae}) and < 2 ** ${(ee+1)*8-1}${ae}`:ce=`>= ${P}${ae} and <= ${x}${ae}`,new me.ERR_OUT_OF_RANGE("value",ce,H)}Be(V,Y,ee)}function Se(H,P){if(typeof H!="number")throw new me.ERR_INVALID_ARG_TYPE(P,"number",H)}function Me(H,P,x){throw Math.floor(H)!==H?(Se(H,x),new me.ERR_OUT_OF_RANGE(x||"offset","an integer",H)):P<0?new me.ERR_BUFFER_OUT_OF_BOUNDS:new me.ERR_OUT_OF_RANGE(x||"offset",`>= ${x?1:0} and <= ${P}`,H)}const Je=/[^+/0-9A-Za-z-_]/g;function Ie(H){if(H=H.split("=")[0],H=H.trim().replace(Je,""),H.length<2)return"";for(;H.length%4!==0;)H=H+"=";return H}function Ee(H,P){P=P||1/0;let x;const V=H.length;let Y=null;const ee=[];for(let ae=0;ae<V;++ae){if(x=H.charCodeAt(ae),x>55295&&x<57344){if(!Y){if(x>56319){(P-=3)>-1&&ee.push(239,191,189);continue}else if(ae+1===V){(P-=3)>-1&&ee.push(239,191,189);continue}Y=x;continue}if(x<56320){(P-=3)>-1&&ee.push(239,191,189),Y=x;continue}x=(Y-55296<<10|x-56320)+65536}else Y&&(P-=3)>-1&&ee.push(239,191,189);if(Y=null,x<128){if((P-=1)<0)break;ee.push(x)}else if(x<2048){if((P-=2)<0)break;ee.push(x>>6|192,x&63|128)}else if(x<65536){if((P-=3)<0)break;ee.push(x>>12|224,x>>6&63|128,x&63|128)}else if(x<1114112){if((P-=4)<0)break;ee.push(x>>18|240,x>>12&63|128,x>>6&63|128,x&63|128)}else throw new Error("Invalid code point")}return ee}function He(H){const P=[];for(let x=0;x<H.length;++x)P.push(H.charCodeAt(x)&255);return P}function Pe(H,P){let x,V,Y;const ee=[];for(let ae=0;ae<H.length&&!((P-=2)<0);++ae)x=H.charCodeAt(ae),V=x>>8,Y=x%256,ee.push(Y),ee.push(V);return ee}function Re(H){return I.toByteArray(Ie(H))}function $e(H,P,x,V){let Y;for(Y=0;Y<V&&!(Y+x>=P.length||Y>=H.length);++Y)P[Y+x]=H[Y];return Y}function _e(H,P){return H instanceof P||H!=null&&H.constructor!=null&&H.constructor.name!=null&&H.constructor.name===P.name}function Ae(H){return H!==H}const ze=function(){const H="0123456789abcdef",P=new Array(256);for(let x=0;x<16;++x){const V=x*16;for(let Y=0;Y<16;++Y)P[V+Y]=H[x]+H[Y]}return P}();function ge(H){return typeof BigInt>"u"?Oe:H}function Oe(){throw new Error("BigInt not supported")}}(l);var S=l.Buffer;n.Blob=l.Blob,n.BlobOptions=l.BlobOptions,n.Buffer=l.Buffer,n.File=l.File,n.FileOptions=l.FileOptions,n.INSPECT_MAX_BYTES=l.INSPECT_MAX_BYTES,n.SlowBuffer=l.SlowBuffer,n.TranscodeEncoding=l.TranscodeEncoding,n.atob=l.atob,n.btoa=l.btoa,n.constants=l.constants,n.default=S,n.isAscii=l.isAscii,n.isUtf8=l.isUtf8,n.kM
6axLength=l.kMaxLength,n.kStringMaxLength=l.kStringMaxLength,n.resolveObjectURL=l.resolveObjectURL,n.transcode=l.transcode}),require_safe_buffer$1=__commonJSMin((n,l)=>{var a=require_dist(),d=a.Buffer;function u(e,s){for(var p in e)s[p]=e[p]}d.from&&d.alloc&&d.allocUnsafe&&d.allocUnsafeSlow?l.exports=a:(u(a,n),n.Buffer=y);function y(e,s,p){return d(e,s,p)}y.prototype=Object.create(d.prototype),u(d,y),y.from=function(e,s,p){if(typeof e=="number")throw new TypeError("Argument must not be a number");return d(e,s,p)},y.alloc=function(e,s,p){if(typeof e!="number")throw new TypeError("Argument must be a number");var h=d(e);return s!==void 0?typeof p=="string"?h.fill(s,p):h.fill(s):h.fill(0),h},y.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return d(e)},y.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(e)}}),require_browser$11=__commonJSMin((n,l)=>{init_dist$1(),init_dist$2();var a=65536,d=4294967295;function u(){throw new Error(`Secure random number generation is not supported by this browser.
7Use Chrome, Firefox or Internet Explorer 11`)}var y=require_safe_buffer$1().Buffer,e=global$1.crypto||global$1.msCrypto;e&&e.getRandomValues?l.exports=s:l.exports=u;function s(p,h){if(p>d)throw new RangeError("requested too many random bytes");var f=y.allocUnsafe(p);if(p>0)if(p>a)for(var o=0;o<p;o+=a)e.getRandomValues(f.slice(o,o+a));else e.getRandomValues(f);return typeof h=="function"?process$1.nextTick(function(){h(null,f)}):f}}),require_inherits_browser=__commonJSMin((n,l)=>{typeof Object.create=="function"?l.exports=function(d,u){u&&(d.super_=u,d.prototype=Object.create(u.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}))}:l.exports=function(d,u){if(u){d.super_=u;var y=function(){};y.prototype=u.prototype,d.prototype=new y,d.prototype.constructor=d}}}),require_events=__commonJSMin((n,l)=>{var a=typeof Reflect=="object"?Reflect:null,d=a&&typeof a.apply=="function"?a.apply:function(F,z,G){return Function.prototype.apply.call(F,z,G)},u;a&&typeof a.ownKeys=="function"?u=a.ownKeys:Object.getOwnPropertySymbols?u=function(F){return Object.getOwnPropertyNames(F).concat(Object.getOwnPropertySymbols(F))}:u=function(F){return Object.getOwnPropertyNames(F)};function y(N){console&&console.warn&&console.warn(N)}var e=Number.isNaN||function(F){return F!==F};function s(){s.init.call(this)}l.exports=s,l.exports.once=I,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var p=10;function h(N){if(typeof N!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof N)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return p},set:function(N){if(typeof N!="number"||N<0||e(N))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+N+".");p=N}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(F){if(typeof F!="number"||F<0||e(F))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+F+".");return this._maxListeners=F,this};function f(N){return N._maxListeners===void 0?s.defaultMaxListeners:N._maxListeners}s.prototype.getMaxListeners=function(){return f(this)},s.prototype.emit=function(F){for(var z=[],G=1;G<arguments.length;G++)z.push(arguments[G]);var Z=F==="error",re=this._events;if(re!==void 0)Z=Z&&re.error===void 0;else if(!Z)return!1;if(Z){var C;if(z.length>0&&(C=z[0]),C instanceof Error)throw C;var m=new Error("Unhandled error."+(C?" ("+C.message+")":""));throw m.context=C,m}var O=re[F];if(O===void 0)return!1;if(typeof O=="function")d(O,this,z);else for(var E=O.length,t=b(O,E),G=0;G<E;++G)d(t[G],this,z);return!0};function o(N,F,z,G){var Z,re,C;if(h(z),re=N._events,re===void 0?(re=N._events=Object.create(null),N._eventsCount=0):(re.newListener!==void 0&&(N.emit("newListener",F,z.listener?z.listener:z),re=N._events),C=re[F]),C===void 0)C=re[F]=z,++N._eventsCount;else if(typeof C=="function"?C=re[F]=G?[z,C]:[C,z]:G?C.unshift(z):C.push(z),Z=f(N),Z>0&&C.length>Z&&!C.warned){C.warned=!0;var m=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(F)+" listeners added. Use emitter.setMaxListeners() to increase limit");m.name="MaxListenersExceededWarning",m.emitter=N,m.type=F,m.count=C.length,y(m)}return N}s.prototype.addListener=function(F,z){return o(this,F,z,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(F,z){return o(this,F,z,!0)};function r(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(N,F,z){var G={fired:!1,wrapFn:void 0,target:N,type:F,listener:z},Z=r.bind(G);return Z.listener=z,G.wrapFn=Z,Z}s.prototype.once=function(F,z){return h(z),this.on(F,c(this,F,z)),this},s.prototype.prependOnceListener=function(F,z){return h(z),this.prependListener(F,c(this,F,z)),this},s.prototype.removeListener=function(F,z){var G,Z,re,C,m;if(h(z),Z=this._events,Z===void 0)return this;if(G=Z[F],G===void 0)return this;if(G===z||G.listener===z)--this._eventsCount===0?this._events=Object.create(null):(delete Z[F],Z.removeListener&&this.emit
7("removeListener",F,G.listener||z));else if(typeof G!="function"){for(re=-1,C=G.length-1;C>=0;C--)if(G[C]===z||G[C].listener===z){m=G[C].listener,re=C;break}if(re<0)return this;re===0?G.shift():S(G,re),G.length===1&&(Z[F]=G[0]),Z.removeListener!==void 0&&this.emit("removeListener",F,m||z)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(F){var z,G=this._events,Z;if(G===void 0)return this;if(G.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):G[F]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete G[F]),this;if(arguments.length===0){var re=Object.keys(G),C;for(Z=0;Z<re.length;++Z)C=re[Z],C!=="removeListener"&&this.removeAllListeners(C);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(z=G[F],typeof z=="function")this.removeListener(F,z);else if(z!==void 0)for(Z=z.length-1;Z>=0;Z--)this.removeListener(F,z[Z]);return this};function i(N,F,z){var G=N._events;if(G===void 0)return[];var Z=G[F];return Z===void 0?[]:typeof Z=="function"?z?[Z.listener||Z]:[Z]:z?q(Z):b(Z,Z.length)}s.prototype.listeners=function(F){return i(this,F,!0)},s.prototype.rawListeners=function(F){return i(this,F,!1)},s.listenerCount=function(N,F){return typeof N.listenerCount=="function"?N.listenerCount(F):v.call(N,F)},s.prototype.listenerCount=v;function v(N){var F=this._events;if(F!==void 0){var z=F[N];if(typeof z=="function")return 1;if(z!==void 0)return z.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?u(this._events):[]};function b(N,F){for(var z=new Array(F),G=0;G<F;++G)z[G]=N[G];return z}function S(N,F){for(;F+1<N.length;F++)N[F]=N[F+1];N.pop()}function q(N){for(var F=new Array(N.length),z=0;z<F.length;++z)F[z]=N[z].listener||N[z];return F}function I(N,F){return new Promise(function(z,G){function Z(C){N.removeListener(F,re),G(C)}function re(){typeof N.removeListener=="function"&&N.removeListener("error",Z),z([].slice.call(arguments))}D(N,F,re,{once:!0}),F!=="error"&&k(N,Z,{once:!0})})}function k(N,F,z){typeof N.on=="function"&&D(N,"error",F,z)}function D(N,F,z,G){if(typeof N.on=="function")G.once?N.once(F,z):N.on(F,z);else if(typeof N.addEventListener=="function")N.addEventListener(F,function Z(re){G.once&&N.removeEventListener(F,Z),z(re)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof N)}}),require_stream_browser$1=__commonJSMin((n,l)=>{l.exports=require_events().EventEmitter}),require_shams$2=__commonJSMin((n,l)=>{l.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var d={},u=Symbol("test"),y=Object(u);if(typeof u=="string"||Object.prototype.toString.call(u)!=="[object Symbol]"||Object.prototype.toString.call(y)!=="[object Symbol]")return!1;var e=42;d[u]=e;for(u in d)return!1;if(typeof Object.keys=="function"&&Object.keys(d).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(d).length!==0)return!1;var s=Object.getOwnPropertySymbols(d);if(s.length!==1||s[0]!==u||!Object.prototype.propertyIsEnumerable.call(d,u))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(d,u);if(p.value!==e||p.enumerable!==!0)return!1}return!0}}),require_shams$1=__commonJSMin((n,l)=>{var a=require_shams$2();l.exports=function(){return a()&&!!Symbol.toStringTag}}),require_es_object_atoms=__commonJSMin((n,l)=>{l.exports=Object}),require_es_errors=__commonJSMin((n,l)=>{l.exports=Error}),require_eval=__commonJSMin((n,l)=>{l.exports=EvalError}),require_range=__commonJSMin((n,l)=>{l.exports=RangeError}),require_ref=__commonJSMin((n,l)=>{l.exports=ReferenceError}),require_syntax=__commonJSMin((n,l)=>{l.exports=SyntaxError}),require_type=__commonJSMin((n,l)=>{l.exports=TypeError}),require_uri=__commonJSMin((n,l)=>{l.exports=URIError}),require_abs=__commonJSMin((n,l)=>{l.exports=Math.abs}),require_floor=__commonJSMin((n,l)=>{l.exports=Math.floor}),require_max=__commonJSMin((n,l)=>{l.exports=Math.max}),require_min=__commonJSMin((n,l)=>{l.exports=Math.min}),require_pow=__commonJSMin((n,l)=>{l.exports=Math.pow}),require_round=__commonJSMin((n,l)=>{l.exports=Math.round}),require_isNaN=__commonJSMin((n,l)=>{l.exports=Number.isNaN||function(d){return d!==d}}),require_sign$1=__commonJSMin((n,l)=>{var a=require_isNaN();l.exports=function(u){return a(u)||u===0?u:u<0?-1:1}}),require_gOPD=__commonJSMin((n,l)=>{l.exports=Object.getOwnPropertyDescriptor}
7),require_gopd$1=__commonJSMin((n,l)=>{var a=require_gOPD();if(a)try{a([],"length")}catch{a=null}l.exports=a}),require_es_define_property$1=__commonJSMin((n,l)=>{var a=Object.defineProperty||!1;if(a)try{a({},"a",{value:1})}catch{a=!1}l.exports=a}),require_shams=__commonJSMin((n,l)=>{l.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var d={},u=Symbol("test"),y=Object(u);if(typeof u=="string"||Object.prototype.toString.call(u)!=="[object Symbol]"||Object.prototype.toString.call(y)!=="[object Symbol]")return!1;var e=42;d[u]=e;for(var s in d)return!1;if(typeof Object.keys=="function"&&Object.keys(d).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(d).length!==0)return!1;var p=Object.getOwnPropertySymbols(d);if(p.length!==1||p[0]!==u||!Object.prototype.propertyIsEnumerable.call(d,u))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var h=Object.getOwnPropertyDescriptor(d,u);if(h.value!==e||h.enumerable!==!0)return!1}return!0}}),require_has_symbols$1=__commonJSMin((n,l)=>{var a=typeof Symbol<"u"&&Symbol,d=require_shams();l.exports=function(){return typeof a!="function"||typeof Symbol!="function"||typeof a("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:d()}}),require_Reflect_getPrototypeOf=__commonJSMin((n,l)=>{l.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),require_Object_getPrototypeOf=__commonJSMin((n,l)=>{var a=require_es_object_atoms();l.exports=a.getPrototypeOf||null}),require_implementation=__commonJSMin((n,l)=>{var a="Function.prototype.bind called on incompatible ",d=Object.prototype.toString,u=Math.max,y="[object Function]",e=function(f,o){for(var r=[],c=0;c<f.length;c+=1)r[c]=f[c];for(var i=0;i<o.length;i+=1)r[i+f.length]=o[i];return r},s=function(f,o){for(var r=[],c=o||0,i=0;c<f.length;c+=1,i+=1)r[i]=f[c];return r},p=function(h,f){for(var o="",r=0;r<h.length;r+=1)o+=h[r],r+1<h.length&&(o+=f);return o};l.exports=function(f){var o=this;if(typeof o!="function"||d.apply(o)!==y)throw new TypeError(a+o);for(var r=s(arguments,1),c,i=function(){if(this instanceof c){var I=o.apply(this,e(r,arguments));return Object(I)===I?I:this}return o.apply(f,e(r,arguments))},v=u(0,o.length-r.length),b=[],S=0;S<v;S++)b[S]="$"+S;if(c=Function("binder","return function ("+p(b,",")+"){ return binder.apply(this,arguments); }")(i),o.prototype){var q=function(){};q.prototype=o.prototype,c.prototype=new q,q.prototype=null}return c}}),require_function_bind=__commonJSMin((n,l)=>{var a=require_implementation();l.exports=Function.prototype.bind||a}),require_functionCall=__commonJSMin((n,l)=>{l.exports=Function.prototype.call}),require_functionApply=__commonJSMin((n,l)=>{l.exports=Function.prototype.apply}),require_reflectApply=__commonJSMin((n,l)=>{l.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),require_actualApply=__commonJSMin((n,l)=>{var a=require_function_bind(),d=require_functionApply(),u=require_functionCall(),y=require_reflectApply();l.exports=y||a.call(u,d)}),require_call_bind_apply_helpers=__commonJSMin((n,l)=>{var a=require_function_bind(),d=require_type(),u=require_functionCall(),y=require_actualApply();l.exports=function(s){if(s.length<1||typeof s[0]!="function")throw new d("a function is required");return y(a,u,s)}}),require_get=__commonJSMin((n,l)=>{var a=require_call_bind_apply_helpers(),d=require_gopd$1(),u;try{u=[].__proto__===Array.prototype}catch(p){if(!p||typeof p!="object"||!("code"in p)||p.code!=="ERR_PROTO_ACCESS")throw p}var y=!!u&&d&&d(Object.prototype,"__proto__"),e=Object,s=e.getPrototypeOf;l.exports=y&&typeof y.get=="function"?a([y.get]):typeof s=="function"?function(h){return s(h==null?h:e(h))}:!1}),require_get_proto=__commonJSMin((n,l)=>{var a=require_Reflect_getPrototypeOf(),d=require_Object_getPrototypeOf(),u=require_get();l.exports=a?function(e){return a(e)}:d?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return d(e)}:u?function(e){return u(e)}:null}),require_hasown$1=__commonJSMin((n,l)=>{var a=Function.prototype.call,d=Object.prototype.hasOwnProperty,u=require_function_bind();l.exports=u.call(a,d)}),require_get_intrinsic$1=__commonJSMin((n,l)=>{var a,d=require_es_object_atoms(),u=require_es_errors(),y=require_eval(),e=require_range(),s=require_ref(),p=require_syntax(),h=require_type(),f=require_uri(),o=require_abs(),r=require_floor(),c=require_max(),i=require_min(),v=require_pow(),b=require_round(),S=require_sign$1(),q=Function,I=function(U){try{return q('"use strict"; return ('+U+").constructor;")()}catch{}}
7,k=require_gopd$1(),D=require_es_define_property$1(),N=function(){throw new h},F=k?function(){try{return arguments.callee,N}catch{try{return k(arguments,"callee").get}catch{return N}}}():N,z=require_has_symbols$1()(),G=require_get_proto(),Z=require_Object_getPrototypeOf(),re=require_Reflect_getPrototypeOf(),C=require_functionApply(),m=require_functionCall(),O={},E=typeof Uint8Array>"u"||!G?a:G(Uint8Array),t={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?a:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?a:ArrayBuffer,"%ArrayIteratorPrototype%":z&&G?G([][Symbol.iterator]()):a,"%AsyncFromSyncIteratorPrototype%":a,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":typeof Atomics>"u"?a:Atomics,"%BigInt%":typeof BigInt>"u"?a:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?a:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?a:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?a:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":u,"%eval%":eval,"%EvalError%":y,"%Float16Array%":typeof Float16Array>"u"?a:Float16Array,"%Float32Array%":typeof Float32Array>"u"?a:Float32Array,"%Float64Array%":typeof Float64Array>"u"?a:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?a:FinalizationRegistry,"%Function%":q,"%GeneratorFunction%":O,"%Int8Array%":typeof Int8Array>"u"?a:Int8Array,"%Int16Array%":typeof Int16Array>"u"?a:Int16Array,"%Int32Array%":typeof Int32Array>
vendor: 4,999 bytes, line 7
7"u"?a:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":z&&G?G(G([][Symbol.iterator]())):a,"%JSON%":typeof JSON=="object"?JSON:a,"%Map%":typeof Map>"u"?a:Map,"%MapIteratorPrototype%":typeof Map>"u"||!z||!G?a:G(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":d,"%Object.getOwnPropertyDescriptor%":k,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?a:Promise,"%Proxy%":typeof Proxy>"u"?a:Proxy,"%RangeError%":e,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?a:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?a:Set,"%SetIteratorPrototype%":typeof Set>"u"||!z||!G?a:G(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?a:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":z&&G?G(""[Symbol.iterator]()):a,"%Symbol%":z?Symbol:a,"%SyntaxError%":p,"%ThrowTypeError%":F,"%TypedArray%":E,"%TypeError%":h,"%Uint8Array%":typeof Uint8Array>"u"?a:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?a:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?a:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?a:Uint32Array,"%URIError%":f,"%WeakMap%":typeof WeakMap>"u"?a:WeakMap,"%WeakRef%":typeof WeakRef>"u"?a:WeakRef,"%WeakSet%":typeof WeakSet>"u"?a:WeakSet,"%Function.prototype.call%":m,"%Function.prototype.apply%":C,"%Object.defineProperty%":D,"%Object.getPrototypeOf%":Z,"%Math.abs%":o,"%Math.floor%":r,"%Math.max%":c,"%Math.min%":i,"%Math.pow%":v,"%Math.round%":b,"%Math.sign%":S,"%Reflect.getPrototypeOf%":re};if(G)try{null.error}catch(U){t["%Error.prototype%"]=G(G(U))}var g=function U(X){var j;if(X==="%AsyncFunction%")j=I("async function () {}");else if(X==="%GeneratorFunction%")j=I("function* () {}");else if(X==="%AsyncGeneratorFunction%")j=I("async function* () {}");else if(X==="%AsyncGenerator%"){var J=U("%AsyncGeneratorFunction%");J&&(j=J.prototype)}else if(X==="%AsyncIteratorPrototype%"){var Q=U("%AsyncGenerator%");Q&&G&&(j=G(Q.prototype))}return t[X]=j,j},R={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=require_function_bind(),w=require_hasown$1(),_=M.call(m,Array.prototype.concat),B=M.call(C,Array.prototype.splice),T=M.call(m,String.prototype.replace),A=M.call(m,String.prototype.slice),$=M.call(m,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,K=function(X){var j=A(X,0,1),J=A(X,-1);if(j==="%"&&J!=="%")throw new p("invalid intrinsic syntax, expected closing `%`");
7if(J==="%"&&j!=="%")throw new p("invalid intrinsic syntax, expected opening `%`");var Q=[];return T(X,te,function(ne,se,oe,we){Q[Q.length]=oe?T(we,W,"$1"):se||ne}),Q},L=function(X,j){var J=X,Q;if(w(R,J)&&(Q=R[J],J="%"+Q[0]+"%"),w(t,J)){var ne=t[J];if(ne===O&&(ne=g(J)),typeof ne>"u"&&!j)throw new h("intrinsic "+X+" exists, but is not available. Please file an issue!");return{alias:Q,name:J,value:ne}}throw new p("intrinsic "+X+" does not exist!")};l.exports=function(X,j){if(typeof X!="string"||X.length===0)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof j!="boolean")throw new h('"allowMissing" argument must be a boolean');if($(/^%?[^%]*%?$/,X)===null)throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var J=K(X),Q=J.length>0?J[0]:"",ne=L("%"+Q+"%",j),se=ne.name,oe=ne.value,we=!1,ie=ne.alias;ie&&(Q=ie[0],B(J,_([0,1],ie)));for(var ve=1,De=!0;ve<J.length;ve+=1){var ue=J[ve],fe=A(ue,0,1),ke=A(ue,-1);if((fe==='"'||fe==="'"||fe==="`"||ke==='"'||ke==="'"||ke==="`")&&fe!==ke)throw new p("property names with quotes must have matching quotes");if((ue==="constructor"||!De)&&(we=!0),Q+="."+ue,se="%"+Q+"%",w(t,se))oe=t[se];else if(oe!=null){if(!(ue in oe)){if(!j)throw new h("base intrinsic for "+X+" exists, but the property is not available.");return}if(k&&ve+1>=J.length){var le=k(oe,ue);De=!!le,De&&"get"in le&&!("originalValue"in le.get)?oe=le.get:oe=oe[ue]}else De=w(oe,ue),oe=oe[ue];De&&!we&&(t[se]=oe)}}return oe}}),require_has_symbols=__commonJSMin((n,l)=>{var a=typeof Symbol<"u"&&Symbol,d=require_shams$2();l.exports=function(){return typeof a!="function"||typeof Symbol!="function"||typeof a("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:d()}}),require_has_proto=__commonJSMin((n,l)=>{var a={__proto__:null,foo:{}},d=Object;l.exports=function(){return{__proto__:a}.foo===a.foo&&!(a instanceof d)}}),require_hasown=__commonJSMin((n,l)=>{var a=Function.prototype.call,d=Object.prototype.hasOwnProperty,u=require_function_bind();l.exports=u.call(a,d)}),require_get_intrinsic=__commonJSMin((n,l)=>{var a,d=require_es_errors(),u=require_eval(),y=require_range(),e=require_ref(),s=require_syntax(),p=require_type(),h=require_uri(),f=Function,o=function(R){try{return f('"use strict"; return ('+R+").constructor;")()}catch{}},r=Object.getOwnPropertyDescriptor;if(r)try{r({},"")}catch{r=null}var c=function(){throw new p},i=r?function(){try{return arguments.callee,c}catch{try{return r(arguments,"callee").get}catch{return c}}}():c,v=require_has_symbols()(),b=require_has_proto()(),S=Object.getPrototypeOf||(b?function(R){return R.__proto__}:null),q={},I=typeof Uint8Array>"u"||!S?a:S(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?a:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?a:ArrayBuffer,"%ArrayIteratorPrototype%":v&&S?S([][Symbol.iterator]()):a,"%AsyncFromSyncIteratorPrototype%":a,"%AsyncFunction%":q,"%AsyncGenerator%":q,"%AsyncGeneratorFunction%":q,"%AsyncIteratorPrototype%":q,"%Atomics%":typeof Atomics>"u"?a:Atomics,"%BigInt%":typeof BigInt>"u"?a:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?a:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?a:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?a:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":d,"%eval%":eval,"%EvalError%":u,"%Float32Array%":typeof Float32Array>"u"?a:Float32Array,"%Float64Array%":typeof Float64Array>"u"?a:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?a:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":q,"%Int8Array%":typeof Int8Array>"u"?a:Int8Array,"%Int16Array%":typeof Int16Array>"u"?a:Int16Array,"%Int32Array%":typeof Int32Array>
vendor: 5,730 bytes, line 7
7"u"?a:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":v&&S?S(S([][Symbol.iterator]())):a,"%JSON%":typeof JSON=="object"?JSON:a,"%Map%":typeof Map>"u"?a:Map,"%MapIteratorPrototype%":typeof Map>"u"||!v||!S?a:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?a:Promise,"%Proxy%":typeof Proxy>"u"?a:Proxy,"%RangeError%":y,"%ReferenceError%":e,"%Reflect%":typeof Reflect>"u"?a:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?a:Set,"%SetIteratorPrototype%":typeof Set>"u"||!v||!S?a:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?a:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":v&&S?S(""[Symbol.iterator]()):a,"%Symbol%":v?Symbol:a,"%SyntaxError%":s,"%ThrowTypeError%":i,"%TypedArray%":I,"%TypeError%":p,"%Uint8Array%":typeof Uint8Array>"u"?a:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?a:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?a:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?a:Uint32Array,"%URIError%":h,"%WeakMap%":typeof WeakMap>"u"?a:WeakMap,"%WeakRef%":typeof WeakRef>"u"?a:WeakRef,"%WeakSet%":typeof WeakSet>"u"?a:WeakSet};if(S)try{null.error}catch(R){k["%Error.prototype%"]=S(S(R))}var D=function R(M){var w;if(M==="%AsyncFunction%")w=o("async function () {}");else if(M==="%GeneratorFunction%")w=o("function* () {}");else if(M==="%AsyncGeneratorFunction%")w=o("async function* () {}");else if(M==="%AsyncGenerator%"){var _=R("%AsyncGeneratorFunction%");_&&(w=_.prototype)}else if(M==="%AsyncIteratorPrototype%"){var B=R("%AsyncGenerator%");B&&S&&(w=S(B.prototype))}return k[M]=w,w},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},F=require_function_bind(),z=require_hasown(),G=F.call(Function.call,Array.prototype.concat),Z=F.call(Function.apply,Array.prototype.splice),re=F.call(Function.call,String.prototype.replace),C=F.call(Function.call,String.prototype.slice),m=F.call(Function.call,RegExp.prototype.exec),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,t=function(M){var w=C(M,0,1),_=C(M,-1);if(w==="%"&&_!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(_==="%"&&w!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var B=[];return re(M,O,function(T,A,$,te){B[B.length]=$?re(te,E,"$1"):A||T}),B},g=function(M,w){var _=M,B;if(z(N,_)&&(B=N[_],_="%"+B[0]+"%"),z(k,_)){var T=k[_];if(T===q&&(T=D(_)),typeof T>"u"&&!w)throw new p("intrinsic "+M+" exists, but is not available. Please file an issue!");return{alias:B,name:_,value:T}}throw new s("intrinsic "+M+" does not exist!")};l.exports=function(M,w){if(typeof M!="string"||M.length===0)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof w!="boolean")throw new p('"allowMissing" argument must be a boolean');if(m(/^%?[^%]*%?$/,M)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var _=t(M),B=_.length>0?_[0]:"",T=g("%"+B+"%",w),A=T.name,$=T.value,te=!1,W=T.alias;W&&(B=W[0],Z(_,G([0,1],W)));for(var K=1,L=!0;K<_.length;K+=1){var U=_[K],X=C(U,0,1),j=C(U,-1);
7if((X==='"'||X==="'"||X==="`"||j==='"'||j==="'"||j==="`")&&X!==j)throw new s("property names with quotes must have matching quotes");if((U==="constructor"||!L)&&(te=!0),B+="."+U,A="%"+B+"%",z(k,A))$=k[A];else if($!=null){if(!(U in $)){if(!w)throw new p("base intrinsic for "+M+" exists, but the property is not available.");return}if(r&&K+1>=_.length){var J=r($,U);L=!!J,L&&"get"in J&&!("originalValue"in J.get)?$=J.get:$=$[U]}else L=z($,U),$=$[U];L&&!te&&(k[A]=$)}}return $}}),require_es_define_property=__commonJSMin((n,l)=>{var a=require_get_intrinsic()("%Object.defineProperty%",!0)||!1;if(a)try{a({},"a",{value:1})}catch{a=!1}l.exports=a}),require_gopd=__commonJSMin((n,l)=>{var a=require_get_intrinsic()("%Object.getOwnPropertyDescriptor%",!0);if(a)try{a([],"length")}catch{a=null}l.exports=a}),require_define_data_property=__commonJSMin((n,l)=>{var a=require_es_define_property(),d=require_syntax(),u=require_type(),y=require_gopd();l.exports=function(s,p,h){if(!s||typeof s!="object"&&typeof s!="function")throw new u("`obj` must be an object or a function`");if(typeof p!="string"&&typeof p!="symbol")throw new u("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new u("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new u("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new u("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new u("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,r=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,i=!!y&&y(s,p);if(a)a(s,p,{configurable:r===null&&i?i.configurable:!r,enumerable:f===null&&i?i.enumerable:!f,value:h,writable:o===null&&i?i.writable:!o});else if(c||!f&&!o&&!r)s[p]=h;else throw new d("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),require_has_property_descriptors=__commonJSMin((n,l)=>{var a=require_es_define_property(),d=function(){return!!a};d.hasArrayLengthDefineBug=function(){if(!a)return null;try{return a([],"length",{value:1}).length!==1}catch{return!0}},l.exports=d}),require_set_function_length=__commonJSMin((n,l)=>{var a=require_get_intrinsic(),d=require_define_data_property(),u=require_has_property_descriptors()(),y=require_gopd(),e=require_type(),s=a("%Math.floor%");l.exports=function(h,f){if(typeof h!="function")throw new e("`fn` is not a function");if(typeof f!="number"||f<0||f>4294967295||s(f)!==f)throw new e("`length` must be a positive 32-bit integer");var o=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in h&&y){var i=y(h,"length");i&&!i.configurable&&(r=!1),i&&!i.writable&&(c=!1)}return(r||c||!o)&&(u?d(h,"length",f,!0,!0):d(h,"length",f)),h}}),require_applyBind=__commonJSMin((n,l)=>{var a=require_function_bind(),d=require_functionApply(),u=require_actualApply();l.exports=function(){return u(a,d,arguments)}}),require_call_bind=__commonJSMin((n,l)=>{var a=require_set_function_length(),d=require_es_define_property$1(),u=require_call_bind_apply_helpers(),y=require_applyBind();l.exports=function(s){var p=u(arguments),h=1+s.length-(arguments.length-1);return a(p,h>0?h:0,!0)},d?d(l.exports,"apply",{value:y}):l.exports.apply=y}),require_callBound=__commonJSMin((n,l)=>{var a=require_get_intrinsic$1(),d=require_call_bind(),u=d(a("String.prototype.indexOf"));l.exports=function(e,s){var p=a(e,!!s);return typeof p=="function"&&u(e,".prototype.")>-1?d(p):p}}),require_is_arguments=__commonJSMin((n,l)=>{var a=require_shams$1()(),d=require_callBound()("Object.prototype.toString"),u=function(p){return a&&p&&typeof p=="object"&&Symbol.toStringTag in p?!1:d(p)==="[object Arguments]"},y=function(p){return u(p)?!0:p!==null&&typeof p=="object"&&typeof p.length=="number"&&p.length>=0&&d(p)!=="[object Array]"&&d(p.callee)==="[object Function]"},e=function(){return u(arguments)}();u.isLegacyArguments=y,l.exports=e?u:y}),require_call_bound=__commonJSMin((n,l)=>{var a=require_get_intrinsic$1(),d=require_call_bind_apply_helpers(),u=d([a("%String.prototype.indexOf%")]);l.exports=function(e,s){var p=a(e,!!s);return typeof p=="function"&&u(e,".prototype.")>-1?d([p]):p}}),require_is_regex=__commonJSMin((n,l)=>{var a=require_call_bound(),d=require_shams$1()(),u=require_hasown$1(),y=require_gopd$
71(),e;if(d){var s=a("RegExp.prototype.exec"),p={},h=function(){throw p},f={toString:h,valueOf:h};typeof Symbol.toPrimitive=="symbol"&&(f[Symbol.toPrimitive]=h),e=function(i){if(!i||typeof i!="object")return!1;var v=y(i,"lastIndex");if(!(v&&u(v,"value")))return!1;try{s(i,f)}catch(b){return b===p}}}else{var o=a("Object.prototype.toString"),r="[object RegExp]";e=function(i){return!i||typeof i!="object"&&typeof i!="function"?!1:o(i)===r}}l.exports=e}),require_safe_regex_test=__commonJSMin((n,l)=>{var a=require_call_bound(),d=require_is_regex(),u=a("RegExp.prototype.exec"),y=require_type();l.exports=function(s){if(!d(s))throw new y("`regex` must be a RegExp");return function(h){return u(s,h)!==null}}}),require_generator_function=__commonJSMin((n,l)=>{var a=function*(){}.constructor;l.exports=()=>a}),require_is_generator_function=__commonJSMin((n,l)=>{var a=require_call_bound(),d=require_safe_regex_test()(/^\s*(?:function)?\*/),u=require_shams$1()(),y=require_get_proto(),e=a("Object.prototype.toString"),s=a("Function.prototype.toString"),p=require_generator_function();l.exports=function(f){if(typeof f!="function")return!1;if(d(s(f)))return!0;if(!u)return e(f)==="[object GeneratorFunction]";if(!y)return!1;var o=p();return o&&y(f)===o.prototype}}),require_is_callable=__commonJSMin((n,l)=>{var a=Function.prototype.toString,d=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,u,y;if(typeof d=="function"&&typeof Object.defineProperty=="function")try{u=Object.defineProperty({},"length",{get:function(){throw y}}),y={},d(function(){throw 42},null,u)}catch(k){k!==y&&(d=null)}else d=null;var e=/^\s*class\b/,s=function(D){try{var N=a.call(D);return e.test(N)}catch{return!1}},p=function(D){try{return s(D)?!1:(a.call(D),!0)}catch{return!1}},h=Object.prototype.toString,f="[object Object]",o="[object Function]",r="[object GeneratorFunction]",c="[object HTMLAllCollection]",i="[object HTML document.all class]",v="[object HTMLCollection]",b=typeof Symbol=="function"&&!!Symbol.toStringTag,S=!(0 in[,]),q=function(){return!1};if(typeof document=="object"){var I=document.all;h.call(I)===h.call(document.all)&&(q=function(D){if((S||!D)&&(typeof D>"u"||typeof D=="object"))try{var N=h.call(D);return(N===c||N===i||N===v||N===f)&&D("")==null}catch{}return!1})}l.exports=d?function(D){if(q(D))return!0;if(!D||typeof D!="function"&&typeof D!="object")return!1;try{d(D,null,u)}catch(N){if(N!==y)return!1}return!s(D)&&p(D)}:function(D){if(q(D))return!0;if(!D||typeof D!="function"&&typeof D!="object")return!1;if(b)return p(D);if(s(D))return!1;var N=h.call(D);return N!==o&&N!==r&&!/^\[object HTML/.test(N)?!1:p(D)}}),require_for_each=__commonJSMin((n,l)=>{var a=require_is_callable(),d=Object.prototype.toString,u=Object.prototype.hasOwnProperty,y=function(f,o,r){for(var c=0,i=f.length;c<i;c++)u.call(f,c)&&(r==null?o(f[c],c,f):o.call(r,f[c],c,f))},e=function(f,o,r){for(var c=0,i=f.length;c<i;c++)r==null?o(f.charAt(c),c,f):o.call(r,f.charAt(c),c,f)},s=function(f,o,r){for(var c in f)u.call(f,c)&&(r==null?o(f[c],c,f):o.call(r,f[c],c,f))};function p(h){return d.call(h)==="[object Array]"}l.exports=function(f,o,r){if(!a(o))throw new TypeError("iterator must be a function");var c;arguments.length>=3&&(c=r),p(f)?y(f,o,c):typeof f=="string"?e(f,o,c):s(f,o,c)}}),require_possible_typed_array_names=__commonJSMin((n,l)=>{l.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),require_available_typed_arrays=__commonJSMin((n,l)=>{init_dist$1();var a=require_possible_typed_array_names(),d=typeof globalThis>"u"?global$1:globalThis;l.exports=function(){for(var y=[],e=0;e<a.length;e++)typeof d[a[e]]=="function"&&(y[y.length]=a[e]);return y}}),require_which_typed_array=__commonJSMin((n,l)=>{init_dist$1();var a=require_for_each(),d=require_available_typed_arrays(),u=require_call_bind(),y=require_call_bound(),e=require_gopd$1(),s=require_get_proto(),p=y("Object.prototype.toString"),h=require_shams$1()(),f=typeof globalThis>"u"?global$1:globalThis,o=d(),r=y("String.prototype.slice"),c=y("Array.prototype.indexOf",!0)||function(q,I){for(var k=0;k<q.length;k+=1)if(q[k]===I)return k;return-1},i={__proto__:null};h&&e&&s?a(o,function(S){var q=new f[S];if(Symbol.toStringTag in q&&s){var I=s(q),k=e(I,Symbol.toStringTag);if(!k&&I&&(k=e(s(I),Symbol.toStringTag)),k&&k.get){var D=u(k.get);i["$"+S]=D}}}):a(o,function(S){var q=new f[S],I=q.slice||q.set;if(I){var k=u(I);i["$"+S]=k}});var v=function(q){var I=!1;return a(i,function(k,D){if(!I)try{"$"+k(q)===D&&(I=r(D,1))}catch{}}),I},b=function(q){var I=!1;return a(i,function(k,D){if(!I)try{k(q),I=r(D,1)}catch{}}),I};l.exports=function(q){if(!q||typeof q!="object")return!1;
7if(!h){var I=r(p(q),8,-1);return c(o,I)>-1?I:I!=="Object"?!1:b(q)}return e?v(q):null}}),require_is_typed_array=__commonJSMin((n,l)=>{var a=require_which_typed_array();l.exports=function(u){return!!a(u)}}),require_types=__commonJSMin(n=>{var l=require_is_arguments(),a=require_is_generator_function(),d=require_which_typed_array(),u=require_is_typed_array();function y(ie){return ie.call.bind(ie)}var e=typeof BigInt<"u",s=typeof Symbol<"u",p=y(Object.prototype.toString),h=y(Number.prototype.valueOf),f=y(String.prototype.valueOf),o=y(Boolean.prototype.valueOf);if(e)var r=y(BigInt.prototype.valueOf);if(s)var c=y(Symbol.prototype.valueOf);function i(ie,ve){if(typeof ie!="object")return!1;try{return ve(ie),!0}catch{return!1}}n.isArgumentsObject=l,n.isGeneratorFunction=a,n.isTypedArray=u;function v(ie){return typeof Promise<"u"&&ie instanceof Promise||ie!==null&&typeof ie=="object"&&typeof ie.then=="function"&&typeof ie.catch=="function"}n.isPromise=v;function b(ie){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(ie):u(ie)||T(ie)}n.isArrayBufferView=b;function S(ie){return d(ie)==="Uint8Array"}n.isUint8Array=S;function q(ie){return d(ie)==="Uint8ClampedArray"}n.isUint8ClampedArray=q;function I(ie){return d(ie)==="Uint16Array"}n.isUint16Array=I;function k(ie){return d(ie)==="Uint32Array"}n.isUint32Array=k;function D(ie){return d(ie)==="Int8Array"}n.isInt8Array=D;function N(ie){return d(ie)==="Int16Array"}n.isInt16Array=N;function F(ie){return d(ie)==="Int32Array"}n.isInt32Array=F;function z(ie){return d(ie)==="Float32Array"}n.isFloat32Array=z;function G(ie){return d(ie)==="Float64Array"}n.isFloat64Array=G;function Z(ie){return d(ie)==="BigInt64Array"}n.isBigInt64Array=Z;function re(ie){return d(ie)==="BigUint64Array"}n.isBigUint64Array=re;function C(ie){return p(ie)==="[object Map]"}C.working=typeof Map<"u"&&C(new Map);function m(ie){return typeof Map>"u"?!1:C.working?C(ie):ie instanceof Map}n.isMap=m;function O(ie){return p(ie)==="[object Set]"}O.working=typeof Set<"u"&&O(new Set);function E(ie){return typeof Set>"u"?!1:O.working?O(ie):ie instanceof Set}n.isSet=E;function t(ie){return p(ie)==="[object WeakMap]"}t.working=typeof WeakMap<"u"&&t(new WeakMap);function g(ie){return typeof WeakMap>"u"?!1:t.working?t(ie):ie instanceof WeakMap}n.isWeakMap=g;function R(ie){return p(ie)==="[object WeakSet]"}R.working=typeof WeakSet<"u"&&R(new WeakSet);function M(ie){return R(ie)}n.isWeakSet=M;function w(ie){return p(ie)==="[object ArrayBuffer]"}w.working=typeof ArrayBuffer<"u"&&w(new ArrayBuffer);function _(ie){return typeof ArrayBuffer>"u"?!1:w.working?w(ie):ie instanceof ArrayBuffer}n.isArrayBuffer=_;function B(ie){return p(ie)==="[object DataView]"}B.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&B(new DataView(new ArrayBuffer(1),0,1));function T(ie){return typeof DataView>"u"?!1:B.working?B(ie):ie instanceof DataView}n.isDataView=T;var A=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function $(ie){return p(ie)==="[object SharedArrayBuffer]"}function te(ie){return typeof A>"u"?!1:(typeof $.working>"u"&&($.working=$(new A)),$.working?$(ie):ie instanceof A)}n.isSharedArrayBuffer=te;function W(ie){return p(ie)==="[object AsyncFunction]"}n.isAsyncFunction=W;function K(ie){return p(ie)==="[object Map Iterator]"}n.isMapIterator=K;function L(ie){return p(ie)==="[object Set Iterator]"}n.isSetIterator=L;function U(ie){return p(ie)==="[object Generator]"}n.isGeneratorObject=U;function X(ie){return p(ie)==="[object WebAssembly.Module]"}n.isWebAssemblyCompiledModule=X;function j(ie){return i(ie,h)}n.isNumberObject=j;function J(ie){return i(ie,f)}n.isStringObject=J;function Q(ie){return i(ie,o)}n.isBooleanObject=Q;function ne(ie){return e&&i(ie,r)}n.isBigIntObject=ne;function se(ie){return s&&i(ie,c)}n.isSymbolObject=se;function oe(ie){return j(ie)||J(ie)||Q(ie)||ne(ie)||se(ie)}n.isBoxedPrimitive=oe;function we(ie){return typeof Uint8Array<"u"&&(_(ie)||te(ie))}n.isAnyArrayBuffer=we,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(ie){Object.defineProperty(n,ie,{enumerable:!1,value:function(){throw new Error(ie+" is not supported in userland")}})})}),require_isBufferBrowser=__commonJSMin((n,l)=>{l.exports=function(d){return d&&typeof d=="object"&&typeof d.copy=="function"&&typeof d.fill=="function"&&typeof d.readUInt8=="function"}}),require_util$1=__commonJSMin(n=>{init_dist$2();var l=Object.getOwnPropertyDescriptors||function(T){for(var A=Object.keys(T),$={},te=0;te<A.length;te++)$[A[te]]=Object.getOwnPropertyDescriptor(T,A[te]);return $},a=/%[sdj%]/g;n.format=function(B){if(!D(B)){for(var T=[],A=0;A<arguments.length;A++)T.push(e(arguments[A]));return T.join(" ")}for(var A=1,$=arguments,te=$.length,W=String(B).replace(a,function(L){if(L==="%%")return"%";if(A>=te)return L;switch(L){case"%s":return String($[A++]);case"%d":return Number($[A++]);case"%j":try{return JSON.stringify($[A++])}catch{return"[Circular]"}default:return L}}),K=$[A];A<te;K=$[++A])q(K)||!G(K)?W+=" "+K:W+=" "+e(K);return W},n.deprecate=function(B,T){if(typeof process$1<"u"&&process$1.noDeprecation===!0)return B;if(typeof process$1>"u")return function(){return n.deprecate(B,T).apply(this,arguments)};var A=!1;function $(){if(!A){if(process$1.throwDeprecation)throw new Error(T);process$1.traceDeprecation?console.trace(T):console.error(T),A=!0}return B.apply(this,arguments)}return $};var d={},u=/^$/;if({}.NODE_DEBUG){var y={}.NODE_DEBUG;y=y.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+y+"$","i")}n.debuglog=function(B){if(B=B.toUpperCase(),!d[B])if(u.test(B)){var T=process$1.pid;d[B]=function(){var A=n.format.apply(n,arguments);console.error("%s %d: %s",B,T,A)}}else d[B]=function(){};return d[B]};function e(B,T){var A={seen:[],stylize:p};return arguments.length>=3&&(A.depth=arguments[2]),arguments.length>=4&&(A.colors=arguments[3]),S(T)?A.showHidden=T:T&&n._extend(A,T),F(A.showHidden)&&(A.showHidden=!1),F(A.depth)&&(A.depth=2),F(A.colors)&&(A.colors=!1),F(A.customInspect)&&(A.customInspect=!0),A.colors&&(A.stylize=s),f(A,B,A.depth)}n.inspect=e,e.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},e.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(B,T){var A=e.styles[T];return A?"\x1B["+e.colors[A][0]+"m"+B+"\x1B["+e.colors[A][1]+"m":B}function p(B,T){return B}function h(B){var T={};return B.forEach(function(A,$){T[A]=!0}),T}function f(B,T,A){if(B.customInspect&&T&&C(T.inspect)&&T.inspect!==n.inspect&&!(T.constructor&&T.constructor.prototype===T)){var $=T.inspect(A,B);return D($)||($=f(B,$,A)),$}var te=o(B,T);if(te)return te;var W=Object.keys(T),K=h(W);if(B.showHidden&&(W=Object.getOwnPropertyNames(T)),re(T)&&(W.indexOf("message")>=0||W.indexOf("description")>=0))return r(T);if(W.length===0){if(C(T)){var L=T.name?": "+T.name:"";return B.stylize("[Function"+L+"]","special")}if(z(T))return B.stylize(RegExp.prototype.toString.call(T),"regexp");if(Z(T))return B.stylize(Date.prototype.toString.call(T),"date");if(re(T))return r(T)}var U="",X=!1,j=["{","}"];if(b(T)&&(X=!0,j=["[","]"]),C(T)&&(U=" [Function"+(T.name?": "+T.name:"")+"]"),z(T)&&(U=" "+RegExp.prototype.toString.call(T)),Z(T)&&(U=" "+Date.prototype.toUTCString.call(T)),re(T)&&(U=" "+r(T)),W.length===0&&(!X||T.length==0))return j[0]+U+j[1];if(A<0)return z(T)?B.stylize(RegExp.prototype.toString.call(T),"regexp"):B.stylize("[Object]","special");B.seen.push(T);var J;return X?J=c(B,T,A,K,W):J=W.map(function(Q){return i(B,T,A,K,Q,X)}),B.seen.pop(),v(J,U,j)}function o(B,T){if(F(T))return B.stylize("undefined","undefined");if(D(T)){var A="'"+JSON.stringify(T).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return B.stylize(A,"string")}if(k(T))return B.stylize(""+T,"number");if(S(T))return B.stylize(""+T,"boolean");if(q(T))return B.stylize("null","null")}function r(B){return"["+Error.prototype.toString.call(B)+"]"}function c(B,T,A,$,te){for(var W=[],K=0,L=T.length;K<L;++K)R(T,String(K))?W.push(i(B,T,A,$,String(K),!0)):W.push("");return te.forEach(function(U){U.match(/^\d+$/)||W.push(i(B,T,A,$,U,!0))}),W}function i(B,T,A,$,te,W){var K,L,U=Object.getOwnPropertyDescriptor(T,te)||{value:T[te]};if(U.get?U.set?L=B.stylize("[Getter/Setter]","special"):L=B.stylize("[Getter]","special"):U.set&&(L=B.stylize("[
7Setter]","special")),R($,te)||(K="["+te+"]"),L||(B.seen.indexOf(U.value)<0?(q(A)?L=f(B,U.value,null):L=f(B,U.value,A-1),L.indexOf(`
8`)>-1&&(W?L=L.split(`
9`).map(function(X){return"  "+X}).join(`
10`).slice(2):L=`
11`+L.split(`
12`).map(function(X){return"   "+X}).join(`
13`))):L=B.stylize("[Circular]","special")),F(K)){if(W&&te.match(/^\d+$/))return L;K=JSON.stringify(""+te),K.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(K=K.slice(1,-1),K=B.stylize(K,"name")):(K=K.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),K=B.stylize(K,"string"))}return K+": "+L}function v(B,T,A){var $=0;return B.reduce(function(te,W){return $++,W.indexOf(`
14`)>=0&&$++,te+W.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?A[0]+(T===""?"":T+`
15 `)+" "+B.join(`,
16  `)+" "+A[1]:A[0]+T+" "+B.join(", ")+" "+A[1]}n.types=require_types();function b(B){return Array.isArray(B)}n.isArray=b;function S(B){return typeof B=="boolean"}n.isBoolean=S;function q(B){return B===null}n.isNull=q;function I(B){return B==null}n.isNullOrUndefined=I;function k(B){return typeof B=="number"}n.isNumber=k;function D(B){return typeof B=="string"}n.isString=D;function N(B){return typeof B=="symbol"}n.isSymbol=N;function F(B){return B===void 0}n.isUndefined=F;function z(B){return G(B)&&O(B)==="[object RegExp]"}n.isRegExp=z,n.types.isRegExp=z;function G(B){return typeof B=="object"&&B!==null}n.isObject=G;function Z(B){return G(B)&&O(B)==="[object Date]"}n.isDate=Z,n.types.isDate=Z;function re(B){return G(B)&&(O(B)==="[object Error]"||B instanceof Error)}n.isError=re,n.types.isNativeError=re;function C(B){return typeof B=="function"}n.isFunction=C;function m(B){return B===null||typeof B=="boolean"||typeof B=="number"||typeof B=="string"||typeof B=="symbol"||typeof B>"u"}n.isPrimitive=m,n.isBuffer=require_isBufferBrowser();function O(B){return Object.prototype.toString.call(B)}function E(B){return B<10?"0"+B.toString(10):B.toString(10)}var t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function g(){var B=new Date,T=[E(B.getHours()),E(B.getMinutes()),E(B.getSeconds())].join(":");return[B.getDate(),t[B.getMonth()],T].join(" ")}n.log=function(){console.log("%s - %s",g(),n.format.apply(n,arguments))},n.inherits=require_inherits_browser(),n._extend=function(B,T){if(!T||!G(T))return B;for(var A=Object.keys(T),$=A.length;$--;)B[A[$]]=T[A[$]];return B};function R(B,T){return Object.prototype.hasOwnProperty.call(B,T)}var M=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;n.promisify=function(T){if(typeof T!="function")throw new TypeError('The "original" argument must be of type Function');if(M&&T[M]){var A=T[M];if(typeof A!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(A,M,{value:A,enumerable:!1,writable:!1,configurable:!0}),A}function A(){for(var $,te,W=new Promise(function(U,X){$=U,te=X}),K=[],L=0;L<arguments.length;L++)K.push(arguments[L]);K.push(function(U,X){U?te(U):$(X)});try{T.apply(this,K)}catch(U){te(U)}return W}return Object.setPrototypeOf(A,Object.getPrototypeOf(T)),M&&Object.defineProperty(A,M,{value:A,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(A,l(T))},n.promisify.custom=M;function w(B,T){if(!B){var A=new Error("Promise was rejected with a falsy value");A.reason=B,B=A}return T(B)}function _(B){if(typeof B!="function")throw new TypeError('The "original" argument must be of type Function');function T(){for(var A=[],$=0;$<arguments.length;$++)A.push(arguments[$]);var te=A.pop();if(typeof te!="function")throw new TypeError("The last argument must be of type Function");var W=this,K=function(){return te.apply(W,arguments)};B.apply(this,A).then(function(L){process$1.nextTick(K.bind(null,null,L))}
vendor: 4,521 bytes, line 16
16,function(L){process$1.nextTick(w.bind(null,L,K))})}return Object.setPrototypeOf(T,Object.getPrototypeOf(B)),Object.defineProperties(T,l(B)),T}n.callbackify=_}),require_buffer_list=__commonJSMin((n,l)=>{function a(i,v){var b=Object.keys(i);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(i);v&&(S=S.filter(function(q){return Object.getOwnPropertyDescriptor(i,q).enumerable})),b.push.apply(b,S)}return b}function d(i){for(var v=1;v<arguments.length;v++){var b=arguments[v]!=null?arguments[v]:{};v%2?a(Object(b),!0).forEach(function(S){u(i,S,b[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(b)):a(Object(b)).forEach(function(S){Object.defineProperty(i,S,Object.getOwnPropertyDescriptor(b,S))})}return i}function u(i,v,b){return v=p(v),v in i?Object.defineProperty(i,v,{value:b,enumerable:!0,configurable:!0,writable:!0}):i[v]=b,i}function y(i,v){if(!(i instanceof v))throw new TypeError("Cannot call a class as a function")}function e(i,v){for(var b=0;b<v.length;b++){var S=v[b];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(i,p(S.key),S)}}function s(i,v,b){return v&&e(i.prototype,v),b&&e(i,b),Object.defineProperty(i,"prototype",{writable:!1}),i}function p(i){var v=h(i,"string");return typeof v=="symbol"?v:String(v)}function h(i,v){if(typeof i!="object"||i===null)return i;var b=i[Symbol.toPrimitive];if(b!==void 0){var S=b.call(i,v||"default");if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(v==="string"?String:Number)(i)}var f=require_dist().Buffer,o=require_util$1().inspect,r=o&&o.custom||"inspect";function c(i,v,b){f.prototype.copy.call(i,v,b)}l.exports=function(){function i(){y(this,i),this.head=null,this.tail=null,this.length=0}return s(i,[{key:"push",value:function(b){var S={data:b,next:null};this.length>0?this.tail.next=S:this.head=S,this.tail=S,++this.length}},{key:"unshift",value:function(b){var S={data:b,next:this.head};this.length===0&&(this.tail=S),this.head=S,++this.length}},{key:"shift",value:function(){if(this.length!==0){var b=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,b}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(b){if(this.length===0)return"";for(var S=this.head,q=""+S.data;S=S.next;)q+=b+S.data;return q}},{key:"concat",value:function(b){if(this.length===0)return f.alloc(0);for(var S=f.allocUnsafe(b>>>0),q=this.head,I=0;q;)c(q.data,S,I),I+=q.data.length,q=q.next;return S}},{key:"consume",value:function(b,S){var q;return b<this.head.data.length?(q=this.head.data.slice(0,b),this.head.data=this.head.data.slice(b)):b===this.head.data.length?q=this.shift():q=S?this._getString(b):this._getBuffer(b),q}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(b){var S=this.head,q=1,I=S.data;for(b-=I.length;S=S.next;){var k=S.data,D=b>k.length?k.length:b;if(D===k.length?I+=k:I+=k.slice(0,b),b-=D,b===0){D===k.length?(++q,S.next?this.head=S.next:this.head=this.tail=null):(this.head=S,S.data=k.slice(D));break}++q}return this.length-=q,I}},{key:"_getBuffer",value:function(b){var S=f.allocUnsafe(b),q=this.head,I=1;for(q.data.copy(S),b-=q.data.length;q=q.next;){var k=q.data,D=b>k.length?k.length:b;if(k.copy(S,S.length-b,0,D),b-=D,b===0){D===k.length?(++I,q.next?this.head=q.next:this.head=this.tail=null):(this.head=q,q.data=k.slice(D));break}++I}return this.length-=I,S}},{key:r,value:function(b,S){return o(this,d(d({},S),{},{depth:0,customInspect:!1}))}}]),i}()}),require_destroy$1=__commonJSMin((n,l)=>{init_dist$2();function a(p,h){var f=this,o=this._readableState&&this._readableState.destroyed,r=this._writableState&&this._writableState.destroyed;return o||r?(h?h(p):p&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process$1.nextTick(e,this,p)):process$1.nextTick(e,this,p)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(c){!h&&c?f._writableState?f._writableState.errorEmitted?process$1.nextTick(u,f):(f._writableState.errorEmitted=!0,process$1.nextTick(d,f,c)):process$1.nextTick(d,f,c):h?(process$1.nextTick(u,f),h(c)):process$1.nextTick(u,f)}),this)}function d(p,h){e(p,h),u(p)}function u(p){p._writableState&&!p._writableState.emitClose||p._readableState&&!p._readableState.emitClose||p.emit
16("close")}function y(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function e(p,h){p.emit("error",h)}function s(p,h){var f=p._readableState,o=p._writableState;f&&f.autoDestroy||o&&o.autoDestroy?p.destroy(h):p.emit("error",h)}l.exports={destroy:a,undestroy:y,errorOrDestroy:s}}),require_errors_browser=__commonJSMin((n,l)=>{function a(h,f){h.prototype=Object.create(f.prototype),h.prototype.constructor=h,h.__proto__=f}var d={};function u(h,f,o){o||(o=Error);function r(i,v,b){return typeof f=="string"?f:f(i,v,b)}var c=function(i){a(v,i);function v(b,S,q){return i.call(this,r(b,S,q))||this}return v}(o);c.prototype.name=o.name,c.prototype.code=h,d[h]=c}function y(h,f){if(Array.isArray(h)){var o=h.length;return h=h.map(function(r){return String(r)}),o>2?"one of ".concat(f," ").concat(h.slice(0,o-1).join(", "),", or ")+h[o-1]:o===2?"one of ".concat(f," ").concat(h[0]," or ").concat(h[1]):"of ".concat(f," ").concat(h[0])}else return"of ".concat(f," ").concat(String(h))}function e(h,f,o){return h.substr(!o||o<0?0:+o,f.length)===f}function s(h,f,o){return(o===void 0||o>h.length)&&(o=h.length),h.substring(o-f.length,o)===f}function p(h,f,o){return typeof o!="number"&&(o=0),o+f.length>h.length?!1:h.indexOf(f,o)!==-1}u("ERR_INVALID_OPT_VALUE",function(h,f){return'The value "'+f+'" is invalid for option "'+h+'"'},TypeError),u("ERR_INVALID_ARG_TYPE",function(h,f,o){var r;typeof f=="string"&&e(f,"not ")?(r="must not be",f=f.replace(/^not /,"")):r="must be";var c;if(s(h," argument"))c="The ".concat(h," ").concat(r," ").concat(y(f,"type"));else{var i=p(h,".")?"property":"argument";c='The "'.concat(h,'" ').concat(i," ").concat(r," ").concat(y(f,"type"))}return c+=". Received type ".concat(typeof o),c},TypeError),u("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),u("ERR_METHOD_NOT_IMPLEMENTED",function(h){return"The "+h+" method is not implemented"}),u("ERR_STREAM_PREMATURE_CLOSE","Premature close"),u("ERR_STREAM_DESTROYED",function(h){return"Cannot call "+h+" after a stream was destroyed"}),u("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),u("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),u("ERR_STREAM_WRITE_AFTER_END","write after end"),u("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),u("ERR_UNKNOWN_ENCODING",function(h){return"Unknown encoding: "+h},TypeError),u("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),l.exports.codes=d}),require_state=__commonJSMin((n,l)=>{var a=require_errors_browser().codes.ERR_INVALID_OPT_VALUE;function d(y,e,s){return y.highWaterMark!=null?y.highWaterMark:e?y[s]:null}function u(y,e,s,p){var h=d(e,p,s);if(h!=null){if(!(isFinite(h)&&Math.floor(h)===h)||h<0)throw new a(p?s:"highWaterMark",h);return Math.floor(h)}return y.objectMode?16:16*1024}l.exports={getHighWaterMark:u}}),require_browser$10=__commonJSMin((n,l)=>{init_dist$1(),l.exports=a;function a(u,y){if(d("noDeprecation"))return u;var e=!1;function s(){if(!e){if(d("throwDeprecation"))throw new Error(y);d("traceDeprecation")?console.trace(y):console.warn(y),e=!0}return u.apply(this,arguments)}return s}function d(u){try{if(!global$1.localStorage)return!1}catch{return!1}var y=global$1.localStorage[u];return y==null?!1:String(y).toLowerCase()==="true"}}),require__stream_writable$1=__commonJSMin((n,l)=>{init_dist$1(),init_dist$2(),l.exports=G;function a(W){var K=this;this.next=null,this.entry=null,this.finish=function(){te(K,W)}}var d;G.WritableState=F;var u={deprecate:require_browser$10()},y=require_stream_browser$1(),e=require_dist().Buffer,s=(typeof global$1<"u"?global$1:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function p(W){return e.from(W)}function h(W){return e.isBuffer(W)||W instanceof s}var f=require_destroy$1(),o=require_state().getHighWaterMark,r=require_errors_browser().codes,c=r.ERR_INVALID_ARG_TYPE,i=r.ERR_METHOD_NOT_IMPLEMENT
vendor: 13,517 bytes, line 16
16ED,v=r.ERR_MULTIPLE_CALLBACK,b=r.ERR_STREAM_CANNOT_PIPE,S=r.ERR_STREAM_DESTROYED,q=r.ERR_STREAM_NULL_VALUES,I=r.ERR_STREAM_WRITE_AFTER_END,k=r.ERR_UNKNOWN_ENCODING,D=f.errorOrDestroy;require_inherits_browser()(G,y);function N(){}function F(W,K,L){d=d||require__stream_duplex$1(),W=W||{},typeof L!="boolean"&&(L=K instanceof d),this.objectMode=!!W.objectMode,L&&(this.objectMode=this.objectMode||!!W.writableObjectMode),this.highWaterMark=o(this,W,"writableHighWaterMark",L),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var U=W.decodeStrings===!1;this.decodeStrings=!U,this.defaultEncoding=W.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(X){g(K,X)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=W.emitClose!==!1,this.autoDestroy=!!W.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}F.prototype.getBuffer=function(){for(var K=this.bufferedRequest,L=[];K;)L.push(K),K=K.next;return L},function(){try{Object.defineProperty(F.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var z;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(z=Function.prototype[Symbol.hasInstance],Object.defineProperty(G,Symbol.hasInstance,{value:function(K){return z.call(this,K)?!0:this!==G?!1:K&&K._writableState instanceof F}})):z=function(K){return K instanceof this};function G(W){d=d||require__stream_duplex$1();var K=this instanceof d;if(!K&&!z.call(G,this))return new G(W);this._writableState=new F(W,this,K),this.writable=!0,W&&(typeof W.write=="function"&&(this._write=W.write),typeof W.writev=="function"&&(this._writev=W.writev),typeof W.destroy=="function"&&(this._destroy=W.destroy),typeof W.final=="function"&&(this._final=W.final)),y.call(this)}G.prototype.pipe=function(){D(this,new b)};function Z(W,K){var L=new I;D(W,L),process$1.nextTick(K,L)}function re(W,K,L,U){var X;return L===null?X=new q:typeof L!="string"&&!K.objectMode&&(X=new c("chunk",["string","Buffer"],L)),X?(D(W,X),process$1.nextTick(U,X),!1):!0}G.prototype.write=function(W,K,L){var U=this._writableState,X=!1,j=!U.objectMode&&h(W);return j&&!e.isBuffer(W)&&(W=p(W)),typeof K=="function"&&(L=K,K=null),j?K="buffer":K||(K=U.defaultEncoding),typeof L!="function"&&(L=N),U.ending?Z(this,L):(j||re(this,U,W,L))&&(U.pendingcb++,X=m(this,U,j,W,K,L)),X},G.prototype.cork=function(){this._writableState.corked++},G.prototype.uncork=function(){var W=this._writableState;W.corked&&(W.corked--,!W.writing&&!W.corked&&!W.bufferProcessing&&W.bufferedRequest&&w(this,W))},G.prototype.setDefaultEncoding=function(K){if(typeof K=="string"&&(K=K.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((K+"").toLowerCase())>-1))throw new k(K);return this._writableState.defaultEncoding=K,this},Object.defineProperty(G.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function C(W,K,L){return!W.objectMode&&W.decodeStrings!==!1&&typeof K=="string"&&(K=e.from(K,L)),K}Object.defineProperty(G.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function m(W,K,L,U,X,j){if(!L){var J=C(K,U,X);U!==J&&(L=!0,X="buffer",U=J)}var Q=K.objectMode?1:U.length;K.length+=Q;var ne=K.length<K.highWaterMark;if(ne||(K.needDrain=!0),K.writing||K.corked){var se=K.lastBufferedRequest;K.lastBufferedRequest={chunk:U,encoding:X,isBuf:L,callback:j,next:null},se?se.next=K.lastBufferedRequest:K.bufferedRequest=K.lastBufferedRequest,K.bufferedRequestCount+=1}else O(W,K,!1,Q,U,X,j);return ne}function O(W,K,L,U,X,j,J){K.writelen=U,K.writecb=J,K.writing=!0,K.sync=!0,K.destroyed?K.onwrite(new S("write")):L?W._writev(X,K.onwrite):W._write(X,j,K.onwrite),K.sync=!1}function E(W,K,L,U,X){--K.pendingcb,L?(process$1.nextTick(X,U),process$1.nextTick(A,W,K),W._writableState.errorEmitted=!0,D(W,U)):(X(U),W._writableState.errorEmitted=!0,D(W,U),A(W,K))}function t(W){W.writing=!1,W.writecb=null,W.length-=W.writelen,W.writelen=0}function g(W,K){var L=W._writableState,U=L.sync,X=L.writecb;if(typeof X!="function")throw new v;if(t(L),K)E(W,L,U,K,X);else{var j=_(L)||W.destroyed;!j&&!L.corked&&!L.bufferProcessing&&L.bufferedRequest&&w(W,L),U?process$1.nextTick(R,W,L,j,X):R(W,L,j,X)}}function R(W,K,L,U){L||M(W,K),K.pendingcb--,U(),A(W,K)}function M(W,K){K.length===0&&K.needDrain&&(K.needDrain=!1,W.emit("drain"))}function w(W,K){K.bufferProcessing=!0;var L=K.bufferedRequest;if(W._writev&&L&&L.next){var U=K.bufferedRequestCount,X=new Array(U),j=K.corkedRequestsFree;j.entry=L;for(var J=0,Q=!0;L;)X[J]=L,L.isBuf||(Q=!1),L=L.next,J+=1;X.allBuffers=Q,O(W,K,!0,K.length,X,"",j.finish),K.pendingcb++,K.lastBufferedRequest=null,j.next?(K.corkedRequestsFree=j.next,j.next=null):K.corkedRequestsFree=new a(K),K.bufferedRequestCount=0}else{for(;L;){var ne=L.chunk,se=L.encoding,oe=L.callback;if(O(W,K,!1,K.objectMode?1:ne.length,ne,se,oe),L=L.next,K.bufferedRequestCount--,K.writing)break}L===null&&(K.lastBufferedRequest=null)}K.bufferedRequest=L,K.bufferProcessing=!1}G.prototype._write=function(W,K,L){L(new i("_write()"))},G.prototype._writev=null,G.prototype.end=function(W,K,L){var U=this._writableState;return typeof W=="function"?(L=W,W=null,K=null):typeof K=="function"&&(L=K,K=null),W!=null&&this.write(W,K),U.corked&&(U.corked=1,this.uncork()),U.ending||$(this,U,L),this},Object.defineProperty(G.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function _(W){return W.ending&&W.length===0&&W.bufferedRequest===null&&!W.finished&&!W.writing}function B(W,K){W._final(function(L){K.pendingcb--,L&&D(W,L),K.prefinished=!0,W.emit("prefinish"),A(W,K)})}function T(W,K){!K.prefinished&&!K.finalCalled&&(typeof W._final=="function"&&!K.destroyed?(K.pendingcb++,K.finalCalled=!0,process$1.nextTick(B,W,K)):(K.prefinished=!0,W.emit("prefinish")))}function A(W,K){var L=_(K);if(L&&(T(W,K),K.pendingcb===0&&(K.finished=!0,W.emit("finish"),K.autoDestroy))){var U=W._readableState;(!U||U.autoDestroy&&U.endEmitted)&&W.destroy()}return L}function $(W,K,L){K.ending=!0,A(W,K),L&&(K.finished?process$1.nextTick(L):W.once("finish",L)),K.ended=!0,W.writable=!1}function te(W,K,L){var U=W.entry;for(W.entry=null;U;){var X=U.callback;K.pendingcb--,X(L),U=U.next}K.corkedRequestsFree.next=W}Object.defineProperty(G.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(K){this._writableState&&(this._writableState.destroyed=K)}}),G.prototype.destroy=f.destroy,G.prototype._undestroy=f.undestroy,G.prototype._destroy=function(W,K){K(W)}}),require__stream_duplex$1=__commonJSMin((n,l)=>{init_dist$2();var a=Object.keys||function(o){var r=[];for(var c in o)r.push(c);return r};l.exports=p;var d=require__stream_readable$1(),u=require__stream_writable$1();require_inherits_browser()(p,d);for(var y=a(u.prototype),e=0;e<y.length;e++){var s=y[e];p.prototype[s]||(p.prototype[s]=u.prototype[s])}function p(o){if(!(this instanceof p))return new p(o);d.call(this,o),u.call(this,o),this.allowHalfOpen=!0,o&&(o.readable===!1&&(this.readable=!1),o.writable===!1&&(this.writable=!1),o.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",h)))}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(p.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function h(){this._writableState.ended||process$1.nextTick(f,this)}function f(o){o.end()}Object.defineProperty(p.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(r){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=r,this._writableState.destroyed=r)}})}),require_string_decoder=__commonJSMin(n=>{var l=require_safe_buffer$1().Buffer,a=l.isEncoding||function(q){switch(q=""+q,q&&q.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function d(q){if(!q)return"utf8";for(var I;;)switch(q){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return q;default:if(I)return;q=(""+q).toLowerCase(),I=!0}}function u(q){var I=d(q);if(typeof I!="string"&&(l.isEncoding===a||!a(q)))throw new Error("Unknown encoding: "+q);return I||q}n.StringDecoder=y;function y(q){this.encoding=u(q);var I;switch(this.encoding){case"utf16le":this.text=r,this.end=c,I=4;break;case"utf8":this.fillLast=h,I=4;break;case"base64":this.text=i,this.end=v,I=3;break;default:this.write=b,this.end=S;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=l.allocUnsafe(I)}y.prototype.write=function(q){if(q.length===0)return"";var I,k;if(this.lastNeed){if(I=this.fillLast(q),I===void 0)return"";k=this.lastNeed,this.lastNeed=0}else k=0;return k<q.length?I?I+this.text(q,k):this.text(q,k):I||""},y.prototype.end=o,y.prototype.text=f,y.prototype.fillLast=function(q){if(this.lastNeed<=q.length)return q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);q.copy(this.lastChar,this.lastTotal-this.lastNeed,0,q.length),this.lastNeed-=q.length};function e(q){return q<=127?0:q>>5===6?2:q>>4===14?3:q>>3===30?4:q>>6===2?-1:-2}function s(q,I,k){var D=I.length-1;if(D<k)return 0;var N=e(I[D]);return N>=0?(N>0&&(q.lastNeed=N-1),N):--D<k||N===-2?0:(N=e(I[D]),N>=0?(N>0&&(q.lastNeed=N-2),N):--D<k||N===-2?0:(N=e(I[D]),N>=0?(N>0&&(N===2?N=0:q.lastNeed=N-3),N):0))}function p(q,I,k){if((I[0]&192)!==128)return q.lastNeed=0,"�";if(q.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return q.lastNeed=1,"�";if(q.lastNeed>2&&I.length>2&&(I[2]&192)!==128)return q.lastNeed=2,"�"}}function h(q){var I=this.lastTotal-this.lastNeed,k=p(this,q,I);if(k!==void 0)return k;if(this.lastNeed<=q.length)return q.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);q.copy(this.lastChar,I,0,q.length),this.lastNeed-=q.length}function f(q,I){var k=s(this,q,I);if(!this.lastNeed)return q.toString("utf8",I);this.lastTotal=k;var D=q.length-(k-this.lastNeed);return q.copy(this.lastChar,0,D),q.toString("utf8",I,D)}function o(q){var I=q&&q.length?this.write(q):"";return this.lastNeed?I+"�":I}function r(q,I){if((q.length-I)%2===0){var k=q.toString("utf16le",I);if(k){var D=k.charCodeAt(k.length-1);if(D>=55296&&D<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=q[q.length-2],this.lastChar[1]=q[q.length-1],k.slice(0,-1)}return k}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=q[q.length-1],q.toString("utf16le",I,q.length-1)}function c(q){var I=q&&q.length?this.write(q):"";if(this.lastNeed){var k=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,k)}return I}function i(q,I){var k=(q.length-I)%3;return k===0?q.toString("base64",I):(this.lastNeed=3-k,this.lastTotal=3,k===1?this.lastChar[0]=q[q.length-1]:(this.lastChar[0]=q[q.length-2],this.lastChar[1]=q[q.length-1]),q.toString("base64",I,q.length-k))}function v(q){var I=q&&q.length?this.write(q):"";return this.lastNeed?I+this.lastChar.toString("base64",0,3-this.lastNeed):I}function b(q){return q.toString(this.encoding)}function S(q){return q&&q.length?this.write(q):""}}),require_end_of_stream=__commonJSMin((n,l)=>{var a=require_errors_browser().codes.ERR_STREAM_PREMATURE_CLOSE;function d(s){var p=!1;return function(){if(!p){p=!0;for(var h=arguments.length,f=new Array(h),o=0;o<h;o++)f[o]=arguments[o];s.apply(this,f)}}}function u(){}function y(s){return s.setHeader&&typeof s.abort=="function"}function e(s,p,h){if(typeof p=="function")return e(s,null,p);p||(p={}),h=d(h||u);var f=p.readable||p.readable!==!1&&s.readable,o=p.writable||p.writable!==!1&&s.writable,r=function(){s.writable||i()},c=s._writableState&&s._writableState.finished,i=function(){o=!1,c=!0,f||h.call(s)},v=s._readableState&&s._readableState.endEmitted,b=function(){f=!1,v=!0,o||h.call(s)},S=function(D){h.call(s,D)},q=function(){var D;if(f&&!v)return(!s._readableState||!s._readableState.ended)&&(D=new a),h.call(s,D);if(o&&!c)return(!s._writableState||!s._writableState.ended)&&(D=new a),h.call(s,D)},I=function(){s.req.on("finish",i)};return y(s)?(s.on("complete",i),s.on("abort",q),s.req?I():s.on("request",I)):o&&!s._writableState&&(s.on("end",r),s.on("close",r)),s.on("end",b),s.on("finish",i),p.error!==!1&&s.on("error",S),s.on("close",q),function(){s.removeListener("complete",i),s.removeListener("abort",q),s.removeListener("request",I),s.req&&s.req.removeListener("finish",i),s.removeListener("end",r),s.removeListener("close",r),s.removeListener("finish",i),s.removeListener("end",b),s.removeListener("error",S),s.removeListener("close",q)}}
vendor: 5,415 bytes, line 16
16l.exports=e}),require_async_iterator=__commonJSMin((n,l)=>{init_dist$2();var a;function d(D,N,F){return N=u(N),N in D?Object.defineProperty(D,N,{value:F,enumerable:!0,configurable:!0,writable:!0}):D[N]=F,D}function u(D){var N=y(D,"string");return typeof N=="symbol"?N:String(N)}function y(D,N){if(typeof D!="object"||D===null)return D;var F=D[Symbol.toPrimitive];if(F!==void 0){var z=F.call(D,N||"default");if(typeof z!="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return(N==="string"?String:Number)(D)}var e=require_end_of_stream(),s=Symbol("lastResolve"),p=Symbol("lastReject"),h=Symbol("error"),f=Symbol("ended"),o=Symbol("lastPromise"),r=Symbol("handlePromise"),c=Symbol("stream");function i(D,N){return{value:D,done:N}}function v(D){var N=D[s];if(N!==null){var F=D[c].read();F!==null&&(D[o]=null,D[s]=null,D[p]=null,N(i(F,!1)))}}function b(D){process$1.nextTick(v,D)}function S(D,N){return function(F,z){D.then(function(){if(N[f]){F(i(void 0,!0));return}N[r](F,z)},z)}}var q=Object.getPrototypeOf(function(){}),I=Object.setPrototypeOf((a={get stream(){return this[c]},next:function(){var N=this,F=this[h];if(F!==null)return Promise.reject(F);if(this[f])return Promise.resolve(i(void 0,!0));if(this[c].destroyed)return new Promise(function(re,C){process$1.nextTick(function(){N[h]?C(N[h]):re(i(void 0,!0))})});var z=this[o],G;if(z)G=new Promise(S(z,this));else{var Z=this[c].read();if(Z!==null)return Promise.resolve(i(Z,!1));G=new Promise(this[r])}return this[o]=G,G}},d(a,Symbol.asyncIterator,function(){return this}),d(a,"return",function(){var N=this;return new Promise(function(F,z){N[c].destroy(null,function(G){if(G){z(G);return}F(i(void 0,!0))})})}),a),q),k=function(N){var F,z=Object.create(I,(F={},d(F,c,{value:N,writable:!0}),d(F,s,{value:null,writable:!0}),d(F,p,{value:null,writable:!0}),d(F,h,{value:null,writable:!0}),d(F,f,{value:N._readableState.endEmitted,writable:!0}),d(F,r,{value:function(Z,re){var C=z[c].read();C?(z[o]=null,z[s]=null,z[p]=null,Z(i(C,!1))):(z[s]=Z,z[p]=re)},writable:!0}),F));return z[o]=null,e(N,function(G){if(G&&G.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Z=z[p];Z!==null&&(z[o]=null,z[s]=null,z[p]=null,Z(G)),z[h]=G;return}var re=z[s];re!==null&&(z[o]=null,z[s]=null,z[p]=null,re(i(void 0,!0))),z[f]=!0}),N.on("readable",b.bind(null,z)),z};l.exports=k}),require_from_browser=__commonJSMin((n,l)=>{l.exports=function(){throw new Error("Readable.from is not available in the browser")}}),require__stream_readable$1=__commonJSMin((n,l)=>{init_dist$1(),init_dist$2(),l.exports=Z;var a;Z.ReadableState=G,require_events().EventEmitter;var d=function(J,Q){return J.listeners(Q).length},u=require_stream_browser$1(),y=require_dist().Buffer,e=(typeof global$1<"u"?global$1:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function s(j){return y.from(j)}function p(j){return y.isBuffer(j)||j instanceof e}var h=require_util$1(),f;h&&h.debuglog?f=h.debuglog("stream"):f=function(){};var o=require_buffer_list(),r=require_destroy$1(),c=require_state().getHighWaterMark,i=require_errors_browser().codes,v=i.ERR_INVALID_ARG_TYPE,b=i.ERR_STREAM_PUSH_AFTER_EOF,S=i.ERR_METHOD_NOT_IMPLEMENTED,q=i.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,I,k,D;require_inherits_browser()(Z,u);var N=r.errorOrDestroy,F=["error","close","destroy","pause","resume"];function z(j,J,Q){if(typeof j.prependListener=="function")return j.prependListener(J,Q);!j._events||!j._events[J]?j.on(J,Q):Array.isArray(j._events[J])?j._events[J].unshift(Q):j._events[J]=[Q,j._events[J]]}function G(j,J,Q){a=a||require__stream_duplex$1(),j=j||{},typeof Q!="boolean"&&(Q=J instanceof a),this.objectMode=!!j.objectMode,Q&&(this.objectMode=this.objectMode||!!j.readableObjectMode),this.highWaterMark=c(this,j,"readableHighWaterMark",Q),this.buffer=new o,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=j.emitClose!==!1,this.autoDestroy=!!j.autoDestroy,this.destroyed=!1,this.defaultEncoding=j.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,j.encoding&&(I||(I=require_string_decoder().StringDecoder),this.decoder=new I(j.encoding),this.encoding=j.encoding)}function Z(j){if(a=a||require__stream_duplex$1(),!(this instanceof Z))return new Z(j);var J=this instanceof a;this._readableState=new G(j,this,J),this.readable=!0,j&&(typeof j.read=="function"&&(this._read=j.read),typeof j.destroy=="function"&&(this._destroy=j.destroy)),u.call(this)}Object.defineProperty(Z.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(J){this._readableState&&(this._readableState.destroyed=J)}}),Z.prototype.destroy=r.destroy,Z.prototype._undestroy=r.undestroy,Z.prototype._destroy=function(j,J){J(j)},Z.prototype.push=function(j,J){var Q=this._readableState,ne;return Q.objectMode?ne=!0:typeof j=="string"&&(J=J||Q.defaultEncoding,J!==Q.encoding&&(j=y.from(j,J),J=""),ne=!0),re(this,j,J,!1,ne)},Z.prototype.unshift=function(j){return re(this,j,null,!0,!1)};function re(j,J,Q,ne,se){f("readableAddChunk",J);var oe=j._readableState;if(J===null)oe.reading=!1,g(j,oe);else{var we;if(se||(we=m(oe,J)),we)N(j,we);else if(oe.objectMode||J&&J.length>
vendor: 7,181 bytes, line 16
160)if(typeof J!="string"&&!oe.objectMode&&Object.getPrototypeOf(J)!==y.prototype&&(J=s(J)),ne)oe.endEmitted?N(j,new q):C(j,oe,J,!0);else if(oe.ended)N(j,new b);else{if(oe.destroyed)return!1;oe.reading=!1,oe.decoder&&!Q?(J=oe.decoder.write(J),oe.objectMode||J.length!==0?C(j,oe,J,!1):w(j,oe)):C(j,oe,J,!1)}else ne||(oe.reading=!1,w(j,oe))}return!oe.ended&&(oe.length<oe.highWaterMark||oe.length===0)}function C(j,J,Q,ne){J.flowing&&J.length===0&&!J.sync?(J.awaitDrain=0,j.emit("data",Q)):(J.length+=J.objectMode?1:Q.length,ne?J.buffer.unshift(Q):J.buffer.push(Q),J.needReadable&&R(j)),w(j,J)}function m(j,J){var Q;return!p(J)&&typeof J!="string"&&J!==void 0&&!j.objectMode&&(Q=new v("chunk",["string","Buffer","Uint8Array"],J)),Q}Z.prototype.isPaused=function(){return this._readableState.flowing===!1},Z.prototype.setEncoding=function(j){I||(I=require_string_decoder().StringDecoder);var J=new I(j);this._readableState.decoder=J,this._readableState.encoding=this._readableState.decoder.encoding;for(var Q=this._readableState.buffer.head,ne="";Q!==null;)ne+=J.write(Q.data),Q=Q.next;return this._readableState.buffer.clear(),ne!==""&&this._readableState.buffer.push(ne),this._readableState.length=ne.length,this};var O=1073741824;function E(j){return j>=O?j=O:(j--,j|=j>>>1,j|=j>>>2,j|=j>>>4,j|=j>>>8,j|=j>>>16,j++),j}function t(j,J){return j<=0||J.length===0&&J.ended?0:J.objectMode?1:j!==j?J.flowing&&J.length?J.buffer.head.data.length:J.length:(j>J.highWaterMark&&(J.highWaterMark=E(j)),j<=J.length?j:J.ended?J.length:(J.needReadable=!0,0))}Z.prototype.read=function(j){f("read",j),j=parseInt(j,10);var J=this._readableState,Q=j;if(j!==0&&(J.emittedReadable=!1),j===0&&J.needReadable&&((J.highWaterMark!==0?J.length>=J.highWaterMark:J.length>0)||J.ended))return f("read: emitReadable",J.length,J.ended),J.length===0&&J.ended?L(this):R(this),null;if(j=t(j,J),j===0&&J.ended)return J.length===0&&L(this),null;var ne=J.needReadable;f("need readable",ne),(J.length===0||J.length-j<J.highWaterMark)&&(ne=!0,f("length less than watermark",ne)),J.ended||J.reading?(ne=!1,f("reading or ended",ne)):ne&&(f("do read"),J.reading=!0,J.sync=!0,J.length===0&&(J.needReadable=!0),this._read(J.highWaterMark),J.sync=!1,J.reading||(j=t(Q,J)));var se;return j>0?se=K(j,J):se=null,se===null?(J.needReadable=J.length<=J.highWaterMark,j=0):(J.length-=j,J.awaitDrain=0),J.length===0&&(J.ended||(J.needReadable=!0),Q!==j&&J.ended&&L(this)),se!==null&&this.emit("data",se),se};function g(j,J){if(f("onEofChunk"),!J.ended){if(J.decoder){var Q=J.decoder.end();Q&&Q.length&&(J.buffer.push(Q),J.length+=J.objectMode?1:Q.length)}J.ended=!0,J.sync?R(j):(J.needReadable=!1,J.emittedReadable||(J.emittedReadable=!0,M(j)))}}function R(j){var J=j._readableState;f("emitReadable",J.needReadable,J.emittedReadable),J.needReadable=!1,J.emittedReadable||(f("emitReadable",J.flowing),J.emittedReadable=!0,process$1.nextTick(M,j))}function M(j){var J=j._readableState;f("emitReadable_",J.destroyed,J.length,J.ended),!J.destroyed&&(J.length||J.ended)&&(j.emit("readable"),J.emittedReadable=!1),J.needReadable=!J.flowing&&!J.ended&&J.length<=J.highWaterMark,W(j)}function w(j,J){J.readingMore||(J.readingMore=!0,process$1.nextTick(_,j,J))}function _(j,J){for(;!J.reading&&!J.ended&&(J.length<J.highWaterMark||J.flowing&&J.length===0);){var Q=J.length;if(f("maybeReadMore read 0"),j.read(0),Q===J.length)break}J.readingMore=!1}Z.prototype._read=function(j){N(this,new S("_read()"))},Z.prototype.pipe=function(j,J){var Q=this,ne=this._readableState;switch(ne.pipesCount){case 0:ne.pipes=j;break;case 1:ne.pipes=[ne.pipes,j];break;default:ne.pipes.push(j);break}ne.pipesCount+=1,f("pipe count=%d opts=%j",ne.pipesCount,J);var se=(!J||J.end!==!1)&&j!==process$1.stdout&&j!==process$1.stderr?we:be;ne.endEmitted?process$1.nextTick(se):Q.once("end",se),j.on("unpipe",oe);function oe(Ue,ye){f("onunpipe"),Ue===Q&&ye&&ye.hasUnpiped===!1&&(ye.hasUnpiped=!0,De())}function we(){f("onend"),j.end()}var ie=B(Q);j.on("drain",ie);var ve=!1;function De(){f("cleanup"),j.removeListener("close",ke),j.removeListener("finish",le),j.removeListener("drain",ie),j.removeListener("error",fe),j.removeListener("unpipe",oe),Q.removeListener("end",we),Q.removeListener("end",be),Q.removeListener("data",ue),ve=!0,ne.awaitDrain&&(!j._writableState||j._writableState.needDrain)&&ie()}Q.on("data",ue);function ue(Ue){f("ondata");var ye=j.write(Ue);f("dest.write",ye),ye===!1&&((ne.pipesCount===1&&ne.pipes===j||ne.pipesCount>1&&X(ne.pipes,j)!==-1)&&!ve&&(f("false write response, pause",ne.awaitDrain),ne.awaitDrain++),Q.pause())}function fe(Ue){f("onerror",Ue),be(),j.removeListener("error",fe),d(j,"error")===0&&N(j,Ue)}z(j,"error",fe);function ke(){j.removeListener("finish",le),be()}j.once("close",ke);function le(){f("onfinish"),j.removeListener("close",ke),be()}j.once("finish",le);function be(){f("unpipe"),Q.unpipe(j)}return j.emit("pipe",Q),ne.flowing||(f("pipe resume"),Q.resume()),j};function B(j){return function(){var Q=j._readableState;f("pipeOnDrain",Q.awaitDrain),Q.awaitDrain&&Q.awaitDrain--,Q.awaitDrain===0&&d(j,"data")&&(Q.flowing=!0,W(j))}}Z.prototype.unpipe=function(j){var J=this._readableState,Q={hasUnpiped:!1};if(J.pipesCount===0)return this;if(J.pipesCount===1)return j&&j!==J.pipes?this:(j||(j=J.pipes),J.pipes=null,J.pipesCount=0,J.flowing=!1,j&&j.emit("unpipe",this,Q),this);if(!j){var ne=J.pipes,se=J.pipesCount;J.pipes=null,J.pipesCount=0,J.flowing=!1;for(var oe=0;oe<se;oe++)ne[oe].emit("unpipe",this,{hasUnpiped:!1});return this}var we=X(J.pipes,j);return we===-1?this:(J.pipes.splice(we,1),J.pipesCount-=1,J.pipesCount===1&&(J.pipes=J.pipes[0]),j.emit("unpipe",this,Q),this)},Z.prototype.on=function(j,J){var Q=u.prototype.on.call(this,j,J),ne=this._readableState;return j==="data"?(ne.readableListening=this.listenerCount("readable")>0,ne.flowing!==!1&&this.resume()):j==="readable"&&!ne.endEmitted&&!ne.readableListening&&(ne.readableListening=ne.needReadable=!0,ne.flowing=!1,ne.emittedReadable=!1,f("on readable",ne.length,ne.reading),ne.length?R(this):ne.reading||process$1.nextTick(A,this)),Q},Z.prototype.addListener=Z.prototype.on,Z.prototype.removeListener=function(j,J){var Q=u.prototype.removeListener.call(this,j,J);return j==="readable"&&process$1.nextTick(T,this),Q},Z.prototype.removeAllListeners=function(j){var J=u.prototype.removeAllListeners.apply(this,arguments);return(j==="readable"||j===void 0)&&process$1.nextTick(T,this),J};function T(j){var J=j._readableState;J.readableListening=j.listenerCount("readable")>0,J.resumeScheduled&&!J.paused?J.flowing=!0:j.listenerCount("data")>0&&j.resume()}function A(j){f("readable nexttick read 0"),j.read(0)}Z.prototype.resume=function(){var j=this._readableState;return j.flowing||(f("resume"),j.flowing=!j.readableListening,$(this,j)),j.paused=!1,this};function $(j,J){J.resumeScheduled||(J.resumeScheduled=!0,process$1.nextTick(te,j,J))}function te(j,J){f("resume",J.reading),J.reading||j.read(0),J.resumeScheduled=!1,j.emit("resume"),W(j),J.flowing&&!J.reading&&j.read(0)}Z.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(f("pause"),this._readableState.flowing=!1,this.emit
16("pause")),this._readableState.paused=!0,this};function W(j){var J=j._readableState;for(f("flow",J.flowing);J.flowing&&j.read()!==null;);}Z.prototype.wrap=function(j){var J=this,Q=this._readableState,ne=!1;j.on("end",function(){if(f("wrapped end"),Q.decoder&&!Q.ended){var we=Q.decoder.end();we&&we.length&&J.push(we)}J.push(null)}),j.on("data",function(we){f("wrapped data"),Q.decoder&&(we=Q.decoder.write(we)),!(Q.objectMode&&we==null)&&(!Q.objectMode&&(!we||!we.length)||J.push(we)||(ne=!0,j.pause()))});for(var se in j)this[se]===void 0&&typeof j[se]=="function"&&(this[se]=function(ie){return function(){return j[ie].apply(j,arguments)}}(se));for(var oe=0;oe<F.length;oe++)j.on(F[oe],this.emit.bind(this,F[oe]));return this._read=function(we){f("wrapped _read",we),ne&&(ne=!1,j.resume())},this},typeof Symbol=="function"&&(Z.prototype[Symbol.asyncIterator]=function(){return k===void 0&&(k=require_async_iterator()),k(this)}),Object.defineProperty(Z.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Z.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Z.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(J){this._readableState&&(this._readableState.flowing=J)}}),Z._fromList=K,Object.defineProperty(Z.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function K(j,J){if(J.length===0)return null;var Q;return J.objectMode?Q=J.buffer.shift():!j||j>=J.length?(J.decoder?Q=J.buffer.join(""):J.buffer.length===1?Q=J.buffer.first():Q=J.buffer.concat(J.length),J.buffer.clear()):Q=J.buffer.consume(j,J.decoder),Q}function L(j){var J=j._readableState;f("endReadable",J.endEmitted),J.endEmitted||(J.ended=!0,process$1.nextTick(U,J,j))}function U(j,J){if(f("endReadableNT",j.endEmitted,j.length),!j.endEmitted&&j.length===0&&(j.endEmitted=!0,J.readable=!1,J.emit("end"),j.autoDestroy)){var Q=J._writableState;(!Q||Q.autoDestroy&&Q.finished)&&J.destroy()}}typeof Symbol=="function"&&(Z.from=function(j,J){return D===void 0&&(D=require_from_browser()),D(Z,j,J)});function X(j,J){for(var Q=0,ne=j.length;Q<ne;Q++)if(j[Q]===J)return Q;return-1}}),require__stream_transform$1=__commonJSMin((n,l)=>{l.exports=h;var a=require_errors_browser().codes,d=a.ERR_METHOD_NOT_IMPLEMENTED,u=a.ERR_MULTIPLE_CALLBACK,y=a.ERR_TRANSFORM_ALREADY_TRANSFORMING,e=a.ERR_TRANSFORM_WITH_LENGTH_0,s=require__stream_duplex$1();require_inherits_browser()(h,s);function p(r,c){var i=this._transformState;i.transforming=!1;var v=i.writecb;if(v===null)return this.emit("error",new u);i.writechunk=null,i.writecb=null,c!=null&&this.push(c),v(r);var b=this._readableState;b.reading=!1,(b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}function h(r){if(!(this instanceof h))return new h(r);s.call(this,r),this._transformState={afterTransform:p.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",f)}function f(){var r=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(c,i){o(r,c,i)}):o(this,null,null)}h.prototype.push=function(r,c){return this._transformState.needTransform=!1,s.prototype.push.call(this,r,c)},h.prototype._transform=function(r,c,i){i(new d("_transform()"))},h.prototype._write=function(r,c,i){var v=this._transformState;if(v.writecb=i,v.writechunk=r,v.writeencoding=c,!v.transforming){var b=this._readableState;(v.needTransform||b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}},h.prototype._read=function(r){var c=this._transformState;c.writechunk!==null&&!c.transforming?(c.transforming=!0,this._transform(c.writechunk,c.writeencoding,c.afterTransform)):c.needTransform=!0},h.prototype._destroy=function(r,c){s.prototype._destroy.call(this,r,function(i){c(i)})};function o(r,c,i){if(c)return r.emit("error",c);if(i!=null&&r.push(i),r._writableState.length)throw new e;if(r._transformState.transforming)throw new y;return r.push(null)}}),require__stream_passthrough$1=__commonJSMin((n,l)=>{l.exports=d;var a=require__stream_transform$1();require_inherits_browser()(d,a);function d(u){if(!(this instanceof d))return new d(u);a.call(this,u)}d.prototype._transform=function(u,y,e){e(null,u)}}),require_pipeline=__commonJSMin((n,l)=>{var a;function d(i){var v=!1;return function(){v||(v=!0,i.apply(void 0,arguments))}}var u=require_errors_browser().codes,y=u.ERR_MISSING_ARGS,e=u.ERR_STREAM_DESTROYED;function s(i){if(i)throw i}function p(i){return i.setHeader&&typeof i.abort=="function"}function h(i,v,b,S){S=d(S);var q=!1;i.on("close",function(){q=!0}),a===void 0&&(a=require_end_of_stream()),a(i,{readable:v,writable:b},function(k){if(k)return S(k);q=!0,S()});var I=!1;return function(k){if(!q&&!I){if(I=!0,p(i))return i.abort();if(typeof i.destroy=="function")return i.destroy();S(k||new e("pipe"))}}}function f(i){i()}function o(i,v){return i.pipe(v)}function r(i){return!i.length||typeof i[i.length-1]!="function"?s:i.pop()}function c(){for(var i=arguments.length,v=new Array(i),b=0;b<i;b++)v[b]=arguments[b];var S=r(v);
16if(Array.isArray(v[0])&&(v=v[0]),v.length<2)throw new y("streams");var q,I=v.map(function(k,D){var N=D<v.length-1;return h(k,N,D>0,function(F){q||(q=F),F&&I.forEach(f),!N&&(I.forEach(f),S(q))})});return v.reduce(o)}l.exports=c}),require_readable_browser$1=__commonJSMin((n,l)=>{n=l.exports=require__stream_readable$1(),n.Stream=n,n.Readable=n,n.Writable=require__stream_writable$1(),n.Duplex=require__stream_duplex$1(),n.Transform=require__stream_transform$1(),n.PassThrough=require__stream_passthrough$1(),n.finished=require_end_of_stream(),n.pipeline=require_pipeline()}),require_hash_base=__commonJSMin((n,l)=>{var a=require_safe_buffer$1().Buffer,d=require_readable_browser$1().Transform,u=require_inherits_browser();function y(s,p){if(!a.isBuffer(s)&&typeof s!="string")throw new TypeError(p+" must be a string or a buffer")}function e(s){d.call(this),this._block=a.allocUnsafe(s),this._blockSize=s,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}u(e,d),e.prototype._transform=function(s,p,h){var f=null;try{this.update(s,p)}catch(o){f=o}h(f)},e.prototype._flush=function(s){var p=null;try{this.push(this.digest())}catch(h){p=h}s(p)},e.prototype.update=function(s,p){if(y(s,"Data"),this._finalized)throw new Error("Digest already called");a.isBuffer(s)||(s=a.from(s,p));for(var h=this._block,f=0;this._blockOffset+s.length-f>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)h[o++]=s[f++];this._update(),this._blockOffset=0}for(;f<s.length;)h[this._blockOffset++]=s[f++];for(var r=0,c=s.length*8;c>0;++r)this._length[r]+=c,c=this._length[r]/4294967296|0,c>0&&(this._length[r]-=4294967296*c);return this},e.prototype._update=function(){throw new Error("_update is not implemented")},e.prototype.digest=function(s){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var p=this._digest();s!==void 0&&(p=p.toString(s)),this._block.fill(0),this._blockOffset=0;for(var h=0;h<4;++h)this._length[h]=0;return p},e.prototype._digest=function(){throw new Error("_digest is not implemented")},l.exports=e}),require_md5_js=__commonJSMin((n,l)=>{var a=require_inherits_browser(),d=require_hash_base(),u=require_safe_buffer$1().Buffer,y=new Array(16);function e(){d.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}a(e,d),e.prototype._update=function(){for(var r=y,c=0;c<16;++c)r[c]=this._block.readInt32LE(c*4);var i=this._a,v=this._b,b=this._c,S=this._d;i=p(i,v,b,S,r[0],3614090360,7),S=p(S,i,v,b,r[1],3905402710,12),b=p(b,S,i,v,r[2],606105819,17),v=p(v,b,S,i,r[3],3250441966,22),i=p(i,v,b,S,r[4],4118548399,7),S=p(S,i,v,b,r[5],1200080426,12),b=p(b,S,i,v,r[6],2821735955,17),v=p(v,b,S,i,r[7],4249261313,22),i=p(i,v,b,S,r[8],1770035416,7),S=p(S,i,v,b,r[9],2336552879,12),b=p(b,S,i,v,r[10],4294925233,17),v=p(v,b,S,i,r[11],2304563134,22),i=p(i,v,b,S,r[12],1804603682,7),S=p(S,i,v,b,r[13],4254626195,12),b=p(b,S,i,v,r[14],2792965006,17),v=p(v,b,S,i,r[15],1236535329,22),i=h(i,v,b,S,r[1],4129170786,5),S=h(S,i,v,b,r[6],3225465664,9),b=h(b,S,i,v,r[11],643717713,14),v=h(v,b,S,i,r[0],3921069994,20),i=h(i,v,b,S,r[5],3593408605,5),S=h(S,i,v,b,r[10],38016083,9),b=h(b,S,i,v,r[15],3634488961,14),v=h(v,b,S,i,r[4],3889429448,20),i=h(i,v,b,S,r[9],568446438,5),S=h(S,i,v,b,r[14],3275163606,9),b=h(b,S,i,v,r[3],4107603335,14),v=h(v,b,S,i,r[8],1163531501,20),i=h(i,v,b,S,r[13],2850285829,5),S=h(S,i,v,b,r[2],4243563512,9),b=h(b,S,i,v,r[7],1735328473,14),v=h(v,b,S,i,r[12],2368359562,20),i=f(i,v,b,S,r[5],4294588738,4),S=f(S,i,v,b,r[8],2272392833,11),b=f(b,S,i,v,r[11],1839030562,16),v=f(v,b,S,i,r[14],4259657740,23),i=f(i,v,b,S,r[1],2763975236,4),S=f(S,i,v,b,r[4],1272893353,11),b=f(b,S,i,v,r[7],4139469664,16),v=f(v,b,S,i,r[10],3200236656,23),i=f(i,v,b,S,r[13],681279174,4),S=f(S,i,v,b,r[0],3936430074,11),b=f(b,S,i,v,r[3],3572445317,16),v=f(v,b,S,i,r[6],76029189,23),i=f(i,v,b,S,r[9],3654602809,4),S=f(S,i,v,b,r[12],3873151461,11),b=f(b,S,i,v,r[15],530742520,16),v=f(v,b,S,i,r[2],3299628645,23),i=o(i,v,b,S,r[0],4096336452,6),S=o(S,i,v,b,r[7],1126891415,10),b=o(b,S,i,v,r[14],2878612391,15),v=o(v,b,S,i,r[5],4237533241,21),i=o(i,v,b,S,r[12],1700485571,6),S=o(S,i,v,b,r[3],2399980690,10),b=o(b,S,i,v,r[10],4293915773,15),v=o(v,b,S,i,r[1],2240044497,21),i=o(i,v,b,S,r[8],1873313359,6),S=o(S,i,v,b,r[15],4264355552,10),b=o(b,S,i,v,r[6],2734768916,15),v=o(v,b,S,i,r[13],
161309151649,21),i=o(i,v,b,S,r[4],4149444226,6),S=o(S,i,v,b,r[11],3174756917,10),b=o(b,S,i,v,r[2],718787259,15),v=o(v,b,S,i,r[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+v|0,this._c=this._c+b|0,this._d=this._d+S|0},e.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var r=u.allocUnsafe(16);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r};function s(r,c){return r<<c|r>>>32-c}function p(r,c,i,v,b,S,q){return s(r+(c&i|~c&v)+b+S|0,q)+c|0}function h(r,c,i,v,b,S,q){return s(r+(c&v|i&~v)+b+S|0,q)+c|0}function f(r,c,i,v,b,S,q){return s(r+(c^i^v)+b+S|0,q)+c|0}function o(r,c,i,v,b,S,q){return s(r+(i^(c|~v))+b+S|0,q)+c|0}l.exports=e}),require_ripemd160=__commonJSMin((n,l)=>{var a=require_dist().Buffer,d=require_inherits_browser(),u=require_hash_base(),y=new Array(16),e=[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],s=[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],p=[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],h=[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],f=[0,1518500249,1859775393,2400959708,2840853838],o=[1352829926,1548603684,1836072691,2053994217,0];function r(){u.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}d(r,u),r.prototype._update=function(){for(var I=y,k=0;k<16;++k)I[k]=this._block.readInt32LE(k*4);for(var D=this._a|0,N=this._b|0,F=this._c|0,z=this._d|0,G=this._e|0,Z=this._a|0,re=this._b|0,C=this._c|0,m=this._d|0,O=this._e|0,E=0;E<80;E+=1){var t,g;E<16?(t=i(D,N,F,z,G,I[e[E]],f[0],p[E]),g=q(Z,re,C,m,O,I[s[E]],o[0],h[E])):E<32?(t=v(D,N,F,z,G,I[e[E]],f[1],p[E]),g=S(Z,re,C,m,O,I[s[E]],o[1],h[E])):E<48?(t=b(D,N,F,z,G,I[e[E]],f[2],p[E]),g=b(Z,re,C,m,O,I[s[E]],o[2],h[E])):E<64?(t=S(D,N,F,z,G,I[e[E]],f[3],p[E]),g=v(Z,re,C,m,O,I[s[E]],o[3],h[E])):(t=q(D,N,F,z,G,I[e[E]],f[4],p[E]),g=i(Z,re,C,m,O,I[s[E]],o[4],h[E])),D=G,G=z,z=c(F,10),F=N,N=t,Z=O,O=m,m=c(C,10),C=re,re=g}var R=this._b+F+m|0;this._b=this._c+z+O|0,this._c=this._d+G+Z|0,this._d=this._e+D+re|0,this._e=this._a+N+C|0,this._a=R},r.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var I=a.alloc?a.alloc(20):new a(20);return I.writeInt32LE(this._a,0),I.writeInt32LE(this._b,4),I.writeInt32LE(this._c,8),I.writeInt32LE(this._d,12),I.writeInt32LE(this._e,16),I};function c(I,k){return I<<k|I>>>32-k}function i(I,k,D,N,F,z,G,Z){return c(I+(k^D^N)+z+G|0,Z)+F|0}function v(I,k,D,N,F,z,G,Z){return c(I+(k&D|~k&N)+z+G|0,Z)+F|0}function b(I,k,D,N,F,z,G,Z){return c(I+((k|~D)^N)+z+G|0,Z)+F|0}function S(I,k,D,N,F,z,G,Z){return c(I+(k&N|D&~N)+z+G|0,Z)+F|0}function q(I,k,D,N,F,z,G,Z){return c(I+(k^(D|~N))+z+G|0,Z)+F|0}l.exports=r}),require_hash$1=__commonJSMin((n,l)=>{var a=require_safe_buffer$1().Buffer;function d(u,y){this._block=a.alloc(u),this._finalSize=y,this._blockSize=u,this._len=0}d.prototype.update=function(u,y){typeof u=="string"&&(y=y||"utf8",u=a.from(u,y));for(var e=this._block,s=this._blockSize,p=u.length,h=this._len,f=0;f<p;){for(var o=h%s,r=Math.min(p-f,s-o),c=0;c<r;c++)e[o+c]=u[f+c];h+=r,f+=r,h%s===0&&this._update(e)}return this._len+=p,this},d.prototype.digest=function(u){var y=this._len%this._blockSize;this._block[y]=128,this._block.fill(0,y+1),y>=this._finalSize&&(this._update(this._block),this._block.fill(0));var e=this._len*8;if(e<=4294967295)this._block.writeUInt32BE(e,this._blockSize-4);else{var s=(e&4294967295)>>>0,p=(e-s)/4294967296;this._block.writeUInt32BE(p,this._blockSize-8),this._block.writeUInt32BE(s,this._blockSize-4)}this._update(this._block);var h=this._hash();return u?h.toString(u):h},d.prototype._update=function(){throw new Error("_update must be implemented by subclass")},l.exports=d}),require_sha$1=__commonJSMin((n,l)=>{var a=require_inherits_browser(),d=require_hash$1(),u=require_safe_buffer$1().Buffer,y=[1518500249,1859775393,-1894007588,-899497514],e=new Array(80);function s(){this.init(),this._w=e,d.call(this,64,56)}a(s,d),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function p(o){return o<<5|o>>>27}function h(o){return o<<30|o>>>2}function f(o,r,c,i){return o===0?r&c|~r&i:o===2?r&c|r&i|c&i:r^c^i}s.prototype._update=function(o){for(var r=this._w,c=this._a|0,i=this._b|0,v=this._c|0,b=this._d|0,S=this._e|0,q=0;q<16;++q)r[q]=o.readInt32BE(q*4);for(;q<80;++q)r[q]=r[q-3]^r[q-8]^r[q-14]^r[q-16];for(var I=0;I<80;
16++I){var k=~~(I/20),D=p(c)+f(k,i,v,b)+S+r[I]+y[k]|0;S=b,b=v,v=h(i),i=c,c=D}this._a=c+this._a|0,this._b=i+this._b|0,this._c=v+this._c|0,this._d=b+this._d|0,this._e=S+this._e|0},s.prototype._hash=function(){var o=u.allocUnsafe(20);return o.writeInt32BE(this._a|0,0),o.writeInt32BE(this._b|0,4),o.writeInt32BE(this._c|0,8),o.writeInt32BE(this._d|0,12),o.writeInt32BE(this._e|0,16),o},l.exports=s}),require_sha1=__commonJSMin((n,l)=>{var a=require_inherits_browser(),d=require_hash$1(),u=require_safe_buffer$1().Buffer,y=[1518500249,1859775393,-1894007588,-899497514],e=new Array(80);function s(){this.init(),this._w=e,d.call(this,64,56)}a(s,d),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function p(r){return r<<1|r>>>31}function h(r){return r<<5|r>>>27}function f(r){return r<<30|r>>>2}function o(r,c,i,v){return r===0?c&i|~c&v:r===2?c&i|c&v|i&v:c^i^v}s.prototype._update=function(r){for(var c=this._w,i=this._a|0,v=this._b|0,b=this._c|0,S=this._d|0,q=this._e|0,I=0;I<16;++I)c[I]=r.readInt32BE(I*4);for(;I<80;++I)c[I]=p(c[I-3]^c[I-8]^c[I-14]^c[I-16]);for(var k=0;k<80;++k){var D=~~(k/20),N=h(i)+o(D,v,b,S)+q+c[k]+y[D]|0;q=S,S=b,b=f(v),v=i,i=N}this._a=i+this._a|0,this._b=v+this._b|0,this._c=b+this._c|0,this._d=S+this._d|0,this._e=q+this._e|0},s.prototype._hash=function(){var r=u.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r},l.exports=s}),require_sha256=__commonJSMin((n,l)=>{var a=require_inherits_browser(),d=require_hash$1(),u=require_safe_buffer$1().Buffer,y=[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],e=new Array(64);function s(){this.init(),this._w=e,d.call(this,64,56)}a(s,d),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function p(i,v,b){return b^i&(v^b)}function h(i,v,b){return i&v|b&(i|v)}function f(i){return(i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10)}function o(i){return(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7)}function r(i){return(i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3}function c(i){return(i>>>17|i<<15)^(i>>>19|i<<13)^i>>>10}s.prototype._update=function(i){for(var v=this._w,b=this._a|0,S=this._b|0,q=this._c|0,I=this._d|0,k=this._e|0,D=this._f|0,N=this._g|0,F=this._h|0,z=0;z<16;++z)v[z]=i.readInt32BE(z*4);for(;z<64;++z)v[z]=c(v[z-2])+v[z-7]+r(v[z-15])+v[z-16]|0;for(var G=0;G<64;++G){var Z=F+o(k)+p(k,D,N)+y[G]+v[G]|0,re=f(b)+h(b,S,q)|0;F=N,N=D,D=k,k=I+Z|0,I=q,q=S,S=b,b=Z+re|0}this._a=b+this._a|0,this._b=S+this._b|0,this._c=q+this._c|0,this._d=I+this._d|0,this._e=k+this._e|0,this._f=D+this._f|0,this._g=N+this._g|0,this._h=F+this._h|0},s.prototype._hash=function(){var i=u.allocUnsafe(32);return i.writeInt32BE(this._a,0),i.writeInt32BE(this._b,4),i.writeInt32BE(this._c,8),i.writeInt32BE(this._d,12),i.writeInt32BE(this._e,16),i.writeInt32BE(this._f,20),i.writeInt32BE(this._g,24),i.writeInt32BE(this._h,28),i},l.exports=s}),require_sha224=__commonJSMin((n,l)=>{var a=require_inherits_browser(),d=require_sha256(),u=require_hash$1(),y=require_safe_buffer$1().Buffer,e=new Array(64);function s(){this.init(),this._w=e,u.call(this,64,56)}a(s,d),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var p=y.allocUnsafe(28);return p.writeInt32BE(this._a,0),p.writeInt32BE(this._b,4),p.writeInt32BE(this._c,8),p.writeInt32BE(this._d,12),p.writeInt32BE(this._e,16),p.writeInt32BE(this._f,20),p.writeInt32BE(this._g,24),p},l.exports=s}),require_sha512=__commonJSMin((n,l)=>{var a=require_inherits_browser(),d=require_hash$1(),u=require_safe_buffer$1().Buffer,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,
161322822218,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],e=new Array(160);function s(){this.init(),this._w=e,d.call(this,128,112)}a(s,d),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function p(S,q,I){return I^S&(q^I)}function h(S,q,I){return S&q|I&(S|q)}function f(S,q){return(S>>>28|q<<4)^(q>>>2|S<<30)^(q>>>7|S<<25)}function o(S,q){return(S>>>14|q<<18)^(S>>>18|q<<14)^(q>>>9|S<<23)}function r(S,q){return(S>>>1|q<<31)^(S>>>8|q<<24)^S>>>7}function c(S,q){return(S>>>1|q<<31)^(S>>>8|q<<24)^(S>>>7|q<<25)}function i(S,q){return(S>>>19|q<<13)^(q>>>29|S<<3)^S>>>6}function v(S,q){return(S>>>19|q<<13)^(q>>>29|S<<3)^(S>>>6|q<<26)}function b(S,q){return S>>>0<q>>>0?1:0}s.prototype._update=function(S){for(var q=this._w,I=this._ah|0,k=this._bh|0,D=this._ch|0,N=this._dh|0,F=this._eh|0,z=this._fh|0,G=this._gh|0,Z=this._hh|0,re=this._al|0,C=this._bl|0,m=this._cl|0,O=this._dl|0,E=this._el|0,t=this._fl|0,g=this._gl|0,R=this._hl|0,M=0;M<32;M+=2)q[M]=S.readInt32BE(M*4),q[M+1]=S.readInt32BE(M*4+4);for(;M<160;M+=2){var w=q[M-30],_=q[M-30+1],B=r(w,_),T=c(_,w);w=q[M-4],_=q[M-4+1];var A=i(w,_),$=v(_,w),te=q[M-14],W=q[M-14+1],K=q[M-32],L=q[M-32+1],U=T+W|0,X=B+te+b(U,T)|0;U=U+$|0,X=X+A+b(U,$)|0,U=U+L|0,X=X+K+b(U,L)|0,q[M]=X,q[M+1]=U}for(var j=0;j<160;j+=2){X=q[j],U=q[j+1];var J=h(I,k,D),Q=h(re,C,m),ne=f(I,re),se=f(re,I),oe=o(F,E),we=o(E,F),ie=y[j],ve=y[j+1],De=p(F,z,G),ue=p(E,t,g),fe=R+we|0,ke=Z+oe+b(fe,R)|0;fe=fe+ue|0,ke=ke+De+b(fe,ue)|0,fe=fe+ve|0,ke=ke+ie+b(fe,ve)|0,fe=fe+U|0,ke=ke+X+b(fe,U)|0;var le=se+Q|0,be=ne+J+b(le,se)|0;Z=G,R=g,G=z,g=t,z=F,t=E,E=O+fe|0,F=N+ke+b(E,O)|0,N=D,O=m,D=k,m=C,k=I,C=re,re=fe+le|0,I=ke+be+b(re,fe)|0}this._al=this._al+re|0,this._bl=this._bl+C|0,this._cl=this._cl+m|0,this._dl=this._dl+O|0,this._el=this._el+E|0,this._fl=this._fl+t|0,this._gl=this._gl+g|0,this._hl=this._hl+R|0,this._ah=this._ah+I+b(this._al,re)|0,this._bh=this._bh+k+b(this._bl,C)|0,this._ch=this._ch+D+b(this._cl,m)|0,this._dh=this._dh+N+b(this._dl,O)|0,this._eh=this._eh+F+b(this._el,E)|0,this._fh=this._fh+z+b(this._fl,t)|0,this._gh=this._gh+G+b(this._gl,g)|0,this._hh=this._hh+Z+b(this._hl,R)|0},s.prototype._hash=function(){var S=u.allocUnsafe(64);function q(I,k,D){S.writeInt32BE(I,D),S.writeInt32BE(k,D+4)}return q(this._ah,this._al,0),q(this._bh,this._bl,8),q(this._ch,this._cl,16),q(this._dh,this._dl,24),q(this._eh,this._el,32),q(this._fh,this._fl,40),q(this._gh,this._gl,48),q(this._hh,this._hl,56),S},l.exports=s}),require_sha384=__commonJSMin((n,l)=>{var a=require_inherits_browser(),d=require_sha512(),u=require_hash$1(),y=require_safe_buffer$1().Buffer,e=new Array(160);function s(){this.init(),this._w=e,u.call(this,128,112)}a(s,d),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var p=y.allocUnsafe(48);function h(f,o,r){p.writeInt32BE(f,r),p.writeInt32BE(o,r+4)}return h(this._ah,this._al,0),h(this._bh,this._bl,8),h(this._ch,this._cl,16),h(this._dh,this._dl,24),h(this._eh,this._el,32),h(this._fh,this._fl,40),p},l.exports=s}),require_sha_js=__commonJSMin((a,l)=>{var a=l.exports=function(u){u=u.toLowerCase();var y=a[u];if(!y)throw new Error(u+" is not supported (we accept pull requests)");return new y};a.sha=require_sha$1(),a.sha1=require_sha1(),a.sha224=require_sha224(),a.sha256=require_sha256(),a.sha384=require_sha384(),a.sha512=require_sha512()}),require_stream_browserify=__commonJSMin((n,l)=>{l.exports=d;var a=require_events().EventEmitter;require_inherits_browser()(d,a),d.Readable=require__stream_readable$1(),d.Writable=require__stream_writable$1(),d.Duplex=require__stream_duplex$1(),d.Transform=require__stream_transform$1(),d.PassThrough=require__stream_passthrough$1(),d.finished=require_end_of_stream(),d.pipeline=require_pipeline(),d.Stream=d;function d(){a.call(this)}d.prototype.pipe=function(u,y){var e=this;function s(i){u.writable&&u.write(i)===!1&&e.pause&&e.pause()}e.on("data",s);function p(){e.readable&&e.resume&&e.resume()}u.on("drain",p),!u._isStdio&&(!y||y.end!==!1)&&(e.on("end",f),e.on("close",o));var h=!1;function f(){h||(h=!0,u.end())}function o(){h||(h=!0,typeof u.destroy=="function"&&u.destroy())}function r(i){if(c(),a.listenerCount(this,"error")===0)throw i}e.on("error",r),u.on("error",r);function c(){e.removeListener("data",s),u.removeListener("drain",p),e.removeListener("end",f),e.removeListener("close",o),e.removeListener("error",r),u.removeListener("error",r),e.removeListener("end",c),e.removeListener("close",c),u.removeListener("close",c)}return e.on("end",c),e.on("close",c),u.on("close",c),u.emit("pipe",e),u}}),require_cipher_base=__commonJSMin((n,l)=>{var a=require_safe_buffer$1().Buffer,d=require_stream_browserify().Transform,u=require_string_decoder().StringDecoder,y=require_inherits_browser();function e(s){d.call(this),this.hashMode=typeof s=="string",this.hashMode?this[s]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}y(e,d),e.prototype.update=function(s,p,h){typeof s=="string"&&(s=a.from(s,p));var f=this._update(s);return this.hashMode?this:(h&&(f=this._toString(f,h)),f)},e.prototype.setAutoPadding=function(){},e.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},e.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},e.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},e.prototype._transform=function(s,p,h){var f;try{this.hashMode?this._update(s):this.push(this._update(s))}catch(o){f=o}finally{h(f)}},e.prototype._flush=function(s){var p;try{this.push(this.__final())}catch(h){p=h}s(p)},e.prototype._finalOrDigest=function(s){var p=this.__final()||a.alloc(0);return s&&(p=this._toString(p,s,!0)),p},e.prototype._toString=function(s,p,h){if(this._decoder||(this._decoder=new u(p),this._encoding=p),this._encoding!==p)throw new Error("can't switch encodings");var f=this._decoder.write(s);return h&&(f+=this._decoder.end()),f},l.exports=e}),require_browser$9=__commonJSMin((n,l)=>{var a=require_inherits_browser(),d=require_md5_js(),u=require_ripemd160(),y=require_sha_js(),e=require_cipher_base();function s(p){e.call(this,"digest"),this._hash=p}a(s,e),s.prototype._update=function(p){this._hash.update(p)},s.prototype._final=function(){return this._hash.digest()},l.exports=function(h){return h=h.toLowerCase(),h==="md5"?new d:h==="rmd160"||h==="ripemd160"?new u:new s(y(h))}}),require_legacy=__commonJSMin((n,l)=>{var a=require_inherits_browser(),d=require_safe_buffer$1().Buffer,u=require_cipher_base(),y=d.alloc(128),e=64;function s(p,h){u.call(this,"digest"),typeof h=="string"&&(h=d.from(h)
16),this._alg=p,this._key=h,h.length>e?h=p(h):h.length<e&&(h=d.concat([h,y],e));for(var f=this._ipad=d.allocUnsafe(e),o=this._opad=d.allocUnsafe(e),r=0;r<e;r++)f[r]=h[r]^54,o[r]=h[r]^92;this._hash=[f]}a(s,u),s.prototype._update=function(p){this._hash.push(p)},s.prototype._final=function(){var p=this._alg(d.concat(this._hash));return this._alg(d.concat([this._opad,p]))},l.exports=s}),require_md5=__commonJSMin((n,l)=>{var a=require_md5_js();l.exports=function(d){return new a().update(d).digest()}}),require_browser$8=__commonJSMin((n,l)=>{var a=require_inherits_browser(),d=require_legacy(),u=require_cipher_base(),y=require_safe_buffer$1().Buffer,e=require_md5(),s=require_ripemd160(),p=require_sha_js(),h=y.alloc(128);function f(o,r){u.call(this,"digest"),typeof r=="string"&&(r=y.from(r));var c=o==="sha512"||o==="sha384"?128:64;this._alg=o,this._key=r,r.length>c?r=(o==="rmd160"?new s:p(o)).update(r).digest():r.length<c&&(r=y.concat([r,h],c));for(var i=this._ipad=y.allocUnsafe(c),v=this._opad=y.allocUnsafe(c),b=0;b<c;b++)i[b]=r[b]^54,v[b]=r[b]^92;this._hash=o==="rmd160"?new s:p(o),this._hash.update(i)}a(f,u),f.prototype._update=function(o){this._hash.update(o)},f.prototype._final=function(){var o=this._hash.digest();return(this._alg==="rmd160"?new s:p(this._alg)).update(this._opad).update(o).digest()},l.exports=function(r,c){return r=r.toLowerCase(),r==="rmd160"||r==="ripemd160"?new f("rmd160",c):r==="md5"?new d(e,c):new f(r,c)}}),algorithms_exports=__exportAll({DSA:()=>DSA,default:()=>algorithms_default,md5WithRSAEncryption:()=>md5WithRSAEncryption,ripemd160WithRSA:()=>ripemd160WithRSA,sha224:()=>
16sha224,sha224WithRSAEncryption:()=>sha224WithRSAEncryption,sha256:()=>sha256,sha256WithRSAEncryption:()=>sha256WithRSAEncryption,sha384:()=>sha384,sha384WithRSAEncryption:()=>sha384WithRSAEncryption,sha512:()=>sha512,sha512WithRSAEncryption:()=>sha512WithRSAEncryption}),sha224WithRSAEncryption,sha256WithRSAEncryption,sha384WithRSAEncryption,sha512WithRSAEncryption,sha256,sha224,sha384,sha512,DSA,ripemd160WithRSA,md5WithRSAEncryption,algorithms_default,init_algorithms=__esmMin(()=>{sha224WithRSAEncryption={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},sha256={sign:"ecdsa",hash:"sha256",id:""},sha224={sign:"ecdsa",hash:"sha224",id:""},sha384={sign:"ecdsa",hash:"sha384",id:""},sha512={sign:"ecdsa",hash:"sha512",id:""},DSA={sign:"dsa",hash:"sha1",id:""},ripemd160WithRSA={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},algorithms_default={sha224WithRSAEncryption,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256,sha224,sha384,sha512,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}}),require_algos=__commonJSMin((n,l)=>{l.exports=(init_algorithms(),__toCommonJS(algorithms_exports).default)}),require_precondition=__commonJSMin((n,l)=>{var a=Math.pow(2,30)-1;l.exports=function(d,u){if(typeof d!="number")throw new TypeError("Iterations not a number");if(d<0)throw new TypeError("Bad iterations");
16if(typeof u!="number")throw new TypeError("Key length not a number");if(u<0||u>a||u!==u)throw new TypeError("Bad key length")}}),require_default_encoding=__commonJSMin((n,l)=>{init_dist$1(),init_dist$2();var a;global$1.process&&global$1.process.browser?a="utf-8":global$1.process&&global$1.process.version?a=parseInt(process$1.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":a="utf-8",l.exports=a}),require_to_buffer=__commonJSMin((n,l)=>{var a=require_safe_buffer$1().Buffer;l.exports=function(d,u,y){if(a.isBuffer(d))return d;if(typeof d=="string")return a.from(d,u);if(ArrayBuffer.isView(d))return a.from(d.buffer);throw new TypeError(y+" must be a string, a Buffer, a typed array or a DataView")}}),require_sync_browser=__commonJSMin((n,l)=>{var a=require_md5(),d=require_ripemd160(),u=require_sha_js(),y=require_safe_buffer$1().Buffer,e=require_precondition(),s=require_default_encoding(),p=require_to_buffer(),h=y.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function o(i,v,b){var S=r(i),q=i==="sha512"||i==="sha384"?128:64;v.length>q?v=S(v):v.length<q&&(v=y.concat([v,h],q));for(var I=y.allocUnsafe(q+f[i]),k=y.allocUnsafe(q+f[i]),D=0;D<q;D++)I[D]=v[D]^54,k[D]=v[D]^92;var N=y.allocUnsafe(q+b+4);I.copy(N,0,0,q),this.ipad1=N,this.ipad2=I,this.opad=k,this.alg=i,this.blocksize=q,this.hash=S,this.size=f[i]}o.prototype.run=function(i,v){return i.copy(v,this.blocksize),this.hash(v).copy(this.opad,this.blocksize),this.hash(this.opad)};function r(i){function v(S){return u(i).update(S).digest()}function b(S){return new d().update(S).digest()}return i==="rmd160"||i==="ripemd160"?b:i==="md5"?a:v}function c(i,v,b,S,q){e(b,S),i=p(i,s,"Password"),v=p(v,s,"Salt"),q=q||"sha1";var I=new o(q,i,v.length),k=y.allocUnsafe(S),D=y.allocUnsafe(v.length+4);v.copy(D,0,0,v.length);for(var N=0,F=f[q],z=Math.ceil(S/F),G=1;G<=z;G++){D.writeUInt32BE(G,v.length);for(var Z=I.run(D,I.ipad1),re=Z,C=1;C<b;C++){re=I.run(re,I.ipad2);for(var m=0;m<F;m++)Z[m]^=re[m]}Z.copy(k,N),N+=F}return k}l.exports=c}),require_async=__commonJSMin((n,l)=>{init_dist$1();var a=require_safe_buffer$1().Buffer,d=require_precondition(),u=require_default_encoding(),y=require_sync_browser(),e=require_to_buffer(),s,p=global$1.crypto&&global$1.crypto.subtle,h={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"},f=[];function o(b){if(global$1.process&&!global$1.process.browser||!p||!p.importKey||!p.deriveBits)return Promise.resolve(!1);if(f[b]!==void 0)return f[b];s=s||a.alloc(8);var S=i(s,s,10,128,b).then(function(){return!0}).catch(function(){return!1});return f[b]=S,S}var r;function c(){return r||(global$1.process&&global$1.process.nextTick?r=global$1.process.nextTick:global$1.queueMicrotask?r=global$1.queueMicrotask:global$1.setImmediate?r=global$1.setImmediate:r=global$1.setTimeout,r)}function i(b,S,q,I,k){return p.importKey("raw",b,{name:"PBKDF2"},!1,["deriveBits"]).then(function(D){return p.deriveBits({name:"PBKDF2",salt:S,iterations:q,hash:{name:k}},D,I<<3)}).then(function(D){return a.from(D)})}function v(b,S){b.then(function(q){c()(function(){S(null,q)})},function(q){c()(function(){S(q)})})}
16l.exports=function(b,S,q,I,k,D){typeof k=="function"&&(D=k,k=void 0),k=k||"sha1";var N=h[k.toLowerCase()];if(!N||typeof global$1.Promise!="function"){c()(function(){var F;try{F=y(b,S,q,I,k)}catch(z){return D(z)}D(null,F)});return}if(d(q,I),b=e(b,u,"Password"),S=e(S,u,"Salt"),typeof D!="function")throw new Error("No callback provided to pbkdf2");v(o(N).then(function(F){return F?i(b,S,q,I,N):y(b,S,q,I,k)}),D)}}),require_browser$7=__commonJSMin(n=>{n.pbkdf2=require_async(),n.pbkdf2Sync=require_sync_browser()}),require_utils$3=__commonJSMin(n=>{n.readUInt32BE=function(y,e){return(y[0+e]<<24|y[1+e]<<16|y[2+e]<<8|y[3+e])>>>0},n.writeUInt32BE=function(y,e,s){y[0+s]=e>>>24,y[1+s]=e>>>16&255,y[2+s]=e>>>8&255,y[3+s]=e&255},n.ip=function(y,e,s,p){for(var h=0,f=0,o=6;o>=0;o-=2){for(var r=0;r<=24;r+=8)h<<=1,h|=e>>>r+o&1;for(var r=0;r<=24;r+=8)h<<=1,h|=y>>>r+o&1}for(var o=6;o>=0;o-=2){for(var r=1;r<=25;r+=8)f<<=1,f|=e>>>r+o&1;for(var r=1;r<=25;r+=8)f<<=1,f|=y>>>r+o&1}s[p+0]=h>>>0,s[p+1]=f>>>0},n.rip=function(y,e,s,p){for(var h=0,f=0,o=0;o<4;o++)for(var r=24;r>=0;r-=8)h<<=1,h|=e>>>r+o&1,h<<=1,h|=y>>>r+o&1;for(var o=4;o<8;o++)for(var r=24;r>=0;r-=8)f<<=1,f|=e>>>r+o&1,f<<=1,f|=y>>>r+o&1;s[p+0]=h>>>0,s[p+1]=f>>>0},n.pc1=function(y,e,s,p){for(var h=0,f=0,o=7;o>=5;o--){for(var r=0;r<=24;r+=8)h<<=1,h|=e>>r+o&1;for(var r=0;r<=24;r+=8)h<<=1,h|=y>>r+o&1}for(var r=0;r<=24;r+=8)h<<=1,h|=e>>r+o&1;for(var o=1;o<=3;o++){for(var r=0;r<=24;r+=8)f<<=1,f|=e>>r+o&1;for(var r=0;r<=24;r+=8)f<<=1,f|=y>>r+o&1}for(var r=0;r<=24;r+=8)f<<=1,f|=y>>r+o&1;s[p+0]=h>>>0,s[p+1]=f>>>0},n.r28shl=function(y,e){return y<<e&268435455|y>>>28-e};var l=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];n.pc2=function(y,e,s,p){for(var h=0,f=0,o=l.length>>>1,r=0;r<o;r++)h<<=1,h|=y>>>l[r]&1;for(var r=o;r<l.length;r++)f<<=1,f|=e>>>l[r]&1;s[p+0]=h>>>0,s[p+1]=f>>>0},n.expand=function(y,e,s){var p=0,h=0;p=(y&1)<<5|y>>>27;for(var f=23;f>=15;f-=4)p<<=6,p|=y>>>f&63;for(var f=11;f>=3;f-=4)h|=y>>>f&63,h<<=6;h|=(y&31)<<1|y>>>31,e[s+0]=p>>>0,e[s+1]=h>>>0};var a=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];n.substitute=function(y,e){for(var s=0,p=0;p<4;p++){var h=y>>>18-p*6&63,f=a[p*64+h];s<<=4,s|=f}for(var p=0;p<4;p++){var h=e>>>18-p*6&63,f=a[256+p*64+h];s<<=4,s|=f}return s>>>0};var d=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];n.permute=function(y){for(var e=0,s=0;s<d.length;s++)e<<=1,e|=y>>>d[s]&1;return e>>>0},n.padSplit=function(y,e,s){for(var p=y.toString(2);p.length<e;)p="0"+p;for(var h=[],f=0;f<e;f+=s)h.push(p.slice(f,f+s));return h.join(" ")}}),require_minimalistic_assert=__commonJSMin((n,l)=>{l.exports=a;function a(d,u){if(!d)throw new Error(u||"Assertion failed")}a.equal=function(u,y,e){if(u!=y)throw new Error(e||"Assertion failed: "+u+" != "+y)}}
16),require_cipher=__commonJSMin((n,l)=>{var a=require_minimalistic_assert();function d(u){this.options=u,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=u.padding!==!1}l.exports=d,d.prototype._init=function(){},d.prototype.update=function(y){return y.length===0?[]:this.type==="decrypt"?this._updateDecrypt(y):this._updateEncrypt(y)},d.prototype._buffer=function(y,e){for(var s=Math.min(this.buffer.length-this.bufferOff,y.length-e),p=0;p<s;p++)this.buffer[this.bufferOff+p]=y[e+p];return this.bufferOff+=s,s},d.prototype._flushBuffer=function(y,e){return this._update(this.buffer,0,y,e),this.bufferOff=0,this.blockSize},d.prototype._updateEncrypt=function(y){var e=0,s=0,p=(this.bufferOff+y.length)/this.blockSize|0,h=new Array(p*this.blockSize);this.bufferOff!==0&&(e+=this._buffer(y,e),this.bufferOff===this.buffer.length&&(s+=this._flushBuffer(h,s)));for(var f=y.length-(y.length-e)%this.blockSize;e<f;e+=this.blockSize)this._update(y,e,h,s),s+=this.blockSize;for(;e<y.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=y[e];return h},d.prototype._updateDecrypt=function(y){for(var e=0,s=0,p=Math.ceil((this.bufferOff+y.length)/this.blockSize)-1,h=new Array(p*this.blockSize);p>0;p--)e+=this._buffer(y,e),s+=this._flushBuffer(h,s);return e+=this._buffer(y,e),h},d.prototype.final=function(y){var e;y&&(e=this.update(y));var s;return this.type==="encrypt"?s=this._finalEncrypt():s=this._finalDecrypt(),e?e.concat(s):s},d.prototype._pad=function(y,e){if(e===0)return!1;for(;e<y.length;)y[e++]=0;return!0},d.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var y=new Array(this.blockSize);return this._update(this.buffer,0,y,0),y},d.prototype._unpad=function(y){return y},d.prototype._finalDecrypt=function(){a.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var y=new Array(this.blockSize);return this._flushBuffer(y,0),this._unpad(y)}}),require_des$1=__commonJSMin((n,l)=>{var a=require_minimalistic_assert(),d=require_inherits_browser(),u=require_utils$3(),y=require_cipher();function e(){this.tmp=new Array(2),this.keys=null}function s(h){y.call(this,h);var f=new e;this._desState=f,this.deriveKeys(f,h.key)}d(s,y),l.exports=s,s.create=function(f){return new s(f)};var p=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];s.prototype.deriveKeys=function(f,o){f.keys=new Array(32),a.equal(o.length,this.blockSize,"Invalid key length");var r=u.readUInt32BE(o,0),c=u.readUInt32BE(o,4);u.pc1(r,c,f.tmp,0),r=f.tmp[0],c=f.tmp[1];for(var i=0;i<f.keys.length;i+=2){var v=p[i>>>1];r=u.r28shl(r,v),c=u.r28shl(c,v),u.pc2(r,c,f.keys,i)}},s.prototype._update=function(f,o,r,c){var i=this._desState,v=u.readUInt32BE(f,o),b=u.readUInt32BE(f,o+4);u.ip(v,b,i.tmp,0),v=i.tmp[0],b=i.tmp[1],this.type==="encrypt"?this._encrypt(i,v,b,i.tmp,0):this._decrypt(i,v,b,i.tmp,0),v=i.tmp[0],b=i.tmp[1],u.writeUInt32BE(r,v,c),u.writeUInt32BE(r,b,c+4)},s.prototype._pad=function(f,o){if(this.padding===!1)return!1;for(var r=f.length-o,c=o;c<f.length;c++)f[c]=r;return!0},s.prototype._unpad=function(f){if(this.padding===!1)return f;for(var o=f[f.length-1],r=f.length-o;r<f.length;r++)a.equal(f[r],o);return f.slice(0,f.length-o)},s.prototype._encrypt=function(f,o,r,c,i){for(var v=o,b=r,S=0;S<f.keys.length;S+=2){var q=f.keys[S],I=f.keys[S+1];u.expand(b,f.tmp,0),q^=f.tmp[0],I^=f.tmp[1];var k=u.substitute(q,I),D=u.permute(k),N=b;b=(v^D)>>>0,v=N}u.rip(b,v,c,i)},s.prototype._decrypt=function(f,o,r,c,i){for(var v=r,b=o,S=f.keys.length-2;S>=0;S-=2){var q=f.keys[S],I=f.keys[S+1];u.expand(v,f.tmp,0),q^=f.tmp[0],I^=f.tmp[1];var k=u.substitute(q,I),D=u.permute(k),N=v;v=(b^D)>>>0,b=N}u.rip(v,b,c,i)}}),require_cbc$1=__commonJSMin(n=>{var l=require_minimalistic_assert(),a=require_inherits_browser(),d={};function u(e){l.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var s=0;s<this.iv.length;s++)this.iv[s]=e[s]}function y(e){function s(o){e.call(this,o),this._cbcInit()}a(s,e);for(var p=Object.keys(d),h=0;h<p.length;h++){var f=p[h];s.prototype[f]=d[f]}return s.create=function(r){return new s(r)},s}n.instantiate=y,d._cbcInit=function(){var s=new u(this.options.iv);this._cbcState=s},d._update=function(s,p,h,f){var o=this._cbcState,r=this.constructor.super_.prototype,c=o.iv;
16if(this.type==="encrypt"){for(var i=0;i<this.blockSize;i++)c[i]^=s[p+i];r._update.call(this,c,0,h,f);for(var i=0;i<this.blockSize;i++)c[i]=h[f+i]}else{r._update.call(this,s,p,h,f);for(var i=0;i<this.blockSize;i++)h[f+i]^=c[i];for(var i=0;i<this.blockSize;i++)c[i]=s[p+i]}}}),require_ede=__commonJSMin((n,l)=>{var a=require_minimalistic_assert(),d=require_inherits_browser(),u=require_cipher(),y=require_des$1();function e(p,h){a.equal(h.length,24,"Invalid key length");var f=h.slice(0,8),o=h.slice(8,16),r=h.slice(16,24);p==="encrypt"?this.ciphers=[y.create({type:"encrypt",key:f}),y.create({type:"decrypt",key:o}),y.create({type:"encrypt",key:r})]:this.ciphers=[y.create({type:"decrypt",key:r}),y.create({type:"encrypt",key:o}),y.create({type:"decrypt",key:f})]}function s(p){u.call(this,p);var h=new e(this.type,this.options.key);this._edeState=h}d(s,u),l.exports=s,s.create=function(h){return new s(h)},s.prototype._update=function(h,f,o,r){var c=this._edeState;c.ciphers[0]._update(h,f,o,r),c.ciphers[1]._update(o,r,o,r),c.ciphers[2]._update(o,r,o,r)},s.prototype._pad=y.prototype._pad,s.prototype._unpad=y.prototype._unpad}),require_des=__commonJSMin(n=>{n.utils=require_utils$3(),n.Cipher=require_cipher(),n.DES=require_des$1(),n.CBC=require_cbc$1(),n.EDE=require_ede()}),require_browserify_des=__commonJSMin((n,l)=>{var a=require_cipher_base(),d=require_des(),u=require_inherits_browser(),y=require_safe_buffer$1().Buffer,e={"des-ede3-cbc":d.CBC.instantiate(d.EDE),"des-ede3":d.EDE,"des-ede-cbc":d.CBC.instantiate(d.EDE),"des-ede":d.EDE,"des-cbc":d.CBC.instantiate(d.DES),"des-ecb":d.DES};e.des=e["des-cbc"],e.des3=e["des-ede3-cbc"],l.exports=s,u(s,a);function s(p){a.call(this);var h=p.mode.toLowerCase(),f=e[h],o;p.decrypt?o="decrypt":o="encrypt";var r=p.key;y.isBuffer(r)||(r=y.from(r)),(h==="des-ede"||h==="des-ede-cbc")&&(r=y.concat([r,r.slice(0,8)]));var c=p.iv;y.isBuffer(c)||(c=y.from(c)),this._des=f.create({key:r,iv:c,type:o})}s.prototype._update=function(p){return y.from(this._des.update(p))},s.prototype._final=function(){return y.from(this._des.final())}}),require_ecb=__commonJSMin(n=>{n.encrypt=function(l,a){return l._cipher.encryptBlock(a)},n.decrypt=function(l,a){return l._cipher.decryptBlock(a)}}),require_buffer_xor=__commonJSMin((n,l)=>{init_dist$3(),l.exports=function(d,u){for(var y=Math.min(d.length,u.length),e=new Buffer(y),s=0;s<y;++s)e[s]=d[s]^u[s];return e}}),require_cbc=__commonJSMin(n=>{var l=require_buffer_xor();n.encrypt=function(a,d){var u=l(d,a._prev);return a._prev=a._cipher.encryptBlock(u),a._prev},n.decrypt=function(a,d){var u=a._prev;return a._prev=d,l(a._cipher.decryptBlock(d),u)}}),require_cfb=__commonJSMin(n=>{var l=require_safe_buffer$1().Buffer,a=require_buffer_xor();function d(u,y,e){var s=y.length,p=a(y,u._cache);return u._cache=u._cache.slice(s),u._prev=l.concat([u._prev,e?y:p]),p}n.encrypt=function(u,y,e){for(var s=l.allocUnsafe(0),p;y.length;)if(u._cache.length===0&&(u._cache=u._cipher.encryptBlock(u._prev),u._prev=l.allocUnsafe(0)),u._cache.length<=y.length)p=u._cache.length,s=l.concat([s,d(u,y.slice(0,p),e)]),y=y.slice(p);else{s=l.concat([s,d(u,y,e)]);break}return s}}),require_cfb8=__commonJSMin(n=>{var l=require_safe_buffer$1().Buffer;function a(d,u,y){var e=d._cipher.encryptBlock(d._prev)[0]^u;return d._prev=l.concat([d._prev.slice(1),l.from([y?u:e])]),e}n.encrypt=function(d,u,y){for(var e=u.length,s=l.allocUnsafe(e),p=-1;++p<e;)s[p]=a(d,u[p],y);return s}}),require_cfb1=__commonJSMin(n=>{var l=require_safe_buffer$1().Buffer;function a(u,y,e){for(var s,p=-1,h=8,f=0,o,r;++p<h;)s=u._cipher.encryptBlock(u._prev),o=y&1<<7-p?128:0,r=s[0]^o,f+=(r&128)>>p%8,u._prev=d(u._prev,e?o:r);return f}function d(u,y){var e=u.length,s=-1,p=l.allocUnsafe(u.length);for(u=l.concat([u,l.from([y])]);++s<e;)p[s]=u[s]<<1|u[s+1]>>7;return p}n.encrypt=function(u,y,e){for(var s=y.length,p=l.allocUnsafe(s),h=-1;++h<s;)p[h]=a(u,y[h],e);return p}}
16),require_ofb=__commonJSMin(n=>{init_dist$3();var l=require_buffer_xor();function a(d){return d._prev=d._cipher.encryptBlock(d._prev),d._prev}n.encrypt=function(d,u){for(;d._cache.length<u.length;)d._cache=Buffer.concat([d._cache,a(d)]);var y=d._cache.slice(0,u.length);return d._cache=d._cache.slice(u.length),l(u,y)}}),require_incr32=__commonJSMin((n,l)=>{function a(d){for(var u=d.length,y;u--;)if(y=d.readUInt8(u),y===255)d.writeUInt8(0,u);else{y++,d.writeUInt8(y,u);break}}l.exports=a}),require_ctr=__commonJSMin(n=>{var l=require_buffer_xor(),a=require_safe_buffer$1().Buffer,d=require_incr32();function u(e){var s=e._cipher.encryptBlockRaw(e._prev);return d(e._prev),s}var y=16;n.encrypt=function(e,s){var p=Math.ceil(s.length/y),h=e._cache.length;e._cache=a.concat([e._cache,a.allocUnsafe(p*y)]);for(var f=0;f<p;f++){var o=u(e),r=h+f*y;e._cache.writeUInt32BE(o[0],r+0),e._cache.writeUInt32BE(o[1],r+4),e._cache.writeUInt32BE(o[2],r+8),e._cache.writeUInt32BE(o[3],r+12)}var c=e._cache.slice(0,s.length);return e._cache=e._cache.slice(s.length),l(s,c)}}),list_exports=__exportAll({aes128:()=>aes128,aes192:()=>aes192,aes256:()=>aes256,default:()=>list_default}),aes128,aes192,aes256,list_default,init_list=__esmMin(()=>{aes128={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},list_default={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128,aes192,aes256,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}}),require_modes$1=__commonJSMin((n,l)=>{var a={ECB:require_ecb(),CBC:require_cbc(),CFB:require_cfb(),CFB8:require_cfb8(),CFB1:require_cfb1(),OFB:require_ofb(),CTR:require_ctr(),GCM:require_ctr()},d=(init_list(),__toCommonJS(list_exports).default);for(var u in d)d[u].module=a[d[u].mode];l.exports=d}),require_aes=__commonJSMin((n,l)=>{var a=require_safe_buffer$1().Buffer;function d(h){a.isBuffer(h)||(h=a.from(h));for(var f=h.length/4|0,o=new Array(f),r=0;r<f;r++)o[r]=h.readUInt32BE(r*4);return o}function u(h){for(var f=0;f<h.length;h++)h[f]=0}function y(h,f,o,r,c){for(var i=o[0],v=o[1],b=o[2],S=o[3],q=h[0]^f[0],I=h[1]^f[1],k=h[2]^f[2],D=h[3]^f[3],N,F,z,G,Z=4,re=1;re<c;re++)N=i[q>>>24]^v[I>>>16&255]^b[k>>>8&255]^S[D&255]^f[Z++],F=i[I>>>24]^v[k>>>16&255]^b[D>>>8&255]^S[q&255]^f[Z++],z=i[k>>>24]^v[D>>>16&255]^b[q>>>8&255]^S[I&255]^f[Z++],G=i[D>>>24]^v[q>>>16&255]^b[I>>>8&255]^S[k&255]^f[Z++],q=N,I=F,k=z,D=G;return N=(r[q>>>24]<<24|r[I>>>16&255]<<16|r[k>>>8&255]<<8|r[D&255])^f[Z++],F=(r[I>>>24]<<24|r[k>>>16&255]<<16|r[D>>>8&255]<<8|r[q&255])^f[Z++],z=(r[k>>>24]<<24|r[D>>>16&255]<<16|r[q>>>8&255]<<8|r[I&255])^f[Z++],G=(r[D>>>24]<<24|r[q>>>16&255]<<16|r[I>>>8&255]<<8|r[k&255])^f[Z++],N=N>>>0,F=F>>>0,z=z>>>0,G=G>>>0,[N,F,z,G]}var e=[0,1,2,4,8,16,32,64,128,27,54],s=function(){for(var h=new Array(256),f=0;f<256;f++)f<128?h[f]=f<<1:h[f]=f<<1^283;for(var o=[],r=[],c=[[],[],[],[]],i=[[],[],[],[]],v=0,b=0,S=0;S<256;++S){var q=b^b<<1^b<<2^b<<3^b<<4;q=q>>>8^q&255^99,o[v]=q,r[q]=v;
16var I=h[v],k=h[I],D=h[k],N=h[q]*257^q*16843008;c[0][v]=N<<24|N>>>8,c[1][v]=N<<16|N>>>16,c[2][v]=N<<8|N>>>24,c[3][v]=N,N=D*16843009^k*65537^I*257^v*16843008,i[0][q]=N<<24|N>>>8,i[1][q]=N<<16|N>>>16,i[2][q]=N<<8|N>>>24,i[3][q]=N,v===0?v=b=1:(v=I^h[h[h[D^I]]],b^=h[h[b]])}return{SBOX:o,INV_SBOX:r,SUB_MIX:c,INV_SUB_MIX:i}}();function p(h){this._key=d(h),this._reset()}p.blockSize=16,p.keySize=256/8,p.prototype.blockSize=p.blockSize,p.prototype.keySize=p.keySize,p.prototype._reset=function(){for(var h=this._key,f=h.length,o=f+6,r=(o+1)*4,c=[],i=0;i<f;i++)c[i]=h[i];for(i=f;i<r;i++){var v=c[i-1];i%f===0?(v=v<<8|v>>>24,v=s.SBOX[v>>>24]<<24|s.SBOX[v>>>16&255]<<16|s.SBOX[v>>>8&255]<<8|s.SBOX[v&255],v^=e[i/f|0]<<24):f>6&&i%f===4&&(v=s.SBOX[v>>>24]<<24|s.SBOX[v>>>16&255]<<16|s.SBOX[v>>>8&255]<<8|s.SBOX[v&255]),c[i]=c[i-f]^v}for(var b=[],S=0;S<r;S++){var q=r-S,I=c[q-(S%4?0:4)];S<4||q<=4?b[S]=I:b[S]=s.INV_SUB_MIX[0][s.SBOX[I>>>24]]^s.INV_SUB_MIX[1][s.SBOX[I>>>16&255]]^s.INV_SUB_MIX[2][s.SBOX[I>>>8&255]]^s.INV_SUB_MIX[3][s.SBOX[I&255]]}this._nRounds=o,this._keySchedule=c,this._invKeySchedule=b},p.prototype.encryptBlockRaw=function(h){return h=d(h),y(h,this._keySchedule,s.SUB_MIX,s.SBOX,this._nRounds)},p.prototype.encryptBlock=function(h){var f=this.encryptBlockRaw(h),o=a.allocUnsafe(16);return o.writeUInt32BE(f[0],0),o.writeUInt32BE(f[1],4),o.writeUInt32BE(f[2],8),o.writeUInt32BE(f[3],12),o},p.prototype.decryptBlock=function(h){h=d(h);var f=h[1];h[1]=h[3],h[3]=f;var o=y(h,this._invKeySchedule,s.INV_SUB_MIX,s.INV_SBOX,this._nRounds),r=a.allocUnsafe(16);return r.writeUInt32BE(o[0],0),r.writeUInt32BE(o[3],4),r.writeUInt32BE(o[2],8),r.writeUInt32BE(o[1],12),r},p.prototype.scrub=function(){u(this._keySchedule),u(this._invKeySchedule),u(this._key)},l.exports.AES=p}),require_ghash=__commonJSMin((n,l)=>{var a=require_safe_buffer$1().Buffer,d=a.alloc(16,0);function u(s){return[s.readUInt32BE(0),s.readUInt32BE(4),s.readUInt32BE(8),s.readUInt32BE(12)]}function y(s){var p=a.allocUnsafe(16);return p.writeUInt32BE(s[0]>>>0,0),p.writeUInt32BE(s[1]>>>0,4),p.writeUInt32BE(s[2]>>>0,8),p.writeUInt32BE(s[3]>>>0,12),p}function e(s){this.h=s,this.state=a.alloc(16,0),this.cache=a.allocUnsafe(0)}e.prototype.ghash=function(s){for(var p=-1;++p<s.length;)this.state[p]^=s[p];this._multiply()},e.prototype._multiply=function(){for(var s=u(this.h),p=[0,0,0,0],h,f,o,r=-1;++r<128;){for(f=(this.state[~~(r/8)]&1<<7-r%8)!==0,f&&(p[0]^=s[0],p[1]^=s[1],p[2]^=s[2],p[3]^=s[3]),o=(s[3]&1)!==0,h=3;h>0;h--)s[h]=s[h]>>>1|(s[h-1]&1)<<31;s[0]=s[0]>>>1,o&&(s[0]=s[0]^225<<24)}this.state=y(p)},e.prototype.update=function(s){this.cache=a.concat([this.cache,s]);for(var p;this.cache.length>=16;)p=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(p)},e.prototype.final=function(s,p){return this.cache.length&&this.ghash(a.concat([this.cache,d],16)),this.ghash(y([0,s,0,p])),this.state},l.exports=e}),require_authCipher=__commonJSMin((n,l)=>{var a=require_aes(),d=require_safe_buffer$1().Buffer,u=require_cipher_base(),y=require_inherits_browser(),e=require_ghash(),s=require_buffer_xor(),p=require_incr32();function h(r,c){var i=0;r.length!==c.length&&i++;for(var v=Math.min(r.length,c.length),b=0;b<v;++b)i+=r[b]^c[b];return i}function f(r,c,i){if(c.length===12)return r._finID=d.concat([c,d.from([0,0,0,1])]),d.concat([c,d.from([0,0,0,2])]);var v=new e(i),b=c.length,S=b%16;v.update(c),S&&(S=16-S,v.update(d.alloc(S,0))),v.update(d.alloc(8,0));var q=b*8,I=d.alloc(8);I.writeUIntBE(q,0,8),v.update(I),r._finID=v.state;var k=d.from(r._finID);return p(k),k}function o(r,c,i,v){u.call(this);var b=d.alloc(4,0);this._cipher=new a.AES(c);var S=this._cipher.encryptBlock(b);this._ghash=new e(S),i=f(this,i,S),this._prev=d.from(i),this._cache=d.allocUnsafe(0),this._secCache=d.allocUnsafe(0),this._decrypt=v,this._alen=0,this._len=0,this._mode=r,this._authTag=null,this._called=!1}y(o,u),o.prototype._update=function(r){if(!this._called&&this._alen){var c=16-this._alen%16;c<16&&(c=d.alloc(c,0),this._ghash.update(c))}this._called=!0;var i=this._mode.encrypt(this,r);return this._decrypt?this._ghash.update(r):this._ghash.update(i),this._len+=r.length,i},o.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var r=s(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&h(r,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=r,this._cipher.scrub()},o.prototype.getAuthTag=function(){if(this._decrypt||!d.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},o.prototype.setAuthTag=function(c){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=c},o.prototype.setAAD=function(c){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(c),this._alen+=c.length},l.exports=o}
16),require_streamCipher=__commonJSMin((n,l)=>{var a=require_aes(),d=require_safe_buffer$1().Buffer,u=require_cipher_base(),y=require_inherits_browser();function e(s,p,h,f){u.call(this),this._cipher=new a.AES(p),this._prev=d.from(h),this._cache=d.allocUnsafe(0),this._secCache=d.allocUnsafe(0),this._decrypt=f,this._mode=s}y(e,u),e.prototype._update=function(s){return this._mode.encrypt(this,s,this._decrypt)},e.prototype._final=function(){this._cipher.scrub()},l.exports=e}),require_evp_bytestokey=__commonJSMin((n,l)=>{var a=require_safe_buffer$1().Buffer,d=require_md5_js();function u(y,e,s,p){if(a.isBuffer(y)||(y=a.from(y,"binary")),e&&(a.isBuffer(e)||(e=a.from(e,"binary")),e.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var h=s/8,f=a.alloc(h),o=a.alloc(p||0),r=a.alloc(0);h>0||p>0;){var c=new d;c.update(r),c.update(y),e&&c.update(e),r=c.digest();var i=0;if(h>0){var v=f.length-h;i=Math.min(h,r.length),r.copy(f,v,0,i),h-=i}if(i<r.length&&p>0){var b=o.length-p,S=Math.min(p,r.length-i);r.copy(o,b,i,i+S),p-=S}}return r.fill(0),{key:f,iv:o}}l.exports=u}),require_encrypter=__commonJSMin(n=>{var l=require_modes$1(),a=require_authCipher(),d=require_safe_buffer$1().Buffer,u=require_streamCipher(),y=require_cipher_base(),e=require_aes(),s=require_evp_bytestokey(),p=require_inherits_browser();function h(i,v,b){y.call(this),this._cache=new o,this._cipher=new e.AES(v),this._prev=d.from(b),this._mode=i,this._autopadding=!0}p(h,y),h.prototype._update=function(i){this._cache.add(i);for(var v,b,S=[];v=this._cache.get();)b=this._mode.encrypt(this,v),S.push(b);return d.concat(S)};var f=d.alloc(16,16);h.prototype._final=function(){var i=this._cache.flush();if(this._autopadding)return i=this._mode.encrypt(this,i),this._cipher.scrub(),i;if(!i.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(i){return this._autopadding=!!i,this};function o(){this.cache=d.allocUnsafe(0)}o.prototype.add=function(i){this.cache=d.concat([this.cache,i])},o.prototype.get=function(){if(this.cache.length>15){var i=this.cache.slice(0,16);return this.cache=this.cache.slice(16),i}return null},o.prototype.flush=function(){for(var i=16-this.cache.length,v=d.allocUnsafe(i),b=-1;++b<i;)v.writeUInt8(i,b);return d.concat([this.cache,v])};function r(i,v,b){var S=l[i.toLowerCase()];if(!S)throw new TypeError("invalid suite type");if(typeof v=="string"&&(v=d.from(v)),v.length!==S.key/8)throw new TypeError("invalid key length "+v.length);if(typeof b=="string"&&(b=d.from(b)),S.mode!=="GCM"&&b.length!==S.iv)throw new TypeError("invalid iv length "+b.length);return S.type==="stream"?new u(S.module,v,b):S.type==="auth"?new a(S.module,v,b):new h(S.module,v,b)}function c(i,v){var b=l[i.toLowerCase()];if(!b)throw new TypeError("invalid suite type");var S=s(v,!1,b.key,b.iv);return r(i,S.key,S.iv)}n.createCipheriv=r,n.createCipher=c}),require_decrypter=__commonJSMin(n=>{var l=require_authCipher(),a=require_safe_buffer$1().Buffer,d=require_modes$1(),u=require_streamCipher(),y=require_cipher_base(),e=require_aes(),s=require_evp_bytestokey(),p=require_inherits_browser();function h(i,v,b){y.call(this),this._cache=new f,this._last=void 0,this._cipher=new e.AES(v),this._prev=a.from(b),this._mode=i,this._autopadding=!0}p(h,y),h.prototype._update=function(i){this._cache.add(i);for(var v,b,S=[];v=this._cache.get(this._autopadding);)b=this._mode.decrypt(this,v),S.push(b);return a.concat(S)},h.prototype._final=function(){var i=this._cache.flush();if(this._autopadding)return o(this._mode.decrypt(this,i));if(i)throw new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(i){return this._autopadding=!!i,this};function f(){this.cache=a.allocUnsafe(0)}f.prototype.add=function(i){this.cache=a.concat([this.cache,i])},f.prototype.get=function(i){var v;if(i){if(this.cache.length>16)return v=this.cache.slice(0,16),this.cache=this.cache.slice(16),v}else if(this.cache.length>=16)return v=this.cache.slice(0,16),this.cache=this.cache.slice(16),v;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache};function o(i){var v=i[15];if(v<1||v>16)throw new Error("unable to decrypt data");for(var b=-1;++b<v;)if(i[b+(16-v)]!==v)throw new Error("unable to decrypt data");if(v!==16)return i.slice(0,16-v)}function r(i,v,b){var S=d[i.toLowerCase()];if(!S)throw new TypeError("invalid suite type");if(typeof b=="string"&&(b=a.from(b)),S.mode!=="GCM"&&b.length!==S.iv)throw new TypeError("invalid iv length "+b.length);if(typeof v=="string"&&(v=a.from(v)),v.length!==S.key/8)throw new TypeError("invalid key length "+v.length);return S.type==="stream"?new u(S.module,v,b,!0):S.type==="auth"?new l(S.module,v,b,!0):new h(S.module,v,b)}function c(i,v){var b=d[i.toLowerCase()];if(!b)throw new TypeError("invalid suite type");var S=s(v,!1,b.key,b.iv);return r(i,S.key,S.iv)}n.createDecipher=c,n.createDecipheriv=r}),require_browser$6=__commonJSMin(n=>{var l=require_encrypter(),a=require_decrypter(),d=(init_list(),__toCommonJS(list_exports
16).default);function u(){return Object.keys(d)}n.createCipher=n.Cipher=l.createCipher,n.createCipheriv=n.Cipheriv=l.createCipheriv,n.createDecipher=n.Decipher=a.createDecipher,n.createDecipheriv=n.Decipheriv=a.createDecipheriv,n.listCiphers=n.getCiphers=u}),require_modes=__commonJSMin(n=>{n["des-ecb"]={key:8,iv:0},n["des-cbc"]=n.des={key:8,iv:8},n["des-ede3-cbc"]=n.des3={key:24,iv:8},n["des-ede3"]={key:24,iv:0},n["des-ede-cbc"]={key:16,iv:8},n["des-ede"]={key:16,iv:0}}),require_browser$5=__commonJSMin(n=>{var l=require_browserify_des(),a=require_browser$6(),d=require_modes$1(),u=require_modes(),y=require_evp_bytestokey();function e(o,r){o=o.toLowerCase();var c,i;if(d[o])c=d[o].key,i=d[o].iv;else if(u[o])c=u[o].key*8,i=u[o].iv;else throw new TypeError("invalid suite type");var v=y(r,!1,c,i);return p(o,v.key,v.iv)}function s(o,r){o=o.toLowerCase();var c,i;if(d[o])c=d[o].key,i=d[o].iv;else if(u[o])c=u[o].key*8,i=u[o].iv;else throw new TypeError("invalid suite type");var v=y(r,!1,c,i);return h(o,v.key,v.iv)}function p(o,r,c){if(o=o.toLowerCase(),d[o]
16)return a.createCipheriv(o,r,c);if(u[o])return new l({key:r,iv:c,mode:o});throw new TypeError("invalid suite type")}function h(o,r,c){if(o=o.toLowerCase(),d[o])return a.createDecipheriv(o,r,c);if(u[o])return new l({key:r,iv:c,mode:o,decrypt:!0});throw new TypeError("invalid suite type")}function f(){return Object.keys(u).concat(a.getCiphers())}n.createCipher=n.Cipher=e,n.createCipheriv=n.Cipheriv=p,n.createDecipher=n.Decipher=s,n.createDecipheriv=n.Decipheriv=h,n.listCiphers=n.getCiphers=f}),require_bn$1=__commonJSMin((n,l)=>{(function(a,d){"use strict";function u(C,m){if(!C)throw new Error(m||"Assertion failed")}function y(C,m){C.super_=m;var O=function(){};O.prototype=m.prototype,C.prototype=new O,C.prototype.constructor=C}function e(C,m,O){if(e.isBN(C))return C;this.negative=0,this.words=null,this.length=0,this.red=null,C!==null&&((m==="le"||m==="be")&&(O=m,m=10),this._init(C||0,m||10,O||"be"))}typeof a=="object"?a.exports=e:d.BN=e,e.BN=e,e.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=require_dist().Buffer}catch{}e.isBN=function(m){return m instanceof e?!0:m!==null&&typeof m=="object"&&m.constructor.wordSize===e.wordSize&&Array.isArray(m.words)},e.max=function(m,O){return m.cmp(O)>0?m:O},e.min=function(m,O){return m.cmp(O)<0?m:O},e.prototype._init=function(m,O,E){if(typeof m=="number")return this._initNumber(m,O,E);if(typeof m=="object")return this._initArray(m,O,E);O==="hex"&&(O=16),u(O===(O|0)&&O>=2&&O<=36),m=m.toString().replace(/\s+/g,"");var t=0;m[0]==="-"&&(t++,this.negative=1),t<m.length&&(O===16?this._parseHex(m,t,E):(this._parseBase(m,O,t),E==="le"&&this._initArray(this.toArray(),O,E)))},e.prototype._initNumber=function(m,O,E){m<0&&(this.negative=1,m=-m),m<67108864?(this.words=[m&67108863],this.length=1):m<4503599627370496?(this.words=[m&67108863,m/67108864&67108863],this.length=2):(u(m<9007199254740992),this.words=[m&67108863,m/67108864&67108863,1],this.length=3),E==="le"&&this._initArray(this.toArray(),O,E)},e.prototype._initArray=function(m,O,E){if(u(typeof m.length=="number"),m.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(m.length/3),this.words=new Array(this.length);for(var t=0;t<this.length;t++)this.words[t]=0;var g,R,M=0;if(E==="be")for(t=m.length-1,g=0;t>=0;t-=3)R=m[t]|m[t-1]<<8|m[t-2]<<16,this.words[g]|=R<<M&67108863,this.words[g+1]=R>>>26-M&67108863,M+=24,M>=26&&(M-=26,g++);else if(E==="le")for(t=0,g=0;t<m.length;t+=3)R=m[t]|m[t+1]<<8|m[t+2]<<16,this.words[g]|=R<<M&67108863,this.words[g+1]=R>>>26-M&67108863,M+=24,M>=26&&(M-=26,g++);return this.strip()};function p(C,m){var O=C.charCodeAt(m);return O>=65&&O<=70?O-55:O>=97&&O<=102?O-87:O-48&15}function h(C,m,O){var E=p(C,O);return O-1>=m&&(E|=p(C,O-1)<<4),E}e.prototype._parseHex=function(m,O,E){this.length=Math.ceil((m.length-O)/6),this.words=new Array(this.length);for(var t=0;t<this.length;t++)this.words[t]=0;var g=0,R=0,M;if(E==="be")for(t=m.length-1;t>=O;t-=2)M=h(m,O,t)<<g,this.words[R]|=M&67108863,g>=18?(g-=18,R+=1,this.words[R]|=M>>>26):g+=8;else for(t=(m.length-O)%2===0?O+1:O;t<m.length;t+=2)M=h(m,O,t)<<g,this.words[R]|=M&67108863,g>=18?(g-=18,R+=1,this.words[R]|=M>>>26):g+=8;this.strip()};function f(C,m,O,E){for(var t=0,g=Math.min(C.length,O),R=m;R<g;R++){var M=C.charCodeAt(R)-48;t*=E,M>=49?t+=M-49+10:M>=17?t+=M-17+10:t+=M}return t}e.prototype._parseBase=function(m,O,E){this.words=[0],this.length=1;for(var t=0,g=1;g<=67108863;g*=O)t++;t--,g=g/O|0;for(var R=m.length-E,M=R%t,w=Math.min(R,R-M)+E,_=0,B=E;B<w;B+=t)_=f(m,B,B+t,O),this.imuln(g),this.words[0]+_<67108864?this.words[0]+=_:this._iaddn(_);if(M!==0){var T=1;for(_=f(m,B,m.length,O),B=0;B<M;B++)T*=O;this.imuln(T),this.words[0]+_<67108864?this.words[0]+=_:this._iaddn(_)}this.strip()},e.prototype.copy=function(m){m.words=new Array(this.length);for(var O=0;O<this.length;O++)m.words[O]=this.words[O];m.length=this.length,m.negative=this.negative,m.red=this.red},e.prototype.clone=function(){var m=new e(null);return this.copy(m),m},e.prototype._expand=function(m){for(;this.length<m;)this.words[this.length++]=0;return this},e.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},e.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},e.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var o=["","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"],r=[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],c=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 5,869 bytes, line 16
16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];e.prototype.toString=function(m,O){m=m||10,O=O|0||1;var E;if(m===16||m==="hex"){E="";for(var t=0,g=0,R=0;R<this.length;R++){var M=this.words[R],w=((M<<t|g)&16777215).toString(16);g=M>>>24-t&16777215,g!==0||R!==this.length-1?E=o[6-w.length]+w+E:E=w+E,t+=2,t>=26&&(t-=26,R--)}for(g!==0&&(E=g.toString(16)+E);E.length%O!==0;)E="0"+E;return this.negative!==0&&(E="-"+E),E}if(m===(m|0)&&m>=2&&m<=36){var _=r[m],B=c[m];E="";var T=this.clone();for(T.negative=0;!T.isZero();){var A=T.modn(B).toString(m);T=T.idivn(B),T.isZero()?E=A+E:E=o[_-A.length]+A+E}for(this.isZero()&&(E="0"+E);E.length%O!==0;)E="0"+E;return this.negative!==0&&(E="-"+E),E}u(!1,"Base should be between 2 and 36")},e.prototype.toNumber=function(){var m=this.words[0];return this.length===2?m+=this.words[1]*67108864:this.length===3&&this.words[2]===1?m+=4503599627370496+this.words[1]*67108864:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-m:m},e.prototype.toJSON=function(){return this.toString(16)},e.prototype.toBuffer=function(m,O){return u(typeof s<"u"),this.toArrayLike(s,m,O)},e.prototype.toArray=function(m,O){return this.toArrayLike(Array,m,O)},e.prototype.toArrayLike=function(m,O,E){var t=this.byteLength(),g=E||Math.max(1,t);u(t<=g,"byte array longer than desired length"),u(g>0,"Requested array length <= 0"),this.strip();var R=O==="le",M=new m(g),w,_,B=this.clone();if(R){for(_=0;!B.isZero();_++)w=B.andln(255),B.iushrn(8),M[_]=w;for(;_<g;_++)M[_]=0}else{for(_=0;_<g-t;_++)M[_]=0;for(_=0;!B.isZero();_++)w=B.andln(255),B.iushrn(8),M[g-_-1]=w}return M},Math.clz32?e.prototype._countBits=function(m){return 32-Math.clz32(m)}:e.prototype._countBits=function(m){var O=m,E=0;return O>=4096&&(E+=13,O>>>=13),O>=64&&(E+=7,O>>>=7),O>=8&&(E+=4,O>>>=4),O>=2&&(E+=2,O>>>=2),E+O},e.prototype._zeroBits=function(m){if(m===0)return 26;var O=m,E=0;return O&8191||(E+=13,O>>>=13),O&127||(E+=7,O>>>=7),O&15||(E+=4,O>>>=4),O&3||(E+=2,O>>>=2),O&1||E++,E},e.prototype.bitLength=function(){var m=this.words[this.length-1],O=this._countBits(m);return(this.length-1)*26+O};function i(C){for(var m=new Array(C.bitLength()),O=0;O<m.length;O++){var E=O/26|0,t=O%26;m[O]=(C.words[E]&1<<t)>>>t}return m}e.prototype.zeroBits=function(){if(this.isZero())return 0;for(var m=0,O=0;O<this.length;O++){var E=this._zeroBits(this.words[O]);if(m+=E,E!==26)break}return m},e.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},e.prototype.toTwos=function(m){return this.negative!==0?this.abs().inotn(m).iaddn(1):this.clone()},e.prototype.fromTwos=function(m){return this.testn(m-1)?this.notn(m).iaddn(1).ineg():this.clone()},e.prototype.isNeg=function(){return this.negative!==0},e.prototype.neg=function(){return this.clone().ineg()},e.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},e.prototype.iuor=function(m){for(;this.length<m.length;)this.words[this.length++]=0;for(var O=0;O<m.length;O++)this.words[O]=this.words[O]|m.words[O];return this.strip()},e.prototype.ior=function(m){return u((this.negative|m.negative)===0),this.iuor(m)},e.prototype.or=function(m){return this.length>m.length?this.clone().ior(m):m.clone().ior(this)},e.prototype.uor=function(m){return this.length>m.length?this.clone().iuor(m):m.clone().iuor(this)},e.prototype.iuand=function(m){var O;this.length>m.length?O=m:O=this;for(var E=0;E<O.length;E++)this.words[E]=this.words[E]&m.words[E];return this.length=O.length,this.strip()},e.prototype.iand=function(m){return u((this.negative|m.negative)===0),this.iuand(m)},e.prototype.and=function(m){return this.length>m.length?this.clone().iand(m):m.clone().iand(this)},e.prototype.uand=function(m){return this.length>m.length?this.clone().iuand(m):m.clone().iuand(this)},e.prototype.iuxor=function(m){var O,E;this.length>m.length?(O=this,E=m):(O=m,E=this);for(var t=0;t<E.length;t++)this.words[t]=O.words[t]^E.words[t];if(this!==O)for(;t<O.length;t++)this.words[t]=O.words[t];return this.length=O.length,this.strip()},e.prototype.ixor=function(m){return u((this.negative|m.negative)===0),this.iuxor(m)},e.prototype.xor=function(m){return this.length>m.length?this.clone().ixor(m):m.clone().ixor(this)},e.prototype.uxor=function(m){return this.length>m.length?this.clone().iuxor(m):m.clone().iuxor(this)},e.prototype.inotn=function(m){u(typeof m=="number"&&m>=0);var O=Math.ceil(m/26)|0,E=m%26;this._expand(O),E>0&&O--;for(var t=0;t<O;t++)this.words[t]=~this.words[t]&67108863;return E>0&&(this.words[t]=~this.words[t]&67108863>>26-E),this.strip()},e.prototype.notn=function(m){return this.clone().inotn(m)},e.prototype.setn=function(m,O){u(typeof m=="number"&&m>=0);var E=m/26|0,t=m%26;return this._expand(E+1),O?this.words[E]=this.words[E]|1<<t:this.words[E]=this.words[E]&~(1<<t),this.strip()},e.prototype.iadd=function(m){var O;if(this.negative!==0&&m.negative===0)return this.negative=0,O=this.isub(m),this.negative^=1,this._normSign();if(this.negative===0&&m.negative!==0)return m.negative=0,O=this.isub(m),m.negative=1,O._normSign();var E,t;this.length>m.length?(E=this,t=m):(E=m,t=this);for(var g=0,R=0;R<t.length;R++)O=(E.words[R]|0)+(t.words[R]|0)+g,this.words[R]=O&67108863,g=O>>>26;for(;g!==0&&R<E.length;R++)O=(E.words[R]|0)+g,this.words[R]=O&67108863,g=O>>>26;if(this.length=E.length,g!==0)this.words[this.length]=g,this.length++;else if(E!==this)for(;R<E.length;R++)this.words[R]=E.words[R];return this},e.prototype.add=function(m){var O;return m.negative!==0&&this.negative===0?(m.negative=0,O=this.sub(m),m.negative^=1,O):m.negative===0&&this.negative!==0?(this.negative=0,O=m.sub(this),this.negative=1,O):this.length>m.length?this.clone().iadd(m):m.clone().iadd(this)},e.prototype.isub=function(m){if(m.negative!==0){m.negative=0;
vendor: 10,289 bytes, line 16
16var O=this.iadd(m);return m.negative=1,O._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(m),this.negative=1,this._normSign();var E=this.cmp(m);if(E===0)return this.negative=0,this.length=1,this.words[0]=0,this;var t,g;E>0?(t=this,g=m):(t=m,g=this);for(var R=0,M=0;M<g.length;M++)O=(t.words[M]|0)-(g.words[M]|0)+R,R=O>>26,this.words[M]=O&67108863;for(;R!==0&&M<t.length;M++)O=(t.words[M]|0)+R,R=O>>26,this.words[M]=O&67108863;if(R===0&&M<t.length&&t!==this)for(;M<t.length;M++)this.words[M]=t.words[M];return this.length=Math.max(this.length,M),t!==this&&(this.negative=1),this.strip()},e.prototype.sub=function(m){return this.clone().isub(m)};function v(C,m,O){O.negative=m.negative^C.negative;var E=C.length+m.length|0;O.length=E,E=E-1|0;var t=C.words[0]|0,g=m.words[0]|0,R=t*g,M=R&67108863,w=R/67108864|0;O.words[0]=M;for(var _=1;_<E;_++){for(var B=w>>>26,T=w&67108863,A=Math.min(_,m.length-1),$=Math.max(0,_-C.length+1);$<=A;$++){var te=_-$|0;t=C.words[te]|0,g=m.words[$]|0,R=t*g+T,B+=R/67108864|0,T=R&67108863}O.words[_]=T|0,w=B|0}return w!==0?O.words[_]=w|0:O.length--,O.strip()}var b=function(m,O,E){var t=m.words,g=O.words,R=E.words,M=0,w,_,B,T=t[0]|0,A=T&8191,$=T>>>13,te=t[1]|0,W=te&8191,K=te>>>13,L=t[2]|0,U=L&8191,X=L>>>13,j=t[3]|0,J=j&8191,Q=j>>>13,ne=t[4]|0,se=ne&8191,oe=ne>>>13,we=t[5]|0,ie=we&8191,ve=we>>>13,De=t[6]|0,ue=De&8191,fe=De>>>13,ke=t[7]|0,le=ke&8191,be=ke>>>13,Ue=t[8]|0,ye=Ue&8191,me=Ue>>>13,je=t[9]|0,qe=je&8191,Be=je>>>13,Fe=g[0]|0,Se=Fe&8191,Me=Fe>>>13,Je=g[1]|0,Ie=Je&8191,Ee=Je>>>13,He=g[2]|0,Pe=He&8191,Re=He>>>13,$e=g[3]|0,_e=$e&8191,Ae=$e>>>13,ze=g[4]|0,ge=ze&8191,Oe=ze>>>13,H=g[5]|0,P=H&8191,x=H>>>13,V=g[6]|0,Y=V&8191,ee=V>>>13,ae=g[7]|0,ce=ae&8191,de=ae>>>13,Ce=g[8]|0,pe=Ce&8191,he=Ce>>>13,ur=g[9]|0,xe=ur&8191,Te=ur>>>13;E.negative=m.negative^O.negative,E.length=19,w=Math.imul(A,Se),_=Math.imul(A,Me),_=_+Math.imul($,Se)|0,B=Math.imul($,Me);var fr=(M+w|0)+((_&8191)<<13)|0;M=(B+(_>>>13)|0)+(fr>>>26)|0,fr&=67108863,w=Math.imul(W,Se),_=Math.imul(W,Me),_=_+Math.imul(K,Se)|0,B=Math.imul(K,Me),w=w+Math.imul(A,Ie)|0,_=_+Math.imul(A,Ee)|0,_=_+Math.imul($,Ie)|0,B=B+Math.imul($,Ee)|0;var Ne=(M+w|0)+((_&8191)<<13)|0;M=(B+(_>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,w=Math.imul(U,Se),_=Math.imul(U,Me),_=_+Math.imul(X,Se)|0,B=Math.imul(X,Me),w=w+Math.imul(W,Ie)|0,_=_+Math.imul(W,Ee)|0,_=_+Math.imul(K,Ie)|0,B=B+Math.imul(K,Ee)|0,w=w+Math.imul(A,Pe)|0,_=_+Math.imul(A,Re)|0,_=_+Math.imul($,Pe)|0,B=B+Math.imul($,Re)|0;var Le=(M+w|0)+((_&8191)<<13)|0;M=(B+(_>>>13)|0)+(Le>>>26)|0,Le&=67108863,w=Math.imul(J,Se),_=Math.imul(J,Me),_=_+Math.imul(Q,Se)|0,B=Math.imul(Q,Me),w=w+Math.imul(U,Ie)|0,_=_+Math.imul(U,Ee)|0,_=_+Math.imul(X,Ie)|0,B=B+Math.imul(X,Ee)|0,w=w+Math.imul(W,Pe)|0,_=_+Math.imul(W,Re)|0,_=_+Math.imul(K,Pe)|0,B=B+Math.imul(K,Re)|0,w=w+Math.imul(A,_e)|0,_=_+Math.imul(A,Ae)|0,_=_+Math.imul($,_e)|0,B=B+Math.imul($,Ae)|0;var We=(M+w|0)+((_&8191)<<13)|0;M=(B+(_>>>13)|0)+(We>>>26)|0,We&=67108863,w=Math.imul(se,Se),_=Math.imul(se,Me),_=_+Math.imul(oe,Se)|0,B=Math.imul(oe,Me),w=w+Math.imul(J,Ie)|0,_=_+Math.imul(J,Ee)|0,_=_+Math.imul(Q,Ie)|0,B=B+Math.imul(Q,Ee)|0,w=w+Math.imul(U,Pe)|0,_=_+Math.imul(U,Re)|0,_=_+Math.imul(X,Pe)|0,B=B+Math.imul(X,Re)|0,w=w+Math.imul(W,_e)|0,_=_+Math.imul(W,Ae)|0,_=_+Math.imul(K,_e)|0,B=B+Math.imul(K,Ae)|0,w=w+Math.imul(A,ge)|0,_=_+Math.imul(A,Oe)|0,_=_+Math.imul($,ge)|0,B=B+Math.imul($,Oe)|0;var Ke=(M+w|0)+((_&8191)<<13)|0;M=(B+(_>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,w=Math.imul(ie,Se),_=Math.imul(ie,Me),_=_+Math.imul(ve,Se)|0,B=Math.imul(ve,Me),w=w+Math.imul(se,Ie)|0,_=_+Math.imul(se,Ee)|0,_=_+Math.imul(oe,Ie)|0,B=B+Math.imul(oe,Ee)|0,w=w+Math.imul(J,Pe)|0,_=_+Math.imul(J,Re)|0,_=_+Math.imul(Q,Pe)|0,B=B+Math.imul(Q,Re)|0,w=w+Math.imul(U,_e)|0,_=_+Math.imul(U,Ae)|0,_=_+Math.imul(X,_e)|0,B=B+Math.imul(X,Ae)|0,w=w+Math.imul(W,ge)|0,_=_+Math.imul(W,Oe)|0,_=_+Math.imul(K,ge)|0,B=B+Math.imul(K,Oe)|0,w=w+Math.imul(A,P)|0,_=_+Math.imul(A,x)|0,_=_+Math.imul($,P)|0,B=B+Math.imul($,x)|0;var Ve=(M+w|0)+((_&8191)<<13)|0;M=(B+(_>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,w=Math.imul(ue,Se),_=Math.imul(ue,Me),_=_+Math.imul(fe,Se)|0,B=Math.imul(fe,Me),w=w+Math.imul(ie,Ie)|0,_=_+Math.imul(ie,Ee)|0,_=_+Math.imul(ve,Ie)|0,B=B+Math.imul(ve,Ee)|0,w=w+Math.imul(se,Pe)|0,_=_+Math.imul(se,Re)|0,_=_+Math.imul(oe,Pe)|0,B=B+Math.imul(oe,Re)|0,w=w+Math.imul(J,_e)|0,_=_+Math.imul(J,Ae)|0,_=_+Math.imul(Q,_e)|0,B=B+Math.imul(Q,Ae)|0,w=w+Math.imul(U,ge)|0,_=_+Math.imul(U,Oe)|0,_=_+Math.imul(X,ge)|0,B=B+Math.imul(X,Oe)|0,w=w+Math.imul(W,P)|0,_=_+Math.imul(W,x)|0,_=_+Math.imul(K,P)|0,B=B+Math.imul(K,x)|0,w=w+Math.imul(A,Y)|0,_=_+Math.imul(A,ee)|0,_=_+Math.imul($,Y)|0,B=B+Math.imul($,ee)|0;var Ge=(M+w|0)+((_&8191)<<13)|0;M=(B+(_>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,w=Math.imul(le,Se),_=Math.imul(le,Me),_=_+Math.imul(be,Se)|0,B=Math.imul(be,Me),w=w+Math.imul(ue,Ie)|0,_=_+Math.imul(ue,Ee)|0,_=_+Math.imul(fe,Ie)|0,B=B+Math.imul(fe,Ee)|0,w=w+Math.imul(ie,Pe)|0,_=_+Math.imul(ie,Re)|0,_=_+Math.imul(ve,Pe)|0,B=B+Math.imul(ve,Re)|0,w=w+Math.imul(se,_e)|0,_=_+Math.imul(se,Ae)|0,_=_+Math.imul(oe,_e)|0,B=B+Math.imul(oe,Ae)|0,w=w+Math.imul(J,ge)|0,_=_+Math.imul(J,Oe)|0,_=_+Math.imul(Q,ge)|0,B=B+Math.imul(Q,Oe)|0,w=w+Math.imul(U,P)|0,_=_+Math.imul(U,x)|0,_=_+Math.imul(X,P)|0,B=B+Math.imul(X,x)|0,w=w+Math.imul(W,Y)|0,_=_+Math.imul(W,ee)|0,_=_+Math.imul(K,Y)|0,B=B+Math.imul(K,ee)|0,w=w+Math.imul(A,ce)|0,_=_+Math.imul(A,de)|0,_=_+Math.imul($,ce)|0,B=B+Math.imul($,de)|0;var Ze=(M+w|0)+((_&8191)<<13)|0;M=(B+(_>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,w=Math.imul(ye,Se),_=Math.imul(ye,Me),_=_+Math.imul(me,Se)|0,B=Math.imul(me,Me),w=w+Math.imul(le,Ie)|0,_=_+Math.imul(le,Ee)|0,_=_+Math.imul(be,Ie)|0,B=B+Math.imul(be,Ee)|0,w=w+Math.imul(ue,Pe)|0,_=_+Math.imul(ue,Re)|0,_=_+Math.imul(fe,Pe)|0,B=B+Math.imul(fe,Re)|0,w=w+Math.imul(ie,_e)|0,_=_+Math.imul(ie,Ae)|0,_=_+Math.imul(ve,_e)|0,B=B+Math.imul(ve,Ae)|0,w=w+Math.imul(se,ge)|0,_=_+Math.imul(se,Oe)|0,_=_+Math.imul(oe,ge)|0,B=B+Math.imul(oe,Oe)|0,w=w+Math.imul(J,P)|0,_=_+Math.imul(J,x)|0,_=_+Math.imul(Q,P)|0,B=B+Math.imul(Q,x)|0,w=w+Math.imul(U,Y)|0,_=_+Math.imul(U,ee)|0,_=_+Math.imul(X,Y)|0,B=B+Math.imul(X,ee)|0,w=w+Math.imul(W,ce)|0,_=_+Math.imul(W,de)|0,_=_+Math.imul(K,ce)|0,B=B+Math.imul(K,de)|0,w=w+Math.imul(A,pe)|0,_=_+Math.imul(A,he)|0,_=_+Math.imul($,pe)|0,B=B+Math.imul($,he)|0;var Xe=(M+w|0)+((_&8191)<<13)|0;M=(B+(_>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,w=Math.imul(qe,Se),_=Math.imul(qe,Me),_=_+Math.imul(Be,Se)|0,B=Math.imul(Be,Me),w=w+Math.imul(ye,Ie)|0,_=_+Math.imul(ye,Ee)|0,_=_+Math.imul(me,Ie)|0,B=B+Math.imul(me,Ee)|0,w=w+Math.imul(le,Pe)|0,_=_+Math.imul(le,Re)|0,_=_+Math.imul(be,Pe)|0,B=B+Math.imul(be,Re)|0,w=w+Math.imul(ue,_e)|0,_=_+Math.imul(ue,Ae)|0,_=_+Math.imul(fe,_e)|0,B=B+Math.imul(fe,Ae)|0,w=w+Math.imul(ie,ge)|0,_=_+Math.imul(ie,Oe)|0,_=_+Math.imul(ve,ge)|0,B=B+Math.imul(ve,Oe)|0,w=w+Math.imul(se,P)|0,_=_+Math.imul(se,x)|0,_=_+Math.imul(oe,P)|0,B=B+Math.imul(oe,x)|0,w=w+Math.imul(J,Y)|0,_=_+Math.imul(J,ee)|0,_=_+Math.imul(Q,Y)|0,B=B+Math.imul(Q,ee)|0,w=w+Math.imul(U,ce)|0,_=_+Math.imul(U,de)|0,_=_+Math.imul(X,ce)|0,B=B+Math.imul(X,de)|0,w=w+Math.imul(W,pe)|0,_=_+Math.imul(W,he)|0,_=_+Math.imul(K,pe)|0,B=B+Math.imul(K,he)|0,w=w+Math.imul(A,xe)|0,_=_+Math.imul(A,Te)|0,_=_+Math.imul($,xe)|0,B=B+Math.imul($,Te)|0;var Ye=(M+w|0)+((_&8191)<<13)|0;M=(B+(_>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,w=Math.imul(qe,Ie),_=Math.imul(qe,Ee),_=_+Math.imul(Be,Ie)|0,B=Math.imul(Be,Ee),w=w+Math.imul(ye,Pe)|0,_=_+Math.imul(ye,Re)|0,_=_+Math.imul(me,Pe)|0,B=B+Math.imul(me,Re)|0,w=w+Math.imul(le,_e)|0,_=_+Math.imul(le,Ae)|0,_=_+Math.imul(be,_e)|0,B=B+Math.imul(be,Ae)|0,w=w+Math.imul(ue,ge)|0,_=_+Math.imul(ue,Oe)|0,_=_+Math.imul(fe,ge)|0,B=B+Math.imul(fe,Oe)|0,w=w+Math.imul(ie,P)|0,_=_+Math.imul(ie,x)|0,_=_+Math.imul(ve,P)|0,B=B+Math.imul(ve,x)|0,w=w+Math.imul(se,Y)|0,_=_+Math.imul(se,ee)|0,_=_+Math.imul(oe,Y)|0,B=B+Math.imul(oe,ee)|0,w=w+Math.imul(J,ce)|0,_=_+Math.imul(J,de)|0,_=_+Math.imul(Q,ce)|0,B=B+Math.imul(Q,de)|0,w=w+Math.imul(U,pe)|0,_=_+Math.imul(U,he)|0,_=_+Math.imul(X,pe)|0,B=B+Math.imul(X,he)|0,w=w+Math.imul(W,xe)|0,_=_+Math.imul(W,Te)|0,_=_+Math.imul(K,xe)|0,B=B+Math.imul(K,Te)|0;var Qe=(M+w|0)+((_&8191)<<13)|0;M=(B+(_>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,w=Math.imul(qe,Pe),_=Math.imul(qe,Re),_=_+Math.imul(Be,Pe)|0,B=Math.imul(Be,Re),w=w+Math.imul(ye,_e)|0,_=_+Math.imul(ye,Ae)|0,_=_+Math.imul(me,_e)|0,B=B+Math.imul(me,Ae)|0,w=w+Math.imul(le,ge)|0,_=_+Math.imul(le,Oe)|0,_=_+Math.imul(be,ge)|0,B=B+Math.imul(be,Oe)|0,w=w+Math.imul(ue,P)|0,_=_+Math.imul(ue,x)|0,_=_+Math.imul(fe,P)|0,B=B+Math.imul(fe,x)|0,w=w+Math.imul(ie,Y)|0,_=_+Math.imul(ie,ee)|0,_=_+Math.imul(ve,Y)|0,B=B+Math.imul(ve,ee)|0,w=w+Math.imul(se,ce)|0,_=_+Math.imul(se,de)|0,_=_+Math.imul(oe,ce)|0,B=B+Math.imul(oe,de)|0,w=w+Math.imul(J,pe)|0,_=_+Math.imul(J,he)|0,_=_+Math.imul(Q,pe)|0,B=B+Math.imul(Q,he)|0,w=w+Math.imul(U,xe)|0,_=_+Math.imul(U,Te)|0,_=_+Math.imul(X,xe)|0,B=B+Math.imul(X,Te)|0;var er=(M+w|0)+((_&8191)<<13)|0;M=(B+(_>>>13)|0)+(er>>>26)|0,er&=67108863,w=Math.imul(qe,_e),_=Math.imul(qe,Ae),_=_+Math.imul(Be,_e)|0,B=Math.imul(Be,Ae),w=w+Math.imul(ye,ge)|0,_=_+Math.imul(ye,Oe)|0,_=_+Math.imul(me,ge)|0,B=B+Math.imul(me,Oe)|0,w=w+Math.imul(le,P)|0,_=_+Math.imul(le,x)|0,_=_+Math.imul(be,P)|0,B=B+Math.imul(be,x)|0,w=w+Math.imul(ue,Y)|0,_=_+Math.imul(ue,ee)|0,_=_+Math.imul(fe,Y)|0,B=B+Math.imul(fe,ee)|0,w=w+Math.imul(ie,ce)|0,_=_+Math.imul(ie,de)|0,_=_+Math.imul(ve,ce)|0,B=B+Math.imul(ve,de)|0,w=w+Math.imul(se,pe)|0,_=_+Math.imul(se,he)|0,_=_+Math.imul(oe,pe)|0,B=B+Math.imul(oe,he)|0,w=w+Math.imul(J,xe)|0,_=_+Math.imul(J,Te)|0,_=_+Math.imul(Q,xe)|0,B=B+Math.imul(Q,Te)|0;var rr=(M+w|0)+((_&8191)<<13)|0;M=(B+(_>>>13)|0)+(rr>>>26)|0,rr&=67108863,w=Math.imul(qe,ge),_=Math.imul(qe,Oe),_=_+Math.imul(Be,ge)|0,B=Math.imul(Be,Oe),w=w+Math.imul(ye,P)|0,_=_+Math.imul(ye,x)|0,_=_+Math.imul(me,P)|0,B=B+Math.imul(me,x)|0,w=w+Math.imul(le,Y)|0,_=_+Math.imul(le,ee)|0,_=_+Math.imul(be,Y)|0,B=B+Math.imul(be,ee)|0,w=w+Math.imul(ue,ce)|0,_=_+Math.imul(ue,de)|0,_=_+Math.imul(fe,ce)|0,B=B+Math.imul(fe,de)|0,w=w+Math.imul(ie,pe)|0,_=_+Math.imul(ie,he)|0,_=_+Math.imul(ve,pe)|0,B=B+Math.imul(ve,he)|0,w=w+Math.imul(se,xe)|0,_=_+Math.imul(se,Te)|0,_=_+Math.imul(oe,xe)|0,B=B+Math.imul(oe,Te)|0;var tr=(M+w|0)+((_&8191)<<13)|0;M=(B+(_>>>13)|0)+(tr>>>
vendor: 5,747 bytes, line 16
1626)|0,tr&=67108863,w=Math.imul(qe,P),_=Math.imul(qe,x),_=_+Math.imul(Be,P)|0,B=Math.imul(Be,x),w=w+Math.imul(ye,Y)|0,_=_+Math.imul(ye,ee)|0,_=_+Math.imul(me,Y)|0,B=B+Math.imul(me,ee)|0,w=w+Math.imul(le,ce)|0,_=_+Math.imul(le,de)|0,_=_+Math.imul(be,ce)|0,B=B+Math.imul(be,de)|0,w=w+Math.imul(ue,pe)|0,_=_+Math.imul(ue,he)|0,_=_+Math.imul(fe,pe)|0,B=B+Math.imul(fe,he)|0,w=w+Math.imul(ie,xe)|0,_=_+Math.imul(ie,Te)|0,_=_+Math.imul(ve,xe)|0,B=B+Math.imul(ve,Te)|0;var ir=(M+w|0)+((_&8191)<<13)|0;M=(B+(_>>>13)|0)+(ir>>>26)|0,ir&=67108863,w=Math.imul(qe,Y),_=Math.imul(qe,ee),_=_+Math.imul(Be,Y)|0,B=Math.imul(Be,ee),w=w+Math.imul(ye,ce)|0,_=_+Math.imul(ye,de)|0,_=_+Math.imul(me,ce)|0,B=B+Math.imul(me,de)|0,w=w+Math.imul(le,pe)|0,_=_+Math.imul(le,he)|0,_=_+Math.imul(be,pe)|0,B=B+Math.imul(be,he)|0,w=w+Math.imul(ue,xe)|0,_=_+Math.imul(ue,Te)|0,_=_+Math.imul(fe,xe)|0,B=B+Math.imul(fe,Te)|0;var nr=(M+w|0)+((_&8191)<<13)|0;M=(B+(_>>>13)|0)+(nr>>>26)|0,nr&=67108863,w=Math.imul(qe,ce),_=Math.imul(qe,de),_=_+Math.imul(Be,ce)|0,B=Math.imul(Be,de),w=w+Math.imul(ye,pe)|0,_=_+Math.imul(ye,he)|0,_=_+Math.imul(me,pe)|0,B=B+Math.imul(me,he)|0,w=w+Math.imul(le,xe)|0,_=_+Math.imul(le,Te)|0,_=_+Math.imul(be,xe)|0,B=B+Math.imul(be,Te)|0;var ar=(M+w|0)+((_&8191)<<13)|0;M=(B+(_>>>13)|0)+(ar>>>26)|0,ar&=67108863,w=Math.imul(qe,pe),_=Math.imul(qe,he),_=_+Math.imul(Be,pe)|0,B=Math.imul(Be,he),w=w+Math.imul(ye,xe)|0,_=_+Math.imul(ye,Te)|0,_=_+Math.imul(me,xe)|0,B=B+Math.imul(me,Te)|0;var or=(M+w|0)+((_&8191)<<13)|0;M=(B+(_>>>13)|0)+(or>>>26)|0,or&=67108863,w=Math.imul(qe,xe),_=Math.imul(qe,Te),_=_+Math.imul(Be,xe)|0,B=Math.imul(Be,Te);var sr=(M+w|0)+((_&8191)<<13)|0;return M=(B+(_>>>13)|0)+(sr>>>26)|0,sr&=67108863,R[0]=fr,R[1]=Ne,R[2]=Le,R[3]=We,R[4]=Ke,R[5]=Ve,R[6]=Ge,R[7]=Ze,R[8]=Xe,R[9]=Ye,R[10]=Qe,R[11]=er,R[12]=rr,R[13]=tr,R[14]=ir,R[15]=nr,R[16]=ar,R[17]=or,R[18]=sr,M!==0&&(R[19]=M,E.length++),E};Math.imul||(b=v);function S(C,m,O){O.negative=m.negative^C.negative,O.length=C.length+m.length;for(var E=0,t=0,g=0;g<O.length-1;g++){var R=t;t=0;for(var M=E&67108863,w=Math.min(g,m.length-1),_=Math.max(0,g-C.length+1);_<=w;_++){var B=g-_,T=(C.words[B]|0)*(m.words[_]|0),A=T&67108863;R=R+(T/67108864|0)|0,A=A+M|0,M=A&67108863,R=R+(A>>>26)|0,t+=R>>>26,R&=67108863}O.words[g]=M,E=R,R=t}return E!==0?O.words[g]=E:O.length--,O.strip()}function q(C,m,O){return new I().mulp(C,m,O)}e.prototype.mulTo=function(m,O){var E,t=this.length+m.length;return this.length===10&&m.length===10?E=b(this,m,O):t<63?E=v(this,m,O):t<1024?E=S(this,m,O):E=q(this,m,O),E};function I(C,m){this.x=C,this.y=m}I.prototype.makeRBT=function(m){for(var O=new Array(m),E=e.prototype._countBits(m)-1,t=0;t<m;t++)O[t]=this.revBin(t,E,m);return O},I.prototype.revBin=function(m,O,E){if(m===0||m===E-1)return m;for(var t=0,g=0;g<O;g++)t|=(m&1)<<O-g-1,m>>=1;return t},I.prototype.permute=function(m,O,E,t,g,R){for(var M=0;M<R;M++)t[M]=O[m[M]],g[M]=E[m[M]]},I.prototype.transform=function(m,O,E,t,g,R){this.permute(R,m,O,E,t,g);for(var M=1;M<g;M<<=1)for(var w=M<<1,_=Math.cos(2*Math.PI/w),B=Math.sin(2*Math.PI/w),T=0;T<g;T+=w)for(var A=_,$=B,te=0;te<M;te++){var W=E[T+te],K=t[T+te],L=E[T+te+M],U=t[T+te+M],X=A*L-$*U;U=A*U+$*L,L=X,E[T+te]=W+L,t[T+te]=K+U,E[T+te+M]=W-L,t[T+te+M]=K-U,te!==w&&(X=_*A-B*$,$=_*$+B*A,A=X)}},I.prototype.guessLen13b=function(m,O){var E=Math.max(O,m)|1,t=E&1,g=0;for(E=E/2|0;E;E=E>>>1)g++;return 1<<g+1+t},I.prototype.conjugate=function(m,O,E){if(!(E<=1))for(var t=0;t<E/2;t++){var g=m[t];m[t]=m[E-t-1],m[E-t-1]=g,g=O[t],O[t]=-O[E-t-1],O[E-t-1]=-g}},I.prototype.normalize13b=function(m,O){for(var E=0,t=0;t<O/2;t++){var g=Math.round(m[2*t+1]/O)*8192+Math.round(m[2*t]/O)+E;m[t]=g&67108863,g<67108864?E=0:E=g/67108864|0}return m},I.prototype.convert13b=function(m,O,E,t){for(var g=0,R=0;R<O;R++)g=g+(m[R]|0),E[2*R]=g&8191,g=g>>>13,E[2*R+1]=g&8191,g=g>>>13;for(R=2*O;R<t;++R)E[R]=0;u(g===0),u((g&-8192)===0)},I.prototype.stub=function(m){for(var O=new Array(m),E=0;E<m;E++)O[E]=0;return O},I.prototype.mulp=function(m,O,E){var t=2*this.guessLen13b(m.length,O.length),g=this.makeRBT(t),R=this.stub(t),M=new Array(t),w=new Array(t),_=new Array(t),B=new Array(t),T=new Array(t),A=new Array(t),$=E.words;$.length=t,this.convert13b(m.words,m.length,M,t),this.convert13b(O.words,O.length,B,t),this.transform(M,R,w,_,t,g),this.transform(B,R,T,A,t,g);for(var te=0;te<t;te++){var W=w[te]*T[te]-_[te]*A[te];_[te]=w[te]*A[te]+_[te]*T[te],w[te]=W}return this.conjugate(w,_,t),this.transform(w,_,$,R,t,g),this.conjugate($,R,t),this.normalize13b($,t),E.negative=m.negative^O.negative,E.length=m.length+O.length,E.strip()},e.prototype.mul=function(m){var O=new e(null);return O.words=new Array(this.length+m.length),this.mulTo(m,O)},e.prototype.mulf=function(m){var O=new e(null);return O.words=new Array(this.length+m.length),q(this,m,O)},e.prototype.imul=function(m){return this.clone().mulTo(m,this)},e.prototype.imuln=function(m){u(typeof m=="number"),u(m<67108864);for(var O=0,E=0;E<this.length;E++){var t=(this.words[E]|0)*m,g=(t&67108863)+(O&67108863);O>>=26,O+=t/67108864|0,O+=g>>>26,this.words[E]=g&67108863}return O!==0&&(this.words[E]=O,this.length++),this},e.prototype.muln=function(m){return this.clone().imuln(m)},e.prototype.sqr=function(){return this.mul(this)},e.prototype.isqr=function(){return this.imul(this.clone())},e.prototype.pow=function(m){var O=i(m);if(O.length===0)return new e(1);for(var E=this,t=0;t<O.length&&O[t]===0;t++,E=E.sqr());if(++t<O.length)for(var g=E.sqr();t<O.length;t++,g=g.sqr())O[t]!==0&&(E=E.mul(g));return E},e.prototype.iushln=function(m){u(typeof m=="number"&&m>=0);var O=m%26,E=(m-O)/26,t=67108863>>>26-O<<26-O,g;if(O!==0){var R=0;for(g=0;g<this.length;g++){var M=this.words[g]&t,w=(this.words[g]|0)-M<<O;this.words[g]=w|R,R=M>>>
vendor: 8,343 bytes, line 16
1626-O}R&&(this.words[g]=R,this.length++)}if(E!==0){for(g=this.length-1;g>=0;g--)this.words[g+E]=this.words[g];for(g=0;g<E;g++)this.words[g]=0;this.length+=E}return this.strip()},e.prototype.ishln=function(m){return u(this.negative===0),this.iushln(m)},e.prototype.iushrn=function(m,O,E){u(typeof m=="number"&&m>=0);var t;O?t=(O-O%26)/26:t=0;var g=m%26,R=Math.min((m-g)/26,this.length),M=67108863^67108863>>>g<<g,w=E;if(t-=R,t=Math.max(0,t),w){for(var _=0;_<R;_++)w.words[_]=this.words[_];w.length=R}if(R!==0)if(this.length>R)for(this.length-=R,_=0;_<this.length;_++)this.words[_]=this.words[_+R];else this.words[0]=0,this.length=1;var B=0;for(_=this.length-1;_>=0&&(B!==0||_>=t);_--){var T=this.words[_]|0;this.words[_]=B<<26-g|T>>>g,B=T&M}return w&&B!==0&&(w.words[w.length++]=B),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},e.prototype.ishrn=function(m,O,E){return u(this.negative===0),this.iushrn(m,O,E)},e.prototype.shln=function(m){return this.clone().ishln(m)},e.prototype.ushln=function(m){return this.clone().iushln(m)},e.prototype.shrn=function(m){return this.clone().ishrn(m)},e.prototype.ushrn=function(m){return this.clone().iushrn(m)},e.prototype.testn=function(m){u(typeof m=="number"&&m>=0);var O=m%26,E=(m-O)/26,t=1<<O;return this.length<=E?!1:!!(this.words[E]&t)},e.prototype.imaskn=function(m){u(typeof m=="number"&&m>=0);var O=m%26,E=(m-O)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=E)return this;if(O!==0&&E++,this.length=Math.min(E,this.length),O!==0){var t=67108863^67108863>>>O<<O;this.words[this.length-1]&=t}return this.strip()},e.prototype.maskn=function(m){return this.clone().imaskn(m)},e.prototype.iaddn=function(m){return u(typeof m=="number"),u(m<67108864),m<0?this.isubn(-m):this.negative!==0?this.length===1&&(this.words[0]|0)<m?(this.words[0]=m-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(m),this.negative=1,this):this._iaddn(m)},e.prototype._iaddn=function(m){this.words[0]+=m;for(var O=0;O<this.length&&this.words[O]>=67108864;O++)this.words[O]-=67108864,O===this.length-1?this.words[O+1]=1:this.words[O+1]++;return this.length=Math.max(this.length,O+1),this},e.prototype.isubn=function(m){if(u(typeof m=="number"),u(m<67108864),m<0)return this.iaddn(-m);if(this.negative!==0)return this.negative=0,this.iaddn(m),this.negative=1,this;if(this.words[0]-=m,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var O=0;O<this.length&&this.words[O]<0;O++)this.words[O]+=67108864,this.words[O+1]-=1;return this.strip()},e.prototype.addn=function(m){return this.clone().iaddn(m)},e.prototype.subn=function(m){return this.clone().isubn(m)},e.prototype.iabs=function(){return this.negative=0,this},e.prototype.abs=function(){return this.clone().iabs()},e.prototype._ishlnsubmul=function(m,O,E){var t=m.length+E,g;this._expand(t);var R,M=0;for(g=0;g<m.length;g++){R=(this.words[g+E]|0)+M;var w=(m.words[g]|0)*O;R-=w&67108863,M=(R>>26)-(w/67108864|0),this.words[g+E]=R&67108863}for(;g<this.length-E;g++)R=(this.words[g+E]|0)+M,M=R>>26,this.words[g+E]=R&67108863;if(M===0)return this.strip();for(u(M===-1),M=0,g=0;g<this.length;g++)R=-(this.words[g]|0)+M,M=R>>26,this.words[g]=R&67108863;return this.negative=1,this.strip()},e.prototype._wordDiv=function(m,O){var E=this.length-m.length,t=this.clone(),g=m,R=g.words[g.length-1]|0;E=26-this._countBits(R),E!==0&&(g=g.ushln(E),t.iushln(E),R=g.words[g.length-1]|0);var M=t.length-g.length,w;if(O!=="mod"){w=new e(null),w.length=M+1,w.words=new Array(w.length);for(var _=0;_<w.length;_++)w.words[_]=0}var B=t.clone()._ishlnsubmul(g,1,M);B.negative===0&&(t=B,w&&(w.words[M]=1));for(var T=M-1;T>=0;T--){var A=(t.words[g.length+T]|0)*67108864+(t.words[g.length+T-1]|0);for(A=Math.min(A/R|0,67108863),t._ishlnsubmul(g,A,T);t.negative!==0;)A--,t.negative=0,t._ishlnsubmul(g,1,T),t.isZero()||(t.negative^=1);w&&(w.words[T]=A)}return w&&w.strip(),t.strip(),O!=="div"&&E!==0&&t.iushrn(E),{div:w||null,mod:t}},e.prototype.divmod=function(m,O,E){if(u(!m.isZero()),this.isZero())return{div:new e(0),mod:new e(0)};var t,g,R;return this.negative!==0&&m.negative===0?(R=this.neg().divmod(m,O),O!=="mod"&&(t=R.div.neg()),O!=="div"&&(g=R.mod.neg(),E&&g.negative!==0&&g.iadd(m)),{div:t,mod:g}):this.negative===0&&m.negative!==0?(R=this.divmod(m.neg(),O),O!=="mod"&&(t=R.div.neg()),{div:t,mod:R.mod}):this.negative&m.negative?(R=this.neg().divmod(m.neg(),O),O!=="div"&&(g=R.mod.neg(),E&&g.negative!==0&&g.isub(m)),{div:R.div,mod:g}):m.length>this.length||this.cmp(m)<0?{div:new e(0),mod:this}:m.length===1?O==="div"?{div:this.divn(m.words[0]),mod:null}:O==="mod"?{div:null,mod:new e(this.modn(m.words[0]))}:{div:this.divn(m.words[0]),mod:new e(this.modn(m.words[0]))}:this._wordDiv(m,O)},e.prototype.div=function(m){return this.divmod(m,"div",!1).div},e.prototype.mod=function(m){return this.divmod(m,"mod",!1).mod},e.prototype.umod=function(m){return this.divmod(m,"mod",!0).mod},e.prototype.divRound=function(m){var O=this.divmod(m);if(O.mod.isZero())return O.div;var E=O.div.negative!==0?O.mod.isub(m):O.mod,t=m.ushrn(1),g=m.andln(1),R=E.cmp(t);return R<0||g===1&&R===0?O.div:O.div.negative!==0?O.div.isubn(1):O.div.iaddn(1)},e.prototype.modn=function(m){u(m<=67108863);for(var O=(1<<26)%m,E=0,t=this.length-1;t>=0;t--)E=(O*E+(this.words[t]|0))%m;return E},e.prototype.idivn=function(m){u(m<=67108863);for(var O=0,E=this.length-1;E>=0;E--){var t=(this.words[E]|0)+O*67108864;this.words[E]=t/m|0,O=t%m}return this.strip()},e.prototype.divn=function(m){return this.clone().idivn(m)},e.prototype.egcd=function(m){u(m.negative===0),u(!m.isZero());var O=this,E=m.clone();O.negative!==0?O=O.umod(m):O=O.clone();for(var t=new e(1),g=new e(0),R=new e(0),M=new e(1),w=0;O.isEven()&&E.isEven();)O.iushrn(1),E.iushrn(1),++w;for(var _=E.clone(),B=O.clone();!O.isZero();){for(var T=0,A=1;!(O.words[0]&A)&&T<26;++T,A<<=1);if(T>0)for(O.iushrn(T);T-- >0;)(t.isOdd()||g.isOdd())&&(t.iadd(_),g.isub(B)),t.iushrn(1),g.iushrn(1);for(var $=0,te=1;!(E.words[0]&te)&&$<26;++$,te<<=1);if($>0)for(E.iushrn($);$-- >0;)(R.isOdd()||M.isOdd())&&(R.iadd(_),M.isub(B)),R.iushrn(1),M.iushrn(1);O.cmp(E)>=0?(O.isub(E),t.isub(R),g.isub(M)):(E.isub(O),R.isub(t),M.isub(g))}return{a:R,b:M,gcd:E.iushln(w)}},e.prototype._invmp=function(m){u(m.negative===0),u(!m.isZero());var O=this,E=m.clone();O.negative!==0?O=O.umod(m):O=O.clone();for(var t=new e(1),g=new e(0),R=E.clone();O.cmpn(1)>0&&E.cmpn(1)>0;){for(var M=0,w=1;!(O.words[0]&w)&&M<26;++M,w<<=1);if(M>0)for(O.iushrn(M);M-- >0;)t.isOdd()&&t.iadd(R),t.iushrn(1);for(var _=0,B=1;!(E.words[0]&B)&&_<26;++_,B<<=1);if(_>0)for(E.iushrn(_);_-- >0;)g.isOdd()&&g.iadd(R),g.iushrn(1);O.cmp(E)>=0?(O.isub(E),t.isub(g)):(E.isub(O),g.isub(t))}var T;return O.cmpn(1)===0?T=t:T=g,T.cmpn(0)<0&&T.iadd(m),T},e.prototype.gcd=function(m){if(this.isZero())return m.abs();if(m.isZero())return this.abs();var O=this.clone(),E=m.clone();O.negative=0,E.negative=0;for(var t=0;O.isEven()&&E.isEven();t++)O.iushrn(1),E.iushrn(1);do{for(;O.isEven();)O.iushrn(1);for(;E.isEven();)E.iushrn(1);var g=O.cmp(E);if(g<0){var R=O;O=E,E=R}else if(g===0||E.cmpn(1)===0)break;O.isub(E)}while(!0);return E.iushln(t)},e.prototype.invm=function(m){return this.egcd(m).a.umod(m)},e.prototype.isEven=function(){return(this.words[0]&1)===0},e.prototype.isOdd=function(){return(this.words[0]&1)===1},e.prototype.andln=function(m){return this.words[0]&m},e.prototype.bincn=function(m){u(typeof m=="number");var O=m%26,E=(m-O)/26,t=1<<O;if(this.length<=E)return this._expand(E+1),this.words[E]|=t,this;for(var g=t,R=E;g!==0&&R<this.length;R++){var M=this.words[R]|0;M+=g,g=M>>>26,M&=67108863,this.words[R]=M}return g!==0&&(this.words[R]=g,this.length++),this},e.prototype.isZero=function(){return this.length===1&&this.words[0]===0},e.prototype.cmpn=function(m){var O=m<0;if(this.negative!==0&&!O)return-1;if(this.negative===0&&O)return 1;this.strip();var E;if(this.length>1)E=1;else{O&&(m=-m),u(m<=67108863,"Number is too big");var t=this.words[0]|0;E=t===m?0:t<m?-1:1}return this.negative!==0?-E|0:E},e.prototype.cmp=function(m){if(this.negative!==0&&m.negative===0)return-1;if(this.negative===0&&m.negative!==0)return 1;var O=this.ucmp(m);return this.negative!==0?-O|0:O},e.prototype.ucmp=function(m){if(this.length>m.length)return 1;if(this.length<m.length)return-1;for(var O=0,E=this.length-1;E>=0;
16E--){var t=this.words[E]|0,g=m.words[E]|0;if(t!==g){t<g?O=-1:t>g&&(O=1);break}}return O},e.prototype.gtn=function(m){return this.cmpn(m)===1},e.prototype.gt=function(m){return this.cmp(m)===1},e.prototype.gten=function(m){return this.cmpn(m)>=0},e.prototype.gte=function(m){return this.cmp(m)>=0},e.prototype.ltn=function(m){return this.cmpn(m)===-1},e.prototype.lt=function(m){return this.cmp(m)===-1},e.prototype.lten=function(m){return this.cmpn(m)<=0},e.prototype.lte=function(m){return this.cmp(m)<=0},e.prototype.eqn=function(m){return this.cmpn(m)===0},e.prototype.eq=function(m){return this.cmp(m)===0},e.red=function(m){return new Z(m)},e.prototype.toRed=function(m){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),m.convertTo(this)._forceRed(m)},e.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},e.prototype._forceRed=function(m){return this.red=m,this},e.prototype.forceRed=function(m){return u(!this.red,"Already a number in reduction context"),this._forceRed(m)},e.prototype.redAdd=function(m){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,m)},e.prototype.redIAdd=function(m){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,m)},e.prototype.redSub=function(m){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,m)},e.prototype.redISub=function(m){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,m)},e.prototype.redShl=function(m){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,m)},e.prototype.redMul=function(m){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.mul(this,m)},e.prototype.redIMul=function(m){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,m),this.red.imul(this,m)},e.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},e.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},e.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},e.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},e.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},e.prototype.redPow=function(m){return u(this.red&&!m.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,m)};var k={k256:null,p224:null,p192:null,p25519:null};function D(C,m){this.name=C,this.p=new e(m,16),this.n=this.p.bitLength(),this.k=new e(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var m=new e(null);return m.words=new Array(Math.ceil(this.n/13)),m},D.prototype.ireduce=function(m){var O=m,E;do this.split(O,this.tmp),O=this.imulK(O),O=O.iadd(this.tmp),E=O.bitLength();while(E>this.n);var t=E<this.n?-1:O.ucmp(this.p);return t===0?(O.words[0]=0,O.length=1):t>0?O.isub(this.p):O.strip!==void 0?O.strip():O._strip(),O},D.prototype.split=function(m,O){m.iushrn(this.n,0,O)},D.prototype.imulK=function(m){return m.imul(this.k)};function N(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}y(N,D),N.prototype.split=function(m,O){for(var E=4194303,t=Math.min(m.length,9),g=0;g<t;g++)O.words[g]=m.words[g];if(O.length=t,m.length<=9){m.words[0]=0,m.length=1;return}var R=m.words[9];for(O.words[O.length++]=R&E,g=10;g<m.length;g++){var M=m.words[g]|0;m.words[g-10]=(M&E)<<4|R>>>22,R=M}R>>>=22,m.words[g-10]=R,R===0&&m.length>10?m.length-=10:m.length-=9},N.prototype.imulK=function(m){m.words[m.length]=0,m.words[m.length+1]=0,m.length+=2;for(var O=0,E=0;E<m.length;E++){var t=m.words[E]|0;O+=t*977,m.words[E]=O&67108863,O=t*64+(O/67108864|0)}return m.words[m.length-1]===0&&(m.length--,m.words[m.length-1]===0&&m.length--),m};function F(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}y(F,D);function z(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}y(z,D);function G(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}y(G,D),G.prototype.imulK=function(m){for(var O=0,E=0;E<m.length;E++){var t=(m.words[E]|0)*19+O,g=t&67108863;t>>>=26,m.words[E]=g,O=t}return O!==0&&(m.words[m.length++]=O),m},e._prime=function(m){if(k[m])return k[m];var O;if(m==="k256")O=new N;else if(m==="p224")O=new F;else if(m==="p192")O=new z;else if(m==="p25519")O=new G;else throw new Error("Unknown prime "+m);return k[m]=O,O};function Z(C){if(typeof C=="string"){var m=e._prime(C);this.m=m.p,this.prime=m}else u(C.gtn(1),"modulus must be greater than 1"),this.m=C,this.prime=null}Z.prototype._verify1=function(m){u(m.negative===0,"red works only with positives"),u(m.red,"red works only with red numbers")},Z.prototype._verify2=function(m,O){u((m.negative|O.negative)===0,"red works only with positives"),u(m.red&&m.red===O.red,"red works only with red numbers")},Z.prototype.imod=function(m){return this.prime?this.prime.ireduce(m)._forceRed(this):m.umod(this.m)._forceRed(this)},Z.prototype.neg=function(m){return m.isZero()?m.clone():this.m.sub(m)._forceRed(this)},Z.prototype.add=function(m,O){this._verify2(m,O);var E=m.add(O);return E.cmp(this.m)>=0&&E.isub(this.m),E._forceRed(this)},Z.prototype.iadd=function(m,O){this._verify2(m,O);var E=m.iadd(O);return E.cmp(this.m)>=0&&E.isub(this.m),E},Z.prototype.sub=function(m,O){this._verify2(m,O);var E=m.sub(O);return E.cmpn(0)<0&&E.iadd(this.m),E._forceRed(this)},Z.prototype.isub=function(m,O){this._verify2(m,O);var E=m.isub(O);return E.cmpn(0)<0&&E.iadd(this.m),E},Z.prototype.shl=function(m,O){return this._verify1(m),this.imod(m.ushln(O))},Z.prototype.imul=function(m,O){return this._verify2(m,O),this.imod(m.imul(O))},Z.prototype.mul=function(m,O){return this._verify2(m,O),this.imod(m.mul(O))},Z.prototype.isqr=function(m){return this.imul(m,m.clone())},Z.prototype.sqr=function(m){return this.mul(m,m)},Z.prototype.sqrt=function(m){if(m.isZero())return m.clone();var O=this.m.andln(3);if(u(O%2===1),O===3){var E=this.m.add(new e(1)).iushrn(2);return this.pow(m,E)}for(var t=this.m.subn(1),g=0;!t.isZero()&&t.andln(1)===0;)g++,t.iushrn(1);u(!t.isZero());var R=new e(1).toRed(this),M=R.redNeg(),w=this.m.subn(1).iushrn(1),_=this.m.bitLength();for(_=new e(2*_*_).toRed(this);this.pow(_,w).cmp(M)!==0;)_.redIAdd(M);for(var B=this.pow(_,t),T=this.pow(m,t.addn(1).iushrn(1)),A=this.pow(m,t),$=g;A.cmp(R)!==0;){for(var te=A,W=0;te.cmp(R)!==0;W++)te=te.redSqr();u(W<$);var K=this.pow(B,new e(1).iushln($-W-1));T=T.redMul(K),B=K.redSqr(),A=A.redMul(B),$=W}return T},Z.prototype.invm=function(m){var O=m._invmp(this.m);return O.negative!==0?(O.negative=0,this.imod(O).redNeg()):this.imod(O)},Z.prototype.pow=function(m,O){if(O.isZero())return new e(1).toRed(this);if(O.cmpn(1)===0)return m.clone();var E=4,t=new Array(1<<E);t[0]=new e(1).toRed(this),t[1]=m;for(var g=2;g<t.length;g++)t[g]=this.mul(t[g-1],m);var R=t[0],M=0,w=0,_=O.bitLength()%26;for(_===0&&(_=26),g=O.length-1;g>=0;g--){for(var B=O.words[g],T=_-1;T>=0;T--){var A=B>>T&1;if(R!==t[0]&&(R=this.sqr(R)),A===0&&M===0){w=0;continue}M<<=1,M|=A,w++,!(w!==E&&(g!==0||T!==0))&&(R=this.mul(R,t[M]),w=0,M=0)}_=26}return R},Z.prototype.convertTo=function(m){var O=m.umod(this.m);return O===m?O.clone():O},Z.prototype.convertFrom=function(m){var O=m.clone();return O.red=null,O},e.mont=function(m){return new re(m)};function re(C){Z.call(this,C),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new e(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)}y(re,Z),re.prototype.convertTo=function(m){return this.imod(m.ushln(this.shift))},re.prototype.convertFrom=function(m){var O=this.imod(m.mul(this.rinv));return O.red=null,O},re.prototype.imul=function(m,O){if(m.isZero()||O.isZero())return m.words[0]=0,m.length=1,m;var E=m.imul(O),t=E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=E.isub(t).iushrn(this.shift),R=g;return g.cmp(this.m)>=0?R=g.isub(this.m):g.cmpn(0)<0&&(R=g.iadd(this.m)),R._forceRed(this)},re.prototype.mul=function(m,O){if(m.isZero()||O.isZero())return new e(0)._forceRed(this);var E=m.mul(O),t=E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=E.isub(t).iushrn(this.shift),R=g;return g.cmp(this.m)>=0?R=g.isub(this.m):g.cmpn(0)<0&&(R=g.iadd(this.m)),R._forceRed(this)},re.prototype.invm=function(m){return this.imod(m._invmp(this.m).mul(this.r2))._forceRed(this)}})(typeof l>"u"||l,n)}),require_brorand=__commonJSMin((n,l)=>{var a;l.exports=function(e){return a||(a=new d(null)),a.generate(e)};function d(y){this.rand=y}if(l.exports.Rand=d,d.prototype.generate=function(e){return this._rand(e)},d.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var s=new Uint8Array(e),p=0;p<s.length;p++)s[p]=this.rand.getByte();return s},typeof self=="object")self.crypto&&self.crypto.getRandomValues?d.prototype._rand=function(e){var s=new Uint8Array(e);return self.crypto.getRandomValues(s),s}:self.msCrypto&&self.msCrypto.getRandomValues?d.prototype._rand=function(e){var s=new Uint8Array(e);return self.msCrypto.getRandomValues(s),s}:typeof window=="object"&&(d.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var u=require_crypto_browserify();if(typeof u.randomBytes!="function")throw new Error("Not supported");d.prototype._rand=function(e){return u.randomBytes(e)}}catch{}}),require_mr=__commonJSMin((n,l)=>{var a=require_bn$1(),d=require_brorand();function u(y){this.rand=y||new d.Rand}l.exports=u,u.create=function(e){return new u(e)},u.prototype._randbelow=function(e){var s=e.bitLength(),p=Math.ceil(s/8);do var h=new a(this.rand.generate(p));while(h.cmp(e)>=0);return h},u.prototype._randrange=function(e,s){var p=s.sub(e);return e.add(this._randbelow(p))},u.prototype.test=function(e,s,p){var h=e.bitLength(),f=a.mont(e),o=new a(1).toRed(f);s||(s=Math.max(1,h/48|0));for(var r=e.subn(1),c=0;!r.testn(c);c++);for(var i=e.shrn(c),v=r.toRed(f),b=!0;s>0;s--){var S=this._randrange(new a(2),r);p&&p(S);var q=S.toRed(f).redPow(i);if(!(q.cmp(o)===0||q.cmp(v)===0)){for(var I=1;I<c;I++){if(q=q.redSqr(),q.cmp(o)===0)return!1;if(q.cmp(v)===0)break}if(I===c)return!1}}return b},u.prototype.getDivisor=function(e,s){var p=e.bitLength(),h=a.mont(e),f=new a(1).toRed(h);s||(s=Math.max(1,p/48|0));for(var o=e.subn(1),r=0;!o.testn(r);r++);for(var c=e.shrn(r),i=o.toRed(h);s>0;s--){var v=this._randrange(new a(2),o),b=e.gcd(v);if(b.cmpn(1)!==0)return b;var S=v.toRed(h).redPow(c);if(!(S.cmp(f)===0||S.cmp(i)===0)){for(var q=1;q<r;q++){if(S=S.redSqr(),S.cmp(f)===0)return S.fromRed().subn(1).gcd(e);if(S.cmp(i)===0)break}if(q===r)return S=S.redSqr(),S.fromRed().subn(1).gcd(e)}}return!1}}),require_generatePrime=__commonJSMin((n,l)=>{var a=require_browser$11();l.exports=S,S.simpleSieve=v,S.fermatTest=b;var d=require_bn$1(),u=new d(24),y=new(require_mr()),e=new d(1),s=new d(2),p=new d(5);new d(16),new d(8);var h=new d(10),f=new d(3);
16new d(7);var o=new d(11),r=new d(4);new d(12);var c=null;function i(){if(c!==null)return c;var q=1048576,I=[];I[0]=2;for(var k=1,D=3;D<q;D+=2){for(var N=Math.ceil(Math.sqrt(D)),F=0;F<k&&I[F]<=N&&D%I[F]!==0;F++);k!==F&&I[F]<=N||(I[k++]=D)}return c=I,I}function v(q){for(var I=i(),k=0;k<I.length;k++)if(q.modn(I[k])===0)return q.cmpn(I[k])===0;return!0}function b(q){var I=d.mont(q);return s.toRed(I).redPow(q.subn(1)).fromRed().cmpn(1)===0}function S(q,I){if(q<16)return I===2||I===5?new d([140,123]):new d([140,39]);I=new d(I);for(var k,D;;){for(k=new d(a(Math.ceil(q/8)));k.bitLength()>q;)k.ishrn(1);if(k.isEven()&&k.iadd(e),k.testn(1)||k.iadd(s),I.cmp(s)){if(!I.cmp(p))for(;k.mod(h).cmp(f);)k.iadd(r)}else for(;k.mod(u).cmp(o);)k.iadd(r);if(D=k.shrn(1),v(D)&&v(k)&&b(D)&&b(k)&&y.test(D)&&y.test(k))return k}}}),primes_exports=__exportAll({default:()=>primes_default,modp1:()=>modp1,modp14:()=>modp14,modp15:()=>modp15,modp16:()=>modp16,modp17:()=>modp17,modp18:()=>modp18,modp2:()=>modp2,modp5:()=>modp5}),modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18,primes_default,init_primes=__esmMin(()=>{modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd4
1607b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},primes_default={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18}}),require_dh=__commonJSMin((n,l)=>{init_dist$3();var a=require_bn$1(),d=new(require_mr()),u=new a(24),y=new a(11),e=new a(10),s=new a(3),p=new a(7),h=require_generatePrime(),f=require_browser$11();l.exports=v;function o(S,q){return q=q||"utf8",Buffer.isBuffer(S)||(S=new Buffer(S,q)),this._pub=new a(S),this}function r(S,q){return q=q||"utf8",Buffer.isBuffer(S)||(S=new Buffer(S,q)),this._priv=new a(S),this}var c={};function i(S,q){var I=q.toString("hex"),k=[I,S.toString(16)].join("_");if(k in c)return c[k];var D=0;if(S.isEven()||!h.simpleSieve||!h.fermatTest(S)||!d.test(S))return D+=1,I==="02"||I==="05"?D+=8:D+=4,c[k]=D,D;d.test(S.shrn(1))||(D+=2);var N;switch(I){case"02":S.mod(u).cmp(y)&&(D+=8);break;case"05":N=S.mod(e),N.cmp(s)&&N.cmp(p)&&(D+=8);break;default:D+=4}return c[k]=D,D}function v(S,q,I){this.setGenerator(q),this.__prime=new a(S),this._prime=a.mont(this.__prime),this._primeLen=S.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,I?(this.setPublicKey=o,this.setPrivateKey=r):this._primeCode=8}Object.defineProperty(v.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=i(this.__prime,this.__gen)),this._primeCode}}),v.prototype.generateKeys=function(){return this._priv||(this._priv=new a(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},v.prototype.computeSecret=function(S){S=new a(S),S=S.toRed(this._prime);var q=new Buffer(S.redPow(this._priv).fromRed().toArray()),I=this.getPrime();if(q.length<I.length){var k=new Buffer(I.length-q.length);k.fill(0),q=Buffer.concat([k,q])}return q},v.prototype.getPublicKey=function(q){return b(this._pub,q)},v.prototype.getPrivateKey=function(q){return b(this._priv,q)},v.prototype.getPrime=function(S){return b(this.__prime,S)},v.prototype.getGenerator=function(S){return b(this._gen,S)},v.prototype.setGenerator=function(S,q){return q=q||"utf8",Buffer.isBuffer(S)||(S=new Buffer(S,q)),this.__gen=S,this._gen=new a(S),this};function b(S,q){var I=new Buffer(S.toArray());return q?I.toString(q):I}}
16),require_browser$4=__commonJSMin(n=>{init_dist$3();var l=require_generatePrime(),a=(init_primes(),__toCommonJS(primes_exports).default),d=require_dh();function u(s){return new d(new Buffer(a[s].prime,"hex"),new Buffer(a[s].gen,"hex"))}var y={binary:!0,hex:!0,base64:!0};function e(s,p,h,f){return Buffer.isBuffer(p)||y[p]===void 0?e(s,"binary",p,h):(p=p||"binary",f=f||"binary",h=h||new Buffer([2]),Buffer.isBuffer(h)||(h=new Buffer(h,f)),typeof s=="number"?new d(l(s,h),h,!0):(Buffer.isBuffer(s)||(s=new Buffer(s,p)),new d(s,h,!0)))}n.DiffieHellmanGroup=n.createDiffieHellmanGroup=n.getDiffieHellman=u,n.createDiffieHellman=n.DiffieHellman=e}),require_process_nextick_args=__commonJSMin((n,l)=>{init_dist$2(),typeof process$1>"u"||!process$1.version||process$1.version.indexOf("v0.")===0||process$1.version.indexOf("v1.")===0&&process$1.version.indexOf("v1.8.")!==0?l.exports={nextTick:a}:l.exports=process$1;function a(d,u,y,e){if(typeof d!="function")throw new TypeError('"callback" argument must be a function');var s=arguments.length,p,h;switch(s){case 0:case 1:return process$1.nextTick(d);case 2:return process$1.nextTick(function(){d.call(null,u)});case 3:return process$1.nextTick(function(){d.call(null,u,y)});case 4:return process$1.nextTick(function(){d.call(null,u,y,e)});default:for(p=new Array(s-1),h=0;h<p.length;)p[h++]=arguments[h];return process$1.nextTick(function(){d.apply(null,p)})}}}),require_isarray=__commonJSMin((n,l)=>{var a={}.toString;l.exports=Array.isArray||function(d){return a.call(d)=="[object Array]"}}),require_stream_browser=__commonJSMin((n,l)=>{l.exports=require_events().EventEmitter}),require_safe_buffer=__commonJSMin((n,l)=>{var a=require_dist(),d=a.Buffer;function u(e,s){for(var p in e)s[p]=e[p]}d.from&&d.alloc&&d.allocUnsafe&&d.allocUnsafeSlow?l.exports=a:(u(a,n),n.Buffer=y);function y(e,s,p){return d(e,s,p)}u(d,y),y.from=function(e,s,p){if(typeof e=="number")throw new TypeError("Argument must not be a number");return d(e,s,p)},y.alloc=function(e,s,p){if(typeof e!="number")throw new TypeError("Argument must be a number");var h=d(e);return s!==void 0?typeof p=="string"?h.fill(s,p):h.fill(s):h.fill(0),h},y.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return d(e)},y.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(e)}}),require_util=__commonJSMin(n=>{function l(b){return Array.isArray?Array.isArray(b):v(b)==="[object Array]"}n.isArray=l;function a(b){return typeof b=="boolean"}n.isBoolean=a;function d(b){return b===null}n.isNull=d;function u(b){return b==null}n.isNullOrUndefined=u;function y(b){return typeof b=="number"}n.isNumber=y;function e(b){return typeof b=="string"}n.isString=e;function s(b){return typeof b=="symbol"}n.isSymbol=s;function p(b){return b===void 0}n.isUndefined=p;function h(b){return v(b)==="[object RegExp]"}n.isRegExp=h;function f(b){return typeof b=="object"&&b!==null}n.isObject=f;function o(b){return v(b)==="[object Date]"}n.isDate=o;function r(b){return v(b)==="[object Error]"||b instanceof Error}n.isError=r;function c(b){return typeof b=="function"}n.isFunction=c;function i(b){return b===null||typeof b=="boolean"||typeof b=="number"||typeof b=="string"||typeof b=="symbol"||typeof b>"u"}n.isPrimitive=i,n.isBuffer=require_dist().Buffer.isBuffer;function v(b){return Object.prototype.toString.call(b)}}),require_BufferList=__commonJSMin((n,l)=>{function a(e,s){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")}var d=require_safe_buffer().Buffer,u=require_util$1();function y(e,s,p){e.copy(s,p)}l.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(p){var h={data:p,next:null};this.length>0?this.tail.next=h:this.head=h,this.tail=h,++this.length},e.prototype.unshift=function(p){var h={data:p,next:this.head};this.length===0&&(this.tail=h),this.head=h,++this.length},e.prototype.shift=function(){if(this.length!==0){var p=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,p}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(p){if(this.length===0)return"";for(var h=this.head,f=""+h.data;h=h.next;)f+=p+h.data;return f},e.prototype.concat=function(p){if(this.length===0)return d.alloc(0);for(var h=d.allocUnsafe(p>>>0),f=this.head,o=0;f;)y(f.data,h,o),o+=f.data.length,f=f.next;return h},e}(),u&&u.inspect&&u.inspect.custom&&(l.exports.prototype[u.inspect.custom]=function(){var e=u.inspect({length:this.length});return this.constructor.name+" "+e})}),require_destroy=__commonJSMin((n,l)=>{var a=require_process_nextick_args();function d(e,s){var p=this,h=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return h||f?(s?s(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,a.nextTick(y,this,e)):a.nextTick(y,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!s&&o?p._writableState?p._writableState.errorEmitted||(p._writableState.errorEmitted=!0,a.nextTick(y,p,o)):a.nextTick(y,p,o):s&&s(o)}),this)}function u(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function y(e,s){e.emit("error",s)}
16l.exports={destroy:d,undestroy:u}}),require__stream_writable=__commonJSMin((n,l)=>{init_dist$1(),init_dist$2();var a=require_process_nextick_args();l.exports=S;function d(M){var w=this;this.next=null,this.entry=null,this.finish=function(){R(w,M)}}var u=!process$1.browser&&["v0.10","v0.9."].indexOf(process$1.version.slice(0,5))>-1?setImmediate:a.nextTick,y;S.WritableState=v;var e=Object.create(require_util());e.inherits=require_inherits_browser();var s={deprecate:require_browser$10()},p=require_stream_browser(),h=require_safe_buffer().Buffer,f=(typeof global$1<"u"?global$1:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(M){return h.from(M)}function r(M){return h.isBuffer(M)||M instanceof f}var c=require_destroy();e.inherits(S,p);function i(){}function v(M,w){y=y||require__stream_duplex(),M=M||{};var _=w instanceof y;this.objectMode=!!M.objectMode,_&&(this.objectMode=this.objectMode||!!M.writableObjectMode);var B=M.highWaterMark,T=M.writableHighWaterMark,A=this.objectMode?16:16*1024;B||B===0?this.highWaterMark=B:_&&(T||T===0)?this.highWaterMark=T:this.highWaterMark=A,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var $=M.decodeStrings===!1;this.decodeStrings=!$,this.defaultEncoding=M.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(te){G(w,te)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new d(this)}v.prototype.getBuffer=function(){for(var w=this.bufferedRequest,_=[];w;)_.push(w),w=w.next;return _},function(){try{Object.defineProperty(v.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var b;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(b=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(M){return b.call(this,M)?!0:this!==S?!1:M&&M._writableState instanceof v}})):b=function(M){return M instanceof this};function S(M){if(y=y||require__stream_duplex(),!b.call(S,this)&&!(this instanceof y))return new S(M);this._writableState=new v(M,this),this.writable=!0,M&&(typeof M.write=="function"&&(this._write=M.write),typeof M.writev=="function"&&(this._writev=M.writev),typeof M.destroy=="function"&&(this._destroy=M.destroy),typeof M.final=="function"&&(this._final=M.final)),p.call(this)}S.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function q(M,w){var _=new Error("write after end");M.emit("error",_),a.nextTick(w,_)}function I(M,w,_,B){var T=!0,A=!1;return _===null?A=new TypeError("May not write null values to stream"):typeof _!="string"&&_!==void 0&&!w.objectMode&&(A=new TypeError("Invalid non-string/buffer chunk")),A&&(M.emit("error",A),a.nextTick(B,A),T=!1),T}S.prototype.write=function(M,w,_){var B=this._writableState,T=!1,A=!B.objectMode&&r(M);return A&&!h.isBuffer(M)&&(M=o(M)),typeof w=="function"&&(_=w,w=null),A?w="buffer":w||(w=B.defaultEncoding),typeof _!="function"&&(_=i),B.ended?q(this,_):(A||I(this,B,M,_))&&(B.pendingcb++,T=D(this,B,A,M,w,_)),T},S.prototype.cork=function(){var M=this._writableState;M.corked++},S.prototype.uncork=function(){var M=this._writableState;M.corked&&(M.corked--,!M.writing&&!M.corked&&!M.bufferProcessing&&M.bufferedRequest&&C(this,M))},S.prototype.setDefaultEncoding=function(w){if(typeof w=="string"&&(w=w.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((w+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+w);return this._writableState.defaultEncoding=w,this};function k(M,w,_){return!M.objectMode&&M.decodeStrings!==!1&&typeof w=="string"&&(w=h.from(w,_)),w}Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function D(M,w,_,B,T,A){if(!_){var $=k(w,B,T);B!==$&&(_=!0,T="buffer",B=$)}var te=w.objectMode?1:B.length;w.length+=te;var W=w.length<w.highWaterMark;if(W||(w.needDrain=!0),w.writing||w.corked){var K=w.lastBufferedRequest;w.lastBufferedRequest={chunk:B,encoding:T,isBuf:_,callback:A,next:null},K?K.next=w.lastBufferedRequest:w.bufferedRequest=w.lastBufferedRequest,w.bufferedRequestCount+=1}else N(M,w,!1,te,B,T,A);return W}function N(M,w,_,B,T,A,$){w.writelen=B,w.writecb=$,w.writing=!0,w.sync=!0,_?M._writev(T,w.onwrite):M._write(T,A,w.onwrite),w.sync=!1}function F(M,w,_,B,T){--w.pendingcb,_?(a.nextTick(T,B),a.nextTick(t,M,w),M._writableState.errorEmitted=!0,M.emit("error",B)):(T(B),M._writableState.errorEmitted=!0,M.emit("error",B),t(M,w))}function z(M){M.writing=!1,M.writecb=null,M.length-=M.writelen,M.writelen=0}function G(M,w){var _=M._writableState,B=_.sync,T=_.writecb;
16if(z(_),w)F(M,_,B,w,T);else{var A=m(_);!A&&!_.corked&&!_.bufferProcessing&&_.bufferedRequest&&C(M,_),B?u(Z,M,_,A,T):Z(M,_,A,T)}}function Z(M,w,_,B){_||re(M,w),w.pendingcb--,B(),t(M,w)}function re(M,w){w.length===0&&w.needDrain&&(w.needDrain=!1,M.emit("drain"))}function C(M,w){w.bufferProcessing=!0;var _=w.bufferedRequest;if(M._writev&&_&&_.next){var B=w.bufferedRequestCount,T=new Array(B),A=w.corkedRequestsFree;A.entry=_;for(var $=0,te=!0;_;)T[$]=_,_.isBuf||(te=!1),_=_.next,$+=1;T.allBuffers=te,N(M,w,!0,w.length,T,"",A.finish),w.pendingcb++,w.lastBufferedRequest=null,A.next?(w.corkedRequestsFree=A.next,A.next=null):w.corkedRequestsFree=new d(w),w.bufferedRequestCount=0}else{for(;_;){var W=_.chunk,K=_.encoding,L=_.callback;if(N(M,w,!1,w.objectMode?1:W.length,W,K,L),_=_.next,w.bufferedRequestCount--,w.writing)break}_===null&&(w.lastBufferedRequest=null)}w.bufferedRequest=_,w.bufferProcessing=!1}S.prototype._write=function(M,w,_){_(new Error("_write() is not implemented"))},S.prototype._writev=null,S.prototype.end=function(M,w,_){var B=this._writableState;typeof M=="function"?(_=M,M=null,w=null):typeof w=="function"&&(_=w,w=null),M!=null&&this.write(M,w),B.corked&&(B.corked=1,this.uncork()),B.ending||g(this,B,_)};function m(M){return M.ending&&M.length===0&&M.bufferedRequest===null&&!M.finished&&!M.writing}function O(M,w){M._final(function(_){w.pendingcb--,_&&M.emit("error",_),w.prefinished=!0,M.emit("prefinish"),t(M,w)})}function E(M,w){!w.prefinished&&!w.finalCalled&&(typeof M._final=="function"?(w.pendingcb++,w.finalCalled=!0,a.nextTick(O,M,w)):(w.prefinished=!0,M.emit("prefinish")))}function t(M,w){var _=m(w);return _&&(E(M,w),w.pendingcb===0&&(w.finished=!0,M.emit("finish"))),_}function g(M,w,_){w.ending=!0,t(M,w),_&&(w.finished?a.nextTick(_):M.once("finish",_)),w.ended=!0,M.writable=!1}function R(M,w,_){var B=M.entry;for(M.entry=null;B;){var T=B.callback;w.pendingcb--,T(_),B=B.next}w.corkedRequestsFree.next=M}Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(M){this._writableState&&(this._writableState.destroyed=M)}}),S.prototype.destroy=c.destroy,S.prototype._undestroy=c.undestroy,S.prototype._destroy=function(M,w){this.end(),w(M)}}),require__stream_duplex=__commonJSMin((n,l)=>{var a=require_process_nextick_args(),d=Object.keys||function(c){var i=[];for(var v in c)i.push(v);return i};l.exports=f;var u=Object.create(require_util());u.inherits=require_inherits_browser();var y=require__stream_readable(),e=require__stream_writable();u.inherits(f,y);for(var s=d(e.prototype),p=0;p<s.length;p++){var h=s[p];f.prototype[h]||(f.prototype[h]=e.prototype[h])}function f(c){if(!(this instanceof f))return new f(c);y.call(this,c),e.call(this,c),c&&c.readable===!1&&(this.readable=!1),c&&c.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,c&&c.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",o)}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(){this.allowHalfOpen||this._writableState.ended||a.nextTick(r,this)}function r(c){c.end()}Object.defineProperty(f.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(c){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=c,this._writableState.destroyed=c)}}),f.prototype._destroy=function(c,i){this.push(null),this.end(),a.nextTick(i,c)}}),require__stream_readable=__commonJSMin((n,l)=>{init_dist$1(),init_dist$2();var a=require_process_nextick_args();l.exports=k;var d=require_isarray(),u;k.ReadableState=I,require_events().EventEmitter;var y=function(L,U){return L.listeners(U).length},e=require_stream_browser(),s=require_safe_buffer().Buffer,p=(typeof global$1<"u"?global$1:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h(L){return s.from(L)}function f(L){return s.isBuffer(L)||L instanceof p}var o=Object.create(require_util());o.inherits=require_inherits_browser();var r=require_util$1(),c=void 0;r&&r.debuglog?c=r.debuglog("stream"):c=function(){};var i=require_BufferList(),v=require_destroy(),b;o.inherits(k,e);var S=["error","close","destroy","pause","resume"];function q(L,U,X){if(typeof L.prependListener=="function")return L.prependListener(U,X);!L._events||!L._events[U]?L.on(U,X):d(L._events[U])?L._events[U].unshift(X):L._events[U]=[X,L._events[U]]}function I(L,U){u=u||require__stream_duplex(),L=L||{};var X=U instanceof u;this.objectMode=!!L.objectMode,X&&(this.objectMode=this.objectMode||!!L.readableObjectMode);var j=L.highWaterMark,J=L.readableHighWaterMark,Q=this.objectMode?16:16*1024;j||j===0?this.highWaterMark=j:X&&(J||J===0)?this.highWaterMark=J:this.highWaterMark=Q,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new i,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=L.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,L.encoding&&(b||(b=require_string_decoder().StringDecoder),this.decoder=new b(L.encoding),this.encoding=L.encoding)}function k(L){if(u=u||require__stream_duplex(),!(this instanceof k))return new k(L);this._readableState=new I(L,this),this.readable=!0,L&&(typeof L.read=="function"&&(this._read=L.read),typeof L.destroy=="function"&&(this._destroy=L.destroy)),e.call(this)}Object.defineProperty(k.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(L){this._readableState&&(this._readableState.destroyed=L)}}),k.prototype.destroy=v.destroy,k.prototype._undestroy=v.undestroy,k.prototype._destroy=function(L,U){this.push(null),U(L)},k.prototype.push=function(L,U){var X=this._readableState,j;return X.objectMode?j=!0:typeof L=="string"&&(U=U||X.defaultEncoding,U!==X.encoding&&(L=s.from(L,U),U=""),j=!0),D(this,L,U,!1,j)}
16,k.prototype.unshift=function(L){return D(this,L,null,!0,!1)};function D(L,U,X,j,J){var Q=L._readableState;if(U===null)Q.reading=!1,C(L,Q);else{var ne;J||(ne=F(Q,U)),ne?L.emit("error",ne):Q.objectMode||U&&U.length>0?(typeof U!="string"&&!Q.objectMode&&Object.getPrototypeOf(U)!==s.prototype&&(U=h(U)),j?Q.endEmitted?L.emit("error",new Error("stream.unshift() after end event")):N(L,Q,U,!0):Q.ended?L.emit("error",new Error("stream.push() after EOF")):(Q.reading=!1,Q.decoder&&!X?(U=Q.decoder.write(U),Q.objectMode||U.length!==0?N(L,Q,U,!1):E(L,Q)):N(L,Q,U,!1))):j||(Q.reading=!1)}return z(Q)}function N(L,U,X,j){U.flowing&&U.length===0&&!U.sync?(L.emit("data",X),L.read(0)):(U.length+=U.objectMode?1:X.length,j?U.buffer.unshift(X):U.buffer.push(X),U.needReadable&&m(L)),E(L,U)}function F(L,U){var X;return!f(U)&&typeof U!="string"&&U!==void 0&&!L.objectMode&&(X=new TypeError("Invalid non-string/buffer chunk")),X}function z(L){return!L.ended&&(L.needReadable||L.length<L.highWaterMark||L.length===0)}k.prototype.isPaused=function(){return this._readableState.flowing===!1},k.prototype.setEncoding=function(L){return b||(b=require_string_decoder().StringDecoder),this._readableState.decoder=new b(L),this._readableState.encoding=L,this};var G=8388608;function Z(L){return L>=G?L=G:(L--,L|=L>>>1,L|=L>>>2,L|=L>>>4,L|=L>>>8,L|=L>>>16,L++),L}function re(L,U){return L<=0||U.length===0&&U.ended?0:U.objectMode?1:L!==L?U.flowing&&U.length?U.buffer.head.data.length:U.length:(L>U.highWaterMark&&(U.highWaterMark=Z(L)),L<=U.length?L:U.ended?U.length:(U.needReadable=!0,0))}k.prototype.read=function(L){c("read",L),L=parseInt(L,10);var U=this._readableState,X=L;if(L!==0&&(U.emittedReadable=!1),L===0&&U.needReadable&&(U.length>=U.highWaterMark||U.ended))return c("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?te(this):m(this),null;if(L=re(L,U),L===0&&U.ended)return U.length===0&&te(this),null;var j=U.needReadable;c("need readable",j),(U.length===0||U.length-L<U.highWaterMark)&&(j=!0,c("length less than watermark",j)),U.ended||U.reading?(j=!1,c("reading or ended",j)):j&&(c("do read"),U.reading=!0,U.sync=!0,U.length===0&&(U.needReadable=!0),this._read(U.highWaterMark),U.sync=!1,U.reading||(L=re(X,U)));var J;return L>0?J=B(L,U):J=null,J===null?(U.needReadable=!0,L=0):U.length-=L,U.length===0&&(U.ended||(U.needReadable=!0),X!==L&&U.ended&&te(this)),J!==null&&this.emit("data",J),J};function C(L,U){if(!U.ended){if(U.decoder){var X=U.decoder.end();X&&X.length&&(U.buffer.push(X),U.length+=U.objectMode?1:X.length)}U.ended=!0,m(L)}}function m(L){var U=L._readableState;U.needReadable=!1,U.emittedReadable||(c("emitReadable",U.flowing),U.emittedReadable=!0,U.sync?a.nextTick(O,L):O(L))}function O(L){c("emit readable"),L.emit("readable"),_(L)}function E(L,U){U.readingMore||(U.readingMore=!0,a.nextTick(t,L,U))}function t(L,U){for(var X=U.length;!U.reading&&!U.flowing&&!U.ended&&U.length<U.highWaterMark&&(c("maybeReadMore read 0"),L.read(0),X!==U.length);)X=U.length;U.readingMore=!1}k.prototype._read=function(L){this.emit("error",new Error("_read() is not implemented"))},k.prototype.pipe=function(L,U){var X=this,j=this._readableState;switch(j.pipesCount){case 0:j.pipes=L;break;case 1:j.pipes=[j.pipes,L];break;default:j.pipes.push(L);break}j.pipesCount+=1,c("pipe count=%d opts=%j",j.pipesCount,U);var J=(!U||U.end!==!1)&&L!==process$1.stdout&&L!==process$1.stderr?ne:ke;j.endEmitted?a.nextTick(J):X.once("end",J),L.on("unpipe",Q);function Q(le,be){c("onunpipe"),le===X&&be&&be.hasUnpiped===!1&&(be.hasUnpiped=!0,we())}function ne(){c("onend"),L.end()}var se=g(X);L.on("drain",se);var oe=!1;function we(){c("cleanup"),L.removeListener("close",ue),L.removeListener("finish",fe),L.removeListener("drain",se),L.removeListener("error",De),L.removeListener("unpipe",Q),X.removeListener("end",ne),X.removeListener("end",ke),X.removeListener("data",ve),oe=!0,j.awaitDrain&&(!L._writableState||L._writableState.needDrain)&&se()}var ie=!1;X.on("data",ve);function ve(le){c("ondata"),ie=!1,L.write(le)===!1&&!ie&&((j.pipesCount===1&&j.pipes===L||j.pipesCount>1&&K(j.pipes,L)!==-1)&&!oe&&(c("false write response, pause",j.awaitDrain),j.awaitDrain++,ie=!0),X.pause())}function De(le){c("onerror",le),ke(),L.removeListener("error",De),y(L,"error")===0&&L.emit("error",le)}q(L,"error",De);function ue(){L.removeListener("finish",fe),ke()}L.once("close",ue);function fe(){c("onfinish"),L.removeListener("close",ue),ke()}L.once("finish",fe);function ke(){c("unpipe"),X.unpipe(L)}return L.emit("pipe",X),j.flowing||(c("pipe resume"),X.resume()),L};function g(L){return function(){var U=L._readableState;c("pipeOnDrain",U.awaitDrain),U.awaitDrain&&U.awaitDrain--,U.awaitDrain===0&&y(L,"data")&&(U.flowing=!0,_(L))}}k.prototype.unpipe=function(L){var U=this._readableState,X={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return L&&L!==U.pipes?this:(L||(L=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,L&&L.emit("unpipe",this,X),this);if(!L){var j=U.pipes,J=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var Q=0;Q<J;Q++)j[Q].emit("unpipe",this,{hasUnpiped:!1});return this}var ne=K(U.pipes,L);return ne===-1?this:(U.pipes.splice(ne,1),U.pipesCount-=1,U.pipesCount===1&&(U.pipes=U.pipes[0]),L.emit("unpipe",this,X),this)},k.prototype.on=function(L,U){var X=e.prototype.on.call(this,L,U);if(L==="data")this._readableState.flowing!==!1&&this.resume();else if(L==="readable"){var j=this._readableState;!j.endEmitted&&!j.readableListening&&(j.readableListening=j.needReadable=!0,j.emittedReadable=!1,j.reading?j.length&&m(this):a.nextTick(R,this))}return X},k.prototype.addListener=k.prototype.on;function R(L){c("readable nexttick read 0"),L.read(0)}k.prototype.resume=function(){var L=this._readableState;return L.flowing||(c("resume"),L.flowing=!0,M(this,L)),this};function M(L,U){U.resumeScheduled||(U.resumeScheduled=!0,a.nextTick(w,L,U))}function w(L,U){U.reading||(c("resume read 0"),L.read(0)),U.resumeScheduled=!1,U.awaitDrain=0,L.emit("resume"),_(L),U.flowing&&!U.reading&&L.read(0)}k.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit
16("pause")),this};function _(L){var U=L._readableState;for(c("flow",U.flowing);U.flowing&&L.read()!==null;);}k.prototype.wrap=function(L){var U=this,X=this._readableState,j=!1;L.on("end",function(){if(c("wrapped end"),X.decoder&&!X.ended){var ne=X.decoder.end();ne&&ne.length&&U.push(ne)}U.push(null)}),L.on("data",function(ne){c("wrapped data"),X.decoder&&(ne=X.decoder.write(ne)),!(X.objectMode&&ne==null)&&(!X.objectMode&&(!ne||!ne.length)||U.push(ne)||(j=!0,L.pause()))});for(var J in L)this[J]===void 0&&typeof L[J]=="function"&&(this[J]=function(ne){return function(){return L[ne].apply(L,arguments)}}(J));for(var Q=0;Q<S.length;Q++)L.on(S[Q],this.emit.bind(this,S[Q]));return this._read=function(ne){c("wrapped _read",ne),j&&(j=!1,L.resume())},this},Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),k._fromList=B;function B(L,U){if(U.length===0)return null;var X;return U.objectMode?X=U.buffer.shift():!L||L>=U.length?(U.decoder?X=U.buffer.join(""):U.buffer.length===1?X=U.buffer.head.data:X=U.buffer.concat(U.length),U.buffer.clear()):X=T(L,U.buffer,U.decoder),X}function T(L,U,X){var j;return L<U.head.data.length?(j=U.head.data.slice(0,L),U.head.data=U.head.data.slice(L)):L===U.head.data.length?j=U.shift():j=X?A(L,U):$(L,U),j}function A(L,U){var X=U.head,j=1,J=X.data;for(L-=J.length;X=X.next;){var Q=X.data,ne=L>Q.length?Q.length:L;if(ne===Q.length?J+=Q:J+=Q.slice(0,L),L-=ne,L===0){ne===Q.length?(++j,X.next?U.head=X.next:U.head=U.tail=null):(U.head=X,X.data=Q.slice(ne));break}++j}return U.length-=j,J}function $(L,U){var X=s.allocUnsafe(L),j=U.head,J=1;for(j.data.copy(X),L-=j.data.length;j=j.next;){var Q=j.data,ne=L>Q.length?Q.length:L;if(Q.copy(X,X.length-L,0,ne),L-=ne,L===0){ne===Q.length?(++J,j.next?U.head=j.next:U.head=U.tail=null):(U.head=j,j.data=Q.slice(ne));break}++J}return U.length-=J,X}function te(L){var U=L._readableState;if(U.length>0)throw new Error('"endReadable()" called on non-empty stream');U.endEmitted||(U.ended=!0,a.nextTick(W,U,L))}function W(L,U){!L.endEmitted&&L.length===0&&(L.endEmitted=!0,U.readable=!1,U.emit("end"))}function K(L,U){for(var X=0,j=L.length;X<j;X++)if(L[X]===U)return X;return-1}}),require__stream_transform=__commonJSMin((n,l)=>{l.exports=y;var a=require__stream_duplex(),d=Object.create(require_util());d.inherits=require_inherits_browser(),d.inherits(y,a);function u(p,h){var f=this._transformState;f.transforming=!1;var o=f.writecb;if(!o)return this.emit("error",new Error("write callback called multiple times"));f.writechunk=null,f.writecb=null,h!=null&&this.push(h),o(p);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function y(p){if(!(this instanceof y))return new y(p);a.call(this,p),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,p&&(typeof p.transform=="function"&&(this._transform=p.transform),typeof p.flush=="function"&&(this._flush=p.flush)),this.on("prefinish",e)}function e(){var p=this;typeof this._flush=="function"?this._flush(function(h,f){s(p,h,f)}):s(this,null,null)}y.prototype.push=function(p,h){return this._transformState.needTransform=!1,a.prototype.push.call(this,p,h)},y.prototype._transform=function(p,h,f){throw new Error("_transform() is not implemented")},y.prototype._write=function(p,h,f){var o=this._transformState;if(o.writecb=f,o.writechunk=p,o.writeencoding=h,!o.transforming){var r=this._readableState;(o.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},y.prototype._read=function(p){var h=this._transformState;h.writechunk!==null&&h.writecb&&!h.transforming?(h.transforming=!0,this._transform(h.writechunk,h.writeencoding,h.afterTransform)):h.needTransform=!0},y.prototype._destroy=function(p,h){var f=this;a.prototype._destroy.call(this,p,function(o){h(o),f.emit("close")})};function s(p,h,f){if(h)return p.emit("error",h);if(f!=null&&p.push(f),p._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(p._transformState.transforming)throw new Error("Calling transform done when still transforming");return p.push(null)}}),require__stream_passthrough=__commonJSMin((n,l)=>{l.exports=u;var a=require__stream_transform(),d=Object.create(require_util());d.inherits=require_inherits_browser(),d.inherits(u,a);function u(y){if(!(this instanceof u))return new u(y);
vendor: 14,064 bytes, line 16
16a.call(this,y)}u.prototype._transform=function(y,e,s){s(null,y)}}),require_readable_browser=__commonJSMin((n,l)=>{n=l.exports=require__stream_readable(),n.Stream=n,n.Readable=n,n.Writable=require__stream_writable(),n.Duplex=require__stream_duplex(),n.Transform=require__stream_transform(),n.PassThrough=require__stream_passthrough()}),require_bn=__commonJSMin((n,l)=>{(function(a,d){"use strict";function u(E,t){if(!E)throw new Error(t||"Assertion failed")}function y(E,t){E.super_=t;var g=function(){};g.prototype=t.prototype,E.prototype=new g,E.prototype.constructor=E}function e(E,t,g){if(e.isBN(E))return E;this.negative=0,this.words=null,this.length=0,this.red=null,E!==null&&((t==="le"||t==="be")&&(g=t,t=10),this._init(E||0,t||10,g||"be"))}typeof a=="object"?a.exports=e:d.BN=e,e.BN=e,e.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=require_dist().Buffer}catch{}e.isBN=function(t){return t instanceof e?!0:t!==null&&typeof t=="object"&&t.constructor.wordSize===e.wordSize&&Array.isArray(t.words)},e.max=function(t,g){return t.cmp(g)>0?t:g},e.min=function(t,g){return t.cmp(g)<0?t:g},e.prototype._init=function(t,g,R){if(typeof t=="number")return this._initNumber(t,g,R);if(typeof t=="object")return this._initArray(t,g,R);g==="hex"&&(g=16),u(g===(g|0)&&g>=2&&g<=36),t=t.toString().replace(/\s+/g,"");var M=0;t[0]==="-"&&(M++,this.negative=1),M<t.length&&(g===16?this._parseHex(t,M,R):(this._parseBase(t,g,M),R==="le"&&this._initArray(this.toArray(),g,R)))},e.prototype._initNumber=function(t,g,R){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[t&67108863],this.length=1):t<4503599627370496?(this.words=[t&67108863,t/67108864&67108863],this.length=2):(u(t<9007199254740992),this.words=[t&67108863,t/67108864&67108863,1],this.length=3),R==="le"&&this._initArray(this.toArray(),g,R)},e.prototype._initArray=function(t,g,R){if(u(typeof t.length=="number"),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var M=0;M<this.length;M++)this.words[M]=0;var w,_,B=0;if(R==="be")for(M=t.length-1,w=0;M>=0;M-=3)_=t[M]|t[M-1]<<8|t[M-2]<<16,this.words[w]|=_<<B&67108863,this.words[w+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,w++);else if(R==="le")for(M=0,w=0;M<t.length;M+=3)_=t[M]|t[M+1]<<8|t[M+2]<<16,this.words[w]|=_<<B&67108863,this.words[w+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,w++);return this._strip()};function p(E,t){var g=E.charCodeAt(t);if(g>=48&&g<=57)return g-48;if(g>=65&&g<=70)return g-55;if(g>=97&&g<=102)return g-87;u(!1,"Invalid character in "+E)}function h(E,t,g){var R=p(E,g);return g-1>=t&&(R|=p(E,g-1)<<4),R}e.prototype._parseHex=function(t,g,R){this.length=Math.ceil((t.length-g)/6),this.words=new Array(this.length);for(var M=0;M<this.length;M++)this.words[M]=0;var w=0,_=0,B;if(R==="be")for(M=t.length-1;M>=g;M-=2)B=h(t,g,M)<<w,this.words[_]|=B&67108863,w>=18?(w-=18,_+=1,this.words[_]|=B>>>26):w+=8;else for(M=(t.length-g)%2===0?g+1:g;M<t.length;M+=2)B=h(t,g,M)<<w,this.words[_]|=B&67108863,w>=18?(w-=18,_+=1,this.words[_]|=B>>>26):w+=8;this._strip()};function f(E,t,g,R){for(var M=0,w=0,_=Math.min(E.length,g),B=t;B<_;B++){var T=E.charCodeAt(B)-48;M*=R,T>=49?w=T-49+10:T>=17?w=T-17+10:w=T,u(T>=0&&w<R,"Invalid character"),M+=w}return M}e.prototype._parseBase=function(t,g,R){this.words=[0],this.length=1;for(var M=0,w=1;w<=67108863;w*=g)M++;M--,w=w/g|0;for(var _=t.length-R,B=_%M,T=Math.min(_,_-B)+R,A=0,$=R;$<T;$+=M)A=f(t,$,$+M,g),this.imuln(w),this.words[0]+A<67108864?this.words[0]+=A:this._iaddn(A);if(B!==0){var te=1;for(A=f(t,$,t.length,g),$=0;$<B;$++)te*=g;this.imuln(te),this.words[0]+A<67108864?this.words[0]+=A:this._iaddn(A)}this._strip()},e.prototype.copy=function(t){t.words=new Array(this.length);for(var g=0;g<this.length;g++)t.words[g]=this.words[g];t.length=this.length,t.negative=this.negative,t.red=this.red};function o(E,t){E.words=t.words,E.length=t.length,E.negative=t.negative,E.red=t.red}if(e.prototype._move=function(t){o(t,this)},e.prototype.clone=function(){var t=new e(null);return this.copy(t),t},e.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},e.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},e.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{e.prototype[Symbol.for("nodejs.util.inspect.custom")]=r}catch{e.prototype.inspect=r}else e.prototype.inspect=r;function r(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var c=["","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"],i=[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],v=[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];e.prototype.toString=function(t,g){t=t||10,g=g|0||1;var R;if(t===16||t==="hex"){R="";for(var M=0,w=0,_=0;_<this.length;_++){var B=this.words[_],T=((B<<M|w)&16777215).toString(16);w=B>>>24-M&16777215,M+=2,M>=26&&(M-=26,_--),w!==0||_!==this.length-1?R=c[6-T.length]+T+R:R=T+R}for(w!==0&&(R=w.toString(16)+R);R.length%g!==0;)R="0"+R;return this.negative!==0&&(R="-"+R),R}if(t===(t|0)&&t>=2&&t<=36){var A=i[t],$=v[t];R="";var te=this.clone();for(te.negative=0;!te.isZero();){var W=te.modrn($).toString(t);te=te.idivn($),te.isZero()?R=W+R:R=c[A-W.length]+W+R}for(this.isZero()&&(R="0"+R);R.length%g!==0;)R="0"+R;return this.negative!==0&&(R="-"+R),R}u(!1,"Base should be between 2 and 36")},e.prototype.toNumber=function(){var t=this.words[0];return this.length===2?t+=this.words[1]*67108864:this.length===3&&this.words[2]===1?t+=4503599627370496+this.words[1]*67108864:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-t:t},e.prototype.toJSON=function(){return this.toString(16,2)},s&&(e.prototype.toBuffer=function(t,g){return this.toArrayLike(s,t,g)}),e.prototype.toArray=function(t,g){return this.toArrayLike(Array,t,g)};var b=function(t,g){return t.allocUnsafe?t.allocUnsafe(g):new t(g)};e.prototype.toArrayLike=function(t,g,R){this._strip();var M=this.byteLength(),w=R||Math.max(1,M);u(M<=w,"byte array longer than desired length"),u(w>0,"Requested array length <= 0");var _=b(t,w),B=g==="le"?"LE":"BE";return this["_toArrayLike"+B](_,M),_},e.prototype._toArrayLikeLE=function(t,g){for(var R=0,M=0,w=0,_=0;w<this.length;w++){var B=this.words[w]<<_|M;t[R++]=B&255,R<t.length&&(t[R++]=B>>8&255),R<t.length&&(t[R++]=B>>16&255),_===6?(R<t.length&&(t[R++]=B>>24&255),M=0,_=0):(M=B>>>24,_+=2)}if(R<t.length)for(t[R++]=M;R<t.length;)t[R++]=0},e.prototype._toArrayLikeBE=function(t,g){for(var R=t.length-1,M=0,w=0,_=0;w<this.length;w++){var B=this.words[w]<<_|M;t[R--]=B&255,R>=0&&(t[R--]=B>>8&255),R>=0&&(t[R--]=B>>16&255),_===6?(R>=0&&(t[R--]=B>>24&255),M=0,_=0):(M=B>>>24,_+=2)}if(R>=0)for(t[R--]=M;R>=0;)t[R--]=0},Math.clz32?e.prototype._countBits=function(t){return 32-Math.clz32(t)}:e.prototype._countBits=function(t){var g=t,R=0;return g>=4096&&(R+=13,g>>>=13),g>=64&&(R+=7,g>>>=7),g>=8&&(R+=4,g>>>=4),g>=2&&(R+=2,g>>>=2),R+g},e.prototype._zeroBits=function(t){if(t===0)return 26;var g=t,R=0;return g&8191||(R+=13,g>>>=13),g&127||(R+=7,g>>>=7),g&15||(R+=4,g>>>=4),g&3||(R+=2,g>>>=2),g&1||R++,R},e.prototype.bitLength=function(){var t=this.words[this.length-1],g=this._countBits(t);return(this.length-1)*26+g};function S(E){for(var t=new Array(E.bitLength()),g=0;g<t.length;g++){var R=g/26|0,M=g%26;t[g]=E.words[R]>>>M&1}return t}e.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,g=0;g<this.length;g++){var R=this._zeroBits(this.words[g]);if(t+=R,R!==26)break}return t},e.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},e.prototype.toTwos=function(t){return this.negative!==0?this.abs().inotn(t).iaddn(1):this.clone()},e.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},e.prototype.isNeg=function(){return this.negative!==0},e.prototype.neg=function(){return this.clone().ineg()},e.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},e.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var g=0;g<t.length;g++)this.words[g]=this.words[g]|t.words[g];return this._strip()},e.prototype.ior=function(t){return u((this.negative|t.negative)===0),this.iuor(t)},e.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},e.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},e.prototype.iuand=function(t){var g;this.length>t.length?g=t:g=this;for(var R=0;R<g.length;R++)this.words[R]=this.words[R]&t.words[R];return this.length=g.length,this._strip()},e.prototype.iand=function(t){return u((this.negative|t.negative)===0),this.iuand(t)},e.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},e.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},e.prototype.iuxor=function(t){var g,R;this.length>t.length?(g=this,R=t):(g=t,R=this);for(var M=0;M<R.length;M++)this.words[M]=g.words[M]^R.words[M];if(this!==g)for(;M<g.length;M++)this.words[M]=g.words[M];return this.length=g.length,this._strip()},e.prototype.ixor=function(t){return u((this.negative|t.negative)===0),this.iuxor(t)},e.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},e.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},e.prototype.inotn=function(t){u(typeof t=="number"&&t>=0);var g=Math.ceil(t/26)|0,R=t%26;this._expand(g),R>0&&g--;for(var M=0;M<g;M++)this.words[M]=~this.words[M]&67108863;return R>0&&(this.words[M]=~this.words[M]&67108863>>26-R),this._strip()},e.prototype.notn=function(t){return this.clone().inotn(t)},e.prototype.setn=function(t,g){u(typeof t=="number"&&t>=0);var R=t/26|0,M=t%26;return this._expand(R+1),g?this.words[R]=this.words[R]|1<<M:this.words[R]=this.words[R]&~(1<<M),this._strip()},e.prototype.iadd=function(t){var g;if(this.negative!==0&&t.negative===0)return this.negative=0,g=this.isub(t),this.negative^=1,this._normSign();if(this.negative===0&&t.negative!==0)return t.negative=0,g=this.isub(t),t.negative=1,g._normSign();var R,M;this.length>t.length?(R=this,M=t):(R=t,M=this);for(var w=0,_=0;_<M.length;_++)g=(R.words[_]|0)+(M.words[_]|0)+w,this.words[_]=g&67108863,w=g>>>26;for(;w!==0&&_<R.length;_++)g=(R.words[_]|0)+w,this.words[_]=g&67108863,w=g>>>26;if(this.length=R.length,w!==0)this.words[this.length]=w,this.length++;else if(R!==this)for(;_<R.length;_++)this.words[_]=R.words[_];return this},e.prototype.add=function(t){var g;return t.negative!==0&&this.negative===0?(t.negative=0,g=this.sub(t),t.negative^=1,g):t.negative===0&&this.negative!==0?(this.negative=0,g=t.sub(this),this.negative=1,g):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},e.prototype.isub=function(t){if(t.negative!==0){t.negative=0;var g=this.iadd(t);return t.negative=1,g._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var R=this.cmp(t);if(R===0)return this.negative=0,this.length=1,this.words[0]=0,this;var M,w;R>0?(M=this,w=t):(M=t,w=this);for(var _=0,B=0;B<w.length;B++)g=(M.words[B]|0)-(w.words[B]|0)+_,_=g>>26,this.words[B]=g&67108863;for(;_!==0&&B<M.length;B++)g=(M.words[B]|0)+_,_=g>>26,this.words[B]=g&67108863;if(_===0&&B<M.length&&M!==this)for(;B<M.length;B++)this.words[B]=M.words[B];return this.length=Math.max(this.length,B),M!==this&&(this.negative=1),this._strip()},e.prototype.sub=function(t){return this.clone().isub(t)};function q(E,t,g){g.negative=t.negative^E.negative;var R=E.length+t.length|0;g.length=R,R=R-1|0;var M=E.words[0]|0,w=t.words[0]|0,_=M*w,B=_&67108863,T=_/67108864|0;g.words[0]=B;for(var A=1;A<R;A++){for(var $=T>>>26,te=T&67108863,W=Math.min(A,t.length-1),K=Math.max(0,A-E.length+1);K<=W;K++){var L=A-K|0;M=E.words[L]|0,w=t.words[K]|0,_=M*w+te,$+=_/67108864|0,te=_&67108863}g.words[A]=te|0,T=$|0}return T!==0?g.words[A]=T|0:g.length--,g._strip()}var I=function(t,g,R){var M=t.words,w=g.words,_=R.words,B=0,T,A,$,te=M[0]|0,W=te&8191,K=te>>>13,L=M[1]|0,U=L&8191,X=L>>>13,j=M[2]|0,J=j&8191,Q=j>>>13,ne=M[3]|0,se=ne&8191,oe=ne>>>13,we=M[4]|0,ie=we&8191,ve=we>>>13,De=M[5]|0,ue=De&8191,fe=De>>>13,ke=M[6]|0,le=ke&8191,be=ke>>>13,Ue=M[7]|0,ye=Ue&8191,me=Ue>>>13,je=M[8]|0,qe=je&8191,Be=je>>>13,Fe=M[9]|0,Se=Fe&8191,Me=Fe>>>13,Je=w[0]|0,Ie=Je&8191,Ee=Je>>>13,He=w[1]|0,Pe=He&8191,Re=He>>>13,$e=w[2]|0,_e=$e&8191,Ae=$e>>>13,ze=w[3]|0,ge=ze&8191,Oe=ze>>>13,H=w[4]|0,P=H&8191,x=H>>>13,V=w[5]|0,Y=V&8191,ee=V>>>13,ae=w[6]|0,ce=ae&8191,de=ae>>>13,Ce=w[7]|0,pe=Ce&8191,he=Ce>>>13,ur=w[8]|0,xe=ur&8191,Te=ur>>>13,fr=w[9]|0,Ne=fr&8191,Le=fr>>>13;R.negative=t.negative^g.negative,R.length=19,T=Math.imul(W,Ie),A=Math.imul(W,Ee),A=A+Math.imul(K,Ie)|0,$=Math.imul(K,Ee);var We=(B+T|0)+((A&8191)<<13)|0;B=($+(A>>>13)|0)+(We>>>26)|0,We&=67108863,T=Math.imul(U,Ie),A=Math.imul(U,Ee),A=A+Math.imul(X,Ie)|0,$=Math.imul(X,Ee),T=T+Math.imul(W,Pe)|0,A=A+Math.imul(W,Re)|0,A=A+Math.imul(K,Pe)|0,$=$+Math.imul(K,Re)|0;var Ke=(B+T|0)+((A&8191)<<13)|0;B=($+(A>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,T=Math.imul(J,Ie),A=Math.imul(J,Ee),A=A+Math.imul(Q,Ie)|0,$=Math.imul(Q,Ee),T=T+Math.imul(U,Pe)|0,A=A+Math.imul(U,Re)|0,A=A+Math.imul(X,Pe)|0,$=$+Math.imul(X,Re)|0,T=T+Math.imul(W,_e)|0,A=A+Math.imul(W,Ae)|0,A=A+Math.imul(K,_e)|0,$=$+Math.imul(K,Ae)|0;
16var Ve=(B+T|0)+((A&8191)<<13)|0;B=($+(A>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,T=Math.imul(se,Ie),A=Math.imul(se,Ee),A=A+Math.imul(oe,Ie)|0,$=Math.imul(oe,Ee),T=T+Math.imul(J,Pe)|0,A=A+Math.imul(J,Re)|0,A=A+Math.imul(Q,Pe)|0,$=$+Math.imul(Q,Re)|0,T=T+Math.imul(U,_e)|0,A=A+Math.imul(U,Ae)|0,A=A+Math.imul(X,_e)|0,$=$+Math.imul(X,Ae)|0,T=T+Math.imul(W,ge)|0,A=A+Math.imul(W,Oe)|0,A=A+Math.imul(K,ge)|0,$=$+Math.imul(K,Oe)|0;var Ge=(B+T|0)+((A&8191)<<13)|0;B=($+(A>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,T=Math.imul(ie,Ie),A=Math.imul(ie,Ee),A=A+Math.imul(ve,Ie)|0,$=Math.imul(ve,Ee),T=T+Math.imul(se,Pe)|0,A=A+Math.imul(se,Re)|0,A=A+Math.imul(oe,Pe)|0,$=$+Math.imul(oe,Re)|0,T=T+Math.imul(J,_e)|0,A=A+Math.imul(J,Ae)|0,A=A+Math.imul(Q,_e)|0,$=$+Math.imul(Q,Ae)|0,T=T+Math.imul(U,ge)|0,A=A+Math.imul(U,Oe)|0,A=A+Math.imul(X,ge)|0,$=$+Math.imul(X,Oe)|0,T=T+Math.imul(W,P)|0,A=A+Math.imul(W,x)|0,A=A+Math.imul(K,P)|0,$=$+Math.imul(K,x)|0;var Ze=(B+T|0)+((A&8191)<<13)|0;B=($+(A>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,T=Math.imul(ue,Ie),A=Math.imul(ue,Ee),A=A+Math.imul(fe,Ie)|0,$=Math.imul(fe,Ee),T=T+Math.imul(ie,Pe)|0,A=A+Math.imul(ie,Re)|0,A=A+Math.imul(ve,Pe)|0,$=$+Math.imul(ve,Re)|0,T=T+Math.imul(se,_e)|0,A=A+Math.imul(se,Ae)|0,A=A+Math.imul(oe,_e)|0,$=$+Math.imul(oe,Ae)|0,T=T+Math.imul(J,ge)|0,A=A+Math.imul(J,Oe)|0,A=A+Math.imul(Q,ge)|0,$=$+Math.imul(Q,Oe)|0,T=T+Math.imul(U,P)|0,A=A+Math.imul(U,x)|0,A=A+Math.imul(X,P)|0,$=$+Math.imul(X,x)|0,T=T+Math.imul(W,Y)|0,A=A+Math.imul(W,ee)|0,A=A+Math.imul(K,Y)|0,$=$+Math.imul(K,ee)|0;var Xe=(B+T|0)+((A&8191)<<13)|0;B=($+(A>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,T=Math.imul(le,Ie),A=Math.imul(le,Ee),A=A+Math.imul(be,Ie)|0,$=Math.imul(be,Ee),T=T+Math.imul(ue,Pe)|0,A=A+Math.imul(ue,Re)|0,A=A+Math.imul(fe,Pe)|0,$=$+Math.imul(fe,Re)|0,T=T+Math.imul(ie,_e)|0,A=A+Math.imul(ie,Ae)|0,A=A+Math.imul(ve,_e)|0,$=$+Math.imul(ve,Ae)|0,T=T+Math.imul(se,ge)|0,A=A+Math.imul(se,Oe)|0,A=A+Math.imul(oe,ge)|0,$=$+Math.imul(oe,Oe)|0,T=T+Math.imul(J,P)|0,A=A+Math.imul(J,x)|0,A=A+Math.imul(Q,P)|0,$=$+Math.imul(Q,x)|0,T=T+Math.imul(U,Y)|0,A=A+Math.imul(U,ee)|0,A=A+Math.imul(X,Y)|0,$=$+Math.imul(X,ee)|0,T=T+Math.imul(W,ce)|0,A=A+Math.imul(W,de)|0,A=A+Math.imul(K,ce)|0,$=$+Math.imul(K,de)|0;var Ye=(B+T|0)+((A&8191)<<13)|0;B=($+(A>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,T=Math.imul(ye,Ie),A=Math.imul(ye,Ee),A=A+Math.imul(me,Ie)|0,$=Math.imul(me,Ee),T=T+Math.imul(le,Pe)|0,A=A+Math.imul(le,Re)|0,A=A+Math.imul(be,Pe)|0,$=$+Math.imul(be,Re)|0,T=T+Math.imul(ue,_e)|0,A=A+Math.imul(ue,Ae)|0,A=A+Math.imul(fe,_e)|0,$=$+Math.imul(fe,Ae)|0,T=T+Math.imul(ie,ge)|0,A=A+Math.imul(ie,Oe)|0,A=A+Math.imul(ve,ge)|0,$=$+Math.imul(ve,Oe)|0,T=T+Math.imul(se,P)|0,A=A+Math.imul(se,x)|0,A=A+Math.imul(oe,P)|0,$=$+Math.imul(oe,x)|0,T=T+Math.imul(J,Y)|0,A=A+Math.imul(J,ee)|0,A=A+Math.imul(Q,Y)|0,$=$+Math.imul(Q,ee)|0,T=T+Math.imul(U,ce)|0,A=A+Math.imul(U,de)|0,A=A+Math.imul(X,ce)|0,$=$+Math.imul(X,de)|0,T=T+Math.imul(W,pe)|0,A=A+Math.imul(W,he)|0,A=A+Math.imul(K,pe)|0,$=$+Math.imul(K,he)|0;var Qe=(B+T|0)+((A&8191)<<13)|0;B=($+(A>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,T=Math.imul(qe,Ie),A=Math.imul(qe,Ee),A=A+Math.imul(Be,Ie)|0,$=Math.imul(Be,Ee),T=T+Math.imul(ye,Pe)|0,A=A+Math.imul(ye,Re)|0,A=A+Math.imul(me,Pe)|0,$=$+Math.imul(me,Re)|0,T=T+Math.imul(le,_e)|0,A=A+Math.imul(le,Ae)|0,A=A+Math.imul(be,_e)|0,$=$+Math.imul(be,Ae)|0,T=T+Math.imul(ue,ge)|0,A=A+Math.imul(ue,Oe)|0,A=A+Math.imul(fe,ge)|0,$=$+Math.imul(fe,Oe)|0,T=T+Math.imul(ie,P)|0,A=A+Math.imul(ie,x)|0,A=A+Math.imul(ve,P)|0,$=$+Math.imul(ve,x)|0,T=T+Math.imul(se,Y)|0,A=A+Math.imul(se,ee)|0,A=A+Math.imul(oe,Y)|0,$=$+Math.imul(oe,ee)|0,T=T+Math.imul(J,ce)|0,A=A+Math.imul(J,de)|0,A=A+Math.imul(Q,ce)|0,$=$+Math.imul(Q,de)|0,T=T+Math.imul(U,pe)|0,A=A+Math.imul(U,he)|0,A=A+Math.imul(X,pe)|0,$=$+Math.imul(X,he)|0,T=T+Math.imul(W,xe)|0,A=A+Math.imul(W,Te)|0,A=A+Math.imul(K,xe)|0,$=$+Math.imul(K,Te)|0;var er=(B+T|0)+((A&8191)<<13)|0;B=($+(A>>>13)|0)+(er>>>26)|0,er&=67108863,T=Math.imul(Se,Ie),A=Math.imul(Se,Ee),A=A+Math.imul(Me,Ie)|0,$=Math.imul(Me,Ee),T=T+Math.imul(qe,Pe)|0,A=A+Math.imul(qe,Re)|0,A=A+Math.imul(Be,Pe)|0,$=$+Math.imul(Be,Re)|0,T=T+Math.imul(ye,_e)|0,A=A+Math.imul(ye,Ae)|0,A=A+Math.imul(me,_e)|0,$=$+Math.imul(me,Ae)|0,T=T+Math.imul(le,ge)|0,A=A+Math.imul(le,Oe)|0,A=A+Math.imul(be,ge)|0,$=$+Math.imul(be,Oe)|0,T=T+Math.imul(ue,P)|0,A=A+Math.imul(ue,x)|0,A=A+Math.imul(fe,P)|0,$=$+Math.imul(fe,x)|0,T=T+Math.imul(ie,Y)|0,A=A+Math.imul(ie,ee)|0,A=A+Math.imul(ve,Y)|0,$=$+Math.imul(ve,ee)|0,T=T+Math.imul(se,ce)|0,A=A+Math.imul(se,de)|0,A=A+Math.imul(oe,ce)|0,$=$+Math.imul(oe,de)|0,T=T+Math.imul(J,pe)|0,A=A+Math.imul(J,he)|0,A=A+Math.imul(Q,pe)|0,$=$+Math.imul(Q,he)|0,T=T+Math.imul(U,xe)|0,A=A+Math.imul(U,Te)|0,A=A+Math.imul(X,xe)|0,$=$+Math.imul(X,Te)|0,T=T+Math.imul(W,Ne)|0,A=A+Math.imul(W,Le)|0,A=A+Math.imul(K,Ne)|0,$=$+Math.imul(K,Le)|0;
vendor: 27,533 bytes, line 16
16var rr=(B+T|0)+((A&8191)<<13)|0;B=($+(A>>>13)|0)+(rr>>>26)|0,rr&=67108863,T=Math.imul(Se,Pe),A=Math.imul(Se,Re),A=A+Math.imul(Me,Pe)|0,$=Math.imul(Me,Re),T=T+Math.imul(qe,_e)|0,A=A+Math.imul(qe,Ae)|0,A=A+Math.imul(Be,_e)|0,$=$+Math.imul(Be,Ae)|0,T=T+Math.imul(ye,ge)|0,A=A+Math.imul(ye,Oe)|0,A=A+Math.imul(me,ge)|0,$=$+Math.imul(me,Oe)|0,T=T+Math.imul(le,P)|0,A=A+Math.imul(le,x)|0,A=A+Math.imul(be,P)|0,$=$+Math.imul(be,x)|0,T=T+Math.imul(ue,Y)|0,A=A+Math.imul(ue,ee)|0,A=A+Math.imul(fe,Y)|0,$=$+Math.imul(fe,ee)|0,T=T+Math.imul(ie,ce)|0,A=A+Math.imul(ie,de)|0,A=A+Math.imul(ve,ce)|0,$=$+Math.imul(ve,de)|0,T=T+Math.imul(se,pe)|0,A=A+Math.imul(se,he)|0,A=A+Math.imul(oe,pe)|0,$=$+Math.imul(oe,he)|0,T=T+Math.imul(J,xe)|0,A=A+Math.imul(J,Te)|0,A=A+Math.imul(Q,xe)|0,$=$+Math.imul(Q,Te)|0,T=T+Math.imul(U,Ne)|0,A=A+Math.imul(U,Le)|0,A=A+Math.imul(X,Ne)|0,$=$+Math.imul(X,Le)|0;var tr=(B+T|0)+((A&8191)<<13)|0;B=($+(A>>>13)|0)+(tr>>>26)|0,tr&=67108863,T=Math.imul(Se,_e),A=Math.imul(Se,Ae),A=A+Math.imul(Me,_e)|0,$=Math.imul(Me,Ae),T=T+Math.imul(qe,ge)|0,A=A+Math.imul(qe,Oe)|0,A=A+Math.imul(Be,ge)|0,$=$+Math.imul(Be,Oe)|0,T=T+Math.imul(ye,P)|0,A=A+Math.imul(ye,x)|0,A=A+Math.imul(me,P)|0,$=$+Math.imul(me,x)|0,T=T+Math.imul(le,Y)|0,A=A+Math.imul(le,ee)|0,A=A+Math.imul(be,Y)|0,$=$+Math.imul(be,ee)|0,T=T+Math.imul(ue,ce)|0,A=A+Math.imul(ue,de)|0,A=A+Math.imul(fe,ce)|0,$=$+Math.imul(fe,de)|0,T=T+Math.imul(ie,pe)|0,A=A+Math.imul(ie,he)|0,A=A+Math.imul(ve,pe)|0,$=$+Math.imul(ve,he)|0,T=T+Math.imul(se,xe)|0,A=A+Math.imul(se,Te)|0,A=A+Math.imul(oe,xe)|0,$=$+Math.imul(oe,Te)|0,T=T+Math.imul(J,Ne)|0,A=A+Math.imul(J,Le)|0,A=A+Math.imul(Q,Ne)|0,$=$+Math.imul(Q,Le)|0;var ir=(B+T|0)+((A&8191)<<13)|0;B=($+(A>>>13)|0)+(ir>>>26)|0,ir&=67108863,T=Math.imul(Se,ge),A=Math.imul(Se,Oe),A=A+Math.imul(Me,ge)|0,$=Math.imul(Me,Oe),T=T+Math.imul(qe,P)|0,A=A+Math.imul(qe,x)|0,A=A+Math.imul(Be,P)|0,$=$+Math.imul(Be,x)|0,T=T+Math.imul(ye,Y)|0,A=A+Math.imul(ye,ee)|0,A=A+Math.imul(me,Y)|0,$=$+Math.imul(me,ee)|0,T=T+Math.imul(le,ce)|0,A=A+Math.imul(le,de)|0,A=A+Math.imul(be,ce)|0,$=$+Math.imul(be,de)|0,T=T+Math.imul(ue,pe)|0,A=A+Math.imul(ue,he)|0,A=A+Math.imul(fe,pe)|0,$=$+Math.imul(fe,he)|0,T=T+Math.imul(ie,xe)|0,A=A+Math.imul(ie,Te)|0,A=A+Math.imul(ve,xe)|0,$=$+Math.imul(ve,Te)|0,T=T+Math.imul(se,Ne)|0,A=A+Math.imul(se,Le)|0,A=A+Math.imul(oe,Ne)|0,$=$+Math.imul(oe,Le)|0;var nr=(B+T|0)+((A&8191)<<13)|0;B=($+(A>>>13)|0)+(nr>>>26)|0,nr&=67108863,T=Math.imul(Se,P),A=Math.imul(Se,x),A=A+Math.imul(Me,P)|0,$=Math.imul(Me,x),T=T+Math.imul(qe,Y)|0,A=A+Math.imul(qe,ee)|0,A=A+Math.imul(Be,Y)|0,$=$+Math.imul(Be,ee)|0,T=T+Math.imul(ye,ce)|0,A=A+Math.imul(ye,de)|0,A=A+Math.imul(me,ce)|0,$=$+Math.imul(me,de)|0,T=T+Math.imul(le,pe)|0,A=A+Math.imul(le,he)|0,A=A+Math.imul(be,pe)|0,$=$+Math.imul(be,he)|0,T=T+Math.imul(ue,xe)|0,A=A+Math.imul(ue,Te)|0,A=A+Math.imul(fe,xe)|0,$=$+Math.imul(fe,Te)|0,T=T+Math.imul(ie,Ne)|0,A=A+Math.imul(ie,Le)|0,A=A+Math.imul(ve,Ne)|0,$=$+Math.imul(ve,Le)|0;var ar=(B+T|0)+((A&8191)<<13)|0;B=($+(A>>>13)|0)+(ar>>>26)|0,ar&=67108863,T=Math.imul(Se,Y),A=Math.imul(Se,ee),A=A+Math.imul(Me,Y)|0,$=Math.imul(Me,ee),T=T+Math.imul(qe,ce)|0,A=A+Math.imul(qe,de)|0,A=A+Math.imul(Be,ce)|0,$=$+Math.imul(Be,de)|0,T=T+Math.imul(ye,pe)|0,A=A+Math.imul(ye,he)|0,A=A+Math.imul(me,pe)|0,$=$+Math.imul(me,he)|0,T=T+Math.imul(le,xe)|0,A=A+Math.imul(le,Te)|0,A=A+Math.imul(be,xe)|0,$=$+Math.imul(be,Te)|0,T=T+Math.imul(ue,Ne)|0,A=A+Math.imul(ue,Le)|0,A=A+Math.imul(fe,Ne)|0,$=$+Math.imul(fe,Le)|0;var or=(B+T|0)+((A&8191)<<13)|0;B=($+(A>>>13)|0)+(or>>>26)|0,or&=67108863,T=Math.imul(Se,ce),A=Math.imul(Se,de),A=A+Math.imul(Me,ce)|0,$=Math.imul(Me,de),T=T+Math.imul(qe,pe)|0,A=A+Math.imul(qe,he)|0,A=A+Math.imul(Be,pe)|0,$=$+Math.imul(Be,he)|0,T=T+Math.imul(ye,xe)|0,A=A+Math.imul(ye,Te)|0,A=A+Math.imul(me,xe)|0,$=$+Math.imul(me,Te)|0,T=T+Math.imul(le,Ne)|0,A=A+Math.imul(le,Le)|0,A=A+Math.imul(be,Ne)|0,$=$+Math.imul(be,Le)|0;var sr=(B+T|0)+((A&8191)<<13)|0;B=($+(A>>>13)|0)+(sr>>>26)|0,sr&=67108863,T=Math.imul(Se,pe),A=Math.imul(Se,he),A=A+Math.imul(Me,pe)|0,$=Math.imul(Me,he),T=T+Math.imul(qe,xe)|0,A=A+Math.imul(qe,Te)|0,A=A+Math.imul(Be,xe)|0,$=$+Math.imul(Be,Te)|0,T=T+Math.imul(ye,Ne)|0,A=A+Math.imul(ye,Le)|0,A=A+Math.imul(me,Ne)|0,$=$+Math.imul(me,Le)|0;var cr=(B+T|0)+((A&8191)<<13)|0;B=($+(A>>>13)|0)+(cr>>>26)|0,cr&=67108863,T=Math.imul(Se,xe),A=Math.imul(Se,Te),A=A+Math.imul(Me,xe)|0,$=Math.imul(Me,Te),T=T+Math.imul(qe,Ne)|0,A=A+Math.imul(qe,Le)|0,A=A+Math.imul(Be,Ne)|0,$=$+Math.imul(Be,Le)|0;var hr=(B+T|0)+((A&8191)<<13)|0;B=($+(A>>>13)|0)+(hr>>>26)|0,hr&=67108863,T=Math.imul(Se,Ne),A=Math.imul(Se,Le),A=A+Math.imul(Me,Ne)|0,$=Math.imul(Me,Le);var lr=(B+T|0)+((A&8191)<<13)|0;return B=($+(A>>>13)|0)+(lr>>>26)|0,lr&=67108863,_[0]=We,_[1]=Ke,_[2]=Ve,_[3]=Ge,_[4]=Ze,_[5]=Xe,_[6]=Ye,_[7]=Qe,_[8]=er,_[9]=rr,_[10]=tr,_[11]=ir,_[12]=nr,_[13]=ar,_[14]=or,_[15]=sr,_[16]=cr,_[17]=hr,_[18]=lr,B!==0&&(_[19]=B,R.length++),R};Math.imul||(I=q);function k(E,t,g){g.negative=t.negative^E.negative,g.length=E.length+t.length;for(var R=0,M=0,w=0;w<g.length-1;w++){var _=M;M=0;for(var B=R&67108863,T=Math.min(w,t.length-1),A=Math.max(0,w-E.length+1);A<=T;A++){var $=w-A,te=(E.words[$]|0)*(t.words[A]|0),W=te&67108863;_=_+(te/67108864|0)|0,W=W+B|0,B=W&67108863,_=_+(W>>>26)|0,M+=_>>>26,_&=67108863}g.words[w]=B,R=_,_=M}return R!==0?g.words[w]=R:g.length--,g._strip()}function D(E,t,g){return k(E,t,g)}e.prototype.mulTo=function(t,g){var R,M=this.length+t.length;return this.length===10&&t.length===10?R=I(this,t,g):M<63?R=q(this,t,g):M<1024?R=k(this,t,g):R=D(this,t,g),R};function N(E,t){this.x=E,this.y=t}N.prototype.makeRBT=function(t){for(var g=new Array(t),R=e.prototype._countBits(t)-1,M=0;M<t;M++)g[M]=this.revBin(M,R,t);return g},N.prototype.revBin=function(t,g,R){if(t===0||t===R-1)return t;for(var M=0,w=0;w<g;w++)M|=(t&1)<<g-w-1,t>>=1;return M},N.prototype.permute=function(t,g,R,M,w,_){for(var B=0;B<_;B++)M[B]=g[t[B]],w[B]=R[t[B]]},N.prototype.transform=function(t,g,R,M,w,_){this.permute(_,t,g,R,M,w);for(var B=1;B<w;B<<=1)for(var T=B<<1,A=Math.cos(2*Math.PI/T),$=Math.sin(2*Math.PI/T),te=0;te<w;te+=T)for(var W=A,K=$,L=0;L<B;L++){var U=R[te+L],X=M[te+L],j=R[te+L+B],J=M[te+L+B],Q=W*j-K*J;J=W*J+K*j,j=Q,R[te+L]=U+j,M[te+L]=X+J,R[te+L+B]=U-j,M[te+L+B]=X-J,L!==T&&(Q=A*W-$*K,K=A*K+$*W,W=Q)}},N.prototype.guessLen13b=function(t,g){var R=Math.max(g,t)|1,M=R&1,w=0;for(R=R/2|0;R;R=R>>>1)w++;return 1<<w+1+M},N.prototype.conjugate=function(t,g,R){if(!(R<=1))for(var M=0;M<R/2;M++){var w=t[M];t[M]=t[R-M-1],t[R-M-1]=w,w=g[M],g[M]=-g[R-M-1],g[R-M-1]=-w}},N.prototype.normalize13b=function(t,g){for(var R=0,M=0;M<g/2;M++){var w=Math.round(t[2*M+1]/g)*8192+Math.round(t[2*M]/g)+R;t[M]=w&67108863,w<67108864?R=0:R=w/67108864|0}return t},N.prototype.convert13b=function(t,g,R,M){for(var w=0,_=0;_<g;_++)w=w+(t[_]|0),R[2*_]=w&8191,w=w>>>13,R[2*_+1]=w&8191,w=w>>>13;for(_=2*g;_<M;++_)R[_]=0;u(w===0),u((w&-8192)===0)},N.prototype.stub=function(t){for(var g=new Array(t),R=0;R<t;R++)g[R]=0;return g},N.prototype.mulp=function(t,g,R){var M=2*this.guessLen13b(t.length,g.length),w=this.makeRBT(M),_=this.stub(M),B=new Array(M),T=new Array(M),A=new Array(M),$=new Array(M),te=new Array(M),W=new Array(M),K=R.words;K.length=M,this.convert13b(t.words,t.length,B,M),this.convert13b(g.words,g.length,$,M),this.transform(B,_,T,A,M,w),this.transform($,_,te,W,M,w);for(var L=0;L<M;L++){var U=T[L]*te[L]-A[L]*W[L];A[L]=T[L]*W[L]+A[L]*te[L],T[L]=U}return this.conjugate(T,A,M),this.transform(T,A,K,_,M,w),this.conjugate(K,_,M),this.normalize13b(K,M),R.negative=t.negative^g.negative,R.length=t.length+g.length,R._strip()},e.prototype.mul=function(t){var g=new e(null);return g.words=new Array(this.length+t.length),this.mulTo(t,g)},e.prototype.mulf=function(t){var g=new e(null);return g.words=new Array(this.length+t.length),D(this,t,g)},e.prototype.imul=function(t){return this.clone().mulTo(t,this)},e.prototype.imuln=function(t){var g=t<0;g&&(t=-t),u(typeof t=="number"),u(t<67108864);for(var R=0,M=0;M<this.length;M++){var w=(this.words[M]|0)*t,_=(w&67108863)+(R&67108863);R>>=26,R+=w/67108864|0,R+=_>>>26,this.words[M]=_&67108863}return R!==0&&(this.words[M]=R,this.length++),g?this.ineg():this},e.prototype.muln=function(t){return this.clone().imuln(t)},e.prototype.sqr=function(){return this.mul(this)},e.prototype.isqr=function(){return this.imul(this.clone())},e.prototype.pow=function(t){var g=S(t);if(g.length===0)return new e(1);for(var R=this,M=0;M<g.length&&g[M]===0;M++,R=R.sqr());if(++M<g.length)for(var w=R.sqr();M<g.length;M++,w=w.sqr())g[M]!==0&&(R=R.mul(w));return R},e.prototype.iushln=function(t){u(typeof t=="number"&&t>=0);var g=t%26,R=(t-g)/26,M=67108863>>>26-g<<26-g,w;if(g!==0){var _=0;for(w=0;w<this.length;w++){var B=this.words[w]&M,T=(this.words[w]|0)-B<<g;this.words[w]=T|_,_=B>>>26-g}_&&(this.words[w]=_,this.length++)}if(R!==0){for(w=this.length-1;w>=0;w--)this.words[w+R]=this.words[w];for(w=0;w<R;w++)this.words[w]=0;this.length+=R}return this._strip()},e.prototype.ishln=function(t){return u(this.negative===0),this.iushln(t)},e.prototype.iushrn=function(t,g,R){u(typeof t=="number"&&t>=0);var M;g?M=(g-g%26)/26:M=0;var w=t%26,_=Math.min((t-w)/26,this.length),B=67108863^67108863>>>w<<w,T=R;if(M-=_,M=Math.max(0,M),T){for(var A=0;A<_;A++)T.words[A]=this.words[A];T.length=_}if(_!==0)if(this.length>_)for(this.length-=_,A=0;A<this.length;A++)this.words[A]=this.words[A+_];else this.words[0]=0,this.length=1;var $=0;for(A=this.length-1;A>=0&&($!==0||A>=M);A--){var te=this.words[A]|0;this.words[A]=$<<26-w|te>>>w,$=te&B}return T&&$!==0&&(T.words[T.length++]=$),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},e.prototype.ishrn=function(t,g,R){return u(this.negative===0),this.iushrn(t,g,R)},e.prototype.shln=function(t){return this.clone().ishln(t)},e.prototype.ushln=function(t){return this.clone().iushln(t)},e.prototype.shrn=function(t){return this.clone().ishrn(t)},e.prototype.ushrn=function(t){return this.clone().iushrn(t)},e.prototype.testn=function(t){u(typeof t=="number"&&t>=0);var g=t%26,R=(t-g)/26,M=1<<g;return this.length<=R?!1:!!(this.words[R]&M)},e.prototype.imaskn=function(t){u(typeof t=="number"&&t>=0);var g=t%26,R=(t-g)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=R)return this;if(g!==0&&R++,this.length=Math.min(R,this.length),g!==0){var M=67108863^67108863>>>g<<g;this.words[this.length-1]&=M}return this._strip()},e.prototype.maskn=function(t){return this.clone().imaskn(t)},e.prototype.iaddn=function(t){return u(typeof t=="number"),u(t<67108864),t<0?this.isubn(-t):this.negative!==0?this.length===1&&(this.words[0]|0)<=t?(this.words[0]=t-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},e.prototype._iaddn=function(t){this.words[0]+=t;for(var g=0;g<this.length&&this.words[g]>=67108864;g++)this.words[g]-=67108864,g===this.length-1?this.words[g+1]=1:this.words[g+1]++;return this.length=Math.max(this.length,g+1),this},e.prototype.isubn=function(t){if(u(typeof t=="number"),u(t<67108864),t<0)return this.iaddn(-t);if(this.negative!==0)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var g=0;g<this.length&&this.words[g]<0;g++)this.words[g]+=67108864,this.words[g+1]-=1;return this._strip()},e.prototype.addn=function(t){return this.clone().iaddn(t)},e.prototype.subn=function(t){return this.clone().isubn(t)},e.prototype.iabs=function(){return this.negative=0,this},e.prototype.abs=function(){return this.clone().iabs()},e.prototype._ishlnsubmul=function(t,g,R){var M=t.length+R,w;this._expand(M);var _,B=0;for(w=0;w<t.length;w++){_=(this.words[w+R]|0)+B;var T=(t.words[w]|0)*g;_-=T&67108863,B=(_>>26)-(T/67108864|0),this.words[w+R]=_&67108863}for(;w<this.length-R;w++)_=(this.words[w+R]|0)+B,B=_>>26,this.words[w+R]=_&67108863;if(B===0)return this._strip();for(u(B===-1),B=0,w=0;w<this.length;w++)_=-(this.words[w]|0)+B,B=_>>26,this.words[w]=_&67108863;return this.negative=1,this._strip()},e.prototype._wordDiv=function(t,g){var R=this.length-t.length,M=this.clone(),w=t,_=w.words[w.length-1]|0;R=26-this._countBits(_),R!==0&&(w=w.ushln(R),M.iushln(R),_=w.words[w.length-1]|0);var B=M.length-w.length,T;if(g!=="mod"){T=new e(null),T.length=B+1,T.words=new Array(T.length);for(var A=0;A<T.length;A++)T.words[A]=0}var $=M.clone()._ishlnsubmul(w,1,B);$.negative===0&&(M=$,T&&(T.words[B]=1));for(var te=B-1;te>=0;te--){var W=(M.words[w.length+te]|0)*67108864+(M.words[w.length+te-1]|0);for(W=Math.min(W/_|0,67108863),M._ishlnsubmul(w,W,te);M.negative!==0;)W--,M.negative=0,M._ishlnsubmul(w,1,te),M.isZero()||(M.negative^=1);T&&(T.words[te]=W)}return T&&T._strip(),M._strip(),g!=="div"&&R!==0&&M.iushrn(R),{div:T||null,mod:M}},e.prototype.divmod=function(t,g,R){if(u(!t.isZero()),this.isZero())return{div:new e(0),mod:new e(0)};var M,w,_;return this.negative!==0&&t.negative===0?(_=this.neg().divmod(t,g),g!=="mod"&&(M=_.div.neg()),g!=="div"&&(w=_.mod.neg(),R&&w.negative!==0&&w.iadd(t)),{div:M,mod:w}):this.negative===0&&t.negative!==0?(_=this.divmod(t.neg(),g),g!=="mod"&&(M=_.div.neg()),{div:M,mod:_.mod}):this.negative&t.negative?(_=this.neg().divmod(t.neg(),g),g!=="div"&&(w=_.mod.neg(),R&&w.negative!==0&&w.isub(t)),{div:_.div,mod:w}):t.length>this.length||this.cmp(t)<0?{div:new e(0),mod:this}:t.length===1?g==="div"?{div:this.divn(t.words[0]),mod:null}:g==="mod"?{div:null,mod:new e(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new e(this.modrn(t.words[0]))}:this._wordDiv(t,g)},e.prototype.div=function(t){return this.divmod(t,"div",!1).div},e.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},e.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},e.prototype.divRound=function(t){var g=this.divmod(t);if(g.mod.isZero())return g.div;var R=g.div.negative!==0?g.mod.isub(t):g.mod,M=t.ushrn(1),w=t.andln(1),_=R.cmp(M);return _<0||w===1&&_===0?g.div:g.div.negative!==0?g.div.isubn(1):g.div.iaddn(1)},e.prototype.modrn=function(t){var g=t<0;g&&(t=-t),u(t<=67108863);for(var R=(1<<26)%t,M=0,w=this.length-1;w>=0;w--)M=(R*M+(this.words[w]|0))%t;return g?-M:M},e.prototype.modn=function(t){return this.modrn(t)},e.prototype.idivn=function(t){var g=t<0;g&&(t=-t),u(t<=67108863);for(var R=0,M=this.length-1;M>=0;M--){var w=(this.words[M]|0)+R*67108864;this.words[M]=w/t|0,R=w%t}return this._strip(),g?this.ineg():this},e.prototype.divn=function(t){return this.clone().idivn(t)},e.prototype.egcd=function(t){u(t.negative===0),u(!t.isZero());var g=this,R=t.clone();g.negative!==0?g=g.umod(t):g=g.clone();for(var M=new e(1),w=new e(0),_=new e(0),B=new e(1),T=0;g.isEven()&&R.isEven();)g.iushrn(1),R.iushrn(1),++T;for(var A=R.clone(),$=g.clone();!g.isZero();){for(var te=0,W=1;!(g.words[0]&W)&&te<26;++te,W<<=1);if(te>0)for(g.iushrn(te);te-- >0;)(M.isOdd()||w.isOdd())&&(M.iadd(A),w.isub($)),M.iushrn(1),w.iushrn(1);for(var K=0,L=1;!(R.words[0]&L)&&K<26;++K,L<<=1);if(K>0)for(R.iushrn(K);K-- >0;)(_.isOdd()||B.isOdd())&&(_.iadd(A),B.isub($)),_.iushrn(1),B.iushrn(1);g.cmp(R)>=0?(g.isub(R),M.isub(_),w.isub(B)):(R.isub(g),_.isub(M),B.isub(w))}return{a:_,b:B,gcd:R.iushln(T)}},e.prototype._invmp=function(t){u(t.negative===0),u(!t.isZero());var g=this,R=t.clone();g.negative!==0?g=g.umod(t):g=g.clone();for(var M=new e(1),w=new e(0),_=R.clone();g.cmpn(1)>0&&R.cmpn(1)>0;){for(var B=0,T=1;!(g.words[0]&T)&&B<26;++B,T<<=1);if(B>0)for(g.iushrn(B);B-- >0;)M.isOdd()&&M.iadd(_),M.iushrn(1);for(var A=0,$=1;!(R.words[0]&$)&&A<26;++A,$<<=1);if(A>0)for(R.iushrn(A);A-- >0;)w.isOdd()&&w.iadd(_),w.iushrn(1);g.cmp(R)>=0?(g.isub(R),M.isub(w)):(R.isub(g),w.isub(M))}var te;return g.cmpn(1)===0?te=M:te=w,te.cmpn(0)<0&&te.iadd(t),te},e.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var g=this.clone(),R=t.clone();g.negative=0,R.negative=0;for(var M=0;g.isEven()&&R.isEven();M++)g.iushrn(1),R.iushrn(1);do{for(;g.isEven();)g.iushrn(1);for(;R.isEven();)R.iushrn(1);var w=g.cmp(R);if(w<0){var _=g;g=R,R=_}else if(w===0||R.cmpn(1)===0)break;g.isub(R)}while(!0);return R.iushln(M)},e.prototype.invm=function(t){return this.egcd(t).a.umod(t)},e.prototype.isEven=function(){return(this.words[0]&1)===0},e.prototype.isOdd=function(){return(this.words[0]&1)===1},e.prototype.andln=function(t){return this.words[0]&t},e.prototype.bincn=function(t){u(typeof t=="number");var g=t%26,R=(t-g)/26,M=1<<g;if(this.length<=R)return this._expand(R+1),this.words[R]|=M,this;for(var w=M,_=R;w!==0&&_<this.length;_++){var B=this.words[_]|0;B+=w,w=B>>>26,B&=67108863,this.words[_]=B}return w!==0&&(this.words[_]=w,this.length++),this},e.prototype.isZero=function(){return this.length===1&&this.words[0]===0},e.prototype.cmpn=function(t){var g=t<0;if(this.negative!==0&&!g)return-1;if(this.negative===0&&g)return 1;this._strip();var R;if(this.length>1)R=1;else{g&&(t=-t),u(t<=67108863,"Number is too big");var M=this.words[0]|0;R=M===t?0:M<t?-1:1}return this.negative!==0?-R|0:R},e.prototype.cmp=function(t){if(this.negative!==0&&t.negative===0)return-1;if(this.negative===0&&t.negative!==0)return 1;var g=this.ucmp(t);return this.negative!==0?-g|0:g},e.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var g=0,R=this.length-1;R>=0;R--){var M=this.words[R]|0,w=t.words[R]|0;if(M!==w){M<w?g=-1:M>w&&(g=1);break}}return g},e.prototype.gtn=function(t){return this.cmpn(t)===1},e.prototype.gt=function(t){return this.cmp(t)===1},e.prototype.gten=function(t){return this.cmpn(t)>=0},e.prototype.gte=function(t){return this.cmp(t)>=0},e.prototype.ltn=function(t){return this.cmpn(t)===-1},e.prototype.lt=function(t){return this.cmp(t)===-1},e.prototype.lten=function(t){return this.cmpn(t)<=0},e.prototype.lte=function(t){return this.cmp(t)<=0},e.prototype.eqn=function(t){return this.cmpn(t)===0},e.prototype.eq=function(t){return this.cmp(t)===0},e.red=function(t){return new m(t)},e.prototype.toRed=function(t){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),t.convertTo(this)._forceRed(t)},e.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},e.prototype._forceRed=function(t){return this.red=t,this},e.prototype.forceRed=function(t){return u(!this.red,"Already a number in reduction context"),this._forceRed(t)},e.prototype.redAdd=function(t){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},e.prototype.redIAdd=function(t){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},e.prototype.redSub=function(t){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},e.prototype.redISub=function(t){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},e.prototype.redShl=function(t){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},e.prototype.redMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},e.prototype.redIMul=function(t){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},e.prototype.redSqr=function(){return u(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},e.prototype.redISqr=function(){return u(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},e.prototype.redSqrt=function(){return u(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},e.prototype.redInvm=function(){return u(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},e.prototype.redNeg=function(){return u(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},e.prototype.redPow=function(t){return u(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var F={k256:null,p224:null,p192:null,p25519:null};function z(E,t){this.name=E,this.p=new e(t,16),this.n=this.p.bitLength(),this.k=new e(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}z.prototype._tmp=function(){var t=new e(null);return t.words=new Array(Math.ceil(this.n/13)),t},z.prototype.ireduce=function(t){var g=t,R;do this.split(g,this.tmp),g=this.imulK(g),g=g.iadd(this.tmp),R=g.bitLength();while(R>this.n);var M=R<this.n?-1:g.ucmp(this.p);return M===0?(g.words[0]=0,g.length=1):M>0?g.isub(this.p):g.strip!==void 0?g.strip():g._strip(),g},z.prototype.split=function(t,g){t.iushrn(this.n,0,g)},z.prototype.imulK=function(t){return t.imul(this.k)};function G(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}y(G,z),G.prototype.split=function(t,g){for(var R=4194303,M=Math.min(t.length,9),w=0;w<M;w++)g.words[w]=t.words[w];if(g.length=M,t.length<=9){t.words[0]=0,t.length=1;return}var _=t.words[9];for(g.words[g.length++]=_&R,w=10;w<t.length;w++){var B=t.words[w]|0;t.words[w-10]=(B&R)<<4|_>>>22,_=B}_>>>=22,t.words[w-10]=_,_===0&&t.length>10?t.length-=10:t.length-=9},G.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var g=0,R=0;R<t.length;R++){var M=t.words[R]|0;g+=M*977,t.words[R]=g&67108863,g=M*64+(g/67108864|0)}return t.words[t.length-1]===0&&(t.length--,t.words[t.length-1]===0&&t.length--),t};function Z(){z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}y(Z,z);function re(){z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}y(re,z);function C(){z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}y(C,z),C.prototype.imulK=function(t){for(var g=0,R=0;R<t.length;R++){var M=(t.words[R]|0)*19+g,w=M&67108863;M>>>=26,t.words[R]=w,g=M}return g!==0&&(t.words[t.length++]=g),t},e._prime=function(t){if(F[t])return F[t];var g;if(t==="k256")g=new G;else if(t==="p224")g=new Z;else if(t==="p192")g=new re;else if(t==="p25519")g=new C;else throw new Error("Unknown prime "+t);return F[t]=g,g};function m(E){if(typeof E=="string"){var t=e._prime(E);this.m=t.p,this.prime=t}else u(E.gtn(1),"modulus must be greater than 1"),this.m=E,this.prime=null}m.prototype._verify1=function(t){u(t.negative===0,"red works only with positives"),u(t.red,"red works only with red numbers")},m.prototype._verify2=function(t,g){u((t.negative|g.negative)===0,"red works only with positives"),u(t.red&&t.red===g.red,"red works only with red numbers")},m.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(o(t,t.umod(this.m)._forceRed(this)),t)},m.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},m.prototype.add=function(t,g){this._verify2(t,g);var R=t.add(g);return R.cmp(this.m)>=0&&R.isub(this.m),R._forceRed(this)},m.prototype.iadd=function(t,g){this._verify2(t,g);var R=t.iadd(g);return R.cmp(this.m)>=0&&R.isub(this.m),R},m.prototype.sub=function(t,g){this._verify2(t,g);var R=t.sub(g);return R.cmpn(0)<0&&R.iadd(this.m),R._forceRed(this)},m.prototype.isub=function(t,g){this._verify2(t,g);var R=t.isub(g);return R.cmpn(0)<0&&R.iadd(this.m),R},m.prototype.shl=function(t,g){return this._verify1(t),this.imod(t.ushln(g))},m.prototype.imul=function(t,g){return this._verify2(t,g),this.imod(t.imul(g))},m.prototype.mul=function(t,g){return this._verify2(t,g),this.imod(t.mul(g))},m.prototype.isqr=function(t){return this.imul(t,t.clone())},m.prototype.sqr=function(t){return this.mul(t,t)},m.prototype.sqrt=function(t){if(t.isZero())return t.clone();var g=this.m.andln(3);if(u(g%2===1),g===3){var R=this.m.add(new e(1)).iushrn(2);return this.pow(t,R)}for(var M=this.m.subn(1),w=0;!M.isZero()&&M.andln(1)===0;)w++,M.iushrn(1);u(!M.isZero());var _=new e(1).toRed(this),B=_.redNeg(),T=this.m.subn(1).iushrn(1),A=this.m.bitLength();for(A=new e(2*A*A).toRed(this);this.pow(A,T).cmp(B)!==0;)A.redIAdd(B);for(var $=this.pow(A,M),te=this.pow(t,M.addn(1).iushrn(1)),W=this.pow(t,M),K=w;W.cmp(_)!==0;){for(var L=W,U=0;L.cmp(_)!==0;U++)L=L.redSqr();u(U<K);var X=this.pow($,new e(1).iushln(K-U-1));te=te.redMul(X),$=X.redSqr(),W=W.redMul($),K=U}return te},m.prototype.invm=function(t){var g=t._invmp(this.m);return g.negative!==0?(g.negative=0,this.imod(g).redNeg()):this.imod(g)},m.prototype.pow=function(t,g){if(g.isZero())return new e(1).toRed(this);if(g.cmpn(1)===0)return t.clone();var R=4,M=new Array(1<<R);M[0]=new e(1).toRed(this),M[1]=t;for(var w=2;w<M.length;w++)M[w]=this.mul(M[w-1],t);var _=M[0],B=0,T=0,A=g.bitLength()%26;for(A===0&&(A=26),w=g.length-1;w>=0;w--){for(var $=g.words[w],te=A-1;te>=0;te--){var W=$>>te&1;if(_!==M[0]&&(_=this.sqr(_)),W===0&&B===0){T=0;continue}B<<=1,B|=W,T++,!(T!==R&&(w!==0||te!==0))&&(_=this.mul(_,M[B]),T=0,B=0)}A=26}return _},m.prototype.convertTo=function(t){var g=t.umod(this.m);return g===t?g.clone():g},m.prototype.convertFrom=function(t){var g=t.clone();return g.red=null,g},e.mont=function(t){return new O(t)};function O(E){m.call(this,E),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new e(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)}y(O,m),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var g=this.imod(t.mul(this.rinv));return g.red=null,g},O.prototype.imul=function(t,g){if(t.isZero()||g.isZero())return t.words[0]=0,t.length=1,t;var R=t.imul(g),M=R.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=R.isub(M).iushrn(this.shift),_=w;return w.cmp(this.m)>=0?_=w.isub(this.m):w.cmpn(0)<0&&(_=w.iadd(this.m)),_._forceRed(this)},O.prototype.mul=function(t,g){if(t.isZero()||g.isZero())return new e(0)._forceRed(this);var R=t.mul(g),M=R.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=R.isub(M).iushrn(this.shift),_=w;return w.cmp(this.m)>=0?_=w.isub(this.m):w.cmpn(0)<0&&(_=w.iadd(this.m)),_._forceRed(this)},O.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})(typeof l>"u"||l,n)}),require_browserify_rsa=__commonJSMin((n,l)=>{var a=require_bn(),d=require_browser$11(),u=require_safe_buffer$1().Buffer;function y(p){var h=p.modulus.byteLength(),f;do f=new a(d(h));while(f.cmp(p.modulus)>=0||!f.umod(p.prime1)||!f.umod(p.prime2));return f}function e(p){var h=y(p);return{blinder:h.toRed(a.mont(p.modulus)).redPow(new a(p.publicExponent)).fromRed(),unblinder:h.invm(p.modulus)}}function s(p,h){var f=e(h),o=h.modulus.byteLength(),r=new a(p).mul(f.blinder).umod(h.modulus),c=r.toRed(a.mont(h.prime1)),i=r.toRed(a.mont(h.prime2)),v=h.coefficient,b=h.prime1,S=h.prime2,q=c.redPow(h.exponent1).fromRed(),I=i.redPow(h.exponent2).fromRed(),k=q.isub(I).imul(v).umod(b).imul(S);return I.iadd(k).imul(f.unblinder).umod(h.modulus).toArrayLike(u,"be",o)}s.getr=y,l.exports=s}),package_exports=__exportAll({author:()=>author,bugs:()=>bugs,default:()=>package_default,dependencies:()=>dependencies,description:()=>description,devDependencies:()=>devDependencies,files:()=>files,homepage:()=>homepage,keywords:()=>keywords,license:()=>"MIT",main:()=>main,name:()=>name,repository:()=>repository,scripts:()=>scripts,version:()=>version}),name,version,description,main,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies,package_default,init_package=__esmMin(()=>
16{name="elliptic",version="6.5.7",description="EC cryptography",main="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"[email protected]:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny <[email protected]>",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},package_default={name,version,description,main,files,scripts,repository,keywords,author,license:"MIT",bugs,homepage,devDependencies,dependencies}}),require_utils$2=__commonJSMin(n=>{var l=n;function a(y,e){if(Array.isArray(y))return y.slice();if(!y)return[];var s=[];if(typeof y!="string"){for(var p=0;p<y.length;p++)s[p]=y[p]|0;return s}if(e==="hex"){y=y.replace(/[^a-z0-9]+/gi,""),y.length%2!==0&&(y="0"+y);for(var p=0;p<y.length;p+=2)s.push(parseInt(y[p]+y[p+1],16))}else for(var p=0;p<y.length;p++){var h=y.charCodeAt(p),f=h>>8,o=h&255;f?s.push(f,o):s.push(o)}return s}l.toArray=a;function d(y){return y.length===1?"0"+y:y}l.zero2=d;function u(y){for(var e="",s=0;s<y.length;s++)e+=d(y[s].toString(16));return e}l.toHex=u,l.encode=function(e,s){return s==="hex"?u(e):e}}),require_utils$1=__commonJSMin(n=>{var l=n,a=require_bn$1(),d=require_minimalistic_assert(),u=require_utils$2();l.assert=d,l.toArray=u.toArray,l.zero2=u.zero2,l.toHex=u.toHex,l.encode=u.encode;function y(f,o,r){var c=new Array(Math.max(f.bitLength(),r)+1),i;for(i=0;i<c.length;i+=1)c[i]=0;var v=1<<o+1,b=f.clone();for(i=0;i<c.length;i++){var S,q=b.andln(v-1);b.isOdd()?(q>(v>>1)-1?S=(v>>1)-q:S=q,b.isubn(S)):S=0,c[i]=S,b.iushrn(1)}return c}l.getNAF=y;function e(f,o){var r=[[],[]];f=f.clone(),o=o.clone();for(var c=0,i=0,v;f.cmpn(-c)>0||o.cmpn(-i)>0;){var b=f.andln(3)+c&3,S=o.andln(3)+i&3;b===3&&(b=-1),S===3&&(S=-1);var q;b&1?(v=f.andln(7)+c&7,(v===3||v===5)&&S===2?q=-b:q=b):q=0,r[0].push(q);var I;S&1?(v=o.andln(7)+i&7,(v===3||v===5)&&b===2?I=-S:I=S):I=0,r[1].push(I),2*c===q+1&&(c=1-c),2*i===I+1&&(i=1-i),f.iushrn(1),o.iushrn(1)}return r}l.getJSF=e;function s(f,o,r){var c="_"+o;f.prototype[o]=function(){return this[c]!==void 0?this[c]:this[c]=r.call(this)}}l.cachedProperty=s;function p(f){return typeof f=="string"?l.toArray(f,"hex"):f}l.parseBytes=p;function h(f){return new a(f,"hex","le")}l.intFromLE=h}),require_base$1=__commonJSMin((n,l)=>{var a=require_bn$1(),d=require_utils$1(),u=d.getNAF,y=d.getJSF,e=d.assert;function s(h,f){this.type=h,this.p=new a(f.p,16),this.red=f.prime?a.red(f.prime):a.mont(this.p),this.zero=new a(0).toRed(this.red),this.one=new a(1).toRed(this.red),this.two=new a(2).toRed(this.red),this.n=f.n&&new a(f.n,16),this.g=f.g&&this.pointFromJSON(f.g,f.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 o=this.n&&this.p.div(this.n);!o||o.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}l.exports=s,s.prototype.point=function(){throw new Error("Not implemented")},s.prototype.validate=function(){throw new Error("Not implemented")},s.prototype._fixedNafMul=function(f,o){e(f.precomputed);var r=f._getDoubles(),c=u(o,1,this._bitLength),i=(1<<r.step+1)-(r.step%2===0?2:1);i/=3;var v=[],b,S;for(b=0;b<c.length;b+=r.step){S=0;for(var q=b+r.step-1;q>=b;q--)S=(S<<1)+c[q];v.push(S)}for(var I=this.jpoint(null,null,null),k=this.jpoint(null,null,null),D=i;D>0;D--){for(b=0;b<v.length;b++)S=v[b],S===D?k=k.mixedAdd(r.points[b]):S===-D&&(k=k.mixedAdd(r.points[b].neg()));I=I.add(k)}return I.toP()},s.prototype._wnafMul=function(f,o){var r=4,c=f._getNAFPoints(r);r=c.wnd;for(var i=c.points,v=u(o,r,this._bitLength),b=this.jpoint(null,null,null),S=v.length-1;S>=0;S--){for(var q=0;S>=0&&v[S]===0;S--)q++;if(S>=0&&q++,b=b.dblp(q),S<0)break;var I=v[S];e(I!==0),f.type==="affine"?I>0?b=b.mixedAdd(i[I-1>>1]):b=b.mixedAdd(i[-I-1>>1].neg()):I>0?b=b.add(i[I-1>>1]):b=b.add(i[-I-1>>1].neg())}return f.type==="affine"?b.toP():b},s.prototype._wnafMulAdd=function(f,o,r,c,i){var v=this._wnafT1,b=this._wnafT2,S=this._wnafT3,q=0,I,k,D;for(I=0;I<c;I++){D=o[I];var N=D._getNAFPoints(f);v[I]=N.wnd,b[I]=N.points}for(I=c-1;I>=1;I-=2){var F=I-1,z=I;if(v[F]!==1||v[z]!==1){S[F]=u(r[F],v[F],this._bitLength),S[z]=u(r[z],v[z],this._bitLength),q=Math.max(S[F].length,q),q=Math.max(S[z].length,q);continue}var G=[o[F],null,null,o[z]];
16o[F].y.cmp(o[z].y)===0?(G[1]=o[F].add(o[z]),G[2]=o[F].toJ().mixedAdd(o[z].neg())):o[F].y.cmp(o[z].y.redNeg())===0?(G[1]=o[F].toJ().mixedAdd(o[z]),G[2]=o[F].add(o[z].neg())):(G[1]=o[F].toJ().mixedAdd(o[z]),G[2]=o[F].toJ().mixedAdd(o[z].neg()));var Z=[-3,-1,-5,-7,0,7,5,1,3],re=y(r[F],r[z]);for(q=Math.max(re[0].length,q),S[F]=new Array(q),S[z]=new Array(q),k=0;k<q;k++){var C=re[0][k]|0,m=re[1][k]|0;S[F][k]=Z[(C+1)*3+(m+1)],S[z][k]=0,b[F]=G}}var O=this.jpoint(null,null,null),E=this._wnafT4;for(I=q;I>=0;I--){for(var t=0;I>=0;){var g=!0;for(k=0;k<c;k++)E[k]=S[k][I]|0,E[k]!==0&&(g=!1);if(!g)break;t++,I--}if(I>=0&&t++,O=O.dblp(t),I<0)break;for(k=0;k<c;k++){var R=E[k];R!==0&&(R>0?D=b[k][R-1>>1]:R<0&&(D=b[k][-R-1>>1].neg()),D.type==="affine"?O=O.mixedAdd(D):O=O.add(D))}}for(I=0;I<c;I++)b[I]=null;return i?O:O.toP()};function p(h,f){this.curve=h,this.type=f,this.precomputed=null}s.BasePoint=p,p.prototype.eq=function(){throw new Error("Not implemented")},p.prototype.validate=function(){return this.curve.validate(this)},s.prototype.decodePoint=function(f,o){f=d.toArray(f,o);var r=this.p.byteLength();if((f[0]===4||f[0]===6||f[0]===7)&&f.length-1===2*r)return f[0]===6?e(f[f.length-1]%2===0):f[0]===7&&e(f[f.length-1]%2===1),this.point(f.slice(1,1+r),f.slice(1+r,1+2*r));if((f[0]===2||f[0]===3)&&f.length-1===r)return this.pointFromX(f.slice(1,1+r),f[0]===3);throw new Error("Unknown point format")},p.prototype.encodeCompressed=function(f){return this.encode(f,!0)},p.prototype._encode=function(f){var o=this.curve.p.byteLength(),r=this.getX().toArray("be",o);return f?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",o))},p.prototype.encode=function(f,o){return d.encode(this._encode(o),f)},p.prototype.precompute=function(f){if(this.precomputed)return this;var o={doubles:null,naf:null,beta:null};return o.naf=this._getNAFPoints(8),o.doubles=this._getDoubles(4,f),o.beta=this._getBeta(),this.precomputed=o,this},p.prototype._hasDoubles=function(f){if(!this.precomputed)return!1;var o=this.precomputed.doubles;return o?o.points.length>=Math.ceil((f.bitLength()+1)/o.step):!1},p.prototype._getDoubles=function(f,o){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],c=this,i=0;i<o;i+=f){for(var v=0;v<f;v++)c=c.dbl();r.push(c)}return{step:f,points:r}},p.prototype._getNAFPoints=function(f){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var o=[this],r=(1<<f)-1,c=r===1?null:this.dbl(),i=1;i<r;i++)o[i]=o[i-1].add(c);return{wnd:f,points:o}},p.prototype._getBeta=function(){return null},p.prototype.dblp=function(f){for(var o=this,r=0;r<f;r++)o=o.dbl();return o}}),require_short=__commonJSMin((n,l)=>{var a=require_utils$1(),d=require_bn$1(),u=require_inherits_browser(),y=require_base$1(),e=a.assert;function s(f){y.call(this,"short",f),this.a=new d(f.a,16).toRed(this.red),this.b=new d(f.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(f),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}u(s,y),l.exports=s,s.prototype._getEndomorphism=function(o){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var r,c;if(o.beta)r=new d(o.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);r=i[0].cmp(i[1])<0?i[0]:i[1],r=r.toRed(this.red)}if(o.lambda)c=new d(o.lambda,16);else{var v=this._getEndoRoots(this.n);this.g.mul(v[0]).x.cmp(this.g.x.redMul(r))===0?c=v[0]:(c=v[1],e(this.g.mul(c).x.cmp(this.g.x.redMul(r))===0))}var b;return o.basis?b=o.basis.map(function(S){return{a:new d(S.a,16),b:new d(S.b,16)}}):b=this._getEndoBasis(c),{beta:r,lambda:c,basis:b}}},s.prototype._getEndoRoots=function(o){var r=o===this.p?this.red:d.mont(o),c=new d(2).toRed(r).redInvm(),i=c.redNeg(),v=new d(3).toRed(r).redNeg().redSqrt().redMul(c);return[i.redAdd(v).fromRed(),i.redSub(v).fromRed()]},s.prototype._getEndoBasis=function(o){for(var r=this.n.ushrn(Math.floor(this.n.bitLength()/2)),c=o,i=this.n.clone(),v=new d(1),b=new d(0),S=new d(0),q=new d(1),I,k,D,N,F,z,G,Z=0,re,C;c.cmpn(0)!==0;){var m=i.div(c);re=i.sub(m.mul(c)),C=S.sub(m.mul(v));var O=q.sub(m.mul(b));if(!D&&re.cmp(r)<0)I=G.neg(),k=v,D=re.neg(),N=C;else if(D&&++Z===2)break;G=re,i=c,c=re,S=v,v=C,q=b,b=O}F=re.neg(),z=C;var E=D.sqr().add(N.sqr());return F.sqr().add(z.sqr()).cmp(E)>=0&&(F=I,z=k),D.negative&&(D=D.neg(),N=N.neg()),F.negative&&(F=F.neg(),z=z.neg()),[{a:D,b:N},{a:F,b:z}]},s.prototype._endoSplit=function(o){var r=this.endo.basis,c=r[0],i=r[1],v=i.b.mul(o).divRound(this.n),b=c.b.neg().mul(o).divRound(this.n),S=v.mul(c.a),q=b.mul(i.a),I=v.mul(c.b),k=b.mul(i.b);return{k1:o.sub(S).sub(q),k2:I.add(k).neg()}},s.prototype.pointFromX=function(o,r){o=new d(o,16),o.red||(o=o.toRed(this.red));var c=o.redSqr().redMul(o).redIAdd(o.redMul(this.a)).redIAdd(this.b),i=c.redSqrt();if(i.redSqr().redSub(c).cmp(this.zero)!==0)throw new Error("invalid point");var v=i.fromRed().isOdd();return(r&&!v||!r&&v)&&(i=i.redNeg()),this.point(o,i)}
16,s.prototype.validate=function(o){if(o.inf)return!0;var r=o.x,c=o.y,i=this.a.redMul(r),v=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return c.redSqr().redISub(v).cmpn(0)===0},s.prototype._endoWnafMulAdd=function(o,r,c){for(var i=this._endoWnafT1,v=this._endoWnafT2,b=0;b<o.length;b++){var S=this._endoSplit(r[b]),q=o[b],I=q._getBeta();S.k1.negative&&(S.k1.ineg(),q=q.neg(!0)),S.k2.negative&&(S.k2.ineg(),I=I.neg(!0)),i[b*2]=q,i[b*2+1]=I,v[b*2]=S.k1,v[b*2+1]=S.k2}for(var k=this._wnafMulAdd(1,i,v,b*2,c),D=0;D<b*2;D++)i[D]=null,v[D]=null;return k};function p(f,o,r,c){y.BasePoint.call(this,f,"affine"),o===null&&r===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new d(o,16),this.y=new d(r,16),c&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}u(p,y.BasePoint),s.prototype.point=function(o,r,c){return new p(this,o,r,c)},s.prototype.pointFromJSON=function(o,r){return p.fromJSON(this,o,r)},p.prototype._getBeta=function(){if(this.curve.endo){var o=this.precomputed;if(o&&o.beta)return o.beta;var r=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(o){var c=this.curve,i=function(v){return c.point(v.x.redMul(c.endo.beta),v.y)};o.beta=r,r.precomputed={beta:null,naf:o.naf&&{wnd:o.naf.wnd,points:o.naf.points.map(i)},doubles:o.doubles&&{step:o.doubles.step,points:o.doubles.points.map(i)}}}return r}},p.prototype.toJSON=function(){return this.precomputed?[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)}}]:[this.x,this.y]},p.fromJSON=function(o,r,c){typeof r=="string"&&(r=JSON.parse(r));var i=o.point(r[0],r[1],c);if(!r[2])return i;function v(S){return o.point(S[0],S[1],c)}var b=r[2];return i.precomputed={beta:null,doubles:b.doubles&&{step:b.doubles.step,points:[i].concat(b.doubles.points.map(v))},naf:b.naf&&{wnd:b.naf.wnd,points:[i].concat(b.naf.points.map(v))}},i},p.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},p.prototype.isInfinity=function(){return this.inf},p.prototype.add=function(o){if(this.inf)return o;if(o.inf)return this;if(this.eq(o))return this.dbl();if(this.neg().eq(o))return this.curve.point(null,null);if(this.x.cmp(o.x)===0)return this.curve.point(null,null);var r=this.y.redSub(o.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(o.x).redInvm()));var c=r.redSqr().redISub(this.x).redISub(o.x),i=r.redMul(this.x.redSub(c)).redISub(this.y);return this.curve.point(c,i)},p.prototype.dbl=function(){if(this.inf)return this;var o=this.y.redAdd(this.y);if(o.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,c=this.x.redSqr(),i=o.redInvm(),v=c.redAdd(c).redIAdd(c).redIAdd(r).redMul(i),b=v.redSqr().redISub(this.x.redAdd(this.x)),S=v.redMul(this.x.redSub(b)).redISub(this.y);return this.curve.point(b,S)},p.prototype.getX=function(){return this.x.fromRed()},p.prototype.getY=function(){return this.y.fromRed()},p.prototype.mul=function(o){return o=new d(o,16),this.isInfinity()?this:this._hasDoubles(o)?this.curve._fixedNafMul(this,o):this.curve.endo?this.curve._endoWnafMulAdd([this],[o]):this.curve._wnafMul(this,o)},p.prototype.mulAdd=function(o,r,c){var i=[this,r],v=[o,c];return this.curve.endo?this.curve._endoWnafMulAdd(i,v):this.curve._wnafMulAdd(1,i,v,2)},p.prototype.jmulAdd=function(o,r,c){var i=[this,r],v=[o,c];return this.curve.endo?this.curve._endoWnafMulAdd(i,v,!0):this.curve._wnafMulAdd(1,i,v,2,!0)},p.prototype.eq=function(o){return this===o||this.inf===o.inf&&(this.inf||this.x.cmp(o.x)===0&&this.y.cmp(o.y)===0)},p.prototype.neg=function(o){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(o&&this.precomputed){var c=this.precomputed,i=function(v){return v.neg()};r.precomputed={naf:c.naf&&{wnd:c.naf.wnd,points:c.naf.points.map(i)},doubles:c.doubles&&{step:c.doubles.step,points:c.doubles.points.map(i)}}}return r},p.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)};function h(f,o,r,c){y.BasePoint.call(this,f,"jacobian"),o===null&&r===null&&c===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new d(0)):(this.x=new d(o,16),this.y=new d(r,16),this.z=new d(c,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}u(h,y.BasePoint),s.prototype.jpoint=function(o,r,c){return new h(this,o,r,c)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var o=this.z.redInvm(),r=o.redSqr(),c=this.x.redMul(r),i=this.y.redMul(r).redMul(o);return this.curve.point(c,i)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)}
vendor: 4,464 bytes, line 16
16,h.prototype.add=function(o){if(this.isInfinity())return o;if(o.isInfinity())return this;var r=o.z.redSqr(),c=this.z.redSqr(),i=this.x.redMul(r),v=o.x.redMul(c),b=this.y.redMul(r.redMul(o.z)),S=o.y.redMul(c.redMul(this.z)),q=i.redSub(v),I=b.redSub(S);if(q.cmpn(0)===0)return I.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var k=q.redSqr(),D=k.redMul(q),N=i.redMul(k),F=I.redSqr().redIAdd(D).redISub(N).redISub(N),z=I.redMul(N.redISub(F)).redISub(b.redMul(D)),G=this.z.redMul(o.z).redMul(q);return this.curve.jpoint(F,z,G)},h.prototype.mixedAdd=function(o){if(this.isInfinity())return o.toJ();if(o.isInfinity())return this;var r=this.z.redSqr(),c=this.x,i=o.x.redMul(r),v=this.y,b=o.y.redMul(r).redMul(this.z),S=c.redSub(i),q=v.redSub(b);if(S.cmpn(0)===0)return q.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var I=S.redSqr(),k=I.redMul(S),D=c.redMul(I),N=q.redSqr().redIAdd(k).redISub(D).redISub(D),F=q.redMul(D.redISub(N)).redISub(v.redMul(k)),z=this.z.redMul(S);return this.curve.jpoint(N,F,z)},h.prototype.dblp=function(o){if(o===0)return this;if(this.isInfinity())return this;if(!o)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var c=this;for(r=0;r<o;r++)c=c.dbl();return c}var i=this.curve.a,v=this.curve.tinv,b=this.x,S=this.y,q=this.z,I=q.redSqr().redSqr(),k=S.redAdd(S);for(r=0;r<o;r++){var D=b.redSqr(),N=k.redSqr(),F=N.redSqr(),z=D.redAdd(D).redIAdd(D).redIAdd(i.redMul(I)),G=b.redMul(N),Z=z.redSqr().redISub(G.redAdd(G)),re=G.redISub(Z),C=z.redMul(re);C=C.redIAdd(C).redISub(F);var m=k.redMul(q);r+1<o&&(I=I.redMul(F)),b=Z,q=m,k=C}return this.curve.jpoint(b,k.redMul(v),q)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},h.prototype._zeroDbl=function(){var o,r,c;if(this.zOne){var i=this.x.redSqr(),v=this.y.redSqr(),b=v.redSqr(),S=this.x.redAdd(v).redSqr().redISub(i).redISub(b);S=S.redIAdd(S);var q=i.redAdd(i).redIAdd(i),I=q.redSqr().redISub(S).redISub(S),k=b.redIAdd(b);k=k.redIAdd(k),k=k.redIAdd(k),o=I,r=q.redMul(S.redISub(I)).redISub(k),c=this.y.redAdd(this.y)}else{var D=this.x.redSqr(),N=this.y.redSqr(),F=N.redSqr(),z=this.x.redAdd(N).redSqr().redISub(D).redISub(F);z=z.redIAdd(z);var G=D.redAdd(D).redIAdd(D),Z=G.redSqr(),re=F.redIAdd(F);re=re.redIAdd(re),re=re.redIAdd(re),o=Z.redISub(z).redISub(z),r=G.redMul(z.redISub(o)).redISub(re),c=this.y.redMul(this.z),c=c.redIAdd(c)}return this.curve.jpoint(o,r,c)},h.prototype._threeDbl=function(){var o,r,c;if(this.zOne){var i=this.x.redSqr(),v=this.y.redSqr(),b=v.redSqr(),S=this.x.redAdd(v).redSqr().redISub(i).redISub(b);S=S.redIAdd(S);var q=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),I=q.redSqr().redISub(S).redISub(S);o=I;var k=b.redIAdd(b);k=k.redIAdd(k),k=k.redIAdd(k),r=q.redMul(S.redISub(I)).redISub(k),c=this.y.redAdd(this.y)}else{var D=this.z.redSqr(),N=this.y.redSqr(),F=this.x.redMul(N),z=this.x.redSub(D).redMul(this.x.redAdd(D));z=z.redAdd(z).redIAdd(z);var G=F.redIAdd(F);G=G.redIAdd(G);var Z=G.redAdd(G);o=z.redSqr().redISub(Z),c=this.y.redAdd(this.z).redSqr().redISub(N).redISub(D);var re=N.redSqr();re=re.redIAdd(re),re=re.redIAdd(re),re=re.redIAdd(re),r=z.redMul(G.redISub(o)).redISub(re)}return this.curve.jpoint(o,r,c)},h.prototype._dbl=function(){var o=this.curve.a,r=this.x,c=this.y,i=this.z,v=i.redSqr().redSqr(),b=r.redSqr(),S=c.redSqr(),q=b.redAdd(b).redIAdd(b).redIAdd(o.redMul(v)),I=r.redAdd(r);I=I.redIAdd(I);var k=I.redMul(S),D=q.redSqr().redISub(k.redAdd(k)),N=k.redISub(D),F=S.redSqr();F=F.redIAdd(F),F=F.redIAdd(F),F=F.redIAdd(F);var z=q.redMul(N).redISub(F),G=c.redAdd(c).redMul(i);return this.curve.jpoint(D,z,G)},h.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var o=this.x.redSqr(),r=this.y.redSqr(),c=this.z.redSqr(),i=r.redSqr(),v=o.redAdd(o).redIAdd(o),b=v.redSqr(),S=this.x.redAdd(r).redSqr().redISub(o).redISub(i);S=S.redIAdd(S),S=S.redAdd(S).redIAdd(S),S=S.redISub(b);var q=S.redSqr(),I=i.redIAdd(i);I=I.redIAdd(I),I=I.redIAdd(I),I=I.redIAdd(I);var k=v.redIAdd(S).redSqr().redISub(b).redISub(q).redISub(I),D=r.redMul(k);D=D.redIAdd(D),D=D.redIAdd(D);var N=this.x.redMul(q).redISub(D);N=N.redIAdd(N),N=N.redIAdd(N);var F=this.y.redMul(k.redMul(I.redISub(k)).redISub(S.redMul(q)));F=F.redIAdd(F),F=F.redIAdd(F),F=F.redIAdd(F);var z=this.z.redAdd(S).redSqr().redISub(c).redISub(q);return this.curve.jpoint(N,F,z)},h.prototype.mul=function(o,r){return o=new d(o,r),this.curve._wnafMul(this,o)}
16,h.prototype.eq=function(o){if(o.type==="affine")return this.eq(o.toJ());if(this===o)return!0;var r=this.z.redSqr(),c=o.z.redSqr();if(this.x.redMul(c).redISub(o.x.redMul(r)).cmpn(0)!==0)return!1;var i=r.redMul(this.z),v=c.redMul(o.z);return this.y.redMul(v).redISub(o.y.redMul(i)).cmpn(0)===0},h.prototype.eqXToP=function(o){var r=this.z.redSqr(),c=o.toRed(this.curve.red).redMul(r);if(this.x.cmp(c)===0)return!0;for(var i=o.clone(),v=this.curve.redN.redMul(r);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(c.redIAdd(v),this.x.cmp(c)===0)return!0}},h.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},h.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}),require_mont=__commonJSMin((n,l)=>{var a=require_bn$1(),d=require_inherits_browser(),u=require_base$1(),y=require_utils$1();function e(p){u.call(this,"mont",p),this.a=new a(p.a,16).toRed(this.red),this.b=new a(p.b,16).toRed(this.red),this.i4=new a(4).toRed(this.red).redInvm(),this.two=new a(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}d(e,u),l.exports=e,e.prototype.validate=function(h){var f=h.normalize().x,o=f.redSqr(),r=o.redMul(f).redAdd(o.redMul(this.a)).redAdd(f);return r.redSqrt().redSqr().cmp(r)===0};function s(p,h,f){u.BasePoint.call(this,p,"projective"),h===null&&f===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new a(h,16),this.z=new a(f,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}d(s,u.BasePoint),e.prototype.decodePoint=function(h,f){return this.point(y.toArray(h,f),1)},e.prototype.point=function(h,f){return new s(this,h,f)},e.prototype.pointFromJSON=function(h){return s.fromJSON(this,h)},s.prototype.precompute=function(){},s.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},s.fromJSON=function(h,f){return new s(h,f[0],f[1]||h.one)},s.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},s.prototype.isInfinity=function(){return this.z.cmpn(0)===0},s.prototype.dbl=function(){var h=this.x.redAdd(this.z).redSqr(),f=this.x.redSub(this.z).redSqr(),o=h.redSub(f),r=h.redMul(f),c=o.redMul(f.redAdd(this.curve.a24.redMul(o)));return this.curve.point(r,c)},s.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.diffAdd=function(h,f){var o=this.x.redAdd(this.z),r=this.x.redSub(this.z),c=h.x.redAdd(h.z),i=h.x.redSub(h.z).redMul(o),v=c.redMul(r),b=f.z.redMul(i.redAdd(v).redSqr()),S=f.x.redMul(i.redISub(v).redSqr());return this.curve.point(b,S)},s.prototype.mul=function(h){for(var f=h.clone(),o=this,r=this.curve.point(null,null),c=this,i=[];f.cmpn(0)!==0;f.iushrn(1))i.push(f.andln(1));for(var v=i.length-1;v>=0;v--)i[v]===0?(o=o.diffAdd(r,c),r=r.dbl()):(r=o.diffAdd(r,c),o=o.dbl());return r},s.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},s.prototype.eq=function(h){return this.getX().cmp(h.getX())===0},s.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},s.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}),require_edwards=__commonJSMin((n,l)=>{var a=require_utils$1(),d=require_bn$1(),u=require_inherits_browser(),y=require_base$1(),e=a.assert;function s(h){this.twisted=(h.a|0)!==1,this.mOneA=this.twisted&&(h.a|0)===-1,this.extended=this.mOneA,y.call(this,"edwards",h),this.a=new d(h.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new d(h.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new d(h.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),e(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(h.c|0)===1}u(s,y),l.exports=s,s.prototype._mulA=function(f){return this.mOneA?f.redNeg():this.a.redMul(f)},s.prototype._mulC=function(f){return this.oneC?f:this.c.redMul(f)},s.prototype.jpoint=function(f,o,r,c){return this.point(f,o,r,c)},s.prototype.pointFromX=function(f,o){f=new d(f,16),f.red||(f=f.toRed(this.red));var r=f.redSqr(),c=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),v=c.redMul(i.redInvm()),b=v.redSqrt();if(b.redSqr().redSub(v).cmp(this.zero)!==0)throw new Error("invalid point");var S=b.fromRed().isOdd();return(o&&!S||!o&&S)&&(b=b.redNeg()),this.point(f,b)},s.prototype.pointFromY=function(f,o){f=new d(f,16),f.red||(f=f.toRed(this.red));var r=f.redSqr(),c=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),v=c.redMul(i.redInvm());if(v.cmp(this.zero)===0){if(o)throw new Error("invalid point");return this.point(this.zero,f)}var b=v.redSqrt();if(b.redSqr().redSub(v).cmp(this.zero)!==0)throw new Error("invalid point");return b.fromRed().isOdd()!==o&&(b=b.redNeg()),this.point(b,f)},s.prototype.validate=function(f){if(f.isInfinity())return!0;f.normalize();
16var o=f.x.redSqr(),r=f.y.redSqr(),c=o.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(o).redMul(r)));return c.cmp(i)===0};function p(h,f,o,r,c){y.BasePoint.call(this,h,"projective"),f===null&&o===null&&r===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new d(f,16),this.y=new d(o,16),this.z=r?new d(r,16):this.curve.one,this.t=c&&new d(c,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}u(p,y.BasePoint),s.prototype.pointFromJSON=function(f){return p.fromJSON(this,f)},s.prototype.point=function(f,o,r,c){return new p(this,f,o,r,c)},p.fromJSON=function(f,o){return new p(f,o[0],o[1],o[2])},p.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},p.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},p.prototype._extDbl=function(){var f=this.x.redSqr(),o=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var c=this.curve._mulA(f),i=this.x.redAdd(this.y).redSqr().redISub(f).redISub(o),v=c.redAdd(o),b=v.redSub(r),S=c.redSub(o),q=i.redMul(b),I=v.redMul(S),k=i.redMul(S),D=b.redMul(v);return this.curve.point(q,I,D,k)},p.prototype._projDbl=function(){var f=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),r=this.y.redSqr(),c,i,v,b,S,q;if(this.curve.twisted){b=this.curve._mulA(o);var I=b.redAdd(r);this.zOne?(c=f.redSub(o).redSub(r).redMul(I.redSub(this.curve.two)),i=I.redMul(b.redSub(r)),v=I.redSqr().redSub(I).redSub(I)):(S=this.z.redSqr(),q=I.redSub(S).redISub(S),c=f.redSub(o).redISub(r).redMul(q),i=I.redMul(b.redSub(r)),v=I.redMul(q))}else b=o.redAdd(r),S=this.curve._mulC(this.z).redSqr(),q=b.redSub(S).redSub(S),c=this.curve._mulC(f.redISub(b)).redMul(q),i=this.curve._mulC(b).redMul(o.redISub(r)),v=b.redMul(q);return this.curve.point(c,i,v)},p.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},p.prototype._extAdd=function(f){var o=this.y.redSub(this.x).redMul(f.y.redSub(f.x)),r=this.y.redAdd(this.x).redMul(f.y.redAdd(f.x)),c=this.t.redMul(this.curve.dd).redMul(f.t),i=this.z.redMul(f.z.redAdd(f.z)),v=r.redSub(o),b=i.redSub(c),S=i.redAdd(c),q=r.redAdd(o),I=v.redMul(b),k=S.redMul(q),D=v.redMul(q),N=b.redMul(S);return this.curve.point(I,k,N,D)},p.prototype._projAdd=function(f){var o=this.z.redMul(f.z),r=o.redSqr(),c=this.x.redMul(f.x),i=this.y.redMul(f.y),v=this.curve.d.redMul(c).redMul(i),b=r.redSub(v),S=r.redAdd(v),q=this.x.redAdd(this.y).redMul(f.x.redAdd(f.y)).redISub(c).redISub(i),I=o.redMul(b).redMul(q),k,D;return this.curve.twisted?(k=o.redMul(S).redMul(i.redSub(this.curve._mulA(c))),D=b.redMul(S)):(k=o.redMul(S).redMul(i.redSub(c)),D=this.curve._mulC(b).redMul(S)),this.curve.point(I,k,D)},p.prototype.add=function(f){return this.isInfinity()?f:f.isInfinity()?this:this.curve.extended?this._extAdd(f):this._projAdd(f)},p.prototype.mul=function(f){return this._hasDoubles(f)?this.curve._fixedNafMul(this,f):this.curve._wnafMul(this,f)},p.prototype.mulAdd=function(f,o,r){return this.curve._wnafMulAdd(1,[this,o],[f,r],2,!1)},p.prototype.jmulAdd=function(f,o,r){return this.curve._wnafMulAdd(1,[this,o],[f,r],2,!0)},p.prototype.normalize=function(){if(this.zOne)return this;var f=this.z.redInvm();return this.x=this.x.redMul(f),this.y=this.y.redMul(f),this.t&&(this.t=this.t.redMul(f)),this.z=this.curve.one,this.zOne=!0,this},p.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},p.prototype.getX=function(){return this.normalize(),this.x.fromRed()},p.prototype.getY=function(){return this.normalize(),this.y.fromRed()},p.prototype.eq=function(f){return this===f||this.getX().cmp(f.getX())===0&&this.getY().cmp(f.getY())===0},p.prototype.eqXToP=function(f){var o=f.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(o)===0)return!0;for(var r=f.clone(),c=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(o.redIAdd(c),this.x.cmp(o)===0)return!0}},p.prototype.toP=p.prototype.normalize,p.prototype.mixedAdd=p.prototype.add}),require_curve=__commonJSMin(n=>{var l=n;l.base=require_base$1(),l.short=require_short(),l.mont=require_mont(),l.edwards=require_edwards()}),require_utils=__commonJSMin(n=>{var l=require_minimalistic_assert(),a=require_inherits_browser();n.inherits=a;function d(m,O){return(m.charCodeAt(O)&64512)!==55296||O<0||O+1>=m.length?!1:(m.charCodeAt(O+1)&64512)===56320}function u(m,O){if(Array.isArray(m))return m.slice();if(!m)return[];var E=[];if(typeof m=="string")if(O){if(O==="hex")for(m=m.replace(/[^a-z0-9]+/gi,""),m.length%2!==0&&(m="0"+m),g=0;g<m.length;g+=2)E.push(parseInt(m[g]+m[g+1],16))}else for(var t=0,g=0;g<m.length;g++){var R=m.charCodeAt(g);R<128?E[t++]=R:R<2048?(E[t++]=R>>6|192,E[t++]=R&63|128):d(m,g)?(R=65536+((R&1023)<<10)+(m.charCodeAt(++g)&1023),E[t++]=R>>18|240,E[t++]=R>>12&63|128,E[t++]=R>>6&63|128,E[t++]=R&63|128):(E[t++]=R>>12|224,E[t++]=R>>6&63|128,E[t++]=R&63|128)}else for(g=0;g<m.length;g++)E[g]=m[g]|0;return E}n.toArray=u;function y(m){for(var O="",E=0;
16E<m.length;E++)O+=p(m[E].toString(16));return O}n.toHex=y;function e(m){return(m>>>24|m>>>8&65280|m<<8&16711680|(m&255)<<24)>>>0}n.htonl=e;function s(m,O){for(var E="",t=0;t<m.length;t++){var g=m[t];O==="little"&&(g=e(g)),E+=h(g.toString(16))}return E}n.toHex32=s;function p(m){return m.length===1?"0"+m:m}n.zero2=p;function h(m){return m.length===7?"0"+m:m.length===6?"00"+m:m.length===5?"000"+m:m.length===4?"0000"+m:m.length===3?"00000"+m:m.length===2?"000000"+m:m.length===1?"0000000"+m:m}n.zero8=h;function f(m,O,E,t){var g=E-O;l(g%4===0);for(var R=new Array(g/4),M=0,w=O;M<R.length;M++,w+=4){var _;t==="big"?_=m[w]<<24|m[w+1]<<16|m[w+2]<<8|m[w+3]:_=m[w+3]<<24|m[w+2]<<16|m[w+1]<<8|m[w],R[M]=_>>>0}return R}n.join32=f;function o(m,O){for(var E=new Array(m.length*4),t=0,g=0;t<m.length;t++,g+=4){var R=m[t];O==="big"?(E[g]=R>>>24,E[g+1]=R>>>16&255,E[g+2]=R>>>8&255,E[g+3]=R&255):(E[g+3]=R>>>24,E[g+2]=R>>>16&255,E[g+1]=R>>>8&255,E[g]=R&255)}return E}n.split32=o;function r(m,O){return m>>>O|m<<32-O}n.rotr32=r;function c(m,O){return m<<O|m>>>32-O}n.rotl32=c;function i(m,O){return m+O>>>0}n.sum32=i;function v(m,O,E){return m+O+E>>>0}n.sum32_3=v;function b(m,O,E,t){return m+O+E+t>>>0}n.sum32_4=b;function S(m,O,E,t,g){return m+O+E+t+g>>>0}n.sum32_5=S;function q(m,O,E,t){var g=m[O],R=t+m[O+1]>>>0;m[O]=(R<t?1:0)+E+g>>>0,m[O+1]=R}n.sum64=q;function I(m,O,E,t){return(O+t>>>0<O?1:0)+m+E>>>0}n.sum64_hi=I;function k(m,O,E,t){return O+t>>>0}n.sum64_lo=k;function D(m,O,E,t,g,R,M,w){var _=0,B=O;return B=B+t>>>0,_+=B<O?1:0,B=B+R>>>0,_+=B<R?1:0,B=B+w>>>0,_+=B<w?1:0,m+E+g+M+_>>>0}n.sum64_4_hi=D;function N(m,O,E,t,g,R,M,w){return O+t+R+w>>>0}n.sum64_4_lo=N;function F(m,O,E,t,g,R,M,w,_,B){var T=0,A=O;return A=A+t>>>0,T+=A<O?1:0,A=A+R>>>0,T+=A<R?1:0,A=A+w>>>0,T+=A<w?1:0,A=A+B>>>0,T+=A<B?1:0,m+E+g+M+_+T>>>0}n.sum64_5_hi=F;function z(m,O,E,t,g,R,M,w,_,B){return O+t+R+w+B>>>0}n.sum64_5_lo=z;function G(m,O,E){return(O<<32-E|m>>>E)>>>0}n.rotr64_hi=G;function Z(m,O,E){return(m<<32-E|O>>>E)>>>0}n.rotr64_lo=Z;function re(m,O,E){return m>>>E}n.shr64_hi=re;function C(m,O,E){return(m<<32-E|O>>>E)>>>0}n.shr64_lo=C}),require_common$1=__commonJSMin(n=>{var l=require_utils(),a=require_minimalistic_assert();function d(){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}n.BlockHash=d,d.prototype.update=function(y,e){if(y=l.toArray(y,e),this.pending?this.pending=this.pending.concat(y):this.pending=y,this.pendingTotal+=y.length,this.pending.length>=this._delta8){y=this.pending;var s=y.length%this._delta8;this.pending=y.slice(y.length-s,y.length),this.pending.length===0&&(this.pending=null),y=l.join32(y,0,y.length-s,this.endian);for(var p=0;p<y.length;p+=this._delta32)this._update(y,p,p+this._delta32)}return this},d.prototype.digest=function(y){return this.update(this._pad()),a(this.pending===null),this._digest(y)},d.prototype._pad=function(){var y=this.pendingTotal,e=this._delta8,s=e-(y+this.padLength)%e,p=new Array(s+this.padLength);p[0]=128;for(var h=1;h<s;h++)p[h]=0;if(y<<=3,this.endian==="big"){for(var f=8;f<this.padLength;f++)p[h++]=0;p[h++]=0,p[h++]=0,p[h++]=0,p[h++]=0,p[h++]=y>>>24&255,p[h++]=y>>>16&255,p[h++]=y>>>8&255,p[h++]=y&255}else for(p[h++]=y&255,p[h++]=y>>>8&255,p[h++]=y>>>16&255,p[h++]=y>>>24&255,p[h++]=0,p[h++]=0,p[h++]=0,p[h++]=0,f=8;f<this.padLength;f++)p[h++]=0;return p}}),require_common=__commonJSMin(n=>{var l=require_utils().rotr32;
16function a(f,o,r,c){if(f===0)return d(o,r,c);if(f===1||f===3)return y(o,r,c);if(f===2)return u(o,r,c)}n.ft_1=a;function d(f,o,r){return f&o^~f&r}n.ch32=d;function u(f,o,r){return f&o^f&r^o&r}n.maj32=u;function y(f,o,r){return f^o^r}n.p32=y;function e(f){return l(f,2)^l(f,13)^l(f,22)}n.s0_256=e;function s(f){return l(f,6)^l(f,11)^l(f,25)}n.s1_256=s;function p(f){return l(f,7)^l(f,18)^f>>>3}n.g0_256=p;function h(f){return l(f,17)^l(f,19)^f>>>10}n.g1_256=h}),require__1=__commonJSMin((n,l)=>{var a=require_utils(),d=require_common$1(),u=require_common(),y=a.rotl32,e=a.sum32,s=a.sum32_5,p=u.ft_1,h=d.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function o(){if(!(this instanceof o))return new o;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}a.inherits(o,h),l.exports=o,o.blockSize=512,o.outSize=160,o.hmacStrength=80,o.padLength=64,o.prototype._update=function(c,i){for(var v=this.W,b=0;b<16;b++)v[b]=c[i+b];for(;b<v.length;b++)v[b]=y(v[b-3]^v[b-8]^v[b-14]^v[b-16],1);var S=this.h[0],q=this.h[1],I=this.h[2],k=this.h[3],D=this.h[4];for(b=0;b<v.length;b++){var N=~~(b/20),F=s(y(S,5),p(N,q,I,k),D,v[b],f[N]);D=k,k=I,I=y(q,30),q=S,S=F}this.h[0]=e(this.h[0],S),this.h[1]=e(this.h[1],q),this.h[2]=e(this.h[2],I),this.h[3]=e(this.h[3],k),this.h[4]=e(this.h[4],D)},o.prototype._digest=function(c){return c==="hex"?a.toHex32(this.h,"big"):a.split32(this.h,"big")}}),require__256=__commonJSMin((n,l)=>{var a=require_utils(),d=require_common$1(),u=require_common(),y=require_minimalistic_assert(),e=a.sum32,s=a.sum32_4,p=a.sum32_5,h=u.ch32,f=u.maj32,o=u.s0_256,r=u.s1_256,c=u.g0_256,i=u.g1_256,v=d.BlockHash,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 S(){if(!(this instanceof S))return new S;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}a.inherits(S,v),l.exports=S,S.blockSize=512,S.outSize=256,S.hmacStrength=192,S.padLength=64,S.prototype._update=function(I,k){for(var D=this.W,N=0;N<16;N++)D[N]=I[k+N];for(;N<D.length;N++)D[N]=s(i(D[N-2]),D[N-7],c(D[N-15]),D[N-16]);var F=this.h[0],z=this.h[1],G=this.h[2],Z=this.h[3],re=this.h[4],C=this.h[5],m=this.h[6],O=this.h[7];for(y(this.k.length===D.length),N=0;N<D.length;N++){var E=p(O,r(re),h(re,C,m),this.k[N],D[N]),t=e(o(F),f(F,z,G));O=m,m=C,C=re,re=e(Z,E),Z=G,G=z,z=F,F=e(E,t)}this.h[0]=e(this.h[0],F),this.h[1]=e(this.h[1],z),this.h[2]=e(this.h[2],G),this.h[3]=e(this.h[3],Z),this.h[4]=e(this.h[4],re),this.h[5]=e(this.h[5],C),this.h[6]=e(this.h[6],m),this.h[7]=e(this.h[7],O)},S.prototype._digest=function(I){return I==="hex"?a.toHex32(this.h,"big"):a.split32(this.h,"big")}}),require__224=__commonJSMin((n,l)=>{var a=require_utils(),d=require__256();function u(){if(!(this instanceof u))return new u;d.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}a.inherits(u,d),l.exports=u,u.blockSize=512,u.outSize=224,u.hmacStrength=192,u.padLength=64,u.prototype._digest=function(e){return e==="hex"?a.toHex32(this.h.slice(0,7),"big"):a.split32(this.h.slice(0,7),"big")}}),require__512=__commonJSMin((n,l)=>{var a=require_utils(),d=require_common$1(),u=require_minimalistic_assert(),y=a.rotr64_hi,e=a.rotr64_lo,s=a.shr64_hi,p=a.shr64_lo,h=a.sum64,f=a.sum64_hi,o=a.sum64_lo,r=a.sum64_4_hi,c=a.sum64_4_lo,i=a.sum64_5_hi,v=a.sum64_5_lo,b=d.BlockHash,S=[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,
161322822218,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 q(){if(!(this instanceof q))return new q;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=S,this.W=new Array(160)}a.inherits(q,b),l.exports=q,q.blockSize=1024,q.outSize=512,q.hmacStrength=192,q.padLength=128,q.prototype._prepareBlock=function(t,g){for(var R=this.W,M=0;M<32;M++)R[M]=t[g+M];for(;M<R.length;M+=2){var w=m(R[M-4],R[M-3]),_=O(R[M-4],R[M-3]),B=R[M-14],T=R[M-13],A=re(R[M-30],R[M-29]),$=C(R[M-30],R[M-29]),te=R[M-32],W=R[M-31];R[M]=r(w,_,B,T,A,$,te,W),R[M+1]=c(w,_,B,T,A,$,te,W)}},q.prototype._update=function(t,g){this._prepareBlock(t,g);var R=this.W,M=this.h[0],w=this.h[1],_=this.h[2],B=this.h[3],T=this.h[4],A=this.h[5],$=this.h[6],te=this.h[7],W=this.h[8],K=this.h[9],L=this.h[10],U=this.h[11],X=this.h[12],j=this.h[13],J=this.h[14],Q=this.h[15];u(this.k.length===R.length);for(var ne=0;ne<R.length;ne+=2){var se=J,oe=Q,we=G(W,K),ie=Z(W,K),ve=I(W,K,L,U,X,j),De=k(W,K,L,U,X,j),ue=this.k[ne],fe=this.k[ne+1],ke=R[ne],le=R[ne+1],be=i(se,oe,we,ie,ve,De,ue,fe,ke,le),Ue=v(se,oe,we,ie,ve,De,ue,fe,ke,le);se=F(M,w),oe=z(M,w),we=D(M,w,_,B,T,A),ie=N(M,w,_,B,T,A);var ye=f(se,oe,we,ie),me=o(se,oe,we,ie);J=X,Q=j,X=L,j=U,L=W,U=K,W=f($,te,be,Ue),K=o(te,te,be,Ue),$=T,te=A,T=_,A=B,_=M,B=w,M=f(be,Ue,ye,me),w=o(be,Ue,ye,me)}h(this.h,0,M,w),h(this.h,2,_,B),h(this.h,4,T,A),h(this.h,6,$,te),h(this.h,8,W,K),h(this.h,10,L,U),h(this.h,12,X,j),h(this.h,14,J,Q)},q.prototype._digest=function(t){return t==="hex"?a.toHex32(this.h,"big"):a.split32(this.h,"big")};function I(E,t,g,R,M){var w=E&g^~E&M;return w<0&&(w+=4294967296),w}function k(E,t,g,R,M,w){var _=t&R^~t&w;return _<0&&(_+=4294967296),_}function D(E,t,g,R,M){var w=E&g^E&M^g&M;return w<0&&(w+=4294967296),w}function N(E,t,g,R,M,w){var _=t&R^t&w^R&w;return _<0&&(_+=4294967296),_}function F(E,t){var g=y(E,t,28),R=y(t,E,2),M=y(t,E,7),w=g^R^M;return w<0&&(w+=4294967296),w}function z(E,t){var g=e(E,t,28),R=e(t,E,2),M=e(t,E,7),w=g^R^M;return w<0&&(w+=4294967296),w}function G(E,t){var g=y(E,t,14),R=y(E,t,18),M=y(t,E,9),w=g^R^M;return w<0&&(w+=4294967296),w}function Z(E,t){var g=e(E,t,14),R=e(E,t,18),M=e(t,E,9),w=g^R^M;return w<0&&(w+=4294967296),w}function re(E,t){var g=y(E,t,1),R=y(E,t,8),M=s(E,t,7),w=g^R^M;return w<0&&(w+=4294967296),w}function C(E,t){var g=e(E,t,1),R=e(E,t,8),M=p(E,t,7),w=g^R^M;return w<0&&(w+=4294967296),w}function m(E,t){var g=y(E,t,19),R=y(t,E,29),M=s(E,t,6),w=g^R^M;return w<0&&(w+=4294967296),w}function O(E,t){var g=e(E,t,19),R=e(t,E,29),M=p(E,t,6),w=g^R^M;return w<0&&(w+=4294967296),w}}),require__384=__commonJSMin((n,l)=>{var a=require_utils(),d=require__512();function u(){if(!(this instanceof u))return new u;d.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}a.inherits(u,d),l.exports=u,u.blockSize=1024,u.outSize=384,u.hmacStrength=192,u.padLength=128,u.prototype._digest=function(e){return e==="hex"?a.toHex32(this.h.slice(0,12),"big"):a.split32(this.h.slice(0,12),"big")}}),require_sha=__commonJSMin(n=>{n.sha1=require__1(),n.sha224=require__224(),n.sha256=require__256(),n.sha384=require__384(),n.sha512=require__512()}),require_ripemd=__commonJSMin(n=>{var l=require_utils(),a=require_common$1(),d=l.rotl32,u=l.sum32,y=l.sum32_3,e=l.sum32_4,s=a.BlockHash;function p(){if(!(this instanceof p))return new p;s.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}l.inherits(p,s),n.ripemd160=p,p.blockSize=512,p.outSize=160,p.hmacStrength=192,p.padLength=64,p.prototype._update=function(S,q){for(var I=this.h[0],k=this.h[1],D=this.h[2],N=this.h[3],F=this.h[4],z=I,G=k,Z=D,re=N,C=F,m=0;m<80;m++){var O=u(d(e(I,h(m,k,D,N),S[r[m]+q],f(m)),i[m]),F);I=F,F=N,N=d(D,10),D=k,k=O,O=u(d(e(z,h(79-m,G,Z,re),S[c[m]+q],o(m)),v[m]),C),z=C,C=re,re=d(Z,10),Z=G,G=O}O=y(this.h[1],D,re),this.h[1]=y(this.h[2],N,C),this.h[2]=y(this.h[3],F,z),this.h[3]=y(this.h[4],I,G),this.h[4]=y(this.h[0],k,Z),this.h[0]=O},p.prototype._digest=function(S){return S==="hex"?l.toHex32(this.h,"little"):l.split32(this.h,"little")};function h(b,S,q,I){return b<=15?S^q^I:b<=31?S&q|~S&I:b<=47?(S|~q)^I:b<=63?S&I|q&~I:S^(q|~I)}function f(b){return b<=15?0:b<=31?1518500249:b<=47?1859775393:b<=63?2400959708:2840853838}function o(b){return b<=15?1352829926:b<=31?1548603684:b<=47?1836072691:b<=63?2053994217:0}var r=[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],c=[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],i=[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],v=[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]}),require_hmac=__commonJSMin((n,l)=>{var a=require_utils(),d=require_minimalistic_assert();function u(y,e,s){if(!(this instanceof u))return new u(y,e,s);this.Hash=y,this.blockSize=y.blockSize/8,this.outSize=y.outSize/8,this.inner=null,this.outer=null,this._init(a.toArray(e,s))}
16l.exports=u,u.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),d(e.length<=this.blockSize);for(var s=e.length;s<this.blockSize;s++)e.push(0);for(s=0;s<e.length;s++)e[s]^=54;for(this.inner=new this.Hash().update(e),s=0;s<e.length;s++)e[s]^=106;this.outer=new this.Hash().update(e)},u.prototype.update=function(e,s){return this.inner.update(e,s),this},u.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}}),require_hash=__commonJSMin(n=>{var l=n;l.utils=require_utils(),l.common=require_common$1(),l.sha=require_sha(),l.ripemd=require_ripemd(),l.hmac=require_hmac(),l.sha1=l.sha.sha1,l.sha256=l.sha.sha256,l.sha224=l.sha.sha224,l.sha384=l.sha.sha384,l.sha512=l.sha.sha512,l.ripemd160=l.ripemd.ripemd160}),require_secp256k1=__commonJSMin((n,l)=>{l
vendor: 26,136 bytes, line 16
16.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"]]}}}
16),require_curves=__commonJSMin(n=>{var l=n,a=require_hash(),d=require_curve(),u=require_utils$1().assert;function y(p){p.type==="short"?this.curve=new d.short(p):p.type==="edwards"?this.curve=new d.edwards(p):this.curve=new d.mont(p),this.g=this.curve.g,this.n=this.curve.n,this.hash=p.hash,u(this.g.validate(),"Invalid curve"),u(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}l.PresetCurve=y;function e(p,h){Object.defineProperty(l,p,{configurable:!0,enumerable:!0,get:function(){var f=new y(h);return Object.defineProperty(l,p,{configurable:!0,enumerable:!0,value:f}),f}})}e("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:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),e("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:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),e("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:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),e("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:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),e("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:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),e("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),e("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:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var s;try{s=require_secp256k1()}catch{s=void 0}e("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:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
16,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",s]})}),require_hmac_drbg=__commonJSMin((n,l)=>{var a=require_hash(),d=require_utils$2(),u=require_minimalistic_assert();function y(e){if(!(this instanceof y))return new y(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 s=d.toArray(e.entropy,e.entropyEnc||"hex"),p=d.toArray(e.nonce,e.nonceEnc||"hex"),h=d.toArray(e.pers,e.persEnc||"hex");u(s.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(s,p,h)}l.exports=y,y.prototype._init=function(s,p,h){var f=s.concat(p).concat(h);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o<this.V.length;o++)this.K[o]=0,this.V[o]=1;this._update(f),this._reseed=1,this.reseedInterval=281474976710656},y.prototype._hmac=function(){return new a.hmac(this.hash,this.K)},y.prototype._update=function(s){var p=this._hmac().update(this.V).update([0]);s&&(p=p.update(s)),this.K=p.digest(),this.V=this._hmac().update(this.V).digest(),s&&(this.K=this._hmac().update(this.V).update([1]).update(s).digest(),this.V=this._hmac().update(this.V).digest())},y.prototype.reseed=function(s,p,h,f){typeof p!="string"&&(f=h,h=p,p=null),s=d.toArray(s,p),h=d.toArray(h,f),u(s.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(s.concat(h||[])),this._reseed=1},y.prototype.generate=function(s,p,h,f){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof p!="string"&&(f=h,h=p,p=null),h&&(h=d.toArray(h,f||"hex"),this._update(h));for(var o=[];o.length<s;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var r=o.slice(0,s);return this._update(h),this._reseed++,d.encode(r,p)}}),require_key$1=__commonJSMin((n,l)=>{var a=require_bn$1(),d=require_utils$1().assert;function u(y,e){this.ec=y,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}l.exports=u,u.fromPublic=function(e,s,p){return s instanceof u?s:new u(e,{pub:s,pubEnc:p})},u.fromPrivate=function(e,s,p){return s instanceof u?s:new u(e,{priv:s,privEnc:p})},u.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},u.prototype.getPublic=function(e,s){return typeof e=="string"&&(s=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),s?this.pub.encode(s,e):this.pub},u.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv},u.prototype._importPrivate=function(e,s){this.priv=new a(e,s||16),this.priv=this.priv.umod(this.ec.curve.n)},u.prototype._importPublic=function(e,s){if(e.x||e.y){this.ec.curve.type==="mont"?d(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&d(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,s)},u.prototype.derive=function(e){return e.validate()||d(e.validate(),"public point not validated"),e.mul(this.priv).getX()},u.prototype.sign=function(e,s,p){return this.ec.sign(e,this,s,p)},u.prototype.verify=function(e,s){return this.ec.verify(e,s,this)},u.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}),require_signature$1=__commonJSMin((n,l)=>{var a=require_bn$1(),d=require_utils$1(),u=d.assert;function y(f,o){if(f instanceof y)return f;this._importDER(f,o)||(u(f.r&&f.s,"Signature without r or s"),this.r=new a(f.r,16),this.s=new a(f.s,16),f.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=f.recoveryParam)}l.exports=y;function e(){this.place=0}function s(f,o){var r=f[o.place++];if(!(r&128))return r;var c=r&15;if(c===0||c>4||f[o.place]===0)return!1;for(var i=0,v=0,b=o.place;v<c;v++,b++)i<<=8,i|=f[b],i>>>=0;return i<=127?!1:(o.place=b,i)}function p(f){for(var o=0,r=f.length-1;!f[o]&&!(f[o+1]&128)&&o<r;)o++;return o===0?f:f.slice(o)}y.prototype._importDER=function(o,r){o=d.toArray(o,r);var c=new e;if(o[c.place++]!==48)return!1;var i=s(o,c);if(i===!1||i+c.place!==o.length||o[c.place++]!==2)return!1;var v=s(o,c);if(v===!1||o[c.place]&128)return!1;var b=o.slice(c.place,v+c.place);if(c.place+=v,o[c.place++]!==2)return!1;var S=s(o,c);if(S===!1||o.length!==S+c.place||o[c.place]&128)return!1;var q=o.slice(c.place,S+c.place);if(b[0]===0)if(b[1]&128)b=b.slice(1);else return!1;if(q[0]===0)if(q[1]&128)q=q.slice(1);else return!1;return this.r=new a(b),this.s=new a(q),this.recoveryParam=null,!0};function h(f,o){if(o<128){f.push(o);return}
16var r=1+(Math.log(o)/Math.LN2>>>3);for(f.push(r|128);--r;)f.push(o>>>(r<<3)&255);f.push(o)}y.prototype.toDER=function(o){var r=this.r.toArray(),c=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),c[0]&128&&(c=[0].concat(c)),r=p(r),c=p(c);!c[0]&&!(c[1]&128);)c=c.slice(1);var i=[2];h(i,r.length),i=i.concat(r),i.push(2),h(i,c.length);var v=i.concat(c),b=[48];return h(b,v.length),b=b.concat(v),d.encode(b,o)}}),require_ec=__commonJSMin((n,l)=>{var a=require_bn$1(),d=require_hmac_drbg(),u=require_utils$1(),y=require_curves(),e=require_brorand(),s=u.assert,p=require_key$1(),h=require_signature$1();function f(o){if(!(this instanceof f))return new f(o);typeof o=="string"&&(s(Object.prototype.hasOwnProperty.call(y,o),"Unknown curve "+o),o=y[o]),o instanceof y.PresetCurve&&(o={curve:o}),this.curve=o.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=o.curve.g,this.g.precompute(o.curve.n.bitLength()+1),this.hash=o.hash||o.curve.hash}l.exports=f,f.prototype.keyPair=function(r){return new p(this,r)},f.prototype.keyFromPrivate=function(r,c){return p.fromPrivate(this,r,c)},f.prototype.keyFromPublic=function(r,c){return p.fromPublic(this,r,c)},f.prototype.genKeyPair=function(r){r||(r={});for(var c=new d({hash:this.hash,pers:r.pers,persEnc:r.persEnc||"utf8",entropy:r.entropy||e(this.hash.hmacStrength),entropyEnc:r.entropy&&r.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),v=this.n.sub(new a(2));;){var b=new a(c.generate(i));if(!(b.cmp(v)>0))return b.iaddn(1),this.keyFromPrivate(b)}},f.prototype._truncateToN=function(r,c){var i=r.byteLength()*8-this.n.bitLength();return i>0&&(r=r.ushrn(i)),!c&&r.cmp(this.n)>=0?r.sub(this.n):r},f.prototype.sign=function(r,c,i,v){typeof i=="object"&&(v=i,i=null),v||(v={}),c=this.keyFromPrivate(c,i),r=this._truncateToN(new a(r,16));for(var b=this.n.byteLength(),S=c.getPrivate().toArray("be",b),q=r.toArray("be",b),I=new d({hash:this.hash,entropy:S,nonce:q,pers:v.pers,persEnc:v.persEnc||"utf8"}),k=this.n.sub(new a(1)),D=0;;D++){var N=v.k?v.k(D):new a(I.generate(this.n.byteLength()));if(N=this._truncateToN(N,!0),!(N.cmpn(1)<=0||N.cmp(k)>=0)){var F=this.g.mul(N);if(!F.isInfinity()){var z=F.getX(),G=z.umod(this.n);if(G.cmpn(0)!==0){var Z=N.invm(this.n).mul(G.mul(c.getPrivate()).iadd(r));if(Z=Z.umod(this.n),Z.cmpn(0)!==0){var re=(F.getY().isOdd()?1:0)|(z.cmp(G)!==0?2:0);return v.canonical&&Z.cmp(this.nh)>0&&(Z=this.n.sub(Z),re^=1),new h({r:G,s:Z,recoveryParam:re})}}}}}},f.prototype.verify=function(r,c,i,v){r=this._truncateToN(new a(r,16)),i=this.keyFromPublic(i,v),c=new h(c,"hex");var b=c.r,S=c.s;if(b.cmpn(1)<0||b.cmp(this.n)>=0||S.cmpn(1)<0||S.cmp(this.n)>=0)return!1;var q=S.invm(this.n),I=q.mul(r).umod(this.n),k=q.mul(b).umod(this.n),D;return this.curve._maxwellTrick?(D=this.g.jmulAdd(I,i.getPublic(),k),D.isInfinity()?!1:D.eqXToP(b)):(D=this.g.mulAdd(I,i.getPublic(),k),D.isInfinity()?!1:D.getX().umod(this.n).cmp(b)===0)},f.prototype.recoverPubKey=function(o,r,c,i){s((3&c)===c,"The recovery param is more than two bits"),r=new h(r,i);var v=this.n,b=new a(o),S=r.r,q=r.s,I=c&1,k=c>>1;if(S.cmp(this.curve.p.umod(this.curve.n))>=0&&k)throw new Error("Unable to find sencond key candinate");k?S=this.curve.pointFromX(S.add(this.curve.n),I):S=this.curve.pointFromX(S,I);var D=r.r.invm(v),N=v.sub(b).mul(D).umod(v),F=q.mul(D).umod(v);return this.g.mulAdd(N,S,F)},f.prototype.getKeyRecoveryParam=function(o,r,c,i){if(r=new h(r,i),r.recoveryParam!==null)return r.recoveryParam;for(var v=0;v<4;v++){var b;try{b=this.recoverPubKey(o,r,v)}catch{continue}if(b.eq(c))return v}throw new Error("Unable to find valid recovery factor")}}),require_key=__commonJSMin((n,l)=>{var a=require_utils$1(),d=a.assert,u=a.parseBytes,y=a.cachedProperty;function e(s,p){this.eddsa=s,this._secret=u(p.secret),s.isPoint(p.pub)?this._pub=p.pub:this._pubBytes=u(p.pub)}e.fromPublic=function(p,h){return h instanceof e?h:new e(p,{pub:h})},e.fromSecret=function(p,h){return h instanceof e?h:new e(p,{secret:h})},e.prototype.secret=function(){return this._secret},y(e,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),y(e,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),y(e,"privBytes",function(){var p=this.eddsa,h=this.hash(),f=p.encodingLength-1,o=h.slice(0,p.encodingLength);return o[0]&=248,o[f]&=127,o[f]|=64,o}),y(e,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),y(e,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),y(e,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),e.prototype.sign=function(p){return d(this._secret,"KeyPair can only verify"),this.eddsa.sign(p,this)},e.prototype.verify=function(p,h){return this.eddsa.verify(p,h,this)},e.prototype.getSecret=function(p){return d(this._secret,"KeyPair is public only"),a.encode(this.secret(),p)},e.prototype.getPublic=function(p){return a.encode(this.pubBytes(),p)},l.exports=e}),require_signature=__commonJSMin((n,l)=>{var a=require_bn$1(),d=require_utils$1(),u=d.assert,y=d.cachedProperty,e=d.parseBytes;function s(p,h){this.eddsa=p,typeof h!="object"&&(h=e(h)),Array.isArray(h)&&(u(h.length===p.encodingLength*2,"Signature has invali
16d size"),h={R:h.slice(0,p.encodingLength),S:h.slice(p.encodingLength)}),u(h.R&&h.S,"Signature without R or S"),p.isPoint(h.R)&&(this._R=h.R),h.S instanceof a&&(this._S=h.S),this._Rencoded=Array.isArray(h.R)?h.R:h.Rencoded,this._Sencoded=Array.isArray(h.S)?h.S:h.Sencoded}y(s,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),y(s,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),y(s,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),y(s,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),s.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},s.prototype.toHex=function(){return d.encode(this.toBytes(),"hex").toUpperCase()},l.exports=s}),require_eddsa=__commonJSMin((n,l)=>{var a=require_hash(),d=require_curves(),u=require_utils$1(),y=u.assert,e=u.parseBytes,s=require_key(),p=require_signature();function h(f){if(y(f==="ed25519","only tested with ed25519 so far"),!(this instanceof h))return new h(f);f=d[f].curve,this.curve=f,this.g=f.g,this.g.precompute(f.n.bitLength()+1),this.pointClass=f.point().constructor,this.encodingLength=Math.ceil(f.n.bitLength()/8),this.hash=a.sha512}l.exports=h,h.prototype.sign=function(o,r){o=e(o);var c=this.keyFromSecret(r),i=this.hashInt(c.messagePrefix(),o),v=this.g.mul(i),b=this.encodePoint(v),S=this.hashInt(b,c.pubBytes(),o).mul(c.priv()),q=i.add(S).umod(this.curve.n);return this.makeSignature({R:v,S:q,Rencoded:b})},h.prototype.verify=function(o,r,c){if(o=e(o),r=this.makeSignature(r),r.S().gte(r.eddsa.curve.n)||r.S().isNeg())return!1;var i=this.keyFromPublic(c),v=this.hashInt(r.Rencoded(),i.pubBytes(),o),b=this.g.mul(r.S());return r.R().add(i.pub().mul(v)).eq(b)},h.prototype.hashInt=function(){for(var o=this.hash(),r=0;r<arguments.length;r++)o.update(arguments[r]);return u.intFromLE(o.digest()).umod(this.curve.n)},h.prototype.keyFromPublic=function(o){return s.fromPublic(this,o)},h.prototype.keyFromSecret=function(o){return s.fromSecret(this,o)},h.prototype.makeSignature=function(o){return o instanceof p?o:new p(this,o)},h.prototype.encodePoint=function(o){var r=o.getY().toArray("le",this.encodingLength);return r[this.encodingLength-1]|=o.getX().isOdd()?128:0,r},h.prototype.decodePoint=function(o){o=u.parseBytes(o);var r=o.length-1,c=o.slice(0,r).concat(o[r]&-129),i=(o[r]&128)!==0,v=u.intFromLE(c);return this.curve.pointFromY(v,i)},h.prototype.encodeInt=function(o){return o.toArray("le",this.encodingLength)},h.prototype.decodeInt=function(o){return u.intFromLE(o)},h.prototype.isPoint=function(o){return o instanceof this.pointClass}}),require_elliptic=__commonJSMin(n=>{var l=n;l.version=(init_package(),__toCommonJS(package_exports).default).version,l.utils=require_utils$1(),l.rand=require_brorand(),l.curve=require_curve(),l.curves=require_curves(),l.ec=require_ec(),l.eddsa=require_eddsa()}),require_vm_browserify=__commonJSMin(exports=>{var indexOf=function(n,l){if(n.indexOf)return n.indexOf(l);for(var a=0;a<n.length;a++)if(n[a]===l)return a;return-1},Object_keys=function(n){if(Object.keys)return Object.keys(n);var l=[];for(var a in n)l.push(a);return l},forEach=function(n,l){if(n.forEach)return n.forEach(l);for(var a=0;a<n.length;a++)l(n[a],a,n)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(n,l,a){Object.defineProperty(n,l,{writable:!0,enumerable:!1,configurable:!0,value:a})}}catch{return function(l,a,d){l[a]=d}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(l){if(!(this instanceof Script))return new Script(l);this.code=l};Script.prototype.runInContext=function(n){if(!(n instanceof Context))throw new TypeError("needs a 'context' argument.");var l=document.createElement("iframe");l.style||(l.style={}),l.style.display="none",document.body.appendChild(l);var a=l.contentWindow,d=a.eval,u=a.execScript;!d&&u&&(u.call(a,"null"),d=a.eval),forEach(Object_keys(n),function(s){a[s]=n[s]}
16),forEach(globals,function(s){n[s]&&(a[s]=n[s])});var y=Object_keys(a),e=d.call(a,this.code);return forEach(Object_keys(a),function(s){(s in n||indexOf(y,s)===-1)&&(n[s]=a[s])}),forEach(globals,function(s){s in n||defineProp(n,s,a[s])}),document.body.removeChild(l),e},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(n){var l=Script.createContext(n),a=this.runInContext(l);return n&&forEach(Object_keys(l),function(d){n[d]=l[d]}),a},forEach(Object_keys(Script.prototype),function(n){exports[n]=Script[n]=function(l){var a=Script(l);return a[n].apply(a,[].slice.call(arguments,1))}}),exports.isContext=function(n){return n instanceof Context},exports.createScript=function(n){return exports.Script(n)},exports.createContext=Script.createContext=function(n){var l=new Context;return typeof n=="object"&&forEach(Object_keys(n),function(a){l[a]=n[a]}),l}}),require_api=__commonJSMin(n=>{var l=require_asn1$1(),a=require_inherits_browser(),d=n;d.define=function(e,s){return new u(e,s)};function u(y,e){this.name=y,this.body=e,this.decoders={},this.encoders={}}u.prototype._createNamed=function(e){var s;try{s=require_vm_browserify().runInThisContext("(function "+this.name+`(entity) {
17  this._initNamed(entity);
18})`)}catch{s=function(h){this._initNamed(h)}}return a(s,e),s.prototype._initNamed=function(h){e.call(this,h)},new s(this)},u.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(l.decoders[e])),this.decoders[e]},u.prototype.decode=function(e,s,p){return this._getDecoder(s).decode(e,p)},u.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(l.encoders[e])),this.encoders[e]},u.prototype.encode=function(e,s,p){return this._getEncoder(s).encode(e,p)}}),require_reporter=__commonJSMin(n=>{var l=require_inherits_browser();function a(u){this._reporterState={obj:null,path:[],options:u||{},errors:[]}}n.Reporter=a,a.prototype.isError=function(y){return y instanceof d},a.prototype.save=function(){var y=this._reporterState;return{obj:y.obj,pathLen:y.path.length}},a.prototype.restore=function(y){var e=this._reporterState;e.obj=y.obj,e.path=e.path.slice(0,y.pathLen)},a.prototype.enterKey=function(y){return this._reporterState.path.push(y)},a.prototype.exitKey=function(y){var e=this._reporterState;e.path=e.path.slice(0,y-1)},a.prototype.leaveKey=function(y,e,s){var p=this._reporterState;this.exitKey(y),p.obj!==null&&(p.obj[e]=s)},a.prototype.path=function(){return this._reporterState.path.join("/")},a.prototype.enterObject=function(){var y=this._reporterState,e=y.obj;return y.obj={},e},a.prototype.leaveObject=function(y){var e=this._reporterState,s=e.obj;return e.obj=y,s},a.prototype.error=function(y){var e,s=this._reporterState,p=y instanceof d;if(p?e=y:e=new d(s.path.map(function(h){return"["+JSON.stringify(h)+"]"}).join(""),y.message||y,y.stack),!s.options.partial)throw e;return p||s.errors.push(e),e},a.prototype.wrapResult=function(y){var e=this._reporterState;return e.options.partial?{result:this.isError(y)?null:y,errors:e.errors}:y};function d(u,y){this.path=u,this.rethrow(y)}l(d,Error),d.prototype.rethrow=function(y){if(this.message=y+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,d),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}}),require_buffer=__commonJSMin(n=>{var l=require_inherits_browser(),a=require_base().Reporter,d=require_dist().Buffer;function u(e,s){if(a.call(this,s),!d.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}l(u,a),n.DecoderBuffer=u,u.prototype.save=function(){return{offset:this.offset,reporter:a.prototype.save.call(this)}},u.prototype.restore=function(s){var p=new u(this.base);return p.offset=s.offset,p.length=this.offset,this.offset=s.offset,a.prototype.restore.call(this,s.reporter),p},u.prototype.isEmpty=function(){return this.offset===this.length},u.prototype.readUInt8=function(s){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(s||"DecoderBuffer overrun")},u.prototype.skip=function(s,p){if(!(this.offset+s<=this.length))return this.error(p||"DecoderBuffer overrun");var h=new u(this.base);return h._reporterState=this._reporterState,h.offset=this.offset,h.length=this.offset+s,this.offset+=s,h},u.prototype.raw=function(s){return this.base.slice(s?s.offset:this.offset,this.length)};function y(e,s){if(Array.isArray(e))this.length=0,this.value=e.map(function(p){return p 
18instanceof y||(p=new y(p,s)),this.length+=p.length,p},this);else if(typeof e=="number"){if(!(0<=e&&e<=255))return s.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if(typeof e=="string")this.value=e,this.length=d.byteLength(e);else if(d.isBuffer(e))this.value=e,this.length=e.length;else return s.error("Unsupported type: "+typeof e)}n.EncoderBuffer=y,y.prototype.join=function(s,p){return s||(s=new d(this.length)),p||(p=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(h){h.join(s,p),p+=h.length}):(typeof this.value=="number"?s[p]=this.value:typeof this.value=="string"?s.write(this.value,p):d.isBuffer(this.value)&&this.value.copy(s,p),p+=this.length)),s}}),require_node=__commonJSMin((n,l)=>{var a=require_base().Reporter,d=require_base().EncoderBuffer,u=require_base().DecoderBuffer,y=require_minimalistic_assert(),e=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],s=["ke
18y","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(e),p=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function h(o,r){var c={};this._baseState=c,c.enc=o,c.parent=r||null,c.children=null,c.tag=null,c.args=null,c.reverseArgs=null,c.choice=null,c.optional=!1,c.any=!1,c.obj=!1,c.use=null,c.useDecoder=null,c.key=null,c.default=null,c.explicit=null,c.implicit=null,c.contains=null,c.parent||(c.children=[],this._wrap())}l.exports=h;var f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];h.prototype.clone=function(){var r=this._baseState,c={};f.forEach(function(v){c[v]=r[v]});var i=new this.constructor(c.parent);return i._baseState=c,i},h.prototype._wrap=function(){var r=this._baseState;s.forEach(function(c){this[c]=function(){var v=new this.constructor(this);return r.children.push(v),v[c].apply(v,arguments)}},this)},h.prototype._init=function(r){var c=this._baseState;y(c.parent===null),r.call(this),c.children=c.children.filter(function(i){return i._baseState.parent===this},this),y.equal(c.children.length,1,"Root node can have only one child")},h.prototype._useArgs=function(r){var c=this._baseState,i=r.filter(function(v){return v instanceof this.constructor},this);r=r.filter(function(v){return!(v instanceof this.constructor)},this),i.length!==0&&(y(c.children===null),c.children=i,i.forEach(function(v){v._baseState.parent=this},this)),r.length!==0&&(y(c.args===null),c.args=r,c.reverseArgs=r.map(function(v){if(typeof v!="object"||v.constructor!==Object)return v;var b={};return Object.keys(v).forEach(function(S){S==(S|0)&&(S|=0);var q=v[S];b[q]=S}),b}))},p.forEach(function(o){h.prototype[o]=function(){var c=this._baseState;throw new Error(o+" not implemented for encoding: "+c.enc)}}),e.forEach(function(o){h.prototype[o]=function(){var c=this._baseState,i=Array.prototype.slice.call(arguments);return y(c.tag===null),c.tag=o,this._useArgs(i),this}}),h.prototype.use=function(r){y(r);var c=this._baseState;return y(c.use===null),c.use=r,this},h.prototype.optional=function(){var r=this._baseState;return r.optional=!0,this},h.prototype.def=function(r){var c=this._baseState;return y(c.default===null),c.default=r,c.optional=!0,this},h.prototype.explicit=function(r){var c=this._baseState;return y(c.explicit===null&&c.implicit===null),c.explicit=r,this},h.prototype.implicit=function(r){var c=this._baseState;return y(c.explicit===null&&c.implicit===null),c.implicit=r,this},h.prototype.obj=function(){var r=this._baseState,c=Array.prototype.slice.call(arguments);return r.obj=!0,c.length!==0&&this._useArgs(c),this},h.prototype.key=function(r){var c=this._baseState;return y(c.key===null),c.key=r,this},h.prototype.any=function(){var r=this._baseState;return r.any=!0,this},h.prototype.choice=function(r){var c=this._baseState;return y(c.choice===null),c.choice=r,this._useArgs(Object.keys(r).map(function(i){return r[i]})),this},h.prototype.contains=function(r){var c=this._baseState;return y(c.use===null),c.contains=r,this},h.prototype._decode=function(r,c){var i=this._baseState;if(i.parent===null)return r.wrapResult(i.children[0]._decode(r,c));var v=i.default,b=!0,S=null;if(i.key!==null&&(S=r.enterKey(i.key)),i.optional){var q=null;if(i.explicit!==null?q=i.explicit:i.implicit!==null?q=i.implicit:i.tag!==null&&(q=i.tag),q===null&&!i.any){var I=r.save();try{i.choice===null?this._decodeGeneric(i.tag,r,c):this._decodeChoice(r,c),b=!0}catch{b=!1}r.restore(I)}else if(b=this._peekTag(r,q,i.any),r.isError(b))return b}var k;if(i.obj&&b&&(k=r.enterObject()),b){if(i.explicit!==null){var D=this._decodeTag(r,i.explicit);if(r.isError(D))return D;r=D}var N=r.offset;if(i.use===null&&i.choice===null){if(i.any)var I=r.save();var F=this._decodeTag(r,i.implicit!==null?i.implicit:i.tag,i.any);if(r.isError(F))return F;i.any?v=r.raw(I):r=F}if(c&&c.track&&i.tag!==null&&c.track(r.path(),N,r.length,"tagged"),c&&c.track&&i.tag!==null&&c.track(r.path(),r.offset,r.length,"content"),i.any?v=v:i.choice===null?v=this._decodeGeneric(i.tag,r,c):v=this._decodeChoice(r,c),r.isError(v))return v;if(!i.any&&i.choice===null&&i.children!==null&&i.children.forEac
18h(function(Z){Z._decode(r,c)}),i.contains&&(i.tag==="octstr"||i.tag==="bitstr")){var z=new u(v);v=this._getUse(i.contains,r._reporterState.obj)._decode(z,c)}}return i.obj&&b&&(v=r.leaveObject(k)),i.key!==null&&(v!==null||b===!0)?r.leaveKey(S,i.key,v):S!==null&&r.exitKey(S),v},h.prototype._decodeGeneric=function(r,c,i){var v=this._baseState;return r==="seq"||r==="set"?null:r==="seqof"||r==="setof"?this._decodeList(c,r,v.args[0],i):/str$/.test(r)?this._decodeStr(c,r,i):r==="objid"&&v.args?this._decodeObjid(c,v.args[0],v.args[1],i):r==="objid"?this._decodeObjid(c,null,null,i):r==="gentime"||r==="utctime"?this._decodeTime(c,r,i):r==="null_"?this._decodeNull(c,i):r==="bool"?this._decodeBool(c,i):r==="objDesc"?this._decodeStr(c,r,i):r==="int"||r==="enum"?this._decodeInt(c,v.args&&v.args[0],i):v.use!==null?this._getUse(v.use,c._reporterState.obj)._decode(c,i):c.error("unknown tag: "+r)},h.prototype._getUse=function(r,c){var i=this._baseState;return i.useDecoder=this._use(r,c),y(i.useDecoder._baseState.parent===null),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},h.prototype._decodeChoice=function(r,c){var i=this._baseState,v=null,b=!1;return Object.keys(i.choice).some(function(S){var q=r.save(),I=i.choice[S];try{var k=I._decode(r,c);if(r.isError(k))return!1;v={type:S,value:k},b=!0}catch{return r.restore(q),!1}return!0},this),b?v:r.error("Choice not matched")},h.prototype._createEncoderBuffer=function(r){return new d(r,this.reporter)},h.prototype._encode=function(r,c,i){var v=this._baseState;if(!(v.default!==null&&v.default===r)){var b=this._encodeValue(r,c,i);if(b!==void 0&&!this._skipDefault(b,c,i))return b}},h.prototype._encodeValue=function(r,c,i){var v=this._baseState;if(v.parent===null)return v.children[0]._encode(r,c||new a);var I=null;if(this.reporter=c,v.optional&&r===void 0)if(v.default!==null)r=v.default;else return;var b=null,S=!1;if(v.any)I=this._createEncoderBuffer(r);else if(v.choice)I=this._encodeChoice(r,c);else if(v.contains)b=this._getUse(v.contains,i)._encode(r,c),S=!0;else if(v.children)b=v.children.map(function(N){if(N._baseState.tag==="null_")return N._encode(null,c,r);if(N._baseState.key===null)return c.error("Child should have a key");var F=c.enterKey(N._baseState.key);if(typeof r!="object")return c.error("Child expected, but input is not object");var z=N._encode(r[N._baseState.key],c,r);return c.leaveKey(F),z},this).filter(function(N){return N}),b=this._createEncoderBuffer(b);else if(v.tag==="seqof"||v.tag==="setof"){if(!(v.args&&v.args.length===1))return c.error("Too many args for : "+v.tag);if(!Array.isArray(r))return c.error("seqof/setof, but data is not Array");var q=this.clone();q._baseState.implicit=null,b=this._createEncoderBuffer(r.map(function(N){var F=this._baseState;return this._getUse(F.args[0],r)._encode(N,c)},q))}else v.use!==null?I=this._getUse(v.use,i)._encode(r,c):(b=this._encodePrimitive(v.tag,r),S=!0);var I;if(!v.any&&v.choice===null){var k=v.implicit!==null?v.implicit:v.tag,D=v.implicit===null?"universal":"context";k===null?v.use===null&&c.error("Tag could be omitted only for .use()"):v.use===null&&(I=this._encodeComposite(k,S,D,b))}return v.explicit!==null&&(I=this._encodeComposite(v.explicit,!1,"context",I)),I},h.prototype._encodeChoice=function(r,c){var i=this._baseState,v=i.choice[r.type];return v||y(!1,r.type+" not found in "+JSON.stringify(Object.keys(i.choice))),v._encode(r.value,c)},h.prototype._encodePrimitive=function(r,c){var i=this._baseState;if(/str$/.test(r))return this._encodeStr(c,r);if(r==="objid"&&i.args)return this._encodeObjid(c,i.reverseArgs[0],i.args[1]);if(r==="objid")return this._encodeObjid(c,null,null);if(r==="gentime"||r==="utctime")return this._encodeTime(c,r);if(r==="null_")return this._encodeNull();if(r==="int"||r==="enum")return this._encodeInt(c,i.args&&i.reverseArgs[0]);if(r==="bool")return this._encodeBool(c);if(r==="objDesc")return this._encodeStr(c,r);throw new Error("Unsupported tag: "+r)},h.prototype._isNumstr=function(r){return/^[0-9 ]*$/.test(r)},h.prototype._isPrintstr=function(r){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(r)}}),require_base=__commonJSMin(n=>{var l=n;l.Reporter=require_reporter().Reporter,l.DecoderBuffer=require_buffer().DecoderBuffer,l.EncoderBuffer=require_buffer().EncoderBuffer,l.Node=require_node()}),require_der$2=__commonJSMin(n=>{var l=require_constants();n.tagClass={0:"universal",1:"application",2:"context",3:"private"},n.tagClassByName=l._reverse(n.tagClass),n.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},n.tagByName=l._reverse(n.tag)}),require_constants=__commonJSMin(n=>{var l=n;l._reverse=function(d){var u={};
18return Object.keys(d).forEach(function(y){(y|0)==y&&(y=y|0);var e=d[y];u[e]=y}),u},l.der=require_der$2()}),require_der$1=__commonJSMin((n,l)=>{var a=require_inherits_browser(),d=require_asn1$1(),u=d.base,y=d.bignum,e=d.constants.der;function s(o){this.enc="der",this.name=o.name,this.entity=o,this.tree=new p,this.tree._init(o.body)}l.exports=s,s.prototype.decode=function(r,c){return r instanceof u.DecoderBuffer||(r=new u.DecoderBuffer(r,c)),this.tree._decode(r,c)};function p(o){u.Node.call(this,"der",o)}a(p,u.Node),p.prototype._peekTag=function(r,c,i){if(r.isEmpty())return!1;var v=r.save(),b=h(r,'Failed to peek tag: "'+c+'"');return r.isError(b)?b:(r.restore(v),b.tag===c||b.tagStr===c||b.tagStr+"of"===c||i)},p.prototype._decodeTag=function(r,c,i){var v=h(r,'Failed to decode tag of "'+c+'"');if(r.isError(v))return v;var b=f(r,v.primitive,'Failed to get length of "'+c+'"');if(r.isError(b))return b;if(!i&&v.tag!==c&&v.tagStr!==c&&v.tagStr+"of"!==c)return r.error('Failed to match tag: "'+c+'"');if(v.primitive||b!==null)return r.skip(b,'Failed to match body of: "'+c+'"');var S=r.save(),q=this._skipUntilEnd(r,'Failed to skip indefinite length body: "'+this.tag+'"');return r.isError(q)?q:(b=r.offset-S.offset,r.restore(S),r.skip(b,'Failed to match body of: "'+c+'"'))},p.prototype._skipUntilEnd=function(r,c){for(;;){var i=h(r,c);if(r.isError(i))return i;var v=f(r,i.primitive,c);if(r.isError(v))return v;var b;if(i.primitive||v!==null?b=r.skip(v):b=this._skipUntilEnd(r,c),r.isError(b))return b;if(i.tagStr==="end")break}},p.prototype._decodeList=function(r,c,i,v){for(var b=[];!r.isEmpty();){var S=this._peekTag(r,"end");if(r.isError(S))return S;var q=i.decode(r,"der",v);if(r.isError(q)&&S)break;b.push(q)}return b},p.prototype._decodeStr=function(r,c){if(c==="bitstr"){var i=r.readUInt8();return r.isError(i)?i:{unused:i,data:r.raw()}}else if(c==="bmpstr"){var v=r.raw();if(v.length%2===1)return r.error("Decoding of string type: bmpstr length mismatch");for(var b="",S=0;S<v.length/2;S++)b+=String.fromCharCode(v.readUInt16BE(S*2));return b}else if(c==="numstr"){var q=r.raw().toString("ascii");return this._isNumstr(q)?q:r.error("Decoding of string type: numstr unsupported characters")}else{if(c==="octstr")return r.raw();if(c==="objDesc")return r.raw();if(c==="printstr"){var I=r.raw().toString("ascii");return this._isPrintstr(I)?I:r.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(c)?r.raw().toString():r.error("Decoding of string type: "+c+" unsupported")}},p.prototype._decodeObjid=function(r,c,i){for(var v,b=[],S=0;!r.isEmpty();){var q=r.readUInt8();S<<=7,S|=q&127,q&128||(b.push(S),S=0)}
18q&128&&b.push(S);var I=b[0]/40|0,k=b[0]%40;if(i?v=b:v=[I,k].concat(b.slice(1)),c){var D=c[v.join(" ")];D===void 0&&(D=c[v.join(".")]),D!==void 0&&(v=D)}return v},p.prototype._decodeTime=function(r,c){var i=r.raw().toString();if(c==="gentime")var v=i.slice(0,4)|0,b=i.slice(4,6)|0,S=i.slice(6,8)|0,q=i.slice(8,10)|0,I=i.slice(10,12)|0,k=i.slice(12,14)|0;else if(c==="utctime"){var v=i.slice(0,2)|0,b=i.slice(2,4)|0,S=i.slice(4,6)|0,q=i.slice(6,8)|0,I=i.slice(8,10)|0,k=i.slice(10,12)|0;v<70?v=2e3+v:v=1900+v}else return r.error("Decoding "+c+" time is not supported yet");return Date.UTC(v,b-1,S,q,I,k,0)},p.prototype._decodeNull=function(r){return null},p.prototype._decodeBool=function(r){var c=r.readUInt8();return r.isError(c)?c:c!==0},p.prototype._decodeInt=function(r,c){var i=new y(r.raw());return c&&(i=c[i.toString(10)]||i),i},p.prototype._use=function(r,c){return typeof r=="function"&&(r=r(c)),r._getDecoder("der").tree};function h(o,r){var c=o.readUInt8(r);if(o.isError(c))return c;var i=e.tagClass[c>>6],v=(c&32)===0;if((c&31)===31){var b=c;for(c=0;(b&128)===128;){if(b=o.readUInt8(r),o.isError(b))return b;c<<=7,c|=b&127}}else c&=31;var S=e.tag[c];return{cls:i,primitive:v,tag:c,tagStr:S}}function f(o,r,c){var i=o.readUInt8(c);if(o.isError(i))return i;if(!r&&i===128)return null;if(!(i&128))return i;var v=i&127;if(v>4)return o.error("length octect is too long");i=0;for(var b=0;b<v;b++){i<<=8;var S=o.readUInt8(c);if(o.isError(S))return S;i|=S}return i}}),require_pem$1=__commonJSMin((n,l)=>{var a=require_inherits_browser(),d=require_dist().Buffer,u=require_der$1();function y(e){u.call(this,e),this.enc="pem"}a(y,u),l.exports=y,y.prototype.decode=function(s,p){for(var h=s.toString().split(/[\r\n]+/g),f=p.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,r=-1,c=-1,i=0;i<h.length;i++){var v=h[i].match(o);if(v!==null&&v[2]===f)if(r===-1){if(v[1]!=="BEGIN")break;r=i}else{if(v[1]!=="END")break;c=i;break}}if(r===-1||c===-1)throw new Error("PEM section not found for: "+f);var b=h.slice(r+1,c).join("");b.replace(/[^a-z0-9\+\/=]+/gi,"");var S=new d(b,"base64");return u.prototype.decode.call(this,S,p)}}),require_decoders=__commonJSMin(n=>{var l=n;l.der=require_der$1(),l.pem=require_pem$1()}),require_der=__commonJSMin((n,l)=>{var a=require_inherits_browser(),d=require_dist().Buffer,u=require_asn1$1(),y=u.base,e=u.constants.der;function s(o){this.enc="der",this.name=o.name,this.entity=o,this.tree=new p,this.tree._init(o.body)}l.exports=s,s.prototype.encode=function(r,c){return this.tree._encode(r,c).join()};function p(o){y.Node.call(this,"der",o)}a(p,y.Node),p.prototype._encodeComposite=function(r,c,i,v){var b=f(r,c,i,this.reporter);if(v.length<128){var I=new d(2);return I[0]=b,I[1]=v.length,this._createEncoderBuffer([I,v])}for(var S=1,q=v.length;q>=256;q>>=8)S++;var I=new d(2+S);I[0]=b,I[1]=128|S;for(var q=1+S,k=v.length;k>0;q--,k>>=8)I[q]=k&255;return this._createEncoderBuffer([I,v])},p.prototype._encodeStr=function(r,c){if(c==="bitstr")return this._createEncoderBuffer([r.unused|0,r.data]);if(c==="bmpstr"){for(var i=new d(r.length*2),v=0;v<r.length;v++)i.writeUInt16BE(r.charCodeAt(v),v*2);return this._createEncoderBuffer(i)}else return c==="numstr"?this._isNumstr(r)?this._createEncoderBuffer(r):this.reporter.error("Encoding of string type: numstr supports only digits and space"):c==="printstr"?this._isPrintstr(r)?this._createEncoderBuffer(r):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(c)?this._createEncoderBuffer(r):c==="objDesc"?this._createEncoderBuffer(r):this.reporter.error("Encoding of string type: "+c+" unsupported")},p.prototype._encodeObjid=function(r,c,i){if(typeof r=="string"){if(!c)return this.reporter.error("string objid given, but no values map found");if(!c.hasOwnProperty(r))return this.reporter.error("objid not found in values map");r=c[r].split(/[\s\.]+/g);for(var v=0;v<r.length;v++)r[v]|=0}else if(Array.isArray(r)){r=r.slice();for(var v=0;v<r.length;v++)r[v]|=0}if(!Array.isArray(r))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(r));if(!i){if(r[1]>=40)return this.reporter.error("Second objid identifier OOB");r.splice(0,2,r[0]*40+r[1])}for(var b=0,v=0;v<r.length;v++){var S=r[v];for(b++;S>=128;S>>=7)b++}for(var q=new d(b),I=q.length-1,v=r.length-1;v>=0;v--){var S=r[v];for(q[I--]=S&127;(S>>=7)>0;)q[I--]=128|S&127}return this._createEncoderBuffer(q)};function h(o){return o<10?"0"+o:o}p.prototype._encodeTime=function(r,c){var i,v=new Date(r);return c==="gentime"?i=[h(v.getFullYear()),h(v.getUTCMonth()+1),h(v.getUTCDate()),h(v.getUTCHours()),h(v.getUTCMinutes()),h(v.getUTCSeconds()),"Z"].join(""):c==="utctime"?i=[h(v.getFullYear()%100),h(v.getUTCMonth()+1),h(v.getUTCDate()),h(v.getUTCHours()),h(v.getUTCMinutes()),h(v.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+c+" time is not supported yet"),this._encodeStr(i,"octstr")},p.prototype._encodeNull=function(){return this._createEncoderBuffer("")},p.prototype._encodeInt=function(r,c){if(typeof r=="string"){if(!c)return this.reporter.error("String int or enum given, but no values map");if(!c.hasOwnProperty(r))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(r));r=c[r]}if(typeof r!="number"&&!d.isBuffer(r)){var i=r.toArray();!r.sign&&i[0]&128&&i.unshift(0),r=new d(i)}if(d.isBuffer(r)){var v=r.length;r.length===0&&v++;var S=new d(v);return r.copy(S),r.length===0&&(S[0]=0),this._createEncoderBuffer(S)}if(r<128)return this._createEncoderBuffer(r);if(r<256)return this._createEncoderBuffer([0,r]);for(var v=1,b=r;b>=256;b>>=8)v++;for(var S=new Array(v),b=S.length-1;b>=0;b--)S[b]=r&255,r>>=8;return S[0]&128&&S.unshift(0),this._createEncoderBuffer(new d(S))},p.prototype._encodeBool=function(r){return this._createEncoderBuffer(r?255:0)},p.prototype._use=function(r,c){return typeof r=="function"&&(r=r(c)),r._getEncoder("der").tree},p.prototype._skipDefault=function(r,c,i){var v=this._baseState,b;if(v.default===null)return!1;var S=r.join();if(v.defaultBuffer===void 0&&(v.defaultBuffer=this._encodeValue(v.default,c,i).join()),S.length!==v.defaultBuffer.length)return!1;for(b=0;b<S.length;b++)if(S[b]!==v.defaultBuffer[b])return!1;return!0};function f(o,r,c,i){var v;if(o==="seqof"?o="seq":o==="setof"&&(o="set"),e.tagByName.hasOwnProperty(o))v=e.tagByName[o];else if(typeof o=="number"&&(o|0)===o)v=o;else return i.error("Unknown tag: "+o);return v>=31?i.error("Multi-octet tag encoding unsupported"):(r||(v|=32),v|=e.tagClassByName[c||"universal"]<<6,v)}}),require_pem=__commonJSMin((n,l)=>{var a=require_inherits_browser(),d=require_der();function u(y){d.call(this,y),this.enc="pem"}a(u,d),l.exports=u,u.prototype.encode=function(e,s){for(var p=d.prototype.encode.call(this,e).toString("base64"),h=["-----BEGIN "+s.label+"-----"],f=0;f<p.length;f+=64)h.push(p.slice(f,f+64));return h.push("-----END "+s.label+"-----"),h.join(`
19`)}}),require_encoders=__commonJSMin(n=>{var l=n;l.der=require_der(),l.pem=require_pem()}),require_asn1$1=__commonJSMin(n=>{var l=n;l.bignum=require_bn$1(),l.define=require_api().define,l.base=require_base(),l.constants=require_constants(),l.decoders=require_decoders(),l.encoders=require_encoders()}),require_certificate=__commonJSMin((n,l)=>{var a=require_asn1$1(),d=a.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),u=a.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),y=a.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),e=a.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(y),this.key("subjectPublicKey").bitstr())}),s=a.define("RelativeDistinguishedName",function(){this.setof(u)}),p=a.define("RDNSequence",function(){this.seqof(s)}),h=a.define("Name",function(){this.choice({rdnSequence:this.use(p)})}),f=a.define("Validity",function(){this.seq().obj(this.key("notBefore").use(d),this.key("notAfter").use(d))}),o=a.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),r=a.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(y),this.key("issuer").use(h),this.key("validity").use(f),this.key("subject").use(h),this.key("subjectPublicKeyInfo").use(e),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(o).optional())}
19),c=a.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(r),this.key("signatureAlgorithm").use(y),this.key("signatureValue").bitstr())});l.exports=c}),require_asn1=__commonJSMin(n=>{var l=require_asn1$1();n.certificate=require_certificate();var a=l.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});n.RSAPrivateKey=a;var d=l.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});n.RSAPublicKey=d;var u=l.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),y=l.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(u),this.key("subjectPublicKey").bitstr())});n.PublicKey=y;var e=l.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(u),this.key("subjectPrivateKey").octstr())});n.PrivateKey=e;var s=l.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});n.EncryptedPrivateKey=s;var p=l.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});n.DSAPrivateKey=p,n.DSAparam=l.define("DSAparam",function(){this.int()});var h=l.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),f=l.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())});n.ECPrivateKey=f,n.signature=l.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}),aesid_exports=__exportAll({default:()=>aesid_default}),aesid_default,init_aesid=__esmMin(()=>{aesid_default={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}}),require_fixProc=__commonJSMin((n,l)=>{var a=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,d=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,u=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,y=require_evp_bytestokey(),e=require_browser$6(),s=require_safe_buffer$1().Buffer;l.exports=function(p,h){var f=p.toString(),o=f.match(a),r;if(o){var i="aes"+o[1],v=s.from(o[2],"hex"),b=s.from(o[3].replace(/[\r\n]/g,""),"base64"),S=y(h,v.slice(0,8),parseInt(o[1],10)).key,q=[],I=e.createDecipheriv(i,S,v);q.push(I.update(b)),q.push(I.final()),r=s.concat(q)}else{var c=f.match(u);r=s.from(c[2].replace(/[\r\n]/g,""),"base64")}return{tag:f.match(d)[1],data:r}}}),require_parse_asn1=__commonJSMin((n,l)=>{var a=require_asn1(),d=(init_aesid(),__toCommonJS(aesid_exports).default),u=require_fixProc(),y=require_browser$6(),e=require_browser$7(),s=require_safe_buffer$1().Buffer;function p(f,o){var r=f.algorithm.decrypt.kde.kdeparams.salt,c=parseInt(f.algorithm.decrypt.kde.kdeparams.iters.toString(),10),i=d[f.algorithm.decrypt.cipher.algo.join(".")],v=f.algorithm.decrypt.cipher.iv,b=f.subjectPrivateKey,S=parseInt(i.split("-")[1],10)/8,q=e.pbkdf2Sync(o,r,c,S,"sha1"),I=y.createDecipheriv(i,q,v),k=[];return k.push(I.update(b)),k.push(I.final()),s.concat(k)}function h(f){var o;typeof f=="object"&&!s.isBuffer(f)&&(o=f.passphrase,f=f.key),typeof f=="string"&&(f=s.from(f));var r=u(f,o),c=r.tag,i=r.data,v,b;switch(c){case"CERTIFICATE":b=a.certificate.decode(i,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(b||(b=a.PublicKey.decode(i,"der")),v=b.algorithm.algorithm.join("."),v){case"1.2.840.113549.1.1.1":return a.RSAPublicKey.decode(b.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return b.subjectPrivateKey=b.subjectPublicKey,{type:"ec",data:b};case"1.2.840.10040.4.1":return b.algorithm.params.pub_key=a.DSAparam.decode(b.subjectPublicKey.data,"der"),{type:"dsa",data:b.algorithm.params};default:throw new Error("unknown key id "+v)}case"ENCRYPTED PRIVATE KEY":i=a.EncryptedPrivateKey.decode(i,"der"),i=p(i,o);case"PRIVATE KEY":switch(b=a.PrivateKey.decode(i,"der"),v=b.algorithm.algorithm.join("."),v){case"1.2.840.113549.1.1.1":return a.RSAPrivateKey.decode(b.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:b.algorithm.curve,privateKey:a.ECPrivateKey.decode(b.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return b.algorithm.params.priv_key=a.DSAparam.decode(b.subjectPrivateKey,"der"),{type:"dsa",params:b.algorithm.params};default:throw new Error("unknown key id "+v)}case"RSA PUBLIC KEY":return a.RSAPublicKey.decode(i,"der");case"RSA PRIVATE KEY":return a.RSAPrivateKey.decode(i,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:a.DSAPrivateKey.decode(i,"der")};case"EC PRIVATE KEY":return i=a.ECPrivateKey.decode(i,"der"),{curve:i.parameters.value,privateKey:i.privateKey};default:throw new Error("unknown key type "+c)}}h.signature=a.signature,l.exports=h}),curves_exports=__exportAll({default:()=>curves_default}),curves_default,init_curves=__esmMin(()=>{curves_default={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}}),require_sign=__commonJSMin((n,l)=>{var a=require_safe_buffer$1().Buffer,d=require_browser$8(),u=require_browserify_rsa(),y=require_elliptic().ec,e=require_bn(),s=require_parse_asn1(),p=(init_curves(),__toCommonJS(curves_exports).default),h=1;function f(I,k,D,N,F){var z=s(k);if(z.curve){if(N!=="ecdsa"&&N!=="ecdsa/rsa")throw new Error("wrong private key type");return o(I,z)}else if(z.type==="dsa"){if(N!=="dsa")throw new Error("wrong private key type");return r(I,z,D)}if(N!=="rsa"&&N!=="ecdsa/rsa")throw new Error("wrong private key type");if(k.padding!==void 0&&k.padding!==h)throw new Error("illegal or unsupported padding mode");I=a.concat([F,I]);for(var G=z.modulus.byteLength(),Z=[0,1];I.length+Z.length+1<G;)Z.push(255);Z.push(0);for(var re=-1;++re<I.length;)Z.push(I[re]);return u(Z,z)}function o(I,k){var D=p[k.curve.join(".")];if(!D)throw new Error("unknown curve "+k.curve.join("."));var N=new y(D).keyFromPrivate(k.privateKey).sign(I);return a.from(N.toDER())}function r(I,k,D){for(var N=k.params.priv_key,F=k.params.p,z=k.params.q,G=k.params.g,Z=new e(0),re,C=v(
19I,z).mod(z),m=!1,O=i(N,z,I,D);m===!1;)re=S(z,O,D),Z=q(G,re,F,z),m=re.invm(z).imul(C.add(N.mul(Z))).mod(z),m.cmpn(0)===0&&(m=!1,Z=new e(0));return c(Z,m)}function c(I,k){I=I.toArray(),k=k.toArray(),I[0]&128&&(I=[0].concat(I)),k[0]&128&&(k=[0].concat(k));var D=[48,I.length+k.length+4,2,I.length];return D=D.concat(I,[2,k.length],k),a.from(D)}function i(I,k,D,N){if(I=a.from(I.toArray()),I.length<k.byteLength()){var F=a.alloc(k.byteLength()-I.length);I=a.concat([F,I])}var z=D.length,G=b(D,k),Z=a.alloc(z);Z.fill(1);var re=a.alloc(z);return re=d(N,re).update(Z).update(a.from([0])).update(I).update(G).digest(),Z=d(N,re).update(Z).digest(),re=d(N,re).update(Z).update(a.from([1])).update(I).update(G).digest(),Z=d(N,re).update(Z).digest(),{k:re,v:Z}}function v(I,k){var D=new e(I),N=(I.length<<3)-k.bitLength();return N>0&&D.ishrn(N),D}function b(I,k){I=v(I,k),I=I.mod(k);var D=a.from(I.toArray());if(D.length<k.byteLength()){var N=a.alloc(k.byteLength()-D.length);D=a.concat([N,D])}return D}function S(I,k,D){var N,F;do{for(N=a.alloc(0);N.length*8<I.bitLength();)k.v=d(D,k.k).update(k.v).digest(),N=a.concat([N,k.v]);F=v(N,I),k.k=d(D,k.k).update(k.v).update(a.from([0])).digest(),k.v=d(D,k.k).update(k.v).digest()}while(F.cmp(I)!==-1);return F}function q(I,k,D,N){return I.toRed(e.mont(D)).redPow(k).fromRed().mod(N)}l.exports=f,l.exports.getKey=i,l.exports.makeKey=S}),require_verify=__commonJSMin((n,l)=>{var a=require_safe_buffer$1().Buffer,d=require_bn(),u=require_elliptic().ec,y=require_parse_asn1(),e=(init_curves(),__toCommonJS(curves_exports).default);function s(o,r,c,i,v){var b=y(c);if(b.type==="ec"){if(i!=="ecdsa"&&i!=="ecdsa/rsa")throw new Error("wrong public key type");return p(o,r,b)}else if(b.type==="dsa"){if(i!=="dsa")throw new Error("wrong public key type");return h(o,r,b)}if(i!=="rsa"&&i!=="ecdsa/rsa")throw new Error("wrong public key type");r=a.concat([v,r]);for(var S=b.modulus.byteLength(),q=[1],I=0;r.length+q.length+2<S;)q.push(255),I+=1;q.push(0);for(var k=-1;++k<r.length;)q.push(r[k]);q=a.from(q);var D=d.mont(b.modulus);o=new d(o).toRed(D),o=o.redPow(new d(b.publicExponent)),o=a.from(o.fromRed().toArray());var N=I<8?1:0;for(S=Math.min(o.length,q.length),o.length!==q.length&&(N=1),k=-1;++k<S;)N|=o[k]^q[k];return N===0}function p(o,r,c){var i=e[c.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+c.data.algorithm.curve.join("."));var v=new u(i),b=c.data.subjectPrivateKey.data;return v.verify(r,o,b)}function h(o,r,c){var i=c.data.p,v=c.data.q,b=c.data.g,S=c.data.pub_key,q=y.signature.decode(o,"der"),I=q.s,k=q.r;f(I,v),f(k,v);var D=d.mont(i),N=I.invm(v);return b.toRed(D).redPow(new d(r).mul(N).mod(v)).fromRed().mul(S.toRed(D).redPow(k.mul(N).mod(v)).fromRed()).mod(i).mod(v).cmp(k)===0}function f(o,r){if(o.cmpn(0)<=0)throw new Error("invalid sig");if(o.cmp(r)>=0)throw new Error("invalid sig")}l.exports=s}),require_browser$3=__commonJSMin((n,l)=>{var a=require_safe_buffer$1().Buffer,d=require_browser$9(),u=require_readable_browser(),y=require_inherits_browser(),e=require_sign(),s=require_verify(),p=(init_algorithms(),__toCommonJS(algorithms_exports).default);Object.keys(p).forEach(function(c){p[c].id=a.from(p[c].id,"hex"),p[c.toLowerCase()]=p[c]});function h(c){u.Writable.call(this);var i=p[c];if(!i)throw new Error("Unknown message digest");this._hashType=i.hash,this._hash=d(i.hash),this._tag=i.id,this._signType=i.sign}y(h,u.Writable),h.prototype._write=function(i,v,b){this._hash.update(i),b()},h.prototype.update=function(i,v){return this._hash.update(typeof i=="string"?a.from(i,v):i),this},h.prototype.sign=function(i,v){this.end();var b=e(this._hash.digest(),i,this._hashType,this._signType,this._tag);return v?b.toString(v):b};function f(c){u.Writable.call(this);var i=p[c];if(!i)throw new Error("Unknown message digest");this._hash=d(i.hash),this._tag=i.id,this._signType=i.sign}y(f,u.Writable),f.prototype._write=function(i,v,b){this._hash.update(i),b()},f.prototype.update=function(i,v){return this._hash.update(typeof i=="string"?a.from(i,v):i),this},f.prototype.verify=function(i,v,b){var S=typeof v=="string"?a.from(v,b):v;return this.end(),s(S,this._hash.digest(),i,this._signType,this._tag)};function o(c){return new h(c)}function r(c){return new f(c)}l.exports={Sign:o,Verify:r,createSign:o,createVerify:r}}),require_browser$2=__commonJSMin((n,l)=>{init_dist$3();var a=require_elliptic(),d=require_bn$1();l.exports=function(p){return new y(p)};var u={secp256k1:{name:"secp256k1",byteLength:32}
19,secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};u.p224=u.secp224r1,u.p256=u.secp256r1=u.prime256v1,u.p192=u.secp192r1=u.prime192v1,u.p384=u.secp384r1,u.p521=u.secp521r1;function y(s){this.curveType=u[s],this.curveType||(this.curveType={name:s}),this.curve=new a.ec(this.curveType.name),this.keys=void 0}y.prototype.generateKeys=function(s,p){return this.keys=this.curve.genKeyPair(),this.getPublicKey(s,p)},y.prototype.computeSecret=function(s,p,h){return p=p||"utf8",Buffer.isBuffer(s)||(s=new Buffer(s,p)),e(this.curve.keyFromPublic(s).getPublic().mul(this.keys.getPrivate()).getX(),h,this.curveType.byteLength)},y.prototype.getPublicKey=function(s,p){var h=this.keys.getPublic(p==="compressed",!0);return p==="hybrid"&&(h[h.length-1]%2?h[0]=7:h[0]=6),e(h,s)},y.prototype.getPrivateKey=function(s){return e(this.keys.getPrivate(),s)},y.prototype.setPublicKey=function(s,p){return p=p||"utf8",Buffer.isBuffer(s)||(s=new Buffer(s,p)),this.keys._importPublic(s),this},y.prototype.setPrivateKey=function(s,p){p=p||"utf8",Buffer.isBuffer(s)||(s=new Buffer(s,p));var h=new d(s);return h=h.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(h),this};function e(s,p,h){Array.isArray(s)||(s=s.toArray());var f=new Buffer(s);if(h&&f.length<h){var o=new Buffer(h-f.length);o.fill(0),f=Buffer.concat([o,f])}return p?f.toString(p):f}}),require_mgf=__commonJSMin((n,l)=>{var a=require_browser$9(),d=require_safe_buffer$1().Buffer;l.exports=function(y,e){for(var s=d.alloc(0),p=0,h;s.length<e;)h=u(p++),s=d.concat([s,a("sha1").update(y).update(h).digest()]);return s.slice(0,e)};function u(y){var e=d.allocUnsafe(4);return e.writeUInt32BE(y,0),e}}),require_xor=__commonJSMin((n,l)=>{l.exports=function(d,u){for(var y=d.length,e=-1;++e<y;)d[e]^=u[e];return d}}),require_withPublic=__commonJSMin((n,l)=>{var a=require_bn$1(),d=require_safe_buffer$1().Buffer;function u(y,e){return d.from(y.toRed(a.mont(e.modulus)).redPow(new a(e.publicExponent)).fromRed().toArray())}l.exports=u}),require_publicEncrypt=__commonJSMin((n,l)=>{var a=require_parse_asn1(),d=require_browser$11(),u=require_browser$9(),y=require_mgf(),e=require_xor(),s=require_bn$1(),p=require_withPublic(),h=require_browserify_rsa(),f=require_safe_buffer$1().Buffer;l.exports=function(v,b,S){var q;v.padding?q=v.padding:S?q=1:q=4;var I=a(v),k;if(q===4)k=o(I,b);else if(q===1)k=r(I,b,S);else if(q===3){if(k=new s(b),k.cmp(I.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return S?h(k,I):p(k,I)};function o(i,v){var b=i.modulus.byteLength(),S=v.length,q=u("sha1").update(f.alloc(0)).digest(),I=q.length,k=2*I;if(S>b-k-2)throw new Error("message too long");var D=f.alloc(b-S-k-2),N=b-I-1,F=d(I),z=e(f.concat([q,D,f.alloc(1,1),v],N),y(F,N)),G=e(F,y(z,I));return new s(f.concat([f.alloc(1),G,z],b))}function r(i,v,b){var S=v.length,q=i.modulus.byteLength();if(S>q-11)throw new Error("message too long");var I;return b?I=f.alloc(q-S-3,255):I=c(q-S-3),new s(f.concat([f.from([0,b?1:2]),I,f.alloc(1),v],q))}function c(i){for(var v=f.allocUnsafe(i),b=0,S=d(i*2),q=0,I;b<i;)q===S.length&&(S=d(i*2),q=0),I=S[q++],I&&(v[b++]=I);return v}}),require_privateDecrypt=__commonJSMin((n,l)=>{var a=require_parse_asn1(),d=require_mgf(),u=require_xor(),y=require_bn$1(),e=require_browserify_rsa(),s=require_browser$9(),p=require_withPublic(),h=require_safe_buffer$1().Buffer;l.exports=function(i,v,b){var S;i.padding?S=i.padding:b?S=1:S=4;var q=a(i),I=q.modulus.byteLength();if(v.length>I||new y(v).cmp(q.modulus)>=0)throw new Error("decryption error");var k;b?k=p(new y(v),q):k=e(v,q);var D=h.alloc(I-k.length);if(k=h.concat([D,k],I),S===4)return f(q,k);if(S===1)return o(q,k,b);if(S===3)return k;throw new Error("unknown padding")};function f(c,i){var v=c.modulus.byteLength(),b=s("sha1").update(h.alloc(0)).digest(),S=b.length;if(i[0]!==0)throw new Error("decryption error");var q=i.slice(1,S+1),I=i.slice(S+1),k=u(I,d(u(q,d(I,S)),v-S-1));if(r(b,k.slice(0,S)))throw new Error("decryption error");for(var D=S;k[D]===0;)D++;if(k[D++]!==1)throw new Error("decryption error");return k.slice(D)}function o(c,i,v){for(var b=i.slice(0,2),S=2,q=0;i[S++]!==0;)if(S>=i.length){q++;break}var I=i.slice(2,S-1);if((b.toString("hex")!=="0002"&&!v||b.toString("hex")!=="0001"&&v)&&q++,I.length<8&&q++,q)throw new Error("decryption error");return i.slice(S)}function r(c,i){c=h.from(c),i=h.from(i);var v=0,b=c.length;c.length!==i.length&&(v++,b=Math.min(c.length,i.length));for(var S=-1;++S<b;)v+=c[S]^i[S];return v}}),require_browser$1=__commonJSMin(n=>{n.publicEncrypt=require_publicEncrypt(),n.privateDecrypt=require_privateDecrypt(),n.privateEncrypt=function(a,d){return n.publicEncrypt(a,d,!0)},n.publicDecrypt=function(a,d){return n.privateDecrypt(a,d,!0)}}),require_browser=__commonJSMin(n=>{init_dist$1(),init_dist$2();function l(){throw new Error(`secure random number generation not supported by this browser
20use chrome, FireFox or Internet Explorer 11`)}var a=require_safe_buffer$1(),d=require_browser$11(),u=a.Buffer,y=a.kMaxLength,e=global$1.crypto||global$1.msCrypto,s=Math.pow(2,32)-1;function p(c,i){if(typeof c!="number"||c!==c)throw new TypeError("offset must be a number");if(c>s||c<0)throw new TypeError("offset must be a uint32");if(c>y||c>i)throw new RangeError("offset out of range")}function h(c,i,v){if(typeof c!="number"||c!==c)throw new TypeError("size must be a number");if(c>s||c<0)throw new TypeError("size must be a uint32");if(c+i>v||c>y)throw new RangeError("buffer too small")}e&&e.getRandomValues||!process$1.browser?(n.randomFill=f,n.randomFillSync=r):(n.randomFill=l,n.randomFillSync=l);function f(c,i,v,b){if(!u.isBuffer(c)&&!(c instanceof global$1.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof i=="function")b=i,i=0,v=c.length;else if(typeof v=="function")b=v,v=c.length-i;else if(typeof b!="function")throw new TypeError('"cb" argument must be a function');return p(i,c.length),h(v,i,c.length),o(c,i,v,b)}function o(c,i,v,b){if(process$1.browser){var S=c.buffer,q=new Uint8Array(S,i,v);if(e.getRandomValues(q),b){process$1.nextTick(function(){b(null,c)});return}return c}if(b){d(v,function(I,k){if(I)return b(I);k.copy(c,i),b(null,c)});return}return d(v).copy(c,i),c}function r(c,i,v){if(typeof i>"u"&&(i=0),!u.isBuffer(c)&&!(c instanceof global$1.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return p(i,c.length),v===void 0&&(v=c.length-i),h(v,i,c.length),o(c,i,v)}}),require_crypto_browserify=__commonJSMin(n=>{n.randomBytes=n.rng=n.pseudoRandomBytes=n.prng=require_browser$11(),n.createHash=n.Hash=require_browser$9(),n.createHmac=n.Hmac=require_browser$8();var l=require_algos(),a=Object.keys(l),d=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a);n.getHashes=function(){return d};var u=require_browser$7();n.pbkdf2=u.pbkdf2,n.pbkdf2Sync=u.pbkdf2Sync;var y=require_browser$5();n.Cipher=y.Cipher,n.createCipher=y.createCipher,n.Cipheriv=y.Cipheriv,n.createCipheriv=y.createCipheriv,n.Decipher=y.Decipher,n.createDecipher=y.createDecipher,n.Decipheriv=y.Decipheriv,n.createDecipheriv=y.createDecipheriv,n.getCiphers=y.getCiphers,n.listCiphers=y.listCiphers;var e=require_browser$4();n.DiffieHellmanGroup=e.DiffieHellmanGroup,n.createDiffieHellmanGroup=e.createDiffieHellmanGroup,n.getDiffieHellman=e.getDiffieHellman,n.createDiffieHellman=e.createDiffieHellman,n.DiffieHellman=e.DiffieHellman;var s=require_browser$3();n.createSign=s.createSign,n.Sign=s.Sign,n.createVerify=s.createVerify,n.Verify=s.Verify,n.createECDH=require_browser$2();var p=require_browser$1();n.publicEncrypt=p.publicEncrypt,n.privateEncrypt=p.privateEncrypt,n.publicDecrypt=p.publicDecrypt,n.privateDecrypt=p.privateDecrypt;var h=require_browser();n.randomFill=h.randomFill,n.randomFillSync=h.randomFillSync,n.createCredentials=function(){throw new Error(`sorry, createCredentials is not implemented yet
21we accept pull requests
22https://github.com/browserify/crypto-browserify`)},n.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}});export{axios as n,require_crypto_browserify as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.