UNPKG

deadem

Version:

JavaScript (Node.js & Browsers) parser for Deadlock (Valve Source 2 Engine) demo/replay files

11 lines 894 kB
(function(pe,A){typeof exports=="object"&&typeof module<"u"?A(exports):typeof define=="function"&&define.amd?define(["exports"],A):(pe=typeof globalThis<"u"?globalThis:pe||self,A(pe.deadem={}))})(this,function(pe){"use strict";var Of=Object.defineProperty;var vf=(pe,A,ut)=>A in pe?Of(pe,A,{enumerable:!0,configurable:!0,writable:!0,value:ut}):pe[A]=ut;var zt=(pe,A,ut)=>vf(pe,typeof A!="symbol"?A+"":A,ut);class A{static isTrue(e,t="Assertion failed"){if(!e)throw new Error(t)}}class ut extends ReadableStream{constructor(e,t={}){A.isTrue(e instanceof ys),super({start(i){e.subscribe(n=>{n===null?i.close():i.enqueue(n)})}},t),this._agent=e}start(){this._agent.start()}stop(){this._agent.stop()}}class Re{constructor(e){this._logger=e}debug(...e){return this._logger.debug(...e)}error(...e){return this._logger.error(...e)}info(...e){return this._logger.info(...e)}trace(...e){return this._logger.trace(...e)}warn(...e){return this._logger.warn(...e)}static get CONSOLE_DEBUG(){return ca}static get CONSOLE_INFO(){return _a}static get CONSOLE_TRACE(){return ya}static get CONSOLE_WARN(){return fa}static get NOOP(){return Ea}}const ca=new Re({debug:Tn,error:Yt,info:Gi,trace:we,warn:$t}),_a=new Re({debug:we,error:Yt,info:Gi,trace:we,warn:$t}),ya=new Re({debug:Tn,error:Yt,info:Gi,trace:ha,warn:$t}),fa=new Re({debug:we,error:Yt,info:we,trace:we,warn:$t}),Ea=new Re({debug:we,error:we,info:we,trace:we,warn:we}),Nt=(r,e)=>`\x1B[${r}m[${new Date().toISOString()}] [${e}]\x1B[0m -`;function Tn(...r){console.debug(Nt(34,"DEBUG"),...r)}function Yt(...r){console.error(Nt(31,"ERROR"),...r)}function Gi(...r){console.info(Nt(32,"INFO"),...r)}function ha(...r){console.trace(Nt(37,"TRACE"),...r)}function $t(...r){console.warn(Nt(33,"WARN"),...r)}function we(){}class it{constructor(){this._fulfilled=!1,this._rejected=!1,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}get fulfilled(){return this._fulfilled}get promise(){return this._promise}get rejected(){return this._rejected}resolve(...e){this._fulfilled=!0,this._resolve(...e)}reject(...e){this._rejected=!0,this._reject(...e)}}const ga=new Map;class Ge{constructor(e,t){A.isTrue(typeof e=="string"),A.isTrue(typeof t=="string"),this._code=e,this._endpoint=t,ga.set(e,this)}get code(){return this._code}get endpoint(){return this._endpoint}static get DELTA(){return Ca}static get FULL(){return Sa}static get START(){return ma}}const Ca=new Ge("DELTA","delta"),Sa=new Ge("FULL","full"),ma=new Ge("START","start");function Mn(r,e){return function(){return r.apply(e,arguments)}}const{toString:Ta}=Object.prototype,{getPrototypeOf:Bi}=Object,{iterator:Jt,toStringTag:An}=Symbol,Qt=(r=>e=>{const t=Ta.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ue=r=>(r=r.toLowerCase(),e=>Qt(e)===r),Xt=r=>e=>typeof e===r,{isArray:ct}=Array,bt=Xt("undefined");function Ot(r){return r!==null&&!bt(r)&&r.constructor!==null&&!bt(r.constructor)&&Oe(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const In=Ue("ArrayBuffer");function Ma(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&In(r.buffer),e}const Aa=Xt("string"),Oe=Xt("function"),Rn=Xt("number"),vt=r=>r!==null&&typeof r=="object",Ia=r=>r===!0||r===!1,Zt=r=>{if(Qt(r)!=="object")return!1;const e=Bi(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(An in r)&&!(Jt in r)},Ra=r=>{if(!vt(r)||Ot(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},Na=Ue("Date"),ba=Ue("File"),Oa=Ue("Blob"),va=Ue("FileList"),Da=r=>vt(r)&&Oe(r.pipe),Pa=r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||Oe(r.append)&&((e=Qt(r))==="formdata"||e==="object"&&Oe(r.toString)&&r.toString()==="[object FormData]"))},ka=Ue("URLSearchParams"),[wa,Ua,La,Ga]=["ReadableStream","Request","Response","Headers"].map(Ue),Ba=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Dt(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let i,n;if(typeof r!="object"&&(r=[r]),ct(r))for(i=0,n=r.length;i<n;i++)e.call(null,r[i],i,r);else{if(Ot(r))return;const o=t?Object.getOwnPropertyNames(r):Object.keys(r),s=o.length;let a;for(i=0;i<s;i++)a=o[i],e.call(null,r[a],a,r)}}function Nn(r,e){if(Ot(r))return null;e=e.toLowerCase();const t=Object.keys(r);let i=t.length,n;for(;i-- >0;)if(n=t[i],e===n.toLowerCase())return n;return null}const rt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,bn=r=>!bt(r)&&r!==rt;function Vi(){const{caseless:r}=bn(this)&&this||{},e={},t=(i,n)=>{const o=r&&Nn(e,n)||n;Zt(e[o])&&Zt(i)?e[o]=Vi(e[o],i):Zt(i)?e[o]=Vi({},i):ct(i)?e[o]=i.slice():e[o]=i};for(let i=0,n=arguments.length;i<n;i++)arguments[i]&&Dt(arguments[i],t);return e}const Va=(r,e,t,{allOwnKeys:i}={})=>(Dt(e,(n,o)=>{t&&Oe(n)?r[o]=Mn(n,t):r[o]=n},{allOwnKeys:i}),r),Fa=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),xa=(r,e,t,i)=>{r.prototype=Object.create(e.prototype,i),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},Ha=(r,e,t,i)=>{let n,o,s;const a={};if(e=e||{},r==null)return e;do{for(n=Object.getOwnPropertyNames(r),o=n.length;o-- >0;)s=n[o],(!i||i(s,r,e))&&!a[s]&&(e[s]=r[s],a[s]=!0);r=t!==!1&&Bi(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},Ka=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;const i=r.indexOf(e,t);return i!==-1&&i===t},Wa=r=>{if(!r)return null;if(ct(r))return r;let e=r.length;if(!Rn(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},ja=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&Bi(Uint8Array)),qa=(r,e)=>{const i=(r&&r[Jt]).call(r);let n;for(;(n=i.next())&&!n.done;){const o=n.value;e.call(r,o[0],o[1])}},za=(r,e)=>{let t;const i=[];for(;(t=r.exec(e))!==null;)i.push(t);return i},Ya=Ue("HTMLFormElement"),$a=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,i,n){return i.toUpperCase()+n}),On=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Ja=Ue("RegExp"),vn=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),i={};Dt(t,(n,o)=>{let s;(s=e(n,o,r))!==!1&&(i[o]=s||n)}),Object.defineProperties(r,i)},Qa=r=>{vn(r,(e,t)=>{if(Oe(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const i=r[t];if(Oe(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Xa=(r,e)=>{const t={},i=n=>{n.forEach(o=>{t[o]=!0})};return ct(r)?i(r):i(String(r).split(e)),t},Za=()=>{},ed=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e;function td(r){return!!(r&&Oe(r.append)&&r[An]==="FormData"&&r[Jt])}const id=r=>{const e=new Array(10),t=(i,n)=>{if(vt(i)){if(e.indexOf(i)>=0)return;if(Ot(i))return i;if(!("toJSON"in i)){e[n]=i;const o=ct(i)?[]:{};return Dt(i,(s,a)=>{const p=t(s,n+1);!bt(p)&&(o[a]=p)}),e[n]=void 0,o}}return i};return t(r,0)},rd=Ue("AsyncFunction"),nd=r=>r&&(vt(r)||Oe(r))&&Oe(r.then)&&Oe(r.catch),Dn=((r,e)=>r?setImmediate:e?((t,i)=>(rt.addEventListener("message",({source:n,data:o})=>{n===rt&&o===t&&i.length&&i.shift()()},!1),n=>{i.push(n),rt.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Oe(rt.postMessage)),sd=typeof queueMicrotask<"u"?queueMicrotask.bind(rt):typeof process<"u"&&process.nextTick||Dn,b={isArray:ct,isArrayBuffer:In,isBuffer:Ot,isFormData:Pa,isArrayBufferView:Ma,isString:Aa,isNumber:Rn,isBoolean:Ia,isObject:vt,isPlainObject:Zt,isEmptyObject:Ra,isReadableStream:wa,isRequest:Ua,isResponse:La,isHeaders:Ga,isUndefined:bt,isDate:Na,isFile:ba,isBlob:Oa,isRegExp:Ja,isFunction:Oe,isStream:Da,isURLSearchParams:ka,isTypedArray:ja,isFileList:va,forEach:Dt,merge:Vi,extend:Va,trim:Ba,stripBOM:Fa,inherits:xa,toFlatObject:Ha,kindOf:Qt,kindOfTest:Ue,endsWith:Ka,toArray:Wa,forEachEntry:qa,matchAll:za,isHTMLForm:Ya,hasOwnProperty:On,hasOwnProp:On,reduceDescriptors:vn,freezeMethods:Qa,toObjectSet:Xa,toCamelCase:$a,noop:Za,toFiniteNumber:ed,findKey:Nn,global:rt,isContextDefined:bn,isSpecCompliantForm:td,toJSONObject:id,isAsyncFn:rd,isThenable:nd,setImmediate:Dn,asap:sd,isIterable:r=>r!=null&&Oe(r[Jt])};function z(r,e,t,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),i&&(this.request=i),n&&(this.response=n,this.status=n.status?n.status:null)}b.inherits(z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:b.toJSONObject(this.config),code:this.code,status:this.status}}});const Pn=z.prototype,kn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{kn[r]={value:r}}),Object.defineProperties(z,kn),Object.defineProperty(Pn,"isAxiosError",{value:!0}),z.from=(r,e,t,i,n,o)=>{const s=Object.create(Pn);return b.toFlatObject(r,s,function(p){return p!==Error.prototype},a=>a!=="isAxiosError"),z.call(s,r.message,e,t,i,n),s.cause=r,s.name=r.name,o&&Object.assign(s,o),s};const od=null;function Fi(r){return b.isPlainObject(r)||b.isArray(r)}function wn(r){return b.endsWith(r,"[]")?r.slice(0,-2):r}function Un(r,e,t){return r?r.concat(e).map(function(n,o){return n=wn(n),!t&&o?"["+n+"]":n}).join(t?".":""):e}function ad(r){return b.isArray(r)&&!r.some(Fi)}const dd=b.toFlatObject(b,{},null,function(e){return/^is[A-Z]/.test(e)});function ei(r,e,t){if(!b.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=b.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,S){return!b.isUndefined(S[g])});const i=t.metaTokens,n=t.visitor||_,o=t.dots,s=t.indexes,p=(t.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(e);if(!b.isFunction(n))throw new TypeError("visitor must be a function");function d(f){if(f===null)return"";if(b.isDate(f))return f.toISOString();if(b.isBoolean(f))return f.toString();if(!p&&b.isBlob(f))throw new z("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(f)||b.isTypedArray(f)?p&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function _(f,g,S){let T=f;if(f&&!S&&typeof f=="object"){if(b.endsWith(g,"{}"))g=i?g:g.slice(0,-2),f=JSON.stringify(f);else if(b.isArray(f)&&ad(f)||(b.isFileList(f)||b.endsWith(g,"[]"))&&(T=b.toArray(f)))return g=wn(g),T.forEach(function(I,w){!(b.isUndefined(I)||I===null)&&e.append(s===!0?Un([g],w,o):s===null?g:g+"[]",d(I))}),!1}return Fi(f)?!0:(e.append(Un(S,g,o),d(f)),!1)}const c=[],E=Object.assign(dd,{defaultVisitor:_,convertValue:d,isVisitable:Fi});function y(f,g){if(!b.isUndefined(f)){if(c.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));c.push(f),b.forEach(f,function(T,m){(!(b.isUndefined(T)||T===null)&&n.call(e,T,b.isString(m)?m.trim():m,g,E))===!0&&y(T,g?g.concat(m):[m])}),c.pop()}}if(!b.isObject(r))throw new TypeError("data must be an object");return y(r),e}function Ln(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function xi(r,e){this._pairs=[],r&&ei(r,this,e)}const Gn=xi.prototype;Gn.append=function(e,t){this._pairs.push([e,t])},Gn.toString=function(e){const t=e?function(i){return e.call(this,i,Ln)}:Ln;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function ld(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bn(r,e,t){if(!e)return r;const i=t&&t.encode||ld;b.isFunction(t)&&(t={serialize:t});const n=t&&t.serialize;let o;if(n?o=n(e,t):o=b.isURLSearchParams(e)?e.toString():new xi(e,t).toString(i),o){const s=r.indexOf("#");s!==-1&&(r=r.slice(0,s)),r+=(r.indexOf("?")===-1?"?":"&")+o}return r}class Vn{constructor(){this.handlers=[]}use(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){b.forEach(this.handlers,function(i){i!==null&&e(i)})}}const Fn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pd={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:xi,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Hi=typeof window<"u"&&typeof document<"u",Ki=typeof navigator=="object"&&navigator||void 0,ud=Hi&&(!Ki||["ReactNative","NativeScript","NS"].indexOf(Ki.product)<0),cd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_d=Hi&&window.location.href||"http://localhost",Me={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Hi,hasStandardBrowserEnv:ud,hasStandardBrowserWebWorkerEnv:cd,navigator:Ki,origin:_d},Symbol.toStringTag,{value:"Module"})),...pd};function yd(r,e){return ei(r,new Me.classes.URLSearchParams,{visitor:function(t,i,n,o){return Me.isNode&&b.isBuffer(t)?(this.append(i,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...e})}function fd(r){return b.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Ed(r){const e={},t=Object.keys(r);let i;const n=t.length;let o;for(i=0;i<n;i++)o=t[i],e[o]=r[o];return e}function xn(r){function e(t,i,n,o){let s=t[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),p=o>=t.length;return s=!s&&b.isArray(n)?n.length:s,p?(b.hasOwnProp(n,s)?n[s]=[n[s],i]:n[s]=i,!a):((!n[s]||!b.isObject(n[s]))&&(n[s]=[]),e(t,i,n[s],o)&&b.isArray(n[s])&&(n[s]=Ed(n[s])),!a)}if(b.isFormData(r)&&b.isFunction(r.entries)){const t={};return b.forEachEntry(r,(i,n)=>{e(fd(i),n,t,0)}),t}return null}function hd(r,e,t){if(b.isString(r))try{return(e||JSON.parse)(r),b.trim(r)}catch(i){if(i.name!=="SyntaxError")throw i}return(t||JSON.stringify)(r)}const Pt={transitional:Fn,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const i=t.getContentType()||"",n=i.indexOf("application/json")>-1,o=b.isObject(e);if(o&&b.isHTMLForm(e)&&(e=new FormData(e)),b.isFormData(e))return n?JSON.stringify(xn(e)):e;if(b.isArrayBuffer(e)||b.isBuffer(e)||b.isStream(e)||b.isFile(e)||b.isBlob(e)||b.isReadableStream(e))return e;if(b.isArrayBufferView(e))return e.buffer;if(b.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1)return yd(e,this.formSerializer).toString();if((a=b.isFileList(e))||i.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return ei(a?{"files[]":e}:e,p&&new p,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),hd(e)):e}],transformResponse:[function(e){const t=this.transitional||Pt.transitional,i=t&&t.forcedJSONParsing,n=this.responseType==="json";if(b.isResponse(e)||b.isReadableStream(e))return e;if(e&&b.isString(e)&&(i&&!this.responseType||n)){const s=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?z.from(a,z.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],r=>{Pt.headers[r]={}});const gd=b.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Cd=r=>{const e={};let t,i,n;return r&&r.split(` `).forEach(function(s){n=s.indexOf(":"),t=s.substring(0,n).trim().toLowerCase(),i=s.substring(n+1).trim(),!(!t||e[t]&&gd[t])&&(t==="set-cookie"?e[t]?e[t].push(i):e[t]=[i]:e[t]=e[t]?e[t]+", "+i:i)}),e},Hn=Symbol("internals");function kt(r){return r&&String(r).trim().toLowerCase()}function ti(r){return r===!1||r==null?r:b.isArray(r)?r.map(ti):String(r)}function Sd(r){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=t.exec(r);)e[i[1]]=i[2];return e}const md=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Wi(r,e,t,i,n){if(b.isFunction(i))return i.call(this,e,t);if(n&&(e=t),!!b.isString(e)){if(b.isString(i))return e.indexOf(i)!==-1;if(b.isRegExp(i))return i.test(e)}}function Td(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,i)=>t.toUpperCase()+i)}function Md(r,e){const t=b.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(r,i+t,{value:function(n,o,s){return this[i].call(this,e,n,o,s)},configurable:!0})})}let ve=class{constructor(e){e&&this.set(e)}set(e,t,i){const n=this;function o(a,p,d){const _=kt(p);if(!_)throw new Error("header name must be a non-empty string");const c=b.findKey(n,_);(!c||n[c]===void 0||d===!0||d===void 0&&n[c]!==!1)&&(n[c||p]=ti(a))}const s=(a,p)=>b.forEach(a,(d,_)=>o(d,_,p));if(b.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(b.isString(e)&&(e=e.trim())&&!md(e))s(Cd(e),t);else if(b.isObject(e)&&b.isIterable(e)){let a={},p,d;for(const _ of e){if(!b.isArray(_))throw TypeError("Object iterator must return a key-value pair");a[d=_[0]]=(p=a[d])?b.isArray(p)?[...p,_[1]]:[p,_[1]]:_[1]}s(a,t)}else e!=null&&o(t,e,i);return this}get(e,t){if(e=kt(e),e){const i=b.findKey(this,e);if(i){const n=this[i];if(!t)return n;if(t===!0)return Sd(n);if(b.isFunction(t))return t.call(this,n,i);if(b.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=kt(e),e){const i=b.findKey(this,e);return!!(i&&this[i]!==void 0&&(!t||Wi(this,this[i],i,t)))}return!1}delete(e,t){const i=this;let n=!1;function o(s){if(s=kt(s),s){const a=b.findKey(i,s);a&&(!t||Wi(i,i[a],a,t))&&(delete i[a],n=!0)}}return b.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let i=t.length,n=!1;for(;i--;){const o=t[i];(!e||Wi(this,this[o],o,e,!0))&&(delete this[o],n=!0)}return n}normalize(e){const t=this,i={};return b.forEach(this,(n,o)=>{const s=b.findKey(i,o);if(s){t[s]=ti(n),delete t[o];return}const a=e?Td(o):String(o).trim();a!==o&&delete t[o],t[a]=ti(n),i[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return b.forEach(this,(i,n)=>{i!=null&&i!==!1&&(t[n]=e&&b.isArray(i)?i.join(", "):i)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const i=new this(e);return t.forEach(n=>i.set(n)),i}static accessor(e){const i=(this[Hn]=this[Hn]={accessors:{}}).accessors,n=this.prototype;function o(s){const a=kt(s);i[a]||(Md(n,s),i[a]=!0)}return b.isArray(e)?e.forEach(o):o(e),this}};ve.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),b.reduceDescriptors(ve.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(i){this[t]=i}}}),b.freezeMethods(ve);function ji(r,e){const t=this||Pt,i=e||t,n=ve.from(i.headers);let o=i.data;return b.forEach(r,function(a){o=a.call(t,o,n.normalize(),e?e.status:void 0)}),n.normalize(),o}function Kn(r){return!!(r&&r.__CANCEL__)}function _t(r,e,t){z.call(this,r??"canceled",z.ERR_CANCELED,e,t),this.name="CanceledError"}b.inherits(_t,z,{__CANCEL__:!0});function Wn(r,e,t){const i=t.config.validateStatus;!t.status||!i||i(t.status)?r(t):e(new z("Request failed with status code "+t.status,[z.ERR_BAD_REQUEST,z.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function Ad(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function Id(r,e){r=r||10;const t=new Array(r),i=new Array(r);let n=0,o=0,s;return e=e!==void 0?e:1e3,function(p){const d=Date.now(),_=i[o];s||(s=d),t[n]=p,i[n]=d;let c=o,E=0;for(;c!==n;)E+=t[c++],c=c%r;if(n=(n+1)%r,n===o&&(o=(o+1)%r),d-s<e)return;const y=_&&d-_;return y?Math.round(E*1e3/y):void 0}}function Rd(r,e){let t=0,i=1e3/e,n,o;const s=(d,_=Date.now())=>{t=_,n=null,o&&(clearTimeout(o),o=null),r(...d)};return[(...d)=>{const _=Date.now(),c=_-t;c>=i?s(d,_):(n=d,o||(o=setTimeout(()=>{o=null,s(n)},i-c)))},()=>n&&s(n)]}const ii=(r,e,t=3)=>{let i=0;const n=Id(50,250);return Rd(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,p=s-i,d=n(p),_=s<=a;i=s;const c={loaded:s,total:a,progress:a?s/a:void 0,bytes:p,rate:d||void 0,estimated:d&&a&&_?(a-s)/d:void 0,event:o,lengthComputable:a!=null,[e?"download":"upload"]:!0};r(c)},t)},jn=(r,e)=>{const t=r!=null;return[i=>e[0]({lengthComputable:t,total:r,loaded:i}),e[1]]},qn=r=>(...e)=>b.asap(()=>r(...e)),Nd=Me.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,Me.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(Me.origin),Me.navigator&&/(msie|trident)/i.test(Me.navigator.userAgent)):()=>!0,bd=Me.hasStandardBrowserEnv?{write(r,e,t,i,n,o){const s=[r+"="+encodeURIComponent(e)];b.isNumber(t)&&s.push("expires="+new Date(t).toGMTString()),b.isString(i)&&s.push("path="+i),b.isString(n)&&s.push("domain="+n),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(r){const e=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Od(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function vd(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function zn(r,e,t){let i=!Od(e);return r&&(i||t==!1)?vd(r,e):e}const Yn=r=>r instanceof ve?{...r}:r;function nt(r,e){e=e||{};const t={};function i(d,_,c,E){return b.isPlainObject(d)&&b.isPlainObject(_)?b.merge.call({caseless:E},d,_):b.isPlainObject(_)?b.merge({},_):b.isArray(_)?_.slice():_}function n(d,_,c,E){if(b.isUndefined(_)){if(!b.isUndefined(d))return i(void 0,d,c,E)}else return i(d,_,c,E)}function o(d,_){if(!b.isUndefined(_))return i(void 0,_)}function s(d,_){if(b.isUndefined(_)){if(!b.isUndefined(d))return i(void 0,d)}else return i(void 0,_)}function a(d,_,c){if(c in e)return i(d,_);if(c in r)return i(void 0,d)}const p={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(d,_,c)=>n(Yn(d),Yn(_),c,!0)};return b.forEach(Object.keys({...r,...e}),function(_){const c=p[_]||n,E=c(r[_],e[_],_);b.isUndefined(E)&&c!==a||(t[_]=E)}),t}const $n=r=>{const e=nt({},r);let{data:t,withXSRFToken:i,xsrfHeaderName:n,xsrfCookieName:o,headers:s,auth:a}=e;e.headers=s=ve.from(s),e.url=Bn(zn(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let p;if(b.isFormData(t)){if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((p=s.getContentType())!==!1){const[d,..._]=p?p.split(";").map(c=>c.trim()).filter(Boolean):[];s.setContentType([d||"multipart/form-data",..._].join("; "))}}if(Me.hasStandardBrowserEnv&&(i&&b.isFunction(i)&&(i=i(e)),i||i!==!1&&Nd(e.url))){const d=n&&o&&bd.read(o);d&&s.set(n,d)}return e},Dd=typeof XMLHttpRequest<"u"&&function(r){return new Promise(function(t,i){const n=$n(r);let o=n.data;const s=ve.from(n.headers).normalize();let{responseType:a,onUploadProgress:p,onDownloadProgress:d}=n,_,c,E,y,f;function g(){y&&y(),f&&f(),n.cancelToken&&n.cancelToken.unsubscribe(_),n.signal&&n.signal.removeEventListener("abort",_)}let S=new XMLHttpRequest;S.open(n.method.toUpperCase(),n.url,!0),S.timeout=n.timeout;function T(){if(!S)return;const I=ve.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),L={data:!a||a==="text"||a==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:I,config:r,request:S};Wn(function(Z){t(Z),g()},function(Z){i(Z),g()},L),S=null}"onloadend"in S?S.onloadend=T:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(T)},S.onabort=function(){S&&(i(new z("Request aborted",z.ECONNABORTED,r,S)),S=null)},S.onerror=function(){i(new z("Network Error",z.ERR_NETWORK,r,S)),S=null},S.ontimeout=function(){let w=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const L=n.transitional||Fn;n.timeoutErrorMessage&&(w=n.timeoutErrorMessage),i(new z(w,L.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,r,S)),S=null},o===void 0&&s.setContentType(null),"setRequestHeader"in S&&b.forEach(s.toJSON(),function(w,L){S.setRequestHeader(L,w)}),b.isUndefined(n.withCredentials)||(S.withCredentials=!!n.withCredentials),a&&a!=="json"&&(S.responseType=n.responseType),d&&([E,f]=ii(d,!0),S.addEventListener("progress",E)),p&&S.upload&&([c,y]=ii(p),S.upload.addEventListener("progress",c),S.upload.addEventListener("loadend",y)),(n.cancelToken||n.signal)&&(_=I=>{S&&(i(!I||I.type?new _t(null,r,S):I),S.abort(),S=null)},n.cancelToken&&n.cancelToken.subscribe(_),n.signal&&(n.signal.aborted?_():n.signal.addEventListener("abort",_)));const m=Ad(n.url);if(m&&Me.protocols.indexOf(m)===-1){i(new z("Unsupported protocol "+m+":",z.ERR_BAD_REQUEST,r));return}S.send(o||null)})},Pd=(r,e)=>{const{length:t}=r=r?r.filter(Boolean):[];if(e||t){let i=new AbortController,n;const o=function(d){if(!n){n=!0,a();const _=d instanceof Error?d:this.reason;i.abort(_ instanceof z?_:new _t(_ instanceof Error?_.message:_))}};let s=e&&setTimeout(()=>{s=null,o(new z(`timeout ${e} of ms exceeded`,z.ETIMEDOUT))},e);const a=()=>{r&&(s&&clearTimeout(s),s=null,r.forEach(d=>{d.unsubscribe?d.unsubscribe(o):d.removeEventListener("abort",o)}),r=null)};r.forEach(d=>d.addEventListener("abort",o));const{signal:p}=i;return p.unsubscribe=()=>b.asap(a),p}},kd=function*(r,e){let t=r.byteLength;if(t<e){yield r;return}let i=0,n;for(;i<t;)n=i+e,yield r.slice(i,n),i=n},wd=async function*(r,e){for await(const t of Ud(r))yield*kd(t,e)},Ud=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}const e=r.getReader();try{for(;;){const{done:t,value:i}=await e.read();if(t)break;yield i}}finally{await e.cancel()}},Jn=(r,e,t,i)=>{const n=wd(r,e);let o=0,s,a=p=>{s||(s=!0,i&&i(p))};return new ReadableStream({async pull(p){try{const{done:d,value:_}=await n.next();if(d){a(),p.close();return}let c=_.byteLength;if(t){let E=o+=c;t(E)}p.enqueue(new Uint8Array(_))}catch(d){throw a(d),d}},cancel(p){return a(p),n.return()}},{highWaterMark:2})},ri=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Qn=ri&&typeof ReadableStream=="function",Ld=ri&&(typeof TextEncoder=="function"?(r=>e=>r.encode(e))(new TextEncoder):async r=>new Uint8Array(await new Response(r).arrayBuffer())),Xn=(r,...e)=>{try{return!!r(...e)}catch{return!1}},Gd=Qn&&Xn(()=>{let r=!1;const e=new Request(Me.origin,{body:new ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type");return r&&!e}),Zn=64*1024,qi=Qn&&Xn(()=>b.isReadableStream(new Response("").body)),ni={stream:qi&&(r=>r.body)};ri&&(r=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ni[e]&&(ni[e]=b.isFunction(r[e])?t=>t[e]():(t,i)=>{throw new z(`Response type '${e}' is not supported`,z.ERR_NOT_SUPPORT,i)})})})(new Response);const Bd=async r=>{if(r==null)return 0;if(b.isBlob(r))return r.size;if(b.isSpecCompliantForm(r))return(await new Request(Me.origin,{method:"POST",body:r}).arrayBuffer()).byteLength;if(b.isArrayBufferView(r)||b.isArrayBuffer(r))return r.byteLength;if(b.isURLSearchParams(r)&&(r=r+""),b.isString(r))return(await Ld(r)).byteLength},Vd=async(r,e)=>{const t=b.toFiniteNumber(r.getContentLength());return t??Bd(e)},zi={http:od,xhr:Dd,fetch:ri&&(async r=>{let{url:e,method:t,data:i,signal:n,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:p,responseType:d,headers:_,withCredentials:c="same-origin",fetchOptions:E}=$n(r);d=d?(d+"").toLowerCase():"text";let y=Pd([n,o&&o.toAbortSignal()],s),f;const g=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let S;try{if(p&&Gd&&t!=="get"&&t!=="head"&&(S=await Vd(_,i))!==0){let L=new Request(e,{method:"POST",body:i,duplex:"half"}),V;if(b.isFormData(i)&&(V=L.headers.get("content-type"))&&_.setContentType(V),L.body){const[Z,se]=jn(S,ii(qn(p)));i=Jn(L.body,Zn,Z,se)}}b.isString(c)||(c=c?"include":"omit");const T="credentials"in Request.prototype;f=new Request(e,{...E,signal:y,method:t.toUpperCase(),headers:_.normalize().toJSON(),body:i,duplex:"half",credentials:T?c:void 0});let m=await fetch(f,E);const I=qi&&(d==="stream"||d==="response");if(qi&&(a||I&&g)){const L={};["status","statusText","headers"].forEach(q=>{L[q]=m[q]});const V=b.toFiniteNumber(m.headers.get("content-length")),[Z,se]=a&&jn(V,ii(qn(a),!0))||[];m=new Response(Jn(m.body,Zn,Z,()=>{se&&se(),g&&g()}),L)}d=d||"text";let w=await ni[b.findKey(ni,d)||"text"](m,r);return!I&&g&&g(),await new Promise((L,V)=>{Wn(L,V,{data:w,headers:ve.from(m.headers),status:m.status,statusText:m.statusText,config:r,request:f})})}catch(T){throw g&&g(),T&&T.name==="TypeError"&&/Load failed|fetch/i.test(T.message)?Object.assign(new z("Network Error",z.ERR_NETWORK,r,f),{cause:T.cause||T}):z.from(T,T&&T.code,r,f)}})};b.forEach(zi,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});const es=r=>`- ${r}`,Fd=r=>b.isFunction(r)||r===null||r===!1,ts={getAdapter:r=>{r=b.isArray(r)?r:[r];const{length:e}=r;let t,i;const n={};for(let o=0;o<e;o++){t=r[o];let s;if(i=t,!Fd(t)&&(i=zi[(s=String(t)).toLowerCase()],i===void 0))throw new z(`Unknown adapter '${s}'`);if(i)break;n[s||"#"+o]=i}if(!i){const o=Object.entries(n).map(([a,p])=>`adapter ${a} `+(p===!1?"is not supported by the environment":"is not available in the build"));let s=e?o.length>1?`since : `+o.map(es).join(` `):" "+es(o[0]):"as no adapter specified";throw new z("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i},adapters:zi};function Yi(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new _t(null,r)}function is(r){return Yi(r),r.headers=ve.from(r.headers),r.data=ji.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),ts.getAdapter(r.adapter||Pt.adapter)(r).then(function(i){return Yi(r),i.data=ji.call(r,r.transformResponse,i),i.headers=ve.from(i.headers),i},function(i){return Kn(i)||(Yi(r),i&&i.response&&(i.response.data=ji.call(r,r.transformResponse,i.response),i.response.headers=ve.from(i.response.headers))),Promise.reject(i)})}const rs="1.11.0",si={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{si[r]=function(i){return typeof i===r||"a"+(e<1?"n ":" ")+r}});const ns={};si.transitional=function(e,t,i){function n(o,s){return"[Axios v"+rs+"] Transitional option '"+o+"'"+s+(i?". "+i:"")}return(o,s,a)=>{if(e===!1)throw new z(n(s," has been removed"+(t?" in "+t:"")),z.ERR_DEPRECATED);return t&&!ns[s]&&(ns[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,s,a):!0}},si.spelling=function(e){return(t,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};function xd(r,e,t){if(typeof r!="object")throw new z("options must be an object",z.ERR_BAD_OPTION_VALUE);const i=Object.keys(r);let n=i.length;for(;n-- >0;){const o=i[n],s=e[o];if(s){const a=r[o],p=a===void 0||s(a,o,r);if(p!==!0)throw new z("option "+o+" must be "+p,z.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new z("Unknown option "+o,z.ERR_BAD_OPTION)}}const oi={assertOptions:xd,validators:si},Be=oi.validators;let st=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Vn,response:new Vn}}async request(e,t){try{return await this._request(e,t)}catch(i){if(i instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const o=n.stack?n.stack.replace(/^.+\n/,""):"";try{i.stack?o&&!String(i.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(i.stack+=` `+o):i.stack=o}catch{}}throw i}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=nt(this.defaults,t);const{transitional:i,paramsSerializer:n,headers:o}=t;i!==void 0&&oi.assertOptions(i,{silentJSONParsing:Be.transitional(Be.boolean),forcedJSONParsing:Be.transitional(Be.boolean),clarifyTimeoutError:Be.transitional(Be.boolean)},!1),n!=null&&(b.isFunction(n)?t.paramsSerializer={serialize:n}:oi.assertOptions(n,{encode:Be.function,serialize:Be.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),oi.assertOptions(t,{baseUrl:Be.spelling("baseURL"),withXsrfToken:Be.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&b.merge(o.common,o[t.method]);o&&b.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),t.headers=ve.concat(s,o);const a=[];let p=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(t)===!1||(p=p&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const d=[];this.interceptors.response.forEach(function(g){d.push(g.fulfilled,g.rejected)});let _,c=0,E;if(!p){const f=[is.bind(this),void 0];for(f.unshift(...a),f.push(...d),E=f.length,_=Promise.resolve(t);c<E;)_=_.then(f[c++],f[c++]);return _}E=a.length;let y=t;for(c=0;c<E;){const f=a[c++],g=a[c++];try{y=f(y)}catch(S){g.call(this,S);break}}try{_=is.call(this,y)}catch(f){return Promise.reject(f)}for(c=0,E=d.length;c<E;)_=_.then(d[c++],d[c++]);return _}getUri(e){e=nt(this.defaults,e);const t=zn(e.baseURL,e.url,e.allowAbsoluteUrls);return Bn(t,e.params,e.paramsSerializer)}};b.forEach(["delete","get","head","options"],function(e){st.prototype[e]=function(t,i){return this.request(nt(i||{},{method:e,url:t,data:(i||{}).data}))}}),b.forEach(["post","put","patch"],function(e){function t(i){return function(o,s,a){return this.request(nt(a||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}st.prototype[e]=t(),st.prototype[e+"Form"]=t(!0)});let Hd=class ua{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(o){t=o});const i=this;this.promise.then(n=>{if(!i._listeners)return;let o=i._listeners.length;for(;o-- >0;)i._listeners[o](n);i._listeners=null}),this.promise.then=n=>{let o;const s=new Promise(a=>{i.subscribe(a),o=a}).then(n);return s.cancel=function(){i.unsubscribe(o)},s},e(function(o,s,a){i.reason||(i.reason=new _t(o,s,a),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=i=>{e.abort(i)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ua(function(n){e=n}),cancel:e}}};function Kd(r){return function(t){return r.apply(null,t)}}function Wd(r){return b.isObject(r)&&r.isAxiosError===!0}const $i={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($i).forEach(([r,e])=>{$i[e]=r});function ss(r){const e=new st(r),t=Mn(st.prototype.request,e);return b.extend(t,st.prototype,e,{allOwnKeys:!0}),b.extend(t,e,null,{allOwnKeys:!0}),t.create=function(n){return ss(nt(r,n))},t}const fe=ss(Pt);fe.Axios=st,fe.CanceledError=_t,fe.CancelToken=Hd,fe.isCancel=Kn,fe.VERSION=rs,fe.toFormData=ei,fe.AxiosError=z,fe.Cancel=fe.CanceledError,fe.all=function(e){return Promise.all(e)},fe.spread=Kd,fe.isAxiosError=Wd,fe.mergeConfig=nt,fe.AxiosHeaders=ve,fe.formToJSON=r=>xn(b.isHTMLForm(r)?new FormData(r):r),fe.getAdapter=ts.getAdapter,fe.HttpStatusCode=$i,fe.default=fe;const{Axios:Bf,AxiosError:Vf,CanceledError:Ff,isCancel:xf,CancelToken:Hf,VERSION:Kf,all:Wf,Cancel:jf,isAxiosError:qf,spread:zf,toFormData:Yf,AxiosHeaders:$f,HttpStatusCode:Jf,formToJSON:Qf,getAdapter:Xf,mergeConfig:Zf}=fe;function os(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ji={},wt={},as;function jd(){if(as)return wt;as=1,wt.byteLength=a,wt.toByteArray=d,wt.fromByteArray=E;for(var r=[],e=[],t=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,o=i.length;n<o;++n)r[n]=i[n],e[i.charCodeAt(n)]=n;e[45]=62,e[95]=63;function s(y){var f=y.length;if(f%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=y.indexOf("=");g===-1&&(g=f);var S=g===f?0:4-g%4;return[g,S]}function a(y){var f=s(y),g=f[0],S=f[1];return(g+S)*3/4-S}function p(y,f,g){return(f+g)*3/4-g}function d(y){var f,g=s(y),S=g[0],T=g[1],m=new t(p(y,S,T)),I=0,w=T>0?S-4:S,L;for(L=0;L<w;L+=4)f=e[y.charCodeAt(L)]<<18|e[y.charCodeAt(L+1)]<<12|e[y.charCodeAt(L+2)]<<6|e[y.charCodeAt(L+3)],m[I++]=f>>16&255,m[I++]=f>>8&255,m[I++]=f&255;return T===2&&(f=e[y.charCodeAt(L)]<<2|e[y.charCodeAt(L+1)]>>4,m[I++]=f&255),T===1&&(f=e[y.charCodeAt(L)]<<10|e[y.charCodeAt(L+1)]<<4|e[y.charCodeAt(L+2)]>>2,m[I++]=f>>8&255,m[I++]=f&255),m}function _(y){return r[y>>18&63]+r[y>>12&63]+r[y>>6&63]+r[y&63]}function c(y,f,g){for(var S,T=[],m=f;m<g;m+=3)S=(y[m]<<16&16711680)+(y[m+1]<<8&65280)+(y[m+2]&255),T.push(_(S));return T.join("")}function E(y){for(var f,g=y.length,S=g%3,T=[],m=16383,I=0,w=g-S;I<w;I+=m)T.push(c(y,I,I+m>w?w:I+m));return S===1?(f=y[g-1],T.push(r[f>>2]+r[f<<4&63]+"==")):S===2&&(f=(y[g-2]<<8)+y[g-1],T.push(r[f>>10]+r[f>>4&63]+r[f<<2&63]+"=")),T.join("")}return wt}var ai={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var ds;function qd(){return ds||(ds=1,ai.read=function(r,e,t,i,n){var o,s,a=n*8-i-1,p=(1<<a)-1,d=p>>1,_=-7,c=t?n-1:0,E=t?-1:1,y=r[e+c];for(c+=E,o=y&(1<<-_)-1,y>>=-_,_+=a;_>0;o=o*256+r[e+c],c+=E,_-=8);for(s=o&(1<<-_)-1,o>>=-_,_+=i;_>0;s=s*256+r[e+c],c+=E,_-=8);if(o===0)o=1-d;else{if(o===p)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,i),o=o-d}return(y?-1:1)*s*Math.pow(2,o-i)},ai.write=function(r,e,t,i,n,o){var s,a,p,d=o*8-n-1,_=(1<<d)-1,c=_>>1,E=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=i?0:o-1,f=i?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=_):(s=Math.floor(Math.log(e)/Math.LN2),e*(p=Math.pow(2,-s))<1&&(s--,p*=2),s+c>=1?e+=E/p:e+=E*Math.pow(2,1-c),e*p>=2&&(s++,p/=2),s+c>=_?(a=0,s=_):s+c>=1?(a=(e*p-1)*Math.pow(2,n),s=s+c):(a=e*Math.pow(2,c-1)*Math.pow(2,n),s=0));n>=8;r[t+y]=a&255,y+=f,a/=256,n-=8);for(s=s<<n|a,d+=n;d>0;r[t+y]=s&255,y+=f,s/=256,d-=8);r[t+y-f]|=g*128}),ai}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */var ls;function zd(){return ls||(ls=1,function(r){const e=jd(),t=qd(),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=a,r.SlowBuffer=m,r.INSPECT_MAX_BYTES=50;const n=2147483647;r.kMaxLength=n,a.TYPED_ARRAY_SUPPORT=o(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const h=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(h,l),h.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(h){if(h>n)throw new RangeError('The value "'+h+'" is invalid for option "size"');const l=new Uint8Array(h);return Object.setPrototypeOf(l,a.prototype),l}function a(h,l,u){if(typeof h=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return c(h)}return p(h,l,u)}a.poolSize=8192;function p(h,l,u){if(typeof h=="string")return E(h,l);if(ArrayBuffer.isView(h))return f(h);if(h==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h);if(ke(h,ArrayBuffer)||h&&ke(h.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ke(h,SharedArrayBuffer)||h&&ke(h.buffer,SharedArrayBuffer)))return g(h,l,u);if(typeof h=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const C=h.valueOf&&h.valueOf();if(C!=null&&C!==h)return a.from(C,l,u);const M=S(h);if(M)return M;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof h[Symbol.toPrimitive]=="function")return a.from(h[Symbol.toPrimitive]("string"),l,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h)}a.from=function(h,l,u){return p(h,l,u)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function d(h){if(typeof h!="number")throw new TypeError('"size" argument must be of type number');if(h<0)throw new RangeError('The value "'+h+'" is invalid for option "size"')}function _(h,l,u){return d(h),h<=0?s(h):l!==void 0?typeof u=="string"?s(h).fill(l,u):s(h).fill(l):s(h)}a.alloc=function(h,l,u){return _(h,l,u)};function c(h){return d(h),s(h<0?0:T(h)|0)}a.allocUnsafe=function(h){return c(h)},a.allocUnsafeSlow=function(h){return c(h)};function E(h,l){if((typeof l!="string"||l==="")&&(l="utf8"),!a.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const u=I(h,l)|0;let C=s(u);const M=C.write(h,l);return M!==u&&(C=C.slice(0,M)),C}function y(h){const l=h.length<0?0:T(h.length)|0,u=s(l);for(let C=0;C<l;C+=1)u[C]=h[C]&255;return u}function f(h){if(ke(h,Uint8Array)){const l=new Uint8Array(h);return g(l.buffer,l.byteOffset,l.byteLength)}return y(h)}function g(h,l,u){if(l<0||h.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(h.byteLength<l+(u||0))throw new RangeError('"length" is outside of buffer bounds');let C;return l===void 0&&u===void 0?C=new Uint8Array(h):u===void 0?C=new Uint8Array(h,l):C=new Uint8Array(h,l,u),Object.setPrototypeOf(C,a.prototype),C}function S(h){if(a.isBuffer(h)){const l=T(h.length)|0,u=s(l);return u.length===0||h.copy(u,0,0,l),u}if(h.length!==void 0)return typeof h.length!="number"||Rt(h.length)?s(0):y(h);if(h.type==="Buffer"&&Array.isArray(h.data))return y(h.data)}function T(h){if(h>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return h|0}function m(h){return+h!=h&&(h=0),a.alloc(+h)}a.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==a.prototype},a.compare=function(l,u){if(ke(l,Uint8Array)&&(l=a.from(l,l.offset,l.byteLength)),ke(u,Uint8Array)&&(u=a.from(u,u.offset,u.byteLength)),!a.isBuffer(l)||!a.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===u)return 0;let C=l.length,M=u.length;for(let N=0,v=Math.min(C,M);N<v;++N)if(l[N]!==u[N]){C=l[N],M=u[N];break}return C<M?-1:M<C?1:0},a.isEncoding=function(l){switch(String(l).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}},a.concat=function(l,u){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return a.alloc(0);let C;if(u===void 0)for(u=0,C=0;C<l.length;++C)u+=l[C].length;const M=a.allocUnsafe(u);let N=0;for(C=0;C<l.length;++C){let v=l[C];if(ke(v,Uint8Array))N+v.length>M.length?(a.isBuffer(v)||(v=a.from(v)),v.copy(M,N)):Uint8Array.prototype.set.call(M,v,N);else if(a.isBuffer(v))v.copy(M,N);else throw new TypeError('"list" argument must be an Array of Buffers');N+=v.length}return M};function I(h,l){if(a.isBuffer(h))return h.length;if(ArrayBuffer.isView(h)||ke(h,ArrayBuffer))return h.byteLength;if(typeof h!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof h);const u=h.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&u===0)return 0;let M=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return Ne(h).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return wi(h).length;default:if(M)return C?-1:Ne(h).length;l=(""+l).toLowerCase(),M=!0}}a.byteLength=I;function w(h,l,u){let C=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,l>>>=0,u<=l))return"";for(h||(h="utf8");;)switch(h){case"hex":return ye(this,l,u);case"utf8":case"utf-8":return B(this,l,u);case"ascii":return Q(this,l,u);case"latin1":case"binary":return re(this,l,u);case"base64":return ne(this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,l,u);default:if(C)throw new TypeError("Unknown encoding: "+h);h=(h+"").toLowerCase(),C=!0}}a.prototype._isBuffer=!0;function L(h,l,u){const C=h[l];h[l]=h[u],h[u]=C}a.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let u=0;u<l;u+=2)L(this,u,u+1);return this},a.prototype.swap32=function(){const l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let u=0;u<l;u+=4)L(this,u,u+3),L(this,u+1,u+2);return this},a.prototype.swap64=function(){const l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let u=0;u<l;u+=8)L(this,u,u+7),L(this,u+1,u+6),L(this,u+2,u+5),L(this,u+3,u+4);return this},a.prototype.toString=function(){const l=this.length;return l===0?"":arguments.length===0?B(this,0,l):w.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(l){if(!a.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:a.compare(this,l)===0},a.prototype.inspect=function(){let l="";const u=r.INSPECT_MAX_BYTES;return l=this.toString("hex",0,u).replace(/(.{2})/g,"$1 ").trim(),this.length>u&&(l+=" ... "),"<Buffer "+l+">"},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(l,u,C,M,N){if(ke(l,Uint8Array)&&(l=a.from(l,l.offset,l.byteLength)),!a.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(u===void 0&&(u=0),C===void 0&&(C=l?l.length:0),M===void 0&&(M=0),N===void 0&&(N=this.length),u<0||C>l.length||M<0||N>this.length)throw new RangeError("out of range index");if(M>=N&&u>=C)return 0;if(M>=N)return-1;if(u>=C)return 1;if(u>>>=0,C>>>=0,M>>>=0,N>>>=0,this===l)return 0;let v=N-M,R=C-u;const O=Math.min(v,R),D=this.slice(M,N),G=l.slice(u,C);for(let U=0;U<O;++U)if(D[U]!==G[U]){v=D[U],R=G[U];break}return v<R?-1:R<v?1:0};function V(h,l,u,C,M){if(h.length===0)return-1;if(typeof u=="string"?(C=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,Rt(u)&&(u=M?0:h.length-1),u<0&&(u=h.length+u),u>=h.length){if(M)return-1;u=h.length-1}else if(u<0)if(M)u=0;else return-1;if(typeof l=="string"&&(l=a.from(l,C)),a.isBuffer(l))return l.length===0?-1:Z(h,l,u,C,M);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?M?Uint8Array.prototype.indexOf.call(h,l,u):Uint8Array.prototype.lastIndexOf.call(h,l,u):Z(h,[l],u,C,M);throw new TypeError("val must be string, number or Buffer")}function Z(h,l,u,C,M){let N=1,v=h.length,R=l.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(h.length<2||l.length<2)return-1;N=2,v/=2,R/=2,u/=2}function O(G,U){return N===1?G[U]:G.readUInt16BE(U*N)}let D;if(M){let G=-1;for(D=u;D<v;D++)if(O(h,D)===O(l,G===-1?0:D-G)){if(G===-1&&(G=D),D-G+1===R)return G*N}else G!==-1&&(D-=D-G),G=-1}else for(u+R>v&&(u=v-R),D=u;D>=0;D--){let G=!0;for(let U=0;U<R;U++)