UNPKG

@opengis/bi

Version:

BI data visualization module

1,673 lines 2.08 MB
var TO = Object.defineProperty; var EO = (r, e, t) => e in r ? TO(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t; var ut = (r, e, t) => EO(r, typeof e != "symbol" ? e + "" : e, t); import { createElementBlock as ne, openBlock as Y, createElementVNode as V, Fragment as Ct, renderList as Qt, normalizeStyle as x0, normalizeClass as Er, createCommentVNode as Ut, toDisplayString as ct, ref as Je, computed as Rn, onUnmounted as AO, createTextVNode as kt, defineAsyncComponent as dr, defineComponent as LC, mergeModels as hu, useModel as w0, withDirectives as S0, vModelCheckbox as DO, resolveComponent as Ge, createBlock as _t, createVNode as Se, resolveDynamicComponent as ym, createStaticVNode as jh, withCtx as Pe, vModelText as kC, getCurrentInstance as fo, watch as aa, onMounted as To, h as ax, unref as jd } from "vue"; function li(r, e) { return r != null && r.value ? isNaN(r == null ? void 0 : r.value) ? r == null ? void 0 : r.value : new Intl.NumberFormat("en", e || { notation: "compact" }).format(r == null ? void 0 : r.value) : isNaN(r) ? r : new Intl.NumberFormat("en", e || { notation: "compact" }).format(r); } function T0(r) { if (!(r != null && r.includes("T"))) return r; const [e, t, n] = r.split("T")[0].split("-"); return `${n}.${t}.${e}`; } function pie(r) { return Intl.NumberFormat("en").format(r); } function RC(r, e) { return function() { return r.apply(e, arguments); }; } const { toString: CO } = Object.prototype, { getPrototypeOf: E0 } = Object, Jh = /* @__PURE__ */ ((r) => (e) => { const t = CO.call(e); return r[t] || (r[t] = t.slice(8, -1).toLowerCase()); })(/* @__PURE__ */ Object.create(null)), bn = (r) => (r = r.toLowerCase(), (e) => Jh(e) === r), ed = (r) => (e) => typeof e === r, { isArray: Os } = Array, du = ed("undefined"); function MO(r) { return r !== null && !du(r) && r.constructor !== null && !du(r.constructor) && Xr(r.constructor.isBuffer) && r.constructor.isBuffer(r); } const OC = bn("ArrayBuffer"); function IO(r) { let e; return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(r) : e = r && r.buffer && OC(r.buffer), e; } const NO = ed("string"), Xr = ed("function"), PC = ed("number"), td = (r) => r !== null && typeof r == "object", LO = (r) => r === !0 || r === !1, wf = (r) => { if (Jh(r) !== "object") return !1; const e = E0(r); return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in r) && !(Symbol.iterator in r); }, kO = bn("Date"), RO = bn("File"), OO = bn("Blob"), PO = bn("FileList"), BO = (r) => td(r) && Xr(r.pipe), VO = (r) => { let e; return r && (typeof FormData == "function" && r instanceof FormData || Xr(r.append) && ((e = Jh(r)) === "formdata" || // detect form-data instance e === "object" && Xr(r.toString) && r.toString() === "[object FormData]")); }, zO = bn("URLSearchParams"), [FO, GO, $O, UO] = ["ReadableStream", "Request", "Response", "Headers"].map(bn), HO = (r) => r.trim ? r.trim() : r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); function $u(r, e, { allOwnKeys: t = !1 } = {}) { if (r === null || typeof r > "u") return; let n, a; if (typeof r != "object" && (r = [r]), Os(r)) for (n = 0, a = r.length; n < a; n++) e.call(null, r[n], n, r); else { const i = t ? Object.getOwnPropertyNames(r) : Object.keys(r), o = i.length; let s; for (n = 0; n < o; n++) s = i[n], e.call(null, r[s], s, r); } } function BC(r, e) { e = e.toLowerCase(); const t = Object.keys(r); let n = t.length, a; for (; n-- > 0; ) if (a = t[n], e === a.toLowerCase()) return a; return null; } const VC = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, zC = (r) => !du(r) && r !== VC; function _m() { const { caseless: r } = zC(this) && this || {}, e = {}, t = (n, a) => { const i = r && BC(e, a) || a; wf(e[i]) && wf(n) ? e[i] = _m(e[i], n) : wf(n) ? e[i] = _m({}, n) : Os(n) ? e[i] = n.slice() : e[i] = n; }; for (let n = 0, a = arguments.length; n < a; n++) arguments[n] && $u(arguments[n], t); return e; } const WO = (r, e, t, { allOwnKeys: n } = {}) => ($u(e, (a, i) => { t && Xr(a) ? r[i] = RC(a, t) : r[i] = a; }, { allOwnKeys: n }), r), YO = (r) => (r.charCodeAt(0) === 65279 && (r = r.slice(1)), r), qO = (r, e, t, n) => { r.prototype = Object.create(e.prototype, n), r.prototype.constructor = r, Object.defineProperty(r, "super", { value: e.prototype }), t && Object.assign(r.prototype, t); }, ZO = (r, e, t, n) => { let a, i, o; const s = {}; if (e = e || {}, r == null) return e; do { for (a = Object.getOwnPropertyNames(r), i = a.length; i-- > 0; ) o = a[i], (!n || n(o, r, e)) && !s[o] && (e[o] = r[o], s[o] = !0); r = t !== !1 && E0(r); } while (r && (!t || t(r, e)) && r !== Object.prototype); return e; }, XO = (r, e, t) => { r = String(r), (t === void 0 || t > r.length) && (t = r.length), t -= e.length; const n = r.indexOf(e, t); return n !== -1 && n === t; }, KO = (r) => { if (!r) return null; if (Os(r)) return r; let e = r.length; if (!PC(e)) return null; const t = new Array(e); for (; e-- > 0; ) t[e] = r[e]; return t; }, QO = /* @__PURE__ */ ((r) => (e) => r && e instanceof r)(typeof Uint8Array < "u" && E0(Uint8Array)), jO = (r, e) => { const n = (r && r[Symbol.iterator]).call(r); let a; for (; (a = n.next()) && !a.done; ) { const i = a.value; e.call(r, i[0], i[1]); } }, JO = (r, e) => { let t; const n = []; for (; (t = r.exec(e)) !== null; ) n.push(t); return n; }, eP = bn("HTMLFormElement"), tP = (r) => r.toLowerCase().replace( /[-_\s]([a-z\d])(\w*)/g, function(t, n, a) { return n.toUpperCase() + a; } ), ix = (({ hasOwnProperty: r }) => (e, t) => r.call(e, t))(Object.prototype), rP = bn("RegExp"), FC = (r, e) => { const t = Object.getOwnPropertyDescriptors(r), n = {}; $u(t, (a, i) => { let o; (o = e(a, i, r)) !== !1 && (n[i] = o || a); }), Object.defineProperties(r, n); }, nP = (r) => { FC(r, (e, t) => { if (Xr(r) && ["arguments", "caller", "callee"].indexOf(t) !== -1) return !1; const n = r[t]; if (Xr(n)) { if (e.enumerable = !1, "writable" in e) { e.writable = !1; return; } e.set || (e.set = () => { throw Error("Can not rewrite read-only method '" + t + "'"); }); } }); }, aP = (r, e) => { const t = {}, n = (a) => { a.forEach((i) => { t[i] = !0; }); }; return Os(r) ? n(r) : n(String(r).split(e)), t; }, iP = () => { }, oP = (r, e) => r != null && Number.isFinite(r = +r) ? r : e, Jd = "abcdefghijklmnopqrstuvwxyz", ox = "0123456789", GC = { DIGIT: ox, ALPHA: Jd, ALPHA_DIGIT: Jd + Jd.toUpperCase() + ox }, sP = (r = 16, e = GC.ALPHA_DIGIT) => { let t = ""; const { length: n } = e; for (; r--; ) t += e[Math.random() * n | 0]; return t; }; function lP(r) { return !!(r && Xr(r.append) && r[Symbol.toStringTag] === "FormData" && r[Symbol.iterator]); } const uP = (r) => { const e = new Array(10), t = (n, a) => { if (td(n)) { if (e.indexOf(n) >= 0) return; if (!("toJSON" in n)) { e[a] = n; const i = Os(n) ? [] : {}; return $u(n, (o, s) => { const l = t(o, a + 1); !du(l) && (i[s] = l); }), e[a] = void 0, i; } } return n; }; return t(r, 0); }, cP = bn("AsyncFunction"), fP = (r) => r && (td(r) || Xr(r)) && Xr(r.then) && Xr(r.catch), H = { isArray: Os, isArrayBuffer: OC, isBuffer: MO, isFormData: VO, isArrayBufferView: IO, isString: NO, isNumber: PC, isBoolean: LO, isObject: td, isPlainObject: wf, isReadableStream: FO, isRequest: GO, isResponse: $O, isHeaders: UO, isUndefined: du, isDate: kO, isFile: RO, isBlob: OO, isRegExp: rP, isFunction: Xr, isStream: BO, isURLSearchParams: zO, isTypedArray: QO, isFileList: PO, forEach: $u, merge: _m, extend: WO, trim: HO, stripBOM: YO, inherits: qO, toFlatObject: ZO, kindOf: Jh, kindOfTest: bn, endsWith: XO, toArray: KO, forEachEntry: jO, matchAll: JO, isHTMLForm: eP, hasOwnProperty: ix, hasOwnProp: ix, // an alias to avoid ESLint no-prototype-builtins detection reduceDescriptors: FC, freezeMethods: nP, toObjectSet: aP, toCamelCase: tP, noop: iP, toFiniteNumber: oP, findKey: BC, global: VC, isContextDefined: zC, ALPHABET: GC, generateString: sP, isSpecCompliantForm: lP, toJSONObject: uP, isAsyncFn: cP, isThenable: fP }; function Be(r, e, t, n, a) { 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), n && (this.request = n), a && (this.response = a); } H.inherits(Be, Error, { toJSON: function() { return { // Standard message: this.message, name: this.name, // Microsoft description: this.description, number: this.number, // Mozilla fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, // Axios config: H.toJSONObject(this.config), code: this.code, status: this.response && this.response.status ? this.response.status : null }; } }); const $C = Be.prototype, UC = {}; [ "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" // eslint-disable-next-line func-names ].forEach((r) => { UC[r] = { value: r }; }); Object.defineProperties(Be, UC); Object.defineProperty($C, "isAxiosError", { value: !0 }); Be.from = (r, e, t, n, a, i) => { const o = Object.create($C); return H.toFlatObject(r, o, function(l) { return l !== Error.prototype; }, (s) => s !== "isAxiosError"), Be.call(o, r.message, e, t, n, a), o.cause = r, o.name = r.name, i && Object.assign(o, i), o; }; const hP = null; function bm(r) { return H.isPlainObject(r) || H.isArray(r); } function HC(r) { return H.endsWith(r, "[]") ? r.slice(0, -2) : r; } function sx(r, e, t) { return r ? r.concat(e).map(function(a, i) { return a = HC(a), !t && i ? "[" + a + "]" : a; }).join(t ? "." : "") : e; } function dP(r) { return H.isArray(r) && !r.some(bm); } const vP = H.toFlatObject(H, {}, null, function(e) { return /^is[A-Z]/.test(e); }); function rd(r, e, t) { if (!H.isObject(r)) throw new TypeError("target must be an object"); e = e || new FormData(), t = H.toFlatObject(t, { metaTokens: !0, dots: !1, indexes: !1 }, !1, function(p, g) { return !H.isUndefined(g[p]); }); const n = t.metaTokens, a = t.visitor || c, i = t.dots, o = t.indexes, l = (t.Blob || typeof Blob < "u" && Blob) && H.isSpecCompliantForm(e); if (!H.isFunction(a)) throw new TypeError("visitor must be a function"); function u(v) { if (v === null) return ""; if (H.isDate(v)) return v.toISOString(); if (!l && H.isBlob(v)) throw new Be("Blob is not supported. Use a Buffer instead."); return H.isArrayBuffer(v) || H.isTypedArray(v) ? l && typeof Blob == "function" ? new Blob([v]) : Buffer.from(v) : v; } function c(v, p, g) { let m = v; if (v && !g && typeof v == "object") { if (H.endsWith(p, "{}")) p = n ? p : p.slice(0, -2), v = JSON.stringify(v); else if (H.isArray(v) && dP(v) || (H.isFileList(v) || H.endsWith(p, "[]")) && (m = H.toArray(v))) return p = HC(p), m.forEach(function(_, b) { !(H.isUndefined(_) || _ === null) && e.append( // eslint-disable-next-line no-nested-ternary o === !0 ? sx([p], b, i) : o === null ? p : p + "[]", u(_) ); }), !1; } return bm(v) ? !0 : (e.append(sx(g, p, i), u(v)), !1); } const f = [], h = Object.assign(vP, { defaultVisitor: c, convertValue: u, isVisitable: bm }); function d(v, p) { if (!H.isUndefined(v)) { if (f.indexOf(v) !== -1) throw Error("Circular reference detected in " + p.join(".")); f.push(v), H.forEach(v, function(m, y) { (!(H.isUndefined(m) || m === null) && a.call( e, m, H.isString(y) ? y.trim() : y, p, h )) === !0 && d(m, p ? p.concat(y) : [y]); }), f.pop(); } } if (!H.isObject(r)) throw new TypeError("data must be an object"); return d(r), e; } function lx(r) { const e = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+", "%00": "\0" }; return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g, function(n) { return e[n]; }); } function A0(r, e) { this._pairs = [], r && rd(r, this, e); } const WC = A0.prototype; WC.append = function(e, t) { this._pairs.push([e, t]); }; WC.toString = function(e) { const t = e ? function(n) { return e.call(this, n, lx); } : lx; return this._pairs.map(function(a) { return t(a[0]) + "=" + t(a[1]); }, "").join("&"); }; function pP(r) { return encodeURIComponent(r).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); } function YC(r, e, t) { if (!e) return r; const n = t && t.encode || pP, a = t && t.serialize; let i; if (a ? i = a(e, t) : i = H.isURLSearchParams(e) ? e.toString() : new A0(e, t).toString(n), i) { const o = r.indexOf("#"); o !== -1 && (r = r.slice(0, o)), r += (r.indexOf("?") === -1 ? "?" : "&") + i; } return r; } class ux { constructor() { this.handlers = []; } /** * Add a new interceptor to the stack * * @param {Function} fulfilled The function to handle `then` for a `Promise` * @param {Function} rejected The function to handle `reject` for a `Promise` * * @return {Number} An ID used to remove interceptor later */ use(e, t, n) { return this.handlers.push({ fulfilled: e, rejected: t, synchronous: n ? n.synchronous : !1, runWhen: n ? n.runWhen : null }), this.handlers.length - 1; } /** * Remove an interceptor from the stack * * @param {Number} id The ID that was returned by `use` * * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise */ eject(e) { this.handlers[e] && (this.handlers[e] = null); } /** * Clear all interceptors from the stack * * @returns {void} */ clear() { this.handlers && (this.handlers = []); } /** * Iterate over all the registered interceptors * * This method is particularly useful for skipping over any * interceptors that may have become `null` calling `eject`. * * @param {Function} fn The function to call for each interceptor * * @returns {void} */ forEach(e) { H.forEach(this.handlers, function(n) { n !== null && e(n); }); } } const qC = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 }, gP = typeof URLSearchParams < "u" ? URLSearchParams : A0, mP = typeof FormData < "u" ? FormData : null, yP = typeof Blob < "u" ? Blob : null, _P = { isBrowser: !0, classes: { URLSearchParams: gP, FormData: mP, Blob: yP }, protocols: ["http", "https", "file", "blob", "url", "data"] }, D0 = typeof window < "u" && typeof document < "u", bP = ((r) => D0 && ["ReactNative", "NativeScript", "NS"].indexOf(r) < 0)(typeof navigator < "u" && navigator.product), xP = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef self instanceof WorkerGlobalScope && typeof self.importScripts == "function", wP = D0 && window.location.href || "http://localhost", SP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, hasBrowserEnv: D0, hasStandardBrowserEnv: bP, hasStandardBrowserWebWorkerEnv: xP, origin: wP }, Symbol.toStringTag, { value: "Module" })), dn = { ...SP, ..._P }; function TP(r, e) { return rd(r, new dn.classes.URLSearchParams(), Object.assign({ visitor: function(t, n, a, i) { return dn.isNode && H.isBuffer(t) ? (this.append(n, t.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments); } }, e)); } function EP(r) { return H.matchAll(/\w+|\[(\w*)]/g, r).map((e) => e[0] === "[]" ? "" : e[1] || e[0]); } function AP(r) { const e = {}, t = Object.keys(r); let n; const a = t.length; let i; for (n = 0; n < a; n++) i = t[n], e[i] = r[i]; return e; } function ZC(r) { function e(t, n, a, i) { let o = t[i++]; if (o === "__proto__") return !0; const s = Number.isFinite(+o), l = i >= t.length; return o = !o && H.isArray(a) ? a.length : o, l ? (H.hasOwnProp(a, o) ? a[o] = [a[o], n] : a[o] = n, !s) : ((!a[o] || !H.isObject(a[o])) && (a[o] = []), e(t, n, a[o], i) && H.isArray(a[o]) && (a[o] = AP(a[o])), !s); } if (H.isFormData(r) && H.isFunction(r.entries)) { const t = {}; return H.forEachEntry(r, (n, a) => { e(EP(n), a, t, 0); }), t; } return null; } function DP(r, e, t) { if (H.isString(r)) try { return (e || JSON.parse)(r), H.trim(r); } catch (n) { if (n.name !== "SyntaxError") throw n; } return (t || JSON.stringify)(r); } const Uu = { transitional: qC, adapter: ["xhr", "http", "fetch"], transformRequest: [function(e, t) { const n = t.getContentType() || "", a = n.indexOf("application/json") > -1, i = H.isObject(e); if (i && H.isHTMLForm(e) && (e = new FormData(e)), H.isFormData(e)) return a ? JSON.stringify(ZC(e)) : e; if (H.isArrayBuffer(e) || H.isBuffer(e) || H.isStream(e) || H.isFile(e) || H.isBlob(e) || H.isReadableStream(e)) return e; if (H.isArrayBufferView(e)) return e.buffer; if (H.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString(); let s; if (i) { if (n.indexOf("application/x-www-form-urlencoded") > -1) return TP(e, this.formSerializer).toString(); if ((s = H.isFileList(e)) || n.indexOf("multipart/form-data") > -1) { const l = this.env && this.env.FormData; return rd( s ? { "files[]": e } : e, l && new l(), this.formSerializer ); } } return i || a ? (t.setContentType("application/json", !1), DP(e)) : e; }], transformResponse: [function(e) { const t = this.transitional || Uu.transitional, n = t && t.forcedJSONParsing, a = this.responseType === "json"; if (H.isResponse(e) || H.isReadableStream(e)) return e; if (e && H.isString(e) && (n && !this.responseType || a)) { const o = !(t && t.silentJSONParsing) && a; try { return JSON.parse(e); } catch (s) { if (o) throw s.name === "SyntaxError" ? Be.from(s, Be.ERR_BAD_RESPONSE, this, null, this.response) : s; } } return e; }], /** * A timeout in milliseconds to abort a request. If set to 0 (default) a * timeout is not created. */ timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", maxContentLength: -1, maxBodyLength: -1, env: { FormData: dn.classes.FormData, Blob: dn.classes.Blob }, validateStatus: function(e) { return e >= 200 && e < 300; }, headers: { common: { Accept: "application/json, text/plain, */*", "Content-Type": void 0 } } }; H.forEach(["delete", "get", "head", "post", "put", "patch"], (r) => { Uu.headers[r] = {}; }); const CP = H.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" ]), MP = (r) => { const e = {}; let t, n, a; return r && r.split(` `).forEach(function(o) { a = o.indexOf(":"), t = o.substring(0, a).trim().toLowerCase(), n = o.substring(a + 1).trim(), !(!t || e[t] && CP[t]) && (t === "set-cookie" ? e[t] ? e[t].push(n) : e[t] = [n] : e[t] = e[t] ? e[t] + ", " + n : n); }), e; }, cx = Symbol("internals"); function rl(r) { return r && String(r).trim().toLowerCase(); } function Sf(r) { return r === !1 || r == null ? r : H.isArray(r) ? r.map(Sf) : String(r); } function IP(r) { const e = /* @__PURE__ */ Object.create(null), t = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; let n; for (; n = t.exec(r); ) e[n[1]] = n[2]; return e; } const NP = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()); function ev(r, e, t, n, a) { if (H.isFunction(n)) return n.call(this, e, t); if (a && (e = t), !!H.isString(e)) { if (H.isString(n)) return e.indexOf(n) !== -1; if (H.isRegExp(n)) return n.test(e); } } function LP(r) { return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, n) => t.toUpperCase() + n); } function kP(r, e) { const t = H.toCamelCase(" " + e); ["get", "set", "has"].forEach((n) => { Object.defineProperty(r, n + t, { value: function(a, i, o) { return this[n].call(this, e, a, i, o); }, configurable: !0 }); }); } let xr = class { constructor(e) { e && this.set(e); } set(e, t, n) { const a = this; function i(s, l, u) { const c = rl(l); if (!c) throw new Error("header name must be a non-empty string"); const f = H.findKey(a, c); (!f || a[f] === void 0 || u === !0 || u === void 0 && a[f] !== !1) && (a[f || l] = Sf(s)); } const o = (s, l) => H.forEach(s, (u, c) => i(u, c, l)); if (H.isPlainObject(e) || e instanceof this.constructor) o(e, t); else if (H.isString(e) && (e = e.trim()) && !NP(e)) o(MP(e), t); else if (H.isHeaders(e)) for (const [s, l] of e.entries()) i(l, s, n); else e != null && i(t, e, n); return this; } get(e, t) { if (e = rl(e), e) { const n = H.findKey(this, e); if (n) { const a = this[n]; if (!t) return a; if (t === !0) return IP(a); if (H.isFunction(t)) return t.call(this, a, n); if (H.isRegExp(t)) return t.exec(a); throw new TypeError("parser must be boolean|regexp|function"); } } } has(e, t) { if (e = rl(e), e) { const n = H.findKey(this, e); return !!(n && this[n] !== void 0 && (!t || ev(this, this[n], n, t))); } return !1; } delete(e, t) { const n = this; let a = !1; function i(o) { if (o = rl(o), o) { const s = H.findKey(n, o); s && (!t || ev(n, n[s], s, t)) && (delete n[s], a = !0); } } return H.isArray(e) ? e.forEach(i) : i(e), a; } clear(e) { const t = Object.keys(this); let n = t.length, a = !1; for (; n--; ) { const i = t[n]; (!e || ev(this, this[i], i, e, !0)) && (delete this[i], a = !0); } return a; } normalize(e) { const t = this, n = {}; return H.forEach(this, (a, i) => { const o = H.findKey(n, i); if (o) { t[o] = Sf(a), delete t[i]; return; } const s = e ? LP(i) : String(i).trim(); s !== i && delete t[i], t[s] = Sf(a), n[s] = !0; }), this; } concat(...e) { return this.constructor.concat(this, ...e); } toJSON(e) { const t = /* @__PURE__ */ Object.create(null); return H.forEach(this, (n, a) => { n != null && n !== !1 && (t[a] = e && H.isArray(n) ? n.join(", ") : n); }), t; } [Symbol.iterator]() { return Object.entries(this.toJSON())[Symbol.iterator](); } toString() { return Object.entries(this.toJSON()).map(([e, t]) => e + ": " + t).join(` `); } get [Symbol.toStringTag]() { return "AxiosHeaders"; } static from(e) { return e instanceof this ? e : new this(e); } static concat(e, ...t) { const n = new this(e); return t.forEach((a) => n.set(a)), n; } static accessor(e) { const n = (this[cx] = this[cx] = { accessors: {} }).accessors, a = this.prototype; function i(o) { const s = rl(o); n[s] || (kP(a, o), n[s] = !0); } return H.isArray(e) ? e.forEach(i) : i(e), this; } }; xr.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]); H.reduceDescriptors(xr.prototype, ({ value: r }, e) => { let t = e[0].toUpperCase() + e.slice(1); return { get: () => r, set(n) { this[t] = n; } }; }); H.freezeMethods(xr); function tv(r, e) { const t = this || Uu, n = e || t, a = xr.from(n.headers); let i = n.data; return H.forEach(r, function(s) { i = s.call(t, i, a.normalize(), e ? e.status : void 0); }), a.normalize(), i; } function XC(r) { return !!(r && r.__CANCEL__); } function Ps(r, e, t) { Be.call(this, r ?? "canceled", Be.ERR_CANCELED, e, t), this.name = "CanceledError"; } H.inherits(Ps, Be, { __CANCEL__: !0 }); function KC(r, e, t) { const n = t.config.validateStatus; !t.status || !n || n(t.status) ? r(t) : e(new Be( "Request failed with status code " + t.status, [Be.ERR_BAD_REQUEST, Be.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4], t.config, t.request, t )); } function RP(r) { const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(r); return e && e[1] || ""; } function OP(r, e) { r = r || 10; const t = new Array(r), n = new Array(r); let a = 0, i = 0, o; return e = e !== void 0 ? e : 1e3, function(l) { const u = Date.now(), c = n[i]; o || (o = u), t[a] = l, n[a] = u; let f = i, h = 0; for (; f !== a; ) h += t[f++], f = f % r; if (a = (a + 1) % r, a === i && (i = (i + 1) % r), u - o < e) return; const d = c && u - c; return d ? Math.round(h * 1e3 / d) : void 0; }; } function PP(r, e) { let t = 0; const n = 1e3 / e; let a = null; return function() { const o = this === !0, s = Date.now(); if (o || s - t > n) return a && (clearTimeout(a), a = null), t = s, r.apply(null, arguments); a || (a = setTimeout(() => (a = null, t = Date.now(), r.apply(null, arguments)), n - (s - t))); }; } const Yf = (r, e, t = 3) => { let n = 0; const a = OP(50, 250); return PP((i) => { const o = i.loaded, s = i.lengthComputable ? i.total : void 0, l = o - n, u = a(l), c = o <= s; n = o; const f = { loaded: o, total: s, progress: s ? o / s : void 0, bytes: l, rate: u || void 0, estimated: u && s && c ? (s - o) / u : void 0, event: i, lengthComputable: s != null }; f[e ? "download" : "upload"] = !0, r(f); }, t); }, BP = dn.hasStandardBrowserEnv ? ( // Standard browser envs have full support of the APIs needed to test // whether the request URL is of the same origin as current location. function() { const e = /(msie|trident)/i.test(navigator.userAgent), t = document.createElement("a"); let n; function a(i) { let o = i; return e && (t.setAttribute("href", o), o = t.href), t.setAttribute("href", o), { href: t.href, protocol: t.protocol ? t.protocol.replace(/:$/, "") : "", host: t.host, search: t.search ? t.search.replace(/^\?/, "") : "", hash: t.hash ? t.hash.replace(/^#/, "") : "", hostname: t.hostname, port: t.port, pathname: t.pathname.charAt(0) === "/" ? t.pathname : "/" + t.pathname }; } return n = a(window.location.href), function(o) { const s = H.isString(o) ? a(o) : o; return s.protocol === n.protocol && s.host === n.host; }; }() ) : ( // Non standard browser envs (web workers, react-native) lack needed support. /* @__PURE__ */ function() { return function() { return !0; }; }() ), VP = dn.hasStandardBrowserEnv ? ( // Standard browser envs support document.cookie { write(r, e, t, n, a, i) { const o = [r + "=" + encodeURIComponent(e)]; H.isNumber(t) && o.push("expires=" + new Date(t).toGMTString()), H.isString(n) && o.push("path=" + n), H.isString(a) && o.push("domain=" + a), i === !0 && o.push("secure"), document.cookie = o.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); } } ) : ( // Non-standard browser env (web workers, react-native) lack needed support. { write() { }, read() { return null; }, remove() { } } ); function zP(r) { return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(r); } function FP(r, e) { return e ? r.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : r; } function QC(r, e) { return r && !zP(e) ? FP(r, e) : e; } const fx = (r) => r instanceof xr ? { ...r } : r; function ho(r, e) { e = e || {}; const t = {}; function n(u, c, f) { return H.isPlainObject(u) && H.isPlainObject(c) ? H.merge.call({ caseless: f }, u, c) : H.isPlainObject(c) ? H.merge({}, c) : H.isArray(c) ? c.slice() : c; } function a(u, c, f) { if (H.isUndefined(c)) { if (!H.isUndefined(u)) return n(void 0, u, f); } else return n(u, c, f); } function i(u, c) { if (!H.isUndefined(c)) return n(void 0, c); } function o(u, c) { if (H.isUndefined(c)) { if (!H.isUndefined(u)) return n(void 0, u); } else return n(void 0, c); } function s(u, c, f) { if (f in e) return n(u, c); if (f in r) return n(void 0, u); } const l = { url: i, method: i, data: i, baseURL: o, transformRequest: o, transformResponse: o, paramsSerializer: o, timeout: o, timeoutMessage: o, withCredentials: o, withXSRFToken: o, adapter: o, responseType: o, xsrfCookieName: o, xsrfHeaderName: o, onUploadProgress: o, onDownloadProgress: o, decompress: o, maxContentLength: o, maxBodyLength: o, beforeRedirect: o, transport: o, httpAgent: o, httpsAgent: o, cancelToken: o, socketPath: o, responseEncoding: o, validateStatus: s, headers: (u, c) => a(fx(u), fx(c), !0) }; return H.forEach(Object.keys(Object.assign({}, r, e)), function(c) { const f = l[c] || a, h = f(r[c], e[c], c); H.isUndefined(h) && f !== s || (t[c] = h); }), t; } const jC = (r) => { const e = ho({}, r); let { data: t, withXSRFToken: n, xsrfHeaderName: a, xsrfCookieName: i, headers: o, auth: s } = e; e.headers = o = xr.from(o), e.url = YC(QC(e.baseURL, e.url), r.params, r.paramsSerializer), s && o.set( "Authorization", "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : "")) ); let l; if (H.isFormData(t)) { if (dn.hasStandardBrowserEnv || dn.hasStandardBrowserWebWorkerEnv) o.setContentType(void 0); else if ((l = o.getContentType()) !== !1) { const [u, ...c] = l ? l.split(";").map((f) => f.trim()).filter(Boolean) : []; o.setContentType([u || "multipart/form-data", ...c].join("; ")); } } if (dn.hasStandardBrowserEnv && (n && H.isFunction(n) && (n = n(e)), n || n !== !1 && BP(e.url))) { const u = a && i && VP.read(i); u && o.set(a, u); } return e; }, GP = typeof XMLHttpRequest < "u", $P = GP && function(r) { return new Promise(function(t, n) { const a = jC(r); let i = a.data; const o = xr.from(a.headers).normalize(); let { responseType: s } = a, l; function u() { a.cancelToken && a.cancelToken.unsubscribe(l), a.signal && a.signal.removeEventListener("abort", l); } let c = new XMLHttpRequest(); c.open(a.method.toUpperCase(), a.url, !0), c.timeout = a.timeout; function f() { if (!c) return; const d = xr.from( "getAllResponseHeaders" in c && c.getAllResponseHeaders() ), p = { data: !s || s === "text" || s === "json" ? c.responseText : c.response, status: c.status, statusText: c.statusText, headers: d, config: r, request: c }; KC(function(m) { t(m), u(); }, function(m) { n(m), u(); }, p), c = null; } "onloadend" in c ? c.onloadend = f : c.onreadystatechange = function() { !c || c.readyState !== 4 || c.status === 0 && !(c.responseURL && c.responseURL.indexOf("file:") === 0) || setTimeout(f); }, c.onabort = function() { c && (n(new Be("Request aborted", Be.ECONNABORTED, a, c)), c = null); }, c.onerror = function() { n(new Be("Network Error", Be.ERR_NETWORK, a, c)), c = null; }, c.ontimeout = function() { let v = a.timeout ? "timeout of " + a.timeout + "ms exceeded" : "timeout exceeded"; const p = a.transitional || qC; a.timeoutErrorMessage && (v = a.timeoutErrorMessage), n(new Be( v, p.clarifyTimeoutError ? Be.ETIMEDOUT : Be.ECONNABORTED, a, c )), c = null; }, i === void 0 && o.setContentType(null), "setRequestHeader" in c && H.forEach(o.toJSON(), function(v, p) { c.setRequestHeader(p, v); }), H.isUndefined(a.withCredentials) || (c.withCredentials = !!a.withCredentials), s && s !== "json" && (c.responseType = a.responseType), typeof a.onDownloadProgress == "function" && c.addEventListener("progress", Yf(a.onDownloadProgress, !0)), typeof a.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", Yf(a.onUploadProgress)), (a.cancelToken || a.signal) && (l = (d) => { c && (n(!d || d.type ? new Ps(null, r, c) : d), c.abort(), c = null); }, a.cancelToken && a.cancelToken.subscribe(l), a.signal && (a.signal.aborted ? l() : a.signal.addEventListener("abort", l))); const h = RP(a.url); if (h && dn.protocols.indexOf(h) === -1) { n(new Be("Unsupported protocol " + h + ":", Be.ERR_BAD_REQUEST, r)); return; } c.send(i || null); }); }, UP = (r, e) => { let t = new AbortController(), n; const a = function(l) { if (!n) { n = !0, o(); const u = l instanceof Error ? l : this.reason; t.abort(u instanceof Be ? u : new Ps(u instanceof Error ? u.message : u)); } }; let i = e && setTimeout(() => { a(new Be(`timeout ${e} of ms exceeded`, Be.ETIMEDOUT)); }, e); const o = () => { r && (i && clearTimeout(i), i = null, r.forEach((l) => { l && (l.removeEventListener ? l.removeEventListener("abort", a) : l.unsubscribe(a)); }), r = null); }; r.forEach((l) => l && l.addEventListener && l.addEventListener("abort", a)); const { signal: s } = t; return s.unsubscribe = o, [s, () => { i && clearTimeout(i), i = null; }]; }, HP = function* (r, e) { let t = r.byteLength; if (t < e) { yield r; return; } let n = 0, a; for (; n < t; ) a = n + e, yield r.slice(n, a), n = a; }, WP = async function* (r, e, t) { for await (const n of r) yield* HP(ArrayBuffer.isView(n) ? n : await t(String(n)), e); }, hx = (r, e, t, n, a) => { const i = WP(r, e, a); let o = 0; return new ReadableStream({ type: "bytes", async pull(s) { const { done: l, value: u } = await i.next(); if (l) { s.close(), n(); return; } let c = u.byteLength; t && t(o += c), s.enqueue(new Uint8Array(u)); }, cancel(s) { return n(s), i.return(); } }, { highWaterMark: 2 }); }, dx = (r, e) => { const t = r != null; return (n) => setTimeout(() => e({ lengthComputable: t, total: r, loaded: n })); }, nd = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", JC = nd && typeof ReadableStream == "function", xm = nd && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((r) => (e) => r.encode(e))(new TextEncoder()) : async (r) => new Uint8Array(await new Response(r).arrayBuffer())), YP = JC && (() => { let r = !1; const e = new Request(dn.origin, { body: new ReadableStream(), method: "POST", get duplex() { return r = !0, "half"; } }).headers.has("Content-Type"); return r && !e; })(), vx = 64 * 1024, wm = JC && !!(() => { try { return H.isReadableStream(new Response("").body); } catch { } })(), qf = { stream: wm && ((r) => r.body) }; nd && ((r) => { ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => { !qf[e] && (qf[e] = H.isFunction(r[e]) ? (t) => t[e]() : (t, n) => { throw new Be(`Response type '${e}' is not supported`, Be.ERR_NOT_SUPPORT, n); }); }); })(new Response()); const qP = async (r) => { if (r == null) return 0; if (H.isBlob(r)) return r.size; if (H.isSpecCompliantForm(r)) return (await new Request(r).arrayBuffer()).byteLength; if (H.isArrayBufferView(r)) return r.byteLength; if (H.isURLSearchParams(r) && (r = r + ""), H.isString(r)) return (await xm(r)).byteLength; }, ZP = async (r, e) => { const t = H.toFiniteNumber(r.getContentLength()); return t ?? qP(e); }, XP = nd && (async (r) => { let { url: e, method: t, data: n, signal: a, cancelToken: i, timeout: o, onDownloadProgress: s, onUploadProgress: l, responseType: u, headers: c, withCredentials: f = "same-origin", fetchOptions: h } = jC(r); u = u ? (u + "").toLowerCase() : "text"; let [d, v] = a || i || o ? UP([a, i], o) : [], p, g; const m = () => { !p && setTimeout(() => { d && d.unsubscribe(); }), p = !0; }; let y; try { if (l && YP && t !== "get" && t !== "head" && (y = await ZP(c, n)) !== 0) { let x = new Request(e, { method: "POST", body: n, duplex: "half" }), S; H.isFormData(n) && (S = x.headers.get("content-type")) && c.setContentType(S), x.body && (n = hx(x.body, vx, dx( y, Yf(l) ), null, xm)); } H.isString(f) || (f = f ? "cors" : "omit"), g = new Request(e, { ...h, signal: d, method: t.toUpperCase(), headers: c.normalize().toJSON(), body: n, duplex: "half", withCredentials: f }); let _ = await fetch(g); const b = wm && (u === "stream" || u === "response"); if (wm && (s || b)) { const x = {}; ["status", "statusText", "headers"].forEach((T) => { x[T] = _[T]; }); const S = H.toFiniteNumber(_.headers.get("content-length")); _ = new Response( hx(_.body, vx, s && dx( S, Yf(s, !0) ), b && m, xm), x ); } u = u || "text"; let w = await qf[H.findKey(qf, u) || "text"](_, r); return !b && m(), v && v(), await new Promise((x, S) => { KC(x, S, { data: w, headers: xr.from(_.headers), status: _.status, statusText: _.statusText, config: r, request: g }); }); } catch (_) { throw m(), _ && _.name === "TypeError" && /fetch/i.test(_.message) ? Object.assign( new Be("Network Error", Be.ERR_NETWORK, r, g), { cause: _.cause || _ } ) : Be.from(_, _ && _.code, r, g); } }), Sm = { http: hP, xhr: $P, fetch: XP }; H.forEach(Sm, (r, e) => { if (r) { try { Object.defineProperty(r, "name", { value: e }); } catch { } Object.defineProperty(r, "adapterName", { value: e }); } }); const px = (r) => `- ${r}`, KP = (r) => H.isFunction(r) || r === null || r === !1, eM = { getAdapter: (r) => { r = H.isArray(r) ? r : [r]; const { length: e } = r; let t, n; const a = {}; for (let i = 0; i < e; i++) { t = r[i]; let o; if (n = t, !KP(t) && (n = Sm[(o = String(t)).toLowerCase()], n === void 0)) throw new Be(`Unknown adapter '${o}'`); if (n) break; a[o || "#" + i] = n; } if (!n) { const i = Object.entries(a).map( ([s, l]) => `adapter ${s} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build") ); let o = e ? i.length > 1 ? `since : ` + i.map(px).join(` `) : " " + px(i[0]) : "as no adapter specified"; throw new Be( "There is no suitable adapter to dispatch the request " + o, "ERR_NOT_SUPPORT" ); } return n; }, adapters: Sm }; function rv(r) { if (r.cancelToken && r.cancelToken.throwIfRequested(), r.signal && r.signal.aborted) throw new Ps(null, r); } function gx(r) { return rv(r), r.headers = xr.from(r.headers), r.data = tv.call( r, r.transformRequest ), ["post", "put", "patch"].indexOf(r.method) !== -1 && r.headers.setContentType("application/x-www-form-urlencoded", !1), eM.getAdapter(r.adapter || Uu.adapter)(r).then(function(n) { return rv(r), n.data = tv.call( r, r.transformResponse, n ), n.headers = xr.from(n.headers), n; }, function(n) { return XC(n) || (rv(r), n && n.response && (n.response.data = tv.call( r, r.transformResponse, n.response ), n.response.headers = xr.from(n.response.headers))), Promise.reject(n); }); } const tM = "1.7.2", C0 = {}; ["object", "boolean", "number", "function", "string", "symbol"].forEach((r, e) => { C0[r] = function(n) { return typeof n === r || "a" + (e < 1 ? "n " : " ") + r; }; }); const mx = {}; C0.transitional = function(e, t, n) { function a(i, o) { return "[Axios v" + tM + "] Transitional option '" + i + "'" + o + (n ? ". " + n : ""); } return (i, o, s) => { if (e === !1) throw new Be( a(o, " has been removed" + (t ? " in " + t : "")), Be.ERR_DEPRECATED ); return t && !mx[o] && (mx[o] = !0, console.warn( a( o, " has been deprecated since v" + t + " and will be removed in the near future" ) )), e ? e(i, o, s) : !0; }; }; function QP(r, e, t) { if (typeof r != "object") throw new Be("options must be an object", Be.ERR_BAD_OPTION_VALUE); const n = Object.keys(r); let a = n.length; for (; a-- > 0; ) { const i = n[a], o = e[i]; if (o) { const s = r[i], l = s === void 0 || o(s, i, r); if (l !== !0) throw new Be("option " + i + " must be " + l, Be.ERR_BAD_OPTION_VALUE); continue; } if (t !== !0) throw new Be("Unknown option " + i, Be.ERR_BAD_OPTION); } } const Tm = { assertOptions: QP, validators: C0 }, Sa = Tm.validators; let eo = class { constructor(e) { this.defaults = e, this.interceptors = { request: new ux(), response: new ux() }; } /** * Dispatch a request * * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) * @param {?Object} config * * @returns {Promise} The Promise to be fulfilled */ async request(e, t) { try { return await this._request(e, t); } catch (n) { if (n instanceof Error) { let a; Error.captureStackTrace ? Error.captureStackTrace(a = {}) : a = new Error(); const i = a.stack ? a.stack.replace(/^.+\n/, "") : ""; try { n.stack ? i && !String(n.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (n.stack += ` ` + i) : n.stack = i; } catch { } } throw n; } } _request(e, t) { typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = ho(this.defaults, t); const { transitional: n, paramsSerializer: a, headers: i } = t; n !== void 0 && Tm.assertOptions(n, { silentJSONParsing: Sa.transitional(Sa.boolean), forcedJSONParsing: Sa.transitional(Sa.boolean), clarifyTimeoutError: Sa.transitional(Sa.boolean) }, !1), a != null && (H.isFunction(a) ? t.paramsSerializer = { serialize: a } : Tm.assertOptions(a, { encode: Sa.function, serialize: Sa.function }, !0)), t.method = (t.method || this.defaults.method || "get").toLowerCase(); let o = i && H.merge( i.common, i[t.method] ); i && H.forEach( ["delete", "get", "head", "post", "put", "patch", "common"], (v) => { delete i[v]; } ), t.headers = xr.concat(o, i); const s = []; let l = !0; this.interceptors.request.forEach(function(p) { typeof p.runWhen == "function" && p.runWhen(t) === !1 || (l = l && p.synchronous, s.unshift(p.fulfilled, p.rejected)); }); const u = []; this.interceptors.response.forEach(function(p) { u.push(p.fulfilled, p.rejected); }); let c, f = 0, h; if (!l) { const v = [gx.bind(this), void 0]; for (v.unshift.apply(v, s), v.push.apply(v, u), h = v.length, c = Promise.resolve(t); f < h; ) c = c.then(v[f++], v[f++]); return c; } h = s.length; let d = t; for (f = 0; f < h; ) { const v = s[f++], p = s[f++]; try { d = v(d); } catch (g) { p.call(this, g); break; } } try { c = gx.call(this, d); } catch (v) { return Promise.reject(v); } for (f = 0, h = u.length; f < h; ) c = c.then(u[f++], u[f++]); return c; } getUri(e) { e = ho(this.defaults, e); const t = QC(e.baseURL, e.url); return YC(t, e.params, e.paramsSerializer); } }; H.forEach(["delete", "get", "head", "options"], function(e) { eo.prototype[e] = function(t, n) { return this.request(ho(n || {}, { method: e, url: t, data: (n || {}).data })); }; }); H.forEach(["post", "put", "patch"], function(e) { function t(n) { return function(i, o, s) { return this.request(ho(s || {}, { method: e, headers: n ? { "Content-Type": "multipart/form-data" } : {}, url: i, data: o })); }; } eo.prototype[e] = t(), eo.prototype[e + "Form"] = t(!0); }); let jP = class rM { constructor(e) { if (typeof e != "function") throw new TypeError("executor must be a function."); let t; this.promise = new Promise(function(i) { t = i; }); const n = this; this.promise.then((a) => { if (!n._listeners) return; let i = n._listeners.length; for (; i-- > 0; ) n._listeners[i](a); n._listeners = null; }), this.promise.then = (a) => { let i; const o = new Promise((s) => { n.subscribe(s), i = s; }).then(a); return o.cancel = function() { n.unsubscribe(i); }, o; }, e(function(i, o, s) { n.reason || (n.reason = new Ps(i, o, s), t(n.reason)); }); } /** * Throws a `CanceledError` if cancellation has been requested. */ throwIfRequested() { if (this.reason) throw this.reason; } /** * Subscribe to the cancel signal */ subscribe(e) { if (this.reason) { e(this.reason); return; } this._listeners ? this._listeners.push(e) : this._listeners = [e]; } /** * Unsubscribe from the cancel signal */ unsubscribe(e) { if (!this._listeners) return; const t = this._listeners.indexOf(e); t !== -1 && this._listeners.splice(t, 1); } /** * Returns an object that contains a new `CancelToken` and a function that, when called, * cancels the `CancelToken`. */ static source() { let e; return { token: new rM(function(a) { e = a; }), cancel: e }; } }; function JP(r) { return function(t) { return r.apply(null, t); }; } function eB(r) { return H.isObject(r) && r.isAxiosError === !0; } const Em = { 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(Em).forEach(([r, e]) => { Em[e] = r; }); function nM(r) { const e = new eo(r), t = RC(eo.prototype.request, e); return H.extend(t, eo.prototype, e, { allOwnKeys: !0 }), H.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(a) { return nM(ho(r, a)); }, t; } const Re = nM(Uu); Re.Axios = eo; Re.CanceledError = Ps; Re.CancelToken = jP; Re.isCancel = XC; Re.VERSION = tM; Re.toFormData = rd; Re.AxiosError = Be; Re.Cancel = Re.CanceledError; Re.all = function(e) { return Promise.all(e); }; Re.spread = JP; Re.isAxiosError = eB; Re.mergeConfig = ho; Re.AxiosHeaders = xr; Re.formToJSON = (r) => ZC(H.isHTMLForm(r) ? new FormData(r) : r); Re.getAdapter = eM.getAdapter; Re.HttpStatusCode = Em; Re.default = Re; const { Axios: yie, AxiosError: _ie, CanceledError: bie, isCancel