@pusdn/pgz-comp-elep
Version:
PGZ组件库,Vue3 中基于Element-plus二次封装基础组件文档
1,675 lines (1,674 loc) • 1.45 MB
JavaScript
import ah, { unref as he, ref as le, readonly as oh, getCurrentScope as sh, onScopeDispose as lh, watch as gt, getCurrentInstance as is, onMounted as un, nextTick as Er, shallowRef as uh, defineComponent as O, openBlock as m, createElementBlock as x, createElementVNode as S, onActivated as ch, resolveComponent as se, normalizeClass as Tr, renderSlot as we, createVNode as ve, normalizeProps as Yt, guardReactiveProps as gr, withCtx as U, createCommentVNode as ee, createBlock as ne, toDisplayString as Ce, createTextVNode as Oe, Fragment as Re, renderList as Be, computed as xe, useSlots as Br, reactive as La, mergeProps as ge, withModifiers as Ma, createSlots as dt, resolveDynamicComponent as Kt, toHandlers as on, isRef as _n, withKeys as fh, useAttrs as Rn, normalizeStyle as Sr, onBeforeUnmount as Ki, onUpdated as R0, resolveDirective as as, withDirectives as pi, vShow as B0, markRaw as dh, onUnmounted as hh } from "vue";
import { ElMessage as Gt, ElMessageBox as Bu } from "element-plus";
function F0(i, a) {
return function() {
return i.apply(a, arguments);
};
}
const { toString: ph } = Object.prototype, { getPrototypeOf: au } = Object, os = ((i) => (a) => {
const r = ph.call(a);
return i[r] || (i[r] = r.slice(8, -1).toLowerCase());
})(/* @__PURE__ */ Object.create(null)), cn = (i) => (i = i.toLowerCase(), (a) => os(a) === i), ss = (i) => (a) => typeof a === i, { isArray: Yi } = Array, Ca = ss("undefined");
function vh(i) {
return i !== null && !Ca(i) && i.constructor !== null && !Ca(i.constructor) && Wr(i.constructor.isBuffer) && i.constructor.isBuffer(i);
}
const N0 = cn("ArrayBuffer");
function gh(i) {
let a;
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? a = ArrayBuffer.isView(i) : a = i && i.buffer && N0(i.buffer), a;
}
const mh = ss("string"), Wr = ss("function"), H0 = ss("number"), ls = (i) => i !== null && typeof i == "object", yh = (i) => i === !0 || i === !1, ho = (i) => {
if (os(i) !== "object")
return !1;
const a = au(i);
return (a === null || a === Object.prototype || Object.getPrototypeOf(a) === null) && !(Symbol.toStringTag in i) && !(Symbol.iterator in i);
}, _h = cn("Date"), bh = cn("File"), wh = cn("Blob"), Sh = cn("FileList"), Eh = (i) => ls(i) && Wr(i.pipe), Ch = (i) => {
let a;
return i && (typeof FormData == "function" && i instanceof FormData || Wr(i.append) && ((a = os(i)) === "formdata" || a === "object" && Wr(i.toString) && i.toString() === "[object FormData]"));
}, Th = cn("URLSearchParams"), [xh, kh, Ah, Dh] = ["ReadableStream", "Request", "Response", "Headers"].map(cn), Ph = (i) => i.trim ? i.trim() : i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
function Ra(i, a, { allOwnKeys: r = !1 } = {}) {
if (i === null || typeof i > "u")
return;
let t, e;
if (typeof i != "object" && (i = [i]), Yi(i))
for (t = 0, e = i.length; t < e; t++)
a.call(null, i[t], t, i);
else {
const n = r ? Object.getOwnPropertyNames(i) : Object.keys(i), o = n.length;
let s;
for (t = 0; t < o; t++)
s = n[t], a.call(null, i[s], s, i);
}
}
function V0(i, a) {
a = a.toLowerCase();
const r = Object.keys(i);
let t = r.length, e;
for (; t-- > 0; )
if (e = r[t], a === e.toLowerCase())
return e;
return null;
}
const ui = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), z0 = (i) => !Ca(i) && i !== ui;
function bl() {
const { caseless: i } = z0(this) && this || {}, a = {}, r = (t, e) => {
const n = i && V0(a, e) || e;
ho(a[n]) && ho(t) ? a[n] = bl(a[n], t) : ho(t) ? a[n] = bl({}, t) : Yi(t) ? a[n] = t.slice() : a[n] = t;
};
for (let t = 0, e = arguments.length; t < e; t++)
arguments[t] && Ra(arguments[t], r);
return a;
}
const Oh = (i, a, r, { allOwnKeys: t } = {}) => (Ra(a, (e, n) => {
r && Wr(e) ? i[n] = F0(e, r) : i[n] = e;
}, { allOwnKeys: t }), i), Ih = (i) => (i.charCodeAt(0) === 65279 && (i = i.slice(1)), i), Lh = (i, a, r, t) => {
i.prototype = Object.create(a.prototype, t), i.prototype.constructor = i, Object.defineProperty(i, "super", {
value: a.prototype
}), r && Object.assign(i.prototype, r);
}, Mh = (i, a, r, t) => {
let e, n, o;
const s = {};
if (a = a || {}, i == null)
return a;
do {
for (e = Object.getOwnPropertyNames(i), n = e.length; n-- > 0; )
o = e[n], (!t || t(o, i, a)) && !s[o] && (a[o] = i[o], s[o] = !0);
i = r !== !1 && au(i);
} while (i && (!r || r(i, a)) && i !== Object.prototype);
return a;
}, Rh = (i, a, r) => {
i = String(i), (r === void 0 || r > i.length) && (r = i.length), r -= a.length;
const t = i.indexOf(a, r);
return t !== -1 && t === r;
}, Bh = (i) => {
if (!i)
return null;
if (Yi(i))
return i;
let a = i.length;
if (!H0(a))
return null;
const r = new Array(a);
for (; a-- > 0; )
r[a] = i[a];
return r;
}, Fh = ((i) => (a) => i && a instanceof i)(typeof Uint8Array < "u" && au(Uint8Array)), Nh = (i, a) => {
const t = (i && i[Symbol.iterator]).call(i);
let e;
for (; (e = t.next()) && !e.done; ) {
const n = e.value;
a.call(i, n[0], n[1]);
}
}, Hh = (i, a) => {
let r;
const t = [];
for (; (r = i.exec(a)) !== null; )
t.push(r);
return t;
}, Vh = cn("HTMLFormElement"), zh = (i) => i.toLowerCase().replace(
/[-_\s]([a-z\d])(\w*)/g,
function(r, t, e) {
return t.toUpperCase() + e;
}
), Fu = (({ hasOwnProperty: i }) => (a, r) => i.call(a, r))(Object.prototype), Uh = cn("RegExp"), U0 = (i, a) => {
const r = Object.getOwnPropertyDescriptors(i), t = {};
Ra(r, (e, n) => {
let o;
(o = a(e, n, i)) !== !1 && (t[n] = o || e);
}), Object.defineProperties(i, t);
}, $h = (i) => {
U0(i, (a, r) => {
if (Wr(i) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
return !1;
const t = i[r];
if (!!Wr(t)) {
if (a.enumerable = !1, "writable" in a) {
a.writable = !1;
return;
}
a.set || (a.set = () => {
throw Error("Can not rewrite read-only method '" + r + "'");
});
}
});
}, jh = (i, a) => {
const r = {}, t = (e) => {
e.forEach((n) => {
r[n] = !0;
});
};
return Yi(i) ? t(i) : t(String(i).split(a)), r;
}, Gh = () => {
}, Wh = (i, a) => i != null && Number.isFinite(i = +i) ? i : a, xs = "abcdefghijklmnopqrstuvwxyz", Nu = "0123456789", $0 = {
DIGIT: Nu,
ALPHA: xs,
ALPHA_DIGIT: xs + xs.toUpperCase() + Nu
}, Kh = (i = 16, a = $0.ALPHA_DIGIT) => {
let r = "";
const { length: t } = a;
for (; i--; )
r += a[Math.random() * t | 0];
return r;
};
function Yh(i) {
return !!(i && Wr(i.append) && i[Symbol.toStringTag] === "FormData" && i[Symbol.iterator]);
}
const Xh = (i) => {
const a = new Array(10), r = (t, e) => {
if (ls(t)) {
if (a.indexOf(t) >= 0)
return;
if (!("toJSON" in t)) {
a[e] = t;
const n = Yi(t) ? [] : {};
return Ra(t, (o, s) => {
const l = r(o, e + 1);
!Ca(l) && (n[s] = l);
}), a[e] = void 0, n;
}
}
return t;
};
return r(i, 0);
}, Jh = cn("AsyncFunction"), Qh = (i) => i && (ls(i) || Wr(i)) && Wr(i.then) && Wr(i.catch), j0 = ((i, a) => i ? setImmediate : a ? ((r, t) => (ui.addEventListener("message", ({ source: e, data: n }) => {
e === ui && n === r && t.length && t.shift()();
}, !1), (e) => {
t.push(e), ui.postMessage(r, "*");
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
typeof setImmediate == "function",
Wr(ui.postMessage)
), Zh = typeof queueMicrotask < "u" ? queueMicrotask.bind(ui) : typeof process < "u" && process.nextTick || j0, Q = {
isArray: Yi,
isArrayBuffer: N0,
isBuffer: vh,
isFormData: Ch,
isArrayBufferView: gh,
isString: mh,
isNumber: H0,
isBoolean: yh,
isObject: ls,
isPlainObject: ho,
isReadableStream: xh,
isRequest: kh,
isResponse: Ah,
isHeaders: Dh,
isUndefined: Ca,
isDate: _h,
isFile: bh,
isBlob: wh,
isRegExp: Uh,
isFunction: Wr,
isStream: Eh,
isURLSearchParams: Th,
isTypedArray: Fh,
isFileList: Sh,
forEach: Ra,
merge: bl,
extend: Oh,
trim: Ph,
stripBOM: Ih,
inherits: Lh,
toFlatObject: Mh,
kindOf: os,
kindOfTest: cn,
endsWith: Rh,
toArray: Bh,
forEachEntry: Nh,
matchAll: Hh,
isHTMLForm: Vh,
hasOwnProperty: Fu,
hasOwnProp: Fu,
reduceDescriptors: U0,
freezeMethods: $h,
toObjectSet: jh,
toCamelCase: zh,
noop: Gh,
toFiniteNumber: Wh,
findKey: V0,
global: ui,
isContextDefined: z0,
ALPHABET: $0,
generateString: Kh,
isSpecCompliantForm: Yh,
toJSONObject: Xh,
isAsyncFn: Jh,
isThenable: Qh,
setImmediate: j0,
asap: Zh
};
function et(i, a, r, t, e) {
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = i, this.name = "AxiosError", a && (this.code = a), r && (this.config = r), t && (this.request = t), e && (this.response = e, this.status = e.status ? e.status : null);
}
Q.inherits(et, 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: Q.toJSONObject(this.config),
code: this.code,
status: this.status
};
}
});
const G0 = et.prototype, W0 = {};
[
"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((i) => {
W0[i] = { value: i };
});
Object.defineProperties(et, W0);
Object.defineProperty(G0, "isAxiosError", { value: !0 });
et.from = (i, a, r, t, e, n) => {
const o = Object.create(G0);
return Q.toFlatObject(i, o, function(l) {
return l !== Error.prototype;
}, (s) => s !== "isAxiosError"), et.call(o, i.message, a, r, t, e), o.cause = i, o.name = i.name, n && Object.assign(o, n), o;
};
const qh = null;
function wl(i) {
return Q.isPlainObject(i) || Q.isArray(i);
}
function K0(i) {
return Q.endsWith(i, "[]") ? i.slice(0, -2) : i;
}
function Hu(i, a, r) {
return i ? i.concat(a).map(function(e, n) {
return e = K0(e), !r && n ? "[" + e + "]" : e;
}).join(r ? "." : "") : a;
}
function e2(i) {
return Q.isArray(i) && !i.some(wl);
}
const t2 = Q.toFlatObject(Q, {}, null, function(a) {
return /^is[A-Z]/.test(a);
});
function us(i, a, r) {
if (!Q.isObject(i))
throw new TypeError("target must be an object");
a = a || new FormData(), r = Q.toFlatObject(r, {
metaTokens: !0,
dots: !1,
indexes: !1
}, !1, function(g, v) {
return !Q.isUndefined(v[g]);
});
const t = r.metaTokens, e = r.visitor || c, n = r.dots, o = r.indexes, l = (r.Blob || typeof Blob < "u" && Blob) && Q.isSpecCompliantForm(a);
if (!Q.isFunction(e))
throw new TypeError("visitor must be a function");
function u(p) {
if (p === null)
return "";
if (Q.isDate(p))
return p.toISOString();
if (!l && Q.isBlob(p))
throw new et("Blob is not supported. Use a Buffer instead.");
return Q.isArrayBuffer(p) || Q.isTypedArray(p) ? l && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
}
function c(p, g, v) {
let _ = p;
if (p && !v && typeof p == "object") {
if (Q.endsWith(g, "{}"))
g = t ? g : g.slice(0, -2), p = JSON.stringify(p);
else if (Q.isArray(p) && e2(p) || (Q.isFileList(p) || Q.endsWith(g, "[]")) && (_ = Q.toArray(p)))
return g = K0(g), _.forEach(function(y, b) {
!(Q.isUndefined(y) || y === null) && a.append(
o === !0 ? Hu([g], b, n) : o === null ? g : g + "[]",
u(y)
);
}), !1;
}
return wl(p) ? !0 : (a.append(Hu(v, g, n), u(p)), !1);
}
const f = [], d = Object.assign(t2, {
defaultVisitor: c,
convertValue: u,
isVisitable: wl
});
function h(p, g) {
if (!Q.isUndefined(p)) {
if (f.indexOf(p) !== -1)
throw Error("Circular reference detected in " + g.join("."));
f.push(p), Q.forEach(p, function(_, w) {
(!(Q.isUndefined(_) || _ === null) && e.call(
a,
_,
Q.isString(w) ? w.trim() : w,
g,
d
)) === !0 && h(_, g ? g.concat(w) : [w]);
}), f.pop();
}
}
if (!Q.isObject(i))
throw new TypeError("data must be an object");
return h(i), a;
}
function Vu(i) {
const a = {
"!": "%21",
"'": "%27",
"(": "%28",
")": "%29",
"~": "%7E",
"%20": "+",
"%00": "\0"
};
return encodeURIComponent(i).replace(/[!'()~]|%20|%00/g, function(t) {
return a[t];
});
}
function ou(i, a) {
this._pairs = [], i && us(i, this, a);
}
const Y0 = ou.prototype;
Y0.append = function(a, r) {
this._pairs.push([a, r]);
};
Y0.toString = function(a) {
const r = a ? function(t) {
return a.call(this, t, Vu);
} : Vu;
return this._pairs.map(function(e) {
return r(e[0]) + "=" + r(e[1]);
}, "").join("&");
};
function r2(i) {
return encodeURIComponent(i).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
}
function X0(i, a, r) {
if (!a)
return i;
const t = r && r.encode || r2;
Q.isFunction(r) && (r = {
serialize: r
});
const e = r && r.serialize;
let n;
if (e ? n = e(a, r) : n = Q.isURLSearchParams(a) ? a.toString() : new ou(a, r).toString(t), n) {
const o = i.indexOf("#");
o !== -1 && (i = i.slice(0, o)), i += (i.indexOf("?") === -1 ? "?" : "&") + n;
}
return i;
}
class n2 {
constructor() {
this.handlers = [];
}
use(a, r, t) {
return this.handlers.push({
fulfilled: a,
rejected: r,
synchronous: t ? t.synchronous : !1,
runWhen: t ? t.runWhen : null
}), this.handlers.length - 1;
}
eject(a) {
this.handlers[a] && (this.handlers[a] = null);
}
clear() {
this.handlers && (this.handlers = []);
}
forEach(a) {
Q.forEach(this.handlers, function(t) {
t !== null && a(t);
});
}
}
const zu = n2, J0 = {
silentJSONParsing: !0,
forcedJSONParsing: !0,
clarifyTimeoutError: !1
}, i2 = typeof URLSearchParams < "u" ? URLSearchParams : ou, a2 = typeof FormData < "u" ? FormData : null, o2 = typeof Blob < "u" ? Blob : null, s2 = {
isBrowser: !0,
classes: {
URLSearchParams: i2,
FormData: a2,
Blob: o2
},
protocols: ["http", "https", "file", "blob", "url", "data"]
}, su = typeof window < "u" && typeof document < "u", Sl = typeof navigator == "object" && navigator || void 0, l2 = su && (!Sl || ["ReactNative", "NativeScript", "NS"].indexOf(Sl.product) < 0), u2 = (() => typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), c2 = su && window.location.href || "http://localhost", f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
hasBrowserEnv: su,
hasStandardBrowserWebWorkerEnv: u2,
hasStandardBrowserEnv: l2,
navigator: Sl,
origin: c2
}, Symbol.toStringTag, { value: "Module" })), pr = {
...f2,
...s2
};
function d2(i, a) {
return us(i, new pr.classes.URLSearchParams(), Object.assign({
visitor: function(r, t, e, n) {
return pr.isNode && Q.isBuffer(r) ? (this.append(t, r.toString("base64")), !1) : n.defaultVisitor.apply(this, arguments);
}
}, a));
}
function h2(i) {
return Q.matchAll(/\w+|\[(\w*)]/g, i).map((a) => a[0] === "[]" ? "" : a[1] || a[0]);
}
function p2(i) {
const a = {}, r = Object.keys(i);
let t;
const e = r.length;
let n;
for (t = 0; t < e; t++)
n = r[t], a[n] = i[n];
return a;
}
function Q0(i) {
function a(r, t, e, n) {
let o = r[n++];
if (o === "__proto__")
return !0;
const s = Number.isFinite(+o), l = n >= r.length;
return o = !o && Q.isArray(e) ? e.length : o, l ? (Q.hasOwnProp(e, o) ? e[o] = [e[o], t] : e[o] = t, !s) : ((!e[o] || !Q.isObject(e[o])) && (e[o] = []), a(r, t, e[o], n) && Q.isArray(e[o]) && (e[o] = p2(e[o])), !s);
}
if (Q.isFormData(i) && Q.isFunction(i.entries)) {
const r = {};
return Q.forEachEntry(i, (t, e) => {
a(h2(t), e, r, 0);
}), r;
}
return null;
}
function v2(i, a, r) {
if (Q.isString(i))
try {
return (a || JSON.parse)(i), Q.trim(i);
} catch (t) {
if (t.name !== "SyntaxError")
throw t;
}
return (r || JSON.stringify)(i);
}
const lu = {
transitional: J0,
adapter: ["xhr", "http", "fetch"],
transformRequest: [function(a, r) {
const t = r.getContentType() || "", e = t.indexOf("application/json") > -1, n = Q.isObject(a);
if (n && Q.isHTMLForm(a) && (a = new FormData(a)), Q.isFormData(a))
return e ? JSON.stringify(Q0(a)) : a;
if (Q.isArrayBuffer(a) || Q.isBuffer(a) || Q.isStream(a) || Q.isFile(a) || Q.isBlob(a) || Q.isReadableStream(a))
return a;
if (Q.isArrayBufferView(a))
return a.buffer;
if (Q.isURLSearchParams(a))
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), a.toString();
let s;
if (n) {
if (t.indexOf("application/x-www-form-urlencoded") > -1)
return d2(a, this.formSerializer).toString();
if ((s = Q.isFileList(a)) || t.indexOf("multipart/form-data") > -1) {
const l = this.env && this.env.FormData;
return us(
s ? { "files[]": a } : a,
l && new l(),
this.formSerializer
);
}
}
return n || e ? (r.setContentType("application/json", !1), v2(a)) : a;
}],
transformResponse: [function(a) {
const r = this.transitional || lu.transitional, t = r && r.forcedJSONParsing, e = this.responseType === "json";
if (Q.isResponse(a) || Q.isReadableStream(a))
return a;
if (a && Q.isString(a) && (t && !this.responseType || e)) {
const o = !(r && r.silentJSONParsing) && e;
try {
return JSON.parse(a);
} catch (s) {
if (o)
throw s.name === "SyntaxError" ? et.from(s, et.ERR_BAD_RESPONSE, this, null, this.response) : s;
}
}
return a;
}],
timeout: 0,
xsrfCookieName: "XSRF-TOKEN",
xsrfHeaderName: "X-XSRF-TOKEN",
maxContentLength: -1,
maxBodyLength: -1,
env: {
FormData: pr.classes.FormData,
Blob: pr.classes.Blob
},
validateStatus: function(a) {
return a >= 200 && a < 300;
},
headers: {
common: {
Accept: "application/json, text/plain, */*",
"Content-Type": void 0
}
}
};
Q.forEach(["delete", "get", "head", "post", "put", "patch"], (i) => {
lu.headers[i] = {};
});
const uu = lu, g2 = Q.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"
]), m2 = (i) => {
const a = {};
let r, t, e;
return i && i.split(`
`).forEach(function(o) {
e = o.indexOf(":"), r = o.substring(0, e).trim().toLowerCase(), t = o.substring(e + 1).trim(), !(!r || a[r] && g2[r]) && (r === "set-cookie" ? a[r] ? a[r].push(t) : a[r] = [t] : a[r] = a[r] ? a[r] + ", " + t : t);
}), a;
}, Uu = Symbol("internals");
function Zi(i) {
return i && String(i).trim().toLowerCase();
}
function po(i) {
return i === !1 || i == null ? i : Q.isArray(i) ? i.map(po) : String(i);
}
function y2(i) {
const a = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
let t;
for (; t = r.exec(i); )
a[t[1]] = t[2];
return a;
}
const _2 = (i) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim());
function ks(i, a, r, t, e) {
if (Q.isFunction(t))
return t.call(this, a, r);
if (e && (a = r), !!Q.isString(a)) {
if (Q.isString(t))
return a.indexOf(t) !== -1;
if (Q.isRegExp(t))
return t.test(a);
}
}
function b2(i) {
return i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (a, r, t) => r.toUpperCase() + t);
}
function w2(i, a) {
const r = Q.toCamelCase(" " + a);
["get", "set", "has"].forEach((t) => {
Object.defineProperty(i, t + r, {
value: function(e, n, o) {
return this[t].call(this, a, e, n, o);
},
configurable: !0
});
});
}
class cs {
constructor(a) {
a && this.set(a);
}
set(a, r, t) {
const e = this;
function n(s, l, u) {
const c = Zi(l);
if (!c)
throw new Error("header name must be a non-empty string");
const f = Q.findKey(e, c);
(!f || e[f] === void 0 || u === !0 || u === void 0 && e[f] !== !1) && (e[f || l] = po(s));
}
const o = (s, l) => Q.forEach(s, (u, c) => n(u, c, l));
if (Q.isPlainObject(a) || a instanceof this.constructor)
o(a, r);
else if (Q.isString(a) && (a = a.trim()) && !_2(a))
o(m2(a), r);
else if (Q.isHeaders(a))
for (const [s, l] of a.entries())
n(l, s, t);
else
a != null && n(r, a, t);
return this;
}
get(a, r) {
if (a = Zi(a), a) {
const t = Q.findKey(this, a);
if (t) {
const e = this[t];
if (!r)
return e;
if (r === !0)
return y2(e);
if (Q.isFunction(r))
return r.call(this, e, t);
if (Q.isRegExp(r))
return r.exec(e);
throw new TypeError("parser must be boolean|regexp|function");
}
}
}
has(a, r) {
if (a = Zi(a), a) {
const t = Q.findKey(this, a);
return !!(t && this[t] !== void 0 && (!r || ks(this, this[t], t, r)));
}
return !1;
}
delete(a, r) {
const t = this;
let e = !1;
function n(o) {
if (o = Zi(o), o) {
const s = Q.findKey(t, o);
s && (!r || ks(t, t[s], s, r)) && (delete t[s], e = !0);
}
}
return Q.isArray(a) ? a.forEach(n) : n(a), e;
}
clear(a) {
const r = Object.keys(this);
let t = r.length, e = !1;
for (; t--; ) {
const n = r[t];
(!a || ks(this, this[n], n, a, !0)) && (delete this[n], e = !0);
}
return e;
}
normalize(a) {
const r = this, t = {};
return Q.forEach(this, (e, n) => {
const o = Q.findKey(t, n);
if (o) {
r[o] = po(e), delete r[n];
return;
}
const s = a ? b2(n) : String(n).trim();
s !== n && delete r[n], r[s] = po(e), t[s] = !0;
}), this;
}
concat(...a) {
return this.constructor.concat(this, ...a);
}
toJSON(a) {
const r = /* @__PURE__ */ Object.create(null);
return Q.forEach(this, (t, e) => {
t != null && t !== !1 && (r[e] = a && Q.isArray(t) ? t.join(", ") : t);
}), r;
}
[Symbol.iterator]() {
return Object.entries(this.toJSON())[Symbol.iterator]();
}
toString() {
return Object.entries(this.toJSON()).map(([a, r]) => a + ": " + r).join(`
`);
}
get [Symbol.toStringTag]() {
return "AxiosHeaders";
}
static from(a) {
return a instanceof this ? a : new this(a);
}
static concat(a, ...r) {
const t = new this(a);
return r.forEach((e) => t.set(e)), t;
}
static accessor(a) {
const t = (this[Uu] = this[Uu] = {
accessors: {}
}).accessors, e = this.prototype;
function n(o) {
const s = Zi(o);
t[s] || (w2(e, o), t[s] = !0);
}
return Q.isArray(a) ? a.forEach(n) : n(a), this;
}
}
cs.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
Q.reduceDescriptors(cs.prototype, ({ value: i }, a) => {
let r = a[0].toUpperCase() + a.slice(1);
return {
get: () => i,
set(t) {
this[r] = t;
}
};
});
Q.freezeMethods(cs);
const sn = cs;
function As(i, a) {
const r = this || uu, t = a || r, e = sn.from(t.headers);
let n = t.data;
return Q.forEach(i, function(s) {
n = s.call(r, n, e.normalize(), a ? a.status : void 0);
}), e.normalize(), n;
}
function Z0(i) {
return !!(i && i.__CANCEL__);
}
function Xi(i, a, r) {
et.call(this, i == null ? "canceled" : i, et.ERR_CANCELED, a, r), this.name = "CanceledError";
}
Q.inherits(Xi, et, {
__CANCEL__: !0
});
function q0(i, a, r) {
const t = r.config.validateStatus;
!r.status || !t || t(r.status) ? i(r) : a(new et(
"Request failed with status code " + r.status,
[et.ERR_BAD_REQUEST, et.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
r.config,
r.request,
r
));
}
function S2(i) {
const a = /^([-+\w]{1,25})(:?\/\/|:)/.exec(i);
return a && a[1] || "";
}
function E2(i, a) {
i = i || 10;
const r = new Array(i), t = new Array(i);
let e = 0, n = 0, o;
return a = a !== void 0 ? a : 1e3, function(l) {
const u = Date.now(), c = t[n];
o || (o = u), r[e] = l, t[e] = u;
let f = n, d = 0;
for (; f !== e; )
d += r[f++], f = f % i;
if (e = (e + 1) % i, e === n && (n = (n + 1) % i), u - o < a)
return;
const h = c && u - c;
return h ? Math.round(d * 1e3 / h) : void 0;
};
}
function C2(i, a) {
let r = 0, t = 1e3 / a, e, n;
const o = (u, c = Date.now()) => {
r = c, e = null, n && (clearTimeout(n), n = null), i.apply(null, u);
};
return [(...u) => {
const c = Date.now(), f = c - r;
f >= t ? o(u, c) : (e = u, n || (n = setTimeout(() => {
n = null, o(e);
}, t - f)));
}, () => e && o(e)];
}
const Po = (i, a, r = 3) => {
let t = 0;
const e = E2(50, 250);
return C2((n) => {
const o = n.loaded, s = n.lengthComputable ? n.total : void 0, l = o - t, u = e(l), c = o <= s;
t = 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: n,
lengthComputable: s != null,
[a ? "download" : "upload"]: !0
};
i(f);
}, r);
}, $u = (i, a) => {
const r = i != null;
return [(t) => a[0]({
lengthComputable: r,
total: i,
loaded: t
}), a[1]];
}, ju = (i) => (...a) => Q.asap(() => i(...a)), T2 = pr.hasStandardBrowserEnv ? ((i, a) => (r) => (r = new URL(r, pr.origin), i.protocol === r.protocol && i.host === r.host && (a || i.port === r.port)))(
new URL(pr.origin),
pr.navigator && /(msie|trident)/i.test(pr.navigator.userAgent)
) : () => !0, x2 = pr.hasStandardBrowserEnv ? {
write(i, a, r, t, e, n) {
const o = [i + "=" + encodeURIComponent(a)];
Q.isNumber(r) && o.push("expires=" + new Date(r).toGMTString()), Q.isString(t) && o.push("path=" + t), Q.isString(e) && o.push("domain=" + e), n === !0 && o.push("secure"), document.cookie = o.join("; ");
},
read(i) {
const a = document.cookie.match(new RegExp("(^|;\\s*)(" + i + ")=([^;]*)"));
return a ? decodeURIComponent(a[3]) : null;
},
remove(i) {
this.write(i, "", Date.now() - 864e5);
}
} : {
write() {
},
read() {
return null;
},
remove() {
}
};
function k2(i) {
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(i);
}
function A2(i, a) {
return a ? i.replace(/\/?\/$/, "") + "/" + a.replace(/^\/+/, "") : i;
}
function ef(i, a) {
return i && !k2(a) ? A2(i, a) : a;
}
const Gu = (i) => i instanceof sn ? { ...i } : i;
function vi(i, a) {
a = a || {};
const r = {};
function t(u, c, f, d) {
return Q.isPlainObject(u) && Q.isPlainObject(c) ? Q.merge.call({ caseless: d }, u, c) : Q.isPlainObject(c) ? Q.merge({}, c) : Q.isArray(c) ? c.slice() : c;
}
function e(u, c, f, d) {
if (Q.isUndefined(c)) {
if (!Q.isUndefined(u))
return t(void 0, u, f, d);
} else
return t(u, c, f, d);
}
function n(u, c) {
if (!Q.isUndefined(c))
return t(void 0, c);
}
function o(u, c) {
if (Q.isUndefined(c)) {
if (!Q.isUndefined(u))
return t(void 0, u);
} else
return t(void 0, c);
}
function s(u, c, f) {
if (f in a)
return t(u, c);
if (f in i)
return t(void 0, u);
}
const l = {
url: n,
method: n,
data: n,
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, f) => e(Gu(u), Gu(c), f, !0)
};
return Q.forEach(Object.keys(Object.assign({}, i, a)), function(c) {
const f = l[c] || e, d = f(i[c], a[c], c);
Q.isUndefined(d) && f !== s || (r[c] = d);
}), r;
}
const tf = (i) => {
const a = vi({}, i);
let { data: r, withXSRFToken: t, xsrfHeaderName: e, xsrfCookieName: n, headers: o, auth: s } = a;
a.headers = o = sn.from(o), a.url = X0(ef(a.baseURL, a.url), i.params, i.paramsSerializer), s && o.set(
"Authorization",
"Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
);
let l;
if (Q.isFormData(r)) {
if (pr.hasStandardBrowserEnv || pr.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 (pr.hasStandardBrowserEnv && (t && Q.isFunction(t) && (t = t(a)), t || t !== !1 && T2(a.url))) {
const u = e && n && x2.read(n);
u && o.set(e, u);
}
return a;
}, D2 = typeof XMLHttpRequest < "u", P2 = D2 && function(i) {
return new Promise(function(r, t) {
const e = tf(i);
let n = e.data;
const o = sn.from(e.headers).normalize();
let { responseType: s, onUploadProgress: l, onDownloadProgress: u } = e, c, f, d, h, p;
function g() {
h && h(), p && p(), e.cancelToken && e.cancelToken.unsubscribe(c), e.signal && e.signal.removeEventListener("abort", c);
}
let v = new XMLHttpRequest();
v.open(e.method.toUpperCase(), e.url, !0), v.timeout = e.timeout;
function _() {
if (!v)
return;
const y = sn.from(
"getAllResponseHeaders" in v && v.getAllResponseHeaders()
), T = {
data: !s || s === "text" || s === "json" ? v.responseText : v.response,
status: v.status,
statusText: v.statusText,
headers: y,
config: i,
request: v
};
q0(function(C) {
r(C), g();
}, function(C) {
t(C), g();
}, T), v = null;
}
"onloadend" in v ? v.onloadend = _ : v.onreadystatechange = function() {
!v || v.readyState !== 4 || v.status === 0 && !(v.responseURL && v.responseURL.indexOf("file:") === 0) || setTimeout(_);
}, v.onabort = function() {
!v || (t(new et("Request aborted", et.ECONNABORTED, i, v)), v = null);
}, v.onerror = function() {
t(new et("Network Error", et.ERR_NETWORK, i, v)), v = null;
}, v.ontimeout = function() {
let b = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
const T = e.transitional || J0;
e.timeoutErrorMessage && (b = e.timeoutErrorMessage), t(new et(
b,
T.clarifyTimeoutError ? et.ETIMEDOUT : et.ECONNABORTED,
i,
v
)), v = null;
}, n === void 0 && o.setContentType(null), "setRequestHeader" in v && Q.forEach(o.toJSON(), function(b, T) {
v.setRequestHeader(T, b);
}), Q.isUndefined(e.withCredentials) || (v.withCredentials = !!e.withCredentials), s && s !== "json" && (v.responseType = e.responseType), u && ([d, p] = Po(u, !0), v.addEventListener("progress", d)), l && v.upload && ([f, h] = Po(l), v.upload.addEventListener("progress", f), v.upload.addEventListener("loadend", h)), (e.cancelToken || e.signal) && (c = (y) => {
!v || (t(!y || y.type ? new Xi(null, i, v) : y), v.abort(), v = null);
}, e.cancelToken && e.cancelToken.subscribe(c), e.signal && (e.signal.aborted ? c() : e.signal.addEventListener("abort", c)));
const w = S2(e.url);
if (w && pr.protocols.indexOf(w) === -1) {
t(new et("Unsupported protocol " + w + ":", et.ERR_BAD_REQUEST, i));
return;
}
v.send(n || null);
});
}, O2 = (i, a) => {
const { length: r } = i = i ? i.filter(Boolean) : [];
if (a || r) {
let t = new AbortController(), e;
const n = function(u) {
if (!e) {
e = !0, s();
const c = u instanceof Error ? u : this.reason;
t.abort(c instanceof et ? c : new Xi(c instanceof Error ? c.message : c));
}
};
let o = a && setTimeout(() => {
o = null, n(new et(`timeout ${a} of ms exceeded`, et.ETIMEDOUT));
}, a);
const s = () => {
i && (o && clearTimeout(o), o = null, i.forEach((u) => {
u.unsubscribe ? u.unsubscribe(n) : u.removeEventListener("abort", n);
}), i = null);
};
i.forEach((u) => u.addEventListener("abort", n));
const { signal: l } = t;
return l.unsubscribe = () => Q.asap(s), l;
}
}, I2 = O2, L2 = function* (i, a) {
let r = i.byteLength;
if (!a || r < a) {
yield i;
return;
}
let t = 0, e;
for (; t < r; )
e = t + a, yield i.slice(t, e), t = e;
}, M2 = async function* (i, a) {
for await (const r of R2(i))
yield* L2(r, a);
}, R2 = async function* (i) {
if (i[Symbol.asyncIterator]) {
yield* i;
return;
}
const a = i.getReader();
try {
for (; ; ) {
const { done: r, value: t } = await a.read();
if (r)
break;
yield t;
}
} finally {
await a.cancel();
}
}, Wu = (i, a, r, t) => {
const e = M2(i, a);
let n = 0, o, s = (l) => {
o || (o = !0, t && t(l));
};
return new ReadableStream({
async pull(l) {
try {
const { done: u, value: c } = await e.next();
if (u) {
s(), l.close();
return;
}
let f = c.byteLength;
if (r) {
let d = n += f;
r(d);
}
l.enqueue(new Uint8Array(c));
} catch (u) {
throw s(u), u;
}
},
cancel(l) {
return s(l), e.return();
}
}, {
highWaterMark: 2
});
}, fs = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", rf = fs && typeof ReadableStream == "function", B2 = fs && (typeof TextEncoder == "function" ? ((i) => (a) => i.encode(a))(new TextEncoder()) : async (i) => new Uint8Array(await new Response(i).arrayBuffer())), nf = (i, ...a) => {
try {
return !!i(...a);
} catch {
return !1;
}
}, F2 = rf && nf(() => {
let i = !1;
const a = new Request(pr.origin, {
body: new ReadableStream(),
method: "POST",
get duplex() {
return i = !0, "half";
}
}).headers.has("Content-Type");
return i && !a;
}), Ku = 64 * 1024, El = rf && nf(() => Q.isReadableStream(new Response("").body)), Oo = {
stream: El && ((i) => i.body)
};
fs && ((i) => {
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((a) => {
!Oo[a] && (Oo[a] = Q.isFunction(i[a]) ? (r) => r[a]() : (r, t) => {
throw new et(`Response type '${a}' is not supported`, et.ERR_NOT_SUPPORT, t);
});
});
})(new Response());
const N2 = async (i) => {
if (i == null)
return 0;
if (Q.isBlob(i))
return i.size;
if (Q.isSpecCompliantForm(i))
return (await new Request(pr.origin, {
method: "POST",
body: i
}).arrayBuffer()).byteLength;
if (Q.isArrayBufferView(i) || Q.isArrayBuffer(i))
return i.byteLength;
if (Q.isURLSearchParams(i) && (i = i + ""), Q.isString(i))
return (await B2(i)).byteLength;
}, H2 = async (i, a) => {
const r = Q.toFiniteNumber(i.getContentLength());
return r == null ? N2(a) : r;
}, V2 = fs && (async (i) => {
let {
url: a,
method: r,
data: t,
signal: e,
cancelToken: n,
timeout: o,
onDownloadProgress: s,
onUploadProgress: l,
responseType: u,
headers: c,
withCredentials: f = "same-origin",
fetchOptions: d
} = tf(i);
u = u ? (u + "").toLowerCase() : "text";
let h = I2([e, n && n.toAbortSignal()], o), p;
const g = h && h.unsubscribe && (() => {
h.unsubscribe();
});
let v;
try {
if (l && F2 && r !== "get" && r !== "head" && (v = await H2(c, t)) !== 0) {
let T = new Request(a, {
method: "POST",
body: t,
duplex: "half"
}), L;
if (Q.isFormData(t) && (L = T.headers.get("content-type")) && c.setContentType(L), T.body) {
const [C, P] = $u(
v,
Po(ju(l))
);
t = Wu(T.body, Ku, C, P);
}
}
Q.isString(f) || (f = f ? "include" : "omit");
const _ = "credentials" in Request.prototype;
p = new Request(a, {
...d,
signal: h,
method: r.toUpperCase(),
headers: c.normalize().toJSON(),
body: t,
duplex: "half",
credentials: _ ? f : void 0
});
let w = await fetch(p);
const y = El && (u === "stream" || u === "response");
if (El && (s || y && g)) {
const T = {};
["status", "statusText", "headers"].forEach((I) => {
T[I] = w[I];
});
const L = Q.toFiniteNumber(w.headers.get("content-length")), [C, P] = s && $u(
L,
Po(ju(s), !0)
) || [];
w = new Response(
Wu(w.body, Ku, C, () => {
P && P(), g && g();
}),
T
);
}
u = u || "text";
let b = await Oo[Q.findKey(Oo, u) || "text"](w, i);
return !y && g && g(), await new Promise((T, L) => {
q0(T, L, {
data: b,
headers: sn.from(w.headers),
status: w.status,
statusText: w.statusText,
config: i,
request: p
});
});
} catch (_) {
throw g && g(), _ && _.name === "TypeError" && /fetch/i.test(_.message) ? Object.assign(
new et("Network Error", et.ERR_NETWORK, i, p),
{
cause: _.cause || _
}
) : et.from(_, _ && _.code, i, p);
}
}), Cl = {
http: qh,
xhr: P2,
fetch: V2
};
Q.forEach(Cl, (i, a) => {
if (i) {
try {
Object.defineProperty(i, "name", { value: a });
} catch {
}
Object.defineProperty(i, "adapterName", { value: a });
}
});
const Yu = (i) => `- ${i}`, z2 = (i) => Q.isFunction(i) || i === null || i === !1, af = {
getAdapter: (i) => {
i = Q.isArray(i) ? i : [i];
const { length: a } = i;
let r, t;
const e = {};
for (let n = 0; n < a; n++) {
r = i[n];
let o;
if (t = r, !z2(r) && (t = Cl[(o = String(r)).toLowerCase()], t === void 0))
throw new et(`Unknown adapter '${o}'`);
if (t)
break;
e[o || "#" + n] = t;
}
if (!t) {
const n = Object.entries(e).map(
([s, l]) => `adapter ${s} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
);
let o = a ? n.length > 1 ? `since :
` + n.map(Yu).join(`
`) : " " + Yu(n[0]) : "as no adapter specified";
throw new et(
"There is no suitable adapter to dispatch the request " + o,
"ERR_NOT_SUPPORT"
);
}
return t;
},
adapters: Cl
};
function Ds(i) {
if (i.cancelToken && i.cancelToken.throwIfRequested(), i.signal && i.signal.aborted)
throw new Xi(null, i);
}
function Xu(i) {
return Ds(i), i.headers = sn.from(i.headers), i.data = As.call(
i,
i.transformRequest
), ["post", "put", "patch"].indexOf(i.method) !== -1 && i.headers.setContentType("application/x-www-form-urlencoded", !1), af.getAdapter(i.adapter || uu.adapter)(i).then(function(t) {
return Ds(i), t.data = As.call(
i,
i.transformResponse,
t
), t.headers = sn.from(t.headers), t;
}, function(t) {
return Z0(t) || (Ds(i), t && t.response && (t.response.data = As.call(
i,
i.transformResponse,
t.response
), t.response.headers = sn.from(t.response.headers))), Promise.reject(t);
});
}
const of = "1.7.9", ds = {};
["object", "boolean", "number", "function", "string", "symbol"].forEach((i, a) => {
ds[i] = function(t) {
return typeof t === i || "a" + (a < 1 ? "n " : " ") + i;
};
});
const Ju = {};
ds.transitional = function(a, r, t) {
function e(n, o) {
return "[Axios v" + of + "] Transitional option '" + n + "'" + o + (t ? ". " + t : "");
}
return (n, o, s) => {
if (a === !1)
throw new et(
e(o, " has been removed" + (r ? " in " + r : "")),
et.ERR_DEPRECATED
);
return r && !Ju[o] && (Ju[o] = !0, console.warn(
e(
o,
" has been deprecated since v" + r + " and will be removed in the near future"
)
)), a ? a(n, o, s) : !0;
};
};
ds.spelling = function(a) {
return (r, t) => (console.warn(`${t} is likely a misspelling of ${a}`), !0);
};
function U2(i, a, r) {
if (typeof i != "object")
throw new et("options must be an object", et.ERR_BAD_OPTION_VALUE);
const t = Object.keys(i);
let e = t.length;
for (; e-- > 0; ) {
const n = t[e], o = a[n];
if (o) {
const s = i[n], l = s === void 0 || o(s, n, i);
if (l !== !0)
throw new et("option " + n + " must be " + l, et.ERR_BAD_OPTION_VALUE);
continue;
}
if (r !== !0)
throw new et("Unknown option " + n, et.ERR_BAD_OPTION);
}
}
const vo = {
assertOptions: U2,
validators: ds
}, fn = vo.validators;
class Io {
constructor(a) {
this.defaults = a, this.interceptors = {
request: new zu(),
response: new zu()
};
}
async request(a, r) {
try {
return await this._request(a, r);
} catch (t) {
if (t instanceof Error) {
let e = {};
Error.captureStackTrace ? Error.captureStackTrace(e) : e = new Error();
const n = e.stack ? e.stack.replace(/^.+\n/, "") : "";
try {
t.stack ? n && !String(t.stack).endsWith(n.replace(/^.+\n.+\n/, "")) && (t.stack += `
` + n) : t.stack = n;
} catch {
}
}
throw t;
}
}
_request(a, r) {
typeof a == "string" ? (r = r || {}, r.url = a) : r = a || {}, r = vi(this.defaults, r);
const { transitional: t, paramsSerializer: e, headers: n } = r;
t !== void 0 && vo.assertOptions(t, {
silentJSONParsing: fn.transitional(fn.boolean),
forcedJSONParsing: fn.transitional(fn.boolean),
clarifyTimeoutError: fn.transitional(fn.boolean)
}, !1), e != null && (Q.isFunction(e) ? r.paramsSerializer = {
serialize: e
} : vo.assertOptions(e, {
encode: fn.function,
serialize: fn.function
}, !0)), vo.assertOptions(r, {
baseUrl: fn.spelling("baseURL"),
withXsrfToken: fn.spelling("withXSRFToken")
}, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
let o = n && Q.merge(
n.common,
n[r.method]
);
n && Q.forEach(
["delete", "get", "head", "post", "put", "patch", "common"],
(p) => {
delete n[p];
}
), r.headers = sn.concat(o, n);
const s = [];
let l = !0;
this.interceptors.request.forEach(function(g) {
typeof g.runWhen == "function" && g.runWhen(r) === !1 || (l = l && g.synchronous, s.unshift(g.fulfilled, g.rejected));
});
const u = [];
this.interceptors.response.forEach(function(g) {
u.push(g.fulfilled, g.rejected);
});
let c, f = 0, d;
if (!l) {
const p = [Xu.bind(this), void 0];
for (p.unshift.apply(p, s), p.push.apply(p, u), d = p.length, c = Promise.resolve(r); f < d; )
c = c.then(p[f++], p[f++]);
return c;
}
d = s.length;
let h = r;
for (f = 0; f < d; ) {
const p = s[f++], g = s[f++];
try {
h = p(h);
} catch (v) {
g.call(this, v);
break;
}
}
try {
c = Xu.call(this, h);
} catch (p) {
return Promise.reject(p);
}
for (f = 0, d = u.length; f < d; )
c = c.then(u[f++], u[f++]);
return c;
}
getUri(a) {
a = vi(this.defaults, a);
const r = ef(a.baseURL, a.url);
return X0(r, a.params, a.paramsSerializer);
}
}
Q.forEach(["delete", "get", "head", "options"], function(a) {
Io.prototype[a] = function(r, t) {
return this.request(vi(t || {}, {
method: a,
url: r,
data: (t || {}).data
}));
};
});
Q.forEach(["post", "put", "patch"], function(a) {
function r(t) {
return function(n, o, s) {
return this.request(vi(s || {}, {
method: a,
headers: t ? {
"Content-Type": "multipart/form-data"
} : {},
url: n,
data: o
}));
};
}
Io.prototype[a] = r(), Io.prototype[a + "Form"] = r(!0);
});
const go = Io;
class cu {
constructor(a) {
if (typeof a != "function")
throw new TypeError("executor must be a function.");
let r;
this.promise = new Promise(function(n) {
r = n;
});
const t = this;
this.promise.then((e) => {
if (!t._listeners)
return;
let n = t._listeners.length;
for (; n-- > 0; )
t._listeners[n](e);
t._listeners = null;
}), this.promise.then = (e) => {
let n;
const o = new Promise((s) => {
t.subscribe(s), n = s;
}).then(e);
return o.cancel = function() {
t.unsubscribe(n);
}, o;
}, a(function(n, o, s) {
t.reason || (t.reason = new Xi(n, o, s), r(t.reason));
});
}
throwIfRequested() {
if (this.reason)
throw this.reason;
}
subscribe(a) {
if (this.reason) {
a(this.reason);
return;
}
this._listeners ? this._listeners.push(a) : this._listeners = [a];
}
unsubscribe(a) {
if (!this._listeners)
return;
const r = this._listeners.indexOf(a);
r !== -1 && this._listeners.splice(r, 1);
}
toAbortSignal() {
const a = new AbortController(), r = (t) => {
a.abort(t);
};
return this.subscribe(r), a.signal.unsubscribe = () => this.unsubscribe(r), a.signal;
}
static source() {
let a;
return {
token: new cu(function(e) {
a = e;
}),
cancel: a
};
}
}
const $2 = cu;
function j2(i) {
return function(r) {
return i.apply(null, r);
};
}
function G2(i) {
return Q.isObject(i) && i.isAxiosError === !0;
}
const Tl = {
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(Tl).forEach(([i, a]) => {
Tl[a] = i;
});
const W2 = Tl;
function sf(i) {
const a = new go(i), r = F0(go.prototype.request, a);
return Q.extend(r, go.prototype, a, { allOwnKeys: !0 }), Q.extend(r, a, null, { allOwnKeys: !0 }), r.create = function(e) {
return sf(vi(i, e));
}, r;
}
const Xt = sf(uu);
Xt.Axios = go;
Xt.CanceledError = Xi;
Xt.CancelToken = $2;
Xt.isCancel = Z0;
Xt.VERSION = of;
Xt.toFormData = us;
Xt.AxiosError = et;
Xt.Cancel = Xt.CanceledError;
Xt.all = function(a) {
return Promise.all(a);
};
Xt.spread = j2;
Xt.isAxiosError = G2;
Xt.mergeConfig = vi;
Xt.AxiosHeaders = sn;
Xt.formToJSON = (i) => Q0(Q.isHTMLForm(i) ? new FormData(i) : i);
Xt.getAdapter = af.getAdapter;
Xt.HttpStatusCode = W2;
Xt.default = Xt;
const lf = Xt;
var uf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function K2(i) {
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
}
function Y2(i) {
var a = i.default;
if (typeof a == "function") {
var r = function() {
return a.apply(this, arguments);
};
r.prototype = a.prototype;
} else
r = {};
return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(i).forEach(function(t) {
var e = Object.getOwnPropertyDescriptor(i, t);
Object.defineProperty(r, t, e.get ? e : {
enumerable: !0,
get: function() {
return i[t];
}
});
}), r;
}
var cf = { exports: {} }, ff = { exports: {} };
(function() {
var i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", a = {
rotl: function(r, t) {
return r << t | r >>> 32 - t;
},
rotr: function(r, t) {
return r << 32 - t | r >>> t;
},
endian: function(r) {
if (r.constructor == Number)
return a.rotl(r, 8) & 16711935 | a.rotl(r, 24) & 4278255360;
for (var t = 0; t < r.length; t++)
r[t] = a.endian(r[t]);
return r;
},
randomBytes: function(r) {
for (var t = []; r > 0; r--)
t.push(Math.floor(Math.random() * 256));
return t;
},
bytesToWords: function(r) {