@opengis/admin
Version:
This project Softpro Admin
1,648 lines • 2.74 MB
JavaScript
import { ref as ot, getCurrentInstance as ki, onMounted as Oo, resolveComponent as Ge, createBlock as Pt, createCommentVNode as vt, openBlock as X, withCtx as Ct, createElementVNode as L, createVNode as Fe, createElementBlock as ne, Fragment as wt, inject as yu, shallowRef as Bz, defineComponent as qs, unref as To, shallowReactive as Fz, reactive as $z, computed as Mr, h as Do, provide as Q0, watch as Hs, watchEffect as hT, nextTick as Ix, normalizeClass as Qt, toDisplayString as je, withDirectives as wi, vModelText as Px, renderList as Ut, normalizeStyle as ra, vModelCheckbox as sc, renderSlot as Rx, resolveDynamicComponent as gs, vModelRadio as Vz, createStaticVNode as mo, vShow as Fp, withModifiers as Ul, onUnmounted as jz, TransitionGroup as Hz, onBeforeUnmount as $p, markRaw as Uz, customRef as Wz, Transition as Vp, createTextVNode as Lr, Teleport as Ox, useModel as jp, mergeModels as qz, mergeProps as Wf, createSlots as Gz, createApp as zx, defineCustomElement as Yz } from "vue";
import Zz from "vuedraggable";
function fT(t, e) {
return function() {
return t.apply(e, arguments);
};
}
const { toString: Xz } = Object.prototype, { getPrototypeOf: Lx } = Object, { iterator: qy, toStringTag: pT } = Symbol, Gy = /* @__PURE__ */ ((t) => (e) => {
const n = Xz.call(e);
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
})(/* @__PURE__ */ Object.create(null)), zo = (t) => (t = t.toLowerCase(), (e) => Gy(e) === t), Yy = (t) => (e) => typeof e === t, { isArray: yh } = Array, pp = Yy("undefined");
function Kz(t) {
return t !== null && !pp(t) && t.constructor !== null && !pp(t.constructor) && bs(t.constructor.isBuffer) && t.constructor.isBuffer(t);
}
const mT = zo("ArrayBuffer");
function Jz(t) {
let e;
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && mT(t.buffer), e;
}
const Qz = Yy("string"), bs = Yy("function"), gT = Yy("number"), Zy = (t) => t !== null && typeof t == "object", eL = (t) => t === !0 || t === !1, Vg = (t) => {
if (Gy(t) !== "object")
return !1;
const e = Lx(t);
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(pT in t) && !(qy in t);
}, tL = zo("Date"), nL = zo("File"), rL = zo("Blob"), iL = zo("FileList"), sL = (t) => Zy(t) && bs(t.pipe), oL = (t) => {
let e;
return t && (typeof FormData == "function" && t instanceof FormData || bs(t.append) && ((e = Gy(t)) === "formdata" || // detect form-data instance
e === "object" && bs(t.toString) && t.toString() === "[object FormData]"));
}, aL = zo("URLSearchParams"), [lL, cL, uL, dL] = ["ReadableStream", "Request", "Response", "Headers"].map(zo), hL = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
function Hp(t, e, { allOwnKeys: n = !1 } = {}) {
if (t === null || typeof t > "u")
return;
let r, i;
if (typeof t != "object" && (t = [t]), yh(t))
for (r = 0, i = t.length; r < i; r++)
e.call(null, t[r], r, t);
else {
const s = n ? Object.getOwnPropertyNames(t) : Object.keys(t), a = s.length;
let o;
for (r = 0; r < a; r++)
o = s[r], e.call(null, t[o], o, t);
}
}
function yT(t, e) {
e = e.toLowerCase();
const n = Object.keys(t);
let r = n.length, i;
for (; r-- > 0; )
if (i = n[r], e === i.toLowerCase())
return i;
return null;
}
const tu = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, vT = (t) => !pp(t) && t !== tu;
function g_() {
const { caseless: t } = vT(this) && this || {}, e = {}, n = (r, i) => {
const s = t && yT(e, i) || i;
Vg(e[s]) && Vg(r) ? e[s] = g_(e[s], r) : Vg(r) ? e[s] = g_({}, r) : yh(r) ? e[s] = r.slice() : e[s] = r;
};
for (let r = 0, i = arguments.length; r < i; r++)
arguments[r] && Hp(arguments[r], n);
return e;
}
const fL = (t, e, n, { allOwnKeys: r } = {}) => (Hp(e, (i, s) => {
n && bs(i) ? t[s] = fT(i, n) : t[s] = i;
}, { allOwnKeys: r }), t), pL = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), mL = (t, e, n, r) => {
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
value: e.prototype
}), n && Object.assign(t.prototype, n);
}, gL = (t, e, n, r) => {
let i, s, a;
const o = {};
if (e = e || {}, t == null) return e;
do {
for (i = Object.getOwnPropertyNames(t), s = i.length; s-- > 0; )
a = i[s], (!r || r(a, t, e)) && !o[a] && (e[a] = t[a], o[a] = !0);
t = n !== !1 && Lx(t);
} while (t && (!n || n(t, e)) && t !== Object.prototype);
return e;
}, yL = (t, e, n) => {
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
const r = t.indexOf(e, n);
return r !== -1 && r === n;
}, vL = (t) => {
if (!t) return null;
if (yh(t)) return t;
let e = t.length;
if (!gT(e)) return null;
const n = new Array(e);
for (; e-- > 0; )
n[e] = t[e];
return n;
}, bL = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && Lx(Uint8Array)), _L = (t, e) => {
const r = (t && t[qy]).call(t);
let i;
for (; (i = r.next()) && !i.done; ) {
const s = i.value;
e.call(t, s[0], s[1]);
}
}, xL = (t, e) => {
let n;
const r = [];
for (; (n = t.exec(e)) !== null; )
r.push(n);
return r;
}, wL = zo("HTMLFormElement"), kL = (t) => t.toLowerCase().replace(
/[-_\s]([a-z\d])(\w*)/g,
function(n, r, i) {
return r.toUpperCase() + i;
}
), mS = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), SL = zo("RegExp"), bT = (t, e) => {
const n = Object.getOwnPropertyDescriptors(t), r = {};
Hp(n, (i, s) => {
let a;
(a = e(i, s, t)) !== !1 && (r[s] = a || i);
}), Object.defineProperties(t, r);
}, EL = (t) => {
bT(t, (e, n) => {
if (bs(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
return !1;
const r = t[n];
if (bs(r)) {
if (e.enumerable = !1, "writable" in e) {
e.writable = !1;
return;
}
e.set || (e.set = () => {
throw Error("Can not rewrite read-only method '" + n + "'");
});
}
});
}, CL = (t, e) => {
const n = {}, r = (i) => {
i.forEach((s) => {
n[s] = !0;
});
};
return yh(t) ? r(t) : r(String(t).split(e)), n;
}, TL = () => {
}, AL = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
function ML(t) {
return !!(t && bs(t.append) && t[pT] === "FormData" && t[qy]);
}
const DL = (t) => {
const e = new Array(10), n = (r, i) => {
if (Zy(r)) {
if (e.indexOf(r) >= 0)
return;
if (!("toJSON" in r)) {
e[i] = r;
const s = yh(r) ? [] : {};
return Hp(r, (a, o) => {
const f = n(a, i + 1);
!pp(f) && (s[o] = f);
}), e[i] = void 0, s;
}
}
return r;
};
return n(t, 0);
}, IL = zo("AsyncFunction"), PL = (t) => t && (Zy(t) || bs(t)) && bs(t.then) && bs(t.catch), _T = ((t, e) => t ? setImmediate : e ? ((n, r) => (tu.addEventListener("message", ({ source: i, data: s }) => {
i === tu && s === n && r.length && r.shift()();
}, !1), (i) => {
r.push(i), tu.postMessage(n, "*");
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
typeof setImmediate == "function",
bs(tu.postMessage)
), RL = typeof queueMicrotask < "u" ? queueMicrotask.bind(tu) : typeof process < "u" && process.nextTick || _T, OL = (t) => t != null && bs(t[qy]), Be = {
isArray: yh,
isArrayBuffer: mT,
isBuffer: Kz,
isFormData: oL,
isArrayBufferView: Jz,
isString: Qz,
isNumber: gT,
isBoolean: eL,
isObject: Zy,
isPlainObject: Vg,
isReadableStream: lL,
isRequest: cL,
isResponse: uL,
isHeaders: dL,
isUndefined: pp,
isDate: tL,
isFile: nL,
isBlob: rL,
isRegExp: SL,
isFunction: bs,
isStream: sL,
isURLSearchParams: aL,
isTypedArray: bL,
isFileList: iL,
forEach: Hp,
merge: g_,
extend: fL,
trim: hL,
stripBOM: pL,
inherits: mL,
toFlatObject: gL,
kindOf: Gy,
kindOfTest: zo,
endsWith: yL,
toArray: vL,
forEachEntry: _L,
matchAll: xL,
isHTMLForm: wL,
hasOwnProperty: mS,
hasOwnProp: mS,
// an alias to avoid ESLint no-prototype-builtins detection
reduceDescriptors: bT,
freezeMethods: EL,
toObjectSet: CL,
toCamelCase: kL,
noop: TL,
toFiniteNumber: AL,
findKey: yT,
global: tu,
isContextDefined: vT,
isSpecCompliantForm: ML,
toJSONObject: DL,
isAsyncFn: IL,
isThenable: PL,
setImmediate: _T,
asap: RL,
isIterable: OL
};
function mn(t, e, n, r, i) {
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), i && (this.response = i, this.status = i.status ? i.status : null);
}
Be.inherits(mn, 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: Be.toJSONObject(this.config),
code: this.code,
status: this.status
};
}
});
const xT = mn.prototype, wT = {};
[
"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((t) => {
wT[t] = { value: t };
});
Object.defineProperties(mn, wT);
Object.defineProperty(xT, "isAxiosError", { value: !0 });
mn.from = (t, e, n, r, i, s) => {
const a = Object.create(xT);
return Be.toFlatObject(t, a, function(f) {
return f !== Error.prototype;
}, (o) => o !== "isAxiosError"), mn.call(a, t.message, e, n, r, i), a.cause = t, a.name = t.name, s && Object.assign(a, s), a;
};
const zL = null;
function y_(t) {
return Be.isPlainObject(t) || Be.isArray(t);
}
function kT(t) {
return Be.endsWith(t, "[]") ? t.slice(0, -2) : t;
}
function gS(t, e, n) {
return t ? t.concat(e).map(function(i, s) {
return i = kT(i), !n && s ? "[" + i + "]" : i;
}).join(n ? "." : "") : e;
}
function LL(t) {
return Be.isArray(t) && !t.some(y_);
}
const NL = Be.toFlatObject(Be, {}, null, function(e) {
return /^is[A-Z]/.test(e);
});
function Xy(t, e, n) {
if (!Be.isObject(t))
throw new TypeError("target must be an object");
e = e || new FormData(), n = Be.toFlatObject(n, {
metaTokens: !0,
dots: !1,
indexes: !1
}, !1, function(P, z) {
return !Be.isUndefined(z[P]);
});
const r = n.metaTokens, i = n.visitor || g, s = n.dots, a = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && Be.isSpecCompliantForm(e);
if (!Be.isFunction(i))
throw new TypeError("visitor must be a function");
function m(M) {
if (M === null) return "";
if (Be.isDate(M))
return M.toISOString();
if (Be.isBoolean(M))
return M.toString();
if (!f && Be.isBlob(M))
throw new mn("Blob is not supported. Use a Buffer instead.");
return Be.isArrayBuffer(M) || Be.isTypedArray(M) ? f && typeof Blob == "function" ? new Blob([M]) : Buffer.from(M) : M;
}
function g(M, P, z) {
let F = M;
if (M && !z && typeof M == "object") {
if (Be.endsWith(P, "{}"))
P = r ? P : P.slice(0, -2), M = JSON.stringify(M);
else if (Be.isArray(M) && LL(M) || (Be.isFileList(M) || Be.endsWith(P, "[]")) && (F = Be.toArray(M)))
return P = kT(P), F.forEach(function(K, G) {
!(Be.isUndefined(K) || K === null) && e.append(
// eslint-disable-next-line no-nested-ternary
a === !0 ? gS([P], G, s) : a === null ? P : P + "[]",
m(K)
);
}), !1;
}
return y_(M) ? !0 : (e.append(gS(z, P, s), m(M)), !1);
}
const _ = [], k = Object.assign(NL, {
defaultVisitor: g,
convertValue: m,
isVisitable: y_
});
function C(M, P) {
if (!Be.isUndefined(M)) {
if (_.indexOf(M) !== -1)
throw Error("Circular reference detected in " + P.join("."));
_.push(M), Be.forEach(M, function(F, Y) {
(!(Be.isUndefined(F) || F === null) && i.call(
e,
F,
Be.isString(Y) ? Y.trim() : Y,
P,
k
)) === !0 && C(F, P ? P.concat(Y) : [Y]);
}), _.pop();
}
}
if (!Be.isObject(t))
throw new TypeError("data must be an object");
return C(t), e;
}
function yS(t) {
const e = {
"!": "%21",
"'": "%27",
"(": "%28",
")": "%29",
"~": "%7E",
"%20": "+",
"%00": "\0"
};
return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) {
return e[r];
});
}
function Nx(t, e) {
this._pairs = [], t && Xy(t, this, e);
}
const ST = Nx.prototype;
ST.append = function(e, n) {
this._pairs.push([e, n]);
};
ST.toString = function(e) {
const n = e ? function(r) {
return e.call(this, r, yS);
} : yS;
return this._pairs.map(function(i) {
return n(i[0]) + "=" + n(i[1]);
}, "").join("&");
};
function BL(t) {
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
}
function ET(t, e, n) {
if (!e)
return t;
const r = n && n.encode || BL;
Be.isFunction(n) && (n = {
serialize: n
});
const i = n && n.serialize;
let s;
if (i ? s = i(e, n) : s = Be.isURLSearchParams(e) ? e.toString() : new Nx(e, n).toString(r), s) {
const a = t.indexOf("#");
a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + s;
}
return t;
}
class vS {
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, n, r) {
return this.handlers.push({
fulfilled: e,
rejected: n,
synchronous: r ? r.synchronous : !1,
runWhen: r ? r.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) {
Be.forEach(this.handlers, function(r) {
r !== null && e(r);
});
}
}
const CT = {
silentJSONParsing: !0,
forcedJSONParsing: !0,
clarifyTimeoutError: !1
}, FL = typeof URLSearchParams < "u" ? URLSearchParams : Nx, $L = typeof FormData < "u" ? FormData : null, VL = typeof Blob < "u" ? Blob : null, jL = {
isBrowser: !0,
classes: {
URLSearchParams: FL,
FormData: $L,
Blob: VL
},
protocols: ["http", "https", "file", "blob", "url", "data"]
}, Bx = typeof window < "u" && typeof document < "u", v_ = typeof navigator == "object" && navigator || void 0, HL = Bx && (!v_ || ["ReactNative", "NativeScript", "NS"].indexOf(v_.product) < 0), UL = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", WL = Bx && window.location.href || "http://localhost", qL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
hasBrowserEnv: Bx,
hasStandardBrowserEnv: HL,
hasStandardBrowserWebWorkerEnv: UL,
navigator: v_,
origin: WL
}, Symbol.toStringTag, { value: "Module" })), Ni = {
...qL,
...jL
};
function GL(t, e) {
return Xy(t, new Ni.classes.URLSearchParams(), Object.assign({
visitor: function(n, r, i, s) {
return Ni.isNode && Be.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
}
}, e));
}
function YL(t) {
return Be.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
}
function ZL(t) {
const e = {}, n = Object.keys(t);
let r;
const i = n.length;
let s;
for (r = 0; r < i; r++)
s = n[r], e[s] = t[s];
return e;
}
function TT(t) {
function e(n, r, i, s) {
let a = n[s++];
if (a === "__proto__") return !0;
const o = Number.isFinite(+a), f = s >= n.length;
return a = !a && Be.isArray(i) ? i.length : a, f ? (Be.hasOwnProp(i, a) ? i[a] = [i[a], r] : i[a] = r, !o) : ((!i[a] || !Be.isObject(i[a])) && (i[a] = []), e(n, r, i[a], s) && Be.isArray(i[a]) && (i[a] = ZL(i[a])), !o);
}
if (Be.isFormData(t) && Be.isFunction(t.entries)) {
const n = {};
return Be.forEachEntry(t, (r, i) => {
e(YL(r), i, n, 0);
}), n;
}
return null;
}
function XL(t, e, n) {
if (Be.isString(t))
try {
return (e || JSON.parse)(t), Be.trim(t);
} catch (r) {
if (r.name !== "SyntaxError")
throw r;
}
return (n || JSON.stringify)(t);
}
const Up = {
transitional: CT,
adapter: ["xhr", "http", "fetch"],
transformRequest: [function(e, n) {
const r = n.getContentType() || "", i = r.indexOf("application/json") > -1, s = Be.isObject(e);
if (s && Be.isHTMLForm(e) && (e = new FormData(e)), Be.isFormData(e))
return i ? JSON.stringify(TT(e)) : e;
if (Be.isArrayBuffer(e) || Be.isBuffer(e) || Be.isStream(e) || Be.isFile(e) || Be.isBlob(e) || Be.isReadableStream(e))
return e;
if (Be.isArrayBufferView(e))
return e.buffer;
if (Be.isURLSearchParams(e))
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
let o;
if (s) {
if (r.indexOf("application/x-www-form-urlencoded") > -1)
return GL(e, this.formSerializer).toString();
if ((o = Be.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
const f = this.env && this.env.FormData;
return Xy(
o ? { "files[]": e } : e,
f && new f(),
this.formSerializer
);
}
}
return s || i ? (n.setContentType("application/json", !1), XL(e)) : e;
}],
transformResponse: [function(e) {
const n = this.transitional || Up.transitional, r = n && n.forcedJSONParsing, i = this.responseType === "json";
if (Be.isResponse(e) || Be.isReadableStream(e))
return e;
if (e && Be.isString(e) && (r && !this.responseType || i)) {
const a = !(n && n.silentJSONParsing) && i;
try {
return JSON.parse(e);
} catch (o) {
if (a)
throw o.name === "SyntaxError" ? mn.from(o, mn.ERR_BAD_RESPONSE, this, null, this.response) : o;
}
}
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: Ni.classes.FormData,
Blob: Ni.classes.Blob
},
validateStatus: function(e) {
return e >= 200 && e < 300;
},
headers: {
common: {
Accept: "application/json, text/plain, */*",
"Content-Type": void 0
}
}
};
Be.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
Up.headers[t] = {};
});
const KL = Be.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"
]), JL = (t) => {
const e = {};
let n, r, i;
return t && t.split(`
`).forEach(function(a) {
i = a.indexOf(":"), n = a.substring(0, i).trim().toLowerCase(), r = a.substring(i + 1).trim(), !(!n || e[n] && KL[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
}), e;
}, bS = Symbol("internals");
function zf(t) {
return t && String(t).trim().toLowerCase();
}
function jg(t) {
return t === !1 || t == null ? t : Be.isArray(t) ? t.map(jg) : String(t);
}
function QL(t) {
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
let r;
for (; r = n.exec(t); )
e[r[1]] = r[2];
return e;
}
const eN = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
function eb(t, e, n, r, i) {
if (Be.isFunction(r))
return r.call(this, e, n);
if (i && (e = n), !!Be.isString(e)) {
if (Be.isString(r))
return e.indexOf(r) !== -1;
if (Be.isRegExp(r))
return r.test(e);
}
}
function tN(t) {
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, n, r) => n.toUpperCase() + r);
}
function nN(t, e) {
const n = Be.toCamelCase(" " + e);
["get", "set", "has"].forEach((r) => {
Object.defineProperty(t, r + n, {
value: function(i, s, a) {
return this[r].call(this, e, i, s, a);
},
configurable: !0
});
});
}
let _s = class {
constructor(e) {
e && this.set(e);
}
set(e, n, r) {
const i = this;
function s(o, f, m) {
const g = zf(f);
if (!g)
throw new Error("header name must be a non-empty string");
const _ = Be.findKey(i, g);
(!_ || i[_] === void 0 || m === !0 || m === void 0 && i[_] !== !1) && (i[_ || f] = jg(o));
}
const a = (o, f) => Be.forEach(o, (m, g) => s(m, g, f));
if (Be.isPlainObject(e) || e instanceof this.constructor)
a(e, n);
else if (Be.isString(e) && (e = e.trim()) && !eN(e))
a(JL(e), n);
else if (Be.isObject(e) && Be.isIterable(e)) {
let o = {}, f, m;
for (const g of e) {
if (!Be.isArray(g))
throw TypeError("Object iterator must return a key-value pair");
o[m = g[0]] = (f = o[m]) ? Be.isArray(f) ? [...f, g[1]] : [f, g[1]] : g[1];
}
a(o, n);
} else
e != null && s(n, e, r);
return this;
}
get(e, n) {
if (e = zf(e), e) {
const r = Be.findKey(this, e);
if (r) {
const i = this[r];
if (!n)
return i;
if (n === !0)
return QL(i);
if (Be.isFunction(n))
return n.call(this, i, r);
if (Be.isRegExp(n))
return n.exec(i);
throw new TypeError("parser must be boolean|regexp|function");
}
}
}
has(e, n) {
if (e = zf(e), e) {
const r = Be.findKey(this, e);
return !!(r && this[r] !== void 0 && (!n || eb(this, this[r], r, n)));
}
return !1;
}
delete(e, n) {
const r = this;
let i = !1;
function s(a) {
if (a = zf(a), a) {
const o = Be.findKey(r, a);
o && (!n || eb(r, r[o], o, n)) && (delete r[o], i = !0);
}
}
return Be.isArray(e) ? e.forEach(s) : s(e), i;
}
clear(e) {
const n = Object.keys(this);
let r = n.length, i = !1;
for (; r--; ) {
const s = n[r];
(!e || eb(this, this[s], s, e, !0)) && (delete this[s], i = !0);
}
return i;
}
normalize(e) {
const n = this, r = {};
return Be.forEach(this, (i, s) => {
const a = Be.findKey(r, s);
if (a) {
n[a] = jg(i), delete n[s];
return;
}
const o = e ? tN(s) : String(s).trim();
o !== s && delete n[s], n[o] = jg(i), r[o] = !0;
}), this;
}
concat(...e) {
return this.constructor.concat(this, ...e);
}
toJSON(e) {
const n = /* @__PURE__ */ Object.create(null);
return Be.forEach(this, (r, i) => {
r != null && r !== !1 && (n[i] = e && Be.isArray(r) ? r.join(", ") : r);
}), n;
}
[Symbol.iterator]() {
return Object.entries(this.toJSON())[Symbol.iterator]();
}
toString() {
return Object.entries(this.toJSON()).map(([e, n]) => e + ": " + n).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, ...n) {
const r = new this(e);
return n.forEach((i) => r.set(i)), r;
}
static accessor(e) {
const r = (this[bS] = this[bS] = {
accessors: {}
}).accessors, i = this.prototype;
function s(a) {
const o = zf(a);
r[o] || (nN(i, a), r[o] = !0);
}
return Be.isArray(e) ? e.forEach(s) : s(e), this;
}
};
_s.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
Be.reduceDescriptors(_s.prototype, ({ value: t }, e) => {
let n = e[0].toUpperCase() + e.slice(1);
return {
get: () => t,
set(r) {
this[n] = r;
}
};
});
Be.freezeMethods(_s);
function tb(t, e) {
const n = this || Up, r = e || n, i = _s.from(r.headers);
let s = r.data;
return Be.forEach(t, function(o) {
s = o.call(n, s, i.normalize(), e ? e.status : void 0);
}), i.normalize(), s;
}
function AT(t) {
return !!(t && t.__CANCEL__);
}
function vh(t, e, n) {
mn.call(this, t ?? "canceled", mn.ERR_CANCELED, e, n), this.name = "CanceledError";
}
Be.inherits(vh, mn, {
__CANCEL__: !0
});
function MT(t, e, n) {
const r = n.config.validateStatus;
!n.status || !r || r(n.status) ? t(n) : e(new mn(
"Request failed with status code " + n.status,
[mn.ERR_BAD_REQUEST, mn.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
n.config,
n.request,
n
));
}
function rN(t) {
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
return e && e[1] || "";
}
function iN(t, e) {
t = t || 10;
const n = new Array(t), r = new Array(t);
let i = 0, s = 0, a;
return e = e !== void 0 ? e : 1e3, function(f) {
const m = Date.now(), g = r[s];
a || (a = m), n[i] = f, r[i] = m;
let _ = s, k = 0;
for (; _ !== i; )
k += n[_++], _ = _ % t;
if (i = (i + 1) % t, i === s && (s = (s + 1) % t), m - a < e)
return;
const C = g && m - g;
return C ? Math.round(k * 1e3 / C) : void 0;
};
}
function sN(t, e) {
let n = 0, r = 1e3 / e, i, s;
const a = (m, g = Date.now()) => {
n = g, i = null, s && (clearTimeout(s), s = null), t.apply(null, m);
};
return [(...m) => {
const g = Date.now(), _ = g - n;
_ >= r ? a(m, g) : (i = m, s || (s = setTimeout(() => {
s = null, a(i);
}, r - _)));
}, () => i && a(i)];
}
const iy = (t, e, n = 3) => {
let r = 0;
const i = iN(50, 250);
return sN((s) => {
const a = s.loaded, o = s.lengthComputable ? s.total : void 0, f = a - r, m = i(f), g = a <= o;
r = a;
const _ = {
loaded: a,
total: o,
progress: o ? a / o : void 0,
bytes: f,
rate: m || void 0,
estimated: m && o && g ? (o - a) / m : void 0,
event: s,
lengthComputable: o != null,
[e ? "download" : "upload"]: !0
};
t(_);
}, n);
}, _S = (t, e) => {
const n = t != null;
return [(r) => e[0]({
lengthComputable: n,
total: t,
loaded: r
}), e[1]];
}, xS = (t) => (...e) => Be.asap(() => t(...e)), oN = Ni.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, Ni.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
new URL(Ni.origin),
Ni.navigator && /(msie|trident)/i.test(Ni.navigator.userAgent)
) : () => !0, aN = Ni.hasStandardBrowserEnv ? (
// Standard browser envs support document.cookie
{
write(t, e, n, r, i, s) {
const a = [t + "=" + encodeURIComponent(e)];
Be.isNumber(n) && a.push("expires=" + new Date(n).toGMTString()), Be.isString(r) && a.push("path=" + r), Be.isString(i) && a.push("domain=" + i), s === !0 && a.push("secure"), document.cookie = a.join("; ");
},
read(t) {
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
return e ? decodeURIComponent(e[3]) : null;
},
remove(t) {
this.write(t, "", Date.now() - 864e5);
}
}
) : (
// Non-standard browser env (web workers, react-native) lack needed support.
{
write() {
},
read() {
return null;
},
remove() {
}
}
);
function lN(t) {
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
}
function cN(t, e) {
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
}
function DT(t, e, n) {
let r = !lN(e);
return t && (r || n == !1) ? cN(t, e) : e;
}
const wS = (t) => t instanceof _s ? { ...t } : t;
function vu(t, e) {
e = e || {};
const n = {};
function r(m, g, _, k) {
return Be.isPlainObject(m) && Be.isPlainObject(g) ? Be.merge.call({ caseless: k }, m, g) : Be.isPlainObject(g) ? Be.merge({}, g) : Be.isArray(g) ? g.slice() : g;
}
function i(m, g, _, k) {
if (Be.isUndefined(g)) {
if (!Be.isUndefined(m))
return r(void 0, m, _, k);
} else return r(m, g, _, k);
}
function s(m, g) {
if (!Be.isUndefined(g))
return r(void 0, g);
}
function a(m, g) {
if (Be.isUndefined(g)) {
if (!Be.isUndefined(m))
return r(void 0, m);
} else return r(void 0, g);
}
function o(m, g, _) {
if (_ in e)
return r(m, g);
if (_ in t)
return r(void 0, m);
}
const f = {
url: s,
method: s,
data: s,
baseURL: a,
transformRequest: a,
transformResponse: a,
paramsSerializer: a,
timeout: a,
timeoutMessage: a,
withCredentials: a,
withXSRFToken: a,
adapter: a,
responseType: a,
xsrfCookieName: a,
xsrfHeaderName: a,
onUploadProgress: a,
onDownloadProgress: a,
decompress: a,
maxContentLength: a,
maxBodyLength: a,
beforeRedirect: a,
transport: a,
httpAgent: a,
httpsAgent: a,
cancelToken: a,
socketPath: a,
responseEncoding: a,
validateStatus: o,
headers: (m, g, _) => i(wS(m), wS(g), _, !0)
};
return Be.forEach(Object.keys(Object.assign({}, t, e)), function(g) {
const _ = f[g] || i, k = _(t[g], e[g], g);
Be.isUndefined(k) && _ !== o || (n[g] = k);
}), n;
}
const IT = (t) => {
const e = vu({}, t);
let { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: s, headers: a, auth: o } = e;
e.headers = a = _s.from(a), e.url = ET(DT(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), o && a.set(
"Authorization",
"Basic " + btoa((o.username || "") + ":" + (o.password ? unescape(encodeURIComponent(o.password)) : ""))
);
let f;
if (Be.isFormData(n)) {
if (Ni.hasStandardBrowserEnv || Ni.hasStandardBrowserWebWorkerEnv)
a.setContentType(void 0);
else if ((f = a.getContentType()) !== !1) {
const [m, ...g] = f ? f.split(";").map((_) => _.trim()).filter(Boolean) : [];
a.setContentType([m || "multipart/form-data", ...g].join("; "));
}
}
if (Ni.hasStandardBrowserEnv && (r && Be.isFunction(r) && (r = r(e)), r || r !== !1 && oN(e.url))) {
const m = i && s && aN.read(s);
m && a.set(i, m);
}
return e;
}, uN = typeof XMLHttpRequest < "u", dN = uN && function(t) {
return new Promise(function(n, r) {
const i = IT(t);
let s = i.data;
const a = _s.from(i.headers).normalize();
let { responseType: o, onUploadProgress: f, onDownloadProgress: m } = i, g, _, k, C, M;
function P() {
C && C(), M && M(), i.cancelToken && i.cancelToken.unsubscribe(g), i.signal && i.signal.removeEventListener("abort", g);
}
let z = new XMLHttpRequest();
z.open(i.method.toUpperCase(), i.url, !0), z.timeout = i.timeout;
function F() {
if (!z)
return;
const K = _s.from(
"getAllResponseHeaders" in z && z.getAllResponseHeaders()
), me = {
data: !o || o === "text" || o === "json" ? z.responseText : z.response,
status: z.status,
statusText: z.statusText,
headers: K,
config: t,
request: z
};
MT(function(Se) {
n(Se), P();
}, function(Se) {
r(Se), P();
}, me), z = null;
}
"onloadend" in z ? z.onloadend = F : z.onreadystatechange = function() {
!z || z.readyState !== 4 || z.status === 0 && !(z.responseURL && z.responseURL.indexOf("file:") === 0) || setTimeout(F);
}, z.onabort = function() {
z && (r(new mn("Request aborted", mn.ECONNABORTED, t, z)), z = null);
}, z.onerror = function() {
r(new mn("Network Error", mn.ERR_NETWORK, t, z)), z = null;
}, z.ontimeout = function() {
let G = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
const me = i.transitional || CT;
i.timeoutErrorMessage && (G = i.timeoutErrorMessage), r(new mn(
G,
me.clarifyTimeoutError ? mn.ETIMEDOUT : mn.ECONNABORTED,
t,
z
)), z = null;
}, s === void 0 && a.setContentType(null), "setRequestHeader" in z && Be.forEach(a.toJSON(), function(G, me) {
z.setRequestHeader(me, G);
}), Be.isUndefined(i.withCredentials) || (z.withCredentials = !!i.withCredentials), o && o !== "json" && (z.responseType = i.responseType), m && ([k, M] = iy(m, !0), z.addEventListener("progress", k)), f && z.upload && ([_, C] = iy(f), z.upload.addEventListener("progress", _), z.upload.addEventListener("loadend", C)), (i.cancelToken || i.signal) && (g = (K) => {
z && (r(!K || K.type ? new vh(null, t, z) : K), z.abort(), z = null);
}, i.cancelToken && i.cancelToken.subscribe(g), i.signal && (i.signal.aborted ? g() : i.signal.addEventListener("abort", g)));
const Y = rN(i.url);
if (Y && Ni.protocols.indexOf(Y) === -1) {
r(new mn("Unsupported protocol " + Y + ":", mn.ERR_BAD_REQUEST, t));
return;
}
z.send(s || null);
});
}, hN = (t, e) => {
const { length: n } = t = t ? t.filter(Boolean) : [];
if (e || n) {
let r = new AbortController(), i;
const s = function(m) {
if (!i) {
i = !0, o();
const g = m instanceof Error ? m : this.reason;
r.abort(g instanceof mn ? g : new vh(g instanceof Error ? g.message : g));
}
};
let a = e && setTimeout(() => {
a = null, s(new mn(`timeout ${e} of ms exceeded`, mn.ETIMEDOUT));
}, e);
const o = () => {
t && (a && clearTimeout(a), a = null, t.forEach((m) => {
m.unsubscribe ? m.unsubscribe(s) : m.removeEventListener("abort", s);
}), t = null);
};
t.forEach((m) => m.addEventListener("abort", s));
const { signal: f } = r;
return f.unsubscribe = () => Be.asap(o), f;
}
}, fN = function* (t, e) {
let n = t.byteLength;
if (n < e) {
yield t;
return;
}
let r = 0, i;
for (; r < n; )
i = r + e, yield t.slice(r, i), r = i;
}, pN = async function* (t, e) {
for await (const n of mN(t))
yield* fN(n, e);
}, mN = async function* (t) {
if (t[Symbol.asyncIterator]) {
yield* t;
return;
}
const e = t.getReader();
try {
for (; ; ) {
const { done: n, value: r } = await e.read();
if (n)
break;
yield r;
}
} finally {
await e.cancel();
}
}, kS = (t, e, n, r) => {
const i = pN(t, e);
let s = 0, a, o = (f) => {
a || (a = !0, r && r(f));
};
return new ReadableStream({
async pull(f) {
try {
const { done: m, value: g } = await i.next();
if (m) {
o(), f.close();
return;
}
let _ = g.byteLength;
if (n) {
let k = s += _;
n(k);
}
f.enqueue(new Uint8Array(g));
} catch (m) {
throw o(m), m;
}
},
cancel(f) {
return o(f), i.return();
}
}, {
highWaterMark: 2
});
}, Ky = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", PT = Ky && typeof ReadableStream == "function", gN = Ky && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), RT = (t, ...e) => {
try {
return !!t(...e);
} catch {
return !1;
}
}, yN = PT && RT(() => {
let t = !1;
const e = new Request(Ni.origin, {
body: new ReadableStream(),
method: "POST",
get duplex() {
return t = !0, "half";
}
}).headers.has("Content-Type");
return t && !e;
}), SS = 64 * 1024, b_ = PT && RT(() => Be.isReadableStream(new Response("").body)), sy = {
stream: b_ && ((t) => t.body)
};
Ky && ((t) => {
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
!sy[e] && (sy[e] = Be.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
throw new mn(`Response type '${e}' is not supported`, mn.ERR_NOT_SUPPORT, r);
});
});
})(new Response());
const vN = async (t) => {
if (t == null)
return 0;
if (Be.isBlob(t))
return t.size;
if (Be.isSpecCompliantForm(t))
return (await new Request(Ni.origin, {
method: "POST",
body: t
}).arrayBuffer()).byteLength;
if (Be.isArrayBufferView(t) || Be.isArrayBuffer(t))
return t.byteLength;
if (Be.isURLSearchParams(t) && (t = t + ""), Be.isString(t))
return (await gN(t)).byteLength;
}, bN = async (t, e) => {
const n = Be.toFiniteNumber(t.getContentLength());
return n ?? vN(e);
}, _N = Ky && (async (t) => {
let {
url: e,
method: n,
data: r,
signal: i,
cancelToken: s,
timeout: a,
onDownloadProgress: o,
onUploadProgress: f,
responseType: m,
headers: g,
withCredentials: _ = "same-origin",
fetchOptions: k
} = IT(t);
m = m ? (m + "").toLowerCase() : "text";
let C = hN([i, s && s.toAbortSignal()], a), M;
const P = C && C.unsubscribe && (() => {
C.unsubscribe();
});
let z;
try {
if (f && yN && n !== "get" && n !== "head" && (z = await bN(g, r)) !== 0) {
let me = new Request(e, {
method: "POST",
body: r,
duplex: "half"
}), be;
if (Be.isFormData(r) && (be = me.headers.get("content-type")) && g.setContentType(be), me.body) {
const [Se, Re] = _S(
z,
iy(xS(f))
);
r = kS(me.body, SS, Se, Re);
}
}
Be.isString(_) || (_ = _ ? "include" : "omit");
const F = "credentials" in Request.prototype;
M = new Request(e, {
...k,
signal: C,
method: n.toUpperCase(),
headers: g.normalize().toJSON(),
body: r,
duplex: "half",
credentials: F ? _ : void 0
});
let Y = await fetch(M, k);
const K = b_ && (m === "stream" || m === "response");
if (b_ && (o || K && P)) {
const me = {};
["status", "statusText", "headers"].forEach((De) => {
me[De] = Y[De];
});
const be = Be.toFiniteNumber(Y.headers.get("content-length")), [Se, Re] = o && _S(
be,
iy(xS(o), !0)
) || [];
Y = new Response(
kS(Y.body, SS, Se, () => {
Re && Re(), P && P();
}),
me
);
}
m = m || "text";
let G = await sy[Be.findKey(sy, m) || "text"](Y, t);
return !K && P && P(), await new Promise((me, be) => {
MT(me, be, {
data: G,
headers: _s.from(Y.headers),
status: Y.status,
statusText: Y.statusText,
config: t,
request: M
});
});
} catch (F) {
throw P && P(), F && F.name === "TypeError" && /Load failed|fetch/i.test(F.message) ? Object.assign(
new mn("Network Error", mn.ERR_NETWORK, t, M),
{
cause: F.cause || F
}
) : mn.from(F, F && F.code, t, M);
}
}), __ = {
http: zL,
xhr: dN,
fetch: _N
};
Be.forEach(__, (t, e) => {
if (t) {
try {
Object.defineProperty(t, "name", { value: e });
} catch {
}
Object.defineProperty(t, "adapterName", { value: e });
}
});
const ES = (t) => `- ${t}`, xN = (t) => Be.isFunction(t) || t === null || t === !1, OT = {
getAdapter: (t) => {
t = Be.isArray(t) ? t : [t];
const { length: e } = t;
let n, r;
const i = {};
for (let s = 0; s < e; s++) {
n = t[s];
let a;
if (r = n, !xN(n) && (r = __[(a = String(n)).toLowerCase()], r === void 0))
throw new mn(`Unknown adapter '${a}'`);
if (r)
break;
i[a || "#" + s] = r;
}
if (!r) {
const s = Object.entries(i).map(
([o, f]) => `adapter ${o} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
);
let a = e ? s.length > 1 ? `since :
` + s.map(ES).join(`
`) : " " + ES(s[0]) : "as no adapter specified";
throw new mn(
"There is no suitable adapter to dispatch the request " + a,
"ERR_NOT_SUPPORT"
);
}
return r;
},
adapters: __
};
function nb(t) {
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
throw new vh(null, t);
}
function CS(t) {
return nb(t), t.headers = _s.from(t.headers), t.data = tb.call(
t,
t.transformRequest
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), OT.getAdapter(t.adapter || Up.adapter)(t).then(function(r) {
return nb(t), r.data = tb.call(
t,
t.transformResponse,
r
), r.headers = _s.from(r.headers), r;
}, function(r) {
return AT(r) || (nb(t), r && r.response && (r.response.data = tb.call(
t,
t.transformResponse,
r.response
), r.response.headers = _s.from(r.response.headers))), Promise.reject(r);
});
}
const zT = "1.10.0", Jy = {};
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
Jy[t] = function(r) {
return typeof r === t || "a" + (e < 1 ? "n " : " ") + t;
};
});
const TS = {};
Jy.transitional = function(e, n, r) {
function i(s, a) {
return "[Axios v" + zT + "] Transitional option '" + s + "'" + a + (r ? ". " + r : "");
}
return (s, a, o) => {
if (e === !1)
throw new mn(
i(a, " has been removed" + (n ? " in " + n : "")),
mn.ERR_DEPRECATED
);
return n && !TS[a] && (TS[a] = !0, console.warn(
i(
a,
" has been deprecated since v" + n + " and will be removed in the near future"
)
)), e ? e(s, a, o) : !0;
};
};
Jy.spelling = function(e) {
return (n, r) => (console.warn(`${r} is likely a misspelling of ${e}`), !0);
};
function wN(t, e, n) {
if (typeof t != "object")
throw new mn("options must be an object", mn.ERR_BAD_OPTION_VALUE);
const r = Object.keys(t);
let i = r.length;
for (; i-- > 0; ) {
const s = r[i], a = e[s];
if (a) {
const o = t[s], f = o === void 0 || a(o, s, t);
if (f !== !0)
throw new mn("option " + s + " must be " + f, mn.ERR_BAD_OPTION_VALUE);
continue;
}
if (n !== !0)
throw new mn("Unknown option " + s, mn.ERR_BAD_OPTION);
}
}
const Hg = {
assertOptions: wN,
validators: Jy
}, Go = Hg.validators;
let au = class {
constructor(e) {
this.defaults = e || {}, this.interceptors = {
request: new vS(),
response: new vS()
};
}
/**
* 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, n) {
try {
return await this._request(e, n);
} catch (r) {
if (r instanceof Error) {
let i = {};
Error.captureStackTrace ? Error.captureStackTrace(i) : i = new Error();
const s = i.stack ? i.stack.replace(/^.+\n/, "") : "";
try {
r.stack ? s && !String(r.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (r.stack += `
` + s) : r.stack = s;
} catch {
}
}
throw r;
}
}
_request(e, n) {
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = vu(this.defaults, n);
const { transitional: r, paramsSerializer: i, headers: s } = n;
r !== void 0 && Hg.assertOptions(r, {
silentJSONParsing: Go.transitional(Go.boolean),
forcedJSONParsing: Go.transitional(Go.boolean),
clarifyTimeoutError: Go.transitional(Go.boolean)
}, !1), i != null && (Be.isFunction(i) ? n.paramsSerializer = {
serialize: i
} : Hg.assertOptions(i, {
encode: Go.function,
serialize: Go.function
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Hg.assertOptions(n, {
baseUrl: Go.spelling("baseURL"),
withXsrfToken: Go.spelling("withXSRFToken")
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
let a = s && Be.merge(
s.common,
s[n.method]
);
s && Be.forEach(
["delete", "get", "head", "post", "put", "patch", "common"],
(M) => {
delete s[M];
}
), n.headers = _s.concat(a, s);
const o = [];
let f = !0;
this.interceptors.request.forEach(function(P) {
typeof P.runWhen == "function" && P.runWhen(n) === !1 || (f = f && P.synchronous, o.unshift(P.fulfilled, P.rejected));
});
const m = [];
this.interceptors.response.forEach(function(P) {
m.push(P.fulfilled, P.rejected);
});
let g, _ = 0, k;
if (!f) {
const M = [CS.bind(this), void 0];
for (M.unshift.apply(M, o), M.push.apply(M, m), k = M.length, g = Promise.resolve(n); _ < k; )
g = g.then(M[_++], M[_++]);
return g;
}
k = o.length;
let C = n;
for (_ = 0; _ < k; ) {
const M = o[_++], P = o[_++];
try {
C = M(C);
} catch (z) {
P.call(this, z);
break;
}
}
try {
g = CS.call(this, C);
} catch (M) {
return Promise.reject(M);
}
for (_ = 0, k = m.length; _ < k; )
g = g.then(m[_++], m[_++]);
return g;
}
getUri(e) {
e = vu(this.defaults, e);
const n = DT(e.baseURL, e.url, e.allowAbsoluteUrls);
return ET(n, e.params, e.paramsSerializer);
}
};
Be.forEach(["delete", "get", "head", "options"], function(e) {
au.prototype[e] = function(n, r) {
return this.request(vu(r || {}, {
method: e,
url: n,
data: (r || {}).data
}));
};
});
Be.forEach(["post", "put", "patch"], function(e) {
function n(r) {
return function(s, a, o) {
return this.request(vu(o || {}, {
method: e,
headers: r ? {
"Content-Type": "multipart/form-data"
} : {},
url: s,
data: a
}));
};
}
au.prototype[e] = n(), au.prototype[e + "Form"] = n(!0);
});
let kN = class LT {
constructor(e) {
if (typeof e != "function")
throw new TypeError("executor must be a function.");
let n;
this.promise = new Promise(function(s) {
n = s;
});
const r = this;
this.promise.then((i) => {
if (!r._listeners) return;
let s = r._listeners.length;
for (; s-- > 0; )
r._listeners[s](i);
r._listeners = null;
}), this.promise.then = (i) => {
let s;
const a = new Promise((o) => {
r.subscribe(o), s = o;
}).then(i);
return a.cancel = function() {
r.unsubscribe(s);
}, a;
}, e(function(s, a, o) {
r.reason || (r.reason = new vh(s, a, o), n(r.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 n = this._listeners.indexOf(e);
n !== -1 && this._listeners.splice(n, 1);
}
toAbortSignal() {
const e = new AbortController(), n = (r) => {
e.abort(r);
};
return this.subscribe(n), e.signal.unsubscribe = () => this.unsubscribe(n), e.signal;
}
/**
* Returns an object that contains a new `CancelToken` and a function that, when called,
* cancels the `CancelToken`.
*/
static source() {
let e;
return {
token: new LT(function(i) {
e = i;
}),
cancel: e
};
}
};
function SN(t) {
return function(n) {
return t.apply(null, n);
};
}
function EN(t) {
return Be.isObject(t) && t.isAxiosError === !0;
}
const x_ = {
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,
S