@wishbone-media/spark 0.13.1 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,54 +1,54 @@
1
- import { computed as A, resolveComponent as U, createElementBlock as y, openBlock as g, normalizeClass as E, createElementVNode as f, createVNode as C, unref as x, renderSlot as M, reactive as ne, Fragment as ae, renderList as he, createCommentVNode as R, toDisplayString as L, createBlock as Z, resolveDynamicComponent as $e, ref as q, inject as on, provide as an, markRaw as vt, withCtx as $, mergeProps as _t, toHandlers as kt, createTextVNode as J, useSlots as ln, withModifiers as de, h as rt, onMounted as cn, watch as un } from "vue";
2
- import { library as Rt } from "@fortawesome/fontawesome-svg-core";
3
- import { FontAwesomeIcon as dn } from "@fortawesome/vue-fontawesome";
4
- import { faSignOut as fn, faXmark as pn, faTimes as hn, faStreetView as mn, faSortUp as gn, faSortDown as yn, faSort as wn, faScaleBalanced as bn, faSatelliteDish as xn, faLayerPlus as Sn, faLaptopMobile as Cn, faInfoCircle as vn, faGripDotsVertical as _n, faGearComplex as kn, faFlag as Rn, faFaceSmileWink as En, faFaceSmileRelaxed as $n, faExclamationTriangle as An, faEllipsisVertical as On, faEllipsis as Ln, faEdit as Tn, faComments as Hn, faCircleXmark as Fn, faCircleUser as Bn, faChevronUp as Vn, faChevronRight as Nn, faChevronLeft as Pn, faChevronDown as Mn, faCheckCircle as Un, faCheck as jn, faBullhorn as Dn, faBellRing as In, faBarsSort as zn, faArrowRightToLine as qn, faArrowLeftToLine as Zn } from "@fortawesome/pro-regular-svg-icons";
5
- import { defineStore as me } from "pinia";
6
- import { TransitionRoot as Et, Dialog as $t, TransitionChild as Ae, DialogPanel as At } from "@headlessui/vue";
7
- import { useRouter as se, useRoute as Le } from "vue-router";
1
+ import { computed as $, resolveComponent as U, createElementBlock as y, openBlock as g, normalizeClass as E, createElementVNode as f, createVNode as C, unref as x, renderSlot as M, reactive as ne, Fragment as ie, renderList as me, createCommentVNode as R, toDisplayString as L, createBlock as W, resolveDynamicComponent as $e, ref as q, inject as ln, provide as cn, markRaw as _t, withCtx as A, mergeProps as kt, toHandlers as Rt, createTextVNode as K, useSlots as un, withModifiers as fe, h as ot, onMounted as dn, watch as fn } from "vue";
2
+ import { library as Et } from "@fortawesome/fontawesome-svg-core";
3
+ import { FontAwesomeIcon as pn } from "@fortawesome/vue-fontawesome";
4
+ import { faSignOut as hn, faXmark as mn, faTimes as gn, faStreetView as yn, faSortUp as wn, faSortDown as bn, faSort as xn, faScaleBalanced as Sn, faSatelliteDish as Cn, faLayerPlus as vn, faLaptopMobile as _n, faInfoCircle as kn, faGripDotsVertical as Rn, faGearComplex as En, faFlag as An, faFaceSmileWink as $n, faFaceSmileRelaxed as On, faExclamationTriangle as Ln, faEllipsisVertical as Tn, faEllipsis as Hn, faEdit as Fn, faComments as Bn, faCircleXmark as Vn, faCircleUser as Nn, faChevronUp as Pn, faChevronRight as Mn, faChevronLeft as Un, faChevronDown as jn, faCheckCircle as Dn, faCheck as In, faBullhorn as zn, faBellRing as qn, faBarsSort as Zn, faArrowRightToLine as Wn, faArrowLeftToLine as Gn } from "@fortawesome/pro-regular-svg-icons";
5
+ import { defineStore as ge } from "pinia";
6
+ import { TransitionRoot as At, Dialog as $t, TransitionChild as Oe, DialogPanel as Ot } from "@headlessui/vue";
7
+ import { useRouter as se, useRoute as Te } from "vue-router";
8
8
  const B = {
9
- farArrowLeftToLine: Zn,
10
- farArrowRightToLine: qn,
11
- farBarsSort: zn,
12
- farBellRing: In,
13
- farBullhorn: Dn,
14
- farCheck: jn,
15
- farCheckCircle: Un,
16
- farChevronDown: Mn,
17
- farChevronLeft: Pn,
18
- farChevronRight: Nn,
19
- farChevronUp: Vn,
20
- farCircleUser: Bn,
21
- farCircleXmark: Fn,
22
- farComments: Hn,
23
- farEdit: Tn,
24
- farEllipsis: Ln,
25
- farEllipsisVertical: On,
26
- farExclamationTriangle: An,
27
- farFaceSmileRelaxed: $n,
28
- farFaceSmileWink: En,
29
- farFlag: Rn,
30
- farGearComplex: kn,
31
- farGripDotsVertical: _n,
32
- farInfoCircle: vn,
33
- farLaptopMobile: Cn,
34
- farLayerPlus: Sn,
35
- farSatelliteDish: xn,
36
- farScaleBalanced: bn,
37
- farSort: wn,
38
- farSortDown: yn,
39
- farSortUp: gn,
40
- farStreetView: mn,
41
- farTimes: hn,
42
- farXmark: pn,
43
- farSignOut: fn
9
+ farArrowLeftToLine: Gn,
10
+ farArrowRightToLine: Wn,
11
+ farBarsSort: Zn,
12
+ farBellRing: qn,
13
+ farBullhorn: zn,
14
+ farCheck: In,
15
+ farCheckCircle: Dn,
16
+ farChevronDown: jn,
17
+ farChevronLeft: Un,
18
+ farChevronRight: Mn,
19
+ farChevronUp: Pn,
20
+ farCircleUser: Nn,
21
+ farCircleXmark: Vn,
22
+ farComments: Bn,
23
+ farEdit: Fn,
24
+ farEllipsis: Hn,
25
+ farEllipsisVertical: Tn,
26
+ farExclamationTriangle: Ln,
27
+ farFaceSmileRelaxed: On,
28
+ farFaceSmileWink: $n,
29
+ farFlag: An,
30
+ farGearComplex: En,
31
+ farGripDotsVertical: Rn,
32
+ farInfoCircle: kn,
33
+ farLaptopMobile: _n,
34
+ farLayerPlus: vn,
35
+ farSatelliteDish: Cn,
36
+ farScaleBalanced: Sn,
37
+ farSort: xn,
38
+ farSortDown: bn,
39
+ farSortUp: wn,
40
+ farStreetView: yn,
41
+ farTimes: gn,
42
+ farXmark: mn,
43
+ farSignOut: hn
44
44
  };
