From 46bcca9abeebf5f5a06fdd561da79a967ef46c34 Mon Sep 17 00:00:00 2001 From: what Date: Thu, 28 Nov 2024 14:24:31 +0800 Subject: [PATCH] v0.4.25 --- dist/button.js | 2 +- .../{main-GwmFPdzM.js => main-BSuXB8tt.js} | 49 +- dist/common/vender-DMK1apIA.js | 1483 +++++++++++++++ dist/common/vender-egxe712p.js | 1633 ----------------- dist/components.js | 2 +- dist/container.js | 2 +- dist/data-converter.js | 2 +- dist/data-list.js | 2 +- dist/data-list/utils.js | 2 +- dist/grid-layout-form.js | 2 +- dist/grid-layout-form/utils.js | 2 +- dist/grid-layout.js | 2 +- dist/grid-layout/utils.js | 2 +- dist/hooks.js | 10 +- dist/iconfont.js | 2 +- dist/index.js | 2 +- dist/res-ws.js | 2 +- dist/utils.js | 2 +- package.json | 5 +- 19 files changed, 1530 insertions(+), 1678 deletions(-) rename dist/common/{main-GwmFPdzM.js => main-BSuXB8tt.js} (98%) create mode 100644 dist/common/vender-DMK1apIA.js delete mode 100644 dist/common/vender-egxe712p.js diff --git a/dist/button.js b/dist/button.js index 9775d80..f3f8836 100644 --- a/dist/button.js +++ b/dist/button.js @@ -1,4 +1,4 @@ -import { U as s, T as u, V as e } from "./common/main-GwmFPdzM.js"; +import { U as s, T as u, V as e } from "./common/main-BSuXB8tt.js"; import "prop-types"; export { s as auth, diff --git a/dist/common/main-GwmFPdzM.js b/dist/common/main-BSuXB8tt.js similarity index 98% rename from dist/common/main-GwmFPdzM.js rename to dist/common/main-BSuXB8tt.js index fb7fb2f..a37d434 100644 --- a/dist/common/main-GwmFPdzM.js +++ b/dist/common/main-BSuXB8tt.js @@ -24,7 +24,8 @@ import { useParams as Oa, generatePath as Va, createBrowserRouter as Aa, useInRo import L from "prop-types"; import * as jt from "react-is"; import { useNotification as Ma } from "rc-notification"; -import { N as Be, a as Ue, w as ht, S as za } from "./vender-egxe712p.js"; +import { N as Be, a as Ue, T as ht, S as za } from "./vender-DMK1apIA.js"; +import "rc-util/lib/hooks/useMergedState"; import Mt from "immutability-helper"; import Wa from "rc-drawer"; import Ba from "rc-dialog"; @@ -59,7 +60,7 @@ class Qt { } } Ie = new WeakMap(), He = new WeakMap(), je = new WeakMap(), ue = new WeakMap(), Fe = new WeakMap(), Re = new WeakMap(); -const Kn = () => d("div", { children: "Empty" }), Qe = C.createContext({ ele: {}, mount: () => { +const _n = () => d("div", { children: "Empty" }), Qe = C.createContext({ ele: {}, mount: () => { }, unmount: () => { } }), K = ({ rootClassName: e, className: t, children: a, actions: n, title: r, subTitle: s, extras: i, style: o = {} }) => { const { mount: l, unmount: u } = C.useContext(Qe); @@ -69,7 +70,7 @@ const Kn = () => d("div", { children: "Empty" }), Qe = C.createContext({ ele: {} return x(() => (n(e, C.createElement("div", { key: `ff-${e}`, className: R(`ff-popup-${e}`, a) }, t)), () => r(e)), [a, t]), null; }; K.Action = tt("actions"), K.Title = tt("title"), K.SubTitle = tt("sub-title"), K.Extra = tt("extras"), K.propTypes = { className: L.string, style: L.object, title: L.any, subTitle: L.any, actions: L.any, extras: L.any }; -const _n = () => d(K, { className: "ff-loading", children: $("div", { className: "loader", children: [$("div", { className: "square", children: [d("span", {}), d("span", {}), d("span", {})] }), $("div", { className: "square", children: [d("span", {}), d("span", {}), d("span", {})] }), $("div", { className: "square", children: [d("span", {}), d("span", {}), d("span", {})] }), $("div", { className: "square", children: [d("span", {}), d("span", {}), d("span", {})] })] }) }), Gn = () => d("div", { children: "NotFound" }), Zt = ({ children: e }) => { +const Gn = () => d(K, { className: "ff-loading", children: $("div", { className: "loader", children: [$("div", { className: "square", children: [d("span", {}), d("span", {}), d("span", {})] }), $("div", { className: "square", children: [d("span", {}), d("span", {}), d("span", {})] }), $("div", { className: "square", children: [d("span", {}), d("span", {}), d("span", {})] }), $("div", { className: "square", children: [d("span", {}), d("span", {}), d("span", {})] })] }) }), Yn = () => d("div", { children: "NotFound" }), Zt = ({ children: e }) => { const [t, a] = P({}), n = me((s, i) => a((o) => ({ ...o, [s]: i })), []), r = me((s) => a((i) => ({ ...i, [s]: void 0 })), []); return typeof (e == null ? void 0 : e.type) == "string" ? e : d(Qe.Provider, { value: { ele: t, mount: n, unmount: r }, children: C.cloneElement(e, { className: t.rootClassName, title: t.title, subTitle: t["sub-title"], actions: t.actions, extras: t.extras }) }); }; @@ -194,13 +195,13 @@ rt = new WeakMap(), Ke = new WeakMap(), _e = new WeakMap(), st = new WeakMap(), return ((r = n.default) == null ? void 0 : r.call(n, a)) || ((s) => s); }), (t, a) => `${t}::${Z(a, "string")}`)); let wt = it; -const qa = (e, t = {}) => ie(() => e == null ? void 0 : e.map(({ widgetByJs: a, widgetByJsSetting: n, ...r }, s) => a ? { ...r, render: (i, o) => new wt([a, n]).toRender(i, o, "-") } : r), [e, t]), Yn = (e) => { +const qa = (e, t = {}) => ie(() => e == null ? void 0 : e.map(({ widgetByJs: a, widgetByJsSetting: n, ...r }, s) => a ? { ...r, render: (i, o) => new wt([a, n]).toRender(i, o, "-") } : r), [e, t]), Xn = (e) => { const [t, a] = P({}); return x(() => { let n = !1; return e && E.get(`/api/_/${e}`).then((r) => p.pick(r, ["uuid", "name", "code", "resource", "marginX", "marginY", "cols", "rowHeight", "primaryKey", "columns", "itemOperations", "batchOperations", "isConditionFormLayout", "layout", "tabs", "pageSize", "layoutConfig"])).then((r) => !n && a(r)), () => n = !0; }, [e]), t; -}, Xn = (e, t = {}) => { +}, Qn = (e, t = {}) => { const [a, n] = P({ dataSource: [] }); return Ze(() => { let r = !1; @@ -371,14 +372,14 @@ const oa = ({ className: e, title: t, tabs: a, tab: n, onTabChange: r }) => { }, en = (e, t = {}, a = null) => (n) => { const { code: r, label: s, extras: i, isVirtual: o, initialValue: l, initialValueLanguage: u, convertJs: c, convertJsSetting: m, ...h } = p.merge({}, t, n), [f, y] = ua(o ? null : r, { initialValue: l, initialValueLanguage: u, convertJs: c, convertJsSetting: m, type: (h == null ? void 0 : h.type) || "string" }, a); return d(e, { ...h, value: f, rawValue: y, $setting: i || {} }); -}, Qn = (Ut = pa, function({ code: e, data: t, ...a }) { +}, Zn = (Ut = pa, function({ code: e, data: t, ...a }) { const [n, r] = P({ resource: null, cols: 12, rowHeight: 21, fields: [] }); return x(() => { e && E.get(`/api/_/${e}`).then((s) => r(p.pick(s, ["resource", "cols", "rowHeight", "fields"]))); }, [e]), (n == null ? void 0 : n.resource) && d(Ut, { ...a, rowHeight: n.rowHeight, cols: n.cols, fields: n.fields, data: n != null && n.resource ? { [n == null ? void 0 : n.resource]: t } : {} }); }); var Ut; -const Zn = ({ widget: e, widgetPrefix: t = "@pkg/ff/grid-layouts", basicForm: a, ...n }) => { +const er = ({ widget: e, widgetPrefix: t = "@pkg/ff/grid-layouts", basicForm: a, ...n }) => { const r = e != null && e.startsWith("@") || e != null && e.startsWith("blob:") ? e : `${t}/${e}`, [s, i] = P(); return x(() => { r && X.getWidgetComponent(r).then(({ defaultProps: o = {}, default: l }) => ({ default: tn(l, o, a) })).catch((o) => ({ default: () => `${o}` })).then((o) => i(C.createElement(o.default, n))); @@ -521,12 +522,12 @@ let vt = A; const Ne = vt.getInstance(), ma = () => { const e = Y(!0), [, t] = C.useReducer((a) => a + 1, 0); return x(() => () => e.current = !1, []), () => e.current && t(); -}, er = (e) => { +}, tr = (e) => { const t = Y(); return x(() => { t.current = e; }, [e]), t.current; -}, tr = (e) => { +}, ar = (e) => { const [t, a] = P(e), n = Y(null), r = me((s, i) => { n.current = i, a(s); }, []); @@ -542,14 +543,14 @@ const Ne = vt.getInstance(), ma = () => { if (!Array.isArray(e)) return e; for (let n = 0; n < e.length; n++) e[n].value = Z((a = e[n]) == null ? void 0 : a.value, t), e[n] && Reflect.has(e[n], "children") && (e[n].children = ha(e[n].children, t)); return e; -}, ar = (e, t = "json", a = "string", n, r = null) => { +}, nr = (e, t = "json", a = "string", n, r = null) => { const [s] = ee.useForm(n), [i, o] = P([{ label: "无", value: "", disabled: !0 }]), l = Y([]), u = ee.useWatch((c) => l.current.length === 0 ? null : p.pick(c, l.current), s) || null; return x(() => { Array.isArray(e) ? o(e) : t === "javascript" && e ? Ne.exec(e, {}, { getFieldValue: (c) => (l.current.includes(c) || l.current.push(c), s.getFieldValue(c)), getFieldValueForBasicForm: (c) => (l.current.includes(c) || l.current.push(c), r ? r.getFieldValue(c) : s.getFieldValue(c)) }).then((c) => { o(Z(c, "array")); }) : e && o(Z(e, "array")); }, [e, t, u]), ha(i, a); -}, nr = (e) => { +}, rr = (e) => { const [t, a] = P(), n = { type: "GET" }; if (typeof e == "string" ? n.url = e : p.isPlainObject(e) && Object.assign(n, e), !(n != null && n.url)) throw "url is required"; const r = (s) => E.request(n, !1).resp((i) => (console.log("useSubscribeRequest", s), a(i), i)); @@ -614,7 +615,7 @@ const Ne = vt.getInstance(), ma = () => { return x(() => { e && Ne.exec(e, n, { getFieldValue: p.wrap(t.getFieldValue, (c, m) => (i.current.some((h) => p.isEqual(h, m)) || (i.current.push(m), r()), c(m))), isFieldTouched: t.isFieldTouched, isFieldsTouched: t.isFieldsTouched }).then((c) => s.current && l(c)); }, [e, u, t, n]), x(() => () => s.current = !1, []), o; -}, rr = ({ value: e, onChange: t }, a = null) => { +}, sr = ({ value: e, onChange: t }, a = null) => { const n = Y(), [r] = ee.useForm(a); return Ft(() => { p.isEqual(n.current, e) || r.setFieldsValue(e); @@ -879,14 +880,14 @@ const X = $t.getInstance(), xn = C.createContext({ user: {}, initUser: () => { return {}; }; export { - Kn as $, - tr as A, + _n as $, + ar as A, Ze as B, Ft as C, wt as D, - ar as E, - nr as F, - Qn as G, + nr as E, + rr as F, + Zn as G, Qa as H, mn as I, Rt as J, @@ -896,7 +897,7 @@ export { cn as N, dn as O, un as P, - rr as Q, + sr as Q, sa as R, Pt as S, S as T, @@ -908,8 +909,8 @@ export { J as Z, G as _, ia as a, - _n as a0, - Gn as a1, + Gn as a0, + Yn as a1, X as a2, Ot as a3, Tn as a4, @@ -923,7 +924,7 @@ export { Rn as ac, da as b, pa as c, - Zn as d, + er as d, ga as e, _a as f, ta as g, @@ -941,9 +942,9 @@ export { qa as s, Z as t, ua as u, - Yn as v, - Xn as w, + Xn as v, + Qn as w, Ct as x, ma as y, - er as z + tr as z }; diff --git a/dist/common/vender-DMK1apIA.js b/dist/common/vender-DMK1apIA.js new file mode 100644 index 0000000..84b63ad --- /dev/null +++ b/dist/common/vender-DMK1apIA.js @@ -0,0 +1,1483 @@ +function ce(t, e) { + return function() { + return t.apply(e, arguments); + }; +} +const { toString: Ce } = Object.prototype, { getPrototypeOf: xt } = Object, st = (ft = /* @__PURE__ */ Object.create(null), (t) => { + const e = Ce.call(t); + return ft[e] || (ft[e] = e.slice(8, -1).toLowerCase()); +}); +var ft; +const k = (t) => (t = t.toLowerCase(), (e) => st(e) === t), ut = (t) => (e) => typeof e === t, { isArray: W } = Array, $ = ut("undefined"), Bt = k("ArrayBuffer"), Pe = ut("string"), N = ut("function"), Lt = ut("number"), Y = (t) => t !== null && typeof t == "object", Z = (t) => { + if (st(t) !== "object") return !1; + const e = xt(t); + return !(e !== null && e !== Object.prototype && Object.getPrototypeOf(e) !== null || Symbol.toStringTag in t || Symbol.iterator in t); +}, _e = k("Date"), xe = k("File"), je = k("Blob"), Ne = k("FileList"), Ue = k("URLSearchParams"), [ke, Be, Le, Fe] = ["ReadableStream", "Request", "Response", "Headers"].map(k); +function V(t, e, { allOwnKeys: n = !1 } = {}) { + if (t == null) return; + let r, s; + if (typeof t != "object" && (t = [t]), W(t)) for (r = 0, s = t.length; r < s; r++) e.call(null, t[r], r, t); + else { + const i = n ? Object.getOwnPropertyNames(t) : Object.keys(t), a = i.length; + let m; + for (r = 0; r < a; r++) m = i[r], e.call(null, t[m], m, t); + } +} +function Ft(t, e) { + e = e.toLowerCase(); + const n = Object.keys(t); + let r, s = n.length; + for (; s-- > 0; ) if (r = n[s], e === r.toLowerCase()) return r; + return null; +} +const ue = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Mt = (t) => !$(t) && t !== ue, Me = (ht = typeof Uint8Array < "u" && xt(Uint8Array), (t) => ht && t instanceof ht); +var ht; +const De = k("HTMLFormElement"), Dt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), qe = k("RegExp"), qt = (t, e) => { + const n = Object.getOwnPropertyDescriptors(t), r = {}; + V(n, (s, i) => { + let a; + (a = e(s, i, t)) !== !1 && (r[i] = a || s); + }), Object.defineProperties(t, r); +}, dt = "abcdefghijklmnopqrstuvwxyz", It = "0123456789", Wt = { DIGIT: It, ALPHA: dt, ALPHA_DIGIT: dt + dt.toUpperCase() + It }, Ie = k("AsyncFunction"), y = { isArray: W, isArrayBuffer: Bt, isBuffer: function(t) { + return t !== null && !$(t) && t.constructor !== null && !$(t.constructor) && N(t.constructor.isBuffer) && t.constructor.isBuffer(t); +}, isFormData: (t) => { + let e; + return t && (typeof FormData == "function" && t instanceof FormData || N(t.append) && ((e = st(t)) === "formdata" || e === "object" && N(t.toString) && t.toString() === "[object FormData]")); +}, isArrayBufferView: function(t) { + let e; + return e = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(t) : t && t.buffer && Bt(t.buffer), e; +}, isString: Pe, isNumber: Lt, isBoolean: (t) => t === !0 || t === !1, isObject: Y, isPlainObject: Z, isReadableStream: ke, isRequest: Be, isResponse: Le, isHeaders: Fe, isUndefined: $, isDate: _e, isFile: xe, isBlob: je, isRegExp: qe, isFunction: N, isStream: (t) => Y(t) && N(t.pipe), isURLSearchParams: Ue, isTypedArray: Me, isFileList: Ne, forEach: V, merge: function t() { + const { caseless: e } = Mt(this) && this || {}, n = {}, r = (s, i) => { + const a = e && Ft(n, i) || i; + Z(n[a]) && Z(s) ? n[a] = t(n[a], s) : Z(s) ? n[a] = t({}, s) : W(s) ? n[a] = s.slice() : n[a] = s; + }; + for (let s = 0, i = arguments.length; s < i; s++) arguments[s] && V(arguments[s], r); + return n; +}, extend: (t, e, n, { allOwnKeys: r } = {}) => (V(e, (s, i) => { + n && N(s) ? t[i] = ce(s, n) : t[i] = s; +}, { allOwnKeys: r }), 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, n, r) => { + t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", { value: e.prototype }), n && Object.assign(t.prototype, n); +}, toFlatObject: (t, e, n, r) => { + let s, i, a; + const m = {}; + if (e = e || {}, t == null) return e; + do { + for (s = Object.getOwnPropertyNames(t), i = s.length; i-- > 0; ) a = s[i], r && !r(a, t, e) || m[a] || (e[a] = t[a], m[a] = !0); + t = n !== !1 && xt(t); + } while (t && (!n || n(t, e)) && t !== Object.prototype); + return e; +}, kindOf: st, kindOfTest: k, endsWith: (t, e, n) => { + t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length; + const r = t.indexOf(e, n); + return r !== -1 && r === n; +}, toArray: (t) => { + if (!t) return null; + if (W(t)) return t; + let e = t.length; + if (!Lt(e)) return null; + const n = new Array(e); + for (; e-- > 0; ) n[e] = t[e]; + return n; +}, forEachEntry: (t, e) => { + const n = (t && t[Symbol.iterator]).call(t); + let r; + for (; (r = n.next()) && !r.done; ) { + const s = r.value; + e.call(t, s[0], s[1]); + } +}, matchAll: (t, e) => { + let n; + const r = []; + for (; (n = t.exec(e)) !== null; ) r.push(n); + return r; +}, isHTMLForm: De, hasOwnProperty: Dt, hasOwnProp: Dt, reduceDescriptors: qt, freezeMethods: (t) => { + qt(t, (e, n) => { + if (N(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1) return !1; + const r = t[n]; + N(r) && (e.enumerable = !1, "writable" in e ? e.writable = !1 : e.set || (e.set = () => { + throw Error("Can not rewrite read-only method '" + n + "'"); + })); + }); +}, toObjectSet: (t, e) => { + const n = {}, r = (s) => { + s.forEach((i) => { + n[i] = !0; + }); + }; + return W(t) ? r(t) : r(String(t).split(e)), n; +}, toCamelCase: (t) => t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, n, r) { + return n.toUpperCase() + r; +}), noop: () => { +}, toFiniteNumber: (t, e) => t != null && Number.isFinite(t = +t) ? t : e, findKey: Ft, global: ue, isContextDefined: Mt, ALPHABET: Wt, generateString: (t = 16, e = Wt.ALPHA_DIGIT) => { + let n = ""; + const { length: r } = e; + for (; t--; ) n += e[Math.random() * r | 0]; + return n; +}, isSpecCompliantForm: function(t) { + return !!(t && N(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]); +}, toJSONObject: (t) => { + const e = new Array(10), n = (r, s) => { + if (Y(r)) { + if (e.indexOf(r) >= 0) return; + if (!("toJSON" in r)) { + e[s] = r; + const i = W(r) ? [] : {}; + return V(r, (a, m) => { + const g = n(a, s + 1); + !$(g) && (i[m] = g); + }), e[s] = void 0, i; + } + } + return r; + }; + return n(t, 0); +}, isAsyncFn: Ie, isThenable: (t) => t && (Y(t) || N(t)) && N(t.then) && N(t.catch) }; +function O(t, e, n, r, 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), n && (this.config = n), r && (this.request = r), s && (this.response = s); +} +y.inherits(O, 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: y.toJSONObject(this.config), code: this.code, status: this.response && this.response.status ? this.response.status : null }; +} }); +const zt = O.prototype, Ht = {}; +["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) => { + Ht[t] = { value: t }; +}), Object.defineProperties(O, Ht), Object.defineProperty(zt, "isAxiosError", { value: !0 }), O.from = (t, e, n, r, s, i) => { + const a = Object.create(zt); + return y.toFlatObject(t, a, function(m) { + return m !== Error.prototype; + }, (m) => m !== "isAxiosError"), O.call(a, t.message, e, n, r, s), a.cause = t, a.name = t.name, i && Object.assign(a, i), a; +}; +function pt(t) { + return y.isPlainObject(t) || y.isArray(t); +} +function le(t) { + return y.endsWith(t, "[]") ? t.slice(0, -2) : t; +} +function Jt(t, e, n) { + return t ? t.concat(e).map(function(r, s) { + return r = le(r), !n && s ? "[" + r + "]" : r; + }).join(n ? "." : "") : e; +} +const We = y.toFlatObject(y, {}, null, function(t) { + return /^is[A-Z]/.test(t); +}); +function it(t, e, n) { + if (!y.isObject(t)) throw new TypeError("target must be an object"); + e = e || new FormData(); + const r = (n = y.toFlatObject(n, { metaTokens: !0, dots: !1, indexes: !1 }, !1, function(w, E) { + return !y.isUndefined(E[w]); + })).metaTokens, s = n.visitor || p, i = n.dots, a = n.indexes, m = (n.Blob || typeof Blob < "u" && Blob) && y.isSpecCompliantForm(e); + if (!y.isFunction(s)) throw new TypeError("visitor must be a function"); + function g(w) { + if (w === null) return ""; + if (y.isDate(w)) return w.toISOString(); + if (!m && y.isBlob(w)) throw new O("Blob is not supported. Use a Buffer instead."); + return y.isArrayBuffer(w) || y.isTypedArray(w) ? m && typeof Blob == "function" ? new Blob([w]) : Buffer.from(w) : w; + } + function p(w, E, d) { + let l = w; + if (w && !d && typeof w == "object") { + if (y.endsWith(E, "{}")) E = r ? E : E.slice(0, -2), w = JSON.stringify(w); + else if (y.isArray(w) && function(o) { + return y.isArray(o) && !o.some(pt); + }(w) || (y.isFileList(w) || y.endsWith(E, "[]")) && (l = y.toArray(w))) return E = le(E), l.forEach(function(o, c) { + !y.isUndefined(o) && o !== null && e.append(a === !0 ? Jt([E], c, i) : a === null ? E : E + "[]", g(o)); + }), !1; + } + return !!pt(w) || (e.append(Jt(d, E, i), g(w)), !1); + } + const b = [], v = Object.assign(We, { defaultVisitor: p, convertValue: g, isVisitable: pt }); + if (!y.isObject(t)) throw new TypeError("data must be an object"); + return function w(E, d) { + if (!y.isUndefined(E)) { + if (b.indexOf(E) !== -1) throw Error("Circular reference detected in " + d.join(".")); + b.push(E), y.forEach(E, function(l, o) { + (!(y.isUndefined(l) || l === null) && s.call(e, l, y.isString(o) ? o.trim() : o, d, v)) === !0 && w(l, d ? d.concat(o) : [o]); + }), b.pop(); + } + }(t), e; +} +function $t(t) { + const e = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+", "%00": "\0" }; + return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function(n) { + return e[n]; + }); +} +function jt(t, e) { + this._pairs = [], t && it(t, this, e); +} +const Vt = jt.prototype; +function ze(t) { + return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); +} +function fe(t, e, n) { + if (!e) return t; + const r = n && n.encode || ze, s = n && n.serialize; + let i; + if (i = s ? s(e, n) : y.isURLSearchParams(e) ? e.toString() : new jt(e, n).toString(r), i) { + const a = t.indexOf("#"); + a !== -1 && (t = t.slice(0, a)), t += (t.indexOf("?") === -1 ? "?" : "&") + i; + } + return t; +} +Vt.append = function(t, e) { + this._pairs.push([t, e]); +}, Vt.toString = function(t) { + const e = t ? function(n) { + return t.call(this, n, $t); + } : $t; + return this._pairs.map(function(n) { + return e(n[0]) + "=" + e(n[1]); + }, "").join("&"); +}; +class Kt { + constructor() { + this.handlers = []; + } + use(e, n, r) { + return this.handlers.push({ fulfilled: e, rejected: n, synchronous: !!r && r.synchronous, runWhen: r ? r.runWhen : null }), this.handlers.length - 1; + } + eject(e) { + this.handlers[e] && (this.handlers[e] = null); + } + clear() { + this.handlers && (this.handlers = []); + } + forEach(e) { + y.forEach(this.handlers, function(n) { + n !== null && e(n); + }); + } +} +const he = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 }, He = { isBrowser: !0, classes: { URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : jt, FormData: typeof FormData < "u" ? FormData : null, Blob: typeof Blob < "u" ? Blob : null }, protocols: ["http", "https", "file", "blob", "url", "data"] }, Nt = typeof window < "u" && typeof document < "u", Je = (Gt = typeof navigator < "u" && navigator.product, Nt && ["ReactNative", "NativeScript", "NS"].indexOf(Gt) < 0); +var Gt; +const $e = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ve = Nt && window.location.href || "http://localhost", U = { ...Object.freeze(Object.defineProperty({ __proto__: null, hasBrowserEnv: Nt, hasStandardBrowserEnv: Je, hasStandardBrowserWebWorkerEnv: $e, origin: Ve }, Symbol.toStringTag, { value: "Module" })), ...He }; +function de(t) { + function e(n, r, s, i) { + let a = n[i++]; + if (a === "__proto__") return !0; + const m = Number.isFinite(+a), g = i >= n.length; + return a = !a && y.isArray(s) ? s.length : a, g ? (y.hasOwnProp(s, a) ? s[a] = [s[a], r] : s[a] = r, !m) : (s[a] && y.isObject(s[a]) || (s[a] = []), e(n, r, s[a], i) && y.isArray(s[a]) && (s[a] = function(p) { + const b = {}, v = Object.keys(p); + let w; + const E = v.length; + let d; + for (w = 0; w < E; w++) d = v[w], b[d] = p[d]; + return b; + }(s[a])), !m); + } + if (y.isFormData(t) && y.isFunction(t.entries)) { + const n = {}; + return y.forEachEntry(t, (r, s) => { + e(function(i) { + return y.matchAll(/\w+|\[(\w*)]/g, i).map((a) => a[0] === "[]" ? "" : a[1] || a[0]); + }(r), s, n, 0); + }), n; + } + return null; +} +const Q = { transitional: he, adapter: ["xhr", "http", "fetch"], transformRequest: [function(t, e) { + const n = e.getContentType() || "", r = n.indexOf("application/json") > -1, s = y.isObject(t); + if (s && y.isHTMLForm(t) && (t = new FormData(t)), y.isFormData(t)) return r ? JSON.stringify(de(t)) : t; + if (y.isArrayBuffer(t) || y.isBuffer(t) || y.isStream(t) || y.isFile(t) || y.isBlob(t) || y.isReadableStream(t)) return t; + if (y.isArrayBufferView(t)) return t.buffer; + if (y.isURLSearchParams(t)) return e.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString(); + let i; + if (s) { + if (n.indexOf("application/x-www-form-urlencoded") > -1) return function(a, m) { + return it(a, new U.classes.URLSearchParams(), Object.assign({ visitor: function(g, p, b, v) { + return U.isNode && y.isBuffer(g) ? (this.append(p, g.toString("base64")), !1) : v.defaultVisitor.apply(this, arguments); + } }, m)); + }(t, this.formSerializer).toString(); + if ((i = y.isFileList(t)) || n.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 || r ? (e.setContentType("application/json", !1), function(a, m, g) { + if (y.isString(a)) try { + return (m || JSON.parse)(a), y.trim(a); + } catch (p) { + if (p.name !== "SyntaxError") throw p; + } + return (g || JSON.stringify)(a); + }(t)) : t; +}], transformResponse: [function(t) { + const e = this.transitional || Q.transitional, n = e && e.forcedJSONParsing, r = this.responseType === "json"; + if (y.isResponse(t) || y.isReadableStream(t)) return t; + if (t && y.isString(t) && (n && !this.responseType || r)) { + const s = !(e && e.silentJSONParsing) && r; + try { + return JSON.parse(t); + } catch (i) { + if (s) + throw i.name === "SyntaxError" ? O.from(i, O.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: U.classes.FormData, Blob: U.classes.Blob }, validateStatus: function(t) { + return t >= 200 && t < 300; +}, headers: { common: { Accept: "application/json, text/plain, */*", "Content-Type": void 0 } } }; +y.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => { + Q.headers[t] = {}; +}); +const Ke = y.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"]), Xt = Symbol("internals"); +function J(t) { + return t && String(t).trim().toLowerCase(); +} +function tt(t) { + return t === !1 || t == null ? t : y.isArray(t) ? t.map(tt) : String(t); +} +function mt(t, e, n, r, s) { + return y.isFunction(r) ? r.call(this, e, n) : (s && (e = n), y.isString(e) ? y.isString(r) ? e.indexOf(r) !== -1 : y.isRegExp(r) ? r.test(e) : void 0 : void 0); +} +class x { + constructor(e) { + e && this.set(e); + } + set(e, n, r) { + const s = this; + function i(m, g, p) { + const b = J(g); + if (!b) throw new Error("header name must be a non-empty string"); + const v = y.findKey(s, b); + (!v || s[v] === void 0 || p === !0 || p === void 0 && s[v] !== !1) && (s[v || g] = tt(m)); + } + const a = (m, g) => y.forEach(m, (p, b) => i(p, b, g)); + if (y.isPlainObject(e) || e instanceof this.constructor) a(e, n); + else if (y.isString(e) && (e = e.trim()) && !/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())) a(((m) => { + const g = {}; + let p, b, v; + return m && m.split(` +`).forEach(function(w) { + v = w.indexOf(":"), p = w.substring(0, v).trim().toLowerCase(), b = w.substring(v + 1).trim(), !p || g[p] && Ke[p] || (p === "set-cookie" ? g[p] ? g[p].push(b) : g[p] = [b] : g[p] = g[p] ? g[p] + ", " + b : b); + }), g; + })(e), n); + else if (y.isHeaders(e)) for (const [m, g] of e.entries()) i(g, m, r); + else e != null && i(n, e, r); + return this; + } + get(e, n) { + if (e = J(e)) { + const r = y.findKey(this, e); + if (r) { + const s = this[r]; + if (!n) return s; + if (n === !0) return function(i) { + const a = /* @__PURE__ */ Object.create(null), m = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; + let g; + for (; g = m.exec(i); ) a[g[1]] = g[2]; + return a; + }(s); + if (y.isFunction(n)) return n.call(this, s, r); + if (y.isRegExp(n)) return n.exec(s); + throw new TypeError("parser must be boolean|regexp|function"); + } + } + } + has(e, n) { + if (e = J(e)) { + const r = y.findKey(this, e); + return !(!r || this[r] === void 0 || n && !mt(0, this[r], r, n)); + } + return !1; + } + delete(e, n) { + const r = this; + let s = !1; + function i(a) { + if (a = J(a)) { + const m = y.findKey(r, a); + !m || n && !mt(0, r[m], m, n) || (delete r[m], s = !0); + } + } + return y.isArray(e) ? e.forEach(i) : i(e), s; + } + clear(e) { + const n = Object.keys(this); + let r = n.length, s = !1; + for (; r--; ) { + const i = n[r]; + e && !mt(0, this[i], i, e, !0) || (delete this[i], s = !0); + } + return s; + } + normalize(e) { + const n = this, r = {}; + return y.forEach(this, (s, i) => { + const a = y.findKey(r, i); + if (a) return n[a] = tt(s), void delete n[i]; + const m = e ? function(g) { + return g.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (p, b, v) => b.toUpperCase() + v); + }(i) : String(i).trim(); + m !== i && delete n[i], n[m] = tt(s), r[m] = !0; + }), this; + } + concat(...e) { + return this.constructor.concat(this, ...e); + } + toJSON(e) { + const n = /* @__PURE__ */ Object.create(null); + return y.forEach(this, (r, s) => { + r != null && r !== !1 && (n[s] = e && y.isArray(r) ? r.join(", ") : r); + }), n; + } + [Symbol.iterator]() { + return Object.entries(this.toJSON())[Symbol.iterator](); + } + toString() { + return Object.entries(this.toJSON()).map(([e, n]) => e + ": " + n).join(` +`); + } + get [Symbol.toStringTag]() { + return "AxiosHeaders"; + } + static from(e) { + return e instanceof this ? e : new this(e); + } + static concat(e, ...n) { + const r = new this(e); + return n.forEach((s) => r.set(s)), r; + } + static accessor(e) { + const n = (this[Xt] = this[Xt] = { accessors: {} }).accessors, r = this.prototype; + function s(i) { + const a = J(i); + n[a] || (function(m, g) { + const p = y.toCamelCase(" " + g); + ["get", "set", "has"].forEach((b) => { + Object.defineProperty(m, b + p, { value: function(v, w, E) { + return this[b].call(this, g, v, w, E); + }, configurable: !0 }); + }); + }(r, i), n[a] = !0); + } + return y.isArray(e) ? e.forEach(s) : s(e), this; + } +} +function gt(t, e) { + const n = this || Q, r = e || n, s = x.from(r.headers); + let i = r.data; + return y.forEach(t, function(a) { + i = a.call(n, i, s.normalize(), e ? e.status : void 0); + }), s.normalize(), i; +} +function pe(t) { + return !(!t || !t.__CANCEL__); +} +function H(t, e, n) { + O.call(this, t ?? "canceled", O.ERR_CANCELED, e, n), this.name = "CanceledError"; +} +function me(t, e, n) { + const r = n.config.validateStatus; + n.status && r && !r(n.status) ? e(new O("Request failed with status code " + n.status, [O.ERR_BAD_REQUEST, O.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n)) : t(n); +} +x.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]), y.reduceDescriptors(x.prototype, ({ value: t }, e) => { + let n = e[0].toUpperCase() + e.slice(1); + return { get: () => t, set(r) { + this[n] = r; + } }; +}), y.freezeMethods(x), y.inherits(H, O, { __CANCEL__: !0 }); +const at = (t, e, n = 3) => { + let r = 0; + const s = function(i, a) { + i = i || 10; + const m = new Array(i), g = new Array(i); + let p, b = 0, v = 0; + return a = a !== void 0 ? a : 1e3, function(w) { + const E = Date.now(), d = g[v]; + p || (p = E), m[b] = w, g[b] = E; + let l = v, o = 0; + for (; l !== b; ) o += m[l++], l %= i; + if (b = (b + 1) % i, b === v && (v = (v + 1) % i), E - p < a) return; + const c = d && E - d; + return c ? Math.round(1e3 * o / c) : void 0; + }; + }(50, 250); + return function(i, a) { + let m = 0; + const g = 1e3 / a; + let p = null; + return function() { + const b = this === !0, v = Date.now(); + if (b || v - m > g) return p && (clearTimeout(p), p = null), m = v, i.apply(null, arguments); + p || (p = setTimeout(() => (p = null, m = Date.now(), i.apply(null, arguments)), g - (v - m))); + }; + }((i) => { + const a = i.loaded, m = i.lengthComputable ? i.total : void 0, g = a - r, p = s(g); + r = a; + const b = { loaded: a, total: m, progress: m ? a / m : void 0, bytes: g, rate: p || void 0, estimated: p && m && a <= m ? (m - a) / p : void 0, event: i, lengthComputable: m != null }; + b[e ? "download" : "upload"] = !0, t(b); + }, n); +}, Ge = U.hasStandardBrowserEnv ? function() { + const t = /(msie|trident)/i.test(navigator.userAgent), e = document.createElement("a"); + let n; + function r(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 n = r(window.location.href), function(s) { + const i = y.isString(s) ? r(s) : s; + return i.protocol === n.protocol && i.host === n.host; + }; +}() : function() { + return !0; +}, Xe = U.hasStandardBrowserEnv ? { write(t, e, n, r, s, i) { + const a = [t + "=" + encodeURIComponent(e)]; + y.isNumber(n) && a.push("expires=" + new Date(n).toGMTString()), y.isString(r) && a.push("path=" + r), y.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 ge(t, e) { + return t && !/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) ? function(n, r) { + return r ? n.replace(/\/?\/$/, "") + "/" + r.replace(/^\/+/, "") : n; + }(t, e) : e; +} +const Qt = (t) => t instanceof x ? { ...t } : t; +function I(t, e) { + e = e || {}; + const n = {}; + function r(p, b, v) { + return y.isPlainObject(p) && y.isPlainObject(b) ? y.merge.call({ caseless: v }, p, b) : y.isPlainObject(b) ? y.merge({}, b) : y.isArray(b) ? b.slice() : b; + } + function s(p, b, v) { + return y.isUndefined(b) ? y.isUndefined(p) ? void 0 : r(void 0, p, v) : r(p, b, v); + } + function i(p, b) { + if (!y.isUndefined(b)) return r(void 0, b); + } + function a(p, b) { + return y.isUndefined(b) ? y.isUndefined(p) ? void 0 : r(void 0, p) : r(void 0, b); + } + function m(p, b, v) { + return v in e ? r(p, b) : v in t ? r(void 0, p) : void 0; + } + const g = { 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: m, headers: (p, b) => s(Qt(p), Qt(b), !0) }; + return y.forEach(Object.keys(Object.assign({}, t, e)), function(p) { + const b = g[p] || s, v = b(t[p], e[p], p); + y.isUndefined(v) && b !== m || (n[p] = v); + }), n; +} +const ye = (t) => { + const e = I({}, t); + let n, { data: r, withXSRFToken: s, xsrfHeaderName: i, xsrfCookieName: a, headers: m, auth: g } = e; + if (e.headers = m = x.from(m), e.url = fe(ge(e.baseURL, e.url), t.params, t.paramsSerializer), g && m.set("Authorization", "Basic " + btoa((g.username || "") + ":" + (g.password ? unescape(encodeURIComponent(g.password)) : ""))), y.isFormData(r)) { + if (U.hasStandardBrowserEnv || U.hasStandardBrowserWebWorkerEnv) m.setContentType(void 0); + else if ((n = m.getContentType()) !== !1) { + const [p, ...b] = n ? n.split(";").map((v) => v.trim()).filter(Boolean) : []; + m.setContentType([p || "multipart/form-data", ...b].join("; ")); + } + } + if (U.hasStandardBrowserEnv && (s && y.isFunction(s) && (s = s(e)), s || s !== !1 && Ge(e.url))) { + const p = i && a && Xe.read(a); + p && m.set(i, p); + } + return e; +}, Qe = typeof XMLHttpRequest < "u" && function(t) { + return new Promise(function(e, n) { + const r = ye(t); + let s = r.data; + const i = x.from(r.headers).normalize(); + let a, { responseType: m } = r; + function g() { + r.cancelToken && r.cancelToken.unsubscribe(a), r.signal && r.signal.removeEventListener("abort", a); + } + let p = new XMLHttpRequest(); + function b() { + if (!p) return; + const w = x.from("getAllResponseHeaders" in p && p.getAllResponseHeaders()); + me(function(E) { + e(E), g(); + }, function(E) { + n(E), g(); + }, { data: m && m !== "text" && m !== "json" ? p.response : p.responseText, status: p.status, statusText: p.statusText, headers: w, config: t, request: p }), p = null; + } + p.open(r.method.toUpperCase(), r.url, !0), p.timeout = r.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 && (n(new O("Request aborted", O.ECONNABORTED, r, p)), p = null); + }, p.onerror = function() { + n(new O("Network Error", O.ERR_NETWORK, r, p)), p = null; + }, p.ontimeout = function() { + let w = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded"; + const E = r.transitional || he; + r.timeoutErrorMessage && (w = r.timeoutErrorMessage), n(new O(w, E.clarifyTimeoutError ? O.ETIMEDOUT : O.ECONNABORTED, r, p)), p = null; + }, s === void 0 && i.setContentType(null), "setRequestHeader" in p && y.forEach(i.toJSON(), function(w, E) { + p.setRequestHeader(E, w); + }), y.isUndefined(r.withCredentials) || (p.withCredentials = !!r.withCredentials), m && m !== "json" && (p.responseType = r.responseType), typeof r.onDownloadProgress == "function" && p.addEventListener("progress", at(r.onDownloadProgress, !0)), typeof r.onUploadProgress == "function" && p.upload && p.upload.addEventListener("progress", at(r.onUploadProgress)), (r.cancelToken || r.signal) && (a = (w) => { + p && (n(!w || w.type ? new H(null, t, p) : w), p.abort(), p = null); + }, r.cancelToken && r.cancelToken.subscribe(a), r.signal && (r.signal.aborted ? a() : r.signal.addEventListener("abort", a))); + const v = function(w) { + const E = /^([-+\w]{1,25})(:?\/\/|:)/.exec(w); + return E && E[1] || ""; + }(r.url); + v && U.protocols.indexOf(v) === -1 ? n(new O("Unsupported protocol " + v + ":", O.ERR_BAD_REQUEST, t)) : p.send(s || null); + }); +}, Ye = (t, e) => { + let n, r = new AbortController(); + const s = function(g) { + if (!n) { + n = !0, a(); + const p = g instanceof Error ? g : this.reason; + r.abort(p instanceof O ? p : new H(p instanceof Error ? p.message : p)); + } + }; + let i = e && setTimeout(() => { + s(new O(`timeout ${e} of ms exceeded`, O.ETIMEDOUT)); + }, e); + const a = () => { + t && (i && clearTimeout(i), i = null, t.forEach((g) => { + g && (g.removeEventListener ? g.removeEventListener("abort", s) : g.unsubscribe(s)); + }), t = null); + }; + t.forEach((g) => g && g.addEventListener && g.addEventListener("abort", s)); + const { signal: m } = r; + return m.unsubscribe = a, [m, () => { + i && clearTimeout(i), i = null; + }]; +}, Ze = function* (t, e) { + let n = t.byteLength; + if (!e || n < e) return void (yield t); + let r, s = 0; + for (; s < n; ) r = s + e, yield t.slice(s, r), s = r; +}, Yt = (t, e, n, r, s) => { + const i = async function* (m, g, p) { + for await (const b of m) yield* Ze(ArrayBuffer.isView(b) ? b : await p(String(b)), g); + }(t, e, s); + let a = 0; + return new ReadableStream({ type: "bytes", async pull(m) { + const { done: g, value: p } = await i.next(); + if (g) return m.close(), void r(); + let b = p.byteLength; + n && n(a += b), m.enqueue(new Uint8Array(p)); + }, cancel: (m) => (r(m), i.return()) }, { highWaterMark: 2 }); +}, Zt = (t, e) => { + const n = t != null; + return (r) => setTimeout(() => e({ lengthComputable: n, total: t, loaded: r })); +}, lt = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", be = lt && typeof ReadableStream == "function", wt = lt && (typeof TextEncoder == "function" ? (te = new TextEncoder(), (t) => te.encode(t)) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())); +var te; +const tn = be && (() => { + let t = !1; + const e = new Request(U.origin, { body: new ReadableStream(), method: "POST", get duplex() { + return t = !0, "half"; + } }).headers.has("Content-Type"); + return t && !e; +})(), vt = be && !!(() => { + try { + return y.isReadableStream(new Response("").body); + } catch { + } +})(), ct = { stream: vt && ((t) => t.body) }; +var ee; +lt && (ee = new Response(), ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => { + !ct[t] && (ct[t] = y.isFunction(ee[t]) ? (e) => e[t]() : (e, n) => { + throw new O(`Response type '${t}' is not supported`, O.ERR_NOT_SUPPORT, n); + }); +})); +const en = async (t, e) => { + const n = y.toFiniteNumber(t.getContentLength()); + return n ?? (async (r) => r == null ? 0 : y.isBlob(r) ? r.size : y.isSpecCompliantForm(r) ? (await new Request(r).arrayBuffer()).byteLength : y.isArrayBufferView(r) ? r.byteLength : (y.isURLSearchParams(r) && (r += ""), y.isString(r) ? (await wt(r)).byteLength : void 0))(e); +}, we = { http: null, xhr: Qe, fetch: lt && (async (t) => { + let { url: e, method: n, data: r, signal: s, cancelToken: i, timeout: a, onDownloadProgress: m, onUploadProgress: g, responseType: p, headers: b, withCredentials: v = "same-origin", fetchOptions: w } = ye(t); + p = p ? (p + "").toLowerCase() : "text"; + let E, d, [l, o] = s || i || a ? Ye([s, i], a) : []; + const c = () => { + !E && setTimeout(() => { + l && l.unsubscribe(); + }), E = !0; + }; + let u; + try { + if (g && tn && n !== "get" && n !== "head" && (u = await en(b, r)) !== 0) { + let S, T = new Request(e, { method: "POST", body: r, duplex: "half" }); + y.isFormData(r) && (S = T.headers.get("content-type")) && b.setContentType(S), T.body && (r = Yt(T.body, 65536, Zt(u, at(g)), null, wt)); + } + y.isString(v) || (v = v ? "cors" : "omit"), d = new Request(e, { ...w, signal: l, method: n.toUpperCase(), headers: b.normalize().toJSON(), body: r, duplex: "half", withCredentials: v }); + let h = await fetch(d); + const f = vt && (p === "stream" || p === "response"); + if (vt && (m || f)) { + const S = {}; + ["status", "statusText", "headers"].forEach((j) => { + S[j] = h[j]; + }); + const T = y.toFiniteNumber(h.headers.get("content-length")); + h = new Response(Yt(h.body, 65536, m && Zt(T, at(m, !0)), f && c, wt), S); + } + p = p || "text"; + let A = await ct[y.findKey(ct, p) || "text"](h, t); + return !f && c(), o && o(), await new Promise((S, T) => { + me(S, T, { data: A, headers: x.from(h.headers), status: h.status, statusText: h.statusText, config: t, request: d }); + }); + } catch (h) { + throw c(), h && h.name === "TypeError" && /fetch/i.test(h.message) ? Object.assign(new O("Network Error", O.ERR_NETWORK, t, d), { cause: h.cause || h }) : O.from(h, h && h.code, t, d); + } +}) }; +y.forEach(we, (t, e) => { + if (t) { + try { + Object.defineProperty(t, "name", { value: e }); + } catch { + } + Object.defineProperty(t, "adapterName", { value: e }); + } +}); +const ne = (t) => `- ${t}`, nn = (t) => y.isFunction(t) || t === null || t === !1, ve = (t) => { + t = y.isArray(t) ? t : [t]; + const { length: e } = t; + let n, r; + const s = {}; + for (let i = 0; i < e; i++) { + let a; + if (n = t[i], r = n, !nn(n) && (r = we[(a = String(n)).toLowerCase()], r === void 0)) throw new O(`Unknown adapter '${a}'`); + if (r) break; + s[a || "#" + i] = r; + } + if (!r) { + const i = Object.entries(s).map(([a, m]) => `adapter ${a} ` + (m === !1 ? "is not supported by the environment" : "is not available in the build")); + throw new O("There is no suitable adapter to dispatch the request " + (e ? i.length > 1 ? `since : +` + i.map(ne).join(` +`) : " " + ne(i[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT"); + } + return r; +}; +function yt(t) { + if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted) throw new H(null, t); +} +function re(t) { + return yt(t), t.headers = x.from(t.headers), t.data = gt.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), ve(t.adapter || Q.adapter)(t).then(function(e) { + return yt(t), e.data = gt.call(t, t.transformResponse, e), e.headers = x.from(e.headers), e; + }, function(e) { + return pe(e) || (yt(t), e && e.response && (e.response.data = gt.call(t, t.transformResponse, e.response), e.response.headers = x.from(e.response.headers))), Promise.reject(e); + }); +} +const rn = "1.7.2", Ut = {}; +["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => { + Ut[t] = function(n) { + return typeof n === t || "a" + (e < 1 ? "n " : " ") + t; + }; +}); +const oe = {}; +Ut.transitional = function(t, e, n) { + function r(s, i) { + return "[Axios v1.7.2] Transitional option '" + s + "'" + i + (n ? ". " + n : ""); + } + return (s, i, a) => { + if (t === !1) throw new O(r(i, " has been removed" + (e ? " in " + e : "")), O.ERR_DEPRECATED); + return e && !oe[i] && (oe[i] = !0, console.warn(r(i, " has been deprecated since v" + e + " and will be removed in the near future"))), !t || t(s, i, a); + }; +}; +const Et = { assertOptions: function(t, e, n) { + if (typeof t != "object") throw new O("options must be an object", O.ERR_BAD_OPTION_VALUE); + const r = Object.keys(t); + let s = r.length; + for (; s-- > 0; ) { + const i = r[s], a = e[i]; + if (a) { + const m = t[i], g = m === void 0 || a(m, i, t); + if (g !== !0) throw new O("option " + i + " must be " + g, O.ERR_BAD_OPTION_VALUE); + } else if (n !== !0) throw new O("Unknown option " + i, O.ERR_BAD_OPTION); + } +}, validators: Ut }, F = Et.validators; +class q { + constructor(e) { + this.defaults = e, this.interceptors = { request: new Kt(), response: new Kt() }; + } + async request(e, n) { + try { + return await this._request(e, n); + } catch (r) { + if (r instanceof Error) { + let s; + Error.captureStackTrace ? Error.captureStackTrace(s = {}) : s = new Error(); + const i = s.stack ? s.stack.replace(/^.+\n/, "") : ""; + try { + r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += ` +` + i) : r.stack = i; + } catch { + } + } + throw r; + } + } + _request(e, n) { + typeof e == "string" ? (n = n || {}).url = e : n = e || {}, n = I(this.defaults, n); + const { transitional: r, paramsSerializer: s, headers: i } = n; + r !== void 0 && Et.assertOptions(r, { silentJSONParsing: F.transitional(F.boolean), forcedJSONParsing: F.transitional(F.boolean), clarifyTimeoutError: F.transitional(F.boolean) }, !1), s != null && (y.isFunction(s) ? n.paramsSerializer = { serialize: s } : Et.assertOptions(s, { encode: F.function, serialize: F.function }, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase(); + let a = i && y.merge(i.common, i[n.method]); + i && y.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (d) => { + delete i[d]; + }), n.headers = x.concat(a, i); + const m = []; + let g = !0; + this.interceptors.request.forEach(function(d) { + typeof d.runWhen == "function" && d.runWhen(n) === !1 || (g = g && d.synchronous, m.unshift(d.fulfilled, d.rejected)); + }); + const p = []; + let b; + this.interceptors.response.forEach(function(d) { + p.push(d.fulfilled, d.rejected); + }); + let v, w = 0; + if (!g) { + const d = [re.bind(this), void 0]; + for (d.unshift.apply(d, m), d.push.apply(d, p), v = d.length, b = Promise.resolve(n); w < v; ) b = b.then(d[w++], d[w++]); + return b; + } + v = m.length; + let E = n; + for (w = 0; w < v; ) { + const d = m[w++], l = m[w++]; + try { + E = d(E); + } catch (o) { + l.call(this, o); + break; + } + } + try { + b = re.call(this, E); + } catch (d) { + return Promise.reject(d); + } + for (w = 0, v = p.length; w < v; ) b = b.then(p[w++], p[w++]); + return b; + } + getUri(e) { + return fe(ge((e = I(this.defaults, e)).baseURL, e.url), e.params, e.paramsSerializer); + } +} +y.forEach(["delete", "get", "head", "options"], function(t) { + q.prototype[t] = function(e, n) { + return this.request(I(n || {}, { method: t, url: e, data: (n || {}).data })); + }; +}), y.forEach(["post", "put", "patch"], function(t) { + function e(n) { + return function(r, s, i) { + return this.request(I(i || {}, { method: t, headers: n ? { "Content-Type": "multipart/form-data" } : {}, url: r, data: s })); + }; + } + q.prototype[t] = e(), q.prototype[t + "Form"] = e(!0); +}); +class kt { + constructor(e) { + if (typeof e != "function") throw new TypeError("executor must be a function."); + let n; + this.promise = new Promise(function(s) { + n = s; + }); + const r = this; + this.promise.then((s) => { + if (!r._listeners) return; + let i = r._listeners.length; + for (; i-- > 0; ) r._listeners[i](s); + r._listeners = null; + }), this.promise.then = (s) => { + let i; + const a = new Promise((m) => { + r.subscribe(m), i = m; + }).then(s); + return a.cancel = function() { + r.unsubscribe(i); + }, a; + }, e(function(s, i, a) { + r.reason || (r.reason = new H(s, i, a), n(r.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 n = this._listeners.indexOf(e); + n !== -1 && this._listeners.splice(n, 1); + } + static source() { + let e; + return { token: new kt(function(n) { + e = n; + }), cancel: e }; + } +} +const St = { 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(St).forEach(([t, e]) => { + St[e] = t; +}); +const C = function t(e) { + const n = new q(e), r = ce(q.prototype.request, n); + return y.extend(r, q.prototype, n, { allOwnKeys: !0 }), y.extend(r, n, null, { allOwnKeys: !0 }), r.create = function(s) { + return t(I(e, s)); + }, r; +}(Q); +C.Axios = q, C.CanceledError = H, C.CancelToken = kt, C.isCancel = pe, C.VERSION = rn, C.toFormData = it, C.AxiosError = O, C.Cancel = C.CanceledError, C.all = function(t) { + return Promise.all(t); +}, C.spread = function(t) { + return function(e) { + return t.apply(null, e); + }; +}, C.isAxiosError = function(t) { + return y.isObject(t) && t.isAxiosError === !0; +}, C.mergeConfig = I, C.AxiosHeaders = x, C.formToJSON = (t) => de(y.isHTMLForm(t) ? new FormData(t) : t), C.getAdapter = ve, C.HttpStatusCode = St, C.default = C; +var on = Object.defineProperty, P = (t, e, n) => (((r, s, i) => { + s in r ? on(r, s, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[s] = i; +})(t, typeof e != "symbol" ? e + "" : e, n), n), Ee = (t, e, n) => { + if (!e.has(t)) throw TypeError("Cannot " + n); +}, R = (t, e, n) => (Ee(t, e, "read from private field"), n ? n.call(t) : e.get(t)), _ = (t, e, n) => { + if (e.has(t)) throw TypeError("Cannot add the same private member more than once"); + e instanceof WeakSet ? e.add(t) : e.set(t, n); +}, B = (t, e, n, r) => (Ee(t, e, "write to private field"), e.set(t, n), n); +function sn(t) { + return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; +} +var se, Se = {}; +se = Se, function(t, e) { + var n = e(); + for (var r in n) se[r] = n[r]; +}(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]; + }); + }, n = function(i) { + return Number.prototype.toString.call(i, 36).toUpperCase(); + }, r = function(i) { + return parseInt(i, 36); + }, s = Array.prototype.indexOf || function(i, a) { + for (var m = a || 0, g = this.length; m < g; m++) if (this[m] === i) return m; + return -1; + }; + return { JSON, pack: function(i, a) { + var m = (a = a || {}).verbose || !1; + m && console.log("Normalize the JSON Object"), i = typeof i == "string" ? this.JSON.parse(i) : i, m && console.log("Creating a empty dictionary"); + var g = { strings: [], integers: [], floats: [] }; + m && console.log("Creating the AST"); + var p = function E(d) { + m && 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 c = ["@"]; + for (var u in d) d.hasOwnProperty(u) && c.push(E(d[u])); + return c; + } + if (o === "object") { + for (var h in c = ["$"], d) d.hasOwnProperty(h) && (c.push(E(h)), c.push(E(d[h]))); + return c; + } + if (d === "") return { type: "empty", index: -4 }; + if (o === "string") return (l = s.call(g.strings, d)) == -1 && (g.strings.push(t(d)), l = g.strings.length - 1), { type: "strings", index: l }; + if (o === "number" && d % 1 == 0) return (l = s.call(g.integers, d)) == -1 && (g.integers.push(n(d)), l = g.integers.length - 1), { type: "integers", index: l }; + if (o === "number") return (l = s.call(g.floats, d)) == -1 && (g.floats.push(d), l = g.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 = g.strings.length, v = g.integers.length; + g.floats.length, m && console.log("Parsing the dictionary"); + var w = g.strings.join("|"); + return w += "^" + g.integers.join("|"), w += "^" + g.floats.join("|"), m && console.log("Parsing the structure"), w += "^" + function E(d) { + if (m && 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 c = d.type, u = d.index; + if (c === "strings") return n(u); + if (c === "integers") return n(b + u); + if (c === "floats") return n(b + v + u); + if (c === "boolean") return d.index; + if (c === "null") return -3; + if (c === "undefined") return -5; + if (c === "empty") return -4; + throw new TypeError("The item is alien!"); + }(p), m && console.log("Ending parser"), a.debug ? { dictionary: g, ast: p, packed: w } : w; + }, unpack: function(i, a) { + a = a || {}; + var m = i.split("^"); + a.verbose && console.log("Building dictionary"); + var g = [], p = m[0]; + if (p !== "") { + p = p.split("|"), a.verbose && console.log("Parse the strings dictionary"); + for (var b = 0, v = p.length; b < v; b++) g.push(e(p[b])); + } + if ((p = m[1]) !== "") for (p = p.split("|"), a.verbose && console.log("Parse the integers dictionary"), b = 0, v = p.length; b < v; b++) g.push(r(p[b])); + if ((p = m[2]) !== "") for (p = p.split("|"), a.verbose && console.log("Parse the floats dictionary"), b = 0, v = p.length; b < v; b++) g.push(parseFloat(p[b])); + p = null, a.verbose && console.log("Tokenizing the structure"); + var w = "", E = [], d = m[3].length; + for (b = 0; b < d; b++) { + var l = m[3].charAt(b); + l === "|" || l === "$" || l === "@" || l === "]" ? (w && (E.push(r(w)), w = ""), l !== "|" && E.push(l)) : w += l; + } + var o = E.length, c = 0; + return a.verbose && console.log("Starting recursive parser"), function u() { + var h = E[c++]; + if (a.verbose && console.log("Reading collection type " + (h === "$" ? "object" : "Array")), h === "@") { + for (var f = []; c < o; c++) { + var A = E[c]; + if (a.verbose && console.log("Read " + A + " symbol"), A === "]") return f; + if (A === "@" || A === "$") f.push(u()); + else switch (A) { + 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(g[A]); + } + } + return a.verbose && console.log("Parsed " + this.JSON.stringify(f)), f; + } + if (h === "$") { + for (f = {}; c < o; c++) { + var S = E[c]; + if (S === "]") return f; + if (S = S === -4 ? "" : g[S], (A = E[++c]) === "@" || A === "$") f[S] = u(); + else switch (A) { + 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] = g[A]; + } + } + return a.verbose && console.log("Parsed " + this.JSON.stringify(f)), f; + } + throw new TypeError("Bad token " + h + " isn't a type"); + }(); + } }; +}); +const ie = sn(Se); +var K, G, z, D, Ot, Rt, et, At, Tt; +class Ct { + constructor(e, n, r, s, i) { + return P(this, "code", 0), P(this, "message", "操作成功"), P(this, "data", null), P(this, "url", ""), P(this, "res", ""), _(this, K, null), _(this, G, !0), _(this, z, !0), _(this, D, { get: (a, m) => R(this, Ot).call(this, m), ownKeys: () => Object.keys(R(this, D).getPrototypeOf() || {}), getPrototypeOf: () => R(this, G) ? this : this.data, getOwnPropertyDescriptor: () => ({ configurable: !0, enumerable: !0, writable: !0, value: R(this, D).getPrototypeOf() }) }), _(this, Ot, (a) => a === "$echoMsg" ? R(this, et) : a === "msg" ? R(this, Rt) : a === "then" || a === "resp" ? (B(this, z, !0), B(this, G, a === "resp"), R(this, At)) : a === "catch" ? R(this, Tt) : a === "IS_ECHO_MSG" ? R(this, z) : Reflect.get(this, a)), _(this, Rt, (a = (g) => g, m = !1) => (R(this, et).call(this), B(this, G, m), Promise.resolve(a == null ? void 0 : a(R(this, D).getPrototypeOf())))), _(this, et, () => { + R(this, z) && (B(this, z, !1), fn.onMsg(this.code, this.message)); + }), _(this, At, (a) => [0, 1].includes(this.code) ? Promise.resolve(a == null ? void 0 : a(R(this, D).getPrototypeOf())) : Promise.reject(R(this, K))), _(this, Tt, (a) => Promise.resolve(a(R(this, K)))), this.code = e, this.message = n, this.data = r, this.url = s, this.res = i, B(this, K, new Proxy(this, R(this, D))); + } +} +K = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(); +const bt = (t, e, n, r = "/", s = "") => new Ct(t, e, n, r, s); +var ae = ["utf8", "utf-8", "unicode-1-1-utf-8"], Oe = { TextEncoder: function(t) { + if (ae.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 n = unescape(encodeURIComponent(e)), r = new Uint8Array(n.length); + const s = n.split(""); + for (let i = 0; i < s.length; i++) r[i] = s[i].charCodeAt(0); + return r; + }; +}, TextDecoder: function(t) { + if (ae.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, n) { + if (typeof e > "u") return ""; + var r = typeof n < "u" && r in n && n.stream; + if (typeof r != "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 an = new Oe.TextEncoder("utf8"); +new Oe.TextDecoder("utf8"); +class cn { + constructor(e) { + if (P(this, "encodeTable", []), P(this, "decodeMap", new Uint8Array(256).fill(255)), e.length !== 62) throw new Error("Encoding alphabet must be 62 characters long"); + if (e.includes(` +`) || e.includes("\r")) throw new Error("Encoding alphabet contains newline character"); + this.encodeTable = e.split(""), this.decodeMap = new Uint8Array(256).fill(255); + for (let n = 0; n < e.length; n++) this.decodeMap[e.charCodeAt(n)] = n; + } + encode(e) { + if (!e || e.length === 0) return []; + const n = new un(this).encodeV2(e); + return String.fromCharCode(...n); + } + decode(e) { + if (!e || e.length === 0) return new Uint8Array(); + const n = new ln(this).decode(e); + return new TextDecoder().decode(n); + } +} +var nt, rt, ot, X, Pt, M, L; +class un { + constructor(e) { + _(this, nt, null), B(this, nt, e); + } + get6bits() { + let e = 7 & this.pos, n = this.pos >> 3; + e === 0 && (n -= 1, e = 8); + let r = this.src[n] >> 8 - e; + return e < 6 && n > 0 && (r |= this.src[n - 1] << e), 63 & r; + } + encodeV2(e) { + this.src = ((r) => an.encode(r || ""))(e), this.pos = 8 * this.src.length; + const n = []; + for (; this.pos > 0; ) { + let r = 6, s = this.get6bits(); + !(30 & ~s) && ((this.pos > 6 || s > 31) && (r = 5), s &= 31), n.push(R(this, nt).encodeTable[s].charCodeAt(0)), this.pos -= r; + } + return n; + } +} +nt = /* @__PURE__ */ new WeakMap(); +class ln { + constructor(e) { + _(this, rt, null), B(this, rt, e); + } + decode(e) { + const n = new Uint8Array(Math.ceil(6 * e.length / 8) + 1); + let r = n.length, s = 0, i = 0; + for (let a = 0; a < e.length; a++) { + const m = e[a].charCodeAt(0), g = R(this, rt).decodeMap[m]; + if (g === 255) throw new Error(`CorruptInputError at index ${a}`); + a === e.length - 1 ? (i |= g << s, s += Math.ceil(Math.log2(g + 1))) : 30 & ~g ? (i |= g << s, s += 6) : (i |= g << s, s += 5), s >= 8 && (r--, n[r] = 255 & i, s %= 8, i >>= 8); + } + return s > 0 && (r--, n[r] = 255 & i), n.slice(r); + } +} +rt = /* @__PURE__ */ new WeakMap(), Promise.withResolvers || (Promise.withResolvers = function() { + let t, e; + return { promise: new Promise((n, r) => { + t = n, e = r; + }), resolve: t, reject: e }; +}); +class _t { + constructor(e, n, r = ({}) => Promise.reject({ code: -1, msg: "请初始化HTTP请求方法主体" })) { + _(this, ot, void 0), _(this, X, void 0), _(this, Pt, void 0), _(this, M, { "#": /* @__PURE__ */ new Map(), $: /* @__PURE__ */ new Map() }), _(this, L, /* @__PURE__ */ new Map()), P(this, "request", ({ url: s = "/", method: i = "GET", ...a }, m = !1) => { + var g, p; + const b = i.toUpperCase(), v = ((o) => { + let c = 5381; + for (let u = 0; u < o.length; u++) c = 33 * c ^ o.charCodeAt(u); + return (c >>> 0).toString(16); + })(JSON.stringify([s, b, a])), w = (g = s == null ? void 0 : s.includes) != null && g.call(s, "/_/") ? "#" : "$", { promise: E, resolve: d, reject: l } = Promise.withResolvers(); + return R(this, M)[w].has(v) ? (console.log("缓存命中", s), d(R(this, M)[w].get(v))) : (R(this, L).has(v) ? R(this, L).get(v).push([d, l]) : R(this, L).set(v, [[d, l]]), (p = R(this, L).get(v)) != null && p.some((o) => o) && R(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) => ((w == "#" || m && b === "GET") && R(this, M)[w].set(v, o), o)).then((o) => { + var c; + return (c = R(this, L).get(v)) == null ? void 0 : c.forEach((u, h, f) => { + u && u[0](o), delete f[h]; + }); + }).catch((o) => { + var c; + R(this, M)[w].delete(v), (c = R(this, L).get(v)) == null || c.forEach((u, h, f) => { + u && u[1](o instanceof Ct ? o : bt(-1, o, null, s)), delete f[h]; + }); + }).finally(() => R(this, L).delete(v))), new Proxy(E, { get: (o, c) => (...u) => o.then((h) => bt(...h)[c](...u)).catch((h) => { + if (!h instanceof Ct) throw h; + return typeof h[c] == "function" ? h[c](...u) : h[c]; + }) }); + }), P(this, "get", (s, i = {}) => this.request({ url: s, method: "GET", params: i })), P(this, "post", (s, i = {}, a = {}) => this.request({ url: s, method: "POST", data: i, params: a })), P(this, "put", (s, i = {}, a = {}) => this.request({ url: s, method: "PUT", data: i, params: a })), P(this, "del", (s, i = {}, a = {}) => this.request({ url: s, method: "DELETE", data: i, params: a })), P(this, "download", (s, i) => { + }), P(this, "cache", (s, i = {}) => this.request({ url: s, method: "GET", params: i }, !0)), P(this, "list", (s, i = {}) => this.get(`/api/${s}/${this.encode(i)}`)), P(this, "getAppInfo", () => { + }), P(this, "refreshCache", (s = !1) => { + s && R(this, M)["#"].clear(), R(this, M).$.clear(); + }), P(this, "decode", (s = "", i = {}) => { + if (s === void 0 || s === "" || s === null) return i; + try { + const a = R(this, X).decode(s); + return ie.unpack(a); + } catch { + return console.warn("core.decode", s), i; + } + }), P(this, "encode", (s = {}) => { + const i = JSON.stringify(s, (a, m) => m === void 0 ? null : m); + return R(this, X).encode(ie.pack(i)); + }), B(this, Pt, e), B(this, ot, r), B(this, X, new cn(n)); + } +} +ot = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), L = /* @__PURE__ */ new WeakMap(); +const fn = _t; +_t.onUnhandledRejection = (t) => { + var e, n, r, s, i, a; + t != null && t.IS_ECHO_MSG ? ((e = t == null ? void 0 : t.$echoMsg) == null || e.call(t), (n = t == null ? void 0 : t.preventDefault) == null || n.call(t)) : (r = t.reason) != null && r.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)); +}, _t.onMsg = (t, e) => [0, 1].includes(t) ? console.log(e) : console.warn(e); +function Re(t) { + return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; +} +var Ae = { exports: {} }; +/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */ +Ae.exports = function() { + var t, e, n = { version: "0.2.0" }, r = n.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: '
' }; + function s(d, l, o) { + return d < l ? l : d > o ? o : d; + } + function i(d) { + return 100 * (-1 + d); + } + function a(d, l, o) { + var c; + return (c = r.positionUsing === "translate3d" ? { transform: "translate3d(" + i(d) + "%,0,0)" } : r.positionUsing === "translate" ? { transform: "translate(" + i(d) + "%,0)" } : { "margin-left": i(d) + "%" }).transition = "all " + l + "ms " + o, c; + } + n.configure = function(d) { + var l, o; + for (l in d) (o = d[l]) !== void 0 && d.hasOwnProperty(l) && (r[l] = o); + return this; + }, n.status = null, n.set = function(d) { + var l = n.isStarted(); + d = s(d, r.minimum, 1), n.status = d === 1 ? null : d; + var o = n.render(!l), c = o.querySelector(r.barSelector), u = r.speed, h = r.easing; + return o.offsetWidth, m(function(f) { + r.positionUsing === "" && (r.positionUsing = n.getPositioningCSS()), g(c, a(d, u, h)), d === 1 ? (g(o, { transition: "none", opacity: 1 }), o.offsetWidth, setTimeout(function() { + g(o, { transition: "all " + u + "ms linear", opacity: 0 }), setTimeout(function() { + n.remove(), f(); + }, u); + }, u)) : setTimeout(f, u); + }), this; + }, n.isStarted = function() { + return typeof n.status == "number"; + }, n.start = function() { + n.status || n.set(0); + var d = function() { + setTimeout(function() { + n.status && (n.trickle(), d()); + }, r.trickleSpeed); + }; + return r.trickle && d(), this; + }, n.done = function(d) { + return d || n.status ? n.inc(0.3 + 0.5 * Math.random()).set(1) : this; + }, n.inc = function(d) { + var l = n.status; + return l ? (typeof d != "number" && (d = (1 - l) * s(Math.random() * l, 0.1, 0.95)), l = s(l + d, 0, 0.994), n.set(l)) : n.start(); + }, n.trickle = function() { + return n.inc(Math.random() * r.trickleRate); + }, t = 0, e = 0, n.promise = function(d) { + return d && d.state() !== "resolved" ? (e === 0 && n.start(), t++, e++, d.always(function() { + --e == 0 ? (t = 0, n.done()) : n.set((t - e) / t); + }), this) : this; + }, n.render = function(d) { + if (n.isRendered()) return document.getElementById("nprogress"); + b(document.documentElement, "nprogress-busy"); + var l = document.createElement("div"); + l.id = "nprogress", l.innerHTML = r.template; + var o, c = l.querySelector(r.barSelector), u = d ? "-100" : i(n.status || 0), h = document.querySelector(r.parent); + return g(c, { transition: "all 0 linear", transform: "translate3d(" + u + "%,0,0)" }), r.showSpinner || (o = l.querySelector(r.spinnerSelector)) && E(o), h != document.body && b(h, "nprogress-custom-parent"), h.appendChild(l), l; + }, n.remove = function() { + v(document.documentElement, "nprogress-busy"), v(document.querySelector(r.parent), "nprogress-custom-parent"); + var d = document.getElementById("nprogress"); + d && E(d); + }, n.isRendered = function() { + return !!document.getElementById("nprogress"); + }, n.getPositioningCSS = function() { + var d = document.body.style, l = "WebkitTransform" in d ? "Webkit" : "MozTransform" in d ? "Moz" : "msTransform" in d ? "ms" : "OTransform" in d ? "O" : ""; + return l + "Perspective" in d ? "translate3d" : l + "Transform" in d ? "translate" : "margin"; + }; + var m = /* @__PURE__ */ function() { + var d = []; + function l() { + var o = d.shift(); + o && o(l); + } + return function(o) { + d.push(o), d.length == 1 && l(); + }; + }(), g = /* @__PURE__ */ function() { + var d = ["Webkit", "O", "Moz", "ms"], l = {}; + function o(f) { + return f.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(A, S) { + return S.toUpperCase(); + }); + } + function c(f) { + var A = document.body.style; + if (f in A) return f; + for (var S, T = d.length, j = f.charAt(0).toUpperCase() + f.slice(1); T--; ) if ((S = d[T] + j) in A) return S; + return f; + } + function u(f) { + return f = o(f), l[f] || (l[f] = c(f)); + } + function h(f, A, S) { + A = u(A), f.style[A] = S; + } + return function(f, A) { + var S, T, j = arguments; + if (j.length == 2) for (S in A) (T = A[S]) !== void 0 && A.hasOwnProperty(S) && h(f, S, T); + else h(f, j[1], j[2]); + }; + }(); + function p(d, l) { + return (typeof d == "string" ? d : w(d)).indexOf(" " + l + " ") >= 0; + } + function b(d, l) { + var o = w(d), c = o + l; + p(o, l) || (d.className = c.substring(1)); + } + function v(d, l) { + var o, c = w(d); + p(d, l) && (o = c.replace(" " + l + " ", " "), d.className = o.substring(1, o.length - 1)); + } + function w(d) { + return (" " + (d.className || "") + " ").replace(/\s+/gi, " "); + } + function E(d) { + d && d.parentNode && d.parentNode.removeChild(d); + } + return n; +}(); +const hn = Re(Ae.exports); +var Te = { exports: {} }; +Te.exports = function(t) { + var e = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"]; + function n(l, o) { + var c = l[0], u = l[1], h = l[2], f = l[3]; + u = ((u += ((h = ((h += ((f = ((f += ((c = ((c += (u & h | ~u & f) + o[0] - 680876936 | 0) << 7 | c >>> 25) + u | 0) & u | ~c & h) + o[1] - 389564586 | 0) << 12 | f >>> 20) + c | 0) & c | ~f & u) + o[2] + 606105819 | 0) << 17 | h >>> 15) + f | 0) & f | ~h & c) + o[3] - 1044525330 | 0) << 22 | u >>> 10) + h | 0, u = ((u += ((h = ((h += ((f = ((f += ((c = ((c += (u & h | ~u & f) + o[4] - 176418897 | 0) << 7 | c >>> 25) + u | 0) & u | ~c & h) + o[5] + 1200080426 | 0) << 12 | f >>> 20) + c | 0) & c | ~f & u) + o[6] - 1473231341 | 0) << 17 | h >>> 15) + f | 0) & f | ~h & c) + o[7] - 45705983 | 0) << 22 | u >>> 10) + h | 0, u = ((u += ((h = ((h += ((f = ((f += ((c = ((c += (u & h | ~u & f) + o[8] + 1770035416 | 0) << 7 | c >>> 25) + u | 0) & u | ~c & h) + o[9] - 1958414417 | 0) << 12 | f >>> 20) + c | 0) & c | ~f & u) + o[10] - 42063 | 0) << 17 | h >>> 15) + f | 0) & f | ~h & c) + o[11] - 1990404162 | 0) << 22 | u >>> 10) + h | 0, u = ((u += ((h = ((h += ((f = ((f += ((c = ((c += (u & h | ~u & f) + o[12] + 1804603682 | 0) << 7 | c >>> 25) + u | 0) & u | ~c & h) + o[13] - 40341101 | 0) << 12 | f >>> 20) + c | 0) & c | ~f & u) + o[14] - 1502002290 | 0) << 17 | h >>> 15) + f | 0) & f | ~h & c) + o[15] + 1236535329 | 0) << 22 | u >>> 10) + h | 0, u = ((u += ((h = ((h += ((f = ((f += ((c = ((c += (u & f | h & ~f) + o[1] - 165796510 | 0) << 5 | c >>> 27) + u | 0) & h | u & ~h) + o[6] - 1069501632 | 0) << 9 | f >>> 23) + c | 0) & u | c & ~u) + o[11] + 643717713 | 0) << 14 | h >>> 18) + f | 0) & c | f & ~c) + o[0] - 373897302 | 0) << 20 | u >>> 12) + h | 0, u = ((u += ((h = ((h += ((f = ((f += ((c = ((c += (u & f | h & ~f) + o[5] - 701558691 | 0) << 5 | c >>> 27) + u | 0) & h | u & ~h) + o[10] + 38016083 | 0) << 9 | f >>> 23) + c | 0) & u | c & ~u) + o[15] - 660478335 | 0) << 14 | h >>> 18) + f | 0) & c | f & ~c) + o[4] - 405537848 | 0) << 20 | u >>> 12) + h | 0, u = ((u += ((h = ((h += ((f = ((f += ((c = ((c += (u & f | h & ~f) + o[9] + 568446438 | 0) << 5 | c >>> 27) + u | 0) & h | u & ~h) + o[14] - 1019803690 | 0) << 9 | f >>> 23) + c | 0) & u | c & ~u) + o[3] - 187363961 | 0) << 14 | h >>> 18) + f | 0) & c | f & ~c) + o[8] + 1163531501 | 0) << 20 | u >>> 12) + h | 0, u = ((u += ((h = ((h += ((f = ((f += ((c = ((c += (u & f | h & ~f) + o[13] - 1444681467 | 0) << 5 | c >>> 27) + u | 0) & h | u & ~h) + o[2] - 51403784 | 0) << 9 | f >>> 23) + c | 0) & u | c & ~u) + o[7] + 1735328473 | 0) << 14 | h >>> 18) + f | 0) & c | f & ~c) + o[12] - 1926607734 | 0) << 20 | u >>> 12) + h | 0, u = ((u += ((h = ((h += ((f = ((f += ((c = ((c += (u ^ h ^ f) + o[5] - 378558 | 0) << 4 | c >>> 28) + u | 0) ^ u ^ h) + o[8] - 2022574463 | 0) << 11 | f >>> 21) + c | 0) ^ c ^ u) + o[11] + 1839030562 | 0) << 16 | h >>> 16) + f | 0) ^ f ^ c) + o[14] - 35309556 | 0) << 23 | u >>> 9) + h | 0, u = ((u += ((h = ((h += ((f = ((f += ((c = ((c += (u ^ h ^ f) + o[1] - 1530992060 | 0) << 4 | c >>> 28) + u | 0) ^ u ^ h) + o[4] + 1272893353 | 0) << 11 | f >>> 21) + c | 0) ^ c ^ u) + o[7] - 155497632 | 0) << 16 | h >>> 16) + f | 0) ^ f ^ c) + o[10] - 1094730640 | 0) << 23 | u >>> 9) + h | 0, u = ((u += ((h = ((h += ((f = ((f += ((c = ((c += (u ^ h ^ f) + o[13] + 681279174 | 0) << 4 | c >>> 28) + u | 0) ^ u ^ h) + o[0] - 358537222 | 0) << 11 | f >>> 21) + c | 0) ^ c ^ u) + o[3] - 722521979 | 0) << 16 | h >>> 16) + f | 0) ^ f ^ c) + o[6] + 76029189 | 0) << 23 | u >>> 9) + h | 0, u = ((u += ((h = ((h += ((f = ((f += ((c = ((c += (u ^ h ^ f) + o[9] - 640364487 | 0) << 4 | c >>> 28) + u | 0) ^ u ^ h) + o[12] - 421815835 | 0) << 11 | f >>> 21) + c | 0) ^ c ^ u) + o[15] + 530742520 | 0) << 16 | h >>> 16) + f | 0) ^ f ^ c) + o[2] - 995338651 | 0) << 23 | u >>> 9) + h | 0, u = ((u += ((f = ((f += (u ^ ((c = ((c += (h ^ (u | ~f)) + o[0] - 198630844 | 0) << 6 | c >>> 26) + u | 0) | ~h)) + o[7] + 1126891415 | 0) << 10 | f >>> 22) + c | 0) ^ ((h = ((h += (c ^ (f | ~u)) + o[14] - 1416354905 | 0) << 15 | h >>> 17) + f | 0) | ~c)) + o[5] - 57434055 | 0) << 21 | u >>> 11) + h | 0, u = ((u += ((f = ((f += (u ^ ((c = ((c += (h ^ (u | ~f)) + o[12] + 1700485571 | 0) << 6 | c >>> 26) + u | 0) | ~h)) + o[3] - 1894986606 | 0) << 10 | f >>> 22) + c | 0) ^ ((h = ((h += (c ^ (f | ~u)) + o[10] - 1051523 | 0) << 15 | h >>> 17) + f | 0) | ~c)) + o[1] - 2054922799 | 0) << 21 | u >>> 11) + h | 0, u = ((u += ((f = ((f += (u ^ ((c = ((c += (h ^ (u | ~f)) + o[8] + 1873313359 | 0) << 6 | c >>> 26) + u | 0) | ~h)) + o[15] - 30611744 | 0) << 10 | f >>> 22) + c | 0) ^ ((h = ((h += (c ^ (f | ~u)) + o[6] - 1560198380 | 0) << 15 | h >>> 17) + f | 0) | ~c)) + o[13] + 1309151649 | 0) << 21 | u >>> 11) + h | 0, u = ((u += ((f = ((f += (u ^ ((c = ((c += (h ^ (u | ~f)) + o[4] - 145523070 | 0) << 6 | c >>> 26) + u | 0) | ~h)) + o[11] - 1120210379 | 0) << 10 | f >>> 22) + c | 0) ^ ((h = ((h += (c ^ (f | ~u)) + o[2] + 718787259 | 0) << 15 | h >>> 17) + f | 0) | ~c)) + o[9] - 343485551 | 0) << 21 | u >>> 11) + h | 0, l[0] = c + l[0] | 0, l[1] = u + l[1] | 0, l[2] = h + l[2] | 0, l[3] = f + l[3] | 0; + } + function r(l) { + var o, c = []; + for (o = 0; o < 64; o += 4) c[o >> 2] = l.charCodeAt(o) + (l.charCodeAt(o + 1) << 8) + (l.charCodeAt(o + 2) << 16) + (l.charCodeAt(o + 3) << 24); + return c; + } + function s(l) { + var o, c = []; + for (o = 0; o < 64; o += 4) c[o >> 2] = l[o] + (l[o + 1] << 8) + (l[o + 2] << 16) + (l[o + 3] << 24); + return c; + } + function i(l) { + var o, c, u, h, f, A, S = l.length, T = [1732584193, -271733879, -1732584194, 271733878]; + for (o = 64; o <= S; o += 64) n(T, r(l.substring(o - 64, o))); + for (c = (l = l.substring(o - 64)).length, u = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], o = 0; o < c; o += 1) u[o >> 2] |= l.charCodeAt(o) << (o % 4 << 3); + if (u[o >> 2] |= 128 << (o % 4 << 3), o > 55) for (n(T, u), o = 0; o < 16; o += 1) u[o] = 0; + return h = (h = 8 * S).toString(16).match(/(.*?)(.{0,8})$/), f = parseInt(h[2], 16), A = parseInt(h[1], 16) || 0, u[14] = f, u[15] = A, n(T, u), T; + } + function a(l) { + var o, c, u, h, f, A, S = l.length, T = [1732584193, -271733879, -1732584194, 271733878]; + for (o = 64; o <= S; o += 64) n(T, s(l.subarray(o - 64, o))); + for (c = (l = o - 64 < S ? l.subarray(o - 64) : new Uint8Array(0)).length, u = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], o = 0; o < c; o += 1) u[o >> 2] |= l[o] << (o % 4 << 3); + if (u[o >> 2] |= 128 << (o % 4 << 3), o > 55) for (n(T, u), o = 0; o < 16; o += 1) u[o] = 0; + return h = (h = 8 * S).toString(16).match(/(.*?)(.{0,8})$/), f = parseInt(h[2], 16), A = parseInt(h[1], 16) || 0, u[14] = f, u[15] = A, n(T, u), T; + } + function m(l) { + var o, c = ""; + for (o = 0; o < 4; o += 1) c += e[l >> 8 * o + 4 & 15] + e[l >> 8 * o & 15]; + return c; + } + function g(l) { + var o; + for (o = 0; o < l.length; o += 1) l[o] = m(l[o]); + return l.join(""); + } + function p(l) { + return /[\u0080-\uFFFF]/.test(l) && (l = unescape(encodeURIComponent(l))), l; + } + function b(l, o) { + var c, u = l.length, h = new ArrayBuffer(u), f = new Uint8Array(h); + for (c = 0; c < u; c += 1) f[c] = l.charCodeAt(c); + return o ? f : h; + } + function v(l) { + return String.fromCharCode.apply(null, new Uint8Array(l)); + } + function w(l, o, c) { + var u = new Uint8Array(l.byteLength + o.byteLength); + return u.set(new Uint8Array(l)), u.set(new Uint8Array(o), l.byteLength), u; + } + function E(l) { + var o, c = [], u = l.length; + for (o = 0; o < u - 1; o += 2) c.push(parseInt(l.substr(o, 2), 16)); + return String.fromCharCode.apply(String, c); + } + function d() { + this.reset(); + } + return g(i("hello")), typeof ArrayBuffer > "u" || ArrayBuffer.prototype.slice || function() { + function l(o, c) { + return (o = 0 | o || 0) < 0 ? Math.max(o + c, 0) : Math.min(o, c); + } + ArrayBuffer.prototype.slice = function(o, c) { + var u, h, f, A, S = this.byteLength, T = l(o, S), j = S; + return c !== t && (j = l(c, S)), T > j ? new ArrayBuffer(0) : (u = j - T, h = new ArrayBuffer(u), f = new Uint8Array(h), A = new Uint8Array(this, T, u), f.set(A), h); + }; + }(), d.prototype.append = function(l) { + return this.appendBinary(p(l)), this; + }, d.prototype.appendBinary = function(l) { + this._buff += l, this._length += l.length; + var o, c = this._buff.length; + for (o = 64; o <= c; o += 64) n(this._hash, r(this._buff.substring(o - 64, o))); + return this._buff = this._buff.substring(o - 64), this; + }, d.prototype.end = function(l) { + var o, c, u = this._buff, h = u.length, f = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; + for (o = 0; o < h; o += 1) f[o >> 2] |= u.charCodeAt(o) << (o % 4 << 3); + return this._finish(f, h), c = g(this._hash), l && (c = E(c)), this.reset(), c; + }, d.prototype.reset = function() { + return this._buff = "", this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this; + }, d.prototype.getState = function() { + return { buff: this._buff, length: this._length, hash: this._hash.slice() }; + }, d.prototype.setState = function(l) { + return this._buff = l.buff, this._length = l.length, this._hash = l.hash, this; + }, d.prototype.destroy = function() { + delete this._hash, delete this._buff, delete this._length; + }, d.prototype._finish = function(l, o) { + var c, u, h, f = o; + if (l[f >> 2] |= 128 << (f % 4 << 3), f > 55) for (n(this._hash, l), f = 0; f < 16; f += 1) l[f] = 0; + c = (c = 8 * this._length).toString(16).match(/(.*?)(.{0,8})$/), u = parseInt(c[2], 16), h = parseInt(c[1], 16) || 0, l[14] = u, l[15] = h, n(this._hash, l); + }, d.hash = function(l, o) { + return d.hashBinary(p(l), o); + }, d.hashBinary = function(l, o) { + var c = g(i(l)); + return o ? E(c) : c; + }, d.ArrayBuffer = function() { + this.reset(); + }, d.ArrayBuffer.prototype.append = function(l) { + var o, c = w(this._buff.buffer, l), u = c.length; + for (this._length += l.byteLength, o = 64; o <= u; o += 64) n(this._hash, s(c.subarray(o - 64, o))); + return this._buff = o - 64 < u ? new Uint8Array(c.buffer.slice(o - 64)) : new Uint8Array(0), this; + }, d.ArrayBuffer.prototype.end = function(l) { + var o, c, u = this._buff, h = u.length, f = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; + for (o = 0; o < h; o += 1) f[o >> 2] |= u[o] << (o % 4 << 3); + return this._finish(f, h), c = g(this._hash), l && (c = E(c)), this.reset(), c; + }, d.ArrayBuffer.prototype.reset = function() { + return this._buff = new Uint8Array(0), this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this; + }, d.ArrayBuffer.prototype.getState = function() { + var l = d.prototype.getState.call(this); + return l.buff = v(l.buff), l; + }, d.ArrayBuffer.prototype.setState = function(l) { + return l.buff = b(l.buff, !0), d.prototype.setState.call(this, l); + }, d.ArrayBuffer.prototype.destroy = d.prototype.destroy, d.ArrayBuffer.prototype._finish = d.prototype._finish, d.ArrayBuffer.hash = function(l, o) { + var c = g(a(new Uint8Array(l))); + return o ? E(c) : c; + }, d; +}(); +const dn = Re(Te.exports); +export { + hn as N, + dn as S, + fn as T, + C as a +}; diff --git a/dist/common/vender-egxe712p.js b/dist/common/vender-egxe712p.js deleted file mode 100644 index dd021ef..0000000 --- a/dist/common/vender-egxe712p.js +++ /dev/null @@ -1,1633 +0,0 @@ -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: '
' }; - function s(d, l, o) { - return d < l ? l : d > o ? o : d; - } - function i(d) { - return 100 * (-1 + d); - } - function a(d, l, o) { - var u; - return (u = n.positionUsing === "translate3d" ? { transform: "translate3d(" + i(d) + "%,0,0)" } : n.positionUsing === "translate" ? { transform: "translate(" + i(d) + "%,0)" } : { "margin-left": i(d) + "%" }).transition = "all " + l + "ms " + o, u; - } - r.configure = function(d) { - var l, o; - for (l in d) (o = d[l]) !== void 0 && d.hasOwnProperty(l) && (n[l] = o); - return this; - }, r.status = null, r.set = function(d) { - var l = r.isStarted(); - d = s(d, n.minimum, 1), r.status = d === 1 ? null : d; - var o = r.render(!l), u = o.querySelector(n.barSelector), c = n.speed, h = n.easing; - return o.offsetWidth, y(function(f) { - n.positionUsing === "" && (n.positionUsing = r.getPositioningCSS()), m(u, a(d, c, h)), d === 1 ? (m(o, { transition: "none", opacity: 1 }), o.offsetWidth, setTimeout(function() { - m(o, { transition: "all " + c + "ms linear", opacity: 0 }), setTimeout(function() { - r.remove(), f(); - }, c); - }, c)) : setTimeout(f, c); - }), this; - }, r.isStarted = function() { - return typeof r.status == "number"; - }, r.start = function() { - r.status || r.set(0); - var d = function() { - setTimeout(function() { - r.status && (r.trickle(), d()); - }, n.trickleSpeed); - }; - return n.trickle && d(), this; - }, r.done = function(d) { - return d || r.status ? r.inc(0.3 + 0.5 * Math.random()).set(1) : this; - }, r.inc = function(d) { - var l = r.status; - return l ? (typeof d != "number" && (d = (1 - l) * s(Math.random() * l, 0.1, 0.95)), l = s(l + d, 0, 0.994), r.set(l)) : r.start(); - }, r.trickle = function() { - return r.inc(Math.random() * n.trickleRate); - }, t = 0, e = 0, r.promise = function(d) { - return d && d.state() !== "resolved" ? (e === 0 && r.start(), t++, e++, d.always(function() { - --e == 0 ? (t = 0, r.done()) : r.set((t - e) / t); - }), this) : this; - }, r.render = function(d) { - if (r.isRendered()) return document.getElementById("nprogress"); - b(document.documentElement, "nprogress-busy"); - var l = document.createElement("div"); - l.id = "nprogress", l.innerHTML = n.template; - var o, u = l.querySelector(n.barSelector), c = d ? "-100" : i(r.status || 0), h = document.querySelector(n.parent); - return m(u, { transition: "all 0 linear", transform: "translate3d(" + c + "%,0,0)" }), n.showSpinner || (o = l.querySelector(n.spinnerSelector)) && E(o), h != document.body && b(h, "nprogress-custom-parent"), h.appendChild(l), l; - }, r.remove = function() { - w(document.documentElement, "nprogress-busy"), w(document.querySelector(n.parent), "nprogress-custom-parent"); - var d = document.getElementById("nprogress"); - d && E(d); - }, r.isRendered = function() { - return !!document.getElementById("nprogress"); - }, r.getPositioningCSS = function() { - var d = document.body.style, l = "WebkitTransform" in d ? "Webkit" : "MozTransform" in d ? "Moz" : "msTransform" in d ? "ms" : "OTransform" in d ? "O" : ""; - return l + "Perspective" in d ? "translate3d" : l + "Transform" in d ? "translate" : "margin"; - }; - var y = /* @__PURE__ */ function() { - var d = []; - function l() { - var o = d.shift(); - o && o(l); - } - return function(o) { - d.push(o), d.length == 1 && l(); - }; - }(), m = /* @__PURE__ */ function() { - var d = ["Webkit", "O", "Moz", "ms"], l = {}; - function o(f) { - return f.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(O, S) { - return S.toUpperCase(); - }); - } - function u(f) { - var O = document.body.style; - if (f in O) return f; - for (var S, R = d.length, j = f.charAt(0).toUpperCase() + f.slice(1); R--; ) if ((S = d[R] + j) in O) return S; - return f; - } - function c(f) { - return f = o(f), l[f] || (l[f] = u(f)); - } - function h(f, O, S) { - O = c(O), f.style[O] = S; - } - return function(f, O) { - var S, R, j = arguments; - if (j.length == 2) for (S in O) (R = O[S]) !== void 0 && O.hasOwnProperty(S) && h(f, S, R); - else h(f, j[1], j[2]); - }; - }(); - function p(d, l) { - return (typeof d == "string" ? d : v(d)).indexOf(" " + l + " ") >= 0; - } - function b(d, l) { - var o = v(d), u = o + l; - p(o, l) || (d.className = u.substring(1)); - } - function w(d, l) { - var o, u = v(d); - p(d, l) && (o = u.replace(" " + l + " ", " "), d.className = o.substring(1, o.length - 1)); - } - function v(d) { - return (" " + (d.className || "") + " ").replace(/\s+/gi, " "); - } - function E(d) { - d && d.parentNode && d.parentNode.removeChild(d); - } - return r; -}(); -const Yr = We(ze.exports); -var et, He = {}, Je = { exports: {} }; -(et = Je).exports = function(t) { - return t && t.__esModule ? t : { default: t }; -}, et.exports.__esModule = !0, et.exports.default = et.exports; -var Wt = Je.exports, $e = { exports: {} }, Ve = { exports: {} }; -(function(t) { - t.exports = function(e) { - if (Array.isArray(e)) return e; - }, t.exports.__esModule = !0, t.exports.default = t.exports; -})(Ve); -var Dr = Ve.exports, Ke = { exports: {} }; -(function(t) { - t.exports = function(e, r) { - var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; - if (n != null) { - var s, i, a, y, m = [], p = !0, b = !1; - try { - if (a = (n = n.call(e)).next, r === 0) { - if (Object(n) !== n) return; - p = !1; - } else for (; !(p = (s = a.call(n)).done) && (m.push(s.value), m.length !== r); p = !0) ; - } catch (w) { - b = !0, i = w; - } finally { - try { - if (!p && n.return != null && (y = n.return(), Object(y) !== y)) return; - } finally { - if (b) throw i; - } - } - return m; - } - }, t.exports.__esModule = !0, t.exports.default = t.exports; -})(Ke); -var qr = Ke.exports, Ge = { exports: {} }, Xe = { exports: {} }; -(function(t) { - t.exports = function(e, r) { - (r == null || r > e.length) && (r = e.length); - for (var n = 0, s = Array(r); n < r; n++) s[n] = e[n]; - return s; - }, t.exports.__esModule = !0, t.exports.default = t.exports; -})(Xe); -var Ir = Xe.exports; -(function(t) { - var e = Ir; - t.exports = function(r, n) { - if (r) { - if (typeof r == "string") return e(r, n); - var s = {}.toString.call(r).slice(8, -1); - return s === "Object" && r.constructor && (s = r.constructor.name), s === "Map" || s === "Set" ? Array.from(r) : s === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s) ? e(r, n) : void 0; - } - }, t.exports.__esModule = !0, t.exports.default = t.exports; -})(Ge); -var Wr = Ge.exports, Qe = { exports: {} }; -(function(t) { - t.exports = function() { - throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); - }, t.exports.__esModule = !0, t.exports.default = t.exports; -})(Qe); -var zr = Qe.exports; -(function(t) { - var e = Dr, r = qr, n = Wr, s = zr; - t.exports = function(i, a) { - return e(i) || r(i, a) || n(i, a) || s(); - }, t.exports.__esModule = !0, t.exports.default = t.exports; -})($e); -var Ze = $e.exports, Ut = {}, Ye = { exports: {} }, tr = { exports: {} }; -(function(t) { - function e(r) { - return t.exports = e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) { - return typeof n; - } : function(n) { - return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; - }, t.exports.__esModule = !0, t.exports.default = t.exports, e(r); - } - t.exports = e, t.exports.__esModule = !0, t.exports.default = t.exports; -})(tr); -var Hr = tr.exports; -(function(t) { - var e = Hr.default; - function r(n) { - if (typeof WeakMap != "function") return null; - var s = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap(); - return (r = function(a) { - return a ? i : s; - })(n); - } - t.exports = function(n, s) { - if (!s && n && n.__esModule) return n; - if (n === null || e(n) != "object" && typeof n != "function") return { default: n }; - var i = r(s); - if (i && i.has(n)) return i.get(n); - var a = { __proto__: null }, y = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var m in n) if (m !== "default" && {}.hasOwnProperty.call(n, m)) { - var p = y ? Object.getOwnPropertyDescriptor(n, m) : null; - p && (p.get || p.set) ? Object.defineProperty(a, m, p) : a[m] = n[m]; - } - return a.default = n, i && i.set(n, a), a; - }, t.exports.__esModule = !0, t.exports.default = t.exports; -})(Ye); -var zt = Ye.exports, Jr = zt.default; -Object.defineProperty(Ut, "__esModule", { value: !0 }), Ut.default = function(t) { - var e = be.useRef(); - return e.current = t, be.useCallback(function() { - for (var r, n = arguments.length, s = new Array(n), i = 0; i < n; i++) s[i] = arguments[i]; - return (r = e.current) === null || r === void 0 ? void 0 : r.call.apply(r, [e].concat(s)); - }, []); -}; -var be = Jr(Mt), H = {}, Nt = {}; -Object.defineProperty(Nt, "__esModule", { value: !0 }), Nt.default = function() { - return !(typeof window > "u" || !window.document || !window.document.createElement); -}; -var $r = Wt.default, Vr = zt.default; -Object.defineProperty(H, "__esModule", { value: !0 }), H.useLayoutUpdateEffect = H.default = void 0; -var kt = Vr(Mt), Kr = $r(Nt), we = process.env.NODE_ENV !== "test" && (0, Kr.default)() ? kt.useLayoutEffect : kt.useEffect, ve = function(t, e) { - var r = kt.useRef(!0); - we(function() { - return t(r.current); - }, e), we(function() { - return r.current = !1, function() { - r.current = !0; - }; - }, []); -}; -H.useLayoutUpdateEffect = function(t, e) { - ve(function(r) { - if (!r) return t(); - }, e); -}, H.default = ve; -var Bt = {}, Gr = zt.default, Xr = Wt.default; -Object.defineProperty(Bt, "__esModule", { value: !0 }), Bt.default = function(t) { - var e = wt.useRef(!1), r = wt.useState(t), n = (0, Qr.default)(r, 2), s = n[0], i = n[1]; - return wt.useEffect(function() { - return e.current = !1, function() { - e.current = !0; - }; - }, []), [s, function(a, y) { - y && e.current || i(a); - }]; -}; -var Qr = Xr(Ze), wt = Gr(Mt), Ht = Wt.default; -Object.defineProperty(He, "__esModule", { value: !0 }); -var tn = He.default = function(t, e) { - var r = e || {}, n = r.defaultValue, s = r.value, i = r.onChange, a = r.postState, y = (0, Ae.default)(function() { - return vt(s) ? s : vt(n) ? typeof n == "function" ? n() : n : typeof t == "function" ? t() : t; - }), m = (0, Ee.default)(y, 2), p = m[0], b = m[1], w = s !== void 0 ? s : p, v = a ? a(w) : w, E = (0, Se.default)(i), d = (0, Ae.default)([w]), l = (0, Ee.default)(d, 2), o = l[0], u = l[1]; - (0, Oe.useLayoutUpdateEffect)(function() { - var h = o[0]; - p !== h && E(p, h); - }, [o]), (0, Oe.useLayoutUpdateEffect)(function() { - vt(s) || b(s); - }, [s]); - var c = (0, Se.default)(function(h, f) { - b(h, f), u([w], f); - }); - return [v, c]; -}, Ee = Ht(Ze), Se = Ht(Ut), Oe = H, Ae = Ht(Bt); -function vt(t) { - return t !== void 0; -} -var er = { exports: {} }; -er.exports = function(t) { - var e = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"]; - function r(l, o) { - var u = l[0], c = l[1], h = l[2], f = l[3]; - c = ((c += ((h = ((h += ((f = ((f += ((u = ((u += (c & h | ~c & f) + o[0] - 680876936 | 0) << 7 | u >>> 25) + c | 0) & c | ~u & h) + o[1] - 389564586 | 0) << 12 | f >>> 20) + u | 0) & u | ~f & c) + o[2] + 606105819 | 0) << 17 | h >>> 15) + f | 0) & f | ~h & u) + o[3] - 1044525330 | 0) << 22 | c >>> 10) + h | 0, c = ((c += ((h = ((h += ((f = ((f += ((u = ((u += (c & h | ~c & f) + o[4] - 176418897 | 0) << 7 | u >>> 25) + c | 0) & c | ~u & h) + o[5] + 1200080426 | 0) << 12 | f >>> 20) + u | 0) & u | ~f & c) + o[6] - 1473231341 | 0) << 17 | h >>> 15) + f | 0) & f | ~h & u) + o[7] - 45705983 | 0) << 22 | c >>> 10) + h | 0, c = ((c += ((h = ((h += ((f = ((f += ((u = ((u += (c & h | ~c & f) + o[8] + 1770035416 | 0) << 7 | u >>> 25) + c | 0) & c | ~u & h) + o[9] - 1958414417 | 0) << 12 | f >>> 20) + u | 0) & u | ~f & c) + o[10] - 42063 | 0) << 17 | h >>> 15) + f | 0) & f | ~h & u) + o[11] - 1990404162 | 0) << 22 | c >>> 10) + h | 0, c = ((c += ((h = ((h += ((f = ((f += ((u = ((u += (c & h | ~c & f) + o[12] + 1804603682 | 0) << 7 | u >>> 25) + c | 0) & c | ~u & h) + o[13] - 40341101 | 0) << 12 | f >>> 20) + u | 0) & u | ~f & c) + o[14] - 1502002290 | 0) << 17 | h >>> 15) + f | 0) & f | ~h & u) + o[15] + 1236535329 | 0) << 22 | c >>> 10) + h | 0, c = ((c += ((h = ((h += ((f = ((f += ((u = ((u += (c & f | h & ~f) + o[1] - 165796510 | 0) << 5 | u >>> 27) + c | 0) & h | c & ~h) + o[6] - 1069501632 | 0) << 9 | f >>> 23) + u | 0) & c | u & ~c) + o[11] + 643717713 | 0) << 14 | h >>> 18) + f | 0) & u | f & ~u) + o[0] - 373897302 | 0) << 20 | c >>> 12) + h | 0, c = ((c += ((h = ((h += ((f = ((f += ((u = ((u += (c & f | h & ~f) + o[5] - 701558691 | 0) << 5 | u >>> 27) + c | 0) & h | c & ~h) + o[10] + 38016083 | 0) << 9 | f >>> 23) + u | 0) & c | u & ~c) + o[15] - 660478335 | 0) << 14 | h >>> 18) + f | 0) & u | f & ~u) + o[4] - 405537848 | 0) << 20 | c >>> 12) + h | 0, c = ((c += ((h = ((h += ((f = ((f += ((u = ((u += (c & f | h & ~f) + o[9] + 568446438 | 0) << 5 | u >>> 27) + c | 0) & h | c & ~h) + o[14] - 1019803690 | 0) << 9 | f >>> 23) + u | 0) & c | u & ~c) + o[3] - 187363961 | 0) << 14 | h >>> 18) + f | 0) & u | f & ~u) + o[8] + 1163531501 | 0) << 20 | c >>> 12) + h | 0, c = ((c += ((h = ((h += ((f = ((f += ((u = ((u += (c & f | h & ~f) + o[13] - 1444681467 | 0) << 5 | u >>> 27) + c | 0) & h | c & ~h) + o[2] - 51403784 | 0) << 9 | f >>> 23) + u | 0) & c | u & ~c) + o[7] + 1735328473 | 0) << 14 | h >>> 18) + f | 0) & u | f & ~u) + o[12] - 1926607734 | 0) << 20 | c >>> 12) + h | 0, c = ((c += ((h = ((h += ((f = ((f += ((u = ((u += (c ^ h ^ f) + o[5] - 378558 | 0) << 4 | u >>> 28) + c | 0) ^ c ^ h) + o[8] - 2022574463 | 0) << 11 | f >>> 21) + u | 0) ^ u ^ c) + o[11] + 1839030562 | 0) << 16 | h >>> 16) + f | 0) ^ f ^ u) + o[14] - 35309556 | 0) << 23 | c >>> 9) + h | 0, c = ((c += ((h = ((h += ((f = ((f += ((u = ((u += (c ^ h ^ f) + o[1] - 1530992060 | 0) << 4 | u >>> 28) + c | 0) ^ c ^ h) + o[4] + 1272893353 | 0) << 11 | f >>> 21) + u | 0) ^ u ^ c) + o[7] - 155497632 | 0) << 16 | h >>> 16) + f | 0) ^ f ^ u) + o[10] - 1094730640 | 0) << 23 | c >>> 9) + h | 0, c = ((c += ((h = ((h += ((f = ((f += ((u = ((u += (c ^ h ^ f) + o[13] + 681279174 | 0) << 4 | u >>> 28) + c | 0) ^ c ^ h) + o[0] - 358537222 | 0) << 11 | f >>> 21) + u | 0) ^ u ^ c) + o[3] - 722521979 | 0) << 16 | h >>> 16) + f | 0) ^ f ^ u) + o[6] + 76029189 | 0) << 23 | c >>> 9) + h | 0, c = ((c += ((h = ((h += ((f = ((f += ((u = ((u += (c ^ h ^ f) + o[9] - 640364487 | 0) << 4 | u >>> 28) + c | 0) ^ c ^ h) + o[12] - 421815835 | 0) << 11 | f >>> 21) + u | 0) ^ u ^ c) + o[15] + 530742520 | 0) << 16 | h >>> 16) + f | 0) ^ f ^ u) + o[2] - 995338651 | 0) << 23 | c >>> 9) + h | 0, c = ((c += ((f = ((f += (c ^ ((u = ((u += (h ^ (c | ~f)) + o[0] - 198630844 | 0) << 6 | u >>> 26) + c | 0) | ~h)) + o[7] + 1126891415 | 0) << 10 | f >>> 22) + u | 0) ^ ((h = ((h += (u ^ (f | ~c)) + o[14] - 1416354905 | 0) << 15 | h >>> 17) + f | 0) | ~u)) + o[5] - 57434055 | 0) << 21 | c >>> 11) + h | 0, c = ((c += ((f = ((f += (c ^ ((u = ((u += (h ^ (c | ~f)) + o[12] + 1700485571 | 0) << 6 | u >>> 26) + c | 0) | ~h)) + o[3] - 1894986606 | 0) << 10 | f >>> 22) + u | 0) ^ ((h = ((h += (u ^ (f | ~c)) + o[10] - 1051523 | 0) << 15 | h >>> 17) + f | 0) | ~u)) + o[1] - 2054922799 | 0) << 21 | c >>> 11) + h | 0, c = ((c += ((f = ((f += (c ^ ((u = ((u += (h ^ (c | ~f)) + o[8] + 1873313359 | 0) << 6 | u >>> 26) + c | 0) | ~h)) + o[15] - 30611744 | 0) << 10 | f >>> 22) + u | 0) ^ ((h = ((h += (u ^ (f | ~c)) + o[6] - 1560198380 | 0) << 15 | h >>> 17) + f | 0) | ~u)) + o[13] + 1309151649 | 0) << 21 | c >>> 11) + h | 0, c = ((c += ((f = ((f += (c ^ ((u = ((u += (h ^ (c | ~f)) + o[4] - 145523070 | 0) << 6 | u >>> 26) + c | 0) | ~h)) + o[11] - 1120210379 | 0) << 10 | f >>> 22) + u | 0) ^ ((h = ((h += (u ^ (f | ~c)) + o[2] + 718787259 | 0) << 15 | h >>> 17) + f | 0) | ~u)) + o[9] - 343485551 | 0) << 21 | c >>> 11) + h | 0, l[0] = u + l[0] | 0, l[1] = c + l[1] | 0, l[2] = h + l[2] | 0, l[3] = f + l[3] | 0; - } - function n(l) { - var o, u = []; - for (o = 0; o < 64; o += 4) u[o >> 2] = l.charCodeAt(o) + (l.charCodeAt(o + 1) << 8) + (l.charCodeAt(o + 2) << 16) + (l.charCodeAt(o + 3) << 24); - return u; - } - function s(l) { - var o, u = []; - for (o = 0; o < 64; o += 4) u[o >> 2] = l[o] + (l[o + 1] << 8) + (l[o + 2] << 16) + (l[o + 3] << 24); - return u; - } - function i(l) { - var o, u, c, h, f, O, S = l.length, R = [1732584193, -271733879, -1732584194, 271733878]; - for (o = 64; o <= S; o += 64) r(R, n(l.substring(o - 64, o))); - for (u = (l = l.substring(o - 64)).length, c = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], o = 0; o < u; o += 1) c[o >> 2] |= l.charCodeAt(o) << (o % 4 << 3); - if (c[o >> 2] |= 128 << (o % 4 << 3), o > 55) for (r(R, c), o = 0; o < 16; o += 1) c[o] = 0; - return h = (h = 8 * S).toString(16).match(/(.*?)(.{0,8})$/), f = parseInt(h[2], 16), O = parseInt(h[1], 16) || 0, c[14] = f, c[15] = O, r(R, c), R; - } - function a(l) { - var o, u, c, h, f, O, S = l.length, R = [1732584193, -271733879, -1732584194, 271733878]; - for (o = 64; o <= S; o += 64) r(R, s(l.subarray(o - 64, o))); - for (u = (l = o - 64 < S ? l.subarray(o - 64) : new Uint8Array(0)).length, c = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], o = 0; o < u; o += 1) c[o >> 2] |= l[o] << (o % 4 << 3); - if (c[o >> 2] |= 128 << (o % 4 << 3), o > 55) for (r(R, c), o = 0; o < 16; o += 1) c[o] = 0; - return h = (h = 8 * S).toString(16).match(/(.*?)(.{0,8})$/), f = parseInt(h[2], 16), O = parseInt(h[1], 16) || 0, c[14] = f, c[15] = O, r(R, c), R; - } - function y(l) { - var o, u = ""; - for (o = 0; o < 4; o += 1) u += e[l >> 8 * o + 4 & 15] + e[l >> 8 * o & 15]; - return u; - } - function m(l) { - var o; - for (o = 0; o < l.length; o += 1) l[o] = y(l[o]); - return l.join(""); - } - function p(l) { - return /[\u0080-\uFFFF]/.test(l) && (l = unescape(encodeURIComponent(l))), l; - } - function b(l, o) { - var u, c = l.length, h = new ArrayBuffer(c), f = new Uint8Array(h); - for (u = 0; u < c; u += 1) f[u] = l.charCodeAt(u); - return o ? f : h; - } - function w(l) { - return String.fromCharCode.apply(null, new Uint8Array(l)); - } - function v(l, o, u) { - var c = new Uint8Array(l.byteLength + o.byteLength); - return c.set(new Uint8Array(l)), c.set(new Uint8Array(o), l.byteLength), c; - } - function E(l) { - var o, u = [], c = l.length; - for (o = 0; o < c - 1; o += 2) u.push(parseInt(l.substr(o, 2), 16)); - return String.fromCharCode.apply(String, u); - } - function d() { - this.reset(); - } - return m(i("hello")), typeof ArrayBuffer > "u" || ArrayBuffer.prototype.slice || function() { - function l(o, u) { - return (o = 0 | o || 0) < 0 ? Math.max(o + u, 0) : Math.min(o, u); - } - ArrayBuffer.prototype.slice = function(o, u) { - var c, h, f, O, S = this.byteLength, R = l(o, S), j = S; - return u !== t && (j = l(u, S)), R > j ? new ArrayBuffer(0) : (c = j - R, h = new ArrayBuffer(c), f = new Uint8Array(h), O = new Uint8Array(this, R, c), f.set(O), h); - }; - }(), d.prototype.append = function(l) { - return this.appendBinary(p(l)), this; - }, d.prototype.appendBinary = function(l) { - this._buff += l, this._length += l.length; - var o, u = this._buff.length; - for (o = 64; o <= u; o += 64) r(this._hash, n(this._buff.substring(o - 64, o))); - return this._buff = this._buff.substring(o - 64), this; - }, d.prototype.end = function(l) { - var o, u, c = this._buff, h = c.length, f = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; - for (o = 0; o < h; o += 1) f[o >> 2] |= c.charCodeAt(o) << (o % 4 << 3); - return this._finish(f, h), u = m(this._hash), l && (u = E(u)), this.reset(), u; - }, d.prototype.reset = function() { - return this._buff = "", this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this; - }, d.prototype.getState = function() { - return { buff: this._buff, length: this._length, hash: this._hash.slice() }; - }, d.prototype.setState = function(l) { - return this._buff = l.buff, this._length = l.length, this._hash = l.hash, this; - }, d.prototype.destroy = function() { - delete this._hash, delete this._buff, delete this._length; - }, d.prototype._finish = function(l, o) { - var u, c, h, f = o; - if (l[f >> 2] |= 128 << (f % 4 << 3), f > 55) for (r(this._hash, l), f = 0; f < 16; f += 1) l[f] = 0; - u = (u = 8 * this._length).toString(16).match(/(.*?)(.{0,8})$/), c = parseInt(u[2], 16), h = parseInt(u[1], 16) || 0, l[14] = c, l[15] = h, r(this._hash, l); - }, d.hash = function(l, o) { - return d.hashBinary(p(l), o); - }, d.hashBinary = function(l, o) { - var u = m(i(l)); - return o ? E(u) : u; - }, d.ArrayBuffer = function() { - this.reset(); - }, d.ArrayBuffer.prototype.append = function(l) { - var o, u = v(this._buff.buffer, l), c = u.length; - for (this._length += l.byteLength, o = 64; o <= c; o += 64) r(this._hash, s(u.subarray(o - 64, o))); - return this._buff = o - 64 < c ? new Uint8Array(u.buffer.slice(o - 64)) : new Uint8Array(0), this; - }, d.ArrayBuffer.prototype.end = function(l) { - var o, u, c = this._buff, h = c.length, f = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; - for (o = 0; o < h; o += 1) f[o >> 2] |= c[o] << (o % 4 << 3); - return this._finish(f, h), u = m(this._hash), l && (u = E(u)), this.reset(), u; - }, d.ArrayBuffer.prototype.reset = function() { - return this._buff = new Uint8Array(0), this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this; - }, d.ArrayBuffer.prototype.getState = function() { - var l = d.prototype.getState.call(this); - return l.buff = w(l.buff), l; - }, d.ArrayBuffer.prototype.setState = function(l) { - return l.buff = b(l.buff, !0), d.prototype.setState.call(this, l); - }, d.ArrayBuffer.prototype.destroy = d.prototype.destroy, d.ArrayBuffer.prototype._finish = d.prototype._finish, d.ArrayBuffer.hash = function(l, o) { - var u = m(a(new Uint8Array(l))); - return o ? E(u) : u; - }, d; -}(); -const en = We(er.exports); -export { - Yr as N, - en as S, - tn as _, - T as a, - Fr as w -}; diff --git a/dist/components.js b/dist/components.js index 28f7252..531ab29 100644 --- a/dist/components.js +++ b/dist/components.js @@ -1,4 +1,4 @@ -import { $ as s, S as p, a0 as n, a1 as t, _ as d } from "./common/main-GwmFPdzM.js"; +import { $ as s, S as p, a0 as n, a1 as t, _ as d } from "./common/main-BSuXB8tt.js"; export { s as Empty, p as Icon, diff --git a/dist/container.js b/dist/container.js index c869ad2..99d4a70 100644 --- a/dist/container.js +++ b/dist/container.js @@ -1,4 +1,4 @@ -import { X as o, $ as s, a0 as p, a1 as t, Y as d, _ as n, Z as r, W as u } from "./common/main-GwmFPdzM.js"; +import { X as o, $ as s, a0 as p, a1 as t, Y as d, _ as n, Z as r, W as u } from "./common/main-BSuXB8tt.js"; export { o as Context, s as Empty, diff --git a/dist/data-converter.js b/dist/data-converter.js index efd4139..9e8ca2a 100644 --- a/dist/data-converter.js +++ b/dist/data-converter.js @@ -1,6 +1,6 @@ import "lodash"; import "react"; -import { D as p } from "./common/main-GwmFPdzM.js"; +import { D as p } from "./common/main-BSuXB8tt.js"; export { p as default }; diff --git a/dist/data-list.js b/dist/data-list.js index ff1777c..af6a38b 100644 --- a/dist/data-list.js +++ b/dist/data-list.js @@ -1,4 +1,4 @@ -import { o as t, m as e, h as r, k as o, p as i, l as D, j as u, n as l, i as L, q as n, f as m, s as p, w as C, x as F, v as b } from "./common/main-GwmFPdzM.js"; +import { o as t, m as e, h as r, k as o, p as i, l as D, j as u, n as l, i as L, q as n, f as m, s as p, w as C, x as F, v as b } from "./common/main-BSuXB8tt.js"; export { t as DataListContent, e as DataListContext, diff --git a/dist/data-list/utils.js b/dist/data-list/utils.js index d3401a4..a6dde68 100644 --- a/dist/data-list/utils.js +++ b/dist/data-list/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { b as a } from "../common/main-GwmFPdzM.js"; +import { b as a } from "../common/main-BSuXB8tt.js"; export { a as getDefaultExpandRowKeys }; diff --git a/dist/grid-layout-form.js b/dist/grid-layout-form.js index dbde603..f5c99d5 100644 --- a/dist/grid-layout-form.js +++ b/dist/grid-layout-form.js @@ -1,4 +1,4 @@ -import { J as s, L as r, K as u, I as o, P as t, O as d, Q as m, N as F, M as i } from "./common/main-GwmFPdzM.js"; +import { J as s, L as r, K as u, I as o, P as t, O as d, Q as m, N as F, M as i } from "./common/main-BSuXB8tt.js"; export { s as GridLayoutForm, r as GridLayoutFormHelper, diff --git a/dist/grid-layout-form/utils.js b/dist/grid-layout-form/utils.js index 65989d7..63fcfe5 100644 --- a/dist/grid-layout-form/utils.js +++ b/dist/grid-layout-form/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { ac as a } from "../common/main-GwmFPdzM.js"; +import { ac as a } from "../common/main-BSuXB8tt.js"; export { a as getOptionItemByValue }; diff --git a/dist/grid-layout.js b/dist/grid-layout.js index 48d1844..aa95364 100644 --- a/dist/grid-layout.js +++ b/dist/grid-layout.js @@ -1,4 +1,4 @@ -import { c as d, d as e, H as u, G as i, u as t, e as o } from "./common/main-GwmFPdzM.js"; +import { c as d, d as e, H as u, G as i, u as t, e as o } from "./common/main-BSuXB8tt.js"; export { d as GridLayout, e as GridLayoutWidget, diff --git a/dist/grid-layout/utils.js b/dist/grid-layout/utils.js index c0bc362..8724c47 100644 --- a/dist/grid-layout/utils.js +++ b/dist/grid-layout/utils.js @@ -1,4 +1,4 @@ -import { a as t } from "../common/main-GwmFPdzM.js"; +import { a as t } from "../common/main-BSuXB8tt.js"; export { t as getBoxStyle }; diff --git a/dist/hooks.js b/dist/hooks.js index 57da015..a6269d4 100644 --- a/dist/hooks.js +++ b/dist/hooks.js @@ -1,15 +1,15 @@ import "lodash"; import "rc-field-form"; import "react"; -import { C as r, B as o, E as p, z as i, A as f, F as m, y as c } from "./common/main-GwmFPdzM.js"; -import { _ as b } from "./common/vender-egxe712p.js"; +import { C as r, B as o, E as p, z as f, A as i, F as m, y as c } from "./common/main-BSuXB8tt.js"; +import { default as E } from "rc-util/lib/hooks/useMergedState"; export { r as useDeepEffect, o as useDeepEqualEffect, - b as useMergedState, + E as useMergedState, p as useOptions, - i as usePrevious, - f as useStateWithCallback, + f as usePrevious, + i as useStateWithCallback, m as useSubscribeRequest, c as useUpdate }; diff --git a/dist/iconfont.js b/dist/iconfont.js index 7a507a8..fae013c 100644 --- a/dist/iconfont.js +++ b/dist/iconfont.js @@ -2,7 +2,7 @@ import "react/jsx-runtime"; import "react"; import "prop-types"; import "classnames"; -import { S as a } from "./common/main-GwmFPdzM.js"; +import { S as a } from "./common/main-BSuXB8tt.js"; export { a as default }; diff --git a/dist/index.js b/dist/index.js index 84a03a2..a07cc00 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -import { aa as t, ab as e, a6 as o, a7 as n, a2 as p, a8 as r, a5 as c, a4 as f, a3 as l, a9 as u } from "./common/main-GwmFPdzM.js"; +import { aa as t, ab as e, a6 as o, a7 as n, a2 as p, a8 as r, a5 as c, a4 as f, a3 as l, a9 as u } from "./common/main-BSuXB8tt.js"; export { t as AppContext, e as AppGlobalParamsContext, diff --git a/dist/res-ws.js b/dist/res-ws.js index d3d9cf1..b4aed40 100644 --- a/dist/res-ws.js +++ b/dist/res-ws.js @@ -1,5 +1,5 @@ import "lodash"; -import { R as a } from "./common/main-GwmFPdzM.js"; +import { R as a } from "./common/main-BSuXB8tt.js"; export { a as default }; diff --git a/dist/utils.js b/dist/utils.js index cdfdb3a..ab8500e 100644 --- a/dist/utils.js +++ b/dist/utils.js @@ -1,5 +1,5 @@ import "lodash"; -import { g as a, r as i, t as o } from "./common/main-GwmFPdzM.js"; +import { g as a, r as i, t as o } from "./common/main-BSuXB8tt.js"; export { a as getWidgetPropsData, i as replaceKeys, diff --git a/package.json b/package.json index b040771..f0239f7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ff", "private": true, - "version": "0.4.24", + "version": "0.4.25", "author": "www.fsdpf.com", "type": "module", "main": "./dist/index.js", @@ -53,7 +53,8 @@ "react-dom", "react-is", "react/jsx-runtime", - "prop-types" + "prop-types", + "rc-util/lib/hooks/useMergedState" ] } }