@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,126 @@
|
|
|
1
|
+
"use strict";var $f=Object.defineProperty,Vf=Object.defineProperties;var Kf=Object.getOwnPropertyDescriptors;var Ko=Object.getOwnPropertySymbols;var Lc=Object.prototype.hasOwnProperty,Fc=Object.prototype.propertyIsEnumerable;var ha=(ie,O)=>{if(O=Symbol[ie])return O;throw Error("Symbol."+ie+" is not defined")},xn=Math.pow,fa=(ie,O,H)=>O in ie?$f(ie,O,{enumerable:!0,configurable:!0,writable:!0,value:H}):ie[O]=H,nn=(ie,O)=>{for(var H in O||(O={}))Lc.call(O,H)&&fa(ie,H,O[H]);if(Ko)for(var H of Ko(O))Fc.call(O,H)&&fa(ie,H,O[H]);return ie},Gn=(ie,O)=>Vf(ie,Kf(O));var qc=(ie,O)=>{var H={};for(var re in ie)Lc.call(ie,re)&&O.indexOf(re)<0&&(H[re]=ie[re]);if(ie!=null&&Ko)for(var re of Ko(ie))O.indexOf(re)<0&&Fc.call(ie,re)&&(H[re]=ie[re]);return H};var un=(ie,O,H)=>(fa(ie,typeof O!="symbol"?O+"":O,H),H);var Dt=(ie,O,H)=>new Promise((re,de)=>{var Me=y=>{try{S(H.next(y))}catch(k){de(k)}},W=y=>{try{S(H.throw(y))}catch(k){de(k)}},S=y=>y.done?re(y.value):Promise.resolve(y.value).then(Me,W);S((H=H.apply(ie,O)).next())}),Hf=function(ie,O){this[0]=ie,this[1]=O};var Uc=ie=>{var O=ie[ha("asyncIterator")],H=!1,re,de={};return O==null?(O=ie[ha("iterator")](),re=Me=>de[Me]=W=>O[Me](W)):(O=O.call(ie),re=Me=>de[Me]=W=>{if(H){if(H=!1,Me==="throw")throw W;return W}return H=!0,{done:!1,value:new Hf(new Promise(S=>{var y=O[Me](W);if(!(y instanceof Object))throw TypeError("Object expected");S(y)}),1)}}),de[ha("iterator")]=()=>de,re("next"),"throw"in O?re("throw"):de.throw=Me=>{throw Me},"return"in O&&re("return"),de};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const cl=require("axios"),ll=require("dayjs"),lr=class lr{constructor(O,H=!1){this.prefix=O,this.open=H}disable(){this.open=!1}enable(){this.open=!0}log(...O){!this.open&&!lr.debug||console.log(this.prefix,...O)}info(...O){!this.open&&!lr.debug||console.info(`%c ${this.prefix} %o`,"color:#0f0;",...O)}error(...O){!this.open&&!lr.debug||console.error(this.prefix,...O)}warn(...O){!this.open&&!lr.debug||console.warn(this.prefix,...O)}};un(lr,"debug",!1);let Ui=lr;const Wf=new Ui("[Config] ");var hl=(ie=>(ie.dev="https://aiot-dev.glodon.com/api/cvforcepd",ie.test="https://aiot-dev.glodon.com/api/cvforce",ie.prod="https://copilot.glodon.com/api/cvforce",ie.local="http://localhost:3000/api/cvforcepd",ie))(hl||{});exports.configuration={debug:!1,env:"prod",apiRoot:"https://copilot.glodon.com/api/cvforce",applicationId:"",plugins:{}};function fl(ie){console.log("configure",ie),Ui.debug=(ie==null?void 0:ie.debug)||!1,exports.configuration=Gn(nn(nn({},exports.configuration),ie),{apiRoot:(ie==null?void 0:ie.apiRoot)||exports.configuration.apiRoot||(ie!=null&&ie.env?hl[ie.env||"prod"]:exports.configuration.apiRoot)}),Wf.log("updated",exports.configuration)}const Sa=typeof Buffer=="function",zc=typeof TextDecoder=="function"?new TextDecoder:void 0;typeof TextEncoder=="function"&&new TextEncoder;const Zf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Gf=Array.prototype.slice.call(Zf),Ho=(ie=>{let O={};return ie.forEach((H,re)=>O[H]=re),O})(Gf),Xf=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,hr=String.fromCharCode.bind(String),$c=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):ie=>new Uint8Array(Array.prototype.slice.call(ie,0)),pl=ie=>ie.replace(/[^A-Za-z0-9\+\/]/g,""),Yf=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Jf=ie=>{switch(ie.length){case 4:var O=(7&ie.charCodeAt(0))<<18|(63&ie.charCodeAt(1))<<12|(63&ie.charCodeAt(2))<<6|63&ie.charCodeAt(3),H=O-65536;return hr((H>>>10)+55296)+hr((H&1023)+56320);case 3:return hr((15&ie.charCodeAt(0))<<12|(63&ie.charCodeAt(1))<<6|63&ie.charCodeAt(2));default:return hr((31&ie.charCodeAt(0))<<6|63&ie.charCodeAt(1))}},Qf=ie=>ie.replace(Yf,Jf),ep=ie=>{if(ie=ie.replace(/\s+/g,""),!Xf.test(ie))throw new TypeError("malformed base64.");ie+="==".slice(2-(ie.length&3));let O,H="",re,de;for(let Me=0;Me<ie.length;)O=Ho[ie.charAt(Me++)]<<18|Ho[ie.charAt(Me++)]<<12|(re=Ho[ie.charAt(Me++)])<<6|(de=Ho[ie.charAt(Me++)]),H+=re===64?hr(O>>16&255):de===64?hr(O>>16&255,O>>8&255):hr(O>>16&255,O>>8&255,O&255);return H},dl=typeof atob=="function"?ie=>atob(pl(ie)):Sa?ie=>Buffer.from(ie,"base64").toString("binary"):ep,tp=Sa?ie=>$c(Buffer.from(ie,"base64")):ie=>$c(dl(ie).split("").map(O=>O.charCodeAt(0))),np=Sa?ie=>Buffer.from(ie,"base64").toString("utf8"):zc?ie=>zc.decode(tp(ie)):ie=>Qf(dl(ie)),ip=ie=>pl(ie.replace(/[-_]/g,O=>O=="-"?"+":"/")),rp=ie=>np(ip(ie)),ts=ie=>JSON.parse(rp(ie.split(".")[1])),op=ie=>{const O=ts(ie).exp;return new Date().valueOf()/1e3>=O},sp=ie=>ie==null?void 0:ie.replace(/[\r\n]+/gm,""),ap=ie=>ie.replace(/\\|\\/g,"");var up=Object.defineProperty,Vc=Object.getOwnPropertySymbols,cp=Object.prototype.hasOwnProperty,lp=Object.prototype.propertyIsEnumerable,Kc=(ie,O,H)=>O in ie?up(ie,O,{enumerable:!0,configurable:!0,writable:!0,value:H}):ie[O]=H,pa=(ie,O)=>{for(var H in O||(O={}))cp.call(O,H)&&Kc(ie,H,O[H]);if(Vc)for(var H of Vc(O))lp.call(O,H)&&Kc(ie,H,O[H]);return ie},pi=(ie,O,H)=>new Promise((re,de)=>{var Me=y=>{try{S(H.next(y))}catch(k){de(k)}},W=y=>{try{S(H.throw(y))}catch(k){de(k)}},S=y=>y.done?re(y.value):Promise.resolve(y.value).then(Me,W);S((H=H.apply(ie,O)).next())});class hp{constructor(O,H){this.axios=O,this.errorHandler=H}get(O,H,re){return pi(this,null,function*(){const de=this.axios.get(O,{params:H});return this.handleResponse(de,re)})}listPaged(O,H){return pi(this,null,function*(){const re=this.axios.get(O,{params:H});return this.handleResponse(re)})}list(O,H){return pi(this,null,function*(){const re=this.axios.get(O,{params:H});return this.handleResponse(re)})}delete(O,H){return pi(this,null,function*(){const re=this.axios.delete(O,{params:H});return this.handleResponse(re)})}post(O,H,re,de){return pi(this,null,function*(){const Me=this.axios.post(O,H,pa({params:re},de));return this.handleResponse(Me)})}postForm(O,H,re){return pi(this,null,function*(){const de=this.axios.post(O,H,{params:re,headers:{"Content-Type":"multipart/form-data"}});return this.handleResponse(de)})}patch(O,H,re){return pi(this,null,function*(){const de=this.axios.patch(O,H,{params:re});return this.handleResponse(de)})}put(O,H){return pi(this,null,function*(){const re=this.axios.put(O,H);return this.handleResponse(re)})}upload(O,H,re){return pi(this,null,function*(){const de=this.axios.post(O,H,pa({},re));return this.handleResponse(de)})}getNonStandard(O,H){return pi(this,null,function*(){const re=this.axios.get(O,H);try{const de=yield re;if(de.status===200)return de}catch(de){throw this.handleError(de)}})}postNonStandard(O,H,re,de){return pi(this,null,function*(){var Me,W;const S=yield this.axios.post(O,H,pa({params:re},de));if(S.status===200)if((Me=S.data)!=null&&Me.code)(W=this.errorHandler)!=null&&W.onAppStatusError&&this.errorHandler.onAppStatusError(S.data.code,S.data.message);else return S.data})}handleResponse(O,H){return pi(this,null,function*(){try{const re=yield O;return this.handleAppError(re.data,H).data}catch(re){throw this.handleError(re)}})}handleAppError(O,H){var re;if(O.code<200||O.code>=300)throw(re=this.errorHandler)!=null&&re.onAppStatusError?this.errorHandler.onAppStatusError(O.code,pp(O.code,O.message),H):console.error("未处理应用错误:",O),{isAxiosError:!1,message:O.message};return O}handleError(O){var H,re;return O.response?(console.log(O.response.data),console.log(O.response.status),console.log(O.response.headers),(H=this.errorHandler)!=null&&H.onHttpStatusError&&(console.log("HTTP 错误",this.errorHandler),this.errorHandler.onHttpStatusError(O.response.status,"",O.response))):O.request?(console.log(O.request),(re=this.errorHandler)!=null&&re.onNetworkError&&this.errorHandler.onNetworkError()):console.error("axios request config error:",O),new Error(O.message)}}const fp=ie=>ie>=10002&&ie<=10012,pp=(ie,O)=>fp(ie)?"数据操作错误":O||"未知接口错误";var dp=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ml={exports:{}};/*! For license information please see minio-zj.js.LICENSE.txt */(function(ie,O){(function(H,re){ie.exports=re()})(dp,()=>(()=>{var H={9809:(W,S,y)=>{const k=S;k.bignum=y(4590),k.define=y(2500).define,k.base=y(1979),k.constants=y(6826),k.decoders=y(8307),k.encoders=y(6579)},2500:(W,S,y)=>{const k=y(6579),w=y(8307),g=y(5717);function M(s,p){this.name=s,this.body=p,this.decoders={},this.encoders={}}S.define=function(s,p){return new M(s,p)},M.prototype._createNamed=function(s){const p=this.name;function c(l){this._initNamed(l,p)}return g(c,s),c.prototype._initNamed=function(l,f){s.call(this,l,f)},new c(this)},M.prototype._getDecoder=function(s){return s=s||"der",this.decoders.hasOwnProperty(s)||(this.decoders[s]=this._createNamed(w[s])),this.decoders[s]},M.prototype.decode=function(s,p,c){return this._getDecoder(p).decode(s,c)},M.prototype._getEncoder=function(s){return s=s||"der",this.encoders.hasOwnProperty(s)||(this.encoders[s]=this._createNamed(k[s])),this.encoders[s]},M.prototype.encode=function(s,p,c){return this._getEncoder(p).encode(s,c)}},6625:(W,S,y)=>{const k=y(5717),w=y(8465).b,g=y(2399).Buffer;function M(p,c){w.call(this,c),g.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=g.byteLength(p);else{if(!g.isBuffer(p))return c.error("Unsupported type: "+typeof p);this.value=p,this.length=p.length}}k(M,w),S.C=M,M.isDecoderBuffer=function(p){return p instanceof M||typeof p=="object"&&g.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"},M.prototype.save=function(){return{offset:this.offset,reporter:w.prototype.save.call(this)}},M.prototype.restore=function(p){const c=new M(this.base);return c.offset=p.offset,c.length=this.offset,this.offset=p.offset,w.prototype.restore.call(this,p.reporter),c},M.prototype.isEmpty=function(){return this.offset===this.length},M.prototype.readUInt8=function(p){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(p||"DecoderBuffer overrun")},M.prototype.skip=function(p,c){if(!(this.offset+p<=this.length))return this.error(c||"DecoderBuffer overrun");const l=new M(this.base);return l._reporterState=this._reporterState,l.offset=this.offset,l.length=this.offset+p,this.offset+=p,l},M.prototype.raw=function(p){return this.base.slice(p?p.offset:this.offset,this.length)},S.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=g.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):g.isBuffer(this.value)&&this.value.copy(p,c),c+=this.length)),p}},1979:(W,S,y)=>{const k=S;k.Reporter=y(8465).b,k.DecoderBuffer=y(6625).C,k.EncoderBuffer=y(6625).R,k.Node=y(1949)},1949:(W,S,y)=>{const k=y(8465).b,w=y(6625).R,g=y(6625).C,M=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,m,h){const u={};this._baseState=u,u.name=h,u.enc=f,u.parent=m||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())}W.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,m={};l.forEach(function(u){m[u]=f[u]});const h=new this.constructor(m.parent);return h._baseState=m,h},c.prototype._wrap=function(){const f=this._baseState;p.forEach(function(m){this[m]=function(){const h=new this.constructor(this);return f.children.push(h),h[m].apply(h,arguments)}},this)},c.prototype._init=function(f){const m=this._baseState;M(m.parent===null),f.call(this),m.children=m.children.filter(function(h){return h._baseState.parent===this},this),M.equal(m.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(f){const m=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&&(M(m.children===null),m.children=h,h.forEach(function(u){u._baseState.parent=this},this)),f.length!==0&&(M(m.args===null),m.args=f,m.reverseArgs=f.map(function(u){if(typeof u!="object"||u.constructor!==Object)return u;const b={};return Object.keys(u).forEach(function(v){v==(0|v)&&(v|=0);const _=u[v];b[_]=v}),b}))},["_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 m=this._baseState;throw new Error(f+" not implemented for encoding: "+m.enc)}}),s.forEach(function(f){c.prototype[f]=function(){const m=this._baseState,h=Array.prototype.slice.call(arguments);return M(m.tag===null),m.tag=f,this._useArgs(h),this}}),c.prototype.use=function(f){M(f);const m=this._baseState;return M(m.use===null),m.use=f,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(f){const m=this._baseState;return M(m.default===null),m.default=f,m.optional=!0,this},c.prototype.explicit=function(f){const m=this._baseState;return M(m.explicit===null&&m.implicit===null),m.explicit=f,this},c.prototype.implicit=function(f){const m=this._baseState;return M(m.explicit===null&&m.implicit===null),m.implicit=f,this},c.prototype.obj=function(){const f=this._baseState,m=Array.prototype.slice.call(arguments);return f.obj=!0,m.length!==0&&this._useArgs(m),this},c.prototype.key=function(f){const m=this._baseState;return M(m.key===null),m.key=f,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(f){const m=this._baseState;return M(m.choice===null),m.choice=f,this._useArgs(Object.keys(f).map(function(h){return f[h]})),this},c.prototype.contains=function(f){const m=this._baseState;return M(m.use===null),m.contains=f,this},c.prototype._decode=function(f,m){const h=this._baseState;if(h.parent===null)return f.wrapResult(h.children[0]._decode(f,m));let u,b=h.default,v=!0,_=null;if(h.key!==null&&(_=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(v=this._peekTag(f,A,h.any),f.isError(v))return v}else{const x=f.save();try{h.choice===null?this._decodeGeneric(h.tag,f,m):this._decodeChoice(f,m),v=!0}catch(j){v=!1}f.restore(x)}}if(h.obj&&v&&(u=f.enterObject()),v){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?b=f.raw(x):f=j}if(m&&m.track&&h.tag!==null&&m.track(f.path(),A,f.length,"tagged"),m&&m.track&&h.tag!==null&&m.track(f.path(),f.offset,f.length,"content"),h.any||(b=h.choice===null?this._decodeGeneric(h.tag,f,m):this._decodeChoice(f,m)),f.isError(b))return b;if(h.any||h.choice!==null||h.children===null||h.children.forEach(function(x){x._decode(f,m)}),h.contains&&(h.tag==="octstr"||h.tag==="bitstr")){const x=new g(b);b=this._getUse(h.contains,f._reporterState.obj)._decode(x,m)}}return h.obj&&v&&(b=f.leaveObject(u)),h.key===null||b===null&&v!==!0?_!==null&&f.exitKey(_):f.leaveKey(_,h.key,b),b},c.prototype._decodeGeneric=function(f,m,h){const u=this._baseState;return f==="seq"||f==="set"?null:f==="seqof"||f==="setof"?this._decodeList(m,f,u.args[0],h):/str$/.test(f)?this._decodeStr(m,f,h):f==="objid"&&u.args?this._decodeObjid(m,u.args[0],u.args[1],h):f==="objid"?this._decodeObjid(m,null,null,h):f==="gentime"||f==="utctime"?this._decodeTime(m,f,h):f==="null_"?this._decodeNull(m,h):f==="bool"?this._decodeBool(m,h):f==="objDesc"?this._decodeStr(m,f,h):f==="int"||f==="enum"?this._decodeInt(m,u.args&&u.args[0],h):u.use!==null?this._getUse(u.use,m._reporterState.obj)._decode(m,h):m.error("unknown tag: "+f)},c.prototype._getUse=function(f,m){const h=this._baseState;return h.useDecoder=this._use(f,m),M(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,m){const h=this._baseState;let u=null,b=!1;return Object.keys(h.choice).some(function(v){const _=f.save(),A=h.choice[v];try{const x=A._decode(f,m);if(f.isError(x))return!1;u={type:v,value:x},b=!0}catch(x){return f.restore(_),!1}return!0},this),b?u:f.error("Choice not matched")},c.prototype._createEncoderBuffer=function(f){return new w(f,this.reporter)},c.prototype._encode=function(f,m,h){const u=this._baseState;if(u.default!==null&&u.default===f)return;const b=this._encodeValue(f,m,h);return b===void 0||this._skipDefault(b,m,h)?void 0:b},c.prototype._encodeValue=function(f,m,h){const u=this._baseState;if(u.parent===null)return u.children[0]._encode(f,m||new k);let b=null;if(this.reporter=m,u.optional&&f===void 0){if(u.default===null)return;f=u.default}let v=null,_=!1;if(u.any)b=this._createEncoderBuffer(f);else if(u.choice)b=this._encodeChoice(f,m);else if(u.contains)v=this._getUse(u.contains,h)._encode(f,m),_=!0;else if(u.children)v=u.children.map(function(A){if(A._baseState.tag==="null_")return A._encode(null,m,f);if(A._baseState.key===null)return m.error("Child should have a key");const x=m.enterKey(A._baseState.key);if(typeof f!="object")return m.error("Child expected, but input is not object");const j=A._encode(f[A._baseState.key],m,f);return m.leaveKey(x),j},this).filter(function(A){return A}),v=this._createEncoderBuffer(v);else if(u.tag==="seqof"||u.tag==="setof"){if(!u.args||u.args.length!==1)return m.error("Too many args for : "+u.tag);if(!Array.isArray(f))return m.error("seqof/setof, but data is not Array");const A=this.clone();A._baseState.implicit=null,v=this._createEncoderBuffer(f.map(function(x){const j=this._baseState;return this._getUse(j.args[0],f)._encode(x,m)},A))}else u.use!==null?b=this._getUse(u.use,h)._encode(f,m):(v=this._encodePrimitive(u.tag,f),_=!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&&m.error("Tag could be omitted only for .use()"):u.use===null&&(b=this._encodeComposite(A,_,x,v))}return u.explicit!==null&&(b=this._encodeComposite(u.explicit,!1,"context",b)),b},c.prototype._encodeChoice=function(f,m){const h=this._baseState,u=h.choice[f.type];return u||M(!1,f.type+" not found in "+JSON.stringify(Object.keys(h.choice))),u._encode(f.value,m)},c.prototype._encodePrimitive=function(f,m){const h=this._baseState;if(/str$/.test(f))return this._encodeStr(m,f);if(f==="objid"&&h.args)return this._encodeObjid(m,h.reverseArgs[0],h.args[1]);if(f==="objid")return this._encodeObjid(m,null,null);if(f==="gentime"||f==="utctime")return this._encodeTime(m,f);if(f==="null_")return this._encodeNull();if(f==="int"||f==="enum")return this._encodeInt(m,h.args&&h.reverseArgs[0]);if(f==="bool")return this._encodeBool(m);if(f==="objDesc")return this._encodeStr(m,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:(W,S,y)=>{const k=y(5717);function w(M){this._reporterState={obj:null,path:[],options:M||{},errors:[]}}function g(M,s){this.path=M,this.rethrow(s)}S.b=w,w.prototype.isError=function(M){return M instanceof g},w.prototype.save=function(){const M=this._reporterState;return{obj:M.obj,pathLen:M.path.length}},w.prototype.restore=function(M){const s=this._reporterState;s.obj=M.obj,s.path=s.path.slice(0,M.pathLen)},w.prototype.enterKey=function(M){return this._reporterState.path.push(M)},w.prototype.exitKey=function(M){const s=this._reporterState;s.path=s.path.slice(0,M-1)},w.prototype.leaveKey=function(M,s,p){const c=this._reporterState;this.exitKey(M),c.obj!==null&&(c.obj[s]=p)},w.prototype.path=function(){return this._reporterState.path.join("/")},w.prototype.enterObject=function(){const M=this._reporterState,s=M.obj;return M.obj={},s},w.prototype.leaveObject=function(M){const s=this._reporterState,p=s.obj;return s.obj=M,p},w.prototype.error=function(M){let s;const p=this._reporterState,c=M instanceof g;if(s=c?M:new g(p.path.map(function(l){return"["+JSON.stringify(l)+"]"}).join(""),M.message||M,M.stack),!p.options.partial)throw s;return c||p.errors.push(s),s},w.prototype.wrapResult=function(M){const s=this._reporterState;return s.options.partial?{result:this.isError(M)?null:M,errors:s.errors}:M},k(g,Error),g.prototype.rethrow=function(M){if(this.message=M+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,g),!this.stack)try{throw new Error(this.message)}catch(s){this.stack=s.stack}return this}},160:(W,S)=>{function y(k){const w={};return Object.keys(k).forEach(function(g){(0|g)==g&&(g|=0);const M=k[g];w[M]=g}),w}S.tagClass={0:"universal",1:"application",2:"context",3:"private"},S.tagClassByName=y(S.tagClass),S.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"},S.tagByName=y(S.tag)},6826:(W,S,y)=>{const k=S;k._reverse=function(w){const g={};return Object.keys(w).forEach(function(M){(0|M)==M&&(M|=0);const s=w[M];g[s]=M}),g},k.der=y(160)},1671:(W,S,y)=>{const k=y(5717),w=y(4590),g=y(6625).C,M=y(1949),s=y(160);function p(m){this.enc="der",this.name=m.name,this.entity=m,this.tree=new c,this.tree._init(m.body)}function c(m){M.call(this,"der",m)}function l(m,h){let u=m.readUInt8(h);if(m.isError(u))return u;const b=s.tagClass[u>>6],v=(32&u)==0;if((31&u)==31){let _=u;for(u=0;(128&_)==128;){if(_=m.readUInt8(h),m.isError(_))return _;u<<=7,u|=127&_}}else u&=31;return{cls:b,primitive:v,tag:u,tagStr:s.tag[u]}}function f(m,h,u){let b=m.readUInt8(u);if(m.isError(b))return b;if(!h&&b===128)return null;if(!(128&b))return b;const v=127&b;if(v>4)return m.error("length octect is too long");b=0;for(let _=0;_<v;_++){b<<=8;const A=m.readUInt8(u);if(m.isError(A))return A;b|=A}return b}W.exports=p,p.prototype.decode=function(m,h){return g.isDecoderBuffer(m)||(m=new g(m,h)),this.tree._decode(m,h)},k(c,M),c.prototype._peekTag=function(m,h,u){if(m.isEmpty())return!1;const b=m.save(),v=l(m,'Failed to peek tag: "'+h+'"');return m.isError(v)?v:(m.restore(b),v.tag===h||v.tagStr===h||v.tagStr+"of"===h||u)},c.prototype._decodeTag=function(m,h,u){const b=l(m,'Failed to decode tag of "'+h+'"');if(m.isError(b))return b;let v=f(m,b.primitive,'Failed to get length of "'+h+'"');if(m.isError(v))return v;if(!u&&b.tag!==h&&b.tagStr!==h&&b.tagStr+"of"!==h)return m.error('Failed to match tag: "'+h+'"');if(b.primitive||v!==null)return m.skip(v,'Failed to match body of: "'+h+'"');const _=m.save(),A=this._skipUntilEnd(m,'Failed to skip indefinite length body: "'+this.tag+'"');return m.isError(A)?A:(v=m.offset-_.offset,m.restore(_),m.skip(v,'Failed to match body of: "'+h+'"'))},c.prototype._skipUntilEnd=function(m,h){for(;;){const u=l(m,h);if(m.isError(u))return u;const b=f(m,u.primitive,h);if(m.isError(b))return b;let v;if(v=u.primitive||b!==null?m.skip(b):this._skipUntilEnd(m,h),m.isError(v))return v;if(u.tagStr==="end")break}},c.prototype._decodeList=function(m,h,u,b){const v=[];for(;!m.isEmpty();){const _=this._peekTag(m,"end");if(m.isError(_))return _;const A=u.decode(m,"der",b);if(m.isError(A)&&_)break;v.push(A)}return v},c.prototype._decodeStr=function(m,h){if(h==="bitstr"){const u=m.readUInt8();return m.isError(u)?u:{unused:u,data:m.raw()}}if(h==="bmpstr"){const u=m.raw();if(u.length%2==1)return m.error("Decoding of string type: bmpstr length mismatch");let b="";for(let v=0;v<u.length/2;v++)b+=String.fromCharCode(u.readUInt16BE(2*v));return b}if(h==="numstr"){const u=m.raw().toString("ascii");return this._isNumstr(u)?u:m.error("Decoding of string type: numstr unsupported characters")}if(h==="octstr"||h==="objDesc")return m.raw();if(h==="printstr"){const u=m.raw().toString("ascii");return this._isPrintstr(u)?u:m.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(h)?m.raw().toString():m.error("Decoding of string type: "+h+" unsupported")},c.prototype._decodeObjid=function(m,h,u){let b;const v=[];let _=0,A=0;for(;!m.isEmpty();)A=m.readUInt8(),_<<=7,_|=127&A,!(128&A)&&(v.push(_),_=0);128&A&&v.push(_);const x=v[0]/40|0,j=v[0]%40;if(b=u?v:[x,j].concat(v.slice(1)),h){let P=h[b.join(" ")];P===void 0&&(P=h[b.join(".")]),P!==void 0&&(b=P)}return b},c.prototype._decodeTime=function(m,h){const u=m.raw().toString();let b,v,_,A,x,j;if(h==="gentime")b=0|u.slice(0,4),v=0|u.slice(4,6),_=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 m.error("Decoding "+h+" time is not supported yet");b=0|u.slice(0,2),v=0|u.slice(2,4),_=0|u.slice(4,6),A=0|u.slice(6,8),x=0|u.slice(8,10),j=0|u.slice(10,12),b=b<70?2e3+b:1900+b}return Date.UTC(b,v-1,_,A,x,j,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(m){const h=m.readUInt8();return m.isError(h)?h:h!==0},c.prototype._decodeInt=function(m,h){const u=m.raw();let b=new w(u);return h&&(b=h[b.toString(10)]||b),b},c.prototype._use=function(m,h){return typeof m=="function"&&(m=m(h)),m._getDecoder("der").tree}},8307:(W,S,y)=>{const k=S;k.der=y(1671),k.pem=y(9631)},9631:(W,S,y)=>{const k=y(5717),w=y(2399).Buffer,g=y(1671);function M(s){g.call(this,s),this.enc="pem"}k(M,g),W.exports=M,M.prototype.decode=function(s,p){const c=s.toString().split(/[\r\n]+/g),l=p.label.toUpperCase(),f=/^-----(BEGIN|END) ([^-]+)-----$/;let m=-1,h=-1;for(let v=0;v<c.length;v++){const _=c[v].match(f);if(_!==null&&_[2]===l){if(m!==-1){if(_[1]!=="END")break;h=v;break}if(_[1]!=="BEGIN")break;m=v}}if(m===-1||h===-1)throw new Error("PEM section not found for: "+l);const u=c.slice(m+1,h).join("");u.replace(/[^a-z0-9+/=]+/gi,"");const b=w.from(u,"base64");return g.prototype.decode.call(this,b,p)}},6984:(W,S,y)=>{const k=y(5717),w=y(2399).Buffer,g=y(1949),M=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){g.call(this,"der",l)}function c(l){return l<10?"0"+l:l}W.exports=s,s.prototype.encode=function(l,f){return this.tree._encode(l,f).join()},k(p,g),p.prototype._encodeComposite=function(l,f,m,h){const u=function(_,A,x,j){let P;if(_==="seqof"?_="seq":_==="setof"&&(_="set"),M.tagByName.hasOwnProperty(_))P=M.tagByName[_];else{if(typeof _!="number"||(0|_)!==_)return j.error("Unknown tag: "+_);P=_}return P>=31?j.error("Multi-octet tag encoding unsupported"):(A||(P|=32),P|=M.tagClassByName[x||"universal"]<<6,P)}(l,f,m,this.reporter);if(h.length<128){const _=w.alloc(2);return _[0]=u,_[1]=h.length,this._createEncoderBuffer([_,h])}let b=1;for(let _=h.length;_>=256;_>>=8)b++;const v=w.alloc(2+b);v[0]=u,v[1]=128|b;for(let _=1+b,A=h.length;A>0;_--,A>>=8)v[_]=255&A;return this._createEncoderBuffer([v,h])},p.prototype._encodeStr=function(l,f){if(f==="bitstr")return this._createEncoderBuffer([0|l.unused,l.data]);if(f==="bmpstr"){const m=w.alloc(2*l.length);for(let h=0;h<l.length;h++)m.writeUInt16BE(l.charCodeAt(h),2*h);return this._createEncoderBuffer(m)}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,m){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 v=0;v<l.length;v++)l[v]|=0}else if(Array.isArray(l)){l=l.slice();for(let v=0;v<l.length;v++)l[v]|=0}if(!Array.isArray(l))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(l));if(!m){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 v=0;v<l.length;v++){let _=l[v];for(h++;_>=128;_>>=7)h++}const u=w.alloc(h);let b=u.length-1;for(let v=l.length-1;v>=0;v--){let _=l[v];for(u[b--]=127&_;(_>>=7)>0;)u[b--]=128|127&_}return this._createEncoderBuffer(u)},p.prototype._encodeTime=function(l,f){let m;const h=new Date(l);return f==="gentime"?m=[c(h.getUTCFullYear()),c(h.getUTCMonth()+1),c(h.getUTCDate()),c(h.getUTCHours()),c(h.getUTCMinutes()),c(h.getUTCSeconds()),"Z"].join(""):f==="utctime"?m=[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(m,"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"&&!w.isBuffer(l)){const u=l.toArray();!l.sign&&128&u[0]&&u.unshift(0),l=w.from(u)}if(w.isBuffer(l)){let u=l.length;l.length===0&&u++;const b=w.alloc(u);return l.copy(b),l.length===0&&(b[0]=0),this._createEncoderBuffer(b)}if(l<128)return this._createEncoderBuffer(l);if(l<256)return this._createEncoderBuffer([0,l]);let m=1;for(let u=l;u>=256;u>>=8)m++;const h=new Array(m);for(let u=h.length-1;u>=0;u--)h[u]=255&l,l>>=8;return 128&h[0]&&h.unshift(0),this._createEncoderBuffer(w.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,m){const h=this._baseState;let u;if(h.default===null)return!1;const b=l.join();if(h.defaultBuffer===void 0&&(h.defaultBuffer=this._encodeValue(h.default,f,m).join()),b.length!==h.defaultBuffer.length)return!1;for(u=0;u<b.length;u++)if(b[u]!==h.defaultBuffer[u])return!1;return!0}},6579:(W,S,y)=>{const k=S;k.der=y(6984),k.pem=y(2883)},2883:(W,S,y)=>{const k=y(5717),w=y(6984);function g(M){w.call(this,M),this.enc="pem"}k(g,w),W.exports=g,g.prototype.encode=function(M,s){const p=w.prototype.encode.call(this,M).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(`
|
|
2
|
+
`)}},4590:function(W,S,y){(function(k,w){function g(e,r){if(!e)throw new Error(r||"Assertion failed")}function M(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 k=="object"?k.exports=s:w.BN=s,s.BN=s,s.wordSize=26;try{p=typeof window!="undefined"&&window.Buffer!==void 0?window.Buffer:y(950).Buffer}catch(e){}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),g(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):(g(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(g(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 I=1;for(C=f(e,N,e.length,r),N=0;N<a;N++)I*=r;this.imuln(I),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 m=["","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 b(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 I=C>>>26,R=67108863&C,q=Math.min(N,r.length-1),Z=Math.max(0,N-e.length+1);Z<=q;Z++){var te=N-Z|0;I+=(a=(t=0|e.words[te])*(o=0|r.words[Z])+R)/67108864|0,R=67108863&a}i.words[N]=0|R,C=0|I}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?m[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 I=this.clone();for(I.negative=0;!I.isZero();){var R=I.modn(N).toString(e);i=(I=I.idivn(N)).isZero()?R+i:m[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}g(!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&&g(!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 g(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);g(n<=t,"byte array longer than desired length"),g(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 g((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 g((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 g((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){g(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){g(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 v=function(e,r,i){var n,t,o,a=e.words,T=r.words,C=i.words,N=0,I=0|a[0],R=8191&I,q=I>>>13,Z=0|a[1],te=8191&Z,L=Z>>>13,X=0|a[2],U=8191&X,K=X>>>13,se=0|a[3],ne=8191&se,ce=se>>>13,ke=0|a[4],me=8191&ke,ve=ke>>>13,je=0|a[5],we=8191&je,Ae=je>>>13,G=0|a[6],Y=8191&G,F=G>>>13,$=0|a[7],D=8191&$,Q=$>>>13,he=0|a[8],le=8191&he,pe=he>>>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,vt=0|T[3],Be=8191&vt,We=vt>>>13,St=0|T[4],Ne=8191&St,Ze=St>>>13,It=0|T[5],Le=8191&It,Xe=It>>>13,Lt=0|T[6],De=8191&Lt,Qe=Lt>>>13,zt=0|T[7],Fe=8191&zt,Je=zt>>>13,$t=0|T[8],qe=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(q,Se)|0))<<13)|0;N=((o=Math.imul(q,Ge))+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(te,Se),t=(t=Math.imul(te,Ge))+Math.imul(L,Se)|0,o=Math.imul(L,Ge);var Rt=(N+(n=n+Math.imul(R,Pe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ve)|0)+Math.imul(q,Pe)|0))<<13)|0;N=((o=o+Math.imul(q,Ve)|0)+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(U,Se),t=(t=Math.imul(U,Ge))+Math.imul(K,Se)|0,o=Math.imul(K,Ge),n=n+Math.imul(te,Pe)|0,t=(t=t+Math.imul(te,Ve)|0)+Math.imul(L,Pe)|0,o=o+Math.imul(L,Ve)|0;var Gt=(N+(n=n+Math.imul(R,Re)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ke)|0)+Math.imul(q,Re)|0))<<13)|0;N=((o=o+Math.imul(q,Ke)|0)+(t>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,n=Math.imul(ne,Se),t=(t=Math.imul(ne,Ge))+Math.imul(ce,Se)|0,o=Math.imul(ce,Ge),n=n+Math.imul(U,Pe)|0,t=(t=t+Math.imul(U,Ve)|0)+Math.imul(K,Pe)|0,o=o+Math.imul(K,Ve)|0,n=n+Math.imul(te,Re)|0,t=(t=t+Math.imul(te,Ke)|0)+Math.imul(L,Re)|0,o=o+Math.imul(L,Ke)|0;var cn=(N+(n=n+Math.imul(R,Be)|0)|0)+((8191&(t=(t=t+Math.imul(R,We)|0)+Math.imul(q,Be)|0))<<13)|0;N=((o=o+Math.imul(q,We)|0)+(t>>>13)|0)+(cn>>>26)|0,cn&=67108863,n=Math.imul(me,Se),t=(t=Math.imul(me,Ge))+Math.imul(ve,Se)|0,o=Math.imul(ve,Ge),n=n+Math.imul(ne,Pe)|0,t=(t=t+Math.imul(ne,Ve)|0)+Math.imul(ce,Pe)|0,o=o+Math.imul(ce,Ve)|0,n=n+Math.imul(U,Re)|0,t=(t=t+Math.imul(U,Ke)|0)+Math.imul(K,Re)|0,o=o+Math.imul(K,Ke)|0,n=n+Math.imul(te,Be)|0,t=(t=t+Math.imul(te,We)|0)+Math.imul(L,Be)|0,o=o+Math.imul(L,We)|0;var on=(N+(n=n+Math.imul(R,Ne)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ze)|0)+Math.imul(q,Ne)|0))<<13)|0;N=((o=o+Math.imul(q,Ze)|0)+(t>>>13)|0)+(on>>>26)|0,on&=67108863,n=Math.imul(we,Se),t=(t=Math.imul(we,Ge))+Math.imul(Ae,Se)|0,o=Math.imul(Ae,Ge),n=n+Math.imul(me,Pe)|0,t=(t=t+Math.imul(me,Ve)|0)+Math.imul(ve,Pe)|0,o=o+Math.imul(ve,Ve)|0,n=n+Math.imul(ne,Re)|0,t=(t=t+Math.imul(ne,Ke)|0)+Math.imul(ce,Re)|0,o=o+Math.imul(ce,Ke)|0,n=n+Math.imul(U,Be)|0,t=(t=t+Math.imul(U,We)|0)+Math.imul(K,Be)|0,o=o+Math.imul(K,We)|0,n=n+Math.imul(te,Ne)|0,t=(t=t+Math.imul(te,Ze)|0)+Math.imul(L,Ne)|0,o=o+Math.imul(L,Ze)|0;var ln=(N+(n=n+Math.imul(R,Le)|0)|0)+((8191&(t=(t=t+Math.imul(R,Xe)|0)+Math.imul(q,Le)|0))<<13)|0;N=((o=o+Math.imul(q,Xe)|0)+(t>>>13)|0)+(ln>>>26)|0,ln&=67108863,n=Math.imul(Y,Se),t=(t=Math.imul(Y,Ge))+Math.imul(F,Se)|0,o=Math.imul(F,Ge),n=n+Math.imul(we,Pe)|0,t=(t=t+Math.imul(we,Ve)|0)+Math.imul(Ae,Pe)|0,o=o+Math.imul(Ae,Ve)|0,n=n+Math.imul(me,Re)|0,t=(t=t+Math.imul(me,Ke)|0)+Math.imul(ve,Re)|0,o=o+Math.imul(ve,Ke)|0,n=n+Math.imul(ne,Be)|0,t=(t=t+Math.imul(ne,We)|0)+Math.imul(ce,Be)|0,o=o+Math.imul(ce,We)|0,n=n+Math.imul(U,Ne)|0,t=(t=t+Math.imul(U,Ze)|0)+Math.imul(K,Ne)|0,o=o+Math.imul(K,Ze)|0,n=n+Math.imul(te,Le)|0,t=(t=t+Math.imul(te,Xe)|0)+Math.imul(L,Le)|0,o=o+Math.imul(L,Xe)|0;var hn=(N+(n=n+Math.imul(R,De)|0)|0)+((8191&(t=(t=t+Math.imul(R,Qe)|0)+Math.imul(q,De)|0))<<13)|0;N=((o=o+Math.imul(q,Qe)|0)+(t>>>13)|0)+(hn>>>26)|0,hn&=67108863,n=Math.imul(D,Se),t=(t=Math.imul(D,Ge))+Math.imul(Q,Se)|0,o=Math.imul(Q,Ge),n=n+Math.imul(Y,Pe)|0,t=(t=t+Math.imul(Y,Ve)|0)+Math.imul(F,Pe)|0,o=o+Math.imul(F,Ve)|0,n=n+Math.imul(we,Re)|0,t=(t=t+Math.imul(we,Ke)|0)+Math.imul(Ae,Re)|0,o=o+Math.imul(Ae,Ke)|0,n=n+Math.imul(me,Be)|0,t=(t=t+Math.imul(me,We)|0)+Math.imul(ve,Be)|0,o=o+Math.imul(ve,We)|0,n=n+Math.imul(ne,Ne)|0,t=(t=t+Math.imul(ne,Ze)|0)+Math.imul(ce,Ne)|0,o=o+Math.imul(ce,Ze)|0,n=n+Math.imul(U,Le)|0,t=(t=t+Math.imul(U,Xe)|0)+Math.imul(K,Le)|0,o=o+Math.imul(K,Xe)|0,n=n+Math.imul(te,De)|0,t=(t=t+Math.imul(te,Qe)|0)+Math.imul(L,De)|0,o=o+Math.imul(L,Qe)|0;var fn=(N+(n=n+Math.imul(R,Fe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Je)|0)+Math.imul(q,Fe)|0))<<13)|0;N=((o=o+Math.imul(q,Je)|0)+(t>>>13)|0)+(fn>>>26)|0,fn&=67108863,n=Math.imul(le,Se),t=(t=Math.imul(le,Ge))+Math.imul(pe,Se)|0,o=Math.imul(pe,Ge),n=n+Math.imul(D,Pe)|0,t=(t=t+Math.imul(D,Ve)|0)+Math.imul(Q,Pe)|0,o=o+Math.imul(Q,Ve)|0,n=n+Math.imul(Y,Re)|0,t=(t=t+Math.imul(Y,Ke)|0)+Math.imul(F,Re)|0,o=o+Math.imul(F,Ke)|0,n=n+Math.imul(we,Be)|0,t=(t=t+Math.imul(we,We)|0)+Math.imul(Ae,Be)|0,o=o+Math.imul(Ae,We)|0,n=n+Math.imul(me,Ne)|0,t=(t=t+Math.imul(me,Ze)|0)+Math.imul(ve,Ne)|0,o=o+Math.imul(ve,Ze)|0,n=n+Math.imul(ne,Le)|0,t=(t=t+Math.imul(ne,Xe)|0)+Math.imul(ce,Le)|0,o=o+Math.imul(ce,Xe)|0,n=n+Math.imul(U,De)|0,t=(t=t+Math.imul(U,Qe)|0)+Math.imul(K,De)|0,o=o+Math.imul(K,Qe)|0,n=n+Math.imul(te,Fe)|0,t=(t=t+Math.imul(te,Je)|0)+Math.imul(L,Fe)|0,o=o+Math.imul(L,Je)|0;var pn=(N+(n=n+Math.imul(R,qe)|0)|0)+((8191&(t=(t=t+Math.imul(R,tt)|0)+Math.imul(q,qe)|0))<<13)|0;N=((o=o+Math.imul(q,tt)|0)+(t>>>13)|0)+(pn>>>26)|0,pn&=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(le,Pe)|0,t=(t=t+Math.imul(le,Ve)|0)+Math.imul(pe,Pe)|0,o=o+Math.imul(pe,Ve)|0,n=n+Math.imul(D,Re)|0,t=(t=t+Math.imul(D,Ke)|0)+Math.imul(Q,Re)|0,o=o+Math.imul(Q,Ke)|0,n=n+Math.imul(Y,Be)|0,t=(t=t+Math.imul(Y,We)|0)+Math.imul(F,Be)|0,o=o+Math.imul(F,We)|0,n=n+Math.imul(we,Ne)|0,t=(t=t+Math.imul(we,Ze)|0)+Math.imul(Ae,Ne)|0,o=o+Math.imul(Ae,Ze)|0,n=n+Math.imul(me,Le)|0,t=(t=t+Math.imul(me,Xe)|0)+Math.imul(ve,Le)|0,o=o+Math.imul(ve,Xe)|0,n=n+Math.imul(ne,De)|0,t=(t=t+Math.imul(ne,Qe)|0)+Math.imul(ce,De)|0,o=o+Math.imul(ce,Qe)|0,n=n+Math.imul(U,Fe)|0,t=(t=t+Math.imul(U,Je)|0)+Math.imul(K,Fe)|0,o=o+Math.imul(K,Je)|0,n=n+Math.imul(te,qe)|0,t=(t=t+Math.imul(te,tt)|0)+Math.imul(L,qe)|0,o=o+Math.imul(L,tt)|0;var dn=(N+(n=n+Math.imul(R,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(R,et)|0)+Math.imul(q,Ue)|0))<<13)|0;N=((o=o+Math.imul(q,et)|0)+(t>>>13)|0)+(dn>>>26)|0,dn&=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(le,Re)|0,t=(t=t+Math.imul(le,Ke)|0)+Math.imul(pe,Re)|0,o=o+Math.imul(pe,Ke)|0,n=n+Math.imul(D,Be)|0,t=(t=t+Math.imul(D,We)|0)+Math.imul(Q,Be)|0,o=o+Math.imul(Q,We)|0,n=n+Math.imul(Y,Ne)|0,t=(t=t+Math.imul(Y,Ze)|0)+Math.imul(F,Ne)|0,o=o+Math.imul(F,Ze)|0,n=n+Math.imul(we,Le)|0,t=(t=t+Math.imul(we,Xe)|0)+Math.imul(Ae,Le)|0,o=o+Math.imul(Ae,Xe)|0,n=n+Math.imul(me,De)|0,t=(t=t+Math.imul(me,Qe)|0)+Math.imul(ve,De)|0,o=o+Math.imul(ve,Qe)|0,n=n+Math.imul(ne,Fe)|0,t=(t=t+Math.imul(ne,Je)|0)+Math.imul(ce,Fe)|0,o=o+Math.imul(ce,Je)|0,n=n+Math.imul(U,qe)|0,t=(t=t+Math.imul(U,tt)|0)+Math.imul(K,qe)|0,o=o+Math.imul(K,tt)|0;var mn=(N+(n=n+Math.imul(te,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(te,et)|0)+Math.imul(L,Ue)|0))<<13)|0;N=((o=o+Math.imul(L,et)|0)+(t>>>13)|0)+(mn>>>26)|0,mn&=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(le,Be)|0,t=(t=t+Math.imul(le,We)|0)+Math.imul(pe,Be)|0,o=o+Math.imul(pe,We)|0,n=n+Math.imul(D,Ne)|0,t=(t=t+Math.imul(D,Ze)|0)+Math.imul(Q,Ne)|0,o=o+Math.imul(Q,Ze)|0,n=n+Math.imul(Y,Le)|0,t=(t=t+Math.imul(Y,Xe)|0)+Math.imul(F,Le)|0,o=o+Math.imul(F,Xe)|0,n=n+Math.imul(we,De)|0,t=(t=t+Math.imul(we,Qe)|0)+Math.imul(Ae,De)|0,o=o+Math.imul(Ae,Qe)|0,n=n+Math.imul(me,Fe)|0,t=(t=t+Math.imul(me,Je)|0)+Math.imul(ve,Fe)|0,o=o+Math.imul(ve,Je)|0,n=n+Math.imul(ne,qe)|0,t=(t=t+Math.imul(ne,tt)|0)+Math.imul(ce,qe)|0,o=o+Math.imul(ce,tt)|0;var Xt=(N+(n=n+Math.imul(U,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(U,et)|0)+Math.imul(K,Ue)|0))<<13)|0;N=((o=o+Math.imul(K,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(le,Ne)|0,t=(t=t+Math.imul(le,Ze)|0)+Math.imul(pe,Ne)|0,o=o+Math.imul(pe,Ze)|0,n=n+Math.imul(D,Le)|0,t=(t=t+Math.imul(D,Xe)|0)+Math.imul(Q,Le)|0,o=o+Math.imul(Q,Xe)|0,n=n+Math.imul(Y,De)|0,t=(t=t+Math.imul(Y,Qe)|0)+Math.imul(F,De)|0,o=o+Math.imul(F,Qe)|0,n=n+Math.imul(we,Fe)|0,t=(t=t+Math.imul(we,Je)|0)+Math.imul(Ae,Fe)|0,o=o+Math.imul(Ae,Je)|0,n=n+Math.imul(me,qe)|0,t=(t=t+Math.imul(me,tt)|0)+Math.imul(ve,qe)|0,o=o+Math.imul(ve,tt)|0;var gn=(N+(n=n+Math.imul(ne,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ne,et)|0)+Math.imul(ce,Ue)|0))<<13)|0;N=((o=o+Math.imul(ce,et)|0)+(t>>>13)|0)+(gn>>>26)|0,gn&=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(le,Le)|0,t=(t=t+Math.imul(le,Xe)|0)+Math.imul(pe,Le)|0,o=o+Math.imul(pe,Xe)|0,n=n+Math.imul(D,De)|0,t=(t=t+Math.imul(D,Qe)|0)+Math.imul(Q,De)|0,o=o+Math.imul(Q,Qe)|0,n=n+Math.imul(Y,Fe)|0,t=(t=t+Math.imul(Y,Je)|0)+Math.imul(F,Fe)|0,o=o+Math.imul(F,Je)|0,n=n+Math.imul(we,qe)|0,t=(t=t+Math.imul(we,tt)|0)+Math.imul(Ae,qe)|0,o=o+Math.imul(Ae,tt)|0;var bn=(N+(n=n+Math.imul(me,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(me,et)|0)+Math.imul(ve,Ue)|0))<<13)|0;N=((o=o+Math.imul(ve,et)|0)+(t>>>13)|0)+(bn>>>26)|0,bn&=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(le,De)|0,t=(t=t+Math.imul(le,Qe)|0)+Math.imul(pe,De)|0,o=o+Math.imul(pe,Qe)|0,n=n+Math.imul(D,Fe)|0,t=(t=t+Math.imul(D,Je)|0)+Math.imul(Q,Fe)|0,o=o+Math.imul(Q,Je)|0,n=n+Math.imul(Y,qe)|0,t=(t=t+Math.imul(Y,tt)|0)+Math.imul(F,qe)|0,o=o+Math.imul(F,tt)|0;var en=(N+(n=n+Math.imul(we,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(we,et)|0)+Math.imul(Ae,Ue)|0))<<13)|0;N=((o=o+Math.imul(Ae,et)|0)+(t>>>13)|0)+(en>>>26)|0,en&=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(le,Fe)|0,t=(t=t+Math.imul(le,Je)|0)+Math.imul(pe,Fe)|0,o=o+Math.imul(pe,Je)|0,n=n+Math.imul(D,qe)|0,t=(t=t+Math.imul(D,tt)|0)+Math.imul(Q,qe)|0,o=o+Math.imul(Q,tt)|0;var tn=(N+(n=n+Math.imul(Y,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(Y,et)|0)+Math.imul(F,Ue)|0))<<13)|0;N=((o=o+Math.imul(F,et)|0)+(t>>>13)|0)+(tn>>>26)|0,tn&=67108863,n=Math.imul(_e,Fe),t=(t=Math.imul(_e,Je))+Math.imul(Te,Fe)|0,o=Math.imul(Te,Je),n=n+Math.imul(le,qe)|0,t=(t=t+Math.imul(le,tt)|0)+Math.imul(pe,qe)|0,o=o+Math.imul(pe,tt)|0;var Jt=(N+(n=n+Math.imul(D,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(D,et)|0)+Math.imul(Q,Ue)|0))<<13)|0;N=((o=o+Math.imul(Q,et)|0)+(t>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,n=Math.imul(_e,qe),t=(t=Math.imul(_e,tt))+Math.imul(Te,qe)|0,o=Math.imul(Te,tt);var yn=(N+(n=n+Math.imul(le,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(le,et)|0)+Math.imul(pe,Ue)|0))<<13)|0;N=((o=o+Math.imul(pe,et)|0)+(t>>>13)|0)+(yn>>>26)|0,yn&=67108863;var sn=(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)+(sn>>>26)|0,sn&=67108863,C[0]=Tt,C[1]=Rt,C[2]=Gt,C[3]=cn,C[4]=on,C[5]=ln,C[6]=hn,C[7]=fn,C[8]=pn,C[9]=dn,C[10]=mn,C[11]=Xt,C[12]=gn,C[13]=bn,C[14]=en,C[15]=tn,C[16]=Jt,C[17]=yn,C[18]=sn,N!==0&&(C[19]=N,i.length++),i};function _(e,r,i){return new A().mulp(e,r,i)}function A(e,r){this.x=e,this.y=r}Math.imul||(v=b),s.prototype.mulTo=function(e,r){var i,n=this.length+e.length;return i=this.length===10&&e.length===10?v(this,e,r):n<63?b(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 I=C;C=0;for(var R=67108863&T,q=Math.min(N,o.length-1),Z=Math.max(0,N-t.length+1);Z<=q;Z++){var te=N-Z,L=(0|t.words[te])*(0|o.words[Z]),X=67108863&L;R=67108863&(X=X+R|0),C+=(I=(I=I+(L/67108864|0)|0)+(X>>>26)|0)>>>26,I&=67108863}a.words[N]=R,T=I,I=C}return T!==0?a.words[N]=T:a.length--,a.strip()}(this,e,r):_(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),I=0;I<t;I+=T)for(var R=C,q=N,Z=0;Z<a;Z++){var te=i[I+Z],L=n[I+Z],X=i[I+Z+a],U=n[I+Z+a],K=R*X-q*U;U=R*U+q*X,X=K,i[I+Z]=te+X,n[I+Z]=L+U,i[I+Z+a]=te-X,n[I+Z+a]=L-U,Z!==T&&(K=C*R-N*q,q=C*q+N*R,R=K)}},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;g(t===0),g((-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),I=new Array(n),R=new Array(n),q=i.words;q.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,I,R,n,t);for(var Z=0;Z<n;Z++){var te=T[Z]*I[Z]-C[Z]*R[Z];C[Z]=T[Z]*R[Z]+C[Z]*I[Z],T[Z]=te}return this.conjugate(T,C,n),this.transform(T,C,q,o,n,t),this.conjugate(q,o,n),this.normalize13b(q,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),_(this,e,r)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){g(typeof e=="number"),g(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){g(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 g(this.negative===0),this.iushln(e)},s.prototype.iushrn=function(e,r,i){var n;g(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 I=0|this.words[C];this.words[C]=N<<26-t|I>>>t,N=I&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 g(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){g(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){g(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(g(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 g(typeof e=="number"),g(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(g(typeof e=="number"),g(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(g(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 I=T-1;I>=0;I--){var R=67108864*(0|n.words[t.length+I])+(0|n.words[t.length+I-1]);for(R=Math.min(R/o|0,67108863),n._ishlnsubmul(t,R,I);n.negative!==0;)R--,n.negative=0,n._ishlnsubmul(t,1,I),n.isZero()||(n.negative^=1);a&&(a.words[I]=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 g(!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){g(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){g(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){g(e.negative===0),g(!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 I=0,R=1;!(r.words[0]&R)&&I<26;++I,R<<=1);if(I>0)for(r.iushrn(I);I-- >0;)(n.isOdd()||t.isOdd())&&(n.iadd(C),t.isub(N)),n.iushrn(1),t.iushrn(1);for(var q=0,Z=1;!(i.words[0]&Z)&&q<26;++q,Z<<=1);if(q>0)for(i.iushrn(q);q-- >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){g(e.negative===0),g(!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,I=1;!(i.words[0]&I)&&N<26;++N,I<<=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){g(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),g(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 g(!this.red,"Already a number in reduction context"),g(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return g(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 g(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return g(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 z(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ee(){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 g(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function ae(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)},M(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},M(B,j),M(z,j),M(ee,j),ee.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 z;else{if(e!=="p25519")throw new Error("Unknown prime "+e);r=new ee}return x[e]=r,r},J.prototype._verify1=function(e){g(e.negative===0,"red works only with positives"),g(e.red,"red works only with red numbers")},J.prototype._verify2=function(e,r){g((e.negative|r.negative)==0,"red works only with positives"),g(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(g(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);g(!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),I=this.pow(e,n.addn(1).iushrn(1)),R=this.pow(e,n),q=t;R.cmp(o)!==0;){for(var Z=R,te=0;Z.cmp(o)!==0;te++)Z=Z.redSqr();g(te<q);var L=this.pow(N,new s(1).iushln(q-te-1));I=I.redMul(L),N=L.redSqr(),R=R.redMul(N),q=te}return I},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 I=C>>N&1;t!==i[0]&&(t=this.sqr(t)),I!==0||o!==0?(o<<=1,o|=I,(++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 ae(e)},M(ae,J),ae.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},ae.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},ae.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)},ae.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)},ae.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(W=y.nmd(W),this)},9282:(W,S,y)=>{var k=y(4155),w=y(5108);function g(N){return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},g(N)}var M,s,p=y(2136).codes,c=p.ERR_AMBIGUOUS_ARGUMENT,l=p.ERR_INVALID_ARG_TYPE,f=p.ERR_INVALID_ARG_VALUE,m=p.ERR_INVALID_RETURN_VALUE,h=p.ERR_MISSING_ARGS,u=y(5961),b=y(9539).inspect,v=y(9539).types,_=v.isPromise,A=v.isRegExp,x=Object.assign?Object.assign:y(8091).assign,j=Object.is?Object.is:y(609);function P(){var N=y(9158);M=N.isDeepEqual,s=N.isDeepStrictEqual}var B=!1,z=W.exports=e,ee={};function J(N){throw N.message instanceof Error?N.message:new u(N)}function ae(N,I,R,q){if(!R){var Z=!1;if(I===0)Z=!0,q="No value argument passed to `assert.ok()`";else if(q instanceof Error)throw q;var te=new u({actual:R,expected:!0,message:q,operator:"==",stackStartFn:N});throw te.generatedMessage=Z,te}}function e(){for(var N=arguments.length,I=new Array(N),R=0;R<N;R++)I[R]=arguments[R];ae.apply(void 0,[e,I.length].concat(I))}z.fail=function N(I,R,q,Z,te){var L,X=arguments.length;if(X===0?L="Failed":X===1?(q=I,I=void 0):(B===!1&&(B=!0,(k.emitWarning?k.emitWarning:w.warn.bind(w))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),X===2&&(Z="!=")),q instanceof Error)throw q;var U={actual:I,expected:R,operator:Z===void 0?"fail":Z,stackStartFn:te||N};q!==void 0&&(U.message=q);var K=new u(U);throw L&&(K.message=L,K.generatedMessage=!0),K},z.AssertionError=u,z.ok=e,z.equal=function N(I,R,q){if(arguments.length<2)throw new h("actual","expected");I!=R&&J({actual:I,expected:R,message:q,operator:"==",stackStartFn:N})},z.notEqual=function N(I,R,q){if(arguments.length<2)throw new h("actual","expected");I==R&&J({actual:I,expected:R,message:q,operator:"!=",stackStartFn:N})},z.deepEqual=function N(I,R,q){if(arguments.length<2)throw new h("actual","expected");M===void 0&&P(),M(I,R)||J({actual:I,expected:R,message:q,operator:"deepEqual",stackStartFn:N})},z.notDeepEqual=function N(I,R,q){if(arguments.length<2)throw new h("actual","expected");M===void 0&&P(),M(I,R)&&J({actual:I,expected:R,message:q,operator:"notDeepEqual",stackStartFn:N})},z.deepStrictEqual=function N(I,R,q){if(arguments.length<2)throw new h("actual","expected");M===void 0&&P(),s(I,R)||J({actual:I,expected:R,message:q,operator:"deepStrictEqual",stackStartFn:N})},z.notDeepStrictEqual=function N(I,R,q){if(arguments.length<2)throw new h("actual","expected");M===void 0&&P(),s(I,R)&&J({actual:I,expected:R,message:q,operator:"notDeepStrictEqual",stackStartFn:N})},z.strictEqual=function N(I,R,q){if(arguments.length<2)throw new h("actual","expected");j(I,R)||J({actual:I,expected:R,message:q,operator:"strictEqual",stackStartFn:N})},z.notStrictEqual=function N(I,R,q){if(arguments.length<2)throw new h("actual","expected");j(I,R)&&J({actual:I,expected:R,message:q,operator:"notStrictEqual",stackStartFn:N})};var r=function N(I,R,q){var Z=this;(function(te,L){if(!(te instanceof L))throw new TypeError("Cannot call a class as a function")})(this,N),R.forEach(function(te){te in I&&(q!==void 0&&typeof q[te]=="string"&&A(I[te])&&I[te].test(q[te])?Z[te]=q[te]:Z[te]=I[te])})};function i(N,I,R,q){if(typeof I!="function"){if(A(I))return I.test(N);if(arguments.length===2)throw new l("expected",["Function","RegExp"],I);if(g(N)!=="object"||N===null){var Z=new u({actual:N,expected:I,message:R,operator:"deepStrictEqual",stackStartFn:q});throw Z.operator=q.name,Z}var te=Object.keys(I);if(I instanceof Error)te.push("name","message");else if(te.length===0)throw new f("error",I,"may not be an empty object");return M===void 0&&P(),te.forEach(function(L){typeof N[L]=="string"&&A(I[L])&&I[L].test(N[L])||function(X,U,K,se,ne,ce){if(!(K in X)||!s(X[K],U[K])){if(!se){var ke=new r(X,ne),me=new r(U,ne,X),ve=new u({actual:ke,expected:me,operator:"deepStrictEqual",stackStartFn:ce});throw ve.actual=X,ve.expected=U,ve.operator=ce.name,ve}J({actual:X,expected:U,message:se,operator:ce.name,stackStartFn:ce})}}(N,I,L,R,te,q)}),!0}return I.prototype!==void 0&&N instanceof I||!Error.isPrototypeOf(I)&&I.call({},N)===!0}function n(N){if(typeof N!="function")throw new l("fn","Function",N);try{N()}catch(I){return I}return ee}function t(N){return _(N)||N!==null&&g(N)==="object"&&typeof N.then=="function"&&typeof N.catch=="function"}function o(N){return Promise.resolve().then(function(){var I;if(typeof N=="function"){if(!t(I=N()))throw new m("instance of Promise","promiseFn",I)}else{if(!t(N))throw new l("promiseFn",["Function","Promise"],N);I=N}return Promise.resolve().then(function(){return I}).then(function(){return ee}).catch(function(R){return R})})}function a(N,I,R,q){if(typeof R=="string"){if(arguments.length===4)throw new l("error",["Object","Error","Function","RegExp"],R);if(g(I)==="object"&&I!==null){if(I.message===R)throw new c("error/message",'The error message "'.concat(I.message,'" is identical to the message.'))}else if(I===R)throw new c("error/message",'The error "'.concat(I,'" is identical to the message.'));q=R,R=void 0}else if(R!=null&&g(R)!=="object"&&typeof R!="function")throw new l("error",["Object","Error","Function","RegExp"],R);if(I===ee){var Z="";R&&R.name&&(Z+=" (".concat(R.name,")")),Z+=q?": ".concat(q):".";var te=N.name==="rejects"?"rejection":"exception";J({actual:void 0,expected:R,operator:N.name,message:"Missing expected ".concat(te).concat(Z),stackStartFn:N})}if(R&&!i(I,R,q,N))throw I}function T(N,I,R,q){if(I!==ee){if(typeof R=="string"&&(q=R,R=void 0),!R||i(I,R)){var Z=q?": ".concat(q):".",te=N.name==="doesNotReject"?"rejection":"exception";J({actual:I,expected:R,operator:N.name,message:"Got unwanted ".concat(te).concat(Z,`
|
|
3
|
+
`)+'Actual message: "'.concat(I&&I.message,'"'),stackStartFn:N})}throw I}}function C(){for(var N=arguments.length,I=new Array(N),R=0;R<N;R++)I[R]=arguments[R];ae.apply(void 0,[C,I.length].concat(I))}z.throws=function N(I){for(var R=arguments.length,q=new Array(R>1?R-1:0),Z=1;Z<R;Z++)q[Z-1]=arguments[Z];a.apply(void 0,[N,n(I)].concat(q))},z.rejects=function N(I){for(var R=arguments.length,q=new Array(R>1?R-1:0),Z=1;Z<R;Z++)q[Z-1]=arguments[Z];return o(I).then(function(te){return a.apply(void 0,[N,te].concat(q))})},z.doesNotThrow=function N(I){for(var R=arguments.length,q=new Array(R>1?R-1:0),Z=1;Z<R;Z++)q[Z-1]=arguments[Z];T.apply(void 0,[N,n(I)].concat(q))},z.doesNotReject=function N(I){for(var R=arguments.length,q=new Array(R>1?R-1:0),Z=1;Z<R;Z++)q[Z-1]=arguments[Z];return o(I).then(function(te){return T.apply(void 0,[N,te].concat(q))})},z.ifError=function N(I){if(I!=null){var R="ifError got unwanted exception: ";g(I)==="object"&&typeof I.message=="string"?I.message.length===0&&I.constructor?R+=I.constructor.name:R+=I.message:R+=b(I);var q=new u({actual:I,expected:null,operator:"ifError",message:R,stackStartFn:N}),Z=I.stack;if(typeof Z=="string"){var te=Z.split(`
|
|
4
|
+
`);te.shift();for(var L=q.stack.split(`
|
|
5
|
+
`),X=0;X<te.length;X++){var U=L.indexOf(te[X]);if(U!==-1){L=L.slice(0,U);break}}q.stack="".concat(L.join(`
|
|
6
|
+
`),`
|
|
7
|
+
`).concat(te.join(`
|
|
8
|
+
`))}throw q}},z.strict=x(C,z,{equal:z.strictEqual,deepEqual:z.deepStrictEqual,notEqual:z.notStrictEqual,notDeepEqual:z.notDeepStrictEqual}),z.strict.strict=z.strict},5961:(W,S,y)=>{var k=y(4155);function w(J,ae,e){return ae in J?Object.defineProperty(J,ae,{value:e,enumerable:!0,configurable:!0,writable:!0}):J[ae]=e,J}function g(J,ae){for(var e=0;e<ae.length;e++){var r=ae[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(J,r.key,r)}}function M(J,ae){return!ae||m(ae)!=="object"&&typeof ae!="function"?s(J):ae}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 ae=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(ae!==void 0){if(ae.has(e))return ae.get(e);ae.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,ae,e){return c=function(){if(typeof Reflect=="undefined"||!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(r){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,ae){return l=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},l(J,ae)}function f(J){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(ae){return ae.__proto__||Object.getPrototypeOf(ae)},f(J)}function m(J){return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ae){return typeof ae}:function(ae){return ae&&typeof Symbol=="function"&&ae.constructor===Symbol&&ae!==Symbol.prototype?"symbol":typeof ae},m(J)}var h=y(9539).inspect,u=y(2136).codes.ERR_INVALID_ARG_TYPE;function b(J,ae,e){return(e===void 0||e>J.length)&&(e=J.length),J.substring(e-ae.length,e)===ae}var v="",_="",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 ae=Object.keys(J),e=Object.create(Object.getPrototypeOf(J));return ae.forEach(function(r){e[r]=J[r]}),Object.defineProperty(e,"message",{value:J.message}),e}function z(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 ee=function(J){function ae(i){var n;if(function(L,X){if(!(L instanceof X))throw new TypeError("Cannot call a class as a function")}(this,ae),m(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=M(this,f(ae).call(this,String(t)));else if(k.stderr&&k.stderr.isTTY&&(k.stderr&&k.stderr.getColorDepth&&k.stderr.getColorDepth()!==1?(v="\x1B[34m",_="\x1B[32m",x="\x1B[39m",A="\x1B[31m"):(v="",_="",x="",A="")),m(T)==="object"&&T!==null&&m(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=M(this,f(ae).call(this,function(L,X,U){var K="",se="",ne=0,ce="",ke=!1,me=z(L),ve=me.split(`
|
|
9
|
+
`),je=z(X).split(`
|
|
10
|
+
`),we=0,Ae="";if(U==="strictEqual"&&m(L)==="object"&&m(X)==="object"&&L!==null&&X!==null&&(U="strictEqualObject"),ve.length===1&&je.length===1&&ve[0]!==je[0]){var G=ve[0].length+je[0].length;if(G<=P){if(!(m(L)==="object"&&L!==null||m(X)==="object"&&X!==null||L===0&&X===0))return"".concat(j[U],`
|
|
11
|
+
|
|
12
|
+
`)+"".concat(ve[0]," !== ").concat(je[0],`
|
|
13
|
+
`)}else if(U!=="strictEqualObject"&&G<(k.stderr&&k.stderr.isTTY?k.stderr.columns:80)){for(;ve[0][we]===je[0][we];)we++;we>2&&(Ae=`
|
|
14
|
+
`.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)}(" ",we),"^"),we=0)}}for(var Y=ve[ve.length-1],F=je[je.length-1];Y===F&&(we++<2?ce=`
|
|
15
|
+
`.concat(Y).concat(ce):K=Y,ve.pop(),je.pop(),ve.length!==0&&je.length!==0);)Y=ve[ve.length-1],F=je[je.length-1];var $=Math.max(ve.length,je.length);if($===0){var D=me.split(`
|
|
16
|
+
`);if(D.length>30)for(D[26]="".concat(v,"...").concat(x);D.length>27;)D.pop();return"".concat(j.notIdentical,`
|
|
17
|
+
|
|
18
|
+
`).concat(D.join(`
|
|
19
|
+
`),`
|
|
20
|
+
`)}we>3&&(ce=`
|
|
21
|
+
`.concat(v,"...").concat(x).concat(ce),ke=!0),K!==""&&(ce=`
|
|
22
|
+
`.concat(K).concat(ce),K="");var Q=0,he=j[U]+`
|
|
23
|
+
`.concat(_,"+ actual").concat(x," ").concat(A,"- expected").concat(x),le=" ".concat(v,"...").concat(x," Lines skipped");for(we=0;we<$;we++){var pe=we-ne;if(ve.length<we+1)pe>1&&we>2&&(pe>4?(se+=`
|
|
24
|
+
`.concat(v,"...").concat(x),ke=!0):pe>3&&(se+=`
|
|
25
|
+
`.concat(je[we-2]),Q++),se+=`
|
|
26
|
+
`.concat(je[we-1]),Q++),ne=we,K+=`
|
|
27
|
+
`.concat(A,"-").concat(x," ").concat(je[we]),Q++;else if(je.length<we+1)pe>1&&we>2&&(pe>4?(se+=`
|
|
28
|
+
`.concat(v,"...").concat(x),ke=!0):pe>3&&(se+=`
|
|
29
|
+
`.concat(ve[we-2]),Q++),se+=`
|
|
30
|
+
`.concat(ve[we-1]),Q++),ne=we,se+=`
|
|
31
|
+
`.concat(_,"+").concat(x," ").concat(ve[we]),Q++;else{var it=je[we],_e=ve[we],Te=_e!==it&&(!b(_e,",")||_e.slice(0,-1)!==it);Te&&b(it,",")&&it.slice(0,-1)===_e&&(Te=!1,_e+=","),Te?(pe>1&&we>2&&(pe>4?(se+=`
|
|
32
|
+
`.concat(v,"...").concat(x),ke=!0):pe>3&&(se+=`
|
|
33
|
+
`.concat(ve[we-2]),Q++),se+=`
|
|
34
|
+
`.concat(ve[we-1]),Q++),ne=we,se+=`
|
|
35
|
+
`.concat(_,"+").concat(x," ").concat(_e),K+=`
|
|
36
|
+
`.concat(A,"-").concat(x," ").concat(it),Q+=2):(se+=K,K="",pe!==1&&we!==0||(se+=`
|
|
37
|
+
`.concat(_e),Q++))}if(Q>20&&we<$-2)return"".concat(he).concat(le,`
|
|
38
|
+
`).concat(se,`
|
|
39
|
+
`).concat(v,"...").concat(x).concat(K,`
|
|
40
|
+
`)+"".concat(v,"...").concat(x)}return"".concat(he).concat(ke?le:"",`
|
|
41
|
+
`).concat(se).concat(K).concat(ce).concat(Ae)}(T,C,o)));else if(o==="notDeepStrictEqual"||o==="notStrictEqual"){var I=j[o],R=z(T).split(`
|
|
42
|
+
`);if(o==="notStrictEqual"&&m(T)==="object"&&T!==null&&(I=j.notStrictEqualObject),R.length>30)for(R[26]="".concat(v,"...").concat(x);R.length>27;)R.pop();n=R.length===1?M(this,f(ae).call(this,"".concat(I," ").concat(R[0]))):M(this,f(ae).call(this,"".concat(I,`
|
|
43
|
+
|
|
44
|
+
`).concat(R.join(`
|
|
45
|
+
`),`
|
|
46
|
+
`)))}else{var q=z(T),Z="",te=j[o];o==="notDeepEqual"||o==="notEqual"?(q="".concat(j[o],`
|
|
47
|
+
|
|
48
|
+
`).concat(q)).length>1024&&(q="".concat(q.slice(0,1021),"...")):(Z="".concat(z(C)),q.length>512&&(q="".concat(q.slice(0,509),"...")),Z.length>512&&(Z="".concat(Z.slice(0,509),"...")),o==="deepEqual"||o==="equal"?q="".concat(te,`
|
|
49
|
+
|
|
50
|
+
`).concat(q,`
|
|
51
|
+
|
|
52
|
+
should equal
|
|
53
|
+
|
|
54
|
+
`):Z=" ".concat(o," ").concat(Z)),n=M(this,f(ae).call(this,"".concat(q).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",M(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)}(ae,J),e=ae,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){w(t,C,a[C])})}return t}({},n,{customInspect:!1,depth:0}))}}],r&&g(e.prototype,r),ae}(p(Error));W.exports=ee},2136:(W,S,y)=>{function k(f){return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},k(f)}function w(f){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(m){return m.__proto__||Object.getPrototypeOf(m)},w(f)}function g(f,m){return g=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},g(f,m)}var M,s,p={};function c(f,m,h){h||(h=Error);var u=function(b){function v(_,A,x){var j;return function(P,B){if(!(P instanceof B))throw new TypeError("Cannot call a class as a function")}(this,v),j=function(P,B){return!B||k(B)!=="object"&&typeof B!="function"?function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(P):B}(this,w(v).call(this,function(P,B,z){return typeof m=="string"?m:m(P,B,z)}(_,A,x))),j.code=f,j}return function(_,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(A&&A.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),A&&g(_,A)}(v,b),v}(h);p[f]=u}function l(f,m){if(Array.isArray(f)){var h=f.length;return f=f.map(function(u){return String(u)}),h>2?"one of ".concat(m," ").concat(f.slice(0,h-1).join(", "),", or ")+f[h-1]:h===2?"one of ".concat(m," ").concat(f[0]," or ").concat(f[1]):"of ".concat(m," ").concat(f[0])}return"of ".concat(m," ").concat(String(f))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",function(f,m,h){var u,b,v,_,A;if(M===void 0&&(M=y(9282)),M(typeof f=="string","'name' must be a string"),typeof m=="string"&&(b="not ",m.substr(0,b.length)===b)?(u="must not be",m=m.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"))v="The ".concat(f," ").concat(u," ").concat(l(m,"type"));else{var x=(typeof A!="number"&&(A=0),A+1>(_=f).length||_.indexOf(".",A)===-1?"argument":"property");v='The "'.concat(f,'" ').concat(x," ").concat(u," ").concat(l(m,"type"))}return v+". Received type ".concat(k(h))},TypeError),c("ERR_INVALID_ARG_VALUE",function(f,m){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";s===void 0&&(s=y(9539));var u=s.inspect(m);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,m,h){var u;return u=h&&h.constructor&&h.constructor.name?"instance of ".concat(h.constructor.name):"type ".concat(k(h)),"Expected ".concat(f,' to be returned from the "').concat(m,'"')+" function but got ".concat(u,".")},TypeError),c("ERR_MISSING_ARGS",function(){for(var f=arguments.length,m=new Array(f),h=0;h<f;h++)m[h]=arguments[h];M===void 0&&(M=y(9282)),M(m.length>0,"At least one arg needs to be specified");var u="The ",b=m.length;switch(m=m.map(function(v){return'"'.concat(v,'"')}),b){case 1:u+="".concat(m[0]," argument");break;case 2:u+="".concat(m[0]," and ").concat(m[1]," arguments");break;default:u+=m.slice(0,b-1).join(", "),u+=", and ".concat(m[b-1]," arguments")}return"".concat(u," must be specified")},TypeError),W.exports.codes=p},9158:(W,S,y)=>{function k(se,ne){return function(ce){if(Array.isArray(ce))return ce}(se)||function(ce,ke){var me=[],ve=!0,je=!1,we=void 0;try{for(var Ae,G=ce[Symbol.iterator]();!(ve=(Ae=G.next()).done)&&(me.push(Ae.value),!ke||me.length!==ke);ve=!0);}catch(Y){je=!0,we=Y}finally{try{ve||G.return==null||G.return()}finally{if(je)throw we}}return me}(se,ne)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function w(se){return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ne){return typeof ne}:function(ne){return ne&&typeof Symbol=="function"&&ne.constructor===Symbol&&ne!==Symbol.prototype?"symbol":typeof ne},w(se)}var g=/a/g.flags!==void 0,M=function(se){var ne=[];return se.forEach(function(ce){return ne.push(ce)}),ne},s=function(se){var ne=[];return se.forEach(function(ce,ke){return ne.push([ke,ce])}),ne},p=Object.is?Object.is:y(609),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:y(360);function f(se){return se.call.bind(se)}var m=f(Object.prototype.hasOwnProperty),h=f(Object.prototype.propertyIsEnumerable),u=f(Object.prototype.toString),b=y(9539).types,v=b.isAnyArrayBuffer,_=b.isArrayBufferView,A=b.isDate,x=b.isMap,j=b.isRegExp,P=b.isSet,B=b.isNativeError,z=b.isBoxedPrimitive,ee=b.isNumberObject,J=b.isStringObject,ae=b.isBooleanObject,e=b.isBigIntObject,r=b.isSymbolObject,i=b.isFloat32Array,n=b.isFloat64Array;function t(se){if(se.length===0||se.length>10)return!0;for(var ne=0;ne<se.length;ne++){var ce=se.charCodeAt(ne);if(ce<48||ce>57)return!0}return se.length===10&&se>=Math.pow(2,32)}function o(se){return Object.keys(se).filter(t).concat(c(se).filter(Object.prototype.propertyIsEnumerable.bind(se)))}function a(se,ne){if(se===ne)return 0;for(var ce=se.length,ke=ne.length,me=0,ve=Math.min(ce,ke);me<ve;++me)if(se[me]!==ne[me]){ce=se[me],ke=ne[me];break}return ce<ke?-1:ke<ce?1:0}var T=0,C=1,N=2,I=3;function R(se,ne,ce,ke){if(se===ne)return se!==0||!ce||p(se,ne);if(ce){if(w(se)!=="object")return typeof se=="number"&&l(se)&&l(ne);if(w(ne)!=="object"||se===null||ne===null||Object.getPrototypeOf(se)!==Object.getPrototypeOf(ne))return!1}else{if(se===null||w(se)!=="object")return(ne===null||w(ne)!=="object")&&se==ne;if(ne===null||w(ne)!=="object")return!1}var me,ve,je,we,Ae=u(se);if(Ae!==u(ne))return!1;if(Array.isArray(se)){if(se.length!==ne.length)return!1;var G=o(se),Y=o(ne);return G.length===Y.length&&Z(se,ne,ce,ke,C,G)}if(Ae==="[object Object]"&&(!x(se)&&x(ne)||!P(se)&&P(ne)))return!1;if(A(se)){if(!A(ne)||Date.prototype.getTime.call(se)!==Date.prototype.getTime.call(ne))return!1}else if(j(se)){if(!j(ne)||(je=se,we=ne,!(g?je.source===we.source&&je.flags===we.flags:RegExp.prototype.toString.call(je)===RegExp.prototype.toString.call(we))))return!1}else if(B(se)||se instanceof Error){if(se.message!==ne.message||se.name!==ne.name)return!1}else{if(_(se)){if(ce||!i(se)&&!n(se)){if(!function(D,Q){return D.byteLength===Q.byteLength&&a(new Uint8Array(D.buffer,D.byteOffset,D.byteLength),new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength))===0}(se,ne))return!1}else if(!function(D,Q){if(D.byteLength!==Q.byteLength)return!1;for(var he=0;he<D.byteLength;he++)if(D[he]!==Q[he])return!1;return!0}(se,ne))return!1;var F=o(se),$=o(ne);return F.length===$.length&&Z(se,ne,ce,ke,T,F)}if(P(se))return!(!P(ne)||se.size!==ne.size)&&Z(se,ne,ce,ke,N);if(x(se))return!(!x(ne)||se.size!==ne.size)&&Z(se,ne,ce,ke,I);if(v(se)){if(ve=ne,(me=se).byteLength!==ve.byteLength||a(new Uint8Array(me),new Uint8Array(ve))!==0)return!1}else if(z(se)&&!function(D,Q){return ee(D)?ee(Q)&&p(Number.prototype.valueOf.call(D),Number.prototype.valueOf.call(Q)):J(D)?J(Q)&&String.prototype.valueOf.call(D)===String.prototype.valueOf.call(Q):ae(D)?ae(Q)&&Boolean.prototype.valueOf.call(D)===Boolean.prototype.valueOf.call(Q):e(D)?e(Q)&&BigInt.prototype.valueOf.call(D)===BigInt.prototype.valueOf.call(Q):r(Q)&&Symbol.prototype.valueOf.call(D)===Symbol.prototype.valueOf.call(Q)}(se,ne))return!1}return Z(se,ne,ce,ke,T)}function q(se,ne){return ne.filter(function(ce){return h(se,ce)})}function Z(se,ne,ce,ke,me,ve){if(arguments.length===5){ve=Object.keys(se);var je=Object.keys(ne);if(ve.length!==je.length)return!1}for(var we=0;we<ve.length;we++)if(!m(ne,ve[we]))return!1;if(ce&&arguments.length===5){var Ae=c(se);if(Ae.length!==0){var G=0;for(we=0;we<Ae.length;we++){var Y=Ae[we];if(h(se,Y)){if(!h(ne,Y))return!1;ve.push(Y),G++}else if(h(ne,Y))return!1}var F=c(ne);if(Ae.length!==F.length&&q(ne,F).length!==G)return!1}else{var $=c(ne);if($.length!==0&&q(ne,$).length!==0)return!1}}if(ve.length===0&&(me===T||me===C&&se.length===0||se.size===0))return!0;if(ke===void 0)ke={val1:new Map,val2:new Map,position:0};else{var D=ke.val1.get(se);if(D!==void 0){var Q=ke.val2.get(ne);if(Q!==void 0)return D===Q}ke.position++}ke.val1.set(se,ke.position),ke.val2.set(ne,ke.position);var he=function(le,pe,it,_e,Te,ft){var Se=0;if(ft===N){if(!function(Ve,Nt,Re,Ke){for(var vt=null,Be=M(Ve),We=0;We<Be.length;We++){var St=Be[We];if(w(St)==="object"&&St!==null)vt===null&&(vt=new Set),vt.add(St);else if(!Nt.has(St)){if(Re||!X(Ve,Nt,St))return!1;vt===null&&(vt=new Set),vt.add(St)}}if(vt!==null){for(var Ne=M(Nt),Ze=0;Ze<Ne.length;Ze++){var It=Ne[Ze];if(w(It)==="object"&&It!==null){if(!te(vt,It,Re,Ke))return!1}else if(!Re&&!Ve.has(It)&&!te(vt,It,Re,Ke))return!1}return vt.size===0}return!0}(le,pe,it,Te))return!1}else if(ft===I){if(!function(Ve,Nt,Re,Ke){for(var vt=null,Be=s(Ve),We=0;We<Be.length;We++){var St=k(Be[We],2),Ne=St[0],Ze=St[1];if(w(Ne)==="object"&&Ne!==null)vt===null&&(vt=new Set),vt.add(Ne);else{var It=Nt.get(Ne);if(It===void 0&&!Nt.has(Ne)||!R(Ze,It,Re,Ke)){if(Re||!U(Ve,Nt,Ne,Ze,Ke))return!1;vt===null&&(vt=new Set),vt.add(Ne)}}}if(vt!==null){for(var Le=s(Nt),Xe=0;Xe<Le.length;Xe++){var Lt=k(Le[Xe],2),De=(Ne=Lt[0],Lt[1]);if(w(Ne)==="object"&&Ne!==null){if(!K(vt,Ve,Ne,De,Re,Ke))return!1}else if(!(Re||Ve.has(Ne)&&R(Ve.get(Ne),De,!1,Ke)||K(vt,Ve,Ne,De,!1,Ke)))return!1}return vt.size===0}return!0}(le,pe,it,Te))return!1}else if(ft===C)for(;Se<le.length;Se++){if(!m(le,Se)){if(m(pe,Se))return!1;for(var Ge=Object.keys(le);Se<Ge.length;Se++){var Ct=Ge[Se];if(!m(pe,Ct)||!R(le[Ct],pe[Ct],it,Te))return!1}return Ge.length===Object.keys(pe).length}if(!m(pe,Se)||!R(le[Se],pe[Se],it,Te))return!1}for(Se=0;Se<_e.length;Se++){var Pe=_e[Se];if(!R(le[Pe],pe[Pe],it,Te))return!1}return!0}(se,ne,ce,ve,ke,me);return ke.val1.delete(se),ke.val2.delete(ne),he}function te(se,ne,ce,ke){for(var me=M(se),ve=0;ve<me.length;ve++){var je=me[ve];if(R(ne,je,ce,ke))return se.delete(je),!0}return!1}function L(se){switch(w(se)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":se=+se;case"number":if(l(se))return!1}return!0}function X(se,ne,ce){var ke=L(ce);return ke!=null?ke:ne.has(ke)&&!se.has(ke)}function U(se,ne,ce,ke,me){var ve=L(ce);if(ve!=null)return ve;var je=ne.get(ve);return!(je===void 0&&!ne.has(ve)||!R(ke,je,!1,me))&&!se.has(ve)&&R(ke,je,!1,me)}function K(se,ne,ce,ke,me,ve){for(var je=M(se),we=0;we<je.length;we++){var Ae=je[we];if(R(ce,Ae,me,ve)&&R(ke,ne.get(Ae),me,ve))return se.delete(Ae),!0}return!1}W.exports={isDeepEqual:function(se,ne){return R(se,ne,!1)},isDeepStrictEqual:function(se,ne){return R(se,ne,!0)}}},9742:(W,S)=>{S.byteLength=function(l){var f=p(l),m=f[0],h=f[1];return 3*(m+h)/4-h},S.toByteArray=function(l){var f,m,h=p(l),u=h[0],b=h[1],v=new w(function(x,j,P){return 3*(j+P)/4-P}(0,u,b)),_=0,A=b>0?u-4:u;for(m=0;m<A;m+=4)f=k[l.charCodeAt(m)]<<18|k[l.charCodeAt(m+1)]<<12|k[l.charCodeAt(m+2)]<<6|k[l.charCodeAt(m+3)],v[_++]=f>>16&255,v[_++]=f>>8&255,v[_++]=255&f;return b===2&&(f=k[l.charCodeAt(m)]<<2|k[l.charCodeAt(m+1)]>>4,v[_++]=255&f),b===1&&(f=k[l.charCodeAt(m)]<<10|k[l.charCodeAt(m+1)]<<4|k[l.charCodeAt(m+2)]>>2,v[_++]=f>>8&255,v[_++]=255&f),v},S.fromByteArray=function(l){for(var f,m=l.length,h=m%3,u=[],b=16383,v=0,_=m-h;v<_;v+=b)u.push(c(l,v,v+b>_?_:v+b));return h===1?(f=l[m-1],u.push(y[f>>2]+y[f<<4&63]+"==")):h===2&&(f=(l[m-2]<<8)+l[m-1],u.push(y[f>>10]+y[f>>4&63]+y[f<<2&63]+"=")),u.join("")};for(var y=[],k=[],w=typeof Uint8Array!="undefined"?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M=0,s=g.length;M<s;++M)y[M]=g[M],k[g.charCodeAt(M)]=M;function p(l){var f=l.length;if(f%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=l.indexOf("=");return m===-1&&(m=f),[m,m===f?0:4-m%4]}function c(l,f,m){for(var h,u,b=[],v=f;v<m;v+=3)h=(l[v]<<16&16711680)+(l[v+1]<<8&65280)+(255&l[v+2]),b.push(y[(u=h)>>18&63]+y[u>>12&63]+y[u>>6&63]+y[63&u]);return b.join("")}k["-".charCodeAt(0)]=62,k["_".charCodeAt(0)]=63},9e3:(W,S,y)=>{var k=y(8764).Buffer;const{Transform:w}=y(8473);W.exports=class extends w{constructor(g,M={}){super(M),typeof g=="object"&&(g=(M=g).size),this.size=g||512;const{nopad:s,zeroPadding:p=!0}=M;this._zeroPadding=!s&&!!p,this._buffered=[],this._bufferedBytes=0}_transform(g,M,s){for(this._bufferedBytes+=g.length,this._buffered.push(g);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(k.concat(p,this.size))}s()}_flush(){if(this._bufferedBytes&&this._zeroPadding){const g=k.alloc(this.size-this._bufferedBytes);this._buffered.push(g),this.push(k.concat(this._buffered)),this._buffered=null}else this._bufferedBytes&&(this.push(k.concat(this._buffered)),this._buffered=null);this.push(null)}}},3550:function(W,S,y){(function(k,w){function g(i,n){if(!i)throw new Error(n||"Assertion failed")}function M(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 k=="object"?k.exports=s:w.BN=s,s.BN=s,s.wordSize=26;try{p=typeof window!="undefined"&&window.Buffer!==void 0?window.Buffer:y(6601).Buffer}catch(i){}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 g(!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 I=i.charCodeAt(N)-48;a*=o,T=I>=49?I-49+10:I>=17?I-17+10:I,g(I>=0&&T<o,"Invalid character"),a+=T}return a}function m(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),g(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):(g(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(g(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,I=0,R=t;R<N;R+=o)I=f(i,R,R+o,n),this.imuln(a),this.words[0]+I<67108864?this.words[0]+=I:this._iaddn(I);if(C!==0){var q=1;for(I=f(i,R,i.length,n),R=0;R<C;R++)q*=n;this.imuln(q),this.words[0]+I<67108864?this.words[0]+=I:this._iaddn(I)}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){m(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!="undefined"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(i){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"],b=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function _(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,I=C/67108864|0;t.words[0]=N;for(var R=1;R<o;R++){for(var q=I>>>26,Z=67108863&I,te=Math.min(R,n.length-1),L=Math.max(0,R-i.length+1);L<=te;L++){var X=R-L|0;q+=(C=(a=0|i.words[X])*(T=0|n.words[L])+Z)/67108864|0,Z=67108863&C}t.words[R]=0|Z,I=0|q}return I!==0?t.words[R]=0|I: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 I=b[i],R=v[i];t="";var q=this.clone();for(q.negative=0;!q.isZero();){var Z=q.modrn(R).toString(i);t=(q=q.idivn(R)).isZero()?Z+t:u[I-Z.length]+Z+t}for(this.isZero()&&(t="0"+t);t.length%n!=0;)t="0"+t;return this.negative!==0&&(t="-"+t),t}g(!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&&g(!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);g(o<=a,"byte array longer than desired length"),g(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 g((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 g((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 g((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){g(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){g(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,I=t.words,R=0,q=0|C[0],Z=8191&q,te=q>>>13,L=0|C[1],X=8191&L,U=L>>>13,K=0|C[2],se=8191&K,ne=K>>>13,ce=0|C[3],ke=8191&ce,me=ce>>>13,ve=0|C[4],je=8191&ve,we=ve>>>13,Ae=0|C[5],G=8191&Ae,Y=Ae>>>13,F=0|C[6],$=8191&F,D=F>>>13,Q=0|C[7],he=8191&Q,le=Q>>>13,pe=0|C[8],it=8191&pe,_e=pe>>>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],vt=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],Lt=8191&Xe,De=Xe>>>13,Qe=0|N[6],zt=8191&Qe,Fe=Qe>>>13,Je=0|N[7],$t=8191&Je,qe=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(te,Ct)|0))<<13)|0;R=((T=Math.imul(te,Pe))+(a>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,o=Math.imul(X,Ct),a=(a=Math.imul(X,Pe))+Math.imul(U,Ct)|0,T=Math.imul(U,Pe);var cn=(R+(o=o+Math.imul(Z,Nt)|0)|0)+((8191&(a=(a=a+Math.imul(Z,Re)|0)+Math.imul(te,Nt)|0))<<13)|0;R=((T=T+Math.imul(te,Re)|0)+(a>>>13)|0)+(cn>>>26)|0,cn&=67108863,o=Math.imul(se,Ct),a=(a=Math.imul(se,Pe))+Math.imul(ne,Ct)|0,T=Math.imul(ne,Pe),o=o+Math.imul(X,Nt)|0,a=(a=a+Math.imul(X,Re)|0)+Math.imul(U,Nt)|0,T=T+Math.imul(U,Re)|0;var on=(R+(o=o+Math.imul(Z,vt)|0)|0)+((8191&(a=(a=a+Math.imul(Z,Be)|0)+Math.imul(te,vt)|0))<<13)|0;R=((T=T+Math.imul(te,Be)|0)+(a>>>13)|0)+(on>>>26)|0,on&=67108863,o=Math.imul(ke,Ct),a=(a=Math.imul(ke,Pe))+Math.imul(me,Ct)|0,T=Math.imul(me,Pe),o=o+Math.imul(se,Nt)|0,a=(a=a+Math.imul(se,Re)|0)+Math.imul(ne,Nt)|0,T=T+Math.imul(ne,Re)|0,o=o+Math.imul(X,vt)|0,a=(a=a+Math.imul(X,Be)|0)+Math.imul(U,vt)|0,T=T+Math.imul(U,Be)|0;var ln=(R+(o=o+Math.imul(Z,St)|0)|0)+((8191&(a=(a=a+Math.imul(Z,Ne)|0)+Math.imul(te,St)|0))<<13)|0;R=((T=T+Math.imul(te,Ne)|0)+(a>>>13)|0)+(ln>>>26)|0,ln&=67108863,o=Math.imul(je,Ct),a=(a=Math.imul(je,Pe))+Math.imul(we,Ct)|0,T=Math.imul(we,Pe),o=o+Math.imul(ke,Nt)|0,a=(a=a+Math.imul(ke,Re)|0)+Math.imul(me,Nt)|0,T=T+Math.imul(me,Re)|0,o=o+Math.imul(se,vt)|0,a=(a=a+Math.imul(se,Be)|0)+Math.imul(ne,vt)|0,T=T+Math.imul(ne,Be)|0,o=o+Math.imul(X,St)|0,a=(a=a+Math.imul(X,Ne)|0)+Math.imul(U,St)|0,T=T+Math.imul(U,Ne)|0;var hn=(R+(o=o+Math.imul(Z,It)|0)|0)+((8191&(a=(a=a+Math.imul(Z,Le)|0)+Math.imul(te,It)|0))<<13)|0;R=((T=T+Math.imul(te,Le)|0)+(a>>>13)|0)+(hn>>>26)|0,hn&=67108863,o=Math.imul(G,Ct),a=(a=Math.imul(G,Pe))+Math.imul(Y,Ct)|0,T=Math.imul(Y,Pe),o=o+Math.imul(je,Nt)|0,a=(a=a+Math.imul(je,Re)|0)+Math.imul(we,Nt)|0,T=T+Math.imul(we,Re)|0,o=o+Math.imul(ke,vt)|0,a=(a=a+Math.imul(ke,Be)|0)+Math.imul(me,vt)|0,T=T+Math.imul(me,Be)|0,o=o+Math.imul(se,St)|0,a=(a=a+Math.imul(se,Ne)|0)+Math.imul(ne,St)|0,T=T+Math.imul(ne,Ne)|0,o=o+Math.imul(X,It)|0,a=(a=a+Math.imul(X,Le)|0)+Math.imul(U,It)|0,T=T+Math.imul(U,Le)|0;var fn=(R+(o=o+Math.imul(Z,Lt)|0)|0)+((8191&(a=(a=a+Math.imul(Z,De)|0)+Math.imul(te,Lt)|0))<<13)|0;R=((T=T+Math.imul(te,De)|0)+(a>>>13)|0)+(fn>>>26)|0,fn&=67108863,o=Math.imul($,Ct),a=(a=Math.imul($,Pe))+Math.imul(D,Ct)|0,T=Math.imul(D,Pe),o=o+Math.imul(G,Nt)|0,a=(a=a+Math.imul(G,Re)|0)+Math.imul(Y,Nt)|0,T=T+Math.imul(Y,Re)|0,o=o+Math.imul(je,vt)|0,a=(a=a+Math.imul(je,Be)|0)+Math.imul(we,vt)|0,T=T+Math.imul(we,Be)|0,o=o+Math.imul(ke,St)|0,a=(a=a+Math.imul(ke,Ne)|0)+Math.imul(me,St)|0,T=T+Math.imul(me,Ne)|0,o=o+Math.imul(se,It)|0,a=(a=a+Math.imul(se,Le)|0)+Math.imul(ne,It)|0,T=T+Math.imul(ne,Le)|0,o=o+Math.imul(X,Lt)|0,a=(a=a+Math.imul(X,De)|0)+Math.imul(U,Lt)|0,T=T+Math.imul(U,De)|0;var pn=(R+(o=o+Math.imul(Z,zt)|0)|0)+((8191&(a=(a=a+Math.imul(Z,Fe)|0)+Math.imul(te,zt)|0))<<13)|0;R=((T=T+Math.imul(te,Fe)|0)+(a>>>13)|0)+(pn>>>26)|0,pn&=67108863,o=Math.imul(he,Ct),a=(a=Math.imul(he,Pe))+Math.imul(le,Ct)|0,T=Math.imul(le,Pe),o=o+Math.imul($,Nt)|0,a=(a=a+Math.imul($,Re)|0)+Math.imul(D,Nt)|0,T=T+Math.imul(D,Re)|0,o=o+Math.imul(G,vt)|0,a=(a=a+Math.imul(G,Be)|0)+Math.imul(Y,vt)|0,T=T+Math.imul(Y,Be)|0,o=o+Math.imul(je,St)|0,a=(a=a+Math.imul(je,Ne)|0)+Math.imul(we,St)|0,T=T+Math.imul(we,Ne)|0,o=o+Math.imul(ke,It)|0,a=(a=a+Math.imul(ke,Le)|0)+Math.imul(me,It)|0,T=T+Math.imul(me,Le)|0,o=o+Math.imul(se,Lt)|0,a=(a=a+Math.imul(se,De)|0)+Math.imul(ne,Lt)|0,T=T+Math.imul(ne,De)|0,o=o+Math.imul(X,zt)|0,a=(a=a+Math.imul(X,Fe)|0)+Math.imul(U,zt)|0,T=T+Math.imul(U,Fe)|0;var dn=(R+(o=o+Math.imul(Z,$t)|0)|0)+((8191&(a=(a=a+Math.imul(Z,qe)|0)+Math.imul(te,$t)|0))<<13)|0;R=((T=T+Math.imul(te,qe)|0)+(a>>>13)|0)+(dn>>>26)|0,dn&=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(he,Nt)|0,a=(a=a+Math.imul(he,Re)|0)+Math.imul(le,Nt)|0,T=T+Math.imul(le,Re)|0,o=o+Math.imul($,vt)|0,a=(a=a+Math.imul($,Be)|0)+Math.imul(D,vt)|0,T=T+Math.imul(D,Be)|0,o=o+Math.imul(G,St)|0,a=(a=a+Math.imul(G,Ne)|0)+Math.imul(Y,St)|0,T=T+Math.imul(Y,Ne)|0,o=o+Math.imul(je,It)|0,a=(a=a+Math.imul(je,Le)|0)+Math.imul(we,It)|0,T=T+Math.imul(we,Le)|0,o=o+Math.imul(ke,Lt)|0,a=(a=a+Math.imul(ke,De)|0)+Math.imul(me,Lt)|0,T=T+Math.imul(me,De)|0,o=o+Math.imul(se,zt)|0,a=(a=a+Math.imul(se,Fe)|0)+Math.imul(ne,zt)|0,T=T+Math.imul(ne,Fe)|0,o=o+Math.imul(X,$t)|0,a=(a=a+Math.imul(X,qe)|0)+Math.imul(U,$t)|0,T=T+Math.imul(U,qe)|0;var mn=(R+(o=o+Math.imul(Z,Vt)|0)|0)+((8191&(a=(a=a+Math.imul(Z,Ue)|0)+Math.imul(te,Vt)|0))<<13)|0;R=((T=T+Math.imul(te,Ue)|0)+(a>>>13)|0)+(mn>>>26)|0,mn&=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(he,vt)|0,a=(a=a+Math.imul(he,Be)|0)+Math.imul(le,vt)|0,T=T+Math.imul(le,Be)|0,o=o+Math.imul($,St)|0,a=(a=a+Math.imul($,Ne)|0)+Math.imul(D,St)|0,T=T+Math.imul(D,Ne)|0,o=o+Math.imul(G,It)|0,a=(a=a+Math.imul(G,Le)|0)+Math.imul(Y,It)|0,T=T+Math.imul(Y,Le)|0,o=o+Math.imul(je,Lt)|0,a=(a=a+Math.imul(je,De)|0)+Math.imul(we,Lt)|0,T=T+Math.imul(we,De)|0,o=o+Math.imul(ke,zt)|0,a=(a=a+Math.imul(ke,Fe)|0)+Math.imul(me,zt)|0,T=T+Math.imul(me,Fe)|0,o=o+Math.imul(se,$t)|0,a=(a=a+Math.imul(se,qe)|0)+Math.imul(ne,$t)|0,T=T+Math.imul(ne,qe)|0,o=o+Math.imul(X,Vt)|0,a=(a=a+Math.imul(X,Ue)|0)+Math.imul(U,Vt)|0,T=T+Math.imul(U,Ue)|0;var Xt=(R+(o=o+Math.imul(Z,Tt)|0)|0)+((8191&(a=(a=a+Math.imul(Z,Rt)|0)+Math.imul(te,Tt)|0))<<13)|0;R=((T=T+Math.imul(te,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,vt)|0,a=(a=a+Math.imul(it,Be)|0)+Math.imul(_e,vt)|0,T=T+Math.imul(_e,Be)|0,o=o+Math.imul(he,St)|0,a=(a=a+Math.imul(he,Ne)|0)+Math.imul(le,St)|0,T=T+Math.imul(le,Ne)|0,o=o+Math.imul($,It)|0,a=(a=a+Math.imul($,Le)|0)+Math.imul(D,It)|0,T=T+Math.imul(D,Le)|0,o=o+Math.imul(G,Lt)|0,a=(a=a+Math.imul(G,De)|0)+Math.imul(Y,Lt)|0,T=T+Math.imul(Y,De)|0,o=o+Math.imul(je,zt)|0,a=(a=a+Math.imul(je,Fe)|0)+Math.imul(we,zt)|0,T=T+Math.imul(we,Fe)|0,o=o+Math.imul(ke,$t)|0,a=(a=a+Math.imul(ke,qe)|0)+Math.imul(me,$t)|0,T=T+Math.imul(me,qe)|0,o=o+Math.imul(se,Vt)|0,a=(a=a+Math.imul(se,Ue)|0)+Math.imul(ne,Vt)|0,T=T+Math.imul(ne,Ue)|0;var gn=(R+(o=o+Math.imul(X,Tt)|0)|0)+((8191&(a=(a=a+Math.imul(X,Rt)|0)+Math.imul(U,Tt)|0))<<13)|0;R=((T=T+Math.imul(U,Rt)|0)+(a>>>13)|0)+(gn>>>26)|0,gn&=67108863,o=Math.imul(ft,vt),a=(a=Math.imul(ft,Be))+Math.imul(Se,vt)|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(he,It)|0,a=(a=a+Math.imul(he,Le)|0)+Math.imul(le,It)|0,T=T+Math.imul(le,Le)|0,o=o+Math.imul($,Lt)|0,a=(a=a+Math.imul($,De)|0)+Math.imul(D,Lt)|0,T=T+Math.imul(D,De)|0,o=o+Math.imul(G,zt)|0,a=(a=a+Math.imul(G,Fe)|0)+Math.imul(Y,zt)|0,T=T+Math.imul(Y,Fe)|0,o=o+Math.imul(je,$t)|0,a=(a=a+Math.imul(je,qe)|0)+Math.imul(we,$t)|0,T=T+Math.imul(we,qe)|0,o=o+Math.imul(ke,Vt)|0,a=(a=a+Math.imul(ke,Ue)|0)+Math.imul(me,Vt)|0,T=T+Math.imul(me,Ue)|0;var bn=(R+(o=o+Math.imul(se,Tt)|0)|0)+((8191&(a=(a=a+Math.imul(se,Rt)|0)+Math.imul(ne,Tt)|0))<<13)|0;R=((T=T+Math.imul(ne,Rt)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=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(he,Lt)|0,a=(a=a+Math.imul(he,De)|0)+Math.imul(le,Lt)|0,T=T+Math.imul(le,De)|0,o=o+Math.imul($,zt)|0,a=(a=a+Math.imul($,Fe)|0)+Math.imul(D,zt)|0,T=T+Math.imul(D,Fe)|0,o=o+Math.imul(G,$t)|0,a=(a=a+Math.imul(G,qe)|0)+Math.imul(Y,$t)|0,T=T+Math.imul(Y,qe)|0,o=o+Math.imul(je,Vt)|0,a=(a=a+Math.imul(je,Ue)|0)+Math.imul(we,Vt)|0,T=T+Math.imul(we,Ue)|0;var en=(R+(o=o+Math.imul(ke,Tt)|0)|0)+((8191&(a=(a=a+Math.imul(ke,Rt)|0)+Math.imul(me,Tt)|0))<<13)|0;R=((T=T+Math.imul(me,Rt)|0)+(a>>>13)|0)+(en>>>26)|0,en&=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,Lt)|0,a=(a=a+Math.imul(it,De)|0)+Math.imul(_e,Lt)|0,T=T+Math.imul(_e,De)|0,o=o+Math.imul(he,zt)|0,a=(a=a+Math.imul(he,Fe)|0)+Math.imul(le,zt)|0,T=T+Math.imul(le,Fe)|0,o=o+Math.imul($,$t)|0,a=(a=a+Math.imul($,qe)|0)+Math.imul(D,$t)|0,T=T+Math.imul(D,qe)|0,o=o+Math.imul(G,Vt)|0,a=(a=a+Math.imul(G,Ue)|0)+Math.imul(Y,Vt)|0,T=T+Math.imul(Y,Ue)|0;var tn=(R+(o=o+Math.imul(je,Tt)|0)|0)+((8191&(a=(a=a+Math.imul(je,Rt)|0)+Math.imul(we,Tt)|0))<<13)|0;R=((T=T+Math.imul(we,Rt)|0)+(a>>>13)|0)+(tn>>>26)|0,tn&=67108863,o=Math.imul(ft,Lt),a=(a=Math.imul(ft,De))+Math.imul(Se,Lt)|0,T=Math.imul(Se,De),o=o+Math.imul(it,zt)|0,a=(a=a+Math.imul(it,Fe)|0)+Math.imul(_e,zt)|0,T=T+Math.imul(_e,Fe)|0,o=o+Math.imul(he,$t)|0,a=(a=a+Math.imul(he,qe)|0)+Math.imul(le,$t)|0,T=T+Math.imul(le,qe)|0,o=o+Math.imul($,Vt)|0,a=(a=a+Math.imul($,Ue)|0)+Math.imul(D,Vt)|0,T=T+Math.imul(D,Ue)|0;var Jt=(R+(o=o+Math.imul(G,Tt)|0)|0)+((8191&(a=(a=a+Math.imul(G,Rt)|0)+Math.imul(Y,Tt)|0))<<13)|0;R=((T=T+Math.imul(Y,Rt)|0)+(a>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,o=Math.imul(ft,zt),a=(a=Math.imul(ft,Fe))+Math.imul(Se,zt)|0,T=Math.imul(Se,Fe),o=o+Math.imul(it,$t)|0,a=(a=a+Math.imul(it,qe)|0)+Math.imul(_e,$t)|0,T=T+Math.imul(_e,qe)|0,o=o+Math.imul(he,Vt)|0,a=(a=a+Math.imul(he,Ue)|0)+Math.imul(le,Vt)|0,T=T+Math.imul(le,Ue)|0;var yn=(R+(o=o+Math.imul($,Tt)|0)|0)+((8191&(a=(a=a+Math.imul($,Rt)|0)+Math.imul(D,Tt)|0))<<13)|0;R=((T=T+Math.imul(D,Rt)|0)+(a>>>13)|0)+(yn>>>26)|0,yn&=67108863,o=Math.imul(ft,$t),a=(a=Math.imul(ft,qe))+Math.imul(Se,$t)|0,T=Math.imul(Se,qe),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 sn=(R+(o=o+Math.imul(he,Tt)|0)|0)+((8191&(a=(a=a+Math.imul(he,Rt)|0)+Math.imul(le,Tt)|0))<<13)|0;R=((T=T+Math.imul(le,Rt)|0)+(a>>>13)|0)+(sn>>>26)|0,sn&=67108863,o=Math.imul(ft,Vt),a=(a=Math.imul(ft,Ue))+Math.imul(Se,Vt)|0,T=Math.imul(Se,Ue);var oi=(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)+(oi>>>26)|0,oi&=67108863;var ei=(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)+(ei>>>26)|0,ei&=67108863,I[0]=Gt,I[1]=cn,I[2]=on,I[3]=ln,I[4]=hn,I[5]=fn,I[6]=pn,I[7]=dn,I[8]=mn,I[9]=Xt,I[10]=gn,I[11]=bn,I[12]=en,I[13]=tn,I[14]=Jt,I[15]=yn,I[16]=sn,I[17]=oi,I[18]=ei,R!==0&&(I[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,I=Math.min(T,n.length-1),R=Math.max(0,T-i.length+1);R<=I;R++){var q=T-R,Z=(0|i.words[q])*(0|n.words[R]),te=67108863&Z;N=67108863&(te=te+N|0),a+=(C=(C=C+(Z/67108864|0)|0)+(te>>>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=_),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?_(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),g(typeof i=="number"),g(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 I=N/26|0,R=N%26;C[N]=T.words[I]>>>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){g(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 g(this.negative===0),this.iushln(i)},s.prototype.iushrn=function(i,n,t){var o;g(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 I=0;I<T;I++)N.words[I]=this.words[I];N.length=T}if(T!==0)if(this.length>T)for(this.length-=T,I=0;I<this.length;I++)this.words[I]=this.words[I+T];else this.words[0]=0,this.length=1;var R=0;for(I=this.length-1;I>=0&&(R!==0||I>=o);I--){var q=0|this.words[I];this.words[I]=R<<26-a|q>>>a,R=q&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 g(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){g(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){g(typeof i=="number"&&i>=0);var n=i%26,t=(i-n)/26;if(g(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 g(typeof i=="number"),g(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(g(typeof i=="number"),g(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(g(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 I=0;I<C.length;I++)C.words[I]=0}var R=o.clone()._ishlnsubmul(a,1,N);R.negative===0&&(o=R,C&&(C.words[N]=1));for(var q=N-1;q>=0;q--){var Z=67108864*(0|o.words[a.length+q])+(0|o.words[a.length+q-1]);for(Z=Math.min(Z/T|0,67108863),o._ishlnsubmul(a,Z,q);o.negative!==0;)Z--,o.negative=0,o._ishlnsubmul(a,1,q),o.isZero()||(o.negative^=1);C&&(C.words[q]=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 g(!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),g(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),g(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){g(i.negative===0),g(!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 I=t.clone(),R=n.clone();!n.isZero();){for(var q=0,Z=1;!(n.words[0]&Z)&&q<26;++q,Z<<=1);if(q>0)for(n.iushrn(q);q-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(I),a.isub(R)),o.iushrn(1),a.iushrn(1);for(var te=0,L=1;!(t.words[0]&L)&&te<26;++te,L<<=1);if(te>0)for(t.iushrn(te);te-- >0;)(T.isOdd()||C.isOdd())&&(T.iadd(I),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){g(i.negative===0),g(!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,I=1;!(n.words[0]&I)&&N<26;++N,I<<=1);if(N>0)for(n.iushrn(N);N-- >0;)a.isOdd()&&a.iadd(C),a.iushrn(1);for(var R=0,q=1;!(t.words[0]&q)&&R<26;++R,q<<=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){g(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),g(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 g(!this.red,"Already a number in reduction context"),g(this.negative===0,"red works only with positives"),i.convertTo(this)._forceRed(i)},s.prototype.fromRed=function(){return g(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 g(!this.red,"Already a number in reduction context"),this._forceRed(i)},s.prototype.redAdd=function(i){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},s.prototype.redIAdd=function(i){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},s.prototype.redSub=function(i){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},s.prototype.redISub=function(i){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},s.prototype.redShl=function(i){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},s.prototype.redMul=function(i){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},s.prototype.redIMul=function(i){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},s.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(i){return g(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 z(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ee(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function J(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ae(){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 g(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)},M(z,B),z.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},z.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},M(ee,B),M(J,B),M(ae,B),ae.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 z;else if(i==="p224")n=new ee;else if(i==="p192")n=new J;else{if(i!=="p25519")throw new Error("Unknown prime "+i);n=new ae}return P[i]=n,n},e.prototype._verify1=function(i){g(i.negative===0,"red works only with positives"),g(i.red,"red works only with red numbers")},e.prototype._verify2=function(i,n){g((i.negative|n.negative)==0,"red works only with positives"),g(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):(m(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(g(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);g(!o.isZero());var T=new s(1).toRed(this),C=T.redNeg(),N=this.m.subn(1).iushrn(1),I=this.m.bitLength();for(I=new s(2*I*I).toRed(this);this.pow(I,N).cmp(C)!==0;)I.redIAdd(C);for(var R=this.pow(I,o),q=this.pow(i,o.addn(1).iushrn(1)),Z=this.pow(i,o),te=a;Z.cmp(T)!==0;){for(var L=Z,X=0;L.cmp(T)!==0;X++)L=L.redSqr();g(X<te);var U=this.pow(R,new s(1).iushln(te-X-1));q=q.redMul(U),R=U.redSqr(),Z=Z.redMul(R),te=X}return q},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 I=n.words[o],R=N-1;R>=0;R--){var q=I>>R&1;a!==t[0]&&(a=this.sqr(a)),q!==0||T!==0?(T<<=1,T|=q,(++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)},M(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)}})(W=y.nmd(W),this)},9931:(W,S,y)=>{var k;function w(M){this.rand=M}if(W.exports=function(M){return k||(k=new w(null)),k.generate(M)},W.exports.Rand=w,w.prototype.generate=function(M){return this._rand(M)},w.prototype._rand=function(M){if(this.rand.getBytes)return this.rand.getBytes(M);for(var s=new Uint8Array(M),p=0;p<s.length;p++)s[p]=this.rand.getByte();return s},typeof self=="object")self.crypto&&self.crypto.getRandomValues?w.prototype._rand=function(M){var s=new Uint8Array(M);return self.crypto.getRandomValues(s),s}:self.msCrypto&&self.msCrypto.getRandomValues?w.prototype._rand=function(M){var s=new Uint8Array(M);return self.msCrypto.getRandomValues(s),s}:typeof window=="object"&&(w.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var g=y(9214);if(typeof g.randomBytes!="function")throw new Error("Not supported");w.prototype._rand=function(M){return g.randomBytes(M)}}catch(M){}},3818:(W,S,y)=>{var k=y(4155);Object.defineProperty(S,"__esModule",{value:!0});var w=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},g=typeof window!="undefined"&&window.document!==void 0,M=(typeof self=="undefined"?"undefined":w(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",s=k!==void 0&&k.versions!=null&&k.versions.node!=null;S.isBrowser=g,S.isWebWorker=M,S.isNode=s,S.isJsDom=function(){return typeof window!="undefined"&&window.name==="nodejs"||navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")}},4497:(W,S,y)=>{var k=y(9509).Buffer;function w(l){k.isBuffer(l)||(l=k.from(l));for(var f=l.length/4|0,m=new Array(f),h=0;h<f;h++)m[h]=l.readUInt32BE(4*h);return m}function g(l){for(;0<l.length;l++)l[0]=0}function M(l,f,m,h,u){for(var b,v,_,A,x=m[0],j=m[1],P=m[2],B=m[3],z=l[0]^f[0],ee=l[1]^f[1],J=l[2]^f[2],ae=l[3]^f[3],e=4,r=1;r<u;r++)b=x[z>>>24]^j[ee>>>16&255]^P[J>>>8&255]^B[255&ae]^f[e++],v=x[ee>>>24]^j[J>>>16&255]^P[ae>>>8&255]^B[255&z]^f[e++],_=x[J>>>24]^j[ae>>>16&255]^P[z>>>8&255]^B[255&ee]^f[e++],A=x[ae>>>24]^j[z>>>16&255]^P[ee>>>8&255]^B[255&J]^f[e++],z=b,ee=v,J=_,ae=A;return b=(h[z>>>24]<<24|h[ee>>>16&255]<<16|h[J>>>8&255]<<8|h[255&ae])^f[e++],v=(h[ee>>>24]<<24|h[J>>>16&255]<<16|h[ae>>>8&255]<<8|h[255&z])^f[e++],_=(h[J>>>24]<<24|h[ae>>>16&255]<<16|h[z>>>8&255]<<8|h[255&ee])^f[e++],A=(h[ae>>>24]<<24|h[z>>>16&255]<<16|h[ee>>>8&255]<<8|h[255&J])^f[e++],[b>>>=0,v>>>=0,_>>>=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 m=[],h=[],u=[[],[],[],[]],b=[[],[],[],[]],v=0,_=0,A=0;A<256;++A){var x=_^_<<1^_<<2^_<<3^_<<4;x=x>>>8^255&x^99,m[v]=x,h[x]=v;var j=l[v],P=l[j],B=l[P],z=257*l[x]^16843008*x;u[0][v]=z<<24|z>>>8,u[1][v]=z<<16|z>>>16,u[2][v]=z<<8|z>>>24,u[3][v]=z,z=16843009*B^65537*P^257*j^16843008*v,b[0][x]=z<<24|z>>>8,b[1][x]=z<<16|z>>>16,b[2][x]=z<<8|z>>>24,b[3][x]=z,v===0?v=_=1:(v=j^l[l[l[B^j]]],_^=l[l[_]])}return{SBOX:m,INV_SBOX:h,SUB_MIX:u,INV_SUB_MIX:b}}();function c(l){this._key=w(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,m=f+6,h=4*(m+1),u=[],b=0;b<f;b++)u[b]=l[b];for(b=f;b<h;b++){var v=u[b-1];b%f==0?(v=v<<8|v>>>24,v=p.SBOX[v>>>24]<<24|p.SBOX[v>>>16&255]<<16|p.SBOX[v>>>8&255]<<8|p.SBOX[255&v],v^=s[b/f|0]<<24):f>6&&b%f==4&&(v=p.SBOX[v>>>24]<<24|p.SBOX[v>>>16&255]<<16|p.SBOX[v>>>8&255]<<8|p.SBOX[255&v]),u[b]=u[b-f]^v}for(var _=[],A=0;A<h;A++){var x=h-A,j=u[x-(A%4?0:4)];_[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=m,this._keySchedule=u,this._invKeySchedule=_},c.prototype.encryptBlockRaw=function(l){return M(l=w(l),this._keySchedule,p.SUB_MIX,p.SBOX,this._nRounds)},c.prototype.encryptBlock=function(l){var f=this.encryptBlockRaw(l),m=k.allocUnsafe(16);return m.writeUInt32BE(f[0],0),m.writeUInt32BE(f[1],4),m.writeUInt32BE(f[2],8),m.writeUInt32BE(f[3],12),m},c.prototype.decryptBlock=function(l){var f=(l=w(l))[1];l[1]=l[3],l[3]=f;var m=M(l,this._invKeySchedule,p.INV_SUB_MIX,p.INV_SBOX,this._nRounds),h=k.allocUnsafe(16);return h.writeUInt32BE(m[0],0),h.writeUInt32BE(m[3],4),h.writeUInt32BE(m[2],8),h.writeUInt32BE(m[1],12),h},c.prototype.scrub=function(){g(this._keySchedule),g(this._invKeySchedule),g(this._key)},W.exports.AES=c},2422:(W,S,y)=>{var k=y(4497),w=y(9509).Buffer,g=y(1027),M=y(5717),s=y(3288),p=y(7295),c=y(685);function l(f,m,h,u){g.call(this);var b=w.alloc(4,0);this._cipher=new k.AES(m);var v=this._cipher.encryptBlock(b);this._ghash=new s(v),h=function(_,A,x){if(A.length===12)return _._finID=w.concat([A,w.from([0,0,0,1])]),w.concat([A,w.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(w.alloc(B,0))),j.update(w.alloc(8,0));var z=8*P,ee=w.alloc(8);ee.writeUIntBE(z,0,8),j.update(ee),_._finID=j.state;var J=w.from(_._finID);return c(J),J}(this,h,v),this._prev=w.from(h),this._cache=w.allocUnsafe(0),this._secCache=w.allocUnsafe(0),this._decrypt=u,this._alen=0,this._len=0,this._mode=f,this._authTag=null,this._called=!1}M(l,g),l.prototype._update=function(f){if(!this._called&&this._alen){var m=16-this._alen%16;m<16&&(m=w.alloc(m,0),this._ghash.update(m))}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(m,h){var u=0;m.length!==h.length&&u++;for(var b=Math.min(m.length,h.length),v=0;v<b;++v)u+=m[v]^h[v];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||!w.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},W.exports=l},4696:(W,S,y)=>{var k=y(1494),w=y(6193),g=y(4946);S.createCipher=S.Cipher=k.createCipher,S.createCipheriv=S.Cipheriv=k.createCipheriv,S.createDecipher=S.Decipher=w.createDecipher,S.createDecipheriv=S.Decipheriv=w.createDecipheriv,S.listCiphers=S.getCiphers=function(){return Object.keys(g)}},6193:(W,S,y)=>{var k=y(2422),w=y(9509).Buffer,g=y(45),M=y(5969),s=y(1027),p=y(4497),c=y(3048);function l(h,u,b){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new p.AES(u),this._prev=w.from(b),this._mode=h,this._autopadding=!0}function f(){this.cache=w.allocUnsafe(0)}function m(h,u,b){var v=g[h.toLowerCase()];if(!v)throw new TypeError("invalid suite type");if(typeof b=="string"&&(b=w.from(b)),v.mode!=="GCM"&&b.length!==v.iv)throw new TypeError("invalid iv length "+b.length);if(typeof u=="string"&&(u=w.from(u)),u.length!==v.key/8)throw new TypeError("invalid key length "+u.length);return v.type==="stream"?new M(v.module,u,b,!0):v.type==="auth"?new k(v.module,u,b,!0):new l(v.module,u,b)}y(5717)(l,s),l.prototype._update=function(h){var u,b;this._cache.add(h);for(var v=[];u=this._cache.get(this._autopadding);)b=this._mode.decrypt(this,u),v.push(b);return w.concat(v)},l.prototype._final=function(){var h=this._cache.flush();if(this._autopadding)return function(u){var b=u[15];if(b<1||b>16)throw new Error("unable to decrypt data");for(var v=-1;++v<b;)if(u[v+(16-b)]!==b)throw new Error("unable to decrypt data");if(b!==16)return u.slice(0,16-b)}(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=w.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},S.createDecipher=function(h,u){var b=g[h.toLowerCase()];if(!b)throw new TypeError("invalid suite type");var v=c(u,!1,b.key,b.iv);return m(h,v.key,v.iv)},S.createDecipheriv=m},1494:(W,S,y)=>{var k=y(45),w=y(2422),g=y(9509).Buffer,M=y(5969),s=y(1027),p=y(4497),c=y(3048);function l(u,b,v){s.call(this),this._cache=new m,this._cipher=new p.AES(b),this._prev=g.from(v),this._mode=u,this._autopadding=!0}y(5717)(l,s),l.prototype._update=function(u){var b,v;this._cache.add(u);for(var _=[];b=this._cache.get();)v=this._mode.encrypt(this,b),_.push(v);return g.concat(_)};var f=g.alloc(16,16);function m(){this.cache=g.allocUnsafe(0)}function h(u,b,v){var _=k[u.toLowerCase()];if(!_)throw new TypeError("invalid suite type");if(typeof b=="string"&&(b=g.from(b)),b.length!==_.key/8)throw new TypeError("invalid key length "+b.length);if(typeof v=="string"&&(v=g.from(v)),_.mode!=="GCM"&&v.length!==_.iv)throw new TypeError("invalid iv length "+v.length);return _.type==="stream"?new M(_.module,b,v):_.type==="auth"?new w(_.module,b,v):new l(_.module,b,v)}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},m.prototype.add=function(u){this.cache=g.concat([this.cache,u])},m.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},m.prototype.flush=function(){for(var u=16-this.cache.length,b=g.allocUnsafe(u),v=-1;++v<u;)b.writeUInt8(u,v);return g.concat([this.cache,b])},S.createCipheriv=h,S.createCipher=function(u,b){var v=k[u.toLowerCase()];if(!v)throw new TypeError("invalid suite type");var _=c(b,!1,v.key,v.iv);return h(u,_.key,_.iv)}},3288:(W,S,y)=>{var k=y(9509).Buffer,w=k.alloc(16,0);function g(s){var p=k.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 M(s){this.h=s,this.state=k.alloc(16,0),this.cache=k.allocUnsafe(0)}M.prototype.ghash=function(s){for(var p=-1;++p<s.length;)this.state[p]^=s[p];this._multiply()},M.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],m=-1;++m<128;){for(this.state[~~(m/8)]&1<<7-m%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=g(f)},M.prototype.update=function(s){var p;for(this.cache=k.concat([this.cache,s]);this.cache.length>=16;)p=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(p)},M.prototype.final=function(s,p){return this.cache.length&&this.ghash(k.concat([this.cache,w],16)),this.ghash(g([0,s,0,p])),this.state},W.exports=M},685:W=>{W.exports=function(S){for(var y,k=S.length;k--;){if((y=S.readUInt8(k))!==255){y++,S.writeUInt8(y,k);break}S.writeUInt8(0,k)}}},5292:(W,S,y)=>{var k=y(7295);S.encrypt=function(w,g){var M=k(g,w._prev);return w._prev=w._cipher.encryptBlock(M),w._prev},S.decrypt=function(w,g){var M=w._prev;w._prev=g;var s=w._cipher.decryptBlock(g);return k(s,M)}},6311:(W,S,y)=>{var k=y(9509).Buffer,w=y(7295);function g(M,s,p){var c=s.length,l=w(s,M._cache);return M._cache=M._cache.slice(c),M._prev=k.concat([M._prev,p?s:l]),l}S.encrypt=function(M,s,p){for(var c,l=k.allocUnsafe(0);s.length;){if(M._cache.length===0&&(M._cache=M._cipher.encryptBlock(M._prev),M._prev=k.allocUnsafe(0)),!(M._cache.length<=s.length)){l=k.concat([l,g(M,s,p)]);break}c=M._cache.length,l=k.concat([l,g(M,s.slice(0,c),p)]),s=s.slice(c)}return l}},1510:(W,S,y)=>{var k=y(9509).Buffer;function w(M,s,p){for(var c,l,f=-1,m=0;++f<8;)c=s&1<<7-f?128:0,m+=(128&(l=M._cipher.encryptBlock(M._prev)[0]^c))>>f%8,M._prev=g(M._prev,p?c:l);return m}function g(M,s){var p=M.length,c=-1,l=k.allocUnsafe(M.length);for(M=k.concat([M,k.from([s])]);++c<p;)l[c]=M[c]<<1|M[c+1]>>7;return l}S.encrypt=function(M,s,p){for(var c=s.length,l=k.allocUnsafe(c),f=-1;++f<c;)l[f]=w(M,s[f],p);return l}},1964:(W,S,y)=>{var k=y(9509).Buffer;function w(g,M,s){var p=g._cipher.encryptBlock(g._prev)[0]^M;return g._prev=k.concat([g._prev.slice(1),k.from([s?M:p])]),p}S.encrypt=function(g,M,s){for(var p=M.length,c=k.allocUnsafe(p),l=-1;++l<p;)c[l]=w(g,M[l],s);return c}},6009:(W,S,y)=>{var k=y(7295),w=y(9509).Buffer,g=y(685);function M(s){var p=s._cipher.encryptBlockRaw(s._prev);return g(s._prev),p}S.encrypt=function(s,p){var c=Math.ceil(p.length/16),l=s._cache.length;s._cache=w.concat([s._cache,w.allocUnsafe(16*c)]);for(var f=0;f<c;f++){var m=M(s),h=l+16*f;s._cache.writeUInt32BE(m[0],h+0),s._cache.writeUInt32BE(m[1],h+4),s._cache.writeUInt32BE(m[2],h+8),s._cache.writeUInt32BE(m[3],h+12)}var u=s._cache.slice(0,p.length);return s._cache=s._cache.slice(p.length),k(p,u)}},1084:(W,S)=>{S.encrypt=function(y,k){return y._cipher.encryptBlock(k)},S.decrypt=function(y,k){return y._cipher.decryptBlock(k)}},45:(W,S,y)=>{var k={ECB:y(1084),CBC:y(5292),CFB:y(6311),CFB8:y(1964),CFB1:y(1510),OFB:y(8861),CTR:y(6009),GCM:y(6009)},w=y(4946);for(var g in w)w[g].module=k[w[g].mode];W.exports=w},8861:(W,S,y)=>{var k=y(8764).Buffer,w=y(7295);function g(M){return M._prev=M._cipher.encryptBlock(M._prev),M._prev}S.encrypt=function(M,s){for(;M._cache.length<s.length;)M._cache=k.concat([M._cache,g(M)]);var p=M._cache.slice(0,s.length);return M._cache=M._cache.slice(s.length),w(s,p)}},5969:(W,S,y)=>{var k=y(4497),w=y(9509).Buffer,g=y(1027);function M(s,p,c,l){g.call(this),this._cipher=new k.AES(p),this._prev=w.from(c),this._cache=w.allocUnsafe(0),this._secCache=w.allocUnsafe(0),this._decrypt=l,this._mode=s}y(5717)(M,g),M.prototype._update=function(s){return this._mode.encrypt(this,s,this._decrypt)},M.prototype._final=function(){this._cipher.scrub()},W.exports=M},3614:(W,S,y)=>{var k=y(7667),w=y(4696),g=y(45),M=y(9715),s=y(3048);function p(l,f,m){if(l=l.toLowerCase(),g[l])return w.createCipheriv(l,f,m);if(M[l])return new k({key:f,iv:m,mode:l});throw new TypeError("invalid suite type")}function c(l,f,m){if(l=l.toLowerCase(),g[l])return w.createDecipheriv(l,f,m);if(M[l])return new k({key:f,iv:m,mode:l,decrypt:!0});throw new TypeError("invalid suite type")}S.createCipher=S.Cipher=function(l,f){var m,h;if(l=l.toLowerCase(),g[l])m=g[l].key,h=g[l].iv;else{if(!M[l])throw new TypeError("invalid suite type");m=8*M[l].key,h=M[l].iv}var u=s(f,!1,m,h);return p(l,u.key,u.iv)},S.createCipheriv=S.Cipheriv=p,S.createDecipher=S.Decipher=function(l,f){var m,h;if(l=l.toLowerCase(),g[l])m=g[l].key,h=g[l].iv;else{if(!M[l])throw new TypeError("invalid suite type");m=8*M[l].key,h=M[l].iv}var u=s(f,!1,m,h);return c(l,u.key,u.iv)},S.createDecipheriv=S.Decipheriv=c,S.listCiphers=S.getCiphers=function(){return Object.keys(M).concat(w.getCiphers())}},7667:(W,S,y)=>{var k=y(1027),w=y(5251),g=y(5717),M=y(9509).Buffer,s={"des-ede3-cbc":w.CBC.instantiate(w.EDE),"des-ede3":w.EDE,"des-ede-cbc":w.CBC.instantiate(w.EDE),"des-ede":w.EDE,"des-cbc":w.CBC.instantiate(w.DES),"des-ecb":w.DES};function p(c){k.call(this);var l,f=c.mode.toLowerCase(),m=s[f];l=c.decrypt?"decrypt":"encrypt";var h=c.key;M.isBuffer(h)||(h=M.from(h)),f!=="des-ede"&&f!=="des-ede-cbc"||(h=M.concat([h,h.slice(0,8)]));var u=c.iv;M.isBuffer(u)||(u=M.from(u)),this._des=m.create({key:h,iv:u,type:l})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],W.exports=p,g(p,k),p.prototype._update=function(c){return M.from(this._des.update(c))},p.prototype._final=function(){return M.from(this._des.final())}},9715:(W,S)=>{S["des-ecb"]={key:8,iv:0},S["des-cbc"]=S.des={key:8,iv:8},S["des-ede3-cbc"]=S.des3={key:24,iv:8},S["des-ede3"]={key:24,iv:0},S["des-ede-cbc"]={key:16,iv:8},S["des-ede"]={key:16,iv:0}},3663:(W,S,y)=>{var k=y(8764).Buffer,w=y(3550),g=y(1798);function M(p){var c,l=p.modulus.byteLength();do c=new w(g(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=M(P);return{blinder:B.toRed(w.mont(P.modulus)).redPow(new w(P.publicExponent)).fromRed(),unblinder:B.invm(P.modulus)}}(c),f=c.modulus.byteLength(),m=new w(p).mul(l.blinder).umod(c.modulus),h=m.toRed(w.mont(c.prime1)),u=m.toRed(w.mont(c.prime2)),b=c.coefficient,v=c.prime1,_=c.prime2,A=h.redPow(c.exponent1).fromRed(),x=u.redPow(c.exponent2).fromRed(),j=A.isub(x).imul(b).umod(v).imul(_);return x.iadd(j).imul(l.unblinder).umod(c.modulus).toArrayLike(k,"be",f)}s.getr=M,W.exports=s},6042:(W,S,y)=>{W.exports=y(5207)},4743:(W,S,y)=>{var k=y(9509).Buffer,w=y(3482),g=y(8473),M=y(5717),s=y(2957),p=y(7753),c=y(5207);function l(u){g.Writable.call(this);var b=c[u];if(!b)throw new Error("Unknown message digest");this._hashType=b.hash,this._hash=w(b.hash),this._tag=b.id,this._signType=b.sign}function f(u){g.Writable.call(this);var b=c[u];if(!b)throw new Error("Unknown message digest");this._hash=w(b.hash),this._tag=b.id,this._signType=b.sign}function m(u){return new l(u)}function h(u){return new f(u)}Object.keys(c).forEach(function(u){c[u].id=k.from(c[u].id,"hex"),c[u.toLowerCase()]=c[u]}),M(l,g.Writable),l.prototype._write=function(u,b,v){this._hash.update(u),v()},l.prototype.update=function(u,b){return typeof u=="string"&&(u=k.from(u,b)),this._hash.update(u),this},l.prototype.sign=function(u,b){this.end();var v=this._hash.digest(),_=s(v,u,this._hashType,this._signType,this._tag);return b?_.toString(b):_},M(f,g.Writable),f.prototype._write=function(u,b,v){this._hash.update(u),v()},f.prototype.update=function(u,b){return typeof u=="string"&&(u=k.from(u,b)),this._hash.update(u),this},f.prototype.verify=function(u,b,v){typeof b=="string"&&(b=k.from(b,v)),this.end();var _=this._hash.digest();return p(b,_,u,this._signType,this._tag)},W.exports={Sign:m,Verify:h,createSign:m,createVerify:h}},2957:(W,S,y)=>{var k=y(9509).Buffer,w=y(8355),g=y(3663),M=y(6266).ec,s=y(3550),p=y(980),c=y(1308);function l(u,b,v,_){if((u=k.from(u.toArray())).length<b.byteLength()){var A=k.alloc(b.byteLength()-u.length);u=k.concat([A,u])}var x=v.length,j=function(z,ee){z=(z=f(z,ee)).mod(ee);var J=k.from(z.toArray());if(J.length<ee.byteLength()){var ae=k.alloc(ee.byteLength()-J.length);J=k.concat([ae,J])}return J}(v,b),P=k.alloc(x);P.fill(1);var B=k.alloc(x);return B=w(_,B).update(P).update(k.from([0])).update(u).update(j).digest(),P=w(_,B).update(P).digest(),{k:B=w(_,B).update(P).update(k.from([1])).update(u).update(j).digest(),v:P=w(_,B).update(P).digest()}}function f(u,b){var v=new s(u),_=(u.length<<3)-b.bitLength();return _>0&&v.ishrn(_),v}function m(u,b,v){var _,A;do{for(_=k.alloc(0);8*_.length<u.bitLength();)b.v=w(v,b.k).update(b.v).digest(),_=k.concat([_,b.v]);A=f(_,u),b.k=w(v,b.k).update(b.v).update(k.from([0])).digest(),b.v=w(v,b.k).update(b.v).digest()}while(A.cmp(u)!==-1);return A}function h(u,b,v,_){return u.toRed(s.mont(v)).redPow(b).fromRed().mod(_)}W.exports=function(u,b,v,_,A){var x=p(b);if(x.curve){if(_!=="ecdsa"&&_!=="ecdsa/rsa")throw new Error("wrong private key type");return function(z,ee){var J=c[ee.curve.join(".")];if(!J)throw new Error("unknown curve "+ee.curve.join("."));var ae=new M(J).keyFromPrivate(ee.privateKey).sign(z);return k.from(ae.toDER())}(u,x)}if(x.type==="dsa"){if(_!=="dsa")throw new Error("wrong private key type");return function(z,ee,J){for(var ae,e=ee.params.priv_key,r=ee.params.p,i=ee.params.q,n=ee.params.g,t=new s(0),o=f(z,i).mod(i),a=!1,T=l(e,i,z,J);a===!1;)t=h(n,ae=m(i,T,J),r,i),(a=ae.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 I=[48,C.length+N.length+4,2,C.length];return I=I.concat(C,[2,N.length],N),k.from(I)}(t,a)}(u,x,v)}if(_!=="rsa"&&_!=="ecdsa/rsa")throw new Error("wrong private key type");u=k.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 g(P,x)},W.exports.getKey=l,W.exports.makeKey=m},7753:(W,S,y)=>{var k=y(9509).Buffer,w=y(3550),g=y(6266).ec,M=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")}W.exports=function(c,l,f,m,h){var u=M(f);if(u.type==="ec"){if(m!=="ecdsa"&&m!=="ecdsa/rsa")throw new Error("wrong public key type");return function(P,B,z){var ee=s[z.data.algorithm.curve.join(".")];if(!ee)throw new Error("unknown curve "+z.data.algorithm.curve.join("."));var J=new g(ee),ae=z.data.subjectPrivateKey.data;return J.verify(B,P,ae)}(c,l,u)}if(u.type==="dsa"){if(m!=="dsa")throw new Error("wrong public key type");return function(P,B,z){var ee=z.data.p,J=z.data.q,ae=z.data.g,e=z.data.pub_key,r=M.signature.decode(P,"der"),i=r.s,n=r.r;p(i,J),p(n,J);var t=w.mont(ee),o=i.invm(J);return ae.toRed(t).redPow(new w(B).mul(o).mod(J)).fromRed().mul(e.toRed(t).redPow(n.mul(o).mod(J)).fromRed()).mod(ee).mod(J).cmp(n)===0}(c,l,u)}if(m!=="rsa"&&m!=="ecdsa/rsa")throw new Error("wrong public key type");l=k.concat([h,l]);for(var b=u.modulus.byteLength(),v=[1],_=0;l.length+v.length+2<b;)v.push(255),_++;v.push(0);for(var A=-1;++A<l.length;)v.push(l[A]);v=k.from(v);var x=w.mont(u.modulus);c=(c=new w(c).toRed(x)).redPow(new w(u.publicExponent)),c=k.from(c.fromRed().toArray());var j=_<8?1:0;for(b=Math.min(c.length,v.length),c.length!==v.length&&(j=1),A=-1;++A<b;)j|=c[A]^v[A];return j===0}},2779:(W,S,y)=>{var k=y(8764).Buffer,w=[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 g(p){if(k.isBuffer(p))return p;var c=typeof k.alloc=="function"&&typeof k.from=="function";if(typeof p=="number")return c?k.alloc(p):new k(p);if(typeof p=="string")return c?k.from(p):new k(p);throw new Error("input must be buffer, number, or string, received "+typeof p)}function M(p,c){p=g(p),k.isBuffer(c)&&(c=c.readUInt32BE(0));for(var l=-1^~~c,f=0;f<p.length;f++)l=w[255&(l^p[f])]^l>>>8;return-1^l}function s(){return p=M.apply(null,arguments),(c=g(4)).writeInt32BE(p,0),c;var p,c}typeof Int32Array!="undefined"&&(w=new Int32Array(w)),s.signed=function(){return M.apply(null,arguments)},s.unsigned=function(){return M.apply(null,arguments)>>>0},W.exports=s},7295:(W,S,y)=>{var k=y(8764).Buffer;W.exports=function(w,g){for(var M=Math.min(w.length,g.length),s=new k(M),p=0;p<M;++p)s[p]=w[p]^g[p];return s}},8764:(W,S,y)=>{var k=y(5108);const w=y(9742),g=y(645),M=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;S.Buffer=c,S.SlowBuffer=function(G){return+G!=G&&(G=0),c.alloc(+G)},S.INSPECT_MAX_BYTES=50;const s=2147483647;function p(G){if(G>s)throw new RangeError('The value "'+G+'" is invalid for option "size"');const Y=new Uint8Array(G);return Object.setPrototypeOf(Y,c.prototype),Y}function c(G,Y,F){if(typeof G=="number"){if(typeof Y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(G)}return l(G,Y,F)}function l(G,Y,F){if(typeof G=="string")return function(Q,he){if(typeof he=="string"&&he!==""||(he="utf8"),!c.isEncoding(he))throw new TypeError("Unknown encoding: "+he);const le=0|v(Q,he);let pe=p(le);const it=pe.write(Q,he);return it!==le&&(pe=pe.slice(0,it)),pe}(G,Y);if(ArrayBuffer.isView(G))return function(Q){if(me(Q,Uint8Array)){const he=new Uint8Array(Q);return u(he.buffer,he.byteOffset,he.byteLength)}return h(Q)}(G);if(G==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof G);if(me(G,ArrayBuffer)||G&&me(G.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(me(G,SharedArrayBuffer)||G&&me(G.buffer,SharedArrayBuffer)))return u(G,Y,F);if(typeof G=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const $=G.valueOf&&G.valueOf();if($!=null&&$!==G)return c.from($,Y,F);const D=function(Q){if(c.isBuffer(Q)){const he=0|b(Q.length),le=p(he);return le.length===0||Q.copy(le,0,0,he),le}return Q.length!==void 0?typeof Q.length!="number"||ve(Q.length)?p(0):h(Q):Q.type==="Buffer"&&Array.isArray(Q.data)?h(Q.data):void 0}(G);if(D)return D;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof G[Symbol.toPrimitive]=="function")return c.from(G[Symbol.toPrimitive]("string"),Y,F);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof G)}function f(G){if(typeof G!="number")throw new TypeError('"size" argument must be of type number');if(G<0)throw new RangeError('The value "'+G+'" is invalid for option "size"')}function m(G){return f(G),p(G<0?0:0|b(G))}function h(G){const Y=G.length<0?0:0|b(G.length),F=p(Y);for(let $=0;$<Y;$+=1)F[$]=255&G[$];return F}function u(G,Y,F){if(Y<0||G.byteLength<Y)throw new RangeError('"offset" is outside of buffer bounds');if(G.byteLength<Y+(F||0))throw new RangeError('"length" is outside of buffer bounds');let $;return $=Y===void 0&&F===void 0?new Uint8Array(G):F===void 0?new Uint8Array(G,Y):new Uint8Array(G,Y,F),Object.setPrototypeOf($,c.prototype),$}function b(G){if(G>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|G}function v(G,Y){if(c.isBuffer(G))return G.length;if(ArrayBuffer.isView(G)||me(G,ArrayBuffer))return G.byteLength;if(typeof G!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof G);const F=G.length,$=arguments.length>2&&arguments[2]===!0;if(!$&&F===0)return 0;let D=!1;for(;;)switch(Y){case"ascii":case"latin1":case"binary":return F;case"utf8":case"utf-8":return ne(G).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*F;case"hex":return F>>>1;case"base64":return ce(G).length;default:if(D)return $?-1:ne(G).length;Y=(""+Y).toLowerCase(),D=!0}}function _(G,Y,F){let $=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length||((F===void 0||F>this.length)&&(F=this.length),F<=0)||(F>>>=0)<=(Y>>>=0))return"";for(G||(G="utf8");;)switch(G){case"hex":return t(this,Y,F);case"utf8":case"utf-8":return e(this,Y,F);case"ascii":return i(this,Y,F);case"latin1":case"binary":return n(this,Y,F);case"base64":return ae(this,Y,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o(this,Y,F);default:if($)throw new TypeError("Unknown encoding: "+G);G=(G+"").toLowerCase(),$=!0}}function A(G,Y,F){const $=G[Y];G[Y]=G[F],G[F]=$}function x(G,Y,F,$,D){if(G.length===0)return-1;if(typeof F=="string"?($=F,F=0):F>2147483647?F=2147483647:F<-2147483648&&(F=-2147483648),ve(F=+F)&&(F=D?0:G.length-1),F<0&&(F=G.length+F),F>=G.length){if(D)return-1;F=G.length-1}else if(F<0){if(!D)return-1;F=0}if(typeof Y=="string"&&(Y=c.from(Y,$)),c.isBuffer(Y))return Y.length===0?-1:j(G,Y,F,$,D);if(typeof Y=="number")return Y&=255,typeof Uint8Array.prototype.indexOf=="function"?D?Uint8Array.prototype.indexOf.call(G,Y,F):Uint8Array.prototype.lastIndexOf.call(G,Y,F):j(G,[Y],F,$,D);throw new TypeError("val must be string, number or Buffer")}function j(G,Y,F,$,D){let Q,he=1,le=G.length,pe=Y.length;if($!==void 0&&(($=String($).toLowerCase())==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(G.length<2||Y.length<2)return-1;he=2,le/=2,pe/=2,F/=2}function it(_e,Te){return he===1?_e[Te]:_e.readUInt16BE(Te*he)}if(D){let _e=-1;for(Q=F;Q<le;Q++)if(it(G,Q)===it(Y,_e===-1?0:Q-_e)){if(_e===-1&&(_e=Q),Q-_e+1===pe)return _e*he}else _e!==-1&&(Q-=Q-_e),_e=-1}else for(F+pe>le&&(F=le-pe),Q=F;Q>=0;Q--){let _e=!0;for(let Te=0;Te<pe;Te++)if(it(G,Q+Te)!==it(Y,Te)){_e=!1;break}if(_e)return Q}return-1}function P(G,Y,F,$){F=Number(F)||0;const D=G.length-F;$?($=Number($))>D&&($=D):$=D;const Q=Y.length;let he;for($>Q/2&&($=Q/2),he=0;he<$;++he){const le=parseInt(Y.substr(2*he,2),16);if(ve(le))return he;G[F+he]=le}return he}function B(G,Y,F,$){return ke(ne(Y,G.length-F),G,F,$)}function z(G,Y,F,$){return ke(function(D){const Q=[];for(let he=0;he<D.length;++he)Q.push(255&D.charCodeAt(he));return Q}(Y),G,F,$)}function ee(G,Y,F,$){return ke(ce(Y),G,F,$)}function J(G,Y,F,$){return ke(function(D,Q){let he,le,pe;const it=[];for(let _e=0;_e<D.length&&!((Q-=2)<0);++_e)he=D.charCodeAt(_e),le=he>>8,pe=he%256,it.push(pe),it.push(le);return it}(Y,G.length-F),G,F,$)}function ae(G,Y,F){return Y===0&&F===G.length?w.fromByteArray(G):w.fromByteArray(G.slice(Y,F))}function e(G,Y,F){F=Math.min(G.length,F);const $=[];let D=Y;for(;D<F;){const Q=G[D];let he=null,le=Q>239?4:Q>223?3:Q>191?2:1;if(D+le<=F){let pe,it,_e,Te;switch(le){case 1:Q<128&&(he=Q);break;case 2:pe=G[D+1],(192&pe)==128&&(Te=(31&Q)<<6|63&pe,Te>127&&(he=Te));break;case 3:pe=G[D+1],it=G[D+2],(192&pe)==128&&(192&it)==128&&(Te=(15&Q)<<12|(63&pe)<<6|63&it,Te>2047&&(Te<55296||Te>57343)&&(he=Te));break;case 4:pe=G[D+1],it=G[D+2],_e=G[D+3],(192&pe)==128&&(192&it)==128&&(192&_e)==128&&(Te=(15&Q)<<18|(63&pe)<<12|(63&it)<<6|63&_e,Te>65535&&Te<1114112&&(he=Te))}}he===null?(he=65533,le=1):he>65535&&(he-=65536,$.push(he>>>10&1023|55296),he=56320|1023&he),$.push(he),D+=le}return function(Q){const he=Q.length;if(he<=r)return String.fromCharCode.apply(String,Q);let le="",pe=0;for(;pe<he;)le+=String.fromCharCode.apply(String,Q.slice(pe,pe+=r));return le}($)}S.kMaxLength=s,c.TYPED_ARRAY_SUPPORT=function(){try{const G=new Uint8Array(1),Y={foo:function(){return 42}};return Object.setPrototypeOf(Y,Uint8Array.prototype),Object.setPrototypeOf(G,Y),G.foo()===42}catch(G){return!1}}(),c.TYPED_ARRAY_SUPPORT||k===void 0||typeof k.error!="function"||k.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(G,Y,F){return l(G,Y,F)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(G,Y,F){return function($,D,Q){return f($),$<=0?p($):D!==void 0?typeof Q=="string"?p($).fill(D,Q):p($).fill(D):p($)}(G,Y,F)},c.allocUnsafe=function(G){return m(G)},c.allocUnsafeSlow=function(G){return m(G)},c.isBuffer=function(G){return G!=null&&G._isBuffer===!0&&G!==c.prototype},c.compare=function(G,Y){if(me(G,Uint8Array)&&(G=c.from(G,G.offset,G.byteLength)),me(Y,Uint8Array)&&(Y=c.from(Y,Y.offset,Y.byteLength)),!c.isBuffer(G)||!c.isBuffer(Y))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(G===Y)return 0;let F=G.length,$=Y.length;for(let D=0,Q=Math.min(F,$);D<Q;++D)if(G[D]!==Y[D]){F=G[D],$=Y[D];break}return F<$?-1:$<F?1:0},c.isEncoding=function(G){switch(String(G).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(G,Y){if(!Array.isArray(G))throw new TypeError('"list" argument must be an Array of Buffers');if(G.length===0)return c.alloc(0);let F;if(Y===void 0)for(Y=0,F=0;F<G.length;++F)Y+=G[F].length;const $=c.allocUnsafe(Y);let D=0;for(F=0;F<G.length;++F){let Q=G[F];if(me(Q,Uint8Array))D+Q.length>$.length?(c.isBuffer(Q)||(Q=c.from(Q)),Q.copy($,D)):Uint8Array.prototype.set.call($,Q,D);else{if(!c.isBuffer(Q))throw new TypeError('"list" argument must be an Array of Buffers');Q.copy($,D)}D+=Q.length}return $},c.byteLength=v,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const G=this.length;if(G%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Y=0;Y<G;Y+=2)A(this,Y,Y+1);return this},c.prototype.swap32=function(){const G=this.length;if(G%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let Y=0;Y<G;Y+=4)A(this,Y,Y+3),A(this,Y+1,Y+2);return this},c.prototype.swap64=function(){const G=this.length;if(G%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let Y=0;Y<G;Y+=8)A(this,Y,Y+7),A(this,Y+1,Y+6),A(this,Y+2,Y+5),A(this,Y+3,Y+4);return this},c.prototype.toString=function(){const G=this.length;return G===0?"":arguments.length===0?e(this,0,G):_.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(G){if(!c.isBuffer(G))throw new TypeError("Argument must be a Buffer");return this===G||c.compare(this,G)===0},c.prototype.inspect=function(){let G="";const Y=S.INSPECT_MAX_BYTES;return G=this.toString("hex",0,Y).replace(/(.{2})/g,"$1 ").trim(),this.length>Y&&(G+=" ... "),"<Buffer "+G+">"},M&&(c.prototype[M]=c.prototype.inspect),c.prototype.compare=function(G,Y,F,$,D){if(me(G,Uint8Array)&&(G=c.from(G,G.offset,G.byteLength)),!c.isBuffer(G))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof G);if(Y===void 0&&(Y=0),F===void 0&&(F=G?G.length:0),$===void 0&&($=0),D===void 0&&(D=this.length),Y<0||F>G.length||$<0||D>this.length)throw new RangeError("out of range index");if($>=D&&Y>=F)return 0;if($>=D)return-1;if(Y>=F)return 1;if(this===G)return 0;let Q=(D>>>=0)-($>>>=0),he=(F>>>=0)-(Y>>>=0);const le=Math.min(Q,he),pe=this.slice($,D),it=G.slice(Y,F);for(let _e=0;_e<le;++_e)if(pe[_e]!==it[_e]){Q=pe[_e],he=it[_e];break}return Q<he?-1:he<Q?1:0},c.prototype.includes=function(G,Y,F){return this.indexOf(G,Y,F)!==-1},c.prototype.indexOf=function(G,Y,F){return x(this,G,Y,F,!0)},c.prototype.lastIndexOf=function(G,Y,F){return x(this,G,Y,F,!1)},c.prototype.write=function(G,Y,F,$){if(Y===void 0)$="utf8",F=this.length,Y=0;else if(F===void 0&&typeof Y=="string")$=Y,F=this.length,Y=0;else{if(!isFinite(Y))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");Y>>>=0,isFinite(F)?(F>>>=0,$===void 0&&($="utf8")):($=F,F=void 0)}const D=this.length-Y;if((F===void 0||F>D)&&(F=D),G.length>0&&(F<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");let Q=!1;for(;;)switch($){case"hex":return P(this,G,Y,F);case"utf8":case"utf-8":return B(this,G,Y,F);case"ascii":case"latin1":case"binary":return z(this,G,Y,F);case"base64":return ee(this,G,Y,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,G,Y,F);default:if(Q)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),Q=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const r=4096;function i(G,Y,F){let $="";F=Math.min(G.length,F);for(let D=Y;D<F;++D)$+=String.fromCharCode(127&G[D]);return $}function n(G,Y,F){let $="";F=Math.min(G.length,F);for(let D=Y;D<F;++D)$+=String.fromCharCode(G[D]);return $}function t(G,Y,F){const $=G.length;(!Y||Y<0)&&(Y=0),(!F||F<0||F>$)&&(F=$);let D="";for(let Q=Y;Q<F;++Q)D+=je[G[Q]];return D}function o(G,Y,F){const $=G.slice(Y,F);let D="";for(let Q=0;Q<$.length-1;Q+=2)D+=String.fromCharCode($[Q]+256*$[Q+1]);return D}function a(G,Y,F){if(G%1!=0||G<0)throw new RangeError("offset is not uint");if(G+Y>F)throw new RangeError("Trying to access beyond buffer length")}function T(G,Y,F,$,D,Q){if(!c.isBuffer(G))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>D||Y<Q)throw new RangeError('"value" argument is out of bounds');if(F+$>G.length)throw new RangeError("Index out of range")}function C(G,Y,F,$,D){X(Y,$,D,G,F,7);let Q=Number(Y&BigInt(4294967295));G[F++]=Q,Q>>=8,G[F++]=Q,Q>>=8,G[F++]=Q,Q>>=8,G[F++]=Q;let he=Number(Y>>BigInt(32)&BigInt(4294967295));return G[F++]=he,he>>=8,G[F++]=he,he>>=8,G[F++]=he,he>>=8,G[F++]=he,F}function N(G,Y,F,$,D){X(Y,$,D,G,F,7);let Q=Number(Y&BigInt(4294967295));G[F+7]=Q,Q>>=8,G[F+6]=Q,Q>>=8,G[F+5]=Q,Q>>=8,G[F+4]=Q;let he=Number(Y>>BigInt(32)&BigInt(4294967295));return G[F+3]=he,he>>=8,G[F+2]=he,he>>=8,G[F+1]=he,he>>=8,G[F]=he,F+8}function I(G,Y,F,$,D,Q){if(F+$>G.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("Index out of range")}function R(G,Y,F,$,D){return Y=+Y,F>>>=0,D||I(G,0,F,4),g.write(G,Y,F,$,23,4),F+4}function q(G,Y,F,$,D){return Y=+Y,F>>>=0,D||I(G,0,F,8),g.write(G,Y,F,$,52,8),F+8}c.prototype.slice=function(G,Y){const F=this.length;(G=~~G)<0?(G+=F)<0&&(G=0):G>F&&(G=F),(Y=Y===void 0?F:~~Y)<0?(Y+=F)<0&&(Y=0):Y>F&&(Y=F),Y<G&&(Y=G);const $=this.subarray(G,Y);return Object.setPrototypeOf($,c.prototype),$},c.prototype.readUintLE=c.prototype.readUIntLE=function(G,Y,F){G>>>=0,Y>>>=0,F||a(G,Y,this.length);let $=this[G],D=1,Q=0;for(;++Q<Y&&(D*=256);)$+=this[G+Q]*D;return $},c.prototype.readUintBE=c.prototype.readUIntBE=function(G,Y,F){G>>>=0,Y>>>=0,F||a(G,Y,this.length);let $=this[G+--Y],D=1;for(;Y>0&&(D*=256);)$+=this[G+--Y]*D;return $},c.prototype.readUint8=c.prototype.readUInt8=function(G,Y){return G>>>=0,Y||a(G,1,this.length),this[G]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(G,Y){return G>>>=0,Y||a(G,2,this.length),this[G]|this[G+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(G,Y){return G>>>=0,Y||a(G,2,this.length),this[G]<<8|this[G+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(G,Y){return G>>>=0,Y||a(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+16777216*this[G+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(G,Y){return G>>>=0,Y||a(G,4,this.length),16777216*this[G]+(this[G+1]<<16|this[G+2]<<8|this[G+3])},c.prototype.readBigUInt64LE=we(function(G){U(G>>>=0,"offset");const Y=this[G],F=this[G+7];Y!==void 0&&F!==void 0||K(G,this.length-8);const $=Y+256*this[++G]+65536*this[++G]+this[++G]*xn(2,24),D=this[++G]+256*this[++G]+65536*this[++G]+F*xn(2,24);return BigInt($)+(BigInt(D)<<BigInt(32))}),c.prototype.readBigUInt64BE=we(function(G){U(G>>>=0,"offset");const Y=this[G],F=this[G+7];Y!==void 0&&F!==void 0||K(G,this.length-8);const $=Y*xn(2,24)+65536*this[++G]+256*this[++G]+this[++G],D=this[++G]*xn(2,24)+65536*this[++G]+256*this[++G]+F;return(BigInt($)<<BigInt(32))+BigInt(D)}),c.prototype.readIntLE=function(G,Y,F){G>>>=0,Y>>>=0,F||a(G,Y,this.length);let $=this[G],D=1,Q=0;for(;++Q<Y&&(D*=256);)$+=this[G+Q]*D;return D*=128,$>=D&&($-=Math.pow(2,8*Y)),$},c.prototype.readIntBE=function(G,Y,F){G>>>=0,Y>>>=0,F||a(G,Y,this.length);let $=Y,D=1,Q=this[G+--$];for(;$>0&&(D*=256);)Q+=this[G+--$]*D;return D*=128,Q>=D&&(Q-=Math.pow(2,8*Y)),Q},c.prototype.readInt8=function(G,Y){return G>>>=0,Y||a(G,1,this.length),128&this[G]?-1*(255-this[G]+1):this[G]},c.prototype.readInt16LE=function(G,Y){G>>>=0,Y||a(G,2,this.length);const F=this[G]|this[G+1]<<8;return 32768&F?4294901760|F:F},c.prototype.readInt16BE=function(G,Y){G>>>=0,Y||a(G,2,this.length);const F=this[G+1]|this[G]<<8;return 32768&F?4294901760|F:F},c.prototype.readInt32LE=function(G,Y){return G>>>=0,Y||a(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},c.prototype.readInt32BE=function(G,Y){return G>>>=0,Y||a(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},c.prototype.readBigInt64LE=we(function(G){U(G>>>=0,"offset");const Y=this[G],F=this[G+7];Y!==void 0&&F!==void 0||K(G,this.length-8);const $=this[G+4]+256*this[G+5]+65536*this[G+6]+(F<<24);return(BigInt($)<<BigInt(32))+BigInt(Y+256*this[++G]+65536*this[++G]+this[++G]*16777216)}),c.prototype.readBigInt64BE=we(function(G){U(G>>>=0,"offset");const Y=this[G],F=this[G+7];Y!==void 0&&F!==void 0||K(G,this.length-8);const $=(Y<<24)+65536*this[++G]+256*this[++G]+this[++G];return(BigInt($)<<BigInt(32))+BigInt(this[++G]*16777216+65536*this[++G]+256*this[++G]+F)}),c.prototype.readFloatLE=function(G,Y){return G>>>=0,Y||a(G,4,this.length),g.read(this,G,!0,23,4)},c.prototype.readFloatBE=function(G,Y){return G>>>=0,Y||a(G,4,this.length),g.read(this,G,!1,23,4)},c.prototype.readDoubleLE=function(G,Y){return G>>>=0,Y||a(G,8,this.length),g.read(this,G,!0,52,8)},c.prototype.readDoubleBE=function(G,Y){return G>>>=0,Y||a(G,8,this.length),g.read(this,G,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(G,Y,F,$){G=+G,Y>>>=0,F>>>=0,$||T(this,G,Y,F,Math.pow(2,8*F)-1,0);let D=1,Q=0;for(this[Y]=255&G;++Q<F&&(D*=256);)this[Y+Q]=G/D&255;return Y+F},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(G,Y,F,$){G=+G,Y>>>=0,F>>>=0,$||T(this,G,Y,F,Math.pow(2,8*F)-1,0);let D=F-1,Q=1;for(this[Y+D]=255&G;--D>=0&&(Q*=256);)this[Y+D]=G/Q&255;return Y+F},c.prototype.writeUint8=c.prototype.writeUInt8=function(G,Y,F){return G=+G,Y>>>=0,F||T(this,G,Y,1,255,0),this[Y]=255&G,Y+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(G,Y,F){return G=+G,Y>>>=0,F||T(this,G,Y,2,65535,0),this[Y]=255&G,this[Y+1]=G>>>8,Y+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(G,Y,F){return G=+G,Y>>>=0,F||T(this,G,Y,2,65535,0),this[Y]=G>>>8,this[Y+1]=255&G,Y+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(G,Y,F){return G=+G,Y>>>=0,F||T(this,G,Y,4,4294967295,0),this[Y+3]=G>>>24,this[Y+2]=G>>>16,this[Y+1]=G>>>8,this[Y]=255&G,Y+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(G,Y,F){return G=+G,Y>>>=0,F||T(this,G,Y,4,4294967295,0),this[Y]=G>>>24,this[Y+1]=G>>>16,this[Y+2]=G>>>8,this[Y+3]=255&G,Y+4},c.prototype.writeBigUInt64LE=we(function(G,Y=0){return C(this,G,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=we(function(G,Y=0){return N(this,G,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(G,Y,F,$){if(G=+G,Y>>>=0,!$){const le=Math.pow(2,8*F-1);T(this,G,Y,F,le-1,-le)}let D=0,Q=1,he=0;for(this[Y]=255&G;++D<F&&(Q*=256);)G<0&&he===0&&this[Y+D-1]!==0&&(he=1),this[Y+D]=(G/Q>>0)-he&255;return Y+F},c.prototype.writeIntBE=function(G,Y,F,$){if(G=+G,Y>>>=0,!$){const le=Math.pow(2,8*F-1);T(this,G,Y,F,le-1,-le)}let D=F-1,Q=1,he=0;for(this[Y+D]=255&G;--D>=0&&(Q*=256);)G<0&&he===0&&this[Y+D+1]!==0&&(he=1),this[Y+D]=(G/Q>>0)-he&255;return Y+F},c.prototype.writeInt8=function(G,Y,F){return G=+G,Y>>>=0,F||T(this,G,Y,1,127,-128),G<0&&(G=255+G+1),this[Y]=255&G,Y+1},c.prototype.writeInt16LE=function(G,Y,F){return G=+G,Y>>>=0,F||T(this,G,Y,2,32767,-32768),this[Y]=255&G,this[Y+1]=G>>>8,Y+2},c.prototype.writeInt16BE=function(G,Y,F){return G=+G,Y>>>=0,F||T(this,G,Y,2,32767,-32768),this[Y]=G>>>8,this[Y+1]=255&G,Y+2},c.prototype.writeInt32LE=function(G,Y,F){return G=+G,Y>>>=0,F||T(this,G,Y,4,2147483647,-2147483648),this[Y]=255&G,this[Y+1]=G>>>8,this[Y+2]=G>>>16,this[Y+3]=G>>>24,Y+4},c.prototype.writeInt32BE=function(G,Y,F){return G=+G,Y>>>=0,F||T(this,G,Y,4,2147483647,-2147483648),G<0&&(G=4294967295+G+1),this[Y]=G>>>24,this[Y+1]=G>>>16,this[Y+2]=G>>>8,this[Y+3]=255&G,Y+4},c.prototype.writeBigInt64LE=we(function(G,Y=0){return C(this,G,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=we(function(G,Y=0){return N(this,G,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(G,Y,F){return R(this,G,Y,!0,F)},c.prototype.writeFloatBE=function(G,Y,F){return R(this,G,Y,!1,F)},c.prototype.writeDoubleLE=function(G,Y,F){return q(this,G,Y,!0,F)},c.prototype.writeDoubleBE=function(G,Y,F){return q(this,G,Y,!1,F)},c.prototype.copy=function(G,Y,F,$){if(!c.isBuffer(G))throw new TypeError("argument should be a Buffer");if(F||(F=0),$||$===0||($=this.length),Y>=G.length&&(Y=G.length),Y||(Y=0),$>0&&$<F&&($=F),$===F||G.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if(F<0||F>=this.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),G.length-Y<$-F&&($=G.length-Y+F);const D=$-F;return this===G&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Y,F,$):Uint8Array.prototype.set.call(G,this.subarray(F,$),Y),D},c.prototype.fill=function(G,Y,F,$){if(typeof G=="string"){if(typeof Y=="string"?($=Y,Y=0,F=this.length):typeof F=="string"&&($=F,F=this.length),$!==void 0&&typeof $!="string")throw new TypeError("encoding must be a string");if(typeof $=="string"&&!c.isEncoding($))throw new TypeError("Unknown encoding: "+$);if(G.length===1){const Q=G.charCodeAt(0);($==="utf8"&&Q<128||$==="latin1")&&(G=Q)}}else typeof G=="number"?G&=255:typeof G=="boolean"&&(G=Number(G));if(Y<0||this.length<Y||this.length<F)throw new RangeError("Out of range index");if(F<=Y)return this;let D;if(Y>>>=0,F=F===void 0?this.length:F>>>0,G||(G=0),typeof G=="number")for(D=Y;D<F;++D)this[D]=G;else{const Q=c.isBuffer(G)?G:c.from(G,$),he=Q.length;if(he===0)throw new TypeError('The value "'+G+'" is invalid for argument "value"');for(D=0;D<F-Y;++D)this[D+Y]=Q[D%he]}return this};const Z={};function te(G,Y,F){Z[G]=class extends F{constructor(){super(),Object.defineProperty(this,"message",{value:Y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${G}]`,this.stack,delete this.name}get code(){return G}set code($){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:$,writable:!0})}toString(){return`${this.name} [${G}]: ${this.message}`}}}function L(G){let Y="",F=G.length;const $=G[0]==="-"?1:0;for(;F>=$+4;F-=3)Y=`_${G.slice(F-3,F)}${Y}`;return`${G.slice(0,F)}${Y}`}function X(G,Y,F,$,D,Q){if(G>F||G<Y){const he=typeof Y=="bigint"?"n":"";let le;throw le=Q>3?Y===0||Y===BigInt(0)?`>= 0${he} and < 2${he} ** ${8*(Q+1)}${he}`:`>= -(2${he} ** ${8*(Q+1)-1}${he}) and < 2 ** ${8*(Q+1)-1}${he}`:`>= ${Y}${he} and <= ${F}${he}`,new Z.ERR_OUT_OF_RANGE("value",le,G)}(function(he,le,pe){U(le,"offset"),he[le]!==void 0&&he[le+pe]!==void 0||K(le,he.length-(pe+1))})($,D,Q)}function U(G,Y){if(typeof G!="number")throw new Z.ERR_INVALID_ARG_TYPE(Y,"number",G)}function K(G,Y,F){throw Math.floor(G)!==G?(U(G,F),new Z.ERR_OUT_OF_RANGE(F||"offset","an integer",G)):Y<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE(F||"offset",`>= ${F?1:0} and <= ${Y}`,G)}te("ERR_BUFFER_OUT_OF_BOUNDS",function(G){return G?`${G} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),te("ERR_INVALID_ARG_TYPE",function(G,Y){return`The "${G}" argument must be of type number. Received type ${typeof Y}`},TypeError),te("ERR_OUT_OF_RANGE",function(G,Y,F){let $=`The value of "${G}" is out of range.`,D=F;return Number.isInteger(F)&&Math.abs(F)>4294967296?D=L(String(F)):typeof F=="bigint"&&(D=String(F),(F>xn(BigInt(2),BigInt(32))||F<-xn(BigInt(2),BigInt(32)))&&(D=L(D)),D+="n"),$+=` It must be ${Y}. Received ${D}`,$},RangeError);const se=/[^+/0-9A-Za-z-_]/g;function ne(G,Y){let F;Y=Y||1/0;const $=G.length;let D=null;const Q=[];for(let he=0;he<$;++he){if(F=G.charCodeAt(he),F>55295&&F<57344){if(!D){if(F>56319){(Y-=3)>-1&&Q.push(239,191,189);continue}if(he+1===$){(Y-=3)>-1&&Q.push(239,191,189);continue}D=F;continue}if(F<56320){(Y-=3)>-1&&Q.push(239,191,189),D=F;continue}F=65536+(D-55296<<10|F-56320)}else D&&(Y-=3)>-1&&Q.push(239,191,189);if(D=null,F<128){if((Y-=1)<0)break;Q.push(F)}else if(F<2048){if((Y-=2)<0)break;Q.push(F>>6|192,63&F|128)}else if(F<65536){if((Y-=3)<0)break;Q.push(F>>12|224,F>>6&63|128,63&F|128)}else{if(!(F<1114112))throw new Error("Invalid code point");if((Y-=4)<0)break;Q.push(F>>18|240,F>>12&63|128,F>>6&63|128,63&F|128)}}return Q}function ce(G){return w.toByteArray(function(Y){if((Y=(Y=Y.split("=")[0]).trim().replace(se,"")).length<2)return"";for(;Y.length%4!=0;)Y+="=";return Y}(G))}function ke(G,Y,F,$){let D;for(D=0;D<$&&!(D+F>=Y.length||D>=G.length);++D)Y[D+F]=G[D];return D}function me(G,Y){return G instanceof Y||G!=null&&G.constructor!=null&&G.constructor.name!=null&&G.constructor.name===Y.name}function ve(G){return G!=G}const je=function(){const G="0123456789abcdef",Y=new Array(256);for(let F=0;F<16;++F){const $=16*F;for(let D=0;D<16;++D)Y[$+D]=G[F]+G[D]}return Y}();function we(G){return typeof BigInt=="undefined"?Ae:G}function Ae(){throw new Error("BigInt not supported")}},584:W=>{W.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:(W,S,y)=>{var k=y(210),w=y(5559),g=w(k("String.prototype.indexOf"));W.exports=function(M,s){var p=k(M,!!s);return typeof p=="function"&&g(M,".prototype.")>-1?w(p):p}},5559:(W,S,y)=>{var k=y(8612),w=y(210),g=w("%Function.prototype.apply%"),M=w("%Function.prototype.call%"),s=w("%Reflect.apply%",!0)||k.call(M,g),p=w("%Object.getOwnPropertyDescriptor%",!0),c=w("%Object.defineProperty%",!0),l=w("%Math.max%");if(c)try{c({},"a",{value:1})}catch(m){c=null}W.exports=function(m){var h=s(k,M,arguments);return p&&c&&p(h,"length").configurable&&c(h,"length",{value:1+l(0,m.length-(arguments.length-1))}),h};var f=function(){return s(k,g,arguments)};c?c(W.exports,"apply",{value:f}):W.exports.apply=f},1027:(W,S,y)=>{var k=y(9509).Buffer,w=y(2830).Transform,g=y(2553).s;function M(s){w.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)(M,w),M.prototype.update=function(s,p,c){typeof s=="string"&&(s=k.from(s,p));var l=this._update(s);return this.hashMode?this:(c&&(l=this._toString(l,c)),l)},M.prototype.setAutoPadding=function(){},M.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},M.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},M.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},M.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)}},M.prototype._flush=function(s){var p;try{this.push(this.__final())}catch(c){p=c}s(p)},M.prototype._finalOrDigest=function(s){var p=this.__final()||k.alloc(0);return s&&(p=this._toString(p,s,!0)),p},M.prototype._toString=function(s,p,c){if(this._decoder||(this._decoder=new g(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},W.exports=M},5108:(W,S,y)=>{var k=y(9539),w=y(9282);function g(){return new Date().getTime()}var M,s=Array.prototype.slice,p={};M=y.g!==void 0&&y.g.console?y.g.console:typeof window!="undefined"&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){M.log.apply(M,arguments)},"info"],[function(){M.log.apply(M,arguments)},"warn"],[function(){M.warn.apply(M,arguments)},"error"],[function(u){p[u]=g()},"time"],[function(u){var b=p[u];if(!b)throw new Error("No such label: "+u);delete p[u];var v=g()-b;M.log(u+": "+v+"ms")},"timeEnd"],[function(){var u=new Error;u.name="Trace",u.message=k.format.apply(null,arguments),M.error(u.stack)},"trace"],[function(u){M.log(k.inspect(u)+`
|
|
55
|
+
`)},"dir"],[function(u){if(!u){var b=s.call(arguments,1);w.ok(!1,k.format.apply(null,b))}},"assert"]],l=0;l<c.length;l++){var f=c[l],m=f[0],h=f[1];M[h]||(M[h]=m)}W.exports=M},6393:(W,S,y)=>{var k=y(8764).Buffer,w=y(6266),g=y(6426);W.exports=function(c){return new s(c)};var M={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=M[c],this.curveType||(this.curveType={name:c}),this.curve=new w.ec(this.curveType.name),this.keys=void 0}function p(c,l,f){Array.isArray(c)||(c=c.toArray());var m=new k(c);if(f&&m.length<f){var h=new k(f-m.length);h.fill(0),m=k.concat([h,m])}return l?m.toString(l):m}M.p224=M.secp224r1,M.p256=M.secp256r1=M.prime256v1,M.p192=M.secp192r1=M.prime192v1,M.p384=M.secp384r1,M.p521=M.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",k.isBuffer(c)||(c=new k(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",k.isBuffer(c)||(c=new k(c,l)),this.keys._importPublic(c),this},s.prototype.setPrivateKey=function(c,l){l=l||"utf8",k.isBuffer(c)||(c=new k(c,l));var f=new g(c);return f=f.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(f),this}},6426:function(W,S,y){(function(k,w){function g(e,r){if(!e)throw new Error(r||"Assertion failed")}function M(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 k=="object"?k.exports=s:w.BN=s,s.BN=s,s.wordSize=26;try{p=typeof window!="undefined"&&window.Buffer!==void 0?window.Buffer:y(8623).Buffer}catch(e){}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),g(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):(g(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(g(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 I=1;for(C=f(e,N,e.length,r),N=0;N<a;N++)I*=r;this.imuln(I),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 m=["","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 b(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 I=C>>>26,R=67108863&C,q=Math.min(N,r.length-1),Z=Math.max(0,N-e.length+1);Z<=q;Z++){var te=N-Z|0;I+=(a=(t=0|e.words[te])*(o=0|r.words[Z])+R)/67108864|0,R=67108863&a}i.words[N]=0|R,C=0|I}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?m[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 I=this.clone();for(I.negative=0;!I.isZero();){var R=I.modn(N).toString(e);i=(I=I.idivn(N)).isZero()?R+i:m[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}g(!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&&g(!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 g(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);g(n<=t,"byte array longer than desired length"),g(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 g((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 g((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 g((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){g(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){g(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 v=function(e,r,i){var n,t,o,a=e.words,T=r.words,C=i.words,N=0,I=0|a[0],R=8191&I,q=I>>>13,Z=0|a[1],te=8191&Z,L=Z>>>13,X=0|a[2],U=8191&X,K=X>>>13,se=0|a[3],ne=8191&se,ce=se>>>13,ke=0|a[4],me=8191&ke,ve=ke>>>13,je=0|a[5],we=8191&je,Ae=je>>>13,G=0|a[6],Y=8191&G,F=G>>>13,$=0|a[7],D=8191&$,Q=$>>>13,he=0|a[8],le=8191&he,pe=he>>>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,vt=0|T[3],Be=8191&vt,We=vt>>>13,St=0|T[4],Ne=8191&St,Ze=St>>>13,It=0|T[5],Le=8191&It,Xe=It>>>13,Lt=0|T[6],De=8191&Lt,Qe=Lt>>>13,zt=0|T[7],Fe=8191&zt,Je=zt>>>13,$t=0|T[8],qe=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(q,Se)|0))<<13)|0;N=((o=Math.imul(q,Ge))+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(te,Se),t=(t=Math.imul(te,Ge))+Math.imul(L,Se)|0,o=Math.imul(L,Ge);var Rt=(N+(n=n+Math.imul(R,Pe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ve)|0)+Math.imul(q,Pe)|0))<<13)|0;N=((o=o+Math.imul(q,Ve)|0)+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(U,Se),t=(t=Math.imul(U,Ge))+Math.imul(K,Se)|0,o=Math.imul(K,Ge),n=n+Math.imul(te,Pe)|0,t=(t=t+Math.imul(te,Ve)|0)+Math.imul(L,Pe)|0,o=o+Math.imul(L,Ve)|0;var Gt=(N+(n=n+Math.imul(R,Re)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ke)|0)+Math.imul(q,Re)|0))<<13)|0;N=((o=o+Math.imul(q,Ke)|0)+(t>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,n=Math.imul(ne,Se),t=(t=Math.imul(ne,Ge))+Math.imul(ce,Se)|0,o=Math.imul(ce,Ge),n=n+Math.imul(U,Pe)|0,t=(t=t+Math.imul(U,Ve)|0)+Math.imul(K,Pe)|0,o=o+Math.imul(K,Ve)|0,n=n+Math.imul(te,Re)|0,t=(t=t+Math.imul(te,Ke)|0)+Math.imul(L,Re)|0,o=o+Math.imul(L,Ke)|0;var cn=(N+(n=n+Math.imul(R,Be)|0)|0)+((8191&(t=(t=t+Math.imul(R,We)|0)+Math.imul(q,Be)|0))<<13)|0;N=((o=o+Math.imul(q,We)|0)+(t>>>13)|0)+(cn>>>26)|0,cn&=67108863,n=Math.imul(me,Se),t=(t=Math.imul(me,Ge))+Math.imul(ve,Se)|0,o=Math.imul(ve,Ge),n=n+Math.imul(ne,Pe)|0,t=(t=t+Math.imul(ne,Ve)|0)+Math.imul(ce,Pe)|0,o=o+Math.imul(ce,Ve)|0,n=n+Math.imul(U,Re)|0,t=(t=t+Math.imul(U,Ke)|0)+Math.imul(K,Re)|0,o=o+Math.imul(K,Ke)|0,n=n+Math.imul(te,Be)|0,t=(t=t+Math.imul(te,We)|0)+Math.imul(L,Be)|0,o=o+Math.imul(L,We)|0;var on=(N+(n=n+Math.imul(R,Ne)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ze)|0)+Math.imul(q,Ne)|0))<<13)|0;N=((o=o+Math.imul(q,Ze)|0)+(t>>>13)|0)+(on>>>26)|0,on&=67108863,n=Math.imul(we,Se),t=(t=Math.imul(we,Ge))+Math.imul(Ae,Se)|0,o=Math.imul(Ae,Ge),n=n+Math.imul(me,Pe)|0,t=(t=t+Math.imul(me,Ve)|0)+Math.imul(ve,Pe)|0,o=o+Math.imul(ve,Ve)|0,n=n+Math.imul(ne,Re)|0,t=(t=t+Math.imul(ne,Ke)|0)+Math.imul(ce,Re)|0,o=o+Math.imul(ce,Ke)|0,n=n+Math.imul(U,Be)|0,t=(t=t+Math.imul(U,We)|0)+Math.imul(K,Be)|0,o=o+Math.imul(K,We)|0,n=n+Math.imul(te,Ne)|0,t=(t=t+Math.imul(te,Ze)|0)+Math.imul(L,Ne)|0,o=o+Math.imul(L,Ze)|0;var ln=(N+(n=n+Math.imul(R,Le)|0)|0)+((8191&(t=(t=t+Math.imul(R,Xe)|0)+Math.imul(q,Le)|0))<<13)|0;N=((o=o+Math.imul(q,Xe)|0)+(t>>>13)|0)+(ln>>>26)|0,ln&=67108863,n=Math.imul(Y,Se),t=(t=Math.imul(Y,Ge))+Math.imul(F,Se)|0,o=Math.imul(F,Ge),n=n+Math.imul(we,Pe)|0,t=(t=t+Math.imul(we,Ve)|0)+Math.imul(Ae,Pe)|0,o=o+Math.imul(Ae,Ve)|0,n=n+Math.imul(me,Re)|0,t=(t=t+Math.imul(me,Ke)|0)+Math.imul(ve,Re)|0,o=o+Math.imul(ve,Ke)|0,n=n+Math.imul(ne,Be)|0,t=(t=t+Math.imul(ne,We)|0)+Math.imul(ce,Be)|0,o=o+Math.imul(ce,We)|0,n=n+Math.imul(U,Ne)|0,t=(t=t+Math.imul(U,Ze)|0)+Math.imul(K,Ne)|0,o=o+Math.imul(K,Ze)|0,n=n+Math.imul(te,Le)|0,t=(t=t+Math.imul(te,Xe)|0)+Math.imul(L,Le)|0,o=o+Math.imul(L,Xe)|0;var hn=(N+(n=n+Math.imul(R,De)|0)|0)+((8191&(t=(t=t+Math.imul(R,Qe)|0)+Math.imul(q,De)|0))<<13)|0;N=((o=o+Math.imul(q,Qe)|0)+(t>>>13)|0)+(hn>>>26)|0,hn&=67108863,n=Math.imul(D,Se),t=(t=Math.imul(D,Ge))+Math.imul(Q,Se)|0,o=Math.imul(Q,Ge),n=n+Math.imul(Y,Pe)|0,t=(t=t+Math.imul(Y,Ve)|0)+Math.imul(F,Pe)|0,o=o+Math.imul(F,Ve)|0,n=n+Math.imul(we,Re)|0,t=(t=t+Math.imul(we,Ke)|0)+Math.imul(Ae,Re)|0,o=o+Math.imul(Ae,Ke)|0,n=n+Math.imul(me,Be)|0,t=(t=t+Math.imul(me,We)|0)+Math.imul(ve,Be)|0,o=o+Math.imul(ve,We)|0,n=n+Math.imul(ne,Ne)|0,t=(t=t+Math.imul(ne,Ze)|0)+Math.imul(ce,Ne)|0,o=o+Math.imul(ce,Ze)|0,n=n+Math.imul(U,Le)|0,t=(t=t+Math.imul(U,Xe)|0)+Math.imul(K,Le)|0,o=o+Math.imul(K,Xe)|0,n=n+Math.imul(te,De)|0,t=(t=t+Math.imul(te,Qe)|0)+Math.imul(L,De)|0,o=o+Math.imul(L,Qe)|0;var fn=(N+(n=n+Math.imul(R,Fe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Je)|0)+Math.imul(q,Fe)|0))<<13)|0;N=((o=o+Math.imul(q,Je)|0)+(t>>>13)|0)+(fn>>>26)|0,fn&=67108863,n=Math.imul(le,Se),t=(t=Math.imul(le,Ge))+Math.imul(pe,Se)|0,o=Math.imul(pe,Ge),n=n+Math.imul(D,Pe)|0,t=(t=t+Math.imul(D,Ve)|0)+Math.imul(Q,Pe)|0,o=o+Math.imul(Q,Ve)|0,n=n+Math.imul(Y,Re)|0,t=(t=t+Math.imul(Y,Ke)|0)+Math.imul(F,Re)|0,o=o+Math.imul(F,Ke)|0,n=n+Math.imul(we,Be)|0,t=(t=t+Math.imul(we,We)|0)+Math.imul(Ae,Be)|0,o=o+Math.imul(Ae,We)|0,n=n+Math.imul(me,Ne)|0,t=(t=t+Math.imul(me,Ze)|0)+Math.imul(ve,Ne)|0,o=o+Math.imul(ve,Ze)|0,n=n+Math.imul(ne,Le)|0,t=(t=t+Math.imul(ne,Xe)|0)+Math.imul(ce,Le)|0,o=o+Math.imul(ce,Xe)|0,n=n+Math.imul(U,De)|0,t=(t=t+Math.imul(U,Qe)|0)+Math.imul(K,De)|0,o=o+Math.imul(K,Qe)|0,n=n+Math.imul(te,Fe)|0,t=(t=t+Math.imul(te,Je)|0)+Math.imul(L,Fe)|0,o=o+Math.imul(L,Je)|0;var pn=(N+(n=n+Math.imul(R,qe)|0)|0)+((8191&(t=(t=t+Math.imul(R,tt)|0)+Math.imul(q,qe)|0))<<13)|0;N=((o=o+Math.imul(q,tt)|0)+(t>>>13)|0)+(pn>>>26)|0,pn&=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(le,Pe)|0,t=(t=t+Math.imul(le,Ve)|0)+Math.imul(pe,Pe)|0,o=o+Math.imul(pe,Ve)|0,n=n+Math.imul(D,Re)|0,t=(t=t+Math.imul(D,Ke)|0)+Math.imul(Q,Re)|0,o=o+Math.imul(Q,Ke)|0,n=n+Math.imul(Y,Be)|0,t=(t=t+Math.imul(Y,We)|0)+Math.imul(F,Be)|0,o=o+Math.imul(F,We)|0,n=n+Math.imul(we,Ne)|0,t=(t=t+Math.imul(we,Ze)|0)+Math.imul(Ae,Ne)|0,o=o+Math.imul(Ae,Ze)|0,n=n+Math.imul(me,Le)|0,t=(t=t+Math.imul(me,Xe)|0)+Math.imul(ve,Le)|0,o=o+Math.imul(ve,Xe)|0,n=n+Math.imul(ne,De)|0,t=(t=t+Math.imul(ne,Qe)|0)+Math.imul(ce,De)|0,o=o+Math.imul(ce,Qe)|0,n=n+Math.imul(U,Fe)|0,t=(t=t+Math.imul(U,Je)|0)+Math.imul(K,Fe)|0,o=o+Math.imul(K,Je)|0,n=n+Math.imul(te,qe)|0,t=(t=t+Math.imul(te,tt)|0)+Math.imul(L,qe)|0,o=o+Math.imul(L,tt)|0;var dn=(N+(n=n+Math.imul(R,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(R,et)|0)+Math.imul(q,Ue)|0))<<13)|0;N=((o=o+Math.imul(q,et)|0)+(t>>>13)|0)+(dn>>>26)|0,dn&=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(le,Re)|0,t=(t=t+Math.imul(le,Ke)|0)+Math.imul(pe,Re)|0,o=o+Math.imul(pe,Ke)|0,n=n+Math.imul(D,Be)|0,t=(t=t+Math.imul(D,We)|0)+Math.imul(Q,Be)|0,o=o+Math.imul(Q,We)|0,n=n+Math.imul(Y,Ne)|0,t=(t=t+Math.imul(Y,Ze)|0)+Math.imul(F,Ne)|0,o=o+Math.imul(F,Ze)|0,n=n+Math.imul(we,Le)|0,t=(t=t+Math.imul(we,Xe)|0)+Math.imul(Ae,Le)|0,o=o+Math.imul(Ae,Xe)|0,n=n+Math.imul(me,De)|0,t=(t=t+Math.imul(me,Qe)|0)+Math.imul(ve,De)|0,o=o+Math.imul(ve,Qe)|0,n=n+Math.imul(ne,Fe)|0,t=(t=t+Math.imul(ne,Je)|0)+Math.imul(ce,Fe)|0,o=o+Math.imul(ce,Je)|0,n=n+Math.imul(U,qe)|0,t=(t=t+Math.imul(U,tt)|0)+Math.imul(K,qe)|0,o=o+Math.imul(K,tt)|0;var mn=(N+(n=n+Math.imul(te,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(te,et)|0)+Math.imul(L,Ue)|0))<<13)|0;N=((o=o+Math.imul(L,et)|0)+(t>>>13)|0)+(mn>>>26)|0,mn&=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(le,Be)|0,t=(t=t+Math.imul(le,We)|0)+Math.imul(pe,Be)|0,o=o+Math.imul(pe,We)|0,n=n+Math.imul(D,Ne)|0,t=(t=t+Math.imul(D,Ze)|0)+Math.imul(Q,Ne)|0,o=o+Math.imul(Q,Ze)|0,n=n+Math.imul(Y,Le)|0,t=(t=t+Math.imul(Y,Xe)|0)+Math.imul(F,Le)|0,o=o+Math.imul(F,Xe)|0,n=n+Math.imul(we,De)|0,t=(t=t+Math.imul(we,Qe)|0)+Math.imul(Ae,De)|0,o=o+Math.imul(Ae,Qe)|0,n=n+Math.imul(me,Fe)|0,t=(t=t+Math.imul(me,Je)|0)+Math.imul(ve,Fe)|0,o=o+Math.imul(ve,Je)|0,n=n+Math.imul(ne,qe)|0,t=(t=t+Math.imul(ne,tt)|0)+Math.imul(ce,qe)|0,o=o+Math.imul(ce,tt)|0;var Xt=(N+(n=n+Math.imul(U,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(U,et)|0)+Math.imul(K,Ue)|0))<<13)|0;N=((o=o+Math.imul(K,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(le,Ne)|0,t=(t=t+Math.imul(le,Ze)|0)+Math.imul(pe,Ne)|0,o=o+Math.imul(pe,Ze)|0,n=n+Math.imul(D,Le)|0,t=(t=t+Math.imul(D,Xe)|0)+Math.imul(Q,Le)|0,o=o+Math.imul(Q,Xe)|0,n=n+Math.imul(Y,De)|0,t=(t=t+Math.imul(Y,Qe)|0)+Math.imul(F,De)|0,o=o+Math.imul(F,Qe)|0,n=n+Math.imul(we,Fe)|0,t=(t=t+Math.imul(we,Je)|0)+Math.imul(Ae,Fe)|0,o=o+Math.imul(Ae,Je)|0,n=n+Math.imul(me,qe)|0,t=(t=t+Math.imul(me,tt)|0)+Math.imul(ve,qe)|0,o=o+Math.imul(ve,tt)|0;var gn=(N+(n=n+Math.imul(ne,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ne,et)|0)+Math.imul(ce,Ue)|0))<<13)|0;N=((o=o+Math.imul(ce,et)|0)+(t>>>13)|0)+(gn>>>26)|0,gn&=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(le,Le)|0,t=(t=t+Math.imul(le,Xe)|0)+Math.imul(pe,Le)|0,o=o+Math.imul(pe,Xe)|0,n=n+Math.imul(D,De)|0,t=(t=t+Math.imul(D,Qe)|0)+Math.imul(Q,De)|0,o=o+Math.imul(Q,Qe)|0,n=n+Math.imul(Y,Fe)|0,t=(t=t+Math.imul(Y,Je)|0)+Math.imul(F,Fe)|0,o=o+Math.imul(F,Je)|0,n=n+Math.imul(we,qe)|0,t=(t=t+Math.imul(we,tt)|0)+Math.imul(Ae,qe)|0,o=o+Math.imul(Ae,tt)|0;var bn=(N+(n=n+Math.imul(me,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(me,et)|0)+Math.imul(ve,Ue)|0))<<13)|0;N=((o=o+Math.imul(ve,et)|0)+(t>>>13)|0)+(bn>>>26)|0,bn&=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(le,De)|0,t=(t=t+Math.imul(le,Qe)|0)+Math.imul(pe,De)|0,o=o+Math.imul(pe,Qe)|0,n=n+Math.imul(D,Fe)|0,t=(t=t+Math.imul(D,Je)|0)+Math.imul(Q,Fe)|0,o=o+Math.imul(Q,Je)|0,n=n+Math.imul(Y,qe)|0,t=(t=t+Math.imul(Y,tt)|0)+Math.imul(F,qe)|0,o=o+Math.imul(F,tt)|0;var en=(N+(n=n+Math.imul(we,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(we,et)|0)+Math.imul(Ae,Ue)|0))<<13)|0;N=((o=o+Math.imul(Ae,et)|0)+(t>>>13)|0)+(en>>>26)|0,en&=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(le,Fe)|0,t=(t=t+Math.imul(le,Je)|0)+Math.imul(pe,Fe)|0,o=o+Math.imul(pe,Je)|0,n=n+Math.imul(D,qe)|0,t=(t=t+Math.imul(D,tt)|0)+Math.imul(Q,qe)|0,o=o+Math.imul(Q,tt)|0;var tn=(N+(n=n+Math.imul(Y,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(Y,et)|0)+Math.imul(F,Ue)|0))<<13)|0;N=((o=o+Math.imul(F,et)|0)+(t>>>13)|0)+(tn>>>26)|0,tn&=67108863,n=Math.imul(_e,Fe),t=(t=Math.imul(_e,Je))+Math.imul(Te,Fe)|0,o=Math.imul(Te,Je),n=n+Math.imul(le,qe)|0,t=(t=t+Math.imul(le,tt)|0)+Math.imul(pe,qe)|0,o=o+Math.imul(pe,tt)|0;var Jt=(N+(n=n+Math.imul(D,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(D,et)|0)+Math.imul(Q,Ue)|0))<<13)|0;N=((o=o+Math.imul(Q,et)|0)+(t>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,n=Math.imul(_e,qe),t=(t=Math.imul(_e,tt))+Math.imul(Te,qe)|0,o=Math.imul(Te,tt);var yn=(N+(n=n+Math.imul(le,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(le,et)|0)+Math.imul(pe,Ue)|0))<<13)|0;N=((o=o+Math.imul(pe,et)|0)+(t>>>13)|0)+(yn>>>26)|0,yn&=67108863;var sn=(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)+(sn>>>26)|0,sn&=67108863,C[0]=Tt,C[1]=Rt,C[2]=Gt,C[3]=cn,C[4]=on,C[5]=ln,C[6]=hn,C[7]=fn,C[8]=pn,C[9]=dn,C[10]=mn,C[11]=Xt,C[12]=gn,C[13]=bn,C[14]=en,C[15]=tn,C[16]=Jt,C[17]=yn,C[18]=sn,N!==0&&(C[19]=N,i.length++),i};function _(e,r,i){return new A().mulp(e,r,i)}function A(e,r){this.x=e,this.y=r}Math.imul||(v=b),s.prototype.mulTo=function(e,r){var i,n=this.length+e.length;return i=this.length===10&&e.length===10?v(this,e,r):n<63?b(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 I=C;C=0;for(var R=67108863&T,q=Math.min(N,o.length-1),Z=Math.max(0,N-t.length+1);Z<=q;Z++){var te=N-Z,L=(0|t.words[te])*(0|o.words[Z]),X=67108863&L;R=67108863&(X=X+R|0),C+=(I=(I=I+(L/67108864|0)|0)+(X>>>26)|0)>>>26,I&=67108863}a.words[N]=R,T=I,I=C}return T!==0?a.words[N]=T:a.length--,a.strip()}(this,e,r):_(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),I=0;I<t;I+=T)for(var R=C,q=N,Z=0;Z<a;Z++){var te=i[I+Z],L=n[I+Z],X=i[I+Z+a],U=n[I+Z+a],K=R*X-q*U;U=R*U+q*X,X=K,i[I+Z]=te+X,n[I+Z]=L+U,i[I+Z+a]=te-X,n[I+Z+a]=L-U,Z!==T&&(K=C*R-N*q,q=C*q+N*R,R=K)}},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;g(t===0),g((-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),I=new Array(n),R=new Array(n),q=i.words;q.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,I,R,n,t);for(var Z=0;Z<n;Z++){var te=T[Z]*I[Z]-C[Z]*R[Z];C[Z]=T[Z]*R[Z]+C[Z]*I[Z],T[Z]=te}return this.conjugate(T,C,n),this.transform(T,C,q,o,n,t),this.conjugate(q,o,n),this.normalize13b(q,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),_(this,e,r)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){g(typeof e=="number"),g(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){g(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 g(this.negative===0),this.iushln(e)},s.prototype.iushrn=function(e,r,i){var n;g(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 I=0|this.words[C];this.words[C]=N<<26-t|I>>>t,N=I&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 g(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){g(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){g(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(g(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 g(typeof e=="number"),g(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(g(typeof e=="number"),g(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(g(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 I=T-1;I>=0;I--){var R=67108864*(0|n.words[t.length+I])+(0|n.words[t.length+I-1]);for(R=Math.min(R/o|0,67108863),n._ishlnsubmul(t,R,I);n.negative!==0;)R--,n.negative=0,n._ishlnsubmul(t,1,I),n.isZero()||(n.negative^=1);a&&(a.words[I]=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 g(!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){g(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){g(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){g(e.negative===0),g(!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 I=0,R=1;!(r.words[0]&R)&&I<26;++I,R<<=1);if(I>0)for(r.iushrn(I);I-- >0;)(n.isOdd()||t.isOdd())&&(n.iadd(C),t.isub(N)),n.iushrn(1),t.iushrn(1);for(var q=0,Z=1;!(i.words[0]&Z)&&q<26;++q,Z<<=1);if(q>0)for(i.iushrn(q);q-- >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){g(e.negative===0),g(!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,I=1;!(i.words[0]&I)&&N<26;++N,I<<=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){g(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),g(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 g(!this.red,"Already a number in reduction context"),g(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return g(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 g(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return g(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 z(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ee(){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 g(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function ae(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)},M(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},M(B,j),M(z,j),M(ee,j),ee.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 z;else{if(e!=="p25519")throw new Error("Unknown prime "+e);r=new ee}return x[e]=r,r},J.prototype._verify1=function(e){g(e.negative===0,"red works only with positives"),g(e.red,"red works only with red numbers")},J.prototype._verify2=function(e,r){g((e.negative|r.negative)==0,"red works only with positives"),g(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(g(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);g(!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),I=this.pow(e,n.addn(1).iushrn(1)),R=this.pow(e,n),q=t;R.cmp(o)!==0;){for(var Z=R,te=0;Z.cmp(o)!==0;te++)Z=Z.redSqr();g(te<q);var L=this.pow(N,new s(1).iushln(q-te-1));I=I.redMul(L),N=L.redSqr(),R=R.redMul(N),q=te}return I},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 I=C>>N&1;t!==i[0]&&(t=this.sqr(t)),I!==0||o!==0?(o<<=1,o|=I,(++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 ae(e)},M(ae,J),ae.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},ae.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},ae.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)},ae.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)},ae.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(W=y.nmd(W),this)},3482:(W,S,y)=>{var k=y(5717),w=y(2318),g=y(9785),M=y(9072),s=y(1027);function p(c){s.call(this,"digest"),this._hash=c}k(p,s),p.prototype._update=function(c){this._hash.update(c)},p.prototype._final=function(){return this._hash.digest()},W.exports=function(c){return(c=c.toLowerCase())==="md5"?new w:c==="rmd160"||c==="ripemd160"?new g:new p(M(c))}},8028:(W,S,y)=>{var k=y(2318);W.exports=function(w){return new k().update(w).digest()}},8355:(W,S,y)=>{var k=y(5717),w=y(1031),g=y(1027),M=y(9509).Buffer,s=y(8028),p=y(9785),c=y(9072),l=M.alloc(128);function f(m,h){g.call(this,"digest"),typeof h=="string"&&(h=M.from(h));var u=m==="sha512"||m==="sha384"?128:64;this._alg=m,this._key=h,h.length>u?h=(m==="rmd160"?new p:c(m)).update(h).digest():h.length<u&&(h=M.concat([h,l],u));for(var b=this._ipad=M.allocUnsafe(u),v=this._opad=M.allocUnsafe(u),_=0;_<u;_++)b[_]=54^h[_],v[_]=92^h[_];this._hash=m==="rmd160"?new p:c(m),this._hash.update(b)}k(f,g),f.prototype._update=function(m){this._hash.update(m)},f.prototype._final=function(){var m=this._hash.digest();return(this._alg==="rmd160"?new p:c(this._alg)).update(this._opad).update(m).digest()},W.exports=function(m,h){return(m=m.toLowerCase())==="rmd160"||m==="ripemd160"?new f("rmd160",h):m==="md5"?new w(s,h):new f(m,h)}},1031:(W,S,y)=>{var k=y(5717),w=y(9509).Buffer,g=y(1027),M=w.alloc(128),s=64;function p(c,l){g.call(this,"digest"),typeof l=="string"&&(l=w.from(l)),this._alg=c,this._key=l,l.length>s?l=c(l):l.length<s&&(l=w.concat([l,M],s));for(var f=this._ipad=w.allocUnsafe(s),m=this._opad=w.allocUnsafe(s),h=0;h<s;h++)f[h]=54^l[h],m[h]=92^l[h];this._hash=[f]}k(p,g),p.prototype._update=function(c){this._hash.push(c)},p.prototype._final=function(){var c=this._alg(w.concat(this._hash));return this._alg(w.concat([this._opad,c]))},W.exports=p},5835:(W,S,y)=>{S.randomBytes=S.rng=S.pseudoRandomBytes=S.prng=y(1798),S.createHash=S.Hash=y(3482),S.createHmac=S.Hmac=y(8355);var k=y(6042),w=Object.keys(k),g=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(w);S.getHashes=function(){return g};var M=y(5632);S.pbkdf2=M.pbkdf2,S.pbkdf2Sync=M.pbkdf2Sync;var s=y(3614);S.Cipher=s.Cipher,S.createCipher=s.createCipher,S.Cipheriv=s.Cipheriv,S.createCipheriv=s.createCipheriv,S.Decipher=s.Decipher,S.createDecipher=s.createDecipher,S.Decipheriv=s.Decipheriv,S.createDecipheriv=s.createDecipheriv,S.getCiphers=s.getCiphers,S.listCiphers=s.listCiphers;var p=y(2607);S.DiffieHellmanGroup=p.DiffieHellmanGroup,S.createDiffieHellmanGroup=p.createDiffieHellmanGroup,S.getDiffieHellman=p.getDiffieHellman,S.createDiffieHellman=p.createDiffieHellman,S.DiffieHellman=p.DiffieHellman;var c=y(4743);S.createSign=c.createSign,S.Sign=c.Sign,S.createVerify=c.createVerify,S.Verify=c.Verify,S.createECDH=y(6393);var l=y(7900);S.publicEncrypt=l.publicEncrypt,S.privateEncrypt=l.privateEncrypt,S.publicDecrypt=l.publicDecrypt,S.privateDecrypt=l.privateDecrypt;var f=y(7963);S.randomFill=f.randomFill,S.randomFillSync=f.randomFillSync,S.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
|
56
|
+
`))},S.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:W=>{var S="%[a-f0-9]{2}",y=new RegExp("("+S+")|([^%]+?)","gi"),k=new RegExp("("+S+")+","gi");function w(M,s){try{return[decodeURIComponent(M.join(""))]}catch(l){}if(M.length===1)return M;s=s||1;var p=M.slice(0,s),c=M.slice(s);return Array.prototype.concat.call([],w(p),w(c))}function g(M){try{return decodeURIComponent(M)}catch(c){for(var s=M.match(y)||[],p=1;p<s.length;p++)s=(M=w(s,p).join("")).match(y)||[];return M}}W.exports=function(M){if(typeof M!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof M+"`");try{return M=M.replace(/\+/g," "),decodeURIComponent(M)}catch(s){return function(p){for(var c={"%FE%FF":"��","%FF%FE":"��"},l=k.exec(p);l;){try{c[l[0]]=decodeURIComponent(l[0])}catch(b){var f=g(l[0]);f!==l[0]&&(c[l[0]]=f)}l=k.exec(p)}c["%C2"]="�";for(var m=Object.keys(c),h=0;h<m.length;h++){var u=m[h];p=p.replace(new RegExp(u,"g"),c[u])}return p}(M)}}},4289:(W,S,y)=>{var k=y(2215),w=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",g=Object.prototype.toString,M=Array.prototype.concat,s=Object.defineProperty,p=y(1044)(),c=s&&p,l=function(m,h,u,b){if(h in m){if(b===!0){if(m[h]===u)return}else if(typeof(v=b)!="function"||g.call(v)!=="[object Function]"||!b())return}var v;c?s(m,h,{configurable:!0,enumerable:!1,value:u,writable:!0}):m[h]=u},f=function(m,h){var u=arguments.length>2?arguments[2]:{},b=k(h);w&&(b=M.call(b,Object.getOwnPropertySymbols(h)));for(var v=0;v<b.length;v+=1)l(m,b[v],h[b[v]],u[b[v]])};f.supportsDescriptors=!!c,W.exports=f},5251:(W,S,y)=>{S.utils=y(1278),S.Cipher=y(5756),S.DES=y(778),S.CBC=y(9051),S.EDE=y(651)},9051:(W,S,y)=>{var k=y(9746),w=y(5717),g={};function M(s){k.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]}S.instantiate=function(s){function p(m){s.call(this,m),this._cbcInit()}w(p,s);for(var c=Object.keys(g),l=0;l<c.length;l++){var f=c[l];p.prototype[f]=g[f]}return p.create=function(m){return new p(m)},p},g._cbcInit=function(){var s=new M(this.options.iv);this._cbcState=s},g._update=function(s,p,c,l){var f=this._cbcState,m=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(m._update.call(this,h,0,c,l),u=0;u<this.blockSize;u++)h[u]=c[l+u]}else{for(m._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:(W,S,y)=>{var k=y(9746);function w(g){this.options=g,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}W.exports=w,w.prototype._init=function(){},w.prototype.update=function(g){return g.length===0?[]:this.type==="decrypt"?this._updateDecrypt(g):this._updateEncrypt(g)},w.prototype._buffer=function(g,M){for(var s=Math.min(this.buffer.length-this.bufferOff,g.length-M),p=0;p<s;p++)this.buffer[this.bufferOff+p]=g[M+p];return this.bufferOff+=s,s},w.prototype._flushBuffer=function(g,M){return this._update(this.buffer,0,g,M),this.bufferOff=0,this.blockSize},w.prototype._updateEncrypt=function(g){var M=0,s=0,p=(this.bufferOff+g.length)/this.blockSize|0,c=new Array(p*this.blockSize);this.bufferOff!==0&&(M+=this._buffer(g,M),this.bufferOff===this.buffer.length&&(s+=this._flushBuffer(c,s)));for(var l=g.length-(g.length-M)%this.blockSize;M<l;M+=this.blockSize)this._update(g,M,c,s),s+=this.blockSize;for(;M<g.length;M++,this.bufferOff++)this.buffer[this.bufferOff]=g[M];return c},w.prototype._updateDecrypt=function(g){for(var M=0,s=0,p=Math.ceil((this.bufferOff+g.length)/this.blockSize)-1,c=new Array(p*this.blockSize);p>0;p--)M+=this._buffer(g,M),s+=this._flushBuffer(c,s);return M+=this._buffer(g,M),c},w.prototype.final=function(g){var M,s;return g&&(M=this.update(g)),s=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),M?M.concat(s):s},w.prototype._pad=function(g,M){if(M===0)return!1;for(;M<g.length;)g[M++]=0;return!0},w.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var g=new Array(this.blockSize);return this._update(this.buffer,0,g,0),g},w.prototype._unpad=function(g){return g},w.prototype._finalDecrypt=function(){k.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var g=new Array(this.blockSize);return this._flushBuffer(g,0),this._unpad(g)}},778:(W,S,y)=>{var k=y(9746),w=y(5717),g=y(1278),M=y(5756);function s(){this.tmp=new Array(2),this.keys=null}function p(l){M.call(this,l);var f=new s;this._desState=f,this.deriveKeys(f,l.key)}w(p,M),W.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),k.equal(f.length,this.blockSize,"Invalid key length");var m=g.readUInt32BE(f,0),h=g.readUInt32BE(f,4);g.pc1(m,h,l.tmp,0),m=l.tmp[0],h=l.tmp[1];for(var u=0;u<l.keys.length;u+=2){var b=c[u>>>1];m=g.r28shl(m,b),h=g.r28shl(h,b),g.pc2(m,h,l.keys,u)}},p.prototype._update=function(l,f,m,h){var u=this._desState,b=g.readUInt32BE(l,f),v=g.readUInt32BE(l,f+4);g.ip(b,v,u.tmp,0),b=u.tmp[0],v=u.tmp[1],this.type==="encrypt"?this._encrypt(u,b,v,u.tmp,0):this._decrypt(u,b,v,u.tmp,0),b=u.tmp[0],v=u.tmp[1],g.writeUInt32BE(m,b,h),g.writeUInt32BE(m,v,h+4)},p.prototype._pad=function(l,f){for(var m=l.length-f,h=f;h<l.length;h++)l[h]=m;return!0},p.prototype._unpad=function(l){for(var f=l[l.length-1],m=l.length-f;m<l.length;m++)k.equal(l[m],f);return l.slice(0,l.length-f)},p.prototype._encrypt=function(l,f,m,h,u){for(var b=f,v=m,_=0;_<l.keys.length;_+=2){var A=l.keys[_],x=l.keys[_+1];g.expand(v,l.tmp,0),A^=l.tmp[0],x^=l.tmp[1];var j=g.substitute(A,x),P=v;v=(b^g.permute(j))>>>0,b=P}g.rip(v,b,h,u)},p.prototype._decrypt=function(l,f,m,h,u){for(var b=m,v=f,_=l.keys.length-2;_>=0;_-=2){var A=l.keys[_],x=l.keys[_+1];g.expand(b,l.tmp,0),A^=l.tmp[0],x^=l.tmp[1];var j=g.substitute(A,x),P=b;b=(v^g.permute(j))>>>0,v=P}g.rip(b,v,h,u)}},651:(W,S,y)=>{var k=y(9746),w=y(5717),g=y(5756),M=y(778);function s(c,l){k.equal(l.length,24,"Invalid key length");var f=l.slice(0,8),m=l.slice(8,16),h=l.slice(16,24);this.ciphers=c==="encrypt"?[M.create({type:"encrypt",key:f}),M.create({type:"decrypt",key:m}),M.create({type:"encrypt",key:h})]:[M.create({type:"decrypt",key:h}),M.create({type:"encrypt",key:m}),M.create({type:"decrypt",key:f})]}function p(c){g.call(this,c);var l=new s(this.type,this.options.key);this._edeState=l}w(p,g),W.exports=p,p.create=function(c){return new p(c)},p.prototype._update=function(c,l,f,m){var h=this._edeState;h.ciphers[0]._update(c,l,f,m),h.ciphers[1]._update(f,m,f,m),h.ciphers[2]._update(f,m,f,m)},p.prototype._pad=M.prototype._pad,p.prototype._unpad=M.prototype._unpad},1278:(W,S)=>{S.readUInt32BE=function(g,M){return(g[0+M]<<24|g[1+M]<<16|g[2+M]<<8|g[3+M])>>>0},S.writeUInt32BE=function(g,M,s){g[0+s]=M>>>24,g[1+s]=M>>>16&255,g[2+s]=M>>>8&255,g[3+s]=255&M},S.ip=function(g,M,s,p){for(var c=0,l=0,f=6;f>=0;f-=2){for(var m=0;m<=24;m+=8)c<<=1,c|=M>>>m+f&1;for(m=0;m<=24;m+=8)c<<=1,c|=g>>>m+f&1}for(f=6;f>=0;f-=2){for(m=1;m<=25;m+=8)l<<=1,l|=M>>>m+f&1;for(m=1;m<=25;m+=8)l<<=1,l|=g>>>m+f&1}s[p+0]=c>>>0,s[p+1]=l>>>0},S.rip=function(g,M,s,p){for(var c=0,l=0,f=0;f<4;f++)for(var m=24;m>=0;m-=8)c<<=1,c|=M>>>m+f&1,c<<=1,c|=g>>>m+f&1;for(f=4;f<8;f++)for(m=24;m>=0;m-=8)l<<=1,l|=M>>>m+f&1,l<<=1,l|=g>>>m+f&1;s[p+0]=c>>>0,s[p+1]=l>>>0},S.pc1=function(g,M,s,p){for(var c=0,l=0,f=7;f>=5;f--){for(var m=0;m<=24;m+=8)c<<=1,c|=M>>m+f&1;for(m=0;m<=24;m+=8)c<<=1,c|=g>>m+f&1}for(m=0;m<=24;m+=8)c<<=1,c|=M>>m+f&1;for(f=1;f<=3;f++){for(m=0;m<=24;m+=8)l<<=1,l|=M>>m+f&1;for(m=0;m<=24;m+=8)l<<=1,l|=g>>m+f&1}for(m=0;m<=24;m+=8)l<<=1,l|=g>>m+f&1;s[p+0]=c>>>0,s[p+1]=l>>>0},S.r28shl=function(g,M){return g<<M&268435455|g>>>28-M};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];S.pc2=function(g,M,s,p){for(var c=0,l=0,f=y.length>>>1,m=0;m<f;m++)c<<=1,c|=g>>>y[m]&1;for(m=f;m<y.length;m++)l<<=1,l|=M>>>y[m]&1;s[p+0]=c>>>0,s[p+1]=l>>>0},S.expand=function(g,M,s){var p=0,c=0;p=(1&g)<<5|g>>>27;for(var l=23;l>=15;l-=4)p<<=6,p|=g>>>l&63;for(l=11;l>=3;l-=4)c|=g>>>l&63,c<<=6;c|=(31&g)<<1|g>>>31,M[s+0]=p>>>0,M[s+1]=c>>>0};var k=[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];S.substitute=function(g,M){for(var s=0,p=0;p<4;p++)s<<=4,s|=k[64*p+(g>>>18-6*p&63)];for(p=0;p<4;p++)s<<=4,s|=k[256+64*p+(M>>>18-6*p&63)];return s>>>0};var w=[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];S.permute=function(g){for(var M=0,s=0;s<w.length;s++)M<<=1,M|=g>>>w[s]&1;return M>>>0},S.padSplit=function(g,M,s){for(var p=g.toString(2);p.length<M;)p="0"+p;for(var c=[],l=0;l<M;l+=s)c.push(p.slice(l,l+s));return c.join(" ")}},2607:(W,S,y)=>{var k=y(8764).Buffer,w=y(3590),g=y(9799),M=y(7426),s={binary:!0,hex:!0,base64:!0};S.DiffieHellmanGroup=S.createDiffieHellmanGroup=S.getDiffieHellman=function(p){var c=new k(g[p].prime,"hex"),l=new k(g[p].gen,"hex");return new M(c,l)},S.createDiffieHellman=S.DiffieHellman=function p(c,l,f,m){return k.isBuffer(l)||s[l]===void 0?p(c,"binary",l,f):(l=l||"binary",m=m||"binary",f=f||new k([2]),k.isBuffer(f)||(f=new k(f,m)),typeof c=="number"?new M(w(c,f),f,!0):(k.isBuffer(c)||(c=new k(c,l)),new M(c,f,!0)))}},7426:(W,S,y)=>{var k=y(8764).Buffer,w=y(3620),g=new(y(3047)),M=new w(24),s=new w(11),p=new w(10),c=new w(3),l=new w(7),f=y(3590),m=y(1798);function h(A,x){return x=x||"utf8",k.isBuffer(A)||(A=new k(A,x)),this._pub=new w(A),this}function u(A,x){return x=x||"utf8",k.isBuffer(A)||(A=new k(A,x)),this._priv=new w(A),this}W.exports=v;var b={};function v(A,x,j){this.setGenerator(x),this.__prime=new w(A),this._prime=w.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 _(A,x){var j=new k(A.toArray());return x?j.toString(x):j}Object.defineProperty(v.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 b)return b[P];var B,z=0;if(A.isEven()||!f.simpleSieve||!f.fermatTest(A)||!g.test(A))return z+=1,z+=j==="02"||j==="05"?8:4,b[P]=z,z;switch(g.test(A.shrn(1))||(z+=2),j){case"02":A.mod(M).cmp(s)&&(z+=8);break;case"05":(B=A.mod(p)).cmp(c)&&B.cmp(l)&&(z+=8);break;default:z+=4}return b[P]=z,z}(this.__prime,this.__gen)),this._primeCode}}),v.prototype.generateKeys=function(){return this._priv||(this._priv=new w(m(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},v.prototype.computeSecret=function(A){var x=(A=(A=new w(A)).toRed(this._prime)).redPow(this._priv).fromRed(),j=new k(x.toArray()),P=this.getPrime();if(j.length<P.length){var B=new k(P.length-j.length);B.fill(0),j=k.concat([B,j])}return j},v.prototype.getPublicKey=function(A){return _(this._pub,A)},v.prototype.getPrivateKey=function(A){return _(this._priv,A)},v.prototype.getPrime=function(A){return _(this.__prime,A)},v.prototype.getGenerator=function(A){return _(this._gen,A)},v.prototype.setGenerator=function(A,x){return x=x||"utf8",k.isBuffer(A)||(A=new k(A,x)),this.__gen=A,this._gen=new w(A),this}},3590:(W,S,y)=>{var k=y(1798);W.exports=A,A.simpleSieve=v,A.fermatTest=_;var w=y(3620),g=new w(24),M=new(y(3047)),s=new w(1),p=new w(2),c=new w(5),l=(new w(16),new w(8),new w(10)),f=new w(3),m=(new w(7),new w(11)),h=new w(4),u=(new w(12),null);function b(){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)),z=0;z<j&&x[z]<=B&&P%x[z]!=0;z++);j!==z&&x[z]<=B||(x[j++]=P)}return u=x,x}function v(x){for(var j=b(),P=0;P<j.length;P++)if(x.modn(j[P])===0)return x.cmpn(j[P])===0;return!0}function _(x){var j=w.mont(x);return p.toRed(j).redPow(x.subn(1)).fromRed().cmpn(1)===0}function A(x,j){if(x<16)return new w(j===2||j===5?[140,123]:[140,39]);var P,B;for(j=new w(j);;){for(P=new w(k(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(g).cmp(m);)P.iadd(h);if(v(B=P.shrn(1))&&v(P)&&_(B)&&_(P)&&M.test(B)&&M.test(P))return P}}},3620:function(W,S,y){(function(k,w){function g(e,r){if(!e)throw new Error(r||"Assertion failed")}function M(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 k=="object"?k.exports=s:w.BN=s,s.BN=s,s.wordSize=26;try{p=typeof window!="undefined"&&window.Buffer!==void 0?window.Buffer:y(7748).Buffer}catch(e){}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),g(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):(g(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(g(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 I=1;for(C=f(e,N,e.length,r),N=0;N<a;N++)I*=r;this.imuln(I),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 m=["","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 b(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 I=C>>>26,R=67108863&C,q=Math.min(N,r.length-1),Z=Math.max(0,N-e.length+1);Z<=q;Z++){var te=N-Z|0;I+=(a=(t=0|e.words[te])*(o=0|r.words[Z])+R)/67108864|0,R=67108863&a}i.words[N]=0|R,C=0|I}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?m[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 I=this.clone();for(I.negative=0;!I.isZero();){var R=I.modn(N).toString(e);i=(I=I.idivn(N)).isZero()?R+i:m[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}g(!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&&g(!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 g(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);g(n<=t,"byte array longer than desired length"),g(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 g((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 g((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 g((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){g(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){g(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 v=function(e,r,i){var n,t,o,a=e.words,T=r.words,C=i.words,N=0,I=0|a[0],R=8191&I,q=I>>>13,Z=0|a[1],te=8191&Z,L=Z>>>13,X=0|a[2],U=8191&X,K=X>>>13,se=0|a[3],ne=8191&se,ce=se>>>13,ke=0|a[4],me=8191&ke,ve=ke>>>13,je=0|a[5],we=8191&je,Ae=je>>>13,G=0|a[6],Y=8191&G,F=G>>>13,$=0|a[7],D=8191&$,Q=$>>>13,he=0|a[8],le=8191&he,pe=he>>>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,vt=0|T[3],Be=8191&vt,We=vt>>>13,St=0|T[4],Ne=8191&St,Ze=St>>>13,It=0|T[5],Le=8191&It,Xe=It>>>13,Lt=0|T[6],De=8191&Lt,Qe=Lt>>>13,zt=0|T[7],Fe=8191&zt,Je=zt>>>13,$t=0|T[8],qe=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(q,Se)|0))<<13)|0;N=((o=Math.imul(q,Ge))+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(te,Se),t=(t=Math.imul(te,Ge))+Math.imul(L,Se)|0,o=Math.imul(L,Ge);var Rt=(N+(n=n+Math.imul(R,Pe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ve)|0)+Math.imul(q,Pe)|0))<<13)|0;N=((o=o+Math.imul(q,Ve)|0)+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(U,Se),t=(t=Math.imul(U,Ge))+Math.imul(K,Se)|0,o=Math.imul(K,Ge),n=n+Math.imul(te,Pe)|0,t=(t=t+Math.imul(te,Ve)|0)+Math.imul(L,Pe)|0,o=o+Math.imul(L,Ve)|0;var Gt=(N+(n=n+Math.imul(R,Re)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ke)|0)+Math.imul(q,Re)|0))<<13)|0;N=((o=o+Math.imul(q,Ke)|0)+(t>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,n=Math.imul(ne,Se),t=(t=Math.imul(ne,Ge))+Math.imul(ce,Se)|0,o=Math.imul(ce,Ge),n=n+Math.imul(U,Pe)|0,t=(t=t+Math.imul(U,Ve)|0)+Math.imul(K,Pe)|0,o=o+Math.imul(K,Ve)|0,n=n+Math.imul(te,Re)|0,t=(t=t+Math.imul(te,Ke)|0)+Math.imul(L,Re)|0,o=o+Math.imul(L,Ke)|0;var cn=(N+(n=n+Math.imul(R,Be)|0)|0)+((8191&(t=(t=t+Math.imul(R,We)|0)+Math.imul(q,Be)|0))<<13)|0;N=((o=o+Math.imul(q,We)|0)+(t>>>13)|0)+(cn>>>26)|0,cn&=67108863,n=Math.imul(me,Se),t=(t=Math.imul(me,Ge))+Math.imul(ve,Se)|0,o=Math.imul(ve,Ge),n=n+Math.imul(ne,Pe)|0,t=(t=t+Math.imul(ne,Ve)|0)+Math.imul(ce,Pe)|0,o=o+Math.imul(ce,Ve)|0,n=n+Math.imul(U,Re)|0,t=(t=t+Math.imul(U,Ke)|0)+Math.imul(K,Re)|0,o=o+Math.imul(K,Ke)|0,n=n+Math.imul(te,Be)|0,t=(t=t+Math.imul(te,We)|0)+Math.imul(L,Be)|0,o=o+Math.imul(L,We)|0;var on=(N+(n=n+Math.imul(R,Ne)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ze)|0)+Math.imul(q,Ne)|0))<<13)|0;N=((o=o+Math.imul(q,Ze)|0)+(t>>>13)|0)+(on>>>26)|0,on&=67108863,n=Math.imul(we,Se),t=(t=Math.imul(we,Ge))+Math.imul(Ae,Se)|0,o=Math.imul(Ae,Ge),n=n+Math.imul(me,Pe)|0,t=(t=t+Math.imul(me,Ve)|0)+Math.imul(ve,Pe)|0,o=o+Math.imul(ve,Ve)|0,n=n+Math.imul(ne,Re)|0,t=(t=t+Math.imul(ne,Ke)|0)+Math.imul(ce,Re)|0,o=o+Math.imul(ce,Ke)|0,n=n+Math.imul(U,Be)|0,t=(t=t+Math.imul(U,We)|0)+Math.imul(K,Be)|0,o=o+Math.imul(K,We)|0,n=n+Math.imul(te,Ne)|0,t=(t=t+Math.imul(te,Ze)|0)+Math.imul(L,Ne)|0,o=o+Math.imul(L,Ze)|0;var ln=(N+(n=n+Math.imul(R,Le)|0)|0)+((8191&(t=(t=t+Math.imul(R,Xe)|0)+Math.imul(q,Le)|0))<<13)|0;N=((o=o+Math.imul(q,Xe)|0)+(t>>>13)|0)+(ln>>>26)|0,ln&=67108863,n=Math.imul(Y,Se),t=(t=Math.imul(Y,Ge))+Math.imul(F,Se)|0,o=Math.imul(F,Ge),n=n+Math.imul(we,Pe)|0,t=(t=t+Math.imul(we,Ve)|0)+Math.imul(Ae,Pe)|0,o=o+Math.imul(Ae,Ve)|0,n=n+Math.imul(me,Re)|0,t=(t=t+Math.imul(me,Ke)|0)+Math.imul(ve,Re)|0,o=o+Math.imul(ve,Ke)|0,n=n+Math.imul(ne,Be)|0,t=(t=t+Math.imul(ne,We)|0)+Math.imul(ce,Be)|0,o=o+Math.imul(ce,We)|0,n=n+Math.imul(U,Ne)|0,t=(t=t+Math.imul(U,Ze)|0)+Math.imul(K,Ne)|0,o=o+Math.imul(K,Ze)|0,n=n+Math.imul(te,Le)|0,t=(t=t+Math.imul(te,Xe)|0)+Math.imul(L,Le)|0,o=o+Math.imul(L,Xe)|0;var hn=(N+(n=n+Math.imul(R,De)|0)|0)+((8191&(t=(t=t+Math.imul(R,Qe)|0)+Math.imul(q,De)|0))<<13)|0;N=((o=o+Math.imul(q,Qe)|0)+(t>>>13)|0)+(hn>>>26)|0,hn&=67108863,n=Math.imul(D,Se),t=(t=Math.imul(D,Ge))+Math.imul(Q,Se)|0,o=Math.imul(Q,Ge),n=n+Math.imul(Y,Pe)|0,t=(t=t+Math.imul(Y,Ve)|0)+Math.imul(F,Pe)|0,o=o+Math.imul(F,Ve)|0,n=n+Math.imul(we,Re)|0,t=(t=t+Math.imul(we,Ke)|0)+Math.imul(Ae,Re)|0,o=o+Math.imul(Ae,Ke)|0,n=n+Math.imul(me,Be)|0,t=(t=t+Math.imul(me,We)|0)+Math.imul(ve,Be)|0,o=o+Math.imul(ve,We)|0,n=n+Math.imul(ne,Ne)|0,t=(t=t+Math.imul(ne,Ze)|0)+Math.imul(ce,Ne)|0,o=o+Math.imul(ce,Ze)|0,n=n+Math.imul(U,Le)|0,t=(t=t+Math.imul(U,Xe)|0)+Math.imul(K,Le)|0,o=o+Math.imul(K,Xe)|0,n=n+Math.imul(te,De)|0,t=(t=t+Math.imul(te,Qe)|0)+Math.imul(L,De)|0,o=o+Math.imul(L,Qe)|0;var fn=(N+(n=n+Math.imul(R,Fe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Je)|0)+Math.imul(q,Fe)|0))<<13)|0;N=((o=o+Math.imul(q,Je)|0)+(t>>>13)|0)+(fn>>>26)|0,fn&=67108863,n=Math.imul(le,Se),t=(t=Math.imul(le,Ge))+Math.imul(pe,Se)|0,o=Math.imul(pe,Ge),n=n+Math.imul(D,Pe)|0,t=(t=t+Math.imul(D,Ve)|0)+Math.imul(Q,Pe)|0,o=o+Math.imul(Q,Ve)|0,n=n+Math.imul(Y,Re)|0,t=(t=t+Math.imul(Y,Ke)|0)+Math.imul(F,Re)|0,o=o+Math.imul(F,Ke)|0,n=n+Math.imul(we,Be)|0,t=(t=t+Math.imul(we,We)|0)+Math.imul(Ae,Be)|0,o=o+Math.imul(Ae,We)|0,n=n+Math.imul(me,Ne)|0,t=(t=t+Math.imul(me,Ze)|0)+Math.imul(ve,Ne)|0,o=o+Math.imul(ve,Ze)|0,n=n+Math.imul(ne,Le)|0,t=(t=t+Math.imul(ne,Xe)|0)+Math.imul(ce,Le)|0,o=o+Math.imul(ce,Xe)|0,n=n+Math.imul(U,De)|0,t=(t=t+Math.imul(U,Qe)|0)+Math.imul(K,De)|0,o=o+Math.imul(K,Qe)|0,n=n+Math.imul(te,Fe)|0,t=(t=t+Math.imul(te,Je)|0)+Math.imul(L,Fe)|0,o=o+Math.imul(L,Je)|0;var pn=(N+(n=n+Math.imul(R,qe)|0)|0)+((8191&(t=(t=t+Math.imul(R,tt)|0)+Math.imul(q,qe)|0))<<13)|0;N=((o=o+Math.imul(q,tt)|0)+(t>>>13)|0)+(pn>>>26)|0,pn&=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(le,Pe)|0,t=(t=t+Math.imul(le,Ve)|0)+Math.imul(pe,Pe)|0,o=o+Math.imul(pe,Ve)|0,n=n+Math.imul(D,Re)|0,t=(t=t+Math.imul(D,Ke)|0)+Math.imul(Q,Re)|0,o=o+Math.imul(Q,Ke)|0,n=n+Math.imul(Y,Be)|0,t=(t=t+Math.imul(Y,We)|0)+Math.imul(F,Be)|0,o=o+Math.imul(F,We)|0,n=n+Math.imul(we,Ne)|0,t=(t=t+Math.imul(we,Ze)|0)+Math.imul(Ae,Ne)|0,o=o+Math.imul(Ae,Ze)|0,n=n+Math.imul(me,Le)|0,t=(t=t+Math.imul(me,Xe)|0)+Math.imul(ve,Le)|0,o=o+Math.imul(ve,Xe)|0,n=n+Math.imul(ne,De)|0,t=(t=t+Math.imul(ne,Qe)|0)+Math.imul(ce,De)|0,o=o+Math.imul(ce,Qe)|0,n=n+Math.imul(U,Fe)|0,t=(t=t+Math.imul(U,Je)|0)+Math.imul(K,Fe)|0,o=o+Math.imul(K,Je)|0,n=n+Math.imul(te,qe)|0,t=(t=t+Math.imul(te,tt)|0)+Math.imul(L,qe)|0,o=o+Math.imul(L,tt)|0;var dn=(N+(n=n+Math.imul(R,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(R,et)|0)+Math.imul(q,Ue)|0))<<13)|0;N=((o=o+Math.imul(q,et)|0)+(t>>>13)|0)+(dn>>>26)|0,dn&=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(le,Re)|0,t=(t=t+Math.imul(le,Ke)|0)+Math.imul(pe,Re)|0,o=o+Math.imul(pe,Ke)|0,n=n+Math.imul(D,Be)|0,t=(t=t+Math.imul(D,We)|0)+Math.imul(Q,Be)|0,o=o+Math.imul(Q,We)|0,n=n+Math.imul(Y,Ne)|0,t=(t=t+Math.imul(Y,Ze)|0)+Math.imul(F,Ne)|0,o=o+Math.imul(F,Ze)|0,n=n+Math.imul(we,Le)|0,t=(t=t+Math.imul(we,Xe)|0)+Math.imul(Ae,Le)|0,o=o+Math.imul(Ae,Xe)|0,n=n+Math.imul(me,De)|0,t=(t=t+Math.imul(me,Qe)|0)+Math.imul(ve,De)|0,o=o+Math.imul(ve,Qe)|0,n=n+Math.imul(ne,Fe)|0,t=(t=t+Math.imul(ne,Je)|0)+Math.imul(ce,Fe)|0,o=o+Math.imul(ce,Je)|0,n=n+Math.imul(U,qe)|0,t=(t=t+Math.imul(U,tt)|0)+Math.imul(K,qe)|0,o=o+Math.imul(K,tt)|0;var mn=(N+(n=n+Math.imul(te,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(te,et)|0)+Math.imul(L,Ue)|0))<<13)|0;N=((o=o+Math.imul(L,et)|0)+(t>>>13)|0)+(mn>>>26)|0,mn&=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(le,Be)|0,t=(t=t+Math.imul(le,We)|0)+Math.imul(pe,Be)|0,o=o+Math.imul(pe,We)|0,n=n+Math.imul(D,Ne)|0,t=(t=t+Math.imul(D,Ze)|0)+Math.imul(Q,Ne)|0,o=o+Math.imul(Q,Ze)|0,n=n+Math.imul(Y,Le)|0,t=(t=t+Math.imul(Y,Xe)|0)+Math.imul(F,Le)|0,o=o+Math.imul(F,Xe)|0,n=n+Math.imul(we,De)|0,t=(t=t+Math.imul(we,Qe)|0)+Math.imul(Ae,De)|0,o=o+Math.imul(Ae,Qe)|0,n=n+Math.imul(me,Fe)|0,t=(t=t+Math.imul(me,Je)|0)+Math.imul(ve,Fe)|0,o=o+Math.imul(ve,Je)|0,n=n+Math.imul(ne,qe)|0,t=(t=t+Math.imul(ne,tt)|0)+Math.imul(ce,qe)|0,o=o+Math.imul(ce,tt)|0;var Xt=(N+(n=n+Math.imul(U,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(U,et)|0)+Math.imul(K,Ue)|0))<<13)|0;N=((o=o+Math.imul(K,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(le,Ne)|0,t=(t=t+Math.imul(le,Ze)|0)+Math.imul(pe,Ne)|0,o=o+Math.imul(pe,Ze)|0,n=n+Math.imul(D,Le)|0,t=(t=t+Math.imul(D,Xe)|0)+Math.imul(Q,Le)|0,o=o+Math.imul(Q,Xe)|0,n=n+Math.imul(Y,De)|0,t=(t=t+Math.imul(Y,Qe)|0)+Math.imul(F,De)|0,o=o+Math.imul(F,Qe)|0,n=n+Math.imul(we,Fe)|0,t=(t=t+Math.imul(we,Je)|0)+Math.imul(Ae,Fe)|0,o=o+Math.imul(Ae,Je)|0,n=n+Math.imul(me,qe)|0,t=(t=t+Math.imul(me,tt)|0)+Math.imul(ve,qe)|0,o=o+Math.imul(ve,tt)|0;var gn=(N+(n=n+Math.imul(ne,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ne,et)|0)+Math.imul(ce,Ue)|0))<<13)|0;N=((o=o+Math.imul(ce,et)|0)+(t>>>13)|0)+(gn>>>26)|0,gn&=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(le,Le)|0,t=(t=t+Math.imul(le,Xe)|0)+Math.imul(pe,Le)|0,o=o+Math.imul(pe,Xe)|0,n=n+Math.imul(D,De)|0,t=(t=t+Math.imul(D,Qe)|0)+Math.imul(Q,De)|0,o=o+Math.imul(Q,Qe)|0,n=n+Math.imul(Y,Fe)|0,t=(t=t+Math.imul(Y,Je)|0)+Math.imul(F,Fe)|0,o=o+Math.imul(F,Je)|0,n=n+Math.imul(we,qe)|0,t=(t=t+Math.imul(we,tt)|0)+Math.imul(Ae,qe)|0,o=o+Math.imul(Ae,tt)|0;var bn=(N+(n=n+Math.imul(me,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(me,et)|0)+Math.imul(ve,Ue)|0))<<13)|0;N=((o=o+Math.imul(ve,et)|0)+(t>>>13)|0)+(bn>>>26)|0,bn&=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(le,De)|0,t=(t=t+Math.imul(le,Qe)|0)+Math.imul(pe,De)|0,o=o+Math.imul(pe,Qe)|0,n=n+Math.imul(D,Fe)|0,t=(t=t+Math.imul(D,Je)|0)+Math.imul(Q,Fe)|0,o=o+Math.imul(Q,Je)|0,n=n+Math.imul(Y,qe)|0,t=(t=t+Math.imul(Y,tt)|0)+Math.imul(F,qe)|0,o=o+Math.imul(F,tt)|0;var en=(N+(n=n+Math.imul(we,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(we,et)|0)+Math.imul(Ae,Ue)|0))<<13)|0;N=((o=o+Math.imul(Ae,et)|0)+(t>>>13)|0)+(en>>>26)|0,en&=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(le,Fe)|0,t=(t=t+Math.imul(le,Je)|0)+Math.imul(pe,Fe)|0,o=o+Math.imul(pe,Je)|0,n=n+Math.imul(D,qe)|0,t=(t=t+Math.imul(D,tt)|0)+Math.imul(Q,qe)|0,o=o+Math.imul(Q,tt)|0;var tn=(N+(n=n+Math.imul(Y,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(Y,et)|0)+Math.imul(F,Ue)|0))<<13)|0;N=((o=o+Math.imul(F,et)|0)+(t>>>13)|0)+(tn>>>26)|0,tn&=67108863,n=Math.imul(_e,Fe),t=(t=Math.imul(_e,Je))+Math.imul(Te,Fe)|0,o=Math.imul(Te,Je),n=n+Math.imul(le,qe)|0,t=(t=t+Math.imul(le,tt)|0)+Math.imul(pe,qe)|0,o=o+Math.imul(pe,tt)|0;var Jt=(N+(n=n+Math.imul(D,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(D,et)|0)+Math.imul(Q,Ue)|0))<<13)|0;N=((o=o+Math.imul(Q,et)|0)+(t>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,n=Math.imul(_e,qe),t=(t=Math.imul(_e,tt))+Math.imul(Te,qe)|0,o=Math.imul(Te,tt);var yn=(N+(n=n+Math.imul(le,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(le,et)|0)+Math.imul(pe,Ue)|0))<<13)|0;N=((o=o+Math.imul(pe,et)|0)+(t>>>13)|0)+(yn>>>26)|0,yn&=67108863;var sn=(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)+(sn>>>26)|0,sn&=67108863,C[0]=Tt,C[1]=Rt,C[2]=Gt,C[3]=cn,C[4]=on,C[5]=ln,C[6]=hn,C[7]=fn,C[8]=pn,C[9]=dn,C[10]=mn,C[11]=Xt,C[12]=gn,C[13]=bn,C[14]=en,C[15]=tn,C[16]=Jt,C[17]=yn,C[18]=sn,N!==0&&(C[19]=N,i.length++),i};function _(e,r,i){return new A().mulp(e,r,i)}function A(e,r){this.x=e,this.y=r}Math.imul||(v=b),s.prototype.mulTo=function(e,r){var i,n=this.length+e.length;return i=this.length===10&&e.length===10?v(this,e,r):n<63?b(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 I=C;C=0;for(var R=67108863&T,q=Math.min(N,o.length-1),Z=Math.max(0,N-t.length+1);Z<=q;Z++){var te=N-Z,L=(0|t.words[te])*(0|o.words[Z]),X=67108863&L;R=67108863&(X=X+R|0),C+=(I=(I=I+(L/67108864|0)|0)+(X>>>26)|0)>>>26,I&=67108863}a.words[N]=R,T=I,I=C}return T!==0?a.words[N]=T:a.length--,a.strip()}(this,e,r):_(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),I=0;I<t;I+=T)for(var R=C,q=N,Z=0;Z<a;Z++){var te=i[I+Z],L=n[I+Z],X=i[I+Z+a],U=n[I+Z+a],K=R*X-q*U;U=R*U+q*X,X=K,i[I+Z]=te+X,n[I+Z]=L+U,i[I+Z+a]=te-X,n[I+Z+a]=L-U,Z!==T&&(K=C*R-N*q,q=C*q+N*R,R=K)}},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;g(t===0),g((-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),I=new Array(n),R=new Array(n),q=i.words;q.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,I,R,n,t);for(var Z=0;Z<n;Z++){var te=T[Z]*I[Z]-C[Z]*R[Z];C[Z]=T[Z]*R[Z]+C[Z]*I[Z],T[Z]=te}return this.conjugate(T,C,n),this.transform(T,C,q,o,n,t),this.conjugate(q,o,n),this.normalize13b(q,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),_(this,e,r)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){g(typeof e=="number"),g(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){g(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 g(this.negative===0),this.iushln(e)},s.prototype.iushrn=function(e,r,i){var n;g(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 I=0|this.words[C];this.words[C]=N<<26-t|I>>>t,N=I&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 g(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){g(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){g(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(g(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 g(typeof e=="number"),g(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(g(typeof e=="number"),g(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(g(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 I=T-1;I>=0;I--){var R=67108864*(0|n.words[t.length+I])+(0|n.words[t.length+I-1]);for(R=Math.min(R/o|0,67108863),n._ishlnsubmul(t,R,I);n.negative!==0;)R--,n.negative=0,n._ishlnsubmul(t,1,I),n.isZero()||(n.negative^=1);a&&(a.words[I]=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 g(!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){g(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){g(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){g(e.negative===0),g(!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 I=0,R=1;!(r.words[0]&R)&&I<26;++I,R<<=1);if(I>0)for(r.iushrn(I);I-- >0;)(n.isOdd()||t.isOdd())&&(n.iadd(C),t.isub(N)),n.iushrn(1),t.iushrn(1);for(var q=0,Z=1;!(i.words[0]&Z)&&q<26;++q,Z<<=1);if(q>0)for(i.iushrn(q);q-- >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){g(e.negative===0),g(!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,I=1;!(i.words[0]&I)&&N<26;++N,I<<=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){g(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),g(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 g(!this.red,"Already a number in reduction context"),g(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return g(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 g(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return g(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 z(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ee(){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 g(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function ae(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)},M(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},M(B,j),M(z,j),M(ee,j),ee.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 z;else{if(e!=="p25519")throw new Error("Unknown prime "+e);r=new ee}return x[e]=r,r},J.prototype._verify1=function(e){g(e.negative===0,"red works only with positives"),g(e.red,"red works only with red numbers")},J.prototype._verify2=function(e,r){g((e.negative|r.negative)==0,"red works only with positives"),g(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(g(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);g(!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),I=this.pow(e,n.addn(1).iushrn(1)),R=this.pow(e,n),q=t;R.cmp(o)!==0;){for(var Z=R,te=0;Z.cmp(o)!==0;te++)Z=Z.redSqr();g(te<q);var L=this.pow(N,new s(1).iushln(q-te-1));I=I.redMul(L),N=L.redSqr(),R=R.redMul(N),q=te}return I},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 I=C>>N&1;t!==i[0]&&(t=this.sqr(t)),I!==0||o!==0?(o<<=1,o|=I,(++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 ae(e)},M(ae,J),ae.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},ae.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},ae.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)},ae.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)},ae.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(W=y.nmd(W),this)},6266:(W,S,y)=>{var k=S;k.version=y(8597).i8,k.utils=y(953),k.rand=y(9931),k.curve=y(8254),k.curves=y(5427),k.ec=y(7954),k.eddsa=y(5980)},4918:(W,S,y)=>{var k=y(3785),w=y(953),g=w.getNAF,M=w.getJSF,s=w.assert;function p(l,f){this.type=l,this.p=new k(f.p,16),this.red=f.prime?k.red(f.prime):k.mont(this.p),this.zero=new k(0).toRed(this.red),this.one=new k(1).toRed(this.red),this.two=new k(2).toRed(this.red),this.n=f.n&&new k(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 m=this.n&&this.p.div(this.n);!m||m.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}W.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 m=l._getDoubles(),h=g(f,1,this._bitLength),u=(1<<m.step+1)-(m.step%2==0?2:1);u/=3;var b,v,_=[];for(b=0;b<h.length;b+=m.step){v=0;for(var A=b+m.step-1;A>=b;A--)v=(v<<1)+h[A];_.push(v)}for(var x=this.jpoint(null,null,null),j=this.jpoint(null,null,null),P=u;P>0;P--){for(b=0;b<_.length;b++)(v=_[b])===P?j=j.mixedAdd(m.points[b]):v===-P&&(j=j.mixedAdd(m.points[b].neg()));x=x.add(j)}return x.toP()},p.prototype._wnafMul=function(l,f){var m=4,h=l._getNAFPoints(m);m=h.wnd;for(var u=h.points,b=g(f,m,this._bitLength),v=this.jpoint(null,null,null),_=b.length-1;_>=0;_--){for(var A=0;_>=0&&b[_]===0;_--)A++;if(_>=0&&A++,v=v.dblp(A),_<0)break;var x=b[_];s(x!==0),v=l.type==="affine"?x>0?v.mixedAdd(u[x-1>>1]):v.mixedAdd(u[-x-1>>1].neg()):x>0?v.add(u[x-1>>1]):v.add(u[-x-1>>1].neg())}return l.type==="affine"?v.toP():v},p.prototype._wnafMulAdd=function(l,f,m,h,u){var b,v,_,A=this._wnafT1,x=this._wnafT2,j=this._wnafT3,P=0;for(b=0;b<h;b++){var B=(_=f[b])._getNAFPoints(l);A[b]=B.wnd,x[b]=B.points}for(b=h-1;b>=1;b-=2){var z=b-1,ee=b;if(A[z]===1&&A[ee]===1){var J=[f[z],null,null,f[ee]];f[z].y.cmp(f[ee].y)===0?(J[1]=f[z].add(f[ee]),J[2]=f[z].toJ().mixedAdd(f[ee].neg())):f[z].y.cmp(f[ee].y.redNeg())===0?(J[1]=f[z].toJ().mixedAdd(f[ee]),J[2]=f[z].add(f[ee].neg())):(J[1]=f[z].toJ().mixedAdd(f[ee]),J[2]=f[z].toJ().mixedAdd(f[ee].neg()));var ae=[-3,-1,-5,-7,0,7,5,1,3],e=M(m[z],m[ee]);for(P=Math.max(e[0].length,P),j[z]=new Array(P),j[ee]=new Array(P),v=0;v<P;v++){var r=0|e[0][v],i=0|e[1][v];j[z][v]=ae[3*(r+1)+(i+1)],j[ee][v]=0,x[z]=J}}else j[z]=g(m[z],A[z],this._bitLength),j[ee]=g(m[ee],A[ee],this._bitLength),P=Math.max(j[z].length,P),P=Math.max(j[ee].length,P)}var n=this.jpoint(null,null,null),t=this._wnafT4;for(b=P;b>=0;b--){for(var o=0;b>=0;){var a=!0;for(v=0;v<h;v++)t[v]=0|j[v][b],t[v]!==0&&(a=!1);if(!a)break;o++,b--}if(b>=0&&o++,n=n.dblp(o),b<0)break;for(v=0;v<h;v++){var T=t[v];T!==0&&(T>0?_=x[v][T-1>>1]:T<0&&(_=x[v][-T-1>>1].neg()),n=_.type==="affine"?n.mixedAdd(_):n.add(_))}}for(b=0;b<h;b++)x[b]=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=w.toArray(l,f);var m=this.p.byteLength();if((l[0]===4||l[0]===6||l[0]===7)&&l.length-1==2*m)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+m),l.slice(1+m,1+2*m));if((l[0]===2||l[0]===3)&&l.length-1===m)return this.pointFromX(l.slice(1,1+m),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(),m=this.getX().toArray("be",f);return l?[this.getY().isEven()?2:3].concat(m):[4].concat(m,this.getY().toArray("be",f))},c.prototype.encode=function(l,f){return w.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 m=[this],h=this,u=0;u<f;u+=l){for(var b=0;b<l;b++)h=h.dbl();m.push(h)}return{step:l,points:m}},c.prototype._getNAFPoints=function(l){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var f=[this],m=(1<<l)-1,h=m===1?null:this.dbl(),u=1;u<m;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,m=0;m<l;m++)f=f.dbl();return f}},1138:(W,S,y)=>{var k=y(953),w=y(3785),g=y(5717),M=y(4918),s=k.assert;function p(l){this.twisted=(0|l.a)!=1,this.mOneA=this.twisted&&(0|l.a)==-1,this.extended=this.mOneA,M.call(this,"edwards",l),this.a=new w(l.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new w(l.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new w(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,m,h,u){M.BasePoint.call(this,l,"projective"),f===null&&m===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 w(f,16),this.y=new w(m,16),this.z=h?new w(h,16):this.curve.one,this.t=u&&new w(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()))))}g(p,M),W.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,m,h){return this.point(l,f,m,h)},p.prototype.pointFromX=function(l,f){(l=new w(l,16)).red||(l=l.toRed(this.red));var m=l.redSqr(),h=this.c2.redSub(this.a.redMul(m)),u=this.one.redSub(this.c2.redMul(this.d).redMul(m)),b=h.redMul(u.redInvm()),v=b.redSqrt();if(v.redSqr().redSub(b).cmp(this.zero)!==0)throw new Error("invalid point");var _=v.fromRed().isOdd();return(f&&!_||!f&&_)&&(v=v.redNeg()),this.point(l,v)},p.prototype.pointFromY=function(l,f){(l=new w(l,16)).red||(l=l.toRed(this.red));var m=l.redSqr(),h=m.redSub(this.c2),u=m.redMul(this.d).redMul(this.c2).redSub(this.a),b=h.redMul(u.redInvm());if(b.cmp(this.zero)===0){if(f)throw new Error("invalid point");return this.point(this.zero,l)}var v=b.redSqrt();if(v.redSqr().redSub(b).cmp(this.zero)!==0)throw new Error("invalid point");return v.fromRed().isOdd()!==f&&(v=v.redNeg()),this.point(v,l)},p.prototype.validate=function(l){if(l.isInfinity())return!0;l.normalize();var f=l.x.redSqr(),m=l.y.redSqr(),h=f.redMul(this.a).redAdd(m),u=this.c2.redMul(this.one.redAdd(this.d.redMul(f).redMul(m)));return h.cmp(u)===0},g(c,M.BasePoint),p.prototype.pointFromJSON=function(l){return c.fromJSON(this,l)},p.prototype.point=function(l,f,m,h){return new c(this,l,f,m,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(),m=this.z.redSqr();m=m.redIAdd(m);var h=this.curve._mulA(l),u=this.x.redAdd(this.y).redSqr().redISub(l).redISub(f),b=h.redAdd(f),v=b.redSub(m),_=h.redSub(f),A=u.redMul(v),x=b.redMul(_),j=u.redMul(_),P=v.redMul(b);return this.curve.point(A,x,P,j)},c.prototype._projDbl=function(){var l,f,m,h,u,b,v=this.x.redAdd(this.y).redSqr(),_=this.x.redSqr(),A=this.y.redSqr();if(this.curve.twisted){var x=(h=this.curve._mulA(_)).redAdd(A);this.zOne?(l=v.redSub(_).redSub(A).redMul(x.redSub(this.curve.two)),f=x.redMul(h.redSub(A)),m=x.redSqr().redSub(x).redSub(x)):(u=this.z.redSqr(),b=x.redSub(u).redISub(u),l=v.redSub(_).redISub(A).redMul(b),f=x.redMul(h.redSub(A)),m=x.redMul(b))}else h=_.redAdd(A),u=this.curve._mulC(this.z).redSqr(),b=h.redSub(u).redSub(u),l=this.curve._mulC(v.redISub(h)).redMul(b),f=this.curve._mulC(h).redMul(_.redISub(A)),m=h.redMul(b);return this.curve.point(l,f,m)},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)),m=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)),b=m.redSub(f),v=u.redSub(h),_=u.redAdd(h),A=m.redAdd(f),x=b.redMul(v),j=_.redMul(A),P=b.redMul(A),B=v.redMul(_);return this.curve.point(x,j,B,P)},c.prototype._projAdd=function(l){var f,m,h=this.z.redMul(l.z),u=h.redSqr(),b=this.x.redMul(l.x),v=this.y.redMul(l.y),_=this.curve.d.redMul(b).redMul(v),A=u.redSub(_),x=u.redAdd(_),j=this.x.redAdd(this.y).redMul(l.x.redAdd(l.y)).redISub(b).redISub(v),P=h.redMul(A).redMul(j);return this.curve.twisted?(f=h.redMul(x).redMul(v.redSub(this.curve._mulA(b))),m=A.redMul(x)):(f=h.redMul(x).redMul(v.redSub(b)),m=this.curve._mulC(A).redMul(x)),this.curve.point(P,f,m)},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,m){return this.curve._wnafMulAdd(1,[this,f],[l,m],2,!1)},c.prototype.jmulAdd=function(l,f,m){return this.curve._wnafMulAdd(1,[this,f],[l,m],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 m=l.clone(),h=this.curve.redN.redMul(this.z);;){if(m.iadd(this.curve.n),m.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:(W,S,y)=>{var k=S;k.base=y(4918),k.short=y(6673),k.mont=y(2881),k.edwards=y(1138)},2881:(W,S,y)=>{var k=y(3785),w=y(5717),g=y(4918),M=y(953);function s(c){g.call(this,"mont",c),this.a=new k(c.a,16).toRed(this.red),this.b=new k(c.b,16).toRed(this.red),this.i4=new k(4).toRed(this.red).redInvm(),this.two=new k(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function p(c,l,f){g.BasePoint.call(this,c,"projective"),l===null&&f===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new k(l,16),this.z=new k(f,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}w(s,g),W.exports=s,s.prototype.validate=function(c){var l=c.normalize().x,f=l.redSqr(),m=f.redMul(l).redAdd(f.redMul(this.a)).redAdd(l);return m.redSqrt().redSqr().cmp(m)===0},w(p,g.BasePoint),s.prototype.decodePoint=function(c,l){return this.point(M.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),m=c.redMul(l),h=f.redMul(l.redAdd(this.curve.a24.redMul(f)));return this.curve.point(m,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),m=this.x.redSub(this.z),h=c.x.redAdd(c.z),u=c.x.redSub(c.z).redMul(f),b=h.redMul(m),v=l.z.redMul(u.redAdd(b).redSqr()),_=l.x.redMul(u.redISub(b).redSqr());return this.curve.point(v,_)},p.prototype.mul=function(c){for(var l=c.clone(),f=this,m=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(m,this),m=m.dbl()):(m=f.diffAdd(m,this),f=f.dbl());return m},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:(W,S,y)=>{var k=y(953),w=y(3785),g=y(5717),M=y(4918),s=k.assert;function p(f){M.call(this,"short",f),this.a=new w(f.a,16).toRed(this.red),this.b=new w(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,m,h,u){M.BasePoint.call(this,f,"affine"),m===null&&h===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new w(m,16),this.y=new w(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,m,h,u){M.BasePoint.call(this,f,"jacobian"),m===null&&h===null&&u===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new w(0)):(this.x=new w(m,16),this.y=new w(h,16),this.z=new w(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}g(p,M),W.exports=p,p.prototype._getEndomorphism=function(f){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var m,h;if(f.beta)m=new w(f.beta,16).toRed(this.red);else{var u=this._getEndoRoots(this.p);m=(m=u[0].cmp(u[1])<0?u[0]:u[1]).toRed(this.red)}if(f.lambda)h=new w(f.lambda,16);else{var b=this._getEndoRoots(this.n);this.g.mul(b[0]).x.cmp(this.g.x.redMul(m))===0?h=b[0]:(h=b[1],s(this.g.mul(h).x.cmp(this.g.x.redMul(m))===0))}return{beta:m,lambda:h,basis:f.basis?f.basis.map(function(v){return{a:new w(v.a,16),b:new w(v.b,16)}}):this._getEndoBasis(h)}}},p.prototype._getEndoRoots=function(f){var m=f===this.p?this.red:w.mont(f),h=new w(2).toRed(m).redInvm(),u=h.redNeg(),b=new w(3).toRed(m).redNeg().redSqrt().redMul(h);return[u.redAdd(b).fromRed(),u.redSub(b).fromRed()]},p.prototype._getEndoBasis=function(f){for(var m,h,u,b,v,_,A,x,j,P=this.n.ushrn(Math.floor(this.n.bitLength()/2)),B=f,z=this.n.clone(),ee=new w(1),J=new w(0),ae=new w(0),e=new w(1),r=0;B.cmpn(0)!==0;){var i=z.div(B);x=z.sub(i.mul(B)),j=ae.sub(i.mul(ee));var n=e.sub(i.mul(J));if(!u&&x.cmp(P)<0)m=A.neg(),h=ee,u=x.neg(),b=j;else if(u&&++r==2)break;A=x,z=B,B=x,ae=ee,ee=j,e=J,J=n}v=x.neg(),_=j;var t=u.sqr().add(b.sqr());return v.sqr().add(_.sqr()).cmp(t)>=0&&(v=m,_=h),u.negative&&(u=u.neg(),b=b.neg()),v.negative&&(v=v.neg(),_=_.neg()),[{a:u,b},{a:v,b:_}]},p.prototype._endoSplit=function(f){var m=this.endo.basis,h=m[0],u=m[1],b=u.b.mul(f).divRound(this.n),v=h.b.neg().mul(f).divRound(this.n),_=b.mul(h.a),A=v.mul(u.a),x=b.mul(h.b),j=v.mul(u.b);return{k1:f.sub(_).sub(A),k2:x.add(j).neg()}},p.prototype.pointFromX=function(f,m){(f=new w(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 b=u.fromRed().isOdd();return(m&&!b||!m&&b)&&(u=u.redNeg()),this.point(f,u)},p.prototype.validate=function(f){if(f.inf)return!0;var m=f.x,h=f.y,u=this.a.redMul(m),b=m.redSqr().redMul(m).redIAdd(u).redIAdd(this.b);return h.redSqr().redISub(b).cmpn(0)===0},p.prototype._endoWnafMulAdd=function(f,m,h){for(var u=this._endoWnafT1,b=this._endoWnafT2,v=0;v<f.length;v++){var _=this._endoSplit(m[v]),A=f[v],x=A._getBeta();_.k1.negative&&(_.k1.ineg(),A=A.neg(!0)),_.k2.negative&&(_.k2.ineg(),x=x.neg(!0)),u[2*v]=A,u[2*v+1]=x,b[2*v]=_.k1,b[2*v+1]=_.k2}for(var j=this._wnafMulAdd(1,u,b,2*v,h),P=0;P<2*v;P++)u[P]=null,b[P]=null;return j},g(c,M.BasePoint),p.prototype.point=function(f,m,h){return new c(this,f,m,h)},p.prototype.pointFromJSON=function(f,m){return c.fromJSON(this,f,m)},c.prototype._getBeta=function(){if(this.curve.endo){var f=this.precomputed;if(f&&f.beta)return f.beta;var m=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(f){var h=this.curve,u=function(b){return h.point(b.x.redMul(h.endo.beta),b.y)};f.beta=m,m.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 m}},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,m,h){typeof m=="string"&&(m=JSON.parse(m));var u=f.point(m[0],m[1],h);if(!m[2])return u;function b(_){return f.point(_[0],_[1],h)}var v=m[2];return u.precomputed={beta:null,doubles:v.doubles&&{step:v.doubles.step,points:[u].concat(v.doubles.points.map(b))},naf:v.naf&&{wnd:v.naf.wnd,points:[u].concat(v.naf.points.map(b))}},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 m=this.y.redSub(f.y);m.cmpn(0)!==0&&(m=m.redMul(this.x.redSub(f.x).redInvm()));var h=m.redSqr().redISub(this.x).redISub(f.x),u=m.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 m=this.curve.a,h=this.x.redSqr(),u=f.redInvm(),b=h.redAdd(h).redIAdd(h).redIAdd(m).redMul(u),v=b.redSqr().redISub(this.x.redAdd(this.x)),_=b.redMul(this.x.redSub(v)).redISub(this.y);return this.curve.point(v,_)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(f){return f=new w(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,m,h){var u=[this,m],b=[f,h];return this.curve.endo?this.curve._endoWnafMulAdd(u,b):this.curve._wnafMulAdd(1,u,b,2)},c.prototype.jmulAdd=function(f,m,h){var u=[this,m],b=[f,h];return this.curve.endo?this.curve._endoWnafMulAdd(u,b,!0):this.curve._wnafMulAdd(1,u,b,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 m=this.curve.point(this.x,this.y.redNeg());if(f&&this.precomputed){var h=this.precomputed,u=function(b){return b.neg()};m.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 m},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},g(l,M.BasePoint),p.prototype.jpoint=function(f,m,h){return new l(this,f,m,h)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var f=this.z.redInvm(),m=f.redSqr(),h=this.x.redMul(m),u=this.y.redMul(m).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 m=f.z.redSqr(),h=this.z.redSqr(),u=this.x.redMul(m),b=f.x.redMul(h),v=this.y.redMul(m.redMul(f.z)),_=f.y.redMul(h.redMul(this.z)),A=u.redSub(b),x=v.redSub(_);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),z=x.redSqr().redIAdd(P).redISub(B).redISub(B),ee=x.redMul(B.redISub(z)).redISub(v.redMul(P)),J=this.z.redMul(f.z).redMul(A);return this.curve.jpoint(z,ee,J)},l.prototype.mixedAdd=function(f){if(this.isInfinity())return f.toJ();if(f.isInfinity())return this;var m=this.z.redSqr(),h=this.x,u=f.x.redMul(m),b=this.y,v=f.y.redMul(m).redMul(this.z),_=h.redSub(u),A=b.redSub(v);if(_.cmpn(0)===0)return A.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var x=_.redSqr(),j=x.redMul(_),P=h.redMul(x),B=A.redSqr().redIAdd(j).redISub(P).redISub(P),z=A.redMul(P.redISub(B)).redISub(b.redMul(j)),ee=this.z.redMul(_);return this.curve.jpoint(B,z,ee)},l.prototype.dblp=function(f){if(f===0)return this;if(this.isInfinity())return this;if(!f)return this.dbl();var m;if(this.curve.zeroA||this.curve.threeA){var h=this;for(m=0;m<f;m++)h=h.dbl();return h}var u=this.curve.a,b=this.curve.tinv,v=this.x,_=this.y,A=this.z,x=A.redSqr().redSqr(),j=_.redAdd(_);for(m=0;m<f;m++){var P=v.redSqr(),B=j.redSqr(),z=B.redSqr(),ee=P.redAdd(P).redIAdd(P).redIAdd(u.redMul(x)),J=v.redMul(B),ae=ee.redSqr().redISub(J.redAdd(J)),e=J.redISub(ae),r=ee.redMul(e);r=r.redIAdd(r).redISub(z);var i=j.redMul(A);m+1<f&&(x=x.redMul(z)),v=ae,A=i,j=r}return this.curve.jpoint(v,j.redMul(b),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,m,h;if(this.zOne){var u=this.x.redSqr(),b=this.y.redSqr(),v=b.redSqr(),_=this.x.redAdd(b).redSqr().redISub(u).redISub(v);_=_.redIAdd(_);var A=u.redAdd(u).redIAdd(u),x=A.redSqr().redISub(_).redISub(_),j=v.redIAdd(v);j=(j=j.redIAdd(j)).redIAdd(j),f=x,m=A.redMul(_.redISub(x)).redISub(j),h=this.y.redAdd(this.y)}else{var P=this.x.redSqr(),B=this.y.redSqr(),z=B.redSqr(),ee=this.x.redAdd(B).redSqr().redISub(P).redISub(z);ee=ee.redIAdd(ee);var J=P.redAdd(P).redIAdd(P),ae=J.redSqr(),e=z.redIAdd(z);e=(e=e.redIAdd(e)).redIAdd(e),f=ae.redISub(ee).redISub(ee),m=J.redMul(ee.redISub(f)).redISub(e),h=(h=this.y.redMul(this.z)).redIAdd(h)}return this.curve.jpoint(f,m,h)},l.prototype._threeDbl=function(){var f,m,h;if(this.zOne){var u=this.x.redSqr(),b=this.y.redSqr(),v=b.redSqr(),_=this.x.redAdd(b).redSqr().redISub(u).redISub(v);_=_.redIAdd(_);var A=u.redAdd(u).redIAdd(u).redIAdd(this.curve.a),x=A.redSqr().redISub(_).redISub(_);f=x;var j=v.redIAdd(v);j=(j=j.redIAdd(j)).redIAdd(j),m=A.redMul(_.redISub(x)).redISub(j),h=this.y.redAdd(this.y)}else{var P=this.z.redSqr(),B=this.y.redSqr(),z=this.x.redMul(B),ee=this.x.redSub(P).redMul(this.x.redAdd(P));ee=ee.redAdd(ee).redIAdd(ee);var J=z.redIAdd(z),ae=(J=J.redIAdd(J)).redAdd(J);f=ee.redSqr().redISub(ae),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),m=ee.redMul(J.redISub(f)).redISub(e)}return this.curve.jpoint(f,m,h)},l.prototype._dbl=function(){var f=this.curve.a,m=this.x,h=this.y,u=this.z,b=u.redSqr().redSqr(),v=m.redSqr(),_=h.redSqr(),A=v.redAdd(v).redIAdd(v).redIAdd(f.redMul(b)),x=m.redAdd(m),j=(x=x.redIAdd(x)).redMul(_),P=A.redSqr().redISub(j.redAdd(j)),B=j.redISub(P),z=_.redSqr();z=(z=(z=z.redIAdd(z)).redIAdd(z)).redIAdd(z);var ee=A.redMul(B).redISub(z),J=h.redAdd(h).redMul(u);return this.curve.jpoint(P,ee,J)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var f=this.x.redSqr(),m=this.y.redSqr(),h=this.z.redSqr(),u=m.redSqr(),b=f.redAdd(f).redIAdd(f),v=b.redSqr(),_=this.x.redAdd(m).redSqr().redISub(f).redISub(u),A=(_=(_=(_=_.redIAdd(_)).redAdd(_).redIAdd(_)).redISub(v)).redSqr(),x=u.redIAdd(u);x=(x=(x=x.redIAdd(x)).redIAdd(x)).redIAdd(x);var j=b.redIAdd(_).redSqr().redISub(v).redISub(A).redISub(x),P=m.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 z=this.y.redMul(j.redMul(x.redISub(j)).redISub(_.redMul(A)));z=(z=(z=z.redIAdd(z)).redIAdd(z)).redIAdd(z);var ee=this.z.redAdd(_).redSqr().redISub(h).redISub(A);return this.curve.jpoint(B,z,ee)},l.prototype.mul=function(f,m){return f=new w(f,m),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 m=this.z.redSqr(),h=f.z.redSqr();if(this.x.redMul(h).redISub(f.x.redMul(m)).cmpn(0)!==0)return!1;var u=m.redMul(this.z),b=h.redMul(f.z);return this.y.redMul(b).redISub(f.y.redMul(u)).cmpn(0)===0},l.prototype.eqXToP=function(f){var m=this.z.redSqr(),h=f.toRed(this.curve.red).redMul(m);if(this.x.cmp(h)===0)return!0;for(var u=f.clone(),b=this.curve.redN.redMul(m);;){if(u.iadd(this.curve.n),u.cmp(this.curve.p)>=0)return!1;if(h.redIAdd(b),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:(W,S,y)=>{var k,w=S,g=y(3715),M=y(8254),s=y(953).assert;function p(l){l.type==="short"?this.curve=new M.short(l):l.type==="edwards"?this.curve=new M.edwards(l):this.curve=new M.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(w,l,{configurable:!0,enumerable:!0,get:function(){var m=new p(f);return Object.defineProperty(w,l,{configurable:!0,enumerable:!0,value:m}),m}})}w.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:g.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:g.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:g.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:g.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:g.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:g.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:g.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{k=y(1037)}catch(l){k=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:g.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",k]})},7954:(W,S,y)=>{var k=y(3785),w=y(2156),g=y(953),M=y(5427),s=y(9931),p=g.assert,c=y(1251),l=y(611);function f(m){if(!(this instanceof f))return new f(m);typeof m=="string"&&(p(Object.prototype.hasOwnProperty.call(M,m),"Unknown curve "+m),m=M[m]),m instanceof M.PresetCurve&&(m={curve:m}),this.curve=m.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=m.curve.g,this.g.precompute(m.curve.n.bitLength()+1),this.hash=m.hash||m.curve.hash}W.exports=f,f.prototype.keyPair=function(m){return new c(this,m)},f.prototype.keyFromPrivate=function(m,h){return c.fromPrivate(this,m,h)},f.prototype.keyFromPublic=function(m,h){return c.fromPublic(this,m,h)},f.prototype.genKeyPair=function(m){m||(m={});for(var h=new w({hash:this.hash,pers:m.pers,persEnc:m.persEnc||"utf8",entropy:m.entropy||s(this.hash.hmacStrength),entropyEnc:m.entropy&&m.entropyEnc||"utf8",nonce:this.n.toArray()}),u=this.n.byteLength(),b=this.n.sub(new k(2));;){var v=new k(h.generate(u));if(!(v.cmp(b)>0))return v.iaddn(1),this.keyFromPrivate(v)}},f.prototype._truncateToN=function(m,h){var u=8*m.byteLength()-this.n.bitLength();return u>0&&(m=m.ushrn(u)),!h&&m.cmp(this.n)>=0?m.sub(this.n):m},f.prototype.sign=function(m,h,u,b){typeof u=="object"&&(b=u,u=null),b||(b={}),h=this.keyFromPrivate(h,u),m=this._truncateToN(new k(m,16));for(var v=this.n.byteLength(),_=h.getPrivate().toArray("be",v),A=m.toArray("be",v),x=new w({hash:this.hash,entropy:_,nonce:A,pers:b.pers,persEnc:b.persEnc||"utf8"}),j=this.n.sub(new k(1)),P=0;;P++){var B=b.k?b.k(P):new k(x.generate(this.n.byteLength()));if(!((B=this._truncateToN(B,!0)).cmpn(1)<=0||B.cmp(j)>=0)){var z=this.g.mul(B);if(!z.isInfinity()){var ee=z.getX(),J=ee.umod(this.n);if(J.cmpn(0)!==0){var ae=B.invm(this.n).mul(J.mul(h.getPrivate()).iadd(m));if((ae=ae.umod(this.n)).cmpn(0)!==0){var e=(z.getY().isOdd()?1:0)|(ee.cmp(J)!==0?2:0);return b.canonical&&ae.cmp(this.nh)>0&&(ae=this.n.sub(ae),e^=1),new l({r:J,s:ae,recoveryParam:e})}}}}}},f.prototype.verify=function(m,h,u,b){m=this._truncateToN(new k(m,16)),u=this.keyFromPublic(u,b);var v=(h=new l(h,"hex")).r,_=h.s;if(v.cmpn(1)<0||v.cmp(this.n)>=0||_.cmpn(1)<0||_.cmp(this.n)>=0)return!1;var A,x=_.invm(this.n),j=x.mul(m).umod(this.n),P=x.mul(v).umod(this.n);return this.curve._maxwellTrick?!(A=this.g.jmulAdd(j,u.getPublic(),P)).isInfinity()&&A.eqXToP(v):!(A=this.g.mulAdd(j,u.getPublic(),P)).isInfinity()&&A.getX().umod(this.n).cmp(v)===0},f.prototype.recoverPubKey=function(m,h,u,b){p((3&u)===u,"The recovery param is more than two bits"),h=new l(h,b);var v=this.n,_=new k(m),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(v),z=v.sub(_).mul(B).umod(v),ee=x.mul(B).umod(v);return this.g.mulAdd(z,A,ee)},f.prototype.getKeyRecoveryParam=function(m,h,u,b){if((h=new l(h,b)).recoveryParam!==null)return h.recoveryParam;for(var v=0;v<4;v++){var _;try{_=this.recoverPubKey(m,h,v)}catch(A){continue}if(_.eq(u))return v}throw new Error("Unable to find valid recovery factor")}},1251:(W,S,y)=>{var k=y(3785),w=y(953).assert;function g(M,s){this.ec=M,this.priv=null,this.pub=null,s.priv&&this._importPrivate(s.priv,s.privEnc),s.pub&&this._importPublic(s.pub,s.pubEnc)}W.exports=g,g.fromPublic=function(M,s,p){return s instanceof g?s:new g(M,{pub:s,pubEnc:p})},g.fromPrivate=function(M,s,p){return s instanceof g?s:new g(M,{priv:s,privEnc:p})},g.prototype.validate=function(){var M=this.getPublic();return M.isInfinity()?{result:!1,reason:"Invalid public key"}:M.validate()?M.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"}},g.prototype.getPublic=function(M,s){return typeof M=="string"&&(s=M,M=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),s?this.pub.encode(s,M):this.pub},g.prototype.getPrivate=function(M){return M==="hex"?this.priv.toString(16,2):this.priv},g.prototype._importPrivate=function(M,s){this.priv=new k(M,s||16),this.priv=this.priv.umod(this.ec.curve.n)},g.prototype._importPublic=function(M,s){if(M.x||M.y)return this.ec.curve.type==="mont"?w(M.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||w(M.x&&M.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(M.x,M.y));this.pub=this.ec.curve.decodePoint(M,s)},g.prototype.derive=function(M){return M.validate()||w(M.validate(),"public point not validated"),M.mul(this.priv).getX()},g.prototype.sign=function(M,s,p){return this.ec.sign(M,this,s,p)},g.prototype.verify=function(M,s){return this.ec.verify(M,s,this)},g.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},611:(W,S,y)=>{var k=y(3785),w=y(953),g=w.assert;function M(f,m){if(f instanceof M)return f;this._importDER(f,m)||(g(f.r&&f.s,"Signature without r or s"),this.r=new k(f.r,16),this.s=new k(f.s,16),f.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=f.recoveryParam)}function s(){this.place=0}function p(f,m){var h=f[m.place++];if(!(128&h))return h;var u=15&h;if(u===0||u>4)return!1;for(var b=0,v=0,_=m.place;v<u;v++,_++)b<<=8,b|=f[_],b>>>=0;return!(b<=127)&&(m.place=_,b)}function c(f){for(var m=0,h=f.length-1;!f[m]&&!(128&f[m+1])&&m<h;)m++;return m===0?f:f.slice(m)}function l(f,m){if(m<128)f.push(m);else{var h=1+(Math.log(m)/Math.LN2>>>3);for(f.push(128|h);--h;)f.push(m>>>(h<<3)&255);f.push(m)}}W.exports=M,M.prototype._importDER=function(f,m){f=w.toArray(f,m);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 b=p(f,h);if(b===!1)return!1;var v=f.slice(h.place,b+h.place);if(h.place+=b,f[h.place++]!==2)return!1;var _=p(f,h);if(_===!1||f.length!==_+h.place)return!1;var A=f.slice(h.place,_+h.place);if(v[0]===0){if(!(128&v[1]))return!1;v=v.slice(1)}if(A[0]===0){if(!(128&A[1]))return!1;A=A.slice(1)}return this.r=new k(v),this.s=new k(A),this.recoveryParam=null,!0},M.prototype.toDER=function(f){var m=this.r.toArray(),h=this.s.toArray();for(128&m[0]&&(m=[0].concat(m)),128&h[0]&&(h=[0].concat(h)),m=c(m),h=c(h);!(h[0]||128&h[1]);)h=h.slice(1);var u=[2];l(u,m.length),(u=u.concat(m)).push(2),l(u,h.length);var b=u.concat(h),v=[48];return l(v,b.length),v=v.concat(b),w.encode(v,f)}},5980:(W,S,y)=>{var k=y(3715),w=y(5427),g=y(953),M=g.assert,s=g.parseBytes,p=y(9087),c=y(3622);function l(f){if(M(f==="ed25519","only tested with ed25519 so far"),!(this instanceof l))return new l(f);f=w[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=k.sha512}W.exports=l,l.prototype.sign=function(f,m){f=s(f);var h=this.keyFromSecret(m),u=this.hashInt(h.messagePrefix(),f),b=this.g.mul(u),v=this.encodePoint(b),_=this.hashInt(v,h.pubBytes(),f).mul(h.priv()),A=u.add(_).umod(this.curve.n);return this.makeSignature({R:b,S:A,Rencoded:v})},l.prototype.verify=function(f,m,h){f=s(f),m=this.makeSignature(m);var u=this.keyFromPublic(h),b=this.hashInt(m.Rencoded(),u.pubBytes(),f),v=this.g.mul(m.S());return m.R().add(u.pub().mul(b)).eq(v)},l.prototype.hashInt=function(){for(var f=this.hash(),m=0;m<arguments.length;m++)f.update(arguments[m]);return g.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 m=f.getY().toArray("le",this.encodingLength);return m[this.encodingLength-1]|=f.getX().isOdd()?128:0,m},l.prototype.decodePoint=function(f){var m=(f=g.parseBytes(f)).length-1,h=f.slice(0,m).concat(-129&f[m]),u=(128&f[m])!=0,b=g.intFromLE(h);return this.curve.pointFromY(b,u)},l.prototype.encodeInt=function(f){return f.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(f){return g.intFromLE(f)},l.prototype.isPoint=function(f){return f instanceof this.pointClass}},9087:(W,S,y)=>{var k=y(953),w=k.assert,g=k.parseBytes,M=k.cachedProperty;function s(p,c){this.eddsa=p,this._secret=g(c.secret),p.isPoint(c.pub)?this._pub=c.pub:this._pubBytes=g(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},M(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),M(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),M(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}),M(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),M(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),M(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(p){return w(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 w(this._secret,"KeyPair is public only"),k.encode(this.secret(),p)},s.prototype.getPublic=function(p){return k.encode(this.pubBytes(),p)},W.exports=s},3622:(W,S,y)=>{var k=y(3785),w=y(953),g=w.assert,M=w.cachedProperty,s=w.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)}),g(l.R&&l.S,"Signature without R or S"),c.isPoint(l.R)&&(this._R=l.R),l.S instanceof k&&(this._S=l.S),this._Rencoded=Array.isArray(l.R)?l.R:l.Rencoded,this._Sencoded=Array.isArray(l.S)?l.S:l.Sencoded}M(p,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),M(p,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),M(p,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),M(p,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),p.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},p.prototype.toHex=function(){return w.encode(this.toBytes(),"hex").toUpperCase()},W.exports=p},1037:W=>{W.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:(W,S,y)=>{var k=S,w=y(3785),g=y(9746),M=y(4504);k.assert=g,k.toArray=M.toArray,k.zero2=M.zero2,k.toHex=M.toHex,k.encode=M.encode,k.getNAF=function(s,p,c){var l=new Array(Math.max(s.bitLength(),c)+1);l.fill(0);for(var f=1<<p+1,m=s.clone(),h=0;h<l.length;h++){var u,b=m.andln(f-1);m.isOdd()?(u=b>(f>>1)-1?(f>>1)-b:b,m.isubn(u)):u=0,l[h]=u,m.iushrn(1)}return l},k.getJSF=function(s,p){var c=[[],[]];s=s.clone(),p=p.clone();for(var l,f=0,m=0;s.cmpn(-f)>0||p.cmpn(-m)>0;){var h,u,b=s.andln(3)+f&3,v=p.andln(3)+m&3;b===3&&(b=-1),v===3&&(v=-1),h=1&b?(l=s.andln(7)+f&7)!=3&&l!==5||v!==2?b:-b:0,c[0].push(h),u=1&v?(l=p.andln(7)+m&7)!=3&&l!==5||b!==2?v:-v:0,c[1].push(u),2*f===h+1&&(f=1-f),2*m===u+1&&(m=1-m),s.iushrn(1),p.iushrn(1)}return c},k.cachedProperty=function(s,p,c){var l="_"+p;s.prototype[p]=function(){return this[l]!==void 0?this[l]:this[l]=c.call(this)}},k.parseBytes=function(s){return typeof s=="string"?k.toArray(s,"hex"):s},k.intFromLE=function(s){return new w(s,"hex","le")}},3785:function(W,S,y){(function(k,w){function g(e,r){if(!e)throw new Error(r||"Assertion failed")}function M(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 k=="object"?k.exports=s:w.BN=s,s.BN=s,s.wordSize=26;try{p=typeof window!="undefined"&&window.Buffer!==void 0?window.Buffer:y(5568).Buffer}catch(e){}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),g(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):(g(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(g(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 I=1;for(C=f(e,N,e.length,r),N=0;N<a;N++)I*=r;this.imuln(I),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 m=["","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 b(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 I=C>>>26,R=67108863&C,q=Math.min(N,r.length-1),Z=Math.max(0,N-e.length+1);Z<=q;Z++){var te=N-Z|0;I+=(a=(t=0|e.words[te])*(o=0|r.words[Z])+R)/67108864|0,R=67108863&a}i.words[N]=0|R,C=0|I}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?m[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 I=this.clone();for(I.negative=0;!I.isZero();){var R=I.modn(N).toString(e);i=(I=I.idivn(N)).isZero()?R+i:m[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}g(!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&&g(!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 g(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);g(n<=t,"byte array longer than desired length"),g(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 g((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 g((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 g((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){g(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){g(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 v=function(e,r,i){var n,t,o,a=e.words,T=r.words,C=i.words,N=0,I=0|a[0],R=8191&I,q=I>>>13,Z=0|a[1],te=8191&Z,L=Z>>>13,X=0|a[2],U=8191&X,K=X>>>13,se=0|a[3],ne=8191&se,ce=se>>>13,ke=0|a[4],me=8191&ke,ve=ke>>>13,je=0|a[5],we=8191&je,Ae=je>>>13,G=0|a[6],Y=8191&G,F=G>>>13,$=0|a[7],D=8191&$,Q=$>>>13,he=0|a[8],le=8191&he,pe=he>>>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,vt=0|T[3],Be=8191&vt,We=vt>>>13,St=0|T[4],Ne=8191&St,Ze=St>>>13,It=0|T[5],Le=8191&It,Xe=It>>>13,Lt=0|T[6],De=8191&Lt,Qe=Lt>>>13,zt=0|T[7],Fe=8191&zt,Je=zt>>>13,$t=0|T[8],qe=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(q,Se)|0))<<13)|0;N=((o=Math.imul(q,Ge))+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(te,Se),t=(t=Math.imul(te,Ge))+Math.imul(L,Se)|0,o=Math.imul(L,Ge);var Rt=(N+(n=n+Math.imul(R,Pe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ve)|0)+Math.imul(q,Pe)|0))<<13)|0;N=((o=o+Math.imul(q,Ve)|0)+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(U,Se),t=(t=Math.imul(U,Ge))+Math.imul(K,Se)|0,o=Math.imul(K,Ge),n=n+Math.imul(te,Pe)|0,t=(t=t+Math.imul(te,Ve)|0)+Math.imul(L,Pe)|0,o=o+Math.imul(L,Ve)|0;var Gt=(N+(n=n+Math.imul(R,Re)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ke)|0)+Math.imul(q,Re)|0))<<13)|0;N=((o=o+Math.imul(q,Ke)|0)+(t>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,n=Math.imul(ne,Se),t=(t=Math.imul(ne,Ge))+Math.imul(ce,Se)|0,o=Math.imul(ce,Ge),n=n+Math.imul(U,Pe)|0,t=(t=t+Math.imul(U,Ve)|0)+Math.imul(K,Pe)|0,o=o+Math.imul(K,Ve)|0,n=n+Math.imul(te,Re)|0,t=(t=t+Math.imul(te,Ke)|0)+Math.imul(L,Re)|0,o=o+Math.imul(L,Ke)|0;var cn=(N+(n=n+Math.imul(R,Be)|0)|0)+((8191&(t=(t=t+Math.imul(R,We)|0)+Math.imul(q,Be)|0))<<13)|0;N=((o=o+Math.imul(q,We)|0)+(t>>>13)|0)+(cn>>>26)|0,cn&=67108863,n=Math.imul(me,Se),t=(t=Math.imul(me,Ge))+Math.imul(ve,Se)|0,o=Math.imul(ve,Ge),n=n+Math.imul(ne,Pe)|0,t=(t=t+Math.imul(ne,Ve)|0)+Math.imul(ce,Pe)|0,o=o+Math.imul(ce,Ve)|0,n=n+Math.imul(U,Re)|0,t=(t=t+Math.imul(U,Ke)|0)+Math.imul(K,Re)|0,o=o+Math.imul(K,Ke)|0,n=n+Math.imul(te,Be)|0,t=(t=t+Math.imul(te,We)|0)+Math.imul(L,Be)|0,o=o+Math.imul(L,We)|0;var on=(N+(n=n+Math.imul(R,Ne)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ze)|0)+Math.imul(q,Ne)|0))<<13)|0;N=((o=o+Math.imul(q,Ze)|0)+(t>>>13)|0)+(on>>>26)|0,on&=67108863,n=Math.imul(we,Se),t=(t=Math.imul(we,Ge))+Math.imul(Ae,Se)|0,o=Math.imul(Ae,Ge),n=n+Math.imul(me,Pe)|0,t=(t=t+Math.imul(me,Ve)|0)+Math.imul(ve,Pe)|0,o=o+Math.imul(ve,Ve)|0,n=n+Math.imul(ne,Re)|0,t=(t=t+Math.imul(ne,Ke)|0)+Math.imul(ce,Re)|0,o=o+Math.imul(ce,Ke)|0,n=n+Math.imul(U,Be)|0,t=(t=t+Math.imul(U,We)|0)+Math.imul(K,Be)|0,o=o+Math.imul(K,We)|0,n=n+Math.imul(te,Ne)|0,t=(t=t+Math.imul(te,Ze)|0)+Math.imul(L,Ne)|0,o=o+Math.imul(L,Ze)|0;var ln=(N+(n=n+Math.imul(R,Le)|0)|0)+((8191&(t=(t=t+Math.imul(R,Xe)|0)+Math.imul(q,Le)|0))<<13)|0;N=((o=o+Math.imul(q,Xe)|0)+(t>>>13)|0)+(ln>>>26)|0,ln&=67108863,n=Math.imul(Y,Se),t=(t=Math.imul(Y,Ge))+Math.imul(F,Se)|0,o=Math.imul(F,Ge),n=n+Math.imul(we,Pe)|0,t=(t=t+Math.imul(we,Ve)|0)+Math.imul(Ae,Pe)|0,o=o+Math.imul(Ae,Ve)|0,n=n+Math.imul(me,Re)|0,t=(t=t+Math.imul(me,Ke)|0)+Math.imul(ve,Re)|0,o=o+Math.imul(ve,Ke)|0,n=n+Math.imul(ne,Be)|0,t=(t=t+Math.imul(ne,We)|0)+Math.imul(ce,Be)|0,o=o+Math.imul(ce,We)|0,n=n+Math.imul(U,Ne)|0,t=(t=t+Math.imul(U,Ze)|0)+Math.imul(K,Ne)|0,o=o+Math.imul(K,Ze)|0,n=n+Math.imul(te,Le)|0,t=(t=t+Math.imul(te,Xe)|0)+Math.imul(L,Le)|0,o=o+Math.imul(L,Xe)|0;var hn=(N+(n=n+Math.imul(R,De)|0)|0)+((8191&(t=(t=t+Math.imul(R,Qe)|0)+Math.imul(q,De)|0))<<13)|0;N=((o=o+Math.imul(q,Qe)|0)+(t>>>13)|0)+(hn>>>26)|0,hn&=67108863,n=Math.imul(D,Se),t=(t=Math.imul(D,Ge))+Math.imul(Q,Se)|0,o=Math.imul(Q,Ge),n=n+Math.imul(Y,Pe)|0,t=(t=t+Math.imul(Y,Ve)|0)+Math.imul(F,Pe)|0,o=o+Math.imul(F,Ve)|0,n=n+Math.imul(we,Re)|0,t=(t=t+Math.imul(we,Ke)|0)+Math.imul(Ae,Re)|0,o=o+Math.imul(Ae,Ke)|0,n=n+Math.imul(me,Be)|0,t=(t=t+Math.imul(me,We)|0)+Math.imul(ve,Be)|0,o=o+Math.imul(ve,We)|0,n=n+Math.imul(ne,Ne)|0,t=(t=t+Math.imul(ne,Ze)|0)+Math.imul(ce,Ne)|0,o=o+Math.imul(ce,Ze)|0,n=n+Math.imul(U,Le)|0,t=(t=t+Math.imul(U,Xe)|0)+Math.imul(K,Le)|0,o=o+Math.imul(K,Xe)|0,n=n+Math.imul(te,De)|0,t=(t=t+Math.imul(te,Qe)|0)+Math.imul(L,De)|0,o=o+Math.imul(L,Qe)|0;var fn=(N+(n=n+Math.imul(R,Fe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Je)|0)+Math.imul(q,Fe)|0))<<13)|0;N=((o=o+Math.imul(q,Je)|0)+(t>>>13)|0)+(fn>>>26)|0,fn&=67108863,n=Math.imul(le,Se),t=(t=Math.imul(le,Ge))+Math.imul(pe,Se)|0,o=Math.imul(pe,Ge),n=n+Math.imul(D,Pe)|0,t=(t=t+Math.imul(D,Ve)|0)+Math.imul(Q,Pe)|0,o=o+Math.imul(Q,Ve)|0,n=n+Math.imul(Y,Re)|0,t=(t=t+Math.imul(Y,Ke)|0)+Math.imul(F,Re)|0,o=o+Math.imul(F,Ke)|0,n=n+Math.imul(we,Be)|0,t=(t=t+Math.imul(we,We)|0)+Math.imul(Ae,Be)|0,o=o+Math.imul(Ae,We)|0,n=n+Math.imul(me,Ne)|0,t=(t=t+Math.imul(me,Ze)|0)+Math.imul(ve,Ne)|0,o=o+Math.imul(ve,Ze)|0,n=n+Math.imul(ne,Le)|0,t=(t=t+Math.imul(ne,Xe)|0)+Math.imul(ce,Le)|0,o=o+Math.imul(ce,Xe)|0,n=n+Math.imul(U,De)|0,t=(t=t+Math.imul(U,Qe)|0)+Math.imul(K,De)|0,o=o+Math.imul(K,Qe)|0,n=n+Math.imul(te,Fe)|0,t=(t=t+Math.imul(te,Je)|0)+Math.imul(L,Fe)|0,o=o+Math.imul(L,Je)|0;var pn=(N+(n=n+Math.imul(R,qe)|0)|0)+((8191&(t=(t=t+Math.imul(R,tt)|0)+Math.imul(q,qe)|0))<<13)|0;N=((o=o+Math.imul(q,tt)|0)+(t>>>13)|0)+(pn>>>26)|0,pn&=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(le,Pe)|0,t=(t=t+Math.imul(le,Ve)|0)+Math.imul(pe,Pe)|0,o=o+Math.imul(pe,Ve)|0,n=n+Math.imul(D,Re)|0,t=(t=t+Math.imul(D,Ke)|0)+Math.imul(Q,Re)|0,o=o+Math.imul(Q,Ke)|0,n=n+Math.imul(Y,Be)|0,t=(t=t+Math.imul(Y,We)|0)+Math.imul(F,Be)|0,o=o+Math.imul(F,We)|0,n=n+Math.imul(we,Ne)|0,t=(t=t+Math.imul(we,Ze)|0)+Math.imul(Ae,Ne)|0,o=o+Math.imul(Ae,Ze)|0,n=n+Math.imul(me,Le)|0,t=(t=t+Math.imul(me,Xe)|0)+Math.imul(ve,Le)|0,o=o+Math.imul(ve,Xe)|0,n=n+Math.imul(ne,De)|0,t=(t=t+Math.imul(ne,Qe)|0)+Math.imul(ce,De)|0,o=o+Math.imul(ce,Qe)|0,n=n+Math.imul(U,Fe)|0,t=(t=t+Math.imul(U,Je)|0)+Math.imul(K,Fe)|0,o=o+Math.imul(K,Je)|0,n=n+Math.imul(te,qe)|0,t=(t=t+Math.imul(te,tt)|0)+Math.imul(L,qe)|0,o=o+Math.imul(L,tt)|0;var dn=(N+(n=n+Math.imul(R,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(R,et)|0)+Math.imul(q,Ue)|0))<<13)|0;N=((o=o+Math.imul(q,et)|0)+(t>>>13)|0)+(dn>>>26)|0,dn&=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(le,Re)|0,t=(t=t+Math.imul(le,Ke)|0)+Math.imul(pe,Re)|0,o=o+Math.imul(pe,Ke)|0,n=n+Math.imul(D,Be)|0,t=(t=t+Math.imul(D,We)|0)+Math.imul(Q,Be)|0,o=o+Math.imul(Q,We)|0,n=n+Math.imul(Y,Ne)|0,t=(t=t+Math.imul(Y,Ze)|0)+Math.imul(F,Ne)|0,o=o+Math.imul(F,Ze)|0,n=n+Math.imul(we,Le)|0,t=(t=t+Math.imul(we,Xe)|0)+Math.imul(Ae,Le)|0,o=o+Math.imul(Ae,Xe)|0,n=n+Math.imul(me,De)|0,t=(t=t+Math.imul(me,Qe)|0)+Math.imul(ve,De)|0,o=o+Math.imul(ve,Qe)|0,n=n+Math.imul(ne,Fe)|0,t=(t=t+Math.imul(ne,Je)|0)+Math.imul(ce,Fe)|0,o=o+Math.imul(ce,Je)|0,n=n+Math.imul(U,qe)|0,t=(t=t+Math.imul(U,tt)|0)+Math.imul(K,qe)|0,o=o+Math.imul(K,tt)|0;var mn=(N+(n=n+Math.imul(te,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(te,et)|0)+Math.imul(L,Ue)|0))<<13)|0;N=((o=o+Math.imul(L,et)|0)+(t>>>13)|0)+(mn>>>26)|0,mn&=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(le,Be)|0,t=(t=t+Math.imul(le,We)|0)+Math.imul(pe,Be)|0,o=o+Math.imul(pe,We)|0,n=n+Math.imul(D,Ne)|0,t=(t=t+Math.imul(D,Ze)|0)+Math.imul(Q,Ne)|0,o=o+Math.imul(Q,Ze)|0,n=n+Math.imul(Y,Le)|0,t=(t=t+Math.imul(Y,Xe)|0)+Math.imul(F,Le)|0,o=o+Math.imul(F,Xe)|0,n=n+Math.imul(we,De)|0,t=(t=t+Math.imul(we,Qe)|0)+Math.imul(Ae,De)|0,o=o+Math.imul(Ae,Qe)|0,n=n+Math.imul(me,Fe)|0,t=(t=t+Math.imul(me,Je)|0)+Math.imul(ve,Fe)|0,o=o+Math.imul(ve,Je)|0,n=n+Math.imul(ne,qe)|0,t=(t=t+Math.imul(ne,tt)|0)+Math.imul(ce,qe)|0,o=o+Math.imul(ce,tt)|0;var Xt=(N+(n=n+Math.imul(U,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(U,et)|0)+Math.imul(K,Ue)|0))<<13)|0;N=((o=o+Math.imul(K,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(le,Ne)|0,t=(t=t+Math.imul(le,Ze)|0)+Math.imul(pe,Ne)|0,o=o+Math.imul(pe,Ze)|0,n=n+Math.imul(D,Le)|0,t=(t=t+Math.imul(D,Xe)|0)+Math.imul(Q,Le)|0,o=o+Math.imul(Q,Xe)|0,n=n+Math.imul(Y,De)|0,t=(t=t+Math.imul(Y,Qe)|0)+Math.imul(F,De)|0,o=o+Math.imul(F,Qe)|0,n=n+Math.imul(we,Fe)|0,t=(t=t+Math.imul(we,Je)|0)+Math.imul(Ae,Fe)|0,o=o+Math.imul(Ae,Je)|0,n=n+Math.imul(me,qe)|0,t=(t=t+Math.imul(me,tt)|0)+Math.imul(ve,qe)|0,o=o+Math.imul(ve,tt)|0;var gn=(N+(n=n+Math.imul(ne,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ne,et)|0)+Math.imul(ce,Ue)|0))<<13)|0;N=((o=o+Math.imul(ce,et)|0)+(t>>>13)|0)+(gn>>>26)|0,gn&=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(le,Le)|0,t=(t=t+Math.imul(le,Xe)|0)+Math.imul(pe,Le)|0,o=o+Math.imul(pe,Xe)|0,n=n+Math.imul(D,De)|0,t=(t=t+Math.imul(D,Qe)|0)+Math.imul(Q,De)|0,o=o+Math.imul(Q,Qe)|0,n=n+Math.imul(Y,Fe)|0,t=(t=t+Math.imul(Y,Je)|0)+Math.imul(F,Fe)|0,o=o+Math.imul(F,Je)|0,n=n+Math.imul(we,qe)|0,t=(t=t+Math.imul(we,tt)|0)+Math.imul(Ae,qe)|0,o=o+Math.imul(Ae,tt)|0;var bn=(N+(n=n+Math.imul(me,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(me,et)|0)+Math.imul(ve,Ue)|0))<<13)|0;N=((o=o+Math.imul(ve,et)|0)+(t>>>13)|0)+(bn>>>26)|0,bn&=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(le,De)|0,t=(t=t+Math.imul(le,Qe)|0)+Math.imul(pe,De)|0,o=o+Math.imul(pe,Qe)|0,n=n+Math.imul(D,Fe)|0,t=(t=t+Math.imul(D,Je)|0)+Math.imul(Q,Fe)|0,o=o+Math.imul(Q,Je)|0,n=n+Math.imul(Y,qe)|0,t=(t=t+Math.imul(Y,tt)|0)+Math.imul(F,qe)|0,o=o+Math.imul(F,tt)|0;var en=(N+(n=n+Math.imul(we,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(we,et)|0)+Math.imul(Ae,Ue)|0))<<13)|0;N=((o=o+Math.imul(Ae,et)|0)+(t>>>13)|0)+(en>>>26)|0,en&=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(le,Fe)|0,t=(t=t+Math.imul(le,Je)|0)+Math.imul(pe,Fe)|0,o=o+Math.imul(pe,Je)|0,n=n+Math.imul(D,qe)|0,t=(t=t+Math.imul(D,tt)|0)+Math.imul(Q,qe)|0,o=o+Math.imul(Q,tt)|0;var tn=(N+(n=n+Math.imul(Y,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(Y,et)|0)+Math.imul(F,Ue)|0))<<13)|0;N=((o=o+Math.imul(F,et)|0)+(t>>>13)|0)+(tn>>>26)|0,tn&=67108863,n=Math.imul(_e,Fe),t=(t=Math.imul(_e,Je))+Math.imul(Te,Fe)|0,o=Math.imul(Te,Je),n=n+Math.imul(le,qe)|0,t=(t=t+Math.imul(le,tt)|0)+Math.imul(pe,qe)|0,o=o+Math.imul(pe,tt)|0;var Jt=(N+(n=n+Math.imul(D,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(D,et)|0)+Math.imul(Q,Ue)|0))<<13)|0;N=((o=o+Math.imul(Q,et)|0)+(t>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,n=Math.imul(_e,qe),t=(t=Math.imul(_e,tt))+Math.imul(Te,qe)|0,o=Math.imul(Te,tt);var yn=(N+(n=n+Math.imul(le,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(le,et)|0)+Math.imul(pe,Ue)|0))<<13)|0;N=((o=o+Math.imul(pe,et)|0)+(t>>>13)|0)+(yn>>>26)|0,yn&=67108863;var sn=(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)+(sn>>>26)|0,sn&=67108863,C[0]=Tt,C[1]=Rt,C[2]=Gt,C[3]=cn,C[4]=on,C[5]=ln,C[6]=hn,C[7]=fn,C[8]=pn,C[9]=dn,C[10]=mn,C[11]=Xt,C[12]=gn,C[13]=bn,C[14]=en,C[15]=tn,C[16]=Jt,C[17]=yn,C[18]=sn,N!==0&&(C[19]=N,i.length++),i};function _(e,r,i){return new A().mulp(e,r,i)}function A(e,r){this.x=e,this.y=r}Math.imul||(v=b),s.prototype.mulTo=function(e,r){var i,n=this.length+e.length;return i=this.length===10&&e.length===10?v(this,e,r):n<63?b(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 I=C;C=0;for(var R=67108863&T,q=Math.min(N,o.length-1),Z=Math.max(0,N-t.length+1);Z<=q;Z++){var te=N-Z,L=(0|t.words[te])*(0|o.words[Z]),X=67108863&L;R=67108863&(X=X+R|0),C+=(I=(I=I+(L/67108864|0)|0)+(X>>>26)|0)>>>26,I&=67108863}a.words[N]=R,T=I,I=C}return T!==0?a.words[N]=T:a.length--,a.strip()}(this,e,r):_(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),I=0;I<t;I+=T)for(var R=C,q=N,Z=0;Z<a;Z++){var te=i[I+Z],L=n[I+Z],X=i[I+Z+a],U=n[I+Z+a],K=R*X-q*U;U=R*U+q*X,X=K,i[I+Z]=te+X,n[I+Z]=L+U,i[I+Z+a]=te-X,n[I+Z+a]=L-U,Z!==T&&(K=C*R-N*q,q=C*q+N*R,R=K)}},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;g(t===0),g((-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),I=new Array(n),R=new Array(n),q=i.words;q.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,I,R,n,t);for(var Z=0;Z<n;Z++){var te=T[Z]*I[Z]-C[Z]*R[Z];C[Z]=T[Z]*R[Z]+C[Z]*I[Z],T[Z]=te}return this.conjugate(T,C,n),this.transform(T,C,q,o,n,t),this.conjugate(q,o,n),this.normalize13b(q,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),_(this,e,r)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){g(typeof e=="number"),g(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){g(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 g(this.negative===0),this.iushln(e)},s.prototype.iushrn=function(e,r,i){var n;g(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 I=0|this.words[C];this.words[C]=N<<26-t|I>>>t,N=I&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 g(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){g(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){g(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(g(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 g(typeof e=="number"),g(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(g(typeof e=="number"),g(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(g(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 I=T-1;I>=0;I--){var R=67108864*(0|n.words[t.length+I])+(0|n.words[t.length+I-1]);for(R=Math.min(R/o|0,67108863),n._ishlnsubmul(t,R,I);n.negative!==0;)R--,n.negative=0,n._ishlnsubmul(t,1,I),n.isZero()||(n.negative^=1);a&&(a.words[I]=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 g(!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){g(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){g(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){g(e.negative===0),g(!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 I=0,R=1;!(r.words[0]&R)&&I<26;++I,R<<=1);if(I>0)for(r.iushrn(I);I-- >0;)(n.isOdd()||t.isOdd())&&(n.iadd(C),t.isub(N)),n.iushrn(1),t.iushrn(1);for(var q=0,Z=1;!(i.words[0]&Z)&&q<26;++q,Z<<=1);if(q>0)for(i.iushrn(q);q-- >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){g(e.negative===0),g(!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,I=1;!(i.words[0]&I)&&N<26;++N,I<<=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){g(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),g(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 g(!this.red,"Already a number in reduction context"),g(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return g(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 g(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return g(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 z(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ee(){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 g(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function ae(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)},M(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},M(B,j),M(z,j),M(ee,j),ee.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 z;else{if(e!=="p25519")throw new Error("Unknown prime "+e);r=new ee}return x[e]=r,r},J.prototype._verify1=function(e){g(e.negative===0,"red works only with positives"),g(e.red,"red works only with red numbers")},J.prototype._verify2=function(e,r){g((e.negative|r.negative)==0,"red works only with positives"),g(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(g(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);g(!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),I=this.pow(e,n.addn(1).iushrn(1)),R=this.pow(e,n),q=t;R.cmp(o)!==0;){for(var Z=R,te=0;Z.cmp(o)!==0;te++)Z=Z.redSqr();g(te<q);var L=this.pow(N,new s(1).iushln(q-te-1));I=I.redMul(L),N=L.redSqr(),R=R.redMul(N),q=te}return I},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 I=C>>N&1;t!==i[0]&&(t=this.sqr(t)),I!==0||o!==0?(o<<=1,o|=I,(++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 ae(e)},M(ae,J),ae.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},ae.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},ae.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)},ae.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)},ae.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(W=y.nmd(W),this)},7216:(W,S,y)=>{function k(g,M){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!M||typeof M!="object"&&typeof M!="function"?g:M}y.r(S),y.d(S,{default:()=>w});const w=function(g){function M(){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,M);var p=k(this,(M.__proto__||Object.getPrototypeOf(M)).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),k(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)}(M,g),M}(function(g){function M(){g.apply(this,arguments)}return M.prototype=Object.create(g.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(M,g):M.__proto__=g,M}(Error))},8091:W=>{function S(y,k){if(y==null)throw new TypeError("Cannot convert first argument to object");for(var w=Object(y),g=1;g<arguments.length;g++){var M=arguments[g];if(M!=null)for(var s=Object.keys(Object(M)),p=0,c=s.length;p<c;p++){var l=s[p],f=Object.getOwnPropertyDescriptor(M,l);f!==void 0&&f.enumerable&&(w[l]=M[l])}}return w}W.exports={assign:S,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:S})}}},7187:(W,S,y)=>{var k,w=y(5108),g=typeof Reflect=="object"?Reflect:null,M=g&&typeof g.apply=="function"?g.apply:function(x,j,P){return Function.prototype.apply.call(x,j,P)};k=g&&typeof g.ownKeys=="function"?g.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)}W.exports=p,W.exports.once=function(x,j){return new Promise(function(P,B){function z(J){x.removeListener(j,ee),B(J)}function ee(){typeof x.removeListener=="function"&&x.removeListener("error",z),P([].slice.call(arguments))}A(x,j,ee,{once:!0}),j!=="error"&&function(J,ae,e){typeof J.on=="function"&&A(J,"error",ae,{once:!0})}(x,z)})},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 m(x,j,P,B){var z,ee,J,ae;if(l(P),(ee=x._events)===void 0?(ee=x._events=Object.create(null),x._eventsCount=0):(ee.newListener!==void 0&&(x.emit("newListener",j,P.listener?P.listener:P),ee=x._events),J=ee[j]),J===void 0)J=ee[j]=P,++x._eventsCount;else if(typeof J=="function"?J=ee[j]=B?[P,J]:[J,P]:B?J.unshift(P):J.push(P),(z=f(x))>0&&J.length>z&&!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,ae=e,w&&w.warn&&w.warn(ae)}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},z=h.bind(B);return z.listener=P,B.wrapFn=z,z}function b(x,j,P){var B=x._events;if(B===void 0)return[];var z=B[j];return z===void 0?[]:typeof z=="function"?P?[z.listener||z]:[z]:P?function(ee){for(var J=new Array(ee.length),ae=0;ae<J.length;++ae)J[ae]=ee[ae].listener||ee[ae];return J}(z):_(z,z.length)}function v(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 _(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 z(ee){B.once&&x.removeEventListener(j,z),P(ee)})}}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",z=this._events;if(z!==void 0)B=B&&z.error===void 0;else if(!B)return!1;if(B){var ee;if(j.length>0&&(ee=j[0]),ee instanceof Error)throw ee;var J=new Error("Unhandled error."+(ee?" ("+ee.message+")":""));throw J.context=ee,J}var ae=z[x];if(ae===void 0)return!1;if(typeof ae=="function")M(ae,this,j);else{var e=ae.length,r=_(ae,e);for(P=0;P<e;++P)M(r[P],this,j)}return!0},p.prototype.addListener=function(x,j){return m(this,x,j,!1)},p.prototype.on=p.prototype.addListener,p.prototype.prependListener=function(x,j){return m(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,z,ee,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(z=-1,ee=P.length-1;ee>=0;ee--)if(P[ee]===j||P[ee].listener===j){J=P[ee].listener,z=ee;break}if(z<0)return this;z===0?P.shift():function(ae,e){for(;e+1<ae.length;e++)ae[e]=ae[e+1];ae.pop()}(P,z),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 z,ee=Object.keys(P);for(B=0;B<ee.length;++B)(z=ee[B])!=="removeListener"&&this.removeAllListeners(z);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 b(this,x,!0)},p.prototype.rawListeners=function(x){return b(this,x,!1)},p.listenerCount=function(x,j){return typeof x.listenerCount=="function"?x.listenerCount(j):v.call(x,j)},p.prototype.listenerCount=v,p.prototype.eventNames=function(){return this._eventsCount>0?k(this._events):[]}},3048:(W,S,y)=>{var k=y(9509).Buffer,w=y(2318);W.exports=function(g,M,s,p){if(k.isBuffer(g)||(g=k.from(g,"binary")),M&&(k.isBuffer(M)||(M=k.from(M,"binary")),M.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var c=s/8,l=k.alloc(c),f=k.alloc(p||0),m=k.alloc(0);c>0||p>0;){var h=new w;h.update(m),h.update(g),M&&h.update(M),m=h.digest();var u=0;if(c>0){var b=l.length-c;u=Math.min(c,m.length),m.copy(l,b,0,u),c-=u}if(u<m.length&&p>0){var v=f.length-p,_=Math.min(p,m.length-u);m.copy(f,v,u,u+_),p-=_}}return m.fill(0),{key:l,iv:f}}},259:(W,S,y)=>{const k=y(7849).buildOptions,w={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:" ",supressEmptyNode:!1,tagValueProcessor:function(_){return _},attrValueProcessor:function(_){return _}},g=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor","rootNodeName"];function M(_){this.options=k(_,w,g),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=b),this.options.cdataTagName?this.isCDATA=v:this.isCDATA=function(){return!1},this.replaceCDATAstr=p,this.replaceCDATAarr=c,this.processTextOrObjNode=s,this.options.format?(this.indentate=u,this.tagEndChar=`>
|
|
57
|
+
`,this.newLine=`
|
|
58
|
+
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=h,this.buildObjNode=f):(this.buildTextNode=m,this.buildObjNode=l),this.buildTextValNode=m,this.buildObjectNode=l}function s(_,A,x){const j=this.j2x(_,x+1);return _[this.options.textNodeName]!==void 0&&Object.keys(_).length===1?this.buildTextNode(j.val,A,j.attrStr,x):this.buildObjNode(j.val,A,j.attrStr,x)}function p(_,A){return _=this.options.tagValueProcessor(""+_),this.options.cdataPositionChar===""||_===""?_+"<![CDATA["+A+"]]"+this.tagEndChar:_.replace(this.options.cdataPositionChar,"<![CDATA["+A+"]]"+this.tagEndChar)}function c(_,A){if(_=this.options.tagValueProcessor(""+_),this.options.cdataPositionChar===""||_==="")return _+"<![CDATA["+A.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let x in A)_=_.replace(this.options.cdataPositionChar,"<![CDATA["+A[x]+"]]>");return _+this.newLine}function l(_,A,x,j){return x&&_.indexOf("<")===-1?this.indentate(j)+"<"+A+x+">"+_+"</"+A+this.tagEndChar:this.indentate(j)+"<"+A+x+this.tagEndChar+_+this.indentate(j)+"</"+A+this.tagEndChar}function f(_,A,x,j){return _!==""?this.buildObjectNode(_,A,x,j):this.indentate(j)+"<"+A+x+"/"+this.tagEndChar}function m(_,A,x,j){return this.indentate(j)+"<"+A+x+">"+this.options.tagValueProcessor(_)+"</"+A+this.tagEndChar}function h(_,A,x,j){return _!==""?this.buildTextValNode(_,A,x,j):this.indentate(j)+"<"+A+x+"/"+this.tagEndChar}function u(_){return this.options.indentBy.repeat(_)}function b(_){return!!_.startsWith(this.options.attributeNamePrefix)&&_.substr(this.attrPrefixLen)}function v(_){return _===this.options.cdataTagName}M.prototype.parse=function(_){return Array.isArray(_)&&this.options.rootNodeName&&this.options.rootNodeName.length>1&&(_={[this.options.rootNodeName]:_}),this.j2x(_,0).val},M.prototype.j2x=function(_,A){let x="",j="";for(let P in _)if(_[P]!==void 0)if(_[P]===null)j+=this.indentate(A)+"<"+P+"/"+this.tagEndChar;else if(_[P]instanceof Date)j+=this.buildTextNode(_[P],P,"",A);else if(typeof _[P]!="object"){const B=this.isAttribute(P);B?x+=" "+B+'="'+this.options.attrValueProcessor(""+_[P])+'"':this.isCDATA(P)?_[this.options.textNodeName]?j+=this.replaceCDATAstr(_[this.options.textNodeName],_[P]):j+=this.replaceCDATAstr("",_[P]):P===this.options.textNodeName?_[this.options.cdataTagName]||(j+=this.options.tagValueProcessor(""+_[P])):j+=this.buildTextNode(_[P],P,"",A)}else if(Array.isArray(_[P]))if(this.isCDATA(P))j+=this.indentate(A),_[this.options.textNodeName]?j+=this.replaceCDATAarr(_[this.options.textNodeName],_[P]):j+=this.replaceCDATAarr("",_[P]);else{const B=_[P].length;for(let z=0;z<B;z++){const ee=_[P][z];ee===void 0||(j+=ee===null?this.indentate(A)+"<"+P+"/"+this.tagEndChar:typeof ee=="object"?this.processTextOrObjNode(ee,P,A):this.buildTextNode(ee,P,"",A))}}else if(this.options.attrNodeName&&P===this.options.attrNodeName){const B=Object.keys(_[P]),z=B.length;for(let ee=0;ee<z;ee++)x+=" "+B[ee]+'="'+this.options.attrValueProcessor(""+_[P][B[ee]])+'"'}else j+=this.processTextOrObjNode(_[P],P,A);return{attrStr:x,val:j}},W.exports=M},8398:(W,S,y)=>{const k=function(m){return String.fromCharCode(m)},w={nilChar:k(176),missingChar:k(201),nilPremitive:k(175),missingPremitive:k(200),emptyChar:k(178),emptyValue:k(177),boundryChar:k(179),objStart:k(198),arrStart:k(204),arrayEnd:k(185)},g=[w.nilChar,w.nilPremitive,w.missingChar,w.missingPremitive,w.boundryChar,w.emptyChar,w.emptyValue,w.arrayEnd,w.objStart,w.arrStart],M=function(m,h,u){if(typeof h=="string")return m&&m[0]&&m[0].val!==void 0?s(m[0].val):s(m);{const v=(b=m)===void 0?w.missingChar:b===null?w.nilChar:!(b.child&&Object.keys(b.child).length===0&&(!b.attrsMap||Object.keys(b.attrsMap).length===0))||w.emptyChar;if(v===!0){let _="";if(Array.isArray(h)){_+=w.arrStart;const A=h[0],x=m.length;if(typeof A=="string")for(let j=0;j<x;j++){const P=s(m[j].val);_=p(_,P)}else for(let j=0;j<x;j++){const P=M(m[j],A,u);_=p(_,P)}_+=w.arrayEnd}else{_+=w.objStart;const A=Object.keys(h);Array.isArray(m)&&(m=m[0]);for(let x in A){const j=A[x];let P;P=!u.ignoreAttributes&&m.attrsMap&&m.attrsMap[j]?M(m.attrsMap[j],h[j],u):j===u.textNodeName?M(m.val,h[j],u):M(m.child[j],h[j],u),_=p(_,P)}}return _}return v}var b},s=function(m){switch(m){case void 0:return w.missingPremitive;case null:return w.nilPremitive;case"":return w.emptyValue;default:return m}},p=function(m,h){return c(h[0])||c(m[m.length-1])||(m+=w.boundryChar),m+h},c=function(m){return g.indexOf(m)!==-1},l=y(3543),f=y(7849).buildOptions;S.convert2nimn=function(m,h,u){return u=f(u,l.defaultOptions,l.props),M(m,h,u)}},284:(W,S,y)=>{const k=y(7849),w=function(g,M,s){const p={};if(!M.alwaysCreateTextNode&&(!g.child||k.isEmptyObject(g.child))&&(!g.attrsMap||k.isEmptyObject(g.attrsMap)))return k.isExist(g.val)?g.val:"";if(k.isExist(g.val)&&(typeof g.val!="string"||g.val!==""&&g.val!==M.cdataPositionChar)){const l=k.isTagNameInArrayMode(g.tagname,M.arrayMode,s);p[M.textNodeName]=l?[g.val]:g.val}k.merge(p,g.attrsMap,M.arrayMode);const c=Object.keys(g.child);for(let l=0;l<c.length;l++){const f=c[l];if(g.child[f]&&g.child[f].length>1){p[f]=[];for(let m in g.child[f])g.child[f].hasOwnProperty(m)&&p[f].push(w(g.child[f][m],M,f))}else{const m=w(g.child[f][0],M,f),h=M.arrayMode===!0&&typeof m=="object"||k.isTagNameInArrayMode(f,M.arrayMode,s);p[f]=h?[m]:m}}return p};S.convertToJson=w},7702:(W,S,y)=>{const k=y(7849),w=y(7849).buildOptions,g=y(3543),M=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 b in s.child[u])l+=M(s.child[u][b],p)+" , ";l=l.substr(0,l.length-1)+" ] "}else l+='"'+u+'" : '+M(s.child[u][0],p)+" ,"}return k.merge(l,s.attrsMap),k.isEmptyObject(l)?k.isExist(s.val)?s.val:"":(k.isExist(s.val)&&(typeof s.val!="string"||s.val!==""&&s.val!==p.cdataPositionChar)&&(l+='"'+p.textNodeName+'" : '+((m=s.val)!==!0&&m!==!1&&isNaN(m)?'"'+m+'"':m)),l[l.length-1]===","&&(l=l.substr(0,l.length-2)),l+"}");var m};S.convertToJsonString=function(s,p){return(p=w(p,g.defaultOptions,g.props)).indentBy=p.indentBy||"",M(s,p)}},6965:(W,S,y)=>{y(5108);const k=y(284),w=y(3543),g=y(3543),M=y(7849).buildOptions,s=y(8383);S.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=M(c,g.defaultOptions,g.props);const m=w.getTraversalObj(p,f);return k.convertToJson(m,f)},S.convertTonimn=y(8398).convert2nimn,S.getTraversalObj=w.getTraversalObj,S.convertToJson=k.convertToJson,S.convertToJsonString=y(7702).convertToJsonString,S.validate=s.validate,S.j2xParser=y(259),S.parseToNimn=function(p,c,l){return S.convertTonimn(S.getTraversalObj(p,l),c,l)}},7849:(W,S)=>{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",k="["+y+"]["+y+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",w=new RegExp("^"+k+"$");S.isExist=function(g){return g!==void 0},S.isEmptyObject=function(g){return Object.keys(g).length===0},S.merge=function(g,M,s){if(M){const p=Object.keys(M),c=p.length;for(let l=0;l<c;l++)g[p[l]]=s==="strict"?[M[p[l]]]:M[p[l]]}},S.getValue=function(g){return S.isExist(g)?g:""},S.buildOptions=function(g,M,s){let p={};if(!g)return M;for(let c=0;c<s.length;c++)g[s[c]]!==void 0?p[s[c]]=g[s[c]]:p[s[c]]=M[s[c]];return p},S.isTagNameInArrayMode=function(g,M,s){return M!==!1&&(M instanceof RegExp?M.test(g):typeof M=="function"?!!M(g,s):M==="strict")},S.isName=function(g){return w.exec(g)!=null},S.getAllMatches=function(g,M){const s=[];let p=M.exec(g);for(;p;){const c=[];c.startIndex=M.lastIndex-p[0].length;const l=p.length;for(let f=0;f<l;f++)c.push(p[f]);s.push(c),p=M.exec(g)}return s},S.nameRegexp=k},8383:(W,S,y)=>{const k=y(7849),w={allowBooleanAttributes:!1},g=["allowBooleanAttributes"];function M(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.",v(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}S.validate=function(A,x){x=k.buildOptions(x,w,g);const j=[];let P=!1,B=!1;A[0]==="\uFEFF"&&(A=A.substr(1));for(let ee=0;ee<A.length;ee++)if(A[ee]==="<"&&A[ee+1]==="?"){if(ee+=2,ee=M(A,ee),ee.err)return ee}else{if(A[ee]!=="<"){if(A[ee]===" "||A[ee]===" "||A[ee]===`
|
|
59
|
+
`||A[ee]==="\r")continue;return u("InvalidChar","char '"+A[ee]+"' is not expected.",v(A,ee))}{let J=ee;if(ee++,A[ee]==="!"){ee=s(A,ee);continue}{let ae=!1;A[ee]==="/"&&(ae=!0,ee++);let e="";for(;ee<A.length&&A[ee]!==">"&&A[ee]!==" "&&A[ee]!==" "&&A[ee]!==`
|
|
60
|
+
`&&A[ee]!=="\r";ee++)e+=A[ee];if(e=e.trim(),e[e.length-1]==="/"&&(e=e.substring(0,e.length-1),ee--),z=e,!k.isName(z)){let n;return n=e.trim().length===0?"Invalid space after '<'.":"Tag '"+e+"' is an invalid name.",u("InvalidTag",n,v(A,ee))}const r=l(A,ee);if(r===!1)return u("InvalidAttr","Attributes for '"+e+"' have open quote.",v(A,ee));let i=r.value;if(ee=r.index,i[i.length-1]==="/"){const n=ee-i.length;i=i.substring(0,i.length-1);const t=m(i,x);if(t!==!0)return u(t.err.code,t.err.msg,v(A,n+t.err.line));P=!0}else if(ae){if(!r.tagClosed)return u("InvalidTag","Closing tag '"+e+"' doesn't have proper closing.",v(A,ee));if(i.trim().length>0)return u("InvalidTag","Closing tag '"+e+"' can't have attributes or invalid starting.",v(A,J));{const n=j.pop();if(e!==n.tagName){let t=v(A,n.tagStartPos);return u("InvalidTag","Expected closing tag '"+n.tagName+"' (opened in line "+t.line+", col "+t.col+") instead of closing tag '"+e+"'.",v(A,J))}j.length==0&&(B=!0)}}else{const n=m(i,x);if(n!==!0)return u(n.err.code,n.err.msg,v(A,ee-i.length+n.err.line));if(B===!0)return u("InvalidXml","Multiple possible root nodes found.",v(A,ee));j.push({tagName:e,tagStartPos:J}),P=!0}for(ee++;ee<A.length;ee++)if(A[ee]==="<"){if(A[ee+1]==="!"){ee++,ee=s(A,ee);continue}if(A[ee+1]!=="?")break;if(ee=M(A,++ee),ee.err)return ee}else if(A[ee]==="&"){const n=h(A,ee);if(n==-1)return u("InvalidChar","char '&' is not expected.",v(A,ee));ee=n}A[ee]==="<"&&ee--}}}var z;return P?j.length==1?u("InvalidTag","Unclosed tag '"+j[0].tagName+"'.",v(A,j[0].tagStartPos)):!(j.length>0)||u("InvalidXml","Invalid '"+JSON.stringify(j.map(ee=>ee.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 m(A,x){const j=k.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.",_(j[B]));if(j[B][3]===void 0&&!x.allowBooleanAttributes)return u("InvalidAttr","boolean attribute '"+j[B][2]+"' is not allowed.",_(j[B]));const z=j[B][2];if(!b(z))return u("InvalidAttr","Attribute '"+z+"' is an invalid name.",_(j[B]));if(P.hasOwnProperty(z))return u("InvalidAttr","Attribute '"+z+"' is repeated.",_(j[B]));P[z]=1}return!0}function h(A,x){if(A[++x]===";")return-1;if(A[x]==="#")return function(P,B){let z=/\d/;for(P[B]==="x"&&(B++,z=/[\da-fA-F]/);B<P.length;B++){if(P[B]===";")return B;if(!P[B].match(z))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 b(A){return k.isName(A)}function v(A,x){const j=A.substring(0,x).split(/\r?\n/);return{line:j.length,col:j[j.length-1].length+1}}function _(A){return A.startIndex+A[1].length}},6468:W=>{W.exports=function(S,y,k){this.tagname=S,this.parent=y,this.child={},this.attrsMap={},this.val=k,this.addChild=function(w){Array.isArray(this.child[w.tagname])?this.child[w.tagname].push(w):this.child[w.tagname]=[w]}}},3543:(W,S,y)=>{const k=y(7849),w=y(7849).buildOptions,g=y(6468),M=y(4153);"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,k.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(v,_){return v},attrValueProcessor:function(v,_){return v},stopNodes:[],alwaysCreateTextNode:!1};S.defaultOptions=s;const p=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","numParseOptions","stopNodes","alwaysCreateTextNode"];function c(v,_,A){return _&&(A.trimValues&&(_=_.trim()),_=f(_=A.tagValueProcessor(_,v),A.parseNodeValue,A.numParseOptions)),_}function l(v,_){if(_.ignoreNameSpace){const A=v.split(":"),x=v.charAt(0)==="/"?"/":"";if(A[0]==="xmlns")return"";A.length===2&&(v=x+A[1])}return v}function f(v,_,A){if(_&&typeof v=="string"){const x=v.trim();return x==="true"||x!=="false"&&M(v,A)}return k.isExist(v)?v:""}S.props=p;const m=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function h(v,_){if(!_.ignoreAttributes&&typeof v=="string"){v=v.replace(/\r?\n/g," ");const A=k.getAllMatches(v,m),x=A.length,j={};for(let P=0;P<x;P++){const B=l(A[P][1],_);B.length&&(A[P][4]!==void 0?(_.trimValues&&(A[P][4]=A[P][4].trim()),A[P][4]=_.attrValueProcessor(A[P][4],B),j[_.attributeNamePrefix+B]=f(A[P][4],_.parseAttributeValue,_.numParseOptions)):_.allowBooleanAttributes&&(j[_.attributeNamePrefix+B]=!0))}if(!Object.keys(j).length)return;if(_.attrNodeName){const P={};return P[_.attrNodeName]=j,P}return j}}function u(v,_){let A,x="";for(let j=_;j<v.length;j++){let P=v[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 b(v,_,A,x){const j=v.indexOf(_,A);if(j===-1)throw new Error(x);return j+_.length-1}S.getTraversalObj=function(v,_){v=v.replace(/\r\n?/g,`
|
|
61
|
+
`),_=w(_,s,p);const A=new g("!xml");let x=A,j="";for(let P=0;P<v.length;P++)if(v[P]==="<")if(v[P+1]==="/"){const B=b(v,">",P,"Closing Tag is not closed.");let z=v.substring(P+2,B).trim();if(_.ignoreNameSpace){const ee=z.indexOf(":");ee!==-1&&(z=z.substr(ee+1))}x&&(x.val?x.val=k.getValue(x.val)+""+c(z,j,_):x.val=c(z,j,_)),_.stopNodes.length&&_.stopNodes.includes(x.tagname)&&(x.child=[],x.attrsMap==null&&(x.attrsMap={}),x.val=v.substr(x.startIndex+1,P-x.startIndex-1)),x=x.parent,j="",P=B}else if(v[P+1]==="?")P=b(v,"?>",P,"Pi Tag is not closed.");else if(v.substr(P+1,3)==="!--")P=b(v,"-->",P,"Comment is not closed.");else if(v.substr(P+1,2)==="!D"){const B=b(v,">",P,"DOCTYPE is not closed.");P=v.substring(P,B).indexOf("[")>=0?v.indexOf("]>",P)+1:B}else if(v.substr(P+1,2)==="!["){const B=b(v,"]]>",P,"CDATA is not closed.")-2,z=v.substring(P+9,B);if(j&&(x.val=k.getValue(x.val)+""+c(x.tagname,j,_),j=""),_.cdataTagName){const ee=new g(_.cdataTagName,x,z);x.addChild(ee),x.val=k.getValue(x.val)+_.cdataPositionChar,z&&(ee.val=z)}else x.val=(x.val||"")+(z||"");P=B+2}else{const B=u(v,P+1);let z=B.data;const ee=B.index,J=z.indexOf(" ");let ae=z,e=!0;if(J!==-1&&(ae=z.substr(0,J).replace(/\s\s*$/,""),z=z.substr(J+1)),_.ignoreNameSpace){const r=ae.indexOf(":");r!==-1&&(ae=ae.substr(r+1),e=ae!==B.data.substr(r+1))}if(x&&j&&x.tagname!=="!xml"&&(x.val=k.getValue(x.val)+""+c(x.tagname,j,_)),z.length>0&&z.lastIndexOf("/")===z.length-1){ae[ae.length-1]==="/"?(ae=ae.substr(0,ae.length-1),z=ae):z=z.substr(0,z.length-1);const r=new g(ae,x,"");ae!==z&&(r.attrsMap=h(z,_)),x.addChild(r)}else{const r=new g(ae,x);_.stopNodes.length&&_.stopNodes.includes(r.tagname)&&(r.startIndex=ee),ae!==z&&e&&(r.attrsMap=h(z,_)),x.addChild(r),x=r}j="",P=ee}else j+=v[P];return A}},2806:W=>{W.exports=function(S,y){for(var k={},w=Object.keys(S),g=Array.isArray(y),M=0;M<w.length;M++){var s=w[M],p=S[s];(g?y.indexOf(s)!==-1:y(s,p,S))&&(k[s]=p)}return k}},4029:(W,S,y)=>{var k=y(5320),w=Object.prototype.toString,g=Object.prototype.hasOwnProperty,M=function(c,l,f){for(var m=0,h=c.length;m<h;m++)g.call(c,m)&&(f==null?l(c[m],m,c):l.call(f,c[m],m,c))},s=function(c,l,f){for(var m=0,h=c.length;m<h;m++)f==null?l(c.charAt(m),m,c):l.call(f,c.charAt(m),m,c)},p=function(c,l,f){for(var m in c)g.call(c,m)&&(f==null?l(c[m],m,c):l.call(f,c[m],m,c))};W.exports=function(c,l,f){if(!k(l))throw new TypeError("iterator must be a function");var m;arguments.length>=3&&(m=f),w.call(c)==="[object Array]"?M(c,l,m):typeof c=="string"?s(c,l,m):p(c,l,m)}},7648:W=>{var S="Function.prototype.bind called on incompatible ",y=Array.prototype.slice,k=Object.prototype.toString,w="[object Function]";W.exports=function(g){var M=this;if(typeof M!="function"||k.call(M)!==w)throw new TypeError(S+M);for(var s,p=y.call(arguments,1),c=Math.max(0,M.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=M.apply(this,p.concat(y.call(arguments)));return Object(h)===h?h:this}return M.apply(g,p.concat(y.call(arguments)))}),M.prototype){var m=function(){};m.prototype=M.prototype,s.prototype=new m,m.prototype=null}return s}},8612:(W,S,y)=>{var k=y(7648);W.exports=Function.prototype.bind||k},210:(W,S,y)=>{var k,w=SyntaxError,g=Function,M=TypeError,s=function(n){try{return g('"use strict"; return ('+n+").constructor;")()}catch(t){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(n){p=null}var c=function(){throw new M},l=p?function(){try{return c}catch(n){try{return p(arguments,"callee").get}catch(t){return c}}}():c,f=y(1405)(),m=Object.getPrototypeOf||function(n){return n.__proto__},h={},u=typeof Uint8Array=="undefined"?k:m(Uint8Array),b={"%AggregateError%":typeof AggregateError=="undefined"?k:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?k:ArrayBuffer,"%ArrayIteratorPrototype%":f?m([][Symbol.iterator]()):k,"%AsyncFromSyncIteratorPrototype%":k,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics=="undefined"?k:Atomics,"%BigInt%":typeof BigInt=="undefined"?k:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?k:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?k:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?k:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?k:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?k:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array=="undefined"?k:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?k:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?k:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?m(m([][Symbol.iterator]())):k,"%JSON%":typeof JSON=="object"?JSON:k,"%Map%":typeof Map=="undefined"?k:Map,"%MapIteratorPrototype%":typeof Map!="undefined"&&f?m(new Map()[Symbol.iterator]()):k,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?k:Promise,"%Proxy%":typeof Proxy=="undefined"?k:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?k:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?k:Set,"%SetIteratorPrototype%":typeof Set!="undefined"&&f?m(new Set()[Symbol.iterator]()):k,"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?k:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?m(""[Symbol.iterator]()):k,"%Symbol%":f?Symbol:k,"%SyntaxError%":w,"%ThrowTypeError%":l,"%TypedArray%":u,"%TypeError%":M,"%Uint8Array%":typeof Uint8Array=="undefined"?k:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?k:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?k:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?k:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?k:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?k:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?k:WeakSet};try{null.error}catch(n){var v=m(m(n));b["%Error.prototype%"]=v}var _=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=m(T.prototype))}return b[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),z=x.call(Function.call,String.prototype.replace),ee=x.call(Function.call,String.prototype.slice),J=x.call(Function.call,RegExp.prototype.exec),ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,e=/\\(\\)?/g,r=function(n){var t=ee(n,0,1),o=ee(n,-1);if(t==="%"&&o!=="%")throw new w("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&t!=="%")throw new w("invalid intrinsic syntax, expected opening `%`");var a=[];return z(n,ae,function(T,C,N,I){a[a.length]=N?z(I,e,"$1"):C||T}),a},i=function(n,t){var o,a=n;if(j(A,a)&&(a="%"+(o=A[a])[0]+"%"),j(b,a)){var T=b[a];if(T===h&&(T=_(a)),T===void 0&&!t)throw new M("intrinsic "+n+" exists, but is not available. Please file an issue!");return{alias:o,name:a,value:T}}throw new w("intrinsic "+n+" does not exist!")};W.exports=function(n,t){if(typeof n!="string"||n.length===0)throw new M("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new M('"allowMissing" argument must be a boolean');if(J(/^%?[^%]*%?$/,n)===null)throw new w("`%` 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,I=!1,R=T.alias;R&&(a=R[0],B(o,P([0,1],R)));for(var q=1,Z=!0;q<o.length;q+=1){var te=o[q],L=ee(te,0,1),X=ee(te,-1);if((L==='"'||L==="'"||L==="`"||X==='"'||X==="'"||X==="`")&&L!==X)throw new w("property names with quotes must have matching quotes");if(te!=="constructor"&&Z||(I=!0),j(b,C="%"+(a+="."+te)+"%"))N=b[C];else if(N!=null){if(!(te in N)){if(!t)throw new M("base intrinsic for "+n+" exists, but the property is not available.");return}if(p&&q+1>=o.length){var U=p(N,te);N=(Z=!!U)&&"get"in U&&!("originalValue"in U.get)?U.get:N[te]}else Z=j(N,te),N=N[te];Z&&!I&&(b[C]=N)}}return N}},7296:(W,S,y)=>{var k=y(210)("%Object.getOwnPropertyDescriptor%",!0);if(k)try{k([],"length")}catch(w){k=null}W.exports=k},1044:(W,S,y)=>{var k=y(210)("%Object.defineProperty%",!0),w=function(){if(k)try{return k({},"a",{value:1}),!0}catch(g){return!1}return!1};w.hasArrayLengthDefineBug=function(){if(!w())return null;try{return k([],"length",{value:1}).length!==1}catch(g){return!0}},W.exports=w},1405:(W,S,y)=>{var k=typeof Symbol!="undefined"&&Symbol,w=y(5419);W.exports=function(){return typeof k=="function"&&typeof Symbol=="function"&&typeof k("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&w()}},5419:W=>{W.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var S={},y=Symbol("test"),k=Object(y);if(typeof y=="string"||Object.prototype.toString.call(y)!=="[object Symbol]"||Object.prototype.toString.call(k)!=="[object Symbol]")return!1;for(y in S[y]=42,S)return!1;if(typeof Object.keys=="function"&&Object.keys(S).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(S).length!==0)return!1;var w=Object.getOwnPropertySymbols(S);if(w.length!==1||w[0]!==y||!Object.prototype.propertyIsEnumerable.call(S,y))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var g=Object.getOwnPropertyDescriptor(S,y);if(g.value!==42||g.enumerable!==!0)return!1}return!0}},6410:(W,S,y)=>{var k=y(5419);W.exports=function(){return k()&&!!Symbol.toStringTag}},7642:(W,S,y)=>{var k=y(8612);W.exports=k.call(Function.call,Object.prototype.hasOwnProperty)},3349:(W,S,y)=>{var k=y(9509).Buffer,w=y(8473).Transform;function g(M){w.call(this),this._block=k.allocUnsafe(M),this._blockSize=M,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}y(5717)(g,w),g.prototype._transform=function(M,s,p){var c=null;try{this.update(M,s)}catch(l){c=l}p(c)},g.prototype._flush=function(M){var s=null;try{this.push(this.digest())}catch(p){s=p}M(s)},g.prototype.update=function(M,s){if(function(h,u){if(!k.isBuffer(h)&&typeof h!="string")throw new TypeError("Data must be a string or a buffer")}(M),this._finalized)throw new Error("Digest already called");k.isBuffer(M)||(M=k.from(M,s));for(var p=this._block,c=0;this._blockOffset+M.length-c>=this._blockSize;){for(var l=this._blockOffset;l<this._blockSize;)p[l++]=M[c++];this._update(),this._blockOffset=0}for(;c<M.length;)p[this._blockOffset++]=M[c++];for(var f=0,m=8*M.length;m>0;++f)this._length[f]+=m,(m=this._length[f]/4294967296|0)>0&&(this._length[f]-=4294967296*m);return this},g.prototype._update=function(){throw new Error("_update is not implemented")},g.prototype.digest=function(M){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var s=this._digest();M!==void 0&&(s=s.toString(M)),this._block.fill(0),this._blockOffset=0;for(var p=0;p<4;++p)this._length[p]=0;return s},g.prototype._digest=function(){throw new Error("_digest is not implemented")},W.exports=g},3715:(W,S,y)=>{var k=S;k.utils=y(6436),k.common=y(5772),k.sha=y(9041),k.ripemd=y(2949),k.hmac=y(2344),k.sha1=k.sha.sha1,k.sha256=k.sha.sha256,k.sha224=k.sha.sha224,k.sha384=k.sha.sha384,k.sha512=k.sha.sha512,k.ripemd160=k.ripemd.ripemd160},5772:(W,S,y)=>{var k=y(6436),w=y(9746);function g(){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}S.BlockHash=g,g.prototype.update=function(M,s){if(M=k.toArray(M,s),this.pending?this.pending=this.pending.concat(M):this.pending=M,this.pendingTotal+=M.length,this.pending.length>=this._delta8){var p=(M=this.pending).length%this._delta8;this.pending=M.slice(M.length-p,M.length),this.pending.length===0&&(this.pending=null),M=k.join32(M,0,M.length-p,this.endian);for(var c=0;c<M.length;c+=this._delta32)this._update(M,c,c+this._delta32)}return this},g.prototype.digest=function(M){return this.update(this._pad()),w(this.pending===null),this._digest(M)},g.prototype._pad=function(){var M=this.pendingTotal,s=this._delta8,p=s-(M+this.padLength)%s,c=new Array(p+this.padLength);c[0]=128;for(var l=1;l<p;l++)c[l]=0;if(M<<=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++]=M>>>24&255,c[l++]=M>>>16&255,c[l++]=M>>>8&255,c[l++]=255&M}else for(c[l++]=255&M,c[l++]=M>>>8&255,c[l++]=M>>>16&255,c[l++]=M>>>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:(W,S,y)=>{var k=y(6436),w=y(9746);function g(M,s,p){if(!(this instanceof g))return new g(M,s,p);this.Hash=M,this.blockSize=M.blockSize/8,this.outSize=M.outSize/8,this.inner=null,this.outer=null,this._init(k.toArray(s,p))}W.exports=g,g.prototype._init=function(M){M.length>this.blockSize&&(M=new this.Hash().update(M).digest()),w(M.length<=this.blockSize);for(var s=M.length;s<this.blockSize;s++)M.push(0);for(s=0;s<M.length;s++)M[s]^=54;for(this.inner=new this.Hash().update(M),s=0;s<M.length;s++)M[s]^=106;this.outer=new this.Hash().update(M)},g.prototype.update=function(M,s){return this.inner.update(M,s),this},g.prototype.digest=function(M){return this.outer.update(this.inner.digest()),this.outer.digest(M)}},2949:(W,S,y)=>{var k=y(6436),w=y(5772),g=k.rotl32,M=k.sum32,s=k.sum32_3,p=k.sum32_4,c=w.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 m(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}k.inherits(l,c),S.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],z=this.h[3],ee=this.h[4],J=j,ae=P,e=B,r=z,i=ee,n=0;n<80;n++){var t=M(g(p(j,f(n,P,B,z),A[u[n]+x],m(n)),v[n]),ee);j=ee,ee=z,z=g(B,10),B=P,P=t,t=M(g(p(J,f(79-n,ae,e,r),A[b[n]+x],h(n)),_[n]),i),J=i,i=r,r=g(e,10),e=ae,ae=t}t=s(this.h[1],B,r),this.h[1]=s(this.h[2],z,i),this.h[2]=s(this.h[3],ee,J),this.h[3]=s(this.h[4],j,ae),this.h[4]=s(this.h[0],P,e),this.h[0]=t},l.prototype._digest=function(A){return A==="hex"?k.toHex32(this.h,"little"):k.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],b=[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],v=[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],_=[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:(W,S,y)=>{S.sha1=y(4761),S.sha224=y(799),S.sha256=y(9344),S.sha384=y(772),S.sha512=y(5900)},4761:(W,S,y)=>{var k=y(6436),w=y(5772),g=y(7038),M=k.rotl32,s=k.sum32,p=k.sum32_5,c=g.ft_1,l=w.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function m(){if(!(this instanceof m))return new m;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}k.inherits(m,l),W.exports=m,m.blockSize=512,m.outSize=160,m.hmacStrength=80,m.padLength=64,m.prototype._update=function(h,u){for(var b=this.W,v=0;v<16;v++)b[v]=h[u+v];for(;v<b.length;v++)b[v]=M(b[v-3]^b[v-8]^b[v-14]^b[v-16],1);var _=this.h[0],A=this.h[1],x=this.h[2],j=this.h[3],P=this.h[4];for(v=0;v<b.length;v++){var B=~~(v/20),z=p(M(_,5),c(B,A,x,j),P,b[v],f[B]);P=j,j=x,x=M(A,30),A=_,_=z}this.h[0]=s(this.h[0],_),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)},m.prototype._digest=function(h){return h==="hex"?k.toHex32(this.h,"big"):k.split32(this.h,"big")}},799:(W,S,y)=>{var k=y(6436),w=y(9344);function g(){if(!(this instanceof g))return new g;w.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}k.inherits(g,w),W.exports=g,g.blockSize=512,g.outSize=224,g.hmacStrength=192,g.padLength=64,g.prototype._digest=function(M){return M==="hex"?k.toHex32(this.h.slice(0,7),"big"):k.split32(this.h.slice(0,7),"big")}},9344:(W,S,y)=>{var k=y(6436),w=y(5772),g=y(7038),M=y(9746),s=k.sum32,p=k.sum32_4,c=k.sum32_5,l=g.ch32,f=g.maj32,m=g.s0_256,h=g.s1_256,u=g.g0_256,b=g.g1_256,v=w.BlockHash,_=[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;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=_,this.W=new Array(64)}k.inherits(A,v),W.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(b(P[B-2]),P[B-7],u(P[B-15]),P[B-16]);var z=this.h[0],ee=this.h[1],J=this.h[2],ae=this.h[3],e=this.h[4],r=this.h[5],i=this.h[6],n=this.h[7];for(M(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(m(z),f(z,ee,J));n=i,i=r,r=e,e=s(ae,t),ae=J,J=ee,ee=z,z=s(t,o)}this.h[0]=s(this.h[0],z),this.h[1]=s(this.h[1],ee),this.h[2]=s(this.h[2],J),this.h[3]=s(this.h[3],ae),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"?k.toHex32(this.h,"big"):k.split32(this.h,"big")}},772:(W,S,y)=>{var k=y(6436),w=y(5900);function g(){if(!(this instanceof g))return new g;w.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}k.inherits(g,w),W.exports=g,g.blockSize=1024,g.outSize=384,g.hmacStrength=192,g.padLength=128,g.prototype._digest=function(M){return M==="hex"?k.toHex32(this.h.slice(0,12),"big"):k.split32(this.h.slice(0,12),"big")}},5900:(W,S,y)=>{var k=y(6436),w=y(5772),g=y(9746),M=k.rotr64_hi,s=k.rotr64_lo,p=k.shr64_hi,c=k.shr64_lo,l=k.sum64,f=k.sum64_hi,m=k.sum64_lo,h=k.sum64_4_hi,u=k.sum64_4_lo,b=k.sum64_5_hi,v=k.sum64_5_lo,_=w.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;_.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 z(n,t,o,a,T,C){var N=t&a^t&C^a&C;return N<0&&(N+=4294967296),N}function ee(n,t){var o=M(n,t,28)^M(t,n,2)^M(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 ae(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=M(n,t,1)^M(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}k.inherits(x,_),W.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=(L=o[a-4],X=o[a-3],U=void 0,(U=M(L,X,19)^M(X,L,29)^p(L,X,6))<0&&(U+=4294967296),U),C=i(o[a-4],o[a-3]),N=o[a-14],I=o[a-13],R=e(o[a-30],o[a-29]),q=r(o[a-30],o[a-29]),Z=o[a-32],te=o[a-31];o[a]=h(T,C,N,I,R,q,Z,te),o[a+1]=u(T,C,N,I,R,q,Z,te)}var L,X,U},x.prototype._update=function(n,t){this._prepareBlock(n,t);var o,a,T,C=this.W,N=this.h[0],I=this.h[1],R=this.h[2],q=this.h[3],Z=this.h[4],te=this.h[5],L=this.h[6],X=this.h[7],U=this.h[8],K=this.h[9],se=this.h[10],ne=this.h[11],ce=this.h[12],ke=this.h[13],me=this.h[14],ve=this.h[15];g(this.k.length===C.length);for(var je=0;je<C.length;je+=2){var we=me,Ae=ve,G=(T=void 0,(T=M(o=U,a=K,14)^M(o,a,18)^M(a,o,9))<0&&(T+=4294967296),T),Y=ae(U,K),F=j(U,0,se,0,ce),$=P(0,K,0,ne,0,ke),D=this.k[je],Q=this.k[je+1],he=C[je],le=C[je+1],pe=b(we,Ae,G,Y,F,$,D,Q,he,le),it=v(we,Ae,G,Y,F,$,D,Q,he,le);we=ee(N,I),Ae=J(N,I),G=B(N,0,R,0,Z),Y=z(0,I,0,q,0,te);var _e=f(we,Ae,G,Y),Te=m(we,Ae,G,Y);me=ce,ve=ke,ce=se,ke=ne,se=U,ne=K,U=f(L,X,pe,it),K=m(X,X,pe,it),L=Z,X=te,Z=R,te=q,R=N,q=I,N=f(pe,it,_e,Te),I=m(pe,it,_e,Te)}l(this.h,0,N,I),l(this.h,2,R,q),l(this.h,4,Z,te),l(this.h,6,L,X),l(this.h,8,U,K),l(this.h,10,se,ne),l(this.h,12,ce,ke),l(this.h,14,me,ve)},x.prototype._digest=function(n){return n==="hex"?k.toHex32(this.h,"big"):k.split32(this.h,"big")}},7038:(W,S,y)=>{var k=y(6436).rotr32;function w(s,p,c){return s&p^~s&c}function g(s,p,c){return s&p^s&c^p&c}function M(s,p,c){return s^p^c}S.ft_1=function(s,p,c,l){return s===0?w(p,c,l):s===1||s===3?M(p,c,l):s===2?g(p,c,l):void 0},S.ch32=w,S.maj32=g,S.p32=M,S.s0_256=function(s){return k(s,2)^k(s,13)^k(s,22)},S.s1_256=function(s){return k(s,6)^k(s,11)^k(s,25)},S.g0_256=function(s){return k(s,7)^k(s,18)^s>>>3},S.g1_256=function(s){return k(s,17)^k(s,19)^s>>>10}},6436:(W,S,y)=>{var k=y(9746),w=y(5717);function g(c,l){return(64512&c.charCodeAt(l))==55296&&!(l<0||l+1>=c.length)&&(64512&c.charCodeAt(l+1))==56320}function M(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}S.inherits=w,S.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 m=0,h=0;h<c.length;h++){var u=c.charCodeAt(h);u<128?f[m++]=u:u<2048?(f[m++]=u>>6|192,f[m++]=63&u|128):g(c,h)?(u=65536+((1023&u)<<10)+(1023&c.charCodeAt(++h)),f[m++]=u>>18|240,f[m++]=u>>12&63|128,f[m++]=u>>6&63|128,f[m++]=63&u|128):(f[m++]=u>>12|224,f[m++]=u>>6&63|128,f[m++]=63&u|128)}else for(h=0;h<c.length;h++)f[h]=0|c[h];return f},S.toHex=function(c){for(var l="",f=0;f<c.length;f++)l+=s(c[f].toString(16));return l},S.htonl=M,S.toHex32=function(c,l){for(var f="",m=0;m<c.length;m++){var h=c[m];l==="little"&&(h=M(h)),f+=p(h.toString(16))}return f},S.zero2=s,S.zero8=p,S.join32=function(c,l,f,m){var h=f-l;k(h%4==0);for(var u=new Array(h/4),b=0,v=l;b<u.length;b++,v+=4){var _;_=m==="big"?c[v]<<24|c[v+1]<<16|c[v+2]<<8|c[v+3]:c[v+3]<<24|c[v+2]<<16|c[v+1]<<8|c[v],u[b]=_>>>0}return u},S.split32=function(c,l){for(var f=new Array(4*c.length),m=0,h=0;m<c.length;m++,h+=4){var u=c[m];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},S.rotr32=function(c,l){return c>>>l|c<<32-l},S.rotl32=function(c,l){return c<<l|c>>>32-l},S.sum32=function(c,l){return c+l>>>0},S.sum32_3=function(c,l,f){return c+l+f>>>0},S.sum32_4=function(c,l,f,m){return c+l+f+m>>>0},S.sum32_5=function(c,l,f,m,h){return c+l+f+m+h>>>0},S.sum64=function(c,l,f,m){var h=c[l],u=m+c[l+1]>>>0,b=(u<m?1:0)+f+h;c[l]=b>>>0,c[l+1]=u},S.sum64_hi=function(c,l,f,m){return(l+m>>>0<l?1:0)+c+f>>>0},S.sum64_lo=function(c,l,f,m){return l+m>>>0},S.sum64_4_hi=function(c,l,f,m,h,u,b,v){var _=0,A=l;return _+=(A=A+m>>>0)<l?1:0,_+=(A=A+u>>>0)<u?1:0,c+f+h+b+(_+=(A=A+v>>>0)<v?1:0)>>>0},S.sum64_4_lo=function(c,l,f,m,h,u,b,v){return l+m+u+v>>>0},S.sum64_5_hi=function(c,l,f,m,h,u,b,v,_,A){var x=0,j=l;return x+=(j=j+m>>>0)<l?1:0,x+=(j=j+u>>>0)<u?1:0,x+=(j=j+v>>>0)<v?1:0,c+f+h+b+_+(x+=(j=j+A>>>0)<A?1:0)>>>0},S.sum64_5_lo=function(c,l,f,m,h,u,b,v,_,A){return l+m+u+v+A>>>0},S.rotr64_hi=function(c,l,f){return(l<<32-f|c>>>f)>>>0},S.rotr64_lo=function(c,l,f){return(c<<32-f|l>>>f)>>>0},S.shr64_hi=function(c,l,f){return c>>>f},S.shr64_lo=function(c,l,f){return(c<<32-f|l>>>f)>>>0}},2156:(W,S,y)=>{var k=y(3715),w=y(4504),g=y(9746);function M(s){if(!(this instanceof M))return new M(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=w.toArray(s.entropy,s.entropyEnc||"hex"),c=w.toArray(s.nonce,s.nonceEnc||"hex"),l=w.toArray(s.pers,s.persEnc||"hex");g(p.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(p,c,l)}W.exports=M,M.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},M.prototype._hmac=function(){return new k.hmac(this.hash,this.K)},M.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())},M.prototype.reseed=function(s,p,c,l){typeof p!="string"&&(l=c,c=p,p=null),s=w.toArray(s,p),c=w.toArray(c,l),g(s.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(s.concat(c||[])),this._reseed=1},M.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=w.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 m=f.slice(0,s);return this._update(c),this._reseed++,w.encode(m,p)}},9267:(W,S,y)=>{var k=y(8501),w=y(8575),g=W.exports;for(var M in k)k.hasOwnProperty(M)&&(g[M]=k[M]);function s(p){if(typeof p=="string"&&(p=w.parse(p)),p.protocol||(p.protocol="https:"),p.protocol!=="https:")throw new Error('Protocol "'+p.protocol+'" not supported. Expected "https:"');return p}g.request=function(p,c){return p=s(p),k.request.call(this,p,c)},g.get=function(p,c){return p=s(p),k.get.call(this,p,c)}},645:(W,S)=>{S.read=function(y,k,w,g,M){var s,p,c=8*M-g-1,l=(1<<c)-1,f=l>>1,m=-7,h=w?M-1:0,u=w?-1:1,b=y[k+h];for(h+=u,s=b&(1<<-m)-1,b>>=-m,m+=c;m>0;s=256*s+y[k+h],h+=u,m-=8);for(p=s&(1<<-m)-1,s>>=-m,m+=g;m>0;p=256*p+y[k+h],h+=u,m-=8);if(s===0)s=1-f;else{if(s===l)return p?NaN:1/0*(b?-1:1);p+=Math.pow(2,g),s-=f}return(b?-1:1)*p*Math.pow(2,s-g)},S.write=function(y,k,w,g,M,s){var p,c,l,f=8*s-M-1,m=(1<<f)-1,h=m>>1,u=M===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=g?0:s-1,v=g?1:-1,_=k<0||k===0&&1/k<0?1:0;for(k=Math.abs(k),isNaN(k)||k===1/0?(c=isNaN(k)?1:0,p=m):(p=Math.floor(Math.log(k)/Math.LN2),k*(l=Math.pow(2,-p))<1&&(p--,l*=2),(k+=p+h>=1?u/l:u*Math.pow(2,1-h))*l>=2&&(p++,l/=2),p+h>=m?(c=0,p=m):p+h>=1?(c=(k*l-1)*Math.pow(2,M),p+=h):(c=k*Math.pow(2,h-1)*Math.pow(2,M),p=0));M>=8;y[w+b]=255&c,b+=v,c/=256,M-=8);for(p=p<<M|c,f+=M;f>0;y[w+b]=255&p,b+=v,p/=256,f-=8);y[w+b-v]|=128*_}},5717:W=>{typeof Object.create=="function"?W.exports=function(S,y){y&&(S.super_=y,S.prototype=Object.create(y.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}))}:W.exports=function(S,y){if(y){S.super_=y;var k=function(){};k.prototype=y.prototype,S.prototype=new k,S.prototype.constructor=S}}},6512:function(W){(function(S){const y="(0?\\d+|0x[a-f0-9]+)",k={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")},w=new RegExp("^0[0-7]+$","i"),g=new RegExp("^0x[a-f0-9]+$","i"),M="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",p={zoneIndex:new RegExp(M,"i"),native:new RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${M})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${y}\\.${y}\\.${y}\\.${y}(${M})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${y}\\.${y}\\.${y}\\.${y}(${M})?$`,"i")};function c(u,b){if(u.indexOf("::")!==u.lastIndexOf("::"))return null;let v,_,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>b)return null;for(_=b-A,v=":";_--;)v+="0:";return(u=u.replace("::",v))[0]===":"&&(u=u.slice(1)),u[u.length-1]===":"&&(u=u.slice(0,-1)),{parts:b=function(){const P=u.split(":"),B=[];for(let z=0;z<P.length;z++)B.push(parseInt(P[z],16));return B}(),zoneId:j}}function l(u,b,v,_){if(u.length!==b.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let A,x=0;for(;_>0;){if(A=v-_,A<0&&(A=0),u[x]>>A!=b[x]>>A)return!1;_-=v,x+=1}return!0}function f(u){if(g.test(u))return parseInt(u,16);if(u[0]==="0"&&!isNaN(parseInt(u[1],10))){if(w.test(u))return parseInt(u,8);throw new Error(`ipaddr: cannot parse ${u} as octal`)}return parseInt(u,10)}function m(u,b){for(;u.length<b;)u=`0${u}`;return u}const h={};h.IPv4=function(){function u(b){if(b.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let v,_;for(v=0;v<b.length;v++)if(_=b[v],!(0<=_&&_<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=b}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(b,v){let _;if(v===void 0&&(_=b,b=_[0],v=_[1]),b.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,b.octets,8,v)},u.prototype.prefixLengthFromSubnetMask=function(){let b=0,v=!1;const _={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 _)||(j=_[x],v&&j!==0))return null;j!==8&&(v=!0),b+=j}return 32-b},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 b=this.parseCIDR(u),v=b[0].toByteArray(),_=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),A=[];let x=0;for(;x<4;)A.push(parseInt(v[x],10)|255^parseInt(_[x],10)),x++;return new this(A)}catch(b){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(b){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 b,v,_,A,x;try{for(b=this.parseCIDR(u),_=b[0].toByteArray(),x=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),A=[],v=0;v<4;)A.push(parseInt(_[v],10)&parseInt(x[v],10)),v++;return new this(A)}catch(j){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.parse=function(u){const b=this.parser(u);if(b===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(b)},h.IPv4.parseCIDR=function(u){let b;if(b=u.match(/^(.+)\/(\d+)$/)){const v=parseInt(b[2]);if(v>=0&&v<=32){const _=[this.parse(b[1]),v];return Object.defineProperty(_,"toString",{value:function(){return this.join("/")}}),_}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(u){let b,v,_;if(b=u.match(k.fourOctet))return function(){const A=b.slice(1,6),x=[];for(let j=0;j<A.length;j++)v=A[j],x.push(f(v));return x}();if(b=u.match(k.longValue)){if(_=f(b[1]),_>4294967295||_<0)throw new Error("ipaddr: address outside defined range");return function(){const A=[];let x;for(x=0;x<=24;x+=8)A.push(_>>x&255);return A}().reverse()}return(b=u.match(k.twoOctet))?function(){const A=b.slice(1,4),x=[];if(_=f(A[1]),_>16777215||_<0)throw new Error("ipaddr: address outside defined range");return x.push(f(A[0])),x.push(_>>16&255),x.push(_>>8&255),x.push(255&_),x}():(b=u.match(k.threeOctet))?function(){const A=b.slice(1,5),x=[];if(_=f(A[2]),_>65535||_<0)throw new Error("ipaddr: address outside defined range");return x.push(f(A[0])),x.push(f(A[1])),x.push(_>>8&255),x.push(255&_),x}():null},h.IPv4.subnetMaskFromPrefixLength=function(u){if((u=parseInt(u))<0||u>32)throw new Error("ipaddr: invalid IPv4 prefix length");const b=[0,0,0,0];let v=0;const _=Math.floor(u/8);for(;v<_;)b[v]=255,v++;return _<4&&(b[_]=Math.pow(2,u%8)-1<<8-u%8),new this(b)},h.IPv6=function(){function u(b,v){let _,A;if(b.length===16)for(this.parts=[],_=0;_<=14;_+=2)this.parts.push(b[_]<<8|b[_+1]);else{if(b.length!==8)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=b}for(_=0;_<this.parts.length;_++)if(A=this.parts[_],!(0<=A&&A<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");v&&(this.zoneId=v)}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(b,v){let _;if(v===void 0&&(_=b,b=_[0],v=_[1]),b.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,b.parts,16,v)},u.prototype.prefixLengthFromSubnetMask=function(){let b=0,v=!1;const _={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 _)||(x=_[A],v&&x!==0))return null;x!==16&&(v=!0),b+=x}return 128-b},u.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},u.prototype.toByteArray=function(){let b;const v=[],_=this.parts;for(let A=0;A<_.length;A++)b=_[A],v.push(b>>8),v.push(255&b);return v},u.prototype.toFixedLengthString=function(){const b=function(){const _=[];for(let A=0;A<this.parts.length;A++)_.push(m(this.parts[A].toString(16),4));return _}.call(this).join(":");let v="";return this.zoneId&&(v=`%${this.zoneId}`),b+v},u.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");const b=this.parts.slice(-2),v=b[0],_=b[1];return new h.IPv4([v>>8,255&v,_>>8,255&_])},u.prototype.toNormalizedString=function(){const b=function(){const _=[];for(let A=0;A<this.parts.length;A++)_.push(this.parts[A].toString(16));return _}.call(this).join(":");let v="";return this.zoneId&&(v=`%${this.zoneId}`),b+v},u.prototype.toRFC5952String=function(){const b=/((^|:)(0(:|$)){2,})/g,v=this.toNormalizedString();let _,A=0,x=-1;for(;_=b.exec(v);)_[0].length>x&&(A=_.index,x=_[0].length);return x<0?v:`${v.substring(0,A)}::${v.substring(A+x)}`},u.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},u}(),h.IPv6.broadcastAddressFromCIDR=function(u){try{const b=this.parseCIDR(u),v=b[0].toByteArray(),_=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),A=[];let x=0;for(;x<16;)A.push(parseInt(v[x],10)|255^parseInt(_[x],10)),x++;return new this(A)}catch(b){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${b})`)}},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 b=this.parser(u);return new this(b.parts,b.zoneId),!0}catch(b){return!1}},h.IPv6.networkAddressFromCIDR=function(u){let b,v,_,A,x;try{for(b=this.parseCIDR(u),_=b[0].toByteArray(),x=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),A=[],v=0;v<16;)A.push(parseInt(_[v],10)&parseInt(x[v],10)),v++;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 b=this.parser(u);if(b.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(b.parts,b.zoneId)},h.IPv6.parseCIDR=function(u){let b,v,_;if((v=u.match(/^(.+)\/(\d+)$/))&&(b=parseInt(v[2]),b>=0&&b<=128))return _=[this.parse(v[1]),b],Object.defineProperty(_,"toString",{value:function(){return this.join("/")}}),_;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(u){let b,v,_,A,x,j;if(_=u.match(p.deprecatedTransitional))return this.parser(`::ffff:${_[1]}`);if(p.native.test(u))return c(u,8);if((_=u.match(p.transitional))&&(j=_[6]||"",b=c(_[1].slice(0,-1)+j,6),b.parts)){for(x=[parseInt(_[2]),parseInt(_[3]),parseInt(_[4]),parseInt(_[5])],v=0;v<x.length;v++)if(A=x[v],!(0<=A&&A<=255))return null;return b.parts.push(x[0]<<8|x[1]),b.parts.push(x[2]<<8|x[3]),{parts:b.parts,zoneId:b.zoneId}}return null},h.IPv6.subnetMaskFromPrefixLength=function(u){if((u=parseInt(u))<0||u>128)throw new Error("ipaddr: invalid IPv6 prefix length");const b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let v=0;const _=Math.floor(u/8);for(;v<_;)b[v]=255,v++;return _<16&&(b[_]=Math.pow(2,u%8)-1<<8-u%8),new this(b)},h.fromByteArray=function(u){const b=u.length;if(b===4)return new h.IPv4(u);if(b===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(b){try{return h.IPv4.parseCIDR(u)}catch(v){throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},h.process=function(u){const b=this.parse(u);return b.kind()==="ipv6"&&b.isIPv4MappedAddress()?b.toIPv4Address():b},h.subnetMatch=function(u,b,v){let _,A,x,j;for(A in v==null&&(v="unicast"),b)if(Object.prototype.hasOwnProperty.call(b,A)){for(x=b[A],!x[0]||x[0]instanceof Array||(x=[x]),_=0;_<x.length;_++)if(j=x[_],u.kind()===j[0].kind()&&u.match.apply(u,j))return A}return v},W.exports?W.exports=h:S.ipaddr=h})(this)},2584:(W,S,y)=>{var k=y(6410)(),w=y(1924)("Object.prototype.toString"),g=function(p){return!(k&&p&&typeof p=="object"&&Symbol.toStringTag in p)&&w(p)==="[object Arguments]"},M=function(p){return!!g(p)||p!==null&&typeof p=="object"&&typeof p.length=="number"&&p.length>=0&&w(p)!=="[object Array]"&&w(p.callee)==="[object Function]"},s=function(){return g(arguments)}();g.isLegacyArguments=M,W.exports=s?g:M},5320:W=>{var S,y,k=Function.prototype.toString,w=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof w=="function"&&typeof Object.defineProperty=="function")try{S=Object.defineProperty({},"length",{get:function(){throw y}}),y={},w(function(){throw 42},null,S)}catch(h){h!==y&&(w=null)}else w=null;var g=/^\s*class\b/,M=function(h){try{var u=k.call(h);return g.test(u)}catch(b){return!1}},s=function(h){try{return!M(h)&&(k.call(h),!0)}catch(u){return!1}},p=Object.prototype.toString,c=typeof Symbol=="function"&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if(typeof document=="object"){var m=document.all;p.call(m)===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(b){}return!1})}W.exports=w?function(h){if(f(h))return!0;if(!h||typeof h!="function"&&typeof h!="object")return!1;try{w(h,null,S)}catch(u){if(u!==y)return!1}return!M(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(M(h))return!1;var u=p.call(h);return!(u!=="[object Function]"&&u!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(u))&&s(h)}},8662:(W,S,y)=>{var k,w=Object.prototype.toString,g=Function.prototype.toString,M=/^\s*(?:function)?\*/,s=y(6410)(),p=Object.getPrototypeOf;W.exports=function(c){if(typeof c!="function")return!1;if(M.test(g.call(c)))return!0;if(!s)return w.call(c)==="[object GeneratorFunction]";if(!p)return!1;if(k===void 0){var l=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(f){}}();k=!!l&&p(l)}return p(c)===k}},8611:W=>{W.exports=function(S){return S!=S}},360:(W,S,y)=>{var k=y(5559),w=y(4289),g=y(8611),M=y(9415),s=y(3194),p=k(M(),Number);w(p,{getPolyfill:M,implementation:g,shim:s}),W.exports=p},9415:(W,S,y)=>{var k=y(8611);W.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:k}},3194:(W,S,y)=>{var k=y(4289),w=y(9415);W.exports=function(){var g=w();return k(Number,{isNaN:g},{isNaN:function(){return Number.isNaN!==g}}),g}},5692:(W,S,y)=>{var k=y(4029),w=y(3083),g=y(1924),M=g("Object.prototype.toString"),s=y(6410)(),p=y(7296),c=typeof globalThis=="undefined"?y.g:globalThis,l=w(),f=g("Array.prototype.indexOf",!0)||function(b,v){for(var _=0;_<b.length;_+=1)if(b[_]===v)return _;return-1},m=g("String.prototype.slice"),h={},u=Object.getPrototypeOf;s&&p&&u&&k(l,function(b){var v=new c[b];if(Symbol.toStringTag in v){var _=u(v),A=p(_,Symbol.toStringTag);if(!A){var x=u(_);A=p(x,Symbol.toStringTag)}h[b]=A.get}}),W.exports=function(b){if(!b||typeof b!="object")return!1;if(!s||!(Symbol.toStringTag in b)){var v=m(M(b),8,-1);return f(l,v)>-1}return!!p&&function(_){var A=!1;return k(h,function(x,j){if(!A)try{A=x.call(_)===j}catch(P){}}),A}(b)}},6650:(W,S,y)=>{var k=y(8764).Buffer,w=y(9539),g=y(2830).Transform;W.exports=function(s){return new M(s)};var M=W.exports.JSONStream=function(s){s=s||{},g.call(this,s),this._writableState.objectMode=!1,this._readableState.objectMode=!0,this._async=s.async||!1};w.inherits(M,g),M.prototype._transform=function(s,p,c){k.isBuffer(s)||(s=new k(s)),this._buffer&&(s=k.concat([this._buffer,s]));for(var l=0,f=0;++l<=s.length;)if(s[l]===10||l===s.length){var m;try{m=JSON.parse(s.slice(f,l))}catch(h){}m&&(this.push(m),m=null),s[l]===10&&(f=++l)}return this._buffer=s.slice(f),this._async?void setImmediate(c):void c()}},6486:function(W,S,y){var k;W=y.nmd(W),function(){var w,g=200,M="Expected a function",s="__lodash_hash_undefined__",p="__lodash_placeholder__",c=1,l=2,f=4,m=1,h=2,u=1,b=2,v=4,_=8,A=16,x=32,j=64,P=128,B=256,z=512,ee=800,J=16,ae=1/0,e=9007199254740991,r=17976931348623157e292,i=NaN,n=4294967295,t=n-1,o=n>>>1,a=[["ary",P],["bind",u],["bindKey",b],["curry",_],["curryRight",A],["flip",z],["partial",x],["partialRight",j],["rearg",B]],T="[object Arguments]",C="[object Array]",N="[object AsyncFunction]",I="[object Boolean]",R="[object Date]",q="[object DOMException]",Z="[object Error]",te="[object Function]",L="[object GeneratorFunction]",X="[object Map]",U="[object Number]",K="[object Null]",se="[object Object]",ne="[object Promise]",ce="[object Proxy]",ke="[object RegExp]",me="[object Set]",ve="[object String]",je="[object Symbol]",we="[object Undefined]",Ae="[object WeakMap]",G="[object ArrayBuffer]",Y="[object DataView]",F="[object Float32Array]",$="[object Float64Array]",D="[object Int8Array]",Q="[object Int16Array]",he="[object Int32Array]",le="[object Uint8Array]",pe="[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,vt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\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 (.+)\] \*/,Lt=/,? & /,De=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Qe=/[()=,{}\[\]\/\s]/,zt=/\\(\\)?/g,Fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Je=/\w*$/,$t=/^[-+]0x[0-9a-f]+$/i,qe=/^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",cn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",on="\\u2700-\\u27bf",ln="a-z\\xdf-\\xf6\\xf8-\\xff",hn="A-Z\\xc0-\\xd6\\xd8-\\xde",fn="\\ufe0e\\ufe0f",pn="\\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",dn="["+Gt+"]",mn="["+pn+"]",Xt="["+cn+"]",gn="\\d+",bn="["+on+"]",en="["+ln+"]",tn="[^"+Gt+pn+gn+on+ln+hn+"]",Jt="\\ud83c[\\udffb-\\udfff]",yn="[^"+Gt+"]",sn="(?:\\ud83c[\\udde6-\\uddff]){2}",oi="[\\ud800-\\udbff][\\udc00-\\udfff]",ei="["+hn+"]",Tr="\\u200d",Or="(?:"+en+"|"+tn+")",Yr="(?:"+ei+"|"+tn+")",jr="(?:['’](?:d|ll|m|re|s|t|ve))?",zi="(?:['’](?:D|LL|M|RE|S|T|VE))?",Nr="(?:"+Xt+"|"+Jt+")?",Rr="["+fn+"]?",Jr=Rr+Nr+"(?:"+Tr+"(?:"+[yn,sn,oi].join("|")+")"+Rr+Nr+")*",xe="(?:"+[bn,sn,oi].join("|")+")"+Jr,ge="(?:"+[yn+Xt+"?",Xt,sn,oi,dn].join("|")+")",be=RegExp("['’]","g"),Oe=RegExp(Xt,"g"),He=RegExp(Jt+"(?="+Jt+")|"+ge+Jr,"g"),ze=RegExp([ei+"?"+en+"+"+jr+"(?="+[mn,ei,"$"].join("|")+")",Yr+"+"+zi+"(?="+[mn,ei+Or,"$"].join("|")+")",ei+"?"+Or+"+"+jr,ei+"+"+zi,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gn,xe].join("|"),"g"),Ye=RegExp("["+Tr+Gt+cn+fn+"]"),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[F]=Et[$]=Et[D]=Et[Q]=Et[he]=Et[le]=Et[pe]=Et[it]=Et[_e]=!0,Et[T]=Et[C]=Et[G]=Et[I]=Et[Y]=Et[R]=Et[Z]=Et[te]=Et[X]=Et[U]=Et[se]=Et[ke]=Et[me]=Et[ve]=Et[Ae]=!1;var gt={};gt[T]=gt[C]=gt[G]=gt[Y]=gt[I]=gt[R]=gt[F]=gt[$]=gt[D]=gt[Q]=gt[he]=gt[X]=gt[U]=gt[se]=gt[ke]=gt[me]=gt[ve]=gt[je]=gt[le]=gt[pe]=gt[it]=gt[_e]=!0,gt[Z]=gt[te]=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=S&&!S.nodeType&&S,vn=Ot&&W&&!W.nodeType&&W,Tn=vn&&vn.exports===Ot,jn=Tn&&bt.process,En=function(){try{return vn&&vn.require&&vn.require("util").types||jn&&jn.binding&&jn.binding("util")}catch($e){}}(),gi=En&&En.isArrayBuffer,Kn=En&&En.isDate,Mi=En&&En.isMap,Pa=En&&En.isRegExp,Da=En&&En.isSet,La=En&&En.isTypedArray;function ti($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 Rl($e,st,ut,mt){for(var qt=-1,an=$e==null?0:$e.length;++qt<an;){var Cn=$e[qt];st(mt,Cn,ut(Cn),$e)}return mt}function si($e,st){for(var ut=-1,mt=$e==null?0:$e.length;++ut<mt&&st($e[ut],ut,$e)!==!1;);return $e}function Bl($e,st){for(var ut=$e==null?0:$e.length;ut--&&st($e[ut],ut,$e)!==!1;);return $e}function Fa($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 $i($e,st){for(var ut=-1,mt=$e==null?0:$e.length,qt=0,an=[];++ut<mt;){var Cn=$e[ut];st(Cn,ut,$e)&&(an[qt++]=Cn)}return an}function Qr($e,st){return!($e==null||!$e.length)&&fr($e,st,0)>-1}function rs($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 An($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 Vi($e,st){for(var ut=-1,mt=st.length,qt=$e.length;++ut<mt;)$e[qt+ut]=st[ut];return $e}function os($e,st,ut,mt){var qt=-1,an=$e==null?0:$e.length;for(mt&&an&&(ut=$e[++qt]);++qt<an;)ut=st(ut,$e[qt],qt,$e);return ut}function Cl($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 ss($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 Pl=as("length");function qa($e,st,ut){var mt;return ut($e,function(qt,an,Cn){if(st(qt,an,Cn))return mt=an,!1}),mt}function eo($e,st,ut,mt){for(var qt=$e.length,an=ut+(mt?1:-1);mt?an--:++an<qt;)if(st($e[an],an,$e))return an;return-1}function fr($e,st,ut){return st==st?function(mt,qt,an){for(var Cn=an-1,_i=mt.length;++Cn<_i;)if(mt[Cn]===qt)return Cn;return-1}($e,st,ut):eo($e,Ua,ut)}function Dl($e,st,ut,mt){for(var qt=ut-1,an=$e.length;++qt<an;)if(mt($e[qt],st))return qt;return-1}function Ua($e){return $e!=$e}function za($e,st){var ut=$e==null?0:$e.length;return ut?cs($e,st)/ut:i}function as($e){return function(st){return st==null?w:st[$e]}}function us($e){return function(st){return $e==null?w:$e[st]}}function $a($e,st,ut,mt,qt){return qt($e,function(an,Cn,_i){ut=mt?(mt=!1,an):st(ut,an,Cn,_i)}),ut}function cs($e,st){for(var ut,mt=-1,qt=$e.length;++mt<qt;){var an=st($e[mt]);an!==w&&(ut=ut===w?an:ut+an)}return ut}function ls($e,st){for(var ut=-1,mt=Array($e);++ut<$e;)mt[ut]=st(ut);return mt}function Va($e){return $e&&$e.slice(0,Za($e)+1).replace(Ze,"")}function ni($e){return function(st){return $e(st)}}function hs($e,st){return An(st,function(ut){return $e[ut]})}function Br($e,st){return $e.has(st)}function Ka($e,st){for(var ut=-1,mt=$e.length;++ut<mt&&fr(st,$e[ut],0)>-1;);return ut}function Ha($e,st){for(var ut=$e.length;ut--&&fr(st,$e[ut],0)>-1;);return ut}var Ll=us({À:"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"}),Fl=us({"&":"&","<":"<",">":">",'"':""","'":"'"});function ql($e){return"\\"+Zt[$e]}function pr($e){return Ye.test($e)}function fs($e){var st=-1,ut=Array($e.size);return $e.forEach(function(mt,qt){ut[++st]=[qt,mt]}),ut}function Wa($e,st){return function(ut){return $e(st(ut))}}function Ki($e,st){for(var ut=-1,mt=$e.length,qt=0,an=[];++ut<mt;){var Cn=$e[ut];Cn!==st&&Cn!==p||($e[ut]=p,an[qt++]=ut)}return an}function to($e){var st=-1,ut=Array($e.size);return $e.forEach(function(mt){ut[++st]=mt}),ut}function Ul($e){var st=-1,ut=Array($e.size);return $e.forEach(function(mt){ut[++st]=[mt,mt]}),ut}function dr($e){return pr($e)?function(st){for(var ut=He.lastIndex=0;He.test(st);)++ut;return ut}($e):Pl($e)}function yi($e){return pr($e)?function(st){return st.match(He)||[]}($e):function(st){return st.split("")}($e)}function Za($e){for(var st=$e.length;st--&&It.test($e.charAt(st)););return st}var zl=us({"&":"&","<":"<",">":">",""":'"',"'":"'"}),no=function $e(st){var ut,mt=(st=st==null?dt:no.defaults(dt.Object(),st,no.pick(dt,ct))).Array,qt=st.Date,an=st.Error,Cn=st.Function,_i=st.Math,kn=st.Object,ps=st.RegExp,$l=st.String,ai=st.TypeError,io=mt.prototype,Vl=Cn.prototype,mr=kn.prototype,ro=st["__core-js_shared__"],oo=Vl.toString,_n=mr.hasOwnProperty,Kl=0,Ga=(ut=/[^.]+$/.exec(ro&&ro.keys&&ro.keys.IE_PROTO||""))?"Symbol(src)_1."+ut:"",so=mr.toString,Hl=oo.call(kn),Wl=dt._,Zl=ps("^"+oo.call(_n).replace(St,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ao=Tn?st.Buffer:w,Hi=st.Symbol,uo=st.Uint8Array,Xa=ao?ao.allocUnsafe:w,co=Wa(kn.getPrototypeOf,kn),Ya=kn.create,Ja=mr.propertyIsEnumerable,lo=io.splice,Qa=Hi?Hi.isConcatSpreadable:w,Cr=Hi?Hi.iterator:w,er=Hi?Hi.toStringTag:w,ho=function(){try{var d=or(kn,"defineProperty");return d({},"",{}),d}catch(E){}}(),Gl=st.clearTimeout!==dt.clearTimeout&&st.clearTimeout,Xl=qt&&qt.now!==dt.Date.now&&qt.now,Yl=st.setTimeout!==dt.setTimeout&&st.setTimeout,fo=_i.ceil,po=_i.floor,ds=kn.getOwnPropertySymbols,Jl=ao?ao.isBuffer:w,eu=st.isFinite,Ql=io.join,eh=Wa(kn.keys,kn),Pn=_i.max,Un=_i.min,th=qt.now,nh=st.parseInt,tu=_i.random,ih=io.reverse,ms=or(st,"DataView"),Pr=or(st,"Map"),gs=or(st,"Promise"),gr=or(st,"Set"),Dr=or(st,"WeakMap"),Lr=or(kn,"create"),mo=Dr&&new Dr,yr={},rh=sr(ms),oh=sr(Pr),sh=sr(gs),ah=sr(gr),uh=sr(Dr),go=Hi?Hi.prototype:w,Fr=go?go.valueOf:w,nu=go?go.toString:w;function fe(d){if(On(d)&&!Kt(d)&&!(d instanceof Qt)){if(d instanceof ui)return d;if(_n.call(d,"__wrapped__"))return ic(d)}return new ui(d)}var vr=function(){function d(){}return function(E){if(!In(E))return{};if(Ya)return Ya(E);d.prototype=E;var V=new d;return d.prototype=w,V}}();function yo(){}function ui(d,E){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!E,this.__index__=0,this.__values__=w}function Qt(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=n,this.__views__=[]}function tr(d){var E=-1,V=d==null?0:d.length;for(this.clear();++E<V;){var oe=d[E];this.set(oe[0],oe[1])}}function Ni(d){var E=-1,V=d==null?0:d.length;for(this.clear();++E<V;){var oe=d[E];this.set(oe[0],oe[1])}}function Ri(d){var E=-1,V=d==null?0:d.length;for(this.clear();++E<V;){var oe=d[E];this.set(oe[0],oe[1])}}function nr(d){var E=-1,V=d==null?0:d.length;for(this.__data__=new Ri;++E<V;)this.add(d[E])}function vi(d){var E=this.__data__=new Ni(d);this.size=E.size}function iu(d,E){var V=Kt(d),oe=!V&&ar(d),ue=!V&&!oe&&Yi(d),ye=!V&&!oe&&!ue&&Mr(d),Ee=V||oe||ue||ye,Ie=Ee?ls(d.length,$l):[],Ce=Ie.length;for(var ot in d)!E&&!_n.call(d,ot)||Ee&&(ot=="length"||ue&&(ot=="offset"||ot=="parent")||ye&&(ot=="buffer"||ot=="byteLength"||ot=="byteOffset")||Di(ot,Ce))||Ie.push(ot);return Ie}function ru(d){var E=d.length;return E?d[As(0,E-1)]:w}function ch(d,E){return jo(Xn(d),ir(E,0,d.length))}function lh(d){return jo(Xn(d))}function ys(d,E,V){(V!==w&&!bi(d[E],V)||V===w&&!(E in d))&&Bi(d,E,V)}function qr(d,E,V){var oe=d[E];_n.call(d,E)&&bi(oe,V)&&(V!==w||E in d)||Bi(d,E,V)}function vo(d,E){for(var V=d.length;V--;)if(bi(d[V][0],E))return V;return-1}function hh(d,E,V,oe){return Wi(d,function(ue,ye,Ee){E(oe,ue,V(ue),Ee)}),oe}function ou(d,E){return d&&ki(E,Ln(E),d)}function Bi(d,E,V){E=="__proto__"&&ho?ho(d,E,{configurable:!0,enumerable:!0,value:V,writable:!0}):d[E]=V}function vs(d,E){for(var V=-1,oe=E.length,ue=mt(oe),ye=d==null;++V<oe;)ue[V]=ye?w:ea(d,E[V]);return ue}function ir(d,E,V){return d==d&&(V!==w&&(d=d<=V?d:V),E!==w&&(d=d>=E?d:E)),d}function ci(d,E,V,oe,ue,ye){var Ee,Ie=E&c,Ce=E&l,ot=E&f;if(V&&(Ee=ue?V(d,oe,ue,ye):V(d)),Ee!==w)return Ee;if(!In(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"&&_n.call(at,"index")&&(jt.index=at.index,jt.input=at.input),jt}(d),!Ie)return Xn(d,Ee)}else{var lt=zn(d),xt=lt==te||lt==L;if(Yi(d))return Tu(d,Ie);if(lt==se||lt==T||xt&&!ue){if(Ee=Ce||xt?{}:Zu(d),!Ie)return Ce?function(at,ht){return ki(at,Hu(at),ht)}(d,function(at,ht){return at&&ki(ht,Jn(ht),at)}(Ee,d)):function(at,ht){return ki(at,Us(at),ht)}(d,ou(Ee,d))}else{if(!gt[lt])return ue?d:{};Ee=function(at,ht,jt){var pt,Ut=at.constructor;switch(ht){case G:return Bs(at);case I:case R:return new Ut(+at);case Y:return function(Ft,wn){var kt=wn?Bs(Ft.buffer):Ft.buffer;return new Ft.constructor(kt,Ft.byteOffset,Ft.byteLength)}(at,jt);case F:case $:case D:case Q:case he:case le:case pe:case it:case _e:return Ou(at,jt);case X:return new Ut;case U:case ve:return new Ut(at);case ke:return function(Ft){var wn=new Ft.constructor(Ft.source,Je.exec(Ft));return wn.lastIndex=Ft.lastIndex,wn}(at);case me:return new Ut;case je:return pt=at,Fr?kn(Fr.call(pt)):{}}}(d,lt,Ie)}}ye||(ye=new vi);var _t=ye.get(d);if(_t)return _t;ye.set(d,Ee),xc(d)?d.forEach(function(at){Ee.add(ci(at,E,V,at,d,ye))}):bc(d)&&d.forEach(function(at,ht){Ee.set(ht,ci(at,E,V,ht,d,ye))});var At=rt?w:(ot?Ce?Ls:Ds:Ce?Jn:Ln)(d);return si(At||d,function(at,ht){At&&(at=d[ht=at]),qr(Ee,ht,ci(at,E,V,ht,d,ye))}),Ee}function su(d,E,V){var oe=V.length;if(d==null)return!oe;for(d=kn(d);oe--;){var ue=V[oe],ye=E[ue],Ee=d[ue];if(Ee===w&&!(ue in d)||!ye(Ee))return!1}return!0}function au(d,E,V){if(typeof d!="function")throw new ai(M);return Wr(function(){d.apply(w,V)},E)}function Ur(d,E,V,oe){var ue=-1,ye=Qr,Ee=!0,Ie=d.length,Ce=[],ot=E.length;if(!Ie)return Ce;V&&(E=An(E,ni(V))),oe?(ye=rs,Ee=!1):E.length>=g&&(ye=Br,Ee=!1,E=new nr(E));e:for(;++ue<Ie;){var rt=d[ue],lt=V==null?rt:V(rt);if(rt=oe||rt!==0?rt:0,Ee&<==lt){for(var xt=ot;xt--;)if(E[xt]===lt)continue e;Ce.push(rt)}else ye(E,lt,oe)||Ce.push(rt)}return Ce}fe.templateSettings={escape:Nt,evaluate:Re,interpolate:Ke,variable:"",imports:{_:fe}},fe.prototype=yo.prototype,fe.prototype.constructor=fe,ui.prototype=vr(yo.prototype),ui.prototype.constructor=ui,Qt.prototype=vr(yo.prototype),Qt.prototype.constructor=Qt,tr.prototype.clear=function(){this.__data__=Lr?Lr(null):{},this.size=0},tr.prototype.delete=function(d){var E=this.has(d)&&delete this.__data__[d];return this.size-=E?1:0,E},tr.prototype.get=function(d){var E=this.__data__;if(Lr){var V=E[d];return V===s?w:V}return _n.call(E,d)?E[d]:w},tr.prototype.has=function(d){var E=this.__data__;return Lr?E[d]!==w:_n.call(E,d)},tr.prototype.set=function(d,E){var V=this.__data__;return this.size+=this.has(d)?0:1,V[d]=Lr&&E===w?s:E,this},Ni.prototype.clear=function(){this.__data__=[],this.size=0},Ni.prototype.delete=function(d){var E=this.__data__,V=vo(E,d);return!(V<0||(V==E.length-1?E.pop():lo.call(E,V,1),--this.size,0))},Ni.prototype.get=function(d){var E=this.__data__,V=vo(E,d);return V<0?w:E[V][1]},Ni.prototype.has=function(d){return vo(this.__data__,d)>-1},Ni.prototype.set=function(d,E){var V=this.__data__,oe=vo(V,d);return oe<0?(++this.size,V.push([d,E])):V[oe][1]=E,this},Ri.prototype.clear=function(){this.size=0,this.__data__={hash:new tr,map:new(Pr||Ni),string:new tr}},Ri.prototype.delete=function(d){var E=Oo(this,d).delete(d);return this.size-=E?1:0,E},Ri.prototype.get=function(d){return Oo(this,d).get(d)},Ri.prototype.has=function(d){return Oo(this,d).has(d)},Ri.prototype.set=function(d,E){var V=Oo(this,d),oe=V.size;return V.set(d,E),this.size+=V.size==oe?0:1,this},nr.prototype.add=nr.prototype.push=function(d){return this.__data__.set(d,s),this},nr.prototype.has=function(d){return this.__data__.has(d)},vi.prototype.clear=function(){this.__data__=new Ni,this.size=0},vi.prototype.delete=function(d){var E=this.__data__,V=E.delete(d);return this.size=E.size,V},vi.prototype.get=function(d){return this.__data__.get(d)},vi.prototype.has=function(d){return this.__data__.has(d)},vi.prototype.set=function(d,E){var V=this.__data__;if(V instanceof Ni){var oe=V.__data__;if(!Pr||oe.length<g-1)return oe.push([d,E]),this.size=++V.size,this;V=this.__data__=new Ri(oe)}return V.set(d,E),this.size=V.size,this};var Wi=Bu(Ei),uu=Bu(ws,!0);function fh(d,E){var V=!0;return Wi(d,function(oe,ue,ye){return V=!!E(oe,ue,ye)}),V}function bo(d,E,V){for(var oe=-1,ue=d.length;++oe<ue;){var ye=d[oe],Ee=E(ye);if(Ee!=null&&(Ie===w?Ee==Ee&&!ri(Ee):V(Ee,Ie)))var Ie=Ee,Ce=ye}return Ce}function cu(d,E){var V=[];return Wi(d,function(oe,ue,ye){E(oe,ue,ye)&&V.push(oe)}),V}function Fn(d,E,V,oe,ue){var ye=-1,Ee=d.length;for(V||(V=_h),ue||(ue=[]);++ye<Ee;){var Ie=d[ye];E>0&&V(Ie)?E>1?Fn(Ie,E-1,V,oe,ue):Vi(ue,Ie):oe||(ue[ue.length]=Ie)}return ue}var bs=Cu(),lu=Cu(!0);function Ei(d,E){return d&&bs(d,E,Ln)}function ws(d,E){return d&&lu(d,E,Ln)}function wo(d,E){return $i(E,function(V){return Li(d[V])})}function rr(d,E){for(var V=0,oe=(E=Gi(E,d)).length;d!=null&&V<oe;)d=d[Si(E[V++])];return V&&V==oe?d:w}function hu(d,E,V){var oe=E(d);return Kt(d)?oe:Vi(oe,V(d))}function Hn(d){return d==null?d===w?we:K:er&&er in kn(d)?function(E){var V=_n.call(E,er),oe=E[er];try{E[er]=w;var ue=!0}catch(Ee){}var ye=so.call(E);return ue&&(V?E[er]=oe:delete E[er]),ye}(d):function(E){return so.call(E)}(d)}function xs(d,E){return d>E}function ph(d,E){return d!=null&&_n.call(d,E)}function dh(d,E){return d!=null&&E in kn(d)}function Ms(d,E,V){for(var oe=V?rs:Qr,ue=d[0].length,ye=d.length,Ee=ye,Ie=mt(ye),Ce=1/0,ot=[];Ee--;){var rt=d[Ee];Ee&&E&&(rt=An(rt,ni(E))),Ce=Un(rt.length,Ce),Ie[Ee]=!V&&(E||ue>=120&&rt.length>=120)?new nr(Ee&&rt):w}rt=d[0];var lt=-1,xt=Ie[0];e:for(;++lt<ue&&ot.length<Ce;){var _t=rt[lt],At=E?E(_t):_t;if(_t=V||_t!==0?_t:0,!(xt?Br(xt,At):oe(ot,At,V))){for(Ee=ye;--Ee;){var at=Ie[Ee];if(!(at?Br(at,At):oe(d[Ee],At,V)))continue e}xt&&xt.push(At),ot.push(_t)}}return ot}function zr(d,E,V){var oe=(d=Ju(d,E=Gi(E,d)))==null?d:d[Si(hi(E))];return oe==null?w:ti(oe,d,V)}function fu(d){return On(d)&&Hn(d)==T}function $r(d,E,V,oe,ue){return d===E||(d==null||E==null||!On(d)&&!On(E)?d!=d&&E!=E: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?se:_t)==se,ht=(At=At==T?se:At)==se,jt=_t==At;if(jt&&Yi(ye)){if(!Yi(Ee))return!1;lt=!0,at=!1}if(jt&&!at)return rt||(rt=new vi),lt||Mr(ye)?Ku(ye,Ee,Ie,Ce,ot,rt):function(kt,Pt,Dn,Rn,Zn,Sn,$n){switch(Dn){case Y:if(kt.byteLength!=Pt.byteLength||kt.byteOffset!=Pt.byteOffset)return!1;kt=kt.buffer,Pt=Pt.buffer;case G:return!(kt.byteLength!=Pt.byteLength||!Sn(new uo(kt),new uo(Pt)));case I:case R:case U:return bi(+kt,+Pt);case Z:return kt.name==Pt.name&&kt.message==Pt.message;case ke:case ve:return kt==Pt+"";case X:var Ai=fs;case me:var Ji=Rn&m;if(Ai||(Ai=to),kt.size!=Pt.size&&!Ji)return!1;var ur=$n.get(kt);if(ur)return ur==Pt;Rn|=h,$n.set(kt,Pt);var qi=Ku(Ai(kt),Ai(Pt),Rn,Zn,Sn,$n);return $n.delete(kt),qi;case je:if(Fr)return Fr.call(kt)==Fr.call(Pt)}return!1}(ye,Ee,_t,Ie,Ce,ot,rt);if(!(Ie&m)){var pt=at&&_n.call(ye,"__wrapped__"),Ut=ht&&_n.call(Ee,"__wrapped__");if(pt||Ut){var Ft=pt?ye.value():ye,wn=Ut?Ee.value():Ee;return rt||(rt=new vi),ot(Ft,wn,Ie,Ce,rt)}}return!!jt&&(rt||(rt=new vi),function(kt,Pt,Dn,Rn,Zn,Sn){var $n=Dn&m,Ai=Ds(kt),Ji=Ai.length;if(Ji!=Ds(Pt).length&&!$n)return!1;for(var ur=Ji;ur--;){var qi=Ai[ur];if(!($n?qi in Pt:_n.call(Pt,qi)))return!1}var Cc=Sn.get(kt),Pc=Sn.get(Pt);if(Cc&&Pc)return Cc==Pt&&Pc==kt;var qo=!0;Sn.set(kt,Pt),Sn.set(Pt,kt);for(var la=$n;++ur<Ji;){var Uo=kt[qi=Ai[ur]],zo=Pt[qi];if(Rn)var Dc=$n?Rn(zo,Uo,qi,Pt,kt,Sn):Rn(Uo,zo,qi,kt,Pt,Sn);if(!(Dc===w?Uo===zo||Zn(Uo,zo,Dn,Rn,Sn):Dc)){qo=!1;break}la||(la=qi=="constructor")}if(qo&&!la){var $o=kt.constructor,Vo=Pt.constructor;$o==Vo||!("constructor"in kt)||!("constructor"in Pt)||typeof $o=="function"&&$o instanceof $o&&typeof Vo=="function"&&Vo instanceof Vo||(qo=!1)}return Sn.delete(kt),Sn.delete(Pt),qo}(ye,Ee,Ie,Ce,ot,rt))}(d,E,V,oe,$r,ue))}function _s(d,E,V,oe){var ue=V.length,ye=ue,Ee=!oe;if(d==null)return!ye;for(d=kn(d);ue--;){var Ie=V[ue];if(Ee&&Ie[2]?Ie[1]!==d[Ie[0]]:!(Ie[0]in d))return!1}for(;++ue<ye;){var Ce=(Ie=V[ue])[0],ot=d[Ce],rt=Ie[1];if(Ee&&Ie[2]){if(ot===w&&!(Ce in d))return!1}else{var lt=new vi;if(oe)var xt=oe(ot,rt,Ce,d,E,lt);if(!(xt===w?$r(rt,ot,m|h,oe,lt):xt))return!1}}return!0}function pu(d){return!(!In(d)||(E=d,Ga&&Ga in E))&&(Li(d)?Zl:tt).test(sr(d));var E}function du(d){return typeof d=="function"?d:d==null?Qn:typeof d=="object"?Kt(d)?yu(d[0],d[1]):gu(d):Bc(d)}function Es(d){if(!Hr(d))return eh(d);var E=[];for(var V in kn(d))_n.call(d,V)&&V!="constructor"&&E.push(V);return E}function ks(d,E){return d<E}function mu(d,E){var V=-1,oe=Yn(d)?mt(d.length):[];return Wi(d,function(ue,ye,Ee){oe[++V]=E(ue,ye,Ee)}),oe}function gu(d){var E=qs(d);return E.length==1&&E[0][2]?Xu(E[0][0],E[0][1]):function(V){return V===d||_s(V,d,E)}}function yu(d,E){return zs(d)&&Gu(E)?Xu(Si(d),E):function(V){var oe=ea(V,d);return oe===w&&oe===E?ta(V,d):$r(E,oe,m|h)}}function xo(d,E,V,oe,ue){d!==E&&bs(E,function(ye,Ee){if(ue||(ue=new vi),In(ye))(function(Ce,ot,rt,lt,xt,_t,At){var at=Vs(Ce,rt),ht=Vs(ot,rt),jt=At.get(ht);if(jt)ys(Ce,rt,jt);else{var pt=_t?_t(at,ht,rt+"",Ce,ot,At):w,Ut=pt===w;if(Ut){var Ft=Kt(ht),wn=!Ft&&Yi(ht),kt=!Ft&&!wn&&Mr(ht);pt=ht,Ft||wn||kt?Kt(at)?pt=at:Nn(at)?pt=Xn(at):wn?(Ut=!1,pt=Tu(ht,!0)):kt?(Ut=!1,pt=Ou(ht,!0)):pt=[]:Zr(ht)||ar(ht)?(pt=at,ar(at)?pt=Ec(at):In(at)&&!Li(at)||(pt=Zu(ht))):Ut=!1}Ut&&(At.set(ht,pt),xt(pt,ht,lt,_t,At),At.delete(ht)),ys(Ce,rt,pt)}})(d,E,Ee,V,xo,oe,ue);else{var Ie=oe?oe(Vs(d,Ee),ye,Ee+"",d,E,ue):w;Ie===w&&(Ie=ye),ys(d,Ee,Ie)}},Jn)}function vu(d,E){var V=d.length;if(V)return Di(E+=E<0?V:0,V)?d[E]:w}function bu(d,E,V){E=E.length?An(E,function(ye){return Kt(ye)?function(Ee){return rr(Ee,ye.length===1?ye[0]:ye)}:ye}):[Qn];var oe=-1;E=An(E,ni(Bt()));var ue=mu(d,function(ye,Ee,Ie){var Ce=An(E,function(ot){return ot(ye)});return{criteria:Ce,index:++oe,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=ju(At[_t],at[_t]);if(pt)return _t>=jt?pt:pt*(xt[_t]=="desc"?-1:1)}return rt.index-lt.index}(Ce,ot,V)});Ie--;)ye[Ie]=ye[Ie].value;return ye}(ue)}function wu(d,E,V){for(var oe=-1,ue=E.length,ye={};++oe<ue;){var Ee=E[oe],Ie=rr(d,Ee);V(Ie,Ee)&&Vr(ye,Gi(Ee,d),Ie)}return ye}function Ss(d,E,V,oe){var ue=oe?Dl:fr,ye=-1,Ee=E.length,Ie=d;for(d===E&&(E=Xn(E)),V&&(Ie=An(d,ni(V)));++ye<Ee;)for(var Ce=0,ot=E[ye],rt=V?V(ot):ot;(Ce=ue(Ie,rt,Ce,oe))>-1;)Ie!==d&&lo.call(Ie,Ce,1),lo.call(d,Ce,1);return d}function xu(d,E){for(var V=d?E.length:0,oe=V-1;V--;){var ue=E[V];if(V==oe||ue!==ye){var ye=ue;Di(ue)?lo.call(d,ue,1):Os(d,ue)}}return d}function As(d,E){return d+po(tu()*(E-d+1))}function Is(d,E){var V="";if(!d||E<1||E>e)return V;do E%2&&(V+=d),(E=po(E/2))&&(d+=d);while(E);return V}function Wt(d,E){return Ks(Yu(d,E,Qn),d+"")}function mh(d){return ru(_r(d))}function gh(d,E){var V=_r(d);return jo(V,ir(E,0,V.length))}function Vr(d,E,V,oe){if(!In(d))return d;for(var ue=-1,ye=(E=Gi(E,d)).length,Ee=ye-1,Ie=d;Ie!=null&&++ue<ye;){var Ce=Si(E[ue]),ot=V;if(Ce==="__proto__"||Ce==="constructor"||Ce==="prototype")return d;if(ue!=Ee){var rt=Ie[Ce];(ot=oe?oe(rt,Ce,Ie):w)===w&&(ot=In(rt)?rt:Di(E[ue+1])?[]:{})}qr(Ie,Ce,ot),Ie=Ie[Ce]}return d}var Mu=mo?function(d,E){return mo.set(d,E),d}:Qn,yh=ho?function(d,E){return ho(d,"toString",{configurable:!0,enumerable:!1,value:ia(E),writable:!0})}:Qn;function vh(d){return jo(_r(d))}function li(d,E,V){var oe=-1,ue=d.length;E<0&&(E=-E>ue?0:ue+E),(V=V>ue?ue:V)<0&&(V+=ue),ue=E>V?0:V-E>>>0,E>>>=0;for(var ye=mt(ue);++oe<ue;)ye[oe]=d[oe+E];return ye}function bh(d,E){var V;return Wi(d,function(oe,ue,ye){return!(V=E(oe,ue,ye))}),!!V}function Mo(d,E,V){var oe=0,ue=d==null?oe:d.length;if(typeof E=="number"&&E==E&&ue<=o){for(;oe<ue;){var ye=oe+ue>>>1,Ee=d[ye];Ee!==null&&!ri(Ee)&&(V?Ee<=E:Ee<E)?oe=ye+1:ue=ye}return ue}return Ts(d,E,Qn,V)}function Ts(d,E,V,oe){var ue=0,ye=d==null?0:d.length;if(ye===0)return 0;for(var Ee=(E=V(E))!=E,Ie=E===null,Ce=ri(E),ot=E===w;ue<ye;){var rt=po((ue+ye)/2),lt=V(d[rt]),xt=lt!==w,_t=lt===null,At=lt==lt,at=ri(lt);if(Ee)var ht=oe||At;else ht=ot?At&&(oe||xt):Ie?At&&xt&&(oe||!_t):Ce?At&&xt&&!_t&&(oe||!at):!_t&&!at&&(oe?lt<=E:lt<E);ht?ue=rt+1:ye=rt}return Un(ye,t)}function _u(d,E){for(var V=-1,oe=d.length,ue=0,ye=[];++V<oe;){var Ee=d[V],Ie=E?E(Ee):Ee;if(!V||!bi(Ie,Ce)){var Ce=Ie;ye[ue++]=Ee===0?0:Ee}}return ye}function Eu(d){return typeof d=="number"?d:ri(d)?i:+d}function ii(d){if(typeof d=="string")return d;if(Kt(d))return An(d,ii)+"";if(ri(d))return nu?nu.call(d):"";var E=d+"";return E=="0"&&1/d==-ae?"-0":E}function Zi(d,E,V){var oe=-1,ue=Qr,ye=d.length,Ee=!0,Ie=[],Ce=Ie;if(V)Ee=!1,ue=rs;else if(ye>=g){var ot=E?null:xh(d);if(ot)return to(ot);Ee=!1,ue=Br,Ce=new nr}else Ce=E?[]:Ie;e:for(;++oe<ye;){var rt=d[oe],lt=E?E(rt):rt;if(rt=V||rt!==0?rt:0,Ee&<==lt){for(var xt=Ce.length;xt--;)if(Ce[xt]===lt)continue e;E&&Ce.push(lt),Ie.push(rt)}else ue(Ce,lt,V)||(Ce!==Ie&&Ce.push(lt),Ie.push(rt))}return Ie}function Os(d,E){return(d=Ju(d,E=Gi(E,d)))==null||delete d[Si(hi(E))]}function ku(d,E,V,oe){return Vr(d,E,V(rr(d,E)),oe)}function _o(d,E,V,oe){for(var ue=d.length,ye=oe?ue:-1;(oe?ye--:++ye<ue)&&E(d[ye],ye,d););return V?li(d,oe?0:ye,oe?ye+1:ue):li(d,oe?ye+1:0,oe?ue:ye)}function Su(d,E){var V=d;return V instanceof Qt&&(V=V.value()),os(E,function(oe,ue){return ue.func.apply(ue.thisArg,Vi([oe],ue.args))},V)}function js(d,E,V){var oe=d.length;if(oe<2)return oe?Zi(d[0]):[];for(var ue=-1,ye=mt(oe);++ue<oe;)for(var Ee=d[ue],Ie=-1;++Ie<oe;)Ie!=ue&&(ye[ue]=Ur(ye[ue]||Ee,d[Ie],E,V));return Zi(Fn(ye,1),E,V)}function Au(d,E,V){for(var oe=-1,ue=d.length,ye=E.length,Ee={};++oe<ue;){var Ie=oe<ye?E[oe]:w;V(Ee,d[oe],Ie)}return Ee}function Ns(d){return Nn(d)?d:[]}function Rs(d){return typeof d=="function"?d:Qn}function Gi(d,E){return Kt(d)?d:zs(d,E)?[d]:nc(Mn(d))}var wh=Wt;function Xi(d,E,V){var oe=d.length;return V=V===w?oe:V,!E&&V>=oe?d:li(d,E,V)}var Iu=Gl||function(d){return dt.clearTimeout(d)};function Tu(d,E){if(E)return d.slice();var V=d.length,oe=Xa?Xa(V):new d.constructor(V);return d.copy(oe),oe}function Bs(d){var E=new d.constructor(d.byteLength);return new uo(E).set(new uo(d)),E}function Ou(d,E){var V=E?Bs(d.buffer):d.buffer;return new d.constructor(V,d.byteOffset,d.length)}function ju(d,E){if(d!==E){var V=d!==w,oe=d===null,ue=d==d,ye=ri(d),Ee=E!==w,Ie=E===null,Ce=E==E,ot=ri(E);if(!Ie&&!ot&&!ye&&d>E||ye&&Ee&&Ce&&!Ie&&!ot||oe&&Ee&&Ce||!V&&Ce||!ue)return 1;if(!oe&&!ye&&!ot&&d<E||ot&&V&&ue&&!oe&&!ye||Ie&&V&&ue||!Ee&&ue||!Ce)return-1}return 0}function Nu(d,E,V,oe){for(var ue=-1,ye=d.length,Ee=V.length,Ie=-1,Ce=E.length,ot=Pn(ye-Ee,0),rt=mt(Ce+ot),lt=!oe;++Ie<Ce;)rt[Ie]=E[Ie];for(;++ue<Ee;)(lt||ue<ye)&&(rt[V[ue]]=d[ue]);for(;ot--;)rt[Ie++]=d[ue++];return rt}function Ru(d,E,V,oe){for(var ue=-1,ye=d.length,Ee=-1,Ie=V.length,Ce=-1,ot=E.length,rt=Pn(ye-Ie,0),lt=mt(rt+ot),xt=!oe;++ue<rt;)lt[ue]=d[ue];for(var _t=ue;++Ce<ot;)lt[_t+Ce]=E[Ce];for(;++Ee<Ie;)(xt||ue<ye)&&(lt[_t+V[Ee]]=d[ue++]);return lt}function Xn(d,E){var V=-1,oe=d.length;for(E||(E=mt(oe));++V<oe;)E[V]=d[V];return E}function ki(d,E,V,oe){var ue=!V;V||(V={});for(var ye=-1,Ee=E.length;++ye<Ee;){var Ie=E[ye],Ce=oe?oe(V[Ie],d[Ie],Ie,V,d):w;Ce===w&&(Ce=d[Ie]),ue?Bi(V,Ie,Ce):qr(V,Ie,Ce)}return V}function Eo(d,E){return function(V,oe){var ue=Kt(V)?Rl:hh,ye=E?E():{};return ue(V,d,Bt(oe,2),ye)}}function br(d){return Wt(function(E,V){var oe=-1,ue=V.length,ye=ue>1?V[ue-1]:w,Ee=ue>2?V[2]:w;for(ye=d.length>3&&typeof ye=="function"?(ue--,ye):w,Ee&&Wn(V[0],V[1],Ee)&&(ye=ue<3?w:ye,ue=1),E=kn(E);++oe<ue;){var Ie=V[oe];Ie&&d(E,Ie,oe,ye)}return E})}function Bu(d,E){return function(V,oe){if(V==null)return V;if(!Yn(V))return d(V,oe);for(var ue=V.length,ye=E?ue:-1,Ee=kn(V);(E?ye--:++ye<ue)&&oe(Ee[ye],ye,Ee)!==!1;);return V}}function Cu(d){return function(E,V,oe){for(var ue=-1,ye=kn(E),Ee=oe(E),Ie=Ee.length;Ie--;){var Ce=Ee[d?Ie:++ue];if(V(ye[Ce],Ce,ye)===!1)break}return E}}function Pu(d){return function(E){var V=pr(E=Mn(E))?yi(E):w,oe=V?V[0]:E.charAt(0),ue=V?Xi(V,1).join(""):E.slice(1);return oe[d]()+ue}}function wr(d){return function(E){return os(Nc(jc(E).replace(be,"")),d,"")}}function Kr(d){return function(){var E=arguments;switch(E.length){case 0:return new d;case 1:return new d(E[0]);case 2:return new d(E[0],E[1]);case 3:return new d(E[0],E[1],E[2]);case 4:return new d(E[0],E[1],E[2],E[3]);case 5:return new d(E[0],E[1],E[2],E[3],E[4]);case 6:return new d(E[0],E[1],E[2],E[3],E[4],E[5]);case 7:return new d(E[0],E[1],E[2],E[3],E[4],E[5],E[6])}var V=vr(d.prototype),oe=d.apply(V,E);return In(oe)?oe:V}}function Du(d){return function(E,V,oe){var ue=kn(E);if(!Yn(E)){var ye=Bt(V,3);E=Ln(E),V=function(Ie){return ye(ue[Ie],Ie,ue)}}var Ee=d(E,V,oe);return Ee>-1?ue[ye?E[Ee]:Ee]:w}}function Lu(d){return Pi(function(E){var V=E.length,oe=V,ue=ui.prototype.thru;for(d&&E.reverse();oe--;){var ye=E[oe];if(typeof ye!="function")throw new ai(M);if(ue&&!Ee&&To(ye)=="wrapper")var Ee=new ui([],!0)}for(oe=Ee?oe:V;++oe<V;){var Ie=To(ye=E[oe]),Ce=Ie=="wrapper"?Fs(ye):w;Ee=Ce&&$s(Ce[0])&&Ce[1]==(P|_|x|B)&&!Ce[4].length&&Ce[9]==1?Ee[To(Ce[0])].apply(Ee,Ce[3]):ye.length==1&&$s(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=V?E[lt].apply(this,ot):rt;++lt<V;)xt=E[lt].call(this,xt);return xt}})}function ko(d,E,V,oe,ue,ye,Ee,Ie,Ce,ot){var rt=E&P,lt=E&u,xt=E&b,_t=E&(_|A),At=E&z,at=xt?w:Kr(d);return function ht(){for(var jt=arguments.length,pt=mt(jt),Ut=jt;Ut--;)pt[Ut]=arguments[Ut];if(_t)var Ft=xr(ht),wn=function(Rn,Zn){for(var Sn=Rn.length,$n=0;Sn--;)Rn[Sn]===Zn&&++$n;return $n}(pt,Ft);if(oe&&(pt=Nu(pt,oe,ue,_t)),ye&&(pt=Ru(pt,ye,Ee,_t)),jt-=wn,_t&&jt<ot){var kt=Ki(pt,Ft);return Uu(d,E,ko,ht.placeholder,V,pt,kt,Ie,Ce,ot-jt)}var Pt=lt?V:this,Dn=xt?Pt[d]:d;return jt=pt.length,Ie?pt=function(Rn,Zn){for(var Sn=Rn.length,$n=Un(Zn.length,Sn),Ai=Xn(Rn);$n--;){var Ji=Zn[$n];Rn[$n]=Di(Ji,Sn)?Ai[Ji]:w}return Rn}(pt,Ie):At&&jt>1&&pt.reverse(),rt&&Ce<jt&&(pt.length=Ce),this&&this!==dt&&this instanceof ht&&(Dn=at||Kr(Dn)),Dn.apply(Pt,pt)}}function Fu(d,E){return function(V,oe){return function(ue,ye,Ee,Ie){return Ei(ue,function(Ce,ot,rt){ye(Ie,Ee(Ce),ot,rt)}),Ie}(V,d,E(oe),{})}}function So(d,E){return function(V,oe){var ue;if(V===w&&oe===w)return E;if(V!==w&&(ue=V),oe!==w){if(ue===w)return oe;typeof V=="string"||typeof oe=="string"?(V=ii(V),oe=ii(oe)):(V=Eu(V),oe=Eu(oe)),ue=d(V,oe)}return ue}}function Cs(d){return Pi(function(E){return E=An(E,ni(Bt())),Wt(function(V){var oe=this;return d(E,function(ue){return ti(ue,oe,V)})})})}function Ao(d,E){var V=(E=E===w?" ":ii(E)).length;if(V<2)return V?Is(E,d):E;var oe=Is(E,fo(d/dr(E)));return pr(E)?Xi(yi(oe),0,d).join(""):oe.slice(0,d)}function qu(d){return function(E,V,oe){return oe&&typeof oe!="number"&&Wn(E,V,oe)&&(V=oe=w),E=Fi(E),V===w?(V=E,E=0):V=Fi(V),function(ue,ye,Ee,Ie){for(var Ce=-1,ot=Pn(fo((ye-ue)/(Ee||1)),0),rt=mt(ot);ot--;)rt[Ie?ot:++Ce]=ue,ue+=Ee;return rt}(E,V,oe=oe===w?E<V?1:-1:Fi(oe),d)}}function Io(d){return function(E,V){return typeof E=="string"&&typeof V=="string"||(E=fi(E),V=fi(V)),d(E,V)}}function Uu(d,E,V,oe,ue,ye,Ee,Ie,Ce,ot){var rt=E&_;E|=rt?x:j,(E&=~(rt?j:x))&v||(E&=~(u|b));var lt=[d,E,ue,rt?ye:w,rt?Ee:w,rt?w:ye,rt?w:Ee,Ie,Ce,ot],xt=V.apply(w,lt);return $s(d)&&Qu(xt,lt),xt.placeholder=oe,ec(xt,d,E)}function Ps(d){var E=_i[d];return function(V,oe){if(V=fi(V),(oe=oe==null?0:Un(Ht(oe),292))&&eu(V)){var ue=(Mn(V)+"e").split("e");return+((ue=(Mn(E(ue[0]+"e"+(+ue[1]+oe)))+"e").split("e"))[0]+"e"+(+ue[1]-oe))}return E(V)}}var xh=gr&&1/to(new gr([,-0]))[1]==ae?function(d){return new gr(d)}:sa;function zu(d){return function(E){var V=zn(E);return V==X?fs(E):V==me?Ul(E):function(oe,ue){return An(ue,function(ye){return[ye,oe[ye]]})}(E,d(E))}}function Ci(d,E,V,oe,ue,ye,Ee,Ie){var Ce=E&b;if(!Ce&&typeof d!="function")throw new ai(M);var ot=oe?oe.length:0;if(ot||(E&=~(x|j),oe=ue=w),Ee=Ee===w?Ee:Pn(Ht(Ee),0),Ie=Ie===w?Ie:Ht(Ie),ot-=ue?ue.length:0,E&j){var rt=oe,lt=ue;oe=ue=w}var xt=Ce?w:Fs(d),_t=[d,E,V,oe,ue,rt,lt,ye,Ee,Ie];if(xt&&function(at,ht){var jt=at[1],pt=ht[1],Ut=jt|pt,Ft=Ut<(u|b|P),wn=pt==P&&jt==_||pt==P&&jt==B&&at[7].length<=ht[8]||pt==(P|B)&&ht[7].length<=ht[8]&&jt==_;if(!Ft&&!wn)return at;pt&u&&(at[2]=ht[2],Ut|=jt&u?0:v);var kt=ht[3];if(kt){var Pt=at[3];at[3]=Pt?Nu(Pt,kt,ht[4]):kt,at[4]=Pt?Ki(at[3],p):ht[4]}(kt=ht[5])&&(Pt=at[5],at[5]=Pt?Ru(Pt,kt,ht[6]):kt,at[6]=Pt?Ki(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],E=_t[1],V=_t[2],oe=_t[3],ue=_t[4],!(Ie=_t[9]=_t[9]===w?Ce?0:d.length:Pn(_t[9]-ot,0))&&E&(_|A)&&(E&=~(_|A)),E&&E!=u)At=E==_||E==A?function(at,ht,jt){var pt=Kr(at);return function Ut(){for(var Ft=arguments.length,wn=mt(Ft),kt=Ft,Pt=xr(Ut);kt--;)wn[kt]=arguments[kt];var Dn=Ft<3&&wn[0]!==Pt&&wn[Ft-1]!==Pt?[]:Ki(wn,Pt);return(Ft-=Dn.length)<jt?Uu(at,ht,ko,Ut.placeholder,w,wn,Dn,w,w,jt-Ft):ti(this&&this!==dt&&this instanceof Ut?pt:at,this,wn)}}(d,E,Ie):E!=x&&E!=(u|x)||ue.length?ko.apply(w,_t):function(at,ht,jt,pt){var Ut=ht&u,Ft=Kr(at);return function wn(){for(var kt=-1,Pt=arguments.length,Dn=-1,Rn=pt.length,Zn=mt(Rn+Pt),Sn=this&&this!==dt&&this instanceof wn?Ft:at;++Dn<Rn;)Zn[Dn]=pt[Dn];for(;Pt--;)Zn[Dn++]=arguments[++kt];return ti(Sn,Ut?jt:this,Zn)}}(d,E,V,oe);else var At=function(at,ht,jt){var pt=ht&u,Ut=Kr(at);return function Ft(){return(this&&this!==dt&&this instanceof Ft?Ut:at).apply(pt?jt:this,arguments)}}(d,E,V);return ec((xt?Mu:Qu)(At,_t),d,E)}function $u(d,E,V,oe){return d===w||bi(d,mr[V])&&!_n.call(oe,V)?E:d}function Vu(d,E,V,oe,ue,ye){return In(d)&&In(E)&&(ye.set(E,d),xo(d,E,w,Vu,ye),ye.delete(E)),d}function Mh(d){return Zr(d)?w:d}function Ku(d,E,V,oe,ue,ye){var Ee=V&m,Ie=d.length,Ce=E.length;if(Ie!=Ce&&!(Ee&&Ce>Ie))return!1;var ot=ye.get(d),rt=ye.get(E);if(ot&&rt)return ot==E&&rt==d;var lt=-1,xt=!0,_t=V&h?new nr:w;for(ye.set(d,E),ye.set(E,d);++lt<Ie;){var At=d[lt],at=E[lt];if(oe)var ht=Ee?oe(at,At,lt,E,d,ye):oe(At,at,lt,d,E,ye);if(ht!==w){if(ht)continue;xt=!1;break}if(_t){if(!ss(E,function(jt,pt){if(!Br(_t,pt)&&(At===jt||ue(At,jt,V,oe,ye)))return _t.push(pt)})){xt=!1;break}}else if(At!==at&&!ue(At,at,V,oe,ye)){xt=!1;break}}return ye.delete(d),ye.delete(E),xt}function Pi(d){return Ks(Yu(d,w,sc),d+"")}function Ds(d){return hu(d,Ln,Us)}function Ls(d){return hu(d,Jn,Hu)}var Fs=mo?function(d){return mo.get(d)}:sa;function To(d){for(var E=d.name+"",V=yr[E],oe=_n.call(yr,E)?V.length:0;oe--;){var ue=V[oe],ye=ue.func;if(ye==null||ye==d)return ue.name}return E}function xr(d){return(_n.call(fe,"placeholder")?fe:d).placeholder}function Bt(){var d=fe.iteratee||ra;return d=d===ra?du:d,arguments.length?d(arguments[0],arguments[1]):d}function Oo(d,E){var V,oe,ue=d.__data__;return((oe=typeof(V=E))=="string"||oe=="number"||oe=="symbol"||oe=="boolean"?V!=="__proto__":V===null)?ue[typeof E=="string"?"string":"hash"]:ue.map}function qs(d){for(var E=Ln(d),V=E.length;V--;){var oe=E[V],ue=d[oe];E[V]=[oe,ue,Gu(ue)]}return E}function or(d,E){var V=function(oe,ue){return oe==null?w:oe[ue]}(d,E);return pu(V)?V:w}var Us=ds?function(d){return d==null?[]:(d=kn(d),$i(ds(d),function(E){return Ja.call(d,E)}))}:aa,Hu=ds?function(d){for(var E=[];d;)Vi(E,Us(d)),d=co(d);return E}:aa,zn=Hn;function Wu(d,E,V){for(var oe=-1,ue=(E=Gi(E,d)).length,ye=!1;++oe<ue;){var Ee=Si(E[oe]);if(!(ye=d!=null&&V(d,Ee)))break;d=d[Ee]}return ye||++oe!=ue?ye:!!(ue=d==null?0:d.length)&&Do(ue)&&Di(Ee,ue)&&(Kt(d)||ar(d))}function Zu(d){return typeof d.constructor!="function"||Hr(d)?{}:vr(co(d))}function _h(d){return Kt(d)||ar(d)||!!(Qa&&d&&d[Qa])}function Di(d,E){var V=typeof d;return!!(E=E==null?e:E)&&(V=="number"||V!="symbol"&&Ue.test(d))&&d>-1&&d%1==0&&d<E}function Wn(d,E,V){if(!In(V))return!1;var oe=typeof E;return!!(oe=="number"?Yn(V)&&Di(E,V.length):oe=="string"&&E in V)&&bi(V[E],d)}function zs(d,E){if(Kt(d))return!1;var V=typeof d;return!(V!="number"&&V!="symbol"&&V!="boolean"&&d!=null&&!ri(d))||Be.test(d)||!vt.test(d)||E!=null&&d in kn(E)}function $s(d){var E=To(d),V=fe[E];if(typeof V!="function"||!(E in Qt.prototype))return!1;if(d===V)return!0;var oe=Fs(V);return!!oe&&d===oe[0]}(ms&&zn(new ms(new ArrayBuffer(1)))!=Y||Pr&&zn(new Pr)!=X||gs&&zn(gs.resolve())!=ne||gr&&zn(new gr)!=me||Dr&&zn(new Dr)!=Ae)&&(zn=function(d){var E=Hn(d),V=E==se?d.constructor:w,oe=V?sr(V):"";if(oe)switch(oe){case rh:return Y;case oh:return X;case sh:return ne;case ah:return me;case uh:return Ae}return E});var Eh=ro?Li:ua;function Hr(d){var E=d&&d.constructor;return d===(typeof E=="function"&&E.prototype||mr)}function Gu(d){return d==d&&!In(d)}function Xu(d,E){return function(V){return V!=null&&V[d]===E&&(E!==w||d in kn(V))}}function Yu(d,E,V){return E=Pn(E===w?d.length-1:E,0),function(){for(var oe=arguments,ue=-1,ye=Pn(oe.length-E,0),Ee=mt(ye);++ue<ye;)Ee[ue]=oe[E+ue];ue=-1;for(var Ie=mt(E+1);++ue<E;)Ie[ue]=oe[ue];return Ie[E]=V(Ee),ti(d,this,Ie)}}function Ju(d,E){return E.length<2?d:rr(d,li(E,0,-1))}function Vs(d,E){if((E!=="constructor"||typeof d[E]!="function")&&E!="__proto__")return d[E]}var Qu=tc(Mu),Wr=Yl||function(d,E){return dt.setTimeout(d,E)},Ks=tc(yh);function ec(d,E,V){var oe=E+"";return Ks(d,function(ue,ye){var Ee=ye.length;if(!Ee)return ue;var Ie=Ee-1;return ye[Ie]=(Ee>1?"& ":"")+ye[Ie],ye=ye.join(Ee>2?", ":" "),ue.replace(Le,`{
|
|
62
|
+
/* [wrapped with `+ye+`] */
|
|
63
|
+
`)}(oe,function(ue,ye){return si(a,function(Ee){var Ie="_."+Ee[0];ye&Ee[1]&&!Qr(ue,Ie)&&ue.push(Ie)}),ue.sort()}(function(ue){var ye=ue.match(Xe);return ye?ye[1].split(Lt):[]}(oe),V)))}function tc(d){var E=0,V=0;return function(){var oe=th(),ue=J-(oe-V);if(V=oe,ue>0){if(++E>=ee)return arguments[0]}else E=0;return d.apply(w,arguments)}}function jo(d,E){var V=-1,oe=d.length,ue=oe-1;for(E=E===w?oe:E;++V<E;){var ye=As(V,ue),Ee=d[ye];d[ye]=d[V],d[V]=Ee}return d.length=E,d}var Hs,Ws,nc=(Hs=Co(function(d){var E=[];return d.charCodeAt(0)===46&&E.push(""),d.replace(We,function(V,oe,ue,ye){E.push(ue?ye.replace(zt,"$1"):oe||V)}),E},function(d){return Ws.size===500&&Ws.clear(),d}),Ws=Hs.cache,Hs);function Si(d){if(typeof d=="string"||ri(d))return d;var E=d+"";return E=="0"&&1/d==-ae?"-0":E}function sr(d){if(d!=null){try{return oo.call(d)}catch(E){}try{return d+""}catch(E){}}return""}function ic(d){if(d instanceof Qt)return d.clone();var E=new ui(d.__wrapped__,d.__chain__);return E.__actions__=Xn(d.__actions__),E.__index__=d.__index__,E.__values__=d.__values__,E}var kh=Wt(function(d,E){return Nn(d)?Ur(d,Fn(E,1,Nn,!0)):[]}),Sh=Wt(function(d,E){var V=hi(E);return Nn(V)&&(V=w),Nn(d)?Ur(d,Fn(E,1,Nn,!0),Bt(V,2)):[]}),Ah=Wt(function(d,E){var V=hi(E);return Nn(V)&&(V=w),Nn(d)?Ur(d,Fn(E,1,Nn,!0),w,V):[]});function rc(d,E,V){var oe=d==null?0:d.length;if(!oe)return-1;var ue=V==null?0:Ht(V);return ue<0&&(ue=Pn(oe+ue,0)),eo(d,Bt(E,3),ue)}function oc(d,E,V){var oe=d==null?0:d.length;if(!oe)return-1;var ue=oe-1;return V!==w&&(ue=Ht(V),ue=V<0?Pn(oe+ue,0):Un(ue,oe-1)),eo(d,Bt(E,3),ue,!0)}function sc(d){return d!=null&&d.length?Fn(d,1):[]}function ac(d){return d&&d.length?d[0]:w}var Ih=Wt(function(d){var E=An(d,Ns);return E.length&&E[0]===d[0]?Ms(E):[]}),Th=Wt(function(d){var E=hi(d),V=An(d,Ns);return E===hi(V)?E=w:V.pop(),V.length&&V[0]===d[0]?Ms(V,Bt(E,2)):[]}),Oh=Wt(function(d){var E=hi(d),V=An(d,Ns);return(E=typeof E=="function"?E:w)&&V.pop(),V.length&&V[0]===d[0]?Ms(V,w,E):[]});function hi(d){var E=d==null?0:d.length;return E?d[E-1]:w}var jh=Wt(uc);function uc(d,E){return d&&d.length&&E&&E.length?Ss(d,E):d}var Nh=Pi(function(d,E){var V=d==null?0:d.length,oe=vs(d,E);return xu(d,An(E,function(ue){return Di(ue,V)?+ue:ue}).sort(ju)),oe});function Zs(d){return d==null?d:ih.call(d)}var Rh=Wt(function(d){return Zi(Fn(d,1,Nn,!0))}),Bh=Wt(function(d){var E=hi(d);return Nn(E)&&(E=w),Zi(Fn(d,1,Nn,!0),Bt(E,2))}),Ch=Wt(function(d){var E=hi(d);return E=typeof E=="function"?E:w,Zi(Fn(d,1,Nn,!0),w,E)});function Gs(d){if(!d||!d.length)return[];var E=0;return d=$i(d,function(V){if(Nn(V))return E=Pn(V.length,E),!0}),ls(E,function(V){return An(d,as(V))})}function cc(d,E){if(!d||!d.length)return[];var V=Gs(d);return E==null?V:An(V,function(oe){return ti(E,w,oe)})}var Ph=Wt(function(d,E){return Nn(d)?Ur(d,E):[]}),Dh=Wt(function(d){return js($i(d,Nn))}),Lh=Wt(function(d){var E=hi(d);return Nn(E)&&(E=w),js($i(d,Nn),Bt(E,2))}),Fh=Wt(function(d){var E=hi(d);return E=typeof E=="function"?E:w,js($i(d,Nn),w,E)}),qh=Wt(Gs),Uh=Wt(function(d){var E=d.length,V=E>1?d[E-1]:w;return V=typeof V=="function"?(d.pop(),V):w,cc(d,V)});function lc(d){var E=fe(d);return E.__chain__=!0,E}function No(d,E){return E(d)}var zh=Pi(function(d){var E=d.length,V=E?d[0]:0,oe=this.__wrapped__,ue=function(ye){return vs(ye,d)};return!(E>1||this.__actions__.length)&&oe instanceof Qt&&Di(V)?((oe=oe.slice(V,+V+(E?1:0))).__actions__.push({func:No,args:[ue],thisArg:w}),new ui(oe,this.__chain__).thru(function(ye){return E&&!ye.length&&ye.push(w),ye})):this.thru(ue)}),$h=Eo(function(d,E,V){_n.call(d,V)?++d[V]:Bi(d,V,1)}),Vh=Du(rc),Kh=Du(oc);function hc(d,E){return(Kt(d)?si:Wi)(d,Bt(E,3))}function fc(d,E){return(Kt(d)?Bl:uu)(d,Bt(E,3))}var Hh=Eo(function(d,E,V){_n.call(d,V)?d[V].push(E):Bi(d,V,[E])}),Wh=Wt(function(d,E,V){var oe=-1,ue=typeof E=="function",ye=Yn(d)?mt(d.length):[];return Wi(d,function(Ee){ye[++oe]=ue?ti(E,Ee,V):zr(Ee,E,V)}),ye}),Zh=Eo(function(d,E,V){Bi(d,V,E)});function Ro(d,E){return(Kt(d)?An:mu)(d,Bt(E,3))}var Gh=Eo(function(d,E,V){d[V?0:1].push(E)},function(){return[[],[]]}),Xh=Wt(function(d,E){if(d==null)return[];var V=E.length;return V>1&&Wn(d,E[0],E[1])?E=[]:V>2&&Wn(E[0],E[1],E[2])&&(E=[E[0]]),bu(d,Fn(E,1),[])}),Bo=Xl||function(){return dt.Date.now()};function pc(d,E,V){return E=V?w:E,E=d&&E==null?d.length:E,Ci(d,P,w,w,w,w,E)}function dc(d,E){var V;if(typeof E!="function")throw new ai(M);return d=Ht(d),function(){return--d>0&&(V=E.apply(this,arguments)),d<=1&&(E=w),V}}var Xs=Wt(function(d,E,V){var oe=u;if(V.length){var ue=Ki(V,xr(Xs));oe|=x}return Ci(d,oe,E,V,ue)}),mc=Wt(function(d,E,V){var oe=u|b;if(V.length){var ue=Ki(V,xr(mc));oe|=x}return Ci(E,oe,d,V,ue)});function gc(d,E,V){var oe,ue,ye,Ee,Ie,Ce,ot=0,rt=!1,lt=!1,xt=!0;if(typeof d!="function")throw new ai(M);function _t(pt){var Ut=oe,Ft=ue;return oe=ue=w,ot=pt,Ee=d.apply(Ft,Ut)}function At(pt){var Ut=pt-Ce;return Ce===w||Ut>=E||Ut<0||lt&&pt-ot>=ye}function at(){var pt=Bo();if(At(pt))return ht(pt);Ie=Wr(at,function(Ut){var Ft=E-(Ut-Ce);return lt?Un(Ft,ye-(Ut-ot)):Ft}(pt))}function ht(pt){return Ie=w,xt&&oe?_t(pt):(oe=ue=w,Ee)}function jt(){var pt=Bo(),Ut=At(pt);if(oe=arguments,ue=this,Ce=pt,Ut){if(Ie===w)return function(Ft){return ot=Ft,Ie=Wr(at,E),rt?_t(Ft):Ee}(Ce);if(lt)return Iu(Ie),Ie=Wr(at,E),_t(Ce)}return Ie===w&&(Ie=Wr(at,E)),Ee}return E=fi(E)||0,In(V)&&(rt=!!V.leading,ye=(lt="maxWait"in V)?Pn(fi(V.maxWait)||0,E):ye,xt="trailing"in V?!!V.trailing:xt),jt.cancel=function(){Ie!==w&&Iu(Ie),ot=0,oe=Ce=ue=Ie=w},jt.flush=function(){return Ie===w?Ee:ht(Bo())},jt}var Yh=Wt(function(d,E){return au(d,1,E)}),Jh=Wt(function(d,E,V){return au(d,fi(E)||0,V)});function Co(d,E){if(typeof d!="function"||E!=null&&typeof E!="function")throw new ai(M);var V=function(){var oe=arguments,ue=E?E.apply(this,oe):oe[0],ye=V.cache;if(ye.has(ue))return ye.get(ue);var Ee=d.apply(this,oe);return V.cache=ye.set(ue,Ee)||ye,Ee};return V.cache=new(Co.Cache||Ri),V}function Po(d){if(typeof d!="function")throw new ai(M);return function(){var E=arguments;switch(E.length){case 0:return!d.call(this);case 1:return!d.call(this,E[0]);case 2:return!d.call(this,E[0],E[1]);case 3:return!d.call(this,E[0],E[1],E[2])}return!d.apply(this,E)}}Co.Cache=Ri;var Qh=wh(function(d,E){var V=(E=E.length==1&&Kt(E[0])?An(E[0],ni(Bt())):An(Fn(E,1),ni(Bt()))).length;return Wt(function(oe){for(var ue=-1,ye=Un(oe.length,V);++ue<ye;)oe[ue]=E[ue].call(this,oe[ue]);return ti(d,this,oe)})}),Ys=Wt(function(d,E){var V=Ki(E,xr(Ys));return Ci(d,x,w,E,V)}),yc=Wt(function(d,E){var V=Ki(E,xr(yc));return Ci(d,j,w,E,V)}),ef=Pi(function(d,E){return Ci(d,B,w,w,w,E)});function bi(d,E){return d===E||d!=d&&E!=E}var tf=Io(xs),nf=Io(function(d,E){return d>=E}),ar=fu(function(){return arguments}())?fu:function(d){return On(d)&&_n.call(d,"callee")&&!Ja.call(d,"callee")},Kt=mt.isArray,rf=gi?ni(gi):function(d){return On(d)&&Hn(d)==G};function Yn(d){return d!=null&&Do(d.length)&&!Li(d)}function Nn(d){return On(d)&&Yn(d)}var Yi=Jl||ua,of=Kn?ni(Kn):function(d){return On(d)&&Hn(d)==R};function Js(d){if(!On(d))return!1;var E=Hn(d);return E==Z||E==q||typeof d.message=="string"&&typeof d.name=="string"&&!Zr(d)}function Li(d){if(!In(d))return!1;var E=Hn(d);return E==te||E==L||E==N||E==ce}function vc(d){return typeof d=="number"&&d==Ht(d)}function Do(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=e}function In(d){var E=typeof d;return d!=null&&(E=="object"||E=="function")}function On(d){return d!=null&&typeof d=="object"}var bc=Mi?ni(Mi):function(d){return On(d)&&zn(d)==X};function wc(d){return typeof d=="number"||On(d)&&Hn(d)==U}function Zr(d){if(!On(d)||Hn(d)!=se)return!1;var E=co(d);if(E===null)return!0;var V=_n.call(E,"constructor")&&E.constructor;return typeof V=="function"&&V instanceof V&&oo.call(V)==Hl}var Qs=Pa?ni(Pa):function(d){return On(d)&&Hn(d)==ke},xc=Da?ni(Da):function(d){return On(d)&&zn(d)==me};function Lo(d){return typeof d=="string"||!Kt(d)&&On(d)&&Hn(d)==ve}function ri(d){return typeof d=="symbol"||On(d)&&Hn(d)==je}var Mr=La?ni(La):function(d){return On(d)&&Do(d.length)&&!!Et[Hn(d)]},sf=Io(ks),af=Io(function(d,E){return d<=E});function Mc(d){if(!d)return[];if(Yn(d))return Lo(d)?yi(d):Xn(d);if(Cr&&d[Cr])return function(V){for(var oe,ue=[];!(oe=V.next()).done;)ue.push(oe.value);return ue}(d[Cr]());var E=zn(d);return(E==X?fs:E==me?to:_r)(d)}function Fi(d){return d?(d=fi(d))===ae||d===-ae?(d<0?-1:1)*r:d==d?d:0:d===0?d:0}function Ht(d){var E=Fi(d),V=E%1;return E==E?V?E-V:E:0}function _c(d){return d?ir(Ht(d),0,n):0}function fi(d){if(typeof d=="number")return d;if(ri(d))return i;if(In(d)){var E=typeof d.valueOf=="function"?d.valueOf():d;d=In(E)?E+"":E}if(typeof d!="string")return d===0?d:+d;d=Va(d);var V=qe.test(d);return V||Vt.test(d)?Vn(d.slice(2),V?2:8):$t.test(d)?i:+d}function Ec(d){return ki(d,Jn(d))}function Mn(d){return d==null?"":ii(d)}var uf=br(function(d,E){if(Hr(E)||Yn(E))ki(E,Ln(E),d);else for(var V in E)_n.call(E,V)&&qr(d,V,E[V])}),kc=br(function(d,E){ki(E,Jn(E),d)}),Fo=br(function(d,E,V,oe){ki(E,Jn(E),d,oe)}),cf=br(function(d,E,V,oe){ki(E,Ln(E),d,oe)}),lf=Pi(vs),hf=Wt(function(d,E){d=kn(d);var V=-1,oe=E.length,ue=oe>2?E[2]:w;for(ue&&Wn(E[0],E[1],ue)&&(oe=1);++V<oe;)for(var ye=E[V],Ee=Jn(ye),Ie=-1,Ce=Ee.length;++Ie<Ce;){var ot=Ee[Ie],rt=d[ot];(rt===w||bi(rt,mr[ot])&&!_n.call(d,ot))&&(d[ot]=ye[ot])}return d}),ff=Wt(function(d){return d.push(w,Vu),ti(Sc,w,d)});function ea(d,E,V){var oe=d==null?w:rr(d,E);return oe===w?V:oe}function ta(d,E){return d!=null&&Wu(d,E,dh)}var pf=Fu(function(d,E,V){E!=null&&typeof E.toString!="function"&&(E=so.call(E)),d[E]=V},ia(Qn)),df=Fu(function(d,E,V){E!=null&&typeof E.toString!="function"&&(E=so.call(E)),_n.call(d,E)?d[E].push(V):d[E]=[V]},Bt),mf=Wt(zr);function Ln(d){return Yn(d)?iu(d):Es(d)}function Jn(d){return Yn(d)?iu(d,!0):function(E){if(!In(E))return function(ye){var Ee=[];if(ye!=null)for(var Ie in kn(ye))Ee.push(Ie);return Ee}(E);var V=Hr(E),oe=[];for(var ue in E)(ue!="constructor"||!V&&_n.call(E,ue))&&oe.push(ue);return oe}(d)}var gf=br(function(d,E,V){xo(d,E,V)}),Sc=br(function(d,E,V,oe){xo(d,E,V,oe)}),yf=Pi(function(d,E){var V={};if(d==null)return V;var oe=!1;E=An(E,function(ye){return ye=Gi(ye,d),oe||(oe=ye.length>1),ye}),ki(d,Ls(d),V),oe&&(V=ci(V,c|l|f,Mh));for(var ue=E.length;ue--;)Os(V,E[ue]);return V}),vf=Pi(function(d,E){return d==null?{}:function(V,oe){return wu(V,oe,function(ue,ye){return ta(V,ye)})}(d,E)});function Ac(d,E){if(d==null)return{};var V=An(Ls(d),function(oe){return[oe]});return E=Bt(E),wu(d,V,function(oe,ue){return E(oe,ue[0])})}var Ic=zu(Ln),Tc=zu(Jn);function _r(d){return d==null?[]:hs(d,Ln(d))}var bf=wr(function(d,E,V){return E=E.toLowerCase(),d+(V?Oc(E):E)});function Oc(d){return na(Mn(d).toLowerCase())}function jc(d){return(d=Mn(d))&&d.replace(et,Ll).replace(Oe,"")}var wf=wr(function(d,E,V){return d+(V?"-":"")+E.toLowerCase()}),xf=wr(function(d,E,V){return d+(V?" ":"")+E.toLowerCase()}),Mf=Pu("toLowerCase"),_f=wr(function(d,E,V){return d+(V?"_":"")+E.toLowerCase()}),Ef=wr(function(d,E,V){return d+(V?" ":"")+na(E)}),kf=wr(function(d,E,V){return d+(V?" ":"")+E.toUpperCase()}),na=Pu("toUpperCase");function Nc(d,E,V){return d=Mn(d),(E=V?w:E)===w?function(oe){return nt.test(oe)}(d)?function(oe){return oe.match(ze)||[]}(d):function(oe){return oe.match(De)||[]}(d):d.match(E)||[]}var Rc=Wt(function(d,E){try{return ti(d,w,E)}catch(V){return Js(V)?V:new an(V)}}),Sf=Pi(function(d,E){return si(E,function(V){V=Si(V),Bi(d,V,Xs(d[V],d))}),d});function ia(d){return function(){return d}}var Af=Lu(),If=Lu(!0);function Qn(d){return d}function ra(d){return du(typeof d=="function"?d:ci(d,c))}var Tf=Wt(function(d,E){return function(V){return zr(V,d,E)}}),Of=Wt(function(d,E){return function(V){return zr(d,V,E)}});function oa(d,E,V){var oe=Ln(E),ue=wo(E,oe);V!=null||In(E)&&(ue.length||!oe.length)||(V=E,E=d,d=this,ue=wo(E,Ln(E)));var ye=!(In(V)&&"chain"in V&&!V.chain),Ee=Li(d);return si(ue,function(Ie){var Ce=E[Ie];d[Ie]=Ce,Ee&&(d.prototype[Ie]=function(){var ot=this.__chain__;if(ye||ot){var rt=d(this.__wrapped__);return(rt.__actions__=Xn(this.__actions__)).push({func:Ce,args:arguments,thisArg:d}),rt.__chain__=ot,rt}return Ce.apply(d,Vi([this.value()],arguments))})}),d}function sa(){}var jf=Cs(An),Nf=Cs(Fa),Rf=Cs(ss);function Bc(d){return zs(d)?as(Si(d)):function(E){return function(V){return rr(V,E)}}(d)}var Bf=qu(),Cf=qu(!0);function aa(){return[]}function ua(){return!1}var ca,Pf=So(function(d,E){return d+E},0),Df=Ps("ceil"),Lf=So(function(d,E){return d/E},1),Ff=Ps("floor"),qf=So(function(d,E){return d*E},1),Uf=Ps("round"),zf=So(function(d,E){return d-E},0);return fe.after=function(d,E){if(typeof E!="function")throw new ai(M);return d=Ht(d),function(){if(--d<1)return E.apply(this,arguments)}},fe.ary=pc,fe.assign=uf,fe.assignIn=kc,fe.assignInWith=Fo,fe.assignWith=cf,fe.at=lf,fe.before=dc,fe.bind=Xs,fe.bindAll=Sf,fe.bindKey=mc,fe.castArray=function(){if(!arguments.length)return[];var d=arguments[0];return Kt(d)?d:[d]},fe.chain=lc,fe.chunk=function(d,E,V){E=(V?Wn(d,E,V):E===w)?1:Pn(Ht(E),0);var oe=d==null?0:d.length;if(!oe||E<1)return[];for(var ue=0,ye=0,Ee=mt(fo(oe/E));ue<oe;)Ee[ye++]=li(d,ue,ue+=E);return Ee},fe.compact=function(d){for(var E=-1,V=d==null?0:d.length,oe=0,ue=[];++E<V;){var ye=d[E];ye&&(ue[oe++]=ye)}return ue},fe.concat=function(){var d=arguments.length;if(!d)return[];for(var E=mt(d-1),V=arguments[0],oe=d;oe--;)E[oe-1]=arguments[oe];return Vi(Kt(V)?Xn(V):[V],Fn(E,1))},fe.cond=function(d){var E=d==null?0:d.length,V=Bt();return d=E?An(d,function(oe){if(typeof oe[1]!="function")throw new ai(M);return[V(oe[0]),oe[1]]}):[],Wt(function(oe){for(var ue=-1;++ue<E;){var ye=d[ue];if(ti(ye[0],this,oe))return ti(ye[1],this,oe)}})},fe.conforms=function(d){return function(E){var V=Ln(E);return function(oe){return su(oe,E,V)}}(ci(d,c))},fe.constant=ia,fe.countBy=$h,fe.create=function(d,E){var V=vr(d);return E==null?V:ou(V,E)},fe.curry=function d(E,V,oe){var ue=Ci(E,_,w,w,w,w,w,V=oe?w:V);return ue.placeholder=d.placeholder,ue},fe.curryRight=function d(E,V,oe){var ue=Ci(E,A,w,w,w,w,w,V=oe?w:V);return ue.placeholder=d.placeholder,ue},fe.debounce=gc,fe.defaults=hf,fe.defaultsDeep=ff,fe.defer=Yh,fe.delay=Jh,fe.difference=kh,fe.differenceBy=Sh,fe.differenceWith=Ah,fe.drop=function(d,E,V){var oe=d==null?0:d.length;return oe?li(d,(E=V||E===w?1:Ht(E))<0?0:E,oe):[]},fe.dropRight=function(d,E,V){var oe=d==null?0:d.length;return oe?li(d,0,(E=oe-(E=V||E===w?1:Ht(E)))<0?0:E):[]},fe.dropRightWhile=function(d,E){return d&&d.length?_o(d,Bt(E,3),!0,!0):[]},fe.dropWhile=function(d,E){return d&&d.length?_o(d,Bt(E,3),!0):[]},fe.fill=function(d,E,V,oe){var ue=d==null?0:d.length;return ue?(V&&typeof V!="number"&&Wn(d,E,V)&&(V=0,oe=ue),function(ye,Ee,Ie,Ce){var ot=ye.length;for((Ie=Ht(Ie))<0&&(Ie=-Ie>ot?0:ot+Ie),(Ce=Ce===w||Ce>ot?ot:Ht(Ce))<0&&(Ce+=ot),Ce=Ie>Ce?0:_c(Ce);Ie<Ce;)ye[Ie++]=Ee;return ye}(d,E,V,oe)):[]},fe.filter=function(d,E){return(Kt(d)?$i:cu)(d,Bt(E,3))},fe.flatMap=function(d,E){return Fn(Ro(d,E),1)},fe.flatMapDeep=function(d,E){return Fn(Ro(d,E),ae)},fe.flatMapDepth=function(d,E,V){return V=V===w?1:Ht(V),Fn(Ro(d,E),V)},fe.flatten=sc,fe.flattenDeep=function(d){return d!=null&&d.length?Fn(d,ae):[]},fe.flattenDepth=function(d,E){return d!=null&&d.length?Fn(d,E=E===w?1:Ht(E)):[]},fe.flip=function(d){return Ci(d,z)},fe.flow=Af,fe.flowRight=If,fe.fromPairs=function(d){for(var E=-1,V=d==null?0:d.length,oe={};++E<V;){var ue=d[E];oe[ue[0]]=ue[1]}return oe},fe.functions=function(d){return d==null?[]:wo(d,Ln(d))},fe.functionsIn=function(d){return d==null?[]:wo(d,Jn(d))},fe.groupBy=Hh,fe.initial=function(d){return d!=null&&d.length?li(d,0,-1):[]},fe.intersection=Ih,fe.intersectionBy=Th,fe.intersectionWith=Oh,fe.invert=pf,fe.invertBy=df,fe.invokeMap=Wh,fe.iteratee=ra,fe.keyBy=Zh,fe.keys=Ln,fe.keysIn=Jn,fe.map=Ro,fe.mapKeys=function(d,E){var V={};return E=Bt(E,3),Ei(d,function(oe,ue,ye){Bi(V,E(oe,ue,ye),oe)}),V},fe.mapValues=function(d,E){var V={};return E=Bt(E,3),Ei(d,function(oe,ue,ye){Bi(V,ue,E(oe,ue,ye))}),V},fe.matches=function(d){return gu(ci(d,c))},fe.matchesProperty=function(d,E){return yu(d,ci(E,c))},fe.memoize=Co,fe.merge=gf,fe.mergeWith=Sc,fe.method=Tf,fe.methodOf=Of,fe.mixin=oa,fe.negate=Po,fe.nthArg=function(d){return d=Ht(d),Wt(function(E){return vu(E,d)})},fe.omit=yf,fe.omitBy=function(d,E){return Ac(d,Po(Bt(E)))},fe.once=function(d){return dc(2,d)},fe.orderBy=function(d,E,V,oe){return d==null?[]:(Kt(E)||(E=E==null?[]:[E]),Kt(V=oe?w:V)||(V=V==null?[]:[V]),bu(d,E,V))},fe.over=jf,fe.overArgs=Qh,fe.overEvery=Nf,fe.overSome=Rf,fe.partial=Ys,fe.partialRight=yc,fe.partition=Gh,fe.pick=vf,fe.pickBy=Ac,fe.property=Bc,fe.propertyOf=function(d){return function(E){return d==null?w:rr(d,E)}},fe.pull=jh,fe.pullAll=uc,fe.pullAllBy=function(d,E,V){return d&&d.length&&E&&E.length?Ss(d,E,Bt(V,2)):d},fe.pullAllWith=function(d,E,V){return d&&d.length&&E&&E.length?Ss(d,E,w,V):d},fe.pullAt=Nh,fe.range=Bf,fe.rangeRight=Cf,fe.rearg=ef,fe.reject=function(d,E){return(Kt(d)?$i:cu)(d,Po(Bt(E,3)))},fe.remove=function(d,E){var V=[];if(!d||!d.length)return V;var oe=-1,ue=[],ye=d.length;for(E=Bt(E,3);++oe<ye;){var Ee=d[oe];E(Ee,oe,d)&&(V.push(Ee),ue.push(oe))}return xu(d,ue),V},fe.rest=function(d,E){if(typeof d!="function")throw new ai(M);return Wt(d,E=E===w?E:Ht(E))},fe.reverse=Zs,fe.sampleSize=function(d,E,V){return E=(V?Wn(d,E,V):E===w)?1:Ht(E),(Kt(d)?ch:gh)(d,E)},fe.set=function(d,E,V){return d==null?d:Vr(d,E,V)},fe.setWith=function(d,E,V,oe){return oe=typeof oe=="function"?oe:w,d==null?d:Vr(d,E,V,oe)},fe.shuffle=function(d){return(Kt(d)?lh:vh)(d)},fe.slice=function(d,E,V){var oe=d==null?0:d.length;return oe?(V&&typeof V!="number"&&Wn(d,E,V)?(E=0,V=oe):(E=E==null?0:Ht(E),V=V===w?oe:Ht(V)),li(d,E,V)):[]},fe.sortBy=Xh,fe.sortedUniq=function(d){return d&&d.length?_u(d):[]},fe.sortedUniqBy=function(d,E){return d&&d.length?_u(d,Bt(E,2)):[]},fe.split=function(d,E,V){return V&&typeof V!="number"&&Wn(d,E,V)&&(E=V=w),(V=V===w?n:V>>>0)?(d=Mn(d))&&(typeof E=="string"||E!=null&&!Qs(E))&&!(E=ii(E))&&pr(d)?Xi(yi(d),0,V):d.split(E,V):[]},fe.spread=function(d,E){if(typeof d!="function")throw new ai(M);return E=E==null?0:Pn(Ht(E),0),Wt(function(V){var oe=V[E],ue=Xi(V,0,E);return oe&&Vi(ue,oe),ti(d,this,ue)})},fe.tail=function(d){var E=d==null?0:d.length;return E?li(d,1,E):[]},fe.take=function(d,E,V){return d&&d.length?li(d,0,(E=V||E===w?1:Ht(E))<0?0:E):[]},fe.takeRight=function(d,E,V){var oe=d==null?0:d.length;return oe?li(d,(E=oe-(E=V||E===w?1:Ht(E)))<0?0:E,oe):[]},fe.takeRightWhile=function(d,E){return d&&d.length?_o(d,Bt(E,3),!1,!0):[]},fe.takeWhile=function(d,E){return d&&d.length?_o(d,Bt(E,3)):[]},fe.tap=function(d,E){return E(d),d},fe.throttle=function(d,E,V){var oe=!0,ue=!0;if(typeof d!="function")throw new ai(M);return In(V)&&(oe="leading"in V?!!V.leading:oe,ue="trailing"in V?!!V.trailing:ue),gc(d,E,{leading:oe,maxWait:E,trailing:ue})},fe.thru=No,fe.toArray=Mc,fe.toPairs=Ic,fe.toPairsIn=Tc,fe.toPath=function(d){return Kt(d)?An(d,Si):ri(d)?[d]:Xn(nc(Mn(d)))},fe.toPlainObject=Ec,fe.transform=function(d,E,V){var oe=Kt(d),ue=oe||Yi(d)||Mr(d);if(E=Bt(E,4),V==null){var ye=d&&d.constructor;V=ue?oe?new ye:[]:In(d)&&Li(ye)?vr(co(d)):{}}return(ue?si:Ei)(d,function(Ee,Ie,Ce){return E(V,Ee,Ie,Ce)}),V},fe.unary=function(d){return pc(d,1)},fe.union=Rh,fe.unionBy=Bh,fe.unionWith=Ch,fe.uniq=function(d){return d&&d.length?Zi(d):[]},fe.uniqBy=function(d,E){return d&&d.length?Zi(d,Bt(E,2)):[]},fe.uniqWith=function(d,E){return E=typeof E=="function"?E:w,d&&d.length?Zi(d,w,E):[]},fe.unset=function(d,E){return d==null||Os(d,E)},fe.unzip=Gs,fe.unzipWith=cc,fe.update=function(d,E,V){return d==null?d:ku(d,E,Rs(V))},fe.updateWith=function(d,E,V,oe){return oe=typeof oe=="function"?oe:w,d==null?d:ku(d,E,Rs(V),oe)},fe.values=_r,fe.valuesIn=function(d){return d==null?[]:hs(d,Jn(d))},fe.without=Ph,fe.words=Nc,fe.wrap=function(d,E){return Ys(Rs(E),d)},fe.xor=Dh,fe.xorBy=Lh,fe.xorWith=Fh,fe.zip=qh,fe.zipObject=function(d,E){return Au(d||[],E||[],qr)},fe.zipObjectDeep=function(d,E){return Au(d||[],E||[],Vr)},fe.zipWith=Uh,fe.entries=Ic,fe.entriesIn=Tc,fe.extend=kc,fe.extendWith=Fo,oa(fe,fe),fe.add=Pf,fe.attempt=Rc,fe.camelCase=bf,fe.capitalize=Oc,fe.ceil=Df,fe.clamp=function(d,E,V){return V===w&&(V=E,E=w),V!==w&&(V=(V=fi(V))==V?V:0),E!==w&&(E=(E=fi(E))==E?E:0),ir(fi(d),E,V)},fe.clone=function(d){return ci(d,f)},fe.cloneDeep=function(d){return ci(d,c|f)},fe.cloneDeepWith=function(d,E){return ci(d,c|f,E=typeof E=="function"?E:w)},fe.cloneWith=function(d,E){return ci(d,f,E=typeof E=="function"?E:w)},fe.conformsTo=function(d,E){return E==null||su(d,E,Ln(E))},fe.deburr=jc,fe.defaultTo=function(d,E){return d==null||d!=d?E:d},fe.divide=Lf,fe.endsWith=function(d,E,V){d=Mn(d),E=ii(E);var oe=d.length,ue=V=V===w?oe:ir(Ht(V),0,oe);return(V-=E.length)>=0&&d.slice(V,ue)==E},fe.eq=bi,fe.escape=function(d){return(d=Mn(d))&&Ve.test(d)?d.replace(Ct,Fl):d},fe.escapeRegExp=function(d){return(d=Mn(d))&&Ne.test(d)?d.replace(St,"\\$&"):d},fe.every=function(d,E,V){var oe=Kt(d)?Fa:fh;return V&&Wn(d,E,V)&&(E=w),oe(d,Bt(E,3))},fe.find=Vh,fe.findIndex=rc,fe.findKey=function(d,E){return qa(d,Bt(E,3),Ei)},fe.findLast=Kh,fe.findLastIndex=oc,fe.findLastKey=function(d,E){return qa(d,Bt(E,3),ws)},fe.floor=Ff,fe.forEach=hc,fe.forEachRight=fc,fe.forIn=function(d,E){return d==null?d:bs(d,Bt(E,3),Jn)},fe.forInRight=function(d,E){return d==null?d:lu(d,Bt(E,3),Jn)},fe.forOwn=function(d,E){return d&&Ei(d,Bt(E,3))},fe.forOwnRight=function(d,E){return d&&ws(d,Bt(E,3))},fe.get=ea,fe.gt=tf,fe.gte=nf,fe.has=function(d,E){return d!=null&&Wu(d,E,ph)},fe.hasIn=ta,fe.head=ac,fe.identity=Qn,fe.includes=function(d,E,V,oe){d=Yn(d)?d:_r(d),V=V&&!oe?Ht(V):0;var ue=d.length;return V<0&&(V=Pn(ue+V,0)),Lo(d)?V<=ue&&d.indexOf(E,V)>-1:!!ue&&fr(d,E,V)>-1},fe.indexOf=function(d,E,V){var oe=d==null?0:d.length;if(!oe)return-1;var ue=V==null?0:Ht(V);return ue<0&&(ue=Pn(oe+ue,0)),fr(d,E,ue)},fe.inRange=function(d,E,V){return E=Fi(E),V===w?(V=E,E=0):V=Fi(V),function(oe,ue,ye){return oe>=Un(ue,ye)&&oe<Pn(ue,ye)}(d=fi(d),E,V)},fe.invoke=mf,fe.isArguments=ar,fe.isArray=Kt,fe.isArrayBuffer=rf,fe.isArrayLike=Yn,fe.isArrayLikeObject=Nn,fe.isBoolean=function(d){return d===!0||d===!1||On(d)&&Hn(d)==I},fe.isBuffer=Yi,fe.isDate=of,fe.isElement=function(d){return On(d)&&d.nodeType===1&&!Zr(d)},fe.isEmpty=function(d){if(d==null)return!0;if(Yn(d)&&(Kt(d)||typeof d=="string"||typeof d.splice=="function"||Yi(d)||Mr(d)||ar(d)))return!d.length;var E=zn(d);if(E==X||E==me)return!d.size;if(Hr(d))return!Es(d).length;for(var V in d)if(_n.call(d,V))return!1;return!0},fe.isEqual=function(d,E){return $r(d,E)},fe.isEqualWith=function(d,E,V){var oe=(V=typeof V=="function"?V:w)?V(d,E):w;return oe===w?$r(d,E,w,V):!!oe},fe.isError=Js,fe.isFinite=function(d){return typeof d=="number"&&eu(d)},fe.isFunction=Li,fe.isInteger=vc,fe.isLength=Do,fe.isMap=bc,fe.isMatch=function(d,E){return d===E||_s(d,E,qs(E))},fe.isMatchWith=function(d,E,V){return V=typeof V=="function"?V:w,_s(d,E,qs(E),V)},fe.isNaN=function(d){return wc(d)&&d!=+d},fe.isNative=function(d){if(Eh(d))throw new an("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return pu(d)},fe.isNil=function(d){return d==null},fe.isNull=function(d){return d===null},fe.isNumber=wc,fe.isObject=In,fe.isObjectLike=On,fe.isPlainObject=Zr,fe.isRegExp=Qs,fe.isSafeInteger=function(d){return vc(d)&&d>=-e&&d<=e},fe.isSet=xc,fe.isString=Lo,fe.isSymbol=ri,fe.isTypedArray=Mr,fe.isUndefined=function(d){return d===w},fe.isWeakMap=function(d){return On(d)&&zn(d)==Ae},fe.isWeakSet=function(d){return On(d)&&Hn(d)=="[object WeakSet]"},fe.join=function(d,E){return d==null?"":Ql.call(d,E)},fe.kebabCase=wf,fe.last=hi,fe.lastIndexOf=function(d,E,V){var oe=d==null?0:d.length;if(!oe)return-1;var ue=oe;return V!==w&&(ue=(ue=Ht(V))<0?Pn(oe+ue,0):Un(ue,oe-1)),E==E?function(ye,Ee,Ie){for(var Ce=Ie+1;Ce--;)if(ye[Ce]===Ee)return Ce;return Ce}(d,E,ue):eo(d,Ua,ue,!0)},fe.lowerCase=xf,fe.lowerFirst=Mf,fe.lt=sf,fe.lte=af,fe.max=function(d){return d&&d.length?bo(d,Qn,xs):w},fe.maxBy=function(d,E){return d&&d.length?bo(d,Bt(E,2),xs):w},fe.mean=function(d){return za(d,Qn)},fe.meanBy=function(d,E){return za(d,Bt(E,2))},fe.min=function(d){return d&&d.length?bo(d,Qn,ks):w},fe.minBy=function(d,E){return d&&d.length?bo(d,Bt(E,2),ks):w},fe.stubArray=aa,fe.stubFalse=ua,fe.stubObject=function(){return{}},fe.stubString=function(){return""},fe.stubTrue=function(){return!0},fe.multiply=qf,fe.nth=function(d,E){return d&&d.length?vu(d,Ht(E)):w},fe.noConflict=function(){return dt._===this&&(dt._=Wl),this},fe.noop=sa,fe.now=Bo,fe.pad=function(d,E,V){d=Mn(d);var oe=(E=Ht(E))?dr(d):0;if(!E||oe>=E)return d;var ue=(E-oe)/2;return Ao(po(ue),V)+d+Ao(fo(ue),V)},fe.padEnd=function(d,E,V){d=Mn(d);var oe=(E=Ht(E))?dr(d):0;return E&&oe<E?d+Ao(E-oe,V):d},fe.padStart=function(d,E,V){d=Mn(d);var oe=(E=Ht(E))?dr(d):0;return E&&oe<E?Ao(E-oe,V)+d:d},fe.parseInt=function(d,E,V){return V||E==null?E=0:E&&(E=+E),nh(Mn(d).replace(Ze,""),E||0)},fe.random=function(d,E,V){if(V&&typeof V!="boolean"&&Wn(d,E,V)&&(E=V=w),V===w&&(typeof E=="boolean"?(V=E,E=w):typeof d=="boolean"&&(V=d,d=w)),d===w&&E===w?(d=0,E=1):(d=Fi(d),E===w?(E=d,d=0):E=Fi(E)),d>E){var oe=d;d=E,E=oe}if(V||d%1||E%1){var ue=tu();return Un(d+ue*(E-d+Yt("1e-"+((ue+"").length-1))),E)}return As(d,E)},fe.reduce=function(d,E,V){var oe=Kt(d)?os:$a,ue=arguments.length<3;return oe(d,Bt(E,4),V,ue,Wi)},fe.reduceRight=function(d,E,V){var oe=Kt(d)?Cl:$a,ue=arguments.length<3;return oe(d,Bt(E,4),V,ue,uu)},fe.repeat=function(d,E,V){return E=(V?Wn(d,E,V):E===w)?1:Ht(E),Is(Mn(d),E)},fe.replace=function(){var d=arguments,E=Mn(d[0]);return d.length<3?E:E.replace(d[1],d[2])},fe.result=function(d,E,V){var oe=-1,ue=(E=Gi(E,d)).length;for(ue||(ue=1,d=w);++oe<ue;){var ye=d==null?w:d[Si(E[oe])];ye===w&&(oe=ue,ye=V),d=Li(ye)?ye.call(d):ye}return d},fe.round=Uf,fe.runInContext=$e,fe.sample=function(d){return(Kt(d)?ru:mh)(d)},fe.size=function(d){if(d==null)return 0;if(Yn(d))return Lo(d)?dr(d):d.length;var E=zn(d);return E==X||E==me?d.size:Es(d).length},fe.snakeCase=_f,fe.some=function(d,E,V){var oe=Kt(d)?ss:bh;return V&&Wn(d,E,V)&&(E=w),oe(d,Bt(E,3))},fe.sortedIndex=function(d,E){return Mo(d,E)},fe.sortedIndexBy=function(d,E,V){return Ts(d,E,Bt(V,2))},fe.sortedIndexOf=function(d,E){var V=d==null?0:d.length;if(V){var oe=Mo(d,E);if(oe<V&&bi(d[oe],E))return oe}return-1},fe.sortedLastIndex=function(d,E){return Mo(d,E,!0)},fe.sortedLastIndexBy=function(d,E,V){return Ts(d,E,Bt(V,2),!0)},fe.sortedLastIndexOf=function(d,E){if(d!=null&&d.length){var V=Mo(d,E,!0)-1;if(bi(d[V],E))return V}return-1},fe.startCase=Ef,fe.startsWith=function(d,E,V){return d=Mn(d),V=V==null?0:ir(Ht(V),0,d.length),E=ii(E),d.slice(V,V+E.length)==E},fe.subtract=zf,fe.sum=function(d){return d&&d.length?cs(d,Qn):0},fe.sumBy=function(d,E){return d&&d.length?cs(d,Bt(E,2)):0},fe.template=function(d,E,V){var oe=fe.templateSettings;V&&Wn(d,E,V)&&(E=w),d=Mn(d),E=Fo({},E,oe,$u);var ue,ye,Ee=Fo({},E.imports,oe.imports,$u),Ie=Ln(Ee),Ce=hs(Ee,Ie),ot=0,rt=E.interpolate||Tt,lt="__p += '",xt=ps((E.escape||Tt).source+"|"+rt.source+"|"+(rt===Ke?Fe:Tt).source+"|"+(E.evaluate||Tt).source+"|$","g"),_t="//# sourceURL="+(_n.call(E,"sourceURL")?(E.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Mt+"]")+`
|
|
64
|
+
`;d.replace(xt,function(ht,jt,pt,Ut,Ft,wn){return pt||(pt=Ut),lt+=d.slice(ot,wn).replace(Rt,ql),jt&&(ue=!0,lt+=`' +
|
|
65
|
+
__e(`+jt+`) +
|
|
66
|
+
'`),Ft&&(ye=!0,lt+=`';
|
|
67
|
+
`+Ft+`;
|
|
68
|
+
__p += '`),pt&&(lt+=`' +
|
|
69
|
+
((__t = (`+pt+`)) == null ? '' : __t) +
|
|
70
|
+
'`),ot=wn+ht.length,ht}),lt+=`';
|
|
71
|
+
`;var At=_n.call(E,"variable")&&E.variable;if(At){if(Qe.test(At))throw new an("Invalid `variable` option passed into `_.template`")}else lt=`with (obj) {
|
|
72
|
+
`+lt+`
|
|
73
|
+
}
|
|
74
|
+
`;lt=(ye?lt.replace(Te,""):lt).replace(ft,"$1").replace(Se,"$1;"),lt="function("+(At||"obj")+`) {
|
|
75
|
+
`+(At?"":`obj || (obj = {});
|
|
76
|
+
`)+"var __t, __p = ''"+(ue?", __e = _.escape":"")+(ye?`, __j = Array.prototype.join;
|
|
77
|
+
function print() { __p += __j.call(arguments, '') }
|
|
78
|
+
`:`;
|
|
79
|
+
`)+lt+`return __p
|
|
80
|
+
}`;var at=Rc(function(){return Cn(Ie,_t+"return "+lt).apply(w,Ce)});if(at.source=lt,Js(at))throw at;return at},fe.times=function(d,E){if((d=Ht(d))<1||d>e)return[];var V=n,oe=Un(d,n);E=Bt(E),d-=n;for(var ue=ls(oe,E);++V<d;)E(V);return ue},fe.toFinite=Fi,fe.toInteger=Ht,fe.toLength=_c,fe.toLower=function(d){return Mn(d).toLowerCase()},fe.toNumber=fi,fe.toSafeInteger=function(d){return d?ir(Ht(d),-e,e):d===0?d:0},fe.toString=Mn,fe.toUpper=function(d){return Mn(d).toUpperCase()},fe.trim=function(d,E,V){if((d=Mn(d))&&(V||E===w))return Va(d);if(!d||!(E=ii(E)))return d;var oe=yi(d),ue=yi(E);return Xi(oe,Ka(oe,ue),Ha(oe,ue)+1).join("")},fe.trimEnd=function(d,E,V){if((d=Mn(d))&&(V||E===w))return d.slice(0,Za(d)+1);if(!d||!(E=ii(E)))return d;var oe=yi(d);return Xi(oe,0,Ha(oe,yi(E))+1).join("")},fe.trimStart=function(d,E,V){if((d=Mn(d))&&(V||E===w))return d.replace(Ze,"");if(!d||!(E=ii(E)))return d;var oe=yi(d);return Xi(oe,Ka(oe,yi(E))).join("")},fe.truncate=function(d,E){var V=30,oe="...";if(In(E)){var ue="separator"in E?E.separator:ue;V="length"in E?Ht(E.length):V,oe="omission"in E?ii(E.omission):oe}var ye=(d=Mn(d)).length;if(pr(d)){var Ee=yi(d);ye=Ee.length}if(V>=ye)return d;var Ie=V-dr(oe);if(Ie<1)return oe;var Ce=Ee?Xi(Ee,0,Ie).join(""):d.slice(0,Ie);if(ue===w)return Ce+oe;if(Ee&&(Ie+=Ce.length-Ie),Qs(ue)){if(d.slice(Ie).search(ue)){var ot,rt=Ce;for(ue.global||(ue=ps(ue.source,Mn(Je.exec(ue))+"g")),ue.lastIndex=0;ot=ue.exec(rt);)var lt=ot.index;Ce=Ce.slice(0,lt===w?Ie:lt)}}else if(d.indexOf(ii(ue),Ie)!=Ie){var xt=Ce.lastIndexOf(ue);xt>-1&&(Ce=Ce.slice(0,xt))}return Ce+oe},fe.unescape=function(d){return(d=Mn(d))&&Pe.test(d)?d.replace(Ge,zl):d},fe.uniqueId=function(d){var E=++Kl;return Mn(d)+E},fe.upperCase=kf,fe.upperFirst=na,fe.each=hc,fe.eachRight=fc,fe.first=ac,oa(fe,(ca={},Ei(fe,function(d,E){_n.call(fe.prototype,E)||(ca[E]=d)}),ca),{chain:!1}),fe.VERSION="4.17.21",si(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){fe[d].placeholder=fe}),si(["drop","take"],function(d,E){Qt.prototype[d]=function(V){V=V===w?1:Pn(Ht(V),0);var oe=this.__filtered__&&!E?new Qt(this):this.clone();return oe.__filtered__?oe.__takeCount__=Un(V,oe.__takeCount__):oe.__views__.push({size:Un(V,n),type:d+(oe.__dir__<0?"Right":"")}),oe},Qt.prototype[d+"Right"]=function(V){return this.reverse()[d](V).reverse()}}),si(["filter","map","takeWhile"],function(d,E){var V=E+1,oe=V==1||V==3;Qt.prototype[d]=function(ue){var ye=this.clone();return ye.__iteratees__.push({iteratee:Bt(ue,3),type:V}),ye.__filtered__=ye.__filtered__||oe,ye}}),si(["head","last"],function(d,E){var V="take"+(E?"Right":"");Qt.prototype[d]=function(){return this[V](1).value()[0]}}),si(["initial","tail"],function(d,E){var V="drop"+(E?"":"Right");Qt.prototype[d]=function(){return this.__filtered__?new Qt(this):this[V](1)}}),Qt.prototype.compact=function(){return this.filter(Qn)},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,E){return typeof d=="function"?new Qt(this):this.map(function(V){return zr(V,d,E)})}),Qt.prototype.reject=function(d){return this.filter(Po(Bt(d)))},Qt.prototype.slice=function(d,E){d=Ht(d);var V=this;return V.__filtered__&&(d>0||E<0)?new Qt(V):(d<0?V=V.takeRight(-d):d&&(V=V.drop(d)),E!==w&&(V=(E=Ht(E))<0?V.dropRight(-E):V.take(E-d)),V)},Qt.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},Qt.prototype.toArray=function(){return this.take(n)},Ei(Qt.prototype,function(d,E){var V=/^(?:filter|find|map|reject)|While$/.test(E),oe=/^(?:head|last)$/.test(E),ue=fe[oe?"take"+(E=="last"?"Right":""):E],ye=oe||/^find/.test(E);ue&&(fe.prototype[E]=function(){var Ee=this.__wrapped__,Ie=oe?[1]:arguments,Ce=Ee instanceof Qt,ot=Ie[0],rt=Ce||Kt(Ee),lt=function(jt){var pt=ue.apply(fe,Vi([jt],Ie));return oe&&xt?pt[0]:pt};rt&&V&&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:No,args:[lt],thisArg:w}),new ui(ht,xt)}return At&&at?d.apply(this,Ie):(ht=this.thru(lt),At?oe?ht.value()[0]:ht.value():ht)})}),si(["pop","push","shift","sort","splice","unshift"],function(d){var E=io[d],V=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",oe=/^(?:pop|shift)$/.test(d);fe.prototype[d]=function(){var ue=arguments;if(oe&&!this.__chain__){var ye=this.value();return E.apply(Kt(ye)?ye:[],ue)}return this[V](function(Ee){return E.apply(Kt(Ee)?Ee:[],ue)})}}),Ei(Qt.prototype,function(d,E){var V=fe[E];if(V){var oe=V.name+"";_n.call(yr,oe)||(yr[oe]=[]),yr[oe].push({name:E,func:V})}}),yr[ko(w,b).name]=[{name:"wrapper",func:w}],Qt.prototype.clone=function(){var d=new Qt(this.__wrapped__);return d.__actions__=Xn(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=Xn(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=Xn(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(),E=this.__dir__,V=Kt(d),oe=E<0,ue=V?d.length:0,ye=function(wn,kt,Pt){for(var Dn=-1,Rn=Pt.length;++Dn<Rn;){var Zn=Pt[Dn],Sn=Zn.size;switch(Zn.type){case"drop":wn+=Sn;break;case"dropRight":kt-=Sn;break;case"take":kt=Un(kt,wn+Sn);break;case"takeRight":wn=Pn(wn,kt-Sn)}}return{start:wn,end:kt}}(0,ue,this.__views__),Ee=ye.start,Ie=ye.end,Ce=Ie-Ee,ot=oe?Ie:Ee-1,rt=this.__iteratees__,lt=rt.length,xt=0,_t=Un(Ce,this.__takeCount__);if(!V||!oe&&ue==Ce&&_t==Ce)return Su(d,this.__actions__);var At=[];e:for(;Ce--&&xt<_t;){for(var at=-1,ht=d[ot+=E];++at<lt;){var jt=rt[at],pt=jt.iteratee,Ut=jt.type,Ft=pt(ht);if(Ut==2)ht=Ft;else if(!Ft){if(Ut==1)continue e;break e}}At[xt++]=ht}return At},fe.prototype.at=zh,fe.prototype.chain=function(){return lc(this)},fe.prototype.commit=function(){return new ui(this.value(),this.__chain__)},fe.prototype.next=function(){this.__values__===w&&(this.__values__=Mc(this.value()));var d=this.__index__>=this.__values__.length;return{done:d,value:d?w:this.__values__[this.__index__++]}},fe.prototype.plant=function(d){for(var E,V=this;V instanceof yo;){var oe=ic(V);oe.__index__=0,oe.__values__=w,E?ue.__wrapped__=oe:E=oe;var ue=oe;V=V.__wrapped__}return ue.__wrapped__=d,E},fe.prototype.reverse=function(){var d=this.__wrapped__;if(d instanceof Qt){var E=d;return this.__actions__.length&&(E=new Qt(this)),(E=E.reverse()).__actions__.push({func:No,args:[Zs],thisArg:w}),new ui(E,this.__chain__)}return this.thru(Zs)},fe.prototype.toJSON=fe.prototype.valueOf=fe.prototype.value=function(){return Su(this.__wrapped__,this.__actions__)},fe.prototype.first=fe.prototype.head,Cr&&(fe.prototype[Cr]=function(){return this}),fe}();dt._=no,(k=function(){return no}.call(S,y,S,W))===w||(W.exports=k)}.call(this)},2318:(W,S,y)=>{var k=y(5717),w=y(3349),g=y(9509).Buffer,M=new Array(16);function s(){w.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,b,v,_,A,x){return p(h+(u&b|~u&v)+_+A|0,x)+u|0}function l(h,u,b,v,_,A,x){return p(h+(u&v|b&~v)+_+A|0,x)+u|0}function f(h,u,b,v,_,A,x){return p(h+(u^b^v)+_+A|0,x)+u|0}function m(h,u,b,v,_,A,x){return p(h+(b^(u|~v))+_+A|0,x)+u|0}k(s,w),s.prototype._update=function(){for(var h=M,u=0;u<16;++u)h[u]=this._block.readInt32LE(4*u);var b=this._a,v=this._b,_=this._c,A=this._d;b=c(b,v,_,A,h[0],3614090360,7),A=c(A,b,v,_,h[1],3905402710,12),_=c(_,A,b,v,h[2],606105819,17),v=c(v,_,A,b,h[3],3250441966,22),b=c(b,v,_,A,h[4],4118548399,7),A=c(A,b,v,_,h[5],1200080426,12),_=c(_,A,b,v,h[6],2821735955,17),v=c(v,_,A,b,h[7],4249261313,22),b=c(b,v,_,A,h[8],1770035416,7),A=c(A,b,v,_,h[9],2336552879,12),_=c(_,A,b,v,h[10],4294925233,17),v=c(v,_,A,b,h[11],2304563134,22),b=c(b,v,_,A,h[12],1804603682,7),A=c(A,b,v,_,h[13],4254626195,12),_=c(_,A,b,v,h[14],2792965006,17),b=l(b,v=c(v,_,A,b,h[15],1236535329,22),_,A,h[1],4129170786,5),A=l(A,b,v,_,h[6],3225465664,9),_=l(_,A,b,v,h[11],643717713,14),v=l(v,_,A,b,h[0],3921069994,20),b=l(b,v,_,A,h[5],3593408605,5),A=l(A,b,v,_,h[10],38016083,9),_=l(_,A,b,v,h[15],3634488961,14),v=l(v,_,A,b,h[4],3889429448,20),b=l(b,v,_,A,h[9],568446438,5),A=l(A,b,v,_,h[14],3275163606,9),_=l(_,A,b,v,h[3],4107603335,14),v=l(v,_,A,b,h[8],1163531501,20),b=l(b,v,_,A,h[13],2850285829,5),A=l(A,b,v,_,h[2],4243563512,9),_=l(_,A,b,v,h[7],1735328473,14),b=f(b,v=l(v,_,A,b,h[12],2368359562,20),_,A,h[5],4294588738,4),A=f(A,b,v,_,h[8],2272392833,11),_=f(_,A,b,v,h[11],1839030562,16),v=f(v,_,A,b,h[14],4259657740,23),b=f(b,v,_,A,h[1],2763975236,4),A=f(A,b,v,_,h[4],1272893353,11),_=f(_,A,b,v,h[7],4139469664,16),v=f(v,_,A,b,h[10],3200236656,23),b=f(b,v,_,A,h[13],681279174,4),A=f(A,b,v,_,h[0],3936430074,11),_=f(_,A,b,v,h[3],3572445317,16),v=f(v,_,A,b,h[6],76029189,23),b=f(b,v,_,A,h[9],3654602809,4),A=f(A,b,v,_,h[12],3873151461,11),_=f(_,A,b,v,h[15],530742520,16),b=m(b,v=f(v,_,A,b,h[2],3299628645,23),_,A,h[0],4096336452,6),A=m(A,b,v,_,h[7],1126891415,10),_=m(_,A,b,v,h[14],2878612391,15),v=m(v,_,A,b,h[5],4237533241,21),b=m(b,v,_,A,h[12],1700485571,6),A=m(A,b,v,_,h[3],2399980690,10),_=m(_,A,b,v,h[10],4293915773,15),v=m(v,_,A,b,h[1],2240044497,21),b=m(b,v,_,A,h[8],1873313359,6),A=m(A,b,v,_,h[15],4264355552,10),_=m(_,A,b,v,h[6],2734768916,15),v=m(v,_,A,b,h[13],1309151649,21),b=m(b,v,_,A,h[4],4149444226,6),A=m(A,b,v,_,h[11],3174756917,10),_=m(_,A,b,v,h[2],718787259,15),v=m(v,_,A,b,h[9],3951481745,21),this._a=this._a+b|0,this._b=this._b+v|0,this._c=this._c+_|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=g.allocUnsafe(16);return h.writeInt32LE(this._a,0),h.writeInt32LE(this._b,4),h.writeInt32LE(this._c,8),h.writeInt32LE(this._d,12),h},W.exports=s},3047:(W,S,y)=>{var k=y(6240),w=y(9931);function g(M){this.rand=M||new w.Rand}W.exports=g,g.create=function(M){return new g(M)},g.prototype._randbelow=function(M){var s=M.bitLength(),p=Math.ceil(s/8);do var c=new k(this.rand.generate(p));while(c.cmp(M)>=0);return c},g.prototype._randrange=function(M,s){var p=s.sub(M);return M.add(this._randbelow(p))},g.prototype.test=function(M,s,p){var c=M.bitLength(),l=k.mont(M),f=new k(1).toRed(l);s||(s=Math.max(1,c/48|0));for(var m=M.subn(1),h=0;!m.testn(h);h++);for(var u=M.shrn(h),b=m.toRed(l);s>0;s--){var v=this._randrange(new k(2),m);p&&p(v);var _=v.toRed(l).redPow(u);if(_.cmp(f)!==0&&_.cmp(b)!==0){for(var A=1;A<h;A++){if((_=_.redSqr()).cmp(f)===0)return!1;if(_.cmp(b)===0)break}if(A===h)return!1}}return!0},g.prototype.getDivisor=function(M,s){var p=M.bitLength(),c=k.mont(M),l=new k(1).toRed(c);s||(s=Math.max(1,p/48|0));for(var f=M.subn(1),m=0;!f.testn(m);m++);for(var h=M.shrn(m),u=f.toRed(c);s>0;s--){var b=this._randrange(new k(2),f),v=M.gcd(b);if(v.cmpn(1)!==0)return v;var _=b.toRed(c).redPow(h);if(_.cmp(l)!==0&&_.cmp(u)!==0){for(var A=1;A<m;A++){if((_=_.redSqr()).cmp(l)===0)return _.fromRed().subn(1).gcd(M);if(_.cmp(u)===0)break}if(A===m)return(_=_.redSqr()).fromRed().subn(1).gcd(M)}}return!1}},6240:function(W,S,y){(function(k,w){function g(e,r){if(!e)throw new Error(r||"Assertion failed")}function M(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 k=="object"?k.exports=s:w.BN=s,s.BN=s,s.wordSize=26;try{p=typeof window!="undefined"&&window.Buffer!==void 0?window.Buffer:y(6619).Buffer}catch(e){}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),g(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):(g(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(g(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 I=1;for(C=f(e,N,e.length,r),N=0;N<a;N++)I*=r;this.imuln(I),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 m=["","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 b(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 I=C>>>26,R=67108863&C,q=Math.min(N,r.length-1),Z=Math.max(0,N-e.length+1);Z<=q;Z++){var te=N-Z|0;I+=(a=(t=0|e.words[te])*(o=0|r.words[Z])+R)/67108864|0,R=67108863&a}i.words[N]=0|R,C=0|I}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?m[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 I=this.clone();for(I.negative=0;!I.isZero();){var R=I.modn(N).toString(e);i=(I=I.idivn(N)).isZero()?R+i:m[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}g(!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&&g(!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 g(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);g(n<=t,"byte array longer than desired length"),g(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 g((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 g((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 g((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){g(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){g(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 v=function(e,r,i){var n,t,o,a=e.words,T=r.words,C=i.words,N=0,I=0|a[0],R=8191&I,q=I>>>13,Z=0|a[1],te=8191&Z,L=Z>>>13,X=0|a[2],U=8191&X,K=X>>>13,se=0|a[3],ne=8191&se,ce=se>>>13,ke=0|a[4],me=8191&ke,ve=ke>>>13,je=0|a[5],we=8191&je,Ae=je>>>13,G=0|a[6],Y=8191&G,F=G>>>13,$=0|a[7],D=8191&$,Q=$>>>13,he=0|a[8],le=8191&he,pe=he>>>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,vt=0|T[3],Be=8191&vt,We=vt>>>13,St=0|T[4],Ne=8191&St,Ze=St>>>13,It=0|T[5],Le=8191&It,Xe=It>>>13,Lt=0|T[6],De=8191&Lt,Qe=Lt>>>13,zt=0|T[7],Fe=8191&zt,Je=zt>>>13,$t=0|T[8],qe=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(q,Se)|0))<<13)|0;N=((o=Math.imul(q,Ge))+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(te,Se),t=(t=Math.imul(te,Ge))+Math.imul(L,Se)|0,o=Math.imul(L,Ge);var Rt=(N+(n=n+Math.imul(R,Pe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ve)|0)+Math.imul(q,Pe)|0))<<13)|0;N=((o=o+Math.imul(q,Ve)|0)+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(U,Se),t=(t=Math.imul(U,Ge))+Math.imul(K,Se)|0,o=Math.imul(K,Ge),n=n+Math.imul(te,Pe)|0,t=(t=t+Math.imul(te,Ve)|0)+Math.imul(L,Pe)|0,o=o+Math.imul(L,Ve)|0;var Gt=(N+(n=n+Math.imul(R,Re)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ke)|0)+Math.imul(q,Re)|0))<<13)|0;N=((o=o+Math.imul(q,Ke)|0)+(t>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,n=Math.imul(ne,Se),t=(t=Math.imul(ne,Ge))+Math.imul(ce,Se)|0,o=Math.imul(ce,Ge),n=n+Math.imul(U,Pe)|0,t=(t=t+Math.imul(U,Ve)|0)+Math.imul(K,Pe)|0,o=o+Math.imul(K,Ve)|0,n=n+Math.imul(te,Re)|0,t=(t=t+Math.imul(te,Ke)|0)+Math.imul(L,Re)|0,o=o+Math.imul(L,Ke)|0;var cn=(N+(n=n+Math.imul(R,Be)|0)|0)+((8191&(t=(t=t+Math.imul(R,We)|0)+Math.imul(q,Be)|0))<<13)|0;N=((o=o+Math.imul(q,We)|0)+(t>>>13)|0)+(cn>>>26)|0,cn&=67108863,n=Math.imul(me,Se),t=(t=Math.imul(me,Ge))+Math.imul(ve,Se)|0,o=Math.imul(ve,Ge),n=n+Math.imul(ne,Pe)|0,t=(t=t+Math.imul(ne,Ve)|0)+Math.imul(ce,Pe)|0,o=o+Math.imul(ce,Ve)|0,n=n+Math.imul(U,Re)|0,t=(t=t+Math.imul(U,Ke)|0)+Math.imul(K,Re)|0,o=o+Math.imul(K,Ke)|0,n=n+Math.imul(te,Be)|0,t=(t=t+Math.imul(te,We)|0)+Math.imul(L,Be)|0,o=o+Math.imul(L,We)|0;var on=(N+(n=n+Math.imul(R,Ne)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ze)|0)+Math.imul(q,Ne)|0))<<13)|0;N=((o=o+Math.imul(q,Ze)|0)+(t>>>13)|0)+(on>>>26)|0,on&=67108863,n=Math.imul(we,Se),t=(t=Math.imul(we,Ge))+Math.imul(Ae,Se)|0,o=Math.imul(Ae,Ge),n=n+Math.imul(me,Pe)|0,t=(t=t+Math.imul(me,Ve)|0)+Math.imul(ve,Pe)|0,o=o+Math.imul(ve,Ve)|0,n=n+Math.imul(ne,Re)|0,t=(t=t+Math.imul(ne,Ke)|0)+Math.imul(ce,Re)|0,o=o+Math.imul(ce,Ke)|0,n=n+Math.imul(U,Be)|0,t=(t=t+Math.imul(U,We)|0)+Math.imul(K,Be)|0,o=o+Math.imul(K,We)|0,n=n+Math.imul(te,Ne)|0,t=(t=t+Math.imul(te,Ze)|0)+Math.imul(L,Ne)|0,o=o+Math.imul(L,Ze)|0;var ln=(N+(n=n+Math.imul(R,Le)|0)|0)+((8191&(t=(t=t+Math.imul(R,Xe)|0)+Math.imul(q,Le)|0))<<13)|0;N=((o=o+Math.imul(q,Xe)|0)+(t>>>13)|0)+(ln>>>26)|0,ln&=67108863,n=Math.imul(Y,Se),t=(t=Math.imul(Y,Ge))+Math.imul(F,Se)|0,o=Math.imul(F,Ge),n=n+Math.imul(we,Pe)|0,t=(t=t+Math.imul(we,Ve)|0)+Math.imul(Ae,Pe)|0,o=o+Math.imul(Ae,Ve)|0,n=n+Math.imul(me,Re)|0,t=(t=t+Math.imul(me,Ke)|0)+Math.imul(ve,Re)|0,o=o+Math.imul(ve,Ke)|0,n=n+Math.imul(ne,Be)|0,t=(t=t+Math.imul(ne,We)|0)+Math.imul(ce,Be)|0,o=o+Math.imul(ce,We)|0,n=n+Math.imul(U,Ne)|0,t=(t=t+Math.imul(U,Ze)|0)+Math.imul(K,Ne)|0,o=o+Math.imul(K,Ze)|0,n=n+Math.imul(te,Le)|0,t=(t=t+Math.imul(te,Xe)|0)+Math.imul(L,Le)|0,o=o+Math.imul(L,Xe)|0;var hn=(N+(n=n+Math.imul(R,De)|0)|0)+((8191&(t=(t=t+Math.imul(R,Qe)|0)+Math.imul(q,De)|0))<<13)|0;N=((o=o+Math.imul(q,Qe)|0)+(t>>>13)|0)+(hn>>>26)|0,hn&=67108863,n=Math.imul(D,Se),t=(t=Math.imul(D,Ge))+Math.imul(Q,Se)|0,o=Math.imul(Q,Ge),n=n+Math.imul(Y,Pe)|0,t=(t=t+Math.imul(Y,Ve)|0)+Math.imul(F,Pe)|0,o=o+Math.imul(F,Ve)|0,n=n+Math.imul(we,Re)|0,t=(t=t+Math.imul(we,Ke)|0)+Math.imul(Ae,Re)|0,o=o+Math.imul(Ae,Ke)|0,n=n+Math.imul(me,Be)|0,t=(t=t+Math.imul(me,We)|0)+Math.imul(ve,Be)|0,o=o+Math.imul(ve,We)|0,n=n+Math.imul(ne,Ne)|0,t=(t=t+Math.imul(ne,Ze)|0)+Math.imul(ce,Ne)|0,o=o+Math.imul(ce,Ze)|0,n=n+Math.imul(U,Le)|0,t=(t=t+Math.imul(U,Xe)|0)+Math.imul(K,Le)|0,o=o+Math.imul(K,Xe)|0,n=n+Math.imul(te,De)|0,t=(t=t+Math.imul(te,Qe)|0)+Math.imul(L,De)|0,o=o+Math.imul(L,Qe)|0;var fn=(N+(n=n+Math.imul(R,Fe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Je)|0)+Math.imul(q,Fe)|0))<<13)|0;N=((o=o+Math.imul(q,Je)|0)+(t>>>13)|0)+(fn>>>26)|0,fn&=67108863,n=Math.imul(le,Se),t=(t=Math.imul(le,Ge))+Math.imul(pe,Se)|0,o=Math.imul(pe,Ge),n=n+Math.imul(D,Pe)|0,t=(t=t+Math.imul(D,Ve)|0)+Math.imul(Q,Pe)|0,o=o+Math.imul(Q,Ve)|0,n=n+Math.imul(Y,Re)|0,t=(t=t+Math.imul(Y,Ke)|0)+Math.imul(F,Re)|0,o=o+Math.imul(F,Ke)|0,n=n+Math.imul(we,Be)|0,t=(t=t+Math.imul(we,We)|0)+Math.imul(Ae,Be)|0,o=o+Math.imul(Ae,We)|0,n=n+Math.imul(me,Ne)|0,t=(t=t+Math.imul(me,Ze)|0)+Math.imul(ve,Ne)|0,o=o+Math.imul(ve,Ze)|0,n=n+Math.imul(ne,Le)|0,t=(t=t+Math.imul(ne,Xe)|0)+Math.imul(ce,Le)|0,o=o+Math.imul(ce,Xe)|0,n=n+Math.imul(U,De)|0,t=(t=t+Math.imul(U,Qe)|0)+Math.imul(K,De)|0,o=o+Math.imul(K,Qe)|0,n=n+Math.imul(te,Fe)|0,t=(t=t+Math.imul(te,Je)|0)+Math.imul(L,Fe)|0,o=o+Math.imul(L,Je)|0;var pn=(N+(n=n+Math.imul(R,qe)|0)|0)+((8191&(t=(t=t+Math.imul(R,tt)|0)+Math.imul(q,qe)|0))<<13)|0;N=((o=o+Math.imul(q,tt)|0)+(t>>>13)|0)+(pn>>>26)|0,pn&=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(le,Pe)|0,t=(t=t+Math.imul(le,Ve)|0)+Math.imul(pe,Pe)|0,o=o+Math.imul(pe,Ve)|0,n=n+Math.imul(D,Re)|0,t=(t=t+Math.imul(D,Ke)|0)+Math.imul(Q,Re)|0,o=o+Math.imul(Q,Ke)|0,n=n+Math.imul(Y,Be)|0,t=(t=t+Math.imul(Y,We)|0)+Math.imul(F,Be)|0,o=o+Math.imul(F,We)|0,n=n+Math.imul(we,Ne)|0,t=(t=t+Math.imul(we,Ze)|0)+Math.imul(Ae,Ne)|0,o=o+Math.imul(Ae,Ze)|0,n=n+Math.imul(me,Le)|0,t=(t=t+Math.imul(me,Xe)|0)+Math.imul(ve,Le)|0,o=o+Math.imul(ve,Xe)|0,n=n+Math.imul(ne,De)|0,t=(t=t+Math.imul(ne,Qe)|0)+Math.imul(ce,De)|0,o=o+Math.imul(ce,Qe)|0,n=n+Math.imul(U,Fe)|0,t=(t=t+Math.imul(U,Je)|0)+Math.imul(K,Fe)|0,o=o+Math.imul(K,Je)|0,n=n+Math.imul(te,qe)|0,t=(t=t+Math.imul(te,tt)|0)+Math.imul(L,qe)|0,o=o+Math.imul(L,tt)|0;var dn=(N+(n=n+Math.imul(R,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(R,et)|0)+Math.imul(q,Ue)|0))<<13)|0;N=((o=o+Math.imul(q,et)|0)+(t>>>13)|0)+(dn>>>26)|0,dn&=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(le,Re)|0,t=(t=t+Math.imul(le,Ke)|0)+Math.imul(pe,Re)|0,o=o+Math.imul(pe,Ke)|0,n=n+Math.imul(D,Be)|0,t=(t=t+Math.imul(D,We)|0)+Math.imul(Q,Be)|0,o=o+Math.imul(Q,We)|0,n=n+Math.imul(Y,Ne)|0,t=(t=t+Math.imul(Y,Ze)|0)+Math.imul(F,Ne)|0,o=o+Math.imul(F,Ze)|0,n=n+Math.imul(we,Le)|0,t=(t=t+Math.imul(we,Xe)|0)+Math.imul(Ae,Le)|0,o=o+Math.imul(Ae,Xe)|0,n=n+Math.imul(me,De)|0,t=(t=t+Math.imul(me,Qe)|0)+Math.imul(ve,De)|0,o=o+Math.imul(ve,Qe)|0,n=n+Math.imul(ne,Fe)|0,t=(t=t+Math.imul(ne,Je)|0)+Math.imul(ce,Fe)|0,o=o+Math.imul(ce,Je)|0,n=n+Math.imul(U,qe)|0,t=(t=t+Math.imul(U,tt)|0)+Math.imul(K,qe)|0,o=o+Math.imul(K,tt)|0;var mn=(N+(n=n+Math.imul(te,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(te,et)|0)+Math.imul(L,Ue)|0))<<13)|0;N=((o=o+Math.imul(L,et)|0)+(t>>>13)|0)+(mn>>>26)|0,mn&=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(le,Be)|0,t=(t=t+Math.imul(le,We)|0)+Math.imul(pe,Be)|0,o=o+Math.imul(pe,We)|0,n=n+Math.imul(D,Ne)|0,t=(t=t+Math.imul(D,Ze)|0)+Math.imul(Q,Ne)|0,o=o+Math.imul(Q,Ze)|0,n=n+Math.imul(Y,Le)|0,t=(t=t+Math.imul(Y,Xe)|0)+Math.imul(F,Le)|0,o=o+Math.imul(F,Xe)|0,n=n+Math.imul(we,De)|0,t=(t=t+Math.imul(we,Qe)|0)+Math.imul(Ae,De)|0,o=o+Math.imul(Ae,Qe)|0,n=n+Math.imul(me,Fe)|0,t=(t=t+Math.imul(me,Je)|0)+Math.imul(ve,Fe)|0,o=o+Math.imul(ve,Je)|0,n=n+Math.imul(ne,qe)|0,t=(t=t+Math.imul(ne,tt)|0)+Math.imul(ce,qe)|0,o=o+Math.imul(ce,tt)|0;var Xt=(N+(n=n+Math.imul(U,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(U,et)|0)+Math.imul(K,Ue)|0))<<13)|0;N=((o=o+Math.imul(K,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(le,Ne)|0,t=(t=t+Math.imul(le,Ze)|0)+Math.imul(pe,Ne)|0,o=o+Math.imul(pe,Ze)|0,n=n+Math.imul(D,Le)|0,t=(t=t+Math.imul(D,Xe)|0)+Math.imul(Q,Le)|0,o=o+Math.imul(Q,Xe)|0,n=n+Math.imul(Y,De)|0,t=(t=t+Math.imul(Y,Qe)|0)+Math.imul(F,De)|0,o=o+Math.imul(F,Qe)|0,n=n+Math.imul(we,Fe)|0,t=(t=t+Math.imul(we,Je)|0)+Math.imul(Ae,Fe)|0,o=o+Math.imul(Ae,Je)|0,n=n+Math.imul(me,qe)|0,t=(t=t+Math.imul(me,tt)|0)+Math.imul(ve,qe)|0,o=o+Math.imul(ve,tt)|0;var gn=(N+(n=n+Math.imul(ne,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ne,et)|0)+Math.imul(ce,Ue)|0))<<13)|0;N=((o=o+Math.imul(ce,et)|0)+(t>>>13)|0)+(gn>>>26)|0,gn&=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(le,Le)|0,t=(t=t+Math.imul(le,Xe)|0)+Math.imul(pe,Le)|0,o=o+Math.imul(pe,Xe)|0,n=n+Math.imul(D,De)|0,t=(t=t+Math.imul(D,Qe)|0)+Math.imul(Q,De)|0,o=o+Math.imul(Q,Qe)|0,n=n+Math.imul(Y,Fe)|0,t=(t=t+Math.imul(Y,Je)|0)+Math.imul(F,Fe)|0,o=o+Math.imul(F,Je)|0,n=n+Math.imul(we,qe)|0,t=(t=t+Math.imul(we,tt)|0)+Math.imul(Ae,qe)|0,o=o+Math.imul(Ae,tt)|0;var bn=(N+(n=n+Math.imul(me,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(me,et)|0)+Math.imul(ve,Ue)|0))<<13)|0;N=((o=o+Math.imul(ve,et)|0)+(t>>>13)|0)+(bn>>>26)|0,bn&=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(le,De)|0,t=(t=t+Math.imul(le,Qe)|0)+Math.imul(pe,De)|0,o=o+Math.imul(pe,Qe)|0,n=n+Math.imul(D,Fe)|0,t=(t=t+Math.imul(D,Je)|0)+Math.imul(Q,Fe)|0,o=o+Math.imul(Q,Je)|0,n=n+Math.imul(Y,qe)|0,t=(t=t+Math.imul(Y,tt)|0)+Math.imul(F,qe)|0,o=o+Math.imul(F,tt)|0;var en=(N+(n=n+Math.imul(we,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(we,et)|0)+Math.imul(Ae,Ue)|0))<<13)|0;N=((o=o+Math.imul(Ae,et)|0)+(t>>>13)|0)+(en>>>26)|0,en&=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(le,Fe)|0,t=(t=t+Math.imul(le,Je)|0)+Math.imul(pe,Fe)|0,o=o+Math.imul(pe,Je)|0,n=n+Math.imul(D,qe)|0,t=(t=t+Math.imul(D,tt)|0)+Math.imul(Q,qe)|0,o=o+Math.imul(Q,tt)|0;var tn=(N+(n=n+Math.imul(Y,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(Y,et)|0)+Math.imul(F,Ue)|0))<<13)|0;N=((o=o+Math.imul(F,et)|0)+(t>>>13)|0)+(tn>>>26)|0,tn&=67108863,n=Math.imul(_e,Fe),t=(t=Math.imul(_e,Je))+Math.imul(Te,Fe)|0,o=Math.imul(Te,Je),n=n+Math.imul(le,qe)|0,t=(t=t+Math.imul(le,tt)|0)+Math.imul(pe,qe)|0,o=o+Math.imul(pe,tt)|0;var Jt=(N+(n=n+Math.imul(D,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(D,et)|0)+Math.imul(Q,Ue)|0))<<13)|0;N=((o=o+Math.imul(Q,et)|0)+(t>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,n=Math.imul(_e,qe),t=(t=Math.imul(_e,tt))+Math.imul(Te,qe)|0,o=Math.imul(Te,tt);var yn=(N+(n=n+Math.imul(le,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(le,et)|0)+Math.imul(pe,Ue)|0))<<13)|0;N=((o=o+Math.imul(pe,et)|0)+(t>>>13)|0)+(yn>>>26)|0,yn&=67108863;var sn=(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)+(sn>>>26)|0,sn&=67108863,C[0]=Tt,C[1]=Rt,C[2]=Gt,C[3]=cn,C[4]=on,C[5]=ln,C[6]=hn,C[7]=fn,C[8]=pn,C[9]=dn,C[10]=mn,C[11]=Xt,C[12]=gn,C[13]=bn,C[14]=en,C[15]=tn,C[16]=Jt,C[17]=yn,C[18]=sn,N!==0&&(C[19]=N,i.length++),i};function _(e,r,i){return new A().mulp(e,r,i)}function A(e,r){this.x=e,this.y=r}Math.imul||(v=b),s.prototype.mulTo=function(e,r){var i,n=this.length+e.length;return i=this.length===10&&e.length===10?v(this,e,r):n<63?b(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 I=C;C=0;for(var R=67108863&T,q=Math.min(N,o.length-1),Z=Math.max(0,N-t.length+1);Z<=q;Z++){var te=N-Z,L=(0|t.words[te])*(0|o.words[Z]),X=67108863&L;R=67108863&(X=X+R|0),C+=(I=(I=I+(L/67108864|0)|0)+(X>>>26)|0)>>>26,I&=67108863}a.words[N]=R,T=I,I=C}return T!==0?a.words[N]=T:a.length--,a.strip()}(this,e,r):_(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),I=0;I<t;I+=T)for(var R=C,q=N,Z=0;Z<a;Z++){var te=i[I+Z],L=n[I+Z],X=i[I+Z+a],U=n[I+Z+a],K=R*X-q*U;U=R*U+q*X,X=K,i[I+Z]=te+X,n[I+Z]=L+U,i[I+Z+a]=te-X,n[I+Z+a]=L-U,Z!==T&&(K=C*R-N*q,q=C*q+N*R,R=K)}},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;g(t===0),g((-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),I=new Array(n),R=new Array(n),q=i.words;q.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,I,R,n,t);for(var Z=0;Z<n;Z++){var te=T[Z]*I[Z]-C[Z]*R[Z];C[Z]=T[Z]*R[Z]+C[Z]*I[Z],T[Z]=te}return this.conjugate(T,C,n),this.transform(T,C,q,o,n,t),this.conjugate(q,o,n),this.normalize13b(q,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),_(this,e,r)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){g(typeof e=="number"),g(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){g(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 g(this.negative===0),this.iushln(e)},s.prototype.iushrn=function(e,r,i){var n;g(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 I=0|this.words[C];this.words[C]=N<<26-t|I>>>t,N=I&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 g(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){g(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){g(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(g(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 g(typeof e=="number"),g(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(g(typeof e=="number"),g(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(g(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 I=T-1;I>=0;I--){var R=67108864*(0|n.words[t.length+I])+(0|n.words[t.length+I-1]);for(R=Math.min(R/o|0,67108863),n._ishlnsubmul(t,R,I);n.negative!==0;)R--,n.negative=0,n._ishlnsubmul(t,1,I),n.isZero()||(n.negative^=1);a&&(a.words[I]=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 g(!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){g(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){g(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){g(e.negative===0),g(!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 I=0,R=1;!(r.words[0]&R)&&I<26;++I,R<<=1);if(I>0)for(r.iushrn(I);I-- >0;)(n.isOdd()||t.isOdd())&&(n.iadd(C),t.isub(N)),n.iushrn(1),t.iushrn(1);for(var q=0,Z=1;!(i.words[0]&Z)&&q<26;++q,Z<<=1);if(q>0)for(i.iushrn(q);q-- >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){g(e.negative===0),g(!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,I=1;!(i.words[0]&I)&&N<26;++N,I<<=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){g(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),g(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 g(!this.red,"Already a number in reduction context"),g(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return g(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 g(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return g(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 z(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ee(){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 g(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function ae(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)},M(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},M(B,j),M(z,j),M(ee,j),ee.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 z;else{if(e!=="p25519")throw new Error("Unknown prime "+e);r=new ee}return x[e]=r,r},J.prototype._verify1=function(e){g(e.negative===0,"red works only with positives"),g(e.red,"red works only with red numbers")},J.prototype._verify2=function(e,r){g((e.negative|r.negative)==0,"red works only with positives"),g(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(g(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);g(!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),I=this.pow(e,n.addn(1).iushrn(1)),R=this.pow(e,n),q=t;R.cmp(o)!==0;){for(var Z=R,te=0;Z.cmp(o)!==0;te++)Z=Z.redSqr();g(te<q);var L=this.pow(N,new s(1).iushln(q-te-1));I=I.redMul(L),N=L.redSqr(),R=R.redMul(N),q=te}return I},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 I=C>>N&1;t!==i[0]&&(t=this.sqr(t)),I!==0||o!==0?(o<<=1,o|=I,(++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 ae(e)},M(ae,J),ae.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},ae.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},ae.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)},ae.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)},ae.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(W=y.nmd(W),this)},5234:(W,S,y)=>{W.exports=y(3765)},983:(W,S,y)=>{var k,w,g,M=y(5234),s=y(6470).extname,p=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function l(f){if(!f||typeof f!="string")return!1;var m=p.exec(f),h=m&&M[m[1].toLowerCase()];return h&&h.charset?h.charset:!(!m||!c.test(m[1]))&&"UTF-8"}S.charset=l,S.charsets={lookup:l},S.contentType=function(f){if(!f||typeof f!="string")return!1;var m=f.indexOf("/")===-1?S.lookup(f):f;if(!m)return!1;if(m.indexOf("charset")===-1){var h=S.charset(m);h&&(m+="; charset="+h.toLowerCase())}return m},S.extension=function(f){if(!f||typeof f!="string")return!1;var m=p.exec(f),h=m&&S.extensions[m[1].toLowerCase()];return!(!h||!h.length)&&h[0]},S.extensions=Object.create(null),S.lookup=function(f){if(!f||typeof f!="string")return!1;var m=s("x."+f).toLowerCase().substr(1);return m&&S.types[m]||!1},S.types=Object.create(null),k=S.extensions,w=S.types,g=["nginx","apache",void 0,"iana"],Object.keys(M).forEach(function(f){var m=M[f],h=m.extensions;if(h&&h.length){k[f]=h;for(var u=0;u<h.length;u++){var b=h[u];if(w[b]){var v=g.indexOf(M[w[b]].source),_=g.indexOf(m.source);if(w[b]!=="application/octet-stream"&&(v>_||v===_&&w[b].substr(0,12)==="application/"))continue}w[b]=f}}})},9746:W=>{function S(y,k){if(!y)throw new Error(k||"Assertion failed")}W.exports=S,S.equal=function(y,k,w){if(y!=k)throw new Error(w||"Assertion failed: "+y+" != "+k)}},4504:(W,S)=>{var y=S;function k(g){return g.length===1?"0"+g:g}function w(g){for(var M="",s=0;s<g.length;s++)M+=k(g[s].toString(16));return M}y.toArray=function(g,M){if(Array.isArray(g))return g.slice();if(!g)return[];var s=[];if(typeof g!="string"){for(var p=0;p<g.length;p++)s[p]=0|g[p];return s}if(M==="hex")for((g=g.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(g="0"+g),p=0;p<g.length;p+=2)s.push(parseInt(g[p]+g[p+1],16));else for(p=0;p<g.length;p++){var c=g.charCodeAt(p),l=c>>8,f=255&c;l?s.push(l,f):s.push(f)}return s},y.zero2=k,y.toHex=w,y.encode=function(g,M){return M==="hex"?w(g):g}},8566:(W,S,y)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0;var k,w=(k=y(8721))&&k.__esModule?k:{default:k};S.default=class{constructor({accessKey:g,secretKey:M,sessionToken:s}){this.credentials=new w.default({accessKey:g,secretKey:M,sessionToken:s})}getCredentials(){return this.credentials.get()}setCredentials(g){if(!(g instanceof w.default))throw new Error("Unable to set Credentials . it should be an instance of Credentials class");this.credentials=g}setAccessKey(g){this.credentials.setAccessKey(g)}getAccessKey(){return this.credentials.getAccessKey()}setSecretKey(g){this.credentials.setSecretKey(g)}getSecretKey(){return this.credentials.getSecretKey()}setSessionToken(g){this.credentials.setSessionToken(g)}getSessionToken(){return this.credentials.getSessionToken()}}},8721:(W,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0,S.default=class{constructor({accessKey:y,secretKey:k,sessionToken:w}){this.accessKey=y,this.secretKey=k,this.sessionToken=w}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:(W,S,y)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.SecretKeyRequiredError=S.S3Error=S.InvalidXMLError=S.InvalidPrefixError=S.InvalidPortError=S.InvalidObjectNameError=S.InvalidEndpointError=S.InvalidDateError=S.InvalidBucketPolicyError=S.InvalidBucketNameError=S.InvalidArgumentError=S.IncorrectSizeError=S.ExpiresParamError=S.AnonymousRequestError=S.AccessKeyRequiredError=void 0;var k,w=(k=y(7216))&&k.__esModule?k:{default:k};class g extends w.default{constructor(P){super(P)}}S.AnonymousRequestError=g;class M extends w.default{constructor(P){super(P)}}S.InvalidArgumentError=M;class s extends w.default{constructor(P){super(P)}}S.InvalidPortError=s;class p extends w.default{constructor(P){super(P)}}S.InvalidEndpointError=p;class c extends w.default{constructor(P){super(P)}}S.InvalidBucketNameError=c;class l extends w.default{constructor(P){super(P)}}S.InvalidObjectNameError=l;class f extends w.default{constructor(P){super(P)}}S.AccessKeyRequiredError=f;class m extends w.default{constructor(P){super(P)}}S.SecretKeyRequiredError=m;class h extends w.default{constructor(P){super(P)}}S.ExpiresParamError=h;class u extends w.default{constructor(P){super(P)}}S.InvalidDateError=u;class b extends w.default{constructor(P){super(P)}}S.InvalidPrefixError=b;class v extends w.default{constructor(P){super(P)}}S.InvalidBucketPolicyError=v;class _ extends w.default{constructor(P){super(P)}}S.IncorrectSizeError=_;class A extends w.default{constructor(P){super(P)}}S.InvalidXMLError=A;class x extends w.default{constructor(P){super(P)}}S.S3Error=x},3427:(W,S,y)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0;var k,w=(k=y(2830))&&k.__esModule?k:{default:k},g=c(y(6607)),M=c(y(1271)),s=y(1627);function p(l){if(typeof WeakMap!="function")return null;var f=new WeakMap,m=new WeakMap;return(p=function(h){return h?m: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 m=p(f);if(m&&m.has(l))return m.get(l);var h={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in l)if(b!=="default"&&Object.prototype.hasOwnProperty.call(l,b)){var v=u?Object.getOwnPropertyDescriptor(l,b):null;v&&(v.get||v.set)?Object.defineProperty(h,b,v):h[b]=l[b]}return h.default=l,m&&m.set(l,h),h}S.default=class{constructor(l){this.client=l}listObjectsV2WithMetadata(l,f,m,h){if(f===void 0&&(f=""),m===void 0&&(m=!1),h===void 0&&(h=""),!(0,s.isValidBucketName)(l))throw new M.InvalidBucketNameError("Invalid bucket name: "+l);if(!(0,s.isValidPrefix)(f))throw new M.InvalidPrefixError(`Invalid prefix : ${f}`);if(!(0,s.isString)(f))throw new TypeError('prefix should be of type "string"');if(!(0,s.isBoolean)(m))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=m?"":"/",b="",v=[],_=!1,A=w.default.Readable({objectMode:!0});return A._read=()=>{if(!v.length)return _?A.push(null):void this.listObjectsV2WithMetadataQuery(l,f,b,u,1e3,h).on("error",x=>A.emit("error",x)).on("data",x=>{x.isTruncated?b=x.nextContinuationToken:_=!0,v=x.objects,A._read()});A.push(v.shift())},A}listObjectsV2WithMetadataQuery(l,f,m,h,u,b){if(!(0,s.isValidBucketName)(l))throw new M.InvalidBucketNameError("Invalid bucket name: "+l);if(!(0,s.isString)(f))throw new TypeError('prefix should be of type "string"');if(!(0,s.isString)(m))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)(b))throw new TypeError('startAfter should be of type "string"');var v=[];v.push("list-type=2"),v.push("encoding-type=url"),v.push(`prefix=${(0,s.uriEscape)(f)}`),v.push(`delimiter=${(0,s.uriEscape)(h)}`),v.push("metadata=true"),m&&(m=(0,s.uriEscape)(m),v.push(`continuation-token=${m}`)),b&&(b=(0,s.uriEscape)(b),v.push(`start-after=${b}`)),u&&(u>=1e3&&(u=1e3),v.push(`max-keys=${u}`)),v.sort();var _="";v.length>0&&(_=`${v.join("&")}`);var A=g.getListObjectsV2WithMetadataTransformer();return this.client.makeRequest({method:"GET",bucketName:l,query:_},"",[200],"",!0,(x,j)=>{if(x)return A.emit("error",x);(0,s.pipesetup)(j,A)}),A}}},1627:(W,S,y)=>{var k=y(8764).Buffer;Object.defineProperty(S,"__esModule",{value:!0}),S.SelectResults=S.RETENTION_VALIDITY_UNITS=S.RETENTION_MODES=S.PART_CONSTRAINTS=S.LEGAL_HOLD_STATUS=S.ENCRYPTION_TYPES=S.DEFAULT_REGION=S.CopySourceOptions=S.CopyDestinationOptions=void 0,S.calculateEvenSplits=function(L,X){if(L===0)return null;const U=q(L);Z=new Array(U),te=new Array(U);let K=X.Start;(p.default.isEmpty(X.Start)||K===-1)&&(K=0);const se=Math.trunc(L/U),ne=L%U;let ce=K;for(let ke=0;ke<U;ke++){let me=se;ke<ne&&me++;const ve=ce;let je=ve+me-1;ce=je+1,Z[ke]=ve,te[ke]=je}return{startIndex:Z,endIndex:te,objInfo:X}},S.extractMetadata=function(L){var X={};for(var U in L)(t(U)||o(U)||n(U))&&(U.toLowerCase().startsWith("x-amz-meta-")?X[U.slice(11,U.length)]=L[U]:X[U]=L[U]);return X},S.getScope=function(L,X,U="s3"){return`${i(X)}/${L}/${U}/aws4_request`},S.getSourceVersionId=function(L={}){return L["x-amz-copy-source-version-id"]||null},S.getVersionId=function(L={}){return L["x-amz-version-id"]||null},S.insertContentType=function(L,X){for(var U in L)if(U.toLowerCase()==="content-type")return L;var K=Object.assign({},L);return K["content-type"]=P(X),K},S.isAmazonEndpoint=A,S.isAmzHeader=n,S.isArray=function(L){return Array.isArray(L)},S.isBoolean=function(L){return typeof L=="boolean"},S.isFunction=ae,S.isNumber=J,S.isObject=r,S.isReadableStream=function(L){return r(L)&&ae(L._read)},S.isStorageclassHeader=o,S.isString=e,S.isSupportedHeader=t,S.isValidBucketName=B,S.isValidDate=function(L){return L instanceof Date&&!isNaN(L)},S.isValidDomain=j,S.isValidEndpoint=function(L){return j(L)||x(L)},S.isValidIP=x,S.isValidObjectName=z,S.isValidPort=function(L){return!!J(L)&&!(L<0)&&(L===0||L>=1&&L<=65535)},S.isValidPrefix=ee,S.isVirtualHostStyle=function(L,X,U,K){return!(X==="https:"&&U.indexOf(".")>-1)&&(A(L)||!K)},S.makeDateLong=function(L){return(L=(L=L||new Date).toISOString()).slice(0,4)+L.slice(5,7)+L.slice(8,13)+L.slice(14,16)+L.slice(17,19)+"Z"},S.makeDateShort=i,S.partsRequired=S.parseXml=void 0,S.pipesetup=function(...L){return L.reduce((X,U)=>(X.on("error",K=>U.emit("error",K)),X.pipe(U)))},S.prependXAMZMeta=function(L){var X=Object.assign({},L);for(var U in L)n(U)||t(U)||o(U)||(X["X-Amz-Meta-"+U]=X[U],delete X[U]);return X},S.probeContentType=P,S.promisify=function(L){return function(){if(typeof arguments[arguments.length-1]=="function")return L.apply(this,arguments);let X=[...arguments];return new Promise((U,K)=>{X.push((se,ne)=>{if(se)return K(se);U(ne)}),L.apply(this,X)})}},S.readableStream=function(L){var X=new w.default.Readable;return X._read=()=>{},X.push(L),X.push(null),X},S.removeDirAndFiles=function L(X,U){U===void 0&&(U=!0);try{var K=b.readdirSync(X)}catch(ce){return}if(K.length>0)for(var se=0;se<K.length;se++){var ne=v.join(X,K[se]);b.statSync(ne).isFile()?b.unlinkSync(ne):L(ne)}U&&b.rmdirSync(X)},S.sanitizeETag=function(L=""){var X={'"':"",""":"",""":"",""":"",""":""};return L.replace(/^("|"|")|("|"|")$/g,U=>X[U])},S.toSha256=S.toMd5=S.toArray=S.sanitizeObjectKey=void 0,S.uriEscape=_,S.uriResourceEscape=function(L){return _(L).replace(/%2F/g,"/")};var w=m(y(2830)),g=m(y(983)),M=m(y(6965)),s=y(3818),p=m(y(6486)),c=function(L,X){if(L&&L.__esModule)return L;if(L===null||typeof L!="object"&&typeof L!="function")return{default:L};var U=f(X);if(U&&U.has(L))return U.get(L);var K={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ne in L)if(ne!=="default"&&Object.prototype.hasOwnProperty.call(L,ne)){var ce=se?Object.getOwnPropertyDescriptor(L,ne):null;ce&&(ce.get||ce.set)?Object.defineProperty(K,ne,ce):K[ne]=L[ne]}return K.default=L,U&&U.set(L,K),K}(y(1271)),l=m(y(7563));function f(L){if(typeof WeakMap!="function")return null;var X=new WeakMap,U=new WeakMap;return(f=function(K){return K?U:X})(L)}function m(L){return L&&L.__esModule?L:{default:L}}var h=y(5835);const u=y(6512),b=y(4749),v=y(6470);function _(L){return L.split("").reduce((X,U)=>{let K=k.from(U);if(K.length===1&&("A"<=U&&U<="Z"||"a"<=U&&U<="z"||"0"<=U&&U<="9"||U==="_"||U==="."||U==="~"||U==="-"))return X+U;for(var se=0;se<K.length;se++)X=X+"%"+K[se].toString(16).toUpperCase();return X},"")}function A(L){return L==="s3.amazonaws.com"||L==="s3.cn-north-1.amazonaws.com.cn"}function x(L){return u.isValid(L)}function j(L){if(!e(L)||L.length===0||L.length>255||L[0]==="-"||L.slice(-1)==="-"||L[0]==="_"||L.slice(-1)==="_"||L[0]===".")return!1;var X="`~!@#$%^&*()+={}[]|\\\"';:><?/".split("");for(var U in X)if(L.indexOf(X[U])>-1)return!1;return!0}function P(L){let X=g.default.lookup(L);return X||(X="application/octet-stream"),X}function B(L){return!(!e(L)||L.length<3||L.length>63||L.indexOf("..")>-1||L.match(/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/)||!L.match(/^[a-z0-9][a-z0-9.-]+[a-z0-9]$/))}function z(L){return!!ee(L)&&L.length!==0}function ee(L){return!(!e(L)||L.length>1024)}function J(L){return typeof L=="number"}function ae(L){return typeof L=="function"}function e(L){return typeof L=="string"}function r(L){return typeof L=="object"&&L!==null}function i(L){return(L=(L=L||new Date).toISOString()).slice(0,4)+L.slice(5,7)+L.slice(8,10)}function n(L){var X=L.toLowerCase();return X.startsWith("x-amz-meta-")||X==="x-amz-acl"||X.startsWith("x-amz-server-side-encryption-")||X==="x-amz-server-side-encryption"}function t(L){return["content-type","cache-control","content-encoding","content-disposition","content-language","x-amz-website-redirect-location"].indexOf(L.toLowerCase())>-1}function o(L){return L.toLowerCase()==="x-amz-storage-class"}const a={GOVERNANCE:"GOVERNANCE",COMPLIANCE:"COMPLIANCE"};S.RETENTION_MODES=a,S.RETENTION_VALIDITY_UNITS={DAYS:"Days",YEARS:"Years"},S.LEGAL_HOLD_STATUS={ENABLED:"ON",DISABLED:"OFF"},S.toMd5=L=>{let X=(U=>k.from(k.from(U)))(L);return X=s.isBrowser?X.toString():X,h.createHash("md5").update(X).digest().toString("base64")},S.toSha256=L=>h.createHash("sha256").update(L).digest("hex"),S.toArray=L=>Array.isArray(L)?L:[L],S.sanitizeObjectKey=L=>{let X=(L||"").replace(/\+/g," ");return decodeURIComponent(X)};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};S.PART_CONSTRAINTS=T;const C={SSEC:"SSE-C",KMS:"KMS"};S.ENCRYPTION_TYPES=C;const N="X-Amz-Server-Side-Encryption",I=N,R=N+"-Aws-Kms-Key-Id";S.CopySourceOptions=class{constructor({Bucket:L="",Object:X="",VersionID:U="",MatchETag:K="",NoMatchETag:se="",MatchModifiedSince:ne=null,MatchUnmodifiedSince:ce=null,MatchRange:ke=!1,Start:me=0,End:ve=0,Encryption:je={}}={}){this.Bucket=L,this.Object=X,this.VersionID=U,this.MatchETag=K,this.NoMatchETag=se,this.MatchModifiedSince=ne,this.MatchUnmodifiedSince=ce,this.MatchRange=ke,this.Start=me,this.End=ve,this.Encryption=je}validate(){if(!B(this.Bucket))throw new c.InvalidBucketNameError("Invalid Source bucket name: "+this.Bucket);if(!z(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 L={};return L["x-amz-copy-source"]=encodeURI(this.Bucket+"/"+this.Object),p.default.isEmpty(this.VersionID)||(L["x-amz-copy-source"]=encodeURI(this.Bucket+"/"+this.Object)+"?versionId="+this.VersionID),p.default.isEmpty(this.MatchETag)||(L["x-amz-copy-source-if-match"]=this.MatchETag),p.default.isEmpty(this.NoMatchETag)||(L["x-amz-copy-source-if-none-match"]=this.NoMatchETag),p.default.isEmpty(this.MatchModifiedSince)||(L["x-amz-copy-source-if-modified-since"]=this.MatchModifiedSince),p.default.isEmpty(this.MatchUnmodifiedSince)||(L["x-amz-copy-source-if-unmodified-since"]=this.MatchUnmodifiedSince),L}},S.CopyDestinationOptions=class{constructor({Bucket:L="",Object:X="",Encryption:U=null,UserMetadata:K=null,UserTags:se=null,LegalHold:ne=null,RetainUntilDate:ce=null,Mode:ke=null}){this.Bucket=L,this.Object=X,this.Encryption=U,this.UserMetadata=K,this.UserTags=se,this.LegalHold=ne,this.Mode=ke,this.RetainUntilDate=ce}getHeaders(){const L={},X=this.UserTags;if(p.default.isEmpty(X)||(L["X-Amz-Tagging-Directive"]="REPLACE",L["X-Amz-Tagging"]=r(X)?l.default.stringify(X):e(X)?X:""),p.default.isEmpty(this.Mode)||(L["X-Amz-Object-Lock-Mode"]=this.Mode),p.default.isEmpty(this.RetainUntilDate)||(L["X-Amz-Object-Lock-Retain-Until-Date"]=this.RetainUntilDate),p.default.isEmpty(this.LegalHold)||(L["X-Amz-Object-Lock-Legal-Hold"]=this.LegalHold),p.default.isEmpty(this.UserMetadata)||Object.keys(this.UserMetadata).forEach(U=>{L[`X-Amz-Meta-${U}`]=this.UserMetadata[U]}),!p.default.isEmpty(this.Encryption)){const U=function(K){const se=K.type,ne={};if(!p.default.isEmpty(se)){if(se===C.SSEC)return{[ne[I]]:"AES256"};if(se===C.KMS)return{[I]:K.SSEAlgorithm,[R]:K.KMSMasterKeyID}}return ne}(this.Encryption);Object.keys(U).forEach(K=>{L[K]=U[K]})}return L}validate(){if(!B(this.Bucket))throw new c.InvalidBucketNameError("Invalid Destination bucket name: "+this.Bucket);if(!z(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 q=L=>{let X=T.MAX_MULTIPART_PUT_OBJECT_SIZE/(T.MAX_PARTS_COUNT-1),U=L/X;return L%X>0&&U++,U=Math.trunc(U),U};S.partsRequired=q;let Z=[],te=[];S.parseXml=L=>{let X=null;if(X=M.default.parse(L),X.Error)throw X.Error;return X},S.SelectResults=class{constructor({records:L,response:X,stats:U,progress:K}){this.records=L,this.response=X,this.stats=U,this.progress=K}setStats(L){this.stats=L}getStats(){return this.stats}setProgress(L){this.progress=L}getProgress(){return this.progress}setResponse(L){this.response=L}getResponse(){return this.response}setRecords(L){this.records=L}getRecords(){return this.records}},S.DEFAULT_REGION="us-east-1"},2525:(W,S,y)=>{var k=y(4155),w=y(8764).Buffer;Object.defineProperty(S,"__esModule",{value:!0});var g={Client:!0,CopyConditions:!0,PostPolicy:!0};S.PostPolicy=S.CopyConditions=S.Client=void 0;var M=t(y(4749)),s=t(y(8501)),p=t(y(9267)),c=t(y(2830)),l=t(y(9e3)),f=t(y(3479)),m=t(y(5055)),h=t(y(1641)),u=t(y(7563)),b=t(y(1890)),v=t(y(6470)),_=t(y(6486)),A=y(7259),x=y(1627),j=y(5858),P=t(y(3861)),B=n(y(6607)),z=n(y(1271)),ee=y(1670),J=y(3606);Object.keys(J).forEach(function(N){N!=="default"&&N!=="__esModule"&&(Object.prototype.hasOwnProperty.call(g,N)||N in S&&S[N]===J[N]||Object.defineProperty(S,N,{enumerable:!0,get:function(){return J[N]}}))});var ae=t(y(3427)),e=t(y(8566)),r=y(2262);function i(N){if(typeof WeakMap!="function")return null;var I=new WeakMap,R=new WeakMap;return(i=function(q){return q?R:I})(N)}function n(N,I){if(!I&&N&&N.__esModule)return N;if(N===null||typeof N!="object"&&typeof N!="function")return{default:N};var R=i(I);if(R&&R.has(N))return R.get(N);var q={},Z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var te in N)if(te!=="default"&&Object.prototype.hasOwnProperty.call(N,te)){var L=Z?Object.getOwnPropertyDescriptor(N,te):null;L&&(L.get||L.set)?Object.defineProperty(q,te,L):q[te]=N[te]}return q.default=N,R&&R.set(N,q),q}function t(N){return N&&N.__esModule?N:{default:N}}var o=y(5454);class a{constructor(I){if(I.secure!==void 0)throw new Error('"secure" option deprecated, "useSSL" should be used instead');if(I.useSSL===void 0&&(I.useSSL=!0),I.port||(I.port=0),!(0,x.isValidEndpoint)(I.endPoint))throw new z.InvalidEndpointError(`Invalid endPoint : ${I.endPoint}`);if(!(0,x.isValidPort)(I.port))throw new z.InvalidArgumentError(`Invalid port : ${I.port}`);if(!(0,x.isBoolean)(I.useSSL))throw new z.InvalidArgumentError(`Invalid useSSL flag type : ${I.useSSL}, expected to be of type "boolean"`);if(I.region&&!(0,x.isString)(I.region))throw new z.InvalidArgumentError(`Invalid region : ${I.region}`);var R,q=I.endPoint.toLowerCase(),Z=I.port,te="";if(I.useSSL===!1?(R=s.default,te="http:",Z===0&&(Z=80)):(R=p.default,te="https:",Z===0&&(Z=443)),I.transport){if(!(0,x.isObject)(I.transport))throw new z.InvalidArgumentError('Invalid transport type : ${params.transport}, expected to be type "object"');R=I.transport}var L=`MinIO (${k.platform}; ${k.arch}) minio-js/${o.version}`;if(this.transport=R,this.host=q,this.port=Z,this.protocol=te,this.accessKey=I.accessKey,this.secretKey=I.secretKey,this.sessionToken=I.sessionToken,this.userAgent=`${L}`,I.pathStyle===void 0?this.pathStyle=!0:this.pathStyle=I.pathStyle,this.accessKey||(this.accessKey=""),this.secretKey||(this.secretKey=""),this.anonymous=!this.accessKey||!this.secretKey,I.credentialsProvider&&(this.credentialsProvider=I.credentialsProvider,this.checkAndRefreshCreds()),this.regionMap={},I.region&&(this.region=I.region),this.partSize=67108864,I.partSize&&(this.partSize=I.partSize,this.overRidePartSize=!0),this.partSize<5242880)throw new z.InvalidArgumentError("Part size should be greater than 5MB");if(this.partSize>5368709120)throw new z.InvalidArgumentError("Part size should be less than 5GB");this.maximumPartSize=5368709120,this.maxObjectSize=5497558138880,this.enableSHA256=!this.anonymous&&!I.useSSL,this.s3AccelerateEndpoint=I.s3AccelerateEndpoint||null,this.reqOptions={}}getAccelerateEndPointIfSet(I,R){if(!_.default.isEmpty(this.s3AccelerateEndpoint)&&!_.default.isEmpty(I)&&!_.default.isEmpty(R)){if(I.indexOf(".")!==-1)throw new Error(`Transfer Acceleration is not supported for non compliant bucket:${I}`);return this.s3AccelerateEndpoint}return!1}setS3TransferAccelerate(I){this.s3AccelerateEndpoint=I}setRequestOptions(I){if(!(0,x.isObject)(I))throw new TypeError('request options should be of type "object"');this.reqOptions=_.default.pick(I,["agent","ca","cert","ciphers","clientCertEngine","crl","dhparam","ecdhCurve","family","honorCipherOrder","key","passphrase","pfx","rejectUnauthorized","secureOptions","secureProtocol","servername","sessionIdContext"])}getRequestOptions(I){var R,q=I.method,Z=I.region,te=I.bucketName,L=I.objectName,X=I.headers,U=I.query,K={method:q,headers:{}};if(te&&(R=(0,x.isVirtualHostStyle)(this.host,this.protocol,te,this.pathStyle)),this.port&&(K.port=this.port),K.protocol=this.protocol,L&&(L=`${(0,x.uriResourceEscape)(L)}`),K.path="/",K.host=this.host,(0,x.isAmazonEndpoint)(K.host)){const se=this.getAccelerateEndPointIfSet(te,L);K.host=se?`${se}`:(0,ee.getS3Endpoint)(Z)}return R&&!I.pathStyle?(te&&(K.host=`${te}.${K.host}`),L&&(K.path=`/${L}`)):(te&&(K.path=`/${te}`),L&&(K.path=`/${te}/${L}`)),U&&(K.path+=`?${U}`),K.headers.host=K.host,(K.protocol==="http:"&&K.port!==80||K.protocol==="https:"&&K.port!==443)&&(K.headers.host=`${K.host}:${K.port}`),K.headers["user-agent"]=this.userAgent,X&&_.default.map(X,(se,ne)=>K.headers[ne.toLowerCase()]=se),K=Object.assign({},this.reqOptions,K)}setAppInfo(I,R){if(!(0,x.isString)(I))throw new TypeError(`Invalid appName: ${I}`);if(I.trim()==="")throw new z.InvalidArgumentError("Input appName cannot be empty.");if(!(0,x.isString)(R))throw new TypeError(`Invalid appVersion: ${R}`);if(R.trim()==="")throw new z.InvalidArgumentError("Input appVersion cannot be empty.");this.userAgent=`${this.userAgent} ${I}/${R}`}calculatePartSize(I){if(!(0,x.isNumber)(I))throw new TypeError('size should be of type "number"');if(I>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>I)return R;R+=16777216}}logHTTP(I,R,q){if(this.logStream){if(!(0,x.isObject)(I))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(q&&!(q instanceof Error))throw new TypeError('err should be of type "Error"');var Z=L=>{_.default.forEach(L,(X,U)=>{if(U=="authorization"){var K=new RegExp("Signature=([0-9a-f]+)");X=X.replace(K,"Signature=**REDACTED**")}this.logStream.write(`${U}: ${X}
|
|
81
|
+
`)}),this.logStream.write(`
|
|
82
|
+
`)};if(this.logStream.write(`REQUEST: ${I.method} ${I.path}
|
|
83
|
+
`),Z(I.headers),R&&(this.logStream.write(`RESPONSE: ${R.statusCode}
|
|
84
|
+
`),Z(R.headers)),q){this.logStream.write(`ERROR BODY:
|
|
85
|
+
`);var te=JSON.stringify(q,null," ");this.logStream.write(`${te}
|
|
86
|
+
`)}}}traceOn(I){I||(I=k.stdout),this.logStream=I}traceOff(){this.logStream=null}makeRequest(I,R,q,Z,te,L){if(!(0,x.isObject)(I))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(q.forEach(K=>{if(!(0,x.isNumber)(K))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)(te))throw new TypeError('returnResponse should be of type "boolean"');if(!(0,x.isFunction)(L))throw new TypeError('callback should be of type "function"');I.headers||(I.headers={}),I.method!=="POST"&&I.method!=="PUT"&&I.method!=="DELETE"||(I.headers["content-length"]=R.length);var X="";this.enableSHA256&&(X=(0,x.toSha256)(R));var U=(0,x.readableStream)(R);this.makeRequestStream(I,U,X,q,Z,te,L)}makeRequestStream(I,R,q,Z,te,L,X){if(!(0,x.isObject)(I))throw new TypeError('options should be of type "object"');if(!(0,x.isReadableStream)(R))throw new z.InvalidArgumentError("stream should be a readable Stream");if(!(0,x.isString)(q))throw new TypeError('sha256sum should be of type "string"');if(Z.forEach(K=>{if(!(0,x.isNumber)(K))throw new TypeError('statusCode should be of type "number"')}),!(0,x.isString)(te))throw new TypeError('region should be of type "string"');if(!(0,x.isBoolean)(L))throw new TypeError('returnResponse should be of type "boolean"');if(!(0,x.isFunction)(X))throw new TypeError('callback should be of type "function"');if(!this.enableSHA256&&q.length!==0)throw new z.InvalidArgumentError("sha256sum expected to be empty for anonymous or https requests");if(this.enableSHA256&&q.length!==64)throw new z.InvalidArgumentError(`Invalid sha256sum : ${q}`);var U=(K,se)=>{if(K)return X(K);I.region=se;var ne=this.getRequestOptions(I);if(!this.anonymous){this.enableSHA256||(q="UNSIGNED-PAYLOAD");let me=new Date;ne.headers["x-amz-date"]=(0,x.makeDateLong)(me),ne.headers["x-amz-content-sha256"]=q,this.sessionToken&&(ne.headers["x-amz-security-token"]=this.sessionToken),this.checkAndRefreshCreds();var ce=(0,j.signV4)(ne,this.accessKey,this.secretKey,se,me);ne.headers.authorization=ce}var ke=this.transport.request(ne,me=>{if(Z.includes(me.statusCode)){if(this.logHTTP(ne,me),L)return X(null,me);me.on("data",()=>{}),X(null)}else{delete this.regionMap[I.bucketName];var ve=B.getErrorTransformer(me);(0,x.pipesetup)(me,ve).on("error",je=>{this.logHTTP(ne,me,je),X(je)})}});(0,x.pipesetup)(R,ke).on("error",me=>{this.logHTTP(ne,null,me),X(me)})};if(te)return U(null,te);this.getBucketRegion(I.bucketName,U)}getBucketRegion(I,R){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError(`Invalid bucket name : ${I}`);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[I])return R(null,this.regionMap[I]);var q=L=>{var X=B.getBucketRegionTransformer(),U=x.DEFAULT_REGION;(0,x.pipesetup)(L,X).on("error",R).on("data",K=>{K&&(U=K)}).on("end",()=>{this.regionMap[I]=U,R(null,U)})},Z="location",te=this.pathStyle&&typeof window=="undefined";this.makeRequest({method:"GET",bucketName:I,query:Z,pathStyle:te},"",[200],x.DEFAULT_REGION,!0,(L,X)=>{if(L){if(L.name==="AuthorizationHeaderMalformed"){var U=L.Region;return U?void this.makeRequest({method:"GET",bucketName:I,query:Z},"",[200],U,!0,(K,se)=>{if(K)return R(K);q(se)}):R(L)}return R(L)}q(X)})}makeBucket(I,R,q={},Z){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if((0,x.isObject)(R)&&(Z=q,q=R,R=""),(0,x.isFunction)(R)&&(Z=R,R="",q={}),(0,x.isFunction)(q)&&(Z=q,q={}),!(0,x.isString)(R))throw new TypeError('region should be of type "string"');if(!(0,x.isObject)(q))throw new TypeError('makeOpts should be of type "object"');if(!(0,x.isFunction)(Z))throw new TypeError('callback should be of type "function"');var te="";if(R&&this.region&&R!==this.region)throw new z.InvalidArgumentError(`Configured region ${this.region}, requested ${R}`);if(R&&R!==x.DEFAULT_REGION){var L=[];L.push({_attr:{xmlns:"http://s3.amazonaws.com/doc/2006-03-01/"}}),L.push({LocationConstraint:R});var X={CreateBucketConfiguration:L};te=(0,f.default)(X)}var U={};q.ObjectLocking&&(U["x-amz-bucket-object-lock-enabled"]=!0),R||(R=x.DEFAULT_REGION),this.makeRequest({method:"PUT",bucketName:I,headers:U},te,[200],R,!1,K=>{if(K&&(R===""||R===x.DEFAULT_REGION)){if(K.code!=="AuthorizationHeaderMalformed"||K.region==="")return Z&&Z(K);this.makeRequest({method:"PUT",bucketName:I,headers:U},te,[200],K.region,!1,Z)}return Z&&Z(K)})}listBuckets(I){if(!(0,x.isFunction)(I))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET"},"",[200],x.DEFAULT_REGION,!0,(R,q)=>{if(R)return I(R);var Z,te=B.getListBucketTransformer();(0,x.pipesetup)(q,te).on("data",L=>Z=L).on("error",L=>I(L)).on("end",()=>I(null,Z))})}listIncompleteUploads(I,R,q){if(R===void 0&&(R=""),q===void 0&&(q=!1),!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidPrefix)(R))throw new z.InvalidPrefixError(`Invalid prefix : ${R}`);if(!(0,x.isBoolean)(q))throw new TypeError('recursive should be of type "boolean"');var Z=q?"":"/",te="",L="",X=[],U=!1,K=c.default.Readable({objectMode:!0});return K._read=()=>X.length?K.push(X.shift()):U?K.push(null):void this.listIncompleteUploadsQuery(I,R,te,L,Z).on("error",se=>K.emit("error",se)).on("data",se=>{se.prefixes.forEach(ne=>X.push(ne)),h.default.eachSeries(se.uploads,(ne,ce)=>{this.listParts(I,ne.key,ne.uploadId,(ke,me)=>{if(ke)return ce(ke);ne.size=me.reduce((ve,je)=>ve+je.size,0),X.push(ne),ce()})},ne=>{ne?K.emit("error",ne):(se.isTruncated?(te=se.nextKeyMarker,L=se.nextUploadIdMarker):U=!0,K._read())})}),K}bucketExists(I,R){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isFunction)(R))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"HEAD",bucketName:I},"",[200],"",!1,q=>{if(q)return q.code=="NoSuchBucket"||q.code=="NotFound"?R(null,!1):R(q);R(null,!0)})}removeBucket(I,R){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isFunction)(R))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"DELETE",bucketName:I},"",[204],"",!1,q=>{q||delete this.regionMap[I],R(q)})}removeIncompleteUpload(I,R,q){if(!(0,x.isValidBucketName)(I))throw new z.isValidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isFunction)(q))throw new TypeError('callback should be of type "function"');var Z;h.default.during(te=>{this.findUploadId(I,R,(L,X)=>{if(L)return te(L);Z=X,te(null,X)})},te=>{var L=`uploadId=${Z}`;this.makeRequest({method:"DELETE",bucketName:I,objectName:R,query:L},"",[204],"",!1,X=>te(X))},q)}fGetObject(I,R,q,Z={},te){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isString)(q))throw new TypeError('filePath should be of type "string"');if((0,x.isFunction)(Z)&&(te=Z,Z={}),!(0,x.isFunction)(te))throw new TypeError('callback should be of type "function"');var L,X,U,K=se=>{if(se)return te(se);M.default.rename(L,q,te)};h.default.waterfall([se=>this.statObject(I,R,Z,se),(se,ne)=>{U=se,(0,b.default)(v.default.dirname(q),ne)},(se,ne)=>{L=`${q}.${U.etag}.part.minio`,M.default.stat(L,(ce,ke)=>{var me=0;if(ce)X=M.default.createWriteStream(L,{flags:"w"});else{if(U.size===ke.size)return K();me=ke.size,X=M.default.createWriteStream(L,{flags:"a"})}this.getPartialObject(I,R,me,0,Z,ne)})},(se,ne)=>{(0,x.pipesetup)(se,X).on("error",ce=>ne(ce)).on("finish",ne)},se=>M.default.stat(L,se),(se,ne)=>{if(se.size===U.size)return ne();ne(new Error("Size mismatch between downloaded file and the object"))}],K)}getObject(I,R,q={},Z){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);if((0,x.isFunction)(q)&&(Z=q,q={}),!(0,x.isFunction)(Z))throw new TypeError('callback should be of type "function"');this.getPartialObject(I,R,0,0,q,Z)}getPartialObject(I,R,q,Z,te={},L){if((0,x.isFunction)(Z)&&(L=Z,Z=0),!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isNumber)(q))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)(te)&&(L=te,te={}),!(0,x.isFunction)(L))throw new TypeError('callback should be of type "function"');var X="";(q||Z)&&(q?X=`bytes=${+q}-`:(X="bytes=0-",q=0),Z&&(X+=""+(+Z+q-1)));var U={};X!==""&&(U.range=X);var K=[200];X&&K.push(206);var se=u.default.stringify(te);this.makeRequest({method:"GET",bucketName:I,objectName:R,headers:U,query:se},"",K,"",!0,L)}fPutObject(I,R,q,Z,te){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isString)(q))throw new TypeError('filePath should be of type "string"');if((0,x.isFunction)(Z)&&(te=Z,Z={}),!(0,x.isObject)(Z))throw new TypeError('metaData should be of type "object"');var L,X;Z=(0,x.insertContentType)(Z,q),Z=(0,x.prependXAMZMeta)(Z),h.default.waterfall([U=>M.default.stat(q,U),(U,K)=>{L=U.size;var se=!1,ne=K;if(K=function(){if(!se)return se=!0,ne.apply(this,arguments)},L>this.maxObjectSize)return K(new Error(`${q} size : ${U.size}, max allowed size : 5TB`));if(L<=this.partSize){var ce=this.getUploader(I,R,Z,!1),ke=B.getHashSummer(this.enableSHA256),me=L-1;L===0&&(me=0);var ve={start:0,end:me,autoClose:!0};(0,x.pipesetup)(M.default.createReadStream(q,ve),ke).on("data",je=>{var we=je.md5sum,Ae=je.sha256sum,G=M.default.createReadStream(q,ve);ce(G,L,Ae,we,(Y,F)=>{te(Y,F),K(!0)})}).on("error",je=>K(je))}else this.findUploadId(I,R,K)},(U,K)=>{if(U)return this.listParts(I,R,U,(se,ne)=>K(se,U,ne));this.initiateNewMultipartUpload(I,R,Z,(se,ne)=>K(se,ne,[]))},(U,K,se)=>{X=this.calculatePartSize(L);var ne=this.getUploader(I,R,Z,!0),ce=K.reduce(function(je,we){return je[we.part]||(je[we.part]=we),je},{}),ke=[],me=1,ve=0;h.default.whilst(je=>{je(null,ve<L)},je=>{var we=!1,Ae=je;je=function(){if(!we)return we=!0,Ae.apply(this,arguments)};var G=ce[me],Y=B.getHashSummer(this.enableSHA256),F=X;F>L-ve&&(F=L-ve);var $={autoClose:!0,start:ve,end:ve+F-1};(0,x.pipesetup)(M.default.createReadStream(q,$),Y).on("data",D=>{var Q=w.from(D.md5sum,"base64").toString("hex");if(G&&Q===G.etag)return ke.push({part:me,etag:G.etag}),me++,ve+=F,je();var he=M.default.createReadStream(q,$);ne(U,me,he,F,D.sha256sum,D.md5sum,(le,pe)=>le?je(le):(ke.push({part:me,etag:pe.etag}),me++,ve+=F,je()))}).on("error",D=>je(D))},je=>{if(je)return se(je);se(null,ke,U)})},(U,K,se)=>this.completeMultipartUpload(I,R,K,U,se)],(U,...K)=>{U!==!0&&te(U,...K)})}putObject(I,R,q,Z,te,L){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);if((0,x.isFunction)(Z)?(L=Z,te={}):(0,x.isFunction)(te)&&(L=te,te={}),(0,x.isObject)(Z)&&(te=Z),te=(0,x.prependXAMZMeta)(te),typeof q=="string"||q instanceof w)Z=q.length,q=(0,x.readableStream)(q);else if(!(0,x.isReadableStream)(q))throw new TypeError('third argument should be of type "stream.Readable" or "Buffer" or "string"');if(!(0,x.isFunction)(L))throw new TypeError('callback should be of type "function"');if((0,x.isNumber)(Z)&&Z<0)throw new z.InvalidArgumentError(`size cannot be negative, given size: ${Z}`);(0,x.isNumber)(Z)||(Z=this.maxObjectSize),Z=this.calculatePartSize(Z);let X=new l.default({size:Z,zeroPadding:!1}),U=new P.default(this,I,R,Z,te,L);q.pipe(X).pipe(U)}copyObjectV1(I,R,q,Z,te){var L,X,U=I,K=R,se=q;if(typeof Z=="function"&&te===void 0?(L=null,X=Z):(L=Z,X=te),!(0,x.isValidBucketName)(U))throw new z.InvalidBucketNameError("Invalid bucket name: "+U);if(!(0,x.isValidObjectName)(K))throw new z.InvalidObjectNameError(`Invalid object name: ${K}`);if(!(0,x.isString)(se))throw new TypeError('srcObject should be of type "string"');if(se==="")throw new z.InvalidPrefixError("Empty source prefix");if(L!==null&&!(L instanceof T))throw new TypeError('conditions should be of type "CopyConditions"');var ne={};ne["x-amz-copy-source"]=(0,x.uriResourceEscape)(se),L!==null&&(L.modified!==""&&(ne["x-amz-copy-source-if-modified-since"]=L.modified),L.unmodified!==""&&(ne["x-amz-copy-source-if-unmodified-since"]=L.unmodified),L.matchETag!==""&&(ne["x-amz-copy-source-if-match"]=L.matchETag),L.matchEtagExcept!==""&&(ne["x-amz-copy-source-if-none-match"]=L.matchETagExcept)),this.makeRequest({method:"PUT",bucketName:U,objectName:K,headers:ne},"",[200],"",!0,(ce,ke)=>{if(ce)return X(ce);var me=B.getCopyObjectTransformer();(0,x.pipesetup)(ke,me).on("error",ve=>X(ve)).on("data",ve=>X(null,ve))})}copyObjectV2(I,R,q){if(!(I instanceof x.CopySourceOptions))throw new z.InvalidArgumentError("sourceConfig should of type CopySourceOptions ");if(!(R instanceof x.CopyDestinationOptions))throw new z.InvalidArgumentError("destConfig should of type CopyDestinationOptions ");if(!R.validate()||!R.validate())return!1;if(!(0,x.isFunction)(q))throw new TypeError('callback should be of type "function"');const Z=Object.assign({},I.getHeaders(),R.getHeaders()),te=R.Bucket,L=R.Object;this.makeRequest({method:"PUT",bucketName:te,objectName:L,headers:Z},"",[200],"",!0,(X,U)=>{if(X)return q(X);const K=B.getCopyObjectTransformer();(0,x.pipesetup)(U,K).on("error",se=>q(se)).on("data",se=>{const ne=U.headers,ce={Bucket:R.Bucket,Key:R.Object,LastModified:se.LastModified,MetaData:(0,x.extractMetadata)(ne),VersionId:(0,x.getVersionId)(ne),SourceVersionId:(0,x.getSourceVersionId)(ne),Etag:(0,x.sanitizeETag)(ne.etag),Size:+ne["content-length"]};return q(null,ce)})})}copyObject(...I){return I[0]instanceof x.CopySourceOptions&&I[1]instanceof x.CopyDestinationOptions?this.copyObjectV2(...arguments):this.copyObjectV1(...arguments)}listObjectsQuery(I,R,q,Z={}){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isString)(R))throw new TypeError('prefix should be of type "string"');if(!(0,x.isString)(q))throw new TypeError('marker should be of type "string"');let{Delimiter:te,MaxKeys:L,IncludeVersion:X}=Z;if(!(0,x.isObject)(Z))throw new TypeError('listQueryOpts should be of type "object"');if(!(0,x.isString)(te))throw new TypeError('Delimiter should be of type "string"');if(!(0,x.isNumber)(L))throw new TypeError('MaxKeys should be of type "number"');const U=[];U.push(`prefix=${(0,x.uriEscape)(R)}`),U.push(`delimiter=${(0,x.uriEscape)(te)}`),U.push("encoding-type=url"),X&&U.push("versions"),q&&(q=(0,x.uriEscape)(q),X?U.push(`key-marker=${q}`):U.push(`marker=${q}`)),L&&(L>=1e3&&(L=1e3),U.push(`max-keys=${L}`)),U.sort();var K="";U.length>0&&(K=`${U.join("&")}`);var se=B.getListObjectsTransformer();return this.makeRequest({method:"GET",bucketName:I,query:K},"",[200],"",!0,(ne,ce)=>{if(ne)return se.emit("error",ne);(0,x.pipesetup)(ce,se)}),se}listObjects(I,R,q,Z={}){if(R===void 0&&(R=""),q===void 0&&(q=!1),!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidPrefix)(R))throw new z.InvalidPrefixError(`Invalid prefix : ${R}`);if(!(0,x.isString)(R))throw new TypeError('prefix should be of type "string"');if(!(0,x.isBoolean)(q))throw new TypeError('recursive should be of type "boolean"');if(!(0,x.isObject)(Z))throw new TypeError('listOpts should be of type "object"');var te="";const L={Delimiter:q?"":"/",MaxKeys:1e3,IncludeVersion:Z.IncludeVersion};var X=[],U=!1,K=c.default.Readable({objectMode:!0});return K._read=()=>{if(!X.length)return U?K.push(null):void this.listObjectsQuery(I,R,te,L).on("error",se=>K.emit("error",se)).on("data",se=>{se.isTruncated?te=se.nextMarker||se.versionIdMarker:U=!0,X=se.objects,K._read()});K.push(X.shift())},K}listObjectsV2Query(I,R,q,Z,te,L){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isString)(R))throw new TypeError('prefix should be of type "string"');if(!(0,x.isString)(q))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)(te))throw new TypeError('maxKeys should be of type "number"');if(!(0,x.isString)(L))throw new TypeError('startAfter should be of type "string"');var X=[];X.push("list-type=2"),X.push("encoding-type=url"),X.push(`prefix=${(0,x.uriEscape)(R)}`),X.push(`delimiter=${(0,x.uriEscape)(Z)}`),q&&(q=(0,x.uriEscape)(q),X.push(`continuation-token=${q}`)),L&&(L=(0,x.uriEscape)(L),X.push(`start-after=${L}`)),te&&(te>=1e3&&(te=1e3),X.push(`max-keys=${te}`)),X.sort();var U="";X.length>0&&(U=`${X.join("&")}`);var K=B.getListObjectsV2Transformer();return this.makeRequest({method:"GET",bucketName:I,query:U},"",[200],"",!0,(se,ne)=>{if(se)return K.emit("error",se);(0,x.pipesetup)(ne,K)}),K}listObjectsV2(I,R,q,Z){if(R===void 0&&(R=""),q===void 0&&(q=!1),Z===void 0&&(Z=""),!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidPrefix)(R))throw new z.InvalidPrefixError(`Invalid prefix : ${R}`);if(!(0,x.isString)(R))throw new TypeError('prefix should be of type "string"');if(!(0,x.isBoolean)(q))throw new TypeError('recursive should be of type "boolean"');if(!(0,x.isString)(Z))throw new TypeError('startAfter should be of type "string"');var te=q?"":"/",L="",X=[],U=!1,K=c.default.Readable({objectMode:!0});return K._read=()=>{if(!X.length)return U?K.push(null):void this.listObjectsV2Query(I,R,L,te,1e3,Z).on("error",se=>K.emit("error",se)).on("data",se=>{se.isTruncated?L=se.nextContinuationToken:U=!0,X=se.objects,K._read()});K.push(X.shift())},K}statObject(I,R,q={},Z){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);if((0,x.isFunction)(q)&&(Z=q,q={}),!(0,x.isObject)(q))throw new z.InvalidArgumentError('statOpts should be of type "object"');if(!(0,x.isFunction)(Z))throw new TypeError('callback should be of type "function"');var te=u.default.stringify(q);this.makeRequest({method:"HEAD",bucketName:I,objectName:R,query:te},"",[200],"",!0,(L,X)=>{if(L)return Z(L);X.on("data",()=>{});const U={size:+X.headers["content-length"],metaData:(0,x.extractMetadata)(X.headers),lastModified:new Date(X.headers["last-modified"]),versionId:(0,x.getVersionId)(X.headers),etag:(0,x.sanitizeETag)(X.headers.etag)};Z(null,U)})}removeObject(I,R,q={},Z){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);if((0,x.isFunction)(q)&&(Z=q,q={}),!(0,x.isObject)(q))throw new z.InvalidArgumentError('removeOpts should be of type "object"');if(!(0,x.isFunction)(Z))throw new TypeError('callback should be of type "function"');const te={};q.versionId&&(te.versionId=`${q.versionId}`);const L={};q.governanceBypass&&(L["X-Amz-Bypass-Governance-Retention"]=!0);const X=u.default.stringify(te);let U={method:"DELETE",bucketName:I,objectName:R,headers:L};X&&(U.query=X),this.makeRequest(U,"",[200,204],"",!1,Z)}removeObjects(I,R,q){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isArray)(R))throw new z.InvalidArgumentError("objectsList should be a list");if(!(0,x.isFunction)(q))throw new TypeError('callback should be of type "function"');let Z=R.reduce((L,X)=>(L.list.push(X),L.list.length===1e3&&(L.listOfList.push(L.list),L.list=[]),L),{listOfList:[],list:[]});Z.list.length>0&&Z.listOfList.push(Z.list);const te=new A.TextEncoder;h.default.eachSeries(Z.listOfList,(L,X)=>{var U=[];L.forEach(function(ce){(0,x.isObject)(ce)?U.push({Key:ce.name,VersionId:ce.versionId}):U.push({Key:ce})});let K={Delete:{Quiet:!0,Object:U}},se=new m.default.Builder({headless:!0}).buildObject(K);se=te.encode(se);const ne={};ne["Content-MD5"]=(0,x.toMd5)(se),this.makeRequest({method:"POST",bucketName:I,query:"delete",headers:ne},se,[200],"",!1,ce=>{if(ce)return X(ce);X(null)})},q)}getBucketPolicy(I,R){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError(`Invalid bucket name: ${I}`);if(!(0,x.isFunction)(R))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:I,query:"policy"},"",[200],"",!0,(q,Z)=>{if(q)return R(q);let te=w.from("");(0,x.pipesetup)(Z,B.getConcater()).on("data",L=>te=L).on("error",R).on("end",()=>{R(null,te.toString())})})}setBucketPolicy(I,R,q){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError(`Invalid bucket name: ${I}`);if(!(0,x.isString)(R))throw new z.InvalidBucketPolicyError(`Invalid bucket policy: ${R} - must be "string"`);if(!(0,x.isFunction)(q))throw new TypeError('callback should be of type "function"');let Z="DELETE";R&&(Z="PUT"),this.makeRequest({method:Z,bucketName:I,query:"policy"},R,[204],"",!1,q)}presignedUrl(I,R,q,Z,te,L,X){if(this.anonymous)throw new z.AnonymousRequestError("Presigned "+I+" url cannot be generated for anonymous requests");if((0,x.isFunction)(L)&&(X=L,L=new Date),(0,x.isFunction)(te)&&(X=te,te={},L=new Date),(0,x.isFunction)(Z)&&(X=Z,te={},Z=604800,L=new Date),!(0,x.isNumber)(Z))throw new TypeError('expires should be of type "number"');if(!(0,x.isObject)(te))throw new TypeError('reqParams should be of type "object"');if(!(0,x.isValidDate)(L))throw new TypeError('requestDate should be of type "Date" and valid');if(!(0,x.isFunction)(X))throw new TypeError('callback should be of type "function"');var U=u.default.stringify(te);this.getBucketRegion(R,(K,se)=>{if(K)return X(K);var ne,ce=this.getRequestOptions({method:I,region:se,bucketName:R,objectName:q,query:U});this.checkAndRefreshCreds();try{ne=(0,j.presignSignatureV4)(ce,this.accessKey,this.secretKey,this.sessionToken,se,L,Z)}catch(ke){return X(ke)}X(null,ne)})}presignedGetObject(I,R,q,Z,te,L){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);return(0,x.isFunction)(Z)&&(L=Z,Z={},te=new Date),["response-content-type","response-content-language","response-expires","response-cache-control","response-content-disposition","response-content-encoding"].forEach(X=>{if(Z!==void 0&&Z[X]!==void 0&&!(0,x.isString)(Z[X]))throw new TypeError(`response header ${X} should be of type "string"`)}),this.presignedUrl("GET",I,R,q,Z,te,L)}presignedPutObject(I,R,q,Z){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: ${bucketName}");if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError("Invalid object name: ${objectName}");return this.presignedUrl("PUT",I,R,q,Z)}newPostPolicy(){return new C}presignedPostPolicy(I,R){if(this.anonymous)throw new z.AnonymousRequestError("Presigned POST policy cannot be generated for anonymous requests");if(!(0,x.isObject)(I))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(I.formData.bucket,(q,Z)=>{if(q)return R(q);var te=new Date,L=(0,x.makeDateLong)(te);if(this.checkAndRefreshCreds(),!I.policy.expiration){var X=new Date;X.setSeconds(604800),I.setExpires(X)}I.policy.conditions.push(["eq","$x-amz-date",L]),I.formData["x-amz-date"]=L,I.policy.conditions.push(["eq","$x-amz-algorithm","AWS4-HMAC-SHA256"]),I.formData["x-amz-algorithm"]="AWS4-HMAC-SHA256",I.policy.conditions.push(["eq","$x-amz-credential",this.accessKey+"/"+(0,x.getScope)(Z,te)]),I.formData["x-amz-credential"]=this.accessKey+"/"+(0,x.getScope)(Z,te),this.sessionToken&&(I.policy.conditions.push(["eq","$x-amz-security-token",this.sessionToken]),I.formData["x-amz-security-token"]=this.sessionToken);var U=w.from(JSON.stringify(I.policy)).toString("base64");I.formData.policy=U;var K=(0,j.postPresignSignatureV4)(Z,te,this.secretKey,U);I.formData["x-amz-signature"]=K;var se={};se.region=Z,se.bucketName=I.formData.bucket;var ne=this.getRequestOptions(se),ce=this.port==80||this.port===443?"":`:${this.port.toString()}`,ke=`${ne.protocol}//${ne.host}${ce}${ne.path}`;R(null,{postURL:ke,formData:I.formData})})}initiateNewMultipartUpload(I,R,q,Z){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isObject)(q))throw new z.InvalidObjectNameError('contentType should be of type "object"');let te=Object.assign({},q);this.makeRequest({method:"POST",bucketName:I,objectName:R,query:"uploads",headers:te},"",[200],"",!0,(L,X)=>{if(L)return Z(L);var U=B.getInitiateMultipartTransformer();(0,x.pipesetup)(X,U).on("error",K=>Z(K)).on("data",K=>Z(null,K))})}completeMultipartUpload(I,R,q,Z,te){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isString)(q))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)(te))throw new TypeError('cb should be of type "function"');if(!q)throw new z.InvalidArgumentError("uploadId cannot be empty");var L=`uploadId=${(0,x.uriEscape)(q)}`,X=[];Z.forEach(se=>{X.push({Part:[{PartNumber:se.part},{ETag:se.etag}]})});var U={CompleteMultipartUpload:X},K=(0,f.default)(U);this.makeRequest({method:"POST",bucketName:I,objectName:R,query:L},K,[200],"",!0,(se,ne)=>{if(se)return te(se);var ce=B.getCompleteMultipartTransformer();(0,x.pipesetup)(ne,ce).on("error",ke=>te(ke)).on("data",ke=>{if(ke.errCode)te(new z.S3Error(ke.errMessage));else{const me={etag:ke.etag,versionId:(0,x.getVersionId)(ne.headers)};te(null,me)}})})}listParts(I,R,q,Z){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isString)(q))throw new TypeError('uploadId should be of type "string"');if(!q)throw new z.InvalidArgumentError("uploadId cannot be empty");var te=[],L=X=>{this.listPartsQuery(I,R,q,X,(U,K)=>{U?Z(U):(te=te.concat(K.parts),K.isTruncated?L(K.marker):Z(null,te))})};L(0)}listPartsQuery(I,R,q,Z,te){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isString)(q))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)(te))throw new TypeError('callback should be of type "function"');if(!q)throw new z.InvalidArgumentError("uploadId cannot be empty");var L="";Z&&Z!==0&&(L+=`part-number-marker=${Z}&`),L+=`uploadId=${(0,x.uriEscape)(q)}`,this.makeRequest({method:"GET",bucketName:I,objectName:R,query:L},"",[200],"",!0,(X,U)=>{if(X)return te(X);var K=B.getListPartsTransformer();(0,x.pipesetup)(U,K).on("error",se=>te(se)).on("data",se=>te(null,se))})}listIncompleteUploadsQuery(I,R,q,Z,te){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isString)(R))throw new TypeError('prefix should be of type "string"');if(!(0,x.isString)(q))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)(te))throw new TypeError('delimiter should be of type "string"');var L=[];L.push(`prefix=${(0,x.uriEscape)(R)}`),L.push(`delimiter=${(0,x.uriEscape)(te)}`),q&&(q=(0,x.uriEscape)(q),L.push(`key-marker=${q}`)),Z&&L.push(`upload-id-marker=${Z}`),L.push("max-uploads=1000"),L.sort(),L.unshift("uploads");var X="";L.length>0&&(X=`${L.join("&")}`);var U=B.getListMultipartTransformer();return this.makeRequest({method:"GET",bucketName:I,query:X},"",[200],"",!0,(K,se)=>{if(K)return U.emit("error",K);(0,x.pipesetup)(se,U)}),U}findUploadId(I,R,q){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isFunction)(q))throw new TypeError('cb should be of type "function"');var Z,te=(L,X)=>{this.listIncompleteUploadsQuery(I,R,L,X,"").on("error",U=>q(U)).on("data",U=>{if(U.uploads.forEach(K=>{K.key!==R||Z&&!(K.initiated.getTime()>Z.initiated.getTime())||(Z=K)}),!U.isTruncated)return Z?q(null,Z.uploadId):void q(null,void 0);te(U.nextKeyMarker,U.nextUploadIdMarker)})};te("","")}getUploader(I,R,q,Z){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isBoolean)(Z))throw new TypeError('multipart should be of type "boolean"');if(!(0,x.isObject)(q))throw new TypeError('metadata should be of type "object"');var te=(X,U,K,se,ne)=>{if(!(0,x.isReadableStream)(X))throw new TypeError('stream should be of type "Stream"');if(!(0,x.isNumber)(U))throw new TypeError('length should be of type "number"');if(!(0,x.isString)(K))throw new TypeError('sha256sum should be of type "string"');if(!(0,x.isString)(se))throw new TypeError('md5sum should be of type "string"');if(!(0,x.isFunction)(ne))throw new TypeError('callback should be of type "function"')},L=(X,U,K,se,ne,ce)=>{let ke={"Content-Length":K};Z||(ke=Object.assign({},q,ke)),this.enableSHA256||(ke["Content-MD5"]=ne),this.makeRequestStream({method:"PUT",bucketName:I,objectName:R,query:X,headers:ke},U,se,[200],"",!0,(me,ve)=>{if(me)return ce(me);const je={etag:(0,x.sanitizeETag)(ve.headers.etag),versionId:(0,x.getVersionId)(ve.headers)};ve.on("data",()=>{}),ce(null,je)})};return Z?(X,U,...K)=>{if(!(0,x.isString)(X))throw new TypeError('uploadId should be of type "string"');if(!(0,x.isNumber)(U))throw new TypeError('partNumber should be of type "number"');if(!X)throw new z.InvalidArgumentError("Empty uploadId");if(!U)throw new z.InvalidArgumentError("partNumber cannot be 0");te(...K);var se=`partNumber=${U}&uploadId=${(0,x.uriEscape)(X)}`;L(se,...K)}:(...X)=>{te(...X),L("",...X)}}setBucketNotification(I,R,q){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isObject)(R))throw new TypeError('notification config should be of type "Object"');if(!(0,x.isFunction)(q))throw new TypeError('callback should be of type "function"');var Z=new m.default.Builder({rootName:"NotificationConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(R);this.makeRequest({method:"PUT",bucketName:I,query:"notification"},Z,[200],"",!1,q)}removeAllBucketNotification(I,R){this.setBucketNotification(I,new J.NotificationConfig,R)}getBucketNotification(I,R){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isFunction)(R))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:I,query:"notification"},"",[200],"",!0,(q,Z)=>{if(q)return R(q);var te,L=B.getBucketNotificationTransformer();(0,x.pipesetup)(Z,L).on("data",X=>te=X).on("error",X=>R(X)).on("end",()=>R(null,te))})}listenBucketNotification(I,R,q,Z){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError(`Invalid bucket name: ${I}`);if(!(0,x.isString)(R))throw new TypeError("prefix must be of type string");if(!(0,x.isString)(q))throw new TypeError("suffix must be of type string");if(!(0,x.isArray)(Z))throw new TypeError("events must be of type Array");let te=new J.NotificationPoller(this,I,R,q,Z);return te.start(),te}getBucketVersioning(I,R){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isFunction)(R))throw new z.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:I,query:"versioning"},"",[200],"",!0,(q,Z)=>{if(q)return R(q);let te=w.from("");(0,x.pipesetup)(Z,B.bucketVersioningTransformer()).on("data",L=>{te=L}).on("error",R).on("end",()=>{R(null,te)})})}setBucketVersioning(I,R,q){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!Object.keys(R).length)throw new z.InvalidArgumentError('versionConfig should be of type "object"');if(!(0,x.isFunction)(q))throw new TypeError('callback should be of type "function"');var Z=new m.default.Builder({rootName:"VersioningConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(R);this.makeRequest({method:"PUT",bucketName:I,query:"versioning"},Z,[200],"",!1,q)}setTagging(I){const{bucketName:R,objectName:q,tags:Z,putOpts:te={},cb:L}=I;let X="tagging";te&&te.versionId&&(X=`${X}&versionId=${te.versionId}`);const U=[];for(const[me,ve]of Object.entries(Z))U.push({Key:me,Value:ve});const K={Tagging:{TagSet:{Tag:U}}},se=new A.TextEncoder,ne={};let ce=new m.default.Builder({headless:!0,renderOpts:{pretty:!1}}).buildObject(K);ce=se.encode(ce),ne["Content-MD5"]=(0,x.toMd5)(ce);const ke={method:"PUT",bucketName:R,query:X,headers:ne};q&&(ke.objectName=q),ne["Content-MD5"]=(0,x.toMd5)(ce),this.makeRequest(ke,ce,[200],"",!1,L)}setBucketTagging(I,R,q){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isObject)(R))throw new z.InvalidArgumentError('tags should be of type "object"');if(Object.keys(R).length>10)throw new z.InvalidArgumentError('maximum tags allowed is 10"');if(!(0,x.isFunction)(q))throw new z.InvalidArgumentError('callback should be of type "function"');return this.setTagging({bucketName:I,tags:R,cb:q})}setObjectTagging(I,R,q,Z={},te){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidBucketNameError("Invalid object name: "+R);if((0,x.isFunction)(Z)&&(te=Z,Z={}),!(0,x.isObject)(q))throw new z.InvalidArgumentError('tags should be of type "object"');if(Object.keys(q).length>10)throw new z.InvalidArgumentError('Maximum tags allowed is 10"');if(!(0,x.isFunction)(te))throw new TypeError('callback should be of type "function"');return this.setTagging({bucketName:I,objectName:R,tags:q,putOpts:Z,cb:te})}removeTagging({bucketName:I,objectName:R,removeOpts:q,cb:Z}){let te="tagging";q&&Object.keys(q).length&&q.versionId&&(te=`${te}&versionId=${q.versionId}`);const L={method:"DELETE",bucketName:I,objectName:R,query:te};R&&(L.objectName=R),this.makeRequest(L,"",[200,204],"",!0,Z)}removeBucketTagging(I,R){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isFunction)(R))throw new TypeError('callback should be of type "function"');return this.removeTagging({bucketName:I,cb:R})}removeObjectTagging(I,R,q,Z){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidBucketNameError("Invalid object name: "+R);if((0,x.isFunction)(q)&&(Z=q,q={}),q&&Object.keys(q).length&&!(0,x.isObject)(q))throw new z.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:I,objectName:R,removeOpts:q,cb:Z})}getBucketTagging(I,R){const q={method:"GET",bucketName:I,query:"tagging"};this.makeRequest(q,"",[200],"",!0,(Z,te)=>{var L=B.getTagsTransformer();if(Z)return R(Z);let X;(0,x.pipesetup)(te,L).on("data",U=>X=U).on("error",U=>R(U)).on("end",()=>R(null,X))})}getObjectTagging(I,R,q={},Z=()=>!1){let te="tagging";if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidBucketNameError("Invalid object name: "+R);if((0,x.isFunction)(q)&&(Z=q,q={}),!(0,x.isObject)(q))throw new z.InvalidArgumentError('getOpts should be of type "object"');if(!(0,x.isFunction)(Z))throw new TypeError('callback should be of type "function"');q&&q.versionId&&(te=`${te}&versionId=${q.versionId}`);const L={method:"GET",bucketName:I,query:te};R&&(L.objectName=R),this.makeRequest(L,"",[200],"",!0,(X,U)=>{const K=B.getTagsTransformer();if(X)return Z(X);let se;(0,x.pipesetup)(U,K).on("data",ne=>se=ne).on("error",ne=>Z(ne)).on("end",()=>Z(null,se))})}applyBucketLifecycle(I,R,q){const Z=new A.TextEncoder,te={};let L=new m.default.Builder({rootName:"LifecycleConfiguration",headless:!0,renderOpts:{pretty:!1}}).buildObject(R);L=Z.encode(L);const X={method:"PUT",bucketName:I,query:"lifecycle",headers:te};te["Content-MD5"]=(0,x.toMd5)(L),this.makeRequest(X,L,[200],"",!1,q)}removeBucketLifecycle(I,R){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);this.makeRequest({method:"DELETE",bucketName:I,query:"lifecycle"},"",[204],"",!1,R)}setBucketLifecycle(I,R=null,q){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);_.default.isEmpty(R)?this.removeBucketLifecycle(I,q):this.applyBucketLifecycle(I,R,q)}getBucketLifecycle(I,R){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);const q={method:"GET",bucketName:I,query:"lifecycle"};this.makeRequest(q,"",[200],"",!0,(Z,te)=>{const L=B.lifecycleTransformer();if(Z)return R(Z);let X;(0,x.pipesetup)(te,L).on("data",U=>X=U).on("error",U=>R(U)).on("end",()=>R(null,X))})}setObjectLockConfig(I,R={},q){const Z=[x.RETENTION_MODES.COMPLIANCE,x.RETENTION_MODES.GOVERNANCE],te=[x.RETENTION_VALIDITY_UNITS.DAYS,x.RETENTION_VALIDITY_UNITS.YEARS];if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(R.mode&&!Z.includes(R.mode))throw new TypeError(`lockConfigOpts.mode should be one of ${Z}`);if(R.unit&&!te.includes(R.unit))throw new TypeError(`lockConfigOpts.unit should be one of ${te}`);if(R.validity&&!(0,x.isNumber)(R.validity))throw new TypeError("lockConfigOpts.validity should be a number");let L={ObjectLockEnabled:"Enabled"};const X=Object.keys(R);if(X.length>0){if(_.default.difference(X,["unit","mode","validity"]).length!==0)throw new TypeError("lockConfigOpts.mode,lockConfigOpts.unit,lockConfigOpts.validity all the properties should be specified.");L.Rule={DefaultRetention:{}},R.mode&&(L.Rule.DefaultRetention.Mode=R.mode),R.unit===x.RETENTION_VALIDITY_UNITS.DAYS?L.Rule.DefaultRetention.Days=R.validity:R.unit===x.RETENTION_VALIDITY_UNITS.YEARS&&(L.Rule.DefaultRetention.Years=R.validity)}const U=new m.default.Builder({rootName:"ObjectLockConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(L),K={};K["Content-MD5"]=(0,x.toMd5)(U),this.makeRequest({method:"PUT",bucketName:I,query:"object-lock",headers:K},U,[200],"",!1,q)}getObjectLockConfig(I,R){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isFunction)(R))throw new z.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:I,query:"object-lock"},"",[200],"",!0,(q,Z)=>{if(q)return R(q);let te=w.from("");(0,x.pipesetup)(Z,B.objectLockTransformer()).on("data",L=>{te=L}).on("error",R).on("end",()=>{R(null,te)})})}putObjectRetention(I,R,q={},Z){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isObject)(q))throw new z.InvalidArgumentError('retentionOpts should be of type "object"');if(q.governanceBypass&&!(0,x.isBoolean)(q.governanceBypass))throw new z.InvalidArgumentError("Invalid value for governanceBypass",q.governanceBypass);if(q.mode&&![x.RETENTION_MODES.COMPLIANCE,x.RETENTION_MODES.GOVERNANCE].includes(q.mode))throw new z.InvalidArgumentError("Invalid object retention mode ",q.mode);if(q.retainUntilDate&&!(0,x.isString)(q.retainUntilDate))throw new z.InvalidArgumentError("Invalid value for retainUntilDate",q.retainUntilDate);if(q.versionId&&!(0,x.isString)(q.versionId))throw new z.InvalidArgumentError("Invalid value for versionId",q.versionId);if(!(0,x.isFunction)(Z))throw new TypeError('callback should be of type "function"');let te="retention";const L={};q.governanceBypass&&(L["X-Amz-Bypass-Governance-Retention"]=!0);const X=new m.default.Builder({rootName:"Retention",renderOpts:{pretty:!1},headless:!0}),U={};q.mode&&(U.Mode=q.mode),q.retainUntilDate&&(U.RetainUntilDate=q.retainUntilDate),q.versionId&&(te+=`&versionId=${q.versionId}`);let K=X.buildObject(U);L["Content-MD5"]=(0,x.toMd5)(K),this.makeRequest({method:"PUT",bucketName:I,objectName:R,query:te,headers:L},K,[200,204],"",!1,Z)}getObjectRetention(I,R,q,Z){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);if(!(0,x.isObject)(q))throw new z.InvalidArgumentError('callback should be of type "object"');if(q.versionId&&!(0,x.isString)(q.versionId))throw new z.InvalidArgumentError('VersionID should be of type "string"');if(Z&&!(0,x.isFunction)(Z))throw new z.InvalidArgumentError('callback should be of type "function"');let te="retention";q.versionId&&(te+=`&versionId=${q.versionId}`),this.makeRequest({method:"GET",bucketName:I,objectName:R,query:te},"",[200],"",!0,(L,X)=>{if(L)return Z(L);let U=w.from("");(0,x.pipesetup)(X,B.objectRetentionTransformer()).on("data",K=>{U=K}).on("error",Z).on("end",()=>{Z(null,U)})})}setBucketEncryption(I,R,q){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if((0,x.isFunction)(R)&&(q=R,R=null),!_.default.isEmpty(R)&&R.Rule.length>1)throw new z.InvalidArgumentError("Invalid Rule length. Only one rule is allowed.: "+R.Rule);if(q&&!(0,x.isFunction)(q))throw new TypeError('callback should be of type "function"');let Z=R;_.default.isEmpty(R)&&(Z={Rule:[{ApplyServerSideEncryptionByDefault:{SSEAlgorithm:"AES256"}}]});let te=new m.default.Builder({rootName:"ServerSideEncryptionConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(Z);const L={};L["Content-MD5"]=(0,x.toMd5)(te),this.makeRequest({method:"PUT",bucketName:I,query:"encryption",headers:L},te,[200],"",!1,q)}getBucketEncryption(I,R){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isFunction)(R))throw new z.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:I,query:"encryption"},"",[200],"",!0,(q,Z)=>{if(q)return R(q);let te=w.from("");(0,x.pipesetup)(Z,B.bucketEncryptionTransformer()).on("data",L=>{te=L}).on("error",R).on("end",()=>{R(null,te)})})}removeBucketEncryption(I,R){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isFunction)(R))throw new z.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"DELETE",bucketName:I,query:"encryption"},"",[204],"",!1,R)}setBucketReplication(I,R={},q){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isObject)(R))throw new z.InvalidArgumentError('replicationConfig should be of type "object"');if(_.default.isEmpty(R.role))throw new z.InvalidArgumentError("Role cannot be empty");if(R.role&&!(0,x.isString)(R.role))throw new z.InvalidArgumentError("Invalid value for role",R.role);if(_.default.isEmpty(R.rules))throw new z.InvalidArgumentError("Minimum one replication rule must be specified");if(!(0,x.isFunction)(q))throw new TypeError('callback should be of type "function"');const Z={},te={ReplicationConfiguration:{Role:R.role,Rule:R.rules}};let L=new m.default.Builder({renderOpts:{pretty:!1},headless:!0}).buildObject(te);Z["Content-MD5"]=(0,x.toMd5)(L),this.makeRequest({method:"PUT",bucketName:I,query:"replication",headers:Z},L,[200],"",!1,q)}getBucketReplication(I,R){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isFunction)(R))throw new z.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:I,query:"replication"},"",[200],"",!0,(q,Z)=>{if(q)return R(q);let te=w.from("");(0,x.pipesetup)(Z,B.replicationConfigTransformer()).on("data",L=>{te=L}).on("error",R).on("end",()=>{R(null,te)})})}removeBucketReplication(I,R){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);this.makeRequest({method:"DELETE",bucketName:I,query:"replication"},"",[200,204],"",!1,R)}getObjectLegalHold(I,R,q={},Z){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);if((0,x.isFunction)(q)&&(Z=q,q={}),!(0,x.isObject)(q))throw new TypeError('getOpts should be of type "Object"');if(Object.keys(q).length>0&&q.versionId&&!(0,x.isString)(q.versionId))throw new TypeError("versionId should be of type string.:",q.versionId);if(!(0,x.isFunction)(Z))throw new z.InvalidArgumentError('callback should be of type "function"');let te="legal-hold";q.versionId&&(te+=`&versionId=${q.versionId}`),this.makeRequest({method:"GET",bucketName:I,objectName:R,query:te},"",[200],"",!0,(L,X)=>{if(L)return Z(L);let U=w.from("");(0,x.pipesetup)(X,B.objectLegalHoldTransformer()).on("data",K=>{U=K}).on("error",Z).on("end",()=>{Z(null,U)})})}setObjectLegalHold(I,R,q={},Z){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError("Invalid bucket name: "+I);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);const te={status:x.LEGAL_HOLD_STATUS.ENABLED};if((0,x.isFunction)(q)&&(Z=q,q=te),!(0,x.isObject)(q))throw new TypeError('setOpts should be of type "Object"');if(![x.LEGAL_HOLD_STATUS.ENABLED,x.LEGAL_HOLD_STATUS.DISABLED].includes(q.status))throw new TypeError("Invalid status: "+q.status);if(q.versionId&&!q.versionId.length)throw new TypeError("versionId should be of type string.:"+q.versionId);if(!(0,x.isFunction)(Z))throw new z.InvalidArgumentError('callback should be of type "function"');_.default.isEmpty(q)&&(q={defaultOpts:te});let L="legal-hold";q.versionId&&(L+=`&versionId=${q.versionId}`);let X={Status:q.status};const U=new m.default.Builder({rootName:"LegalHold",renderOpts:{pretty:!1},headless:!0}).buildObject(X),K={};K["Content-MD5"]=(0,x.toMd5)(U),this.makeRequest({method:"PUT",bucketName:I,objectName:R,query:L,headers:K},U,[200],"",!1,Z)}setCredentialsProvider(I){return Dt(this,null,function*(){if(!(I instanceof e.default))throw new Error("Unable to get credentials. Expected instance of CredentialProvider");this.credentialsProvider=I,yield this.checkAndRefreshCreds()})}checkAndRefreshCreds(){return Dt(this,null,function*(){if(this.credentialsProvider)return yield this.fetchCredentials()})}fetchCredentials(){return Dt(this,null,function*(){if(!this.credentialsProvider)throw new Error("Unable to get credentials. Expected instance of BaseCredentialsProvider");{const I=yield this.credentialsProvider.getCredentials();if(!I)throw new Error("Unable to get credentials. Expected instance of BaseCredentialsProvider");this.accessKey=I.getAccessKey(),this.secretKey=I.getSecretKey(),this.sessionToken=I.getSessionToken()}})}abortMultipartUpload(I,R,q,Z){const te={method:"DELETE",bucketName:I,objectName:R,query:`uploadId=${q}`};this.makeRequest(te,"",[204],"",!1,Z)}uploadPartCopy(I,R){const{bucketName:q,objectName:Z,uploadID:te,partNumber:L,headers:X}=I,U={method:"PUT",bucketName:q,objectName:Z,query:`uploadId=${te}&partNumber=${L}`,headers:X};return this.makeRequest(U,"",[200],"",!0,(K,se)=>{let ne=w.from("");if(K)return R(K);(0,x.pipesetup)(se,B.uploadPartTransformer()).on("data",ce=>{ne=ce}).on("error",R).on("end",()=>{let ce={etag:(0,x.sanitizeETag)(ne.ETag),key:Z,part:L};R(null,ce)})})}composeObject(I={},R=[],q){const Z=this,te=R.length;if(!(0,x.isArray)(R))throw new z.InvalidArgumentError("sourceConfig should an array of CopySourceOptions ");if(!(I instanceof x.CopyDestinationOptions))throw new z.InvalidArgumentError("destConfig should of type CopyDestinationOptions ");if(te<1||te>x.PART_CONSTRAINTS.MAX_PARTS_COUNT)throw new z.InvalidArgumentError(`"There must be as least one and up to ${x.PART_CONSTRAINTS.MAX_PARTS_COUNT} source objects.`);if(!(0,x.isFunction)(q))throw new TypeError('callback should be of type "function"');for(let se=0;se<te;se++)if(!R[se].validate())return!1;if(!I.validate())return!1;const L=[];let X=0,U=0;const K=R.map(se=>Z.statObject(se.Bucket,se.Object,(ne=>{let ce={};return _.default.isEmpty(ne.VersionID)||(ce={versionId:ne.VersionID}),ce})(se)));return Promise.all(K).then(se=>{const ne=se.map((ve,je)=>{const we=R[je];let Ae=ve.size;if(we.MatchRange){const G=we.Start,Y=we.End;if(Y>=Ae||G<0)throw new z.InvalidArgumentError(`CopySrcOptions ${je} has invalid segment-to-copy [${G}, ${Y}] (size is ${Ae})`);Ae=Y-G+1}if(Ae<x.PART_CONSTRAINTS.ABS_MIN_PART_SIZE&&je<te-1)throw new z.InvalidArgumentError(`CopySrcOptions ${je} is too small (${Ae}) and it is not the last part.`);if(X+=Ae,X>x.PART_CONSTRAINTS.MAX_MULTIPART_PUT_OBJECT_SIZE)throw new z.InvalidArgumentError(`Cannot compose an object of size ${X} (> 5TiB)`);if(L[je]=Ae,U+=(0,x.partsRequired)(Ae),U>x.PART_CONSTRAINTS.MAX_PARTS_COUNT)throw new z.InvalidArgumentError(`Your proposed compose object requires more than ${x.PART_CONSTRAINTS.MAX_PARTS_COUNT} parts`);return ve});if(U===1&&X<=x.PART_CONSTRAINTS.MAX_PART_SIZE||X===0)return this.copyObject(R[0],I,q);for(let ve=0;ve<te;ve++)R[ve].MatchETag=ne[ve].etag;const ce=ne.map((ve,je)=>(0,x.calculateEvenSplits)(L[je],R[je])),ke=ve=>{const je=function(we){const Ae=[];return ce.forEach((G,Y)=>{const{startIndex:F,endIndex:$,objInfo:D}=G;let Q=Y+1;const he=Array.from(F),le=R[Y].getHeaders();he.forEach((pe,it)=>{let _e=$[it];const Te=`${D.Bucket}/${D.Object}`;le["x-amz-copy-source"]=`${Te}`,le["x-amz-copy-source-range"]=`bytes=${pe}-${_e}`;const ft={bucketName:I.Bucket,objectName:I.Object,uploadID:we,partNumber:Q,headers:le,sourceObj:Te};Ae.push(ft)})}),Ae}(ve);h.default.map(je,Z.uploadPartCopy.bind(Z),(we,Ae)=>{if(we)return this.abortMultipartUpload(I.Bucket,I.Object,ve,q);const G=Ae.map(Y=>({etag:Y.etag,part:Y.part}));return Z.completeMultipartUpload(I.Bucket,I.Object,ve,G,q)})},me=I.getHeaders();Z.initiateNewMultipartUpload(I.Bucket,I.Object,me,(ve,je)=>{if(ve)return q(ve,null);ke(je)})}).catch(se=>{q(se,null)})}selectObjectContent(I,R,q={},Z){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError(`Invalid bucket name: ${I}`);if(!(0,x.isValidObjectName)(R))throw new z.InvalidObjectNameError(`Invalid object name: ${R}`);if(_.default.isEmpty(q))throw new TypeError("valid select configuration is required");if(!(0,x.isString)(q.expression))throw new TypeError('sqlExpression should be of type "string"');if(_.default.isEmpty(q.inputSerialization))throw new TypeError("inputSerialization is required");if(!(0,x.isObject)(q.inputSerialization))throw new TypeError('inputSerialization should be of type "object"');if(_.default.isEmpty(q.outputSerialization))throw new TypeError("outputSerialization is required");if(!(0,x.isObject)(q.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 te=[{Expression:q.expression},{ExpressionType:q.expressionType||"SQL"},{InputSerialization:[q.inputSerialization]},{OutputSerialization:[q.outputSerialization]}];q.requestProgress&&te.push({RequestProgress:q.requestProgress}),q.scanRange&&te.push({ScanRange:q.scanRange});const L=new m.default.Builder({rootName:"SelectObjectContentRequest",renderOpts:{pretty:!1},headless:!0}).buildObject(te);this.makeRequest({method:"POST",bucketName:I,objectName:R,query:"select&select-type=2"},L,[200],"",!0,(X,U)=>{if(X)return Z(X);let K;(0,x.pipesetup)(U,B.selectObjectContentTransformer()).on("data",se=>{K=(0,r.parseSelectObjectContentResponse)(se)}).on("error",Z).on("end",()=>{Z(null,K)})})}get extensions(){return this.clientExtensions||(this.clientExtensions=new ae.default(this)),this.clientExtensions}}S.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(I){if(!(I instanceof Date))throw new TypeError("date must be of type Date");this.modified=I.toUTCString()}setUnmodified(I){if(!(I instanceof Date))throw new TypeError("date must be of type Date");this.unmodified=I.toUTCString()}setMatchETag(I){this.matchETag=I}setMatchETagExcept(I){this.matchETagExcept=I}}S.CopyConditions=T;class C{constructor(){this.policy={conditions:[]},this.formData={}}setExpires(I){if(!I)throw new z.InvalidDateError("Invalid date : cannot be null");this.policy.expiration=I.toISOString()}setKey(I){if(!(0,x.isValidObjectName)(I))throw new z.InvalidObjectNameError(`Invalid object name : ${I}`);this.policy.conditions.push(["eq","$key",I]),this.formData.key=I}setKeyStartsWith(I){if(!(0,x.isValidPrefix)(I))throw new z.InvalidPrefixError(`Invalid prefix : ${I}`);this.policy.conditions.push(["starts-with","$key",I]),this.formData.key=I}setBucket(I){if(!(0,x.isValidBucketName)(I))throw new z.InvalidBucketNameError(`Invalid bucket name : ${I}`);this.policy.conditions.push(["eq","$bucket",I]),this.formData.bucket=I}setContentType(I){if(!I)throw new Error("content-type cannot be null");this.policy.conditions.push(["eq","$Content-Type",I]),this.formData["Content-Type"]=I}setContentTypeStartsWith(I){if(!I)throw new Error("content-type cannot be null");this.policy.conditions.push(["starts-with","$Content-Type",I]),this.formData["Content-Type"]=I}setContentDisposition(I){if(!I)throw new Error("content-disposition cannot be null");this.policy.conditions.push(["eq","$Content-Disposition",I]),this.formData["Content-Disposition"]=I}setContentLengthRange(I,R){if(I>R)throw new Error("min cannot be more than max");if(I<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",I,R])}setUserMetaData(I){if(!(0,x.isObject)(I))throw new TypeError('metadata should be of type "object"');Object.entries(I).forEach(([R,q])=>{const Z=`x-amz-meta-${R}`;this.policy.conditions.push(["eq",`$${Z}`,q]),this.formData[Z]=q})}}S.PostPolicy=C},3606:(W,S,y)=>{var k=y(4155);Object.defineProperty(S,"__esModule",{value:!0}),S.buildARN=S.TopicConfig=S.QueueConfig=S.ObjectRemovedDeleteMarkerCreated=S.ObjectRemovedDelete=S.ObjectRemovedAll=S.ObjectReducedRedundancyLostObject=S.ObjectCreatedPut=S.ObjectCreatedPost=S.ObjectCreatedCopy=S.ObjectCreatedCompleteMultipartUpload=S.ObjectCreatedAll=S.NotificationPoller=S.NotificationConfig=S.CloudFunctionConfig=void 0;var w=y(7187),g=function(h,u){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var b=s(u);if(b&&b.has(h))return b.get(h);var v={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in h)if(A!=="default"&&Object.prototype.hasOwnProperty.call(h,A)){var x=_?Object.getOwnPropertyDescriptor(h,A):null;x&&(x.get||x.set)?Object.defineProperty(v,A,x):v[A]=h[A]}return v.default=h,b&&b.set(h,v),v}(y(6607)),M=y(1627);function s(h){if(typeof WeakMap!="function")return null;var u=new WeakMap,b=new WeakMap;return(s=function(v){return v?b:u})(h)}S.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}}S.TopicConfig=c;class l extends p{constructor(u){super(),this.Queue=u}}S.QueueConfig=l;class f extends p{constructor(u){super(),this.CloudFunction=u}}S.CloudFunctionConfig=f,S.buildARN=(h,u,b,v,_)=>"arn:"+h+":"+u+":"+b+":"+v+":"+_,S.ObjectCreatedAll="s3:ObjectCreated:*",S.ObjectCreatedPut="s3:ObjectCreated:Put",S.ObjectCreatedPost="s3:ObjectCreated:Post",S.ObjectCreatedCopy="s3:ObjectCreated:Copy",S.ObjectCreatedCompleteMultipartUpload="s3:ObjectCreated:CompleteMultipartUpload",S.ObjectRemovedAll="s3:ObjectRemoved:*",S.ObjectRemovedDelete="s3:ObjectRemoved:Delete",S.ObjectRemovedDeleteMarkerCreated="s3:ObjectRemoved:DeleteMarkerCreated",S.ObjectReducedRedundancyLostObject="s3:ReducedRedundancyLostObject";class m extends w.EventEmitter{constructor(u,b,v,_,A){super(),this.client=u,this.bucketName=b,this.prefix=v,this.suffix=_,this.events=A,this.ending=!1}start(){this.ending=!1,k.nextTick(()=>{this.checkForChanges()})}stop(){this.ending=!0}checkForChanges(){if(this.ending)return;var u=[];if(this.prefix){var b=(0,M.uriEscape)(this.prefix);u.push(`prefix=${b}`)}if(this.suffix){var v=(0,M.uriEscape)(this.suffix);u.push(`suffix=${v}`)}this.events&&this.events.forEach(x=>u.push("events="+(0,M.uriEscape)(x))),u.sort();var _="";u.length>0&&(_=`${u.join("&")}`);const A=this.client.region||M.DEFAULT_REGION;this.client.makeRequest({method:"GET",bucketName:this.bucketName,query:_},"",[200],A,!0,(x,j)=>{if(x)return this.emit("error",x);let P=g.getNotificationTransformer();(0,M.pipesetup)(j,P).on("data",B=>{let z=B.Records;z||(z=[]),z.forEach(ee=>{this.emit("notification",ee)}),this.ending&&j.destroy()}).on("error",B=>this.emit("error",B)).on("end",()=>{k.nextTick(()=>{this.checkForChanges()})})})}}S.NotificationPoller=m},3861:(W,S,y)=>{var k=y(4155);Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0;var w,g=y(2830),M=(w=y(5835))&&w.__esModule?w:{default:w},s=function(f,m){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var h=c(m);if(h&&h.has(f))return h.get(f);var u={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in f)if(v!=="default"&&Object.prototype.hasOwnProperty.call(f,v)){var _=b?Object.getOwnPropertyDescriptor(f,v):null;_&&(_.get||_.set)?Object.defineProperty(u,v,_):u[v]=f[v]}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 m=new WeakMap,h=new WeakMap;return(c=function(u){return u?h:m})(f)}class l extends g.Transform{constructor(m,h,u,b,v,_){super(),this.emptyStream=!0,this.client=m,this.bucketName=h,this.objectName=u,this.partSize=b,this.metaData=v,this.callback=_,this.partNumber=1,this.oldParts=null,this.etags=[],this.id=null,this.on("error",A=>{_(A)})}_transform(m,h,u){this.emptyStream=!1;let b={"Content-Length":m.length},v="";if(this.client.enableSHA256||(v=M.default.createHash("md5").update(m).digest(),b["Content-MD5"]=v.toString("base64")),this.partNumber==1&&m.length<this.partSize){let x={method:"PUT",headers:Object.assign({},this.metaData,b),query:"",bucketName:this.bucketName,objectName:this.objectName};return void this.client.makeRequest(x,m,[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",()=>{}),k.nextTick(()=>{this.callback(null,B)}),u()})}if(this.id===null)return this.once("ready",()=>{this._transform(m,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(z,ee){return z[ee.part]||(z[ee.part]=ee),z},{}),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 _=this.partNumber++;if(this.oldParts){let x=this.oldParts[_];if(v||(v=M.default.createHash("md5").update(m).digest()),x&&v.toString("hex")===x.etag)return this.etags.push({part:_,etag:x.etag}),void u()}let A={method:"PUT",query:s.stringify({partNumber:_,uploadId:this.id}),headers:b,bucketName:this.bucketName,objectName:this.objectName};this.client.makeRequest(A,m,[200],"",!0,(x,j)=>{if(x)return u(x);let P=j.headers.etag;P&&(P=P.replace(/^"/,"").replace(/"$/,"")),this.etags.push({part:_,etag:P}),j.on("data",()=>{}),u()})}_flush(m){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,b)=>{if(u)return m(u);let v={etag:(0,p.sanitizeETag)(b.headers.etag),versionId:(0,p.getVersionId)(b.headers)};b.on("data",()=>{}),k.nextTick(()=>{this.callback(null,v)}),m()})}else this.id!==null&&this.client.completeMultipartUpload(this.bucketName,this.objectName,this.id,this.etags,(h,u)=>{if(h)return m(h);k.nextTick(()=>{this.callback(null,u)}),m()})}}S.default=l},1670:(W,S,y)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.getS3Endpoint=function(g){if(!(0,k.isString)(g))throw new TypeError(`Invalid region: ${g}`);var M=w[g];return M||"s3.amazonaws.com"};var k=y(1627);let w={"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:(W,S,y)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.postPresignSignatureV4=function(v,_,A,x){if(!(0,g.isString)(v))throw new TypeError('region should be of type "string"');if(!(0,g.isObject)(_))throw new TypeError('date should be of type "object"');if(!(0,g.isString)(A))throw new TypeError('secretKey should be of type "string"');if(!(0,g.isString)(x))throw new TypeError('policyBase64 should be of type "string"');const j=h(_,v,A);return k.default.createHmac("sha256",j).update(x).digest("hex").toLowerCase()},S.presignSignatureV4=function(v,_,A,x,j,P,B){if(!(0,g.isObject)(v))throw new TypeError('request should be of type "object"');if(!(0,g.isString)(_))throw new TypeError('accessKey should be of type "string"');if(!(0,g.isString)(A))throw new TypeError('secretKey should be of type "string"');if(!(0,g.isString)(j))throw new TypeError('region should be of type "string"');if(!_)throw new M.AccessKeyRequiredError("accessKey is required for presigning");if(!A)throw new M.SecretKeyRequiredError("secretKey is required for presigning");if(!(0,g.isNumber)(B))throw new TypeError('expires should be of type "number"');if(B<1)throw new M.ExpiresParamError("expires param cannot be less than 1 seconds");if(B>604800)throw new M.ExpiresParamError("expires param cannot be greater than 7 days");const z=(0,g.makeDateLong)(P),ee=m(v.headers),J=f(_,j,P),ae=[];ae.push(`X-Amz-Algorithm=${c}`),ae.push(`X-Amz-Credential=${(0,g.uriEscape)(J)}`),ae.push(`X-Amz-Date=${z}`),ae.push(`X-Amz-Expires=${B}`),ae.push(`X-Amz-SignedHeaders=${(0,g.uriEscape)(ee.join(";").toLowerCase())}`),x&&ae.push(`X-Amz-Security-Token=${(0,g.uriEscape)(x)}`);const e=v.path.split("?")[0];let r=v.path.split("?")[1];r=r?r+"&"+ae.join("&"):ae.join("&");const i=e+"?"+r,n=u(l(v.method,i,v.headers,ee,"UNSIGNED-PAYLOAD"),P,j),t=h(P,j,A),o=k.default.createHmac("sha256",t).update(n).digest("hex").toLowerCase();return v.protocol+"//"+v.headers.host+i+`&X-Amz-Signature=${o}`},S.signV4=b,S.signV4ByServiceName=function(v,_,A,x,j,P="s3"){return b(v,_,A,x,j,P)};var k=p(y(5835)),w=p(y(6486)),g=y(1627),M=function(v,_){if(v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var A=s(_);if(A&&A.has(v))return A.get(v);var x={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in v)if(P!=="default"&&Object.prototype.hasOwnProperty.call(v,P)){var B=j?Object.getOwnPropertyDescriptor(v,P):null;B&&(B.get||B.set)?Object.defineProperty(x,P,B):x[P]=v[P]}return x.default=v,A&&A.set(v,x),x}(y(1271));function s(v){if(typeof WeakMap!="function")return null;var _=new WeakMap,A=new WeakMap;return(s=function(x){return x?A:_})(v)}function p(v){return v&&v.__esModule?v:{default:v}}const c="AWS4-HMAC-SHA256";function l(v,_,A,x,j){if(!(0,g.isString)(v))throw new TypeError('method should be of type "string"');if(!(0,g.isString)(_))throw new TypeError('path should be of type "string"');if(!(0,g.isObject)(A))throw new TypeError('headers should be of type "object"');if(!(0,g.isArray)(x))throw new TypeError('signedHeaders should be of type "array"');if(!(0,g.isString)(j))throw new TypeError('hashedPayload should be of type "string"');const P=x.reduce((J,ae)=>{const e=`${A[ae]}`.replace(/ +/g," ");return J.push(`${ae.toLowerCase()}:${e}`),J},[]),B=_.split("?")[0];let z=_.split("?")[1];z||(z=""),z&&(z=z.split("&").sort().map(J=>J.indexOf("=")===-1?J+"=":J).join("&"));const ee=[];return ee.push(v.toUpperCase()),ee.push(B),ee.push(z),ee.push(P.join(`
|
|
87
|
+
`)+`
|
|
88
|
+
`),ee.push(x.join(";").toLowerCase()),ee.push(j),ee.join(`
|
|
89
|
+
`)}function f(v,_,A,x="s3"){if(!(0,g.isString)(v))throw new TypeError('accessKey should be of type "string"');if(!(0,g.isString)(_))throw new TypeError('region should be of type "string"');if(!(0,g.isObject)(A))throw new TypeError('requestDate should be of type "object"');return`${v}/${(0,g.getScope)(_,A,x)}`}function m(v){if(!(0,g.isObject)(v))throw new TypeError('request should be of type "object"');const _=["authorization","content-length","content-type","user-agent"];return w.default.map(v,(A,x)=>x).filter(A=>_.indexOf(A)===-1).sort()}function h(v,_,A,x="s3"){if(!(0,g.isObject)(v))throw new TypeError('date should be of type "object"');if(!(0,g.isString)(_))throw new TypeError('region should be of type "string"');if(!(0,g.isString)(A))throw new TypeError('secretKey should be of type "string"');const j=(0,g.makeDateShort)(v);let P=k.default.createHmac("sha256","AWS4"+A).update(j).digest(),B=k.default.createHmac("sha256",P).update(_).digest(),z=k.default.createHmac("sha256",B).update(x).digest();return k.default.createHmac("sha256",z).update("aws4_request").digest()}function u(v,_,A,x="s3"){if(!(0,g.isString)(v))throw new TypeError('canonicalRequest should be of type "string"');if(!(0,g.isObject)(_))throw new TypeError('requestDate should be of type "object"');if(!(0,g.isString)(A))throw new TypeError('region should be of type "string"');const j=k.default.createHash("sha256").update(v).digest("hex"),P=(0,g.getScope)(A,_,x),B=[];return B.push(c),B.push((0,g.makeDateLong)(_)),B.push(P),B.push(j),B.join(`
|
|
90
|
+
`)}function b(v,_,A,x,j,P="s3"){if(!(0,g.isObject)(v))throw new TypeError('request should be of type "object"');if(!(0,g.isString)(_))throw new TypeError('accessKey should be of type "string"');if(!(0,g.isString)(A))throw new TypeError('secretKey should be of type "string"');if(!(0,g.isString)(x))throw new TypeError('region should be of type "string"');if(!_)throw new M.AccessKeyRequiredError("accessKey is required for signing");if(!A)throw new M.SecretKeyRequiredError("secretKey is required for signing");const B=v.headers["x-amz-content-sha256"],z=m(v.headers),ee=P||"s3",J=u(l(v.method,v.path,v.headers,z,B),j,x,ee),ae=h(j,x,A,ee),e=f(_,x,j,ee),r=k.default.createHmac("sha256",ae).update(J).digest("hex").toLowerCase();return`${c} Credential=${e}, SignedHeaders=${z.join(";").toLowerCase()}, Signature=${r}`}},6607:(W,S,y)=>{var k=y(8764).Buffer;Object.defineProperty(S,"__esModule",{value:!0}),S.bucketEncryptionTransformer=function(){return u(w.parseBucketEncryptionConfig)},S.bucketVersioningTransformer=function(){return u(w.parseBucketVersioningConfig)},S.getBucketNotificationTransformer=function(){return u(w.parseBucketNotification)},S.getBucketRegionTransformer=function(){return u(w.parseBucketRegion)},S.getCompleteMultipartTransformer=function(){return u(w.parseCompleteMultipart)},S.getConcater=u,S.getCopyObjectTransformer=function(){return u(w.parseCopyObject)},S.getErrorTransformer=function(b){var v,_,A=b.statusCode;A===301?(v="MovedPermanently",_="Moved Permanently"):A===307?(v="TemporaryRedirect",_="Are you using the correct endpoint URL?"):A===403?(v="AccessDenied",_="Valid and authorized credentials required"):A===404?(v="NotFound",_="Not Found"):A===405||A===501?(v="MethodNotAllowed",_="Method Not Allowed"):(v="UnknownError",_=`${A}`);var x={};return x.amzRequestid=b.headersSent?b.getHeader("x-amz-request-id"):null,x.amzId2=b.headersSent?b.getHeader("x-amz-id-2"):null,x.amzBucketRegion=b.headersSent?b.getHeader("x-amz-bucket-region"):null,u(j=>{let P,B=()=>{var z=new l.S3Error(_);return z.code=v,g.each(x,(ee,J)=>{z[J]=ee}),z};if(!j)return B();try{P=w.parseError(j,x)}catch(z){return B()}return P},!0)},S.getHashSummer=function(b){var v=s.default.createHash("md5"),_=s.default.createHash("sha256");return M.default.obj(function(A,x,j){b?_.update(A):v.update(A),j()},function(A){var x="",j="";b?j=_.digest("hex"):x=v.digest("base64");var P={md5sum:x,sha256sum:j};this.push(P),this.push(null),A()})},S.getInitiateMultipartTransformer=function(){return u(w.parseInitiateMultipart)},S.getListBucketTransformer=function(){return u(w.parseListBucket)},S.getListMultipartTransformer=function(){return u(w.parseListMultipart)},S.getListObjectsTransformer=function(){return u(w.parseListObjects)},S.getListObjectsV2Transformer=function(){return u(w.parseListObjectsV2)},S.getListObjectsV2WithMetadataTransformer=function(){return u(w.parseListObjectsV2WithMetadata)},S.getListPartsTransformer=function(){return u(w.parseListParts)},S.getNotificationTransformer=function(){return new p.default},S.getTagsTransformer=function(){return u(w.parseTagging)},S.lifecycleTransformer=function(){return u(w.parseLifecycleConfig)},S.objectLegalHoldTransformer=function(){return u(w.parseObjectLegalHoldConfig)},S.objectLockTransformer=function(){return u(w.parseObjectLockConfig)},S.objectRetentionTransformer=function(){return u(w.parseObjectRetentionConfig)},S.replicationConfigTransformer=function(){return u(w.parseReplicationConfig)},S.selectObjectContentTransformer=function(){return u()},S.uploadPartTransformer=function(){return u(w.uploadPartParser)};var w=h(y(2262)),g=h(y(6486)),M=f(y(4650)),s=f(y(5835)),p=f(y(6650)),c=y(1627),l=h(y(1271));function f(b){return b&&b.__esModule?b:{default:b}}function m(b){if(typeof WeakMap!="function")return null;var v=new WeakMap,_=new WeakMap;return(m=function(A){return A?_:v})(b)}function h(b,v){if(!v&&b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var _=m(v);if(_&&_.has(b))return _.get(b);var A={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in b)if(j!=="default"&&Object.prototype.hasOwnProperty.call(b,j)){var P=x?Object.getOwnPropertyDescriptor(b,j):null;P&&(P.get||P.set)?Object.defineProperty(A,j,P):A[j]=b[j]}return A.default=b,_&&_.set(b,A),A}function u(b,v){var _=!1,A=[];if(b&&!(0,c.isFunction)(b))throw new TypeError('parser should be of type "function"');return b&&(_=!0),(0,M.default)({objectMode:_},function(x,j,P){A.push(x),P()},function(x){if(v)return x(b(k.concat(A).toString())),void this.push(null);A.length&&(b?this.push(b(k.concat(A).toString())):this.push(k.concat(A))),x()})}},2262:(W,S,y)=>{var k=y(8764).Buffer,w=y(5108);Object.defineProperty(S,"__esModule",{value:!0}),S.parseBucketEncryptionConfig=function(h){return(0,p.parseXml)(h)},S.parseBucketNotification=function(h){var u={TopicConfiguration:[],QueueConfiguration:[],CloudFunctionConfiguration:[]},b=function(A){var x=[];return A&&(0,p.toArray)(A).forEach(j=>{x.push(j)}),x},v=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},_=(0,p.parseXml)(h);return(_=_.NotificationConfiguration).TopicConfiguration&&(0,p.toArray)(_.TopicConfiguration).forEach(A=>{var x=(0,p.toArray)(A.Id)[0],j=(0,p.toArray)(A.Topic)[0],P=b(A.Event),B=v(A.Filter);u.TopicConfiguration.push({Id:x,Topic:j,Event:P,Filter:B})}),_.QueueConfiguration&&(0,p.toArray)(_.QueueConfiguration).forEach(A=>{var x=(0,p.toArray)(A.Id)[0],j=(0,p.toArray)(A.Queue)[0],P=b(A.Event),B=v(A.Filter);u.QueueConfiguration.push({Id:x,Queue:j,Event:P,Filter:B})}),_.CloudFunctionConfiguration&&(0,p.toArray)(_.CloudFunctionConfiguration).forEach(A=>{var x=(0,p.toArray)(A.Id)[0],j=(0,p.toArray)(A.CloudFunction)[0],P=b(A.Event),B=v(A.Filter);u.CloudFunctionConfiguration.push({Id:x,CloudFunction:j,Event:P,Filter:B})}),u},S.parseBucketRegion=function(h){return(0,p.parseXml)(h).LocationConstraint},S.parseBucketVersioningConfig=function(h){return(0,p.parseXml)(h).VersioningConfiguration},S.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},S.parseCopyObject=function(h){var u={etag:"",lastModified:""},b=(0,p.parseXml)(h);if(!b.CopyObjectResult)throw new s.InvalidXMLError('Missing tag: "CopyObjectResult"');return(b=b.CopyObjectResult).ETag&&(u.etag=b.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"")),b.LastModified&&(u.lastModified=new Date(b.LastModified)),u},S.parseError=function(h,u){var b={},v=g.default.parse(h);v.Error&&(b=v.Error);var _=new s.S3Error;return M.default.each(b,(A,x)=>{_[x.toLowerCase()]=A}),M.default.each(u,(A,x)=>{_[x]=A}),_},S.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"')},S.parseLifecycleConfig=function(h){return(0,p.parseXml)(h).LifecycleConfiguration},S.parseListBucket=function(h){var u=[],b=(0,p.parseXml)(h);if(!b.ListAllMyBucketsResult)throw new s.InvalidXMLError('Missing tag: "ListAllMyBucketsResult"');return(b=b.ListAllMyBucketsResult).Buckets&&b.Buckets.Bucket&&(0,p.toArray)(b.Buckets.Bucket).forEach(v=>{var _=v.Name,A=new Date(v.CreationDate);u.push({name:_,creationDate:A})}),u},S.parseListMultipart=function(h){var u={uploads:[],prefixes:[],isTruncated:!1},b=(0,p.parseXml)(h);if(!b.ListMultipartUploadsResult)throw new s.InvalidXMLError('Missing tag: "ListMultipartUploadsResult"');return(b=b.ListMultipartUploadsResult).IsTruncated&&(u.isTruncated=b.IsTruncated),b.NextKeyMarker&&(u.nextKeyMarker=b.NextKeyMarker),b.NextUploadIdMarker&&(u.nextUploadIdMarker=b.nextUploadIdMarker),b.CommonPrefixes&&(0,p.toArray)(b.CommonPrefixes).forEach(v=>{u.prefixes.push({prefix:(0,p.sanitizeObjectKey)((0,p.toArray)(v.Prefix)[0])})}),b.Upload&&(0,p.toArray)(b.Upload).forEach(v=>{var _=v.Key,A=v.UploadId,x={id:v.Initiator.ID,displayName:v.Initiator.DisplayName},j={id:v.Owner.ID,displayName:v.Owner.DisplayName},P=v.StorageClass,B=new Date(v.Initiated);u.uploads.push({key:_,uploadId:A,initiator:x,owner:j,storageClass:P,initiated:B})}),u},S.parseListObjects=function(h){var u={objects:[],isTruncated:!1};let b,v,_=!1;const A=(0,p.parseXml)(h),x=B=>{B&&(0,p.toArray)(B).forEach(z=>{u.objects.push({prefix:(0,p.sanitizeObjectKey)((0,p.toArray)(z.Prefix)[0]),size:0})})},j=A.ListBucketResult,P=A.ListVersionsResult;return j&&(j.IsTruncated&&(_=j.IsTruncated),j.Contents&&(0,p.toArray)(j.Contents).forEach(B=>{const z=(0,p.sanitizeObjectKey)((0,p.toArray)(B.Key)[0]),ee=new Date((0,p.toArray)(B.LastModified)[0]),J=(0,p.sanitizeETag)((0,p.toArray)(B.ETag)[0]),ae=B.Size;u.objects.push({name:z,lastModified:ee,etag:J,size:ae})}),j.NextMarker&&(b=j.NextMarker),x(j.CommonPrefixes)),P&&(P.IsTruncated&&(_=P.IsTruncated),P.Version&&(0,p.toArray)(P.Version).forEach(B=>{u.objects.push(m(B))}),P.DeleteMarker&&(0,p.toArray)(P.DeleteMarker).forEach(B=>{u.objects.push(m(B,{IsDeleteMarker:!0}))}),P.NextKeyMarker&&(v=P.NextKeyMarker),P.NextVersionIdMarker&&(u.versionIdMarker=P.NextVersionIdMarker),x(P.CommonPrefixes)),u.isTruncated=_,_&&(u.nextMarker=v||b),u},S.parseListObjectsV2=function(h){var u={objects:[],isTruncated:!1},b=(0,p.parseXml)(h);if(!b.ListBucketResult)throw new s.InvalidXMLError('Missing tag: "ListBucketResult"');return(b=b.ListBucketResult).IsTruncated&&(u.isTruncated=b.IsTruncated),b.NextContinuationToken&&(u.nextContinuationToken=b.NextContinuationToken),b.Contents&&(0,p.toArray)(b.Contents).forEach(v=>{var _=(0,p.sanitizeObjectKey)((0,p.toArray)(v.Key)[0]),A=new Date(v.LastModified),x=(0,p.sanitizeETag)(v.ETag),j=v.Size;u.objects.push({name:_,lastModified:A,etag:x,size:j})}),b.CommonPrefixes&&(0,p.toArray)(b.CommonPrefixes).forEach(v=>{u.objects.push({prefix:(0,p.sanitizeObjectKey)((0,p.toArray)(v.Prefix)[0]),size:0})}),u},S.parseListObjectsV2WithMetadata=function(h){var u={objects:[],isTruncated:!1},b=(0,p.parseXml)(h);if(!b.ListBucketResult)throw new s.InvalidXMLError('Missing tag: "ListBucketResult"');return(b=b.ListBucketResult).IsTruncated&&(u.isTruncated=b.IsTruncated),b.NextContinuationToken&&(u.nextContinuationToken=b.NextContinuationToken),b.Contents&&(0,p.toArray)(b.Contents).forEach(v=>{var _,A=(0,p.sanitizeObjectKey)(v.Key),x=new Date(v.LastModified),j=(0,p.sanitizeETag)(v.ETag),P=v.Size;_=v.UserMetadata!=null?(0,p.toArray)(v.UserMetadata)[0]:null,u.objects.push({name:A,lastModified:x,etag:j,size:P,metadata:_})}),b.CommonPrefixes&&(0,p.toArray)(b.CommonPrefixes).forEach(v=>{u.objects.push({prefix:(0,p.sanitizeObjectKey)((0,p.toArray)(v.Prefix)[0]),size:0})}),u},S.parseListParts=function(h){var u=(0,p.parseXml)(h),b={isTruncated:!1,parts:[],marker:void 0};if(!u.ListPartsResult)throw new s.InvalidXMLError('Missing tag: "ListPartsResult"');return(u=u.ListPartsResult).IsTruncated&&(b.isTruncated=u.IsTruncated),u.NextPartNumberMarker&&(b.marker=+(0,p.toArray)(u.NextPartNumberMarker)[0]),u.Part&&(0,p.toArray)(u.Part).forEach(v=>{var _=+(0,p.toArray)(v.PartNumber)[0],A=new Date(v.LastModified),x=v.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"").replace(/^"/g,"").replace(/"$/g,"");b.parts.push({part:_,lastModified:A,etag:x})}),b},S.parseObjectLegalHoldConfig=function(h){return(0,p.parseXml)(h).LegalHold},S.parseObjectLockConfig=function(h){const u=(0,p.parseXml)(h);let b={};if(u.ObjectLockConfiguration){let v;if(b={objectLockEnabled:u.ObjectLockConfiguration.ObjectLockEnabled},u.ObjectLockConfiguration&&u.ObjectLockConfiguration.Rule&&u.ObjectLockConfiguration.Rule.DefaultRetention&&(v=u.ObjectLockConfiguration.Rule.DefaultRetention||{},b.mode=v.Mode),v){const _=v.Years;_?(b.validity=_,b.unit=p.RETENTION_VALIDITY_UNITS.YEARS):(b.validity=v.Days,b.unit=p.RETENTION_VALIDITY_UNITS.DAYS)}return b}},S.parseObjectRetentionConfig=function(h){const u=(0,p.parseXml)(h).Retention;return{mode:u.Mode,retainUntilDate:u.RetainUntilDate}},S.parseReplicationConfig=function(h){const u=(0,p.parseXml)(h);return{ReplicationConfiguration:{role:u.ReplicationConfiguration.Role,rules:(0,p.toArray)(u.ReplicationConfiguration.Rule)}}},S.parseSelectObjectContentResponse=function(h){function u(A){const x=k.from(A.read(1)).readUInt8(),j=(k.from(A.read(x)).toString()||"").split(":");return j.length>=1?j[1]:""}function b(A){const x=k.from(A.read(2)).readUInt16BE();return k.from(A.read(x)).toString()}const v=new p.SelectResults({}),_=(0,p.readableStream)(h);for(;_._readableState.length;){let A;const x=k.from(_.read(4));A=f(x);const j=k.from(_.read(4));A=f(j,A);const P=A.readInt32BE(),B=k.from(_.read(4));A=f(B,A);const z=x.readInt32BE(),ee=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 ae={};if(ee>0){const n=k.from(_.read(ee));A=f(n,A);const t=(0,p.readableStream)(n);for(;t._readableState.length;){let o=u(t);t.read(1),ae[o]=b(t)}}let e;const r=z-ee-16;if(r>0){const n=k.from(_.read(r));A=f(n,A);const t=k.from(_.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=ae["message-type"];switch(i){case"error":{const n=ae["error-code"]+':"'+ae["error-message"]+'"';throw new Error(n)}case"event":{const n=ae["content-type"];switch(ae["event-type"]){case"End":return v.setResponse(h),v;case"Records":{const t=e.read(r);v.setRecords(t);break}case"Progress":switch(n){case"text/xml":{const t=e.read(r);v.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);v.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}.`;w.warn(t)}}}}}},S.parseTagging=function(h){const u=(0,p.parseXml)(h);let b=[];if(u.Tagging&&u.Tagging.TagSet&&u.Tagging.TagSet.Tag){const v=u.Tagging.TagSet.Tag;(0,p.isObject)(v)?b.push(v):b=v}return b},S.uploadPartParser=function(h){return(0,p.parseXml)(h).CopyPartResult};var g=l(y(6965)),M=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 b=c(u);if(b&&b.has(h))return b.get(h);var v={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in h)if(A!=="default"&&Object.prototype.hasOwnProperty.call(h,A)){var x=_?Object.getOwnPropertyDescriptor(h,A):null;x&&(x.get||x.set)?Object.defineProperty(v,A,x):v[A]=h[A]}return v.default=h,b&&b.set(h,v),v}(y(1271)),p=y(1627);function c(h){if(typeof WeakMap!="function")return null;var u=new WeakMap,b=new WeakMap;return(c=function(v){return v?b:u})(h)}function l(h){return h&&h.__esModule?h:{default:h}}var f=y(2779);const m=(h,u={})=>{let{Key:b,LastModified:v,ETag:_,Size:A,VersionId:x,IsLatest:j}=h;return(0,p.isObject)(u)||(u={}),{name:(0,p.sanitizeObjectKey)((0,p.toArray)(b)[0]),lastModified:new Date((0,p.toArray)(v)[0]),etag:(0,p.sanitizeETag)((0,p.toArray)(_)[0]),size:A,versionId:x,isLatest:j,isDeleteMarker:!!u.IsDeleteMarker&&u.IsDeleteMarker}}},1890:(W,S,y)=>{var k=y(6470),w=y(3731),g=parseInt("0777",8);function M(s,p,c,l){typeof p=="function"?(c=p,p={}):p&&typeof p=="object"||(p={mode:p});var f=p.mode,m=p.fs||w;f===void 0&&(f=g),l||(l=null);var h=c||function(){};s=k.resolve(s),m.mkdir(s,f,function(u){if(!u)return h(null,l=l||s);if(u.code==="ENOENT"){if(k.dirname(s)===s)return h(u);M(k.dirname(s),p,function(b,v){b?h(b,v):M(s,p,h,v)})}else m.stat(s,function(b,v){b||!v.isDirectory()?h(u,l):h(null,l)})})}W.exports=M.mkdirp=M.mkdirP=M,M.sync=function s(p,c,l){c&&typeof c=="object"||(c={mode:c});var f=c.mode,m=c.fs||w;f===void 0&&(f=g),l||(l=null),p=k.resolve(p);try{m.mkdirSync(p,f),l=l||p}catch(u){if(u.code==="ENOENT")l=s(k.dirname(p),c,l),s(p,c,l);else{var h;try{h=m.statSync(p)}catch(b){throw u}if(!h.isDirectory())throw u}}return l}},4244:W=>{var S=function(y){return y!=y};W.exports=function(y,k){return y===0&&k===0?1/y==1/k:y===k||!(!S(y)||!S(k))}},609:(W,S,y)=>{var k=y(4289),w=y(5559),g=y(4244),M=y(5624),s=y(2281),p=w(M(),Object);k(p,{getPolyfill:M,implementation:g,shim:s}),W.exports=p},5624:(W,S,y)=>{var k=y(4244);W.exports=function(){return typeof Object.is=="function"?Object.is:k}},2281:(W,S,y)=>{var k=y(5624),w=y(4289);W.exports=function(){var g=k();return w(Object,{is:g},{is:function(){return Object.is!==g}}),g}},8987:(W,S,y)=>{var k;if(!Object.keys){var w=Object.prototype.hasOwnProperty,g=Object.prototype.toString,M=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 b=u.constructor;return b&&b.prototype===u},m={$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=="undefined")return!1;for(var u in window)try{if(!m["$"+u]&&w.call(window,u)&&window[u]!==null&&typeof window[u]=="object")try{f(window[u])}catch(b){return!0}}catch(b){return!0}return!1}();k=function(u){var b=u!==null&&typeof u=="object",v=g.call(u)==="[object Function]",_=M(u),A=b&&g.call(u)==="[object String]",x=[];if(!b&&!v&&!_)throw new TypeError("Object.keys called on a non-object");var j=c&&v;if(A&&u.length>0&&!w.call(u,0))for(var P=0;P<u.length;++P)x.push(String(P));if(_&&u.length>0)for(var B=0;B<u.length;++B)x.push(String(B));else for(var z in u)j&&z==="prototype"||!w.call(u,z)||x.push(String(z));if(p)for(var ee=function(ae){if(typeof window=="undefined"||!h)return f(ae);try{return f(ae)}catch(e){return!1}}(u),J=0;J<l.length;++J)ee&&l[J]==="constructor"||!w.call(u,l[J])||x.push(l[J]);return x}}W.exports=k},2215:(W,S,y)=>{var k=Array.prototype.slice,w=y(1414),g=Object.keys,M=g?function(p){return g(p)}:y(8987),s=Object.keys;M.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 w(c)?s(k.call(c)):s(c)})}else Object.keys=M;return Object.keys||M},W.exports=M},1414:W=>{var S=Object.prototype.toString;W.exports=function(y){var k=S.call(y),w=k==="[object Arguments]";return w||(w=k!=="[object Array]"&&y!==null&&typeof y=="object"&&typeof y.length=="number"&&y.length>=0&&S.call(y.callee)==="[object Function]"),w}},2818:(W,S,y)=>{var k=y(9809);S.certificate=y(1934);var w=k.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())});S.RSAPrivateKey=w;var g=k.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});S.RSAPublicKey=g;var M=k.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});S.PublicKey=M;var s=k.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=k.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});S.PrivateKey=p;var c=k.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())});S.EncryptedPrivateKey=c;var l=k.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())});S.DSAPrivateKey=l,S.DSAparam=k.define("DSAparam",function(){this.int()});var f=k.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(m),this.key("publicKey").optional().explicit(1).bitstr())});S.ECPrivateKey=f;var m=k.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});S.signature=k.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},1934:(W,S,y)=>{var k=y(9809),w=k.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),g=k.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),M=k.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=k.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(M),this.key("subjectPublicKey").bitstr())}),p=k.define("RelativeDistinguishedName",function(){this.setof(g)}),c=k.define("RDNSequence",function(){this.seqof(p)}),l=k.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),f=k.define("Validity",function(){this.seq().obj(this.key("notBefore").use(w),this.key("notAfter").use(w))}),m=k.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),h=k.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(M),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(m).optional())}),u=k.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(M),this.key("signatureValue").bitstr())});W.exports=u},7631:(W,S,y)=>{var k=/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,w=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,g=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,M=y(3048),s=y(4696),p=y(9509).Buffer;W.exports=function(c,l){var f,m=c.toString(),h=m.match(k);if(h){var u="aes"+h[1],b=p.from(h[2],"hex"),v=p.from(h[3].replace(/[\r\n]/g,""),"base64"),_=M(l,b.slice(0,8),parseInt(h[1],10)).key,A=[],x=s.createDecipheriv(u,_,b);A.push(x.update(v)),A.push(x.final()),f=p.concat(A)}else{var j=m.match(g);f=p.from(j[2].replace(/[\r\n]/g,""),"base64")}return{tag:m.match(w)[1],data:f}}},980:(W,S,y)=>{var k=y(2818),w=y(2562),g=y(7631),M=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 m,h,u=g(l,f),b=u.tag,v=u.data;switch(b){case"CERTIFICATE":h=k.certificate.decode(v,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(h||(h=k.PublicKey.decode(v,"der")),m=h.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return k.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=k.DSAparam.decode(h.subjectPublicKey.data,"der"),{type:"dsa",data:h.algorithm.params};default:throw new Error("unknown key id "+m)}case"ENCRYPTED PRIVATE KEY":v=function(_,A){var x=_.algorithm.decrypt.kde.kdeparams.salt,j=parseInt(_.algorithm.decrypt.kde.kdeparams.iters.toString(),10),P=w[_.algorithm.decrypt.cipher.algo.join(".")],B=_.algorithm.decrypt.cipher.iv,z=_.subjectPrivateKey,ee=parseInt(P.split("-")[1],10)/8,J=s.pbkdf2Sync(A,x,j,ee,"sha1"),ae=M.createDecipheriv(P,J,B),e=[];return e.push(ae.update(z)),e.push(ae.final()),p.concat(e)}(v=k.EncryptedPrivateKey.decode(v,"der"),f);case"PRIVATE KEY":switch(m=(h=k.PrivateKey.decode(v,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return k.RSAPrivateKey.decode(h.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:h.algorithm.curve,privateKey:k.ECPrivateKey.decode(h.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return h.algorithm.params.priv_key=k.DSAparam.decode(h.subjectPrivateKey,"der"),{type:"dsa",params:h.algorithm.params};default:throw new Error("unknown key id "+m)}case"RSA PUBLIC KEY":return k.RSAPublicKey.decode(v,"der");case"RSA PRIVATE KEY":return k.RSAPrivateKey.decode(v,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:k.DSAPrivateKey.decode(v,"der")};case"EC PRIVATE KEY":return{curve:(v=k.ECPrivateKey.decode(v,"der")).parameters.value,privateKey:v.privateKey};default:throw new Error("unknown key type "+b)}}W.exports=c,c.signature=k.signature},6470:(W,S,y)=>{var k=y(4155);function w(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function g(s,p){for(var c,l="",f=0,m=-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(!(m===u-1||h===1))if(m!==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 b=l.lastIndexOf("/");if(b!==l.length-1){b===-1?(l="",f=0):f=(l=l.slice(0,b)).length-1-l.lastIndexOf("/"),m=u,h=0;continue}}else if(l.length===2||l.length===1){l="",f=0,m=u,h=0;continue}}p&&(l.length>0?l+="/..":l="..",f=2)}else l.length>0?l+="/"+s.slice(m+1,u):l=s.slice(m+1,u),f=u-m-1;m=u,h=0}else c===46&&h!==-1?++h:h=-1}return l}var M={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=k.cwd()),f=s),w(f),f.length!==0&&(p=f+"/"+p,c=f.charCodeAt(0)===47)}return p=g(p,!c),c?p.length>0?"/"+p:"/":p.length>0?p:"."},normalize:function(s){if(w(s),s.length===0)return".";var p=s.charCodeAt(0)===47,c=s.charCodeAt(s.length-1)===47;return(s=g(s,!p)).length!==0||p||(s="."),s.length>0&&c&&(s+="/"),p?"/"+s:s},isAbsolute:function(s){return w(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];w(c),c.length>0&&(s===void 0?s=c:s+="/"+c)}return s===void 0?".":M.normalize(s)},relative:function(s,p){if(w(s),w(p),s===p||(s=M.resolve(s))===(p=M.resolve(p)))return"";for(var c=1;c<s.length&&s.charCodeAt(c)===47;++c);for(var l=s.length,f=l-c,m=1;m<p.length&&p.charCodeAt(m)===47;++m);for(var h=p.length-m,u=f<h?f:h,b=-1,v=0;v<=u;++v){if(v===u){if(h>u){if(p.charCodeAt(m+v)===47)return p.slice(m+v+1);if(v===0)return p.slice(m+v)}else f>u&&(s.charCodeAt(c+v)===47?b=v:v===0&&(b=0));break}var _=s.charCodeAt(c+v);if(_!==p.charCodeAt(m+v))break;_===47&&(b=v)}var A="";for(v=c+b+1;v<=l;++v)v!==l&&s.charCodeAt(v)!==47||(A.length===0?A+="..":A+="/..");return A.length>0?A+p.slice(m+b):(m+=b,p.charCodeAt(m)===47&&++m,p.slice(m))},_makeLong:function(s){return s},dirname:function(s){if(w(s),s.length===0)return".";for(var p=s.charCodeAt(0),c=p===47,l=-1,f=!0,m=s.length-1;m>=1;--m)if((p=s.charCodeAt(m))===47){if(!f){l=m;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');w(s);var c,l=0,f=-1,m=!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 b=s.charCodeAt(c);if(b===47){if(!m){l=c+1;break}}else u===-1&&(m=!1,u=c+1),h>=0&&(b===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(!m){l=c+1;break}}else f===-1&&(m=!1,f=c+1);return f===-1?"":s.slice(l,f)},extname:function(s){w(s);for(var p=-1,c=0,l=-1,f=!0,m=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:m!==1&&(m=1):p!==-1&&(m=-1);else if(!f){c=h+1;break}}return p===-1||l===-1||m===0||m===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){w(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 m=-1,h=0,u=-1,b=!0,v=s.length-1,_=0;v>=c;--v)if((l=s.charCodeAt(v))!==47)u===-1&&(b=!1,u=v+1),l===46?m===-1?m=v:_!==1&&(_=1):m!==-1&&(_=-1);else if(!b){h=v+1;break}return m===-1||u===-1||_===0||_===1&&m===u-1&&m===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,m),p.base=s.slice(1,u)):(p.name=s.slice(h,m),p.base=s.slice(h,u)),p.ext=s.slice(m,u)),h>0?p.dir=s.slice(0,h-1):f&&(p.dir="/"),p},sep:"/",delimiter:":",win32:null,posix:null};M.posix=M,W.exports=M},5632:(W,S,y)=>{S.pbkdf2=y(8638),S.pbkdf2Sync=y(1257)},8638:(W,S,y)=>{var k,w,g=y(9509).Buffer,M=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"},m=[];function h(){return w||(w=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(b,v,_,A,x){return l.importKey("raw",b,{name:"PBKDF2"},!1,["deriveBits"]).then(function(j){return l.deriveBits({name:"PBKDF2",salt:v,iterations:_,hash:{name:x}},j,A<<3)}).then(function(j){return g.from(j)})}W.exports=function(b,v,_,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(M(_,A),b=c(b,s,"Password"),v=c(v,s,"Salt"),typeof j!="function")throw new Error("No callback provided to pbkdf2");(function(B,z){B.then(function(ee){h()(function(){z(null,ee)})},function(ee){h()(function(){z(ee)})})})(function(B){if(y.g.process&&!y.g.process.browser||!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(m[B]!==void 0)return m[B];var z=u(k=k||g.alloc(8),k,10,128,B).then(function(){return!0}).catch(function(){return!1});return m[B]=z,z}(P).then(function(B){return B?u(b,v,_,A,P):p(b,v,_,A,x)}),j)}else h()(function(){var B;try{B=p(b,v,_,A,x)}catch(z){return j(z)}j(null,B)})}},2368:(W,S,y)=>{var k,w=y(4155);k=y.g.process&&y.g.process.browser?"utf-8":y.g.process&&y.g.process.version?parseInt(w.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",W.exports=k},7357:W=>{var S=Math.pow(2,30)-1;W.exports=function(y,k){if(typeof y!="number")throw new TypeError("Iterations not a number");if(y<0)throw new TypeError("Bad iterations");if(typeof k!="number")throw new TypeError("Key length not a number");if(k<0||k>S||k!=k)throw new TypeError("Bad key length")}},1257:(W,S,y)=>{var k=y(8028),w=y(9785),g=y(9072),M=y(9509).Buffer,s=y(7357),p=y(2368),c=y(7777),l=M.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function m(h,u,b){var v=function(B){return B==="rmd160"||B==="ripemd160"?function(z){return new w().update(z).digest()}:B==="md5"?k:function(z){return g(B).update(z).digest()}}(h),_=h==="sha512"||h==="sha384"?128:64;u.length>_?u=v(u):u.length<_&&(u=M.concat([u,l],_));for(var A=M.allocUnsafe(_+f[h]),x=M.allocUnsafe(_+f[h]),j=0;j<_;j++)A[j]=54^u[j],x[j]=92^u[j];var P=M.allocUnsafe(_+b+4);A.copy(P,0,0,_),this.ipad1=P,this.ipad2=A,this.opad=x,this.alg=h,this.blocksize=_,this.hash=v,this.size=f[h]}m.prototype.run=function(h,u){return h.copy(u,this.blocksize),this.hash(u).copy(this.opad,this.blocksize),this.hash(this.opad)},W.exports=function(h,u,b,v,_){s(b,v);var A=new m(_=_||"sha1",h=c(h,p,"Password"),(u=c(u,p,"Salt")).length),x=M.allocUnsafe(v),j=M.allocUnsafe(u.length+4);u.copy(j,0,0,u.length);for(var P=0,B=f[_],z=Math.ceil(v/B),ee=1;ee<=z;ee++){j.writeUInt32BE(ee,u.length);for(var J=A.run(j,A.ipad1),ae=J,e=1;e<b;e++){ae=A.run(ae,A.ipad2);for(var r=0;r<B;r++)J[r]^=ae[r]}J.copy(x,P),P+=B}return x}},7777:(W,S,y)=>{var k=y(9509).Buffer;W.exports=function(w,g,M){if(k.isBuffer(w))return w;if(typeof w=="string")return k.from(w,g);if(ArrayBuffer.isView(w))return k.from(w.buffer);throw new TypeError(M+" must be a string, a Buffer, a typed array or a DataView")}},4155:W=>{var S,y,k=W.exports={};function w(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}function M(b){if(S===setTimeout)return setTimeout(b,0);if((S===w||!S)&&setTimeout)return S=setTimeout,setTimeout(b,0);try{return S(b,0)}catch(v){try{return S.call(null,b,0)}catch(_){return S.call(this,b,0)}}}(function(){try{S=typeof setTimeout=="function"?setTimeout:w}catch(b){S=w}try{y=typeof clearTimeout=="function"?clearTimeout:g}catch(b){y=g}})();var s,p=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?p=s.concat(p):l=-1,p.length&&m())}function m(){if(!c){var b=M(f);c=!0;for(var v=p.length;v;){for(s=p,p=[];++l<v;)s&&s[l].run();l=-1,v=p.length}s=null,c=!1,function(_){if(y===clearTimeout)return clearTimeout(_);if((y===g||!y)&&clearTimeout)return y=clearTimeout,clearTimeout(_);try{y(_)}catch(A){try{return y.call(null,_)}catch(x){return y.call(this,_)}}}(b)}}function h(b,v){this.fun=b,this.array=v}function u(){}k.nextTick=function(b){var v=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)v[_-1]=arguments[_];p.push(new h(b,v)),p.length!==1||c||M(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},k.title="browser",k.browser=!0,k.env={},k.argv=[],k.version="",k.versions={},k.on=u,k.addListener=u,k.once=u,k.off=u,k.removeListener=u,k.removeAllListeners=u,k.emit=u,k.prependListener=u,k.prependOnceListener=u,k.listeners=function(b){return[]},k.binding=function(b){throw new Error("process.binding is not supported")},k.cwd=function(){return"/"},k.chdir=function(b){throw new Error("process.chdir is not supported")},k.umask=function(){return 0}},7900:(W,S,y)=>{S.publicEncrypt=y(6559),S.privateDecrypt=y(6138),S.privateEncrypt=function(k,w){return S.publicEncrypt(k,w,!0)},S.publicDecrypt=function(k,w){return S.privateDecrypt(k,w,!0)}},9199:(W,S,y)=>{var k=y(3482),w=y(9509).Buffer;function g(M){var s=w.allocUnsafe(4);return s.writeUInt32BE(M,0),s}W.exports=function(M,s){for(var p,c=w.alloc(0),l=0;c.length<s;)p=g(l++),c=w.concat([c,k("sha1").update(M).update(p).digest()]);return c.slice(0,s)}},2144:function(W,S,y){(function(k,w){function g(e,r){if(!e)throw new Error(r||"Assertion failed")}function M(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 k=="object"?k.exports=s:w.BN=s,s.BN=s,s.wordSize=26;try{p=typeof window!="undefined"&&window.Buffer!==void 0?window.Buffer:y(7108).Buffer}catch(e){}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),g(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):(g(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(g(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 I=1;for(C=f(e,N,e.length,r),N=0;N<a;N++)I*=r;this.imuln(I),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 m=["","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 b(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 I=C>>>26,R=67108863&C,q=Math.min(N,r.length-1),Z=Math.max(0,N-e.length+1);Z<=q;Z++){var te=N-Z|0;I+=(a=(t=0|e.words[te])*(o=0|r.words[Z])+R)/67108864|0,R=67108863&a}i.words[N]=0|R,C=0|I}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?m[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 I=this.clone();for(I.negative=0;!I.isZero();){var R=I.modn(N).toString(e);i=(I=I.idivn(N)).isZero()?R+i:m[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}g(!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&&g(!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 g(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);g(n<=t,"byte array longer than desired length"),g(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 g((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 g((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 g((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){g(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){g(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 v=function(e,r,i){var n,t,o,a=e.words,T=r.words,C=i.words,N=0,I=0|a[0],R=8191&I,q=I>>>13,Z=0|a[1],te=8191&Z,L=Z>>>13,X=0|a[2],U=8191&X,K=X>>>13,se=0|a[3],ne=8191&se,ce=se>>>13,ke=0|a[4],me=8191&ke,ve=ke>>>13,je=0|a[5],we=8191&je,Ae=je>>>13,G=0|a[6],Y=8191&G,F=G>>>13,$=0|a[7],D=8191&$,Q=$>>>13,he=0|a[8],le=8191&he,pe=he>>>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,vt=0|T[3],Be=8191&vt,We=vt>>>13,St=0|T[4],Ne=8191&St,Ze=St>>>13,It=0|T[5],Le=8191&It,Xe=It>>>13,Lt=0|T[6],De=8191&Lt,Qe=Lt>>>13,zt=0|T[7],Fe=8191&zt,Je=zt>>>13,$t=0|T[8],qe=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(q,Se)|0))<<13)|0;N=((o=Math.imul(q,Ge))+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(te,Se),t=(t=Math.imul(te,Ge))+Math.imul(L,Se)|0,o=Math.imul(L,Ge);var Rt=(N+(n=n+Math.imul(R,Pe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ve)|0)+Math.imul(q,Pe)|0))<<13)|0;N=((o=o+Math.imul(q,Ve)|0)+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(U,Se),t=(t=Math.imul(U,Ge))+Math.imul(K,Se)|0,o=Math.imul(K,Ge),n=n+Math.imul(te,Pe)|0,t=(t=t+Math.imul(te,Ve)|0)+Math.imul(L,Pe)|0,o=o+Math.imul(L,Ve)|0;var Gt=(N+(n=n+Math.imul(R,Re)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ke)|0)+Math.imul(q,Re)|0))<<13)|0;N=((o=o+Math.imul(q,Ke)|0)+(t>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,n=Math.imul(ne,Se),t=(t=Math.imul(ne,Ge))+Math.imul(ce,Se)|0,o=Math.imul(ce,Ge),n=n+Math.imul(U,Pe)|0,t=(t=t+Math.imul(U,Ve)|0)+Math.imul(K,Pe)|0,o=o+Math.imul(K,Ve)|0,n=n+Math.imul(te,Re)|0,t=(t=t+Math.imul(te,Ke)|0)+Math.imul(L,Re)|0,o=o+Math.imul(L,Ke)|0;var cn=(N+(n=n+Math.imul(R,Be)|0)|0)+((8191&(t=(t=t+Math.imul(R,We)|0)+Math.imul(q,Be)|0))<<13)|0;N=((o=o+Math.imul(q,We)|0)+(t>>>13)|0)+(cn>>>26)|0,cn&=67108863,n=Math.imul(me,Se),t=(t=Math.imul(me,Ge))+Math.imul(ve,Se)|0,o=Math.imul(ve,Ge),n=n+Math.imul(ne,Pe)|0,t=(t=t+Math.imul(ne,Ve)|0)+Math.imul(ce,Pe)|0,o=o+Math.imul(ce,Ve)|0,n=n+Math.imul(U,Re)|0,t=(t=t+Math.imul(U,Ke)|0)+Math.imul(K,Re)|0,o=o+Math.imul(K,Ke)|0,n=n+Math.imul(te,Be)|0,t=(t=t+Math.imul(te,We)|0)+Math.imul(L,Be)|0,o=o+Math.imul(L,We)|0;var on=(N+(n=n+Math.imul(R,Ne)|0)|0)+((8191&(t=(t=t+Math.imul(R,Ze)|0)+Math.imul(q,Ne)|0))<<13)|0;N=((o=o+Math.imul(q,Ze)|0)+(t>>>13)|0)+(on>>>26)|0,on&=67108863,n=Math.imul(we,Se),t=(t=Math.imul(we,Ge))+Math.imul(Ae,Se)|0,o=Math.imul(Ae,Ge),n=n+Math.imul(me,Pe)|0,t=(t=t+Math.imul(me,Ve)|0)+Math.imul(ve,Pe)|0,o=o+Math.imul(ve,Ve)|0,n=n+Math.imul(ne,Re)|0,t=(t=t+Math.imul(ne,Ke)|0)+Math.imul(ce,Re)|0,o=o+Math.imul(ce,Ke)|0,n=n+Math.imul(U,Be)|0,t=(t=t+Math.imul(U,We)|0)+Math.imul(K,Be)|0,o=o+Math.imul(K,We)|0,n=n+Math.imul(te,Ne)|0,t=(t=t+Math.imul(te,Ze)|0)+Math.imul(L,Ne)|0,o=o+Math.imul(L,Ze)|0;var ln=(N+(n=n+Math.imul(R,Le)|0)|0)+((8191&(t=(t=t+Math.imul(R,Xe)|0)+Math.imul(q,Le)|0))<<13)|0;N=((o=o+Math.imul(q,Xe)|0)+(t>>>13)|0)+(ln>>>26)|0,ln&=67108863,n=Math.imul(Y,Se),t=(t=Math.imul(Y,Ge))+Math.imul(F,Se)|0,o=Math.imul(F,Ge),n=n+Math.imul(we,Pe)|0,t=(t=t+Math.imul(we,Ve)|0)+Math.imul(Ae,Pe)|0,o=o+Math.imul(Ae,Ve)|0,n=n+Math.imul(me,Re)|0,t=(t=t+Math.imul(me,Ke)|0)+Math.imul(ve,Re)|0,o=o+Math.imul(ve,Ke)|0,n=n+Math.imul(ne,Be)|0,t=(t=t+Math.imul(ne,We)|0)+Math.imul(ce,Be)|0,o=o+Math.imul(ce,We)|0,n=n+Math.imul(U,Ne)|0,t=(t=t+Math.imul(U,Ze)|0)+Math.imul(K,Ne)|0,o=o+Math.imul(K,Ze)|0,n=n+Math.imul(te,Le)|0,t=(t=t+Math.imul(te,Xe)|0)+Math.imul(L,Le)|0,o=o+Math.imul(L,Xe)|0;var hn=(N+(n=n+Math.imul(R,De)|0)|0)+((8191&(t=(t=t+Math.imul(R,Qe)|0)+Math.imul(q,De)|0))<<13)|0;N=((o=o+Math.imul(q,Qe)|0)+(t>>>13)|0)+(hn>>>26)|0,hn&=67108863,n=Math.imul(D,Se),t=(t=Math.imul(D,Ge))+Math.imul(Q,Se)|0,o=Math.imul(Q,Ge),n=n+Math.imul(Y,Pe)|0,t=(t=t+Math.imul(Y,Ve)|0)+Math.imul(F,Pe)|0,o=o+Math.imul(F,Ve)|0,n=n+Math.imul(we,Re)|0,t=(t=t+Math.imul(we,Ke)|0)+Math.imul(Ae,Re)|0,o=o+Math.imul(Ae,Ke)|0,n=n+Math.imul(me,Be)|0,t=(t=t+Math.imul(me,We)|0)+Math.imul(ve,Be)|0,o=o+Math.imul(ve,We)|0,n=n+Math.imul(ne,Ne)|0,t=(t=t+Math.imul(ne,Ze)|0)+Math.imul(ce,Ne)|0,o=o+Math.imul(ce,Ze)|0,n=n+Math.imul(U,Le)|0,t=(t=t+Math.imul(U,Xe)|0)+Math.imul(K,Le)|0,o=o+Math.imul(K,Xe)|0,n=n+Math.imul(te,De)|0,t=(t=t+Math.imul(te,Qe)|0)+Math.imul(L,De)|0,o=o+Math.imul(L,Qe)|0;var fn=(N+(n=n+Math.imul(R,Fe)|0)|0)+((8191&(t=(t=t+Math.imul(R,Je)|0)+Math.imul(q,Fe)|0))<<13)|0;N=((o=o+Math.imul(q,Je)|0)+(t>>>13)|0)+(fn>>>26)|0,fn&=67108863,n=Math.imul(le,Se),t=(t=Math.imul(le,Ge))+Math.imul(pe,Se)|0,o=Math.imul(pe,Ge),n=n+Math.imul(D,Pe)|0,t=(t=t+Math.imul(D,Ve)|0)+Math.imul(Q,Pe)|0,o=o+Math.imul(Q,Ve)|0,n=n+Math.imul(Y,Re)|0,t=(t=t+Math.imul(Y,Ke)|0)+Math.imul(F,Re)|0,o=o+Math.imul(F,Ke)|0,n=n+Math.imul(we,Be)|0,t=(t=t+Math.imul(we,We)|0)+Math.imul(Ae,Be)|0,o=o+Math.imul(Ae,We)|0,n=n+Math.imul(me,Ne)|0,t=(t=t+Math.imul(me,Ze)|0)+Math.imul(ve,Ne)|0,o=o+Math.imul(ve,Ze)|0,n=n+Math.imul(ne,Le)|0,t=(t=t+Math.imul(ne,Xe)|0)+Math.imul(ce,Le)|0,o=o+Math.imul(ce,Xe)|0,n=n+Math.imul(U,De)|0,t=(t=t+Math.imul(U,Qe)|0)+Math.imul(K,De)|0,o=o+Math.imul(K,Qe)|0,n=n+Math.imul(te,Fe)|0,t=(t=t+Math.imul(te,Je)|0)+Math.imul(L,Fe)|0,o=o+Math.imul(L,Je)|0;var pn=(N+(n=n+Math.imul(R,qe)|0)|0)+((8191&(t=(t=t+Math.imul(R,tt)|0)+Math.imul(q,qe)|0))<<13)|0;N=((o=o+Math.imul(q,tt)|0)+(t>>>13)|0)+(pn>>>26)|0,pn&=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(le,Pe)|0,t=(t=t+Math.imul(le,Ve)|0)+Math.imul(pe,Pe)|0,o=o+Math.imul(pe,Ve)|0,n=n+Math.imul(D,Re)|0,t=(t=t+Math.imul(D,Ke)|0)+Math.imul(Q,Re)|0,o=o+Math.imul(Q,Ke)|0,n=n+Math.imul(Y,Be)|0,t=(t=t+Math.imul(Y,We)|0)+Math.imul(F,Be)|0,o=o+Math.imul(F,We)|0,n=n+Math.imul(we,Ne)|0,t=(t=t+Math.imul(we,Ze)|0)+Math.imul(Ae,Ne)|0,o=o+Math.imul(Ae,Ze)|0,n=n+Math.imul(me,Le)|0,t=(t=t+Math.imul(me,Xe)|0)+Math.imul(ve,Le)|0,o=o+Math.imul(ve,Xe)|0,n=n+Math.imul(ne,De)|0,t=(t=t+Math.imul(ne,Qe)|0)+Math.imul(ce,De)|0,o=o+Math.imul(ce,Qe)|0,n=n+Math.imul(U,Fe)|0,t=(t=t+Math.imul(U,Je)|0)+Math.imul(K,Fe)|0,o=o+Math.imul(K,Je)|0,n=n+Math.imul(te,qe)|0,t=(t=t+Math.imul(te,tt)|0)+Math.imul(L,qe)|0,o=o+Math.imul(L,tt)|0;var dn=(N+(n=n+Math.imul(R,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(R,et)|0)+Math.imul(q,Ue)|0))<<13)|0;N=((o=o+Math.imul(q,et)|0)+(t>>>13)|0)+(dn>>>26)|0,dn&=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(le,Re)|0,t=(t=t+Math.imul(le,Ke)|0)+Math.imul(pe,Re)|0,o=o+Math.imul(pe,Ke)|0,n=n+Math.imul(D,Be)|0,t=(t=t+Math.imul(D,We)|0)+Math.imul(Q,Be)|0,o=o+Math.imul(Q,We)|0,n=n+Math.imul(Y,Ne)|0,t=(t=t+Math.imul(Y,Ze)|0)+Math.imul(F,Ne)|0,o=o+Math.imul(F,Ze)|0,n=n+Math.imul(we,Le)|0,t=(t=t+Math.imul(we,Xe)|0)+Math.imul(Ae,Le)|0,o=o+Math.imul(Ae,Xe)|0,n=n+Math.imul(me,De)|0,t=(t=t+Math.imul(me,Qe)|0)+Math.imul(ve,De)|0,o=o+Math.imul(ve,Qe)|0,n=n+Math.imul(ne,Fe)|0,t=(t=t+Math.imul(ne,Je)|0)+Math.imul(ce,Fe)|0,o=o+Math.imul(ce,Je)|0,n=n+Math.imul(U,qe)|0,t=(t=t+Math.imul(U,tt)|0)+Math.imul(K,qe)|0,o=o+Math.imul(K,tt)|0;var mn=(N+(n=n+Math.imul(te,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(te,et)|0)+Math.imul(L,Ue)|0))<<13)|0;N=((o=o+Math.imul(L,et)|0)+(t>>>13)|0)+(mn>>>26)|0,mn&=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(le,Be)|0,t=(t=t+Math.imul(le,We)|0)+Math.imul(pe,Be)|0,o=o+Math.imul(pe,We)|0,n=n+Math.imul(D,Ne)|0,t=(t=t+Math.imul(D,Ze)|0)+Math.imul(Q,Ne)|0,o=o+Math.imul(Q,Ze)|0,n=n+Math.imul(Y,Le)|0,t=(t=t+Math.imul(Y,Xe)|0)+Math.imul(F,Le)|0,o=o+Math.imul(F,Xe)|0,n=n+Math.imul(we,De)|0,t=(t=t+Math.imul(we,Qe)|0)+Math.imul(Ae,De)|0,o=o+Math.imul(Ae,Qe)|0,n=n+Math.imul(me,Fe)|0,t=(t=t+Math.imul(me,Je)|0)+Math.imul(ve,Fe)|0,o=o+Math.imul(ve,Je)|0,n=n+Math.imul(ne,qe)|0,t=(t=t+Math.imul(ne,tt)|0)+Math.imul(ce,qe)|0,o=o+Math.imul(ce,tt)|0;var Xt=(N+(n=n+Math.imul(U,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(U,et)|0)+Math.imul(K,Ue)|0))<<13)|0;N=((o=o+Math.imul(K,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(le,Ne)|0,t=(t=t+Math.imul(le,Ze)|0)+Math.imul(pe,Ne)|0,o=o+Math.imul(pe,Ze)|0,n=n+Math.imul(D,Le)|0,t=(t=t+Math.imul(D,Xe)|0)+Math.imul(Q,Le)|0,o=o+Math.imul(Q,Xe)|0,n=n+Math.imul(Y,De)|0,t=(t=t+Math.imul(Y,Qe)|0)+Math.imul(F,De)|0,o=o+Math.imul(F,Qe)|0,n=n+Math.imul(we,Fe)|0,t=(t=t+Math.imul(we,Je)|0)+Math.imul(Ae,Fe)|0,o=o+Math.imul(Ae,Je)|0,n=n+Math.imul(me,qe)|0,t=(t=t+Math.imul(me,tt)|0)+Math.imul(ve,qe)|0,o=o+Math.imul(ve,tt)|0;var gn=(N+(n=n+Math.imul(ne,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ne,et)|0)+Math.imul(ce,Ue)|0))<<13)|0;N=((o=o+Math.imul(ce,et)|0)+(t>>>13)|0)+(gn>>>26)|0,gn&=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(le,Le)|0,t=(t=t+Math.imul(le,Xe)|0)+Math.imul(pe,Le)|0,o=o+Math.imul(pe,Xe)|0,n=n+Math.imul(D,De)|0,t=(t=t+Math.imul(D,Qe)|0)+Math.imul(Q,De)|0,o=o+Math.imul(Q,Qe)|0,n=n+Math.imul(Y,Fe)|0,t=(t=t+Math.imul(Y,Je)|0)+Math.imul(F,Fe)|0,o=o+Math.imul(F,Je)|0,n=n+Math.imul(we,qe)|0,t=(t=t+Math.imul(we,tt)|0)+Math.imul(Ae,qe)|0,o=o+Math.imul(Ae,tt)|0;var bn=(N+(n=n+Math.imul(me,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(me,et)|0)+Math.imul(ve,Ue)|0))<<13)|0;N=((o=o+Math.imul(ve,et)|0)+(t>>>13)|0)+(bn>>>26)|0,bn&=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(le,De)|0,t=(t=t+Math.imul(le,Qe)|0)+Math.imul(pe,De)|0,o=o+Math.imul(pe,Qe)|0,n=n+Math.imul(D,Fe)|0,t=(t=t+Math.imul(D,Je)|0)+Math.imul(Q,Fe)|0,o=o+Math.imul(Q,Je)|0,n=n+Math.imul(Y,qe)|0,t=(t=t+Math.imul(Y,tt)|0)+Math.imul(F,qe)|0,o=o+Math.imul(F,tt)|0;var en=(N+(n=n+Math.imul(we,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(we,et)|0)+Math.imul(Ae,Ue)|0))<<13)|0;N=((o=o+Math.imul(Ae,et)|0)+(t>>>13)|0)+(en>>>26)|0,en&=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(le,Fe)|0,t=(t=t+Math.imul(le,Je)|0)+Math.imul(pe,Fe)|0,o=o+Math.imul(pe,Je)|0,n=n+Math.imul(D,qe)|0,t=(t=t+Math.imul(D,tt)|0)+Math.imul(Q,qe)|0,o=o+Math.imul(Q,tt)|0;var tn=(N+(n=n+Math.imul(Y,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(Y,et)|0)+Math.imul(F,Ue)|0))<<13)|0;N=((o=o+Math.imul(F,et)|0)+(t>>>13)|0)+(tn>>>26)|0,tn&=67108863,n=Math.imul(_e,Fe),t=(t=Math.imul(_e,Je))+Math.imul(Te,Fe)|0,o=Math.imul(Te,Je),n=n+Math.imul(le,qe)|0,t=(t=t+Math.imul(le,tt)|0)+Math.imul(pe,qe)|0,o=o+Math.imul(pe,tt)|0;var Jt=(N+(n=n+Math.imul(D,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(D,et)|0)+Math.imul(Q,Ue)|0))<<13)|0;N=((o=o+Math.imul(Q,et)|0)+(t>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,n=Math.imul(_e,qe),t=(t=Math.imul(_e,tt))+Math.imul(Te,qe)|0,o=Math.imul(Te,tt);var yn=(N+(n=n+Math.imul(le,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(le,et)|0)+Math.imul(pe,Ue)|0))<<13)|0;N=((o=o+Math.imul(pe,et)|0)+(t>>>13)|0)+(yn>>>26)|0,yn&=67108863;var sn=(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)+(sn>>>26)|0,sn&=67108863,C[0]=Tt,C[1]=Rt,C[2]=Gt,C[3]=cn,C[4]=on,C[5]=ln,C[6]=hn,C[7]=fn,C[8]=pn,C[9]=dn,C[10]=mn,C[11]=Xt,C[12]=gn,C[13]=bn,C[14]=en,C[15]=tn,C[16]=Jt,C[17]=yn,C[18]=sn,N!==0&&(C[19]=N,i.length++),i};function _(e,r,i){return new A().mulp(e,r,i)}function A(e,r){this.x=e,this.y=r}Math.imul||(v=b),s.prototype.mulTo=function(e,r){var i,n=this.length+e.length;return i=this.length===10&&e.length===10?v(this,e,r):n<63?b(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 I=C;C=0;for(var R=67108863&T,q=Math.min(N,o.length-1),Z=Math.max(0,N-t.length+1);Z<=q;Z++){var te=N-Z,L=(0|t.words[te])*(0|o.words[Z]),X=67108863&L;R=67108863&(X=X+R|0),C+=(I=(I=I+(L/67108864|0)|0)+(X>>>26)|0)>>>26,I&=67108863}a.words[N]=R,T=I,I=C}return T!==0?a.words[N]=T:a.length--,a.strip()}(this,e,r):_(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),I=0;I<t;I+=T)for(var R=C,q=N,Z=0;Z<a;Z++){var te=i[I+Z],L=n[I+Z],X=i[I+Z+a],U=n[I+Z+a],K=R*X-q*U;U=R*U+q*X,X=K,i[I+Z]=te+X,n[I+Z]=L+U,i[I+Z+a]=te-X,n[I+Z+a]=L-U,Z!==T&&(K=C*R-N*q,q=C*q+N*R,R=K)}},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;g(t===0),g((-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),I=new Array(n),R=new Array(n),q=i.words;q.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,I,R,n,t);for(var Z=0;Z<n;Z++){var te=T[Z]*I[Z]-C[Z]*R[Z];C[Z]=T[Z]*R[Z]+C[Z]*I[Z],T[Z]=te}return this.conjugate(T,C,n),this.transform(T,C,q,o,n,t),this.conjugate(q,o,n),this.normalize13b(q,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),_(this,e,r)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){g(typeof e=="number"),g(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){g(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 g(this.negative===0),this.iushln(e)},s.prototype.iushrn=function(e,r,i){var n;g(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 I=0|this.words[C];this.words[C]=N<<26-t|I>>>t,N=I&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 g(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){g(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){g(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(g(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 g(typeof e=="number"),g(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(g(typeof e=="number"),g(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(g(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 I=T-1;I>=0;I--){var R=67108864*(0|n.words[t.length+I])+(0|n.words[t.length+I-1]);for(R=Math.min(R/o|0,67108863),n._ishlnsubmul(t,R,I);n.negative!==0;)R--,n.negative=0,n._ishlnsubmul(t,1,I),n.isZero()||(n.negative^=1);a&&(a.words[I]=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 g(!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){g(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){g(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){g(e.negative===0),g(!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 I=0,R=1;!(r.words[0]&R)&&I<26;++I,R<<=1);if(I>0)for(r.iushrn(I);I-- >0;)(n.isOdd()||t.isOdd())&&(n.iadd(C),t.isub(N)),n.iushrn(1),t.iushrn(1);for(var q=0,Z=1;!(i.words[0]&Z)&&q<26;++q,Z<<=1);if(q>0)for(i.iushrn(q);q-- >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){g(e.negative===0),g(!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,I=1;!(i.words[0]&I)&&N<26;++N,I<<=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){g(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),g(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 g(!this.red,"Already a number in reduction context"),g(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return g(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 g(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return g(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 z(){j.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ee(){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 g(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function ae(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)},M(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},M(B,j),M(z,j),M(ee,j),ee.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 z;else{if(e!=="p25519")throw new Error("Unknown prime "+e);r=new ee}return x[e]=r,r},J.prototype._verify1=function(e){g(e.negative===0,"red works only with positives"),g(e.red,"red works only with red numbers")},J.prototype._verify2=function(e,r){g((e.negative|r.negative)==0,"red works only with positives"),g(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(g(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);g(!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),I=this.pow(e,n.addn(1).iushrn(1)),R=this.pow(e,n),q=t;R.cmp(o)!==0;){for(var Z=R,te=0;Z.cmp(o)!==0;te++)Z=Z.redSqr();g(te<q);var L=this.pow(N,new s(1).iushln(q-te-1));I=I.redMul(L),N=L.redSqr(),R=R.redMul(N),q=te}return I},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 I=C>>N&1;t!==i[0]&&(t=this.sqr(t)),I!==0||o!==0?(o<<=1,o|=I,(++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 ae(e)},M(ae,J),ae.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},ae.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},ae.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)},ae.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)},ae.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(W=y.nmd(W),this)},6138:(W,S,y)=>{var k=y(980),w=y(9199),g=y(7859),M=y(2144),s=y(3663),p=y(3482),c=y(4818),l=y(9509).Buffer;W.exports=function(f,m,h){var u;u=f.padding?f.padding:h?1:4;var b,v=k(f),_=v.modulus.byteLength();if(m.length>_||new M(m).cmp(v.modulus)>=0)throw new Error("decryption error");b=h?c(new M(m),v):s(m,v);var A=l.alloc(_-b.length);if(b=l.concat([A,b],_),u===4)return function(x,j){var P=x.modulus.byteLength(),B=p("sha1").update(l.alloc(0)).digest(),z=B.length;if(j[0]!==0)throw new Error("decryption error");var ee=j.slice(1,z+1),J=j.slice(z+1),ae=g(ee,w(J,z)),e=g(J,w(ae,P-z-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,z)))throw new Error("decryption error");for(var r=z;e[r]===0;)r++;if(e[r++]!==1)throw new Error("decryption error");return e.slice(r)}(v,b);if(u===1)return function(x,j,P){for(var B=j.slice(0,2),z=2,ee=0;j[z++]!==0;)if(z>=j.length){ee++;break}var J=j.slice(2,z-1);if((B.toString("hex")!=="0002"&&!P||B.toString("hex")!=="0001"&&P)&&ee++,J.length<8&&ee++,ee)throw new Error("decryption error");return j.slice(z)}(0,b,h);if(u===3)return b;throw new Error("unknown padding")}},6559:(W,S,y)=>{var k=y(980),w=y(1798),g=y(3482),M=y(9199),s=y(7859),p=y(2144),c=y(4818),l=y(3663),f=y(9509).Buffer;W.exports=function(m,h,u){var b;b=m.padding?m.padding:u?1:4;var v,_=k(m);if(b===4)v=function(A,x){var j=A.modulus.byteLength(),P=x.length,B=g("sha1").update(f.alloc(0)).digest(),z=B.length,ee=2*z;if(P>j-ee-2)throw new Error("message too long");var J=f.alloc(j-P-ee-2),ae=j-z-1,e=w(z),r=s(f.concat([B,J,f.alloc(1,1),x],ae),M(e,ae)),i=s(e,M(r,z));return new p(f.concat([f.alloc(1),i,r],j))}(_,h);else if(b===1)v=function(A,x,j){var P,B=x.length,z=A.modulus.byteLength();if(B>z-11)throw new Error("message too long");return P=j?f.alloc(z-B-3,255):function(ee){for(var J,ae=f.allocUnsafe(ee),e=0,r=w(2*ee),i=0;e<ee;)i===r.length&&(r=w(2*ee),i=0),(J=r[i++])&&(ae[e++]=J);return ae}(z-B-3),new p(f.concat([f.from([0,j?1:2]),P,f.alloc(1),x],z))}(_,h,u);else{if(b!==3)throw new Error("unknown padding");if((v=new p(h)).cmp(_.modulus)>=0)throw new Error("data too long for modulus")}return u?l(v,_):c(v,_)}},4818:(W,S,y)=>{var k=y(2144),w=y(9509).Buffer;W.exports=function(g,M){return w.from(g.toRed(k.mont(M.modulus)).redPow(new k(M.publicExponent)).fromRed().toArray())}},7859:W=>{W.exports=function(S,y){for(var k=S.length,w=-1;++w<k;)S[w]^=y[w];return S}},7563:(W,S,y)=>{const k=y(610),w=y(4020),g=y(500),M=y(2806),s=Symbol("encodeFragmentIdentifier");function p(v){if(typeof v!="string"||v.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(v,_){return _.encode?_.strict?k(v):encodeURIComponent(v):v}function l(v,_){return _.decode?w(v):v}function f(v){return Array.isArray(v)?v.sort():typeof v=="object"?f(Object.keys(v)).sort((_,A)=>Number(_)-Number(A)).map(_=>v[_]):v}function m(v){const _=v.indexOf("#");return _!==-1&&(v=v.slice(0,_)),v}function h(v){const _=(v=m(v)).indexOf("?");return _===-1?"":v.slice(_+1)}function u(v,_){return _.parseNumbers&&!Number.isNaN(Number(v))&&typeof v=="string"&&v.trim()!==""?v=Number(v):!_.parseBooleans||v===null||v.toLowerCase()!=="true"&&v.toLowerCase()!=="false"||(v=v.toLowerCase()==="true"),v}function b(v,_){p((_=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},_)).arrayFormatSeparator);const A=function(j){let P;switch(j.arrayFormat){case"index":return(B,z,ee)=>{P=/\[(\d*)\]$/.exec(B),B=B.replace(/\[\d*\]$/,""),P?(ee[B]===void 0&&(ee[B]={}),ee[B][P[1]]=z):ee[B]=z};case"bracket":return(B,z,ee)=>{P=/(\[\])$/.exec(B),B=B.replace(/\[\]$/,""),P?ee[B]!==void 0?ee[B]=[].concat(ee[B],z):ee[B]=[z]:ee[B]=z};case"colon-list-separator":return(B,z,ee)=>{P=/(:list)$/.exec(B),B=B.replace(/:list$/,""),P?ee[B]!==void 0?ee[B]=[].concat(ee[B],z):ee[B]=[z]:ee[B]=z};case"comma":case"separator":return(B,z,ee)=>{const J=typeof z=="string"&&z.includes(j.arrayFormatSeparator),ae=typeof z=="string"&&!J&&l(z,j).includes(j.arrayFormatSeparator);z=ae?l(z,j):z;const e=J||ae?z.split(j.arrayFormatSeparator).map(r=>l(r,j)):z===null?z:l(z,j);ee[B]=e};case"bracket-separator":return(B,z,ee)=>{const J=/(\[\])$/.test(B);if(B=B.replace(/\[\]$/,""),!J)return void(ee[B]=z&&l(z,j));const ae=z===null?[]:z.split(j.arrayFormatSeparator).map(e=>l(e,j));ee[B]!==void 0?ee[B]=[].concat(ee[B],ae):ee[B]=ae};default:return(B,z,ee)=>{ee[B]!==void 0?ee[B]=[].concat(ee[B],z):ee[B]=z}}}(_),x=Object.create(null);if(typeof v!="string"||!(v=v.trim().replace(/^[?#&]/,"")))return x;for(const j of v.split("&")){if(j==="")continue;let[P,B]=g(_.decode?j.replace(/\+/g," "):j,"=");B=B===void 0?null:["comma","separator","bracket-separator"].includes(_.arrayFormat)?B:l(B,_),A(l(P,_),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],_);else x[j]=u(P,_)}return _.sort===!1?x:(_.sort===!0?Object.keys(x).sort():Object.keys(x).sort(_.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))}S.extract=h,S.parse=b,S.stringify=(v,_)=>{if(!v)return"";p((_=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},_)).arrayFormatSeparator);const A=B=>_.skipNull&&v[B]==null||_.skipEmptyString&&v[B]==="",x=function(B){switch(B.arrayFormat){case"index":return z=>(ee,J)=>{const ae=ee.length;return J===void 0||B.skipNull&&J===null||B.skipEmptyString&&J===""?ee:J===null?[...ee,[c(z,B),"[",ae,"]"].join("")]:[...ee,[c(z,B),"[",c(ae,B),"]=",c(J,B)].join("")]};case"bracket":return z=>(ee,J)=>J===void 0||B.skipNull&&J===null||B.skipEmptyString&&J===""?ee:J===null?[...ee,[c(z,B),"[]"].join("")]:[...ee,[c(z,B),"[]=",c(J,B)].join("")];case"colon-list-separator":return z=>(ee,J)=>J===void 0||B.skipNull&&J===null||B.skipEmptyString&&J===""?ee:J===null?[...ee,[c(z,B),":list="].join("")]:[...ee,[c(z,B),":list=",c(J,B)].join("")];case"comma":case"separator":case"bracket-separator":{const z=B.arrayFormat==="bracket-separator"?"[]=":"=";return ee=>(J,ae)=>ae===void 0||B.skipNull&&ae===null||B.skipEmptyString&&ae===""?J:(ae=ae===null?"":ae,J.length===0?[[c(ee,B),z,c(ae,B)].join("")]:[[J,c(ae,B)].join(B.arrayFormatSeparator)])}default:return z=>(ee,J)=>J===void 0||B.skipNull&&J===null||B.skipEmptyString&&J===""?ee:J===null?[...ee,c(z,B)]:[...ee,[c(z,B),"=",c(J,B)].join("")]}}(_),j={};for(const B of Object.keys(v))A(B)||(j[B]=v[B]);const P=Object.keys(j);return _.sort!==!1&&P.sort(_.sort),P.map(B=>{const z=v[B];return z===void 0?"":z===null?c(B,_):Array.isArray(z)?z.length===0&&_.arrayFormat==="bracket-separator"?c(B,_)+"[]":z.reduce(x(B),[]).join("&"):c(B,_)+"="+c(z,_)}).filter(B=>B.length>0).join("&")},S.parseUrl=(v,_)=>{_=Object.assign({decode:!0},_);const[A,x]=g(v,"#");return Object.assign({url:A.split("?")[0]||"",query:b(h(v),_)},_&&_.parseFragmentIdentifier&&x?{fragmentIdentifier:l(x,_)}:{})},S.stringifyUrl=(v,_)=>{_=Object.assign({encode:!0,strict:!0,[s]:!0},_);const A=m(v.url).split("?")[0]||"",x=S.extract(v.url),j=S.parse(x,{sort:!1}),P=Object.assign(j,v.query);let B=S.stringify(P,_);B&&(B=`?${B}`);let z=function(ee){let J="";const ae=ee.indexOf("#");return ae!==-1&&(J=ee.slice(ae)),J}(v.url);return v.fragmentIdentifier&&(z=`#${_[s]?c(v.fragmentIdentifier,_):v.fragmentIdentifier}`),`${A}${B}${z}`},S.pick=(v,_,A)=>{A=Object.assign({parseFragmentIdentifier:!0,[s]:!1},A);const{url:x,query:j,fragmentIdentifier:P}=S.parseUrl(v,A);return S.stringifyUrl({url:x,query:M(j,_),fragmentIdentifier:P},A)},S.exclude=(v,_,A)=>{const x=Array.isArray(_)?j=>!_.includes(j):(j,P)=>!_(j,P);return S.pick(v,x,A)}},2587:W=>{function S(y,k){return Object.prototype.hasOwnProperty.call(y,k)}W.exports=function(y,k,w,g){k=k||"&",w=w||"=";var M={};if(typeof y!="string"||y.length===0)return M;var s=/\+/g;y=y.split(k);var p=1e3;g&&typeof g.maxKeys=="number"&&(p=g.maxKeys);var c=y.length;p>0&&c>p&&(c=p);for(var l=0;l<c;++l){var f,m,h,u,b=y[l].replace(s,"%20"),v=b.indexOf(w);v>=0?(f=b.substr(0,v),m=b.substr(v+1)):(f=b,m=""),h=decodeURIComponent(f),u=decodeURIComponent(m),S(M,h)?Array.isArray(M[h])?M[h].push(u):M[h]=[M[h],u]:M[h]=u}return M}},2182:W=>{var S=function(y){switch(typeof y){case"string":return y;case"boolean":return y?"true":"false";case"number":return isFinite(y)?y:"";default:return""}};W.exports=function(y,k,w,g){return k=k||"&",w=w||"=",y===null&&(y=void 0),typeof y=="object"?Object.keys(y).map(function(M){var s=encodeURIComponent(S(M))+w;return Array.isArray(y[M])?y[M].map(function(p){return s+encodeURIComponent(S(p))}).join(k):s+encodeURIComponent(S(y[M]))}).join(k):g?encodeURIComponent(S(g))+w+encodeURIComponent(S(y)):""}},7673:(W,S,y)=>{S.decode=S.parse=y(2587),S.encode=S.stringify=y(2182)},1798:(W,S,y)=>{var k=y(4155),w=65536,g=y(9509).Buffer,M=y.g.crypto||y.g.msCrypto;M&&M.getRandomValues?W.exports=function(s,p){if(s>4294967295)throw new RangeError("requested too many random bytes");var c=g.allocUnsafe(s);if(s>0)if(s>w)for(var l=0;l<s;l+=w)M.getRandomValues(c.slice(l,l+w));else M.getRandomValues(c);return typeof p=="function"?k.nextTick(function(){p(null,c)}):c}:W.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
91
|
+
Use Chrome, Firefox or Internet Explorer 11`)}},7963:(W,S,y)=>{var k=y(4155);function w(){throw new Error(`secure random number generation not supported by this browser
|
|
92
|
+
use chrome, FireFox or Internet Explorer 11`)}var g=y(9509),M=y(1798),s=g.Buffer,p=g.kMaxLength,c=y.g.crypto||y.g.msCrypto,l=Math.pow(2,32)-1;function f(u,b){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>b)throw new RangeError("offset out of range")}function m(u,b,v){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+b>v||u>p)throw new RangeError("buffer too small")}function h(u,b,v,_){if(k.browser){var A=u.buffer,x=new Uint8Array(A,b,v);return c.getRandomValues(x),_?void k.nextTick(function(){_(null,u)}):u}if(!_)return M(v).copy(u,b),u;M(v,function(j,P){if(j)return _(j);P.copy(u,b),_(null,u)})}c&&c.getRandomValues||!k.browser?(S.randomFill=function(u,b,v,_){if(!(s.isBuffer(u)||u instanceof y.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof b=="function")_=b,b=0,v=u.length;else if(typeof v=="function")_=v,v=u.length-b;else if(typeof _!="function")throw new TypeError('"cb" argument must be a function');return f(b,u.length),m(v,b,u.length),h(u,b,v,_)},S.randomFillSync=function(u,b,v){if(b===void 0&&(b=0),!(s.isBuffer(u)||u instanceof y.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return f(b,u.length),v===void 0&&(v=u.length-b),m(v,b,u.length),h(u,b,v)}):(S.randomFill=w,S.randomFillSync=w)},4281:W=>{var S={};function y(w,g,M){M||(M=Error);var s=function(p){var c,l;function f(m,h,u){return p.call(this,function(b,v,_){return typeof g=="string"?g:g(b,v,_)}(m,h,u))||this}return l=p,(c=f).prototype=Object.create(l.prototype),c.prototype.constructor=c,c.__proto__=l,f}(M);s.prototype.name=M.name,s.prototype.code=w,S[w]=s}function k(w,g){if(Array.isArray(w)){var M=w.length;return w=w.map(function(s){return String(s)}),M>2?"one of ".concat(g," ").concat(w.slice(0,M-1).join(", "),", or ")+w[M-1]:M===2?"one of ".concat(g," ").concat(w[0]," or ").concat(w[1]):"of ".concat(g," ").concat(w[0])}return"of ".concat(g," ").concat(String(w))}y("ERR_INVALID_OPT_VALUE",function(w,g){return'The value "'+g+'" is invalid for option "'+w+'"'},TypeError),y("ERR_INVALID_ARG_TYPE",function(w,g,M){var s,p,c,l,f;if(typeof g=="string"&&(p="not ",g.substr(0,p.length)===p)?(s="must not be",g=g.replace(/^not /,"")):s="must be",function(h,u,b){return(b===void 0||b>h.length)&&(b=h.length),h.substring(b-u.length,b)===u}(w," argument"))c="The ".concat(w," ").concat(s," ").concat(k(g,"type"));else{var m=(typeof f!="number"&&(f=0),f+1>(l=w).length||l.indexOf(".",f)===-1?"argument":"property");c='The "'.concat(w,'" ').concat(m," ").concat(s," ").concat(k(g,"type"))}return c+". Received type ".concat(typeof M)},TypeError),y("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),y("ERR_METHOD_NOT_IMPLEMENTED",function(w){return"The "+w+" method is not implemented"}),y("ERR_STREAM_PREMATURE_CLOSE","Premature close"),y("ERR_STREAM_DESTROYED",function(w){return"Cannot call "+w+" 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(w){return"Unknown encoding: "+w},TypeError),y("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),W.exports.q=S},6753:(W,S,y)=>{var k=y(4155),w=Object.keys||function(h){var u=[];for(var b in h)u.push(b);return u};W.exports=l;var g=y(9481),M=y(4229);y(5717)(l,g);for(var s=w(M.prototype),p=0;p<s.length;p++){var c=s[p];l.prototype[c]||(l.prototype[c]=M.prototype[c])}function l(h){if(!(this instanceof l))return new l(h);g.call(this,h),M.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||k.nextTick(m,this)}function m(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:(W,S,y)=>{W.exports=w;var k=y(4605);function w(g){if(!(this instanceof w))return new w(g);k.call(this,g)}y(5717)(w,k),w.prototype._transform=function(g,M,s){s(null,g)}},9481:(W,S,y)=>{var k,w=y(4155);W.exports=J,J.ReadableState=ee,y(7187).EventEmitter;var g,M=function(L,X){return L.listeners(X).length},s=y(2503),p=y(8764).Buffer,c=y.g.Uint8Array||function(){},l=y(4616);g=l&&l.debuglog?l.debuglog("stream"):function(){};var f,m,h,u=y(7327),b=y(1195),v=y(2457).getHighWaterMark,_=y(4281).q,A=_.ERR_INVALID_ARG_TYPE,x=_.ERR_STREAM_PUSH_AFTER_EOF,j=_.ERR_METHOD_NOT_IMPLEMENTED,P=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;y(5717)(J,s);var B=b.errorOrDestroy,z=["error","close","destroy","pause","resume"];function ee(L,X,U){k=k||y(6753),L=L||{},typeof U!="boolean"&&(U=X instanceof k),this.objectMode=!!L.objectMode,U&&(this.objectMode=this.objectMode||!!L.readableObjectMode),this.highWaterMark=v(this,L,"readableHighWaterMark",U),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=L.emitClose!==!1,this.autoDestroy=!!L.autoDestroy,this.destroyed=!1,this.defaultEncoding=L.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,L.encoding&&(f||(f=y(2553).s),this.decoder=new f(L.encoding),this.encoding=L.encoding)}function J(L){if(k=k||y(6753),!(this instanceof J))return new J(L);var X=this instanceof k;this._readableState=new ee(L,this,X),this.readable=!0,L&&(typeof L.read=="function"&&(this._read=L.read),typeof L.destroy=="function"&&(this._destroy=L.destroy)),s.call(this)}function ae(L,X,U,K,se){g("readableAddChunk",X);var ne,ce=L._readableState;if(X===null)ce.reading=!1,function(ke,me){if(g("onEofChunk"),!me.ended){if(me.decoder){var ve=me.decoder.end();ve&&ve.length&&(me.buffer.push(ve),me.length+=me.objectMode?1:ve.length)}me.ended=!0,me.sync?n(ke):(me.needReadable=!1,me.emittedReadable||(me.emittedReadable=!0,t(ke)))}}(L,ce);else if(se||(ne=function(ke,me){var ve,je;return je=me,p.isBuffer(je)||je instanceof c||typeof me=="string"||me===void 0||ke.objectMode||(ve=new A("chunk",["string","Buffer","Uint8Array"],me)),ve}(ce,X)),ne)B(L,ne);else if(ce.objectMode||X&&X.length>0)if(typeof X=="string"||ce.objectMode||Object.getPrototypeOf(X)===p.prototype||(X=function(ke){return p.from(ke)}(X)),K)ce.endEmitted?B(L,new P):e(L,ce,X,!0);else if(ce.ended)B(L,new x);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!U?(X=ce.decoder.write(X),ce.objectMode||X.length!==0?e(L,ce,X,!1):o(L,ce)):e(L,ce,X,!1)}else K||(ce.reading=!1,o(L,ce));return!ce.ended&&(ce.length<ce.highWaterMark||ce.length===0)}function e(L,X,U,K){X.flowing&&X.length===0&&!X.sync?(X.awaitDrain=0,L.emit("data",U)):(X.length+=X.objectMode?1:U.length,K?X.buffer.unshift(U):X.buffer.push(U),X.needReadable&&n(L)),o(L,X)}Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(L){this._readableState&&(this._readableState.destroyed=L)}}),J.prototype.destroy=b.destroy,J.prototype._undestroy=b.undestroy,J.prototype._destroy=function(L,X){X(L)},J.prototype.push=function(L,X){var U,K=this._readableState;return K.objectMode?U=!0:typeof L=="string"&&((X=X||K.defaultEncoding)!==K.encoding&&(L=p.from(L,X),X=""),U=!0),ae(this,L,X,!1,U)},J.prototype.unshift=function(L){return ae(this,L,null,!0,!1)},J.prototype.isPaused=function(){return this._readableState.flowing===!1},J.prototype.setEncoding=function(L){f||(f=y(2553).s);var X=new f(L);this._readableState.decoder=X,this._readableState.encoding=this._readableState.decoder.encoding;for(var U=this._readableState.buffer.head,K="";U!==null;)K+=X.write(U.data),U=U.next;return this._readableState.buffer.clear(),K!==""&&this._readableState.buffer.push(K),this._readableState.length=K.length,this};var r=1073741824;function i(L,X){return L<=0||X.length===0&&X.ended?0:X.objectMode?1:L!=L?X.flowing&&X.length?X.buffer.head.data.length:X.length:(L>X.highWaterMark&&(X.highWaterMark=function(U){return U>=r?U=r:(U--,U|=U>>>1,U|=U>>>2,U|=U>>>4,U|=U>>>8,U|=U>>>16,U++),U}(L)),L<=X.length?L:X.ended?X.length:(X.needReadable=!0,0))}function n(L){var X=L._readableState;g("emitReadable",X.needReadable,X.emittedReadable),X.needReadable=!1,X.emittedReadable||(g("emitReadable",X.flowing),X.emittedReadable=!0,w.nextTick(t,L))}function t(L){var X=L._readableState;g("emitReadable_",X.destroyed,X.length,X.ended),X.destroyed||!X.length&&!X.ended||(L.emit("readable"),X.emittedReadable=!1),X.needReadable=!X.flowing&&!X.ended&&X.length<=X.highWaterMark,I(L)}function o(L,X){X.readingMore||(X.readingMore=!0,w.nextTick(a,L,X))}function a(L,X){for(;!X.reading&&!X.ended&&(X.length<X.highWaterMark||X.flowing&&X.length===0);){var U=X.length;if(g("maybeReadMore read 0"),L.read(0),U===X.length)break}X.readingMore=!1}function T(L){var X=L._readableState;X.readableListening=L.listenerCount("readable")>0,X.resumeScheduled&&!X.paused?X.flowing=!0:L.listenerCount("data")>0&&L.resume()}function C(L){g("readable nexttick read 0"),L.read(0)}function N(L,X){g("resume",X.reading),X.reading||L.read(0),X.resumeScheduled=!1,L.emit("resume"),I(L),X.flowing&&!X.reading&&L.read(0)}function I(L){var X=L._readableState;for(g("flow",X.flowing);X.flowing&&L.read()!==null;);}function R(L,X){return X.length===0?null:(X.objectMode?U=X.buffer.shift():!L||L>=X.length?(U=X.decoder?X.buffer.join(""):X.buffer.length===1?X.buffer.first():X.buffer.concat(X.length),X.buffer.clear()):U=X.buffer.consume(L,X.decoder),U);var U}function q(L){var X=L._readableState;g("endReadable",X.endEmitted),X.endEmitted||(X.ended=!0,w.nextTick(Z,X,L))}function Z(L,X){if(g("endReadableNT",L.endEmitted,L.length),!L.endEmitted&&L.length===0&&(L.endEmitted=!0,X.readable=!1,X.emit("end"),L.autoDestroy)){var U=X._writableState;(!U||U.autoDestroy&&U.finished)&&X.destroy()}}function te(L,X){for(var U=0,K=L.length;U<K;U++)if(L[U]===X)return U;return-1}J.prototype.read=function(L){g("read",L),L=parseInt(L,10);var X=this._readableState,U=L;if(L!==0&&(X.emittedReadable=!1),L===0&&X.needReadable&&((X.highWaterMark!==0?X.length>=X.highWaterMark:X.length>0)||X.ended))return g("read: emitReadable",X.length,X.ended),X.length===0&&X.ended?q(this):n(this),null;if((L=i(L,X))===0&&X.ended)return X.length===0&&q(this),null;var K,se=X.needReadable;return g("need readable",se),(X.length===0||X.length-L<X.highWaterMark)&&g("length less than watermark",se=!0),X.ended||X.reading?g("reading or ended",se=!1):se&&(g("do read"),X.reading=!0,X.sync=!0,X.length===0&&(X.needReadable=!0),this._read(X.highWaterMark),X.sync=!1,X.reading||(L=i(U,X))),(K=L>0?R(L,X):null)===null?(X.needReadable=X.length<=X.highWaterMark,L=0):(X.length-=L,X.awaitDrain=0),X.length===0&&(X.ended||(X.needReadable=!0),U!==L&&X.ended&&q(this)),K!==null&&this.emit("data",K),K},J.prototype._read=function(L){B(this,new j("_read()"))},J.prototype.pipe=function(L,X){var U=this,K=this._readableState;switch(K.pipesCount){case 0:K.pipes=L;break;case 1:K.pipes=[K.pipes,L];break;default:K.pipes.push(L)}K.pipesCount+=1,g("pipe count=%d opts=%j",K.pipesCount,X);var se=X&&X.end===!1||L===w.stdout||L===w.stderr?Ae:ne;function ne(){g("onend"),L.end()}K.endEmitted?w.nextTick(se):U.once("end",se),L.on("unpipe",function G(Y,F){g("onunpipe"),Y===U&&F&&F.hasUnpiped===!1&&(F.hasUnpiped=!0,g("cleanup"),L.removeListener("close",je),L.removeListener("finish",we),L.removeListener("drain",ce),L.removeListener("error",ve),L.removeListener("unpipe",G),U.removeListener("end",ne),U.removeListener("end",Ae),U.removeListener("data",me),ke=!0,!K.awaitDrain||L._writableState&&!L._writableState.needDrain||ce())});var ce=function(G){return function(){var Y=G._readableState;g("pipeOnDrain",Y.awaitDrain),Y.awaitDrain&&Y.awaitDrain--,Y.awaitDrain===0&&M(G,"data")&&(Y.flowing=!0,I(G))}}(U);L.on("drain",ce);var ke=!1;function me(G){g("ondata");var Y=L.write(G);g("dest.write",Y),Y===!1&&((K.pipesCount===1&&K.pipes===L||K.pipesCount>1&&te(K.pipes,L)!==-1)&&!ke&&(g("false write response, pause",K.awaitDrain),K.awaitDrain++),U.pause())}function ve(G){g("onerror",G),Ae(),L.removeListener("error",ve),M(L,"error")===0&&B(L,G)}function je(){L.removeListener("finish",we),Ae()}function we(){g("onfinish"),L.removeListener("close",je),Ae()}function Ae(){g("unpipe"),U.unpipe(L)}return U.on("data",me),function(G,Y,F){if(typeof G.prependListener=="function")return G.prependListener(Y,F);G._events&&G._events[Y]?Array.isArray(G._events[Y])?G._events[Y].unshift(F):G._events[Y]=[F,G._events[Y]]:G.on(Y,F)}(L,"error",ve),L.once("close",je),L.once("finish",we),L.emit("pipe",U),K.flowing||(g("pipe resume"),U.resume()),L},J.prototype.unpipe=function(L){var X=this._readableState,U={hasUnpiped:!1};if(X.pipesCount===0)return this;if(X.pipesCount===1)return L&&L!==X.pipes||(L||(L=X.pipes),X.pipes=null,X.pipesCount=0,X.flowing=!1,L&&L.emit("unpipe",this,U)),this;if(!L){var K=X.pipes,se=X.pipesCount;X.pipes=null,X.pipesCount=0,X.flowing=!1;for(var ne=0;ne<se;ne++)K[ne].emit("unpipe",this,{hasUnpiped:!1});return this}var ce=te(X.pipes,L);return ce===-1||(X.pipes.splice(ce,1),X.pipesCount-=1,X.pipesCount===1&&(X.pipes=X.pipes[0]),L.emit("unpipe",this,U)),this},J.prototype.on=function(L,X){var U=s.prototype.on.call(this,L,X),K=this._readableState;return L==="data"?(K.readableListening=this.listenerCount("readable")>0,K.flowing!==!1&&this.resume()):L==="readable"&&(K.endEmitted||K.readableListening||(K.readableListening=K.needReadable=!0,K.flowing=!1,K.emittedReadable=!1,g("on readable",K.length,K.reading),K.length?n(this):K.reading||w.nextTick(C,this))),U},J.prototype.addListener=J.prototype.on,J.prototype.removeListener=function(L,X){var U=s.prototype.removeListener.call(this,L,X);return L==="readable"&&w.nextTick(T,this),U},J.prototype.removeAllListeners=function(L){var X=s.prototype.removeAllListeners.apply(this,arguments);return L!=="readable"&&L!==void 0||w.nextTick(T,this),X},J.prototype.resume=function(){var L=this._readableState;return L.flowing||(g("resume"),L.flowing=!L.readableListening,function(X,U){U.resumeScheduled||(U.resumeScheduled=!0,w.nextTick(N,X,U))}(this,L)),L.paused=!1,this},J.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},J.prototype.wrap=function(L){var X=this,U=this._readableState,K=!1;for(var se in L.on("end",function(){if(g("wrapped end"),U.decoder&&!U.ended){var ce=U.decoder.end();ce&&ce.length&&X.push(ce)}X.push(null)}),L.on("data",function(ce){g("wrapped data"),U.decoder&&(ce=U.decoder.write(ce)),U.objectMode&&ce==null||(U.objectMode||ce&&ce.length)&&(X.push(ce)||(K=!0,L.pause()))}),L)this[se]===void 0&&typeof L[se]=="function"&&(this[se]=function(ce){return function(){return L[ce].apply(L,arguments)}}(se));for(var ne=0;ne<z.length;ne++)L.on(z[ne],this.emit.bind(this,z[ne]));return this._read=function(ce){g("wrapped _read",ce),K&&(K=!1,L.resume())},this},typeof Symbol=="function"&&(J.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=y(5850)),m(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(L){this._readableState&&(this._readableState.flowing=L)}}),J._fromList=R,Object.defineProperty(J.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(J.from=function(L,X){return h===void 0&&(h=y(5167)),h(J,L,X)})},4605:(W,S,y)=>{W.exports=l;var k=y(4281).q,w=k.ERR_METHOD_NOT_IMPLEMENTED,g=k.ERR_MULTIPLE_CALLBACK,M=k.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=k.ERR_TRANSFORM_WITH_LENGTH_0,p=y(6753);function c(h,u){var b=this._transformState;b.transforming=!1;var v=b.writecb;if(v===null)return this.emit("error",new g);b.writechunk=null,b.writecb=null,u!=null&&this.push(u),v(h);var _=this._readableState;_.reading=!1,(_.needReadable||_.length<_.highWaterMark)&&this._read(_.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?m(this,null,null):this._flush(function(u,b){m(h,u,b)})}function m(h,u,b){if(u)return h.emit("error",u);if(b!=null&&h.push(b),h._writableState.length)throw new s;if(h._transformState.transforming)throw new M;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,b){b(new w("_transform()"))},l.prototype._write=function(h,u,b){var v=this._transformState;if(v.writecb=b,v.writechunk=h,v.writeencoding=u,!v.transforming){var _=this._readableState;(v.needTransform||_.needReadable||_.length<_.highWaterMark)&&this._read(_.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(b){u(b)})}},4229:(W,S,y)=>{var k,w=y(4155);function g(o){var a=this;this.next=null,this.entry=null,this.finish=function(){(function(T,C,N){var I=T.entry;for(T.entry=null;I;){var R=I.callback;C.pendingcb--,R(void 0),I=I.next}C.corkedRequestsFree.next=T})(a,o)}}W.exports=J,J.WritableState=ee;var M,s={deprecate:y(4927)},p=y(2503),c=y(8764).Buffer,l=y.g.Uint8Array||function(){},f=y(1195),m=y(2457).getHighWaterMark,h=y(4281).q,u=h.ERR_INVALID_ARG_TYPE,b=h.ERR_METHOD_NOT_IMPLEMENTED,v=h.ERR_MULTIPLE_CALLBACK,_=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 z(){}function ee(o,a,T){k=k||y(6753),o=o||{},typeof T!="boolean"&&(T=a instanceof k),this.objectMode=!!o.objectMode,T&&(this.objectMode=this.objectMode||!!o.writableObjectMode),this.highWaterMark=m(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(I,R){var q=I._writableState,Z=q.sync,te=q.writecb;if(typeof te!="function")throw new v;if(function(X){X.writing=!1,X.writecb=null,X.length-=X.writelen,X.writelen=0}(q),R)(function(X,U,K,se,ne){--U.pendingcb,K?(w.nextTick(ne,se),w.nextTick(t,X,U),X._writableState.errorEmitted=!0,B(X,se)):(ne(se),X._writableState.errorEmitted=!0,B(X,se),t(X,U))})(I,q,Z,R,te);else{var L=i(q)||I.destroyed;L||q.corked||q.bufferProcessing||!q.bufferedRequest||r(I,q),Z?w.nextTick(e,I,q,L,te):e(I,q,L,te)}})(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 g(this)}function J(o){var a=this instanceof(k=k||y(6753));if(!a&&!M.call(J,this))return new J(o);this._writableState=new ee(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 ae(o,a,T,C,N,I,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,I,a.onwrite),a.sync=!1}function e(o,a,T,C){T||function(N,I){I.length===0&&I.needDrain&&(I.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),I=a.corkedRequestsFree;I.entry=T;for(var R=0,q=!0;T;)N[R]=T,T.isBuf||(q=!1),T=T.next,R+=1;N.allBuffers=q,ae(o,a,!0,a.length,N,"",I.finish),a.pendingcb++,a.lastBufferedRequest=null,I.next?(a.corkedRequestsFree=I.next,I.next=null):a.corkedRequestsFree=new g(a),a.bufferedRequestCount=0}else{for(;T;){var Z=T.chunk,te=T.encoding,L=T.callback;if(ae(o,a,!1,a.objectMode?1:Z.length,Z,te,L),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,I){I.prefinished||I.finalCalled||(typeof N._final!="function"||I.destroyed?(I.prefinished=!0,N.emit("prefinish")):(I.pendingcb++,I.finalCalled=!0,w.nextTick(n,N,I)))}(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),ee.prototype.getBuffer=function(){for(var o=this.bufferedRequest,a=[];o;)a.push(o),o=o.next;return a},function(){try{Object.defineProperty(ee.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(o){}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(M=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(o){return!!M.call(this,o)||this===J&&o&&o._writableState instanceof ee}})):M=function(o){return o instanceof this},J.prototype.pipe=function(){B(this,new _)},J.prototype.write=function(o,a,T){var C,N=this._writableState,I=!1,R=!N.objectMode&&(C=o,c.isBuffer(C)||C instanceof l);return R&&!c.isBuffer(o)&&(o=function(q){return c.from(q)}(o)),typeof a=="function"&&(T=a,a=null),R?a="buffer":a||(a=N.defaultEncoding),typeof T!="function"&&(T=z),N.ending?function(q,Z){var te=new j;B(q,te),w.nextTick(Z,te)}(this,T):(R||function(q,Z,te,L){var X;return te===null?X=new x:typeof te=="string"||Z.objectMode||(X=new u("chunk",["string","Buffer"],te)),!X||(B(q,X),w.nextTick(L,X),!1)}(this,N,o,T))&&(N.pendingcb++,I=function(q,Z,te,L,X,U){if(!te){var K=function(ke,me,ve){return ke.objectMode||ke.decodeStrings===!1||typeof me!="string"||(me=c.from(me,ve)),me}(Z,L,X);L!==K&&(te=!0,X="buffer",L=K)}var se=Z.objectMode?1:L.length;Z.length+=se;var ne=Z.length<Z.highWaterMark;if(ne||(Z.needDrain=!0),Z.writing||Z.corked){var ce=Z.lastBufferedRequest;Z.lastBufferedRequest={chunk:L,encoding:X,isBuf:te,callback:U,next:null},ce?ce.next=Z.lastBufferedRequest:Z.bufferedRequest=Z.lastBufferedRequest,Z.bufferedRequestCount+=1}else ae(q,Z,!1,se,L,X,U);return ne}(this,N,R,o,a,T)),I},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 b("_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,I,R){I.ending=!0,t(N,I),R&&(I.finished?w.nextTick(R):N.once("finish",R)),I.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:(W,S,y)=>{var k,w=y(4155);function g(x,j,P){return j in x?Object.defineProperty(x,j,{value:P,enumerable:!0,configurable:!0,writable:!0}):x[j]=P,x}var M=y(8610),s=Symbol("lastResolve"),p=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),m=Symbol("handlePromise"),h=Symbol("stream");function u(x,j){return{value:x,done:j}}function b(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 v(x){w.nextTick(b,x)}var _=Object.getPrototypeOf(function(){}),A=Object.setPrototypeOf((g(k={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(ee,J){w.nextTick(function(){x[c]?J(x[c]):ee(u(void 0,!0))})});var P,B=this[f];if(B)P=new Promise(function(ee,J){return function(ae,e){ee.then(function(){J[l]?ae(u(void 0,!0)):J[m](ae,e)},e)}}(B,this));else{var z=this[h].read();if(z!==null)return Promise.resolve(u(z,!1));P=new Promise(this[m])}return this[f]=P,P}},Symbol.asyncIterator,function(){return this}),g(k,"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))})})}),k),_);W.exports=function(x){var j,P=Object.create(A,(g(j={},h,{value:x,writable:!0}),g(j,s,{value:null,writable:!0}),g(j,p,{value:null,writable:!0}),g(j,c,{value:null,writable:!0}),g(j,l,{value:x._readableState.endEmitted,writable:!0}),g(j,m,{value:function(B,z){var ee=P[h].read();ee?(P[f]=null,P[s]=null,P[p]=null,B(u(ee,!1))):(P[s]=B,P[p]=z)},writable:!0}),j));return P[f]=null,M(x,function(B){if(B&&B.code!=="ERR_STREAM_PREMATURE_CLOSE"){var z=P[p];return z!==null&&(P[f]=null,P[s]=null,P[p]=null,z(B)),void(P[c]=B)}var ee=P[s];ee!==null&&(P[f]=null,P[s]=null,P[p]=null,ee(u(void 0,!0))),P[l]=!0}),x.on("readable",v.bind(null,P)),P}},7327:(W,S,y)=>{function k(c,l){var f=Object.keys(c);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(c);l&&(m=m.filter(function(h){return Object.getOwnPropertyDescriptor(c,h).enumerable})),f.push.apply(f,m)}return f}function w(c,l,f){return l in c?Object.defineProperty(c,l,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[l]=f,c}function g(c,l){for(var f=0;f<l.length;f++){var m=l[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(c,m.key,m)}}var M=y(8764).Buffer,s=y(2361).inspect,p=s&&s.custom||"inspect";W.exports=function(){function c(){(function(m,h){if(!(m 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(m){var h={data:m,next:null};this.length>0?this.tail.next=h:this.head=h,this.tail=h,++this.length}},{key:"unshift",value:function(m){var h={data:m,next:this.head};this.length===0&&(this.tail=h),this.head=h,++this.length}},{key:"shift",value:function(){if(this.length!==0){var m=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,m}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(m){if(this.length===0)return"";for(var h=this.head,u=""+h.data;h=h.next;)u+=m+h.data;return u}},{key:"concat",value:function(m){if(this.length===0)return M.alloc(0);for(var h,u,b,v=M.allocUnsafe(m>>>0),_=this.head,A=0;_;)h=_.data,u=v,b=A,M.prototype.copy.call(h,u,b),A+=_.data.length,_=_.next;return v}},{key:"consume",value:function(m,h){var u;return m<this.head.data.length?(u=this.head.data.slice(0,m),this.head.data=this.head.data.slice(m)):u=m===this.head.data.length?this.shift():h?this._getString(m):this._getBuffer(m),u}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(m){var h=this.head,u=1,b=h.data;for(m-=b.length;h=h.next;){var v=h.data,_=m>v.length?v.length:m;if(_===v.length?b+=v:b+=v.slice(0,m),(m-=_)==0){_===v.length?(++u,h.next?this.head=h.next:this.head=this.tail=null):(this.head=h,h.data=v.slice(_));break}++u}return this.length-=u,b}},{key:"_getBuffer",value:function(m){var h=M.allocUnsafe(m),u=this.head,b=1;for(u.data.copy(h),m-=u.data.length;u=u.next;){var v=u.data,_=m>v.length?v.length:m;if(v.copy(h,h.length-m,0,_),(m-=_)==0){_===v.length?(++b,u.next?this.head=u.next:this.head=this.tail=null):(this.head=u,u.data=v.slice(_));break}++b}return this.length-=b,h}},{key:p,value:function(m,h){return s(this,function(u){for(var b=1;b<arguments.length;b++){var v=arguments[b]!=null?arguments[b]:{};b%2?k(Object(v),!0).forEach(function(_){w(u,_,v[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(v)):k(Object(v)).forEach(function(_){Object.defineProperty(u,_,Object.getOwnPropertyDescriptor(v,_))})}return u}({},h,{depth:0,customInspect:!1}))}}],f&&g(l.prototype,f),c}()},1195:(W,S,y)=>{var k=y(4155);function w(s,p){M(s,p),g(s)}function g(s){s._writableState&&!s._writableState.emitClose||s._readableState&&!s._readableState.emitClose||s.emit("close")}function M(s,p){s.emit("error",p)}W.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,k.nextTick(M,this,s)):k.nextTick(M,this,s)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(s||null,function(m){!p&&m?c._writableState?c._writableState.errorEmitted?k.nextTick(g,c):(c._writableState.errorEmitted=!0,k.nextTick(w,c,m)):k.nextTick(w,c,m):p?(k.nextTick(g,c),p(m)):k.nextTick(g,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:(W,S,y)=>{var k=y(4281).q.ERR_STREAM_PREMATURE_CLOSE;function w(){}W.exports=function g(M,s,p){if(typeof s=="function")return g(M,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),z=0;z<P;z++)B[z]=arguments[z];x.apply(this,B)}}}(p||w);var c=s.readable||s.readable!==!1&&M.readable,l=s.writable||s.writable!==!1&&M.writable,f=function(){M.writable||h()},m=M._writableState&&M._writableState.finished,h=function(){l=!1,m=!0,c||p.call(M)},u=M._readableState&&M._readableState.endEmitted,b=function(){c=!1,u=!0,l||p.call(M)},v=function(x){p.call(M,x)},_=function(){var x;return c&&!u?(M._readableState&&M._readableState.ended||(x=new k),p.call(M,x)):l&&!m?(M._writableState&&M._writableState.ended||(x=new k),p.call(M,x)):void 0},A=function(){M.req.on("finish",h)};return function(x){return x.setHeader&&typeof x.abort=="function"}(M)?(M.on("complete",h),M.on("abort",_),M.req?A():M.on("request",A)):l&&!M._writableState&&(M.on("end",f),M.on("close",f)),M.on("end",b),M.on("finish",h),s.error!==!1&&M.on("error",v),M.on("close",_),function(){M.removeListener("complete",h),M.removeListener("abort",_),M.removeListener("request",A),M.req&&M.req.removeListener("finish",h),M.removeListener("end",f),M.removeListener("close",f),M.removeListener("finish",h),M.removeListener("end",b),M.removeListener("error",v),M.removeListener("close",_)}}},5167:W=>{W.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(W,S,y)=>{var k,w=y(4281).q,g=w.ERR_MISSING_ARGS,M=w.ERR_STREAM_DESTROYED;function s(l){if(l)throw l}function p(l){l()}function c(l,f){return l.pipe(f)}W.exports=function(){for(var l=arguments.length,f=new Array(l),m=0;m<l;m++)f[m]=arguments[m];var h,u=function(v){return v.length?typeof v[v.length-1]!="function"?s:v.pop():s}(f);if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new g("streams");var b=f.map(function(v,_){var A=_<f.length-1;return function(x,j,P,B){B=function(J){var ae=!1;return function(){ae||(ae=!0,J.apply(void 0,arguments))}}(B);var z=!1;x.on("close",function(){z=!0}),k===void 0&&(k=y(8610)),k(x,{readable:j,writable:P},function(J){if(J)return B(J);z=!0,B()});var ee=!1;return function(J){if(!z&&!ee)return ee=!0,function(ae){return ae.setHeader&&typeof ae.abort=="function"}(x)?x.abort():typeof x.destroy=="function"?x.destroy():void B(J||new M("pipe"))}}(v,A,_>0,function(x){h||(h=x),x&&b.forEach(p),A||(b.forEach(p),u(h))})});return f.reduce(c)}},2457:(W,S,y)=>{var k=y(4281).q.ERR_INVALID_OPT_VALUE;W.exports={getHighWaterMark:function(w,g,M,s){var p=function(c,l,f){return c.highWaterMark!=null?c.highWaterMark:l?c[f]:null}(g,s,M);if(p!=null){if(!isFinite(p)||Math.floor(p)!==p||p<0)throw new k(s?M:"highWaterMark",p);return Math.floor(p)}return w.objectMode?16:16384}}},2503:(W,S,y)=>{W.exports=y(7187).EventEmitter},8473:(W,S,y)=>{(S=W.exports=y(9481)).Stream=S,S.Readable=S,S.Writable=y(4229),S.Duplex=y(6753),S.Transform=y(4605),S.PassThrough=y(2725),S.finished=y(8610),S.pipeline=y(9946)},9785:(W,S,y)=>{var k=y(8764).Buffer,w=y(5717),g=y(3349),M=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],m=[1352829926,1548603684,1836072691,2053994217,0];function h(){g.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 b(j,P,B,z,ee,J,ae,e){return u(j+(P^B^z)+J+ae|0,e)+ee|0}function v(j,P,B,z,ee,J,ae,e){return u(j+(P&B|~P&z)+J+ae|0,e)+ee|0}function _(j,P,B,z,ee,J,ae,e){return u(j+((P|~B)^z)+J+ae|0,e)+ee|0}function A(j,P,B,z,ee,J,ae,e){return u(j+(P&z|B&~z)+J+ae|0,e)+ee|0}function x(j,P,B,z,ee,J,ae,e){return u(j+(P^(B|~z))+J+ae|0,e)+ee|0}w(h,g),h.prototype._update=function(){for(var j=M,P=0;P<16;++P)j[P]=this._block.readInt32LE(4*P);for(var B=0|this._a,z=0|this._b,ee=0|this._c,J=0|this._d,ae=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=b(B,z,ee,J,ae,j[s[o]],f[0],c[o]),T=x(e,r,i,n,t,j[p[o]],m[0],l[o])):o<32?(a=v(B,z,ee,J,ae,j[s[o]],f[1],c[o]),T=A(e,r,i,n,t,j[p[o]],m[1],l[o])):o<48?(a=_(B,z,ee,J,ae,j[s[o]],f[2],c[o]),T=_(e,r,i,n,t,j[p[o]],m[2],l[o])):o<64?(a=A(B,z,ee,J,ae,j[s[o]],f[3],c[o]),T=v(e,r,i,n,t,j[p[o]],m[3],l[o])):(a=x(B,z,ee,J,ae,j[s[o]],f[4],c[o]),T=b(e,r,i,n,t,j[p[o]],m[4],l[o])),B=ae,ae=J,J=u(ee,10),ee=z,z=a,e=t,t=n,n=u(i,10),i=r,r=T}var C=this._b+ee+n|0;this._b=this._c+J+t|0,this._c=this._d+ae+e|0,this._d=this._e+B+r|0,this._e=this._a+z+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=k.alloc?k.alloc(20):new k(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},W.exports=h},9509:(W,S,y)=>{var k=y(8764),w=k.Buffer;function g(s,p){for(var c in s)p[c]=s[c]}function M(s,p,c){return w(s,p,c)}w.from&&w.alloc&&w.allocUnsafe&&w.allocUnsafeSlow?W.exports=k:(g(k,S),S.Buffer=M),M.prototype=Object.create(w.prototype),g(w,M),M.from=function(s,p,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return w(s,p,c)},M.alloc=function(s,p,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var l=w(s);return p!==void 0?typeof c=="string"?l.fill(p,c):l.fill(p):l.fill(0),l},M.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return w(s)},M.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return k.SlowBuffer(s)}},2399:(W,S,y)=>{var k,w=y(4155),g=y(8764),M=g.Buffer,s={};for(k in g)g.hasOwnProperty(k)&&k!=="SlowBuffer"&&k!=="Buffer"&&(s[k]=g[k]);var p=s.Buffer={};for(k in M)M.hasOwnProperty(k)&&k!=="allocUnsafe"&&k!=="allocUnsafeSlow"&&(p[k]=M[k]);if(s.Buffer.prototype=M.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 M(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 m=M(c);return l&&l.length!==0?typeof f=="string"?m.fill(l,f):m.fill(l):m.fill(0),m}),!s.kStringMaxLength)try{s.kStringMaxLength=w.binding("buffer").kStringMaxLength}catch(c){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),W.exports=s},6099:(W,S,y)=>{var k=y(8764).Buffer;(function(w){w.parser=function(U,K){return new s(U,K)},w.SAXParser=s,w.SAXStream=c,w.createStream=function(U,K){return new c(U,K)},w.MAX_BUFFER_LENGTH=65536;var g,M=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function s(U,K){if(!(this instanceof s))return new s(U,K);var se=this;(function(ne){for(var ce=0,ke=M.length;ce<ke;ce++)ne[M[ce]]=""})(se),se.q=se.c="",se.bufferCheckPosition=w.MAX_BUFFER_LENGTH,se.opt=K||{},se.opt.lowercase=se.opt.lowercase||se.opt.lowercasetags,se.looseCase=se.opt.lowercase?"toLowerCase":"toUpperCase",se.tags=[],se.closed=se.closedRoot=se.sawRoot=!1,se.tag=se.error=null,se.strict=!!U,se.noscript=!(!U&&!se.opt.noscript),se.state=e.BEGIN,se.strictEntities=se.opt.strictEntities,se.ENTITIES=se.strictEntities?Object.create(w.XML_ENTITIES):Object.create(w.ENTITIES),se.attribList=[],se.opt.xmlns&&(se.ns=Object.create(u)),se.trackPosition=se.opt.position!==!1,se.trackPosition&&(se.position=se.line=se.column=0),i(se,"onready")}w.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(U){function K(){}return K.prototype=U,new K}),Object.keys||(Object.keys=function(U){var K=[];for(var se in U)U.hasOwnProperty(se)&&K.push(se);return K}),s.prototype={end:function(){T(this)},write:function(U){var K=this;if(this.error)throw this.error;if(K.closed)return a(K,"Cannot write after close. Assign an onready handler.");if(U===null)return T(K);typeof U=="object"&&(U=U.toString());for(var se=0,ne="";ne=X(U,se++),K.c=ne,ne;)switch(K.trackPosition&&(K.position++,ne===`
|
|
93
|
+
`?(K.line++,K.column=0):K.column++),K.state){case e.BEGIN:if(K.state=e.BEGIN_WHITESPACE,ne==="\uFEFF")continue;L(K,ne);continue;case e.BEGIN_WHITESPACE:L(K,ne);continue;case e.TEXT:if(K.sawRoot&&!K.closedRoot){for(var ce=se-1;ne&&ne!=="<"&&ne!=="&";)(ne=X(U,se++))&&K.trackPosition&&(K.position++,ne===`
|
|
94
|
+
`?(K.line++,K.column=0):K.column++);K.textNode+=U.substring(ce,se-1)}ne!=="<"||K.sawRoot&&K.closedRoot&&!K.strict?(x(ne)||K.sawRoot&&!K.closedRoot||C(K,"Text data outside of root node."),ne==="&"?K.state=e.TEXT_ENTITY:K.textNode+=ne):(K.state=e.OPEN_WAKA,K.startTagPosition=K.position);continue;case e.SCRIPT:ne==="<"?K.state=e.SCRIPT_ENDING:K.script+=ne;continue;case e.SCRIPT_ENDING:ne==="/"?K.state=e.CLOSE_TAG:(K.script+="<"+ne,K.state=e.SCRIPT);continue;case e.OPEN_WAKA:if(ne==="!")K.state=e.SGML_DECL,K.sgmlDecl="";else if(!x(ne))if(B(b,ne))K.state=e.OPEN_TAG,K.tagName=ne;else if(ne==="/")K.state=e.CLOSE_TAG,K.tagName="";else if(ne==="?")K.state=e.PROC_INST,K.procInstName=K.procInstBody="";else{if(C(K,"Unencoded <"),K.startTagPosition+1<K.position){var ke=K.position-K.startTagPosition;ne=new Array(ke).join(" ")+ne}K.textNode+="<"+ne,K.state=e.TEXT}continue;case e.SGML_DECL:(K.sgmlDecl+ne).toUpperCase()===l?(n(K,"onopencdata"),K.state=e.CDATA,K.sgmlDecl="",K.cdata=""):K.sgmlDecl+ne==="--"?(K.state=e.COMMENT,K.comment="",K.sgmlDecl=""):(K.sgmlDecl+ne).toUpperCase()===f?(K.state=e.DOCTYPE,(K.doctype||K.sawRoot)&&C(K,"Inappropriately located doctype declaration"),K.doctype="",K.sgmlDecl=""):ne===">"?(n(K,"onsgmldeclaration",K.sgmlDecl),K.sgmlDecl="",K.state=e.TEXT):(j(ne)&&(K.state=e.SGML_DECL_QUOTED),K.sgmlDecl+=ne);continue;case e.SGML_DECL_QUOTED:ne===K.q&&(K.state=e.SGML_DECL,K.q=""),K.sgmlDecl+=ne;continue;case e.DOCTYPE:ne===">"?(K.state=e.TEXT,n(K,"ondoctype",K.doctype),K.doctype=!0):(K.doctype+=ne,ne==="["?K.state=e.DOCTYPE_DTD:j(ne)&&(K.state=e.DOCTYPE_QUOTED,K.q=ne));continue;case e.DOCTYPE_QUOTED:K.doctype+=ne,ne===K.q&&(K.q="",K.state=e.DOCTYPE);continue;case e.DOCTYPE_DTD:K.doctype+=ne,ne==="]"?K.state=e.DOCTYPE:j(ne)&&(K.state=e.DOCTYPE_DTD_QUOTED,K.q=ne);continue;case e.DOCTYPE_DTD_QUOTED:K.doctype+=ne,ne===K.q&&(K.state=e.DOCTYPE_DTD,K.q="");continue;case e.COMMENT:ne==="-"?K.state=e.COMMENT_ENDING:K.comment+=ne;continue;case e.COMMENT_ENDING:ne==="-"?(K.state=e.COMMENT_ENDED,K.comment=o(K.opt,K.comment),K.comment&&n(K,"oncomment",K.comment),K.comment=""):(K.comment+="-"+ne,K.state=e.COMMENT);continue;case e.COMMENT_ENDED:ne!==">"?(C(K,"Malformed comment"),K.comment+="--"+ne,K.state=e.COMMENT):K.state=e.TEXT;continue;case e.CDATA:ne==="]"?K.state=e.CDATA_ENDING:K.cdata+=ne;continue;case e.CDATA_ENDING:ne==="]"?K.state=e.CDATA_ENDING_2:(K.cdata+="]"+ne,K.state=e.CDATA);continue;case e.CDATA_ENDING_2:ne===">"?(K.cdata&&n(K,"oncdata",K.cdata),n(K,"onclosecdata"),K.cdata="",K.state=e.TEXT):ne==="]"?K.cdata+="]":(K.cdata+="]]"+ne,K.state=e.CDATA);continue;case e.PROC_INST:ne==="?"?K.state=e.PROC_INST_ENDING:x(ne)?K.state=e.PROC_INST_BODY:K.procInstName+=ne;continue;case e.PROC_INST_BODY:if(!K.procInstBody&&x(ne))continue;ne==="?"?K.state=e.PROC_INST_ENDING:K.procInstBody+=ne;continue;case e.PROC_INST_ENDING:ne===">"?(n(K,"onprocessinginstruction",{name:K.procInstName,body:K.procInstBody}),K.procInstName=K.procInstBody="",K.state=e.TEXT):(K.procInstBody+="?"+ne,K.state=e.PROC_INST_BODY);continue;case e.OPEN_TAG:B(v,ne)?K.tagName+=ne:(N(K),ne===">"?q(K):ne==="/"?K.state=e.OPEN_TAG_SLASH:(x(ne)||C(K,"Invalid character in tag name"),K.state=e.ATTRIB));continue;case e.OPEN_TAG_SLASH:ne===">"?(q(K,!0),Z(K)):(C(K,"Forward-slash in opening tag not followed by >"),K.state=e.ATTRIB);continue;case e.ATTRIB:if(x(ne))continue;ne===">"?q(K):ne==="/"?K.state=e.OPEN_TAG_SLASH:B(b,ne)?(K.attribName=ne,K.attribValue="",K.state=e.ATTRIB_NAME):C(K,"Invalid attribute name");continue;case e.ATTRIB_NAME:ne==="="?K.state=e.ATTRIB_VALUE:ne===">"?(C(K,"Attribute without value"),K.attribValue=K.attribName,R(K),q(K)):x(ne)?K.state=e.ATTRIB_NAME_SAW_WHITE:B(v,ne)?K.attribName+=ne:C(K,"Invalid attribute name");continue;case e.ATTRIB_NAME_SAW_WHITE:if(ne==="=")K.state=e.ATTRIB_VALUE;else{if(x(ne))continue;C(K,"Attribute without value"),K.tag.attributes[K.attribName]="",K.attribValue="",n(K,"onattribute",{name:K.attribName,value:""}),K.attribName="",ne===">"?q(K):B(b,ne)?(K.attribName=ne,K.state=e.ATTRIB_NAME):(C(K,"Invalid attribute name"),K.state=e.ATTRIB)}continue;case e.ATTRIB_VALUE:if(x(ne))continue;j(ne)?(K.q=ne,K.state=e.ATTRIB_VALUE_QUOTED):(C(K,"Unquoted attribute value"),K.state=e.ATTRIB_VALUE_UNQUOTED,K.attribValue=ne);continue;case e.ATTRIB_VALUE_QUOTED:if(ne!==K.q){ne==="&"?K.state=e.ATTRIB_VALUE_ENTITY_Q:K.attribValue+=ne;continue}R(K),K.q="",K.state=e.ATTRIB_VALUE_CLOSED;continue;case e.ATTRIB_VALUE_CLOSED:x(ne)?K.state=e.ATTRIB:ne===">"?q(K):ne==="/"?K.state=e.OPEN_TAG_SLASH:B(b,ne)?(C(K,"No whitespace between attributes"),K.attribName=ne,K.attribValue="",K.state=e.ATTRIB_NAME):C(K,"Invalid attribute name");continue;case e.ATTRIB_VALUE_UNQUOTED:if(!P(ne)){ne==="&"?K.state=e.ATTRIB_VALUE_ENTITY_U:K.attribValue+=ne;continue}R(K),ne===">"?q(K):K.state=e.ATTRIB;continue;case e.CLOSE_TAG:if(K.tagName)ne===">"?Z(K):B(v,ne)?K.tagName+=ne:K.script?(K.script+="</"+K.tagName,K.tagName="",K.state=e.SCRIPT):(x(ne)||C(K,"Invalid tagname in closing tag"),K.state=e.CLOSE_TAG_SAW_WHITE);else{if(x(ne))continue;z(b,ne)?K.script?(K.script+="</"+ne,K.state=e.SCRIPT):C(K,"Invalid tagname in closing tag."):K.tagName=ne}continue;case e.CLOSE_TAG_SAW_WHITE:if(x(ne))continue;ne===">"?Z(K):C(K,"Invalid characters in closing tag");continue;case e.TEXT_ENTITY:case e.ATTRIB_VALUE_ENTITY_Q:case e.ATTRIB_VALUE_ENTITY_U:var me,ve;switch(K.state){case e.TEXT_ENTITY:me=e.TEXT,ve="textNode";break;case e.ATTRIB_VALUE_ENTITY_Q:me=e.ATTRIB_VALUE_QUOTED,ve="attribValue";break;case e.ATTRIB_VALUE_ENTITY_U:me=e.ATTRIB_VALUE_UNQUOTED,ve="attribValue"}ne===";"?(K[ve]+=te(K),K.entity="",K.state=me):B(K.entity.length?A:_,ne)?K.entity+=ne:(C(K,"Invalid character in entity name"),K[ve]+="&"+K.entity+ne,K.entity="",K.state=me);continue;default:throw new Error(K,"Unknown state: "+K.state)}return K.position>=K.bufferCheckPosition&&function(je){for(var we=Math.max(w.MAX_BUFFER_LENGTH,10),Ae=0,G=0,Y=M.length;G<Y;G++){var F=je[M[G]].length;if(F>we)switch(M[G]){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: "+M[G])}Ae=Math.max(Ae,F)}var $=w.MAX_BUFFER_LENGTH-Ae;je.bufferCheckPosition=$+je.position}(K),K},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var U;t(U=this),U.cdata!==""&&(n(U,"oncdata",U.cdata),U.cdata=""),U.script!==""&&(n(U,"onscript",U.script),U.script="")}};try{g=y(2830).Stream}catch(U){g=function(){}}var p=w.EVENTS.filter(function(U){return U!=="error"&&U!=="end"});function c(U,K){if(!(this instanceof c))return new c(U,K);g.apply(this),this._parser=new s(U,K),this.writable=!0,this.readable=!0;var se=this;this._parser.onend=function(){se.emit("end")},this._parser.onerror=function(ne){se.emit("error",ne),se._parser.error=null},this._decoder=null,p.forEach(function(ne){Object.defineProperty(se,"on"+ne,{get:function(){return se._parser["on"+ne]},set:function(ce){if(!ce)return se.removeAllListeners(ne),se._parser["on"+ne]=ce,ce;se.on(ne,ce)},enumerable:!0,configurable:!1})})}c.prototype=Object.create(g.prototype,{constructor:{value:c}}),c.prototype.write=function(U){if(typeof k=="function"&&typeof k.isBuffer=="function"&&k.isBuffer(U)){if(!this._decoder){var K=y(2553).s;this._decoder=new K("utf8")}U=this._decoder.write(U)}return this._parser.write(U.toString()),this.emit("data",U),!0},c.prototype.end=function(U){return U&&U.length&&this.write(U),this._parser.end(),!0},c.prototype.on=function(U,K){var se=this;return se._parser["on"+U]||p.indexOf(U)===-1||(se._parser["on"+U]=function(){var ne=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);ne.splice(0,0,U),se.emit.apply(se,ne)}),g.prototype.on.call(se,U,K)};var l="[CDATA[",f="DOCTYPE",m="http://www.w3.org/XML/1998/namespace",h="http://www.w3.org/2000/xmlns/",u={xml:m,xmlns:h},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]/,v=/[:_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-]/,_=/[#:_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(U){return U===" "||U===`
|
|
95
|
+
`||U==="\r"||U===" "}function j(U){return U==='"'||U==="'"}function P(U){return U===">"||x(U)}function B(U,K){return U.test(K)}function z(U,K){return!B(U,K)}var ee,J,ae,e=0;for(var r in w.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++},w.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},w.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(w.ENTITIES).forEach(function(U){var K=w.ENTITIES[U],se=typeof K=="number"?String.fromCharCode(K):K;w.ENTITIES[U]=se}),w.STATE)w.STATE[w.STATE[r]]=r;function i(U,K,se){U[K]&&U[K](se)}function n(U,K,se){U.textNode&&t(U),i(U,K,se)}function t(U){U.textNode=o(U.opt,U.textNode),U.textNode&&i(U,"ontext",U.textNode),U.textNode=""}function o(U,K){return U.trim&&(K=K.trim()),U.normalize&&(K=K.replace(/\s+/g," ")),K}function a(U,K){return t(U),U.trackPosition&&(K+=`
|
|
96
|
+
Line: `+U.line+`
|
|
97
|
+
Column: `+U.column+`
|
|
98
|
+
Char: `+U.c),K=new Error(K),U.error=K,i(U,"onerror",K),U}function T(U){return U.sawRoot&&!U.closedRoot&&C(U,"Unclosed root tag"),U.state!==e.BEGIN&&U.state!==e.BEGIN_WHITESPACE&&U.state!==e.TEXT&&a(U,"Unexpected end"),t(U),U.c="",U.closed=!0,i(U,"onend"),s.call(U,U.strict,U.opt),U}function C(U,K){if(typeof U!="object"||!(U instanceof s))throw new Error("bad call to strictFail");U.strict&&a(U,K)}function N(U){U.strict||(U.tagName=U.tagName[U.looseCase]());var K=U.tags[U.tags.length-1]||U,se=U.tag={name:U.tagName,attributes:{}};U.opt.xmlns&&(se.ns=K.ns),U.attribList.length=0,n(U,"onopentagstart",se)}function I(U,K){var se=U.indexOf(":")<0?["",U]:U.split(":"),ne=se[0],ce=se[1];return K&&U==="xmlns"&&(ne="xmlns",ce=""),{prefix:ne,local:ce}}function R(U){if(U.strict||(U.attribName=U.attribName[U.looseCase]()),U.attribList.indexOf(U.attribName)!==-1||U.tag.attributes.hasOwnProperty(U.attribName))U.attribName=U.attribValue="";else{if(U.opt.xmlns){var K=I(U.attribName,!0),se=K.prefix,ne=K.local;if(se==="xmlns")if(ne==="xml"&&U.attribValue!==m)C(U,"xml: prefix must be bound to "+m+`
|
|
99
|
+
Actual: `+U.attribValue);else if(ne==="xmlns"&&U.attribValue!==h)C(U,"xmlns: prefix must be bound to "+h+`
|
|
100
|
+
Actual: `+U.attribValue);else{var ce=U.tag,ke=U.tags[U.tags.length-1]||U;ce.ns===ke.ns&&(ce.ns=Object.create(ke.ns)),ce.ns[ne]=U.attribValue}U.attribList.push([U.attribName,U.attribValue])}else U.tag.attributes[U.attribName]=U.attribValue,n(U,"onattribute",{name:U.attribName,value:U.attribValue});U.attribName=U.attribValue=""}}function q(U,K){if(U.opt.xmlns){var se=U.tag,ne=I(U.tagName);se.prefix=ne.prefix,se.local=ne.local,se.uri=se.ns[ne.prefix]||"",se.prefix&&!se.uri&&(C(U,"Unbound namespace prefix: "+JSON.stringify(U.tagName)),se.uri=ne.prefix);var ce=U.tags[U.tags.length-1]||U;se.ns&&ce.ns!==se.ns&&Object.keys(se.ns).forEach(function(D){n(U,"onopennamespace",{prefix:D,uri:se.ns[D]})});for(var ke=0,me=U.attribList.length;ke<me;ke++){var ve=U.attribList[ke],je=ve[0],we=ve[1],Ae=I(je,!0),G=Ae.prefix,Y=Ae.local,F=G===""?"":se.ns[G]||"",$={name:je,value:we,prefix:G,local:Y,uri:F};G&&G!=="xmlns"&&!F&&(C(U,"Unbound namespace prefix: "+JSON.stringify(G)),$.uri=G),U.tag.attributes[je]=$,n(U,"onattribute",$)}U.attribList.length=0}U.tag.isSelfClosing=!!K,U.sawRoot=!0,U.tags.push(U.tag),n(U,"onopentag",U.tag),K||(U.noscript||U.tagName.toLowerCase()!=="script"?U.state=e.TEXT:U.state=e.SCRIPT,U.tag=null,U.tagName=""),U.attribName=U.attribValue="",U.attribList.length=0}function Z(U){if(!U.tagName)return C(U,"Weird empty close tag."),U.textNode+="</>",void(U.state=e.TEXT);if(U.script){if(U.tagName!=="script")return U.script+="</"+U.tagName+">",U.tagName="",void(U.state=e.SCRIPT);n(U,"onscript",U.script),U.script=""}var K=U.tags.length,se=U.tagName;U.strict||(se=se[U.looseCase]());for(var ne=se;K--&&U.tags[K].name!==ne;)C(U,"Unexpected close tag");if(K<0)return C(U,"Unmatched closing tag: "+U.tagName),U.textNode+="</"+U.tagName+">",void(U.state=e.TEXT);U.tagName=se;for(var ce=U.tags.length;ce-- >K;){var ke=U.tag=U.tags.pop();U.tagName=U.tag.name,n(U,"onclosetag",U.tagName);var me={};for(var ve in ke.ns)me[ve]=ke.ns[ve];var je=U.tags[U.tags.length-1]||U;U.opt.xmlns&&ke.ns!==je.ns&&Object.keys(ke.ns).forEach(function(we){var Ae=ke.ns[we];n(U,"onclosenamespace",{prefix:we,uri:Ae})})}K===0&&(U.closedRoot=!0),U.tagName=U.attribValue=U.attribName="",U.attribList.length=0,U.state=e.TEXT}function te(U){var K,se=U.entity,ne=se.toLowerCase(),ce="";return U.ENTITIES[se]?U.ENTITIES[se]:U.ENTITIES[ne]?U.ENTITIES[ne]:((se=ne).charAt(0)==="#"&&(se.charAt(1)==="x"?(se=se.slice(2),ce=(K=parseInt(se,16)).toString(16)):(se=se.slice(1),ce=(K=parseInt(se,10)).toString(10))),se=se.replace(/^0+/,""),isNaN(K)||ce.toLowerCase()!==se?(C(U,"Invalid character entity"),"&"+U.entity+";"):String.fromCodePoint(K))}function L(U,K){K==="<"?(U.state=e.OPEN_WAKA,U.startTagPosition=U.position):x(K)||(C(U,"Non-whitespace before first tag."),U.textNode=K,U.state=e.TEXT)}function X(U,K){var se="";return K<U.length&&(se=U.charAt(K)),se}e=w.STATE,String.fromCodePoint||(ee=String.fromCharCode,J=Math.floor,ae=function(){var U,K,se=[],ne=-1,ce=arguments.length;if(!ce)return"";for(var ke="";++ne<ce;){var me=Number(arguments[ne]);if(!isFinite(me)||me<0||me>1114111||J(me)!==me)throw RangeError("Invalid code point: "+me);me<=65535?se.push(me):(U=55296+((me-=65536)>>10),K=me%1024+56320,se.push(U,K)),(ne+1===ce||se.length>16384)&&(ke+=ee.apply(null,se),se.length=0)}return ke},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:ae,configurable:!0,writable:!0}):String.fromCodePoint=ae)})(S)},4889:function(W,S,y){var k=y(4155);(function(w,g){if(!w.setImmediate){var M,s,p,c,l,f=1,m={},h=!1,u=w.document,b=Object.getPrototypeOf&&Object.getPrototypeOf(w);b=b&&b.setTimeout?b:w,{}.toString.call(w.process)==="[object process]"?M=function(A){k.nextTick(function(){_(A)})}:function(){if(w.postMessage&&!w.importScripts){var A=!0,x=w.onmessage;return w.onmessage=function(){A=!1},w.postMessage("","*"),w.onmessage=x,A}}()?(c="setImmediate$"+Math.random()+"$",l=function(A){A.source===w&&typeof A.data=="string"&&A.data.indexOf(c)===0&&_(+A.data.slice(c.length))},w.addEventListener?w.addEventListener("message",l,!1):w.attachEvent("onmessage",l),M=function(A){w.postMessage(c+A,"*")}):w.MessageChannel?((p=new MessageChannel).port1.onmessage=function(A){_(A.data)},M=function(A){p.port2.postMessage(A)}):u&&"onreadystatechange"in u.createElement("script")?(s=u.documentElement,M=function(A){var x=u.createElement("script");x.onreadystatechange=function(){_(A),x.onreadystatechange=null,s.removeChild(x),x=null},s.appendChild(x)}):M=function(A){setTimeout(_,0,A)},b.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 m[f]=P,M(f),f++},b.clearImmediate=v}function v(A){delete m[A]}function _(A){if(h)setTimeout(_,0,A);else{var x=m[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(g,B)}})(x)}finally{v(A),h=!1}}}}})(typeof self=="undefined"?y.g===void 0?this:y.g:self)},4189:(W,S,y)=>{var k=y(9509).Buffer;function w(g,M){this._block=k.alloc(g),this._finalSize=M,this._blockSize=g,this._len=0}w.prototype.update=function(g,M){typeof g=="string"&&(M=M||"utf8",g=k.from(g,M));for(var s=this._block,p=this._blockSize,c=g.length,l=this._len,f=0;f<c;){for(var m=l%p,h=Math.min(c-f,p-m),u=0;u<h;u++)s[m+u]=g[f+u];f+=h,(l+=h)%p==0&&this._update(s)}return this._len+=c,this},w.prototype.digest=function(g){var M=this._len%this._blockSize;this._block[M]=128,this._block.fill(0,M+1),M>=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 g?l.toString(g):l},w.prototype._update=function(){throw new Error("_update must be implemented by subclass")},W.exports=w},9072:(W,S,y)=>{var k=W.exports=function(w){w=w.toLowerCase();var g=k[w];if(!g)throw new Error(w+" is not supported (we accept pull requests)");return new g};k.sha=y(4448),k.sha1=y(8336),k.sha224=y(8432),k.sha256=y(7499),k.sha384=y(1686),k.sha512=y(7816)},4448:(W,S,y)=>{var k=y(5717),w=y(4189),g=y(9509).Buffer,M=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function p(){this.init(),this._w=s,w.call(this,64,56)}function c(f){return f<<30|f>>>2}function l(f,m,h,u){return f===0?m&h|~m&u:f===2?m&h|m&u|h&u:m^h^u}k(p,w),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 m,h=this._w,u=0|this._a,b=0|this._b,v=0|this._c,_=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|((m=u)<<5|m>>>27)+l(P,b,v,_)+A+h[j]+M[P];A=_,_=v,v=c(b),b=u,u=B}this._a=u+this._a|0,this._b=b+this._b|0,this._c=v+this._c|0,this._d=_+this._d|0,this._e=A+this._e|0},p.prototype._hash=function(){var f=g.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},W.exports=p},8336:(W,S,y)=>{var k=y(5717),w=y(4189),g=y(9509).Buffer,M=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function p(){this.init(),this._w=s,w.call(this,64,56)}function c(m){return m<<5|m>>>27}function l(m){return m<<30|m>>>2}function f(m,h,u,b){return m===0?h&u|~h&b:m===2?h&u|h&b|u&b:h^u^b}k(p,w),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(m){for(var h,u=this._w,b=0|this._a,v=0|this._b,_=0|this._c,A=0|this._d,x=0|this._e,j=0;j<16;++j)u[j]=m.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),z=c(b)+f(B,v,_,A)+x+u[P]+M[B]|0;x=A,A=_,_=l(v),v=b,b=z}this._a=b+this._a|0,this._b=v+this._b|0,this._c=_+this._c|0,this._d=A+this._d|0,this._e=x+this._e|0},p.prototype._hash=function(){var m=g.allocUnsafe(20);return m.writeInt32BE(0|this._a,0),m.writeInt32BE(0|this._b,4),m.writeInt32BE(0|this._c,8),m.writeInt32BE(0|this._d,12),m.writeInt32BE(0|this._e,16),m},W.exports=p},8432:(W,S,y)=>{var k=y(5717),w=y(7499),g=y(4189),M=y(9509).Buffer,s=new Array(64);function p(){this.init(),this._w=s,g.call(this,64,56)}k(p,w),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=M.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},W.exports=p},7499:(W,S,y)=>{var k=y(5717),w=y(4189),g=y(9509).Buffer,M=[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,w.call(this,64,56)}function c(u,b,v){return v^u&(b^v)}function l(u,b,v){return u&b|v&(u|b)}function f(u){return(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10)}function m(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}k(p,w),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 b,v=this._w,_=0|this._a,A=0|this._b,x=0|this._c,j=0|this._d,P=0|this._e,B=0|this._f,z=0|this._g,ee=0|this._h,J=0;J<16;++J)v[J]=u.readInt32BE(4*J);for(;J<64;++J)v[J]=0|(((b=v[J-2])>>>17|b<<15)^(b>>>19|b<<13)^b>>>10)+v[J-7]+h(v[J-15])+v[J-16];for(var ae=0;ae<64;++ae){var e=ee+m(P)+c(P,B,z)+M[ae]+v[ae]|0,r=f(_)+l(_,A,x)|0;ee=z,z=B,B=P,P=j+e|0,j=x,x=A,A=_,_=e+r|0}this._a=_+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=z+this._g|0,this._h=ee+this._h|0},p.prototype._hash=function(){var u=g.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},W.exports=p},1686:(W,S,y)=>{var k=y(5717),w=y(7816),g=y(4189),M=y(9509).Buffer,s=new Array(160);function p(){this.init(),this._w=s,g.call(this,128,112)}k(p,w),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=M.allocUnsafe(48);function l(f,m,h){c.writeInt32BE(f,h),c.writeInt32BE(m,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},W.exports=p},7816:(W,S,y)=>{var k=y(5717),w=y(4189),g=y(9509).Buffer,M=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function p(){this.init(),this._w=s,w.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 m(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 b(A,x){return(A>>>19|x<<13)^(x>>>29|A<<3)^A>>>6}function v(A,x){return(A>>>19|x<<13)^(x>>>29|A<<3)^(A>>>6|x<<26)}function _(A,x){return A>>>0<x>>>0?1:0}k(p,w),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,z=0|this._dh,ee=0|this._eh,J=0|this._fh,ae=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 I=x[N-30],R=x[N-30+1],q=h(I,R),Z=u(R,I),te=b(I=x[N-4],R=x[N-4+1]),L=v(R,I),X=x[N-14],U=x[N-14+1],K=x[N-32],se=x[N-32+1],ne=Z+U|0,ce=q+X+_(ne,Z)|0;ce=(ce=ce+te+_(ne=ne+L|0,L)|0)+K+_(ne=ne+se|0,se)|0,x[N]=ce,x[N+1]=ne}for(var ke=0;ke<160;ke+=2){ce=x[ke],ne=x[ke+1];var me=l(j,P,B),ve=l(r,i,n),je=f(j,r),we=f(r,j),Ae=m(ee,o),G=m(o,ee),Y=M[ke],F=M[ke+1],$=c(ee,J,ae),D=c(o,a,T),Q=C+G|0,he=e+Ae+_(Q,C)|0;he=(he=(he=he+$+_(Q=Q+D|0,D)|0)+Y+_(Q=Q+F|0,F)|0)+ce+_(Q=Q+ne|0,ne)|0;var le=we+ve|0,pe=je+me+_(le,we)|0;e=ae,C=T,ae=J,T=a,J=ee,a=o,ee=z+he+_(o=t+Q|0,t)|0,z=B,t=n,B=P,n=i,P=j,i=r,j=he+pe+_(r=Q+le|0,Q)|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+_(this._al,r)|0,this._bh=this._bh+P+_(this._bl,i)|0,this._ch=this._ch+B+_(this._cl,n)|0,this._dh=this._dh+z+_(this._dl,t)|0,this._eh=this._eh+ee+_(this._el,o)|0,this._fh=this._fh+J+_(this._fl,a)|0,this._gh=this._gh+ae+_(this._gl,T)|0,this._hh=this._hh+e+_(this._hl,C)|0},p.prototype._hash=function(){var A=g.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},W.exports=p},500:W=>{W.exports=(S,y)=>{if(typeof S!="string"||typeof y!="string")throw new TypeError("Expected the arguments to be of type `string`");if(y==="")return[S];const k=S.indexOf(y);return k===-1?[S]:[S.slice(0,k),S.slice(k+y.length)]}},2830:(W,S,y)=>{W.exports=w;var k=y(7187).EventEmitter;function w(){k.call(this)}y(5717)(w,k),w.Readable=y(9481),w.Writable=y(4229),w.Duplex=y(6753),w.Transform=y(4605),w.PassThrough=y(2725),w.finished=y(8610),w.pipeline=y(9946),w.Stream=w,w.prototype.pipe=function(g,M){var s=this;function p(b){g.writable&&g.write(b)===!1&&s.pause&&s.pause()}function c(){s.readable&&s.resume&&s.resume()}s.on("data",p),g.on("drain",c),g._isStdio||M&&M.end===!1||(s.on("end",f),s.on("close",m));var l=!1;function f(){l||(l=!0,g.end())}function m(){l||(l=!0,typeof g.destroy=="function"&&g.destroy())}function h(b){if(u(),k.listenerCount(this,"error")===0)throw b}function u(){s.removeListener("data",p),g.removeListener("drain",c),s.removeListener("end",f),s.removeListener("close",m),s.removeListener("error",h),g.removeListener("error",h),s.removeListener("end",u),s.removeListener("close",u),g.removeListener("close",u)}return s.on("error",h),g.on("error",h),s.on("end",u),s.on("close",u),g.on("close",u),g.emit("pipe",s),g}},8501:(W,S,y)=>{var k=y(1989),w=y(5676),g=y(7529),M=y(584),s=y(8575),p=S;p.request=function(c,l){c=typeof c=="string"?s.parse(c):g(c);var f=y.g.location.protocol.search(/^https?:$/)===-1?"http:":"",m=c.protocol||f,h=c.hostname||c.host,u=c.port,b=c.path||"/";h&&h.indexOf(":")!==-1&&(h="["+h+"]"),c.url=(h?m+"//"+h:"")+(u?":"+u:"")+b,c.method=(c.method||"GET").toUpperCase(),c.headers=c.headers||{};var v=new k(c);return l&&v.on("response",l),v},p.get=function(c,l){var f=p.request(c,l);return f.end(),f},p.ClientRequest=k,p.IncomingMessage=w.IncomingMessage,p.Agent=function(){},p.Agent.defaultMaxSockets=4,p.globalAgent=new p.Agent,p.STATUS_CODES=M,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:(W,S,y)=>{var k;function w(){if(k!==void 0)return k;if(y.g.XMLHttpRequest){k=new y.g.XMLHttpRequest;try{k.open("GET",y.g.XDomainRequest?"/":"https://example.com")}catch(s){k=null}}else k=null;return k}function g(s){var p=w();if(!p)return!1;try{return p.responseType=s,p.responseType===s}catch(c){}return!1}function M(s){return typeof s=="function"}S.fetch=M(y.g.fetch)&&M(y.g.ReadableStream),S.writableStream=M(y.g.WritableStream),S.abortController=M(y.g.AbortController),S.arraybuffer=S.fetch||g("arraybuffer"),S.msstream=!S.fetch&&g("ms-stream"),S.mozchunkedarraybuffer=!S.fetch&&g("moz-chunked-arraybuffer"),S.overrideMimeType=S.fetch||!!w()&&M(w().overrideMimeType),k=null},1989:(W,S,y)=>{var k=y(8764).Buffer,w=y(4155),g=y(8725),M=y(5717),s=y(5676),p=y(8473),c=s.IncomingMessage,l=s.readyStates,f=W.exports=function(h){var u,b=this;p.Writable.call(b),b._opts=h,b._body=[],b._headers={},h.auth&&b.setHeader("Authorization","Basic "+k.from(h.auth).toString("base64")),Object.keys(h.headers).forEach(function(_){b.setHeader(_,h.headers[_])});var v=!0;if(h.mode==="disable-fetch"||"requestTimeout"in h&&!g.abortController)v=!1,u=!0;else if(h.mode==="prefer-streaming")u=!1;else if(h.mode==="allow-wrong-content-type")u=!g.overrideMimeType;else{if(h.mode&&h.mode!=="default"&&h.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");u=!0}b._mode=function(_,A){return g.fetch&&A?"fetch":g.mozchunkedarraybuffer?"moz-chunked-arraybuffer":g.msstream?"ms-stream":g.arraybuffer&&_?"arraybuffer":"text"}(u,v),b._fetchTimer=null,b._socketTimeout=null,b._socketTimer=null,b.on("finish",function(){b._onFinish()})};M(f,p.Writable),f.prototype.setHeader=function(h,u){var b=h.toLowerCase();m.indexOf(b)===-1&&(this._headers[b]={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 b=h._headers,v=null;u.method!=="GET"&&u.method!=="HEAD"&&(v=new Blob(h._body,{type:(b["content-type"]||{}).value||""}));var _=[];if(Object.keys(b).forEach(function(P){var B=b[P].name,z=b[P].value;Array.isArray(z)?z.forEach(function(ee){_.push([B,ee])}):_.push([B,z])}),h._mode==="fetch"){var A=null;if(g.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:_,body:v||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 w.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")}),_.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(v)}catch(P){return void w.nextTick(function(){h.emit("error",P)})}}}},f.prototype._onXHRProgress=function(){var h=this;h._resetTimers(!1),function(u){try{var b=u.status;return b!==null&&b!==0}catch(v){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,b){this._body.push(h),b()},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,b){typeof h=="function"&&(b=h,h=void 0),p.Writable.prototype.end.call(this,h,u,b)},f.prototype.setTimeout=function(h,u){var b=this;u&&b.once("timeout",u),b._socketTimeout=h,b._resetTimers(!1)},f.prototype.flushHeaders=function(){},f.prototype.setNoDelay=function(){},f.prototype.setSocketKeepAlive=function(){};var m=["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:(W,S,y)=>{var k=y(4155),w=y(8764).Buffer,g=y(8725),M=y(5717),s=y(8473),p=S.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=S.IncomingMessage=function(l,f,m,h){var u=this;if(s.Readable.call(u),u._mode=m,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",function(){k.nextTick(function(){u.emit("close")})}),m==="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)}),g.writableStream){var b=new WritableStream({write:function(x){return h(!1),new Promise(function(j,P){u._destroyed?P():u.push(w.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(b).catch(function(x){h(!0),u._destroyed||u.emit("error",x)})}catch(x){}}var v=f.body.getReader();(function x(){v.read().then(function(j){u._destroyed||(h(j.done),j.done?u.push(null):(u.push(w.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",!g.overrideMimeType){var _=u.rawHeaders["mime-type"];if(_){var A=_.match(/;\s*charset=([^;])(;|$)/);A&&(u._charset=A[1].toLowerCase())}u._charset||(u._charset="utf-8")}};M(c,s.Readable),c.prototype._read=function(){var l=this._resumeFetch;l&&(this._resumeFetch=null,l())},c.prototype._onXHRProgress=function(l){var f=this,m=f._xhr,h=null;switch(f._mode){case"text":if((h=m.responseText).length>f._pos){var u=h.substr(f._pos);if(f._charset==="x-user-defined"){for(var b=w.alloc(u.length),v=0;v<u.length;v++)b[v]=255&u.charCodeAt(v);f.push(b)}else f.push(u,f._charset);f._pos=h.length}break;case"arraybuffer":if(m.readyState!==p.DONE||!m.response)break;h=m.response,f.push(w.from(new Uint8Array(h)));break;case"moz-chunked-arraybuffer":if(h=m.response,m.readyState!==p.LOADING||!h)break;f.push(w.from(new Uint8Array(h)));break;case"ms-stream":if(h=m.response,m.readyState!==p.LOADING)break;var _=new y.g.MSStreamReader;_.onprogress=function(){_.result.byteLength>f._pos&&(f.push(w.from(new Uint8Array(_.result.slice(f._pos)))),f._pos=_.result.byteLength)},_.onload=function(){l(!0),f.push(null)},_.readAsArrayBuffer(h)}f._xhr.readyState===p.DONE&&f._mode!=="ms-stream"&&(l(!0),f.push(null))}},610:W=>{W.exports=S=>encodeURIComponent(S).replace(/[!'()*]/g,y=>`%${y.charCodeAt(0).toString(16).toUpperCase()}`)},2553:(W,S,y)=>{var k=y(9509).Buffer,w=k.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 g(u){var b;switch(this.encoding=function(v){var _=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}}(v);if(typeof _!="string"&&(k.isEncoding===w||!w(v)))throw new Error("Unknown encoding: "+v);return _||v}(u),this.encoding){case"utf16le":this.text=p,this.end=c,b=4;break;case"utf8":this.fillLast=s,b=4;break;case"base64":this.text=l,this.end=f,b=3;break;default:return this.write=m,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=k.allocUnsafe(b)}function M(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 b=this.lastTotal-this.lastNeed,v=function(_,A,x){if((192&A[0])!=128)return _.lastNeed=0,"�";if(_.lastNeed>1&&A.length>1){if((192&A[1])!=128)return _.lastNeed=1,"�";if(_.lastNeed>2&&A.length>2&&(192&A[2])!=128)return _.lastNeed=2,"�"}}(this,u);return v!==void 0?v:this.lastNeed<=u.length?(u.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(u.copy(this.lastChar,b,0,u.length),void(this.lastNeed-=u.length))}function p(u,b){if((u.length-b)%2==0){var v=u.toString("utf16le",b);if(v){var _=v.charCodeAt(v.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",b,u.length-1)}function c(u){var b=u&&u.length?this.write(u):"";if(this.lastNeed){var v=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,v)}return b}function l(u,b){var v=(u.length-b)%3;return v===0?u.toString("base64",b):(this.lastNeed=3-v,this.lastTotal=3,v===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",b,u.length-v))}function f(u){var b=u&&u.length?this.write(u):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function m(u){return u.toString(this.encoding)}function h(u){return u&&u.length?this.write(u):""}S.s=g,g.prototype.write=function(u){if(u.length===0)return"";var b,v;if(this.lastNeed){if((b=this.fillLast(u))===void 0)return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v<u.length?b?b+this.text(u,v):this.text(u,v):b||""},g.prototype.end=function(u){var b=u&&u.length?this.write(u):"";return this.lastNeed?b+"�":b},g.prototype.text=function(u,b){var v=function(A,x,j){var P=x.length-1;if(P<j)return 0;var B=M(x[P]);return B>=0?(B>0&&(A.lastNeed=B-1),B):--P<j||B===-2?0:(B=M(x[P]))>=0?(B>0&&(A.lastNeed=B-2),B):--P<j||B===-2?0:(B=M(x[P]))>=0?(B>0&&(B===2?B=0:A.lastNeed=B-3),B):0}(this,u,b);if(!this.lastNeed)return u.toString("utf8",b);this.lastTotal=v;var _=u.length-(v-this.lastNeed);return u.copy(this.lastChar,0,_),u.toString("utf8",b,_)},g.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:W=>{const S=/^[-+]?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 k={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};W.exports=function(w,g={}){if(g=Object.assign({},k,g),!w||typeof w!="string")return w;let M=w.trim();if(g.skipLike!==void 0&&g.skipLike.test(M))return w;if(g.hex&&S.test(M))return Number.parseInt(M,16);{const p=y.exec(M);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 m=p[4]||p[6];if(!g.leadingZeros&&l.length>0&&c&&M[2]!=="."||!g.leadingZeros&&l.length>0&&!c&&M[1]!==".")return w;{const h=Number(M),u=""+h;return u.search(/[eE]/)!==-1||m?g.eNotation?h:w:M.indexOf(".")!==-1?u==="0"&&f===""||u===f||c&&u==="-"+f?h:w:l?f===u||c+f===u?h:w:M===u||M===c+u?h:w}}return w}var s}},4650:(W,S,y)=>{var k=y(4155),w=y(8473).Transform,g=y(5717);function M(c){w.call(this,c),this._destroyed=!1}function s(c,l,f){f(null,c)}function p(c){return function(l,f,m){return typeof l=="function"&&(m=f,f=l,l={}),typeof f!="function"&&(f=s),typeof m!="function"&&(m=null),c(l,f,m)}}g(M,w),M.prototype.destroy=function(c){if(!this._destroyed){this._destroyed=!0;var l=this;k.nextTick(function(){c&&l.emit("error",c),l.emit("close")})}},W.exports=p(function(c,l,f){var m=new M(c);return m._transform=l,f&&(m._flush=f),m}),W.exports.ctor=p(function(c,l,f){function m(h){if(!(this instanceof m))return new m(h);this.options=Object.assign({},c,h),M.call(this,this.options)}return g(m,M),m.prototype._transform=l,f&&(m.prototype._flush=f),m}),W.exports.obj=p(function(c,l,f){var m=new M(Object.assign({objectMode:!0,highWaterMark:16},c));return m._transform=l,f&&(m._flush=f),m})},5475:function(W,S,y){var k=y.g!==void 0&&y.g||typeof self!="undefined"&&self||window,w=Function.prototype.apply;function g(M,s){this._id=M,this._clearFn=s}S.setTimeout=function(){return new g(w.call(setTimeout,k,arguments),clearTimeout)},S.setInterval=function(){return new g(w.call(setInterval,k,arguments),clearInterval)},S.clearTimeout=S.clearInterval=function(M){M&&M.close()},g.prototype.unref=g.prototype.ref=function(){},g.prototype.close=function(){this._clearFn.call(k,this._id)},S.enroll=function(M,s){clearTimeout(M._idleTimeoutId),M._idleTimeout=s},S.unenroll=function(M){clearTimeout(M._idleTimeoutId),M._idleTimeout=-1},S._unrefActive=S.active=function(M){clearTimeout(M._idleTimeoutId);var s=M._idleTimeout;s>=0&&(M._idleTimeoutId=setTimeout(function(){M._onTimeout&&M._onTimeout()},s))},y(4889),S.setImmediate=typeof self!="undefined"&&self.setImmediate||y.g!==void 0&&y.g.setImmediate||this&&this.setImmediate,S.clearImmediate=typeof self!="undefined"&&self.clearImmediate||y.g!==void 0&&y.g.clearImmediate||this&&this.clearImmediate},2511:function(W,S,y){var k;W=y.nmd(W),function(w){S&&S.nodeType,W&&W.nodeType;var g=typeof y.g=="object"&&y.g;g.global!==g&&g.window!==g&&g.self;var M,s=2147483647,p=36,c=1,l=26,f=38,m=700,h=72,u=128,b="-",v=/^xn--/,_=/[^\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 z(o){throw RangeError(x[o])}function ee(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+ee((o=o.replace(A,".")).split("."),a).join(".")}function ae(o){for(var a,T,C=[],N=0,I=o.length;N<I;)(a=o.charCodeAt(N++))>=55296&&a<=56319&&N<I?(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 ee(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/m):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,I,R,q,Z,te,L,X,U=[],K=o.length,se=0,ne=u,ce=h;for((T=o.lastIndexOf(b))<0&&(T=0),C=0;C<T;++C)o.charCodeAt(C)>=128&&z("not-basic"),U.push(o.charCodeAt(C));for(N=T>0?T+1:0;N<K;){for(I=se,R=1,q=p;N>=K&&z("invalid-input"),((Z=(X=o.charCodeAt(N++))-48<10?X-22:X-65<26?X-65:X-97<26?X-97:p)>=p||Z>P((s-se)/R))&&z("overflow"),se+=Z*R,!(Z<(te=q<=ce?c:q>=ce+l?l:q-ce));q+=p)R>P(s/(L=p-te))&&z("overflow"),R*=L;ce=i(se-I,a=U.length+1,I==0),P(se/a)>s-ne&&z("overflow"),ne+=P(se/a),se%=a,U.splice(se++,0,ne)}return e(U)}function t(o){var a,T,C,N,I,R,q,Z,te,L,X,U,K,se,ne,ce=[];for(U=(o=ae(o)).length,a=u,T=0,I=h,R=0;R<U;++R)(X=o[R])<128&&ce.push(B(X));for(C=N=ce.length,N&&ce.push(b);C<U;){for(q=s,R=0;R<U;++R)(X=o[R])>=a&&X<q&&(q=X);for(q-a>P((s-T)/(K=C+1))&&z("overflow"),T+=(q-a)*K,a=q,R=0;R<U;++R)if((X=o[R])<a&&++T>s&&z("overflow"),X==a){for(Z=T,te=p;!(Z<(L=te<=I?c:te>=I+l?l:te-I));te+=p)ne=Z-L,se=p-L,ce.push(B(r(L+ne%se,0))),Z=P(ne/se);ce.push(B(r(Z,0))),I=i(T,K,C==N),T=0,++C}++T,++a}return ce.join("")}M={version:"1.3.2",ucs2:{decode:ae,encode:e},decode:n,encode:t,toASCII:function(o){return J(o,function(a){return _.test(a)?"xn--"+t(a):a})},toUnicode:function(o){return J(o,function(a){return v.test(a)?n(a.slice(4).toLowerCase()):a})}},(k=function(){return M}.call(S,y,S,W))===void 0||(W.exports=k)}()},8575:(W,S,y)=>{var k=y(2511),w=y(2502);function g(){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}S.parse=x,S.resolve=function(j,P){return x(j,!1,!0).resolve(P)},S.resolveObject=function(j,P){return j?x(j,!1,!0).resolveObject(P):P},S.format=function(j){return w.isString(j)&&(j=x(j)),j instanceof g?j.format():g.prototype.format.call(j)},S.Url=g;var M=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
101
|
+
`," "]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),m=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},_={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&&w.isObject(j)&&j instanceof g)return j;var z=new g;return z.parse(j,P,B),z}g.prototype.parse=function(j,P,B){if(!w.isString(j))throw new TypeError("Parameter 'url' must be a string, not "+typeof j);var z=j.indexOf("?"),ee=z!==-1&&z<j.indexOf("#")?"?":"#",J=j.split(ee);J[0]=J[0].replace(/\\/g,"/");var ae=j=J.join(ee);if(ae=ae.trim(),!B&&j.split("#").length===1){var e=p.exec(ae);if(e)return this.path=ae,this.href=ae,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=M.exec(ae);if(r){var i=(r=r[0]).toLowerCase();this.protocol=i,ae=ae.substr(r.length)}if(B||r||ae.match(/^\/\/[^@\/]+@[^@\/]+/)){var n=ae.substr(0,2)==="//";!n||r&&v[r]||(ae=ae.substr(2),this.slashes=!0)}if(!v[r]&&(n||r&&!_[r])){for(var t,o,a=-1,T=0;T<m.length;T++)(C=ae.indexOf(m[T]))!==-1&&(a===-1||C<a)&&(a=C);for((o=a===-1?ae.lastIndexOf("@"):ae.lastIndexOf("@",a))!==-1&&(t=ae.slice(0,o),ae=ae.slice(o+1),this.auth=decodeURIComponent(t)),a=-1,T=0;T<f.length;T++){var C;(C=ae.indexOf(f[T]))!==-1&&(a===-1||C<a)&&(a=C)}a===-1&&(a=ae.length),this.host=ae.slice(0,a),ae=ae.slice(a),this.parseHost(),this.hostname=this.hostname||"";var N=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!N)for(var I=this.hostname.split(/\./),R=(T=0,I.length);T<R;T++){var q=I[T];if(q&&!q.match(h)){for(var Z="",te=0,L=q.length;te<L;te++)q.charCodeAt(te)>127?Z+="x":Z+=q[te];if(!Z.match(h)){var X=I.slice(0,T),U=I.slice(T+1),K=q.match(u);K&&(X.push(K[1]),U.unshift(K[2])),U.length&&(ae="/"+U.join(".")+ae),this.hostname=X.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),N||(this.hostname=k.toASCII(this.hostname));var se=this.port?":"+this.port:"",ne=this.hostname||"";this.host=ne+se,this.href+=this.host,N&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),ae[0]!=="/"&&(ae="/"+ae))}if(!b[i])for(T=0,R=l.length;T<R;T++){var ce=l[T];if(ae.indexOf(ce)!==-1){var ke=encodeURIComponent(ce);ke===ce&&(ke=escape(ce)),ae=ae.split(ce).join(ke)}}var me=ae.indexOf("#");me!==-1&&(this.hash=ae.substr(me),ae=ae.slice(0,me));var ve=ae.indexOf("?");if(ve!==-1?(this.search=ae.substr(ve),this.query=ae.substr(ve+1),P&&(this.query=A.parse(this.query)),ae=ae.slice(0,ve)):P&&(this.search="",this.query={}),ae&&(this.pathname=ae),_[i]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){se=this.pathname||"";var je=this.search||"";this.path=se+je}return this.href=this.format(),this},g.prototype.format=function(){var j=this.auth||"";j&&(j=(j=encodeURIComponent(j)).replace(/%3A/i,":"),j+="@");var P=this.protocol||"",B=this.pathname||"",z=this.hash||"",ee=!1,J="";this.host?ee=j+this.host:this.hostname&&(ee=j+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ee+=":"+this.port)),this.query&&w.isObject(this.query)&&Object.keys(this.query).length&&(J=A.stringify(this.query));var ae=this.search||J&&"?"+J||"";return P&&P.substr(-1)!==":"&&(P+=":"),this.slashes||(!P||_[P])&&ee!==!1?(ee="//"+(ee||""),B&&B.charAt(0)!=="/"&&(B="/"+B)):ee||(ee=""),z&&z.charAt(0)!=="#"&&(z="#"+z),ae&&ae.charAt(0)!=="?"&&(ae="?"+ae),P+ee+(B=B.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(ae=ae.replace("#","%23"))+z},g.prototype.resolve=function(j){return this.resolveObject(x(j,!1,!0)).format()},g.prototype.resolveObject=function(j){if(w.isString(j)){var P=new g;P.parse(j,!1,!0),j=P}for(var B=new g,z=Object.keys(this),ee=0;ee<z.length;ee++){var J=z[ee];B[J]=this[J]}if(B.hash=j.hash,j.href==="")return B.href=B.format(),B;if(j.slashes&&!j.protocol){for(var ae=Object.keys(j),e=0;e<ae.length;e++){var r=ae[e];r!=="protocol"&&(B[r]=j[r])}return _[B.protocol]&&B.hostname&&!B.pathname&&(B.path=B.pathname="/"),B.href=B.format(),B}if(j.protocol&&j.protocol!==B.protocol){if(!_[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||v[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)==="/",I=N||C||B.host&&j.pathname,R=I,q=B.pathname&&B.pathname.split("/")||[],Z=(o=j.pathname&&j.pathname.split("/")||[],B.protocol&&!_[B.protocol]);if(Z&&(B.hostname="",B.port=null,B.host&&(q[0]===""?q[0]=B.host:q.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),I=I&&(o[0]===""||q[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,q=o;else if(o.length)q||(q=[]),q.pop(),q=q.concat(o),B.search=j.search,B.query=j.query;else if(!w.isNullOrUndefined(j.search))return Z&&(B.hostname=B.host=q.shift(),(K=!!(B.host&&B.host.indexOf("@")>0)&&B.host.split("@"))&&(B.auth=K.shift(),B.host=B.hostname=K.shift())),B.search=j.search,B.query=j.query,w.isNull(B.pathname)&&w.isNull(B.search)||(B.path=(B.pathname?B.pathname:"")+(B.search?B.search:"")),B.href=B.format(),B;if(!q.length)return B.pathname=null,B.search?B.path="/"+B.search:B.path=null,B.href=B.format(),B;for(var te=q.slice(-1)[0],L=(B.host||j.host||q.length>1)&&(te==="."||te==="..")||te==="",X=0,U=q.length;U>=0;U--)(te=q[U])==="."?q.splice(U,1):te===".."?(q.splice(U,1),X++):X&&(q.splice(U,1),X--);if(!I&&!R)for(;X--;X)q.unshift("..");!I||q[0]===""||q[0]&&q[0].charAt(0)==="/"||q.unshift(""),L&&q.join("/").substr(-1)!=="/"&&q.push("");var K,se=q[0]===""||q[0]&&q[0].charAt(0)==="/";return Z&&(B.hostname=B.host=se?"":q.length?q.shift():"",(K=!!(B.host&&B.host.indexOf("@")>0)&&B.host.split("@"))&&(B.auth=K.shift(),B.host=B.hostname=K.shift())),(I=I||B.host&&q.length)&&!se&&q.unshift(""),q.length?B.pathname=q.join("/"):(B.pathname=null,B.path=null),w.isNull(B.pathname)&&w.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},g.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:W=>{W.exports={isString:function(S){return typeof S=="string"},isObject:function(S){return typeof S=="object"&&S!==null},isNull:function(S){return S===null},isNullOrUndefined:function(S){return S==null}}},4927:(W,S,y)=>{var k=y(5108);function w(g){try{if(!y.g.localStorage)return!1}catch(s){return!1}var M=y.g.localStorage[g];return M!=null&&String(M).toLowerCase()==="true"}W.exports=function(g,M){if(w("noDeprecation"))return g;var s=!1;return function(){if(!s){if(w("throwDeprecation"))throw new Error(M);w("traceDeprecation")?k.trace(M):k.warn(M),s=!0}return g.apply(this,arguments)}}},384:W=>{W.exports=function(S){return S&&typeof S=="object"&&typeof S.copy=="function"&&typeof S.fill=="function"&&typeof S.readUInt8=="function"}},5955:(W,S,y)=>{var k=y(2584),w=y(8662),g=y(6430),M=y(5692);function s(a){return a.call.bind(a)}var p=typeof BigInt!="undefined",c=typeof Symbol!="undefined",l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),m=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(p)var u=s(BigInt.prototype.valueOf);if(c)var b=s(Symbol.prototype.valueOf);function v(a,T){if(typeof a!="object")return!1;try{return T(a),!0}catch(C){return!1}}function _(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!="undefined"&&(P.working?P(a):a instanceof ArrayBuffer)}function z(a){return l(a)==="[object DataView]"}function ee(a){return typeof DataView!="undefined"&&(z.working?z(a):a instanceof DataView)}S.isArgumentsObject=k,S.isGeneratorFunction=w,S.isTypedArray=M,S.isPromise=function(a){return typeof Promise!="undefined"&&a instanceof Promise||a!==null&&typeof a=="object"&&typeof a.then=="function"&&typeof a.catch=="function"},S.isArrayBufferView=function(a){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(a):M(a)||ee(a)},S.isUint8Array=function(a){return g(a)==="Uint8Array"},S.isUint8ClampedArray=function(a){return g(a)==="Uint8ClampedArray"},S.isUint16Array=function(a){return g(a)==="Uint16Array"},S.isUint32Array=function(a){return g(a)==="Uint32Array"},S.isInt8Array=function(a){return g(a)==="Int8Array"},S.isInt16Array=function(a){return g(a)==="Int16Array"},S.isInt32Array=function(a){return g(a)==="Int32Array"},S.isFloat32Array=function(a){return g(a)==="Float32Array"},S.isFloat64Array=function(a){return g(a)==="Float64Array"},S.isBigInt64Array=function(a){return g(a)==="BigInt64Array"},S.isBigUint64Array=function(a){return g(a)==="BigUint64Array"},_.working=typeof Map!="undefined"&&_(new Map),S.isMap=function(a){return typeof Map!="undefined"&&(_.working?_(a):a instanceof Map)},A.working=typeof Set!="undefined"&&A(new Set),S.isSet=function(a){return typeof Set!="undefined"&&(A.working?A(a):a instanceof Set)},x.working=typeof WeakMap!="undefined"&&x(new WeakMap),S.isWeakMap=function(a){return typeof WeakMap!="undefined"&&(x.working?x(a):a instanceof WeakMap)},j.working=typeof WeakSet!="undefined"&&j(new WeakSet),S.isWeakSet=function(a){return j(a)},P.working=typeof ArrayBuffer!="undefined"&&P(new ArrayBuffer),S.isArrayBuffer=B,z.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&z(new DataView(new ArrayBuffer(1),0,1)),S.isDataView=ee;var J=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function ae(a){return l(a)==="[object SharedArrayBuffer]"}function e(a){return J!==void 0&&(ae.working===void 0&&(ae.working=ae(new J)),ae.working?ae(a):a instanceof J)}function r(a){return v(a,f)}function i(a){return v(a,m)}function n(a){return v(a,h)}function t(a){return p&&v(a,u)}function o(a){return c&&v(a,b)}S.isSharedArrayBuffer=e,S.isAsyncFunction=function(a){return l(a)==="[object AsyncFunction]"},S.isMapIterator=function(a){return l(a)==="[object Map Iterator]"},S.isSetIterator=function(a){return l(a)==="[object Set Iterator]"},S.isGeneratorObject=function(a){return l(a)==="[object Generator]"},S.isWebAssemblyCompiledModule=function(a){return l(a)==="[object WebAssembly.Module]"},S.isNumberObject=r,S.isStringObject=i,S.isBooleanObject=n,S.isBigIntObject=t,S.isSymbolObject=o,S.isBoxedPrimitive=function(a){return r(a)||i(a)||n(a)||t(a)||o(a)},S.isAnyArrayBuffer=function(a){return typeof Uint8Array!="undefined"&&(B(a)||e(a))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(a){Object.defineProperty(S,a,{enumerable:!1,value:function(){throw new Error(a+" is not supported in userland")}})})},9539:(W,S,y)=>{var k=y(4155),w=y(5108),g=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},M=/%[sdj%]/g;S.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,I=N.length,R=String(a).replace(M,function(Z){if(Z==="%%")return"%";if(C>=I)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(te){return"[Circular]"}default:return Z}}),q=N[C];C<I;q=N[++C])A(q)||!z(q)?R+=" "+q:R+=" "+l(q);return R},S.deprecate=function(a,T){if(k!==void 0&&k.noDeprecation===!0)return a;if(k===void 0)return function(){return S.deprecate(a,T).apply(this,arguments)};var C=!1;return function(){if(!C){if(k.throwDeprecation)throw new Error(T);k.traceDeprecation?w.trace(T):w.error(T),C=!0}return a.apply(this,arguments)}};var s={},p=/^$/;if(k.env.NODE_DEBUG){var c=k.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:m};return arguments.length>=3&&(C.depth=arguments[2]),arguments.length>=4&&(C.colors=arguments[3]),_(T)?C.showHidden=T:T&&S._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 m(a,T){return a}function h(a,T,C){if(a.customInspect&&T&&ae(T.inspect)&&T.inspect!==S.inspect&&(!T.constructor||T.constructor.prototype!==T)){var N=T.inspect(C,a);return j(N)||(N=h(a,N,C)),N}var I=function(K,se){if(P(se))return K.stylize("undefined","undefined");if(j(se)){var ne="'"+JSON.stringify(se).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return K.stylize(ne,"string")}return x(se)?K.stylize(""+se,"number"):_(se)?K.stylize(""+se,"boolean"):A(se)?K.stylize("null","null"):void 0}(a,T);if(I)return I;var R=Object.keys(T),q=function(K){var se={};return K.forEach(function(ne,ce){se[ne]=!0}),se}(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(ae(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(ee(T))return a.stylize(Date.prototype.toString.call(T),"date");if(J(T))return u(T)}var te,L="",X=!1,U=["{","}"];return v(T)&&(X=!0,U=["[","]"]),ae(T)&&(L=" [Function"+(T.name?": "+T.name:"")+"]"),B(T)&&(L=" "+RegExp.prototype.toString.call(T)),ee(T)&&(L=" "+Date.prototype.toUTCString.call(T)),J(T)&&(L=" "+u(T)),R.length!==0||X&&T.length!=0?C<0?B(T)?a.stylize(RegExp.prototype.toString.call(T),"regexp"):a.stylize("[Object]","special"):(a.seen.push(T),te=X?function(K,se,ne,ce,ke){for(var me=[],ve=0,je=se.length;ve<je;++ve)n(se,String(ve))?me.push(b(K,se,ne,ce,String(ve),!0)):me.push("");return ke.forEach(function(we){we.match(/^\d+$/)||me.push(b(K,se,ne,ce,we,!0))}),me}(a,T,C,q,R):R.map(function(K){return b(a,T,C,q,K,X)}),a.seen.pop(),function(K,se,ne){return K.reduce(function(ce,ke){return ke.indexOf(`
|
|
102
|
+
`),ce+ke.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?ne[0]+(se===""?"":se+`
|
|
103
|
+
`)+" "+K.join(`,
|
|
104
|
+
`)+" "+ne[1]:ne[0]+se+" "+K.join(", ")+" "+ne[1]}(te,L,U)):U[0]+L+U[1]}function u(a){return"["+Error.prototype.toString.call(a)+"]"}function b(a,T,C,N,I,R){var q,Z,te;if((te=Object.getOwnPropertyDescriptor(T,I)||{value:T[I]}).get?Z=te.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"):te.set&&(Z=a.stylize("[Setter]","special")),n(N,I)||(q="["+I+"]"),Z||(a.seen.indexOf(te.value)<0?(Z=A(C)?h(a,te.value,null):h(a,te.value,C-1)).indexOf(`
|
|
105
|
+
`)>-1&&(Z=R?Z.split(`
|
|
106
|
+
`).map(function(L){return" "+L}).join(`
|
|
107
|
+
`).slice(2):`
|
|
108
|
+
`+Z.split(`
|
|
109
|
+
`).map(function(L){return" "+L}).join(`
|
|
110
|
+
`)):Z=a.stylize("[Circular]","special")),P(q)){if(R&&I.match(/^\d+$/))return Z;(q=JSON.stringify(""+I)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=a.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=a.stylize(q,"string"))}return q+": "+Z}function v(a){return Array.isArray(a)}function _(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 z(a)&&e(a)==="[object RegExp]"}function z(a){return typeof a=="object"&&a!==null}function ee(a){return z(a)&&e(a)==="[object Date]"}function J(a){return z(a)&&(e(a)==="[object Error]"||a instanceof Error)}function ae(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)}S.debuglog=function(a){if(a=a.toUpperCase(),!s[a])if(p.test(a)){var T=k.pid;s[a]=function(){var C=S.format.apply(S,arguments);w.error("%s %d: %s",a,T,C)}}else s[a]=function(){};return s[a]},S.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"},S.types=y(5955),S.isArray=v,S.isBoolean=_,S.isNull=A,S.isNullOrUndefined=function(a){return a==null},S.isNumber=x,S.isString=j,S.isSymbol=function(a){return typeof a=="symbol"},S.isUndefined=P,S.isRegExp=B,S.types.isRegExp=B,S.isObject=z,S.isDate=ee,S.types.isDate=ee,S.isError=J,S.types.isNativeError=J,S.isFunction=ae,S.isPrimitive=function(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||a===void 0},S.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)}S.log=function(){var a,T;w.log("%s - %s",(T=[r((a=new Date).getHours()),r(a.getMinutes()),r(a.getSeconds())].join(":"),[a.getDate(),i[a.getMonth()],T].join(" ")),S.format.apply(S,arguments))},S.inherits=y(5717),S._extend=function(a,T){if(!T||!z(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!="undefined"?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)}S.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,I=new Promise(function(Z,te){C=Z,N=te}),R=[],q=0;q<arguments.length;q++)R.push(arguments[q]);R.push(function(Z,te){Z?N(Z):C(te)});try{a.apply(this,R)}catch(Z){N(Z)}return I}return Object.setPrototypeOf(T,Object.getPrototypeOf(a)),t&&Object.defineProperty(T,t,{value:T,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(T,g(a))},S.promisify.custom=t,S.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 I=C.pop();if(typeof I!="function")throw new TypeError("The last argument must be of type Function");var R=this,q=function(){return I.apply(R,arguments)};a.apply(this,C).then(function(Z){k.nextTick(q.bind(null,null,Z))},function(Z){k.nextTick(o.bind(null,Z,q))})}return Object.setPrototypeOf(T,Object.getPrototypeOf(a)),Object.defineProperties(T,g(a)),T}},7259:(W,S,y)=>{S.TextEncoder=typeof TextEncoder!="undefined"?TextEncoder:y(9539).TextEncoder,S.TextDecoder=typeof TextDecoder!="undefined"?TextDecoder:y(9539).TextDecoder},6430:(W,S,y)=>{var k=y(4029),w=y(3083),g=y(1924),M=y(7296),s=g("Object.prototype.toString"),p=y(6410)(),c=typeof globalThis=="undefined"?y.g:globalThis,l=w(),f=g("String.prototype.slice"),m={},h=Object.getPrototypeOf;p&&M&&h&&k(l,function(b){if(typeof c[b]=="function"){var v=new c[b];if(Symbol.toStringTag in v){var _=h(v),A=M(_,Symbol.toStringTag);if(!A){var x=h(_);A=M(x,Symbol.toStringTag)}m[b]=A.get}}});var u=y(5692);W.exports=function(b){return!!u(b)&&(p&&Symbol.toStringTag in b?function(v){var _=!1;return k(m,function(A,x){if(!_)try{var j=A.call(v);j===x&&(_=j)}catch(P){}}),_}(b):f(s(b),8,-1))}},255:W=>{var S={"&":"&",'"':""","'":"'","<":"<",">":">"};W.exports=function(y){return y&&y.replace?y.replace(/([&"<>'])/g,function(k,w){return S[w]}):y}},3479:(W,S,y)=>{var k=y(4155),w=y(255),g=y(2830).Stream;function M(p,c,l){l=l||0;var f,m,h=(f=c,new Array(l||0).join(f||"")),u=p;if(typeof p=="object"&&(u=p[m=Object.keys(p)[0]])&&u._elem)return u._elem.name=m,u._elem.icount=l,u._elem.indent=c,u._elem.indents=h,u._elem.interrupt=u,u._elem;var b,v=[],_=[];function A(x){Object.keys(x).forEach(function(j){v.push(function(P,B){return P+'="'+w(B)+'"'}(j,x[j]))})}switch(typeof u){case"object":if(u===null)break;u._attr&&A(u._attr),u._cdata&&_.push(("<![CDATA["+u._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),u.forEach&&(b=!1,_.push(""),u.forEach(function(x){typeof x=="object"?Object.keys(x)[0]=="_attr"?A(x._attr):_.push(M(x,c,l+1)):(_.pop(),b=!0,_.push(w(x)))}),b||_.push(""));break;default:_.push(w(u))}return{name:m,interrupt:!1,attributes:v,content:_,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 m(){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?`
|
|
111
|
+
`:"")),l&&l()}function h(u){return!!u.interrupt&&(u.interrupt.append=p,u.interrupt.end=m,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?`
|
|
112
|
+
`:"")),!f)return p(!1,c.indent?`
|
|
113
|
+
`:"");h(c)||m()}W.exports=function(p,c){typeof c!="object"&&(c={indent:c});var l,f,m=c.stream?new g:null,h="",u=!1,b=c.indent?c.indent===!0?" ":c.indent:"",v=!0;function _(P){v?k.nextTick(P):P()}function A(P,B){if(B!==void 0&&(h+=B),P&&!u&&(m=m||new g,u=!0),P&&u){var z=h;_(function(){m.emit("data",z)}),h=""}}function x(P,B){s(A,M(P,b,b?1:0),B)}function j(){if(m){var P=h;_(function(){m.emit("data",P),m.emit("end"),m.readable=!1,m.emit("close")})}}return _(function(){v=!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 z;B+1===p.length&&(z=j),x(P,z)}):x(p,j),m?(m.readable=!0,m):h},W.exports.element=W.exports.Element=function(){return{_elem:M(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,M(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(W,S){(function(){S.stripBOM=function(y){return y[0]==="\uFEFF"?y.substring(1):y}}).call(this)},4096:function(W,S,y){(function(){var k,w,g,M,s,p={}.hasOwnProperty;k=y(5532),w=y(8381).defaults,M=function(c){return typeof c=="string"&&(c.indexOf("&")>=0||c.indexOf(">")>=0||c.indexOf("<")>=0)},s=function(c){return"<![CDATA["+g(c)+"]]>"},g=function(c){return c.replace("]]>","]]]]><![CDATA[>")},S.Builder=function(){function c(l){var f,m,h;for(f in this.options={},m=w[.2])p.call(m,f)&&(h=m[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,m,h,u,b,v;return f=this.options.attrkey,m=this.options.charkey,Object.keys(l).length===1&&this.options.rootName===w[.2].rootName?l=l[b=Object.keys(l)[0]]:b=this.options.rootName,v=this,h=function(_,A){var x,j,P,B,z,ee;if(typeof A!="object")v.options.cdata&&M(A)?_.raw(s(A)):_.txt(A);else if(Array.isArray(A)){for(B in A)if(p.call(A,B))for(z in j=A[B])P=j[z],_=h(_.ele(z),P).up()}else for(z in A)if(p.call(A,z))if(j=A[z],z===f){if(typeof j=="object")for(x in j)ee=j[x],_=_.att(x,ee)}else if(z===m)_=v.options.cdata&&M(j)?_.raw(s(j)):_.txt(j);else if(Array.isArray(j))for(B in j)p.call(j,B)&&(_=typeof(P=j[B])=="string"?v.options.cdata&&M(P)?_.ele(z).raw(s(P)).up():_.ele(z,P).up():h(_.ele(z),P).up());else typeof j=="object"?_=h(_.ele(z),j).up():typeof j=="string"&&v.options.cdata&&M(j)?_=_.ele(z).raw(s(j)).up():(j==null&&(j=""),_=_.ele(z,j.toString()).up());return _},u=k.create(b,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(W,S){(function(){S.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:`
|
|
114
|
+
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},9082:function(W,S,y){(function(){var k,w,g,M,s,p,c,l,f=function(h,u){return function(){return h.apply(u,arguments)}},m={}.hasOwnProperty;c=y(6099),g=y(7187),k=y(306),p=y(7526),l=y(5475).setImmediate,w=y(8381).defaults,M=function(h){return typeof h=="object"&&h!=null&&Object.keys(h).length===0},s=function(h,u,b){var v,_;for(v=0,_=h.length;v<_;v++)u=(0,h[v])(u,b);return u},S.Parser=function(h){function u(b){var v,_,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 S.Parser))return new S.Parser(b);for(v in this.options={},_=w[.2])m.call(_,v)&&(A=_[v],this.options[v]=A);for(v in b)m.call(b,v)&&(A=b[v],this.options[v]=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(b,v){for(var _ in v)m.call(v,_)&&(b[_]=v[_]);function A(){this.constructor=b}A.prototype=v.prototype,b.prototype=new A,b.__super__=v.prototype}(u,h),u.prototype.processAsync=function(){var b,v;try{return this.remaining.length<=this.options.chunkSize?(b=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(b),this.saxParser.close()):(b=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(b),l(this.processAsync))}catch(_){if(v=_,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(v)}},u.prototype.assignOrPush=function(b,v,_){return v in b?(b[v]instanceof Array||(b[v]=[b[v]]),b[v].push(_)):this.options.explicitArray?b[v]=[_]:b[v]=_},u.prototype.reset=function(){var b,v,_,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=[],b=this.options.attrkey,v=this.options.charkey,this.saxParser.onopentag=function(j){return function(P){var B,z,ee,J,ae;if((ee={})[v]="",!j.options.ignoreAttrs)for(B in ae=P.attributes)m.call(ae,B)&&(b in ee||j.options.mergeAttrs||(ee[b]={}),z=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(ee,J,z):ee[b][J]=z);return ee["#name"]=j.options.tagNameProcessors?s(j.options.tagNameProcessors,P.name):P.name,j.options.xmlns&&(ee[j.options.xmlnskey]={uri:P.uri,local:P.local}),A.push(ee)}}(this),this.saxParser.onclosetag=function(j){return function(){var P,B,z,ee,J,ae,e,r,i,n;if(ae=A.pop(),J=ae["#name"],j.options.explicitChildren&&j.options.preserveChildrenOrder||delete ae["#name"],ae.cdata===!0&&(P=ae.cdata,delete ae.cdata),i=A[A.length-1],ae[v].match(/^\s*$/)&&!P?(B=ae[v],delete ae[v]):(j.options.trim&&(ae[v]=ae[v].trim()),j.options.normalize&&(ae[v]=ae[v].replace(/\s{2,}/g," ").trim()),ae[v]=j.options.valueProcessors?s(j.options.valueProcessors,ae[v],J):ae[v],Object.keys(ae).length===1&&v in ae&&!j.EXPLICIT_CHARKEY&&(ae=ae[v])),M(ae)&&(ae=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++)ee=A[t],a.push(ee["#name"]);return a}().concat(J).join("/"),function(){var t;try{ae=j.options.validator(n,i&&i[J],ae)}catch(o){return t=o,j.emit("error",t)}}()),j.options.explicitChildren&&!j.options.mergeAttrs&&typeof ae=="object")if(j.options.preserveChildrenOrder){if(i){for(z in i[j.options.childkey]=i[j.options.childkey]||[],e={},ae)m.call(ae,z)&&(e[z]=ae[z]);i[j.options.childkey].push(e),delete ae["#name"],Object.keys(ae).length===1&&v in ae&&!j.EXPLICIT_CHARKEY&&(ae=ae[v])}}else ee={},j.options.attrkey in ae&&(ee[j.options.attrkey]=ae[j.options.attrkey],delete ae[j.options.attrkey]),!j.options.charsAsChildren&&j.options.charkey in ae&&(ee[j.options.charkey]=ae[j.options.charkey],delete ae[j.options.charkey]),Object.getOwnPropertyNames(ae).length>0&&(ee[j.options.childkey]=ae),ae=ee;return A.length>0?j.assignOrPush(i,J,ae):(j.options.explicitRoot&&(r=ae,(ae={})[J]=r),j.resultObject=ae,j.saxParser.ended=!0,j.emit("end",j.resultObject))}}(this),_=function(j){return function(P){var B,z;if(z=A[A.length-1])return z[v]+=P,j.options.explicitChildren&&j.options.preserveChildrenOrder&&j.options.charsAsChildren&&(j.options.includeWhiteChars||P.replace(/\\n/g,"").trim()!=="")&&(z[j.options.childkey]=z[j.options.childkey]||[],(B={"#name":"__text__"})[v]=P,j.options.normalize&&(B[v]=B[v].replace(/\s{2,}/g," ").trim()),z[j.options.childkey].push(B)),z}}(this),this.saxParser.ontext=_,this.saxParser.oncdata=function(j){var P;if(P=_(j))return P.cdata=!0}},u.prototype.parseString=function(b,v){var _;v!=null&&typeof v=="function"&&(this.on("end",function(A){return this.reset(),v(null,A)}),this.on("error",function(A){return this.reset(),v(A)}));try{return(b=b.toString()).trim()===""?(this.emit("end",null),!0):(b=k.stripBOM(b),this.options.async?(this.remaining=b,l(this.processAsync),this.saxParser):this.saxParser.write(b).close())}catch(A){if(_=A,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",_),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw _}},u.prototype.parseStringPromise=function(b){return new Promise((v=this,function(_,A){return v.parseString(b,function(x,j){return x?A(x):_(j)})}));var v},u}(g),S.parseString=function(h,u,b){var v,_;return b!=null?(typeof b=="function"&&(v=b),typeof u=="object"&&(_=u)):(typeof u=="function"&&(v=u),_={}),new S.Parser(_).parseString(h,v)},S.parseStringPromise=function(h,u){var b;return typeof u=="object"&&(b=u),new S.Parser(b).parseStringPromise(h)}}).call(this)},7526:function(W,S){(function(){var y;y=new RegExp(/(?!xmlns)^.*:/),S.normalize=function(k){return k.toLowerCase()},S.firstCharLowerCase=function(k){return k.charAt(0).toLowerCase()+k.slice(1)},S.stripPrefix=function(k){return k.replace(y,"")},S.parseNumbers=function(k){return isNaN(k)||(k=k%1==0?parseInt(k,10):parseFloat(k)),k},S.parseBooleans=function(k){return/^(?:true|false)$/i.test(k)&&(k=k.toLowerCase()==="true"),k}}).call(this)},5055:function(W,S,y){(function(){var k,w,g,M,s={}.hasOwnProperty;w=y(8381),k=y(4096),g=y(9082),M=y(7526),S.defaults=w.defaults,S.processors=M,S.ValidationError=function(p){function c(l){this.message=l}return function(l,f){for(var m in f)s.call(f,m)&&(l[m]=f[m]);function h(){this.constructor=l}h.prototype=f.prototype,l.prototype=new h,l.__super__=f.prototype}(c,Error),c}(),S.Builder=k.Builder,S.Parser=g.Parser,S.parseString=g.parseString,S.parseStringPromise=g.parseStringPromise}).call(this)},7557:function(W){(function(){W.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},9335:function(W){(function(){W.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(W){(function(){var S,y,k,w,g,M,s,p=[].slice,c={}.hasOwnProperty;S=function(){var l,f,m,h,u,b;if(b=arguments[0],u=2<=arguments.length?p.call(arguments,1):[],g(Object.assign))Object.assign.apply(null,arguments);else for(l=0,m=u.length;l<m;l++)if((h=u[l])!=null)for(f in h)c.call(h,f)&&(b[f]=h[f]);return b},g=function(l){return!!l&&Object.prototype.toString.call(l)==="[object Function]"},M=function(l){var f;return!!l&&((f=typeof l)=="function"||f==="object")},k=function(l){return g(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"},w=function(l){var f;if(k(l))return!l.length;for(f in l)if(c.call(l,f))return!1;return!0},s=function(l){var f,m;return M(l)&&(m=Object.getPrototypeOf(l))&&(f=m.constructor)&&typeof f=="function"&&f instanceof f&&Function.prototype.toString.call(f)===Function.prototype.toString.call(Object)},y=function(l){return g(l.valueOf)?l.valueOf():l},W.exports.assign=S,W.exports.isFunction=g,W.exports.isObject=M,W.exports.isArray=k,W.exports.isEmpty=w,W.exports.isPlainObject=s,W.exports.getValue=y}).call(this)},594:function(W){(function(){W.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},2750:function(W,S,y){(function(){var k;k=y(9335),y(2026),W.exports=function(){function w(g,M,s){if(this.parent=g,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),M==null)throw new Error("Missing attribute name. "+this.debugInfo(M));this.name=this.stringify.name(M),this.value=this.stringify.attValue(s),this.type=k.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(w.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(w.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(w.prototype,"textContent",{get:function(){return this.value},set:function(g){return this.value=g||""}}),Object.defineProperty(w.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(w.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(w.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(w.prototype,"specified",{get:function(){return!0}}),w.prototype.clone=function(){return Object.create(this)},w.prototype.toString=function(g){return this.options.writer.attribute(this,this.options.writer.filterOptions(g))},w.prototype.debugInfo=function(g){return(g=g||this.name)==null?"parent: <"+this.parent.name+">":"attribute: {"+g+"}, parent: <"+this.parent.name+">"},w.prototype.isEqualNode=function(g){return g.namespaceURI===this.namespaceURI&&g.prefix===this.prefix&&g.localName===this.localName&&g.value===this.value},w}()}).call(this)},6170:function(W,S,y){(function(){var k,w,g={}.hasOwnProperty;k=y(9335),w=y(6488),W.exports=function(M){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=k.CData,this.value=this.stringify.cdata(c)}return function(p,c){for(var l in c)g.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,M),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}(w)}).call(this)},6488:function(W,S,y){(function(){var k,w={}.hasOwnProperty;k=y(2026),W.exports=function(g){function M(s){M.__super__.constructor.call(this,s),this.value=""}return function(s,p){for(var c in p)w.call(p,c)&&(s[c]=p[c]);function l(){this.constructor=s}l.prototype=p.prototype,s.prototype=new l,s.__super__=p.prototype}(M,g),Object.defineProperty(M.prototype,"data",{get:function(){return this.value},set:function(s){return this.value=s||""}}),Object.defineProperty(M.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(M.prototype,"textContent",{get:function(){return this.value},set:function(s){return this.value=s||""}}),M.prototype.clone=function(){return Object.create(this)},M.prototype.substringData=function(s,p){throw new Error("This DOM method is not implemented."+this.debugInfo())},M.prototype.appendData=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},M.prototype.insertData=function(s,p){throw new Error("This DOM method is not implemented."+this.debugInfo())},M.prototype.deleteData=function(s,p){throw new Error("This DOM method is not implemented."+this.debugInfo())},M.prototype.replaceData=function(s,p,c){throw new Error("This DOM method is not implemented."+this.debugInfo())},M.prototype.isEqualNode=function(s){return!!M.__super__.isEqualNode.apply(this,arguments).isEqualNode(s)&&s.data===this.data},M}(k)}).call(this)},2096:function(W,S,y){(function(){var k,w,g={}.hasOwnProperty;k=y(9335),w=y(6488),W.exports=function(M){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=k.Comment,this.value=this.stringify.comment(c)}return function(p,c){for(var l in c)g.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,M),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}(w)}).call(this)},383:function(W,S,y){(function(){var k,w;k=y(3933),w=y(6210),W.exports=function(){function g(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new k,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(g.prototype,"parameterNames",{get:function(){return new w(Object.keys(this.defaultParams))}}),g.prototype.getParameter=function(M){return this.params.hasOwnProperty(M)?this.params[M]:null},g.prototype.canSetParameter=function(M,s){return!0},g.prototype.setParameter=function(M,s){return s!=null?this.params[M]=s:delete this.params[M]},g}()}).call(this)},3933:function(W){(function(){W.exports=function(){function S(){}return S.prototype.handleError=function(y){throw new Error(y)},S}()}).call(this)},1770:function(W){(function(){W.exports=function(){function S(){}return S.prototype.hasFeature=function(y,k){return!0},S.prototype.createDocumentType=function(y,k,w){throw new Error("This DOM method is not implemented.")},S.prototype.createDocument=function(y,k,w){throw new Error("This DOM method is not implemented.")},S.prototype.createHTMLDocument=function(y){throw new Error("This DOM method is not implemented.")},S.prototype.getFeature=function(y,k){throw new Error("This DOM method is not implemented.")},S}()}).call(this)},6210:function(W){(function(){W.exports=function(){function S(y){this.arr=y||[]}return Object.defineProperty(S.prototype,"length",{get:function(){return this.arr.length}}),S.prototype.item=function(y){return this.arr[y]||null},S.prototype.contains=function(y){return this.arr.indexOf(y)!==-1},S}()}).call(this)},1179:function(W,S,y){(function(){var k,w,g={}.hasOwnProperty;w=y(2026),k=y(9335),W.exports=function(M){function s(p,c,l,f,m,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(!m)throw new Error("Missing DTD attribute default. "+this.debugInfo(c));if(m.indexOf("#")!==0&&(m="#"+m),!m.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(c));if(h&&!m.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=k.AttributeDeclaration,this.attributeName=this.stringify.name(l),this.attributeType=this.stringify.dtdAttType(f),h&&(this.defaultValue=this.stringify.dtdAttDefault(h)),this.defaultValueType=m}return function(p,c){for(var l in c)g.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,M),s.prototype.toString=function(p){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(p))},s}(w)}).call(this)},6347:function(W,S,y){(function(){var k,w,g={}.hasOwnProperty;w=y(2026),k=y(9335),W.exports=function(M){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=k.ElementDeclaration,this.value=this.stringify.dtdElementValue(l)}return function(p,c){for(var l in c)g.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,M),s.prototype.toString=function(p){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(p))},s}(w)}).call(this)},9078:function(W,S,y){(function(){var k,w,g,M={}.hasOwnProperty;g=y(8369).isObject,w=y(2026),k=y(9335),W.exports=function(s){function p(c,l,f,m){if(p.__super__.constructor.call(this,c),f==null)throw new Error("Missing DTD entity name. "+this.debugInfo(f));if(m==null)throw new Error("Missing DTD entity value. "+this.debugInfo(f));if(this.pe=!!l,this.name=this.stringify.name(f),this.type=k.EntityDeclaration,g(m)){if(!m.pubID&&!m.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(f));if(m.pubID&&!m.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(f));if(this.internal=!1,m.pubID!=null&&(this.pubID=this.stringify.dtdPubID(m.pubID)),m.sysID!=null&&(this.sysID=this.stringify.dtdSysID(m.sysID)),m.nData!=null&&(this.nData=this.stringify.dtdNData(m.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(m),this.internal=!0}return function(c,l){for(var f in l)M.call(l,f)&&(c[f]=l[f]);function m(){this.constructor=c}m.prototype=l.prototype,c.prototype=new m,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}(w)}).call(this)},4777:function(W,S,y){(function(){var k,w,g={}.hasOwnProperty;w=y(2026),k=y(9335),W.exports=function(M){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=k.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)g.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,M),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}(w)}).call(this)},9077:function(W,S,y){(function(){var k,w,g,M={}.hasOwnProperty;g=y(8369).isObject,w=y(2026),k=y(9335),W.exports=function(s){function p(c,l,f,m){var h;p.__super__.constructor.call(this,c),g(l)&&(l=(h=l).version,f=h.encoding,m=h.standalone),l||(l="1.0"),this.type=k.Declaration,this.version=this.stringify.xmlVersion(l),f!=null&&(this.encoding=this.stringify.xmlEncoding(f)),m!=null&&(this.standalone=this.stringify.xmlStandalone(m))}return function(c,l){for(var f in l)M.call(l,f)&&(c[f]=l[f]);function m(){this.constructor=c}m.prototype=l.prototype,c.prototype=new m,c.__super__=l.prototype}(p,s),p.prototype.toString=function(c){return this.options.writer.declaration(this,this.options.writer.filterOptions(c))},p}(w)}).call(this)},6544:function(W,S,y){(function(){var k,w,g,M,s,p,c,l,f={}.hasOwnProperty;l=y(8369).isObject,c=y(2026),k=y(9335),w=y(1179),M=y(9078),g=y(6347),s=y(4777),p=y(663),W.exports=function(m){function h(u,b,v){var _,A,x,j,P,B;if(h.__super__.constructor.call(this,u),this.type=k.DocType,u.children){for(A=0,x=(j=u.children).length;A<x;A++)if((_=j[A]).type===k.Element){this.name=_.name;break}}this.documentObject=u,l(b)&&(b=(P=b).pubID,v=P.sysID),v==null&&(v=(B=[b,v])[0],b=B[1]),b!=null&&(this.pubID=this.stringify.dtdPubID(b)),v!=null&&(this.sysID=this.stringify.dtdSysID(v))}return function(u,b){for(var v in b)f.call(b,v)&&(u[v]=b[v]);function _(){this.constructor=u}_.prototype=b.prototype,u.prototype=new _,u.__super__=b.prototype}(h,m),Object.defineProperty(h.prototype,"entities",{get:function(){var u,b,v,_,A;for(_={},b=0,v=(A=this.children).length;b<v;b++)(u=A[b]).type!==k.EntityDeclaration||u.pe||(_[u.name]=u);return new p(_)}}),Object.defineProperty(h.prototype,"notations",{get:function(){var u,b,v,_,A;for(_={},b=0,v=(A=this.children).length;b<v;b++)(u=A[b]).type===k.NotationDeclaration&&(_[u.name]=u);return new p(_)}}),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,b){var v;return v=new g(this,u,b),this.children.push(v),this},h.prototype.attList=function(u,b,v,_,A){var x;return x=new w(this,u,b,v,_,A),this.children.push(x),this},h.prototype.entity=function(u,b){var v;return v=new M(this,!1,u,b),this.children.push(v),this},h.prototype.pEntity=function(u,b){var v;return v=new M(this,!0,u,b),this.children.push(v),this},h.prototype.notation=function(u,b){var v;return v=new s(this,u,b),this.children.push(v),this},h.prototype.toString=function(u){return this.options.writer.docType(this,this.options.writer.filterOptions(u))},h.prototype.ele=function(u,b){return this.element(u,b)},h.prototype.att=function(u,b,v,_,A){return this.attList(u,b,v,_,A)},h.prototype.ent=function(u,b){return this.entity(u,b)},h.prototype.pent=function(u,b){return this.pEntity(u,b)},h.prototype.not=function(u,b){return this.notation(u,b)},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(W,S,y){(function(){var k,w,g,M,s,p,c,l={}.hasOwnProperty;c=y(8369).isPlainObject,g=y(1770),w=y(383),M=y(2026),k=y(9335),p=y(5549),s=y(6434),W.exports=function(f){function m(h){m.__super__.constructor.call(this,null),this.name="#document",this.type=k.Document,this.documentURI=null,this.domConfig=new w,h||(h={}),h.writer||(h.writer=new s),this.options=h,this.stringify=new p(h)}return function(h,u){for(var b in u)l.call(u,b)&&(h[b]=u[b]);function v(){this.constructor=h}v.prototype=u.prototype,h.prototype=new v,h.__super__=u.prototype}(m,f),Object.defineProperty(m.prototype,"implementation",{value:new g}),Object.defineProperty(m.prototype,"doctype",{get:function(){var h,u,b,v;for(u=0,b=(v=this.children).length;u<b;u++)if((h=v[u]).type===k.DocType)return h;return null}}),Object.defineProperty(m.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(m.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(m.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(m.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===k.Declaration?this.children[0].encoding:null}}),Object.defineProperty(m.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===k.Declaration&&this.children[0].standalone==="yes"}}),Object.defineProperty(m.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===k.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(m.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(m.prototype,"origin",{get:function(){return null}}),Object.defineProperty(m.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(m.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(m.prototype,"contentType",{get:function(){return null}}),m.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))},m.prototype.toString=function(h){return this.options.writer.document(this,this.options.writer.filterOptions(h))},m.prototype.createElement=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createTextNode=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createComment=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createCDATASection=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createProcessingInstruction=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createAttribute=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createEntityReference=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByTagName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.importNode=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createElementNS=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createAttributeNS=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByTagNameNS=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementById=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.adoptNode=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.renameNode=function(h,u,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByClassName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createEvent=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createNodeIterator=function(h,u,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createTreeWalker=function(h,u,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},m}(M)}).call(this)},9227:function(W,S,y){(function(){var k,w,g,M,s,p,c,l,f,m,h,u,b,v,_,A,x,j,P,B,z,ee,J,ae={}.hasOwnProperty;J=y(8369),z=J.isObject,B=J.isFunction,ee=J.isPlainObject,P=J.getValue,k=y(9335),u=y(6934),b=y(2161),M=y(6170),s=y(2096),_=y(9406),j=y(3595),v=y(9181),m=y(9077),h=y(6544),p=y(1179),l=y(9078),c=y(6347),f=y(4777),g=y(2750),x=y(5549),A=y(6434),w=y(594),W.exports=function(){function e(r,i,n){var t;this.name="?xml",this.type=k.Document,r||(r={}),t={},r.writer?ee(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 k.CData:this.cdata(r.value);break;case k.Comment:this.comment(r.value);break;case k.Element:for(n in t={},C=r.attribs)ae.call(C,n)&&(i=C[n],t[n]=i.value);this.node(r.name,t);break;case k.Dummy:this.dummy();break;case k.Raw:this.raw(r.value);break;case k.Text:this.text(r.value);break;case k.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===k.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),z(i)||(n=(t=[i,n])[0],i=t[1]),this.currentNode=new b(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===k.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(r)||z(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===k.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)),z(r))for(n in r)ae.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 g(this,r,""):i!=null&&(this.currentNode.attribs[r]=new g(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 M(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 _(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(z(r))for(t in r)ae.call(r,t)&&(o=r[t],this.instruction(t,o));else B(i)&&(i=i.apply()),T=new v(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 m(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!==k.Element||(this.root=r),n="",r.type===k.Element){for(t in this.writerOptions.state=w.OpenTag,n=this.writer.indent(r,this.writerOptions,this.currentLevel)+"<"+r.name,o=r.attribs)ae.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=w.InsideTag}else this.writerOptions.state=w.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=w.InsideTag):(this.writerOptions.state=w.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=w.CloseTag,i=r.type===k.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=w.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===k.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.a=function(){return this.currentNode&&this.currentNode.type===k.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(W,S,y){(function(){var k,w,g={}.hasOwnProperty;w=y(2026),k=y(9335),W.exports=function(M){function s(p){s.__super__.constructor.call(this,p),this.type=k.Dummy}return function(p,c){for(var l in c)g.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,M),s.prototype.clone=function(){return Object.create(this)},s.prototype.toString=function(p){return""},s}(w)}).call(this)},2161:function(W,S,y){(function(){var k,w,g,M,s,p,c,l,f={}.hasOwnProperty;l=y(8369),c=l.isObject,p=l.isFunction,s=l.getValue,M=y(2026),k=y(9335),w=y(2750),g=y(663),W.exports=function(m){function h(u,b,v){var _,A,x,j;if(h.__super__.constructor.call(this,u),b==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(b),this.type=k.Element,this.attribs={},this.schemaTypeInfo=null,v!=null&&this.attribute(v),u.type===k.Document&&(this.isRoot=!0,this.documentObject=u,u.rootObject=this,u.children)){for(A=0,x=(j=u.children).length;A<x;A++)if((_=j[A]).type===k.DocType){_.name=this.name;break}}}return function(u,b){for(var v in b)f.call(b,v)&&(u[v]=b[v]);function _(){this.constructor=u}_.prototype=b.prototype,u.prototype=new _,u.__super__=b.prototype}(h,m),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 g(this.attribs)),this.attributeMap}}),h.prototype.clone=function(){var u,b,v,_;for(b in(v=Object.create(this)).isRoot&&(v.documentObject=null),v.attribs={},_=this.attribs)f.call(_,b)&&(u=_[b],v.attribs[b]=u.clone());return v.children=[],this.children.forEach(function(A){var x;return(x=A.clone()).parent=v,v.children.push(x)}),v},h.prototype.attribute=function(u,b){var v,_;if(u!=null&&(u=s(u)),c(u))for(v in u)f.call(u,v)&&(_=u[v],this.attribute(v,_));else p(b)&&(b=b.apply()),this.options.keepNullAttributes&&b==null?this.attribs[u]=new w(this,u,""):b!=null&&(this.attribs[u]=new w(this,u,b));return this},h.prototype.removeAttribute=function(u){var b,v,_;if(u==null)throw new Error("Missing attribute name. "+this.debugInfo());if(u=s(u),Array.isArray(u))for(v=0,_=u.length;v<_;v++)b=u[v],delete this.attribs[b];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,b){return this.attribute(u,b)},h.prototype.a=function(u,b){return this.attribute(u,b)},h.prototype.getAttribute=function(u){return this.attribs.hasOwnProperty(u)?this.attribs[u].value:null},h.prototype.setAttribute=function(u,b){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,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.setAttributeNS=function(u,b,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.removeAttributeNS=function(u,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getAttributeNodeNS=function(u,b){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,b){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,b){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.setIdAttribute=function(u,b){return this.attribs.hasOwnProperty(u)?this.attribs[u].isId:b},h.prototype.setIdAttributeNS=function(u,b,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.setIdAttributeNode=function(u,b){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,b){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 b,v,_;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(b=v=0,_=this.attribs.length-1;0<=_?v<=_:v>=_;b=0<=_?++v:--v)if(!this.attribs[b].isEqualNode(u.attribs[b]))return!1;return!0},h}(M)}).call(this)},663:function(W){(function(){W.exports=function(){function S(y){this.nodes=y}return Object.defineProperty(S.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),S.prototype.clone=function(){return this.nodes=null},S.prototype.getNamedItem=function(y){return this.nodes[y]},S.prototype.setNamedItem=function(y){var k;return k=this.nodes[y.nodeName],this.nodes[y.nodeName]=y,k||null},S.prototype.removeNamedItem=function(y){var k;return k=this.nodes[y],delete this.nodes[y],k||null},S.prototype.item=function(y){return this.nodes[Object.keys(this.nodes)[y]]||null},S.prototype.getNamedItemNS=function(y,k){throw new Error("This DOM method is not implemented.")},S.prototype.setNamedItemNS=function(y){throw new Error("This DOM method is not implemented.")},S.prototype.removeNamedItemNS=function(y,k){throw new Error("This DOM method is not implemented.")},S}()}).call(this)},2026:function(W,S,y){(function(){var k,w,g,M,s,p,c,l,f,m,h,u,b,v,_,A,x,j={}.hasOwnProperty;x=y(8369),A=x.isObject,_=x.isFunction,v=x.isEmpty,b=x.getValue,l=null,g=null,M=null,s=null,p=null,h=null,u=null,m=null,c=null,w=null,f=null,k=null,W.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),g=y(6170),M=y(2096),s=y(9077),p=y(6544),h=y(9406),u=y(3595),m=y(9181),c=y(8833),w=y(9335),f=y(2390),y(663),k=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,z,ee,J,ae;if(this.nodeType===w.Element||this.nodeType===w.DocumentFragment){for(ae="",z=0,ee=(J=this.children).length;z<ee;z++)(B=J[z]).textContent&&(ae+=B.textContent);return ae}return null},set:function(B){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),P.prototype.setParent=function(B){var z,ee,J,ae,e;for(this.parent=B,B&&(this.options=B.options,this.stringify=B.stringify),e=[],ee=0,J=(ae=this.children).length;ee<J;ee++)z=ae[ee],e.push(z.setParent(this));return e},P.prototype.element=function(B,z,ee){var J,ae,e,r,i,n,t,o,a,T,C;if(n=null,z===null&&ee==null&&(z=(a=[{},null])[0],ee=a[1]),z==null&&(z={}),z=b(z),A(z)||(ee=(T=[z,ee])[0],z=T[1]),B!=null&&(B=b(B)),Array.isArray(B))for(e=0,t=B.length;e<t;e++)ae=B[e],n=this.element(ae);else if(_(B))n=this.element(B.apply());else if(A(B)){for(i in B)if(j.call(B,i))if(C=B[i],_(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)&&v(C))n=this.dummy();else if(A(C)&&v(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++)ae=C[r],(J={})[i]=ae,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||ee!==null?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&B.indexOf(this.stringify.convertTextKey)===0?this.text(ee):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&B.indexOf(this.stringify.convertCDataKey)===0?this.cdata(ee):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&B.indexOf(this.stringify.convertCommentKey)===0?this.comment(ee):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&B.indexOf(this.stringify.convertRawKey)===0?this.raw(ee):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&B.indexOf(this.stringify.convertPIKey)===0?this.instruction(B.substr(this.stringify.convertPIKey.length),ee):this.node(B,z,ee):this.dummy();if(n==null)throw new Error("Could not create any elements with: "+B+". "+this.debugInfo());return n},P.prototype.insertBefore=function(B,z,ee){var J,ae,e,r,i;if(B!=null&&B.type)return r=z,(e=B).setParent(this),r?(ae=children.indexOf(r),i=children.splice(ae),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 ae=this.parent.children.indexOf(this),i=this.parent.children.splice(ae),J=this.parent.element(B,z,ee),Array.prototype.push.apply(this.parent.children,i),J},P.prototype.insertAfter=function(B,z,ee){var J,ae,e;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(B));return ae=this.parent.children.indexOf(this),e=this.parent.children.splice(ae+1),J=this.parent.element(B,z,ee),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,z,ee){var J,ae;return B!=null&&(B=b(B)),z||(z={}),z=b(z),A(z)||(ee=(ae=[z,ee])[0],z=ae[1]),J=new l(this,B,z),ee!=null&&J.text(ee),this.children.push(J),J},P.prototype.text=function(B){var z;return A(B)&&this.element(B),z=new u(this,B),this.children.push(z),this},P.prototype.cdata=function(B){var z;return z=new g(this,B),this.children.push(z),this},P.prototype.comment=function(B){var z;return z=new M(this,B),this.children.push(z),this},P.prototype.commentBefore=function(B){var z,ee;return z=this.parent.children.indexOf(this),ee=this.parent.children.splice(z),this.parent.comment(B),Array.prototype.push.apply(this.parent.children,ee),this},P.prototype.commentAfter=function(B){var z,ee;return z=this.parent.children.indexOf(this),ee=this.parent.children.splice(z+1),this.parent.comment(B),Array.prototype.push.apply(this.parent.children,ee),this},P.prototype.raw=function(B){var z;return z=new h(this,B),this.children.push(z),this},P.prototype.dummy=function(){return new c(this)},P.prototype.instruction=function(B,z){var ee,J,ae,e,r;if(B!=null&&(B=b(B)),z!=null&&(z=b(z)),Array.isArray(B))for(e=0,r=B.length;e<r;e++)ee=B[e],this.instruction(ee);else if(A(B))for(ee in B)j.call(B,ee)&&(J=B[ee],this.instruction(ee,J));else _(z)&&(z=z.apply()),ae=new m(this,B,z),this.children.push(ae);return this},P.prototype.instructionBefore=function(B,z){var ee,J;return ee=this.parent.children.indexOf(this),J=this.parent.children.splice(ee),this.parent.instruction(B,z),Array.prototype.push.apply(this.parent.children,J),this},P.prototype.instructionAfter=function(B,z){var ee,J;return ee=this.parent.children.indexOf(this),J=this.parent.children.splice(ee+1),this.parent.instruction(B,z),Array.prototype.push.apply(this.parent.children,J),this},P.prototype.declaration=function(B,z,ee){var J,ae;return J=this.document(),ae=new s(J,B,z,ee),J.children.length===0?J.children.unshift(ae):J.children[0].type===w.Declaration?J.children[0]=ae:J.children.unshift(ae),J.root()||J},P.prototype.dtd=function(B,z){var ee,J,ae,e,r,i,n,t,o;for(ee=this.document(),J=new p(ee,B,z),ae=e=0,i=(t=ee.children).length;e<i;ae=++e)if(t[ae].type===w.DocType)return ee.children[ae]=J,J;for(ae=r=0,n=(o=ee.children).length;r<n;ae=++r)if(o[ae].isRoot)return ee.children.splice(ae,0,J),J;return ee.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===w.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===w.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 z;return(z=B.root().clone()).parent=this,z.isRoot=!1,this.children.push(z),this},P.prototype.debugInfo=function(B){var z,ee;return(B=B||this.name)!=null||(z=this.parent)!=null&&z.name?B==null?"parent: <"+this.parent.name+">":(ee=this.parent)!=null&&ee.name?"node: <"+B+">, parent: <"+this.parent.name+">":"node: <"+B+">":""},P.prototype.ele=function(B,z,ee){return this.element(B,z,ee)},P.prototype.nod=function(B,z,ee){return this.node(B,z,ee)},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,z){return this.instruction(B,z)},P.prototype.doc=function(){return this.document()},P.prototype.dec=function(B,z,ee){return this.declaration(B,z,ee)},P.prototype.e=function(B,z,ee){return this.element(B,z,ee)},P.prototype.n=function(B,z,ee){return this.node(B,z,ee)},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,z){return this.instruction(B,z)},P.prototype.u=function(){return this.up()},P.prototype.importXMLBuilder=function(B){return this.importDocument(B)},P.prototype.replaceChild=function(B,z){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,z){return!0},P.prototype.hasAttributes=function(){return this.attribs.length!==0},P.prototype.compareDocumentPosition=function(B){var z,ee;return(z=this)===B?0:this.document()!==B.document()?(ee=k.Disconnected|k.ImplementationSpecific,Math.random()<.5?ee|=k.Preceding:ee|=k.Following,ee):z.isAncestor(B)?k.Contains|k.Preceding:z.isDescendant(B)?k.Contains|k.Following:z.isPreceding(B)?k.Preceding:k.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 z,ee,J;if(B.nodeType!==this.nodeType||B.children.length!==this.children.length)return!1;for(z=ee=0,J=this.children.length-1;0<=J?ee<=J:ee>=J;z=0<=J?++ee:--ee)if(!this.children[z].isEqualNode(B.children[z]))return!1;return!0},P.prototype.getFeature=function(B,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},P.prototype.setUserData=function(B,z,ee){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 z,ee,J,ae;for(ee=0,J=(ae=this.children).length;ee<J;ee++)if(B===(z=ae[ee])||z.isDescendant(B))return!0;return!1},P.prototype.isAncestor=function(B){return B.isDescendant(this)},P.prototype.isPreceding=function(B){var z,ee;return z=this.treePosition(B),ee=this.treePosition(this),z!==-1&&ee!==-1&&z<ee},P.prototype.isFollowing=function(B){var z,ee;return z=this.treePosition(B),ee=this.treePosition(this),z!==-1&&ee!==-1&&z>ee},P.prototype.treePosition=function(B){var z,ee;return ee=0,z=!1,this.foreachTreeNode(this.document(),function(J){if(ee++,!z&&J===B)return z=!0}),z?ee:-1},P.prototype.foreachTreeNode=function(B,z){var ee,J,ae,e,r;for(B||(B=this.document()),J=0,ae=(e=B.children).length;J<ae;J++)if((r=z(ee=e[J]))||(r=this.foreachTreeNode(ee,z)))return r},P}()}).call(this)},2390:function(W){(function(){W.exports=function(){function S(y){this.nodes=y}return Object.defineProperty(S.prototype,"length",{get:function(){return this.nodes.length||0}}),S.prototype.clone=function(){return this.nodes=null},S.prototype.item=function(y){return this.nodes[y]||null},S}()}).call(this)},9181:function(W,S,y){(function(){var k,w,g={}.hasOwnProperty;k=y(9335),w=y(6488),W.exports=function(M){function s(p,c,l){if(s.__super__.constructor.call(this,p),c==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=k.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)g.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,M),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}(w)}).call(this)},9406:function(W,S,y){(function(){var k,w,g={}.hasOwnProperty;k=y(9335),w=y(2026),W.exports=function(M){function s(p,c){if(s.__super__.constructor.call(this,p),c==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=k.Raw,this.value=this.stringify.raw(c)}return function(p,c){for(var l in c)g.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,M),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}(w)}).call(this)},1996:function(W,S,y){(function(){var k,w,g,M={}.hasOwnProperty;k=y(9335),g=y(751),w=y(594),W.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)M.call(l,f)&&(c[f]=l[f]);function m(){this.constructor=c}m.prototype=l.prototype,c.prototype=new m,c.__super__=l.prototype}(p,s),p.prototype.endline=function(c,l,f){return c.isLastRootNode&&l.state===w.CloseTag?"":p.__super__.endline.call(this,c,l,f)},p.prototype.document=function(c,l){var f,m,h,u,b,v,_,A,x;for(m=h=0,b=(_=c.children).length;h<b;m=++h)(f=_[m]).isLastRootNode=m===c.children.length-1;for(l=this.filterOptions(l),x=[],u=0,v=(A=c.children).length;u<v;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 m,h,u,b;if(f||(f=0),this.openNode(c,l,f),l.state=w.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=w.InsideTag,h=0,u=(b=c.children).length;h<u;h++)m=b[h],this.writeChildNode(m,l,f+1);l.state=w.CloseTag,this.stream.write("]")}return l.state=w.CloseTag,this.stream.write(l.spaceBeforeSlash+">"),this.stream.write(this.endline(c,l,f)),l.state=w.None,this.closeNode(c,l,f)},p.prototype.element=function(c,l,f){var m,h,u,b,v,_,A,x,j;for(A in f||(f=0),this.openNode(c,l,f),l.state=w.OpenTag,this.stream.write(this.indent(c,l,f)+"<"+c.name),x=c.attribs)M.call(x,A)&&(m=x[A],this.attribute(m,l,f));if(b=(u=c.children.length)===0?null:c.children[0],u===0||c.children.every(function(P){return(P.type===k.Text||P.type===k.Raw)&&P.value===""}))l.allowEmpty?(this.stream.write(">"),l.state=w.CloseTag,this.stream.write("</"+c.name+">")):(l.state=w.CloseTag,this.stream.write(l.spaceBeforeSlash+"/>"));else if(!l.pretty||u!==1||b.type!==k.Text&&b.type!==k.Raw||b.value==null){for(this.stream.write(">"+this.endline(c,l,f)),l.state=w.InsideTag,v=0,_=(j=c.children).length;v<_;v++)h=j[v],this.writeChildNode(h,l,f+1);l.state=w.CloseTag,this.stream.write(this.indent(c,l,f)+"</"+c.name+">")}else this.stream.write(">"),l.state=w.InsideTag,l.suppressPrettyCount++,this.writeChildNode(b,l,f+1),l.suppressPrettyCount--,l.state=w.CloseTag,this.stream.write("</"+c.name+">");return this.stream.write(this.endline(c,l,f)),l.state=w.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}(g)}).call(this)},6434:function(W,S,y){(function(){var k,w={}.hasOwnProperty;k=y(751),W.exports=function(g){function M(s){M.__super__.constructor.call(this,s)}return function(s,p){for(var c in p)w.call(p,c)&&(s[c]=p[c]);function l(){this.constructor=s}l.prototype=p.prototype,s.prototype=new l,s.__super__=p.prototype}(M,g),M.prototype.document=function(s,p){var c,l,f,m,h;for(p=this.filterOptions(p),m="",l=0,f=(h=s.children).length;l<f;l++)c=h[l],m+=this.writeChildNode(c,p,0);return p.pretty&&m.slice(-p.newline.length)===p.newline&&(m=m.slice(0,-p.newline.length)),m},M}(k)}).call(this)},5549:function(W){(function(){var S=function(k,w){return function(){return k.apply(w,arguments)}},y={}.hasOwnProperty;W.exports=function(){function k(w){var g,M,s;for(g in this.assertLegalName=S(this.assertLegalName,this),this.assertLegalChar=S(this.assertLegalChar,this),w||(w={}),this.options=w,this.options.version||(this.options.version="1.0"),M=w.stringify||{})y.call(M,g)&&(s=M[g],this[g]=s)}return k.prototype.name=function(w){return this.options.noValidation?w:this.assertLegalName(""+w||"")},k.prototype.text=function(w){return this.options.noValidation?w:this.assertLegalChar(this.textEscape(""+w||""))},k.prototype.cdata=function(w){return this.options.noValidation?w:(w=(w=""+w||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(w))},k.prototype.comment=function(w){if(this.options.noValidation)return w;if((w=""+w||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+w);return this.assertLegalChar(w)},k.prototype.raw=function(w){return this.options.noValidation?w:""+w||""},k.prototype.attValue=function(w){return this.options.noValidation?w:this.assertLegalChar(this.attEscape(w=""+w||""))},k.prototype.insTarget=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},k.prototype.insValue=function(w){if(this.options.noValidation)return w;if((w=""+w||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+w);return this.assertLegalChar(w)},k.prototype.xmlVersion=function(w){if(this.options.noValidation)return w;if(!(w=""+w||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+w);return w},k.prototype.xmlEncoding=function(w){if(this.options.noValidation)return w;if(!(w=""+w||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+w);return this.assertLegalChar(w)},k.prototype.xmlStandalone=function(w){return this.options.noValidation?w:w?"yes":"no"},k.prototype.dtdPubID=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},k.prototype.dtdSysID=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},k.prototype.dtdElementValue=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},k.prototype.dtdAttType=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},k.prototype.dtdAttDefault=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},k.prototype.dtdEntityValue=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},k.prototype.dtdNData=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},k.prototype.convertAttKey="@",k.prototype.convertPIKey="?",k.prototype.convertTextKey="#text",k.prototype.convertCDataKey="#cdata",k.prototype.convertCommentKey="#comment",k.prototype.convertRawKey="#raw",k.prototype.assertLegalChar=function(w){var g,M;if(this.options.noValidation)return w;if(g="",this.options.version==="1.0"){if(g=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,M=w.match(g))throw new Error("Invalid character in string: "+w+" at index "+M.index)}else if(this.options.version==="1.1"&&(g=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,M=w.match(g)))throw new Error("Invalid character in string: "+w+" at index "+M.index);return w},k.prototype.assertLegalName=function(w){var g;if(this.options.noValidation)return w;if(this.assertLegalChar(w),g=/^([: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])*$/,!w.match(g))throw new Error("Invalid character in name");return w},k.prototype.textEscape=function(w){var g;return this.options.noValidation?w:(g=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,w.replace(g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},k.prototype.attEscape=function(w){var g;return this.options.noValidation?w:(g=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,w.replace(g,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},k}()}).call(this)},3595:function(W,S,y){(function(){var k,w,g={}.hasOwnProperty;k=y(9335),w=y(6488),W.exports=function(M){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=k.Text,this.value=this.stringify.text(c)}return function(p,c){for(var l in c)g.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,M),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}(w)}).call(this)},751:function(W,S,y){(function(){var k,w,g,M={}.hasOwnProperty;g=y(8369).assign,k=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),w=y(594),W.exports=function(){function s(p){var c,l,f;for(c in p||(p={}),this.options=p,l=p.writer||{})M.call(l,c)&&(f=l[c],this["_"+c]=this[c],this[c]=f)}return s.prototype.filterOptions=function(p){var c,l,f,m,h,u,b,v;return p||(p={}),p=g({},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:`
|
|
115
|
+
`,c.offset=(m=p.offset)!=null?m:0,c.dontPrettyTextNodes=(h=(u=p.dontPrettyTextNodes)!=null?u:p.dontprettytextnodes)!=null?h:0,c.spaceBeforeSlash=(b=(v=p.spaceBeforeSlash)!=null?v:p.spacebeforeslash)!=null?b:"",c.spaceBeforeSlash===!0&&(c.spaceBeforeSlash=" "),c.suppressPrettyCount=0,c.user={},c.state=w.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=w.OpenTag,f=this.indent(p,c,l)+"<![CDATA[",c.state=w.InsideTag,f+=p.value,c.state=w.CloseTag,f+="]]>"+this.endline(p,c,l),c.state=w.None,this.closeNode(p,c,l),f},s.prototype.comment=function(p,c,l){var f;return this.openNode(p,c,l),c.state=w.OpenTag,f=this.indent(p,c,l)+"<!-- ",c.state=w.InsideTag,f+=p.value,c.state=w.CloseTag,f+=" -->"+this.endline(p,c,l),c.state=w.None,this.closeNode(p,c,l),f},s.prototype.declaration=function(p,c,l){var f;return this.openNode(p,c,l),c.state=w.OpenTag,f=this.indent(p,c,l)+"<?xml",c.state=w.InsideTag,f+=' version="'+p.version+'"',p.encoding!=null&&(f+=' encoding="'+p.encoding+'"'),p.standalone!=null&&(f+=' standalone="'+p.standalone+'"'),c.state=w.CloseTag,f+=c.spaceBeforeSlash+"?>",f+=this.endline(p,c,l),c.state=w.None,this.closeNode(p,c,l),f},s.prototype.docType=function(p,c,l){var f,m,h,u,b;if(l||(l=0),this.openNode(p,c,l),c.state=w.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=w.InsideTag,m=0,h=(b=p.children).length;m<h;m++)f=b[m],u+=this.writeChildNode(f,c,l+1);c.state=w.CloseTag,u+="]"}return c.state=w.CloseTag,u+=c.spaceBeforeSlash+">",u+=this.endline(p,c,l),c.state=w.None,this.closeNode(p,c,l),u},s.prototype.element=function(p,c,l){var f,m,h,u,b,v,_,A,x,j,P,B,z,ee;for(x in l||(l=0),j=!1,P="",this.openNode(p,c,l),c.state=w.OpenTag,P+=this.indent(p,c,l)+"<"+p.name,B=p.attribs)M.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===k.Text||J.type===k.Raw)&&J.value===""}))c.allowEmpty?(P+=">",c.state=w.CloseTag,P+="</"+p.name+">"+this.endline(p,c,l)):(c.state=w.CloseTag,P+=c.spaceBeforeSlash+"/>"+this.endline(p,c,l));else if(!c.pretty||h!==1||u.type!==k.Text&&u.type!==k.Raw||u.value==null){if(c.dontPrettyTextNodes){for(b=0,_=(z=p.children).length;b<_;b++)if(((m=z[b]).type===k.Text||m.type===k.Raw)&&m.value!=null){c.suppressPrettyCount++,j=!0;break}}for(P+=">"+this.endline(p,c,l),c.state=w.InsideTag,v=0,A=(ee=p.children).length;v<A;v++)m=ee[v],P+=this.writeChildNode(m,c,l+1);c.state=w.CloseTag,P+=this.indent(p,c,l)+"</"+p.name+">",j&&c.suppressPrettyCount--,P+=this.endline(p,c,l),c.state=w.None}else P+=">",c.state=w.InsideTag,c.suppressPrettyCount++,j=!0,P+=this.writeChildNode(u,c,l+1),c.suppressPrettyCount--,j=!1,c.state=w.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 k.CData:return this.cdata(p,c,l);case k.Comment:return this.comment(p,c,l);case k.Element:return this.element(p,c,l);case k.Raw:return this.raw(p,c,l);case k.Text:return this.text(p,c,l);case k.ProcessingInstruction:return this.processingInstruction(p,c,l);case k.Dummy:return"";case k.Declaration:return this.declaration(p,c,l);case k.DocType:return this.docType(p,c,l);case k.AttributeDeclaration:return this.dtdAttList(p,c,l);case k.ElementDeclaration:return this.dtdElement(p,c,l);case k.EntityDeclaration:return this.dtdEntity(p,c,l);case k.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=w.OpenTag,f=this.indent(p,c,l)+"<?",c.state=w.InsideTag,f+=p.target,p.value&&(f+=" "+p.value),c.state=w.CloseTag,f+=c.spaceBeforeSlash+"?>",f+=this.endline(p,c,l),c.state=w.None,this.closeNode(p,c,l),f},s.prototype.raw=function(p,c,l){var f;return this.openNode(p,c,l),c.state=w.OpenTag,f=this.indent(p,c,l),c.state=w.InsideTag,f+=p.value,c.state=w.CloseTag,f+=this.endline(p,c,l),c.state=w.None,this.closeNode(p,c,l),f},s.prototype.text=function(p,c,l){var f;return this.openNode(p,c,l),c.state=w.OpenTag,f=this.indent(p,c,l),c.state=w.InsideTag,f+=p.value,c.state=w.CloseTag,f+=this.endline(p,c,l),c.state=w.None,this.closeNode(p,c,l),f},s.prototype.dtdAttList=function(p,c,l){var f;return this.openNode(p,c,l),c.state=w.OpenTag,f=this.indent(p,c,l)+"<!ATTLIST",c.state=w.InsideTag,f+=" "+p.elementName+" "+p.attributeName+" "+p.attributeType,p.defaultValueType!=="#DEFAULT"&&(f+=" "+p.defaultValueType),p.defaultValue&&(f+=' "'+p.defaultValue+'"'),c.state=w.CloseTag,f+=c.spaceBeforeSlash+">"+this.endline(p,c,l),c.state=w.None,this.closeNode(p,c,l),f},s.prototype.dtdElement=function(p,c,l){var f;return this.openNode(p,c,l),c.state=w.OpenTag,f=this.indent(p,c,l)+"<!ELEMENT",c.state=w.InsideTag,f+=" "+p.name+" "+p.value,c.state=w.CloseTag,f+=c.spaceBeforeSlash+">"+this.endline(p,c,l),c.state=w.None,this.closeNode(p,c,l),f},s.prototype.dtdEntity=function(p,c,l){var f;return this.openNode(p,c,l),c.state=w.OpenTag,f=this.indent(p,c,l)+"<!ENTITY",c.state=w.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=w.CloseTag,f+=c.spaceBeforeSlash+">"+this.endline(p,c,l),c.state=w.None,this.closeNode(p,c,l),f},s.prototype.dtdNotation=function(p,c,l){var f;return this.openNode(p,c,l),c.state=w.OpenTag,f=this.indent(p,c,l)+"<!NOTATION",c.state=w.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=w.CloseTag,f+=c.spaceBeforeSlash+">"+this.endline(p,c,l),c.state=w.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(W,S,y){(function(){var k,w,g,M,s,p,c,l,f,m;m=y(8369),l=m.assign,f=m.isFunction,g=y(1770),M=y(6934),s=y(9227),c=y(6434),p=y(1996),k=y(9335),w=y(594),W.exports.create=function(h,u,b,v){var _,A;if(h==null)throw new Error("Root element needs a name.");return v=l({},u,b,v),A=(_=new M(v)).element(h),v.headless||(_.declaration(v),v.pubID==null&&v.sysID==null||_.dtd(v)),A},W.exports.begin=function(h,u,b){var v;return f(h)&&(u=(v=[h,u])[0],b=v[1],h={}),u?new s(h,u,b):new M(h)},W.exports.stringWriter=function(h){return new c(h)},W.exports.streamWriter=function(h,u){return new p(h,u)},W.exports.implementation=new g,W.exports.nodeType=k,W.exports.writerState=w}).call(this)},7529:W=>{W.exports=function(){for(var y={},k=0;k<arguments.length;k++){var w=arguments[k];for(var g in w)S.call(w,g)&&(y[g]=w[g])}return y};var S=Object.prototype.hasOwnProperty},950:()=>{},6601:()=>{},9214:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},4749:()=>{},3731:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},3083:(W,S,y)=>{var k=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],w=typeof globalThis=="undefined"?y.g:globalThis;W.exports=function(){for(var g=[],M=0;M<k.length;M++)typeof w[k[M]]=="function"&&(g[g.length]=k[M]);return g}},1641:(W,S,y)=>{y.r(S),y.d(S,{all:()=>Ct,allLimit:()=>Pe,allSeries:()=>Ve,any:()=>en,anyLimit:()=>tn,anySeries:()=>Jt,apply:()=>g,applyEach:()=>o,applyEachSeries:()=>C,asyncify:()=>h,auto:()=>R,autoInject:()=>X,cargo:()=>ne,cargoQueue:()=>ce,compose:()=>ve,concat:()=>Ae,concatLimit:()=>we,concatSeries:()=>G,constant:()=>Y,default:()=>Jr,detect:()=>$,detectLimit:()=>D,detectSeries:()=>Q,dir:()=>le,doDuring:()=>pe,doUntil:()=>it,doWhilst:()=>pe,during:()=>zi,each:()=>Te,eachLimit:()=>ft,eachOf:()=>n,eachOfLimit:()=>e,eachOfSeries:()=>a,eachSeries:()=>Se,ensureAsync:()=>Ge,every:()=>Ct,everyLimit:()=>Pe,everySeries:()=>Ve,filter:()=>vt,filterLimit:()=>Be,filterSeries:()=>We,find:()=>$,findLimit:()=>D,findSeries:()=>Q,flatMap:()=>Ae,flatMapLimit:()=>we,flatMapSeries:()=>G,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:()=>Lt,mapValuesLimit:()=>Xe,mapValuesSeries:()=>De,memoize:()=>Qe,nextTick:()=>zt,parallel:()=>Je,parallelLimit:()=>$t,priorityQueue:()=>et,queue:()=>qe,race:()=>Tt,reduce:()=>ke,reduceRight:()=>Rt,reflect:()=>Gt,reflectAll:()=>cn,reject:()=>ln,rejectLimit:()=>hn,rejectSeries:()=>fn,retry:()=>Xt,retryable:()=>gn,select:()=>vt,selectLimit:()=>Be,selectSeries:()=>We,seq:()=>me,series:()=>bn,setImmediate:()=>m,some:()=>en,someLimit:()=>tn,someSeries:()=>Jt,sortBy:()=>yn,timeout:()=>sn,times:()=>ei,timesLimit:()=>oi,timesSeries:()=>Tr,transform:()=>Or,tryEach:()=>Yr,unmemoize:()=>jr,until:()=>Nr,waterfall:()=>Rr,whilst:()=>zi,wrapSync:()=>h});var k=y(4155),w=y(5108);function g(xe,...ge){return(...be)=>xe(...ge,...be)}function M(xe){return function(...ge){var be=ge.pop();return xe.call(this,ge,be)}}var s=typeof queueMicrotask=="function"&&queueMicrotask,p=typeof setImmediate=="function"&&setImmediate,c=typeof k=="object"&&typeof k.nextTick=="function";function l(xe){setTimeout(xe,0)}function f(xe){return(ge,...be)=>xe(()=>ge(...be))}var m=f(s?queueMicrotask:p?setImmediate:c?k.nextTick:l);function h(xe){return v(xe)?function(...ge){const be=ge.pop();return u(xe.apply(this,ge),be)}:M(function(ge,be){var Oe;try{Oe=xe.apply(this,ge)}catch(He){return be(He)}if(Oe&&typeof Oe.then=="function")return u(Oe,be);be(null,Oe)})}function u(xe,ge){return xe.then(be=>{b(ge,null,be)},be=>{b(ge,be&&be.message?be:new Error(be))})}function b(xe,ge,be){try{xe(ge,be)}catch(Oe){m(He=>{throw He},Oe)}}function v(xe){return xe[Symbol.toStringTag]==="AsyncFunction"}function _(xe){if(typeof xe!="function")throw new Error("expected a function");return v(xe)?h(xe):xe}function A(xe,ge=xe.length){if(!ge)throw new Error("arity is undefined");return function(...be){return typeof be[ge-1]=="function"?xe.apply(this,be):new Promise((Oe,He)=>{be[ge-1]=(ze,...Ye)=>{if(ze)return He(ze);Oe(Ye.length>1?Ye:Ye[0])},xe.apply(this,be)})}}function x(xe){return function(ge,...be){return A(function(Oe){var He=this;return xe(ge,(ze,Ye)=>{_(ze).apply(He,be.concat(Ye))},Oe)})}}function j(xe,ge,be,Oe){ge=ge||[];var He=[],ze=0,Ye=_(be);return xe(ge,(nt,ct,Mt)=>{var Et=ze++;Ye(nt,(gt,Zt)=>{He[Et]=Zt,Mt(gt)})},nt=>{Oe(nt,He)})}function P(xe){return xe&&typeof xe.length=="number"&&xe.length>=0&&xe.length%1==0}const B={};function z(xe){function ge(...be){if(xe!==null){var Oe=xe;xe=null,Oe.apply(this,be)}}return Object.assign(ge,xe),ge}function ee(xe){return function(...ge){if(xe===null)throw new Error("Callback was already called.");var be=xe;xe=null,be.apply(this,ge)}}function J(xe,ge,be,Oe){let He=!1,ze=!1,Ye=!1,nt=0,ct=0;function Mt(){nt>=ge||Ye||He||(Ye=!0,xe.next().then(({value:Zt,done:Yt})=>{if(!ze&&!He){if(Ye=!1,Yt)return He=!0,void(nt<=0&&Oe(null));nt++,be(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 ae=xe=>(ge,be,Oe)=>{if(Oe=z(Oe),xe<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!ge)return Oe(null);if(ge[Symbol.toStringTag]==="AsyncGenerator")return J(ge,xe,be,Oe);if(function(gt){return typeof gt[Symbol.asyncIterator]=="function"}(ge))return J(ge[Symbol.asyncIterator](),xe,be,Oe);var He=function(gt){if(P(gt))return function(dt){var Ot=-1,vn=dt.length;return function(){return++Ot<vn?{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 vn=dt.next();return vn.done?null:(Ot++,{value:vn.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})}(ge),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<xe&&!ze;){var gt=He();if(gt===null)return ze=!0,void(nt<=0&&Oe(null));nt+=1,be(gt.value,gt.key,ee(Mt))}ct=!1}Et()},e=A(function(xe,ge,be,Oe){return ae(ge)(xe,_(be),Oe)},4);function r(xe,ge,be){be=z(be);var Oe=0,He=0,{length:ze}=xe,Ye=!1;function nt(ct,Mt){ct===!1&&(Ye=!0),Ye!==!0&&(ct?be(ct):++He!==ze&&Mt!==B||be(null))}for(ze===0&&be(null);Oe<ze;Oe++)ge(xe[Oe],Oe,ee(nt))}function i(xe,ge,be){return e(xe,1/0,ge,be)}var n=A(function(xe,ge,be){return(P(xe)?r:i)(xe,_(ge),be)},3),t=A(function(xe,ge,be){return j(n,xe,ge,be)},3),o=x(t),a=A(function(xe,ge,be){return e(xe,1,ge,be)},3),T=A(function(xe,ge,be){return j(a,xe,ge,be)},3),C=x(T);const N=Symbol("promiseCallback");function I(){let xe,ge;function be(Oe,...He){if(Oe)return ge(Oe);xe(He.length>1?He:He[0])}return be[N]=new Promise((Oe,He)=>{xe=Oe,ge=He}),be}function R(xe,ge,be){typeof ge!="number"&&(be=ge,ge=null),be=z(be||I());var Oe=Object.keys(xe).length;if(!Oe)return be(null);ge||(ge=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 vn=ee((jn,...En)=>{if(ze--,jn!==!1)if(En.length<2&&([En]=En),jn){var gi={};if(Object.keys(He).forEach(Kn=>{gi[Kn]=He[Kn]}),gi[dt]=En,nt=!0,ct=Object.create(null),Ye)return;be(jn,gi)}else He[dt]=En,(ct[dt]||[]).forEach(Kn=>Kn()),Yt();else Ye=!0});ze++;var Tn=_(Ot[Ot.length-1]);Ot.length>1?Tn(He,vn):Tn(vn)}}(bt,wt))}function Yt(){if(!Ye){if(Mt.length===0&&ze===0)return be(null,He);for(;Mt.length&&ze<ge;)Mt.shift()()}}function Vn(bt){var wt=[];return Object.keys(xe).forEach(dt=>{const Ot=xe[dt];Array.isArray(Ot)&&Ot.indexOf(bt)>=0&&wt.push(dt)}),wt}return Object.keys(xe).forEach(bt=>{var wt=xe[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(vn=>{if(!xe[vn])throw new Error("async.auto task `"+bt+"` has a non-existent dependency `"+vn+"` in "+dt.join(", "));var Tn,jn;(jn=ct[Tn=vn])||(jn=ct[Tn]=[]),jn.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(),be[N]}var q=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,Z=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,te=/,/,L=/(=.+)?(\s*)$/;function X(xe,ge){var be={};return Object.keys(xe).forEach(Oe=>{var He,ze=xe[Oe],Ye=v(ze),nt=!Ye&&ze.length===1||Ye&&ze.length===0;if(Array.isArray(ze))He=[...ze],ze=He.pop(),be[Oe]=He.concat(He.length>0?ct:ze);else if(nt)be[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(`
|
|
116
|
+
`,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(q);if(gt||(gt=Et.match(Z)),!gt)throw new Error(`could not parse args in autoInject
|
|
117
|
+
Source:
|
|
118
|
+
`+Et);let[,Zt]=gt;return Zt.replace(/\s/g,"").split(te).map(Yt=>Yt.replace(L,"").trim())}(ze),ze.length===0&&!Ye&&He.length===0)throw new Error("autoInject task functions require explicit parameters.");Ye||He.pop(),be[Oe]=He.concat(ct)}function ct(Mt,Et){var gt=He.map(Zt=>Mt[Zt]);gt.push(Et),_(ze)(...gt)}}),R(be,ge)}class U{constructor(){this.head=this.tail=null,this.length=0}removeLink(ge){return ge.prev?ge.prev.next=ge.next:this.head=ge.next,ge.next?ge.next.prev=ge.prev:this.tail=ge.prev,ge.prev=ge.next=null,this.length-=1,ge}empty(){for(;this.head;)this.shift();return this}insertAfter(ge,be){be.prev=ge,be.next=ge.next,ge.next?ge.next.prev=be:this.tail=be,ge.next=be,this.length+=1}insertBefore(ge,be){be.prev=ge.prev,be.next=ge,ge.prev?ge.prev.next=be:this.head=be,ge.prev=be,this.length+=1}unshift(ge){this.head?this.insertBefore(this.head,ge):K(this,ge)}push(ge){this.tail?this.insertAfter(this.tail,ge):K(this,ge)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var ge=this.head;ge;)yield ge.data,ge=ge.next}remove(ge){for(var be=this.head;be;){var{next:Oe}=be;ge(be)&&this.removeLink(be),be=Oe}return this}}function K(xe,ge){xe.length=1,xe.head=xe.tail=ge}function se(xe,ge,be){if(ge==null)ge=1;else if(ge===0)throw new RangeError("Concurrency must not be zero");var Oe=_(xe),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,vn){if(vn!=null&&typeof vn!="function")throw new Error("task callback must be a function");var Tn,jn;function En(Kn,...Mi){return Kn?Ot?jn(Kn):Tn():Mi.length<=1?Tn(Mi[0]):void Tn(Mi)}bt.started=!0;var gi=bt._createTaskItem(wt,Ot?En:vn||En);if(dt?bt._tasks.unshift(gi):bt._tasks.push(gi),Mt||(Mt=!0,m(()=>{Mt=!1,bt.process()})),Ot||!vn)return new Promise((Kn,Mi)=>{Tn=Kn,jn=Mi})}function gt(wt){return function(dt,...Ot){He-=1;for(var vn=0,Tn=wt.length;vn<Tn;vn++){var jn=wt[vn],En=ze.indexOf(jn);En===0?ze.shift():En>0&&ze.splice(En,1),jn.callback(dt,...Ot),dt!=null&&ct("error",dt,jn.data)}He<=bt.concurrency-bt.buffer&&ct("unsaturated"),bt.idle()&&ct("drain"),bt.process()}}function Zt(wt){return!(wt.length!==0||!bt.idle()||(m(()=>ct("drain")),0))}const Yt=wt=>dt=>{if(!dt)return new Promise((Ot,vn)=>{(function(Tn,jn){const En=(...gi)=>{nt(Tn,En),((Kn,Mi)=>{if(Kn)return vn(Kn);Ot(Mi)})(...gi)};Ye[Tn].push(En)})(wt)});nt(wt),function(Ot,vn){Ye[Ot].push(vn)}(wt,dt)};var Vn=!1,bt={_tasks:new U,_createTaskItem:(wt,dt)=>({data:wt,callback:dt}),*[Symbol.iterator](){yield*Uc(bt._tasks[Symbol.iterator]())},concurrency:ge,payload:be,buffer:ge/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 vn=0;vn<Ot;vn++){var Tn=bt._tasks.shift();wt.push(Tn),ze.push(Tn),dt.push(Tn.data)}He+=1,bt._tasks.length===0&&ct("empty"),He===bt.concurrency&&ct("saturated");var jn=ee(gt(wt));Oe(dt,jn)}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,m(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 ne(xe,ge){return se(xe,1,ge)}function ce(xe,ge,be){return se(xe,ge,be)}var ke=A(function(xe,ge,be,Oe){Oe=z(Oe);var He=_(be);return a(xe,(ze,Ye,nt)=>{He(ge,ze,(ct,Mt)=>{ge=Mt,nt(ct)})},ze=>Oe(ze,ge))},4);function me(...xe){var ge=xe.map(_);return function(...be){var Oe=this,He=be[be.length-1];return typeof He=="function"?be.pop():He=I(),ke(ge,be,(ze,Ye,nt)=>{Ye.apply(Oe,ze.concat((ct,...Mt)=>{nt(ct,Mt)}))},(ze,Ye)=>He(ze,...Ye)),He[N]}}function ve(...xe){return me(...xe.reverse())}var je=A(function(xe,ge,be,Oe){return j(ae(ge),xe,be,Oe)},4),we=A(function(xe,ge,be,Oe){var He=_(be);return je(xe,ge,(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(xe,ge,be){return we(xe,1/0,ge,be)},3),G=A(function(xe,ge,be){return we(xe,1,ge,be)},3);function Y(...xe){return function(...ge){return ge.pop()(null,...xe)}}function F(xe,ge){return(be,Oe,He,ze)=>{var Ye,nt=!1;const ct=_(He);be(Oe,(Mt,Et,gt)=>{ct(Mt,(Zt,Yt)=>Zt||Zt===!1?gt(Zt):xe(Yt)&&!Ye?(nt=!0,Ye=ge(!0,Mt),gt(null,B)):void gt())},Mt=>{if(Mt)return ze(Mt);ze(null,nt?Ye:ge(!1))})}}var $=A(function(xe,ge,be){return F(Oe=>Oe,(Oe,He)=>He)(n,xe,ge,be)},3),D=A(function(xe,ge,be,Oe){return F(He=>He,(He,ze)=>ze)(ae(ge),xe,be,Oe)},4),Q=A(function(xe,ge,be){return F(Oe=>Oe,(Oe,He)=>He)(ae(1),xe,ge,be)},3);function he(xe){return(ge,...be)=>_(ge)(...be,(Oe,...He)=>{typeof w=="object"&&(Oe?w.error&&w.error(Oe):w[xe]&&He.forEach(ze=>w[xe](ze)))})}var le=he("dir"),pe=A(function(xe,ge,be){be=ee(be);var Oe,He=_(xe),ze=_(ge);function Ye(ct,...Mt){if(ct)return be(ct);ct!==!1&&(Oe=Mt,ze(...Mt,nt))}function nt(ct,Mt){return ct?be(ct):ct!==!1?Mt?void He(Ye):be(null,...Oe):void 0}return nt(null,!0)},3);function it(xe,ge,be){const Oe=_(ge);return pe(xe,(...He)=>{const ze=He.pop();Oe(...He,(Ye,nt)=>ze(Ye,!nt))},be)}function _e(xe){return(ge,be,Oe)=>xe(ge,Oe)}var Te=A(function(xe,ge,be){return n(xe,_e(_(ge)),be)},3),ft=A(function(xe,ge,be,Oe){return ae(ge)(xe,_e(_(be)),Oe)},4),Se=A(function(xe,ge,be){return ft(xe,1,ge,be)},3);function Ge(xe){return v(xe)?xe:function(...ge){var be=ge.pop(),Oe=!0;ge.push((...He)=>{Oe?m(()=>be(...He)):be(...He)}),xe.apply(this,ge),Oe=!1}}var Ct=A(function(xe,ge,be){return F(Oe=>!Oe,Oe=>!Oe)(n,xe,ge,be)},3),Pe=A(function(xe,ge,be,Oe){return F(He=>!He,He=>!He)(ae(ge),xe,be,Oe)},4),Ve=A(function(xe,ge,be){return F(Oe=>!Oe,Oe=>!Oe)(a,xe,ge,be)},3);function Nt(xe,ge,be,Oe){var He=new Array(ge.length);xe(ge,(ze,Ye,nt)=>{be(ze,(ct,Mt)=>{He[Ye]=!!Mt,nt(ct)})},ze=>{if(ze)return Oe(ze);for(var Ye=[],nt=0;nt<ge.length;nt++)He[nt]&&Ye.push(ge[nt]);Oe(null,Ye)})}function Re(xe,ge,be,Oe){var He=[];xe(ge,(ze,Ye,nt)=>{be(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(xe,ge,be,Oe){return(P(ge)?Nt:Re)(xe,ge,_(be),Oe)}var vt=A(function(xe,ge,be){return Ke(n,xe,ge,be)},3),Be=A(function(xe,ge,be,Oe){return Ke(ae(ge),xe,be,Oe)},4),We=A(function(xe,ge,be){return Ke(a,xe,ge,be)},3),St=A(function(xe,ge){var be=ee(ge),Oe=_(Ge(xe));return function He(ze){if(ze)return be(ze);ze!==!1&&Oe(He)}()},2),Ne=A(function(xe,ge,be,Oe){var He=_(be);return je(xe,ge,(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(xe,ge,be){return Ne(xe,1/0,ge,be)}function It(xe,ge,be){return Ne(xe,1,ge,be)}var Le=he("log"),Xe=A(function(xe,ge,be,Oe){Oe=z(Oe);var He={},ze=_(be);return ae(ge)(xe,(Ye,nt,ct)=>{ze(Ye,nt,(Mt,Et)=>{if(Mt)return ct(Mt);He[nt]=Et,ct(Mt)})},Ye=>Oe(Ye,He))},4);function Lt(xe,ge,be){return Xe(xe,1/0,ge,be)}function De(xe,ge,be){return Xe(xe,1,ge,be)}function Qe(xe,ge=be=>be){var be=Object.create(null),Oe=Object.create(null),He=_(xe),ze=M((Ye,nt)=>{var ct=ge(...Ye);ct in be?m(()=>nt(null,...be[ct])):ct in Oe?Oe[ct].push(nt):(Oe[ct]=[nt],He(...Ye,(Mt,...Et)=>{Mt||(be[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=be,ze.unmemoized=xe,ze}var zt=f(c?k.nextTick:p?setImmediate:l),Fe=A((xe,ge,be)=>{var Oe=P(ge)?[]:{};xe(ge,(He,ze,Ye)=>{_(He)((nt,...ct)=>{ct.length<2&&([ct]=ct),Oe[ze]=ct,Ye(nt)})},He=>be(He,Oe))},3);function Je(xe,ge){return Fe(n,xe,ge)}function $t(xe,ge,be){return Fe(ae(ge),xe,be)}function qe(xe,ge){var be=_(xe);return se((Oe,He)=>{be(Oe[0],He)},ge,1)}class tt{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(ge){let be;for(;ge>0&&Ue(this.heap[ge],this.heap[be=Vt(ge)]);){let Oe=this.heap[ge];this.heap[ge]=this.heap[be],this.heap[be]=Oe,ge=be}}percDown(ge){let be;for(;(be=1+(ge<<1))<this.heap.length&&(be+1<this.heap.length&&Ue(this.heap[be+1],this.heap[be])&&(be+=1),!Ue(this.heap[ge],this.heap[be]));){let Oe=this.heap[ge];this.heap[ge]=this.heap[be],this.heap[be]=Oe,ge=be}}push(ge){ge.pushCount=++this.pushCount,this.heap.push(ge),this.percUp(this.heap.length-1)}unshift(ge){return this.heap.push(ge)}shift(){let[ge]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),ge}toArray(){return[...this]}*[Symbol.iterator](){for(let ge=0;ge<this.heap.length;ge++)yield this.heap[ge].data}remove(ge){let be=0;for(let Oe=0;Oe<this.heap.length;Oe++)ge(this.heap[Oe])||(this.heap[be]=this.heap[Oe],be++);this.heap.splice(be);for(let Oe=Vt(this.heap.length-1);Oe>=0;Oe--)this.percDown(Oe);return this}}function Vt(xe){return(xe+1>>1)-1}function Ue(xe,ge){return xe.priority!==ge.priority?xe.priority<ge.priority:xe.pushCount<ge.pushCount}function et(xe,ge){var be=qe(xe,ge),{push:Oe,pushAsync:He}=be;function ze(Ye,nt){return Array.isArray(Ye)?Ye.map(ct=>({data:ct,priority:nt})):{data:Ye,priority:nt}}return be._tasks=new tt,be._createTaskItem=({data:Ye,priority:nt},ct)=>({data:Ye,priority:nt,callback:ct}),be.push=function(Ye,nt=0,ct){return Oe(ze(Ye,nt),ct)},be.pushAsync=function(Ye,nt=0,ct){return He(ze(Ye,nt),ct)},delete be.unshift,delete be.unshiftAsync,be}var Tt=A(function(xe,ge){if(ge=z(ge),!Array.isArray(xe))return ge(new TypeError("First argument to race must be an array of functions"));if(!xe.length)return ge();for(var be=0,Oe=xe.length;be<Oe;be++)_(xe[be])(ge)},2);function Rt(xe,ge,be,Oe){var He=[...xe].reverse();return ke(He,ge,be,Oe)}function Gt(xe){var ge=_(xe);return M(function(be,Oe){return be.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)}),ge.apply(this,be)})}function cn(xe){var ge;return Array.isArray(xe)?ge=xe.map(Gt):(ge={},Object.keys(xe).forEach(be=>{ge[be]=Gt.call(this,xe[be])})),ge}function on(xe,ge,be,Oe){const He=_(be);return Ke(xe,ge,(ze,Ye)=>{He(ze,(nt,ct)=>{Ye(nt,!ct)})},Oe)}var ln=A(function(xe,ge,be){return on(n,xe,ge,be)},3),hn=A(function(xe,ge,be,Oe){return on(ae(ge),xe,be,Oe)},4),fn=A(function(xe,ge,be){return on(a,xe,ge,be)},3);function pn(xe){return function(){return xe}}const dn=5,mn=0;function Xt(xe,ge,be){var Oe={times:dn,intervalFunc:pn(mn)};if(arguments.length<3&&typeof xe=="function"?(be=ge||I(),ge=xe):(function(Ye,nt){if(typeof nt=="object")Ye.times=+nt.times||dn,Ye.intervalFunc=typeof nt.interval=="function"?nt.interval:pn(+nt.interval||mn),Ye.errorFilter=nt.errorFilter;else{if(typeof nt!="number"&&typeof nt!="string")throw new Error("Invalid arguments for async.retry");Ye.times=+nt||dn}}(Oe,xe),be=be||I()),typeof ge!="function")throw new Error("Invalid arguments for async.retry");var He=_(ge),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)):be(nt,...ct))})}(),be[N]}function gn(xe,ge){ge||(ge=xe,xe=null);let be=xe&&xe.arity||ge.length;v(ge)&&(be+=1);var Oe=_(ge);return M((He,ze)=>{function Ye(nt){Oe(...He,nt)}return(He.length<be-1||ze==null)&&(He.push(ze),ze=I()),xe?Xt(xe,Ye,ze):Xt(Ye,ze),ze[N]})}function bn(xe,ge){return Fe(a,xe,ge)}var en=A(function(xe,ge,be){return F(Boolean,Oe=>Oe)(n,xe,ge,be)},3),tn=A(function(xe,ge,be,Oe){return F(Boolean,He=>He)(ae(ge),xe,be,Oe)},4),Jt=A(function(xe,ge,be){return F(Boolean,Oe=>Oe)(a,xe,ge,be)},3),yn=A(function(xe,ge,be){var Oe=_(ge);return t(xe,(ze,Ye)=>{Oe(ze,(nt,ct)=>{if(nt)return Ye(nt);Ye(nt,{value:ze,criteria:ct})})},(ze,Ye)=>{if(ze)return be(ze);be(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 sn(xe,ge,be){var Oe=_(xe);return M((He,ze)=>{var Ye,nt=!1;He.push((...ct)=>{nt||(ze(...ct),clearTimeout(Ye))}),Ye=setTimeout(function(){var ct=xe.name||"anonymous",Mt=new Error('Callback function "'+ct+'" timed out.');Mt.code="ETIMEDOUT",be&&(Mt.info=be),nt=!0,ze(Mt)},ge),Oe(...He)})}function oi(xe,ge,be,Oe){var He=_(be);return je(function(ze){for(var Ye=Array(ze);ze--;)Ye[ze]=ze;return Ye}(xe),ge,He,Oe)}function ei(xe,ge,be){return oi(xe,1/0,ge,be)}function Tr(xe,ge,be){return oi(xe,1,ge,be)}function Or(xe,ge,be,Oe){arguments.length<=3&&typeof ge=="function"&&(Oe=be,be=ge,ge=Array.isArray(xe)?[]:{}),Oe=z(Oe||I());var He=_(be);return n(xe,(ze,Ye,nt)=>{He(ge,ze,Ye,nt)},ze=>Oe(ze,ge)),Oe[N]}var Yr=A(function(xe,ge){var be,Oe=null;return Se(xe,(He,ze)=>{_(He)((Ye,...nt)=>{if(Ye===!1)return ze(Ye);nt.length<2?[be]=nt:be=nt,Oe=Ye,ze(Ye?null:{})})},()=>ge(Oe,be))});function jr(xe){return(...ge)=>(xe.unmemoized||xe)(...ge)}var zi=A(function(xe,ge,be){be=ee(be);var Oe=_(ge),He=_(xe),ze=[];function Ye(ct,...Mt){if(ct)return be(ct);ze=Mt,ct!==!1&&He(nt)}function nt(ct,Mt){return ct?be(ct):ct!==!1?Mt?void Oe(Ye):be(null,...ze):void 0}return He(nt)},3);function Nr(xe,ge,be){const Oe=_(xe);return zi(He=>Oe((ze,Ye)=>He(ze,!Ye)),ge,be)}var Rr=A(function(xe,ge){if(ge=z(ge),!Array.isArray(xe))return ge(new Error("First argument to waterfall must be an array of functions"));if(!xe.length)return ge();var be=0;function Oe(ze){_(xe[be++])(...ze,ee(He))}function He(ze,...Ye){if(ze!==!1)return ze||be===xe.length?ge(ze,...Ye):void Oe(Ye)}Oe([])});const Jr={apply:g,applyEach:o,applyEachSeries:C,asyncify:h,auto:R,autoInject:X,cargo:ne,cargoQueue:ce,compose:ve,concat:Ae,concatLimit:we,concatSeries:G,constant:Y,detect:$,detectLimit:D,detectSeries:Q,dir:le,doUntil:it,doWhilst:pe,each:Te,eachLimit:ft,eachOf:n,eachOfLimit:e,eachOfSeries:a,eachSeries:Se,ensureAsync:Ge,every:Ct,everyLimit:Pe,everySeries:Ve,filter:vt,filterLimit:Be,filterSeries:We,forever:St,groupBy:Ze,groupByLimit:Ne,groupBySeries:It,log:Le,map:t,mapLimit:je,mapSeries:T,mapValues:Lt,mapValuesLimit:Xe,mapValuesSeries:De,memoize:Qe,nextTick:zt,parallel:Je,parallelLimit:$t,priorityQueue:et,queue:qe,race:Tt,reduce:ke,reduceRight:Rt,reflect:Gt,reflectAll:cn,reject:ln,rejectLimit:hn,rejectSeries:fn,retry:Xt,retryable:gn,seq:me,series:bn,setImmediate:m,some:en,someLimit:tn,someSeries:Jt,sortBy:yn,timeout:sn,times:ei,timesLimit:oi,timesSeries:Tr,transform:Or,tryEach:Yr,unmemoize:jr,until:Nr,waterfall:Rr,whilst:zi,all:Ct,allLimit:Pe,allSeries:Ve,any:en,anyLimit:tn,anySeries:Jt,find:$,findLimit:D,findSeries:Q,flatMap:Ae,flatMapLimit:we,flatMapSeries:G,forEach:Te,forEachSeries:Se,forEachLimit:ft,forEachOf:n,forEachOfSeries:a,forEachOfLimit:e,inject:ke,foldl:ke,foldr:Rt,select:vt,selectLimit:Be,selectSeries:We,wrapSync:h,during:zi,doDuring:pe}},4946:W=>{W.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:W=>{W.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:W=>{W.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:W=>{W.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:W=>{W.exports={i8:"6.5.4"}},3765:W=>{W.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:W=>{W.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:W=>{W.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"}')}},re={};function de(W){var S=re[W];if(S!==void 0)return S.exports;var y=re[W]={id:W,loaded:!1,exports:{}};return H[W].call(y.exports,y,y.exports,de),y.loaded=!0,y.exports}de.d=(W,S)=>{for(var y in S)de.o(S,y)&&!de.o(W,y)&&Object.defineProperty(W,y,{enumerable:!0,get:S[y]})},de.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(W){if(typeof window=="object")return window}}(),de.o=(W,S)=>Object.prototype.hasOwnProperty.call(W,S),de.r=W=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(W,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(W,"__esModule",{value:!0})},de.nmd=W=>(W.paths=[],W.children||(W.children=[]),W);var Me={};return(()=>{de.r(Me),de.d(Me,{Minio:()=>S,initMinio:()=>k,putObjectBuffer:()=>w});var W=de(8764).Buffer;const S=de(2525);let y=null;function k(g){if(!g)throw new Error("Minio的配置不能为空");y=g;const M=(g.endPoint||"").split(":");M[0]&&(y.endPoint=M[0]),M[1]&&(y.port=Number(M[1]))}function w(g,M,s,p,c){if(!y)throw new Error("请先初始化Minio");let l=W.from(s);new(de(2525)).Client(y).putObject(g,M,l,p,c)}})(),Me})())})(ml);var Hc=ml.exports,ya=(ie=>(ie[ie.Robot=1]="Robot",ie[ie.User=2]="User",ie[ie.System=3]="System",ie))(ya||{});typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const mp=[];for(let ie=0;ie<256;++ie)mp.push((ie+256).toString(16).slice(1));var Aa={},ns={};ns.byteLength=vp;ns.toByteArray=wp;ns.fromByteArray=_p;var Ti=[],di=[],gp=typeof Uint8Array!="undefined"?Uint8Array:Array,da="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Er=0,yp=da.length;Er<yp;++Er)Ti[Er]=da[Er],di[da.charCodeAt(Er)]=Er;di["-".charCodeAt(0)]=62;di["_".charCodeAt(0)]=63;function gl(ie){var O=ie.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var H=ie.indexOf("=");H===-1&&(H=O);var re=H===O?0:4-H%4;return[H,re]}function vp(ie){var O=gl(ie),H=O[0],re=O[1];return(H+re)*3/4-re}function bp(ie,O,H){return(O+H)*3/4-H}function wp(ie){var O,H=gl(ie),re=H[0],de=H[1],Me=new gp(bp(ie,re,de)),W=0,S=de>0?re-4:re,y;for(y=0;y<S;y+=4)O=di[ie.charCodeAt(y)]<<18|di[ie.charCodeAt(y+1)]<<12|di[ie.charCodeAt(y+2)]<<6|di[ie.charCodeAt(y+3)],Me[W++]=O>>16&255,Me[W++]=O>>8&255,Me[W++]=O&255;return de===2&&(O=di[ie.charCodeAt(y)]<<2|di[ie.charCodeAt(y+1)]>>4,Me[W++]=O&255),de===1&&(O=di[ie.charCodeAt(y)]<<10|di[ie.charCodeAt(y+1)]<<4|di[ie.charCodeAt(y+2)]>>2,Me[W++]=O>>8&255,Me[W++]=O&255),Me}function xp(ie){return Ti[ie>>18&63]+Ti[ie>>12&63]+Ti[ie>>6&63]+Ti[ie&63]}function Mp(ie,O,H){for(var re,de=[],Me=O;Me<H;Me+=3)re=(ie[Me]<<16&16711680)+(ie[Me+1]<<8&65280)+(ie[Me+2]&255),de.push(xp(re));return de.join("")}function _p(ie){for(var O,H=ie.length,re=H%3,de=[],Me=16383,W=0,S=H-re;W<S;W+=Me)de.push(Mp(ie,W,W+Me>S?S:W+Me));return re===1?(O=ie[H-1],de.push(Ti[O>>2]+Ti[O<<4&63]+"==")):re===2&&(O=(ie[H-2]<<8)+ie[H-1],de.push(Ti[O>>10]+Ti[O>>4&63]+Ti[O<<2&63]+"=")),de.join("")}var Ia={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Ia.read=function(ie,O,H,re,de){var Me,W,S=de*8-re-1,y=(1<<S)-1,k=y>>1,w=-7,g=H?de-1:0,M=H?-1:1,s=ie[O+g];for(g+=M,Me=s&(1<<-w)-1,s>>=-w,w+=S;w>0;Me=Me*256+ie[O+g],g+=M,w-=8);for(W=Me&(1<<-w)-1,Me>>=-w,w+=re;w>0;W=W*256+ie[O+g],g+=M,w-=8);if(Me===0)Me=1-k;else{if(Me===y)return W?NaN:(s?-1:1)*(1/0);W=W+Math.pow(2,re),Me=Me-k}return(s?-1:1)*W*Math.pow(2,Me-re)};Ia.write=function(ie,O,H,re,de,Me){var W,S,y,k=Me*8-de-1,w=(1<<k)-1,g=w>>1,M=de===23?Math.pow(2,-24)-Math.pow(2,-77):0,s=re?0:Me-1,p=re?1:-1,c=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===1/0?(S=isNaN(O)?1:0,W=w):(W=Math.floor(Math.log(O)/Math.LN2),O*(y=Math.pow(2,-W))<1&&(W--,y*=2),W+g>=1?O+=M/y:O+=M*Math.pow(2,1-g),O*y>=2&&(W++,y/=2),W+g>=w?(S=0,W=w):W+g>=1?(S=(O*y-1)*Math.pow(2,de),W=W+g):(S=O*Math.pow(2,g-1)*Math.pow(2,de),W=0));de>=8;ie[H+s]=S&255,s+=p,S/=256,de-=8);for(W=W<<de|S,k+=de;k>0;ie[H+s]=W&255,s+=p,W/=256,k-=8);ie[H+s-p]|=c*128};/*!
|
|
119
|
+
* The buffer module from node.js, for the browser.
|
|
120
|
+
*
|
|
121
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
122
|
+
* @license MIT
|
|
123
|
+
*/(function(ie){const O=ns,H=Ia,re=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ie.Buffer=S,ie.SlowBuffer=m,ie.INSPECT_MAX_BYTES=50;const de=2147483647;ie.kMaxLength=de,S.TYPED_ARRAY_SUPPORT=Me(),!S.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Me(){try{const F=new Uint8Array(1),$={foo:function(){return 42}};return Object.setPrototypeOf($,Uint8Array.prototype),Object.setPrototypeOf(F,$),F.foo()===42}catch(F){return!1}}Object.defineProperty(S.prototype,"parent",{enumerable:!0,get:function(){if(S.isBuffer(this))return this.buffer}}),Object.defineProperty(S.prototype,"offset",{enumerable:!0,get:function(){if(S.isBuffer(this))return this.byteOffset}});function W(F){if(F>de)throw new RangeError('The value "'+F+'" is invalid for option "size"');const $=new Uint8Array(F);return Object.setPrototypeOf($,S.prototype),$}function S(F,$,D){if(typeof F=="number"){if(typeof $=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(F)}return y(F,$,D)}S.poolSize=8192;function y(F,$,D){if(typeof F=="string")return M(F,$);if(ArrayBuffer.isView(F))return p(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(je(F,ArrayBuffer)||F&&je(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(je(F,SharedArrayBuffer)||F&&je(F.buffer,SharedArrayBuffer)))return c(F,$,D);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Q=F.valueOf&&F.valueOf();if(Q!=null&&Q!==F)return S.from(Q,$,D);const he=l(F);if(he)return he;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return S.from(F[Symbol.toPrimitive]("string"),$,D);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}S.from=function(F,$,D){return y(F,$,D)},Object.setPrototypeOf(S.prototype,Uint8Array.prototype),Object.setPrototypeOf(S,Uint8Array);function k(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function w(F,$,D){return k(F),F<=0?W(F):$!==void 0?typeof D=="string"?W(F).fill($,D):W(F).fill($):W(F)}S.alloc=function(F,$,D){return w(F,$,D)};function g(F){return k(F),W(F<0?0:f(F)|0)}S.allocUnsafe=function(F){return g(F)},S.allocUnsafeSlow=function(F){return g(F)};function M(F,$){if((typeof $!="string"||$==="")&&($="utf8"),!S.isEncoding($))throw new TypeError("Unknown encoding: "+$);const D=h(F,$)|0;let Q=W(D);const he=Q.write(F,$);return he!==D&&(Q=Q.slice(0,he)),Q}function s(F){const $=F.length<0?0:f(F.length)|0,D=W($);for(let Q=0;Q<$;Q+=1)D[Q]=F[Q]&255;return D}function p(F){if(je(F,Uint8Array)){const $=new Uint8Array(F);return c($.buffer,$.byteOffset,$.byteLength)}return s(F)}function c(F,$,D){if($<0||F.byteLength<$)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<$+(D||0))throw new RangeError('"length" is outside of buffer bounds');let Q;return $===void 0&&D===void 0?Q=new Uint8Array(F):D===void 0?Q=new Uint8Array(F,$):Q=new Uint8Array(F,$,D),Object.setPrototypeOf(Q,S.prototype),Q}function l(F){if(S.isBuffer(F)){const $=f(F.length)|0,D=W($);return D.length===0||F.copy(D,0,0,$),D}if(F.length!==void 0)return typeof F.length!="number"||we(F.length)?W(0):s(F);if(F.type==="Buffer"&&Array.isArray(F.data))return s(F.data)}function f(F){if(F>=de)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+de.toString(16)+" bytes");return F|0}function m(F){return+F!=F&&(F=0),S.alloc(+F)}S.isBuffer=function($){return $!=null&&$._isBuffer===!0&&$!==S.prototype},S.compare=function($,D){if(je($,Uint8Array)&&($=S.from($,$.offset,$.byteLength)),je(D,Uint8Array)&&(D=S.from(D,D.offset,D.byteLength)),!S.isBuffer($)||!S.isBuffer(D))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if($===D)return 0;let Q=$.length,he=D.length;for(let le=0,pe=Math.min(Q,he);le<pe;++le)if($[le]!==D[le]){Q=$[le],he=D[le];break}return Q<he?-1:he<Q?1:0},S.isEncoding=function($){switch(String($).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}},S.concat=function($,D){if(!Array.isArray($))throw new TypeError('"list" argument must be an Array of Buffers');if($.length===0)return S.alloc(0);let Q;if(D===void 0)for(D=0,Q=0;Q<$.length;++Q)D+=$[Q].length;const he=S.allocUnsafe(D);let le=0;for(Q=0;Q<$.length;++Q){let pe=$[Q];if(je(pe,Uint8Array))le+pe.length>he.length?(S.isBuffer(pe)||(pe=S.from(pe)),pe.copy(he,le)):Uint8Array.prototype.set.call(he,pe,le);else if(S.isBuffer(pe))pe.copy(he,le);else throw new TypeError('"list" argument must be an Array of Buffers');le+=pe.length}return he};function h(F,$){if(S.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||je(F,ArrayBuffer))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);const D=F.length,Q=arguments.length>2&&arguments[2]===!0;if(!Q&&D===0)return 0;let he=!1;for(;;)switch($){case"ascii":case"latin1":case"binary":return D;case"utf8":case"utf-8":return ne(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D*2;case"hex":return D>>>1;case"base64":return me(F).length;default:if(he)return Q?-1:ne(F).length;$=(""+$).toLowerCase(),he=!0}}S.byteLength=h;function u(F,$,D){let Q=!1;if(($===void 0||$<0)&&($=0),$>this.length||((D===void 0||D>this.length)&&(D=this.length),D<=0)||(D>>>=0,$>>>=0,D<=$))return"";for(F||(F="utf8");;)switch(F){case"hex":return i(this,$,D);case"utf8":case"utf-8":return ee(this,$,D);case"ascii":return e(this,$,D);case"latin1":case"binary":return r(this,$,D);case"base64":return z(this,$,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,$,D);default:if(Q)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),Q=!0}}S.prototype._isBuffer=!0;function b(F,$,D){const Q=F[$];F[$]=F[D],F[D]=Q}S.prototype.swap16=function(){const $=this.length;if($%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let D=0;D<$;D+=2)b(this,D,D+1);return this},S.prototype.swap32=function(){const $=this.length;if($%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let D=0;D<$;D+=4)b(this,D,D+3),b(this,D+1,D+2);return this},S.prototype.swap64=function(){const $=this.length;if($%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let D=0;D<$;D+=8)b(this,D,D+7),b(this,D+1,D+6),b(this,D+2,D+5),b(this,D+3,D+4);return this},S.prototype.toString=function(){const $=this.length;return $===0?"":arguments.length===0?ee(this,0,$):u.apply(this,arguments)},S.prototype.toLocaleString=S.prototype.toString,S.prototype.equals=function($){if(!S.isBuffer($))throw new TypeError("Argument must be a Buffer");return this===$?!0:S.compare(this,$)===0},S.prototype.inspect=function(){let $="";const D=ie.INSPECT_MAX_BYTES;return $=this.toString("hex",0,D).replace(/(.{2})/g,"$1 ").trim(),this.length>D&&($+=" ... "),"<Buffer "+$+">"},re&&(S.prototype[re]=S.prototype.inspect),S.prototype.compare=function($,D,Q,he,le){if(je($,Uint8Array)&&($=S.from($,$.offset,$.byteLength)),!S.isBuffer($))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof $);if(D===void 0&&(D=0),Q===void 0&&(Q=$?$.length:0),he===void 0&&(he=0),le===void 0&&(le=this.length),D<0||Q>$.length||he<0||le>this.length)throw new RangeError("out of range index");if(he>=le&&D>=Q)return 0;if(he>=le)return-1;if(D>=Q)return 1;if(D>>>=0,Q>>>=0,he>>>=0,le>>>=0,this===$)return 0;let pe=le-he,it=Q-D;const _e=Math.min(pe,it),Te=this.slice(he,le),ft=$.slice(D,Q);for(let Se=0;Se<_e;++Se)if(Te[Se]!==ft[Se]){pe=Te[Se],it=ft[Se];break}return pe<it?-1:it<pe?1:0};function v(F,$,D,Q,he){if(F.length===0)return-1;if(typeof D=="string"?(Q=D,D=0):D>2147483647?D=2147483647:D<-2147483648&&(D=-2147483648),D=+D,we(D)&&(D=he?0:F.length-1),D<0&&(D=F.length+D),D>=F.length){if(he)return-1;D=F.length-1}else if(D<0)if(he)D=0;else return-1;if(typeof $=="string"&&($=S.from($,Q)),S.isBuffer($))return $.length===0?-1:_(F,$,D,Q,he);if(typeof $=="number")return $=$&255,typeof Uint8Array.prototype.indexOf=="function"?he?Uint8Array.prototype.indexOf.call(F,$,D):Uint8Array.prototype.lastIndexOf.call(F,$,D):_(F,[$],D,Q,he);throw new TypeError("val must be string, number or Buffer")}function _(F,$,D,Q,he){let le=1,pe=F.length,it=$.length;if(Q!==void 0&&(Q=String(Q).toLowerCase(),Q==="ucs2"||Q==="ucs-2"||Q==="utf16le"||Q==="utf-16le")){if(F.length<2||$.length<2)return-1;le=2,pe/=2,it/=2,D/=2}function _e(ft,Se){return le===1?ft[Se]:ft.readUInt16BE(Se*le)}let Te;if(he){let ft=-1;for(Te=D;Te<pe;Te++)if(_e(F,Te)===_e($,ft===-1?0:Te-ft)){if(ft===-1&&(ft=Te),Te-ft+1===it)return ft*le}else ft!==-1&&(Te-=Te-ft),ft=-1}else for(D+it>pe&&(D=pe-it),Te=D;Te>=0;Te--){let ft=!0;for(let Se=0;Se<it;Se++)if(_e(F,Te+Se)!==_e($,Se)){ft=!1;break}if(ft)return Te}return-1}S.prototype.includes=function($,D,Q){return this.indexOf($,D,Q)!==-1},S.prototype.indexOf=function($,D,Q){return v(this,$,D,Q,!0)},S.prototype.lastIndexOf=function($,D,Q){return v(this,$,D,Q,!1)};function A(F,$,D,Q){D=Number(D)||0;const he=F.length-D;Q?(Q=Number(Q),Q>he&&(Q=he)):Q=he;const le=$.length;Q>le/2&&(Q=le/2);let pe;for(pe=0;pe<Q;++pe){const it=parseInt($.substr(pe*2,2),16);if(we(it))return pe;F[D+pe]=it}return pe}function x(F,$,D,Q){return ve(ne($,F.length-D),F,D,Q)}function j(F,$,D,Q){return ve(ce($),F,D,Q)}function P(F,$,D,Q){return ve(me($),F,D,Q)}function B(F,$,D,Q){return ve(ke($,F.length-D),F,D,Q)}S.prototype.write=function($,D,Q,he){if(D===void 0)he="utf8",Q=this.length,D=0;else if(Q===void 0&&typeof D=="string")he=D,Q=this.length,D=0;else if(isFinite(D))D=D>>>0,isFinite(Q)?(Q=Q>>>0,he===void 0&&(he="utf8")):(he=Q,Q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const le=this.length-D;if((Q===void 0||Q>le)&&(Q=le),$.length>0&&(Q<0||D<0)||D>this.length)throw new RangeError("Attempt to write outside buffer bounds");he||(he="utf8");let pe=!1;for(;;)switch(he){case"hex":return A(this,$,D,Q);case"utf8":case"utf-8":return x(this,$,D,Q);case"ascii":case"latin1":case"binary":return j(this,$,D,Q);case"base64":return P(this,$,D,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,$,D,Q);default:if(pe)throw new TypeError("Unknown encoding: "+he);he=(""+he).toLowerCase(),pe=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function z(F,$,D){return $===0&&D===F.length?O.fromByteArray(F):O.fromByteArray(F.slice($,D))}function ee(F,$,D){D=Math.min(F.length,D);const Q=[];let he=$;for(;he<D;){const le=F[he];let pe=null,it=le>239?4:le>223?3:le>191?2:1;if(he+it<=D){let _e,Te,ft,Se;switch(it){case 1:le<128&&(pe=le);break;case 2:_e=F[he+1],(_e&192)===128&&(Se=(le&31)<<6|_e&63,Se>127&&(pe=Se));break;case 3:_e=F[he+1],Te=F[he+2],(_e&192)===128&&(Te&192)===128&&(Se=(le&15)<<12|(_e&63)<<6|Te&63,Se>2047&&(Se<55296||Se>57343)&&(pe=Se));break;case 4:_e=F[he+1],Te=F[he+2],ft=F[he+3],(_e&192)===128&&(Te&192)===128&&(ft&192)===128&&(Se=(le&15)<<18|(_e&63)<<12|(Te&63)<<6|ft&63,Se>65535&&Se<1114112&&(pe=Se))}}pe===null?(pe=65533,it=1):pe>65535&&(pe-=65536,Q.push(pe>>>10&1023|55296),pe=56320|pe&1023),Q.push(pe),he+=it}return ae(Q)}const J=4096;function ae(F){const $=F.length;if($<=J)return String.fromCharCode.apply(String,F);let D="",Q=0;for(;Q<$;)D+=String.fromCharCode.apply(String,F.slice(Q,Q+=J));return D}function e(F,$,D){let Q="";D=Math.min(F.length,D);for(let he=$;he<D;++he)Q+=String.fromCharCode(F[he]&127);return Q}function r(F,$,D){let Q="";D=Math.min(F.length,D);for(let he=$;he<D;++he)Q+=String.fromCharCode(F[he]);return Q}function i(F,$,D){const Q=F.length;(!$||$<0)&&($=0),(!D||D<0||D>Q)&&(D=Q);let he="";for(let le=$;le<D;++le)he+=Ae[F[le]];return he}function n(F,$,D){const Q=F.slice($,D);let he="";for(let le=0;le<Q.length-1;le+=2)he+=String.fromCharCode(Q[le]+Q[le+1]*256);return he}S.prototype.slice=function($,D){const Q=this.length;$=~~$,D=D===void 0?Q:~~D,$<0?($+=Q,$<0&&($=0)):$>Q&&($=Q),D<0?(D+=Q,D<0&&(D=0)):D>Q&&(D=Q),D<$&&(D=$);const he=this.subarray($,D);return Object.setPrototypeOf(he,S.prototype),he};function t(F,$,D){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+$>D)throw new RangeError("Trying to access beyond buffer length")}S.prototype.readUintLE=S.prototype.readUIntLE=function($,D,Q){$=$>>>0,D=D>>>0,Q||t($,D,this.length);let he=this[$],le=1,pe=0;for(;++pe<D&&(le*=256);)he+=this[$+pe]*le;return he},S.prototype.readUintBE=S.prototype.readUIntBE=function($,D,Q){$=$>>>0,D=D>>>0,Q||t($,D,this.length);let he=this[$+--D],le=1;for(;D>0&&(le*=256);)he+=this[$+--D]*le;return he},S.prototype.readUint8=S.prototype.readUInt8=function($,D){return $=$>>>0,D||t($,1,this.length),this[$]},S.prototype.readUint16LE=S.prototype.readUInt16LE=function($,D){return $=$>>>0,D||t($,2,this.length),this[$]|this[$+1]<<8},S.prototype.readUint16BE=S.prototype.readUInt16BE=function($,D){return $=$>>>0,D||t($,2,this.length),this[$]<<8|this[$+1]},S.prototype.readUint32LE=S.prototype.readUInt32LE=function($,D){return $=$>>>0,D||t($,4,this.length),(this[$]|this[$+1]<<8|this[$+2]<<16)+this[$+3]*16777216},S.prototype.readUint32BE=S.prototype.readUInt32BE=function($,D){return $=$>>>0,D||t($,4,this.length),this[$]*16777216+(this[$+1]<<16|this[$+2]<<8|this[$+3])},S.prototype.readBigUInt64LE=G(function($){$=$>>>0,X($,"offset");const D=this[$],Q=this[$+7];(D===void 0||Q===void 0)&&U($,this.length-8);const he=D+this[++$]*xn(2,8)+this[++$]*xn(2,16)+this[++$]*xn(2,24),le=this[++$]+this[++$]*xn(2,8)+this[++$]*xn(2,16)+Q*xn(2,24);return BigInt(he)+(BigInt(le)<<BigInt(32))}),S.prototype.readBigUInt64BE=G(function($){$=$>>>0,X($,"offset");const D=this[$],Q=this[$+7];(D===void 0||Q===void 0)&&U($,this.length-8);const he=D*xn(2,24)+this[++$]*xn(2,16)+this[++$]*xn(2,8)+this[++$],le=this[++$]*xn(2,24)+this[++$]*xn(2,16)+this[++$]*xn(2,8)+Q;return(BigInt(he)<<BigInt(32))+BigInt(le)}),S.prototype.readIntLE=function($,D,Q){$=$>>>0,D=D>>>0,Q||t($,D,this.length);let he=this[$],le=1,pe=0;for(;++pe<D&&(le*=256);)he+=this[$+pe]*le;return le*=128,he>=le&&(he-=Math.pow(2,8*D)),he},S.prototype.readIntBE=function($,D,Q){$=$>>>0,D=D>>>0,Q||t($,D,this.length);let he=D,le=1,pe=this[$+--he];for(;he>0&&(le*=256);)pe+=this[$+--he]*le;return le*=128,pe>=le&&(pe-=Math.pow(2,8*D)),pe},S.prototype.readInt8=function($,D){return $=$>>>0,D||t($,1,this.length),this[$]&128?(255-this[$]+1)*-1:this[$]},S.prototype.readInt16LE=function($,D){$=$>>>0,D||t($,2,this.length);const Q=this[$]|this[$+1]<<8;return Q&32768?Q|4294901760:Q},S.prototype.readInt16BE=function($,D){$=$>>>0,D||t($,2,this.length);const Q=this[$+1]|this[$]<<8;return Q&32768?Q|4294901760:Q},S.prototype.readInt32LE=function($,D){return $=$>>>0,D||t($,4,this.length),this[$]|this[$+1]<<8|this[$+2]<<16|this[$+3]<<24},S.prototype.readInt32BE=function($,D){return $=$>>>0,D||t($,4,this.length),this[$]<<24|this[$+1]<<16|this[$+2]<<8|this[$+3]},S.prototype.readBigInt64LE=G(function($){$=$>>>0,X($,"offset");const D=this[$],Q=this[$+7];(D===void 0||Q===void 0)&&U($,this.length-8);const he=this[$+4]+this[$+5]*xn(2,8)+this[$+6]*xn(2,16)+(Q<<24);return(BigInt(he)<<BigInt(32))+BigInt(D+this[++$]*xn(2,8)+this[++$]*xn(2,16)+this[++$]*xn(2,24))}),S.prototype.readBigInt64BE=G(function($){$=$>>>0,X($,"offset");const D=this[$],Q=this[$+7];(D===void 0||Q===void 0)&&U($,this.length-8);const he=(D<<24)+this[++$]*xn(2,16)+this[++$]*xn(2,8)+this[++$];return(BigInt(he)<<BigInt(32))+BigInt(this[++$]*xn(2,24)+this[++$]*xn(2,16)+this[++$]*xn(2,8)+Q)}),S.prototype.readFloatLE=function($,D){return $=$>>>0,D||t($,4,this.length),H.read(this,$,!0,23,4)},S.prototype.readFloatBE=function($,D){return $=$>>>0,D||t($,4,this.length),H.read(this,$,!1,23,4)},S.prototype.readDoubleLE=function($,D){return $=$>>>0,D||t($,8,this.length),H.read(this,$,!0,52,8)},S.prototype.readDoubleBE=function($,D){return $=$>>>0,D||t($,8,this.length),H.read(this,$,!1,52,8)};function o(F,$,D,Q,he,le){if(!S.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if($>he||$<le)throw new RangeError('"value" argument is out of bounds');if(D+Q>F.length)throw new RangeError("Index out of range")}S.prototype.writeUintLE=S.prototype.writeUIntLE=function($,D,Q,he){if($=+$,D=D>>>0,Q=Q>>>0,!he){const it=Math.pow(2,8*Q)-1;o(this,$,D,Q,it,0)}let le=1,pe=0;for(this[D]=$&255;++pe<Q&&(le*=256);)this[D+pe]=$/le&255;return D+Q},S.prototype.writeUintBE=S.prototype.writeUIntBE=function($,D,Q,he){if($=+$,D=D>>>0,Q=Q>>>0,!he){const it=Math.pow(2,8*Q)-1;o(this,$,D,Q,it,0)}let le=Q-1,pe=1;for(this[D+le]=$&255;--le>=0&&(pe*=256);)this[D+le]=$/pe&255;return D+Q},S.prototype.writeUint8=S.prototype.writeUInt8=function($,D,Q){return $=+$,D=D>>>0,Q||o(this,$,D,1,255,0),this[D]=$&255,D+1},S.prototype.writeUint16LE=S.prototype.writeUInt16LE=function($,D,Q){return $=+$,D=D>>>0,Q||o(this,$,D,2,65535,0),this[D]=$&255,this[D+1]=$>>>8,D+2},S.prototype.writeUint16BE=S.prototype.writeUInt16BE=function($,D,Q){return $=+$,D=D>>>0,Q||o(this,$,D,2,65535,0),this[D]=$>>>8,this[D+1]=$&255,D+2},S.prototype.writeUint32LE=S.prototype.writeUInt32LE=function($,D,Q){return $=+$,D=D>>>0,Q||o(this,$,D,4,4294967295,0),this[D+3]=$>>>24,this[D+2]=$>>>16,this[D+1]=$>>>8,this[D]=$&255,D+4},S.prototype.writeUint32BE=S.prototype.writeUInt32BE=function($,D,Q){return $=+$,D=D>>>0,Q||o(this,$,D,4,4294967295,0),this[D]=$>>>24,this[D+1]=$>>>16,this[D+2]=$>>>8,this[D+3]=$&255,D+4};function a(F,$,D,Q,he){L($,Q,he,F,D,7);let le=Number($&BigInt(4294967295));F[D++]=le,le=le>>8,F[D++]=le,le=le>>8,F[D++]=le,le=le>>8,F[D++]=le;let pe=Number($>>BigInt(32)&BigInt(4294967295));return F[D++]=pe,pe=pe>>8,F[D++]=pe,pe=pe>>8,F[D++]=pe,pe=pe>>8,F[D++]=pe,D}function T(F,$,D,Q,he){L($,Q,he,F,D,7);let le=Number($&BigInt(4294967295));F[D+7]=le,le=le>>8,F[D+6]=le,le=le>>8,F[D+5]=le,le=le>>8,F[D+4]=le;let pe=Number($>>BigInt(32)&BigInt(4294967295));return F[D+3]=pe,pe=pe>>8,F[D+2]=pe,pe=pe>>8,F[D+1]=pe,pe=pe>>8,F[D]=pe,D+8}S.prototype.writeBigUInt64LE=G(function($,D=0){return a(this,$,D,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeBigUInt64BE=G(function($,D=0){return T(this,$,D,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeIntLE=function($,D,Q,he){if($=+$,D=D>>>0,!he){const _e=Math.pow(2,8*Q-1);o(this,$,D,Q,_e-1,-_e)}let le=0,pe=1,it=0;for(this[D]=$&255;++le<Q&&(pe*=256);)$<0&&it===0&&this[D+le-1]!==0&&(it=1),this[D+le]=($/pe>>0)-it&255;return D+Q},S.prototype.writeIntBE=function($,D,Q,he){if($=+$,D=D>>>0,!he){const _e=Math.pow(2,8*Q-1);o(this,$,D,Q,_e-1,-_e)}let le=Q-1,pe=1,it=0;for(this[D+le]=$&255;--le>=0&&(pe*=256);)$<0&&it===0&&this[D+le+1]!==0&&(it=1),this[D+le]=($/pe>>0)-it&255;return D+Q},S.prototype.writeInt8=function($,D,Q){return $=+$,D=D>>>0,Q||o(this,$,D,1,127,-128),$<0&&($=255+$+1),this[D]=$&255,D+1},S.prototype.writeInt16LE=function($,D,Q){return $=+$,D=D>>>0,Q||o(this,$,D,2,32767,-32768),this[D]=$&255,this[D+1]=$>>>8,D+2},S.prototype.writeInt16BE=function($,D,Q){return $=+$,D=D>>>0,Q||o(this,$,D,2,32767,-32768),this[D]=$>>>8,this[D+1]=$&255,D+2},S.prototype.writeInt32LE=function($,D,Q){return $=+$,D=D>>>0,Q||o(this,$,D,4,2147483647,-2147483648),this[D]=$&255,this[D+1]=$>>>8,this[D+2]=$>>>16,this[D+3]=$>>>24,D+4},S.prototype.writeInt32BE=function($,D,Q){return $=+$,D=D>>>0,Q||o(this,$,D,4,2147483647,-2147483648),$<0&&($=4294967295+$+1),this[D]=$>>>24,this[D+1]=$>>>16,this[D+2]=$>>>8,this[D+3]=$&255,D+4},S.prototype.writeBigInt64LE=G(function($,D=0){return a(this,$,D,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeBigInt64BE=G(function($,D=0){return T(this,$,D,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function C(F,$,D,Q,he,le){if(D+Q>F.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("Index out of range")}function N(F,$,D,Q,he){return $=+$,D=D>>>0,he||C(F,$,D,4),H.write(F,$,D,Q,23,4),D+4}S.prototype.writeFloatLE=function($,D,Q){return N(this,$,D,!0,Q)},S.prototype.writeFloatBE=function($,D,Q){return N(this,$,D,!1,Q)};function I(F,$,D,Q,he){return $=+$,D=D>>>0,he||C(F,$,D,8),H.write(F,$,D,Q,52,8),D+8}S.prototype.writeDoubleLE=function($,D,Q){return I(this,$,D,!0,Q)},S.prototype.writeDoubleBE=function($,D,Q){return I(this,$,D,!1,Q)},S.prototype.copy=function($,D,Q,he){if(!S.isBuffer($))throw new TypeError("argument should be a Buffer");if(Q||(Q=0),!he&&he!==0&&(he=this.length),D>=$.length&&(D=$.length),D||(D=0),he>0&&he<Q&&(he=Q),he===Q||$.length===0||this.length===0)return 0;if(D<0)throw new RangeError("targetStart out of bounds");if(Q<0||Q>=this.length)throw new RangeError("Index out of range");if(he<0)throw new RangeError("sourceEnd out of bounds");he>this.length&&(he=this.length),$.length-D<he-Q&&(he=$.length-D+Q);const le=he-Q;return this===$&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(D,Q,he):Uint8Array.prototype.set.call($,this.subarray(Q,he),D),le},S.prototype.fill=function($,D,Q,he){if(typeof $=="string"){if(typeof D=="string"?(he=D,D=0,Q=this.length):typeof Q=="string"&&(he=Q,Q=this.length),he!==void 0&&typeof he!="string")throw new TypeError("encoding must be a string");if(typeof he=="string"&&!S.isEncoding(he))throw new TypeError("Unknown encoding: "+he);if($.length===1){const pe=$.charCodeAt(0);(he==="utf8"&&pe<128||he==="latin1")&&($=pe)}}else typeof $=="number"?$=$&255:typeof $=="boolean"&&($=Number($));if(D<0||this.length<D||this.length<Q)throw new RangeError("Out of range index");if(Q<=D)return this;D=D>>>0,Q=Q===void 0?this.length:Q>>>0,$||($=0);let le;if(typeof $=="number")for(le=D;le<Q;++le)this[le]=$;else{const pe=S.isBuffer($)?$:S.from($,he),it=pe.length;if(it===0)throw new TypeError('The value "'+$+'" is invalid for argument "value"');for(le=0;le<Q-D;++le)this[le+D]=pe[le%it]}return this};const R={};function q(F,$,D){R[F]=class extends D{constructor(){super(),Object.defineProperty(this,"message",{value:$.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${F}]`,this.stack,delete this.name}get code(){return F}set code(he){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:he,writable:!0})}toString(){return`${this.name} [${F}]: ${this.message}`}}}q("ERR_BUFFER_OUT_OF_BOUNDS",function(F){return F?`${F} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),q("ERR_INVALID_ARG_TYPE",function(F,$){return`The "${F}" argument must be of type number. Received type ${typeof $}`},TypeError),q("ERR_OUT_OF_RANGE",function(F,$,D){let Q=`The value of "${F}" is out of range.`,he=D;return Number.isInteger(D)&&Math.abs(D)>xn(2,32)?he=Z(String(D)):typeof D=="bigint"&&(he=String(D),(D>xn(BigInt(2),BigInt(32))||D<-xn(BigInt(2),BigInt(32)))&&(he=Z(he)),he+="n"),Q+=` It must be ${$}. Received ${he}`,Q},RangeError);function Z(F){let $="",D=F.length;const Q=F[0]==="-"?1:0;for(;D>=Q+4;D-=3)$=`_${F.slice(D-3,D)}${$}`;return`${F.slice(0,D)}${$}`}function te(F,$,D){X($,"offset"),(F[$]===void 0||F[$+D]===void 0)&&U($,F.length-(D+1))}function L(F,$,D,Q,he,le){if(F>D||F<$){const pe=typeof $=="bigint"?"n":"";let it;throw le>3?$===0||$===BigInt(0)?it=`>= 0${pe} and < 2${pe} ** ${(le+1)*8}${pe}`:it=`>= -(2${pe} ** ${(le+1)*8-1}${pe}) and < 2 ** ${(le+1)*8-1}${pe}`:it=`>= ${$}${pe} and <= ${D}${pe}`,new R.ERR_OUT_OF_RANGE("value",it,F)}te(Q,he,le)}function X(F,$){if(typeof F!="number")throw new R.ERR_INVALID_ARG_TYPE($,"number",F)}function U(F,$,D){throw Math.floor(F)!==F?(X(F,D),new R.ERR_OUT_OF_RANGE(D||"offset","an integer",F)):$<0?new R.ERR_BUFFER_OUT_OF_BOUNDS:new R.ERR_OUT_OF_RANGE(D||"offset",`>= ${D?1:0} and <= ${$}`,F)}const K=/[^+/0-9A-Za-z-_]/g;function se(F){if(F=F.split("=")[0],F=F.trim().replace(K,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function ne(F,$){$=$||1/0;let D;const Q=F.length;let he=null;const le=[];for(let pe=0;pe<Q;++pe){if(D=F.charCodeAt(pe),D>55295&&D<57344){if(!he){if(D>56319){($-=3)>-1&&le.push(239,191,189);continue}else if(pe+1===Q){($-=3)>-1&&le.push(239,191,189);continue}he=D;continue}if(D<56320){($-=3)>-1&&le.push(239,191,189),he=D;continue}D=(he-55296<<10|D-56320)+65536}else he&&($-=3)>-1&&le.push(239,191,189);if(he=null,D<128){if(($-=1)<0)break;le.push(D)}else if(D<2048){if(($-=2)<0)break;le.push(D>>6|192,D&63|128)}else if(D<65536){if(($-=3)<0)break;le.push(D>>12|224,D>>6&63|128,D&63|128)}else if(D<1114112){if(($-=4)<0)break;le.push(D>>18|240,D>>12&63|128,D>>6&63|128,D&63|128)}else throw new Error("Invalid code point")}return le}function ce(F){const $=[];for(let D=0;D<F.length;++D)$.push(F.charCodeAt(D)&255);return $}function ke(F,$){let D,Q,he;const le=[];for(let pe=0;pe<F.length&&!(($-=2)<0);++pe)D=F.charCodeAt(pe),Q=D>>8,he=D%256,le.push(he),le.push(Q);return le}function me(F){return O.toByteArray(se(F))}function ve(F,$,D,Q){let he;for(he=0;he<Q&&!(he+D>=$.length||he>=F.length);++he)$[he+D]=F[he];return he}function je(F,$){return F instanceof $||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===$.name}function we(F){return F!==F}const Ae=function(){const F="0123456789abcdef",$=new Array(256);for(let D=0;D<16;++D){const Q=D*16;for(let he=0;he<16;++he)$[Q+he]=F[D]+F[he]}return $}();function G(F){return typeof BigInt=="undefined"?Y:F}function Y(){throw new Error("BigInt not supported")}})(Aa);window.Buffer=Aa.Buffer;globalThis.Buffer=Aa.Buffer;var yt=(ie,O,H)=>new Promise((re,de)=>{var Me=y=>{try{S(H.next(y))}catch(k){de(k)}},W=y=>{try{S(H.throw(y))}catch(k){de(k)}},S=y=>y.done?re(y.value):Promise.resolve(y.value).then(Me,W);S((H=H.apply(ie,O)).next())});class Ep extends hp{constructor(O,H){super(O!=null?O:cl.create(),H)}getKnowledge(O,H){return yt(this,null,function*(){return this.get("/knowledge",{docId:O,name:H})})}postKnowledge(O){return yt(this,null,function*(){return this.post("/knowledge",O)})}getKnowledgeId(O){return yt(this,null,function*(){return this.get(`/knowledge/${O}`)})}patchKnowledgeId(O,H){return yt(this,null,function*(){return this.patch(`/knowledge/${O}`,H)})}delKnowledgeId(O){return yt(this,null,function*(){return this.delete(`/knowledge/${O}`)})}getKnowledgeIdFile(O){return yt(this,null,function*(){return this.get(`/knowledge/${O}/file`)})}getKnowledgeIdFileList(O,H){return yt(this,null,function*(){return this.listPaged(`/knowledge/${O}/file`,H)})}postKnowledgeIdFile(O,H){return yt(this,null,function*(){return this.post(`/knowledge/${O}/file`,H)})}getUploadTicket(O){return yt(this,null,function*(){return this.get("/upload/ticket",O)})}delKnowledgeIdFileFid(O,H){return yt(this,null,function*(){return this.delete(`/knowledge/${O}/file/${H}`)})}patchKnowledgeIdFileFid(O,H,re){return yt(this,null,function*(){return this.patch(`/knowledge/${O}/file/${H}`,re)})}listSessions(O,H){return yt(this,null,function*(){return this.get(`/application/${O}/sessionsa`,H)})}postSession(O,H){return yt(this,null,function*(){return this.post(`/application/${O}/sessions`,H)})}getSession(O,H){return yt(this,null,function*(){return this.get(`/application/${O}/sessions/${H}`)})}patchSessionsId(O,H,re){return yt(this,null,function*(){return this.patch(`/application/${O}/sessions/${H}`,re)})}delSessionsId(O,H){return yt(this,null,function*(){return this.delete(`/application/${O}/sessions/${H}`)})}getSessionKnowledgeFile(O,H,re){return yt(this,null,function*(){return this.get(`/application/${O}session/${H}/file/${re}`)})}postSessionKnowledgeFile(O,H,re){return yt(this,null,function*(){return this.post(`/application/${O}session/${H}/file`,re)})}postComments(O){return yt(this,null,function*(){return this.post("/comments",O)})}getChatHistorySessionId(O,H,re){return yt(this,null,function*(){return this.get(`application/${O}/chatHistory/${H}`,re)})}postChatHistorySessionId(O,H){return yt(this,null,function*(){return this.post(`/chatHistory/${O}`,H)})}getApplications(O){return yt(this,null,function*(){return this.get("/applications",O)})}postApplication(O){return yt(this,null,function*(){return this.post("/applications",O)})}getApplicationId(O){return yt(this,null,function*(){return this.get(`/applications/${O}`)})}patchApplicationId(O,H){return yt(this,null,function*(){return this.patch(`/applications/${O}`,H)})}delApplicationId(O){return yt(this,null,function*(){return this.delete(`/applications/${O}`)})}getApplicationIdSessions(O){return yt(this,null,function*(){return this.get(`/applications/${O}/session`)})}patchFileId(O,H){return yt(this,null,function*(){return this.patch(`/file/${O}`,H)})}getCvforceResource(O){return yt(this,null,function*(){return this.get("/cvforce/resource",O)})}postKnowledgeIdComposedFiles(O,H){return yt(this,null,function*(){return this.post(`/knowledge/${O}/composedFiles`,H)})}getTokensApplicationId(O,H){return yt(this,null,function*(){return this.get(`/tokens/${O}`,H)})}getTokens(O){return yt(this,null,function*(){return this.get("/tokens",O)})}uploadMinioFile(O,H){return yt(this,null,function*(){return new Promise((re,de)=>{const Me=new FileReader;Me.readAsArrayBuffer(H),Me.onload=W=>{Hc.initMinio({endPoint:O.endpoints[0],useSSL:O.useSSL,accessKey:O.accessKey,secretKey:O.secretKey});const S=Buffer.from(W.target.result),y={"Content-Type":"application/octet-stream"};Hc.putObjectBuffer(O.bucket,O.fileKeys[0],S,y,k=>{if(k)throw console.error(k),Error(k);re(O.fileKeys[0])})}})})}uploadFile(O,H){return yt(this,null,function*(){const re={files:[H.name],isv:"minio",knowledgeId:O};return this.getUploadTicket(re).then(de=>this.uploadMinioFile(de.minio,H)).catch(de=>{throw Error(de)})})}uploadFiles(O,H){return yt(this,null,function*(){const re={files:H.map(de=>de.name),isv:"minio",knowledgeId:O};return this.getUploadTicket(re).then(de=>Promise.all(H.map(Me=>this.uploadMinioFile(de.minio,Me)))).catch(de=>{throw Error(de)})})}getAecModels(){return yt(this,null,function*(){return this.get("/aecModels")})}postTextFilter(O){return yt(this,null,function*(){return this.post("/textFilter",O)})}getTenantModel(){return yt(this,null,function*(){return this.get("/tenantModel")})}getPrompts(O,H){return yt(this,null,function*(){return this.get(`application/${O}/promptVariables`,H)})}postPrompt(O,H){return yt(this,null,function*(){return this.post(`application/${O}/promptVariables`,H)})}patchPromptId(O,H,re){return yt(this,null,function*(){return this.patch(`application/${O}/promptVariables/${H}`,re)})}delPromptId(O,H){return yt(this,null,function*(){return this.delete(`application/${O}/promptVariables/${H}`)})}getSessionPrompts(O){return yt(this,null,function*(){return this.get(`session/${O}/promptVariables`)})}patchSessionPromptId(O,H,re){return yt(this,null,function*(){return this.patch(`session/${H}/promptVariables/${O}`,re)})}getApplicationIdSessionIdPromptVariables(O,H){return yt(this,null,function*(){return this.get(`/application/${O}/session/${H}/promptVariables`)})}patchApplicationIdSessionpromptVariablesId(O,H,re,de){return yt(this,null,function*(){return this.patch(`/application/${O}/session/${H}/promptVariables/${re}`,de)})}getPresetApplication(O){return yt(this,null,function*(){return this.get("presetApplication",O)})}postKnowledgeConfig(O){return yt(this,null,function*(){return this.post("/knowledgeConfig",O)})}getKnowledgeConfig(O){return yt(this,null,function*(){return this.get(`/knowledgeConfig/${O}`)})}patchKnowledgeConfig(O,H){return yt(this,null,function*(){return this.patch(`/knowledgeConfig/${O}`,H)})}getKnowledgeIdFileId(O,H){return yt(this,null,function*(){return this.get(`/knowledge/${O}/file/${H}`)})}getKnowledgeIdFileIdData(O,H,re){return yt(this,null,function*(){return this.listPaged(`/knowledge/${O}/file/${H}/data`,re)})}postKnowledgeIdFileIdData(O,H,re){return yt(this,null,function*(){return this.post(`/knowledge/${O}/file/${H}/data`,{data:re})})}patchKnowledgeIdFileIdData(O,H,re,de){return yt(this,null,function*(){return this.patch(`/knowledge/${O}/file/${H}/data/${re}`,{data:de})})}delKnowledgeIdFileIdDataDid(O,H,re){return yt(this,null,function*(){return this.delete(`/knowledge/${O}/file/${H}/data/${re}`)})}getPresetKnowledge(O){return yt(this,null,function*(){return this.get("/presetKnowledge",O)})}patchSessionsIdContext(O){return yt(this,null,function*(){return this.patch(`/sessions/${O}/context`,{})})}postResourceToken(O){return yt(this,null,function*(){return this.post("/resourceToken",O)})}getApplicationIdSession(O){return yt(this,null,function*(){return this.get(`/application/${O}/session`)})}patchApplicationIdSessionsIdContext(O,H){return yt(this,null,function*(){return this.patch(`/application/${O}/sessions/${H}/context`,{})})}postApplicationIdSessions(O,H){return yt(this,null,function*(){return this.post(`/application/${O}/sessions`,H)})}getApplicationIdChatHistorySessionId(O,H){return yt(this,null,function*(){return this.get(`/application/${O}/chatHistory/${H}`)})}postApplicationIdChatHistorySessionIdComments(O,H,re){return yt(this,null,function*(){return this.post(`/application/${O}/sessions/${H}/comments`,re)})}getApplicationIdPrompts(O,H){return yt(this,null,function*(){return this.get(`/application/${O}/promptVariables`,H)})}postKnowledgeSourceFile(O,H,re){return yt(this,null,function*(){return this.post(`/knowledge/${O}/sourceFile/${H}`,re)})}getMetadata(O){return yt(this,null,function*(){return this.get("/metadata",O)})}postGeneques(O){return yt(this,null,function*(){return this.post("/geneques",O)})}getBaseModel(O){return yt(this,null,function*(){return this.get("/baseModelInfo",{serviceId:O})})}}var xi=(ie=>(ie[ie.Robot=1]="Robot",ie[ie.User=2]="User",ie[ie.System=3]="System",ie))(xi||{}),va=(ie=>(ie[ie.Dialog=0]="Dialog",ie[ie.Text=1]="Text",ie[ie.Agent=2]="Agent",ie[ie.All=3]="All",ie))(va||{});function yl(ie,O,H){console.log("getCVForceService apiBase",ie);const re=k=>{var w;return O&&(op(O)&&H(403,"aiotToken is timeout"),k.headers=(w=k.headers)!=null?w:{},k.headers=Gn(nn({},k.headers),{Authorization:O?`Bearer ${O}`:""})),k};function de(k,w=!0){const g=`${ie}${k}`,M=cl.create({baseURL:g});return w&&M.interceptors.request.use(re),M}const Me=(k,w)=>{k===401&&H(k,"aiotToken is invalid")},W=(k,w)=>{k!==10001&&k!==10215&&H(k,w)},S=de("/data/v1");return new Ep(S,{onHttpStatusError:Me,onAppStatusError:W})}const ji=Object.create(null);ji.open="0";ji.close="1";ji.ping="2";ji.pong="3";ji.message="4";ji.upgrade="5";ji.noop="6";const Jo=Object.create(null);Object.keys(ji).forEach(ie=>{Jo[ji[ie]]=ie});const ba={type:"error",data:"parser error"},vl=typeof Blob=="function"||typeof Blob!="undefined"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",bl=typeof ArrayBuffer=="function",wl=ie=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(ie):ie&&ie.buffer instanceof ArrayBuffer,Ta=({type:ie,data:O},H,re)=>vl&&O instanceof Blob?H?re(O):Wc(O,re):bl&&(O instanceof ArrayBuffer||wl(O))?H?re(O):Wc(new Blob([O]),re):re(ji[ie]+(O||"")),Wc=(ie,O)=>{const H=new FileReader;return H.onload=function(){const re=H.result.split(",")[1];O("b"+(re||""))},H.readAsDataURL(ie)};function Zc(ie){return ie instanceof Uint8Array?ie:ie instanceof ArrayBuffer?new Uint8Array(ie):new Uint8Array(ie.buffer,ie.byteOffset,ie.byteLength)}let ma;function kp(ie,O){if(vl&&ie.data instanceof Blob)return ie.data.arrayBuffer().then(Zc).then(O);if(bl&&(ie.data instanceof ArrayBuffer||wl(ie.data)))return O(Zc(ie.data));Ta(ie,!1,H=>{ma||(ma=new TextEncoder),O(ma.encode(H))})}const Gc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xr=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(let ie=0;ie<Gc.length;ie++)Xr[Gc.charCodeAt(ie)]=ie;const Sp=ie=>{let O=ie.length*.75,H=ie.length,re,de=0,Me,W,S,y;ie[ie.length-1]==="="&&(O--,ie[ie.length-2]==="="&&O--);const k=new ArrayBuffer(O),w=new Uint8Array(k);for(re=0;re<H;re+=4)Me=Xr[ie.charCodeAt(re)],W=Xr[ie.charCodeAt(re+1)],S=Xr[ie.charCodeAt(re+2)],y=Xr[ie.charCodeAt(re+3)],w[de++]=Me<<2|W>>4,w[de++]=(W&15)<<4|S>>2,w[de++]=(S&3)<<6|y&63;return k},Ap=typeof ArrayBuffer=="function",Oa=(ie,O)=>{if(typeof ie!="string")return{type:"message",data:xl(ie,O)};const H=ie.charAt(0);return H==="b"?{type:"message",data:Ip(ie.substring(1),O)}:Jo[H]?ie.length>1?{type:Jo[H],data:ie.substring(1)}:{type:Jo[H]}:ba},Ip=(ie,O)=>{if(Ap){const H=Sp(ie);return xl(H,O)}else return{base64:!0,data:ie}},xl=(ie,O)=>{switch(O){case"blob":return ie instanceof Blob?ie:new Blob([ie]);case"arraybuffer":default:return ie instanceof ArrayBuffer?ie:ie.buffer}},Ml=String.fromCharCode(30),Tp=(ie,O)=>{const H=ie.length,re=new Array(H);let de=0;ie.forEach((Me,W)=>{Ta(Me,!1,S=>{re[W]=S,++de===H&&O(re.join(Ml))})})},Op=(ie,O)=>{const H=ie.split(Ml),re=[];for(let de=0;de<H.length;de++){const Me=Oa(H[de],O);if(re.push(Me),Me.type==="error")break}return re};function jp(){return new TransformStream({transform(ie,O){kp(ie,H=>{const re=H.length;let de;if(re<126)de=new Uint8Array(1),new DataView(de.buffer).setUint8(0,re);else if(re<65536){de=new Uint8Array(3);const Me=new DataView(de.buffer);Me.setUint8(0,126),Me.setUint16(1,re)}else{de=new Uint8Array(9);const Me=new DataView(de.buffer);Me.setUint8(0,127),Me.setBigUint64(1,BigInt(re))}ie.data&&typeof ie.data!="string"&&(de[0]|=128),O.enqueue(de),O.enqueue(H)})}})}let ga;function Wo(ie){return ie.reduce((O,H)=>O+H.length,0)}function Zo(ie,O){if(ie[0].length===O)return ie.shift();const H=new Uint8Array(O);let re=0;for(let de=0;de<O;de++)H[de]=ie[0][re++],re===ie[0].length&&(ie.shift(),re=0);return ie.length&&re<ie[0].length&&(ie[0]=ie[0].slice(re)),H}function Np(ie,O){ga||(ga=new TextDecoder);const H=[];let re=0,de=-1,Me=!1;return new TransformStream({transform(W,S){for(H.push(W);;){if(re===0){if(Wo(H)<1)break;const y=Zo(H,1);Me=(y[0]&128)===128,de=y[0]&127,de<126?re=3:de===126?re=1:re=2}else if(re===1){if(Wo(H)<2)break;const y=Zo(H,2);de=new DataView(y.buffer,y.byteOffset,y.length).getUint16(0),re=3}else if(re===2){if(Wo(H)<8)break;const y=Zo(H,8),k=new DataView(y.buffer,y.byteOffset,y.length),w=k.getUint32(0);if(w>Math.pow(2,53-32)-1){S.enqueue(ba);break}de=w*Math.pow(2,32)+k.getUint32(4),re=3}else{if(Wo(H)<de)break;const y=Zo(H,de);S.enqueue(Oa(Me?y:ga.decode(y),O)),re=0}if(de===0||de>ie){S.enqueue(ba);break}}}})}const _l=4;function Bn(ie){if(ie)return Rp(ie)}function Rp(ie){for(var O in Bn.prototype)ie[O]=Bn.prototype[O];return ie}Bn.prototype.on=Bn.prototype.addEventListener=function(ie,O){return this._callbacks=this._callbacks||{},(this._callbacks["$"+ie]=this._callbacks["$"+ie]||[]).push(O),this};Bn.prototype.once=function(ie,O){function H(){this.off(ie,H),O.apply(this,arguments)}return H.fn=O,this.on(ie,H),this};Bn.prototype.off=Bn.prototype.removeListener=Bn.prototype.removeAllListeners=Bn.prototype.removeEventListener=function(ie,O){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var H=this._callbacks["$"+ie];if(!H)return this;if(arguments.length==1)return delete this._callbacks["$"+ie],this;for(var re,de=0;de<H.length;de++)if(re=H[de],re===O||re.fn===O){H.splice(de,1);break}return H.length===0&&delete this._callbacks["$"+ie],this};Bn.prototype.emit=function(ie){this._callbacks=this._callbacks||{};for(var O=new Array(arguments.length-1),H=this._callbacks["$"+ie],re=1;re<arguments.length;re++)O[re-1]=arguments[re];if(H){H=H.slice(0);for(var re=0,de=H.length;re<de;++re)H[re].apply(this,O)}return this};Bn.prototype.emitReserved=Bn.prototype.emit;Bn.prototype.listeners=function(ie){return this._callbacks=this._callbacks||{},this._callbacks["$"+ie]||[]};Bn.prototype.hasListeners=function(ie){return!!this.listeners(ie).length};const mi=(()=>typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")())();function El(ie,...O){return O.reduce((H,re)=>(ie.hasOwnProperty(re)&&(H[re]=ie[re]),H),{})}const Bp=mi.setTimeout,Cp=mi.clearTimeout;function is(ie,O){O.useNativeTimers?(ie.setTimeoutFn=Bp.bind(mi),ie.clearTimeoutFn=Cp.bind(mi)):(ie.setTimeoutFn=mi.setTimeout.bind(mi),ie.clearTimeoutFn=mi.clearTimeout.bind(mi))}const Pp=1.33;function Dp(ie){return typeof ie=="string"?Lp(ie):Math.ceil((ie.byteLength||ie.size)*Pp)}function Lp(ie){let O=0,H=0;for(let re=0,de=ie.length;re<de;re++)O=ie.charCodeAt(re),O<128?H+=1:O<2048?H+=2:O<55296||O>=57344?H+=3:(re++,H+=4);return H}function Fp(ie){let O="";for(let H in ie)ie.hasOwnProperty(H)&&(O.length&&(O+="&"),O+=encodeURIComponent(H)+"="+encodeURIComponent(ie[H]));return O}function qp(ie){let O={},H=ie.split("&");for(let re=0,de=H.length;re<de;re++){let Me=H[re].split("=");O[decodeURIComponent(Me[0])]=decodeURIComponent(Me[1])}return O}class Up extends Error{constructor(O,H,re){super(O),this.description=H,this.context=re,this.type="TransportError"}}class ja extends Bn{constructor(O){super(),this.writable=!1,is(this,O),this.opts=O,this.query=O.query,this.socket=O.socket}onError(O,H,re){return super.emitReserved("error",new Up(O,H,re)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(O){this.readyState==="open"&&this.write(O)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(O){const H=Oa(O,this.socket.binaryType);this.onPacket(H)}onPacket(O){super.emitReserved("packet",O)}onClose(O){this.readyState="closed",super.emitReserved("close",O)}pause(O){}createUri(O,H={}){return O+"://"+this._hostname()+this._port()+this.opts.path+this._query(H)}_hostname(){const O=this.opts.hostname;return O.indexOf(":")===-1?O:"["+O+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(O){const H=Fp(O);return H.length?"?"+H:""}}const kl="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),wa=64,zp={};let Xc=0,Go=0,Yc;function Jc(ie){let O="";do O=kl[ie%wa]+O,ie=Math.floor(ie/wa);while(ie>0);return O}function Sl(){const ie=Jc(+new Date);return ie!==Yc?(Xc=0,Yc=ie):ie+"."+Jc(Xc++)}for(;Go<wa;Go++)zp[kl[Go]]=Go;let Al=!1;try{Al=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch(ie){}const $p=Al;function Il(ie){const O=ie.xdomain;try{if(typeof XMLHttpRequest!="undefined"&&(!O||$p))return new XMLHttpRequest}catch(H){}if(!O)try{return new mi[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(H){}}function Vp(){}const Kp=function(){return new Il({xdomain:!1}).responseType!=null}();class Hp extends ja{constructor(O){if(super(O),this.polling=!1,typeof location!="undefined"){const re=location.protocol==="https:";let de=location.port;de||(de=re?"443":"80"),this.xd=typeof location!="undefined"&&O.hostname!==location.hostname||de!==O.port}const H=O&&O.forceBase64;this.supportsBinary=Kp&&!H,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(O){this.readyState="pausing";const H=()=>{this.readyState="paused",O()};if(this.polling||!this.writable){let re=0;this.polling&&(re++,this.once("pollComplete",function(){--re||H()})),this.writable||(re++,this.once("drain",function(){--re||H()}))}else H()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(O){const H=re=>{if(this.readyState==="opening"&&re.type==="open"&&this.onOpen(),re.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(re)};Op(O,this.socket.binaryType).forEach(H),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const O=()=>{this.write([{type:"close"}])};this.readyState==="open"?O():this.once("open",O)}write(O){this.writable=!1,Tp(O,H=>{this.doWrite(H,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const O=this.opts.secure?"https":"http",H=this.query||{};return this.opts.timestampRequests!==!1&&(H[this.opts.timestampParam]=Sl()),!this.supportsBinary&&!H.sid&&(H.b64=1),this.createUri(O,H)}request(O={}){return Object.assign(O,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Oi(this.uri(),O)}doWrite(O,H){const re=this.request({method:"POST",data:O});re.on("success",H),re.on("error",(de,Me)=>{this.onError("xhr post error",de,Me)})}doPoll(){const O=this.request();O.on("data",this.onData.bind(this)),O.on("error",(H,re)=>{this.onError("xhr poll error",H,re)}),this.pollXhr=O}}class Oi extends Bn{constructor(O,H){super(),is(this,H),this.opts=H,this.method=H.method||"GET",this.uri=O,this.data=H.data!==void 0?H.data:null,this.create()}create(){var O;const H=El(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");H.xdomain=!!this.opts.xd;const re=this.xhr=new Il(H);try{re.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){re.setDisableHeaderCheck&&re.setDisableHeaderCheck(!0);for(let de in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(de)&&re.setRequestHeader(de,this.opts.extraHeaders[de])}}catch(de){}if(this.method==="POST")try{re.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(de){}try{re.setRequestHeader("Accept","*/*")}catch(de){}(O=this.opts.cookieJar)===null||O===void 0||O.addCookies(re),"withCredentials"in re&&(re.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(re.timeout=this.opts.requestTimeout),re.onreadystatechange=()=>{var de;re.readyState===3&&((de=this.opts.cookieJar)===null||de===void 0||de.parseCookies(re)),re.readyState===4&&(re.status===200||re.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof re.status=="number"?re.status:0)},0))},re.send(this.data)}catch(de){this.setTimeoutFn(()=>{this.onError(de)},0);return}typeof document!="undefined"&&(this.index=Oi.requestsCount++,Oi.requests[this.index]=this)}onError(O){this.emitReserved("error",O,this.xhr),this.cleanup(!0)}cleanup(O){if(!(typeof this.xhr=="undefined"||this.xhr===null)){if(this.xhr.onreadystatechange=Vp,O)try{this.xhr.abort()}catch(H){}typeof document!="undefined"&&delete Oi.requests[this.index],this.xhr=null}}onLoad(){const O=this.xhr.responseText;O!==null&&(this.emitReserved("data",O),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Oi.requestsCount=0;Oi.requests={};if(typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",Qc);else if(typeof addEventListener=="function"){const ie="onpagehide"in mi?"pagehide":"unload";addEventListener(ie,Qc,!1)}}function Qc(){for(let ie in Oi.requests)Oi.requests.hasOwnProperty(ie)&&Oi.requests[ie].abort()}const Na=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?O=>Promise.resolve().then(O):(O,H)=>H(O,0))(),Xo=mi.WebSocket||mi.MozWebSocket,el=!0,Wp="arraybuffer",tl=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Zp extends ja{constructor(O){super(O),this.supportsBinary=!O.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const O=this.uri(),H=this.opts.protocols,re=tl?{}:El(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(re.headers=this.opts.extraHeaders);try{this.ws=el&&!tl?H?new Xo(O,H):new Xo(O):new Xo(O,H,re)}catch(de){return this.emitReserved("error",de)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=O=>this.onClose({description:"websocket connection closed",context:O}),this.ws.onmessage=O=>this.onData(O.data),this.ws.onerror=O=>this.onError("websocket error",O)}write(O){this.writable=!1;for(let H=0;H<O.length;H++){const re=O[H],de=H===O.length-1;Ta(re,this.supportsBinary,Me=>{const W={};try{el&&this.ws.send(Me)}catch(S){}de&&Na(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws!="undefined"&&(this.ws.close(),this.ws=null)}uri(){const O=this.opts.secure?"wss":"ws",H=this.query||{};return this.opts.timestampRequests&&(H[this.opts.timestampParam]=Sl()),this.supportsBinary||(H.b64=1),this.createUri(O,H)}check(){return!!Xo}}class Gp extends ja{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(O=>{this.onError("webtransport error",O)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(O=>{const H=Np(Number.MAX_SAFE_INTEGER,this.socket.binaryType),re=O.readable.pipeThrough(H).getReader(),de=jp();de.readable.pipeTo(O.writable),this.writer=de.writable.getWriter();const Me=()=>{re.read().then(({done:S,value:y})=>{S||(this.onPacket(y),Me())}).catch(S=>{})};Me();const W={type:"open"};this.query.sid&&(W.data=`{"sid":"${this.query.sid}"}`),this.writer.write(W).then(()=>this.onOpen())})}))}write(O){this.writable=!1;for(let H=0;H<O.length;H++){const re=O[H],de=H===O.length-1;this.writer.write(re).then(()=>{de&&Na(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var O;(O=this.transport)===null||O===void 0||O.close()}}const Xp={websocket:Zp,webtransport:Gp,polling:Hp},Yp=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Jp=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function xa(ie){if(ie.length>2e3)throw"URI too long";const O=ie,H=ie.indexOf("["),re=ie.indexOf("]");H!=-1&&re!=-1&&(ie=ie.substring(0,H)+ie.substring(H,re).replace(/:/g,";")+ie.substring(re,ie.length));let de=Yp.exec(ie||""),Me={},W=14;for(;W--;)Me[Jp[W]]=de[W]||"";return H!=-1&&re!=-1&&(Me.source=O,Me.host=Me.host.substring(1,Me.host.length-1).replace(/;/g,":"),Me.authority=Me.authority.replace("[","").replace("]","").replace(/;/g,":"),Me.ipv6uri=!0),Me.pathNames=Qp(Me,Me.path),Me.queryKey=ed(Me,Me.query),Me}function Qp(ie,O){const H=/\/{2,9}/g,re=O.replace(H,"/").split("/");return(O.slice(0,1)=="/"||O.length===0)&&re.splice(0,1),O.slice(-1)=="/"&&re.splice(re.length-1,1),re}function ed(ie,O){const H={};return O.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(re,de,Me){de&&(H[de]=Me)}),H}let Tl=class kr extends Bn{constructor(O,H={}){super(),this.binaryType=Wp,this.writeBuffer=[],O&&typeof O=="object"&&(H=O,O=null),O?(O=xa(O),H.hostname=O.host,H.secure=O.protocol==="https"||O.protocol==="wss",H.port=O.port,O.query&&(H.query=O.query)):H.host&&(H.hostname=xa(H.host).host),is(this,H),this.secure=H.secure!=null?H.secure:typeof location!="undefined"&&location.protocol==="https:",H.hostname&&!H.port&&(H.port=this.secure?"443":"80"),this.hostname=H.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=H.port||(typeof location!="undefined"&&location.port?location.port:this.secure?"443":"80"),this.transports=H.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},H),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=qp(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(O){const H=Object.assign({},this.opts.query);H.EIO=_l,H.transport=O,this.id&&(H.sid=this.id);const re=Object.assign({},this.opts,{query:H,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[O]);return new Xp[O](re)}open(){let O;if(this.opts.rememberUpgrade&&kr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)O="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else O=this.transports[0];this.readyState="opening";try{O=this.createTransport(O)}catch(H){this.transports.shift(),this.open();return}O.open(),this.setTransport(O)}setTransport(O){this.transport&&this.transport.removeAllListeners(),this.transport=O,O.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",H=>this.onClose("transport close",H))}probe(O){let H=this.createTransport(O),re=!1;kr.priorWebsocketSuccess=!1;const de=()=>{re||(H.send([{type:"ping",data:"probe"}]),H.once("packet",g=>{if(!re)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",H),!H)return;kr.priorWebsocketSuccess=H.name==="websocket",this.transport.pause(()=>{re||this.readyState!=="closed"&&(w(),this.setTransport(H),H.send([{type:"upgrade"}]),this.emitReserved("upgrade",H),H=null,this.upgrading=!1,this.flush())})}else{const M=new Error("probe error");M.transport=H.name,this.emitReserved("upgradeError",M)}}))};function Me(){re||(re=!0,w(),H.close(),H=null)}const W=g=>{const M=new Error("probe error: "+g);M.transport=H.name,Me(),this.emitReserved("upgradeError",M)};function S(){W("transport closed")}function y(){W("socket closed")}function k(g){H&&g.name!==H.name&&Me()}const w=()=>{H.removeListener("open",de),H.removeListener("error",W),H.removeListener("close",S),this.off("close",y),this.off("upgrading",k)};H.once("open",de),H.once("error",W),H.once("close",S),this.once("close",y),this.once("upgrading",k),this.upgrades.indexOf("webtransport")!==-1&&O!=="webtransport"?this.setTimeoutFn(()=>{re||H.open()},200):H.open()}onOpen(){if(this.readyState="open",kr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let O=0;const H=this.upgrades.length;for(;O<H;O++)this.probe(this.upgrades[O])}}onPacket(O){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",O),this.emitReserved("heartbeat"),this.resetPingTimeout(),O.type){case"open":this.onHandshake(JSON.parse(O.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const H=new Error("server error");H.code=O.data,this.onError(H);break;case"message":this.emitReserved("data",O.data),this.emitReserved("message",O.data);break}}onHandshake(O){this.emitReserved("handshake",O),this.id=O.sid,this.transport.query.sid=O.sid,this.upgrades=this.filterUpgrades(O.upgrades),this.pingInterval=O.pingInterval,this.pingTimeout=O.pingTimeout,this.maxPayload=O.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 O=this.getWritablePackets();this.transport.send(O),this.prevBufferLen=O.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let H=1;for(let re=0;re<this.writeBuffer.length;re++){const de=this.writeBuffer[re].data;if(de&&(H+=Dp(de)),re>0&&H>this.maxPayload)return this.writeBuffer.slice(0,re);H+=2}return this.writeBuffer}write(O,H,re){return this.sendPacket("message",O,H,re),this}send(O,H,re){return this.sendPacket("message",O,H,re),this}sendPacket(O,H,re,de){if(typeof H=="function"&&(de=H,H=void 0),typeof re=="function"&&(de=re,re=null),this.readyState==="closing"||this.readyState==="closed")return;re=re||{},re.compress=re.compress!==!1;const Me={type:O,data:H,options:re};this.emitReserved("packetCreate",Me),this.writeBuffer.push(Me),de&&this.once("flush",de),this.flush()}close(){const O=()=>{this.onClose("forced close"),this.transport.close()},H=()=>{this.off("upgrade",H),this.off("upgradeError",H),O()},re=()=>{this.once("upgrade",H),this.once("upgradeError",H)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?re():O()}):this.upgrading?re():O()),this}onError(O){kr.priorWebsocketSuccess=!1,this.emitReserved("error",O),this.onClose("transport error",O)}onClose(O,H){(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",O,H),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(O){const H=[];let re=0;const de=O.length;for(;re<de;re++)~this.transports.indexOf(O[re])&&H.push(O[re]);return H}};Tl.protocol=_l;function td(ie,O="",H){let re=ie;H=H||typeof location!="undefined"&&location,ie==null&&(ie=H.protocol+"//"+H.host),typeof ie=="string"&&(ie.charAt(0)==="/"&&(ie.charAt(1)==="/"?ie=H.protocol+ie:ie=H.host+ie),/^(https?|wss?):\/\//.test(ie)||(typeof H!="undefined"?ie=H.protocol+"//"+ie:ie="https://"+ie),re=xa(ie)),re.port||(/^(http|ws)$/.test(re.protocol)?re.port="80":/^(http|ws)s$/.test(re.protocol)&&(re.port="443")),re.path=re.path||"/";const Me=re.host.indexOf(":")!==-1?"["+re.host+"]":re.host;return re.id=re.protocol+"://"+Me+":"+re.port+O,re.href=re.protocol+"://"+Me+(H&&H.port===re.port?"":":"+re.port),re}const nd=typeof ArrayBuffer=="function",id=ie=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(ie):ie.buffer instanceof ArrayBuffer,Ol=Object.prototype.toString,rd=typeof Blob=="function"||typeof Blob!="undefined"&&Ol.call(Blob)==="[object BlobConstructor]",od=typeof File=="function"||typeof File!="undefined"&&Ol.call(File)==="[object FileConstructor]";function Ra(ie){return nd&&(ie instanceof ArrayBuffer||id(ie))||rd&&ie instanceof Blob||od&&ie instanceof File}function Qo(ie,O){if(!ie||typeof ie!="object")return!1;if(Array.isArray(ie)){for(let H=0,re=ie.length;H<re;H++)if(Qo(ie[H]))return!0;return!1}if(Ra(ie))return!0;if(ie.toJSON&&typeof ie.toJSON=="function"&&arguments.length===1)return Qo(ie.toJSON(),!0);for(const H in ie)if(Object.prototype.hasOwnProperty.call(ie,H)&&Qo(ie[H]))return!0;return!1}function sd(ie){const O=[],H=ie.data,re=ie;return re.data=Ma(H,O),re.attachments=O.length,{packet:re,buffers:O}}function Ma(ie,O){if(!ie)return ie;if(Ra(ie)){const H={_placeholder:!0,num:O.length};return O.push(ie),H}else if(Array.isArray(ie)){const H=new Array(ie.length);for(let re=0;re<ie.length;re++)H[re]=Ma(ie[re],O);return H}else if(typeof ie=="object"&&!(ie instanceof Date)){const H={};for(const re in ie)Object.prototype.hasOwnProperty.call(ie,re)&&(H[re]=Ma(ie[re],O));return H}return ie}function ad(ie,O){return ie.data=_a(ie.data,O),delete ie.attachments,ie}function _a(ie,O){if(!ie)return ie;if(ie&&ie._placeholder===!0){if(typeof ie.num=="number"&&ie.num>=0&&ie.num<O.length)return O[ie.num];throw new Error("illegal attachments")}else if(Array.isArray(ie))for(let H=0;H<ie.length;H++)ie[H]=_a(ie[H],O);else if(typeof ie=="object")for(const H in ie)Object.prototype.hasOwnProperty.call(ie,H)&&(ie[H]=_a(ie[H],O));return ie}const ud=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],cd=5;var rn;(function(ie){ie[ie.CONNECT=0]="CONNECT",ie[ie.DISCONNECT=1]="DISCONNECT",ie[ie.EVENT=2]="EVENT",ie[ie.ACK=3]="ACK",ie[ie.CONNECT_ERROR=4]="CONNECT_ERROR",ie[ie.BINARY_EVENT=5]="BINARY_EVENT",ie[ie.BINARY_ACK=6]="BINARY_ACK"})(rn||(rn={}));class ld{constructor(O){this.replacer=O}encode(O){return(O.type===rn.EVENT||O.type===rn.ACK)&&Qo(O)?this.encodeAsBinary({type:O.type===rn.EVENT?rn.BINARY_EVENT:rn.BINARY_ACK,nsp:O.nsp,data:O.data,id:O.id}):[this.encodeAsString(O)]}encodeAsString(O){let H=""+O.type;return(O.type===rn.BINARY_EVENT||O.type===rn.BINARY_ACK)&&(H+=O.attachments+"-"),O.nsp&&O.nsp!=="/"&&(H+=O.nsp+","),O.id!=null&&(H+=O.id),O.data!=null&&(H+=JSON.stringify(O.data,this.replacer)),H}encodeAsBinary(O){const H=sd(O),re=this.encodeAsString(H.packet),de=H.buffers;return de.unshift(re),de}}function nl(ie){return Object.prototype.toString.call(ie)==="[object Object]"}class Ba extends Bn{constructor(O){super(),this.reviver=O}add(O){let H;if(typeof O=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");H=this.decodeString(O);const re=H.type===rn.BINARY_EVENT;re||H.type===rn.BINARY_ACK?(H.type=re?rn.EVENT:rn.ACK,this.reconstructor=new hd(H),H.attachments===0&&super.emitReserved("decoded",H)):super.emitReserved("decoded",H)}else if(Ra(O)||O.base64)if(this.reconstructor)H=this.reconstructor.takeBinaryData(O),H&&(this.reconstructor=null,super.emitReserved("decoded",H));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+O)}decodeString(O){let H=0;const re={type:Number(O.charAt(0))};if(rn[re.type]===void 0)throw new Error("unknown packet type "+re.type);if(re.type===rn.BINARY_EVENT||re.type===rn.BINARY_ACK){const Me=H+1;for(;O.charAt(++H)!=="-"&&H!=O.length;);const W=O.substring(Me,H);if(W!=Number(W)||O.charAt(H)!=="-")throw new Error("Illegal attachments");re.attachments=Number(W)}if(O.charAt(H+1)==="/"){const Me=H+1;for(;++H&&!(O.charAt(H)===","||H===O.length););re.nsp=O.substring(Me,H)}else re.nsp="/";const de=O.charAt(H+1);if(de!==""&&Number(de)==de){const Me=H+1;for(;++H;){const W=O.charAt(H);if(W==null||Number(W)!=W){--H;break}if(H===O.length)break}re.id=Number(O.substring(Me,H+1))}if(O.charAt(++H)){const Me=this.tryParse(O.substr(H));if(Ba.isPayloadValid(re.type,Me))re.data=Me;else throw new Error("invalid payload")}return re}tryParse(O){try{return JSON.parse(O,this.reviver)}catch(H){return!1}}static isPayloadValid(O,H){switch(O){case rn.CONNECT:return nl(H);case rn.DISCONNECT:return H===void 0;case rn.CONNECT_ERROR:return typeof H=="string"||nl(H);case rn.EVENT:case rn.BINARY_EVENT:return Array.isArray(H)&&(typeof H[0]=="number"||typeof H[0]=="string"&&ud.indexOf(H[0])===-1);case rn.ACK:case rn.BINARY_ACK:return Array.isArray(H)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class hd{constructor(O){this.packet=O,this.buffers=[],this.reconPack=O}takeBinaryData(O){if(this.buffers.push(O),this.buffers.length===this.reconPack.attachments){const H=ad(this.reconPack,this.buffers);return this.finishedReconstruction(),H}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const fd=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Ba,Encoder:ld,get PacketType(){return rn},protocol:cd},Symbol.toStringTag,{value:"Module"}));function wi(ie,O,H){return ie.on(O,H),function(){ie.off(O,H)}}const pd=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class jl extends Bn{constructor(O,H,re){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=O,this.nsp=H,re&&re.auth&&(this.auth=re.auth),this._opts=Object.assign({},re),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const O=this.io;this.subs=[wi(O,"open",this.onopen.bind(this)),wi(O,"packet",this.onpacket.bind(this)),wi(O,"error",this.onerror.bind(this)),wi(O,"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(...O){return O.unshift("message"),this.emit.apply(this,O),this}emit(O,...H){if(pd.hasOwnProperty(O))throw new Error('"'+O.toString()+'" is a reserved event name');if(H.unshift(O),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(H),this;const re={type:rn.EVENT,data:H};if(re.options={},re.options.compress=this.flags.compress!==!1,typeof H[H.length-1]=="function"){const W=this.ids++,S=H.pop();this._registerAckCallback(W,S),re.id=W}const de=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!de||!this.connected)||(this.connected?(this.notifyOutgoingListeners(re),this.packet(re)):this.sendBuffer.push(re)),this.flags={},this}_registerAckCallback(O,H){var re;const de=(re=this.flags.timeout)!==null&&re!==void 0?re:this._opts.ackTimeout;if(de===void 0){this.acks[O]=H;return}const Me=this.io.setTimeoutFn(()=>{delete this.acks[O];for(let S=0;S<this.sendBuffer.length;S++)this.sendBuffer[S].id===O&&this.sendBuffer.splice(S,1);H.call(this,new Error("operation has timed out"))},de),W=(...S)=>{this.io.clearTimeoutFn(Me),H.apply(this,S)};W.withError=!0,this.acks[O]=W}emitWithAck(O,...H){return new Promise((re,de)=>{const Me=(W,S)=>W?de(W):re(S);Me.withError=!0,H.push(Me),this.emit(O,...H)})}_addToQueue(O){let H;typeof O[O.length-1]=="function"&&(H=O.pop());const re={id:this._queueSeq++,tryCount:0,pending:!1,args:O,flags:Object.assign({fromQueue:!0},this.flags)};O.push((de,...Me)=>re!==this._queue[0]?void 0:(de!==null?re.tryCount>this._opts.retries&&(this._queue.shift(),H&&H(de)):(this._queue.shift(),H&&H(null,...Me)),re.pending=!1,this._drainQueue())),this._queue.push(re),this._drainQueue()}_drainQueue(O=!1){if(!this.connected||this._queue.length===0)return;const H=this._queue[0];H.pending&&!O||(H.pending=!0,H.tryCount++,this.flags=H.flags,this.emit.apply(this,H.args))}packet(O){O.nsp=this.nsp,this.io._packet(O)}onopen(){typeof this.auth=="function"?this.auth(O=>{this._sendConnectPacket(O)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(O){this.packet({type:rn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},O):O})}onerror(O){this.connected||this.emitReserved("connect_error",O)}onclose(O,H){this.connected=!1,delete this.id,this.emitReserved("disconnect",O,H),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(O=>{if(!this.sendBuffer.some(re=>String(re.id)===O)){const re=this.acks[O];delete this.acks[O],re.withError&&re.call(this,new Error("socket has been disconnected"))}})}onpacket(O){if(O.nsp===this.nsp)switch(O.type){case rn.CONNECT:O.data&&O.data.sid?this.onconnect(O.data.sid,O.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 rn.EVENT:case rn.BINARY_EVENT:this.onevent(O);break;case rn.ACK:case rn.BINARY_ACK:this.onack(O);break;case rn.DISCONNECT:this.ondisconnect();break;case rn.CONNECT_ERROR:this.destroy();const re=new Error(O.data.message);re.data=O.data.data,this.emitReserved("connect_error",re);break}}onevent(O){const H=O.data||[];O.id!=null&&H.push(this.ack(O.id)),this.connected?this.emitEvent(H):this.receiveBuffer.push(Object.freeze(H))}emitEvent(O){if(this._anyListeners&&this._anyListeners.length){const H=this._anyListeners.slice();for(const re of H)re.apply(this,O)}super.emit.apply(this,O),this._pid&&O.length&&typeof O[O.length-1]=="string"&&(this._lastOffset=O[O.length-1])}ack(O){const H=this;let re=!1;return function(...de){re||(re=!0,H.packet({type:rn.ACK,id:O,data:de}))}}onack(O){const H=this.acks[O.id];typeof H=="function"&&(delete this.acks[O.id],H.withError&&O.data.unshift(null),H.apply(this,O.data))}onconnect(O,H){this.id=O,this.recovered=H&&this._pid===H,this._pid=H,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(O=>this.emitEvent(O)),this.receiveBuffer=[],this.sendBuffer.forEach(O=>{this.notifyOutgoingListeners(O),this.packet(O)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(O=>O()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:rn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(O){return this.flags.compress=O,this}get volatile(){return this.flags.volatile=!0,this}timeout(O){return this.flags.timeout=O,this}onAny(O){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(O),this}prependAny(O){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(O),this}offAny(O){if(!this._anyListeners)return this;if(O){const H=this._anyListeners;for(let re=0;re<H.length;re++)if(O===H[re])return H.splice(re,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(O){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(O),this}prependAnyOutgoing(O){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(O),this}offAnyOutgoing(O){if(!this._anyOutgoingListeners)return this;if(O){const H=this._anyOutgoingListeners;for(let re=0;re<H.length;re++)if(O===H[re])return H.splice(re,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(O){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const H=this._anyOutgoingListeners.slice();for(const re of H)re.apply(this,O.data)}}}function Ir(ie){ie=ie||{},this.ms=ie.min||100,this.max=ie.max||1e4,this.factor=ie.factor||2,this.jitter=ie.jitter>0&&ie.jitter<=1?ie.jitter:0,this.attempts=0}Ir.prototype.duration=function(){var ie=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var O=Math.random(),H=Math.floor(O*this.jitter*ie);ie=Math.floor(O*10)&1?ie+H:ie-H}return Math.min(ie,this.max)|0};Ir.prototype.reset=function(){this.attempts=0};Ir.prototype.setMin=function(ie){this.ms=ie};Ir.prototype.setMax=function(ie){this.max=ie};Ir.prototype.setJitter=function(ie){this.jitter=ie};class Ea extends Bn{constructor(O,H){var re;super(),this.nsps={},this.subs=[],O&&typeof O=="object"&&(H=O,O=void 0),H=H||{},H.path=H.path||"/socket.io",this.opts=H,is(this,H),this.reconnection(H.reconnection!==!1),this.reconnectionAttempts(H.reconnectionAttempts||1/0),this.reconnectionDelay(H.reconnectionDelay||1e3),this.reconnectionDelayMax(H.reconnectionDelayMax||5e3),this.randomizationFactor((re=H.randomizationFactor)!==null&&re!==void 0?re:.5),this.backoff=new Ir({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(H.timeout==null?2e4:H.timeout),this._readyState="closed",this.uri=O;const de=H.parser||fd;this.encoder=new de.Encoder,this.decoder=new de.Decoder,this._autoConnect=H.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(O){return arguments.length?(this._reconnection=!!O,this):this._reconnection}reconnectionAttempts(O){return O===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=O,this)}reconnectionDelay(O){var H;return O===void 0?this._reconnectionDelay:(this._reconnectionDelay=O,(H=this.backoff)===null||H===void 0||H.setMin(O),this)}randomizationFactor(O){var H;return O===void 0?this._randomizationFactor:(this._randomizationFactor=O,(H=this.backoff)===null||H===void 0||H.setJitter(O),this)}reconnectionDelayMax(O){var H;return O===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=O,(H=this.backoff)===null||H===void 0||H.setMax(O),this)}timeout(O){return arguments.length?(this._timeout=O,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(O){if(~this._readyState.indexOf("open"))return this;this.engine=new Tl(this.uri,this.opts);const H=this.engine,re=this;this._readyState="opening",this.skipReconnect=!1;const de=wi(H,"open",function(){re.onopen(),O&&O()}),Me=S=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",S),O?O(S):this.maybeReconnectOnOpen()},W=wi(H,"error",Me);if(this._timeout!==!1){const S=this._timeout,y=this.setTimeoutFn(()=>{de(),Me(new Error("timeout")),H.close()},S);this.opts.autoUnref&&y.unref(),this.subs.push(()=>{this.clearTimeoutFn(y)})}return this.subs.push(de),this.subs.push(W),this}connect(O){return this.open(O)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const O=this.engine;this.subs.push(wi(O,"ping",this.onping.bind(this)),wi(O,"data",this.ondata.bind(this)),wi(O,"error",this.onerror.bind(this)),wi(O,"close",this.onclose.bind(this)),wi(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(O){try{this.decoder.add(O)}catch(H){this.onclose("parse error",H)}}ondecoded(O){Na(()=>{this.emitReserved("packet",O)},this.setTimeoutFn)}onerror(O){this.emitReserved("error",O)}socket(O,H){let re=this.nsps[O];return re?this._autoConnect&&!re.active&&re.connect():(re=new jl(this,O,H),this.nsps[O]=re),re}_destroy(O){const H=Object.keys(this.nsps);for(const re of H)if(this.nsps[re].active)return;this._close()}_packet(O){const H=this.encoder.encode(O);for(let re=0;re<H.length;re++)this.engine.write(H[re],O.options)}cleanup(){this.subs.forEach(O=>O()),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(O,H){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",O,H),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const O=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const H=this.backoff.duration();this._reconnecting=!0;const re=this.setTimeoutFn(()=>{O.skipReconnect||(this.emitReserved("reconnect_attempt",O.backoff.attempts),!O.skipReconnect&&O.open(de=>{de?(O._reconnecting=!1,O.reconnect(),this.emitReserved("reconnect_error",de)):O.onreconnect()}))},H);this.opts.autoUnref&&re.unref(),this.subs.push(()=>{this.clearTimeoutFn(re)})}}onreconnect(){const O=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",O)}}const Gr={};function es(ie,O){typeof ie=="object"&&(O=ie,ie=void 0),O=O||{};const H=td(ie,O.path||"/socket.io"),re=H.source,de=H.id,Me=H.path,W=Gr[de]&&Me in Gr[de].nsps,S=O.forceNew||O["force new connection"]||O.multiplex===!1||W;let y;return S?y=new Ea(re,O):(Gr[de]||(Gr[de]=new Ea(re,O)),y=Gr[de]),H.query&&!O.query&&(O.query=H.queryKey),y.socket(H.path,O)}Object.assign(es,{Manager:Ea,Socket:jl,io:es,connect:es});var Sr=(ie=>(ie[ie.Normal=0]="Normal",ie[ie.Debug=1]="Debug",ie))(Sr||{});let Yo;const dd=new Uint8Array(16);function md(){if(!Yo&&(Yo=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Yo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yo(dd)}const qn=[];for(let ie=0;ie<256;++ie)qn.push((ie+256).toString(16).slice(1));function gd(ie,O=0){return qn[ie[O+0]]+qn[ie[O+1]]+qn[ie[O+2]]+qn[ie[O+3]]+"-"+qn[ie[O+4]]+qn[ie[O+5]]+"-"+qn[ie[O+6]]+qn[ie[O+7]]+"-"+qn[ie[O+8]]+qn[ie[O+9]]+"-"+qn[ie[O+10]]+qn[ie[O+11]]+qn[ie[O+12]]+qn[ie[O+13]]+qn[ie[O+14]]+qn[ie[O+15]]}const yd=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),il={randomUUID:yd};function rl(ie,O,H){if(il.randomUUID&&!O&&!ie)return il.randomUUID();ie=ie||{};const re=ie.random||(ie.rng||md)();if(re[6]=re[6]&15|64,re[8]=re[8]&63|128,O){H=H||0;for(let de=0;de<16;++de)O[H+de]=re[de];return O}return gd(re)}const cr=new Ui("[EventBus] ");class Nl{constructor(O=!1){un(this,"eventListenerMap",{});O&&cr.disable()}getEventListenerMap(){return nn({},this.eventListenerMap)}on(O,H,re=!1){this.eventListenerMap[O]||(this.eventListenerMap[O]=[]),re?this.eventListenerMap[O].push({fn:H,once:!0}):this.eventListenerMap[O].push(H),cr.log(`add event ${O} listener ${re?", call once":""}`)}once(O,H){this.on(O,H,!0)}off(O,H){if(this.eventListenerMap[O]){const re=this.eventListenerMap[O].findIndex(de=>{if(typeof de=="function"&&H===de)return!0;if(de=de,de.fn===H)return!0});re<0?cr.log(`event ${O} listener ${H.name} is not found`):(this.eventListenerMap[O].splice(re,1),cr.log(`remove event ${O} listener`))}else cr.log(`event ${O} listeners is empty`)}emit(O,H){if(!this.eventListenerMap[O]){cr.log(`event ${O} listeners is empty`);return}const re=[];for(let de=0;de<this.eventListenerMap[O].length;de++){const Me=this.eventListenerMap[O][de];typeof Me=="function"?Me(H):re.push(Me)}re.forEach(de=>{de&&(de.fn(H),this.off(O,de.fn))}),cr.log(`event ${O} is fired, has ${this.eventListenerMap[O].length} listeners`)}removeAllListeners(){this.eventListenerMap={}}}const Ii=new Ui("[AgentClient] ");var Ar=(ie=>(ie.DataRequestFailed="data request error",ie.SocketConnectionFailed="socket error",ie.IdUndefined="session id is not defined",ie.SendingEmptyContent="failed at sending empty content",ie.Frozen="session is frozen",ie.UserModeError="failed at setting socket user mode",ie.Inactive="session is inactive",ie))(Ar||{});class Ca{constructor(O,H="",re,de){un(this,"_id");un(this,"_frozen",!1);un(this,"inactivating",!1);un(this,"_ready",!1);un(this,"event",new Nl);un(this,"_applicationId");un(this,"data",null);un(this,"messages",[]);un(this,"_loadingMessages",!1);un(this,"_loadingMessagesSize",10);un(this,"cvforceApi");un(this,"socket",null);un(this,"_promptVariables",[]);un(this,"active",!1);un(this,"_stopAnswer",!1);un(this,"_dataLoading",!1);un(this,"_dataLoaded",!1);var Me;if(this.token=O,this.lazyload=de,this._applicationId=ts(O).rid||exports.configuration.applicationId,this.cvforceApi=this.getService(),this.event.emit("init",{applicationId:this._applicationId,sessionId:H}),H)this._id=H,this.event.emit("data:loading"),re?(this.data=re,de||(this._dataLoading=!0,this.cvforceApi.getSession(this.applicationId,H).then(W=>Dt(this,null,function*(){this.data=W,this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,H),this.event.emit("data:loaded",this.data),this.event.emit("data:updated",this.data),this._ready=!0,this.event.emit("ready")})).then(()=>Dt(this,null,function*(){yield this.fetchMessages(),this._dataLoaded=!0})))):(this._dataLoading=!0,this.cvforceApi.getSession(this.applicationId,H).then(W=>Dt(this,null,function*(){this.data=W,this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,H),this.event.emit("data:loaded",this.data),this._ready=!0,this.event.emit("ready")})).then(()=>Dt(this,null,function*(){de||(yield this.fetchMessages(),this._dataLoaded=!0)})));else{const W=(re==null?void 0:re.name)||"新建会话";this.event.emit("data:creating",{applicationId:this._applicationId,name:W}),this.event.emit("data:loading"),this.cvforceApi.postSession(this.applicationId,{name:W,netOpen:re==null?void 0:re.netOpen,knowledgeList:(Me=re==null?void 0:re.knowledges)==null?void 0:Me.map(S=>S.id),applicationId:this._applicationId}).then(S=>Dt(this,null,function*(){this._id=S.id,this.data=S,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(O){O===!1&&this.inactivating&&this.socket&&(console.log("[frozen] socket disconnect",this._id),this.socket.disconnect(),this.socket=null,this.event.emit("inactivated")),this._frozen=O,this.event.emit("frozen",O)}get knowledges(){if(!this.data)throw Error("session data is not loaded");return this.data.knowledges||[]}setKnowledges(O){return Dt(this,null,function*(){if(!this.data)throw Error("session data is not loaded");return yield this.cvforceApi.patchSessionsId(this._applicationId,this.data.id,{knowledges:O}),this.data.knowledges=O,this.event.emit("data:updated",this.data),this.event.emit("data:updated:knowledges",{knowledges:O}),O})}get promptVariables(){return this._promptVariables.filter(O=>O.key!=="query")}setPromptVariables(O){return Dt(this,null,function*(){return yield Promise.all(O.filter(H=>H.key!=="query").map(H=>{if(!this.data)throw Error("session data is not loaded");if(!(!H.id||!H.key))return this.cvforceApi.patchApplicationIdSessionpromptVariablesId(this._applicationId,this.data.id,H.id,{value:H.value})})),!0})}getService(){return yl(exports.configuration.apiRoot,this.token,(O,H)=>{const re=new Error("data request error");Ii.error(re),this.event.emit("error",re)})}addEventListener(O,H,re=!1){if(typeof H!="function")throw Error("event listener is not a function");if(re){this.event.once(O,H);return}this.event.on(O,H)}removeEventListener(O,H){this.event.off(O,H)}fetchMessages(){return Dt(this,arguments,function*(O={}){var re;const H={pageSize:this._loadingMessagesSize};if(this._id){O=nn(nn({},H),O),this.event.emit("history:loading"),Ii.log("history:loading"),(O.endTime||O.startTime)&&(this.event.emit("history:moreloading",O),Ii.log("history:moreloading",O)),this._loadingMessages=!0;const de=yield this.cvforceApi.getChatHistorySessionId(this._applicationId,this._id,O),Me=de.map((S,y)=>{var g,M;let k=[],w;return typeof((g=S.agentHistoryList)==null?void 0:g.agentList)=="string"&&(k=JSON.parse(S.agentHistoryList.agentList).reduce((p,c)=>(p[c.data.step-1]||(p[c.data.step-1]=[]),p[c.data.step-1].push(c),p),[])),y===de.length-1&&(w=(M=this.data)==null?void 0:M.lastRelatedQuestion),Gn(nn({},S),{actions:k,relatedQuesion:w})});if(!O.endTime&&!O.startTime)this.messages=Me;else if(O.endTime&&!O.startTime){const S=this.messages.findIndex(y=>y.ts===O.endTime);this.messages.splice(0,S+1),this.messages=[...Me,...this.messages]}else if(!O.endTime&&O.startTime){const S=this.messages.findLastIndex(y=>y.ts===O.endTime);this.messages.splice(S,this.messages.length-S-1),this.messages=[...this.messages,...Me]}else{const S=this.messages.findIndex(k=>k.ts===O.endTime),y=this.messages.findLastIndex(k=>k.ts===O.endTime);this.messages.splice(S,y-S+1,...Me)}const W=this.messages[this.messages.length-1];return W&&!W.relatedQuesion&&(W.relatedQuesion=(re=this.data)==null?void 0:re.lastRelatedQuestion),this.event.emit("history:moreloaded",Me),Ii.log("history:loaded",this.messages),this.event.emit("history:loaded",this.messages),this._loadingMessages=!1,Me}else{const de=new Error("session id is not defined");return Ii.error(de),this.event.emit("error",de),!1}})}rename(O){return Dt(this,null,function*(){if(!this._id)throw Error("session is not created yet");if(O.trim()==="")throw Error("name is empty");return this.data=yield this.cvforceApi.patchSessionsId(this.applicationId,this._id,{name:O}),this.event.emit("data:updated",this.data),this.event.emit("data:updated:name",{name:O}),!0})}pushMessage(O){return Dt(this,null,function*(){this.messages.push(O),Ii.log("history:add",O),this.event.emit("history:add",O),this.event.emit("message:new",O),this.event.emit("message:updated",O)})}reloadSessionInfo(){if(!this._id)throw Error("session is not created yet");return this._dataLoading=!0,this.cvforceApi.getSession(this.applicationId,this._id).then(O=>Dt(this,null,function*(){if(this.data=O,!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(()=>Dt(this,null,function*(){yield this.fetchMessages(),this._dataLoaded=!0}))}reload(){return Dt(this,null,function*(){return yield this.reloadSessionInfo(),this.socket?(this.inactivate(!0),this.activate()):this.activate()})}delete(){return Dt(this,null,function*(){if(!this.id){const O=new Error("session id is not defined");return Ii.error(O),this.event.emit("error",O),!1}return this.event.emit("data:deleting"),yield this.cvforceApi.delSessionsId(this.applicationId,this.id),this.event.emit("data:deleted"),this.destroy()})}activate(){return Dt(this,null,function*(){if(!this._id)throw Error("session is not avalible. id is undefined");const O=this._id;!this._dataLoading&&!this._dataLoaded&&(this._dataLoading=!0,yield this.cvforceApi.getSession(this.applicationId,O).then(H=>Dt(this,null,function*(){this.data=H,this._promptVariables=yield this.cvforceApi.getApplicationIdSessionIdPromptVariables(this.applicationId,O),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(O=!1){return console.log("[inactivate]"),console.log("last message: ",this.messages[this.messages.length-1]),this.socket?this._frozen?(O||(this.inactivating=!0),console.log("this._frozen: ",this._frozen),console.log("immediately: ",O),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(re){return Dt(this,arguments,function*(O,H={stream:!1}){var M;const{stream:de=!1,referenceFirst:Me=!1}=H,W=O.uuid||rl(),S=((M=O.text)==null?void 0:M.trim())||"",y=O.fileIds;if(!S&&!(y!=null&&y.length)){const s=new Error("failed at sending empty content");return Ii.error(s),this.event.emit("error",s),!1}if(!this._id){const s=new Error("session id is not defined");return Ii.error(s),this.event.emit("error",s),!1}if(this.frozen){const s=new Error("session is frozen");return Ii.error(s),this.event.emit("error",s),!1}this.frozen=!0,this._stopAnswer=!1;const k={sessionId:this._id,role:2,content:S,messageId:W,reference:[],searchReference:[],messageTime:""},w={content:S,stream:de,requestId:W,fileIds:y,referenceFirst:Me};this.pushMessage(k),this.event.emit("question:content",S);const g=s=>Dt(this,null,function*(){if(s.role!==xi.Robot)return;switch(this.removeEventListener("answer:finish",g),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=nn(nn({},s),p),s.isLoading=!1;let c=this.messages[this.messages.length-1];if(c&&c.role===xi.Robot){const l=nn(nn({},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",g),this.sendQuestion(w,Gn(nn({},H),{stream:de,referenceFirst:Me})),k})}getRelatedQuesion(O){return Dt(this,null,function*(){var Me;if(!O.content||O.isSensitive||O.code!==200)return O;this.event.emit("message:relatedQuesion:loading",O);const H=yield this.cvforceApi.postGeneques({content:O.content}).catch(W=>null);if(!H){const W=[],S=Gn(nn({},O),{relatedQuesion:W,index:-3,isLoading:!1});return this.event.emit("message:relatedQuesion:loaded",{relatedQuesion:W}),S}const re=(Me=H.content)==null?void 0:Me.split("*").map(sp).map(ap).filter(W=>!!W),de=Gn(nn({},O),{relatedQuesion:re,index:-3,isLoading:!1});return this.event.emit("message:relatedQuesion:loaded",de),this._id&&this.cvforceApi.patchSessionsId(this._applicationId,this._id,{lastRelatedQuestion:re}),de})}fillMessageReference(O){return Dt(this,null,function*(){var H;return(H=O.reference)==null||H.forEach((re,de)=>Dt(this,null,function*(){const Me=yield this.cvforceApi.getKnowledgeIdFileId(re.knowledgeId,re.docId);O.reference[de]=nn(nn({},re),Me)})),O})}answerAgain(){return Dt(this,arguments,function*(O={stream:!1}){const H=this.messages[this.messages.length-1];if(!H)throw Error("message list is empty");this._stopAnswer=!1;const{stream:re=!1}=O;let de;H.role!==xi.User&&(de=O.oldMessageId||H.messageId,this.messages.splice(this.messages.length-1,1),this.event.emit("message:remove",H),this.event.emit("history:remove",H));const Me=this.messages[this.messages.length-1],W={content:Me.content,fileIds:Me.fileIds,requestId:Me.messageId,stream:re,oldMessageId:de},S=y=>Dt(this,null,function*(){if(console.log("handleAnswerFinish",y),y.role===xi.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 k=yield this.getRelatedQuesion(y);this.event.emit("message:updated",k),this.removeEventListener("message:content",S)}});this.addEventListener("message:content",S),this.sendQuestion(W,Gn(nn({},O),{stream:re}))})}setTop(O){return Dt(this,null,function*(){if(!this._id)throw Error("session is not avalible. id is undefined");this.data=yield this.cvforceApi.patchSessionsId(this._applicationId,this._id,{top:O}),this.event.emit("data:updated",this.data),this.event.emit("data:updated:top",{top:O})})}suspend(){var re;this.stopAnswer(),this.frozen=!1,this._stopAnswer=!0;let O=this.messages[this.messages.length-1];const H={messageId:rl(),isLoading:!1,index:-2,messageTime:ll(new Date).format("YYYY-MM-DD HH:ss:mm"),content:"",role:xi.System,sessionId:"",reference:[],searchReference:[]};if(O&&!O.messageId){if(O.index===-2)return;if(O.actions){const de=O.actions[((re=O.actions)==null?void 0:re.length)-1];if(de){const Me=de[de.length-1];if(Me&&(Me.type==="BEFORE_CALL"||Me.type==="FUNCTION_CALL")){const{pluginName:W,pluginCode:S,funcCode:y,funcName:k}=Me.data;de.push({data:{pluginName:W,pluginCode:S,funcCode:y,funcName:k,step:Me.data.step+1},type:"ABORT"}),this.event.emit("message:action",{messageId:O.messageId,action:de})}}}O=nn(nn({},O),H),this.event.emit("message:content",O),this.event.emit("message:updated",O)}else this.pushMessage(H),this.event.emit("message:content",H);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 O;return this._ready=!1,this.event.removeAllListeners(),console.log("[destroy] socket disconnect",this._id),(O=this.socket)==null||O.disconnect(),this.socket=null,this.event.emit("destroy",{applicationId:this._applicationId,sessionId:this._id}),this._id||""}}const Qi=new Ui("[AgentClient] ");class vd extends Ca{constructor(O,H="",re,de){super(O,H,re,de)}prepareConnection(){return new Promise(O=>Dt(this,null,function*(){this.socket&&O(!0);const H={version:"1.0",stream:"false",appId:this._applicationId,sessionId:this._id,Authorization:`${this.token}`,userMode:exports.configuration.debug?Sr.Debug:Sr.Normal},re=new URL(exports.configuration.apiRoot),de=yield es(re.origin,{path:re.pathname.replace("api","socketio")+"/copilot",query:H,transports:["websocket"]});de.on("connect",()=>{Qi.log("socket:connect"),this.event.emit("socket:connect"),de.emit("init")}),de.on("disconnect",()=>{Qi.log("socket:disconnect"),this.event.emit("socket:disconnect")}),de.on("ready",Me=>{if(Me.code===200){Qi.log("ready");const W=exports.configuration.debug?Sr.Debug:Sr.Normal;W===Sr.Debug&&W!==Me.userMode&&console.warn(Ar.UserModeError),this._ready||(this._ready=!0,this.event.emit("ready")),this.frozen=!1,O(!0)}else{this._ready&&(this._ready=!1);const W=new Error(Ar.SocketConnectionFailed);Qi.error("error",W),this.event.emit("error",W),O(!1)}}),de.on("action",(Me,W)=>Dt(this,null,function*(){if(this._stopAnswer||!this._id)return;const{type:S,data:{runnerIsClient:y,pluginCode:k,funcCode:w,parameters:g,requestBody:M}}=Me,s=this.messages[this.messages.length-1];if(!s.messageId)s.actions||(s.actions=[]),s.actions[Me.data.step-1]||(s.actions[Me.data.step-1]=[]),s.actions[Me.data.step-1].push(Me),this.event.emit("message:action",{messageId:s.messageId,action:Me}),this.event.emit("message:updated",s);else{const p={messageId:"",content:"",role:xi.Robot,sessionId:this._id,reference:[],searchReference:[],isLoading:!0,messageTime:"",actions:[[Me]]};this.pushMessage(p),this.event.emit("message:action",{messageId:p.messageId,action:Me})}if(this.inactivating){const p=new Error(Ar.Inactive);Qi.warn("error",p),this.event.emit("error",p)}else if(S==="FUNCTION_CALL"&&y){if(Qi.log(`calling function ${w} of plugin ${k} with argument:
|
|
124
|
+
${JSON.stringify(g)}`),!exports.configuration.plugins[k]){W({code:404,message:"对不起,没有找到插件。"});return}const p=exports.configuration.plugins[k].functions[w];typeof p!="function"&&W({code:404,message:"对不起,没有找到插件方法。"});let c=g==null?void 0:g.query;try{c=JSON.parse(g==null?void 0:g.query)}catch(l){}p(c,(...l)=>{this._stopAnswer||W(...l)})}})),de.on("answer",Me=>{if(!this._stopAnswer)if(Me.data.code!==200&&(Me.data.index=-1,this.event.emit("error",Me.data)),Me.data.index===-1){let W=this.messages[this.messages.length-1];if(W&&!W.messageId)W=nn(nn({},W),Me.data),this.event.emit("message:content",W),this.event.emit("message:updated",W),this.event.emit("answer:finish",W);else{const S=nn({messageId:"",content:"",role:xi.Robot,sessionId:this._id,reference:[],searchReference:[],isLoading:!1,messageTime:"",actions:[]},Me.data);this.event.emit("message:content",S),this.pushMessage(S),this.event.emit("answer:finish",S)}}else{let W=this.messages[this.messages.length-1];W&&!W.messageId?(W=nn(nn({},W),Me.data),this.messages[this.messages.length-1]=W,this.event.emit("message:content",W),this.event.emit("message:updated",W)):(this.pushMessage(Me.data),this.event.emit("message:content",Me.data))}}),de.on("reference",Me=>Dt(this,null,function*(){if(this._stopAnswer)return;if(!this._id){const g=new Error(Ar.IdUndefined);Qi.error(g),this.event.emit("error",g),this.frozen=!1;return}const{type:W,data:S,requestId:y}=Me,k=this.messages.findIndex(g=>g.messageId===y&&g.role===xi.User);if(k<0)return;const w=k+1;if(w>=this.messages.length){const g={messageId:"",content:"",role:xi.Robot,sessionId:this._id,reference:[],searchReference:[],isLoading:!0,messageTime:"",actions:[]};this.pushMessage(g)}W==="KG"?(this.messages[w]=Gn(nn({},this.messages[w]),{reference:S.knowledgeReference}),yield this.fillMessageReference(this.messages[w]),this.event.emit("message:reference",S.knowledgeReference),this.event.emit("message:updated",this.messages[w])):W==="WEB_SEARCH"&&(this.messages[w]=Gn(nn({},this.messages[w]),{searchReference:S.knowledgeReference}),this.event.emit("message:searchreference",S.searchReference),this.event.emit("message:updated",this.messages[w]))})),this.socket=de,de.open()}))}sendQuestion(O,H){return Dt(this,null,function*(){var re,de;if(!this.active){if(yield this.activate(),!this.socket){const Me=new Error(Ar.SocketConnectionFailed);return Qi.warn("error",Me),this.event.emit("error",Me),!1}(re=this.socket)==null||re.emit("question",O)}(de=this.socket)==null||de.emit("question",O)})}stopAnswer(){var O;(O=this.socket)==null||O.emit("stop_answer")}}function bd(ie,O){return Dt(this,null,function*(){const H=ie.getReader();let re;for(;!(re=yield H.read()).done;)O(re.value)})}function wd(ie){let O,H,re,de=!1,Me;return function(S){O===void 0?(O=S,H=0,re=-1,Me=!1):O=Md(O,S);const y=O.length;let k=0;for(;H<y;){de&&(O[H]===10&&(k=++H),de=!1);let w=-1;for(;H<y&&w===-1;++H)switch(O[H]){case 58:re===-1&&(re=H-k);break;case 13:de=!1,H+4<y&&O[H+1]===10&&O[H+2]!==13&&O[H-1]!==10&&O[H-2]!==13&&(Me=!0);case 10:w=H;break}if(w===-1)break;ie(O.subarray(k,w),re,Me),k=H,re=-1,Me=!1}k===y?O=void 0:k!==0&&(O=O.subarray(k),H-=k)}}function xd(ie,O,H){let re=ol();const de=new TextDecoder;return function(W,S,y){if(W.length===0)H==null||H(re),re=ol();else if(S>0){const k=de.decode(W.subarray(0,S)),w=S+(W[S+1]===32?2:1);let g=de.decode(W.subarray(w));switch(y&&(g+=`
|
|
125
|
+
`),k){case"data":re.data=re.data?re.data+`
|
|
126
|
+
`+g:g;break;case"event":re.event=g;break;case"id":ie(re.id=g);break;case"retry":const M=parseInt(g,10);isNaN(M)||O(re.retry=M);break}}}}function Md(ie,O){const H=new Uint8Array(ie.length+O.length);return H.set(ie),H.set(O,ie.length),H}function ol(){return{data:"",event:"",id:"",retry:void 0}}const ka="text/event-stream",_d=1e3,sl="last-event-id";function al(ie,w){var g=w,{signal:O,headers:H,onopen:re,onmessage:de,onclose:Me,onerror:W,openWhenHidden:S,fetch:y}=g,k=qc(g,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((M,s)=>{const p=nn({},H);p.accept||(p.accept=ka);let c;function l(){c.abort(),document.hidden||v()}S||document.addEventListener("visibilitychange",l);let f=_d,m=0;function h(){document.removeEventListener("visibilitychange",l),window.clearTimeout(m),c.abort()}O==null||O.addEventListener("abort",()=>{h(),M()});const u=y!=null?y:window.fetch,b=re!=null?re:Ed;function v(){return Dt(this,null,function*(){var _;c=new AbortController;try{const A=yield u(ie,Gn(nn({},k),{headers:p,signal:c.signal}));yield b(A),yield bd(A.body,wd(xd(x=>{x?p[sl]=x:delete p[sl]},x=>{f=x},de))),Me==null||Me(),h(),M()}catch(A){if(!c.signal.aborted)try{const x=(_=W==null?void 0:W(A))!=null?_:f;window.clearTimeout(m),m=window.setTimeout(v,x)}catch(x){h(),s(x)}}})}v()})}function Ed(ie){const O=ie.headers.get("content-type");if(!(O!=null&&O.startsWith(ka)))throw new Error(`Expected content-type to be ${ka}, Actual: ${O}`)}const ul=new Ui("[DialogClient] ");class kd extends Ca{constructor(H,re="",de,Me){super(H,re,de,Me);un(this,"ctrl",new AbortController)}prepareConnection(){return new Promise(H=>Dt(this,null,function*(){this._ready||(this._ready=!0,this.event.emit("ready")),this.frozen=!1,H(!0)}))}postChatV2EventSource(H,re,de,Me,W,S){return Dt(this,null,function*(){const y={code:0,content:"",role:ya.Robot,sessionId:"",reference:[],searchReference:[],messageTime:"",llmModel:"",comment:{isAgree:0},isReplying:!1},k=Gn(nn({},de),{stream:!0});al(`${exports.configuration.apiRoot}/chat/v2/chat?applicationId=${H}&sessionId=${re}`,{method:"POST",headers:{Authorization:`Bearer ${this.token}`,"Content-Type":"application/json"},body:JSON.stringify(k),openWhenHidden:!0,signal:Me,onopen(w){return w.ok&&W!=null&&W.onopen&&W.onopen(),Promise.resolve()},onmessage(w){if(!w.data.includes('{"code": ')){let M={};try{M=JSON.parse(w.data)}catch(p){}(M==null?void 0:M.mtype)==="search"?y.searchReference.push(M):y.content=y.content+w.data;const s={content:y.content,role:1,reference:y.reference,searchReference:y.searchReference,messageId:y.messageId,sessionId:re,messageTime:ll(new Date).format("YYYY-MM-DD HH:mm:ss"),comment:{isAgree:0},isReplying:!0};return(W==null?void 0:W.onmessage)&&W.onmessage(s)}const g=JSON.parse(w.data);if(y.reference=g.data.reference,y.searchReference=g.data.searchReference,y.messageTime=g.data.messageTime,y.messageId=g.data.messageId,y.llmModel=g.data.llmModel,y.content=g.data.content,y.code=g.code,g.code===200){const M={code:y.code,content:y.content,role:1,reference:y.reference,searchReference:y.searchReference,messageId:y.messageId,sessionId:re,messageTime:y.messageTime,isReplying:!0};W!=null&&W.onmessage&&W.onmessage(M)}else return S&&S({code:g.code,message:g.message})},onerror(){W!=null&&W.onerror&&W.onerror()},onclose(){const w={code:y.code,content:y.content,role:1,reference:y.reference,searchReference:y.searchReference,messageId:y.messageId,sessionId:re,messageTime:y.messageTime,comment:{isAgree:0},isReplying:!1,index:-1};W!=null&&W.onclose&&W.onclose(w)}})})}postChatV3EventSource(H,re,de,Me,W,S){return Dt(this,null,function*(){const y={code:0,content:"",role:ya.Robot,sessionId:"",reference:[],searchReference:[],messageTime:"",llmModel:"",comment:{isAgree:0},isReplying:!1,reasoningContent:"",thinkingSecs:"",thinkingStatus:""},k=Gn(nn({},de),{stream:!0});al(`${exports.configuration.apiRoot}/chat/v3/chat?applicationId=${H}&sessionId=${re}`,{method:"POST",headers:{Authorization:`Bearer ${this.token}`,"Content-Type":"application/json"},body:JSON.stringify(k),openWhenHidden:!0,signal:Me,onopen(w){return w.ok&&W!=null&&W.onopen&&W.onopen(),Promise.resolve()},onmessage(w){if(!w.data&&!w.event&&!w.id&&!w.retry)return;let g={};try{g=JSON.parse(w.data)}catch(p){console.error("parse eventData to JSON failed. ",w.data)}if(g.code!==200)return S&&S({code:g.code,message:g.message});const M=g.data.type,s=g.data.payload;if(y.isReplying=!0,M==="search"&&y.searchReference.push(s),M==="thinking"){y.thinkingStatus="start";const c=s.choices[0];y.reasoningContent=y.reasoningContent+c.delta.reasoningContent}if(M==="thinkingOver"){y.thinkingStatus="end";const p=s.thinkingSecs;y.thinkingSecs=p}if(M==="text"){const c=s.choices[0];y.content=y.content+c.delta.content}if(M==="reference"&&(y.reference=s),M==="result"){const p=s.messageId,c=s.llmModel,l=s.messageTime;y.messageId=p,y.llmModel=c,y.messageTime=l,y.sessionId=re}M==="over"?y.index=-1:(y.code=g.code,y.message=g.message),W!=null&&W.onmessage&&W.onmessage(y)},onerror(){W!=null&&W.onerror&&W.onerror()},onclose(){const w=Gn(nn({},y),{isReplying:!1});W!=null&&W.onclose&&W.onclose(w)}})})}sendQuestion(H,re){return Dt(this,null,function*(){var k;const{content:de,fileIds:Me,oldMessageId:W}=H,{stream:S,referenceFirst:y}=re;if(this.active||(yield this.activate()),this._id){let w={content:de,fileIds:Me,referenceFirst:y,oldMessageId:W,promptVariables:this.promptVariables.reduce((g,M)=>Gn(nn({},g),{[M.key]:M.value}),{}),knowledges:(k=this.knowledges)==null?void 0:k.map(g=>g.id)};this.postChatV3EventSource(this._applicationId,this._id,w,this.ctrl.signal,{onopen:()=>{ul.log("open",this.ctrl)},onmessage:g=>{if(this._stopAnswer)return;let M=this.messages[this.messages.length-1];M&&M.role===xi.Robot?(M=nn(nn({},M),g),this.messages[this.messages.length-1]=M,this.event.emit("message:content",M),this.event.emit("message:updated",M)):(this.pushMessage(g),this.event.emit("message:content",g))},onclose:g=>Dt(this,null,function*(){this._stopAnswer||(ul.log(g,"onclose"),this.event.emit("answer:finish",g),console.log("onclose",g))}),onerror:()=>{this._stopAnswer||(this.event.emit("message:error",""),this.frozen=!1)}})}})}stopAnswer(){this.ctrl.abort()}}const Sd=new Ui("[BotClient] ");class Ad{constructor(O,H,re=!0){un(this,"event",new Nl);un(this,"cvforceApi");un(this,"_applicationId");un(this,"_application",null);un(this,"_sessions",[]);un(this,"_activeSession");un(this,"_ready",!1);un(this,"_questionContextMaxLength",4e3);un(this,"_promptVariables",[]);if(this._token=O,this.lazyload=re,fl(H),this._applicationId=ts(O).rid||exports.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(O){this._ready=O}get questionContextMaxLength(){return this.checkReady(),this._questionContextMaxLength}get promptVariables(){return this.checkReady(),this._promptVariables}get knowledges(){var O;return this.checkReady(),(O=this._application)==null?void 0:O.arrange[0].knowledges}get sessions(){return this.checkReady(),this._sessions}set sessions(O){this.checkReady(),this._sessions=O,this.event.emit("sessions:updated",O)}loadApplication(){return Dt(this,null,function*(){var H,re;this._application=yield this.cvforceApi.getApplicationId(this._applicationId);const O=(re=(H=this._application.arrange)==null?void 0:H[0])==null?void 0:re.llmModel;return O&&(this._questionContextMaxLength=yield this.cvforceApi.getBaseModel(O).then(de=>de.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:yl(exports.configuration.apiRoot,this.token,(O,H)=>Sd.error(H))}get token(){return this._token}set token(O){this.checkReady(),this._token=O,this.ready=!1;const H=ts(O).rid;this._applicationId!==H&&(this._applicationId=H,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 O;return this.checkReady(),((O=this._activeSession)==null?void 0:O.id)||""}set activeSession(O){this.checkReady(),this.loadSession(O).then(H=>{this._activeSession&&this._activeSession.id!==O&&this._activeSession.inactivate(),this._activeSession=H})}createSession(O,H,re,de){return Dt(this,null,function*(){return new Promise((Me,W)=>{const S=y=>Dt(this,null,function*(){if(y===va.Agent)Me(new vd(O,H,re,de));else if(y===va.Dialog)Me(new kd(O,H,re,de));else throw Error(`不支持的应用类型:${y}`)});if(this.ready){if(!this._application)throw Error("client is not ready");S(this._application.type)}else this.event.on("ready",()=>{if(!this._application)throw Error("_application is null");S(this._application.type)},!0)})})}getSessions(O){return Dt(this,null,function*(){return new Promise((H,re)=>{const de=()=>this.cvforceApi.listSessions(this._applicationId,O).then(Me=>{const W=[];return Me.forEach(S=>Dt(this,null,function*(){const y=this._sessions.find(k=>S.id===k.id);if(y)y.data=S,W.push(y);else{const k=yield this.createSession(this.token,S.id,S,this.lazyload);W.push(k)}})),this.sessions=W,W});if(this.ready){if(!this._application)throw Error("_application is null");H(de())}else this.event.on("ready",()=>{if(!this._application)throw Error("_application is null");H(de())},!0)})})}loadSession(O="",H){return Dt(this,null,function*(){this.checkReady();let re=this.sessions.find(de=>de.id===O);if(re||(re=yield this.createSession(this.token,O,H)),this._activeSession){if(this._activeSession===re)return re;this._activeSession.inactivate()}return re.id?(re.activate(),this._activeSession=re):re.addEventListener("data:loaded",()=>{re==null||re.activate(),this._activeSession=re}),re})}reload(){return this.loadApplication().then(()=>{this.event.emit("ready")})}reloadSession(O){return Dt(this,null,function*(){yield this.reload();let H=O?this._sessions.find(re=>re.id===O):this._activeSession;if(!H){console.warn("reloadSession session failed.");return}return yield H.reload(),H})}setTop(O,H,re="top_time desc, sort_status desc, updated_at desc"){return Dt(this,null,function*(){let de=O?this._sessions.find(Me=>Me.id===O):this._activeSession;if(!de){console.warn("setTop session failed.");return}return yield de.setTop(H),this.getSessions({order:re})})}addEventListener(O,H,re=!1){if(typeof H!="function")throw Error("event listener is not a function");if(re){this.event.once(O,H);return}this.event.on(O,H)}removeEventListener(O,H){this.event.off(O,H)}removeSession(O,H){return Dt(this,null,function*(){this.checkReady();let re=-1;if(typeof O=="string"?re=this._sessions.findIndex(de=>de.id===O):re=this._sessions.findIndex(de=>de===O),re>-1){const de=this._sessions[re];H&&(yield de.delete()),this._sessions.splice(re,1)}else console.warn("session delete failed, session is not exist.")})}clean(){this._sessions.forEach(O=>O.destroy()),this.sessions=[]}}class Id{constructor(O,H={},re){un(this,"code");un(this,"description","");un(this,"loaded",!1);un(this,"functions",{});this.code=O,H&&(this.functions=H)}fetchData(){this.description="描述",this.loaded=!0}checkFunctions(){}}exports.AgentPlugin=Id;exports.BotClient=Ad;exports.Session=Ca;exports.configure=fl;
|