@craterapp/vue-sdk
Version:
Embedded Invoicing & Bill Pay for platforms.
1,456 lines โข 2.74 MB
JavaScript
import * as _F from "vue";
import { effectScope as dw, ref as Q, markRaw as Hl, toRaw as to, hasInjectionContext as yF, inject as Qn, getCurrentInstance as wu, watch as _t, unref as v, reactive as Tn, isRef as cn, isReactive as Q0, toRef as E_, nextTick as Qr, computed as U, getCurrentScope as bF, onScopeDispose as wF, toRefs as uo, defineComponent as ge, h as Ge, onMounted as Ht, onUnmounted as er, Fragment as ct, createVNode as y, Text as xF, createApp as b3, pushScopeId as hw, popScopeId as fw, openBlock as x, createBlock as P, withScopeId as kF, resolveComponent as Uo, createElementBlock as F, normalizeClass as J, withKeys as SF, createElementVNode as S, renderSlot as Qe, createCommentVNode as ee, mergeProps as Ws, withCtx as O, normalizeStyle as dp, toDisplayString as K, cloneVNode as CF, provide as Br, watchEffect as fr, Teleport as pw, shallowRef as mw, useSlots as xu, resolveDynamicComponent as Ld, defineAsyncComponent as $F, onBeforeMount as w3, onBeforeUnmount as Rd, isReadonly as EF, renderList as Gt, withModifiers as Yt, createTextVNode as Ce, withDirectives as on, vShow as wr, TransitionGroup as TF, vModelCheckbox as MF, createStaticVNode as ev, resolveDirective as dc, Transition as Fd, normalizeProps as IF, guardReactiveProps as DF, customRef as zF, createSlots as x3, toHandlers as OF, useAttrs as PF } from "vue";
var hr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function wo(t) {
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
function k3(t) {
if (t.__esModule)
return t;
var e = t.default;
if (typeof e == "function") {
var n = function r() {
return this instanceof r ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
};
n.prototype = e.prototype;
} else
n = {};
return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(t).forEach(function(r) {
var s = Object.getOwnPropertyDescriptor(t, r);
Object.defineProperty(n, r, s.get ? s : {
enumerable: !0,
get: function() {
return t[r];
}
});
}), n;
}
var S3 = { exports: {} };
(function(t, e) {
(function(n, r) {
t.exports = r();
})(hr, function() {
var n = 1e3, r = 6e4, s = 36e5, i = "millisecond", o = "second", a = "minute", l = "hour", c = "day", u = "week", h = "month", p = "quarter", m = "year", g = "date", _ = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, E = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(te) {
var Z = ["th", "st", "nd", "rd"], ae = te % 100;
return "[" + te + (Z[(ae - 20) % 10] || Z[ae] || Z[0]) + "]";
} }, $ = function(te, Z, ae) {
var ue = String(te);
return !ue || ue.length >= Z ? te : "" + Array(Z + 1 - ue.length).join(ae) + te;
}, C = { s: $, z: function(te) {
var Z = -te.utcOffset(), ae = Math.abs(Z), ue = Math.floor(ae / 60), X = ae % 60;
return (Z <= 0 ? "+" : "-") + $(ue, 2, "0") + ":" + $(X, 2, "0");
}, m: function te(Z, ae) {
if (Z.date() < ae.date())
return -te(ae, Z);
var ue = 12 * (ae.year() - Z.year()) + (ae.month() - Z.month()), X = Z.clone().add(ue, h), we = ae - X < 0, ve = Z.clone().add(ue + (we ? -1 : 1), h);
return +(-(ue + (ae - X) / (we ? X - ve : ve - X)) || 0);
}, a: function(te) {
return te < 0 ? Math.ceil(te) || 0 : Math.floor(te);
}, p: function(te) {
return { M: h, y: m, w: u, d: c, D: g, h: l, m: a, s: o, ms: i, Q: p }[te] || String(te || "").toLowerCase().replace(/s$/, "");
}, u: function(te) {
return te === void 0;
} }, T = "en", M = {};
M[T] = E;
var D = "$isDayjsObject", L = function(te) {
return te instanceof le || !(!te || !te[D]);
}, N = function te(Z, ae, ue) {
var X;
if (!Z)
return T;
if (typeof Z == "string") {
var we = Z.toLowerCase();
M[we] && (X = we), ae && (M[we] = ae, X = we);
var ve = Z.split("-");
if (!X && ve.length > 1)
return te(ve[0]);
} else {
var De = Z.name;
M[De] = Z, X = De;
}
return !ue && X && (T = X), X || !ue && T;
}, H = function(te, Z) {
if (L(te))
return te.clone();
var ae = typeof Z == "object" ? Z : {};
return ae.date = te, ae.args = arguments, new le(ae);
}, W = C;
W.l = N, W.i = L, W.w = function(te, Z) {
return H(te, { locale: Z.$L, utc: Z.$u, x: Z.$x, $offset: Z.$offset });
};
var le = function() {
function te(ae) {
this.$L = N(ae.locale, null, !0), this.parse(ae), this.$x = this.$x || ae.x || {}, this[D] = !0;
}
var Z = te.prototype;
return Z.parse = function(ae) {
this.$d = function(ue) {
var X = ue.date, we = ue.utc;
if (X === null)
return /* @__PURE__ */ new Date(NaN);
if (W.u(X))
return /* @__PURE__ */ new Date();
if (X instanceof Date)
return new Date(X);
if (typeof X == "string" && !/Z$/i.test(X)) {
var ve = X.match(b);
if (ve) {
var De = ve[2] - 1 || 0, Ae = (ve[7] || "0").substring(0, 3);
return we ? new Date(Date.UTC(ve[1], De, ve[3] || 1, ve[4] || 0, ve[5] || 0, ve[6] || 0, Ae)) : new Date(ve[1], De, ve[3] || 1, ve[4] || 0, ve[5] || 0, ve[6] || 0, Ae);
}
}
return new Date(X);
}(ae), this.init();
}, Z.init = function() {
var ae = this.$d;
this.$y = ae.getFullYear(), this.$M = ae.getMonth(), this.$D = ae.getDate(), this.$W = ae.getDay(), this.$H = ae.getHours(), this.$m = ae.getMinutes(), this.$s = ae.getSeconds(), this.$ms = ae.getMilliseconds();
}, Z.$utils = function() {
return W;
}, Z.isValid = function() {
return this.$d.toString() !== _;
}, Z.isSame = function(ae, ue) {
var X = H(ae);
return this.startOf(ue) <= X && X <= this.endOf(ue);
}, Z.isAfter = function(ae, ue) {
return H(ae) < this.startOf(ue);
}, Z.isBefore = function(ae, ue) {
return this.endOf(ue) < H(ae);
}, Z.$g = function(ae, ue, X) {
return W.u(ae) ? this[ue] : this.set(X, ae);
}, Z.unix = function() {
return Math.floor(this.valueOf() / 1e3);
}, Z.valueOf = function() {
return this.$d.getTime();
}, Z.startOf = function(ae, ue) {
var X = this, we = !!W.u(ue) || ue, ve = W.p(ae), De = function(rt, We) {
var kt = W.w(X.$u ? Date.UTC(X.$y, We, rt) : new Date(X.$y, We, rt), X);
return we ? kt : kt.endOf(c);
}, Ae = function(rt, We) {
return W.w(X.toDate()[rt].apply(X.toDate("s"), (we ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(We)), X);
}, be = this.$W, de = this.$M, Ee = this.$D, nt = "set" + (this.$u ? "UTC" : "");
switch (ve) {
case m:
return we ? De(1, 0) : De(31, 11);
case h:
return we ? De(1, de) : De(0, de + 1);
case u:
var bt = this.$locale().weekStart || 0, Le = (be < bt ? be + 7 : be) - bt;
return De(we ? Ee - Le : Ee + (6 - Le), de);
case c:
case g:
return Ae(nt + "Hours", 0);
case l:
return Ae(nt + "Minutes", 1);
case a:
return Ae(nt + "Seconds", 2);
case o:
return Ae(nt + "Milliseconds", 3);
default:
return this.clone();
}
}, Z.endOf = function(ae) {
return this.startOf(ae, !1);
}, Z.$set = function(ae, ue) {
var X, we = W.p(ae), ve = "set" + (this.$u ? "UTC" : ""), De = (X = {}, X[c] = ve + "Date", X[g] = ve + "Date", X[h] = ve + "Month", X[m] = ve + "FullYear", X[l] = ve + "Hours", X[a] = ve + "Minutes", X[o] = ve + "Seconds", X[i] = ve + "Milliseconds", X)[we], Ae = we === c ? this.$D + (ue - this.$W) : ue;
if (we === h || we === m) {
var be = this.clone().set(g, 1);
be.$d[De](Ae), be.init(), this.$d = be.set(g, Math.min(this.$D, be.daysInMonth())).$d;
} else
De && this.$d[De](Ae);
return this.init(), this;
}, Z.set = function(ae, ue) {
return this.clone().$set(ae, ue);
}, Z.get = function(ae) {
return this[W.p(ae)]();
}, Z.add = function(ae, ue) {
var X, we = this;
ae = Number(ae);
var ve = W.p(ue), De = function(de) {
var Ee = H(we);
return W.w(Ee.date(Ee.date() + Math.round(de * ae)), we);
};
if (ve === h)
return this.set(h, this.$M + ae);
if (ve === m)
return this.set(m, this.$y + ae);
if (ve === c)
return De(1);
if (ve === u)
return De(7);
var Ae = (X = {}, X[a] = r, X[l] = s, X[o] = n, X)[ve] || 1, be = this.$d.getTime() + ae * Ae;
return W.w(be, this);
}, Z.subtract = function(ae, ue) {
return this.add(-1 * ae, ue);
}, Z.format = function(ae) {
var ue = this, X = this.$locale();
if (!this.isValid())
return X.invalidDate || _;
var we = ae || "YYYY-MM-DDTHH:mm:ssZ", ve = W.z(this), De = this.$H, Ae = this.$m, be = this.$M, de = X.weekdays, Ee = X.months, nt = X.meridiem, bt = function(We, kt, Xe, At) {
return We && (We[kt] || We(ue, we)) || Xe[kt].slice(0, At);
}, Le = function(We) {
return W.s(De % 12 || 12, We, "0");
}, rt = nt || function(We, kt, Xe) {
var At = We < 12 ? "AM" : "PM";
return Xe ? At.toLowerCase() : At;
};
return we.replace(k, function(We, kt) {
return kt || function(Xe) {
switch (Xe) {
case "YY":
return String(ue.$y).slice(-2);
case "YYYY":
return W.s(ue.$y, 4, "0");
case "M":
return be + 1;
case "MM":
return W.s(be + 1, 2, "0");
case "MMM":
return bt(X.monthsShort, be, Ee, 3);
case "MMMM":
return bt(Ee, be);
case "D":
return ue.$D;
case "DD":
return W.s(ue.$D, 2, "0");
case "d":
return String(ue.$W);
case "dd":
return bt(X.weekdaysMin, ue.$W, de, 2);
case "ddd":
return bt(X.weekdaysShort, ue.$W, de, 3);
case "dddd":
return de[ue.$W];
case "H":
return String(De);
case "HH":
return W.s(De, 2, "0");
case "h":
return Le(1);
case "hh":
return Le(2);
case "a":
return rt(De, Ae, !0);
case "A":
return rt(De, Ae, !1);
case "m":
return String(Ae);
case "mm":
return W.s(Ae, 2, "0");
case "s":
return String(ue.$s);
case "ss":
return W.s(ue.$s, 2, "0");
case "SSS":
return W.s(ue.$ms, 3, "0");
case "Z":
return ve;
}
return null;
}(We) || ve.replace(":", "");
});
}, Z.utcOffset = function() {
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
}, Z.diff = function(ae, ue, X) {
var we, ve = this, De = W.p(ue), Ae = H(ae), be = (Ae.utcOffset() - this.utcOffset()) * r, de = this - Ae, Ee = function() {
return W.m(ve, Ae);
};
switch (De) {
case m:
we = Ee() / 12;
break;
case h:
we = Ee();
break;
case p:
we = Ee() / 3;
break;
case u:
we = (de - be) / 6048e5;
break;
case c:
we = (de - be) / 864e5;
break;
case l:
we = de / s;
break;
case a:
we = de / r;
break;
case o:
we = de / n;
break;
default:
we = de;
}
return X ? we : W.a(we);
}, Z.daysInMonth = function() {
return this.endOf(h).$D;
}, Z.$locale = function() {
return M[this.$L];
}, Z.locale = function(ae, ue) {
if (!ae)
return this.$L;
var X = this.clone(), we = N(ae, ue, !0);
return we && (X.$L = we), X;
}, Z.clone = function() {
return W.w(this.$d, this);
}, Z.toDate = function() {
return new Date(this.valueOf());
}, Z.toJSON = function() {
return this.isValid() ? this.toISOString() : null;
}, Z.toISOString = function() {
return this.$d.toISOString();
}, Z.toString = function() {
return this.$d.toUTCString();
}, te;
}(), ie = le.prototype;
return H.prototype = ie, [["$ms", i], ["$s", o], ["$m", a], ["$H", l], ["$W", c], ["$M", h], ["$y", m], ["$D", g]].forEach(function(te) {
ie[te[1]] = function(Z) {
return this.$g(Z, te[0], te[1]);
};
}), H.extend = function(te, Z) {
return te.$i || (te(Z, le, H), te.$i = !0), H;
}, H.locale = N, H.isDayjs = L, H.unix = function(te) {
return H(1e3 * te);
}, H.en = M[T], H.Ls = M, H.p = {}, H;
});
})(S3);
var AF = S3.exports;
const cr = /* @__PURE__ */ wo(AF);
var C3 = !1;
function qm(t, e, n) {
return Array.isArray(t) ? (t.length = Math.max(t.length, e), t.splice(e, 1, n), n) : (t[e] = n, n);
}
function T_(t, e) {
if (Array.isArray(t)) {
t.splice(e, 1);
return;
}
delete t[e];
}
function NF() {
return $3().__VUE_DEVTOOLS_GLOBAL_HOOK__;
}
function $3() {
return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
}
const BF = typeof Proxy == "function", LF = "devtools-plugin:setup", RF = "plugin:settings:set";
let Yu, kb;
function FF() {
var t;
return Yu !== void 0 || (typeof window < "u" && window.performance ? (Yu = !0, kb = window.performance) : typeof global < "u" && (!((t = global.perf_hooks) === null || t === void 0) && t.performance) ? (Yu = !0, kb = global.perf_hooks.performance) : Yu = !1), Yu;
}
function VF() {
return FF() ? kb.now() : Date.now();
}
class jF {
constructor(e, n) {
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = n;
const r = {};
if (e.settings)
for (const o in e.settings) {
const a = e.settings[o];
r[o] = a.defaultValue;
}
const s = `__vue-devtools-plugin-settings__${e.id}`;
let i = Object.assign({}, r);
try {
const o = localStorage.getItem(s), a = JSON.parse(o);
Object.assign(i, a);
} catch {
}
this.fallbacks = {
getSettings() {
return i;
},
setSettings(o) {
try {
localStorage.setItem(s, JSON.stringify(o));
} catch {
}
i = o;
},
now() {
return VF();
}
}, n && n.on(RF, (o, a) => {
o === this.plugin.id && this.fallbacks.setSettings(a);
}), this.proxiedOn = new Proxy({}, {
get: (o, a) => this.target ? this.target.on[a] : (...l) => {
this.onQueue.push({
method: a,
args: l
});
}
}), this.proxiedTarget = new Proxy({}, {
get: (o, a) => this.target ? this.target[a] : a === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(a) ? (...l) => (this.targetQueue.push({
method: a,
args: l,
resolve: () => {
}
}), this.fallbacks[a](...l)) : (...l) => new Promise((c) => {
this.targetQueue.push({
method: a,
args: l,
resolve: c
});
})
});
}
async setRealTarget(e) {
this.target = e;
for (const n of this.onQueue)
this.target.on[n.method](...n.args);
for (const n of this.targetQueue)
n.resolve(await this.target[n.method](...n.args));
}
}
function gw(t, e) {
const n = t, r = $3(), s = NF(), i = BF && n.enableEarlyProxy;
if (s && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !i))
s.emit(LF, t, e);
else {
const o = i ? new jF(n, s) : null;
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
pluginDescriptor: n,
setupFn: e,
proxy: o
}), o && e(o.proxiedTarget);
}
}
/*!
* pinia v2.1.7
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/
let nf;
const Of = (t) => nf = t, E3 = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
/* istanbul ignore next */
Symbol()
);
function uu(t) {
return t && typeof t == "object" && Object.prototype.toString.call(t) === "[object Object]" && typeof t.toJSON != "function";
}
var pa;
(function(t) {
t.direct = "direct", t.patchObject = "patch object", t.patchFunction = "patch function";
})(pa || (pa = {}));
const tv = typeof window < "u", df = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && tv, AC = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
function UF(t, { autoBom: e = !1 } = {}) {
return e && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type) ? new Blob(["\uFEFF", t], { type: t.type }) : t;
}
function vw(t, e, n) {
const r = new XMLHttpRequest();
r.open("GET", t), r.responseType = "blob", r.onload = function() {
I3(r.response, e, n);
}, r.onerror = function() {
console.error("could not download file");
}, r.send();
}
function T3(t) {
const e = new XMLHttpRequest();
e.open("HEAD", t, !1);
try {
e.send();
} catch {
}
return e.status >= 200 && e.status <= 299;
}
function Pg(t) {
try {
t.dispatchEvent(new MouseEvent("click"));
} catch {
const n = document.createEvent("MouseEvents");
n.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), t.dispatchEvent(n);
}
}
const Ag = typeof navigator == "object" ? navigator : { userAgent: "" }, M3 = /Macintosh/.test(Ag.userAgent) && /AppleWebKit/.test(Ag.userAgent) && !/Safari/.test(Ag.userAgent), I3 = tv ? (
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !M3 ? HF : (
// Use msSaveOrOpenBlob as a second approach
"msSaveOrOpenBlob" in Ag ? WF : (
// Fallback to using FileReader and a popup
qF
)
)
) : () => {
};
function HF(t, e = "download", n) {
const r = document.createElement("a");
r.download = e, r.rel = "noopener", typeof t == "string" ? (r.href = t, r.origin !== location.origin ? T3(r.href) ? vw(t, e, n) : (r.target = "_blank", Pg(r)) : Pg(r)) : (r.href = URL.createObjectURL(t), setTimeout(function() {
URL.revokeObjectURL(r.href);
}, 4e4), setTimeout(function() {
Pg(r);
}, 0));
}
function WF(t, e = "download", n) {
if (typeof t == "string")
if (T3(t))
vw(t, e, n);
else {
const r = document.createElement("a");
r.href = t, r.target = "_blank", setTimeout(function() {
Pg(r);
});
}
else
navigator.msSaveOrOpenBlob(UF(t, n), e);
}
function qF(t, e, n, r) {
if (r = r || open("", "_blank"), r && (r.document.title = r.document.body.innerText = "downloading..."), typeof t == "string")
return vw(t, e, n);
const s = t.type === "application/octet-stream", i = /constructor/i.test(String(AC.HTMLElement)) || "safari" in AC, o = /CriOS\/[\d]+/.test(navigator.userAgent);
if ((o || s && i || M3) && typeof FileReader < "u") {
const a = new FileReader();
a.onloadend = function() {
let l = a.result;
if (typeof l != "string")
throw r = null, new Error("Wrong reader.result type");
l = o ? l : l.replace(/^data:[^;]*;/, "data:attachment/file;"), r ? r.location.href = l : location.assign(l), r = null;
}, a.readAsDataURL(t);
} else {
const a = URL.createObjectURL(t);
r ? r.location.assign(a) : location.href = a, r = null, setTimeout(function() {
URL.revokeObjectURL(a);
}, 4e4);
}
}
function Jr(t, e) {
const n = "๐ " + t;
typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(n, e) : e === "error" ? console.error(n) : e === "warn" ? console.warn(n) : console.log(n);
}
function _w(t) {
return "_a" in t && "install" in t;
}
function D3() {
if (!("clipboard" in navigator))
return Jr("Your browser doesn't support the Clipboard API", "error"), !0;
}
function z3(t) {
return t instanceof Error && t.message.toLowerCase().includes("document is not focused") ? (Jr('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
}
async function YF(t) {
if (!D3())
try {
await navigator.clipboard.writeText(JSON.stringify(t.state.value)), Jr("Global state copied to clipboard.");
} catch (e) {
if (z3(e))
return;
Jr("Failed to serialize the state. Check the console for more details.", "error"), console.error(e);
}
}
async function GF(t) {
if (!D3())
try {
O3(t, JSON.parse(await navigator.clipboard.readText())), Jr("Global state pasted from clipboard.");
} catch (e) {
if (z3(e))
return;
Jr("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(e);
}
}
async function KF(t) {
try {
I3(new Blob([JSON.stringify(t.state.value)], {
type: "text/plain;charset=utf-8"
}), "pinia-state.json");
} catch (e) {
Jr("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(e);
}
}
let Ua;
function XF() {
Ua || (Ua = document.createElement("input"), Ua.type = "file", Ua.accept = ".json");
function t() {
return new Promise((e, n) => {
Ua.onchange = async () => {
const r = Ua.files;
if (!r)
return e(null);
const s = r.item(0);
return e(s ? { text: await s.text(), file: s } : null);
}, Ua.oncancel = () => e(null), Ua.onerror = n, Ua.click();
});
}
return t;
}
async function JF(t) {
try {
const n = await XF()();
if (!n)
return;
const { text: r, file: s } = n;
O3(t, JSON.parse(r)), Jr(`Global state imported from "${s.name}".`);
} catch (e) {
Jr("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(e);
}
}
function O3(t, e) {
for (const n in e) {
const r = t.state.value[n];
r ? Object.assign(r, e[n]) : t.state.value[n] = e[n];
}
}
function Ao(t) {
return {
_custom: {
display: t
}
};
}
const P3 = "๐ Pinia (root)", Sb = "_root";
function ZF(t) {
return _w(t) ? {
id: Sb,
label: P3
} : {
id: t.$id,
label: t.$id
};
}
function QF(t) {
if (_w(t)) {
const n = Array.from(t._s.keys()), r = t._s;
return {
state: n.map((i) => ({
editable: !0,
key: i,
value: t.state.value[i]
})),
getters: n.filter((i) => r.get(i)._getters).map((i) => {
const o = r.get(i);
return {
editable: !1,
key: i,
value: o._getters.reduce((a, l) => (a[l] = o[l], a), {})
};
})
};
}
const e = {
state: Object.keys(t.$state).map((n) => ({
editable: !0,
key: n,
value: t.$state[n]
}))
};
return t._getters && t._getters.length && (e.getters = t._getters.map((n) => ({
editable: !1,
key: n,
value: t[n]
}))), t._customProperties.size && (e.customProperties = Array.from(t._customProperties).map((n) => ({
editable: !0,
key: n,
value: t[n]
}))), e;
}
function eV(t) {
return t ? Array.isArray(t) ? t.reduce((e, n) => (e.keys.push(n.key), e.operations.push(n.type), e.oldValue[n.key] = n.oldValue, e.newValue[n.key] = n.newValue, e), {
oldValue: {},
keys: [],
operations: [],
newValue: {}
}) : {
operation: Ao(t.type),
key: Ao(t.key),
oldValue: t.oldValue,
newValue: t.newValue
} : {};
}
function tV(t) {
switch (t) {
case pa.direct:
return "mutation";
case pa.patchFunction:
return "$patch";
case pa.patchObject:
return "$patch";
default:
return "unknown";
}
}
let ad = !0;
const Ng = [], jc = "pinia:mutations", Ss = "pinia", { assign: nV } = Object, e0 = (t) => "๐ " + t;
function rV(t, e) {
gw({
id: "dev.esm.pinia",
label: "Pinia ๐",
logo: "https://pinia.vuejs.org/logo.svg",
packageName: "pinia",
homepage: "https://pinia.vuejs.org",
componentStateTypes: Ng,
app: t
}, (n) => {
typeof n.now != "function" && Jr("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), n.addTimelineLayer({
id: jc,
label: "Pinia ๐",
color: 15064968
}), n.addInspector({
id: Ss,
label: "Pinia ๐",
icon: "storage",
treeFilterPlaceholder: "Search stores",
actions: [
{
icon: "content_copy",
action: () => {
YF(e);
},
tooltip: "Serialize and copy the state"
},
{
icon: "content_paste",
action: async () => {
await GF(e), n.sendInspectorTree(Ss), n.sendInspectorState(Ss);
},
tooltip: "Replace the state with the content of your clipboard"
},
{
icon: "save",
action: () => {
KF(e);
},
tooltip: "Save the state as a JSON file"
},
{
icon: "folder_open",
action: async () => {
await JF(e), n.sendInspectorTree(Ss), n.sendInspectorState(Ss);
},
tooltip: "Import the state from a JSON file"
}
],
nodeActions: [
{
icon: "restore",
tooltip: 'Reset the state (with "$reset")',
action: (r) => {
const s = e._s.get(r);
s ? typeof s.$reset != "function" ? Jr(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`, "warn") : (s.$reset(), Jr(`Store "${r}" reset.`)) : Jr(`Cannot reset "${r}" store because it wasn't found.`, "warn");
}
}
]
}), n.on.inspectComponent((r, s) => {
const i = r.componentInstance && r.componentInstance.proxy;
if (i && i._pStores) {
const o = r.componentInstance.proxy._pStores;
Object.values(o).forEach((a) => {
r.instanceData.state.push({
type: e0(a.$id),
key: "state",
editable: !0,
value: a._isOptionsAPI ? {
_custom: {
value: to(a.$state),
actions: [
{
icon: "restore",
tooltip: "Reset the state of this store",
action: () => a.$reset()
}
]
}
} : (
// NOTE: workaround to unwrap transferred refs
Object.keys(a.$state).reduce((l, c) => (l[c] = a.$state[c], l), {})
)
}), a._getters && a._getters.length && r.instanceData.state.push({
type: e0(a.$id),
key: "getters",
editable: !1,
value: a._getters.reduce((l, c) => {
try {
l[c] = a[c];
} catch (u) {
l[c] = u;
}
return l;
}, {})
});
});
}
}), n.on.getInspectorTree((r) => {
if (r.app === t && r.inspectorId === Ss) {
let s = [e];
s = s.concat(Array.from(e._s.values())), r.rootNodes = (r.filter ? s.filter((i) => "$id" in i ? i.$id.toLowerCase().includes(r.filter.toLowerCase()) : P3.toLowerCase().includes(r.filter.toLowerCase())) : s).map(ZF);
}
}), n.on.getInspectorState((r) => {
if (r.app === t && r.inspectorId === Ss) {
const s = r.nodeId === Sb ? e : e._s.get(r.nodeId);
if (!s)
return;
s && (r.state = QF(s));
}
}), n.on.editInspectorState((r, s) => {
if (r.app === t && r.inspectorId === Ss) {
const i = r.nodeId === Sb ? e : e._s.get(r.nodeId);
if (!i)
return Jr(`store "${r.nodeId}" not found`, "error");
const { path: o } = r;
_w(i) ? o.unshift("state") : (o.length !== 1 || !i._customProperties.has(o[0]) || o[0] in i.$state) && o.unshift("$state"), ad = !1, r.set(i, o, r.state.value), ad = !0;
}
}), n.on.editComponentState((r) => {
if (r.type.startsWith("๐")) {
const s = r.type.replace(/^๐\s*/, ""), i = e._s.get(s);
if (!i)
return Jr(`store "${s}" not found`, "error");
const { path: o } = r;
if (o[0] !== "state")
return Jr(`Invalid path for store "${s}":
${o}
Only state can be modified.`);
o[0] = "$state", ad = !1, r.set(i, o, r.state.value), ad = !0;
}
});
});
}
function sV(t, e) {
Ng.includes(e0(e.$id)) || Ng.push(e0(e.$id)), gw({
id: "dev.esm.pinia",
label: "Pinia ๐",
logo: "https://pinia.vuejs.org/logo.svg",
packageName: "pinia",
homepage: "https://pinia.vuejs.org",
componentStateTypes: Ng,
app: t,
settings: {
logStoreChanges: {
label: "Notify about new/deleted stores",
type: "boolean",
defaultValue: !0
}
// useEmojis: {
// label: 'Use emojis in messages โก๏ธ',
// type: 'boolean',
// defaultValue: true,
// },
}
}, (n) => {
const r = typeof n.now == "function" ? n.now.bind(n) : Date.now;
e.$onAction(({ after: o, onError: a, name: l, args: c }) => {
const u = A3++;
n.addTimelineEvent({
layerId: jc,
event: {
time: r(),
title: "๐ซ " + l,
subtitle: "start",
data: {
store: Ao(e.$id),
action: Ao(l),
args: c
},
groupId: u
}
}), o((h) => {
Wl = void 0, n.addTimelineEvent({
layerId: jc,
event: {
time: r(),
title: "๐ฌ " + l,
subtitle: "end",
data: {
store: Ao(e.$id),
action: Ao(l),
args: c,
result: h
},
groupId: u
}
});
}), a((h) => {
Wl = void 0, n.addTimelineEvent({
layerId: jc,
event: {
time: r(),
logType: "error",
title: "๐ฅ " + l,
subtitle: "end",
data: {
store: Ao(e.$id),
action: Ao(l),
args: c,
error: h
},
groupId: u
}
});
});
}, !0), e._customProperties.forEach((o) => {
_t(() => v(e[o]), (a, l) => {
n.notifyComponentUpdate(), n.sendInspectorState(Ss), ad && n.addTimelineEvent({
layerId: jc,
event: {
time: r(),
title: "Change",
subtitle: o,
data: {
newValue: a,
oldValue: l
},
groupId: Wl
}
});
}, { deep: !0 });
}), e.$subscribe(({ events: o, type: a }, l) => {
if (n.notifyComponentUpdate(), n.sendInspectorState(Ss), !ad)
return;
const c = {
time: r(),
title: tV(a),
data: nV({ store: Ao(e.$id) }, eV(o)),
groupId: Wl
};
a === pa.patchFunction ? c.subtitle = "โคต๏ธ" : a === pa.patchObject ? c.subtitle = "๐งฉ" : o && !Array.isArray(o) && (c.subtitle = o.type), o && (c.data["rawEvent(s)"] = {
_custom: {
display: "DebuggerEvent",
type: "object",
tooltip: "raw DebuggerEvent[]",
value: o
}
}), n.addTimelineEvent({
layerId: jc,
event: c
});
}, { detached: !0, flush: "sync" });
const s = e._hotUpdate;
e._hotUpdate = Hl((o) => {
s(o), n.addTimelineEvent({
layerId: jc,
event: {
time: r(),
title: "๐ฅ " + e.$id,
subtitle: "HMR update",
data: {
store: Ao(e.$id),
info: Ao("HMR update")
}
}
}), n.notifyComponentUpdate(), n.sendInspectorTree(Ss), n.sendInspectorState(Ss);
});
const { $dispose: i } = e;
e.$dispose = () => {
i(), n.notifyComponentUpdate(), n.sendInspectorTree(Ss), n.sendInspectorState(Ss), n.getSettings().logStoreChanges && Jr(`Disposed "${e.$id}" store ๐`);
}, n.notifyComponentUpdate(), n.sendInspectorTree(Ss), n.sendInspectorState(Ss), n.getSettings().logStoreChanges && Jr(`"${e.$id}" store installed ๐`);
});
}
let A3 = 0, Wl;
function NC(t, e, n) {
const r = e.reduce((s, i) => (s[i] = to(t)[i], s), {});
for (const s in r)
t[s] = function() {
const i = A3, o = n ? new Proxy(t, {
get(...l) {
return Wl = i, Reflect.get(...l);
},
set(...l) {
return Wl = i, Reflect.set(...l);
}
}) : t;
Wl = i;
const a = r[s].apply(o, arguments);
return Wl = void 0, a;
};
}
function iV({ app: t, store: e, options: n }) {
if (e.$id.startsWith("__hot:"))
return;
e._isOptionsAPI = !!n.state, NC(e, Object.keys(n.actions), e._isOptionsAPI);
const r = e._hotUpdate;
to(e)._hotUpdate = function(s) {
r.apply(this, arguments), NC(e, Object.keys(s._hmrPayload.actions), !!e._isOptionsAPI);
}, sV(
t,
// FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
e
);
}
function oV() {
const t = dw(!0), e = t.run(() => Q({}));
let n = [], r = [];
const s = Hl({
install(i) {
Of(s), s._a = i, i.provide(E3, s), i.config.globalProperties.$pinia = s, df && rV(i, s), r.forEach((o) => n.push(o)), r = [];
},
use(i) {
return !this._a && !C3 ? r.push(i) : n.push(i), this;
},
_p: n,
// it's actually undefined here
// @ts-expect-error
_a: null,
_e: t,
_s: /* @__PURE__ */ new Map(),
state: e
});
return df && typeof Proxy < "u" && s.use(iV), s;
}
function N3(t, e) {
for (const n in e) {
const r = e[n];
if (!(n in t))
continue;
const s = t[n];
uu(s) && uu(r) && !cn(r) && !Q0(r) ? t[n] = N3(s, r) : t[n] = r;
}
return t;
}
const B3 = () => {
};
function BC(t, e, n, r = B3) {
t.push(e);
const s = () => {
const i = t.indexOf(e);
i > -1 && (t.splice(i, 1), r());
};
return !n && bF() && wF(s), s;
}
function Gu(t, ...e) {
t.slice().forEach((n) => {
n(...e);
});
}
const aV = (t) => t();
function Cb(t, e) {
t instanceof Map && e instanceof Map && e.forEach((n, r) => t.set(r, n)), t instanceof Set && e instanceof Set && e.forEach(t.add, t);
for (const n in e) {
if (!e.hasOwnProperty(n))
continue;
const r = e[n], s = t[n];
uu(s) && uu(r) && t.hasOwnProperty(n) && !cn(r) && !Q0(r) ? t[n] = Cb(s, r) : t[n] = r;
}
return t;
}
const lV = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
/* istanbul ignore next */
Symbol()
);
function cV(t) {
return !uu(t) || !t.hasOwnProperty(lV);
}
const { assign: Ji } = Object;
function LC(t) {
return !!(cn(t) && t.effect);
}
function RC(t, e, n, r) {
const { state: s, actions: i, getters: o } = e, a = n.state.value[t];
let l;
function c() {
!a && (process.env.NODE_ENV === "production" || !r) && (n.state.value[t] = s ? s() : {});
const u = process.env.NODE_ENV !== "production" && r ? (
// use ref() to unwrap refs inside state TODO: check if this is still necessary
uo(Q(s ? s() : {}).value)
) : uo(n.state.value[t]);
return Ji(u, i, Object.keys(o || {}).reduce((h, p) => (process.env.NODE_ENV !== "production" && p in u && console.warn(`[๐]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${t}".`), h[p] = Hl(U(() => {
Of(n);
const m = n._s.get(t);
return o[p].call(m, m);
})), h), {}));
}
return l = $b(t, c, e, n, r, !0), l;
}
function $b(t, e, n = {}, r, s, i) {
let o;
const a = Ji({ actions: {} }, n);
if (process.env.NODE_ENV !== "production" && !r._e.active)
throw new Error("Pinia destroyed");
const l = {
deep: !0
// flush: 'post',
};
process.env.NODE_ENV !== "production" && !C3 && (l.onTrigger = (H) => {
c ? m = H : c == !1 && !D._hotUpdating && (Array.isArray(m) ? m.push(H) : console.error("๐ debuggerEvents should be an array. This is most likely an internal Pinia bug."));
});
let c, u, h = [], p = [], m;
const g = r.state.value[t];
!i && !g && (process.env.NODE_ENV === "production" || !s) && (r.state.value[t] = {});
const _ = Q({});
let b;
function k(H) {
let W;
c = u = !1, process.env.NODE_ENV !== "production" && (m = []), typeof H == "function" ? (H(r.state.value[t]), W = {
type: pa.patchFunction,
storeId: t,
events: m
}) : (Cb(r.state.value[t], H), W = {
type: pa.patchObject,
payload: H,
storeId: t,
events: m
});
const le = b = Symbol();
Qr().then(() => {
b === le && (c = !0);
}), u = !0, Gu(h, W, r.state.value[t]);
}
const E = i ? function() {
const { state: W } = n, le = W ? W() : {};
this.$patch((ie) => {
Ji(ie, le);
});
} : (
/* istanbul ignore next */
process.env.NODE_ENV !== "production" ? () => {
throw new Error(`๐: Store "${t}" is built using the setup syntax and does not implement $reset().`);
} : B3
);
function $() {
o.stop(), h = [], p = [], r._s.delete(t);
}
function C(H, W) {
return function() {
Of(r);
const le = Array.from(arguments), ie = [], te = [];
function Z(X) {
ie.push(X);
}
function ae(X) {
te.push(X);
}
Gu(p, {
args: le,
name: H,
store: D,
after: Z,
onError: ae
});
let ue;
try {
ue = W.apply(this && this.$id === t ? this : D, le);
} catch (X) {
throw Gu(te, X), X;
}
return ue instanceof Promise ? ue.then((X) => (Gu(ie, X), X)).catch((X) => (Gu(te, X), Promise.reject(X))) : (Gu(ie, ue), ue);
};
}
const T = /* @__PURE__ */ Hl({
actions: {},
getters: {},
state: [],
hotState: _
}), M = {
_p: r,
// _s: scope,
$id: t,
$onAction: BC.bind(null, p),
$patch: k,
$reset: E,
$subscribe(H, W = {}) {
const le = BC(h, H, W.detached, () => ie()), ie = o.run(() => _t(() => r.state.value[t], (te) => {
(W.flush === "sync" ? u : c) && H({
storeId: t,
type: pa.direct,
events: m
}, te);
}, Ji({}, l, W)));
return le;
},
$dispose: $
}, D = Tn(process.env.NODE_ENV !== "production" || df ? Ji(
{
_hmrPayload: T,
_customProperties: Hl(/* @__PURE__ */ new Set())
// devtools custom properties
},
M
// must be added later
// setupStore
) : M);
r._s.set(t, D);
const N = (r._a && r._a.runWithContext || aV)(() => r._e.run(() => (o = dw()).run(e)));
for (const H in N) {
const W = N[H];
if (cn(W) && !LC(W) || Q0(W))
process.env.NODE_ENV !== "production" && s ? qm(_.value, H, E_(N, H)) : i || (g && cV(W) && (cn(W) ? W.value = g[H] : Cb(W, g[H])), r.state.value[t][H] = W), process.env.NODE_ENV !== "production" && T.state.push(H);
else if (typeof W == "function") {
const le = process.env.NODE_ENV !== "production" && s ? W : C(H, W);
N[H] = le, process.env.NODE_ENV !== "production" && (T.actions[H] = W), a.actions[H] = W;
} else
process.env.NODE_ENV !== "production" && LC(W) && (T.getters[H] = i ? (
// @ts-expect-error
n.getters[H]
) : W, tv && (N._getters || // @ts-expect-error: same
(N._getters = Hl([]))).push(H));
}
if (Ji(D, N), Ji(to(D), N), Object.defineProperty(D, "$state", {
get: () => process.env.NODE_ENV !== "production" && s ? _.value : r.state.value[t],
set: (H) => {
if (process.env.NODE_ENV !== "production" && s)
throw new Error("cannot set hotState");
k((W) => {
Ji(W, H);
});
}
}), process.env.NODE_ENV !== "production" && (D._hotUpdate = Hl((H) => {
D._hotUpdating = !0, H._hmrPayload.state.forEach((W) => {
if (W in D.$state) {
const le = H.$state[W], ie = D.$state[W];
typeof le == "object" && uu(le) && uu(ie) ? N3(le, ie) : H.$state[W] = ie;
}
qm(D, W, E_(H.$state, W));
}), Object.keys(D.$state).forEach((W) => {
W in H.$state || T_(D, W);
}), c = !1, u = !1, r.state.value[t] = E_(H._hmrPayload, "hotState"), u = !0, Qr().then(() => {
c = !0;
});
for (const W in H._hmrPayload.actions) {
const le = H[W];
qm(D, W, C(W, le));
}
for (const W in H._hmrPayload.getters) {
const le = H._hmrPayload.getters[W], ie = i ? (
// special handling of options api
U(() => (Of(r), le.call(D, D)))
) : le;
qm(D, W, ie);
}
Object.keys(D._hmrPayload.getters).forEach((W) => {
W in H._hmrPayload.getters || T_(D, W);
}), Object.keys(D._hmrPayload.actions).forEach((W) => {
W in H._hmrPayload.actions || T_(D, W);
}), D._hmrPayload = H._hmrPayload, D._getters = H._getters, D._hotUpdating = !1;
})), df) {
const H = {
writable: !0,
configurable: !0,
// avoid warning on devtools trying to display this property
enumerable: !1
};
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((W) => {
Object.defineProperty(D, W, Ji({ value: D[W] }, H));
});
}
return r._p.forEach((H) => {
if (df) {
const W = o.run(() => H({
store: D,
app: r._a,
pinia: r,
options: a
}));
Object.keys(W || {}).forEach((le) => D._customProperties.add(le)), Ji(D, W);
} else
Ji(D, o.run(() => H({
store: D,
app: r._a,
pinia: r,
options: a
})));
}), process.env.NODE_ENV !== "production" && D.$state && typeof D.$state == "object" && typeof D.$state.constructor == "function" && !D.$state.constructor.toString().includes("[native code]") && console.warn(`[๐]: The "state" must be a plain object. It cannot be
state: () => new MyClass()
Found in store "${D.$id}".`), g && i && n.hydrate && n.hydrate(D.$state, g), c = !0, u = !0, D;
}
function Is(t, e, n) {
let r, s;
const i = typeof e == "function";
if (typeof t == "string")
r = t, s = i ? n : e;
else if (s = t, r = t.id, process.env.NODE_ENV !== "production" && typeof r != "string")
throw new Error('[๐]: "defineStore()" must be passed a store id as its first argument.');
function o(a, l) {
const c = yF();
if (a = // in test mode, ignore the argument provided as we can always retrieve a
// pinia instance with getActivePinia()
(process.env.NODE_ENV === "test" && nf && nf._testing ? null : a) || (c ? Qn(E3, null) : null), a && Of(a), process.env.NODE_ENV !== "production" && !nf)
throw new Error(`[๐]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
This will fail in production.`);
a = nf, a._s.has(r) || (i ? $b(r, e, s, a) : RC(r, s, a), process.env.NODE_ENV !== "production" && (o._pinia = a));
const u = a._s.get(r);
if (process.env.NODE_ENV !== "production" && l) {
const h = "__hot:" + r, p = i ? $b(h, e, s, a, !0) : RC(h, Ji({}, s), a, !0);
l._hotUpdate(p), delete a.state.value[h], a._s.delete(h);
}
if (process.env.NODE_ENV !== "production" && tv) {
const h = wu();
if (h && h.proxy && // avoid adding stores that are just built for hot module replacement
!l) {
const p = h.proxy, m = "_pStores" in p ? p._pStores : p._pStores = {};
m[r] = u;
}
}
return u;
}
return o.$id = r, o;
}
const nv = Is({
id: "global",
state: () => ({
isAppLoaded: !1
})
});
var yw = { exports: {} }, L3 = function(e, n) {
return function() {
for (var s = new Array(arguments.length), i = 0; i < s.length; i++)
s[i] = arguments[i];
return e.apply(n, s);
};
}, uV = L3, bw = Object.prototype.toString, ww = /* @__PURE__ */ function(t) {
return function(e) {
var n = bw.call(e);
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
};
}(/* @__PURE__ */ Object.create(null));
function ku(t) {
return t = t.toLowerCase(), function(n) {
return ww(n) === t;
};
}
function xw(t) {
return Array.isArray(t);
}
function t0(t) {
return typeof t > "u";
}
function dV(t) {
return t !== null && !t0(t) && t.constructor !== null && !t0(t.constructor) && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
}
var R3 = ku("ArrayBuffer");
function hV(t) {
var e;
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && R3(t.buffer), e;
}
function fV(t) {
return typeof t == "string";
}
function pV(t) {
return typeof t == "number";
}
function F3(t) {
return t !== null && typeof t == "object";
}
function Bg(t) {
if (ww(t) !== "object")
return !1;
var e = Object.getPrototypeOf(t);
return e === null || e === Object.prototype;
}
var mV = ku("Date"), gV = ku("File"), vV = ku("Blob"), _V = ku("FileList");
function kw(t) {
return bw.call(t) === "[object Function]";
}
function yV(t) {
return F3(t) && kw(t.pipe);
}
function bV(t) {
var e = "[object FormData]";
return t && (typeof FormData == "function" && t instanceof FormData || bw.call(t) === e || kw(t.toString) && t.toString() === e);
}
var wV = ku("URLSearchParams");
function xV(t) {
return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "");
}
function kV() {
return typeof navigator < "u" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS") ? !1 : typeof window < "u" && typeof document < "u";
}
function Sw(t, e) {
if (!(t === null || typeof t > "u"))
if (typeof t != "object" && (t = [t]), xw(t))
for (var n = 0, r = t.length; n < r; n++)
e.call(null, t[n], n, t);
else
for (var s in t)
Object.prototype.hasOwnProperty.call(t, s) && e.call(null, t[s], s, t);
}
function Eb() {
var t = {};
function e(s, i) {
Bg(t[i]) && Bg(s) ? t[i] = Eb(t[i], s) : Bg(s) ? t[i] = Eb({}, s) : xw(s) ? t[i] = s.slice() : t[i] = s;
}
for (var n = 0, r = arguments.length; n < r; n++)
Sw(arguments[n], e);
return t;
}
function SV(t, e, n) {
return Sw(e, function(s, i) {
n && typeof s == "function" ? t[i] = uV(s, n) : t[i] = s;
}), t;
}
function CV(t) {
return t.charCodeAt(0) === 65279 && (t = t.slice(1)), t;
}
function $V(t, e, n, r) {
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, n && Object.assign(t.prototype, n);
}
function EV(t, e, n) {
var r, s, i, o = {};
e = e || {};
do {
for (r = Object.getOwnPropertyNames(t), s = r.length; s-- > 0; )
i = r[s], o[i] || (e[i] = t[i], o[i] = !0);
t = Object.getPrototypeOf(t);
} while (t && (!n || n(t, e)) && t !== Object.prototype);
return e;
}
function TV(t, e, n) {
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
var r = t.indexOf(e, n);
return r !== -1 && r === n;
}
function MV(t) {
if (!t)
return null;
var e = t.length;
if (t0(e))
return null;
for (var n = new Array(e); e-- > 0; )
n[e] = t[e];
return n;
}
var IV = /* @__PURE__ */ function(t) {
return function(e) {
return t && e instanceof t;
};
}(typeof Uint8Array < "u" && Object.getPrototypeOf(Uint8Array)), gs = {
isArray: xw,
isArrayBuffer: R3,
isBuffer: dV,
isFormData: bV,
isArrayBufferView: hV,
isString: fV,
isNumber: pV,
isObject: F3,
isPlainObject: Bg,
isUndefined: t0,
isDate: mV,
isFile: gV,
isBlob: vV,
isFunction: kw,
isStream: yV,
isURLSearchParams: wV,
isStandardBrowserEnv: kV,
forEach: Sw,
merge: Eb,
extend: SV,
trim: xV,
stripBOM: CV,
inherits: $V,
toFlatObject: EV,
kindOf: ww,
kindOfTest: ku,
endsWith: TV,
toArray: MV,
isTypedArray: IV,
isFileList: _V
}, Ku = gs;
function FC(t) {
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
}
var V3 = function(e, n, r) {
if (!n)
return e;
var s;
if (r)
s = r(n);
else if (Ku.isURLSearchParams(n))
s = n.toString();
else {
var i = [];
Ku.forEach(n, function(l, c) {
l === null || typeof l > "u" || (Ku.isArray(l) ? c = c + "[]" : l = [l], Ku.forEach(l, function(h) {
Ku.isDate(h) ? h = h.toISOString() : Ku.isObject(h) && (h = JSON.stringify(h)), i.push(FC(c) + "=" + FC(h));
}));
}), s = i.join("&");
}
if (s) {
var o = e.indexOf(