45
- function ei(e) {
46
- Object.assign(B, e), Rt.add(...Object.values(e));
45
+ function ri(e) {
46
+ Object.assign(B, e), Et.add(...Object.values(e));
47
47
  }
48
- function ti(e) {
49
- Rt.add(...Object.values(B)), e.component("FontAwesomeIcon", dn);
48
+ function oi(e) {
49
+ Et.add(...Object.values(B)), e.component("FontAwesomeIcon", pn);
50
50
  }
51
- const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }, Jn = { class: "ml-3" }, Kn = { class: "ml-auto pl-3 pt-1 self-start" }, Xn = { class: "-mx-1.5 -my-1.5" }, ni = {
51
+ const Jn = { class: "flex items-center" }, Kn = { class: "shrink-0 self-start" }, Xn = { class: "ml-3" }, Yn = { class: "ml-auto pl-3 pt-1 self-start" }, Qn = { class: "-mx-1.5 -my-1.5" }, ai = {
52
52
  __name: "SparkAlert",
53
53
  props: {
54
54
  type: {
@@ -59,22 +59,22 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
59
59
  },
60
60
  emits: ["close"],
61
61
  setup(e) {
62
- const t = e, n = A(() => ({
62
+ const t = e, n = $(() => ({
63
63
  success: "bg-green-50 border-green-200 text-green-700",
64
64
  warning: "bg-yellow-50 border-yellow-200 text-yellow-700",
65
65
  danger: "bg-red-50 border-red-200 text-red-700",
66
66
  info: "bg-blue-50 border-blue-200 text-blue-700"
67
- })[t.type]), s = A(() => ({
67
+ })[t.type]), s = $(() => ({
68
68
  success: "text-green-400",
69
69
  warning: "text-yellow-400",
70
70
  danger: "text-red-400",
71
71
  info: "text-blue-400"
72
- })[t.type]), r = A(() => ({
72
+ })[t.type]), r = $(() => ({
73
73
  success: "farCheckCircle",
74
74
  warning: "farExclamationTriangle",
75
75
  danger: "farCircleXmark",
76
76
  info: "farInfoCircle"
77
- })[t.type]), o = A(() => ({
77
+ })[t.type]), o = $(() => ({
78
78
  success: "text-green-400 hover:bg-green-100",
79
79
  warning: "text-yellow-400 hover:bg-yellow-100",
80
80
  danger: "text-red-400 hover:bg-red-100",
@@ -85,18 +85,18 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
85
85
  return g(), y("div", {
86
86
  class: E(["rounded-md border p-4", n.value])
87
87
  }, [
88
- f("div", Wn, [
89
- f("div", Gn, [
88
+ f("div", Jn, [
89
+ f("div", Kn, [
90
90
  C(l, {
91
91
  icon: x(B)[r.value],
92
92
  class: E(s.value)
93
93
  }, null, 8, ["icon", "class"])
94
94
  ]),
95
- f("div", Jn, [
95
+ f("div", Xn, [
96
96
  M(a.$slots, "default")
97
97
  ]),
98
- f("div", Kn, [
99
- f("div", Xn, [
98
+ f("div", Yn, [
99
+ f("div", Qn, [
100
100
  f("button", {
101
101
  type: "button",
102
102
  class: E(["inline-flex rounded-md px-2 py-1.5", o.value]),
@@ -112,7 +112,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
112
112
  ], 2);
113
113
  };
114
114
  }
115
- }, Me = [
115
+ }, Ue = [
116
116
  {
117
117
  name: "3CX",
118
118
  description: "VOIP Phone",
@@ -155,9 +155,9 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
155
155
  href: "https://tabula.letsbolt.io",
156
156
  icon: "farCompass"
157
157
  }
158
- ], Ot = me("sparkAppSelector", () => {
158
+ ], Lt = ge("sparkAppSelector", () => {
159
159
  const e = ne({
160
- apps: [...Me]
160
+ apps: [...Ue]
161
161
  }), t = (o = {}) => {
162
162
  if (o.apps && Array.isArray(o.apps)) {
163
163
  const a = o.apps.filter((i) => {
@@ -176,7 +176,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
176
176
  const a = /* @__PURE__ */ new Map();
177
177
  Object.keys(o.appHrefs).forEach((i) => {
178
178
  a.set(i.toLowerCase(), o.appHrefs[i]);
179
- }), e.apps = Me.map((i) => {
179
+ }), e.apps = Ue.map((i) => {
180
180
  const l = a.get(i.name.toLowerCase());
181
181
  return {
182
182
  ...i,
@@ -185,8 +185,8 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
185
185
  });
186
186
  return;
187
187
  }
188
- e.apps = [...Me];
189
- }, n = A(() => e.apps), s = (o) => {
188
+ e.apps = [...Ue];
189
+ }, n = $(() => e.apps), s = (o) => {
190
190
  if (!o) return null;
191
191
  const a = o.toLowerCase();
192
192
  return e.apps.find((i) => i.name.toLowerCase() === a) || null;
@@ -201,7 +201,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
201
201
  return a ? a.icon : "";
202
202
  }
203
203
  };
204
- }), Lt = me("sparkApp", () => {
204
+ }), Tt = ge("sparkApp", () => {
205
205
  const e = ne({
206
206
  app: "",
207
207
  homeRoute: "dashboard",
@@ -214,16 +214,16 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
214
214
  e.app = n.app || "", e.homeRoute = n.homeRoute ?? "dashboard", e.showBrandSelector = n.showBrandSelector ?? !0, e.showAppSelector = n.showAppSelector ?? !0;
215
215
  }
216
216
  };
217
- }), Yn = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, Qn = { class: "flex flex-1 flex-col" }, es = { class: "divide-y divide-gray-200" }, ts = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, ns = { class: "ml-auto flex items-center" }, ss = ["href", "onClick"], rs = { class: "gap-y-1" }, os = { class: "text-base text-gray-800 flex items-center" }, as = { class: "font-medium" }, is = {
217
+ }), es = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, ts = { class: "flex flex-1 flex-col" }, ns = { class: "divide-y divide-gray-200" }, ss = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, rs = { class: "ml-auto flex items-center" }, os = ["href", "onClick"], as = { class: "gap-y-1" }, is = { class: "text-base text-gray-800 flex items-center" }, ls = { class: "font-medium" }, cs = {
218
218
  key: 0,
219
219
  class: "inline-flex items-center rounded-full bg-green-100 px-1.5 py-0.5 text-xs font-medium text-green-700 ml-1"
220
- }, ls = { class: "text-sm text-gray-500" }, cs = { class: "ml-auto flex items-center" }, us = { class: "mt-auto" }, ds = {
220
+ }, us = { class: "text-sm text-gray-500" }, ds = { class: "ml-auto flex items-center" }, fs = { class: "mt-auto" }, ps = {
221
221
  key: 0,
222
222
  class: "p-6"
223
- }, fs = {
223
+ }, hs = {
224
224
  key: 1,
225
225
  class: "bg-gray-50 p-6"
226
- }, ps = {
226
+ }, ms = {
227
227
  __name: "SparkAppSelector",
228
228
  props: {
229
229
  bottomSlot: {
@@ -237,7 +237,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
237
237
  },
238
238
  emits: ["close", "select"],
239
239
  setup(e, { emit: t }) {
240
- const n = t, s = Ot(), r = Lt(), o = A(() => {
240
+ const n = t, s = Lt(), r = Tt(), o = $(() => {
241
241
  const i = r.state.app;
242
242
  return s.state.apps.map((l) => ({
243
243
  ...l,
@@ -248,12 +248,12 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
248
248
  };
249
249
  return (i, l) => {
250
250
  const c = U("font-awesome-icon");
251
- return g(), y("div", Yn, [
252
- f("div", Qn, [
253
- f("div", es, [
254
- f("div", ts, [
251
+ return g(), y("div", es, [
252
+ f("div", ts, [
253
+ f("div", ns, [
254
+ f("div", ss, [
255
255
  l[1] || (l[1] = f("div", null, "Mr Group Network", -1)),
256
- f("div", ns, [
256
+ f("div", rs, [
257
257
  C(c, {
258
258
  icon: x(B).farTimes,
259
259
  class: "h-[15px] w-[15px] shrink-0 text-gray-400 cursor-pointer",
@@ -261,38 +261,38 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
261
261
  }, null, 8, ["icon"])
262
262
  ])
263
263
  ]),
264
- (g(!0), y(ae, null, he(o.value, (u) => (g(), y("a", {
264
+ (g(!0), y(ie, null, me(o.value, (u) => (g(), y("a", {
265
265
  key: u.name,
266
266
  href: u.href,
267
267
  target: "_blank",
268
268
  class: E([u.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
269
269
  onClick: (m) => u.current ? m.preventDefault() : a(u)
270
270
  }, [
271
- f("div", rs, [
272
- f("div", os, [
273
- f("div", as, L(u.name), 1),
274
- u.current ? (g(), y("span", is, " Active ")) : R("", !0)
271
+ f("div", as, [
272
+ f("div", is, [
273
+ f("div", ls, L(u.name), 1),
274
+ u.current ? (g(), y("span", cs, " Active ")) : R("", !0)
275
275
  ]),
276
- f("div", ls, L(u.description), 1)
276
+ f("div", us, L(u.description), 1)
277
277
  ]),
278
- f("div", cs, [
278
+ f("div", ds, [
279
279
  C(c, {
280
280
  class: E([u.current ? "text-gray-700" : "text-gray-400", "h-5 w-5 shrink-0"]),
281
281
  icon: x(B)[u.icon]
282
282
  }, null, 8, ["class", "icon"])
283
283
  ])
284
- ], 10, ss))), 128)),
284
+ ], 10, os))), 128)),
285
285
  l[2] || (l[2] = f("div", null, null, -1))
286
286
  ]),
287
- f("div", us, [
288
- i.$slots.bottom || e.bottomSlot ? (g(), y("div", ds, [
287
+ f("div", fs, [
288
+ i.$slots.bottom || e.bottomSlot ? (g(), y("div", ps, [
289
289
  M(i.$slots, "bottom", {}, () => [
290
- e.bottomSlot ? (g(), Z($e(e.bottomSlot), { key: 0 })) : R("", !0)
290
+ e.bottomSlot ? (g(), W($e(e.bottomSlot), { key: 0 })) : R("", !0)
291
291
  ])
292
292
  ])) : R("", !0),
293
- i.$slots.footer || e.footerSlot ? (g(), y("div", fs, [
293
+ i.$slots.footer || e.footerSlot ? (g(), y("div", hs, [
294
294
  M(i.$slots, "footer", {}, () => [
295
- e.footerSlot ? (g(), Z($e(e.footerSlot), { key: 0 })) : R("", !0)
295
+ e.footerSlot ? (g(), W($e(e.footerSlot), { key: 0 })) : R("", !0)
296
296
  ])
297
297
  ])) : R("", !0)
298
298
  ])
@@ -300,7 +300,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
300
300
  ]);
301
301
  };
302
302
  }
303
- }, Tt = me(
303
+ }, Ht = ge(
304
304
  "brandFilter",
305
305
  () => {
306
306
  const e = ne({
@@ -322,7 +322,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
322
322
  logo: l.logo,
323
323
  current: l.current || !1
324
324
  }));
325
- }, n = A(() => e.brands.find((o) => o.current) || null), s = A(() => e.brands);
325
+ }, n = $(() => e.brands.find((o) => o.current) || null), s = $(() => e.brands);
326
326
  return {
327
327
  state: e,
328
328
  initialize: t,
@@ -344,27 +344,27 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
344
344
  paths: ["state.brands"]
345
345
  }
346
346
  }
347
- ), hs = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, ms = { class: "flex flex-1 flex-col" }, gs = { class: "divide-y divide-gray-200" }, ys = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, ws = { class: "ml-auto flex items-center" }, bs = {
347
+ ), gs = { class: "flex grow flex-col gap-y-5 overflow-y-auto bg-white rounded-lg" }, ys = { class: "flex flex-1 flex-col" }, ws = { class: "divide-y divide-gray-200" }, bs = { class: "flex px-[22px] py-2.5 text-[12px] items-center" }, xs = { class: "ml-auto flex items-center" }, Ss = {
348
348
  key: 0,
349
349
  class: "flex px-[22px] py-[15px] text-gray-500 text-sm"
350
- }, xs = ["onClick"], Ss = { class: "gap-y-1 flex" }, Cs = { class: "flex items-center mr-4" }, vs = ["src", "alt"], _s = { class: "ml-auto flex flex-col" }, ks = { class: "text-base text-gray-800 flex items-center" }, Rs = { class: "font-medium" }, Es = {
350
+ }, Cs = ["onClick"], vs = { class: "gap-y-1 flex" }, _s = { class: "flex items-center mr-4" }, ks = ["src", "alt"], Rs = { class: "ml-auto flex flex-col" }, Es = { class: "text-base text-gray-800 flex items-center" }, As = { class: "font-medium" }, $s = {
351
351
  key: 0,
352
352
  class: "inline-flex items-center rounded-full bg-green-100 px-1.5 py-0.5 text-xs font-medium text-green-700 ml-1"
353
- }, $s = { class: "text-sm text-gray-500" }, As = {
353
+ }, Os = { class: "text-sm text-gray-500" }, Ls = {
354
354
  __name: "SparkBrandSelector",
355
355
  emits: ["close", "select"],
356
356
  setup(e, { emit: t }) {
357
- const n = t, s = Tt(), r = (o) => {
357
+ const n = t, s = Ht(), r = (o) => {
358
358
  n("select", o);
359
359
  };
360
360
  return (o, a) => {
361
361
  const i = U("font-awesome-icon");
362
- return g(), y("div", hs, [
363
- f("div", ms, [
364
- f("div", gs, [
365
- f("div", ys, [
362
+ return g(), y("div", gs, [
363
+ f("div", ys, [
364
+ f("div", ws, [
365
+ f("div", bs, [
366
366
  a[1] || (a[1] = f("div", null, "Filter by Brand", -1)),
367
- f("div", ws, [
367
+ f("div", xs, [
368
368
  C(i, {
369
369
  icon: x(B).farTimes,
370
370
  class: "size-4 text-gray-400 cursor-pointer",
@@ -372,29 +372,29 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
372
372
  }, null, 8, ["icon"])
373
373
  ])
374
374
  ]),
375
- x(s).allBrands.length === 0 ? (g(), y("div", bs, " No brands configured ")) : R("", !0),
376
- (g(!0), y(ae, null, he(x(s).allBrands, (l) => (g(), y("div", {
375
+ x(s).allBrands.length === 0 ? (g(), y("div", Ss, " No brands configured ")) : R("", !0),
376
+ (g(!0), y(ie, null, me(x(s).allBrands, (l) => (g(), y("div", {
377
377
  key: l.id,
378
378
  class: E([l.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
379
379
  onClick: (c) => r(l)
380
380
  }, [
381
- f("div", Ss, [
382
- f("div", Cs, [
381
+ f("div", vs, [
382
+ f("div", _s, [
383
383
  f("img", {
384
384
  src: l.logo,
385
385
  alt: `${l.name} logo`,
386
386
  class: "h-8 w-auto"
387
- }, null, 8, vs)
387
+ }, null, 8, ks)
388
388
  ]),
389
- f("div", _s, [
390
- f("div", ks, [
391
- f("div", Rs, L(l.name), 1),
392
- l.current ? (g(), y("span", Es, " Current ")) : R("", !0)
389
+ f("div", Rs, [
390
+ f("div", Es, [
391
+ f("div", As, L(l.name), 1),
392
+ l.current ? (g(), y("span", $s, " Current ")) : R("", !0)
393
393
  ]),
394
- f("div", $s, L(l.current ? "Current Brand" : "Change to"), 1)
394
+ f("div", Os, L(l.current ? "Current Brand" : "Change to"), 1)
395
395
  ])
396
396
  ])
397
- ], 10, xs))), 128)),
397
+ ], 10, Cs))), 128)),
398
398
  a[2] || (a[2] = f("div", null, null, -1))
399
399
  ]),
400
400
  a[3] || (a[3] = f("div", { class: "mt-auto" }, null, -1))
@@ -402,7 +402,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
402
402
  ]);
403
403
  };
404
404
  }
405
- }, Os = ["disabled"], re = {
405
+ }, Ts = ["disabled"], re = {
406
406
  __name: "SparkButton",
407
407
  props: {
408
408
  size: {
@@ -424,7 +424,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
424
424
  }
425
425
  },
426
426
  setup(e) {
427
- const t = e, n = q(null), s = on("buttonGroup", null), r = A(() => {
427
+ const t = e, n = q(null), s = ln("buttonGroup", null), r = $(() => {
428
428
  if (!s?.isInGroup || !n.value) return null;
429
429
  const l = s.getButtonIndex(n.value), c = s.getButtonCount();
430
430
  return {
@@ -454,7 +454,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
454
454
  )?.[0];
455
455
  return b && b === h;
456
456
  })), ...m].join(" ");
457
- }, i = A(() => {
457
+ }, i = $(() => {
458
458
  let l = "", c = "";
459
459
  switch (t.size) {
460
460
  case "xs":
@@ -511,13 +511,13 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
511
511
  onClick: c[0] || (c[0] = (u) => l.$emit("click"))
512
512
  }, [
513
513
  M(l.$slots, "default")
514
- ], 10, Os));
514
+ ], 10, Ts));
515
515
  }
516
- }, si = {
516
+ }, ii = {
517
517
  __name: "SparkButtonGroup",
518
518
  setup(e) {
519
519
  const t = q(null);
520
- return an("buttonGroup", {
520
+ return cn("buttonGroup", {
521
521
  isInGroup: !0,
522
522
  getButtonIndex: (r) => t.value ? Array.from(t.value.children).indexOf(r) : -1,
523
523
  getButtonCount: () => t.value?.children.length || 0
@@ -529,13 +529,13 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
529
529
  M(r.$slots, "default")
530
530
  ], 512));
531
531
  }
532
- }, Ls = { class: "divide-y divide-gray-300 rounded-lg border border-gray-300 text-gray-700 bg-gray-100" }, Ts = {
532
+ }, Hs = { class: "divide-y divide-gray-300 rounded-lg border border-gray-300 text-gray-700 bg-gray-100" }, Fs = {
533
533
  key: 0,
534
534
  class: "p-5"
535
- }, Hs = {
535
+ }, Bs = {
536
536
  key: 1,
537
537
  class: "p-5"
538
- }, ri = {
538
+ }, li = {
539
539
  __name: "SparkCard",
540
540
  props: {
541
541
  padded: {
@@ -549,8 +549,8 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
549
549
  },
550
550
  setup(e) {
551
551
  const t = e;
552
- return (n, s) => (g(), y("div", Ls, [
553
- n.$slots.header ? (g(), y("div", Ts, [
552
+ return (n, s) => (g(), y("div", Hs, [
553
+ n.$slots.header ? (g(), y("div", Fs, [
554
554
  M(n.$slots, "header")
555
555
  ])) : R("", !0),
556
556
  f("div", {
@@ -558,13 +558,13 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
558
558
  }, [
559
559
  M(n.$slots, "default")
560
560
  ], 2),
561
- n.$slots.footer ? (g(), y("div", Hs, [
561
+ n.$slots.footer ? (g(), y("div", Bs, [
562
562
  M(n.$slots, "footer")
563
563
  ])) : R("", !0)
564
564
  ]));
565
565
  }
566
566
  };
567
- class Fs {
567
+ class Vs {
568
568
  constructor() {
569
569
  this.state = ne({
570
570
  isVisible: !1,
@@ -574,26 +574,26 @@ class Fs {
574
574
  });
575
575
  }
576
576
  show = (t, n = {}, s = {}) => {
577
- this.state.content = vt(t), this.state.props = n, this.state.eventHandlers = s, this.state.isVisible = !0;
577
+ this.state.content = _t(t), this.state.props = n, this.state.eventHandlers = s, this.state.isVisible = !0;
578
578
  };
579
579
  hide = () => {
580
580
  this.state.isVisible = !1, this.state.eventHandlers = {};
581
581
  };
582
582
  }
583
- const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto" }, Vs = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, Ns = {
583
+ const pe = new Vs(), Ns = { class: "fixed inset-0 z-10 w-screen overflow-y-auto" }, Ps = { class: "flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0" }, Ms = {
584
584
  __name: "SparkModalContainer",
585
585
  setup(e) {
586
- return (t, n) => (g(), Z(x(Et), {
586
+ return (t, n) => (g(), W(x(At), {
587
587
  as: "template",
588
- show: x(fe).state.isVisible
588
+ show: x(pe).state.isVisible
589
589
  }, {
590
- default: $(() => [
590
+ default: A(() => [
591
591
  C(x($t), {
592
592
  class: "relative z-200",
593
- onClose: x(fe).hide
593
+ onClose: x(pe).hide
594
594
  }, {
595
- default: $(() => [
596
- C(x(Ae), {
595
+ default: A(() => [
596
+ C(x(Oe), {
597
597
  as: "template",
598
598
  enter: "ease-out duration-300",
599
599
  "enter-from": "opacity-0",
@@ -602,14 +602,14 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
602
602
  "leave-from": "opacity-100",
603
603
  "leave-to": "opacity-0"
604
604
  }, {
605
- default: $(() => [...n[0] || (n[0] = [
605
+ default: A(() => [...n[0] || (n[0] = [
606
606
  f("div", { class: "fixed inset-0 bg-gray-500/75 transition-opacity" }, null, -1)
607
607
  ])]),
608
608
  _: 1
609
609
  }),
610
- f("div", Bs, [
611
- f("div", Vs, [
612
- C(x(Ae), {
610
+ f("div", Ns, [
611
+ f("div", Ps, [
612
+ C(x(Oe), {
613
613
  as: "template",
614
614
  enter: "ease-out duration-300",
615
615
  "enter-from": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
@@ -618,10 +618,10 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
618
618
  "leave-from": "opacity-100 translate-y-0 sm:scale-100",
619
619
  "leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
620
620
  }, {
621
- default: $(() => [
622
- C(x(At), { class: "relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full sm:min-w-lg sm:max-w-max" }, {
623
- default: $(() => [
624
- (g(), Z($e(x(fe).state.content), _t(x(fe).state.props, kt(x(fe).state.eventHandlers)), null, 16))
621
+ default: A(() => [
622
+ C(x(Ot), { class: "relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 sm:w-full sm:min-w-lg sm:max-w-max" }, {
623
+ default: A(() => [
624
+ (g(), W($e(x(pe).state.content), kt(x(pe).state.props, Rt(x(pe).state.eventHandlers)), null, 16))
625
625
  ]),
626
626
  _: 1
627
627
  })
@@ -637,10 +637,10 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
637
637
  _: 1
638
638
  }, 8, ["show"]));
639
639
  }
640
- }, Ps = { class: "px-4 pt-5 pb-4 sm:p-6" }, Ms = {
640
+ }, Us = { class: "px-4 pt-5 pb-4 sm:p-6" }, js = {
641
641
  key: 0,
642
642
  class: "text-lg font-medium text-gray-900"
643
- }, oi = {
643
+ }, ci = {
644
644
  __name: "SparkModalDialog",
645
645
  props: {
646
646
  title: {
@@ -690,7 +690,7 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
690
690
  "input"
691
691
  ],
692
692
  setup(e) {
693
- const t = e, n = A(() => !t.buttons || t.buttons.length === 0 ? [{ text: "OK", variant: "primary", event: "ok" }] : t.buttons), s = A(() => {
693
+ const t = e, n = $(() => !t.buttons || t.buttons.length === 0 ? [{ text: "OK", variant: "primary", event: "ok" }] : t.buttons), s = $(() => {
694
694
  switch (n.value.length) {
695
695
  case 1:
696
696
  return "sm:grid sm:grid-flow-row-dense";
@@ -706,12 +706,12 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
706
706
  success: "farCheckCircle",
707
707
  warning: "farExclamationTriangle",
708
708
  danger: "farCircleXmark"
709
- }, o = A(() => t.icon || r[t.type]), a = A(() => ({
709
+ }, o = $(() => t.icon || r[t.type]), a = $(() => ({
710
710
  info: "bg-blue-100",
711
711
  success: "bg-green-100",
712
712
  warning: "bg-yellow-100",
713
713
  danger: "bg-red-100"
714
- })[t.type]), i = A(() => ({
714
+ })[t.type]), i = $(() => ({
715
715
  info: "text-blue-400",
716
716
  success: "text-green-400",
717
717
  warning: "text-yellow-400",
@@ -719,7 +719,7 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
719
719
  })[t.type]);
720
720
  return (l, c) => {
721
721
  const u = U("font-awesome-icon");
722
- return g(), y("div", Ps, [
722
+ return g(), y("div", Us, [
723
723
  o.value ? (g(), y("div", {
724
724
  key: 0,
725
725
  class: E(["mx-auto flex size-12 items-center justify-center rounded-full", a.value])
@@ -732,7 +732,7 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
732
732
  f("div", {
733
733
  class: E(["text-center", { "mt-3 sm:mt-5": o.value }])
734
734
  }, [
735
- e.title ? (g(), y("h3", Ms, L(e.title), 1)) : R("", !0),
735
+ e.title ? (g(), y("h3", js, L(e.title), 1)) : R("", !0),
736
736
  e.message ? (g(), y("div", {
737
737
  key: 1,
738
738
  class: E([{ "mt-2": e.title }, "text-sm text-gray-500"])
@@ -741,13 +741,13 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
741
741
  f("div", {
742
742
  class: E(["mt-5 sm:mt-6", s.value])
743
743
  }, [
744
- (g(!0), y(ae, null, he(n.value, (m, w) => (g(), Z(x(re), {
744
+ (g(!0), y(ie, null, me(n.value, (m, w) => (g(), W(x(re), {
745
745
  key: w,
746
746
  variant: m.variant,
747
747
  onClick: (v) => l.$emit(m.event, m)
748
748
  }, {
749
- default: $(() => [
750
- J(L(m.text), 1)
749
+ default: A(() => [
750
+ K(L(m.text), 1)
751
751
  ]),
752
752
  _: 2
753
753
  }, 1032, ["variant", "onClick"]))), 128))
@@ -755,7 +755,7 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
755
755
  ]);
756
756
  };
757
757
  }
758
- }, Us = { class: "fixed inset-0 flex" }, ot = {
758
+ }, Ds = { class: "fixed inset-0 flex" }, at = {
759
759
  __name: "SparkOverlay",
760
760
  props: {
761
761
  position: {
@@ -773,18 +773,18 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
773
773
  const n = q(null), s = e, r = t, o = () => {
774
774
  s.overlayInstance.close(), r("close");
775
775
  };
776
- return (a, i) => (g(), Z(x(Et), {
776
+ return (a, i) => (g(), W(x(At), {
777
777
  show: e.overlayInstance.state.isVisible,
778
778
  as: "template"
779
779
  }, {
780
- default: $(() => [
780
+ default: A(() => [
781
781
  C(x($t), {
782
782
  initialFocus: n.value,
783
783
  class: "relative z-200",
784
784
  onClose: o
785
785
  }, {
786
- default: $(() => [
787
- C(x(Ae), {
786
+ default: A(() => [
787
+ C(x(Oe), {
788
788
  as: "template",
789
789
  enter: "transition-opacity ease-linear duration-150",
790
790
  "enter-from": "opacity-0",
@@ -793,13 +793,13 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
793
793
  "leave-from": "opacity-100",
794
794
  "leave-to": "opacity-0"
795
795
  }, {
796
- default: $(() => [...i[0] || (i[0] = [
796
+ default: A(() => [...i[0] || (i[0] = [
797
797
  f("div", { class: "fixed inset-0 bg-gray-600/30" }, null, -1)
798
798
  ])]),
799
799
  _: 1
800
800
  }),
801
- f("div", Us, [
802
- C(x(Ae), {
801
+ f("div", Ds, [
802
+ C(x(Oe), {
803
803
  as: "template",
804
804
  enter: "transition ease-in-out duration-150 transform",
805
805
  "enter-from": e.position === "left" ? "-translate-x-full opacity-0" : "translate-x-full opacity-0",
@@ -808,8 +808,8 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
808
808
  "leave-from": "translate-x-0 opacity-100",
809
809
  "leave-to": e.position === "left" ? "-translate-x-full opacity-0" : "translate-x-full opacity-0"
810
810
  }, {
811
- default: $(() => [
812
- C(x(At), {
811
+ default: A(() => [
812
+ C(x(Ot), {
813
813
  ref_key: "panelRef",
814
814
  ref: n,
815
815
  class: E([
@@ -817,8 +817,8 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
817
817
  e.position === "left" ? "relative left-[10px]" : "absolute right-[10px] h-full"
818
818
  ])
819
819
  }, {
820
- default: $(() => [
821
- (g(), Z($e(e.overlayInstance.state.content), _t(e.overlayInstance.state.props, kt(e.overlayInstance.state.eventHandlers)), null, 16))
820
+ default: A(() => [
821
+ (g(), W($e(e.overlayInstance.state.content), kt(e.overlayInstance.state.props, Rt(e.overlayInstance.state.eventHandlers)), null, 16))
822
822
  ]),
823
823
  _: 1
824
824
  }, 8, ["class"])
@@ -834,7 +834,7 @@ const fe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
834
834
  }, 8, ["show"]));
835
835
  }
836
836
  };
837
- function at() {
837
+ function it() {
838
838
  const e = ne({
839
839
  isVisible: !1,
840
840
  content: null,
@@ -847,7 +847,7 @@ function at() {
847
847
  }, s = () => {
848
848
  e.isVisible = !0;
849
849
  }, r = (a, i = {}, l = {}) => {
850
- e.content = vt(a), e.props = i, e.eventHandlers = l;
850
+ e.content = _t(a), e.props = i, e.eventHandlers = l;
851
851
  };
852
852
  return {
853
853
  state: e,
@@ -860,9 +860,9 @@ function at() {
860
860
  }
861
861
  };
862
862
  }
863
- class js {
863
+ class Is {
864
864
  constructor() {
865
- this.left = at(), this.right = at();
865
+ this.left = it(), this.right = it();
866
866
  }
867
867
  showLeft = (t, n = {}, s = {}) => {
868
868
  const r = {
@@ -892,22 +892,22 @@ class js {
892
892
  this.left.close(), this.right.close();
893
893
  };
894
894
  }
895
- const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is = { class: "flex flex-1 flex-col" }, zs = {
895
+ const _e = new Is(), zs = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, qs = { class: "flex flex-1 flex-col" }, Zs = {
896
896
  class: "flex flex-1 flex-col gap-y-7",
897
897
  role: "list"
898
- }, qs = { class: "flex flex-1 flex-col" }, Zs = {
898
+ }, Ws = { class: "flex flex-1 flex-col" }, Gs = {
899
899
  role: "list",
900
900
  class: "flex flex-1 flex-col"
901
- }, Ws = { class: "flex items-center pb-8" }, Gs = ["href", "onClick"], Js = {
901
+ }, Js = { class: "flex items-center pb-8" }, Ks = ["href", "onClick"], Xs = {
902
902
  key: 2,
903
903
  class: "w-full flex justify-center"
904
- }, Ks = {
904
+ }, Ys = {
905
905
  key: 0,
906
906
  class: "mt-[5px] flex flex-col gap-[5px]"
907
- }, Xs = ["href", "onClick"], Ys = {
907
+ }, Qs = ["href", "onClick"], er = {
908
908
  key: 1,
909
909
  class: "text-[13px]"
910
- }, Qs = { class: "mt-auto" }, er = { class: "p-[10px] flex-shrink-0" }, tr = { class: "flex flex-1 items-center gap-x-6" }, nr = { class: "relative flex flex-1 items-center gap-4" }, sr = { class: "cursor-pointer" }, rr = ["src"], or = { class: "ml-auto" }, ar = { class: "mr-[10px] pb-[10px] flex-1 flex flex-col" }, ai = {
910
+ }, tr = { class: "mt-auto" }, nr = { class: "p-[10px] flex-shrink-0" }, sr = { class: "flex flex-1 items-center gap-x-6" }, rr = { class: "relative flex flex-1 items-center gap-4" }, or = { class: "cursor-pointer" }, ar = ["src"], ir = { class: "ml-auto" }, lr = { class: "mr-[10px] pb-[10px] flex-1 flex flex-col" }, ui = {
911
911
  __name: "SparkDefaultContainer",
912
912
  props: {
913
913
  appStore: {
@@ -925,12 +925,12 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
925
925
  },
926
926
  emits: ["overlayClose"],
927
927
  setup(e, { emit: t }) {
928
- const n = e, s = t, r = ln(), o = Tt(), a = Ot(), i = A(() => a.getAppIcon(n.appStore.state.app)), l = () => {
928
+ const n = e, s = t, r = un(), o = Ht(), a = Lt(), i = $(() => a.getAppIcon(n.appStore.state.app)), l = () => {
929
929
  const w = {};
930
- r["app-selector-bottom"] ? w.bottomSlot = () => rt("div", {}, r["app-selector-bottom"]()) : n.appSelectorSlots.bottomSlot && (w.bottomSlot = n.appSelectorSlots.bottomSlot), r["app-selector-footer"] ? w.footerSlot = () => rt("div", {}, r["app-selector-footer"]()) : n.appSelectorSlots.footerSlot && (w.footerSlot = n.appSelectorSlots.footerSlot), ve.showRight(ps, w);
930
+ r["app-selector-bottom"] ? w.bottomSlot = () => ot("div", {}, r["app-selector-bottom"]()) : n.appSelectorSlots.bottomSlot && (w.bottomSlot = n.appSelectorSlots.bottomSlot), r["app-selector-footer"] ? w.footerSlot = () => ot("div", {}, r["app-selector-footer"]()) : n.appSelectorSlots.footerSlot && (w.footerSlot = n.appSelectorSlots.footerSlot), _e.showRight(ms, w);
931
931
  }, c = () => {
932
- ve.showLeft(
933
- As,
932
+ _e.showLeft(
933
+ Ls,
934
934
  {},
935
935
  {
936
936
  select: (w) => {
@@ -938,22 +938,22 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
938
938
  }
939
939
  }
940
940
  );
941
- }, u = A(() => n.mainNavStore.state.hidden ? ["w-0 overflow-hidden"] : [n.mainNavStore.state.collapsed ? "w-[80px]" : "w-[240px]"]), m = A(() => n.mainNavStore.state.hidden ? ["pl-2.5"] : [n.mainNavStore.state.collapsed ? "pl-[80px]" : "pl-[240px]"]);
941
+ }, u = $(() => n.mainNavStore.state.hidden ? ["w-0 overflow-hidden"] : [n.mainNavStore.state.collapsed ? "w-[80px]" : "w-[240px]"]), m = $(() => n.mainNavStore.state.hidden ? ["pl-2.5"] : [n.mainNavStore.state.collapsed ? "pl-[80px]" : "pl-[240px]"]);
942
942
  return (w, v) => {
943
943
  const p = U("font-awesome-icon"), b = U("router-view");
944
- return g(), y(ae, null, [
944
+ return g(), y(ie, null, [
945
945
  f("div", {
946
946
  class: E([u.value, "fixed inset-y-0 flex transition-all z-100"])
947
947
  }, [
948
- f("div", Ds, [
949
- f("nav", Is, [
950
- f("ul", zs, [
951
- f("li", qs, [
952
- f("ul", Zs, [
953
- f("li", Ws, [
948
+ f("div", zs, [
949
+ f("nav", qs, [
950
+ f("ul", Zs, [
951
+ f("li", Ws, [
952
+ f("ul", Gs, [
953
+ f("li", Js, [
954
954
  f("a", {
955
955
  class: "grid w-[40px] h-[40px] place-items-center rounded-md bg-primary-600 text-white text-[13px] cursor-pointer",
956
- onClick: v[0] || (v[0] = de((h) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
956
+ onClick: v[0] || (v[0] = fe((h) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
957
957
  }, [
958
958
  C(p, {
959
959
  icon: x(B)[i.value],
@@ -962,11 +962,11 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
962
962
  ]),
963
963
  e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("a", {
964
964
  key: 0,
965
- onClick: v[1] || (v[1] = de((h) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"])),
965
+ onClick: v[1] || (v[1] = fe((h) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"])),
966
966
  class: "font-medium text-gray-800 ml-[10px] cursor-pointer"
967
967
  }, L(e.appStore.state.app), 1))
968
968
  ]),
969
- (g(!0), y(ae, null, he(e.mainNavStore.state.menu, (h) => (g(), y("li", {
969
+ (g(!0), y(ie, null, me(e.mainNavStore.state.menu, (h) => (g(), y("li", {
970
970
  key: h.name,
971
971
  class: E({
972
972
  "mt-[10px]": h.children,
@@ -979,14 +979,14 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
979
979
  "hover:bg-gray-100": h?.href
980
980
  }, "h-[37px] sgroup flex items-center gap-x-2 rounded-md p-3 text-gray-800 leading-5 transition-all duration-300 ease-in-out"]),
981
981
  href: h?.href,
982
- onClick: de((_) => e.mainNavStore.goto(h.href), ["prevent"])
982
+ onClick: fe((_) => e.mainNavStore.goto(h.href), ["prevent"])
983
983
  }, [
984
- h.icon ? (g(), Z(p, {
984
+ h.icon ? (g(), W(p, {
985
985
  key: 0,
986
986
  icon: x(B)[h.icon],
987
987
  class: E([[(h.current, "text-gray-400")], "size-4"])
988
988
  }, null, 8, ["icon", "class"])) : R("", !0),
989
- e.mainNavStore.state.collapsed ? h?.children ? (g(), y("div", Js, [...v[6] || (v[6] = [
989
+ e.mainNavStore.state.collapsed ? h?.children ? (g(), y("div", Xs, [...v[6] || (v[6] = [
990
990
  f("div", { class: "w-[10px] h-px bg-gray-400" }, null, -1)
991
991
  ])])) : R("", !0) : (g(), y("span", {
992
992
  key: 1,
@@ -997,34 +997,34 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
997
997
  "text-gray-500": h?.children
998
998
  })
999
999
  }, L(h.name), 3))
1000
- ], 10, Gs),
1001
- h.children ? (g(), y("ul", Ks, [
1002
- (g(!0), y(ae, null, he(h.children, (_) => (g(), y("li", {
1000
+ ], 10, Ks),
1001
+ h.children ? (g(), y("ul", Ys, [
1002
+ (g(!0), y(ie, null, me(h.children, (_) => (g(), y("li", {
1003
1003
  key: _.name
1004
1004
  }, [
1005
1005
  f("a", {
1006
1006
  class: E([[_.current ? "bg-gray-100" : "", "hover:bg-gray-100"], "h-[37px] sgroup flex items-center gap-x-2 rounded-md p-3 text-gray-800 leading-5 transition-all duration-300 ease-in-out"]),
1007
1007
  href: _.href,
1008
- onClick: de((T) => e.mainNavStore.goto(_.href), ["prevent"])
1008
+ onClick: fe((T) => e.mainNavStore.goto(_.href), ["prevent"])
1009
1009
  }, [
1010
- _.icon ? (g(), Z(p, {
1010
+ _.icon ? (g(), W(p, {
1011
1011
  key: 0,
1012
1012
  icon: x(B)[_.icon],
1013
1013
  class: E([[(_.current, "text-gray-400")], "size-4"])
1014
1014
  }, null, 8, ["icon", "class"])) : R("", !0),
1015
- e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("span", Ys, L(_.name), 1))
1016
- ], 10, Xs)
1015
+ e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("span", er, L(_.name), 1))
1016
+ ], 10, Qs)
1017
1017
  ]))), 128))
1018
1018
  ])) : R("", !0)
1019
1019
  ], 2))), 128))
1020
1020
  ])
1021
1021
  ]),
1022
- f("li", Qs, [
1022
+ f("li", tr, [
1023
1023
  M(w.$slots, "sidebar-footer"),
1024
1024
  f("a", {
1025
1025
  class: "font-medium grid place-content-center gap-x-3 rounded-md h-10 p-2.5 text-gray-800 text-[13px] hover:bg-gray-100 transition-all duration-300 ease-in-out",
1026
1026
  href: "#",
1027
- onClick: v[2] || (v[2] = de((h) => e.mainNavStore.toggleCollapsed(), ["prevent"]))
1027
+ onClick: v[2] || (v[2] = fe((h) => e.mainNavStore.toggleCollapsed(), ["prevent"]))
1028
1028
  }, [
1029
1029
  C(p, {
1030
1030
  icon: x(B)[e.mainNavStore.state.collapsed ? "farArrowRightToLine" : "farArrowLeftToLine"],
@@ -1039,11 +1039,11 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
1039
1039
  f("div", {
1040
1040
  class: E([m.value, "h-full transition-all flex flex-col"])
1041
1041
  }, [
1042
- f("div", er, [
1043
- f("div", tr, [
1044
- f("div", nr, [
1042
+ f("div", nr, [
1043
+ f("div", sr, [
1044
+ f("div", rr, [
1045
1045
  M(w.$slots, "header-left", {}, () => [
1046
- f("div", sr, [
1046
+ f("div", or, [
1047
1047
  C(p, {
1048
1048
  icon: x(B).farBarsSort,
1049
1049
  class: "size-5",
@@ -1062,10 +1062,10 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
1062
1062
  src: x(o).currentBrand.logo,
1063
1063
  alt: "",
1064
1064
  class: "h-[30px] w-auto"
1065
- }, null, 8, rr)) : R("", !0)
1065
+ }, null, 8, ar)) : R("", !0)
1066
1066
  ])) : R("", !0)
1067
1067
  ]),
1068
- f("div", or, [
1068
+ f("div", ir, [
1069
1069
  M(w.$slots, "header-right", {}, () => [
1070
1070
  e.appStore.state.showAppSelector ? (g(), y("button", {
1071
1071
  key: 0,
@@ -1083,81 +1083,81 @@ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
1083
1083
  ])
1084
1084
  ])
1085
1085
  ]),
1086
- f("main", ar, [
1086
+ f("main", lr, [
1087
1087
  C(b)
1088
1088
  ])
1089
1089
  ], 2),
1090
- C(x(ot), {
1090
+ C(x(at), {
1091
1091
  position: "left",
1092
- "overlay-instance": x(ve).left,
1092
+ "overlay-instance": x(_e).left,
1093
1093
  onClose: v[4] || (v[4] = (h) => s("overlayClose", "left"))
1094
1094
  }, null, 8, ["overlay-instance"]),
1095
- C(x(ot), {
1095
+ C(x(at), {
1096
1096
  position: "right",
1097
- "overlay-instance": x(ve).right,
1097
+ "overlay-instance": x(_e).right,
1098
1098
  onClose: v[5] || (v[5] = (h) => s("overlayClose", "right"))
1099
1099
  }, null, 8, ["overlay-instance"]),
1100
- C(x(Ns))
1100
+ C(x(Ms))
1101
1101
  ], 64);
1102
1102
  };
1103
1103
  }
1104
- }, ir = (e, t) => {
1104
+ }, cr = (e, t) => {
1105
1105
  const n = e.__vccOpts || e;
1106
1106
  for (const [s, r] of t)
1107
1107
  n[s] = r;
1108
1108
  return n;
1109
- }, lr = {}, cr = { class: "h-full" };
1110
- function ur(e, t) {
1109
+ }, ur = {}, dr = { class: "h-full" };
1110
+ function fr(e, t) {
1111
1111
  const n = U("router-view");
1112
- return g(), y("main", cr, [
1112
+ return g(), y("main", dr, [
1113
1113
  C(n)
1114
1114
  ]);
1115
1115
  }
1116
- const ii = /* @__PURE__ */ ir(lr, [["render", ur]]);
1117
- function Ht(e, t) {
1116
+ const di = /* @__PURE__ */ cr(ur, [["render", fr]]);
1117
+ function Ft(e, t) {
1118
1118
  return function() {
1119
1119
  return e.apply(t, arguments);
1120
1120
  };
1121
1121
  }
1122
- const { toString: dr } = Object.prototype, { getPrototypeOf: Ge } = Object, { iterator: Te, toStringTag: Ft } = Symbol, He = /* @__PURE__ */ ((e) => (t) => {
1123
- const n = dr.call(t);
1122
+ const { toString: pr } = Object.prototype, { getPrototypeOf: Je } = Object, { iterator: He, toStringTag: Bt } = Symbol, Fe = /* @__PURE__ */ ((e) => (t) => {
1123
+ const n = pr.call(t);
1124
1124
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
1125
- })(/* @__PURE__ */ Object.create(null)), D = (e) => (e = e.toLowerCase(), (t) => He(t) === e), Fe = (e) => (t) => typeof t === e, { isArray: le } = Array, ie = Fe("undefined");
1126
- function ge(e) {
1127
- return e !== null && !ie(e) && e.constructor !== null && !ie(e.constructor) && V(e.constructor.isBuffer) && e.constructor.isBuffer(e);
1125
+ })(/* @__PURE__ */ Object.create(null)), D = (e) => (e = e.toLowerCase(), (t) => Fe(t) === e), Be = (e) => (t) => typeof t === e, { isArray: ce } = Array, le = Be("undefined");
1126
+ function ye(e) {
1127
+ return e !== null && !le(e) && e.constructor !== null && !le(e.constructor) && V(e.constructor.isBuffer) && e.constructor.isBuffer(e);
1128
1128
  }
1129
- const Bt = D("ArrayBuffer");
1130
- function fr(e) {
1129
+ const Vt = D("ArrayBuffer");
1130
+ function hr(e) {
1131
1131
  let t;
1132
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Bt(e.buffer), t;
1132
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Vt(e.buffer), t;
1133
1133
  }
1134
- const pr = Fe("string"), V = Fe("function"), Vt = Fe("number"), ye = (e) => e !== null && typeof e == "object", hr = (e) => e === !0 || e === !1, ke = (e) => {
1135
- if (He(e) !== "object")
1134
+ const mr = Be("string"), V = Be("function"), Nt = Be("number"), we = (e) => e !== null && typeof e == "object", gr = (e) => e === !0 || e === !1, Re = (e) => {
1135
+ if (Fe(e) !== "object")
1136
1136
  return !1;
1137
- const t = Ge(e);
1138
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ft in e) && !(Te in e);
1139
- }, mr = (e) => {
1140
- if (!ye(e) || ge(e))
1137
+ const t = Je(e);
1138
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Bt in e) && !(He in e);
1139
+ }, yr = (e) => {
1140
+ if (!we(e) || ye(e))
1141
1141
  return !1;
1142
1142
  try {
1143
1143
  return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
1144
1144
  } catch {
1145
1145
  return !1;
1146
1146
  }
1147
- }, gr = D("Date"), yr = D("File"), wr = D("Blob"), br = D("FileList"), xr = (e) => ye(e) && V(e.pipe), Sr = (e) => {
1147
+ }, wr = D("Date"), br = D("File"), xr = D("Blob"), Sr = D("FileList"), Cr = (e) => we(e) && V(e.pipe), vr = (e) => {
1148
1148
  let t;
1149
- return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t = He(e)) === "formdata" || // detect form-data instance
1149
+ return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t = Fe(e)) === "formdata" || // detect form-data instance
1150
1150
  t === "object" && V(e.toString) && e.toString() === "[object FormData]"));
1151
- }, Cr = D("URLSearchParams"), [vr, _r, kr, Rr] = ["ReadableStream", "Request", "Response", "Headers"].map(D), Er = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1152
- function we(e, t, { allOwnKeys: n = !1 } = {}) {
1151
+ }, _r = D("URLSearchParams"), [kr, Rr, Er, Ar] = ["ReadableStream", "Request", "Response", "Headers"].map(D), $r = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1152
+ function be(e, t, { allOwnKeys: n = !1 } = {}) {
1153
1153
  if (e === null || typeof e > "u")
1154
1154
  return;
1155
1155
  let s, r;
1156
- if (typeof e != "object" && (e = [e]), le(e))
1156
+ if (typeof e != "object" && (e = [e]), ce(e))
1157
1157
  for (s = 0, r = e.length; s < r; s++)
1158
1158
  t.call(null, e[s], s, e);
1159
1159
  else {
1160
- if (ge(e))
1160
+ if (ye(e))
1161
1161
  return;
1162
1162
  const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = o.length;
1163
1163
  let i;
@@ -1165,8 +1165,8 @@ function we(e, t, { allOwnKeys: n = !1 } = {}) {
1165
1165
  i = o[s], t.call(null, e[i], i, e);
1166
1166
  }
1167
1167
  }
1168
- function Nt(e, t) {
1169
- if (ge(e))
1168
+ function Pt(e, t) {
1169
+ if (ye(e))
1170
1170
  return null;
1171
1171
  t = t.toLowerCase();
1172
1172
  const n = Object.keys(e);
@@ -1176,71 +1176,71 @@ function Nt(e, t) {
1176
1176
  return r;
1177
1177
  return null;
1178
1178
  }
1179
- const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Pt = (e) => !ie(e) && e !== Q;
1180
- function ze() {
1181
- const { caseless: e, skipUndefined: t } = Pt(this) && this || {}, n = {}, s = (r, o) => {
1182
- const a = e && Nt(n, o) || o;
1183
- ke(n[a]) && ke(r) ? n[a] = ze(n[a], r) : ke(r) ? n[a] = ze({}, r) : le(r) ? n[a] = r.slice() : (!t || !ie(r)) && (n[a] = r);
1179
+ const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Mt = (e) => !le(e) && e !== Q;
1180
+ function qe() {
1181
+ const { caseless: e, skipUndefined: t } = Mt(this) && this || {}, n = {}, s = (r, o) => {
1182
+ const a = e && Pt(n, o) || o;
1183
+ Re(n[a]) && Re(r) ? n[a] = qe(n[a], r) : Re(r) ? n[a] = qe({}, r) : ce(r) ? n[a] = r.slice() : (!t || !le(r)) && (n[a] = r);
1184
1184
  };
1185
1185
  for (let r = 0, o = arguments.length; r < o; r++)
1186
- arguments[r] && we(arguments[r], s);
1186
+ arguments[r] && be(arguments[r], s);
1187
1187
  return n;
1188
1188
  }
1189
- const $r = (e, t, n, { allOwnKeys: s } = {}) => (we(t, (r, o) => {
1190
- n && V(r) ? e[o] = Ht(r, n) : e[o] = r;
1191
- }, { allOwnKeys: s }), e), Ar = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Or = (e, t, n, s) => {
1189
+ const Or = (e, t, n, { allOwnKeys: s } = {}) => (be(t, (r, o) => {
1190
+ n && V(r) ? e[o] = Ft(r, n) : e[o] = r;
1191
+ }, { allOwnKeys: s }), e), Lr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Tr = (e, t, n, s) => {
1192
1192
  e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
1193
1193
  value: t.prototype
1194
1194
  }), n && Object.assign(e.prototype, n);
1195
- }, Lr = (e, t, n, s) => {
1195
+ }, Hr = (e, t, n, s) => {
1196
1196
  let r, o, a;
1197
1197
  const i = {};
1198
1198
  if (t = t || {}, e == null) return t;
1199
1199
  do {
1200
1200
  for (r = Object.getOwnPropertyNames(e), o = r.length; o-- > 0; )
1201
1201
  a = r[o], (!s || s(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0);
1202
- e = n !== !1 && Ge(e);
1202
+ e = n !== !1 && Je(e);
1203
1203
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
1204
1204
  return t;
1205
- }, Tr = (e, t, n) => {
1205
+ }, Fr = (e, t, n) => {
1206
1206
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
1207
1207
  const s = e.indexOf(t, n);
1208
1208
  return s !== -1 && s === n;
1209
- }, Hr = (e) => {
1209
+ }, Br = (e) => {
1210
1210
  if (!e) return null;
1211
- if (le(e)) return e;
1211
+ if (ce(e)) return e;
1212
1212
  let t = e.length;
1213
- if (!Vt(t)) return null;
1213
+ if (!Nt(t)) return null;
1214
1214
  const n = new Array(t);
1215
1215
  for (; t-- > 0; )
1216
1216
  n[t] = e[t];
1217
1217
  return n;
1218
- }, Fr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ge(Uint8Array)), Br = (e, t) => {
1219
- const s = (e && e[Te]).call(e);
1218
+ }, Vr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Je(Uint8Array)), Nr = (e, t) => {
1219
+ const s = (e && e[He]).call(e);
1220
1220
  let r;
1221
1221
  for (; (r = s.next()) && !r.done; ) {
1222
1222
  const o = r.value;
1223
1223
  t.call(e, o[0], o[1]);
1224
1224
  }
1225
- }, Vr = (e, t) => {
1225
+ }, Pr = (e, t) => {
1226
1226
  let n;
1227
1227
  const s = [];
1228
1228
  for (; (n = e.exec(t)) !== null; )
1229
1229
  s.push(n);
1230
1230
  return s;
1231
- }, Nr = D("HTMLFormElement"), Pr = (e) => e.toLowerCase().replace(
1231
+ }, Mr = D("HTMLFormElement"), Ur = (e) => e.toLowerCase().replace(
1232
1232
  /[-_\s]([a-z\d])(\w*)/g,
1233
1233
  function(n, s, r) {
1234
1234
  return s.toUpperCase() + r;
1235
1235
  }
1236
- ), it = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Mr = D("RegExp"), Mt = (e, t) => {
1236
+ ), lt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), jr = D("RegExp"), Ut = (e, t) => {
1237
1237
  const n = Object.getOwnPropertyDescriptors(e), s = {};
1238
- we(n, (r, o) => {
1238
+ be(n, (r, o) => {
1239
1239
  let a;
1240
1240
  (a = t(r, o, e)) !== !1 && (s[o] = a || r);
1241
1241
  }), Object.defineProperties(e, s);
1242
- }, Ur = (e) => {
1243
- Mt(e, (t, n) => {
1242
+ }, Dr = (e) => {
1243
+ Ut(e, (t, n) => {
1244
1244
  if (V(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
1245
1245
  return !1;
1246
1246
  const s = e[n];
@@ -1254,103 +1254,103 @@ const $r = (e, t, n, { allOwnKeys: s } = {}) => (we(t, (r, o) => {
1254
1254
  });
1255
1255
  }
1256
1256
  });
1257
- }, jr = (e, t) => {
1257
+ }, Ir = (e, t) => {
1258
1258
  const n = {}, s = (r) => {
1259
1259
  r.forEach((o) => {
1260
1260
  n[o] = !0;
1261
1261
  });
1262
1262
  };
1263
- return le(e) ? s(e) : s(String(e).split(t)), n;
1264
- }, Dr = () => {
1265
- }, Ir = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
1266
- function zr(e) {
1267
- return !!(e && V(e.append) && e[Ft] === "FormData" && e[Te]);
1263
+ return ce(e) ? s(e) : s(String(e).split(t)), n;
1264
+ }, zr = () => {
1265
+ }, qr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
1266
+ function Zr(e) {
1267
+ return !!(e && V(e.append) && e[Bt] === "FormData" && e[He]);
1268
1268
  }
1269
- const qr = (e) => {
1269
+ const Wr = (e) => {
1270
1270
  const t = new Array(10), n = (s, r) => {
1271
- if (ye(s)) {
1271
+ if (we(s)) {
1272
1272
  if (t.indexOf(s) >= 0)
1273
1273
  return;
1274
- if (ge(s))
1274
+ if (ye(s))
1275
1275
  return s;
1276
1276
  if (!("toJSON" in s)) {
1277
1277
  t[r] = s;
1278
- const o = le(s) ? [] : {};
1279
- return we(s, (a, i) => {
1278
+ const o = ce(s) ? [] : {};
1279
+ return be(s, (a, i) => {
1280
1280
  const l = n(a, r + 1);
1281
- !ie(l) && (o[i] = l);
1281
+ !le(l) && (o[i] = l);
1282
1282
  }), t[r] = void 0, o;
1283
1283
  }
1284
1284
  }
1285
1285
  return s;
1286
1286
  };
1287
1287
  return n(e, 0);
1288
- }, Zr = D("AsyncFunction"), Wr = (e) => e && (ye(e) || V(e)) && V(e.then) && V(e.catch), Ut = ((e, t) => e ? setImmediate : t ? ((n, s) => (Q.addEventListener("message", ({ source: r, data: o }) => {
1288
+ }, Gr = D("AsyncFunction"), Jr = (e) => e && (we(e) || V(e)) && V(e.then) && V(e.catch), jt = ((e, t) => e ? setImmediate : t ? ((n, s) => (Q.addEventListener("message", ({ source: r, data: o }) => {
1289
1289
  r === Q && o === n && s.length && s.shift()();
1290
1290
  }, !1), (r) => {
1291
1291
  s.push(r), Q.postMessage(n, "*");
1292
1292
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
1293
1293
  typeof setImmediate == "function",
1294
1294
  V(Q.postMessage)
1295
- ), Gr = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || Ut, Jr = (e) => e != null && V(e[Te]), d = {
1296
- isArray: le,
1297
- isArrayBuffer: Bt,
1298
- isBuffer: ge,
1299
- isFormData: Sr,
1300
- isArrayBufferView: fr,
1301
- isString: pr,
1302
- isNumber: Vt,
1303
- isBoolean: hr,
1304
- isObject: ye,
1305
- isPlainObject: ke,
1306
- isEmptyObject: mr,
1307
- isReadableStream: vr,
1308
- isRequest: _r,
1309
- isResponse: kr,
1310
- isHeaders: Rr,
1311
- isUndefined: ie,
1312
- isDate: gr,
1313
- isFile: yr,
1314
- isBlob: wr,
1315
- isRegExp: Mr,
1295
+ ), Kr = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof process < "u" && process.nextTick || jt, Xr = (e) => e != null && V(e[He]), d = {
1296
+ isArray: ce,
1297
+ isArrayBuffer: Vt,
1298
+ isBuffer: ye,
1299
+ isFormData: vr,
1300
+ isArrayBufferView: hr,
1301
+ isString: mr,
1302
+ isNumber: Nt,
1303
+ isBoolean: gr,
1304
+ isObject: we,
1305
+ isPlainObject: Re,
1306
+ isEmptyObject: yr,
1307
+ isReadableStream: kr,
1308
+ isRequest: Rr,
1309
+ isResponse: Er,
1310
+ isHeaders: Ar,
1311
+ isUndefined: le,
1312
+ isDate: wr,
1313
+ isFile: br,
1314
+ isBlob: xr,
1315
+ isRegExp: jr,
1316
1316
  isFunction: V,
1317
- isStream: xr,
1318
- isURLSearchParams: Cr,
1319
- isTypedArray: Fr,
1320
- isFileList: br,
1321
- forEach: we,
1322
- merge: ze,
1323
- extend: $r,
1324
- trim: Er,
1325
- stripBOM: Ar,
1326
- inherits: Or,
1327
- toFlatObject: Lr,
1328
- kindOf: He,
1317
+ isStream: Cr,
1318
+ isURLSearchParams: _r,
1319
+ isTypedArray: Vr,
1320
+ isFileList: Sr,
1321
+ forEach: be,
1322
+ merge: qe,
1323
+ extend: Or,
1324
+ trim: $r,
1325
+ stripBOM: Lr,
1326
+ inherits: Tr,
1327
+ toFlatObject: Hr,
1328
+ kindOf: Fe,
1329
1329
  kindOfTest: D,
1330
- endsWith: Tr,
1331
- toArray: Hr,
1332
- forEachEntry: Br,
1333
- matchAll: Vr,
1334
- isHTMLForm: Nr,
1335
- hasOwnProperty: it,
1336
- hasOwnProp: it,
1330
+ endsWith: Fr,
1331
+ toArray: Br,
1332
+ forEachEntry: Nr,
1333
+ matchAll: Pr,
1334
+ isHTMLForm: Mr,
1335
+ hasOwnProperty: lt,
1336
+ hasOwnProp: lt,
1337
1337
  // an alias to avoid ESLint no-prototype-builtins detection
1338
- reduceDescriptors: Mt,
1339
- freezeMethods: Ur,
1340
- toObjectSet: jr,
1341
- toCamelCase: Pr,
1342
- noop: Dr,
1343
- toFiniteNumber: Ir,
1344
- findKey: Nt,
1338
+ reduceDescriptors: Ut,
1339
+ freezeMethods: Dr,
1340
+ toObjectSet: Ir,
1341
+ toCamelCase: Ur,
1342
+ noop: zr,
1343
+ toFiniteNumber: qr,
1344
+ findKey: Pt,
1345
1345
  global: Q,
1346
- isContextDefined: Pt,
1347
- isSpecCompliantForm: zr,
1348
- toJSONObject: qr,
1349
- isAsyncFn: Zr,
1350
- isThenable: Wr,
1351
- setImmediate: Ut,
1352
- asap: Gr,
1353
- isIterable: Jr
1346
+ isContextDefined: Mt,
1347
+ isSpecCompliantForm: Zr,
1348
+ toJSONObject: Wr,
1349
+ isAsyncFn: Gr,
1350
+ isThenable: Jr,
1351
+ setImmediate: jt,
1352
+ asap: Kr,
1353
+ isIterable: Xr
1354
1354
  };
1355
1355
  function S(e, t, n, s, r) {
1356
1356
  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), s && (this.request = s), r && (this.response = r, this.status = r.status ? r.status : null);
@@ -1376,7 +1376,7 @@ d.inherits(S, Error, {
1376
1376
  };
1377
1377
  }
1378
1378
  });
1379
- const jt = S.prototype, Dt = {};
1379
+ const Dt = S.prototype, It = {};
1380
1380
  [
1381
1381
  "ERR_BAD_OPTION_VALUE",
1382
1382
  "ERR_BAD_OPTION",
@@ -1392,37 +1392,37 @@ const jt = S.prototype, Dt = {};
1392
1392
  "ERR_INVALID_URL"
1393
1393
  // eslint-disable-next-line func-names
1394
1394
  ].forEach((e) => {
1395
- Dt[e] = { value: e };
1395
+ It[e] = { value: e };
1396
1396
  });
1397
- Object.defineProperties(S, Dt);
1398
- Object.defineProperty(jt, "isAxiosError", { value: !0 });
1397
+ Object.defineProperties(S, It);
1398
+ Object.defineProperty(Dt, "isAxiosError", { value: !0 });
1399
1399
  S.from = (e, t, n, s, r, o) => {
1400
- const a = Object.create(jt);
1400
+ const a = Object.create(Dt);
1401
1401
  d.toFlatObject(e, a, function(u) {
1402
1402
  return u !== Error.prototype;
1403
1403
  }, (c) => c !== "isAxiosError");
1404
1404
  const i = e && e.message ? e.message : "Error", l = t == null && e ? e.code : t;
1405
1405
  return S.call(a, i, l, n, s, r), e && a.cause == null && Object.defineProperty(a, "cause", { value: e, configurable: !0 }), a.name = e && e.name || "Error", o && Object.assign(a, o), a;
1406
1406
  };
1407
- const Kr = null;
1408
- function qe(e) {
1407
+ const Yr = null;
1408
+ function Ze(e) {
1409
1409
  return d.isPlainObject(e) || d.isArray(e);
1410
1410
  }
1411
- function It(e) {
1411
+ function zt(e) {
1412
1412
  return d.endsWith(e, "[]") ? e.slice(0, -2) : e;
1413
1413
  }
1414
- function lt(e, t, n) {
1414
+ function ct(e, t, n) {
1415
1415
  return e ? e.concat(t).map(function(r, o) {
1416
- return r = It(r), !n && o ? "[" + r + "]" : r;
1416
+ return r = zt(r), !n && o ? "[" + r + "]" : r;
1417
1417
  }).join(n ? "." : "") : t;
1418
1418
  }
1419
- function Xr(e) {
1420
- return d.isArray(e) && !e.some(qe);
1419
+ function Qr(e) {
1420
+ return d.isArray(e) && !e.some(Ze);
1421
1421
  }
1422
- const Yr = d.toFlatObject(d, {}, null, function(t) {
1422
+ const eo = d.toFlatObject(d, {}, null, function(t) {
1423
1423
  return /^is[A-Z]/.test(t);
1424
1424
  });
1425
- function Be(e, t, n) {
1425
+ function Ve(e, t, n) {
1426
1426
  if (!d.isObject(e))
1427
1427
  throw new TypeError("target must be an object");
1428
1428
  t = t || new FormData(), n = d.toFlatObject(n, {
@@ -1450,21 +1450,21 @@ function Be(e, t, n) {
1450
1450
  if (p && !h && typeof p == "object") {
1451
1451
  if (d.endsWith(b, "{}"))
1452
1452
  b = s ? b : b.slice(0, -2), p = JSON.stringify(p);
1453
- else if (d.isArray(p) && Xr(p) || (d.isFileList(p) || d.endsWith(b, "[]")) && (_ = d.toArray(p)))
1454
- return b = It(b), _.forEach(function(O, F) {
1453
+ else if (d.isArray(p) && Qr(p) || (d.isFileList(p) || d.endsWith(b, "[]")) && (_ = d.toArray(p)))
1454
+ return b = zt(b), _.forEach(function(O, F) {
1455
1455
  !(d.isUndefined(O) || O === null) && t.append(
1456
1456
  // eslint-disable-next-line no-nested-ternary
1457
- a === !0 ? lt([b], F, o) : a === null ? b : b + "[]",
1457
+ a === !0 ? ct([b], F, o) : a === null ? b : b + "[]",
1458
1458
  c(O)
1459
1459
  );
1460
1460
  }), !1;
1461
1461
  }
1462
- return qe(p) ? !0 : (t.append(lt(h, b, o), c(p)), !1);
1462
+ return Ze(p) ? !0 : (t.append(ct(h, b, o), c(p)), !1);
1463
1463
  }
1464
- const m = [], w = Object.assign(Yr, {
1464
+ const m = [], w = Object.assign(eo, {
1465
1465
  defaultVisitor: u,
1466
1466
  convertValue: c,
1467
- isVisitable: qe
1467
+ isVisitable: Ze
1468
1468
  });
1469
1469
  function v(p, b) {
1470
1470
  if (!d.isUndefined(p)) {
@@ -1485,7 +1485,7 @@ function Be(e, t, n) {
1485
1485
  throw new TypeError("data must be an object");
1486
1486
  return v(e), t;
1487
1487
  }
1488
- function ct(e) {
1488
+ function ut(e) {
1489
1489
  const t = {
1490
1490
  "!": "%21",
1491
1491
  "'": "%27",
@@ -1499,40 +1499,40 @@ function ct(e) {
1499
1499
  return t[s];
1500
1500
  });
1501
1501
  }
1502
- function Je(e, t) {
1503
- this._pairs = [], e && Be(e, this, t);
1502
+ function Ke(e, t) {
1503
+ this._pairs = [], e && Ve(e, this, t);
1504
1504
  }
1505
- const zt = Je.prototype;
1506
- zt.append = function(t, n) {
1505
+ const qt = Ke.prototype;
1506
+ qt.append = function(t, n) {
1507
1507
  this._pairs.push([t, n]);
1508
1508
  };
1509
- zt.toString = function(t) {
1509
+ qt.toString = function(t) {
1510
1510
  const n = t ? function(s) {
1511
- return t.call(this, s, ct);
1512
- } : ct;
1511
+ return t.call(this, s, ut);
1512
+ } : ut;
1513
1513
  return this._pairs.map(function(r) {
1514
1514
  return n(r[0]) + "=" + n(r[1]);
1515
1515
  }, "").join("&");
1516
1516
  };
1517
- function Qr(e) {
1517
+ function to(e) {
1518
1518
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
1519
1519
  }
1520
- function qt(e, t, n) {
1520
+ function Zt(e, t, n) {
1521
1521
  if (!t)
1522
1522
  return e;
1523
- const s = n && n.encode || Qr;
1523
+ const s = n && n.encode || to;
1524
1524
  d.isFunction(n) && (n = {
1525
1525
  serialize: n
1526
1526
  });
1527
1527
  const r = n && n.serialize;
1528
1528
  let o;
1529
- if (r ? o = r(t, n) : o = d.isURLSearchParams(t) ? t.toString() : new Je(t, n).toString(s), o) {
1529
+ if (r ? o = r(t, n) : o = d.isURLSearchParams(t) ? t.toString() : new Ke(t, n).toString(s), o) {
1530
1530
  const a = e.indexOf("#");
1531
1531
  a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
1532
1532
  }
1533
1533
  return e;
1534
1534
  }
1535
- class ut {
1535
+ class dt {
1536
1536
  constructor() {
1537
1537
  this.handlers = [];
1538
1538
  }
@@ -1586,42 +1586,42 @@ class ut {
1586
1586
  });
1587
1587
  }
1588
1588
  }
1589
- const Zt = {
1589
+ const Wt = {
1590
1590
  silentJSONParsing: !0,
1591
1591
  forcedJSONParsing: !0,
1592
1592
  clarifyTimeoutError: !1
1593
- }, eo = typeof URLSearchParams < "u" ? URLSearchParams : Je, to = typeof FormData < "u" ? FormData : null, no = typeof Blob < "u" ? Blob : null, so = {
1593
+ }, no = typeof URLSearchParams < "u" ? URLSearchParams : Ke, so = typeof FormData < "u" ? FormData : null, ro = typeof Blob < "u" ? Blob : null, oo = {
1594
1594
  isBrowser: !0,
1595
1595
  classes: {
1596
- URLSearchParams: eo,
1597
- FormData: to,
1598
- Blob: no
1596
+ URLSearchParams: no,
1597
+ FormData: so,
1598
+ Blob: ro
1599
1599
  },
1600
1600
  protocols: ["http", "https", "file", "blob", "url", "data"]
1601
- }, Ke = typeof window < "u" && typeof document < "u", Ze = typeof navigator == "object" && navigator || void 0, ro = Ke && (!Ze || ["ReactNative", "NativeScript", "NS"].indexOf(Ze.product) < 0), oo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1602
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ao = Ke && window.location.href || "http://localhost", io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1601
+ }, Xe = typeof window < "u" && typeof document < "u", We = typeof navigator == "object" && navigator || void 0, ao = Xe && (!We || ["ReactNative", "NativeScript", "NS"].indexOf(We.product) < 0), io = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1602
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", lo = Xe && window.location.href || "http://localhost", co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1603
1603
  __proto__: null,
1604
- hasBrowserEnv: Ke,
1605
- hasStandardBrowserEnv: ro,
1606
- hasStandardBrowserWebWorkerEnv: oo,
1607
- navigator: Ze,
1608
- origin: ao
1604
+ hasBrowserEnv: Xe,
1605
+ hasStandardBrowserEnv: ao,
1606
+ hasStandardBrowserWebWorkerEnv: io,
1607
+ navigator: We,
1608
+ origin: lo
1609
1609
  }, Symbol.toStringTag, { value: "Module" })), H = {
1610
- ...io,
1611
- ...so
1610
+ ...co,
1611
+ ...oo
1612
1612
  };
1613
- function lo(e, t) {
1614
- return Be(e, new H.classes.URLSearchParams(), {
1613
+ function uo(e, t) {
1614
+ return Ve(e, new H.classes.URLSearchParams(), {
1615
1615
  visitor: function(n, s, r, o) {
1616
1616
  return H.isNode && d.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
1617
1617
  },
1618
1618
  ...t
1619
1619
  });
1620
1620
  }
1621
- function co(e) {
1621
+ function fo(e) {
1622
1622
  return d.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
1623
1623
  }
1624
- function uo(e) {
1624
+ function po(e) {
1625
1625
  const t = {}, n = Object.keys(e);
1626
1626
  let s;
1627
1627
  const r = n.length;
@@ -1630,22 +1630,22 @@ function uo(e) {
1630
1630
  o = n[s], t[o] = e[o];
1631
1631
  return t;
1632
1632
  }
1633
- function Wt(e) {
1633
+ function Gt(e) {
1634
1634
  function t(n, s, r, o) {
1635
1635
  let a = n[o++];
1636
1636
  if (a === "__proto__") return !0;
1637
1637
  const i = Number.isFinite(+a), l = o >= n.length;
1638
- return a = !a && d.isArray(r) ? r.length : a, l ? (d.hasOwnProp(r, a) ? r[a] = [r[a], s] : r[a] = s, !i) : ((!r[a] || !d.isObject(r[a])) && (r[a] = []), t(n, s, r[a], o) && d.isArray(r[a]) && (r[a] = uo(r[a])), !i);
1638
+ return a = !a && d.isArray(r) ? r.length : a, l ? (d.hasOwnProp(r, a) ? r[a] = [r[a], s] : r[a] = s, !i) : ((!r[a] || !d.isObject(r[a])) && (r[a] = []), t(n, s, r[a], o) && d.isArray(r[a]) && (r[a] = po(r[a])), !i);
1639
1639
  }
1640
1640
  if (d.isFormData(e) && d.isFunction(e.entries)) {
1641
1641
  const n = {};
1642
1642
  return d.forEachEntry(e, (s, r) => {
1643
- t(co(s), r, n, 0);
1643
+ t(fo(s), r, n, 0);
1644
1644
  }), n;
1645
1645
  }
1646
1646
  return null;
1647
1647
  }
1648
- function fo(e, t, n) {
1648
+ function ho(e, t, n) {
1649
1649
  if (d.isString(e))
1650
1650
  try {
1651
1651
  return (t || JSON.parse)(e), d.trim(e);
@@ -1655,13 +1655,13 @@ function fo(e, t, n) {
1655
1655
  }
1656
1656
  return (n || JSON.stringify)(e);
1657
1657
  }
1658
- const be = {
1659
- transitional: Zt,
1658
+ const xe = {
1659
+ transitional: Wt,
1660
1660
  adapter: ["xhr", "http", "fetch"],
1661
1661
  transformRequest: [function(t, n) {
1662
1662
  const s = n.getContentType() || "", r = s.indexOf("application/json") > -1, o = d.isObject(t);
1663
1663
  if (o && d.isHTMLForm(t) && (t = new FormData(t)), d.isFormData(t))
1664
- return r ? JSON.stringify(Wt(t)) : t;
1664
+ return r ? JSON.stringify(Gt(t)) : t;
1665
1665
  if (d.isArrayBuffer(t) || d.isBuffer(t) || d.isStream(t) || d.isFile(t) || d.isBlob(t) || d.isReadableStream(t))
1666
1666
  return t;
1667
1667
  if (d.isArrayBufferView(t))
@@ -1671,20 +1671,20 @@ const be = {
1671
1671
  let i;
1672
1672
  if (o) {
1673
1673
  if (s.indexOf("application/x-www-form-urlencoded") > -1)
1674
- return lo(t, this.formSerializer).toString();
1674
+ return uo(t, this.formSerializer).toString();
1675
1675
  if ((i = d.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
1676
1676
  const l = this.env && this.env.FormData;
1677
- return Be(
1677
+ return Ve(
1678
1678
  i ? { "files[]": t } : t,
1679
1679
  l && new l(),
1680
1680
  this.formSerializer
1681
1681
  );
1682
1682
  }
1683
1683
  }
1684
- return o || r ? (n.setContentType("application/json", !1), fo(t)) : t;
1684
+ return o || r ? (n.setContentType("application/json", !1), ho(t)) : t;
1685
1685
  }],
1686
1686
  transformResponse: [function(t) {
1687
- const n = this.transitional || be.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
1687
+ const n = this.transitional || xe.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
1688
1688
  if (d.isResponse(t) || d.isReadableStream(t))
1689
1689
  return t;
1690
1690
  if (t && d.isString(t) && (s && !this.responseType || r)) {
@@ -1722,9 +1722,9 @@ const be = {
1722
1722
  }
1723
1723
  };
1724
1724
  d.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
1725
- be.headers[e] = {};
1725
+ xe.headers[e] = {};
1726
1726
  });
1727
- const po = d.toObjectSet([
1727
+ const mo = d.toObjectSet([
1728
1728
  "age",
1729
1729
  "authorization",
1730
1730
  "content-length",
@@ -1742,29 +1742,29 @@ const po = d.toObjectSet([
1742
1742
  "referer",
1743
1743
  "retry-after",
1744
1744
  "user-agent"
1745
- ]), ho = (e) => {
1745
+ ]), go = (e) => {
1746
1746
  const t = {};
1747
1747
  let n, s, r;
1748
1748
  return e && e.split(`
1749
1749
  `).forEach(function(a) {
1750
- r = a.indexOf(":"), n = a.substring(0, r).trim().toLowerCase(), s = a.substring(r + 1).trim(), !(!n || t[n] && po[n]) && (n === "set-cookie" ? t[n] ? t[n].push(s) : t[n] = [s] : t[n] = t[n] ? t[n] + ", " + s : s);
1750
+ r = a.indexOf(":"), n = a.substring(0, r).trim().toLowerCase(), s = a.substring(r + 1).trim(), !(!n || t[n] && mo[n]) && (n === "set-cookie" ? t[n] ? t[n].push(s) : t[n] = [s] : t[n] = t[n] ? t[n] + ", " + s : s);
1751
1751
  }), t;
1752
- }, dt = Symbol("internals");
1753
- function pe(e) {
1752
+ }, ft = Symbol("internals");
1753
+ function he(e) {
1754
1754
  return e && String(e).trim().toLowerCase();
1755
1755
  }
1756
- function Re(e) {
1757
- return e === !1 || e == null ? e : d.isArray(e) ? e.map(Re) : String(e);
1756
+ function Ee(e) {
1757
+ return e === !1 || e == null ? e : d.isArray(e) ? e.map(Ee) : String(e);
1758
1758
  }
1759
- function mo(e) {
1759
+ function yo(e) {
1760
1760
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1761
1761
  let s;
1762
1762
  for (; s = n.exec(e); )
1763
1763
  t[s[1]] = s[2];
1764
1764
  return t;
1765
1765
  }
1766
- const go = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1767
- function Ue(e, t, n, s, r) {
1766
+ const wo = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1767
+ function je(e, t, n, s, r) {
1768
1768
  if (d.isFunction(s))
1769
1769
  return s.call(this, t, n);
1770
1770
  if (r && (t = n), !!d.isString(t)) {
@@ -1774,10 +1774,10 @@ function Ue(e, t, n, s, r) {
1774
1774
  return s.test(t);
1775
1775
  }
1776
1776
  }
1777
- function yo(e) {
1777
+ function bo(e) {
1778
1778
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, s) => n.toUpperCase() + s);
1779
1779
  }
1780
- function wo(e, t) {
1780
+ function xo(e, t) {
1781
1781
  const n = d.toCamelCase(" " + t);
1782
1782
  ["get", "set", "has"].forEach((s) => {
1783
1783
  Object.defineProperty(e, s + n, {
@@ -1795,17 +1795,17 @@ let N = class {
1795
1795
  set(t, n, s) {
1796
1796
  const r = this;
1797
1797
  function o(i, l, c) {
1798
- const u = pe(l);
1798
+ const u = he(l);
1799
1799
  if (!u)
1800
1800
  throw new Error("header name must be a non-empty string");
1801
1801
  const m = d.findKey(r, u);
1802
- (!m || r[m] === void 0 || c === !0 || c === void 0 && r[m] !== !1) && (r[m || l] = Re(i));
1802
+ (!m || r[m] === void 0 || c === !0 || c === void 0 && r[m] !== !1) && (r[m || l] = Ee(i));
1803
1803
  }
1804
1804
  const a = (i, l) => d.forEach(i, (c, u) => o(c, u, l));
1805
1805
  if (d.isPlainObject(t) || t instanceof this.constructor)
1806
1806
  a(t, n);
1807
- else if (d.isString(t) && (t = t.trim()) && !go(t))
1808
- a(ho(t), n);
1807
+ else if (d.isString(t) && (t = t.trim()) && !wo(t))
1808
+ a(go(t), n);
1809
1809
  else if (d.isObject(t) && d.isIterable(t)) {
1810
1810
  let i = {}, l, c;
1811
1811
  for (const u of t) {
@@ -1819,14 +1819,14 @@ let N = class {
1819
1819
  return this;
1820
1820
  }
1821
1821
  get(t, n) {
1822
- if (t = pe(t), t) {
1822
+ if (t = he(t), t) {
1823
1823
  const s = d.findKey(this, t);
1824
1824
  if (s) {
1825
1825
  const r = this[s];
1826
1826
  if (!n)
1827
1827
  return r;
1828
1828
  if (n === !0)
1829
- return mo(r);
1829
+ return yo(r);
1830
1830
  if (d.isFunction(n))
1831
1831
  return n.call(this, r, s);
1832
1832
  if (d.isRegExp(n))
@@ -1836,9 +1836,9 @@ let N = class {
1836
1836
  }
1837
1837
  }
1838
1838
  has(t, n) {
1839
- if (t = pe(t), t) {
1839
+ if (t = he(t), t) {
1840
1840
  const s = d.findKey(this, t);
1841
- return !!(s && this[s] !== void 0 && (!n || Ue(this, this[s], s, n)));
1841
+ return !!(s && this[s] !== void 0 && (!n || je(this, this[s], s, n)));
1842
1842
  }
1843
1843
  return !1;
1844
1844
  }
@@ -1846,9 +1846,9 @@ let N = class {
1846
1846
  const s = this;
1847
1847
  let r = !1;
1848
1848
  function o(a) {
1849
- if (a = pe(a), a) {
1849
+ if (a = he(a), a) {
1850
1850
  const i = d.findKey(s, a);
1851
- i && (!n || Ue(s, s[i], i, n)) && (delete s[i], r = !0);
1851
+ i && (!n || je(s, s[i], i, n)) && (delete s[i], r = !0);
1852
1852
  }
1853
1853
  }
1854
1854
  return d.isArray(t) ? t.forEach(o) : o(t), r;
@@ -1858,7 +1858,7 @@ let N = class {
1858
1858
  let s = n.length, r = !1;
1859
1859
  for (; s--; ) {
1860
1860
  const o = n[s];
1861
- (!t || Ue(this, this[o], o, t, !0)) && (delete this[o], r = !0);
1861
+ (!t || je(this, this[o], o, t, !0)) && (delete this[o], r = !0);
1862
1862
  }
1863
1863
  return r;
1864
1864
  }
@@ -1867,11 +1867,11 @@ let N = class {
1867
1867
  return d.forEach(this, (r, o) => {
1868
1868
  const a = d.findKey(s, o);
1869
1869
  if (a) {
1870
- n[a] = Re(r), delete n[o];
1870
+ n[a] = Ee(r), delete n[o];
1871
1871
  return;
1872
1872
  }
1873
- const i = t ? yo(o) : String(o).trim();
1874
- i !== o && delete n[o], n[i] = Re(r), s[i] = !0;
1873
+ const i = t ? bo(o) : String(o).trim();
1874
+ i !== o && delete n[o], n[i] = Ee(r), s[i] = !0;
1875
1875
  }), this;
1876
1876
  }
1877
1877
  concat(...t) {
@@ -1904,12 +1904,12 @@ let N = class {
1904
1904
  return n.forEach((r) => s.set(r)), s;
1905
1905
  }
1906
1906
  static accessor(t) {
1907
- const s = (this[dt] = this[dt] = {
1907
+ const s = (this[ft] = this[ft] = {
1908
1908
  accessors: {}
1909
1909
  }).accessors, r = this.prototype;
1910
1910
  function o(a) {
1911
- const i = pe(a);
1912
- s[i] || (wo(r, a), s[i] = !0);
1911
+ const i = he(a);
1912
+ s[i] || (xo(r, a), s[i] = !0);
1913
1913
  }
1914
1914
  return d.isArray(t) ? t.forEach(o) : o(t), this;
1915
1915
  }
@@ -1925,23 +1925,23 @@ d.reduceDescriptors(N.prototype, ({ value: e }, t) => {
1925
1925
  };
1926
1926
  });
1927
1927
  d.freezeMethods(N);
1928
- function je(e, t) {
1929
- const n = this || be, s = t || n, r = N.from(s.headers);
1928
+ function De(e, t) {
1929
+ const n = this || xe, s = t || n, r = N.from(s.headers);
1930
1930
  let o = s.data;
1931
1931
  return d.forEach(e, function(i) {
1932
1932
  o = i.call(n, o, r.normalize(), t ? t.status : void 0);
1933
1933
  }), r.normalize(), o;
1934
1934
  }
1935
- function Gt(e) {
1935
+ function Jt(e) {
1936
1936
  return !!(e && e.__CANCEL__);
1937
1937
  }
1938
- function ce(e, t, n) {
1938
+ function ue(e, t, n) {
1939
1939
  S.call(this, e ?? "canceled", S.ERR_CANCELED, t, n), this.name = "CanceledError";
1940
1940
  }
1941
- d.inherits(ce, S, {
1941
+ d.inherits(ue, S, {
1942
1942
  __CANCEL__: !0
1943
1943
  });
1944
- function Jt(e, t, n) {
1944
+ function Kt(e, t, n) {
1945
1945
  const s = n.config.validateStatus;
1946
1946
  !n.status || !s || s(n.status) ? e(n) : t(new S(
1947
1947
  "Request failed with status code " + n.status,
@@ -1951,11 +1951,11 @@ function Jt(e, t, n) {
1951
1951
  n
1952
1952
  ));
1953
1953
  }
1954
- function bo(e) {
1954
+ function So(e) {
1955
1955
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
1956
1956
  return t && t[1] || "";
1957
1957
  }
1958
- function xo(e, t) {
1958
+ function Co(e, t) {
1959
1959
  e = e || 10;
1960
1960
  const n = new Array(e), s = new Array(e);
1961
1961
  let r = 0, o = 0, a;
@@ -1971,7 +1971,7 @@ function xo(e, t) {
1971
1971
  return v ? Math.round(w * 1e3 / v) : void 0;
1972
1972
  };
1973
1973
  }
1974
- function So(e, t) {
1974
+ function vo(e, t) {
1975
1975
  let n = 0, s = 1e3 / t, r, o;
1976
1976
  const a = (c, u = Date.now()) => {
1977
1977
  n = u, r = null, o && (clearTimeout(o), o = null), e(...c);
@@ -1983,10 +1983,10 @@ function So(e, t) {
1983
1983
  }, s - m)));
1984
1984
  }, () => r && a(r)];
1985
1985
  }
1986
- const Oe = (e, t, n = 3) => {
1986
+ const Le = (e, t, n = 3) => {
1987
1987
  let s = 0;
1988
- const r = xo(50, 250);
1989
- return So((o) => {
1988
+ const r = Co(50, 250);
1989
+ return vo((o) => {
1990
1990
  const a = o.loaded, i = o.lengthComputable ? o.total : void 0, l = a - s, c = r(l), u = a <= i;
1991
1991
  s = a;
1992
1992
  const m = {
@@ -2002,17 +2002,17 @@ const Oe = (e, t, n = 3) => {
2002
2002
  };
2003
2003
  e(m);
2004
2004
  }, n);
2005
- }, ft = (e, t) => {
2005
+ }, pt = (e, t) => {
2006
2006
  const n = e != null;
2007
2007
  return [(s) => t[0]({
2008
2008
  lengthComputable: n,
2009
2009
  total: e,
2010
2010
  loaded: s
2011
2011
  }), t[1]];
2012
- }, pt = (e) => (...t) => d.asap(() => e(...t)), Co = H.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, H.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
2012
+ }, ht = (e) => (...t) => d.asap(() => e(...t)), _o = H.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, H.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
2013
2013
  new URL(H.origin),
2014
2014
  H.navigator && /(msie|trident)/i.test(H.navigator.userAgent)
2015
- ) : () => !0, vo = H.hasStandardBrowserEnv ? (
2015
+ ) : () => !0, ko = H.hasStandardBrowserEnv ? (
2016
2016
  // Standard browser envs support document.cookie
2017
2017
  {
2018
2018
  write(e, t, n, s, r, o, a) {
@@ -2041,17 +2041,17 @@ const Oe = (e, t, n = 3) => {
2041
2041
  }
2042
2042
  }
2043
2043
  );
2044
- function _o(e) {
2044
+ function Ro(e) {
2045
2045
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
2046
2046
  }
2047
- function ko(e, t) {
2047
+ function Eo(e, t) {
2048
2048
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
2049
2049
  }
2050
- function Kt(e, t, n) {
2051
- let s = !_o(t);
2052
- return e && (s || n == !1) ? ko(e, t) : t;
2050
+ function Xt(e, t, n) {
2051
+ let s = !Ro(t);
2052
+ return e && (s || n == !1) ? Eo(e, t) : t;
2053
2053
  }
2054
- const ht = (e) => e instanceof N ? { ...e } : e;
2054
+ const mt = (e) => e instanceof N ? { ...e } : e;
2055
2055
  function te(e, t) {
2056
2056
  t = t || {};
2057
2057
  const n = {};
@@ -2109,17 +2109,17 @@ function te(e, t) {
2109
2109
  socketPath: a,
2110
2110
  responseEncoding: a,
2111
2111
  validateStatus: i,
2112
- headers: (c, u, m) => r(ht(c), ht(u), m, !0)
2112
+ headers: (c, u, m) => r(mt(c), mt(u), m, !0)
2113
2113
  };
2114
2114
  return d.forEach(Object.keys({ ...e, ...t }), function(u) {
2115
2115
  const m = l[u] || r, w = m(e[u], t[u], u);
2116
2116
  d.isUndefined(w) && m !== i || (n[u] = w);
2117
2117
  }), n;
2118
2118
  }
2119
- const Xt = (e) => {
2119
+ const Yt = (e) => {
2120
2120
  const t = te({}, e);
2121
2121
  let { data: n, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: o, headers: a, auth: i } = t;
2122
- if (t.headers = a = N.from(a), t.url = qt(Kt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set(
2122
+ if (t.headers = a = N.from(a), t.url = Zt(Xt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set(
2123
2123
  "Authorization",
2124
2124
  "Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
2125
2125
  ), d.isFormData(n)) {
@@ -2132,14 +2132,14 @@ const Xt = (e) => {
2132
2132
  });
2133
2133
  }
2134
2134
  }
2135
- if (H.hasStandardBrowserEnv && (s && d.isFunction(s) && (s = s(t)), s || s !== !1 && Co(t.url))) {
2136
- const l = r && o && vo.read(o);
2135
+ if (H.hasStandardBrowserEnv && (s && d.isFunction(s) && (s = s(t)), s || s !== !1 && _o(t.url))) {
2136
+ const l = r && o && ko.read(o);
2137
2137
  l && a.set(r, l);
2138
2138
  }
2139
2139
  return t;
2140
- }, Ro = typeof XMLHttpRequest < "u", Eo = Ro && function(e) {
2140
+ }, Ao = typeof XMLHttpRequest < "u", $o = Ao && function(e) {
2141
2141
  return new Promise(function(n, s) {
2142
- const r = Xt(e);
2142
+ const r = Yt(e);
2143
2143
  let o = r.data;
2144
2144
  const a = N.from(r.headers).normalize();
2145
2145
  let { responseType: i, onUploadProgress: l, onDownloadProgress: c } = r, u, m, w, v, p;
@@ -2161,7 +2161,7 @@ const Xt = (e) => {
2161
2161
  config: e,
2162
2162
  request: h
2163
2163
  };
2164
- Jt(function(P) {
2164
+ Kt(function(P) {
2165
2165
  n(P), b();
2166
2166
  }, function(P) {
2167
2167
  s(P), b();
@@ -2176,7 +2176,7 @@ const Xt = (e) => {
2176
2176
  X.event = F || null, s(X), h = null;
2177
2177
  }, h.ontimeout = function() {
2178
2178
  let F = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
2179
- const j = r.transitional || Zt;
2179
+ const j = r.transitional || Wt;
2180
2180
  r.timeoutErrorMessage && (F = r.timeoutErrorMessage), s(new S(
2181
2181
  F,
2182
2182
  j.clarifyTimeoutError ? S.ETIMEDOUT : S.ECONNABORTED,
@@ -2185,17 +2185,17 @@ const Xt = (e) => {
2185
2185
  )), h = null;
2186
2186
  }, o === void 0 && a.setContentType(null), "setRequestHeader" in h && d.forEach(a.toJSON(), function(F, j) {
2187
2187
  h.setRequestHeader(j, F);
2188
- }), d.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), i && i !== "json" && (h.responseType = r.responseType), c && ([w, p] = Oe(c, !0), h.addEventListener("progress", w)), l && h.upload && ([m, v] = Oe(l), h.upload.addEventListener("progress", m), h.upload.addEventListener("loadend", v)), (r.cancelToken || r.signal) && (u = (O) => {
2189
- h && (s(!O || O.type ? new ce(null, e, h) : O), h.abort(), h = null);
2188
+ }), d.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), i && i !== "json" && (h.responseType = r.responseType), c && ([w, p] = Le(c, !0), h.addEventListener("progress", w)), l && h.upload && ([m, v] = Le(l), h.upload.addEventListener("progress", m), h.upload.addEventListener("loadend", v)), (r.cancelToken || r.signal) && (u = (O) => {
2189
+ h && (s(!O || O.type ? new ue(null, e, h) : O), h.abort(), h = null);
2190
2190
  }, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
2191
- const T = bo(r.url);
2191
+ const T = So(r.url);
2192
2192
  if (T && H.protocols.indexOf(T) === -1) {
2193
2193
  s(new S("Unsupported protocol " + T + ":", S.ERR_BAD_REQUEST, e));
2194
2194
  return;
2195
2195
  }
2196
2196
  h.send(o || null);
2197
2197
  });
2198
- }, $o = (e, t) => {
2198
+ }, Oo = (e, t) => {
2199
2199
  const { length: n } = e = e ? e.filter(Boolean) : [];
2200
2200
  if (t || n) {
2201
2201
  let s = new AbortController(), r;
@@ -2203,7 +2203,7 @@ const Xt = (e) => {
2203
2203
  if (!r) {
2204
2204
  r = !0, i();
2205
2205
  const u = c instanceof Error ? c : this.reason;
2206
- s.abort(u instanceof S ? u : new ce(u instanceof Error ? u.message : u));
2206
+ s.abort(u instanceof S ? u : new ue(u instanceof Error ? u.message : u));
2207
2207
  }
2208
2208
  };
2209
2209
  let a = t && setTimeout(() => {
@@ -2218,7 +2218,7 @@ const Xt = (e) => {
2218
2218
  const { signal: l } = s;
2219
2219
  return l.unsubscribe = () => d.asap(i), l;
2220
2220
  }
2221
- }, Ao = function* (e, t) {
2221
+ }, Lo = function* (e, t) {
2222
2222
  let n = e.byteLength;
2223
2223
  if (n < t) {
2224
2224
  yield e;
@@ -2227,10 +2227,10 @@ const Xt = (e) => {
2227
2227
  let s = 0, r;
2228
2228
  for (; s < n; )
2229
2229
  r = s + t, yield e.slice(s, r), s = r;
2230
- }, Oo = async function* (e, t) {
2231
- for await (const n of Lo(e))
2232
- yield* Ao(n, t);
2233
- }, Lo = async function* (e) {
2230
+ }, To = async function* (e, t) {
2231
+ for await (const n of Ho(e))
2232
+ yield* Lo(n, t);
2233
+ }, Ho = async function* (e) {
2234
2234
  if (e[Symbol.asyncIterator]) {
2235
2235
  yield* e;
2236
2236
  return;
@@ -2246,8 +2246,8 @@ const Xt = (e) => {
2246
2246
  } finally {
2247
2247
  await t.cancel();
2248
2248
  }
2249
- }, mt = (e, t, n, s) => {
2250
- const r = Oo(e, t);
2249
+ }, gt = (e, t, n, s) => {
2250
+ const r = To(e, t);
2251
2251
  let o = 0, a, i = (l) => {
2252
2252
  a || (a = !0, s && s(l));
2253
2253
  };
@@ -2275,36 +2275,36 @@ const Xt = (e) => {
2275
2275
  }, {
2276
2276
  highWaterMark: 2
2277
2277
  });
2278
- }, gt = 64 * 1024, { isFunction: _e } = d, To = (({ Request: e, Response: t }) => ({
2278
+ }, yt = 64 * 1024, { isFunction: ke } = d, Fo = (({ Request: e, Response: t }) => ({
2279
2279
  Request: e,
2280
2280
  Response: t
2281
2281
  }))(d.global), {
2282
- ReadableStream: yt,
2283
- TextEncoder: wt
2284
- } = d.global, bt = (e, ...t) => {
2282
+ ReadableStream: wt,
2283
+ TextEncoder: bt
2284
+ } = d.global, xt = (e, ...t) => {
2285
2285
  try {
2286
2286
  return !!e(...t);
2287
2287
  } catch {
2288
2288
  return !1;
2289
2289
  }
2290
- }, Ho = (e) => {
2290
+ }, Bo = (e) => {
2291
2291
  e = d.merge.call({
2292
2292
  skipUndefined: !0
2293
- }, To, e);
2294
- const { fetch: t, Request: n, Response: s } = e, r = t ? _e(t) : typeof fetch == "function", o = _e(n), a = _e(s);
2293
+ }, Fo, e);
2294
+ const { fetch: t, Request: n, Response: s } = e, r = t ? ke(t) : typeof fetch == "function", o = ke(n), a = ke(s);
2295
2295
  if (!r)
2296
2296
  return !1;
2297
- const i = r && _e(yt), l = r && (typeof wt == "function" ? /* @__PURE__ */ ((p) => (b) => p.encode(b))(new wt()) : async (p) => new Uint8Array(await new n(p).arrayBuffer())), c = o && i && bt(() => {
2297
+ const i = r && ke(wt), l = r && (typeof bt == "function" ? /* @__PURE__ */ ((p) => (b) => p.encode(b))(new bt()) : async (p) => new Uint8Array(await new n(p).arrayBuffer())), c = o && i && xt(() => {
2298
2298
  let p = !1;
2299
2299
  const b = new n(H.origin, {
2300
- body: new yt(),
2300
+ body: new wt(),
2301
2301
  method: "POST",
2302
2302
  get duplex() {
2303
2303
  return p = !0, "half";
2304
2304
  }
2305
2305
  }).headers.has("Content-Type");
2306
2306
  return p && !b;
2307
- }), u = a && i && bt(() => d.isReadableStream(new s("").body)), m = {
2307
+ }), u = a && i && xt(() => d.isReadableStream(new s("").body)), m = {
2308
2308
  stream: u && ((p) => p.body)
2309
2309
  };
2310
2310
  r && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((p) => {
@@ -2344,102 +2344,102 @@ const Xt = (e) => {
2344
2344
  onDownloadProgress: j,
2345
2345
  onUploadProgress: X,
2346
2346
  responseType: P,
2347
- headers: Ne,
2348
- withCredentials: xe = "same-origin",
2349
- fetchOptions: Ye
2350
- } = Xt(p), Qe = t || fetch;
2347
+ headers: Pe,
2348
+ withCredentials: Se = "same-origin",
2349
+ fetchOptions: Qe
2350
+ } = Yt(p), et = t || fetch;
2351
2351
  P = P ? (P + "").toLowerCase() : "text";
2352
- let Se = $o([T, O && O.toAbortSignal()], F), ue = null;
2353
- const Y = Se && Se.unsubscribe && (() => {
2354
- Se.unsubscribe();
2352
+ let Ce = Oo([T, O && O.toAbortSignal()], F), de = null;
2353
+ const Y = Ce && Ce.unsubscribe && (() => {
2354
+ Ce.unsubscribe();
2355
2355
  });
2356
- let et;
2356
+ let tt;
2357
2357
  try {
2358
- if (X && c && h !== "get" && h !== "head" && (et = await v(Ne, _)) !== 0) {
2359
- let G = new n(b, {
2358
+ if (X && c && h !== "get" && h !== "head" && (tt = await v(Pe, _)) !== 0) {
2359
+ let J = new n(b, {
2360
2360
  method: "POST",
2361
2361
  body: _,
2362
2362
  duplex: "half"
2363
2363
  }), oe;
2364
- if (d.isFormData(_) && (oe = G.headers.get("content-type")) && Ne.setContentType(oe), G.body) {
2365
- const [Pe, Ce] = ft(
2366
- et,
2367
- Oe(pt(X))
2364
+ if (d.isFormData(_) && (oe = J.headers.get("content-type")) && Pe.setContentType(oe), J.body) {
2365
+ const [Me, ve] = pt(
2366
+ tt,
2367
+ Le(ht(X))
2368
2368
  );
2369
- _ = mt(G.body, gt, Pe, Ce);
2369
+ _ = gt(J.body, yt, Me, ve);
2370
2370
  }
2371
2371
  }
2372
- d.isString(xe) || (xe = xe ? "include" : "omit");
2373
- const I = o && "credentials" in n.prototype, tt = {
2374
- ...Ye,
2375
- signal: Se,
2372
+ d.isString(Se) || (Se = Se ? "include" : "omit");
2373
+ const I = o && "credentials" in n.prototype, nt = {
2374
+ ...Qe,
2375
+ signal: Ce,
2376
2376
  method: h.toUpperCase(),
2377
- headers: Ne.normalize().toJSON(),
2377
+ headers: Pe.normalize().toJSON(),
2378
2378
  body: _,
2379
2379
  duplex: "half",
2380
- credentials: I ? xe : void 0
2380
+ credentials: I ? Se : void 0
2381
2381
  };
2382
- ue = o && new n(b, tt);
2383
- let W = await (o ? Qe(ue, Ye) : Qe(b, tt));
2384
- const nt = u && (P === "stream" || P === "response");
2385
- if (u && (j || nt && Y)) {
2386
- const G = {};
2387
- ["status", "statusText", "headers"].forEach((st) => {
2388
- G[st] = W[st];
2382
+ de = o && new n(b, nt);
2383
+ let G = await (o ? et(de, Qe) : et(b, nt));
2384
+ const st = u && (P === "stream" || P === "response");
2385
+ if (u && (j || st && Y)) {
2386
+ const J = {};
2387
+ ["status", "statusText", "headers"].forEach((rt) => {
2388
+ J[rt] = G[rt];
2389
2389
  });
2390
- const oe = d.toFiniteNumber(W.headers.get("content-length")), [Pe, Ce] = j && ft(
2390
+ const oe = d.toFiniteNumber(G.headers.get("content-length")), [Me, ve] = j && pt(
2391
2391
  oe,
2392
- Oe(pt(j), !0)
2392
+ Le(ht(j), !0)
2393
2393
  ) || [];
2394
- W = new s(
2395
- mt(W.body, gt, Pe, () => {
2396
- Ce && Ce(), Y && Y();
2394
+ G = new s(
2395
+ gt(G.body, yt, Me, () => {
2396
+ ve && ve(), Y && Y();
2397
2397
  }),
2398
- G
2398
+ J
2399
2399
  );
2400
2400
  }
2401
2401
  P = P || "text";
2402
- let rn = await m[d.findKey(m, P) || "text"](W, p);
2403
- return !nt && Y && Y(), await new Promise((G, oe) => {
2404
- Jt(G, oe, {
2405
- data: rn,
2406
- headers: N.from(W.headers),
2407
- status: W.status,
2408
- statusText: W.statusText,
2402
+ let an = await m[d.findKey(m, P) || "text"](G, p);
2403
+ return !st && Y && Y(), await new Promise((J, oe) => {
2404
+ Kt(J, oe, {
2405
+ data: an,
2406
+ headers: N.from(G.headers),
2407
+ status: G.status,
2408
+ statusText: G.statusText,
2409
2409
  config: p,
2410
- request: ue
2410
+ request: de
2411
2411
  });
2412
2412
  });
2413
2413
  } catch (I) {
2414
2414
  throw Y && Y(), I && I.name === "TypeError" && /Load failed|fetch/i.test(I.message) ? Object.assign(
2415
- new S("Network Error", S.ERR_NETWORK, p, ue),
2415
+ new S("Network Error", S.ERR_NETWORK, p, de),
2416
2416
  {
2417
2417
  cause: I.cause || I
2418
2418
  }
2419
- ) : S.from(I, I && I.code, p, ue);
2419
+ ) : S.from(I, I && I.code, p, de);
2420
2420
  }
2421
2421
  };
2422
- }, Fo = /* @__PURE__ */ new Map(), Yt = (e) => {
2422
+ }, Vo = /* @__PURE__ */ new Map(), Qt = (e) => {
2423
2423
  let t = e && e.env || {};
2424
2424
  const { fetch: n, Request: s, Response: r } = t, o = [
2425
2425
  s,
2426
2426
  r,
2427
2427
  n
2428
2428
  ];
2429
- let a = o.length, i = a, l, c, u = Fo;
2429
+ let a = o.length, i = a, l, c, u = Vo;
2430
2430
  for (; i--; )
2431
- l = o[i], c = u.get(l), c === void 0 && u.set(l, c = i ? /* @__PURE__ */ new Map() : Ho(t)), u = c;
2431
+ l = o[i], c = u.get(l), c === void 0 && u.set(l, c = i ? /* @__PURE__ */ new Map() : Bo(t)), u = c;
2432
2432
  return c;
2433
2433
  };
2434
- Yt();
2435
- const Xe = {
2436
- http: Kr,
2437
- xhr: Eo,
2434
+ Qt();
2435
+ const Ye = {
2436
+ http: Yr,
2437
+ xhr: $o,
2438
2438
  fetch: {
2439
- get: Yt
2439
+ get: Qt
2440
2440
  }
2441
2441
  };
2442
- d.forEach(Xe, (e, t) => {
2442
+ d.forEach(Ye, (e, t) => {
2443
2443
  if (e) {
2444
2444
  try {
2445
2445
  Object.defineProperty(e, "name", { value: t });
@@ -2448,8 +2448,8 @@ d.forEach(Xe, (e, t) => {
2448
2448
  Object.defineProperty(e, "adapterName", { value: t });
2449
2449
  }
2450
2450
  });
2451
- const xt = (e) => `- ${e}`, Bo = (e) => d.isFunction(e) || e === null || e === !1;
2452
- function Vo(e, t) {
2451
+ const St = (e) => `- ${e}`, No = (e) => d.isFunction(e) || e === null || e === !1;
2452
+ function Po(e, t) {
2453
2453
  e = d.isArray(e) ? e : [e];
2454
2454
  const { length: n } = e;
2455
2455
  let s, r;
@@ -2457,7 +2457,7 @@ function Vo(e, t) {
2457
2457
  for (let a = 0; a < n; a++) {
2458
2458
  s = e[a];
2459
2459
  let i;
2460
- if (r = s, !Bo(s) && (r = Xe[(i = String(s)).toLowerCase()], r === void 0))
2460
+ if (r = s, !No(s) && (r = Ye[(i = String(s)).toLowerCase()], r === void 0))
2461
2461
  throw new S(`Unknown adapter '${i}'`);
2462
2462
  if (r && (d.isFunction(r) || (r = r.get(t))))
2463
2463
  break;
@@ -2468,8 +2468,8 @@ function Vo(e, t) {
2468
2468
  ([l, c]) => `adapter ${l} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
2469
2469
  );
2470
2470
  let i = n ? a.length > 1 ? `since :
2471
- ` + a.map(xt).join(`
2472
- `) : " " + xt(a[0]) : "as no adapter specified";
2471
+ ` + a.map(St).join(`
2472
+ `) : " " + St(a[0]) : "as no adapter specified";
2473
2473
  throw new S(
2474
2474
  "There is no suitable adapter to dispatch the request " + i,
2475
2475
  "ERR_NOT_SUPPORT"
@@ -2477,50 +2477,50 @@ function Vo(e, t) {
2477
2477
  }
2478
2478
  return r;
2479
2479
  }
2480
- const Qt = {
2480
+ const en = {
2481
2481
  /**
2482
2482
  * Resolve an adapter from a list of adapter names or functions.
2483
2483
  * @type {Function}
2484
2484
  */
2485
- getAdapter: Vo,
2485
+ getAdapter: Po,
2486
2486
  /**
2487
2487
  * Exposes all known adapters
2488
2488
  * @type {Object<string, Function|Object>}
2489
2489
  */
2490
- adapters: Xe
2490
+ adapters: Ye
2491
2491
  };
2492
- function De(e) {
2492
+ function Ie(e) {
2493
2493
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
2494
- throw new ce(null, e);
2494
+ throw new ue(null, e);
2495
2495
  }
2496
- function St(e) {
2497
- return De(e), e.headers = N.from(e.headers), e.data = je.call(
2496
+ function Ct(e) {
2497
+ return Ie(e), e.headers = N.from(e.headers), e.data = De.call(
2498
2498
  e,
2499
2499
  e.transformRequest
2500
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Qt.getAdapter(e.adapter || be.adapter, e)(e).then(function(s) {
2501
- return De(e), s.data = je.call(
2500
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), en.getAdapter(e.adapter || xe.adapter, e)(e).then(function(s) {
2501
+ return Ie(e), s.data = De.call(
2502
2502
  e,
2503
2503
  e.transformResponse,
2504
2504
  s
2505
2505
  ), s.headers = N.from(s.headers), s;
2506
2506
  }, function(s) {
2507
- return Gt(s) || (De(e), s && s.response && (s.response.data = je.call(
2507
+ return Jt(s) || (Ie(e), s && s.response && (s.response.data = De.call(
2508
2508
  e,
2509
2509
  e.transformResponse,
2510
2510
  s.response
2511
2511
  ), s.response.headers = N.from(s.response.headers))), Promise.reject(s);
2512
2512
  });
2513
2513
  }
2514
- const en = "1.13.2", Ve = {};
2514
+ const tn = "1.13.2", Ne = {};
2515
2515
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
2516
- Ve[e] = function(s) {
2516
+ Ne[e] = function(s) {
2517
2517
  return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
2518
2518
  };
2519
2519
  });
2520
- const Ct = {};
2521
- Ve.transitional = function(t, n, s) {
2520
+ const vt = {};
2521
+ Ne.transitional = function(t, n, s) {
2522
2522
  function r(o, a) {
2523
- return "[Axios v" + en + "] Transitional option '" + o + "'" + a + (s ? ". " + s : "");
2523
+ return "[Axios v" + tn + "] Transitional option '" + o + "'" + a + (s ? ". " + s : "");
2524
2524
  }
2525
2525
  return (o, a, i) => {
2526
2526
  if (t === !1)
@@ -2528,7 +2528,7 @@ Ve.transitional = function(t, n, s) {
2528
2528
  r(a, " has been removed" + (n ? " in " + n : "")),
2529
2529
  S.ERR_DEPRECATED
2530
2530
  );
2531
- return n && !Ct[a] && (Ct[a] = !0, console.warn(
2531
+ return n && !vt[a] && (vt[a] = !0, console.warn(
2532
2532
  r(
2533
2533
  a,
2534
2534
  " has been deprecated since v" + n + " and will be removed in the near future"
@@ -2536,10 +2536,10 @@ Ve.transitional = function(t, n, s) {
2536
2536
  )), t ? t(o, a, i) : !0;
2537
2537
  };
2538
2538
  };
2539
- Ve.spelling = function(t) {
2539
+ Ne.spelling = function(t) {
2540
2540
  return (n, s) => (console.warn(`${s} is likely a misspelling of ${t}`), !0);
2541
2541
  };
2542
- function No(e, t, n) {
2542
+ function Mo(e, t, n) {
2543
2543
  if (typeof e != "object")
2544
2544
  throw new S("options must be an object", S.ERR_BAD_OPTION_VALUE);
2545
2545
  const s = Object.keys(e);
@@ -2556,15 +2556,15 @@ function No(e, t, n) {
2556
2556
  throw new S("Unknown option " + o, S.ERR_BAD_OPTION);
2557
2557
  }
2558
2558
  }
2559
- const Ee = {
2560
- assertOptions: No,
2561
- validators: Ve
2562
- }, z = Ee.validators;
2559
+ const Ae = {
2560
+ assertOptions: Mo,
2561
+ validators: Ne
2562
+ }, z = Ae.validators;
2563
2563
  let ee = class {
2564
2564
  constructor(t) {
2565
2565
  this.defaults = t || {}, this.interceptors = {
2566
- request: new ut(),
2567
- response: new ut()
2566
+ request: new dt(),
2567
+ response: new dt()
2568
2568
  };
2569
2569
  }
2570
2570
  /**
@@ -2595,16 +2595,16 @@ let ee = class {
2595
2595
  _request(t, n) {
2596
2596
  typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = te(this.defaults, n);
2597
2597
  const { transitional: s, paramsSerializer: r, headers: o } = n;
2598
- s !== void 0 && Ee.assertOptions(s, {
2598
+ s !== void 0 && Ae.assertOptions(s, {
2599
2599
  silentJSONParsing: z.transitional(z.boolean),
2600
2600
  forcedJSONParsing: z.transitional(z.boolean),
2601
2601
  clarifyTimeoutError: z.transitional(z.boolean)
2602
2602
  }, !1), r != null && (d.isFunction(r) ? n.paramsSerializer = {
2603
2603
  serialize: r
2604
- } : Ee.assertOptions(r, {
2604
+ } : Ae.assertOptions(r, {
2605
2605
  encode: z.function,
2606
2606
  serialize: z.function
2607
- }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Ee.assertOptions(n, {
2607
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Ae.assertOptions(n, {
2608
2608
  baseUrl: z.spelling("baseURL"),
2609
2609
  withXsrfToken: z.spelling("withXSRFToken")
2610
2610
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
@@ -2629,7 +2629,7 @@ let ee = class {
2629
2629
  });
2630
2630
  let u, m = 0, w;
2631
2631
  if (!l) {
2632
- const p = [St.bind(this), void 0];
2632
+ const p = [Ct.bind(this), void 0];
2633
2633
  for (p.unshift(...i), p.push(...c), w = p.length, u = Promise.resolve(n); m < w; )
2634
2634
  u = u.then(p[m++], p[m++]);
2635
2635
  return u;
@@ -2646,7 +2646,7 @@ let ee = class {
2646
2646
  }
2647
2647
  }
2648
2648
  try {
2649
- u = St.call(this, v);
2649
+ u = Ct.call(this, v);
2650
2650
  } catch (p) {
2651
2651
  return Promise.reject(p);
2652
2652
  }
@@ -2656,8 +2656,8 @@ let ee = class {
2656
2656
  }
2657
2657
  getUri(t) {
2658
2658
  t = te(this.defaults, t);
2659
- const n = Kt(t.baseURL, t.url, t.allowAbsoluteUrls);
2660
- return qt(n, t.params, t.paramsSerializer);
2659
+ const n = Xt(t.baseURL, t.url, t.allowAbsoluteUrls);
2660
+ return Zt(n, t.params, t.paramsSerializer);
2661
2661
  }
2662
2662
  };
2663
2663
  d.forEach(["delete", "get", "head", "options"], function(t) {
@@ -2684,7 +2684,7 @@ d.forEach(["post", "put", "patch"], function(t) {
2684
2684
  }
2685
2685
  ee.prototype[t] = n(), ee.prototype[t + "Form"] = n(!0);
2686
2686
  });
2687
- let Po = class tn {
2687
+ let Uo = class nn {
2688
2688
  constructor(t) {
2689
2689
  if (typeof t != "function")
2690
2690
  throw new TypeError("executor must be a function.");
@@ -2708,7 +2708,7 @@ let Po = class tn {
2708
2708
  s.unsubscribe(o);
2709
2709
  }, a;
2710
2710
  }, t(function(o, a, i) {
2711
- s.reason || (s.reason = new ce(o, a, i), n(s.reason));
2711
+ s.reason || (s.reason = new ue(o, a, i), n(s.reason));
2712
2712
  });
2713
2713
  }
2714
2714
  /**
@@ -2750,22 +2750,22 @@ let Po = class tn {
2750
2750
  static source() {
2751
2751
  let t;
2752
2752
  return {
2753
- token: new tn(function(r) {
2753
+ token: new nn(function(r) {
2754
2754
  t = r;
2755
2755
  }),
2756
2756
  cancel: t
2757
2757
  };
2758
2758
  }
2759
2759
  };
2760
- function Mo(e) {
2760
+ function jo(e) {
2761
2761
  return function(n) {
2762
2762
  return e.apply(null, n);
2763
2763
  };
2764
2764
  }
2765
- function Uo(e) {
2765
+ function Do(e) {
2766
2766
  return d.isObject(e) && e.isAxiosError === !0;
2767
2767
  }
2768
- const We = {
2768
+ const Ge = {
2769
2769
  Continue: 100,
2770
2770
  SwitchingProtocols: 101,
2771
2771
  Processing: 102,
@@ -2836,74 +2836,96 @@ const We = {
2836
2836
  SslHandshakeFailed: 525,
2837
2837
  InvalidSslCertificate: 526
2838
2838
  };
2839
- Object.entries(We).forEach(([e, t]) => {
2840
- We[t] = e;
2839
+ Object.entries(Ge).forEach(([e, t]) => {
2840
+ Ge[t] = e;
2841
2841
  });
2842
- function nn(e) {
2843
- const t = new ee(e), n = Ht(ee.prototype.request, t);
2842
+ function sn(e) {
2843
+ const t = new ee(e), n = Ft(ee.prototype.request, t);
2844
2844
  return d.extend(n, ee.prototype, t, { allOwnKeys: !0 }), d.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
2845
- return nn(te(e, r));
2845
+ return sn(te(e, r));
2846
2846
  }, n;
2847
2847
  }
2848
- const k = nn(be);
2848
+ const k = sn(xe);
2849
2849
  k.Axios = ee;
2850
- k.CanceledError = ce;
2851
- k.CancelToken = Po;
2852
- k.isCancel = Gt;
2853
- k.VERSION = en;
2854
- k.toFormData = Be;
2850
+ k.CanceledError = ue;
2851
+ k.CancelToken = Uo;
2852
+ k.isCancel = Jt;
2853
+ k.VERSION = tn;
2854
+ k.toFormData = Ve;
2855
2855
  k.AxiosError = S;
2856
2856
  k.Cancel = k.CanceledError;
2857
2857
  k.all = function(t) {
2858
2858
  return Promise.all(t);
2859
2859
  };
2860
- k.spread = Mo;
2861
- k.isAxiosError = Uo;
2860
+ k.spread = jo;
2861
+ k.isAxiosError = Do;
2862
2862
  k.mergeConfig = te;
2863
2863
  k.AxiosHeaders = N;
2864
- k.formToJSON = (e) => Wt(d.isHTMLForm(e) ? new FormData(e) : e);
2865
- k.getAdapter = Qt.getAdapter;
2866
- k.HttpStatusCode = We;
2864
+ k.formToJSON = (e) => Gt(d.isHTMLForm(e) ? new FormData(e) : e);
2865
+ k.getAdapter = en.getAdapter;
2866
+ k.HttpStatusCode = Ge;
2867
2867
  k.default = k;
2868
2868
  const {
2869
- Axios: ui,
2870
- AxiosError: di,
2871
- CanceledError: fi,
2872
- isCancel: pi,
2873
- CancelToken: hi,
2874
- VERSION: mi,
2875
- all: gi,
2876
- Cancel: yi,
2877
- isAxiosError: wi,
2878
- spread: bi,
2879
- toFormData: xi,
2880
- AxiosHeaders: Si,
2881
- HttpStatusCode: Ci,
2882
- formToJSON: vi,
2883
- getAdapter: _i,
2884
- mergeConfig: ki
2885
- } = k, jo = (e) => {
2869
+ Axios: hi,
2870
+ AxiosError: mi,
2871
+ CanceledError: gi,
2872
+ isCancel: yi,
2873
+ CancelToken: wi,
2874
+ VERSION: bi,
2875
+ all: xi,
2876
+ Cancel: Si,
2877
+ isAxiosError: Ci,
2878
+ spread: vi,
2879
+ toFormData: _i,
2880
+ AxiosHeaders: ki,
2881
+ HttpStatusCode: Ri,
2882
+ formToJSON: Ei,
2883
+ getAdapter: Ai,
2884
+ mergeConfig: $i
2885
+ } = k, Io = (e) => {
2886
2886
  const t = document.cookie.match(new RegExp(`(^| )${e}=([^;]+)`));
2887
2887
  return t ? t[2] : null;
2888
- }, Do = (e, t, n = {}) => {
2888
+ }, zo = (e, t, n = {}) => {
2889
2889
  const {
2890
2890
  maxAge: s = 31536e3,
2891
2891
  // 365 days in seconds
2892
- domain: r = sn(),
2892
+ domain: r = rn(),
2893
2893
  secure: o = !0,
2894
2894
  sameSite: a = "Lax",
2895
2895
  path: i = "/"
2896
2896
  } = n;
2897
2897
  let l = `${e}=${t}; max-age=${s}; path=${i}; samesite=${a}`;
2898
2898
  r && (l += `; domain=${r}`), o && (l += "; secure"), document.cookie = l;
2899
- }, Io = (e, t = {}) => {
2900
- const { domain: n = sn(), path: s = "/" } = t;
2899
+ }, qo = (e, t = {}) => {
2900
+ const { domain: n = rn(), path: s = "/" } = t;
2901
2901
  let r = `${e}=; max-age=0; path=${s}`;
2902
2902
  n && (r += `; domain=${n}`), document.cookie = r;
2903
- }, sn = () => {
2903
+ }, rn = () => {
2904
2904
  const e = window.location.hostname;
2905
2905
  return e === "localhost" ? "localhost" : e.endsWith(".test") || e.endsWith(".io") ? "." + e.split(".").slice(-2).join(".") : e.endsWith(".com.au") ? "." + e.split(".").slice(-3).join(".") : e;
2906
- }, Ie = "bolt-next-token", K = me("auth", () => {
2906
+ }, on = [];
2907
+ function Zo(e) {
2908
+ on.push(e);
2909
+ }
2910
+ function Wo() {
2911
+ on.forEach((e) => e());
2912
+ }
2913
+ function Oi(e) {
2914
+ let t = !1;
2915
+ return Zo(() => {
2916
+ t = !1;
2917
+ }), {
2918
+ bootstrapApp: async () => {
2919
+ if (!t)
2920
+ try {
2921
+ await e(), t = !0;
2922
+ } catch (r) {
2923
+ throw console.error("Error during app bootstrap:", r), r;
2924
+ }
2925
+ }
2926
+ };
2927
+ }
2928
+ const ze = "bolt-next-token", Z = ge("auth", () => {
2907
2929
  const e = ne({
2908
2930
  user: null,
2909
2931
  token: null,
@@ -2939,10 +2961,10 @@ const {
2939
2961
  }), t = (c = {}) => {
2940
2962
  c.endpoints && Object.assign(e.endpoints, c.endpoints), c.routes && Object.assign(e.routes, c.routes), c.devCredentials && Object.assign(e.devCredentials, c.devCredentials), c.callbacks && Object.assign(e.callbacks, c.callbacks), c.overrideToken && (e.overrideToken = c.overrideToken);
2941
2963
  }, n = (c) => {
2942
- Do(Ie, c), e.token = c;
2964
+ zo(ze, c), e.token = c;
2943
2965
  }, s = () => {
2944
- Io(Ie), e.token = null;
2945
- }, r = () => jo(Ie), o = async (c) => {
2966
+ qo(ze), e.token = null;
2967
+ }, r = () => Io(ze), o = async (c) => {
2946
2968
  const u = await k.post(e.endpoints.login, c), m = u.headers.authorization;
2947
2969
  return n(m), e.user = u.data, e.callbacks.onLoginSuccess && await e.callbacks.onLoginSuccess(u.data), u.data;
2948
2970
  }, a = async () => {
@@ -2959,7 +2981,7 @@ const {
2959
2981
  } catch (c) {
2960
2982
  throw e.callbacks.onLogoutError && await e.callbacks.onLogoutError(c), c;
2961
2983
  } finally {
2962
- s(), e.user = null;
2984
+ s(), e.user = null, Wo();
2963
2985
  }
2964
2986
  }, i = async () => {
2965
2987
  const c = e.overrideToken || r();
@@ -2977,7 +2999,7 @@ const {
2977
2999
  } finally {
2978
3000
  e.ready = !0;
2979
3001
  }
2980
- }, l = A(() => e.overrideToken ? !0 : !!e.token && !!e.user);
3002
+ }, l = $(() => e.overrideToken ? !0 : !!e.token && !!e.user);
2981
3003
  return {
2982
3004
  state: e,
2983
3005
  initialize: t,
@@ -2989,17 +3011,17 @@ const {
2989
3011
  clearTokenCookie: s,
2990
3012
  getTokenCookie: r
2991
3013
  };
2992
- }), zo = { class: "h-full grid place-content-center relative" }, qo = { class: "absolute top-8 left-8" }, Zo = ["src"], Wo = {
3014
+ }), Go = { class: "h-full grid place-content-center relative" }, Jo = { class: "absolute top-8 left-8" }, Ko = ["src"], Xo = {
2993
3015
  key: 1,
2994
3016
  width: "59",
2995
3017
  height: "23",
2996
3018
  viewBox: "0 0 59 23",
2997
3019
  fill: "none",
2998
3020
  xmlns: "http://www.w3.org/2000/svg"
2999
- }, Go = { class: "max-w-sm grid gap-y-1 -mt-8" }, Jo = { class: "mb-7" }, Ko = { class: "text-gray-600" }, Xo = { class: "grid grid-flow-col justify-between mt-1 mb-4" }, Yo = {
3021
+ }, Yo = { class: "max-w-sm grid gap-y-1 -mt-8" }, Qo = { class: "mb-7" }, ea = { class: "text-gray-600" }, ta = { class: "grid grid-flow-col justify-between mt-1 mb-4" }, na = {
3000
3022
  key: 0,
3001
3023
  class: "text-red-600 text-sm mb-2"
3002
- }, Qo = { key: 0 }, ea = { key: 1 }, ta = {
3024
+ }, sa = { key: 0 }, ra = { key: 1 }, oa = {
3003
3025
  __name: "SparkLoginView",
3004
3026
  props: {
3005
3027
  logo: {
@@ -3016,7 +3038,7 @@ const {
3016
3038
  }
3017
3039
  },
3018
3040
  setup(e) {
3019
- const t = se(), n = Le(), s = Lt(), r = K(), o = e, a = q(!1), i = q(""), l = async (c) => {
3041
+ const t = se(), n = Te(), s = Tt(), r = Z(), o = e, a = q(!1), i = q(""), l = async (c) => {
3020
3042
  a.value = !0, i.value = "";
3021
3043
  try {
3022
3044
  await r.login(c);
@@ -3037,14 +3059,14 @@ const {
3037
3059
  };
3038
3060
  return (c, u) => {
3039
3061
  const m = U("FormKit"), w = U("router-link");
3040
- return g(), y("div", zo, [
3041
- f("div", qo, [
3062
+ return g(), y("div", Go, [
3063
+ f("div", Jo, [
3042
3064
  o.logo ? (g(), y("img", {
3043
3065
  key: 0,
3044
3066
  src: o.logo,
3045
3067
  alt: "Logo",
3046
3068
  class: "h-[23px] w-auto"
3047
- }, null, 8, Zo)) : (g(), y("svg", Wo, [...u[0] || (u[0] = [
3069
+ }, null, 8, Ko)) : (g(), y("svg", Xo, [...u[0] || (u[0] = [
3048
3070
  f("path", {
3049
3071
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3050
3072
  fill: "#1C64F2"
@@ -3063,17 +3085,17 @@ const {
3063
3085
  }, null, -1)
3064
3086
  ])]))
3065
3087
  ]),
3066
- f("div", Go, [
3067
- f("div", Jo, [
3088
+ f("div", Yo, [
3089
+ f("div", Qo, [
3068
3090
  u[1] || (u[1] = f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Log in", -1)),
3069
- f("p", Ko, " Welcome back" + L(x(s).state.app ? ` to ${x(s).state.app}` : "") + "! Please enter your details. ", 1)
3091
+ f("p", ea, " Welcome back" + L(x(s).state.app ? ` to ${x(s).state.app}` : "") + "! Please enter your details. ", 1)
3070
3092
  ]),
3071
3093
  C(m, {
3072
3094
  type: "form",
3073
3095
  onSubmit: l,
3074
3096
  actions: !1
3075
3097
  }, {
3076
- default: $(() => [
3098
+ default: A(() => [
3077
3099
  C(m, {
3078
3100
  label: "Email",
3079
3101
  name: "email",
@@ -3092,27 +3114,27 @@ const {
3092
3114
  "outer-class": "max-w-full",
3093
3115
  value: x(r).state.devCredentials.password
3094
3116
  }, null, 8, ["value"]),
3095
- f("div", Xo, [
3117
+ f("div", ta, [
3096
3118
  u[3] || (u[3] = f("span", null, null, -1)),
3097
3119
  C(w, {
3098
3120
  to: o.forgotPasswordRoute,
3099
3121
  class: "text-sm text-primary-600 font-semibold"
3100
3122
  }, {
3101
- default: $(() => [...u[2] || (u[2] = [
3102
- J(" Forgot password ", -1)
3123
+ default: A(() => [...u[2] || (u[2] = [
3124
+ K(" Forgot password ", -1)
3103
3125
  ])]),
3104
3126
  _: 1
3105
3127
  }, 8, ["to"])
3106
3128
  ]),
3107
- i.value ? (g(), y("div", Yo, L(i.value), 1)) : R("", !0),
3129
+ i.value ? (g(), y("div", na, L(i.value), 1)) : R("", !0),
3108
3130
  C(x(re), {
3109
3131
  type: "submit",
3110
3132
  size: "xl",
3111
3133
  disabled: a.value,
3112
3134
  "button-class": "w-full mb-2"
3113
3135
  }, {
3114
- default: $(() => [
3115
- a.value ? (g(), y("span", ea, "Signing in...")) : (g(), y("span", Qo, "Sign in"))
3136
+ default: A(() => [
3137
+ a.value ? (g(), y("span", ra, "Signing in...")) : (g(), y("span", sa, "Sign in"))
3116
3138
  ]),
3117
3139
  _: 1
3118
3140
  }, 8, ["disabled"])
@@ -3123,7 +3145,7 @@ const {
3123
3145
  ]);
3124
3146
  };
3125
3147
  }
3126
- }, na = {
3148
+ }, aa = {
3127
3149
  __name: "SparkLogoutView",
3128
3150
  props: {
3129
3151
  defaultRedirect: {
@@ -3132,27 +3154,27 @@ const {
3132
3154
  }
3133
3155
  },
3134
3156
  setup(e) {
3135
- const t = se(), n = Le(), s = K(), r = e;
3136
- return cn(async () => {
3157
+ const t = se(), n = Te(), s = Z(), r = e;
3158
+ return dn(async () => {
3137
3159
  await s.logout();
3138
3160
  const o = n.query.redirect;
3139
3161
  o && o.startsWith("http") ? window.location.href = o : await t.push(o || r.defaultRedirect);
3140
3162
  }), (o, a) => null;
3141
3163
  }
3142
- }, sa = { class: "h-full grid place-content-center relative" }, ra = { class: "absolute top-8 left-8" }, oa = ["src"], aa = {
3164
+ }, ia = { class: "h-full grid place-content-center relative" }, la = { class: "absolute top-8 left-8" }, ca = ["src"], ua = {
3143
3165
  key: 1,
3144
3166
  width: "59",
3145
3167
  height: "23",
3146
3168
  viewBox: "0 0 59 23",
3147
3169
  fill: "none",
3148
3170
  xmlns: "http://www.w3.org/2000/svg"
3149
- }, ia = { class: "max-w-sm grid gap-y-1 -mt-8" }, la = {
3171
+ }, da = { class: "max-w-sm grid gap-y-1 -mt-8" }, fa = {
3150
3172
  key: 0,
3151
3173
  class: "text-red-600 text-sm mb-2"
3152
- }, ca = {
3174
+ }, pa = {
3153
3175
  key: 1,
3154
3176
  class: "text-green-600 text-sm mb-2"
3155
- }, ua = { key: 0 }, da = { key: 1 }, fa = {
3177
+ }, ha = { key: 0 }, ma = { key: 1 }, ga = {
3156
3178
  __name: "SparkForgotPasswordView",
3157
3179
  props: {
3158
3180
  logo: {
@@ -3165,7 +3187,7 @@ const {
3165
3187
  }
3166
3188
  },
3167
3189
  setup(e) {
3168
- const t = K(), n = e, s = q(!1), r = q(""), o = q(""), a = async ({ email: i }) => {
3190
+ const t = Z(), n = e, s = q(!1), r = q(""), o = q(""), a = async ({ email: i }) => {
3169
3191
  s.value = !0, r.value = "", o.value = "";
3170
3192
  try {
3171
3193
  await k.post(t.state.endpoints.passwordEmail, { email: i }), o.value = "Password reset link sent! Check your email.";
@@ -3177,14 +3199,14 @@ const {
3177
3199
  };
3178
3200
  return (i, l) => {
3179
3201
  const c = U("FormKit"), u = U("router-link");
3180
- return g(), y("div", sa, [
3181
- f("div", ra, [
3202
+ return g(), y("div", ia, [
3203
+ f("div", la, [
3182
3204
  n.logo ? (g(), y("img", {
3183
3205
  key: 0,
3184
3206
  src: n.logo,
3185
3207
  alt: "Logo",
3186
3208
  class: "h-[23px] w-auto"
3187
- }, null, 8, oa)) : (g(), y("svg", aa, [...l[0] || (l[0] = [
3209
+ }, null, 8, ca)) : (g(), y("svg", ua, [...l[0] || (l[0] = [
3188
3210
  f("path", {
3189
3211
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3190
3212
  fill: "#1C64F2"
@@ -3203,7 +3225,7 @@ const {
3203
3225
  }, null, -1)
3204
3226
  ])]))
3205
3227
  ]),
3206
- f("div", ia, [
3228
+ f("div", da, [
3207
3229
  l[2] || (l[2] = f("div", { class: "mb-7" }, [
3208
3230
  f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Reset password"),
3209
3231
  f("p", { class: "text-gray-600" }, " Enter your email and we'll send you a link to reset your password. ")
@@ -3213,7 +3235,7 @@ const {
3213
3235
  onSubmit: a,
3214
3236
  actions: !1
3215
3237
  }, {
3216
- default: $(() => [
3238
+ default: A(() => [
3217
3239
  C(c, {
3218
3240
  label: "Email",
3219
3241
  name: "email",
@@ -3222,16 +3244,16 @@ const {
3222
3244
  validation: "required|email",
3223
3245
  "outer-class": "max-w-full"
3224
3246
  }),
3225
- r.value ? (g(), y("div", la, L(r.value), 1)) : R("", !0),
3226
- o.value ? (g(), y("div", ca, L(o.value), 1)) : R("", !0),
3247
+ r.value ? (g(), y("div", fa, L(r.value), 1)) : R("", !0),
3248
+ o.value ? (g(), y("div", pa, L(o.value), 1)) : R("", !0),
3227
3249
  C(x(re), {
3228
3250
  type: "submit",
3229
3251
  size: "xl",
3230
3252
  disabled: s.value,
3231
3253
  "button-class": "w-full mb-2"
3232
3254
  }, {
3233
- default: $(() => [
3234
- s.value ? (g(), y("span", da, "Sending...")) : (g(), y("span", ua, "Send reset link"))
3255
+ default: A(() => [
3256
+ s.value ? (g(), y("span", ma, "Sending...")) : (g(), y("span", ha, "Send reset link"))
3235
3257
  ]),
3236
3258
  _: 1
3237
3259
  }, 8, ["disabled"]),
@@ -3239,8 +3261,8 @@ const {
3239
3261
  to: n.loginRoute,
3240
3262
  class: "text-sm text-center text-primary-600 font-semibold block"
3241
3263
  }, {
3242
- default: $(() => [...l[1] || (l[1] = [
3243
- J(" Back to login ", -1)
3264
+ default: A(() => [...l[1] || (l[1] = [
3265
+ K(" Back to login ", -1)
3244
3266
  ])]),
3245
3267
  _: 1
3246
3268
  }, 8, ["to"])
@@ -3251,17 +3273,17 @@ const {
3251
3273
  ]);
3252
3274
  };
3253
3275
  }
3254
- }, pa = { class: "h-full grid place-content-center relative" }, ha = { class: "absolute top-8 left-8" }, ma = ["src"], ga = {
3276
+ }, ya = { class: "h-full grid place-content-center relative" }, wa = { class: "absolute top-8 left-8" }, ba = ["src"], xa = {
3255
3277
  key: 1,
3256
3278
  width: "59",
3257
3279
  height: "23",
3258
3280
  viewBox: "0 0 59 23",
3259
3281
  fill: "none",
3260
3282
  xmlns: "http://www.w3.org/2000/svg"
3261
- }, ya = { class: "max-w-sm grid gap-y-1 -mt-8" }, wa = {
3283
+ }, Sa = { class: "max-w-sm grid gap-y-1 -mt-8" }, Ca = {
3262
3284
  key: 0,
3263
3285
  class: "text-red-600 text-sm mb-2"
3264
- }, ba = { key: 0 }, xa = { key: 1 }, Sa = {
3286
+ }, va = { key: 0 }, _a = { key: 1 }, ka = {
3265
3287
  __name: "SparkResetPasswordView",
3266
3288
  props: {
3267
3289
  logo: {
@@ -3274,7 +3296,7 @@ const {
3274
3296
  }
3275
3297
  },
3276
3298
  setup(e) {
3277
- const t = se(), n = Le(), s = K(), r = e, o = q(!1), a = q(""), i = async ({ password: l, password_confirmation: c }) => {
3299
+ const t = se(), n = Te(), s = Z(), r = e, o = q(!1), a = q(""), i = async ({ password: l, password_confirmation: c }) => {
3278
3300
  o.value = !0, a.value = "";
3279
3301
  try {
3280
3302
  await k.post(s.state.endpoints.passwordReset, {
@@ -3291,14 +3313,14 @@ const {
3291
3313
  };
3292
3314
  return (l, c) => {
3293
3315
  const u = U("FormKit");
3294
- return g(), y("div", pa, [
3295
- f("div", ha, [
3316
+ return g(), y("div", ya, [
3317
+ f("div", wa, [
3296
3318
  r.logo ? (g(), y("img", {
3297
3319
  key: 0,
3298
3320
  src: r.logo,
3299
3321
  alt: "Logo",
3300
3322
  class: "h-[23px] w-auto"
3301
- }, null, 8, ma)) : (g(), y("svg", ga, [...c[0] || (c[0] = [
3323
+ }, null, 8, ba)) : (g(), y("svg", xa, [...c[0] || (c[0] = [
3302
3324
  f("path", {
3303
3325
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3304
3326
  fill: "#1C64F2"
@@ -3317,7 +3339,7 @@ const {
3317
3339
  }, null, -1)
3318
3340
  ])]))
3319
3341
  ]),
3320
- f("div", ya, [
3342
+ f("div", Sa, [
3321
3343
  c[1] || (c[1] = f("div", { class: "mb-7" }, [
3322
3344
  f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Set new password"),
3323
3345
  f("p", { class: "text-gray-600" }, " Enter your new password below. ")
@@ -3327,7 +3349,7 @@ const {
3327
3349
  onSubmit: i,
3328
3350
  actions: !1
3329
3351
  }, {
3330
- default: $(() => [
3352
+ default: A(() => [
3331
3353
  C(u, {
3332
3354
  label: "New Password",
3333
3355
  name: "password",
@@ -3344,15 +3366,15 @@ const {
3344
3366
  validation: "required|confirm:password",
3345
3367
  "outer-class": "max-w-full"
3346
3368
  }),
3347
- a.value ? (g(), y("div", wa, L(a.value), 1)) : R("", !0),
3369
+ a.value ? (g(), y("div", Ca, L(a.value), 1)) : R("", !0),
3348
3370
  C(x(re), {
3349
3371
  type: "submit",
3350
3372
  size: "xl",
3351
3373
  disabled: o.value,
3352
3374
  "button-class": "w-full mb-2"
3353
3375
  }, {
3354
- default: $(() => [
3355
- o.value ? (g(), y("span", xa, "Resetting...")) : (g(), y("span", ba, "Reset password"))
3376
+ default: A(() => [
3377
+ o.value ? (g(), y("span", _a, "Resetting...")) : (g(), y("span", va, "Reset password"))
3356
3378
  ]),
3357
3379
  _: 1
3358
3380
  }, 8, ["disabled"])
@@ -3363,14 +3385,14 @@ const {
3363
3385
  ]);
3364
3386
  };
3365
3387
  }
3366
- }, Ca = { class: "h-full grid place-content-center relative" }, va = { class: "absolute top-8 left-8" }, _a = ["src"], ka = {
3388
+ }, Ra = { class: "h-full grid place-content-center relative" }, Ea = { class: "absolute top-8 left-8" }, Aa = ["src"], $a = {
3367
3389
  key: 1,
3368
3390
  width: "59",
3369
3391
  height: "23",
3370
3392
  viewBox: "0 0 59 23",
3371
3393
  fill: "none",
3372
3394
  xmlns: "http://www.w3.org/2000/svg"
3373
- }, Ra = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, Ea = { class: "flex gap-4 justify-center" }, $a = {
3395
+ }, Oa = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, La = { class: "flex gap-4 justify-center" }, Ta = {
3374
3396
  __name: "SparkError403View",
3375
3397
  props: {
3376
3398
  logo: {
@@ -3386,14 +3408,14 @@ const {
3386
3408
  const t = se(), n = e, s = () => {
3387
3409
  t.push(n.homeRoute);
3388
3410
  };
3389
- return (r, o) => (g(), y("div", Ca, [
3390
- f("div", va, [
3411
+ return (r, o) => (g(), y("div", Ra, [
3412
+ f("div", Ea, [
3391
3413
  n.logo ? (g(), y("img", {
3392
3414
  key: 0,
3393
3415
  src: n.logo,
3394
3416
  alt: "Logo",
3395
3417
  class: "h-[23px] w-auto"
3396
- }, null, 8, _a)) : (g(), y("svg", ka, [...o[0] || (o[0] = [
3418
+ }, null, 8, Aa)) : (g(), y("svg", $a, [...o[0] || (o[0] = [
3397
3419
  f("path", {
3398
3420
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3399
3421
  fill: "#1C64F2"
@@ -3412,23 +3434,23 @@ const {
3412
3434
  }, null, -1)
3413
3435
  ])]))
3414
3436
  ]),
3415
- f("div", Ra, [
3437
+ f("div", Oa, [
3416
3438
  o[2] || (o[2] = f("div", null, [
3417
3439
  f("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "403"),
3418
3440
  f("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, " Access Forbidden "),
3419
3441
  f("p", { class: "text-gray-600" }, [
3420
- J(" You don't have permission to access this resource."),
3442
+ K(" You don't have permission to access this resource."),
3421
3443
  f("br"),
3422
- J(" If you believe this is an error, please contact your administrator. ")
3444
+ K(" If you believe this is an error, please contact your administrator. ")
3423
3445
  ])
3424
3446
  ], -1)),
3425
- f("div", Ea, [
3447
+ f("div", La, [
3426
3448
  C(x(re), {
3427
3449
  onClick: s,
3428
3450
  size: "lg"
3429
3451
  }, {
3430
- default: $(() => [...o[1] || (o[1] = [
3431
- J(" Go to Home ", -1)
3452
+ default: A(() => [...o[1] || (o[1] = [
3453
+ K(" Go to Home ", -1)
3432
3454
  ])]),
3433
3455
  _: 1
3434
3456
  })
@@ -3436,14 +3458,14 @@ const {
3436
3458
  ])
3437
3459
  ]));
3438
3460
  }
3439
- }, Aa = { class: "h-full grid place-content-center relative" }, Oa = { class: "absolute top-8 left-8" }, La = ["src"], Ta = {
3461
+ }, Ha = { class: "h-full grid place-content-center relative" }, Fa = { class: "absolute top-8 left-8" }, Ba = ["src"], Va = {
3440
3462
  key: 1,
3441
3463
  width: "59",
3442
3464
  height: "23",
3443
3465
  viewBox: "0 0 59 23",
3444
3466
  fill: "none",
3445
3467
  xmlns: "http://www.w3.org/2000/svg"
3446
- }, Ha = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, Fa = { class: "flex gap-4 justify-center" }, Ba = {
3468
+ }, Na = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, Pa = { class: "flex gap-4 justify-center" }, Ma = {
3447
3469
  __name: "SparkError404View",
3448
3470
  props: {
3449
3471
  logo: {
@@ -3459,14 +3481,14 @@ const {
3459
3481
  const t = se(), n = e, s = () => {
3460
3482
  t.push(n.homeRoute);
3461
3483
  };
3462
- return (r, o) => (g(), y("div", Aa, [
3463
- f("div", Oa, [
3484
+ return (r, o) => (g(), y("div", Ha, [
3485
+ f("div", Fa, [
3464
3486
  n.logo ? (g(), y("img", {
3465
3487
  key: 0,
3466
3488
  src: n.logo,
3467
3489
  alt: "Logo",
3468
3490
  class: "h-[23px] w-auto"
3469
- }, null, 8, La)) : (g(), y("svg", Ta, [...o[0] || (o[0] = [
3491
+ }, null, 8, Ba)) : (g(), y("svg", Va, [...o[0] || (o[0] = [
3470
3492
  f("path", {
3471
3493
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3472
3494
  fill: "#1C64F2"
@@ -3485,19 +3507,19 @@ const {
3485
3507
  }, null, -1)
3486
3508
  ])]))
3487
3509
  ]),
3488
- f("div", Ha, [
3510
+ f("div", Na, [
3489
3511
  o[2] || (o[2] = f("div", null, [
3490
3512
  f("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "404"),
3491
3513
  f("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, " Page Not Found "),
3492
3514
  f("p", { class: "text-gray-600" }, " The page you're looking for doesn't exist or has been moved. ")
3493
3515
  ], -1)),
3494
- f("div", Fa, [
3516
+ f("div", Pa, [
3495
3517
  C(x(re), {
3496
3518
  onClick: s,
3497
3519
  size: "lg"
3498
3520
  }, {
3499
- default: $(() => [...o[1] || (o[1] = [
3500
- J(" Go to Home ", -1)
3521
+ default: A(() => [...o[1] || (o[1] = [
3522
+ K(" Go to Home ", -1)
3501
3523
  ])]),
3502
3524
  _: 1
3503
3525
  })
@@ -3505,14 +3527,14 @@ const {
3505
3527
  ])
3506
3528
  ]));
3507
3529
  }
3508
- }, Va = { class: "h-full grid place-content-center relative" }, Na = { class: "absolute top-8 left-8" }, Pa = ["src"], Ma = {
3530
+ }, Ua = { class: "h-full grid place-content-center relative" }, ja = { class: "absolute top-8 left-8" }, Da = ["src"], Ia = {
3509
3531
  key: 1,
3510
3532
  width: "59",
3511
3533
  height: "23",
3512
3534
  viewBox: "0 0 59 23",
3513
3535
  fill: "none",
3514
3536
  xmlns: "http://www.w3.org/2000/svg"
3515
- }, Ua = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, ja = { class: "text-primary-600 text-7xl font-bold mb-4" }, Da = { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, Ia = { class: "text-gray-600" }, za = { class: "flex gap-4 justify-center" }, Ri = {
3537
+ }, za = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, qa = { class: "text-primary-600 text-7xl font-bold mb-4" }, Za = { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, Wa = { class: "text-gray-600" }, Ga = { class: "flex gap-4 justify-center" }, Li = {
3516
3538
  __name: "SparkErrorGeneralView",
3517
3539
  props: {
3518
3540
  logo: {
@@ -3540,14 +3562,14 @@ const {
3540
3562
  const t = se(), n = e, s = () => {
3541
3563
  t.push(n.homeRoute);
3542
3564
  };
3543
- return (r, o) => (g(), y("div", Va, [
3544
- f("div", Na, [
3565
+ return (r, o) => (g(), y("div", Ua, [
3566
+ f("div", ja, [
3545
3567
  n.logo ? (g(), y("img", {
3546
3568
  key: 0,
3547
3569
  src: n.logo,
3548
3570
  alt: "Logo",
3549
3571
  class: "h-[23px] w-auto"
3550
- }, null, 8, Pa)) : (g(), y("svg", Ma, [...o[0] || (o[0] = [
3572
+ }, null, 8, Da)) : (g(), y("svg", Ia, [...o[0] || (o[0] = [
3551
3573
  f("path", {
3552
3574
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3553
3575
  fill: "#1C64F2"
@@ -3566,19 +3588,19 @@ const {
3566
3588
  }, null, -1)
3567
3589
  ])]))
3568
3590
  ]),
3569
- f("div", Ua, [
3591
+ f("div", za, [
3570
3592
  f("div", null, [
3571
- f("div", ja, L(n.errorCode || "Error"), 1),
3572
- f("h1", Da, L(n.title || "Something went wrong"), 1),
3573
- f("p", Ia, L(n.message || "An unexpected error occurred. Please try again later."), 1)
3593
+ f("div", qa, L(n.errorCode || "Error"), 1),
3594
+ f("h1", Za, L(n.title || "Something went wrong"), 1),
3595
+ f("p", Wa, L(n.message || "An unexpected error occurred. Please try again later."), 1)
3574
3596
  ]),
3575
- f("div", za, [
3597
+ f("div", Ga, [
3576
3598
  C(x(re), {
3577
3599
  onClick: s,
3578
3600
  size: "lg"
3579
3601
  }, {
3580
- default: $(() => [...o[1] || (o[1] = [
3581
- J(" Go to Home ", -1)
3602
+ default: A(() => [...o[1] || (o[1] = [
3603
+ K(" Go to Home ", -1)
3582
3604
  ])]),
3583
3605
  _: 1
3584
3606
  })
@@ -3587,7 +3609,7 @@ const {
3587
3609
  ]));
3588
3610
  }
3589
3611
  };
3590
- function Ei(e = {}) {
3612
+ function Ti(e = {}) {
3591
3613
  const {
3592
3614
  loginPath: t = "/login",
3593
3615
  logoutPath: n = "/logout",
@@ -3600,41 +3622,41 @@ function Ei(e = {}) {
3600
3622
  {
3601
3623
  path: t,
3602
3624
  name: "login",
3603
- component: ta,
3625
+ component: oa,
3604
3626
  props: { logo: o, defaultRedirect: a },
3605
3627
  meta: { auth: !1 }
3606
3628
  },
3607
3629
  {
3608
3630
  path: n,
3609
3631
  name: "logout",
3610
- component: na,
3632
+ component: aa,
3611
3633
  props: { defaultRedirect: t },
3612
3634
  meta: { auth: !1 }
3613
3635
  },
3614
3636
  {
3615
3637
  path: s,
3616
3638
  name: "forgot-password",
3617
- component: fa,
3639
+ component: ga,
3618
3640
  props: { logo: o, loginRoute: t },
3619
3641
  meta: { auth: !1 }
3620
3642
  },
3621
3643
  {
3622
3644
  path: r,
3623
3645
  name: "password-reset",
3624
- component: Sa,
3646
+ component: ka,
3625
3647
  props: { logo: o, loginRoute: t },
3626
3648
  meta: { auth: !1 }
3627
3649
  }
3628
3650
  ];
3629
3651
  }
3630
- function $i(e, t = {}) {
3652
+ function Hi(e, t = {}) {
3631
3653
  const { defaultAuthenticatedRoute: n = "/dashboard" } = t;
3632
3654
  e.beforeEach(async (s, r, o) => {
3633
- const a = K();
3634
- a.state.ready || await a.fetchUser(), qa(s, o, a, n);
3655
+ const a = Z();
3656
+ a.state.ready || await a.fetchUser(), Ja(s, o, a, n);
3635
3657
  });
3636
3658
  }
3637
- function qa(e, t, n, s) {
3659
+ function Ja(e, t, n, s) {
3638
3660
  const r = e.meta.auth !== !1, o = n.check;
3639
3661
  if (n.state.overrideToken && e.path === "/logout") {
3640
3662
  t({ path: s });
@@ -3672,7 +3694,7 @@ function qa(e, t, n, s) {
3672
3694
  t();
3673
3695
  }
3674
3696
  }
3675
- function Ai(e = {}) {
3697
+ function Fi(e = {}) {
3676
3698
  const {
3677
3699
  forbiddenPath: t = "/error/403",
3678
3700
  logo: n = "",
@@ -3681,12 +3703,12 @@ function Ai(e = {}) {
3681
3703
  return {
3682
3704
  path: t,
3683
3705
  name: "error-403",
3684
- component: $a,
3706
+ component: Ta,
3685
3707
  props: { logo: n, homeRoute: s },
3686
3708
  meta: { auth: !1 }
3687
3709
  };
3688
3710
  }
3689
- function Oi(e = {}) {
3711
+ function Bi(e = {}) {
3690
3712
  const {
3691
3713
  logo: t = "",
3692
3714
  homeRoute: n = "/dashboard"
@@ -3694,12 +3716,20 @@ function Oi(e = {}) {
3694
3716
  return {
3695
3717
  path: "/:pathMatch(.*)*",
3696
3718
  name: "error-404",
3697
- component: Ba,
3719
+ component: Ma,
3698
3720
  props: { logo: t, homeRoute: n },
3699
3721
  meta: { auth: !1 }
3700
3722
  };
3701
3723
  }
3702
- function Za(e = {}) {
3724
+ function Vi(e, t) {
3725
+ e.beforeResolve(async (n) => {
3726
+ if (n.meta.auth !== !1) {
3727
+ const s = Z();
3728
+ s.state.ready && s.check && await t();
3729
+ }
3730
+ });
3731
+ }
3732
+ function Ka(e = {}) {
3703
3733
  const t = k.create({
3704
3734
  baseURL: e.baseURL || "",
3705
3735
  timeout: e.timeout || 3e4,
@@ -3711,7 +3741,7 @@ function Za(e = {}) {
3711
3741
  return t.interceptors.request.use(
3712
3742
  (n) => {
3713
3743
  try {
3714
- const s = K();
3744
+ const s = Z();
3715
3745
  s.state.overrideToken ? n.headers.Authorization = `Bearer ${s.state.overrideToken}` : s.state.token && (n.headers.Authorization = `Bearer ${s.state.token}`);
3716
3746
  } catch {
3717
3747
  }
@@ -3723,14 +3753,14 @@ function Za(e = {}) {
3723
3753
  async (n) => {
3724
3754
  if (n.response?.status === 401)
3725
3755
  try {
3726
- const s = K();
3756
+ const s = Z();
3727
3757
  await s.logout(), window.location.href = s.state.routes.auth;
3728
3758
  } catch (s) {
3729
3759
  console.error("Error during auto-logout:", s), window.location.href = "/login";
3730
3760
  }
3731
3761
  if (n.response?.status === 403)
3732
3762
  try {
3733
- const s = K();
3763
+ const s = Z();
3734
3764
  window.location.href = s.state.routes.forbidden;
3735
3765
  } catch (s) {
3736
3766
  console.error("Error during 403 redirect:", s), window.location.href = "/error/403";
@@ -3739,16 +3769,21 @@ function Za(e = {}) {
3739
3769
  }
3740
3770
  ), t;
3741
3771
  }
3742
- function Li(e, t = {}) {
3743
- const n = Za(t);
3744
- return e.provide("axios", n), e.config.globalProperties.$axios = n, n;
3772
+ let ae = null;
3773
+ function Ni(e, t = {}) {
3774
+ return ae = Ka(t), e.provide("axios", ae), e.config.globalProperties.$axios = ae, ae;
3775
+ }
3776
+ function Pi() {
3777
+ if (!ae)
3778
+ throw new Error("Axios instance not initialized. Call setupAxios() first.");
3779
+ return ae;
3745
3780
  }
3746
- const Ti = me("sparkNav", () => {
3781
+ const Mi = ge("sparkNav", () => {
3747
3782
  const e = ne({
3748
3783
  menu: [],
3749
3784
  collapsed: !1,
3750
3785
  hidden: !1
3751
- }), t = se(), n = Le(), s = (c = []) => {
3786
+ }), t = se(), n = Te(), s = (c = []) => {
3752
3787
  e.menu = c;
3753
3788
  }, r = (c, u) => {
3754
3789
  for (const m of c) {
@@ -3783,7 +3818,7 @@ const Ti = me("sparkNav", () => {
3783
3818
  u(e.menu);
3784
3819
  }
3785
3820
  };
3786
- return un(
3821
+ return fn(
3787
3822
  () => n.path,
3788
3823
  () => {
3789
3824
  l();
@@ -3800,38 +3835,41 @@ const Ti = me("sparkNav", () => {
3800
3835
  });
3801
3836
  export {
3802
3837
  B as Icons,
3803
- ni as SparkAlert,
3804
- ps as SparkAppSelector,
3805
- As as SparkBrandSelector,
3838
+ ai as SparkAlert,
3839
+ ms as SparkAppSelector,
3840
+ Ls as SparkBrandSelector,
3806
3841
  re as SparkButton,
3807
- si as SparkButtonGroup,
3808
- ri as SparkCard,
3809
- ai as SparkDefaultContainer,
3810
- $a as SparkError403View,
3811
- Ba as SparkError404View,
3812
- Ri as SparkErrorGeneralView,
3813
- fa as SparkForgotPasswordView,
3814
- ta as SparkLoginView,
3815
- na as SparkLogoutView,
3816
- Ns as SparkModalContainer,
3817
- oi as SparkModalDialog,
3818
- ot as SparkOverlay,
3819
- ii as SparkPublicContainer,
3820
- Sa as SparkResetPasswordView,
3821
- ei as addIcons,
3822
- Ai as create403Route,
3823
- Oi as create404Route,
3824
- Ei as createAuthRoutes,
3825
- Za as createAxiosInstance,
3826
- $i as setupAuthGuards,
3827
- Li as setupAxios,
3828
- ti as setupFontAwesome,
3829
- fe as sparkModalService,
3830
- ve as sparkOverlayService,
3831
- Ot as useSparkAppSelectorStore,
3832
- Lt as useSparkAppStore,
3833
- K as useSparkAuthStore,
3834
- Tt as useSparkBrandFilterStore,
3835
- Ti as useSparkNavStore,
3836
- at as useSparkOverlay
3842
+ ii as SparkButtonGroup,
3843
+ li as SparkCard,
3844
+ ui as SparkDefaultContainer,
3845
+ Ta as SparkError403View,
3846
+ Ma as SparkError404View,
3847
+ Li as SparkErrorGeneralView,
3848
+ ga as SparkForgotPasswordView,
3849
+ oa as SparkLoginView,
3850
+ aa as SparkLogoutView,
3851
+ Ms as SparkModalContainer,
3852
+ ci as SparkModalDialog,
3853
+ at as SparkOverlay,
3854
+ di as SparkPublicContainer,
3855
+ ka as SparkResetPasswordView,
3856
+ ri as addIcons,
3857
+ Fi as create403Route,
3858
+ Bi as create404Route,
3859
+ Ti as createAuthRoutes,
3860
+ Ka as createAxiosInstance,
3861
+ Oi as createBootstrapService,
3862
+ Pi as getAxiosInstance,
3863
+ Hi as setupAuthGuards,
3864
+ Ni as setupAxios,
3865
+ Vi as setupBootstrapGuard,
3866
+ oi as setupFontAwesome,
3867
+ pe as sparkModalService,
3868
+ _e as sparkOverlayService,
3869
+ Lt as useSparkAppSelectorStore,
3870
+ Tt as useSparkAppStore,
3871
+ Z as useSparkAuthStore,
3872
+ Ht as useSparkBrandFilterStore,
3873
+ Mi as useSparkNavStore,
3874
+ it as useSparkOverlay
3837
3875
  };