import Mt from "react"; function xe(t, e) { return function() { return t.apply(e, arguments); }; } const { toString: rr } = Object.prototype, { getPrototypeOf: Lt } = Object, st = (ft = /* @__PURE__ */ Object.create(null), (t) => { const e = rr.call(t); return ft[e] || (ft[e] = e.slice(8, -1).toLowerCase()); }); var ft; const k = (t) => (t = t.toLowerCase(), (e) => st(e) === t), ct = (t) => (e) => typeof e === t, { isArray: W } = Array, V = ct("undefined"), Jt = k("ArrayBuffer"), nr = ct("string"), U = ct("function"), $t = ct("number"), Y = (t) => t !== null && typeof t == "object", tt = (t) => { if (st(t) !== "object") return !1; const e = Lt(t); return !(e !== null && e !== Object.prototype && Object.getPrototypeOf(e) !== null || Symbol.toStringTag in t || Symbol.iterator in t); }, or = k("Date"), sr = k("File"), ir = k("Blob"), ar = k("FileList"), ur = k("URLSearchParams"), [cr, lr, fr, hr] = ["ReadableStream", "Request", "Response", "Headers"].map(k); function K(t, e, { allOwnKeys: r = !1 } = {}) { if (t == null) return; let n, s; if (typeof t != "object" && (t = [t]), W(t)) for (n = 0, s = t.length; n < s; n++) e.call(null, t[n], n, t); else { const i = r ? Object.getOwnPropertyNames(t) : Object.keys(t), a = i.length; let y; for (n = 0; n < a; n++) y = i[n], e.call(null, t[y], y, t); } } function Vt(t, e) { e = e.toLowerCase(); const r = Object.keys(t); let n, s = r.length; for (; s-- > 0; ) if (n = r[s], e === n.toLowerCase()) return n; return null; } const Re = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Kt = (t) => !V(t) && t !== Re, dr = (ht = typeof Uint8Array < "u" && Lt(Uint8Array), (t) => ht && t instanceof ht); var ht; const pr = k("HTMLFormElement"), Gt = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), yr = k("RegExp"), Xt = (t, e) => { const r = Object.getOwnPropertyDescriptors(t), n = {}; K(r, (s, i) => { let a; (a = e(s, i, t)) !== !1 && (n[i] = a || s); }), Object.defineProperties(t, n); }, dt = "abcdefghijklmnopqrstuvwxyz", Qt = "0123456789", Zt = { DIGIT: Qt, ALPHA: dt, ALPHA_DIGIT: dt + dt.toUpperCase() + Qt }, mr = k("AsyncFunction"), g = { isArray: W, isArrayBuffer: Jt, isBuffer: function(t) { return t !== null && !V(t) && t.constructor !== null && !V(t.constructor) && U(t.constructor.isBuffer) && t.constructor.isBuffer(t); }, isFormData: (t) => { let e; return t && (typeof FormData == "function" && t instanceof FormData || U(t.append) && ((e = st(t)) === "formdata" || e === "object" && U(t.toString) && t.toString() === "[object FormData]")); }, isArrayBufferView: function(t) { let e; return e = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(t) : t && t.buffer && Jt(t.buffer), e; }, isString: nr, isNumber: $t, isBoolean: (t) => t === !0 || t === !1, isObject: Y, isPlainObject: tt, isReadableStream: cr, isRequest: lr, isResponse: fr, isHeaders: hr, isUndefined: V, isDate: or, isFile: sr, isBlob: ir, isRegExp: yr, isFunction: U, isStream: (t) => Y(t) && U(t.pipe), isURLSearchParams: ur, isTypedArray: dr, isFileList: ar, forEach: K, merge: function t() { const { caseless: e } = Kt(this) && this || {}, r = {}, n = (s, i) => { const a = e && Vt(r, i) || i; tt(r[a]) && tt(s) ? r[a] = t(r[a], s) : tt(s) ? r[a] = t({}, s) : W(s) ? r[a] = s.slice() : r[a] = s; }; for (let s = 0, i = arguments.length; s < i; s++) arguments[s] && K(arguments[s], n); return r; }, extend: (t, e, r, { allOwnKeys: n } = {}) => (K(e, (s, i) => { r && U(s) ? t[i] = xe(s, r) : t[i] = s; }, { allOwnKeys: n }), t), trim: (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""), stripBOM: (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), inherits: (t, e, r, n) => { t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", { value: e.prototype }), r && Object.assign(t.prototype, r); }, toFlatObject: (t, e, r, n) => { let s, i, a; const y = {}; if (e = e || {}, t == null) return e; do { for (s = Object.getOwnPropertyNames(t), i = s.length; i-- > 0; ) a = s[i], n && !n(a, t, e) || y[a] || (e[a] = t[a], y[a] = !0); t = r !== !1 && Lt(t); } while (t && (!r || r(t, e)) && t !== Object.prototype); return e; }, kindOf: st, kindOfTest: k, endsWith: (t, e, r) => { t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length; const n = t.indexOf(e, r); return n !== -1 && n === r; }, toArray: (t) => { if (!t) return null; if (W(t)) return t; let e = t.length; if (!$t(e)) return null; const r = new Array(e); for (; e-- > 0; ) r[e] = t[e]; return r; }, forEachEntry: (t, e) => { const r = (t && t[Symbol.iterator]).call(t); let n; for (; (n = r.next()) && !n.done; ) { const s = n.value; e.call(t, s[0], s[1]); } }, matchAll: (t, e) => { let r; const n = []; for (; (r = t.exec(e)) !== null; ) n.push(r); return n; }, isHTMLForm: pr, hasOwnProperty: Gt, hasOwnProp: Gt, reduceDescriptors: Xt, freezeMethods: (t) => { Xt(t, (e, r) => { if (U(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1) return !1; const n = t[r]; U(n) && (e.enumerable = !1, "writable" in e ? e.writable = !1 : e.set || (e.set = () => { throw Error("Can not rewrite read-only method '" + r + "'"); })); }); }, toObjectSet: (t, e) => { const r = {}, n = (s) => { s.forEach((i) => { r[i] = !0; }); }; return W(t) ? n(t) : n(String(t).split(e)), r; }, toCamelCase: (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, r, n) { return r.toUpperCase() + n; }), noop: () => { }, toFiniteNumber: (t, e) => t != null && Number.isFinite(t = +t) ? t : e, findKey: Vt, global: Re, isContextDefined: Kt, ALPHABET: Zt, generateString: (t = 16, e = Zt.ALPHA_DIGIT) => { let r = ""; const { length: n } = e; for (; t--; ) r += e[Math.random() * n | 0]; return r; }, isSpecCompliantForm: function(t) { return !!(t && U(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]); }, toJSONObject: (t) => { const e = new Array(10), r = (n, s) => { if (Y(n)) { if (e.indexOf(n) >= 0) return; if (!("toJSON" in n)) { e[s] = n; const i = W(n) ? [] : {}; return K(n, (a, y) => { const m = r(a, s + 1); !V(m) && (i[y] = m); }), e[s] = void 0, i; } } return n; }; return r(t, 0); }, isAsyncFn: mr, isThenable: (t) => t && (Y(t) || U(t)) && U(t.then) && U(t.catch) }; function A(t, e, r, n, s) { 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), r && (this.config = r), n && (this.request = n), s && (this.response = s); } g.inherits(A, 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: g.toJSONObject(this.config), code: this.code, status: this.response && this.response.status ? this.response.status : null }; } }); const Yt = A.prototype, te = {}; ["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((t) => { te[t] = { value: t }; }), Object.defineProperties(A, te), Object.defineProperty(Yt, "isAxiosError", { value: !0 }), A.from = (t, e, r, n, s, i) => { const a = Object.create(Yt); return g.toFlatObject(t, a, function(y) { return y !== Error.prototype; }, (y) => y !== "isAxiosError"), A.call(a, t.message, e, r, n, s), a.cause = t, a.name = t.name, i && Object.assign(a, i), a; }; function pt(t) { return g.isPlainObject(t) || g.isArray(t); } function Te(t) { return g.endsWith(t, "[]") ? t.slice(0, -2) : t; } function ee(t, e, r) { return t ? t.concat(e).map(function(n, s) { return n = Te(n), !r && s ? "[" + n + "]" : n; }).join(r ? "." : "") : e; } const gr = g.toFlatObject(g, {}, null, function(t) { return /^is[A-Z]/.test(t); }); function it(t, e, r) { if (!g.isObject(t)) throw new TypeError("target must be an object"); e = e || new FormData(); const n = (r = g.toFlatObject(r, { metaTokens: !0, dots: !1, indexes: !1 }, !1, function(v, E) { return !g.isUndefined(E[v]); })).metaTokens, s = r.visitor || p, i = r.dots, a = r.indexes, y = (r.Blob || typeof Blob < "u" && Blob) && g.isSpecCompliantForm(e); if (!g.isFunction(s)) throw new TypeError("visitor must be a function"); function m(v) { if (v === null) return ""; if (g.isDate(v)) return v.toISOString(); if (!y && g.isBlob(v)) throw new A("Blob is not supported. Use a Buffer instead."); return g.isArrayBuffer(v) || g.isTypedArray(v) ? y && typeof Blob == "function" ? new Blob([v]) : Buffer.from(v) : v; } function p(v, E, d) { let l = v; if (v && !d && typeof v == "object") { if (g.endsWith(E, "{}")) E = n ? E : E.slice(0, -2), v = JSON.stringify(v); else if (g.isArray(v) && function(o) { return g.isArray(o) && !o.some(pt); }(v) || (g.isFileList(v) || g.endsWith(E, "[]")) && (l = g.toArray(v))) return E = Te(E), l.forEach(function(o, u) { !g.isUndefined(o) && o !== null && e.append(a === !0 ? ee([E], u, i) : a === null ? E : E + "[]", m(o)); }), !1; } return !!pt(v) || (e.append(ee(d, E, i), m(v)), !1); } const b = [], w = Object.assign(gr, { defaultVisitor: p, convertValue: m, isVisitable: pt }); if (!g.isObject(t)) throw new TypeError("data must be an object"); return function v(E, d) { if (!g.isUndefined(E)) { if (b.indexOf(E) !== -1) throw Error("Circular reference detected in " + d.join(".")); b.push(E), g.forEach(E, function(l, o) { (!(g.isUndefined(l) || l === null) && s.call(e, l, g.isString(o) ? o.trim() : o, d, w)) === !0 && v(l, d ? d.concat(o) : [o]); }), b.pop(); } }(t), e; } function re(t) { const e = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+", "%00": "\0" }; return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(r) { return e[r]; }); } function Ft(t, e) { this._pairs = [], t && it(t, this, e); } const ne = Ft.prototype; function br(t) { return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); } function _e(t, e, r) { if (!e) return t; const n = r && r.encode || br, s = r && r.serialize; let i; if (i = s ? s(e, r) : g.isURLSearchParams(e) ? e.toString() : new Ft(e, r).toString(n), i) { const a = t.indexOf("#"); a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + i; } return t; } ne.append = function(t, e) { this._pairs.push([t, e]); }, ne.toString = function(t) { const e = t ? function(r) { return t.call(this, r, re); } : re; return this._pairs.map(function(r) { return e(r[0]) + "=" + e(r[1]); }, "").join("&"); }; class oe { constructor() { this.handlers = []; } use(e, r, n) { return this.handlers.push({ fulfilled: e, rejected: r, synchronous: !!n && n.synchronous, runWhen: n ? n.runWhen : null }), this.handlers.length - 1; } eject(e) { this.handlers[e] && (this.handlers[e] = null); } clear() { this.handlers && (this.handlers = []); } forEach(e) { g.forEach(this.handlers, function(r) { r !== null && e(r); }); } } const Ce = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 }, wr = { isBrowser: !0, classes: { URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : Ft, FormData: typeof FormData < "u" ? FormData : null, Blob: typeof Blob < "u" ? Blob : null }, protocols: ["http", "https", "file", "blob", "url", "data"] }, Dt = typeof window < "u" && typeof document < "u", vr = (se = typeof navigator < "u" && navigator.product, Dt && ["ReactNative", "NativeScript", "NS"].indexOf(se) < 0); var se; const Er = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Sr = Dt && window.location.href || "http://localhost", N = { ...Object.freeze(Object.defineProperty({ __proto__: null, hasBrowserEnv: Dt, hasStandardBrowserEnv: vr, hasStandardBrowserWebWorkerEnv: Er, origin: Sr }, Symbol.toStringTag, { value: "Module" })), ...wr }; function Pe(t) { function e(r, n, s, i) { let a = r[i++]; if (a === "__proto__") return !0; const y = Number.isFinite(+a), m = i >= r.length; return a = !a && g.isArray(s) ? s.length : a, m ? (g.hasOwnProp(s, a) ? s[a] = [s[a], n] : s[a] = n, !y) : (s[a] && g.isObject(s[a]) || (s[a] = []), e(r, n, s[a], i) && g.isArray(s[a]) && (s[a] = function(p) { const b = {}, w = Object.keys(p); let v; const E = w.length; let d; for (v = 0; v < E; v++) d = w[v], b[d] = p[d]; return b; }(s[a])), !y); } if (g.isFormData(t) && g.isFunction(t.entries)) { const r = {}; return g.forEachEntry(t, (n, s) => { e(function(i) { return g.matchAll(/\w+|\[(\w*)]/g, i).map((a) => a[0] === "[]" ? "" : a[1] || a[0]); }(n), s, r, 0); }), r; } return null; } const Z = { transitional: Ce, adapter: ["xhr", "http", "fetch"], transformRequest: [function(t, e) { const r = e.getContentType() || "", n = r.indexOf("application/json") > -1, s = g.isObject(t); if (s && g.isHTMLForm(t) && (t = new FormData(t)), g.isFormData(t)) return n ? JSON.stringify(Pe(t)) : t; if (g.isArrayBuffer(t) || g.isBuffer(t) || g.isStream(t) || g.isFile(t) || g.isBlob(t) || g.isReadableStream(t)) return t; if (g.isArrayBufferView(t)) return t.buffer; if (g.isURLSearchParams(t)) return e.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString(); let i; if (s) { if (r.indexOf("application/x-www-form-urlencoded") > -1) return function(a, y) { return it(a, new N.classes.URLSearchParams(), Object.assign({ visitor: function(m, p, b, w) { return N.isNode && g.isBuffer(m) ? (this.append(p, m.toString("base64")), !1) : w.defaultVisitor.apply(this, arguments); } }, y)); }(t, this.formSerializer).toString(); if ((i = g.isFileList(t)) || r.indexOf("multipart/form-data") > -1) { const a = this.env && this.env.FormData; return it(i ? { "files[]": t } : t, a && new a(), this.formSerializer); } } return s || n ? (e.setContentType("application/json", !1), function(a, y, m) { if (g.isString(a)) try { return (y || JSON.parse)(a), g.trim(a); } catch (p) { if (p.name !== "SyntaxError") throw p; } return (m || JSON.stringify)(a); }(t)) : t; }], transformResponse: [function(t) { const e = this.transitional || Z.transitional, r = e && e.forcedJSONParsing, n = this.responseType === "json"; if (g.isResponse(t) || g.isReadableStream(t)) return t; if (t && g.isString(t) && (r && !this.responseType || n)) { const s = !(e && e.silentJSONParsing) && n; try { return JSON.parse(t); } catch (i) { if (s) throw i.name === "SyntaxError" ? A.from(i, A.ERR_BAD_RESPONSE, this, null, this.response) : i; } } return t; }], timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", maxContentLength: -1, maxBodyLength: -1, env: { FormData: N.classes.FormData, Blob: N.classes.Blob }, validateStatus: function(t) { return t >= 200 && t < 300; }, headers: { common: { Accept: "application/json, text/plain, */*", "Content-Type": void 0 } } }; g.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => { Z.headers[t] = {}; }); const Or = g.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"]), ie = Symbol("internals"); function $(t) { return t && String(t).trim().toLowerCase(); } function rt(t) { return t === !1 || t == null ? t : g.isArray(t) ? t.map(rt) : String(t); } function yt(t, e, r, n, s) { return g.isFunction(n) ? n.call(this, e, r) : (s && (e = r), g.isString(e) ? g.isString(n) ? e.indexOf(n) !== -1 : g.isRegExp(n) ? n.test(e) : void 0 : void 0); } class P { constructor(e) { e && this.set(e); } set(e, r, n) { const s = this; function i(y, m, p) { const b = $(m); if (!b) throw new Error("header name must be a non-empty string"); const w = g.findKey(s, b); (!w || s[w] === void 0 || p === !0 || p === void 0 && s[w] !== !1) && (s[w || m] = rt(y)); } const a = (y, m) => g.forEach(y, (p, b) => i(p, b, m)); if (g.isPlainObject(e) || e instanceof this.constructor) a(e, r); else if (g.isString(e) && (e = e.trim()) && !/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())) a(((y) => { const m = {}; let p, b, w; return y && y.split(` `).forEach(function(v) { w = v.indexOf(":"), p = v.substring(0, w).trim().toLowerCase(), b = v.substring(w + 1).trim(), !p || m[p] && Or[p] || (p === "set-cookie" ? m[p] ? m[p].push(b) : m[p] = [b] : m[p] = m[p] ? m[p] + ", " + b : b); }), m; })(e), r); else if (g.isHeaders(e)) for (const [y, m] of e.entries()) i(m, y, n); else e != null && i(r, e, n); return this; } get(e, r) { if (e = $(e)) { const n = g.findKey(this, e); if (n) { const s = this[n]; if (!r) return s; if (r === !0) return function(i) { const a = /* @__PURE__ */ Object.create(null), y = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; let m; for (; m = y.exec(i); ) a[m[1]] = m[2]; return a; }(s); if (g.isFunction(r)) return r.call(this, s, n); if (g.isRegExp(r)) return r.exec(s); throw new TypeError("parser must be boolean|regexp|function"); } } } has(e, r) { if (e = $(e)) { const n = g.findKey(this, e); return !(!n || this[n] === void 0 || r && !yt(0, this[n], n, r)); } return !1; } delete(e, r) { const n = this; let s = !1; function i(a) { if (a = $(a)) { const y = g.findKey(n, a); !y || r && !yt(0, n[y], y, r) || (delete n[y], s = !0); } } return g.isArray(e) ? e.forEach(i) : i(e), s; } clear(e) { const r = Object.keys(this); let n = r.length, s = !1; for (; n--; ) { const i = r[n]; e && !yt(0, this[i], i, e, !0) || (delete this[i], s = !0); } return s; } normalize(e) { const r = this, n = {}; return g.forEach(this, (s, i) => { const a = g.findKey(n, i); if (a) return r[a] = rt(s), void delete r[i]; const y = e ? function(m) { return m.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (p, b, w) => b.toUpperCase() + w); }(i) : String(i).trim(); y !== i && delete r[i], r[y] = rt(s), n[y] = !0; }), this; } concat(...e) { return this.constructor.concat(this, ...e); } toJSON(e) { const r = /* @__PURE__ */ Object.create(null); return g.forEach(this, (n, s) => { n != null && n !== !1 && (r[s] = e && g.isArray(n) ? n.join(", ") : n); }), r; } [Symbol.iterator]() { return Object.entries(this.toJSON())[Symbol.iterator](); } toString() { return Object.entries(this.toJSON()).map(([e, r]) => e + ": " + r).join(` `); } get [Symbol.toStringTag]() { return "AxiosHeaders"; } static from(e) { return e instanceof this ? e : new this(e); } static concat(e, ...r) { const n = new this(e); return r.forEach((s) => n.set(s)), n; } static accessor(e) { const r = (this[ie] = this[ie] = { accessors: {} }).accessors, n = this.prototype; function s(i) { const a = $(i); r[a] || (function(y, m) { const p = g.toCamelCase(" " + m); ["get", "set", "has"].forEach((b) => { Object.defineProperty(y, b + p, { value: function(w, v, E) { return this[b].call(this, m, w, v, E); }, configurable: !0 }); }); }(n, i), r[a] = !0); } return g.isArray(e) ? e.forEach(s) : s(e), this; } } function mt(t, e) { const r = this || Z, n = e || r, s = P.from(n.headers); let i = n.data; return g.forEach(t, function(a) { i = a.call(r, i, s.normalize(), e ? e.status : void 0); }), s.normalize(), i; } function je(t) { return !(!t || !t.__CANCEL__); } function J(t, e, r) { A.call(this, t ?? "canceled", A.ERR_CANCELED, e, r), this.name = "CanceledError"; } function Ue(t, e, r) { const n = r.config.validateStatus; r.status && n && !n(r.status) ? e(new A("Request failed with status code " + r.status, [A.ERR_BAD_REQUEST, A.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4], r.config, r.request, r)) : t(r); } P.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]), g.reduceDescriptors(P.prototype, ({ value: t }, e) => { let r = e[0].toUpperCase() + e.slice(1); return { get: () => t, set(n) { this[r] = n; } }; }), g.freezeMethods(P), g.inherits(J, A, { __CANCEL__: !0 }); const at = (t, e, r = 3) => { let n = 0; const s = function(i, a) { i = i || 10; const y = new Array(i), m = new Array(i); let p, b = 0, w = 0; return a = a !== void 0 ? a : 1e3, function(v) { const E = Date.now(), d = m[w]; p || (p = E), y[b] = v, m[b] = E; let l = w, o = 0; for (; l !== b; ) o += y[l++], l %= i; if (b = (b + 1) % i, b === w && (w = (w + 1) % i), E - p < a) return; const u = d && E - d; return u ? Math.round(1e3 * o / u) : void 0; }; }(50, 250); return function(i, a) { let y = 0; const m = 1e3 / a; let p = null; return function() { const b = this === !0, w = Date.now(); if (b || w - y > m) return p && (clearTimeout(p), p = null), y = w, i.apply(null, arguments); p || (p = setTimeout(() => (p = null, y = Date.now(), i.apply(null, arguments)), m - (w - y))); }; }((i) => { const a = i.loaded, y = i.lengthComputable ? i.total : void 0, m = a - n, p = s(m); n = a; const b = { loaded: a, total: y, progress: y ? a / y : void 0, bytes: m, rate: p || void 0, estimated: p && y && a <= y ? (y - a) / p : void 0, event: i, lengthComputable: y != null }; b[e ? "download" : "upload"] = !0, t(b); }, r); }, Ar = N.hasStandardBrowserEnv ? function() { const t = /(msie|trident)/i.test(navigator.userAgent), e = document.createElement("a"); let r; function n(s) { let i = s; return t && (e.setAttribute("href", i), i = e.href), e.setAttribute("href", i), { href: e.href, protocol: e.protocol ? e.protocol.replace(/:$/, "") : "", host: e.host, search: e.search ? e.search.replace(/^\?/, "") : "", hash: e.hash ? e.hash.replace(/^#/, "") : "", hostname: e.hostname, port: e.port, pathname: e.pathname.charAt(0) === "/" ? e.pathname : "/" + e.pathname }; } return r = n(window.location.href), function(s) { const i = g.isString(s) ? n(s) : s; return i.protocol === r.protocol && i.host === r.host; }; }() : function() { return !0; }, xr = N.hasStandardBrowserEnv ? { write(t, e, r, n, s, i) { const a = [t + "=" + encodeURIComponent(e)]; g.isNumber(r) && a.push("expires=" + new Date(r).toGMTString()), g.isString(n) && a.push("path=" + n), g.isString(s) && a.push("domain=" + s), i === !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); } } : { write() { }, read: () => null, remove() { } }; function Ne(t, e) { return t && !/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) ? function(r, n) { return n ? r.replace(/\/?\/$/, "") + "/" + n.replace(/^\/+/, "") : r; }(t, e) : e; } const ae = (t) => t instanceof P ? { ...t } : t; function I(t, e) { e = e || {}; const r = {}; function n(p, b, w) { return g.isPlainObject(p) && g.isPlainObject(b) ? g.merge.call({ caseless: w }, p, b) : g.isPlainObject(b) ? g.merge({}, b) : g.isArray(b) ? b.slice() : b; } function s(p, b, w) { return g.isUndefined(b) ? g.isUndefined(p) ? void 0 : n(void 0, p, w) : n(p, b, w); } function i(p, b) { if (!g.isUndefined(b)) return n(void 0, b); } function a(p, b) { return g.isUndefined(b) ? g.isUndefined(p) ? void 0 : n(void 0, p) : n(void 0, b); } function y(p, b, w) { return w in e ? n(p, b) : w in t ? n(void 0, p) : void 0; } const m = { url: i, method: i, data: i, 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: y, headers: (p, b) => s(ae(p), ae(b), !0) }; return g.forEach(Object.keys(Object.assign({}, t, e)), function(p) { const b = m[p] || s, w = b(t[p], e[p], p); g.isUndefined(w) && b !== y || (r[p] = w); }), r; } const ke = (t) => { const e = I({}, t); let r, { data: n, withXSRFToken: s, xsrfHeaderName: i, xsrfCookieName: a, headers: y, auth: m } = e; if (e.headers = y = P.from(y), e.url = _e(Ne(e.baseURL, e.url), t.params, t.paramsSerializer), m && y.set("Authorization", "Basic " + btoa((m.username || "") + ":" + (m.password ? unescape(encodeURIComponent(m.password)) : ""))), g.isFormData(n)) { if (N.hasStandardBrowserEnv || N.hasStandardBrowserWebWorkerEnv) y.setContentType(void 0); else if ((r = y.getContentType()) !== !1) { const [p, ...b] = r ? r.split(";").map((w) => w.trim()).filter(Boolean) : []; y.setContentType([p || "multipart/form-data", ...b].join("; ")); } } if (N.hasStandardBrowserEnv && (s && g.isFunction(s) && (s = s(e)), s || s !== !1 && Ar(e.url))) { const p = i && a && xr.read(a); p && y.set(i, p); } return e; }, Rr = typeof XMLHttpRequest < "u" && function(t) { return new Promise(function(e, r) { const n = ke(t); let s = n.data; const i = P.from(n.headers).normalize(); let a, { responseType: y } = n; function m() { n.cancelToken && n.cancelToken.unsubscribe(a), n.signal && n.signal.removeEventListener("abort", a); } let p = new XMLHttpRequest(); function b() { if (!p) return; const v = P.from("getAllResponseHeaders" in p && p.getAllResponseHeaders()); Ue(function(E) { e(E), m(); }, function(E) { r(E), m(); }, { data: y && y !== "text" && y !== "json" ? p.response : p.responseText, status: p.status, statusText: p.statusText, headers: v, config: t, request: p }), p = null; } p.open(n.method.toUpperCase(), n.url, !0), p.timeout = n.timeout, "onloadend" in p ? p.onloadend = b : p.onreadystatechange = function() { p && p.readyState === 4 && (p.status !== 0 || p.responseURL && p.responseURL.indexOf("file:") === 0) && setTimeout(b); }, p.onabort = function() { p && (r(new A("Request aborted", A.ECONNABORTED, n, p)), p = null); }, p.onerror = function() { r(new A("Network Error", A.ERR_NETWORK, n, p)), p = null; }, p.ontimeout = function() { let v = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded"; const E = n.transitional || Ce; n.timeoutErrorMessage && (v = n.timeoutErrorMessage), r(new A(v, E.clarifyTimeoutError ? A.ETIMEDOUT : A.ECONNABORTED, n, p)), p = null; }, s === void 0 && i.setContentType(null), "setRequestHeader" in p && g.forEach(i.toJSON(), function(v, E) { p.setRequestHeader(E, v); }), g.isUndefined(n.withCredentials) || (p.withCredentials = !!n.withCredentials), y && y !== "json" && (p.responseType = n.responseType), typeof n.onDownloadProgress == "function" && p.addEventListener("progress", at(n.onDownloadProgress, !0)), typeof n.onUploadProgress == "function" && p.upload && p.upload.addEventListener("progress", at(n.onUploadProgress)), (n.cancelToken || n.signal) && (a = (v) => { p && (r(!v || v.type ? new J(null, t, p) : v), p.abort(), p = null); }, n.cancelToken && n.cancelToken.subscribe(a), n.signal && (n.signal.aborted ? a() : n.signal.addEventListener("abort", a))); const w = function(v) { const E = /^([-+\w]{1,25})(:?\/\/|:)/.exec(v); return E && E[1] || ""; }(n.url); w && N.protocols.indexOf(w) === -1 ? r(new A("Unsupported protocol " + w + ":", A.ERR_BAD_REQUEST, t)) : p.send(s || null); }); }, Tr = (t, e) => { let r, n = new AbortController(); const s = function(m) { if (!r) { r = !0, a(); const p = m instanceof Error ? m : this.reason; n.abort(p instanceof A ? p : new J(p instanceof Error ? p.message : p)); } }; let i = e && setTimeout(() => { s(new A(`timeout ${e} of ms exceeded`, A.ETIMEDOUT)); }, e); const a = () => { t && (i && clearTimeout(i), i = null, t.forEach((m) => { m && (m.removeEventListener ? m.removeEventListener("abort", s) : m.unsubscribe(s)); }), t = null); }; t.forEach((m) => m && m.addEventListener && m.addEventListener("abort", s)); const { signal: y } = n; return y.unsubscribe = a, [y, () => { i && clearTimeout(i), i = null; }]; }, _r = function* (t, e) { let r = t.byteLength; if (!e || r < e) return void (yield t); let n, s = 0; for (; s < r; ) n = s + e, yield t.slice(s, n), s = n; }, ue = (t, e, r, n, s) => { const i = async function* (y, m, p) { for await (const b of y) yield* _r(ArrayBuffer.isView(b) ? b : await p(String(b)), m); }(t, e, s); let a = 0; return new ReadableStream({ type: "bytes", async pull(y) { const { done: m, value: p } = await i.next(); if (m) return y.close(), void n(); let b = p.byteLength; r && r(a += b), y.enqueue(new Uint8Array(p)); }, cancel: (y) => (n(y), i.return()) }, { highWaterMark: 2 }); }, ce = (t, e) => { const r = t != null; return (n) => setTimeout(() => e({ lengthComputable: r, total: t, loaded: n })); }, lt = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Be = lt && typeof ReadableStream == "function", Et = lt && (typeof TextEncoder == "function" ? (le = new TextEncoder(), (t) => le.encode(t)) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())); var le; const Cr = Be && (() => { let t = !1; const e = new Request(N.origin, { body: new ReadableStream(), method: "POST", get duplex() { return t = !0, "half"; } }).headers.has("Content-Type"); return t && !e; })(), St = Be && !!(() => { try { return g.isReadableStream(new Response("").body); } catch { } })(), ut = { stream: St && ((t) => t.body) }; var fe; lt && (fe = new Response(), ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => { !ut[t] && (ut[t] = g.isFunction(fe[t]) ? (e) => e[t]() : (e, r) => { throw new A(`Response type '${t}' is not supported`, A.ERR_NOT_SUPPORT, r); }); })); const Pr = async (t, e) => { const r = g.toFiniteNumber(t.getContentLength()); return r ?? (async (n) => n == null ? 0 : g.isBlob(n) ? n.size : g.isSpecCompliantForm(n) ? (await new Request(n).arrayBuffer()).byteLength : g.isArrayBufferView(n) ? n.byteLength : (g.isURLSearchParams(n) && (n += ""), g.isString(n) ? (await Et(n)).byteLength : void 0))(e); }, Me = { http: null, xhr: Rr, fetch: lt && (async (t) => { let { url: e, method: r, data: n, signal: s, cancelToken: i, timeout: a, onDownloadProgress: y, onUploadProgress: m, responseType: p, headers: b, withCredentials: w = "same-origin", fetchOptions: v } = ke(t); p = p ? (p + "").toLowerCase() : "text"; let E, d, [l, o] = s || i || a ? Tr([s, i], a) : []; const u = () => { !E && setTimeout(() => { l && l.unsubscribe(); }), E = !0; }; let c; try { if (m && Cr && r !== "get" && r !== "head" && (c = await Pr(b, n)) !== 0) { let S, R = new Request(e, { method: "POST", body: n, duplex: "half" }); g.isFormData(n) && (S = R.headers.get("content-type")) && b.setContentType(S), R.body && (n = ue(R.body, 65536, ce(c, at(m)), null, Et)); } g.isString(w) || (w = w ? "cors" : "omit"), d = new Request(e, { ...v, signal: l, method: r.toUpperCase(), headers: b.normalize().toJSON(), body: n, duplex: "half", withCredentials: w }); let h = await fetch(d); const f = St && (p === "stream" || p === "response"); if (St && (y || f)) { const S = {}; ["status", "statusText", "headers"].forEach((j) => { S[j] = h[j]; }); const R = g.toFiniteNumber(h.headers.get("content-length")); h = new Response(ue(h.body, 65536, y && ce(R, at(y, !0)), f && u, Et), S); } p = p || "text"; let O = await ut[g.findKey(ut, p) || "text"](h, t); return !f && u(), o && o(), await new Promise((S, R) => { Ue(S, R, { data: O, headers: P.from(h.headers), status: h.status, statusText: h.statusText, config: t, request: d }); }); } catch (h) { throw u(), h && h.name === "TypeError" && /fetch/i.test(h.message) ? Object.assign(new A("Network Error", A.ERR_NETWORK, t, d), { cause: h.cause || h }) : A.from(h, h && h.code, t, d); } }) }; g.forEach(Me, (t, e) => { if (t) { try { Object.defineProperty(t, "name", { value: e }); } catch { } Object.defineProperty(t, "adapterName", { value: e }); } }); const he = (t) => `- ${t}`, jr = (t) => g.isFunction(t) || t === null || t === !1, Le = (t) => { t = g.isArray(t) ? t : [t]; const { length: e } = t; let r, n; const s = {}; for (let i = 0; i < e; i++) { let a; if (r = t[i], n = r, !jr(r) && (n = Me[(a = String(r)).toLowerCase()], n === void 0)) throw new A(`Unknown adapter '${a}'`); if (n) break; s[a || "#" + i] = n; } if (!n) { const i = Object.entries(s).map(([a, y]) => `adapter ${a} ` + (y === !1 ? "is not supported by the environment" : "is not available in the build")); throw new A("There is no suitable adapter to dispatch the request " + (e ? i.length > 1 ? `since : ` + i.map(he).join(` `) : " " + he(i[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT"); } return n; }; function gt(t) { if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted) throw new J(null, t); } function de(t) { return gt(t), t.headers = P.from(t.headers), t.data = mt.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), Le(t.adapter || Z.adapter)(t).then(function(e) { return gt(t), e.data = mt.call(t, t.transformResponse, e), e.headers = P.from(e.headers), e; }, function(e) { return je(e) || (gt(t), e && e.response && (e.response.data = mt.call(t, t.transformResponse, e.response), e.response.headers = P.from(e.response.headers))), Promise.reject(e); }); } const Ur = "1.7.2", qt = {}; ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => { qt[t] = function(r) { return typeof r === t || "a" + (e < 1 ? "n " : " ") + t; }; }); const pe = {}; qt.transitional = function(t, e, r) { function n(s, i) { return "[Axios v1.7.2] Transitional option '" + s + "'" + i + (r ? ". " + r : ""); } return (s, i, a) => { if (t === !1) throw new A(n(i, " has been removed" + (e ? " in " + e : "")), A.ERR_DEPRECATED); return e && !pe[i] && (pe[i] = !0, console.warn(n(i, " has been deprecated since v" + e + " and will be removed in the near future"))), !t || t(s, i, a); }; }; const Ot = { assertOptions: function(t, e, r) { if (typeof t != "object") throw new A("options must be an object", A.ERR_BAD_OPTION_VALUE); const n = Object.keys(t); let s = n.length; for (; s-- > 0; ) { const i = n[s], a = e[i]; if (a) { const y = t[i], m = y === void 0 || a(y, i, t); if (m !== !0) throw new A("option " + i + " must be " + m, A.ERR_BAD_OPTION_VALUE); } else if (r !== !0) throw new A("Unknown option " + i, A.ERR_BAD_OPTION); } }, validators: qt }, M = Ot.validators; class q { constructor(e) { this.defaults = e, this.interceptors = { request: new oe(), response: new oe() }; } async request(e, r) { try { return await this._request(e, r); } catch (n) { if (n instanceof Error) { let s; Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error(); const i = s.stack ? s.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, r) { typeof e == "string" ? (r = r || {}).url = e : r = e || {}, r = I(this.defaults, r); const { transitional: n, paramsSerializer: s, headers: i } = r; n !== void 0 && Ot.assertOptions(n, { silentJSONParsing: M.transitional(M.boolean), forcedJSONParsing: M.transitional(M.boolean), clarifyTimeoutError: M.transitional(M.boolean) }, !1), s != null && (g.isFunction(s) ? r.paramsSerializer = { serialize: s } : Ot.assertOptions(s, { encode: M.function, serialize: M.function }, !0)), r.method = (r.method || this.defaults.method || "get").toLowerCase(); let a = i && g.merge(i.common, i[r.method]); i && g.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (d) => { delete i[d]; }), r.headers = P.concat(a, i); const y = []; let m = !0; this.interceptors.request.forEach(function(d) { typeof d.runWhen == "function" && d.runWhen(r) === !1 || (m = m && d.synchronous, y.unshift(d.fulfilled, d.rejected)); }); const p = []; let b; this.interceptors.response.forEach(function(d) { p.push(d.fulfilled, d.rejected); }); let w, v = 0; if (!m) { const d = [de.bind(this), void 0]; for (d.unshift.apply(d, y), d.push.apply(d, p), w = d.length, b = Promise.resolve(r); v < w; ) b = b.then(d[v++], d[v++]); return b; } w = y.length; let E = r; for (v = 0; v < w; ) { const d = y[v++], l = y[v++]; try { E = d(E); } catch (o) { l.call(this, o); break; } } try { b = de.call(this, E); } catch (d) { return Promise.reject(d); } for (v = 0, w = p.length; v < w; ) b = b.then(p[v++], p[v++]); return b; } getUri(e) { return _e(Ne((e = I(this.defaults, e)).baseURL, e.url), e.params, e.paramsSerializer); } } g.forEach(["delete", "get", "head", "options"], function(t) { q.prototype[t] = function(e, r) { return this.request(I(r || {}, { method: t, url: e, data: (r || {}).data })); }; }), g.forEach(["post", "put", "patch"], function(t) { function e(r) { return function(n, s, i) { return this.request(I(i || {}, { method: t, headers: r ? { "Content-Type": "multipart/form-data" } : {}, url: n, data: s })); }; } q.prototype[t] = e(), q.prototype[t + "Form"] = e(!0); }); class It { constructor(e) { if (typeof e != "function") throw new TypeError("executor must be a function."); let r; this.promise = new Promise(function(s) { r = s; }); const n = this; this.promise.then((s) => { if (!n._listeners) return; let i = n._listeners.length; for (; i-- > 0; ) n._listeners[i](s); n._listeners = null; }), this.promise.then = (s) => { let i; const a = new Promise((y) => { n.subscribe(y), i = y; }).then(s); return a.cancel = function() { n.unsubscribe(i); }, a; }, e(function(s, i, a) { n.reason || (n.reason = new J(s, i, a), r(n.reason)); }); } throwIfRequested() { if (this.reason) throw this.reason; } subscribe(e) { this.reason ? e(this.reason) : this._listeners ? this._listeners.push(e) : this._listeners = [e]; } unsubscribe(e) { if (!this._listeners) return; const r = this._listeners.indexOf(e); r !== -1 && this._listeners.splice(r, 1); } static source() { let e; return { token: new It(function(r) { e = r; }), cancel: e }; } } const At = { 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(At).forEach(([t, e]) => { At[e] = t; }); const T = function t(e) { const r = new q(e), n = xe(q.prototype.request, r); return g.extend(n, q.prototype, r, { allOwnKeys: !0 }), g.extend(n, r, null, { allOwnKeys: !0 }), n.create = function(s) { return t(I(e, s)); }, n; }(Z); T.Axios = q, T.CanceledError = J, T.CancelToken = It, T.isCancel = je, T.VERSION = Ur, T.toFormData = it, T.AxiosError = A, T.Cancel = T.CanceledError, T.all = function(t) { return Promise.all(t); }, T.spread = function(t) { return function(e) { return t.apply(null, e); }; }, T.isAxiosError = function(t) { return g.isObject(t) && t.isAxiosError === !0; }, T.mergeConfig = I, T.AxiosHeaders = P, T.formToJSON = (t) => Pe(g.isHTMLForm(t) ? new FormData(t) : t), T.getAdapter = Le, T.HttpStatusCode = At, T.default = T; var Nr = Object.defineProperty, _ = (t, e, r) => (((n, s, i) => { s in n ? Nr(n, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : n[s] = i; })(t, typeof e != "symbol" ? e + "" : e, r), r), Fe = (t, e, r) => { if (!e.has(t)) throw TypeError("Cannot " + r); }, x = (t, e, r) => (Fe(t, e, "read from private field"), r ? r.call(t) : e.get(t)), C = (t, e, r) => { if (e.has(t)) throw TypeError("Cannot add the same private member more than once"); e instanceof WeakSet ? e.add(t) : e.set(t, r); }, F = (t, e, r, n) => (Fe(t, e, "write to private field"), e.set(t, r), r); function De(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } var kr = function(t) { if (t.length >= 255) throw new TypeError("Alphabet too long"); for (var e = new Uint8Array(256), r = 0; r < e.length; r++) e[r] = 255; for (var n = 0; n < t.length; n++) { var s = t.charAt(n), i = s.charCodeAt(0); if (e[i] !== 255) throw new TypeError(s + " is ambiguous"); e[i] = n; } var a = t.length, y = t.charAt(0), m = Math.log(a) / Math.log(256), p = Math.log(256) / Math.log(a); function b(w) { if (typeof w != "string") throw new TypeError("Expected String"); if (w.length === 0) return new Uint8Array(); for (var v = 0, E = 0, d = 0; w[v] === y; ) E++, v++; for (var l = (w.length - v) * m + 1 >>> 0, o = new Uint8Array(l); w[v]; ) { var u = e[w.charCodeAt(v)]; if (u === 255) return; for (var c = 0, h = l - 1; (u !== 0 || c < d) && h !== -1; h--, c++) u += a * o[h] >>> 0, o[h] = u % 256 >>> 0, u = u / 256 >>> 0; if (u !== 0) throw new Error("Non-zero carry"); d = c, v++; } for (var f = l - d; f !== l && o[f] === 0; ) f++; for (var O = new Uint8Array(E + (l - f)), S = E; f !== l; ) O[S++] = o[f++]; return O; } return { encode: function(w) { if (w instanceof Uint8Array || (ArrayBuffer.isView(w) ? w = new Uint8Array(w.buffer, w.byteOffset, w.byteLength) : Array.isArray(w) && (w = Uint8Array.from(w))), !(w instanceof Uint8Array)) throw new TypeError("Expected Uint8Array"); if (w.length === 0) return ""; for (var v = 0, E = 0, d = 0, l = w.length; d !== l && w[d] === 0; ) d++, v++; for (var o = (l - d) * p + 1 >>> 0, u = new Uint8Array(o); d !== l; ) { for (var c = w[d], h = 0, f = o - 1; (c !== 0 || h < E) && f !== -1; f--, h++) c += 256 * u[f] >>> 0, u[f] = c % a >>> 0, c = c / a >>> 0; if (c !== 0) throw new Error("Non-zero carry"); E = h, d++; } for (var O = o - E; O !== o && u[O] === 0; ) O++; for (var S = y.repeat(v); O < o; ++O) S += t.charAt(u[O]); return S; }, decodeUnsafe: b, decode: function(w) { var v = b(w); if (v) return v; throw new Error("Non-base" + a + " character"); } }; }; const Br = De(kr); var ye, qe = {}; ye = qe, function(t, e) { var r = e(); for (var n in r) ye[n] = r[n]; }(0, function() { var t = function(i) { return typeof i != "string" ? i : i.replace(/[\+ \|\^\%]/g, function(a) { return { " ": "+", "+": "%2B", "|": "%7C", "^": "%5E", "%": "%25" }[a]; }); }, e = function(i) { return typeof i != "string" ? i : i.replace(/\+|%2B|%7C|%5E|%25/g, function(a) { return { "+": " ", "%2B": "+", "%7C": "|", "%5E": "^", "%25": "%" }[a]; }); }, r = function(i) { return Number.prototype.toString.call(i, 36).toUpperCase(); }, n = function(i) { return parseInt(i, 36); }, s = Array.prototype.indexOf || function(i, a) { for (var y = a || 0, m = this.length; y < m; y++) if (this[y] === i) return y; return -1; }; return { JSON, pack: function(i, a) { var y = (a = a || {}).verbose || !1; y && console.log("Normalize the JSON Object"), i = typeof i == "string" ? this.JSON.parse(i) : i, y && console.log("Creating a empty dictionary"); var m = { strings: [], integers: [], floats: [] }; y && console.log("Creating the AST"); var p = function E(d) { y && console.log("Calling recursiveAstBuilder with " + this.JSON.stringify(d)); var l, o = typeof d; if (d === null) return { type: "null", index: -3 }; if (typeof d > "u") return { type: "undefined", index: -5 }; if (d instanceof Array) { var u = ["@"]; for (var c in d) d.hasOwnProperty(c) && u.push(E(d[c])); return u; } if (o === "object") { for (var h in u = ["$"], d) d.hasOwnProperty(h) && (u.push(E(h)), u.push(E(d[h]))); return u; } if (d === "") return { type: "empty", index: -4 }; if (o === "string") return (l = s.call(m.strings, d)) == -1 && (m.strings.push(t(d)), l = m.strings.length - 1), { type: "strings", index: l }; if (o === "number" && d % 1 == 0) return (l = s.call(m.integers, d)) == -1 && (m.integers.push(r(d)), l = m.integers.length - 1), { type: "integers", index: l }; if (o === "number") return (l = s.call(m.floats, d)) == -1 && (m.floats.push(d), l = m.floats.length - 1), { type: "floats", index: l }; if (o === "boolean") return { type: "boolean", index: d ? -1 : -2 }; throw new Error("Unexpected argument of type " + typeof d); }(i), b = m.strings.length, w = m.integers.length; m.floats.length, y && console.log("Parsing the dictionary"); var v = m.strings.join("|"); return v += "^" + m.integers.join("|"), v += "^" + m.floats.join("|"), y && console.log("Parsing the structure"), v += "^" + function E(d) { if (y && console.log("Calling a recursiveParser with " + this.JSON.stringify(d)), d instanceof Array) { var l = d.shift(); for (var o in d) d.hasOwnProperty(o) && (l += E(d[o]) + "|"); return (l[l.length - 1] === "|" ? l.slice(0, -1) : l) + "]"; } var u = d.type, c = d.index; if (u === "strings") return r(c); if (u === "integers") return r(b + c); if (u === "floats") return r(b + w + c); if (u === "boolean") return d.index; if (u === "null") return -3; if (u === "undefined") return -5; if (u === "empty") return -4; throw new TypeError("The item is alien!"); }(p), y && console.log("Ending parser"), a.debug ? { dictionary: m, ast: p, packed: v } : v; }, unpack: function(i, a) { a = a || {}; var y = i.split("^"); a.verbose && console.log("Building dictionary"); var m = [], p = y[0]; if (p !== "") { p = p.split("|"), a.verbose && console.log("Parse the strings dictionary"); for (var b = 0, w = p.length; b < w; b++) m.push(e(p[b])); } if ((p = y[1]) !== "") for (p = p.split("|"), a.verbose && console.log("Parse the integers dictionary"), b = 0, w = p.length; b < w; b++) m.push(n(p[b])); if ((p = y[2]) !== "") for (p = p.split("|"), a.verbose && console.log("Parse the floats dictionary"), b = 0, w = p.length; b < w; b++) m.push(parseFloat(p[b])); p = null, a.verbose && console.log("Tokenizing the structure"); var v = "", E = [], d = y[3].length; for (b = 0; b < d; b++) { var l = y[3].charAt(b); l === "|" || l === "$" || l === "@" || l === "]" ? (v && (E.push(n(v)), v = ""), l !== "|" && E.push(l)) : v += l; } var o = E.length, u = 0; return a.verbose && console.log("Starting recursive parser"), function c() { var h = E[u++]; if (a.verbose && console.log("Reading collection type " + (h === "$" ? "object" : "Array")), h === "@") { for (var f = []; u < o; u++) { var O = E[u]; if (a.verbose && console.log("Read " + O + " symbol"), O === "]") return f; if (O === "@" || O === "$") f.push(c()); else switch (O) { case -1: f.push(!0); break; case -2: f.push(!1); break; case -3: f.push(null); break; case -5: f.push(void 0); break; case -4: f.push(""); break; default: f.push(m[O]); } } return a.verbose && console.log("Parsed " + this.JSON.stringify(f)), f; } if (h === "$") { for (f = {}; u < o; u++) { var S = E[u]; if (S === "]") return f; if (S = S === -4 ? "" : m[S], (O = E[++u]) === "@" || O === "$") f[S] = c(); else switch (O) { case -1: f[S] = !0; break; case -2: f[S] = !1; break; case -3: f[S] = null; break; case -5: f[S] = void 0; break; case -4: f[S] = ""; break; default: f[S] = m[O]; } } return a.verbose && console.log("Parsed " + this.JSON.stringify(f)), f; } throw new TypeError("Bad token " + h + " isn't a type"); }(); } }; }); const me = De(qe); var G, X, z, D, xt, Rt, nt, Tt, _t; class Ct { constructor(e, r, n, s, i) { return _(this, "code", 0), _(this, "message", "操作成功"), _(this, "data", null), _(this, "url", ""), _(this, "res", ""), C(this, G, null), C(this, X, !0), C(this, z, !0), C(this, D, { get: (a, y) => x(this, xt).call(this, y), ownKeys: () => Object.keys(x(this, D).getPrototypeOf() || {}), getPrototypeOf: () => x(this, X) ? this : this.data, getOwnPropertyDescriptor: () => ({ configurable: !0, enumerable: !0, writable: !0, value: x(this, D).getPrototypeOf() }) }), C(this, xt, (a) => a === "$echoMsg" ? x(this, nt) : a === "msg" ? x(this, Rt) : a === "then" || a === "resp" ? (F(this, z, !0), F(this, X, a === "resp"), x(this, Tt)) : a === "catch" ? x(this, _t) : a === "IS_ECHO_MSG" ? x(this, z) : Reflect.get(this, a)), C(this, Rt, (a = (m) => m, y = !1) => (x(this, nt).call(this), F(this, X, y), Promise.resolve(a == null ? void 0 : a(x(this, D).getPrototypeOf())))), C(this, nt, () => { x(this, z) && (F(this, z, !1), Fr.onMsg(this.code, this.message)); }), C(this, Tt, (a) => [0, 1].includes(this.code) ? Promise.resolve(a == null ? void 0 : a(x(this, D).getPrototypeOf())) : Promise.reject(x(this, G))), C(this, _t, (a) => Promise.resolve(a(x(this, G)))), this.code = e, this.message = r, this.data = n, this.url = s, this.res = i, F(this, G, new Proxy(this, x(this, D))); } } G = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(); const bt = (t, e, r, n = "/", s = "") => new Ct(t, e, r, n, s); var ge = ["utf8", "utf-8", "unicode-1-1-utf-8"], Ie = { TextEncoder: function(t) { if (ge.indexOf(t) < 0 && typeof t < "u" && t != null) throw new RangeError("Invalid encoding type. Only utf-8 is supported"); this.encoding = "utf-8", this.encode = function(e) { if (typeof e != "string") throw new TypeError("passed argument must be of tye string"); var r = unescape(encodeURIComponent(e)), n = new Uint8Array(r.length); const s = r.split(""); for (let i = 0; i < s.length; i++) n[i] = s[i].charCodeAt(0); return n; }; }, TextDecoder: function(t) { if (ge.indexOf(t) < 0 && typeof t < "u" && t != null) throw new RangeError("Invalid encoding type. Only utf-8 is supported"); this.encoding = "utf-8", this.decode = function(e, r) { if (typeof e > "u") return ""; var n = typeof r < "u" && n in r && r.stream; if (typeof n != "boolean") throw new TypeError("stream option must be boolean"); if (ArrayBuffer.isView(e)) { var s = new Uint8Array(e.buffer, e.byteOffset, e.byteLength), i = new Array(s.length); for (let a = 0; a < s.length; a++) i[a] = String.fromCharCode(s[a]); return decodeURIComponent(escape(i.join(""))); } throw new TypeError("passed argument must be an array buffer view"); }; } }; const Mr = new Ie.TextEncoder("utf8"), Lr = new Ie.TextDecoder("utf8"); var ot, Q, Pt, L, B; Promise.withResolvers || (Promise.withResolvers = function() { let t, e; return { promise: new Promise((r, n) => { t = r, e = n; }), resolve: t, reject: e }; }); class jt { constructor(e, r, n = ({}) => Promise.reject({ code: -1, msg: "请初始化HTTP请求方法主体" })) { C(this, ot, void 0), C(this, Q, void 0), C(this, Pt, void 0), C(this, L, { "#": /* @__PURE__ */ new Map(), $: /* @__PURE__ */ new Map() }), C(this, B, /* @__PURE__ */ new Map()), _(this, "request", ({ url: s = "/", method: i = "GET", ...a }, y = !1) => { var m, p; const b = i.toUpperCase(), w = ((o) => { let u = 5381; for (let c = 0; c < o.length; c++) u = 33 * u ^ o.charCodeAt(c); return (u >>> 0).toString(16); })(JSON.stringify([s, b, a])), v = (m = s == null ? void 0 : s.includes) != null && m.call(s, "/_/") ? "#" : "$", { promise: E, resolve: d, reject: l } = Promise.withResolvers(); return x(this, L)[v].has(w) ? (console.log("缓存命中", s), d(x(this, L)[v].get(w))) : (x(this, B).has(w) ? x(this, B).get(w).push([d, l]) : x(this, B).set(w, [[d, l]]), (p = x(this, B).get(w)) != null && p.some((o) => o) && x(this, ot).call(this, { url: s, method: b, ...a }).then((o) => { if (![0, 1].includes(o.code)) throw bt(o.code, o.msg, o.data, s, o == null ? void 0 : o.res); return [o.code, o.msg, o.data, s, o == null ? void 0 : o.res]; }).then((o) => ((v == "#" || y && b === "GET") && x(this, L)[v].set(w, o), o)).then((o) => { var u; return (u = x(this, B).get(w)) == null ? void 0 : u.forEach((c, h, f) => { c && c[0](o), delete f[h]; }); }).catch((o) => { var u; x(this, L)[v].delete(w), (u = x(this, B).get(w)) == null || u.forEach((c, h, f) => { c && c[1](o instanceof Ct ? o : bt(-1, o, null, s)), delete f[h]; }); }).finally(() => x(this, B).delete(w))), new Proxy(E, { get: (o, u) => (...c) => o.then((h) => bt(...h)[u](...c)).catch((h) => { if (!h instanceof Ct) throw h; return typeof h[u] == "function" ? h[u](...c) : h[u]; }) }); }), _(this, "get", (s, i = {}) => this.request({ url: s, method: "GET", params: i })), _(this, "post", (s, i = {}, a = {}) => this.request({ url: s, method: "POST", data: i, params: a })), _(this, "put", (s, i = {}, a = {}) => this.request({ url: s, method: "PUT", data: i, params: a })), _(this, "del", (s, i = {}, a = {}) => this.request({ url: s, method: "DELETE", data: i, params: a })), _(this, "download", (s, i) => { }), _(this, "cache", (s, i = {}) => this.request({ url: s, method: "GET", params: i }, !0)), _(this, "list", (s, i = {}) => this.get(`/api/${s}/${this.encode(i)}`)), _(this, "getAppInfo", () => { }), _(this, "refreshCache", (s = !1) => { s && x(this, L)["#"].clear(), x(this, L).$.clear(); }), _(this, "decode", (s = "", i = {}) => { if (s === void 0 || s === "" || s === null) return i; try { const a = x(this, Q).decode(s).buffer; return me.unpack(((y) => Lr.decode(new DataView(y), {}))(a)); } catch { return console.warn("core.decode", s), i; } }), _(this, "encode", (s = {}) => { const i = JSON.stringify(s, (a, y) => y === void 0 ? null : y); return x(this, Q).encode(((a) => Mr.encode(a || ""))(me.pack(i))); }), F(this, Pt, e), F(this, ot, n), F(this, Q, Br(r)); } } ot = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(); const Fr = jt; jt.onUnhandledRejection = (t) => { var e, r, n, s, i, a; t != null && t.IS_ECHO_MSG ? ((e = t == null ? void 0 : t.$echoMsg) == null || e.call(t), (r = t == null ? void 0 : t.preventDefault) == null || r.call(t)) : (n = t.reason) != null && n.IS_ECHO_MSG && ((i = (s = t.reason) == null ? void 0 : s.$echoMsg) == null || i.call(s), (a = t == null ? void 0 : t.preventDefault) == null || a.call(t)); }, jt.onMsg = (t, e) => [0, 1].includes(t) ? console.log(e) : console.warn(e); function We(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } var ze = { exports: {} }; /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress * @license MIT */ ze.exports = function() { var t, e, r = { version: "0.2.0" }, n = r.settings = { minimum: 0.08, easing: "ease", positionUsing: "", speed: 200, trickle: !0, trickleRate: 0.02, trickleSpeed: 800, showSpinner: !0, barSelector: '[role="bar"]', spinnerSelector: '[role="spinner"]', parent: "body", template: '