UNPKG

habit-export-center

Version:
1,688 lines 296 kB
import * as u from "react"; import N, { forwardRef as br, isValidElement as _n, useState as Ye, useCallback as wr, useEffect as vr, useLayoutEffect as pi, createElement as Xn } from "react"; import * as mn from "react-dom"; import Mo from "react-dom"; import { jsx as g, jsxs as te, Fragment as yt } from "react/jsx-runtime"; function Lo(e, t) { return function() { return e.apply(t, arguments); }; } const { toString: mi } = Object.prototype, { getPrototypeOf: yr } = Object, { iterator: hn, toStringTag: _o } = Symbol, gn = /* @__PURE__ */ ((e) => (t) => { const n = mi.call(t); return e[n] || (e[n] = n.slice(8, -1).toLowerCase()); })(/* @__PURE__ */ Object.create(null)), Te = (e) => (e = e.toLowerCase(), (t) => gn(t) === e), bn = (e) => (t) => typeof t === e, { isArray: Et } = Array, Lt = bn("undefined"); function hi(e) { return e !== null && !Lt(e) && e.constructor !== null && !Lt(e.constructor) && ge(e.constructor.isBuffer) && e.constructor.isBuffer(e); } const Bo = Te("ArrayBuffer"); function gi(e) { let t; return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Bo(e.buffer), t; } const bi = bn("string"), ge = bn("function"), Fo = bn("number"), wn = (e) => e !== null && typeof e == "object", wi = (e) => e === !0 || e === !1, Jt = (e) => { if (gn(e) !== "object") return !1; const t = yr(e); return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(_o in e) && !(hn in e); }, vi = Te("Date"), yi = Te("File"), xi = Te("Blob"), Ei = Te("FileList"), Si = (e) => wn(e) && ge(e.pipe), Ci = (e) => { let t; return e && (typeof FormData == "function" && e instanceof FormData || ge(e.append) && ((t = gn(e)) === "formdata" || // detect form-data instance t === "object" && ge(e.toString) && e.toString() === "[object FormData]")); }, Ri = Te("URLSearchParams"), [Ni, Ai, Ti, Pi] = ["ReadableStream", "Request", "Response", "Headers"].map(Te), Oi = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); function $t(e, t, { allOwnKeys: n = !1 } = {}) { if (e === null || typeof e > "u") return; let r, o; if (typeof e != "object" && (e = [e]), Et(e)) for (r = 0, o = e.length; r < o; r++) t.call(null, e[r], r, e); else { const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = s.length; let i; for (r = 0; r < a; r++) i = s[r], t.call(null, e[i], i, e); } } function $o(e, t) { t = t.toLowerCase(); const n = Object.keys(e); let r = n.length, o; for (; r-- > 0; ) if (o = n[r], t === o.toLowerCase()) return o; return null; } const tt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, jo = (e) => !Lt(e) && e !== tt; function Jn() { const { caseless: e } = jo(this) && this || {}, t = {}, n = (r, o) => { const s = e && $o(t, o) || o; Jt(t[s]) && Jt(r) ? t[s] = Jn(t[s], r) : Jt(r) ? t[s] = Jn({}, r) : Et(r) ? t[s] = r.slice() : t[s] = r; }; for (let r = 0, o = arguments.length; r < o; r++) arguments[r] && $t(arguments[r], n); return t; } const ki = (e, t, n, { allOwnKeys: r } = {}) => ($t(t, (o, s) => { n && ge(o) ? e[s] = Lo(o, n) : e[s] = o; }, { allOwnKeys: r }), e), Di = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ii = (e, t, n, r) => { e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", { value: t.prototype }), n && Object.assign(e.prototype, n); }, Mi = (e, t, n, r) => { let o, s, a; const i = {}; if (t = t || {}, e == null) return t; do { for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; ) a = o[s], (!r || r(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0); e = n !== !1 && yr(e); } while (e && (!n || n(e, t)) && e !== Object.prototype); return t; }, Li = (e, t, n) => { e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length; const r = e.indexOf(t, n); return r !== -1 && r === n; }, _i = (e) => { if (!e) return null; if (Et(e)) return e; let t = e.length; if (!Fo(t)) return null; const n = new Array(t); for (; t-- > 0; ) n[t] = e[t]; return n; }, Bi = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && yr(Uint8Array)), Fi = (e, t) => { const r = (e && e[hn]).call(e); let o; for (; (o = r.next()) && !o.done; ) { const s = o.value; t.call(e, s[0], s[1]); } }, $i = (e, t) => { let n; const r = []; for (; (n = e.exec(t)) !== null; ) r.push(n); return r; }, ji = Te("HTMLFormElement"), Ui = (e) => e.toLowerCase().replace( /[-_\s]([a-z\d])(\w*)/g, function(n, r, o) { return r.toUpperCase() + o; } ), Yr = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), zi = Te("RegExp"), Uo = (e, t) => { const n = Object.getOwnPropertyDescriptors(e), r = {}; $t(n, (o, s) => { let a; (a = t(o, s, e)) !== !1 && (r[s] = a || o); }), Object.defineProperties(e, r); }, Wi = (e) => { Uo(e, (t, n) => { if (ge(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1) return !1; const r = e[n]; if (ge(r)) { if (t.enumerable = !1, "writable" in t) { t.writable = !1; return; } t.set || (t.set = () => { throw Error("Can not rewrite read-only method '" + n + "'"); }); } }); }, Hi = (e, t) => { const n = {}, r = (o) => { o.forEach((s) => { n[s] = !0; }); }; return Et(e) ? r(e) : r(String(e).split(t)), n; }, Vi = () => { }, qi = (e, t) => e != null && Number.isFinite(e = +e) ? e : t; function Yi(e) { return !!(e && ge(e.append) && e[_o] === "FormData" && e[hn]); } const Gi = (e) => { const t = new Array(10), n = (r, o) => { if (wn(r)) { if (t.indexOf(r) >= 0) return; if (!("toJSON" in r)) { t[o] = r; const s = Et(r) ? [] : {}; return $t(r, (a, i) => { const l = n(a, o + 1); !Lt(l) && (s[i] = l); }), t[o] = void 0, s; } } return r; }; return n(e, 0); }, Ki = Te("AsyncFunction"), Xi = (e) => e && (wn(e) || ge(e)) && ge(e.then) && ge(e.catch), zo = ((e, t) => e ? setImmediate : t ? ((n, r) => (tt.addEventListener("message", ({ source: o, data: s }) => { o === tt && s === n && r.length && r.shift()(); }, !1), (o) => { r.push(o), tt.postMessage(n, "*"); }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))( typeof setImmediate == "function", ge(tt.postMessage) ), Ji = typeof queueMicrotask < "u" ? queueMicrotask.bind(tt) : typeof process < "u" && process.nextTick || zo, Zi = (e) => e != null && ge(e[hn]), x = { isArray: Et, isArrayBuffer: Bo, isBuffer: hi, isFormData: Ci, isArrayBufferView: gi, isString: bi, isNumber: Fo, isBoolean: wi, isObject: wn, isPlainObject: Jt, isReadableStream: Ni, isRequest: Ai, isResponse: Ti, isHeaders: Pi, isUndefined: Lt, isDate: vi, isFile: yi, isBlob: xi, isRegExp: zi, isFunction: ge, isStream: Si, isURLSearchParams: Ri, isTypedArray: Bi, isFileList: Ei, forEach: $t, merge: Jn, extend: ki, trim: Oi, stripBOM: Di, inherits: Ii, toFlatObject: Mi, kindOf: gn, kindOfTest: Te, endsWith: Li, toArray: _i, forEachEntry: Fi, matchAll: $i, isHTMLForm: ji, hasOwnProperty: Yr, hasOwnProp: Yr, // an alias to avoid ESLint no-prototype-builtins detection reduceDescriptors: Uo, freezeMethods: Wi, toObjectSet: Hi, toCamelCase: Ui, noop: Vi, toFiniteNumber: qi, findKey: $o, global: tt, isContextDefined: jo, isSpecCompliantForm: Yi, toJSONObject: Gi, isAsyncFn: Ki, isThenable: Xi, setImmediate: zo, asap: Ji, isIterable: Zi }; function $(e, t, n, r, o) { Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null); } x.inherits($, Error, { toJSON: function() { return { // Standard message: this.message, name: this.name, // Microsoft description: this.description, number: this.number, // Mozilla fileName: this.fileName, lineNumber: this.lineNumber, columnNumber: this.columnNumber, stack: this.stack, // Axios config: x.toJSONObject(this.config), code: this.code, status: this.status }; } }); const Wo = $.prototype, Ho = {}; [ "ERR_BAD_OPTION_VALUE", "ERR_BAD_OPTION", "ECONNABORTED", "ETIMEDOUT", "ERR_NETWORK", "ERR_FR_TOO_MANY_REDIRECTS", "ERR_DEPRECATED", "ERR_BAD_RESPONSE", "ERR_BAD_REQUEST", "ERR_CANCELED", "ERR_NOT_SUPPORT", "ERR_INVALID_URL" // eslint-disable-next-line func-names ].forEach((e) => { Ho[e] = { value: e }; }); Object.defineProperties($, Ho); Object.defineProperty(Wo, "isAxiosError", { value: !0 }); $.from = (e, t, n, r, o, s) => { const a = Object.create(Wo); return x.toFlatObject(e, a, function(l) { return l !== Error.prototype; }, (i) => i !== "isAxiosError"), $.call(a, e.message, t, n, r, o), a.cause = e, a.name = e.name, s && Object.assign(a, s), a; }; const Qi = null; function Zn(e) { return x.isPlainObject(e) || x.isArray(e); } function Vo(e) { return x.endsWith(e, "[]") ? e.slice(0, -2) : e; } function Gr(e, t, n) { return e ? e.concat(t).map(function(o, s) { return o = Vo(o), !n && s ? "[" + o + "]" : o; }).join(n ? "." : "") : t; } function el(e) { return x.isArray(e) && !e.some(Zn); } const tl = x.toFlatObject(x, {}, null, function(t) { return /^is[A-Z]/.test(t); }); function vn(e, t, n) { if (!x.isObject(e)) throw new TypeError("target must be an object"); t = t || new FormData(), n = x.toFlatObject(n, { metaTokens: !0, dots: !1, indexes: !1 }, !1, function(p, h) { return !x.isUndefined(h[p]); }); const r = n.metaTokens, o = n.visitor || d, s = n.dots, a = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && x.isSpecCompliantForm(t); if (!x.isFunction(o)) throw new TypeError("visitor must be a function"); function c(b) { if (b === null) return ""; if (x.isDate(b)) return b.toISOString(); if (!l && x.isBlob(b)) throw new $("Blob is not supported. Use a Buffer instead."); return x.isArrayBuffer(b) || x.isTypedArray(b) ? l && typeof Blob == "function" ? new Blob([b]) : Buffer.from(b) : b; } function d(b, p, h) { let v = b; if (b && !h && typeof b == "object") { if (x.endsWith(p, "{}")) p = r ? p : p.slice(0, -2), b = JSON.stringify(b); else if (x.isArray(b) && el(b) || (x.isFileList(b) || x.endsWith(p, "[]")) && (v = x.toArray(b))) return p = Vo(p), v.forEach(function(E, S) { !(x.isUndefined(E) || E === null) && t.append( // eslint-disable-next-line no-nested-ternary a === !0 ? Gr([p], S, s) : a === null ? p : p + "[]", c(E) ); }), !1; } return Zn(b) ? !0 : (t.append(Gr(h, p, s), c(b)), !1); } const m = [], w = Object.assign(tl, { defaultVisitor: d, convertValue: c, isVisitable: Zn }); function f(b, p) { if (!x.isUndefined(b)) { if (m.indexOf(b) !== -1) throw Error("Circular reference detected in " + p.join(".")); m.push(b), x.forEach(b, function(v, y) { (!(x.isUndefined(v) || v === null) && o.call( t, v, x.isString(y) ? y.trim() : y, p, w )) === !0 && f(v, p ? p.concat(y) : [y]); }), m.pop(); } } if (!x.isObject(e)) throw new TypeError("data must be an object"); return f(e), t; } function Kr(e) { const t = { "!": "%21", "'": "%27", "(": "%28", ")": "%29", "~": "%7E", "%20": "+", "%00": "\0" }; return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) { return t[r]; }); } function xr(e, t) { this._pairs = [], e && vn(e, this, t); } const qo = xr.prototype; qo.append = function(t, n) { this._pairs.push([t, n]); }; qo.toString = function(t) { const n = t ? function(r) { return t.call(this, r, Kr); } : Kr; return this._pairs.map(function(o) { return n(o[0]) + "=" + n(o[1]); }, "").join("&"); }; function nl(e) { return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]"); } function Yo(e, t, n) { if (!t) return e; const r = n && n.encode || nl; x.isFunction(n) && (n = { serialize: n }); const o = n && n.serialize; let s; if (o ? s = o(t, n) : s = x.isURLSearchParams(t) ? t.toString() : new xr(t, n).toString(r), s) { const a = e.indexOf("#"); a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + s; } return e; } class Xr { constructor() { this.handlers = []; } /** * Add a new interceptor to the stack * * @param {Function} fulfilled The function to handle `then` for a `Promise` * @param {Function} rejected The function to handle `reject` for a `Promise` * * @return {Number} An ID used to remove interceptor later */ use(t, n, r) { return this.handlers.push({ fulfilled: t, rejected: n, synchronous: r ? r.synchronous : !1, runWhen: r ? r.runWhen : null }), this.handlers.length - 1; } /** * Remove an interceptor from the stack * * @param {Number} id The ID that was returned by `use` * * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise */ eject(t) { this.handlers[t] && (this.handlers[t] = null); } /** * Clear all interceptors from the stack * * @returns {void} */ clear() { this.handlers && (this.handlers = []); } /** * Iterate over all the registered interceptors * * This method is particularly useful for skipping over any * interceptors that may have become `null` calling `eject`. * * @param {Function} fn The function to call for each interceptor * * @returns {void} */ forEach(t) { x.forEach(this.handlers, function(r) { r !== null && t(r); }); } } const Go = { silentJSONParsing: !0, forcedJSONParsing: !0, clarifyTimeoutError: !1 }, rl = typeof URLSearchParams < "u" ? URLSearchParams : xr, ol = typeof FormData < "u" ? FormData : null, sl = typeof Blob < "u" ? Blob : null, al = { isBrowser: !0, classes: { URLSearchParams: rl, FormData: ol, Blob: sl }, protocols: ["http", "https", "file", "blob", "url", "data"] }, Er = typeof window < "u" && typeof document < "u", Qn = typeof navigator == "object" && navigator || void 0, il = Er && (!Qn || ["ReactNative", "NativeScript", "NS"].indexOf(Qn.product) < 0), ll = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef self instanceof WorkerGlobalScope && typeof self.importScripts == "function", cl = Er && window.location.href || "http://localhost", dl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, hasBrowserEnv: Er, hasStandardBrowserEnv: il, hasStandardBrowserWebWorkerEnv: ll, navigator: Qn, origin: cl }, Symbol.toStringTag, { value: "Module" })), ue = { ...dl, ...al }; function ul(e, t) { return vn(e, new ue.classes.URLSearchParams(), Object.assign({ visitor: function(n, r, o, s) { return ue.isNode && x.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments); } }, t)); } function fl(e) { return x.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]); } function pl(e) { const t = {}, n = Object.keys(e); let r; const o = n.length; let s; for (r = 0; r < o; r++) s = n[r], t[s] = e[s]; return t; } function Ko(e) { function t(n, r, o, s) { let a = n[s++]; if (a === "__proto__") return !0; const i = Number.isFinite(+a), l = s >= n.length; return a = !a && x.isArray(o) ? o.length : a, l ? (x.hasOwnProp(o, a) ? o[a] = [o[a], r] : o[a] = r, !i) : ((!o[a] || !x.isObject(o[a])) && (o[a] = []), t(n, r, o[a], s) && x.isArray(o[a]) && (o[a] = pl(o[a])), !i); } if (x.isFormData(e) && x.isFunction(e.entries)) { const n = {}; return x.forEachEntry(e, (r, o) => { t(fl(r), o, n, 0); }), n; } return null; } function ml(e, t, n) { if (x.isString(e)) try { return (t || JSON.parse)(e), x.trim(e); } catch (r) { if (r.name !== "SyntaxError") throw r; } return (n || JSON.stringify)(e); } const jt = { transitional: Go, adapter: ["xhr", "http", "fetch"], transformRequest: [function(t, n) { const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = x.isObject(t); if (s && x.isHTMLForm(t) && (t = new FormData(t)), x.isFormData(t)) return o ? JSON.stringify(Ko(t)) : t; if (x.isArrayBuffer(t) || x.isBuffer(t) || x.isStream(t) || x.isFile(t) || x.isBlob(t) || x.isReadableStream(t)) return t; if (x.isArrayBufferView(t)) return t.buffer; if (x.isURLSearchParams(t)) return n.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 ul(t, this.formSerializer).toString(); if ((i = x.isFileList(t)) || r.indexOf("multipart/form-data") > -1) { const l = this.env && this.env.FormData; return vn( i ? { "files[]": t } : t, l && new l(), this.formSerializer ); } } return s || o ? (n.setContentType("application/json", !1), ml(t)) : t; }], transformResponse: [function(t) { const n = this.transitional || jt.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json"; if (x.isResponse(t) || x.isReadableStream(t)) return t; if (t && x.isString(t) && (r && !this.responseType || o)) { const a = !(n && n.silentJSONParsing) && o; try { return JSON.parse(t); } catch (i) { if (a) throw i.name === "SyntaxError" ? $.from(i, $.ERR_BAD_RESPONSE, this, null, this.response) : i; } } return t; }], /** * A timeout in milliseconds to abort a request. If set to 0 (default) a * timeout is not created. */ timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", maxContentLength: -1, maxBodyLength: -1, env: { FormData: ue.classes.FormData, Blob: ue.classes.Blob }, validateStatus: function(t) { return t >= 200 && t < 300; }, headers: { common: { Accept: "application/json, text/plain, */*", "Content-Type": void 0 } } }; x.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => { jt.headers[e] = {}; }); const hl = x.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" ]), gl = (e) => { const t = {}; let n, r, o; return e && e.split(` `).forEach(function(a) { o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] && hl[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r); }), t; }, Jr = Symbol("internals"); function kt(e) { return e && String(e).trim().toLowerCase(); } function Zt(e) { return e === !1 || e == null ? e : x.isArray(e) ? e.map(Zt) : String(e); } function bl(e) { const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g; let r; for (; r = n.exec(e); ) t[r[1]] = r[2]; return t; } const wl = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()); function Bn(e, t, n, r, o) { if (x.isFunction(r)) return r.call(this, t, n); if (o && (t = n), !!x.isString(t)) { if (x.isString(r)) return t.indexOf(r) !== -1; if (x.isRegExp(r)) return r.test(t); } } function vl(e) { return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r); } function yl(e, t) { const n = x.toCamelCase(" " + t); ["get", "set", "has"].forEach((r) => { Object.defineProperty(e, r + n, { value: function(o, s, a) { return this[r].call(this, t, o, s, a); }, configurable: !0 }); }); } let be = class { constructor(t) { t && this.set(t); } set(t, n, r) { const o = this; function s(i, l, c) { const d = kt(l); if (!d) throw new Error("header name must be a non-empty string"); const m = x.findKey(o, d); (!m || o[m] === void 0 || c === !0 || c === void 0 && o[m] !== !1) && (o[m || l] = Zt(i)); } const a = (i, l) => x.forEach(i, (c, d) => s(c, d, l)); if (x.isPlainObject(t) || t instanceof this.constructor) a(t, n); else if (x.isString(t) && (t = t.trim()) && !wl(t)) a(gl(t), n); else if (x.isObject(t) && x.isIterable(t)) { let i = {}, l, c; for (const d of t) { if (!x.isArray(d)) throw TypeError("Object iterator must return a key-value pair"); i[c = d[0]] = (l = i[c]) ? x.isArray(l) ? [...l, d[1]] : [l, d[1]] : d[1]; } a(i, n); } else t != null && s(n, t, r); return this; } get(t, n) { if (t = kt(t), t) { const r = x.findKey(this, t); if (r) { const o = this[r]; if (!n) return o; if (n === !0) return bl(o); if (x.isFunction(n)) return n.call(this, o, r); if (x.isRegExp(n)) return n.exec(o); throw new TypeError("parser must be boolean|regexp|function"); } } } has(t, n) { if (t = kt(t), t) { const r = x.findKey(this, t); return !!(r && this[r] !== void 0 && (!n || Bn(this, this[r], r, n))); } return !1; } delete(t, n) { const r = this; let o = !1; function s(a) { if (a = kt(a), a) { const i = x.findKey(r, a); i && (!n || Bn(r, r[i], i, n)) && (delete r[i], o = !0); } } return x.isArray(t) ? t.forEach(s) : s(t), o; } clear(t) { const n = Object.keys(this); let r = n.length, o = !1; for (; r--; ) { const s = n[r]; (!t || Bn(this, this[s], s, t, !0)) && (delete this[s], o = !0); } return o; } normalize(t) { const n = this, r = {}; return x.forEach(this, (o, s) => { const a = x.findKey(r, s); if (a) { n[a] = Zt(o), delete n[s]; return; } const i = t ? vl(s) : String(s).trim(); i !== s && delete n[s], n[i] = Zt(o), r[i] = !0; }), this; } concat(...t) { return this.constructor.concat(this, ...t); } toJSON(t) { const n = /* @__PURE__ */ Object.create(null); return x.forEach(this, (r, o) => { r != null && r !== !1 && (n[o] = t && x.isArray(r) ? r.join(", ") : r); }), n; } [Symbol.iterator]() { return Object.entries(this.toJSON())[Symbol.iterator](); } toString() { return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(` `); } getSetCookie() { return this.get("set-cookie") || []; } get [Symbol.toStringTag]() { return "AxiosHeaders"; } static from(t) { return t instanceof this ? t : new this(t); } static concat(t, ...n) { const r = new this(t); return n.forEach((o) => r.set(o)), r; } static accessor(t) { const r = (this[Jr] = this[Jr] = { accessors: {} }).accessors, o = this.prototype; function s(a) { const i = kt(a); r[i] || (yl(o, a), r[i] = !0); } return x.isArray(t) ? t.forEach(s) : s(t), this; } }; be.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]); x.reduceDescriptors(be.prototype, ({ value: e }, t) => { let n = t[0].toUpperCase() + t.slice(1); return { get: () => e, set(r) { this[n] = r; } }; }); x.freezeMethods(be); function Fn(e, t) { const n = this || jt, r = t || n, o = be.from(r.headers); let s = r.data; return x.forEach(e, function(i) { s = i.call(n, s, o.normalize(), t ? t.status : void 0); }), o.normalize(), s; } function Xo(e) { return !!(e && e.__CANCEL__); } function St(e, t, n) { $.call(this, e ?? "canceled", $.ERR_CANCELED, t, n), this.name = "CanceledError"; } x.inherits(St, $, { __CANCEL__: !0 }); function Jo(e, t, n) { const r = n.config.validateStatus; !n.status || !r || r(n.status) ? e(n) : t(new $( "Request failed with status code " + n.status, [$.ERR_BAD_REQUEST, $.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n )); } function xl(e) { const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e); return t && t[1] || ""; } function El(e, t) { e = e || 10; const n = new Array(e), r = new Array(e); let o = 0, s = 0, a; return t = t !== void 0 ? t : 1e3, function(l) { const c = Date.now(), d = r[s]; a || (a = c), n[o] = l, r[o] = c; let m = s, w = 0; for (; m !== o; ) w += n[m++], m = m % e; if (o = (o + 1) % e, o === s && (s = (s + 1) % e), c - a < t) return; const f = d && c - d; return f ? Math.round(w * 1e3 / f) : void 0; }; } function Sl(e, t) { let n = 0, r = 1e3 / t, o, s; const a = (c, d = Date.now()) => { n = d, o = null, s && (clearTimeout(s), s = null), e.apply(null, c); }; return [(...c) => { const d = Date.now(), m = d - n; m >= r ? a(c, d) : (o = c, s || (s = setTimeout(() => { s = null, a(o); }, r - m))); }, () => o && a(o)]; } const on = (e, t, n = 3) => { let r = 0; const o = El(50, 250); return Sl((s) => { const a = s.loaded, i = s.lengthComputable ? s.total : void 0, l = a - r, c = o(l), d = a <= i; r = a; const m = { loaded: a, total: i, progress: i ? a / i : void 0, bytes: l, rate: c || void 0, estimated: c && i && d ? (i - a) / c : void 0, event: s, lengthComputable: i != null, [t ? "download" : "upload"]: !0 }; e(m); }, n); }, Zr = (e, t) => { const n = e != null; return [(r) => t[0]({ lengthComputable: n, total: e, loaded: r }), t[1]]; }, Qr = (e) => (...t) => x.asap(() => e(...t)), Cl = ue.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, ue.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))( new URL(ue.origin), ue.navigator && /(msie|trident)/i.test(ue.navigator.userAgent) ) : () => !0, Rl = ue.hasStandardBrowserEnv ? ( // Standard browser envs support document.cookie { write(e, t, n, r, o, s) { const a = [e + "=" + encodeURIComponent(t)]; x.isNumber(n) && a.push("expires=" + new Date(n).toGMTString()), x.isString(r) && a.push("path=" + r), x.isString(o) && a.push("domain=" + o), s === !0 && a.push("secure"), document.cookie = a.join("; "); }, read(e) { const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)")); return t ? decodeURIComponent(t[3]) : null; }, remove(e) { this.write(e, "", Date.now() - 864e5); } } ) : ( // Non-standard browser env (web workers, react-native) lack needed support. { write() { }, read() { return null; }, remove() { } } ); function Nl(e) { return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e); } function Al(e, t) { return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e; } function Zo(e, t, n) { let r = !Nl(t); return e && (r || n == !1) ? Al(e, t) : t; } const eo = (e) => e instanceof be ? { ...e } : e; function rt(e, t) { t = t || {}; const n = {}; function r(c, d, m, w) { return x.isPlainObject(c) && x.isPlainObject(d) ? x.merge.call({ caseless: w }, c, d) : x.isPlainObject(d) ? x.merge({}, d) : x.isArray(d) ? d.slice() : d; } function o(c, d, m, w) { if (x.isUndefined(d)) { if (!x.isUndefined(c)) return r(void 0, c, m, w); } else return r(c, d, m, w); } function s(c, d) { if (!x.isUndefined(d)) return r(void 0, d); } function a(c, d) { if (x.isUndefined(d)) { if (!x.isUndefined(c)) return r(void 0, c); } else return r(void 0, d); } function i(c, d, m) { if (m in t) return r(c, d); if (m in e) return r(void 0, c); } const l = { url: s, method: s, data: s, baseURL: a, transformRequest: a, transformResponse: a, paramsSerializer: a, timeout: a, timeoutMessage: a, withCredentials: a, withXSRFToken: a, adapter: a, responseType: a, xsrfCookieName: a, xsrfHeaderName: a, onUploadProgress: a, onDownloadProgress: a, decompress: a, maxContentLength: a, maxBodyLength: a, beforeRedirect: a, transport: a, httpAgent: a, httpsAgent: a, cancelToken: a, socketPath: a, responseEncoding: a, validateStatus: i, headers: (c, d, m) => o(eo(c), eo(d), m, !0) }; return x.forEach(Object.keys(Object.assign({}, e, t)), function(d) { const m = l[d] || o, w = m(e[d], t[d], d); x.isUndefined(w) && m !== i || (n[d] = w); }), n; } const Qo = (e) => { const t = rt({}, e); let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: a, auth: i } = t; t.headers = a = be.from(a), t.url = Yo(Zo(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set( "Authorization", "Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : "")) ); let l; if (x.isFormData(n)) { if (ue.hasStandardBrowserEnv || ue.hasStandardBrowserWebWorkerEnv) a.setContentType(void 0); else if ((l = a.getContentType()) !== !1) { const [c, ...d] = l ? l.split(";").map((m) => m.trim()).filter(Boolean) : []; a.setContentType([c || "multipart/form-data", ...d].join("; ")); } } if (ue.hasStandardBrowserEnv && (r && x.isFunction(r) && (r = r(t)), r || r !== !1 && Cl(t.url))) { const c = o && s && Rl.read(s); c && a.set(o, c); } return t; }, Tl = typeof XMLHttpRequest < "u", Pl = Tl && function(e) { return new Promise(function(n, r) { const o = Qo(e); let s = o.data; const a = be.from(o.headers).normalize(); let { responseType: i, onUploadProgress: l, onDownloadProgress: c } = o, d, m, w, f, b; function p() { f && f(), b && b(), o.cancelToken && o.cancelToken.unsubscribe(d), o.signal && o.signal.removeEventListener("abort", d); } let h = new XMLHttpRequest(); h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout; function v() { if (!h) return; const E = be.from( "getAllResponseHeaders" in h && h.getAllResponseHeaders() ), C = { data: !i || i === "text" || i === "json" ? h.responseText : h.response, status: h.status, statusText: h.statusText, headers: E, config: e, request: h }; Jo(function(R) { n(R), p(); }, function(R) { r(R), p(); }, C), h = null; } "onloadend" in h ? h.onloadend = v : h.onreadystatechange = function() { !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(v); }, h.onabort = function() { h && (r(new $("Request aborted", $.ECONNABORTED, e, h)), h = null); }, h.onerror = function() { r(new $("Network Error", $.ERR_NETWORK, e, h)), h = null; }, h.ontimeout = function() { let S = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded"; const C = o.transitional || Go; o.timeoutErrorMessage && (S = o.timeoutErrorMessage), r(new $( S, C.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED, e, h )), h = null; }, s === void 0 && a.setContentType(null), "setRequestHeader" in h && x.forEach(a.toJSON(), function(S, C) { h.setRequestHeader(C, S); }), x.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), i && i !== "json" && (h.responseType = o.responseType), c && ([w, b] = on(c, !0), h.addEventListener("progress", w)), l && h.upload && ([m, f] = on(l), h.upload.addEventListener("progress", m), h.upload.addEventListener("loadend", f)), (o.cancelToken || o.signal) && (d = (E) => { h && (r(!E || E.type ? new St(null, e, h) : E), h.abort(), h = null); }, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d))); const y = xl(o.url); if (y && ue.protocols.indexOf(y) === -1) { r(new $("Unsupported protocol " + y + ":", $.ERR_BAD_REQUEST, e)); return; } h.send(s || null); }); }, Ol = (e, t) => { const { length: n } = e = e ? e.filter(Boolean) : []; if (t || n) { let r = new AbortController(), o; const s = function(c) { if (!o) { o = !0, i(); const d = c instanceof Error ? c : this.reason; r.abort(d instanceof $ ? d : new St(d instanceof Error ? d.message : d)); } }; let a = t && setTimeout(() => { a = null, s(new $(`timeout ${t} of ms exceeded`, $.ETIMEDOUT)); }, t); const i = () => { e && (a && clearTimeout(a), a = null, e.forEach((c) => { c.unsubscribe ? c.unsubscribe(s) : c.removeEventListener("abort", s); }), e = null); }; e.forEach((c) => c.addEventListener("abort", s)); const { signal: l } = r; return l.unsubscribe = () => x.asap(i), l; } }, kl = function* (e, t) { let n = e.byteLength; if (n < t) { yield e; return; } let r = 0, o; for (; r < n; ) o = r + t, yield e.slice(r, o), r = o; }, Dl = async function* (e, t) { for await (const n of Il(e)) yield* kl(n, t); }, Il = async function* (e) { if (e[Symbol.asyncIterator]) { yield* e; return; } const t = e.getReader(); try { for (; ; ) { const { done: n, value: r } = await t.read(); if (n) break; yield r; } } finally { await t.cancel(); } }, to = (e, t, n, r) => { const o = Dl(e, t); let s = 0, a, i = (l) => { a || (a = !0, r && r(l)); }; return new ReadableStream({ async pull(l) { try { const { done: c, value: d } = await o.next(); if (c) { i(), l.close(); return; } let m = d.byteLength; if (n) { let w = s += m; n(w); } l.enqueue(new Uint8Array(d)); } catch (c) { throw i(c), c; } }, cancel(l) { return i(l), o.return(); } }, { highWaterMark: 2 }); }, yn = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", es = yn && typeof ReadableStream == "function", Ml = yn && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), ts = (e, ...t) => { try { return !!e(...t); } catch { return !1; } }, Ll = es && ts(() => { let e = !1; const t = new Request(ue.origin, { body: new ReadableStream(), method: "POST", get duplex() { return e = !0, "half"; } }).headers.has("Content-Type"); return e && !t; }), no = 64 * 1024, er = es && ts(() => x.isReadableStream(new Response("").body)), sn = { stream: er && ((e) => e.body) }; yn && ((e) => { ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => { !sn[t] && (sn[t] = x.isFunction(e[t]) ? (n) => n[t]() : (n, r) => { throw new $(`Response type '${t}' is not supported`, $.ERR_NOT_SUPPORT, r); }); }); })(new Response()); const _l = async (e) => { if (e == null) return 0; if (x.isBlob(e)) return e.size; if (x.isSpecCompliantForm(e)) return (await new Request(ue.origin, { method: "POST", body: e }).arrayBuffer()).byteLength; if (x.isArrayBufferView(e) || x.isArrayBuffer(e)) return e.byteLength; if (x.isURLSearchParams(e) && (e = e + ""), x.isString(e)) return (await Ml(e)).byteLength; }, Bl = async (e, t) => { const n = x.toFiniteNumber(e.getContentLength()); return n ?? _l(t); }, Fl = yn && (async (e) => { let { url: t, method: n, data: r, signal: o, cancelToken: s, timeout: a, onDownloadProgress: i, onUploadProgress: l, responseType: c, headers: d, withCredentials: m = "same-origin", fetchOptions: w } = Qo(e); c = c ? (c + "").toLowerCase() : "text"; let f = Ol([o, s && s.toAbortSignal()], a), b; const p = f && f.unsubscribe && (() => { f.unsubscribe(); }); let h; try { if (l && Ll && n !== "get" && n !== "head" && (h = await Bl(d, r)) !== 0) { let C = new Request(t, { method: "POST", body: r, duplex: "half" }), A; if (x.isFormData(r) && (A = C.headers.get("content-type")) && d.setContentType(A), C.body) { const [R, k] = Zr( h, on(Qr(l)) ); r = to(C.body, no, R, k); } } x.isString(m) || (m = m ? "include" : "omit"); const v = "credentials" in Request.prototype; b = new Request(t, { ...w, signal: f, method: n.toUpperCase(), headers: d.normalize().toJSON(), body: r, duplex: "half", credentials: v ? m : void 0 }); let y = await fetch(b); const E = er && (c === "stream" || c === "response"); if (er && (i || E && p)) { const C = {}; ["status", "statusText", "headers"].forEach((F) => { C[F] = y[F]; }); const A = x.toFiniteNumber(y.headers.get("content-length")), [R, k] = i && Zr( A, on(Qr(i), !0) ) || []; y = new Response( to(y.body, no, R, () => { k && k(), p && p(); }), C ); } c = c || "text"; let S = await sn[x.findKey(sn, c) || "text"](y, e); return !E && p && p(), await new Promise((C, A) => { Jo(C, A, { data: S, headers: be.from(y.headers), status: y.status, statusText: y.statusText, config: e, request: b }); }); } catch (v) { throw p && p(), v && v.name === "TypeError" && /Load failed|fetch/i.test(v.message) ? Object.assign( new $("Network Error", $.ERR_NETWORK, e, b), { cause: v.cause || v } ) : $.from(v, v && v.code, e, b); } }), tr = { http: Qi, xhr: Pl, fetch: Fl }; x.forEach(tr, (e, t) => { if (e) { try { Object.defineProperty(e, "name", { value: t }); } catch { } Object.defineProperty(e, "adapterName", { value: t }); } }); const ro = (e) => `- ${e}`, $l = (e) => x.isFunction(e) || e === null || e === !1, ns = { getAdapter: (e) => { e = x.isArray(e) ? e : [e]; const { length: t } = e; let n, r; const o = {}; for (let s = 0; s < t; s++) { n = e[s]; let a; if (r = n, !$l(n) && (r = tr[(a = String(n)).toLowerCase()], r === void 0)) throw new $(`Unknown adapter '${a}'`); if (r) break; o[a || "#" + s] = r; } if (!r) { const s = Object.entries(o).map( ([i, l]) => `adapter ${i} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build") ); let a = t ? s.length > 1 ? `since : ` + s.map(ro).join(` `) : " " + ro(s[0]) : "as no adapter specified"; throw new $( "There is no suitable adapter to dispatch the request " + a, "ERR_NOT_SUPPORT" ); } return r; }, adapters: tr }; function $n(e) { if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new St(null, e); } function oo(e) { return $n(e), e.headers = be.from(e.headers), e.data = Fn.call( e, e.transformRequest ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ns.getAdapter(e.adapter || jt.adapter)(e).then(function(r) { return $n(e), r.data = Fn.call( e, e.transformResponse, r ), r.headers = be.from(r.headers), r; }, function(r) { return Xo(r) || ($n(e), r && r.response && (r.response.data = Fn.call( e, e.transformResponse, r.response ), r.response.headers = be.from(r.response.headers))), Promise.reject(r); }); } const rs = "1.9.0", xn = {}; ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => { xn[e] = function(r) { return typeof r === e || "a" + (t < 1 ? "n " : " ") + e; }; }); const so = {}; xn.transitional = function(t, n, r) { function o(s, a) { return "[Axios v" + rs + "] Transitional option '" + s + "'" + a + (r ? ". " + r : ""); } return (s, a, i) => { if (t === !1) throw new $( o(a, " has been removed" + (n ? " in " + n : "")), $.ERR_DEPRECATED ); return n && !so[a] && (so[a] = !0, console.warn( o( a, " has been deprecated since v" + n + " and will be removed in the near future" ) )), t ? t(s, a, i) : !0; }; }; xn.spelling = function(t) { return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0); }; function jl(e, t, n) { if (typeof e != "object") throw new $("options must be an object", $.ERR_BAD_OPTION_VALUE); const r = Object.keys(e); let o = r.length; for (; o-- > 0; ) { const s = r[o], a = t[s]; if (a) { const i = e[s], l = i === void 0 || a(i, s, e); if (l !== !0) throw new $("option " + s + " must be " + l, $.ERR_BAD_OPTION_VALUE); continue; } if (n !== !0) throw new $("Unknown option " + s, $.ERR_BAD_OPTION); } } const Qt = { assertOptions: jl, validators: xn }, Oe = Qt.validators; let nt = class { constructor(t) { this.defaults = t || {}, this.interceptors = { request: new Xr(), response: new Xr() }; } /** * Dispatch a request * * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults) * @param {?Object} config * * @returns {Promise} The Promise to be fulfilled */ async request(t, n) { try { return await this._request(t, n); } catch (r) { if (r instanceof Error) { let o = {}; Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error(); const s = o.stack ? o.stack.replace(/^.+\n/, "") : ""; try { r.stack ? s && !String(r.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (r.stack += ` ` + s) : r.stack = s; } catch { } } throw r; } } _request(t, n) { typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = rt(this.defaults, n); const { transitional: r, paramsSerializer: o, headers: s } = n; r !== void 0 && Qt.assertOptions(r, { silentJSONParsing: Oe.transitional(Oe.boolean), forcedJSONParsing: Oe.transitional(Oe.boolean), clarifyTimeoutError: Oe.transitional(Oe.boolean) }, !1), o != null && (x.isFunction(o) ? n.paramsSerializer = { serialize: o } : Qt.assertOptions(o, { encode: Oe.function, serialize: Oe.function }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Qt.assertOptions(n, { baseUrl: Oe.spelling("baseURL"), withXsrfToken: Oe.spelling("withXSRFToken") }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase(); let a = s && x.merge( s.common, s[n.method] ); s && x.forEach( ["delete", "get", "head", "post", "put", "patch", "common"], (b) => { delete s[b]; } ), n.headers = be.concat(a, s); const i = []; let l = !0; this.interceptors.request.forEach(function(p) { typeof p.runWhen == "function" && p.runWhen(n) === !1 || (l = l && p.synchronous, i.unshift(p.fulfilled, p.rejected)); }); const c = []; this.interceptors.response.forEach(function(p) { c.push(p.fulfilled, p.rejected); }); let d, m = 0, w; if (!l) { const b = [oo.bind(this), void 0]; for (b.unshift.apply(b, i), b.push.apply(b, c), w = b.length, d = Promise.resolve(n); m < w; ) d = d.then(b[m++], b[m++]); return d; } w = i.length; let f = n; for (m = 0; m < w; ) { const b = i[m++], p = i[m++]; try { f = b(f); } catch (h) { p.call(this, h); break; } } try { d = oo.call(this, f); } catch (b) { return Promise.reject(b); } for (m = 0, w = c.length; m < w; ) d = d.then(c[m++], c[m++]); return d; } getUri(t) { t = rt(this.defaults, t); const n = Zo(t.baseURL, t.url, t.allowAbsoluteUrls); return Yo(n, t.params, t.paramsSerializer); } }; x.forEach(["delete", "get", "head", "options"], function(t) { nt.prototype[t] = function(n, r) { return this.request(rt(r || {}, { method: t, url: n, data: (r || {}).data })); }; }); x.forEach(["post", "put", "patch"], function(t) { function n(r) { return function(s, a, i) { return this.request(rt(i || {}, { method: t, headers: r ? { "Content-Type": "multipart/form-data" } : {}, url: s, data: a })); }; } nt.prototype[t] = n(), nt.prototype[t + "Form"] = n(!0); }); let Ul = class os { constructor(t) { if (typeof t != "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((o) => { if (!r._listeners) return; let s = r._listeners.length; for (; s-- > 0; ) r._listeners[s](o); r._listeners = null; }), this.promise.then = (o) => { let s; const a = new Promise((i) => { r.subscribe(i), s = i; }).then(o); return a.cancel = function() { r.unsubscribe(s); }, a; }, t(function(s, a, i) { r.reason || (r.reason = new St(s, a, i), n(r.reason)); }); } /** * Throws a `CanceledError` if cancellation has been requested. */ throwIfRequested() { if (this.reason) throw this.reason; } /** * Subscribe to the cancel signal */ subscribe(t) { if (this.reason) { t(this.reason); return; } this._listeners ? this._listeners.push(t) : this._listeners = [t]; } /** * Unsubscribe from the cancel signal */ unsubscribe(t) { if (!this._listeners) return; const n = this._listeners.indexOf(t); n !== -1 && this._listeners.splice(n, 1); } toAbortSignal() { const t = new AbortController(), n = (r) => { t.abort(r); }; return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal; } /** * Returns an object that contains a new `CancelToken` and a function that, when called, * cancels the `CancelToken`. */ static source() { let t; return { token: new os(function(o) { t = o; }), cancel: t }; } }; function zl(e) { return function(n) { return e.apply(null, n); }; } function Wl(e) { return x.isObject(e) && e.isAxiosError === !0; } const nr = { 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(nr).forEach(([e, t]) => { nr[t] = e; }); function ss(e) { const t = new nt(e), n = Lo(nt.prototype.request, t); return x.extend(n, nt.prototype, t, { allOwnKeys: !0 }), x.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) { return ss(rt(e, o)); }, n; } const oe = ss(jt); oe.Axios = nt; oe.CanceledError = St; oe.CancelToken = Ul; oe.isCancel = Xo; oe.VERSION = rs; oe.toFormData = vn; oe.AxiosError = $; oe.Cancel = oe.CanceledError; oe.all = function(t) { return Promise.all(t); }; oe.spread = zl; oe.isAxiosError = Wl; oe.mergeConfig = rt; oe.AxiosHeaders = be; oe.formToJSON = (e) => Ko(x.isHTMLForm(e) ? new FormData(e) : e); oe.getAdapter = ns.getAdapter; oe.HttpStatusCode = nr; oe.default = oe; const { Axio