@glodon-aiot/agent-cli-sdk 2.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +70 -0
- package/dist/agent-cli-sdk.js +34975 -0
- package/dist/agent-cli-sdk.umd.cjs +150 -0
- package/dist/cdn/agent-cli-sdk.js +32945 -0
- package/dist/cdn/agent-cli-sdk.umd.cjs +140 -0
- package/dist/cdn/src/AgentPlugin.d.ts +17 -0
- package/dist/cdn/src/AgentSession.d.ts +8 -0
- package/dist/cdn/src/BotClient.d.ts +46 -0
- package/dist/cdn/src/Config.d.ts +32 -0
- package/dist/cdn/src/DialogSession.d.ts +21 -0
- package/dist/cdn/src/EventBus.d.ts +23 -0
- package/dist/cdn/src/Logger.d.ts +12 -0
- package/dist/cdn/src/PayloadTypes.d.ts +84 -0
- package/dist/cdn/src/Session.d.ts +156 -0
- package/dist/cdn/src/__ tests __/AgentClient.spec.d.ts +1 -0
- package/dist/cdn/src/__ tests __/AgentSession.spec.d.ts +1 -0
- package/dist/cdn/src/__ tests __/DialogClient.spec.d.ts +1 -0
- package/dist/cdn/src/api/fetchEventSource/fetch.d.ts +44 -0
- package/dist/cdn/src/api/fetchEventSource/index.d.ts +1 -0
- package/dist/cdn/src/api/fetchEventSource/parse.d.ts +36 -0
- package/dist/cdn/src/api/index.d.ts +2 -0
- package/dist/cdn/src/index.d.ts +5 -0
- package/dist/cdn/src/utils.d.ts +4 -0
- package/dist/es/AgentPlugin.mjs +20 -0
- package/dist/es/AgentSession.mjs +243 -0
- package/dist/es/BotClient.mjs +242 -0
- package/dist/es/Config.mjs +34 -0
- package/dist/es/DialogSession.mjs +281 -0
- package/dist/es/EventBus.mjs +64 -0
- package/dist/es/Logger.mjs +31 -0
- package/dist/es/PayloadTypes.mjs +4 -0
- package/dist/es/Session.mjs +527 -0
- package/dist/es/_virtual/_commonjsHelpers.mjs +4 -0
- package/dist/es/_virtual/index.mjs +4 -0
- package/dist/es/_virtual/index2.mjs +4 -0
- package/dist/es/_virtual/index3.mjs +4 -0
- package/dist/es/_virtual/minio-zj.mjs +4 -0
- package/dist/es/api/fetchEventSource/fetch.mjs +112 -0
- package/dist/es/api/fetchEventSource/parse.mjs +97 -0
- package/dist/es/api/index.mjs +48 -0
- package/dist/es/index.mjs +11 -0
- package/dist/es/node_modules/@glodon-aiot/minio/dist/minio-zj.mjs +26485 -0
- package/dist/es/node_modules/@socket.io/component-emitter/lib/esm/index.mjs +54 -0
- package/dist/es/node_modules/base64-js/index.mjs +47 -0
- package/dist/es/node_modules/buffer/index.mjs +927 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/has-cors.mjs +9 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/parseqs.mjs +18 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/parseuri.mjs +24 -0
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/yeast.mjs +19 -0
- package/dist/es/node_modules/engine.io-client/build/esm/globalThis.browser.mjs +4 -0
- package/dist/es/node_modules/engine.io-client/build/esm/socket.mjs +317 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transport.mjs +113 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/index.mjs +11 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/polling.mjs +273 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.mjs +8 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/websocket.mjs +87 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/webtransport.mjs +52 -0
- package/dist/es/node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.mjs +21 -0
- package/dist/es/node_modules/engine.io-client/build/esm/util.mjs +23 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/commons.mjs +21 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.mjs +14 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/decodePacket.browser.mjs +39 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/encodePacket.browser.mjs +28 -0
- package/dist/es/node_modules/engine.io-parser/build/esm/index.mjs +105 -0
- package/dist/es/node_modules/ieee754/index.mjs +28 -0
- package/dist/es/node_modules/js-base64/base64.mjs +31 -0
- package/dist/es/node_modules/socket.io-client/build/esm/contrib/backo2.mjs +26 -0
- package/dist/es/node_modules/socket.io-client/build/esm/index.mjs +25 -0
- package/dist/es/node_modules/socket.io-client/build/esm/manager.mjs +242 -0
- package/dist/es/node_modules/socket.io-client/build/esm/on.mjs +8 -0
- package/dist/es/node_modules/socket.io-client/build/esm/socket.mjs +608 -0
- package/dist/es/node_modules/socket.io-client/build/esm/url.mjs +19 -0
- package/dist/es/node_modules/socket.io-parser/build/esm/binary.mjs +52 -0
- package/dist/es/node_modules/socket.io-parser/build/esm/index.mjs +203 -0
- package/dist/es/node_modules/socket.io-parser/build/esm/is-binary.mjs +26 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/native.mjs +6 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/rng.mjs +10 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
- package/dist/es/node_modules/uuid/dist/esm-browser/v4.mjs +19 -0
- package/dist/es/packages/apis/dist/es/aecpilot/model.mjs +4 -0
- package/dist/es/packages/apis/dist/es/aecpilotui/index.mjs +8 -0
- package/dist/es/packages/apis/dist/es/agentcliui/index.mjs +8 -0
- package/dist/es/packages/apis/dist/es/base/index.mjs +154 -0
- package/dist/es/packages/apis/dist/es/cvforce/index.mjs +431 -0
- package/dist/es/packages/apis/dist/es/cvforce/model.mjs +5 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/native.mjs +1 -0
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs +3 -0
- package/dist/es/utils.mjs +11 -0
- package/dist/lib/index.js +126 -0
- package/dist/src/AgentPlugin.d.ts +17 -0
- package/dist/src/AgentSession.d.ts +8 -0
- package/dist/src/BotClient.d.ts +46 -0
- package/dist/src/Config.d.ts +32 -0
- package/dist/src/DialogSession.d.ts +21 -0
- package/dist/src/EventBus.d.ts +23 -0
- package/dist/src/Logger.d.ts +12 -0
- package/dist/src/PayloadTypes.d.ts +84 -0
- package/dist/src/Session.d.ts +155 -0
- package/dist/src/__ tests __/AgentClient.spec.d.ts +1 -0
- package/dist/src/__ tests __/AgentSession.spec.d.ts +1 -0
- package/dist/src/__ tests __/DialogClient.spec.d.ts +1 -0
- package/dist/src/api/fetchEventSource/fetch.d.ts +44 -0
- package/dist/src/api/fetchEventSource/index.d.ts +1 -0
- package/dist/src/api/fetchEventSource/parse.d.ts +36 -0
- package/dist/src/api/index.d.ts +2 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/utils.d.ts +4 -0
- package/package.json +102 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
(function(Mn,Dn){typeof exports=="object"&&typeof module<"u"?Dn(exports):typeof define=="function"&&define.amd?define(["exports"],Dn):(Mn=typeof globalThis<"u"?globalThis:Mn||self,Dn(Mn.AgentClientSDK={}))})(this,function(Mn){"use strict";class Dn{constructor(I,L=!1){Object.defineProperty(this,"prefix",{enumerable:!0,configurable:!0,writable:!0,value:I}),Object.defineProperty(this,"open",{enumerable:!0,configurable:!0,writable:!0,value:L})}disable(){this.open=!1}enable(){this.open=!0}log(...I){!this.open&&!Dn.debug||console.log(this.prefix,...I)}info(...I){!this.open&&!Dn.debug||console.info(`%c ${this.prefix} %o`,"color:#0f0;",...I)}error(...I){!this.open&&!Dn.debug||console.error(this.prefix,...I)}warn(...I){!this.open&&!Dn.debug||console.warn(this.prefix,...I)}}Object.defineProperty(Dn,"debug",{enumerable:!0,configurable:!0,writable:!0,value:!1});const Vh=new Dn("[Config] ");var to;(function(G){G.dev="https://aiot-dev.glodon.com/api/cvforcepd",G.test="https://aiot-dev.glodon.com/api/cvforce",G.prod="https://copilot.glodon.com/api/cvforce",G.local="http://localhost:3000/api/cvforcepd"})(to||(to={})),Mn.configuration={debug:!1,env:"prod",apiRoot:to.prod,applicationId:"",plugins:{}};function du(G){console.log("configure",G),Dn.debug=(G==null?void 0:G.debug)||!1,Mn.configuration=Object.assign(Object.assign(Object.assign({},Mn.configuration),G),{apiRoot:(G==null?void 0:G.apiRoot)||Mn.configuration.apiRoot||(G!=null&&G.env?to[G.env||"prod"]:Mn.configuration.apiRoot)}),Vh.log("updated",Mn.configuration)}/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */function Kh(G,I){var L={};for(var Q in G)Object.prototype.hasOwnProperty.call(G,Q)&&I.indexOf(Q)<0&&(L[Q]=G[Q]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Q=Object.getOwnPropertySymbols(G);ue<Q.length;ue++)I.indexOf(Q[ue])<0&&Object.prototype.propertyIsEnumerable.call(G,Q[ue])&&(L[Q[ue]]=G[Q[ue]]);return L}function Ft(G,I,L,Q){function ue(de){return de instanceof L?de:new L(function(H){H(de)})}return new(L||(L=Promise))(function(de,H){function _(v){try{M(Q.next(v))}catch(m){H(m)}}function y(v){try{M(Q.throw(v))}catch(m){H(m)}}function M(v){v.done?de(v.value):ue(v.value).then(_,y)}M((Q=Q.apply(G,I||[])).next())})}const ds=typeof Buffer=="function",mu=typeof TextDecoder=="function"?new TextDecoder:void 0;typeof TextEncoder=="function"&&new TextEncoder;const Hh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Wh=Array.prototype.slice.call(Hh),no=(G=>{let I={};return G.forEach((L,Q)=>I[L]=Q),I})(Wh),Zh=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,nr=String.fromCharCode.bind(String),gu=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):G=>new Uint8Array(Array.prototype.slice.call(G,0)),vu=G=>G.replace(/[^A-Za-z0-9\+\/]/g,""),Gh=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Xh=G=>{switch(G.length){case 4:var I=(7&G.charCodeAt(0))<<18|(63&G.charCodeAt(1))<<12|(63&G.charCodeAt(2))<<6|63&G.charCodeAt(3),L=I-65536;return nr((L>>>10)+55296)+nr((L&1023)+56320);case 3:return nr((15&G.charCodeAt(0))<<12|(63&G.charCodeAt(1))<<6|63&G.charCodeAt(2));default:return nr((31&G.charCodeAt(0))<<6|63&G.charCodeAt(1))}},Yh=G=>G.replace(Gh,Xh),yu=typeof atob=="function"?G=>atob(vu(G)):ds?G=>Buffer.from(G,"base64").toString("binary"):G=>{if(G=G.replace(/\s+/g,""),!Zh.test(G))throw new TypeError("malformed base64.");G+="==".slice(2-(G.length&3));let I,L="",Q,ue;for(let de=0;de<G.length;)I=no[G.charAt(de++)]<<18|no[G.charAt(de++)]<<12|(Q=no[G.charAt(de++)])<<6|(ue=no[G.charAt(de++)]),L+=Q===64?nr(I>>16&255):ue===64?nr(I>>16&255,I>>8&255):nr(I>>16&255,I>>8&255,I&255);return L},Jh=ds?G=>gu(Buffer.from(G,"base64")):G=>gu(yu(G).split("").map(I=>I.charCodeAt(0))),Qh=ds?G=>Buffer.from(G,"base64").toString("utf8"):mu?G=>mu.decode(Jh(G)):G=>Yh(yu(G)),ef=G=>vu(G.replace(/[-_]/g,I=>I=="-"?"+":"/")),tf=G=>Qh(ef(G)),io=G=>JSON.parse(tf(G.split(".")[1])),nf=G=>{const I=io(G).exp;return new Date().valueOf()/1e3>=I},rf=G=>G==null?void 0:G.replace(/[\r\n]+/gm,""),of=G=>G.replace(/\\|\\/g,"");var bu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wu(G){return G&&G.__esModule&&Object.prototype.hasOwnProperty.call(G,"default")?G.default:G}var ms={exports:{}},xu=function(I,L){return function(){for(var ue=new Array(arguments.length),de=0;de<ue.length;de++)ue[de]=arguments[de];return I.apply(L,ue)}},sf=xu,ir=Object.prototype.toString;function gs(G){return ir.call(G)==="[object Array]"}function vs(G){return typeof G>"u"}function af(G){return G!==null&&!vs(G)&&G.constructor!==null&&!vs(G.constructor)&&typeof G.constructor.isBuffer=="function"&&G.constructor.isBuffer(G)}function uf(G){return ir.call(G)==="[object ArrayBuffer]"}function cf(G){return typeof FormData<"u"&&G instanceof FormData}function lf(G){var I;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?I=ArrayBuffer.isView(G):I=G&&G.buffer&&G.buffer instanceof ArrayBuffer,I}function hf(G){return typeof G=="string"}function ff(G){return typeof G=="number"}function Mu(G){return G!==null&&typeof G=="object"}function ro(G){if(ir.call(G)!=="[object Object]")return!1;var I=Object.getPrototypeOf(G);return I===null||I===Object.prototype}function pf(G){return ir.call(G)==="[object Date]"}function df(G){return ir.call(G)==="[object File]"}function mf(G){return ir.call(G)==="[object Blob]"}function _u(G){return ir.call(G)==="[object Function]"}function gf(G){return Mu(G)&&_u(G.pipe)}function vf(G){return typeof URLSearchParams<"u"&&G instanceof URLSearchParams}function yf(G){return G.trim?G.trim():G.replace(/^\s+|\s+$/g,"")}function bf(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ys(G,I){if(!(G===null||typeof G>"u"))if(typeof G!="object"&&(G=[G]),gs(G))for(var L=0,Q=G.length;L<Q;L++)I.call(null,G[L],L,G);else for(var ue in G)Object.prototype.hasOwnProperty.call(G,ue)&&I.call(null,G[ue],ue,G)}function bs(){var G={};function I(ue,de){ro(G[de])&&ro(ue)?G[de]=bs(G[de],ue):ro(ue)?G[de]=bs({},ue):gs(ue)?G[de]=ue.slice():G[de]=ue}for(var L=0,Q=arguments.length;L<Q;L++)ys(arguments[L],I);return G}function wf(G,I,L){return ys(I,function(ue,de){L&&typeof ue=="function"?G[de]=sf(ue,L):G[de]=ue}),G}function xf(G){return G.charCodeAt(0)===65279&&(G=G.slice(1)),G}var Qn={isArray:gs,isArrayBuffer:uf,isBuffer:af,isFormData:cf,isArrayBufferView:lf,isString:hf,isNumber:ff,isObject:Mu,isPlainObject:ro,isUndefined:vs,isDate:pf,isFile:df,isBlob:mf,isFunction:_u,isStream:gf,isURLSearchParams:vf,isStandardBrowserEnv:bf,forEach:ys,merge:bs,extend:wf,trim:yf,stripBOM:xf},mr=Qn;function Eu(G){return encodeURIComponent(G).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ku=function(I,L,Q){if(!L)return I;var ue;if(Q)ue=Q(L);else if(mr.isURLSearchParams(L))ue=L.toString();else{var de=[];mr.forEach(L,function(y,M){y===null||typeof y>"u"||(mr.isArray(y)?M=M+"[]":y=[y],mr.forEach(y,function(m){mr.isDate(m)?m=m.toISOString():mr.isObject(m)&&(m=JSON.stringify(m)),de.push(Eu(M)+"="+Eu(m))}))}),ue=de.join("&")}if(ue){var H=I.indexOf("#");H!==-1&&(I=I.slice(0,H)),I+=(I.indexOf("?")===-1?"?":"&")+ue}return I},Mf=Qn;function oo(){this.handlers=[]}oo.prototype.use=function(I,L,Q){return this.handlers.push({fulfilled:I,rejected:L,synchronous:Q?Q.synchronous:!1,runWhen:Q?Q.runWhen:null}),this.handlers.length-1},oo.prototype.eject=function(I){this.handlers[I]&&(this.handlers[I]=null)},oo.prototype.forEach=function(I){Mf.forEach(this.handlers,function(Q){Q!==null&&I(Q)})};var _f=oo,Ef=Qn,kf=function(I,L){Ef.forEach(I,function(ue,de){de!==L&&de.toUpperCase()===L.toUpperCase()&&(I[L]=ue,delete I[de])})},Su=function(I,L,Q,ue,de){return I.config=L,Q&&(I.code=Q),I.request=ue,I.response=de,I.isAxiosError=!0,I.toJSON=function(){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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},I},ws,Au;function Iu(){if(Au)return ws;Au=1;var G=Su;return ws=function(L,Q,ue,de,H){var _=new Error(L);return G(_,Q,ue,de,H)},ws}var xs,Tu;function Sf(){if(Tu)return xs;Tu=1;var G=Iu();return xs=function(L,Q,ue){var de=ue.config.validateStatus;!ue.status||!de||de(ue.status)?L(ue):Q(G("Request failed with status code "+ue.status,ue.config,null,ue.request,ue))},xs}var Ms,Ou;function Af(){if(Ou)return Ms;Ou=1;var G=Qn;return Ms=G.isStandardBrowserEnv()?function(){return{write:function(Q,ue,de,H,_,y){var M=[];M.push(Q+"="+encodeURIComponent(ue)),G.isNumber(de)&&M.push("expires="+new Date(de).toGMTString()),G.isString(H)&&M.push("path="+H),G.isString(_)&&M.push("domain="+_),y===!0&&M.push("secure"),document.cookie=M.join("; ")},read:function(Q){var ue=document.cookie.match(new RegExp("(^|;\\s*)("+Q+")=([^;]*)"));return ue?decodeURIComponent(ue[3]):null},remove:function(Q){this.write(Q,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Ms}var _s,ju;function If(){return ju||(ju=1,_s=function(I){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(I)}),_s}var Es,Nu;function Tf(){return Nu||(Nu=1,Es=function(I,L){return L?I.replace(/\/+$/,"")+"/"+L.replace(/^\/+/,""):I}),Es}var ks,Ru;function Of(){if(Ru)return ks;Ru=1;var G=If(),I=Tf();return ks=function(Q,ue){return Q&&!G(ue)?I(Q,ue):ue},ks}var Ss,Bu;function jf(){if(Bu)return Ss;Bu=1;var G=Qn,I=["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"];return Ss=function(Q){var ue={},de,H,_;return Q&&G.forEach(Q.split(`
|
|
15
|
+
`),function(M){if(_=M.indexOf(":"),de=G.trim(M.substr(0,_)).toLowerCase(),H=G.trim(M.substr(_+1)),de){if(ue[de]&&I.indexOf(de)>=0)return;de==="set-cookie"?ue[de]=(ue[de]?ue[de]:[]).concat([H]):ue[de]=ue[de]?ue[de]+", "+H:H}}),ue},Ss}var As,Cu;function Nf(){if(Cu)return As;Cu=1;var G=Qn;return As=G.isStandardBrowserEnv()?function(){var L=/(msie|trident)/i.test(navigator.userAgent),Q=document.createElement("a"),ue;function de(H){var _=H;return L&&(Q.setAttribute("href",_),_=Q.href),Q.setAttribute("href",_),{href:Q.href,protocol:Q.protocol?Q.protocol.replace(/:$/,""):"",host:Q.host,search:Q.search?Q.search.replace(/^\?/,""):"",hash:Q.hash?Q.hash.replace(/^#/,""):"",hostname:Q.hostname,port:Q.port,pathname:Q.pathname.charAt(0)==="/"?Q.pathname:"/"+Q.pathname}}return ue=de(window.location.href),function(_){var y=G.isString(_)?de(_):_;return y.protocol===ue.protocol&&y.host===ue.host}}():function(){return function(){return!0}}(),As}var Is,Pu;function so(){if(Pu)return Is;Pu=1;function G(I){this.message=I}return G.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},G.prototype.__CANCEL__=!0,Is=G,Is}var Ts,Du;function Lu(){if(Du)return Ts;Du=1;var G=Qn,I=Sf(),L=Af(),Q=ku,ue=Of(),de=jf(),H=Nf(),_=Iu(),y=ao(),M=so();return Ts=function(m){return new Promise(function(s,p){var c=m.data,l=m.headers,f=m.responseType,g;function h(){m.cancelToken&&m.cancelToken.unsubscribe(g),m.signal&&m.signal.removeEventListener("abort",g)}G.isFormData(c)&&delete l["Content-Type"];var u=new XMLHttpRequest;if(m.auth){var w=m.auth.username||"",b=m.auth.password?unescape(encodeURIComponent(m.auth.password)):"";l.Authorization="Basic "+btoa(w+":"+b)}var k=ue(m.baseURL,m.url);u.open(m.method.toUpperCase(),Q(k,m.params,m.paramsSerializer),!0),u.timeout=m.timeout;function A(){if(u){var j="getAllResponseHeaders"in u?de(u.getAllResponseHeaders()):null,P=!f||f==="text"||f==="json"?u.responseText:u.response,B={data:P,status:u.status,statusText:u.statusText,headers:j,config:m,request:u};I(function(te){s(te),h()},function(te){p(te),h()},B),u=null}}if("onloadend"in u?u.onloadend=A:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(A)},u.onabort=function(){u&&(p(_("Request aborted",m,"ECONNABORTED",u)),u=null)},u.onerror=function(){p(_("Network Error",m,null,u)),u=null},u.ontimeout=function(){var P=m.timeout?"timeout of "+m.timeout+"ms exceeded":"timeout exceeded",B=m.transitional||y.transitional;m.timeoutErrorMessage&&(P=m.timeoutErrorMessage),p(_(P,m,B.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",u)),u=null},G.isStandardBrowserEnv()){var x=(m.withCredentials||H(k))&&m.xsrfCookieName?L.read(m.xsrfCookieName):void 0;x&&(l[m.xsrfHeaderName]=x)}"setRequestHeader"in u&&G.forEach(l,function(P,B){typeof c>"u"&&B.toLowerCase()==="content-type"?delete l[B]:u.setRequestHeader(B,P)}),G.isUndefined(m.withCredentials)||(u.withCredentials=!!m.withCredentials),f&&f!=="json"&&(u.responseType=m.responseType),typeof m.onDownloadProgress=="function"&&u.addEventListener("progress",m.onDownloadProgress),typeof m.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",m.onUploadProgress),(m.cancelToken||m.signal)&&(g=function(j){u&&(p(!j||j&&j.type?new M("canceled"):j),u.abort(),u=null)},m.cancelToken&&m.cancelToken.subscribe(g),m.signal&&(m.signal.aborted?g():m.signal.addEventListener("abort",g))),c||(c=null),u.send(c)})},Ts}var Os,qu;function ao(){if(qu)return Os;qu=1;var G=Qn,I=kf,L=Su,Q={"Content-Type":"application/x-www-form-urlencoded"};function ue(y,M){!G.isUndefined(y)&&G.isUndefined(y["Content-Type"])&&(y["Content-Type"]=M)}function de(){var y;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(y=Lu()),y}function H(y,M,v){if(G.isString(y))try{return(M||JSON.parse)(y),G.trim(y)}catch(m){if(m.name!=="SyntaxError")throw m}return(v||JSON.stringify)(y)}var _={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:de(),transformRequest:[function(M,v){return I(v,"Accept"),I(v,"Content-Type"),G.isFormData(M)||G.isArrayBuffer(M)||G.isBuffer(M)||G.isStream(M)||G.isFile(M)||G.isBlob(M)?M:G.isArrayBufferView(M)?M.buffer:G.isURLSearchParams(M)?(ue(v,"application/x-www-form-urlencoded;charset=utf-8"),M.toString()):G.isObject(M)||v&&v["Content-Type"]==="application/json"?(ue(v,"application/json"),H(M)):M}],transformResponse:[function(M){var v=this.transitional||_.transitional,m=v&&v.silentJSONParsing,E=v&&v.forcedJSONParsing,s=!m&&this.responseType==="json";if(s||E&&G.isString(M)&&M.length)try{return JSON.parse(M)}catch(p){if(s)throw p.name==="SyntaxError"?L(p,this,"E_JSON_PARSE"):p}return M}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(M){return M>=200&&M<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return G.forEach(["delete","get","head"],function(M){_.headers[M]={}}),G.forEach(["post","put","patch"],function(M){_.headers[M]=G.merge(Q)}),Os=_,Os}var Rf=Qn,Bf=ao(),Cf=function(I,L,Q){var ue=this||Bf;return Rf.forEach(Q,function(H){I=H.call(ue,I,L)}),I},js,Fu;function Uu(){return Fu||(Fu=1,js=function(I){return!!(I&&I.__CANCEL__)}),js}var zu=Qn,Ns=Cf,Pf=Uu(),Df=ao(),Lf=so();function Rs(G){if(G.cancelToken&&G.cancelToken.throwIfRequested(),G.signal&&G.signal.aborted)throw new Lf("canceled")}var qf=function(I){Rs(I),I.headers=I.headers||{},I.data=Ns.call(I,I.data,I.headers,I.transformRequest),I.headers=zu.merge(I.headers.common||{},I.headers[I.method]||{},I.headers),zu.forEach(["delete","get","head","post","put","patch","common"],function(ue){delete I.headers[ue]});var L=I.adapter||Df.adapter;return L(I).then(function(ue){return Rs(I),ue.data=Ns.call(I,ue.data,ue.headers,I.transformResponse),ue},function(ue){return Pf(ue)||(Rs(I),ue&&ue.response&&(ue.response.data=Ns.call(I,ue.response.data,ue.response.headers,I.transformResponse))),Promise.reject(ue)})},ei=Qn,$u=function(I,L){L=L||{};var Q={};function ue(v,m){return ei.isPlainObject(v)&&ei.isPlainObject(m)?ei.merge(v,m):ei.isPlainObject(m)?ei.merge({},m):ei.isArray(m)?m.slice():m}function de(v){if(ei.isUndefined(L[v])){if(!ei.isUndefined(I[v]))return ue(void 0,I[v])}else return ue(I[v],L[v])}function H(v){if(!ei.isUndefined(L[v]))return ue(void 0,L[v])}function _(v){if(ei.isUndefined(L[v])){if(!ei.isUndefined(I[v]))return ue(void 0,I[v])}else return ue(void 0,L[v])}function y(v){if(v in L)return ue(I[v],L[v]);if(v in I)return ue(void 0,I[v])}var M={url:H,method:H,data:H,baseURL:_,transformRequest:_,transformResponse:_,paramsSerializer:_,timeout:_,timeoutMessage:_,withCredentials:_,adapter:_,responseType:_,xsrfCookieName:_,xsrfHeaderName:_,onUploadProgress:_,onDownloadProgress:_,decompress:_,maxContentLength:_,maxBodyLength:_,transport:_,httpAgent:_,httpsAgent:_,cancelToken:_,socketPath:_,responseEncoding:_,validateStatus:y};return ei.forEach(Object.keys(I).concat(Object.keys(L)),function(m){var E=M[m]||de,s=E(m);ei.isUndefined(s)&&E!==y||(Q[m]=s)}),Q},Bs,Vu;function Ku(){return Vu||(Vu=1,Bs={version:"0.24.0"}),Bs}var Ff=Ku().version,Cs={};["object","boolean","number","function","string","symbol"].forEach(function(G,I){Cs[G]=function(Q){return typeof Q===G||"a"+(I<1?"n ":" ")+G}});var Hu={};Cs.transitional=function(I,L,Q){function ue(de,H){return"[Axios v"+Ff+"] Transitional option '"+de+"'"+H+(Q?". "+Q:"")}return function(de,H,_){if(I===!1)throw new Error(ue(H," has been removed"+(L?" in "+L:"")));return L&&!Hu[H]&&(Hu[H]=!0,console.warn(ue(H," has been deprecated since v"+L+" and will be removed in the near future"))),I?I(de,H,_):!0}};function Uf(G,I,L){if(typeof G!="object")throw new TypeError("options must be an object");for(var Q=Object.keys(G),ue=Q.length;ue-- >0;){var de=Q[ue],H=I[de];if(H){var _=G[de],y=_===void 0||H(_,de,G);if(y!==!0)throw new TypeError("option "+de+" must be "+y);continue}if(L!==!0)throw Error("Unknown option "+de)}}var zf={assertOptions:Uf,validators:Cs},Wu=Qn,$f=ku,Zu=_f,Gu=qf,uo=$u,Xu=zf,gr=Xu.validators;function Nr(G){this.defaults=G,this.interceptors={request:new Zu,response:new Zu}}Nr.prototype.request=function(I){typeof I=="string"?(I=arguments[1]||{},I.url=arguments[0]):I=I||{},I=uo(this.defaults,I),I.method?I.method=I.method.toLowerCase():this.defaults.method?I.method=this.defaults.method.toLowerCase():I.method="get";var L=I.transitional;L!==void 0&&Xu.assertOptions(L,{silentJSONParsing:gr.transitional(gr.boolean),forcedJSONParsing:gr.transitional(gr.boolean),clarifyTimeoutError:gr.transitional(gr.boolean)},!1);var Q=[],ue=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(I)===!1||(ue=ue&&E.synchronous,Q.unshift(E.fulfilled,E.rejected))});var de=[];this.interceptors.response.forEach(function(E){de.push(E.fulfilled,E.rejected)});var H;if(!ue){var _=[Gu,void 0];for(Array.prototype.unshift.apply(_,Q),_=_.concat(de),H=Promise.resolve(I);_.length;)H=H.then(_.shift(),_.shift());return H}for(var y=I;Q.length;){var M=Q.shift(),v=Q.shift();try{y=M(y)}catch(m){v(m);break}}try{H=Gu(y)}catch(m){return Promise.reject(m)}for(;de.length;)H=H.then(de.shift(),de.shift());return H},Nr.prototype.getUri=function(I){return I=uo(this.defaults,I),$f(I.url,I.params,I.paramsSerializer).replace(/^\?/,"")},Wu.forEach(["delete","get","head","options"],function(I){Nr.prototype[I]=function(L,Q){return this.request(uo(Q||{},{method:I,url:L,data:(Q||{}).data}))}}),Wu.forEach(["post","put","patch"],function(I){Nr.prototype[I]=function(L,Q,ue){return this.request(uo(ue||{},{method:I,url:L,data:Q}))}});var Vf=Nr,Ps,Yu;function Kf(){if(Yu)return Ps;Yu=1;var G=so();function I(L){if(typeof L!="function")throw new TypeError("executor must be a function.");var Q;this.promise=new Promise(function(H){Q=H});var ue=this;this.promise.then(function(de){if(ue._listeners){var H,_=ue._listeners.length;for(H=0;H<_;H++)ue._listeners[H](de);ue._listeners=null}}),this.promise.then=function(de){var H,_=new Promise(function(y){ue.subscribe(y),H=y}).then(de);return _.cancel=function(){ue.unsubscribe(H)},_},L(function(H){ue.reason||(ue.reason=new G(H),Q(ue.reason))})}return I.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},I.prototype.subscribe=function(Q){if(this.reason){Q(this.reason);return}this._listeners?this._listeners.push(Q):this._listeners=[Q]},I.prototype.unsubscribe=function(Q){if(this._listeners){var ue=this._listeners.indexOf(Q);ue!==-1&&this._listeners.splice(ue,1)}},I.source=function(){var Q,ue=new I(function(H){Q=H});return{token:ue,cancel:Q}},Ps=I,Ps}var Ds,Ju;function Hf(){return Ju||(Ju=1,Ds=function(I){return function(Q){return I.apply(null,Q)}}),Ds}var Ls,Qu;function Wf(){return Qu||(Qu=1,Ls=function(I){return typeof I=="object"&&I.isAxiosError===!0}),Ls}var ec=Qn,Zf=xu,co=Vf,Gf=$u,Xf=ao();function tc(G){var I=new co(G),L=Zf(co.prototype.request,I);return ec.extend(L,co.prototype,I),ec.extend(L,I),L.create=function(ue){return tc(Gf(G,ue))},L}var Ei=tc(Xf);Ei.Axios=co,Ei.Cancel=so(),Ei.CancelToken=Kf(),Ei.isCancel=Uu(),Ei.VERSION=Ku().version,Ei.all=function(I){return Promise.all(I)},Ei.spread=Hf(),Ei.isAxiosError=Wf(),ms.exports=Ei,ms.exports.default=Ei;var Yf=ms.exports,Jf=Yf;const nc=wu(Jf);var Qf=Object.defineProperty,ic=Object.getOwnPropertySymbols,ep=Object.prototype.hasOwnProperty,tp=Object.prototype.propertyIsEnumerable,rc=(G,I,L)=>I in G?Qf(G,I,{enumerable:!0,configurable:!0,writable:!0,value:L}):G[I]=L,qs=(G,I)=>{for(var L in I||(I={}))ep.call(I,L)&&rc(G,L,I[L]);if(ic)for(var L of ic(I))tp.call(I,L)&&rc(G,L,I[L]);return G},si=(G,I,L)=>new Promise((Q,ue)=>{var de=y=>{try{_(L.next(y))}catch(M){ue(M)}},H=y=>{try{_(L.throw(y))}catch(M){ue(M)}},_=y=>y.done?Q(y.value):Promise.resolve(y.value).then(de,H);_((L=L.apply(G,I)).next())});class np{constructor(I,L){this.axios=I,this.errorHandler=L}get(I,L,Q){return si(this,null,function*(){const ue=this.axios.get(I,{params:L});return this.handleResponse(ue,Q)})}listPaged(I,L){return si(this,null,function*(){const Q=this.axios.get(I,{params:L});return this.handleResponse(Q)})}list(I,L){return si(this,null,function*(){const Q=this.axios.get(I,{params:L});return this.handleResponse(Q)})}delete(I,L){return si(this,null,function*(){const Q=this.axios.delete(I,{params:L});return this.handleResponse(Q)})}post(I,L,Q,ue){return si(this,null,function*(){const de=this.axios.post(I,L,qs({params:Q},ue));return this.handleResponse(de)})}postForm(I,L,Q){return si(this,null,function*(){const ue=this.axios.post(I,L,{params:Q,headers:{"Content-Type":"multipart/form-data"}});return this.handleResponse(ue)})}patch(I,L,Q){return si(this,null,function*(){const ue=this.axios.patch(I,L,{params:Q});return this.handleResponse(ue)})}put(I,L){return si(this,null,function*(){const Q=this.axios.put(I,L);return this.handleResponse(Q)})}upload(I,L,Q){return si(this,null,function*(){const ue=this.axios.post(I,L,qs({},Q));return this.handleResponse(ue)})}getNonStandard(I,L){return si(this,null,function*(){const Q=this.axios.get(I,L);try{const ue=yield Q;if(ue.status===200)return ue}catch(ue){throw this.handleError(ue)}})}postNonStandard(I,L,Q,ue){return si(this,null,function*(){var de,H;const _=yield this.axios.post(I,L,qs({params:Q},ue));if(_.status===200)if((de=_.data)!=null&&de.code)(H=this.errorHandler)!=null&&H.onAppStatusError&&this.errorHandler.onAppStatusError(_.data.code,_.data.message);else return _.data})}handleResponse(I,L){return si(this,null,function*(){try{const Q=yield I;return this.handleAppError(Q.data,L).data}catch(Q){throw this.handleError(Q)}})}handleAppError(I,L){var Q;if(I.code<200||I.code>=300)throw(Q=this.errorHandler)!=null&&Q.onAppStatusError?this.errorHandler.onAppStatusError(I.code,rp(I.code,I.message),L):console.error("未处理应用错误:",I),{isAxiosError:!1,message:I.message};return I}handleError(I){var L,Q;return I.response?(console.log(I.response.data),console.log(I.response.status),console.log(I.response.headers),(L=this.errorHandler)!=null&&L.onHttpStatusError&&(console.log("HTTP 错误",this.errorHandler),this.errorHandler.onHttpStatusError(I.response.status,"",I.response))):I.request?(console.log(I.request),(Q=this.errorHandler)!=null&&Q.onNetworkError&&this.errorHandler.onNetworkError()):console.error("axios request config error:",I),new Error(I.message)}}const ip=G=>G>=10002&&G<=10012,rp=(G,I)=>ip(G)?"数据操作错误":I||"未知接口错误";var oc={exports:{}};/*! For license information please see minio-zj.js.LICENSE.txt */(function(G,I){(function(L,Q){G.exports=Q()})(bu,()=>(()=>{var L={9809:(H,_,y)=>{const M=_;M.bignum=y(4590),M.define=y(2500).define,M.base=y(1979),M.constants=y(6826),M.decoders=y(8307),M.encoders=y(6579)},2500:(H,_,y)=>{const M=y(6579),v=y(8307),m=y(5717);function E(s,p){this.name=s,this.body=p,this.decoders={},this.encoders={}}_.define=function(s,p){return new E(s,p)},E.prototype._createNamed=function(s){const p=this.name;function c(l){this._initNamed(l,p)}return m(c,s),c.prototype._initNamed=function(l,f){s.call(this,l,f)},new c(this)},E.prototype._getDecoder=function(s){return s=s||"der",this.decoders.hasOwnProperty(s)||(this.decoders[s]=this._createNamed(v[s])),this.decoders[s]},E.prototype.decode=function(s,p,c){return this._getDecoder(p).decode(s,c)},E.prototype._getEncoder=function(s){return s=s||"der",this.encoders.hasOwnProperty(s)||(this.encoders[s]=this._createNamed(M[s])),this.encoders[s]},E.prototype.encode=function(s,p,c){return this._getEncoder(p).encode(s,c)}},6625:(H,_,y)=>{const M=y(5717),v=y(8465).b,m=y(2399).Buffer;function E(p,c){v.call(this,c),m.isBuffer(p)?(this.base=p,this.offset=0,this.length=p.length):this.error("Input not Buffer")}function s(p,c){if(Array.isArray(p))this.length=0,this.value=p.map(function(l){return s.isEncoderBuffer(l)||(l=new s(l,c)),this.length+=l.length,l},this);else if(typeof p=="number"){if(!(0<=p&&p<=255))return c.error("non-byte EncoderBuffer value");this.value=p,this.length=1}else if(typeof p=="string")this.value=p,this.length=m.byteLength(p);else{if(!m.isBuffer(p))return c.error("Unsupported type: "+typeof p);this.value=p,this.length=p.length}}M(E,v),_.C=E,E.isDecoderBuffer=function(p){return p instanceof E||typeof p=="object"&&m.isBuffer(p.base)&&p.constructor.name==="DecoderBuffer"&&typeof p.offset=="number"&&typeof p.length=="number"&&typeof p.save=="function"&&typeof p.restore=="function"&&typeof p.isEmpty=="function"&&typeof p.readUInt8=="function"&&typeof p.skip=="function"&&typeof p.raw=="function"},E.prototype.save=function(){return{offset:this.offset,reporter:v.prototype.save.call(this)}},E.prototype.restore=function(p){const c=new E(this.base);return c.offset=p.offset,c.length=this.offset,this.offset=p.offset,v.prototype.restore.call(this,p.reporter),c},E.prototype.isEmpty=function(){return this.offset===this.length},E.prototype.readUInt8=function(p){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(p||"DecoderBuffer overrun")},E.prototype.skip=function(p,c){if(!(this.offset+p<=this.length))return this.error(c||"DecoderBuffer overrun");const l=new E(this.base);return l._reporterState=this._reporterState,l.offset=this.offset,l.length=this.offset+p,this.offset+=p,l},E.prototype.raw=function(p){return this.base.slice(p?p.offset:this.offset,this.length)},_.R=s,s.isEncoderBuffer=function(p){return p instanceof s||typeof p=="object"&&p.constructor.name==="EncoderBuffer"&&typeof p.length=="number"&&typeof p.join=="function"},s.prototype.join=function(p,c){return p||(p=m.alloc(this.length)),c||(c=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(l){l.join(p,c),c+=l.length}):(typeof this.value=="number"?p[c]=this.value:typeof this.value=="string"?p.write(this.value,c):m.isBuffer(this.value)&&this.value.copy(p,c),c+=this.length)),p}},1979:(H,_,y)=>{const M=_;M.Reporter=y(8465).b,M.DecoderBuffer=y(6625).C,M.EncoderBuffer=y(6625).R,M.Node=y(1949)},1949:(H,_,y)=>{const M=y(8465).b,v=y(6625).R,m=y(6625).C,E=y(9746),s=["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"],p=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function c(f,g,h){const u={};this._baseState=u,u.name=h,u.enc=f,u.parent=g||null,u.children=null,u.tag=null,u.args=null,u.reverseArgs=null,u.choice=null,u.optional=!1,u.any=!1,u.obj=!1,u.use=null,u.useDecoder=null,u.key=null,u.default=null,u.explicit=null,u.implicit=null,u.contains=null,u.parent||(u.children=[],this._wrap())}H.exports=c;const l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const f=this._baseState,g={};l.forEach(function(u){g[u]=f[u]});const h=new this.constructor(g.parent);return h._baseState=g,h},c.prototype._wrap=function(){const f=this._baseState;p.forEach(function(g){this[g]=function(){const h=new this.constructor(this);return f.children.push(h),h[g].apply(h,arguments)}},this)},c.prototype._init=function(f){const g=this._baseState;E(g.parent===null),f.call(this),g.children=g.children.filter(function(h){return h._baseState.parent===this},this),E.equal(g.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(f){const g=this._baseState,h=f.filter(function(u){return u instanceof this.constructor},this);f=f.filter(function(u){return!(u instanceof this.constructor)},this),h.length!==0&&(E(g.children===null),g.children=h,h.forEach(function(u){u._baseState.parent=this},this)),f.length!==0&&(E(g.args===null),g.args=f,g.reverseArgs=f.map(function(u){if(typeof u!="object"||u.constructor!==Object)return u;const w={};return Object.keys(u).forEach(function(b){b==(0|b)&&(b|=0);const k=u[b];w[k]=b}),w}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(f){c.prototype[f]=function(){const g=this._baseState;throw new Error(f+" not implemented for encoding: "+g.enc)}}),s.forEach(function(f){c.prototype[f]=function(){const g=this._baseState,h=Array.prototype.slice.call(arguments);return E(g.tag===null),g.tag=f,this._useArgs(h),this}}),c.prototype.use=function(f){E(f);const g=this._baseState;return E(g.use===null),g.use=f,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(f){const g=this._baseState;return E(g.default===null),g.default=f,g.optional=!0,this},c.prototype.explicit=function(f){const g=this._baseState;return E(g.explicit===null&&g.implicit===null),g.explicit=f,this},c.prototype.implicit=function(f){const g=this._baseState;return E(g.explicit===null&&g.implicit===null),g.implicit=f,this},c.prototype.obj=function(){const f=this._baseState,g=Array.prototype.slice.call(arguments);return f.obj=!0,g.length!==0&&this._useArgs(g),this},c.prototype.key=function(f){const g=this._baseState;return E(g.key===null),g.key=f,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(f){const g=this._baseState;return E(g.choice===null),g.choice=f,this._useArgs(Object.keys(f).map(function(h){return f[h]})),this},c.prototype.contains=function(f){const g=this._baseState;return E(g.use===null),g.contains=f,this},c.prototype._decode=function(f,g){const h=this._baseState;if(h.parent===null)return f.wrapResult(h.children[0]._decode(f,g));let u,w=h.default,b=!0,k=null;if(h.key!==null&&(k=f.enterKey(h.key)),h.optional){let A=null;if(h.explicit!==null?A=h.explicit:h.implicit!==null?A=h.implicit:h.tag!==null&&(A=h.tag),A!==null||h.any){if(b=this._peekTag(f,A,h.any),f.isError(b))return b}else{const x=f.save();try{h.choice===null?this._decodeGeneric(h.tag,f,g):this._decodeChoice(f,g),b=!0}catch{b=!1}f.restore(x)}}if(h.obj&&b&&(u=f.enterObject()),b){if(h.explicit!==null){const x=this._decodeTag(f,h.explicit);if(f.isError(x))return x;f=x}const A=f.offset;if(h.use===null&&h.choice===null){let x;h.any&&(x=f.save());const j=this._decodeTag(f,h.implicit!==null?h.implicit:h.tag,h.any);if(f.isError(j))return j;h.any?w=f.raw(x):f=j}if(g&&g.track&&h.tag!==null&&g.track(f.path(),A,f.length,"tagged"),g&&g.track&&h.tag!==null&&g.track(f.path(),f.offset,f.length,"content"),h.any||(w=h.choice===null?this._decodeGeneric(h.tag,f,g):this._decodeChoice(f,g)),f.isError(w))return w;if(h.any||h.choice!==null||h.children===null||h.children.forEach(function(x){x._decode(f,g)}),h.contains&&(h.tag==="octstr"||h.tag==="bitstr")){const x=new m(w);w=this._getUse(h.contains,f._reporterState.obj)._decode(x,g)}}return h.obj&&b&&(w=f.leaveObject(u)),h.key===null||w===null&&b!==!0?k!==null&&f.exitKey(k):f.leaveKey(k,h.key,w),w},c.prototype._decodeGeneric=function(f,g,h){const u=this._baseState;return f==="seq"||f==="set"?null:f==="seqof"||f==="setof"?this._decodeList(g,f,u.args[0],h):/str$/.test(f)?this._decodeStr(g,f,h):f==="objid"&&u.args?this._decodeObjid(g,u.args[0],u.args[1],h):f==="objid"?this._decodeObjid(g,null,null,h):f==="gentime"||f==="utctime"?this._decodeTime(g,f,h):f==="null_"?this._decodeNull(g,h):f==="bool"?this._decodeBool(g,h):f==="objDesc"?this._decodeStr(g,f,h):f==="int"||f==="enum"?this._decodeInt(g,u.args&&u.args[0],h):u.use!==null?this._getUse(u.use,g._reporterState.obj)._decode(g,h):g.error("unknown tag: "+f)},c.prototype._getUse=function(f,g){const h=this._baseState;return h.useDecoder=this._use(f,g),E(h.useDecoder._baseState.parent===null),h.useDecoder=h.useDecoder._baseState.children[0],h.implicit!==h.useDecoder._baseState.implicit&&(h.useDecoder=h.useDecoder.clone(),h.useDecoder._baseState.implicit=h.implicit),h.useDecoder},c.prototype._decodeChoice=function(f,g){const h=this._baseState;let u=null,w=!1;return Object.keys(h.choice).some(function(b){const k=f.save(),A=h.choice[b];try{const x=A._decode(f,g);if(f.isError(x))return!1;u={type:b,value:x},w=!0}catch{return f.restore(k),!1}return!0},this),w?u:f.error("Choice not matched")},c.prototype._createEncoderBuffer=function(f){return new v(f,this.reporter)},c.prototype._encode=function(f,g,h){const u=this._baseState;if(u.default!==null&&u.default===f)return;const w=this._encodeValue(f,g,h);return w===void 0||this._skipDefault(w,g,h)?void 0:w},c.prototype._encodeValue=function(f,g,h){const u=this._baseState;if(u.parent===null)return u.children[0]._encode(f,g||new M);let w=null;if(this.reporter=g,u.optional&&f===void 0){if(u.default===null)return;f=u.default}let b=null,k=!1;if(u.any)w=this._createEncoderBuffer(f);else if(u.choice)w=this._encodeChoice(f,g);else if(u.contains)b=this._getUse(u.contains,h)._encode(f,g),k=!0;else if(u.children)b=u.children.map(function(A){if(A._baseState.tag==="null_")return A._encode(null,g,f);if(A._baseState.key===null)return g.error("Child should have a key");const x=g.enterKey(A._baseState.key);if(typeof f!="object")return g.error("Child expected, but input is not object");const j=A._encode(f[A._baseState.key],g,f);return g.leaveKey(x),j},this).filter(function(A){return A}),b=this._createEncoderBuffer(b);else if(u.tag==="seqof"||u.tag==="setof"){if(!u.args||u.args.length!==1)return g.error("Too many args for : "+u.tag);if(!Array.isArray(f))return g.error("seqof/setof, but data is not Array");const A=this.clone();A._baseState.implicit=null,b=this._createEncoderBuffer(f.map(function(x){const j=this._baseState;return this._getUse(j.args[0],f)._encode(x,g)},A))}else u.use!==null?w=this._getUse(u.use,h)._encode(f,g):(b=this._encodePrimitive(u.tag,f),k=!0);if(!u.any&&u.choice===null){const A=u.implicit!==null?u.implicit:u.tag,x=u.implicit===null?"universal":"context";A===null?u.use===null&&g.error("Tag could be omitted only for .use()"):u.use===null&&(w=this._encodeComposite(A,k,x,b))}return u.explicit!==null&&(w=this._encodeComposite(u.explicit,!1,"context",w)),w},c.prototype._encodeChoice=function(f,g){const h=this._baseState,u=h.choice[f.type];return u||E(!1,f.type+" not found in "+JSON.stringify(Object.keys(h.choice))),u._encode(f.value,g)},c.prototype._encodePrimitive=function(f,g){const h=this._baseState;if(/str$/.test(f))return this._encodeStr(g,f);if(f==="objid"&&h.args)return this._encodeObjid(g,h.reverseArgs[0],h.args[1]);if(f==="objid")return this._encodeObjid(g,null,null);if(f==="gentime"||f==="utctime")return this._encodeTime(g,f);if(f==="null_")return this._encodeNull();if(f==="int"||f==="enum")return this._encodeInt(g,h.args&&h.reverseArgs[0]);if(f==="bool")return this._encodeBool(g);if(f==="objDesc")return this._encodeStr(g,f);throw new Error("Unsupported tag: "+f)},c.prototype._isNumstr=function(f){return/^[0-9 ]*$/.test(f)},c.prototype._isPrintstr=function(f){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(f)}},8465:(H,_,y)=>{const M=y(5717);function v(E){this._reporterState={obj:null,path:[],options:E||{},errors:[]}}function m(E,s){this.path=E,this.rethrow(s)}_.b=v,v.prototype.isError=function(E){return E instanceof m},v.prototype.save=function(){const E=this._reporterState;return{obj:E.obj,pathLen:E.path.length}},v.prototype.restore=function(E){const s=this._reporterState;s.obj=E.obj,s.path=s.path.slice(0,E.pathLen)},v.prototype.enterKey=function(E){return this._reporterState.path.push(E)},v.prototype.exitKey=function(E){const s=this._reporterState;s.path=s.path.slice(0,E-1)},v.prototype.leaveKey=function(E,s,p){const c=this._reporterState;this.exitKey(E),c.obj!==null&&(c.obj[s]=p)},v.prototype.path=function(){return this._reporterState.path.join("/")},v.prototype.enterObject=function(){const E=this._reporterState,s=E.obj;return E.obj={},s},v.prototype.leaveObject=function(E){const s=this._reporterState,p=s.obj;return s.obj=E,p},v.prototype.error=function(E){let s;const p=this._reporterState,c=E instanceof m;if(s=c?E:new m(p.path.map(function(l){return"["+JSON.stringify(l)+"]"}).join(""),E.message||E,E.stack),!p.options.partial)throw s;return c||p.errors.push(s),s},v.prototype.wrapResult=function(E){const s=this._reporterState;return s.options.partial?{result:this.isError(E)?null:E,errors:s.errors}:E},M(m,Error),m.prototype.rethrow=function(E){if(this.message=E+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,m),!this.stack)try{throw new Error(this.message)}catch(s){this.stack=s.stack}return this}},160:(H,_)=>{function y(M){const v={};return Object.keys(M).forEach(function(m){(0|m)==m&&(m|=0);const E=M[m];v[E]=m}),v}_.tagClass={0:"universal",1:"application",2:"context",3:"private"},_.tagClassByName=y(_.tagClass),_.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"},_.tagByName=y(_.tag)},6826:(H,_,y)=>{const M=_;M._reverse=function(v){const m={};return Object.keys(v).forEach(function(E){(0|E)==E&&(E|=0);const s=v[E];m[s]=E}),m},M.der=y(160)},1671:(H,_,y)=>{const M=y(5717),v=y(4590),m=y(6625).C,E=y(1949),s=y(160);function p(g){this.enc="der",this.name=g.name,this.entity=g,this.tree=new c,this.tree._init(g.body)}function c(g){E.call(this,"der",g)}function l(g,h){let u=g.readUInt8(h);if(g.isError(u))return u;const w=s.tagClass[u>>6],b=(32&u)==0;if((31&u)==31){let k=u;for(u=0;(128&k)==128;){if(k=g.readUInt8(h),g.isError(k))return k;u<<=7,u|=127&k}}else u&=31;return{cls:w,primitive:b,tag:u,tagStr:s.tag[u]}}function f(g,h,u){let w=g.readUInt8(u);if(g.isError(w))return w;if(!h&&w===128)return null;if(!(128&w))return w;const b=127&w;if(b>4)return g.error("length octect is too long");w=0;for(let k=0;k<b;k++){w<<=8;const A=g.readUInt8(u);if(g.isError(A))return A;w|=A}return w}H.exports=p,p.prototype.decode=function(g,h){return m.isDecoderBuffer(g)||(g=new m(g,h)),this.tree._decode(g,h)},M(c,E),c.prototype._peekTag=function(g,h,u){if(g.isEmpty())return!1;const w=g.save(),b=l(g,'Failed to peek tag: "'+h+'"');return g.isError(b)?b:(g.restore(w),b.tag===h||b.tagStr===h||b.tagStr+"of"===h||u)},c.prototype._decodeTag=function(g,h,u){const w=l(g,'Failed to decode tag of "'+h+'"');if(g.isError(w))return w;let b=f(g,w.primitive,'Failed to get length of "'+h+'"');if(g.isError(b))return b;if(!u&&w.tag!==h&&w.tagStr!==h&&w.tagStr+"of"!==h)return g.error('Failed to match tag: "'+h+'"');if(w.primitive||b!==null)return g.skip(b,'Failed to match body of: "'+h+'"');const k=g.save(),A=this._skipUntilEnd(g,'Failed to skip indefinite length body: "'+this.tag+'"');return g.isError(A)?A:(b=g.offset-k.offset,g.restore(k),g.skip(b,'Failed to match body of: "'+h+'"'))},c.prototype._skipUntilEnd=function(g,h){for(;;){const u=l(g,h);if(g.isError(u))return u;const w=f(g,u.primitive,h);if(g.isError(w))return w;let b;if(b=u.primitive||w!==null?g.skip(w):this._skipUntilEnd(g,h),g.isError(b))return b;if(u.tagStr==="end")break}},c.prototype._decodeList=function(g,h,u,w){const b=[];for(;!g.isEmpty();){const k=this._peekTag(g,"end");if(g.isError(k))return k;const A=u.decode(g,"der",w);if(g.isError(A)&&k)break;b.push(A)}return b},c.prototype._decodeStr=function(g,h){if(h==="bitstr"){const u=g.readUInt8();return g.isError(u)?u:{unused:u,data:g.raw()}}if(h==="bmpstr"){const u=g.raw();if(u.length%2==1)return g.error("Decoding of string type: bmpstr length mismatch");let w="";for(let b=0;b<u.length/2;b++)w+=String.fromCharCode(u.readUInt16BE(2*b));return w}if(h==="numstr"){const u=g.raw().toString("ascii");return this._isNumstr(u)?u:g.error("Decoding of string type: numstr unsupported characters")}if(h==="octstr"||h==="objDesc")return g.raw();if(h==="printstr"){const u=g.raw().toString("ascii");return this._isPrintstr(u)?u:g.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(h)?g.raw().toString():g.error("Decoding of string type: "+h+" unsupported")},c.prototype._decodeObjid=function(g,h,u){let w;const b=[];let k=0,A=0;for(;!g.isEmpty();)A=g.readUInt8(),k<<=7,k|=127&A,!(128&A)&&(b.push(k),k=0);128&A&&b.push(k);const x=b[0]/40|0,j=b[0]%40;if(w=u?b:[x,j].concat(b.slice(1)),h){let P=h[w.join(" ")];P===void 0&&(P=h[w.join(".")]),P!==void 0&&(w=P)}return w},c.prototype._decodeTime=function(g,h){const u=g.raw().toString();let w,b,k,A,x,j;if(h==="gentime")w=0|u.slice(0,4),b=0|u.slice(4,6),k=0|u.slice(6,8),A=0|u.slice(8,10),x=0|u.slice(10,12),j=0|u.slice(12,14);else{if(h!=="utctime")return g.error("Decoding "+h+" time is not supported yet");w=0|u.slice(0,2),b=0|u.slice(2,4),k=0|u.slice(4,6),A=0|u.slice(6,8),x=0|u.slice(8,10),j=0|u.slice(10,12),w=w<70?2e3+w:1900+w}return Date.UTC(w,b-1,k,A,x,j,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(g){const h=g.readUInt8();return g.isError(h)?h:h!==0},c.prototype._decodeInt=function(g,h){const u=g.raw();let w=new v(u);return h&&(w=h[w.toString(10)]||w),w},c.prototype._use=function(g,h){return typeof g=="function"&&(g=g(h)),g._getDecoder("der").tree}},8307:(H,_,y)=>{const M=_;M.der=y(1671),M.pem=y(9631)},9631:(H,_,y)=>{const M=y(5717),v=y(2399).Buffer,m=y(1671);function E(s){m.call(this,s),this.enc="pem"}M(E,m),H.exports=E,E.prototype.decode=function(s,p){const c=s.toString().split(/[\r\n]+/g),l=p.label.toUpperCase(),f=/^-----(BEGIN|END) ([^-]+)-----$/;let g=-1,h=-1;for(let b=0;b<c.length;b++){const k=c[b].match(f);if(k!==null&&k[2]===l){if(g!==-1){if(k[1]!=="END")break;h=b;break}if(k[1]!=="BEGIN")break;g=b}}if(g===-1||h===-1)throw new Error("PEM section not found for: "+l);const u=c.slice(g+1,h).join("");u.replace(/[^a-z0-9+/=]+/gi,"");const w=v.from(u,"base64");return m.prototype.decode.call(this,w,p)}},6984:(H,_,y)=>{const M=y(5717),v=y(2399).Buffer,m=y(1949),E=y(160);function s(l){this.enc="der",this.name=l.name,this.entity=l,this.tree=new p,this.tree._init(l.body)}function p(l){m.call(this,"der",l)}function c(l){return l<10?"0"+l:l}H.exports=s,s.prototype.encode=function(l,f){return this.tree._encode(l,f).join()},M(p,m),p.prototype._encodeComposite=function(l,f,g,h){const u=function(k,A,x,j){let P;if(k==="seqof"?k="seq":k==="setof"&&(k="set"),E.tagByName.hasOwnProperty(k))P=E.tagByName[k];else{if(typeof k!="number"||(0|k)!==k)return j.error("Unknown tag: "+k);P=k}return P>=31?j.error("Multi-octet tag encoding unsupported"):(A||(P|=32),P|=E.tagClassByName[x||"universal"]<<6,P)}(l,f,g,this.reporter);if(h.length<128){const k=v.alloc(2);return k[0]=u,k[1]=h.length,this._createEncoderBuffer([k,h])}let w=1;for(let k=h.length;k>=256;k>>=8)w++;const b=v.alloc(2+w);b[0]=u,b[1]=128|w;for(let k=1+w,A=h.length;A>0;k--,A>>=8)b[k]=255&A;return this._createEncoderBuffer([b,h])},p.prototype._encodeStr=function(l,f){if(f==="bitstr")return this._createEncoderBuffer([0|l.unused,l.data]);if(f==="bmpstr"){const g=v.alloc(2*l.length);for(let h=0;h<l.length;h++)g.writeUInt16BE(l.charCodeAt(h),2*h);return this._createEncoderBuffer(g)}return f==="numstr"?this._isNumstr(l)?this._createEncoderBuffer(l):this.reporter.error("Encoding of string type: numstr supports only digits and space"):f==="printstr"?this._isPrintstr(l)?this._createEncoderBuffer(l):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(f)||f==="objDesc"?this._createEncoderBuffer(l):this.reporter.error("Encoding of string type: "+f+" unsupported")},p.prototype._encodeObjid=function(l,f,g){if(typeof l=="string"){if(!f)return this.reporter.error("string objid given, but no values map found");if(!f.hasOwnProperty(l))return this.reporter.error("objid not found in values map");l=f[l].split(/[\s.]+/g);for(let b=0;b<l.length;b++)l[b]|=0}else if(Array.isArray(l)){l=l.slice();for(let b=0;b<l.length;b++)l[b]|=0}if(!Array.isArray(l))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(l));if(!g){if(l[1]>=40)return this.reporter.error("Second objid identifier OOB");l.splice(0,2,40*l[0]+l[1])}let h=0;for(let b=0;b<l.length;b++){let k=l[b];for(h++;k>=128;k>>=7)h++}const u=v.alloc(h);let w=u.length-1;for(let b=l.length-1;b>=0;b--){let k=l[b];for(u[w--]=127&k;(k>>=7)>0;)u[w--]=128|127&k}return this._createEncoderBuffer(u)},p.prototype._encodeTime=function(l,f){let g;const h=new Date(l);return f==="gentime"?g=[c(h.getUTCFullYear()),c(h.getUTCMonth()+1),c(h.getUTCDate()),c(h.getUTCHours()),c(h.getUTCMinutes()),c(h.getUTCSeconds()),"Z"].join(""):f==="utctime"?g=[c(h.getUTCFullYear()%100),c(h.getUTCMonth()+1),c(h.getUTCDate()),c(h.getUTCHours()),c(h.getUTCMinutes()),c(h.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+f+" time is not supported yet"),this._encodeStr(g,"octstr")},p.prototype._encodeNull=function(){return this._createEncoderBuffer("")},p.prototype._encodeInt=function(l,f){if(typeof l=="string"){if(!f)return this.reporter.error("String int or enum given, but no values map");if(!f.hasOwnProperty(l))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(l));l=f[l]}if(typeof l!="number"&&!v.isBuffer(l)){const u=l.toArray();!l.sign&&128&u[0]&&u.unshift(0),l=v.from(u)}if(v.isBuffer(l)){let u=l.length;l.length===0&&u++;const w=v.alloc(u);return l.copy(w),l.length===0&&(w[0]=0),this._createEncoderBuffer(w)}if(l<128)return this._createEncoderBuffer(l);if(l<256)return this._createEncoderBuffer([0,l]);let g=1;for(let u=l;u>=256;u>>=8)g++;const h=new Array(g);for(let u=h.length-1;u>=0;u--)h[u]=255&l,l>>=8;return 128&h[0]&&h.unshift(0),this._createEncoderBuffer(v.from(h))},p.prototype._encodeBool=function(l){return this._createEncoderBuffer(l?255:0)},p.prototype._use=function(l,f){return typeof l=="function"&&(l=l(f)),l._getEncoder("der").tree},p.prototype._skipDefault=function(l,f,g){const h=this._baseState;let u;if(h.default===null)return!1;const w=l.join();if(h.defaultBuffer===void 0&&(h.defaultBuffer=this._encodeValue(h.default,f,g).join()),w.length!==h.defaultBuffer.length)return!1;for(u=0;u<w.length;u++)if(w[u]!==h.defaultBuffer[u])return!1;return!0}},6579:(H,_,y)=>{const M=_;M.der=y(6984),M.pem=y(2883)},2883:(H,_,y)=>{const M=y(5717),v=y(6984);function m(E){v.call(this,E),this.enc="pem"}M(m,v),H.exports=m,m.prototype.encode=function(E,s){const p=v.prototype.encode.call(this,E).toString("base64"),c=["-----BEGIN "+s.label+"-----"];for(let l=0;l<p.length;l+=64)c.push(p.slice(l,l+64));return c.push("-----END "+s.label+"-----"),c.join(`
|
|
16
|
+
`)}},4590:function(H,_,y){(function(M,v){function m(e,r){if(!e)throw new Error(r||"Assertion failed")}function E(e,r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}function s(e,r,i){if(s.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&(r!=="le"&&r!=="be"||(i=r,r=10),this._init(e||0,r||10,i||"be"))}var p;typeof M=="object"?M.exports=s:v.BN=s,s.BN=s,s.wordSize=26;try{p=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:y(950).Buffer}catch{}function c(e,r){var i=e.charCodeAt(r);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(e,r,i){var n=c(e,i);return i-1>=r&&(n|=c(e,i-1)<<4),n}function f(e,r,i,n){for(var t=0,o=Math.min(e.length,i),a=r;a<o;a++){var T=e.charCodeAt(a)-48;t*=n,t+=T>=49?T-49+10:T>=17?T-17+10:T}return t}s.isBN=function(e){return e instanceof s||e!==null&&typeof e=="object"&&e.constructor.wordSize===s.wordSize&&Array.isArray(e.words)},s.max=function(e,r){return e.cmp(r)>0?e:r},s.min=function(e,r){return e.cmp(r)<0?e:r},s.prototype._init=function(e,r,i){if(typeof e=="number")return this._initNumber(e,r,i);if(typeof e=="object")return this._initArray(e,r,i);r==="hex"&&(r=16),m(r===(0|r)&&r>=2&&r<=36);var n=0;(e=e.toString().replace(/\s+/g,""))[0]==="-"&&(n++,this.negative=1),n<e.length&&(r===16?this._parseHex(e,n,i):(this._parseBase(e,r,n),i==="le"&&this._initArray(this.toArray(),r,i)))},s.prototype._initNumber=function(e,r,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(m(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),r,i)},s.prototype._initArray=function(e,r,i){if(m(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o,a=0;if(i==="be")for(n=e.length-1,t=0;n>=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[t]|=o<<a&67108863,this.words[t+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,t++);else if(i==="le")for(n=0,t=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[t]|=o<<a&67108863,this.words[t+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,t++);return this.strip()},s.prototype._parseHex=function(e,r,i){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o=0,a=0;if(i==="be")for(n=e.length-1;n>=r;n-=2)t=l(e,r,n)<<o,this.words[a]|=67108863&t,o>=18?(o-=18,a+=1,this.words[a]|=t>>>26):o+=8;else for(n=(e.length-r)%2==0?r+1:r;n<e.length;n+=2)t=l(e,r,n)<<o,this.words[a]|=67108863&t,o>=18?(o-=18,a+=1,this.words[a]|=t>>>26):o+=8;this.strip()},s.prototype._parseBase=function(e,r,i){this.words=[0],this.length=1;for(var n=0,t=1;t<=67108863;t*=r)n++;n--,t=t/r|0;for(var o=e.length-i,a=o%n,T=Math.min(o,o-a)+i,C=0,N=i;N<T;N+=n)C=f(e,N,N+n,r),this.imuln(t),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(a!==0){var O=1;for(C=f(e,N,e.length,r),N=0;N<a;N++)O*=r;this.imuln(O),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},s.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},s.prototype.clone=function(){var e=new s(null);return this.copy(e),e},s.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","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"],h=[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],u=[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];function w(e,r,i){i.negative=r.negative^e.negative;var n=e.length+r.length|0;i.length=n,n=n-1|0;var t=0|e.words[0],o=0|r.words[0],a=t*o,T=67108863&a,C=a/67108864|0;i.words[0]=T;for(var N=1;N<n;N++){for(var O=C>>>26,R=67108863&C,F=Math.min(N,r.length-1),Z=Math.max(0,N-e.length+1);Z<=F;Z++){var ie=N-Z|0;O+=(a=(t=0|e.words[ie])*(o=0|r.words[Z])+R)/67108864|0,R=67108863&a}i.words[N]=0|R,C=0|O}return C!==0?i.words[N]=0|C:i.length--,i.strip()}s.prototype.toString=function(e,r){var i;if(r=0|r||1,(e=e||10)===16||e==="hex"){i="";for(var n=0,t=0,o=0;o<this.length;o++){var a=this.words[o],T=(16777215&(a<<n|t)).toString(16);i=(t=a>>>24-n&16777215)!=0||o!==this.length-1?g[6-T.length]+T+i:T+i,(n+=2)>=26&&(n-=26,o--)}for(t!==0&&(i=t.toString(16)+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var C=h[e],N=u[e];i="";var O=this.clone();for(O.negative=0;!O.isZero();){var R=O.modn(N).toString(e);i=(O=O.idivn(N)).isZero()?R+i:g[C-R.length]+R+i}for(this.isZero()&&(i="0"+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}m(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=67108864*this.words[1]:this.length===3&&this.words[2]===1?e+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(e,r){return m(p!==void 0),this.toArrayLike(p,e,r)},s.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},s.prototype.toArrayLike=function(e,r,i){var n=this.byteLength(),t=i||Math.max(1,n);m(n<=t,"byte array longer than desired length"),m(t>0,"Requested array length <= 0"),this.strip();var o,a,T=r==="le",C=new e(t),N=this.clone();if(T){for(a=0;!N.isZero();a++)o=N.andln(255),N.iushrn(8),C[a]=o;for(;a<t;a++)C[a]=0}else{for(a=0;a<t-n;a++)C[a]=0;for(a=0;!N.isZero();a++)o=N.andln(255),N.iushrn(8),C[t-a-1]=o}return C},Math.clz32?s.prototype._countBits=function(e){return 32-Math.clz32(e)}:s.prototype._countBits=function(e){var r=e,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},s.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,i=0;return!(8191&r)&&(i+=13,r>>>=13),!(127&r)&&(i+=7,r>>>=7),!(15&r)&&(i+=4,r>>>=4),!(3&r)&&(i+=2,r>>>=2),!(1&r)&&i++,i},s.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return 26*(this.length-1)+r},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(e+=i,i!==26)break}return e},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},s.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},s.prototype.ior=function(e){return m((this.negative|e.negative)==0),this.iuor(e)},s.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},s.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},s.prototype.iuand=function(e){var r;r=this.length>e.length?e:this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=r.length,this.strip()},s.prototype.iand=function(e){return m((this.negative|e.negative)==0),this.iuand(e)},s.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},s.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},s.prototype.iuxor=function(e){var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=r.words[n]^i.words[n];if(this!==r)for(;n<r.length;n++)this.words[n]=r.words[n];return this.length=r.length,this.strip()},s.prototype.ixor=function(e){return m((this.negative|e.negative)==0),this.iuxor(e)},s.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},s.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},s.prototype.inotn=function(e){m(typeof e=="number"&&e>=0);var r=0|Math.ceil(e/26),i=e%26;this._expand(r),i>0&&r--;for(var n=0;n<r;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},s.prototype.notn=function(e){return this.clone().inotn(e)},s.prototype.setn=function(e,r){m(typeof e=="number"&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=r?this.words[i]|1<<n:this.words[i]&~(1<<n),this.strip()},s.prototype.iadd=function(e){var r,i,n;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var t=0,o=0;o<n.length;o++)r=(0|i.words[o])+(0|n.words[o])+t,this.words[o]=67108863&r,t=r>>>26;for(;t!==0&&o<i.length;o++)r=(0|i.words[o])+t,this.words[o]=67108863&r,t=r>>>26;if(this.length=i.length,t!==0)this.words[this.length]=t,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},s.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},s.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,t=this.cmp(e);if(t===0)return this.negative=0,this.length=1,this.words[0]=0,this;t>0?(i=this,n=e):(i=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(r=(0|i.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&r;for(;o!==0&&a<i.length;a++)o=(r=(0|i.words[a])+o)>>26,this.words[a]=67108863&r;if(o===0&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(e){return this.clone().isub(e)};var b=function(e,r,i){var n,t,o,a=e.words,T=r.words,C=i.words,N=0,O=0|a[0],R=8191&O,F=O>>>13,Z=0|a[1],ie=8191&Z,D=Z>>>13,Y=0|a[2],z=8191&Y,W=Y>>>13,ae=0|a[3],re=8191&ae,le=ae>>>13,ke=0|a[4],ge=8191&ke,be=ke>>>13,je=0|a[5],xe=8191&je,Ae=je>>>13,X=0|a[6],ee=8191&X,U=X>>>13,V=0|a[7],q=8191&V,ne=V>>>13,fe=0|a[8],he=8191&fe,me=fe>>>13,it=0|a[9],_e=8191&it,Te=it>>>13,ft=0|T[0],Se=8191&ft,Ge=ft>>>13,Ct=0|T[1],Pe=8191&Ct,Ve=Ct>>>13,Nt=0|T[2],Re=8191&Nt,Ke=Nt>>>13,yt=0|T[3],Be=8191&yt,We=yt>>>13,St=0|T[4],Ne=8191&St,Ze=St>>>13,It=0|T[5],Le=8191&It,Xe=It>>>13,Dt=0|T[6],De=8191&Dt,Qe=Dt>>>13,zt=0|T[7],qe=8191&zt,Je=zt>>>13,$t=0|T[8],Fe=8191&$t,tt=$t>>>13,Vt=0|T[9],Ue=8191&Vt,et=Vt>>>13;i.negative=e.negative^r.negative,i.length=19;var Tt=(N+(n=Math.imul(R,Se))|0)+((8191&(t=(t=Math.imul(R,Ge))+Math.imul(F,Se)|0))<<13)|0;N=((o=Math.imul(F,Ge))+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(ie,Se),t=(t=Math.imul(ie,Ge))+Math.imul(D,Se)|0,o=Math.imul(D,Ge);var Rt=(N+(n=n+Math.imul(R,Pe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ve)|0)+Math.imul(F,Pe)|0))<<13)|0;N=((o=o+Math.imul(F,Ve)|0)+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(z,Se),t=(t=Math.imul(z,Ge))+Math.imul(W,Se)|0,o=Math.imul(W,Ge),n=n+Math.imul(ie,Pe)|0,t=(t=t+Math.imul(ie,Ve)|0)+Math.imul(D,Pe)|0,o=o+Math.imul(D,Ve)|0;var Gt=(N+(n=n+Math.imul(R,Re)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ke)|0)+Math.imul(F,Re)|0))<<13)|0;N=((o=o+Math.imul(F,Ke)|0)+(t>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,n=Math.imul(re,Se),t=(t=Math.imul(re,Ge))+Math.imul(le,Se)|0,o=Math.imul(le,Ge),n=n+Math.imul(z,Pe)|0,t=(t=t+Math.imul(z,Ve)|0)+Math.imul(W,Pe)|0,o=o+Math.imul(W,Ve)|0,n=n+Math.imul(ie,Re)|0,t=(t=t+Math.imul(ie,Ke)|0)+Math.imul(D,Re)|0,o=o+Math.imul(D,Ke)|0;var an=(N+(n=n+Math.imul(R,Be)|0)|0)+((8191&(t=(t=t+Math.imul(R,We)|0)+Math.imul(F,Be)|0))<<13)|0;N=((o=o+Math.imul(F,We)|0)+(t>>>13)|0)+(an>>>26)|0,an&=67108863,n=Math.imul(ge,Se),t=(t=Math.imul(ge,Ge))+Math.imul(be,Se)|0,o=Math.imul(be,Ge),n=n+Math.imul(re,Pe)|0,t=(t=t+Math.imul(re,Ve)|0)+Math.imul(le,Pe)|0,o=o+Math.imul(le,Ve)|0,n=n+Math.imul(z,Re)|0,t=(t=t+Math.imul(z,Ke)|0)+Math.imul(W,Re)|0,o=o+Math.imul(W,Ke)|0,n=n+Math.imul(ie,Be)|0,t=(t=t+Math.imul(ie,We)|0)+Math.imul(D,Be)|0,o=o+Math.imul(D,We)|0;var rn=(N+(n=n+Math.imul(R,Ne)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ze)|0)+Math.imul(F,Ne)|0))<<13)|0;N=((o=o+Math.imul(F,Ze)|0)+(t>>>13)|0)+(rn>>>26)|0,rn&=67108863,n=Math.imul(xe,Se),t=(t=Math.imul(xe,Ge))+Math.imul(Ae,Se)|0,o=Math.imul(Ae,Ge),n=n+Math.imul(ge,Pe)|0,t=(t=t+Math.imul(ge,Ve)|0)+Math.imul(be,Pe)|0,o=o+Math.imul(be,Ve)|0,n=n+Math.imul(re,Re)|0,t=(t=t+Math.imul(re,Ke)|0)+Math.imul(le,Re)|0,o=o+Math.imul(le,Ke)|0,n=n+Math.imul(z,Be)|0,t=(t=t+Math.imul(z,We)|0)+Math.imul(W,Be)|0,o=o+Math.imul(W,We)|0,n=n+Math.imul(ie,Ne)|0,t=(t=t+Math.imul(ie,Ze)|0)+Math.imul(D,Ne)|0,o=o+Math.imul(D,Ze)|0;var un=(N+(n=n+Math.imul(R,Le)|0)|0)+((8191&(t=(t=t+Math.imul(R,Xe)|0)+Math.imul(F,Le)|0))<<13)|0;N=((o=o+Math.imul(F,Xe)|0)+(t>>>13)|0)+(un>>>26)|0,un&=67108863,n=Math.imul(ee,Se),t=(t=Math.imul(ee,Ge))+Math.imul(U,Se)|0,o=Math.imul(U,Ge),n=n+Math.imul(xe,Pe)|0,t=(t=t+Math.imul(xe,Ve)|0)+Math.imul(Ae,Pe)|0,o=o+Math.imul(Ae,Ve)|0,n=n+Math.imul(ge,Re)|0,t=(t=t+Math.imul(ge,Ke)|0)+Math.imul(be,Re)|0,o=o+Math.imul(be,Ke)|0,n=n+Math.imul(re,Be)|0,t=(t=t+Math.imul(re,We)|0)+Math.imul(le,Be)|0,o=o+Math.imul(le,We)|0,n=n+Math.imul(z,Ne)|0,t=(t=t+Math.imul(z,Ze)|0)+Math.imul(W,Ne)|0,o=o+Math.imul(W,Ze)|0,n=n+Math.imul(ie,Le)|0,t=(t=t+Math.imul(ie,Xe)|0)+Math.imul(D,Le)|0,o=o+Math.imul(D,Xe)|0;var cn=(N+(n=n+Math.imul(R,De)|0)|0)+((8191&(t=(t=t+Math.imul(R,Qe)|0)+Math.imul(F,De)|0))<<13)|0;N=((o=o+Math.imul(F,Qe)|0)+(t>>>13)|0)+(cn>>>26)|0,cn&=67108863,n=Math.imul(q,Se),t=(t=Math.imul(q,Ge))+Math.imul(ne,Se)|0,o=Math.imul(ne,Ge),n=n+Math.imul(ee,Pe)|0,t=(t=t+Math.imul(ee,Ve)|0)+Math.imul(U,Pe)|0,o=o+Math.imul(U,Ve)|0,n=n+Math.imul(xe,Re)|0,t=(t=t+Math.imul(xe,Ke)|0)+Math.imul(Ae,Re)|0,o=o+Math.imul(Ae,Ke)|0,n=n+Math.imul(ge,Be)|0,t=(t=t+Math.imul(ge,We)|0)+Math.imul(be,Be)|0,o=o+Math.imul(be,We)|0,n=n+Math.imul(re,Ne)|0,t=(t=t+Math.imul(re,Ze)|0)+Math.imul(le,Ne)|0,o=o+Math.imul(le,Ze)|0,n=n+Math.imul(z,Le)|0,t=(t=t+Math.imul(z,Xe)|0)+Math.imul(W,Le)|0,o=o+Math.imul(W,Xe)|0,n=n+Math.imul(ie,De)|0,t=(t=t+Math.imul(ie,Qe)|0)+Math.imul(D,De)|0,o=o+Math.imul(D,Qe)|0;var ln=(N+(n=n+Math.imul(R,qe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Je)|0)+Math.imul(F,qe)|0))<<13)|0;N=((o=o+Math.imul(F,Je)|0)+(t>>>13)|0)+(ln>>>26)|0,ln&=67108863,n=Math.imul(he,Se),t=(t=Math.imul(he,Ge))+Math.imul(me,Se)|0,o=Math.imul(me,Ge),n=n+Math.imul(q,Pe)|0,t=(t=t+Math.imul(q,Ve)|0)+Math.imul(ne,Pe)|0,o=o+Math.imul(ne,Ve)|0,n=n+Math.imul(ee,Re)|0,t=(t=t+Math.imul(ee,Ke)|0)+Math.imul(U,Re)|0,o=o+Math.imul(U,Ke)|0,n=n+Math.imul(xe,Be)|0,t=(t=t+Math.imul(xe,We)|0)+Math.imul(Ae,Be)|0,o=o+Math.imul(Ae,We)|0,n=n+Math.imul(ge,Ne)|0,t=(t=t+Math.imul(ge,Ze)|0)+Math.imul(be,Ne)|0,o=o+Math.imul(be,Ze)|0,n=n+Math.imul(re,Le)|0,t=(t=t+Math.imul(re,Xe)|0)+Math.imul(le,Le)|0,o=o+Math.imul(le,Xe)|0,n=n+Math.imul(z,De)|0,t=(t=t+Math.imul(z,Qe)|0)+Math.imul(W,De)|0,o=o+Math.imul(W,Qe)|0,n=n+Math.imul(ie,qe)|0,t=(t=t+Math.imul(ie,Je)|0)+Math.imul(D,qe)|0,o=o+Math.imul(D,Je)|0;var hn=(N+(n=n+Math.imul(R,Fe)|0)|0)+((8191&(t=(t=t+Math.imul(R,tt)|0)+Math.imul(F,Fe)|0))<<13)|0;N=((o=o+Math.imul(F,tt)|0)+(t>>>13)|0)+(hn>>>26)|0,hn&=67108863,n=Math.imul(_e,Se),t=(t=Math.imul(_e,Ge))+Math.imul(Te,Se)|0,o=Math.imul(Te,Ge),n=n+Math.imul(he,Pe)|0,t=(t=t+Math.imul(he,Ve)|0)+Math.imul(me,Pe)|0,o=o+Math.imul(me,Ve)|0,n=n+Math.imul(q,Re)|0,t=(t=t+Math.imul(q,Ke)|0)+Math.imul(ne,Re)|0,o=o+Math.imul(ne,Ke)|0,n=n+Math.imul(ee,Be)|0,t=(t=t+Math.imul(ee,We)|0)+Math.imul(U,Be)|0,o=o+Math.imul(U,We)|0,n=n+Math.imul(xe,Ne)|0,t=(t=t+Math.imul(xe,Ze)|0)+Math.imul(Ae,Ne)|0,o=o+Math.imul(Ae,Ze)|0,n=n+Math.imul(ge,Le)|0,t=(t=t+Math.imul(ge,Xe)|0)+Math.imul(be,Le)|0,o=o+Math.imul(be,Xe)|0,n=n+Math.imul(re,De)|0,t=(t=t+Math.imul(re,Qe)|0)+Math.imul(le,De)|0,o=o+Math.imul(le,Qe)|0,n=n+Math.imul(z,qe)|0,t=(t=t+Math.imul(z,Je)|0)+Math.imul(W,qe)|0,o=o+Math.imul(W,Je)|0,n=n+Math.imul(ie,Fe)|0,t=(t=t+Math.imul(ie,tt)|0)+Math.imul(D,Fe)|0,o=o+Math.imul(D,tt)|0;var fn=(N+(n=n+Math.imul(R,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(R,et)|0)+Math.imul(F,Ue)|0))<<13)|0;N=((o=o+Math.imul(F,et)|0)+(t>>>13)|0)+(fn>>>26)|0,fn&=67108863,n=Math.imul(_e,Pe),t=(t=Math.imul(_e,Ve))+Math.imul(Te,Pe)|0,o=Math.imul(Te,Ve),n=n+Math.imul(he,Re)|0,t=(t=t+Math.imul(he,Ke)|0)+Math.imul(me,Re)|0,o=o+Math.imul(me,Ke)|0,n=n+Math.imul(q,Be)|0,t=(t=t+Math.imul(q,We)|0)+Math.imul(ne,Be)|0,o=o+Math.imul(ne,We)|0,n=n+Math.imul(ee,Ne)|0,t=(t=t+Math.imul(ee,Ze)|0)+Math.imul(U,Ne)|0,o=o+Math.imul(U,Ze)|0,n=n+Math.imul(xe,Le)|0,t=(t=t+Math.imul(xe,Xe)|0)+Math.imul(Ae,Le)|0,o=o+Math.imul(Ae,Xe)|0,n=n+Math.imul(ge,De)|0,t=(t=t+Math.imul(ge,Qe)|0)+Math.imul(be,De)|0,o=o+Math.imul(be,Qe)|0,n=n+Math.imul(re,qe)|0,t=(t=t+Math.imul(re,Je)|0)+Math.imul(le,qe)|0,o=o+Math.imul(le,Je)|0,n=n+Math.imul(z,Fe)|0,t=(t=t+Math.imul(z,tt)|0)+Math.imul(W,Fe)|0,o=o+Math.imul(W,tt)|0;var pn=(N+(n=n+Math.imul(ie,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ie,et)|0)+Math.imul(D,Ue)|0))<<13)|0;N=((o=o+Math.imul(D,et)|0)+(t>>>13)|0)+(pn>>>26)|0,pn&=67108863,n=Math.imul(_e,Re),t=(t=Math.imul(_e,Ke))+Math.imul(Te,Re)|0,o=Math.imul(Te,Ke),n=n+Math.imul(he,Be)|0,t=(t=t+Math.imul(he,We)|0)+Math.imul(me,Be)|0,o=o+Math.imul(me,We)|0,n=n+Math.imul(q,Ne)|0,t=(t=t+Math.imul(q,Ze)|0)+Math.imul(ne,Ne)|0,o=o+Math.imul(ne,Ze)|0,n=n+Math.imul(ee,Le)|0,t=(t=t+Math.imul(ee,Xe)|0)+Math.imul(U,Le)|0,o=o+Math.imul(U,Xe)|0,n=n+Math.imul(xe,De)|0,t=(t=t+Math.imul(xe,Qe)|0)+Math.imul(Ae,De)|0,o=o+Math.imul(Ae,Qe)|0,n=n+Math.imul(ge,qe)|0,t=(t=t+Math.imul(ge,Je)|0)+Math.imul(be,qe)|0,o=o+Math.imul(be,Je)|0,n=n+Math.imul(re,Fe)|0,t=(t=t+Math.imul(re,tt)|0)+Math.imul(le,Fe)|0,o=o+Math.imul(le,tt)|0;var Xt=(N+(n=n+Math.imul(z,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(z,et)|0)+Math.imul(W,Ue)|0))<<13)|0;N=((o=o+Math.imul(W,et)|0)+(t>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,n=Math.imul(_e,Be),t=(t=Math.imul(_e,We))+Math.imul(Te,Be)|0,o=Math.imul(Te,We),n=n+Math.imul(he,Ne)|0,t=(t=t+Math.imul(he,Ze)|0)+Math.imul(me,Ne)|0,o=o+Math.imul(me,Ze)|0,n=n+Math.imul(q,Le)|0,t=(t=t+Math.imul(q,Xe)|0)+Math.imul(ne,Le)|0,o=o+Math.imul(ne,Xe)|0,n=n+Math.imul(ee,De)|0,t=(t=t+Math.imul(ee,Qe)|0)+Math.imul(U,De)|0,o=o+Math.imul(U,Qe)|0,n=n+Math.imul(xe,qe)|0,t=(t=t+Math.imul(xe,Je)|0)+Math.imul(Ae,qe)|0,o=o+Math.imul(Ae,Je)|0,n=n+Math.imul(ge,Fe)|0,t=(t=t+Math.imul(ge,tt)|0)+Math.imul(be,Fe)|0,o=o+Math.imul(be,tt)|0;var dn=(N+(n=n+Math.imul(re,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(re,et)|0)+Math.imul(le,Ue)|0))<<13)|0;N=((o=o+Math.imul(le,et)|0)+(t>>>13)|0)+(dn>>>26)|0,dn&=67108863,n=Math.imul(_e,Ne),t=(t=Math.imul(_e,Ze))+Math.imul(Te,Ne)|0,o=Math.imul(Te,Ze),n=n+Math.imul(he,Le)|0,t=(t=t+Math.imul(he,Xe)|0)+Math.imul(me,Le)|0,o=o+Math.imul(me,Xe)|0,n=n+Math.imul(q,De)|0,t=(t=t+Math.imul(q,Qe)|0)+Math.imul(ne,De)|0,o=o+Math.imul(ne,Qe)|0,n=n+Math.imul(ee,qe)|0,t=(t=t+Math.imul(ee,Je)|0)+Math.imul(U,qe)|0,o=o+Math.imul(U,Je)|0,n=n+Math.imul(xe,Fe)|0,t=(t=t+Math.imul(xe,tt)|0)+Math.imul(Ae,Fe)|0,o=o+Math.imul(Ae,tt)|0;var vn=(N+(n=n+Math.imul(ge,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ge,et)|0)+Math.imul(be,Ue)|0))<<13)|0;N=((o=o+Math.imul(be,et)|0)+(t>>>13)|0)+(vn>>>26)|0,vn&=67108863,n=Math.imul(_e,Le),t=(t=Math.imul(_e,Xe))+Math.imul(Te,Le)|0,o=Math.imul(Te,Xe),n=n+Math.imul(he,De)|0,t=(t=t+Math.imul(he,Qe)|0)+Math.imul(me,De)|0,o=o+Math.imul(me,Qe)|0,n=n+Math.imul(q,qe)|0,t=(t=t+Math.imul(q,Je)|0)+Math.imul(ne,qe)|0,o=o+Math.imul(ne,Je)|0,n=n+Math.imul(ee,Fe)|0,t=(t=t+Math.imul(ee,tt)|0)+Math.imul(U,Fe)|0,o=o+Math.imul(U,tt)|0;var tn=(N+(n=n+Math.imul(xe,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(xe,et)|0)+Math.imul(Ae,Ue)|0))<<13)|0;N=((o=o+Math.imul(Ae,et)|0)+(t>>>13)|0)+(tn>>>26)|0,tn&=67108863,n=Math.imul(_e,De),t=(t=Math.imul(_e,Qe))+Math.imul(Te,De)|0,o=Math.imul(Te,Qe),n=n+Math.imul(he,qe)|0,t=(t=t+Math.imul(he,Je)|0)+Math.imul(me,qe)|0,o=o+Math.imul(me,Je)|0,n=n+Math.imul(q,Fe)|0,t=(t=t+Math.imul(q,tt)|0)+Math.imul(ne,Fe)|0,o=o+Math.imul(ne,tt)|0;var nn=(N+(n=n+Math.imul(ee,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ee,et)|0)+Math.imul(U,Ue)|0))<<13)|0;N=((o=o+Math.imul(U,et)|0)+(t>>>13)|0)+(nn>>>26)|0,nn&=67108863,n=Math.imul(_e,qe),t=(t=Math.imul(_e,Je))+Math.imul(Te,qe)|0,o=Math.imul(Te,Je),n=n+Math.imul(he,Fe)|0,t=(t=t+Math.imul(he,tt)|0)+Math.imul(me,Fe)|0,o=o+Math.imul(me,tt)|0;var Jt=(N+(n=n+Math.imul(q,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(q,et)|0)+Math.imul(ne,Ue)|0))<<13)|0;N=((o=o+Math.imul(ne,et)|0)+(t>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,n=Math.imul(_e,Fe),t=(t=Math.imul(_e,tt))+Math.imul(Te,Fe)|0,o=Math.imul(Te,tt);var mn=(N+(n=n+Math.imul(he,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(he,et)|0)+Math.imul(me,Ue)|0))<<13)|0;N=((o=o+Math.imul(me,et)|0)+(t>>>13)|0)+(mn>>>26)|0,mn&=67108863;var on=(N+(n=Math.imul(_e,Ue))|0)+((8191&(t=(t=Math.imul(_e,et))+Math.imul(Te,Ue)|0))<<13)|0;return N=((o=Math.imul(Te,et))+(t>>>13)|0)+(on>>>26)|0,on&=67108863,C[0]=Tt,C[1]=Rt,C[2]=Gt,C[3]=an,C[4]=rn,C[5]=un,C[6]=cn,C[7]=ln,C[8]=hn,C[9]=fn,C[10]=pn,C[11]=Xt,C[12]=dn,C[13]=vn,C[14]=tn,C[15]=nn,C[16]=Jt,C[17]=mn,C[18]=on,N!==0&&(C[19]=N,i.length++),i};function k(e,r,i){return new A().mulp(e,r,i)}function A(e,r){this.x=e,this.y=r}Math.imul||(b=w),s.prototype.mulTo=function(e,r){var i,n=this.length+e.length;return i=this.length===10&&e.length===10?b(this,e,r):n<63?w(this,e,r):n<1024?function(t,o,a){a.negative=o.negative^t.negative,a.length=t.length+o.length;for(var T=0,C=0,N=0;N<a.length-1;N++){var O=C;C=0;for(var R=67108863&T,F=Math.min(N,o.length-1),Z=Math.max(0,N-t.length+1);Z<=F;Z++){var ie=N-Z,D=(0|t.words[ie])*(0|o.words[Z]),Y=67108863&D;R=67108863&(Y=Y+R|0),C+=(O=(O=O+(D/67108864|0)|0)+(Y>>>26)|0)>>>26,O&=67108863}a.words[N]=R,T=O,O=C}return T!==0?a.words[N]=T:a.length--,a.strip()}(this,e,r):k(this,e,r),i},A.prototype.makeRBT=function(e){for(var r=new Array(e),i=s.prototype._countBits(e)-1,n=0;n<e;n++)r[n]=this.revBin(n,i,e);return r},A.prototype.revBin=function(e,r,i){if(e===0||e===i-1)return e;for(var n=0,t=0;t<r;t++)n|=(1&e)<<r-t-1,e>>=1;return n},A.prototype.permute=function(e,r,i,n,t,o){for(var a=0;a<o;a++)n[a]=r[e[a]],t[a]=i[e[a]]},A.prototype.transform=function(e,r,i,n,t,o){this.permute(o,e,r,i,n,t);for(var a=1;a<t;a<<=1)for(var T=a<<1,C=Math.cos(2*Math.PI/T),N=Math.sin(2*Math.PI/T),O=0;O<t;O+=T)for(var R=C,F=N,Z=0;Z<a;Z++){var ie=i[O+Z],D=n[O+Z],Y=i[O+Z+a],z=n[O+Z+a],W=R*Y-F*z;z=R*z+F*Y,Y=W,i[O+Z]=ie+Y,n[O+Z]=D+z,i[O+Z+a]=ie-Y,n[O+Z+a]=D-z,Z!==T&&(W=C*R-N*F,F=C*F+N*R,R=W)}},A.prototype.guessLen13b=function(e,r){var i=1|Math.max(r,e),n=1&i,t=0;for(i=i/2|0;i;i>>>=1)t++;return 1<<t+1+n},A.prototype.conjugate=function(e,r,i){if(!(i<=1))for(var n=0;n<i/2;n++){var t=e[n];e[n]=e[i-n-1],e[i-n-1]=t,t=r[n],r[n]=-r[i-n-1],r[i-n-1]=-t}},A.prototype.normalize13b=function(e,r){for(var i=0,n=0;n<r/2;n++){var t=8192*Math.round(e[2*n+1]/r)+Math.round(e[2*n]/r)+i;e[n]=67108863&t,i=t<67108864?0:t/67108864|0}return e},A.prototype.convert13b=function(e,r,i,n){for(var t=0,o=0;o<r;o++)t+=0|e[o],i[2*o]=8191&t,t>>>=13,i[2*o+1]=8191&t,t>>>=13;for(o=2*r;o<n;++o)i[o]=0;m(t===0),m((-8192&t)==0)},A.prototype.stub=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=0;return r},A.prototype.mulp=function(e,r,i){var n=2*this.guessLen13b(e.length,r.length),t=this.makeRBT(n),o=this.stub(n),a=new Array(n),T=new Array(n),C=new Array(n),N=new Array(n),O=new Array(n),R=new Array(n),F=i.words;F.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(r.words,r.length,N,n),this.transform(a,o,T,C,n,t),this.transform(N,o,O,R,n,t);for(var Z=0;Z<n;Z++){var ie=T[Z]*O[Z]-C[Z]*R[Z];C[Z]=T[Z]*R[Z]+C[Z]*O[Z],T[Z]=ie}return this.conjugate(T,C,n),this.transform(T,C,F,o,n,t),this.conjugate(F,o,n),this.normalize13b(F,n),i.negative=e.negative^r.negative,i.length=e.length+r.length,i.strip()},s.prototype.mul=function(e){var r=new s(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},s.prototype.mulf=function(e){var r=new s(null);return r.words=new Array(this.length+e.length),k(this,e,r)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){m(typeof e=="number"),m(e<67108864);for(var r=0,i=0;i<this.length;i++){var n=(0|this.words[i])*e,t=(67108863&n)+(67108863&r);r>>=26,r+=n/67108864|0,r+=t>>>26,this.words[i]=67108863&t}return r!==0&&(this.words[i]=r,this.length++),this},s.prototype.muln=function(e){return this.clone().imuln(e)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(e){var r=function(o){for(var a=new Array(o.bitLength()),T=0;T<a.length;T++){var C=T/26|0,N=T%26;a[T]=(o.words[C]&1<<N)>>>N}return a}(e);if(r.length===0)return new s(1);for(var i=this,n=0;n<r.length&&r[n]===0;n++,i=i.sqr());if(++n<r.length)for(var t=i.sqr();n<r.length;n++,t=t.sqr())r[n]!==0&&(i=i.mul(t));return i},s.prototype.iushln=function(e){m(typeof e=="number"&&e>=0);var r,i=e%26,n=(e-i)/26,t=67108863>>>26-i<<26-i;if(i!==0){var o=0;for(r=0;r<this.length;r++){var a=this.words[r]&t,T=(0|this.words[r])-a<<i;this.words[r]=T|o,o=a>>>26-i}o&&(this.words[r]=o,this.length++)}if(n!==0){for(r=this.length-1;r>=0;r--)this.words[r+n]=this.words[r];for(r=0;r<n;r++)this.words[r]=0;this.length+=n}return this.strip()},s.prototype.ishln=function(e){return m(this.negative===0),this.iushln(e)},s.prototype.iushrn=function(e,r,i){var n;m(typeof e=="number"&&e>=0),n=r?(r-r%26)/26:0;var t=e%26,o=Math.min((e-t)/26,this.length),a=67108863^67108863>>>t<<t,T=i;if(n-=o,n=Math.max(0,n),T){for(var C=0;C<o;C++)T.words[C]=this.words[C];T.length=o}if(o!==0)if(this.length>o)for(this.length-=o,C=0;C<this.length;C++)this.words[C]=this.words[C+o];else this.words[0]=0,this.length=1;var N=0;for(C=this.length-1;C>=0&&(N!==0||C>=n);C--){var O=0|this.words[C];this.words[C]=N<<26-t|O>>>t,N=O&a}return T&&N!==0&&(T.words[T.length++]=N),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(e,r,i){return m(this.negative===0),this.iushrn(e,r,i)},s.prototype.shln=function(e){return this.clone().ishln(e)},s.prototype.ushln=function(e){return this.clone().iushln(e)},s.prototype.shrn=function(e){return this.clone().ishrn(e)},s.prototype.ushrn=function(e){return this.clone().iushrn(e)},s.prototype.testn=function(e){m(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,n=1<<r;return!(this.length<=i||!(this.words[i]&n))},s.prototype.imaskn=function(e){m(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(r!==0&&i++,this.length=Math.min(i,this.length),r!==0){var n=67108863^67108863>>>r<<r;this.words[this.length-1]&=n}return this.strip()},s.prototype.maskn=function(e){return this.clone().imaskn(e)},s.prototype.iaddn=function(e){return m(typeof e=="number"),m(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},s.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},s.prototype.isubn=function(e){if(m(typeof e=="number"),m(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},s.prototype.addn=function(e){return this.clone().iaddn(e)},s.prototype.subn=function(e){return this.clone().isubn(e)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(e,r,i){var n,t,o=e.length+i;this._expand(o);var a=0;for(n=0;n<e.length;n++){t=(0|this.words[n+i])+a;var T=(0|e.words[n])*r;a=((t-=67108863&T)>>26)-(T/67108864|0),this.words[n+i]=67108863&t}for(;n<this.length-i;n++)a=(t=(0|this.words[n+i])+a)>>26,this.words[n+i]=67108863&t;if(a===0)return this.strip();for(m(a===-1),a=0,n=0;n<this.length;n++)a=(t=-(0|this.words[n])+a)>>26,this.words[n]=67108863&t;return this.negative=1,this.strip()},s.prototype._wordDiv=function(e,r){var i=(this.length,e.length),n=this.clone(),t=e,o=0|t.words[t.length-1];(i=26-this._countBits(o))!=0&&(t=t.ushln(i),n.iushln(i),o=0|t.words[t.length-1]);var a,T=n.length-t.length;if(r!=="mod"){(a=new s(null)).length=T+1,a.words=new Array(a.length);for(var C=0;C<a.length;C++)a.words[C]=0}var N=n.clone()._ishlnsubmul(t,1,T);N.negative===0&&(n=N,a&&(a.words[T]=1));for(var O=T-1;O>=0;O--){var R=67108864*(0|n.words[t.length+O])+(0|n.words[t.length+O-1]);for(R=Math.min(R/o|0,67108863),n._ishlnsubmul(t,R,O);n.negative!==0;)R--,n.negative=0,n._ishlnsubmul(t,1,O),n.isZero()||(n.negative^=1);a&&(a.words[O]=R)}return a&&a.strip(),n.strip(),r!=="div"&&i!==0&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(e,r,i){return m(!e.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:this.negative!==0&&e.negative===0?(o=this.neg().divmod(e,r),r!=="mod"&&(n=o.div.neg()),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.iadd(e)),{div:n,mod:t}):this.negative===0&&e.negative!==0?(o=this.divmod(e.neg(),r),r!=="mod"&&(n=o.div.neg()),{div:n,mod:o.mod}):this.negative&e.negative?(o=this.neg().divmod(e.neg(),r),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.isub(e)),{div:o.div,mod:t}):e.length>this.length||this.cmp(e)<0?{div:new s(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new s(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modn(e.words[0]))}:this._wordDiv(e,r);var n,t,o},s.prototype.div=function(e){return this.divmod(e,"div",!1).div},s.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},s.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},s.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var i=r.div.negative!==0?r.mod.isub(e):r.mod,n=e.ushrn(1),t=e.andln(1),o=i.cmp(n);return o<0||t===1&&o===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},s.prototype.modn=function(e){m(e<=67108863);for(var r=67108864%e,i=0,n=this.length-1;n>=0;n--)i=(r*i+(0|this.words[n]))%e;return i},s.prototype.idivn=function(e){m(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*r;this.words[i]=n/e|0,r=n%e}return this.strip()},s.prototype.divn=function(e){return this.clone().idivn(e)},s.prototype.egcd=function(e){m(e.negative===0),m(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n=new s(1),t=new s(0),o=new s(0),a=new s(1),T=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++T;for(var C=i.clone(),N=r.clone();!r.isZero();){for(var O=0,R=1;!(r.words[0]&R)&&O<26;++O,R<<=1);if(O>0)for(r.iushrn(O);O-- >0;)(n.isOdd()||t.isOdd())&&(n.iadd(C),t.isub(N)),n.iushrn(1),t.iushrn(1);for(var F=0,Z=1;!(i.words[0]&Z)&&F<26;++F,Z<<=1);if(F>0)for(i.iushrn(F);F-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(C),a.isub(N)),o.iushrn(1),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),n.isub(o),t.isub(a)):(i.isub(r),o.isub(n),a.isub(t))}return{a:o,b:a,gcd:i.iushln(T)}},s.prototype._invmp=function(e){m(e.negative===0),m(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n,t=new s(1),o=new s(0),a=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var T=0,C=1;!(r.words[0]&C)&&T<26;++T,C<<=1);if(T>0)for(r.iushrn(T);T-- >0;)t.isOdd()&&t.iadd(a),t.iushrn(1);for(var N=0,O=1;!(i.words[0]&O)&&N<26;++N,O<<=1);if(N>0)for(i.iushrn(N);N-- >0;)o.isOdd()&&o.iadd(a),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),t.isub(o)):(i.isub(r),o.isub(t))}return(n=r.cmpn(1)===0?t:o).cmpn(0)<0&&n.iadd(e),n},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),i=e.clone();r.negative=0,i.negative=0;for(var n=0;r.isEven()&&i.isEven();n++)r.iushrn(1),i.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var t=r.cmp(i);if(t<0){var o=r;r=i,i=o}else if(t===0||i.cmpn(1)===0)break;r.isub(i)}return i.iushln(n)},s.prototype.invm=function(e){return this.egcd(e).a.umod(e)},s.prototype.isEven=function(){return(1&this.words[0])==0},s.prototype.isOdd=function(){return(1&this.words[0])==1},s.prototype.andln=function(e){return this.words[0]&e},s.prototype.bincn=function(e){m(typeof e=="number");var r=e%26,i=(e-r)/26,n=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var t=n,o=i;t!==0&&o<this.length;o++){var a=0|this.words[o];t=(a+=t)>>>26,a&=67108863,this.words[o]=a}return t!==0&&(this.words[o]=t,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(e){var r,i=e<0;if(this.negative!==0&&!i)return-1;if(this.negative===0&&i)return 1;if(this.strip(),this.length>1)r=1;else{i&&(e=-e),m(e<=67108863,"Number is too big");var n=0|this.words[0];r=n===e?0:n<e?-1:1}return this.negative!==0?0|-r:r},s.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?0|-r:r},s.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],t=0|e.words[i];if(n!==t){n<t?r=-1:n>t&&(r=1);break}}return r},s.prototype.gtn=function(e){return this.cmpn(e)===1},s.prototype.gt=function(e){return this.cmp(e)===1},s.prototype.gten=function(e){return this.cmpn(e)>=0},s.prototype.gte=function(e){return this.cmp(e)>=0},s.prototype.ltn=function(e){return this.cmpn(e)===-1},s.prototype.lt=function(e){return this.cmp(e)===-1},s.prototype.lten=function(e){return this.cmpn(e)<=0},s.prototype.lte=function(e){return this.cmp(e)<=0},s.prototype.eqn=function(e){return this.cmpn(e)===0},s.prototype.eq=function(e){return this.cmp(e)===0},s.red=function(e){return new J(e)},s.prototype.toRed=function(e){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(e){return this.red=e,this},s.prototype.forceRed=function(e){return m(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return m(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};function j(e,r){this.name=e,this.p=new s(r,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function P(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function B(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function $(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function te(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(e){if(typeof e=="string"){var r=s._prime(e);this.m=r.p,this.prime=r}else m(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function oe(e){J.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}j.prototype._tmp=function(){var e=new s(null);return e.words=new Array(Math.ceil(this.n/13)),e},j.prototype.ireduce=function(e){var r,i=e;do this.split(i,this.tmp),r=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength();while(r>this.n);var n=r<this.n?-1:i.ucmp(this.p);return n===0?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):i.strip!==void 0?i.strip():i._strip(),i},j.prototype.split=function(e,r){e.iushrn(this.n,0,r)},j.prototype.imulK=function(e){return e.imul(this.k)},E(P,j),P.prototype.split=function(e,r){for(var i=4194303,n=Math.min(e.length,9),t=0;t<n;t++)r.words[t]=e.words[t];if(r.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(r.words[r.length++]=o&i,t=10;t<e.length;t++){var a=0|e.words[t];e.words[t-10]=(a&i)<<4|o>>>22,o=a}o>>>=22,e.words[t-10]=o,o===0&&e.length>10?e.length-=10:e.length-=9},P.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,i=0;i<e.length;i++){var n=0|e.words[i];r+=977*n,e.words[i]=67108863&r,r=64*n+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e},E(B,j),E($,j),E(te,j),te.prototype.imulK=function(e){for(var r=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+r,t=67108863&n;n>>>=26,e.words[i]=t,r=n}return r!==0&&(e.words[e.length++]=r),e},s._prime=function(e){if(x[e])return x[e];var r;if(e==="k256")r=new P;else if(e==="p224")r=new B;else if(e==="p192")r=new $;else{if(e!=="p25519")throw new Error("Unknown prime "+e);r=new te}return x[e]=r,r},J.prototype._verify1=function(e){m(e.negative===0,"red works only with positives"),m(e.red,"red works only with red numbers")},J.prototype._verify2=function(e,r){m((e.negative|r.negative)==0,"red works only with positives"),m(e.red&&e.red===r.red,"red works only with red numbers")},J.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},J.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},J.prototype.add=function(e,r){this._verify2(e,r);var i=e.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},J.prototype.iadd=function(e,r){this._verify2(e,r);var i=e.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},J.prototype.sub=function(e,r){this._verify2(e,r);var i=e.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},J.prototype.isub=function(e,r){this._verify2(e,r);var i=e.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},J.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},J.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},J.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},J.prototype.isqr=function(e){return this.imul(e,e.clone())},J.prototype.sqr=function(e){return this.mul(e,e)},J.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(m(r%2==1),r===3){var i=this.m.add(new s(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),t=0;!n.isZero()&&n.andln(1)===0;)t++,n.iushrn(1);m(!n.isZero());var o=new s(1).toRed(this),a=o.redNeg(),T=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new s(2*C*C).toRed(this);this.pow(C,T).cmp(a)!==0;)C.redIAdd(a);for(var N=this.pow(C,n),O=this.pow(e,n.addn(1).iushrn(1)),R=this.pow(e,n),F=t;R.cmp(o)!==0;){for(var Z=R,ie=0;Z.cmp(o)!==0;ie++)Z=Z.redSqr();m(ie<F);var D=this.pow(N,new s(1).iushln(F-ie-1));O=O.redMul(D),N=D.redSqr(),R=R.redMul(N),F=ie}return O},J.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},J.prototype.pow=function(e,r){if(r.isZero())return new s(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var i=new Array(16);i[0]=new s(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var t=i[0],o=0,a=0,T=r.bitLength()%26;for(T===0&&(T=26),n=r.length-1;n>=0;n--){for(var C=r.words[n],N=T-1;N>=0;N--){var O=C>>N&1;t!==i[0]&&(t=this.sqr(t)),O!==0||o!==0?(o<<=1,o|=O,(++a==4||n===0&&N===0)&&(t=this.mul(t,i[o]),a=0,o=0)):a=0}T=26}return t},J.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},J.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},s.mont=function(e){return new oe(e)},E(oe,J),oe.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},oe.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},oe.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},oe.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new s(0)._forceRed(this);var i=e.mul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},oe.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(H=y.nmd(H),this)},9282:(H,_,y)=>{var M=y(4155),v=y(5108);function m(N){return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},m(N)}var E,s,p=y(2136).codes,c=p.ERR_AMBIGUOUS_ARGUMENT,l=p.ERR_INVALID_ARG_TYPE,f=p.ERR_INVALID_ARG_VALUE,g=p.ERR_INVALID_RETURN_VALUE,h=p.ERR_MISSING_ARGS,u=y(5961),w=y(9539).inspect,b=y(9539).types,k=b.isPromise,A=b.isRegExp,x=Object.assign?Object.assign:y(8091).assign,j=Object.is?Object.is:y(609);function P(){var N=y(9158);E=N.isDeepEqual,s=N.isDeepStrictEqual}var B=!1,$=H.exports=e,te={};function J(N){throw N.message instanceof Error?N.message:new u(N)}function oe(N,O,R,F){if(!R){var Z=!1;if(O===0)Z=!0,F="No value argument passed to `assert.ok()`";else if(F instanceof Error)throw F;var ie=new u({actual:R,expected:!0,message:F,operator:"==",stackStartFn:N});throw ie.generatedMessage=Z,ie}}function e(){for(var N=arguments.length,O=new Array(N),R=0;R<N;R++)O[R]=arguments[R];oe.apply(void 0,[e,O.length].concat(O))}$.fail=function N(O,R,F,Z,ie){var D,Y=arguments.length;if(Y===0?D="Failed":Y===1?(F=O,O=void 0):(B===!1&&(B=!0,(M.emitWarning?M.emitWarning:v.warn.bind(v))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),Y===2&&(Z="!=")),F instanceof Error)throw F;var z={actual:O,expected:R,operator:Z===void 0?"fail":Z,stackStartFn:ie||N};F!==void 0&&(z.message=F);var W=new u(z);throw D&&(W.message=D,W.generatedMessage=!0),W},$.AssertionError=u,$.ok=e,$.equal=function N(O,R,F){if(arguments.length<2)throw new h("actual","expected");O!=R&&J({actual:O,expected:R,message:F,operator:"==",stackStartFn:N})},$.notEqual=function N(O,R,F){if(arguments.length<2)throw new h("actual","expected");O==R&&J({actual:O,expected:R,message:F,operator:"!=",stackStartFn:N})},$.deepEqual=function N(O,R,F){if(arguments.length<2)throw new h("actual","expected");E===void 0&&P(),E(O,R)||J({actual:O,expected:R,message:F,operator:"deepEqual",stackStartFn:N})},$.notDeepEqual=function N(O,R,F){if(arguments.length<2)throw new h("actual","expected");E===void 0&&P(),E(O,R)&&J({actual:O,expected:R,message:F,operator:"notDeepEqual",stackStartFn:N})},$.deepStrictEqual=function N(O,R,F){if(arguments.length<2)throw new h("actual","expected");E===void 0&&P(),s(O,R)||J({actual:O,expected:R,message:F,operator:"deepStrictEqual",stackStartFn:N})},$.notDeepStrictEqual=function N(O,R,F){if(arguments.length<2)throw new h("actual","expected");E===void 0&&P(),s(O,R)&&J({actual:O,expected:R,message:F,operator:"notDeepStrictEqual",stackStartFn:N})},$.strictEqual=function N(O,R,F){if(arguments.length<2)throw new h("actual","expected");j(O,R)||J({actual:O,expected:R,message:F,operator:"strictEqual",stackStartFn:N})},$.notStrictEqual=function N(O,R,F){if(arguments.length<2)throw new h("actual","expected");j(O,R)&&J({actual:O,expected:R,message:F,operator:"notStrictEqual",stackStartFn:N})};var r=function N(O,R,F){var Z=this;(function(ie,D){if(!(ie instanceof D))throw new TypeError("Cannot call a class as a function")})(this,N),R.forEach(function(ie){ie in O&&(F!==void 0&&typeof F[ie]=="string"&&A(O[ie])&&O[ie].test(F[ie])?Z[ie]=F[ie]:Z[ie]=O[ie])})};function i(N,O,R,F){if(typeof O!="function"){if(A(O))return O.test(N);if(arguments.length===2)throw new l("expected",["Function","RegExp"],O);if(m(N)!=="object"||N===null){var Z=new u({actual:N,expected:O,message:R,operator:"deepStrictEqual",stackStartFn:F});throw Z.operator=F.name,Z}var ie=Object.keys(O);if(O instanceof Error)ie.push("name","message");else if(ie.length===0)throw new f("error",O,"may not be an empty object");return E===void 0&&P(),ie.forEach(function(D){typeof N[D]=="string"&&A(O[D])&&O[D].test(N[D])||function(Y,z,W,ae,re,le){if(!(W in Y)||!s(Y[W],z[W])){if(!ae){var ke=new r(Y,re),ge=new r(z,re,Y),be=new u({actual:ke,expected:ge,operator:"deepStrictEqual",stackStartFn:le});throw be.actual=Y,be.expected=z,be.operator=le.name,be}J({actual:Y,expected:z,message:ae,operator:le.name,stackStartFn:le})}}(N,O,D,R,ie,F)}),!0}return O.prototype!==void 0&&N instanceof O||!Error.isPrototypeOf(O)&&O.call({},N)===!0}function n(N){if(typeof N!="function")throw new l("fn","Function",N);try{N()}catch(O){return O}return te}function t(N){return k(N)||N!==null&&m(N)==="object"&&typeof N.then=="function"&&typeof N.catch=="function"}function o(N){return Promise.resolve().then(function(){var O;if(typeof N=="function"){if(!t(O=N()))throw new g("instance of Promise","promiseFn",O)}else{if(!t(N))throw new l("promiseFn",["Function","Promise"],N);O=N}return Promise.resolve().then(function(){return O}).then(function(){return te}).catch(function(R){return R})})}function a(N,O,R,F){if(typeof R=="string"){if(arguments.length===4)throw new l("error",["Object","Error","Function","RegExp"],R);if(m(O)==="object"&&O!==null){if(O.message===R)throw new c("error/message",'The error message "'.concat(O.message,'" is identical to the message.'))}else if(O===R)throw new c("error/message",'The error "'.concat(O,'" is identical to the message.'));F=R,R=void 0}else if(R!=null&&m(R)!=="object"&&typeof R!="function")throw new l("error",["Object","Error","Function","RegExp"],R);if(O===te){var Z="";R&&R.name&&(Z+=" (".concat(R.name,")")),Z+=F?": ".concat(F):".";var ie=N.name==="rejects"?"rejection":"exception";J({actual:void 0,expected:R,operator:N.name,message:"Missing expected ".concat(ie).concat(Z),stackStartFn:N})}if(R&&!i(O,R,F,N))throw O}function T(N,O,R,F){if(O!==te){if(typeof R=="string"&&(F=R,R=void 0),!R||i(O,R)){var Z=F?": ".concat(F):".",ie=N.name==="doesNotReject"?"rejection":"exception";J({actual:O,expected:R,operator:N.name,message:"Got unwanted ".concat(ie).concat(Z,`
|
|
17
|
+
`)+'Actual message: "'.concat(O&&O.message,'"'),stackStartFn:N})}throw O}}function C(){for(var N=arguments.length,O=new Array(N),R=0;R<N;R++)O[R]=arguments[R];oe.apply(void 0,[C,O.length].concat(O))}$.throws=function N(O){for(var R=arguments.length,F=new Array(R>1?R-1:0),Z=1;Z<R;Z++)F[Z-1]=arguments[Z];a.apply(void 0,[N,n(O)].concat(F))},$.rejects=function N(O){for(var R=arguments.length,F=new Array(R>1?R-1:0),Z=1;Z<R;Z++)F[Z-1]=arguments[Z];return o(O).then(function(ie){return a.apply(void 0,[N,ie].concat(F))})},$.doesNotThrow=function N(O){for(var R=arguments.length,F=new Array(R>1?R-1:0),Z=1;Z<R;Z++)F[Z-1]=arguments[Z];T.apply(void 0,[N,n(O)].concat(F))},$.doesNotReject=function N(O){for(var R=arguments.length,F=new Array(R>1?R-1:0),Z=1;Z<R;Z++)F[Z-1]=arguments[Z];return o(O).then(function(ie){return T.apply(void 0,[N,ie].concat(F))})},$.ifError=function N(O){if(O!=null){var R="ifError got unwanted exception: ";m(O)==="object"&&typeof O.message=="string"?O.message.length===0&&O.constructor?R+=O.constructor.name:R+=O.message:R+=w(O);var F=new u({actual:O,expected:null,operator:"ifError",message:R,stackStartFn:N}),Z=O.stack;if(typeof Z=="string"){var ie=Z.split(`
|
|
18
|
+
`);ie.shift();for(var D=F.stack.split(`
|
|
19
|
+
`),Y=0;Y<ie.length;Y++){var z=D.indexOf(ie[Y]);if(z!==-1){D=D.slice(0,z);break}}F.stack="".concat(D.join(`
|
|
20
|
+
`),`
|
|
21
|
+
`).concat(ie.join(`
|
|
22
|
+
`))}throw F}},$.strict=x(C,$,{equal:$.strictEqual,deepEqual:$.deepStrictEqual,notEqual:$.notStrictEqual,notDeepEqual:$.notDeepStrictEqual}),$.strict.strict=$.strict},5961:(H,_,y)=>{var M=y(4155);function v(J,oe,e){return oe in J?Object.defineProperty(J,oe,{value:e,enumerable:!0,configurable:!0,writable:!0}):J[oe]=e,J}function m(J,oe){for(var e=0;e<oe.length;e++){var r=oe[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(J,r.key,r)}}function E(J,oe){return!oe||g(oe)!=="object"&&typeof oe!="function"?s(J):oe}function s(J){if(J===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J}function p(J){var oe=typeof Map=="function"?new Map:void 0;return p=function(e){if(e===null||(r=e,Function.toString.call(r).indexOf("[native code]")===-1))return e;var r;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(oe!==void 0){if(oe.has(e))return oe.get(e);oe.set(e,i)}function i(){return c(e,arguments,f(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),l(i,e)},p(J)}function c(J,oe,e){return c=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(r,i,n){var t=[null];t.push.apply(t,i);var o=new(Function.bind.apply(r,t));return n&&l(o,n.prototype),o},c.apply(null,arguments)}function l(J,oe){return l=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},l(J,oe)}function f(J){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(oe){return oe.__proto__||Object.getPrototypeOf(oe)},f(J)}function g(J){return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(oe){return typeof oe}:function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},g(J)}var h=y(9539).inspect,u=y(2136).codes.ERR_INVALID_ARG_TYPE;function w(J,oe,e){return(e===void 0||e>J.length)&&(e=J.length),J.substring(e-oe.length,e)===oe}var b="",k="",A="",x="",j={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},P=10;function B(J){var oe=Object.keys(J),e=Object.create(Object.getPrototypeOf(J));return oe.forEach(function(r){e[r]=J[r]}),Object.defineProperty(e,"message",{value:J.message}),e}function $(J){return h(J,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var te=function(J){function oe(i){var n;if(function(D,Y){if(!(D instanceof Y))throw new TypeError("Cannot call a class as a function")}(this,oe),g(i)!=="object"||i===null)throw new u("options","Object",i);var t=i.message,o=i.operator,a=i.stackStartFn,T=i.actual,C=i.expected,N=Error.stackTraceLimit;if(Error.stackTraceLimit=0,t!=null)n=E(this,f(oe).call(this,String(t)));else if(M.stderr&&M.stderr.isTTY&&(M.stderr&&M.stderr.getColorDepth&&M.stderr.getColorDepth()!==1?(b="\x1B[34m",k="\x1B[32m",x="\x1B[39m",A="\x1B[31m"):(b="",k="",x="",A="")),g(T)==="object"&&T!==null&&g(C)==="object"&&C!==null&&"stack"in T&&T instanceof Error&&"stack"in C&&C instanceof Error&&(T=B(T),C=B(C)),o==="deepStrictEqual"||o==="strictEqual")n=E(this,f(oe).call(this,function(D,Y,z){var W="",ae="",re=0,le="",ke=!1,ge=$(D),be=ge.split(`
|
|
23
|
+
`),je=$(Y).split(`
|
|
24
|
+
`),xe=0,Ae="";if(z==="strictEqual"&&g(D)==="object"&&g(Y)==="object"&&D!==null&&Y!==null&&(z="strictEqualObject"),be.length===1&&je.length===1&&be[0]!==je[0]){var X=be[0].length+je[0].length;if(X<=P){if(!(g(D)==="object"&&D!==null||g(Y)==="object"&&Y!==null||D===0&&Y===0))return"".concat(j[z],`
|
|
25
|
+
|
|
26
|
+
`)+"".concat(be[0]," !== ").concat(je[0],`
|
|
27
|
+
`)}else if(z!=="strictEqualObject"&&X<(M.stderr&&M.stderr.isTTY?M.stderr.columns:80)){for(;be[0][xe]===je[0][xe];)xe++;xe>2&&(Ae=`
|
|
28
|
+
`.concat(function(ft,Se){if(Se=Math.floor(Se),ft.length==0||Se==0)return"";var Ge=ft.length*Se;for(Se=Math.floor(Math.log(Se)/Math.log(2));Se;)ft+=ft,Se--;return ft+ft.substring(0,Ge-ft.length)}(" ",xe),"^"),xe=0)}}for(var ee=be[be.length-1],U=je[je.length-1];ee===U&&(xe++<2?le=`
|
|
29
|
+
`.concat(ee).concat(le):W=ee,be.pop(),je.pop(),be.length!==0&&je.length!==0);)ee=be[be.length-1],U=je[je.length-1];var V=Math.max(be.length,je.length);if(V===0){var q=ge.split(`
|
|
30
|
+
`);if(q.length>30)for(q[26]="".concat(b,"...").concat(x);q.length>27;)q.pop();return"".concat(j.notIdentical,`
|
|
31
|
+
|
|
32
|
+
`).concat(q.join(`
|
|
33
|
+
`),`
|
|
34
|
+
`)}xe>3&&(le=`
|
|
35
|
+
`.concat(b,"...").concat(x).concat(le),ke=!0),W!==""&&(le=`
|
|
36
|
+
`.concat(W).concat(le),W="");var ne=0,fe=j[z]+`
|
|
37
|
+
`.concat(k,"+ actual").concat(x," ").concat(A,"- expected").concat(x),he=" ".concat(b,"...").concat(x," Lines skipped");for(xe=0;xe<V;xe++){var me=xe-re;if(be.length<xe+1)me>1&&xe>2&&(me>4?(ae+=`
|
|
38
|
+
`.concat(b,"...").concat(x),ke=!0):me>3&&(ae+=`
|
|
39
|
+
`.concat(je[xe-2]),ne++),ae+=`
|
|
40
|
+
`.concat(je[xe-1]),ne++),re=xe,W+=`
|
|
41
|
+
`.concat(A,"-").concat(x," ").concat(je[xe]),ne++;else if(je.length<xe+1)me>1&&xe>2&&(me>4?(ae+=`
|
|
42
|
+
`.concat(b,"...").concat(x),ke=!0):me>3&&(ae+=`
|
|
43
|
+
`.concat(be[xe-2]),ne++),ae+=`
|
|
44
|
+
`.concat(be[xe-1]),ne++),re=xe,ae+=`
|
|
45
|
+
`.concat(k,"+").concat(x," ").concat(be[xe]),ne++;else{var it=je[xe],_e=be[xe],Te=_e!==it&&(!w(_e,",")||_e.slice(0,-1)!==it);Te&&w(it,",")&&it.slice(0,-1)===_e&&(Te=!1,_e+=","),Te?(me>1&&xe>2&&(me>4?(ae+=`
|
|
46
|
+
`.concat(b,"...").concat(x),ke=!0):me>3&&(ae+=`
|
|
47
|
+
`.concat(be[xe-2]),ne++),ae+=`
|
|
48
|
+
`.concat(be[xe-1]),ne++),re=xe,ae+=`
|
|
49
|
+
`.concat(k,"+").concat(x," ").concat(_e),W+=`
|
|
50
|
+
`.concat(A,"-").concat(x," ").concat(it),ne+=2):(ae+=W,W="",me!==1&&xe!==0||(ae+=`
|
|
51
|
+
`.concat(_e),ne++))}if(ne>20&&xe<V-2)return"".concat(fe).concat(he,`
|
|
52
|
+
`).concat(ae,`
|
|
53
|
+
`).concat(b,"...").concat(x).concat(W,`
|
|
54
|
+
`)+"".concat(b,"...").concat(x)}return"".concat(fe).concat(ke?he:"",`
|
|
55
|
+
`).concat(ae).concat(W).concat(le).concat(Ae)}(T,C,o)));else if(o==="notDeepStrictEqual"||o==="notStrictEqual"){var O=j[o],R=$(T).split(`
|
|
56
|
+
`);if(o==="notStrictEqual"&&g(T)==="object"&&T!==null&&(O=j.notStrictEqualObject),R.length>30)for(R[26]="".concat(b,"...").concat(x);R.length>27;)R.pop();n=R.length===1?E(this,f(oe).call(this,"".concat(O," ").concat(R[0]))):E(this,f(oe).call(this,"".concat(O,`
|
|
57
|
+
|
|
58
|
+
`).concat(R.join(`
|
|
59
|
+
`),`
|
|
60
|
+
`)))}else{var F=$(T),Z="",ie=j[o];o==="notDeepEqual"||o==="notEqual"?(F="".concat(j[o],`
|
|
61
|
+
|
|
62
|
+
`).concat(F)).length>1024&&(F="".concat(F.slice(0,1021),"...")):(Z="".concat($(C)),F.length>512&&(F="".concat(F.slice(0,509),"...")),Z.length>512&&(Z="".concat(Z.slice(0,509),"...")),o==="deepEqual"||o==="equal"?F="".concat(ie,`
|
|
63
|
+
|
|
64
|
+
`).concat(F,`
|
|
65
|
+
|
|
66
|
+
should equal
|
|
67
|
+
|
|
68
|
+
`):Z=" ".concat(o," ").concat(Z)),n=E(this,f(oe).call(this,"".concat(F).concat(Z)))}return Error.stackTraceLimit=N,n.generatedMessage=!t,Object.defineProperty(s(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=T,n.expected=C,n.operator=o,Error.captureStackTrace&&Error.captureStackTrace(s(n),a),n.stack,n.name="AssertionError",E(n)}var e,r;return function(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(n&&n.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),n&&l(i,n)}(oe,J),e=oe,r=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h.custom,value:function(i,n){return h(this,function(t){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{},T=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(T=T.concat(Object.getOwnPropertySymbols(a).filter(function(C){return Object.getOwnPropertyDescriptor(a,C).enumerable}))),T.forEach(function(C){v(t,C,a[C])})}return t}({},n,{customInspect:!1,depth:0}))}}],r&&m(e.prototype,r),oe}(p(Error));H.exports=te},2136:(H,_,y)=>{function M(f){return M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},M(f)}function v(f){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)},v(f)}function m(f,g){return m=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},m(f,g)}var E,s,p={};function c(f,g,h){h||(h=Error);var u=function(w){function b(k,A,x){var j;return function(P,B){if(!(P instanceof B))throw new TypeError("Cannot call a class as a function")}(this,b),j=function(P,B){return!B||M(B)!=="object"&&typeof B!="function"?function($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}(P):B}(this,v(b).call(this,function(P,B,$){return typeof g=="string"?g:g(P,B,$)}(k,A,x))),j.code=f,j}return function(k,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(A&&A.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),A&&m(k,A)}(b,w),b}(h);p[f]=u}function l(f,g){if(Array.isArray(f)){var h=f.length;return f=f.map(function(u){return String(u)}),h>2?"one of ".concat(g," ").concat(f.slice(0,h-1).join(", "),", or ")+f[h-1]:h===2?"one of ".concat(g," ").concat(f[0]," or ").concat(f[1]):"of ".concat(g," ").concat(f[0])}return"of ".concat(g," ").concat(String(f))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",function(f,g,h){var u,w,b,k,A;if(E===void 0&&(E=y(9282)),E(typeof f=="string","'name' must be a string"),typeof g=="string"&&(w="not ",g.substr(0,w.length)===w)?(u="must not be",g=g.replace(/^not /,"")):u="must be",function(j,P,B){return(B===void 0||B>j.length)&&(B=j.length),j.substring(B-P.length,B)===P}(f," argument"))b="The ".concat(f," ").concat(u," ").concat(l(g,"type"));else{var x=(typeof A!="number"&&(A=0),A+1>(k=f).length||k.indexOf(".",A)===-1?"argument":"property");b='The "'.concat(f,'" ').concat(x," ").concat(u," ").concat(l(g,"type"))}return b+". Received type ".concat(M(h))},TypeError),c("ERR_INVALID_ARG_VALUE",function(f,g){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";s===void 0&&(s=y(9539));var u=s.inspect(g);return u.length>128&&(u="".concat(u.slice(0,128),"...")),"The argument '".concat(f,"' ").concat(h,". Received ").concat(u)},TypeError),c("ERR_INVALID_RETURN_VALUE",function(f,g,h){var u;return u=h&&h.constructor&&h.constructor.name?"instance of ".concat(h.constructor.name):"type ".concat(M(h)),"Expected ".concat(f,' to be returned from the "').concat(g,'"')+" function but got ".concat(u,".")},TypeError),c("ERR_MISSING_ARGS",function(){for(var f=arguments.length,g=new Array(f),h=0;h<f;h++)g[h]=arguments[h];E===void 0&&(E=y(9282)),E(g.length>0,"At least one arg needs to be specified");var u="The ",w=g.length;switch(g=g.map(function(b){return'"'.concat(b,'"')}),w){case 1:u+="".concat(g[0]," argument");break;case 2:u+="".concat(g[0]," and ").concat(g[1]," arguments");break;default:u+=g.slice(0,w-1).join(", "),u+=", and ".concat(g[w-1]," arguments")}return"".concat(u," must be specified")},TypeError),H.exports.codes=p},9158:(H,_,y)=>{function M(ae,re){return function(le){if(Array.isArray(le))return le}(ae)||function(le,ke){var ge=[],be=!0,je=!1,xe=void 0;try{for(var Ae,X=le[Symbol.iterator]();!(be=(Ae=X.next()).done)&&(ge.push(Ae.value),!ke||ge.length!==ke);be=!0);}catch(ee){je=!0,xe=ee}finally{try{be||X.return==null||X.return()}finally{if(je)throw xe}}return ge}(ae,re)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function v(ae){return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(re){return typeof re}:function(re){return re&&typeof Symbol=="function"&&re.constructor===Symbol&&re!==Symbol.prototype?"symbol":typeof re},v(ae)}var m=/a/g.flags!==void 0,E=function(ae){var re=[];return ae.forEach(function(le){return re.push(le)}),re},s=function(ae){var re=[];return ae.forEach(function(le,ke){return re.push([ke,le])}),re},p=Object.is?Object.is:y(609),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:y(360);function f(ae){return ae.call.bind(ae)}var g=f(Object.prototype.hasOwnProperty),h=f(Object.prototype.propertyIsEnumerable),u=f(Object.prototype.toString),w=y(9539).types,b=w.isAnyArrayBuffer,k=w.isArrayBufferView,A=w.isDate,x=w.isMap,j=w.isRegExp,P=w.isSet,B=w.isNativeError,$=w.isBoxedPrimitive,te=w.isNumberObject,J=w.isStringObject,oe=w.isBooleanObject,e=w.isBigIntObject,r=w.isSymbolObject,i=w.isFloat32Array,n=w.isFloat64Array;function t(ae){if(ae.length===0||ae.length>10)return!0;for(var re=0;re<ae.length;re++){var le=ae.charCodeAt(re);if(le<48||le>57)return!0}return ae.length===10&&ae>=Math.pow(2,32)}function o(ae){return Object.keys(ae).filter(t).concat(c(ae).filter(Object.prototype.propertyIsEnumerable.bind(ae)))}function a(ae,re){if(ae===re)return 0;for(var le=ae.length,ke=re.length,ge=0,be=Math.min(le,ke);ge<be;++ge)if(ae[ge]!==re[ge]){le=ae[ge],ke=re[ge];break}return le<ke?-1:ke<le?1:0}var T=0,C=1,N=2,O=3;function R(ae,re,le,ke){if(ae===re)return ae!==0||!le||p(ae,re);if(le){if(v(ae)!=="object")return typeof ae=="number"&&l(ae)&&l(re);if(v(re)!=="object"||ae===null||re===null||Object.getPrototypeOf(ae)!==Object.getPrototypeOf(re))return!1}else{if(ae===null||v(ae)!=="object")return(re===null||v(re)!=="object")&&ae==re;if(re===null||v(re)!=="object")return!1}var ge,be,je,xe,Ae=u(ae);if(Ae!==u(re))return!1;if(Array.isArray(ae)){if(ae.length!==re.length)return!1;var X=o(ae),ee=o(re);return X.length===ee.length&&Z(ae,re,le,ke,C,X)}if(Ae==="[object Object]"&&(!x(ae)&&x(re)||!P(ae)&&P(re)))return!1;if(A(ae)){if(!A(re)||Date.prototype.getTime.call(ae)!==Date.prototype.getTime.call(re))return!1}else if(j(ae)){if(!j(re)||(je=ae,xe=re,!(m?je.source===xe.source&&je.flags===xe.flags:RegExp.prototype.toString.call(je)===RegExp.prototype.toString.call(xe))))return!1}else if(B(ae)||ae instanceof Error){if(ae.message!==re.message||ae.name!==re.name)return!1}else{if(k(ae)){if(le||!i(ae)&&!n(ae)){if(!function(q,ne){return q.byteLength===ne.byteLength&&a(new Uint8Array(q.buffer,q.byteOffset,q.byteLength),new Uint8Array(ne.buffer,ne.byteOffset,ne.byteLength))===0}(ae,re))return!1}else if(!function(q,ne){if(q.byteLength!==ne.byteLength)return!1;for(var fe=0;fe<q.byteLength;fe++)if(q[fe]!==ne[fe])return!1;return!0}(ae,re))return!1;var U=o(ae),V=o(re);return U.length===V.length&&Z(ae,re,le,ke,T,U)}if(P(ae))return!(!P(re)||ae.size!==re.size)&&Z(ae,re,le,ke,N);if(x(ae))return!(!x(re)||ae.size!==re.size)&&Z(ae,re,le,ke,O);if(b(ae)){if(be=re,(ge=ae).byteLength!==be.byteLength||a(new Uint8Array(ge),new Uint8Array(be))!==0)return!1}else if($(ae)&&!function(q,ne){return te(q)?te(ne)&&p(Number.prototype.valueOf.call(q),Number.prototype.valueOf.call(ne)):J(q)?J(ne)&&String.prototype.valueOf.call(q)===String.prototype.valueOf.call(ne):oe(q)?oe(ne)&&Boolean.prototype.valueOf.call(q)===Boolean.prototype.valueOf.call(ne):e(q)?e(ne)&&BigInt.prototype.valueOf.call(q)===BigInt.prototype.valueOf.call(ne):r(ne)&&Symbol.prototype.valueOf.call(q)===Symbol.prototype.valueOf.call(ne)}(ae,re))return!1}return Z(ae,re,le,ke,T)}function F(ae,re){return re.filter(function(le){return h(ae,le)})}function Z(ae,re,le,ke,ge,be){if(arguments.length===5){be=Object.keys(ae);var je=Object.keys(re);if(be.length!==je.length)return!1}for(var xe=0;xe<be.length;xe++)if(!g(re,be[xe]))return!1;if(le&&arguments.length===5){var Ae=c(ae);if(Ae.length!==0){var X=0;for(xe=0;xe<Ae.length;xe++){var ee=Ae[xe];if(h(ae,ee)){if(!h(re,ee))return!1;be.push(ee),X++}else if(h(re,ee))return!1}var U=c(re);if(Ae.length!==U.length&&F(re,U).length!==X)return!1}else{var V=c(re);if(V.length!==0&&F(re,V).length!==0)return!1}}if(be.length===0&&(ge===T||ge===C&&ae.length===0||ae.size===0))return!0;if(ke===void 0)ke={val1:new Map,val2:new Map,position:0};else{var q=ke.val1.get(ae);if(q!==void 0){var ne=ke.val2.get(re);if(ne!==void 0)return q===ne}ke.position++}ke.val1.set(ae,ke.position),ke.val2.set(re,ke.position);var fe=function(he,me,it,_e,Te,ft){var Se=0;if(ft===N){if(!function(Ve,Nt,Re,Ke){for(var yt=null,Be=E(Ve),We=0;We<Be.length;We++){var St=Be[We];if(v(St)==="object"&&St!==null)yt===null&&(yt=new Set),yt.add(St);else if(!Nt.has(St)){if(Re||!Y(Ve,Nt,St))return!1;yt===null&&(yt=new Set),yt.add(St)}}if(yt!==null){for(var Ne=E(Nt),Ze=0;Ze<Ne.length;Ze++){var It=Ne[Ze];if(v(It)==="object"&&It!==null){if(!ie(yt,It,Re,Ke))return!1}else if(!Re&&!Ve.has(It)&&!ie(yt,It,Re,Ke))return!1}return yt.size===0}return!0}(he,me,it,Te))return!1}else if(ft===O){if(!function(Ve,Nt,Re,Ke){for(var yt=null,Be=s(Ve),We=0;We<Be.length;We++){var St=M(Be[We],2),Ne=St[0],Ze=St[1];if(v(Ne)==="object"&&Ne!==null)yt===null&&(yt=new Set),yt.add(Ne);else{var It=Nt.get(Ne);if(It===void 0&&!Nt.has(Ne)||!R(Ze,It,Re,Ke)){if(Re||!z(Ve,Nt,Ne,Ze,Ke))return!1;yt===null&&(yt=new Set),yt.add(Ne)}}}if(yt!==null){for(var Le=s(Nt),Xe=0;Xe<Le.length;Xe++){var Dt=M(Le[Xe],2),De=(Ne=Dt[0],Dt[1]);if(v(Ne)==="object"&&Ne!==null){if(!W(yt,Ve,Ne,De,Re,Ke))return!1}else if(!(Re||Ve.has(Ne)&&R(Ve.get(Ne),De,!1,Ke)||W(yt,Ve,Ne,De,!1,Ke)))return!1}return yt.size===0}return!0}(he,me,it,Te))return!1}else if(ft===C)for(;Se<he.length;Se++){if(!g(he,Se)){if(g(me,Se))return!1;for(var Ge=Object.keys(he);Se<Ge.length;Se++){var Ct=Ge[Se];if(!g(me,Ct)||!R(he[Ct],me[Ct],it,Te))return!1}return Ge.length===Object.keys(me).length}if(!g(me,Se)||!R(he[Se],me[Se],it,Te))return!1}for(Se=0;Se<_e.length;Se++){var Pe=_e[Se];if(!R(he[Pe],me[Pe],it,Te))return!1}return!0}(ae,re,le,be,ke,ge);return ke.val1.delete(ae),ke.val2.delete(re),fe}function ie(ae,re,le,ke){for(var ge=E(ae),be=0;be<ge.length;be++){var je=ge[be];if(R(re,je,le,ke))return ae.delete(je),!0}return!1}function D(ae){switch(v(ae)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":ae=+ae;case"number":if(l(ae))return!1}return!0}function Y(ae,re,le){var ke=D(le);return ke??(re.has(ke)&&!ae.has(ke))}function z(ae,re,le,ke,ge){var be=D(le);if(be!=null)return be;var je=re.get(be);return!(je===void 0&&!re.has(be)||!R(ke,je,!1,ge))&&!ae.has(be)&&R(ke,je,!1,ge)}function W(ae,re,le,ke,ge,be){for(var je=E(ae),xe=0;xe<je.length;xe++){var Ae=je[xe];if(R(le,Ae,ge,be)&&R(ke,re.get(Ae),ge,be))return ae.delete(Ae),!0}return!1}H.exports={isDeepEqual:function(ae,re){return R(ae,re,!1)},isDeepStrictEqual:function(ae,re){return R(ae,re,!0)}}},9742:(H,_)=>{_.byteLength=function(l){var f=p(l),g=f[0],h=f[1];return 3*(g+h)/4-h},_.toByteArray=function(l){var f,g,h=p(l),u=h[0],w=h[1],b=new v(function(x,j,P){return 3*(j+P)/4-P}(0,u,w)),k=0,A=w>0?u-4:u;for(g=0;g<A;g+=4)f=M[l.charCodeAt(g)]<<18|M[l.charCodeAt(g+1)]<<12|M[l.charCodeAt(g+2)]<<6|M[l.charCodeAt(g+3)],b[k++]=f>>16&255,b[k++]=f>>8&255,b[k++]=255&f;return w===2&&(f=M[l.charCodeAt(g)]<<2|M[l.charCodeAt(g+1)]>>4,b[k++]=255&f),w===1&&(f=M[l.charCodeAt(g)]<<10|M[l.charCodeAt(g+1)]<<4|M[l.charCodeAt(g+2)]>>2,b[k++]=f>>8&255,b[k++]=255&f),b},_.fromByteArray=function(l){for(var f,g=l.length,h=g%3,u=[],w=16383,b=0,k=g-h;b<k;b+=w)u.push(c(l,b,b+w>k?k:b+w));return h===1?(f=l[g-1],u.push(y[f>>2]+y[f<<4&63]+"==")):h===2&&(f=(l[g-2]<<8)+l[g-1],u.push(y[f>>10]+y[f>>4&63]+y[f<<2&63]+"=")),u.join("")};for(var y=[],M=[],v=typeof Uint8Array<"u"?Uint8Array:Array,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=0,s=m.length;E<s;++E)y[E]=m[E],M[m.charCodeAt(E)]=E;function p(l){var f=l.length;if(f%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=l.indexOf("=");return g===-1&&(g=f),[g,g===f?0:4-g%4]}function c(l,f,g){for(var h,u,w=[],b=f;b<g;b+=3)h=(l[b]<<16&16711680)+(l[b+1]<<8&65280)+(255&l[b+2]),w.push(y[(u=h)>>18&63]+y[u>>12&63]+y[u>>6&63]+y[63&u]);return w.join("")}M["-".charCodeAt(0)]=62,M["_".charCodeAt(0)]=63},9e3:(H,_,y)=>{var M=y(8764).Buffer;const{Transform:v}=y(8473);H.exports=class extends v{constructor(m,E={}){super(E),typeof m=="object"&&(m=(E=m).size),this.size=m||512;const{nopad:s,zeroPadding:p=!0}=E;this._zeroPadding=!s&&!!p,this._buffered=[],this._bufferedBytes=0}_transform(m,E,s){for(this._bufferedBytes+=m.length,this._buffered.push(m);this._bufferedBytes>=this.size;){this._bufferedBytes-=this.size;const p=[];let c=0;for(;c<this.size;){const l=this._buffered.shift();if(c+l.length<=this.size)p.push(l),c+=l.length;else{const f=this.size-c;p.push(l.slice(0,f)),c+=f,this._buffered.unshift(l.slice(f))}}this.push(M.concat(p,this.size))}s()}_flush(){if(this._bufferedBytes&&this._zeroPadding){const m=M.alloc(this.size-this._bufferedBytes);this._buffered.push(m),this.push(M.concat(this._buffered)),this._buffered=null}else this._bufferedBytes&&(this.push(M.concat(this._buffered)),this._buffered=null);this.push(null)}}},3550:function(H,_,y){(function(M,v){function m(i,n){if(!i)throw new Error(n||"Assertion failed")}function E(i,n){i.super_=n;var t=function(){};t.prototype=n.prototype,i.prototype=new t,i.prototype.constructor=i}function s(i,n,t){if(s.isBN(i))return i;this.negative=0,this.words=null,this.length=0,this.red=null,i!==null&&(n!=="le"&&n!=="be"||(t=n,n=10),this._init(i||0,n||10,t||"be"))}var p;typeof M=="object"?M.exports=s:v.BN=s,s.BN=s,s.wordSize=26;try{p=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:y(6601).Buffer}catch{}function c(i,n){var t=i.charCodeAt(n);return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:void m(!1,"Invalid character in "+i)}function l(i,n,t){var o=c(i,t);return t-1>=n&&(o|=c(i,t-1)<<4),o}function f(i,n,t,o){for(var a=0,T=0,C=Math.min(i.length,t),N=n;N<C;N++){var O=i.charCodeAt(N)-48;a*=o,T=O>=49?O-49+10:O>=17?O-17+10:O,m(O>=0&&T<o,"Invalid character"),a+=T}return a}function g(i,n){i.words=n.words,i.length=n.length,i.negative=n.negative,i.red=n.red}if(s.isBN=function(i){return i instanceof s||i!==null&&typeof i=="object"&&i.constructor.wordSize===s.wordSize&&Array.isArray(i.words)},s.max=function(i,n){return i.cmp(n)>0?i:n},s.min=function(i,n){return i.cmp(n)<0?i:n},s.prototype._init=function(i,n,t){if(typeof i=="number")return this._initNumber(i,n,t);if(typeof i=="object")return this._initArray(i,n,t);n==="hex"&&(n=16),m(n===(0|n)&&n>=2&&n<=36);var o=0;(i=i.toString().replace(/\s+/g,""))[0]==="-"&&(o++,this.negative=1),o<i.length&&(n===16?this._parseHex(i,o,t):(this._parseBase(i,n,o),t==="le"&&this._initArray(this.toArray(),n,t)))},s.prototype._initNumber=function(i,n,t){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(m(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),t==="le"&&this._initArray(this.toArray(),n,t)},s.prototype._initArray=function(i,n,t){if(m(typeof i.length=="number"),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var a,T,C=0;if(t==="be")for(o=i.length-1,a=0;o>=0;o-=3)T=i[o]|i[o-1]<<8|i[o-2]<<16,this.words[a]|=T<<C&67108863,this.words[a+1]=T>>>26-C&67108863,(C+=24)>=26&&(C-=26,a++);else if(t==="le")for(o=0,a=0;o<i.length;o+=3)T=i[o]|i[o+1]<<8|i[o+2]<<16,this.words[a]|=T<<C&67108863,this.words[a+1]=T>>>26-C&67108863,(C+=24)>=26&&(C-=26,a++);return this._strip()},s.prototype._parseHex=function(i,n,t){this.length=Math.ceil((i.length-n)/6),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var a,T=0,C=0;if(t==="be")for(o=i.length-1;o>=n;o-=2)a=l(i,n,o)<<T,this.words[C]|=67108863&a,T>=18?(T-=18,C+=1,this.words[C]|=a>>>26):T+=8;else for(o=(i.length-n)%2==0?n+1:n;o<i.length;o+=2)a=l(i,n,o)<<T,this.words[C]|=67108863&a,T>=18?(T-=18,C+=1,this.words[C]|=a>>>26):T+=8;this._strip()},s.prototype._parseBase=function(i,n,t){this.words=[0],this.length=1;for(var o=0,a=1;a<=67108863;a*=n)o++;o--,a=a/n|0;for(var T=i.length-t,C=T%o,N=Math.min(T,T-C)+t,O=0,R=t;R<N;R+=o)O=f(i,R,R+o,n),this.imuln(a),this.words[0]+O<67108864?this.words[0]+=O:this._iaddn(O);if(C!==0){var F=1;for(O=f(i,R,i.length,n),R=0;R<C;R++)F*=n;this.imuln(F),this.words[0]+O<67108864?this.words[0]+=O:this._iaddn(O)}this._strip()},s.prototype.copy=function(i){i.words=new Array(this.length);for(var n=0;n<this.length;n++)i.words[n]=this.words[n];i.length=this.length,i.negative=this.negative,i.red=this.red},s.prototype._move=function(i){g(i,this)},s.prototype.clone=function(){var i=new s(null);return this.copy(i),i},s.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch{s.prototype.inspect=h}else s.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var u=["","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"],w=[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],b=[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];function k(i,n,t){t.negative=n.negative^i.negative;var o=i.length+n.length|0;t.length=o,o=o-1|0;var a=0|i.words[0],T=0|n.words[0],C=a*T,N=67108863&C,O=C/67108864|0;t.words[0]=N;for(var R=1;R<o;R++){for(var F=O>>>26,Z=67108863&O,ie=Math.min(R,n.length-1),D=Math.max(0,R-i.length+1);D<=ie;D++){var Y=R-D|0;F+=(C=(a=0|i.words[Y])*(T=0|n.words[D])+Z)/67108864|0,Z=67108863&C}t.words[R]=0|Z,O=0|F}return O!==0?t.words[R]=0|O:t.length--,t._strip()}s.prototype.toString=function(i,n){var t;if(n=0|n||1,(i=i||10)===16||i==="hex"){t="";for(var o=0,a=0,T=0;T<this.length;T++){var C=this.words[T],N=(16777215&(C<<o|a)).toString(16);a=C>>>24-o&16777215,(o+=2)>=26&&(o-=26,T--),t=a!==0||T!==this.length-1?u[6-N.length]+N+t:N+t}for(a!==0&&(t=a.toString(16)+t);t.length%n!=0;)t="0"+t;return this.negative!==0&&(t="-"+t),t}if(i===(0|i)&&i>=2&&i<=36){var O=w[i],R=b[i];t="";var F=this.clone();for(F.negative=0;!F.isZero();){var Z=F.modrn(R).toString(i);t=(F=F.idivn(R)).isZero()?Z+t:u[O-Z.length]+Z+t}for(this.isZero()&&(t="0"+t);t.length%n!=0;)t="0"+t;return this.negative!==0&&(t="-"+t),t}m(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var i=this.words[0];return this.length===2?i+=67108864*this.words[1]:this.length===3&&this.words[2]===1?i+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-i:i},s.prototype.toJSON=function(){return this.toString(16,2)},p&&(s.prototype.toBuffer=function(i,n){return this.toArrayLike(p,i,n)}),s.prototype.toArray=function(i,n){return this.toArrayLike(Array,i,n)},s.prototype.toArrayLike=function(i,n,t){this._strip();var o=this.byteLength(),a=t||Math.max(1,o);m(o<=a,"byte array longer than desired length"),m(a>0,"Requested array length <= 0");var T=function(C,N){return C.allocUnsafe?C.allocUnsafe(N):new C(N)}(i,a);return this["_toArrayLike"+(n==="le"?"LE":"BE")](T,o),T},s.prototype._toArrayLikeLE=function(i,n){for(var t=0,o=0,a=0,T=0;a<this.length;a++){var C=this.words[a]<<T|o;i[t++]=255&C,t<i.length&&(i[t++]=C>>8&255),t<i.length&&(i[t++]=C>>16&255),T===6?(t<i.length&&(i[t++]=C>>24&255),o=0,T=0):(o=C>>>24,T+=2)}if(t<i.length)for(i[t++]=o;t<i.length;)i[t++]=0},s.prototype._toArrayLikeBE=function(i,n){for(var t=i.length-1,o=0,a=0,T=0;a<this.length;a++){var C=this.words[a]<<T|o;i[t--]=255&C,t>=0&&(i[t--]=C>>8&255),t>=0&&(i[t--]=C>>16&255),T===6?(t>=0&&(i[t--]=C>>24&255),o=0,T=0):(o=C>>>24,T+=2)}if(t>=0)for(i[t--]=o;t>=0;)i[t--]=0},Math.clz32?s.prototype._countBits=function(i){return 32-Math.clz32(i)}:s.prototype._countBits=function(i){var n=i,t=0;return n>=4096&&(t+=13,n>>>=13),n>=64&&(t+=7,n>>>=7),n>=8&&(t+=4,n>>>=4),n>=2&&(t+=2,n>>>=2),t+n},s.prototype._zeroBits=function(i){if(i===0)return 26;var n=i,t=0;return!(8191&n)&&(t+=13,n>>>=13),!(127&n)&&(t+=7,n>>>=7),!(15&n)&&(t+=4,n>>>=4),!(3&n)&&(t+=2,n>>>=2),!(1&n)&&t++,t},s.prototype.bitLength=function(){var i=this.words[this.length-1],n=this._countBits(i);return 26*(this.length-1)+n},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,n=0;n<this.length;n++){var t=this._zeroBits(this.words[n]);if(i+=t,t!==26)break}return i},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(i){return this.negative!==0?this.abs().inotn(i).iaddn(1):this.clone()},s.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var n=0;n<i.length;n++)this.words[n]=this.words[n]|i.words[n];return this._strip()},s.prototype.ior=function(i){return m((this.negative|i.negative)==0),this.iuor(i)},s.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},s.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},s.prototype.iuand=function(i){var n;n=this.length>i.length?i:this;for(var t=0;t<n.length;t++)this.words[t]=this.words[t]&i.words[t];return this.length=n.length,this._strip()},s.prototype.iand=function(i){return m((this.negative|i.negative)==0),this.iuand(i)},s.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},s.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},s.prototype.iuxor=function(i){var n,t;this.length>i.length?(n=this,t=i):(n=i,t=this);for(var o=0;o<t.length;o++)this.words[o]=n.words[o]^t.words[o];if(this!==n)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=n.length,this._strip()},s.prototype.ixor=function(i){return m((this.negative|i.negative)==0),this.iuxor(i)},s.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},s.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},s.prototype.inotn=function(i){m(typeof i=="number"&&i>=0);var n=0|Math.ceil(i/26),t=i%26;this._expand(n),t>0&&n--;for(var o=0;o<n;o++)this.words[o]=67108863&~this.words[o];return t>0&&(this.words[o]=~this.words[o]&67108863>>26-t),this._strip()},s.prototype.notn=function(i){return this.clone().inotn(i)},s.prototype.setn=function(i,n){m(typeof i=="number"&&i>=0);var t=i/26|0,o=i%26;return this._expand(t+1),this.words[t]=n?this.words[t]|1<<o:this.words[t]&~(1<<o),this._strip()},s.prototype.iadd=function(i){var n,t,o;if(this.negative!==0&&i.negative===0)return this.negative=0,n=this.isub(i),this.negative^=1,this._normSign();if(this.negative===0&&i.negative!==0)return i.negative=0,n=this.isub(i),i.negative=1,n._normSign();this.length>i.length?(t=this,o=i):(t=i,o=this);for(var a=0,T=0;T<o.length;T++)n=(0|t.words[T])+(0|o.words[T])+a,this.words[T]=67108863&n,a=n>>>26;for(;a!==0&&T<t.length;T++)n=(0|t.words[T])+a,this.words[T]=67108863&n,a=n>>>26;if(this.length=t.length,a!==0)this.words[this.length]=a,this.length++;else if(t!==this)for(;T<t.length;T++)this.words[T]=t.words[T];return this},s.prototype.add=function(i){var n;return i.negative!==0&&this.negative===0?(i.negative=0,n=this.sub(i),i.negative^=1,n):i.negative===0&&this.negative!==0?(this.negative=0,n=i.sub(this),this.negative=1,n):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},s.prototype.isub=function(i){if(i.negative!==0){i.negative=0;var n=this.iadd(i);return i.negative=1,n._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var t,o,a=this.cmp(i);if(a===0)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(t=this,o=i):(t=i,o=this);for(var T=0,C=0;C<o.length;C++)T=(n=(0|t.words[C])-(0|o.words[C])+T)>>26,this.words[C]=67108863&n;for(;T!==0&&C<t.length;C++)T=(n=(0|t.words[C])+T)>>26,this.words[C]=67108863&n;if(T===0&&C<t.length&&t!==this)for(;C<t.length;C++)this.words[C]=t.words[C];return this.length=Math.max(this.length,C),t!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(i){return this.clone().isub(i)};var A=function(i,n,t){var o,a,T,C=i.words,N=n.words,O=t.words,R=0,F=0|C[0],Z=8191&F,ie=F>>>13,D=0|C[1],Y=8191&D,z=D>>>13,W=0|C[2],ae=8191&W,re=W>>>13,le=0|C[3],ke=8191&le,ge=le>>>13,be=0|C[4],je=8191&be,xe=be>>>13,Ae=0|C[5],X=8191&Ae,ee=Ae>>>13,U=0|C[6],V=8191&U,q=U>>>13,ne=0|C[7],fe=8191&ne,he=ne>>>13,me=0|C[8],it=8191&me,_e=me>>>13,Te=0|C[9],ft=8191&Te,Se=Te>>>13,Ge=0|N[0],Ct=8191&Ge,Pe=Ge>>>13,Ve=0|N[1],Nt=8191&Ve,Re=Ve>>>13,Ke=0|N[2],yt=8191&Ke,Be=Ke>>>13,We=0|N[3],St=8191&We,Ne=We>>>13,Ze=0|N[4],It=8191&Ze,Le=Ze>>>13,Xe=0|N[5],Dt=8191&Xe,De=Xe>>>13,Qe=0|N[6],zt=8191&Qe,qe=Qe>>>13,Je=0|N[7],$t=8191&Je,Fe=Je>>>13,tt=0|N[8],Vt=8191&tt,Ue=tt>>>13,et=0|N[9],Tt=8191&et,Rt=et>>>13;t.negative=i.negative^n.negative,t.length=19;var Gt=(R+(o=Math.imul(Z,Ct))|0)+((8191&(a=(a=Math.imul(Z,Pe))+Math.imul(ie,Ct)|0))<<13)|0;R=((T=Math.imul(ie,Pe))+(a>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,o=Math.imul(Y,Ct),a=(a=Math.imul(Y,Pe))+Math.imul(z,Ct)|0,T=Math.imul(z,Pe);var an=(R+(o=o+Math.imul(Z,Nt)|0)|0)+((8191&(a=(a=a+Math.imul(Z,Re)|0)+Math.imul(ie,Nt)|0))<<13)|0;R=((T=T+Math.imul(ie,Re)|0)+(a>>>13)|0)+(an>>>26)|0,an&=67108863,o=Math.imul(ae,Ct),a=(a=Math.imul(ae,Pe))+Math.imul(re,Ct)|0,T=Math.imul(re,Pe),o=o+Math.imul(Y,Nt)|0,a=(a=a+Math.imul(Y,Re)|0)+Math.imul(z,Nt)|0,T=T+Math.imul(z,Re)|0;var rn=(R+(o=o+Math.imul(Z,yt)|0)|0)+((8191&(a=(a=a+Math.imul(Z,Be)|0)+Math.imul(ie,yt)|0))<<13)|0;R=((T=T+Math.imul(ie,Be)|0)+(a>>>13)|0)+(rn>>>26)|0,rn&=67108863,o=Math.imul(ke,Ct),a=(a=Math.imul(ke,Pe))+Math.imul(ge,Ct)|0,T=Math.imul(ge,Pe),o=o+Math.imul(ae,Nt)|0,a=(a=a+Math.imul(ae,Re)|0)+Math.imul(re,Nt)|0,T=T+Math.imul(re,Re)|0,o=o+Math.imul(Y,yt)|0,a=(a=a+Math.imul(Y,Be)|0)+Math.imul(z,yt)|0,T=T+Math.imul(z,Be)|0;var un=(R+(o=o+Math.imul(Z,St)|0)|0)+((8191&(a=(a=a+Math.imul(Z,Ne)|0)+Math.imul(ie,St)|0))<<13)|0;R=((T=T+Math.imul(ie,Ne)|0)+(a>>>13)|0)+(un>>>26)|0,un&=67108863,o=Math.imul(je,Ct),a=(a=Math.imul(je,Pe))+Math.imul(xe,Ct)|0,T=Math.imul(xe,Pe),o=o+Math.imul(ke,Nt)|0,a=(a=a+Math.imul(ke,Re)|0)+Math.imul(ge,Nt)|0,T=T+Math.imul(ge,Re)|0,o=o+Math.imul(ae,yt)|0,a=(a=a+Math.imul(ae,Be)|0)+Math.imul(re,yt)|0,T=T+Math.imul(re,Be)|0,o=o+Math.imul(Y,St)|0,a=(a=a+Math.imul(Y,Ne)|0)+Math.imul(z,St)|0,T=T+Math.imul(z,Ne)|0;var cn=(R+(o=o+Math.imul(Z,It)|0)|0)+((8191&(a=(a=a+Math.imul(Z,Le)|0)+Math.imul(ie,It)|0))<<13)|0;R=((T=T+Math.imul(ie,Le)|0)+(a>>>13)|0)+(cn>>>26)|0,cn&=67108863,o=Math.imul(X,Ct),a=(a=Math.imul(X,Pe))+Math.imul(ee,Ct)|0,T=Math.imul(ee,Pe),o=o+Math.imul(je,Nt)|0,a=(a=a+Math.imul(je,Re)|0)+Math.imul(xe,Nt)|0,T=T+Math.imul(xe,Re)|0,o=o+Math.imul(ke,yt)|0,a=(a=a+Math.imul(ke,Be)|0)+Math.imul(ge,yt)|0,T=T+Math.imul(ge,Be)|0,o=o+Math.imul(ae,St)|0,a=(a=a+Math.imul(ae,Ne)|0)+Math.imul(re,St)|0,T=T+Math.imul(re,Ne)|0,o=o+Math.imul(Y,It)|0,a=(a=a+Math.imul(Y,Le)|0)+Math.imul(z,It)|0,T=T+Math.imul(z,Le)|0;var ln=(R+(o=o+Math.imul(Z,Dt)|0)|0)+((8191&(a=(a=a+Math.imul(Z,De)|0)+Math.imul(ie,Dt)|0))<<13)|0;R=((T=T+Math.imul(ie,De)|0)+(a>>>13)|0)+(ln>>>26)|0,ln&=67108863,o=Math.imul(V,Ct),a=(a=Math.imul(V,Pe))+Math.imul(q,Ct)|0,T=Math.imul(q,Pe),o=o+Math.imul(X,Nt)|0,a=(a=a+Math.imul(X,Re)|0)+Math.imul(ee,Nt)|0,T=T+Math.imul(ee,Re)|0,o=o+Math.imul(je,yt)|0,a=(a=a+Math.imul(je,Be)|0)+Math.imul(xe,yt)|0,T=T+Math.imul(xe,Be)|0,o=o+Math.imul(ke,St)|0,a=(a=a+Math.imul(ke,Ne)|0)+Math.imul(ge,St)|0,T=T+Math.imul(ge,Ne)|0,o=o+Math.imul(ae,It)|0,a=(a=a+Math.imul(ae,Le)|0)+Math.imul(re,It)|0,T=T+Math.imul(re,Le)|0,o=o+Math.imul(Y,Dt)|0,a=(a=a+Math.imul(Y,De)|0)+Math.imul(z,Dt)|0,T=T+Math.imul(z,De)|0;var hn=(R+(o=o+Math.imul(Z,zt)|0)|0)+((8191&(a=(a=a+Math.imul(Z,qe)|0)+Math.imul(ie,zt)|0))<<13)|0;R=((T=T+Math.imul(ie,qe)|0)+(a>>>13)|0)+(hn>>>26)|0,hn&=67108863,o=Math.imul(fe,Ct),a=(a=Math.imul(fe,Pe))+Math.imul(he,Ct)|0,T=Math.imul(he,Pe),o=o+Math.imul(V,Nt)|0,a=(a=a+Math.imul(V,Re)|0)+Math.imul(q,Nt)|0,T=T+Math.imul(q,Re)|0,o=o+Math.imul(X,yt)|0,a=(a=a+Math.imul(X,Be)|0)+Math.imul(ee,yt)|0,T=T+Math.imul(ee,Be)|0,o=o+Math.imul(je,St)|0,a=(a=a+Math.imul(je,Ne)|0)+Math.imul(xe,St)|0,T=T+Math.imul(xe,Ne)|0,o=o+Math.imul(ke,It)|0,a=(a=a+Math.imul(ke,Le)|0)+Math.imul(ge,It)|0,T=T+Math.imul(ge,Le)|0,o=o+Math.imul(ae,Dt)|0,a=(a=a+Math.imul(ae,De)|0)+Math.imul(re,Dt)|0,T=T+Math.imul(re,De)|0,o=o+Math.imul(Y,zt)|0,a=(a=a+Math.imul(Y,qe)|0)+Math.imul(z,zt)|0,T=T+Math.imul(z,qe)|0;var fn=(R+(o=o+Math.imul(Z,$t)|0)|0)+((8191&(a=(a=a+Math.imul(Z,Fe)|0)+Math.imul(ie,$t)|0))<<13)|0;R=((T=T+Math.imul(ie,Fe)|0)+(a>>>13)|0)+(fn>>>26)|0,fn&=67108863,o=Math.imul(it,Ct),a=(a=Math.imul(it,Pe))+Math.imul(_e,Ct)|0,T=Math.imul(_e,Pe),o=o+Math.imul(fe,Nt)|0,a=(a=a+Math.imul(fe,Re)|0)+Math.imul(he,Nt)|0,T=T+Math.imul(he,Re)|0,o=o+Math.imul(V,yt)|0,a=(a=a+Math.imul(V,Be)|0)+Math.imul(q,yt)|0,T=T+Math.imul(q,Be)|0,o=o+Math.imul(X,St)|0,a=(a=a+Math.imul(X,Ne)|0)+Math.imul(ee,St)|0,T=T+Math.imul(ee,Ne)|0,o=o+Math.imul(je,It)|0,a=(a=a+Math.imul(je,Le)|0)+Math.imul(xe,It)|0,T=T+Math.imul(xe,Le)|0,o=o+Math.imul(ke,Dt)|0,a=(a=a+Math.imul(ke,De)|0)+Math.imul(ge,Dt)|0,T=T+Math.imul(ge,De)|0,o=o+Math.imul(ae,zt)|0,a=(a=a+Math.imul(ae,qe)|0)+Math.imul(re,zt)|0,T=T+Math.imul(re,qe)|0,o=o+Math.imul(Y,$t)|0,a=(a=a+Math.imul(Y,Fe)|0)+Math.imul(z,$t)|0,T=T+Math.imul(z,Fe)|0;var pn=(R+(o=o+Math.imul(Z,Vt)|0)|0)+((8191&(a=(a=a+Math.imul(Z,Ue)|0)+Math.imul(ie,Vt)|0))<<13)|0;R=((T=T+Math.imul(ie,Ue)|0)+(a>>>13)|0)+(pn>>>26)|0,pn&=67108863,o=Math.imul(ft,Ct),a=(a=Math.imul(ft,Pe))+Math.imul(Se,Ct)|0,T=Math.imul(Se,Pe),o=o+Math.imul(it,Nt)|0,a=(a=a+Math.imul(it,Re)|0)+Math.imul(_e,Nt)|0,T=T+Math.imul(_e,Re)|0,o=o+Math.imul(fe,yt)|0,a=(a=a+Math.imul(fe,Be)|0)+Math.imul(he,yt)|0,T=T+Math.imul(he,Be)|0,o=o+Math.imul(V,St)|0,a=(a=a+Math.imul(V,Ne)|0)+Math.imul(q,St)|0,T=T+Math.imul(q,Ne)|0,o=o+Math.imul(X,It)|0,a=(a=a+Math.imul(X,Le)|0)+Math.imul(ee,It)|0,T=T+Math.imul(ee,Le)|0,o=o+Math.imul(je,Dt)|0,a=(a=a+Math.imul(je,De)|0)+Math.imul(xe,Dt)|0,T=T+Math.imul(xe,De)|0,o=o+Math.imul(ke,zt)|0,a=(a=a+Math.imul(ke,qe)|0)+Math.imul(ge,zt)|0,T=T+Math.imul(ge,qe)|0,o=o+Math.imul(ae,$t)|0,a=(a=a+Math.imul(ae,Fe)|0)+Math.imul(re,$t)|0,T=T+Math.imul(re,Fe)|0,o=o+Math.imul(Y,Vt)|0,a=(a=a+Math.imul(Y,Ue)|0)+Math.imul(z,Vt)|0,T=T+Math.imul(z,Ue)|0;var Xt=(R+(o=o+Math.imul(Z,Tt)|0)|0)+((8191&(a=(a=a+Math.imul(Z,Rt)|0)+Math.imul(ie,Tt)|0))<<13)|0;R=((T=T+Math.imul(ie,Rt)|0)+(a>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,o=Math.imul(ft,Nt),a=(a=Math.imul(ft,Re))+Math.imul(Se,Nt)|0,T=Math.imul(Se,Re),o=o+Math.imul(it,yt)|0,a=(a=a+Math.imul(it,Be)|0)+Math.imul(_e,yt)|0,T=T+Math.imul(_e,Be)|0,o=o+Math.imul(fe,St)|0,a=(a=a+Math.imul(fe,Ne)|0)+Math.imul(he,St)|0,T=T+Math.imul(he,Ne)|0,o=o+Math.imul(V,It)|0,a=(a=a+Math.imul(V,Le)|0)+Math.imul(q,It)|0,T=T+Math.imul(q,Le)|0,o=o+Math.imul(X,Dt)|0,a=(a=a+Math.imul(X,De)|0)+Math.imul(ee,Dt)|0,T=T+Math.imul(ee,De)|0,o=o+Math.imul(je,zt)|0,a=(a=a+Math.imul(je,qe)|0)+Math.imul(xe,zt)|0,T=T+Math.imul(xe,qe)|0,o=o+Math.imul(ke,$t)|0,a=(a=a+Math.imul(ke,Fe)|0)+Math.imul(ge,$t)|0,T=T+Math.imul(ge,Fe)|0,o=o+Math.imul(ae,Vt)|0,a=(a=a+Math.imul(ae,Ue)|0)+Math.imul(re,Vt)|0,T=T+Math.imul(re,Ue)|0;var dn=(R+(o=o+Math.imul(Y,Tt)|0)|0)+((8191&(a=(a=a+Math.imul(Y,Rt)|0)+Math.imul(z,Tt)|0))<<13)|0;R=((T=T+Math.imul(z,Rt)|0)+(a>>>13)|0)+(dn>>>26)|0,dn&=67108863,o=Math.imul(ft,yt),a=(a=Math.imul(ft,Be))+Math.imul(Se,yt)|0,T=Math.imul(Se,Be),o=o+Math.imul(it,St)|0,a=(a=a+Math.imul(it,Ne)|0)+Math.imul(_e,St)|0,T=T+Math.imul(_e,Ne)|0,o=o+Math.imul(fe,It)|0,a=(a=a+Math.imul(fe,Le)|0)+Math.imul(he,It)|0,T=T+Math.imul(he,Le)|0,o=o+Math.imul(V,Dt)|0,a=(a=a+Math.imul(V,De)|0)+Math.imul(q,Dt)|0,T=T+Math.imul(q,De)|0,o=o+Math.imul(X,zt)|0,a=(a=a+Math.imul(X,qe)|0)+Math.imul(ee,zt)|0,T=T+Math.imul(ee,qe)|0,o=o+Math.imul(je,$t)|0,a=(a=a+Math.imul(je,Fe)|0)+Math.imul(xe,$t)|0,T=T+Math.imul(xe,Fe)|0,o=o+Math.imul(ke,Vt)|0,a=(a=a+Math.imul(ke,Ue)|0)+Math.imul(ge,Vt)|0,T=T+Math.imul(ge,Ue)|0;var vn=(R+(o=o+Math.imul(ae,Tt)|0)|0)+((8191&(a=(a=a+Math.imul(ae,Rt)|0)+Math.imul(re,Tt)|0))<<13)|0;R=((T=T+Math.imul(re,Rt)|0)+(a>>>13)|0)+(vn>>>26)|0,vn&=67108863,o=Math.imul(ft,St),a=(a=Math.imul(ft,Ne))+Math.imul(Se,St)|0,T=Math.imul(Se,Ne),o=o+Math.imul(it,It)|0,a=(a=a+Math.imul(it,Le)|0)+Math.imul(_e,It)|0,T=T+Math.imul(_e,Le)|0,o=o+Math.imul(fe,Dt)|0,a=(a=a+Math.imul(fe,De)|0)+Math.imul(he,Dt)|0,T=T+Math.imul(he,De)|0,o=o+Math.imul(V,zt)|0,a=(a=a+Math.imul(V,qe)|0)+Math.imul(q,zt)|0,T=T+Math.imul(q,qe)|0,o=o+Math.imul(X,$t)|0,a=(a=a+Math.imul(X,Fe)|0)+Math.imul(ee,$t)|0,T=T+Math.imul(ee,Fe)|0,o=o+Math.imul(je,Vt)|0,a=(a=a+Math.imul(je,Ue)|0)+Math.imul(xe,Vt)|0,T=T+Math.imul(xe,Ue)|0;var tn=(R+(o=o+Math.imul(ke,Tt)|0)|0)+((8191&(a=(a=a+Math.imul(ke,Rt)|0)+Math.imul(ge,Tt)|0))<<13)|0;R=((T=T+Math.imul(ge,Rt)|0)+(a>>>13)|0)+(tn>>>26)|0,tn&=67108863,o=Math.imul(ft,It),a=(a=Math.imul(ft,Le))+Math.imul(Se,It)|0,T=Math.imul(Se,Le),o=o+Math.imul(it,Dt)|0,a=(a=a+Math.imul(it,De)|0)+Math.imul(_e,Dt)|0,T=T+Math.imul(_e,De)|0,o=o+Math.imul(fe,zt)|0,a=(a=a+Math.imul(fe,qe)|0)+Math.imul(he,zt)|0,T=T+Math.imul(he,qe)|0,o=o+Math.imul(V,$t)|0,a=(a=a+Math.imul(V,Fe)|0)+Math.imul(q,$t)|0,T=T+Math.imul(q,Fe)|0,o=o+Math.imul(X,Vt)|0,a=(a=a+Math.imul(X,Ue)|0)+Math.imul(ee,Vt)|0,T=T+Math.imul(ee,Ue)|0;var nn=(R+(o=o+Math.imul(je,Tt)|0)|0)+((8191&(a=(a=a+Math.imul(je,Rt)|0)+Math.imul(xe,Tt)|0))<<13)|0;R=((T=T+Math.imul(xe,Rt)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,o=Math.imul(ft,Dt),a=(a=Math.imul(ft,De))+Math.imul(Se,Dt)|0,T=Math.imul(Se,De),o=o+Math.imul(it,zt)|0,a=(a=a+Math.imul(it,qe)|0)+Math.imul(_e,zt)|0,T=T+Math.imul(_e,qe)|0,o=o+Math.imul(fe,$t)|0,a=(a=a+Math.imul(fe,Fe)|0)+Math.imul(he,$t)|0,T=T+Math.imul(he,Fe)|0,o=o+Math.imul(V,Vt)|0,a=(a=a+Math.imul(V,Ue)|0)+Math.imul(q,Vt)|0,T=T+Math.imul(q,Ue)|0;var Jt=(R+(o=o+Math.imul(X,Tt)|0)|0)+((8191&(a=(a=a+Math.imul(X,Rt)|0)+Math.imul(ee,Tt)|0))<<13)|0;R=((T=T+Math.imul(ee,Rt)|0)+(a>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,o=Math.imul(ft,zt),a=(a=Math.imul(ft,qe))+Math.imul(Se,zt)|0,T=Math.imul(Se,qe),o=o+Math.imul(it,$t)|0,a=(a=a+Math.imul(it,Fe)|0)+Math.imul(_e,$t)|0,T=T+Math.imul(_e,Fe)|0,o=o+Math.imul(fe,Vt)|0,a=(a=a+Math.imul(fe,Ue)|0)+Math.imul(he,Vt)|0,T=T+Math.imul(he,Ue)|0;var mn=(R+(o=o+Math.imul(V,Tt)|0)|0)+((8191&(a=(a=a+Math.imul(V,Rt)|0)+Math.imul(q,Tt)|0))<<13)|0;R=((T=T+Math.imul(q,Rt)|0)+(a>>>13)|0)+(mn>>>26)|0,mn&=67108863,o=Math.imul(ft,$t),a=(a=Math.imul(ft,Fe))+Math.imul(Se,$t)|0,T=Math.imul(Se,Fe),o=o+Math.imul(it,Vt)|0,a=(a=a+Math.imul(it,Ue)|0)+Math.imul(_e,Vt)|0,T=T+Math.imul(_e,Ue)|0;var on=(R+(o=o+Math.imul(fe,Tt)|0)|0)+((8191&(a=(a=a+Math.imul(fe,Rt)|0)+Math.imul(he,Tt)|0))<<13)|0;R=((T=T+Math.imul(he,Rt)|0)+(a>>>13)|0)+(on>>>26)|0,on&=67108863,o=Math.imul(ft,Vt),a=(a=Math.imul(ft,Ue))+Math.imul(Se,Vt)|0,T=Math.imul(Se,Ue);var ci=(R+(o=o+Math.imul(it,Tt)|0)|0)+((8191&(a=(a=a+Math.imul(it,Rt)|0)+Math.imul(_e,Tt)|0))<<13)|0;R=((T=T+Math.imul(_e,Rt)|0)+(a>>>13)|0)+(ci>>>26)|0,ci&=67108863;var ti=(R+(o=Math.imul(ft,Tt))|0)+((8191&(a=(a=Math.imul(ft,Rt))+Math.imul(Se,Tt)|0))<<13)|0;return R=((T=Math.imul(Se,Rt))+(a>>>13)|0)+(ti>>>26)|0,ti&=67108863,O[0]=Gt,O[1]=an,O[2]=rn,O[3]=un,O[4]=cn,O[5]=ln,O[6]=hn,O[7]=fn,O[8]=pn,O[9]=Xt,O[10]=dn,O[11]=vn,O[12]=tn,O[13]=nn,O[14]=Jt,O[15]=mn,O[16]=on,O[17]=ci,O[18]=ti,R!==0&&(O[19]=R,t.length++),t};function x(i,n,t){t.negative=n.negative^i.negative,t.length=i.length+n.length;for(var o=0,a=0,T=0;T<t.length-1;T++){var C=a;a=0;for(var N=67108863&o,O=Math.min(T,n.length-1),R=Math.max(0,T-i.length+1);R<=O;R++){var F=T-R,Z=(0|i.words[F])*(0|n.words[R]),ie=67108863&Z;N=67108863&(ie=ie+N|0),a+=(C=(C=C+(Z/67108864|0)|0)+(ie>>>26)|0)>>>26,C&=67108863}t.words[T]=N,o=C,C=a}return o!==0?t.words[T]=o:t.length--,t._strip()}function j(i,n,t){return x(i,n,t)}Math.imul||(A=k),s.prototype.mulTo=function(i,n){var t=this.length+i.length;return this.length===10&&i.length===10?A(this,i,n):t<63?k(this,i,n):t<1024?x(this,i,n):j(this,i,n)},s.prototype.mul=function(i){var n=new s(null);return n.words=new Array(this.length+i.length),this.mulTo(i,n)},s.prototype.mulf=function(i){var n=new s(null);return n.words=new Array(this.length+i.length),j(this,i,n)},s.prototype.imul=function(i){return this.clone().mulTo(i,this)},s.prototype.imuln=function(i){var n=i<0;n&&(i=-i),m(typeof i=="number"),m(i<67108864);for(var t=0,o=0;o<this.length;o++){var a=(0|this.words[o])*i,T=(67108863&a)+(67108863&t);t>>=26,t+=a/67108864|0,t+=T>>>26,this.words[o]=67108863&T}return t!==0&&(this.words[o]=t,this.length++),n?this.ineg():this},s.prototype.muln=function(i){return this.clone().imuln(i)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(i){var n=function(T){for(var C=new Array(T.bitLength()),N=0;N<C.length;N++){var O=N/26|0,R=N%26;C[N]=T.words[O]>>>R&1}return C}(i);if(n.length===0)return new s(1);for(var t=this,o=0;o<n.length&&n[o]===0;o++,t=t.sqr());if(++o<n.length)for(var a=t.sqr();o<n.length;o++,a=a.sqr())n[o]!==0&&(t=t.mul(a));return t},s.prototype.iushln=function(i){m(typeof i=="number"&&i>=0);var n,t=i%26,o=(i-t)/26,a=67108863>>>26-t<<26-t;if(t!==0){var T=0;for(n=0;n<this.length;n++){var C=this.words[n]&a,N=(0|this.words[n])-C<<t;this.words[n]=N|T,T=C>>>26-t}T&&(this.words[n]=T,this.length++)}if(o!==0){for(n=this.length-1;n>=0;n--)this.words[n+o]=this.words[n];for(n=0;n<o;n++)this.words[n]=0;this.length+=o}return this._strip()},s.prototype.ishln=function(i){return m(this.negative===0),this.iushln(i)},s.prototype.iushrn=function(i,n,t){var o;m(typeof i=="number"&&i>=0),o=n?(n-n%26)/26:0;var a=i%26,T=Math.min((i-a)/26,this.length),C=67108863^67108863>>>a<<a,N=t;if(o-=T,o=Math.max(0,o),N){for(var O=0;O<T;O++)N.words[O]=this.words[O];N.length=T}if(T!==0)if(this.length>T)for(this.length-=T,O=0;O<this.length;O++)this.words[O]=this.words[O+T];else this.words[0]=0,this.length=1;var R=0;for(O=this.length-1;O>=0&&(R!==0||O>=o);O--){var F=0|this.words[O];this.words[O]=R<<26-a|F>>>a,R=F&C}return N&&R!==0&&(N.words[N.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(i,n,t){return m(this.negative===0),this.iushrn(i,n,t)},s.prototype.shln=function(i){return this.clone().ishln(i)},s.prototype.ushln=function(i){return this.clone().iushln(i)},s.prototype.shrn=function(i){return this.clone().ishrn(i)},s.prototype.ushrn=function(i){return this.clone().iushrn(i)},s.prototype.testn=function(i){m(typeof i=="number"&&i>=0);var n=i%26,t=(i-n)/26,o=1<<n;return!(this.length<=t||!(this.words[t]&o))},s.prototype.imaskn=function(i){m(typeof i=="number"&&i>=0);var n=i%26,t=(i-n)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=t)return this;if(n!==0&&t++,this.length=Math.min(t,this.length),n!==0){var o=67108863^67108863>>>n<<n;this.words[this.length-1]&=o}return this._strip()},s.prototype.maskn=function(i){return this.clone().imaskn(i)},s.prototype.iaddn=function(i){return m(typeof i=="number"),m(i<67108864),i<0?this.isubn(-i):this.negative!==0?this.length===1&&(0|this.words[0])<=i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},s.prototype._iaddn=function(i){this.words[0]+=i;for(var n=0;n<this.length&&this.words[n]>=67108864;n++)this.words[n]-=67108864,n===this.length-1?this.words[n+1]=1:this.words[n+1]++;return this.length=Math.max(this.length,n+1),this},s.prototype.isubn=function(i){if(m(typeof i=="number"),m(i<67108864),i<0)return this.iaddn(-i);if(this.negative!==0)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var n=0;n<this.length&&this.words[n]<0;n++)this.words[n]+=67108864,this.words[n+1]-=1;return this._strip()},s.prototype.addn=function(i){return this.clone().iaddn(i)},s.prototype.subn=function(i){return this.clone().isubn(i)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(i,n,t){var o,a,T=i.length+t;this._expand(T);var C=0;for(o=0;o<i.length;o++){a=(0|this.words[o+t])+C;var N=(0|i.words[o])*n;C=((a-=67108863&N)>>26)-(N/67108864|0),this.words[o+t]=67108863&a}for(;o<this.length-t;o++)C=(a=(0|this.words[o+t])+C)>>26,this.words[o+t]=67108863&a;if(C===0)return this._strip();for(m(C===-1),C=0,o=0;o<this.length;o++)C=(a=-(0|this.words[o])+C)>>26,this.words[o]=67108863&a;return this.negative=1,this._strip()},s.prototype._wordDiv=function(i,n){var t=(this.length,i.length),o=this.clone(),a=i,T=0|a.words[a.length-1];(t=26-this._countBits(T))!=0&&(a=a.ushln(t),o.iushln(t),T=0|a.words[a.length-1]);var C,N=o.length-a.length;if(n!=="mod"){(C=new s(null)).length=N+1,C.words=new Array(C.length);for(var O=0;O<C.length;O++)C.words[O]=0}var R=o.clone()._ishlnsubmul(a,1,N);R.negative===0&&(o=R,C&&(C.words[N]=1));for(var F=N-1;F>=0;F--){var Z=67108864*(0|o.words[a.length+F])+(0|o.words[a.length+F-1]);for(Z=Math.min(Z/T|0,67108863),o._ishlnsubmul(a,Z,F);o.negative!==0;)Z--,o.negative=0,o._ishlnsubmul(a,1,F),o.isZero()||(o.negative^=1);C&&(C.words[F]=Z)}return C&&C._strip(),o._strip(),n!=="div"&&t!==0&&o.iushrn(t),{div:C||null,mod:o}},s.prototype.divmod=function(i,n,t){return m(!i.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:this.negative!==0&&i.negative===0?(T=this.neg().divmod(i,n),n!=="mod"&&(o=T.div.neg()),n!=="div"&&(a=T.mod.neg(),t&&a.negative!==0&&a.iadd(i)),{div:o,mod:a}):this.negative===0&&i.negative!==0?(T=this.divmod(i.neg(),n),n!=="mod"&&(o=T.div.neg()),{div:o,mod:T.mod}):this.negative&i.negative?(T=this.neg().divmod(i.neg(),n),n!=="div"&&(a=T.mod.neg(),t&&a.negative!==0&&a.isub(i)),{div:T.div,mod:a}):i.length>this.length||this.cmp(i)<0?{div:new s(0),mod:this}:i.length===1?n==="div"?{div:this.divn(i.words[0]),mod:null}:n==="mod"?{div:null,mod:new s(this.modrn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new s(this.modrn(i.words[0]))}:this._wordDiv(i,n);var o,a,T},s.prototype.div=function(i){return this.divmod(i,"div",!1).div},s.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},s.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},s.prototype.divRound=function(i){var n=this.divmod(i);if(n.mod.isZero())return n.div;var t=n.div.negative!==0?n.mod.isub(i):n.mod,o=i.ushrn(1),a=i.andln(1),T=t.cmp(o);return T<0||a===1&&T===0?n.div:n.div.negative!==0?n.div.isubn(1):n.div.iaddn(1)},s.prototype.modrn=function(i){var n=i<0;n&&(i=-i),m(i<=67108863);for(var t=67108864%i,o=0,a=this.length-1;a>=0;a--)o=(t*o+(0|this.words[a]))%i;return n?-o:o},s.prototype.modn=function(i){return this.modrn(i)},s.prototype.idivn=function(i){var n=i<0;n&&(i=-i),m(i<=67108863);for(var t=0,o=this.length-1;o>=0;o--){var a=(0|this.words[o])+67108864*t;this.words[o]=a/i|0,t=a%i}return this._strip(),n?this.ineg():this},s.prototype.divn=function(i){return this.clone().idivn(i)},s.prototype.egcd=function(i){m(i.negative===0),m(!i.isZero());var n=this,t=i.clone();n=n.negative!==0?n.umod(i):n.clone();for(var o=new s(1),a=new s(0),T=new s(0),C=new s(1),N=0;n.isEven()&&t.isEven();)n.iushrn(1),t.iushrn(1),++N;for(var O=t.clone(),R=n.clone();!n.isZero();){for(var F=0,Z=1;!(n.words[0]&Z)&&F<26;++F,Z<<=1);if(F>0)for(n.iushrn(F);F-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(O),a.isub(R)),o.iushrn(1),a.iushrn(1);for(var ie=0,D=1;!(t.words[0]&D)&&ie<26;++ie,D<<=1);if(ie>0)for(t.iushrn(ie);ie-- >0;)(T.isOdd()||C.isOdd())&&(T.iadd(O),C.isub(R)),T.iushrn(1),C.iushrn(1);n.cmp(t)>=0?(n.isub(t),o.isub(T),a.isub(C)):(t.isub(n),T.isub(o),C.isub(a))}return{a:T,b:C,gcd:t.iushln(N)}},s.prototype._invmp=function(i){m(i.negative===0),m(!i.isZero());var n=this,t=i.clone();n=n.negative!==0?n.umod(i):n.clone();for(var o,a=new s(1),T=new s(0),C=t.clone();n.cmpn(1)>0&&t.cmpn(1)>0;){for(var N=0,O=1;!(n.words[0]&O)&&N<26;++N,O<<=1);if(N>0)for(n.iushrn(N);N-- >0;)a.isOdd()&&a.iadd(C),a.iushrn(1);for(var R=0,F=1;!(t.words[0]&F)&&R<26;++R,F<<=1);if(R>0)for(t.iushrn(R);R-- >0;)T.isOdd()&&T.iadd(C),T.iushrn(1);n.cmp(t)>=0?(n.isub(t),a.isub(T)):(t.isub(n),T.isub(a))}return(o=n.cmpn(1)===0?a:T).cmpn(0)<0&&o.iadd(i),o},s.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var n=this.clone(),t=i.clone();n.negative=0,t.negative=0;for(var o=0;n.isEven()&&t.isEven();o++)n.iushrn(1),t.iushrn(1);for(;;){for(;n.isEven();)n.iushrn(1);for(;t.isEven();)t.iushrn(1);var a=n.cmp(t);if(a<0){var T=n;n=t,t=T}else if(a===0||t.cmpn(1)===0)break;n.isub(t)}return t.iushln(o)},s.prototype.invm=function(i){return this.egcd(i).a.umod(i)},s.prototype.isEven=function(){return(1&this.words[0])==0},s.prototype.isOdd=function(){return(1&this.words[0])==1},s.prototype.andln=function(i){return this.words[0]&i},s.prototype.bincn=function(i){m(typeof i=="number");var n=i%26,t=(i-n)/26,o=1<<n;if(this.length<=t)return this._expand(t+1),this.words[t]|=o,this;for(var a=o,T=t;a!==0&&T<this.length;T++){var C=0|this.words[T];a=(C+=a)>>>26,C&=67108863,this.words[T]=C}return a!==0&&(this.words[T]=a,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(i){var n,t=i<0;if(this.negative!==0&&!t)return-1;if(this.negative===0&&t)return 1;if(this._strip(),this.length>1)n=1;else{t&&(i=-i),m(i<=67108863,"Number is too big");var o=0|this.words[0];n=o===i?0:o<i?-1:1}return this.negative!==0?0|-n:n},s.prototype.cmp=function(i){if(this.negative!==0&&i.negative===0)return-1;if(this.negative===0&&i.negative!==0)return 1;var n=this.ucmp(i);return this.negative!==0?0|-n:n},s.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var n=0,t=this.length-1;t>=0;t--){var o=0|this.words[t],a=0|i.words[t];if(o!==a){o<a?n=-1:o>a&&(n=1);break}}return n},s.prototype.gtn=function(i){return this.cmpn(i)===1},s.prototype.gt=function(i){return this.cmp(i)===1},s.prototype.gten=function(i){return this.cmpn(i)>=0},s.prototype.gte=function(i){return this.cmp(i)>=0},s.prototype.ltn=function(i){return this.cmpn(i)===-1},s.prototype.lt=function(i){return this.cmp(i)===-1},s.prototype.lten=function(i){return this.cmpn(i)<=0},s.prototype.lte=function(i){return this.cmp(i)<=0},s.prototype.eqn=function(i){return this.cmpn(i)===0},s.prototype.eq=function(i){return this.cmp(i)===0},s.red=function(i){return new e(i)},s.prototype.toRed=function(i){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(i){return this.red=i,this},s.prototype.forceRed=function(i){return m(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return m(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var P={k256:null,p224:null,p192:null,p25519:null};function B(i,n){this.name=i,this.p=new s(n,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function $(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function te(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function J(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function oe(){B.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function e(i){if(typeof i=="string"){var n=s._prime(i);this.m=n.p,this.prime=n}else m(i.gtn(1),"modulus must be greater than 1"),this.m=i,this.prime=null}function r(i){e.call(this,i),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}B.prototype._tmp=function(){var i=new s(null);return i.words=new Array(Math.ceil(this.n/13)),i},B.prototype.ireduce=function(i){var n,t=i;do this.split(t,this.tmp),n=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength();while(n>this.n);var o=n<this.n?-1:t.ucmp(this.p);return o===0?(t.words[0]=0,t.length=1):o>0?t.isub(this.p):t.strip!==void 0?t.strip():t._strip(),t},B.prototype.split=function(i,n){i.iushrn(this.n,0,n)},B.prototype.imulK=function(i){return i.imul(this.k)},E($,B),$.prototype.split=function(i,n){for(var t=4194303,o=Math.min(i.length,9),a=0;a<o;a++)n.words[a]=i.words[a];if(n.length=o,i.length<=9)return i.words[0]=0,void(i.length=1);var T=i.words[9];for(n.words[n.length++]=T&t,a=10;a<i.length;a++){var C=0|i.words[a];i.words[a-10]=(C&t)<<4|T>>>22,T=C}T>>>=22,i.words[a-10]=T,T===0&&i.length>10?i.length-=10:i.length-=9},$.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var n=0,t=0;t<i.length;t++){var o=0|i.words[t];n+=977*o,i.words[t]=67108863&n,n=64*o+(n/67108864|0)}return i.words[i.length-1]===0&&(i.length--,i.words[i.length-1]===0&&i.length--),i},E(te,B),E(J,B),E(oe,B),oe.prototype.imulK=function(i){for(var n=0,t=0;t<i.length;t++){var o=19*(0|i.words[t])+n,a=67108863&o;o>>>=26,i.words[t]=a,n=o}return n!==0&&(i.words[i.length++]=n),i},s._prime=function(i){if(P[i])return P[i];var n;if(i==="k256")n=new $;else if(i==="p224")n=new te;else if(i==="p192")n=new J;else{if(i!=="p25519")throw new Error("Unknown prime "+i);n=new oe}return P[i]=n,n},e.prototype._verify1=function(i){m(i.negative===0,"red works only with positives"),m(i.red,"red works only with red numbers")},e.prototype._verify2=function(i,n){m((i.negative|n.negative)==0,"red works only with positives"),m(i.red&&i.red===n.red,"red works only with red numbers")},e.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):(g(i,i.umod(this.m)._forceRed(this)),i)},e.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},e.prototype.add=function(i,n){this._verify2(i,n);var t=i.add(n);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},e.prototype.iadd=function(i,n){this._verify2(i,n);var t=i.iadd(n);return t.cmp(this.m)>=0&&t.isub(this.m),t},e.prototype.sub=function(i,n){this._verify2(i,n);var t=i.sub(n);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},e.prototype.isub=function(i,n){this._verify2(i,n);var t=i.isub(n);return t.cmpn(0)<0&&t.iadd(this.m),t},e.prototype.shl=function(i,n){return this._verify1(i),this.imod(i.ushln(n))},e.prototype.imul=function(i,n){return this._verify2(i,n),this.imod(i.imul(n))},e.prototype.mul=function(i,n){return this._verify2(i,n),this.imod(i.mul(n))},e.prototype.isqr=function(i){return this.imul(i,i.clone())},e.prototype.sqr=function(i){return this.mul(i,i)},e.prototype.sqrt=function(i){if(i.isZero())return i.clone();var n=this.m.andln(3);if(m(n%2==1),n===3){var t=this.m.add(new s(1)).iushrn(2);return this.pow(i,t)}for(var o=this.m.subn(1),a=0;!o.isZero()&&o.andln(1)===0;)a++,o.iushrn(1);m(!o.isZero());var T=new s(1).toRed(this),C=T.redNeg(),N=this.m.subn(1).iushrn(1),O=this.m.bitLength();for(O=new s(2*O*O).toRed(this);this.pow(O,N).cmp(C)!==0;)O.redIAdd(C);for(var R=this.pow(O,o),F=this.pow(i,o.addn(1).iushrn(1)),Z=this.pow(i,o),ie=a;Z.cmp(T)!==0;){for(var D=Z,Y=0;D.cmp(T)!==0;Y++)D=D.redSqr();m(Y<ie);var z=this.pow(R,new s(1).iushln(ie-Y-1));F=F.redMul(z),R=z.redSqr(),Z=Z.redMul(R),ie=Y}return F},e.prototype.invm=function(i){var n=i._invmp(this.m);return n.negative!==0?(n.negative=0,this.imod(n).redNeg()):this.imod(n)},e.prototype.pow=function(i,n){if(n.isZero())return new s(1).toRed(this);if(n.cmpn(1)===0)return i.clone();var t=new Array(16);t[0]=new s(1).toRed(this),t[1]=i;for(var o=2;o<t.length;o++)t[o]=this.mul(t[o-1],i);var a=t[0],T=0,C=0,N=n.bitLength()%26;for(N===0&&(N=26),o=n.length-1;o>=0;o--){for(var O=n.words[o],R=N-1;R>=0;R--){var F=O>>R&1;a!==t[0]&&(a=this.sqr(a)),F!==0||T!==0?(T<<=1,T|=F,(++C==4||o===0&&R===0)&&(a=this.mul(a,t[T]),C=0,T=0)):C=0}N=26}return a},e.prototype.convertTo=function(i){var n=i.umod(this.m);return n===i?n.clone():n},e.prototype.convertFrom=function(i){var n=i.clone();return n.red=null,n},s.mont=function(i){return new r(i)},E(r,e),r.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},r.prototype.convertFrom=function(i){var n=this.imod(i.mul(this.rinv));return n.red=null,n},r.prototype.imul=function(i,n){if(i.isZero()||n.isZero())return i.words[0]=0,i.length=1,i;var t=i.imul(n),o=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=t.isub(o).iushrn(this.shift),T=a;return a.cmp(this.m)>=0?T=a.isub(this.m):a.cmpn(0)<0&&(T=a.iadd(this.m)),T._forceRed(this)},r.prototype.mul=function(i,n){if(i.isZero()||n.isZero())return new s(0)._forceRed(this);var t=i.mul(n),o=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=t.isub(o).iushrn(this.shift),T=a;return a.cmp(this.m)>=0?T=a.isub(this.m):a.cmpn(0)<0&&(T=a.iadd(this.m)),T._forceRed(this)},r.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}})(H=y.nmd(H),this)},9931:(H,_,y)=>{var M;function v(E){this.rand=E}if(H.exports=function(E){return M||(M=new v(null)),M.generate(E)},H.exports.Rand=v,v.prototype.generate=function(E){return this._rand(E)},v.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?v.prototype._rand=function(E){var s=new Uint8Array(E);return self.crypto.getRandomValues(s),s}:self.msCrypto&&self.msCrypto.getRandomValues?v.prototype._rand=function(E){var s=new Uint8Array(E);return self.msCrypto.getRandomValues(s),s}:typeof window=="object"&&(v.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var m=y(9214);if(typeof m.randomBytes!="function")throw new Error("Not supported");v.prototype._rand=function(E){return m.randomBytes(E)}}catch{}},3818:(H,_,y)=>{var M=y(4155);Object.defineProperty(_,"__esModule",{value:!0});var v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},m=typeof window<"u"&&window.document!==void 0,E=(typeof self>"u"?"undefined":v(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",s=M!==void 0&&M.versions!=null&&M.versions.node!=null;_.isBrowser=m,_.isWebWorker=E,_.isNode=s,_.isJsDom=function(){return typeof window<"u"&&window.name==="nodejs"||navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")}},4497:(H,_,y)=>{var M=y(9509).Buffer;function v(l){M.isBuffer(l)||(l=M.from(l));for(var f=l.length/4|0,g=new Array(f),h=0;h<f;h++)g[h]=l.readUInt32BE(4*h);return g}function m(l){for(;0<l.length;l++)l[0]=0}function E(l,f,g,h,u){for(var w,b,k,A,x=g[0],j=g[1],P=g[2],B=g[3],$=l[0]^f[0],te=l[1]^f[1],J=l[2]^f[2],oe=l[3]^f[3],e=4,r=1;r<u;r++)w=x[$>>>24]^j[te>>>16&255]^P[J>>>8&255]^B[255&oe]^f[e++],b=x[te>>>24]^j[J>>>16&255]^P[oe>>>8&255]^B[255&$]^f[e++],k=x[J>>>24]^j[oe>>>16&255]^P[$>>>8&255]^B[255&te]^f[e++],A=x[oe>>>24]^j[$>>>16&255]^P[te>>>8&255]^B[255&J]^f[e++],$=w,te=b,J=k,oe=A;return w=(h[$>>>24]<<24|h[te>>>16&255]<<16|h[J>>>8&255]<<8|h[255&oe])^f[e++],b=(h[te>>>24]<<24|h[J>>>16&255]<<16|h[oe>>>8&255]<<8|h[255&$])^f[e++],k=(h[J>>>24]<<24|h[oe>>>16&255]<<16|h[$>>>8&255]<<8|h[255&te])^f[e++],A=(h[oe>>>24]<<24|h[$>>>16&255]<<16|h[te>>>8&255]<<8|h[255&J])^f[e++],[w>>>=0,b>>>=0,k>>>=0,A>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],p=function(){for(var l=new Array(256),f=0;f<256;f++)l[f]=f<128?f<<1:f<<1^283;for(var g=[],h=[],u=[[],[],[],[]],w=[[],[],[],[]],b=0,k=0,A=0;A<256;++A){var x=k^k<<1^k<<2^k<<3^k<<4;x=x>>>8^255&x^99,g[b]=x,h[x]=b;var j=l[b],P=l[j],B=l[P],$=257*l[x]^16843008*x;u[0][b]=$<<24|$>>>8,u[1][b]=$<<16|$>>>16,u[2][b]=$<<8|$>>>24,u[3][b]=$,$=16843009*B^65537*P^257*j^16843008*b,w[0][x]=$<<24|$>>>8,w[1][x]=$<<16|$>>>16,w[2][x]=$<<8|$>>>24,w[3][x]=$,b===0?b=k=1:(b=j^l[l[l[B^j]]],k^=l[l[k]])}return{SBOX:g,INV_SBOX:h,SUB_MIX:u,INV_SUB_MIX:w}}();function c(l){this._key=v(l),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var l=this._key,f=l.length,g=f+6,h=4*(g+1),u=[],w=0;w<f;w++)u[w]=l[w];for(w=f;w<h;w++){var b=u[w-1];w%f==0?(b=b<<8|b>>>24,b=p.SBOX[b>>>24]<<24|p.SBOX[b>>>16&255]<<16|p.SBOX[b>>>8&255]<<8|p.SBOX[255&b],b^=s[w/f|0]<<24):f>6&&w%f==4&&(b=p.SBOX[b>>>24]<<24|p.SBOX[b>>>16&255]<<16|p.SBOX[b>>>8&255]<<8|p.SBOX[255&b]),u[w]=u[w-f]^b}for(var k=[],A=0;A<h;A++){var x=h-A,j=u[x-(A%4?0:4)];k[A]=A<4||x<=4?j:p.INV_SUB_MIX[0][p.SBOX[j>>>24]]^p.INV_SUB_MIX[1][p.SBOX[j>>>16&255]]^p.INV_SUB_MIX[2][p.SBOX[j>>>8&255]]^p.INV_SUB_MIX[3][p.SBOX[255&j]]}this._nRounds=g,this._keySchedule=u,this._invKeySchedule=k},c.prototype.encryptBlockRaw=function(l){return E(l=v(l),this._keySchedule,p.SUB_MIX,p.SBOX,this._nRounds)},c.prototype.encryptBlock=function(l){var f=this.encryptBlockRaw(l),g=M.allocUnsafe(16);return g.writeUInt32BE(f[0],0),g.writeUInt32BE(f[1],4),g.writeUInt32BE(f[2],8),g.writeUInt32BE(f[3],12),g},c.prototype.decryptBlock=function(l){var f=(l=v(l))[1];l[1]=l[3],l[3]=f;var g=E(l,this._invKeySchedule,p.INV_SUB_MIX,p.INV_SBOX,this._nRounds),h=M.allocUnsafe(16);return h.writeUInt32BE(g[0],0),h.writeUInt32BE(g[3],4),h.writeUInt32BE(g[2],8),h.writeUInt32BE(g[1],12),h},c.prototype.scrub=function(){m(this._keySchedule),m(this._invKeySchedule),m(this._key)},H.exports.AES=c},2422:(H,_,y)=>{var M=y(4497),v=y(9509).Buffer,m=y(1027),E=y(5717),s=y(3288),p=y(7295),c=y(685);function l(f,g,h,u){m.call(this);var w=v.alloc(4,0);this._cipher=new M.AES(g);var b=this._cipher.encryptBlock(w);this._ghash=new s(b),h=function(k,A,x){if(A.length===12)return k._finID=v.concat([A,v.from([0,0,0,1])]),v.concat([A,v.from([0,0,0,2])]);var j=new s(x),P=A.length,B=P%16;j.update(A),B&&(B=16-B,j.update(v.alloc(B,0))),j.update(v.alloc(8,0));var $=8*P,te=v.alloc(8);te.writeUIntBE($,0,8),j.update(te),k._finID=j.state;var J=v.from(k._finID);return c(J),J}(this,h,b),this._prev=v.from(h),this._cache=v.allocUnsafe(0),this._secCache=v.allocUnsafe(0),this._decrypt=u,this._alen=0,this._len=0,this._mode=f,this._authTag=null,this._called=!1}E(l,m),l.prototype._update=function(f){if(!this._called&&this._alen){var g=16-this._alen%16;g<16&&(g=v.alloc(g,0),this._ghash.update(g))}this._called=!0;var h=this._mode.encrypt(this,f);return this._decrypt?this._ghash.update(f):this._ghash.update(h),this._len+=f.length,h},l.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var f=p(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(g,h){var u=0;g.length!==h.length&&u++;for(var w=Math.min(g.length,h.length),b=0;b<w;++b)u+=g[b]^h[b];return u}(f,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=f,this._cipher.scrub()},l.prototype.getAuthTag=function(){if(this._decrypt||!v.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},l.prototype.setAuthTag=function(f){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=f},l.prototype.setAAD=function(f){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(f),this._alen+=f.length},H.exports=l},4696:(H,_,y)=>{var M=y(1494),v=y(6193),m=y(4946);_.createCipher=_.Cipher=M.createCipher,_.createCipheriv=_.Cipheriv=M.createCipheriv,_.createDecipher=_.Decipher=v.createDecipher,_.createDecipheriv=_.Decipheriv=v.createDecipheriv,_.listCiphers=_.getCiphers=function(){return Object.keys(m)}},6193:(H,_,y)=>{var M=y(2422),v=y(9509).Buffer,m=y(45),E=y(5969),s=y(1027),p=y(4497),c=y(3048);function l(h,u,w){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new p.AES(u),this._prev=v.from(w),this._mode=h,this._autopadding=!0}function f(){this.cache=v.allocUnsafe(0)}function g(h,u,w){var b=m[h.toLowerCase()];if(!b)throw new TypeError("invalid suite type");if(typeof w=="string"&&(w=v.from(w)),b.mode!=="GCM"&&w.length!==b.iv)throw new TypeError("invalid iv length "+w.length);if(typeof u=="string"&&(u=v.from(u)),u.length!==b.key/8)throw new TypeError("invalid key length "+u.length);return b.type==="stream"?new E(b.module,u,w,!0):b.type==="auth"?new M(b.module,u,w,!0):new l(b.module,u,w)}y(5717)(l,s),l.prototype._update=function(h){var u,w;this._cache.add(h);for(var b=[];u=this._cache.get(this._autopadding);)w=this._mode.decrypt(this,u),b.push(w);return v.concat(b)},l.prototype._final=function(){var h=this._cache.flush();if(this._autopadding)return function(u){var w=u[15];if(w<1||w>16)throw new Error("unable to decrypt data");for(var b=-1;++b<w;)if(u[b+(16-w)]!==w)throw new Error("unable to decrypt data");if(w!==16)return u.slice(0,16-w)}(this._mode.decrypt(this,h));if(h)throw new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(h){return this._autopadding=!!h,this},f.prototype.add=function(h){this.cache=v.concat([this.cache,h])},f.prototype.get=function(h){var u;if(h){if(this.cache.length>16)return u=this.cache.slice(0,16),this.cache=this.cache.slice(16),u}else if(this.cache.length>=16)return u=this.cache.slice(0,16),this.cache=this.cache.slice(16),u;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},_.createDecipher=function(h,u){var w=m[h.toLowerCase()];if(!w)throw new TypeError("invalid suite type");var b=c(u,!1,w.key,w.iv);return g(h,b.key,b.iv)},_.createDecipheriv=g},1494:(H,_,y)=>{var M=y(45),v=y(2422),m=y(9509).Buffer,E=y(5969),s=y(1027),p=y(4497),c=y(3048);function l(u,w,b){s.call(this),this._cache=new g,this._cipher=new p.AES(w),this._prev=m.from(b),this._mode=u,this._autopadding=!0}y(5717)(l,s),l.prototype._update=function(u){var w,b;this._cache.add(u);for(var k=[];w=this._cache.get();)b=this._mode.encrypt(this,w),k.push(b);return m.concat(k)};var f=m.alloc(16,16);function g(){this.cache=m.allocUnsafe(0)}function h(u,w,b){var k=M[u.toLowerCase()];if(!k)throw new TypeError("invalid suite type");if(typeof w=="string"&&(w=m.from(w)),w.length!==k.key/8)throw new TypeError("invalid key length "+w.length);if(typeof b=="string"&&(b=m.from(b)),k.mode!=="GCM"&&b.length!==k.iv)throw new TypeError("invalid iv length "+b.length);return k.type==="stream"?new E(k.module,w,b):k.type==="auth"?new v(k.module,w,b):new l(k.module,w,b)}l.prototype._final=function(){var u=this._cache.flush();if(this._autopadding)return u=this._mode.encrypt(this,u),this._cipher.scrub(),u;if(!u.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(u){return this._autopadding=!!u,this},g.prototype.add=function(u){this.cache=m.concat([this.cache,u])},g.prototype.get=function(){if(this.cache.length>15){var u=this.cache.slice(0,16);return this.cache=this.cache.slice(16),u}return null},g.prototype.flush=function(){for(var u=16-this.cache.length,w=m.allocUnsafe(u),b=-1;++b<u;)w.writeUInt8(u,b);return m.concat([this.cache,w])},_.createCipheriv=h,_.createCipher=function(u,w){var b=M[u.toLowerCase()];if(!b)throw new TypeError("invalid suite type");var k=c(w,!1,b.key,b.iv);return h(u,k.key,k.iv)}},3288:(H,_,y)=>{var M=y(9509).Buffer,v=M.alloc(16,0);function m(s){var p=M.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=M.alloc(16,0),this.cache=M.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,p,c,l=[(s=this.h).readUInt32BE(0),s.readUInt32BE(4),s.readUInt32BE(8),s.readUInt32BE(12)],f=[0,0,0,0],g=-1;++g<128;){for(this.state[~~(g/8)]&1<<7-g%8&&(f[0]^=l[0],f[1]^=l[1],f[2]^=l[2],f[3]^=l[3]),c=(1&l[3])!=0,p=3;p>0;p--)l[p]=l[p]>>>1|(1&l[p-1])<<31;l[0]=l[0]>>>1,c&&(l[0]=l[0]^-520093696)}this.state=m(f)},E.prototype.update=function(s){var p;for(this.cache=M.concat([this.cache,s]);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(M.concat([this.cache,v],16)),this.ghash(m([0,s,0,p])),this.state},H.exports=E},685:H=>{H.exports=function(_){for(var y,M=_.length;M--;){if((y=_.readUInt8(M))!==255){y++,_.writeUInt8(y,M);break}_.writeUInt8(0,M)}}},5292:(H,_,y)=>{var M=y(7295);_.encrypt=function(v,m){var E=M(m,v._prev);return v._prev=v._cipher.encryptBlock(E),v._prev},_.decrypt=function(v,m){var E=v._prev;v._prev=m;var s=v._cipher.decryptBlock(m);return M(s,E)}},6311:(H,_,y)=>{var M=y(9509).Buffer,v=y(7295);function m(E,s,p){var c=s.length,l=v(s,E._cache);return E._cache=E._cache.slice(c),E._prev=M.concat([E._prev,p?s:l]),l}_.encrypt=function(E,s,p){for(var c,l=M.allocUnsafe(0);s.length;){if(E._cache.length===0&&(E._cache=E._cipher.encryptBlock(E._prev),E._prev=M.allocUnsafe(0)),!(E._cache.length<=s.length)){l=M.concat([l,m(E,s,p)]);break}c=E._cache.length,l=M.concat([l,m(E,s.slice(0,c),p)]),s=s.slice(c)}return l}},1510:(H,_,y)=>{var M=y(9509).Buffer;function v(E,s,p){for(var c,l,f=-1,g=0;++f<8;)c=s&1<<7-f?128:0,g+=(128&(l=E._cipher.encryptBlock(E._prev)[0]^c))>>f%8,E._prev=m(E._prev,p?c:l);return g}function m(E,s){var p=E.length,c=-1,l=M.allocUnsafe(E.length);for(E=M.concat([E,M.from([s])]);++c<p;)l[c]=E[c]<<1|E[c+1]>>7;return l}_.encrypt=function(E,s,p){for(var c=s.length,l=M.allocUnsafe(c),f=-1;++f<c;)l[f]=v(E,s[f],p);return l}},1964:(H,_,y)=>{var M=y(9509).Buffer;function v(m,E,s){var p=m._cipher.encryptBlock(m._prev)[0]^E;return m._prev=M.concat([m._prev.slice(1),M.from([s?E:p])]),p}_.encrypt=function(m,E,s){for(var p=E.length,c=M.allocUnsafe(p),l=-1;++l<p;)c[l]=v(m,E[l],s);return c}},6009:(H,_,y)=>{var M=y(7295),v=y(9509).Buffer,m=y(685);function E(s){var p=s._cipher.encryptBlockRaw(s._prev);return m(s._prev),p}_.encrypt=function(s,p){var c=Math.ceil(p.length/16),l=s._cache.length;s._cache=v.concat([s._cache,v.allocUnsafe(16*c)]);for(var f=0;f<c;f++){var g=E(s),h=l+16*f;s._cache.writeUInt32BE(g[0],h+0),s._cache.writeUInt32BE(g[1],h+4),s._cache.writeUInt32BE(g[2],h+8),s._cache.writeUInt32BE(g[3],h+12)}var u=s._cache.slice(0,p.length);return s._cache=s._cache.slice(p.length),M(p,u)}},1084:(H,_)=>{_.encrypt=function(y,M){return y._cipher.encryptBlock(M)},_.decrypt=function(y,M){return y._cipher.decryptBlock(M)}},45:(H,_,y)=>{var M={ECB:y(1084),CBC:y(5292),CFB:y(6311),CFB8:y(1964),CFB1:y(1510),OFB:y(8861),CTR:y(6009),GCM:y(6009)},v=y(4946);for(var m in v)v[m].module=M[v[m].mode];H.exports=v},8861:(H,_,y)=>{var M=y(8764).Buffer,v=y(7295);function m(E){return E._prev=E._cipher.encryptBlock(E._prev),E._prev}_.encrypt=function(E,s){for(;E._cache.length<s.length;)E._cache=M.concat([E._cache,m(E)]);var p=E._cache.slice(0,s.length);return E._cache=E._cache.slice(s.length),v(s,p)}},5969:(H,_,y)=>{var M=y(4497),v=y(9509).Buffer,m=y(1027);function E(s,p,c,l){m.call(this),this._cipher=new M.AES(p),this._prev=v.from(c),this._cache=v.allocUnsafe(0),this._secCache=v.allocUnsafe(0),this._decrypt=l,this._mode=s}y(5717)(E,m),E.prototype._update=function(s){return this._mode.encrypt(this,s,this._decrypt)},E.prototype._final=function(){this._cipher.scrub()},H.exports=E},3614:(H,_,y)=>{var M=y(7667),v=y(4696),m=y(45),E=y(9715),s=y(3048);function p(l,f,g){if(l=l.toLowerCase(),m[l])return v.createCipheriv(l,f,g);if(E[l])return new M({key:f,iv:g,mode:l});throw new TypeError("invalid suite type")}function c(l,f,g){if(l=l.toLowerCase(),m[l])return v.createDecipheriv(l,f,g);if(E[l])return new M({key:f,iv:g,mode:l,decrypt:!0});throw new TypeError("invalid suite type")}_.createCipher=_.Cipher=function(l,f){var g,h;if(l=l.toLowerCase(),m[l])g=m[l].key,h=m[l].iv;else{if(!E[l])throw new TypeError("invalid suite type");g=8*E[l].key,h=E[l].iv}var u=s(f,!1,g,h);return p(l,u.key,u.iv)},_.createCipheriv=_.Cipheriv=p,_.createDecipher=_.Decipher=function(l,f){var g,h;if(l=l.toLowerCase(),m[l])g=m[l].key,h=m[l].iv;else{if(!E[l])throw new TypeError("invalid suite type");g=8*E[l].key,h=E[l].iv}var u=s(f,!1,g,h);return c(l,u.key,u.iv)},_.createDecipheriv=_.Decipheriv=c,_.listCiphers=_.getCiphers=function(){return Object.keys(E).concat(v.getCiphers())}},7667:(H,_,y)=>{var M=y(1027),v=y(5251),m=y(5717),E=y(9509).Buffer,s={"des-ede3-cbc":v.CBC.instantiate(v.EDE),"des-ede3":v.EDE,"des-ede-cbc":v.CBC.instantiate(v.EDE),"des-ede":v.EDE,"des-cbc":v.CBC.instantiate(v.DES),"des-ecb":v.DES};function p(c){M.call(this);var l,f=c.mode.toLowerCase(),g=s[f];l=c.decrypt?"decrypt":"encrypt";var h=c.key;E.isBuffer(h)||(h=E.from(h)),f!=="des-ede"&&f!=="des-ede-cbc"||(h=E.concat([h,h.slice(0,8)]));var u=c.iv;E.isBuffer(u)||(u=E.from(u)),this._des=g.create({key:h,iv:u,type:l})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],H.exports=p,m(p,M),p.prototype._update=function(c){return E.from(this._des.update(c))},p.prototype._final=function(){return E.from(this._des.final())}},9715:(H,_)=>{_["des-ecb"]={key:8,iv:0},_["des-cbc"]=_.des={key:8,iv:8},_["des-ede3-cbc"]=_.des3={key:24,iv:8},_["des-ede3"]={key:24,iv:0},_["des-ede-cbc"]={key:16,iv:8},_["des-ede"]={key:16,iv:0}},3663:(H,_,y)=>{var M=y(8764).Buffer,v=y(3550),m=y(1798);function E(p){var c,l=p.modulus.byteLength();do c=new v(m(l));while(c.cmp(p.modulus)>=0||!c.umod(p.prime1)||!c.umod(p.prime2));return c}function s(p,c){var l=function(P){var B=E(P);return{blinder:B.toRed(v.mont(P.modulus)).redPow(new v(P.publicExponent)).fromRed(),unblinder:B.invm(P.modulus)}}(c),f=c.modulus.byteLength(),g=new v(p).mul(l.blinder).umod(c.modulus),h=g.toRed(v.mont(c.prime1)),u=g.toRed(v.mont(c.prime2)),w=c.coefficient,b=c.prime1,k=c.prime2,A=h.redPow(c.exponent1).fromRed(),x=u.redPow(c.exponent2).fromRed(),j=A.isub(x).imul(w).umod(b).imul(k);return x.iadd(j).imul(l.unblinder).umod(c.modulus).toArrayLike(M,"be",f)}s.getr=E,H.exports=s},6042:(H,_,y)=>{H.exports=y(5207)},4743:(H,_,y)=>{var M=y(9509).Buffer,v=y(3482),m=y(8473),E=y(5717),s=y(2957),p=y(7753),c=y(5207);function l(u){m.Writable.call(this);var w=c[u];if(!w)throw new Error("Unknown message digest");this._hashType=w.hash,this._hash=v(w.hash),this._tag=w.id,this._signType=w.sign}function f(u){m.Writable.call(this);var w=c[u];if(!w)throw new Error("Unknown message digest");this._hash=v(w.hash),this._tag=w.id,this._signType=w.sign}function g(u){return new l(u)}function h(u){return new f(u)}Object.keys(c).forEach(function(u){c[u].id=M.from(c[u].id,"hex"),c[u.toLowerCase()]=c[u]}),E(l,m.Writable),l.prototype._write=function(u,w,b){this._hash.update(u),b()},l.prototype.update=function(u,w){return typeof u=="string"&&(u=M.from(u,w)),this._hash.update(u),this},l.prototype.sign=function(u,w){this.end();var b=this._hash.digest(),k=s(b,u,this._hashType,this._signType,this._tag);return w?k.toString(w):k},E(f,m.Writable),f.prototype._write=function(u,w,b){this._hash.update(u),b()},f.prototype.update=function(u,w){return typeof u=="string"&&(u=M.from(u,w)),this._hash.update(u),this},f.prototype.verify=function(u,w,b){typeof w=="string"&&(w=M.from(w,b)),this.end();var k=this._hash.digest();return p(w,k,u,this._signType,this._tag)},H.exports={Sign:g,Verify:h,createSign:g,createVerify:h}},2957:(H,_,y)=>{var M=y(9509).Buffer,v=y(8355),m=y(3663),E=y(6266).ec,s=y(3550),p=y(980),c=y(1308);function l(u,w,b,k){if((u=M.from(u.toArray())).length<w.byteLength()){var A=M.alloc(w.byteLength()-u.length);u=M.concat([A,u])}var x=b.length,j=function($,te){$=($=f($,te)).mod(te);var J=M.from($.toArray());if(J.length<te.byteLength()){var oe=M.alloc(te.byteLength()-J.length);J=M.concat([oe,J])}return J}(b,w),P=M.alloc(x);P.fill(1);var B=M.alloc(x);return B=v(k,B).update(P).update(M.from([0])).update(u).update(j).digest(),P=v(k,B).update(P).digest(),{k:B=v(k,B).update(P).update(M.from([1])).update(u).update(j).digest(),v:P=v(k,B).update(P).digest()}}function f(u,w){var b=new s(u),k=(u.length<<3)-w.bitLength();return k>0&&b.ishrn(k),b}function g(u,w,b){var k,A;do{for(k=M.alloc(0);8*k.length<u.bitLength();)w.v=v(b,w.k).update(w.v).digest(),k=M.concat([k,w.v]);A=f(k,u),w.k=v(b,w.k).update(w.v).update(M.from([0])).digest(),w.v=v(b,w.k).update(w.v).digest()}while(A.cmp(u)!==-1);return A}function h(u,w,b,k){return u.toRed(s.mont(b)).redPow(w).fromRed().mod(k)}H.exports=function(u,w,b,k,A){var x=p(w);if(x.curve){if(k!=="ecdsa"&&k!=="ecdsa/rsa")throw new Error("wrong private key type");return function($,te){var J=c[te.curve.join(".")];if(!J)throw new Error("unknown curve "+te.curve.join("."));var oe=new E(J).keyFromPrivate(te.privateKey).sign($);return M.from(oe.toDER())}(u,x)}if(x.type==="dsa"){if(k!=="dsa")throw new Error("wrong private key type");return function($,te,J){for(var oe,e=te.params.priv_key,r=te.params.p,i=te.params.q,n=te.params.g,t=new s(0),o=f($,i).mod(i),a=!1,T=l(e,i,$,J);a===!1;)t=h(n,oe=g(i,T,J),r,i),(a=oe.invm(i).imul(o.add(e.mul(t))).mod(i)).cmpn(0)===0&&(a=!1,t=new s(0));return function(C,N){C=C.toArray(),N=N.toArray(),128&C[0]&&(C=[0].concat(C)),128&N[0]&&(N=[0].concat(N));var O=[48,C.length+N.length+4,2,C.length];return O=O.concat(C,[2,N.length],N),M.from(O)}(t,a)}(u,x,b)}if(k!=="rsa"&&k!=="ecdsa/rsa")throw new Error("wrong private key type");u=M.concat([A,u]);for(var j=x.modulus.byteLength(),P=[0,1];u.length+P.length+1<j;)P.push(255);P.push(0);for(var B=-1;++B<u.length;)P.push(u[B]);return m(P,x)},H.exports.getKey=l,H.exports.makeKey=g},7753:(H,_,y)=>{var M=y(9509).Buffer,v=y(3550),m=y(6266).ec,E=y(980),s=y(1308);function p(c,l){if(c.cmpn(0)<=0)throw new Error("invalid sig");if(c.cmp(l)>=l)throw new Error("invalid sig")}H.exports=function(c,l,f,g,h){var u=E(f);if(u.type==="ec"){if(g!=="ecdsa"&&g!=="ecdsa/rsa")throw new Error("wrong public key type");return function(P,B,$){var te=s[$.data.algorithm.curve.join(".")];if(!te)throw new Error("unknown curve "+$.data.algorithm.curve.join("."));var J=new m(te),oe=$.data.subjectPrivateKey.data;return J.verify(B,P,oe)}(c,l,u)}if(u.type==="dsa"){if(g!=="dsa")throw new Error("wrong public key type");return function(P,B,$){var te=$.data.p,J=$.data.q,oe=$.data.g,e=$.data.pub_key,r=E.signature.decode(P,"der"),i=r.s,n=r.r;p(i,J),p(n,J);var t=v.mont(te),o=i.invm(J);return oe.toRed(t).redPow(new v(B).mul(o).mod(J)).fromRed().mul(e.toRed(t).redPow(n.mul(o).mod(J)).fromRed()).mod(te).mod(J).cmp(n)===0}(c,l,u)}if(g!=="rsa"&&g!=="ecdsa/rsa")throw new Error("wrong public key type");l=M.concat([h,l]);for(var w=u.modulus.byteLength(),b=[1],k=0;l.length+b.length+2<w;)b.push(255),k++;b.push(0);for(var A=-1;++A<l.length;)b.push(l[A]);b=M.from(b);var x=v.mont(u.modulus);c=(c=new v(c).toRed(x)).redPow(new v(u.publicExponent)),c=M.from(c.fromRed().toArray());var j=k<8?1:0;for(w=Math.min(c.length,b.length),c.length!==b.length&&(j=1),A=-1;++A<w;)j|=c[A]^b[A];return j===0}},2779:(H,_,y)=>{var M=y(8764).Buffer,v=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];function m(p){if(M.isBuffer(p))return p;var c=typeof M.alloc=="function"&&typeof M.from=="function";if(typeof p=="number")return c?M.alloc(p):new M(p);if(typeof p=="string")return c?M.from(p):new M(p);throw new Error("input must be buffer, number, or string, received "+typeof p)}function E(p,c){p=m(p),M.isBuffer(c)&&(c=c.readUInt32BE(0));for(var l=-1^~~c,f=0;f<p.length;f++)l=v[255&(l^p[f])]^l>>>8;return-1^l}function s(){return p=E.apply(null,arguments),(c=m(4)).writeInt32BE(p,0),c;var p,c}typeof Int32Array<"u"&&(v=new Int32Array(v)),s.signed=function(){return E.apply(null,arguments)},s.unsigned=function(){return E.apply(null,arguments)>>>0},H.exports=s},7295:(H,_,y)=>{var M=y(8764).Buffer;H.exports=function(v,m){for(var E=Math.min(v.length,m.length),s=new M(E),p=0;p<E;++p)s[p]=v[p]^m[p];return s}},8764:(H,_,y)=>{var M=y(5108);const v=y(9742),m=y(645),E=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_.Buffer=c,_.SlowBuffer=function(X){return+X!=X&&(X=0),c.alloc(+X)},_.INSPECT_MAX_BYTES=50;const s=2147483647;function p(X){if(X>s)throw new RangeError('The value "'+X+'" is invalid for option "size"');const ee=new Uint8Array(X);return Object.setPrototypeOf(ee,c.prototype),ee}function c(X,ee,U){if(typeof X=="number"){if(typeof ee=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(X)}return l(X,ee,U)}function l(X,ee,U){if(typeof X=="string")return function(ne,fe){if(typeof fe=="string"&&fe!==""||(fe="utf8"),!c.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe);const he=0|b(ne,fe);let me=p(he);const it=me.write(ne,fe);return it!==he&&(me=me.slice(0,it)),me}(X,ee);if(ArrayBuffer.isView(X))return function(ne){if(ge(ne,Uint8Array)){const fe=new Uint8Array(ne);return u(fe.buffer,fe.byteOffset,fe.byteLength)}return h(ne)}(X);if(X==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X);if(ge(X,ArrayBuffer)||X&&ge(X.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ge(X,SharedArrayBuffer)||X&&ge(X.buffer,SharedArrayBuffer)))return u(X,ee,U);if(typeof X=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const V=X.valueOf&&X.valueOf();if(V!=null&&V!==X)return c.from(V,ee,U);const q=function(ne){if(c.isBuffer(ne)){const fe=0|w(ne.length),he=p(fe);return he.length===0||ne.copy(he,0,0,fe),he}return ne.length!==void 0?typeof ne.length!="number"||be(ne.length)?p(0):h(ne):ne.type==="Buffer"&&Array.isArray(ne.data)?h(ne.data):void 0}(X);if(q)return q;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof X[Symbol.toPrimitive]=="function")return c.from(X[Symbol.toPrimitive]("string"),ee,U);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X)}function f(X){if(typeof X!="number")throw new TypeError('"size" argument must be of type number');if(X<0)throw new RangeError('The value "'+X+'" is invalid for option "size"')}function g(X){return f(X),p(X<0?0:0|w(X))}function h(X){const ee=X.length<0?0:0|w(X.length),U=p(ee);for(let V=0;V<ee;V+=1)U[V]=255&X[V];return U}function u(X,ee,U){if(ee<0||X.byteLength<ee)throw new RangeError('"offset" is outside of buffer bounds');if(X.byteLength<ee+(U||0))throw new RangeError('"length" is outside of buffer bounds');let V;return V=ee===void 0&&U===void 0?new Uint8Array(X):U===void 0?new Uint8Array(X,ee):new Uint8Array(X,ee,U),Object.setPrototypeOf(V,c.prototype),V}function w(X){if(X>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|X}function b(X,ee){if(c.isBuffer(X))return X.length;if(ArrayBuffer.isView(X)||ge(X,ArrayBuffer))return X.byteLength;if(typeof X!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof X);const U=X.length,V=arguments.length>2&&arguments[2]===!0;if(!V&&U===0)return 0;let q=!1;for(;;)switch(ee){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":return re(X).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*U;case"hex":return U>>>1;case"base64":return le(X).length;default:if(q)return V?-1:re(X).length;ee=(""+ee).toLowerCase(),q=!0}}function k(X,ee,U){let V=!1;if((ee===void 0||ee<0)&&(ee=0),ee>this.length||((U===void 0||U>this.length)&&(U=this.length),U<=0)||(U>>>=0)<=(ee>>>=0))return"";for(X||(X="utf8");;)switch(X){case"hex":return t(this,ee,U);case"utf8":case"utf-8":return e(this,ee,U);case"ascii":return i(this,ee,U);case"latin1":case"binary":return n(this,ee,U);case"base64":return oe(this,ee,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o(this,ee,U);default:if(V)throw new TypeError("Unknown encoding: "+X);X=(X+"").toLowerCase(),V=!0}}function A(X,ee,U){const V=X[ee];X[ee]=X[U],X[U]=V}function x(X,ee,U,V,q){if(X.length===0)return-1;if(typeof U=="string"?(V=U,U=0):U>2147483647?U=2147483647:U<-2147483648&&(U=-2147483648),be(U=+U)&&(U=q?0:X.length-1),U<0&&(U=X.length+U),U>=X.length){if(q)return-1;U=X.length-1}else if(U<0){if(!q)return-1;U=0}if(typeof ee=="string"&&(ee=c.from(ee,V)),c.isBuffer(ee))return ee.length===0?-1:j(X,ee,U,V,q);if(typeof ee=="number")return ee&=255,typeof Uint8Array.prototype.indexOf=="function"?q?Uint8Array.prototype.indexOf.call(X,ee,U):Uint8Array.prototype.lastIndexOf.call(X,ee,U):j(X,[ee],U,V,q);throw new TypeError("val must be string, number or Buffer")}function j(X,ee,U,V,q){let ne,fe=1,he=X.length,me=ee.length;if(V!==void 0&&((V=String(V).toLowerCase())==="ucs2"||V==="ucs-2"||V==="utf16le"||V==="utf-16le")){if(X.length<2||ee.length<2)return-1;fe=2,he/=2,me/=2,U/=2}function it(_e,Te){return fe===1?_e[Te]:_e.readUInt16BE(Te*fe)}if(q){let _e=-1;for(ne=U;ne<he;ne++)if(it(X,ne)===it(ee,_e===-1?0:ne-_e)){if(_e===-1&&(_e=ne),ne-_e+1===me)return _e*fe}else _e!==-1&&(ne-=ne-_e),_e=-1}else for(U+me>he&&(U=he-me),ne=U;ne>=0;ne--){let _e=!0;for(let Te=0;Te<me;Te++)if(it(X,ne+Te)!==it(ee,Te)){_e=!1;break}if(_e)return ne}return-1}function P(X,ee,U,V){U=Number(U)||0;const q=X.length-U;V?(V=Number(V))>q&&(V=q):V=q;const ne=ee.length;let fe;for(V>ne/2&&(V=ne/2),fe=0;fe<V;++fe){const he=parseInt(ee.substr(2*fe,2),16);if(be(he))return fe;X[U+fe]=he}return fe}function B(X,ee,U,V){return ke(re(ee,X.length-U),X,U,V)}function $(X,ee,U,V){return ke(function(q){const ne=[];for(let fe=0;fe<q.length;++fe)ne.push(255&q.charCodeAt(fe));return ne}(ee),X,U,V)}function te(X,ee,U,V){return ke(le(ee),X,U,V)}function J(X,ee,U,V){return ke(function(q,ne){let fe,he,me;const it=[];for(let _e=0;_e<q.length&&!((ne-=2)<0);++_e)fe=q.charCodeAt(_e),he=fe>>8,me=fe%256,it.push(me),it.push(he);return it}(ee,X.length-U),X,U,V)}function oe(X,ee,U){return ee===0&&U===X.length?v.fromByteArray(X):v.fromByteArray(X.slice(ee,U))}function e(X,ee,U){U=Math.min(X.length,U);const V=[];let q=ee;for(;q<U;){const ne=X[q];let fe=null,he=ne>239?4:ne>223?3:ne>191?2:1;if(q+he<=U){let me,it,_e,Te;switch(he){case 1:ne<128&&(fe=ne);break;case 2:me=X[q+1],(192&me)==128&&(Te=(31&ne)<<6|63&me,Te>127&&(fe=Te));break;case 3:me=X[q+1],it=X[q+2],(192&me)==128&&(192&it)==128&&(Te=(15&ne)<<12|(63&me)<<6|63&it,Te>2047&&(Te<55296||Te>57343)&&(fe=Te));break;case 4:me=X[q+1],it=X[q+2],_e=X[q+3],(192&me)==128&&(192&it)==128&&(192&_e)==128&&(Te=(15&ne)<<18|(63&me)<<12|(63&it)<<6|63&_e,Te>65535&&Te<1114112&&(fe=Te))}}fe===null?(fe=65533,he=1):fe>65535&&(fe-=65536,V.push(fe>>>10&1023|55296),fe=56320|1023&fe),V.push(fe),q+=he}return function(ne){const fe=ne.length;if(fe<=r)return String.fromCharCode.apply(String,ne);let he="",me=0;for(;me<fe;)he+=String.fromCharCode.apply(String,ne.slice(me,me+=r));return he}(V)}_.kMaxLength=s,c.TYPED_ARRAY_SUPPORT=function(){try{const X=new Uint8Array(1),ee={foo:function(){return 42}};return Object.setPrototypeOf(ee,Uint8Array.prototype),Object.setPrototypeOf(X,ee),X.foo()===42}catch{return!1}}(),c.TYPED_ARRAY_SUPPORT||M===void 0||typeof M.error!="function"||M.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."),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}}),c.poolSize=8192,c.from=function(X,ee,U){return l(X,ee,U)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(X,ee,U){return function(V,q,ne){return f(V),V<=0?p(V):q!==void 0?typeof ne=="string"?p(V).fill(q,ne):p(V).fill(q):p(V)}(X,ee,U)},c.allocUnsafe=function(X){return g(X)},c.allocUnsafeSlow=function(X){return g(X)},c.isBuffer=function(X){return X!=null&&X._isBuffer===!0&&X!==c.prototype},c.compare=function(X,ee){if(ge(X,Uint8Array)&&(X=c.from(X,X.offset,X.byteLength)),ge(ee,Uint8Array)&&(ee=c.from(ee,ee.offset,ee.byteLength)),!c.isBuffer(X)||!c.isBuffer(ee))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(X===ee)return 0;let U=X.length,V=ee.length;for(let q=0,ne=Math.min(U,V);q<ne;++q)if(X[q]!==ee[q]){U=X[q],V=ee[q];break}return U<V?-1:V<U?1:0},c.isEncoding=function(X){switch(String(X).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(X,ee){if(!Array.isArray(X))throw new TypeError('"list" argument must be an Array of Buffers');if(X.length===0)return c.alloc(0);let U;if(ee===void 0)for(ee=0,U=0;U<X.length;++U)ee+=X[U].length;const V=c.allocUnsafe(ee);let q=0;for(U=0;U<X.length;++U){let ne=X[U];if(ge(ne,Uint8Array))q+ne.length>V.length?(c.isBuffer(ne)||(ne=c.from(ne)),ne.copy(V,q)):Uint8Array.prototype.set.call(V,ne,q);else{if(!c.isBuffer(ne))throw new TypeError('"list" argument must be an Array of Buffers');ne.copy(V,q)}q+=ne.length}return V},c.byteLength=b,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const X=this.length;if(X%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let ee=0;ee<X;ee+=2)A(this,ee,ee+1);return this},c.prototype.swap32=function(){const X=this.length;if(X%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let ee=0;ee<X;ee+=4)A(this,ee,ee+3),A(this,ee+1,ee+2);return this},c.prototype.swap64=function(){const X=this.length;if(X%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let ee=0;ee<X;ee+=8)A(this,ee,ee+7),A(this,ee+1,ee+6),A(this,ee+2,ee+5),A(this,ee+3,ee+4);return this},c.prototype.toString=function(){const X=this.length;return X===0?"":arguments.length===0?e(this,0,X):k.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(X){if(!c.isBuffer(X))throw new TypeError("Argument must be a Buffer");return this===X||c.compare(this,X)===0},c.prototype.inspect=function(){let X="";const ee=_.INSPECT_MAX_BYTES;return X=this.toString("hex",0,ee).replace(/(.{2})/g,"$1 ").trim(),this.length>ee&&(X+=" ... "),"<Buffer "+X+">"},E&&(c.prototype[E]=c.prototype.inspect),c.prototype.compare=function(X,ee,U,V,q){if(ge(X,Uint8Array)&&(X=c.from(X,X.offset,X.byteLength)),!c.isBuffer(X))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof X);if(ee===void 0&&(ee=0),U===void 0&&(U=X?X.length:0),V===void 0&&(V=0),q===void 0&&(q=this.length),ee<0||U>X.length||V<0||q>this.length)throw new RangeError("out of range index");if(V>=q&&ee>=U)return 0;if(V>=q)return-1;if(ee>=U)return 1;if(this===X)return 0;let ne=(q>>>=0)-(V>>>=0),fe=(U>>>=0)-(ee>>>=0);const he=Math.min(ne,fe),me=this.slice(V,q),it=X.slice(ee,U);for(let _e=0;_e<he;++_e)if(me[_e]!==it[_e]){ne=me[_e],fe=it[_e];break}return ne<fe?-1:fe<ne?1:0},c.prototype.includes=function(X,ee,U){return this.indexOf(X,ee,U)!==-1},c.prototype.indexOf=function(X,ee,U){return x(this,X,ee,U,!0)},c.prototype.lastIndexOf=function(X,ee,U){return x(this,X,ee,U,!1)},c.prototype.write=function(X,ee,U,V){if(ee===void 0)V="utf8",U=this.length,ee=0;else if(U===void 0&&typeof ee=="string")V=ee,U=this.length,ee=0;else{if(!isFinite(ee))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");ee>>>=0,isFinite(U)?(U>>>=0,V===void 0&&(V="utf8")):(V=U,U=void 0)}const q=this.length-ee;if((U===void 0||U>q)&&(U=q),X.length>0&&(U<0||ee<0)||ee>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let ne=!1;for(;;)switch(V){case"hex":return P(this,X,ee,U);case"utf8":case"utf-8":return B(this,X,ee,U);case"ascii":case"latin1":case"binary":return $(this,X,ee,U);case"base64":return te(this,X,ee,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,X,ee,U);default:if(ne)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),ne=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const r=4096;function i(X,ee,U){let V="";U=Math.min(X.length,U);for(let q=ee;q<U;++q)V+=String.fromCharCode(127&X[q]);return V}function n(X,ee,U){let V="";U=Math.min(X.length,U);for(let q=ee;q<U;++q)V+=String.fromCharCode(X[q]);return V}function t(X,ee,U){const V=X.length;(!ee||ee<0)&&(ee=0),(!U||U<0||U>V)&&(U=V);let q="";for(let ne=ee;ne<U;++ne)q+=je[X[ne]];return q}function o(X,ee,U){const V=X.slice(ee,U);let q="";for(let ne=0;ne<V.length-1;ne+=2)q+=String.fromCharCode(V[ne]+256*V[ne+1]);return q}function a(X,ee,U){if(X%1!=0||X<0)throw new RangeError("offset is not uint");if(X+ee>U)throw new RangeError("Trying to access beyond buffer length")}function T(X,ee,U,V,q,ne){if(!c.isBuffer(X))throw new TypeError('"buffer" argument must be a Buffer instance');if(ee>q||ee<ne)throw new RangeError('"value" argument is out of bounds');if(U+V>X.length)throw new RangeError("Index out of range")}function C(X,ee,U,V,q){Y(ee,V,q,X,U,7);let ne=Number(ee&BigInt(4294967295));X[U++]=ne,ne>>=8,X[U++]=ne,ne>>=8,X[U++]=ne,ne>>=8,X[U++]=ne;let fe=Number(ee>>BigInt(32)&BigInt(4294967295));return X[U++]=fe,fe>>=8,X[U++]=fe,fe>>=8,X[U++]=fe,fe>>=8,X[U++]=fe,U}function N(X,ee,U,V,q){Y(ee,V,q,X,U,7);let ne=Number(ee&BigInt(4294967295));X[U+7]=ne,ne>>=8,X[U+6]=ne,ne>>=8,X[U+5]=ne,ne>>=8,X[U+4]=ne;let fe=Number(ee>>BigInt(32)&BigInt(4294967295));return X[U+3]=fe,fe>>=8,X[U+2]=fe,fe>>=8,X[U+1]=fe,fe>>=8,X[U]=fe,U+8}function O(X,ee,U,V,q,ne){if(U+V>X.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function R(X,ee,U,V,q){return ee=+ee,U>>>=0,q||O(X,0,U,4),m.write(X,ee,U,V,23,4),U+4}function F(X,ee,U,V,q){return ee=+ee,U>>>=0,q||O(X,0,U,8),m.write(X,ee,U,V,52,8),U+8}c.prototype.slice=function(X,ee){const U=this.length;(X=~~X)<0?(X+=U)<0&&(X=0):X>U&&(X=U),(ee=ee===void 0?U:~~ee)<0?(ee+=U)<0&&(ee=0):ee>U&&(ee=U),ee<X&&(ee=X);const V=this.subarray(X,ee);return Object.setPrototypeOf(V,c.prototype),V},c.prototype.readUintLE=c.prototype.readUIntLE=function(X,ee,U){X>>>=0,ee>>>=0,U||a(X,ee,this.length);let V=this[X],q=1,ne=0;for(;++ne<ee&&(q*=256);)V+=this[X+ne]*q;return V},c.prototype.readUintBE=c.prototype.readUIntBE=function(X,ee,U){X>>>=0,ee>>>=0,U||a(X,ee,this.length);let V=this[X+--ee],q=1;for(;ee>0&&(q*=256);)V+=this[X+--ee]*q;return V},c.prototype.readUint8=c.prototype.readUInt8=function(X,ee){return X>>>=0,ee||a(X,1,this.length),this[X]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(X,ee){return X>>>=0,ee||a(X,2,this.length),this[X]|this[X+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(X,ee){return X>>>=0,ee||a(X,2,this.length),this[X]<<8|this[X+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(X,ee){return X>>>=0,ee||a(X,4,this.length),(this[X]|this[X+1]<<8|this[X+2]<<16)+16777216*this[X+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(X,ee){return X>>>=0,ee||a(X,4,this.length),16777216*this[X]+(this[X+1]<<16|this[X+2]<<8|this[X+3])},c.prototype.readBigUInt64LE=xe(function(X){z(X>>>=0,"offset");const ee=this[X],U=this[X+7];ee!==void 0&&U!==void 0||W(X,this.length-8);const V=ee+256*this[++X]+65536*this[++X]+this[++X]*2**24,q=this[++X]+256*this[++X]+65536*this[++X]+U*2**24;return BigInt(V)+(BigInt(q)<<BigInt(32))}),c.prototype.readBigUInt64BE=xe(function(X){z(X>>>=0,"offset");const ee=this[X],U=this[X+7];ee!==void 0&&U!==void 0||W(X,this.length-8);const V=ee*2**24+65536*this[++X]+256*this[++X]+this[++X],q=this[++X]*2**24+65536*this[++X]+256*this[++X]+U;return(BigInt(V)<<BigInt(32))+BigInt(q)}),c.prototype.readIntLE=function(X,ee,U){X>>>=0,ee>>>=0,U||a(X,ee,this.length);let V=this[X],q=1,ne=0;for(;++ne<ee&&(q*=256);)V+=this[X+ne]*q;return q*=128,V>=q&&(V-=Math.pow(2,8*ee)),V},c.prototype.readIntBE=function(X,ee,U){X>>>=0,ee>>>=0,U||a(X,ee,this.length);let V=ee,q=1,ne=this[X+--V];for(;V>0&&(q*=256);)ne+=this[X+--V]*q;return q*=128,ne>=q&&(ne-=Math.pow(2,8*ee)),ne},c.prototype.readInt8=function(X,ee){return X>>>=0,ee||a(X,1,this.length),128&this[X]?-1*(255-this[X]+1):this[X]},c.prototype.readInt16LE=function(X,ee){X>>>=0,ee||a(X,2,this.length);const U=this[X]|this[X+1]<<8;return 32768&U?4294901760|U:U},c.prototype.readInt16BE=function(X,ee){X>>>=0,ee||a(X,2,this.length);const U=this[X+1]|this[X]<<8;return 32768&U?4294901760|U:U},c.prototype.readInt32LE=function(X,ee){return X>>>=0,ee||a(X,4,this.length),this[X]|this[X+1]<<8|this[X+2]<<16|this[X+3]<<24},c.prototype.readInt32BE=function(X,ee){return X>>>=0,ee||a(X,4,this.length),this[X]<<24|this[X+1]<<16|this[X+2]<<8|this[X+3]},c.prototype.readBigInt64LE=xe(function(X){z(X>>>=0,"offset");const ee=this[X],U=this[X+7];ee!==void 0&&U!==void 0||W(X,this.length-8);const V=this[X+4]+256*this[X+5]+65536*this[X+6]+(U<<24);return(BigInt(V)<<BigInt(32))+BigInt(ee+256*this[++X]+65536*this[++X]+this[++X]*16777216)}),c.prototype.readBigInt64BE=xe(function(X){z(X>>>=0,"offset");const ee=this[X],U=this[X+7];ee!==void 0&&U!==void 0||W(X,this.length-8);const V=(ee<<24)+65536*this[++X]+256*this[++X]+this[++X];return(BigInt(V)<<BigInt(32))+BigInt(this[++X]*16777216+65536*this[++X]+256*this[++X]+U)}),c.prototype.readFloatLE=function(X,ee){return X>>>=0,ee||a(X,4,this.length),m.read(this,X,!0,23,4)},c.prototype.readFloatBE=function(X,ee){return X>>>=0,ee||a(X,4,this.length),m.read(this,X,!1,23,4)},c.prototype.readDoubleLE=function(X,ee){return X>>>=0,ee||a(X,8,this.length),m.read(this,X,!0,52,8)},c.prototype.readDoubleBE=function(X,ee){return X>>>=0,ee||a(X,8,this.length),m.read(this,X,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(X,ee,U,V){X=+X,ee>>>=0,U>>>=0,V||T(this,X,ee,U,Math.pow(2,8*U)-1,0);let q=1,ne=0;for(this[ee]=255&X;++ne<U&&(q*=256);)this[ee+ne]=X/q&255;return ee+U},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(X,ee,U,V){X=+X,ee>>>=0,U>>>=0,V||T(this,X,ee,U,Math.pow(2,8*U)-1,0);let q=U-1,ne=1;for(this[ee+q]=255&X;--q>=0&&(ne*=256);)this[ee+q]=X/ne&255;return ee+U},c.prototype.writeUint8=c.prototype.writeUInt8=function(X,ee,U){return X=+X,ee>>>=0,U||T(this,X,ee,1,255,0),this[ee]=255&X,ee+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(X,ee,U){return X=+X,ee>>>=0,U||T(this,X,ee,2,65535,0),this[ee]=255&X,this[ee+1]=X>>>8,ee+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(X,ee,U){return X=+X,ee>>>=0,U||T(this,X,ee,2,65535,0),this[ee]=X>>>8,this[ee+1]=255&X,ee+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(X,ee,U){return X=+X,ee>>>=0,U||T(this,X,ee,4,4294967295,0),this[ee+3]=X>>>24,this[ee+2]=X>>>16,this[ee+1]=X>>>8,this[ee]=255&X,ee+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(X,ee,U){return X=+X,ee>>>=0,U||T(this,X,ee,4,4294967295,0),this[ee]=X>>>24,this[ee+1]=X>>>16,this[ee+2]=X>>>8,this[ee+3]=255&X,ee+4},c.prototype.writeBigUInt64LE=xe(function(X,ee=0){return C(this,X,ee,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=xe(function(X,ee=0){return N(this,X,ee,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(X,ee,U,V){if(X=+X,ee>>>=0,!V){const he=Math.pow(2,8*U-1);T(this,X,ee,U,he-1,-he)}let q=0,ne=1,fe=0;for(this[ee]=255&X;++q<U&&(ne*=256);)X<0&&fe===0&&this[ee+q-1]!==0&&(fe=1),this[ee+q]=(X/ne>>0)-fe&255;return ee+U},c.prototype.writeIntBE=function(X,ee,U,V){if(X=+X,ee>>>=0,!V){const he=Math.pow(2,8*U-1);T(this,X,ee,U,he-1,-he)}let q=U-1,ne=1,fe=0;for(this[ee+q]=255&X;--q>=0&&(ne*=256);)X<0&&fe===0&&this[ee+q+1]!==0&&(fe=1),this[ee+q]=(X/ne>>0)-fe&255;return ee+U},c.prototype.writeInt8=function(X,ee,U){return X=+X,ee>>>=0,U||T(this,X,ee,1,127,-128),X<0&&(X=255+X+1),this[ee]=255&X,ee+1},c.prototype.writeInt16LE=function(X,ee,U){return X=+X,ee>>>=0,U||T(this,X,ee,2,32767,-32768),this[ee]=255&X,this[ee+1]=X>>>8,ee+2},c.prototype.writeInt16BE=function(X,ee,U){return X=+X,ee>>>=0,U||T(this,X,ee,2,32767,-32768),this[ee]=X>>>8,this[ee+1]=255&X,ee+2},c.prototype.writeInt32LE=function(X,ee,U){return X=+X,ee>>>=0,U||T(this,X,ee,4,2147483647,-2147483648),this[ee]=255&X,this[ee+1]=X>>>8,this[ee+2]=X>>>16,this[ee+3]=X>>>24,ee+4},c.prototype.writeInt32BE=function(X,ee,U){return X=+X,ee>>>=0,U||T(this,X,ee,4,2147483647,-2147483648),X<0&&(X=4294967295+X+1),this[ee]=X>>>24,this[ee+1]=X>>>16,this[ee+2]=X>>>8,this[ee+3]=255&X,ee+4},c.prototype.writeBigInt64LE=xe(function(X,ee=0){return C(this,X,ee,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=xe(function(X,ee=0){return N(this,X,ee,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(X,ee,U){return R(this,X,ee,!0,U)},c.prototype.writeFloatBE=function(X,ee,U){return R(this,X,ee,!1,U)},c.prototype.writeDoubleLE=function(X,ee,U){return F(this,X,ee,!0,U)},c.prototype.writeDoubleBE=function(X,ee,U){return F(this,X,ee,!1,U)},c.prototype.copy=function(X,ee,U,V){if(!c.isBuffer(X))throw new TypeError("argument should be a Buffer");if(U||(U=0),V||V===0||(V=this.length),ee>=X.length&&(ee=X.length),ee||(ee=0),V>0&&V<U&&(V=U),V===U||X.length===0||this.length===0)return 0;if(ee<0)throw new RangeError("targetStart out of bounds");if(U<0||U>=this.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("sourceEnd out of bounds");V>this.length&&(V=this.length),X.length-ee<V-U&&(V=X.length-ee+U);const q=V-U;return this===X&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(ee,U,V):Uint8Array.prototype.set.call(X,this.subarray(U,V),ee),q},c.prototype.fill=function(X,ee,U,V){if(typeof X=="string"){if(typeof ee=="string"?(V=ee,ee=0,U=this.length):typeof U=="string"&&(V=U,U=this.length),V!==void 0&&typeof V!="string")throw new TypeError("encoding must be a string");if(typeof V=="string"&&!c.isEncoding(V))throw new TypeError("Unknown encoding: "+V);if(X.length===1){const ne=X.charCodeAt(0);(V==="utf8"&&ne<128||V==="latin1")&&(X=ne)}}else typeof X=="number"?X&=255:typeof X=="boolean"&&(X=Number(X));if(ee<0||this.length<ee||this.length<U)throw new RangeError("Out of range index");if(U<=ee)return this;let q;if(ee>>>=0,U=U===void 0?this.length:U>>>0,X||(X=0),typeof X=="number")for(q=ee;q<U;++q)this[q]=X;else{const ne=c.isBuffer(X)?X:c.from(X,V),fe=ne.length;if(fe===0)throw new TypeError('The value "'+X+'" is invalid for argument "value"');for(q=0;q<U-ee;++q)this[q+ee]=ne[q%fe]}return this};const Z={};function ie(X,ee,U){Z[X]=class extends U{constructor(){super(),Object.defineProperty(this,"message",{value:ee.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${X}]`,this.stack,delete this.name}get code(){return X}set code(V){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:V,writable:!0})}toString(){return`${this.name} [${X}]: ${this.message}`}}}function D(X){let ee="",U=X.length;const V=X[0]==="-"?1:0;for(;U>=V+4;U-=3)ee=`_${X.slice(U-3,U)}${ee}`;return`${X.slice(0,U)}${ee}`}function Y(X,ee,U,V,q,ne){if(X>U||X<ee){const fe=typeof ee=="bigint"?"n":"";let he;throw he=ne>3?ee===0||ee===BigInt(0)?`>= 0${fe} and < 2${fe} ** ${8*(ne+1)}${fe}`:`>= -(2${fe} ** ${8*(ne+1)-1}${fe}) and < 2 ** ${8*(ne+1)-1}${fe}`:`>= ${ee}${fe} and <= ${U}${fe}`,new Z.ERR_OUT_OF_RANGE("value",he,X)}(function(fe,he,me){z(he,"offset"),fe[he]!==void 0&&fe[he+me]!==void 0||W(he,fe.length-(me+1))})(V,q,ne)}function z(X,ee){if(typeof X!="number")throw new Z.ERR_INVALID_ARG_TYPE(ee,"number",X)}function W(X,ee,U){throw Math.floor(X)!==X?(z(X,U),new Z.ERR_OUT_OF_RANGE(U||"offset","an integer",X)):ee<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE(U||"offset",`>= ${U?1:0} and <= ${ee}`,X)}ie("ERR_BUFFER_OUT_OF_BOUNDS",function(X){return X?`${X} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ie("ERR_INVALID_ARG_TYPE",function(X,ee){return`The "${X}" argument must be of type number. Received type ${typeof ee}`},TypeError),ie("ERR_OUT_OF_RANGE",function(X,ee,U){let V=`The value of "${X}" is out of range.`,q=U;return Number.isInteger(U)&&Math.abs(U)>4294967296?q=D(String(U)):typeof U=="bigint"&&(q=String(U),(U>BigInt(2)**BigInt(32)||U<-(BigInt(2)**BigInt(32)))&&(q=D(q)),q+="n"),V+=` It must be ${ee}. Received ${q}`,V},RangeError);const ae=/[^+/0-9A-Za-z-_]/g;function re(X,ee){let U;ee=ee||1/0;const V=X.length;let q=null;const ne=[];for(let fe=0;fe<V;++fe){if(U=X.charCodeAt(fe),U>55295&&U<57344){if(!q){if(U>56319){(ee-=3)>-1&&ne.push(239,191,189);continue}if(fe+1===V){(ee-=3)>-1&&ne.push(239,191,189);continue}q=U;continue}if(U<56320){(ee-=3)>-1&&ne.push(239,191,189),q=U;continue}U=65536+(q-55296<<10|U-56320)}else q&&(ee-=3)>-1&&ne.push(239,191,189);if(q=null,U<128){if((ee-=1)<0)break;ne.push(U)}else if(U<2048){if((ee-=2)<0)break;ne.push(U>>6|192,63&U|128)}else if(U<65536){if((ee-=3)<0)break;ne.push(U>>12|224,U>>6&63|128,63&U|128)}else{if(!(U<1114112))throw new Error("Invalid code point");if((ee-=4)<0)break;ne.push(U>>18|240,U>>12&63|128,U>>6&63|128,63&U|128)}}return ne}function le(X){return v.toByteArray(function(ee){if((ee=(ee=ee.split("=")[0]).trim().replace(ae,"")).length<2)return"";for(;ee.length%4!=0;)ee+="=";return ee}(X))}function ke(X,ee,U,V){let q;for(q=0;q<V&&!(q+U>=ee.length||q>=X.length);++q)ee[q+U]=X[q];return q}function ge(X,ee){return X instanceof ee||X!=null&&X.constructor!=null&&X.constructor.name!=null&&X.constructor.name===ee.name}function be(X){return X!=X}const je=function(){const X="0123456789abcdef",ee=new Array(256);for(let U=0;U<16;++U){const V=16*U;for(let q=0;q<16;++q)ee[V+q]=X[U]+X[q]}return ee}();function xe(X){return typeof BigInt>"u"?Ae:X}function Ae(){throw new Error("BigInt not supported")}},584:H=>{H.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},1924:(H,_,y)=>{var M=y(210),v=y(5559),m=v(M("String.prototype.indexOf"));H.exports=function(E,s){var p=M(E,!!s);return typeof p=="function"&&m(E,".prototype.")>-1?v(p):p}},5559:(H,_,y)=>{var M=y(8612),v=y(210),m=v("%Function.prototype.apply%"),E=v("%Function.prototype.call%"),s=v("%Reflect.apply%",!0)||M.call(E,m),p=v("%Object.getOwnPropertyDescriptor%",!0),c=v("%Object.defineProperty%",!0),l=v("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}H.exports=function(g){var h=s(M,E,arguments);return p&&c&&p(h,"length").configurable&&c(h,"length",{value:1+l(0,g.length-(arguments.length-1))}),h};var f=function(){return s(M,m,arguments)};c?c(H.exports,"apply",{value:f}):H.exports.apply=f},1027:(H,_,y)=>{var M=y(9509).Buffer,v=y(2830).Transform,m=y(2553).s;function E(s){v.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(5717)(E,v),E.prototype.update=function(s,p,c){typeof s=="string"&&(s=M.from(s,p));var l=this._update(s);return this.hashMode?this:(c&&(l=this._toString(l,c)),l)},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,c){var l;try{this.hashMode?this._update(s):this.push(this._update(s))}catch(f){l=f}finally{c(l)}},E.prototype._flush=function(s){var p;try{this.push(this.__final())}catch(c){p=c}s(p)},E.prototype._finalOrDigest=function(s){var p=this.__final()||M.alloc(0);return s&&(p=this._toString(p,s,!0)),p},E.prototype._toString=function(s,p,c){if(this._decoder||(this._decoder=new m(p),this._encoding=p),this._encoding!==p)throw new Error("can't switch encodings");var l=this._decoder.write(s);return c&&(l+=this._decoder.end()),l},H.exports=E},5108:(H,_,y)=>{var M=y(9539),v=y(9282);function m(){return new Date().getTime()}var E,s=Array.prototype.slice,p={};E=y.g!==void 0&&y.g.console?y.g.console:typeof window<"u"&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){E.log.apply(E,arguments)},"info"],[function(){E.log.apply(E,arguments)},"warn"],[function(){E.warn.apply(E,arguments)},"error"],[function(u){p[u]=m()},"time"],[function(u){var w=p[u];if(!w)throw new Error("No such label: "+u);delete p[u];var b=m()-w;E.log(u+": "+b+"ms")},"timeEnd"],[function(){var u=new Error;u.name="Trace",u.message=M.format.apply(null,arguments),E.error(u.stack)},"trace"],[function(u){E.log(M.inspect(u)+`
|
|
69
|
+
`)},"dir"],[function(u){if(!u){var w=s.call(arguments,1);v.ok(!1,M.format.apply(null,w))}},"assert"]],l=0;l<c.length;l++){var f=c[l],g=f[0],h=f[1];E[h]||(E[h]=g)}H.exports=E},6393:(H,_,y)=>{var M=y(8764).Buffer,v=y(6266),m=y(6426);H.exports=function(c){return new s(c)};var E={secp256k1:{name:"secp256k1",byteLength:32},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}};function s(c){this.curveType=E[c],this.curveType||(this.curveType={name:c}),this.curve=new v.ec(this.curveType.name),this.keys=void 0}function p(c,l,f){Array.isArray(c)||(c=c.toArray());var g=new M(c);if(f&&g.length<f){var h=new M(f-g.length);h.fill(0),g=M.concat([h,g])}return l?g.toString(l):g}E.p224=E.secp224r1,E.p256=E.secp256r1=E.prime256v1,E.p192=E.secp192r1=E.prime192v1,E.p384=E.secp384r1,E.p521=E.secp521r1,s.prototype.generateKeys=function(c,l){return this.keys=this.curve.genKeyPair(),this.getPublicKey(c,l)},s.prototype.computeSecret=function(c,l,f){return l=l||"utf8",M.isBuffer(c)||(c=new M(c,l)),p(this.curve.keyFromPublic(c).getPublic().mul(this.keys.getPrivate()).getX(),f,this.curveType.byteLength)},s.prototype.getPublicKey=function(c,l){var f=this.keys.getPublic(l==="compressed",!0);return l==="hybrid"&&(f[f.length-1]%2?f[0]=7:f[0]=6),p(f,c)},s.prototype.getPrivateKey=function(c){return p(this.keys.getPrivate(),c)},s.prototype.setPublicKey=function(c,l){return l=l||"utf8",M.isBuffer(c)||(c=new M(c,l)),this.keys._importPublic(c),this},s.prototype.setPrivateKey=function(c,l){l=l||"utf8",M.isBuffer(c)||(c=new M(c,l));var f=new m(c);return f=f.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(f),this}},6426:function(H,_,y){(function(M,v){function m(e,r){if(!e)throw new Error(r||"Assertion failed")}function E(e,r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}function s(e,r,i){if(s.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&(r!=="le"&&r!=="be"||(i=r,r=10),this._init(e||0,r||10,i||"be"))}var p;typeof M=="object"?M.exports=s:v.BN=s,s.BN=s,s.wordSize=26;try{p=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:y(8623).Buffer}catch{}function c(e,r){var i=e.charCodeAt(r);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(e,r,i){var n=c(e,i);return i-1>=r&&(n|=c(e,i-1)<<4),n}function f(e,r,i,n){for(var t=0,o=Math.min(e.length,i),a=r;a<o;a++){var T=e.charCodeAt(a)-48;t*=n,t+=T>=49?T-49+10:T>=17?T-17+10:T}return t}s.isBN=function(e){return e instanceof s||e!==null&&typeof e=="object"&&e.constructor.wordSize===s.wordSize&&Array.isArray(e.words)},s.max=function(e,r){return e.cmp(r)>0?e:r},s.min=function(e,r){return e.cmp(r)<0?e:r},s.prototype._init=function(e,r,i){if(typeof e=="number")return this._initNumber(e,r,i);if(typeof e=="object")return this._initArray(e,r,i);r==="hex"&&(r=16),m(r===(0|r)&&r>=2&&r<=36);var n=0;(e=e.toString().replace(/\s+/g,""))[0]==="-"&&(n++,this.negative=1),n<e.length&&(r===16?this._parseHex(e,n,i):(this._parseBase(e,r,n),i==="le"&&this._initArray(this.toArray(),r,i)))},s.prototype._initNumber=function(e,r,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(m(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),r,i)},s.prototype._initArray=function(e,r,i){if(m(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o,a=0;if(i==="be")for(n=e.length-1,t=0;n>=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[t]|=o<<a&67108863,this.words[t+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,t++);else if(i==="le")for(n=0,t=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[t]|=o<<a&67108863,this.words[t+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,t++);return this.strip()},s.prototype._parseHex=function(e,r,i){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o=0,a=0;if(i==="be")for(n=e.length-1;n>=r;n-=2)t=l(e,r,n)<<o,this.words[a]|=67108863&t,o>=18?(o-=18,a+=1,this.words[a]|=t>>>26):o+=8;else for(n=(e.length-r)%2==0?r+1:r;n<e.length;n+=2)t=l(e,r,n)<<o,this.words[a]|=67108863&t,o>=18?(o-=18,a+=1,this.words[a]|=t>>>26):o+=8;this.strip()},s.prototype._parseBase=function(e,r,i){this.words=[0],this.length=1;for(var n=0,t=1;t<=67108863;t*=r)n++;n--,t=t/r|0;for(var o=e.length-i,a=o%n,T=Math.min(o,o-a)+i,C=0,N=i;N<T;N+=n)C=f(e,N,N+n,r),this.imuln(t),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(a!==0){var O=1;for(C=f(e,N,e.length,r),N=0;N<a;N++)O*=r;this.imuln(O),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},s.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},s.prototype.clone=function(){var e=new s(null);return this.copy(e),e},s.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","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"],h=[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],u=[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];function w(e,r,i){i.negative=r.negative^e.negative;var n=e.length+r.length|0;i.length=n,n=n-1|0;var t=0|e.words[0],o=0|r.words[0],a=t*o,T=67108863&a,C=a/67108864|0;i.words[0]=T;for(var N=1;N<n;N++){for(var O=C>>>26,R=67108863&C,F=Math.min(N,r.length-1),Z=Math.max(0,N-e.length+1);Z<=F;Z++){var ie=N-Z|0;O+=(a=(t=0|e.words[ie])*(o=0|r.words[Z])+R)/67108864|0,R=67108863&a}i.words[N]=0|R,C=0|O}return C!==0?i.words[N]=0|C:i.length--,i.strip()}s.prototype.toString=function(e,r){var i;if(r=0|r||1,(e=e||10)===16||e==="hex"){i="";for(var n=0,t=0,o=0;o<this.length;o++){var a=this.words[o],T=(16777215&(a<<n|t)).toString(16);i=(t=a>>>24-n&16777215)!=0||o!==this.length-1?g[6-T.length]+T+i:T+i,(n+=2)>=26&&(n-=26,o--)}for(t!==0&&(i=t.toString(16)+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var C=h[e],N=u[e];i="";var O=this.clone();for(O.negative=0;!O.isZero();){var R=O.modn(N).toString(e);i=(O=O.idivn(N)).isZero()?R+i:g[C-R.length]+R+i}for(this.isZero()&&(i="0"+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}m(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=67108864*this.words[1]:this.length===3&&this.words[2]===1?e+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(e,r){return m(p!==void 0),this.toArrayLike(p,e,r)},s.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},s.prototype.toArrayLike=function(e,r,i){var n=this.byteLength(),t=i||Math.max(1,n);m(n<=t,"byte array longer than desired length"),m(t>0,"Requested array length <= 0"),this.strip();var o,a,T=r==="le",C=new e(t),N=this.clone();if(T){for(a=0;!N.isZero();a++)o=N.andln(255),N.iushrn(8),C[a]=o;for(;a<t;a++)C[a]=0}else{for(a=0;a<t-n;a++)C[a]=0;for(a=0;!N.isZero();a++)o=N.andln(255),N.iushrn(8),C[t-a-1]=o}return C},Math.clz32?s.prototype._countBits=function(e){return 32-Math.clz32(e)}:s.prototype._countBits=function(e){var r=e,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},s.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,i=0;return!(8191&r)&&(i+=13,r>>>=13),!(127&r)&&(i+=7,r>>>=7),!(15&r)&&(i+=4,r>>>=4),!(3&r)&&(i+=2,r>>>=2),!(1&r)&&i++,i},s.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return 26*(this.length-1)+r},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(e+=i,i!==26)break}return e},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},s.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},s.prototype.ior=function(e){return m((this.negative|e.negative)==0),this.iuor(e)},s.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},s.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},s.prototype.iuand=function(e){var r;r=this.length>e.length?e:this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=r.length,this.strip()},s.prototype.iand=function(e){return m((this.negative|e.negative)==0),this.iuand(e)},s.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},s.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},s.prototype.iuxor=function(e){var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=r.words[n]^i.words[n];if(this!==r)for(;n<r.length;n++)this.words[n]=r.words[n];return this.length=r.length,this.strip()},s.prototype.ixor=function(e){return m((this.negative|e.negative)==0),this.iuxor(e)},s.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},s.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},s.prototype.inotn=function(e){m(typeof e=="number"&&e>=0);var r=0|Math.ceil(e/26),i=e%26;this._expand(r),i>0&&r--;for(var n=0;n<r;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},s.prototype.notn=function(e){return this.clone().inotn(e)},s.prototype.setn=function(e,r){m(typeof e=="number"&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=r?this.words[i]|1<<n:this.words[i]&~(1<<n),this.strip()},s.prototype.iadd=function(e){var r,i,n;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var t=0,o=0;o<n.length;o++)r=(0|i.words[o])+(0|n.words[o])+t,this.words[o]=67108863&r,t=r>>>26;for(;t!==0&&o<i.length;o++)r=(0|i.words[o])+t,this.words[o]=67108863&r,t=r>>>26;if(this.length=i.length,t!==0)this.words[this.length]=t,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},s.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},s.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,t=this.cmp(e);if(t===0)return this.negative=0,this.length=1,this.words[0]=0,this;t>0?(i=this,n=e):(i=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(r=(0|i.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&r;for(;o!==0&&a<i.length;a++)o=(r=(0|i.words[a])+o)>>26,this.words[a]=67108863&r;if(o===0&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(e){return this.clone().isub(e)};var b=function(e,r,i){var n,t,o,a=e.words,T=r.words,C=i.words,N=0,O=0|a[0],R=8191&O,F=O>>>13,Z=0|a[1],ie=8191&Z,D=Z>>>13,Y=0|a[2],z=8191&Y,W=Y>>>13,ae=0|a[3],re=8191&ae,le=ae>>>13,ke=0|a[4],ge=8191&ke,be=ke>>>13,je=0|a[5],xe=8191&je,Ae=je>>>13,X=0|a[6],ee=8191&X,U=X>>>13,V=0|a[7],q=8191&V,ne=V>>>13,fe=0|a[8],he=8191&fe,me=fe>>>13,it=0|a[9],_e=8191&it,Te=it>>>13,ft=0|T[0],Se=8191&ft,Ge=ft>>>13,Ct=0|T[1],Pe=8191&Ct,Ve=Ct>>>13,Nt=0|T[2],Re=8191&Nt,Ke=Nt>>>13,yt=0|T[3],Be=8191&yt,We=yt>>>13,St=0|T[4],Ne=8191&St,Ze=St>>>13,It=0|T[5],Le=8191&It,Xe=It>>>13,Dt=0|T[6],De=8191&Dt,Qe=Dt>>>13,zt=0|T[7],qe=8191&zt,Je=zt>>>13,$t=0|T[8],Fe=8191&$t,tt=$t>>>13,Vt=0|T[9],Ue=8191&Vt,et=Vt>>>13;i.negative=e.negative^r.negative,i.length=19;var Tt=(N+(n=Math.imul(R,Se))|0)+((8191&(t=(t=Math.imul(R,Ge))+Math.imul(F,Se)|0))<<13)|0;N=((o=Math.imul(F,Ge))+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(ie,Se),t=(t=Math.imul(ie,Ge))+Math.imul(D,Se)|0,o=Math.imul(D,Ge);var Rt=(N+(n=n+Math.imul(R,Pe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ve)|0)+Math.imul(F,Pe)|0))<<13)|0;N=((o=o+Math.imul(F,Ve)|0)+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(z,Se),t=(t=Math.imul(z,Ge))+Math.imul(W,Se)|0,o=Math.imul(W,Ge),n=n+Math.imul(ie,Pe)|0,t=(t=t+Math.imul(ie,Ve)|0)+Math.imul(D,Pe)|0,o=o+Math.imul(D,Ve)|0;var Gt=(N+(n=n+Math.imul(R,Re)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ke)|0)+Math.imul(F,Re)|0))<<13)|0;N=((o=o+Math.imul(F,Ke)|0)+(t>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,n=Math.imul(re,Se),t=(t=Math.imul(re,Ge))+Math.imul(le,Se)|0,o=Math.imul(le,Ge),n=n+Math.imul(z,Pe)|0,t=(t=t+Math.imul(z,Ve)|0)+Math.imul(W,Pe)|0,o=o+Math.imul(W,Ve)|0,n=n+Math.imul(ie,Re)|0,t=(t=t+Math.imul(ie,Ke)|0)+Math.imul(D,Re)|0,o=o+Math.imul(D,Ke)|0;var an=(N+(n=n+Math.imul(R,Be)|0)|0)+((8191&(t=(t=t+Math.imul(R,We)|0)+Math.imul(F,Be)|0))<<13)|0;N=((o=o+Math.imul(F,We)|0)+(t>>>13)|0)+(an>>>26)|0,an&=67108863,n=Math.imul(ge,Se),t=(t=Math.imul(ge,Ge))+Math.imul(be,Se)|0,o=Math.imul(be,Ge),n=n+Math.imul(re,Pe)|0,t=(t=t+Math.imul(re,Ve)|0)+Math.imul(le,Pe)|0,o=o+Math.imul(le,Ve)|0,n=n+Math.imul(z,Re)|0,t=(t=t+Math.imul(z,Ke)|0)+Math.imul(W,Re)|0,o=o+Math.imul(W,Ke)|0,n=n+Math.imul(ie,Be)|0,t=(t=t+Math.imul(ie,We)|0)+Math.imul(D,Be)|0,o=o+Math.imul(D,We)|0;var rn=(N+(n=n+Math.imul(R,Ne)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ze)|0)+Math.imul(F,Ne)|0))<<13)|0;N=((o=o+Math.imul(F,Ze)|0)+(t>>>13)|0)+(rn>>>26)|0,rn&=67108863,n=Math.imul(xe,Se),t=(t=Math.imul(xe,Ge))+Math.imul(Ae,Se)|0,o=Math.imul(Ae,Ge),n=n+Math.imul(ge,Pe)|0,t=(t=t+Math.imul(ge,Ve)|0)+Math.imul(be,Pe)|0,o=o+Math.imul(be,Ve)|0,n=n+Math.imul(re,Re)|0,t=(t=t+Math.imul(re,Ke)|0)+Math.imul(le,Re)|0,o=o+Math.imul(le,Ke)|0,n=n+Math.imul(z,Be)|0,t=(t=t+Math.imul(z,We)|0)+Math.imul(W,Be)|0,o=o+Math.imul(W,We)|0,n=n+Math.imul(ie,Ne)|0,t=(t=t+Math.imul(ie,Ze)|0)+Math.imul(D,Ne)|0,o=o+Math.imul(D,Ze)|0;var un=(N+(n=n+Math.imul(R,Le)|0)|0)+((8191&(t=(t=t+Math.imul(R,Xe)|0)+Math.imul(F,Le)|0))<<13)|0;N=((o=o+Math.imul(F,Xe)|0)+(t>>>13)|0)+(un>>>26)|0,un&=67108863,n=Math.imul(ee,Se),t=(t=Math.imul(ee,Ge))+Math.imul(U,Se)|0,o=Math.imul(U,Ge),n=n+Math.imul(xe,Pe)|0,t=(t=t+Math.imul(xe,Ve)|0)+Math.imul(Ae,Pe)|0,o=o+Math.imul(Ae,Ve)|0,n=n+Math.imul(ge,Re)|0,t=(t=t+Math.imul(ge,Ke)|0)+Math.imul(be,Re)|0,o=o+Math.imul(be,Ke)|0,n=n+Math.imul(re,Be)|0,t=(t=t+Math.imul(re,We)|0)+Math.imul(le,Be)|0,o=o+Math.imul(le,We)|0,n=n+Math.imul(z,Ne)|0,t=(t=t+Math.imul(z,Ze)|0)+Math.imul(W,Ne)|0,o=o+Math.imul(W,Ze)|0,n=n+Math.imul(ie,Le)|0,t=(t=t+Math.imul(ie,Xe)|0)+Math.imul(D,Le)|0,o=o+Math.imul(D,Xe)|0;var cn=(N+(n=n+Math.imul(R,De)|0)|0)+((8191&(t=(t=t+Math.imul(R,Qe)|0)+Math.imul(F,De)|0))<<13)|0;N=((o=o+Math.imul(F,Qe)|0)+(t>>>13)|0)+(cn>>>26)|0,cn&=67108863,n=Math.imul(q,Se),t=(t=Math.imul(q,Ge))+Math.imul(ne,Se)|0,o=Math.imul(ne,Ge),n=n+Math.imul(ee,Pe)|0,t=(t=t+Math.imul(ee,Ve)|0)+Math.imul(U,Pe)|0,o=o+Math.imul(U,Ve)|0,n=n+Math.imul(xe,Re)|0,t=(t=t+Math.imul(xe,Ke)|0)+Math.imul(Ae,Re)|0,o=o+Math.imul(Ae,Ke)|0,n=n+Math.imul(ge,Be)|0,t=(t=t+Math.imul(ge,We)|0)+Math.imul(be,Be)|0,o=o+Math.imul(be,We)|0,n=n+Math.imul(re,Ne)|0,t=(t=t+Math.imul(re,Ze)|0)+Math.imul(le,Ne)|0,o=o+Math.imul(le,Ze)|0,n=n+Math.imul(z,Le)|0,t=(t=t+Math.imul(z,Xe)|0)+Math.imul(W,Le)|0,o=o+Math.imul(W,Xe)|0,n=n+Math.imul(ie,De)|0,t=(t=t+Math.imul(ie,Qe)|0)+Math.imul(D,De)|0,o=o+Math.imul(D,Qe)|0;var ln=(N+(n=n+Math.imul(R,qe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Je)|0)+Math.imul(F,qe)|0))<<13)|0;N=((o=o+Math.imul(F,Je)|0)+(t>>>13)|0)+(ln>>>26)|0,ln&=67108863,n=Math.imul(he,Se),t=(t=Math.imul(he,Ge))+Math.imul(me,Se)|0,o=Math.imul(me,Ge),n=n+Math.imul(q,Pe)|0,t=(t=t+Math.imul(q,Ve)|0)+Math.imul(ne,Pe)|0,o=o+Math.imul(ne,Ve)|0,n=n+Math.imul(ee,Re)|0,t=(t=t+Math.imul(ee,Ke)|0)+Math.imul(U,Re)|0,o=o+Math.imul(U,Ke)|0,n=n+Math.imul(xe,Be)|0,t=(t=t+Math.imul(xe,We)|0)+Math.imul(Ae,Be)|0,o=o+Math.imul(Ae,We)|0,n=n+Math.imul(ge,Ne)|0,t=(t=t+Math.imul(ge,Ze)|0)+Math.imul(be,Ne)|0,o=o+Math.imul(be,Ze)|0,n=n+Math.imul(re,Le)|0,t=(t=t+Math.imul(re,Xe)|0)+Math.imul(le,Le)|0,o=o+Math.imul(le,Xe)|0,n=n+Math.imul(z,De)|0,t=(t=t+Math.imul(z,Qe)|0)+Math.imul(W,De)|0,o=o+Math.imul(W,Qe)|0,n=n+Math.imul(ie,qe)|0,t=(t=t+Math.imul(ie,Je)|0)+Math.imul(D,qe)|0,o=o+Math.imul(D,Je)|0;var hn=(N+(n=n+Math.imul(R,Fe)|0)|0)+((8191&(t=(t=t+Math.imul(R,tt)|0)+Math.imul(F,Fe)|0))<<13)|0;N=((o=o+Math.imul(F,tt)|0)+(t>>>13)|0)+(hn>>>26)|0,hn&=67108863,n=Math.imul(_e,Se),t=(t=Math.imul(_e,Ge))+Math.imul(Te,Se)|0,o=Math.imul(Te,Ge),n=n+Math.imul(he,Pe)|0,t=(t=t+Math.imul(he,Ve)|0)+Math.imul(me,Pe)|0,o=o+Math.imul(me,Ve)|0,n=n+Math.imul(q,Re)|0,t=(t=t+Math.imul(q,Ke)|0)+Math.imul(ne,Re)|0,o=o+Math.imul(ne,Ke)|0,n=n+Math.imul(ee,Be)|0,t=(t=t+Math.imul(ee,We)|0)+Math.imul(U,Be)|0,o=o+Math.imul(U,We)|0,n=n+Math.imul(xe,Ne)|0,t=(t=t+Math.imul(xe,Ze)|0)+Math.imul(Ae,Ne)|0,o=o+Math.imul(Ae,Ze)|0,n=n+Math.imul(ge,Le)|0,t=(t=t+Math.imul(ge,Xe)|0)+Math.imul(be,Le)|0,o=o+Math.imul(be,Xe)|0,n=n+Math.imul(re,De)|0,t=(t=t+Math.imul(re,Qe)|0)+Math.imul(le,De)|0,o=o+Math.imul(le,Qe)|0,n=n+Math.imul(z,qe)|0,t=(t=t+Math.imul(z,Je)|0)+Math.imul(W,qe)|0,o=o+Math.imul(W,Je)|0,n=n+Math.imul(ie,Fe)|0,t=(t=t+Math.imul(ie,tt)|0)+Math.imul(D,Fe)|0,o=o+Math.imul(D,tt)|0;var fn=(N+(n=n+Math.imul(R,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(R,et)|0)+Math.imul(F,Ue)|0))<<13)|0;N=((o=o+Math.imul(F,et)|0)+(t>>>13)|0)+(fn>>>26)|0,fn&=67108863,n=Math.imul(_e,Pe),t=(t=Math.imul(_e,Ve))+Math.imul(Te,Pe)|0,o=Math.imul(Te,Ve),n=n+Math.imul(he,Re)|0,t=(t=t+Math.imul(he,Ke)|0)+Math.imul(me,Re)|0,o=o+Math.imul(me,Ke)|0,n=n+Math.imul(q,Be)|0,t=(t=t+Math.imul(q,We)|0)+Math.imul(ne,Be)|0,o=o+Math.imul(ne,We)|0,n=n+Math.imul(ee,Ne)|0,t=(t=t+Math.imul(ee,Ze)|0)+Math.imul(U,Ne)|0,o=o+Math.imul(U,Ze)|0,n=n+Math.imul(xe,Le)|0,t=(t=t+Math.imul(xe,Xe)|0)+Math.imul(Ae,Le)|0,o=o+Math.imul(Ae,Xe)|0,n=n+Math.imul(ge,De)|0,t=(t=t+Math.imul(ge,Qe)|0)+Math.imul(be,De)|0,o=o+Math.imul(be,Qe)|0,n=n+Math.imul(re,qe)|0,t=(t=t+Math.imul(re,Je)|0)+Math.imul(le,qe)|0,o=o+Math.imul(le,Je)|0,n=n+Math.imul(z,Fe)|0,t=(t=t+Math.imul(z,tt)|0)+Math.imul(W,Fe)|0,o=o+Math.imul(W,tt)|0;var pn=(N+(n=n+Math.imul(ie,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ie,et)|0)+Math.imul(D,Ue)|0))<<13)|0;N=((o=o+Math.imul(D,et)|0)+(t>>>13)|0)+(pn>>>26)|0,pn&=67108863,n=Math.imul(_e,Re),t=(t=Math.imul(_e,Ke))+Math.imul(Te,Re)|0,o=Math.imul(Te,Ke),n=n+Math.imul(he,Be)|0,t=(t=t+Math.imul(he,We)|0)+Math.imul(me,Be)|0,o=o+Math.imul(me,We)|0,n=n+Math.imul(q,Ne)|0,t=(t=t+Math.imul(q,Ze)|0)+Math.imul(ne,Ne)|0,o=o+Math.imul(ne,Ze)|0,n=n+Math.imul(ee,Le)|0,t=(t=t+Math.imul(ee,Xe)|0)+Math.imul(U,Le)|0,o=o+Math.imul(U,Xe)|0,n=n+Math.imul(xe,De)|0,t=(t=t+Math.imul(xe,Qe)|0)+Math.imul(Ae,De)|0,o=o+Math.imul(Ae,Qe)|0,n=n+Math.imul(ge,qe)|0,t=(t=t+Math.imul(ge,Je)|0)+Math.imul(be,qe)|0,o=o+Math.imul(be,Je)|0,n=n+Math.imul(re,Fe)|0,t=(t=t+Math.imul(re,tt)|0)+Math.imul(le,Fe)|0,o=o+Math.imul(le,tt)|0;var Xt=(N+(n=n+Math.imul(z,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(z,et)|0)+Math.imul(W,Ue)|0))<<13)|0;N=((o=o+Math.imul(W,et)|0)+(t>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,n=Math.imul(_e,Be),t=(t=Math.imul(_e,We))+Math.imul(Te,Be)|0,o=Math.imul(Te,We),n=n+Math.imul(he,Ne)|0,t=(t=t+Math.imul(he,Ze)|0)+Math.imul(me,Ne)|0,o=o+Math.imul(me,Ze)|0,n=n+Math.imul(q,Le)|0,t=(t=t+Math.imul(q,Xe)|0)+Math.imul(ne,Le)|0,o=o+Math.imul(ne,Xe)|0,n=n+Math.imul(ee,De)|0,t=(t=t+Math.imul(ee,Qe)|0)+Math.imul(U,De)|0,o=o+Math.imul(U,Qe)|0,n=n+Math.imul(xe,qe)|0,t=(t=t+Math.imul(xe,Je)|0)+Math.imul(Ae,qe)|0,o=o+Math.imul(Ae,Je)|0,n=n+Math.imul(ge,Fe)|0,t=(t=t+Math.imul(ge,tt)|0)+Math.imul(be,Fe)|0,o=o+Math.imul(be,tt)|0;var dn=(N+(n=n+Math.imul(re,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(re,et)|0)+Math.imul(le,Ue)|0))<<13)|0;N=((o=o+Math.imul(le,et)|0)+(t>>>13)|0)+(dn>>>26)|0,dn&=67108863,n=Math.imul(_e,Ne),t=(t=Math.imul(_e,Ze))+Math.imul(Te,Ne)|0,o=Math.imul(Te,Ze),n=n+Math.imul(he,Le)|0,t=(t=t+Math.imul(he,Xe)|0)+Math.imul(me,Le)|0,o=o+Math.imul(me,Xe)|0,n=n+Math.imul(q,De)|0,t=(t=t+Math.imul(q,Qe)|0)+Math.imul(ne,De)|0,o=o+Math.imul(ne,Qe)|0,n=n+Math.imul(ee,qe)|0,t=(t=t+Math.imul(ee,Je)|0)+Math.imul(U,qe)|0,o=o+Math.imul(U,Je)|0,n=n+Math.imul(xe,Fe)|0,t=(t=t+Math.imul(xe,tt)|0)+Math.imul(Ae,Fe)|0,o=o+Math.imul(Ae,tt)|0;var vn=(N+(n=n+Math.imul(ge,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ge,et)|0)+Math.imul(be,Ue)|0))<<13)|0;N=((o=o+Math.imul(be,et)|0)+(t>>>13)|0)+(vn>>>26)|0,vn&=67108863,n=Math.imul(_e,Le),t=(t=Math.imul(_e,Xe))+Math.imul(Te,Le)|0,o=Math.imul(Te,Xe),n=n+Math.imul(he,De)|0,t=(t=t+Math.imul(he,Qe)|0)+Math.imul(me,De)|0,o=o+Math.imul(me,Qe)|0,n=n+Math.imul(q,qe)|0,t=(t=t+Math.imul(q,Je)|0)+Math.imul(ne,qe)|0,o=o+Math.imul(ne,Je)|0,n=n+Math.imul(ee,Fe)|0,t=(t=t+Math.imul(ee,tt)|0)+Math.imul(U,Fe)|0,o=o+Math.imul(U,tt)|0;var tn=(N+(n=n+Math.imul(xe,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(xe,et)|0)+Math.imul(Ae,Ue)|0))<<13)|0;N=((o=o+Math.imul(Ae,et)|0)+(t>>>13)|0)+(tn>>>26)|0,tn&=67108863,n=Math.imul(_e,De),t=(t=Math.imul(_e,Qe))+Math.imul(Te,De)|0,o=Math.imul(Te,Qe),n=n+Math.imul(he,qe)|0,t=(t=t+Math.imul(he,Je)|0)+Math.imul(me,qe)|0,o=o+Math.imul(me,Je)|0,n=n+Math.imul(q,Fe)|0,t=(t=t+Math.imul(q,tt)|0)+Math.imul(ne,Fe)|0,o=o+Math.imul(ne,tt)|0;var nn=(N+(n=n+Math.imul(ee,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ee,et)|0)+Math.imul(U,Ue)|0))<<13)|0;N=((o=o+Math.imul(U,et)|0)+(t>>>13)|0)+(nn>>>26)|0,nn&=67108863,n=Math.imul(_e,qe),t=(t=Math.imul(_e,Je))+Math.imul(Te,qe)|0,o=Math.imul(Te,Je),n=n+Math.imul(he,Fe)|0,t=(t=t+Math.imul(he,tt)|0)+Math.imul(me,Fe)|0,o=o+Math.imul(me,tt)|0;var Jt=(N+(n=n+Math.imul(q,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(q,et)|0)+Math.imul(ne,Ue)|0))<<13)|0;N=((o=o+Math.imul(ne,et)|0)+(t>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,n=Math.imul(_e,Fe),t=(t=Math.imul(_e,tt))+Math.imul(Te,Fe)|0,o=Math.imul(Te,tt);var mn=(N+(n=n+Math.imul(he,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(he,et)|0)+Math.imul(me,Ue)|0))<<13)|0;N=((o=o+Math.imul(me,et)|0)+(t>>>13)|0)+(mn>>>26)|0,mn&=67108863;var on=(N+(n=Math.imul(_e,Ue))|0)+((8191&(t=(t=Math.imul(_e,et))+Math.imul(Te,Ue)|0))<<13)|0;return N=((o=Math.imul(Te,et))+(t>>>13)|0)+(on>>>26)|0,on&=67108863,C[0]=Tt,C[1]=Rt,C[2]=Gt,C[3]=an,C[4]=rn,C[5]=un,C[6]=cn,C[7]=ln,C[8]=hn,C[9]=fn,C[10]=pn,C[11]=Xt,C[12]=dn,C[13]=vn,C[14]=tn,C[15]=nn,C[16]=Jt,C[17]=mn,C[18]=on,N!==0&&(C[19]=N,i.length++),i};function k(e,r,i){return new A().mulp(e,r,i)}function A(e,r){this.x=e,this.y=r}Math.imul||(b=w),s.prototype.mulTo=function(e,r){var i,n=this.length+e.length;return i=this.length===10&&e.length===10?b(this,e,r):n<63?w(this,e,r):n<1024?function(t,o,a){a.negative=o.negative^t.negative,a.length=t.length+o.length;for(var T=0,C=0,N=0;N<a.length-1;N++){var O=C;C=0;for(var R=67108863&T,F=Math.min(N,o.length-1),Z=Math.max(0,N-t.length+1);Z<=F;Z++){var ie=N-Z,D=(0|t.words[ie])*(0|o.words[Z]),Y=67108863&D;R=67108863&(Y=Y+R|0),C+=(O=(O=O+(D/67108864|0)|0)+(Y>>>26)|0)>>>26,O&=67108863}a.words[N]=R,T=O,O=C}return T!==0?a.words[N]=T:a.length--,a.strip()}(this,e,r):k(this,e,r),i},A.prototype.makeRBT=function(e){for(var r=new Array(e),i=s.prototype._countBits(e)-1,n=0;n<e;n++)r[n]=this.revBin(n,i,e);return r},A.prototype.revBin=function(e,r,i){if(e===0||e===i-1)return e;for(var n=0,t=0;t<r;t++)n|=(1&e)<<r-t-1,e>>=1;return n},A.prototype.permute=function(e,r,i,n,t,o){for(var a=0;a<o;a++)n[a]=r[e[a]],t[a]=i[e[a]]},A.prototype.transform=function(e,r,i,n,t,o){this.permute(o,e,r,i,n,t);for(var a=1;a<t;a<<=1)for(var T=a<<1,C=Math.cos(2*Math.PI/T),N=Math.sin(2*Math.PI/T),O=0;O<t;O+=T)for(var R=C,F=N,Z=0;Z<a;Z++){var ie=i[O+Z],D=n[O+Z],Y=i[O+Z+a],z=n[O+Z+a],W=R*Y-F*z;z=R*z+F*Y,Y=W,i[O+Z]=ie+Y,n[O+Z]=D+z,i[O+Z+a]=ie-Y,n[O+Z+a]=D-z,Z!==T&&(W=C*R-N*F,F=C*F+N*R,R=W)}},A.prototype.guessLen13b=function(e,r){var i=1|Math.max(r,e),n=1&i,t=0;for(i=i/2|0;i;i>>>=1)t++;return 1<<t+1+n},A.prototype.conjugate=function(e,r,i){if(!(i<=1))for(var n=0;n<i/2;n++){var t=e[n];e[n]=e[i-n-1],e[i-n-1]=t,t=r[n],r[n]=-r[i-n-1],r[i-n-1]=-t}},A.prototype.normalize13b=function(e,r){for(var i=0,n=0;n<r/2;n++){var t=8192*Math.round(e[2*n+1]/r)+Math.round(e[2*n]/r)+i;e[n]=67108863&t,i=t<67108864?0:t/67108864|0}return e},A.prototype.convert13b=function(e,r,i,n){for(var t=0,o=0;o<r;o++)t+=0|e[o],i[2*o]=8191&t,t>>>=13,i[2*o+1]=8191&t,t>>>=13;for(o=2*r;o<n;++o)i[o]=0;m(t===0),m((-8192&t)==0)},A.prototype.stub=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=0;return r},A.prototype.mulp=function(e,r,i){var n=2*this.guessLen13b(e.length,r.length),t=this.makeRBT(n),o=this.stub(n),a=new Array(n),T=new Array(n),C=new Array(n),N=new Array(n),O=new Array(n),R=new Array(n),F=i.words;F.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(r.words,r.length,N,n),this.transform(a,o,T,C,n,t),this.transform(N,o,O,R,n,t);for(var Z=0;Z<n;Z++){var ie=T[Z]*O[Z]-C[Z]*R[Z];C[Z]=T[Z]*R[Z]+C[Z]*O[Z],T[Z]=ie}return this.conjugate(T,C,n),this.transform(T,C,F,o,n,t),this.conjugate(F,o,n),this.normalize13b(F,n),i.negative=e.negative^r.negative,i.length=e.length+r.length,i.strip()},s.prototype.mul=function(e){var r=new s(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},s.prototype.mulf=function(e){var r=new s(null);return r.words=new Array(this.length+e.length),k(this,e,r)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){m(typeof e=="number"),m(e<67108864);for(var r=0,i=0;i<this.length;i++){var n=(0|this.words[i])*e,t=(67108863&n)+(67108863&r);r>>=26,r+=n/67108864|0,r+=t>>>26,this.words[i]=67108863&t}return r!==0&&(this.words[i]=r,this.length++),this},s.prototype.muln=function(e){return this.clone().imuln(e)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(e){var r=function(o){for(var a=new Array(o.bitLength()),T=0;T<a.length;T++){var C=T/26|0,N=T%26;a[T]=(o.words[C]&1<<N)>>>N}return a}(e);if(r.length===0)return new s(1);for(var i=this,n=0;n<r.length&&r[n]===0;n++,i=i.sqr());if(++n<r.length)for(var t=i.sqr();n<r.length;n++,t=t.sqr())r[n]!==0&&(i=i.mul(t));return i},s.prototype.iushln=function(e){m(typeof e=="number"&&e>=0);var r,i=e%26,n=(e-i)/26,t=67108863>>>26-i<<26-i;if(i!==0){var o=0;for(r=0;r<this.length;r++){var a=this.words[r]&t,T=(0|this.words[r])-a<<i;this.words[r]=T|o,o=a>>>26-i}o&&(this.words[r]=o,this.length++)}if(n!==0){for(r=this.length-1;r>=0;r--)this.words[r+n]=this.words[r];for(r=0;r<n;r++)this.words[r]=0;this.length+=n}return this.strip()},s.prototype.ishln=function(e){return m(this.negative===0),this.iushln(e)},s.prototype.iushrn=function(e,r,i){var n;m(typeof e=="number"&&e>=0),n=r?(r-r%26)/26:0;var t=e%26,o=Math.min((e-t)/26,this.length),a=67108863^67108863>>>t<<t,T=i;if(n-=o,n=Math.max(0,n),T){for(var C=0;C<o;C++)T.words[C]=this.words[C];T.length=o}if(o!==0)if(this.length>o)for(this.length-=o,C=0;C<this.length;C++)this.words[C]=this.words[C+o];else this.words[0]=0,this.length=1;var N=0;for(C=this.length-1;C>=0&&(N!==0||C>=n);C--){var O=0|this.words[C];this.words[C]=N<<26-t|O>>>t,N=O&a}return T&&N!==0&&(T.words[T.length++]=N),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(e,r,i){return m(this.negative===0),this.iushrn(e,r,i)},s.prototype.shln=function(e){return this.clone().ishln(e)},s.prototype.ushln=function(e){return this.clone().iushln(e)},s.prototype.shrn=function(e){return this.clone().ishrn(e)},s.prototype.ushrn=function(e){return this.clone().iushrn(e)},s.prototype.testn=function(e){m(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,n=1<<r;return!(this.length<=i||!(this.words[i]&n))},s.prototype.imaskn=function(e){m(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(r!==0&&i++,this.length=Math.min(i,this.length),r!==0){var n=67108863^67108863>>>r<<r;this.words[this.length-1]&=n}return this.strip()},s.prototype.maskn=function(e){return this.clone().imaskn(e)},s.prototype.iaddn=function(e){return m(typeof e=="number"),m(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},s.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},s.prototype.isubn=function(e){if(m(typeof e=="number"),m(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},s.prototype.addn=function(e){return this.clone().iaddn(e)},s.prototype.subn=function(e){return this.clone().isubn(e)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(e,r,i){var n,t,o=e.length+i;this._expand(o);var a=0;for(n=0;n<e.length;n++){t=(0|this.words[n+i])+a;var T=(0|e.words[n])*r;a=((t-=67108863&T)>>26)-(T/67108864|0),this.words[n+i]=67108863&t}for(;n<this.length-i;n++)a=(t=(0|this.words[n+i])+a)>>26,this.words[n+i]=67108863&t;if(a===0)return this.strip();for(m(a===-1),a=0,n=0;n<this.length;n++)a=(t=-(0|this.words[n])+a)>>26,this.words[n]=67108863&t;return this.negative=1,this.strip()},s.prototype._wordDiv=function(e,r){var i=(this.length,e.length),n=this.clone(),t=e,o=0|t.words[t.length-1];(i=26-this._countBits(o))!=0&&(t=t.ushln(i),n.iushln(i),o=0|t.words[t.length-1]);var a,T=n.length-t.length;if(r!=="mod"){(a=new s(null)).length=T+1,a.words=new Array(a.length);for(var C=0;C<a.length;C++)a.words[C]=0}var N=n.clone()._ishlnsubmul(t,1,T);N.negative===0&&(n=N,a&&(a.words[T]=1));for(var O=T-1;O>=0;O--){var R=67108864*(0|n.words[t.length+O])+(0|n.words[t.length+O-1]);for(R=Math.min(R/o|0,67108863),n._ishlnsubmul(t,R,O);n.negative!==0;)R--,n.negative=0,n._ishlnsubmul(t,1,O),n.isZero()||(n.negative^=1);a&&(a.words[O]=R)}return a&&a.strip(),n.strip(),r!=="div"&&i!==0&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(e,r,i){return m(!e.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:this.negative!==0&&e.negative===0?(o=this.neg().divmod(e,r),r!=="mod"&&(n=o.div.neg()),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.iadd(e)),{div:n,mod:t}):this.negative===0&&e.negative!==0?(o=this.divmod(e.neg(),r),r!=="mod"&&(n=o.div.neg()),{div:n,mod:o.mod}):this.negative&e.negative?(o=this.neg().divmod(e.neg(),r),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.isub(e)),{div:o.div,mod:t}):e.length>this.length||this.cmp(e)<0?{div:new s(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new s(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modn(e.words[0]))}:this._wordDiv(e,r);var n,t,o},s.prototype.div=function(e){return this.divmod(e,"div",!1).div},s.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},s.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},s.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var i=r.div.negative!==0?r.mod.isub(e):r.mod,n=e.ushrn(1),t=e.andln(1),o=i.cmp(n);return o<0||t===1&&o===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},s.prototype.modn=function(e){m(e<=67108863);for(var r=67108864%e,i=0,n=this.length-1;n>=0;n--)i=(r*i+(0|this.words[n]))%e;return i},s.prototype.idivn=function(e){m(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*r;this.words[i]=n/e|0,r=n%e}return this.strip()},s.prototype.divn=function(e){return this.clone().idivn(e)},s.prototype.egcd=function(e){m(e.negative===0),m(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n=new s(1),t=new s(0),o=new s(0),a=new s(1),T=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++T;for(var C=i.clone(),N=r.clone();!r.isZero();){for(var O=0,R=1;!(r.words[0]&R)&&O<26;++O,R<<=1);if(O>0)for(r.iushrn(O);O-- >0;)(n.isOdd()||t.isOdd())&&(n.iadd(C),t.isub(N)),n.iushrn(1),t.iushrn(1);for(var F=0,Z=1;!(i.words[0]&Z)&&F<26;++F,Z<<=1);if(F>0)for(i.iushrn(F);F-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(C),a.isub(N)),o.iushrn(1),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),n.isub(o),t.isub(a)):(i.isub(r),o.isub(n),a.isub(t))}return{a:o,b:a,gcd:i.iushln(T)}},s.prototype._invmp=function(e){m(e.negative===0),m(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n,t=new s(1),o=new s(0),a=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var T=0,C=1;!(r.words[0]&C)&&T<26;++T,C<<=1);if(T>0)for(r.iushrn(T);T-- >0;)t.isOdd()&&t.iadd(a),t.iushrn(1);for(var N=0,O=1;!(i.words[0]&O)&&N<26;++N,O<<=1);if(N>0)for(i.iushrn(N);N-- >0;)o.isOdd()&&o.iadd(a),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),t.isub(o)):(i.isub(r),o.isub(t))}return(n=r.cmpn(1)===0?t:o).cmpn(0)<0&&n.iadd(e),n},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),i=e.clone();r.negative=0,i.negative=0;for(var n=0;r.isEven()&&i.isEven();n++)r.iushrn(1),i.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var t=r.cmp(i);if(t<0){var o=r;r=i,i=o}else if(t===0||i.cmpn(1)===0)break;r.isub(i)}return i.iushln(n)},s.prototype.invm=function(e){return this.egcd(e).a.umod(e)},s.prototype.isEven=function(){return(1&this.words[0])==0},s.prototype.isOdd=function(){return(1&this.words[0])==1},s.prototype.andln=function(e){return this.words[0]&e},s.prototype.bincn=function(e){m(typeof e=="number");var r=e%26,i=(e-r)/26,n=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var t=n,o=i;t!==0&&o<this.length;o++){var a=0|this.words[o];t=(a+=t)>>>26,a&=67108863,this.words[o]=a}return t!==0&&(this.words[o]=t,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(e){var r,i=e<0;if(this.negative!==0&&!i)return-1;if(this.negative===0&&i)return 1;if(this.strip(),this.length>1)r=1;else{i&&(e=-e),m(e<=67108863,"Number is too big");var n=0|this.words[0];r=n===e?0:n<e?-1:1}return this.negative!==0?0|-r:r},s.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?0|-r:r},s.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],t=0|e.words[i];if(n!==t){n<t?r=-1:n>t&&(r=1);break}}return r},s.prototype.gtn=function(e){return this.cmpn(e)===1},s.prototype.gt=function(e){return this.cmp(e)===1},s.prototype.gten=function(e){return this.cmpn(e)>=0},s.prototype.gte=function(e){return this.cmp(e)>=0},s.prototype.ltn=function(e){return this.cmpn(e)===-1},s.prototype.lt=function(e){return this.cmp(e)===-1},s.prototype.lten=function(e){return this.cmpn(e)<=0},s.prototype.lte=function(e){return this.cmp(e)<=0},s.prototype.eqn=function(e){return this.cmpn(e)===0},s.prototype.eq=function(e){return this.cmp(e)===0},s.red=function(e){return new J(e)},s.prototype.toRed=function(e){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(e){return this.red=e,this},s.prototype.forceRed=function(e){return m(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return m(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};function j(e,r){this.name=e,this.p=new s(r,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function P(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function B(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function $(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function te(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(e){if(typeof e=="string"){var r=s._prime(e);this.m=r.p,this.prime=r}else m(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function oe(e){J.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}j.prototype._tmp=function(){var e=new s(null);return e.words=new Array(Math.ceil(this.n/13)),e},j.prototype.ireduce=function(e){var r,i=e;do this.split(i,this.tmp),r=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength();while(r>this.n);var n=r<this.n?-1:i.ucmp(this.p);return n===0?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):i.strip!==void 0?i.strip():i._strip(),i},j.prototype.split=function(e,r){e.iushrn(this.n,0,r)},j.prototype.imulK=function(e){return e.imul(this.k)},E(P,j),P.prototype.split=function(e,r){for(var i=4194303,n=Math.min(e.length,9),t=0;t<n;t++)r.words[t]=e.words[t];if(r.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(r.words[r.length++]=o&i,t=10;t<e.length;t++){var a=0|e.words[t];e.words[t-10]=(a&i)<<4|o>>>22,o=a}o>>>=22,e.words[t-10]=o,o===0&&e.length>10?e.length-=10:e.length-=9},P.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,i=0;i<e.length;i++){var n=0|e.words[i];r+=977*n,e.words[i]=67108863&r,r=64*n+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e},E(B,j),E($,j),E(te,j),te.prototype.imulK=function(e){for(var r=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+r,t=67108863&n;n>>>=26,e.words[i]=t,r=n}return r!==0&&(e.words[e.length++]=r),e},s._prime=function(e){if(x[e])return x[e];var r;if(e==="k256")r=new P;else if(e==="p224")r=new B;else if(e==="p192")r=new $;else{if(e!=="p25519")throw new Error("Unknown prime "+e);r=new te}return x[e]=r,r},J.prototype._verify1=function(e){m(e.negative===0,"red works only with positives"),m(e.red,"red works only with red numbers")},J.prototype._verify2=function(e,r){m((e.negative|r.negative)==0,"red works only with positives"),m(e.red&&e.red===r.red,"red works only with red numbers")},J.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},J.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},J.prototype.add=function(e,r){this._verify2(e,r);var i=e.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},J.prototype.iadd=function(e,r){this._verify2(e,r);var i=e.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},J.prototype.sub=function(e,r){this._verify2(e,r);var i=e.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},J.prototype.isub=function(e,r){this._verify2(e,r);var i=e.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},J.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},J.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},J.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},J.prototype.isqr=function(e){return this.imul(e,e.clone())},J.prototype.sqr=function(e){return this.mul(e,e)},J.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(m(r%2==1),r===3){var i=this.m.add(new s(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),t=0;!n.isZero()&&n.andln(1)===0;)t++,n.iushrn(1);m(!n.isZero());var o=new s(1).toRed(this),a=o.redNeg(),T=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new s(2*C*C).toRed(this);this.pow(C,T).cmp(a)!==0;)C.redIAdd(a);for(var N=this.pow(C,n),O=this.pow(e,n.addn(1).iushrn(1)),R=this.pow(e,n),F=t;R.cmp(o)!==0;){for(var Z=R,ie=0;Z.cmp(o)!==0;ie++)Z=Z.redSqr();m(ie<F);var D=this.pow(N,new s(1).iushln(F-ie-1));O=O.redMul(D),N=D.redSqr(),R=R.redMul(N),F=ie}return O},J.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},J.prototype.pow=function(e,r){if(r.isZero())return new s(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var i=new Array(16);i[0]=new s(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var t=i[0],o=0,a=0,T=r.bitLength()%26;for(T===0&&(T=26),n=r.length-1;n>=0;n--){for(var C=r.words[n],N=T-1;N>=0;N--){var O=C>>N&1;t!==i[0]&&(t=this.sqr(t)),O!==0||o!==0?(o<<=1,o|=O,(++a==4||n===0&&N===0)&&(t=this.mul(t,i[o]),a=0,o=0)):a=0}T=26}return t},J.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},J.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},s.mont=function(e){return new oe(e)},E(oe,J),oe.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},oe.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},oe.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},oe.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new s(0)._forceRed(this);var i=e.mul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},oe.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(H=y.nmd(H),this)},3482:(H,_,y)=>{var M=y(5717),v=y(2318),m=y(9785),E=y(9072),s=y(1027);function p(c){s.call(this,"digest"),this._hash=c}M(p,s),p.prototype._update=function(c){this._hash.update(c)},p.prototype._final=function(){return this._hash.digest()},H.exports=function(c){return(c=c.toLowerCase())==="md5"?new v:c==="rmd160"||c==="ripemd160"?new m:new p(E(c))}},8028:(H,_,y)=>{var M=y(2318);H.exports=function(v){return new M().update(v).digest()}},8355:(H,_,y)=>{var M=y(5717),v=y(1031),m=y(1027),E=y(9509).Buffer,s=y(8028),p=y(9785),c=y(9072),l=E.alloc(128);function f(g,h){m.call(this,"digest"),typeof h=="string"&&(h=E.from(h));var u=g==="sha512"||g==="sha384"?128:64;this._alg=g,this._key=h,h.length>u?h=(g==="rmd160"?new p:c(g)).update(h).digest():h.length<u&&(h=E.concat([h,l],u));for(var w=this._ipad=E.allocUnsafe(u),b=this._opad=E.allocUnsafe(u),k=0;k<u;k++)w[k]=54^h[k],b[k]=92^h[k];this._hash=g==="rmd160"?new p:c(g),this._hash.update(w)}M(f,m),f.prototype._update=function(g){this._hash.update(g)},f.prototype._final=function(){var g=this._hash.digest();return(this._alg==="rmd160"?new p:c(this._alg)).update(this._opad).update(g).digest()},H.exports=function(g,h){return(g=g.toLowerCase())==="rmd160"||g==="ripemd160"?new f("rmd160",h):g==="md5"?new v(s,h):new f(g,h)}},1031:(H,_,y)=>{var M=y(5717),v=y(9509).Buffer,m=y(1027),E=v.alloc(128),s=64;function p(c,l){m.call(this,"digest"),typeof l=="string"&&(l=v.from(l)),this._alg=c,this._key=l,l.length>s?l=c(l):l.length<s&&(l=v.concat([l,E],s));for(var f=this._ipad=v.allocUnsafe(s),g=this._opad=v.allocUnsafe(s),h=0;h<s;h++)f[h]=54^l[h],g[h]=92^l[h];this._hash=[f]}M(p,m),p.prototype._update=function(c){this._hash.push(c)},p.prototype._final=function(){var c=this._alg(v.concat(this._hash));return this._alg(v.concat([this._opad,c]))},H.exports=p},5835:(H,_,y)=>{_.randomBytes=_.rng=_.pseudoRandomBytes=_.prng=y(1798),_.createHash=_.Hash=y(3482),_.createHmac=_.Hmac=y(8355);var M=y(6042),v=Object.keys(M),m=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(v);_.getHashes=function(){return m};var E=y(5632);_.pbkdf2=E.pbkdf2,_.pbkdf2Sync=E.pbkdf2Sync;var s=y(3614);_.Cipher=s.Cipher,_.createCipher=s.createCipher,_.Cipheriv=s.Cipheriv,_.createCipheriv=s.createCipheriv,_.Decipher=s.Decipher,_.createDecipher=s.createDecipher,_.Decipheriv=s.Decipheriv,_.createDecipheriv=s.createDecipheriv,_.getCiphers=s.getCiphers,_.listCiphers=s.listCiphers;var p=y(2607);_.DiffieHellmanGroup=p.DiffieHellmanGroup,_.createDiffieHellmanGroup=p.createDiffieHellmanGroup,_.getDiffieHellman=p.getDiffieHellman,_.createDiffieHellman=p.createDiffieHellman,_.DiffieHellman=p.DiffieHellman;var c=y(4743);_.createSign=c.createSign,_.Sign=c.Sign,_.createVerify=c.createVerify,_.Verify=c.Verify,_.createECDH=y(6393);var l=y(7900);_.publicEncrypt=l.publicEncrypt,_.privateEncrypt=l.privateEncrypt,_.publicDecrypt=l.publicDecrypt,_.privateDecrypt=l.privateDecrypt;var f=y(7963);_.randomFill=f.randomFill,_.randomFillSync=f.randomFillSync,_.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
|
70
|
+
`))},_.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}},4020:H=>{var _="%[a-f0-9]{2}",y=new RegExp("("+_+")|([^%]+?)","gi"),M=new RegExp("("+_+")+","gi");function v(E,s){try{return[decodeURIComponent(E.join(""))]}catch{}if(E.length===1)return E;s=s||1;var p=E.slice(0,s),c=E.slice(s);return Array.prototype.concat.call([],v(p),v(c))}function m(E){try{return decodeURIComponent(E)}catch{for(var s=E.match(y)||[],p=1;p<s.length;p++)s=(E=v(s,p).join("")).match(y)||[];return E}}H.exports=function(E){if(typeof E!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof E+"`");try{return E=E.replace(/\+/g," "),decodeURIComponent(E)}catch{return function(p){for(var c={"%FE%FF":"��","%FF%FE":"��"},l=M.exec(p);l;){try{c[l[0]]=decodeURIComponent(l[0])}catch{var f=m(l[0]);f!==l[0]&&(c[l[0]]=f)}l=M.exec(p)}c["%C2"]="�";for(var g=Object.keys(c),h=0;h<g.length;h++){var u=g[h];p=p.replace(new RegExp(u,"g"),c[u])}return p}(E)}}},4289:(H,_,y)=>{var M=y(2215),v=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",m=Object.prototype.toString,E=Array.prototype.concat,s=Object.defineProperty,p=y(1044)(),c=s&&p,l=function(g,h,u,w){if(h in g){if(w===!0){if(g[h]===u)return}else if(typeof(b=w)!="function"||m.call(b)!=="[object Function]"||!w())return}var b;c?s(g,h,{configurable:!0,enumerable:!1,value:u,writable:!0}):g[h]=u},f=function(g,h){var u=arguments.length>2?arguments[2]:{},w=M(h);v&&(w=E.call(w,Object.getOwnPropertySymbols(h)));for(var b=0;b<w.length;b+=1)l(g,w[b],h[w[b]],u[w[b]])};f.supportsDescriptors=!!c,H.exports=f},5251:(H,_,y)=>{_.utils=y(1278),_.Cipher=y(5756),_.DES=y(778),_.CBC=y(9051),_.EDE=y(651)},9051:(H,_,y)=>{var M=y(9746),v=y(5717),m={};function E(s){M.equal(s.length,8,"Invalid IV length"),this.iv=new Array(8);for(var p=0;p<this.iv.length;p++)this.iv[p]=s[p]}_.instantiate=function(s){function p(g){s.call(this,g),this._cbcInit()}v(p,s);for(var c=Object.keys(m),l=0;l<c.length;l++){var f=c[l];p.prototype[f]=m[f]}return p.create=function(g){return new p(g)},p},m._cbcInit=function(){var s=new E(this.options.iv);this._cbcState=s},m._update=function(s,p,c,l){var f=this._cbcState,g=this.constructor.super_.prototype,h=f.iv;if(this.type==="encrypt"){for(var u=0;u<this.blockSize;u++)h[u]^=s[p+u];for(g._update.call(this,h,0,c,l),u=0;u<this.blockSize;u++)h[u]=c[l+u]}else{for(g._update.call(this,s,p,c,l),u=0;u<this.blockSize;u++)c[l+u]^=h[u];for(u=0;u<this.blockSize;u++)h[u]=s[p+u]}}},5756:(H,_,y)=>{var M=y(9746);function v(m){this.options=m,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}H.exports=v,v.prototype._init=function(){},v.prototype.update=function(m){return m.length===0?[]:this.type==="decrypt"?this._updateDecrypt(m):this._updateEncrypt(m)},v.prototype._buffer=function(m,E){for(var s=Math.min(this.buffer.length-this.bufferOff,m.length-E),p=0;p<s;p++)this.buffer[this.bufferOff+p]=m[E+p];return this.bufferOff+=s,s},v.prototype._flushBuffer=function(m,E){return this._update(this.buffer,0,m,E),this.bufferOff=0,this.blockSize},v.prototype._updateEncrypt=function(m){var E=0,s=0,p=(this.bufferOff+m.length)/this.blockSize|0,c=new Array(p*this.blockSize);this.bufferOff!==0&&(E+=this._buffer(m,E),this.bufferOff===this.buffer.length&&(s+=this._flushBuffer(c,s)));for(var l=m.length-(m.length-E)%this.blockSize;E<l;E+=this.blockSize)this._update(m,E,c,s),s+=this.blockSize;for(;E<m.length;E++,this.bufferOff++)this.buffer[this.bufferOff]=m[E];return c},v.prototype._updateDecrypt=function(m){for(var E=0,s=0,p=Math.ceil((this.bufferOff+m.length)/this.blockSize)-1,c=new Array(p*this.blockSize);p>0;p--)E+=this._buffer(m,E),s+=this._flushBuffer(c,s);return E+=this._buffer(m,E),c},v.prototype.final=function(m){var E,s;return m&&(E=this.update(m)),s=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),E?E.concat(s):s},v.prototype._pad=function(m,E){if(E===0)return!1;for(;E<m.length;)m[E++]=0;return!0},v.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var m=new Array(this.blockSize);return this._update(this.buffer,0,m,0),m},v.prototype._unpad=function(m){return m},v.prototype._finalDecrypt=function(){M.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var m=new Array(this.blockSize);return this._flushBuffer(m,0),this._unpad(m)}},778:(H,_,y)=>{var M=y(9746),v=y(5717),m=y(1278),E=y(5756);function s(){this.tmp=new Array(2),this.keys=null}function p(l){E.call(this,l);var f=new s;this._desState=f,this.deriveKeys(f,l.key)}v(p,E),H.exports=p,p.create=function(l){return new p(l)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];p.prototype.deriveKeys=function(l,f){l.keys=new Array(32),M.equal(f.length,this.blockSize,"Invalid key length");var g=m.readUInt32BE(f,0),h=m.readUInt32BE(f,4);m.pc1(g,h,l.tmp,0),g=l.tmp[0],h=l.tmp[1];for(var u=0;u<l.keys.length;u+=2){var w=c[u>>>1];g=m.r28shl(g,w),h=m.r28shl(h,w),m.pc2(g,h,l.keys,u)}},p.prototype._update=function(l,f,g,h){var u=this._desState,w=m.readUInt32BE(l,f),b=m.readUInt32BE(l,f+4);m.ip(w,b,u.tmp,0),w=u.tmp[0],b=u.tmp[1],this.type==="encrypt"?this._encrypt(u,w,b,u.tmp,0):this._decrypt(u,w,b,u.tmp,0),w=u.tmp[0],b=u.tmp[1],m.writeUInt32BE(g,w,h),m.writeUInt32BE(g,b,h+4)},p.prototype._pad=function(l,f){for(var g=l.length-f,h=f;h<l.length;h++)l[h]=g;return!0},p.prototype._unpad=function(l){for(var f=l[l.length-1],g=l.length-f;g<l.length;g++)M.equal(l[g],f);return l.slice(0,l.length-f)},p.prototype._encrypt=function(l,f,g,h,u){for(var w=f,b=g,k=0;k<l.keys.length;k+=2){var A=l.keys[k],x=l.keys[k+1];m.expand(b,l.tmp,0),A^=l.tmp[0],x^=l.tmp[1];var j=m.substitute(A,x),P=b;b=(w^m.permute(j))>>>0,w=P}m.rip(b,w,h,u)},p.prototype._decrypt=function(l,f,g,h,u){for(var w=g,b=f,k=l.keys.length-2;k>=0;k-=2){var A=l.keys[k],x=l.keys[k+1];m.expand(w,l.tmp,0),A^=l.tmp[0],x^=l.tmp[1];var j=m.substitute(A,x),P=w;w=(b^m.permute(j))>>>0,b=P}m.rip(w,b,h,u)}},651:(H,_,y)=>{var M=y(9746),v=y(5717),m=y(5756),E=y(778);function s(c,l){M.equal(l.length,24,"Invalid key length");var f=l.slice(0,8),g=l.slice(8,16),h=l.slice(16,24);this.ciphers=c==="encrypt"?[E.create({type:"encrypt",key:f}),E.create({type:"decrypt",key:g}),E.create({type:"encrypt",key:h})]:[E.create({type:"decrypt",key:h}),E.create({type:"encrypt",key:g}),E.create({type:"decrypt",key:f})]}function p(c){m.call(this,c);var l=new s(this.type,this.options.key);this._edeState=l}v(p,m),H.exports=p,p.create=function(c){return new p(c)},p.prototype._update=function(c,l,f,g){var h=this._edeState;h.ciphers[0]._update(c,l,f,g),h.ciphers[1]._update(f,g,f,g),h.ciphers[2]._update(f,g,f,g)},p.prototype._pad=E.prototype._pad,p.prototype._unpad=E.prototype._unpad},1278:(H,_)=>{_.readUInt32BE=function(m,E){return(m[0+E]<<24|m[1+E]<<16|m[2+E]<<8|m[3+E])>>>0},_.writeUInt32BE=function(m,E,s){m[0+s]=E>>>24,m[1+s]=E>>>16&255,m[2+s]=E>>>8&255,m[3+s]=255&E},_.ip=function(m,E,s,p){for(var c=0,l=0,f=6;f>=0;f-=2){for(var g=0;g<=24;g+=8)c<<=1,c|=E>>>g+f&1;for(g=0;g<=24;g+=8)c<<=1,c|=m>>>g+f&1}for(f=6;f>=0;f-=2){for(g=1;g<=25;g+=8)l<<=1,l|=E>>>g+f&1;for(g=1;g<=25;g+=8)l<<=1,l|=m>>>g+f&1}s[p+0]=c>>>0,s[p+1]=l>>>0},_.rip=function(m,E,s,p){for(var c=0,l=0,f=0;f<4;f++)for(var g=24;g>=0;g-=8)c<<=1,c|=E>>>g+f&1,c<<=1,c|=m>>>g+f&1;for(f=4;f<8;f++)for(g=24;g>=0;g-=8)l<<=1,l|=E>>>g+f&1,l<<=1,l|=m>>>g+f&1;s[p+0]=c>>>0,s[p+1]=l>>>0},_.pc1=function(m,E,s,p){for(var c=0,l=0,f=7;f>=5;f--){for(var g=0;g<=24;g+=8)c<<=1,c|=E>>g+f&1;for(g=0;g<=24;g+=8)c<<=1,c|=m>>g+f&1}for(g=0;g<=24;g+=8)c<<=1,c|=E>>g+f&1;for(f=1;f<=3;f++){for(g=0;g<=24;g+=8)l<<=1,l|=E>>g+f&1;for(g=0;g<=24;g+=8)l<<=1,l|=m>>g+f&1}for(g=0;g<=24;g+=8)l<<=1,l|=m>>g+f&1;s[p+0]=c>>>0,s[p+1]=l>>>0},_.r28shl=function(m,E){return m<<E&268435455|m>>>28-E};var y=[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];_.pc2=function(m,E,s,p){for(var c=0,l=0,f=y.length>>>1,g=0;g<f;g++)c<<=1,c|=m>>>y[g]&1;for(g=f;g<y.length;g++)l<<=1,l|=E>>>y[g]&1;s[p+0]=c>>>0,s[p+1]=l>>>0},_.expand=function(m,E,s){var p=0,c=0;p=(1&m)<<5|m>>>27;for(var l=23;l>=15;l-=4)p<<=6,p|=m>>>l&63;for(l=11;l>=3;l-=4)c|=m>>>l&63,c<<=6;c|=(31&m)<<1|m>>>31,E[s+0]=p>>>0,E[s+1]=c>>>0};var M=[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];_.substitute=function(m,E){for(var s=0,p=0;p<4;p++)s<<=4,s|=M[64*p+(m>>>18-6*p&63)];for(p=0;p<4;p++)s<<=4,s|=M[256+64*p+(E>>>18-6*p&63)];return s>>>0};var v=[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];_.permute=function(m){for(var E=0,s=0;s<v.length;s++)E<<=1,E|=m>>>v[s]&1;return E>>>0},_.padSplit=function(m,E,s){for(var p=m.toString(2);p.length<E;)p="0"+p;for(var c=[],l=0;l<E;l+=s)c.push(p.slice(l,l+s));return c.join(" ")}},2607:(H,_,y)=>{var M=y(8764).Buffer,v=y(3590),m=y(9799),E=y(7426),s={binary:!0,hex:!0,base64:!0};_.DiffieHellmanGroup=_.createDiffieHellmanGroup=_.getDiffieHellman=function(p){var c=new M(m[p].prime,"hex"),l=new M(m[p].gen,"hex");return new E(c,l)},_.createDiffieHellman=_.DiffieHellman=function p(c,l,f,g){return M.isBuffer(l)||s[l]===void 0?p(c,"binary",l,f):(l=l||"binary",g=g||"binary",f=f||new M([2]),M.isBuffer(f)||(f=new M(f,g)),typeof c=="number"?new E(v(c,f),f,!0):(M.isBuffer(c)||(c=new M(c,l)),new E(c,f,!0)))}},7426:(H,_,y)=>{var M=y(8764).Buffer,v=y(3620),m=new(y(3047)),E=new v(24),s=new v(11),p=new v(10),c=new v(3),l=new v(7),f=y(3590),g=y(1798);function h(A,x){return x=x||"utf8",M.isBuffer(A)||(A=new M(A,x)),this._pub=new v(A),this}function u(A,x){return x=x||"utf8",M.isBuffer(A)||(A=new M(A,x)),this._priv=new v(A),this}H.exports=b;var w={};function b(A,x,j){this.setGenerator(x),this.__prime=new v(A),this._prime=v.mont(this.__prime),this._primeLen=A.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,j?(this.setPublicKey=h,this.setPrivateKey=u):this._primeCode=8}function k(A,x){var j=new M(A.toArray());return x?j.toString(x):j}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=function(A,x){var j=x.toString("hex"),P=[j,A.toString(16)].join("_");if(P in w)return w[P];var B,$=0;if(A.isEven()||!f.simpleSieve||!f.fermatTest(A)||!m.test(A))return $+=1,$+=j==="02"||j==="05"?8:4,w[P]=$,$;switch(m.test(A.shrn(1))||($+=2),j){case"02":A.mod(E).cmp(s)&&($+=8);break;case"05":(B=A.mod(p)).cmp(c)&&B.cmp(l)&&($+=8);break;default:$+=4}return w[P]=$,$}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new v(g(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(A){var x=(A=(A=new v(A)).toRed(this._prime)).redPow(this._priv).fromRed(),j=new M(x.toArray()),P=this.getPrime();if(j.length<P.length){var B=new M(P.length-j.length);B.fill(0),j=M.concat([B,j])}return j},b.prototype.getPublicKey=function(A){return k(this._pub,A)},b.prototype.getPrivateKey=function(A){return k(this._priv,A)},b.prototype.getPrime=function(A){return k(this.__prime,A)},b.prototype.getGenerator=function(A){return k(this._gen,A)},b.prototype.setGenerator=function(A,x){return x=x||"utf8",M.isBuffer(A)||(A=new M(A,x)),this.__gen=A,this._gen=new v(A),this}},3590:(H,_,y)=>{var M=y(1798);H.exports=A,A.simpleSieve=b,A.fermatTest=k;var v=y(3620),m=new v(24),E=new(y(3047)),s=new v(1),p=new v(2),c=new v(5),l=(new v(16),new v(8),new v(10)),f=new v(3),g=(new v(7),new v(11)),h=new v(4),u=(new v(12),null);function w(){if(u!==null)return u;var x=[];x[0]=2;for(var j=1,P=3;P<1048576;P+=2){for(var B=Math.ceil(Math.sqrt(P)),$=0;$<j&&x[$]<=B&&P%x[$]!=0;$++);j!==$&&x[$]<=B||(x[j++]=P)}return u=x,x}function b(x){for(var j=w(),P=0;P<j.length;P++)if(x.modn(j[P])===0)return x.cmpn(j[P])===0;return!0}function k(x){var j=v.mont(x);return p.toRed(j).redPow(x.subn(1)).fromRed().cmpn(1)===0}function A(x,j){if(x<16)return new v(j===2||j===5?[140,123]:[140,39]);var P,B;for(j=new v(j);;){for(P=new v(M(Math.ceil(x/8)));P.bitLength()>x;)P.ishrn(1);if(P.isEven()&&P.iadd(s),P.testn(1)||P.iadd(p),j.cmp(p)){if(!j.cmp(c))for(;P.mod(l).cmp(f);)P.iadd(h)}else for(;P.mod(m).cmp(g);)P.iadd(h);if(b(B=P.shrn(1))&&b(P)&&k(B)&&k(P)&&E.test(B)&&E.test(P))return P}}},3620:function(H,_,y){(function(M,v){function m(e,r){if(!e)throw new Error(r||"Assertion failed")}function E(e,r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}function s(e,r,i){if(s.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&(r!=="le"&&r!=="be"||(i=r,r=10),this._init(e||0,r||10,i||"be"))}var p;typeof M=="object"?M.exports=s:v.BN=s,s.BN=s,s.wordSize=26;try{p=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:y(7748).Buffer}catch{}function c(e,r){var i=e.charCodeAt(r);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(e,r,i){var n=c(e,i);return i-1>=r&&(n|=c(e,i-1)<<4),n}function f(e,r,i,n){for(var t=0,o=Math.min(e.length,i),a=r;a<o;a++){var T=e.charCodeAt(a)-48;t*=n,t+=T>=49?T-49+10:T>=17?T-17+10:T}return t}s.isBN=function(e){return e instanceof s||e!==null&&typeof e=="object"&&e.constructor.wordSize===s.wordSize&&Array.isArray(e.words)},s.max=function(e,r){return e.cmp(r)>0?e:r},s.min=function(e,r){return e.cmp(r)<0?e:r},s.prototype._init=function(e,r,i){if(typeof e=="number")return this._initNumber(e,r,i);if(typeof e=="object")return this._initArray(e,r,i);r==="hex"&&(r=16),m(r===(0|r)&&r>=2&&r<=36);var n=0;(e=e.toString().replace(/\s+/g,""))[0]==="-"&&(n++,this.negative=1),n<e.length&&(r===16?this._parseHex(e,n,i):(this._parseBase(e,r,n),i==="le"&&this._initArray(this.toArray(),r,i)))},s.prototype._initNumber=function(e,r,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(m(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),r,i)},s.prototype._initArray=function(e,r,i){if(m(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o,a=0;if(i==="be")for(n=e.length-1,t=0;n>=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[t]|=o<<a&67108863,this.words[t+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,t++);else if(i==="le")for(n=0,t=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[t]|=o<<a&67108863,this.words[t+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,t++);return this.strip()},s.prototype._parseHex=function(e,r,i){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o=0,a=0;if(i==="be")for(n=e.length-1;n>=r;n-=2)t=l(e,r,n)<<o,this.words[a]|=67108863&t,o>=18?(o-=18,a+=1,this.words[a]|=t>>>26):o+=8;else for(n=(e.length-r)%2==0?r+1:r;n<e.length;n+=2)t=l(e,r,n)<<o,this.words[a]|=67108863&t,o>=18?(o-=18,a+=1,this.words[a]|=t>>>26):o+=8;this.strip()},s.prototype._parseBase=function(e,r,i){this.words=[0],this.length=1;for(var n=0,t=1;t<=67108863;t*=r)n++;n--,t=t/r|0;for(var o=e.length-i,a=o%n,T=Math.min(o,o-a)+i,C=0,N=i;N<T;N+=n)C=f(e,N,N+n,r),this.imuln(t),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(a!==0){var O=1;for(C=f(e,N,e.length,r),N=0;N<a;N++)O*=r;this.imuln(O),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},s.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},s.prototype.clone=function(){var e=new s(null);return this.copy(e),e},s.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","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"],h=[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],u=[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];function w(e,r,i){i.negative=r.negative^e.negative;var n=e.length+r.length|0;i.length=n,n=n-1|0;var t=0|e.words[0],o=0|r.words[0],a=t*o,T=67108863&a,C=a/67108864|0;i.words[0]=T;for(var N=1;N<n;N++){for(var O=C>>>26,R=67108863&C,F=Math.min(N,r.length-1),Z=Math.max(0,N-e.length+1);Z<=F;Z++){var ie=N-Z|0;O+=(a=(t=0|e.words[ie])*(o=0|r.words[Z])+R)/67108864|0,R=67108863&a}i.words[N]=0|R,C=0|O}return C!==0?i.words[N]=0|C:i.length--,i.strip()}s.prototype.toString=function(e,r){var i;if(r=0|r||1,(e=e||10)===16||e==="hex"){i="";for(var n=0,t=0,o=0;o<this.length;o++){var a=this.words[o],T=(16777215&(a<<n|t)).toString(16);i=(t=a>>>24-n&16777215)!=0||o!==this.length-1?g[6-T.length]+T+i:T+i,(n+=2)>=26&&(n-=26,o--)}for(t!==0&&(i=t.toString(16)+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var C=h[e],N=u[e];i="";var O=this.clone();for(O.negative=0;!O.isZero();){var R=O.modn(N).toString(e);i=(O=O.idivn(N)).isZero()?R+i:g[C-R.length]+R+i}for(this.isZero()&&(i="0"+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}m(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=67108864*this.words[1]:this.length===3&&this.words[2]===1?e+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(e,r){return m(p!==void 0),this.toArrayLike(p,e,r)},s.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},s.prototype.toArrayLike=function(e,r,i){var n=this.byteLength(),t=i||Math.max(1,n);m(n<=t,"byte array longer than desired length"),m(t>0,"Requested array length <= 0"),this.strip();var o,a,T=r==="le",C=new e(t),N=this.clone();if(T){for(a=0;!N.isZero();a++)o=N.andln(255),N.iushrn(8),C[a]=o;for(;a<t;a++)C[a]=0}else{for(a=0;a<t-n;a++)C[a]=0;for(a=0;!N.isZero();a++)o=N.andln(255),N.iushrn(8),C[t-a-1]=o}return C},Math.clz32?s.prototype._countBits=function(e){return 32-Math.clz32(e)}:s.prototype._countBits=function(e){var r=e,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},s.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,i=0;return!(8191&r)&&(i+=13,r>>>=13),!(127&r)&&(i+=7,r>>>=7),!(15&r)&&(i+=4,r>>>=4),!(3&r)&&(i+=2,r>>>=2),!(1&r)&&i++,i},s.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return 26*(this.length-1)+r},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(e+=i,i!==26)break}return e},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},s.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},s.prototype.ior=function(e){return m((this.negative|e.negative)==0),this.iuor(e)},s.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},s.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},s.prototype.iuand=function(e){var r;r=this.length>e.length?e:this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=r.length,this.strip()},s.prototype.iand=function(e){return m((this.negative|e.negative)==0),this.iuand(e)},s.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},s.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},s.prototype.iuxor=function(e){var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=r.words[n]^i.words[n];if(this!==r)for(;n<r.length;n++)this.words[n]=r.words[n];return this.length=r.length,this.strip()},s.prototype.ixor=function(e){return m((this.negative|e.negative)==0),this.iuxor(e)},s.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},s.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},s.prototype.inotn=function(e){m(typeof e=="number"&&e>=0);var r=0|Math.ceil(e/26),i=e%26;this._expand(r),i>0&&r--;for(var n=0;n<r;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},s.prototype.notn=function(e){return this.clone().inotn(e)},s.prototype.setn=function(e,r){m(typeof e=="number"&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=r?this.words[i]|1<<n:this.words[i]&~(1<<n),this.strip()},s.prototype.iadd=function(e){var r,i,n;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var t=0,o=0;o<n.length;o++)r=(0|i.words[o])+(0|n.words[o])+t,this.words[o]=67108863&r,t=r>>>26;for(;t!==0&&o<i.length;o++)r=(0|i.words[o])+t,this.words[o]=67108863&r,t=r>>>26;if(this.length=i.length,t!==0)this.words[this.length]=t,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},s.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},s.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,t=this.cmp(e);if(t===0)return this.negative=0,this.length=1,this.words[0]=0,this;t>0?(i=this,n=e):(i=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(r=(0|i.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&r;for(;o!==0&&a<i.length;a++)o=(r=(0|i.words[a])+o)>>26,this.words[a]=67108863&r;if(o===0&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(e){return this.clone().isub(e)};var b=function(e,r,i){var n,t,o,a=e.words,T=r.words,C=i.words,N=0,O=0|a[0],R=8191&O,F=O>>>13,Z=0|a[1],ie=8191&Z,D=Z>>>13,Y=0|a[2],z=8191&Y,W=Y>>>13,ae=0|a[3],re=8191&ae,le=ae>>>13,ke=0|a[4],ge=8191&ke,be=ke>>>13,je=0|a[5],xe=8191&je,Ae=je>>>13,X=0|a[6],ee=8191&X,U=X>>>13,V=0|a[7],q=8191&V,ne=V>>>13,fe=0|a[8],he=8191&fe,me=fe>>>13,it=0|a[9],_e=8191&it,Te=it>>>13,ft=0|T[0],Se=8191&ft,Ge=ft>>>13,Ct=0|T[1],Pe=8191&Ct,Ve=Ct>>>13,Nt=0|T[2],Re=8191&Nt,Ke=Nt>>>13,yt=0|T[3],Be=8191&yt,We=yt>>>13,St=0|T[4],Ne=8191&St,Ze=St>>>13,It=0|T[5],Le=8191&It,Xe=It>>>13,Dt=0|T[6],De=8191&Dt,Qe=Dt>>>13,zt=0|T[7],qe=8191&zt,Je=zt>>>13,$t=0|T[8],Fe=8191&$t,tt=$t>>>13,Vt=0|T[9],Ue=8191&Vt,et=Vt>>>13;i.negative=e.negative^r.negative,i.length=19;var Tt=(N+(n=Math.imul(R,Se))|0)+((8191&(t=(t=Math.imul(R,Ge))+Math.imul(F,Se)|0))<<13)|0;N=((o=Math.imul(F,Ge))+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(ie,Se),t=(t=Math.imul(ie,Ge))+Math.imul(D,Se)|0,o=Math.imul(D,Ge);var Rt=(N+(n=n+Math.imul(R,Pe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ve)|0)+Math.imul(F,Pe)|0))<<13)|0;N=((o=o+Math.imul(F,Ve)|0)+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(z,Se),t=(t=Math.imul(z,Ge))+Math.imul(W,Se)|0,o=Math.imul(W,Ge),n=n+Math.imul(ie,Pe)|0,t=(t=t+Math.imul(ie,Ve)|0)+Math.imul(D,Pe)|0,o=o+Math.imul(D,Ve)|0;var Gt=(N+(n=n+Math.imul(R,Re)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ke)|0)+Math.imul(F,Re)|0))<<13)|0;N=((o=o+Math.imul(F,Ke)|0)+(t>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,n=Math.imul(re,Se),t=(t=Math.imul(re,Ge))+Math.imul(le,Se)|0,o=Math.imul(le,Ge),n=n+Math.imul(z,Pe)|0,t=(t=t+Math.imul(z,Ve)|0)+Math.imul(W,Pe)|0,o=o+Math.imul(W,Ve)|0,n=n+Math.imul(ie,Re)|0,t=(t=t+Math.imul(ie,Ke)|0)+Math.imul(D,Re)|0,o=o+Math.imul(D,Ke)|0;var an=(N+(n=n+Math.imul(R,Be)|0)|0)+((8191&(t=(t=t+Math.imul(R,We)|0)+Math.imul(F,Be)|0))<<13)|0;N=((o=o+Math.imul(F,We)|0)+(t>>>13)|0)+(an>>>26)|0,an&=67108863,n=Math.imul(ge,Se),t=(t=Math.imul(ge,Ge))+Math.imul(be,Se)|0,o=Math.imul(be,Ge),n=n+Math.imul(re,Pe)|0,t=(t=t+Math.imul(re,Ve)|0)+Math.imul(le,Pe)|0,o=o+Math.imul(le,Ve)|0,n=n+Math.imul(z,Re)|0,t=(t=t+Math.imul(z,Ke)|0)+Math.imul(W,Re)|0,o=o+Math.imul(W,Ke)|0,n=n+Math.imul(ie,Be)|0,t=(t=t+Math.imul(ie,We)|0)+Math.imul(D,Be)|0,o=o+Math.imul(D,We)|0;var rn=(N+(n=n+Math.imul(R,Ne)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ze)|0)+Math.imul(F,Ne)|0))<<13)|0;N=((o=o+Math.imul(F,Ze)|0)+(t>>>13)|0)+(rn>>>26)|0,rn&=67108863,n=Math.imul(xe,Se),t=(t=Math.imul(xe,Ge))+Math.imul(Ae,Se)|0,o=Math.imul(Ae,Ge),n=n+Math.imul(ge,Pe)|0,t=(t=t+Math.imul(ge,Ve)|0)+Math.imul(be,Pe)|0,o=o+Math.imul(be,Ve)|0,n=n+Math.imul(re,Re)|0,t=(t=t+Math.imul(re,Ke)|0)+Math.imul(le,Re)|0,o=o+Math.imul(le,Ke)|0,n=n+Math.imul(z,Be)|0,t=(t=t+Math.imul(z,We)|0)+Math.imul(W,Be)|0,o=o+Math.imul(W,We)|0,n=n+Math.imul(ie,Ne)|0,t=(t=t+Math.imul(ie,Ze)|0)+Math.imul(D,Ne)|0,o=o+Math.imul(D,Ze)|0;var un=(N+(n=n+Math.imul(R,Le)|0)|0)+((8191&(t=(t=t+Math.imul(R,Xe)|0)+Math.imul(F,Le)|0))<<13)|0;N=((o=o+Math.imul(F,Xe)|0)+(t>>>13)|0)+(un>>>26)|0,un&=67108863,n=Math.imul(ee,Se),t=(t=Math.imul(ee,Ge))+Math.imul(U,Se)|0,o=Math.imul(U,Ge),n=n+Math.imul(xe,Pe)|0,t=(t=t+Math.imul(xe,Ve)|0)+Math.imul(Ae,Pe)|0,o=o+Math.imul(Ae,Ve)|0,n=n+Math.imul(ge,Re)|0,t=(t=t+Math.imul(ge,Ke)|0)+Math.imul(be,Re)|0,o=o+Math.imul(be,Ke)|0,n=n+Math.imul(re,Be)|0,t=(t=t+Math.imul(re,We)|0)+Math.imul(le,Be)|0,o=o+Math.imul(le,We)|0,n=n+Math.imul(z,Ne)|0,t=(t=t+Math.imul(z,Ze)|0)+Math.imul(W,Ne)|0,o=o+Math.imul(W,Ze)|0,n=n+Math.imul(ie,Le)|0,t=(t=t+Math.imul(ie,Xe)|0)+Math.imul(D,Le)|0,o=o+Math.imul(D,Xe)|0;var cn=(N+(n=n+Math.imul(R,De)|0)|0)+((8191&(t=(t=t+Math.imul(R,Qe)|0)+Math.imul(F,De)|0))<<13)|0;N=((o=o+Math.imul(F,Qe)|0)+(t>>>13)|0)+(cn>>>26)|0,cn&=67108863,n=Math.imul(q,Se),t=(t=Math.imul(q,Ge))+Math.imul(ne,Se)|0,o=Math.imul(ne,Ge),n=n+Math.imul(ee,Pe)|0,t=(t=t+Math.imul(ee,Ve)|0)+Math.imul(U,Pe)|0,o=o+Math.imul(U,Ve)|0,n=n+Math.imul(xe,Re)|0,t=(t=t+Math.imul(xe,Ke)|0)+Math.imul(Ae,Re)|0,o=o+Math.imul(Ae,Ke)|0,n=n+Math.imul(ge,Be)|0,t=(t=t+Math.imul(ge,We)|0)+Math.imul(be,Be)|0,o=o+Math.imul(be,We)|0,n=n+Math.imul(re,Ne)|0,t=(t=t+Math.imul(re,Ze)|0)+Math.imul(le,Ne)|0,o=o+Math.imul(le,Ze)|0,n=n+Math.imul(z,Le)|0,t=(t=t+Math.imul(z,Xe)|0)+Math.imul(W,Le)|0,o=o+Math.imul(W,Xe)|0,n=n+Math.imul(ie,De)|0,t=(t=t+Math.imul(ie,Qe)|0)+Math.imul(D,De)|0,o=o+Math.imul(D,Qe)|0;var ln=(N+(n=n+Math.imul(R,qe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Je)|0)+Math.imul(F,qe)|0))<<13)|0;N=((o=o+Math.imul(F,Je)|0)+(t>>>13)|0)+(ln>>>26)|0,ln&=67108863,n=Math.imul(he,Se),t=(t=Math.imul(he,Ge))+Math.imul(me,Se)|0,o=Math.imul(me,Ge),n=n+Math.imul(q,Pe)|0,t=(t=t+Math.imul(q,Ve)|0)+Math.imul(ne,Pe)|0,o=o+Math.imul(ne,Ve)|0,n=n+Math.imul(ee,Re)|0,t=(t=t+Math.imul(ee,Ke)|0)+Math.imul(U,Re)|0,o=o+Math.imul(U,Ke)|0,n=n+Math.imul(xe,Be)|0,t=(t=t+Math.imul(xe,We)|0)+Math.imul(Ae,Be)|0,o=o+Math.imul(Ae,We)|0,n=n+Math.imul(ge,Ne)|0,t=(t=t+Math.imul(ge,Ze)|0)+Math.imul(be,Ne)|0,o=o+Math.imul(be,Ze)|0,n=n+Math.imul(re,Le)|0,t=(t=t+Math.imul(re,Xe)|0)+Math.imul(le,Le)|0,o=o+Math.imul(le,Xe)|0,n=n+Math.imul(z,De)|0,t=(t=t+Math.imul(z,Qe)|0)+Math.imul(W,De)|0,o=o+Math.imul(W,Qe)|0,n=n+Math.imul(ie,qe)|0,t=(t=t+Math.imul(ie,Je)|0)+Math.imul(D,qe)|0,o=o+Math.imul(D,Je)|0;var hn=(N+(n=n+Math.imul(R,Fe)|0)|0)+((8191&(t=(t=t+Math.imul(R,tt)|0)+Math.imul(F,Fe)|0))<<13)|0;N=((o=o+Math.imul(F,tt)|0)+(t>>>13)|0)+(hn>>>26)|0,hn&=67108863,n=Math.imul(_e,Se),t=(t=Math.imul(_e,Ge))+Math.imul(Te,Se)|0,o=Math.imul(Te,Ge),n=n+Math.imul(he,Pe)|0,t=(t=t+Math.imul(he,Ve)|0)+Math.imul(me,Pe)|0,o=o+Math.imul(me,Ve)|0,n=n+Math.imul(q,Re)|0,t=(t=t+Math.imul(q,Ke)|0)+Math.imul(ne,Re)|0,o=o+Math.imul(ne,Ke)|0,n=n+Math.imul(ee,Be)|0,t=(t=t+Math.imul(ee,We)|0)+Math.imul(U,Be)|0,o=o+Math.imul(U,We)|0,n=n+Math.imul(xe,Ne)|0,t=(t=t+Math.imul(xe,Ze)|0)+Math.imul(Ae,Ne)|0,o=o+Math.imul(Ae,Ze)|0,n=n+Math.imul(ge,Le)|0,t=(t=t+Math.imul(ge,Xe)|0)+Math.imul(be,Le)|0,o=o+Math.imul(be,Xe)|0,n=n+Math.imul(re,De)|0,t=(t=t+Math.imul(re,Qe)|0)+Math.imul(le,De)|0,o=o+Math.imul(le,Qe)|0,n=n+Math.imul(z,qe)|0,t=(t=t+Math.imul(z,Je)|0)+Math.imul(W,qe)|0,o=o+Math.imul(W,Je)|0,n=n+Math.imul(ie,Fe)|0,t=(t=t+Math.imul(ie,tt)|0)+Math.imul(D,Fe)|0,o=o+Math.imul(D,tt)|0;var fn=(N+(n=n+Math.imul(R,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(R,et)|0)+Math.imul(F,Ue)|0))<<13)|0;N=((o=o+Math.imul(F,et)|0)+(t>>>13)|0)+(fn>>>26)|0,fn&=67108863,n=Math.imul(_e,Pe),t=(t=Math.imul(_e,Ve))+Math.imul(Te,Pe)|0,o=Math.imul(Te,Ve),n=n+Math.imul(he,Re)|0,t=(t=t+Math.imul(he,Ke)|0)+Math.imul(me,Re)|0,o=o+Math.imul(me,Ke)|0,n=n+Math.imul(q,Be)|0,t=(t=t+Math.imul(q,We)|0)+Math.imul(ne,Be)|0,o=o+Math.imul(ne,We)|0,n=n+Math.imul(ee,Ne)|0,t=(t=t+Math.imul(ee,Ze)|0)+Math.imul(U,Ne)|0,o=o+Math.imul(U,Ze)|0,n=n+Math.imul(xe,Le)|0,t=(t=t+Math.imul(xe,Xe)|0)+Math.imul(Ae,Le)|0,o=o+Math.imul(Ae,Xe)|0,n=n+Math.imul(ge,De)|0,t=(t=t+Math.imul(ge,Qe)|0)+Math.imul(be,De)|0,o=o+Math.imul(be,Qe)|0,n=n+Math.imul(re,qe)|0,t=(t=t+Math.imul(re,Je)|0)+Math.imul(le,qe)|0,o=o+Math.imul(le,Je)|0,n=n+Math.imul(z,Fe)|0,t=(t=t+Math.imul(z,tt)|0)+Math.imul(W,Fe)|0,o=o+Math.imul(W,tt)|0;var pn=(N+(n=n+Math.imul(ie,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ie,et)|0)+Math.imul(D,Ue)|0))<<13)|0;N=((o=o+Math.imul(D,et)|0)+(t>>>13)|0)+(pn>>>26)|0,pn&=67108863,n=Math.imul(_e,Re),t=(t=Math.imul(_e,Ke))+Math.imul(Te,Re)|0,o=Math.imul(Te,Ke),n=n+Math.imul(he,Be)|0,t=(t=t+Math.imul(he,We)|0)+Math.imul(me,Be)|0,o=o+Math.imul(me,We)|0,n=n+Math.imul(q,Ne)|0,t=(t=t+Math.imul(q,Ze)|0)+Math.imul(ne,Ne)|0,o=o+Math.imul(ne,Ze)|0,n=n+Math.imul(ee,Le)|0,t=(t=t+Math.imul(ee,Xe)|0)+Math.imul(U,Le)|0,o=o+Math.imul(U,Xe)|0,n=n+Math.imul(xe,De)|0,t=(t=t+Math.imul(xe,Qe)|0)+Math.imul(Ae,De)|0,o=o+Math.imul(Ae,Qe)|0,n=n+Math.imul(ge,qe)|0,t=(t=t+Math.imul(ge,Je)|0)+Math.imul(be,qe)|0,o=o+Math.imul(be,Je)|0,n=n+Math.imul(re,Fe)|0,t=(t=t+Math.imul(re,tt)|0)+Math.imul(le,Fe)|0,o=o+Math.imul(le,tt)|0;var Xt=(N+(n=n+Math.imul(z,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(z,et)|0)+Math.imul(W,Ue)|0))<<13)|0;N=((o=o+Math.imul(W,et)|0)+(t>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,n=Math.imul(_e,Be),t=(t=Math.imul(_e,We))+Math.imul(Te,Be)|0,o=Math.imul(Te,We),n=n+Math.imul(he,Ne)|0,t=(t=t+Math.imul(he,Ze)|0)+Math.imul(me,Ne)|0,o=o+Math.imul(me,Ze)|0,n=n+Math.imul(q,Le)|0,t=(t=t+Math.imul(q,Xe)|0)+Math.imul(ne,Le)|0,o=o+Math.imul(ne,Xe)|0,n=n+Math.imul(ee,De)|0,t=(t=t+Math.imul(ee,Qe)|0)+Math.imul(U,De)|0,o=o+Math.imul(U,Qe)|0,n=n+Math.imul(xe,qe)|0,t=(t=t+Math.imul(xe,Je)|0)+Math.imul(Ae,qe)|0,o=o+Math.imul(Ae,Je)|0,n=n+Math.imul(ge,Fe)|0,t=(t=t+Math.imul(ge,tt)|0)+Math.imul(be,Fe)|0,o=o+Math.imul(be,tt)|0;var dn=(N+(n=n+Math.imul(re,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(re,et)|0)+Math.imul(le,Ue)|0))<<13)|0;N=((o=o+Math.imul(le,et)|0)+(t>>>13)|0)+(dn>>>26)|0,dn&=67108863,n=Math.imul(_e,Ne),t=(t=Math.imul(_e,Ze))+Math.imul(Te,Ne)|0,o=Math.imul(Te,Ze),n=n+Math.imul(he,Le)|0,t=(t=t+Math.imul(he,Xe)|0)+Math.imul(me,Le)|0,o=o+Math.imul(me,Xe)|0,n=n+Math.imul(q,De)|0,t=(t=t+Math.imul(q,Qe)|0)+Math.imul(ne,De)|0,o=o+Math.imul(ne,Qe)|0,n=n+Math.imul(ee,qe)|0,t=(t=t+Math.imul(ee,Je)|0)+Math.imul(U,qe)|0,o=o+Math.imul(U,Je)|0,n=n+Math.imul(xe,Fe)|0,t=(t=t+Math.imul(xe,tt)|0)+Math.imul(Ae,Fe)|0,o=o+Math.imul(Ae,tt)|0;var vn=(N+(n=n+Math.imul(ge,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ge,et)|0)+Math.imul(be,Ue)|0))<<13)|0;N=((o=o+Math.imul(be,et)|0)+(t>>>13)|0)+(vn>>>26)|0,vn&=67108863,n=Math.imul(_e,Le),t=(t=Math.imul(_e,Xe))+Math.imul(Te,Le)|0,o=Math.imul(Te,Xe),n=n+Math.imul(he,De)|0,t=(t=t+Math.imul(he,Qe)|0)+Math.imul(me,De)|0,o=o+Math.imul(me,Qe)|0,n=n+Math.imul(q,qe)|0,t=(t=t+Math.imul(q,Je)|0)+Math.imul(ne,qe)|0,o=o+Math.imul(ne,Je)|0,n=n+Math.imul(ee,Fe)|0,t=(t=t+Math.imul(ee,tt)|0)+Math.imul(U,Fe)|0,o=o+Math.imul(U,tt)|0;var tn=(N+(n=n+Math.imul(xe,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(xe,et)|0)+Math.imul(Ae,Ue)|0))<<13)|0;N=((o=o+Math.imul(Ae,et)|0)+(t>>>13)|0)+(tn>>>26)|0,tn&=67108863,n=Math.imul(_e,De),t=(t=Math.imul(_e,Qe))+Math.imul(Te,De)|0,o=Math.imul(Te,Qe),n=n+Math.imul(he,qe)|0,t=(t=t+Math.imul(he,Je)|0)+Math.imul(me,qe)|0,o=o+Math.imul(me,Je)|0,n=n+Math.imul(q,Fe)|0,t=(t=t+Math.imul(q,tt)|0)+Math.imul(ne,Fe)|0,o=o+Math.imul(ne,tt)|0;var nn=(N+(n=n+Math.imul(ee,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ee,et)|0)+Math.imul(U,Ue)|0))<<13)|0;N=((o=o+Math.imul(U,et)|0)+(t>>>13)|0)+(nn>>>26)|0,nn&=67108863,n=Math.imul(_e,qe),t=(t=Math.imul(_e,Je))+Math.imul(Te,qe)|0,o=Math.imul(Te,Je),n=n+Math.imul(he,Fe)|0,t=(t=t+Math.imul(he,tt)|0)+Math.imul(me,Fe)|0,o=o+Math.imul(me,tt)|0;var Jt=(N+(n=n+Math.imul(q,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(q,et)|0)+Math.imul(ne,Ue)|0))<<13)|0;N=((o=o+Math.imul(ne,et)|0)+(t>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,n=Math.imul(_e,Fe),t=(t=Math.imul(_e,tt))+Math.imul(Te,Fe)|0,o=Math.imul(Te,tt);var mn=(N+(n=n+Math.imul(he,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(he,et)|0)+Math.imul(me,Ue)|0))<<13)|0;N=((o=o+Math.imul(me,et)|0)+(t>>>13)|0)+(mn>>>26)|0,mn&=67108863;var on=(N+(n=Math.imul(_e,Ue))|0)+((8191&(t=(t=Math.imul(_e,et))+Math.imul(Te,Ue)|0))<<13)|0;return N=((o=Math.imul(Te,et))+(t>>>13)|0)+(on>>>26)|0,on&=67108863,C[0]=Tt,C[1]=Rt,C[2]=Gt,C[3]=an,C[4]=rn,C[5]=un,C[6]=cn,C[7]=ln,C[8]=hn,C[9]=fn,C[10]=pn,C[11]=Xt,C[12]=dn,C[13]=vn,C[14]=tn,C[15]=nn,C[16]=Jt,C[17]=mn,C[18]=on,N!==0&&(C[19]=N,i.length++),i};function k(e,r,i){return new A().mulp(e,r,i)}function A(e,r){this.x=e,this.y=r}Math.imul||(b=w),s.prototype.mulTo=function(e,r){var i,n=this.length+e.length;return i=this.length===10&&e.length===10?b(this,e,r):n<63?w(this,e,r):n<1024?function(t,o,a){a.negative=o.negative^t.negative,a.length=t.length+o.length;for(var T=0,C=0,N=0;N<a.length-1;N++){var O=C;C=0;for(var R=67108863&T,F=Math.min(N,o.length-1),Z=Math.max(0,N-t.length+1);Z<=F;Z++){var ie=N-Z,D=(0|t.words[ie])*(0|o.words[Z]),Y=67108863&D;R=67108863&(Y=Y+R|0),C+=(O=(O=O+(D/67108864|0)|0)+(Y>>>26)|0)>>>26,O&=67108863}a.words[N]=R,T=O,O=C}return T!==0?a.words[N]=T:a.length--,a.strip()}(this,e,r):k(this,e,r),i},A.prototype.makeRBT=function(e){for(var r=new Array(e),i=s.prototype._countBits(e)-1,n=0;n<e;n++)r[n]=this.revBin(n,i,e);return r},A.prototype.revBin=function(e,r,i){if(e===0||e===i-1)return e;for(var n=0,t=0;t<r;t++)n|=(1&e)<<r-t-1,e>>=1;return n},A.prototype.permute=function(e,r,i,n,t,o){for(var a=0;a<o;a++)n[a]=r[e[a]],t[a]=i[e[a]]},A.prototype.transform=function(e,r,i,n,t,o){this.permute(o,e,r,i,n,t);for(var a=1;a<t;a<<=1)for(var T=a<<1,C=Math.cos(2*Math.PI/T),N=Math.sin(2*Math.PI/T),O=0;O<t;O+=T)for(var R=C,F=N,Z=0;Z<a;Z++){var ie=i[O+Z],D=n[O+Z],Y=i[O+Z+a],z=n[O+Z+a],W=R*Y-F*z;z=R*z+F*Y,Y=W,i[O+Z]=ie+Y,n[O+Z]=D+z,i[O+Z+a]=ie-Y,n[O+Z+a]=D-z,Z!==T&&(W=C*R-N*F,F=C*F+N*R,R=W)}},A.prototype.guessLen13b=function(e,r){var i=1|Math.max(r,e),n=1&i,t=0;for(i=i/2|0;i;i>>>=1)t++;return 1<<t+1+n},A.prototype.conjugate=function(e,r,i){if(!(i<=1))for(var n=0;n<i/2;n++){var t=e[n];e[n]=e[i-n-1],e[i-n-1]=t,t=r[n],r[n]=-r[i-n-1],r[i-n-1]=-t}},A.prototype.normalize13b=function(e,r){for(var i=0,n=0;n<r/2;n++){var t=8192*Math.round(e[2*n+1]/r)+Math.round(e[2*n]/r)+i;e[n]=67108863&t,i=t<67108864?0:t/67108864|0}return e},A.prototype.convert13b=function(e,r,i,n){for(var t=0,o=0;o<r;o++)t+=0|e[o],i[2*o]=8191&t,t>>>=13,i[2*o+1]=8191&t,t>>>=13;for(o=2*r;o<n;++o)i[o]=0;m(t===0),m((-8192&t)==0)},A.prototype.stub=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=0;return r},A.prototype.mulp=function(e,r,i){var n=2*this.guessLen13b(e.length,r.length),t=this.makeRBT(n),o=this.stub(n),a=new Array(n),T=new Array(n),C=new Array(n),N=new Array(n),O=new Array(n),R=new Array(n),F=i.words;F.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(r.words,r.length,N,n),this.transform(a,o,T,C,n,t),this.transform(N,o,O,R,n,t);for(var Z=0;Z<n;Z++){var ie=T[Z]*O[Z]-C[Z]*R[Z];C[Z]=T[Z]*R[Z]+C[Z]*O[Z],T[Z]=ie}return this.conjugate(T,C,n),this.transform(T,C,F,o,n,t),this.conjugate(F,o,n),this.normalize13b(F,n),i.negative=e.negative^r.negative,i.length=e.length+r.length,i.strip()},s.prototype.mul=function(e){var r=new s(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},s.prototype.mulf=function(e){var r=new s(null);return r.words=new Array(this.length+e.length),k(this,e,r)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){m(typeof e=="number"),m(e<67108864);for(var r=0,i=0;i<this.length;i++){var n=(0|this.words[i])*e,t=(67108863&n)+(67108863&r);r>>=26,r+=n/67108864|0,r+=t>>>26,this.words[i]=67108863&t}return r!==0&&(this.words[i]=r,this.length++),this},s.prototype.muln=function(e){return this.clone().imuln(e)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(e){var r=function(o){for(var a=new Array(o.bitLength()),T=0;T<a.length;T++){var C=T/26|0,N=T%26;a[T]=(o.words[C]&1<<N)>>>N}return a}(e);if(r.length===0)return new s(1);for(var i=this,n=0;n<r.length&&r[n]===0;n++,i=i.sqr());if(++n<r.length)for(var t=i.sqr();n<r.length;n++,t=t.sqr())r[n]!==0&&(i=i.mul(t));return i},s.prototype.iushln=function(e){m(typeof e=="number"&&e>=0);var r,i=e%26,n=(e-i)/26,t=67108863>>>26-i<<26-i;if(i!==0){var o=0;for(r=0;r<this.length;r++){var a=this.words[r]&t,T=(0|this.words[r])-a<<i;this.words[r]=T|o,o=a>>>26-i}o&&(this.words[r]=o,this.length++)}if(n!==0){for(r=this.length-1;r>=0;r--)this.words[r+n]=this.words[r];for(r=0;r<n;r++)this.words[r]=0;this.length+=n}return this.strip()},s.prototype.ishln=function(e){return m(this.negative===0),this.iushln(e)},s.prototype.iushrn=function(e,r,i){var n;m(typeof e=="number"&&e>=0),n=r?(r-r%26)/26:0;var t=e%26,o=Math.min((e-t)/26,this.length),a=67108863^67108863>>>t<<t,T=i;if(n-=o,n=Math.max(0,n),T){for(var C=0;C<o;C++)T.words[C]=this.words[C];T.length=o}if(o!==0)if(this.length>o)for(this.length-=o,C=0;C<this.length;C++)this.words[C]=this.words[C+o];else this.words[0]=0,this.length=1;var N=0;for(C=this.length-1;C>=0&&(N!==0||C>=n);C--){var O=0|this.words[C];this.words[C]=N<<26-t|O>>>t,N=O&a}return T&&N!==0&&(T.words[T.length++]=N),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(e,r,i){return m(this.negative===0),this.iushrn(e,r,i)},s.prototype.shln=function(e){return this.clone().ishln(e)},s.prototype.ushln=function(e){return this.clone().iushln(e)},s.prototype.shrn=function(e){return this.clone().ishrn(e)},s.prototype.ushrn=function(e){return this.clone().iushrn(e)},s.prototype.testn=function(e){m(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,n=1<<r;return!(this.length<=i||!(this.words[i]&n))},s.prototype.imaskn=function(e){m(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(r!==0&&i++,this.length=Math.min(i,this.length),r!==0){var n=67108863^67108863>>>r<<r;this.words[this.length-1]&=n}return this.strip()},s.prototype.maskn=function(e){return this.clone().imaskn(e)},s.prototype.iaddn=function(e){return m(typeof e=="number"),m(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},s.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},s.prototype.isubn=function(e){if(m(typeof e=="number"),m(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},s.prototype.addn=function(e){return this.clone().iaddn(e)},s.prototype.subn=function(e){return this.clone().isubn(e)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(e,r,i){var n,t,o=e.length+i;this._expand(o);var a=0;for(n=0;n<e.length;n++){t=(0|this.words[n+i])+a;var T=(0|e.words[n])*r;a=((t-=67108863&T)>>26)-(T/67108864|0),this.words[n+i]=67108863&t}for(;n<this.length-i;n++)a=(t=(0|this.words[n+i])+a)>>26,this.words[n+i]=67108863&t;if(a===0)return this.strip();for(m(a===-1),a=0,n=0;n<this.length;n++)a=(t=-(0|this.words[n])+a)>>26,this.words[n]=67108863&t;return this.negative=1,this.strip()},s.prototype._wordDiv=function(e,r){var i=(this.length,e.length),n=this.clone(),t=e,o=0|t.words[t.length-1];(i=26-this._countBits(o))!=0&&(t=t.ushln(i),n.iushln(i),o=0|t.words[t.length-1]);var a,T=n.length-t.length;if(r!=="mod"){(a=new s(null)).length=T+1,a.words=new Array(a.length);for(var C=0;C<a.length;C++)a.words[C]=0}var N=n.clone()._ishlnsubmul(t,1,T);N.negative===0&&(n=N,a&&(a.words[T]=1));for(var O=T-1;O>=0;O--){var R=67108864*(0|n.words[t.length+O])+(0|n.words[t.length+O-1]);for(R=Math.min(R/o|0,67108863),n._ishlnsubmul(t,R,O);n.negative!==0;)R--,n.negative=0,n._ishlnsubmul(t,1,O),n.isZero()||(n.negative^=1);a&&(a.words[O]=R)}return a&&a.strip(),n.strip(),r!=="div"&&i!==0&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(e,r,i){return m(!e.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:this.negative!==0&&e.negative===0?(o=this.neg().divmod(e,r),r!=="mod"&&(n=o.div.neg()),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.iadd(e)),{div:n,mod:t}):this.negative===0&&e.negative!==0?(o=this.divmod(e.neg(),r),r!=="mod"&&(n=o.div.neg()),{div:n,mod:o.mod}):this.negative&e.negative?(o=this.neg().divmod(e.neg(),r),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.isub(e)),{div:o.div,mod:t}):e.length>this.length||this.cmp(e)<0?{div:new s(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new s(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modn(e.words[0]))}:this._wordDiv(e,r);var n,t,o},s.prototype.div=function(e){return this.divmod(e,"div",!1).div},s.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},s.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},s.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var i=r.div.negative!==0?r.mod.isub(e):r.mod,n=e.ushrn(1),t=e.andln(1),o=i.cmp(n);return o<0||t===1&&o===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},s.prototype.modn=function(e){m(e<=67108863);for(var r=67108864%e,i=0,n=this.length-1;n>=0;n--)i=(r*i+(0|this.words[n]))%e;return i},s.prototype.idivn=function(e){m(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*r;this.words[i]=n/e|0,r=n%e}return this.strip()},s.prototype.divn=function(e){return this.clone().idivn(e)},s.prototype.egcd=function(e){m(e.negative===0),m(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n=new s(1),t=new s(0),o=new s(0),a=new s(1),T=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++T;for(var C=i.clone(),N=r.clone();!r.isZero();){for(var O=0,R=1;!(r.words[0]&R)&&O<26;++O,R<<=1);if(O>0)for(r.iushrn(O);O-- >0;)(n.isOdd()||t.isOdd())&&(n.iadd(C),t.isub(N)),n.iushrn(1),t.iushrn(1);for(var F=0,Z=1;!(i.words[0]&Z)&&F<26;++F,Z<<=1);if(F>0)for(i.iushrn(F);F-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(C),a.isub(N)),o.iushrn(1),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),n.isub(o),t.isub(a)):(i.isub(r),o.isub(n),a.isub(t))}return{a:o,b:a,gcd:i.iushln(T)}},s.prototype._invmp=function(e){m(e.negative===0),m(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n,t=new s(1),o=new s(0),a=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var T=0,C=1;!(r.words[0]&C)&&T<26;++T,C<<=1);if(T>0)for(r.iushrn(T);T-- >0;)t.isOdd()&&t.iadd(a),t.iushrn(1);for(var N=0,O=1;!(i.words[0]&O)&&N<26;++N,O<<=1);if(N>0)for(i.iushrn(N);N-- >0;)o.isOdd()&&o.iadd(a),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),t.isub(o)):(i.isub(r),o.isub(t))}return(n=r.cmpn(1)===0?t:o).cmpn(0)<0&&n.iadd(e),n},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),i=e.clone();r.negative=0,i.negative=0;for(var n=0;r.isEven()&&i.isEven();n++)r.iushrn(1),i.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var t=r.cmp(i);if(t<0){var o=r;r=i,i=o}else if(t===0||i.cmpn(1)===0)break;r.isub(i)}return i.iushln(n)},s.prototype.invm=function(e){return this.egcd(e).a.umod(e)},s.prototype.isEven=function(){return(1&this.words[0])==0},s.prototype.isOdd=function(){return(1&this.words[0])==1},s.prototype.andln=function(e){return this.words[0]&e},s.prototype.bincn=function(e){m(typeof e=="number");var r=e%26,i=(e-r)/26,n=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var t=n,o=i;t!==0&&o<this.length;o++){var a=0|this.words[o];t=(a+=t)>>>26,a&=67108863,this.words[o]=a}return t!==0&&(this.words[o]=t,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(e){var r,i=e<0;if(this.negative!==0&&!i)return-1;if(this.negative===0&&i)return 1;if(this.strip(),this.length>1)r=1;else{i&&(e=-e),m(e<=67108863,"Number is too big");var n=0|this.words[0];r=n===e?0:n<e?-1:1}return this.negative!==0?0|-r:r},s.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?0|-r:r},s.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],t=0|e.words[i];if(n!==t){n<t?r=-1:n>t&&(r=1);break}}return r},s.prototype.gtn=function(e){return this.cmpn(e)===1},s.prototype.gt=function(e){return this.cmp(e)===1},s.prototype.gten=function(e){return this.cmpn(e)>=0},s.prototype.gte=function(e){return this.cmp(e)>=0},s.prototype.ltn=function(e){return this.cmpn(e)===-1},s.prototype.lt=function(e){return this.cmp(e)===-1},s.prototype.lten=function(e){return this.cmpn(e)<=0},s.prototype.lte=function(e){return this.cmp(e)<=0},s.prototype.eqn=function(e){return this.cmpn(e)===0},s.prototype.eq=function(e){return this.cmp(e)===0},s.red=function(e){return new J(e)},s.prototype.toRed=function(e){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(e){return this.red=e,this},s.prototype.forceRed=function(e){return m(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return m(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};function j(e,r){this.name=e,this.p=new s(r,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function P(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function B(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function $(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function te(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(e){if(typeof e=="string"){var r=s._prime(e);this.m=r.p,this.prime=r}else m(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function oe(e){J.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}j.prototype._tmp=function(){var e=new s(null);return e.words=new Array(Math.ceil(this.n/13)),e},j.prototype.ireduce=function(e){var r,i=e;do this.split(i,this.tmp),r=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength();while(r>this.n);var n=r<this.n?-1:i.ucmp(this.p);return n===0?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):i.strip!==void 0?i.strip():i._strip(),i},j.prototype.split=function(e,r){e.iushrn(this.n,0,r)},j.prototype.imulK=function(e){return e.imul(this.k)},E(P,j),P.prototype.split=function(e,r){for(var i=4194303,n=Math.min(e.length,9),t=0;t<n;t++)r.words[t]=e.words[t];if(r.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(r.words[r.length++]=o&i,t=10;t<e.length;t++){var a=0|e.words[t];e.words[t-10]=(a&i)<<4|o>>>22,o=a}o>>>=22,e.words[t-10]=o,o===0&&e.length>10?e.length-=10:e.length-=9},P.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,i=0;i<e.length;i++){var n=0|e.words[i];r+=977*n,e.words[i]=67108863&r,r=64*n+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e},E(B,j),E($,j),E(te,j),te.prototype.imulK=function(e){for(var r=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+r,t=67108863&n;n>>>=26,e.words[i]=t,r=n}return r!==0&&(e.words[e.length++]=r),e},s._prime=function(e){if(x[e])return x[e];var r;if(e==="k256")r=new P;else if(e==="p224")r=new B;else if(e==="p192")r=new $;else{if(e!=="p25519")throw new Error("Unknown prime "+e);r=new te}return x[e]=r,r},J.prototype._verify1=function(e){m(e.negative===0,"red works only with positives"),m(e.red,"red works only with red numbers")},J.prototype._verify2=function(e,r){m((e.negative|r.negative)==0,"red works only with positives"),m(e.red&&e.red===r.red,"red works only with red numbers")},J.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},J.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},J.prototype.add=function(e,r){this._verify2(e,r);var i=e.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},J.prototype.iadd=function(e,r){this._verify2(e,r);var i=e.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},J.prototype.sub=function(e,r){this._verify2(e,r);var i=e.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},J.prototype.isub=function(e,r){this._verify2(e,r);var i=e.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},J.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},J.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},J.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},J.prototype.isqr=function(e){return this.imul(e,e.clone())},J.prototype.sqr=function(e){return this.mul(e,e)},J.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(m(r%2==1),r===3){var i=this.m.add(new s(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),t=0;!n.isZero()&&n.andln(1)===0;)t++,n.iushrn(1);m(!n.isZero());var o=new s(1).toRed(this),a=o.redNeg(),T=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new s(2*C*C).toRed(this);this.pow(C,T).cmp(a)!==0;)C.redIAdd(a);for(var N=this.pow(C,n),O=this.pow(e,n.addn(1).iushrn(1)),R=this.pow(e,n),F=t;R.cmp(o)!==0;){for(var Z=R,ie=0;Z.cmp(o)!==0;ie++)Z=Z.redSqr();m(ie<F);var D=this.pow(N,new s(1).iushln(F-ie-1));O=O.redMul(D),N=D.redSqr(),R=R.redMul(N),F=ie}return O},J.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},J.prototype.pow=function(e,r){if(r.isZero())return new s(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var i=new Array(16);i[0]=new s(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var t=i[0],o=0,a=0,T=r.bitLength()%26;for(T===0&&(T=26),n=r.length-1;n>=0;n--){for(var C=r.words[n],N=T-1;N>=0;N--){var O=C>>N&1;t!==i[0]&&(t=this.sqr(t)),O!==0||o!==0?(o<<=1,o|=O,(++a==4||n===0&&N===0)&&(t=this.mul(t,i[o]),a=0,o=0)):a=0}T=26}return t},J.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},J.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},s.mont=function(e){return new oe(e)},E(oe,J),oe.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},oe.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},oe.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},oe.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new s(0)._forceRed(this);var i=e.mul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},oe.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(H=y.nmd(H),this)},6266:(H,_,y)=>{var M=_;M.version=y(8597).i8,M.utils=y(953),M.rand=y(9931),M.curve=y(8254),M.curves=y(5427),M.ec=y(7954),M.eddsa=y(5980)},4918:(H,_,y)=>{var M=y(3785),v=y(953),m=v.getNAF,E=v.getJSF,s=v.assert;function p(l,f){this.type=l,this.p=new M(f.p,16),this.red=f.prime?M.red(f.prime):M.mont(this.p),this.zero=new M(0).toRed(this.red),this.one=new M(1).toRed(this.red),this.two=new M(2).toRed(this.red),this.n=f.n&&new M(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 g=this.n&&this.p.div(this.n);!g||g.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(l,f){this.curve=l,this.type=f,this.precomputed=null}H.exports=p,p.prototype.point=function(){throw new Error("Not implemented")},p.prototype.validate=function(){throw new Error("Not implemented")},p.prototype._fixedNafMul=function(l,f){s(l.precomputed);var g=l._getDoubles(),h=m(f,1,this._bitLength),u=(1<<g.step+1)-(g.step%2==0?2:1);u/=3;var w,b,k=[];for(w=0;w<h.length;w+=g.step){b=0;for(var A=w+g.step-1;A>=w;A--)b=(b<<1)+h[A];k.push(b)}for(var x=this.jpoint(null,null,null),j=this.jpoint(null,null,null),P=u;P>0;P--){for(w=0;w<k.length;w++)(b=k[w])===P?j=j.mixedAdd(g.points[w]):b===-P&&(j=j.mixedAdd(g.points[w].neg()));x=x.add(j)}return x.toP()},p.prototype._wnafMul=function(l,f){var g=4,h=l._getNAFPoints(g);g=h.wnd;for(var u=h.points,w=m(f,g,this._bitLength),b=this.jpoint(null,null,null),k=w.length-1;k>=0;k--){for(var A=0;k>=0&&w[k]===0;k--)A++;if(k>=0&&A++,b=b.dblp(A),k<0)break;var x=w[k];s(x!==0),b=l.type==="affine"?x>0?b.mixedAdd(u[x-1>>1]):b.mixedAdd(u[-x-1>>1].neg()):x>0?b.add(u[x-1>>1]):b.add(u[-x-1>>1].neg())}return l.type==="affine"?b.toP():b},p.prototype._wnafMulAdd=function(l,f,g,h,u){var w,b,k,A=this._wnafT1,x=this._wnafT2,j=this._wnafT3,P=0;for(w=0;w<h;w++){var B=(k=f[w])._getNAFPoints(l);A[w]=B.wnd,x[w]=B.points}for(w=h-1;w>=1;w-=2){var $=w-1,te=w;if(A[$]===1&&A[te]===1){var J=[f[$],null,null,f[te]];f[$].y.cmp(f[te].y)===0?(J[1]=f[$].add(f[te]),J[2]=f[$].toJ().mixedAdd(f[te].neg())):f[$].y.cmp(f[te].y.redNeg())===0?(J[1]=f[$].toJ().mixedAdd(f[te]),J[2]=f[$].add(f[te].neg())):(J[1]=f[$].toJ().mixedAdd(f[te]),J[2]=f[$].toJ().mixedAdd(f[te].neg()));var oe=[-3,-1,-5,-7,0,7,5,1,3],e=E(g[$],g[te]);for(P=Math.max(e[0].length,P),j[$]=new Array(P),j[te]=new Array(P),b=0;b<P;b++){var r=0|e[0][b],i=0|e[1][b];j[$][b]=oe[3*(r+1)+(i+1)],j[te][b]=0,x[$]=J}}else j[$]=m(g[$],A[$],this._bitLength),j[te]=m(g[te],A[te],this._bitLength),P=Math.max(j[$].length,P),P=Math.max(j[te].length,P)}var n=this.jpoint(null,null,null),t=this._wnafT4;for(w=P;w>=0;w--){for(var o=0;w>=0;){var a=!0;for(b=0;b<h;b++)t[b]=0|j[b][w],t[b]!==0&&(a=!1);if(!a)break;o++,w--}if(w>=0&&o++,n=n.dblp(o),w<0)break;for(b=0;b<h;b++){var T=t[b];T!==0&&(T>0?k=x[b][T-1>>1]:T<0&&(k=x[b][-T-1>>1].neg()),n=k.type==="affine"?n.mixedAdd(k):n.add(k))}}for(w=0;w<h;w++)x[w]=null;return u?n:n.toP()},p.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},p.prototype.decodePoint=function(l,f){l=v.toArray(l,f);var g=this.p.byteLength();if((l[0]===4||l[0]===6||l[0]===7)&&l.length-1==2*g)return l[0]===6?s(l[l.length-1]%2==0):l[0]===7&&s(l[l.length-1]%2==1),this.point(l.slice(1,1+g),l.slice(1+g,1+2*g));if((l[0]===2||l[0]===3)&&l.length-1===g)return this.pointFromX(l.slice(1,1+g),l[0]===3);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(l){return this.encode(l,!0)},c.prototype._encode=function(l){var f=this.curve.p.byteLength(),g=this.getX().toArray("be",f);return l?[this.getY().isEven()?2:3].concat(g):[4].concat(g,this.getY().toArray("be",f))},c.prototype.encode=function(l,f){return v.encode(this._encode(f),l)},c.prototype.precompute=function(l){if(this.precomputed)return this;var f={doubles:null,naf:null,beta:null};return f.naf=this._getNAFPoints(8),f.doubles=this._getDoubles(4,l),f.beta=this._getBeta(),this.precomputed=f,this},c.prototype._hasDoubles=function(l){if(!this.precomputed)return!1;var f=this.precomputed.doubles;return!!f&&f.points.length>=Math.ceil((l.bitLength()+1)/f.step)},c.prototype._getDoubles=function(l,f){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var g=[this],h=this,u=0;u<f;u+=l){for(var w=0;w<l;w++)h=h.dbl();g.push(h)}return{step:l,points:g}},c.prototype._getNAFPoints=function(l){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var f=[this],g=(1<<l)-1,h=g===1?null:this.dbl(),u=1;u<g;u++)f[u]=f[u-1].add(h);return{wnd:l,points:f}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(l){for(var f=this,g=0;g<l;g++)f=f.dbl();return f}},1138:(H,_,y)=>{var M=y(953),v=y(3785),m=y(5717),E=y(4918),s=M.assert;function p(l){this.twisted=(0|l.a)!=1,this.mOneA=this.twisted&&(0|l.a)==-1,this.extended=this.mOneA,E.call(this,"edwards",l),this.a=new v(l.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new v(l.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new v(l.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|l.c)==1}function c(l,f,g,h,u){E.BasePoint.call(this,l,"projective"),f===null&&g===null&&h===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 v(f,16),this.y=new v(g,16),this.z=h?new v(h,16):this.curve.one,this.t=u&&new v(u,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()))))}m(p,E),H.exports=p,p.prototype._mulA=function(l){return this.mOneA?l.redNeg():this.a.redMul(l)},p.prototype._mulC=function(l){return this.oneC?l:this.c.redMul(l)},p.prototype.jpoint=function(l,f,g,h){return this.point(l,f,g,h)},p.prototype.pointFromX=function(l,f){(l=new v(l,16)).red||(l=l.toRed(this.red));var g=l.redSqr(),h=this.c2.redSub(this.a.redMul(g)),u=this.one.redSub(this.c2.redMul(this.d).redMul(g)),w=h.redMul(u.redInvm()),b=w.redSqrt();if(b.redSqr().redSub(w).cmp(this.zero)!==0)throw new Error("invalid point");var k=b.fromRed().isOdd();return(f&&!k||!f&&k)&&(b=b.redNeg()),this.point(l,b)},p.prototype.pointFromY=function(l,f){(l=new v(l,16)).red||(l=l.toRed(this.red));var g=l.redSqr(),h=g.redSub(this.c2),u=g.redMul(this.d).redMul(this.c2).redSub(this.a),w=h.redMul(u.redInvm());if(w.cmp(this.zero)===0){if(f)throw new Error("invalid point");return this.point(this.zero,l)}var b=w.redSqrt();if(b.redSqr().redSub(w).cmp(this.zero)!==0)throw new Error("invalid point");return b.fromRed().isOdd()!==f&&(b=b.redNeg()),this.point(b,l)},p.prototype.validate=function(l){if(l.isInfinity())return!0;l.normalize();var f=l.x.redSqr(),g=l.y.redSqr(),h=f.redMul(this.a).redAdd(g),u=this.c2.redMul(this.one.redAdd(this.d.redMul(f).redMul(g)));return h.cmp(u)===0},m(c,E.BasePoint),p.prototype.pointFromJSON=function(l){return c.fromJSON(this,l)},p.prototype.point=function(l,f,g,h){return new c(this,l,f,g,h)},c.fromJSON=function(l,f){return new c(l,f[0],f[1],f[2])},c.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)+">"},c.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},c.prototype._extDbl=function(){var l=this.x.redSqr(),f=this.y.redSqr(),g=this.z.redSqr();g=g.redIAdd(g);var h=this.curve._mulA(l),u=this.x.redAdd(this.y).redSqr().redISub(l).redISub(f),w=h.redAdd(f),b=w.redSub(g),k=h.redSub(f),A=u.redMul(b),x=w.redMul(k),j=u.redMul(k),P=b.redMul(w);return this.curve.point(A,x,P,j)},c.prototype._projDbl=function(){var l,f,g,h,u,w,b=this.x.redAdd(this.y).redSqr(),k=this.x.redSqr(),A=this.y.redSqr();if(this.curve.twisted){var x=(h=this.curve._mulA(k)).redAdd(A);this.zOne?(l=b.redSub(k).redSub(A).redMul(x.redSub(this.curve.two)),f=x.redMul(h.redSub(A)),g=x.redSqr().redSub(x).redSub(x)):(u=this.z.redSqr(),w=x.redSub(u).redISub(u),l=b.redSub(k).redISub(A).redMul(w),f=x.redMul(h.redSub(A)),g=x.redMul(w))}else h=k.redAdd(A),u=this.curve._mulC(this.z).redSqr(),w=h.redSub(u).redSub(u),l=this.curve._mulC(b.redISub(h)).redMul(w),f=this.curve._mulC(h).redMul(k.redISub(A)),g=h.redMul(w);return this.curve.point(l,f,g)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(l){var f=this.y.redSub(this.x).redMul(l.y.redSub(l.x)),g=this.y.redAdd(this.x).redMul(l.y.redAdd(l.x)),h=this.t.redMul(this.curve.dd).redMul(l.t),u=this.z.redMul(l.z.redAdd(l.z)),w=g.redSub(f),b=u.redSub(h),k=u.redAdd(h),A=g.redAdd(f),x=w.redMul(b),j=k.redMul(A),P=w.redMul(A),B=b.redMul(k);return this.curve.point(x,j,B,P)},c.prototype._projAdd=function(l){var f,g,h=this.z.redMul(l.z),u=h.redSqr(),w=this.x.redMul(l.x),b=this.y.redMul(l.y),k=this.curve.d.redMul(w).redMul(b),A=u.redSub(k),x=u.redAdd(k),j=this.x.redAdd(this.y).redMul(l.x.redAdd(l.y)).redISub(w).redISub(b),P=h.redMul(A).redMul(j);return this.curve.twisted?(f=h.redMul(x).redMul(b.redSub(this.curve._mulA(w))),g=A.redMul(x)):(f=h.redMul(x).redMul(b.redSub(w)),g=this.curve._mulC(A).redMul(x)),this.curve.point(P,f,g)},c.prototype.add=function(l){return this.isInfinity()?l:l.isInfinity()?this:this.curve.extended?this._extAdd(l):this._projAdd(l)},c.prototype.mul=function(l){return this._hasDoubles(l)?this.curve._fixedNafMul(this,l):this.curve._wnafMul(this,l)},c.prototype.mulAdd=function(l,f,g){return this.curve._wnafMulAdd(1,[this,f],[l,g],2,!1)},c.prototype.jmulAdd=function(l,f,g){return this.curve._wnafMulAdd(1,[this,f],[l,g],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var l=this.z.redInvm();return this.x=this.x.redMul(l),this.y=this.y.redMul(l),this.t&&(this.t=this.t.redMul(l)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(l){return this===l||this.getX().cmp(l.getX())===0&&this.getY().cmp(l.getY())===0},c.prototype.eqXToP=function(l){var f=l.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(f)===0)return!0;for(var g=l.clone(),h=this.curve.redN.redMul(this.z);;){if(g.iadd(this.curve.n),g.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(h),this.x.cmp(f)===0)return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},8254:(H,_,y)=>{var M=_;M.base=y(4918),M.short=y(6673),M.mont=y(2881),M.edwards=y(1138)},2881:(H,_,y)=>{var M=y(3785),v=y(5717),m=y(4918),E=y(953);function s(c){m.call(this,"mont",c),this.a=new M(c.a,16).toRed(this.red),this.b=new M(c.b,16).toRed(this.red),this.i4=new M(4).toRed(this.red).redInvm(),this.two=new M(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function p(c,l,f){m.BasePoint.call(this,c,"projective"),l===null&&f===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new M(l,16),this.z=new M(f,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}v(s,m),H.exports=s,s.prototype.validate=function(c){var l=c.normalize().x,f=l.redSqr(),g=f.redMul(l).redAdd(f.redMul(this.a)).redAdd(l);return g.redSqrt().redSqr().cmp(g)===0},v(p,m.BasePoint),s.prototype.decodePoint=function(c,l){return this.point(E.toArray(c,l),1)},s.prototype.point=function(c,l){return new p(this,c,l)},s.prototype.pointFromJSON=function(c){return p.fromJSON(this,c)},p.prototype.precompute=function(){},p.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},p.fromJSON=function(c,l){return new p(c,l[0],l[1]||c.one)},p.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)+">"},p.prototype.isInfinity=function(){return this.z.cmpn(0)===0},p.prototype.dbl=function(){var c=this.x.redAdd(this.z).redSqr(),l=this.x.redSub(this.z).redSqr(),f=c.redSub(l),g=c.redMul(l),h=f.redMul(l.redAdd(this.curve.a24.redMul(f)));return this.curve.point(g,h)},p.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},p.prototype.diffAdd=function(c,l){var f=this.x.redAdd(this.z),g=this.x.redSub(this.z),h=c.x.redAdd(c.z),u=c.x.redSub(c.z).redMul(f),w=h.redMul(g),b=l.z.redMul(u.redAdd(w).redSqr()),k=l.x.redMul(u.redISub(w).redSqr());return this.curve.point(b,k)},p.prototype.mul=function(c){for(var l=c.clone(),f=this,g=this.curve.point(null,null),h=[];l.cmpn(0)!==0;l.iushrn(1))h.push(l.andln(1));for(var u=h.length-1;u>=0;u--)h[u]===0?(f=f.diffAdd(g,this),g=g.dbl()):(g=f.diffAdd(g,this),f=f.dbl());return g},p.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},p.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},p.prototype.eq=function(c){return this.getX().cmp(c.getX())===0},p.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},p.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},6673:(H,_,y)=>{var M=y(953),v=y(3785),m=y(5717),E=y(4918),s=M.assert;function p(f){E.call(this,"short",f),this.a=new v(f.a,16).toRed(this.red),this.b=new v(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)}function c(f,g,h,u){E.BasePoint.call(this,f,"affine"),g===null&&h===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new v(g,16),this.y=new v(h,16),u&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(f,g,h,u){E.BasePoint.call(this,f,"jacobian"),g===null&&h===null&&u===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new v(0)):(this.x=new v(g,16),this.y=new v(h,16),this.z=new v(u,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}m(p,E),H.exports=p,p.prototype._getEndomorphism=function(f){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var g,h;if(f.beta)g=new v(f.beta,16).toRed(this.red);else{var u=this._getEndoRoots(this.p);g=(g=u[0].cmp(u[1])<0?u[0]:u[1]).toRed(this.red)}if(f.lambda)h=new v(f.lambda,16);else{var w=this._getEndoRoots(this.n);this.g.mul(w[0]).x.cmp(this.g.x.redMul(g))===0?h=w[0]:(h=w[1],s(this.g.mul(h).x.cmp(this.g.x.redMul(g))===0))}return{beta:g,lambda:h,basis:f.basis?f.basis.map(function(b){return{a:new v(b.a,16),b:new v(b.b,16)}}):this._getEndoBasis(h)}}},p.prototype._getEndoRoots=function(f){var g=f===this.p?this.red:v.mont(f),h=new v(2).toRed(g).redInvm(),u=h.redNeg(),w=new v(3).toRed(g).redNeg().redSqrt().redMul(h);return[u.redAdd(w).fromRed(),u.redSub(w).fromRed()]},p.prototype._getEndoBasis=function(f){for(var g,h,u,w,b,k,A,x,j,P=this.n.ushrn(Math.floor(this.n.bitLength()/2)),B=f,$=this.n.clone(),te=new v(1),J=new v(0),oe=new v(0),e=new v(1),r=0;B.cmpn(0)!==0;){var i=$.div(B);x=$.sub(i.mul(B)),j=oe.sub(i.mul(te));var n=e.sub(i.mul(J));if(!u&&x.cmp(P)<0)g=A.neg(),h=te,u=x.neg(),w=j;else if(u&&++r==2)break;A=x,$=B,B=x,oe=te,te=j,e=J,J=n}b=x.neg(),k=j;var t=u.sqr().add(w.sqr());return b.sqr().add(k.sqr()).cmp(t)>=0&&(b=g,k=h),u.negative&&(u=u.neg(),w=w.neg()),b.negative&&(b=b.neg(),k=k.neg()),[{a:u,b:w},{a:b,b:k}]},p.prototype._endoSplit=function(f){var g=this.endo.basis,h=g[0],u=g[1],w=u.b.mul(f).divRound(this.n),b=h.b.neg().mul(f).divRound(this.n),k=w.mul(h.a),A=b.mul(u.a),x=w.mul(h.b),j=b.mul(u.b);return{k1:f.sub(k).sub(A),k2:x.add(j).neg()}},p.prototype.pointFromX=function(f,g){(f=new v(f,16)).red||(f=f.toRed(this.red));var h=f.redSqr().redMul(f).redIAdd(f.redMul(this.a)).redIAdd(this.b),u=h.redSqrt();if(u.redSqr().redSub(h).cmp(this.zero)!==0)throw new Error("invalid point");var w=u.fromRed().isOdd();return(g&&!w||!g&&w)&&(u=u.redNeg()),this.point(f,u)},p.prototype.validate=function(f){if(f.inf)return!0;var g=f.x,h=f.y,u=this.a.redMul(g),w=g.redSqr().redMul(g).redIAdd(u).redIAdd(this.b);return h.redSqr().redISub(w).cmpn(0)===0},p.prototype._endoWnafMulAdd=function(f,g,h){for(var u=this._endoWnafT1,w=this._endoWnafT2,b=0;b<f.length;b++){var k=this._endoSplit(g[b]),A=f[b],x=A._getBeta();k.k1.negative&&(k.k1.ineg(),A=A.neg(!0)),k.k2.negative&&(k.k2.ineg(),x=x.neg(!0)),u[2*b]=A,u[2*b+1]=x,w[2*b]=k.k1,w[2*b+1]=k.k2}for(var j=this._wnafMulAdd(1,u,w,2*b,h),P=0;P<2*b;P++)u[P]=null,w[P]=null;return j},m(c,E.BasePoint),p.prototype.point=function(f,g,h){return new c(this,f,g,h)},p.prototype.pointFromJSON=function(f,g){return c.fromJSON(this,f,g)},c.prototype._getBeta=function(){if(this.curve.endo){var f=this.precomputed;if(f&&f.beta)return f.beta;var g=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(f){var h=this.curve,u=function(w){return h.point(w.x.redMul(h.endo.beta),w.y)};f.beta=g,g.precomputed={beta:null,naf:f.naf&&{wnd:f.naf.wnd,points:f.naf.points.map(u)},doubles:f.doubles&&{step:f.doubles.step,points:f.doubles.points.map(u)}}}return g}},c.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]},c.fromJSON=function(f,g,h){typeof g=="string"&&(g=JSON.parse(g));var u=f.point(g[0],g[1],h);if(!g[2])return u;function w(k){return f.point(k[0],k[1],h)}var b=g[2];return u.precomputed={beta:null,doubles:b.doubles&&{step:b.doubles.step,points:[u].concat(b.doubles.points.map(w))},naf:b.naf&&{wnd:b.naf.wnd,points:[u].concat(b.naf.points.map(w))}},u},c.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)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(f){if(this.inf)return f;if(f.inf)return this;if(this.eq(f))return this.dbl();if(this.neg().eq(f))return this.curve.point(null,null);if(this.x.cmp(f.x)===0)return this.curve.point(null,null);var g=this.y.redSub(f.y);g.cmpn(0)!==0&&(g=g.redMul(this.x.redSub(f.x).redInvm()));var h=g.redSqr().redISub(this.x).redISub(f.x),u=g.redMul(this.x.redSub(h)).redISub(this.y);return this.curve.point(h,u)},c.prototype.dbl=function(){if(this.inf)return this;var f=this.y.redAdd(this.y);if(f.cmpn(0)===0)return this.curve.point(null,null);var g=this.curve.a,h=this.x.redSqr(),u=f.redInvm(),w=h.redAdd(h).redIAdd(h).redIAdd(g).redMul(u),b=w.redSqr().redISub(this.x.redAdd(this.x)),k=w.redMul(this.x.redSub(b)).redISub(this.y);return this.curve.point(b,k)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(f){return f=new v(f,16),this.isInfinity()?this:this._hasDoubles(f)?this.curve._fixedNafMul(this,f):this.curve.endo?this.curve._endoWnafMulAdd([this],[f]):this.curve._wnafMul(this,f)},c.prototype.mulAdd=function(f,g,h){var u=[this,g],w=[f,h];return this.curve.endo?this.curve._endoWnafMulAdd(u,w):this.curve._wnafMulAdd(1,u,w,2)},c.prototype.jmulAdd=function(f,g,h){var u=[this,g],w=[f,h];return this.curve.endo?this.curve._endoWnafMulAdd(u,w,!0):this.curve._wnafMulAdd(1,u,w,2,!0)},c.prototype.eq=function(f){return this===f||this.inf===f.inf&&(this.inf||this.x.cmp(f.x)===0&&this.y.cmp(f.y)===0)},c.prototype.neg=function(f){if(this.inf)return this;var g=this.curve.point(this.x,this.y.redNeg());if(f&&this.precomputed){var h=this.precomputed,u=function(w){return w.neg()};g.precomputed={naf:h.naf&&{wnd:h.naf.wnd,points:h.naf.points.map(u)},doubles:h.doubles&&{step:h.doubles.step,points:h.doubles.points.map(u)}}}return g},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},m(l,E.BasePoint),p.prototype.jpoint=function(f,g,h){return new l(this,f,g,h)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var f=this.z.redInvm(),g=f.redSqr(),h=this.x.redMul(g),u=this.y.redMul(g).redMul(f);return this.curve.point(h,u)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(f){if(this.isInfinity())return f;if(f.isInfinity())return this;var g=f.z.redSqr(),h=this.z.redSqr(),u=this.x.redMul(g),w=f.x.redMul(h),b=this.y.redMul(g.redMul(f.z)),k=f.y.redMul(h.redMul(this.z)),A=u.redSub(w),x=b.redSub(k);if(A.cmpn(0)===0)return x.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var j=A.redSqr(),P=j.redMul(A),B=u.redMul(j),$=x.redSqr().redIAdd(P).redISub(B).redISub(B),te=x.redMul(B.redISub($)).redISub(b.redMul(P)),J=this.z.redMul(f.z).redMul(A);return this.curve.jpoint($,te,J)},l.prototype.mixedAdd=function(f){if(this.isInfinity())return f.toJ();if(f.isInfinity())return this;var g=this.z.redSqr(),h=this.x,u=f.x.redMul(g),w=this.y,b=f.y.redMul(g).redMul(this.z),k=h.redSub(u),A=w.redSub(b);if(k.cmpn(0)===0)return A.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var x=k.redSqr(),j=x.redMul(k),P=h.redMul(x),B=A.redSqr().redIAdd(j).redISub(P).redISub(P),$=A.redMul(P.redISub(B)).redISub(w.redMul(j)),te=this.z.redMul(k);return this.curve.jpoint(B,$,te)},l.prototype.dblp=function(f){if(f===0)return this;if(this.isInfinity())return this;if(!f)return this.dbl();var g;if(this.curve.zeroA||this.curve.threeA){var h=this;for(g=0;g<f;g++)h=h.dbl();return h}var u=this.curve.a,w=this.curve.tinv,b=this.x,k=this.y,A=this.z,x=A.redSqr().redSqr(),j=k.redAdd(k);for(g=0;g<f;g++){var P=b.redSqr(),B=j.redSqr(),$=B.redSqr(),te=P.redAdd(P).redIAdd(P).redIAdd(u.redMul(x)),J=b.redMul(B),oe=te.redSqr().redISub(J.redAdd(J)),e=J.redISub(oe),r=te.redMul(e);r=r.redIAdd(r).redISub($);var i=j.redMul(A);g+1<f&&(x=x.redMul($)),b=oe,A=i,j=r}return this.curve.jpoint(b,j.redMul(w),A)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){var f,g,h;if(this.zOne){var u=this.x.redSqr(),w=this.y.redSqr(),b=w.redSqr(),k=this.x.redAdd(w).redSqr().redISub(u).redISub(b);k=k.redIAdd(k);var A=u.redAdd(u).redIAdd(u),x=A.redSqr().redISub(k).redISub(k),j=b.redIAdd(b);j=(j=j.redIAdd(j)).redIAdd(j),f=x,g=A.redMul(k.redISub(x)).redISub(j),h=this.y.redAdd(this.y)}else{var P=this.x.redSqr(),B=this.y.redSqr(),$=B.redSqr(),te=this.x.redAdd(B).redSqr().redISub(P).redISub($);te=te.redIAdd(te);var J=P.redAdd(P).redIAdd(P),oe=J.redSqr(),e=$.redIAdd($);e=(e=e.redIAdd(e)).redIAdd(e),f=oe.redISub(te).redISub(te),g=J.redMul(te.redISub(f)).redISub(e),h=(h=this.y.redMul(this.z)).redIAdd(h)}return this.curve.jpoint(f,g,h)},l.prototype._threeDbl=function(){var f,g,h;if(this.zOne){var u=this.x.redSqr(),w=this.y.redSqr(),b=w.redSqr(),k=this.x.redAdd(w).redSqr().redISub(u).redISub(b);k=k.redIAdd(k);var A=u.redAdd(u).redIAdd(u).redIAdd(this.curve.a),x=A.redSqr().redISub(k).redISub(k);f=x;var j=b.redIAdd(b);j=(j=j.redIAdd(j)).redIAdd(j),g=A.redMul(k.redISub(x)).redISub(j),h=this.y.redAdd(this.y)}else{var P=this.z.redSqr(),B=this.y.redSqr(),$=this.x.redMul(B),te=this.x.redSub(P).redMul(this.x.redAdd(P));te=te.redAdd(te).redIAdd(te);var J=$.redIAdd($),oe=(J=J.redIAdd(J)).redAdd(J);f=te.redSqr().redISub(oe),h=this.y.redAdd(this.z).redSqr().redISub(B).redISub(P);var e=B.redSqr();e=(e=(e=e.redIAdd(e)).redIAdd(e)).redIAdd(e),g=te.redMul(J.redISub(f)).redISub(e)}return this.curve.jpoint(f,g,h)},l.prototype._dbl=function(){var f=this.curve.a,g=this.x,h=this.y,u=this.z,w=u.redSqr().redSqr(),b=g.redSqr(),k=h.redSqr(),A=b.redAdd(b).redIAdd(b).redIAdd(f.redMul(w)),x=g.redAdd(g),j=(x=x.redIAdd(x)).redMul(k),P=A.redSqr().redISub(j.redAdd(j)),B=j.redISub(P),$=k.redSqr();$=($=($=$.redIAdd($)).redIAdd($)).redIAdd($);var te=A.redMul(B).redISub($),J=h.redAdd(h).redMul(u);return this.curve.jpoint(P,te,J)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var f=this.x.redSqr(),g=this.y.redSqr(),h=this.z.redSqr(),u=g.redSqr(),w=f.redAdd(f).redIAdd(f),b=w.redSqr(),k=this.x.redAdd(g).redSqr().redISub(f).redISub(u),A=(k=(k=(k=k.redIAdd(k)).redAdd(k).redIAdd(k)).redISub(b)).redSqr(),x=u.redIAdd(u);x=(x=(x=x.redIAdd(x)).redIAdd(x)).redIAdd(x);var j=w.redIAdd(k).redSqr().redISub(b).redISub(A).redISub(x),P=g.redMul(j);P=(P=P.redIAdd(P)).redIAdd(P);var B=this.x.redMul(A).redISub(P);B=(B=B.redIAdd(B)).redIAdd(B);var $=this.y.redMul(j.redMul(x.redISub(j)).redISub(k.redMul(A)));$=($=($=$.redIAdd($)).redIAdd($)).redIAdd($);var te=this.z.redAdd(k).redSqr().redISub(h).redISub(A);return this.curve.jpoint(B,$,te)},l.prototype.mul=function(f,g){return f=new v(f,g),this.curve._wnafMul(this,f)},l.prototype.eq=function(f){if(f.type==="affine")return this.eq(f.toJ());if(this===f)return!0;var g=this.z.redSqr(),h=f.z.redSqr();if(this.x.redMul(h).redISub(f.x.redMul(g)).cmpn(0)!==0)return!1;var u=g.redMul(this.z),w=h.redMul(f.z);return this.y.redMul(w).redISub(f.y.redMul(u)).cmpn(0)===0},l.prototype.eqXToP=function(f){var g=this.z.redSqr(),h=f.toRed(this.curve.red).redMul(g);if(this.x.cmp(h)===0)return!0;for(var u=f.clone(),w=this.curve.redN.redMul(g);;){if(u.iadd(this.curve.n),u.cmp(this.curve.p)>=0)return!1;if(h.redIAdd(w),this.x.cmp(h)===0)return!0}},l.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)+">"},l.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},5427:(H,_,y)=>{var M,v=_,m=y(3715),E=y(8254),s=y(953).assert;function p(l){l.type==="short"?this.curve=new E.short(l):l.type==="edwards"?this.curve=new E.edwards(l):this.curve=new E.mont(l),this.g=this.curve.g,this.n=this.curve.n,this.hash=l.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(l,f){Object.defineProperty(v,l,{configurable:!0,enumerable:!0,get:function(){var g=new p(f);return Object.defineProperty(v,l,{configurable:!0,enumerable:!0,value:g}),g}})}v.PresetCurve=p,c("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:m.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("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:m.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("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:m.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("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:m.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"]}),c("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:m.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"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:m.sha256,gRed:!1,g:["9"]}),c("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:m.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{M=y(1037)}catch{M=void 0}c("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:m.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",M]})},7954:(H,_,y)=>{var M=y(3785),v=y(2156),m=y(953),E=y(5427),s=y(9931),p=m.assert,c=y(1251),l=y(611);function f(g){if(!(this instanceof f))return new f(g);typeof g=="string"&&(p(Object.prototype.hasOwnProperty.call(E,g),"Unknown curve "+g),g=E[g]),g instanceof E.PresetCurve&&(g={curve:g}),this.curve=g.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=g.curve.g,this.g.precompute(g.curve.n.bitLength()+1),this.hash=g.hash||g.curve.hash}H.exports=f,f.prototype.keyPair=function(g){return new c(this,g)},f.prototype.keyFromPrivate=function(g,h){return c.fromPrivate(this,g,h)},f.prototype.keyFromPublic=function(g,h){return c.fromPublic(this,g,h)},f.prototype.genKeyPair=function(g){g||(g={});for(var h=new v({hash:this.hash,pers:g.pers,persEnc:g.persEnc||"utf8",entropy:g.entropy||s(this.hash.hmacStrength),entropyEnc:g.entropy&&g.entropyEnc||"utf8",nonce:this.n.toArray()}),u=this.n.byteLength(),w=this.n.sub(new M(2));;){var b=new M(h.generate(u));if(!(b.cmp(w)>0))return b.iaddn(1),this.keyFromPrivate(b)}},f.prototype._truncateToN=function(g,h){var u=8*g.byteLength()-this.n.bitLength();return u>0&&(g=g.ushrn(u)),!h&&g.cmp(this.n)>=0?g.sub(this.n):g},f.prototype.sign=function(g,h,u,w){typeof u=="object"&&(w=u,u=null),w||(w={}),h=this.keyFromPrivate(h,u),g=this._truncateToN(new M(g,16));for(var b=this.n.byteLength(),k=h.getPrivate().toArray("be",b),A=g.toArray("be",b),x=new v({hash:this.hash,entropy:k,nonce:A,pers:w.pers,persEnc:w.persEnc||"utf8"}),j=this.n.sub(new M(1)),P=0;;P++){var B=w.k?w.k(P):new M(x.generate(this.n.byteLength()));if(!((B=this._truncateToN(B,!0)).cmpn(1)<=0||B.cmp(j)>=0)){var $=this.g.mul(B);if(!$.isInfinity()){var te=$.getX(),J=te.umod(this.n);if(J.cmpn(0)!==0){var oe=B.invm(this.n).mul(J.mul(h.getPrivate()).iadd(g));if((oe=oe.umod(this.n)).cmpn(0)!==0){var e=($.getY().isOdd()?1:0)|(te.cmp(J)!==0?2:0);return w.canonical&&oe.cmp(this.nh)>0&&(oe=this.n.sub(oe),e^=1),new l({r:J,s:oe,recoveryParam:e})}}}}}},f.prototype.verify=function(g,h,u,w){g=this._truncateToN(new M(g,16)),u=this.keyFromPublic(u,w);var b=(h=new l(h,"hex")).r,k=h.s;if(b.cmpn(1)<0||b.cmp(this.n)>=0||k.cmpn(1)<0||k.cmp(this.n)>=0)return!1;var A,x=k.invm(this.n),j=x.mul(g).umod(this.n),P=x.mul(b).umod(this.n);return this.curve._maxwellTrick?!(A=this.g.jmulAdd(j,u.getPublic(),P)).isInfinity()&&A.eqXToP(b):!(A=this.g.mulAdd(j,u.getPublic(),P)).isInfinity()&&A.getX().umod(this.n).cmp(b)===0},f.prototype.recoverPubKey=function(g,h,u,w){p((3&u)===u,"The recovery param is more than two bits"),h=new l(h,w);var b=this.n,k=new M(g),A=h.r,x=h.s,j=1&u,P=u>>1;if(A.cmp(this.curve.p.umod(this.curve.n))>=0&&P)throw new Error("Unable to find sencond key candinate");A=P?this.curve.pointFromX(A.add(this.curve.n),j):this.curve.pointFromX(A,j);var B=h.r.invm(b),$=b.sub(k).mul(B).umod(b),te=x.mul(B).umod(b);return this.g.mulAdd($,A,te)},f.prototype.getKeyRecoveryParam=function(g,h,u,w){if((h=new l(h,w)).recoveryParam!==null)return h.recoveryParam;for(var b=0;b<4;b++){var k;try{k=this.recoverPubKey(g,h,b)}catch{continue}if(k.eq(u))return b}throw new Error("Unable to find valid recovery factor")}},1251:(H,_,y)=>{var M=y(3785),v=y(953).assert;function m(E,s){this.ec=E,this.priv=null,this.pub=null,s.priv&&this._importPrivate(s.priv,s.privEnc),s.pub&&this._importPublic(s.pub,s.pubEnc)}H.exports=m,m.fromPublic=function(E,s,p){return s instanceof m?s:new m(E,{pub:s,pubEnc:p})},m.fromPrivate=function(E,s,p){return s instanceof m?s:new m(E,{priv:s,privEnc:p})},m.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"}},m.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},m.prototype.getPrivate=function(E){return E==="hex"?this.priv.toString(16,2):this.priv},m.prototype._importPrivate=function(E,s){this.priv=new M(E,s||16),this.priv=this.priv.umod(this.ec.curve.n)},m.prototype._importPublic=function(E,s){if(E.x||E.y)return this.ec.curve.type==="mont"?v(E.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||v(E.x&&E.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(E.x,E.y));this.pub=this.ec.curve.decodePoint(E,s)},m.prototype.derive=function(E){return E.validate()||v(E.validate(),"public point not validated"),E.mul(this.priv).getX()},m.prototype.sign=function(E,s,p){return this.ec.sign(E,this,s,p)},m.prototype.verify=function(E,s){return this.ec.verify(E,s,this)},m.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},611:(H,_,y)=>{var M=y(3785),v=y(953),m=v.assert;function E(f,g){if(f instanceof E)return f;this._importDER(f,g)||(m(f.r&&f.s,"Signature without r or s"),this.r=new M(f.r,16),this.s=new M(f.s,16),f.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=f.recoveryParam)}function s(){this.place=0}function p(f,g){var h=f[g.place++];if(!(128&h))return h;var u=15&h;if(u===0||u>4)return!1;for(var w=0,b=0,k=g.place;b<u;b++,k++)w<<=8,w|=f[k],w>>>=0;return!(w<=127)&&(g.place=k,w)}function c(f){for(var g=0,h=f.length-1;!f[g]&&!(128&f[g+1])&&g<h;)g++;return g===0?f:f.slice(g)}function l(f,g){if(g<128)f.push(g);else{var h=1+(Math.log(g)/Math.LN2>>>3);for(f.push(128|h);--h;)f.push(g>>>(h<<3)&255);f.push(g)}}H.exports=E,E.prototype._importDER=function(f,g){f=v.toArray(f,g);var h=new s;if(f[h.place++]!==48)return!1;var u=p(f,h);if(u===!1||u+h.place!==f.length||f[h.place++]!==2)return!1;var w=p(f,h);if(w===!1)return!1;var b=f.slice(h.place,w+h.place);if(h.place+=w,f[h.place++]!==2)return!1;var k=p(f,h);if(k===!1||f.length!==k+h.place)return!1;var A=f.slice(h.place,k+h.place);if(b[0]===0){if(!(128&b[1]))return!1;b=b.slice(1)}if(A[0]===0){if(!(128&A[1]))return!1;A=A.slice(1)}return this.r=new M(b),this.s=new M(A),this.recoveryParam=null,!0},E.prototype.toDER=function(f){var g=this.r.toArray(),h=this.s.toArray();for(128&g[0]&&(g=[0].concat(g)),128&h[0]&&(h=[0].concat(h)),g=c(g),h=c(h);!(h[0]||128&h[1]);)h=h.slice(1);var u=[2];l(u,g.length),(u=u.concat(g)).push(2),l(u,h.length);var w=u.concat(h),b=[48];return l(b,w.length),b=b.concat(w),v.encode(b,f)}},5980:(H,_,y)=>{var M=y(3715),v=y(5427),m=y(953),E=m.assert,s=m.parseBytes,p=y(9087),c=y(3622);function l(f){if(E(f==="ed25519","only tested with ed25519 so far"),!(this instanceof l))return new l(f);f=v[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=M.sha512}H.exports=l,l.prototype.sign=function(f,g){f=s(f);var h=this.keyFromSecret(g),u=this.hashInt(h.messagePrefix(),f),w=this.g.mul(u),b=this.encodePoint(w),k=this.hashInt(b,h.pubBytes(),f).mul(h.priv()),A=u.add(k).umod(this.curve.n);return this.makeSignature({R:w,S:A,Rencoded:b})},l.prototype.verify=function(f,g,h){f=s(f),g=this.makeSignature(g);var u=this.keyFromPublic(h),w=this.hashInt(g.Rencoded(),u.pubBytes(),f),b=this.g.mul(g.S());return g.R().add(u.pub().mul(w)).eq(b)},l.prototype.hashInt=function(){for(var f=this.hash(),g=0;g<arguments.length;g++)f.update(arguments[g]);return m.intFromLE(f.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(f){return p.fromPublic(this,f)},l.prototype.keyFromSecret=function(f){return p.fromSecret(this,f)},l.prototype.makeSignature=function(f){return f instanceof c?f:new c(this,f)},l.prototype.encodePoint=function(f){var g=f.getY().toArray("le",this.encodingLength);return g[this.encodingLength-1]|=f.getX().isOdd()?128:0,g},l.prototype.decodePoint=function(f){var g=(f=m.parseBytes(f)).length-1,h=f.slice(0,g).concat(-129&f[g]),u=(128&f[g])!=0,w=m.intFromLE(h);return this.curve.pointFromY(w,u)},l.prototype.encodeInt=function(f){return f.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(f){return m.intFromLE(f)},l.prototype.isPoint=function(f){return f instanceof this.pointClass}},9087:(H,_,y)=>{var M=y(953),v=M.assert,m=M.parseBytes,E=M.cachedProperty;function s(p,c){this.eddsa=p,this._secret=m(c.secret),p.isPoint(c.pub)?this._pub=c.pub:this._pubBytes=m(c.pub)}s.fromPublic=function(p,c){return c instanceof s?c:new s(p,{pub:c})},s.fromSecret=function(p,c){return c instanceof s?c:new s(p,{secret:c})},s.prototype.secret=function(){return this._secret},E(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),E(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),E(s,"privBytes",function(){var p=this.eddsa,c=this.hash(),l=p.encodingLength-1,f=c.slice(0,p.encodingLength);return f[0]&=248,f[l]&=127,f[l]|=64,f}),E(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),E(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),E(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(p){return v(this._secret,"KeyPair can only verify"),this.eddsa.sign(p,this)},s.prototype.verify=function(p,c){return this.eddsa.verify(p,c,this)},s.prototype.getSecret=function(p){return v(this._secret,"KeyPair is public only"),M.encode(this.secret(),p)},s.prototype.getPublic=function(p){return M.encode(this.pubBytes(),p)},H.exports=s},3622:(H,_,y)=>{var M=y(3785),v=y(953),m=v.assert,E=v.cachedProperty,s=v.parseBytes;function p(c,l){this.eddsa=c,typeof l!="object"&&(l=s(l)),Array.isArray(l)&&(l={R:l.slice(0,c.encodingLength),S:l.slice(c.encodingLength)}),m(l.R&&l.S,"Signature without R or S"),c.isPoint(l.R)&&(this._R=l.R),l.S instanceof M&&(this._S=l.S),this._Rencoded=Array.isArray(l.R)?l.R:l.Rencoded,this._Sencoded=Array.isArray(l.S)?l.S:l.Sencoded}E(p,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),E(p,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),E(p,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),E(p,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),p.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},p.prototype.toHex=function(){return v.encode(this.toBytes(),"hex").toUpperCase()},H.exports=p},1037:H=>{H.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"]]}}},953:(H,_,y)=>{var M=_,v=y(3785),m=y(9746),E=y(4504);M.assert=m,M.toArray=E.toArray,M.zero2=E.zero2,M.toHex=E.toHex,M.encode=E.encode,M.getNAF=function(s,p,c){var l=new Array(Math.max(s.bitLength(),c)+1);l.fill(0);for(var f=1<<p+1,g=s.clone(),h=0;h<l.length;h++){var u,w=g.andln(f-1);g.isOdd()?(u=w>(f>>1)-1?(f>>1)-w:w,g.isubn(u)):u=0,l[h]=u,g.iushrn(1)}return l},M.getJSF=function(s,p){var c=[[],[]];s=s.clone(),p=p.clone();for(var l,f=0,g=0;s.cmpn(-f)>0||p.cmpn(-g)>0;){var h,u,w=s.andln(3)+f&3,b=p.andln(3)+g&3;w===3&&(w=-1),b===3&&(b=-1),h=1&w?(l=s.andln(7)+f&7)!=3&&l!==5||b!==2?w:-w:0,c[0].push(h),u=1&b?(l=p.andln(7)+g&7)!=3&&l!==5||w!==2?b:-b:0,c[1].push(u),2*f===h+1&&(f=1-f),2*g===u+1&&(g=1-g),s.iushrn(1),p.iushrn(1)}return c},M.cachedProperty=function(s,p,c){var l="_"+p;s.prototype[p]=function(){return this[l]!==void 0?this[l]:this[l]=c.call(this)}},M.parseBytes=function(s){return typeof s=="string"?M.toArray(s,"hex"):s},M.intFromLE=function(s){return new v(s,"hex","le")}},3785:function(H,_,y){(function(M,v){function m(e,r){if(!e)throw new Error(r||"Assertion failed")}function E(e,r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}function s(e,r,i){if(s.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&(r!=="le"&&r!=="be"||(i=r,r=10),this._init(e||0,r||10,i||"be"))}var p;typeof M=="object"?M.exports=s:v.BN=s,s.BN=s,s.wordSize=26;try{p=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:y(5568).Buffer}catch{}function c(e,r){var i=e.charCodeAt(r);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(e,r,i){var n=c(e,i);return i-1>=r&&(n|=c(e,i-1)<<4),n}function f(e,r,i,n){for(var t=0,o=Math.min(e.length,i),a=r;a<o;a++){var T=e.charCodeAt(a)-48;t*=n,t+=T>=49?T-49+10:T>=17?T-17+10:T}return t}s.isBN=function(e){return e instanceof s||e!==null&&typeof e=="object"&&e.constructor.wordSize===s.wordSize&&Array.isArray(e.words)},s.max=function(e,r){return e.cmp(r)>0?e:r},s.min=function(e,r){return e.cmp(r)<0?e:r},s.prototype._init=function(e,r,i){if(typeof e=="number")return this._initNumber(e,r,i);if(typeof e=="object")return this._initArray(e,r,i);r==="hex"&&(r=16),m(r===(0|r)&&r>=2&&r<=36);var n=0;(e=e.toString().replace(/\s+/g,""))[0]==="-"&&(n++,this.negative=1),n<e.length&&(r===16?this._parseHex(e,n,i):(this._parseBase(e,r,n),i==="le"&&this._initArray(this.toArray(),r,i)))},s.prototype._initNumber=function(e,r,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(m(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),r,i)},s.prototype._initArray=function(e,r,i){if(m(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o,a=0;if(i==="be")for(n=e.length-1,t=0;n>=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[t]|=o<<a&67108863,this.words[t+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,t++);else if(i==="le")for(n=0,t=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[t]|=o<<a&67108863,this.words[t+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,t++);return this.strip()},s.prototype._parseHex=function(e,r,i){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o=0,a=0;if(i==="be")for(n=e.length-1;n>=r;n-=2)t=l(e,r,n)<<o,this.words[a]|=67108863&t,o>=18?(o-=18,a+=1,this.words[a]|=t>>>26):o+=8;else for(n=(e.length-r)%2==0?r+1:r;n<e.length;n+=2)t=l(e,r,n)<<o,this.words[a]|=67108863&t,o>=18?(o-=18,a+=1,this.words[a]|=t>>>26):o+=8;this.strip()},s.prototype._parseBase=function(e,r,i){this.words=[0],this.length=1;for(var n=0,t=1;t<=67108863;t*=r)n++;n--,t=t/r|0;for(var o=e.length-i,a=o%n,T=Math.min(o,o-a)+i,C=0,N=i;N<T;N+=n)C=f(e,N,N+n,r),this.imuln(t),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(a!==0){var O=1;for(C=f(e,N,e.length,r),N=0;N<a;N++)O*=r;this.imuln(O),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},s.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},s.prototype.clone=function(){var e=new s(null);return this.copy(e),e},s.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","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"],h=[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],u=[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];function w(e,r,i){i.negative=r.negative^e.negative;var n=e.length+r.length|0;i.length=n,n=n-1|0;var t=0|e.words[0],o=0|r.words[0],a=t*o,T=67108863&a,C=a/67108864|0;i.words[0]=T;for(var N=1;N<n;N++){for(var O=C>>>26,R=67108863&C,F=Math.min(N,r.length-1),Z=Math.max(0,N-e.length+1);Z<=F;Z++){var ie=N-Z|0;O+=(a=(t=0|e.words[ie])*(o=0|r.words[Z])+R)/67108864|0,R=67108863&a}i.words[N]=0|R,C=0|O}return C!==0?i.words[N]=0|C:i.length--,i.strip()}s.prototype.toString=function(e,r){var i;if(r=0|r||1,(e=e||10)===16||e==="hex"){i="";for(var n=0,t=0,o=0;o<this.length;o++){var a=this.words[o],T=(16777215&(a<<n|t)).toString(16);i=(t=a>>>24-n&16777215)!=0||o!==this.length-1?g[6-T.length]+T+i:T+i,(n+=2)>=26&&(n-=26,o--)}for(t!==0&&(i=t.toString(16)+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var C=h[e],N=u[e];i="";var O=this.clone();for(O.negative=0;!O.isZero();){var R=O.modn(N).toString(e);i=(O=O.idivn(N)).isZero()?R+i:g[C-R.length]+R+i}for(this.isZero()&&(i="0"+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}m(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=67108864*this.words[1]:this.length===3&&this.words[2]===1?e+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(e,r){return m(p!==void 0),this.toArrayLike(p,e,r)},s.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},s.prototype.toArrayLike=function(e,r,i){var n=this.byteLength(),t=i||Math.max(1,n);m(n<=t,"byte array longer than desired length"),m(t>0,"Requested array length <= 0"),this.strip();var o,a,T=r==="le",C=new e(t),N=this.clone();if(T){for(a=0;!N.isZero();a++)o=N.andln(255),N.iushrn(8),C[a]=o;for(;a<t;a++)C[a]=0}else{for(a=0;a<t-n;a++)C[a]=0;for(a=0;!N.isZero();a++)o=N.andln(255),N.iushrn(8),C[t-a-1]=o}return C},Math.clz32?s.prototype._countBits=function(e){return 32-Math.clz32(e)}:s.prototype._countBits=function(e){var r=e,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},s.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,i=0;return!(8191&r)&&(i+=13,r>>>=13),!(127&r)&&(i+=7,r>>>=7),!(15&r)&&(i+=4,r>>>=4),!(3&r)&&(i+=2,r>>>=2),!(1&r)&&i++,i},s.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return 26*(this.length-1)+r},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(e+=i,i!==26)break}return e},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},s.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},s.prototype.ior=function(e){return m((this.negative|e.negative)==0),this.iuor(e)},s.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},s.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},s.prototype.iuand=function(e){var r;r=this.length>e.length?e:this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=r.length,this.strip()},s.prototype.iand=function(e){return m((this.negative|e.negative)==0),this.iuand(e)},s.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},s.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},s.prototype.iuxor=function(e){var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=r.words[n]^i.words[n];if(this!==r)for(;n<r.length;n++)this.words[n]=r.words[n];return this.length=r.length,this.strip()},s.prototype.ixor=function(e){return m((this.negative|e.negative)==0),this.iuxor(e)},s.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},s.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},s.prototype.inotn=function(e){m(typeof e=="number"&&e>=0);var r=0|Math.ceil(e/26),i=e%26;this._expand(r),i>0&&r--;for(var n=0;n<r;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},s.prototype.notn=function(e){return this.clone().inotn(e)},s.prototype.setn=function(e,r){m(typeof e=="number"&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=r?this.words[i]|1<<n:this.words[i]&~(1<<n),this.strip()},s.prototype.iadd=function(e){var r,i,n;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var t=0,o=0;o<n.length;o++)r=(0|i.words[o])+(0|n.words[o])+t,this.words[o]=67108863&r,t=r>>>26;for(;t!==0&&o<i.length;o++)r=(0|i.words[o])+t,this.words[o]=67108863&r,t=r>>>26;if(this.length=i.length,t!==0)this.words[this.length]=t,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},s.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},s.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,t=this.cmp(e);if(t===0)return this.negative=0,this.length=1,this.words[0]=0,this;t>0?(i=this,n=e):(i=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(r=(0|i.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&r;for(;o!==0&&a<i.length;a++)o=(r=(0|i.words[a])+o)>>26,this.words[a]=67108863&r;if(o===0&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(e){return this.clone().isub(e)};var b=function(e,r,i){var n,t,o,a=e.words,T=r.words,C=i.words,N=0,O=0|a[0],R=8191&O,F=O>>>13,Z=0|a[1],ie=8191&Z,D=Z>>>13,Y=0|a[2],z=8191&Y,W=Y>>>13,ae=0|a[3],re=8191&ae,le=ae>>>13,ke=0|a[4],ge=8191&ke,be=ke>>>13,je=0|a[5],xe=8191&je,Ae=je>>>13,X=0|a[6],ee=8191&X,U=X>>>13,V=0|a[7],q=8191&V,ne=V>>>13,fe=0|a[8],he=8191&fe,me=fe>>>13,it=0|a[9],_e=8191&it,Te=it>>>13,ft=0|T[0],Se=8191&ft,Ge=ft>>>13,Ct=0|T[1],Pe=8191&Ct,Ve=Ct>>>13,Nt=0|T[2],Re=8191&Nt,Ke=Nt>>>13,yt=0|T[3],Be=8191&yt,We=yt>>>13,St=0|T[4],Ne=8191&St,Ze=St>>>13,It=0|T[5],Le=8191&It,Xe=It>>>13,Dt=0|T[6],De=8191&Dt,Qe=Dt>>>13,zt=0|T[7],qe=8191&zt,Je=zt>>>13,$t=0|T[8],Fe=8191&$t,tt=$t>>>13,Vt=0|T[9],Ue=8191&Vt,et=Vt>>>13;i.negative=e.negative^r.negative,i.length=19;var Tt=(N+(n=Math.imul(R,Se))|0)+((8191&(t=(t=Math.imul(R,Ge))+Math.imul(F,Se)|0))<<13)|0;N=((o=Math.imul(F,Ge))+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(ie,Se),t=(t=Math.imul(ie,Ge))+Math.imul(D,Se)|0,o=Math.imul(D,Ge);var Rt=(N+(n=n+Math.imul(R,Pe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ve)|0)+Math.imul(F,Pe)|0))<<13)|0;N=((o=o+Math.imul(F,Ve)|0)+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(z,Se),t=(t=Math.imul(z,Ge))+Math.imul(W,Se)|0,o=Math.imul(W,Ge),n=n+Math.imul(ie,Pe)|0,t=(t=t+Math.imul(ie,Ve)|0)+Math.imul(D,Pe)|0,o=o+Math.imul(D,Ve)|0;var Gt=(N+(n=n+Math.imul(R,Re)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ke)|0)+Math.imul(F,Re)|0))<<13)|0;N=((o=o+Math.imul(F,Ke)|0)+(t>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,n=Math.imul(re,Se),t=(t=Math.imul(re,Ge))+Math.imul(le,Se)|0,o=Math.imul(le,Ge),n=n+Math.imul(z,Pe)|0,t=(t=t+Math.imul(z,Ve)|0)+Math.imul(W,Pe)|0,o=o+Math.imul(W,Ve)|0,n=n+Math.imul(ie,Re)|0,t=(t=t+Math.imul(ie,Ke)|0)+Math.imul(D,Re)|0,o=o+Math.imul(D,Ke)|0;var an=(N+(n=n+Math.imul(R,Be)|0)|0)+((8191&(t=(t=t+Math.imul(R,We)|0)+Math.imul(F,Be)|0))<<13)|0;N=((o=o+Math.imul(F,We)|0)+(t>>>13)|0)+(an>>>26)|0,an&=67108863,n=Math.imul(ge,Se),t=(t=Math.imul(ge,Ge))+Math.imul(be,Se)|0,o=Math.imul(be,Ge),n=n+Math.imul(re,Pe)|0,t=(t=t+Math.imul(re,Ve)|0)+Math.imul(le,Pe)|0,o=o+Math.imul(le,Ve)|0,n=n+Math.imul(z,Re)|0,t=(t=t+Math.imul(z,Ke)|0)+Math.imul(W,Re)|0,o=o+Math.imul(W,Ke)|0,n=n+Math.imul(ie,Be)|0,t=(t=t+Math.imul(ie,We)|0)+Math.imul(D,Be)|0,o=o+Math.imul(D,We)|0;var rn=(N+(n=n+Math.imul(R,Ne)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ze)|0)+Math.imul(F,Ne)|0))<<13)|0;N=((o=o+Math.imul(F,Ze)|0)+(t>>>13)|0)+(rn>>>26)|0,rn&=67108863,n=Math.imul(xe,Se),t=(t=Math.imul(xe,Ge))+Math.imul(Ae,Se)|0,o=Math.imul(Ae,Ge),n=n+Math.imul(ge,Pe)|0,t=(t=t+Math.imul(ge,Ve)|0)+Math.imul(be,Pe)|0,o=o+Math.imul(be,Ve)|0,n=n+Math.imul(re,Re)|0,t=(t=t+Math.imul(re,Ke)|0)+Math.imul(le,Re)|0,o=o+Math.imul(le,Ke)|0,n=n+Math.imul(z,Be)|0,t=(t=t+Math.imul(z,We)|0)+Math.imul(W,Be)|0,o=o+Math.imul(W,We)|0,n=n+Math.imul(ie,Ne)|0,t=(t=t+Math.imul(ie,Ze)|0)+Math.imul(D,Ne)|0,o=o+Math.imul(D,Ze)|0;var un=(N+(n=n+Math.imul(R,Le)|0)|0)+((8191&(t=(t=t+Math.imul(R,Xe)|0)+Math.imul(F,Le)|0))<<13)|0;N=((o=o+Math.imul(F,Xe)|0)+(t>>>13)|0)+(un>>>26)|0,un&=67108863,n=Math.imul(ee,Se),t=(t=Math.imul(ee,Ge))+Math.imul(U,Se)|0,o=Math.imul(U,Ge),n=n+Math.imul(xe,Pe)|0,t=(t=t+Math.imul(xe,Ve)|0)+Math.imul(Ae,Pe)|0,o=o+Math.imul(Ae,Ve)|0,n=n+Math.imul(ge,Re)|0,t=(t=t+Math.imul(ge,Ke)|0)+Math.imul(be,Re)|0,o=o+Math.imul(be,Ke)|0,n=n+Math.imul(re,Be)|0,t=(t=t+Math.imul(re,We)|0)+Math.imul(le,Be)|0,o=o+Math.imul(le,We)|0,n=n+Math.imul(z,Ne)|0,t=(t=t+Math.imul(z,Ze)|0)+Math.imul(W,Ne)|0,o=o+Math.imul(W,Ze)|0,n=n+Math.imul(ie,Le)|0,t=(t=t+Math.imul(ie,Xe)|0)+Math.imul(D,Le)|0,o=o+Math.imul(D,Xe)|0;var cn=(N+(n=n+Math.imul(R,De)|0)|0)+((8191&(t=(t=t+Math.imul(R,Qe)|0)+Math.imul(F,De)|0))<<13)|0;N=((o=o+Math.imul(F,Qe)|0)+(t>>>13)|0)+(cn>>>26)|0,cn&=67108863,n=Math.imul(q,Se),t=(t=Math.imul(q,Ge))+Math.imul(ne,Se)|0,o=Math.imul(ne,Ge),n=n+Math.imul(ee,Pe)|0,t=(t=t+Math.imul(ee,Ve)|0)+Math.imul(U,Pe)|0,o=o+Math.imul(U,Ve)|0,n=n+Math.imul(xe,Re)|0,t=(t=t+Math.imul(xe,Ke)|0)+Math.imul(Ae,Re)|0,o=o+Math.imul(Ae,Ke)|0,n=n+Math.imul(ge,Be)|0,t=(t=t+Math.imul(ge,We)|0)+Math.imul(be,Be)|0,o=o+Math.imul(be,We)|0,n=n+Math.imul(re,Ne)|0,t=(t=t+Math.imul(re,Ze)|0)+Math.imul(le,Ne)|0,o=o+Math.imul(le,Ze)|0,n=n+Math.imul(z,Le)|0,t=(t=t+Math.imul(z,Xe)|0)+Math.imul(W,Le)|0,o=o+Math.imul(W,Xe)|0,n=n+Math.imul(ie,De)|0,t=(t=t+Math.imul(ie,Qe)|0)+Math.imul(D,De)|0,o=o+Math.imul(D,Qe)|0;var ln=(N+(n=n+Math.imul(R,qe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Je)|0)+Math.imul(F,qe)|0))<<13)|0;N=((o=o+Math.imul(F,Je)|0)+(t>>>13)|0)+(ln>>>26)|0,ln&=67108863,n=Math.imul(he,Se),t=(t=Math.imul(he,Ge))+Math.imul(me,Se)|0,o=Math.imul(me,Ge),n=n+Math.imul(q,Pe)|0,t=(t=t+Math.imul(q,Ve)|0)+Math.imul(ne,Pe)|0,o=o+Math.imul(ne,Ve)|0,n=n+Math.imul(ee,Re)|0,t=(t=t+Math.imul(ee,Ke)|0)+Math.imul(U,Re)|0,o=o+Math.imul(U,Ke)|0,n=n+Math.imul(xe,Be)|0,t=(t=t+Math.imul(xe,We)|0)+Math.imul(Ae,Be)|0,o=o+Math.imul(Ae,We)|0,n=n+Math.imul(ge,Ne)|0,t=(t=t+Math.imul(ge,Ze)|0)+Math.imul(be,Ne)|0,o=o+Math.imul(be,Ze)|0,n=n+Math.imul(re,Le)|0,t=(t=t+Math.imul(re,Xe)|0)+Math.imul(le,Le)|0,o=o+Math.imul(le,Xe)|0,n=n+Math.imul(z,De)|0,t=(t=t+Math.imul(z,Qe)|0)+Math.imul(W,De)|0,o=o+Math.imul(W,Qe)|0,n=n+Math.imul(ie,qe)|0,t=(t=t+Math.imul(ie,Je)|0)+Math.imul(D,qe)|0,o=o+Math.imul(D,Je)|0;var hn=(N+(n=n+Math.imul(R,Fe)|0)|0)+((8191&(t=(t=t+Math.imul(R,tt)|0)+Math.imul(F,Fe)|0))<<13)|0;N=((o=o+Math.imul(F,tt)|0)+(t>>>13)|0)+(hn>>>26)|0,hn&=67108863,n=Math.imul(_e,Se),t=(t=Math.imul(_e,Ge))+Math.imul(Te,Se)|0,o=Math.imul(Te,Ge),n=n+Math.imul(he,Pe)|0,t=(t=t+Math.imul(he,Ve)|0)+Math.imul(me,Pe)|0,o=o+Math.imul(me,Ve)|0,n=n+Math.imul(q,Re)|0,t=(t=t+Math.imul(q,Ke)|0)+Math.imul(ne,Re)|0,o=o+Math.imul(ne,Ke)|0,n=n+Math.imul(ee,Be)|0,t=(t=t+Math.imul(ee,We)|0)+Math.imul(U,Be)|0,o=o+Math.imul(U,We)|0,n=n+Math.imul(xe,Ne)|0,t=(t=t+Math.imul(xe,Ze)|0)+Math.imul(Ae,Ne)|0,o=o+Math.imul(Ae,Ze)|0,n=n+Math.imul(ge,Le)|0,t=(t=t+Math.imul(ge,Xe)|0)+Math.imul(be,Le)|0,o=o+Math.imul(be,Xe)|0,n=n+Math.imul(re,De)|0,t=(t=t+Math.imul(re,Qe)|0)+Math.imul(le,De)|0,o=o+Math.imul(le,Qe)|0,n=n+Math.imul(z,qe)|0,t=(t=t+Math.imul(z,Je)|0)+Math.imul(W,qe)|0,o=o+Math.imul(W,Je)|0,n=n+Math.imul(ie,Fe)|0,t=(t=t+Math.imul(ie,tt)|0)+Math.imul(D,Fe)|0,o=o+Math.imul(D,tt)|0;var fn=(N+(n=n+Math.imul(R,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(R,et)|0)+Math.imul(F,Ue)|0))<<13)|0;N=((o=o+Math.imul(F,et)|0)+(t>>>13)|0)+(fn>>>26)|0,fn&=67108863,n=Math.imul(_e,Pe),t=(t=Math.imul(_e,Ve))+Math.imul(Te,Pe)|0,o=Math.imul(Te,Ve),n=n+Math.imul(he,Re)|0,t=(t=t+Math.imul(he,Ke)|0)+Math.imul(me,Re)|0,o=o+Math.imul(me,Ke)|0,n=n+Math.imul(q,Be)|0,t=(t=t+Math.imul(q,We)|0)+Math.imul(ne,Be)|0,o=o+Math.imul(ne,We)|0,n=n+Math.imul(ee,Ne)|0,t=(t=t+Math.imul(ee,Ze)|0)+Math.imul(U,Ne)|0,o=o+Math.imul(U,Ze)|0,n=n+Math.imul(xe,Le)|0,t=(t=t+Math.imul(xe,Xe)|0)+Math.imul(Ae,Le)|0,o=o+Math.imul(Ae,Xe)|0,n=n+Math.imul(ge,De)|0,t=(t=t+Math.imul(ge,Qe)|0)+Math.imul(be,De)|0,o=o+Math.imul(be,Qe)|0,n=n+Math.imul(re,qe)|0,t=(t=t+Math.imul(re,Je)|0)+Math.imul(le,qe)|0,o=o+Math.imul(le,Je)|0,n=n+Math.imul(z,Fe)|0,t=(t=t+Math.imul(z,tt)|0)+Math.imul(W,Fe)|0,o=o+Math.imul(W,tt)|0;var pn=(N+(n=n+Math.imul(ie,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ie,et)|0)+Math.imul(D,Ue)|0))<<13)|0;N=((o=o+Math.imul(D,et)|0)+(t>>>13)|0)+(pn>>>26)|0,pn&=67108863,n=Math.imul(_e,Re),t=(t=Math.imul(_e,Ke))+Math.imul(Te,Re)|0,o=Math.imul(Te,Ke),n=n+Math.imul(he,Be)|0,t=(t=t+Math.imul(he,We)|0)+Math.imul(me,Be)|0,o=o+Math.imul(me,We)|0,n=n+Math.imul(q,Ne)|0,t=(t=t+Math.imul(q,Ze)|0)+Math.imul(ne,Ne)|0,o=o+Math.imul(ne,Ze)|0,n=n+Math.imul(ee,Le)|0,t=(t=t+Math.imul(ee,Xe)|0)+Math.imul(U,Le)|0,o=o+Math.imul(U,Xe)|0,n=n+Math.imul(xe,De)|0,t=(t=t+Math.imul(xe,Qe)|0)+Math.imul(Ae,De)|0,o=o+Math.imul(Ae,Qe)|0,n=n+Math.imul(ge,qe)|0,t=(t=t+Math.imul(ge,Je)|0)+Math.imul(be,qe)|0,o=o+Math.imul(be,Je)|0,n=n+Math.imul(re,Fe)|0,t=(t=t+Math.imul(re,tt)|0)+Math.imul(le,Fe)|0,o=o+Math.imul(le,tt)|0;var Xt=(N+(n=n+Math.imul(z,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(z,et)|0)+Math.imul(W,Ue)|0))<<13)|0;N=((o=o+Math.imul(W,et)|0)+(t>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,n=Math.imul(_e,Be),t=(t=Math.imul(_e,We))+Math.imul(Te,Be)|0,o=Math.imul(Te,We),n=n+Math.imul(he,Ne)|0,t=(t=t+Math.imul(he,Ze)|0)+Math.imul(me,Ne)|0,o=o+Math.imul(me,Ze)|0,n=n+Math.imul(q,Le)|0,t=(t=t+Math.imul(q,Xe)|0)+Math.imul(ne,Le)|0,o=o+Math.imul(ne,Xe)|0,n=n+Math.imul(ee,De)|0,t=(t=t+Math.imul(ee,Qe)|0)+Math.imul(U,De)|0,o=o+Math.imul(U,Qe)|0,n=n+Math.imul(xe,qe)|0,t=(t=t+Math.imul(xe,Je)|0)+Math.imul(Ae,qe)|0,o=o+Math.imul(Ae,Je)|0,n=n+Math.imul(ge,Fe)|0,t=(t=t+Math.imul(ge,tt)|0)+Math.imul(be,Fe)|0,o=o+Math.imul(be,tt)|0;var dn=(N+(n=n+Math.imul(re,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(re,et)|0)+Math.imul(le,Ue)|0))<<13)|0;N=((o=o+Math.imul(le,et)|0)+(t>>>13)|0)+(dn>>>26)|0,dn&=67108863,n=Math.imul(_e,Ne),t=(t=Math.imul(_e,Ze))+Math.imul(Te,Ne)|0,o=Math.imul(Te,Ze),n=n+Math.imul(he,Le)|0,t=(t=t+Math.imul(he,Xe)|0)+Math.imul(me,Le)|0,o=o+Math.imul(me,Xe)|0,n=n+Math.imul(q,De)|0,t=(t=t+Math.imul(q,Qe)|0)+Math.imul(ne,De)|0,o=o+Math.imul(ne,Qe)|0,n=n+Math.imul(ee,qe)|0,t=(t=t+Math.imul(ee,Je)|0)+Math.imul(U,qe)|0,o=o+Math.imul(U,Je)|0,n=n+Math.imul(xe,Fe)|0,t=(t=t+Math.imul(xe,tt)|0)+Math.imul(Ae,Fe)|0,o=o+Math.imul(Ae,tt)|0;var vn=(N+(n=n+Math.imul(ge,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ge,et)|0)+Math.imul(be,Ue)|0))<<13)|0;N=((o=o+Math.imul(be,et)|0)+(t>>>13)|0)+(vn>>>26)|0,vn&=67108863,n=Math.imul(_e,Le),t=(t=Math.imul(_e,Xe))+Math.imul(Te,Le)|0,o=Math.imul(Te,Xe),n=n+Math.imul(he,De)|0,t=(t=t+Math.imul(he,Qe)|0)+Math.imul(me,De)|0,o=o+Math.imul(me,Qe)|0,n=n+Math.imul(q,qe)|0,t=(t=t+Math.imul(q,Je)|0)+Math.imul(ne,qe)|0,o=o+Math.imul(ne,Je)|0,n=n+Math.imul(ee,Fe)|0,t=(t=t+Math.imul(ee,tt)|0)+Math.imul(U,Fe)|0,o=o+Math.imul(U,tt)|0;var tn=(N+(n=n+Math.imul(xe,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(xe,et)|0)+Math.imul(Ae,Ue)|0))<<13)|0;N=((o=o+Math.imul(Ae,et)|0)+(t>>>13)|0)+(tn>>>26)|0,tn&=67108863,n=Math.imul(_e,De),t=(t=Math.imul(_e,Qe))+Math.imul(Te,De)|0,o=Math.imul(Te,Qe),n=n+Math.imul(he,qe)|0,t=(t=t+Math.imul(he,Je)|0)+Math.imul(me,qe)|0,o=o+Math.imul(me,Je)|0,n=n+Math.imul(q,Fe)|0,t=(t=t+Math.imul(q,tt)|0)+Math.imul(ne,Fe)|0,o=o+Math.imul(ne,tt)|0;var nn=(N+(n=n+Math.imul(ee,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ee,et)|0)+Math.imul(U,Ue)|0))<<13)|0;N=((o=o+Math.imul(U,et)|0)+(t>>>13)|0)+(nn>>>26)|0,nn&=67108863,n=Math.imul(_e,qe),t=(t=Math.imul(_e,Je))+Math.imul(Te,qe)|0,o=Math.imul(Te,Je),n=n+Math.imul(he,Fe)|0,t=(t=t+Math.imul(he,tt)|0)+Math.imul(me,Fe)|0,o=o+Math.imul(me,tt)|0;var Jt=(N+(n=n+Math.imul(q,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(q,et)|0)+Math.imul(ne,Ue)|0))<<13)|0;N=((o=o+Math.imul(ne,et)|0)+(t>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,n=Math.imul(_e,Fe),t=(t=Math.imul(_e,tt))+Math.imul(Te,Fe)|0,o=Math.imul(Te,tt);var mn=(N+(n=n+Math.imul(he,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(he,et)|0)+Math.imul(me,Ue)|0))<<13)|0;N=((o=o+Math.imul(me,et)|0)+(t>>>13)|0)+(mn>>>26)|0,mn&=67108863;var on=(N+(n=Math.imul(_e,Ue))|0)+((8191&(t=(t=Math.imul(_e,et))+Math.imul(Te,Ue)|0))<<13)|0;return N=((o=Math.imul(Te,et))+(t>>>13)|0)+(on>>>26)|0,on&=67108863,C[0]=Tt,C[1]=Rt,C[2]=Gt,C[3]=an,C[4]=rn,C[5]=un,C[6]=cn,C[7]=ln,C[8]=hn,C[9]=fn,C[10]=pn,C[11]=Xt,C[12]=dn,C[13]=vn,C[14]=tn,C[15]=nn,C[16]=Jt,C[17]=mn,C[18]=on,N!==0&&(C[19]=N,i.length++),i};function k(e,r,i){return new A().mulp(e,r,i)}function A(e,r){this.x=e,this.y=r}Math.imul||(b=w),s.prototype.mulTo=function(e,r){var i,n=this.length+e.length;return i=this.length===10&&e.length===10?b(this,e,r):n<63?w(this,e,r):n<1024?function(t,o,a){a.negative=o.negative^t.negative,a.length=t.length+o.length;for(var T=0,C=0,N=0;N<a.length-1;N++){var O=C;C=0;for(var R=67108863&T,F=Math.min(N,o.length-1),Z=Math.max(0,N-t.length+1);Z<=F;Z++){var ie=N-Z,D=(0|t.words[ie])*(0|o.words[Z]),Y=67108863&D;R=67108863&(Y=Y+R|0),C+=(O=(O=O+(D/67108864|0)|0)+(Y>>>26)|0)>>>26,O&=67108863}a.words[N]=R,T=O,O=C}return T!==0?a.words[N]=T:a.length--,a.strip()}(this,e,r):k(this,e,r),i},A.prototype.makeRBT=function(e){for(var r=new Array(e),i=s.prototype._countBits(e)-1,n=0;n<e;n++)r[n]=this.revBin(n,i,e);return r},A.prototype.revBin=function(e,r,i){if(e===0||e===i-1)return e;for(var n=0,t=0;t<r;t++)n|=(1&e)<<r-t-1,e>>=1;return n},A.prototype.permute=function(e,r,i,n,t,o){for(var a=0;a<o;a++)n[a]=r[e[a]],t[a]=i[e[a]]},A.prototype.transform=function(e,r,i,n,t,o){this.permute(o,e,r,i,n,t);for(var a=1;a<t;a<<=1)for(var T=a<<1,C=Math.cos(2*Math.PI/T),N=Math.sin(2*Math.PI/T),O=0;O<t;O+=T)for(var R=C,F=N,Z=0;Z<a;Z++){var ie=i[O+Z],D=n[O+Z],Y=i[O+Z+a],z=n[O+Z+a],W=R*Y-F*z;z=R*z+F*Y,Y=W,i[O+Z]=ie+Y,n[O+Z]=D+z,i[O+Z+a]=ie-Y,n[O+Z+a]=D-z,Z!==T&&(W=C*R-N*F,F=C*F+N*R,R=W)}},A.prototype.guessLen13b=function(e,r){var i=1|Math.max(r,e),n=1&i,t=0;for(i=i/2|0;i;i>>>=1)t++;return 1<<t+1+n},A.prototype.conjugate=function(e,r,i){if(!(i<=1))for(var n=0;n<i/2;n++){var t=e[n];e[n]=e[i-n-1],e[i-n-1]=t,t=r[n],r[n]=-r[i-n-1],r[i-n-1]=-t}},A.prototype.normalize13b=function(e,r){for(var i=0,n=0;n<r/2;n++){var t=8192*Math.round(e[2*n+1]/r)+Math.round(e[2*n]/r)+i;e[n]=67108863&t,i=t<67108864?0:t/67108864|0}return e},A.prototype.convert13b=function(e,r,i,n){for(var t=0,o=0;o<r;o++)t+=0|e[o],i[2*o]=8191&t,t>>>=13,i[2*o+1]=8191&t,t>>>=13;for(o=2*r;o<n;++o)i[o]=0;m(t===0),m((-8192&t)==0)},A.prototype.stub=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=0;return r},A.prototype.mulp=function(e,r,i){var n=2*this.guessLen13b(e.length,r.length),t=this.makeRBT(n),o=this.stub(n),a=new Array(n),T=new Array(n),C=new Array(n),N=new Array(n),O=new Array(n),R=new Array(n),F=i.words;F.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(r.words,r.length,N,n),this.transform(a,o,T,C,n,t),this.transform(N,o,O,R,n,t);for(var Z=0;Z<n;Z++){var ie=T[Z]*O[Z]-C[Z]*R[Z];C[Z]=T[Z]*R[Z]+C[Z]*O[Z],T[Z]=ie}return this.conjugate(T,C,n),this.transform(T,C,F,o,n,t),this.conjugate(F,o,n),this.normalize13b(F,n),i.negative=e.negative^r.negative,i.length=e.length+r.length,i.strip()},s.prototype.mul=function(e){var r=new s(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},s.prototype.mulf=function(e){var r=new s(null);return r.words=new Array(this.length+e.length),k(this,e,r)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){m(typeof e=="number"),m(e<67108864);for(var r=0,i=0;i<this.length;i++){var n=(0|this.words[i])*e,t=(67108863&n)+(67108863&r);r>>=26,r+=n/67108864|0,r+=t>>>26,this.words[i]=67108863&t}return r!==0&&(this.words[i]=r,this.length++),this},s.prototype.muln=function(e){return this.clone().imuln(e)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(e){var r=function(o){for(var a=new Array(o.bitLength()),T=0;T<a.length;T++){var C=T/26|0,N=T%26;a[T]=(o.words[C]&1<<N)>>>N}return a}(e);if(r.length===0)return new s(1);for(var i=this,n=0;n<r.length&&r[n]===0;n++,i=i.sqr());if(++n<r.length)for(var t=i.sqr();n<r.length;n++,t=t.sqr())r[n]!==0&&(i=i.mul(t));return i},s.prototype.iushln=function(e){m(typeof e=="number"&&e>=0);var r,i=e%26,n=(e-i)/26,t=67108863>>>26-i<<26-i;if(i!==0){var o=0;for(r=0;r<this.length;r++){var a=this.words[r]&t,T=(0|this.words[r])-a<<i;this.words[r]=T|o,o=a>>>26-i}o&&(this.words[r]=o,this.length++)}if(n!==0){for(r=this.length-1;r>=0;r--)this.words[r+n]=this.words[r];for(r=0;r<n;r++)this.words[r]=0;this.length+=n}return this.strip()},s.prototype.ishln=function(e){return m(this.negative===0),this.iushln(e)},s.prototype.iushrn=function(e,r,i){var n;m(typeof e=="number"&&e>=0),n=r?(r-r%26)/26:0;var t=e%26,o=Math.min((e-t)/26,this.length),a=67108863^67108863>>>t<<t,T=i;if(n-=o,n=Math.max(0,n),T){for(var C=0;C<o;C++)T.words[C]=this.words[C];T.length=o}if(o!==0)if(this.length>o)for(this.length-=o,C=0;C<this.length;C++)this.words[C]=this.words[C+o];else this.words[0]=0,this.length=1;var N=0;for(C=this.length-1;C>=0&&(N!==0||C>=n);C--){var O=0|this.words[C];this.words[C]=N<<26-t|O>>>t,N=O&a}return T&&N!==0&&(T.words[T.length++]=N),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(e,r,i){return m(this.negative===0),this.iushrn(e,r,i)},s.prototype.shln=function(e){return this.clone().ishln(e)},s.prototype.ushln=function(e){return this.clone().iushln(e)},s.prototype.shrn=function(e){return this.clone().ishrn(e)},s.prototype.ushrn=function(e){return this.clone().iushrn(e)},s.prototype.testn=function(e){m(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,n=1<<r;return!(this.length<=i||!(this.words[i]&n))},s.prototype.imaskn=function(e){m(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(r!==0&&i++,this.length=Math.min(i,this.length),r!==0){var n=67108863^67108863>>>r<<r;this.words[this.length-1]&=n}return this.strip()},s.prototype.maskn=function(e){return this.clone().imaskn(e)},s.prototype.iaddn=function(e){return m(typeof e=="number"),m(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},s.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},s.prototype.isubn=function(e){if(m(typeof e=="number"),m(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},s.prototype.addn=function(e){return this.clone().iaddn(e)},s.prototype.subn=function(e){return this.clone().isubn(e)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(e,r,i){var n,t,o=e.length+i;this._expand(o);var a=0;for(n=0;n<e.length;n++){t=(0|this.words[n+i])+a;var T=(0|e.words[n])*r;a=((t-=67108863&T)>>26)-(T/67108864|0),this.words[n+i]=67108863&t}for(;n<this.length-i;n++)a=(t=(0|this.words[n+i])+a)>>26,this.words[n+i]=67108863&t;if(a===0)return this.strip();for(m(a===-1),a=0,n=0;n<this.length;n++)a=(t=-(0|this.words[n])+a)>>26,this.words[n]=67108863&t;return this.negative=1,this.strip()},s.prototype._wordDiv=function(e,r){var i=(this.length,e.length),n=this.clone(),t=e,o=0|t.words[t.length-1];(i=26-this._countBits(o))!=0&&(t=t.ushln(i),n.iushln(i),o=0|t.words[t.length-1]);var a,T=n.length-t.length;if(r!=="mod"){(a=new s(null)).length=T+1,a.words=new Array(a.length);for(var C=0;C<a.length;C++)a.words[C]=0}var N=n.clone()._ishlnsubmul(t,1,T);N.negative===0&&(n=N,a&&(a.words[T]=1));for(var O=T-1;O>=0;O--){var R=67108864*(0|n.words[t.length+O])+(0|n.words[t.length+O-1]);for(R=Math.min(R/o|0,67108863),n._ishlnsubmul(t,R,O);n.negative!==0;)R--,n.negative=0,n._ishlnsubmul(t,1,O),n.isZero()||(n.negative^=1);a&&(a.words[O]=R)}return a&&a.strip(),n.strip(),r!=="div"&&i!==0&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(e,r,i){return m(!e.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:this.negative!==0&&e.negative===0?(o=this.neg().divmod(e,r),r!=="mod"&&(n=o.div.neg()),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.iadd(e)),{div:n,mod:t}):this.negative===0&&e.negative!==0?(o=this.divmod(e.neg(),r),r!=="mod"&&(n=o.div.neg()),{div:n,mod:o.mod}):this.negative&e.negative?(o=this.neg().divmod(e.neg(),r),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.isub(e)),{div:o.div,mod:t}):e.length>this.length||this.cmp(e)<0?{div:new s(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new s(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modn(e.words[0]))}:this._wordDiv(e,r);var n,t,o},s.prototype.div=function(e){return this.divmod(e,"div",!1).div},s.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},s.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},s.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var i=r.div.negative!==0?r.mod.isub(e):r.mod,n=e.ushrn(1),t=e.andln(1),o=i.cmp(n);return o<0||t===1&&o===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},s.prototype.modn=function(e){m(e<=67108863);for(var r=67108864%e,i=0,n=this.length-1;n>=0;n--)i=(r*i+(0|this.words[n]))%e;return i},s.prototype.idivn=function(e){m(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*r;this.words[i]=n/e|0,r=n%e}return this.strip()},s.prototype.divn=function(e){return this.clone().idivn(e)},s.prototype.egcd=function(e){m(e.negative===0),m(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n=new s(1),t=new s(0),o=new s(0),a=new s(1),T=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++T;for(var C=i.clone(),N=r.clone();!r.isZero();){for(var O=0,R=1;!(r.words[0]&R)&&O<26;++O,R<<=1);if(O>0)for(r.iushrn(O);O-- >0;)(n.isOdd()||t.isOdd())&&(n.iadd(C),t.isub(N)),n.iushrn(1),t.iushrn(1);for(var F=0,Z=1;!(i.words[0]&Z)&&F<26;++F,Z<<=1);if(F>0)for(i.iushrn(F);F-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(C),a.isub(N)),o.iushrn(1),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),n.isub(o),t.isub(a)):(i.isub(r),o.isub(n),a.isub(t))}return{a:o,b:a,gcd:i.iushln(T)}},s.prototype._invmp=function(e){m(e.negative===0),m(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n,t=new s(1),o=new s(0),a=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var T=0,C=1;!(r.words[0]&C)&&T<26;++T,C<<=1);if(T>0)for(r.iushrn(T);T-- >0;)t.isOdd()&&t.iadd(a),t.iushrn(1);for(var N=0,O=1;!(i.words[0]&O)&&N<26;++N,O<<=1);if(N>0)for(i.iushrn(N);N-- >0;)o.isOdd()&&o.iadd(a),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),t.isub(o)):(i.isub(r),o.isub(t))}return(n=r.cmpn(1)===0?t:o).cmpn(0)<0&&n.iadd(e),n},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),i=e.clone();r.negative=0,i.negative=0;for(var n=0;r.isEven()&&i.isEven();n++)r.iushrn(1),i.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var t=r.cmp(i);if(t<0){var o=r;r=i,i=o}else if(t===0||i.cmpn(1)===0)break;r.isub(i)}return i.iushln(n)},s.prototype.invm=function(e){return this.egcd(e).a.umod(e)},s.prototype.isEven=function(){return(1&this.words[0])==0},s.prototype.isOdd=function(){return(1&this.words[0])==1},s.prototype.andln=function(e){return this.words[0]&e},s.prototype.bincn=function(e){m(typeof e=="number");var r=e%26,i=(e-r)/26,n=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var t=n,o=i;t!==0&&o<this.length;o++){var a=0|this.words[o];t=(a+=t)>>>26,a&=67108863,this.words[o]=a}return t!==0&&(this.words[o]=t,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(e){var r,i=e<0;if(this.negative!==0&&!i)return-1;if(this.negative===0&&i)return 1;if(this.strip(),this.length>1)r=1;else{i&&(e=-e),m(e<=67108863,"Number is too big");var n=0|this.words[0];r=n===e?0:n<e?-1:1}return this.negative!==0?0|-r:r},s.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?0|-r:r},s.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],t=0|e.words[i];if(n!==t){n<t?r=-1:n>t&&(r=1);break}}return r},s.prototype.gtn=function(e){return this.cmpn(e)===1},s.prototype.gt=function(e){return this.cmp(e)===1},s.prototype.gten=function(e){return this.cmpn(e)>=0},s.prototype.gte=function(e){return this.cmp(e)>=0},s.prototype.ltn=function(e){return this.cmpn(e)===-1},s.prototype.lt=function(e){return this.cmp(e)===-1},s.prototype.lten=function(e){return this.cmpn(e)<=0},s.prototype.lte=function(e){return this.cmp(e)<=0},s.prototype.eqn=function(e){return this.cmpn(e)===0},s.prototype.eq=function(e){return this.cmp(e)===0},s.red=function(e){return new J(e)},s.prototype.toRed=function(e){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(e){return this.red=e,this},s.prototype.forceRed=function(e){return m(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return m(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};function j(e,r){this.name=e,this.p=new s(r,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function P(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function B(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function $(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function te(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(e){if(typeof e=="string"){var r=s._prime(e);this.m=r.p,this.prime=r}else m(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function oe(e){J.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}j.prototype._tmp=function(){var e=new s(null);return e.words=new Array(Math.ceil(this.n/13)),e},j.prototype.ireduce=function(e){var r,i=e;do this.split(i,this.tmp),r=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength();while(r>this.n);var n=r<this.n?-1:i.ucmp(this.p);return n===0?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):i.strip!==void 0?i.strip():i._strip(),i},j.prototype.split=function(e,r){e.iushrn(this.n,0,r)},j.prototype.imulK=function(e){return e.imul(this.k)},E(P,j),P.prototype.split=function(e,r){for(var i=4194303,n=Math.min(e.length,9),t=0;t<n;t++)r.words[t]=e.words[t];if(r.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(r.words[r.length++]=o&i,t=10;t<e.length;t++){var a=0|e.words[t];e.words[t-10]=(a&i)<<4|o>>>22,o=a}o>>>=22,e.words[t-10]=o,o===0&&e.length>10?e.length-=10:e.length-=9},P.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,i=0;i<e.length;i++){var n=0|e.words[i];r+=977*n,e.words[i]=67108863&r,r=64*n+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e},E(B,j),E($,j),E(te,j),te.prototype.imulK=function(e){for(var r=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+r,t=67108863&n;n>>>=26,e.words[i]=t,r=n}return r!==0&&(e.words[e.length++]=r),e},s._prime=function(e){if(x[e])return x[e];var r;if(e==="k256")r=new P;else if(e==="p224")r=new B;else if(e==="p192")r=new $;else{if(e!=="p25519")throw new Error("Unknown prime "+e);r=new te}return x[e]=r,r},J.prototype._verify1=function(e){m(e.negative===0,"red works only with positives"),m(e.red,"red works only with red numbers")},J.prototype._verify2=function(e,r){m((e.negative|r.negative)==0,"red works only with positives"),m(e.red&&e.red===r.red,"red works only with red numbers")},J.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},J.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},J.prototype.add=function(e,r){this._verify2(e,r);var i=e.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},J.prototype.iadd=function(e,r){this._verify2(e,r);var i=e.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},J.prototype.sub=function(e,r){this._verify2(e,r);var i=e.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},J.prototype.isub=function(e,r){this._verify2(e,r);var i=e.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},J.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},J.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},J.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},J.prototype.isqr=function(e){return this.imul(e,e.clone())},J.prototype.sqr=function(e){return this.mul(e,e)},J.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(m(r%2==1),r===3){var i=this.m.add(new s(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),t=0;!n.isZero()&&n.andln(1)===0;)t++,n.iushrn(1);m(!n.isZero());var o=new s(1).toRed(this),a=o.redNeg(),T=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new s(2*C*C).toRed(this);this.pow(C,T).cmp(a)!==0;)C.redIAdd(a);for(var N=this.pow(C,n),O=this.pow(e,n.addn(1).iushrn(1)),R=this.pow(e,n),F=t;R.cmp(o)!==0;){for(var Z=R,ie=0;Z.cmp(o)!==0;ie++)Z=Z.redSqr();m(ie<F);var D=this.pow(N,new s(1).iushln(F-ie-1));O=O.redMul(D),N=D.redSqr(),R=R.redMul(N),F=ie}return O},J.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},J.prototype.pow=function(e,r){if(r.isZero())return new s(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var i=new Array(16);i[0]=new s(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var t=i[0],o=0,a=0,T=r.bitLength()%26;for(T===0&&(T=26),n=r.length-1;n>=0;n--){for(var C=r.words[n],N=T-1;N>=0;N--){var O=C>>N&1;t!==i[0]&&(t=this.sqr(t)),O!==0||o!==0?(o<<=1,o|=O,(++a==4||n===0&&N===0)&&(t=this.mul(t,i[o]),a=0,o=0)):a=0}T=26}return t},J.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},J.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},s.mont=function(e){return new oe(e)},E(oe,J),oe.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},oe.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},oe.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},oe.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new s(0)._forceRed(this);var i=e.mul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},oe.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(H=y.nmd(H),this)},7216:(H,_,y)=>{function M(m,E){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!E||typeof E!="object"&&typeof E!="function"?m:E}y.r(_),y.d(_,{default:()=>v});const v=function(m){function E(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";(function(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")})(this,E);var p=M(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,s));return Object.defineProperty(p,"message",{configurable:!0,enumerable:!1,value:s,writable:!0}),Object.defineProperty(p,"name",{configurable:!0,enumerable:!1,value:p.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(p,p.constructor),M(p)):(Object.defineProperty(p,"stack",{configurable:!0,enumerable:!1,value:new Error(s).stack,writable:!0}),p)}return function(s,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);s.prototype=Object.create(p&&p.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(s,p):s.__proto__=p)}(E,m),E}(function(m){function E(){m.apply(this,arguments)}return E.prototype=Object.create(m.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(E,m):E.__proto__=m,E}(Error))},8091:H=>{function _(y,M){if(y==null)throw new TypeError("Cannot convert first argument to object");for(var v=Object(y),m=1;m<arguments.length;m++){var E=arguments[m];if(E!=null)for(var s=Object.keys(Object(E)),p=0,c=s.length;p<c;p++){var l=s[p],f=Object.getOwnPropertyDescriptor(E,l);f!==void 0&&f.enumerable&&(v[l]=E[l])}}return v}H.exports={assign:_,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:_})}}},7187:(H,_,y)=>{var M,v=y(5108),m=typeof Reflect=="object"?Reflect:null,E=m&&typeof m.apply=="function"?m.apply:function(x,j,P){return Function.prototype.apply.call(x,j,P)};M=m&&typeof m.ownKeys=="function"?m.ownKeys:Object.getOwnPropertySymbols?function(x){return Object.getOwnPropertyNames(x).concat(Object.getOwnPropertySymbols(x))}:function(x){return Object.getOwnPropertyNames(x)};var s=Number.isNaN||function(x){return x!=x};function p(){p.init.call(this)}H.exports=p,H.exports.once=function(x,j){return new Promise(function(P,B){function $(J){x.removeListener(j,te),B(J)}function te(){typeof x.removeListener=="function"&&x.removeListener("error",$),P([].slice.call(arguments))}A(x,j,te,{once:!0}),j!=="error"&&function(J,oe,e){typeof J.on=="function"&&A(J,"error",oe,{once:!0})}(x,$)})},p.EventEmitter=p,p.prototype._events=void 0,p.prototype._eventsCount=0,p.prototype._maxListeners=void 0;var c=10;function l(x){if(typeof x!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof x)}function f(x){return x._maxListeners===void 0?p.defaultMaxListeners:x._maxListeners}function g(x,j,P,B){var $,te,J,oe;if(l(P),(te=x._events)===void 0?(te=x._events=Object.create(null),x._eventsCount=0):(te.newListener!==void 0&&(x.emit("newListener",j,P.listener?P.listener:P),te=x._events),J=te[j]),J===void 0)J=te[j]=P,++x._eventsCount;else if(typeof J=="function"?J=te[j]=B?[P,J]:[J,P]:B?J.unshift(P):J.push(P),($=f(x))>0&&J.length>$&&!J.warned){J.warned=!0;var e=new Error("Possible EventEmitter memory leak detected. "+J.length+" "+String(j)+" listeners added. Use emitter.setMaxListeners() to increase limit");e.name="MaxListenersExceededWarning",e.emitter=x,e.type=j,e.count=J.length,oe=e,v&&v.warn&&v.warn(oe)}return x}function h(){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 u(x,j,P){var B={fired:!1,wrapFn:void 0,target:x,type:j,listener:P},$=h.bind(B);return $.listener=P,B.wrapFn=$,$}function w(x,j,P){var B=x._events;if(B===void 0)return[];var $=B[j];return $===void 0?[]:typeof $=="function"?P?[$.listener||$]:[$]:P?function(te){for(var J=new Array(te.length),oe=0;oe<J.length;++oe)J[oe]=te[oe].listener||te[oe];return J}($):k($,$.length)}function b(x){var j=this._events;if(j!==void 0){var P=j[x];if(typeof P=="function")return 1;if(P!==void 0)return P.length}return 0}function k(x,j){for(var P=new Array(j),B=0;B<j;++B)P[B]=x[B];return P}function A(x,j,P,B){if(typeof x.on=="function")B.once?x.once(j,P):x.on(j,P);else{if(typeof x.addEventListener!="function")throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof x);x.addEventListener(j,function $(te){B.once&&x.removeEventListener(j,$),P(te)})}}Object.defineProperty(p,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(x){if(typeof x!="number"||x<0||s(x))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+x+".");c=x}}),p.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},p.prototype.setMaxListeners=function(x){if(typeof x!="number"||x<0||s(x))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+x+".");return this._maxListeners=x,this},p.prototype.getMaxListeners=function(){return f(this)},p.prototype.emit=function(x){for(var j=[],P=1;P<arguments.length;P++)j.push(arguments[P]);var B=x==="error",$=this._events;if($!==void 0)B=B&&$.error===void 0;else if(!B)return!1;if(B){var te;if(j.length>0&&(te=j[0]),te instanceof Error)throw te;var J=new Error("Unhandled error."+(te?" ("+te.message+")":""));throw J.context=te,J}var oe=$[x];if(oe===void 0)return!1;if(typeof oe=="function")E(oe,this,j);else{var e=oe.length,r=k(oe,e);for(P=0;P<e;++P)E(r[P],this,j)}return!0},p.prototype.addListener=function(x,j){return g(this,x,j,!1)},p.prototype.on=p.prototype.addListener,p.prototype.prependListener=function(x,j){return g(this,x,j,!0)},p.prototype.once=function(x,j){return l(j),this.on(x,u(this,x,j)),this},p.prototype.prependOnceListener=function(x,j){return l(j),this.prependListener(x,u(this,x,j)),this},p.prototype.removeListener=function(x,j){var P,B,$,te,J;if(l(j),(B=this._events)===void 0)return this;if((P=B[x])===void 0)return this;if(P===j||P.listener===j)--this._eventsCount==0?this._events=Object.create(null):(delete B[x],B.removeListener&&this.emit("removeListener",x,P.listener||j));else if(typeof P!="function"){for($=-1,te=P.length-1;te>=0;te--)if(P[te]===j||P[te].listener===j){J=P[te].listener,$=te;break}if($<0)return this;$===0?P.shift():function(oe,e){for(;e+1<oe.length;e++)oe[e]=oe[e+1];oe.pop()}(P,$),P.length===1&&(B[x]=P[0]),B.removeListener!==void 0&&this.emit("removeListener",x,J||j)}return this},p.prototype.off=p.prototype.removeListener,p.prototype.removeAllListeners=function(x){var j,P,B;if((P=this._events)===void 0)return this;if(P.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):P[x]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete P[x]),this;if(arguments.length===0){var $,te=Object.keys(P);for(B=0;B<te.length;++B)($=te[B])!=="removeListener"&&this.removeAllListeners($);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(j=P[x])=="function")this.removeListener(x,j);else if(j!==void 0)for(B=j.length-1;B>=0;B--)this.removeListener(x,j[B]);return this},p.prototype.listeners=function(x){return w(this,x,!0)},p.prototype.rawListeners=function(x){return w(this,x,!1)},p.listenerCount=function(x,j){return typeof x.listenerCount=="function"?x.listenerCount(j):b.call(x,j)},p.prototype.listenerCount=b,p.prototype.eventNames=function(){return this._eventsCount>0?M(this._events):[]}},3048:(H,_,y)=>{var M=y(9509).Buffer,v=y(2318);H.exports=function(m,E,s,p){if(M.isBuffer(m)||(m=M.from(m,"binary")),E&&(M.isBuffer(E)||(E=M.from(E,"binary")),E.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var c=s/8,l=M.alloc(c),f=M.alloc(p||0),g=M.alloc(0);c>0||p>0;){var h=new v;h.update(g),h.update(m),E&&h.update(E),g=h.digest();var u=0;if(c>0){var w=l.length-c;u=Math.min(c,g.length),g.copy(l,w,0,u),c-=u}if(u<g.length&&p>0){var b=f.length-p,k=Math.min(p,g.length-u);g.copy(f,b,u,u+k),p-=k}}return g.fill(0),{key:l,iv:f}}},259:(H,_,y)=>{const M=y(7849).buildOptions,v={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:" ",supressEmptyNode:!1,tagValueProcessor:function(k){return k},attrValueProcessor:function(k){return k}},m=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor","rootNodeName"];function E(k){this.options=M(k,v,m),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=w),this.options.cdataTagName?this.isCDATA=b:this.isCDATA=function(){return!1},this.replaceCDATAstr=p,this.replaceCDATAarr=c,this.processTextOrObjNode=s,this.options.format?(this.indentate=u,this.tagEndChar=`>
|
|
71
|
+
`,this.newLine=`
|
|
72
|
+
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=h,this.buildObjNode=f):(this.buildTextNode=g,this.buildObjNode=l),this.buildTextValNode=g,this.buildObjectNode=l}function s(k,A,x){const j=this.j2x(k,x+1);return k[this.options.textNodeName]!==void 0&&Object.keys(k).length===1?this.buildTextNode(j.val,A,j.attrStr,x):this.buildObjNode(j.val,A,j.attrStr,x)}function p(k,A){return k=this.options.tagValueProcessor(""+k),this.options.cdataPositionChar===""||k===""?k+"<![CDATA["+A+"]]"+this.tagEndChar:k.replace(this.options.cdataPositionChar,"<![CDATA["+A+"]]"+this.tagEndChar)}function c(k,A){if(k=this.options.tagValueProcessor(""+k),this.options.cdataPositionChar===""||k==="")return k+"<![CDATA["+A.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let x in A)k=k.replace(this.options.cdataPositionChar,"<![CDATA["+A[x]+"]]>");return k+this.newLine}function l(k,A,x,j){return x&&k.indexOf("<")===-1?this.indentate(j)+"<"+A+x+">"+k+"</"+A+this.tagEndChar:this.indentate(j)+"<"+A+x+this.tagEndChar+k+this.indentate(j)+"</"+A+this.tagEndChar}function f(k,A,x,j){return k!==""?this.buildObjectNode(k,A,x,j):this.indentate(j)+"<"+A+x+"/"+this.tagEndChar}function g(k,A,x,j){return this.indentate(j)+"<"+A+x+">"+this.options.tagValueProcessor(k)+"</"+A+this.tagEndChar}function h(k,A,x,j){return k!==""?this.buildTextValNode(k,A,x,j):this.indentate(j)+"<"+A+x+"/"+this.tagEndChar}function u(k){return this.options.indentBy.repeat(k)}function w(k){return!!k.startsWith(this.options.attributeNamePrefix)&&k.substr(this.attrPrefixLen)}function b(k){return k===this.options.cdataTagName}E.prototype.parse=function(k){return Array.isArray(k)&&this.options.rootNodeName&&this.options.rootNodeName.length>1&&(k={[this.options.rootNodeName]:k}),this.j2x(k,0).val},E.prototype.j2x=function(k,A){let x="",j="";for(let P in k)if(k[P]!==void 0)if(k[P]===null)j+=this.indentate(A)+"<"+P+"/"+this.tagEndChar;else if(k[P]instanceof Date)j+=this.buildTextNode(k[P],P,"",A);else if(typeof k[P]!="object"){const B=this.isAttribute(P);B?x+=" "+B+'="'+this.options.attrValueProcessor(""+k[P])+'"':this.isCDATA(P)?k[this.options.textNodeName]?j+=this.replaceCDATAstr(k[this.options.textNodeName],k[P]):j+=this.replaceCDATAstr("",k[P]):P===this.options.textNodeName?k[this.options.cdataTagName]||(j+=this.options.tagValueProcessor(""+k[P])):j+=this.buildTextNode(k[P],P,"",A)}else if(Array.isArray(k[P]))if(this.isCDATA(P))j+=this.indentate(A),k[this.options.textNodeName]?j+=this.replaceCDATAarr(k[this.options.textNodeName],k[P]):j+=this.replaceCDATAarr("",k[P]);else{const B=k[P].length;for(let $=0;$<B;$++){const te=k[P][$];te===void 0||(j+=te===null?this.indentate(A)+"<"+P+"/"+this.tagEndChar:typeof te=="object"?this.processTextOrObjNode(te,P,A):this.buildTextNode(te,P,"",A))}}else if(this.options.attrNodeName&&P===this.options.attrNodeName){const B=Object.keys(k[P]),$=B.length;for(let te=0;te<$;te++)x+=" "+B[te]+'="'+this.options.attrValueProcessor(""+k[P][B[te]])+'"'}else j+=this.processTextOrObjNode(k[P],P,A);return{attrStr:x,val:j}},H.exports=E},8398:(H,_,y)=>{const M=function(g){return String.fromCharCode(g)},v={nilChar:M(176),missingChar:M(201),nilPremitive:M(175),missingPremitive:M(200),emptyChar:M(178),emptyValue:M(177),boundryChar:M(179),objStart:M(198),arrStart:M(204),arrayEnd:M(185)},m=[v.nilChar,v.nilPremitive,v.missingChar,v.missingPremitive,v.boundryChar,v.emptyChar,v.emptyValue,v.arrayEnd,v.objStart,v.arrStart],E=function(g,h,u){if(typeof h=="string")return g&&g[0]&&g[0].val!==void 0?s(g[0].val):s(g);{const b=(w=g)===void 0?v.missingChar:w===null?v.nilChar:!(w.child&&Object.keys(w.child).length===0&&(!w.attrsMap||Object.keys(w.attrsMap).length===0))||v.emptyChar;if(b===!0){let k="";if(Array.isArray(h)){k+=v.arrStart;const A=h[0],x=g.length;if(typeof A=="string")for(let j=0;j<x;j++){const P=s(g[j].val);k=p(k,P)}else for(let j=0;j<x;j++){const P=E(g[j],A,u);k=p(k,P)}k+=v.arrayEnd}else{k+=v.objStart;const A=Object.keys(h);Array.isArray(g)&&(g=g[0]);for(let x in A){const j=A[x];let P;P=!u.ignoreAttributes&&g.attrsMap&&g.attrsMap[j]?E(g.attrsMap[j],h[j],u):j===u.textNodeName?E(g.val,h[j],u):E(g.child[j],h[j],u),k=p(k,P)}}return k}return b}var w},s=function(g){switch(g){case void 0:return v.missingPremitive;case null:return v.nilPremitive;case"":return v.emptyValue;default:return g}},p=function(g,h){return c(h[0])||c(g[g.length-1])||(g+=v.boundryChar),g+h},c=function(g){return m.indexOf(g)!==-1},l=y(3543),f=y(7849).buildOptions;_.convert2nimn=function(g,h,u){return u=f(u,l.defaultOptions,l.props),E(g,h,u)}},284:(H,_,y)=>{const M=y(7849),v=function(m,E,s){const p={};if(!E.alwaysCreateTextNode&&(!m.child||M.isEmptyObject(m.child))&&(!m.attrsMap||M.isEmptyObject(m.attrsMap)))return M.isExist(m.val)?m.val:"";if(M.isExist(m.val)&&(typeof m.val!="string"||m.val!==""&&m.val!==E.cdataPositionChar)){const l=M.isTagNameInArrayMode(m.tagname,E.arrayMode,s);p[E.textNodeName]=l?[m.val]:m.val}M.merge(p,m.attrsMap,E.arrayMode);const c=Object.keys(m.child);for(let l=0;l<c.length;l++){const f=c[l];if(m.child[f]&&m.child[f].length>1){p[f]=[];for(let g in m.child[f])m.child[f].hasOwnProperty(g)&&p[f].push(v(m.child[f][g],E,f))}else{const g=v(m.child[f][0],E,f),h=E.arrayMode===!0&&typeof g=="object"||M.isTagNameInArrayMode(f,E.arrayMode,s);p[f]=h?[g]:g}}return p};_.convertToJson=v},7702:(H,_,y)=>{const M=y(7849),v=y(7849).buildOptions,m=y(3543),E=function(s,p,c){let l="{";const f=Object.keys(s.child);for(let h=0;h<f.length;h++){const u=f[h];if(s.child[u]&&s.child[u].length>1){l+='"'+u+'" : [ ';for(let w in s.child[u])l+=E(s.child[u][w],p)+" , ";l=l.substr(0,l.length-1)+" ] "}else l+='"'+u+'" : '+E(s.child[u][0],p)+" ,"}return M.merge(l,s.attrsMap),M.isEmptyObject(l)?M.isExist(s.val)?s.val:"":(M.isExist(s.val)&&(typeof s.val!="string"||s.val!==""&&s.val!==p.cdataPositionChar)&&(l+='"'+p.textNodeName+'" : '+((g=s.val)!==!0&&g!==!1&&isNaN(g)?'"'+g+'"':g)),l[l.length-1]===","&&(l=l.substr(0,l.length-2)),l+"}");var g};_.convertToJsonString=function(s,p){return(p=v(p,m.defaultOptions,m.props)).indentBy=p.indentBy||"",E(s,p)}},6965:(H,_,y)=>{y(5108);const M=y(284),v=y(3543),m=y(3543),E=y(7849).buildOptions,s=y(8383);_.parse=function(p,c={},l){if(l){l===!0&&(l={});const h=s.validate(p,l);if(h!==!0)throw Error(h.err.msg)}c.parseTrueNumberOnly&&c.parseNodeValue!==!1&&!c.numParseOptions&&(c.numParseOptions={leadingZeros:!1});let f=E(c,m.defaultOptions,m.props);const g=v.getTraversalObj(p,f);return M.convertToJson(g,f)},_.convertTonimn=y(8398).convert2nimn,_.getTraversalObj=v.getTraversalObj,_.convertToJson=M.convertToJson,_.convertToJsonString=y(7702).convertToJsonString,_.validate=s.validate,_.j2xParser=y(259),_.parseToNimn=function(p,c,l){return _.convertTonimn(_.getTraversalObj(p,l),c,l)}},7849:(H,_)=>{const y=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",M="["+y+"]["+y+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",v=new RegExp("^"+M+"$");_.isExist=function(m){return m!==void 0},_.isEmptyObject=function(m){return Object.keys(m).length===0},_.merge=function(m,E,s){if(E){const p=Object.keys(E),c=p.length;for(let l=0;l<c;l++)m[p[l]]=s==="strict"?[E[p[l]]]:E[p[l]]}},_.getValue=function(m){return _.isExist(m)?m:""},_.buildOptions=function(m,E,s){let p={};if(!m)return E;for(let c=0;c<s.length;c++)m[s[c]]!==void 0?p[s[c]]=m[s[c]]:p[s[c]]=E[s[c]];return p},_.isTagNameInArrayMode=function(m,E,s){return E!==!1&&(E instanceof RegExp?E.test(m):typeof E=="function"?!!E(m,s):E==="strict")},_.isName=function(m){return v.exec(m)!=null},_.getAllMatches=function(m,E){const s=[];let p=E.exec(m);for(;p;){const c=[];c.startIndex=E.lastIndex-p[0].length;const l=p.length;for(let f=0;f<l;f++)c.push(p[f]);s.push(c),p=E.exec(m)}return s},_.nameRegexp=M},8383:(H,_,y)=>{const M=y(7849),v={allowBooleanAttributes:!1},m=["allowBooleanAttributes"];function E(A,x){const j=x;for(;x<A.length;x++)if(!(A[x]!="?"&&A[x]!=" ")){const P=A.substr(j,x-j);if(x>5&&P==="xml")return u("InvalidXml","XML declaration allowed only at the start of the document.",b(A,x));if(A[x]=="?"&&A[x+1]==">"){x++;break}}return x}function s(A,x){if(A.length>x+5&&A[x+1]==="-"&&A[x+2]==="-"){for(x+=3;x<A.length;x++)if(A[x]==="-"&&A[x+1]==="-"&&A[x+2]===">"){x+=2;break}}else if(A.length>x+8&&A[x+1]==="D"&&A[x+2]==="O"&&A[x+3]==="C"&&A[x+4]==="T"&&A[x+5]==="Y"&&A[x+6]==="P"&&A[x+7]==="E"){let j=1;for(x+=8;x<A.length;x++)if(A[x]==="<")j++;else if(A[x]===">"&&(j--,j===0))break}else if(A.length>x+9&&A[x+1]==="["&&A[x+2]==="C"&&A[x+3]==="D"&&A[x+4]==="A"&&A[x+5]==="T"&&A[x+6]==="A"&&A[x+7]==="["){for(x+=8;x<A.length;x++)if(A[x]==="]"&&A[x+1]==="]"&&A[x+2]===">"){x+=2;break}}return x}_.validate=function(A,x){x=M.buildOptions(x,v,m);const j=[];let P=!1,B=!1;A[0]==="\uFEFF"&&(A=A.substr(1));for(let te=0;te<A.length;te++)if(A[te]==="<"&&A[te+1]==="?"){if(te+=2,te=E(A,te),te.err)return te}else{if(A[te]!=="<"){if(A[te]===" "||A[te]===" "||A[te]===`
|
|
73
|
+
`||A[te]==="\r")continue;return u("InvalidChar","char '"+A[te]+"' is not expected.",b(A,te))}{let J=te;if(te++,A[te]==="!"){te=s(A,te);continue}{let oe=!1;A[te]==="/"&&(oe=!0,te++);let e="";for(;te<A.length&&A[te]!==">"&&A[te]!==" "&&A[te]!==" "&&A[te]!==`
|
|
74
|
+
`&&A[te]!=="\r";te++)e+=A[te];if(e=e.trim(),e[e.length-1]==="/"&&(e=e.substring(0,e.length-1),te--),$=e,!M.isName($)){let n;return n=e.trim().length===0?"Invalid space after '<'.":"Tag '"+e+"' is an invalid name.",u("InvalidTag",n,b(A,te))}const r=l(A,te);if(r===!1)return u("InvalidAttr","Attributes for '"+e+"' have open quote.",b(A,te));let i=r.value;if(te=r.index,i[i.length-1]==="/"){const n=te-i.length;i=i.substring(0,i.length-1);const t=g(i,x);if(t!==!0)return u(t.err.code,t.err.msg,b(A,n+t.err.line));P=!0}else if(oe){if(!r.tagClosed)return u("InvalidTag","Closing tag '"+e+"' doesn't have proper closing.",b(A,te));if(i.trim().length>0)return u("InvalidTag","Closing tag '"+e+"' can't have attributes or invalid starting.",b(A,J));{const n=j.pop();if(e!==n.tagName){let t=b(A,n.tagStartPos);return u("InvalidTag","Expected closing tag '"+n.tagName+"' (opened in line "+t.line+", col "+t.col+") instead of closing tag '"+e+"'.",b(A,J))}j.length==0&&(B=!0)}}else{const n=g(i,x);if(n!==!0)return u(n.err.code,n.err.msg,b(A,te-i.length+n.err.line));if(B===!0)return u("InvalidXml","Multiple possible root nodes found.",b(A,te));j.push({tagName:e,tagStartPos:J}),P=!0}for(te++;te<A.length;te++)if(A[te]==="<"){if(A[te+1]==="!"){te++,te=s(A,te);continue}if(A[te+1]!=="?")break;if(te=E(A,++te),te.err)return te}else if(A[te]==="&"){const n=h(A,te);if(n==-1)return u("InvalidChar","char '&' is not expected.",b(A,te));te=n}A[te]==="<"&&te--}}}var $;return P?j.length==1?u("InvalidTag","Unclosed tag '"+j[0].tagName+"'.",b(A,j[0].tagStartPos)):!(j.length>0)||u("InvalidXml","Invalid '"+JSON.stringify(j.map(te=>te.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):u("InvalidXml","Start tag expected.",1)};const p='"',c="'";function l(A,x){let j="",P="",B=!1;for(;x<A.length;x++){if(A[x]===p||A[x]===c)P===""?P=A[x]:P!==A[x]||(P="");else if(A[x]===">"&&P===""){B=!0;break}j+=A[x]}return P===""&&{value:j,index:x,tagClosed:B}}const f=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function g(A,x){const j=M.getAllMatches(A,f),P={};for(let B=0;B<j.length;B++){if(j[B][1].length===0)return u("InvalidAttr","Attribute '"+j[B][2]+"' has no space in starting.",k(j[B]));if(j[B][3]===void 0&&!x.allowBooleanAttributes)return u("InvalidAttr","boolean attribute '"+j[B][2]+"' is not allowed.",k(j[B]));const $=j[B][2];if(!w($))return u("InvalidAttr","Attribute '"+$+"' is an invalid name.",k(j[B]));if(P.hasOwnProperty($))return u("InvalidAttr","Attribute '"+$+"' is repeated.",k(j[B]));P[$]=1}return!0}function h(A,x){if(A[++x]===";")return-1;if(A[x]==="#")return function(P,B){let $=/\d/;for(P[B]==="x"&&(B++,$=/[\da-fA-F]/);B<P.length;B++){if(P[B]===";")return B;if(!P[B].match($))break}return-1}(A,++x);let j=0;for(;x<A.length;x++,j++)if(!(A[x].match(/\w/)&&j<20)){if(A[x]===";")break;return-1}return x}function u(A,x,j){return{err:{code:A,msg:x,line:j.line||j,col:j.col}}}function w(A){return M.isName(A)}function b(A,x){const j=A.substring(0,x).split(/\r?\n/);return{line:j.length,col:j[j.length-1].length+1}}function k(A){return A.startIndex+A[1].length}},6468:H=>{H.exports=function(_,y,M){this.tagname=_,this.parent=y,this.child={},this.attrsMap={},this.val=M,this.addChild=function(v){Array.isArray(this.child[v.tagname])?this.child[v.tagname].push(v):this.child[v.tagname]=[v]}}},3543:(H,_,y)=>{const M=y(7849),v=y(7849).buildOptions,m=y(6468),E=y(4153);"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,M.nameRegexp),!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const s={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",numParseOptions:{hex:!0,leadingZeros:!0},tagValueProcessor:function(b,k){return b},attrValueProcessor:function(b,k){return b},stopNodes:[],alwaysCreateTextNode:!1};_.defaultOptions=s;const p=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","numParseOptions","stopNodes","alwaysCreateTextNode"];function c(b,k,A){return k&&(A.trimValues&&(k=k.trim()),k=f(k=A.tagValueProcessor(k,b),A.parseNodeValue,A.numParseOptions)),k}function l(b,k){if(k.ignoreNameSpace){const A=b.split(":"),x=b.charAt(0)==="/"?"/":"";if(A[0]==="xmlns")return"";A.length===2&&(b=x+A[1])}return b}function f(b,k,A){if(k&&typeof b=="string"){const x=b.trim();return x==="true"||x!=="false"&&E(b,A)}return M.isExist(b)?b:""}_.props=p;const g=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function h(b,k){if(!k.ignoreAttributes&&typeof b=="string"){b=b.replace(/\r?\n/g," ");const A=M.getAllMatches(b,g),x=A.length,j={};for(let P=0;P<x;P++){const B=l(A[P][1],k);B.length&&(A[P][4]!==void 0?(k.trimValues&&(A[P][4]=A[P][4].trim()),A[P][4]=k.attrValueProcessor(A[P][4],B),j[k.attributeNamePrefix+B]=f(A[P][4],k.parseAttributeValue,k.numParseOptions)):k.allowBooleanAttributes&&(j[k.attributeNamePrefix+B]=!0))}if(!Object.keys(j).length)return;if(k.attrNodeName){const P={};return P[k.attrNodeName]=j,P}return j}}function u(b,k){let A,x="";for(let j=k;j<b.length;j++){let P=b[j];if(A)P===A&&(A="");else if(P==='"'||P==="'")A=P;else{if(P===">")return{data:x,index:j};P===" "&&(P=" ")}x+=P}}function w(b,k,A,x){const j=b.indexOf(k,A);if(j===-1)throw new Error(x);return j+k.length-1}_.getTraversalObj=function(b,k){b=b.replace(/\r\n?/g,`
|
|
75
|
+
`),k=v(k,s,p);const A=new m("!xml");let x=A,j="";for(let P=0;P<b.length;P++)if(b[P]==="<")if(b[P+1]==="/"){const B=w(b,">",P,"Closing Tag is not closed.");let $=b.substring(P+2,B).trim();if(k.ignoreNameSpace){const te=$.indexOf(":");te!==-1&&($=$.substr(te+1))}x&&(x.val?x.val=M.getValue(x.val)+""+c($,j,k):x.val=c($,j,k)),k.stopNodes.length&&k.stopNodes.includes(x.tagname)&&(x.child=[],x.attrsMap==null&&(x.attrsMap={}),x.val=b.substr(x.startIndex+1,P-x.startIndex-1)),x=x.parent,j="",P=B}else if(b[P+1]==="?")P=w(b,"?>",P,"Pi Tag is not closed.");else if(b.substr(P+1,3)==="!--")P=w(b,"-->",P,"Comment is not closed.");else if(b.substr(P+1,2)==="!D"){const B=w(b,">",P,"DOCTYPE is not closed.");P=b.substring(P,B).indexOf("[")>=0?b.indexOf("]>",P)+1:B}else if(b.substr(P+1,2)==="!["){const B=w(b,"]]>",P,"CDATA is not closed.")-2,$=b.substring(P+9,B);if(j&&(x.val=M.getValue(x.val)+""+c(x.tagname,j,k),j=""),k.cdataTagName){const te=new m(k.cdataTagName,x,$);x.addChild(te),x.val=M.getValue(x.val)+k.cdataPositionChar,$&&(te.val=$)}else x.val=(x.val||"")+($||"");P=B+2}else{const B=u(b,P+1);let $=B.data;const te=B.index,J=$.indexOf(" ");let oe=$,e=!0;if(J!==-1&&(oe=$.substr(0,J).replace(/\s\s*$/,""),$=$.substr(J+1)),k.ignoreNameSpace){const r=oe.indexOf(":");r!==-1&&(oe=oe.substr(r+1),e=oe!==B.data.substr(r+1))}if(x&&j&&x.tagname!=="!xml"&&(x.val=M.getValue(x.val)+""+c(x.tagname,j,k)),$.length>0&&$.lastIndexOf("/")===$.length-1){oe[oe.length-1]==="/"?(oe=oe.substr(0,oe.length-1),$=oe):$=$.substr(0,$.length-1);const r=new m(oe,x,"");oe!==$&&(r.attrsMap=h($,k)),x.addChild(r)}else{const r=new m(oe,x);k.stopNodes.length&&k.stopNodes.includes(r.tagname)&&(r.startIndex=te),oe!==$&&e&&(r.attrsMap=h($,k)),x.addChild(r),x=r}j="",P=te}else j+=b[P];return A}},2806:H=>{H.exports=function(_,y){for(var M={},v=Object.keys(_),m=Array.isArray(y),E=0;E<v.length;E++){var s=v[E],p=_[s];(m?y.indexOf(s)!==-1:y(s,p,_))&&(M[s]=p)}return M}},4029:(H,_,y)=>{var M=y(5320),v=Object.prototype.toString,m=Object.prototype.hasOwnProperty,E=function(c,l,f){for(var g=0,h=c.length;g<h;g++)m.call(c,g)&&(f==null?l(c[g],g,c):l.call(f,c[g],g,c))},s=function(c,l,f){for(var g=0,h=c.length;g<h;g++)f==null?l(c.charAt(g),g,c):l.call(f,c.charAt(g),g,c)},p=function(c,l,f){for(var g in c)m.call(c,g)&&(f==null?l(c[g],g,c):l.call(f,c[g],g,c))};H.exports=function(c,l,f){if(!M(l))throw new TypeError("iterator must be a function");var g;arguments.length>=3&&(g=f),v.call(c)==="[object Array]"?E(c,l,g):typeof c=="string"?s(c,l,g):p(c,l,g)}},7648:H=>{var _="Function.prototype.bind called on incompatible ",y=Array.prototype.slice,M=Object.prototype.toString,v="[object Function]";H.exports=function(m){var E=this;if(typeof E!="function"||M.call(E)!==v)throw new TypeError(_+E);for(var s,p=y.call(arguments,1),c=Math.max(0,E.length-p.length),l=[],f=0;f<c;f++)l.push("$"+f);if(s=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var h=E.apply(this,p.concat(y.call(arguments)));return Object(h)===h?h:this}return E.apply(m,p.concat(y.call(arguments)))}),E.prototype){var g=function(){};g.prototype=E.prototype,s.prototype=new g,g.prototype=null}return s}},8612:(H,_,y)=>{var M=y(7648);H.exports=Function.prototype.bind||M},210:(H,_,y)=>{var M,v=SyntaxError,m=Function,E=TypeError,s=function(n){try{return m('"use strict"; return ('+n+").constructor;")()}catch{}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch{p=null}var c=function(){throw new E},l=p?function(){try{return c}catch{try{return p(arguments,"callee").get}catch{return c}}}():c,f=y(1405)(),g=Object.getPrototypeOf||function(n){return n.__proto__},h={},u=typeof Uint8Array>"u"?M:g(Uint8Array),w={"%AggregateError%":typeof AggregateError>"u"?M:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?M:ArrayBuffer,"%ArrayIteratorPrototype%":f?g([][Symbol.iterator]()):M,"%AsyncFromSyncIteratorPrototype%":M,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?M:Atomics,"%BigInt%":typeof BigInt>"u"?M:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?M:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?M:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?M:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?M:Float32Array,"%Float64Array%":typeof Float64Array>"u"?M:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?M:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?M:Int8Array,"%Int16Array%":typeof Int16Array>"u"?M:Int16Array,"%Int32Array%":typeof Int32Array>"u"?M:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?g(g([][Symbol.iterator]())):M,"%JSON%":typeof JSON=="object"?JSON:M,"%Map%":typeof Map>"u"?M:Map,"%MapIteratorPrototype%":typeof Map<"u"&&f?g(new Map()[Symbol.iterator]()):M,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?M:Promise,"%Proxy%":typeof Proxy>"u"?M:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?M:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?M:Set,"%SetIteratorPrototype%":typeof Set<"u"&&f?g(new Set()[Symbol.iterator]()):M,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?M:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?g(""[Symbol.iterator]()):M,"%Symbol%":f?Symbol:M,"%SyntaxError%":v,"%ThrowTypeError%":l,"%TypedArray%":u,"%TypeError%":E,"%Uint8Array%":typeof Uint8Array>"u"?M:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?M:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?M:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?M:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?M:WeakMap,"%WeakRef%":typeof WeakRef>"u"?M:WeakRef,"%WeakSet%":typeof WeakSet>"u"?M:WeakSet};try{null.error}catch(n){var b=g(g(n));w["%Error.prototype%"]=b}var k=function n(t){var o;if(t==="%AsyncFunction%")o=s("async function () {}");else if(t==="%GeneratorFunction%")o=s("function* () {}");else if(t==="%AsyncGeneratorFunction%")o=s("async function* () {}");else if(t==="%AsyncGenerator%"){var a=n("%AsyncGeneratorFunction%");a&&(o=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var T=n("%AsyncGenerator%");T&&(o=g(T.prototype))}return w[t]=o,o},A={"%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"]},x=y(8612),j=y(7642),P=x.call(Function.call,Array.prototype.concat),B=x.call(Function.apply,Array.prototype.splice),$=x.call(Function.call,String.prototype.replace),te=x.call(Function.call,String.prototype.slice),J=x.call(Function.call,RegExp.prototype.exec),oe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,e=/\\(\\)?/g,r=function(n){var t=te(n,0,1),o=te(n,-1);if(t==="%"&&o!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&t!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var a=[];return $(n,oe,function(T,C,N,O){a[a.length]=N?$(O,e,"$1"):C||T}),a},i=function(n,t){var o,a=n;if(j(A,a)&&(a="%"+(o=A[a])[0]+"%"),j(w,a)){var T=w[a];if(T===h&&(T=k(a)),T===void 0&&!t)throw new E("intrinsic "+n+" exists, but is not available. Please file an issue!");return{alias:o,name:a,value:T}}throw new v("intrinsic "+n+" does not exist!")};H.exports=function(n,t){if(typeof n!="string"||n.length===0)throw new E("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new E('"allowMissing" argument must be a boolean');if(J(/^%?[^%]*%?$/,n)===null)throw new v("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=r(n),a=o.length>0?o[0]:"",T=i("%"+a+"%",t),C=T.name,N=T.value,O=!1,R=T.alias;R&&(a=R[0],B(o,P([0,1],R)));for(var F=1,Z=!0;F<o.length;F+=1){var ie=o[F],D=te(ie,0,1),Y=te(ie,-1);if((D==='"'||D==="'"||D==="`"||Y==='"'||Y==="'"||Y==="`")&&D!==Y)throw new v("property names with quotes must have matching quotes");if(ie!=="constructor"&&Z||(O=!0),j(w,C="%"+(a+="."+ie)+"%"))N=w[C];else if(N!=null){if(!(ie in N)){if(!t)throw new E("base intrinsic for "+n+" exists, but the property is not available.");return}if(p&&F+1>=o.length){var z=p(N,ie);N=(Z=!!z)&&"get"in z&&!("originalValue"in z.get)?z.get:N[ie]}else Z=j(N,ie),N=N[ie];Z&&!O&&(w[C]=N)}}return N}},7296:(H,_,y)=>{var M=y(210)("%Object.getOwnPropertyDescriptor%",!0);if(M)try{M([],"length")}catch{M=null}H.exports=M},1044:(H,_,y)=>{var M=y(210)("%Object.defineProperty%",!0),v=function(){if(M)try{return M({},"a",{value:1}),!0}catch{return!1}return!1};v.hasArrayLengthDefineBug=function(){if(!v())return null;try{return M([],"length",{value:1}).length!==1}catch{return!0}},H.exports=v},1405:(H,_,y)=>{var M=typeof Symbol<"u"&&Symbol,v=y(5419);H.exports=function(){return typeof M=="function"&&typeof Symbol=="function"&&typeof M("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&v()}},5419:H=>{H.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var _={},y=Symbol("test"),M=Object(y);if(typeof y=="string"||Object.prototype.toString.call(y)!=="[object Symbol]"||Object.prototype.toString.call(M)!=="[object Symbol]")return!1;for(y in _[y]=42,_)return!1;if(typeof Object.keys=="function"&&Object.keys(_).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(_).length!==0)return!1;var v=Object.getOwnPropertySymbols(_);if(v.length!==1||v[0]!==y||!Object.prototype.propertyIsEnumerable.call(_,y))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var m=Object.getOwnPropertyDescriptor(_,y);if(m.value!==42||m.enumerable!==!0)return!1}return!0}},6410:(H,_,y)=>{var M=y(5419);H.exports=function(){return M()&&!!Symbol.toStringTag}},7642:(H,_,y)=>{var M=y(8612);H.exports=M.call(Function.call,Object.prototype.hasOwnProperty)},3349:(H,_,y)=>{var M=y(9509).Buffer,v=y(8473).Transform;function m(E){v.call(this),this._block=M.allocUnsafe(E),this._blockSize=E,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}y(5717)(m,v),m.prototype._transform=function(E,s,p){var c=null;try{this.update(E,s)}catch(l){c=l}p(c)},m.prototype._flush=function(E){var s=null;try{this.push(this.digest())}catch(p){s=p}E(s)},m.prototype.update=function(E,s){if(function(h,u){if(!M.isBuffer(h)&&typeof h!="string")throw new TypeError("Data must be a string or a buffer")}(E),this._finalized)throw new Error("Digest already called");M.isBuffer(E)||(E=M.from(E,s));for(var p=this._block,c=0;this._blockOffset+E.length-c>=this._blockSize;){for(var l=this._blockOffset;l<this._blockSize;)p[l++]=E[c++];this._update(),this._blockOffset=0}for(;c<E.length;)p[this._blockOffset++]=E[c++];for(var f=0,g=8*E.length;g>0;++f)this._length[f]+=g,(g=this._length[f]/4294967296|0)>0&&(this._length[f]-=4294967296*g);return this},m.prototype._update=function(){throw new Error("_update is not implemented")},m.prototype.digest=function(E){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var s=this._digest();E!==void 0&&(s=s.toString(E)),this._block.fill(0),this._blockOffset=0;for(var p=0;p<4;++p)this._length[p]=0;return s},m.prototype._digest=function(){throw new Error("_digest is not implemented")},H.exports=m},3715:(H,_,y)=>{var M=_;M.utils=y(6436),M.common=y(5772),M.sha=y(9041),M.ripemd=y(2949),M.hmac=y(2344),M.sha1=M.sha.sha1,M.sha256=M.sha.sha256,M.sha224=M.sha.sha224,M.sha384=M.sha.sha384,M.sha512=M.sha.sha512,M.ripemd160=M.ripemd.ripemd160},5772:(H,_,y)=>{var M=y(6436),v=y(9746);function m(){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}_.BlockHash=m,m.prototype.update=function(E,s){if(E=M.toArray(E,s),this.pending?this.pending=this.pending.concat(E):this.pending=E,this.pendingTotal+=E.length,this.pending.length>=this._delta8){var p=(E=this.pending).length%this._delta8;this.pending=E.slice(E.length-p,E.length),this.pending.length===0&&(this.pending=null),E=M.join32(E,0,E.length-p,this.endian);for(var c=0;c<E.length;c+=this._delta32)this._update(E,c,c+this._delta32)}return this},m.prototype.digest=function(E){return this.update(this._pad()),v(this.pending===null),this._digest(E)},m.prototype._pad=function(){var E=this.pendingTotal,s=this._delta8,p=s-(E+this.padLength)%s,c=new Array(p+this.padLength);c[0]=128;for(var l=1;l<p;l++)c[l]=0;if(E<<=3,this.endian==="big"){for(var f=8;f<this.padLength;f++)c[l++]=0;c[l++]=0,c[l++]=0,c[l++]=0,c[l++]=0,c[l++]=E>>>24&255,c[l++]=E>>>16&255,c[l++]=E>>>8&255,c[l++]=255&E}else for(c[l++]=255&E,c[l++]=E>>>8&255,c[l++]=E>>>16&255,c[l++]=E>>>24&255,c[l++]=0,c[l++]=0,c[l++]=0,c[l++]=0,f=8;f<this.padLength;f++)c[l++]=0;return c}},2344:(H,_,y)=>{var M=y(6436),v=y(9746);function m(E,s,p){if(!(this instanceof m))return new m(E,s,p);this.Hash=E,this.blockSize=E.blockSize/8,this.outSize=E.outSize/8,this.inner=null,this.outer=null,this._init(M.toArray(s,p))}H.exports=m,m.prototype._init=function(E){E.length>this.blockSize&&(E=new this.Hash().update(E).digest()),v(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)},m.prototype.update=function(E,s){return this.inner.update(E,s),this},m.prototype.digest=function(E){return this.outer.update(this.inner.digest()),this.outer.digest(E)}},2949:(H,_,y)=>{var M=y(6436),v=y(5772),m=M.rotl32,E=M.sum32,s=M.sum32_3,p=M.sum32_4,c=v.BlockHash;function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(A,x,j,P){return A<=15?x^j^P:A<=31?x&j|~x&P:A<=47?(x|~j)^P:A<=63?x&P|j&~P:x^(j|~P)}function g(A){return A<=15?0:A<=31?1518500249:A<=47?1859775393:A<=63?2400959708:2840853838}function h(A){return A<=15?1352829926:A<=31?1548603684:A<=47?1836072691:A<=63?2053994217:0}M.inherits(l,c),_.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(A,x){for(var j=this.h[0],P=this.h[1],B=this.h[2],$=this.h[3],te=this.h[4],J=j,oe=P,e=B,r=$,i=te,n=0;n<80;n++){var t=E(m(p(j,f(n,P,B,$),A[u[n]+x],g(n)),b[n]),te);j=te,te=$,$=m(B,10),B=P,P=t,t=E(m(p(J,f(79-n,oe,e,r),A[w[n]+x],h(n)),k[n]),i),J=i,i=r,r=m(e,10),e=oe,oe=t}t=s(this.h[1],B,r),this.h[1]=s(this.h[2],$,i),this.h[2]=s(this.h[3],te,J),this.h[3]=s(this.h[4],j,oe),this.h[4]=s(this.h[0],P,e),this.h[0]=t},l.prototype._digest=function(A){return A==="hex"?M.toHex32(this.h,"little"):M.split32(this.h,"little")};var u=[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],w=[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],b=[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],k=[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]},9041:(H,_,y)=>{_.sha1=y(4761),_.sha224=y(799),_.sha256=y(9344),_.sha384=y(772),_.sha512=y(5900)},4761:(H,_,y)=>{var M=y(6436),v=y(5772),m=y(7038),E=M.rotl32,s=M.sum32,p=M.sum32_5,c=m.ft_1,l=v.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function g(){if(!(this instanceof g))return new g;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}M.inherits(g,l),H.exports=g,g.blockSize=512,g.outSize=160,g.hmacStrength=80,g.padLength=64,g.prototype._update=function(h,u){for(var w=this.W,b=0;b<16;b++)w[b]=h[u+b];for(;b<w.length;b++)w[b]=E(w[b-3]^w[b-8]^w[b-14]^w[b-16],1);var k=this.h[0],A=this.h[1],x=this.h[2],j=this.h[3],P=this.h[4];for(b=0;b<w.length;b++){var B=~~(b/20),$=p(E(k,5),c(B,A,x,j),P,w[b],f[B]);P=j,j=x,x=E(A,30),A=k,k=$}this.h[0]=s(this.h[0],k),this.h[1]=s(this.h[1],A),this.h[2]=s(this.h[2],x),this.h[3]=s(this.h[3],j),this.h[4]=s(this.h[4],P)},g.prototype._digest=function(h){return h==="hex"?M.toHex32(this.h,"big"):M.split32(this.h,"big")}},799:(H,_,y)=>{var M=y(6436),v=y(9344);function m(){if(!(this instanceof m))return new m;v.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}M.inherits(m,v),H.exports=m,m.blockSize=512,m.outSize=224,m.hmacStrength=192,m.padLength=64,m.prototype._digest=function(E){return E==="hex"?M.toHex32(this.h.slice(0,7),"big"):M.split32(this.h.slice(0,7),"big")}},9344:(H,_,y)=>{var M=y(6436),v=y(5772),m=y(7038),E=y(9746),s=M.sum32,p=M.sum32_4,c=M.sum32_5,l=m.ch32,f=m.maj32,g=m.s0_256,h=m.s1_256,u=m.g0_256,w=m.g1_256,b=v.BlockHash,k=[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 A(){if(!(this instanceof A))return new A;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=k,this.W=new Array(64)}M.inherits(A,b),H.exports=A,A.blockSize=512,A.outSize=256,A.hmacStrength=192,A.padLength=64,A.prototype._update=function(x,j){for(var P=this.W,B=0;B<16;B++)P[B]=x[j+B];for(;B<P.length;B++)P[B]=p(w(P[B-2]),P[B-7],u(P[B-15]),P[B-16]);var $=this.h[0],te=this.h[1],J=this.h[2],oe=this.h[3],e=this.h[4],r=this.h[5],i=this.h[6],n=this.h[7];for(E(this.k.length===P.length),B=0;B<P.length;B++){var t=c(n,h(e),l(e,r,i),this.k[B],P[B]),o=s(g($),f($,te,J));n=i,i=r,r=e,e=s(oe,t),oe=J,J=te,te=$,$=s(t,o)}this.h[0]=s(this.h[0],$),this.h[1]=s(this.h[1],te),this.h[2]=s(this.h[2],J),this.h[3]=s(this.h[3],oe),this.h[4]=s(this.h[4],e),this.h[5]=s(this.h[5],r),this.h[6]=s(this.h[6],i),this.h[7]=s(this.h[7],n)},A.prototype._digest=function(x){return x==="hex"?M.toHex32(this.h,"big"):M.split32(this.h,"big")}},772:(H,_,y)=>{var M=y(6436),v=y(5900);function m(){if(!(this instanceof m))return new m;v.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}M.inherits(m,v),H.exports=m,m.blockSize=1024,m.outSize=384,m.hmacStrength=192,m.padLength=128,m.prototype._digest=function(E){return E==="hex"?M.toHex32(this.h.slice(0,12),"big"):M.split32(this.h.slice(0,12),"big")}},5900:(H,_,y)=>{var M=y(6436),v=y(5772),m=y(9746),E=M.rotr64_hi,s=M.rotr64_lo,p=M.shr64_hi,c=M.shr64_lo,l=M.sum64,f=M.sum64_hi,g=M.sum64_lo,h=M.sum64_4_hi,u=M.sum64_4_lo,w=M.sum64_5_hi,b=M.sum64_5_lo,k=v.BlockHash,A=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function x(){if(!(this instanceof x))return new x;k.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=A,this.W=new Array(160)}function j(n,t,o,a,T){var C=n&o^~n&T;return C<0&&(C+=4294967296),C}function P(n,t,o,a,T,C){var N=t&a^~t&C;return N<0&&(N+=4294967296),N}function B(n,t,o,a,T){var C=n&o^n&T^o&T;return C<0&&(C+=4294967296),C}function $(n,t,o,a,T,C){var N=t&a^t&C^a&C;return N<0&&(N+=4294967296),N}function te(n,t){var o=E(n,t,28)^E(t,n,2)^E(t,n,7);return o<0&&(o+=4294967296),o}function J(n,t){var o=s(n,t,28)^s(t,n,2)^s(t,n,7);return o<0&&(o+=4294967296),o}function oe(n,t){var o=s(n,t,14)^s(n,t,18)^s(t,n,9);return o<0&&(o+=4294967296),o}function e(n,t){var o=E(n,t,1)^E(n,t,8)^p(n,t,7);return o<0&&(o+=4294967296),o}function r(n,t){var o=s(n,t,1)^s(n,t,8)^c(n,t,7);return o<0&&(o+=4294967296),o}function i(n,t){var o=s(n,t,19)^s(t,n,29)^c(n,t,6);return o<0&&(o+=4294967296),o}M.inherits(x,k),H.exports=x,x.blockSize=1024,x.outSize=512,x.hmacStrength=192,x.padLength=128,x.prototype._prepareBlock=function(n,t){for(var o=this.W,a=0;a<32;a++)o[a]=n[t+a];for(;a<o.length;a+=2){var T=(D=o[a-4],Y=o[a-3],z=void 0,(z=E(D,Y,19)^E(Y,D,29)^p(D,Y,6))<0&&(z+=4294967296),z),C=i(o[a-4],o[a-3]),N=o[a-14],O=o[a-13],R=e(o[a-30],o[a-29]),F=r(o[a-30],o[a-29]),Z=o[a-32],ie=o[a-31];o[a]=h(T,C,N,O,R,F,Z,ie),o[a+1]=u(T,C,N,O,R,F,Z,ie)}var D,Y,z},x.prototype._update=function(n,t){this._prepareBlock(n,t);var o,a,T,C=this.W,N=this.h[0],O=this.h[1],R=this.h[2],F=this.h[3],Z=this.h[4],ie=this.h[5],D=this.h[6],Y=this.h[7],z=this.h[8],W=this.h[9],ae=this.h[10],re=this.h[11],le=this.h[12],ke=this.h[13],ge=this.h[14],be=this.h[15];m(this.k.length===C.length);for(var je=0;je<C.length;je+=2){var xe=ge,Ae=be,X=(T=void 0,(T=E(o=z,a=W,14)^E(o,a,18)^E(a,o,9))<0&&(T+=4294967296),T),ee=oe(z,W),U=j(z,0,ae,0,le),V=P(0,W,0,re,0,ke),q=this.k[je],ne=this.k[je+1],fe=C[je],he=C[je+1],me=w(xe,Ae,X,ee,U,V,q,ne,fe,he),it=b(xe,Ae,X,ee,U,V,q,ne,fe,he);xe=te(N,O),Ae=J(N,O),X=B(N,0,R,0,Z),ee=$(0,O,0,F,0,ie);var _e=f(xe,Ae,X,ee),Te=g(xe,Ae,X,ee);ge=le,be=ke,le=ae,ke=re,ae=z,re=W,z=f(D,Y,me,it),W=g(Y,Y,me,it),D=Z,Y=ie,Z=R,ie=F,R=N,F=O,N=f(me,it,_e,Te),O=g(me,it,_e,Te)}l(this.h,0,N,O),l(this.h,2,R,F),l(this.h,4,Z,ie),l(this.h,6,D,Y),l(this.h,8,z,W),l(this.h,10,ae,re),l(this.h,12,le,ke),l(this.h,14,ge,be)},x.prototype._digest=function(n){return n==="hex"?M.toHex32(this.h,"big"):M.split32(this.h,"big")}},7038:(H,_,y)=>{var M=y(6436).rotr32;function v(s,p,c){return s&p^~s&c}function m(s,p,c){return s&p^s&c^p&c}function E(s,p,c){return s^p^c}_.ft_1=function(s,p,c,l){return s===0?v(p,c,l):s===1||s===3?E(p,c,l):s===2?m(p,c,l):void 0},_.ch32=v,_.maj32=m,_.p32=E,_.s0_256=function(s){return M(s,2)^M(s,13)^M(s,22)},_.s1_256=function(s){return M(s,6)^M(s,11)^M(s,25)},_.g0_256=function(s){return M(s,7)^M(s,18)^s>>>3},_.g1_256=function(s){return M(s,17)^M(s,19)^s>>>10}},6436:(H,_,y)=>{var M=y(9746),v=y(5717);function m(c,l){return(64512&c.charCodeAt(l))==55296&&!(l<0||l+1>=c.length)&&(64512&c.charCodeAt(l+1))==56320}function E(c){return(c>>>24|c>>>8&65280|c<<8&16711680|(255&c)<<24)>>>0}function s(c){return c.length===1?"0"+c:c}function p(c){return c.length===7?"0"+c:c.length===6?"00"+c:c.length===5?"000"+c:c.length===4?"0000"+c:c.length===3?"00000"+c:c.length===2?"000000"+c:c.length===1?"0000000"+c:c}_.inherits=v,_.toArray=function(c,l){if(Array.isArray(c))return c.slice();if(!c)return[];var f=[];if(typeof c=="string")if(l){if(l==="hex")for((c=c.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(c="0"+c),h=0;h<c.length;h+=2)f.push(parseInt(c[h]+c[h+1],16))}else for(var g=0,h=0;h<c.length;h++){var u=c.charCodeAt(h);u<128?f[g++]=u:u<2048?(f[g++]=u>>6|192,f[g++]=63&u|128):m(c,h)?(u=65536+((1023&u)<<10)+(1023&c.charCodeAt(++h)),f[g++]=u>>18|240,f[g++]=u>>12&63|128,f[g++]=u>>6&63|128,f[g++]=63&u|128):(f[g++]=u>>12|224,f[g++]=u>>6&63|128,f[g++]=63&u|128)}else for(h=0;h<c.length;h++)f[h]=0|c[h];return f},_.toHex=function(c){for(var l="",f=0;f<c.length;f++)l+=s(c[f].toString(16));return l},_.htonl=E,_.toHex32=function(c,l){for(var f="",g=0;g<c.length;g++){var h=c[g];l==="little"&&(h=E(h)),f+=p(h.toString(16))}return f},_.zero2=s,_.zero8=p,_.join32=function(c,l,f,g){var h=f-l;M(h%4==0);for(var u=new Array(h/4),w=0,b=l;w<u.length;w++,b+=4){var k;k=g==="big"?c[b]<<24|c[b+1]<<16|c[b+2]<<8|c[b+3]:c[b+3]<<24|c[b+2]<<16|c[b+1]<<8|c[b],u[w]=k>>>0}return u},_.split32=function(c,l){for(var f=new Array(4*c.length),g=0,h=0;g<c.length;g++,h+=4){var u=c[g];l==="big"?(f[h]=u>>>24,f[h+1]=u>>>16&255,f[h+2]=u>>>8&255,f[h+3]=255&u):(f[h+3]=u>>>24,f[h+2]=u>>>16&255,f[h+1]=u>>>8&255,f[h]=255&u)}return f},_.rotr32=function(c,l){return c>>>l|c<<32-l},_.rotl32=function(c,l){return c<<l|c>>>32-l},_.sum32=function(c,l){return c+l>>>0},_.sum32_3=function(c,l,f){return c+l+f>>>0},_.sum32_4=function(c,l,f,g){return c+l+f+g>>>0},_.sum32_5=function(c,l,f,g,h){return c+l+f+g+h>>>0},_.sum64=function(c,l,f,g){var h=c[l],u=g+c[l+1]>>>0,w=(u<g?1:0)+f+h;c[l]=w>>>0,c[l+1]=u},_.sum64_hi=function(c,l,f,g){return(l+g>>>0<l?1:0)+c+f>>>0},_.sum64_lo=function(c,l,f,g){return l+g>>>0},_.sum64_4_hi=function(c,l,f,g,h,u,w,b){var k=0,A=l;return k+=(A=A+g>>>0)<l?1:0,k+=(A=A+u>>>0)<u?1:0,c+f+h+w+(k+=(A=A+b>>>0)<b?1:0)>>>0},_.sum64_4_lo=function(c,l,f,g,h,u,w,b){return l+g+u+b>>>0},_.sum64_5_hi=function(c,l,f,g,h,u,w,b,k,A){var x=0,j=l;return x+=(j=j+g>>>0)<l?1:0,x+=(j=j+u>>>0)<u?1:0,x+=(j=j+b>>>0)<b?1:0,c+f+h+w+k+(x+=(j=j+A>>>0)<A?1:0)>>>0},_.sum64_5_lo=function(c,l,f,g,h,u,w,b,k,A){return l+g+u+b+A>>>0},_.rotr64_hi=function(c,l,f){return(l<<32-f|c>>>f)>>>0},_.rotr64_lo=function(c,l,f){return(c<<32-f|l>>>f)>>>0},_.shr64_hi=function(c,l,f){return c>>>f},_.shr64_lo=function(c,l,f){return(c<<32-f|l>>>f)>>>0}},2156:(H,_,y)=>{var M=y(3715),v=y(4504),m=y(9746);function E(s){if(!(this instanceof E))return new E(s);this.hash=s.hash,this.predResist=!!s.predResist,this.outLen=this.hash.outSize,this.minEntropy=s.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var p=v.toArray(s.entropy,s.entropyEnc||"hex"),c=v.toArray(s.nonce,s.nonceEnc||"hex"),l=v.toArray(s.pers,s.persEnc||"hex");m(p.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(p,c,l)}H.exports=E,E.prototype._init=function(s,p,c){var l=s.concat(p).concat(c);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var f=0;f<this.V.length;f++)this.K[f]=0,this.V[f]=1;this._update(l),this._reseed=1,this.reseedInterval=281474976710656},E.prototype._hmac=function(){return new M.hmac(this.hash,this.K)},E.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())},E.prototype.reseed=function(s,p,c,l){typeof p!="string"&&(l=c,c=p,p=null),s=v.toArray(s,p),c=v.toArray(c,l),m(s.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(s.concat(c||[])),this._reseed=1},E.prototype.generate=function(s,p,c,l){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof p!="string"&&(l=c,c=p,p=null),c&&(c=v.toArray(c,l||"hex"),this._update(c));for(var f=[];f.length<s;)this.V=this._hmac().update(this.V).digest(),f=f.concat(this.V);var g=f.slice(0,s);return this._update(c),this._reseed++,v.encode(g,p)}},9267:(H,_,y)=>{var M=y(8501),v=y(8575),m=H.exports;for(var E in M)M.hasOwnProperty(E)&&(m[E]=M[E]);function s(p){if(typeof p=="string"&&(p=v.parse(p)),p.protocol||(p.protocol="https:"),p.protocol!=="https:")throw new Error('Protocol "'+p.protocol+'" not supported. Expected "https:"');return p}m.request=function(p,c){return p=s(p),M.request.call(this,p,c)},m.get=function(p,c){return p=s(p),M.get.call(this,p,c)}},645:(H,_)=>{_.read=function(y,M,v,m,E){var s,p,c=8*E-m-1,l=(1<<c)-1,f=l>>1,g=-7,h=v?E-1:0,u=v?-1:1,w=y[M+h];for(h+=u,s=w&(1<<-g)-1,w>>=-g,g+=c;g>0;s=256*s+y[M+h],h+=u,g-=8);for(p=s&(1<<-g)-1,s>>=-g,g+=m;g>0;p=256*p+y[M+h],h+=u,g-=8);if(s===0)s=1-f;else{if(s===l)return p?NaN:1/0*(w?-1:1);p+=Math.pow(2,m),s-=f}return(w?-1:1)*p*Math.pow(2,s-m)},_.write=function(y,M,v,m,E,s){var p,c,l,f=8*s-E-1,g=(1<<f)-1,h=g>>1,u=E===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=m?0:s-1,b=m?1:-1,k=M<0||M===0&&1/M<0?1:0;for(M=Math.abs(M),isNaN(M)||M===1/0?(c=isNaN(M)?1:0,p=g):(p=Math.floor(Math.log(M)/Math.LN2),M*(l=Math.pow(2,-p))<1&&(p--,l*=2),(M+=p+h>=1?u/l:u*Math.pow(2,1-h))*l>=2&&(p++,l/=2),p+h>=g?(c=0,p=g):p+h>=1?(c=(M*l-1)*Math.pow(2,E),p+=h):(c=M*Math.pow(2,h-1)*Math.pow(2,E),p=0));E>=8;y[v+w]=255&c,w+=b,c/=256,E-=8);for(p=p<<E|c,f+=E;f>0;y[v+w]=255&p,w+=b,p/=256,f-=8);y[v+w-b]|=128*k}},5717:H=>{typeof Object.create=="function"?H.exports=function(_,y){y&&(_.super_=y,_.prototype=Object.create(y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}))}:H.exports=function(_,y){if(y){_.super_=y;var M=function(){};M.prototype=y.prototype,_.prototype=new M,_.prototype.constructor=_}}},6512:function(H){(function(_){const y="(0?\\d+|0x[a-f0-9]+)",M={fourOctet:new RegExp(`^${y}\\.${y}\\.${y}\\.${y}$`,"i"),threeOctet:new RegExp(`^${y}\\.${y}\\.${y}$`,"i"),twoOctet:new RegExp(`^${y}\\.${y}$`,"i"),longValue:new RegExp(`^${y}$`,"i")},v=new RegExp("^0[0-7]+$","i"),m=new RegExp("^0x[a-f0-9]+$","i"),E="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",p={zoneIndex:new RegExp(E,"i"),native:new RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${E})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${y}\\.${y}\\.${y}\\.${y}(${E})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${y}\\.${y}\\.${y}\\.${y}(${E})?$`,"i")};function c(u,w){if(u.indexOf("::")!==u.lastIndexOf("::"))return null;let b,k,A=0,x=-1,j=(u.match(p.zoneIndex)||[])[0];for(j&&(j=j.substring(1),u=u.replace(/%.+$/,""));(x=u.indexOf(":",x+1))>=0;)A++;if(u.substr(0,2)==="::"&&A--,u.substr(-2,2)==="::"&&A--,A>w)return null;for(k=w-A,b=":";k--;)b+="0:";return(u=u.replace("::",b))[0]===":"&&(u=u.slice(1)),u[u.length-1]===":"&&(u=u.slice(0,-1)),{parts:w=function(){const P=u.split(":"),B=[];for(let $=0;$<P.length;$++)B.push(parseInt(P[$],16));return B}(),zoneId:j}}function l(u,w,b,k){if(u.length!==w.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let A,x=0;for(;k>0;){if(A=b-k,A<0&&(A=0),u[x]>>A!=w[x]>>A)return!1;k-=b,x+=1}return!0}function f(u){if(m.test(u))return parseInt(u,16);if(u[0]==="0"&&!isNaN(parseInt(u[1],10))){if(v.test(u))return parseInt(u,8);throw new Error(`ipaddr: cannot parse ${u} as octal`)}return parseInt(u,10)}function g(u,w){for(;u.length<w;)u=`0${u}`;return u}const h={};h.IPv4=function(){function u(w){if(w.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let b,k;for(b=0;b<w.length;b++)if(k=w[b],!(0<=k&&k<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=w}return u.prototype.SpecialRanges={unspecified:[[new u([0,0,0,0]),8]],broadcast:[[new u([255,255,255,255]),32]],multicast:[[new u([224,0,0,0]),4]],linkLocal:[[new u([169,254,0,0]),16]],loopback:[[new u([127,0,0,0]),8]],carrierGradeNat:[[new u([100,64,0,0]),10]],private:[[new u([10,0,0,0]),8],[new u([172,16,0,0]),12],[new u([192,168,0,0]),16]],reserved:[[new u([192,0,0,0]),24],[new u([192,0,2,0]),24],[new u([192,88,99,0]),24],[new u([198,51,100,0]),24],[new u([203,0,113,0]),24],[new u([240,0,0,0]),4]]},u.prototype.kind=function(){return"ipv4"},u.prototype.match=function(w,b){let k;if(b===void 0&&(k=w,w=k[0],b=k[1]),w.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,w.octets,8,b)},u.prototype.prefixLengthFromSubnetMask=function(){let w=0,b=!1;const k={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};let A,x,j;for(A=3;A>=0;A-=1){if(x=this.octets[A],!(x in k)||(j=k[x],b&&j!==0))return null;j!==8&&(b=!0),w+=j}return 32-w},u.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},u.prototype.toByteArray=function(){return this.octets.slice(0)},u.prototype.toIPv4MappedAddress=function(){return h.IPv6.parse(`::ffff:${this.toString()}`)},u.prototype.toNormalizedString=function(){return this.toString()},u.prototype.toString=function(){return this.octets.join(".")},u}(),h.IPv4.broadcastAddressFromCIDR=function(u){try{const w=this.parseCIDR(u),b=w[0].toByteArray(),k=this.subnetMaskFromPrefixLength(w[1]).toByteArray(),A=[];let x=0;for(;x<4;)A.push(parseInt(b[x],10)|255^parseInt(k[x],10)),x++;return new this(A)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.isIPv4=function(u){return this.parser(u)!==null},h.IPv4.isValid=function(u){try{return new this(this.parser(u)),!0}catch{return!1}},h.IPv4.isValidFourPartDecimal=function(u){return!(!h.IPv4.isValid(u)||!u.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},h.IPv4.networkAddressFromCIDR=function(u){let w,b,k,A,x;try{for(w=this.parseCIDR(u),k=w[0].toByteArray(),x=this.subnetMaskFromPrefixLength(w[1]).toByteArray(),A=[],b=0;b<4;)A.push(parseInt(k[b],10)&parseInt(x[b],10)),b++;return new this(A)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.parse=function(u){const w=this.parser(u);if(w===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(w)},h.IPv4.parseCIDR=function(u){let w;if(w=u.match(/^(.+)\/(\d+)$/)){const b=parseInt(w[2]);if(b>=0&&b<=32){const k=[this.parse(w[1]),b];return Object.defineProperty(k,"toString",{value:function(){return this.join("/")}}),k}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(u){let w,b,k;if(w=u.match(M.fourOctet))return function(){const A=w.slice(1,6),x=[];for(let j=0;j<A.length;j++)b=A[j],x.push(f(b));return x}();if(w=u.match(M.longValue)){if(k=f(w[1]),k>4294967295||k<0)throw new Error("ipaddr: address outside defined range");return function(){const A=[];let x;for(x=0;x<=24;x+=8)A.push(k>>x&255);return A}().reverse()}return(w=u.match(M.twoOctet))?function(){const A=w.slice(1,4),x=[];if(k=f(A[1]),k>16777215||k<0)throw new Error("ipaddr: address outside defined range");return x.push(f(A[0])),x.push(k>>16&255),x.push(k>>8&255),x.push(255&k),x}():(w=u.match(M.threeOctet))?function(){const A=w.slice(1,5),x=[];if(k=f(A[2]),k>65535||k<0)throw new Error("ipaddr: address outside defined range");return x.push(f(A[0])),x.push(f(A[1])),x.push(k>>8&255),x.push(255&k),x}():null},h.IPv4.subnetMaskFromPrefixLength=function(u){if((u=parseInt(u))<0||u>32)throw new Error("ipaddr: invalid IPv4 prefix length");const w=[0,0,0,0];let b=0;const k=Math.floor(u/8);for(;b<k;)w[b]=255,b++;return k<4&&(w[k]=Math.pow(2,u%8)-1<<8-u%8),new this(w)},h.IPv6=function(){function u(w,b){let k,A;if(w.length===16)for(this.parts=[],k=0;k<=14;k+=2)this.parts.push(w[k]<<8|w[k+1]);else{if(w.length!==8)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=w}for(k=0;k<this.parts.length;k++)if(A=this.parts[k],!(0<=A&&A<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");b&&(this.zoneId=b)}return u.prototype.SpecialRanges={unspecified:[new u([0,0,0,0,0,0,0,0]),128],linkLocal:[new u([65152,0,0,0,0,0,0,0]),10],multicast:[new u([65280,0,0,0,0,0,0,0]),8],loopback:[new u([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new u([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new u([0,0,0,0,0,65535,0,0]),96],rfc6145:[new u([0,0,0,0,65535,0,0,0]),96],rfc6052:[new u([100,65435,0,0,0,0,0,0]),96],"6to4":[new u([8194,0,0,0,0,0,0,0]),16],teredo:[new u([8193,0,0,0,0,0,0,0]),32],reserved:[[new u([8193,3512,0,0,0,0,0,0]),32]]},u.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},u.prototype.kind=function(){return"ipv6"},u.prototype.match=function(w,b){let k;if(b===void 0&&(k=w,w=k[0],b=k[1]),w.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,w.parts,16,b)},u.prototype.prefixLengthFromSubnetMask=function(){let w=0,b=!1;const k={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0};let A,x;for(let j=7;j>=0;j-=1){if(A=this.parts[j],!(A in k)||(x=k[A],b&&x!==0))return null;x!==16&&(b=!0),w+=x}return 128-w},u.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},u.prototype.toByteArray=function(){let w;const b=[],k=this.parts;for(let A=0;A<k.length;A++)w=k[A],b.push(w>>8),b.push(255&w);return b},u.prototype.toFixedLengthString=function(){const w=(function(){const k=[];for(let A=0;A<this.parts.length;A++)k.push(g(this.parts[A].toString(16),4));return k}).call(this).join(":");let b="";return this.zoneId&&(b=`%${this.zoneId}`),w+b},u.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");const w=this.parts.slice(-2),b=w[0],k=w[1];return new h.IPv4([b>>8,255&b,k>>8,255&k])},u.prototype.toNormalizedString=function(){const w=(function(){const k=[];for(let A=0;A<this.parts.length;A++)k.push(this.parts[A].toString(16));return k}).call(this).join(":");let b="";return this.zoneId&&(b=`%${this.zoneId}`),w+b},u.prototype.toRFC5952String=function(){const w=/((^|:)(0(:|$)){2,})/g,b=this.toNormalizedString();let k,A=0,x=-1;for(;k=w.exec(b);)k[0].length>x&&(A=k.index,x=k[0].length);return x<0?b:`${b.substring(0,A)}::${b.substring(A+x)}`},u.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},u}(),h.IPv6.broadcastAddressFromCIDR=function(u){try{const w=this.parseCIDR(u),b=w[0].toByteArray(),k=this.subnetMaskFromPrefixLength(w[1]).toByteArray(),A=[];let x=0;for(;x<16;)A.push(parseInt(b[x],10)|255^parseInt(k[x],10)),x++;return new this(A)}catch(w){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${w})`)}},h.IPv6.isIPv6=function(u){return this.parser(u)!==null},h.IPv6.isValid=function(u){if(typeof u=="string"&&u.indexOf(":")===-1)return!1;try{const w=this.parser(u);return new this(w.parts,w.zoneId),!0}catch{return!1}},h.IPv6.networkAddressFromCIDR=function(u){let w,b,k,A,x;try{for(w=this.parseCIDR(u),k=w[0].toByteArray(),x=this.subnetMaskFromPrefixLength(w[1]).toByteArray(),A=[],b=0;b<16;)A.push(parseInt(k[b],10)&parseInt(x[b],10)),b++;return new this(A)}catch(j){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${j})`)}},h.IPv6.parse=function(u){const w=this.parser(u);if(w.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(w.parts,w.zoneId)},h.IPv6.parseCIDR=function(u){let w,b,k;if((b=u.match(/^(.+)\/(\d+)$/))&&(w=parseInt(b[2]),w>=0&&w<=128))return k=[this.parse(b[1]),w],Object.defineProperty(k,"toString",{value:function(){return this.join("/")}}),k;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(u){let w,b,k,A,x,j;if(k=u.match(p.deprecatedTransitional))return this.parser(`::ffff:${k[1]}`);if(p.native.test(u))return c(u,8);if((k=u.match(p.transitional))&&(j=k[6]||"",w=c(k[1].slice(0,-1)+j,6),w.parts)){for(x=[parseInt(k[2]),parseInt(k[3]),parseInt(k[4]),parseInt(k[5])],b=0;b<x.length;b++)if(A=x[b],!(0<=A&&A<=255))return null;return w.parts.push(x[0]<<8|x[1]),w.parts.push(x[2]<<8|x[3]),{parts:w.parts,zoneId:w.zoneId}}return null},h.IPv6.subnetMaskFromPrefixLength=function(u){if((u=parseInt(u))<0||u>128)throw new Error("ipaddr: invalid IPv6 prefix length");const w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let b=0;const k=Math.floor(u/8);for(;b<k;)w[b]=255,b++;return k<16&&(w[k]=Math.pow(2,u%8)-1<<8-u%8),new this(w)},h.fromByteArray=function(u){const w=u.length;if(w===4)return new h.IPv4(u);if(w===16)return new h.IPv6(u);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},h.isValid=function(u){return h.IPv6.isValid(u)||h.IPv4.isValid(u)},h.parse=function(u){if(h.IPv6.isValid(u))return h.IPv6.parse(u);if(h.IPv4.isValid(u))return h.IPv4.parse(u);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},h.parseCIDR=function(u){try{return h.IPv6.parseCIDR(u)}catch{try{return h.IPv4.parseCIDR(u)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},h.process=function(u){const w=this.parse(u);return w.kind()==="ipv6"&&w.isIPv4MappedAddress()?w.toIPv4Address():w},h.subnetMatch=function(u,w,b){let k,A,x,j;for(A in b==null&&(b="unicast"),w)if(Object.prototype.hasOwnProperty.call(w,A)){for(x=w[A],!x[0]||x[0]instanceof Array||(x=[x]),k=0;k<x.length;k++)if(j=x[k],u.kind()===j[0].kind()&&u.match.apply(u,j))return A}return b},H.exports?H.exports=h:_.ipaddr=h})(this)},2584:(H,_,y)=>{var M=y(6410)(),v=y(1924)("Object.prototype.toString"),m=function(p){return!(M&&p&&typeof p=="object"&&Symbol.toStringTag in p)&&v(p)==="[object Arguments]"},E=function(p){return!!m(p)||p!==null&&typeof p=="object"&&typeof p.length=="number"&&p.length>=0&&v(p)!=="[object Array]"&&v(p.callee)==="[object Function]"},s=function(){return m(arguments)}();m.isLegacyArguments=E,H.exports=s?m:E},5320:H=>{var _,y,M=Function.prototype.toString,v=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof v=="function"&&typeof Object.defineProperty=="function")try{_=Object.defineProperty({},"length",{get:function(){throw y}}),y={},v(function(){throw 42},null,_)}catch(h){h!==y&&(v=null)}else v=null;var m=/^\s*class\b/,E=function(h){try{var u=M.call(h);return m.test(u)}catch{return!1}},s=function(h){try{return!E(h)&&(M.call(h),!0)}catch{return!1}},p=Object.prototype.toString,c=typeof Symbol=="function"&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if(typeof document=="object"){var g=document.all;p.call(g)===p.call(document.all)&&(f=function(h){if((l||!h)&&(h===void 0||typeof h=="object"))try{var u=p.call(h);return(u==="[object HTMLAllCollection]"||u==="[object HTML document.all class]"||u==="[object HTMLCollection]"||u==="[object Object]")&&h("")==null}catch{}return!1})}H.exports=v?function(h){if(f(h))return!0;if(!h||typeof h!="function"&&typeof h!="object")return!1;try{v(h,null,_)}catch(u){if(u!==y)return!1}return!E(h)&&s(h)}:function(h){if(f(h))return!0;if(!h||typeof h!="function"&&typeof h!="object")return!1;if(c)return s(h);if(E(h))return!1;var u=p.call(h);return!(u!=="[object Function]"&&u!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(u))&&s(h)}},8662:(H,_,y)=>{var M,v=Object.prototype.toString,m=Function.prototype.toString,E=/^\s*(?:function)?\*/,s=y(6410)(),p=Object.getPrototypeOf;H.exports=function(c){if(typeof c!="function")return!1;if(E.test(m.call(c)))return!0;if(!s)return v.call(c)==="[object GeneratorFunction]";if(!p)return!1;if(M===void 0){var l=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch{}}();M=!!l&&p(l)}return p(c)===M}},8611:H=>{H.exports=function(_){return _!=_}},360:(H,_,y)=>{var M=y(5559),v=y(4289),m=y(8611),E=y(9415),s=y(3194),p=M(E(),Number);v(p,{getPolyfill:E,implementation:m,shim:s}),H.exports=p},9415:(H,_,y)=>{var M=y(8611);H.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:M}},3194:(H,_,y)=>{var M=y(4289),v=y(9415);H.exports=function(){var m=v();return M(Number,{isNaN:m},{isNaN:function(){return Number.isNaN!==m}}),m}},5692:(H,_,y)=>{var M=y(4029),v=y(3083),m=y(1924),E=m("Object.prototype.toString"),s=y(6410)(),p=y(7296),c=typeof globalThis>"u"?y.g:globalThis,l=v(),f=m("Array.prototype.indexOf",!0)||function(w,b){for(var k=0;k<w.length;k+=1)if(w[k]===b)return k;return-1},g=m("String.prototype.slice"),h={},u=Object.getPrototypeOf;s&&p&&u&&M(l,function(w){var b=new c[w];if(Symbol.toStringTag in b){var k=u(b),A=p(k,Symbol.toStringTag);if(!A){var x=u(k);A=p(x,Symbol.toStringTag)}h[w]=A.get}}),H.exports=function(w){if(!w||typeof w!="object")return!1;if(!s||!(Symbol.toStringTag in w)){var b=g(E(w),8,-1);return f(l,b)>-1}return!!p&&function(k){var A=!1;return M(h,function(x,j){if(!A)try{A=x.call(k)===j}catch{}}),A}(w)}},6650:(H,_,y)=>{var M=y(8764).Buffer,v=y(9539),m=y(2830).Transform;H.exports=function(s){return new E(s)};var E=H.exports.JSONStream=function(s){s=s||{},m.call(this,s),this._writableState.objectMode=!1,this._readableState.objectMode=!0,this._async=s.async||!1};v.inherits(E,m),E.prototype._transform=function(s,p,c){M.isBuffer(s)||(s=new M(s)),this._buffer&&(s=M.concat([this._buffer,s]));for(var l=0,f=0;++l<=s.length;)if(s[l]===10||l===s.length){var g;try{g=JSON.parse(s.slice(f,l))}catch{}g&&(this.push(g),g=null),s[l]===10&&(f=++l)}return this._buffer=s.slice(f),this._async?void setImmediate(c):void c()}},6486:function(H,_,y){var M;H=y.nmd(H),(function(){var v,m=200,E="Expected a function",s="__lodash_hash_undefined__",p="__lodash_placeholder__",c=1,l=2,f=4,g=1,h=2,u=1,w=2,b=4,k=8,A=16,x=32,j=64,P=128,B=256,$=512,te=800,J=16,oe=1/0,e=9007199254740991,r=17976931348623157e292,i=NaN,n=4294967295,t=n-1,o=n>>>1,a=[["ary",P],["bind",u],["bindKey",w],["curry",k],["curryRight",A],["flip",$],["partial",x],["partialRight",j],["rearg",B]],T="[object Arguments]",C="[object Array]",N="[object AsyncFunction]",O="[object Boolean]",R="[object Date]",F="[object DOMException]",Z="[object Error]",ie="[object Function]",D="[object GeneratorFunction]",Y="[object Map]",z="[object Number]",W="[object Null]",ae="[object Object]",re="[object Promise]",le="[object Proxy]",ke="[object RegExp]",ge="[object Set]",be="[object String]",je="[object Symbol]",xe="[object Undefined]",Ae="[object WeakMap]",X="[object ArrayBuffer]",ee="[object DataView]",U="[object Float32Array]",V="[object Float64Array]",q="[object Int8Array]",ne="[object Int16Array]",fe="[object Int32Array]",he="[object Uint8Array]",me="[object Uint8ClampedArray]",it="[object Uint16Array]",_e="[object Uint32Array]",Te=/\b__p \+= '';/g,ft=/\b(__p \+=) '' \+/g,Se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ge=/&(?:amp|lt|gt|quot|#39);/g,Ct=/[&<>"']/g,Pe=RegExp(Ge.source),Ve=RegExp(Ct.source),Nt=/<%-([\s\S]+?)%>/g,Re=/<%([\s\S]+?)%>/g,Ke=/<%=([\s\S]+?)%>/g,yt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Be=/^\w*$/,We=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,St=/[\\^$.*+?()[\]{}|]/g,Ne=RegExp(St.source),Ze=/^\s+/,It=/\s/,Le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xe=/\{\n\/\* \[wrapped with (.+)\] \*/,Dt=/,? & /,De=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Qe=/[()=,{}\[\]\/\s]/,zt=/\\(\\)?/g,qe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Je=/\w*$/,$t=/^[-+]0x[0-9a-f]+$/i,Fe=/^0b[01]+$/i,tt=/^\[object .+?Constructor\]$/,Vt=/^0o[0-7]+$/i,Ue=/^(?:0|[1-9]\d*)$/,et=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tt=/($^)/,Rt=/['\n\r\u2028\u2029\\]/g,Gt="\\ud800-\\udfff",an="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",rn="\\u2700-\\u27bf",un="a-z\\xdf-\\xf6\\xf8-\\xff",cn="A-Z\\xc0-\\xd6\\xd8-\\xde",ln="\\ufe0e\\ufe0f",hn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fn="["+Gt+"]",pn="["+hn+"]",Xt="["+an+"]",dn="\\d+",vn="["+rn+"]",tn="["+un+"]",nn="[^"+Gt+hn+dn+rn+un+cn+"]",Jt="\\ud83c[\\udffb-\\udfff]",mn="[^"+Gt+"]",on="(?:\\ud83c[\\udde6-\\uddff]){2}",ci="[\\ud800-\\udbff][\\udc00-\\udfff]",ti="["+cn+"]",Cr="\\u200d",Pr="(?:"+tn+"|"+nn+")",xo="(?:"+ti+"|"+nn+")",Dr="(?:['’](?:d|ll|m|re|s|t|ve))?",Ki="(?:['’](?:D|LL|M|RE|S|T|VE))?",Lr="(?:"+Xt+"|"+Jt+")?",qr="["+ln+"]?",Mo=qr+Lr+"(?:"+Cr+"(?:"+[mn,on,ci].join("|")+")"+qr+Lr+")*",Me="(?:"+[vn,on,ci].join("|")+")"+Mo,ve="(?:"+[mn+Xt+"?",Xt,on,ci,fn].join("|")+")",we=RegExp("['’]","g"),Oe=RegExp(Xt,"g"),He=RegExp(Jt+"(?="+Jt+")|"+ve+Mo,"g"),ze=RegExp([ti+"?"+tn+"+"+Dr+"(?="+[pn,ti,"$"].join("|")+")",xo+"+"+Ki+"(?="+[pn,ti+Pr,"$"].join("|")+")",ti+"?"+Pr+"+"+Dr,ti+"+"+Ki,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",dn,Me].join("|"),"g"),Ye=RegExp("["+Cr+Gt+an+ln+"]"),nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ct=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Mt=-1,Et={};Et[U]=Et[V]=Et[q]=Et[ne]=Et[fe]=Et[he]=Et[me]=Et[it]=Et[_e]=!0,Et[T]=Et[C]=Et[X]=Et[O]=Et[ee]=Et[R]=Et[Z]=Et[ie]=Et[Y]=Et[z]=Et[ae]=Et[ke]=Et[ge]=Et[be]=Et[Ae]=!1;var gt={};gt[T]=gt[C]=gt[X]=gt[ee]=gt[O]=gt[R]=gt[U]=gt[V]=gt[q]=gt[ne]=gt[fe]=gt[Y]=gt[z]=gt[ae]=gt[ke]=gt[ge]=gt[be]=gt[je]=gt[he]=gt[me]=gt[it]=gt[_e]=!0,gt[Z]=gt[ie]=gt[Ae]=!1;var Zt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yt=parseFloat,Vn=parseInt,bt=typeof y.g=="object"&&y.g&&y.g.Object===Object&&y.g,wt=typeof self=="object"&&self&&self.Object===Object&&self,dt=bt||wt||Function("return this")(),Ot=_&&!_.nodeType&&_,gn=Ot&&H&&!H.nodeType&&H,An=gn&&gn.exports===Ot,Tn=An&&bt.process,xn=function(){try{return gn&&gn.require&&gn.require("util").types||Tn&&Tn.binding&&Tn.binding("util")}catch{}}(),wi=xn&&xn.isArrayBuffer,Kn=xn&&xn.isDate,Ti=xn&&xn.isMap,zc=xn&&xn.isRegExp,$c=xn&&xn.isSet,Vc=xn&&xn.isTypedArray;function ni($e,st,ut){switch(ut.length){case 0:return $e.call(st);case 1:return $e.call(st,ut[0]);case 2:return $e.call(st,ut[0],ut[1]);case 3:return $e.call(st,ut[0],ut[1],ut[2])}return $e.apply(st,ut)}function bd($e,st,ut,mt){for(var qt=-1,sn=$e==null?0:$e.length;++qt<sn;){var Rn=$e[qt];st(mt,Rn,ut(Rn),$e)}return mt}function li($e,st){for(var ut=-1,mt=$e==null?0:$e.length;++ut<mt&&st($e[ut],ut,$e)!==!1;);return $e}function wd($e,st){for(var ut=$e==null?0:$e.length;ut--&&st($e[ut],ut,$e)!==!1;);return $e}function Kc($e,st){for(var ut=-1,mt=$e==null?0:$e.length;++ut<mt;)if(!st($e[ut],ut,$e))return!1;return!0}function Hi($e,st){for(var ut=-1,mt=$e==null?0:$e.length,qt=0,sn=[];++ut<mt;){var Rn=$e[ut];st(Rn,ut,$e)&&(sn[qt++]=Rn)}return sn}function _o($e,st){return!($e==null||!$e.length)&&br($e,st,0)>-1}function aa($e,st,ut){for(var mt=-1,qt=$e==null?0:$e.length;++mt<qt;)if(ut(st,$e[mt]))return!0;return!1}function kn($e,st){for(var ut=-1,mt=$e==null?0:$e.length,qt=Array(mt);++ut<mt;)qt[ut]=st($e[ut],ut,$e);return qt}function Wi($e,st){for(var ut=-1,mt=st.length,qt=$e.length;++ut<mt;)$e[qt+ut]=st[ut];return $e}function ua($e,st,ut,mt){var qt=-1,sn=$e==null?0:$e.length;for(mt&&sn&&(ut=$e[++qt]);++qt<sn;)ut=st(ut,$e[qt],qt,$e);return ut}function xd($e,st,ut,mt){var qt=$e==null?0:$e.length;for(mt&&qt&&(ut=$e[--qt]);qt--;)ut=st(ut,$e[qt],qt,$e);return ut}function ca($e,st){for(var ut=-1,mt=$e==null?0:$e.length;++ut<mt;)if(st($e[ut],ut,$e))return!0;return!1}var Md=la("length");function Hc($e,st,ut){var mt;return ut($e,function(qt,sn,Rn){if(st(qt,sn,Rn))return mt=sn,!1}),mt}function Eo($e,st,ut,mt){for(var qt=$e.length,sn=ut+(mt?1:-1);mt?sn--:++sn<qt;)if(st($e[sn],sn,$e))return sn;return-1}function br($e,st,ut){return st==st?function(mt,qt,sn){for(var Rn=sn-1,Oi=mt.length;++Rn<Oi;)if(mt[Rn]===qt)return Rn;return-1}($e,st,ut):Eo($e,Wc,ut)}function _d($e,st,ut,mt){for(var qt=ut-1,sn=$e.length;++qt<sn;)if(mt($e[qt],st))return qt;return-1}function Wc($e){return $e!=$e}function Zc($e,st){var ut=$e==null?0:$e.length;return ut?fa($e,st)/ut:i}function la($e){return function(st){return st==null?v:st[$e]}}function ha($e){return function(st){return $e==null?v:$e[st]}}function Gc($e,st,ut,mt,qt){return qt($e,function(sn,Rn,Oi){ut=mt?(mt=!1,sn):st(ut,sn,Rn,Oi)}),ut}function fa($e,st){for(var ut,mt=-1,qt=$e.length;++mt<qt;){var sn=st($e[mt]);sn!==v&&(ut=ut===v?sn:ut+sn)}return ut}function pa($e,st){for(var ut=-1,mt=Array($e);++ut<$e;)mt[ut]=st(ut);return mt}function Xc($e){return $e&&$e.slice(0,el($e)+1).replace(Ze,"")}function ii($e){return function(st){return $e(st)}}function da($e,st){return kn(st,function(ut){return $e[ut]})}function Fr($e,st){return $e.has(st)}function Yc($e,st){for(var ut=-1,mt=$e.length;++ut<mt&&br(st,$e[ut],0)>-1;);return ut}function Jc($e,st){for(var ut=$e.length;ut--&&br(st,$e[ut],0)>-1;);return ut}var Ed=ha({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),kd=ha({"&":"&","<":"<",">":">",'"':""","'":"'"});function Sd($e){return"\\"+Zt[$e]}function wr($e){return Ye.test($e)}function ma($e){var st=-1,ut=Array($e.size);return $e.forEach(function(mt,qt){ut[++st]=[qt,mt]}),ut}function Qc($e,st){return function(ut){return $e(st(ut))}}function Zi($e,st){for(var ut=-1,mt=$e.length,qt=0,sn=[];++ut<mt;){var Rn=$e[ut];Rn!==st&&Rn!==p||($e[ut]=p,sn[qt++]=ut)}return sn}function ko($e){var st=-1,ut=Array($e.size);return $e.forEach(function(mt){ut[++st]=mt}),ut}function Ad($e){var st=-1,ut=Array($e.size);return $e.forEach(function(mt){ut[++st]=[mt,mt]}),ut}function xr($e){return wr($e)?function(st){for(var ut=He.lastIndex=0;He.test(st);)++ut;return ut}($e):Md($e)}function xi($e){return wr($e)?function(st){return st.match(He)||[]}($e):function(st){return st.split("")}($e)}function el($e){for(var st=$e.length;st--&&It.test($e.charAt(st)););return st}var Id=ha({"&":"&","<":"<",">":">",""":'"',"'":"'"}),So=function $e(st){var ut,mt=(st=st==null?dt:So.defaults(dt.Object(),st,So.pick(dt,ct))).Array,qt=st.Date,sn=st.Error,Rn=st.Function,Oi=st.Math,_n=st.Object,ga=st.RegExp,Td=st.String,hi=st.TypeError,Ao=mt.prototype,Od=Rn.prototype,Mr=_n.prototype,Io=st["__core-js_shared__"],To=Od.toString,wn=Mr.hasOwnProperty,jd=0,tl=(ut=/[^.]+$/.exec(Io&&Io.keys&&Io.keys.IE_PROTO||""))?"Symbol(src)_1."+ut:"",Oo=Mr.toString,Nd=To.call(_n),Rd=dt._,Bd=ga("^"+To.call(wn).replace(St,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jo=An?st.Buffer:v,Gi=st.Symbol,No=st.Uint8Array,nl=jo?jo.allocUnsafe:v,Ro=Qc(_n.getPrototypeOf,_n),il=_n.create,rl=Mr.propertyIsEnumerable,Bo=Ao.splice,ol=Gi?Gi.isConcatSpreadable:v,Ur=Gi?Gi.iterator:v,sr=Gi?Gi.toStringTag:v,Co=function(){try{var d=hr(_n,"defineProperty");return d({},"",{}),d}catch{}}(),Cd=st.clearTimeout!==dt.clearTimeout&&st.clearTimeout,Pd=qt&&qt.now!==dt.Date.now&&qt.now,Dd=st.setTimeout!==dt.setTimeout&&st.setTimeout,Po=Oi.ceil,Do=Oi.floor,va=_n.getOwnPropertySymbols,Ld=jo?jo.isBuffer:v,sl=st.isFinite,qd=Ao.join,Fd=Qc(_n.keys,_n),Bn=Oi.max,Un=Oi.min,Ud=qt.now,zd=st.parseInt,al=Oi.random,$d=Ao.reverse,ya=hr(st,"DataView"),zr=hr(st,"Map"),ba=hr(st,"Promise"),_r=hr(st,"Set"),$r=hr(st,"WeakMap"),Vr=hr(_n,"create"),Lo=$r&&new $r,Er={},Vd=fr(ya),Kd=fr(zr),Hd=fr(ba),Wd=fr(_r),Zd=fr($r),qo=Gi?Gi.prototype:v,Kr=qo?qo.valueOf:v,ul=qo?qo.toString:v;function pe(d){if(In(d)&&!Kt(d)&&!(d instanceof Qt)){if(d instanceof fi)return d;if(wn.call(d,"__wrapped__"))return ch(d)}return new fi(d)}var kr=function(){function d(){}return function(S){if(!Sn(S))return{};if(il)return il(S);d.prototype=S;var K=new d;return d.prototype=v,K}}();function Fo(){}function fi(d,S){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!S,this.__index__=0,this.__values__=v}function Qt(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=n,this.__views__=[]}function ar(d){var S=-1,K=d==null?0:d.length;for(this.clear();++S<K;){var se=d[S];this.set(se[0],se[1])}}function Ci(d){var S=-1,K=d==null?0:d.length;for(this.clear();++S<K;){var se=d[S];this.set(se[0],se[1])}}function Pi(d){var S=-1,K=d==null?0:d.length;for(this.clear();++S<K;){var se=d[S];this.set(se[0],se[1])}}function ur(d){var S=-1,K=d==null?0:d.length;for(this.__data__=new Pi;++S<K;)this.add(d[S])}function Mi(d){var S=this.__data__=new Ci(d);this.size=S.size}function cl(d,S){var K=Kt(d),se=!K&&pr(d),ce=!K&&!se&&er(d),ye=!K&&!se&&!ce&&Tr(d),Ee=K||se||ce||ye,Ie=Ee?pa(d.length,Td):[],Ce=Ie.length;for(var ot in d)!S&&!wn.call(d,ot)||Ee&&(ot=="length"||ce&&(ot=="offset"||ot=="parent")||ye&&(ot=="buffer"||ot=="byteLength"||ot=="byteOffset")||Fi(ot,Ce))||Ie.push(ot);return Ie}function ll(d){var S=d.length;return S?d[Oa(0,S-1)]:v}function Gd(d,S){return es(Gn(d),cr(S,0,d.length))}function Xd(d){return es(Gn(d))}function wa(d,S,K){(K!==v&&!_i(d[S],K)||K===v&&!(S in d))&&Di(d,S,K)}function Hr(d,S,K){var se=d[S];wn.call(d,S)&&_i(se,K)&&(K!==v||S in d)||Di(d,S,K)}function Uo(d,S){for(var K=d.length;K--;)if(_i(d[K][0],S))return K;return-1}function Yd(d,S,K,se){return Xi(d,function(ce,ye,Ee){S(se,ce,K(ce),Ee)}),se}function hl(d,S){return d&&Ni(S,Pn(S),d)}function Di(d,S,K){S=="__proto__"&&Co?Co(d,S,{configurable:!0,enumerable:!0,value:K,writable:!0}):d[S]=K}function xa(d,S){for(var K=-1,se=S.length,ce=mt(se),ye=d==null;++K<se;)ce[K]=ye?v:iu(d,S[K]);return ce}function cr(d,S,K){return d==d&&(K!==v&&(d=d<=K?d:K),S!==v&&(d=d>=S?d:S)),d}function pi(d,S,K,se,ce,ye){var Ee,Ie=S&c,Ce=S&l,ot=S&f;if(K&&(Ee=ce?K(d,se,ce,ye):K(d)),Ee!==v)return Ee;if(!Sn(d))return d;var rt=Kt(d);if(rt){if(Ee=function(at){var ht=at.length,jt=new at.constructor(ht);return ht&&typeof at[0]=="string"&&wn.call(at,"index")&&(jt.index=at.index,jt.input=at.input),jt}(d),!Ie)return Gn(d,Ee)}else{var lt=zn(d),xt=lt==ie||lt==D;if(er(d))return Cl(d,Ie);if(lt==ae||lt==T||xt&&!ce){if(Ee=Ce||xt?{}:eh(d),!Ie)return Ce?function(at,ht){return Ni(at,Jl(at),ht)}(d,function(at,ht){return at&&Ni(ht,Yn(ht),at)}(Ee,d)):function(at,ht){return Ni(at,Va(at),ht)}(d,hl(Ee,d))}else{if(!gt[lt])return ce?d:{};Ee=function(at,ht,jt){var pt,Ut=at.constructor;switch(ht){case X:return Da(at);case O:case R:return new Ut(+at);case ee:return function(Lt,yn){var kt=yn?Da(Lt.buffer):Lt.buffer;return new Lt.constructor(kt,Lt.byteOffset,Lt.byteLength)}(at,jt);case U:case V:case q:case ne:case fe:case he:case me:case it:case _e:return Pl(at,jt);case Y:return new Ut;case z:case be:return new Ut(at);case ke:return function(Lt){var yn=new Lt.constructor(Lt.source,Je.exec(Lt));return yn.lastIndex=Lt.lastIndex,yn}(at);case ge:return new Ut;case je:return pt=at,Kr?_n(Kr.call(pt)):{}}}(d,lt,Ie)}}ye||(ye=new Mi);var _t=ye.get(d);if(_t)return _t;ye.set(d,Ee),Ah(d)?d.forEach(function(at){Ee.add(pi(at,S,K,at,d,ye))}):kh(d)&&d.forEach(function(at,ht){Ee.set(ht,pi(at,S,K,ht,d,ye))});var At=rt?v:(ot?Ce?Ua:Fa:Ce?Yn:Pn)(d);return li(At||d,function(at,ht){At&&(at=d[ht=at]),Hr(Ee,ht,pi(at,S,K,ht,d,ye))}),Ee}function fl(d,S,K){var se=K.length;if(d==null)return!se;for(d=_n(d);se--;){var ce=K[se],ye=S[ce],Ee=d[ce];if(Ee===v&&!(ce in d)||!ye(Ee))return!1}return!0}function pl(d,S,K){if(typeof d!="function")throw new hi(E);return Qr(function(){d.apply(v,K)},S)}function Wr(d,S,K,se){var ce=-1,ye=_o,Ee=!0,Ie=d.length,Ce=[],ot=S.length;if(!Ie)return Ce;K&&(S=kn(S,ii(K))),se?(ye=aa,Ee=!1):S.length>=m&&(ye=Fr,Ee=!1,S=new ur(S));e:for(;++ce<Ie;){var rt=d[ce],lt=K==null?rt:K(rt);if(rt=se||rt!==0?rt:0,Ee&<==lt){for(var xt=ot;xt--;)if(S[xt]===lt)continue e;Ce.push(rt)}else ye(S,lt,se)||Ce.push(rt)}return Ce}pe.templateSettings={escape:Nt,evaluate:Re,interpolate:Ke,variable:"",imports:{_:pe}},pe.prototype=Fo.prototype,pe.prototype.constructor=pe,fi.prototype=kr(Fo.prototype),fi.prototype.constructor=fi,Qt.prototype=kr(Fo.prototype),Qt.prototype.constructor=Qt,ar.prototype.clear=function(){this.__data__=Vr?Vr(null):{},this.size=0},ar.prototype.delete=function(d){var S=this.has(d)&&delete this.__data__[d];return this.size-=S?1:0,S},ar.prototype.get=function(d){var S=this.__data__;if(Vr){var K=S[d];return K===s?v:K}return wn.call(S,d)?S[d]:v},ar.prototype.has=function(d){var S=this.__data__;return Vr?S[d]!==v:wn.call(S,d)},ar.prototype.set=function(d,S){var K=this.__data__;return this.size+=this.has(d)?0:1,K[d]=Vr&&S===v?s:S,this},Ci.prototype.clear=function(){this.__data__=[],this.size=0},Ci.prototype.delete=function(d){var S=this.__data__,K=Uo(S,d);return!(K<0||(K==S.length-1?S.pop():Bo.call(S,K,1),--this.size,0))},Ci.prototype.get=function(d){var S=this.__data__,K=Uo(S,d);return K<0?v:S[K][1]},Ci.prototype.has=function(d){return Uo(this.__data__,d)>-1},Ci.prototype.set=function(d,S){var K=this.__data__,se=Uo(K,d);return se<0?(++this.size,K.push([d,S])):K[se][1]=S,this},Pi.prototype.clear=function(){this.size=0,this.__data__={hash:new ar,map:new(zr||Ci),string:new ar}},Pi.prototype.delete=function(d){var S=Qo(this,d).delete(d);return this.size-=S?1:0,S},Pi.prototype.get=function(d){return Qo(this,d).get(d)},Pi.prototype.has=function(d){return Qo(this,d).has(d)},Pi.prototype.set=function(d,S){var K=Qo(this,d),se=K.size;return K.set(d,S),this.size+=K.size==se?0:1,this},ur.prototype.add=ur.prototype.push=function(d){return this.__data__.set(d,s),this},ur.prototype.has=function(d){return this.__data__.has(d)},Mi.prototype.clear=function(){this.__data__=new Ci,this.size=0},Mi.prototype.delete=function(d){var S=this.__data__,K=S.delete(d);return this.size=S.size,K},Mi.prototype.get=function(d){return this.__data__.get(d)},Mi.prototype.has=function(d){return this.__data__.has(d)},Mi.prototype.set=function(d,S){var K=this.__data__;if(K instanceof Ci){var se=K.__data__;if(!zr||se.length<m-1)return se.push([d,S]),this.size=++K.size,this;K=this.__data__=new Pi(se)}return K.set(d,S),this.size=K.size,this};var Xi=Fl(ji),dl=Fl(_a,!0);function Jd(d,S){var K=!0;return Xi(d,function(se,ce,ye){return K=!!S(se,ce,ye)}),K}function zo(d,S,K){for(var se=-1,ce=d.length;++se<ce;){var ye=d[se],Ee=S(ye);if(Ee!=null&&(Ie===v?Ee==Ee&&!oi(Ee):K(Ee,Ie)))var Ie=Ee,Ce=ye}return Ce}function ml(d,S){var K=[];return Xi(d,function(se,ce,ye){S(se,ce,ye)&&K.push(se)}),K}function qn(d,S,K,se,ce){var ye=-1,Ee=d.length;for(K||(K=c0),ce||(ce=[]);++ye<Ee;){var Ie=d[ye];S>0&&K(Ie)?S>1?qn(Ie,S-1,K,se,ce):Wi(ce,Ie):se||(ce[ce.length]=Ie)}return ce}var Ma=Ul(),gl=Ul(!0);function ji(d,S){return d&&Ma(d,S,Pn)}function _a(d,S){return d&&gl(d,S,Pn)}function $o(d,S){return Hi(S,function(K){return Ui(d[K])})}function lr(d,S){for(var K=0,se=(S=Ji(S,d)).length;d!=null&&K<se;)d=d[Ri(S[K++])];return K&&K==se?d:v}function vl(d,S,K){var se=S(d);return Kt(d)?se:Wi(se,K(d))}function Hn(d){return d==null?d===v?xe:W:sr&&sr in _n(d)?function(S){var K=wn.call(S,sr),se=S[sr];try{S[sr]=v;var ce=!0}catch{}var ye=Oo.call(S);return ce&&(K?S[sr]=se:delete S[sr]),ye}(d):function(S){return Oo.call(S)}(d)}function Ea(d,S){return d>S}function Qd(d,S){return d!=null&&wn.call(d,S)}function e0(d,S){return d!=null&&S in _n(d)}function ka(d,S,K){for(var se=K?aa:_o,ce=d[0].length,ye=d.length,Ee=ye,Ie=mt(ye),Ce=1/0,ot=[];Ee--;){var rt=d[Ee];Ee&&S&&(rt=kn(rt,ii(S))),Ce=Un(rt.length,Ce),Ie[Ee]=!K&&(S||ce>=120&&rt.length>=120)?new ur(Ee&&rt):v}rt=d[0];var lt=-1,xt=Ie[0];e:for(;++lt<ce&&ot.length<Ce;){var _t=rt[lt],At=S?S(_t):_t;if(_t=K||_t!==0?_t:0,!(xt?Fr(xt,At):se(ot,At,K))){for(Ee=ye;--Ee;){var at=Ie[Ee];if(!(at?Fr(at,At):se(d[Ee],At,K)))continue e}xt&&xt.push(At),ot.push(_t)}}return ot}function Zr(d,S,K){var se=(d=rh(d,S=Ji(S,d)))==null?d:d[Ri(mi(S))];return se==null?v:ni(se,d,K)}function yl(d){return In(d)&&Hn(d)==T}function Gr(d,S,K,se,ce){return d===S||(d==null||S==null||!In(d)&&!In(S)?d!=d&&S!=S:function(ye,Ee,Ie,Ce,ot,rt){var lt=Kt(ye),xt=Kt(Ee),_t=lt?C:zn(ye),At=xt?C:zn(Ee),at=(_t=_t==T?ae:_t)==ae,ht=(At=At==T?ae:At)==ae,jt=_t==At;if(jt&&er(ye)){if(!er(Ee))return!1;lt=!0,at=!1}if(jt&&!at)return rt||(rt=new Mi),lt||Tr(ye)?Yl(ye,Ee,Ie,Ce,ot,rt):function(kt,Pt,Cn,jn,Zn,En,$n){switch(Cn){case ee:if(kt.byteLength!=Pt.byteLength||kt.byteOffset!=Pt.byteOffset)return!1;kt=kt.buffer,Pt=Pt.buffer;case X:return!(kt.byteLength!=Pt.byteLength||!En(new No(kt),new No(Pt)));case O:case R:case z:return _i(+kt,+Pt);case Z:return kt.name==Pt.name&&kt.message==Pt.message;case ke:case be:return kt==Pt+"";case Y:var Bi=ma;case ge:var tr=jn&g;if(Bi||(Bi=ko),kt.size!=Pt.size&&!tr)return!1;var dr=$n.get(kt);if(dr)return dr==Pt;jn|=h,$n.set(kt,Pt);var $i=Yl(Bi(kt),Bi(Pt),jn,Zn,En,$n);return $n.delete(kt),$i;case je:if(Kr)return Kr.call(kt)==Kr.call(Pt)}return!1}(ye,Ee,_t,Ie,Ce,ot,rt);if(!(Ie&g)){var pt=at&&wn.call(ye,"__wrapped__"),Ut=ht&&wn.call(Ee,"__wrapped__");if(pt||Ut){var Lt=pt?ye.value():ye,yn=Ut?Ee.value():Ee;return rt||(rt=new Mi),ot(Lt,yn,Ie,Ce,rt)}}return!!jt&&(rt||(rt=new Mi),function(kt,Pt,Cn,jn,Zn,En){var $n=Cn&g,Bi=Fa(kt),tr=Bi.length;if(tr!=Fa(Pt).length&&!$n)return!1;for(var dr=tr;dr--;){var $i=Bi[dr];if(!($n?$i in Pt:wn.call(Pt,$i)))return!1}var Uh=En.get(kt),zh=En.get(Pt);if(Uh&&zh)return Uh==Pt&&zh==kt;var cs=!0;En.set(kt,Pt),En.set(Pt,kt);for(var pu=$n;++dr<tr;){var ls=kt[$i=Bi[dr]],hs=Pt[$i];if(jn)var $h=$n?jn(hs,ls,$i,Pt,kt,En):jn(ls,hs,$i,kt,Pt,En);if(!($h===v?ls===hs||Zn(ls,hs,Cn,jn,En):$h)){cs=!1;break}pu||(pu=$i=="constructor")}if(cs&&!pu){var fs=kt.constructor,ps=Pt.constructor;fs==ps||!("constructor"in kt)||!("constructor"in Pt)||typeof fs=="function"&&fs instanceof fs&&typeof ps=="function"&&ps instanceof ps||(cs=!1)}return En.delete(kt),En.delete(Pt),cs}(ye,Ee,Ie,Ce,ot,rt))}(d,S,K,se,Gr,ce))}function Sa(d,S,K,se){var ce=K.length,ye=ce,Ee=!se;if(d==null)return!ye;for(d=_n(d);ce--;){var Ie=K[ce];if(Ee&&Ie[2]?Ie[1]!==d[Ie[0]]:!(Ie[0]in d))return!1}for(;++ce<ye;){var Ce=(Ie=K[ce])[0],ot=d[Ce],rt=Ie[1];if(Ee&&Ie[2]){if(ot===v&&!(Ce in d))return!1}else{var lt=new Mi;if(se)var xt=se(ot,rt,Ce,d,S,lt);if(!(xt===v?Gr(rt,ot,g|h,se,lt):xt))return!1}}return!0}function bl(d){return!(!Sn(d)||(S=d,tl&&tl in S))&&(Ui(d)?Bd:tt).test(fr(d));var S}function wl(d){return typeof d=="function"?d:d==null?Jn:typeof d=="object"?Kt(d)?_l(d[0],d[1]):Ml(d):Fh(d)}function Aa(d){if(!Jr(d))return Fd(d);var S=[];for(var K in _n(d))wn.call(d,K)&&K!="constructor"&&S.push(K);return S}function Ia(d,S){return d<S}function xl(d,S){var K=-1,se=Xn(d)?mt(d.length):[];return Xi(d,function(ce,ye,Ee){se[++K]=S(ce,ye,Ee)}),se}function Ml(d){var S=$a(d);return S.length==1&&S[0][2]?nh(S[0][0],S[0][1]):function(K){return K===d||Sa(K,d,S)}}function _l(d,S){return Ka(d)&&th(S)?nh(Ri(d),S):function(K){var se=iu(K,d);return se===v&&se===S?ru(K,d):Gr(S,se,g|h)}}function Vo(d,S,K,se,ce){d!==S&&Ma(S,function(ye,Ee){if(ce||(ce=new Mi),Sn(ye))(function(Ce,ot,rt,lt,xt,_t,At){var at=Wa(Ce,rt),ht=Wa(ot,rt),jt=At.get(ht);if(jt)wa(Ce,rt,jt);else{var pt=_t?_t(at,ht,rt+"",Ce,ot,At):v,Ut=pt===v;if(Ut){var Lt=Kt(ht),yn=!Lt&&er(ht),kt=!Lt&&!yn&&Tr(ht);pt=ht,Lt||yn||kt?Kt(at)?pt=at:On(at)?pt=Gn(at):yn?(Ut=!1,pt=Cl(ht,!0)):kt?(Ut=!1,pt=Pl(ht,!0)):pt=[]:eo(ht)||pr(ht)?(pt=at,pr(at)?pt=Oh(at):Sn(at)&&!Ui(at)||(pt=eh(ht))):Ut=!1}Ut&&(At.set(ht,pt),xt(pt,ht,lt,_t,At),At.delete(ht)),wa(Ce,rt,pt)}})(d,S,Ee,K,Vo,se,ce);else{var Ie=se?se(Wa(d,Ee),ye,Ee+"",d,S,ce):v;Ie===v&&(Ie=ye),wa(d,Ee,Ie)}},Yn)}function El(d,S){var K=d.length;if(K)return Fi(S+=S<0?K:0,K)?d[S]:v}function kl(d,S,K){S=S.length?kn(S,function(ye){return Kt(ye)?function(Ee){return lr(Ee,ye.length===1?ye[0]:ye)}:ye}):[Jn];var se=-1;S=kn(S,ii(Bt()));var ce=xl(d,function(ye,Ee,Ie){var Ce=kn(S,function(ot){return ot(ye)});return{criteria:Ce,index:++se,value:ye}});return function(ye,Ee){var Ie=ye.length;for(ye.sort(function(Ce,ot){return function(rt,lt,xt){for(var _t=-1,At=rt.criteria,at=lt.criteria,ht=At.length,jt=xt.length;++_t<ht;){var pt=Dl(At[_t],at[_t]);if(pt)return _t>=jt?pt:pt*(xt[_t]=="desc"?-1:1)}return rt.index-lt.index}(Ce,ot,K)});Ie--;)ye[Ie]=ye[Ie].value;return ye}(ce)}function Sl(d,S,K){for(var se=-1,ce=S.length,ye={};++se<ce;){var Ee=S[se],Ie=lr(d,Ee);K(Ie,Ee)&&Xr(ye,Ji(Ee,d),Ie)}return ye}function Ta(d,S,K,se){var ce=se?_d:br,ye=-1,Ee=S.length,Ie=d;for(d===S&&(S=Gn(S)),K&&(Ie=kn(d,ii(K)));++ye<Ee;)for(var Ce=0,ot=S[ye],rt=K?K(ot):ot;(Ce=ce(Ie,rt,Ce,se))>-1;)Ie!==d&&Bo.call(Ie,Ce,1),Bo.call(d,Ce,1);return d}function Al(d,S){for(var K=d?S.length:0,se=K-1;K--;){var ce=S[K];if(K==se||ce!==ye){var ye=ce;Fi(ce)?Bo.call(d,ce,1):Ra(d,ce)}}return d}function Oa(d,S){return d+Do(al()*(S-d+1))}function ja(d,S){var K="";if(!d||S<1||S>e)return K;do S%2&&(K+=d),(S=Do(S/2))&&(d+=d);while(S);return K}function Wt(d,S){return Za(ih(d,S,Jn),d+"")}function t0(d){return ll(Or(d))}function n0(d,S){var K=Or(d);return es(K,cr(S,0,K.length))}function Xr(d,S,K,se){if(!Sn(d))return d;for(var ce=-1,ye=(S=Ji(S,d)).length,Ee=ye-1,Ie=d;Ie!=null&&++ce<ye;){var Ce=Ri(S[ce]),ot=K;if(Ce==="__proto__"||Ce==="constructor"||Ce==="prototype")return d;if(ce!=Ee){var rt=Ie[Ce];(ot=se?se(rt,Ce,Ie):v)===v&&(ot=Sn(rt)?rt:Fi(S[ce+1])?[]:{})}Hr(Ie,Ce,ot),Ie=Ie[Ce]}return d}var Il=Lo?function(d,S){return Lo.set(d,S),d}:Jn,i0=Co?function(d,S){return Co(d,"toString",{configurable:!0,enumerable:!1,value:su(S),writable:!0})}:Jn;function r0(d){return es(Or(d))}function di(d,S,K){var se=-1,ce=d.length;S<0&&(S=-S>ce?0:ce+S),(K=K>ce?ce:K)<0&&(K+=ce),ce=S>K?0:K-S>>>0,S>>>=0;for(var ye=mt(ce);++se<ce;)ye[se]=d[se+S];return ye}function o0(d,S){var K;return Xi(d,function(se,ce,ye){return!(K=S(se,ce,ye))}),!!K}function Ko(d,S,K){var se=0,ce=d==null?se:d.length;if(typeof S=="number"&&S==S&&ce<=o){for(;se<ce;){var ye=se+ce>>>1,Ee=d[ye];Ee!==null&&!oi(Ee)&&(K?Ee<=S:Ee<S)?se=ye+1:ce=ye}return ce}return Na(d,S,Jn,K)}function Na(d,S,K,se){var ce=0,ye=d==null?0:d.length;if(ye===0)return 0;for(var Ee=(S=K(S))!=S,Ie=S===null,Ce=oi(S),ot=S===v;ce<ye;){var rt=Do((ce+ye)/2),lt=K(d[rt]),xt=lt!==v,_t=lt===null,At=lt==lt,at=oi(lt);if(Ee)var ht=se||At;else ht=ot?At&&(se||xt):Ie?At&&xt&&(se||!_t):Ce?At&&xt&&!_t&&(se||!at):!_t&&!at&&(se?lt<=S:lt<S);ht?ce=rt+1:ye=rt}return Un(ye,t)}function Tl(d,S){for(var K=-1,se=d.length,ce=0,ye=[];++K<se;){var Ee=d[K],Ie=S?S(Ee):Ee;if(!K||!_i(Ie,Ce)){var Ce=Ie;ye[ce++]=Ee===0?0:Ee}}return ye}function Ol(d){return typeof d=="number"?d:oi(d)?i:+d}function ri(d){if(typeof d=="string")return d;if(Kt(d))return kn(d,ri)+"";if(oi(d))return ul?ul.call(d):"";var S=d+"";return S=="0"&&1/d==-oe?"-0":S}function Yi(d,S,K){var se=-1,ce=_o,ye=d.length,Ee=!0,Ie=[],Ce=Ie;if(K)Ee=!1,ce=aa;else if(ye>=m){var ot=S?null:a0(d);if(ot)return ko(ot);Ee=!1,ce=Fr,Ce=new ur}else Ce=S?[]:Ie;e:for(;++se<ye;){var rt=d[se],lt=S?S(rt):rt;if(rt=K||rt!==0?rt:0,Ee&<==lt){for(var xt=Ce.length;xt--;)if(Ce[xt]===lt)continue e;S&&Ce.push(lt),Ie.push(rt)}else ce(Ce,lt,K)||(Ce!==Ie&&Ce.push(lt),Ie.push(rt))}return Ie}function Ra(d,S){return(d=rh(d,S=Ji(S,d)))==null||delete d[Ri(mi(S))]}function jl(d,S,K,se){return Xr(d,S,K(lr(d,S)),se)}function Ho(d,S,K,se){for(var ce=d.length,ye=se?ce:-1;(se?ye--:++ye<ce)&&S(d[ye],ye,d););return K?di(d,se?0:ye,se?ye+1:ce):di(d,se?ye+1:0,se?ce:ye)}function Nl(d,S){var K=d;return K instanceof Qt&&(K=K.value()),ua(S,function(se,ce){return ce.func.apply(ce.thisArg,Wi([se],ce.args))},K)}function Ba(d,S,K){var se=d.length;if(se<2)return se?Yi(d[0]):[];for(var ce=-1,ye=mt(se);++ce<se;)for(var Ee=d[ce],Ie=-1;++Ie<se;)Ie!=ce&&(ye[ce]=Wr(ye[ce]||Ee,d[Ie],S,K));return Yi(qn(ye,1),S,K)}function Rl(d,S,K){for(var se=-1,ce=d.length,ye=S.length,Ee={};++se<ce;){var Ie=se<ye?S[se]:v;K(Ee,d[se],Ie)}return Ee}function Ca(d){return On(d)?d:[]}function Pa(d){return typeof d=="function"?d:Jn}function Ji(d,S){return Kt(d)?d:Ka(d,S)?[d]:uh(bn(d))}var s0=Wt;function Qi(d,S,K){var se=d.length;return K=K===v?se:K,!S&&K>=se?d:di(d,S,K)}var Bl=Cd||function(d){return dt.clearTimeout(d)};function Cl(d,S){if(S)return d.slice();var K=d.length,se=nl?nl(K):new d.constructor(K);return d.copy(se),se}function Da(d){var S=new d.constructor(d.byteLength);return new No(S).set(new No(d)),S}function Pl(d,S){var K=S?Da(d.buffer):d.buffer;return new d.constructor(K,d.byteOffset,d.length)}function Dl(d,S){if(d!==S){var K=d!==v,se=d===null,ce=d==d,ye=oi(d),Ee=S!==v,Ie=S===null,Ce=S==S,ot=oi(S);if(!Ie&&!ot&&!ye&&d>S||ye&&Ee&&Ce&&!Ie&&!ot||se&&Ee&&Ce||!K&&Ce||!ce)return 1;if(!se&&!ye&&!ot&&d<S||ot&&K&&ce&&!se&&!ye||Ie&&K&&ce||!Ee&&ce||!Ce)return-1}return 0}function Ll(d,S,K,se){for(var ce=-1,ye=d.length,Ee=K.length,Ie=-1,Ce=S.length,ot=Bn(ye-Ee,0),rt=mt(Ce+ot),lt=!se;++Ie<Ce;)rt[Ie]=S[Ie];for(;++ce<Ee;)(lt||ce<ye)&&(rt[K[ce]]=d[ce]);for(;ot--;)rt[Ie++]=d[ce++];return rt}function ql(d,S,K,se){for(var ce=-1,ye=d.length,Ee=-1,Ie=K.length,Ce=-1,ot=S.length,rt=Bn(ye-Ie,0),lt=mt(rt+ot),xt=!se;++ce<rt;)lt[ce]=d[ce];for(var _t=ce;++Ce<ot;)lt[_t+Ce]=S[Ce];for(;++Ee<Ie;)(xt||ce<ye)&&(lt[_t+K[Ee]]=d[ce++]);return lt}function Gn(d,S){var K=-1,se=d.length;for(S||(S=mt(se));++K<se;)S[K]=d[K];return S}function Ni(d,S,K,se){var ce=!K;K||(K={});for(var ye=-1,Ee=S.length;++ye<Ee;){var Ie=S[ye],Ce=se?se(K[Ie],d[Ie],Ie,K,d):v;Ce===v&&(Ce=d[Ie]),ce?Di(K,Ie,Ce):Hr(K,Ie,Ce)}return K}function Wo(d,S){return function(K,se){var ce=Kt(K)?bd:Yd,ye=S?S():{};return ce(K,d,Bt(se,2),ye)}}function Sr(d){return Wt(function(S,K){var se=-1,ce=K.length,ye=ce>1?K[ce-1]:v,Ee=ce>2?K[2]:v;for(ye=d.length>3&&typeof ye=="function"?(ce--,ye):v,Ee&&Wn(K[0],K[1],Ee)&&(ye=ce<3?v:ye,ce=1),S=_n(S);++se<ce;){var Ie=K[se];Ie&&d(S,Ie,se,ye)}return S})}function Fl(d,S){return function(K,se){if(K==null)return K;if(!Xn(K))return d(K,se);for(var ce=K.length,ye=S?ce:-1,Ee=_n(K);(S?ye--:++ye<ce)&&se(Ee[ye],ye,Ee)!==!1;);return K}}function Ul(d){return function(S,K,se){for(var ce=-1,ye=_n(S),Ee=se(S),Ie=Ee.length;Ie--;){var Ce=Ee[d?Ie:++ce];if(K(ye[Ce],Ce,ye)===!1)break}return S}}function zl(d){return function(S){var K=wr(S=bn(S))?xi(S):v,se=K?K[0]:S.charAt(0),ce=K?Qi(K,1).join(""):S.slice(1);return se[d]()+ce}}function Ar(d){return function(S){return ua(Lh(Dh(S).replace(we,"")),d,"")}}function Yr(d){return function(){var S=arguments;switch(S.length){case 0:return new d;case 1:return new d(S[0]);case 2:return new d(S[0],S[1]);case 3:return new d(S[0],S[1],S[2]);case 4:return new d(S[0],S[1],S[2],S[3]);case 5:return new d(S[0],S[1],S[2],S[3],S[4]);case 6:return new d(S[0],S[1],S[2],S[3],S[4],S[5]);case 7:return new d(S[0],S[1],S[2],S[3],S[4],S[5],S[6])}var K=kr(d.prototype),se=d.apply(K,S);return Sn(se)?se:K}}function $l(d){return function(S,K,se){var ce=_n(S);if(!Xn(S)){var ye=Bt(K,3);S=Pn(S),K=function(Ie){return ye(ce[Ie],Ie,ce)}}var Ee=d(S,K,se);return Ee>-1?ce[ye?S[Ee]:Ee]:v}}function Vl(d){return qi(function(S){var K=S.length,se=K,ce=fi.prototype.thru;for(d&&S.reverse();se--;){var ye=S[se];if(typeof ye!="function")throw new hi(E);if(ce&&!Ee&&Jo(ye)=="wrapper")var Ee=new fi([],!0)}for(se=Ee?se:K;++se<K;){var Ie=Jo(ye=S[se]),Ce=Ie=="wrapper"?za(ye):v;Ee=Ce&&Ha(Ce[0])&&Ce[1]==(P|k|x|B)&&!Ce[4].length&&Ce[9]==1?Ee[Jo(Ce[0])].apply(Ee,Ce[3]):ye.length==1&&Ha(ye)?Ee[Ie]():Ee.thru(ye)}return function(){var ot=arguments,rt=ot[0];if(Ee&&ot.length==1&&Kt(rt))return Ee.plant(rt).value();for(var lt=0,xt=K?S[lt].apply(this,ot):rt;++lt<K;)xt=S[lt].call(this,xt);return xt}})}function Zo(d,S,K,se,ce,ye,Ee,Ie,Ce,ot){var rt=S&P,lt=S&u,xt=S&w,_t=S&(k|A),At=S&$,at=xt?v:Yr(d);return function ht(){for(var jt=arguments.length,pt=mt(jt),Ut=jt;Ut--;)pt[Ut]=arguments[Ut];if(_t)var Lt=Ir(ht),yn=function(jn,Zn){for(var En=jn.length,$n=0;En--;)jn[En]===Zn&&++$n;return $n}(pt,Lt);if(se&&(pt=Ll(pt,se,ce,_t)),ye&&(pt=ql(pt,ye,Ee,_t)),jt-=yn,_t&&jt<ot){var kt=Zi(pt,Lt);return Wl(d,S,Zo,ht.placeholder,K,pt,kt,Ie,Ce,ot-jt)}var Pt=lt?K:this,Cn=xt?Pt[d]:d;return jt=pt.length,Ie?pt=function(jn,Zn){for(var En=jn.length,$n=Un(Zn.length,En),Bi=Gn(jn);$n--;){var tr=Zn[$n];jn[$n]=Fi(tr,En)?Bi[tr]:v}return jn}(pt,Ie):At&&jt>1&&pt.reverse(),rt&&Ce<jt&&(pt.length=Ce),this&&this!==dt&&this instanceof ht&&(Cn=at||Yr(Cn)),Cn.apply(Pt,pt)}}function Kl(d,S){return function(K,se){return function(ce,ye,Ee,Ie){return ji(ce,function(Ce,ot,rt){ye(Ie,Ee(Ce),ot,rt)}),Ie}(K,d,S(se),{})}}function Go(d,S){return function(K,se){var ce;if(K===v&&se===v)return S;if(K!==v&&(ce=K),se!==v){if(ce===v)return se;typeof K=="string"||typeof se=="string"?(K=ri(K),se=ri(se)):(K=Ol(K),se=Ol(se)),ce=d(K,se)}return ce}}function La(d){return qi(function(S){return S=kn(S,ii(Bt())),Wt(function(K){var se=this;return d(S,function(ce){return ni(ce,se,K)})})})}function Xo(d,S){var K=(S=S===v?" ":ri(S)).length;if(K<2)return K?ja(S,d):S;var se=ja(S,Po(d/xr(S)));return wr(S)?Qi(xi(se),0,d).join(""):se.slice(0,d)}function Hl(d){return function(S,K,se){return se&&typeof se!="number"&&Wn(S,K,se)&&(K=se=v),S=zi(S),K===v?(K=S,S=0):K=zi(K),function(ce,ye,Ee,Ie){for(var Ce=-1,ot=Bn(Po((ye-ce)/(Ee||1)),0),rt=mt(ot);ot--;)rt[Ie?ot:++Ce]=ce,ce+=Ee;return rt}(S,K,se=se===v?S<K?1:-1:zi(se),d)}}function Yo(d){return function(S,K){return typeof S=="string"&&typeof K=="string"||(S=gi(S),K=gi(K)),d(S,K)}}function Wl(d,S,K,se,ce,ye,Ee,Ie,Ce,ot){var rt=S&k;S|=rt?x:j,(S&=~(rt?j:x))&b||(S&=~(u|w));var lt=[d,S,ce,rt?ye:v,rt?Ee:v,rt?v:ye,rt?v:Ee,Ie,Ce,ot],xt=K.apply(v,lt);return Ha(d)&&oh(xt,lt),xt.placeholder=se,sh(xt,d,S)}function qa(d){var S=Oi[d];return function(K,se){if(K=gi(K),(se=se==null?0:Un(Ht(se),292))&&sl(K)){var ce=(bn(K)+"e").split("e");return+((ce=(bn(S(ce[0]+"e"+(+ce[1]+se)))+"e").split("e"))[0]+"e"+(+ce[1]-se))}return S(K)}}var a0=_r&&1/ko(new _r([,-0]))[1]==oe?function(d){return new _r(d)}:cu;function Zl(d){return function(S){var K=zn(S);return K==Y?ma(S):K==ge?Ad(S):function(se,ce){return kn(ce,function(ye){return[ye,se[ye]]})}(S,d(S))}}function Li(d,S,K,se,ce,ye,Ee,Ie){var Ce=S&w;if(!Ce&&typeof d!="function")throw new hi(E);var ot=se?se.length:0;if(ot||(S&=~(x|j),se=ce=v),Ee=Ee===v?Ee:Bn(Ht(Ee),0),Ie=Ie===v?Ie:Ht(Ie),ot-=ce?ce.length:0,S&j){var rt=se,lt=ce;se=ce=v}var xt=Ce?v:za(d),_t=[d,S,K,se,ce,rt,lt,ye,Ee,Ie];if(xt&&function(at,ht){var jt=at[1],pt=ht[1],Ut=jt|pt,Lt=Ut<(u|w|P),yn=pt==P&&jt==k||pt==P&&jt==B&&at[7].length<=ht[8]||pt==(P|B)&&ht[7].length<=ht[8]&&jt==k;if(!Lt&&!yn)return at;pt&u&&(at[2]=ht[2],Ut|=jt&u?0:b);var kt=ht[3];if(kt){var Pt=at[3];at[3]=Pt?Ll(Pt,kt,ht[4]):kt,at[4]=Pt?Zi(at[3],p):ht[4]}(kt=ht[5])&&(Pt=at[5],at[5]=Pt?ql(Pt,kt,ht[6]):kt,at[6]=Pt?Zi(at[5],p):ht[6]),(kt=ht[7])&&(at[7]=kt),pt&P&&(at[8]=at[8]==null?ht[8]:Un(at[8],ht[8])),at[9]==null&&(at[9]=ht[9]),at[0]=ht[0],at[1]=Ut}(_t,xt),d=_t[0],S=_t[1],K=_t[2],se=_t[3],ce=_t[4],!(Ie=_t[9]=_t[9]===v?Ce?0:d.length:Bn(_t[9]-ot,0))&&S&(k|A)&&(S&=~(k|A)),S&&S!=u)At=S==k||S==A?function(at,ht,jt){var pt=Yr(at);return function Ut(){for(var Lt=arguments.length,yn=mt(Lt),kt=Lt,Pt=Ir(Ut);kt--;)yn[kt]=arguments[kt];var Cn=Lt<3&&yn[0]!==Pt&&yn[Lt-1]!==Pt?[]:Zi(yn,Pt);return(Lt-=Cn.length)<jt?Wl(at,ht,Zo,Ut.placeholder,v,yn,Cn,v,v,jt-Lt):ni(this&&this!==dt&&this instanceof Ut?pt:at,this,yn)}}(d,S,Ie):S!=x&&S!=(u|x)||ce.length?Zo.apply(v,_t):function(at,ht,jt,pt){var Ut=ht&u,Lt=Yr(at);return function yn(){for(var kt=-1,Pt=arguments.length,Cn=-1,jn=pt.length,Zn=mt(jn+Pt),En=this&&this!==dt&&this instanceof yn?Lt:at;++Cn<jn;)Zn[Cn]=pt[Cn];for(;Pt--;)Zn[Cn++]=arguments[++kt];return ni(En,Ut?jt:this,Zn)}}(d,S,K,se);else var At=function(at,ht,jt){var pt=ht&u,Ut=Yr(at);return function Lt(){return(this&&this!==dt&&this instanceof Lt?Ut:at).apply(pt?jt:this,arguments)}}(d,S,K);return sh((xt?Il:oh)(At,_t),d,S)}function Gl(d,S,K,se){return d===v||_i(d,Mr[K])&&!wn.call(se,K)?S:d}function Xl(d,S,K,se,ce,ye){return Sn(d)&&Sn(S)&&(ye.set(S,d),Vo(d,S,v,Xl,ye),ye.delete(S)),d}function u0(d){return eo(d)?v:d}function Yl(d,S,K,se,ce,ye){var Ee=K&g,Ie=d.length,Ce=S.length;if(Ie!=Ce&&!(Ee&&Ce>Ie))return!1;var ot=ye.get(d),rt=ye.get(S);if(ot&&rt)return ot==S&&rt==d;var lt=-1,xt=!0,_t=K&h?new ur:v;for(ye.set(d,S),ye.set(S,d);++lt<Ie;){var At=d[lt],at=S[lt];if(se)var ht=Ee?se(at,At,lt,S,d,ye):se(At,at,lt,d,S,ye);if(ht!==v){if(ht)continue;xt=!1;break}if(_t){if(!ca(S,function(jt,pt){if(!Fr(_t,pt)&&(At===jt||ce(At,jt,K,se,ye)))return _t.push(pt)})){xt=!1;break}}else if(At!==at&&!ce(At,at,K,se,ye)){xt=!1;break}}return ye.delete(d),ye.delete(S),xt}function qi(d){return Za(ih(d,v,fh),d+"")}function Fa(d){return vl(d,Pn,Va)}function Ua(d){return vl(d,Yn,Jl)}var za=Lo?function(d){return Lo.get(d)}:cu;function Jo(d){for(var S=d.name+"",K=Er[S],se=wn.call(Er,S)?K.length:0;se--;){var ce=K[se],ye=ce.func;if(ye==null||ye==d)return ce.name}return S}function Ir(d){return(wn.call(pe,"placeholder")?pe:d).placeholder}function Bt(){var d=pe.iteratee||au;return d=d===au?wl:d,arguments.length?d(arguments[0],arguments[1]):d}function Qo(d,S){var K,se,ce=d.__data__;return((se=typeof(K=S))=="string"||se=="number"||se=="symbol"||se=="boolean"?K!=="__proto__":K===null)?ce[typeof S=="string"?"string":"hash"]:ce.map}function $a(d){for(var S=Pn(d),K=S.length;K--;){var se=S[K],ce=d[se];S[K]=[se,ce,th(ce)]}return S}function hr(d,S){var K=function(se,ce){return se==null?v:se[ce]}(d,S);return bl(K)?K:v}var Va=va?function(d){return d==null?[]:(d=_n(d),Hi(va(d),function(S){return rl.call(d,S)}))}:lu,Jl=va?function(d){for(var S=[];d;)Wi(S,Va(d)),d=Ro(d);return S}:lu,zn=Hn;function Ql(d,S,K){for(var se=-1,ce=(S=Ji(S,d)).length,ye=!1;++se<ce;){var Ee=Ri(S[se]);if(!(ye=d!=null&&K(d,Ee)))break;d=d[Ee]}return ye||++se!=ce?ye:!!(ce=d==null?0:d.length)&&ss(ce)&&Fi(Ee,ce)&&(Kt(d)||pr(d))}function eh(d){return typeof d.constructor!="function"||Jr(d)?{}:kr(Ro(d))}function c0(d){return Kt(d)||pr(d)||!!(ol&&d&&d[ol])}function Fi(d,S){var K=typeof d;return!!(S=S??e)&&(K=="number"||K!="symbol"&&Ue.test(d))&&d>-1&&d%1==0&&d<S}function Wn(d,S,K){if(!Sn(K))return!1;var se=typeof S;return!!(se=="number"?Xn(K)&&Fi(S,K.length):se=="string"&&S in K)&&_i(K[S],d)}function Ka(d,S){if(Kt(d))return!1;var K=typeof d;return!(K!="number"&&K!="symbol"&&K!="boolean"&&d!=null&&!oi(d))||Be.test(d)||!yt.test(d)||S!=null&&d in _n(S)}function Ha(d){var S=Jo(d),K=pe[S];if(typeof K!="function"||!(S in Qt.prototype))return!1;if(d===K)return!0;var se=za(K);return!!se&&d===se[0]}(ya&&zn(new ya(new ArrayBuffer(1)))!=ee||zr&&zn(new zr)!=Y||ba&&zn(ba.resolve())!=re||_r&&zn(new _r)!=ge||$r&&zn(new $r)!=Ae)&&(zn=function(d){var S=Hn(d),K=S==ae?d.constructor:v,se=K?fr(K):"";if(se)switch(se){case Vd:return ee;case Kd:return Y;case Hd:return re;case Wd:return ge;case Zd:return Ae}return S});var l0=Io?Ui:hu;function Jr(d){var S=d&&d.constructor;return d===(typeof S=="function"&&S.prototype||Mr)}function th(d){return d==d&&!Sn(d)}function nh(d,S){return function(K){return K!=null&&K[d]===S&&(S!==v||d in _n(K))}}function ih(d,S,K){return S=Bn(S===v?d.length-1:S,0),function(){for(var se=arguments,ce=-1,ye=Bn(se.length-S,0),Ee=mt(ye);++ce<ye;)Ee[ce]=se[S+ce];ce=-1;for(var Ie=mt(S+1);++ce<S;)Ie[ce]=se[ce];return Ie[S]=K(Ee),ni(d,this,Ie)}}function rh(d,S){return S.length<2?d:lr(d,di(S,0,-1))}function Wa(d,S){if((S!=="constructor"||typeof d[S]!="function")&&S!="__proto__")return d[S]}var oh=ah(Il),Qr=Dd||function(d,S){return dt.setTimeout(d,S)},Za=ah(i0);function sh(d,S,K){var se=S+"";return Za(d,function(ce,ye){var Ee=ye.length;if(!Ee)return ce;var Ie=Ee-1;return ye[Ie]=(Ee>1?"& ":"")+ye[Ie],ye=ye.join(Ee>2?", ":" "),ce.replace(Le,`{
|
|
76
|
+
/* [wrapped with `+ye+`] */
|
|
77
|
+
`)}(se,function(ce,ye){return li(a,function(Ee){var Ie="_."+Ee[0];ye&Ee[1]&&!_o(ce,Ie)&&ce.push(Ie)}),ce.sort()}(function(ce){var ye=ce.match(Xe);return ye?ye[1].split(Dt):[]}(se),K)))}function ah(d){var S=0,K=0;return function(){var se=Ud(),ce=J-(se-K);if(K=se,ce>0){if(++S>=te)return arguments[0]}else S=0;return d.apply(v,arguments)}}function es(d,S){var K=-1,se=d.length,ce=se-1;for(S=S===v?se:S;++K<S;){var ye=Oa(K,ce),Ee=d[ye];d[ye]=d[K],d[K]=Ee}return d.length=S,d}var Ga,Xa,uh=(Ga=rs(function(d){var S=[];return d.charCodeAt(0)===46&&S.push(""),d.replace(We,function(K,se,ce,ye){S.push(ce?ye.replace(zt,"$1"):se||K)}),S},function(d){return Xa.size===500&&Xa.clear(),d}),Xa=Ga.cache,Ga);function Ri(d){if(typeof d=="string"||oi(d))return d;var S=d+"";return S=="0"&&1/d==-oe?"-0":S}function fr(d){if(d!=null){try{return To.call(d)}catch{}try{return d+""}catch{}}return""}function ch(d){if(d instanceof Qt)return d.clone();var S=new fi(d.__wrapped__,d.__chain__);return S.__actions__=Gn(d.__actions__),S.__index__=d.__index__,S.__values__=d.__values__,S}var h0=Wt(function(d,S){return On(d)?Wr(d,qn(S,1,On,!0)):[]}),f0=Wt(function(d,S){var K=mi(S);return On(K)&&(K=v),On(d)?Wr(d,qn(S,1,On,!0),Bt(K,2)):[]}),p0=Wt(function(d,S){var K=mi(S);return On(K)&&(K=v),On(d)?Wr(d,qn(S,1,On,!0),v,K):[]});function lh(d,S,K){var se=d==null?0:d.length;if(!se)return-1;var ce=K==null?0:Ht(K);return ce<0&&(ce=Bn(se+ce,0)),Eo(d,Bt(S,3),ce)}function hh(d,S,K){var se=d==null?0:d.length;if(!se)return-1;var ce=se-1;return K!==v&&(ce=Ht(K),ce=K<0?Bn(se+ce,0):Un(ce,se-1)),Eo(d,Bt(S,3),ce,!0)}function fh(d){return d!=null&&d.length?qn(d,1):[]}function ph(d){return d&&d.length?d[0]:v}var d0=Wt(function(d){var S=kn(d,Ca);return S.length&&S[0]===d[0]?ka(S):[]}),m0=Wt(function(d){var S=mi(d),K=kn(d,Ca);return S===mi(K)?S=v:K.pop(),K.length&&K[0]===d[0]?ka(K,Bt(S,2)):[]}),g0=Wt(function(d){var S=mi(d),K=kn(d,Ca);return(S=typeof S=="function"?S:v)&&K.pop(),K.length&&K[0]===d[0]?ka(K,v,S):[]});function mi(d){var S=d==null?0:d.length;return S?d[S-1]:v}var v0=Wt(dh);function dh(d,S){return d&&d.length&&S&&S.length?Ta(d,S):d}var y0=qi(function(d,S){var K=d==null?0:d.length,se=xa(d,S);return Al(d,kn(S,function(ce){return Fi(ce,K)?+ce:ce}).sort(Dl)),se});function Ya(d){return d==null?d:$d.call(d)}var b0=Wt(function(d){return Yi(qn(d,1,On,!0))}),w0=Wt(function(d){var S=mi(d);return On(S)&&(S=v),Yi(qn(d,1,On,!0),Bt(S,2))}),x0=Wt(function(d){var S=mi(d);return S=typeof S=="function"?S:v,Yi(qn(d,1,On,!0),v,S)});function Ja(d){if(!d||!d.length)return[];var S=0;return d=Hi(d,function(K){if(On(K))return S=Bn(K.length,S),!0}),pa(S,function(K){return kn(d,la(K))})}function mh(d,S){if(!d||!d.length)return[];var K=Ja(d);return S==null?K:kn(K,function(se){return ni(S,v,se)})}var M0=Wt(function(d,S){return On(d)?Wr(d,S):[]}),_0=Wt(function(d){return Ba(Hi(d,On))}),E0=Wt(function(d){var S=mi(d);return On(S)&&(S=v),Ba(Hi(d,On),Bt(S,2))}),k0=Wt(function(d){var S=mi(d);return S=typeof S=="function"?S:v,Ba(Hi(d,On),v,S)}),S0=Wt(Ja),A0=Wt(function(d){var S=d.length,K=S>1?d[S-1]:v;return K=typeof K=="function"?(d.pop(),K):v,mh(d,K)});function gh(d){var S=pe(d);return S.__chain__=!0,S}function ts(d,S){return S(d)}var I0=qi(function(d){var S=d.length,K=S?d[0]:0,se=this.__wrapped__,ce=function(ye){return xa(ye,d)};return!(S>1||this.__actions__.length)&&se instanceof Qt&&Fi(K)?((se=se.slice(K,+K+(S?1:0))).__actions__.push({func:ts,args:[ce],thisArg:v}),new fi(se,this.__chain__).thru(function(ye){return S&&!ye.length&&ye.push(v),ye})):this.thru(ce)}),T0=Wo(function(d,S,K){wn.call(d,K)?++d[K]:Di(d,K,1)}),O0=$l(lh),j0=$l(hh);function vh(d,S){return(Kt(d)?li:Xi)(d,Bt(S,3))}function yh(d,S){return(Kt(d)?wd:dl)(d,Bt(S,3))}var N0=Wo(function(d,S,K){wn.call(d,K)?d[K].push(S):Di(d,K,[S])}),R0=Wt(function(d,S,K){var se=-1,ce=typeof S=="function",ye=Xn(d)?mt(d.length):[];return Xi(d,function(Ee){ye[++se]=ce?ni(S,Ee,K):Zr(Ee,S,K)}),ye}),B0=Wo(function(d,S,K){Di(d,K,S)});function ns(d,S){return(Kt(d)?kn:xl)(d,Bt(S,3))}var C0=Wo(function(d,S,K){d[K?0:1].push(S)},function(){return[[],[]]}),P0=Wt(function(d,S){if(d==null)return[];var K=S.length;return K>1&&Wn(d,S[0],S[1])?S=[]:K>2&&Wn(S[0],S[1],S[2])&&(S=[S[0]]),kl(d,qn(S,1),[])}),is=Pd||function(){return dt.Date.now()};function bh(d,S,K){return S=K?v:S,S=d&&S==null?d.length:S,Li(d,P,v,v,v,v,S)}function wh(d,S){var K;if(typeof S!="function")throw new hi(E);return d=Ht(d),function(){return--d>0&&(K=S.apply(this,arguments)),d<=1&&(S=v),K}}var Qa=Wt(function(d,S,K){var se=u;if(K.length){var ce=Zi(K,Ir(Qa));se|=x}return Li(d,se,S,K,ce)}),xh=Wt(function(d,S,K){var se=u|w;if(K.length){var ce=Zi(K,Ir(xh));se|=x}return Li(S,se,d,K,ce)});function Mh(d,S,K){var se,ce,ye,Ee,Ie,Ce,ot=0,rt=!1,lt=!1,xt=!0;if(typeof d!="function")throw new hi(E);function _t(pt){var Ut=se,Lt=ce;return se=ce=v,ot=pt,Ee=d.apply(Lt,Ut)}function At(pt){var Ut=pt-Ce;return Ce===v||Ut>=S||Ut<0||lt&&pt-ot>=ye}function at(){var pt=is();if(At(pt))return ht(pt);Ie=Qr(at,function(Ut){var Lt=S-(Ut-Ce);return lt?Un(Lt,ye-(Ut-ot)):Lt}(pt))}function ht(pt){return Ie=v,xt&&se?_t(pt):(se=ce=v,Ee)}function jt(){var pt=is(),Ut=At(pt);if(se=arguments,ce=this,Ce=pt,Ut){if(Ie===v)return function(Lt){return ot=Lt,Ie=Qr(at,S),rt?_t(Lt):Ee}(Ce);if(lt)return Bl(Ie),Ie=Qr(at,S),_t(Ce)}return Ie===v&&(Ie=Qr(at,S)),Ee}return S=gi(S)||0,Sn(K)&&(rt=!!K.leading,ye=(lt="maxWait"in K)?Bn(gi(K.maxWait)||0,S):ye,xt="trailing"in K?!!K.trailing:xt),jt.cancel=function(){Ie!==v&&Bl(Ie),ot=0,se=Ce=ce=Ie=v},jt.flush=function(){return Ie===v?Ee:ht(is())},jt}var D0=Wt(function(d,S){return pl(d,1,S)}),L0=Wt(function(d,S,K){return pl(d,gi(S)||0,K)});function rs(d,S){if(typeof d!="function"||S!=null&&typeof S!="function")throw new hi(E);var K=function(){var se=arguments,ce=S?S.apply(this,se):se[0],ye=K.cache;if(ye.has(ce))return ye.get(ce);var Ee=d.apply(this,se);return K.cache=ye.set(ce,Ee)||ye,Ee};return K.cache=new(rs.Cache||Pi),K}function os(d){if(typeof d!="function")throw new hi(E);return function(){var S=arguments;switch(S.length){case 0:return!d.call(this);case 1:return!d.call(this,S[0]);case 2:return!d.call(this,S[0],S[1]);case 3:return!d.call(this,S[0],S[1],S[2])}return!d.apply(this,S)}}rs.Cache=Pi;var q0=s0(function(d,S){var K=(S=S.length==1&&Kt(S[0])?kn(S[0],ii(Bt())):kn(qn(S,1),ii(Bt()))).length;return Wt(function(se){for(var ce=-1,ye=Un(se.length,K);++ce<ye;)se[ce]=S[ce].call(this,se[ce]);return ni(d,this,se)})}),eu=Wt(function(d,S){var K=Zi(S,Ir(eu));return Li(d,x,v,S,K)}),_h=Wt(function(d,S){var K=Zi(S,Ir(_h));return Li(d,j,v,S,K)}),F0=qi(function(d,S){return Li(d,B,v,v,v,S)});function _i(d,S){return d===S||d!=d&&S!=S}var U0=Yo(Ea),z0=Yo(function(d,S){return d>=S}),pr=yl(function(){return arguments}())?yl:function(d){return In(d)&&wn.call(d,"callee")&&!rl.call(d,"callee")},Kt=mt.isArray,$0=wi?ii(wi):function(d){return In(d)&&Hn(d)==X};function Xn(d){return d!=null&&ss(d.length)&&!Ui(d)}function On(d){return In(d)&&Xn(d)}var er=Ld||hu,V0=Kn?ii(Kn):function(d){return In(d)&&Hn(d)==R};function tu(d){if(!In(d))return!1;var S=Hn(d);return S==Z||S==F||typeof d.message=="string"&&typeof d.name=="string"&&!eo(d)}function Ui(d){if(!Sn(d))return!1;var S=Hn(d);return S==ie||S==D||S==N||S==le}function Eh(d){return typeof d=="number"&&d==Ht(d)}function ss(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=e}function Sn(d){var S=typeof d;return d!=null&&(S=="object"||S=="function")}function In(d){return d!=null&&typeof d=="object"}var kh=Ti?ii(Ti):function(d){return In(d)&&zn(d)==Y};function Sh(d){return typeof d=="number"||In(d)&&Hn(d)==z}function eo(d){if(!In(d)||Hn(d)!=ae)return!1;var S=Ro(d);if(S===null)return!0;var K=wn.call(S,"constructor")&&S.constructor;return typeof K=="function"&&K instanceof K&&To.call(K)==Nd}var nu=zc?ii(zc):function(d){return In(d)&&Hn(d)==ke},Ah=$c?ii($c):function(d){return In(d)&&zn(d)==ge};function as(d){return typeof d=="string"||!Kt(d)&&In(d)&&Hn(d)==be}function oi(d){return typeof d=="symbol"||In(d)&&Hn(d)==je}var Tr=Vc?ii(Vc):function(d){return In(d)&&ss(d.length)&&!!Et[Hn(d)]},K0=Yo(Ia),H0=Yo(function(d,S){return d<=S});function Ih(d){if(!d)return[];if(Xn(d))return as(d)?xi(d):Gn(d);if(Ur&&d[Ur])return function(K){for(var se,ce=[];!(se=K.next()).done;)ce.push(se.value);return ce}(d[Ur]());var S=zn(d);return(S==Y?ma:S==ge?ko:Or)(d)}function zi(d){return d?(d=gi(d))===oe||d===-oe?(d<0?-1:1)*r:d==d?d:0:d===0?d:0}function Ht(d){var S=zi(d),K=S%1;return S==S?K?S-K:S:0}function Th(d){return d?cr(Ht(d),0,n):0}function gi(d){if(typeof d=="number")return d;if(oi(d))return i;if(Sn(d)){var S=typeof d.valueOf=="function"?d.valueOf():d;d=Sn(S)?S+"":S}if(typeof d!="string")return d===0?d:+d;d=Xc(d);var K=Fe.test(d);return K||Vt.test(d)?Vn(d.slice(2),K?2:8):$t.test(d)?i:+d}function Oh(d){return Ni(d,Yn(d))}function bn(d){return d==null?"":ri(d)}var W0=Sr(function(d,S){if(Jr(S)||Xn(S))Ni(S,Pn(S),d);else for(var K in S)wn.call(S,K)&&Hr(d,K,S[K])}),jh=Sr(function(d,S){Ni(S,Yn(S),d)}),us=Sr(function(d,S,K,se){Ni(S,Yn(S),d,se)}),Z0=Sr(function(d,S,K,se){Ni(S,Pn(S),d,se)}),G0=qi(xa),X0=Wt(function(d,S){d=_n(d);var K=-1,se=S.length,ce=se>2?S[2]:v;for(ce&&Wn(S[0],S[1],ce)&&(se=1);++K<se;)for(var ye=S[K],Ee=Yn(ye),Ie=-1,Ce=Ee.length;++Ie<Ce;){var ot=Ee[Ie],rt=d[ot];(rt===v||_i(rt,Mr[ot])&&!wn.call(d,ot))&&(d[ot]=ye[ot])}return d}),Y0=Wt(function(d){return d.push(v,Xl),ni(Nh,v,d)});function iu(d,S,K){var se=d==null?v:lr(d,S);return se===v?K:se}function ru(d,S){return d!=null&&Ql(d,S,e0)}var J0=Kl(function(d,S,K){S!=null&&typeof S.toString!="function"&&(S=Oo.call(S)),d[S]=K},su(Jn)),Q0=Kl(function(d,S,K){S!=null&&typeof S.toString!="function"&&(S=Oo.call(S)),wn.call(d,S)?d[S].push(K):d[S]=[K]},Bt),em=Wt(Zr);function Pn(d){return Xn(d)?cl(d):Aa(d)}function Yn(d){return Xn(d)?cl(d,!0):function(S){if(!Sn(S))return function(ye){var Ee=[];if(ye!=null)for(var Ie in _n(ye))Ee.push(Ie);return Ee}(S);var K=Jr(S),se=[];for(var ce in S)(ce!="constructor"||!K&&wn.call(S,ce))&&se.push(ce);return se}(d)}var tm=Sr(function(d,S,K){Vo(d,S,K)}),Nh=Sr(function(d,S,K,se){Vo(d,S,K,se)}),nm=qi(function(d,S){var K={};if(d==null)return K;var se=!1;S=kn(S,function(ye){return ye=Ji(ye,d),se||(se=ye.length>1),ye}),Ni(d,Ua(d),K),se&&(K=pi(K,c|l|f,u0));for(var ce=S.length;ce--;)Ra(K,S[ce]);return K}),im=qi(function(d,S){return d==null?{}:function(K,se){return Sl(K,se,function(ce,ye){return ru(K,ye)})}(d,S)});function Rh(d,S){if(d==null)return{};var K=kn(Ua(d),function(se){return[se]});return S=Bt(S),Sl(d,K,function(se,ce){return S(se,ce[0])})}var Bh=Zl(Pn),Ch=Zl(Yn);function Or(d){return d==null?[]:da(d,Pn(d))}var rm=Ar(function(d,S,K){return S=S.toLowerCase(),d+(K?Ph(S):S)});function Ph(d){return ou(bn(d).toLowerCase())}function Dh(d){return(d=bn(d))&&d.replace(et,Ed).replace(Oe,"")}var om=Ar(function(d,S,K){return d+(K?"-":"")+S.toLowerCase()}),sm=Ar(function(d,S,K){return d+(K?" ":"")+S.toLowerCase()}),am=zl("toLowerCase"),um=Ar(function(d,S,K){return d+(K?"_":"")+S.toLowerCase()}),cm=Ar(function(d,S,K){return d+(K?" ":"")+ou(S)}),lm=Ar(function(d,S,K){return d+(K?" ":"")+S.toUpperCase()}),ou=zl("toUpperCase");function Lh(d,S,K){return d=bn(d),(S=K?v:S)===v?function(se){return nt.test(se)}(d)?function(se){return se.match(ze)||[]}(d):function(se){return se.match(De)||[]}(d):d.match(S)||[]}var qh=Wt(function(d,S){try{return ni(d,v,S)}catch(K){return tu(K)?K:new sn(K)}}),hm=qi(function(d,S){return li(S,function(K){K=Ri(K),Di(d,K,Qa(d[K],d))}),d});function su(d){return function(){return d}}var fm=Vl(),pm=Vl(!0);function Jn(d){return d}function au(d){return wl(typeof d=="function"?d:pi(d,c))}var dm=Wt(function(d,S){return function(K){return Zr(K,d,S)}}),mm=Wt(function(d,S){return function(K){return Zr(d,K,S)}});function uu(d,S,K){var se=Pn(S),ce=$o(S,se);K!=null||Sn(S)&&(ce.length||!se.length)||(K=S,S=d,d=this,ce=$o(S,Pn(S)));var ye=!(Sn(K)&&"chain"in K&&!K.chain),Ee=Ui(d);return li(ce,function(Ie){var Ce=S[Ie];d[Ie]=Ce,Ee&&(d.prototype[Ie]=function(){var ot=this.__chain__;if(ye||ot){var rt=d(this.__wrapped__);return(rt.__actions__=Gn(this.__actions__)).push({func:Ce,args:arguments,thisArg:d}),rt.__chain__=ot,rt}return Ce.apply(d,Wi([this.value()],arguments))})}),d}function cu(){}var gm=La(kn),vm=La(Kc),ym=La(ca);function Fh(d){return Ka(d)?la(Ri(d)):function(S){return function(K){return lr(K,S)}}(d)}var bm=Hl(),wm=Hl(!0);function lu(){return[]}function hu(){return!1}var fu,xm=Go(function(d,S){return d+S},0),Mm=qa("ceil"),_m=Go(function(d,S){return d/S},1),Em=qa("floor"),km=Go(function(d,S){return d*S},1),Sm=qa("round"),Am=Go(function(d,S){return d-S},0);return pe.after=function(d,S){if(typeof S!="function")throw new hi(E);return d=Ht(d),function(){if(--d<1)return S.apply(this,arguments)}},pe.ary=bh,pe.assign=W0,pe.assignIn=jh,pe.assignInWith=us,pe.assignWith=Z0,pe.at=G0,pe.before=wh,pe.bind=Qa,pe.bindAll=hm,pe.bindKey=xh,pe.castArray=function(){if(!arguments.length)return[];var d=arguments[0];return Kt(d)?d:[d]},pe.chain=gh,pe.chunk=function(d,S,K){S=(K?Wn(d,S,K):S===v)?1:Bn(Ht(S),0);var se=d==null?0:d.length;if(!se||S<1)return[];for(var ce=0,ye=0,Ee=mt(Po(se/S));ce<se;)Ee[ye++]=di(d,ce,ce+=S);return Ee},pe.compact=function(d){for(var S=-1,K=d==null?0:d.length,se=0,ce=[];++S<K;){var ye=d[S];ye&&(ce[se++]=ye)}return ce},pe.concat=function(){var d=arguments.length;if(!d)return[];for(var S=mt(d-1),K=arguments[0],se=d;se--;)S[se-1]=arguments[se];return Wi(Kt(K)?Gn(K):[K],qn(S,1))},pe.cond=function(d){var S=d==null?0:d.length,K=Bt();return d=S?kn(d,function(se){if(typeof se[1]!="function")throw new hi(E);return[K(se[0]),se[1]]}):[],Wt(function(se){for(var ce=-1;++ce<S;){var ye=d[ce];if(ni(ye[0],this,se))return ni(ye[1],this,se)}})},pe.conforms=function(d){return function(S){var K=Pn(S);return function(se){return fl(se,S,K)}}(pi(d,c))},pe.constant=su,pe.countBy=T0,pe.create=function(d,S){var K=kr(d);return S==null?K:hl(K,S)},pe.curry=function d(S,K,se){var ce=Li(S,k,v,v,v,v,v,K=se?v:K);return ce.placeholder=d.placeholder,ce},pe.curryRight=function d(S,K,se){var ce=Li(S,A,v,v,v,v,v,K=se?v:K);return ce.placeholder=d.placeholder,ce},pe.debounce=Mh,pe.defaults=X0,pe.defaultsDeep=Y0,pe.defer=D0,pe.delay=L0,pe.difference=h0,pe.differenceBy=f0,pe.differenceWith=p0,pe.drop=function(d,S,K){var se=d==null?0:d.length;return se?di(d,(S=K||S===v?1:Ht(S))<0?0:S,se):[]},pe.dropRight=function(d,S,K){var se=d==null?0:d.length;return se?di(d,0,(S=se-(S=K||S===v?1:Ht(S)))<0?0:S):[]},pe.dropRightWhile=function(d,S){return d&&d.length?Ho(d,Bt(S,3),!0,!0):[]},pe.dropWhile=function(d,S){return d&&d.length?Ho(d,Bt(S,3),!0):[]},pe.fill=function(d,S,K,se){var ce=d==null?0:d.length;return ce?(K&&typeof K!="number"&&Wn(d,S,K)&&(K=0,se=ce),function(ye,Ee,Ie,Ce){var ot=ye.length;for((Ie=Ht(Ie))<0&&(Ie=-Ie>ot?0:ot+Ie),(Ce=Ce===v||Ce>ot?ot:Ht(Ce))<0&&(Ce+=ot),Ce=Ie>Ce?0:Th(Ce);Ie<Ce;)ye[Ie++]=Ee;return ye}(d,S,K,se)):[]},pe.filter=function(d,S){return(Kt(d)?Hi:ml)(d,Bt(S,3))},pe.flatMap=function(d,S){return qn(ns(d,S),1)},pe.flatMapDeep=function(d,S){return qn(ns(d,S),oe)},pe.flatMapDepth=function(d,S,K){return K=K===v?1:Ht(K),qn(ns(d,S),K)},pe.flatten=fh,pe.flattenDeep=function(d){return d!=null&&d.length?qn(d,oe):[]},pe.flattenDepth=function(d,S){return d!=null&&d.length?qn(d,S=S===v?1:Ht(S)):[]},pe.flip=function(d){return Li(d,$)},pe.flow=fm,pe.flowRight=pm,pe.fromPairs=function(d){for(var S=-1,K=d==null?0:d.length,se={};++S<K;){var ce=d[S];se[ce[0]]=ce[1]}return se},pe.functions=function(d){return d==null?[]:$o(d,Pn(d))},pe.functionsIn=function(d){return d==null?[]:$o(d,Yn(d))},pe.groupBy=N0,pe.initial=function(d){return d!=null&&d.length?di(d,0,-1):[]},pe.intersection=d0,pe.intersectionBy=m0,pe.intersectionWith=g0,pe.invert=J0,pe.invertBy=Q0,pe.invokeMap=R0,pe.iteratee=au,pe.keyBy=B0,pe.keys=Pn,pe.keysIn=Yn,pe.map=ns,pe.mapKeys=function(d,S){var K={};return S=Bt(S,3),ji(d,function(se,ce,ye){Di(K,S(se,ce,ye),se)}),K},pe.mapValues=function(d,S){var K={};return S=Bt(S,3),ji(d,function(se,ce,ye){Di(K,ce,S(se,ce,ye))}),K},pe.matches=function(d){return Ml(pi(d,c))},pe.matchesProperty=function(d,S){return _l(d,pi(S,c))},pe.memoize=rs,pe.merge=tm,pe.mergeWith=Nh,pe.method=dm,pe.methodOf=mm,pe.mixin=uu,pe.negate=os,pe.nthArg=function(d){return d=Ht(d),Wt(function(S){return El(S,d)})},pe.omit=nm,pe.omitBy=function(d,S){return Rh(d,os(Bt(S)))},pe.once=function(d){return wh(2,d)},pe.orderBy=function(d,S,K,se){return d==null?[]:(Kt(S)||(S=S==null?[]:[S]),Kt(K=se?v:K)||(K=K==null?[]:[K]),kl(d,S,K))},pe.over=gm,pe.overArgs=q0,pe.overEvery=vm,pe.overSome=ym,pe.partial=eu,pe.partialRight=_h,pe.partition=C0,pe.pick=im,pe.pickBy=Rh,pe.property=Fh,pe.propertyOf=function(d){return function(S){return d==null?v:lr(d,S)}},pe.pull=v0,pe.pullAll=dh,pe.pullAllBy=function(d,S,K){return d&&d.length&&S&&S.length?Ta(d,S,Bt(K,2)):d},pe.pullAllWith=function(d,S,K){return d&&d.length&&S&&S.length?Ta(d,S,v,K):d},pe.pullAt=y0,pe.range=bm,pe.rangeRight=wm,pe.rearg=F0,pe.reject=function(d,S){return(Kt(d)?Hi:ml)(d,os(Bt(S,3)))},pe.remove=function(d,S){var K=[];if(!d||!d.length)return K;var se=-1,ce=[],ye=d.length;for(S=Bt(S,3);++se<ye;){var Ee=d[se];S(Ee,se,d)&&(K.push(Ee),ce.push(se))}return Al(d,ce),K},pe.rest=function(d,S){if(typeof d!="function")throw new hi(E);return Wt(d,S=S===v?S:Ht(S))},pe.reverse=Ya,pe.sampleSize=function(d,S,K){return S=(K?Wn(d,S,K):S===v)?1:Ht(S),(Kt(d)?Gd:n0)(d,S)},pe.set=function(d,S,K){return d==null?d:Xr(d,S,K)},pe.setWith=function(d,S,K,se){return se=typeof se=="function"?se:v,d==null?d:Xr(d,S,K,se)},pe.shuffle=function(d){return(Kt(d)?Xd:r0)(d)},pe.slice=function(d,S,K){var se=d==null?0:d.length;return se?(K&&typeof K!="number"&&Wn(d,S,K)?(S=0,K=se):(S=S==null?0:Ht(S),K=K===v?se:Ht(K)),di(d,S,K)):[]},pe.sortBy=P0,pe.sortedUniq=function(d){return d&&d.length?Tl(d):[]},pe.sortedUniqBy=function(d,S){return d&&d.length?Tl(d,Bt(S,2)):[]},pe.split=function(d,S,K){return K&&typeof K!="number"&&Wn(d,S,K)&&(S=K=v),(K=K===v?n:K>>>0)?(d=bn(d))&&(typeof S=="string"||S!=null&&!nu(S))&&!(S=ri(S))&&wr(d)?Qi(xi(d),0,K):d.split(S,K):[]},pe.spread=function(d,S){if(typeof d!="function")throw new hi(E);return S=S==null?0:Bn(Ht(S),0),Wt(function(K){var se=K[S],ce=Qi(K,0,S);return se&&Wi(ce,se),ni(d,this,ce)})},pe.tail=function(d){var S=d==null?0:d.length;return S?di(d,1,S):[]},pe.take=function(d,S,K){return d&&d.length?di(d,0,(S=K||S===v?1:Ht(S))<0?0:S):[]},pe.takeRight=function(d,S,K){var se=d==null?0:d.length;return se?di(d,(S=se-(S=K||S===v?1:Ht(S)))<0?0:S,se):[]},pe.takeRightWhile=function(d,S){return d&&d.length?Ho(d,Bt(S,3),!1,!0):[]},pe.takeWhile=function(d,S){return d&&d.length?Ho(d,Bt(S,3)):[]},pe.tap=function(d,S){return S(d),d},pe.throttle=function(d,S,K){var se=!0,ce=!0;if(typeof d!="function")throw new hi(E);return Sn(K)&&(se="leading"in K?!!K.leading:se,ce="trailing"in K?!!K.trailing:ce),Mh(d,S,{leading:se,maxWait:S,trailing:ce})},pe.thru=ts,pe.toArray=Ih,pe.toPairs=Bh,pe.toPairsIn=Ch,pe.toPath=function(d){return Kt(d)?kn(d,Ri):oi(d)?[d]:Gn(uh(bn(d)))},pe.toPlainObject=Oh,pe.transform=function(d,S,K){var se=Kt(d),ce=se||er(d)||Tr(d);if(S=Bt(S,4),K==null){var ye=d&&d.constructor;K=ce?se?new ye:[]:Sn(d)&&Ui(ye)?kr(Ro(d)):{}}return(ce?li:ji)(d,function(Ee,Ie,Ce){return S(K,Ee,Ie,Ce)}),K},pe.unary=function(d){return bh(d,1)},pe.union=b0,pe.unionBy=w0,pe.unionWith=x0,pe.uniq=function(d){return d&&d.length?Yi(d):[]},pe.uniqBy=function(d,S){return d&&d.length?Yi(d,Bt(S,2)):[]},pe.uniqWith=function(d,S){return S=typeof S=="function"?S:v,d&&d.length?Yi(d,v,S):[]},pe.unset=function(d,S){return d==null||Ra(d,S)},pe.unzip=Ja,pe.unzipWith=mh,pe.update=function(d,S,K){return d==null?d:jl(d,S,Pa(K))},pe.updateWith=function(d,S,K,se){return se=typeof se=="function"?se:v,d==null?d:jl(d,S,Pa(K),se)},pe.values=Or,pe.valuesIn=function(d){return d==null?[]:da(d,Yn(d))},pe.without=M0,pe.words=Lh,pe.wrap=function(d,S){return eu(Pa(S),d)},pe.xor=_0,pe.xorBy=E0,pe.xorWith=k0,pe.zip=S0,pe.zipObject=function(d,S){return Rl(d||[],S||[],Hr)},pe.zipObjectDeep=function(d,S){return Rl(d||[],S||[],Xr)},pe.zipWith=A0,pe.entries=Bh,pe.entriesIn=Ch,pe.extend=jh,pe.extendWith=us,uu(pe,pe),pe.add=xm,pe.attempt=qh,pe.camelCase=rm,pe.capitalize=Ph,pe.ceil=Mm,pe.clamp=function(d,S,K){return K===v&&(K=S,S=v),K!==v&&(K=(K=gi(K))==K?K:0),S!==v&&(S=(S=gi(S))==S?S:0),cr(gi(d),S,K)},pe.clone=function(d){return pi(d,f)},pe.cloneDeep=function(d){return pi(d,c|f)},pe.cloneDeepWith=function(d,S){return pi(d,c|f,S=typeof S=="function"?S:v)},pe.cloneWith=function(d,S){return pi(d,f,S=typeof S=="function"?S:v)},pe.conformsTo=function(d,S){return S==null||fl(d,S,Pn(S))},pe.deburr=Dh,pe.defaultTo=function(d,S){return d==null||d!=d?S:d},pe.divide=_m,pe.endsWith=function(d,S,K){d=bn(d),S=ri(S);var se=d.length,ce=K=K===v?se:cr(Ht(K),0,se);return(K-=S.length)>=0&&d.slice(K,ce)==S},pe.eq=_i,pe.escape=function(d){return(d=bn(d))&&Ve.test(d)?d.replace(Ct,kd):d},pe.escapeRegExp=function(d){return(d=bn(d))&&Ne.test(d)?d.replace(St,"\\$&"):d},pe.every=function(d,S,K){var se=Kt(d)?Kc:Jd;return K&&Wn(d,S,K)&&(S=v),se(d,Bt(S,3))},pe.find=O0,pe.findIndex=lh,pe.findKey=function(d,S){return Hc(d,Bt(S,3),ji)},pe.findLast=j0,pe.findLastIndex=hh,pe.findLastKey=function(d,S){return Hc(d,Bt(S,3),_a)},pe.floor=Em,pe.forEach=vh,pe.forEachRight=yh,pe.forIn=function(d,S){return d==null?d:Ma(d,Bt(S,3),Yn)},pe.forInRight=function(d,S){return d==null?d:gl(d,Bt(S,3),Yn)},pe.forOwn=function(d,S){return d&&ji(d,Bt(S,3))},pe.forOwnRight=function(d,S){return d&&_a(d,Bt(S,3))},pe.get=iu,pe.gt=U0,pe.gte=z0,pe.has=function(d,S){return d!=null&&Ql(d,S,Qd)},pe.hasIn=ru,pe.head=ph,pe.identity=Jn,pe.includes=function(d,S,K,se){d=Xn(d)?d:Or(d),K=K&&!se?Ht(K):0;var ce=d.length;return K<0&&(K=Bn(ce+K,0)),as(d)?K<=ce&&d.indexOf(S,K)>-1:!!ce&&br(d,S,K)>-1},pe.indexOf=function(d,S,K){var se=d==null?0:d.length;if(!se)return-1;var ce=K==null?0:Ht(K);return ce<0&&(ce=Bn(se+ce,0)),br(d,S,ce)},pe.inRange=function(d,S,K){return S=zi(S),K===v?(K=S,S=0):K=zi(K),function(se,ce,ye){return se>=Un(ce,ye)&&se<Bn(ce,ye)}(d=gi(d),S,K)},pe.invoke=em,pe.isArguments=pr,pe.isArray=Kt,pe.isArrayBuffer=$0,pe.isArrayLike=Xn,pe.isArrayLikeObject=On,pe.isBoolean=function(d){return d===!0||d===!1||In(d)&&Hn(d)==O},pe.isBuffer=er,pe.isDate=V0,pe.isElement=function(d){return In(d)&&d.nodeType===1&&!eo(d)},pe.isEmpty=function(d){if(d==null)return!0;if(Xn(d)&&(Kt(d)||typeof d=="string"||typeof d.splice=="function"||er(d)||Tr(d)||pr(d)))return!d.length;var S=zn(d);if(S==Y||S==ge)return!d.size;if(Jr(d))return!Aa(d).length;for(var K in d)if(wn.call(d,K))return!1;return!0},pe.isEqual=function(d,S){return Gr(d,S)},pe.isEqualWith=function(d,S,K){var se=(K=typeof K=="function"?K:v)?K(d,S):v;return se===v?Gr(d,S,v,K):!!se},pe.isError=tu,pe.isFinite=function(d){return typeof d=="number"&&sl(d)},pe.isFunction=Ui,pe.isInteger=Eh,pe.isLength=ss,pe.isMap=kh,pe.isMatch=function(d,S){return d===S||Sa(d,S,$a(S))},pe.isMatchWith=function(d,S,K){return K=typeof K=="function"?K:v,Sa(d,S,$a(S),K)},pe.isNaN=function(d){return Sh(d)&&d!=+d},pe.isNative=function(d){if(l0(d))throw new sn("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return bl(d)},pe.isNil=function(d){return d==null},pe.isNull=function(d){return d===null},pe.isNumber=Sh,pe.isObject=Sn,pe.isObjectLike=In,pe.isPlainObject=eo,pe.isRegExp=nu,pe.isSafeInteger=function(d){return Eh(d)&&d>=-e&&d<=e},pe.isSet=Ah,pe.isString=as,pe.isSymbol=oi,pe.isTypedArray=Tr,pe.isUndefined=function(d){return d===v},pe.isWeakMap=function(d){return In(d)&&zn(d)==Ae},pe.isWeakSet=function(d){return In(d)&&Hn(d)=="[object WeakSet]"},pe.join=function(d,S){return d==null?"":qd.call(d,S)},pe.kebabCase=om,pe.last=mi,pe.lastIndexOf=function(d,S,K){var se=d==null?0:d.length;if(!se)return-1;var ce=se;return K!==v&&(ce=(ce=Ht(K))<0?Bn(se+ce,0):Un(ce,se-1)),S==S?function(ye,Ee,Ie){for(var Ce=Ie+1;Ce--;)if(ye[Ce]===Ee)return Ce;return Ce}(d,S,ce):Eo(d,Wc,ce,!0)},pe.lowerCase=sm,pe.lowerFirst=am,pe.lt=K0,pe.lte=H0,pe.max=function(d){return d&&d.length?zo(d,Jn,Ea):v},pe.maxBy=function(d,S){return d&&d.length?zo(d,Bt(S,2),Ea):v},pe.mean=function(d){return Zc(d,Jn)},pe.meanBy=function(d,S){return Zc(d,Bt(S,2))},pe.min=function(d){return d&&d.length?zo(d,Jn,Ia):v},pe.minBy=function(d,S){return d&&d.length?zo(d,Bt(S,2),Ia):v},pe.stubArray=lu,pe.stubFalse=hu,pe.stubObject=function(){return{}},pe.stubString=function(){return""},pe.stubTrue=function(){return!0},pe.multiply=km,pe.nth=function(d,S){return d&&d.length?El(d,Ht(S)):v},pe.noConflict=function(){return dt._===this&&(dt._=Rd),this},pe.noop=cu,pe.now=is,pe.pad=function(d,S,K){d=bn(d);var se=(S=Ht(S))?xr(d):0;if(!S||se>=S)return d;var ce=(S-se)/2;return Xo(Do(ce),K)+d+Xo(Po(ce),K)},pe.padEnd=function(d,S,K){d=bn(d);var se=(S=Ht(S))?xr(d):0;return S&&se<S?d+Xo(S-se,K):d},pe.padStart=function(d,S,K){d=bn(d);var se=(S=Ht(S))?xr(d):0;return S&&se<S?Xo(S-se,K)+d:d},pe.parseInt=function(d,S,K){return K||S==null?S=0:S&&(S=+S),zd(bn(d).replace(Ze,""),S||0)},pe.random=function(d,S,K){if(K&&typeof K!="boolean"&&Wn(d,S,K)&&(S=K=v),K===v&&(typeof S=="boolean"?(K=S,S=v):typeof d=="boolean"&&(K=d,d=v)),d===v&&S===v?(d=0,S=1):(d=zi(d),S===v?(S=d,d=0):S=zi(S)),d>S){var se=d;d=S,S=se}if(K||d%1||S%1){var ce=al();return Un(d+ce*(S-d+Yt("1e-"+((ce+"").length-1))),S)}return Oa(d,S)},pe.reduce=function(d,S,K){var se=Kt(d)?ua:Gc,ce=arguments.length<3;return se(d,Bt(S,4),K,ce,Xi)},pe.reduceRight=function(d,S,K){var se=Kt(d)?xd:Gc,ce=arguments.length<3;return se(d,Bt(S,4),K,ce,dl)},pe.repeat=function(d,S,K){return S=(K?Wn(d,S,K):S===v)?1:Ht(S),ja(bn(d),S)},pe.replace=function(){var d=arguments,S=bn(d[0]);return d.length<3?S:S.replace(d[1],d[2])},pe.result=function(d,S,K){var se=-1,ce=(S=Ji(S,d)).length;for(ce||(ce=1,d=v);++se<ce;){var ye=d==null?v:d[Ri(S[se])];ye===v&&(se=ce,ye=K),d=Ui(ye)?ye.call(d):ye}return d},pe.round=Sm,pe.runInContext=$e,pe.sample=function(d){return(Kt(d)?ll:t0)(d)},pe.size=function(d){if(d==null)return 0;if(Xn(d))return as(d)?xr(d):d.length;var S=zn(d);return S==Y||S==ge?d.size:Aa(d).length},pe.snakeCase=um,pe.some=function(d,S,K){var se=Kt(d)?ca:o0;return K&&Wn(d,S,K)&&(S=v),se(d,Bt(S,3))},pe.sortedIndex=function(d,S){return Ko(d,S)},pe.sortedIndexBy=function(d,S,K){return Na(d,S,Bt(K,2))},pe.sortedIndexOf=function(d,S){var K=d==null?0:d.length;if(K){var se=Ko(d,S);if(se<K&&_i(d[se],S))return se}return-1},pe.sortedLastIndex=function(d,S){return Ko(d,S,!0)},pe.sortedLastIndexBy=function(d,S,K){return Na(d,S,Bt(K,2),!0)},pe.sortedLastIndexOf=function(d,S){if(d!=null&&d.length){var K=Ko(d,S,!0)-1;if(_i(d[K],S))return K}return-1},pe.startCase=cm,pe.startsWith=function(d,S,K){return d=bn(d),K=K==null?0:cr(Ht(K),0,d.length),S=ri(S),d.slice(K,K+S.length)==S},pe.subtract=Am,pe.sum=function(d){return d&&d.length?fa(d,Jn):0},pe.sumBy=function(d,S){return d&&d.length?fa(d,Bt(S,2)):0},pe.template=function(d,S,K){var se=pe.templateSettings;K&&Wn(d,S,K)&&(S=v),d=bn(d),S=us({},S,se,Gl);var ce,ye,Ee=us({},S.imports,se.imports,Gl),Ie=Pn(Ee),Ce=da(Ee,Ie),ot=0,rt=S.interpolate||Tt,lt="__p += '",xt=ga((S.escape||Tt).source+"|"+rt.source+"|"+(rt===Ke?qe:Tt).source+"|"+(S.evaluate||Tt).source+"|$","g"),_t="//# sourceURL="+(wn.call(S,"sourceURL")?(S.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Mt+"]")+`
|
|
78
|
+
`;d.replace(xt,function(ht,jt,pt,Ut,Lt,yn){return pt||(pt=Ut),lt+=d.slice(ot,yn).replace(Rt,Sd),jt&&(ce=!0,lt+=`' +
|
|
79
|
+
__e(`+jt+`) +
|
|
80
|
+
'`),Lt&&(ye=!0,lt+=`';
|
|
81
|
+
`+Lt+`;
|
|
82
|
+
__p += '`),pt&&(lt+=`' +
|
|
83
|
+
((__t = (`+pt+`)) == null ? '' : __t) +
|
|
84
|
+
'`),ot=yn+ht.length,ht}),lt+=`';
|
|
85
|
+
`;var At=wn.call(S,"variable")&&S.variable;if(At){if(Qe.test(At))throw new sn("Invalid `variable` option passed into `_.template`")}else lt=`with (obj) {
|
|
86
|
+
`+lt+`
|
|
87
|
+
}
|
|
88
|
+
`;lt=(ye?lt.replace(Te,""):lt).replace(ft,"$1").replace(Se,"$1;"),lt="function("+(At||"obj")+`) {
|
|
89
|
+
`+(At?"":`obj || (obj = {});
|
|
90
|
+
`)+"var __t, __p = ''"+(ce?", __e = _.escape":"")+(ye?`, __j = Array.prototype.join;
|
|
91
|
+
function print() { __p += __j.call(arguments, '') }
|
|
92
|
+
`:`;
|
|
93
|
+
`)+lt+`return __p
|
|
94
|
+
}`;var at=qh(function(){return Rn(Ie,_t+"return "+lt).apply(v,Ce)});if(at.source=lt,tu(at))throw at;return at},pe.times=function(d,S){if((d=Ht(d))<1||d>e)return[];var K=n,se=Un(d,n);S=Bt(S),d-=n;for(var ce=pa(se,S);++K<d;)S(K);return ce},pe.toFinite=zi,pe.toInteger=Ht,pe.toLength=Th,pe.toLower=function(d){return bn(d).toLowerCase()},pe.toNumber=gi,pe.toSafeInteger=function(d){return d?cr(Ht(d),-e,e):d===0?d:0},pe.toString=bn,pe.toUpper=function(d){return bn(d).toUpperCase()},pe.trim=function(d,S,K){if((d=bn(d))&&(K||S===v))return Xc(d);if(!d||!(S=ri(S)))return d;var se=xi(d),ce=xi(S);return Qi(se,Yc(se,ce),Jc(se,ce)+1).join("")},pe.trimEnd=function(d,S,K){if((d=bn(d))&&(K||S===v))return d.slice(0,el(d)+1);if(!d||!(S=ri(S)))return d;var se=xi(d);return Qi(se,0,Jc(se,xi(S))+1).join("")},pe.trimStart=function(d,S,K){if((d=bn(d))&&(K||S===v))return d.replace(Ze,"");if(!d||!(S=ri(S)))return d;var se=xi(d);return Qi(se,Yc(se,xi(S))).join("")},pe.truncate=function(d,S){var K=30,se="...";if(Sn(S)){var ce="separator"in S?S.separator:ce;K="length"in S?Ht(S.length):K,se="omission"in S?ri(S.omission):se}var ye=(d=bn(d)).length;if(wr(d)){var Ee=xi(d);ye=Ee.length}if(K>=ye)return d;var Ie=K-xr(se);if(Ie<1)return se;var Ce=Ee?Qi(Ee,0,Ie).join(""):d.slice(0,Ie);if(ce===v)return Ce+se;if(Ee&&(Ie+=Ce.length-Ie),nu(ce)){if(d.slice(Ie).search(ce)){var ot,rt=Ce;for(ce.global||(ce=ga(ce.source,bn(Je.exec(ce))+"g")),ce.lastIndex=0;ot=ce.exec(rt);)var lt=ot.index;Ce=Ce.slice(0,lt===v?Ie:lt)}}else if(d.indexOf(ri(ce),Ie)!=Ie){var xt=Ce.lastIndexOf(ce);xt>-1&&(Ce=Ce.slice(0,xt))}return Ce+se},pe.unescape=function(d){return(d=bn(d))&&Pe.test(d)?d.replace(Ge,Id):d},pe.uniqueId=function(d){var S=++jd;return bn(d)+S},pe.upperCase=lm,pe.upperFirst=ou,pe.each=vh,pe.eachRight=yh,pe.first=ph,uu(pe,(fu={},ji(pe,function(d,S){wn.call(pe.prototype,S)||(fu[S]=d)}),fu),{chain:!1}),pe.VERSION="4.17.21",li(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){pe[d].placeholder=pe}),li(["drop","take"],function(d,S){Qt.prototype[d]=function(K){K=K===v?1:Bn(Ht(K),0);var se=this.__filtered__&&!S?new Qt(this):this.clone();return se.__filtered__?se.__takeCount__=Un(K,se.__takeCount__):se.__views__.push({size:Un(K,n),type:d+(se.__dir__<0?"Right":"")}),se},Qt.prototype[d+"Right"]=function(K){return this.reverse()[d](K).reverse()}}),li(["filter","map","takeWhile"],function(d,S){var K=S+1,se=K==1||K==3;Qt.prototype[d]=function(ce){var ye=this.clone();return ye.__iteratees__.push({iteratee:Bt(ce,3),type:K}),ye.__filtered__=ye.__filtered__||se,ye}}),li(["head","last"],function(d,S){var K="take"+(S?"Right":"");Qt.prototype[d]=function(){return this[K](1).value()[0]}}),li(["initial","tail"],function(d,S){var K="drop"+(S?"":"Right");Qt.prototype[d]=function(){return this.__filtered__?new Qt(this):this[K](1)}}),Qt.prototype.compact=function(){return this.filter(Jn)},Qt.prototype.find=function(d){return this.filter(d).head()},Qt.prototype.findLast=function(d){return this.reverse().find(d)},Qt.prototype.invokeMap=Wt(function(d,S){return typeof d=="function"?new Qt(this):this.map(function(K){return Zr(K,d,S)})}),Qt.prototype.reject=function(d){return this.filter(os(Bt(d)))},Qt.prototype.slice=function(d,S){d=Ht(d);var K=this;return K.__filtered__&&(d>0||S<0)?new Qt(K):(d<0?K=K.takeRight(-d):d&&(K=K.drop(d)),S!==v&&(K=(S=Ht(S))<0?K.dropRight(-S):K.take(S-d)),K)},Qt.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},Qt.prototype.toArray=function(){return this.take(n)},ji(Qt.prototype,function(d,S){var K=/^(?:filter|find|map|reject)|While$/.test(S),se=/^(?:head|last)$/.test(S),ce=pe[se?"take"+(S=="last"?"Right":""):S],ye=se||/^find/.test(S);ce&&(pe.prototype[S]=function(){var Ee=this.__wrapped__,Ie=se?[1]:arguments,Ce=Ee instanceof Qt,ot=Ie[0],rt=Ce||Kt(Ee),lt=function(jt){var pt=ce.apply(pe,Wi([jt],Ie));return se&&xt?pt[0]:pt};rt&&K&&typeof ot=="function"&&ot.length!=1&&(Ce=rt=!1);var xt=this.__chain__,_t=!!this.__actions__.length,At=ye&&!xt,at=Ce&&!_t;if(!ye&&rt){Ee=at?Ee:new Qt(this);var ht=d.apply(Ee,Ie);return ht.__actions__.push({func:ts,args:[lt],thisArg:v}),new fi(ht,xt)}return At&&at?d.apply(this,Ie):(ht=this.thru(lt),At?se?ht.value()[0]:ht.value():ht)})}),li(["pop","push","shift","sort","splice","unshift"],function(d){var S=Ao[d],K=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",se=/^(?:pop|shift)$/.test(d);pe.prototype[d]=function(){var ce=arguments;if(se&&!this.__chain__){var ye=this.value();return S.apply(Kt(ye)?ye:[],ce)}return this[K](function(Ee){return S.apply(Kt(Ee)?Ee:[],ce)})}}),ji(Qt.prototype,function(d,S){var K=pe[S];if(K){var se=K.name+"";wn.call(Er,se)||(Er[se]=[]),Er[se].push({name:S,func:K})}}),Er[Zo(v,w).name]=[{name:"wrapper",func:v}],Qt.prototype.clone=function(){var d=new Qt(this.__wrapped__);return d.__actions__=Gn(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=Gn(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=Gn(this.__views__),d},Qt.prototype.reverse=function(){if(this.__filtered__){var d=new Qt(this);d.__dir__=-1,d.__filtered__=!0}else(d=this.clone()).__dir__*=-1;return d},Qt.prototype.value=function(){var d=this.__wrapped__.value(),S=this.__dir__,K=Kt(d),se=S<0,ce=K?d.length:0,ye=function(yn,kt,Pt){for(var Cn=-1,jn=Pt.length;++Cn<jn;){var Zn=Pt[Cn],En=Zn.size;switch(Zn.type){case"drop":yn+=En;break;case"dropRight":kt-=En;break;case"take":kt=Un(kt,yn+En);break;case"takeRight":yn=Bn(yn,kt-En)}}return{start:yn,end:kt}}(0,ce,this.__views__),Ee=ye.start,Ie=ye.end,Ce=Ie-Ee,ot=se?Ie:Ee-1,rt=this.__iteratees__,lt=rt.length,xt=0,_t=Un(Ce,this.__takeCount__);if(!K||!se&&ce==Ce&&_t==Ce)return Nl(d,this.__actions__);var At=[];e:for(;Ce--&&xt<_t;){for(var at=-1,ht=d[ot+=S];++at<lt;){var jt=rt[at],pt=jt.iteratee,Ut=jt.type,Lt=pt(ht);if(Ut==2)ht=Lt;else if(!Lt){if(Ut==1)continue e;break e}}At[xt++]=ht}return At},pe.prototype.at=I0,pe.prototype.chain=function(){return gh(this)},pe.prototype.commit=function(){return new fi(this.value(),this.__chain__)},pe.prototype.next=function(){this.__values__===v&&(this.__values__=Ih(this.value()));var d=this.__index__>=this.__values__.length;return{done:d,value:d?v:this.__values__[this.__index__++]}},pe.prototype.plant=function(d){for(var S,K=this;K instanceof Fo;){var se=ch(K);se.__index__=0,se.__values__=v,S?ce.__wrapped__=se:S=se;var ce=se;K=K.__wrapped__}return ce.__wrapped__=d,S},pe.prototype.reverse=function(){var d=this.__wrapped__;if(d instanceof Qt){var S=d;return this.__actions__.length&&(S=new Qt(this)),(S=S.reverse()).__actions__.push({func:ts,args:[Ya],thisArg:v}),new fi(S,this.__chain__)}return this.thru(Ya)},pe.prototype.toJSON=pe.prototype.valueOf=pe.prototype.value=function(){return Nl(this.__wrapped__,this.__actions__)},pe.prototype.first=pe.prototype.head,Ur&&(pe.prototype[Ur]=function(){return this}),pe}();dt._=So,(M=(function(){return So}).call(_,y,_,H))===v||(H.exports=M)}).call(this)},2318:(H,_,y)=>{var M=y(5717),v=y(3349),m=y(9509).Buffer,E=new Array(16);function s(){v.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function p(h,u){return h<<u|h>>>32-u}function c(h,u,w,b,k,A,x){return p(h+(u&w|~u&b)+k+A|0,x)+u|0}function l(h,u,w,b,k,A,x){return p(h+(u&b|w&~b)+k+A|0,x)+u|0}function f(h,u,w,b,k,A,x){return p(h+(u^w^b)+k+A|0,x)+u|0}function g(h,u,w,b,k,A,x){return p(h+(w^(u|~b))+k+A|0,x)+u|0}M(s,v),s.prototype._update=function(){for(var h=E,u=0;u<16;++u)h[u]=this._block.readInt32LE(4*u);var w=this._a,b=this._b,k=this._c,A=this._d;w=c(w,b,k,A,h[0],3614090360,7),A=c(A,w,b,k,h[1],3905402710,12),k=c(k,A,w,b,h[2],606105819,17),b=c(b,k,A,w,h[3],3250441966,22),w=c(w,b,k,A,h[4],4118548399,7),A=c(A,w,b,k,h[5],1200080426,12),k=c(k,A,w,b,h[6],2821735955,17),b=c(b,k,A,w,h[7],4249261313,22),w=c(w,b,k,A,h[8],1770035416,7),A=c(A,w,b,k,h[9],2336552879,12),k=c(k,A,w,b,h[10],4294925233,17),b=c(b,k,A,w,h[11],2304563134,22),w=c(w,b,k,A,h[12],1804603682,7),A=c(A,w,b,k,h[13],4254626195,12),k=c(k,A,w,b,h[14],2792965006,17),w=l(w,b=c(b,k,A,w,h[15],1236535329,22),k,A,h[1],4129170786,5),A=l(A,w,b,k,h[6],3225465664,9),k=l(k,A,w,b,h[11],643717713,14),b=l(b,k,A,w,h[0],3921069994,20),w=l(w,b,k,A,h[5],3593408605,5),A=l(A,w,b,k,h[10],38016083,9),k=l(k,A,w,b,h[15],3634488961,14),b=l(b,k,A,w,h[4],3889429448,20),w=l(w,b,k,A,h[9],568446438,5),A=l(A,w,b,k,h[14],3275163606,9),k=l(k,A,w,b,h[3],4107603335,14),b=l(b,k,A,w,h[8],1163531501,20),w=l(w,b,k,A,h[13],2850285829,5),A=l(A,w,b,k,h[2],4243563512,9),k=l(k,A,w,b,h[7],1735328473,14),w=f(w,b=l(b,k,A,w,h[12],2368359562,20),k,A,h[5],4294588738,4),A=f(A,w,b,k,h[8],2272392833,11),k=f(k,A,w,b,h[11],1839030562,16),b=f(b,k,A,w,h[14],4259657740,23),w=f(w,b,k,A,h[1],2763975236,4),A=f(A,w,b,k,h[4],1272893353,11),k=f(k,A,w,b,h[7],4139469664,16),b=f(b,k,A,w,h[10],3200236656,23),w=f(w,b,k,A,h[13],681279174,4),A=f(A,w,b,k,h[0],3936430074,11),k=f(k,A,w,b,h[3],3572445317,16),b=f(b,k,A,w,h[6],76029189,23),w=f(w,b,k,A,h[9],3654602809,4),A=f(A,w,b,k,h[12],3873151461,11),k=f(k,A,w,b,h[15],530742520,16),w=g(w,b=f(b,k,A,w,h[2],3299628645,23),k,A,h[0],4096336452,6),A=g(A,w,b,k,h[7],1126891415,10),k=g(k,A,w,b,h[14],2878612391,15),b=g(b,k,A,w,h[5],4237533241,21),w=g(w,b,k,A,h[12],1700485571,6),A=g(A,w,b,k,h[3],2399980690,10),k=g(k,A,w,b,h[10],4293915773,15),b=g(b,k,A,w,h[1],2240044497,21),w=g(w,b,k,A,h[8],1873313359,6),A=g(A,w,b,k,h[15],4264355552,10),k=g(k,A,w,b,h[6],2734768916,15),b=g(b,k,A,w,h[13],1309151649,21),w=g(w,b,k,A,h[4],4149444226,6),A=g(A,w,b,k,h[11],3174756917,10),k=g(k,A,w,b,h[2],718787259,15),b=g(b,k,A,w,h[9],3951481745,21),this._a=this._a+w|0,this._b=this._b+b|0,this._c=this._c+k|0,this._d=this._d+A|0},s.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 h=m.allocUnsafe(16);return h.writeInt32LE(this._a,0),h.writeInt32LE(this._b,4),h.writeInt32LE(this._c,8),h.writeInt32LE(this._d,12),h},H.exports=s},3047:(H,_,y)=>{var M=y(6240),v=y(9931);function m(E){this.rand=E||new v.Rand}H.exports=m,m.create=function(E){return new m(E)},m.prototype._randbelow=function(E){var s=E.bitLength(),p=Math.ceil(s/8);do var c=new M(this.rand.generate(p));while(c.cmp(E)>=0);return c},m.prototype._randrange=function(E,s){var p=s.sub(E);return E.add(this._randbelow(p))},m.prototype.test=function(E,s,p){var c=E.bitLength(),l=M.mont(E),f=new M(1).toRed(l);s||(s=Math.max(1,c/48|0));for(var g=E.subn(1),h=0;!g.testn(h);h++);for(var u=E.shrn(h),w=g.toRed(l);s>0;s--){var b=this._randrange(new M(2),g);p&&p(b);var k=b.toRed(l).redPow(u);if(k.cmp(f)!==0&&k.cmp(w)!==0){for(var A=1;A<h;A++){if((k=k.redSqr()).cmp(f)===0)return!1;if(k.cmp(w)===0)break}if(A===h)return!1}}return!0},m.prototype.getDivisor=function(E,s){var p=E.bitLength(),c=M.mont(E),l=new M(1).toRed(c);s||(s=Math.max(1,p/48|0));for(var f=E.subn(1),g=0;!f.testn(g);g++);for(var h=E.shrn(g),u=f.toRed(c);s>0;s--){var w=this._randrange(new M(2),f),b=E.gcd(w);if(b.cmpn(1)!==0)return b;var k=w.toRed(c).redPow(h);if(k.cmp(l)!==0&&k.cmp(u)!==0){for(var A=1;A<g;A++){if((k=k.redSqr()).cmp(l)===0)return k.fromRed().subn(1).gcd(E);if(k.cmp(u)===0)break}if(A===g)return(k=k.redSqr()).fromRed().subn(1).gcd(E)}}return!1}},6240:function(H,_,y){(function(M,v){function m(e,r){if(!e)throw new Error(r||"Assertion failed")}function E(e,r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}function s(e,r,i){if(s.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&(r!=="le"&&r!=="be"||(i=r,r=10),this._init(e||0,r||10,i||"be"))}var p;typeof M=="object"?M.exports=s:v.BN=s,s.BN=s,s.wordSize=26;try{p=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:y(6619).Buffer}catch{}function c(e,r){var i=e.charCodeAt(r);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(e,r,i){var n=c(e,i);return i-1>=r&&(n|=c(e,i-1)<<4),n}function f(e,r,i,n){for(var t=0,o=Math.min(e.length,i),a=r;a<o;a++){var T=e.charCodeAt(a)-48;t*=n,t+=T>=49?T-49+10:T>=17?T-17+10:T}return t}s.isBN=function(e){return e instanceof s||e!==null&&typeof e=="object"&&e.constructor.wordSize===s.wordSize&&Array.isArray(e.words)},s.max=function(e,r){return e.cmp(r)>0?e:r},s.min=function(e,r){return e.cmp(r)<0?e:r},s.prototype._init=function(e,r,i){if(typeof e=="number")return this._initNumber(e,r,i);if(typeof e=="object")return this._initArray(e,r,i);r==="hex"&&(r=16),m(r===(0|r)&&r>=2&&r<=36);var n=0;(e=e.toString().replace(/\s+/g,""))[0]==="-"&&(n++,this.negative=1),n<e.length&&(r===16?this._parseHex(e,n,i):(this._parseBase(e,r,n),i==="le"&&this._initArray(this.toArray(),r,i)))},s.prototype._initNumber=function(e,r,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(m(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),r,i)},s.prototype._initArray=function(e,r,i){if(m(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o,a=0;if(i==="be")for(n=e.length-1,t=0;n>=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[t]|=o<<a&67108863,this.words[t+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,t++);else if(i==="le")for(n=0,t=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[t]|=o<<a&67108863,this.words[t+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,t++);return this.strip()},s.prototype._parseHex=function(e,r,i){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o=0,a=0;if(i==="be")for(n=e.length-1;n>=r;n-=2)t=l(e,r,n)<<o,this.words[a]|=67108863&t,o>=18?(o-=18,a+=1,this.words[a]|=t>>>26):o+=8;else for(n=(e.length-r)%2==0?r+1:r;n<e.length;n+=2)t=l(e,r,n)<<o,this.words[a]|=67108863&t,o>=18?(o-=18,a+=1,this.words[a]|=t>>>26):o+=8;this.strip()},s.prototype._parseBase=function(e,r,i){this.words=[0],this.length=1;for(var n=0,t=1;t<=67108863;t*=r)n++;n--,t=t/r|0;for(var o=e.length-i,a=o%n,T=Math.min(o,o-a)+i,C=0,N=i;N<T;N+=n)C=f(e,N,N+n,r),this.imuln(t),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(a!==0){var O=1;for(C=f(e,N,e.length,r),N=0;N<a;N++)O*=r;this.imuln(O),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},s.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},s.prototype.clone=function(){var e=new s(null);return this.copy(e),e},s.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","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"],h=[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],u=[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];function w(e,r,i){i.negative=r.negative^e.negative;var n=e.length+r.length|0;i.length=n,n=n-1|0;var t=0|e.words[0],o=0|r.words[0],a=t*o,T=67108863&a,C=a/67108864|0;i.words[0]=T;for(var N=1;N<n;N++){for(var O=C>>>26,R=67108863&C,F=Math.min(N,r.length-1),Z=Math.max(0,N-e.length+1);Z<=F;Z++){var ie=N-Z|0;O+=(a=(t=0|e.words[ie])*(o=0|r.words[Z])+R)/67108864|0,R=67108863&a}i.words[N]=0|R,C=0|O}return C!==0?i.words[N]=0|C:i.length--,i.strip()}s.prototype.toString=function(e,r){var i;if(r=0|r||1,(e=e||10)===16||e==="hex"){i="";for(var n=0,t=0,o=0;o<this.length;o++){var a=this.words[o],T=(16777215&(a<<n|t)).toString(16);i=(t=a>>>24-n&16777215)!=0||o!==this.length-1?g[6-T.length]+T+i:T+i,(n+=2)>=26&&(n-=26,o--)}for(t!==0&&(i=t.toString(16)+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var C=h[e],N=u[e];i="";var O=this.clone();for(O.negative=0;!O.isZero();){var R=O.modn(N).toString(e);i=(O=O.idivn(N)).isZero()?R+i:g[C-R.length]+R+i}for(this.isZero()&&(i="0"+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}m(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=67108864*this.words[1]:this.length===3&&this.words[2]===1?e+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(e,r){return m(p!==void 0),this.toArrayLike(p,e,r)},s.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},s.prototype.toArrayLike=function(e,r,i){var n=this.byteLength(),t=i||Math.max(1,n);m(n<=t,"byte array longer than desired length"),m(t>0,"Requested array length <= 0"),this.strip();var o,a,T=r==="le",C=new e(t),N=this.clone();if(T){for(a=0;!N.isZero();a++)o=N.andln(255),N.iushrn(8),C[a]=o;for(;a<t;a++)C[a]=0}else{for(a=0;a<t-n;a++)C[a]=0;for(a=0;!N.isZero();a++)o=N.andln(255),N.iushrn(8),C[t-a-1]=o}return C},Math.clz32?s.prototype._countBits=function(e){return 32-Math.clz32(e)}:s.prototype._countBits=function(e){var r=e,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},s.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,i=0;return!(8191&r)&&(i+=13,r>>>=13),!(127&r)&&(i+=7,r>>>=7),!(15&r)&&(i+=4,r>>>=4),!(3&r)&&(i+=2,r>>>=2),!(1&r)&&i++,i},s.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return 26*(this.length-1)+r},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(e+=i,i!==26)break}return e},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},s.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},s.prototype.ior=function(e){return m((this.negative|e.negative)==0),this.iuor(e)},s.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},s.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},s.prototype.iuand=function(e){var r;r=this.length>e.length?e:this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=r.length,this.strip()},s.prototype.iand=function(e){return m((this.negative|e.negative)==0),this.iuand(e)},s.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},s.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},s.prototype.iuxor=function(e){var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=r.words[n]^i.words[n];if(this!==r)for(;n<r.length;n++)this.words[n]=r.words[n];return this.length=r.length,this.strip()},s.prototype.ixor=function(e){return m((this.negative|e.negative)==0),this.iuxor(e)},s.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},s.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},s.prototype.inotn=function(e){m(typeof e=="number"&&e>=0);var r=0|Math.ceil(e/26),i=e%26;this._expand(r),i>0&&r--;for(var n=0;n<r;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},s.prototype.notn=function(e){return this.clone().inotn(e)},s.prototype.setn=function(e,r){m(typeof e=="number"&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=r?this.words[i]|1<<n:this.words[i]&~(1<<n),this.strip()},s.prototype.iadd=function(e){var r,i,n;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var t=0,o=0;o<n.length;o++)r=(0|i.words[o])+(0|n.words[o])+t,this.words[o]=67108863&r,t=r>>>26;for(;t!==0&&o<i.length;o++)r=(0|i.words[o])+t,this.words[o]=67108863&r,t=r>>>26;if(this.length=i.length,t!==0)this.words[this.length]=t,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},s.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},s.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,t=this.cmp(e);if(t===0)return this.negative=0,this.length=1,this.words[0]=0,this;t>0?(i=this,n=e):(i=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(r=(0|i.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&r;for(;o!==0&&a<i.length;a++)o=(r=(0|i.words[a])+o)>>26,this.words[a]=67108863&r;if(o===0&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(e){return this.clone().isub(e)};var b=function(e,r,i){var n,t,o,a=e.words,T=r.words,C=i.words,N=0,O=0|a[0],R=8191&O,F=O>>>13,Z=0|a[1],ie=8191&Z,D=Z>>>13,Y=0|a[2],z=8191&Y,W=Y>>>13,ae=0|a[3],re=8191&ae,le=ae>>>13,ke=0|a[4],ge=8191&ke,be=ke>>>13,je=0|a[5],xe=8191&je,Ae=je>>>13,X=0|a[6],ee=8191&X,U=X>>>13,V=0|a[7],q=8191&V,ne=V>>>13,fe=0|a[8],he=8191&fe,me=fe>>>13,it=0|a[9],_e=8191&it,Te=it>>>13,ft=0|T[0],Se=8191&ft,Ge=ft>>>13,Ct=0|T[1],Pe=8191&Ct,Ve=Ct>>>13,Nt=0|T[2],Re=8191&Nt,Ke=Nt>>>13,yt=0|T[3],Be=8191&yt,We=yt>>>13,St=0|T[4],Ne=8191&St,Ze=St>>>13,It=0|T[5],Le=8191&It,Xe=It>>>13,Dt=0|T[6],De=8191&Dt,Qe=Dt>>>13,zt=0|T[7],qe=8191&zt,Je=zt>>>13,$t=0|T[8],Fe=8191&$t,tt=$t>>>13,Vt=0|T[9],Ue=8191&Vt,et=Vt>>>13;i.negative=e.negative^r.negative,i.length=19;var Tt=(N+(n=Math.imul(R,Se))|0)+((8191&(t=(t=Math.imul(R,Ge))+Math.imul(F,Se)|0))<<13)|0;N=((o=Math.imul(F,Ge))+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(ie,Se),t=(t=Math.imul(ie,Ge))+Math.imul(D,Se)|0,o=Math.imul(D,Ge);var Rt=(N+(n=n+Math.imul(R,Pe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ve)|0)+Math.imul(F,Pe)|0))<<13)|0;N=((o=o+Math.imul(F,Ve)|0)+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(z,Se),t=(t=Math.imul(z,Ge))+Math.imul(W,Se)|0,o=Math.imul(W,Ge),n=n+Math.imul(ie,Pe)|0,t=(t=t+Math.imul(ie,Ve)|0)+Math.imul(D,Pe)|0,o=o+Math.imul(D,Ve)|0;var Gt=(N+(n=n+Math.imul(R,Re)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ke)|0)+Math.imul(F,Re)|0))<<13)|0;N=((o=o+Math.imul(F,Ke)|0)+(t>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,n=Math.imul(re,Se),t=(t=Math.imul(re,Ge))+Math.imul(le,Se)|0,o=Math.imul(le,Ge),n=n+Math.imul(z,Pe)|0,t=(t=t+Math.imul(z,Ve)|0)+Math.imul(W,Pe)|0,o=o+Math.imul(W,Ve)|0,n=n+Math.imul(ie,Re)|0,t=(t=t+Math.imul(ie,Ke)|0)+Math.imul(D,Re)|0,o=o+Math.imul(D,Ke)|0;var an=(N+(n=n+Math.imul(R,Be)|0)|0)+((8191&(t=(t=t+Math.imul(R,We)|0)+Math.imul(F,Be)|0))<<13)|0;N=((o=o+Math.imul(F,We)|0)+(t>>>13)|0)+(an>>>26)|0,an&=67108863,n=Math.imul(ge,Se),t=(t=Math.imul(ge,Ge))+Math.imul(be,Se)|0,o=Math.imul(be,Ge),n=n+Math.imul(re,Pe)|0,t=(t=t+Math.imul(re,Ve)|0)+Math.imul(le,Pe)|0,o=o+Math.imul(le,Ve)|0,n=n+Math.imul(z,Re)|0,t=(t=t+Math.imul(z,Ke)|0)+Math.imul(W,Re)|0,o=o+Math.imul(W,Ke)|0,n=n+Math.imul(ie,Be)|0,t=(t=t+Math.imul(ie,We)|0)+Math.imul(D,Be)|0,o=o+Math.imul(D,We)|0;var rn=(N+(n=n+Math.imul(R,Ne)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ze)|0)+Math.imul(F,Ne)|0))<<13)|0;N=((o=o+Math.imul(F,Ze)|0)+(t>>>13)|0)+(rn>>>26)|0,rn&=67108863,n=Math.imul(xe,Se),t=(t=Math.imul(xe,Ge))+Math.imul(Ae,Se)|0,o=Math.imul(Ae,Ge),n=n+Math.imul(ge,Pe)|0,t=(t=t+Math.imul(ge,Ve)|0)+Math.imul(be,Pe)|0,o=o+Math.imul(be,Ve)|0,n=n+Math.imul(re,Re)|0,t=(t=t+Math.imul(re,Ke)|0)+Math.imul(le,Re)|0,o=o+Math.imul(le,Ke)|0,n=n+Math.imul(z,Be)|0,t=(t=t+Math.imul(z,We)|0)+Math.imul(W,Be)|0,o=o+Math.imul(W,We)|0,n=n+Math.imul(ie,Ne)|0,t=(t=t+Math.imul(ie,Ze)|0)+Math.imul(D,Ne)|0,o=o+Math.imul(D,Ze)|0;var un=(N+(n=n+Math.imul(R,Le)|0)|0)+((8191&(t=(t=t+Math.imul(R,Xe)|0)+Math.imul(F,Le)|0))<<13)|0;N=((o=o+Math.imul(F,Xe)|0)+(t>>>13)|0)+(un>>>26)|0,un&=67108863,n=Math.imul(ee,Se),t=(t=Math.imul(ee,Ge))+Math.imul(U,Se)|0,o=Math.imul(U,Ge),n=n+Math.imul(xe,Pe)|0,t=(t=t+Math.imul(xe,Ve)|0)+Math.imul(Ae,Pe)|0,o=o+Math.imul(Ae,Ve)|0,n=n+Math.imul(ge,Re)|0,t=(t=t+Math.imul(ge,Ke)|0)+Math.imul(be,Re)|0,o=o+Math.imul(be,Ke)|0,n=n+Math.imul(re,Be)|0,t=(t=t+Math.imul(re,We)|0)+Math.imul(le,Be)|0,o=o+Math.imul(le,We)|0,n=n+Math.imul(z,Ne)|0,t=(t=t+Math.imul(z,Ze)|0)+Math.imul(W,Ne)|0,o=o+Math.imul(W,Ze)|0,n=n+Math.imul(ie,Le)|0,t=(t=t+Math.imul(ie,Xe)|0)+Math.imul(D,Le)|0,o=o+Math.imul(D,Xe)|0;var cn=(N+(n=n+Math.imul(R,De)|0)|0)+((8191&(t=(t=t+Math.imul(R,Qe)|0)+Math.imul(F,De)|0))<<13)|0;N=((o=o+Math.imul(F,Qe)|0)+(t>>>13)|0)+(cn>>>26)|0,cn&=67108863,n=Math.imul(q,Se),t=(t=Math.imul(q,Ge))+Math.imul(ne,Se)|0,o=Math.imul(ne,Ge),n=n+Math.imul(ee,Pe)|0,t=(t=t+Math.imul(ee,Ve)|0)+Math.imul(U,Pe)|0,o=o+Math.imul(U,Ve)|0,n=n+Math.imul(xe,Re)|0,t=(t=t+Math.imul(xe,Ke)|0)+Math.imul(Ae,Re)|0,o=o+Math.imul(Ae,Ke)|0,n=n+Math.imul(ge,Be)|0,t=(t=t+Math.imul(ge,We)|0)+Math.imul(be,Be)|0,o=o+Math.imul(be,We)|0,n=n+Math.imul(re,Ne)|0,t=(t=t+Math.imul(re,Ze)|0)+Math.imul(le,Ne)|0,o=o+Math.imul(le,Ze)|0,n=n+Math.imul(z,Le)|0,t=(t=t+Math.imul(z,Xe)|0)+Math.imul(W,Le)|0,o=o+Math.imul(W,Xe)|0,n=n+Math.imul(ie,De)|0,t=(t=t+Math.imul(ie,Qe)|0)+Math.imul(D,De)|0,o=o+Math.imul(D,Qe)|0;var ln=(N+(n=n+Math.imul(R,qe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Je)|0)+Math.imul(F,qe)|0))<<13)|0;N=((o=o+Math.imul(F,Je)|0)+(t>>>13)|0)+(ln>>>26)|0,ln&=67108863,n=Math.imul(he,Se),t=(t=Math.imul(he,Ge))+Math.imul(me,Se)|0,o=Math.imul(me,Ge),n=n+Math.imul(q,Pe)|0,t=(t=t+Math.imul(q,Ve)|0)+Math.imul(ne,Pe)|0,o=o+Math.imul(ne,Ve)|0,n=n+Math.imul(ee,Re)|0,t=(t=t+Math.imul(ee,Ke)|0)+Math.imul(U,Re)|0,o=o+Math.imul(U,Ke)|0,n=n+Math.imul(xe,Be)|0,t=(t=t+Math.imul(xe,We)|0)+Math.imul(Ae,Be)|0,o=o+Math.imul(Ae,We)|0,n=n+Math.imul(ge,Ne)|0,t=(t=t+Math.imul(ge,Ze)|0)+Math.imul(be,Ne)|0,o=o+Math.imul(be,Ze)|0,n=n+Math.imul(re,Le)|0,t=(t=t+Math.imul(re,Xe)|0)+Math.imul(le,Le)|0,o=o+Math.imul(le,Xe)|0,n=n+Math.imul(z,De)|0,t=(t=t+Math.imul(z,Qe)|0)+Math.imul(W,De)|0,o=o+Math.imul(W,Qe)|0,n=n+Math.imul(ie,qe)|0,t=(t=t+Math.imul(ie,Je)|0)+Math.imul(D,qe)|0,o=o+Math.imul(D,Je)|0;var hn=(N+(n=n+Math.imul(R,Fe)|0)|0)+((8191&(t=(t=t+Math.imul(R,tt)|0)+Math.imul(F,Fe)|0))<<13)|0;N=((o=o+Math.imul(F,tt)|0)+(t>>>13)|0)+(hn>>>26)|0,hn&=67108863,n=Math.imul(_e,Se),t=(t=Math.imul(_e,Ge))+Math.imul(Te,Se)|0,o=Math.imul(Te,Ge),n=n+Math.imul(he,Pe)|0,t=(t=t+Math.imul(he,Ve)|0)+Math.imul(me,Pe)|0,o=o+Math.imul(me,Ve)|0,n=n+Math.imul(q,Re)|0,t=(t=t+Math.imul(q,Ke)|0)+Math.imul(ne,Re)|0,o=o+Math.imul(ne,Ke)|0,n=n+Math.imul(ee,Be)|0,t=(t=t+Math.imul(ee,We)|0)+Math.imul(U,Be)|0,o=o+Math.imul(U,We)|0,n=n+Math.imul(xe,Ne)|0,t=(t=t+Math.imul(xe,Ze)|0)+Math.imul(Ae,Ne)|0,o=o+Math.imul(Ae,Ze)|0,n=n+Math.imul(ge,Le)|0,t=(t=t+Math.imul(ge,Xe)|0)+Math.imul(be,Le)|0,o=o+Math.imul(be,Xe)|0,n=n+Math.imul(re,De)|0,t=(t=t+Math.imul(re,Qe)|0)+Math.imul(le,De)|0,o=o+Math.imul(le,Qe)|0,n=n+Math.imul(z,qe)|0,t=(t=t+Math.imul(z,Je)|0)+Math.imul(W,qe)|0,o=o+Math.imul(W,Je)|0,n=n+Math.imul(ie,Fe)|0,t=(t=t+Math.imul(ie,tt)|0)+Math.imul(D,Fe)|0,o=o+Math.imul(D,tt)|0;var fn=(N+(n=n+Math.imul(R,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(R,et)|0)+Math.imul(F,Ue)|0))<<13)|0;N=((o=o+Math.imul(F,et)|0)+(t>>>13)|0)+(fn>>>26)|0,fn&=67108863,n=Math.imul(_e,Pe),t=(t=Math.imul(_e,Ve))+Math.imul(Te,Pe)|0,o=Math.imul(Te,Ve),n=n+Math.imul(he,Re)|0,t=(t=t+Math.imul(he,Ke)|0)+Math.imul(me,Re)|0,o=o+Math.imul(me,Ke)|0,n=n+Math.imul(q,Be)|0,t=(t=t+Math.imul(q,We)|0)+Math.imul(ne,Be)|0,o=o+Math.imul(ne,We)|0,n=n+Math.imul(ee,Ne)|0,t=(t=t+Math.imul(ee,Ze)|0)+Math.imul(U,Ne)|0,o=o+Math.imul(U,Ze)|0,n=n+Math.imul(xe,Le)|0,t=(t=t+Math.imul(xe,Xe)|0)+Math.imul(Ae,Le)|0,o=o+Math.imul(Ae,Xe)|0,n=n+Math.imul(ge,De)|0,t=(t=t+Math.imul(ge,Qe)|0)+Math.imul(be,De)|0,o=o+Math.imul(be,Qe)|0,n=n+Math.imul(re,qe)|0,t=(t=t+Math.imul(re,Je)|0)+Math.imul(le,qe)|0,o=o+Math.imul(le,Je)|0,n=n+Math.imul(z,Fe)|0,t=(t=t+Math.imul(z,tt)|0)+Math.imul(W,Fe)|0,o=o+Math.imul(W,tt)|0;var pn=(N+(n=n+Math.imul(ie,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ie,et)|0)+Math.imul(D,Ue)|0))<<13)|0;N=((o=o+Math.imul(D,et)|0)+(t>>>13)|0)+(pn>>>26)|0,pn&=67108863,n=Math.imul(_e,Re),t=(t=Math.imul(_e,Ke))+Math.imul(Te,Re)|0,o=Math.imul(Te,Ke),n=n+Math.imul(he,Be)|0,t=(t=t+Math.imul(he,We)|0)+Math.imul(me,Be)|0,o=o+Math.imul(me,We)|0,n=n+Math.imul(q,Ne)|0,t=(t=t+Math.imul(q,Ze)|0)+Math.imul(ne,Ne)|0,o=o+Math.imul(ne,Ze)|0,n=n+Math.imul(ee,Le)|0,t=(t=t+Math.imul(ee,Xe)|0)+Math.imul(U,Le)|0,o=o+Math.imul(U,Xe)|0,n=n+Math.imul(xe,De)|0,t=(t=t+Math.imul(xe,Qe)|0)+Math.imul(Ae,De)|0,o=o+Math.imul(Ae,Qe)|0,n=n+Math.imul(ge,qe)|0,t=(t=t+Math.imul(ge,Je)|0)+Math.imul(be,qe)|0,o=o+Math.imul(be,Je)|0,n=n+Math.imul(re,Fe)|0,t=(t=t+Math.imul(re,tt)|0)+Math.imul(le,Fe)|0,o=o+Math.imul(le,tt)|0;var Xt=(N+(n=n+Math.imul(z,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(z,et)|0)+Math.imul(W,Ue)|0))<<13)|0;N=((o=o+Math.imul(W,et)|0)+(t>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,n=Math.imul(_e,Be),t=(t=Math.imul(_e,We))+Math.imul(Te,Be)|0,o=Math.imul(Te,We),n=n+Math.imul(he,Ne)|0,t=(t=t+Math.imul(he,Ze)|0)+Math.imul(me,Ne)|0,o=o+Math.imul(me,Ze)|0,n=n+Math.imul(q,Le)|0,t=(t=t+Math.imul(q,Xe)|0)+Math.imul(ne,Le)|0,o=o+Math.imul(ne,Xe)|0,n=n+Math.imul(ee,De)|0,t=(t=t+Math.imul(ee,Qe)|0)+Math.imul(U,De)|0,o=o+Math.imul(U,Qe)|0,n=n+Math.imul(xe,qe)|0,t=(t=t+Math.imul(xe,Je)|0)+Math.imul(Ae,qe)|0,o=o+Math.imul(Ae,Je)|0,n=n+Math.imul(ge,Fe)|0,t=(t=t+Math.imul(ge,tt)|0)+Math.imul(be,Fe)|0,o=o+Math.imul(be,tt)|0;var dn=(N+(n=n+Math.imul(re,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(re,et)|0)+Math.imul(le,Ue)|0))<<13)|0;N=((o=o+Math.imul(le,et)|0)+(t>>>13)|0)+(dn>>>26)|0,dn&=67108863,n=Math.imul(_e,Ne),t=(t=Math.imul(_e,Ze))+Math.imul(Te,Ne)|0,o=Math.imul(Te,Ze),n=n+Math.imul(he,Le)|0,t=(t=t+Math.imul(he,Xe)|0)+Math.imul(me,Le)|0,o=o+Math.imul(me,Xe)|0,n=n+Math.imul(q,De)|0,t=(t=t+Math.imul(q,Qe)|0)+Math.imul(ne,De)|0,o=o+Math.imul(ne,Qe)|0,n=n+Math.imul(ee,qe)|0,t=(t=t+Math.imul(ee,Je)|0)+Math.imul(U,qe)|0,o=o+Math.imul(U,Je)|0,n=n+Math.imul(xe,Fe)|0,t=(t=t+Math.imul(xe,tt)|0)+Math.imul(Ae,Fe)|0,o=o+Math.imul(Ae,tt)|0;var vn=(N+(n=n+Math.imul(ge,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ge,et)|0)+Math.imul(be,Ue)|0))<<13)|0;N=((o=o+Math.imul(be,et)|0)+(t>>>13)|0)+(vn>>>26)|0,vn&=67108863,n=Math.imul(_e,Le),t=(t=Math.imul(_e,Xe))+Math.imul(Te,Le)|0,o=Math.imul(Te,Xe),n=n+Math.imul(he,De)|0,t=(t=t+Math.imul(he,Qe)|0)+Math.imul(me,De)|0,o=o+Math.imul(me,Qe)|0,n=n+Math.imul(q,qe)|0,t=(t=t+Math.imul(q,Je)|0)+Math.imul(ne,qe)|0,o=o+Math.imul(ne,Je)|0,n=n+Math.imul(ee,Fe)|0,t=(t=t+Math.imul(ee,tt)|0)+Math.imul(U,Fe)|0,o=o+Math.imul(U,tt)|0;var tn=(N+(n=n+Math.imul(xe,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(xe,et)|0)+Math.imul(Ae,Ue)|0))<<13)|0;N=((o=o+Math.imul(Ae,et)|0)+(t>>>13)|0)+(tn>>>26)|0,tn&=67108863,n=Math.imul(_e,De),t=(t=Math.imul(_e,Qe))+Math.imul(Te,De)|0,o=Math.imul(Te,Qe),n=n+Math.imul(he,qe)|0,t=(t=t+Math.imul(he,Je)|0)+Math.imul(me,qe)|0,o=o+Math.imul(me,Je)|0,n=n+Math.imul(q,Fe)|0,t=(t=t+Math.imul(q,tt)|0)+Math.imul(ne,Fe)|0,o=o+Math.imul(ne,tt)|0;var nn=(N+(n=n+Math.imul(ee,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ee,et)|0)+Math.imul(U,Ue)|0))<<13)|0;N=((o=o+Math.imul(U,et)|0)+(t>>>13)|0)+(nn>>>26)|0,nn&=67108863,n=Math.imul(_e,qe),t=(t=Math.imul(_e,Je))+Math.imul(Te,qe)|0,o=Math.imul(Te,Je),n=n+Math.imul(he,Fe)|0,t=(t=t+Math.imul(he,tt)|0)+Math.imul(me,Fe)|0,o=o+Math.imul(me,tt)|0;var Jt=(N+(n=n+Math.imul(q,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(q,et)|0)+Math.imul(ne,Ue)|0))<<13)|0;N=((o=o+Math.imul(ne,et)|0)+(t>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,n=Math.imul(_e,Fe),t=(t=Math.imul(_e,tt))+Math.imul(Te,Fe)|0,o=Math.imul(Te,tt);var mn=(N+(n=n+Math.imul(he,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(he,et)|0)+Math.imul(me,Ue)|0))<<13)|0;N=((o=o+Math.imul(me,et)|0)+(t>>>13)|0)+(mn>>>26)|0,mn&=67108863;var on=(N+(n=Math.imul(_e,Ue))|0)+((8191&(t=(t=Math.imul(_e,et))+Math.imul(Te,Ue)|0))<<13)|0;return N=((o=Math.imul(Te,et))+(t>>>13)|0)+(on>>>26)|0,on&=67108863,C[0]=Tt,C[1]=Rt,C[2]=Gt,C[3]=an,C[4]=rn,C[5]=un,C[6]=cn,C[7]=ln,C[8]=hn,C[9]=fn,C[10]=pn,C[11]=Xt,C[12]=dn,C[13]=vn,C[14]=tn,C[15]=nn,C[16]=Jt,C[17]=mn,C[18]=on,N!==0&&(C[19]=N,i.length++),i};function k(e,r,i){return new A().mulp(e,r,i)}function A(e,r){this.x=e,this.y=r}Math.imul||(b=w),s.prototype.mulTo=function(e,r){var i,n=this.length+e.length;return i=this.length===10&&e.length===10?b(this,e,r):n<63?w(this,e,r):n<1024?function(t,o,a){a.negative=o.negative^t.negative,a.length=t.length+o.length;for(var T=0,C=0,N=0;N<a.length-1;N++){var O=C;C=0;for(var R=67108863&T,F=Math.min(N,o.length-1),Z=Math.max(0,N-t.length+1);Z<=F;Z++){var ie=N-Z,D=(0|t.words[ie])*(0|o.words[Z]),Y=67108863&D;R=67108863&(Y=Y+R|0),C+=(O=(O=O+(D/67108864|0)|0)+(Y>>>26)|0)>>>26,O&=67108863}a.words[N]=R,T=O,O=C}return T!==0?a.words[N]=T:a.length--,a.strip()}(this,e,r):k(this,e,r),i},A.prototype.makeRBT=function(e){for(var r=new Array(e),i=s.prototype._countBits(e)-1,n=0;n<e;n++)r[n]=this.revBin(n,i,e);return r},A.prototype.revBin=function(e,r,i){if(e===0||e===i-1)return e;for(var n=0,t=0;t<r;t++)n|=(1&e)<<r-t-1,e>>=1;return n},A.prototype.permute=function(e,r,i,n,t,o){for(var a=0;a<o;a++)n[a]=r[e[a]],t[a]=i[e[a]]},A.prototype.transform=function(e,r,i,n,t,o){this.permute(o,e,r,i,n,t);for(var a=1;a<t;a<<=1)for(var T=a<<1,C=Math.cos(2*Math.PI/T),N=Math.sin(2*Math.PI/T),O=0;O<t;O+=T)for(var R=C,F=N,Z=0;Z<a;Z++){var ie=i[O+Z],D=n[O+Z],Y=i[O+Z+a],z=n[O+Z+a],W=R*Y-F*z;z=R*z+F*Y,Y=W,i[O+Z]=ie+Y,n[O+Z]=D+z,i[O+Z+a]=ie-Y,n[O+Z+a]=D-z,Z!==T&&(W=C*R-N*F,F=C*F+N*R,R=W)}},A.prototype.guessLen13b=function(e,r){var i=1|Math.max(r,e),n=1&i,t=0;for(i=i/2|0;i;i>>>=1)t++;return 1<<t+1+n},A.prototype.conjugate=function(e,r,i){if(!(i<=1))for(var n=0;n<i/2;n++){var t=e[n];e[n]=e[i-n-1],e[i-n-1]=t,t=r[n],r[n]=-r[i-n-1],r[i-n-1]=-t}},A.prototype.normalize13b=function(e,r){for(var i=0,n=0;n<r/2;n++){var t=8192*Math.round(e[2*n+1]/r)+Math.round(e[2*n]/r)+i;e[n]=67108863&t,i=t<67108864?0:t/67108864|0}return e},A.prototype.convert13b=function(e,r,i,n){for(var t=0,o=0;o<r;o++)t+=0|e[o],i[2*o]=8191&t,t>>>=13,i[2*o+1]=8191&t,t>>>=13;for(o=2*r;o<n;++o)i[o]=0;m(t===0),m((-8192&t)==0)},A.prototype.stub=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=0;return r},A.prototype.mulp=function(e,r,i){var n=2*this.guessLen13b(e.length,r.length),t=this.makeRBT(n),o=this.stub(n),a=new Array(n),T=new Array(n),C=new Array(n),N=new Array(n),O=new Array(n),R=new Array(n),F=i.words;F.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(r.words,r.length,N,n),this.transform(a,o,T,C,n,t),this.transform(N,o,O,R,n,t);for(var Z=0;Z<n;Z++){var ie=T[Z]*O[Z]-C[Z]*R[Z];C[Z]=T[Z]*R[Z]+C[Z]*O[Z],T[Z]=ie}return this.conjugate(T,C,n),this.transform(T,C,F,o,n,t),this.conjugate(F,o,n),this.normalize13b(F,n),i.negative=e.negative^r.negative,i.length=e.length+r.length,i.strip()},s.prototype.mul=function(e){var r=new s(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},s.prototype.mulf=function(e){var r=new s(null);return r.words=new Array(this.length+e.length),k(this,e,r)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){m(typeof e=="number"),m(e<67108864);for(var r=0,i=0;i<this.length;i++){var n=(0|this.words[i])*e,t=(67108863&n)+(67108863&r);r>>=26,r+=n/67108864|0,r+=t>>>26,this.words[i]=67108863&t}return r!==0&&(this.words[i]=r,this.length++),this},s.prototype.muln=function(e){return this.clone().imuln(e)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(e){var r=function(o){for(var a=new Array(o.bitLength()),T=0;T<a.length;T++){var C=T/26|0,N=T%26;a[T]=(o.words[C]&1<<N)>>>N}return a}(e);if(r.length===0)return new s(1);for(var i=this,n=0;n<r.length&&r[n]===0;n++,i=i.sqr());if(++n<r.length)for(var t=i.sqr();n<r.length;n++,t=t.sqr())r[n]!==0&&(i=i.mul(t));return i},s.prototype.iushln=function(e){m(typeof e=="number"&&e>=0);var r,i=e%26,n=(e-i)/26,t=67108863>>>26-i<<26-i;if(i!==0){var o=0;for(r=0;r<this.length;r++){var a=this.words[r]&t,T=(0|this.words[r])-a<<i;this.words[r]=T|o,o=a>>>26-i}o&&(this.words[r]=o,this.length++)}if(n!==0){for(r=this.length-1;r>=0;r--)this.words[r+n]=this.words[r];for(r=0;r<n;r++)this.words[r]=0;this.length+=n}return this.strip()},s.prototype.ishln=function(e){return m(this.negative===0),this.iushln(e)},s.prototype.iushrn=function(e,r,i){var n;m(typeof e=="number"&&e>=0),n=r?(r-r%26)/26:0;var t=e%26,o=Math.min((e-t)/26,this.length),a=67108863^67108863>>>t<<t,T=i;if(n-=o,n=Math.max(0,n),T){for(var C=0;C<o;C++)T.words[C]=this.words[C];T.length=o}if(o!==0)if(this.length>o)for(this.length-=o,C=0;C<this.length;C++)this.words[C]=this.words[C+o];else this.words[0]=0,this.length=1;var N=0;for(C=this.length-1;C>=0&&(N!==0||C>=n);C--){var O=0|this.words[C];this.words[C]=N<<26-t|O>>>t,N=O&a}return T&&N!==0&&(T.words[T.length++]=N),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(e,r,i){return m(this.negative===0),this.iushrn(e,r,i)},s.prototype.shln=function(e){return this.clone().ishln(e)},s.prototype.ushln=function(e){return this.clone().iushln(e)},s.prototype.shrn=function(e){return this.clone().ishrn(e)},s.prototype.ushrn=function(e){return this.clone().iushrn(e)},s.prototype.testn=function(e){m(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,n=1<<r;return!(this.length<=i||!(this.words[i]&n))},s.prototype.imaskn=function(e){m(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(r!==0&&i++,this.length=Math.min(i,this.length),r!==0){var n=67108863^67108863>>>r<<r;this.words[this.length-1]&=n}return this.strip()},s.prototype.maskn=function(e){return this.clone().imaskn(e)},s.prototype.iaddn=function(e){return m(typeof e=="number"),m(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},s.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},s.prototype.isubn=function(e){if(m(typeof e=="number"),m(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},s.prototype.addn=function(e){return this.clone().iaddn(e)},s.prototype.subn=function(e){return this.clone().isubn(e)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(e,r,i){var n,t,o=e.length+i;this._expand(o);var a=0;for(n=0;n<e.length;n++){t=(0|this.words[n+i])+a;var T=(0|e.words[n])*r;a=((t-=67108863&T)>>26)-(T/67108864|0),this.words[n+i]=67108863&t}for(;n<this.length-i;n++)a=(t=(0|this.words[n+i])+a)>>26,this.words[n+i]=67108863&t;if(a===0)return this.strip();for(m(a===-1),a=0,n=0;n<this.length;n++)a=(t=-(0|this.words[n])+a)>>26,this.words[n]=67108863&t;return this.negative=1,this.strip()},s.prototype._wordDiv=function(e,r){var i=(this.length,e.length),n=this.clone(),t=e,o=0|t.words[t.length-1];(i=26-this._countBits(o))!=0&&(t=t.ushln(i),n.iushln(i),o=0|t.words[t.length-1]);var a,T=n.length-t.length;if(r!=="mod"){(a=new s(null)).length=T+1,a.words=new Array(a.length);for(var C=0;C<a.length;C++)a.words[C]=0}var N=n.clone()._ishlnsubmul(t,1,T);N.negative===0&&(n=N,a&&(a.words[T]=1));for(var O=T-1;O>=0;O--){var R=67108864*(0|n.words[t.length+O])+(0|n.words[t.length+O-1]);for(R=Math.min(R/o|0,67108863),n._ishlnsubmul(t,R,O);n.negative!==0;)R--,n.negative=0,n._ishlnsubmul(t,1,O),n.isZero()||(n.negative^=1);a&&(a.words[O]=R)}return a&&a.strip(),n.strip(),r!=="div"&&i!==0&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(e,r,i){return m(!e.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:this.negative!==0&&e.negative===0?(o=this.neg().divmod(e,r),r!=="mod"&&(n=o.div.neg()),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.iadd(e)),{div:n,mod:t}):this.negative===0&&e.negative!==0?(o=this.divmod(e.neg(),r),r!=="mod"&&(n=o.div.neg()),{div:n,mod:o.mod}):this.negative&e.negative?(o=this.neg().divmod(e.neg(),r),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.isub(e)),{div:o.div,mod:t}):e.length>this.length||this.cmp(e)<0?{div:new s(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new s(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modn(e.words[0]))}:this._wordDiv(e,r);var n,t,o},s.prototype.div=function(e){return this.divmod(e,"div",!1).div},s.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},s.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},s.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var i=r.div.negative!==0?r.mod.isub(e):r.mod,n=e.ushrn(1),t=e.andln(1),o=i.cmp(n);return o<0||t===1&&o===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},s.prototype.modn=function(e){m(e<=67108863);for(var r=67108864%e,i=0,n=this.length-1;n>=0;n--)i=(r*i+(0|this.words[n]))%e;return i},s.prototype.idivn=function(e){m(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*r;this.words[i]=n/e|0,r=n%e}return this.strip()},s.prototype.divn=function(e){return this.clone().idivn(e)},s.prototype.egcd=function(e){m(e.negative===0),m(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n=new s(1),t=new s(0),o=new s(0),a=new s(1),T=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++T;for(var C=i.clone(),N=r.clone();!r.isZero();){for(var O=0,R=1;!(r.words[0]&R)&&O<26;++O,R<<=1);if(O>0)for(r.iushrn(O);O-- >0;)(n.isOdd()||t.isOdd())&&(n.iadd(C),t.isub(N)),n.iushrn(1),t.iushrn(1);for(var F=0,Z=1;!(i.words[0]&Z)&&F<26;++F,Z<<=1);if(F>0)for(i.iushrn(F);F-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(C),a.isub(N)),o.iushrn(1),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),n.isub(o),t.isub(a)):(i.isub(r),o.isub(n),a.isub(t))}return{a:o,b:a,gcd:i.iushln(T)}},s.prototype._invmp=function(e){m(e.negative===0),m(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n,t=new s(1),o=new s(0),a=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var T=0,C=1;!(r.words[0]&C)&&T<26;++T,C<<=1);if(T>0)for(r.iushrn(T);T-- >0;)t.isOdd()&&t.iadd(a),t.iushrn(1);for(var N=0,O=1;!(i.words[0]&O)&&N<26;++N,O<<=1);if(N>0)for(i.iushrn(N);N-- >0;)o.isOdd()&&o.iadd(a),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),t.isub(o)):(i.isub(r),o.isub(t))}return(n=r.cmpn(1)===0?t:o).cmpn(0)<0&&n.iadd(e),n},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),i=e.clone();r.negative=0,i.negative=0;for(var n=0;r.isEven()&&i.isEven();n++)r.iushrn(1),i.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var t=r.cmp(i);if(t<0){var o=r;r=i,i=o}else if(t===0||i.cmpn(1)===0)break;r.isub(i)}return i.iushln(n)},s.prototype.invm=function(e){return this.egcd(e).a.umod(e)},s.prototype.isEven=function(){return(1&this.words[0])==0},s.prototype.isOdd=function(){return(1&this.words[0])==1},s.prototype.andln=function(e){return this.words[0]&e},s.prototype.bincn=function(e){m(typeof e=="number");var r=e%26,i=(e-r)/26,n=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var t=n,o=i;t!==0&&o<this.length;o++){var a=0|this.words[o];t=(a+=t)>>>26,a&=67108863,this.words[o]=a}return t!==0&&(this.words[o]=t,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(e){var r,i=e<0;if(this.negative!==0&&!i)return-1;if(this.negative===0&&i)return 1;if(this.strip(),this.length>1)r=1;else{i&&(e=-e),m(e<=67108863,"Number is too big");var n=0|this.words[0];r=n===e?0:n<e?-1:1}return this.negative!==0?0|-r:r},s.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?0|-r:r},s.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],t=0|e.words[i];if(n!==t){n<t?r=-1:n>t&&(r=1);break}}return r},s.prototype.gtn=function(e){return this.cmpn(e)===1},s.prototype.gt=function(e){return this.cmp(e)===1},s.prototype.gten=function(e){return this.cmpn(e)>=0},s.prototype.gte=function(e){return this.cmp(e)>=0},s.prototype.ltn=function(e){return this.cmpn(e)===-1},s.prototype.lt=function(e){return this.cmp(e)===-1},s.prototype.lten=function(e){return this.cmpn(e)<=0},s.prototype.lte=function(e){return this.cmp(e)<=0},s.prototype.eqn=function(e){return this.cmpn(e)===0},s.prototype.eq=function(e){return this.cmp(e)===0},s.red=function(e){return new J(e)},s.prototype.toRed=function(e){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(e){return this.red=e,this},s.prototype.forceRed=function(e){return m(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return m(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};function j(e,r){this.name=e,this.p=new s(r,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function P(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function B(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function $(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function te(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(e){if(typeof e=="string"){var r=s._prime(e);this.m=r.p,this.prime=r}else m(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function oe(e){J.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}j.prototype._tmp=function(){var e=new s(null);return e.words=new Array(Math.ceil(this.n/13)),e},j.prototype.ireduce=function(e){var r,i=e;do this.split(i,this.tmp),r=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength();while(r>this.n);var n=r<this.n?-1:i.ucmp(this.p);return n===0?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):i.strip!==void 0?i.strip():i._strip(),i},j.prototype.split=function(e,r){e.iushrn(this.n,0,r)},j.prototype.imulK=function(e){return e.imul(this.k)},E(P,j),P.prototype.split=function(e,r){for(var i=4194303,n=Math.min(e.length,9),t=0;t<n;t++)r.words[t]=e.words[t];if(r.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(r.words[r.length++]=o&i,t=10;t<e.length;t++){var a=0|e.words[t];e.words[t-10]=(a&i)<<4|o>>>22,o=a}o>>>=22,e.words[t-10]=o,o===0&&e.length>10?e.length-=10:e.length-=9},P.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,i=0;i<e.length;i++){var n=0|e.words[i];r+=977*n,e.words[i]=67108863&r,r=64*n+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e},E(B,j),E($,j),E(te,j),te.prototype.imulK=function(e){for(var r=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+r,t=67108863&n;n>>>=26,e.words[i]=t,r=n}return r!==0&&(e.words[e.length++]=r),e},s._prime=function(e){if(x[e])return x[e];var r;if(e==="k256")r=new P;else if(e==="p224")r=new B;else if(e==="p192")r=new $;else{if(e!=="p25519")throw new Error("Unknown prime "+e);r=new te}return x[e]=r,r},J.prototype._verify1=function(e){m(e.negative===0,"red works only with positives"),m(e.red,"red works only with red numbers")},J.prototype._verify2=function(e,r){m((e.negative|r.negative)==0,"red works only with positives"),m(e.red&&e.red===r.red,"red works only with red numbers")},J.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},J.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},J.prototype.add=function(e,r){this._verify2(e,r);var i=e.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},J.prototype.iadd=function(e,r){this._verify2(e,r);var i=e.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},J.prototype.sub=function(e,r){this._verify2(e,r);var i=e.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},J.prototype.isub=function(e,r){this._verify2(e,r);var i=e.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},J.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},J.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},J.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},J.prototype.isqr=function(e){return this.imul(e,e.clone())},J.prototype.sqr=function(e){return this.mul(e,e)},J.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(m(r%2==1),r===3){var i=this.m.add(new s(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),t=0;!n.isZero()&&n.andln(1)===0;)t++,n.iushrn(1);m(!n.isZero());var o=new s(1).toRed(this),a=o.redNeg(),T=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new s(2*C*C).toRed(this);this.pow(C,T).cmp(a)!==0;)C.redIAdd(a);for(var N=this.pow(C,n),O=this.pow(e,n.addn(1).iushrn(1)),R=this.pow(e,n),F=t;R.cmp(o)!==0;){for(var Z=R,ie=0;Z.cmp(o)!==0;ie++)Z=Z.redSqr();m(ie<F);var D=this.pow(N,new s(1).iushln(F-ie-1));O=O.redMul(D),N=D.redSqr(),R=R.redMul(N),F=ie}return O},J.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},J.prototype.pow=function(e,r){if(r.isZero())return new s(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var i=new Array(16);i[0]=new s(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var t=i[0],o=0,a=0,T=r.bitLength()%26;for(T===0&&(T=26),n=r.length-1;n>=0;n--){for(var C=r.words[n],N=T-1;N>=0;N--){var O=C>>N&1;t!==i[0]&&(t=this.sqr(t)),O!==0||o!==0?(o<<=1,o|=O,(++a==4||n===0&&N===0)&&(t=this.mul(t,i[o]),a=0,o=0)):a=0}T=26}return t},J.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},J.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},s.mont=function(e){return new oe(e)},E(oe,J),oe.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},oe.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},oe.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},oe.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new s(0)._forceRed(this);var i=e.mul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},oe.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(H=y.nmd(H),this)},5234:(H,_,y)=>{H.exports=y(3765)},983:(H,_,y)=>{var M,v,m,E=y(5234),s=y(6470).extname,p=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function l(f){if(!f||typeof f!="string")return!1;var g=p.exec(f),h=g&&E[g[1].toLowerCase()];return h&&h.charset?h.charset:!(!g||!c.test(g[1]))&&"UTF-8"}_.charset=l,_.charsets={lookup:l},_.contentType=function(f){if(!f||typeof f!="string")return!1;var g=f.indexOf("/")===-1?_.lookup(f):f;if(!g)return!1;if(g.indexOf("charset")===-1){var h=_.charset(g);h&&(g+="; charset="+h.toLowerCase())}return g},_.extension=function(f){if(!f||typeof f!="string")return!1;var g=p.exec(f),h=g&&_.extensions[g[1].toLowerCase()];return!(!h||!h.length)&&h[0]},_.extensions=Object.create(null),_.lookup=function(f){if(!f||typeof f!="string")return!1;var g=s("x."+f).toLowerCase().substr(1);return g&&_.types[g]||!1},_.types=Object.create(null),M=_.extensions,v=_.types,m=["nginx","apache",void 0,"iana"],Object.keys(E).forEach(function(f){var g=E[f],h=g.extensions;if(h&&h.length){M[f]=h;for(var u=0;u<h.length;u++){var w=h[u];if(v[w]){var b=m.indexOf(E[v[w]].source),k=m.indexOf(g.source);if(v[w]!=="application/octet-stream"&&(b>k||b===k&&v[w].substr(0,12)==="application/"))continue}v[w]=f}}})},9746:H=>{function _(y,M){if(!y)throw new Error(M||"Assertion failed")}H.exports=_,_.equal=function(y,M,v){if(y!=M)throw new Error(v||"Assertion failed: "+y+" != "+M)}},4504:(H,_)=>{var y=_;function M(m){return m.length===1?"0"+m:m}function v(m){for(var E="",s=0;s<m.length;s++)E+=M(m[s].toString(16));return E}y.toArray=function(m,E){if(Array.isArray(m))return m.slice();if(!m)return[];var s=[];if(typeof m!="string"){for(var p=0;p<m.length;p++)s[p]=0|m[p];return s}if(E==="hex")for((m=m.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(m="0"+m),p=0;p<m.length;p+=2)s.push(parseInt(m[p]+m[p+1],16));else for(p=0;p<m.length;p++){var c=m.charCodeAt(p),l=c>>8,f=255&c;l?s.push(l,f):s.push(f)}return s},y.zero2=M,y.toHex=v,y.encode=function(m,E){return E==="hex"?v(m):m}},8566:(H,_,y)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var M,v=(M=y(8721))&&M.__esModule?M:{default:M};_.default=class{constructor({accessKey:m,secretKey:E,sessionToken:s}){this.credentials=new v.default({accessKey:m,secretKey:E,sessionToken:s})}getCredentials(){return this.credentials.get()}setCredentials(m){if(!(m instanceof v.default))throw new Error("Unable to set Credentials . it should be an instance of Credentials class");this.credentials=m}setAccessKey(m){this.credentials.setAccessKey(m)}getAccessKey(){return this.credentials.getAccessKey()}setSecretKey(m){this.credentials.setSecretKey(m)}getSecretKey(){return this.credentials.getSecretKey()}setSessionToken(m){this.credentials.setSessionToken(m)}getSessionToken(){return this.credentials.getSessionToken()}}},8721:(H,_)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,_.default=class{constructor({accessKey:y,secretKey:M,sessionToken:v}){this.accessKey=y,this.secretKey=M,this.sessionToken=v}setAccessKey(y){this.accessKey=y}getAccessKey(){return this.accessKey}setSecretKey(y){this.secretKey=y}getSecretKey(){return this.secretKey}setSessionToken(y){this.sessionToken=y}getSessionToken(){return this.sessionToken}get(){return{accessKey:this.accessKey,secretKey:this.secretKey,sessionToken:this.sessionToken}}}},1271:(H,_,y)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.SecretKeyRequiredError=_.S3Error=_.InvalidXMLError=_.InvalidPrefixError=_.InvalidPortError=_.InvalidObjectNameError=_.InvalidEndpointError=_.InvalidDateError=_.InvalidBucketPolicyError=_.InvalidBucketNameError=_.InvalidArgumentError=_.IncorrectSizeError=_.ExpiresParamError=_.AnonymousRequestError=_.AccessKeyRequiredError=void 0;var M,v=(M=y(7216))&&M.__esModule?M:{default:M};class m extends v.default{constructor(P){super(P)}}_.AnonymousRequestError=m;class E extends v.default{constructor(P){super(P)}}_.InvalidArgumentError=E;class s extends v.default{constructor(P){super(P)}}_.InvalidPortError=s;class p extends v.default{constructor(P){super(P)}}_.InvalidEndpointError=p;class c extends v.default{constructor(P){super(P)}}_.InvalidBucketNameError=c;class l extends v.default{constructor(P){super(P)}}_.InvalidObjectNameError=l;class f extends v.default{constructor(P){super(P)}}_.AccessKeyRequiredError=f;class g extends v.default{constructor(P){super(P)}}_.SecretKeyRequiredError=g;class h extends v.default{constructor(P){super(P)}}_.ExpiresParamError=h;class u extends v.default{constructor(P){super(P)}}_.InvalidDateError=u;class w extends v.default{constructor(P){super(P)}}_.InvalidPrefixError=w;class b extends v.default{constructor(P){super(P)}}_.InvalidBucketPolicyError=b;class k extends v.default{constructor(P){super(P)}}_.IncorrectSizeError=k;class A extends v.default{constructor(P){super(P)}}_.InvalidXMLError=A;class x extends v.default{constructor(P){super(P)}}_.S3Error=x},3427:(H,_,y)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var M,v=(M=y(2830))&&M.__esModule?M:{default:M},m=c(y(6607)),E=c(y(1271)),s=y(1627);function p(l){if(typeof WeakMap!="function")return null;var f=new WeakMap,g=new WeakMap;return(p=function(h){return h?g:f})(l)}function c(l,f){if(!f&&l&&l.__esModule)return l;if(l===null||typeof l!="object"&&typeof l!="function")return{default:l};var g=p(f);if(g&&g.has(l))return g.get(l);var h={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in l)if(w!=="default"&&Object.prototype.hasOwnProperty.call(l,w)){var b=u?Object.getOwnPropertyDescriptor(l,w):null;b&&(b.get||b.set)?Object.defineProperty(h,w,b):h[w]=l[w]}return h.default=l,g&&g.set(l,h),h}_.default=class{constructor(l){this.client=l}listObjectsV2WithMetadata(l,f,g,h){if(f===void 0&&(f=""),g===void 0&&(g=!1),h===void 0&&(h=""),!(0,s.isValidBucketName)(l))throw new E.InvalidBucketNameError("Invalid bucket name: "+l);if(!(0,s.isValidPrefix)(f))throw new E.InvalidPrefixError(`Invalid prefix : ${f}`);if(!(0,s.isString)(f))throw new TypeError('prefix should be of type "string"');if(!(0,s.isBoolean)(g))throw new TypeError('recursive should be of type "boolean"');if(!(0,s.isString)(h))throw new TypeError('startAfter should be of type "string"');var u=g?"":"/",w="",b=[],k=!1,A=v.default.Readable({objectMode:!0});return A._read=()=>{if(!b.length)return k?A.push(null):void this.listObjectsV2WithMetadataQuery(l,f,w,u,1e3,h).on("error",x=>A.emit("error",x)).on("data",x=>{x.isTruncated?w=x.nextContinuationToken:k=!0,b=x.objects,A._read()});A.push(b.shift())},A}listObjectsV2WithMetadataQuery(l,f,g,h,u,w){if(!(0,s.isValidBucketName)(l))throw new E.InvalidBucketNameError("Invalid bucket name: "+l);if(!(0,s.isString)(f))throw new TypeError('prefix should be of type "string"');if(!(0,s.isString)(g))throw new TypeError('continuationToken should be of type "string"');if(!(0,s.isString)(h))throw new TypeError('delimiter should be of type "string"');if(!(0,s.isNumber)(u))throw new TypeError('maxKeys should be of type "number"');if(!(0,s.isString)(w))throw new TypeError('startAfter should be of type "string"');var b=[];b.push("list-type=2"),b.push("encoding-type=url"),b.push(`prefix=${(0,s.uriEscape)(f)}`),b.push(`delimiter=${(0,s.uriEscape)(h)}`),b.push("metadata=true"),g&&(g=(0,s.uriEscape)(g),b.push(`continuation-token=${g}`)),w&&(w=(0,s.uriEscape)(w),b.push(`start-after=${w}`)),u&&(u>=1e3&&(u=1e3),b.push(`max-keys=${u}`)),b.sort();var k="";b.length>0&&(k=`${b.join("&")}`);var A=m.getListObjectsV2WithMetadataTransformer();return this.client.makeRequest({method:"GET",bucketName:l,query:k},"",[200],"",!0,(x,j)=>{if(x)return A.emit("error",x);(0,s.pipesetup)(j,A)}),A}}},1627:(H,_,y)=>{var M=y(8764).Buffer;Object.defineProperty(_,"__esModule",{value:!0}),_.SelectResults=_.RETENTION_VALIDITY_UNITS=_.RETENTION_MODES=_.PART_CONSTRAINTS=_.LEGAL_HOLD_STATUS=_.ENCRYPTION_TYPES=_.DEFAULT_REGION=_.CopySourceOptions=_.CopyDestinationOptions=void 0,_.calculateEvenSplits=function(D,Y){if(D===0)return null;const z=F(D);Z=new Array(z),ie=new Array(z);let W=Y.Start;(p.default.isEmpty(Y.Start)||W===-1)&&(W=0);const ae=Math.trunc(D/z),re=D%z;let le=W;for(let ke=0;ke<z;ke++){let ge=ae;ke<re&&ge++;const be=le;let je=be+ge-1;le=je+1,Z[ke]=be,ie[ke]=je}return{startIndex:Z,endIndex:ie,objInfo:Y}},_.extractMetadata=function(D){var Y={};for(var z in D)(t(z)||o(z)||n(z))&&(z.toLowerCase().startsWith("x-amz-meta-")?Y[z.slice(11,z.length)]=D[z]:Y[z]=D[z]);return Y},_.getScope=function(D,Y,z="s3"){return`${i(Y)}/${D}/${z}/aws4_request`},_.getSourceVersionId=function(D={}){return D["x-amz-copy-source-version-id"]||null},_.getVersionId=function(D={}){return D["x-amz-version-id"]||null},_.insertContentType=function(D,Y){for(var z in D)if(z.toLowerCase()==="content-type")return D;var W=Object.assign({},D);return W["content-type"]=P(Y),W},_.isAmazonEndpoint=A,_.isAmzHeader=n,_.isArray=function(D){return Array.isArray(D)},_.isBoolean=function(D){return typeof D=="boolean"},_.isFunction=oe,_.isNumber=J,_.isObject=r,_.isReadableStream=function(D){return r(D)&&oe(D._read)},_.isStorageclassHeader=o,_.isString=e,_.isSupportedHeader=t,_.isValidBucketName=B,_.isValidDate=function(D){return D instanceof Date&&!isNaN(D)},_.isValidDomain=j,_.isValidEndpoint=function(D){return j(D)||x(D)},_.isValidIP=x,_.isValidObjectName=$,_.isValidPort=function(D){return!!J(D)&&!(D<0)&&(D===0||D>=1&&D<=65535)},_.isValidPrefix=te,_.isVirtualHostStyle=function(D,Y,z,W){return!(Y==="https:"&&z.indexOf(".")>-1)&&(A(D)||!W)},_.makeDateLong=function(D){return(D=(D=D||new Date).toISOString()).slice(0,4)+D.slice(5,7)+D.slice(8,13)+D.slice(14,16)+D.slice(17,19)+"Z"},_.makeDateShort=i,_.partsRequired=_.parseXml=void 0,_.pipesetup=function(...D){return D.reduce((Y,z)=>(Y.on("error",W=>z.emit("error",W)),Y.pipe(z)))},_.prependXAMZMeta=function(D){var Y=Object.assign({},D);for(var z in D)n(z)||t(z)||o(z)||(Y["X-Amz-Meta-"+z]=Y[z],delete Y[z]);return Y},_.probeContentType=P,_.promisify=function(D){return function(){if(typeof arguments[arguments.length-1]=="function")return D.apply(this,arguments);let Y=[...arguments];return new Promise((z,W)=>{Y.push((ae,re)=>{if(ae)return W(ae);z(re)}),D.apply(this,Y)})}},_.readableStream=function(D){var Y=new v.default.Readable;return Y._read=()=>{},Y.push(D),Y.push(null),Y},_.removeDirAndFiles=function D(Y,z){z===void 0&&(z=!0);try{var W=w.readdirSync(Y)}catch{return}if(W.length>0)for(var ae=0;ae<W.length;ae++){var re=b.join(Y,W[ae]);w.statSync(re).isFile()?w.unlinkSync(re):D(re)}z&&w.rmdirSync(Y)},_.sanitizeETag=function(D=""){var Y={'"':"",""":"",""":"",""":"",""":""};return D.replace(/^("|"|")|("|"|")$/g,z=>Y[z])},_.toSha256=_.toMd5=_.toArray=_.sanitizeObjectKey=void 0,_.uriEscape=k,_.uriResourceEscape=function(D){return k(D).replace(/%2F/g,"/")};var v=g(y(2830)),m=g(y(983)),E=g(y(6965)),s=y(3818),p=g(y(6486)),c=function(D,Y){if(D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var z=f(Y);if(z&&z.has(D))return z.get(D);var W={},ae=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in D)if(re!=="default"&&Object.prototype.hasOwnProperty.call(D,re)){var le=ae?Object.getOwnPropertyDescriptor(D,re):null;le&&(le.get||le.set)?Object.defineProperty(W,re,le):W[re]=D[re]}return W.default=D,z&&z.set(D,W),W}(y(1271)),l=g(y(7563));function f(D){if(typeof WeakMap!="function")return null;var Y=new WeakMap,z=new WeakMap;return(f=function(W){return W?z:Y})(D)}function g(D){return D&&D.__esModule?D:{default:D}}var h=y(5835);const u=y(6512),w=y(4749),b=y(6470);function k(D){return D.split("").reduce((Y,z)=>{let W=M.from(z);if(W.length===1&&("A"<=z&&z<="Z"||"a"<=z&&z<="z"||"0"<=z&&z<="9"||z==="_"||z==="."||z==="~"||z==="-"))return Y+z;for(var ae=0;ae<W.length;ae++)Y=Y+"%"+W[ae].toString(16).toUpperCase();return Y},"")}function A(D){return D==="s3.amazonaws.com"||D==="s3.cn-north-1.amazonaws.com.cn"}function x(D){return u.isValid(D)}function j(D){if(!e(D)||D.length===0||D.length>255||D[0]==="-"||D.slice(-1)==="-"||D[0]==="_"||D.slice(-1)==="_"||D[0]===".")return!1;var Y="`~!@#$%^&*()+={}[]|\\\"';:><?/".split("");for(var z in Y)if(D.indexOf(Y[z])>-1)return!1;return!0}function P(D){let Y=m.default.lookup(D);return Y||(Y="application/octet-stream"),Y}function B(D){return!(!e(D)||D.length<3||D.length>63||D.indexOf("..")>-1||D.match(/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/)||!D.match(/^[a-z0-9][a-z0-9.-]+[a-z0-9]$/))}function $(D){return!!te(D)&&D.length!==0}function te(D){return!(!e(D)||D.length>1024)}function J(D){return typeof D=="number"}function oe(D){return typeof D=="function"}function e(D){return typeof D=="string"}function r(D){return typeof D=="object"&&D!==null}function i(D){return(D=(D=D||new Date).toISOString()).slice(0,4)+D.slice(5,7)+D.slice(8,10)}function n(D){var Y=D.toLowerCase();return Y.startsWith("x-amz-meta-")||Y==="x-amz-acl"||Y.startsWith("x-amz-server-side-encryption-")||Y==="x-amz-server-side-encryption"}function t(D){return["content-type","cache-control","content-encoding","content-disposition","content-language","x-amz-website-redirect-location"].indexOf(D.toLowerCase())>-1}function o(D){return D.toLowerCase()==="x-amz-storage-class"}const a={GOVERNANCE:"GOVERNANCE",COMPLIANCE:"COMPLIANCE"};_.RETENTION_MODES=a,_.RETENTION_VALIDITY_UNITS={DAYS:"Days",YEARS:"Years"},_.LEGAL_HOLD_STATUS={ENABLED:"ON",DISABLED:"OFF"},_.toMd5=D=>{let Y=(z=>M.from(M.from(z)))(D);return Y=s.isBrowser?Y.toString():Y,h.createHash("md5").update(Y).digest().toString("base64")},_.toSha256=D=>h.createHash("sha256").update(D).digest("hex"),_.toArray=D=>Array.isArray(D)?D:[D],_.sanitizeObjectKey=D=>{let Y=(D||"").replace(/\+/g," ");return decodeURIComponent(Y)};const T={ABS_MIN_PART_SIZE:5242880,MIN_PART_SIZE:16777216,MAX_PARTS_COUNT:1e4,MAX_PART_SIZE:5368709120,MAX_SINGLE_PUT_OBJECT_SIZE:5368709120,MAX_MULTIPART_PUT_OBJECT_SIZE:5497558138880};_.PART_CONSTRAINTS=T;const C={SSEC:"SSE-C",KMS:"KMS"};_.ENCRYPTION_TYPES=C;const N="X-Amz-Server-Side-Encryption",O=N,R=N+"-Aws-Kms-Key-Id";_.CopySourceOptions=class{constructor({Bucket:D="",Object:Y="",VersionID:z="",MatchETag:W="",NoMatchETag:ae="",MatchModifiedSince:re=null,MatchUnmodifiedSince:le=null,MatchRange:ke=!1,Start:ge=0,End:be=0,Encryption:je={}}={}){this.Bucket=D,this.Object=Y,this.VersionID=z,this.MatchETag=W,this.NoMatchETag=ae,this.MatchModifiedSince=re,this.MatchUnmodifiedSince=le,this.MatchRange=ke,this.Start=ge,this.End=be,this.Encryption=je}validate(){if(!B(this.Bucket))throw new c.InvalidBucketNameError("Invalid Source bucket name: "+this.Bucket);if(!$(this.Object))throw new c.InvalidObjectNameError(`Invalid Source object name: ${this.Object}`);if(this.MatchRange&&this.Start!==-1&&this.End!==-1&&this.Start>this.End||this.Start<0)throw new c.InvalidObjectNameError("Source start must be non-negative, and start must be at most end.");if(this.MatchRange&&!J(this.Start)||!J(this.End))throw new c.InvalidObjectNameError("MatchRange is specified. But Invalid Start and End values are specified. ");return!0}getHeaders(){let D={};return D["x-amz-copy-source"]=encodeURI(this.Bucket+"/"+this.Object),p.default.isEmpty(this.VersionID)||(D["x-amz-copy-source"]=encodeURI(this.Bucket+"/"+this.Object)+"?versionId="+this.VersionID),p.default.isEmpty(this.MatchETag)||(D["x-amz-copy-source-if-match"]=this.MatchETag),p.default.isEmpty(this.NoMatchETag)||(D["x-amz-copy-source-if-none-match"]=this.NoMatchETag),p.default.isEmpty(this.MatchModifiedSince)||(D["x-amz-copy-source-if-modified-since"]=this.MatchModifiedSince),p.default.isEmpty(this.MatchUnmodifiedSince)||(D["x-amz-copy-source-if-unmodified-since"]=this.MatchUnmodifiedSince),D}},_.CopyDestinationOptions=class{constructor({Bucket:D="",Object:Y="",Encryption:z=null,UserMetadata:W=null,UserTags:ae=null,LegalHold:re=null,RetainUntilDate:le=null,Mode:ke=null}){this.Bucket=D,this.Object=Y,this.Encryption=z,this.UserMetadata=W,this.UserTags=ae,this.LegalHold=re,this.Mode=ke,this.RetainUntilDate=le}getHeaders(){const D={},Y=this.UserTags;if(p.default.isEmpty(Y)||(D["X-Amz-Tagging-Directive"]="REPLACE",D["X-Amz-Tagging"]=r(Y)?l.default.stringify(Y):e(Y)?Y:""),p.default.isEmpty(this.Mode)||(D["X-Amz-Object-Lock-Mode"]=this.Mode),p.default.isEmpty(this.RetainUntilDate)||(D["X-Amz-Object-Lock-Retain-Until-Date"]=this.RetainUntilDate),p.default.isEmpty(this.LegalHold)||(D["X-Amz-Object-Lock-Legal-Hold"]=this.LegalHold),p.default.isEmpty(this.UserMetadata)||Object.keys(this.UserMetadata).forEach(z=>{D[`X-Amz-Meta-${z}`]=this.UserMetadata[z]}),!p.default.isEmpty(this.Encryption)){const z=function(W){const ae=W.type,re={};if(!p.default.isEmpty(ae)){if(ae===C.SSEC)return{[re[O]]:"AES256"};if(ae===C.KMS)return{[O]:W.SSEAlgorithm,[R]:W.KMSMasterKeyID}}return re}(this.Encryption);Object.keys(z).forEach(W=>{D[W]=z[W]})}return D}validate(){if(!B(this.Bucket))throw new c.InvalidBucketNameError("Invalid Destination bucket name: "+this.Bucket);if(!$(this.Object))throw new c.InvalidObjectNameError(`Invalid Destination object name: ${this.Object}`);if(!p.default.isEmpty(this.UserMetadata)&&!r(this.UserMetadata))throw new c.InvalidObjectNameError("Destination UserMetadata should be an object with key value pairs");if(!p.default.isEmpty(this.Mode)&&![a.GOVERNANCE,a.COMPLIANCE].includes(this.Mode))throw new c.InvalidObjectNameError("Invalid Mode specified for destination object it should be one of [GOVERNANCE,COMPLIANCE]");if(!p.default.isEmpty(this.Encryption)&&p.default.isEmpty(this.Encryption))throw new c.InvalidObjectNameError("Invalid Encryption configuration for destination object ");return!0}};const F=D=>{let Y=T.MAX_MULTIPART_PUT_OBJECT_SIZE/(T.MAX_PARTS_COUNT-1),z=D/Y;return D%Y>0&&z++,z=Math.trunc(z),z};_.partsRequired=F;let Z=[],ie=[];_.parseXml=D=>{let Y=null;if(Y=E.default.parse(D),Y.Error)throw Y.Error;return Y},_.SelectResults=class{constructor({records:D,response:Y,stats:z,progress:W}){this.records=D,this.response=Y,this.stats=z,this.progress=W}setStats(D){this.stats=D}getStats(){return this.stats}setProgress(D){this.progress=D}getProgress(){return this.progress}setResponse(D){this.response=D}getResponse(){return this.response}setRecords(D){this.records=D}getRecords(){return this.records}},_.DEFAULT_REGION="us-east-1"},2525:(H,_,y)=>{var M=y(4155),v=y(8764).Buffer;Object.defineProperty(_,"__esModule",{value:!0});var m={Client:!0,CopyConditions:!0,PostPolicy:!0};_.PostPolicy=_.CopyConditions=_.Client=void 0;var E=t(y(4749)),s=t(y(8501)),p=t(y(9267)),c=t(y(2830)),l=t(y(9e3)),f=t(y(3479)),g=t(y(5055)),h=t(y(1641)),u=t(y(7563)),w=t(y(1890)),b=t(y(6470)),k=t(y(6486)),A=y(7259),x=y(1627),j=y(5858),P=t(y(3861)),B=n(y(6607)),$=n(y(1271)),te=y(1670),J=y(3606);Object.keys(J).forEach(function(N){N!=="default"&&N!=="__esModule"&&(Object.prototype.hasOwnProperty.call(m,N)||N in _&&_[N]===J[N]||Object.defineProperty(_,N,{enumerable:!0,get:function(){return J[N]}}))});var oe=t(y(3427)),e=t(y(8566)),r=y(2262);function i(N){if(typeof WeakMap!="function")return null;var O=new WeakMap,R=new WeakMap;return(i=function(F){return F?R:O})(N)}function n(N,O){if(!O&&N&&N.__esModule)return N;if(N===null||typeof N!="object"&&typeof N!="function")return{default:N};var R=i(O);if(R&&R.has(N))return R.get(N);var F={},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ie in N)if(ie!=="default"&&Object.prototype.hasOwnProperty.call(N,ie)){var D=Z?Object.getOwnPropertyDescriptor(N,ie):null;D&&(D.get||D.set)?Object.defineProperty(F,ie,D):F[ie]=N[ie]}return F.default=N,R&&R.set(N,F),F}function t(N){return N&&N.__esModule?N:{default:N}}var o=y(5454);class a{constructor(O){if(O.secure!==void 0)throw new Error('"secure" option deprecated, "useSSL" should be used instead');if(O.useSSL===void 0&&(O.useSSL=!0),O.port||(O.port=0),!(0,x.isValidEndpoint)(O.endPoint))throw new $.InvalidEndpointError(`Invalid endPoint : ${O.endPoint}`);if(!(0,x.isValidPort)(O.port))throw new $.InvalidArgumentError(`Invalid port : ${O.port}`);if(!(0,x.isBoolean)(O.useSSL))throw new $.InvalidArgumentError(`Invalid useSSL flag type : ${O.useSSL}, expected to be of type "boolean"`);if(O.region&&!(0,x.isString)(O.region))throw new $.InvalidArgumentError(`Invalid region : ${O.region}`);var R,F=O.endPoint.toLowerCase(),Z=O.port,ie="";if(O.useSSL===!1?(R=s.default,ie="http:",Z===0&&(Z=80)):(R=p.default,ie="https:",Z===0&&(Z=443)),O.transport){if(!(0,x.isObject)(O.transport))throw new $.InvalidArgumentError('Invalid transport type : ${params.transport}, expected to be type "object"');R=O.transport}var D=`MinIO (${M.platform}; ${M.arch}) minio-js/${o.version}`;if(this.transport=R,this.host=F,this.port=Z,this.protocol=ie,this.accessKey=O.accessKey,this.secretKey=O.secretKey,this.sessionToken=O.sessionToken,this.userAgent=`${D}`,O.pathStyle===void 0?this.pathStyle=!0:this.pathStyle=O.pathStyle,this.accessKey||(this.accessKey=""),this.secretKey||(this.secretKey=""),this.anonymous=!this.accessKey||!this.secretKey,O.credentialsProvider&&(this.credentialsProvider=O.credentialsProvider,this.checkAndRefreshCreds()),this.regionMap={},O.region&&(this.region=O.region),this.partSize=67108864,O.partSize&&(this.partSize=O.partSize,this.overRidePartSize=!0),this.partSize<5242880)throw new $.InvalidArgumentError("Part size should be greater than 5MB");if(this.partSize>5368709120)throw new $.InvalidArgumentError("Part size should be less than 5GB");this.maximumPartSize=5368709120,this.maxObjectSize=5497558138880,this.enableSHA256=!this.anonymous&&!O.useSSL,this.s3AccelerateEndpoint=O.s3AccelerateEndpoint||null,this.reqOptions={}}getAccelerateEndPointIfSet(O,R){if(!k.default.isEmpty(this.s3AccelerateEndpoint)&&!k.default.isEmpty(O)&&!k.default.isEmpty(R)){if(O.indexOf(".")!==-1)throw new Error(`Transfer Acceleration is not supported for non compliant bucket:${O}`);return this.s3AccelerateEndpoint}return!1}setS3TransferAccelerate(O){this.s3AccelerateEndpoint=O}setRequestOptions(O){if(!(0,x.isObject)(O))throw new TypeError('request options should be of type "object"');this.reqOptions=k.default.pick(O,["agent","ca","cert","ciphers","clientCertEngine","crl","dhparam","ecdhCurve","family","honorCipherOrder","key","passphrase","pfx","rejectUnauthorized","secureOptions","secureProtocol","servername","sessionIdContext"])}getRequestOptions(O){var R,F=O.method,Z=O.region,ie=O.bucketName,D=O.objectName,Y=O.headers,z=O.query,W={method:F,headers:{}};if(ie&&(R=(0,x.isVirtualHostStyle)(this.host,this.protocol,ie,this.pathStyle)),this.port&&(W.port=this.port),W.protocol=this.protocol,D&&(D=`${(0,x.uriResourceEscape)(D)}`),W.path="/",W.host=this.host,(0,x.isAmazonEndpoint)(W.host)){const ae=this.getAccelerateEndPointIfSet(ie,D);W.host=ae?`${ae}`:(0,te.getS3Endpoint)(Z)}return R&&!O.pathStyle?(ie&&(W.host=`${ie}.${W.host}`),D&&(W.path=`/${D}`)):(ie&&(W.path=`/${ie}`),D&&(W.path=`/${ie}/${D}`)),z&&(W.path+=`?${z}`),W.headers.host=W.host,(W.protocol==="http:"&&W.port!==80||W.protocol==="https:"&&W.port!==443)&&(W.headers.host=`${W.host}:${W.port}`),W.headers["user-agent"]=this.userAgent,Y&&k.default.map(Y,(ae,re)=>W.headers[re.toLowerCase()]=ae),W=Object.assign({},this.reqOptions,W)}setAppInfo(O,R){if(!(0,x.isString)(O))throw new TypeError(`Invalid appName: ${O}`);if(O.trim()==="")throw new $.InvalidArgumentError("Input appName cannot be empty.");if(!(0,x.isString)(R))throw new TypeError(`Invalid appVersion: ${R}`);if(R.trim()==="")throw new $.InvalidArgumentError("Input appVersion cannot be empty.");this.userAgent=`${this.userAgent} ${O}/${R}`}calculatePartSize(O){if(!(0,x.isNumber)(O))throw new TypeError('size should be of type "number"');if(O>this.maxObjectSize)throw new TypeError(`size should not be more than ${this.maxObjectSize}`);if(this.overRidePartSize)return this.partSize;for(var R=this.partSize;;){if(1e4*R>O)return R;R+=16777216}}logHTTP(O,R,F){if(this.logStream){if(!(0,x.isObject)(O))throw new TypeError('reqOptions should be of type "object"');if(R&&!(0,x.isReadableStream)(R))throw new TypeError('response should be of type "Stream"');if(F&&!(F instanceof Error))throw new TypeError('err should be of type "Error"');var Z=D=>{k.default.forEach(D,(Y,z)=>{if(z=="authorization"){var W=new RegExp("Signature=([0-9a-f]+)");Y=Y.replace(W,"Signature=**REDACTED**")}this.logStream.write(`${z}: ${Y}
|
|
95
|
+
`)}),this.logStream.write(`
|
|
96
|
+
`)};if(this.logStream.write(`REQUEST: ${O.method} ${O.path}
|
|
97
|
+
`),Z(O.headers),R&&(this.logStream.write(`RESPONSE: ${R.statusCode}
|
|
98
|
+
`),Z(R.headers)),F){this.logStream.write(`ERROR BODY:
|
|
99
|
+
`);var ie=JSON.stringify(F,null," ");this.logStream.write(`${ie}
|
|
100
|
+
`)}}}traceOn(O){O||(O=M.stdout),this.logStream=O}traceOff(){this.logStream=null}makeRequest(O,R,F,Z,ie,D){if(!(0,x.isObject)(O))throw new TypeError('options should be of type "object"');if(!(0,x.isString)(R)&&!(0,x.isObject)(R))throw new TypeError('payload should be of type "string" or "Buffer"');if(F.forEach(W=>{if(!(0,x.isNumber)(W))throw new TypeError('statusCode should be of type "number"')}),!(0,x.isString)(Z))throw new TypeError('region should be of type "string"');if(!(0,x.isBoolean)(ie))throw new TypeError('returnResponse should be of type "boolean"');if(!(0,x.isFunction)(D))throw new TypeError('callback should be of type "function"');O.headers||(O.headers={}),O.method!=="POST"&&O.method!=="PUT"&&O.method!=="DELETE"||(O.headers["content-length"]=R.length);var Y="";this.enableSHA256&&(Y=(0,x.toSha256)(R));var z=(0,x.readableStream)(R);this.makeRequestStream(O,z,Y,F,Z,ie,D)}makeRequestStream(O,R,F,Z,ie,D,Y){if(!(0,x.isObject)(O))throw new TypeError('options should be of type "object"');if(!(0,x.isReadableStream)(R))throw new $.InvalidArgumentError("stream should be a readable Stream");if(!(0,x.isString)(F))throw new TypeError('sha256sum should be of type "string"');if(Z.forEach(W=>{if(!(0,x.isNumber)(W))throw new TypeError('statusCode should be of type "number"')}),!(0,x.isString)(ie))throw new TypeError('region should be of type "string"');if(!(0,x.isBoolean)(D))throw new TypeError('returnResponse should be of type "boolean"');if(!(0,x.isFunction)(Y))throw new TypeError('callback should be of type "function"');if(!this.enableSHA256&&F.length!==0)throw new $.InvalidArgumentError("sha256sum expected to be empty for anonymous or https requests");if(this.enableSHA256&&F.length!==64)throw new $.InvalidArgumentError(`Invalid sha256sum : ${F}`);var z=(W,ae)=>{if(W)return Y(W);O.region=ae;var re=this.getRequestOptions(O);if(!this.anonymous){this.enableSHA256||(F="UNSIGNED-PAYLOAD");let ge=new Date;re.headers["x-amz-date"]=(0,x.makeDateLong)(ge),re.headers["x-amz-content-sha256"]=F,this.sessionToken&&(re.headers["x-amz-security-token"]=this.sessionToken),this.checkAndRefreshCreds();var le=(0,j.signV4)(re,this.accessKey,this.secretKey,ae,ge);re.headers.authorization=le}var ke=this.transport.request(re,ge=>{if(Z.includes(ge.statusCode)){if(this.logHTTP(re,ge),D)return Y(null,ge);ge.on("data",()=>{}),Y(null)}else{delete this.regionMap[O.bucketName];var be=B.getErrorTransformer(ge);(0,x.pipesetup)(ge,be).on("error",je=>{this.logHTTP(re,ge,je),Y(je)})}});(0,x.pipesetup)(R,ke).on("error",ge=>{this.logHTTP(re,null,ge),Y(ge)})};if(ie)return z(null,ie);this.getBucketRegion(O.bucketName,z)}getBucketRegion(O,R){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError(`Invalid bucket name : ${O}`);if(!(0,x.isFunction)(R))throw new TypeError('cb should be of type "function"');if(this.region)return R(null,this.region);if(this.regionMap[O])return R(null,this.regionMap[O]);var F=D=>{var Y=B.getBucketRegionTransformer(),z=x.DEFAULT_REGION;(0,x.pipesetup)(D,Y).on("error",R).on("data",W=>{W&&(z=W)}).on("end",()=>{this.regionMap[O]=z,R(null,z)})},Z="location",ie=this.pathStyle&&typeof window>"u";this.makeRequest({method:"GET",bucketName:O,query:Z,pathStyle:ie},"",[200],x.DEFAULT_REGION,!0,(D,Y)=>{if(D){if(D.name==="AuthorizationHeaderMalformed"){var z=D.Region;return z?void this.makeRequest({method:"GET",bucketName:O,query:Z},"",[200],z,!0,(W,ae)=>{if(W)return R(W);F(ae)}):R(D)}return R(D)}F(Y)})}makeBucket(O,R,F={},Z){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if((0,x.isObject)(R)&&(Z=F,F=R,R=""),(0,x.isFunction)(R)&&(Z=R,R="",F={}),(0,x.isFunction)(F)&&(Z=F,F={}),!(0,x.isString)(R))throw new TypeError('region should be of type "string"');if(!(0,x.isObject)(F))throw new TypeError('makeOpts should be of type "object"');if(!(0,x.isFunction)(Z))throw new TypeError('callback should be of type "function"');var ie="";if(R&&this.region&&R!==this.region)throw new $.InvalidArgumentError(`Configured region ${this.region}, requested ${R}`);if(R&&R!==x.DEFAULT_REGION){var D=[];D.push({_attr:{xmlns:"http://s3.amazonaws.com/doc/2006-03-01/"}}),D.push({LocationConstraint:R});var Y={CreateBucketConfiguration:D};ie=(0,f.default)(Y)}var z={};F.ObjectLocking&&(z["x-amz-bucket-object-lock-enabled"]=!0),R||(R=x.DEFAULT_REGION),this.makeRequest({method:"PUT",bucketName:O,headers:z},ie,[200],R,!1,W=>{if(W&&(R===""||R===x.DEFAULT_REGION)){if(W.code!=="AuthorizationHeaderMalformed"||W.region==="")return Z&&Z(W);this.makeRequest({method:"PUT",bucketName:O,headers:z},ie,[200],W.region,!1,Z)}return Z&&Z(W)})}listBuckets(O){if(!(0,x.isFunction)(O))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET"},"",[200],x.DEFAULT_REGION,!0,(R,F)=>{if(R)return O(R);var Z,ie=B.getListBucketTransformer();(0,x.pipesetup)(F,ie).on("data",D=>Z=D).on("error",D=>O(D)).on("end",()=>O(null,Z))})}listIncompleteUploads(O,R,F){if(R===void 0&&(R=""),F===void 0&&(F=!1),!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidPrefix)(R))throw new $.InvalidPrefixError(`Invalid prefix : ${R}`);if(!(0,x.isBoolean)(F))throw new TypeError('recursive should be of type "boolean"');var Z=F?"":"/",ie="",D="",Y=[],z=!1,W=c.default.Readable({objectMode:!0});return W._read=()=>Y.length?W.push(Y.shift()):z?W.push(null):void this.listIncompleteUploadsQuery(O,R,ie,D,Z).on("error",ae=>W.emit("error",ae)).on("data",ae=>{ae.prefixes.forEach(re=>Y.push(re)),h.default.eachSeries(ae.uploads,(re,le)=>{this.listParts(O,re.key,re.uploadId,(ke,ge)=>{if(ke)return le(ke);re.size=ge.reduce((be,je)=>be+je.size,0),Y.push(re),le()})},re=>{re?W.emit("error",re):(ae.isTruncated?(ie=ae.nextKeyMarker,D=ae.nextUploadIdMarker):z=!0,W._read())})}),W}bucketExists(O,R){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isFunction)(R))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"HEAD",bucketName:O},"",[200],"",!1,F=>{if(F)return F.code=="NoSuchBucket"||F.code=="NotFound"?R(null,!1):R(F);R(null,!0)})}removeBucket(O,R){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isFunction)(R))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"DELETE",bucketName:O},"",[204],"",!1,F=>{F||delete this.regionMap[O],R(F)})}removeIncompleteUpload(O,R,F){if(!(0,x.isValidBucketName)(O))throw new $.isValidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isFunction)(F))throw new TypeError('callback should be of type "function"');var Z;h.default.during(ie=>{this.findUploadId(O,R,(D,Y)=>{if(D)return ie(D);Z=Y,ie(null,Y)})},ie=>{var D=`uploadId=${Z}`;this.makeRequest({method:"DELETE",bucketName:O,objectName:R,query:D},"",[204],"",!1,Y=>ie(Y))},F)}fGetObject(O,R,F,Z={},ie){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isString)(F))throw new TypeError('filePath should be of type "string"');if((0,x.isFunction)(Z)&&(ie=Z,Z={}),!(0,x.isFunction)(ie))throw new TypeError('callback should be of type "function"');var D,Y,z,W=ae=>{if(ae)return ie(ae);E.default.rename(D,F,ie)};h.default.waterfall([ae=>this.statObject(O,R,Z,ae),(ae,re)=>{z=ae,(0,w.default)(b.default.dirname(F),re)},(ae,re)=>{D=`${F}.${z.etag}.part.minio`,E.default.stat(D,(le,ke)=>{var ge=0;if(le)Y=E.default.createWriteStream(D,{flags:"w"});else{if(z.size===ke.size)return W();ge=ke.size,Y=E.default.createWriteStream(D,{flags:"a"})}this.getPartialObject(O,R,ge,0,Z,re)})},(ae,re)=>{(0,x.pipesetup)(ae,Y).on("error",le=>re(le)).on("finish",re)},ae=>E.default.stat(D,ae),(ae,re)=>{if(ae.size===z.size)return re();re(new Error("Size mismatch between downloaded file and the object"))}],W)}getObject(O,R,F={},Z){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if((0,x.isFunction)(F)&&(Z=F,F={}),!(0,x.isFunction)(Z))throw new TypeError('callback should be of type "function"');this.getPartialObject(O,R,0,0,F,Z)}getPartialObject(O,R,F,Z,ie={},D){if((0,x.isFunction)(Z)&&(D=Z,Z=0),!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isNumber)(F))throw new TypeError('offset should be of type "number"');if(!(0,x.isNumber)(Z))throw new TypeError('length should be of type "number"');if((0,x.isFunction)(ie)&&(D=ie,ie={}),!(0,x.isFunction)(D))throw new TypeError('callback should be of type "function"');var Y="";(F||Z)&&(F?Y=`bytes=${+F}-`:(Y="bytes=0-",F=0),Z&&(Y+=""+(+Z+F-1)));var z={};Y!==""&&(z.range=Y);var W=[200];Y&&W.push(206);var ae=u.default.stringify(ie);this.makeRequest({method:"GET",bucketName:O,objectName:R,headers:z,query:ae},"",W,"",!0,D)}fPutObject(O,R,F,Z,ie){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isString)(F))throw new TypeError('filePath should be of type "string"');if((0,x.isFunction)(Z)&&(ie=Z,Z={}),!(0,x.isObject)(Z))throw new TypeError('metaData should be of type "object"');var D,Y;Z=(0,x.insertContentType)(Z,F),Z=(0,x.prependXAMZMeta)(Z),h.default.waterfall([z=>E.default.stat(F,z),(z,W)=>{D=z.size;var ae=!1,re=W;if(W=function(){if(!ae)return ae=!0,re.apply(this,arguments)},D>this.maxObjectSize)return W(new Error(`${F} size : ${z.size}, max allowed size : 5TB`));if(D<=this.partSize){var le=this.getUploader(O,R,Z,!1),ke=B.getHashSummer(this.enableSHA256),ge=D-1;D===0&&(ge=0);var be={start:0,end:ge,autoClose:!0};(0,x.pipesetup)(E.default.createReadStream(F,be),ke).on("data",je=>{var xe=je.md5sum,Ae=je.sha256sum,X=E.default.createReadStream(F,be);le(X,D,Ae,xe,(ee,U)=>{ie(ee,U),W(!0)})}).on("error",je=>W(je))}else this.findUploadId(O,R,W)},(z,W)=>{if(z)return this.listParts(O,R,z,(ae,re)=>W(ae,z,re));this.initiateNewMultipartUpload(O,R,Z,(ae,re)=>W(ae,re,[]))},(z,W,ae)=>{Y=this.calculatePartSize(D);var re=this.getUploader(O,R,Z,!0),le=W.reduce(function(je,xe){return je[xe.part]||(je[xe.part]=xe),je},{}),ke=[],ge=1,be=0;h.default.whilst(je=>{je(null,be<D)},je=>{var xe=!1,Ae=je;je=function(){if(!xe)return xe=!0,Ae.apply(this,arguments)};var X=le[ge],ee=B.getHashSummer(this.enableSHA256),U=Y;U>D-be&&(U=D-be);var V={autoClose:!0,start:be,end:be+U-1};(0,x.pipesetup)(E.default.createReadStream(F,V),ee).on("data",q=>{var ne=v.from(q.md5sum,"base64").toString("hex");if(X&&ne===X.etag)return ke.push({part:ge,etag:X.etag}),ge++,be+=U,je();var fe=E.default.createReadStream(F,V);re(z,ge,fe,U,q.sha256sum,q.md5sum,(he,me)=>he?je(he):(ke.push({part:ge,etag:me.etag}),ge++,be+=U,je()))}).on("error",q=>je(q))},je=>{if(je)return ae(je);ae(null,ke,z)})},(z,W,ae)=>this.completeMultipartUpload(O,R,W,z,ae)],(z,...W)=>{z!==!0&&ie(z,...W)})}putObject(O,R,F,Z,ie,D){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if((0,x.isFunction)(Z)?(D=Z,ie={}):(0,x.isFunction)(ie)&&(D=ie,ie={}),(0,x.isObject)(Z)&&(ie=Z),ie=(0,x.prependXAMZMeta)(ie),typeof F=="string"||F instanceof v)Z=F.length,F=(0,x.readableStream)(F);else if(!(0,x.isReadableStream)(F))throw new TypeError('third argument should be of type "stream.Readable" or "Buffer" or "string"');if(!(0,x.isFunction)(D))throw new TypeError('callback should be of type "function"');if((0,x.isNumber)(Z)&&Z<0)throw new $.InvalidArgumentError(`size cannot be negative, given size: ${Z}`);(0,x.isNumber)(Z)||(Z=this.maxObjectSize),Z=this.calculatePartSize(Z);let Y=new l.default({size:Z,zeroPadding:!1}),z=new P.default(this,O,R,Z,ie,D);F.pipe(Y).pipe(z)}copyObjectV1(O,R,F,Z,ie){var D,Y,z=O,W=R,ae=F;if(typeof Z=="function"&&ie===void 0?(D=null,Y=Z):(D=Z,Y=ie),!(0,x.isValidBucketName)(z))throw new $.InvalidBucketNameError("Invalid bucket name: "+z);if(!(0,x.isValidObjectName)(W))throw new $.InvalidObjectNameError(`Invalid object name: ${W}`);if(!(0,x.isString)(ae))throw new TypeError('srcObject should be of type "string"');if(ae==="")throw new $.InvalidPrefixError("Empty source prefix");if(D!==null&&!(D instanceof T))throw new TypeError('conditions should be of type "CopyConditions"');var re={};re["x-amz-copy-source"]=(0,x.uriResourceEscape)(ae),D!==null&&(D.modified!==""&&(re["x-amz-copy-source-if-modified-since"]=D.modified),D.unmodified!==""&&(re["x-amz-copy-source-if-unmodified-since"]=D.unmodified),D.matchETag!==""&&(re["x-amz-copy-source-if-match"]=D.matchETag),D.matchEtagExcept!==""&&(re["x-amz-copy-source-if-none-match"]=D.matchETagExcept)),this.makeRequest({method:"PUT",bucketName:z,objectName:W,headers:re},"",[200],"",!0,(le,ke)=>{if(le)return Y(le);var ge=B.getCopyObjectTransformer();(0,x.pipesetup)(ke,ge).on("error",be=>Y(be)).on("data",be=>Y(null,be))})}copyObjectV2(O,R,F){if(!(O instanceof x.CopySourceOptions))throw new $.InvalidArgumentError("sourceConfig should of type CopySourceOptions ");if(!(R instanceof x.CopyDestinationOptions))throw new $.InvalidArgumentError("destConfig should of type CopyDestinationOptions ");if(!R.validate()||!R.validate())return!1;if(!(0,x.isFunction)(F))throw new TypeError('callback should be of type "function"');const Z=Object.assign({},O.getHeaders(),R.getHeaders()),ie=R.Bucket,D=R.Object;this.makeRequest({method:"PUT",bucketName:ie,objectName:D,headers:Z},"",[200],"",!0,(Y,z)=>{if(Y)return F(Y);const W=B.getCopyObjectTransformer();(0,x.pipesetup)(z,W).on("error",ae=>F(ae)).on("data",ae=>{const re=z.headers,le={Bucket:R.Bucket,Key:R.Object,LastModified:ae.LastModified,MetaData:(0,x.extractMetadata)(re),VersionId:(0,x.getVersionId)(re),SourceVersionId:(0,x.getSourceVersionId)(re),Etag:(0,x.sanitizeETag)(re.etag),Size:+re["content-length"]};return F(null,le)})})}copyObject(...O){return O[0]instanceof x.CopySourceOptions&&O[1]instanceof x.CopyDestinationOptions?this.copyObjectV2(...arguments):this.copyObjectV1(...arguments)}listObjectsQuery(O,R,F,Z={}){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isString)(R))throw new TypeError('prefix should be of type "string"');if(!(0,x.isString)(F))throw new TypeError('marker should be of type "string"');let{Delimiter:ie,MaxKeys:D,IncludeVersion:Y}=Z;if(!(0,x.isObject)(Z))throw new TypeError('listQueryOpts should be of type "object"');if(!(0,x.isString)(ie))throw new TypeError('Delimiter should be of type "string"');if(!(0,x.isNumber)(D))throw new TypeError('MaxKeys should be of type "number"');const z=[];z.push(`prefix=${(0,x.uriEscape)(R)}`),z.push(`delimiter=${(0,x.uriEscape)(ie)}`),z.push("encoding-type=url"),Y&&z.push("versions"),F&&(F=(0,x.uriEscape)(F),Y?z.push(`key-marker=${F}`):z.push(`marker=${F}`)),D&&(D>=1e3&&(D=1e3),z.push(`max-keys=${D}`)),z.sort();var W="";z.length>0&&(W=`${z.join("&")}`);var ae=B.getListObjectsTransformer();return this.makeRequest({method:"GET",bucketName:O,query:W},"",[200],"",!0,(re,le)=>{if(re)return ae.emit("error",re);(0,x.pipesetup)(le,ae)}),ae}listObjects(O,R,F,Z={}){if(R===void 0&&(R=""),F===void 0&&(F=!1),!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidPrefix)(R))throw new $.InvalidPrefixError(`Invalid prefix : ${R}`);if(!(0,x.isString)(R))throw new TypeError('prefix should be of type "string"');if(!(0,x.isBoolean)(F))throw new TypeError('recursive should be of type "boolean"');if(!(0,x.isObject)(Z))throw new TypeError('listOpts should be of type "object"');var ie="";const D={Delimiter:F?"":"/",MaxKeys:1e3,IncludeVersion:Z.IncludeVersion};var Y=[],z=!1,W=c.default.Readable({objectMode:!0});return W._read=()=>{if(!Y.length)return z?W.push(null):void this.listObjectsQuery(O,R,ie,D).on("error",ae=>W.emit("error",ae)).on("data",ae=>{ae.isTruncated?ie=ae.nextMarker||ae.versionIdMarker:z=!0,Y=ae.objects,W._read()});W.push(Y.shift())},W}listObjectsV2Query(O,R,F,Z,ie,D){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isString)(R))throw new TypeError('prefix should be of type "string"');if(!(0,x.isString)(F))throw new TypeError('continuationToken should be of type "string"');if(!(0,x.isString)(Z))throw new TypeError('delimiter should be of type "string"');if(!(0,x.isNumber)(ie))throw new TypeError('maxKeys should be of type "number"');if(!(0,x.isString)(D))throw new TypeError('startAfter should be of type "string"');var Y=[];Y.push("list-type=2"),Y.push("encoding-type=url"),Y.push(`prefix=${(0,x.uriEscape)(R)}`),Y.push(`delimiter=${(0,x.uriEscape)(Z)}`),F&&(F=(0,x.uriEscape)(F),Y.push(`continuation-token=${F}`)),D&&(D=(0,x.uriEscape)(D),Y.push(`start-after=${D}`)),ie&&(ie>=1e3&&(ie=1e3),Y.push(`max-keys=${ie}`)),Y.sort();var z="";Y.length>0&&(z=`${Y.join("&")}`);var W=B.getListObjectsV2Transformer();return this.makeRequest({method:"GET",bucketName:O,query:z},"",[200],"",!0,(ae,re)=>{if(ae)return W.emit("error",ae);(0,x.pipesetup)(re,W)}),W}listObjectsV2(O,R,F,Z){if(R===void 0&&(R=""),F===void 0&&(F=!1),Z===void 0&&(Z=""),!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidPrefix)(R))throw new $.InvalidPrefixError(`Invalid prefix : ${R}`);if(!(0,x.isString)(R))throw new TypeError('prefix should be of type "string"');if(!(0,x.isBoolean)(F))throw new TypeError('recursive should be of type "boolean"');if(!(0,x.isString)(Z))throw new TypeError('startAfter should be of type "string"');var ie=F?"":"/",D="",Y=[],z=!1,W=c.default.Readable({objectMode:!0});return W._read=()=>{if(!Y.length)return z?W.push(null):void this.listObjectsV2Query(O,R,D,ie,1e3,Z).on("error",ae=>W.emit("error",ae)).on("data",ae=>{ae.isTruncated?D=ae.nextContinuationToken:z=!0,Y=ae.objects,W._read()});W.push(Y.shift())},W}statObject(O,R,F={},Z){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if((0,x.isFunction)(F)&&(Z=F,F={}),!(0,x.isObject)(F))throw new $.InvalidArgumentError('statOpts should be of type "object"');if(!(0,x.isFunction)(Z))throw new TypeError('callback should be of type "function"');var ie=u.default.stringify(F);this.makeRequest({method:"HEAD",bucketName:O,objectName:R,query:ie},"",[200],"",!0,(D,Y)=>{if(D)return Z(D);Y.on("data",()=>{});const z={size:+Y.headers["content-length"],metaData:(0,x.extractMetadata)(Y.headers),lastModified:new Date(Y.headers["last-modified"]),versionId:(0,x.getVersionId)(Y.headers),etag:(0,x.sanitizeETag)(Y.headers.etag)};Z(null,z)})}removeObject(O,R,F={},Z){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if((0,x.isFunction)(F)&&(Z=F,F={}),!(0,x.isObject)(F))throw new $.InvalidArgumentError('removeOpts should be of type "object"');if(!(0,x.isFunction)(Z))throw new TypeError('callback should be of type "function"');const ie={};F.versionId&&(ie.versionId=`${F.versionId}`);const D={};F.governanceBypass&&(D["X-Amz-Bypass-Governance-Retention"]=!0);const Y=u.default.stringify(ie);let z={method:"DELETE",bucketName:O,objectName:R,headers:D};Y&&(z.query=Y),this.makeRequest(z,"",[200,204],"",!1,Z)}removeObjects(O,R,F){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isArray)(R))throw new $.InvalidArgumentError("objectsList should be a list");if(!(0,x.isFunction)(F))throw new TypeError('callback should be of type "function"');let Z=R.reduce((D,Y)=>(D.list.push(Y),D.list.length===1e3&&(D.listOfList.push(D.list),D.list=[]),D),{listOfList:[],list:[]});Z.list.length>0&&Z.listOfList.push(Z.list);const ie=new A.TextEncoder;h.default.eachSeries(Z.listOfList,(D,Y)=>{var z=[];D.forEach(function(le){(0,x.isObject)(le)?z.push({Key:le.name,VersionId:le.versionId}):z.push({Key:le})});let W={Delete:{Quiet:!0,Object:z}},ae=new g.default.Builder({headless:!0}).buildObject(W);ae=ie.encode(ae);const re={};re["Content-MD5"]=(0,x.toMd5)(ae),this.makeRequest({method:"POST",bucketName:O,query:"delete",headers:re},ae,[200],"",!1,le=>{if(le)return Y(le);Y(null)})},F)}getBucketPolicy(O,R){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError(`Invalid bucket name: ${O}`);if(!(0,x.isFunction)(R))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:O,query:"policy"},"",[200],"",!0,(F,Z)=>{if(F)return R(F);let ie=v.from("");(0,x.pipesetup)(Z,B.getConcater()).on("data",D=>ie=D).on("error",R).on("end",()=>{R(null,ie.toString())})})}setBucketPolicy(O,R,F){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError(`Invalid bucket name: ${O}`);if(!(0,x.isString)(R))throw new $.InvalidBucketPolicyError(`Invalid bucket policy: ${R} - must be "string"`);if(!(0,x.isFunction)(F))throw new TypeError('callback should be of type "function"');let Z="DELETE";R&&(Z="PUT"),this.makeRequest({method:Z,bucketName:O,query:"policy"},R,[204],"",!1,F)}presignedUrl(O,R,F,Z,ie,D,Y){if(this.anonymous)throw new $.AnonymousRequestError("Presigned "+O+" url cannot be generated for anonymous requests");if((0,x.isFunction)(D)&&(Y=D,D=new Date),(0,x.isFunction)(ie)&&(Y=ie,ie={},D=new Date),(0,x.isFunction)(Z)&&(Y=Z,ie={},Z=604800,D=new Date),!(0,x.isNumber)(Z))throw new TypeError('expires should be of type "number"');if(!(0,x.isObject)(ie))throw new TypeError('reqParams should be of type "object"');if(!(0,x.isValidDate)(D))throw new TypeError('requestDate should be of type "Date" and valid');if(!(0,x.isFunction)(Y))throw new TypeError('callback should be of type "function"');var z=u.default.stringify(ie);this.getBucketRegion(R,(W,ae)=>{if(W)return Y(W);var re,le=this.getRequestOptions({method:O,region:ae,bucketName:R,objectName:F,query:z});this.checkAndRefreshCreds();try{re=(0,j.presignSignatureV4)(le,this.accessKey,this.secretKey,this.sessionToken,ae,D,Z)}catch(ke){return Y(ke)}Y(null,re)})}presignedGetObject(O,R,F,Z,ie,D){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);return(0,x.isFunction)(Z)&&(D=Z,Z={},ie=new Date),["response-content-type","response-content-language","response-expires","response-cache-control","response-content-disposition","response-content-encoding"].forEach(Y=>{if(Z!==void 0&&Z[Y]!==void 0&&!(0,x.isString)(Z[Y]))throw new TypeError(`response header ${Y} should be of type "string"`)}),this.presignedUrl("GET",O,R,F,Z,ie,D)}presignedPutObject(O,R,F,Z){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: ${bucketName}");if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError("Invalid object name: ${objectName}");return this.presignedUrl("PUT",O,R,F,Z)}newPostPolicy(){return new C}presignedPostPolicy(O,R){if(this.anonymous)throw new $.AnonymousRequestError("Presigned POST policy cannot be generated for anonymous requests");if(!(0,x.isObject)(O))throw new TypeError('postPolicy should be of type "object"');if(!(0,x.isFunction)(R))throw new TypeError('cb should be of type "function"');this.getBucketRegion(O.formData.bucket,(F,Z)=>{if(F)return R(F);var ie=new Date,D=(0,x.makeDateLong)(ie);if(this.checkAndRefreshCreds(),!O.policy.expiration){var Y=new Date;Y.setSeconds(604800),O.setExpires(Y)}O.policy.conditions.push(["eq","$x-amz-date",D]),O.formData["x-amz-date"]=D,O.policy.conditions.push(["eq","$x-amz-algorithm","AWS4-HMAC-SHA256"]),O.formData["x-amz-algorithm"]="AWS4-HMAC-SHA256",O.policy.conditions.push(["eq","$x-amz-credential",this.accessKey+"/"+(0,x.getScope)(Z,ie)]),O.formData["x-amz-credential"]=this.accessKey+"/"+(0,x.getScope)(Z,ie),this.sessionToken&&(O.policy.conditions.push(["eq","$x-amz-security-token",this.sessionToken]),O.formData["x-amz-security-token"]=this.sessionToken);var z=v.from(JSON.stringify(O.policy)).toString("base64");O.formData.policy=z;var W=(0,j.postPresignSignatureV4)(Z,ie,this.secretKey,z);O.formData["x-amz-signature"]=W;var ae={};ae.region=Z,ae.bucketName=O.formData.bucket;var re=this.getRequestOptions(ae),le=this.port==80||this.port===443?"":`:${this.port.toString()}`,ke=`${re.protocol}//${re.host}${le}${re.path}`;R(null,{postURL:ke,formData:O.formData})})}initiateNewMultipartUpload(O,R,F,Z){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isObject)(F))throw new $.InvalidObjectNameError('contentType should be of type "object"');let ie=Object.assign({},F);this.makeRequest({method:"POST",bucketName:O,objectName:R,query:"uploads",headers:ie},"",[200],"",!0,(D,Y)=>{if(D)return Z(D);var z=B.getInitiateMultipartTransformer();(0,x.pipesetup)(Y,z).on("error",W=>Z(W)).on("data",W=>Z(null,W))})}completeMultipartUpload(O,R,F,Z,ie){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isString)(F))throw new TypeError('uploadId should be of type "string"');if(!(0,x.isObject)(Z))throw new TypeError('etags should be of type "Array"');if(!(0,x.isFunction)(ie))throw new TypeError('cb should be of type "function"');if(!F)throw new $.InvalidArgumentError("uploadId cannot be empty");var D=`uploadId=${(0,x.uriEscape)(F)}`,Y=[];Z.forEach(ae=>{Y.push({Part:[{PartNumber:ae.part},{ETag:ae.etag}]})});var z={CompleteMultipartUpload:Y},W=(0,f.default)(z);this.makeRequest({method:"POST",bucketName:O,objectName:R,query:D},W,[200],"",!0,(ae,re)=>{if(ae)return ie(ae);var le=B.getCompleteMultipartTransformer();(0,x.pipesetup)(re,le).on("error",ke=>ie(ke)).on("data",ke=>{if(ke.errCode)ie(new $.S3Error(ke.errMessage));else{const ge={etag:ke.etag,versionId:(0,x.getVersionId)(re.headers)};ie(null,ge)}})})}listParts(O,R,F,Z){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isString)(F))throw new TypeError('uploadId should be of type "string"');if(!F)throw new $.InvalidArgumentError("uploadId cannot be empty");var ie=[],D=Y=>{this.listPartsQuery(O,R,F,Y,(z,W)=>{z?Z(z):(ie=ie.concat(W.parts),W.isTruncated?D(W.marker):Z(null,ie))})};D(0)}listPartsQuery(O,R,F,Z,ie){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isString)(F))throw new TypeError('uploadId should be of type "string"');if(!(0,x.isNumber)(Z))throw new TypeError('marker should be of type "number"');if(!(0,x.isFunction)(ie))throw new TypeError('callback should be of type "function"');if(!F)throw new $.InvalidArgumentError("uploadId cannot be empty");var D="";Z&&Z!==0&&(D+=`part-number-marker=${Z}&`),D+=`uploadId=${(0,x.uriEscape)(F)}`,this.makeRequest({method:"GET",bucketName:O,objectName:R,query:D},"",[200],"",!0,(Y,z)=>{if(Y)return ie(Y);var W=B.getListPartsTransformer();(0,x.pipesetup)(z,W).on("error",ae=>ie(ae)).on("data",ae=>ie(null,ae))})}listIncompleteUploadsQuery(O,R,F,Z,ie){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isString)(R))throw new TypeError('prefix should be of type "string"');if(!(0,x.isString)(F))throw new TypeError('keyMarker should be of type "string"');if(!(0,x.isString)(Z))throw new TypeError('uploadIdMarker should be of type "string"');if(!(0,x.isString)(ie))throw new TypeError('delimiter should be of type "string"');var D=[];D.push(`prefix=${(0,x.uriEscape)(R)}`),D.push(`delimiter=${(0,x.uriEscape)(ie)}`),F&&(F=(0,x.uriEscape)(F),D.push(`key-marker=${F}`)),Z&&D.push(`upload-id-marker=${Z}`),D.push("max-uploads=1000"),D.sort(),D.unshift("uploads");var Y="";D.length>0&&(Y=`${D.join("&")}`);var z=B.getListMultipartTransformer();return this.makeRequest({method:"GET",bucketName:O,query:Y},"",[200],"",!0,(W,ae)=>{if(W)return z.emit("error",W);(0,x.pipesetup)(ae,z)}),z}findUploadId(O,R,F){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isFunction)(F))throw new TypeError('cb should be of type "function"');var Z,ie=(D,Y)=>{this.listIncompleteUploadsQuery(O,R,D,Y,"").on("error",z=>F(z)).on("data",z=>{if(z.uploads.forEach(W=>{W.key!==R||Z&&!(W.initiated.getTime()>Z.initiated.getTime())||(Z=W)}),!z.isTruncated)return Z?F(null,Z.uploadId):void F(null,void 0);ie(z.nextKeyMarker,z.nextUploadIdMarker)})};ie("","")}getUploader(O,R,F,Z){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isBoolean)(Z))throw new TypeError('multipart should be of type "boolean"');if(!(0,x.isObject)(F))throw new TypeError('metadata should be of type "object"');var ie=(Y,z,W,ae,re)=>{if(!(0,x.isReadableStream)(Y))throw new TypeError('stream should be of type "Stream"');if(!(0,x.isNumber)(z))throw new TypeError('length should be of type "number"');if(!(0,x.isString)(W))throw new TypeError('sha256sum should be of type "string"');if(!(0,x.isString)(ae))throw new TypeError('md5sum should be of type "string"');if(!(0,x.isFunction)(re))throw new TypeError('callback should be of type "function"')},D=(Y,z,W,ae,re,le)=>{let ke={"Content-Length":W};Z||(ke=Object.assign({},F,ke)),this.enableSHA256||(ke["Content-MD5"]=re),this.makeRequestStream({method:"PUT",bucketName:O,objectName:R,query:Y,headers:ke},z,ae,[200],"",!0,(ge,be)=>{if(ge)return le(ge);const je={etag:(0,x.sanitizeETag)(be.headers.etag),versionId:(0,x.getVersionId)(be.headers)};be.on("data",()=>{}),le(null,je)})};return Z?(Y,z,...W)=>{if(!(0,x.isString)(Y))throw new TypeError('uploadId should be of type "string"');if(!(0,x.isNumber)(z))throw new TypeError('partNumber should be of type "number"');if(!Y)throw new $.InvalidArgumentError("Empty uploadId");if(!z)throw new $.InvalidArgumentError("partNumber cannot be 0");ie(...W);var ae=`partNumber=${z}&uploadId=${(0,x.uriEscape)(Y)}`;D(ae,...W)}:(...Y)=>{ie(...Y),D("",...Y)}}setBucketNotification(O,R,F){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isObject)(R))throw new TypeError('notification config should be of type "Object"');if(!(0,x.isFunction)(F))throw new TypeError('callback should be of type "function"');var Z=new g.default.Builder({rootName:"NotificationConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(R);this.makeRequest({method:"PUT",bucketName:O,query:"notification"},Z,[200],"",!1,F)}removeAllBucketNotification(O,R){this.setBucketNotification(O,new J.NotificationConfig,R)}getBucketNotification(O,R){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isFunction)(R))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:O,query:"notification"},"",[200],"",!0,(F,Z)=>{if(F)return R(F);var ie,D=B.getBucketNotificationTransformer();(0,x.pipesetup)(Z,D).on("data",Y=>ie=Y).on("error",Y=>R(Y)).on("end",()=>R(null,ie))})}listenBucketNotification(O,R,F,Z){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError(`Invalid bucket name: ${O}`);if(!(0,x.isString)(R))throw new TypeError("prefix must be of type string");if(!(0,x.isString)(F))throw new TypeError("suffix must be of type string");if(!(0,x.isArray)(Z))throw new TypeError("events must be of type Array");let ie=new J.NotificationPoller(this,O,R,F,Z);return ie.start(),ie}getBucketVersioning(O,R){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isFunction)(R))throw new $.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:O,query:"versioning"},"",[200],"",!0,(F,Z)=>{if(F)return R(F);let ie=v.from("");(0,x.pipesetup)(Z,B.bucketVersioningTransformer()).on("data",D=>{ie=D}).on("error",R).on("end",()=>{R(null,ie)})})}setBucketVersioning(O,R,F){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!Object.keys(R).length)throw new $.InvalidArgumentError('versionConfig should be of type "object"');if(!(0,x.isFunction)(F))throw new TypeError('callback should be of type "function"');var Z=new g.default.Builder({rootName:"VersioningConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(R);this.makeRequest({method:"PUT",bucketName:O,query:"versioning"},Z,[200],"",!1,F)}setTagging(O){const{bucketName:R,objectName:F,tags:Z,putOpts:ie={},cb:D}=O;let Y="tagging";ie&&ie.versionId&&(Y=`${Y}&versionId=${ie.versionId}`);const z=[];for(const[ge,be]of Object.entries(Z))z.push({Key:ge,Value:be});const W={Tagging:{TagSet:{Tag:z}}},ae=new A.TextEncoder,re={};let le=new g.default.Builder({headless:!0,renderOpts:{pretty:!1}}).buildObject(W);le=ae.encode(le),re["Content-MD5"]=(0,x.toMd5)(le);const ke={method:"PUT",bucketName:R,query:Y,headers:re};F&&(ke.objectName=F),re["Content-MD5"]=(0,x.toMd5)(le),this.makeRequest(ke,le,[200],"",!1,D)}setBucketTagging(O,R,F){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isObject)(R))throw new $.InvalidArgumentError('tags should be of type "object"');if(Object.keys(R).length>10)throw new $.InvalidArgumentError('maximum tags allowed is 10"');if(!(0,x.isFunction)(F))throw new $.InvalidArgumentError('callback should be of type "function"');return this.setTagging({bucketName:O,tags:R,cb:F})}setObjectTagging(O,R,F,Z={},ie){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidBucketNameError("Invalid object name: "+R);if((0,x.isFunction)(Z)&&(ie=Z,Z={}),!(0,x.isObject)(F))throw new $.InvalidArgumentError('tags should be of type "object"');if(Object.keys(F).length>10)throw new $.InvalidArgumentError('Maximum tags allowed is 10"');if(!(0,x.isFunction)(ie))throw new TypeError('callback should be of type "function"');return this.setTagging({bucketName:O,objectName:R,tags:F,putOpts:Z,cb:ie})}removeTagging({bucketName:O,objectName:R,removeOpts:F,cb:Z}){let ie="tagging";F&&Object.keys(F).length&&F.versionId&&(ie=`${ie}&versionId=${F.versionId}`);const D={method:"DELETE",bucketName:O,objectName:R,query:ie};R&&(D.objectName=R),this.makeRequest(D,"",[200,204],"",!0,Z)}removeBucketTagging(O,R){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isFunction)(R))throw new TypeError('callback should be of type "function"');return this.removeTagging({bucketName:O,cb:R})}removeObjectTagging(O,R,F,Z){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidBucketNameError("Invalid object name: "+R);if((0,x.isFunction)(F)&&(Z=F,F={}),F&&Object.keys(F).length&&!(0,x.isObject)(F))throw new $.InvalidArgumentError('removeOpts should be of type "object"');if(!(0,x.isFunction)(Z))throw new TypeError('callback should be of type "function"');return this.removeTagging({bucketName:O,objectName:R,removeOpts:F,cb:Z})}getBucketTagging(O,R){const F={method:"GET",bucketName:O,query:"tagging"};this.makeRequest(F,"",[200],"",!0,(Z,ie)=>{var D=B.getTagsTransformer();if(Z)return R(Z);let Y;(0,x.pipesetup)(ie,D).on("data",z=>Y=z).on("error",z=>R(z)).on("end",()=>R(null,Y))})}getObjectTagging(O,R,F={},Z=()=>!1){let ie="tagging";if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidBucketNameError("Invalid object name: "+R);if((0,x.isFunction)(F)&&(Z=F,F={}),!(0,x.isObject)(F))throw new $.InvalidArgumentError('getOpts should be of type "object"');if(!(0,x.isFunction)(Z))throw new TypeError('callback should be of type "function"');F&&F.versionId&&(ie=`${ie}&versionId=${F.versionId}`);const D={method:"GET",bucketName:O,query:ie};R&&(D.objectName=R),this.makeRequest(D,"",[200],"",!0,(Y,z)=>{const W=B.getTagsTransformer();if(Y)return Z(Y);let ae;(0,x.pipesetup)(z,W).on("data",re=>ae=re).on("error",re=>Z(re)).on("end",()=>Z(null,ae))})}applyBucketLifecycle(O,R,F){const Z=new A.TextEncoder,ie={};let D=new g.default.Builder({rootName:"LifecycleConfiguration",headless:!0,renderOpts:{pretty:!1}}).buildObject(R);D=Z.encode(D);const Y={method:"PUT",bucketName:O,query:"lifecycle",headers:ie};ie["Content-MD5"]=(0,x.toMd5)(D),this.makeRequest(Y,D,[200],"",!1,F)}removeBucketLifecycle(O,R){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);this.makeRequest({method:"DELETE",bucketName:O,query:"lifecycle"},"",[204],"",!1,R)}setBucketLifecycle(O,R=null,F){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);k.default.isEmpty(R)?this.removeBucketLifecycle(O,F):this.applyBucketLifecycle(O,R,F)}getBucketLifecycle(O,R){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);const F={method:"GET",bucketName:O,query:"lifecycle"};this.makeRequest(F,"",[200],"",!0,(Z,ie)=>{const D=B.lifecycleTransformer();if(Z)return R(Z);let Y;(0,x.pipesetup)(ie,D).on("data",z=>Y=z).on("error",z=>R(z)).on("end",()=>R(null,Y))})}setObjectLockConfig(O,R={},F){const Z=[x.RETENTION_MODES.COMPLIANCE,x.RETENTION_MODES.GOVERNANCE],ie=[x.RETENTION_VALIDITY_UNITS.DAYS,x.RETENTION_VALIDITY_UNITS.YEARS];if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(R.mode&&!Z.includes(R.mode))throw new TypeError(`lockConfigOpts.mode should be one of ${Z}`);if(R.unit&&!ie.includes(R.unit))throw new TypeError(`lockConfigOpts.unit should be one of ${ie}`);if(R.validity&&!(0,x.isNumber)(R.validity))throw new TypeError("lockConfigOpts.validity should be a number");let D={ObjectLockEnabled:"Enabled"};const Y=Object.keys(R);if(Y.length>0){if(k.default.difference(Y,["unit","mode","validity"]).length!==0)throw new TypeError("lockConfigOpts.mode,lockConfigOpts.unit,lockConfigOpts.validity all the properties should be specified.");D.Rule={DefaultRetention:{}},R.mode&&(D.Rule.DefaultRetention.Mode=R.mode),R.unit===x.RETENTION_VALIDITY_UNITS.DAYS?D.Rule.DefaultRetention.Days=R.validity:R.unit===x.RETENTION_VALIDITY_UNITS.YEARS&&(D.Rule.DefaultRetention.Years=R.validity)}const z=new g.default.Builder({rootName:"ObjectLockConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(D),W={};W["Content-MD5"]=(0,x.toMd5)(z),this.makeRequest({method:"PUT",bucketName:O,query:"object-lock",headers:W},z,[200],"",!1,F)}getObjectLockConfig(O,R){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isFunction)(R))throw new $.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:O,query:"object-lock"},"",[200],"",!0,(F,Z)=>{if(F)return R(F);let ie=v.from("");(0,x.pipesetup)(Z,B.objectLockTransformer()).on("data",D=>{ie=D}).on("error",R).on("end",()=>{R(null,ie)})})}putObjectRetention(O,R,F={},Z){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isObject)(F))throw new $.InvalidArgumentError('retentionOpts should be of type "object"');if(F.governanceBypass&&!(0,x.isBoolean)(F.governanceBypass))throw new $.InvalidArgumentError("Invalid value for governanceBypass",F.governanceBypass);if(F.mode&&![x.RETENTION_MODES.COMPLIANCE,x.RETENTION_MODES.GOVERNANCE].includes(F.mode))throw new $.InvalidArgumentError("Invalid object retention mode ",F.mode);if(F.retainUntilDate&&!(0,x.isString)(F.retainUntilDate))throw new $.InvalidArgumentError("Invalid value for retainUntilDate",F.retainUntilDate);if(F.versionId&&!(0,x.isString)(F.versionId))throw new $.InvalidArgumentError("Invalid value for versionId",F.versionId);if(!(0,x.isFunction)(Z))throw new TypeError('callback should be of type "function"');let ie="retention";const D={};F.governanceBypass&&(D["X-Amz-Bypass-Governance-Retention"]=!0);const Y=new g.default.Builder({rootName:"Retention",renderOpts:{pretty:!1},headless:!0}),z={};F.mode&&(z.Mode=F.mode),F.retainUntilDate&&(z.RetainUntilDate=F.retainUntilDate),F.versionId&&(ie+=`&versionId=${F.versionId}`);let W=Y.buildObject(z);D["Content-MD5"]=(0,x.toMd5)(W),this.makeRequest({method:"PUT",bucketName:O,objectName:R,query:ie,headers:D},W,[200,204],"",!1,Z)}getObjectRetention(O,R,F,Z){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isObject)(F))throw new $.InvalidArgumentError('callback should be of type "object"');if(F.versionId&&!(0,x.isString)(F.versionId))throw new $.InvalidArgumentError('VersionID should be of type "string"');if(Z&&!(0,x.isFunction)(Z))throw new $.InvalidArgumentError('callback should be of type "function"');let ie="retention";F.versionId&&(ie+=`&versionId=${F.versionId}`),this.makeRequest({method:"GET",bucketName:O,objectName:R,query:ie},"",[200],"",!0,(D,Y)=>{if(D)return Z(D);let z=v.from("");(0,x.pipesetup)(Y,B.objectRetentionTransformer()).on("data",W=>{z=W}).on("error",Z).on("end",()=>{Z(null,z)})})}setBucketEncryption(O,R,F){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if((0,x.isFunction)(R)&&(F=R,R=null),!k.default.isEmpty(R)&&R.Rule.length>1)throw new $.InvalidArgumentError("Invalid Rule length. Only one rule is allowed.: "+R.Rule);if(F&&!(0,x.isFunction)(F))throw new TypeError('callback should be of type "function"');let Z=R;k.default.isEmpty(R)&&(Z={Rule:[{ApplyServerSideEncryptionByDefault:{SSEAlgorithm:"AES256"}}]});let ie=new g.default.Builder({rootName:"ServerSideEncryptionConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(Z);const D={};D["Content-MD5"]=(0,x.toMd5)(ie),this.makeRequest({method:"PUT",bucketName:O,query:"encryption",headers:D},ie,[200],"",!1,F)}getBucketEncryption(O,R){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isFunction)(R))throw new $.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:O,query:"encryption"},"",[200],"",!0,(F,Z)=>{if(F)return R(F);let ie=v.from("");(0,x.pipesetup)(Z,B.bucketEncryptionTransformer()).on("data",D=>{ie=D}).on("error",R).on("end",()=>{R(null,ie)})})}removeBucketEncryption(O,R){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isFunction)(R))throw new $.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"DELETE",bucketName:O,query:"encryption"},"",[204],"",!1,R)}setBucketReplication(O,R={},F){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isObject)(R))throw new $.InvalidArgumentError('replicationConfig should be of type "object"');if(k.default.isEmpty(R.role))throw new $.InvalidArgumentError("Role cannot be empty");if(R.role&&!(0,x.isString)(R.role))throw new $.InvalidArgumentError("Invalid value for role",R.role);if(k.default.isEmpty(R.rules))throw new $.InvalidArgumentError("Minimum one replication rule must be specified");if(!(0,x.isFunction)(F))throw new TypeError('callback should be of type "function"');const Z={},ie={ReplicationConfiguration:{Role:R.role,Rule:R.rules}};let D=new g.default.Builder({renderOpts:{pretty:!1},headless:!0}).buildObject(ie);Z["Content-MD5"]=(0,x.toMd5)(D),this.makeRequest({method:"PUT",bucketName:O,query:"replication",headers:Z},D,[200],"",!1,F)}getBucketReplication(O,R){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isFunction)(R))throw new $.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:O,query:"replication"},"",[200],"",!0,(F,Z)=>{if(F)return R(F);let ie=v.from("");(0,x.pipesetup)(Z,B.replicationConfigTransformer()).on("data",D=>{ie=D}).on("error",R).on("end",()=>{R(null,ie)})})}removeBucketReplication(O,R){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);this.makeRequest({method:"DELETE",bucketName:O,query:"replication"},"",[200,204],"",!1,R)}getObjectLegalHold(O,R,F={},Z){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if((0,x.isFunction)(F)&&(Z=F,F={}),!(0,x.isObject)(F))throw new TypeError('getOpts should be of type "Object"');if(Object.keys(F).length>0&&F.versionId&&!(0,x.isString)(F.versionId))throw new TypeError("versionId should be of type string.:",F.versionId);if(!(0,x.isFunction)(Z))throw new $.InvalidArgumentError('callback should be of type "function"');let ie="legal-hold";F.versionId&&(ie+=`&versionId=${F.versionId}`),this.makeRequest({method:"GET",bucketName:O,objectName:R,query:ie},"",[200],"",!0,(D,Y)=>{if(D)return Z(D);let z=v.from("");(0,x.pipesetup)(Y,B.objectLegalHoldTransformer()).on("data",W=>{z=W}).on("error",Z).on("end",()=>{Z(null,z)})})}setObjectLegalHold(O,R,F={},Z){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError("Invalid bucket name: "+O);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);const ie={status:x.LEGAL_HOLD_STATUS.ENABLED};if((0,x.isFunction)(F)&&(Z=F,F=ie),!(0,x.isObject)(F))throw new TypeError('setOpts should be of type "Object"');if(![x.LEGAL_HOLD_STATUS.ENABLED,x.LEGAL_HOLD_STATUS.DISABLED].includes(F.status))throw new TypeError("Invalid status: "+F.status);if(F.versionId&&!F.versionId.length)throw new TypeError("versionId should be of type string.:"+F.versionId);if(!(0,x.isFunction)(Z))throw new $.InvalidArgumentError('callback should be of type "function"');k.default.isEmpty(F)&&(F={defaultOpts:ie});let D="legal-hold";F.versionId&&(D+=`&versionId=${F.versionId}`);let Y={Status:F.status};const z=new g.default.Builder({rootName:"LegalHold",renderOpts:{pretty:!1},headless:!0}).buildObject(Y),W={};W["Content-MD5"]=(0,x.toMd5)(z),this.makeRequest({method:"PUT",bucketName:O,objectName:R,query:D,headers:W},z,[200],"",!1,Z)}async setCredentialsProvider(O){if(!(O instanceof e.default))throw new Error("Unable to get credentials. Expected instance of CredentialProvider");this.credentialsProvider=O,await this.checkAndRefreshCreds()}async checkAndRefreshCreds(){if(this.credentialsProvider)return await this.fetchCredentials()}async fetchCredentials(){if(!this.credentialsProvider)throw new Error("Unable to get credentials. Expected instance of BaseCredentialsProvider");{const O=await this.credentialsProvider.getCredentials();if(!O)throw new Error("Unable to get credentials. Expected instance of BaseCredentialsProvider");this.accessKey=O.getAccessKey(),this.secretKey=O.getSecretKey(),this.sessionToken=O.getSessionToken()}}abortMultipartUpload(O,R,F,Z){const ie={method:"DELETE",bucketName:O,objectName:R,query:`uploadId=${F}`};this.makeRequest(ie,"",[204],"",!1,Z)}uploadPartCopy(O,R){const{bucketName:F,objectName:Z,uploadID:ie,partNumber:D,headers:Y}=O,z={method:"PUT",bucketName:F,objectName:Z,query:`uploadId=${ie}&partNumber=${D}`,headers:Y};return this.makeRequest(z,"",[200],"",!0,(W,ae)=>{let re=v.from("");if(W)return R(W);(0,x.pipesetup)(ae,B.uploadPartTransformer()).on("data",le=>{re=le}).on("error",R).on("end",()=>{let le={etag:(0,x.sanitizeETag)(re.ETag),key:Z,part:D};R(null,le)})})}composeObject(O={},R=[],F){const Z=this,ie=R.length;if(!(0,x.isArray)(R))throw new $.InvalidArgumentError("sourceConfig should an array of CopySourceOptions ");if(!(O instanceof x.CopyDestinationOptions))throw new $.InvalidArgumentError("destConfig should of type CopyDestinationOptions ");if(ie<1||ie>x.PART_CONSTRAINTS.MAX_PARTS_COUNT)throw new $.InvalidArgumentError(`"There must be as least one and up to ${x.PART_CONSTRAINTS.MAX_PARTS_COUNT} source objects.`);if(!(0,x.isFunction)(F))throw new TypeError('callback should be of type "function"');for(let ae=0;ae<ie;ae++)if(!R[ae].validate())return!1;if(!O.validate())return!1;const D=[];let Y=0,z=0;const W=R.map(ae=>Z.statObject(ae.Bucket,ae.Object,(re=>{let le={};return k.default.isEmpty(re.VersionID)||(le={versionId:re.VersionID}),le})(ae)));return Promise.all(W).then(ae=>{const re=ae.map((be,je)=>{const xe=R[je];let Ae=be.size;if(xe.MatchRange){const X=xe.Start,ee=xe.End;if(ee>=Ae||X<0)throw new $.InvalidArgumentError(`CopySrcOptions ${je} has invalid segment-to-copy [${X}, ${ee}] (size is ${Ae})`);Ae=ee-X+1}if(Ae<x.PART_CONSTRAINTS.ABS_MIN_PART_SIZE&&je<ie-1)throw new $.InvalidArgumentError(`CopySrcOptions ${je} is too small (${Ae}) and it is not the last part.`);if(Y+=Ae,Y>x.PART_CONSTRAINTS.MAX_MULTIPART_PUT_OBJECT_SIZE)throw new $.InvalidArgumentError(`Cannot compose an object of size ${Y} (> 5TiB)`);if(D[je]=Ae,z+=(0,x.partsRequired)(Ae),z>x.PART_CONSTRAINTS.MAX_PARTS_COUNT)throw new $.InvalidArgumentError(`Your proposed compose object requires more than ${x.PART_CONSTRAINTS.MAX_PARTS_COUNT} parts`);return be});if(z===1&&Y<=x.PART_CONSTRAINTS.MAX_PART_SIZE||Y===0)return this.copyObject(R[0],O,F);for(let be=0;be<ie;be++)R[be].MatchETag=re[be].etag;const le=re.map((be,je)=>(0,x.calculateEvenSplits)(D[je],R[je])),ke=be=>{const je=function(xe){const Ae=[];return le.forEach((X,ee)=>{const{startIndex:U,endIndex:V,objInfo:q}=X;let ne=ee+1;const fe=Array.from(U),he=R[ee].getHeaders();fe.forEach((me,it)=>{let _e=V[it];const Te=`${q.Bucket}/${q.Object}`;he["x-amz-copy-source"]=`${Te}`,he["x-amz-copy-source-range"]=`bytes=${me}-${_e}`;const ft={bucketName:O.Bucket,objectName:O.Object,uploadID:xe,partNumber:ne,headers:he,sourceObj:Te};Ae.push(ft)})}),Ae}(be);h.default.map(je,Z.uploadPartCopy.bind(Z),(xe,Ae)=>{if(xe)return this.abortMultipartUpload(O.Bucket,O.Object,be,F);const X=Ae.map(ee=>({etag:ee.etag,part:ee.part}));return Z.completeMultipartUpload(O.Bucket,O.Object,be,X,F)})},ge=O.getHeaders();Z.initiateNewMultipartUpload(O.Bucket,O.Object,ge,(be,je)=>{if(be)return F(be,null);ke(je)})}).catch(ae=>{F(ae,null)})}selectObjectContent(O,R,F={},Z){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError(`Invalid bucket name: ${O}`);if(!(0,x.isValidObjectName)(R))throw new $.InvalidObjectNameError(`Invalid object name: ${R}`);if(k.default.isEmpty(F))throw new TypeError("valid select configuration is required");if(!(0,x.isString)(F.expression))throw new TypeError('sqlExpression should be of type "string"');if(k.default.isEmpty(F.inputSerialization))throw new TypeError("inputSerialization is required");if(!(0,x.isObject)(F.inputSerialization))throw new TypeError('inputSerialization should be of type "object"');if(k.default.isEmpty(F.outputSerialization))throw new TypeError("outputSerialization is required");if(!(0,x.isObject)(F.outputSerialization))throw new TypeError('outputSerialization should be of type "object"');if(!(0,x.isFunction)(Z))throw new TypeError('callback should be of type "function"');const ie=[{Expression:F.expression},{ExpressionType:F.expressionType||"SQL"},{InputSerialization:[F.inputSerialization]},{OutputSerialization:[F.outputSerialization]}];F.requestProgress&&ie.push({RequestProgress:F.requestProgress}),F.scanRange&&ie.push({ScanRange:F.scanRange});const D=new g.default.Builder({rootName:"SelectObjectContentRequest",renderOpts:{pretty:!1},headless:!0}).buildObject(ie);this.makeRequest({method:"POST",bucketName:O,objectName:R,query:"select&select-type=2"},D,[200],"",!0,(Y,z)=>{if(Y)return Z(Y);let W;(0,x.pipesetup)(z,B.selectObjectContentTransformer()).on("data",ae=>{W=(0,r.parseSelectObjectContentResponse)(ae)}).on("error",Z).on("end",()=>{Z(null,W)})})}get extensions(){return this.clientExtensions||(this.clientExtensions=new oe.default(this)),this.clientExtensions}}_.Client=a,a.prototype.makeBucket=(0,x.promisify)(a.prototype.makeBucket),a.prototype.listBuckets=(0,x.promisify)(a.prototype.listBuckets),a.prototype.bucketExists=(0,x.promisify)(a.prototype.bucketExists),a.prototype.removeBucket=(0,x.promisify)(a.prototype.removeBucket),a.prototype.getObject=(0,x.promisify)(a.prototype.getObject),a.prototype.getPartialObject=(0,x.promisify)(a.prototype.getPartialObject),a.prototype.fGetObject=(0,x.promisify)(a.prototype.fGetObject),a.prototype.putObject=(0,x.promisify)(a.prototype.putObject),a.prototype.fPutObject=(0,x.promisify)(a.prototype.fPutObject),a.prototype.copyObject=(0,x.promisify)(a.prototype.copyObject),a.prototype.statObject=(0,x.promisify)(a.prototype.statObject),a.prototype.removeObject=(0,x.promisify)(a.prototype.removeObject),a.prototype.removeObjects=(0,x.promisify)(a.prototype.removeObjects),a.prototype.presignedUrl=(0,x.promisify)(a.prototype.presignedUrl),a.prototype.presignedGetObject=(0,x.promisify)(a.prototype.presignedGetObject),a.prototype.presignedPutObject=(0,x.promisify)(a.prototype.presignedPutObject),a.prototype.presignedPostPolicy=(0,x.promisify)(a.prototype.presignedPostPolicy),a.prototype.getBucketNotification=(0,x.promisify)(a.prototype.getBucketNotification),a.prototype.setBucketNotification=(0,x.promisify)(a.prototype.setBucketNotification),a.prototype.removeAllBucketNotification=(0,x.promisify)(a.prototype.removeAllBucketNotification),a.prototype.getBucketPolicy=(0,x.promisify)(a.prototype.getBucketPolicy),a.prototype.setBucketPolicy=(0,x.promisify)(a.prototype.setBucketPolicy),a.prototype.removeIncompleteUpload=(0,x.promisify)(a.prototype.removeIncompleteUpload),a.prototype.getBucketVersioning=(0,x.promisify)(a.prototype.getBucketVersioning),a.prototype.setBucketVersioning=(0,x.promisify)(a.prototype.setBucketVersioning),a.prototype.setBucketTagging=(0,x.promisify)(a.prototype.setBucketTagging),a.prototype.removeBucketTagging=(0,x.promisify)(a.prototype.removeBucketTagging),a.prototype.getBucketTagging=(0,x.promisify)(a.prototype.getBucketTagging),a.prototype.setObjectTagging=(0,x.promisify)(a.prototype.setObjectTagging),a.prototype.removeObjectTagging=(0,x.promisify)(a.prototype.removeObjectTagging),a.prototype.getObjectTagging=(0,x.promisify)(a.prototype.getObjectTagging),a.prototype.setBucketLifecycle=(0,x.promisify)(a.prototype.setBucketLifecycle),a.prototype.getBucketLifecycle=(0,x.promisify)(a.prototype.getBucketLifecycle),a.prototype.removeBucketLifecycle=(0,x.promisify)(a.prototype.removeBucketLifecycle),a.prototype.setObjectLockConfig=(0,x.promisify)(a.prototype.setObjectLockConfig),a.prototype.getObjectLockConfig=(0,x.promisify)(a.prototype.getObjectLockConfig),a.prototype.putObjectRetention=(0,x.promisify)(a.prototype.putObjectRetention),a.prototype.getObjectRetention=(0,x.promisify)(a.prototype.getObjectRetention),a.prototype.setBucketEncryption=(0,x.promisify)(a.prototype.setBucketEncryption),a.prototype.getBucketEncryption=(0,x.promisify)(a.prototype.getBucketEncryption),a.prototype.removeBucketEncryption=(0,x.promisify)(a.prototype.removeBucketEncryption),a.prototype.setBucketReplication=(0,x.promisify)(a.prototype.setBucketReplication),a.prototype.getBucketReplication=(0,x.promisify)(a.prototype.getBucketReplication),a.prototype.removeBucketReplication=(0,x.promisify)(a.prototype.removeBucketReplication),a.prototype.setObjectLegalHold=(0,x.promisify)(a.prototype.setObjectLegalHold),a.prototype.getObjectLegalHold=(0,x.promisify)(a.prototype.getObjectLegalHold),a.prototype.composeObject=(0,x.promisify)(a.prototype.composeObject),a.prototype.selectObjectContent=(0,x.promisify)(a.prototype.selectObjectContent);class T{constructor(){this.modified="",this.unmodified="",this.matchETag="",this.matchETagExcept=""}setModified(O){if(!(O instanceof Date))throw new TypeError("date must be of type Date");this.modified=O.toUTCString()}setUnmodified(O){if(!(O instanceof Date))throw new TypeError("date must be of type Date");this.unmodified=O.toUTCString()}setMatchETag(O){this.matchETag=O}setMatchETagExcept(O){this.matchETagExcept=O}}_.CopyConditions=T;class C{constructor(){this.policy={conditions:[]},this.formData={}}setExpires(O){if(!O)throw new $.InvalidDateError("Invalid date : cannot be null");this.policy.expiration=O.toISOString()}setKey(O){if(!(0,x.isValidObjectName)(O))throw new $.InvalidObjectNameError(`Invalid object name : ${O}`);this.policy.conditions.push(["eq","$key",O]),this.formData.key=O}setKeyStartsWith(O){if(!(0,x.isValidPrefix)(O))throw new $.InvalidPrefixError(`Invalid prefix : ${O}`);this.policy.conditions.push(["starts-with","$key",O]),this.formData.key=O}setBucket(O){if(!(0,x.isValidBucketName)(O))throw new $.InvalidBucketNameError(`Invalid bucket name : ${O}`);this.policy.conditions.push(["eq","$bucket",O]),this.formData.bucket=O}setContentType(O){if(!O)throw new Error("content-type cannot be null");this.policy.conditions.push(["eq","$Content-Type",O]),this.formData["Content-Type"]=O}setContentTypeStartsWith(O){if(!O)throw new Error("content-type cannot be null");this.policy.conditions.push(["starts-with","$Content-Type",O]),this.formData["Content-Type"]=O}setContentDisposition(O){if(!O)throw new Error("content-disposition cannot be null");this.policy.conditions.push(["eq","$Content-Disposition",O]),this.formData["Content-Disposition"]=O}setContentLengthRange(O,R){if(O>R)throw new Error("min cannot be more than max");if(O<0)throw new Error("min should be > 0");if(R<0)throw new Error("max should be > 0");this.policy.conditions.push(["content-length-range",O,R])}setUserMetaData(O){if(!(0,x.isObject)(O))throw new TypeError('metadata should be of type "object"');Object.entries(O).forEach(([R,F])=>{const Z=`x-amz-meta-${R}`;this.policy.conditions.push(["eq",`$${Z}`,F]),this.formData[Z]=F})}}_.PostPolicy=C},3606:(H,_,y)=>{var M=y(4155);Object.defineProperty(_,"__esModule",{value:!0}),_.buildARN=_.TopicConfig=_.QueueConfig=_.ObjectRemovedDeleteMarkerCreated=_.ObjectRemovedDelete=_.ObjectRemovedAll=_.ObjectReducedRedundancyLostObject=_.ObjectCreatedPut=_.ObjectCreatedPost=_.ObjectCreatedCopy=_.ObjectCreatedCompleteMultipartUpload=_.ObjectCreatedAll=_.NotificationPoller=_.NotificationConfig=_.CloudFunctionConfig=void 0;var v=y(7187),m=function(h,u){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var w=s(u);if(w&&w.has(h))return w.get(h);var b={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in h)if(A!=="default"&&Object.prototype.hasOwnProperty.call(h,A)){var x=k?Object.getOwnPropertyDescriptor(h,A):null;x&&(x.get||x.set)?Object.defineProperty(b,A,x):b[A]=h[A]}return b.default=h,w&&w.set(h,b),b}(y(6607)),E=y(1627);function s(h){if(typeof WeakMap!="function")return null;var u=new WeakMap,w=new WeakMap;return(s=function(b){return b?w:u})(h)}_.NotificationConfig=class{add(h){let u="";h instanceof c&&(u="TopicConfiguration"),h instanceof l&&(u="QueueConfiguration"),h instanceof f&&(u="CloudFunctionConfiguration"),this[u]||(this[u]=[]),this[u].push(h)}};class p{setId(u){this.Id=u}addEvent(u){this.Event||(this.Event=[]),this.Event.push(u)}addFilterSuffix(u){this.Filter||(this.Filter={S3Key:{FilterRule:[]}}),this.Filter.S3Key.FilterRule.push({Name:"suffix",Value:u})}addFilterPrefix(u){this.Filter||(this.Filter={S3Key:{FilterRule:[]}}),this.Filter.S3Key.FilterRule.push({Name:"prefix",Value:u})}}class c extends p{constructor(u){super(),this.Topic=u}}_.TopicConfig=c;class l extends p{constructor(u){super(),this.Queue=u}}_.QueueConfig=l;class f extends p{constructor(u){super(),this.CloudFunction=u}}_.CloudFunctionConfig=f,_.buildARN=(h,u,w,b,k)=>"arn:"+h+":"+u+":"+w+":"+b+":"+k,_.ObjectCreatedAll="s3:ObjectCreated:*",_.ObjectCreatedPut="s3:ObjectCreated:Put",_.ObjectCreatedPost="s3:ObjectCreated:Post",_.ObjectCreatedCopy="s3:ObjectCreated:Copy",_.ObjectCreatedCompleteMultipartUpload="s3:ObjectCreated:CompleteMultipartUpload",_.ObjectRemovedAll="s3:ObjectRemoved:*",_.ObjectRemovedDelete="s3:ObjectRemoved:Delete",_.ObjectRemovedDeleteMarkerCreated="s3:ObjectRemoved:DeleteMarkerCreated",_.ObjectReducedRedundancyLostObject="s3:ReducedRedundancyLostObject";class g extends v.EventEmitter{constructor(u,w,b,k,A){super(),this.client=u,this.bucketName=w,this.prefix=b,this.suffix=k,this.events=A,this.ending=!1}start(){this.ending=!1,M.nextTick(()=>{this.checkForChanges()})}stop(){this.ending=!0}checkForChanges(){if(this.ending)return;var u=[];if(this.prefix){var w=(0,E.uriEscape)(this.prefix);u.push(`prefix=${w}`)}if(this.suffix){var b=(0,E.uriEscape)(this.suffix);u.push(`suffix=${b}`)}this.events&&this.events.forEach(x=>u.push("events="+(0,E.uriEscape)(x))),u.sort();var k="";u.length>0&&(k=`${u.join("&")}`);const A=this.client.region||E.DEFAULT_REGION;this.client.makeRequest({method:"GET",bucketName:this.bucketName,query:k},"",[200],A,!0,(x,j)=>{if(x)return this.emit("error",x);let P=m.getNotificationTransformer();(0,E.pipesetup)(j,P).on("data",B=>{let $=B.Records;$||($=[]),$.forEach(te=>{this.emit("notification",te)}),this.ending&&j.destroy()}).on("error",B=>this.emit("error",B)).on("end",()=>{M.nextTick(()=>{this.checkForChanges()})})})}}_.NotificationPoller=g},3861:(H,_,y)=>{var M=y(4155);Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var v,m=y(2830),E=(v=y(5835))&&v.__esModule?v:{default:v},s=function(f,g){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var h=c(g);if(h&&h.has(f))return h.get(f);var u={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in f)if(b!=="default"&&Object.prototype.hasOwnProperty.call(f,b)){var k=w?Object.getOwnPropertyDescriptor(f,b):null;k&&(k.get||k.set)?Object.defineProperty(u,b,k):u[b]=f[b]}return u.default=f,h&&h.set(f,u),u}(y(7563)),p=y(1627);function c(f){if(typeof WeakMap!="function")return null;var g=new WeakMap,h=new WeakMap;return(c=function(u){return u?h:g})(f)}class l extends m.Transform{constructor(g,h,u,w,b,k){super(),this.emptyStream=!0,this.client=g,this.bucketName=h,this.objectName=u,this.partSize=w,this.metaData=b,this.callback=k,this.partNumber=1,this.oldParts=null,this.etags=[],this.id=null,this.on("error",A=>{k(A)})}_transform(g,h,u){this.emptyStream=!1;let w={"Content-Length":g.length},b="";if(this.client.enableSHA256||(b=E.default.createHash("md5").update(g).digest(),w["Content-MD5"]=b.toString("base64")),this.partNumber==1&&g.length<this.partSize){let x={method:"PUT",headers:Object.assign({},this.metaData,w),query:"",bucketName:this.bucketName,objectName:this.objectName};return void this.client.makeRequest(x,g,[200],"",!0,(j,P)=>{if(j)return u(j);let B={etag:(0,p.sanitizeETag)(P.headers.etag),versionId:(0,p.getVersionId)(P.headers)};P.on("data",()=>{}),M.nextTick(()=>{this.callback(null,B)}),u()})}if(this.id===null)return this.once("ready",()=>{this._transform(g,h,u)}),void this.client.findUploadId(this.bucketName,this.objectName,(x,j)=>{if(x)return this.emit("error",x);j?(this.id=j,this.client.listParts(this.bucketName,this.objectName,j,(P,B)=>{if(P)return this.emit("error",P);B||(B=[]),this.oldParts=B.reduce(function($,te){return $[te.part]||($[te.part]=te),$},{}),this.emit("ready")})):this.client.initiateNewMultipartUpload(this.bucketName,this.objectName,this.metaData,(P,B)=>{if(P)return u(P);this.id=B,this.emit("ready")})});let k=this.partNumber++;if(this.oldParts){let x=this.oldParts[k];if(b||(b=E.default.createHash("md5").update(g).digest()),x&&b.toString("hex")===x.etag)return this.etags.push({part:k,etag:x.etag}),void u()}let A={method:"PUT",query:s.stringify({partNumber:k,uploadId:this.id}),headers:w,bucketName:this.bucketName,objectName:this.objectName};this.client.makeRequest(A,g,[200],"",!0,(x,j)=>{if(x)return u(x);let P=j.headers.etag;P&&(P=P.replace(/^"/,"").replace(/"$/,"")),this.etags.push({part:k,etag:P}),j.on("data",()=>{}),u()})}_flush(g){if(this.emptyStream){let h={method:"PUT",headers:Object.assign({},this.metaData,{"Content-Length":0}),query:"",bucketName:this.bucketName,objectName:this.objectName};this.client.makeRequest(h,"",[200],"",!0,(u,w)=>{if(u)return g(u);let b={etag:(0,p.sanitizeETag)(w.headers.etag),versionId:(0,p.getVersionId)(w.headers)};w.on("data",()=>{}),M.nextTick(()=>{this.callback(null,b)}),g()})}else this.id!==null&&this.client.completeMultipartUpload(this.bucketName,this.objectName,this.id,this.etags,(h,u)=>{if(h)return g(h);M.nextTick(()=>{this.callback(null,u)}),g()})}}_.default=l},1670:(H,_,y)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.getS3Endpoint=function(m){if(!(0,M.isString)(m))throw new TypeError(`Invalid region: ${m}`);var E=v[m];return E||"s3.amazonaws.com"};var M=y(1627);let v={"us-east-1":"s3.amazonaws.com","us-east-2":"s3-us-east-2.amazonaws.com","us-west-1":"s3-us-west-1.amazonaws.com","us-west-2":"s3-us-west-2.amazonaws.com","ca-central-1":"s3.ca-central-1.amazonaws.com","eu-west-1":"s3-eu-west-1.amazonaws.com","eu-west-2":"s3-eu-west-2.amazonaws.com","sa-east-1":"s3-sa-east-1.amazonaws.com","eu-central-1":"s3-eu-central-1.amazonaws.com","ap-south-1":"s3-ap-south-1.amazonaws.com","ap-southeast-1":"s3-ap-southeast-1.amazonaws.com","ap-southeast-2":"s3-ap-southeast-2.amazonaws.com","ap-northeast-1":"s3-ap-northeast-1.amazonaws.com","cn-north-1":"s3.cn-north-1.amazonaws.com.cn","ap-east-1":"s3.ap-east-1.amazonaws.com"}},5858:(H,_,y)=>{Object.defineProperty(_,"__esModule",{value:!0}),_.postPresignSignatureV4=function(b,k,A,x){if(!(0,m.isString)(b))throw new TypeError('region should be of type "string"');if(!(0,m.isObject)(k))throw new TypeError('date should be of type "object"');if(!(0,m.isString)(A))throw new TypeError('secretKey should be of type "string"');if(!(0,m.isString)(x))throw new TypeError('policyBase64 should be of type "string"');const j=h(k,b,A);return M.default.createHmac("sha256",j).update(x).digest("hex").toLowerCase()},_.presignSignatureV4=function(b,k,A,x,j,P,B){if(!(0,m.isObject)(b))throw new TypeError('request should be of type "object"');if(!(0,m.isString)(k))throw new TypeError('accessKey should be of type "string"');if(!(0,m.isString)(A))throw new TypeError('secretKey should be of type "string"');if(!(0,m.isString)(j))throw new TypeError('region should be of type "string"');if(!k)throw new E.AccessKeyRequiredError("accessKey is required for presigning");if(!A)throw new E.SecretKeyRequiredError("secretKey is required for presigning");if(!(0,m.isNumber)(B))throw new TypeError('expires should be of type "number"');if(B<1)throw new E.ExpiresParamError("expires param cannot be less than 1 seconds");if(B>604800)throw new E.ExpiresParamError("expires param cannot be greater than 7 days");const $=(0,m.makeDateLong)(P),te=g(b.headers),J=f(k,j,P),oe=[];oe.push(`X-Amz-Algorithm=${c}`),oe.push(`X-Amz-Credential=${(0,m.uriEscape)(J)}`),oe.push(`X-Amz-Date=${$}`),oe.push(`X-Amz-Expires=${B}`),oe.push(`X-Amz-SignedHeaders=${(0,m.uriEscape)(te.join(";").toLowerCase())}`),x&&oe.push(`X-Amz-Security-Token=${(0,m.uriEscape)(x)}`);const e=b.path.split("?")[0];let r=b.path.split("?")[1];r=r?r+"&"+oe.join("&"):oe.join("&");const i=e+"?"+r,n=u(l(b.method,i,b.headers,te,"UNSIGNED-PAYLOAD"),P,j),t=h(P,j,A),o=M.default.createHmac("sha256",t).update(n).digest("hex").toLowerCase();return b.protocol+"//"+b.headers.host+i+`&X-Amz-Signature=${o}`},_.signV4=w,_.signV4ByServiceName=function(b,k,A,x,j,P="s3"){return w(b,k,A,x,j,P)};var M=p(y(5835)),v=p(y(6486)),m=y(1627),E=function(b,k){if(b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var A=s(k);if(A&&A.has(b))return A.get(b);var x={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in b)if(P!=="default"&&Object.prototype.hasOwnProperty.call(b,P)){var B=j?Object.getOwnPropertyDescriptor(b,P):null;B&&(B.get||B.set)?Object.defineProperty(x,P,B):x[P]=b[P]}return x.default=b,A&&A.set(b,x),x}(y(1271));function s(b){if(typeof WeakMap!="function")return null;var k=new WeakMap,A=new WeakMap;return(s=function(x){return x?A:k})(b)}function p(b){return b&&b.__esModule?b:{default:b}}const c="AWS4-HMAC-SHA256";function l(b,k,A,x,j){if(!(0,m.isString)(b))throw new TypeError('method should be of type "string"');if(!(0,m.isString)(k))throw new TypeError('path should be of type "string"');if(!(0,m.isObject)(A))throw new TypeError('headers should be of type "object"');if(!(0,m.isArray)(x))throw new TypeError('signedHeaders should be of type "array"');if(!(0,m.isString)(j))throw new TypeError('hashedPayload should be of type "string"');const P=x.reduce((J,oe)=>{const e=`${A[oe]}`.replace(/ +/g," ");return J.push(`${oe.toLowerCase()}:${e}`),J},[]),B=k.split("?")[0];let $=k.split("?")[1];$||($=""),$&&($=$.split("&").sort().map(J=>J.indexOf("=")===-1?J+"=":J).join("&"));const te=[];return te.push(b.toUpperCase()),te.push(B),te.push($),te.push(P.join(`
|
|
101
|
+
`)+`
|
|
102
|
+
`),te.push(x.join(";").toLowerCase()),te.push(j),te.join(`
|
|
103
|
+
`)}function f(b,k,A,x="s3"){if(!(0,m.isString)(b))throw new TypeError('accessKey should be of type "string"');if(!(0,m.isString)(k))throw new TypeError('region should be of type "string"');if(!(0,m.isObject)(A))throw new TypeError('requestDate should be of type "object"');return`${b}/${(0,m.getScope)(k,A,x)}`}function g(b){if(!(0,m.isObject)(b))throw new TypeError('request should be of type "object"');const k=["authorization","content-length","content-type","user-agent"];return v.default.map(b,(A,x)=>x).filter(A=>k.indexOf(A)===-1).sort()}function h(b,k,A,x="s3"){if(!(0,m.isObject)(b))throw new TypeError('date should be of type "object"');if(!(0,m.isString)(k))throw new TypeError('region should be of type "string"');if(!(0,m.isString)(A))throw new TypeError('secretKey should be of type "string"');const j=(0,m.makeDateShort)(b);let P=M.default.createHmac("sha256","AWS4"+A).update(j).digest(),B=M.default.createHmac("sha256",P).update(k).digest(),$=M.default.createHmac("sha256",B).update(x).digest();return M.default.createHmac("sha256",$).update("aws4_request").digest()}function u(b,k,A,x="s3"){if(!(0,m.isString)(b))throw new TypeError('canonicalRequest should be of type "string"');if(!(0,m.isObject)(k))throw new TypeError('requestDate should be of type "object"');if(!(0,m.isString)(A))throw new TypeError('region should be of type "string"');const j=M.default.createHash("sha256").update(b).digest("hex"),P=(0,m.getScope)(A,k,x),B=[];return B.push(c),B.push((0,m.makeDateLong)(k)),B.push(P),B.push(j),B.join(`
|
|
104
|
+
`)}function w(b,k,A,x,j,P="s3"){if(!(0,m.isObject)(b))throw new TypeError('request should be of type "object"');if(!(0,m.isString)(k))throw new TypeError('accessKey should be of type "string"');if(!(0,m.isString)(A))throw new TypeError('secretKey should be of type "string"');if(!(0,m.isString)(x))throw new TypeError('region should be of type "string"');if(!k)throw new E.AccessKeyRequiredError("accessKey is required for signing");if(!A)throw new E.SecretKeyRequiredError("secretKey is required for signing");const B=b.headers["x-amz-content-sha256"],$=g(b.headers),te=P||"s3",J=u(l(b.method,b.path,b.headers,$,B),j,x,te),oe=h(j,x,A,te),e=f(k,x,j,te),r=M.default.createHmac("sha256",oe).update(J).digest("hex").toLowerCase();return`${c} Credential=${e}, SignedHeaders=${$.join(";").toLowerCase()}, Signature=${r}`}},6607:(H,_,y)=>{var M=y(8764).Buffer;Object.defineProperty(_,"__esModule",{value:!0}),_.bucketEncryptionTransformer=function(){return u(v.parseBucketEncryptionConfig)},_.bucketVersioningTransformer=function(){return u(v.parseBucketVersioningConfig)},_.getBucketNotificationTransformer=function(){return u(v.parseBucketNotification)},_.getBucketRegionTransformer=function(){return u(v.parseBucketRegion)},_.getCompleteMultipartTransformer=function(){return u(v.parseCompleteMultipart)},_.getConcater=u,_.getCopyObjectTransformer=function(){return u(v.parseCopyObject)},_.getErrorTransformer=function(w){var b,k,A=w.statusCode;A===301?(b="MovedPermanently",k="Moved Permanently"):A===307?(b="TemporaryRedirect",k="Are you using the correct endpoint URL?"):A===403?(b="AccessDenied",k="Valid and authorized credentials required"):A===404?(b="NotFound",k="Not Found"):A===405||A===501?(b="MethodNotAllowed",k="Method Not Allowed"):(b="UnknownError",k=`${A}`);var x={};return x.amzRequestid=w.headersSent?w.getHeader("x-amz-request-id"):null,x.amzId2=w.headersSent?w.getHeader("x-amz-id-2"):null,x.amzBucketRegion=w.headersSent?w.getHeader("x-amz-bucket-region"):null,u(j=>{let P,B=()=>{var $=new l.S3Error(k);return $.code=b,m.each(x,(te,J)=>{$[J]=te}),$};if(!j)return B();try{P=v.parseError(j,x)}catch{return B()}return P},!0)},_.getHashSummer=function(w){var b=s.default.createHash("md5"),k=s.default.createHash("sha256");return E.default.obj(function(A,x,j){w?k.update(A):b.update(A),j()},function(A){var x="",j="";w?j=k.digest("hex"):x=b.digest("base64");var P={md5sum:x,sha256sum:j};this.push(P),this.push(null),A()})},_.getInitiateMultipartTransformer=function(){return u(v.parseInitiateMultipart)},_.getListBucketTransformer=function(){return u(v.parseListBucket)},_.getListMultipartTransformer=function(){return u(v.parseListMultipart)},_.getListObjectsTransformer=function(){return u(v.parseListObjects)},_.getListObjectsV2Transformer=function(){return u(v.parseListObjectsV2)},_.getListObjectsV2WithMetadataTransformer=function(){return u(v.parseListObjectsV2WithMetadata)},_.getListPartsTransformer=function(){return u(v.parseListParts)},_.getNotificationTransformer=function(){return new p.default},_.getTagsTransformer=function(){return u(v.parseTagging)},_.lifecycleTransformer=function(){return u(v.parseLifecycleConfig)},_.objectLegalHoldTransformer=function(){return u(v.parseObjectLegalHoldConfig)},_.objectLockTransformer=function(){return u(v.parseObjectLockConfig)},_.objectRetentionTransformer=function(){return u(v.parseObjectRetentionConfig)},_.replicationConfigTransformer=function(){return u(v.parseReplicationConfig)},_.selectObjectContentTransformer=function(){return u()},_.uploadPartTransformer=function(){return u(v.uploadPartParser)};var v=h(y(2262)),m=h(y(6486)),E=f(y(4650)),s=f(y(5835)),p=f(y(6650)),c=y(1627),l=h(y(1271));function f(w){return w&&w.__esModule?w:{default:w}}function g(w){if(typeof WeakMap!="function")return null;var b=new WeakMap,k=new WeakMap;return(g=function(A){return A?k:b})(w)}function h(w,b){if(!b&&w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var k=g(b);if(k&&k.has(w))return k.get(w);var A={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in w)if(j!=="default"&&Object.prototype.hasOwnProperty.call(w,j)){var P=x?Object.getOwnPropertyDescriptor(w,j):null;P&&(P.get||P.set)?Object.defineProperty(A,j,P):A[j]=w[j]}return A.default=w,k&&k.set(w,A),A}function u(w,b){var k=!1,A=[];if(w&&!(0,c.isFunction)(w))throw new TypeError('parser should be of type "function"');return w&&(k=!0),(0,E.default)({objectMode:k},function(x,j,P){A.push(x),P()},function(x){if(b)return x(w(M.concat(A).toString())),void this.push(null);A.length&&(w?this.push(w(M.concat(A).toString())):this.push(M.concat(A))),x()})}},2262:(H,_,y)=>{var M=y(8764).Buffer,v=y(5108);Object.defineProperty(_,"__esModule",{value:!0}),_.parseBucketEncryptionConfig=function(h){return(0,p.parseXml)(h)},_.parseBucketNotification=function(h){var u={TopicConfiguration:[],QueueConfiguration:[],CloudFunctionConfiguration:[]},w=function(A){var x=[];return A&&(0,p.toArray)(A).forEach(j=>{x.push(j)}),x},b=function(A){var x=[];return A&&(A=(0,p.toArray)(A))[0].S3Key&&(A[0].S3Key=(0,p.toArray)(A[0].S3Key),A[0].S3Key[0].FilterRule&&(0,p.toArray)(A[0].S3Key[0].FilterRule).forEach(j=>{var P=(0,p.toArray)(j.Name)[0],B=(0,p.toArray)(j.Value)[0];x.push({Name:P,Value:B})})),x},k=(0,p.parseXml)(h);return(k=k.NotificationConfiguration).TopicConfiguration&&(0,p.toArray)(k.TopicConfiguration).forEach(A=>{var x=(0,p.toArray)(A.Id)[0],j=(0,p.toArray)(A.Topic)[0],P=w(A.Event),B=b(A.Filter);u.TopicConfiguration.push({Id:x,Topic:j,Event:P,Filter:B})}),k.QueueConfiguration&&(0,p.toArray)(k.QueueConfiguration).forEach(A=>{var x=(0,p.toArray)(A.Id)[0],j=(0,p.toArray)(A.Queue)[0],P=w(A.Event),B=b(A.Filter);u.QueueConfiguration.push({Id:x,Queue:j,Event:P,Filter:B})}),k.CloudFunctionConfiguration&&(0,p.toArray)(k.CloudFunctionConfiguration).forEach(A=>{var x=(0,p.toArray)(A.Id)[0],j=(0,p.toArray)(A.CloudFunction)[0],P=w(A.Event),B=b(A.Filter);u.CloudFunctionConfiguration.push({Id:x,CloudFunction:j,Event:P,Filter:B})}),u},_.parseBucketRegion=function(h){return(0,p.parseXml)(h).LocationConstraint},_.parseBucketVersioningConfig=function(h){return(0,p.parseXml)(h).VersioningConfiguration},_.parseCompleteMultipart=function(h){var u=(0,p.parseXml)(h).CompleteMultipartUploadResult;return u.Location?{location:(0,p.toArray)(u.Location)[0],bucket:(0,p.toArray)(u.Bucket)[0],key:u.Key,etag:u.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"")}:u.Code&&u.Message?{errCode:(0,p.toArray)(u.Code)[0],errMessage:(0,p.toArray)(u.Message)[0]}:void 0},_.parseCopyObject=function(h){var u={etag:"",lastModified:""},w=(0,p.parseXml)(h);if(!w.CopyObjectResult)throw new s.InvalidXMLError('Missing tag: "CopyObjectResult"');return(w=w.CopyObjectResult).ETag&&(u.etag=w.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"")),w.LastModified&&(u.lastModified=new Date(w.LastModified)),u},_.parseError=function(h,u){var w={},b=m.default.parse(h);b.Error&&(w=b.Error);var k=new s.S3Error;return E.default.each(w,(A,x)=>{k[x.toLowerCase()]=A}),E.default.each(u,(A,x)=>{k[x]=A}),k},_.parseInitiateMultipart=function(h){var u=(0,p.parseXml)(h);if(!u.InitiateMultipartUploadResult)throw new s.InvalidXMLError('Missing tag: "InitiateMultipartUploadResult"');if((u=u.InitiateMultipartUploadResult).UploadId)return u.UploadId;throw new s.InvalidXMLError('Missing tag: "UploadId"')},_.parseLifecycleConfig=function(h){return(0,p.parseXml)(h).LifecycleConfiguration},_.parseListBucket=function(h){var u=[],w=(0,p.parseXml)(h);if(!w.ListAllMyBucketsResult)throw new s.InvalidXMLError('Missing tag: "ListAllMyBucketsResult"');return(w=w.ListAllMyBucketsResult).Buckets&&w.Buckets.Bucket&&(0,p.toArray)(w.Buckets.Bucket).forEach(b=>{var k=b.Name,A=new Date(b.CreationDate);u.push({name:k,creationDate:A})}),u},_.parseListMultipart=function(h){var u={uploads:[],prefixes:[],isTruncated:!1},w=(0,p.parseXml)(h);if(!w.ListMultipartUploadsResult)throw new s.InvalidXMLError('Missing tag: "ListMultipartUploadsResult"');return(w=w.ListMultipartUploadsResult).IsTruncated&&(u.isTruncated=w.IsTruncated),w.NextKeyMarker&&(u.nextKeyMarker=w.NextKeyMarker),w.NextUploadIdMarker&&(u.nextUploadIdMarker=w.nextUploadIdMarker),w.CommonPrefixes&&(0,p.toArray)(w.CommonPrefixes).forEach(b=>{u.prefixes.push({prefix:(0,p.sanitizeObjectKey)((0,p.toArray)(b.Prefix)[0])})}),w.Upload&&(0,p.toArray)(w.Upload).forEach(b=>{var k=b.Key,A=b.UploadId,x={id:b.Initiator.ID,displayName:b.Initiator.DisplayName},j={id:b.Owner.ID,displayName:b.Owner.DisplayName},P=b.StorageClass,B=new Date(b.Initiated);u.uploads.push({key:k,uploadId:A,initiator:x,owner:j,storageClass:P,initiated:B})}),u},_.parseListObjects=function(h){var u={objects:[],isTruncated:!1};let w,b,k=!1;const A=(0,p.parseXml)(h),x=B=>{B&&(0,p.toArray)(B).forEach($=>{u.objects.push({prefix:(0,p.sanitizeObjectKey)((0,p.toArray)($.Prefix)[0]),size:0})})},j=A.ListBucketResult,P=A.ListVersionsResult;return j&&(j.IsTruncated&&(k=j.IsTruncated),j.Contents&&(0,p.toArray)(j.Contents).forEach(B=>{const $=(0,p.sanitizeObjectKey)((0,p.toArray)(B.Key)[0]),te=new Date((0,p.toArray)(B.LastModified)[0]),J=(0,p.sanitizeETag)((0,p.toArray)(B.ETag)[0]),oe=B.Size;u.objects.push({name:$,lastModified:te,etag:J,size:oe})}),j.NextMarker&&(w=j.NextMarker),x(j.CommonPrefixes)),P&&(P.IsTruncated&&(k=P.IsTruncated),P.Version&&(0,p.toArray)(P.Version).forEach(B=>{u.objects.push(g(B))}),P.DeleteMarker&&(0,p.toArray)(P.DeleteMarker).forEach(B=>{u.objects.push(g(B,{IsDeleteMarker:!0}))}),P.NextKeyMarker&&(b=P.NextKeyMarker),P.NextVersionIdMarker&&(u.versionIdMarker=P.NextVersionIdMarker),x(P.CommonPrefixes)),u.isTruncated=k,k&&(u.nextMarker=b||w),u},_.parseListObjectsV2=function(h){var u={objects:[],isTruncated:!1},w=(0,p.parseXml)(h);if(!w.ListBucketResult)throw new s.InvalidXMLError('Missing tag: "ListBucketResult"');return(w=w.ListBucketResult).IsTruncated&&(u.isTruncated=w.IsTruncated),w.NextContinuationToken&&(u.nextContinuationToken=w.NextContinuationToken),w.Contents&&(0,p.toArray)(w.Contents).forEach(b=>{var k=(0,p.sanitizeObjectKey)((0,p.toArray)(b.Key)[0]),A=new Date(b.LastModified),x=(0,p.sanitizeETag)(b.ETag),j=b.Size;u.objects.push({name:k,lastModified:A,etag:x,size:j})}),w.CommonPrefixes&&(0,p.toArray)(w.CommonPrefixes).forEach(b=>{u.objects.push({prefix:(0,p.sanitizeObjectKey)((0,p.toArray)(b.Prefix)[0]),size:0})}),u},_.parseListObjectsV2WithMetadata=function(h){var u={objects:[],isTruncated:!1},w=(0,p.parseXml)(h);if(!w.ListBucketResult)throw new s.InvalidXMLError('Missing tag: "ListBucketResult"');return(w=w.ListBucketResult).IsTruncated&&(u.isTruncated=w.IsTruncated),w.NextContinuationToken&&(u.nextContinuationToken=w.NextContinuationToken),w.Contents&&(0,p.toArray)(w.Contents).forEach(b=>{var k,A=(0,p.sanitizeObjectKey)(b.Key),x=new Date(b.LastModified),j=(0,p.sanitizeETag)(b.ETag),P=b.Size;k=b.UserMetadata!=null?(0,p.toArray)(b.UserMetadata)[0]:null,u.objects.push({name:A,lastModified:x,etag:j,size:P,metadata:k})}),w.CommonPrefixes&&(0,p.toArray)(w.CommonPrefixes).forEach(b=>{u.objects.push({prefix:(0,p.sanitizeObjectKey)((0,p.toArray)(b.Prefix)[0]),size:0})}),u},_.parseListParts=function(h){var u=(0,p.parseXml)(h),w={isTruncated:!1,parts:[],marker:void 0};if(!u.ListPartsResult)throw new s.InvalidXMLError('Missing tag: "ListPartsResult"');return(u=u.ListPartsResult).IsTruncated&&(w.isTruncated=u.IsTruncated),u.NextPartNumberMarker&&(w.marker=+(0,p.toArray)(u.NextPartNumberMarker)[0]),u.Part&&(0,p.toArray)(u.Part).forEach(b=>{var k=+(0,p.toArray)(b.PartNumber)[0],A=new Date(b.LastModified),x=b.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"");w.parts.push({part:k,lastModified:A,etag:x})}),w},_.parseObjectLegalHoldConfig=function(h){return(0,p.parseXml)(h).LegalHold},_.parseObjectLockConfig=function(h){const u=(0,p.parseXml)(h);let w={};if(u.ObjectLockConfiguration){let b;if(w={objectLockEnabled:u.ObjectLockConfiguration.ObjectLockEnabled},u.ObjectLockConfiguration&&u.ObjectLockConfiguration.Rule&&u.ObjectLockConfiguration.Rule.DefaultRetention&&(b=u.ObjectLockConfiguration.Rule.DefaultRetention||{},w.mode=b.Mode),b){const k=b.Years;k?(w.validity=k,w.unit=p.RETENTION_VALIDITY_UNITS.YEARS):(w.validity=b.Days,w.unit=p.RETENTION_VALIDITY_UNITS.DAYS)}return w}},_.parseObjectRetentionConfig=function(h){const u=(0,p.parseXml)(h).Retention;return{mode:u.Mode,retainUntilDate:u.RetainUntilDate}},_.parseReplicationConfig=function(h){const u=(0,p.parseXml)(h);return{ReplicationConfiguration:{role:u.ReplicationConfiguration.Role,rules:(0,p.toArray)(u.ReplicationConfiguration.Rule)}}},_.parseSelectObjectContentResponse=function(h){function u(A){const x=M.from(A.read(1)).readUInt8(),j=(M.from(A.read(x)).toString()||"").split(":");return j.length>=1?j[1]:""}function w(A){const x=M.from(A.read(2)).readUInt16BE();return M.from(A.read(x)).toString()}const b=new p.SelectResults({}),k=(0,p.readableStream)(h);for(;k._readableState.length;){let A;const x=M.from(k.read(4));A=f(x);const j=M.from(k.read(4));A=f(j,A);const P=A.readInt32BE(),B=M.from(k.read(4));A=f(B,A);const $=x.readInt32BE(),te=j.readInt32BE(),J=B.readInt32BE();if(J!==P)throw new Error(`Header Checksum Mismatch, Prelude CRC of ${J} does not equal expected CRC of ${P}`);const oe={};if(te>0){const n=M.from(k.read(te));A=f(n,A);const t=(0,p.readableStream)(n);for(;t._readableState.length;){let o=u(t);t.read(1),oe[o]=w(t)}}let e;const r=$-te-16;if(r>0){const n=M.from(k.read(r));A=f(n,A);const t=M.from(k.read(4)).readInt32BE(),o=A.readInt32BE();if(t!==o)throw new Error(`Message Checksum Mismatch, Message CRC of ${t} does not equal expected CRC of ${o}`);e=(0,p.readableStream)(n)}const i=oe["message-type"];switch(i){case"error":{const n=oe["error-code"]+':"'+oe["error-message"]+'"';throw new Error(n)}case"event":{const n=oe["content-type"];switch(oe["event-type"]){case"End":return b.setResponse(h),b;case"Records":{const t=e.read(r);b.setRecords(t);break}case"Progress":switch(n){case"text/xml":{const t=e.read(r);b.setProgress(t.toString());break}default:throw new Error(`Unexpected content-type ${n} sent for event-type Progress`)}break;case"Stats":switch(n){case"text/xml":{const t=e.read(r);b.setStats(t.toString());break}default:throw new Error(`Unexpected content-type ${n} sent for event-type Stats`)}break;default:{const t=`Un implemented event detected ${i}.`;v.warn(t)}}}}}},_.parseTagging=function(h){const u=(0,p.parseXml)(h);let w=[];if(u.Tagging&&u.Tagging.TagSet&&u.Tagging.TagSet.Tag){const b=u.Tagging.TagSet.Tag;(0,p.isObject)(b)?w.push(b):w=b}return w},_.uploadPartParser=function(h){return(0,p.parseXml)(h).CopyPartResult};var m=l(y(6965)),E=l(y(6486)),s=function(h,u){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var w=c(u);if(w&&w.has(h))return w.get(h);var b={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in h)if(A!=="default"&&Object.prototype.hasOwnProperty.call(h,A)){var x=k?Object.getOwnPropertyDescriptor(h,A):null;x&&(x.get||x.set)?Object.defineProperty(b,A,x):b[A]=h[A]}return b.default=h,w&&w.set(h,b),b}(y(1271)),p=y(1627);function c(h){if(typeof WeakMap!="function")return null;var u=new WeakMap,w=new WeakMap;return(c=function(b){return b?w:u})(h)}function l(h){return h&&h.__esModule?h:{default:h}}var f=y(2779);const g=(h,u={})=>{let{Key:w,LastModified:b,ETag:k,Size:A,VersionId:x,IsLatest:j}=h;return(0,p.isObject)(u)||(u={}),{name:(0,p.sanitizeObjectKey)((0,p.toArray)(w)[0]),lastModified:new Date((0,p.toArray)(b)[0]),etag:(0,p.sanitizeETag)((0,p.toArray)(k)[0]),size:A,versionId:x,isLatest:j,isDeleteMarker:!!u.IsDeleteMarker&&u.IsDeleteMarker}}},1890:(H,_,y)=>{var M=y(6470),v=y(3731),m=parseInt("0777",8);function E(s,p,c,l){typeof p=="function"?(c=p,p={}):p&&typeof p=="object"||(p={mode:p});var f=p.mode,g=p.fs||v;f===void 0&&(f=m),l||(l=null);var h=c||function(){};s=M.resolve(s),g.mkdir(s,f,function(u){if(!u)return h(null,l=l||s);if(u.code==="ENOENT"){if(M.dirname(s)===s)return h(u);E(M.dirname(s),p,function(w,b){w?h(w,b):E(s,p,h,b)})}else g.stat(s,function(w,b){w||!b.isDirectory()?h(u,l):h(null,l)})})}H.exports=E.mkdirp=E.mkdirP=E,E.sync=function s(p,c,l){c&&typeof c=="object"||(c={mode:c});var f=c.mode,g=c.fs||v;f===void 0&&(f=m),l||(l=null),p=M.resolve(p);try{g.mkdirSync(p,f),l=l||p}catch(u){if(u.code==="ENOENT")l=s(M.dirname(p),c,l),s(p,c,l);else{var h;try{h=g.statSync(p)}catch{throw u}if(!h.isDirectory())throw u}}return l}},4244:H=>{var _=function(y){return y!=y};H.exports=function(y,M){return y===0&&M===0?1/y==1/M:y===M||!(!_(y)||!_(M))}},609:(H,_,y)=>{var M=y(4289),v=y(5559),m=y(4244),E=y(5624),s=y(2281),p=v(E(),Object);M(p,{getPolyfill:E,implementation:m,shim:s}),H.exports=p},5624:(H,_,y)=>{var M=y(4244);H.exports=function(){return typeof Object.is=="function"?Object.is:M}},2281:(H,_,y)=>{var M=y(5624),v=y(4289);H.exports=function(){var m=M();return v(Object,{is:m},{is:function(){return Object.is!==m}}),m}},8987:(H,_,y)=>{var M;if(!Object.keys){var v=Object.prototype.hasOwnProperty,m=Object.prototype.toString,E=y(1414),s=Object.prototype.propertyIsEnumerable,p=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(u){var w=u.constructor;return w&&w.prototype===u},g={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if(typeof window>"u")return!1;for(var u in window)try{if(!g["$"+u]&&v.call(window,u)&&window[u]!==null&&typeof window[u]=="object")try{f(window[u])}catch{return!0}}catch{return!0}return!1}();M=function(u){var w=u!==null&&typeof u=="object",b=m.call(u)==="[object Function]",k=E(u),A=w&&m.call(u)==="[object String]",x=[];if(!w&&!b&&!k)throw new TypeError("Object.keys called on a non-object");var j=c&&b;if(A&&u.length>0&&!v.call(u,0))for(var P=0;P<u.length;++P)x.push(String(P));if(k&&u.length>0)for(var B=0;B<u.length;++B)x.push(String(B));else for(var $ in u)j&&$==="prototype"||!v.call(u,$)||x.push(String($));if(p)for(var te=function(oe){if(typeof window>"u"||!h)return f(oe);try{return f(oe)}catch{return!1}}(u),J=0;J<l.length;++J)te&&l[J]==="constructor"||!v.call(u,l[J])||x.push(l[J]);return x}}H.exports=M},2215:(H,_,y)=>{var M=Array.prototype.slice,v=y(1414),m=Object.keys,E=m?function(p){return m(p)}:y(8987),s=Object.keys;E.shim=function(){if(Object.keys){var p=function(){var c=Object.keys(arguments);return c&&c.length===arguments.length}(1,2);p||(Object.keys=function(c){return v(c)?s(M.call(c)):s(c)})}else Object.keys=E;return Object.keys||E},H.exports=E},1414:H=>{var _=Object.prototype.toString;H.exports=function(y){var M=_.call(y),v=M==="[object Arguments]";return v||(v=M!=="[object Array]"&&y!==null&&typeof y=="object"&&typeof y.length=="number"&&y.length>=0&&_.call(y.callee)==="[object Function]"),v}},2818:(H,_,y)=>{var M=y(9809);_.certificate=y(1934);var v=M.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())});_.RSAPrivateKey=v;var m=M.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});_.RSAPublicKey=m;var E=M.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});_.PublicKey=E;var s=M.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())}),p=M.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});_.PrivateKey=p;var c=M.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())});_.EncryptedPrivateKey=c;var l=M.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())});_.DSAPrivateKey=l,_.DSAparam=M.define("DSAparam",function(){this.int()});var f=M.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(g),this.key("publicKey").optional().explicit(1).bitstr())});_.ECPrivateKey=f;var g=M.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});_.signature=M.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},1934:(H,_,y)=>{var M=y(9809),v=M.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),m=M.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),E=M.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=M.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(E),this.key("subjectPublicKey").bitstr())}),p=M.define("RelativeDistinguishedName",function(){this.setof(m)}),c=M.define("RDNSequence",function(){this.seqof(p)}),l=M.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),f=M.define("Validity",function(){this.seq().obj(this.key("notBefore").use(v),this.key("notAfter").use(v))}),g=M.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),h=M.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(E),this.key("issuer").use(l),this.key("validity").use(f),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(g).optional())}),u=M.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(E),this.key("signatureValue").bitstr())});H.exports=u},7631:(H,_,y)=>{var M=/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,v=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,m=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,E=y(3048),s=y(4696),p=y(9509).Buffer;H.exports=function(c,l){var f,g=c.toString(),h=g.match(M);if(h){var u="aes"+h[1],w=p.from(h[2],"hex"),b=p.from(h[3].replace(/[\r\n]/g,""),"base64"),k=E(l,w.slice(0,8),parseInt(h[1],10)).key,A=[],x=s.createDecipheriv(u,k,w);A.push(x.update(b)),A.push(x.final()),f=p.concat(A)}else{var j=g.match(m);f=p.from(j[2].replace(/[\r\n]/g,""),"base64")}return{tag:g.match(v)[1],data:f}}},980:(H,_,y)=>{var M=y(2818),v=y(2562),m=y(7631),E=y(4696),s=y(5632),p=y(9509).Buffer;function c(l){var f;typeof l!="object"||p.isBuffer(l)||(f=l.passphrase,l=l.key),typeof l=="string"&&(l=p.from(l));var g,h,u=m(l,f),w=u.tag,b=u.data;switch(w){case"CERTIFICATE":h=M.certificate.decode(b,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(h||(h=M.PublicKey.decode(b,"der")),g=h.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return M.RSAPublicKey.decode(h.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return h.subjectPrivateKey=h.subjectPublicKey,{type:"ec",data:h};case"1.2.840.10040.4.1":return h.algorithm.params.pub_key=M.DSAparam.decode(h.subjectPublicKey.data,"der"),{type:"dsa",data:h.algorithm.params};default:throw new Error("unknown key id "+g)}case"ENCRYPTED PRIVATE KEY":b=function(k,A){var x=k.algorithm.decrypt.kde.kdeparams.salt,j=parseInt(k.algorithm.decrypt.kde.kdeparams.iters.toString(),10),P=v[k.algorithm.decrypt.cipher.algo.join(".")],B=k.algorithm.decrypt.cipher.iv,$=k.subjectPrivateKey,te=parseInt(P.split("-")[1],10)/8,J=s.pbkdf2Sync(A,x,j,te,"sha1"),oe=E.createDecipheriv(P,J,B),e=[];return e.push(oe.update($)),e.push(oe.final()),p.concat(e)}(b=M.EncryptedPrivateKey.decode(b,"der"),f);case"PRIVATE KEY":switch(g=(h=M.PrivateKey.decode(b,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return M.RSAPrivateKey.decode(h.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:h.algorithm.curve,privateKey:M.ECPrivateKey.decode(h.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return h.algorithm.params.priv_key=M.DSAparam.decode(h.subjectPrivateKey,"der"),{type:"dsa",params:h.algorithm.params};default:throw new Error("unknown key id "+g)}case"RSA PUBLIC KEY":return M.RSAPublicKey.decode(b,"der");case"RSA PRIVATE KEY":return M.RSAPrivateKey.decode(b,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:M.DSAPrivateKey.decode(b,"der")};case"EC PRIVATE KEY":return{curve:(b=M.ECPrivateKey.decode(b,"der")).parameters.value,privateKey:b.privateKey};default:throw new Error("unknown key type "+w)}}H.exports=c,c.signature=M.signature},6470:(H,_,y)=>{var M=y(4155);function v(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function m(s,p){for(var c,l="",f=0,g=-1,h=0,u=0;u<=s.length;++u){if(u<s.length)c=s.charCodeAt(u);else{if(c===47)break;c=47}if(c===47){if(!(g===u-1||h===1))if(g!==u-1&&h===2){if(l.length<2||f!==2||l.charCodeAt(l.length-1)!==46||l.charCodeAt(l.length-2)!==46){if(l.length>2){var w=l.lastIndexOf("/");if(w!==l.length-1){w===-1?(l="",f=0):f=(l=l.slice(0,w)).length-1-l.lastIndexOf("/"),g=u,h=0;continue}}else if(l.length===2||l.length===1){l="",f=0,g=u,h=0;continue}}p&&(l.length>0?l+="/..":l="..",f=2)}else l.length>0?l+="/"+s.slice(g+1,u):l=s.slice(g+1,u),f=u-g-1;g=u,h=0}else c===46&&h!==-1?++h:h=-1}return l}var E={resolve:function(){for(var s,p="",c=!1,l=arguments.length-1;l>=-1&&!c;l--){var f;l>=0?f=arguments[l]:(s===void 0&&(s=M.cwd()),f=s),v(f),f.length!==0&&(p=f+"/"+p,c=f.charCodeAt(0)===47)}return p=m(p,!c),c?p.length>0?"/"+p:"/":p.length>0?p:"."},normalize:function(s){if(v(s),s.length===0)return".";var p=s.charCodeAt(0)===47,c=s.charCodeAt(s.length-1)===47;return(s=m(s,!p)).length!==0||p||(s="."),s.length>0&&c&&(s+="/"),p?"/"+s:s},isAbsolute:function(s){return v(s),s.length>0&&s.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var s,p=0;p<arguments.length;++p){var c=arguments[p];v(c),c.length>0&&(s===void 0?s=c:s+="/"+c)}return s===void 0?".":E.normalize(s)},relative:function(s,p){if(v(s),v(p),s===p||(s=E.resolve(s))===(p=E.resolve(p)))return"";for(var c=1;c<s.length&&s.charCodeAt(c)===47;++c);for(var l=s.length,f=l-c,g=1;g<p.length&&p.charCodeAt(g)===47;++g);for(var h=p.length-g,u=f<h?f:h,w=-1,b=0;b<=u;++b){if(b===u){if(h>u){if(p.charCodeAt(g+b)===47)return p.slice(g+b+1);if(b===0)return p.slice(g+b)}else f>u&&(s.charCodeAt(c+b)===47?w=b:b===0&&(w=0));break}var k=s.charCodeAt(c+b);if(k!==p.charCodeAt(g+b))break;k===47&&(w=b)}var A="";for(b=c+w+1;b<=l;++b)b!==l&&s.charCodeAt(b)!==47||(A.length===0?A+="..":A+="/..");return A.length>0?A+p.slice(g+w):(g+=w,p.charCodeAt(g)===47&&++g,p.slice(g))},_makeLong:function(s){return s},dirname:function(s){if(v(s),s.length===0)return".";for(var p=s.charCodeAt(0),c=p===47,l=-1,f=!0,g=s.length-1;g>=1;--g)if((p=s.charCodeAt(g))===47){if(!f){l=g;break}}else f=!1;return l===-1?c?"/":".":c&&l===1?"//":s.slice(0,l)},basename:function(s,p){if(p!==void 0&&typeof p!="string")throw new TypeError('"ext" argument must be a string');v(s);var c,l=0,f=-1,g=!0;if(p!==void 0&&p.length>0&&p.length<=s.length){if(p.length===s.length&&p===s)return"";var h=p.length-1,u=-1;for(c=s.length-1;c>=0;--c){var w=s.charCodeAt(c);if(w===47){if(!g){l=c+1;break}}else u===-1&&(g=!1,u=c+1),h>=0&&(w===p.charCodeAt(h)?--h==-1&&(f=c):(h=-1,f=u))}return l===f?f=u:f===-1&&(f=s.length),s.slice(l,f)}for(c=s.length-1;c>=0;--c)if(s.charCodeAt(c)===47){if(!g){l=c+1;break}}else f===-1&&(g=!1,f=c+1);return f===-1?"":s.slice(l,f)},extname:function(s){v(s);for(var p=-1,c=0,l=-1,f=!0,g=0,h=s.length-1;h>=0;--h){var u=s.charCodeAt(h);if(u!==47)l===-1&&(f=!1,l=h+1),u===46?p===-1?p=h:g!==1&&(g=1):p!==-1&&(g=-1);else if(!f){c=h+1;break}}return p===-1||l===-1||g===0||g===1&&p===l-1&&p===c+1?"":s.slice(p,l)},format:function(s){if(s===null||typeof s!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof s);return function(p,c){var l=c.dir||c.root,f=c.base||(c.name||"")+(c.ext||"");return l?l===c.root?l+f:l+"/"+f:f}(0,s)},parse:function(s){v(s);var p={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return p;var c,l=s.charCodeAt(0),f=l===47;f?(p.root="/",c=1):c=0;for(var g=-1,h=0,u=-1,w=!0,b=s.length-1,k=0;b>=c;--b)if((l=s.charCodeAt(b))!==47)u===-1&&(w=!1,u=b+1),l===46?g===-1?g=b:k!==1&&(k=1):g!==-1&&(k=-1);else if(!w){h=b+1;break}return g===-1||u===-1||k===0||k===1&&g===u-1&&g===h+1?u!==-1&&(p.base=p.name=h===0&&f?s.slice(1,u):s.slice(h,u)):(h===0&&f?(p.name=s.slice(1,g),p.base=s.slice(1,u)):(p.name=s.slice(h,g),p.base=s.slice(h,u)),p.ext=s.slice(g,u)),h>0?p.dir=s.slice(0,h-1):f&&(p.dir="/"),p},sep:"/",delimiter:":",win32:null,posix:null};E.posix=E,H.exports=E},5632:(H,_,y)=>{_.pbkdf2=y(8638),_.pbkdf2Sync=y(1257)},8638:(H,_,y)=>{var M,v,m=y(9509).Buffer,E=y(7357),s=y(2368),p=y(1257),c=y(7777),l=y.g.crypto&&y.g.crypto.subtle,f={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"},g=[];function h(){return v||(v=y.g.process&&y.g.process.nextTick?y.g.process.nextTick:y.g.queueMicrotask?y.g.queueMicrotask:y.g.setImmediate?y.g.setImmediate:y.g.setTimeout)}function u(w,b,k,A,x){return l.importKey("raw",w,{name:"PBKDF2"},!1,["deriveBits"]).then(function(j){return l.deriveBits({name:"PBKDF2",salt:b,iterations:k,hash:{name:x}},j,A<<3)}).then(function(j){return m.from(j)})}H.exports=function(w,b,k,A,x,j){typeof x=="function"&&(j=x,x=void 0);var P=f[(x=x||"sha1").toLowerCase()];if(P&&typeof y.g.Promise=="function"){if(E(k,A),w=c(w,s,"Password"),b=c(b,s,"Salt"),typeof j!="function")throw new Error("No callback provided to pbkdf2");(function(B,$){B.then(function(te){h()(function(){$(null,te)})},function(te){h()(function(){$(te)})})})(function(B){if(y.g.process&&!y.g.process.browser||!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(g[B]!==void 0)return g[B];var $=u(M=M||m.alloc(8),M,10,128,B).then(function(){return!0}).catch(function(){return!1});return g[B]=$,$}(P).then(function(B){return B?u(w,b,k,A,P):p(w,b,k,A,x)}),j)}else h()(function(){var B;try{B=p(w,b,k,A,x)}catch($){return j($)}j(null,B)})}},2368:(H,_,y)=>{var M,v=y(4155);M=y.g.process&&y.g.process.browser?"utf-8":y.g.process&&y.g.process.version?parseInt(v.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",H.exports=M},7357:H=>{var _=Math.pow(2,30)-1;H.exports=function(y,M){if(typeof y!="number")throw new TypeError("Iterations not a number");if(y<0)throw new TypeError("Bad iterations");if(typeof M!="number")throw new TypeError("Key length not a number");if(M<0||M>_||M!=M)throw new TypeError("Bad key length")}},1257:(H,_,y)=>{var M=y(8028),v=y(9785),m=y(9072),E=y(9509).Buffer,s=y(7357),p=y(2368),c=y(7777),l=E.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function g(h,u,w){var b=function(B){return B==="rmd160"||B==="ripemd160"?function($){return new v().update($).digest()}:B==="md5"?M:function($){return m(B).update($).digest()}}(h),k=h==="sha512"||h==="sha384"?128:64;u.length>k?u=b(u):u.length<k&&(u=E.concat([u,l],k));for(var A=E.allocUnsafe(k+f[h]),x=E.allocUnsafe(k+f[h]),j=0;j<k;j++)A[j]=54^u[j],x[j]=92^u[j];var P=E.allocUnsafe(k+w+4);A.copy(P,0,0,k),this.ipad1=P,this.ipad2=A,this.opad=x,this.alg=h,this.blocksize=k,this.hash=b,this.size=f[h]}g.prototype.run=function(h,u){return h.copy(u,this.blocksize),this.hash(u).copy(this.opad,this.blocksize),this.hash(this.opad)},H.exports=function(h,u,w,b,k){s(w,b);var A=new g(k=k||"sha1",h=c(h,p,"Password"),(u=c(u,p,"Salt")).length),x=E.allocUnsafe(b),j=E.allocUnsafe(u.length+4);u.copy(j,0,0,u.length);for(var P=0,B=f[k],$=Math.ceil(b/B),te=1;te<=$;te++){j.writeUInt32BE(te,u.length);for(var J=A.run(j,A.ipad1),oe=J,e=1;e<w;e++){oe=A.run(oe,A.ipad2);for(var r=0;r<B;r++)J[r]^=oe[r]}J.copy(x,P),P+=B}return x}},7777:(H,_,y)=>{var M=y(9509).Buffer;H.exports=function(v,m,E){if(M.isBuffer(v))return v;if(typeof v=="string")return M.from(v,m);if(ArrayBuffer.isView(v))return M.from(v.buffer);throw new TypeError(E+" must be a string, a Buffer, a typed array or a DataView")}},4155:H=>{var _,y,M=H.exports={};function v(){throw new Error("setTimeout has not been defined")}function m(){throw new Error("clearTimeout has not been defined")}function E(w){if(_===setTimeout)return setTimeout(w,0);if((_===v||!_)&&setTimeout)return _=setTimeout,setTimeout(w,0);try{return _(w,0)}catch{try{return _.call(null,w,0)}catch{return _.call(this,w,0)}}}(function(){try{_=typeof setTimeout=="function"?setTimeout:v}catch{_=v}try{y=typeof clearTimeout=="function"?clearTimeout:m}catch{y=m}})();var s,p=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?p=s.concat(p):l=-1,p.length&&g())}function g(){if(!c){var w=E(f);c=!0;for(var b=p.length;b;){for(s=p,p=[];++l<b;)s&&s[l].run();l=-1,b=p.length}s=null,c=!1,function(k){if(y===clearTimeout)return clearTimeout(k);if((y===m||!y)&&clearTimeout)return y=clearTimeout,clearTimeout(k);try{y(k)}catch{try{return y.call(null,k)}catch{return y.call(this,k)}}}(w)}}function h(w,b){this.fun=w,this.array=b}function u(){}M.nextTick=function(w){var b=new Array(arguments.length-1);if(arguments.length>1)for(var k=1;k<arguments.length;k++)b[k-1]=arguments[k];p.push(new h(w,b)),p.length!==1||c||E(g)},h.prototype.run=function(){this.fun.apply(null,this.array)},M.title="browser",M.browser=!0,M.env={},M.argv=[],M.version="",M.versions={},M.on=u,M.addListener=u,M.once=u,M.off=u,M.removeListener=u,M.removeAllListeners=u,M.emit=u,M.prependListener=u,M.prependOnceListener=u,M.listeners=function(w){return[]},M.binding=function(w){throw new Error("process.binding is not supported")},M.cwd=function(){return"/"},M.chdir=function(w){throw new Error("process.chdir is not supported")},M.umask=function(){return 0}},7900:(H,_,y)=>{_.publicEncrypt=y(6559),_.privateDecrypt=y(6138),_.privateEncrypt=function(M,v){return _.publicEncrypt(M,v,!0)},_.publicDecrypt=function(M,v){return _.privateDecrypt(M,v,!0)}},9199:(H,_,y)=>{var M=y(3482),v=y(9509).Buffer;function m(E){var s=v.allocUnsafe(4);return s.writeUInt32BE(E,0),s}H.exports=function(E,s){for(var p,c=v.alloc(0),l=0;c.length<s;)p=m(l++),c=v.concat([c,M("sha1").update(E).update(p).digest()]);return c.slice(0,s)}},2144:function(H,_,y){(function(M,v){function m(e,r){if(!e)throw new Error(r||"Assertion failed")}function E(e,r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}function s(e,r,i){if(s.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&(r!=="le"&&r!=="be"||(i=r,r=10),this._init(e||0,r||10,i||"be"))}var p;typeof M=="object"?M.exports=s:v.BN=s,s.BN=s,s.wordSize=26;try{p=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:y(7108).Buffer}catch{}function c(e,r){var i=e.charCodeAt(r);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(e,r,i){var n=c(e,i);return i-1>=r&&(n|=c(e,i-1)<<4),n}function f(e,r,i,n){for(var t=0,o=Math.min(e.length,i),a=r;a<o;a++){var T=e.charCodeAt(a)-48;t*=n,t+=T>=49?T-49+10:T>=17?T-17+10:T}return t}s.isBN=function(e){return e instanceof s||e!==null&&typeof e=="object"&&e.constructor.wordSize===s.wordSize&&Array.isArray(e.words)},s.max=function(e,r){return e.cmp(r)>0?e:r},s.min=function(e,r){return e.cmp(r)<0?e:r},s.prototype._init=function(e,r,i){if(typeof e=="number")return this._initNumber(e,r,i);if(typeof e=="object")return this._initArray(e,r,i);r==="hex"&&(r=16),m(r===(0|r)&&r>=2&&r<=36);var n=0;(e=e.toString().replace(/\s+/g,""))[0]==="-"&&(n++,this.negative=1),n<e.length&&(r===16?this._parseHex(e,n,i):(this._parseBase(e,r,n),i==="le"&&this._initArray(this.toArray(),r,i)))},s.prototype._initNumber=function(e,r,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(m(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),r,i)},s.prototype._initArray=function(e,r,i){if(m(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o,a=0;if(i==="be")for(n=e.length-1,t=0;n>=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[t]|=o<<a&67108863,this.words[t+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,t++);else if(i==="le")for(n=0,t=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[t]|=o<<a&67108863,this.words[t+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,t++);return this.strip()},s.prototype._parseHex=function(e,r,i){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o=0,a=0;if(i==="be")for(n=e.length-1;n>=r;n-=2)t=l(e,r,n)<<o,this.words[a]|=67108863&t,o>=18?(o-=18,a+=1,this.words[a]|=t>>>26):o+=8;else for(n=(e.length-r)%2==0?r+1:r;n<e.length;n+=2)t=l(e,r,n)<<o,this.words[a]|=67108863&t,o>=18?(o-=18,a+=1,this.words[a]|=t>>>26):o+=8;this.strip()},s.prototype._parseBase=function(e,r,i){this.words=[0],this.length=1;for(var n=0,t=1;t<=67108863;t*=r)n++;n--,t=t/r|0;for(var o=e.length-i,a=o%n,T=Math.min(o,o-a)+i,C=0,N=i;N<T;N+=n)C=f(e,N,N+n,r),this.imuln(t),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(a!==0){var O=1;for(C=f(e,N,e.length,r),N=0;N<a;N++)O*=r;this.imuln(O),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},s.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},s.prototype.clone=function(){var e=new s(null);return this.copy(e),e},s.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var g=["","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"],h=[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],u=[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];function w(e,r,i){i.negative=r.negative^e.negative;var n=e.length+r.length|0;i.length=n,n=n-1|0;var t=0|e.words[0],o=0|r.words[0],a=t*o,T=67108863&a,C=a/67108864|0;i.words[0]=T;for(var N=1;N<n;N++){for(var O=C>>>26,R=67108863&C,F=Math.min(N,r.length-1),Z=Math.max(0,N-e.length+1);Z<=F;Z++){var ie=N-Z|0;O+=(a=(t=0|e.words[ie])*(o=0|r.words[Z])+R)/67108864|0,R=67108863&a}i.words[N]=0|R,C=0|O}return C!==0?i.words[N]=0|C:i.length--,i.strip()}s.prototype.toString=function(e,r){var i;if(r=0|r||1,(e=e||10)===16||e==="hex"){i="";for(var n=0,t=0,o=0;o<this.length;o++){var a=this.words[o],T=(16777215&(a<<n|t)).toString(16);i=(t=a>>>24-n&16777215)!=0||o!==this.length-1?g[6-T.length]+T+i:T+i,(n+=2)>=26&&(n-=26,o--)}for(t!==0&&(i=t.toString(16)+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var C=h[e],N=u[e];i="";var O=this.clone();for(O.negative=0;!O.isZero();){var R=O.modn(N).toString(e);i=(O=O.idivn(N)).isZero()?R+i:g[C-R.length]+R+i}for(this.isZero()&&(i="0"+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}m(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=67108864*this.words[1]:this.length===3&&this.words[2]===1?e+=4503599627370496+67108864*this.words[1]:this.length>2&&m(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(e,r){return m(p!==void 0),this.toArrayLike(p,e,r)},s.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},s.prototype.toArrayLike=function(e,r,i){var n=this.byteLength(),t=i||Math.max(1,n);m(n<=t,"byte array longer than desired length"),m(t>0,"Requested array length <= 0"),this.strip();var o,a,T=r==="le",C=new e(t),N=this.clone();if(T){for(a=0;!N.isZero();a++)o=N.andln(255),N.iushrn(8),C[a]=o;for(;a<t;a++)C[a]=0}else{for(a=0;a<t-n;a++)C[a]=0;for(a=0;!N.isZero();a++)o=N.andln(255),N.iushrn(8),C[t-a-1]=o}return C},Math.clz32?s.prototype._countBits=function(e){return 32-Math.clz32(e)}:s.prototype._countBits=function(e){var r=e,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},s.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,i=0;return!(8191&r)&&(i+=13,r>>>=13),!(127&r)&&(i+=7,r>>>=7),!(15&r)&&(i+=4,r>>>=4),!(3&r)&&(i+=2,r>>>=2),!(1&r)&&i++,i},s.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return 26*(this.length-1)+r},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(e+=i,i!==26)break}return e},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},s.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return this.negative!==0},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},s.prototype.ior=function(e){return m((this.negative|e.negative)==0),this.iuor(e)},s.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},s.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},s.prototype.iuand=function(e){var r;r=this.length>e.length?e:this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=r.length,this.strip()},s.prototype.iand=function(e){return m((this.negative|e.negative)==0),this.iuand(e)},s.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},s.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},s.prototype.iuxor=function(e){var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=r.words[n]^i.words[n];if(this!==r)for(;n<r.length;n++)this.words[n]=r.words[n];return this.length=r.length,this.strip()},s.prototype.ixor=function(e){return m((this.negative|e.negative)==0),this.iuxor(e)},s.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},s.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},s.prototype.inotn=function(e){m(typeof e=="number"&&e>=0);var r=0|Math.ceil(e/26),i=e%26;this._expand(r),i>0&&r--;for(var n=0;n<r;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},s.prototype.notn=function(e){return this.clone().inotn(e)},s.prototype.setn=function(e,r){m(typeof e=="number"&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=r?this.words[i]|1<<n:this.words[i]&~(1<<n),this.strip()},s.prototype.iadd=function(e){var r,i,n;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var t=0,o=0;o<n.length;o++)r=(0|i.words[o])+(0|n.words[o])+t,this.words[o]=67108863&r,t=r>>>26;for(;t!==0&&o<i.length;o++)r=(0|i.words[o])+t,this.words[o]=67108863&r,t=r>>>26;if(this.length=i.length,t!==0)this.words[this.length]=t,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},s.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},s.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,t=this.cmp(e);if(t===0)return this.negative=0,this.length=1,this.words[0]=0,this;t>0?(i=this,n=e):(i=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(r=(0|i.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&r;for(;o!==0&&a<i.length;a++)o=(r=(0|i.words[a])+o)>>26,this.words[a]=67108863&r;if(o===0&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(e){return this.clone().isub(e)};var b=function(e,r,i){var n,t,o,a=e.words,T=r.words,C=i.words,N=0,O=0|a[0],R=8191&O,F=O>>>13,Z=0|a[1],ie=8191&Z,D=Z>>>13,Y=0|a[2],z=8191&Y,W=Y>>>13,ae=0|a[3],re=8191&ae,le=ae>>>13,ke=0|a[4],ge=8191&ke,be=ke>>>13,je=0|a[5],xe=8191&je,Ae=je>>>13,X=0|a[6],ee=8191&X,U=X>>>13,V=0|a[7],q=8191&V,ne=V>>>13,fe=0|a[8],he=8191&fe,me=fe>>>13,it=0|a[9],_e=8191&it,Te=it>>>13,ft=0|T[0],Se=8191&ft,Ge=ft>>>13,Ct=0|T[1],Pe=8191&Ct,Ve=Ct>>>13,Nt=0|T[2],Re=8191&Nt,Ke=Nt>>>13,yt=0|T[3],Be=8191&yt,We=yt>>>13,St=0|T[4],Ne=8191&St,Ze=St>>>13,It=0|T[5],Le=8191&It,Xe=It>>>13,Dt=0|T[6],De=8191&Dt,Qe=Dt>>>13,zt=0|T[7],qe=8191&zt,Je=zt>>>13,$t=0|T[8],Fe=8191&$t,tt=$t>>>13,Vt=0|T[9],Ue=8191&Vt,et=Vt>>>13;i.negative=e.negative^r.negative,i.length=19;var Tt=(N+(n=Math.imul(R,Se))|0)+((8191&(t=(t=Math.imul(R,Ge))+Math.imul(F,Se)|0))<<13)|0;N=((o=Math.imul(F,Ge))+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(ie,Se),t=(t=Math.imul(ie,Ge))+Math.imul(D,Se)|0,o=Math.imul(D,Ge);var Rt=(N+(n=n+Math.imul(R,Pe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ve)|0)+Math.imul(F,Pe)|0))<<13)|0;N=((o=o+Math.imul(F,Ve)|0)+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(z,Se),t=(t=Math.imul(z,Ge))+Math.imul(W,Se)|0,o=Math.imul(W,Ge),n=n+Math.imul(ie,Pe)|0,t=(t=t+Math.imul(ie,Ve)|0)+Math.imul(D,Pe)|0,o=o+Math.imul(D,Ve)|0;var Gt=(N+(n=n+Math.imul(R,Re)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ke)|0)+Math.imul(F,Re)|0))<<13)|0;N=((o=o+Math.imul(F,Ke)|0)+(t>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,n=Math.imul(re,Se),t=(t=Math.imul(re,Ge))+Math.imul(le,Se)|0,o=Math.imul(le,Ge),n=n+Math.imul(z,Pe)|0,t=(t=t+Math.imul(z,Ve)|0)+Math.imul(W,Pe)|0,o=o+Math.imul(W,Ve)|0,n=n+Math.imul(ie,Re)|0,t=(t=t+Math.imul(ie,Ke)|0)+Math.imul(D,Re)|0,o=o+Math.imul(D,Ke)|0;var an=(N+(n=n+Math.imul(R,Be)|0)|0)+((8191&(t=(t=t+Math.imul(R,We)|0)+Math.imul(F,Be)|0))<<13)|0;N=((o=o+Math.imul(F,We)|0)+(t>>>13)|0)+(an>>>26)|0,an&=67108863,n=Math.imul(ge,Se),t=(t=Math.imul(ge,Ge))+Math.imul(be,Se)|0,o=Math.imul(be,Ge),n=n+Math.imul(re,Pe)|0,t=(t=t+Math.imul(re,Ve)|0)+Math.imul(le,Pe)|0,o=o+Math.imul(le,Ve)|0,n=n+Math.imul(z,Re)|0,t=(t=t+Math.imul(z,Ke)|0)+Math.imul(W,Re)|0,o=o+Math.imul(W,Ke)|0,n=n+Math.imul(ie,Be)|0,t=(t=t+Math.imul(ie,We)|0)+Math.imul(D,Be)|0,o=o+Math.imul(D,We)|0;var rn=(N+(n=n+Math.imul(R,Ne)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ze)|0)+Math.imul(F,Ne)|0))<<13)|0;N=((o=o+Math.imul(F,Ze)|0)+(t>>>13)|0)+(rn>>>26)|0,rn&=67108863,n=Math.imul(xe,Se),t=(t=Math.imul(xe,Ge))+Math.imul(Ae,Se)|0,o=Math.imul(Ae,Ge),n=n+Math.imul(ge,Pe)|0,t=(t=t+Math.imul(ge,Ve)|0)+Math.imul(be,Pe)|0,o=o+Math.imul(be,Ve)|0,n=n+Math.imul(re,Re)|0,t=(t=t+Math.imul(re,Ke)|0)+Math.imul(le,Re)|0,o=o+Math.imul(le,Ke)|0,n=n+Math.imul(z,Be)|0,t=(t=t+Math.imul(z,We)|0)+Math.imul(W,Be)|0,o=o+Math.imul(W,We)|0,n=n+Math.imul(ie,Ne)|0,t=(t=t+Math.imul(ie,Ze)|0)+Math.imul(D,Ne)|0,o=o+Math.imul(D,Ze)|0;var un=(N+(n=n+Math.imul(R,Le)|0)|0)+((8191&(t=(t=t+Math.imul(R,Xe)|0)+Math.imul(F,Le)|0))<<13)|0;N=((o=o+Math.imul(F,Xe)|0)+(t>>>13)|0)+(un>>>26)|0,un&=67108863,n=Math.imul(ee,Se),t=(t=Math.imul(ee,Ge))+Math.imul(U,Se)|0,o=Math.imul(U,Ge),n=n+Math.imul(xe,Pe)|0,t=(t=t+Math.imul(xe,Ve)|0)+Math.imul(Ae,Pe)|0,o=o+Math.imul(Ae,Ve)|0,n=n+Math.imul(ge,Re)|0,t=(t=t+Math.imul(ge,Ke)|0)+Math.imul(be,Re)|0,o=o+Math.imul(be,Ke)|0,n=n+Math.imul(re,Be)|0,t=(t=t+Math.imul(re,We)|0)+Math.imul(le,Be)|0,o=o+Math.imul(le,We)|0,n=n+Math.imul(z,Ne)|0,t=(t=t+Math.imul(z,Ze)|0)+Math.imul(W,Ne)|0,o=o+Math.imul(W,Ze)|0,n=n+Math.imul(ie,Le)|0,t=(t=t+Math.imul(ie,Xe)|0)+Math.imul(D,Le)|0,o=o+Math.imul(D,Xe)|0;var cn=(N+(n=n+Math.imul(R,De)|0)|0)+((8191&(t=(t=t+Math.imul(R,Qe)|0)+Math.imul(F,De)|0))<<13)|0;N=((o=o+Math.imul(F,Qe)|0)+(t>>>13)|0)+(cn>>>26)|0,cn&=67108863,n=Math.imul(q,Se),t=(t=Math.imul(q,Ge))+Math.imul(ne,Se)|0,o=Math.imul(ne,Ge),n=n+Math.imul(ee,Pe)|0,t=(t=t+Math.imul(ee,Ve)|0)+Math.imul(U,Pe)|0,o=o+Math.imul(U,Ve)|0,n=n+Math.imul(xe,Re)|0,t=(t=t+Math.imul(xe,Ke)|0)+Math.imul(Ae,Re)|0,o=o+Math.imul(Ae,Ke)|0,n=n+Math.imul(ge,Be)|0,t=(t=t+Math.imul(ge,We)|0)+Math.imul(be,Be)|0,o=o+Math.imul(be,We)|0,n=n+Math.imul(re,Ne)|0,t=(t=t+Math.imul(re,Ze)|0)+Math.imul(le,Ne)|0,o=o+Math.imul(le,Ze)|0,n=n+Math.imul(z,Le)|0,t=(t=t+Math.imul(z,Xe)|0)+Math.imul(W,Le)|0,o=o+Math.imul(W,Xe)|0,n=n+Math.imul(ie,De)|0,t=(t=t+Math.imul(ie,Qe)|0)+Math.imul(D,De)|0,o=o+Math.imul(D,Qe)|0;var ln=(N+(n=n+Math.imul(R,qe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Je)|0)+Math.imul(F,qe)|0))<<13)|0;N=((o=o+Math.imul(F,Je)|0)+(t>>>13)|0)+(ln>>>26)|0,ln&=67108863,n=Math.imul(he,Se),t=(t=Math.imul(he,Ge))+Math.imul(me,Se)|0,o=Math.imul(me,Ge),n=n+Math.imul(q,Pe)|0,t=(t=t+Math.imul(q,Ve)|0)+Math.imul(ne,Pe)|0,o=o+Math.imul(ne,Ve)|0,n=n+Math.imul(ee,Re)|0,t=(t=t+Math.imul(ee,Ke)|0)+Math.imul(U,Re)|0,o=o+Math.imul(U,Ke)|0,n=n+Math.imul(xe,Be)|0,t=(t=t+Math.imul(xe,We)|0)+Math.imul(Ae,Be)|0,o=o+Math.imul(Ae,We)|0,n=n+Math.imul(ge,Ne)|0,t=(t=t+Math.imul(ge,Ze)|0)+Math.imul(be,Ne)|0,o=o+Math.imul(be,Ze)|0,n=n+Math.imul(re,Le)|0,t=(t=t+Math.imul(re,Xe)|0)+Math.imul(le,Le)|0,o=o+Math.imul(le,Xe)|0,n=n+Math.imul(z,De)|0,t=(t=t+Math.imul(z,Qe)|0)+Math.imul(W,De)|0,o=o+Math.imul(W,Qe)|0,n=n+Math.imul(ie,qe)|0,t=(t=t+Math.imul(ie,Je)|0)+Math.imul(D,qe)|0,o=o+Math.imul(D,Je)|0;var hn=(N+(n=n+Math.imul(R,Fe)|0)|0)+((8191&(t=(t=t+Math.imul(R,tt)|0)+Math.imul(F,Fe)|0))<<13)|0;N=((o=o+Math.imul(F,tt)|0)+(t>>>13)|0)+(hn>>>26)|0,hn&=67108863,n=Math.imul(_e,Se),t=(t=Math.imul(_e,Ge))+Math.imul(Te,Se)|0,o=Math.imul(Te,Ge),n=n+Math.imul(he,Pe)|0,t=(t=t+Math.imul(he,Ve)|0)+Math.imul(me,Pe)|0,o=o+Math.imul(me,Ve)|0,n=n+Math.imul(q,Re)|0,t=(t=t+Math.imul(q,Ke)|0)+Math.imul(ne,Re)|0,o=o+Math.imul(ne,Ke)|0,n=n+Math.imul(ee,Be)|0,t=(t=t+Math.imul(ee,We)|0)+Math.imul(U,Be)|0,o=o+Math.imul(U,We)|0,n=n+Math.imul(xe,Ne)|0,t=(t=t+Math.imul(xe,Ze)|0)+Math.imul(Ae,Ne)|0,o=o+Math.imul(Ae,Ze)|0,n=n+Math.imul(ge,Le)|0,t=(t=t+Math.imul(ge,Xe)|0)+Math.imul(be,Le)|0,o=o+Math.imul(be,Xe)|0,n=n+Math.imul(re,De)|0,t=(t=t+Math.imul(re,Qe)|0)+Math.imul(le,De)|0,o=o+Math.imul(le,Qe)|0,n=n+Math.imul(z,qe)|0,t=(t=t+Math.imul(z,Je)|0)+Math.imul(W,qe)|0,o=o+Math.imul(W,Je)|0,n=n+Math.imul(ie,Fe)|0,t=(t=t+Math.imul(ie,tt)|0)+Math.imul(D,Fe)|0,o=o+Math.imul(D,tt)|0;var fn=(N+(n=n+Math.imul(R,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(R,et)|0)+Math.imul(F,Ue)|0))<<13)|0;N=((o=o+Math.imul(F,et)|0)+(t>>>13)|0)+(fn>>>26)|0,fn&=67108863,n=Math.imul(_e,Pe),t=(t=Math.imul(_e,Ve))+Math.imul(Te,Pe)|0,o=Math.imul(Te,Ve),n=n+Math.imul(he,Re)|0,t=(t=t+Math.imul(he,Ke)|0)+Math.imul(me,Re)|0,o=o+Math.imul(me,Ke)|0,n=n+Math.imul(q,Be)|0,t=(t=t+Math.imul(q,We)|0)+Math.imul(ne,Be)|0,o=o+Math.imul(ne,We)|0,n=n+Math.imul(ee,Ne)|0,t=(t=t+Math.imul(ee,Ze)|0)+Math.imul(U,Ne)|0,o=o+Math.imul(U,Ze)|0,n=n+Math.imul(xe,Le)|0,t=(t=t+Math.imul(xe,Xe)|0)+Math.imul(Ae,Le)|0,o=o+Math.imul(Ae,Xe)|0,n=n+Math.imul(ge,De)|0,t=(t=t+Math.imul(ge,Qe)|0)+Math.imul(be,De)|0,o=o+Math.imul(be,Qe)|0,n=n+Math.imul(re,qe)|0,t=(t=t+Math.imul(re,Je)|0)+Math.imul(le,qe)|0,o=o+Math.imul(le,Je)|0,n=n+Math.imul(z,Fe)|0,t=(t=t+Math.imul(z,tt)|0)+Math.imul(W,Fe)|0,o=o+Math.imul(W,tt)|0;var pn=(N+(n=n+Math.imul(ie,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ie,et)|0)+Math.imul(D,Ue)|0))<<13)|0;N=((o=o+Math.imul(D,et)|0)+(t>>>13)|0)+(pn>>>26)|0,pn&=67108863,n=Math.imul(_e,Re),t=(t=Math.imul(_e,Ke))+Math.imul(Te,Re)|0,o=Math.imul(Te,Ke),n=n+Math.imul(he,Be)|0,t=(t=t+Math.imul(he,We)|0)+Math.imul(me,Be)|0,o=o+Math.imul(me,We)|0,n=n+Math.imul(q,Ne)|0,t=(t=t+Math.imul(q,Ze)|0)+Math.imul(ne,Ne)|0,o=o+Math.imul(ne,Ze)|0,n=n+Math.imul(ee,Le)|0,t=(t=t+Math.imul(ee,Xe)|0)+Math.imul(U,Le)|0,o=o+Math.imul(U,Xe)|0,n=n+Math.imul(xe,De)|0,t=(t=t+Math.imul(xe,Qe)|0)+Math.imul(Ae,De)|0,o=o+Math.imul(Ae,Qe)|0,n=n+Math.imul(ge,qe)|0,t=(t=t+Math.imul(ge,Je)|0)+Math.imul(be,qe)|0,o=o+Math.imul(be,Je)|0,n=n+Math.imul(re,Fe)|0,t=(t=t+Math.imul(re,tt)|0)+Math.imul(le,Fe)|0,o=o+Math.imul(le,tt)|0;var Xt=(N+(n=n+Math.imul(z,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(z,et)|0)+Math.imul(W,Ue)|0))<<13)|0;N=((o=o+Math.imul(W,et)|0)+(t>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,n=Math.imul(_e,Be),t=(t=Math.imul(_e,We))+Math.imul(Te,Be)|0,o=Math.imul(Te,We),n=n+Math.imul(he,Ne)|0,t=(t=t+Math.imul(he,Ze)|0)+Math.imul(me,Ne)|0,o=o+Math.imul(me,Ze)|0,n=n+Math.imul(q,Le)|0,t=(t=t+Math.imul(q,Xe)|0)+Math.imul(ne,Le)|0,o=o+Math.imul(ne,Xe)|0,n=n+Math.imul(ee,De)|0,t=(t=t+Math.imul(ee,Qe)|0)+Math.imul(U,De)|0,o=o+Math.imul(U,Qe)|0,n=n+Math.imul(xe,qe)|0,t=(t=t+Math.imul(xe,Je)|0)+Math.imul(Ae,qe)|0,o=o+Math.imul(Ae,Je)|0,n=n+Math.imul(ge,Fe)|0,t=(t=t+Math.imul(ge,tt)|0)+Math.imul(be,Fe)|0,o=o+Math.imul(be,tt)|0;var dn=(N+(n=n+Math.imul(re,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(re,et)|0)+Math.imul(le,Ue)|0))<<13)|0;N=((o=o+Math.imul(le,et)|0)+(t>>>13)|0)+(dn>>>26)|0,dn&=67108863,n=Math.imul(_e,Ne),t=(t=Math.imul(_e,Ze))+Math.imul(Te,Ne)|0,o=Math.imul(Te,Ze),n=n+Math.imul(he,Le)|0,t=(t=t+Math.imul(he,Xe)|0)+Math.imul(me,Le)|0,o=o+Math.imul(me,Xe)|0,n=n+Math.imul(q,De)|0,t=(t=t+Math.imul(q,Qe)|0)+Math.imul(ne,De)|0,o=o+Math.imul(ne,Qe)|0,n=n+Math.imul(ee,qe)|0,t=(t=t+Math.imul(ee,Je)|0)+Math.imul(U,qe)|0,o=o+Math.imul(U,Je)|0,n=n+Math.imul(xe,Fe)|0,t=(t=t+Math.imul(xe,tt)|0)+Math.imul(Ae,Fe)|0,o=o+Math.imul(Ae,tt)|0;var vn=(N+(n=n+Math.imul(ge,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ge,et)|0)+Math.imul(be,Ue)|0))<<13)|0;N=((o=o+Math.imul(be,et)|0)+(t>>>13)|0)+(vn>>>26)|0,vn&=67108863,n=Math.imul(_e,Le),t=(t=Math.imul(_e,Xe))+Math.imul(Te,Le)|0,o=Math.imul(Te,Xe),n=n+Math.imul(he,De)|0,t=(t=t+Math.imul(he,Qe)|0)+Math.imul(me,De)|0,o=o+Math.imul(me,Qe)|0,n=n+Math.imul(q,qe)|0,t=(t=t+Math.imul(q,Je)|0)+Math.imul(ne,qe)|0,o=o+Math.imul(ne,Je)|0,n=n+Math.imul(ee,Fe)|0,t=(t=t+Math.imul(ee,tt)|0)+Math.imul(U,Fe)|0,o=o+Math.imul(U,tt)|0;var tn=(N+(n=n+Math.imul(xe,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(xe,et)|0)+Math.imul(Ae,Ue)|0))<<13)|0;N=((o=o+Math.imul(Ae,et)|0)+(t>>>13)|0)+(tn>>>26)|0,tn&=67108863,n=Math.imul(_e,De),t=(t=Math.imul(_e,Qe))+Math.imul(Te,De)|0,o=Math.imul(Te,Qe),n=n+Math.imul(he,qe)|0,t=(t=t+Math.imul(he,Je)|0)+Math.imul(me,qe)|0,o=o+Math.imul(me,Je)|0,n=n+Math.imul(q,Fe)|0,t=(t=t+Math.imul(q,tt)|0)+Math.imul(ne,Fe)|0,o=o+Math.imul(ne,tt)|0;var nn=(N+(n=n+Math.imul(ee,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ee,et)|0)+Math.imul(U,Ue)|0))<<13)|0;N=((o=o+Math.imul(U,et)|0)+(t>>>13)|0)+(nn>>>26)|0,nn&=67108863,n=Math.imul(_e,qe),t=(t=Math.imul(_e,Je))+Math.imul(Te,qe)|0,o=Math.imul(Te,Je),n=n+Math.imul(he,Fe)|0,t=(t=t+Math.imul(he,tt)|0)+Math.imul(me,Fe)|0,o=o+Math.imul(me,tt)|0;var Jt=(N+(n=n+Math.imul(q,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(q,et)|0)+Math.imul(ne,Ue)|0))<<13)|0;N=((o=o+Math.imul(ne,et)|0)+(t>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,n=Math.imul(_e,Fe),t=(t=Math.imul(_e,tt))+Math.imul(Te,Fe)|0,o=Math.imul(Te,tt);var mn=(N+(n=n+Math.imul(he,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(he,et)|0)+Math.imul(me,Ue)|0))<<13)|0;N=((o=o+Math.imul(me,et)|0)+(t>>>13)|0)+(mn>>>26)|0,mn&=67108863;var on=(N+(n=Math.imul(_e,Ue))|0)+((8191&(t=(t=Math.imul(_e,et))+Math.imul(Te,Ue)|0))<<13)|0;return N=((o=Math.imul(Te,et))+(t>>>13)|0)+(on>>>26)|0,on&=67108863,C[0]=Tt,C[1]=Rt,C[2]=Gt,C[3]=an,C[4]=rn,C[5]=un,C[6]=cn,C[7]=ln,C[8]=hn,C[9]=fn,C[10]=pn,C[11]=Xt,C[12]=dn,C[13]=vn,C[14]=tn,C[15]=nn,C[16]=Jt,C[17]=mn,C[18]=on,N!==0&&(C[19]=N,i.length++),i};function k(e,r,i){return new A().mulp(e,r,i)}function A(e,r){this.x=e,this.y=r}Math.imul||(b=w),s.prototype.mulTo=function(e,r){var i,n=this.length+e.length;return i=this.length===10&&e.length===10?b(this,e,r):n<63?w(this,e,r):n<1024?function(t,o,a){a.negative=o.negative^t.negative,a.length=t.length+o.length;for(var T=0,C=0,N=0;N<a.length-1;N++){var O=C;C=0;for(var R=67108863&T,F=Math.min(N,o.length-1),Z=Math.max(0,N-t.length+1);Z<=F;Z++){var ie=N-Z,D=(0|t.words[ie])*(0|o.words[Z]),Y=67108863&D;R=67108863&(Y=Y+R|0),C+=(O=(O=O+(D/67108864|0)|0)+(Y>>>26)|0)>>>26,O&=67108863}a.words[N]=R,T=O,O=C}return T!==0?a.words[N]=T:a.length--,a.strip()}(this,e,r):k(this,e,r),i},A.prototype.makeRBT=function(e){for(var r=new Array(e),i=s.prototype._countBits(e)-1,n=0;n<e;n++)r[n]=this.revBin(n,i,e);return r},A.prototype.revBin=function(e,r,i){if(e===0||e===i-1)return e;for(var n=0,t=0;t<r;t++)n|=(1&e)<<r-t-1,e>>=1;return n},A.prototype.permute=function(e,r,i,n,t,o){for(var a=0;a<o;a++)n[a]=r[e[a]],t[a]=i[e[a]]},A.prototype.transform=function(e,r,i,n,t,o){this.permute(o,e,r,i,n,t);for(var a=1;a<t;a<<=1)for(var T=a<<1,C=Math.cos(2*Math.PI/T),N=Math.sin(2*Math.PI/T),O=0;O<t;O+=T)for(var R=C,F=N,Z=0;Z<a;Z++){var ie=i[O+Z],D=n[O+Z],Y=i[O+Z+a],z=n[O+Z+a],W=R*Y-F*z;z=R*z+F*Y,Y=W,i[O+Z]=ie+Y,n[O+Z]=D+z,i[O+Z+a]=ie-Y,n[O+Z+a]=D-z,Z!==T&&(W=C*R-N*F,F=C*F+N*R,R=W)}},A.prototype.guessLen13b=function(e,r){var i=1|Math.max(r,e),n=1&i,t=0;for(i=i/2|0;i;i>>>=1)t++;return 1<<t+1+n},A.prototype.conjugate=function(e,r,i){if(!(i<=1))for(var n=0;n<i/2;n++){var t=e[n];e[n]=e[i-n-1],e[i-n-1]=t,t=r[n],r[n]=-r[i-n-1],r[i-n-1]=-t}},A.prototype.normalize13b=function(e,r){for(var i=0,n=0;n<r/2;n++){var t=8192*Math.round(e[2*n+1]/r)+Math.round(e[2*n]/r)+i;e[n]=67108863&t,i=t<67108864?0:t/67108864|0}return e},A.prototype.convert13b=function(e,r,i,n){for(var t=0,o=0;o<r;o++)t+=0|e[o],i[2*o]=8191&t,t>>>=13,i[2*o+1]=8191&t,t>>>=13;for(o=2*r;o<n;++o)i[o]=0;m(t===0),m((-8192&t)==0)},A.prototype.stub=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=0;return r},A.prototype.mulp=function(e,r,i){var n=2*this.guessLen13b(e.length,r.length),t=this.makeRBT(n),o=this.stub(n),a=new Array(n),T=new Array(n),C=new Array(n),N=new Array(n),O=new Array(n),R=new Array(n),F=i.words;F.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(r.words,r.length,N,n),this.transform(a,o,T,C,n,t),this.transform(N,o,O,R,n,t);for(var Z=0;Z<n;Z++){var ie=T[Z]*O[Z]-C[Z]*R[Z];C[Z]=T[Z]*R[Z]+C[Z]*O[Z],T[Z]=ie}return this.conjugate(T,C,n),this.transform(T,C,F,o,n,t),this.conjugate(F,o,n),this.normalize13b(F,n),i.negative=e.negative^r.negative,i.length=e.length+r.length,i.strip()},s.prototype.mul=function(e){var r=new s(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},s.prototype.mulf=function(e){var r=new s(null);return r.words=new Array(this.length+e.length),k(this,e,r)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){m(typeof e=="number"),m(e<67108864);for(var r=0,i=0;i<this.length;i++){var n=(0|this.words[i])*e,t=(67108863&n)+(67108863&r);r>>=26,r+=n/67108864|0,r+=t>>>26,this.words[i]=67108863&t}return r!==0&&(this.words[i]=r,this.length++),this},s.prototype.muln=function(e){return this.clone().imuln(e)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(e){var r=function(o){for(var a=new Array(o.bitLength()),T=0;T<a.length;T++){var C=T/26|0,N=T%26;a[T]=(o.words[C]&1<<N)>>>N}return a}(e);if(r.length===0)return new s(1);for(var i=this,n=0;n<r.length&&r[n]===0;n++,i=i.sqr());if(++n<r.length)for(var t=i.sqr();n<r.length;n++,t=t.sqr())r[n]!==0&&(i=i.mul(t));return i},s.prototype.iushln=function(e){m(typeof e=="number"&&e>=0);var r,i=e%26,n=(e-i)/26,t=67108863>>>26-i<<26-i;if(i!==0){var o=0;for(r=0;r<this.length;r++){var a=this.words[r]&t,T=(0|this.words[r])-a<<i;this.words[r]=T|o,o=a>>>26-i}o&&(this.words[r]=o,this.length++)}if(n!==0){for(r=this.length-1;r>=0;r--)this.words[r+n]=this.words[r];for(r=0;r<n;r++)this.words[r]=0;this.length+=n}return this.strip()},s.prototype.ishln=function(e){return m(this.negative===0),this.iushln(e)},s.prototype.iushrn=function(e,r,i){var n;m(typeof e=="number"&&e>=0),n=r?(r-r%26)/26:0;var t=e%26,o=Math.min((e-t)/26,this.length),a=67108863^67108863>>>t<<t,T=i;if(n-=o,n=Math.max(0,n),T){for(var C=0;C<o;C++)T.words[C]=this.words[C];T.length=o}if(o!==0)if(this.length>o)for(this.length-=o,C=0;C<this.length;C++)this.words[C]=this.words[C+o];else this.words[0]=0,this.length=1;var N=0;for(C=this.length-1;C>=0&&(N!==0||C>=n);C--){var O=0|this.words[C];this.words[C]=N<<26-t|O>>>t,N=O&a}return T&&N!==0&&(T.words[T.length++]=N),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(e,r,i){return m(this.negative===0),this.iushrn(e,r,i)},s.prototype.shln=function(e){return this.clone().ishln(e)},s.prototype.ushln=function(e){return this.clone().iushln(e)},s.prototype.shrn=function(e){return this.clone().ishrn(e)},s.prototype.ushrn=function(e){return this.clone().iushrn(e)},s.prototype.testn=function(e){m(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,n=1<<r;return!(this.length<=i||!(this.words[i]&n))},s.prototype.imaskn=function(e){m(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(m(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(r!==0&&i++,this.length=Math.min(i,this.length),r!==0){var n=67108863^67108863>>>r<<r;this.words[this.length-1]&=n}return this.strip()},s.prototype.maskn=function(e){return this.clone().imaskn(e)},s.prototype.iaddn=function(e){return m(typeof e=="number"),m(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},s.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},s.prototype.isubn=function(e){if(m(typeof e=="number"),m(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},s.prototype.addn=function(e){return this.clone().iaddn(e)},s.prototype.subn=function(e){return this.clone().isubn(e)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(e,r,i){var n,t,o=e.length+i;this._expand(o);var a=0;for(n=0;n<e.length;n++){t=(0|this.words[n+i])+a;var T=(0|e.words[n])*r;a=((t-=67108863&T)>>26)-(T/67108864|0),this.words[n+i]=67108863&t}for(;n<this.length-i;n++)a=(t=(0|this.words[n+i])+a)>>26,this.words[n+i]=67108863&t;if(a===0)return this.strip();for(m(a===-1),a=0,n=0;n<this.length;n++)a=(t=-(0|this.words[n])+a)>>26,this.words[n]=67108863&t;return this.negative=1,this.strip()},s.prototype._wordDiv=function(e,r){var i=(this.length,e.length),n=this.clone(),t=e,o=0|t.words[t.length-1];(i=26-this._countBits(o))!=0&&(t=t.ushln(i),n.iushln(i),o=0|t.words[t.length-1]);var a,T=n.length-t.length;if(r!=="mod"){(a=new s(null)).length=T+1,a.words=new Array(a.length);for(var C=0;C<a.length;C++)a.words[C]=0}var N=n.clone()._ishlnsubmul(t,1,T);N.negative===0&&(n=N,a&&(a.words[T]=1));for(var O=T-1;O>=0;O--){var R=67108864*(0|n.words[t.length+O])+(0|n.words[t.length+O-1]);for(R=Math.min(R/o|0,67108863),n._ishlnsubmul(t,R,O);n.negative!==0;)R--,n.negative=0,n._ishlnsubmul(t,1,O),n.isZero()||(n.negative^=1);a&&(a.words[O]=R)}return a&&a.strip(),n.strip(),r!=="div"&&i!==0&&n.iushrn(i),{div:a||null,mod:n}},s.prototype.divmod=function(e,r,i){return m(!e.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:this.negative!==0&&e.negative===0?(o=this.neg().divmod(e,r),r!=="mod"&&(n=o.div.neg()),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.iadd(e)),{div:n,mod:t}):this.negative===0&&e.negative!==0?(o=this.divmod(e.neg(),r),r!=="mod"&&(n=o.div.neg()),{div:n,mod:o.mod}):this.negative&e.negative?(o=this.neg().divmod(e.neg(),r),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.isub(e)),{div:o.div,mod:t}):e.length>this.length||this.cmp(e)<0?{div:new s(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new s(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modn(e.words[0]))}:this._wordDiv(e,r);var n,t,o},s.prototype.div=function(e){return this.divmod(e,"div",!1).div},s.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},s.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},s.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var i=r.div.negative!==0?r.mod.isub(e):r.mod,n=e.ushrn(1),t=e.andln(1),o=i.cmp(n);return o<0||t===1&&o===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},s.prototype.modn=function(e){m(e<=67108863);for(var r=67108864%e,i=0,n=this.length-1;n>=0;n--)i=(r*i+(0|this.words[n]))%e;return i},s.prototype.idivn=function(e){m(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*r;this.words[i]=n/e|0,r=n%e}return this.strip()},s.prototype.divn=function(e){return this.clone().idivn(e)},s.prototype.egcd=function(e){m(e.negative===0),m(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n=new s(1),t=new s(0),o=new s(0),a=new s(1),T=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++T;for(var C=i.clone(),N=r.clone();!r.isZero();){for(var O=0,R=1;!(r.words[0]&R)&&O<26;++O,R<<=1);if(O>0)for(r.iushrn(O);O-- >0;)(n.isOdd()||t.isOdd())&&(n.iadd(C),t.isub(N)),n.iushrn(1),t.iushrn(1);for(var F=0,Z=1;!(i.words[0]&Z)&&F<26;++F,Z<<=1);if(F>0)for(i.iushrn(F);F-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(C),a.isub(N)),o.iushrn(1),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),n.isub(o),t.isub(a)):(i.isub(r),o.isub(n),a.isub(t))}return{a:o,b:a,gcd:i.iushln(T)}},s.prototype._invmp=function(e){m(e.negative===0),m(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n,t=new s(1),o=new s(0),a=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var T=0,C=1;!(r.words[0]&C)&&T<26;++T,C<<=1);if(T>0)for(r.iushrn(T);T-- >0;)t.isOdd()&&t.iadd(a),t.iushrn(1);for(var N=0,O=1;!(i.words[0]&O)&&N<26;++N,O<<=1);if(N>0)for(i.iushrn(N);N-- >0;)o.isOdd()&&o.iadd(a),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),t.isub(o)):(i.isub(r),o.isub(t))}return(n=r.cmpn(1)===0?t:o).cmpn(0)<0&&n.iadd(e),n},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),i=e.clone();r.negative=0,i.negative=0;for(var n=0;r.isEven()&&i.isEven();n++)r.iushrn(1),i.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var t=r.cmp(i);if(t<0){var o=r;r=i,i=o}else if(t===0||i.cmpn(1)===0)break;r.isub(i)}return i.iushln(n)},s.prototype.invm=function(e){return this.egcd(e).a.umod(e)},s.prototype.isEven=function(){return(1&this.words[0])==0},s.prototype.isOdd=function(){return(1&this.words[0])==1},s.prototype.andln=function(e){return this.words[0]&e},s.prototype.bincn=function(e){m(typeof e=="number");var r=e%26,i=(e-r)/26,n=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var t=n,o=i;t!==0&&o<this.length;o++){var a=0|this.words[o];t=(a+=t)>>>26,a&=67108863,this.words[o]=a}return t!==0&&(this.words[o]=t,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(e){var r,i=e<0;if(this.negative!==0&&!i)return-1;if(this.negative===0&&i)return 1;if(this.strip(),this.length>1)r=1;else{i&&(e=-e),m(e<=67108863,"Number is too big");var n=0|this.words[0];r=n===e?0:n<e?-1:1}return this.negative!==0?0|-r:r},s.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?0|-r:r},s.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],t=0|e.words[i];if(n!==t){n<t?r=-1:n>t&&(r=1);break}}return r},s.prototype.gtn=function(e){return this.cmpn(e)===1},s.prototype.gt=function(e){return this.cmp(e)===1},s.prototype.gten=function(e){return this.cmpn(e)>=0},s.prototype.gte=function(e){return this.cmp(e)>=0},s.prototype.ltn=function(e){return this.cmpn(e)===-1},s.prototype.lt=function(e){return this.cmp(e)===-1},s.prototype.lten=function(e){return this.cmpn(e)<=0},s.prototype.lte=function(e){return this.cmp(e)<=0},s.prototype.eqn=function(e){return this.cmpn(e)===0},s.prototype.eq=function(e){return this.cmp(e)===0},s.red=function(e){return new J(e)},s.prototype.toRed=function(e){return m(!this.red,"Already a number in reduction context"),m(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return m(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(e){return this.red=e,this},s.prototype.forceRed=function(e){return m(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return m(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return m(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return m(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return m(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return m(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return m(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return m(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return m(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return m(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return m(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return m(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return m(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};function j(e,r){this.name=e,this.p=new s(r,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function P(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function B(){j.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function $(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function te(){j.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function J(e){if(typeof e=="string"){var r=s._prime(e);this.m=r.p,this.prime=r}else m(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function oe(e){J.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(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)}j.prototype._tmp=function(){var e=new s(null);return e.words=new Array(Math.ceil(this.n/13)),e},j.prototype.ireduce=function(e){var r,i=e;do this.split(i,this.tmp),r=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength();while(r>this.n);var n=r<this.n?-1:i.ucmp(this.p);return n===0?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):i.strip!==void 0?i.strip():i._strip(),i},j.prototype.split=function(e,r){e.iushrn(this.n,0,r)},j.prototype.imulK=function(e){return e.imul(this.k)},E(P,j),P.prototype.split=function(e,r){for(var i=4194303,n=Math.min(e.length,9),t=0;t<n;t++)r.words[t]=e.words[t];if(r.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(r.words[r.length++]=o&i,t=10;t<e.length;t++){var a=0|e.words[t];e.words[t-10]=(a&i)<<4|o>>>22,o=a}o>>>=22,e.words[t-10]=o,o===0&&e.length>10?e.length-=10:e.length-=9},P.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,i=0;i<e.length;i++){var n=0|e.words[i];r+=977*n,e.words[i]=67108863&r,r=64*n+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e},E(B,j),E($,j),E(te,j),te.prototype.imulK=function(e){for(var r=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+r,t=67108863&n;n>>>=26,e.words[i]=t,r=n}return r!==0&&(e.words[e.length++]=r),e},s._prime=function(e){if(x[e])return x[e];var r;if(e==="k256")r=new P;else if(e==="p224")r=new B;else if(e==="p192")r=new $;else{if(e!=="p25519")throw new Error("Unknown prime "+e);r=new te}return x[e]=r,r},J.prototype._verify1=function(e){m(e.negative===0,"red works only with positives"),m(e.red,"red works only with red numbers")},J.prototype._verify2=function(e,r){m((e.negative|r.negative)==0,"red works only with positives"),m(e.red&&e.red===r.red,"red works only with red numbers")},J.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},J.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},J.prototype.add=function(e,r){this._verify2(e,r);var i=e.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},J.prototype.iadd=function(e,r){this._verify2(e,r);var i=e.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},J.prototype.sub=function(e,r){this._verify2(e,r);var i=e.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},J.prototype.isub=function(e,r){this._verify2(e,r);var i=e.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},J.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},J.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},J.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},J.prototype.isqr=function(e){return this.imul(e,e.clone())},J.prototype.sqr=function(e){return this.mul(e,e)},J.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(m(r%2==1),r===3){var i=this.m.add(new s(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),t=0;!n.isZero()&&n.andln(1)===0;)t++,n.iushrn(1);m(!n.isZero());var o=new s(1).toRed(this),a=o.redNeg(),T=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new s(2*C*C).toRed(this);this.pow(C,T).cmp(a)!==0;)C.redIAdd(a);for(var N=this.pow(C,n),O=this.pow(e,n.addn(1).iushrn(1)),R=this.pow(e,n),F=t;R.cmp(o)!==0;){for(var Z=R,ie=0;Z.cmp(o)!==0;ie++)Z=Z.redSqr();m(ie<F);var D=this.pow(N,new s(1).iushln(F-ie-1));O=O.redMul(D),N=D.redSqr(),R=R.redMul(N),F=ie}return O},J.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},J.prototype.pow=function(e,r){if(r.isZero())return new s(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var i=new Array(16);i[0]=new s(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var t=i[0],o=0,a=0,T=r.bitLength()%26;for(T===0&&(T=26),n=r.length-1;n>=0;n--){for(var C=r.words[n],N=T-1;N>=0;N--){var O=C>>N&1;t!==i[0]&&(t=this.sqr(t)),O!==0||o!==0?(o<<=1,o|=O,(++a==4||n===0&&N===0)&&(t=this.mul(t,i[o]),a=0,o=0)):a=0}T=26}return t},J.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},J.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},s.mont=function(e){return new oe(e)},E(oe,J),oe.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},oe.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},oe.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},oe.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new s(0)._forceRed(this);var i=e.mul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},oe.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(H=y.nmd(H),this)},6138:(H,_,y)=>{var M=y(980),v=y(9199),m=y(7859),E=y(2144),s=y(3663),p=y(3482),c=y(4818),l=y(9509).Buffer;H.exports=function(f,g,h){var u;u=f.padding?f.padding:h?1:4;var w,b=M(f),k=b.modulus.byteLength();if(g.length>k||new E(g).cmp(b.modulus)>=0)throw new Error("decryption error");w=h?c(new E(g),b):s(g,b);var A=l.alloc(k-w.length);if(w=l.concat([A,w],k),u===4)return function(x,j){var P=x.modulus.byteLength(),B=p("sha1").update(l.alloc(0)).digest(),$=B.length;if(j[0]!==0)throw new Error("decryption error");var te=j.slice(1,$+1),J=j.slice($+1),oe=m(te,v(J,$)),e=m(J,v(oe,P-$-1));if(function(i,n){i=l.from(i),n=l.from(n);var t=0,o=i.length;i.length!==n.length&&(t++,o=Math.min(i.length,n.length));for(var a=-1;++a<o;)t+=i[a]^n[a];return t}(B,e.slice(0,$)))throw new Error("decryption error");for(var r=$;e[r]===0;)r++;if(e[r++]!==1)throw new Error("decryption error");return e.slice(r)}(b,w);if(u===1)return function(x,j,P){for(var B=j.slice(0,2),$=2,te=0;j[$++]!==0;)if($>=j.length){te++;break}var J=j.slice(2,$-1);if((B.toString("hex")!=="0002"&&!P||B.toString("hex")!=="0001"&&P)&&te++,J.length<8&&te++,te)throw new Error("decryption error");return j.slice($)}(0,w,h);if(u===3)return w;throw new Error("unknown padding")}},6559:(H,_,y)=>{var M=y(980),v=y(1798),m=y(3482),E=y(9199),s=y(7859),p=y(2144),c=y(4818),l=y(3663),f=y(9509).Buffer;H.exports=function(g,h,u){var w;w=g.padding?g.padding:u?1:4;var b,k=M(g);if(w===4)b=function(A,x){var j=A.modulus.byteLength(),P=x.length,B=m("sha1").update(f.alloc(0)).digest(),$=B.length,te=2*$;if(P>j-te-2)throw new Error("message too long");var J=f.alloc(j-P-te-2),oe=j-$-1,e=v($),r=s(f.concat([B,J,f.alloc(1,1),x],oe),E(e,oe)),i=s(e,E(r,$));return new p(f.concat([f.alloc(1),i,r],j))}(k,h);else if(w===1)b=function(A,x,j){var P,B=x.length,$=A.modulus.byteLength();if(B>$-11)throw new Error("message too long");return P=j?f.alloc($-B-3,255):function(te){for(var J,oe=f.allocUnsafe(te),e=0,r=v(2*te),i=0;e<te;)i===r.length&&(r=v(2*te),i=0),(J=r[i++])&&(oe[e++]=J);return oe}($-B-3),new p(f.concat([f.from([0,j?1:2]),P,f.alloc(1),x],$))}(k,h,u);else{if(w!==3)throw new Error("unknown padding");if((b=new p(h)).cmp(k.modulus)>=0)throw new Error("data too long for modulus")}return u?l(b,k):c(b,k)}},4818:(H,_,y)=>{var M=y(2144),v=y(9509).Buffer;H.exports=function(m,E){return v.from(m.toRed(M.mont(E.modulus)).redPow(new M(E.publicExponent)).fromRed().toArray())}},7859:H=>{H.exports=function(_,y){for(var M=_.length,v=-1;++v<M;)_[v]^=y[v];return _}},7563:(H,_,y)=>{const M=y(610),v=y(4020),m=y(500),E=y(2806),s=Symbol("encodeFragmentIdentifier");function p(b){if(typeof b!="string"||b.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(b,k){return k.encode?k.strict?M(b):encodeURIComponent(b):b}function l(b,k){return k.decode?v(b):b}function f(b){return Array.isArray(b)?b.sort():typeof b=="object"?f(Object.keys(b)).sort((k,A)=>Number(k)-Number(A)).map(k=>b[k]):b}function g(b){const k=b.indexOf("#");return k!==-1&&(b=b.slice(0,k)),b}function h(b){const k=(b=g(b)).indexOf("?");return k===-1?"":b.slice(k+1)}function u(b,k){return k.parseNumbers&&!Number.isNaN(Number(b))&&typeof b=="string"&&b.trim()!==""?b=Number(b):!k.parseBooleans||b===null||b.toLowerCase()!=="true"&&b.toLowerCase()!=="false"||(b=b.toLowerCase()==="true"),b}function w(b,k){p((k=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},k)).arrayFormatSeparator);const A=function(j){let P;switch(j.arrayFormat){case"index":return(B,$,te)=>{P=/\[(\d*)\]$/.exec(B),B=B.replace(/\[\d*\]$/,""),P?(te[B]===void 0&&(te[B]={}),te[B][P[1]]=$):te[B]=$};case"bracket":return(B,$,te)=>{P=/(\[\])$/.exec(B),B=B.replace(/\[\]$/,""),P?te[B]!==void 0?te[B]=[].concat(te[B],$):te[B]=[$]:te[B]=$};case"colon-list-separator":return(B,$,te)=>{P=/(:list)$/.exec(B),B=B.replace(/:list$/,""),P?te[B]!==void 0?te[B]=[].concat(te[B],$):te[B]=[$]:te[B]=$};case"comma":case"separator":return(B,$,te)=>{const J=typeof $=="string"&&$.includes(j.arrayFormatSeparator),oe=typeof $=="string"&&!J&&l($,j).includes(j.arrayFormatSeparator);$=oe?l($,j):$;const e=J||oe?$.split(j.arrayFormatSeparator).map(r=>l(r,j)):$===null?$:l($,j);te[B]=e};case"bracket-separator":return(B,$,te)=>{const J=/(\[\])$/.test(B);if(B=B.replace(/\[\]$/,""),!J)return void(te[B]=$&&l($,j));const oe=$===null?[]:$.split(j.arrayFormatSeparator).map(e=>l(e,j));te[B]!==void 0?te[B]=[].concat(te[B],oe):te[B]=oe};default:return(B,$,te)=>{te[B]!==void 0?te[B]=[].concat(te[B],$):te[B]=$}}}(k),x=Object.create(null);if(typeof b!="string"||!(b=b.trim().replace(/^[?#&]/,"")))return x;for(const j of b.split("&")){if(j==="")continue;let[P,B]=m(k.decode?j.replace(/\+/g," "):j,"=");B=B===void 0?null:["comma","separator","bracket-separator"].includes(k.arrayFormat)?B:l(B,k),A(l(P,k),B,x)}for(const j of Object.keys(x)){const P=x[j];if(typeof P=="object"&&P!==null)for(const B of Object.keys(P))P[B]=u(P[B],k);else x[j]=u(P,k)}return k.sort===!1?x:(k.sort===!0?Object.keys(x).sort():Object.keys(x).sort(k.sort)).reduce((j,P)=>{const B=x[P];return B&&typeof B=="object"&&!Array.isArray(B)?j[P]=f(B):j[P]=B,j},Object.create(null))}_.extract=h,_.parse=w,_.stringify=(b,k)=>{if(!b)return"";p((k=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},k)).arrayFormatSeparator);const A=B=>k.skipNull&&b[B]==null||k.skipEmptyString&&b[B]==="",x=function(B){switch(B.arrayFormat){case"index":return $=>(te,J)=>{const oe=te.length;return J===void 0||B.skipNull&&J===null||B.skipEmptyString&&J===""?te:J===null?[...te,[c($,B),"[",oe,"]"].join("")]:[...te,[c($,B),"[",c(oe,B),"]=",c(J,B)].join("")]};case"bracket":return $=>(te,J)=>J===void 0||B.skipNull&&J===null||B.skipEmptyString&&J===""?te:J===null?[...te,[c($,B),"[]"].join("")]:[...te,[c($,B),"[]=",c(J,B)].join("")];case"colon-list-separator":return $=>(te,J)=>J===void 0||B.skipNull&&J===null||B.skipEmptyString&&J===""?te:J===null?[...te,[c($,B),":list="].join("")]:[...te,[c($,B),":list=",c(J,B)].join("")];case"comma":case"separator":case"bracket-separator":{const $=B.arrayFormat==="bracket-separator"?"[]=":"=";return te=>(J,oe)=>oe===void 0||B.skipNull&&oe===null||B.skipEmptyString&&oe===""?J:(oe=oe===null?"":oe,J.length===0?[[c(te,B),$,c(oe,B)].join("")]:[[J,c(oe,B)].join(B.arrayFormatSeparator)])}default:return $=>(te,J)=>J===void 0||B.skipNull&&J===null||B.skipEmptyString&&J===""?te:J===null?[...te,c($,B)]:[...te,[c($,B),"=",c(J,B)].join("")]}}(k),j={};for(const B of Object.keys(b))A(B)||(j[B]=b[B]);const P=Object.keys(j);return k.sort!==!1&&P.sort(k.sort),P.map(B=>{const $=b[B];return $===void 0?"":$===null?c(B,k):Array.isArray($)?$.length===0&&k.arrayFormat==="bracket-separator"?c(B,k)+"[]":$.reduce(x(B),[]).join("&"):c(B,k)+"="+c($,k)}).filter(B=>B.length>0).join("&")},_.parseUrl=(b,k)=>{k=Object.assign({decode:!0},k);const[A,x]=m(b,"#");return Object.assign({url:A.split("?")[0]||"",query:w(h(b),k)},k&&k.parseFragmentIdentifier&&x?{fragmentIdentifier:l(x,k)}:{})},_.stringifyUrl=(b,k)=>{k=Object.assign({encode:!0,strict:!0,[s]:!0},k);const A=g(b.url).split("?")[0]||"",x=_.extract(b.url),j=_.parse(x,{sort:!1}),P=Object.assign(j,b.query);let B=_.stringify(P,k);B&&(B=`?${B}`);let $=function(te){let J="";const oe=te.indexOf("#");return oe!==-1&&(J=te.slice(oe)),J}(b.url);return b.fragmentIdentifier&&($=`#${k[s]?c(b.fragmentIdentifier,k):b.fragmentIdentifier}`),`${A}${B}${$}`},_.pick=(b,k,A)=>{A=Object.assign({parseFragmentIdentifier:!0,[s]:!1},A);const{url:x,query:j,fragmentIdentifier:P}=_.parseUrl(b,A);return _.stringifyUrl({url:x,query:E(j,k),fragmentIdentifier:P},A)},_.exclude=(b,k,A)=>{const x=Array.isArray(k)?j=>!k.includes(j):(j,P)=>!k(j,P);return _.pick(b,x,A)}},2587:H=>{function _(y,M){return Object.prototype.hasOwnProperty.call(y,M)}H.exports=function(y,M,v,m){M=M||"&",v=v||"=";var E={};if(typeof y!="string"||y.length===0)return E;var s=/\+/g;y=y.split(M);var p=1e3;m&&typeof m.maxKeys=="number"&&(p=m.maxKeys);var c=y.length;p>0&&c>p&&(c=p);for(var l=0;l<c;++l){var f,g,h,u,w=y[l].replace(s,"%20"),b=w.indexOf(v);b>=0?(f=w.substr(0,b),g=w.substr(b+1)):(f=w,g=""),h=decodeURIComponent(f),u=decodeURIComponent(g),_(E,h)?Array.isArray(E[h])?E[h].push(u):E[h]=[E[h],u]:E[h]=u}return E}},2182:H=>{var _=function(y){switch(typeof y){case"string":return y;case"boolean":return y?"true":"false";case"number":return isFinite(y)?y:"";default:return""}};H.exports=function(y,M,v,m){return M=M||"&",v=v||"=",y===null&&(y=void 0),typeof y=="object"?Object.keys(y).map(function(E){var s=encodeURIComponent(_(E))+v;return Array.isArray(y[E])?y[E].map(function(p){return s+encodeURIComponent(_(p))}).join(M):s+encodeURIComponent(_(y[E]))}).join(M):m?encodeURIComponent(_(m))+v+encodeURIComponent(_(y)):""}},7673:(H,_,y)=>{_.decode=_.parse=y(2587),_.encode=_.stringify=y(2182)},1798:(H,_,y)=>{var M=y(4155),v=65536,m=y(9509).Buffer,E=y.g.crypto||y.g.msCrypto;E&&E.getRandomValues?H.exports=function(s,p){if(s>4294967295)throw new RangeError("requested too many random bytes");var c=m.allocUnsafe(s);if(s>0)if(s>v)for(var l=0;l<s;l+=v)E.getRandomValues(c.slice(l,l+v));else E.getRandomValues(c);return typeof p=="function"?M.nextTick(function(){p(null,c)}):c}:H.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
105
|
+
Use Chrome, Firefox or Internet Explorer 11`)}},7963:(H,_,y)=>{var M=y(4155);function v(){throw new Error(`secure random number generation not supported by this browser
|
|
106
|
+
use chrome, FireFox or Internet Explorer 11`)}var m=y(9509),E=y(1798),s=m.Buffer,p=m.kMaxLength,c=y.g.crypto||y.g.msCrypto,l=Math.pow(2,32)-1;function f(u,w){if(typeof u!="number"||u!=u)throw new TypeError("offset must be a number");if(u>l||u<0)throw new TypeError("offset must be a uint32");if(u>p||u>w)throw new RangeError("offset out of range")}function g(u,w,b){if(typeof u!="number"||u!=u)throw new TypeError("size must be a number");if(u>l||u<0)throw new TypeError("size must be a uint32");if(u+w>b||u>p)throw new RangeError("buffer too small")}function h(u,w,b,k){if(M.browser){var A=u.buffer,x=new Uint8Array(A,w,b);return c.getRandomValues(x),k?void M.nextTick(function(){k(null,u)}):u}if(!k)return E(b).copy(u,w),u;E(b,function(j,P){if(j)return k(j);P.copy(u,w),k(null,u)})}c&&c.getRandomValues||!M.browser?(_.randomFill=function(u,w,b,k){if(!(s.isBuffer(u)||u instanceof y.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof w=="function")k=w,w=0,b=u.length;else if(typeof b=="function")k=b,b=u.length-w;else if(typeof k!="function")throw new TypeError('"cb" argument must be a function');return f(w,u.length),g(b,w,u.length),h(u,w,b,k)},_.randomFillSync=function(u,w,b){if(w===void 0&&(w=0),!(s.isBuffer(u)||u instanceof y.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return f(w,u.length),b===void 0&&(b=u.length-w),g(b,w,u.length),h(u,w,b)}):(_.randomFill=v,_.randomFillSync=v)},4281:H=>{var _={};function y(v,m,E){E||(E=Error);var s=function(p){var c,l;function f(g,h,u){return p.call(this,function(w,b,k){return typeof m=="string"?m:m(w,b,k)}(g,h,u))||this}return l=p,(c=f).prototype=Object.create(l.prototype),c.prototype.constructor=c,c.__proto__=l,f}(E);s.prototype.name=E.name,s.prototype.code=v,_[v]=s}function M(v,m){if(Array.isArray(v)){var E=v.length;return v=v.map(function(s){return String(s)}),E>2?"one of ".concat(m," ").concat(v.slice(0,E-1).join(", "),", or ")+v[E-1]:E===2?"one of ".concat(m," ").concat(v[0]," or ").concat(v[1]):"of ".concat(m," ").concat(v[0])}return"of ".concat(m," ").concat(String(v))}y("ERR_INVALID_OPT_VALUE",function(v,m){return'The value "'+m+'" is invalid for option "'+v+'"'},TypeError),y("ERR_INVALID_ARG_TYPE",function(v,m,E){var s,p,c,l,f;if(typeof m=="string"&&(p="not ",m.substr(0,p.length)===p)?(s="must not be",m=m.replace(/^not /,"")):s="must be",function(h,u,w){return(w===void 0||w>h.length)&&(w=h.length),h.substring(w-u.length,w)===u}(v," argument"))c="The ".concat(v," ").concat(s," ").concat(M(m,"type"));else{var g=(typeof f!="number"&&(f=0),f+1>(l=v).length||l.indexOf(".",f)===-1?"argument":"property");c='The "'.concat(v,'" ').concat(g," ").concat(s," ").concat(M(m,"type"))}return c+". Received type ".concat(typeof E)},TypeError),y("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),y("ERR_METHOD_NOT_IMPLEMENTED",function(v){return"The "+v+" method is not implemented"}),y("ERR_STREAM_PREMATURE_CLOSE","Premature close"),y("ERR_STREAM_DESTROYED",function(v){return"Cannot call "+v+" after a stream was destroyed"}),y("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),y("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),y("ERR_STREAM_WRITE_AFTER_END","write after end"),y("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),y("ERR_UNKNOWN_ENCODING",function(v){return"Unknown encoding: "+v},TypeError),y("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),H.exports.q=_},6753:(H,_,y)=>{var M=y(4155),v=Object.keys||function(h){var u=[];for(var w in h)u.push(w);return u};H.exports=l;var m=y(9481),E=y(4229);y(5717)(l,m);for(var s=v(E.prototype),p=0;p<s.length;p++){var c=s[p];l.prototype[c]||(l.prototype[c]=E.prototype[c])}function l(h){if(!(this instanceof l))return new l(h);m.call(this,h),E.call(this,h),this.allowHalfOpen=!0,h&&(h.readable===!1&&(this.readable=!1),h.writable===!1&&(this.writable=!1),h.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||M.nextTick(g,this)}function g(h){h.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(h){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=h,this._writableState.destroyed=h)}})},2725:(H,_,y)=>{H.exports=v;var M=y(4605);function v(m){if(!(this instanceof v))return new v(m);M.call(this,m)}y(5717)(v,M),v.prototype._transform=function(m,E,s){s(null,m)}},9481:(H,_,y)=>{var M,v=y(4155);H.exports=J,J.ReadableState=te,y(7187).EventEmitter;var m,E=function(D,Y){return D.listeners(Y).length},s=y(2503),p=y(8764).Buffer,c=y.g.Uint8Array||function(){},l=y(4616);m=l&&l.debuglog?l.debuglog("stream"):function(){};var f,g,h,u=y(7327),w=y(1195),b=y(2457).getHighWaterMark,k=y(4281).q,A=k.ERR_INVALID_ARG_TYPE,x=k.ERR_STREAM_PUSH_AFTER_EOF,j=k.ERR_METHOD_NOT_IMPLEMENTED,P=k.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;y(5717)(J,s);var B=w.errorOrDestroy,$=["error","close","destroy","pause","resume"];function te(D,Y,z){M=M||y(6753),D=D||{},typeof z!="boolean"&&(z=Y instanceof M),this.objectMode=!!D.objectMode,z&&(this.objectMode=this.objectMode||!!D.readableObjectMode),this.highWaterMark=b(this,D,"readableHighWaterMark",z),this.buffer=new u,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=D.emitClose!==!1,this.autoDestroy=!!D.autoDestroy,this.destroyed=!1,this.defaultEncoding=D.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,D.encoding&&(f||(f=y(2553).s),this.decoder=new f(D.encoding),this.encoding=D.encoding)}function J(D){if(M=M||y(6753),!(this instanceof J))return new J(D);var Y=this instanceof M;this._readableState=new te(D,this,Y),this.readable=!0,D&&(typeof D.read=="function"&&(this._read=D.read),typeof D.destroy=="function"&&(this._destroy=D.destroy)),s.call(this)}function oe(D,Y,z,W,ae){m("readableAddChunk",Y);var re,le=D._readableState;if(Y===null)le.reading=!1,function(ke,ge){if(m("onEofChunk"),!ge.ended){if(ge.decoder){var be=ge.decoder.end();be&&be.length&&(ge.buffer.push(be),ge.length+=ge.objectMode?1:be.length)}ge.ended=!0,ge.sync?n(ke):(ge.needReadable=!1,ge.emittedReadable||(ge.emittedReadable=!0,t(ke)))}}(D,le);else if(ae||(re=function(ke,ge){var be,je;return je=ge,p.isBuffer(je)||je instanceof c||typeof ge=="string"||ge===void 0||ke.objectMode||(be=new A("chunk",["string","Buffer","Uint8Array"],ge)),be}(le,Y)),re)B(D,re);else if(le.objectMode||Y&&Y.length>0)if(typeof Y=="string"||le.objectMode||Object.getPrototypeOf(Y)===p.prototype||(Y=function(ke){return p.from(ke)}(Y)),W)le.endEmitted?B(D,new P):e(D,le,Y,!0);else if(le.ended)B(D,new x);else{if(le.destroyed)return!1;le.reading=!1,le.decoder&&!z?(Y=le.decoder.write(Y),le.objectMode||Y.length!==0?e(D,le,Y,!1):o(D,le)):e(D,le,Y,!1)}else W||(le.reading=!1,o(D,le));return!le.ended&&(le.length<le.highWaterMark||le.length===0)}function e(D,Y,z,W){Y.flowing&&Y.length===0&&!Y.sync?(Y.awaitDrain=0,D.emit("data",z)):(Y.length+=Y.objectMode?1:z.length,W?Y.buffer.unshift(z):Y.buffer.push(z),Y.needReadable&&n(D)),o(D,Y)}Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(D){this._readableState&&(this._readableState.destroyed=D)}}),J.prototype.destroy=w.destroy,J.prototype._undestroy=w.undestroy,J.prototype._destroy=function(D,Y){Y(D)},J.prototype.push=function(D,Y){var z,W=this._readableState;return W.objectMode?z=!0:typeof D=="string"&&((Y=Y||W.defaultEncoding)!==W.encoding&&(D=p.from(D,Y),Y=""),z=!0),oe(this,D,Y,!1,z)},J.prototype.unshift=function(D){return oe(this,D,null,!0,!1)},J.prototype.isPaused=function(){return this._readableState.flowing===!1},J.prototype.setEncoding=function(D){f||(f=y(2553).s);var Y=new f(D);this._readableState.decoder=Y,this._readableState.encoding=this._readableState.decoder.encoding;for(var z=this._readableState.buffer.head,W="";z!==null;)W+=Y.write(z.data),z=z.next;return this._readableState.buffer.clear(),W!==""&&this._readableState.buffer.push(W),this._readableState.length=W.length,this};var r=1073741824;function i(D,Y){return D<=0||Y.length===0&&Y.ended?0:Y.objectMode?1:D!=D?Y.flowing&&Y.length?Y.buffer.head.data.length:Y.length:(D>Y.highWaterMark&&(Y.highWaterMark=function(z){return z>=r?z=r:(z--,z|=z>>>1,z|=z>>>2,z|=z>>>4,z|=z>>>8,z|=z>>>16,z++),z}(D)),D<=Y.length?D:Y.ended?Y.length:(Y.needReadable=!0,0))}function n(D){var Y=D._readableState;m("emitReadable",Y.needReadable,Y.emittedReadable),Y.needReadable=!1,Y.emittedReadable||(m("emitReadable",Y.flowing),Y.emittedReadable=!0,v.nextTick(t,D))}function t(D){var Y=D._readableState;m("emitReadable_",Y.destroyed,Y.length,Y.ended),Y.destroyed||!Y.length&&!Y.ended||(D.emit("readable"),Y.emittedReadable=!1),Y.needReadable=!Y.flowing&&!Y.ended&&Y.length<=Y.highWaterMark,O(D)}function o(D,Y){Y.readingMore||(Y.readingMore=!0,v.nextTick(a,D,Y))}function a(D,Y){for(;!Y.reading&&!Y.ended&&(Y.length<Y.highWaterMark||Y.flowing&&Y.length===0);){var z=Y.length;if(m("maybeReadMore read 0"),D.read(0),z===Y.length)break}Y.readingMore=!1}function T(D){var Y=D._readableState;Y.readableListening=D.listenerCount("readable")>0,Y.resumeScheduled&&!Y.paused?Y.flowing=!0:D.listenerCount("data")>0&&D.resume()}function C(D){m("readable nexttick read 0"),D.read(0)}function N(D,Y){m("resume",Y.reading),Y.reading||D.read(0),Y.resumeScheduled=!1,D.emit("resume"),O(D),Y.flowing&&!Y.reading&&D.read(0)}function O(D){var Y=D._readableState;for(m("flow",Y.flowing);Y.flowing&&D.read()!==null;);}function R(D,Y){return Y.length===0?null:(Y.objectMode?z=Y.buffer.shift():!D||D>=Y.length?(z=Y.decoder?Y.buffer.join(""):Y.buffer.length===1?Y.buffer.first():Y.buffer.concat(Y.length),Y.buffer.clear()):z=Y.buffer.consume(D,Y.decoder),z);var z}function F(D){var Y=D._readableState;m("endReadable",Y.endEmitted),Y.endEmitted||(Y.ended=!0,v.nextTick(Z,Y,D))}function Z(D,Y){if(m("endReadableNT",D.endEmitted,D.length),!D.endEmitted&&D.length===0&&(D.endEmitted=!0,Y.readable=!1,Y.emit("end"),D.autoDestroy)){var z=Y._writableState;(!z||z.autoDestroy&&z.finished)&&Y.destroy()}}function ie(D,Y){for(var z=0,W=D.length;z<W;z++)if(D[z]===Y)return z;return-1}J.prototype.read=function(D){m("read",D),D=parseInt(D,10);var Y=this._readableState,z=D;if(D!==0&&(Y.emittedReadable=!1),D===0&&Y.needReadable&&((Y.highWaterMark!==0?Y.length>=Y.highWaterMark:Y.length>0)||Y.ended))return m("read: emitReadable",Y.length,Y.ended),Y.length===0&&Y.ended?F(this):n(this),null;if((D=i(D,Y))===0&&Y.ended)return Y.length===0&&F(this),null;var W,ae=Y.needReadable;return m("need readable",ae),(Y.length===0||Y.length-D<Y.highWaterMark)&&m("length less than watermark",ae=!0),Y.ended||Y.reading?m("reading or ended",ae=!1):ae&&(m("do read"),Y.reading=!0,Y.sync=!0,Y.length===0&&(Y.needReadable=!0),this._read(Y.highWaterMark),Y.sync=!1,Y.reading||(D=i(z,Y))),(W=D>0?R(D,Y):null)===null?(Y.needReadable=Y.length<=Y.highWaterMark,D=0):(Y.length-=D,Y.awaitDrain=0),Y.length===0&&(Y.ended||(Y.needReadable=!0),z!==D&&Y.ended&&F(this)),W!==null&&this.emit("data",W),W},J.prototype._read=function(D){B(this,new j("_read()"))},J.prototype.pipe=function(D,Y){var z=this,W=this._readableState;switch(W.pipesCount){case 0:W.pipes=D;break;case 1:W.pipes=[W.pipes,D];break;default:W.pipes.push(D)}W.pipesCount+=1,m("pipe count=%d opts=%j",W.pipesCount,Y);var ae=Y&&Y.end===!1||D===v.stdout||D===v.stderr?Ae:re;function re(){m("onend"),D.end()}W.endEmitted?v.nextTick(ae):z.once("end",ae),D.on("unpipe",function X(ee,U){m("onunpipe"),ee===z&&U&&U.hasUnpiped===!1&&(U.hasUnpiped=!0,m("cleanup"),D.removeListener("close",je),D.removeListener("finish",xe),D.removeListener("drain",le),D.removeListener("error",be),D.removeListener("unpipe",X),z.removeListener("end",re),z.removeListener("end",Ae),z.removeListener("data",ge),ke=!0,!W.awaitDrain||D._writableState&&!D._writableState.needDrain||le())});var le=function(X){return function(){var ee=X._readableState;m("pipeOnDrain",ee.awaitDrain),ee.awaitDrain&&ee.awaitDrain--,ee.awaitDrain===0&&E(X,"data")&&(ee.flowing=!0,O(X))}}(z);D.on("drain",le);var ke=!1;function ge(X){m("ondata");var ee=D.write(X);m("dest.write",ee),ee===!1&&((W.pipesCount===1&&W.pipes===D||W.pipesCount>1&&ie(W.pipes,D)!==-1)&&!ke&&(m("false write response, pause",W.awaitDrain),W.awaitDrain++),z.pause())}function be(X){m("onerror",X),Ae(),D.removeListener("error",be),E(D,"error")===0&&B(D,X)}function je(){D.removeListener("finish",xe),Ae()}function xe(){m("onfinish"),D.removeListener("close",je),Ae()}function Ae(){m("unpipe"),z.unpipe(D)}return z.on("data",ge),function(X,ee,U){if(typeof X.prependListener=="function")return X.prependListener(ee,U);X._events&&X._events[ee]?Array.isArray(X._events[ee])?X._events[ee].unshift(U):X._events[ee]=[U,X._events[ee]]:X.on(ee,U)}(D,"error",be),D.once("close",je),D.once("finish",xe),D.emit("pipe",z),W.flowing||(m("pipe resume"),z.resume()),D},J.prototype.unpipe=function(D){var Y=this._readableState,z={hasUnpiped:!1};if(Y.pipesCount===0)return this;if(Y.pipesCount===1)return D&&D!==Y.pipes||(D||(D=Y.pipes),Y.pipes=null,Y.pipesCount=0,Y.flowing=!1,D&&D.emit("unpipe",this,z)),this;if(!D){var W=Y.pipes,ae=Y.pipesCount;Y.pipes=null,Y.pipesCount=0,Y.flowing=!1;for(var re=0;re<ae;re++)W[re].emit("unpipe",this,{hasUnpiped:!1});return this}var le=ie(Y.pipes,D);return le===-1||(Y.pipes.splice(le,1),Y.pipesCount-=1,Y.pipesCount===1&&(Y.pipes=Y.pipes[0]),D.emit("unpipe",this,z)),this},J.prototype.on=function(D,Y){var z=s.prototype.on.call(this,D,Y),W=this._readableState;return D==="data"?(W.readableListening=this.listenerCount("readable")>0,W.flowing!==!1&&this.resume()):D==="readable"&&(W.endEmitted||W.readableListening||(W.readableListening=W.needReadable=!0,W.flowing=!1,W.emittedReadable=!1,m("on readable",W.length,W.reading),W.length?n(this):W.reading||v.nextTick(C,this))),z},J.prototype.addListener=J.prototype.on,J.prototype.removeListener=function(D,Y){var z=s.prototype.removeListener.call(this,D,Y);return D==="readable"&&v.nextTick(T,this),z},J.prototype.removeAllListeners=function(D){var Y=s.prototype.removeAllListeners.apply(this,arguments);return D!=="readable"&&D!==void 0||v.nextTick(T,this),Y},J.prototype.resume=function(){var D=this._readableState;return D.flowing||(m("resume"),D.flowing=!D.readableListening,function(Y,z){z.resumeScheduled||(z.resumeScheduled=!0,v.nextTick(N,Y,z))}(this,D)),D.paused=!1,this},J.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},J.prototype.wrap=function(D){var Y=this,z=this._readableState,W=!1;for(var ae in D.on("end",function(){if(m("wrapped end"),z.decoder&&!z.ended){var le=z.decoder.end();le&&le.length&&Y.push(le)}Y.push(null)}),D.on("data",function(le){m("wrapped data"),z.decoder&&(le=z.decoder.write(le)),z.objectMode&&le==null||(z.objectMode||le&&le.length)&&(Y.push(le)||(W=!0,D.pause()))}),D)this[ae]===void 0&&typeof D[ae]=="function"&&(this[ae]=function(le){return function(){return D[le].apply(D,arguments)}}(ae));for(var re=0;re<$.length;re++)D.on($[re],this.emit.bind(this,$[re]));return this._read=function(le){m("wrapped _read",le),W&&(W=!1,D.resume())},this},typeof Symbol=="function"&&(J.prototype[Symbol.asyncIterator]=function(){return g===void 0&&(g=y(5850)),g(this)}),Object.defineProperty(J.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(J.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(J.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(D){this._readableState&&(this._readableState.flowing=D)}}),J._fromList=R,Object.defineProperty(J.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(J.from=function(D,Y){return h===void 0&&(h=y(5167)),h(J,D,Y)})},4605:(H,_,y)=>{H.exports=l;var M=y(4281).q,v=M.ERR_METHOD_NOT_IMPLEMENTED,m=M.ERR_MULTIPLE_CALLBACK,E=M.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=M.ERR_TRANSFORM_WITH_LENGTH_0,p=y(6753);function c(h,u){var w=this._transformState;w.transforming=!1;var b=w.writecb;if(b===null)return this.emit("error",new m);w.writechunk=null,w.writecb=null,u!=null&&this.push(u),b(h);var k=this._readableState;k.reading=!1,(k.needReadable||k.length<k.highWaterMark)&&this._read(k.highWaterMark)}function l(h){if(!(this instanceof l))return new l(h);p.call(this,h),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,h&&(typeof h.transform=="function"&&(this._transform=h.transform),typeof h.flush=="function"&&(this._flush=h.flush)),this.on("prefinish",f)}function f(){var h=this;typeof this._flush!="function"||this._readableState.destroyed?g(this,null,null):this._flush(function(u,w){g(h,u,w)})}function g(h,u,w){if(u)return h.emit("error",u);if(w!=null&&h.push(w),h._writableState.length)throw new s;if(h._transformState.transforming)throw new E;return h.push(null)}y(5717)(l,p),l.prototype.push=function(h,u){return this._transformState.needTransform=!1,p.prototype.push.call(this,h,u)},l.prototype._transform=function(h,u,w){w(new v("_transform()"))},l.prototype._write=function(h,u,w){var b=this._transformState;if(b.writecb=w,b.writechunk=h,b.writeencoding=u,!b.transforming){var k=this._readableState;(b.needTransform||k.needReadable||k.length<k.highWaterMark)&&this._read(k.highWaterMark)}},l.prototype._read=function(h){var u=this._transformState;u.writechunk===null||u.transforming?u.needTransform=!0:(u.transforming=!0,this._transform(u.writechunk,u.writeencoding,u.afterTransform))},l.prototype._destroy=function(h,u){p.prototype._destroy.call(this,h,function(w){u(w)})}},4229:(H,_,y)=>{var M,v=y(4155);function m(o){var a=this;this.next=null,this.entry=null,this.finish=function(){(function(T,C,N){var O=T.entry;for(T.entry=null;O;){var R=O.callback;C.pendingcb--,R(void 0),O=O.next}C.corkedRequestsFree.next=T})(a,o)}}H.exports=J,J.WritableState=te;var E,s={deprecate:y(4927)},p=y(2503),c=y(8764).Buffer,l=y.g.Uint8Array||function(){},f=y(1195),g=y(2457).getHighWaterMark,h=y(4281).q,u=h.ERR_INVALID_ARG_TYPE,w=h.ERR_METHOD_NOT_IMPLEMENTED,b=h.ERR_MULTIPLE_CALLBACK,k=h.ERR_STREAM_CANNOT_PIPE,A=h.ERR_STREAM_DESTROYED,x=h.ERR_STREAM_NULL_VALUES,j=h.ERR_STREAM_WRITE_AFTER_END,P=h.ERR_UNKNOWN_ENCODING,B=f.errorOrDestroy;function $(){}function te(o,a,T){M=M||y(6753),o=o||{},typeof T!="boolean"&&(T=a instanceof M),this.objectMode=!!o.objectMode,T&&(this.objectMode=this.objectMode||!!o.writableObjectMode),this.highWaterMark=g(this,o,"writableHighWaterMark",T),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var C=o.decodeStrings===!1;this.decodeStrings=!C,this.defaultEncoding=o.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(N){(function(O,R){var F=O._writableState,Z=F.sync,ie=F.writecb;if(typeof ie!="function")throw new b;if(function(Y){Y.writing=!1,Y.writecb=null,Y.length-=Y.writelen,Y.writelen=0}(F),R)(function(Y,z,W,ae,re){--z.pendingcb,W?(v.nextTick(re,ae),v.nextTick(t,Y,z),Y._writableState.errorEmitted=!0,B(Y,ae)):(re(ae),Y._writableState.errorEmitted=!0,B(Y,ae),t(Y,z))})(O,F,Z,R,ie);else{var D=i(F)||O.destroyed;D||F.corked||F.bufferProcessing||!F.bufferedRequest||r(O,F),Z?v.nextTick(e,O,F,D,ie):e(O,F,D,ie)}})(a,N)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=o.emitClose!==!1,this.autoDestroy=!!o.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new m(this)}function J(o){var a=this instanceof(M=M||y(6753));if(!a&&!E.call(J,this))return new J(o);this._writableState=new te(o,this,a),this.writable=!0,o&&(typeof o.write=="function"&&(this._write=o.write),typeof o.writev=="function"&&(this._writev=o.writev),typeof o.destroy=="function"&&(this._destroy=o.destroy),typeof o.final=="function"&&(this._final=o.final)),p.call(this)}function oe(o,a,T,C,N,O,R){a.writelen=C,a.writecb=R,a.writing=!0,a.sync=!0,a.destroyed?a.onwrite(new A("write")):T?o._writev(N,a.onwrite):o._write(N,O,a.onwrite),a.sync=!1}function e(o,a,T,C){T||function(N,O){O.length===0&&O.needDrain&&(O.needDrain=!1,N.emit("drain"))}(o,a),a.pendingcb--,C(),t(o,a)}function r(o,a){a.bufferProcessing=!0;var T=a.bufferedRequest;if(o._writev&&T&&T.next){var C=a.bufferedRequestCount,N=new Array(C),O=a.corkedRequestsFree;O.entry=T;for(var R=0,F=!0;T;)N[R]=T,T.isBuf||(F=!1),T=T.next,R+=1;N.allBuffers=F,oe(o,a,!0,a.length,N,"",O.finish),a.pendingcb++,a.lastBufferedRequest=null,O.next?(a.corkedRequestsFree=O.next,O.next=null):a.corkedRequestsFree=new m(a),a.bufferedRequestCount=0}else{for(;T;){var Z=T.chunk,ie=T.encoding,D=T.callback;if(oe(o,a,!1,a.objectMode?1:Z.length,Z,ie,D),T=T.next,a.bufferedRequestCount--,a.writing)break}T===null&&(a.lastBufferedRequest=null)}a.bufferedRequest=T,a.bufferProcessing=!1}function i(o){return o.ending&&o.length===0&&o.bufferedRequest===null&&!o.finished&&!o.writing}function n(o,a){o._final(function(T){a.pendingcb--,T&&B(o,T),a.prefinished=!0,o.emit("prefinish"),t(o,a)})}function t(o,a){var T=i(a);if(T&&(function(N,O){O.prefinished||O.finalCalled||(typeof N._final!="function"||O.destroyed?(O.prefinished=!0,N.emit("prefinish")):(O.pendingcb++,O.finalCalled=!0,v.nextTick(n,N,O)))}(o,a),a.pendingcb===0&&(a.finished=!0,o.emit("finish"),a.autoDestroy))){var C=o._readableState;(!C||C.autoDestroy&&C.endEmitted)&&o.destroy()}return T}y(5717)(J,p),te.prototype.getBuffer=function(){for(var o=this.bufferedRequest,a=[];o;)a.push(o),o=o.next;return a},function(){try{Object.defineProperty(te.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(E=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(o){return!!E.call(this,o)||this===J&&o&&o._writableState instanceof te}})):E=function(o){return o instanceof this},J.prototype.pipe=function(){B(this,new k)},J.prototype.write=function(o,a,T){var C,N=this._writableState,O=!1,R=!N.objectMode&&(C=o,c.isBuffer(C)||C instanceof l);return R&&!c.isBuffer(o)&&(o=function(F){return c.from(F)}(o)),typeof a=="function"&&(T=a,a=null),R?a="buffer":a||(a=N.defaultEncoding),typeof T!="function"&&(T=$),N.ending?function(F,Z){var ie=new j;B(F,ie),v.nextTick(Z,ie)}(this,T):(R||function(F,Z,ie,D){var Y;return ie===null?Y=new x:typeof ie=="string"||Z.objectMode||(Y=new u("chunk",["string","Buffer"],ie)),!Y||(B(F,Y),v.nextTick(D,Y),!1)}(this,N,o,T))&&(N.pendingcb++,O=function(F,Z,ie,D,Y,z){if(!ie){var W=function(ke,ge,be){return ke.objectMode||ke.decodeStrings===!1||typeof ge!="string"||(ge=c.from(ge,be)),ge}(Z,D,Y);D!==W&&(ie=!0,Y="buffer",D=W)}var ae=Z.objectMode?1:D.length;Z.length+=ae;var re=Z.length<Z.highWaterMark;if(re||(Z.needDrain=!0),Z.writing||Z.corked){var le=Z.lastBufferedRequest;Z.lastBufferedRequest={chunk:D,encoding:Y,isBuf:ie,callback:z,next:null},le?le.next=Z.lastBufferedRequest:Z.bufferedRequest=Z.lastBufferedRequest,Z.bufferedRequestCount+=1}else oe(F,Z,!1,ae,D,Y,z);return re}(this,N,R,o,a,T)),O},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var o=this._writableState;o.corked&&(o.corked--,o.writing||o.corked||o.bufferProcessing||!o.bufferedRequest||r(this,o))},J.prototype.setDefaultEncoding=function(o){if(typeof o=="string"&&(o=o.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((o+"").toLowerCase())>-1))throw new P(o);return this._writableState.defaultEncoding=o,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),J.prototype._write=function(o,a,T){T(new w("_write()"))},J.prototype._writev=null,J.prototype.end=function(o,a,T){var C=this._writableState;return typeof o=="function"?(T=o,o=null,a=null):typeof a=="function"&&(T=a,a=null),o!=null&&this.write(o,a),C.corked&&(C.corked=1,this.uncork()),C.ending||function(N,O,R){O.ending=!0,t(N,O),R&&(O.finished?v.nextTick(R):N.once("finish",R)),O.ended=!0,N.writable=!1}(this,C,T),this},Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(o){this._writableState&&(this._writableState.destroyed=o)}}),J.prototype.destroy=f.destroy,J.prototype._undestroy=f.undestroy,J.prototype._destroy=function(o,a){a(o)}},5850:(H,_,y)=>{var M,v=y(4155);function m(x,j,P){return j in x?Object.defineProperty(x,j,{value:P,enumerable:!0,configurable:!0,writable:!0}):x[j]=P,x}var E=y(8610),s=Symbol("lastResolve"),p=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),g=Symbol("handlePromise"),h=Symbol("stream");function u(x,j){return{value:x,done:j}}function w(x){var j=x[s];if(j!==null){var P=x[h].read();P!==null&&(x[f]=null,x[s]=null,x[p]=null,j(u(P,!1)))}}function b(x){v.nextTick(w,x)}var k=Object.getPrototypeOf(function(){}),A=Object.setPrototypeOf((m(M={get stream(){return this[h]},next:function(){var x=this,j=this[c];if(j!==null)return Promise.reject(j);if(this[l])return Promise.resolve(u(void 0,!0));if(this[h].destroyed)return new Promise(function(te,J){v.nextTick(function(){x[c]?J(x[c]):te(u(void 0,!0))})});var P,B=this[f];if(B)P=new Promise(function(te,J){return function(oe,e){te.then(function(){J[l]?oe(u(void 0,!0)):J[g](oe,e)},e)}}(B,this));else{var $=this[h].read();if($!==null)return Promise.resolve(u($,!1));P=new Promise(this[g])}return this[f]=P,P}},Symbol.asyncIterator,function(){return this}),m(M,"return",function(){var x=this;return new Promise(function(j,P){x[h].destroy(null,function(B){B?P(B):j(u(void 0,!0))})})}),M),k);H.exports=function(x){var j,P=Object.create(A,(m(j={},h,{value:x,writable:!0}),m(j,s,{value:null,writable:!0}),m(j,p,{value:null,writable:!0}),m(j,c,{value:null,writable:!0}),m(j,l,{value:x._readableState.endEmitted,writable:!0}),m(j,g,{value:function(B,$){var te=P[h].read();te?(P[f]=null,P[s]=null,P[p]=null,B(u(te,!1))):(P[s]=B,P[p]=$)},writable:!0}),j));return P[f]=null,E(x,function(B){if(B&&B.code!=="ERR_STREAM_PREMATURE_CLOSE"){var $=P[p];return $!==null&&(P[f]=null,P[s]=null,P[p]=null,$(B)),void(P[c]=B)}var te=P[s];te!==null&&(P[f]=null,P[s]=null,P[p]=null,te(u(void 0,!0))),P[l]=!0}),x.on("readable",b.bind(null,P)),P}},7327:(H,_,y)=>{function M(c,l){var f=Object.keys(c);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(c);l&&(g=g.filter(function(h){return Object.getOwnPropertyDescriptor(c,h).enumerable})),f.push.apply(f,g)}return f}function v(c,l,f){return l in c?Object.defineProperty(c,l,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[l]=f,c}function m(c,l){for(var f=0;f<l.length;f++){var g=l[f];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(c,g.key,g)}}var E=y(8764).Buffer,s=y(2361).inspect,p=s&&s.custom||"inspect";H.exports=function(){function c(){(function(g,h){if(!(g instanceof h))throw new TypeError("Cannot call a class as a function")})(this,c),this.head=null,this.tail=null,this.length=0}var l,f;return l=c,f=[{key:"push",value:function(g){var h={data:g,next:null};this.length>0?this.tail.next=h:this.head=h,this.tail=h,++this.length}},{key:"unshift",value:function(g){var h={data:g,next:this.head};this.length===0&&(this.tail=h),this.head=h,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var h=this.head,u=""+h.data;h=h.next;)u+=g+h.data;return u}},{key:"concat",value:function(g){if(this.length===0)return E.alloc(0);for(var h,u,w,b=E.allocUnsafe(g>>>0),k=this.head,A=0;k;)h=k.data,u=b,w=A,E.prototype.copy.call(h,u,w),A+=k.data.length,k=k.next;return b}},{key:"consume",value:function(g,h){var u;return g<this.head.data.length?(u=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):u=g===this.head.data.length?this.shift():h?this._getString(g):this._getBuffer(g),u}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(g){var h=this.head,u=1,w=h.data;for(g-=w.length;h=h.next;){var b=h.data,k=g>b.length?b.length:g;if(k===b.length?w+=b:w+=b.slice(0,g),(g-=k)==0){k===b.length?(++u,h.next?this.head=h.next:this.head=this.tail=null):(this.head=h,h.data=b.slice(k));break}++u}return this.length-=u,w}},{key:"_getBuffer",value:function(g){var h=E.allocUnsafe(g),u=this.head,w=1;for(u.data.copy(h),g-=u.data.length;u=u.next;){var b=u.data,k=g>b.length?b.length:g;if(b.copy(h,h.length-g,0,k),(g-=k)==0){k===b.length?(++w,u.next?this.head=u.next:this.head=this.tail=null):(this.head=u,u.data=b.slice(k));break}++w}return this.length-=w,h}},{key:p,value:function(g,h){return s(this,function(u){for(var w=1;w<arguments.length;w++){var b=arguments[w]!=null?arguments[w]:{};w%2?M(Object(b),!0).forEach(function(k){v(u,k,b[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(b)):M(Object(b)).forEach(function(k){Object.defineProperty(u,k,Object.getOwnPropertyDescriptor(b,k))})}return u}({},h,{depth:0,customInspect:!1}))}}],f&&m(l.prototype,f),c}()},1195:(H,_,y)=>{var M=y(4155);function v(s,p){E(s,p),m(s)}function m(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function E(s,p){s.emit("error",p)}H.exports={destroy:function(s,p){var c=this,l=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return l||f?(p?p(s):s&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,M.nextTick(E,this,s)):M.nextTick(E,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(g){!p&&g?c._writableState?c._writableState.errorEmitted?M.nextTick(m,c):(c._writableState.errorEmitted=!0,M.nextTick(v,c,g)):M.nextTick(v,c,g):p?(M.nextTick(m,c),p(g)):M.nextTick(m,c)}),this)},undestroy:function(){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)},errorOrDestroy:function(s,p){var c=s._readableState,l=s._writableState;c&&c.autoDestroy||l&&l.autoDestroy?s.destroy(p):s.emit("error",p)}}},8610:(H,_,y)=>{var M=y(4281).q.ERR_STREAM_PREMATURE_CLOSE;function v(){}H.exports=function m(E,s,p){if(typeof s=="function")return m(E,null,s);s||(s={}),p=function(x){var j=!1;return function(){if(!j){j=!0;for(var P=arguments.length,B=new Array(P),$=0;$<P;$++)B[$]=arguments[$];x.apply(this,B)}}}(p||v);var c=s.readable||s.readable!==!1&&E.readable,l=s.writable||s.writable!==!1&&E.writable,f=function(){E.writable||h()},g=E._writableState&&E._writableState.finished,h=function(){l=!1,g=!0,c||p.call(E)},u=E._readableState&&E._readableState.endEmitted,w=function(){c=!1,u=!0,l||p.call(E)},b=function(x){p.call(E,x)},k=function(){var x;return c&&!u?(E._readableState&&E._readableState.ended||(x=new M),p.call(E,x)):l&&!g?(E._writableState&&E._writableState.ended||(x=new M),p.call(E,x)):void 0},A=function(){E.req.on("finish",h)};return function(x){return x.setHeader&&typeof x.abort=="function"}(E)?(E.on("complete",h),E.on("abort",k),E.req?A():E.on("request",A)):l&&!E._writableState&&(E.on("end",f),E.on("close",f)),E.on("end",w),E.on("finish",h),s.error!==!1&&E.on("error",b),E.on("close",k),function(){E.removeListener("complete",h),E.removeListener("abort",k),E.removeListener("request",A),E.req&&E.req.removeListener("finish",h),E.removeListener("end",f),E.removeListener("close",f),E.removeListener("finish",h),E.removeListener("end",w),E.removeListener("error",b),E.removeListener("close",k)}}},5167:H=>{H.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(H,_,y)=>{var M,v=y(4281).q,m=v.ERR_MISSING_ARGS,E=v.ERR_STREAM_DESTROYED;function s(l){if(l)throw l}function p(l){l()}function c(l,f){return l.pipe(f)}H.exports=function(){for(var l=arguments.length,f=new Array(l),g=0;g<l;g++)f[g]=arguments[g];var h,u=function(b){return b.length?typeof b[b.length-1]!="function"?s:b.pop():s}(f);if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new m("streams");var w=f.map(function(b,k){var A=k<f.length-1;return function(x,j,P,B){B=function(J){var oe=!1;return function(){oe||(oe=!0,J.apply(void 0,arguments))}}(B);var $=!1;x.on("close",function(){$=!0}),M===void 0&&(M=y(8610)),M(x,{readable:j,writable:P},function(J){if(J)return B(J);$=!0,B()});var te=!1;return function(J){if(!$&&!te)return te=!0,function(oe){return oe.setHeader&&typeof oe.abort=="function"}(x)?x.abort():typeof x.destroy=="function"?x.destroy():void B(J||new E("pipe"))}}(b,A,k>0,function(x){h||(h=x),x&&w.forEach(p),A||(w.forEach(p),u(h))})});return f.reduce(c)}},2457:(H,_,y)=>{var M=y(4281).q.ERR_INVALID_OPT_VALUE;H.exports={getHighWaterMark:function(v,m,E,s){var p=function(c,l,f){return c.highWaterMark!=null?c.highWaterMark:l?c[f]:null}(m,s,E);if(p!=null){if(!isFinite(p)||Math.floor(p)!==p||p<0)throw new M(s?E:"highWaterMark",p);return Math.floor(p)}return v.objectMode?16:16384}}},2503:(H,_,y)=>{H.exports=y(7187).EventEmitter},8473:(H,_,y)=>{(_=H.exports=y(9481)).Stream=_,_.Readable=_,_.Writable=y(4229),_.Duplex=y(6753),_.Transform=y(4605),_.PassThrough=y(2725),_.finished=y(8610),_.pipeline=y(9946)},9785:(H,_,y)=>{var M=y(8764).Buffer,v=y(5717),m=y(3349),E=new Array(16),s=[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],p=[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],c=[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],l=[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],g=[1352829926,1548603684,1836072691,2053994217,0];function h(){m.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function u(j,P){return j<<P|j>>>32-P}function w(j,P,B,$,te,J,oe,e){return u(j+(P^B^$)+J+oe|0,e)+te|0}function b(j,P,B,$,te,J,oe,e){return u(j+(P&B|~P&$)+J+oe|0,e)+te|0}function k(j,P,B,$,te,J,oe,e){return u(j+((P|~B)^$)+J+oe|0,e)+te|0}function A(j,P,B,$,te,J,oe,e){return u(j+(P&$|B&~$)+J+oe|0,e)+te|0}function x(j,P,B,$,te,J,oe,e){return u(j+(P^(B|~$))+J+oe|0,e)+te|0}v(h,m),h.prototype._update=function(){for(var j=E,P=0;P<16;++P)j[P]=this._block.readInt32LE(4*P);for(var B=0|this._a,$=0|this._b,te=0|this._c,J=0|this._d,oe=0|this._e,e=0|this._a,r=0|this._b,i=0|this._c,n=0|this._d,t=0|this._e,o=0;o<80;o+=1){var a,T;o<16?(a=w(B,$,te,J,oe,j[s[o]],f[0],c[o]),T=x(e,r,i,n,t,j[p[o]],g[0],l[o])):o<32?(a=b(B,$,te,J,oe,j[s[o]],f[1],c[o]),T=A(e,r,i,n,t,j[p[o]],g[1],l[o])):o<48?(a=k(B,$,te,J,oe,j[s[o]],f[2],c[o]),T=k(e,r,i,n,t,j[p[o]],g[2],l[o])):o<64?(a=A(B,$,te,J,oe,j[s[o]],f[3],c[o]),T=b(e,r,i,n,t,j[p[o]],g[3],l[o])):(a=x(B,$,te,J,oe,j[s[o]],f[4],c[o]),T=w(e,r,i,n,t,j[p[o]],g[4],l[o])),B=oe,oe=J,J=u(te,10),te=$,$=a,e=t,t=n,n=u(i,10),i=r,r=T}var C=this._b+te+n|0;this._b=this._c+J+t|0,this._c=this._d+oe+e|0,this._d=this._e+B+r|0,this._e=this._a+$+i|0,this._a=C},h.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 j=M.alloc?M.alloc(20):new M(20);return j.writeInt32LE(this._a,0),j.writeInt32LE(this._b,4),j.writeInt32LE(this._c,8),j.writeInt32LE(this._d,12),j.writeInt32LE(this._e,16),j},H.exports=h},9509:(H,_,y)=>{var M=y(8764),v=M.Buffer;function m(s,p){for(var c in s)p[c]=s[c]}function E(s,p,c){return v(s,p,c)}v.from&&v.alloc&&v.allocUnsafe&&v.allocUnsafeSlow?H.exports=M:(m(M,_),_.Buffer=E),E.prototype=Object.create(v.prototype),m(v,E),E.from=function(s,p,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return v(s,p,c)},E.alloc=function(s,p,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var l=v(s);return p!==void 0?typeof c=="string"?l.fill(p,c):l.fill(p):l.fill(0),l},E.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return v(s)},E.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return M.SlowBuffer(s)}},2399:(H,_,y)=>{var M,v=y(4155),m=y(8764),E=m.Buffer,s={};for(M in m)m.hasOwnProperty(M)&&M!=="SlowBuffer"&&M!=="Buffer"&&(s[M]=m[M]);var p=s.Buffer={};for(M in E)E.hasOwnProperty(M)&&M!=="allocUnsafe"&&M!=="allocUnsafeSlow"&&(p[M]=E[M]);if(s.Buffer.prototype=E.prototype,p.from&&p.from!==Uint8Array.from||(p.from=function(c,l,f){if(typeof c=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof c);if(c&&c.length===void 0)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof c);return E(c,l,f)}),p.alloc||(p.alloc=function(c,l,f){if(typeof c!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof c);if(c<0||c>=2147483648)throw new RangeError('The value "'+c+'" is invalid for option "size"');var g=E(c);return l&&l.length!==0?typeof f=="string"?g.fill(l,f):g.fill(l):g.fill(0),g}),!s.kStringMaxLength)try{s.kStringMaxLength=v.binding("buffer").kStringMaxLength}catch{}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),H.exports=s},6099:(H,_,y)=>{var M=y(8764).Buffer;(function(v){v.parser=function(z,W){return new s(z,W)},v.SAXParser=s,v.SAXStream=c,v.createStream=function(z,W){return new c(z,W)},v.MAX_BUFFER_LENGTH=65536;var m,E=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function s(z,W){if(!(this instanceof s))return new s(z,W);var ae=this;(function(re){for(var le=0,ke=E.length;le<ke;le++)re[E[le]]=""})(ae),ae.q=ae.c="",ae.bufferCheckPosition=v.MAX_BUFFER_LENGTH,ae.opt=W||{},ae.opt.lowercase=ae.opt.lowercase||ae.opt.lowercasetags,ae.looseCase=ae.opt.lowercase?"toLowerCase":"toUpperCase",ae.tags=[],ae.closed=ae.closedRoot=ae.sawRoot=!1,ae.tag=ae.error=null,ae.strict=!!z,ae.noscript=!(!z&&!ae.opt.noscript),ae.state=e.BEGIN,ae.strictEntities=ae.opt.strictEntities,ae.ENTITIES=ae.strictEntities?Object.create(v.XML_ENTITIES):Object.create(v.ENTITIES),ae.attribList=[],ae.opt.xmlns&&(ae.ns=Object.create(u)),ae.trackPosition=ae.opt.position!==!1,ae.trackPosition&&(ae.position=ae.line=ae.column=0),i(ae,"onready")}v.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(z){function W(){}return W.prototype=z,new W}),Object.keys||(Object.keys=function(z){var W=[];for(var ae in z)z.hasOwnProperty(ae)&&W.push(ae);return W}),s.prototype={end:function(){T(this)},write:function(z){var W=this;if(this.error)throw this.error;if(W.closed)return a(W,"Cannot write after close. Assign an onready handler.");if(z===null)return T(W);typeof z=="object"&&(z=z.toString());for(var ae=0,re="";re=Y(z,ae++),W.c=re,re;)switch(W.trackPosition&&(W.position++,re===`
|
|
107
|
+
`?(W.line++,W.column=0):W.column++),W.state){case e.BEGIN:if(W.state=e.BEGIN_WHITESPACE,re==="\uFEFF")continue;D(W,re);continue;case e.BEGIN_WHITESPACE:D(W,re);continue;case e.TEXT:if(W.sawRoot&&!W.closedRoot){for(var le=ae-1;re&&re!=="<"&&re!=="&";)(re=Y(z,ae++))&&W.trackPosition&&(W.position++,re===`
|
|
108
|
+
`?(W.line++,W.column=0):W.column++);W.textNode+=z.substring(le,ae-1)}re!=="<"||W.sawRoot&&W.closedRoot&&!W.strict?(x(re)||W.sawRoot&&!W.closedRoot||C(W,"Text data outside of root node."),re==="&"?W.state=e.TEXT_ENTITY:W.textNode+=re):(W.state=e.OPEN_WAKA,W.startTagPosition=W.position);continue;case e.SCRIPT:re==="<"?W.state=e.SCRIPT_ENDING:W.script+=re;continue;case e.SCRIPT_ENDING:re==="/"?W.state=e.CLOSE_TAG:(W.script+="<"+re,W.state=e.SCRIPT);continue;case e.OPEN_WAKA:if(re==="!")W.state=e.SGML_DECL,W.sgmlDecl="";else if(!x(re))if(B(w,re))W.state=e.OPEN_TAG,W.tagName=re;else if(re==="/")W.state=e.CLOSE_TAG,W.tagName="";else if(re==="?")W.state=e.PROC_INST,W.procInstName=W.procInstBody="";else{if(C(W,"Unencoded <"),W.startTagPosition+1<W.position){var ke=W.position-W.startTagPosition;re=new Array(ke).join(" ")+re}W.textNode+="<"+re,W.state=e.TEXT}continue;case e.SGML_DECL:(W.sgmlDecl+re).toUpperCase()===l?(n(W,"onopencdata"),W.state=e.CDATA,W.sgmlDecl="",W.cdata=""):W.sgmlDecl+re==="--"?(W.state=e.COMMENT,W.comment="",W.sgmlDecl=""):(W.sgmlDecl+re).toUpperCase()===f?(W.state=e.DOCTYPE,(W.doctype||W.sawRoot)&&C(W,"Inappropriately located doctype declaration"),W.doctype="",W.sgmlDecl=""):re===">"?(n(W,"onsgmldeclaration",W.sgmlDecl),W.sgmlDecl="",W.state=e.TEXT):(j(re)&&(W.state=e.SGML_DECL_QUOTED),W.sgmlDecl+=re);continue;case e.SGML_DECL_QUOTED:re===W.q&&(W.state=e.SGML_DECL,W.q=""),W.sgmlDecl+=re;continue;case e.DOCTYPE:re===">"?(W.state=e.TEXT,n(W,"ondoctype",W.doctype),W.doctype=!0):(W.doctype+=re,re==="["?W.state=e.DOCTYPE_DTD:j(re)&&(W.state=e.DOCTYPE_QUOTED,W.q=re));continue;case e.DOCTYPE_QUOTED:W.doctype+=re,re===W.q&&(W.q="",W.state=e.DOCTYPE);continue;case e.DOCTYPE_DTD:W.doctype+=re,re==="]"?W.state=e.DOCTYPE:j(re)&&(W.state=e.DOCTYPE_DTD_QUOTED,W.q=re);continue;case e.DOCTYPE_DTD_QUOTED:W.doctype+=re,re===W.q&&(W.state=e.DOCTYPE_DTD,W.q="");continue;case e.COMMENT:re==="-"?W.state=e.COMMENT_ENDING:W.comment+=re;continue;case e.COMMENT_ENDING:re==="-"?(W.state=e.COMMENT_ENDED,W.comment=o(W.opt,W.comment),W.comment&&n(W,"oncomment",W.comment),W.comment=""):(W.comment+="-"+re,W.state=e.COMMENT);continue;case e.COMMENT_ENDED:re!==">"?(C(W,"Malformed comment"),W.comment+="--"+re,W.state=e.COMMENT):W.state=e.TEXT;continue;case e.CDATA:re==="]"?W.state=e.CDATA_ENDING:W.cdata+=re;continue;case e.CDATA_ENDING:re==="]"?W.state=e.CDATA_ENDING_2:(W.cdata+="]"+re,W.state=e.CDATA);continue;case e.CDATA_ENDING_2:re===">"?(W.cdata&&n(W,"oncdata",W.cdata),n(W,"onclosecdata"),W.cdata="",W.state=e.TEXT):re==="]"?W.cdata+="]":(W.cdata+="]]"+re,W.state=e.CDATA);continue;case e.PROC_INST:re==="?"?W.state=e.PROC_INST_ENDING:x(re)?W.state=e.PROC_INST_BODY:W.procInstName+=re;continue;case e.PROC_INST_BODY:if(!W.procInstBody&&x(re))continue;re==="?"?W.state=e.PROC_INST_ENDING:W.procInstBody+=re;continue;case e.PROC_INST_ENDING:re===">"?(n(W,"onprocessinginstruction",{name:W.procInstName,body:W.procInstBody}),W.procInstName=W.procInstBody="",W.state=e.TEXT):(W.procInstBody+="?"+re,W.state=e.PROC_INST_BODY);continue;case e.OPEN_TAG:B(b,re)?W.tagName+=re:(N(W),re===">"?F(W):re==="/"?W.state=e.OPEN_TAG_SLASH:(x(re)||C(W,"Invalid character in tag name"),W.state=e.ATTRIB));continue;case e.OPEN_TAG_SLASH:re===">"?(F(W,!0),Z(W)):(C(W,"Forward-slash in opening tag not followed by >"),W.state=e.ATTRIB);continue;case e.ATTRIB:if(x(re))continue;re===">"?F(W):re==="/"?W.state=e.OPEN_TAG_SLASH:B(w,re)?(W.attribName=re,W.attribValue="",W.state=e.ATTRIB_NAME):C(W,"Invalid attribute name");continue;case e.ATTRIB_NAME:re==="="?W.state=e.ATTRIB_VALUE:re===">"?(C(W,"Attribute without value"),W.attribValue=W.attribName,R(W),F(W)):x(re)?W.state=e.ATTRIB_NAME_SAW_WHITE:B(b,re)?W.attribName+=re:C(W,"Invalid attribute name");continue;case e.ATTRIB_NAME_SAW_WHITE:if(re==="=")W.state=e.ATTRIB_VALUE;else{if(x(re))continue;C(W,"Attribute without value"),W.tag.attributes[W.attribName]="",W.attribValue="",n(W,"onattribute",{name:W.attribName,value:""}),W.attribName="",re===">"?F(W):B(w,re)?(W.attribName=re,W.state=e.ATTRIB_NAME):(C(W,"Invalid attribute name"),W.state=e.ATTRIB)}continue;case e.ATTRIB_VALUE:if(x(re))continue;j(re)?(W.q=re,W.state=e.ATTRIB_VALUE_QUOTED):(C(W,"Unquoted attribute value"),W.state=e.ATTRIB_VALUE_UNQUOTED,W.attribValue=re);continue;case e.ATTRIB_VALUE_QUOTED:if(re!==W.q){re==="&"?W.state=e.ATTRIB_VALUE_ENTITY_Q:W.attribValue+=re;continue}R(W),W.q="",W.state=e.ATTRIB_VALUE_CLOSED;continue;case e.ATTRIB_VALUE_CLOSED:x(re)?W.state=e.ATTRIB:re===">"?F(W):re==="/"?W.state=e.OPEN_TAG_SLASH:B(w,re)?(C(W,"No whitespace between attributes"),W.attribName=re,W.attribValue="",W.state=e.ATTRIB_NAME):C(W,"Invalid attribute name");continue;case e.ATTRIB_VALUE_UNQUOTED:if(!P(re)){re==="&"?W.state=e.ATTRIB_VALUE_ENTITY_U:W.attribValue+=re;continue}R(W),re===">"?F(W):W.state=e.ATTRIB;continue;case e.CLOSE_TAG:if(W.tagName)re===">"?Z(W):B(b,re)?W.tagName+=re:W.script?(W.script+="</"+W.tagName,W.tagName="",W.state=e.SCRIPT):(x(re)||C(W,"Invalid tagname in closing tag"),W.state=e.CLOSE_TAG_SAW_WHITE);else{if(x(re))continue;$(w,re)?W.script?(W.script+="</"+re,W.state=e.SCRIPT):C(W,"Invalid tagname in closing tag."):W.tagName=re}continue;case e.CLOSE_TAG_SAW_WHITE:if(x(re))continue;re===">"?Z(W):C(W,"Invalid characters in closing tag");continue;case e.TEXT_ENTITY:case e.ATTRIB_VALUE_ENTITY_Q:case e.ATTRIB_VALUE_ENTITY_U:var ge,be;switch(W.state){case e.TEXT_ENTITY:ge=e.TEXT,be="textNode";break;case e.ATTRIB_VALUE_ENTITY_Q:ge=e.ATTRIB_VALUE_QUOTED,be="attribValue";break;case e.ATTRIB_VALUE_ENTITY_U:ge=e.ATTRIB_VALUE_UNQUOTED,be="attribValue"}re===";"?(W[be]+=ie(W),W.entity="",W.state=ge):B(W.entity.length?A:k,re)?W.entity+=re:(C(W,"Invalid character in entity name"),W[be]+="&"+W.entity+re,W.entity="",W.state=ge);continue;default:throw new Error(W,"Unknown state: "+W.state)}return W.position>=W.bufferCheckPosition&&function(je){for(var xe=Math.max(v.MAX_BUFFER_LENGTH,10),Ae=0,X=0,ee=E.length;X<ee;X++){var U=je[E[X]].length;if(U>xe)switch(E[X]){case"textNode":t(je);break;case"cdata":n(je,"oncdata",je.cdata),je.cdata="";break;case"script":n(je,"onscript",je.script),je.script="";break;default:a(je,"Max buffer length exceeded: "+E[X])}Ae=Math.max(Ae,U)}var V=v.MAX_BUFFER_LENGTH-Ae;je.bufferCheckPosition=V+je.position}(W),W},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var z;t(z=this),z.cdata!==""&&(n(z,"oncdata",z.cdata),z.cdata=""),z.script!==""&&(n(z,"onscript",z.script),z.script="")}};try{m=y(2830).Stream}catch{m=function(){}}var p=v.EVENTS.filter(function(z){return z!=="error"&&z!=="end"});function c(z,W){if(!(this instanceof c))return new c(z,W);m.apply(this),this._parser=new s(z,W),this.writable=!0,this.readable=!0;var ae=this;this._parser.onend=function(){ae.emit("end")},this._parser.onerror=function(re){ae.emit("error",re),ae._parser.error=null},this._decoder=null,p.forEach(function(re){Object.defineProperty(ae,"on"+re,{get:function(){return ae._parser["on"+re]},set:function(le){if(!le)return ae.removeAllListeners(re),ae._parser["on"+re]=le,le;ae.on(re,le)},enumerable:!0,configurable:!1})})}c.prototype=Object.create(m.prototype,{constructor:{value:c}}),c.prototype.write=function(z){if(typeof M=="function"&&typeof M.isBuffer=="function"&&M.isBuffer(z)){if(!this._decoder){var W=y(2553).s;this._decoder=new W("utf8")}z=this._decoder.write(z)}return this._parser.write(z.toString()),this.emit("data",z),!0},c.prototype.end=function(z){return z&&z.length&&this.write(z),this._parser.end(),!0},c.prototype.on=function(z,W){var ae=this;return ae._parser["on"+z]||p.indexOf(z)===-1||(ae._parser["on"+z]=function(){var re=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);re.splice(0,0,z),ae.emit.apply(ae,re)}),m.prototype.on.call(ae,z,W)};var l="[CDATA[",f="DOCTYPE",g="http://www.w3.org/XML/1998/namespace",h="http://www.w3.org/2000/xmlns/",u={xml:g,xmlns:h},w=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,b=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,k=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,A=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function x(z){return z===" "||z===`
|
|
109
|
+
`||z==="\r"||z===" "}function j(z){return z==='"'||z==="'"}function P(z){return z===">"||x(z)}function B(z,W){return z.test(W)}function $(z,W){return!B(z,W)}var te,J,oe,e=0;for(var r in v.STATE={BEGIN:e++,BEGIN_WHITESPACE:e++,TEXT:e++,TEXT_ENTITY:e++,OPEN_WAKA:e++,SGML_DECL:e++,SGML_DECL_QUOTED:e++,DOCTYPE:e++,DOCTYPE_QUOTED:e++,DOCTYPE_DTD:e++,DOCTYPE_DTD_QUOTED:e++,COMMENT_STARTING:e++,COMMENT:e++,COMMENT_ENDING:e++,COMMENT_ENDED:e++,CDATA:e++,CDATA_ENDING:e++,CDATA_ENDING_2:e++,PROC_INST:e++,PROC_INST_BODY:e++,PROC_INST_ENDING:e++,OPEN_TAG:e++,OPEN_TAG_SLASH:e++,ATTRIB:e++,ATTRIB_NAME:e++,ATTRIB_NAME_SAW_WHITE:e++,ATTRIB_VALUE:e++,ATTRIB_VALUE_QUOTED:e++,ATTRIB_VALUE_CLOSED:e++,ATTRIB_VALUE_UNQUOTED:e++,ATTRIB_VALUE_ENTITY_Q:e++,ATTRIB_VALUE_ENTITY_U:e++,CLOSE_TAG:e++,CLOSE_TAG_SAW_WHITE:e++,SCRIPT:e++,SCRIPT_ENDING:e++},v.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},v.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(v.ENTITIES).forEach(function(z){var W=v.ENTITIES[z],ae=typeof W=="number"?String.fromCharCode(W):W;v.ENTITIES[z]=ae}),v.STATE)v.STATE[v.STATE[r]]=r;function i(z,W,ae){z[W]&&z[W](ae)}function n(z,W,ae){z.textNode&&t(z),i(z,W,ae)}function t(z){z.textNode=o(z.opt,z.textNode),z.textNode&&i(z,"ontext",z.textNode),z.textNode=""}function o(z,W){return z.trim&&(W=W.trim()),z.normalize&&(W=W.replace(/\s+/g," ")),W}function a(z,W){return t(z),z.trackPosition&&(W+=`
|
|
110
|
+
Line: `+z.line+`
|
|
111
|
+
Column: `+z.column+`
|
|
112
|
+
Char: `+z.c),W=new Error(W),z.error=W,i(z,"onerror",W),z}function T(z){return z.sawRoot&&!z.closedRoot&&C(z,"Unclosed root tag"),z.state!==e.BEGIN&&z.state!==e.BEGIN_WHITESPACE&&z.state!==e.TEXT&&a(z,"Unexpected end"),t(z),z.c="",z.closed=!0,i(z,"onend"),s.call(z,z.strict,z.opt),z}function C(z,W){if(typeof z!="object"||!(z instanceof s))throw new Error("bad call to strictFail");z.strict&&a(z,W)}function N(z){z.strict||(z.tagName=z.tagName[z.looseCase]());var W=z.tags[z.tags.length-1]||z,ae=z.tag={name:z.tagName,attributes:{}};z.opt.xmlns&&(ae.ns=W.ns),z.attribList.length=0,n(z,"onopentagstart",ae)}function O(z,W){var ae=z.indexOf(":")<0?["",z]:z.split(":"),re=ae[0],le=ae[1];return W&&z==="xmlns"&&(re="xmlns",le=""),{prefix:re,local:le}}function R(z){if(z.strict||(z.attribName=z.attribName[z.looseCase]()),z.attribList.indexOf(z.attribName)!==-1||z.tag.attributes.hasOwnProperty(z.attribName))z.attribName=z.attribValue="";else{if(z.opt.xmlns){var W=O(z.attribName,!0),ae=W.prefix,re=W.local;if(ae==="xmlns")if(re==="xml"&&z.attribValue!==g)C(z,"xml: prefix must be bound to "+g+`
|
|
113
|
+
Actual: `+z.attribValue);else if(re==="xmlns"&&z.attribValue!==h)C(z,"xmlns: prefix must be bound to "+h+`
|
|
114
|
+
Actual: `+z.attribValue);else{var le=z.tag,ke=z.tags[z.tags.length-1]||z;le.ns===ke.ns&&(le.ns=Object.create(ke.ns)),le.ns[re]=z.attribValue}z.attribList.push([z.attribName,z.attribValue])}else z.tag.attributes[z.attribName]=z.attribValue,n(z,"onattribute",{name:z.attribName,value:z.attribValue});z.attribName=z.attribValue=""}}function F(z,W){if(z.opt.xmlns){var ae=z.tag,re=O(z.tagName);ae.prefix=re.prefix,ae.local=re.local,ae.uri=ae.ns[re.prefix]||"",ae.prefix&&!ae.uri&&(C(z,"Unbound namespace prefix: "+JSON.stringify(z.tagName)),ae.uri=re.prefix);var le=z.tags[z.tags.length-1]||z;ae.ns&&le.ns!==ae.ns&&Object.keys(ae.ns).forEach(function(q){n(z,"onopennamespace",{prefix:q,uri:ae.ns[q]})});for(var ke=0,ge=z.attribList.length;ke<ge;ke++){var be=z.attribList[ke],je=be[0],xe=be[1],Ae=O(je,!0),X=Ae.prefix,ee=Ae.local,U=X===""?"":ae.ns[X]||"",V={name:je,value:xe,prefix:X,local:ee,uri:U};X&&X!=="xmlns"&&!U&&(C(z,"Unbound namespace prefix: "+JSON.stringify(X)),V.uri=X),z.tag.attributes[je]=V,n(z,"onattribute",V)}z.attribList.length=0}z.tag.isSelfClosing=!!W,z.sawRoot=!0,z.tags.push(z.tag),n(z,"onopentag",z.tag),W||(z.noscript||z.tagName.toLowerCase()!=="script"?z.state=e.TEXT:z.state=e.SCRIPT,z.tag=null,z.tagName=""),z.attribName=z.attribValue="",z.attribList.length=0}function Z(z){if(!z.tagName)return C(z,"Weird empty close tag."),z.textNode+="</>",void(z.state=e.TEXT);if(z.script){if(z.tagName!=="script")return z.script+="</"+z.tagName+">",z.tagName="",void(z.state=e.SCRIPT);n(z,"onscript",z.script),z.script=""}var W=z.tags.length,ae=z.tagName;z.strict||(ae=ae[z.looseCase]());for(var re=ae;W--&&z.tags[W].name!==re;)C(z,"Unexpected close tag");if(W<0)return C(z,"Unmatched closing tag: "+z.tagName),z.textNode+="</"+z.tagName+">",void(z.state=e.TEXT);z.tagName=ae;for(var le=z.tags.length;le-- >W;){var ke=z.tag=z.tags.pop();z.tagName=z.tag.name,n(z,"onclosetag",z.tagName);var ge={};for(var be in ke.ns)ge[be]=ke.ns[be];var je=z.tags[z.tags.length-1]||z;z.opt.xmlns&&ke.ns!==je.ns&&Object.keys(ke.ns).forEach(function(xe){var Ae=ke.ns[xe];n(z,"onclosenamespace",{prefix:xe,uri:Ae})})}W===0&&(z.closedRoot=!0),z.tagName=z.attribValue=z.attribName="",z.attribList.length=0,z.state=e.TEXT}function ie(z){var W,ae=z.entity,re=ae.toLowerCase(),le="";return z.ENTITIES[ae]?z.ENTITIES[ae]:z.ENTITIES[re]?z.ENTITIES[re]:((ae=re).charAt(0)==="#"&&(ae.charAt(1)==="x"?(ae=ae.slice(2),le=(W=parseInt(ae,16)).toString(16)):(ae=ae.slice(1),le=(W=parseInt(ae,10)).toString(10))),ae=ae.replace(/^0+/,""),isNaN(W)||le.toLowerCase()!==ae?(C(z,"Invalid character entity"),"&"+z.entity+";"):String.fromCodePoint(W))}function D(z,W){W==="<"?(z.state=e.OPEN_WAKA,z.startTagPosition=z.position):x(W)||(C(z,"Non-whitespace before first tag."),z.textNode=W,z.state=e.TEXT)}function Y(z,W){var ae="";return W<z.length&&(ae=z.charAt(W)),ae}e=v.STATE,String.fromCodePoint||(te=String.fromCharCode,J=Math.floor,oe=function(){var z,W,ae=[],re=-1,le=arguments.length;if(!le)return"";for(var ke="";++re<le;){var ge=Number(arguments[re]);if(!isFinite(ge)||ge<0||ge>1114111||J(ge)!==ge)throw RangeError("Invalid code point: "+ge);ge<=65535?ae.push(ge):(z=55296+((ge-=65536)>>10),W=ge%1024+56320,ae.push(z,W)),(re+1===le||ae.length>16384)&&(ke+=te.apply(null,ae),ae.length=0)}return ke},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:oe,configurable:!0,writable:!0}):String.fromCodePoint=oe)})(_)},4889:function(H,_,y){var M=y(4155);(function(v,m){if(!v.setImmediate){var E,s,p,c,l,f=1,g={},h=!1,u=v.document,w=Object.getPrototypeOf&&Object.getPrototypeOf(v);w=w&&w.setTimeout?w:v,{}.toString.call(v.process)==="[object process]"?E=function(A){M.nextTick(function(){k(A)})}:function(){if(v.postMessage&&!v.importScripts){var A=!0,x=v.onmessage;return v.onmessage=function(){A=!1},v.postMessage("","*"),v.onmessage=x,A}}()?(c="setImmediate$"+Math.random()+"$",l=function(A){A.source===v&&typeof A.data=="string"&&A.data.indexOf(c)===0&&k(+A.data.slice(c.length))},v.addEventListener?v.addEventListener("message",l,!1):v.attachEvent("onmessage",l),E=function(A){v.postMessage(c+A,"*")}):v.MessageChannel?((p=new MessageChannel).port1.onmessage=function(A){k(A.data)},E=function(A){p.port2.postMessage(A)}):u&&"onreadystatechange"in u.createElement("script")?(s=u.documentElement,E=function(A){var x=u.createElement("script");x.onreadystatechange=function(){k(A),x.onreadystatechange=null,s.removeChild(x),x=null},s.appendChild(x)}):E=function(A){setTimeout(k,0,A)},w.setImmediate=function(A){typeof A!="function"&&(A=new Function(""+A));for(var x=new Array(arguments.length-1),j=0;j<x.length;j++)x[j]=arguments[j+1];var P={callback:A,args:x};return g[f]=P,E(f),f++},w.clearImmediate=b}function b(A){delete g[A]}function k(A){if(h)setTimeout(k,0,A);else{var x=g[A];if(x){h=!0;try{(function(j){var P=j.callback,B=j.args;switch(B.length){case 0:P();break;case 1:P(B[0]);break;case 2:P(B[0],B[1]);break;case 3:P(B[0],B[1],B[2]);break;default:P.apply(m,B)}})(x)}finally{b(A),h=!1}}}}})(typeof self>"u"?y.g===void 0?this:y.g:self)},4189:(H,_,y)=>{var M=y(9509).Buffer;function v(m,E){this._block=M.alloc(m),this._finalSize=E,this._blockSize=m,this._len=0}v.prototype.update=function(m,E){typeof m=="string"&&(E=E||"utf8",m=M.from(m,E));for(var s=this._block,p=this._blockSize,c=m.length,l=this._len,f=0;f<c;){for(var g=l%p,h=Math.min(c-f,p-g),u=0;u<h;u++)s[g+u]=m[f+u];f+=h,(l+=h)%p==0&&this._update(s)}return this._len+=c,this},v.prototype.digest=function(m){var E=this._len%this._blockSize;this._block[E]=128,this._block.fill(0,E+1),E>=this._finalSize&&(this._update(this._block),this._block.fill(0));var s=8*this._len;if(s<=4294967295)this._block.writeUInt32BE(s,this._blockSize-4);else{var p=(4294967295&s)>>>0,c=(s-p)/4294967296;this._block.writeUInt32BE(c,this._blockSize-8),this._block.writeUInt32BE(p,this._blockSize-4)}this._update(this._block);var l=this._hash();return m?l.toString(m):l},v.prototype._update=function(){throw new Error("_update must be implemented by subclass")},H.exports=v},9072:(H,_,y)=>{var M=H.exports=function(v){v=v.toLowerCase();var m=M[v];if(!m)throw new Error(v+" is not supported (we accept pull requests)");return new m};M.sha=y(4448),M.sha1=y(8336),M.sha224=y(8432),M.sha256=y(7499),M.sha384=y(1686),M.sha512=y(7816)},4448:(H,_,y)=>{var M=y(5717),v=y(4189),m=y(9509).Buffer,E=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function p(){this.init(),this._w=s,v.call(this,64,56)}function c(f){return f<<30|f>>>2}function l(f,g,h,u){return f===0?g&h|~g&u:f===2?g&h|g&u|h&u:g^h^u}M(p,v),p.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},p.prototype._update=function(f){for(var g,h=this._w,u=0|this._a,w=0|this._b,b=0|this._c,k=0|this._d,A=0|this._e,x=0;x<16;++x)h[x]=f.readInt32BE(4*x);for(;x<80;++x)h[x]=h[x-3]^h[x-8]^h[x-14]^h[x-16];for(var j=0;j<80;++j){var P=~~(j/20),B=0|((g=u)<<5|g>>>27)+l(P,w,b,k)+A+h[j]+E[P];A=k,k=b,b=c(w),w=u,u=B}this._a=u+this._a|0,this._b=w+this._b|0,this._c=b+this._c|0,this._d=k+this._d|0,this._e=A+this._e|0},p.prototype._hash=function(){var f=m.allocUnsafe(20);return f.writeInt32BE(0|this._a,0),f.writeInt32BE(0|this._b,4),f.writeInt32BE(0|this._c,8),f.writeInt32BE(0|this._d,12),f.writeInt32BE(0|this._e,16),f},H.exports=p},8336:(H,_,y)=>{var M=y(5717),v=y(4189),m=y(9509).Buffer,E=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function p(){this.init(),this._w=s,v.call(this,64,56)}function c(g){return g<<5|g>>>27}function l(g){return g<<30|g>>>2}function f(g,h,u,w){return g===0?h&u|~h&w:g===2?h&u|h&w|u&w:h^u^w}M(p,v),p.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},p.prototype._update=function(g){for(var h,u=this._w,w=0|this._a,b=0|this._b,k=0|this._c,A=0|this._d,x=0|this._e,j=0;j<16;++j)u[j]=g.readInt32BE(4*j);for(;j<80;++j)u[j]=(h=u[j-3]^u[j-8]^u[j-14]^u[j-16])<<1|h>>>31;for(var P=0;P<80;++P){var B=~~(P/20),$=c(w)+f(B,b,k,A)+x+u[P]+E[B]|0;x=A,A=k,k=l(b),b=w,w=$}this._a=w+this._a|0,this._b=b+this._b|0,this._c=k+this._c|0,this._d=A+this._d|0,this._e=x+this._e|0},p.prototype._hash=function(){var g=m.allocUnsafe(20);return g.writeInt32BE(0|this._a,0),g.writeInt32BE(0|this._b,4),g.writeInt32BE(0|this._c,8),g.writeInt32BE(0|this._d,12),g.writeInt32BE(0|this._e,16),g},H.exports=p},8432:(H,_,y)=>{var M=y(5717),v=y(7499),m=y(4189),E=y(9509).Buffer,s=new Array(64);function p(){this.init(),this._w=s,m.call(this,64,56)}M(p,v),p.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},p.prototype._hash=function(){var c=E.allocUnsafe(28);return c.writeInt32BE(this._a,0),c.writeInt32BE(this._b,4),c.writeInt32BE(this._c,8),c.writeInt32BE(this._d,12),c.writeInt32BE(this._e,16),c.writeInt32BE(this._f,20),c.writeInt32BE(this._g,24),c},H.exports=p},7499:(H,_,y)=>{var M=y(5717),v=y(4189),m=y(9509).Buffer,E=[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],s=new Array(64);function p(){this.init(),this._w=s,v.call(this,64,56)}function c(u,w,b){return b^u&(w^b)}function l(u,w,b){return u&w|b&(u|w)}function f(u){return(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10)}function g(u){return(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7)}function h(u){return(u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3}M(p,v),p.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},p.prototype._update=function(u){for(var w,b=this._w,k=0|this._a,A=0|this._b,x=0|this._c,j=0|this._d,P=0|this._e,B=0|this._f,$=0|this._g,te=0|this._h,J=0;J<16;++J)b[J]=u.readInt32BE(4*J);for(;J<64;++J)b[J]=0|(((w=b[J-2])>>>17|w<<15)^(w>>>19|w<<13)^w>>>10)+b[J-7]+h(b[J-15])+b[J-16];for(var oe=0;oe<64;++oe){var e=te+g(P)+c(P,B,$)+E[oe]+b[oe]|0,r=f(k)+l(k,A,x)|0;te=$,$=B,B=P,P=j+e|0,j=x,x=A,A=k,k=e+r|0}this._a=k+this._a|0,this._b=A+this._b|0,this._c=x+this._c|0,this._d=j+this._d|0,this._e=P+this._e|0,this._f=B+this._f|0,this._g=$+this._g|0,this._h=te+this._h|0},p.prototype._hash=function(){var u=m.allocUnsafe(32);return u.writeInt32BE(this._a,0),u.writeInt32BE(this._b,4),u.writeInt32BE(this._c,8),u.writeInt32BE(this._d,12),u.writeInt32BE(this._e,16),u.writeInt32BE(this._f,20),u.writeInt32BE(this._g,24),u.writeInt32BE(this._h,28),u},H.exports=p},1686:(H,_,y)=>{var M=y(5717),v=y(7816),m=y(4189),E=y(9509).Buffer,s=new Array(160);function p(){this.init(),this._w=s,m.call(this,128,112)}M(p,v),p.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},p.prototype._hash=function(){var c=E.allocUnsafe(48);function l(f,g,h){c.writeInt32BE(f,h),c.writeInt32BE(g,h+4)}return l(this._ah,this._al,0),l(this._bh,this._bl,8),l(this._ch,this._cl,16),l(this._dh,this._dl,24),l(this._eh,this._el,32),l(this._fh,this._fl,40),c},H.exports=p},7816:(H,_,y)=>{var M=y(5717),v=y(4189),m=y(9509).Buffer,E=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function p(){this.init(),this._w=s,v.call(this,128,112)}function c(A,x,j){return j^A&(x^j)}function l(A,x,j){return A&x|j&(A|x)}function f(A,x){return(A>>>28|x<<4)^(x>>>2|A<<30)^(x>>>7|A<<25)}function g(A,x){return(A>>>14|x<<18)^(A>>>18|x<<14)^(x>>>9|A<<23)}function h(A,x){return(A>>>1|x<<31)^(A>>>8|x<<24)^A>>>7}function u(A,x){return(A>>>1|x<<31)^(A>>>8|x<<24)^(A>>>7|x<<25)}function w(A,x){return(A>>>19|x<<13)^(x>>>29|A<<3)^A>>>6}function b(A,x){return(A>>>19|x<<13)^(x>>>29|A<<3)^(A>>>6|x<<26)}function k(A,x){return A>>>0<x>>>0?1:0}M(p,v),p.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},p.prototype._update=function(A){for(var x=this._w,j=0|this._ah,P=0|this._bh,B=0|this._ch,$=0|this._dh,te=0|this._eh,J=0|this._fh,oe=0|this._gh,e=0|this._hh,r=0|this._al,i=0|this._bl,n=0|this._cl,t=0|this._dl,o=0|this._el,a=0|this._fl,T=0|this._gl,C=0|this._hl,N=0;N<32;N+=2)x[N]=A.readInt32BE(4*N),x[N+1]=A.readInt32BE(4*N+4);for(;N<160;N+=2){var O=x[N-30],R=x[N-30+1],F=h(O,R),Z=u(R,O),ie=w(O=x[N-4],R=x[N-4+1]),D=b(R,O),Y=x[N-14],z=x[N-14+1],W=x[N-32],ae=x[N-32+1],re=Z+z|0,le=F+Y+k(re,Z)|0;le=(le=le+ie+k(re=re+D|0,D)|0)+W+k(re=re+ae|0,ae)|0,x[N]=le,x[N+1]=re}for(var ke=0;ke<160;ke+=2){le=x[ke],re=x[ke+1];var ge=l(j,P,B),be=l(r,i,n),je=f(j,r),xe=f(r,j),Ae=g(te,o),X=g(o,te),ee=E[ke],U=E[ke+1],V=c(te,J,oe),q=c(o,a,T),ne=C+X|0,fe=e+Ae+k(ne,C)|0;fe=(fe=(fe=fe+V+k(ne=ne+q|0,q)|0)+ee+k(ne=ne+U|0,U)|0)+le+k(ne=ne+re|0,re)|0;var he=xe+be|0,me=je+ge+k(he,xe)|0;e=oe,C=T,oe=J,T=a,J=te,a=o,te=$+fe+k(o=t+ne|0,t)|0,$=B,t=n,B=P,n=i,P=j,i=r,j=fe+me+k(r=ne+he|0,ne)|0}this._al=this._al+r|0,this._bl=this._bl+i|0,this._cl=this._cl+n|0,this._dl=this._dl+t|0,this._el=this._el+o|0,this._fl=this._fl+a|0,this._gl=this._gl+T|0,this._hl=this._hl+C|0,this._ah=this._ah+j+k(this._al,r)|0,this._bh=this._bh+P+k(this._bl,i)|0,this._ch=this._ch+B+k(this._cl,n)|0,this._dh=this._dh+$+k(this._dl,t)|0,this._eh=this._eh+te+k(this._el,o)|0,this._fh=this._fh+J+k(this._fl,a)|0,this._gh=this._gh+oe+k(this._gl,T)|0,this._hh=this._hh+e+k(this._hl,C)|0},p.prototype._hash=function(){var A=m.allocUnsafe(64);function x(j,P,B){A.writeInt32BE(j,B),A.writeInt32BE(P,B+4)}return x(this._ah,this._al,0),x(this._bh,this._bl,8),x(this._ch,this._cl,16),x(this._dh,this._dl,24),x(this._eh,this._el,32),x(this._fh,this._fl,40),x(this._gh,this._gl,48),x(this._hh,this._hl,56),A},H.exports=p},500:H=>{H.exports=(_,y)=>{if(typeof _!="string"||typeof y!="string")throw new TypeError("Expected the arguments to be of type `string`");if(y==="")return[_];const M=_.indexOf(y);return M===-1?[_]:[_.slice(0,M),_.slice(M+y.length)]}},2830:(H,_,y)=>{H.exports=v;var M=y(7187).EventEmitter;function v(){M.call(this)}y(5717)(v,M),v.Readable=y(9481),v.Writable=y(4229),v.Duplex=y(6753),v.Transform=y(4605),v.PassThrough=y(2725),v.finished=y(8610),v.pipeline=y(9946),v.Stream=v,v.prototype.pipe=function(m,E){var s=this;function p(w){m.writable&&m.write(w)===!1&&s.pause&&s.pause()}function c(){s.readable&&s.resume&&s.resume()}s.on("data",p),m.on("drain",c),m._isStdio||E&&E.end===!1||(s.on("end",f),s.on("close",g));var l=!1;function f(){l||(l=!0,m.end())}function g(){l||(l=!0,typeof m.destroy=="function"&&m.destroy())}function h(w){if(u(),M.listenerCount(this,"error")===0)throw w}function u(){s.removeListener("data",p),m.removeListener("drain",c),s.removeListener("end",f),s.removeListener("close",g),s.removeListener("error",h),m.removeListener("error",h),s.removeListener("end",u),s.removeListener("close",u),m.removeListener("close",u)}return s.on("error",h),m.on("error",h),s.on("end",u),s.on("close",u),m.on("close",u),m.emit("pipe",s),m}},8501:(H,_,y)=>{var M=y(1989),v=y(5676),m=y(7529),E=y(584),s=y(8575),p=_;p.request=function(c,l){c=typeof c=="string"?s.parse(c):m(c);var f=y.g.location.protocol.search(/^https?:$/)===-1?"http:":"",g=c.protocol||f,h=c.hostname||c.host,u=c.port,w=c.path||"/";h&&h.indexOf(":")!==-1&&(h="["+h+"]"),c.url=(h?g+"//"+h:"")+(u?":"+u:"")+w,c.method=(c.method||"GET").toUpperCase(),c.headers=c.headers||{};var b=new M(c);return l&&b.on("response",l),b},p.get=function(c,l){var f=p.request(c,l);return f.end(),f},p.ClientRequest=M,p.IncomingMessage=v.IncomingMessage,p.Agent=function(){},p.Agent.defaultMaxSockets=4,p.globalAgent=new p.Agent,p.STATUS_CODES=E,p.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},8725:(H,_,y)=>{var M;function v(){if(M!==void 0)return M;if(y.g.XMLHttpRequest){M=new y.g.XMLHttpRequest;try{M.open("GET",y.g.XDomainRequest?"/":"https://example.com")}catch{M=null}}else M=null;return M}function m(s){var p=v();if(!p)return!1;try{return p.responseType=s,p.responseType===s}catch{}return!1}function E(s){return typeof s=="function"}_.fetch=E(y.g.fetch)&&E(y.g.ReadableStream),_.writableStream=E(y.g.WritableStream),_.abortController=E(y.g.AbortController),_.arraybuffer=_.fetch||m("arraybuffer"),_.msstream=!_.fetch&&m("ms-stream"),_.mozchunkedarraybuffer=!_.fetch&&m("moz-chunked-arraybuffer"),_.overrideMimeType=_.fetch||!!v()&&E(v().overrideMimeType),M=null},1989:(H,_,y)=>{var M=y(8764).Buffer,v=y(4155),m=y(8725),E=y(5717),s=y(5676),p=y(8473),c=s.IncomingMessage,l=s.readyStates,f=H.exports=function(h){var u,w=this;p.Writable.call(w),w._opts=h,w._body=[],w._headers={},h.auth&&w.setHeader("Authorization","Basic "+M.from(h.auth).toString("base64")),Object.keys(h.headers).forEach(function(k){w.setHeader(k,h.headers[k])});var b=!0;if(h.mode==="disable-fetch"||"requestTimeout"in h&&!m.abortController)b=!1,u=!0;else if(h.mode==="prefer-streaming")u=!1;else if(h.mode==="allow-wrong-content-type")u=!m.overrideMimeType;else{if(h.mode&&h.mode!=="default"&&h.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");u=!0}w._mode=function(k,A){return m.fetch&&A?"fetch":m.mozchunkedarraybuffer?"moz-chunked-arraybuffer":m.msstream?"ms-stream":m.arraybuffer&&k?"arraybuffer":"text"}(u,b),w._fetchTimer=null,w._socketTimeout=null,w._socketTimer=null,w.on("finish",function(){w._onFinish()})};E(f,p.Writable),f.prototype.setHeader=function(h,u){var w=h.toLowerCase();g.indexOf(w)===-1&&(this._headers[w]={name:h,value:u})},f.prototype.getHeader=function(h){var u=this._headers[h.toLowerCase()];return u?u.value:null},f.prototype.removeHeader=function(h){delete this._headers[h.toLowerCase()]},f.prototype._onFinish=function(){var h=this;if(!h._destroyed){var u=h._opts;"timeout"in u&&u.timeout!==0&&h.setTimeout(u.timeout);var w=h._headers,b=null;u.method!=="GET"&&u.method!=="HEAD"&&(b=new Blob(h._body,{type:(w["content-type"]||{}).value||""}));var k=[];if(Object.keys(w).forEach(function(P){var B=w[P].name,$=w[P].value;Array.isArray($)?$.forEach(function(te){k.push([B,te])}):k.push([B,$])}),h._mode==="fetch"){var A=null;if(m.abortController){var x=new AbortController;A=x.signal,h._fetchAbortController=x,"requestTimeout"in u&&u.requestTimeout!==0&&(h._fetchTimer=y.g.setTimeout(function(){h.emit("requestTimeout"),h._fetchAbortController&&h._fetchAbortController.abort()},u.requestTimeout))}y.g.fetch(h._opts.url,{method:h._opts.method,headers:k,body:b||void 0,mode:"cors",credentials:u.withCredentials?"include":"same-origin",signal:A}).then(function(P){h._fetchResponse=P,h._resetTimers(!1),h._connect()},function(P){h._resetTimers(!0),h._destroyed||h.emit("error",P)})}else{var j=h._xhr=new y.g.XMLHttpRequest;try{j.open(h._opts.method,h._opts.url,!0)}catch(P){return void v.nextTick(function(){h.emit("error",P)})}"responseType"in j&&(j.responseType=h._mode),"withCredentials"in j&&(j.withCredentials=!!u.withCredentials),h._mode==="text"&&"overrideMimeType"in j&&j.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in u&&(j.timeout=u.requestTimeout,j.ontimeout=function(){h.emit("requestTimeout")}),k.forEach(function(P){j.setRequestHeader(P[0],P[1])}),h._response=null,j.onreadystatechange=function(){switch(j.readyState){case l.LOADING:case l.DONE:h._onXHRProgress()}},h._mode==="moz-chunked-arraybuffer"&&(j.onprogress=function(){h._onXHRProgress()}),j.onerror=function(){h._destroyed||(h._resetTimers(!0),h.emit("error",new Error("XHR error")))};try{j.send(b)}catch(P){return void v.nextTick(function(){h.emit("error",P)})}}}},f.prototype._onXHRProgress=function(){var h=this;h._resetTimers(!1),function(u){try{var w=u.status;return w!==null&&w!==0}catch{return!1}}(h._xhr)&&!h._destroyed&&(h._response||h._connect(),h._response._onXHRProgress(h._resetTimers.bind(h)))},f.prototype._connect=function(){var h=this;h._destroyed||(h._response=new c(h._xhr,h._fetchResponse,h._mode,h._resetTimers.bind(h)),h._response.on("error",function(u){h.emit("error",u)}),h.emit("response",h._response))},f.prototype._write=function(h,u,w){this._body.push(h),w()},f.prototype._resetTimers=function(h){var u=this;y.g.clearTimeout(u._socketTimer),u._socketTimer=null,h?(y.g.clearTimeout(u._fetchTimer),u._fetchTimer=null):u._socketTimeout&&(u._socketTimer=y.g.setTimeout(function(){u.emit("timeout")},u._socketTimeout))},f.prototype.abort=f.prototype.destroy=function(h){var u=this;u._destroyed=!0,u._resetTimers(!0),u._response&&(u._response._destroyed=!0),u._xhr?u._xhr.abort():u._fetchAbortController&&u._fetchAbortController.abort(),h&&u.emit("error",h)},f.prototype.end=function(h,u,w){typeof h=="function"&&(w=h,h=void 0),p.Writable.prototype.end.call(this,h,u,w)},f.prototype.setTimeout=function(h,u){var w=this;u&&w.once("timeout",u),w._socketTimeout=h,w._resetTimers(!1)},f.prototype.flushHeaders=function(){},f.prototype.setNoDelay=function(){},f.prototype.setSocketKeepAlive=function(){};var g=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},5676:(H,_,y)=>{var M=y(4155),v=y(8764).Buffer,m=y(8725),E=y(5717),s=y(8473),p=_.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=_.IncomingMessage=function(l,f,g,h){var u=this;if(s.Readable.call(u),u._mode=g,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",function(){M.nextTick(function(){u.emit("close")})}),g==="fetch"){if(u._fetchResponse=f,u.url=f.url,u.statusCode=f.status,u.statusMessage=f.statusText,f.headers.forEach(function(x,j){u.headers[j.toLowerCase()]=x,u.rawHeaders.push(j,x)}),m.writableStream){var w=new WritableStream({write:function(x){return h(!1),new Promise(function(j,P){u._destroyed?P():u.push(v.from(x))?j():u._resumeFetch=j})},close:function(){h(!0),u._destroyed||u.push(null)},abort:function(x){h(!0),u._destroyed||u.emit("error",x)}});try{return void f.body.pipeTo(w).catch(function(x){h(!0),u._destroyed||u.emit("error",x)})}catch{}}var b=f.body.getReader();(function x(){b.read().then(function(j){u._destroyed||(h(j.done),j.done?u.push(null):(u.push(v.from(j.value)),x()))}).catch(function(j){h(!0),u._destroyed||u.emit("error",j)})})()}else if(u._xhr=l,u._pos=0,u.url=l.responseURL,u.statusCode=l.status,u.statusMessage=l.statusText,l.getAllResponseHeaders().split(/\r?\n/).forEach(function(x){var j=x.match(/^([^:]+):\s*(.*)/);if(j){var P=j[1].toLowerCase();P==="set-cookie"?(u.headers[P]===void 0&&(u.headers[P]=[]),u.headers[P].push(j[2])):u.headers[P]!==void 0?u.headers[P]+=", "+j[2]:u.headers[P]=j[2],u.rawHeaders.push(j[1],j[2])}}),u._charset="x-user-defined",!m.overrideMimeType){var k=u.rawHeaders["mime-type"];if(k){var A=k.match(/;\s*charset=([^;])(;|$)/);A&&(u._charset=A[1].toLowerCase())}u._charset||(u._charset="utf-8")}};E(c,s.Readable),c.prototype._read=function(){var l=this._resumeFetch;l&&(this._resumeFetch=null,l())},c.prototype._onXHRProgress=function(l){var f=this,g=f._xhr,h=null;switch(f._mode){case"text":if((h=g.responseText).length>f._pos){var u=h.substr(f._pos);if(f._charset==="x-user-defined"){for(var w=v.alloc(u.length),b=0;b<u.length;b++)w[b]=255&u.charCodeAt(b);f.push(w)}else f.push(u,f._charset);f._pos=h.length}break;case"arraybuffer":if(g.readyState!==p.DONE||!g.response)break;h=g.response,f.push(v.from(new Uint8Array(h)));break;case"moz-chunked-arraybuffer":if(h=g.response,g.readyState!==p.LOADING||!h)break;f.push(v.from(new Uint8Array(h)));break;case"ms-stream":if(h=g.response,g.readyState!==p.LOADING)break;var k=new y.g.MSStreamReader;k.onprogress=function(){k.result.byteLength>f._pos&&(f.push(v.from(new Uint8Array(k.result.slice(f._pos)))),f._pos=k.result.byteLength)},k.onload=function(){l(!0),f.push(null)},k.readAsArrayBuffer(h)}f._xhr.readyState===p.DONE&&f._mode!=="ms-stream"&&(l(!0),f.push(null))}},610:H=>{H.exports=_=>encodeURIComponent(_).replace(/[!'()*]/g,y=>`%${y.charCodeAt(0).toString(16).toUpperCase()}`)},2553:(H,_,y)=>{var M=y(9509).Buffer,v=M.isEncoding||function(u){switch((u=""+u)&&u.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 m(u){var w;switch(this.encoding=function(b){var k=function(A){if(!A)return"utf8";for(var x;;)switch(A){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 A;default:if(x)return;A=(""+A).toLowerCase(),x=!0}}(b);if(typeof k!="string"&&(M.isEncoding===v||!v(b)))throw new Error("Unknown encoding: "+b);return k||b}(u),this.encoding){case"utf16le":this.text=p,this.end=c,w=4;break;case"utf8":this.fillLast=s,w=4;break;case"base64":this.text=l,this.end=f,w=3;break;default:return this.write=g,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=M.allocUnsafe(w)}function E(u){return u<=127?0:u>>5==6?2:u>>4==14?3:u>>3==30?4:u>>6==2?-1:-2}function s(u){var w=this.lastTotal-this.lastNeed,b=function(k,A,x){if((192&A[0])!=128)return k.lastNeed=0,"�";if(k.lastNeed>1&&A.length>1){if((192&A[1])!=128)return k.lastNeed=1,"�";if(k.lastNeed>2&&A.length>2&&(192&A[2])!=128)return k.lastNeed=2,"�"}}(this,u);return b!==void 0?b:this.lastNeed<=u.length?(u.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(u.copy(this.lastChar,w,0,u.length),void(this.lastNeed-=u.length))}function p(u,w){if((u.length-w)%2==0){var b=u.toString("utf16le",w);if(b){var k=b.charCodeAt(b.length-1);if(k>=55296&&k<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],b.slice(0,-1)}return b}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",w,u.length-1)}function c(u){var w=u&&u.length?this.write(u):"";if(this.lastNeed){var b=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,b)}return w}function l(u,w){var b=(u.length-w)%3;return b===0?u.toString("base64",w):(this.lastNeed=3-b,this.lastTotal=3,b===1?this.lastChar[0]=u[u.length-1]:(this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1]),u.toString("base64",w,u.length-b))}function f(u){var w=u&&u.length?this.write(u):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function g(u){return u.toString(this.encoding)}function h(u){return u&&u.length?this.write(u):""}_.s=m,m.prototype.write=function(u){if(u.length===0)return"";var w,b;if(this.lastNeed){if((w=this.fillLast(u))===void 0)return"";b=this.lastNeed,this.lastNeed=0}else b=0;return b<u.length?w?w+this.text(u,b):this.text(u,b):w||""},m.prototype.end=function(u){var w=u&&u.length?this.write(u):"";return this.lastNeed?w+"�":w},m.prototype.text=function(u,w){var b=function(A,x,j){var P=x.length-1;if(P<j)return 0;var B=E(x[P]);return B>=0?(B>0&&(A.lastNeed=B-1),B):--P<j||B===-2?0:(B=E(x[P]))>=0?(B>0&&(A.lastNeed=B-2),B):--P<j||B===-2?0:(B=E(x[P]))>=0?(B>0&&(B===2?B=0:A.lastNeed=B-3),B):0}(this,u,w);if(!this.lastNeed)return u.toString("utf8",w);this.lastTotal=b;var k=u.length-(b-this.lastNeed);return u.copy(this.lastChar,0,k),u.toString("utf8",w,k)},m.prototype.fillLast=function(u){if(this.lastNeed<=u.length)return u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,u.length),this.lastNeed-=u.length}},4153:H=>{const _=/^[-+]?0x[a-fA-F0-9]+$/,y=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const M={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};H.exports=function(v,m={}){if(m=Object.assign({},M,m),!v||typeof v!="string")return v;let E=v.trim();if(m.skipLike!==void 0&&m.skipLike.test(E))return v;if(m.hex&&_.test(E))return Number.parseInt(E,16);{const p=y.exec(E);if(p){const c=p[1],l=p[2];let f=((s=p[3])&&s.indexOf(".")!==-1&&((s=s.replace(/0+$/,""))==="."?s="0":s[0]==="."?s="0"+s:s[s.length-1]==="."&&(s=s.substr(0,s.length-1))),s);const g=p[4]||p[6];if(!m.leadingZeros&&l.length>0&&c&&E[2]!=="."||!m.leadingZeros&&l.length>0&&!c&&E[1]!==".")return v;{const h=Number(E),u=""+h;return u.search(/[eE]/)!==-1||g?m.eNotation?h:v:E.indexOf(".")!==-1?u==="0"&&f===""||u===f||c&&u==="-"+f?h:v:l?f===u||c+f===u?h:v:E===u||E===c+u?h:v}}return v}var s}},4650:(H,_,y)=>{var M=y(4155),v=y(8473).Transform,m=y(5717);function E(c){v.call(this,c),this._destroyed=!1}function s(c,l,f){f(null,c)}function p(c){return function(l,f,g){return typeof l=="function"&&(g=f,f=l,l={}),typeof f!="function"&&(f=s),typeof g!="function"&&(g=null),c(l,f,g)}}m(E,v),E.prototype.destroy=function(c){if(!this._destroyed){this._destroyed=!0;var l=this;M.nextTick(function(){c&&l.emit("error",c),l.emit("close")})}},H.exports=p(function(c,l,f){var g=new E(c);return g._transform=l,f&&(g._flush=f),g}),H.exports.ctor=p(function(c,l,f){function g(h){if(!(this instanceof g))return new g(h);this.options=Object.assign({},c,h),E.call(this,this.options)}return m(g,E),g.prototype._transform=l,f&&(g.prototype._flush=f),g}),H.exports.obj=p(function(c,l,f){var g=new E(Object.assign({objectMode:!0,highWaterMark:16},c));return g._transform=l,f&&(g._flush=f),g})},5475:function(H,_,y){var M=y.g!==void 0&&y.g||typeof self<"u"&&self||window,v=Function.prototype.apply;function m(E,s){this._id=E,this._clearFn=s}_.setTimeout=function(){return new m(v.call(setTimeout,M,arguments),clearTimeout)},_.setInterval=function(){return new m(v.call(setInterval,M,arguments),clearInterval)},_.clearTimeout=_.clearInterval=function(E){E&&E.close()},m.prototype.unref=m.prototype.ref=function(){},m.prototype.close=function(){this._clearFn.call(M,this._id)},_.enroll=function(E,s){clearTimeout(E._idleTimeoutId),E._idleTimeout=s},_.unenroll=function(E){clearTimeout(E._idleTimeoutId),E._idleTimeout=-1},_._unrefActive=_.active=function(E){clearTimeout(E._idleTimeoutId);var s=E._idleTimeout;s>=0&&(E._idleTimeoutId=setTimeout(function(){E._onTimeout&&E._onTimeout()},s))},y(4889),_.setImmediate=typeof self<"u"&&self.setImmediate||y.g!==void 0&&y.g.setImmediate||this&&this.setImmediate,_.clearImmediate=typeof self<"u"&&self.clearImmediate||y.g!==void 0&&y.g.clearImmediate||this&&this.clearImmediate},2511:function(H,_,y){var M;H=y.nmd(H),function(v){_&&_.nodeType,H&&H.nodeType;var m=typeof y.g=="object"&&y.g;m.global!==m&&m.window!==m&&m.self;var E,s=2147483647,p=36,c=1,l=26,f=38,g=700,h=72,u=128,w="-",b=/^xn--/,k=/[^\x20-\x7E]/,A=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=p-c,P=Math.floor,B=String.fromCharCode;function $(o){throw RangeError(x[o])}function te(o,a){for(var T=o.length,C=[];T--;)C[T]=a(o[T]);return C}function J(o,a){var T=o.split("@"),C="";return T.length>1&&(C=T[0]+"@",o=T[1]),C+te((o=o.replace(A,".")).split("."),a).join(".")}function oe(o){for(var a,T,C=[],N=0,O=o.length;N<O;)(a=o.charCodeAt(N++))>=55296&&a<=56319&&N<O?(64512&(T=o.charCodeAt(N++)))==56320?C.push(((1023&a)<<10)+(1023&T)+65536):(C.push(a),N--):C.push(a);return C}function e(o){return te(o,function(a){var T="";return a>65535&&(T+=B((a-=65536)>>>10&1023|55296),a=56320|1023&a),T+B(a)}).join("")}function r(o,a){return o+22+75*(o<26)-((a!=0)<<5)}function i(o,a,T){var C=0;for(o=T?P(o/g):o>>1,o+=P(o/a);o>j*l>>1;C+=p)o=P(o/j);return P(C+(j+1)*o/(o+f))}function n(o){var a,T,C,N,O,R,F,Z,ie,D,Y,z=[],W=o.length,ae=0,re=u,le=h;for((T=o.lastIndexOf(w))<0&&(T=0),C=0;C<T;++C)o.charCodeAt(C)>=128&&$("not-basic"),z.push(o.charCodeAt(C));for(N=T>0?T+1:0;N<W;){for(O=ae,R=1,F=p;N>=W&&$("invalid-input"),((Z=(Y=o.charCodeAt(N++))-48<10?Y-22:Y-65<26?Y-65:Y-97<26?Y-97:p)>=p||Z>P((s-ae)/R))&&$("overflow"),ae+=Z*R,!(Z<(ie=F<=le?c:F>=le+l?l:F-le));F+=p)R>P(s/(D=p-ie))&&$("overflow"),R*=D;le=i(ae-O,a=z.length+1,O==0),P(ae/a)>s-re&&$("overflow"),re+=P(ae/a),ae%=a,z.splice(ae++,0,re)}return e(z)}function t(o){var a,T,C,N,O,R,F,Z,ie,D,Y,z,W,ae,re,le=[];for(z=(o=oe(o)).length,a=u,T=0,O=h,R=0;R<z;++R)(Y=o[R])<128&&le.push(B(Y));for(C=N=le.length,N&&le.push(w);C<z;){for(F=s,R=0;R<z;++R)(Y=o[R])>=a&&Y<F&&(F=Y);for(F-a>P((s-T)/(W=C+1))&&$("overflow"),T+=(F-a)*W,a=F,R=0;R<z;++R)if((Y=o[R])<a&&++T>s&&$("overflow"),Y==a){for(Z=T,ie=p;!(Z<(D=ie<=O?c:ie>=O+l?l:ie-O));ie+=p)re=Z-D,ae=p-D,le.push(B(r(D+re%ae,0))),Z=P(re/ae);le.push(B(r(Z,0))),O=i(T,W,C==N),T=0,++C}++T,++a}return le.join("")}E={version:"1.3.2",ucs2:{decode:oe,encode:e},decode:n,encode:t,toASCII:function(o){return J(o,function(a){return k.test(a)?"xn--"+t(a):a})},toUnicode:function(o){return J(o,function(a){return b.test(a)?n(a.slice(4).toLowerCase()):a})}},(M=(function(){return E}).call(_,y,_,H))===void 0||(H.exports=M)}()},8575:(H,_,y)=>{var M=y(2511),v=y(2502);function m(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}_.parse=x,_.resolve=function(j,P){return x(j,!1,!0).resolve(P)},_.resolveObject=function(j,P){return j?x(j,!1,!0).resolveObject(P):P},_.format=function(j){return v.isString(j)&&(j=x(j)),j instanceof m?j.format():m.prototype.format.call(j)},_.Url=m;var E=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
115
|
+
`," "]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),g=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},k={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},A=y(7673);function x(j,P,B){if(j&&v.isObject(j)&&j instanceof m)return j;var $=new m;return $.parse(j,P,B),$}m.prototype.parse=function(j,P,B){if(!v.isString(j))throw new TypeError("Parameter 'url' must be a string, not "+typeof j);var $=j.indexOf("?"),te=$!==-1&&$<j.indexOf("#")?"?":"#",J=j.split(te);J[0]=J[0].replace(/\\/g,"/");var oe=j=J.join(te);if(oe=oe.trim(),!B&&j.split("#").length===1){var e=p.exec(oe);if(e)return this.path=oe,this.href=oe,this.pathname=e[1],e[2]?(this.search=e[2],this.query=P?A.parse(this.search.substr(1)):this.search.substr(1)):P&&(this.search="",this.query={}),this}var r=E.exec(oe);if(r){var i=(r=r[0]).toLowerCase();this.protocol=i,oe=oe.substr(r.length)}if(B||r||oe.match(/^\/\/[^@\/]+@[^@\/]+/)){var n=oe.substr(0,2)==="//";!n||r&&b[r]||(oe=oe.substr(2),this.slashes=!0)}if(!b[r]&&(n||r&&!k[r])){for(var t,o,a=-1,T=0;T<g.length;T++)(C=oe.indexOf(g[T]))!==-1&&(a===-1||C<a)&&(a=C);for((o=a===-1?oe.lastIndexOf("@"):oe.lastIndexOf("@",a))!==-1&&(t=oe.slice(0,o),oe=oe.slice(o+1),this.auth=decodeURIComponent(t)),a=-1,T=0;T<f.length;T++){var C;(C=oe.indexOf(f[T]))!==-1&&(a===-1||C<a)&&(a=C)}a===-1&&(a=oe.length),this.host=oe.slice(0,a),oe=oe.slice(a),this.parseHost(),this.hostname=this.hostname||"";var N=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!N)for(var O=this.hostname.split(/\./),R=(T=0,O.length);T<R;T++){var F=O[T];if(F&&!F.match(h)){for(var Z="",ie=0,D=F.length;ie<D;ie++)F.charCodeAt(ie)>127?Z+="x":Z+=F[ie];if(!Z.match(h)){var Y=O.slice(0,T),z=O.slice(T+1),W=F.match(u);W&&(Y.push(W[1]),z.unshift(W[2])),z.length&&(oe="/"+z.join(".")+oe),this.hostname=Y.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),N||(this.hostname=M.toASCII(this.hostname));var ae=this.port?":"+this.port:"",re=this.hostname||"";this.host=re+ae,this.href+=this.host,N&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),oe[0]!=="/"&&(oe="/"+oe))}if(!w[i])for(T=0,R=l.length;T<R;T++){var le=l[T];if(oe.indexOf(le)!==-1){var ke=encodeURIComponent(le);ke===le&&(ke=escape(le)),oe=oe.split(le).join(ke)}}var ge=oe.indexOf("#");ge!==-1&&(this.hash=oe.substr(ge),oe=oe.slice(0,ge));var be=oe.indexOf("?");if(be!==-1?(this.search=oe.substr(be),this.query=oe.substr(be+1),P&&(this.query=A.parse(this.query)),oe=oe.slice(0,be)):P&&(this.search="",this.query={}),oe&&(this.pathname=oe),k[i]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){ae=this.pathname||"";var je=this.search||"";this.path=ae+je}return this.href=this.format(),this},m.prototype.format=function(){var j=this.auth||"";j&&(j=(j=encodeURIComponent(j)).replace(/%3A/i,":"),j+="@");var P=this.protocol||"",B=this.pathname||"",$=this.hash||"",te=!1,J="";this.host?te=j+this.host:this.hostname&&(te=j+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(te+=":"+this.port)),this.query&&v.isObject(this.query)&&Object.keys(this.query).length&&(J=A.stringify(this.query));var oe=this.search||J&&"?"+J||"";return P&&P.substr(-1)!==":"&&(P+=":"),this.slashes||(!P||k[P])&&te!==!1?(te="//"+(te||""),B&&B.charAt(0)!=="/"&&(B="/"+B)):te||(te=""),$&&$.charAt(0)!=="#"&&($="#"+$),oe&&oe.charAt(0)!=="?"&&(oe="?"+oe),P+te+(B=B.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(oe=oe.replace("#","%23"))+$},m.prototype.resolve=function(j){return this.resolveObject(x(j,!1,!0)).format()},m.prototype.resolveObject=function(j){if(v.isString(j)){var P=new m;P.parse(j,!1,!0),j=P}for(var B=new m,$=Object.keys(this),te=0;te<$.length;te++){var J=$[te];B[J]=this[J]}if(B.hash=j.hash,j.href==="")return B.href=B.format(),B;if(j.slashes&&!j.protocol){for(var oe=Object.keys(j),e=0;e<oe.length;e++){var r=oe[e];r!=="protocol"&&(B[r]=j[r])}return k[B.protocol]&&B.hostname&&!B.pathname&&(B.path=B.pathname="/"),B.href=B.format(),B}if(j.protocol&&j.protocol!==B.protocol){if(!k[j.protocol]){for(var i=Object.keys(j),n=0;n<i.length;n++){var t=i[n];B[t]=j[t]}return B.href=B.format(),B}if(B.protocol=j.protocol,j.host||b[j.protocol])B.pathname=j.pathname;else{for(var o=(j.pathname||"").split("/");o.length&&!(j.host=o.shift()););j.host||(j.host=""),j.hostname||(j.hostname=""),o[0]!==""&&o.unshift(""),o.length<2&&o.unshift(""),B.pathname=o.join("/")}if(B.search=j.search,B.query=j.query,B.host=j.host||"",B.auth=j.auth,B.hostname=j.hostname||j.host,B.port=j.port,B.pathname||B.search){var a=B.pathname||"",T=B.search||"";B.path=a+T}return B.slashes=B.slashes||j.slashes,B.href=B.format(),B}var C=B.pathname&&B.pathname.charAt(0)==="/",N=j.host||j.pathname&&j.pathname.charAt(0)==="/",O=N||C||B.host&&j.pathname,R=O,F=B.pathname&&B.pathname.split("/")||[],Z=(o=j.pathname&&j.pathname.split("/")||[],B.protocol&&!k[B.protocol]);if(Z&&(B.hostname="",B.port=null,B.host&&(F[0]===""?F[0]=B.host:F.unshift(B.host)),B.host="",j.protocol&&(j.hostname=null,j.port=null,j.host&&(o[0]===""?o[0]=j.host:o.unshift(j.host)),j.host=null),O=O&&(o[0]===""||F[0]==="")),N)B.host=j.host||j.host===""?j.host:B.host,B.hostname=j.hostname||j.hostname===""?j.hostname:B.hostname,B.search=j.search,B.query=j.query,F=o;else if(o.length)F||(F=[]),F.pop(),F=F.concat(o),B.search=j.search,B.query=j.query;else if(!v.isNullOrUndefined(j.search))return Z&&(B.hostname=B.host=F.shift(),(W=!!(B.host&&B.host.indexOf("@")>0)&&B.host.split("@"))&&(B.auth=W.shift(),B.host=B.hostname=W.shift())),B.search=j.search,B.query=j.query,v.isNull(B.pathname)&&v.isNull(B.search)||(B.path=(B.pathname?B.pathname:"")+(B.search?B.search:"")),B.href=B.format(),B;if(!F.length)return B.pathname=null,B.search?B.path="/"+B.search:B.path=null,B.href=B.format(),B;for(var ie=F.slice(-1)[0],D=(B.host||j.host||F.length>1)&&(ie==="."||ie==="..")||ie==="",Y=0,z=F.length;z>=0;z--)(ie=F[z])==="."?F.splice(z,1):ie===".."?(F.splice(z,1),Y++):Y&&(F.splice(z,1),Y--);if(!O&&!R)for(;Y--;Y)F.unshift("..");!O||F[0]===""||F[0]&&F[0].charAt(0)==="/"||F.unshift(""),D&&F.join("/").substr(-1)!=="/"&&F.push("");var W,ae=F[0]===""||F[0]&&F[0].charAt(0)==="/";return Z&&(B.hostname=B.host=ae?"":F.length?F.shift():"",(W=!!(B.host&&B.host.indexOf("@")>0)&&B.host.split("@"))&&(B.auth=W.shift(),B.host=B.hostname=W.shift())),(O=O||B.host&&F.length)&&!ae&&F.unshift(""),F.length?B.pathname=F.join("/"):(B.pathname=null,B.path=null),v.isNull(B.pathname)&&v.isNull(B.search)||(B.path=(B.pathname?B.pathname:"")+(B.search?B.search:"")),B.auth=j.auth||B.auth,B.slashes=B.slashes||j.slashes,B.href=B.format(),B},m.prototype.parseHost=function(){var j=this.host,P=s.exec(j);P&&((P=P[0])!==":"&&(this.port=P.substr(1)),j=j.substr(0,j.length-P.length)),j&&(this.hostname=j)}},2502:H=>{H.exports={isString:function(_){return typeof _=="string"},isObject:function(_){return typeof _=="object"&&_!==null},isNull:function(_){return _===null},isNullOrUndefined:function(_){return _==null}}},4927:(H,_,y)=>{var M=y(5108);function v(m){try{if(!y.g.localStorage)return!1}catch{return!1}var E=y.g.localStorage[m];return E!=null&&String(E).toLowerCase()==="true"}H.exports=function(m,E){if(v("noDeprecation"))return m;var s=!1;return function(){if(!s){if(v("throwDeprecation"))throw new Error(E);v("traceDeprecation")?M.trace(E):M.warn(E),s=!0}return m.apply(this,arguments)}}},384:H=>{H.exports=function(_){return _&&typeof _=="object"&&typeof _.copy=="function"&&typeof _.fill=="function"&&typeof _.readUInt8=="function"}},5955:(H,_,y)=>{var M=y(2584),v=y(8662),m=y(6430),E=y(5692);function s(a){return a.call.bind(a)}var p=typeof BigInt<"u",c=typeof Symbol<"u",l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),g=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(p)var u=s(BigInt.prototype.valueOf);if(c)var w=s(Symbol.prototype.valueOf);function b(a,T){if(typeof a!="object")return!1;try{return T(a),!0}catch{return!1}}function k(a){return l(a)==="[object Map]"}function A(a){return l(a)==="[object Set]"}function x(a){return l(a)==="[object WeakMap]"}function j(a){return l(a)==="[object WeakSet]"}function P(a){return l(a)==="[object ArrayBuffer]"}function B(a){return typeof ArrayBuffer<"u"&&(P.working?P(a):a instanceof ArrayBuffer)}function $(a){return l(a)==="[object DataView]"}function te(a){return typeof DataView<"u"&&($.working?$(a):a instanceof DataView)}_.isArgumentsObject=M,_.isGeneratorFunction=v,_.isTypedArray=E,_.isPromise=function(a){return typeof Promise<"u"&&a instanceof Promise||a!==null&&typeof a=="object"&&typeof a.then=="function"&&typeof a.catch=="function"},_.isArrayBufferView=function(a){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(a):E(a)||te(a)},_.isUint8Array=function(a){return m(a)==="Uint8Array"},_.isUint8ClampedArray=function(a){return m(a)==="Uint8ClampedArray"},_.isUint16Array=function(a){return m(a)==="Uint16Array"},_.isUint32Array=function(a){return m(a)==="Uint32Array"},_.isInt8Array=function(a){return m(a)==="Int8Array"},_.isInt16Array=function(a){return m(a)==="Int16Array"},_.isInt32Array=function(a){return m(a)==="Int32Array"},_.isFloat32Array=function(a){return m(a)==="Float32Array"},_.isFloat64Array=function(a){return m(a)==="Float64Array"},_.isBigInt64Array=function(a){return m(a)==="BigInt64Array"},_.isBigUint64Array=function(a){return m(a)==="BigUint64Array"},k.working=typeof Map<"u"&&k(new Map),_.isMap=function(a){return typeof Map<"u"&&(k.working?k(a):a instanceof Map)},A.working=typeof Set<"u"&&A(new Set),_.isSet=function(a){return typeof Set<"u"&&(A.working?A(a):a instanceof Set)},x.working=typeof WeakMap<"u"&&x(new WeakMap),_.isWeakMap=function(a){return typeof WeakMap<"u"&&(x.working?x(a):a instanceof WeakMap)},j.working=typeof WeakSet<"u"&&j(new WeakSet),_.isWeakSet=function(a){return j(a)},P.working=typeof ArrayBuffer<"u"&&P(new ArrayBuffer),_.isArrayBuffer=B,$.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&$(new DataView(new ArrayBuffer(1),0,1)),_.isDataView=te;var J=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function oe(a){return l(a)==="[object SharedArrayBuffer]"}function e(a){return J!==void 0&&(oe.working===void 0&&(oe.working=oe(new J)),oe.working?oe(a):a instanceof J)}function r(a){return b(a,f)}function i(a){return b(a,g)}function n(a){return b(a,h)}function t(a){return p&&b(a,u)}function o(a){return c&&b(a,w)}_.isSharedArrayBuffer=e,_.isAsyncFunction=function(a){return l(a)==="[object AsyncFunction]"},_.isMapIterator=function(a){return l(a)==="[object Map Iterator]"},_.isSetIterator=function(a){return l(a)==="[object Set Iterator]"},_.isGeneratorObject=function(a){return l(a)==="[object Generator]"},_.isWebAssemblyCompiledModule=function(a){return l(a)==="[object WebAssembly.Module]"},_.isNumberObject=r,_.isStringObject=i,_.isBooleanObject=n,_.isBigIntObject=t,_.isSymbolObject=o,_.isBoxedPrimitive=function(a){return r(a)||i(a)||n(a)||t(a)||o(a)},_.isAnyArrayBuffer=function(a){return typeof Uint8Array<"u"&&(B(a)||e(a))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(a){Object.defineProperty(_,a,{enumerable:!1,value:function(){throw new Error(a+" is not supported in userland")}})})},9539:(H,_,y)=>{var M=y(4155),v=y(5108),m=Object.getOwnPropertyDescriptors||function(a){for(var T=Object.keys(a),C={},N=0;N<T.length;N++)C[T[N]]=Object.getOwnPropertyDescriptor(a,T[N]);return C},E=/%[sdj%]/g;_.format=function(a){if(!j(a)){for(var T=[],C=0;C<arguments.length;C++)T.push(l(arguments[C]));return T.join(" ")}C=1;for(var N=arguments,O=N.length,R=String(a).replace(E,function(Z){if(Z==="%%")return"%";if(C>=O)return Z;switch(Z){case"%s":return String(N[C++]);case"%d":return Number(N[C++]);case"%j":try{return JSON.stringify(N[C++])}catch{return"[Circular]"}default:return Z}}),F=N[C];C<O;F=N[++C])A(F)||!$(F)?R+=" "+F:R+=" "+l(F);return R},_.deprecate=function(a,T){if(M!==void 0&&M.noDeprecation===!0)return a;if(M===void 0)return function(){return _.deprecate(a,T).apply(this,arguments)};var C=!1;return function(){if(!C){if(M.throwDeprecation)throw new Error(T);M.traceDeprecation?v.trace(T):v.error(T),C=!0}return a.apply(this,arguments)}};var s={},p=/^$/;if(M.env.NODE_DEBUG){var c=M.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),p=new RegExp("^"+c+"$","i")}function l(a,T){var C={seen:[],stylize:g};return arguments.length>=3&&(C.depth=arguments[2]),arguments.length>=4&&(C.colors=arguments[3]),k(T)?C.showHidden=T:T&&_._extend(C,T),P(C.showHidden)&&(C.showHidden=!1),P(C.depth)&&(C.depth=2),P(C.colors)&&(C.colors=!1),P(C.customInspect)&&(C.customInspect=!0),C.colors&&(C.stylize=f),h(C,a,C.depth)}function f(a,T){var C=l.styles[T];return C?"\x1B["+l.colors[C][0]+"m"+a+"\x1B["+l.colors[C][1]+"m":a}function g(a,T){return a}function h(a,T,C){if(a.customInspect&&T&&oe(T.inspect)&&T.inspect!==_.inspect&&(!T.constructor||T.constructor.prototype!==T)){var N=T.inspect(C,a);return j(N)||(N=h(a,N,C)),N}var O=function(W,ae){if(P(ae))return W.stylize("undefined","undefined");if(j(ae)){var re="'"+JSON.stringify(ae).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return W.stylize(re,"string")}return x(ae)?W.stylize(""+ae,"number"):k(ae)?W.stylize(""+ae,"boolean"):A(ae)?W.stylize("null","null"):void 0}(a,T);if(O)return O;var R=Object.keys(T),F=function(W){var ae={};return W.forEach(function(re,le){ae[re]=!0}),ae}(R);if(a.showHidden&&(R=Object.getOwnPropertyNames(T)),J(T)&&(R.indexOf("message")>=0||R.indexOf("description")>=0))return u(T);if(R.length===0){if(oe(T)){var Z=T.name?": "+T.name:"";return a.stylize("[Function"+Z+"]","special")}if(B(T))return a.stylize(RegExp.prototype.toString.call(T),"regexp");if(te(T))return a.stylize(Date.prototype.toString.call(T),"date");if(J(T))return u(T)}var ie,D="",Y=!1,z=["{","}"];return b(T)&&(Y=!0,z=["[","]"]),oe(T)&&(D=" [Function"+(T.name?": "+T.name:"")+"]"),B(T)&&(D=" "+RegExp.prototype.toString.call(T)),te(T)&&(D=" "+Date.prototype.toUTCString.call(T)),J(T)&&(D=" "+u(T)),R.length!==0||Y&&T.length!=0?C<0?B(T)?a.stylize(RegExp.prototype.toString.call(T),"regexp"):a.stylize("[Object]","special"):(a.seen.push(T),ie=Y?function(W,ae,re,le,ke){for(var ge=[],be=0,je=ae.length;be<je;++be)n(ae,String(be))?ge.push(w(W,ae,re,le,String(be),!0)):ge.push("");return ke.forEach(function(xe){xe.match(/^\d+$/)||ge.push(w(W,ae,re,le,xe,!0))}),ge}(a,T,C,F,R):R.map(function(W){return w(a,T,C,F,W,Y)}),a.seen.pop(),function(W,ae,re){return W.reduce(function(le,ke){return ke.indexOf(`
|
|
116
|
+
`),le+ke.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?re[0]+(ae===""?"":ae+`
|
|
117
|
+
`)+" "+W.join(`,
|
|
118
|
+
`)+" "+re[1]:re[0]+ae+" "+W.join(", ")+" "+re[1]}(ie,D,z)):z[0]+D+z[1]}function u(a){return"["+Error.prototype.toString.call(a)+"]"}function w(a,T,C,N,O,R){var F,Z,ie;if((ie=Object.getOwnPropertyDescriptor(T,O)||{value:T[O]}).get?Z=ie.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"):ie.set&&(Z=a.stylize("[Setter]","special")),n(N,O)||(F="["+O+"]"),Z||(a.seen.indexOf(ie.value)<0?(Z=A(C)?h(a,ie.value,null):h(a,ie.value,C-1)).indexOf(`
|
|
119
|
+
`)>-1&&(Z=R?Z.split(`
|
|
120
|
+
`).map(function(D){return" "+D}).join(`
|
|
121
|
+
`).slice(2):`
|
|
122
|
+
`+Z.split(`
|
|
123
|
+
`).map(function(D){return" "+D}).join(`
|
|
124
|
+
`)):Z=a.stylize("[Circular]","special")),P(F)){if(R&&O.match(/^\d+$/))return Z;(F=JSON.stringify(""+O)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(F=F.slice(1,-1),F=a.stylize(F,"name")):(F=F.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),F=a.stylize(F,"string"))}return F+": "+Z}function b(a){return Array.isArray(a)}function k(a){return typeof a=="boolean"}function A(a){return a===null}function x(a){return typeof a=="number"}function j(a){return typeof a=="string"}function P(a){return a===void 0}function B(a){return $(a)&&e(a)==="[object RegExp]"}function $(a){return typeof a=="object"&&a!==null}function te(a){return $(a)&&e(a)==="[object Date]"}function J(a){return $(a)&&(e(a)==="[object Error]"||a instanceof Error)}function oe(a){return typeof a=="function"}function e(a){return Object.prototype.toString.call(a)}function r(a){return a<10?"0"+a.toString(10):a.toString(10)}_.debuglog=function(a){if(a=a.toUpperCase(),!s[a])if(p.test(a)){var T=M.pid;s[a]=function(){var C=_.format.apply(_,arguments);v.error("%s %d: %s",a,T,C)}}else s[a]=function(){};return s[a]},_.inspect=l,l.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]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},_.types=y(5955),_.isArray=b,_.isBoolean=k,_.isNull=A,_.isNullOrUndefined=function(a){return a==null},_.isNumber=x,_.isString=j,_.isSymbol=function(a){return typeof a=="symbol"},_.isUndefined=P,_.isRegExp=B,_.types.isRegExp=B,_.isObject=$,_.isDate=te,_.types.isDate=te,_.isError=J,_.types.isNativeError=J,_.isFunction=oe,_.isPrimitive=function(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||a===void 0},_.isBuffer=y(384);var i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function n(a,T){return Object.prototype.hasOwnProperty.call(a,T)}_.log=function(){var a,T;v.log("%s - %s",(T=[r((a=new Date).getHours()),r(a.getMinutes()),r(a.getSeconds())].join(":"),[a.getDate(),i[a.getMonth()],T].join(" ")),_.format.apply(_,arguments))},_.inherits=y(5717),_._extend=function(a,T){if(!T||!$(T))return a;for(var C=Object.keys(T),N=C.length;N--;)a[C[N]]=T[C[N]];return a};var t=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function o(a,T){if(!a){var C=new Error("Promise was rejected with a falsy value");C.reason=a,a=C}return T(a)}_.promisify=function(a){if(typeof a!="function")throw new TypeError('The "original" argument must be of type Function');if(t&&a[t]){var T;if(typeof(T=a[t])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(T,t,{value:T,enumerable:!1,writable:!1,configurable:!0}),T}function T(){for(var C,N,O=new Promise(function(Z,ie){C=Z,N=ie}),R=[],F=0;F<arguments.length;F++)R.push(arguments[F]);R.push(function(Z,ie){Z?N(Z):C(ie)});try{a.apply(this,R)}catch(Z){N(Z)}return O}return Object.setPrototypeOf(T,Object.getPrototypeOf(a)),t&&Object.defineProperty(T,t,{value:T,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(T,m(a))},_.promisify.custom=t,_.callbackify=function(a){if(typeof a!="function")throw new TypeError('The "original" argument must be of type Function');function T(){for(var C=[],N=0;N<arguments.length;N++)C.push(arguments[N]);var O=C.pop();if(typeof O!="function")throw new TypeError("The last argument must be of type Function");var R=this,F=function(){return O.apply(R,arguments)};a.apply(this,C).then(function(Z){M.nextTick(F.bind(null,null,Z))},function(Z){M.nextTick(o.bind(null,Z,F))})}return Object.setPrototypeOf(T,Object.getPrototypeOf(a)),Object.defineProperties(T,m(a)),T}},7259:(H,_,y)=>{_.TextEncoder=typeof TextEncoder<"u"?TextEncoder:y(9539).TextEncoder,_.TextDecoder=typeof TextDecoder<"u"?TextDecoder:y(9539).TextDecoder},6430:(H,_,y)=>{var M=y(4029),v=y(3083),m=y(1924),E=y(7296),s=m("Object.prototype.toString"),p=y(6410)(),c=typeof globalThis>"u"?y.g:globalThis,l=v(),f=m("String.prototype.slice"),g={},h=Object.getPrototypeOf;p&&E&&h&&M(l,function(w){if(typeof c[w]=="function"){var b=new c[w];if(Symbol.toStringTag in b){var k=h(b),A=E(k,Symbol.toStringTag);if(!A){var x=h(k);A=E(x,Symbol.toStringTag)}g[w]=A.get}}});var u=y(5692);H.exports=function(w){return!!u(w)&&(p&&Symbol.toStringTag in w?function(b){var k=!1;return M(g,function(A,x){if(!k)try{var j=A.call(b);j===x&&(k=j)}catch{}}),k}(w):f(s(w),8,-1))}},255:H=>{var _={"&":"&",'"':""","'":"'","<":"<",">":">"};H.exports=function(y){return y&&y.replace?y.replace(/([&"<>'])/g,function(M,v){return _[v]}):y}},3479:(H,_,y)=>{var M=y(4155),v=y(255),m=y(2830).Stream;function E(p,c,l){l=l||0;var f,g,h=(f=c,new Array(l||0).join(f||"")),u=p;if(typeof p=="object"&&(u=p[g=Object.keys(p)[0]])&&u._elem)return u._elem.name=g,u._elem.icount=l,u._elem.indent=c,u._elem.indents=h,u._elem.interrupt=u,u._elem;var w,b=[],k=[];function A(x){Object.keys(x).forEach(function(j){b.push(function(P,B){return P+'="'+v(B)+'"'}(j,x[j]))})}switch(typeof u){case"object":if(u===null)break;u._attr&&A(u._attr),u._cdata&&k.push(("<![CDATA["+u._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),u.forEach&&(w=!1,k.push(""),u.forEach(function(x){typeof x=="object"?Object.keys(x)[0]=="_attr"?A(x._attr):k.push(E(x,c,l+1)):(k.pop(),w=!0,k.push(v(x)))}),w||k.push(""));break;default:k.push(v(u))}return{name:g,interrupt:!1,attributes:b,content:k,icount:l,indents:h,indent:c}}function s(p,c,l){if(typeof c!="object")return p(!1,c);var f=c.interrupt?1:c.content.length;function g(){for(;c.content.length;){var u=c.content.shift();if(u!==void 0){if(h(u))return;s(p,u)}}p(!1,(f>1?c.indents:"")+(c.name?"</"+c.name+">":"")+(c.indent&&!l?`
|
|
125
|
+
`:"")),l&&l()}function h(u){return!!u.interrupt&&(u.interrupt.append=p,u.interrupt.end=g,u.interrupt=!1,p(!0),!0)}if(p(!1,c.indents+(c.name?"<"+c.name:"")+(c.attributes.length?" "+c.attributes.join(" "):"")+(f?c.name?">":"":c.name?"/>":"")+(c.indent&&f>1?`
|
|
126
|
+
`:"")),!f)return p(!1,c.indent?`
|
|
127
|
+
`:"");h(c)||g()}H.exports=function(p,c){typeof c!="object"&&(c={indent:c});var l,f,g=c.stream?new m:null,h="",u=!1,w=c.indent?c.indent===!0?" ":c.indent:"",b=!0;function k(P){b?M.nextTick(P):P()}function A(P,B){if(B!==void 0&&(h+=B),P&&!u&&(g=g||new m,u=!0),P&&u){var $=h;k(function(){g.emit("data",$)}),h=""}}function x(P,B){s(A,E(P,w,w?1:0),B)}function j(){if(g){var P=h;k(function(){g.emit("data",P),g.emit("end"),g.readable=!1,g.emit("close")})}}return k(function(){b=!1}),c.declaration&&(f={version:"1.0",encoding:(l=c.declaration).encoding||"UTF-8"},l.standalone&&(f.standalone=l.standalone),x({"?xml":{_attr:f}}),h=h.replace("/>","?>")),p&&p.forEach?p.forEach(function(P,B){var $;B+1===p.length&&($=j),x(P,$)}):x(p,j),g?(g.readable=!0,g):h},H.exports.element=H.exports.Element=function(){return{_elem:E(Array.prototype.slice.call(arguments)),push:function(p){if(!this.append)throw new Error("not assigned to a parent!");var c=this,l=this._elem.indent;s(this.append,E(p,l,this._elem.icount+(l?1:0)),function(){c.append(!0)})},close:function(p){p!==void 0&&this.push(p),this.end&&this.end()}}}},306:function(H,_){(function(){_.stripBOM=function(y){return y[0]==="\uFEFF"?y.substring(1):y}}).call(this)},4096:function(H,_,y){(function(){var M,v,m,E,s,p={}.hasOwnProperty;M=y(5532),v=y(8381).defaults,E=function(c){return typeof c=="string"&&(c.indexOf("&")>=0||c.indexOf(">")>=0||c.indexOf("<")>=0)},s=function(c){return"<![CDATA["+m(c)+"]]>"},m=function(c){return c.replace("]]>","]]]]><![CDATA[>")},_.Builder=function(){function c(l){var f,g,h;for(f in this.options={},g=v[.2])p.call(g,f)&&(h=g[f],this.options[f]=h);for(f in l)p.call(l,f)&&(h=l[f],this.options[f]=h)}return c.prototype.buildObject=function(l){var f,g,h,u,w,b;return f=this.options.attrkey,g=this.options.charkey,Object.keys(l).length===1&&this.options.rootName===v[.2].rootName?l=l[w=Object.keys(l)[0]]:w=this.options.rootName,b=this,h=function(k,A){var x,j,P,B,$,te;if(typeof A!="object")b.options.cdata&&E(A)?k.raw(s(A)):k.txt(A);else if(Array.isArray(A)){for(B in A)if(p.call(A,B))for($ in j=A[B])P=j[$],k=h(k.ele($),P).up()}else for($ in A)if(p.call(A,$))if(j=A[$],$===f){if(typeof j=="object")for(x in j)te=j[x],k=k.att(x,te)}else if($===g)k=b.options.cdata&&E(j)?k.raw(s(j)):k.txt(j);else if(Array.isArray(j))for(B in j)p.call(j,B)&&(k=typeof(P=j[B])=="string"?b.options.cdata&&E(P)?k.ele($).raw(s(P)).up():k.ele($,P).up():h(k.ele($),P).up());else typeof j=="object"?k=h(k.ele($),j).up():typeof j=="string"&&b.options.cdata&&E(j)?k=k.ele($).raw(s(j)).up():(j==null&&(j=""),k=k.ele($,j.toString()).up());return k},u=M.create(w,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),h(u,l).end(this.options.renderOpts)},c}()}).call(this)},8381:function(H,_){(function(){_.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
128
|
+
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},9082:function(H,_,y){(function(){var M,v,m,E,s,p,c,l,f=function(h,u){return function(){return h.apply(u,arguments)}},g={}.hasOwnProperty;c=y(6099),m=y(7187),M=y(306),p=y(7526),l=y(5475).setImmediate,v=y(8381).defaults,E=function(h){return typeof h=="object"&&h!=null&&Object.keys(h).length===0},s=function(h,u,w){var b,k;for(b=0,k=h.length;b<k;b++)u=(0,h[b])(u,w);return u},_.Parser=function(h){function u(w){var b,k,A;if(this.parseStringPromise=f(this.parseStringPromise,this),this.parseString=f(this.parseString,this),this.reset=f(this.reset,this),this.assignOrPush=f(this.assignOrPush,this),this.processAsync=f(this.processAsync,this),!(this instanceof _.Parser))return new _.Parser(w);for(b in this.options={},k=v[.2])g.call(k,b)&&(A=k[b],this.options[b]=A);for(b in w)g.call(w,b)&&(A=w[b],this.options[b]=A);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(p.normalize)),this.reset()}return function(w,b){for(var k in b)g.call(b,k)&&(w[k]=b[k]);function A(){this.constructor=w}A.prototype=b.prototype,w.prototype=new A,w.__super__=b.prototype}(u,h),u.prototype.processAsync=function(){var w,b;try{return this.remaining.length<=this.options.chunkSize?(w=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(w),this.saxParser.close()):(w=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(w),l(this.processAsync))}catch(k){if(b=k,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(b)}},u.prototype.assignOrPush=function(w,b,k){return b in w?(w[b]instanceof Array||(w[b]=[w[b]]),w[b].push(k)):this.options.explicitArray?w[b]=[k]:w[b]=k},u.prototype.reset=function(){var w,b,k,A,x;return this.removeAllListeners(),this.saxParser=c.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(x=this,function(j){if(x.saxParser.resume(),!x.saxParser.errThrown)return x.saxParser.errThrown=!0,x.emit("error",j)}),this.saxParser.onend=function(j){return function(){if(!j.saxParser.ended)return j.saxParser.ended=!0,j.emit("end",j.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,A=[],w=this.options.attrkey,b=this.options.charkey,this.saxParser.onopentag=function(j){return function(P){var B,$,te,J,oe;if((te={})[b]="",!j.options.ignoreAttrs)for(B in oe=P.attributes)g.call(oe,B)&&(w in te||j.options.mergeAttrs||(te[w]={}),$=j.options.attrValueProcessors?s(j.options.attrValueProcessors,P.attributes[B],B):P.attributes[B],J=j.options.attrNameProcessors?s(j.options.attrNameProcessors,B):B,j.options.mergeAttrs?j.assignOrPush(te,J,$):te[w][J]=$);return te["#name"]=j.options.tagNameProcessors?s(j.options.tagNameProcessors,P.name):P.name,j.options.xmlns&&(te[j.options.xmlnskey]={uri:P.uri,local:P.local}),A.push(te)}}(this),this.saxParser.onclosetag=function(j){return function(){var P,B,$,te,J,oe,e,r,i,n;if(oe=A.pop(),J=oe["#name"],j.options.explicitChildren&&j.options.preserveChildrenOrder||delete oe["#name"],oe.cdata===!0&&(P=oe.cdata,delete oe.cdata),i=A[A.length-1],oe[b].match(/^\s*$/)&&!P?(B=oe[b],delete oe[b]):(j.options.trim&&(oe[b]=oe[b].trim()),j.options.normalize&&(oe[b]=oe[b].replace(/\s{2,}/g," ").trim()),oe[b]=j.options.valueProcessors?s(j.options.valueProcessors,oe[b],J):oe[b],Object.keys(oe).length===1&&b in oe&&!j.EXPLICIT_CHARKEY&&(oe=oe[b])),E(oe)&&(oe=j.options.emptyTag!==""?j.options.emptyTag:B),j.options.validator!=null&&(n="/"+function(){var t,o,a;for(a=[],t=0,o=A.length;t<o;t++)te=A[t],a.push(te["#name"]);return a}().concat(J).join("/"),function(){var t;try{oe=j.options.validator(n,i&&i[J],oe)}catch(o){return t=o,j.emit("error",t)}}()),j.options.explicitChildren&&!j.options.mergeAttrs&&typeof oe=="object")if(j.options.preserveChildrenOrder){if(i){for($ in i[j.options.childkey]=i[j.options.childkey]||[],e={},oe)g.call(oe,$)&&(e[$]=oe[$]);i[j.options.childkey].push(e),delete oe["#name"],Object.keys(oe).length===1&&b in oe&&!j.EXPLICIT_CHARKEY&&(oe=oe[b])}}else te={},j.options.attrkey in oe&&(te[j.options.attrkey]=oe[j.options.attrkey],delete oe[j.options.attrkey]),!j.options.charsAsChildren&&j.options.charkey in oe&&(te[j.options.charkey]=oe[j.options.charkey],delete oe[j.options.charkey]),Object.getOwnPropertyNames(oe).length>0&&(te[j.options.childkey]=oe),oe=te;return A.length>0?j.assignOrPush(i,J,oe):(j.options.explicitRoot&&(r=oe,(oe={})[J]=r),j.resultObject=oe,j.saxParser.ended=!0,j.emit("end",j.resultObject))}}(this),k=function(j){return function(P){var B,$;if($=A[A.length-1])return $[b]+=P,j.options.explicitChildren&&j.options.preserveChildrenOrder&&j.options.charsAsChildren&&(j.options.includeWhiteChars||P.replace(/\\n/g,"").trim()!=="")&&($[j.options.childkey]=$[j.options.childkey]||[],(B={"#name":"__text__"})[b]=P,j.options.normalize&&(B[b]=B[b].replace(/\s{2,}/g," ").trim()),$[j.options.childkey].push(B)),$}}(this),this.saxParser.ontext=k,this.saxParser.oncdata=function(j){var P;if(P=k(j))return P.cdata=!0}},u.prototype.parseString=function(w,b){var k;b!=null&&typeof b=="function"&&(this.on("end",function(A){return this.reset(),b(null,A)}),this.on("error",function(A){return this.reset(),b(A)}));try{return(w=w.toString()).trim()===""?(this.emit("end",null),!0):(w=M.stripBOM(w),this.options.async?(this.remaining=w,l(this.processAsync),this.saxParser):this.saxParser.write(w).close())}catch(A){if(k=A,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",k),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw k}},u.prototype.parseStringPromise=function(w){return new Promise((b=this,function(k,A){return b.parseString(w,function(x,j){return x?A(x):k(j)})}));var b},u}(m),_.parseString=function(h,u,w){var b,k;return w!=null?(typeof w=="function"&&(b=w),typeof u=="object"&&(k=u)):(typeof u=="function"&&(b=u),k={}),new _.Parser(k).parseString(h,b)},_.parseStringPromise=function(h,u){var w;return typeof u=="object"&&(w=u),new _.Parser(w).parseStringPromise(h)}}).call(this)},7526:function(H,_){(function(){var y;y=new RegExp(/(?!xmlns)^.*:/),_.normalize=function(M){return M.toLowerCase()},_.firstCharLowerCase=function(M){return M.charAt(0).toLowerCase()+M.slice(1)},_.stripPrefix=function(M){return M.replace(y,"")},_.parseNumbers=function(M){return isNaN(M)||(M=M%1==0?parseInt(M,10):parseFloat(M)),M},_.parseBooleans=function(M){return/^(?:true|false)$/i.test(M)&&(M=M.toLowerCase()==="true"),M}}).call(this)},5055:function(H,_,y){(function(){var M,v,m,E,s={}.hasOwnProperty;v=y(8381),M=y(4096),m=y(9082),E=y(7526),_.defaults=v.defaults,_.processors=E,_.ValidationError=function(p){function c(l){this.message=l}return function(l,f){for(var g in f)s.call(f,g)&&(l[g]=f[g]);function h(){this.constructor=l}h.prototype=f.prototype,l.prototype=new h,l.__super__=f.prototype}(c,Error),c}(),_.Builder=M.Builder,_.Parser=m.Parser,_.parseString=m.parseString,_.parseStringPromise=m.parseStringPromise}).call(this)},7557:function(H){(function(){H.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},9335:function(H){(function(){H.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},8369:function(H){(function(){var _,y,M,v,m,E,s,p=[].slice,c={}.hasOwnProperty;_=function(){var l,f,g,h,u,w;if(w=arguments[0],u=2<=arguments.length?p.call(arguments,1):[],m(Object.assign))Object.assign.apply(null,arguments);else for(l=0,g=u.length;l<g;l++)if((h=u[l])!=null)for(f in h)c.call(h,f)&&(w[f]=h[f]);return w},m=function(l){return!!l&&Object.prototype.toString.call(l)==="[object Function]"},E=function(l){var f;return!!l&&((f=typeof l)=="function"||f==="object")},M=function(l){return m(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"},v=function(l){var f;if(M(l))return!l.length;for(f in l)if(c.call(l,f))return!1;return!0},s=function(l){var f,g;return E(l)&&(g=Object.getPrototypeOf(l))&&(f=g.constructor)&&typeof f=="function"&&f instanceof f&&Function.prototype.toString.call(f)===Function.prototype.toString.call(Object)},y=function(l){return m(l.valueOf)?l.valueOf():l},H.exports.assign=_,H.exports.isFunction=m,H.exports.isObject=E,H.exports.isArray=M,H.exports.isEmpty=v,H.exports.isPlainObject=s,H.exports.getValue=y}).call(this)},594:function(H){(function(){H.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},2750:function(H,_,y){(function(){var M;M=y(9335),y(2026),H.exports=function(){function v(m,E,s){if(this.parent=m,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),E==null)throw new Error("Missing attribute name. "+this.debugInfo(E));this.name=this.stringify.name(E),this.value=this.stringify.attValue(s),this.type=M.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(v.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(v.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(v.prototype,"textContent",{get:function(){return this.value},set:function(m){return this.value=m||""}}),Object.defineProperty(v.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(v.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(v.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(v.prototype,"specified",{get:function(){return!0}}),v.prototype.clone=function(){return Object.create(this)},v.prototype.toString=function(m){return this.options.writer.attribute(this,this.options.writer.filterOptions(m))},v.prototype.debugInfo=function(m){return(m=m||this.name)==null?"parent: <"+this.parent.name+">":"attribute: {"+m+"}, parent: <"+this.parent.name+">"},v.prototype.isEqualNode=function(m){return m.namespaceURI===this.namespaceURI&&m.prefix===this.prefix&&m.localName===this.localName&&m.value===this.value},v}()}).call(this)},6170:function(H,_,y){(function(){var M,v,m={}.hasOwnProperty;M=y(9335),v=y(6488),H.exports=function(E){function s(p,c){if(s.__super__.constructor.call(this,p),c==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=M.CData,this.value=this.stringify.cdata(c)}return function(p,c){for(var l in c)m.call(c,l)&&(p[l]=c[l]);function f(){this.constructor=p}f.prototype=c.prototype,p.prototype=new f,p.__super__=c.prototype}(s,E),s.prototype.clone=function(){return Object.create(this)},s.prototype.toString=function(p){return this.options.writer.cdata(this,this.options.writer.filterOptions(p))},s}(v)}).call(this)},6488:function(H,_,y){(function(){var M,v={}.hasOwnProperty;M=y(2026),H.exports=function(m){function E(s){E.__super__.constructor.call(this,s),this.value=""}return function(s,p){for(var c in p)v.call(p,c)&&(s[c]=p[c]);function l(){this.constructor=s}l.prototype=p.prototype,s.prototype=new l,s.__super__=p.prototype}(E,m),Object.defineProperty(E.prototype,"data",{get:function(){return this.value},set:function(s){return this.value=s||""}}),Object.defineProperty(E.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(E.prototype,"textContent",{get:function(){return this.value},set:function(s){return this.value=s||""}}),E.prototype.clone=function(){return Object.create(this)},E.prototype.substringData=function(s,p){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.appendData=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.insertData=function(s,p){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.deleteData=function(s,p){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.replaceData=function(s,p,c){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.isEqualNode=function(s){return!!E.__super__.isEqualNode.apply(this,arguments).isEqualNode(s)&&s.data===this.data},E}(M)}).call(this)},2096:function(H,_,y){(function(){var M,v,m={}.hasOwnProperty;M=y(9335),v=y(6488),H.exports=function(E){function s(p,c){if(s.__super__.constructor.call(this,p),c==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=M.Comment,this.value=this.stringify.comment(c)}return function(p,c){for(var l in c)m.call(c,l)&&(p[l]=c[l]);function f(){this.constructor=p}f.prototype=c.prototype,p.prototype=new f,p.__super__=c.prototype}(s,E),s.prototype.clone=function(){return Object.create(this)},s.prototype.toString=function(p){return this.options.writer.comment(this,this.options.writer.filterOptions(p))},s}(v)}).call(this)},383:function(H,_,y){(function(){var M,v;M=y(3933),v=y(6210),H.exports=function(){function m(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new M,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(m.prototype,"parameterNames",{get:function(){return new v(Object.keys(this.defaultParams))}}),m.prototype.getParameter=function(E){return this.params.hasOwnProperty(E)?this.params[E]:null},m.prototype.canSetParameter=function(E,s){return!0},m.prototype.setParameter=function(E,s){return s!=null?this.params[E]=s:delete this.params[E]},m}()}).call(this)},3933:function(H){(function(){H.exports=function(){function _(){}return _.prototype.handleError=function(y){throw new Error(y)},_}()}).call(this)},1770:function(H){(function(){H.exports=function(){function _(){}return _.prototype.hasFeature=function(y,M){return!0},_.prototype.createDocumentType=function(y,M,v){throw new Error("This DOM method is not implemented.")},_.prototype.createDocument=function(y,M,v){throw new Error("This DOM method is not implemented.")},_.prototype.createHTMLDocument=function(y){throw new Error("This DOM method is not implemented.")},_.prototype.getFeature=function(y,M){throw new Error("This DOM method is not implemented.")},_}()}).call(this)},6210:function(H){(function(){H.exports=function(){function _(y){this.arr=y||[]}return Object.defineProperty(_.prototype,"length",{get:function(){return this.arr.length}}),_.prototype.item=function(y){return this.arr[y]||null},_.prototype.contains=function(y){return this.arr.indexOf(y)!==-1},_}()}).call(this)},1179:function(H,_,y){(function(){var M,v,m={}.hasOwnProperty;v=y(2026),M=y(9335),H.exports=function(E){function s(p,c,l,f,g,h){if(s.__super__.constructor.call(this,p),c==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(l==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(c));if(!f)throw new Error("Missing DTD attribute type. "+this.debugInfo(c));if(!g)throw new Error("Missing DTD attribute default. "+this.debugInfo(c));if(g.indexOf("#")!==0&&(g="#"+g),!g.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(c));if(h&&!g.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(c));this.elementName=this.stringify.name(c),this.type=M.AttributeDeclaration,this.attributeName=this.stringify.name(l),this.attributeType=this.stringify.dtdAttType(f),h&&(this.defaultValue=this.stringify.dtdAttDefault(h)),this.defaultValueType=g}return function(p,c){for(var l in c)m.call(c,l)&&(p[l]=c[l]);function f(){this.constructor=p}f.prototype=c.prototype,p.prototype=new f,p.__super__=c.prototype}(s,E),s.prototype.toString=function(p){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(p))},s}(v)}).call(this)},6347:function(H,_,y){(function(){var M,v,m={}.hasOwnProperty;v=y(2026),M=y(9335),H.exports=function(E){function s(p,c,l){if(s.__super__.constructor.call(this,p),c==null)throw new Error("Missing DTD element name. "+this.debugInfo());l||(l="(#PCDATA)"),Array.isArray(l)&&(l="("+l.join(",")+")"),this.name=this.stringify.name(c),this.type=M.ElementDeclaration,this.value=this.stringify.dtdElementValue(l)}return function(p,c){for(var l in c)m.call(c,l)&&(p[l]=c[l]);function f(){this.constructor=p}f.prototype=c.prototype,p.prototype=new f,p.__super__=c.prototype}(s,E),s.prototype.toString=function(p){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(p))},s}(v)}).call(this)},9078:function(H,_,y){(function(){var M,v,m,E={}.hasOwnProperty;m=y(8369).isObject,v=y(2026),M=y(9335),H.exports=function(s){function p(c,l,f,g){if(p.__super__.constructor.call(this,c),f==null)throw new Error("Missing DTD entity name. "+this.debugInfo(f));if(g==null)throw new Error("Missing DTD entity value. "+this.debugInfo(f));if(this.pe=!!l,this.name=this.stringify.name(f),this.type=M.EntityDeclaration,m(g)){if(!g.pubID&&!g.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(f));if(g.pubID&&!g.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(f));if(this.internal=!1,g.pubID!=null&&(this.pubID=this.stringify.dtdPubID(g.pubID)),g.sysID!=null&&(this.sysID=this.stringify.dtdSysID(g.sysID)),g.nData!=null&&(this.nData=this.stringify.dtdNData(g.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(f))}else this.value=this.stringify.dtdEntityValue(g),this.internal=!0}return function(c,l){for(var f in l)E.call(l,f)&&(c[f]=l[f]);function g(){this.constructor=c}g.prototype=l.prototype,c.prototype=new g,c.__super__=l.prototype}(p,s),Object.defineProperty(p.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(p.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(p.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(p.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(p.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(p.prototype,"xmlVersion",{get:function(){return null}}),p.prototype.toString=function(c){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(c))},p}(v)}).call(this)},4777:function(H,_,y){(function(){var M,v,m={}.hasOwnProperty;v=y(2026),M=y(9335),H.exports=function(E){function s(p,c,l){if(s.__super__.constructor.call(this,p),c==null)throw new Error("Missing DTD notation name. "+this.debugInfo(c));if(!l.pubID&&!l.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(c));this.name=this.stringify.name(c),this.type=M.NotationDeclaration,l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID))}return function(p,c){for(var l in c)m.call(c,l)&&(p[l]=c[l]);function f(){this.constructor=p}f.prototype=c.prototype,p.prototype=new f,p.__super__=c.prototype}(s,E),Object.defineProperty(s.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(s.prototype,"systemId",{get:function(){return this.sysID}}),s.prototype.toString=function(p){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(p))},s}(v)}).call(this)},9077:function(H,_,y){(function(){var M,v,m,E={}.hasOwnProperty;m=y(8369).isObject,v=y(2026),M=y(9335),H.exports=function(s){function p(c,l,f,g){var h;p.__super__.constructor.call(this,c),m(l)&&(l=(h=l).version,f=h.encoding,g=h.standalone),l||(l="1.0"),this.type=M.Declaration,this.version=this.stringify.xmlVersion(l),f!=null&&(this.encoding=this.stringify.xmlEncoding(f)),g!=null&&(this.standalone=this.stringify.xmlStandalone(g))}return function(c,l){for(var f in l)E.call(l,f)&&(c[f]=l[f]);function g(){this.constructor=c}g.prototype=l.prototype,c.prototype=new g,c.__super__=l.prototype}(p,s),p.prototype.toString=function(c){return this.options.writer.declaration(this,this.options.writer.filterOptions(c))},p}(v)}).call(this)},6544:function(H,_,y){(function(){var M,v,m,E,s,p,c,l,f={}.hasOwnProperty;l=y(8369).isObject,c=y(2026),M=y(9335),v=y(1179),E=y(9078),m=y(6347),s=y(4777),p=y(663),H.exports=function(g){function h(u,w,b){var k,A,x,j,P,B;if(h.__super__.constructor.call(this,u),this.type=M.DocType,u.children){for(A=0,x=(j=u.children).length;A<x;A++)if((k=j[A]).type===M.Element){this.name=k.name;break}}this.documentObject=u,l(w)&&(w=(P=w).pubID,b=P.sysID),b==null&&(b=(B=[w,b])[0],w=B[1]),w!=null&&(this.pubID=this.stringify.dtdPubID(w)),b!=null&&(this.sysID=this.stringify.dtdSysID(b))}return function(u,w){for(var b in w)f.call(w,b)&&(u[b]=w[b]);function k(){this.constructor=u}k.prototype=w.prototype,u.prototype=new k,u.__super__=w.prototype}(h,g),Object.defineProperty(h.prototype,"entities",{get:function(){var u,w,b,k,A;for(k={},w=0,b=(A=this.children).length;w<b;w++)(u=A[w]).type!==M.EntityDeclaration||u.pe||(k[u.name]=u);return new p(k)}}),Object.defineProperty(h.prototype,"notations",{get:function(){var u,w,b,k,A;for(k={},w=0,b=(A=this.children).length;w<b;w++)(u=A[w]).type===M.NotationDeclaration&&(k[u.name]=u);return new p(k)}}),Object.defineProperty(h.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(h.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(h.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),h.prototype.element=function(u,w){var b;return b=new m(this,u,w),this.children.push(b),this},h.prototype.attList=function(u,w,b,k,A){var x;return x=new v(this,u,w,b,k,A),this.children.push(x),this},h.prototype.entity=function(u,w){var b;return b=new E(this,!1,u,w),this.children.push(b),this},h.prototype.pEntity=function(u,w){var b;return b=new E(this,!0,u,w),this.children.push(b),this},h.prototype.notation=function(u,w){var b;return b=new s(this,u,w),this.children.push(b),this},h.prototype.toString=function(u){return this.options.writer.docType(this,this.options.writer.filterOptions(u))},h.prototype.ele=function(u,w){return this.element(u,w)},h.prototype.att=function(u,w,b,k,A){return this.attList(u,w,b,k,A)},h.prototype.ent=function(u,w){return this.entity(u,w)},h.prototype.pent=function(u,w){return this.pEntity(u,w)},h.prototype.not=function(u,w){return this.notation(u,w)},h.prototype.up=function(){return this.root()||this.documentObject},h.prototype.isEqualNode=function(u){return!!h.__super__.isEqualNode.apply(this,arguments).isEqualNode(u)&&u.name===this.name&&u.publicId===this.publicId&&u.systemId===this.systemId},h}(c)}).call(this)},6934:function(H,_,y){(function(){var M,v,m,E,s,p,c,l={}.hasOwnProperty;c=y(8369).isPlainObject,m=y(1770),v=y(383),E=y(2026),M=y(9335),p=y(5549),s=y(6434),H.exports=function(f){function g(h){g.__super__.constructor.call(this,null),this.name="#document",this.type=M.Document,this.documentURI=null,this.domConfig=new v,h||(h={}),h.writer||(h.writer=new s),this.options=h,this.stringify=new p(h)}return function(h,u){for(var w in u)l.call(u,w)&&(h[w]=u[w]);function b(){this.constructor=h}b.prototype=u.prototype,h.prototype=new b,h.__super__=u.prototype}(g,f),Object.defineProperty(g.prototype,"implementation",{value:new m}),Object.defineProperty(g.prototype,"doctype",{get:function(){var h,u,w,b;for(u=0,w=(b=this.children).length;u<w;u++)if((h=b[u]).type===M.DocType)return h;return null}}),Object.defineProperty(g.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(g.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(g.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(g.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===M.Declaration?this.children[0].encoding:null}}),Object.defineProperty(g.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===M.Declaration&&this.children[0].standalone==="yes"}}),Object.defineProperty(g.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===M.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(g.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(g.prototype,"origin",{get:function(){return null}}),Object.defineProperty(g.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(g.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(g.prototype,"contentType",{get:function(){return null}}),g.prototype.end=function(h){var u;return u={},h?c(h)&&(u=h,h=this.options.writer):h=this.options.writer,h.document(this,h.filterOptions(u))},g.prototype.toString=function(h){return this.options.writer.document(this,this.options.writer.filterOptions(h))},g.prototype.createElement=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createTextNode=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createComment=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createCDATASection=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createProcessingInstruction=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createAttribute=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createEntityReference=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByTagName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.importNode=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createElementNS=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createAttributeNS=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByTagNameNS=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementById=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.adoptNode=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.renameNode=function(h,u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByClassName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createEvent=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createNodeIterator=function(h,u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createTreeWalker=function(h,u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},g}(E)}).call(this)},9227:function(H,_,y){(function(){var M,v,m,E,s,p,c,l,f,g,h,u,w,b,k,A,x,j,P,B,$,te,J,oe={}.hasOwnProperty;J=y(8369),$=J.isObject,B=J.isFunction,te=J.isPlainObject,P=J.getValue,M=y(9335),u=y(6934),w=y(2161),E=y(6170),s=y(2096),k=y(9406),j=y(3595),b=y(9181),g=y(9077),h=y(6544),p=y(1179),l=y(9078),c=y(6347),f=y(4777),m=y(2750),x=y(5549),A=y(6434),v=y(594),H.exports=function(){function e(r,i,n){var t;this.name="?xml",this.type=M.Document,r||(r={}),t={},r.writer?te(r.writer)&&(t=r.writer,r.writer=new A):r.writer=new A,this.options=r,this.writer=r.writer,this.writerOptions=this.writer.filterOptions(t),this.stringify=new x(r),this.onDataCallback=i||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return e.prototype.createChildNode=function(r){var i,n,t,o,a,T,C,N;switch(r.type){case M.CData:this.cdata(r.value);break;case M.Comment:this.comment(r.value);break;case M.Element:for(n in t={},C=r.attribs)oe.call(C,n)&&(i=C[n],t[n]=i.value);this.node(r.name,t);break;case M.Dummy:this.dummy();break;case M.Raw:this.raw(r.value);break;case M.Text:this.text(r.value);break;case M.ProcessingInstruction:this.instruction(r.target,r.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+r.constructor.name)}for(a=0,T=(N=r.children).length;a<T;a++)o=N[a],this.createChildNode(o),o.type===M.Element&&this.up();return this},e.prototype.dummy=function(){return this},e.prototype.node=function(r,i,n){var t;if(r==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(r));return this.openCurrent(),r=P(r),i==null&&(i={}),i=P(i),$(i)||(n=(t=[i,n])[0],i=t[1]),this.currentNode=new w(this,r,i),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,n!=null&&this.text(n),this},e.prototype.element=function(r,i,n){var t,o,a,T,C,N;if(this.currentNode&&this.currentNode.type===M.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(r)||$(r)||B(r))for(T=this.options.noValidation,this.options.noValidation=!0,(N=new u(this.options).element("TEMP_ROOT")).element(r),this.options.noValidation=T,o=0,a=(C=N.children).length;o<a;o++)t=C[o],this.createChildNode(t),t.type===M.Element&&this.up();else this.node(r,i,n);return this},e.prototype.attribute=function(r,i){var n,t;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(r));if(r!=null&&(r=P(r)),$(r))for(n in r)oe.call(r,n)&&(t=r[n],this.attribute(n,t));else B(i)&&(i=i.apply()),this.options.keepNullAttributes&&i==null?this.currentNode.attribs[r]=new m(this,r,""):i!=null&&(this.currentNode.attribs[r]=new m(this,r,i));return this},e.prototype.text=function(r){var i;return this.openCurrent(),i=new j(this,r),this.onData(this.writer.text(i,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.cdata=function(r){var i;return this.openCurrent(),i=new E(this,r),this.onData(this.writer.cdata(i,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.comment=function(r){var i;return this.openCurrent(),i=new s(this,r),this.onData(this.writer.comment(i,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.raw=function(r){var i;return this.openCurrent(),i=new k(this,r),this.onData(this.writer.raw(i,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.instruction=function(r,i){var n,t,o,a,T;if(this.openCurrent(),r!=null&&(r=P(r)),i!=null&&(i=P(i)),Array.isArray(r))for(n=0,a=r.length;n<a;n++)t=r[n],this.instruction(t);else if($(r))for(t in r)oe.call(r,t)&&(o=r[t],this.instruction(t,o));else B(i)&&(i=i.apply()),T=new b(this,r,i),this.onData(this.writer.processingInstruction(T,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},e.prototype.declaration=function(r,i,n){var t;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return t=new g(this,r,i,n),this.onData(this.writer.declaration(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.doctype=function(r,i,n){if(this.openCurrent(),r==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new h(this,i,n),this.currentNode.rootNodeName=r,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},e.prototype.dtdElement=function(r,i){var n;return this.openCurrent(),n=new c(this,r,i),this.onData(this.writer.dtdElement(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.attList=function(r,i,n,t,o){var a;return this.openCurrent(),a=new p(this,r,i,n,t,o),this.onData(this.writer.dtdAttList(a,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.entity=function(r,i){var n;return this.openCurrent(),n=new l(this,!1,r,i),this.onData(this.writer.dtdEntity(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.pEntity=function(r,i){var n;return this.openCurrent(),n=new l(this,!0,r,i),this.onData(this.writer.dtdEntity(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.notation=function(r,i){var n;return this.openCurrent(),n=new f(this,r,i),this.onData(this.writer.dtdNotation(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},e.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},e.prototype.openNode=function(r){var i,n,t,o;if(!r.isOpen){if(this.root||this.currentLevel!==0||r.type!==M.Element||(this.root=r),n="",r.type===M.Element){for(t in this.writerOptions.state=v.OpenTag,n=this.writer.indent(r,this.writerOptions,this.currentLevel)+"<"+r.name,o=r.attribs)oe.call(o,t)&&(i=o[t],n+=this.writer.attribute(i,this.writerOptions,this.currentLevel));n+=(r.children?">":"/>")+this.writer.endline(r,this.writerOptions,this.currentLevel),this.writerOptions.state=v.InsideTag}else this.writerOptions.state=v.OpenTag,n=this.writer.indent(r,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+r.rootNodeName,r.pubID&&r.sysID?n+=' PUBLIC "'+r.pubID+'" "'+r.sysID+'"':r.sysID&&(n+=' SYSTEM "'+r.sysID+'"'),r.children?(n+=" [",this.writerOptions.state=v.InsideTag):(this.writerOptions.state=v.CloseTag,n+=">"),n+=this.writer.endline(r,this.writerOptions,this.currentLevel);return this.onData(n,this.currentLevel),r.isOpen=!0}},e.prototype.closeNode=function(r){var i;if(!r.isClosed)return this.writerOptions.state=v.CloseTag,i=r.type===M.Element?this.writer.indent(r,this.writerOptions,this.currentLevel)+"</"+r.name+">"+this.writer.endline(r,this.writerOptions,this.currentLevel):this.writer.indent(r,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(r,this.writerOptions,this.currentLevel),this.writerOptions.state=v.None,this.onData(i,this.currentLevel),r.isClosed=!0},e.prototype.onData=function(r,i){return this.documentStarted=!0,this.onDataCallback(r,i+1)},e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},e.prototype.debugInfo=function(r){return r==null?"":"node: <"+r+">"},e.prototype.ele=function(){return this.element.apply(this,arguments)},e.prototype.nod=function(r,i,n){return this.node(r,i,n)},e.prototype.txt=function(r){return this.text(r)},e.prototype.dat=function(r){return this.cdata(r)},e.prototype.com=function(r){return this.comment(r)},e.prototype.ins=function(r,i){return this.instruction(r,i)},e.prototype.dec=function(r,i,n){return this.declaration(r,i,n)},e.prototype.dtd=function(r,i,n){return this.doctype(r,i,n)},e.prototype.e=function(r,i,n){return this.element(r,i,n)},e.prototype.n=function(r,i,n){return this.node(r,i,n)},e.prototype.t=function(r){return this.text(r)},e.prototype.d=function(r){return this.cdata(r)},e.prototype.c=function(r){return this.comment(r)},e.prototype.r=function(r){return this.raw(r)},e.prototype.i=function(r,i){return this.instruction(r,i)},e.prototype.att=function(){return this.currentNode&&this.currentNode.type===M.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.a=function(){return this.currentNode&&this.currentNode.type===M.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.ent=function(r,i){return this.entity(r,i)},e.prototype.pent=function(r,i){return this.pEntity(r,i)},e.prototype.not=function(r,i){return this.notation(r,i)},e}()}).call(this)},8833:function(H,_,y){(function(){var M,v,m={}.hasOwnProperty;v=y(2026),M=y(9335),H.exports=function(E){function s(p){s.__super__.constructor.call(this,p),this.type=M.Dummy}return function(p,c){for(var l in c)m.call(c,l)&&(p[l]=c[l]);function f(){this.constructor=p}f.prototype=c.prototype,p.prototype=new f,p.__super__=c.prototype}(s,E),s.prototype.clone=function(){return Object.create(this)},s.prototype.toString=function(p){return""},s}(v)}).call(this)},2161:function(H,_,y){(function(){var M,v,m,E,s,p,c,l,f={}.hasOwnProperty;l=y(8369),c=l.isObject,p=l.isFunction,s=l.getValue,E=y(2026),M=y(9335),v=y(2750),m=y(663),H.exports=function(g){function h(u,w,b){var k,A,x,j;if(h.__super__.constructor.call(this,u),w==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(w),this.type=M.Element,this.attribs={},this.schemaTypeInfo=null,b!=null&&this.attribute(b),u.type===M.Document&&(this.isRoot=!0,this.documentObject=u,u.rootObject=this,u.children)){for(A=0,x=(j=u.children).length;A<x;A++)if((k=j[A]).type===M.DocType){k.name=this.name;break}}}return function(u,w){for(var b in w)f.call(w,b)&&(u[b]=w[b]);function k(){this.constructor=u}k.prototype=w.prototype,u.prototype=new k,u.__super__=w.prototype}(h,g),Object.defineProperty(h.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(h.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(h.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(h.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(h.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(h.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(h.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(h.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new m(this.attribs)),this.attributeMap}}),h.prototype.clone=function(){var u,w,b,k;for(w in(b=Object.create(this)).isRoot&&(b.documentObject=null),b.attribs={},k=this.attribs)f.call(k,w)&&(u=k[w],b.attribs[w]=u.clone());return b.children=[],this.children.forEach(function(A){var x;return(x=A.clone()).parent=b,b.children.push(x)}),b},h.prototype.attribute=function(u,w){var b,k;if(u!=null&&(u=s(u)),c(u))for(b in u)f.call(u,b)&&(k=u[b],this.attribute(b,k));else p(w)&&(w=w.apply()),this.options.keepNullAttributes&&w==null?this.attribs[u]=new v(this,u,""):w!=null&&(this.attribs[u]=new v(this,u,w));return this},h.prototype.removeAttribute=function(u){var w,b,k;if(u==null)throw new Error("Missing attribute name. "+this.debugInfo());if(u=s(u),Array.isArray(u))for(b=0,k=u.length;b<k;b++)w=u[b],delete this.attribs[w];else delete this.attribs[u];return this},h.prototype.toString=function(u){return this.options.writer.element(this,this.options.writer.filterOptions(u))},h.prototype.att=function(u,w){return this.attribute(u,w)},h.prototype.a=function(u,w){return this.attribute(u,w)},h.prototype.getAttribute=function(u){return this.attribs.hasOwnProperty(u)?this.attribs[u].value:null},h.prototype.setAttribute=function(u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getAttributeNode=function(u){return this.attribs.hasOwnProperty(u)?this.attribs[u]:null},h.prototype.setAttributeNode=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.removeAttributeNode=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementsByTagName=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getAttributeNS=function(u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.setAttributeNS=function(u,w,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.removeAttributeNS=function(u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getAttributeNodeNS=function(u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.setAttributeNodeNS=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementsByTagNameNS=function(u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.hasAttribute=function(u){return this.attribs.hasOwnProperty(u)},h.prototype.hasAttributeNS=function(u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.setIdAttribute=function(u,w){return this.attribs.hasOwnProperty(u)?this.attribs[u].isId:w},h.prototype.setIdAttributeNS=function(u,w,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.setIdAttributeNode=function(u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementsByTagName=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementsByTagNameNS=function(u,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementsByClassName=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.isEqualNode=function(u){var w,b,k;if(!h.__super__.isEqualNode.apply(this,arguments).isEqualNode(u)||u.namespaceURI!==this.namespaceURI||u.prefix!==this.prefix||u.localName!==this.localName||u.attribs.length!==this.attribs.length)return!1;for(w=b=0,k=this.attribs.length-1;0<=k?b<=k:b>=k;w=0<=k?++b:--b)if(!this.attribs[w].isEqualNode(u.attribs[w]))return!1;return!0},h}(E)}).call(this)},663:function(H){(function(){H.exports=function(){function _(y){this.nodes=y}return Object.defineProperty(_.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),_.prototype.clone=function(){return this.nodes=null},_.prototype.getNamedItem=function(y){return this.nodes[y]},_.prototype.setNamedItem=function(y){var M;return M=this.nodes[y.nodeName],this.nodes[y.nodeName]=y,M||null},_.prototype.removeNamedItem=function(y){var M;return M=this.nodes[y],delete this.nodes[y],M||null},_.prototype.item=function(y){return this.nodes[Object.keys(this.nodes)[y]]||null},_.prototype.getNamedItemNS=function(y,M){throw new Error("This DOM method is not implemented.")},_.prototype.setNamedItemNS=function(y){throw new Error("This DOM method is not implemented.")},_.prototype.removeNamedItemNS=function(y,M){throw new Error("This DOM method is not implemented.")},_}()}).call(this)},2026:function(H,_,y){(function(){var M,v,m,E,s,p,c,l,f,g,h,u,w,b,k,A,x,j={}.hasOwnProperty;x=y(8369),A=x.isObject,k=x.isFunction,b=x.isEmpty,w=x.getValue,l=null,m=null,E=null,s=null,p=null,h=null,u=null,g=null,c=null,v=null,f=null,M=null,H.exports=function(){function P(B){this.parent=B,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,l||(l=y(2161),m=y(6170),E=y(2096),s=y(9077),p=y(6544),h=y(9406),u=y(3595),g=y(9181),c=y(8833),v=y(9335),f=y(2390),y(663),M=y(7557))}return Object.defineProperty(P.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(P.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(P.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(P.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(P.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new f(this.children)),this.childNodeList}}),Object.defineProperty(P.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(P.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(P.prototype,"previousSibling",{get:function(){var B;return B=this.parent.children.indexOf(this),this.parent.children[B-1]||null}}),Object.defineProperty(P.prototype,"nextSibling",{get:function(){var B;return B=this.parent.children.indexOf(this),this.parent.children[B+1]||null}}),Object.defineProperty(P.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(P.prototype,"textContent",{get:function(){var B,$,te,J,oe;if(this.nodeType===v.Element||this.nodeType===v.DocumentFragment){for(oe="",$=0,te=(J=this.children).length;$<te;$++)(B=J[$]).textContent&&(oe+=B.textContent);return oe}return null},set:function(B){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),P.prototype.setParent=function(B){var $,te,J,oe,e;for(this.parent=B,B&&(this.options=B.options,this.stringify=B.stringify),e=[],te=0,J=(oe=this.children).length;te<J;te++)$=oe[te],e.push($.setParent(this));return e},P.prototype.element=function(B,$,te){var J,oe,e,r,i,n,t,o,a,T,C;if(n=null,$===null&&te==null&&($=(a=[{},null])[0],te=a[1]),$==null&&($={}),$=w($),A($)||(te=(T=[$,te])[0],$=T[1]),B!=null&&(B=w(B)),Array.isArray(B))for(e=0,t=B.length;e<t;e++)oe=B[e],n=this.element(oe);else if(k(B))n=this.element(B.apply());else if(A(B)){for(i in B)if(j.call(B,i))if(C=B[i],k(C)&&(C=C.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&i.indexOf(this.stringify.convertAttKey)===0)n=this.attribute(i.substr(this.stringify.convertAttKey.length),C);else if(!this.options.separateArrayItems&&Array.isArray(C)&&b(C))n=this.dummy();else if(A(C)&&b(C))n=this.element(i);else if(this.options.keepNullNodes||C!=null)if(!this.options.separateArrayItems&&Array.isArray(C))for(r=0,o=C.length;r<o;r++)oe=C[r],(J={})[i]=oe,n=this.element(J);else A(C)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&i.indexOf(this.stringify.convertTextKey)===0?n=this.element(C):(n=this.element(i)).element(C):n=this.element(i,C);else n=this.dummy()}else n=this.options.keepNullNodes||te!==null?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&B.indexOf(this.stringify.convertTextKey)===0?this.text(te):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&B.indexOf(this.stringify.convertCDataKey)===0?this.cdata(te):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&B.indexOf(this.stringify.convertCommentKey)===0?this.comment(te):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&B.indexOf(this.stringify.convertRawKey)===0?this.raw(te):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&B.indexOf(this.stringify.convertPIKey)===0?this.instruction(B.substr(this.stringify.convertPIKey.length),te):this.node(B,$,te):this.dummy();if(n==null)throw new Error("Could not create any elements with: "+B+". "+this.debugInfo());return n},P.prototype.insertBefore=function(B,$,te){var J,oe,e,r,i;if(B!=null&&B.type)return r=$,(e=B).setParent(this),r?(oe=children.indexOf(r),i=children.splice(oe),children.push(e),Array.prototype.push.apply(children,i)):children.push(e),e;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(B));return oe=this.parent.children.indexOf(this),i=this.parent.children.splice(oe),J=this.parent.element(B,$,te),Array.prototype.push.apply(this.parent.children,i),J},P.prototype.insertAfter=function(B,$,te){var J,oe,e;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(B));return oe=this.parent.children.indexOf(this),e=this.parent.children.splice(oe+1),J=this.parent.element(B,$,te),Array.prototype.push.apply(this.parent.children,e),J},P.prototype.remove=function(){var B;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return B=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[B,B-B+1].concat([])),this.parent},P.prototype.node=function(B,$,te){var J,oe;return B!=null&&(B=w(B)),$||($={}),$=w($),A($)||(te=(oe=[$,te])[0],$=oe[1]),J=new l(this,B,$),te!=null&&J.text(te),this.children.push(J),J},P.prototype.text=function(B){var $;return A(B)&&this.element(B),$=new u(this,B),this.children.push($),this},P.prototype.cdata=function(B){var $;return $=new m(this,B),this.children.push($),this},P.prototype.comment=function(B){var $;return $=new E(this,B),this.children.push($),this},P.prototype.commentBefore=function(B){var $,te;return $=this.parent.children.indexOf(this),te=this.parent.children.splice($),this.parent.comment(B),Array.prototype.push.apply(this.parent.children,te),this},P.prototype.commentAfter=function(B){var $,te;return $=this.parent.children.indexOf(this),te=this.parent.children.splice($+1),this.parent.comment(B),Array.prototype.push.apply(this.parent.children,te),this},P.prototype.raw=function(B){var $;return $=new h(this,B),this.children.push($),this},P.prototype.dummy=function(){return new c(this)},P.prototype.instruction=function(B,$){var te,J,oe,e,r;if(B!=null&&(B=w(B)),$!=null&&($=w($)),Array.isArray(B))for(e=0,r=B.length;e<r;e++)te=B[e],this.instruction(te);else if(A(B))for(te in B)j.call(B,te)&&(J=B[te],this.instruction(te,J));else k($)&&($=$.apply()),oe=new g(this,B,$),this.children.push(oe);return this},P.prototype.instructionBefore=function(B,$){var te,J;return te=this.parent.children.indexOf(this),J=this.parent.children.splice(te),this.parent.instruction(B,$),Array.prototype.push.apply(this.parent.children,J),this},P.prototype.instructionAfter=function(B,$){var te,J;return te=this.parent.children.indexOf(this),J=this.parent.children.splice(te+1),this.parent.instruction(B,$),Array.prototype.push.apply(this.parent.children,J),this},P.prototype.declaration=function(B,$,te){var J,oe;return J=this.document(),oe=new s(J,B,$,te),J.children.length===0?J.children.unshift(oe):J.children[0].type===v.Declaration?J.children[0]=oe:J.children.unshift(oe),J.root()||J},P.prototype.dtd=function(B,$){var te,J,oe,e,r,i,n,t,o;for(te=this.document(),J=new p(te,B,$),oe=e=0,i=(t=te.children).length;e<i;oe=++e)if(t[oe].type===v.DocType)return te.children[oe]=J,J;for(oe=r=0,n=(o=te.children).length;r<n;oe=++r)if(o[oe].isRoot)return te.children.splice(oe,0,J),J;return te.children.push(J),J},P.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},P.prototype.root=function(){var B;for(B=this;B;){if(B.type===v.Document)return B.rootObject;if(B.isRoot)return B;B=B.parent}},P.prototype.document=function(){var B;for(B=this;B;){if(B.type===v.Document)return B;B=B.parent}},P.prototype.end=function(B){return this.document().end(B)},P.prototype.prev=function(){var B;if((B=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[B-1]},P.prototype.next=function(){var B;if((B=this.parent.children.indexOf(this))===-1||B===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[B+1]},P.prototype.importDocument=function(B){var $;return($=B.root().clone()).parent=this,$.isRoot=!1,this.children.push($),this},P.prototype.debugInfo=function(B){var $,te;return(B=B||this.name)!=null||($=this.parent)!=null&&$.name?B==null?"parent: <"+this.parent.name+">":(te=this.parent)!=null&&te.name?"node: <"+B+">, parent: <"+this.parent.name+">":"node: <"+B+">":""},P.prototype.ele=function(B,$,te){return this.element(B,$,te)},P.prototype.nod=function(B,$,te){return this.node(B,$,te)},P.prototype.txt=function(B){return this.text(B)},P.prototype.dat=function(B){return this.cdata(B)},P.prototype.com=function(B){return this.comment(B)},P.prototype.ins=function(B,$){return this.instruction(B,$)},P.prototype.doc=function(){return this.document()},P.prototype.dec=function(B,$,te){return this.declaration(B,$,te)},P.prototype.e=function(B,$,te){return this.element(B,$,te)},P.prototype.n=function(B,$,te){return this.node(B,$,te)},P.prototype.t=function(B){return this.text(B)},P.prototype.d=function(B){return this.cdata(B)},P.prototype.c=function(B){return this.comment(B)},P.prototype.r=function(B){return this.raw(B)},P.prototype.i=function(B,$){return this.instruction(B,$)},P.prototype.u=function(){return this.up()},P.prototype.importXMLBuilder=function(B){return this.importDocument(B)},P.prototype.replaceChild=function(B,$){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.removeChild=function(B){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.appendChild=function(B){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.hasChildNodes=function(){return this.children.length!==0},P.prototype.cloneNode=function(B){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.isSupported=function(B,$){return!0},P.prototype.hasAttributes=function(){return this.attribs.length!==0},P.prototype.compareDocumentPosition=function(B){var $,te;return($=this)===B?0:this.document()!==B.document()?(te=M.Disconnected|M.ImplementationSpecific,Math.random()<.5?te|=M.Preceding:te|=M.Following,te):$.isAncestor(B)?M.Contains|M.Preceding:$.isDescendant(B)?M.Contains|M.Following:$.isPreceding(B)?M.Preceding:M.Following},P.prototype.isSameNode=function(B){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.lookupPrefix=function(B){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.isDefaultNamespace=function(B){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.lookupNamespaceURI=function(B){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.isEqualNode=function(B){var $,te,J;if(B.nodeType!==this.nodeType||B.children.length!==this.children.length)return!1;for($=te=0,J=this.children.length-1;0<=J?te<=J:te>=J;$=0<=J?++te:--te)if(!this.children[$].isEqualNode(B.children[$]))return!1;return!0},P.prototype.getFeature=function(B,$){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.setUserData=function(B,$,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.getUserData=function(B){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.contains=function(B){return!!B&&(B===this||this.isDescendant(B))},P.prototype.isDescendant=function(B){var $,te,J,oe;for(te=0,J=(oe=this.children).length;te<J;te++)if(B===($=oe[te])||$.isDescendant(B))return!0;return!1},P.prototype.isAncestor=function(B){return B.isDescendant(this)},P.prototype.isPreceding=function(B){var $,te;return $=this.treePosition(B),te=this.treePosition(this),$!==-1&&te!==-1&&$<te},P.prototype.isFollowing=function(B){var $,te;return $=this.treePosition(B),te=this.treePosition(this),$!==-1&&te!==-1&&$>te},P.prototype.treePosition=function(B){var $,te;return te=0,$=!1,this.foreachTreeNode(this.document(),function(J){if(te++,!$&&J===B)return $=!0}),$?te:-1},P.prototype.foreachTreeNode=function(B,$){var te,J,oe,e,r;for(B||(B=this.document()),J=0,oe=(e=B.children).length;J<oe;J++)if((r=$(te=e[J]))||(r=this.foreachTreeNode(te,$)))return r},P}()}).call(this)},2390:function(H){(function(){H.exports=function(){function _(y){this.nodes=y}return Object.defineProperty(_.prototype,"length",{get:function(){return this.nodes.length||0}}),_.prototype.clone=function(){return this.nodes=null},_.prototype.item=function(y){return this.nodes[y]||null},_}()}).call(this)},9181:function(H,_,y){(function(){var M,v,m={}.hasOwnProperty;M=y(9335),v=y(6488),H.exports=function(E){function s(p,c,l){if(s.__super__.constructor.call(this,p),c==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=M.ProcessingInstruction,this.target=this.stringify.insTarget(c),this.name=this.target,l&&(this.value=this.stringify.insValue(l))}return function(p,c){for(var l in c)m.call(c,l)&&(p[l]=c[l]);function f(){this.constructor=p}f.prototype=c.prototype,p.prototype=new f,p.__super__=c.prototype}(s,E),s.prototype.clone=function(){return Object.create(this)},s.prototype.toString=function(p){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(p))},s.prototype.isEqualNode=function(p){return!!s.__super__.isEqualNode.apply(this,arguments).isEqualNode(p)&&p.target===this.target},s}(v)}).call(this)},9406:function(H,_,y){(function(){var M,v,m={}.hasOwnProperty;M=y(9335),v=y(2026),H.exports=function(E){function s(p,c){if(s.__super__.constructor.call(this,p),c==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=M.Raw,this.value=this.stringify.raw(c)}return function(p,c){for(var l in c)m.call(c,l)&&(p[l]=c[l]);function f(){this.constructor=p}f.prototype=c.prototype,p.prototype=new f,p.__super__=c.prototype}(s,E),s.prototype.clone=function(){return Object.create(this)},s.prototype.toString=function(p){return this.options.writer.raw(this,this.options.writer.filterOptions(p))},s}(v)}).call(this)},1996:function(H,_,y){(function(){var M,v,m,E={}.hasOwnProperty;M=y(9335),m=y(751),v=y(594),H.exports=function(s){function p(c,l){this.stream=c,p.__super__.constructor.call(this,l)}return function(c,l){for(var f in l)E.call(l,f)&&(c[f]=l[f]);function g(){this.constructor=c}g.prototype=l.prototype,c.prototype=new g,c.__super__=l.prototype}(p,s),p.prototype.endline=function(c,l,f){return c.isLastRootNode&&l.state===v.CloseTag?"":p.__super__.endline.call(this,c,l,f)},p.prototype.document=function(c,l){var f,g,h,u,w,b,k,A,x;for(g=h=0,w=(k=c.children).length;h<w;g=++h)(f=k[g]).isLastRootNode=g===c.children.length-1;for(l=this.filterOptions(l),x=[],u=0,b=(A=c.children).length;u<b;u++)f=A[u],x.push(this.writeChildNode(f,l,0));return x},p.prototype.attribute=function(c,l,f){return this.stream.write(p.__super__.attribute.call(this,c,l,f))},p.prototype.cdata=function(c,l,f){return this.stream.write(p.__super__.cdata.call(this,c,l,f))},p.prototype.comment=function(c,l,f){return this.stream.write(p.__super__.comment.call(this,c,l,f))},p.prototype.declaration=function(c,l,f){return this.stream.write(p.__super__.declaration.call(this,c,l,f))},p.prototype.docType=function(c,l,f){var g,h,u,w;if(f||(f=0),this.openNode(c,l,f),l.state=v.OpenTag,this.stream.write(this.indent(c,l,f)),this.stream.write("<!DOCTYPE "+c.root().name),c.pubID&&c.sysID?this.stream.write(' PUBLIC "'+c.pubID+'" "'+c.sysID+'"'):c.sysID&&this.stream.write(' SYSTEM "'+c.sysID+'"'),c.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(c,l,f)),l.state=v.InsideTag,h=0,u=(w=c.children).length;h<u;h++)g=w[h],this.writeChildNode(g,l,f+1);l.state=v.CloseTag,this.stream.write("]")}return l.state=v.CloseTag,this.stream.write(l.spaceBeforeSlash+">"),this.stream.write(this.endline(c,l,f)),l.state=v.None,this.closeNode(c,l,f)},p.prototype.element=function(c,l,f){var g,h,u,w,b,k,A,x,j;for(A in f||(f=0),this.openNode(c,l,f),l.state=v.OpenTag,this.stream.write(this.indent(c,l,f)+"<"+c.name),x=c.attribs)E.call(x,A)&&(g=x[A],this.attribute(g,l,f));if(w=(u=c.children.length)===0?null:c.children[0],u===0||c.children.every(function(P){return(P.type===M.Text||P.type===M.Raw)&&P.value===""}))l.allowEmpty?(this.stream.write(">"),l.state=v.CloseTag,this.stream.write("</"+c.name+">")):(l.state=v.CloseTag,this.stream.write(l.spaceBeforeSlash+"/>"));else if(!l.pretty||u!==1||w.type!==M.Text&&w.type!==M.Raw||w.value==null){for(this.stream.write(">"+this.endline(c,l,f)),l.state=v.InsideTag,b=0,k=(j=c.children).length;b<k;b++)h=j[b],this.writeChildNode(h,l,f+1);l.state=v.CloseTag,this.stream.write(this.indent(c,l,f)+"</"+c.name+">")}else this.stream.write(">"),l.state=v.InsideTag,l.suppressPrettyCount++,this.writeChildNode(w,l,f+1),l.suppressPrettyCount--,l.state=v.CloseTag,this.stream.write("</"+c.name+">");return this.stream.write(this.endline(c,l,f)),l.state=v.None,this.closeNode(c,l,f)},p.prototype.processingInstruction=function(c,l,f){return this.stream.write(p.__super__.processingInstruction.call(this,c,l,f))},p.prototype.raw=function(c,l,f){return this.stream.write(p.__super__.raw.call(this,c,l,f))},p.prototype.text=function(c,l,f){return this.stream.write(p.__super__.text.call(this,c,l,f))},p.prototype.dtdAttList=function(c,l,f){return this.stream.write(p.__super__.dtdAttList.call(this,c,l,f))},p.prototype.dtdElement=function(c,l,f){return this.stream.write(p.__super__.dtdElement.call(this,c,l,f))},p.prototype.dtdEntity=function(c,l,f){return this.stream.write(p.__super__.dtdEntity.call(this,c,l,f))},p.prototype.dtdNotation=function(c,l,f){return this.stream.write(p.__super__.dtdNotation.call(this,c,l,f))},p}(m)}).call(this)},6434:function(H,_,y){(function(){var M,v={}.hasOwnProperty;M=y(751),H.exports=function(m){function E(s){E.__super__.constructor.call(this,s)}return function(s,p){for(var c in p)v.call(p,c)&&(s[c]=p[c]);function l(){this.constructor=s}l.prototype=p.prototype,s.prototype=new l,s.__super__=p.prototype}(E,m),E.prototype.document=function(s,p){var c,l,f,g,h;for(p=this.filterOptions(p),g="",l=0,f=(h=s.children).length;l<f;l++)c=h[l],g+=this.writeChildNode(c,p,0);return p.pretty&&g.slice(-p.newline.length)===p.newline&&(g=g.slice(0,-p.newline.length)),g},E}(M)}).call(this)},5549:function(H){(function(){var _=function(M,v){return function(){return M.apply(v,arguments)}},y={}.hasOwnProperty;H.exports=function(){function M(v){var m,E,s;for(m in this.assertLegalName=_(this.assertLegalName,this),this.assertLegalChar=_(this.assertLegalChar,this),v||(v={}),this.options=v,this.options.version||(this.options.version="1.0"),E=v.stringify||{})y.call(E,m)&&(s=E[m],this[m]=s)}return M.prototype.name=function(v){return this.options.noValidation?v:this.assertLegalName(""+v||"")},M.prototype.text=function(v){return this.options.noValidation?v:this.assertLegalChar(this.textEscape(""+v||""))},M.prototype.cdata=function(v){return this.options.noValidation?v:(v=(v=""+v||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(v))},M.prototype.comment=function(v){if(this.options.noValidation)return v;if((v=""+v||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+v);return this.assertLegalChar(v)},M.prototype.raw=function(v){return this.options.noValidation?v:""+v||""},M.prototype.attValue=function(v){return this.options.noValidation?v:this.assertLegalChar(this.attEscape(v=""+v||""))},M.prototype.insTarget=function(v){return this.options.noValidation?v:this.assertLegalChar(""+v||"")},M.prototype.insValue=function(v){if(this.options.noValidation)return v;if((v=""+v||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+v);return this.assertLegalChar(v)},M.prototype.xmlVersion=function(v){if(this.options.noValidation)return v;if(!(v=""+v||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+v);return v},M.prototype.xmlEncoding=function(v){if(this.options.noValidation)return v;if(!(v=""+v||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+v);return this.assertLegalChar(v)},M.prototype.xmlStandalone=function(v){return this.options.noValidation?v:v?"yes":"no"},M.prototype.dtdPubID=function(v){return this.options.noValidation?v:this.assertLegalChar(""+v||"")},M.prototype.dtdSysID=function(v){return this.options.noValidation?v:this.assertLegalChar(""+v||"")},M.prototype.dtdElementValue=function(v){return this.options.noValidation?v:this.assertLegalChar(""+v||"")},M.prototype.dtdAttType=function(v){return this.options.noValidation?v:this.assertLegalChar(""+v||"")},M.prototype.dtdAttDefault=function(v){return this.options.noValidation?v:this.assertLegalChar(""+v||"")},M.prototype.dtdEntityValue=function(v){return this.options.noValidation?v:this.assertLegalChar(""+v||"")},M.prototype.dtdNData=function(v){return this.options.noValidation?v:this.assertLegalChar(""+v||"")},M.prototype.convertAttKey="@",M.prototype.convertPIKey="?",M.prototype.convertTextKey="#text",M.prototype.convertCDataKey="#cdata",M.prototype.convertCommentKey="#comment",M.prototype.convertRawKey="#raw",M.prototype.assertLegalChar=function(v){var m,E;if(this.options.noValidation)return v;if(m="",this.options.version==="1.0"){if(m=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E=v.match(m))throw new Error("Invalid character in string: "+v+" at index "+E.index)}else if(this.options.version==="1.1"&&(m=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E=v.match(m)))throw new Error("Invalid character in string: "+v+" at index "+E.index);return v},M.prototype.assertLegalName=function(v){var m;if(this.options.noValidation)return v;if(this.assertLegalChar(v),m=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!v.match(m))throw new Error("Invalid character in name");return v},M.prototype.textEscape=function(v){var m;return this.options.noValidation?v:(m=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,v.replace(m,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},M.prototype.attEscape=function(v){var m;return this.options.noValidation?v:(m=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,v.replace(m,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},M}()}).call(this)},3595:function(H,_,y){(function(){var M,v,m={}.hasOwnProperty;M=y(9335),v=y(6488),H.exports=function(E){function s(p,c){if(s.__super__.constructor.call(this,p),c==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=M.Text,this.value=this.stringify.text(c)}return function(p,c){for(var l in c)m.call(c,l)&&(p[l]=c[l]);function f(){this.constructor=p}f.prototype=c.prototype,p.prototype=new f,p.__super__=c.prototype}(s,E),Object.defineProperty(s.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"wholeText",{get:function(){var p,c,l;for(l="",c=this.previousSibling;c;)l=c.data+l,c=c.previousSibling;for(l+=this.data,p=this.nextSibling;p;)l+=p.data,p=p.nextSibling;return l}}),s.prototype.clone=function(){return Object.create(this)},s.prototype.toString=function(p){return this.options.writer.text(this,this.options.writer.filterOptions(p))},s.prototype.splitText=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},s.prototype.replaceWholeText=function(p){throw new Error("This DOM method is not implemented."+this.debugInfo())},s}(v)}).call(this)},751:function(H,_,y){(function(){var M,v,m,E={}.hasOwnProperty;m=y(8369).assign,M=y(9335),y(9077),y(6544),y(6170),y(2096),y(2161),y(9406),y(3595),y(9181),y(8833),y(1179),y(6347),y(9078),y(4777),v=y(594),H.exports=function(){function s(p){var c,l,f;for(c in p||(p={}),this.options=p,l=p.writer||{})E.call(l,c)&&(f=l[c],this["_"+c]=this[c],this[c]=f)}return s.prototype.filterOptions=function(p){var c,l,f,g,h,u,w,b;return p||(p={}),p=m({},this.options,p),(c={writer:this}).pretty=p.pretty||!1,c.allowEmpty=p.allowEmpty||!1,c.indent=(l=p.indent)!=null?l:" ",c.newline=(f=p.newline)!=null?f:`
|
|
129
|
+
`,c.offset=(g=p.offset)!=null?g:0,c.dontPrettyTextNodes=(h=(u=p.dontPrettyTextNodes)!=null?u:p.dontprettytextnodes)!=null?h:0,c.spaceBeforeSlash=(w=(b=p.spaceBeforeSlash)!=null?b:p.spacebeforeslash)!=null?w:"",c.spaceBeforeSlash===!0&&(c.spaceBeforeSlash=" "),c.suppressPrettyCount=0,c.user={},c.state=v.None,c},s.prototype.indent=function(p,c,l){var f;return!c.pretty||c.suppressPrettyCount?"":c.pretty&&(f=(l||0)+c.offset+1)>0?new Array(f).join(c.indent):""},s.prototype.endline=function(p,c,l){return!c.pretty||c.suppressPrettyCount?"":c.newline},s.prototype.attribute=function(p,c,l){var f;return this.openAttribute(p,c,l),f=" "+p.name+'="'+p.value+'"',this.closeAttribute(p,c,l),f},s.prototype.cdata=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l)+"<![CDATA[",c.state=v.InsideTag,f+=p.value,c.state=v.CloseTag,f+="]]>"+this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},s.prototype.comment=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l)+"<!-- ",c.state=v.InsideTag,f+=p.value,c.state=v.CloseTag,f+=" -->"+this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},s.prototype.declaration=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l)+"<?xml",c.state=v.InsideTag,f+=' version="'+p.version+'"',p.encoding!=null&&(f+=' encoding="'+p.encoding+'"'),p.standalone!=null&&(f+=' standalone="'+p.standalone+'"'),c.state=v.CloseTag,f+=c.spaceBeforeSlash+"?>",f+=this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},s.prototype.docType=function(p,c,l){var f,g,h,u,w;if(l||(l=0),this.openNode(p,c,l),c.state=v.OpenTag,u=this.indent(p,c,l),u+="<!DOCTYPE "+p.root().name,p.pubID&&p.sysID?u+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(u+=' SYSTEM "'+p.sysID+'"'),p.children.length>0){for(u+=" [",u+=this.endline(p,c,l),c.state=v.InsideTag,g=0,h=(w=p.children).length;g<h;g++)f=w[g],u+=this.writeChildNode(f,c,l+1);c.state=v.CloseTag,u+="]"}return c.state=v.CloseTag,u+=c.spaceBeforeSlash+">",u+=this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),u},s.prototype.element=function(p,c,l){var f,g,h,u,w,b,k,A,x,j,P,B,$,te;for(x in l||(l=0),j=!1,P="",this.openNode(p,c,l),c.state=v.OpenTag,P+=this.indent(p,c,l)+"<"+p.name,B=p.attribs)E.call(B,x)&&(f=B[x],P+=this.attribute(f,c,l));if(u=(h=p.children.length)===0?null:p.children[0],h===0||p.children.every(function(J){return(J.type===M.Text||J.type===M.Raw)&&J.value===""}))c.allowEmpty?(P+=">",c.state=v.CloseTag,P+="</"+p.name+">"+this.endline(p,c,l)):(c.state=v.CloseTag,P+=c.spaceBeforeSlash+"/>"+this.endline(p,c,l));else if(!c.pretty||h!==1||u.type!==M.Text&&u.type!==M.Raw||u.value==null){if(c.dontPrettyTextNodes){for(w=0,k=($=p.children).length;w<k;w++)if(((g=$[w]).type===M.Text||g.type===M.Raw)&&g.value!=null){c.suppressPrettyCount++,j=!0;break}}for(P+=">"+this.endline(p,c,l),c.state=v.InsideTag,b=0,A=(te=p.children).length;b<A;b++)g=te[b],P+=this.writeChildNode(g,c,l+1);c.state=v.CloseTag,P+=this.indent(p,c,l)+"</"+p.name+">",j&&c.suppressPrettyCount--,P+=this.endline(p,c,l),c.state=v.None}else P+=">",c.state=v.InsideTag,c.suppressPrettyCount++,j=!0,P+=this.writeChildNode(u,c,l+1),c.suppressPrettyCount--,j=!1,c.state=v.CloseTag,P+="</"+p.name+">"+this.endline(p,c,l);return this.closeNode(p,c,l),P},s.prototype.writeChildNode=function(p,c,l){switch(p.type){case M.CData:return this.cdata(p,c,l);case M.Comment:return this.comment(p,c,l);case M.Element:return this.element(p,c,l);case M.Raw:return this.raw(p,c,l);case M.Text:return this.text(p,c,l);case M.ProcessingInstruction:return this.processingInstruction(p,c,l);case M.Dummy:return"";case M.Declaration:return this.declaration(p,c,l);case M.DocType:return this.docType(p,c,l);case M.AttributeDeclaration:return this.dtdAttList(p,c,l);case M.ElementDeclaration:return this.dtdElement(p,c,l);case M.EntityDeclaration:return this.dtdEntity(p,c,l);case M.NotationDeclaration:return this.dtdNotation(p,c,l);default:throw new Error("Unknown XML node type: "+p.constructor.name)}},s.prototype.processingInstruction=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l)+"<?",c.state=v.InsideTag,f+=p.target,p.value&&(f+=" "+p.value),c.state=v.CloseTag,f+=c.spaceBeforeSlash+"?>",f+=this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},s.prototype.raw=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l),c.state=v.InsideTag,f+=p.value,c.state=v.CloseTag,f+=this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},s.prototype.text=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l),c.state=v.InsideTag,f+=p.value,c.state=v.CloseTag,f+=this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},s.prototype.dtdAttList=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l)+"<!ATTLIST",c.state=v.InsideTag,f+=" "+p.elementName+" "+p.attributeName+" "+p.attributeType,p.defaultValueType!=="#DEFAULT"&&(f+=" "+p.defaultValueType),p.defaultValue&&(f+=' "'+p.defaultValue+'"'),c.state=v.CloseTag,f+=c.spaceBeforeSlash+">"+this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},s.prototype.dtdElement=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l)+"<!ELEMENT",c.state=v.InsideTag,f+=" "+p.name+" "+p.value,c.state=v.CloseTag,f+=c.spaceBeforeSlash+">"+this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},s.prototype.dtdEntity=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l)+"<!ENTITY",c.state=v.InsideTag,p.pe&&(f+=" %"),f+=" "+p.name,p.value?f+=' "'+p.value+'"':(p.pubID&&p.sysID?f+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(f+=' SYSTEM "'+p.sysID+'"'),p.nData&&(f+=" NDATA "+p.nData)),c.state=v.CloseTag,f+=c.spaceBeforeSlash+">"+this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},s.prototype.dtdNotation=function(p,c,l){var f;return this.openNode(p,c,l),c.state=v.OpenTag,f=this.indent(p,c,l)+"<!NOTATION",c.state=v.InsideTag,f+=" "+p.name,p.pubID&&p.sysID?f+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.pubID?f+=' PUBLIC "'+p.pubID+'"':p.sysID&&(f+=' SYSTEM "'+p.sysID+'"'),c.state=v.CloseTag,f+=c.spaceBeforeSlash+">"+this.endline(p,c,l),c.state=v.None,this.closeNode(p,c,l),f},s.prototype.openNode=function(p,c,l){},s.prototype.closeNode=function(p,c,l){},s.prototype.openAttribute=function(p,c,l){},s.prototype.closeAttribute=function(p,c,l){},s}()}).call(this)},5532:function(H,_,y){(function(){var M,v,m,E,s,p,c,l,f,g;g=y(8369),l=g.assign,f=g.isFunction,m=y(1770),E=y(6934),s=y(9227),c=y(6434),p=y(1996),M=y(9335),v=y(594),H.exports.create=function(h,u,w,b){var k,A;if(h==null)throw new Error("Root element needs a name.");return b=l({},u,w,b),A=(k=new E(b)).element(h),b.headless||(k.declaration(b),b.pubID==null&&b.sysID==null||k.dtd(b)),A},H.exports.begin=function(h,u,w){var b;return f(h)&&(u=(b=[h,u])[0],w=b[1],h={}),u?new s(h,u,w):new E(h)},H.exports.stringWriter=function(h){return new c(h)},H.exports.streamWriter=function(h,u){return new p(h,u)},H.exports.implementation=new m,H.exports.nodeType=M,H.exports.writerState=v}).call(this)},7529:H=>{H.exports=function(){for(var y={},M=0;M<arguments.length;M++){var v=arguments[M];for(var m in v)_.call(v,m)&&(y[m]=v[m])}return y};var _=Object.prototype.hasOwnProperty},950:()=>{},6601:()=>{},9214:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},4749:()=>{},3731:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},3083:(H,_,y)=>{var M=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],v=typeof globalThis>"u"?y.g:globalThis;H.exports=function(){for(var m=[],E=0;E<M.length;E++)typeof v[M[E]]=="function"&&(m[m.length]=M[E]);return m}},1641:(H,_,y)=>{y.r(_),y.d(_,{all:()=>Ct,allLimit:()=>Pe,allSeries:()=>Ve,any:()=>tn,anyLimit:()=>nn,anySeries:()=>Jt,apply:()=>m,applyEach:()=>o,applyEachSeries:()=>C,asyncify:()=>h,auto:()=>R,autoInject:()=>Y,cargo:()=>re,cargoQueue:()=>le,compose:()=>be,concat:()=>Ae,concatLimit:()=>xe,concatSeries:()=>X,constant:()=>ee,default:()=>Mo,detect:()=>V,detectLimit:()=>q,detectSeries:()=>ne,dir:()=>he,doDuring:()=>me,doUntil:()=>it,doWhilst:()=>me,during:()=>Ki,each:()=>Te,eachLimit:()=>ft,eachOf:()=>n,eachOfLimit:()=>e,eachOfSeries:()=>a,eachSeries:()=>Se,ensureAsync:()=>Ge,every:()=>Ct,everyLimit:()=>Pe,everySeries:()=>Ve,filter:()=>yt,filterLimit:()=>Be,filterSeries:()=>We,find:()=>V,findLimit:()=>q,findSeries:()=>ne,flatMap:()=>Ae,flatMapLimit:()=>xe,flatMapSeries:()=>X,foldl:()=>ke,foldr:()=>Rt,forEach:()=>Te,forEachLimit:()=>ft,forEachOf:()=>n,forEachOfLimit:()=>e,forEachOfSeries:()=>a,forEachSeries:()=>Se,forever:()=>St,groupBy:()=>Ze,groupByLimit:()=>Ne,groupBySeries:()=>It,inject:()=>ke,log:()=>Le,map:()=>t,mapLimit:()=>je,mapSeries:()=>T,mapValues:()=>Dt,mapValuesLimit:()=>Xe,mapValuesSeries:()=>De,memoize:()=>Qe,nextTick:()=>zt,parallel:()=>Je,parallelLimit:()=>$t,priorityQueue:()=>et,queue:()=>Fe,race:()=>Tt,reduce:()=>ke,reduceRight:()=>Rt,reflect:()=>Gt,reflectAll:()=>an,reject:()=>un,rejectLimit:()=>cn,rejectSeries:()=>ln,retry:()=>Xt,retryable:()=>dn,select:()=>yt,selectLimit:()=>Be,selectSeries:()=>We,seq:()=>ge,series:()=>vn,setImmediate:()=>g,some:()=>tn,someLimit:()=>nn,someSeries:()=>Jt,sortBy:()=>mn,timeout:()=>on,times:()=>ti,timesLimit:()=>ci,timesSeries:()=>Cr,transform:()=>Pr,tryEach:()=>xo,unmemoize:()=>Dr,until:()=>Lr,waterfall:()=>qr,whilst:()=>Ki,wrapSync:()=>h});var M=y(4155),v=y(5108);function m(Me,...ve){return(...we)=>Me(...ve,...we)}function E(Me){return function(...ve){var we=ve.pop();return Me.call(this,ve,we)}}var s=typeof queueMicrotask=="function"&&queueMicrotask,p=typeof setImmediate=="function"&&setImmediate,c=typeof M=="object"&&typeof M.nextTick=="function";function l(Me){setTimeout(Me,0)}function f(Me){return(ve,...we)=>Me(()=>ve(...we))}var g=f(s?queueMicrotask:p?setImmediate:c?M.nextTick:l);function h(Me){return b(Me)?function(...ve){const we=ve.pop();return u(Me.apply(this,ve),we)}:E(function(ve,we){var Oe;try{Oe=Me.apply(this,ve)}catch(He){return we(He)}if(Oe&&typeof Oe.then=="function")return u(Oe,we);we(null,Oe)})}function u(Me,ve){return Me.then(we=>{w(ve,null,we)},we=>{w(ve,we&&we.message?we:new Error(we))})}function w(Me,ve,we){try{Me(ve,we)}catch(Oe){g(He=>{throw He},Oe)}}function b(Me){return Me[Symbol.toStringTag]==="AsyncFunction"}function k(Me){if(typeof Me!="function")throw new Error("expected a function");return b(Me)?h(Me):Me}function A(Me,ve=Me.length){if(!ve)throw new Error("arity is undefined");return function(...we){return typeof we[ve-1]=="function"?Me.apply(this,we):new Promise((Oe,He)=>{we[ve-1]=(ze,...Ye)=>{if(ze)return He(ze);Oe(Ye.length>1?Ye:Ye[0])},Me.apply(this,we)})}}function x(Me){return function(ve,...we){return A(function(Oe){var He=this;return Me(ve,(ze,Ye)=>{k(ze).apply(He,we.concat(Ye))},Oe)})}}function j(Me,ve,we,Oe){ve=ve||[];var He=[],ze=0,Ye=k(we);return Me(ve,(nt,ct,Mt)=>{var Et=ze++;Ye(nt,(gt,Zt)=>{He[Et]=Zt,Mt(gt)})},nt=>{Oe(nt,He)})}function P(Me){return Me&&typeof Me.length=="number"&&Me.length>=0&&Me.length%1==0}const B={};function $(Me){function ve(...we){if(Me!==null){var Oe=Me;Me=null,Oe.apply(this,we)}}return Object.assign(ve,Me),ve}function te(Me){return function(...ve){if(Me===null)throw new Error("Callback was already called.");var we=Me;Me=null,we.apply(this,ve)}}function J(Me,ve,we,Oe){let He=!1,ze=!1,Ye=!1,nt=0,ct=0;function Mt(){nt>=ve||Ye||He||(Ye=!0,Me.next().then(({value:Zt,done:Yt})=>{if(!ze&&!He){if(Ye=!1,Yt)return He=!0,void(nt<=0&&Oe(null));nt++,we(Zt,ct,Et),ct++,Mt()}}).catch(gt))}function Et(Zt,Yt){if(nt-=1,!ze)return Zt?gt(Zt):Zt===!1?(He=!0,void(ze=!0)):Yt===B||He&&nt<=0?(He=!0,Oe(null)):void Mt()}function gt(Zt){ze||(Ye=!1,He=!0,Oe(Zt))}Mt()}var oe=Me=>(ve,we,Oe)=>{if(Oe=$(Oe),Me<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!ve)return Oe(null);if(ve[Symbol.toStringTag]==="AsyncGenerator")return J(ve,Me,we,Oe);if(function(gt){return typeof gt[Symbol.asyncIterator]=="function"}(ve))return J(ve[Symbol.asyncIterator](),Me,we,Oe);var He=function(gt){if(P(gt))return function(dt){var Ot=-1,gn=dt.length;return function(){return++Ot<gn?{value:dt[Ot],key:Ot}:null}}(gt);var Zt,Yt,Vn,bt,wt=function(dt){return dt[Symbol.iterator]&&dt[Symbol.iterator]()}(gt);return wt?function(dt){var Ot=-1;return function(){var gn=dt.next();return gn.done?null:(Ot++,{value:gn.value,key:Ot})}}(wt):(Yt=(Zt=gt)?Object.keys(Zt):[],Vn=-1,bt=Yt.length,function dt(){var Ot=Yt[++Vn];return Ot==="__proto__"?dt():Vn<bt?{value:Zt[Ot],key:Ot}:null})}(ve),ze=!1,Ye=!1,nt=0,ct=!1;function Mt(gt,Zt){if(!Ye)if(nt-=1,gt)ze=!0,Oe(gt);else if(gt===!1)ze=!0,Ye=!0;else{if(Zt===B||ze&&nt<=0)return ze=!0,Oe(null);ct||Et()}}function Et(){for(ct=!0;nt<Me&&!ze;){var gt=He();if(gt===null)return ze=!0,void(nt<=0&&Oe(null));nt+=1,we(gt.value,gt.key,te(Mt))}ct=!1}Et()},e=A(function(Me,ve,we,Oe){return oe(ve)(Me,k(we),Oe)},4);function r(Me,ve,we){we=$(we);var Oe=0,He=0,{length:ze}=Me,Ye=!1;function nt(ct,Mt){ct===!1&&(Ye=!0),Ye!==!0&&(ct?we(ct):++He!==ze&&Mt!==B||we(null))}for(ze===0&&we(null);Oe<ze;Oe++)ve(Me[Oe],Oe,te(nt))}function i(Me,ve,we){return e(Me,1/0,ve,we)}var n=A(function(Me,ve,we){return(P(Me)?r:i)(Me,k(ve),we)},3),t=A(function(Me,ve,we){return j(n,Me,ve,we)},3),o=x(t),a=A(function(Me,ve,we){return e(Me,1,ve,we)},3),T=A(function(Me,ve,we){return j(a,Me,ve,we)},3),C=x(T);const N=Symbol("promiseCallback");function O(){let Me,ve;function we(Oe,...He){if(Oe)return ve(Oe);Me(He.length>1?He:He[0])}return we[N]=new Promise((Oe,He)=>{Me=Oe,ve=He}),we}function R(Me,ve,we){typeof ve!="number"&&(we=ve,ve=null),we=$(we||O());var Oe=Object.keys(Me).length;if(!Oe)return we(null);ve||(ve=Oe);var He={},ze=0,Ye=!1,nt=!1,ct=Object.create(null),Mt=[],Et=[],gt={};function Zt(bt,wt){Mt.push(()=>function(dt,Ot){if(!nt){var gn=te((Tn,...xn)=>{if(ze--,Tn!==!1)if(xn.length<2&&([xn]=xn),Tn){var wi={};if(Object.keys(He).forEach(Kn=>{wi[Kn]=He[Kn]}),wi[dt]=xn,nt=!0,ct=Object.create(null),Ye)return;we(Tn,wi)}else He[dt]=xn,(ct[dt]||[]).forEach(Kn=>Kn()),Yt();else Ye=!0});ze++;var An=k(Ot[Ot.length-1]);Ot.length>1?An(He,gn):An(gn)}}(bt,wt))}function Yt(){if(!Ye){if(Mt.length===0&&ze===0)return we(null,He);for(;Mt.length&&ze<ve;)Mt.shift()()}}function Vn(bt){var wt=[];return Object.keys(Me).forEach(dt=>{const Ot=Me[dt];Array.isArray(Ot)&&Ot.indexOf(bt)>=0&&wt.push(dt)}),wt}return Object.keys(Me).forEach(bt=>{var wt=Me[bt];if(!Array.isArray(wt))return Zt(bt,[wt]),void Et.push(bt);var dt=wt.slice(0,wt.length-1),Ot=dt.length;if(Ot===0)return Zt(bt,wt),void Et.push(bt);gt[bt]=Ot,dt.forEach(gn=>{if(!Me[gn])throw new Error("async.auto task `"+bt+"` has a non-existent dependency `"+gn+"` in "+dt.join(", "));var An,Tn;(Tn=ct[An=gn])||(Tn=ct[An]=[]),Tn.push(()=>{--Ot==0&&Zt(bt,wt)})})}),function(){for(var bt=0;Et.length;)bt++,Vn(Et.pop()).forEach(wt=>{--gt[wt]==0&&Et.push(wt)});if(bt!==Oe)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),Yt(),we[N]}var F=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,Z=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,ie=/,/,D=/(=.+)?(\s*)$/;function Y(Me,ve){var we={};return Object.keys(Me).forEach(Oe=>{var He,ze=Me[Oe],Ye=b(ze),nt=!Ye&&ze.length===1||Ye&&ze.length===0;if(Array.isArray(ze))He=[...ze],ze=He.pop(),we[Oe]=He.concat(He.length>0?ct:ze);else if(nt)we[Oe]=ze;else{if(He=function(Mt){const Et=function(Yt){let Vn="",bt=0,wt=Yt.indexOf("*/");for(;bt<Yt.length;)if(Yt[bt]==="/"&&Yt[bt+1]==="/"){let dt=Yt.indexOf(`
|
|
130
|
+
`,bt);bt=dt===-1?Yt.length:dt}else if(wt!==-1&&Yt[bt]==="/"&&Yt[bt+1]==="*"){let dt=Yt.indexOf("*/",bt);dt!==-1?(bt=dt+2,wt=Yt.indexOf("*/",bt)):(Vn+=Yt[bt],bt++)}else Vn+=Yt[bt],bt++;return Vn}(Mt.toString());let gt=Et.match(F);if(gt||(gt=Et.match(Z)),!gt)throw new Error(`could not parse args in autoInject
|
|
131
|
+
Source:
|
|
132
|
+
`+Et);let[,Zt]=gt;return Zt.replace(/\s/g,"").split(ie).map(Yt=>Yt.replace(D,"").trim())}(ze),ze.length===0&&!Ye&&He.length===0)throw new Error("autoInject task functions require explicit parameters.");Ye||He.pop(),we[Oe]=He.concat(ct)}function ct(Mt,Et){var gt=He.map(Zt=>Mt[Zt]);gt.push(Et),k(ze)(...gt)}}),R(we,ve)}class z{constructor(){this.head=this.tail=null,this.length=0}removeLink(ve){return ve.prev?ve.prev.next=ve.next:this.head=ve.next,ve.next?ve.next.prev=ve.prev:this.tail=ve.prev,ve.prev=ve.next=null,this.length-=1,ve}empty(){for(;this.head;)this.shift();return this}insertAfter(ve,we){we.prev=ve,we.next=ve.next,ve.next?ve.next.prev=we:this.tail=we,ve.next=we,this.length+=1}insertBefore(ve,we){we.prev=ve.prev,we.next=ve,ve.prev?ve.prev.next=we:this.head=we,ve.prev=we,this.length+=1}unshift(ve){this.head?this.insertBefore(this.head,ve):W(this,ve)}push(ve){this.tail?this.insertAfter(this.tail,ve):W(this,ve)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var ve=this.head;ve;)yield ve.data,ve=ve.next}remove(ve){for(var we=this.head;we;){var{next:Oe}=we;ve(we)&&this.removeLink(we),we=Oe}return this}}function W(Me,ve){Me.length=1,Me.head=Me.tail=ve}function ae(Me,ve,we){if(ve==null)ve=1;else if(ve===0)throw new RangeError("Concurrency must not be zero");var Oe=k(Me),He=0,ze=[];const Ye={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function nt(wt,dt){return wt?dt?void(Ye[wt]=Ye[wt].filter(Ot=>Ot!==dt)):Ye[wt]=[]:Object.keys(Ye).forEach(Ot=>Ye[Ot]=[])}function ct(wt,...dt){Ye[wt].forEach(Ot=>Ot(...dt))}var Mt=!1;function Et(wt,dt,Ot,gn){if(gn!=null&&typeof gn!="function")throw new Error("task callback must be a function");var An,Tn;function xn(Kn,...Ti){return Kn?Ot?Tn(Kn):An():Ti.length<=1?An(Ti[0]):void An(Ti)}bt.started=!0;var wi=bt._createTaskItem(wt,Ot?xn:gn||xn);if(dt?bt._tasks.unshift(wi):bt._tasks.push(wi),Mt||(Mt=!0,g(()=>{Mt=!1,bt.process()})),Ot||!gn)return new Promise((Kn,Ti)=>{An=Kn,Tn=Ti})}function gt(wt){return function(dt,...Ot){He-=1;for(var gn=0,An=wt.length;gn<An;gn++){var Tn=wt[gn],xn=ze.indexOf(Tn);xn===0?ze.shift():xn>0&&ze.splice(xn,1),Tn.callback(dt,...Ot),dt!=null&&ct("error",dt,Tn.data)}He<=bt.concurrency-bt.buffer&&ct("unsaturated"),bt.idle()&&ct("drain"),bt.process()}}function Zt(wt){return!(wt.length!==0||!bt.idle()||(g(()=>ct("drain")),0))}const Yt=wt=>dt=>{if(!dt)return new Promise((Ot,gn)=>{(function(An,Tn){const xn=(...wi)=>{nt(An,xn),((Kn,Ti)=>{if(Kn)return gn(Kn);Ot(Ti)})(...wi)};Ye[An].push(xn)})(wt)});nt(wt),function(Ot,gn){Ye[Ot].push(gn)}(wt,dt)};var Vn=!1,bt={_tasks:new z,_createTaskItem:(wt,dt)=>({data:wt,callback:dt}),*[Symbol.iterator](){yield*bt._tasks[Symbol.iterator]()},concurrency:ve,payload:we,buffer:ve/4,started:!1,paused:!1,push(wt,dt){return Array.isArray(wt)?Zt(wt)?void 0:wt.map(Ot=>Et(Ot,!1,!1,dt)):Et(wt,!1,!1,dt)},pushAsync(wt,dt){return Array.isArray(wt)?Zt(wt)?void 0:wt.map(Ot=>Et(Ot,!1,!0,dt)):Et(wt,!1,!0,dt)},kill(){nt(),bt._tasks.empty()},unshift(wt,dt){return Array.isArray(wt)?Zt(wt)?void 0:wt.map(Ot=>Et(Ot,!0,!1,dt)):Et(wt,!0,!1,dt)},unshiftAsync(wt,dt){return Array.isArray(wt)?Zt(wt)?void 0:wt.map(Ot=>Et(Ot,!0,!0,dt)):Et(wt,!0,!0,dt)},remove(wt){bt._tasks.remove(wt)},process(){if(!Vn){for(Vn=!0;!bt.paused&&He<bt.concurrency&&bt._tasks.length;){var wt=[],dt=[],Ot=bt._tasks.length;bt.payload&&(Ot=Math.min(Ot,bt.payload));for(var gn=0;gn<Ot;gn++){var An=bt._tasks.shift();wt.push(An),ze.push(An),dt.push(An.data)}He+=1,bt._tasks.length===0&&ct("empty"),He===bt.concurrency&&ct("saturated");var Tn=te(gt(wt));Oe(dt,Tn)}Vn=!1}},length:()=>bt._tasks.length,running:()=>He,workersList:()=>ze,idle:()=>bt._tasks.length+He===0,pause(){bt.paused=!0},resume(){bt.paused!==!1&&(bt.paused=!1,g(bt.process))}};return Object.defineProperties(bt,{saturated:{writable:!1,value:Yt("saturated")},unsaturated:{writable:!1,value:Yt("unsaturated")},empty:{writable:!1,value:Yt("empty")},drain:{writable:!1,value:Yt("drain")},error:{writable:!1,value:Yt("error")}}),bt}function re(Me,ve){return ae(Me,1,ve)}function le(Me,ve,we){return ae(Me,ve,we)}var ke=A(function(Me,ve,we,Oe){Oe=$(Oe);var He=k(we);return a(Me,(ze,Ye,nt)=>{He(ve,ze,(ct,Mt)=>{ve=Mt,nt(ct)})},ze=>Oe(ze,ve))},4);function ge(...Me){var ve=Me.map(k);return function(...we){var Oe=this,He=we[we.length-1];return typeof He=="function"?we.pop():He=O(),ke(ve,we,(ze,Ye,nt)=>{Ye.apply(Oe,ze.concat((ct,...Mt)=>{nt(ct,Mt)}))},(ze,Ye)=>He(ze,...Ye)),He[N]}}function be(...Me){return ge(...Me.reverse())}var je=A(function(Me,ve,we,Oe){return j(oe(ve),Me,we,Oe)},4),xe=A(function(Me,ve,we,Oe){var He=k(we);return je(Me,ve,(ze,Ye)=>{He(ze,(nt,...ct)=>nt?Ye(nt):Ye(nt,ct))},(ze,Ye)=>{for(var nt=[],ct=0;ct<Ye.length;ct++)Ye[ct]&&(nt=nt.concat(...Ye[ct]));return Oe(ze,nt)})},4),Ae=A(function(Me,ve,we){return xe(Me,1/0,ve,we)},3),X=A(function(Me,ve,we){return xe(Me,1,ve,we)},3);function ee(...Me){return function(...ve){return ve.pop()(null,...Me)}}function U(Me,ve){return(we,Oe,He,ze)=>{var Ye,nt=!1;const ct=k(He);we(Oe,(Mt,Et,gt)=>{ct(Mt,(Zt,Yt)=>Zt||Zt===!1?gt(Zt):Me(Yt)&&!Ye?(nt=!0,Ye=ve(!0,Mt),gt(null,B)):void gt())},Mt=>{if(Mt)return ze(Mt);ze(null,nt?Ye:ve(!1))})}}var V=A(function(Me,ve,we){return U(Oe=>Oe,(Oe,He)=>He)(n,Me,ve,we)},3),q=A(function(Me,ve,we,Oe){return U(He=>He,(He,ze)=>ze)(oe(ve),Me,we,Oe)},4),ne=A(function(Me,ve,we){return U(Oe=>Oe,(Oe,He)=>He)(oe(1),Me,ve,we)},3);function fe(Me){return(ve,...we)=>k(ve)(...we,(Oe,...He)=>{typeof v=="object"&&(Oe?v.error&&v.error(Oe):v[Me]&&He.forEach(ze=>v[Me](ze)))})}var he=fe("dir"),me=A(function(Me,ve,we){we=te(we);var Oe,He=k(Me),ze=k(ve);function Ye(ct,...Mt){if(ct)return we(ct);ct!==!1&&(Oe=Mt,ze(...Mt,nt))}function nt(ct,Mt){return ct?we(ct):ct!==!1?Mt?void He(Ye):we(null,...Oe):void 0}return nt(null,!0)},3);function it(Me,ve,we){const Oe=k(ve);return me(Me,(...He)=>{const ze=He.pop();Oe(...He,(Ye,nt)=>ze(Ye,!nt))},we)}function _e(Me){return(ve,we,Oe)=>Me(ve,Oe)}var Te=A(function(Me,ve,we){return n(Me,_e(k(ve)),we)},3),ft=A(function(Me,ve,we,Oe){return oe(ve)(Me,_e(k(we)),Oe)},4),Se=A(function(Me,ve,we){return ft(Me,1,ve,we)},3);function Ge(Me){return b(Me)?Me:function(...ve){var we=ve.pop(),Oe=!0;ve.push((...He)=>{Oe?g(()=>we(...He)):we(...He)}),Me.apply(this,ve),Oe=!1}}var Ct=A(function(Me,ve,we){return U(Oe=>!Oe,Oe=>!Oe)(n,Me,ve,we)},3),Pe=A(function(Me,ve,we,Oe){return U(He=>!He,He=>!He)(oe(ve),Me,we,Oe)},4),Ve=A(function(Me,ve,we){return U(Oe=>!Oe,Oe=>!Oe)(a,Me,ve,we)},3);function Nt(Me,ve,we,Oe){var He=new Array(ve.length);Me(ve,(ze,Ye,nt)=>{we(ze,(ct,Mt)=>{He[Ye]=!!Mt,nt(ct)})},ze=>{if(ze)return Oe(ze);for(var Ye=[],nt=0;nt<ve.length;nt++)He[nt]&&Ye.push(ve[nt]);Oe(null,Ye)})}function Re(Me,ve,we,Oe){var He=[];Me(ve,(ze,Ye,nt)=>{we(ze,(ct,Mt)=>{if(ct)return nt(ct);Mt&&He.push({index:Ye,value:ze}),nt(ct)})},ze=>{if(ze)return Oe(ze);Oe(null,He.sort((Ye,nt)=>Ye.index-nt.index).map(Ye=>Ye.value))})}function Ke(Me,ve,we,Oe){return(P(ve)?Nt:Re)(Me,ve,k(we),Oe)}var yt=A(function(Me,ve,we){return Ke(n,Me,ve,we)},3),Be=A(function(Me,ve,we,Oe){return Ke(oe(ve),Me,we,Oe)},4),We=A(function(Me,ve,we){return Ke(a,Me,ve,we)},3),St=A(function(Me,ve){var we=te(ve),Oe=k(Ge(Me));return function He(ze){if(ze)return we(ze);ze!==!1&&Oe(He)}()},2),Ne=A(function(Me,ve,we,Oe){var He=k(we);return je(Me,ve,(ze,Ye)=>{He(ze,(nt,ct)=>nt?Ye(nt):Ye(nt,{key:ct,val:ze}))},(ze,Ye)=>{for(var nt={},{hasOwnProperty:ct}=Object.prototype,Mt=0;Mt<Ye.length;Mt++)if(Ye[Mt]){var{key:Et}=Ye[Mt],{val:gt}=Ye[Mt];ct.call(nt,Et)?nt[Et].push(gt):nt[Et]=[gt]}return Oe(ze,nt)})},4);function Ze(Me,ve,we){return Ne(Me,1/0,ve,we)}function It(Me,ve,we){return Ne(Me,1,ve,we)}var Le=fe("log"),Xe=A(function(Me,ve,we,Oe){Oe=$(Oe);var He={},ze=k(we);return oe(ve)(Me,(Ye,nt,ct)=>{ze(Ye,nt,(Mt,Et)=>{if(Mt)return ct(Mt);He[nt]=Et,ct(Mt)})},Ye=>Oe(Ye,He))},4);function Dt(Me,ve,we){return Xe(Me,1/0,ve,we)}function De(Me,ve,we){return Xe(Me,1,ve,we)}function Qe(Me,ve=we=>we){var we=Object.create(null),Oe=Object.create(null),He=k(Me),ze=E((Ye,nt)=>{var ct=ve(...Ye);ct in we?g(()=>nt(null,...we[ct])):ct in Oe?Oe[ct].push(nt):(Oe[ct]=[nt],He(...Ye,(Mt,...Et)=>{Mt||(we[ct]=Et);var gt=Oe[ct];delete Oe[ct];for(var Zt=0,Yt=gt.length;Zt<Yt;Zt++)gt[Zt](Mt,...Et)}))});return ze.memo=we,ze.unmemoized=Me,ze}var zt=f(c?M.nextTick:p?setImmediate:l),qe=A((Me,ve,we)=>{var Oe=P(ve)?[]:{};Me(ve,(He,ze,Ye)=>{k(He)((nt,...ct)=>{ct.length<2&&([ct]=ct),Oe[ze]=ct,Ye(nt)})},He=>we(He,Oe))},3);function Je(Me,ve){return qe(n,Me,ve)}function $t(Me,ve,we){return qe(oe(ve),Me,we)}function Fe(Me,ve){var we=k(Me);return ae((Oe,He)=>{we(Oe[0],He)},ve,1)}class tt{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(ve){let we;for(;ve>0&&Ue(this.heap[ve],this.heap[we=Vt(ve)]);){let Oe=this.heap[ve];this.heap[ve]=this.heap[we],this.heap[we]=Oe,ve=we}}percDown(ve){let we;for(;(we=1+(ve<<1))<this.heap.length&&(we+1<this.heap.length&&Ue(this.heap[we+1],this.heap[we])&&(we+=1),!Ue(this.heap[ve],this.heap[we]));){let Oe=this.heap[ve];this.heap[ve]=this.heap[we],this.heap[we]=Oe,ve=we}}push(ve){ve.pushCount=++this.pushCount,this.heap.push(ve),this.percUp(this.heap.length-1)}unshift(ve){return this.heap.push(ve)}shift(){let[ve]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),ve}toArray(){return[...this]}*[Symbol.iterator](){for(let ve=0;ve<this.heap.length;ve++)yield this.heap[ve].data}remove(ve){let we=0;for(let Oe=0;Oe<this.heap.length;Oe++)ve(this.heap[Oe])||(this.heap[we]=this.heap[Oe],we++);this.heap.splice(we);for(let Oe=Vt(this.heap.length-1);Oe>=0;Oe--)this.percDown(Oe);return this}}function Vt(Me){return(Me+1>>1)-1}function Ue(Me,ve){return Me.priority!==ve.priority?Me.priority<ve.priority:Me.pushCount<ve.pushCount}function et(Me,ve){var we=Fe(Me,ve),{push:Oe,pushAsync:He}=we;function ze(Ye,nt){return Array.isArray(Ye)?Ye.map(ct=>({data:ct,priority:nt})):{data:Ye,priority:nt}}return we._tasks=new tt,we._createTaskItem=({data:Ye,priority:nt},ct)=>({data:Ye,priority:nt,callback:ct}),we.push=function(Ye,nt=0,ct){return Oe(ze(Ye,nt),ct)},we.pushAsync=function(Ye,nt=0,ct){return He(ze(Ye,nt),ct)},delete we.unshift,delete we.unshiftAsync,we}var Tt=A(function(Me,ve){if(ve=$(ve),!Array.isArray(Me))return ve(new TypeError("First argument to race must be an array of functions"));if(!Me.length)return ve();for(var we=0,Oe=Me.length;we<Oe;we++)k(Me[we])(ve)},2);function Rt(Me,ve,we,Oe){var He=[...Me].reverse();return ke(He,ve,we,Oe)}function Gt(Me){var ve=k(Me);return E(function(we,Oe){return we.push((He,...ze)=>{let Ye={};if(He&&(Ye.error=He),ze.length>0){var nt=ze;ze.length<=1&&([nt]=ze),Ye.value=nt}Oe(null,Ye)}),ve.apply(this,we)})}function an(Me){var ve;return Array.isArray(Me)?ve=Me.map(Gt):(ve={},Object.keys(Me).forEach(we=>{ve[we]=Gt.call(this,Me[we])})),ve}function rn(Me,ve,we,Oe){const He=k(we);return Ke(Me,ve,(ze,Ye)=>{He(ze,(nt,ct)=>{Ye(nt,!ct)})},Oe)}var un=A(function(Me,ve,we){return rn(n,Me,ve,we)},3),cn=A(function(Me,ve,we,Oe){return rn(oe(ve),Me,we,Oe)},4),ln=A(function(Me,ve,we){return rn(a,Me,ve,we)},3);function hn(Me){return function(){return Me}}const fn=5,pn=0;function Xt(Me,ve,we){var Oe={times:fn,intervalFunc:hn(pn)};if(arguments.length<3&&typeof Me=="function"?(we=ve||O(),ve=Me):(function(Ye,nt){if(typeof nt=="object")Ye.times=+nt.times||fn,Ye.intervalFunc=typeof nt.interval=="function"?nt.interval:hn(+nt.interval||pn),Ye.errorFilter=nt.errorFilter;else{if(typeof nt!="number"&&typeof nt!="string")throw new Error("Invalid arguments for async.retry");Ye.times=+nt||fn}}(Oe,Me),we=we||O()),typeof ve!="function")throw new Error("Invalid arguments for async.retry");var He=k(ve),ze=1;return function Ye(){He((nt,...ct)=>{nt!==!1&&(nt&&ze++<Oe.times&&(typeof Oe.errorFilter!="function"||Oe.errorFilter(nt))?setTimeout(Ye,Oe.intervalFunc(ze-1)):we(nt,...ct))})}(),we[N]}function dn(Me,ve){ve||(ve=Me,Me=null);let we=Me&&Me.arity||ve.length;b(ve)&&(we+=1);var Oe=k(ve);return E((He,ze)=>{function Ye(nt){Oe(...He,nt)}return(He.length<we-1||ze==null)&&(He.push(ze),ze=O()),Me?Xt(Me,Ye,ze):Xt(Ye,ze),ze[N]})}function vn(Me,ve){return qe(a,Me,ve)}var tn=A(function(Me,ve,we){return U(Boolean,Oe=>Oe)(n,Me,ve,we)},3),nn=A(function(Me,ve,we,Oe){return U(Boolean,He=>He)(oe(ve),Me,we,Oe)},4),Jt=A(function(Me,ve,we){return U(Boolean,Oe=>Oe)(a,Me,ve,we)},3),mn=A(function(Me,ve,we){var Oe=k(ve);return t(Me,(ze,Ye)=>{Oe(ze,(nt,ct)=>{if(nt)return Ye(nt);Ye(nt,{value:ze,criteria:ct})})},(ze,Ye)=>{if(ze)return we(ze);we(null,Ye.sort(He).map(nt=>nt.value))});function He(ze,Ye){var nt=ze.criteria,ct=Ye.criteria;return nt<ct?-1:nt>ct?1:0}},3);function on(Me,ve,we){var Oe=k(Me);return E((He,ze)=>{var Ye,nt=!1;He.push((...ct)=>{nt||(ze(...ct),clearTimeout(Ye))}),Ye=setTimeout(function(){var ct=Me.name||"anonymous",Mt=new Error('Callback function "'+ct+'" timed out.');Mt.code="ETIMEDOUT",we&&(Mt.info=we),nt=!0,ze(Mt)},ve),Oe(...He)})}function ci(Me,ve,we,Oe){var He=k(we);return je(function(ze){for(var Ye=Array(ze);ze--;)Ye[ze]=ze;return Ye}(Me),ve,He,Oe)}function ti(Me,ve,we){return ci(Me,1/0,ve,we)}function Cr(Me,ve,we){return ci(Me,1,ve,we)}function Pr(Me,ve,we,Oe){arguments.length<=3&&typeof ve=="function"&&(Oe=we,we=ve,ve=Array.isArray(Me)?[]:{}),Oe=$(Oe||O());var He=k(we);return n(Me,(ze,Ye,nt)=>{He(ve,ze,Ye,nt)},ze=>Oe(ze,ve)),Oe[N]}var xo=A(function(Me,ve){var we,Oe=null;return Se(Me,(He,ze)=>{k(He)((Ye,...nt)=>{if(Ye===!1)return ze(Ye);nt.length<2?[we]=nt:we=nt,Oe=Ye,ze(Ye?null:{})})},()=>ve(Oe,we))});function Dr(Me){return(...ve)=>(Me.unmemoized||Me)(...ve)}var Ki=A(function(Me,ve,we){we=te(we);var Oe=k(ve),He=k(Me),ze=[];function Ye(ct,...Mt){if(ct)return we(ct);ze=Mt,ct!==!1&&He(nt)}function nt(ct,Mt){return ct?we(ct):ct!==!1?Mt?void Oe(Ye):we(null,...ze):void 0}return He(nt)},3);function Lr(Me,ve,we){const Oe=k(Me);return Ki(He=>Oe((ze,Ye)=>He(ze,!Ye)),ve,we)}var qr=A(function(Me,ve){if(ve=$(ve),!Array.isArray(Me))return ve(new Error("First argument to waterfall must be an array of functions"));if(!Me.length)return ve();var we=0;function Oe(ze){k(Me[we++])(...ze,te(He))}function He(ze,...Ye){if(ze!==!1)return ze||we===Me.length?ve(ze,...Ye):void Oe(Ye)}Oe([])});const Mo={apply:m,applyEach:o,applyEachSeries:C,asyncify:h,auto:R,autoInject:Y,cargo:re,cargoQueue:le,compose:be,concat:Ae,concatLimit:xe,concatSeries:X,constant:ee,detect:V,detectLimit:q,detectSeries:ne,dir:he,doUntil:it,doWhilst:me,each:Te,eachLimit:ft,eachOf:n,eachOfLimit:e,eachOfSeries:a,eachSeries:Se,ensureAsync:Ge,every:Ct,everyLimit:Pe,everySeries:Ve,filter:yt,filterLimit:Be,filterSeries:We,forever:St,groupBy:Ze,groupByLimit:Ne,groupBySeries:It,log:Le,map:t,mapLimit:je,mapSeries:T,mapValues:Dt,mapValuesLimit:Xe,mapValuesSeries:De,memoize:Qe,nextTick:zt,parallel:Je,parallelLimit:$t,priorityQueue:et,queue:Fe,race:Tt,reduce:ke,reduceRight:Rt,reflect:Gt,reflectAll:an,reject:un,rejectLimit:cn,rejectSeries:ln,retry:Xt,retryable:dn,seq:ge,series:vn,setImmediate:g,some:tn,someLimit:nn,someSeries:Jt,sortBy:mn,timeout:on,times:ti,timesLimit:ci,timesSeries:Cr,transform:Pr,tryEach:xo,unmemoize:Dr,until:Lr,waterfall:qr,whilst:Ki,all:Ct,allLimit:Pe,allSeries:Ve,any:tn,anyLimit:nn,anySeries:Jt,find:V,findLimit:q,findSeries:ne,flatMap:Ae,flatMapLimit:xe,flatMapSeries:X,forEach:Te,forEachSeries:Se,forEachLimit:ft,forEachOf:n,forEachOfSeries:a,forEachOfLimit:e,inject:ke,foldl:ke,foldr:Rt,select:yt,selectLimit:Be,selectSeries:We,wrapSync:h,during:Ki,doDuring:me}},4946:H=>{H.exports=JSON.parse('{"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":{"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"},"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"}}')},5207:H=>{H.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},1308:H=>{H.exports=JSON.parse('{"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"}')},9799:H=>{H.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},8597:H=>{H.exports={i8:"6.5.4"}},3765:H=>{H.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},5454:H=>{H.exports=JSON.parse('{"name":"minio","version":"7.0.32","description":"S3 Compatible Cloud Storage client","main":"./dist/main/minio.js","scripts":{"compile":"gulp compile","test":"gulp test","lint":"gulp lint","lint-fix":"gulp lint --fix","prepublishOnly":"gulp test","functional":"gulp functionalTest","browserify":"gulp browserify","prepare":"npm run compile"},"repository":{"type":"git","url":"git+https://github.com/minio/minio-js.git"},"author":{"name":"MinIO, Inc.","email":"","url":"https://min.io"},"engines":{"node":">8 <=18"},"license":"Apache-2.0","bugs":{"url":"https://github.com/minio/minio-js/issues","mail":""},"homepage":"https://github.com/minio/minio-js#readme","dependencies":{"async":"^3.1.0","block-stream2":"^2.0.0","browser-or-node":"^1.3.0","buffer-crc32":"^0.2.13","crypto-browserify":"^3.12.0","es6-error":"^4.1.1","fast-xml-parser":"^3.17.5","ipaddr.js":"^2.0.1","json-stream":"^1.0.0","lodash":"^4.17.21","mime-types":"^2.1.14","mkdirp":"^0.5.1","query-string":"^7.1.1","through2":"^3.0.1","web-encoding":"^1.1.5","xml":"^1.0.0","xml2js":"^0.4.15"},"devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.10","babelify":"^10.0.0","browserify":"^16.5.2","chai":"^4.2.0","eslint":"^8.9.0","gulp":"^4.0.2","gulp-babel":"^8.0.0","gulp-eslint":"^4.0.2","gulp-if":"^3.0.0","gulp-mocha":"^8.0.0","gulp-sourcemaps":"^2.6.5","mocha":"^9.2.0","mocha-steps":"^1.1.0","nock":"^13.2.2","source-map-support":"^0.5.13","split-file":"^2.2.2","superagent":"^5.1.0","uuid":"^3.3.2"},"keywords":["api","amazon","minio","cloud","s3","storage"]}')},2562:H=>{H.exports=JSON.parse('{"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"}')}},Q={};function ue(H){var _=Q[H];if(_!==void 0)return _.exports;var y=Q[H]={id:H,loaded:!1,exports:{}};return L[H].call(y.exports,y,y.exports,ue),y.loaded=!0,y.exports}ue.d=(H,_)=>{for(var y in _)ue.o(_,y)&&!ue.o(H,y)&&Object.defineProperty(H,y,{enumerable:!0,get:_[y]})},ue.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),ue.o=(H,_)=>Object.prototype.hasOwnProperty.call(H,_),ue.r=H=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(H,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(H,"__esModule",{value:!0})},ue.nmd=H=>(H.paths=[],H.children||(H.children=[]),H);var de={};return(()=>{ue.r(de),ue.d(de,{Minio:()=>_,initMinio:()=>M,putObjectBuffer:()=>v});var H=ue(8764).Buffer;const _=ue(2525);let y=null;function M(m){if(!m)throw new Error("Minio的配置不能为空");y=m;const E=(m.endPoint||"").split(":");E[0]&&(y.endPoint=E[0]),E[1]&&(y.port=Number(E[1]))}function v(m,E,s,p,c){if(!y)throw new Error("请先初始化Minio");let l=H.from(s);new(ue(2525)).Client(y).putObject(m,E,l,p,c)}})(),de})())})(oc);var sc=oc.exports,Fs=(G=>(G[G.Robot=1]="Robot",G[G.User=2]="User",G[G.System=3]="System",G))(Fs||{}),ac={exports:{}};(function(G,I){(function(L,Q){G.exports=Q()})(bu,function(){var L=1e3,Q=6e4,ue=36e5,de="millisecond",H="second",_="minute",y="hour",M="day",v="week",m="month",E="quarter",s="year",p="date",c="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(te){var J=["th","st","nd","rd"],oe=te%100;return"["+te+(J[(oe-20)%10]||J[oe]||J[0])+"]"}},h=function(te,J,oe){var e=String(te);return!e||e.length>=J?te:""+Array(J+1-e.length).join(oe)+te},u={s:h,z:function(te){var J=-te.utcOffset(),oe=Math.abs(J),e=Math.floor(oe/60),r=oe%60;return(J<=0?"+":"-")+h(e,2,"0")+":"+h(r,2,"0")},m:function te(J,oe){if(J.date()<oe.date())return-te(oe,J);var e=12*(oe.year()-J.year())+(oe.month()-J.month()),r=J.clone().add(e,m),i=oe-r<0,n=J.clone().add(e+(i?-1:1),m);return+(-(e+(oe-r)/(i?r-n:n-r))||0)},a:function(te){return te<0?Math.ceil(te)||0:Math.floor(te)},p:function(te){return{M:m,y:s,w:v,d:M,D:p,h:y,m:_,s:H,ms:de,Q:E}[te]||String(te||"").toLowerCase().replace(/s$/,"")},u:function(te){return te===void 0}},w="en",b={};b[w]=g;var k="$isDayjsObject",A=function(te){return te instanceof B||!(!te||!te[k])},x=function te(J,oe,e){var r;if(!J)return w;if(typeof J=="string"){var i=J.toLowerCase();b[i]&&(r=i),oe&&(b[i]=oe,r=i);var n=J.split("-");if(!r&&n.length>1)return te(n[0])}else{var t=J.name;b[t]=J,r=t}return!e&&r&&(w=r),r||!e&&w},j=function(te,J){if(A(te))return te.clone();var oe=typeof J=="object"?J:{};return oe.date=te,oe.args=arguments,new B(oe)},P=u;P.l=x,P.i=A,P.w=function(te,J){return j(te,{locale:J.$L,utc:J.$u,x:J.$x,$offset:J.$offset})};var B=function(){function te(oe){this.$L=x(oe.locale,null,!0),this.parse(oe),this.$x=this.$x||oe.x||{},this[k]=!0}var J=te.prototype;return J.parse=function(oe){this.$d=function(e){var r=e.date,i=e.utc;if(r===null)return new Date(NaN);if(P.u(r))return new Date;if(r instanceof Date)return new Date(r);if(typeof r=="string"&&!/Z$/i.test(r)){var n=r.match(l);if(n){var t=n[2]-1||0,o=(n[7]||"0").substring(0,3);return i?new Date(Date.UTC(n[1],t,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],t,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(r)}(oe),this.init()},J.init=function(){var oe=this.$d;this.$y=oe.getFullYear(),this.$M=oe.getMonth(),this.$D=oe.getDate(),this.$W=oe.getDay(),this.$H=oe.getHours(),this.$m=oe.getMinutes(),this.$s=oe.getSeconds(),this.$ms=oe.getMilliseconds()},J.$utils=function(){return P},J.isValid=function(){return this.$d.toString()!==c},J.isSame=function(oe,e){var r=j(oe);return this.startOf(e)<=r&&r<=this.endOf(e)},J.isAfter=function(oe,e){return j(oe)<this.startOf(e)},J.isBefore=function(oe,e){return this.endOf(e)<j(oe)},J.$g=function(oe,e,r){return P.u(oe)?this[e]:this.set(r,oe)},J.unix=function(){return Math.floor(this.valueOf()/1e3)},J.valueOf=function(){return this.$d.getTime()},J.startOf=function(oe,e){var r=this,i=!!P.u(e)||e,n=P.p(oe),t=function(F,Z){var ie=P.w(r.$u?Date.UTC(r.$y,Z,F):new Date(r.$y,Z,F),r);return i?ie:ie.endOf(M)},o=function(F,Z){return P.w(r.toDate()[F].apply(r.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(Z)),r)},a=this.$W,T=this.$M,C=this.$D,N="set"+(this.$u?"UTC":"");switch(n){case s:return i?t(1,0):t(31,11);case m:return i?t(1,T):t(0,T+1);case v:var O=this.$locale().weekStart||0,R=(a<O?a+7:a)-O;return t(i?C-R:C+(6-R),T);case M:case p:return o(N+"Hours",0);case y:return o(N+"Minutes",1);case _:return o(N+"Seconds",2);case H:return o(N+"Milliseconds",3);default:return this.clone()}},J.endOf=function(oe){return this.startOf(oe,!1)},J.$set=function(oe,e){var r,i=P.p(oe),n="set"+(this.$u?"UTC":""),t=(r={},r[M]=n+"Date",r[p]=n+"Date",r[m]=n+"Month",r[s]=n+"FullYear",r[y]=n+"Hours",r[_]=n+"Minutes",r[H]=n+"Seconds",r[de]=n+"Milliseconds",r)[i],o=i===M?this.$D+(e-this.$W):e;if(i===m||i===s){var a=this.clone().set(p,1);a.$d[t](o),a.init(),this.$d=a.set(p,Math.min(this.$D,a.daysInMonth())).$d}else t&&this.$d[t](o);return this.init(),this},J.set=function(oe,e){return this.clone().$set(oe,e)},J.get=function(oe){return this[P.p(oe)]()},J.add=function(oe,e){var r,i=this;oe=Number(oe);var n=P.p(e),t=function(T){var C=j(i);return P.w(C.date(C.date()+Math.round(T*oe)),i)};if(n===m)return this.set(m,this.$M+oe);if(n===s)return this.set(s,this.$y+oe);if(n===M)return t(1);if(n===v)return t(7);var o=(r={},r[_]=Q,r[y]=ue,r[H]=L,r)[n]||1,a=this.$d.getTime()+oe*o;return P.w(a,this)},J.subtract=function(oe,e){return this.add(-1*oe,e)},J.format=function(oe){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||c;var i=oe||"YYYY-MM-DDTHH:mm:ssZ",n=P.z(this),t=this.$H,o=this.$m,a=this.$M,T=r.weekdays,C=r.months,N=r.meridiem,O=function(Z,ie,D,Y){return Z&&(Z[ie]||Z(e,i))||D[ie].slice(0,Y)},R=function(Z){return P.s(t%12||12,Z,"0")},F=N||function(Z,ie,D){var Y=Z<12?"AM":"PM";return D?Y.toLowerCase():Y};return i.replace(f,function(Z,ie){return ie||function(D){switch(D){case"YY":return String(e.$y).slice(-2);case"YYYY":return P.s(e.$y,4,"0");case"M":return a+1;case"MM":return P.s(a+1,2,"0");case"MMM":return O(r.monthsShort,a,C,3);case"MMMM":return O(C,a);case"D":return e.$D;case"DD":return P.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return O(r.weekdaysMin,e.$W,T,2);case"ddd":return O(r.weekdaysShort,e.$W,T,3);case"dddd":return T[e.$W];case"H":return String(t);case"HH":return P.s(t,2,"0");case"h":return R(1);case"hh":return R(2);case"a":return F(t,o,!0);case"A":return F(t,o,!1);case"m":return String(o);case"mm":return P.s(o,2,"0");case"s":return String(e.$s);case"ss":return P.s(e.$s,2,"0");case"SSS":return P.s(e.$ms,3,"0");case"Z":return n}return null}(Z)||n.replace(":","")})},J.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},J.diff=function(oe,e,r){var i,n=this,t=P.p(e),o=j(oe),a=(o.utcOffset()-this.utcOffset())*Q,T=this-o,C=function(){return P.m(n,o)};switch(t){case s:i=C()/12;break;case m:i=C();break;case E:i=C()/3;break;case v:i=(T-a)/6048e5;break;case M:i=(T-a)/864e5;break;case y:i=T/ue;break;case _:i=T/Q;break;case H:i=T/L;break;default:i=T}return r?i:P.a(i)},J.daysInMonth=function(){return this.endOf(m).$D},J.$locale=function(){return b[this.$L]},J.locale=function(oe,e){if(!oe)return this.$L;var r=this.clone(),i=x(oe,e,!0);return i&&(r.$L=i),r},J.clone=function(){return P.w(this.$d,this)},J.toDate=function(){return new Date(this.valueOf())},J.toJSON=function(){return this.isValid()?this.toISOString():null},J.toISOString=function(){return this.$d.toISOString()},J.toString=function(){return this.$d.toUTCString()},te}(),$=B.prototype;return j.prototype=$,[["$ms",de],["$s",H],["$m",_],["$H",y],["$W",M],["$M",m],["$y",s],["$D",p]].forEach(function(te){$[te[1]]=function(J){return this.$g(J,te[0],te[1])}}),j.extend=function(te,J){return te.$i||(te(J,B,j),te.$i=!0),j},j.locale=x,j.isDayjs=A,j.unix=function(te){return j(1e3*te)},j.en=b[w],j.Ls=b,j.p={},j})})(ac);var op=ac.exports;const uc=wu(op);typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const sp=[];for(let G=0;G<256;++G)sp.push((G+256).toString(16).slice(1));var Us={},lo={};lo.byteLength=cp,lo.toByteArray=hp,lo.fromByteArray=dp;for(var ki=[],ai=[],ap=typeof Uint8Array<"u"?Uint8Array:Array,zs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vr=0,up=zs.length;vr<up;++vr)ki[vr]=zs[vr],ai[zs.charCodeAt(vr)]=vr;ai["-".charCodeAt(0)]=62,ai["_".charCodeAt(0)]=63;function cc(G){var I=G.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var L=G.indexOf("=");L===-1&&(L=I);var Q=L===I?0:4-L%4;return[L,Q]}function cp(G){var I=cc(G),L=I[0],Q=I[1];return(L+Q)*3/4-Q}function lp(G,I,L){return(I+L)*3/4-L}function hp(G){var I,L=cc(G),Q=L[0],ue=L[1],de=new ap(lp(G,Q,ue)),H=0,_=ue>0?Q-4:Q,y;for(y=0;y<_;y+=4)I=ai[G.charCodeAt(y)]<<18|ai[G.charCodeAt(y+1)]<<12|ai[G.charCodeAt(y+2)]<<6|ai[G.charCodeAt(y+3)],de[H++]=I>>16&255,de[H++]=I>>8&255,de[H++]=I&255;return ue===2&&(I=ai[G.charCodeAt(y)]<<2|ai[G.charCodeAt(y+1)]>>4,de[H++]=I&255),ue===1&&(I=ai[G.charCodeAt(y)]<<10|ai[G.charCodeAt(y+1)]<<4|ai[G.charCodeAt(y+2)]>>2,de[H++]=I>>8&255,de[H++]=I&255),de}function fp(G){return ki[G>>18&63]+ki[G>>12&63]+ki[G>>6&63]+ki[G&63]}function pp(G,I,L){for(var Q,ue=[],de=I;de<L;de+=3)Q=(G[de]<<16&16711680)+(G[de+1]<<8&65280)+(G[de+2]&255),ue.push(fp(Q));return ue.join("")}function dp(G){for(var I,L=G.length,Q=L%3,ue=[],de=16383,H=0,_=L-Q;H<_;H+=de)ue.push(pp(G,H,H+de>_?_:H+de));return Q===1?(I=G[L-1],ue.push(ki[I>>2]+ki[I<<4&63]+"==")):Q===2&&(I=(G[L-2]<<8)+G[L-1],ue.push(ki[I>>10]+ki[I>>4&63]+ki[I<<2&63]+"=")),ue.join("")}var $s={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */$s.read=function(G,I,L,Q,ue){var de,H,_=ue*8-Q-1,y=(1<<_)-1,M=y>>1,v=-7,m=L?ue-1:0,E=L?-1:1,s=G[I+m];for(m+=E,de=s&(1<<-v)-1,s>>=-v,v+=_;v>0;de=de*256+G[I+m],m+=E,v-=8);for(H=de&(1<<-v)-1,de>>=-v,v+=Q;v>0;H=H*256+G[I+m],m+=E,v-=8);if(de===0)de=1-M;else{if(de===y)return H?NaN:(s?-1:1)*(1/0);H=H+Math.pow(2,Q),de=de-M}return(s?-1:1)*H*Math.pow(2,de-Q)},$s.write=function(G,I,L,Q,ue,de){var H,_,y,M=de*8-ue-1,v=(1<<M)-1,m=v>>1,E=ue===23?Math.pow(2,-24)-Math.pow(2,-77):0,s=Q?0:de-1,p=Q?1:-1,c=I<0||I===0&&1/I<0?1:0;for(I=Math.abs(I),isNaN(I)||I===1/0?(_=isNaN(I)?1:0,H=v):(H=Math.floor(Math.log(I)/Math.LN2),I*(y=Math.pow(2,-H))<1&&(H--,y*=2),H+m>=1?I+=E/y:I+=E*Math.pow(2,1-m),I*y>=2&&(H++,y/=2),H+m>=v?(_=0,H=v):H+m>=1?(_=(I*y-1)*Math.pow(2,ue),H=H+m):(_=I*Math.pow(2,m-1)*Math.pow(2,ue),H=0));ue>=8;G[L+s]=_&255,s+=p,_/=256,ue-=8);for(H=H<<ue|_,M+=ue;M>0;G[L+s]=H&255,s+=p,H/=256,M-=8);G[L+s-p]|=c*128};/*!
|
|
133
|
+
* The buffer module from node.js, for the browser.
|
|
134
|
+
*
|
|
135
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
136
|
+
* @license MIT
|
|
137
|
+
*/(function(G){const I=lo,L=$s,Q=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;G.Buffer=_,G.SlowBuffer=g,G.INSPECT_MAX_BYTES=50;const ue=2147483647;G.kMaxLength=ue,_.TYPED_ARRAY_SUPPORT=de(),!_.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 de(){try{const U=new Uint8Array(1),V={foo:function(){return 42}};return Object.setPrototypeOf(V,Uint8Array.prototype),Object.setPrototypeOf(U,V),U.foo()===42}catch{return!1}}Object.defineProperty(_.prototype,"parent",{enumerable:!0,get:function(){if(_.isBuffer(this))return this.buffer}}),Object.defineProperty(_.prototype,"offset",{enumerable:!0,get:function(){if(_.isBuffer(this))return this.byteOffset}});function H(U){if(U>ue)throw new RangeError('The value "'+U+'" is invalid for option "size"');const V=new Uint8Array(U);return Object.setPrototypeOf(V,_.prototype),V}function _(U,V,q){if(typeof U=="number"){if(typeof V=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(U)}return y(U,V,q)}_.poolSize=8192;function y(U,V,q){if(typeof U=="string")return E(U,V);if(ArrayBuffer.isView(U))return p(U);if(U==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);if(je(U,ArrayBuffer)||U&&je(U.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(je(U,SharedArrayBuffer)||U&&je(U.buffer,SharedArrayBuffer)))return c(U,V,q);if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ne=U.valueOf&&U.valueOf();if(ne!=null&&ne!==U)return _.from(ne,V,q);const fe=l(U);if(fe)return fe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof U[Symbol.toPrimitive]=="function")return _.from(U[Symbol.toPrimitive]("string"),V,q);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U)}_.from=function(U,V,q){return y(U,V,q)},Object.setPrototypeOf(_.prototype,Uint8Array.prototype),Object.setPrototypeOf(_,Uint8Array);function M(U){if(typeof U!="number")throw new TypeError('"size" argument must be of type number');if(U<0)throw new RangeError('The value "'+U+'" is invalid for option "size"')}function v(U,V,q){return M(U),U<=0?H(U):V!==void 0?typeof q=="string"?H(U).fill(V,q):H(U).fill(V):H(U)}_.alloc=function(U,V,q){return v(U,V,q)};function m(U){return M(U),H(U<0?0:f(U)|0)}_.allocUnsafe=function(U){return m(U)},_.allocUnsafeSlow=function(U){return m(U)};function E(U,V){if((typeof V!="string"||V==="")&&(V="utf8"),!_.isEncoding(V))throw new TypeError("Unknown encoding: "+V);const q=h(U,V)|0;let ne=H(q);const fe=ne.write(U,V);return fe!==q&&(ne=ne.slice(0,fe)),ne}function s(U){const V=U.length<0?0:f(U.length)|0,q=H(V);for(let ne=0;ne<V;ne+=1)q[ne]=U[ne]&255;return q}function p(U){if(je(U,Uint8Array)){const V=new Uint8Array(U);return c(V.buffer,V.byteOffset,V.byteLength)}return s(U)}function c(U,V,q){if(V<0||U.byteLength<V)throw new RangeError('"offset" is outside of buffer bounds');if(U.byteLength<V+(q||0))throw new RangeError('"length" is outside of buffer bounds');let ne;return V===void 0&&q===void 0?ne=new Uint8Array(U):q===void 0?ne=new Uint8Array(U,V):ne=new Uint8Array(U,V,q),Object.setPrototypeOf(ne,_.prototype),ne}function l(U){if(_.isBuffer(U)){const V=f(U.length)|0,q=H(V);return q.length===0||U.copy(q,0,0,V),q}if(U.length!==void 0)return typeof U.length!="number"||xe(U.length)?H(0):s(U);if(U.type==="Buffer"&&Array.isArray(U.data))return s(U.data)}function f(U){if(U>=ue)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ue.toString(16)+" bytes");return U|0}function g(U){return+U!=U&&(U=0),_.alloc(+U)}_.isBuffer=function(V){return V!=null&&V._isBuffer===!0&&V!==_.prototype},_.compare=function(V,q){if(je(V,Uint8Array)&&(V=_.from(V,V.offset,V.byteLength)),je(q,Uint8Array)&&(q=_.from(q,q.offset,q.byteLength)),!_.isBuffer(V)||!_.isBuffer(q))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(V===q)return 0;let ne=V.length,fe=q.length;for(let he=0,me=Math.min(ne,fe);he<me;++he)if(V[he]!==q[he]){ne=V[he],fe=q[he];break}return ne<fe?-1:fe<ne?1:0},_.isEncoding=function(V){switch(String(V).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}},_.concat=function(V,q){if(!Array.isArray(V))throw new TypeError('"list" argument must be an Array of Buffers');if(V.length===0)return _.alloc(0);let ne;if(q===void 0)for(q=0,ne=0;ne<V.length;++ne)q+=V[ne].length;const fe=_.allocUnsafe(q);let he=0;for(ne=0;ne<V.length;++ne){let me=V[ne];if(je(me,Uint8Array))he+me.length>fe.length?(_.isBuffer(me)||(me=_.from(me)),me.copy(fe,he)):Uint8Array.prototype.set.call(fe,me,he);else if(_.isBuffer(me))me.copy(fe,he);else throw new TypeError('"list" argument must be an Array of Buffers');he+=me.length}return fe};function h(U,V){if(_.isBuffer(U))return U.length;if(ArrayBuffer.isView(U)||je(U,ArrayBuffer))return U.byteLength;if(typeof U!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof U);const q=U.length,ne=arguments.length>2&&arguments[2]===!0;if(!ne&&q===0)return 0;let fe=!1;for(;;)switch(V){case"ascii":case"latin1":case"binary":return q;case"utf8":case"utf-8":return re(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q*2;case"hex":return q>>>1;case"base64":return ge(U).length;default:if(fe)return ne?-1:re(U).length;V=(""+V).toLowerCase(),fe=!0}}_.byteLength=h;function u(U,V,q){let ne=!1;if((V===void 0||V<0)&&(V=0),V>this.length||((q===void 0||q>this.length)&&(q=this.length),q<=0)||(q>>>=0,V>>>=0,q<=V))return"";for(U||(U="utf8");;)switch(U){case"hex":return i(this,V,q);case"utf8":case"utf-8":return te(this,V,q);case"ascii":return e(this,V,q);case"latin1":case"binary":return r(this,V,q);case"base64":return $(this,V,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,V,q);default:if(ne)throw new TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),ne=!0}}_.prototype._isBuffer=!0;function w(U,V,q){const ne=U[V];U[V]=U[q],U[q]=ne}_.prototype.swap16=function(){const V=this.length;if(V%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let q=0;q<V;q+=2)w(this,q,q+1);return this},_.prototype.swap32=function(){const V=this.length;if(V%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let q=0;q<V;q+=4)w(this,q,q+3),w(this,q+1,q+2);return this},_.prototype.swap64=function(){const V=this.length;if(V%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let q=0;q<V;q+=8)w(this,q,q+7),w(this,q+1,q+6),w(this,q+2,q+5),w(this,q+3,q+4);return this},_.prototype.toString=function(){const V=this.length;return V===0?"":arguments.length===0?te(this,0,V):u.apply(this,arguments)},_.prototype.toLocaleString=_.prototype.toString,_.prototype.equals=function(V){if(!_.isBuffer(V))throw new TypeError("Argument must be a Buffer");return this===V?!0:_.compare(this,V)===0},_.prototype.inspect=function(){let V="";const q=G.INSPECT_MAX_BYTES;return V=this.toString("hex",0,q).replace(/(.{2})/g,"$1 ").trim(),this.length>q&&(V+=" ... "),"<Buffer "+V+">"},Q&&(_.prototype[Q]=_.prototype.inspect),_.prototype.compare=function(V,q,ne,fe,he){if(je(V,Uint8Array)&&(V=_.from(V,V.offset,V.byteLength)),!_.isBuffer(V))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof V);if(q===void 0&&(q=0),ne===void 0&&(ne=V?V.length:0),fe===void 0&&(fe=0),he===void 0&&(he=this.length),q<0||ne>V.length||fe<0||he>this.length)throw new RangeError("out of range index");if(fe>=he&&q>=ne)return 0;if(fe>=he)return-1;if(q>=ne)return 1;if(q>>>=0,ne>>>=0,fe>>>=0,he>>>=0,this===V)return 0;let me=he-fe,it=ne-q;const _e=Math.min(me,it),Te=this.slice(fe,he),ft=V.slice(q,ne);for(let Se=0;Se<_e;++Se)if(Te[Se]!==ft[Se]){me=Te[Se],it=ft[Se];break}return me<it?-1:it<me?1:0};function b(U,V,q,ne,fe){if(U.length===0)return-1;if(typeof q=="string"?(ne=q,q=0):q>2147483647?q=2147483647:q<-2147483648&&(q=-2147483648),q=+q,xe(q)&&(q=fe?0:U.length-1),q<0&&(q=U.length+q),q>=U.length){if(fe)return-1;q=U.length-1}else if(q<0)if(fe)q=0;else return-1;if(typeof V=="string"&&(V=_.from(V,ne)),_.isBuffer(V))return V.length===0?-1:k(U,V,q,ne,fe);if(typeof V=="number")return V=V&255,typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(U,V,q):Uint8Array.prototype.lastIndexOf.call(U,V,q):k(U,[V],q,ne,fe);throw new TypeError("val must be string, number or Buffer")}function k(U,V,q,ne,fe){let he=1,me=U.length,it=V.length;if(ne!==void 0&&(ne=String(ne).toLowerCase(),ne==="ucs2"||ne==="ucs-2"||ne==="utf16le"||ne==="utf-16le")){if(U.length<2||V.length<2)return-1;he=2,me/=2,it/=2,q/=2}function _e(ft,Se){return he===1?ft[Se]:ft.readUInt16BE(Se*he)}let Te;if(fe){let ft=-1;for(Te=q;Te<me;Te++)if(_e(U,Te)===_e(V,ft===-1?0:Te-ft)){if(ft===-1&&(ft=Te),Te-ft+1===it)return ft*he}else ft!==-1&&(Te-=Te-ft),ft=-1}else for(q+it>me&&(q=me-it),Te=q;Te>=0;Te--){let ft=!0;for(let Se=0;Se<it;Se++)if(_e(U,Te+Se)!==_e(V,Se)){ft=!1;break}if(ft)return Te}return-1}_.prototype.includes=function(V,q,ne){return this.indexOf(V,q,ne)!==-1},_.prototype.indexOf=function(V,q,ne){return b(this,V,q,ne,!0)},_.prototype.lastIndexOf=function(V,q,ne){return b(this,V,q,ne,!1)};function A(U,V,q,ne){q=Number(q)||0;const fe=U.length-q;ne?(ne=Number(ne),ne>fe&&(ne=fe)):ne=fe;const he=V.length;ne>he/2&&(ne=he/2);let me;for(me=0;me<ne;++me){const it=parseInt(V.substr(me*2,2),16);if(xe(it))return me;U[q+me]=it}return me}function x(U,V,q,ne){return be(re(V,U.length-q),U,q,ne)}function j(U,V,q,ne){return be(le(V),U,q,ne)}function P(U,V,q,ne){return be(ge(V),U,q,ne)}function B(U,V,q,ne){return be(ke(V,U.length-q),U,q,ne)}_.prototype.write=function(V,q,ne,fe){if(q===void 0)fe="utf8",ne=this.length,q=0;else if(ne===void 0&&typeof q=="string")fe=q,ne=this.length,q=0;else if(isFinite(q))q=q>>>0,isFinite(ne)?(ne=ne>>>0,fe===void 0&&(fe="utf8")):(fe=ne,ne=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const he=this.length-q;if((ne===void 0||ne>he)&&(ne=he),V.length>0&&(ne<0||q<0)||q>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");let me=!1;for(;;)switch(fe){case"hex":return A(this,V,q,ne);case"utf8":case"utf-8":return x(this,V,q,ne);case"ascii":case"latin1":case"binary":return j(this,V,q,ne);case"base64":return P(this,V,q,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,V,q,ne);default:if(me)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),me=!0}},_.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function $(U,V,q){return V===0&&q===U.length?I.fromByteArray(U):I.fromByteArray(U.slice(V,q))}function te(U,V,q){q=Math.min(U.length,q);const ne=[];let fe=V;for(;fe<q;){const he=U[fe];let me=null,it=he>239?4:he>223?3:he>191?2:1;if(fe+it<=q){let _e,Te,ft,Se;switch(it){case 1:he<128&&(me=he);break;case 2:_e=U[fe+1],(_e&192)===128&&(Se=(he&31)<<6|_e&63,Se>127&&(me=Se));break;case 3:_e=U[fe+1],Te=U[fe+2],(_e&192)===128&&(Te&192)===128&&(Se=(he&15)<<12|(_e&63)<<6|Te&63,Se>2047&&(Se<55296||Se>57343)&&(me=Se));break;case 4:_e=U[fe+1],Te=U[fe+2],ft=U[fe+3],(_e&192)===128&&(Te&192)===128&&(ft&192)===128&&(Se=(he&15)<<18|(_e&63)<<12|(Te&63)<<6|ft&63,Se>65535&&Se<1114112&&(me=Se))}}me===null?(me=65533,it=1):me>65535&&(me-=65536,ne.push(me>>>10&1023|55296),me=56320|me&1023),ne.push(me),fe+=it}return oe(ne)}const J=4096;function oe(U){const V=U.length;if(V<=J)return String.fromCharCode.apply(String,U);let q="",ne=0;for(;ne<V;)q+=String.fromCharCode.apply(String,U.slice(ne,ne+=J));return q}function e(U,V,q){let ne="";q=Math.min(U.length,q);for(let fe=V;fe<q;++fe)ne+=String.fromCharCode(U[fe]&127);return ne}function r(U,V,q){let ne="";q=Math.min(U.length,q);for(let fe=V;fe<q;++fe)ne+=String.fromCharCode(U[fe]);return ne}function i(U,V,q){const ne=U.length;(!V||V<0)&&(V=0),(!q||q<0||q>ne)&&(q=ne);let fe="";for(let he=V;he<q;++he)fe+=Ae[U[he]];return fe}function n(U,V,q){const ne=U.slice(V,q);let fe="";for(let he=0;he<ne.length-1;he+=2)fe+=String.fromCharCode(ne[he]+ne[he+1]*256);return fe}_.prototype.slice=function(V,q){const ne=this.length;V=~~V,q=q===void 0?ne:~~q,V<0?(V+=ne,V<0&&(V=0)):V>ne&&(V=ne),q<0?(q+=ne,q<0&&(q=0)):q>ne&&(q=ne),q<V&&(q=V);const fe=this.subarray(V,q);return Object.setPrototypeOf(fe,_.prototype),fe};function t(U,V,q){if(U%1!==0||U<0)throw new RangeError("offset is not uint");if(U+V>q)throw new RangeError("Trying to access beyond buffer length")}_.prototype.readUintLE=_.prototype.readUIntLE=function(V,q,ne){V=V>>>0,q=q>>>0,ne||t(V,q,this.length);let fe=this[V],he=1,me=0;for(;++me<q&&(he*=256);)fe+=this[V+me]*he;return fe},_.prototype.readUintBE=_.prototype.readUIntBE=function(V,q,ne){V=V>>>0,q=q>>>0,ne||t(V,q,this.length);let fe=this[V+--q],he=1;for(;q>0&&(he*=256);)fe+=this[V+--q]*he;return fe},_.prototype.readUint8=_.prototype.readUInt8=function(V,q){return V=V>>>0,q||t(V,1,this.length),this[V]},_.prototype.readUint16LE=_.prototype.readUInt16LE=function(V,q){return V=V>>>0,q||t(V,2,this.length),this[V]|this[V+1]<<8},_.prototype.readUint16BE=_.prototype.readUInt16BE=function(V,q){return V=V>>>0,q||t(V,2,this.length),this[V]<<8|this[V+1]},_.prototype.readUint32LE=_.prototype.readUInt32LE=function(V,q){return V=V>>>0,q||t(V,4,this.length),(this[V]|this[V+1]<<8|this[V+2]<<16)+this[V+3]*16777216},_.prototype.readUint32BE=_.prototype.readUInt32BE=function(V,q){return V=V>>>0,q||t(V,4,this.length),this[V]*16777216+(this[V+1]<<16|this[V+2]<<8|this[V+3])},_.prototype.readBigUInt64LE=X(function(V){V=V>>>0,Y(V,"offset");const q=this[V],ne=this[V+7];(q===void 0||ne===void 0)&&z(V,this.length-8);const fe=q+this[++V]*2**8+this[++V]*2**16+this[++V]*2**24,he=this[++V]+this[++V]*2**8+this[++V]*2**16+ne*2**24;return BigInt(fe)+(BigInt(he)<<BigInt(32))}),_.prototype.readBigUInt64BE=X(function(V){V=V>>>0,Y(V,"offset");const q=this[V],ne=this[V+7];(q===void 0||ne===void 0)&&z(V,this.length-8);const fe=q*2**24+this[++V]*2**16+this[++V]*2**8+this[++V],he=this[++V]*2**24+this[++V]*2**16+this[++V]*2**8+ne;return(BigInt(fe)<<BigInt(32))+BigInt(he)}),_.prototype.readIntLE=function(V,q,ne){V=V>>>0,q=q>>>0,ne||t(V,q,this.length);let fe=this[V],he=1,me=0;for(;++me<q&&(he*=256);)fe+=this[V+me]*he;return he*=128,fe>=he&&(fe-=Math.pow(2,8*q)),fe},_.prototype.readIntBE=function(V,q,ne){V=V>>>0,q=q>>>0,ne||t(V,q,this.length);let fe=q,he=1,me=this[V+--fe];for(;fe>0&&(he*=256);)me+=this[V+--fe]*he;return he*=128,me>=he&&(me-=Math.pow(2,8*q)),me},_.prototype.readInt8=function(V,q){return V=V>>>0,q||t(V,1,this.length),this[V]&128?(255-this[V]+1)*-1:this[V]},_.prototype.readInt16LE=function(V,q){V=V>>>0,q||t(V,2,this.length);const ne=this[V]|this[V+1]<<8;return ne&32768?ne|4294901760:ne},_.prototype.readInt16BE=function(V,q){V=V>>>0,q||t(V,2,this.length);const ne=this[V+1]|this[V]<<8;return ne&32768?ne|4294901760:ne},_.prototype.readInt32LE=function(V,q){return V=V>>>0,q||t(V,4,this.length),this[V]|this[V+1]<<8|this[V+2]<<16|this[V+3]<<24},_.prototype.readInt32BE=function(V,q){return V=V>>>0,q||t(V,4,this.length),this[V]<<24|this[V+1]<<16|this[V+2]<<8|this[V+3]},_.prototype.readBigInt64LE=X(function(V){V=V>>>0,Y(V,"offset");const q=this[V],ne=this[V+7];(q===void 0||ne===void 0)&&z(V,this.length-8);const fe=this[V+4]+this[V+5]*2**8+this[V+6]*2**16+(ne<<24);return(BigInt(fe)<<BigInt(32))+BigInt(q+this[++V]*2**8+this[++V]*2**16+this[++V]*2**24)}),_.prototype.readBigInt64BE=X(function(V){V=V>>>0,Y(V,"offset");const q=this[V],ne=this[V+7];(q===void 0||ne===void 0)&&z(V,this.length-8);const fe=(q<<24)+this[++V]*2**16+this[++V]*2**8+this[++V];return(BigInt(fe)<<BigInt(32))+BigInt(this[++V]*2**24+this[++V]*2**16+this[++V]*2**8+ne)}),_.prototype.readFloatLE=function(V,q){return V=V>>>0,q||t(V,4,this.length),L.read(this,V,!0,23,4)},_.prototype.readFloatBE=function(V,q){return V=V>>>0,q||t(V,4,this.length),L.read(this,V,!1,23,4)},_.prototype.readDoubleLE=function(V,q){return V=V>>>0,q||t(V,8,this.length),L.read(this,V,!0,52,8)},_.prototype.readDoubleBE=function(V,q){return V=V>>>0,q||t(V,8,this.length),L.read(this,V,!1,52,8)};function o(U,V,q,ne,fe,he){if(!_.isBuffer(U))throw new TypeError('"buffer" argument must be a Buffer instance');if(V>fe||V<he)throw new RangeError('"value" argument is out of bounds');if(q+ne>U.length)throw new RangeError("Index out of range")}_.prototype.writeUintLE=_.prototype.writeUIntLE=function(V,q,ne,fe){if(V=+V,q=q>>>0,ne=ne>>>0,!fe){const it=Math.pow(2,8*ne)-1;o(this,V,q,ne,it,0)}let he=1,me=0;for(this[q]=V&255;++me<ne&&(he*=256);)this[q+me]=V/he&255;return q+ne},_.prototype.writeUintBE=_.prototype.writeUIntBE=function(V,q,ne,fe){if(V=+V,q=q>>>0,ne=ne>>>0,!fe){const it=Math.pow(2,8*ne)-1;o(this,V,q,ne,it,0)}let he=ne-1,me=1;for(this[q+he]=V&255;--he>=0&&(me*=256);)this[q+he]=V/me&255;return q+ne},_.prototype.writeUint8=_.prototype.writeUInt8=function(V,q,ne){return V=+V,q=q>>>0,ne||o(this,V,q,1,255,0),this[q]=V&255,q+1},_.prototype.writeUint16LE=_.prototype.writeUInt16LE=function(V,q,ne){return V=+V,q=q>>>0,ne||o(this,V,q,2,65535,0),this[q]=V&255,this[q+1]=V>>>8,q+2},_.prototype.writeUint16BE=_.prototype.writeUInt16BE=function(V,q,ne){return V=+V,q=q>>>0,ne||o(this,V,q,2,65535,0),this[q]=V>>>8,this[q+1]=V&255,q+2},_.prototype.writeUint32LE=_.prototype.writeUInt32LE=function(V,q,ne){return V=+V,q=q>>>0,ne||o(this,V,q,4,4294967295,0),this[q+3]=V>>>24,this[q+2]=V>>>16,this[q+1]=V>>>8,this[q]=V&255,q+4},_.prototype.writeUint32BE=_.prototype.writeUInt32BE=function(V,q,ne){return V=+V,q=q>>>0,ne||o(this,V,q,4,4294967295,0),this[q]=V>>>24,this[q+1]=V>>>16,this[q+2]=V>>>8,this[q+3]=V&255,q+4};function a(U,V,q,ne,fe){D(V,ne,fe,U,q,7);let he=Number(V&BigInt(4294967295));U[q++]=he,he=he>>8,U[q++]=he,he=he>>8,U[q++]=he,he=he>>8,U[q++]=he;let me=Number(V>>BigInt(32)&BigInt(4294967295));return U[q++]=me,me=me>>8,U[q++]=me,me=me>>8,U[q++]=me,me=me>>8,U[q++]=me,q}function T(U,V,q,ne,fe){D(V,ne,fe,U,q,7);let he=Number(V&BigInt(4294967295));U[q+7]=he,he=he>>8,U[q+6]=he,he=he>>8,U[q+5]=he,he=he>>8,U[q+4]=he;let me=Number(V>>BigInt(32)&BigInt(4294967295));return U[q+3]=me,me=me>>8,U[q+2]=me,me=me>>8,U[q+1]=me,me=me>>8,U[q]=me,q+8}_.prototype.writeBigUInt64LE=X(function(V,q=0){return a(this,V,q,BigInt(0),BigInt("0xffffffffffffffff"))}),_.prototype.writeBigUInt64BE=X(function(V,q=0){return T(this,V,q,BigInt(0),BigInt("0xffffffffffffffff"))}),_.prototype.writeIntLE=function(V,q,ne,fe){if(V=+V,q=q>>>0,!fe){const _e=Math.pow(2,8*ne-1);o(this,V,q,ne,_e-1,-_e)}let he=0,me=1,it=0;for(this[q]=V&255;++he<ne&&(me*=256);)V<0&&it===0&&this[q+he-1]!==0&&(it=1),this[q+he]=(V/me>>0)-it&255;return q+ne},_.prototype.writeIntBE=function(V,q,ne,fe){if(V=+V,q=q>>>0,!fe){const _e=Math.pow(2,8*ne-1);o(this,V,q,ne,_e-1,-_e)}let he=ne-1,me=1,it=0;for(this[q+he]=V&255;--he>=0&&(me*=256);)V<0&&it===0&&this[q+he+1]!==0&&(it=1),this[q+he]=(V/me>>0)-it&255;return q+ne},_.prototype.writeInt8=function(V,q,ne){return V=+V,q=q>>>0,ne||o(this,V,q,1,127,-128),V<0&&(V=255+V+1),this[q]=V&255,q+1},_.prototype.writeInt16LE=function(V,q,ne){return V=+V,q=q>>>0,ne||o(this,V,q,2,32767,-32768),this[q]=V&255,this[q+1]=V>>>8,q+2},_.prototype.writeInt16BE=function(V,q,ne){return V=+V,q=q>>>0,ne||o(this,V,q,2,32767,-32768),this[q]=V>>>8,this[q+1]=V&255,q+2},_.prototype.writeInt32LE=function(V,q,ne){return V=+V,q=q>>>0,ne||o(this,V,q,4,2147483647,-2147483648),this[q]=V&255,this[q+1]=V>>>8,this[q+2]=V>>>16,this[q+3]=V>>>24,q+4},_.prototype.writeInt32BE=function(V,q,ne){return V=+V,q=q>>>0,ne||o(this,V,q,4,2147483647,-2147483648),V<0&&(V=4294967295+V+1),this[q]=V>>>24,this[q+1]=V>>>16,this[q+2]=V>>>8,this[q+3]=V&255,q+4},_.prototype.writeBigInt64LE=X(function(V,q=0){return a(this,V,q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),_.prototype.writeBigInt64BE=X(function(V,q=0){return T(this,V,q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function C(U,V,q,ne,fe,he){if(q+ne>U.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("Index out of range")}function N(U,V,q,ne,fe){return V=+V,q=q>>>0,fe||C(U,V,q,4),L.write(U,V,q,ne,23,4),q+4}_.prototype.writeFloatLE=function(V,q,ne){return N(this,V,q,!0,ne)},_.prototype.writeFloatBE=function(V,q,ne){return N(this,V,q,!1,ne)};function O(U,V,q,ne,fe){return V=+V,q=q>>>0,fe||C(U,V,q,8),L.write(U,V,q,ne,52,8),q+8}_.prototype.writeDoubleLE=function(V,q,ne){return O(this,V,q,!0,ne)},_.prototype.writeDoubleBE=function(V,q,ne){return O(this,V,q,!1,ne)},_.prototype.copy=function(V,q,ne,fe){if(!_.isBuffer(V))throw new TypeError("argument should be a Buffer");if(ne||(ne=0),!fe&&fe!==0&&(fe=this.length),q>=V.length&&(q=V.length),q||(q=0),fe>0&&fe<ne&&(fe=ne),fe===ne||V.length===0||this.length===0)return 0;if(q<0)throw new RangeError("targetStart out of bounds");if(ne<0||ne>=this.length)throw new RangeError("Index out of range");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),V.length-q<fe-ne&&(fe=V.length-q+ne);const he=fe-ne;return this===V&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(q,ne,fe):Uint8Array.prototype.set.call(V,this.subarray(ne,fe),q),he},_.prototype.fill=function(V,q,ne,fe){if(typeof V=="string"){if(typeof q=="string"?(fe=q,q=0,ne=this.length):typeof ne=="string"&&(fe=ne,ne=this.length),fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!_.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe);if(V.length===1){const me=V.charCodeAt(0);(fe==="utf8"&&me<128||fe==="latin1")&&(V=me)}}else typeof V=="number"?V=V&255:typeof V=="boolean"&&(V=Number(V));if(q<0||this.length<q||this.length<ne)throw new RangeError("Out of range index");if(ne<=q)return this;q=q>>>0,ne=ne===void 0?this.length:ne>>>0,V||(V=0);let he;if(typeof V=="number")for(he=q;he<ne;++he)this[he]=V;else{const me=_.isBuffer(V)?V:_.from(V,fe),it=me.length;if(it===0)throw new TypeError('The value "'+V+'" is invalid for argument "value"');for(he=0;he<ne-q;++he)this[he+q]=me[he%it]}return this};const R={};function F(U,V,q){R[U]=class extends q{constructor(){super(),Object.defineProperty(this,"message",{value:V.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${U}]`,this.stack,delete this.name}get code(){return U}set code(fe){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:fe,writable:!0})}toString(){return`${this.name} [${U}]: ${this.message}`}}}F("ERR_BUFFER_OUT_OF_BOUNDS",function(U){return U?`${U} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(U,V){return`The "${U}" argument must be of type number. Received type ${typeof V}`},TypeError),F("ERR_OUT_OF_RANGE",function(U,V,q){let ne=`The value of "${U}" is out of range.`,fe=q;return Number.isInteger(q)&&Math.abs(q)>2**32?fe=Z(String(q)):typeof q=="bigint"&&(fe=String(q),(q>BigInt(2)**BigInt(32)||q<-(BigInt(2)**BigInt(32)))&&(fe=Z(fe)),fe+="n"),ne+=` It must be ${V}. Received ${fe}`,ne},RangeError);function Z(U){let V="",q=U.length;const ne=U[0]==="-"?1:0;for(;q>=ne+4;q-=3)V=`_${U.slice(q-3,q)}${V}`;return`${U.slice(0,q)}${V}`}function ie(U,V,q){Y(V,"offset"),(U[V]===void 0||U[V+q]===void 0)&&z(V,U.length-(q+1))}function D(U,V,q,ne,fe,he){if(U>q||U<V){const me=typeof V=="bigint"?"n":"";let it;throw he>3?V===0||V===BigInt(0)?it=`>= 0${me} and < 2${me} ** ${(he+1)*8}${me}`:it=`>= -(2${me} ** ${(he+1)*8-1}${me}) and < 2 ** ${(he+1)*8-1}${me}`:it=`>= ${V}${me} and <= ${q}${me}`,new R.ERR_OUT_OF_RANGE("value",it,U)}ie(ne,fe,he)}function Y(U,V){if(typeof U!="number")throw new R.ERR_INVALID_ARG_TYPE(V,"number",U)}function z(U,V,q){throw Math.floor(U)!==U?(Y(U,q),new R.ERR_OUT_OF_RANGE(q||"offset","an integer",U)):V<0?new R.ERR_BUFFER_OUT_OF_BOUNDS:new R.ERR_OUT_OF_RANGE(q||"offset",`>= ${q?1:0} and <= ${V}`,U)}const W=/[^+/0-9A-Za-z-_]/g;function ae(U){if(U=U.split("=")[0],U=U.trim().replace(W,""),U.length<2)return"";for(;U.length%4!==0;)U=U+"=";return U}function re(U,V){V=V||1/0;let q;const ne=U.length;let fe=null;const he=[];for(let me=0;me<ne;++me){if(q=U.charCodeAt(me),q>55295&&q<57344){if(!fe){if(q>56319){(V-=3)>-1&&he.push(239,191,189);continue}else if(me+1===ne){(V-=3)>-1&&he.push(239,191,189);continue}fe=q;continue}if(q<56320){(V-=3)>-1&&he.push(239,191,189),fe=q;continue}q=(fe-55296<<10|q-56320)+65536}else fe&&(V-=3)>-1&&he.push(239,191,189);if(fe=null,q<128){if((V-=1)<0)break;he.push(q)}else if(q<2048){if((V-=2)<0)break;he.push(q>>6|192,q&63|128)}else if(q<65536){if((V-=3)<0)break;he.push(q>>12|224,q>>6&63|128,q&63|128)}else if(q<1114112){if((V-=4)<0)break;he.push(q>>18|240,q>>12&63|128,q>>6&63|128,q&63|128)}else throw new Error("Invalid code point")}return he}function le(U){const V=[];for(let q=0;q<U.length;++q)V.push(U.charCodeAt(q)&255);return V}function ke(U,V){let q,ne,fe;const he=[];for(let me=0;me<U.length&&!((V-=2)<0);++me)q=U.charCodeAt(me),ne=q>>8,fe=q%256,he.push(fe),he.push(ne);return he}function ge(U){return I.toByteArray(ae(U))}function be(U,V,q,ne){let fe;for(fe=0;fe<ne&&!(fe+q>=V.length||fe>=U.length);++fe)V[fe+q]=U[fe];return fe}function je(U,V){return U instanceof V||U!=null&&U.constructor!=null&&U.constructor.name!=null&&U.constructor.name===V.name}function xe(U){return U!==U}const Ae=function(){const U="0123456789abcdef",V=new Array(256);for(let q=0;q<16;++q){const ne=q*16;for(let fe=0;fe<16;++fe)V[ne+fe]=U[q]+U[fe]}return V}();function X(U){return typeof BigInt>"u"?ee:U}function ee(){throw new Error("BigInt not supported")}})(Us),window.Buffer=Us.Buffer,globalThis.Buffer=Us.Buffer;var vt=(G,I,L)=>new Promise((Q,ue)=>{var de=y=>{try{_(L.next(y))}catch(M){ue(M)}},H=y=>{try{_(L.throw(y))}catch(M){ue(M)}},_=y=>y.done?Q(y.value):Promise.resolve(y.value).then(de,H);_((L=L.apply(G,I)).next())});class mp extends np{constructor(I,L){super(I??nc.create(),L)}getKnowledge(I,L){return vt(this,null,function*(){return this.get("/knowledge",{docId:I,name:L})})}postKnowledge(I){return vt(this,null,function*(){return this.post("/knowledge",I)})}getKnowledgeId(I){return vt(this,null,function*(){return this.get(`/knowledge/${I}`)})}patchKnowledgeId(I,L){return vt(this,null,function*(){return this.patch(`/knowledge/${I}`,L)})}delKnowledgeId(I){return vt(this,null,function*(){return this.delete(`/knowledge/${I}`)})}getKnowledgeIdFile(I){return vt(this,null,function*(){return this.get(`/knowledge/${I}/file`)})}getKnowledgeIdFileList(I,L){return vt(this,null,function*(){return this.listPaged(`/knowledge/${I}/file`,L)})}postKnowledgeIdFile(I,L){return vt(this,null,function*(){return this.post(`/knowledge/${I}/file`,L)})}getUploadTicket(I){return vt(this,null,function*(){return this.get("/upload/ticket",I)})}delKnowledgeIdFileFid(I,L){return vt(this,null,function*(){return this.delete(`/knowledge/${I}/file/${L}`)})}patchKnowledgeIdFileFid(I,L,Q){return vt(this,null,function*(){return this.patch(`/knowledge/${I}/file/${L}`,Q)})}listSessions(I,L){return vt(this,null,function*(){return this.get(`/application/${I}/sessionsa`,L)})}postSession(I,L){return vt(this,null,function*(){return this.post(`/application/${I}/sessions`,L)})}getSession(I,L){return vt(this,null,function*(){return this.get(`/application/${I}/sessions/${L}`)})}patchSessionsId(I,L,Q){return vt(this,null,function*(){return this.patch(`/application/${I}/sessions/${L}`,Q)})}delSessionsId(I,L){return vt(this,null,function*(){return this.delete(`/application/${I}/sessions/${L}`)})}getSessionKnowledgeFile(I,L,Q){return vt(this,null,function*(){return this.get(`/application/${I}session/${L}/file/${Q}`)})}postSessionKnowledgeFile(I,L,Q){return vt(this,null,function*(){return this.post(`/application/${I}session/${L}/file`,Q)})}postComments(I){return vt(this,null,function*(){return this.post("/comments",I)})}getChatHistorySessionId(I,L,Q){return vt(this,null,function*(){return this.get(`application/${I}/chatHistory/${L}`,Q)})}postChatHistorySessionId(I,L){return vt(this,null,function*(){return this.post(`/chatHistory/${I}`,L)})}getApplications(I){return vt(this,null,function*(){return this.get("/applications",I)})}postApplication(I){return vt(this,null,function*(){return this.post("/applications",I)})}getApplicationId(I){return vt(this,null,function*(){return this.get(`/applications/${I}`)})}patchApplicationId(I,L){return vt(this,null,function*(){return this.patch(`/applications/${I}`,L)})}delApplicationId(I){return vt(this,null,function*(){return this.delete(`/applications/${I}`)})}getApplicationIdSessions(I){return vt(this,null,function*(){return this.get(`/applications/${I}/session`)})}patchFileId(I,L){return vt(this,null,function*(){return this.patch(`/file/${I}`,L)})}getCvforceResource(I){return vt(this,null,function*(){return this.get("/cvforce/resource",I)})}postKnowledgeIdComposedFiles(I,L){return vt(this,null,function*(){return this.post(`/knowledge/${I}/composedFiles`,L)})}getTokensApplicationId(I,L){return vt(this,null,function*(){return this.get(`/tokens/${I}`,L)})}getTokens(I){return vt(this,null,function*(){return this.get("/tokens",I)})}uploadMinioFile(I,L){return vt(this,null,function*(){return new Promise((Q,ue)=>{const de=new FileReader;de.readAsArrayBuffer(L),de.onload=H=>{sc.initMinio({endPoint:I.endpoints[0],useSSL:I.useSSL,accessKey:I.accessKey,secretKey:I.secretKey});const _=Buffer.from(H.target.result),y={"Content-Type":"application/octet-stream"};sc.putObjectBuffer(I.bucket,I.fileKeys[0],_,y,M=>{if(M)throw console.error(M),Error(M);Q(I.fileKeys[0])})}})})}uploadFile(I,L){return vt(this,null,function*(){const Q={files:[L.name],isv:"minio",knowledgeId:I};return this.getUploadTicket(Q).then(ue=>this.uploadMinioFile(ue.minio,L)).catch(ue=>{throw Error(ue)})})}uploadFiles(I,L){return vt(this,null,function*(){const Q={files:L.map(ue=>ue.name),isv:"minio",knowledgeId:I};return this.getUploadTicket(Q).then(ue=>Promise.all(L.map(de=>this.uploadMinioFile(ue.minio,de)))).catch(ue=>{throw Error(ue)})})}getAecModels(){return vt(this,null,function*(){return this.get("/aecModels")})}postTextFilter(I){return vt(this,null,function*(){return this.post("/textFilter",I)})}getTenantModel(){return vt(this,null,function*(){return this.get("/tenantModel")})}getPrompts(I,L){return vt(this,null,function*(){return this.get(`application/${I}/promptVariables`,L)})}postPrompt(I,L){return vt(this,null,function*(){return this.post(`application/${I}/promptVariables`,L)})}patchPromptId(I,L,Q){return vt(this,null,function*(){return this.patch(`application/${I}/promptVariables/${L}`,Q)})}delPromptId(I,L){return vt(this,null,function*(){return this.delete(`application/${I}/promptVariables/${L}`)})}getSessionPrompts(I){return vt(this,null,function*(){return this.get(`session/${I}/promptVariables`)})}patchSessionPromptId(I,L,Q){return vt(this,null,function*(){return this.patch(`session/${L}/promptVariables/${I}`,Q)})}getApplicationIdSessionIdPromptVariables(I,L){return vt(this,null,function*(){return this.get(`/application/${I}/session/${L}/promptVariables`)})}patchApplicationIdSessionpromptVariablesId(I,L,Q,ue){return vt(this,null,function*(){return this.patch(`/application/${I}/session/${L}/promptVariables/${Q}`,ue)})}getPresetApplication(I){return vt(this,null,function*(){return this.get("presetApplication",I)})}postKnowledgeConfig(I){return vt(this,null,function*(){return this.post("/knowledgeConfig",I)})}getKnowledgeConfig(I){return vt(this,null,function*(){return this.get(`/knowledgeConfig/${I}`)})}patchKnowledgeConfig(I,L){return vt(this,null,function*(){return this.patch(`/knowledgeConfig/${I}`,L)})}getKnowledgeIdFileId(I,L){return vt(this,null,function*(){return this.get(`/knowledge/${I}/file/${L}`)})}getKnowledgeIdFileIdData(I,L,Q){return vt(this,null,function*(){return this.listPaged(`/knowledge/${I}/file/${L}/data`,Q)})}postKnowledgeIdFileIdData(I,L,Q){return vt(this,null,function*(){return this.post(`/knowledge/${I}/file/${L}/data`,{data:Q})})}patchKnowledgeIdFileIdData(I,L,Q,ue){return vt(this,null,function*(){return this.patch(`/knowledge/${I}/file/${L}/data/${Q}`,{data:ue})})}delKnowledgeIdFileIdDataDid(I,L,Q){return vt(this,null,function*(){return this.delete(`/knowledge/${I}/file/${L}/data/${Q}`)})}getPresetKnowledge(I){return vt(this,null,function*(){return this.get("/presetKnowledge",I)})}patchSessionsIdContext(I){return vt(this,null,function*(){return this.patch(`/sessions/${I}/context`,{})})}postResourceToken(I){return vt(this,null,function*(){return this.post("/resourceToken",I)})}getApplicationIdSession(I){return vt(this,null,function*(){return this.get(`/application/${I}/session`)})}patchApplicationIdSessionsIdContext(I,L){return vt(this,null,function*(){return this.patch(`/application/${I}/sessions/${L}/context`,{})})}postApplicationIdSessions(I,L){return vt(this,null,function*(){return this.post(`/application/${I}/sessions`,L)})}getApplicationIdChatHistorySessionId(I,L){return vt(this,null,function*(){return this.get(`/application/${I}/chatHistory/${L}`)})}postApplicationIdChatHistorySessionIdComments(I,L,Q){return vt(this,null,function*(){return this.post(`/application/${I}/sessions/${L}/comments`,Q)})}getApplicationIdPrompts(I,L){return vt(this,null,function*(){return this.get(`/application/${I}/promptVariables`,L)})}postKnowledgeSourceFile(I,L,Q){return vt(this,null,function*(){return this.post(`/knowledge/${I}/sourceFile/${L}`,Q)})}getMetadata(I){return vt(this,null,function*(){return this.get("/metadata",I)})}postGeneques(I){return vt(this,null,function*(){return this.post("/geneques",I)})}getBaseModel(I){return vt(this,null,function*(){return this.get("/baseModelInfo",{serviceId:I})})}}var vi=(G=>(G[G.Robot=1]="Robot",G[G.User=2]="User",G[G.System=3]="System",G))(vi||{}),Vs=(G=>(G[G.Dialog=0]="Dialog",G[G.Text=1]="Text",G[G.Agent=2]="Agent",G[G.All=3]="All",G))(Vs||{});function lc(G,I,L){console.log("getCVForceService apiBase",G);const Q=M=>{var v;return I&&(nf(I)&&L(403,"aiotToken is timeout"),M.headers=(v=M.headers)!==null&&v!==void 0?v:{},M.headers=Object.assign(Object.assign({},M.headers),{Authorization:I?`Bearer ${I}`:""})),M};function ue(M,v=!0){const m=`${G}${M}`,E=nc.create({baseURL:m});return v&&E.interceptors.request.use(Q),E}const de=(M,v)=>{M===401&&L(M,"aiotToken is invalid")},H=(M,v)=>{M!==10001&&M!==10215&&L(M,v)},_=ue("/data/v1");return new mp(_,{onHttpStatusError:de,onAppStatusError:H})}const Si=Object.create(null);Si.open="0",Si.close="1",Si.ping="2",Si.pong="3",Si.message="4",Si.upgrade="5",Si.noop="6";const ho=Object.create(null);Object.keys(Si).forEach(G=>{ho[Si[G]]=G});const Ks={type:"error",data:"parser error"},hc=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",fc=typeof ArrayBuffer=="function",pc=G=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(G):G&&G.buffer instanceof ArrayBuffer,Hs=({type:G,data:I},L,Q)=>hc&&I instanceof Blob?L?Q(I):dc(I,Q):fc&&(I instanceof ArrayBuffer||pc(I))?L?Q(I):dc(new Blob([I]),Q):Q(Si[G]+(I||"")),dc=(G,I)=>{const L=new FileReader;return L.onload=function(){const Q=L.result.split(",")[1];I("b"+(Q||""))},L.readAsDataURL(G)};function mc(G){return G instanceof Uint8Array?G:G instanceof ArrayBuffer?new Uint8Array(G):new Uint8Array(G.buffer,G.byteOffset,G.byteLength)}let Ws;function gp(G,I){if(hc&&G.data instanceof Blob)return G.data.arrayBuffer().then(mc).then(I);if(fc&&(G.data instanceof ArrayBuffer||pc(G.data)))return I(mc(G.data));Hs(G,!1,L=>{Ws||(Ws=new TextEncoder),I(Ws.encode(L))})}const gc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rr=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let G=0;G<gc.length;G++)Rr[gc.charCodeAt(G)]=G;const vp=G=>{let I=G.length*.75,L=G.length,Q,ue=0,de,H,_,y;G[G.length-1]==="="&&(I--,G[G.length-2]==="="&&I--);const M=new ArrayBuffer(I),v=new Uint8Array(M);for(Q=0;Q<L;Q+=4)de=Rr[G.charCodeAt(Q)],H=Rr[G.charCodeAt(Q+1)],_=Rr[G.charCodeAt(Q+2)],y=Rr[G.charCodeAt(Q+3)],v[ue++]=de<<2|H>>4,v[ue++]=(H&15)<<4|_>>2,v[ue++]=(_&3)<<6|y&63;return M},yp=typeof ArrayBuffer=="function",Zs=(G,I)=>{if(typeof G!="string")return{type:"message",data:vc(G,I)};const L=G.charAt(0);return L==="b"?{type:"message",data:bp(G.substring(1),I)}:ho[L]?G.length>1?{type:ho[L],data:G.substring(1)}:{type:ho[L]}:Ks},bp=(G,I)=>{if(yp){const L=vp(G);return vc(L,I)}else return{base64:!0,data:G}},vc=(G,I)=>{switch(I){case"blob":return G instanceof Blob?G:new Blob([G]);case"arraybuffer":default:return G instanceof ArrayBuffer?G:G.buffer}},yc=String.fromCharCode(30),wp=(G,I)=>{const L=G.length,Q=new Array(L);let ue=0;G.forEach((de,H)=>{Hs(de,!1,_=>{Q[H]=_,++ue===L&&I(Q.join(yc))})})},xp=(G,I)=>{const L=G.split(yc),Q=[];for(let ue=0;ue<L.length;ue++){const de=Zs(L[ue],I);if(Q.push(de),de.type==="error")break}return Q};function Mp(){return new TransformStream({transform(G,I){gp(G,L=>{const Q=L.length;let ue;if(Q<126)ue=new Uint8Array(1),new DataView(ue.buffer).setUint8(0,Q);else if(Q<65536){ue=new Uint8Array(3);const de=new DataView(ue.buffer);de.setUint8(0,126),de.setUint16(1,Q)}else{ue=new Uint8Array(9);const de=new DataView(ue.buffer);de.setUint8(0,127),de.setBigUint64(1,BigInt(Q))}G.data&&typeof G.data!="string"&&(ue[0]|=128),I.enqueue(ue),I.enqueue(L)})}})}let Gs;function fo(G){return G.reduce((I,L)=>I+L.length,0)}function po(G,I){if(G[0].length===I)return G.shift();const L=new Uint8Array(I);let Q=0;for(let ue=0;ue<I;ue++)L[ue]=G[0][Q++],Q===G[0].length&&(G.shift(),Q=0);return G.length&&Q<G[0].length&&(G[0]=G[0].slice(Q)),L}function _p(G,I){Gs||(Gs=new TextDecoder);const L=[];let Q=0,ue=-1,de=!1;return new TransformStream({transform(H,_){for(L.push(H);;){if(Q===0){if(fo(L)<1)break;const y=po(L,1);de=(y[0]&128)===128,ue=y[0]&127,ue<126?Q=3:ue===126?Q=1:Q=2}else if(Q===1){if(fo(L)<2)break;const y=po(L,2);ue=new DataView(y.buffer,y.byteOffset,y.length).getUint16(0),Q=3}else if(Q===2){if(fo(L)<8)break;const y=po(L,8),M=new DataView(y.buffer,y.byteOffset,y.length),v=M.getUint32(0);if(v>Math.pow(2,53-32)-1){_.enqueue(Ks);break}ue=v*Math.pow(2,32)+M.getUint32(4),Q=3}else{if(fo(L)<ue)break;const y=po(L,ue);_.enqueue(Zs(de?y:Gs.decode(y),I)),Q=0}if(ue===0||ue>G){_.enqueue(Ks);break}}}})}const bc=4;function Nn(G){if(G)return Ep(G)}function Ep(G){for(var I in Nn.prototype)G[I]=Nn.prototype[I];return G}Nn.prototype.on=Nn.prototype.addEventListener=function(G,I){return this._callbacks=this._callbacks||{},(this._callbacks["$"+G]=this._callbacks["$"+G]||[]).push(I),this},Nn.prototype.once=function(G,I){function L(){this.off(G,L),I.apply(this,arguments)}return L.fn=I,this.on(G,L),this},Nn.prototype.off=Nn.prototype.removeListener=Nn.prototype.removeAllListeners=Nn.prototype.removeEventListener=function(G,I){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var L=this._callbacks["$"+G];if(!L)return this;if(arguments.length==1)return delete this._callbacks["$"+G],this;for(var Q,ue=0;ue<L.length;ue++)if(Q=L[ue],Q===I||Q.fn===I){L.splice(ue,1);break}return L.length===0&&delete this._callbacks["$"+G],this},Nn.prototype.emit=function(G){this._callbacks=this._callbacks||{};for(var I=new Array(arguments.length-1),L=this._callbacks["$"+G],Q=1;Q<arguments.length;Q++)I[Q-1]=arguments[Q];if(L){L=L.slice(0);for(var Q=0,ue=L.length;Q<ue;++Q)L[Q].apply(this,I)}return this},Nn.prototype.emitReserved=Nn.prototype.emit,Nn.prototype.listeners=function(G){return this._callbacks=this._callbacks||{},this._callbacks["$"+G]||[]},Nn.prototype.hasListeners=function(G){return!!this.listeners(G).length};const ui=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function wc(G,...I){return I.reduce((L,Q)=>(G.hasOwnProperty(Q)&&(L[Q]=G[Q]),L),{})}const kp=ui.setTimeout,Sp=ui.clearTimeout;function mo(G,I){I.useNativeTimers?(G.setTimeoutFn=kp.bind(ui),G.clearTimeoutFn=Sp.bind(ui)):(G.setTimeoutFn=ui.setTimeout.bind(ui),G.clearTimeoutFn=ui.clearTimeout.bind(ui))}const Ap=1.33;function Ip(G){return typeof G=="string"?Tp(G):Math.ceil((G.byteLength||G.size)*Ap)}function Tp(G){let I=0,L=0;for(let Q=0,ue=G.length;Q<ue;Q++)I=G.charCodeAt(Q),I<128?L+=1:I<2048?L+=2:I<55296||I>=57344?L+=3:(Q++,L+=4);return L}function Op(G){let I="";for(let L in G)G.hasOwnProperty(L)&&(I.length&&(I+="&"),I+=encodeURIComponent(L)+"="+encodeURIComponent(G[L]));return I}function jp(G){let I={},L=G.split("&");for(let Q=0,ue=L.length;Q<ue;Q++){let de=L[Q].split("=");I[decodeURIComponent(de[0])]=decodeURIComponent(de[1])}return I}class Np extends Error{constructor(I,L,Q){super(I),this.description=L,this.context=Q,this.type="TransportError"}}class Xs extends Nn{constructor(I){super(),this.writable=!1,mo(this,I),this.opts=I,this.query=I.query,this.socket=I.socket}onError(I,L,Q){return super.emitReserved("error",new Np(I,L,Q)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(I){this.readyState==="open"&&this.write(I)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(I){const L=Zs(I,this.socket.binaryType);this.onPacket(L)}onPacket(I){super.emitReserved("packet",I)}onClose(I){this.readyState="closed",super.emitReserved("close",I)}pause(I){}createUri(I,L={}){return I+"://"+this._hostname()+this._port()+this.opts.path+this._query(L)}_hostname(){const I=this.opts.hostname;return I.indexOf(":")===-1?I:"["+I+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(I){const L=Op(I);return L.length?"?"+L:""}}const xc="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Ys=64,Rp={};let Mc=0,go=0,_c;function Ec(G){let I="";do I=xc[G%Ys]+I,G=Math.floor(G/Ys);while(G>0);return I}function kc(){const G=Ec(+new Date);return G!==_c?(Mc=0,_c=G):G+"."+Ec(Mc++)}for(;go<Ys;go++)Rp[xc[go]]=go;let Sc=!1;try{Sc=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Bp=Sc;function Ac(G){const I=G.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!I||Bp))return new XMLHttpRequest}catch{}if(!I)try{return new ui[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Tm(){}function Cp(){}const Pp=function(){return new Ac({xdomain:!1}).responseType!=null}();class Dp extends Xs{constructor(I){if(super(I),this.polling=!1,typeof location<"u"){const Q=location.protocol==="https:";let ue=location.port;ue||(ue=Q?"443":"80"),this.xd=typeof location<"u"&&I.hostname!==location.hostname||ue!==I.port}const L=I&&I.forceBase64;this.supportsBinary=Pp&&!L,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(I){this.readyState="pausing";const L=()=>{this.readyState="paused",I()};if(this.polling||!this.writable){let Q=0;this.polling&&(Q++,this.once("pollComplete",function(){--Q||L()})),this.writable||(Q++,this.once("drain",function(){--Q||L()}))}else L()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(I){const L=Q=>{if(this.readyState==="opening"&&Q.type==="open"&&this.onOpen(),Q.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(Q)};xp(I,this.socket.binaryType).forEach(L),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const I=()=>{this.write([{type:"close"}])};this.readyState==="open"?I():this.once("open",I)}write(I){this.writable=!1,wp(I,L=>{this.doWrite(L,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const I=this.opts.secure?"https":"http",L=this.query||{};return this.opts.timestampRequests!==!1&&(L[this.opts.timestampParam]=kc()),!this.supportsBinary&&!L.sid&&(L.b64=1),this.createUri(I,L)}request(I={}){return Object.assign(I,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Ai(this.uri(),I)}doWrite(I,L){const Q=this.request({method:"POST",data:I});Q.on("success",L),Q.on("error",(ue,de)=>{this.onError("xhr post error",ue,de)})}doPoll(){const I=this.request();I.on("data",this.onData.bind(this)),I.on("error",(L,Q)=>{this.onError("xhr poll error",L,Q)}),this.pollXhr=I}}class Ai extends Nn{constructor(I,L){super(),mo(this,L),this.opts=L,this.method=L.method||"GET",this.uri=I,this.data=L.data!==void 0?L.data:null,this.create()}create(){var I;const L=wc(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");L.xdomain=!!this.opts.xd;const Q=this.xhr=new Ac(L);try{Q.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){Q.setDisableHeaderCheck&&Q.setDisableHeaderCheck(!0);for(let ue in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(ue)&&Q.setRequestHeader(ue,this.opts.extraHeaders[ue])}}catch{}if(this.method==="POST")try{Q.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{Q.setRequestHeader("Accept","*/*")}catch{}(I=this.opts.cookieJar)===null||I===void 0||I.addCookies(Q),"withCredentials"in Q&&(Q.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(Q.timeout=this.opts.requestTimeout),Q.onreadystatechange=()=>{var ue;Q.readyState===3&&((ue=this.opts.cookieJar)===null||ue===void 0||ue.parseCookies(Q)),Q.readyState===4&&(Q.status===200||Q.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof Q.status=="number"?Q.status:0)},0))},Q.send(this.data)}catch(ue){this.setTimeoutFn(()=>{this.onError(ue)},0);return}typeof document<"u"&&(this.index=Ai.requestsCount++,Ai.requests[this.index]=this)}onError(I){this.emitReserved("error",I,this.xhr),this.cleanup(!0)}cleanup(I){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Cp,I)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Ai.requests[this.index],this.xhr=null}}onLoad(){const I=this.xhr.responseText;I!==null&&(this.emitReserved("data",I),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Ai.requestsCount=0,Ai.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ic);else if(typeof addEventListener=="function"){const G="onpagehide"in ui?"pagehide":"unload";addEventListener(G,Ic,!1)}}function Ic(){for(let G in Ai.requests)Ai.requests.hasOwnProperty(G)&&Ai.requests[G].abort()}const Js=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?I=>Promise.resolve().then(I):(I,L)=>L(I,0))(),vo=ui.WebSocket||ui.MozWebSocket,Tc=!0,Lp="arraybuffer",Oc=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class qp extends Xs{constructor(I){super(I),this.supportsBinary=!I.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const I=this.uri(),L=this.opts.protocols,Q=Oc?{}:wc(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(Q.headers=this.opts.extraHeaders);try{this.ws=Tc&&!Oc?L?new vo(I,L):new vo(I):new vo(I,L,Q)}catch(ue){return this.emitReserved("error",ue)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=I=>this.onClose({description:"websocket connection closed",context:I}),this.ws.onmessage=I=>this.onData(I.data),this.ws.onerror=I=>this.onError("websocket error",I)}write(I){this.writable=!1;for(let L=0;L<I.length;L++){const Q=I[L],ue=L===I.length-1;Hs(Q,this.supportsBinary,de=>{const H={};try{Tc&&this.ws.send(de)}catch{}ue&&Js(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const I=this.opts.secure?"wss":"ws",L=this.query||{};return this.opts.timestampRequests&&(L[this.opts.timestampParam]=kc()),this.supportsBinary||(L.b64=1),this.createUri(I,L)}check(){return!!vo}}class Fp extends Xs{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(I=>{this.onError("webtransport error",I)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(I=>{const L=_p(Number.MAX_SAFE_INTEGER,this.socket.binaryType),Q=I.readable.pipeThrough(L).getReader(),ue=Mp();ue.readable.pipeTo(I.writable),this.writer=ue.writable.getWriter();const de=()=>{Q.read().then(({done:_,value:y})=>{_||(this.onPacket(y),de())}).catch(_=>{})};de();const H={type:"open"};this.query.sid&&(H.data=`{"sid":"${this.query.sid}"}`),this.writer.write(H).then(()=>this.onOpen())})}))}write(I){this.writable=!1;for(let L=0;L<I.length;L++){const Q=I[L],ue=L===I.length-1;this.writer.write(Q).then(()=>{ue&&Js(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var I;(I=this.transport)===null||I===void 0||I.close()}}const Up={websocket:qp,webtransport:Fp,polling:Dp},zp=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,$p=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Qs(G){if(G.length>2e3)throw"URI too long";const I=G,L=G.indexOf("["),Q=G.indexOf("]");L!=-1&&Q!=-1&&(G=G.substring(0,L)+G.substring(L,Q).replace(/:/g,";")+G.substring(Q,G.length));let ue=zp.exec(G||""),de={},H=14;for(;H--;)de[$p[H]]=ue[H]||"";return L!=-1&&Q!=-1&&(de.source=I,de.host=de.host.substring(1,de.host.length-1).replace(/;/g,":"),de.authority=de.authority.replace("[","").replace("]","").replace(/;/g,":"),de.ipv6uri=!0),de.pathNames=Vp(de,de.path),de.queryKey=Kp(de,de.query),de}function Vp(G,I){const L=/\/{2,9}/g,Q=I.replace(L,"/").split("/");return(I.slice(0,1)=="/"||I.length===0)&&Q.splice(0,1),I.slice(-1)=="/"&&Q.splice(Q.length-1,1),Q}function Kp(G,I){const L={};return I.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(Q,ue,de){ue&&(L[ue]=de)}),L}let jc=class jr extends Nn{constructor(I,L={}){super(),this.binaryType=Lp,this.writeBuffer=[],I&&typeof I=="object"&&(L=I,I=null),I?(I=Qs(I),L.hostname=I.host,L.secure=I.protocol==="https"||I.protocol==="wss",L.port=I.port,I.query&&(L.query=I.query)):L.host&&(L.hostname=Qs(L.host).host),mo(this,L),this.secure=L.secure!=null?L.secure:typeof location<"u"&&location.protocol==="https:",L.hostname&&!L.port&&(L.port=this.secure?"443":"80"),this.hostname=L.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=L.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=L.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},L),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=jp(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(I){const L=Object.assign({},this.opts.query);L.EIO=bc,L.transport=I,this.id&&(L.sid=this.id);const Q=Object.assign({},this.opts,{query:L,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[I]);return new Up[I](Q)}open(){let I;if(this.opts.rememberUpgrade&&jr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)I="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else I=this.transports[0];this.readyState="opening";try{I=this.createTransport(I)}catch{this.transports.shift(),this.open();return}I.open(),this.setTransport(I)}setTransport(I){this.transport&&this.transport.removeAllListeners(),this.transport=I,I.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",L=>this.onClose("transport close",L))}probe(I){let L=this.createTransport(I),Q=!1;jr.priorWebsocketSuccess=!1;const ue=()=>{Q||(L.send([{type:"ping",data:"probe"}]),L.once("packet",m=>{if(!Q)if(m.type==="pong"&&m.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",L),!L)return;jr.priorWebsocketSuccess=L.name==="websocket",this.transport.pause(()=>{Q||this.readyState!=="closed"&&(v(),this.setTransport(L),L.send([{type:"upgrade"}]),this.emitReserved("upgrade",L),L=null,this.upgrading=!1,this.flush())})}else{const E=new Error("probe error");E.transport=L.name,this.emitReserved("upgradeError",E)}}))};function de(){Q||(Q=!0,v(),L.close(),L=null)}const H=m=>{const E=new Error("probe error: "+m);E.transport=L.name,de(),this.emitReserved("upgradeError",E)};function _(){H("transport closed")}function y(){H("socket closed")}function M(m){L&&m.name!==L.name&&de()}const v=()=>{L.removeListener("open",ue),L.removeListener("error",H),L.removeListener("close",_),this.off("close",y),this.off("upgrading",M)};L.once("open",ue),L.once("error",H),L.once("close",_),this.once("close",y),this.once("upgrading",M),this.upgrades.indexOf("webtransport")!==-1&&I!=="webtransport"?this.setTimeoutFn(()=>{Q||L.open()},200):L.open()}onOpen(){if(this.readyState="open",jr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let I=0;const L=this.upgrades.length;for(;I<L;I++)this.probe(this.upgrades[I])}}onPacket(I){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",I),this.emitReserved("heartbeat"),this.resetPingTimeout(),I.type){case"open":this.onHandshake(JSON.parse(I.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const L=new Error("server error");L.code=I.data,this.onError(L);break;case"message":this.emitReserved("data",I.data),this.emitReserved("message",I.data);break}}onHandshake(I){this.emitReserved("handshake",I),this.id=I.sid,this.transport.query.sid=I.sid,this.upgrades=this.filterUpgrades(I.upgrades),this.pingInterval=I.pingInterval,this.pingTimeout=I.pingTimeout,this.maxPayload=I.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const I=this.getWritablePackets();this.transport.send(I),this.prevBufferLen=I.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let L=1;for(let Q=0;Q<this.writeBuffer.length;Q++){const ue=this.writeBuffer[Q].data;if(ue&&(L+=Ip(ue)),Q>0&&L>this.maxPayload)return this.writeBuffer.slice(0,Q);L+=2}return this.writeBuffer}write(I,L,Q){return this.sendPacket("message",I,L,Q),this}send(I,L,Q){return this.sendPacket("message",I,L,Q),this}sendPacket(I,L,Q,ue){if(typeof L=="function"&&(ue=L,L=void 0),typeof Q=="function"&&(ue=Q,Q=null),this.readyState==="closing"||this.readyState==="closed")return;Q=Q||{},Q.compress=Q.compress!==!1;const de={type:I,data:L,options:Q};this.emitReserved("packetCreate",de),this.writeBuffer.push(de),ue&&this.once("flush",ue),this.flush()}close(){const I=()=>{this.onClose("forced close"),this.transport.close()},L=()=>{this.off("upgrade",L),this.off("upgradeError",L),I()},Q=()=>{this.once("upgrade",L),this.once("upgradeError",L)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?Q():I()}):this.upgrading?Q():I()),this}onError(I){jr.priorWebsocketSuccess=!1,this.emitReserved("error",I),this.onClose("transport error",I)}onClose(I,L){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",I,L),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(I){const L=[];let Q=0;const ue=I.length;for(;Q<ue;Q++)~this.transports.indexOf(I[Q])&&L.push(I[Q]);return L}};jc.protocol=bc;function Hp(G,I="",L){let Q=G;L=L||typeof location<"u"&&location,G==null&&(G=L.protocol+"//"+L.host),typeof G=="string"&&(G.charAt(0)==="/"&&(G.charAt(1)==="/"?G=L.protocol+G:G=L.host+G),/^(https?|wss?):\/\//.test(G)||(typeof L<"u"?G=L.protocol+"//"+G:G="https://"+G),Q=Qs(G)),Q.port||(/^(http|ws)$/.test(Q.protocol)?Q.port="80":/^(http|ws)s$/.test(Q.protocol)&&(Q.port="443")),Q.path=Q.path||"/";const de=Q.host.indexOf(":")!==-1?"["+Q.host+"]":Q.host;return Q.id=Q.protocol+"://"+de+":"+Q.port+I,Q.href=Q.protocol+"://"+de+(L&&L.port===Q.port?"":":"+Q.port),Q}const Wp=typeof ArrayBuffer=="function",Zp=G=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(G):G.buffer instanceof ArrayBuffer,Nc=Object.prototype.toString,Gp=typeof Blob=="function"||typeof Blob<"u"&&Nc.call(Blob)==="[object BlobConstructor]",Xp=typeof File=="function"||typeof File<"u"&&Nc.call(File)==="[object FileConstructor]";function ea(G){return Wp&&(G instanceof ArrayBuffer||Zp(G))||Gp&&G instanceof Blob||Xp&&G instanceof File}function yo(G,I){if(!G||typeof G!="object")return!1;if(Array.isArray(G)){for(let L=0,Q=G.length;L<Q;L++)if(yo(G[L]))return!0;return!1}if(ea(G))return!0;if(G.toJSON&&typeof G.toJSON=="function"&&arguments.length===1)return yo(G.toJSON(),!0);for(const L in G)if(Object.prototype.hasOwnProperty.call(G,L)&&yo(G[L]))return!0;return!1}function Yp(G){const I=[],L=G.data,Q=G;return Q.data=ta(L,I),Q.attachments=I.length,{packet:Q,buffers:I}}function ta(G,I){if(!G)return G;if(ea(G)){const L={_placeholder:!0,num:I.length};return I.push(G),L}else if(Array.isArray(G)){const L=new Array(G.length);for(let Q=0;Q<G.length;Q++)L[Q]=ta(G[Q],I);return L}else if(typeof G=="object"&&!(G instanceof Date)){const L={};for(const Q in G)Object.prototype.hasOwnProperty.call(G,Q)&&(L[Q]=ta(G[Q],I));return L}return G}function Jp(G,I){return G.data=na(G.data,I),delete G.attachments,G}function na(G,I){if(!G)return G;if(G&&G._placeholder===!0){if(typeof G.num=="number"&&G.num>=0&&G.num<I.length)return I[G.num];throw new Error("illegal attachments")}else if(Array.isArray(G))for(let L=0;L<G.length;L++)G[L]=na(G[L],I);else if(typeof G=="object")for(const L in G)Object.prototype.hasOwnProperty.call(G,L)&&(G[L]=na(G[L],I));return G}const Qp=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ed=5;var en;(function(G){G[G.CONNECT=0]="CONNECT",G[G.DISCONNECT=1]="DISCONNECT",G[G.EVENT=2]="EVENT",G[G.ACK=3]="ACK",G[G.CONNECT_ERROR=4]="CONNECT_ERROR",G[G.BINARY_EVENT=5]="BINARY_EVENT",G[G.BINARY_ACK=6]="BINARY_ACK"})(en||(en={}));class td{constructor(I){this.replacer=I}encode(I){return(I.type===en.EVENT||I.type===en.ACK)&&yo(I)?this.encodeAsBinary({type:I.type===en.EVENT?en.BINARY_EVENT:en.BINARY_ACK,nsp:I.nsp,data:I.data,id:I.id}):[this.encodeAsString(I)]}encodeAsString(I){let L=""+I.type;return(I.type===en.BINARY_EVENT||I.type===en.BINARY_ACK)&&(L+=I.attachments+"-"),I.nsp&&I.nsp!=="/"&&(L+=I.nsp+","),I.id!=null&&(L+=I.id),I.data!=null&&(L+=JSON.stringify(I.data,this.replacer)),L}encodeAsBinary(I){const L=Yp(I),Q=this.encodeAsString(L.packet),ue=L.buffers;return ue.unshift(Q),ue}}function Rc(G){return Object.prototype.toString.call(G)==="[object Object]"}class ia extends Nn{constructor(I){super(),this.reviver=I}add(I){let L;if(typeof I=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");L=this.decodeString(I);const Q=L.type===en.BINARY_EVENT;Q||L.type===en.BINARY_ACK?(L.type=Q?en.EVENT:en.ACK,this.reconstructor=new nd(L),L.attachments===0&&super.emitReserved("decoded",L)):super.emitReserved("decoded",L)}else if(ea(I)||I.base64)if(this.reconstructor)L=this.reconstructor.takeBinaryData(I),L&&(this.reconstructor=null,super.emitReserved("decoded",L));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+I)}decodeString(I){let L=0;const Q={type:Number(I.charAt(0))};if(en[Q.type]===void 0)throw new Error("unknown packet type "+Q.type);if(Q.type===en.BINARY_EVENT||Q.type===en.BINARY_ACK){const de=L+1;for(;I.charAt(++L)!=="-"&&L!=I.length;);const H=I.substring(de,L);if(H!=Number(H)||I.charAt(L)!=="-")throw new Error("Illegal attachments");Q.attachments=Number(H)}if(I.charAt(L+1)==="/"){const de=L+1;for(;++L&&!(I.charAt(L)===","||L===I.length););Q.nsp=I.substring(de,L)}else Q.nsp="/";const ue=I.charAt(L+1);if(ue!==""&&Number(ue)==ue){const de=L+1;for(;++L;){const H=I.charAt(L);if(H==null||Number(H)!=H){--L;break}if(L===I.length)break}Q.id=Number(I.substring(de,L+1))}if(I.charAt(++L)){const de=this.tryParse(I.substr(L));if(ia.isPayloadValid(Q.type,de))Q.data=de;else throw new Error("invalid payload")}return Q}tryParse(I){try{return JSON.parse(I,this.reviver)}catch{return!1}}static isPayloadValid(I,L){switch(I){case en.CONNECT:return Rc(L);case en.DISCONNECT:return L===void 0;case en.CONNECT_ERROR:return typeof L=="string"||Rc(L);case en.EVENT:case en.BINARY_EVENT:return Array.isArray(L)&&(typeof L[0]=="number"||typeof L[0]=="string"&&Qp.indexOf(L[0])===-1);case en.ACK:case en.BINARY_ACK:return Array.isArray(L)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class nd{constructor(I){this.packet=I,this.buffers=[],this.reconPack=I}takeBinaryData(I){if(this.buffers.push(I),this.buffers.length===this.reconPack.attachments){const L=Jp(this.reconPack,this.buffers);return this.finishedReconstruction(),L}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const id=Object.freeze(Object.defineProperty({__proto__:null,Decoder:ia,Encoder:td,get PacketType(){return en},protocol:ed},Symbol.toStringTag,{value:"Module"}));function yi(G,I,L){return G.on(I,L),function(){G.off(I,L)}}const rd=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Bc extends Nn{constructor(I,L,Q){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=I,this.nsp=L,Q&&Q.auth&&(this.auth=Q.auth),this._opts=Object.assign({},Q),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const I=this.io;this.subs=[yi(I,"open",this.onopen.bind(this)),yi(I,"packet",this.onpacket.bind(this)),yi(I,"error",this.onerror.bind(this)),yi(I,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...I){return I.unshift("message"),this.emit.apply(this,I),this}emit(I,...L){if(rd.hasOwnProperty(I))throw new Error('"'+I.toString()+'" is a reserved event name');if(L.unshift(I),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(L),this;const Q={type:en.EVENT,data:L};if(Q.options={},Q.options.compress=this.flags.compress!==!1,typeof L[L.length-1]=="function"){const H=this.ids++,_=L.pop();this._registerAckCallback(H,_),Q.id=H}const ue=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!ue||!this.connected)||(this.connected?(this.notifyOutgoingListeners(Q),this.packet(Q)):this.sendBuffer.push(Q)),this.flags={},this}_registerAckCallback(I,L){var Q;const ue=(Q=this.flags.timeout)!==null&&Q!==void 0?Q:this._opts.ackTimeout;if(ue===void 0){this.acks[I]=L;return}const de=this.io.setTimeoutFn(()=>{delete this.acks[I];for(let _=0;_<this.sendBuffer.length;_++)this.sendBuffer[_].id===I&&this.sendBuffer.splice(_,1);L.call(this,new Error("operation has timed out"))},ue),H=(..._)=>{this.io.clearTimeoutFn(de),L.apply(this,_)};H.withError=!0,this.acks[I]=H}emitWithAck(I,...L){return new Promise((Q,ue)=>{const de=(H,_)=>H?ue(H):Q(_);de.withError=!0,L.push(de),this.emit(I,...L)})}_addToQueue(I){let L;typeof I[I.length-1]=="function"&&(L=I.pop());const Q={id:this._queueSeq++,tryCount:0,pending:!1,args:I,flags:Object.assign({fromQueue:!0},this.flags)};I.push((ue,...de)=>Q!==this._queue[0]?void 0:(ue!==null?Q.tryCount>this._opts.retries&&(this._queue.shift(),L&&L(ue)):(this._queue.shift(),L&&L(null,...de)),Q.pending=!1,this._drainQueue())),this._queue.push(Q),this._drainQueue()}_drainQueue(I=!1){if(!this.connected||this._queue.length===0)return;const L=this._queue[0];L.pending&&!I||(L.pending=!0,L.tryCount++,this.flags=L.flags,this.emit.apply(this,L.args))}packet(I){I.nsp=this.nsp,this.io._packet(I)}onopen(){typeof this.auth=="function"?this.auth(I=>{this._sendConnectPacket(I)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(I){this.packet({type:en.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},I):I})}onerror(I){this.connected||this.emitReserved("connect_error",I)}onclose(I,L){this.connected=!1,delete this.id,this.emitReserved("disconnect",I,L),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(I=>{if(!this.sendBuffer.some(Q=>String(Q.id)===I)){const Q=this.acks[I];delete this.acks[I],Q.withError&&Q.call(this,new Error("socket has been disconnected"))}})}onpacket(I){if(I.nsp===this.nsp)switch(I.type){case en.CONNECT:I.data&&I.data.sid?this.onconnect(I.data.sid,I.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case en.EVENT:case en.BINARY_EVENT:this.onevent(I);break;case en.ACK:case en.BINARY_ACK:this.onack(I);break;case en.DISCONNECT:this.ondisconnect();break;case en.CONNECT_ERROR:this.destroy();const Q=new Error(I.data.message);Q.data=I.data.data,this.emitReserved("connect_error",Q);break}}onevent(I){const L=I.data||[];I.id!=null&&L.push(this.ack(I.id)),this.connected?this.emitEvent(L):this.receiveBuffer.push(Object.freeze(L))}emitEvent(I){if(this._anyListeners&&this._anyListeners.length){const L=this._anyListeners.slice();for(const Q of L)Q.apply(this,I)}super.emit.apply(this,I),this._pid&&I.length&&typeof I[I.length-1]=="string"&&(this._lastOffset=I[I.length-1])}ack(I){const L=this;let Q=!1;return function(...ue){Q||(Q=!0,L.packet({type:en.ACK,id:I,data:ue}))}}onack(I){const L=this.acks[I.id];typeof L=="function"&&(delete this.acks[I.id],L.withError&&I.data.unshift(null),L.apply(this,I.data))}onconnect(I,L){this.id=I,this.recovered=L&&this._pid===L,this._pid=L,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(I=>this.emitEvent(I)),this.receiveBuffer=[],this.sendBuffer.forEach(I=>{this.notifyOutgoingListeners(I),this.packet(I)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(I=>I()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:en.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(I){return this.flags.compress=I,this}get volatile(){return this.flags.volatile=!0,this}timeout(I){return this.flags.timeout=I,this}onAny(I){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(I),this}prependAny(I){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(I),this}offAny(I){if(!this._anyListeners)return this;if(I){const L=this._anyListeners;for(let Q=0;Q<L.length;Q++)if(I===L[Q])return L.splice(Q,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(I){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(I),this}prependAnyOutgoing(I){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(I),this}offAnyOutgoing(I){if(!this._anyOutgoingListeners)return this;if(I){const L=this._anyOutgoingListeners;for(let Q=0;Q<L.length;Q++)if(I===L[Q])return L.splice(Q,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(I){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const L=this._anyOutgoingListeners.slice();for(const Q of L)Q.apply(this,I.data)}}}function yr(G){G=G||{},this.ms=G.min||100,this.max=G.max||1e4,this.factor=G.factor||2,this.jitter=G.jitter>0&&G.jitter<=1?G.jitter:0,this.attempts=0}yr.prototype.duration=function(){var G=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var I=Math.random(),L=Math.floor(I*this.jitter*G);G=Math.floor(I*10)&1?G+L:G-L}return Math.min(G,this.max)|0},yr.prototype.reset=function(){this.attempts=0},yr.prototype.setMin=function(G){this.ms=G},yr.prototype.setMax=function(G){this.max=G},yr.prototype.setJitter=function(G){this.jitter=G};class ra extends Nn{constructor(I,L){var Q;super(),this.nsps={},this.subs=[],I&&typeof I=="object"&&(L=I,I=void 0),L=L||{},L.path=L.path||"/socket.io",this.opts=L,mo(this,L),this.reconnection(L.reconnection!==!1),this.reconnectionAttempts(L.reconnectionAttempts||1/0),this.reconnectionDelay(L.reconnectionDelay||1e3),this.reconnectionDelayMax(L.reconnectionDelayMax||5e3),this.randomizationFactor((Q=L.randomizationFactor)!==null&&Q!==void 0?Q:.5),this.backoff=new yr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(L.timeout==null?2e4:L.timeout),this._readyState="closed",this.uri=I;const ue=L.parser||id;this.encoder=new ue.Encoder,this.decoder=new ue.Decoder,this._autoConnect=L.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(I){return arguments.length?(this._reconnection=!!I,this):this._reconnection}reconnectionAttempts(I){return I===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=I,this)}reconnectionDelay(I){var L;return I===void 0?this._reconnectionDelay:(this._reconnectionDelay=I,(L=this.backoff)===null||L===void 0||L.setMin(I),this)}randomizationFactor(I){var L;return I===void 0?this._randomizationFactor:(this._randomizationFactor=I,(L=this.backoff)===null||L===void 0||L.setJitter(I),this)}reconnectionDelayMax(I){var L;return I===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=I,(L=this.backoff)===null||L===void 0||L.setMax(I),this)}timeout(I){return arguments.length?(this._timeout=I,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(I){if(~this._readyState.indexOf("open"))return this;this.engine=new jc(this.uri,this.opts);const L=this.engine,Q=this;this._readyState="opening",this.skipReconnect=!1;const ue=yi(L,"open",function(){Q.onopen(),I&&I()}),de=_=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",_),I?I(_):this.maybeReconnectOnOpen()},H=yi(L,"error",de);if(this._timeout!==!1){const _=this._timeout,y=this.setTimeoutFn(()=>{ue(),de(new Error("timeout")),L.close()},_);this.opts.autoUnref&&y.unref(),this.subs.push(()=>{this.clearTimeoutFn(y)})}return this.subs.push(ue),this.subs.push(H),this}connect(I){return this.open(I)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const I=this.engine;this.subs.push(yi(I,"ping",this.onping.bind(this)),yi(I,"data",this.ondata.bind(this)),yi(I,"error",this.onerror.bind(this)),yi(I,"close",this.onclose.bind(this)),yi(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(I){try{this.decoder.add(I)}catch(L){this.onclose("parse error",L)}}ondecoded(I){Js(()=>{this.emitReserved("packet",I)},this.setTimeoutFn)}onerror(I){this.emitReserved("error",I)}socket(I,L){let Q=this.nsps[I];return Q?this._autoConnect&&!Q.active&&Q.connect():(Q=new Bc(this,I,L),this.nsps[I]=Q),Q}_destroy(I){const L=Object.keys(this.nsps);for(const Q of L)if(this.nsps[Q].active)return;this._close()}_packet(I){const L=this.encoder.encode(I);for(let Q=0;Q<L.length;Q++)this.engine.write(L[Q],I.options)}cleanup(){this.subs.forEach(I=>I()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(I,L){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",I,L),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const I=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const L=this.backoff.duration();this._reconnecting=!0;const Q=this.setTimeoutFn(()=>{I.skipReconnect||(this.emitReserved("reconnect_attempt",I.backoff.attempts),!I.skipReconnect&&I.open(ue=>{ue?(I._reconnecting=!1,I.reconnect(),this.emitReserved("reconnect_error",ue)):I.onreconnect()}))},L);this.opts.autoUnref&&Q.unref(),this.subs.push(()=>{this.clearTimeoutFn(Q)})}}onreconnect(){const I=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",I)}}const Br={};function bo(G,I){typeof G=="object"&&(I=G,G=void 0),I=I||{};const L=Hp(G,I.path||"/socket.io"),Q=L.source,ue=L.id,de=L.path,H=Br[ue]&&de in Br[ue].nsps,_=I.forceNew||I["force new connection"]||I.multiplex===!1||H;let y;return _?y=new ra(Q,I):(Br[ue]||(Br[ue]=new ra(Q,I)),y=Br[ue]),L.query&&!I.query&&(I.query=L.queryKey),y.socket(L.path,I)}Object.assign(bo,{Manager:ra,Socket:Bc,io:bo,connect:bo});var rr;(function(G){G[G.Normal=0]="Normal",G[G.Debug=1]="Debug"})(rr||(rr={}));let wo;const od=new Uint8Array(16);function sd(){if(!wo&&(wo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!wo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return wo(od)}const Ln=[];for(let G=0;G<256;++G)Ln.push((G+256).toString(16).slice(1));function ad(G,I=0){return Ln[G[I+0]]+Ln[G[I+1]]+Ln[G[I+2]]+Ln[G[I+3]]+"-"+Ln[G[I+4]]+Ln[G[I+5]]+"-"+Ln[G[I+6]]+Ln[G[I+7]]+"-"+Ln[G[I+8]]+Ln[G[I+9]]+"-"+Ln[G[I+10]]+Ln[G[I+11]]+Ln[G[I+12]]+Ln[G[I+13]]+Ln[G[I+14]]+Ln[G[I+15]]}const Cc={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Pc(G,I,L){if(Cc.randomUUID&&!I&&!G)return Cc.randomUUID();G=G||{};const Q=G.random||(G.rng||sd)();if(Q[6]=Q[6]&15|64,Q[8]=Q[8]&63|128,I){L=L||0;for(let ue=0;ue<16;++ue)I[L+ue]=Q[ue];return I}return ad(Q)}const or=new Dn("[EventBus] ");class Dc{constructor(I=!1){Object.defineProperty(this,"eventListenerMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),I&&or.disable()}getEventListenerMap(){return Object.assign({},this.eventListenerMap)}on(I,L,Q=!1){this.eventListenerMap[I]||(this.eventListenerMap[I]=[]),Q?this.eventListenerMap[I].push({fn:L,once:!0}):this.eventListenerMap[I].push(L),or.log(`add event ${I} listener ${Q?", call once":""}`)}once(I,L){this.on(I,L,!0)}off(I,L){if(this.eventListenerMap[I]){const Q=this.eventListenerMap[I].findIndex(ue=>{if(typeof ue=="function"&&L===ue)return!0;if(ue=ue,ue.fn===L)return!0});Q<0?or.log(`event ${I} listener ${L.name} is not found`):(this.eventListenerMap[I].splice(Q,1),or.log(`remove event ${I} listener`))}else or.log(`event ${I} listeners is empty`)}emit(I,L){if(!this.eventListenerMap[I]){or.log(`event ${I} listeners is empty`);return}const Q=[];for(let ue=0;ue<this.eventListenerMap[I].length;ue++){const de=this.eventListenerMap[I][ue];typeof de=="function"?de(L):Q.push(de)}Q.forEach(ue=>{ue&&(ue.fn(L),this.off(I,ue.fn))}),or.log(`event ${I} is fired, has ${this.eventListenerMap[I].length} listeners`)}removeAllListeners(){this.eventListenerMap={}}}const Ii=new Dn("[AgentClient] ");var Fn;(function(G){G.DataRequestFailed="data request error",G.SocketConnectionFailed="socket error",G.IdUndefined="session id is not defined",G.SendingEmptyContent="failed at sending empty content",G.Frozen="session is frozen",G.UserModeError="failed at setting socket user mode",G.Inactive="session is inactive"})(Fn||(Fn={})),Fn.IdUndefined+"",Fn.SendingEmptyContent+"",Fn.Frozen+"";class oa{constructor(I,L="",Q,ue){var de;if(Object.defineProperty(this,"token",{enumerable:!0,configurable:!0,writable:!0,value:I}),Object.defineProperty(this,"lazyload",{enumerable:!0,configurable:!0,writable:!0,value:ue}),Object.defineProperty(this,"_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_frozen",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"inactivating",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_ready",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"event",{enumerable:!0,configurable:!0,writable:!0,value:new Dc}),Object.defineProperty(this,"_applicationId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"messages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_loadingMessages",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_loadingMessagesSize",{enumerable:!0,configurable:!0,writable:!0,value:10}),Object.defineProperty(this,"cvforceApi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"socket",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_promptVariables",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"active",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_stopAnswer",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataLoading",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataLoaded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this._applicationId=io(I).rid||Mn.configuration.applicationId,this.cvforceApi=this.getService(),this.event.emit("init",{applicationId:this._applicationId,sessionId:L}),L)this._id=L,this.event.emit("data:loading"),Q?(this.data=Q,ue||(this._dataLoading=!0,this.cvforceApi.getSession(this.applicationId,L).then(H=>Ft(this,void 0,void 0,function*(){this.data=H,this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,L),this.event.emit("data:loaded",this.data),this.event.emit("data:updated",this.data),this._ready=!0,this.event.emit("ready")})).then(()=>Ft(this,void 0,void 0,function*(){yield this.fetchMessages(),this._dataLoaded=!0})))):(this._dataLoading=!0,this.cvforceApi.getSession(this.applicationId,L).then(H=>Ft(this,void 0,void 0,function*(){this.data=H,this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,L),this.event.emit("data:loaded",this.data),this._ready=!0,this.event.emit("ready")})).then(()=>Ft(this,void 0,void 0,function*(){ue||(yield this.fetchMessages(),this._dataLoaded=!0)})));else{const H=(Q==null?void 0:Q.name)||"新建会话";this.event.emit("data:creating",{applicationId:this._applicationId,name:H}),this.event.emit("data:loading"),this.cvforceApi.postSession(this.applicationId,{name:H,netOpen:Q==null?void 0:Q.netOpen,knowledgeList:(de=Q==null?void 0:Q.knowledges)===null||de===void 0?void 0:de.map(_=>_.id),applicationId:this._applicationId}).then(_=>Ft(this,void 0,void 0,function*(){this._id=_.id,this.data=_,this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,this._id),this.event.emit("data:created",this.data),this.event.emit("data:loaded",this.data),this.event.emit("data:updated",this.data),this._ready=!0,this.event.emit("ready")}))}}get id(){return this._id}get applicationId(){return this._applicationId}get ready(){return this._ready}get frozen(){return this._frozen}set frozen(I){I===!1&&this.inactivating&&this.socket&&(console.log("[frozen] socket disconnect",this._id),this.socket.disconnect(),this.socket=null,this.event.emit("inactivated")),this._frozen=I,this.event.emit("frozen",I)}get knowledges(){if(!this.data)throw Error("session data is not loaded");return this.data.knowledges||[]}setKnowledges(I){return Ft(this,void 0,void 0,function*(){if(!this.data)throw Error("session data is not loaded");return yield this.cvforceApi.patchSessionsId(this._applicationId,this.data.id,{knowledges:I}),this.data.knowledges=I,this.event.emit("data:updated",this.data),this.event.emit("data:updated:knowledges",{knowledges:I}),I})}get promptVariables(){return this._promptVariables.filter(I=>I.key!=="query")}setPromptVariables(I){return Ft(this,void 0,void 0,function*(){return yield Promise.all(I.filter(L=>L.key!=="query").map(L=>{if(!this.data)throw Error("session data is not loaded");if(!(!L.id||!L.key))return this.cvforceApi.patchApplicationIdSessionpromptVariablesId(this._applicationId,this.data.id,L.id,{value:L.value})})),!0})}getService(){return lc(Mn.configuration.apiRoot,this.token,(I,L)=>{const Q=new Error(Fn.DataRequestFailed);Ii.error(Q),this.event.emit("error",Q)})}addEventListener(I,L,Q=!1){if(typeof L!="function")throw Error("event listener is not a function");if(Q){this.event.once(I,L);return}this.event.on(I,L)}removeEventListener(I,L){this.event.off(I,L)}fetchMessages(){return Ft(this,arguments,void 0,function*(I={}){var L;const Q={pageSize:this._loadingMessagesSize};if(this._id){I=Object.assign(Object.assign({},Q),I),this.event.emit("history:loading"),Ii.log("history:loading"),(I.endTime||I.startTime)&&(this.event.emit("history:moreloading",I),Ii.log("history:moreloading",I)),this._loadingMessages=!0;const ue=yield this.cvforceApi.getChatHistorySessionId(this._applicationId,this._id,I),de=ue.map((_,y)=>{var M,v;let m=[],E;return typeof((M=_.agentHistoryList)===null||M===void 0?void 0:M.agentList)=="string"&&(m=JSON.parse(_.agentHistoryList.agentList).reduce((p,c)=>(p[c.data.step-1]||(p[c.data.step-1]=[]),p[c.data.step-1].push(c),p),[])),y===ue.length-1&&(E=(v=this.data)===null||v===void 0?void 0:v.lastRelatedQuestion),Object.assign(Object.assign({},_),{actions:m,relatedQuesion:E})});if(!I.endTime&&!I.startTime)this.messages=de;else if(I.endTime&&!I.startTime){const _=this.messages.findIndex(y=>y.ts===I.endTime);this.messages.splice(0,_+1),this.messages=[...de,...this.messages]}else if(!I.endTime&&I.startTime){const _=this.messages.findLastIndex(y=>y.ts===I.endTime);this.messages.splice(_,this.messages.length-_-1),this.messages=[...this.messages,...de]}else{const _=this.messages.findIndex(M=>M.ts===I.endTime),y=this.messages.findLastIndex(M=>M.ts===I.endTime);this.messages.splice(_,y-_+1,...de)}const H=this.messages[this.messages.length-1];return H&&!H.relatedQuesion&&(H.relatedQuesion=(L=this.data)===null||L===void 0?void 0:L.lastRelatedQuestion),this.event.emit("history:moreloaded",de),Ii.log("history:loaded",this.messages),this.event.emit("history:loaded",this.messages),this._loadingMessages=!1,de}else{const ue=new Error(Fn.IdUndefined);return Ii.error(ue),this.event.emit("error",ue),!1}})}rename(I){return Ft(this,void 0,void 0,function*(){if(!this._id)throw Error("session is not created yet");if(I.trim()==="")throw Error("name is empty");return this.data=yield this.cvforceApi.patchSessionsId(this.applicationId,this._id,{name:I}),this.event.emit("data:updated",this.data),this.event.emit("data:updated:name",{name:I}),!0})}pushMessage(I){return Ft(this,void 0,void 0,function*(){this.messages.push(I),Ii.log("history:add",I),this.event.emit("history:add",I),this.event.emit("message:new",I),this.event.emit("message:updated",I)})}reloadSessionInfo(){if(!this._id)throw Error("session is not created yet");return this._dataLoading=!0,this.cvforceApi.getSession(this.applicationId,this._id).then(I=>Ft(this,void 0,void 0,function*(){if(this.data=I,!this._id)throw Error("session is not created yet");this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,this._id),this.event.emit("data:loaded",this.data),this.event.emit("data:updated",this.data),this._ready=!0,this.event.emit("ready")})).then(()=>Ft(this,void 0,void 0,function*(){yield this.fetchMessages(),this._dataLoaded=!0}))}reload(){return Ft(this,void 0,void 0,function*(){return yield this.reloadSessionInfo(),this.socket?(this.inactivate(!0),this.activate()):this.activate()})}delete(){return Ft(this,void 0,void 0,function*(){if(!this.id){const I=new Error(Fn.IdUndefined);return Ii.error(I),this.event.emit("error",I),!1}return this.event.emit("data:deleting"),yield this.cvforceApi.delSessionsId(this.applicationId,this.id),this.event.emit("data:deleted"),this.destroy()})}activate(){return Ft(this,void 0,void 0,function*(){if(!this._id)throw Error("session is not avalible. id is undefined");const I=this._id;!this._dataLoading&&!this._dataLoaded&&(this._dataLoading=!0,yield this.cvforceApi.getSession(this.applicationId,I).then(L=>Ft(this,void 0,void 0,function*(){this.data=L,this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,I),this.event.emit("data:loaded",this.data),this.event.emit("data:updated",this.data),this._ready=!0,this.event.emit("ready")})),yield this.fetchMessages(),this._dataLoaded=!0),this.inactivating=!1,this.frozen=!0,yield this.prepareConnection(),this.event.emit("activated",this.socket),this.active=!0})}inactivate(I=!1){return console.log("[inactivate]"),console.log("last message: ",this.messages[this.messages.length-1]),this.socket?this._frozen?(I||(this.inactivating=!0),console.log("this._frozen: ",this._frozen),console.log("immediately: ",I),console.log("inactivating: ",this.inactivating),!0):(console.log("[inactivate] socket disconnect",this._id),this.socket.close(),this.socket=null,this.event.emit("inactivated"),this.active=!1,!0):!0}send(I){return Ft(this,arguments,void 0,function*(L,Q={stream:!1}){var ue;const{stream:de=!1,referenceFirst:H=!1}=Q,_=L.uuid||Pc(),y=((ue=L.text)===null||ue===void 0?void 0:ue.trim())||"",M=L.fileIds;if(!y&&!(M!=null&&M.length)){const s=new Error(Fn.SendingEmptyContent);return Ii.error(s),this.event.emit("error",s),!1}if(!this._id){const s=new Error(Fn.IdUndefined);return Ii.error(s),this.event.emit("error",s),!1}if(this.frozen){const s=new Error(Fn.Frozen);return Ii.error(s),this.event.emit("error",s),!1}this.frozen=!0,this._stopAnswer=!1;const v={sessionId:this._id,role:2,content:y,messageId:_,reference:[],searchReference:[],messageTime:""},m={content:y,stream:de,requestId:_,fileIds:M,referenceFirst:H};this.pushMessage(v),this.event.emit("question:content",y);const E=s=>Ft(this,void 0,void 0,function*(){if(s.role!==vi.Robot)return;switch(this.removeEventListener("answer:finish",E),this._id&&s.content&&s.index&&s.index<0&&(this.data=yield this.cvforceApi.patchSessionsId(this.applicationId,this._id,{finialMessage:s.content}),this.event.emit("data:updated",this.data),this.event.emit("data:updated:finialMessage",{finialMessage:s.content})),yield this.fillMessageReference(s),s.code){case 11915:s.content="请您换个问题问我吧~",s.index=-1,s.isSensitive=!0,s.isLoading=!1,s.sessionId=this._id||"",this.event.emit("message:error",s);break;case 200:s.index=-1,s.isLoading=!1;break;default:s.content=s.message||"未知错误",s.isLoading=!1,s.index=-1,this.event.emit("message:error",s)}const p=yield this.getRelatedQuesion(s);s=Object.assign(Object.assign({},s),p),s.isLoading=!1;let c=this.messages[this.messages.length-1];if(c&&c.role===vi.Robot){const l=Object.assign(Object.assign({},c),s);this.messages[this.messages.length-1]=l,this.event.emit("message:updated",l)}else this.pushMessage(s);this.frozen=!1});return this.addEventListener("answer:finish",E),this.sendQuestion(m,Object.assign(Object.assign({},Q),{stream:de,referenceFirst:H})),v})}getRelatedQuesion(I){return Ft(this,void 0,void 0,function*(){var L;if(!I.content||I.isSensitive||I.code!==200)return I;this.event.emit("message:relatedQuesion:loading",I);const Q=yield this.cvforceApi.postGeneques({content:I.content}).catch(H=>null);if(!Q){const H=[],_=Object.assign(Object.assign({},I),{relatedQuesion:H,index:-3,isLoading:!1});return this.event.emit("message:relatedQuesion:loaded",{relatedQuesion:H}),_}const ue=(L=Q.content)===null||L===void 0?void 0:L.split("*").map(rf).map(of).filter(H=>!!H),de=Object.assign(Object.assign({},I),{relatedQuesion:ue,index:-3,isLoading:!1});return this.event.emit("message:relatedQuesion:loaded",de),this._id&&this.cvforceApi.patchSessionsId(this._applicationId,this._id,{lastRelatedQuestion:ue}),de})}fillMessageReference(I){return Ft(this,void 0,void 0,function*(){var L;return(L=I.reference)===null||L===void 0||L.forEach((Q,ue)=>Ft(this,void 0,void 0,function*(){const de=yield this.cvforceApi.getKnowledgeIdFileId(Q.knowledgeId,Q.docId);I.reference[ue]=Object.assign(Object.assign({},Q),de)})),I})}answerAgain(){return Ft(this,arguments,void 0,function*(I={stream:!1}){const L=this.messages[this.messages.length-1];if(!L)throw Error("message list is empty");this._stopAnswer=!1;const{stream:Q=!1}=I;let ue;L.role!==vi.User&&(ue=I.oldMessageId||L.messageId,this.messages.splice(this.messages.length-1,1),this.event.emit("message:remove",L),this.event.emit("history:remove",L));const de=this.messages[this.messages.length-1],H={content:de.content,fileIds:de.fileIds,requestId:de.messageId,stream:Q,oldMessageId:ue},_=y=>Ft(this,void 0,void 0,function*(){if(console.log("handleAnswerFinish",y),y.role===vi.Robot&&y.index===-1){switch(this._id&&y.content&&y.index&&y.index<0&&(this.data=yield this.cvforceApi.patchSessionsId(this.applicationId,this._id,{finialMessage:y.content}),this.event.emit("data:updated",this.data),this.event.emit("data:updated:finialMessage",{finialMessage:y.content})),yield this.fillMessageReference(y),y.code){case 11915:y.content="请您换个问题问我吧~",y.index=-1,y.isSensitive=!0,y.isLoading=!1,y.sessionId=this._id||"",this.event.emit("message:error",y);break;case 200:y.index=-1,y.isLoading=!1;break;default:y.content=y.message||"未知错误",y.isLoading=!1,y.index=-1,this.event.emit("message:error",y)}const M=yield this.getRelatedQuesion(y);this.event.emit("message:updated",M),this.removeEventListener("message:content",_)}});this.addEventListener("message:content",_),this.sendQuestion(H,Object.assign(Object.assign({},I),{stream:Q}))})}setTop(I){return Ft(this,void 0,void 0,function*(){if(!this._id)throw Error("session is not avalible. id is undefined");this.data=yield this.cvforceApi.patchSessionsId(this._applicationId,this._id,{top:I}),this.event.emit("data:updated",this.data),this.event.emit("data:updated:top",{top:I})})}suspend(){var I;this.stopAnswer(),this.frozen=!1,this._stopAnswer=!0;let L=this.messages[this.messages.length-1];const Q={messageId:Pc(),isLoading:!1,index:-2,messageTime:uc(new Date).format("YYYY-MM-DD HH:ss:mm"),content:"",role:vi.System,sessionId:"",reference:[],searchReference:[]};if(L&&!L.messageId){if(L.index===-2)return;if(L.actions){const ue=L.actions[((I=L.actions)===null||I===void 0?void 0:I.length)-1];if(ue){const de=ue[ue.length-1];if(de&&(de.type==="BEFORE_CALL"||de.type==="FUNCTION_CALL")){const{pluginName:H,pluginCode:_,funcCode:y,funcName:M}=de.data;ue.push({data:{pluginName:H,pluginCode:_,funcCode:y,funcName:M,step:de.data.step+1},type:"ABORT"}),this.event.emit("message:action",{messageId:L.messageId,action:ue})}}}L=Object.assign(Object.assign({},L),Q),this.event.emit("message:content",L),this.event.emit("message:updated",L)}else this.pushMessage(Q),this.event.emit("message:content",Q);return this}clear(){if(!this._id)throw Error("session is not avalible. id is undefined");return this.cvforceApi.patchApplicationIdSessionsIdContext(this._applicationId,this._id).then(()=>(this.event.emit("context:clear"),!0))}destroy(){var I;return this._ready=!1,this.event.removeAllListeners(),console.log("[destroy] socket disconnect",this._id),(I=this.socket)===null||I===void 0||I.disconnect(),this.socket=null,this.event.emit("destroy",{applicationId:this._applicationId,sessionId:this._id}),this._id||""}}const Vi=new Dn("[AgentClient] ");class ud extends oa{constructor(I,L="",Q,ue){super(I,L,Q,ue)}prepareConnection(){return new Promise(I=>Ft(this,void 0,void 0,function*(){this.socket&&I(!0);const L={version:"1.0",stream:"false",appId:this._applicationId,sessionId:this._id,Authorization:`${this.token}`,userMode:Mn.configuration.debug?rr.Debug:rr.Normal},Q=new URL(Mn.configuration.apiRoot),ue=yield bo(Q.origin,{path:Q.pathname.replace("api","socketio")+"/copilot",query:L,transports:["websocket"]});ue.on("connect",()=>{Vi.log("socket:connect"),this.event.emit("socket:connect"),ue.emit("init")}),ue.on("disconnect",()=>{Vi.log("socket:disconnect"),this.event.emit("socket:disconnect")}),ue.on("ready",de=>{if(de.code===200){Vi.log("ready");const H=Mn.configuration.debug?rr.Debug:rr.Normal;H===rr.Debug&&H!==de.userMode&&console.warn(Fn.UserModeError),this._ready||(this._ready=!0,this.event.emit("ready")),this.frozen=!1,I(!0)}else{this._ready&&(this._ready=!1);const H=new Error(Fn.SocketConnectionFailed);Vi.error("error",H),this.event.emit("error",H),I(!1)}}),ue.on("action",(de,H)=>Ft(this,void 0,void 0,function*(){if(this._stopAnswer||!this._id)return;const{type:_,data:{runnerIsClient:y,pluginCode:M,funcCode:v,parameters:m,requestBody:E}}=de,s=this.messages[this.messages.length-1];if(!s.messageId)s.actions||(s.actions=[]),s.actions[de.data.step-1]||(s.actions[de.data.step-1]=[]),s.actions[de.data.step-1].push(de),this.event.emit("message:action",{messageId:s.messageId,action:de}),this.event.emit("message:updated",s);else{const p={messageId:"",content:"",role:vi.Robot,sessionId:this._id,reference:[],searchReference:[],isLoading:!0,messageTime:"",actions:[[de]]};this.pushMessage(p),this.event.emit("message:action",{messageId:p.messageId,action:de})}if(this.inactivating){const p=new Error(Fn.Inactive);Vi.warn("error",p),this.event.emit("error",p)}else if(_==="FUNCTION_CALL"&&y){if(Vi.log(`calling function ${v} of plugin ${M} with argument:
|
|
138
|
+
${JSON.stringify(m)}`),!Mn.configuration.plugins[M]){H({code:404,message:"对不起,没有找到插件。"});return}const p=Mn.configuration.plugins[M].functions[v];typeof p!="function"&&H({code:404,message:"对不起,没有找到插件方法。"});let c=m==null?void 0:m.query;try{c=JSON.parse(m==null?void 0:m.query)}catch{}p(c,(...l)=>{this._stopAnswer||H(...l)})}})),ue.on("answer",de=>{if(!this._stopAnswer)if(de.data.code!==200&&(de.data.index=-1,this.event.emit("error",de.data)),de.data.index===-1){let H=this.messages[this.messages.length-1];if(H&&!H.messageId)H=Object.assign(Object.assign({},H),de.data),this.event.emit("message:content",H),this.event.emit("message:updated",H),this.event.emit("answer:finish",H);else{const _=Object.assign({messageId:"",content:"",role:vi.Robot,sessionId:this._id,reference:[],searchReference:[],isLoading:!1,messageTime:"",actions:[]},de.data);this.event.emit("message:content",_),this.pushMessage(_),this.event.emit("answer:finish",_)}}else{let H=this.messages[this.messages.length-1];H&&!H.messageId?(H=Object.assign(Object.assign({},H),de.data),this.messages[this.messages.length-1]=H,this.event.emit("message:content",H),this.event.emit("message:updated",H)):(this.pushMessage(de.data),this.event.emit("message:content",de.data))}}),ue.on("reference",de=>Ft(this,void 0,void 0,function*(){if(this._stopAnswer)return;if(!this._id){const m=new Error(Fn.IdUndefined);Vi.error(m),this.event.emit("error",m),this.frozen=!1;return}const{type:H,data:_,requestId:y}=de,M=this.messages.findIndex(m=>m.messageId===y&&m.role===vi.User);if(M<0)return;const v=M+1;if(v>=this.messages.length){const m={messageId:"",content:"",role:vi.Robot,sessionId:this._id,reference:[],searchReference:[],isLoading:!0,messageTime:"",actions:[]};this.pushMessage(m)}H==="KG"?(this.messages[v]=Object.assign(Object.assign({},this.messages[v]),{reference:_.knowledgeReference}),yield this.fillMessageReference(this.messages[v]),this.event.emit("message:reference",_.knowledgeReference),this.event.emit("message:updated",this.messages[v])):H==="WEB_SEARCH"&&(this.messages[v]=Object.assign(Object.assign({},this.messages[v]),{searchReference:_.knowledgeReference}),this.event.emit("message:searchreference",_.searchReference),this.event.emit("message:updated",this.messages[v]))})),this.socket=ue,ue.open()}))}sendQuestion(I,L){return Ft(this,void 0,void 0,function*(){var Q,ue;if(!this.active){if(yield this.activate(),!this.socket){const de=new Error(Fn.SocketConnectionFailed);return Vi.warn("error",de),this.event.emit("error",de),!1}(Q=this.socket)===null||Q===void 0||Q.emit("question",I)}(ue=this.socket)===null||ue===void 0||ue.emit("question",I)})}stopAnswer(){var I;(I=this.socket)===null||I===void 0||I.emit("stop_answer")}}function cd(G,I){return Ft(this,void 0,void 0,function*(){const L=G.getReader();let Q;for(;!(Q=yield L.read()).done;)I(Q.value)})}var bi;(function(G){G[G.NewLine=10]="NewLine",G[G.CarriageReturn=13]="CarriageReturn",G[G.Space=32]="Space",G[G.Colon=58]="Colon"})(bi||(bi={}));function ld(G){let I,L,Q,ue=!1,de;return function(_){I===void 0?(I=_,L=0,Q=-1,de=!1):I=fd(I,_);const y=I.length;let M=0;for(;L<y;){ue&&(I[L]===bi.NewLine&&(M=++L),ue=!1);let v=-1;for(;L<y&&v===-1;++L)switch(I[L]){case bi.Colon:Q===-1&&(Q=L-M);break;case bi.CarriageReturn:ue=!1,L+4<y&&I[L+1]===bi.NewLine&&I[L+2]!==bi.CarriageReturn&&I[L-1]!==bi.NewLine&&I[L-2]!==bi.CarriageReturn&&(de=!0);case bi.NewLine:v=L;break}if(v===-1)break;G(I.subarray(M,v),Q,de),M=L,Q=-1,de=!1}M===y?I=void 0:M!==0&&(I=I.subarray(M),L-=M)}}function hd(G,I,L){let Q=Lc();const ue=new TextDecoder;return function(H,_,y){if(H.length===0)L==null||L(Q),Q=Lc();else if(_>0){const M=ue.decode(H.subarray(0,_)),v=_+(H[_+1]===bi.Space?2:1);let m=ue.decode(H.subarray(v));switch(y&&(m+=`
|
|
139
|
+
`),M){case"data":Q.data=Q.data?Q.data+`
|
|
140
|
+
`+m:m;break;case"event":Q.event=m;break;case"id":G(Q.id=m);break;case"retry":const E=parseInt(m,10);isNaN(E)||I(Q.retry=E);break}}}}function fd(G,I){const L=new Uint8Array(G.length+I.length);return L.set(G),L.set(I,G.length),L}function Lc(){return{data:"",event:"",id:"",retry:void 0}}const sa="text/event-stream",pd=1e3,qc="last-event-id";function Fc(G,I){var{signal:L,headers:Q,onopen:ue,onmessage:de,onclose:H,onerror:_,openWhenHidden:y,fetch:M}=I,v=Kh(I,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((m,E)=>{const s=Object.assign({},Q);s.accept||(s.accept=sa);let p;function c(){p.abort(),document.hidden||w()}y||document.addEventListener("visibilitychange",c);let l=pd,f=0;function g(){document.removeEventListener("visibilitychange",c),window.clearTimeout(f),p.abort()}L==null||L.addEventListener("abort",()=>{g(),m()});const h=M??window.fetch,u=ue??dd;function w(){return Ft(this,void 0,void 0,function*(){var b;p=new AbortController;try{const k=yield h(G,Object.assign(Object.assign({},v),{headers:s,signal:p.signal}));yield u(k),yield cd(k.body,ld(hd(A=>{A?s[qc]=A:delete s[qc]},A=>{l=A},de))),H==null||H(),g(),m()}catch(k){if(!p.signal.aborted)try{const A=(b=_==null?void 0:_(k))!==null&&b!==void 0?b:l;window.clearTimeout(f),f=window.setTimeout(w,A)}catch(A){g(),E(A)}}})}w()})}function dd(G){const I=G.headers.get("content-type");if(!(I!=null&&I.startsWith(sa)))throw new Error(`Expected content-type to be ${sa}, Actual: ${I}`)}const Uc=new Dn("[DialogClient] ");class md extends oa{constructor(I,L="",Q,ue){super(I,L,Q,ue),Object.defineProperty(this,"ctrl",{enumerable:!0,configurable:!0,writable:!0,value:new AbortController})}prepareConnection(){return new Promise(I=>Ft(this,void 0,void 0,function*(){this._ready||(this._ready=!0,this.event.emit("ready")),this.frozen=!1,I(!0)}))}postChatV2EventSource(I,L,Q,ue,de,H){return Ft(this,void 0,void 0,function*(){const _={code:0,content:"",role:Fs.Robot,sessionId:"",reference:[],searchReference:[],messageTime:"",llmModel:"",comment:{isAgree:0},isReplying:!1},y=Object.assign(Object.assign({},Q),{stream:!0});Fc(`${Mn.configuration.apiRoot}/chat/v2/chat?applicationId=${I}&sessionId=${L}`,{method:"POST",headers:{Authorization:`Bearer ${this.token}`,"Content-Type":"application/json"},body:JSON.stringify(y),openWhenHidden:!0,signal:ue,onopen(M){return M.ok&&de!=null&&de.onopen&&de.onopen(),Promise.resolve()},onmessage(M){if(!M.data.includes('{"code": ')){let m={};try{m=JSON.parse(M.data)}catch{}(m==null?void 0:m.mtype)==="search"?_.searchReference.push(m):_.content=_.content+M.data;const E={content:_.content,role:1,reference:_.reference,searchReference:_.searchReference,messageId:_.messageId,sessionId:L,messageTime:uc(new Date).format("YYYY-MM-DD HH:mm:ss"),comment:{isAgree:0},isReplying:!0};return(de==null?void 0:de.onmessage)&&de.onmessage(E)}const v=JSON.parse(M.data);if(_.reference=v.data.reference,_.searchReference=v.data.searchReference,_.messageTime=v.data.messageTime,_.messageId=v.data.messageId,_.llmModel=v.data.llmModel,_.content=v.data.content,_.code=v.code,v.code===200){const m={code:_.code,content:_.content,role:1,reference:_.reference,searchReference:_.searchReference,messageId:_.messageId,sessionId:L,messageTime:_.messageTime,isReplying:!0};de!=null&&de.onmessage&&de.onmessage(m)}else return H&&H({code:v.code,message:v.message})},onerror(){de!=null&&de.onerror&&de.onerror()},onclose(){const M={code:_.code,content:_.content,role:1,reference:_.reference,searchReference:_.searchReference,messageId:_.messageId,sessionId:L,messageTime:_.messageTime,comment:{isAgree:0},isReplying:!1,index:-1};de!=null&&de.onclose&&de.onclose(M)}})})}postChatV3EventSource(I,L,Q,ue,de,H){return Ft(this,void 0,void 0,function*(){const _={code:0,content:"",role:Fs.Robot,sessionId:"",reference:[],searchReference:[],messageTime:"",llmModel:"",comment:{isAgree:0},isReplying:!1,reasoningContent:"",thinkingSecs:"",thinkingStatus:""},y=Object.assign(Object.assign({},Q),{stream:!0});Fc(`${Mn.configuration.apiRoot}/chat/v3/chat?applicationId=${I}&sessionId=${L}`,{method:"POST",headers:{Authorization:`Bearer ${this.token}`,"Content-Type":"application/json"},body:JSON.stringify(y),openWhenHidden:!0,signal:ue,onopen(M){return M.ok&&de!=null&&de.onopen&&de.onopen(),Promise.resolve()},onmessage(M){if(!M.data&&!M.event&&!M.id&&!M.retry)return;let v={};try{v=JSON.parse(M.data)}catch{console.error("parse eventData to JSON failed. ",M.data)}if(v.code!==200)return H&&H({code:v.code,message:v.message});const m=v.data.type,E=v.data.payload;if(_.isReplying=!0,m==="search"&&_.searchReference.push(E),m==="thinking"){_.thinkingStatus="start";const p=E.choices[0];_.reasoningContent=_.reasoningContent+p.delta.reasoningContent}if(m==="thinkingOver"){_.thinkingStatus="end";const s=E.thinkingSecs;_.thinkingSecs=s}if(m==="text"){const p=E.choices[0];_.content=_.content+p.delta.content}if(m==="reference"&&(_.reference=E),m==="result"){const s=E.messageId,p=E.llmModel,c=E.messageTime;_.messageId=s,_.llmModel=p,_.messageTime=c,_.sessionId=L}m==="over"?_.index=-1:(_.code=v.code,_.message=v.message),de!=null&&de.onmessage&&de.onmessage(_)},onerror(){de!=null&&de.onerror&&de.onerror()},onclose(){const M=Object.assign(Object.assign({},_),{isReplying:!1});de!=null&&de.onclose&&de.onclose(M)}})})}sendQuestion(I,L){return Ft(this,void 0,void 0,function*(){var Q;const{content:ue,fileIds:de,oldMessageId:H}=I,{stream:_,referenceFirst:y}=L;if(this.active||(yield this.activate()),this._id){let M={content:ue,fileIds:de,referenceFirst:y,oldMessageId:H,promptVariables:this.promptVariables.reduce((v,m)=>Object.assign(Object.assign({},v),{[m.key]:m.value}),{}),knowledges:(Q=this.knowledges)===null||Q===void 0?void 0:Q.map(v=>v.id)};this.postChatV3EventSource(this._applicationId,this._id,M,this.ctrl.signal,{onopen:()=>{Uc.log("open",this.ctrl)},onmessage:v=>{if(this._stopAnswer)return;let m=this.messages[this.messages.length-1];m&&m.role===vi.Robot?(m=Object.assign(Object.assign({},m),v),this.messages[this.messages.length-1]=m,this.event.emit("message:content",m),this.event.emit("message:updated",m)):(this.pushMessage(v),this.event.emit("message:content",v))},onclose:v=>Ft(this,void 0,void 0,function*(){this._stopAnswer||(Uc.log(v,"onclose"),this.event.emit("answer:finish",v),console.log("onclose",v))}),onerror:()=>{this._stopAnswer||(this.event.emit("message:error",""),this.frozen=!1)}})}})}stopAnswer(){this.ctrl.abort()}}const gd=new Dn("[BotClient] ");class vd{constructor(I,L,Q=!0){if(Object.defineProperty(this,"_token",{enumerable:!0,configurable:!0,writable:!0,value:I}),Object.defineProperty(this,"lazyload",{enumerable:!0,configurable:!0,writable:!0,value:Q}),Object.defineProperty(this,"event",{enumerable:!0,configurable:!0,writable:!0,value:new Dc}),Object.defineProperty(this,"cvforceApi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_applicationId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_application",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_sessions",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_activeSession",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_ready",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_questionContextMaxLength",{enumerable:!0,configurable:!0,writable:!0,value:4e3}),Object.defineProperty(this,"_promptVariables",{enumerable:!0,configurable:!0,writable:!0,value:[]}),du(L),this._applicationId=io(I).rid||Mn.configuration.applicationId,!this._applicationId)throw"token is not vaild";this.cvforceApi=this.getService(),this.loadApplication().then(()=>{this.event.emit("ready")})}checkReady(){if(!this.ready)throw Error("client is not ready.")}get ready(){return this._ready}set ready(I){this._ready=I}get questionContextMaxLength(){return this.checkReady(),this._questionContextMaxLength}get promptVariables(){return this.checkReady(),this._promptVariables}get knowledges(){var I;return this.checkReady(),(I=this._application)===null||I===void 0?void 0:I.arrange[0].knowledges}get sessions(){return this.checkReady(),this._sessions}set sessions(I){this.checkReady(),this._sessions=I,this.event.emit("sessions:updated",I)}loadApplication(){return Ft(this,void 0,void 0,function*(){var I,L;this._application=yield this.cvforceApi.getApplicationId(this._applicationId);const Q=(L=(I=this._application.arrange)===null||I===void 0?void 0:I[0])===null||L===void 0?void 0:L.llmModel;return Q&&(this._questionContextMaxLength=yield this.cvforceApi.getBaseModel(Q).then(ue=>ue.maxModelLength)),this._promptVariables=yield this.cvforceApi.getPrompts(this._applicationId),this._ready=!0,this.event.emit("application:loaded"),this._application})}getService(){return this.cvforceApi?this.cvforceApi:lc(Mn.configuration.apiRoot,this.token,(I,L)=>gd.error(L))}get token(){return this._token}set token(I){this.checkReady(),this._token=I,this.ready=!1;const L=io(I).rid;this._applicationId!==L&&(this._applicationId=L,this._application=null,this.loadApplication().then(()=>{this.event.emit("ready")}),this.clean())}get applicationId(){return this._applicationId}get application(){return this.checkReady(),this._application}get activeSession(){var I;return this.checkReady(),((I=this._activeSession)===null||I===void 0?void 0:I.id)||""}set activeSession(I){this.checkReady(),this.loadSession(I).then(L=>{this._activeSession&&this._activeSession.id!==I&&this._activeSession.inactivate(),this._activeSession=L})}createSession(I,L,Q,ue){return Ft(this,void 0,void 0,function*(){return new Promise((de,H)=>{const _=y=>Ft(this,void 0,void 0,function*(){if(y===Vs.Agent)de(new ud(I,L,Q,ue));else if(y===Vs.Dialog)de(new md(I,L,Q,ue));else throw Error(`不支持的应用类型:${y}`)});if(this.ready){if(!this._application)throw Error("client is not ready");_(this._application.type)}else this.event.on("ready",()=>{if(!this._application)throw Error("_application is null");_(this._application.type)},!0)})})}getSessions(I){return Ft(this,void 0,void 0,function*(){return new Promise((L,Q)=>{const ue=()=>this.cvforceApi.listSessions(this._applicationId,I).then(de=>{const H=[];return de.forEach(_=>Ft(this,void 0,void 0,function*(){const y=this._sessions.find(M=>_.id===M.id);if(y)y.data=_,H.push(y);else{const M=yield this.createSession(this.token,_.id,_,this.lazyload);H.push(M)}})),this.sessions=H,H});if(this.ready){if(!this._application)throw Error("_application is null");L(ue())}else this.event.on("ready",()=>{if(!this._application)throw Error("_application is null");L(ue())},!0)})})}loadSession(){return Ft(this,arguments,void 0,function*(I="",L){this.checkReady();let Q=this.sessions.find(ue=>ue.id===I);if(Q||(Q=yield this.createSession(this.token,I,L)),this._activeSession){if(this._activeSession===Q)return Q;this._activeSession.inactivate()}return Q.id?(Q.activate(),this._activeSession=Q):Q.addEventListener("data:loaded",()=>{Q==null||Q.activate(),this._activeSession=Q}),Q})}reload(){return this.loadApplication().then(()=>{this.event.emit("ready")})}reloadSession(I){return Ft(this,void 0,void 0,function*(){yield this.reload();let L=I?this._sessions.find(Q=>Q.id===I):this._activeSession;if(!L){console.warn("reloadSession session failed.");return}return yield L.reload(),L})}setTop(I,L){return Ft(this,arguments,void 0,function*(Q,ue,de="top_time desc, sort_status desc, updated_at desc"){let H=Q?this._sessions.find(_=>_.id===Q):this._activeSession;if(!H){console.warn("setTop session failed.");return}return yield H.setTop(ue),this.getSessions({order:de})})}addEventListener(I,L,Q=!1){if(typeof L!="function")throw Error("event listener is not a function");if(Q){this.event.once(I,L);return}this.event.on(I,L)}removeEventListener(I,L){this.event.off(I,L)}removeSession(I,L){return Ft(this,void 0,void 0,function*(){this.checkReady();let Q=-1;if(typeof I=="string"?Q=this._sessions.findIndex(ue=>ue.id===I):Q=this._sessions.findIndex(ue=>ue===I),Q>-1){const ue=this._sessions[Q];L&&(yield ue.delete()),this._sessions.splice(Q,1)}else console.warn("session delete failed, session is not exist.")})}clean(){this._sessions.forEach(I=>I.destroy()),this.sessions=[]}}class yd{constructor(I,L={},Q){Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"loaded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"functions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this.code=I,L&&(this.functions=L)}fetchData(){this.description="描述",this.loaded=!0}checkFunctions(){}}Mn.AgentPlugin=yd,Mn.BotClient=vd,Mn.Session=oa,Mn.configure=du,Object.defineProperty(Mn,Symbol.toStringTag,{value:"Module"})});
|