@wishbone-media/spark 0.12.1 → 0.13.1

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,10 +1,10 @@
1
- import { computed as A, resolveComponent as U, createElementBlock as g, openBlock as m, normalizeClass as k, createElementVNode as f, createVNode as C, unref as b, renderSlot as M, reactive as se, Fragment as ie, renderList as me, createCommentVNode as _, toDisplayString as O, createBlock as Z, resolveDynamicComponent as $e, ref as q, inject as on, provide as an, markRaw as vt, withCtx as R, mergeProps as _t, toHandlers as kt, createTextVNode as J, useSlots as ln, withModifiers as fe, h as rt, onMounted as cn, watch as un } from "vue";
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
2
  import { library as Rt } from "@fortawesome/fontawesome-svg-core";
3
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 Ln, faEllipsis as On, 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 ge } from "pinia";
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
6
  import { TransitionRoot as Et, Dialog as $t, TransitionChild as Ae, DialogPanel as At } from "@headlessui/vue";
7
- import { useRouter as re, useRoute as Oe } from "vue-router";
7
+ import { useRouter as se, useRoute as Le } from "vue-router";
8
8
  const B = {
9
9
  farArrowLeftToLine: Zn,
10
10
  farArrowRightToLine: qn,
@@ -21,8 +21,8 @@ const B = {
21
21
  farCircleXmark: Fn,
22
22
  farComments: Hn,
23
23
  farEdit: Tn,
24
- farEllipsis: On,
25
- farEllipsisVertical: Ln,
24
+ farEllipsis: Ln,
25
+ farEllipsisVertical: On,
26
26
  farExclamationTriangle: An,
27
27
  farFaceSmileRelaxed: $n,
28
28
  farFaceSmileWink: En,
@@ -42,13 +42,13 @@ const B = {
42
42
  farXmark: pn,
43
43
  farSignOut: fn
44
44
  };
45
- function Qa(e) {
45
+ function ei(e) {
46
46
  Object.assign(B, e), Rt.add(...Object.values(e));
47
47
  }
48
- function ei(e) {
48
+ function ti(e) {
49
49
  Rt.add(...Object.values(B)), e.component("FontAwesomeIcon", dn);
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" }, ti = {
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 = {
52
52
  __name: "SparkAlert",
53
53
  props: {
54
54
  type: {
@@ -82,14 +82,14 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
82
82
  })[t.type]);
83
83
  return (a, i) => {
84
84
  const l = U("font-awesome-icon");
85
- return m(), g("div", {
86
- class: k(["rounded-md border p-4", n.value])
85
+ return g(), y("div", {
86
+ class: E(["rounded-md border p-4", n.value])
87
87
  }, [
88
88
  f("div", Wn, [
89
89
  f("div", Gn, [
90
90
  C(l, {
91
- icon: b(B)[r.value],
92
- class: k(s.value)
91
+ icon: x(B)[r.value],
92
+ class: E(s.value)
93
93
  }, null, 8, ["icon", "class"])
94
94
  ]),
95
95
  f("div", Jn, [
@@ -99,11 +99,11 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
99
99
  f("div", Xn, [
100
100
  f("button", {
101
101
  type: "button",
102
- class: k(["inline-flex rounded-md px-2 py-1.5", o.value]),
103
- onClick: i[0] || (i[0] = (u) => a.$emit("close"))
102
+ class: E(["inline-flex rounded-md px-2 py-1.5", o.value]),
103
+ onClick: i[0] || (i[0] = (c) => a.$emit("close"))
104
104
  }, [
105
105
  C(l, {
106
- icon: b(B).farXmark
106
+ icon: x(B).farXmark
107
107
  }, null, 8, ["icon"])
108
108
  ], 2)
109
109
  ])
@@ -155,8 +155,8 @@ 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
- ], Lt = ge("sparkAppSelector", () => {
159
- const e = se({
158
+ ], Ot = me("sparkAppSelector", () => {
159
+ const e = ne({
160
160
  apps: [...Me]
161
161
  }), t = (o = {}) => {
162
162
  if (o.apps && Array.isArray(o.apps)) {
@@ -201,8 +201,8 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
201
201
  return a ? a.icon : "";
202
202
  }
203
203
  };
204
- }), Ot = ge("sparkApp", () => {
205
- const e = se({
204
+ }), Lt = me("sparkApp", () => {
205
+ const e = ne({
206
206
  app: "",
207
207
  homeRoute: "dashboard",
208
208
  showBrandSelector: !0,
@@ -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 = Lt(), r = Ot(), o = A(() => {
240
+ const n = t, s = Ot(), r = Lt(), o = A(() => {
241
241
  const i = r.state.app;
242
242
  return s.state.apps.map((l) => ({
243
243
  ...l,
@@ -247,63 +247,63 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
247
247
  n("select", i);
248
248
  };
249
249
  return (i, l) => {
250
- const u = U("font-awesome-icon");
251
- return m(), g("div", Yn, [
250
+ const c = U("font-awesome-icon");
251
+ return g(), y("div", Yn, [
252
252
  f("div", Qn, [
253
253
  f("div", es, [
254
254
  f("div", ts, [
255
255
  l[1] || (l[1] = f("div", null, "Mr Group Network", -1)),
256
256
  f("div", ns, [
257
- C(u, {
258
- icon: b(B).farTimes,
257
+ C(c, {
258
+ icon: x(B).farTimes,
259
259
  class: "h-[15px] w-[15px] shrink-0 text-gray-400 cursor-pointer",
260
- onClick: l[0] || (l[0] = (c) => n("close"))
260
+ onClick: l[0] || (l[0] = (u) => n("close"))
261
261
  }, null, 8, ["icon"])
262
262
  ])
263
263
  ]),
264
- (m(!0), g(ie, null, me(o.value, (c) => (m(), g("a", {
265
- key: c.name,
266
- href: c.href,
264
+ (g(!0), y(ae, null, he(o.value, (u) => (g(), y("a", {
265
+ key: u.name,
266
+ href: u.href,
267
267
  target: "_blank",
268
- class: k([c.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
269
- onClick: (h) => c.current ? h.preventDefault() : a(c)
268
+ class: E([u.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
269
+ onClick: (m) => u.current ? m.preventDefault() : a(u)
270
270
  }, [
271
271
  f("div", rs, [
272
272
  f("div", os, [
273
- f("div", as, O(c.name), 1),
274
- c.current ? (m(), g("span", is, " Active ")) : _("", !0)
273
+ f("div", as, L(u.name), 1),
274
+ u.current ? (g(), y("span", is, " Active ")) : R("", !0)
275
275
  ]),
276
- f("div", ls, O(c.description), 1)
276
+ f("div", ls, L(u.description), 1)
277
277
  ]),
278
278
  f("div", cs, [
279
- C(u, {
280
- class: k([c.current ? "text-gray-700" : "text-gray-400", "h-5 w-5 shrink-0"]),
281
- icon: b(B)[c.icon]
279
+ C(c, {
280
+ class: E([u.current ? "text-gray-700" : "text-gray-400", "h-5 w-5 shrink-0"]),
281
+ icon: x(B)[u.icon]
282
282
  }, null, 8, ["class", "icon"])
283
283
  ])
284
284
  ], 10, ss))), 128)),
285
285
  l[2] || (l[2] = f("div", null, null, -1))
286
286
  ]),
287
287
  f("div", us, [
288
- i.$slots.bottom || e.bottomSlot ? (m(), g("div", ds, [
288
+ i.$slots.bottom || e.bottomSlot ? (g(), y("div", ds, [
289
289
  M(i.$slots, "bottom", {}, () => [
290
- e.bottomSlot ? (m(), Z($e(e.bottomSlot), { key: 0 })) : _("", !0)
290
+ e.bottomSlot ? (g(), Z($e(e.bottomSlot), { key: 0 })) : R("", !0)
291
291
  ])
292
- ])) : _("", !0),
293
- i.$slots.footer || e.footerSlot ? (m(), g("div", fs, [
292
+ ])) : R("", !0),
293
+ i.$slots.footer || e.footerSlot ? (g(), y("div", fs, [
294
294
  M(i.$slots, "footer", {}, () => [
295
- e.footerSlot ? (m(), Z($e(e.footerSlot), { key: 0 })) : _("", !0)
295
+ e.footerSlot ? (g(), Z($e(e.footerSlot), { key: 0 })) : R("", !0)
296
296
  ])
297
- ])) : _("", !0)
297
+ ])) : R("", !0)
298
298
  ])
299
299
  ])
300
300
  ]);
301
301
  };
302
302
  }
303
- }, Tt = ge(
303
+ }, Tt = me(
304
304
  "brandFilter",
305
305
  () => {
306
- const e = se({
306
+ const e = ne({
307
307
  brands: []
308
308
  }), t = (o = {}) => {
309
309
  if (!o.brands || !Array.isArray(o.brands)) {
@@ -311,8 +311,8 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
311
311
  return;
312
312
  }
313
313
  const a = o.brands.filter((l) => {
314
- const u = l.id && l.name && l.logo;
315
- return u || console.warn("useSparkBrandFilterStore: Invalid brand object", l), u;
314
+ const c = l.id && l.name && l.logo;
315
+ return c || console.warn("useSparkBrandFilterStore: Invalid brand object", l), c;
316
316
  }), i = a.filter((l) => l.current);
317
317
  i.length === 0 && a.length > 0 ? a[0].current = !0 : i.length > 1 && a.forEach((l) => {
318
318
  l.current = l === i[0];
@@ -359,24 +359,24 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
359
359
  };
360
360
  return (o, a) => {
361
361
  const i = U("font-awesome-icon");
362
- return m(), g("div", hs, [
362
+ return g(), y("div", hs, [
363
363
  f("div", ms, [
364
364
  f("div", gs, [
365
365
  f("div", ys, [
366
366
  a[1] || (a[1] = f("div", null, "Filter by Brand", -1)),
367
367
  f("div", ws, [
368
368
  C(i, {
369
- icon: b(B).farTimes,
369
+ icon: x(B).farTimes,
370
370
  class: "size-4 text-gray-400 cursor-pointer",
371
371
  onClick: a[0] || (a[0] = (l) => n("close"))
372
372
  }, null, 8, ["icon"])
373
373
  ])
374
374
  ]),
375
- b(s).allBrands.length === 0 ? (m(), g("div", bs, " No brands configured ")) : _("", !0),
376
- (m(!0), g(ie, null, me(b(s).allBrands, (l) => (m(), g("div", {
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", {
377
377
  key: l.id,
378
- class: k([l.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
379
- onClick: (u) => r(l)
378
+ class: E([l.current ? "bg-gray-50" : "hover:bg-gray-50", "flex px-[22px] py-[15px] cursor-pointer"]),
379
+ onClick: (c) => r(l)
380
380
  }, [
381
381
  f("div", Ss, [
382
382
  f("div", Cs, [
@@ -388,10 +388,10 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
388
388
  ]),
389
389
  f("div", _s, [
390
390
  f("div", ks, [
391
- f("div", Rs, O(l.name), 1),
392
- l.current ? (m(), g("span", Es, " Current ")) : _("", !0)
391
+ f("div", Rs, L(l.name), 1),
392
+ l.current ? (g(), y("span", Es, " Current ")) : R("", !0)
393
393
  ]),
394
- f("div", $s, O(l.current ? "Current Brand" : "Change to"), 1)
394
+ f("div", $s, L(l.current ? "Current Brand" : "Change to"), 1)
395
395
  ])
396
396
  ])
397
397
  ], 10, xs))), 128)),
@@ -402,7 +402,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
402
402
  ]);
403
403
  };
404
404
  }
405
- }, Ls = ["disabled"], oe = {
405
+ }, Os = ["disabled"], re = {
406
406
  __name: "SparkButton",
407
407
  props: {
408
408
  size: {
@@ -426,12 +426,12 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
426
426
  setup(e) {
427
427
  const t = e, n = q(null), s = on("buttonGroup", null), r = A(() => {
428
428
  if (!s?.isInGroup || !n.value) return null;
429
- const l = s.getButtonIndex(n.value), u = s.getButtonCount();
429
+ const l = s.getButtonIndex(n.value), c = s.getButtonCount();
430
430
  return {
431
431
  isFirst: l === 0,
432
- isLast: l === u - 1,
432
+ isLast: l === c - 1,
433
433
  index: l,
434
- total: u
434
+ total: c
435
435
  };
436
436
  }), o = {
437
437
  paddingX: /^px-/,
@@ -443,41 +443,41 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
443
443
  borderRadius: /^rounded-/,
444
444
  background: /^bg-/,
445
445
  text: /^text-(?!white|black)/
446
- }, a = (l, u) => {
447
- if (!u) return l;
448
- const c = l.split(" ").filter(Boolean), h = u.split(" ").filter(Boolean);
449
- return [...c.filter((E) => !h.some((p) => {
450
- const w = Object.entries(o).find(
451
- ([$, T]) => T.test(E)
452
- )?.[0], y = Object.entries(o).find(
453
- ([$, T]) => T.test(p)
446
+ }, a = (l, c) => {
447
+ if (!c) return l;
448
+ const u = l.split(" ").filter(Boolean), m = c.split(" ").filter(Boolean);
449
+ return [...u.filter((v) => !m.some((p) => {
450
+ const b = Object.entries(o).find(
451
+ ([_, T]) => T.test(v)
452
+ )?.[0], h = Object.entries(o).find(
453
+ ([_, T]) => T.test(p)
454
454
  )?.[0];
455
- return w && w === y;
456
- })), ...h].join(" ");
455
+ return b && b === h;
456
+ })), ...m].join(" ");
457
457
  }, i = A(() => {
458
- let l = "", u = "";
458
+ let l = "", c = "";
459
459
  switch (t.size) {
460
460
  case "xs":
461
- l += " px-2 py-1 text-xs", u = "sm";
461
+ l += " px-2 py-1 text-xs", c = "sm";
462
462
  break;
463
463
  case "sm":
464
- l += " px-2 py-1 text-sm", u = "sm";
464
+ l += " px-2 py-1 text-sm", c = "sm";
465
465
  break;
466
466
  case "md":
467
- l += " px-2.5 py-1.5 text-sm", u = "md";
467
+ l += " px-2.5 py-1.5 text-sm", c = "md";
468
468
  break;
469
469
  case "lg":
470
- l += " px-3 py-2 text-sm", u = "md";
470
+ l += " px-3 py-2 text-sm", c = "md";
471
471
  break;
472
472
  case "xl":
473
- l += " px-3.5 py-2.5 text-sm", u = "md";
473
+ l += " px-3.5 py-2.5 text-sm", c = "md";
474
474
  break;
475
475
  }
476
476
  if (s?.isInGroup && r.value) {
477
- const { isFirst: c, isLast: h } = r.value;
478
- l += " relative inline-flex items-center focus:z-10", c && h ? l += ` rounded-${u}` : c ? l += ` rounded-l-${u} rounded-r-none` : h ? l += ` rounded-r-${u} rounded-l-none -ml-px` : l += " rounded-none -ml-px";
477
+ const { isFirst: u, isLast: m } = r.value;
478
+ l += " relative inline-flex items-center focus:z-10", u && m ? l += ` rounded-${c}` : u ? l += ` rounded-l-${c} rounded-r-none` : m ? l += ` rounded-r-${c} rounded-l-none -ml-px` : l += " rounded-none -ml-px";
479
479
  } else
480
- l += ` shadow-xs rounded-${u}`;
480
+ l += ` shadow-xs rounded-${c}`;
481
481
  switch (t.variant) {
482
482
  case "primary":
483
483
  l += " bg-primary-600 hover:bg-primary-500 text-white";
@@ -502,18 +502,18 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
502
502
  }
503
503
  return l = a(l, t.buttonClass), l;
504
504
  });
505
- return (l, u) => (m(), g("button", {
505
+ return (l, c) => (g(), y("button", {
506
506
  type: "button",
507
507
  ref_key: "buttonRef",
508
508
  ref: n,
509
- class: k(i.value),
509
+ class: E(i.value),
510
510
  disabled: e.disabled,
511
- onClick: u[0] || (u[0] = (c) => l.$emit("click"))
511
+ onClick: c[0] || (c[0] = (u) => l.$emit("click"))
512
512
  }, [
513
513
  M(l.$slots, "default")
514
- ], 10, Ls));
514
+ ], 10, Os));
515
515
  }
516
- }, ni = {
516
+ }, si = {
517
517
  __name: "SparkButtonGroup",
518
518
  setup(e) {
519
519
  const t = q(null);
@@ -521,7 +521,7 @@ const Wn = { class: "flex items-center" }, Gn = { class: "shrink-0 self-start" }
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
524
- }), (r, o) => (m(), g("div", {
524
+ }), (r, o) => (g(), y("div", {
525
525
  class: "inline-flex rounded-md shadow-xs",
526
526
  ref_key: "groupRef",
527
527
  ref: t
@@ -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
- }, Os = { class: "divide-y divide-gray-300 rounded-lg border border-gray-300 text-gray-700 bg-gray-100" }, Ts = {
532
+ }, Ls = { class: "divide-y divide-gray-300 rounded-lg border border-gray-300 text-gray-700 bg-gray-100" }, Ts = {
533
533
  key: 0,
534
534
  class: "p-5"
535
535
  }, Hs = {
536
536
  key: 1,
537
537
  class: "p-5"
538
- }, si = {
538
+ }, ri = {
539
539
  __name: "SparkCard",
540
540
  props: {
541
541
  padded: {
@@ -549,24 +549,24 @@ 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) => (m(), g("div", Os, [
553
- n.$slots.header ? (m(), g("div", Ts, [
552
+ return (n, s) => (g(), y("div", Ls, [
553
+ n.$slots.header ? (g(), y("div", Ts, [
554
554
  M(n.$slots, "header")
555
- ])) : _("", !0),
555
+ ])) : R("", !0),
556
556
  f("div", {
557
- class: k([t.padded ? t.paddedClass : ""])
557
+ class: E([t.padded ? t.paddedClass : ""])
558
558
  }, [
559
559
  M(n.$slots, "default")
560
560
  ], 2),
561
- n.$slots.footer ? (m(), g("div", Hs, [
561
+ n.$slots.footer ? (g(), y("div", Hs, [
562
562
  M(n.$slots, "footer")
563
- ])) : _("", !0)
563
+ ])) : R("", !0)
564
564
  ]));
565
565
  }
566
566
  };
567
567
  class Fs {
568
568
  constructor() {
569
- this.state = se({
569
+ this.state = ne({
570
570
  isVisible: !1,
571
571
  content: null,
572
572
  props: {},
@@ -580,20 +580,20 @@ class Fs {
580
580
  this.state.isVisible = !1, this.state.eventHandlers = {};
581
581
  };
582
582
  }
583
- const pe = 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 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 = {
584
584
  __name: "SparkModalContainer",
585
585
  setup(e) {
586
- return (t, n) => (m(), Z(b(Et), {
586
+ return (t, n) => (g(), Z(x(Et), {
587
587
  as: "template",
588
- show: b(pe).state.isVisible
588
+ show: x(fe).state.isVisible
589
589
  }, {
590
- default: R(() => [
591
- C(b($t), {
590
+ default: $(() => [
591
+ C(x($t), {
592
592
  class: "relative z-200",
593
- onClose: b(pe).hide
593
+ onClose: x(fe).hide
594
594
  }, {
595
- default: R(() => [
596
- C(b(Ae), {
595
+ default: $(() => [
596
+ C(x(Ae), {
597
597
  as: "template",
598
598
  enter: "ease-out duration-300",
599
599
  "enter-from": "opacity-0",
@@ -602,14 +602,14 @@ const pe = 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: R(() => [...n[0] || (n[0] = [
605
+ default: $(() => [...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
610
  f("div", Bs, [
611
611
  f("div", Vs, [
612
- C(b(Ae), {
612
+ C(x(Ae), {
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 pe = 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: R(() => [
622
- C(b(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: R(() => [
624
- (m(), Z($e(b(pe).state.content), _t(b(pe).state.props, kt(b(pe).state.eventHandlers)), null, 16))
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))
625
625
  ]),
626
626
  _: 1
627
627
  })
@@ -640,7 +640,7 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
640
640
  }, Ps = { class: "px-4 pt-5 pb-4 sm:p-6" }, Ms = {
641
641
  key: 0,
642
642
  class: "text-lg font-medium text-gray-900"
643
- }, ri = {
643
+ }, oi = {
644
644
  __name: "SparkModalDialog",
645
645
  props: {
646
646
  title: {
@@ -717,37 +717,37 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
717
717
  warning: "text-yellow-400",
718
718
  danger: "text-red-400"
719
719
  })[t.type]);
720
- return (l, u) => {
721
- const c = U("font-awesome-icon");
722
- return m(), g("div", Ps, [
723
- o.value ? (m(), g("div", {
720
+ return (l, c) => {
721
+ const u = U("font-awesome-icon");
722
+ return g(), y("div", Ps, [
723
+ o.value ? (g(), y("div", {
724
724
  key: 0,
725
- class: k(["mx-auto flex size-12 items-center justify-center rounded-full", a.value])
725
+ class: E(["mx-auto flex size-12 items-center justify-center rounded-full", a.value])
726
726
  }, [
727
- C(c, {
728
- icon: b(B)[o.value],
729
- class: k(["h-5 w-5", i.value])
727
+ C(u, {
728
+ icon: x(B)[o.value],
729
+ class: E(["h-5 w-5", i.value])
730
730
  }, null, 8, ["icon", "class"])
731
- ], 2)) : _("", !0),
731
+ ], 2)) : R("", !0),
732
732
  f("div", {
733
- class: k(["text-center", { "mt-3 sm:mt-5": o.value }])
733
+ class: E(["text-center", { "mt-3 sm:mt-5": o.value }])
734
734
  }, [
735
- e.title ? (m(), g("h3", Ms, O(e.title), 1)) : _("", !0),
736
- e.message ? (m(), g("div", {
735
+ e.title ? (g(), y("h3", Ms, L(e.title), 1)) : R("", !0),
736
+ e.message ? (g(), y("div", {
737
737
  key: 1,
738
- class: k([{ "mt-2": e.title }, "text-sm text-gray-500"])
739
- }, O(e.message), 3)) : _("", !0)
738
+ class: E([{ "mt-2": e.title }, "text-sm text-gray-500"])
739
+ }, L(e.message), 3)) : R("", !0)
740
740
  ], 2),
741
741
  f("div", {
742
- class: k(["mt-5 sm:mt-6", s.value])
742
+ class: E(["mt-5 sm:mt-6", s.value])
743
743
  }, [
744
- (m(!0), g(ie, null, me(n.value, (h, x) => (m(), Z(b(oe), {
745
- key: x,
746
- variant: h.variant,
747
- onClick: (E) => l.$emit(h.event, h)
744
+ (g(!0), y(ae, null, he(n.value, (m, w) => (g(), Z(x(re), {
745
+ key: w,
746
+ variant: m.variant,
747
+ onClick: (v) => l.$emit(m.event, m)
748
748
  }, {
749
- default: R(() => [
750
- J(O(h.text), 1)
749
+ default: $(() => [
750
+ J(L(m.text), 1)
751
751
  ]),
752
752
  _: 2
753
753
  }, 1032, ["variant", "onClick"]))), 128))
@@ -768,20 +768,23 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
768
768
  required: !0
769
769
  }
770
770
  },
771
- setup(e) {
772
- const t = q(null);
773
- return (n, s) => (m(), Z(b(Et), {
771
+ emits: ["close"],
772
+ setup(e, { emit: t }) {
773
+ const n = q(null), s = e, r = t, o = () => {
774
+ s.overlayInstance.close(), r("close");
775
+ };
776
+ return (a, i) => (g(), Z(x(Et), {
774
777
  show: e.overlayInstance.state.isVisible,
775
778
  as: "template"
776
779
  }, {
777
- default: R(() => [
778
- C(b($t), {
779
- initialFocus: t.value,
780
+ default: $(() => [
781
+ C(x($t), {
782
+ initialFocus: n.value,
780
783
  class: "relative z-200",
781
- onClose: e.overlayInstance.close
784
+ onClose: o
782
785
  }, {
783
- default: R(() => [
784
- C(b(Ae), {
786
+ default: $(() => [
787
+ C(x(Ae), {
785
788
  as: "template",
786
789
  enter: "transition-opacity ease-linear duration-150",
787
790
  "enter-from": "opacity-0",
@@ -790,13 +793,13 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
790
793
  "leave-from": "opacity-100",
791
794
  "leave-to": "opacity-0"
792
795
  }, {
793
- default: R(() => [...s[0] || (s[0] = [
796
+ default: $(() => [...i[0] || (i[0] = [
794
797
  f("div", { class: "fixed inset-0 bg-gray-600/30" }, null, -1)
795
798
  ])]),
796
799
  _: 1
797
800
  }),
798
801
  f("div", Us, [
799
- C(b(Ae), {
802
+ C(x(Ae), {
800
803
  as: "template",
801
804
  enter: "transition ease-in-out duration-150 transform",
802
805
  "enter-from": e.position === "left" ? "-translate-x-full opacity-0" : "translate-x-full opacity-0",
@@ -805,17 +808,17 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
805
808
  "leave-from": "translate-x-0 opacity-100",
806
809
  "leave-to": e.position === "left" ? "-translate-x-full opacity-0" : "translate-x-full opacity-0"
807
810
  }, {
808
- default: R(() => [
809
- C(b(At), {
811
+ default: $(() => [
812
+ C(x(At), {
810
813
  ref_key: "panelRef",
811
- ref: t,
812
- class: k([
814
+ ref: n,
815
+ class: E([
813
816
  "flex w-[400px] py-2.5",
814
817
  e.position === "left" ? "relative left-[10px]" : "absolute right-[10px] h-full"
815
818
  ])
816
819
  }, {
817
- default: R(() => [
818
- (m(), Z($e(e.overlayInstance.state.content), _t(e.overlayInstance.state.props, kt(e.overlayInstance.state.eventHandlers)), null, 16))
820
+ default: $(() => [
821
+ (g(), Z($e(e.overlayInstance.state.content), _t(e.overlayInstance.state.props, kt(e.overlayInstance.state.eventHandlers)), null, 16))
819
822
  ]),
820
823
  _: 1
821
824
  }, 8, ["class"])
@@ -825,14 +828,14 @@ const pe = new Fs(), Bs = { class: "fixed inset-0 z-10 w-screen overflow-y-auto"
825
828
  ])
826
829
  ]),
827
830
  _: 1
828
- }, 8, ["initialFocus", "onClose"])
831
+ }, 8, ["initialFocus"])
829
832
  ]),
830
833
  _: 1
831
834
  }, 8, ["show"]));
832
835
  }
833
836
  };
834
837
  function at() {
835
- const e = se({
838
+ const e = ne({
836
839
  isVisible: !1,
837
840
  content: null,
838
841
  props: {},
@@ -862,10 +865,22 @@ class js {
862
865
  this.left = at(), this.right = at();
863
866
  }
864
867
  showLeft = (t, n = {}, s = {}) => {
865
- this.left.show(t, n, s);
868
+ const r = {
869
+ close: () => {
870
+ s.close?.(), this.closeLeft();
871
+ },
872
+ ...s
873
+ };
874
+ this.left.show(t, n, r);
866
875
  };
867
876
  showRight = (t, n = {}, s = {}) => {
868
- this.right.show(t, n, s);
877
+ const r = {
878
+ close: () => {
879
+ s.close?.(), this.closeRight();
880
+ },
881
+ ...s
882
+ };
883
+ this.right.show(t, n, r);
869
884
  };
870
885
  closeLeft = () => {
871
886
  this.left.close();
@@ -877,19 +892,22 @@ class js {
877
892
  this.left.close(), this.right.close();
878
893
  };
879
894
  }
880
- const Q = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is = { class: "flex flex-1 flex-col" }, zs = {
895
+ const ve = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is = { class: "flex flex-1 flex-col" }, zs = {
881
896
  class: "flex flex-1 flex-col gap-y-7",
882
897
  role: "list"
883
- }, qs = { role: "list" }, Zs = { class: "flex items-center pb-8" }, Ws = ["href", "onClick"], Gs = {
898
+ }, qs = { class: "flex flex-1 flex-col" }, Zs = {
899
+ role: "list",
900
+ class: "flex flex-1 flex-col"
901
+ }, Ws = { class: "flex items-center pb-8" }, Gs = ["href", "onClick"], Js = {
884
902
  key: 2,
885
903
  class: "w-full flex justify-center"
886
- }, Js = {
904
+ }, Ks = {
887
905
  key: 0,
888
906
  class: "mt-[5px] flex flex-col gap-[5px]"
889
- }, Ks = ["href", "onClick"], Xs = {
907
+ }, Xs = ["href", "onClick"], Ys = {
890
908
  key: 1,
891
909
  class: "text-[13px]"
892
- }, Ys = { class: "mt-auto" }, Qs = { class: "p-[10px] flex-shrink-0" }, er = { class: "flex flex-1 items-center gap-x-6" }, tr = { class: "relative flex flex-1 items-center gap-4" }, nr = { class: "cursor-pointer" }, sr = ["src"], rr = { class: "ml-auto" }, or = { class: "mr-[10px] pb-[10px] flex-1 flex flex-col" }, oi = {
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 = {
893
911
  __name: "SparkDefaultContainer",
894
912
  props: {
895
913
  appStore: {
@@ -905,109 +923,111 @@ const Q = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
905
923
  default: () => ({})
906
924
  }
907
925
  },
908
- setup(e) {
909
- const t = e, n = ln(), s = Tt(), r = Lt(), o = A(() => r.getAppIcon(t.appStore.state.app)), a = () => {
910
- const c = {};
911
- n["app-selector-bottom"] ? c.bottomSlot = () => rt("div", {}, n["app-selector-bottom"]()) : t.appSelectorSlots.bottomSlot && (c.bottomSlot = t.appSelectorSlots.bottomSlot), n["app-selector-footer"] ? c.footerSlot = () => rt("div", {}, n["app-selector-footer"]()) : t.appSelectorSlots.footerSlot && (c.footerSlot = t.appSelectorSlots.footerSlot), Q.showRight(ps, c);
912
- }, i = () => {
913
- Q.showLeft(
926
+ emits: ["overlayClose"],
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 = () => {
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);
931
+ }, c = () => {
932
+ ve.showLeft(
914
933
  As,
915
934
  {},
916
935
  {
917
- select: (c) => {
918
- s.toggleBrand(c), Q.closeLeft();
936
+ select: (w) => {
937
+ o.toggleBrand(w);
919
938
  }
920
939
  }
921
940
  );
922
- }, l = A(() => t.mainNavStore.state.hidden ? ["w-0 overflow-hidden"] : [t.mainNavStore.state.collapsed ? "w-[80px]" : "w-[240px]"]), u = A(() => t.mainNavStore.state.hidden ? ["pl-2.5"] : [t.mainNavStore.state.collapsed ? "pl-[80px]" : "pl-[240px]"]);
923
- return (c, h) => {
924
- const x = U("font-awesome-icon"), E = U("router-view");
925
- return m(), g(ie, null, [
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]"]);
942
+ return (w, v) => {
943
+ const p = U("font-awesome-icon"), b = U("router-view");
944
+ return g(), y(ae, null, [
926
945
  f("div", {
927
- class: k([l.value, "fixed inset-y-0 flex transition-all z-100"])
946
+ class: E([u.value, "fixed inset-y-0 flex transition-all z-100"])
928
947
  }, [
929
948
  f("div", Ds, [
930
949
  f("nav", Is, [
931
950
  f("ul", zs, [
932
- f("li", null, [
933
- f("ul", qs, [
934
- f("li", Zs, [
951
+ f("li", qs, [
952
+ f("ul", Zs, [
953
+ f("li", Ws, [
935
954
  f("a", {
936
955
  class: "grid w-[40px] h-[40px] place-items-center rounded-md bg-primary-600 text-white text-[13px] cursor-pointer",
937
- onClick: h[0] || (h[0] = fe((p) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
956
+ onClick: v[0] || (v[0] = de((h) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"]))
938
957
  }, [
939
- C(x, {
940
- icon: b(B)[o.value],
958
+ C(p, {
959
+ icon: x(B)[i.value],
941
960
  class: "size-5"
942
961
  }, null, 8, ["icon"])
943
962
  ]),
944
- e.mainNavStore.state.collapsed ? _("", !0) : (m(), g("a", {
963
+ e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("a", {
945
964
  key: 0,
946
- onClick: h[1] || (h[1] = fe((p) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"])),
965
+ onClick: v[1] || (v[1] = de((h) => e.mainNavStore.goto(e.appStore.state.homeRoute), ["prevent"])),
947
966
  class: "font-medium text-gray-800 ml-[10px] cursor-pointer"
948
- }, O(e.appStore.state.app), 1))
967
+ }, L(e.appStore.state.app), 1))
949
968
  ]),
950
- (m(!0), g(ie, null, me(e.mainNavStore.state.menu, (p) => (m(), g("li", {
951
- key: p.name,
952
- class: k({
953
- "mt-[10px]": p.children
969
+ (g(!0), y(ae, null, he(e.mainNavStore.state.menu, (h) => (g(), y("li", {
970
+ key: h.name,
971
+ class: E({
972
+ "mt-[10px]": h.children,
973
+ "mt-auto": h.footerSection
954
974
  })
955
975
  }, [
956
976
  f("a", {
957
- class: k([{
958
- "bg-gray-100": p.current,
959
- "hover:bg-gray-100": p?.href
977
+ class: E([{
978
+ "bg-gray-100": h.current,
979
+ "hover:bg-gray-100": h?.href
960
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"]),
961
- href: p?.href,
962
- onClick: fe((w) => e.mainNavStore.goto(p.href), ["prevent"])
981
+ href: h?.href,
982
+ onClick: de((_) => e.mainNavStore.goto(h.href), ["prevent"])
963
983
  }, [
964
- p.icon ? (m(), Z(x, {
984
+ h.icon ? (g(), Z(p, {
965
985
  key: 0,
966
- icon: b(B)[p.icon],
967
- class: k([[(p.current, "text-gray-400")], "size-4"])
968
- }, null, 8, ["icon", "class"])) : _("", !0),
969
- e.mainNavStore.state.collapsed ? p?.children ? (m(), g("div", Gs, [...h[4] || (h[4] = [
986
+ icon: x(B)[h.icon],
987
+ class: E([[(h.current, "text-gray-400")], "size-4"])
988
+ }, null, 8, ["icon", "class"])) : R("", !0),
989
+ e.mainNavStore.state.collapsed ? h?.children ? (g(), y("div", Js, [...v[6] || (v[6] = [
970
990
  f("div", { class: "w-[10px] h-px bg-gray-400" }, null, -1)
971
- ])])) : _("", !0) : (m(), g("span", {
991
+ ])])) : R("", !0) : (g(), y("span", {
972
992
  key: 1,
973
- class: k({
974
- "text-[11px]": p?.children,
975
- "text-[13px]": !p?.children,
976
- "font-semibold": p?.children,
977
- "text-gray-500": p?.children
993
+ class: E({
994
+ "text-[11px]": h?.children,
995
+ "text-[13px]": !h?.children,
996
+ "font-semibold": h?.children,
997
+ "text-gray-500": h?.children
978
998
  })
979
- }, O(p.name), 3))
980
- ], 10, Ws),
981
- p.children ? (m(), g("ul", Js, [
982
- (m(!0), g(ie, null, me(p.children, (w) => (m(), g("li", {
983
- key: w.name
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", {
1003
+ key: _.name
984
1004
  }, [
985
1005
  f("a", {
986
- class: k([[w.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"]),
987
- href: w.href,
988
- onClick: fe((y) => e.mainNavStore.goto(w.href), ["prevent"])
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
+ href: _.href,
1008
+ onClick: de((T) => e.mainNavStore.goto(_.href), ["prevent"])
989
1009
  }, [
990
- w.icon ? (m(), Z(x, {
1010
+ _.icon ? (g(), Z(p, {
991
1011
  key: 0,
992
- icon: b(B)[w.icon],
993
- class: k([[(w.current, "text-gray-400")], "size-4"])
994
- }, null, 8, ["icon", "class"])) : _("", !0),
995
- e.mainNavStore.state.collapsed ? _("", !0) : (m(), g("span", Xs, O(w.name), 1))
996
- ], 10, Ks)
1012
+ icon: x(B)[_.icon],
1013
+ class: E([[(_.current, "text-gray-400")], "size-4"])
1014
+ }, null, 8, ["icon", "class"])) : R("", !0),
1015
+ e.mainNavStore.state.collapsed ? R("", !0) : (g(), y("span", Ys, L(_.name), 1))
1016
+ ], 10, Xs)
997
1017
  ]))), 128))
998
- ])) : _("", !0)
1018
+ ])) : R("", !0)
999
1019
  ], 2))), 128))
1000
1020
  ])
1001
1021
  ]),
1002
- f("li", Ys, [
1003
- M(c.$slots, "sidebar-footer"),
1022
+ f("li", Qs, [
1023
+ M(w.$slots, "sidebar-footer"),
1004
1024
  f("a", {
1005
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",
1006
1026
  href: "#",
1007
- onClick: h[2] || (h[2] = fe((p) => e.mainNavStore.toggleCollapsed(), ["prevent"]))
1027
+ onClick: v[2] || (v[2] = de((h) => e.mainNavStore.toggleCollapsed(), ["prevent"]))
1008
1028
  }, [
1009
- C(x, {
1010
- icon: b(B)[e.mainNavStore.state.collapsed ? "farArrowRightToLine" : "farArrowLeftToLine"],
1029
+ C(p, {
1030
+ icon: x(B)[e.mainNavStore.state.collapsed ? "farArrowRightToLine" : "farArrowLeftToLine"],
1011
1031
  class: "class-5"
1012
1032
  }, null, 8, ["icon"])
1013
1033
  ])
@@ -1017,127 +1037,127 @@ const Q = new js(), Ds = { class: "flex grow m-2.5 p-[10px] rounded-lg" }, Is =
1017
1037
  ])
1018
1038
  ], 2),
1019
1039
  f("div", {
1020
- class: k([u.value, "h-full transition-all flex flex-col"])
1040
+ class: E([m.value, "h-full transition-all flex flex-col"])
1021
1041
  }, [
1022
- f("div", Qs, [
1023
- f("div", er, [
1024
- f("div", tr, [
1025
- M(c.$slots, "header-left", {}, () => [
1026
- f("div", nr, [
1027
- C(x, {
1028
- icon: b(B).farBarsSort,
1042
+ f("div", er, [
1043
+ f("div", tr, [
1044
+ f("div", nr, [
1045
+ M(w.$slots, "header-left", {}, () => [
1046
+ f("div", sr, [
1047
+ C(p, {
1048
+ icon: x(B).farBarsSort,
1029
1049
  class: "size-5",
1030
- onClick: h[3] || (h[3] = (p) => e.mainNavStore.toggleHidden())
1050
+ onClick: v[3] || (v[3] = (h) => e.mainNavStore.toggleHidden())
1031
1051
  }, null, 8, ["icon"])
1032
1052
  ])
1033
1053
  ]),
1034
- M(c.$slots, "header-center", {}, () => [
1035
- e.appStore.state.showBrandSelector ? (m(), g("div", {
1054
+ M(w.$slots, "header-center", {}, () => [
1055
+ e.appStore.state.showBrandSelector ? (g(), y("div", {
1036
1056
  key: 0,
1037
1057
  class: "absolute left-1/2 -translate-x-1/2 cursor-pointer h-9 flex items-center",
1038
- onClick: i
1058
+ onClick: c
1039
1059
  }, [
1040
- b(s).currentBrand ? (m(), g("img", {
1060
+ x(o).currentBrand ? (g(), y("img", {
1041
1061
  key: 0,
1042
- src: b(s).currentBrand.logo,
1062
+ src: x(o).currentBrand.logo,
1043
1063
  alt: "",
1044
1064
  class: "h-[30px] w-auto"
1045
- }, null, 8, sr)) : _("", !0)
1046
- ])) : _("", !0)
1065
+ }, null, 8, rr)) : R("", !0)
1066
+ ])) : R("", !0)
1047
1067
  ]),
1048
- f("div", rr, [
1049
- M(c.$slots, "header-right", {}, () => [
1050
- e.appStore.state.showAppSelector ? (m(), g("button", {
1068
+ f("div", or, [
1069
+ M(w.$slots, "header-right", {}, () => [
1070
+ e.appStore.state.showAppSelector ? (g(), y("button", {
1051
1071
  key: 0,
1052
1072
  class: "rounded-sm bg-white w-[42px] h-[42px] ring-1 ring-inset ring-gray-300",
1053
1073
  type: "button",
1054
- onClick: a
1074
+ onClick: l
1055
1075
  }, [
1056
- C(x, {
1057
- icon: b(B).farGripDotsVertical,
1076
+ C(p, {
1077
+ icon: x(B).farGripDotsVertical,
1058
1078
  class: "size-4 text-gray-400"
1059
1079
  }, null, 8, ["icon"])
1060
- ])) : _("", !0)
1080
+ ])) : R("", !0)
1061
1081
  ])
1062
1082
  ])
1063
1083
  ])
1064
1084
  ])
1065
1085
  ]),
1066
- f("main", or, [
1067
- C(E)
1086
+ f("main", ar, [
1087
+ C(b)
1068
1088
  ])
1069
1089
  ], 2),
1070
- C(b(ot), {
1090
+ C(x(ot), {
1071
1091
  position: "left",
1072
- "overlay-instance": b(Q).left,
1073
- onClose: b(Q).closeLeft
1074
- }, null, 8, ["overlay-instance", "onClose"]),
1075
- C(b(ot), {
1092
+ "overlay-instance": x(ve).left,
1093
+ onClose: v[4] || (v[4] = (h) => s("overlayClose", "left"))
1094
+ }, null, 8, ["overlay-instance"]),
1095
+ C(x(ot), {
1076
1096
  position: "right",
1077
- "overlay-instance": b(Q).right,
1078
- onClose: b(Q).closeRight
1079
- }, null, 8, ["overlay-instance", "onClose"]),
1080
- C(b(Ns))
1097
+ "overlay-instance": x(ve).right,
1098
+ onClose: v[5] || (v[5] = (h) => s("overlayClose", "right"))
1099
+ }, null, 8, ["overlay-instance"]),
1100
+ C(x(Ns))
1081
1101
  ], 64);
1082
1102
  };
1083
1103
  }
1084
- }, ar = (e, t) => {
1104
+ }, ir = (e, t) => {
1085
1105
  const n = e.__vccOpts || e;
1086
1106
  for (const [s, r] of t)
1087
1107
  n[s] = r;
1088
1108
  return n;
1089
- }, ir = {}, lr = { class: "h-full" };
1090
- function cr(e, t) {
1109
+ }, lr = {}, cr = { class: "h-full" };
1110
+ function ur(e, t) {
1091
1111
  const n = U("router-view");
1092
- return m(), g("main", lr, [
1112
+ return g(), y("main", cr, [
1093
1113
  C(n)
1094
1114
  ]);
1095
1115
  }
1096
- const ai = /* @__PURE__ */ ar(ir, [["render", cr]]);
1116
+ const ii = /* @__PURE__ */ ir(lr, [["render", ur]]);
1097
1117
  function Ht(e, t) {
1098
1118
  return function() {
1099
1119
  return e.apply(t, arguments);
1100
1120
  };
1101
1121
  }
1102
- const { toString: ur } = Object.prototype, { getPrototypeOf: Ge } = Object, { iterator: Te, toStringTag: Ft } = Symbol, He = /* @__PURE__ */ ((e) => (t) => {
1103
- const n = ur.call(t);
1122
+ const { toString: dr } = Object.prototype, { getPrototypeOf: Ge } = Object, { iterator: Te, toStringTag: Ft } = Symbol, He = /* @__PURE__ */ ((e) => (t) => {
1123
+ const n = dr.call(t);
1104
1124
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
1105
- })(/* @__PURE__ */ Object.create(null)), D = (e) => (e = e.toLowerCase(), (t) => He(t) === e), Fe = (e) => (t) => typeof t === e, { isArray: ce } = Array, le = Fe("undefined");
1106
- function ye(e) {
1107
- return e !== null && !le(e) && e.constructor !== null && !le(e.constructor) && V(e.constructor.isBuffer) && e.constructor.isBuffer(e);
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);
1108
1128
  }
1109
1129
  const Bt = D("ArrayBuffer");
1110
- function dr(e) {
1130
+ function fr(e) {
1111
1131
  let t;
1112
1132
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Bt(e.buffer), t;
1113
1133
  }
1114
- const fr = Fe("string"), V = Fe("function"), Vt = Fe("number"), we = (e) => e !== null && typeof e == "object", pr = (e) => e === !0 || e === !1, ke = (e) => {
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) => {
1115
1135
  if (He(e) !== "object")
1116
1136
  return !1;
1117
1137
  const t = Ge(e);
1118
1138
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Ft in e) && !(Te in e);
1119
- }, hr = (e) => {
1120
- if (!we(e) || ye(e))
1139
+ }, mr = (e) => {
1140
+ if (!ye(e) || ge(e))
1121
1141
  return !1;
1122
1142
  try {
1123
1143
  return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
1124
1144
  } catch {
1125
1145
  return !1;
1126
1146
  }
1127
- }, mr = D("Date"), gr = D("File"), yr = D("Blob"), wr = D("FileList"), br = (e) => we(e) && V(e.pipe), xr = (e) => {
1147
+ }, gr = D("Date"), yr = D("File"), wr = D("Blob"), br = D("FileList"), xr = (e) => ye(e) && V(e.pipe), Sr = (e) => {
1128
1148
  let t;
1129
1149
  return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t = He(e)) === "formdata" || // detect form-data instance
1130
1150
  t === "object" && V(e.toString) && e.toString() === "[object FormData]"));
1131
- }, Sr = D("URLSearchParams"), [Cr, vr, _r, kr] = ["ReadableStream", "Request", "Response", "Headers"].map(D), Rr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1132
- function be(e, t, { allOwnKeys: n = !1 } = {}) {
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 } = {}) {
1133
1153
  if (e === null || typeof e > "u")
1134
1154
  return;
1135
1155
  let s, r;
1136
- if (typeof e != "object" && (e = [e]), ce(e))
1156
+ if (typeof e != "object" && (e = [e]), le(e))
1137
1157
  for (s = 0, r = e.length; s < r; s++)
1138
1158
  t.call(null, e[s], s, e);
1139
1159
  else {
1140
- if (ye(e))
1160
+ if (ge(e))
1141
1161
  return;
1142
1162
  const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = o.length;
1143
1163
  let i;
@@ -1146,7 +1166,7 @@ function be(e, t, { allOwnKeys: n = !1 } = {}) {
1146
1166
  }
1147
1167
  }
1148
1168
  function Nt(e, t) {
1149
- if (ye(e))
1169
+ if (ge(e))
1150
1170
  return null;
1151
1171
  t = t.toLowerCase();
1152
1172
  const n = Object.keys(e);
@@ -1156,19 +1176,19 @@ function Nt(e, t) {
1156
1176
  return r;
1157
1177
  return null;
1158
1178
  }
1159
- const ee = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Pt = (e) => !le(e) && e !== ee;
1179
+ const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Pt = (e) => !ie(e) && e !== Q;
1160
1180
  function ze() {
1161
1181
  const { caseless: e, skipUndefined: t } = Pt(this) && this || {}, n = {}, s = (r, o) => {
1162
1182
  const a = e && Nt(n, o) || o;
1163
- ke(n[a]) && ke(r) ? n[a] = ze(n[a], r) : ke(r) ? n[a] = ze({}, r) : ce(r) ? n[a] = r.slice() : (!t || !le(r)) && (n[a] = r);
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);
1164
1184
  };
1165
1185
  for (let r = 0, o = arguments.length; r < o; r++)
1166
- arguments[r] && be(arguments[r], s);
1186
+ arguments[r] && we(arguments[r], s);
1167
1187
  return n;
1168
1188
  }
1169
- const Er = (e, t, n, { allOwnKeys: s } = {}) => (be(t, (r, o) => {
1189
+ const $r = (e, t, n, { allOwnKeys: s } = {}) => (we(t, (r, o) => {
1170
1190
  n && V(r) ? e[o] = Ht(r, n) : e[o] = r;
1171
- }, { allOwnKeys: s }), e), $r = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ar = (e, t, n, s) => {
1191
+ }, { allOwnKeys: s }), e), Ar = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Or = (e, t, n, s) => {
1172
1192
  e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
1173
1193
  value: t.prototype
1174
1194
  }), n && Object.assign(e.prototype, n);
@@ -1182,44 +1202,44 @@ const Er = (e, t, n, { allOwnKeys: s } = {}) => (be(t, (r, o) => {
1182
1202
  e = n !== !1 && Ge(e);
1183
1203
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
1184
1204
  return t;
1185
- }, Or = (e, t, n) => {
1205
+ }, Tr = (e, t, n) => {
1186
1206
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
1187
1207
  const s = e.indexOf(t, n);
1188
1208
  return s !== -1 && s === n;
1189
- }, Tr = (e) => {
1209
+ }, Hr = (e) => {
1190
1210
  if (!e) return null;
1191
- if (ce(e)) return e;
1211
+ if (le(e)) return e;
1192
1212
  let t = e.length;
1193
1213
  if (!Vt(t)) return null;
1194
1214
  const n = new Array(t);
1195
1215
  for (; t-- > 0; )
1196
1216
  n[t] = e[t];
1197
1217
  return n;
1198
- }, Hr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ge(Uint8Array)), Fr = (e, t) => {
1218
+ }, Fr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ge(Uint8Array)), Br = (e, t) => {
1199
1219
  const s = (e && e[Te]).call(e);
1200
1220
  let r;
1201
1221
  for (; (r = s.next()) && !r.done; ) {
1202
1222
  const o = r.value;
1203
1223
  t.call(e, o[0], o[1]);
1204
1224
  }
1205
- }, Br = (e, t) => {
1225
+ }, Vr = (e, t) => {
1206
1226
  let n;
1207
1227
  const s = [];
1208
1228
  for (; (n = e.exec(t)) !== null; )
1209
1229
  s.push(n);
1210
1230
  return s;
1211
- }, Vr = D("HTMLFormElement"), Nr = (e) => e.toLowerCase().replace(
1231
+ }, Nr = D("HTMLFormElement"), Pr = (e) => e.toLowerCase().replace(
1212
1232
  /[-_\s]([a-z\d])(\w*)/g,
1213
1233
  function(n, s, r) {
1214
1234
  return s.toUpperCase() + r;
1215
1235
  }
1216
- ), it = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Pr = D("RegExp"), Mt = (e, t) => {
1236
+ ), it = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Mr = D("RegExp"), Mt = (e, t) => {
1217
1237
  const n = Object.getOwnPropertyDescriptors(e), s = {};
1218
- be(n, (r, o) => {
1238
+ we(n, (r, o) => {
1219
1239
  let a;
1220
1240
  (a = t(r, o, e)) !== !1 && (s[o] = a || r);
1221
1241
  }), Object.defineProperties(e, s);
1222
- }, Mr = (e) => {
1242
+ }, Ur = (e) => {
1223
1243
  Mt(e, (t, n) => {
1224
1244
  if (V(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
1225
1245
  return !1;
@@ -1234,103 +1254,103 @@ const Er = (e, t, n, { allOwnKeys: s } = {}) => (be(t, (r, o) => {
1234
1254
  });
1235
1255
  }
1236
1256
  });
1237
- }, Ur = (e, t) => {
1257
+ }, jr = (e, t) => {
1238
1258
  const n = {}, s = (r) => {
1239
1259
  r.forEach((o) => {
1240
1260
  n[o] = !0;
1241
1261
  });
1242
1262
  };
1243
- return ce(e) ? s(e) : s(String(e).split(t)), n;
1244
- }, jr = () => {
1245
- }, Dr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
1246
- function Ir(e) {
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) {
1247
1267
  return !!(e && V(e.append) && e[Ft] === "FormData" && e[Te]);
1248
1268
  }
1249
- const zr = (e) => {
1269
+ const qr = (e) => {
1250
1270
  const t = new Array(10), n = (s, r) => {
1251
- if (we(s)) {
1271
+ if (ye(s)) {
1252
1272
  if (t.indexOf(s) >= 0)
1253
1273
  return;
1254
- if (ye(s))
1274
+ if (ge(s))
1255
1275
  return s;
1256
1276
  if (!("toJSON" in s)) {
1257
1277
  t[r] = s;
1258
- const o = ce(s) ? [] : {};
1259
- return be(s, (a, i) => {
1278
+ const o = le(s) ? [] : {};
1279
+ return we(s, (a, i) => {
1260
1280
  const l = n(a, r + 1);
1261
- !le(l) && (o[i] = l);
1281
+ !ie(l) && (o[i] = l);
1262
1282
  }), t[r] = void 0, o;
1263
1283
  }
1264
1284
  }
1265
1285
  return s;
1266
1286
  };
1267
1287
  return n(e, 0);
1268
- }, qr = D("AsyncFunction"), Zr = (e) => e && (we(e) || V(e)) && V(e.then) && V(e.catch), Ut = ((e, t) => e ? setImmediate : t ? ((n, s) => (ee.addEventListener("message", ({ source: r, data: o }) => {
1269
- r === ee && o === n && s.length && s.shift()();
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 }) => {
1289
+ r === Q && o === n && s.length && s.shift()();
1270
1290
  }, !1), (r) => {
1271
- s.push(r), ee.postMessage(n, "*");
1291
+ s.push(r), Q.postMessage(n, "*");
1272
1292
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
1273
1293
  typeof setImmediate == "function",
1274
- V(ee.postMessage)
1275
- ), Wr = typeof queueMicrotask < "u" ? queueMicrotask.bind(ee) : typeof process < "u" && process.nextTick || Ut, Gr = (e) => e != null && V(e[Te]), d = {
1276
- isArray: ce,
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,
1277
1297
  isArrayBuffer: Bt,
1278
- isBuffer: ye,
1279
- isFormData: xr,
1280
- isArrayBufferView: dr,
1281
- isString: fr,
1298
+ isBuffer: ge,
1299
+ isFormData: Sr,
1300
+ isArrayBufferView: fr,
1301
+ isString: pr,
1282
1302
  isNumber: Vt,
1283
- isBoolean: pr,
1284
- isObject: we,
1303
+ isBoolean: hr,
1304
+ isObject: ye,
1285
1305
  isPlainObject: ke,
1286
- isEmptyObject: hr,
1287
- isReadableStream: Cr,
1288
- isRequest: vr,
1289
- isResponse: _r,
1290
- isHeaders: kr,
1291
- isUndefined: le,
1292
- isDate: mr,
1293
- isFile: gr,
1294
- isBlob: yr,
1295
- isRegExp: Pr,
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,
1296
1316
  isFunction: V,
1297
- isStream: br,
1298
- isURLSearchParams: Sr,
1299
- isTypedArray: Hr,
1300
- isFileList: wr,
1301
- forEach: be,
1317
+ isStream: xr,
1318
+ isURLSearchParams: Cr,
1319
+ isTypedArray: Fr,
1320
+ isFileList: br,
1321
+ forEach: we,
1302
1322
  merge: ze,
1303
- extend: Er,
1304
- trim: Rr,
1305
- stripBOM: $r,
1306
- inherits: Ar,
1323
+ extend: $r,
1324
+ trim: Er,
1325
+ stripBOM: Ar,
1326
+ inherits: Or,
1307
1327
  toFlatObject: Lr,
1308
1328
  kindOf: He,
1309
1329
  kindOfTest: D,
1310
- endsWith: Or,
1311
- toArray: Tr,
1312
- forEachEntry: Fr,
1313
- matchAll: Br,
1314
- isHTMLForm: Vr,
1330
+ endsWith: Tr,
1331
+ toArray: Hr,
1332
+ forEachEntry: Br,
1333
+ matchAll: Vr,
1334
+ isHTMLForm: Nr,
1315
1335
  hasOwnProperty: it,
1316
1336
  hasOwnProp: it,
1317
1337
  // an alias to avoid ESLint no-prototype-builtins detection
1318
1338
  reduceDescriptors: Mt,
1319
- freezeMethods: Mr,
1320
- toObjectSet: Ur,
1321
- toCamelCase: Nr,
1322
- noop: jr,
1323
- toFiniteNumber: Dr,
1339
+ freezeMethods: Ur,
1340
+ toObjectSet: jr,
1341
+ toCamelCase: Pr,
1342
+ noop: Dr,
1343
+ toFiniteNumber: Ir,
1324
1344
  findKey: Nt,
1325
- global: ee,
1345
+ global: Q,
1326
1346
  isContextDefined: Pt,
1327
- isSpecCompliantForm: Ir,
1328
- toJSONObject: zr,
1329
- isAsyncFn: qr,
1330
- isThenable: Zr,
1347
+ isSpecCompliantForm: zr,
1348
+ toJSONObject: qr,
1349
+ isAsyncFn: Zr,
1350
+ isThenable: Wr,
1331
1351
  setImmediate: Ut,
1332
- asap: Wr,
1333
- isIterable: Gr
1352
+ asap: Gr,
1353
+ isIterable: Jr
1334
1354
  };
1335
1355
  function S(e, t, n, s, r) {
1336
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);
@@ -1378,13 +1398,13 @@ Object.defineProperties(S, Dt);
1378
1398
  Object.defineProperty(jt, "isAxiosError", { value: !0 });
1379
1399
  S.from = (e, t, n, s, r, o) => {
1380
1400
  const a = Object.create(jt);
1381
- d.toFlatObject(e, a, function(c) {
1382
- return c !== Error.prototype;
1383
- }, (u) => u !== "isAxiosError");
1401
+ d.toFlatObject(e, a, function(u) {
1402
+ return u !== Error.prototype;
1403
+ }, (c) => c !== "isAxiosError");
1384
1404
  const i = e && e.message ? e.message : "Error", l = t == null && e ? e.code : t;
1385
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;
1386
1406
  };
1387
- const Jr = null;
1407
+ const Kr = null;
1388
1408
  function qe(e) {
1389
1409
  return d.isPlainObject(e) || d.isArray(e);
1390
1410
  }
@@ -1396,10 +1416,10 @@ function lt(e, t, n) {
1396
1416
  return r = It(r), !n && o ? "[" + r + "]" : r;
1397
1417
  }).join(n ? "." : "") : t;
1398
1418
  }
1399
- function Kr(e) {
1419
+ function Xr(e) {
1400
1420
  return d.isArray(e) && !e.some(qe);
1401
1421
  }
1402
- const Xr = d.toFlatObject(d, {}, null, function(t) {
1422
+ const Yr = d.toFlatObject(d, {}, null, function(t) {
1403
1423
  return /^is[A-Z]/.test(t);
1404
1424
  });
1405
1425
  function Be(e, t, n) {
@@ -1409,13 +1429,13 @@ function Be(e, t, n) {
1409
1429
  metaTokens: !0,
1410
1430
  dots: !1,
1411
1431
  indexes: !1
1412
- }, !1, function(w, y) {
1413
- return !d.isUndefined(y[w]);
1432
+ }, !1, function(b, h) {
1433
+ return !d.isUndefined(h[b]);
1414
1434
  });
1415
- const s = n.metaTokens, r = n.visitor || c, o = n.dots, a = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && d.isSpecCompliantForm(t);
1435
+ const s = n.metaTokens, r = n.visitor || u, o = n.dots, a = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && d.isSpecCompliantForm(t);
1416
1436
  if (!d.isFunction(r))
1417
1437
  throw new TypeError("visitor must be a function");
1418
- function u(p) {
1438
+ function c(p) {
1419
1439
  if (p === null) return "";
1420
1440
  if (d.isDate(p))
1421
1441
  return p.toISOString();
@@ -1425,45 +1445,45 @@ function Be(e, t, n) {
1425
1445
  throw new S("Blob is not supported. Use a Buffer instead.");
1426
1446
  return d.isArrayBuffer(p) || d.isTypedArray(p) ? l && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
1427
1447
  }
1428
- function c(p, w, y) {
1429
- let $ = p;
1430
- if (p && !y && typeof p == "object") {
1431
- if (d.endsWith(w, "{}"))
1432
- w = s ? w : w.slice(0, -2), p = JSON.stringify(p);
1433
- else if (d.isArray(p) && Kr(p) || (d.isFileList(p) || d.endsWith(w, "[]")) && ($ = d.toArray(p)))
1434
- return w = It(w), $.forEach(function(L, F) {
1435
- !(d.isUndefined(L) || L === null) && t.append(
1448
+ function u(p, b, h) {
1449
+ let _ = p;
1450
+ if (p && !h && typeof p == "object") {
1451
+ if (d.endsWith(b, "{}"))
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) {
1455
+ !(d.isUndefined(O) || O === null) && t.append(
1436
1456
  // eslint-disable-next-line no-nested-ternary
1437
- a === !0 ? lt([w], F, o) : a === null ? w : w + "[]",
1438
- u(L)
1457
+ a === !0 ? lt([b], F, o) : a === null ? b : b + "[]",
1458
+ c(O)
1439
1459
  );
1440
1460
  }), !1;
1441
1461
  }
1442
- return qe(p) ? !0 : (t.append(lt(y, w, o), u(p)), !1);
1462
+ return qe(p) ? !0 : (t.append(lt(h, b, o), c(p)), !1);
1443
1463
  }
1444
- const h = [], x = Object.assign(Xr, {
1445
- defaultVisitor: c,
1446
- convertValue: u,
1464
+ const m = [], w = Object.assign(Yr, {
1465
+ defaultVisitor: u,
1466
+ convertValue: c,
1447
1467
  isVisitable: qe
1448
1468
  });
1449
- function E(p, w) {
1469
+ function v(p, b) {
1450
1470
  if (!d.isUndefined(p)) {
1451
- if (h.indexOf(p) !== -1)
1452
- throw Error("Circular reference detected in " + w.join("."));
1453
- h.push(p), d.forEach(p, function($, T) {
1454
- (!(d.isUndefined($) || $ === null) && r.call(
1471
+ if (m.indexOf(p) !== -1)
1472
+ throw Error("Circular reference detected in " + b.join("."));
1473
+ m.push(p), d.forEach(p, function(_, T) {
1474
+ (!(d.isUndefined(_) || _ === null) && r.call(
1455
1475
  t,
1456
- $,
1476
+ _,
1457
1477
  d.isString(T) ? T.trim() : T,
1458
- w,
1459
- x
1460
- )) === !0 && E($, w ? w.concat(T) : [T]);
1461
- }), h.pop();
1478
+ b,
1479
+ w
1480
+ )) === !0 && v(_, b ? b.concat(T) : [T]);
1481
+ }), m.pop();
1462
1482
  }
1463
1483
  }
1464
1484
  if (!d.isObject(e))
1465
1485
  throw new TypeError("data must be an object");
1466
- return E(e), t;
1486
+ return v(e), t;
1467
1487
  }
1468
1488
  function ct(e) {
1469
1489
  const t = {
@@ -1494,13 +1514,13 @@ zt.toString = function(t) {
1494
1514
  return n(r[0]) + "=" + n(r[1]);
1495
1515
  }, "").join("&");
1496
1516
  };
1497
- function Yr(e) {
1517
+ function Qr(e) {
1498
1518
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
1499
1519
  }
1500
1520
  function qt(e, t, n) {
1501
1521
  if (!t)
1502
1522
  return e;
1503
- const s = n && n.encode || Yr;
1523
+ const s = n && n.encode || Qr;
1504
1524
  d.isFunction(n) && (n = {
1505
1525
  serialize: n
1506
1526
  });
@@ -1570,27 +1590,27 @@ const Zt = {
1570
1590
  silentJSONParsing: !0,
1571
1591
  forcedJSONParsing: !0,
1572
1592
  clarifyTimeoutError: !1
1573
- }, Qr = typeof URLSearchParams < "u" ? URLSearchParams : Je, eo = typeof FormData < "u" ? FormData : null, to = typeof Blob < "u" ? Blob : null, no = {
1593
+ }, eo = typeof URLSearchParams < "u" ? URLSearchParams : Je, to = typeof FormData < "u" ? FormData : null, no = typeof Blob < "u" ? Blob : null, so = {
1574
1594
  isBrowser: !0,
1575
1595
  classes: {
1576
- URLSearchParams: Qr,
1577
- FormData: eo,
1578
- Blob: to
1596
+ URLSearchParams: eo,
1597
+ FormData: to,
1598
+ Blob: no
1579
1599
  },
1580
1600
  protocols: ["http", "https", "file", "blob", "url", "data"]
1581
- }, Ke = typeof window < "u" && typeof document < "u", Ze = typeof navigator == "object" && navigator || void 0, so = Ke && (!Ze || ["ReactNative", "NativeScript", "NS"].indexOf(Ze.product) < 0), ro = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1582
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", oo = Ke && window.location.href || "http://localhost", ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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({
1583
1603
  __proto__: null,
1584
1604
  hasBrowserEnv: Ke,
1585
- hasStandardBrowserEnv: so,
1586
- hasStandardBrowserWebWorkerEnv: ro,
1605
+ hasStandardBrowserEnv: ro,
1606
+ hasStandardBrowserWebWorkerEnv: oo,
1587
1607
  navigator: Ze,
1588
- origin: oo
1608
+ origin: ao
1589
1609
  }, Symbol.toStringTag, { value: "Module" })), H = {
1590
- ...ao,
1591
- ...no
1610
+ ...io,
1611
+ ...so
1592
1612
  };
1593
- function io(e, t) {
1613
+ function lo(e, t) {
1594
1614
  return Be(e, new H.classes.URLSearchParams(), {
1595
1615
  visitor: function(n, s, r, o) {
1596
1616
  return H.isNode && d.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
@@ -1598,10 +1618,10 @@ function io(e, t) {
1598
1618
  ...t
1599
1619
  });
1600
1620
  }
1601
- function lo(e) {
1621
+ function co(e) {
1602
1622
  return d.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
1603
1623
  }
1604
- function co(e) {
1624
+ function uo(e) {
1605
1625
  const t = {}, n = Object.keys(e);
1606
1626
  let s;
1607
1627
  const r = n.length;
@@ -1615,17 +1635,17 @@ function Wt(e) {
1615
1635
  let a = n[o++];
1616
1636
  if (a === "__proto__") return !0;
1617
1637
  const i = Number.isFinite(+a), l = o >= n.length;
1618
- 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] = co(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] = uo(r[a])), !i);
1619
1639
  }
1620
1640
  if (d.isFormData(e) && d.isFunction(e.entries)) {
1621
1641
  const n = {};
1622
1642
  return d.forEachEntry(e, (s, r) => {
1623
- t(lo(s), r, n, 0);
1643
+ t(co(s), r, n, 0);
1624
1644
  }), n;
1625
1645
  }
1626
1646
  return null;
1627
1647
  }
1628
- function uo(e, t, n) {
1648
+ function fo(e, t, n) {
1629
1649
  if (d.isString(e))
1630
1650
  try {
1631
1651
  return (t || JSON.parse)(e), d.trim(e);
@@ -1635,7 +1655,7 @@ function uo(e, t, n) {
1635
1655
  }
1636
1656
  return (n || JSON.stringify)(e);
1637
1657
  }
1638
- const xe = {
1658
+ const be = {
1639
1659
  transitional: Zt,
1640
1660
  adapter: ["xhr", "http", "fetch"],
1641
1661
  transformRequest: [function(t, n) {
@@ -1651,7 +1671,7 @@ const xe = {
1651
1671
  let i;
1652
1672
  if (o) {
1653
1673
  if (s.indexOf("application/x-www-form-urlencoded") > -1)
1654
- return io(t, this.formSerializer).toString();
1674
+ return lo(t, this.formSerializer).toString();
1655
1675
  if ((i = d.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
1656
1676
  const l = this.env && this.env.FormData;
1657
1677
  return Be(
@@ -1661,10 +1681,10 @@ const xe = {
1661
1681
  );
1662
1682
  }
1663
1683
  }
1664
- return o || r ? (n.setContentType("application/json", !1), uo(t)) : t;
1684
+ return o || r ? (n.setContentType("application/json", !1), fo(t)) : t;
1665
1685
  }],
1666
1686
  transformResponse: [function(t) {
1667
- const n = this.transitional || xe.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
1687
+ const n = this.transitional || be.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
1668
1688
  if (d.isResponse(t) || d.isReadableStream(t))
1669
1689
  return t;
1670
1690
  if (t && d.isString(t) && (s && !this.responseType || r)) {
@@ -1702,9 +1722,9 @@ const xe = {
1702
1722
  }
1703
1723
  };
1704
1724
  d.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
1705
- xe.headers[e] = {};
1725
+ be.headers[e] = {};
1706
1726
  });
1707
- const fo = d.toObjectSet([
1727
+ const po = d.toObjectSet([
1708
1728
  "age",
1709
1729
  "authorization",
1710
1730
  "content-length",
@@ -1722,28 +1742,28 @@ const fo = d.toObjectSet([
1722
1742
  "referer",
1723
1743
  "retry-after",
1724
1744
  "user-agent"
1725
- ]), po = (e) => {
1745
+ ]), ho = (e) => {
1726
1746
  const t = {};
1727
1747
  let n, s, r;
1728
1748
  return e && e.split(`
1729
1749
  `).forEach(function(a) {
1730
- r = a.indexOf(":"), n = a.substring(0, r).trim().toLowerCase(), s = a.substring(r + 1).trim(), !(!n || t[n] && fo[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] && po[n]) && (n === "set-cookie" ? t[n] ? t[n].push(s) : t[n] = [s] : t[n] = t[n] ? t[n] + ", " + s : s);
1731
1751
  }), t;
1732
1752
  }, dt = Symbol("internals");
1733
- function he(e) {
1753
+ function pe(e) {
1734
1754
  return e && String(e).trim().toLowerCase();
1735
1755
  }
1736
1756
  function Re(e) {
1737
1757
  return e === !1 || e == null ? e : d.isArray(e) ? e.map(Re) : String(e);
1738
1758
  }
1739
- function ho(e) {
1759
+ function mo(e) {
1740
1760
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1741
1761
  let s;
1742
1762
  for (; s = n.exec(e); )
1743
1763
  t[s[1]] = s[2];
1744
1764
  return t;
1745
1765
  }
1746
- const mo = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1766
+ const go = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1747
1767
  function Ue(e, t, n, s, r) {
1748
1768
  if (d.isFunction(s))
1749
1769
  return s.call(this, t, n);
@@ -1754,10 +1774,10 @@ function Ue(e, t, n, s, r) {
1754
1774
  return s.test(t);
1755
1775
  }
1756
1776
  }
1757
- function go(e) {
1777
+ function yo(e) {
1758
1778
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, s) => n.toUpperCase() + s);
1759
1779
  }
1760
- function yo(e, t) {
1780
+ function wo(e, t) {
1761
1781
  const n = d.toCamelCase(" " + t);
1762
1782
  ["get", "set", "has"].forEach((s) => {
1763
1783
  Object.defineProperty(e, s + n, {
@@ -1774,24 +1794,24 @@ let N = class {
1774
1794
  }
1775
1795
  set(t, n, s) {
1776
1796
  const r = this;
1777
- function o(i, l, u) {
1778
- const c = he(l);
1779
- if (!c)
1797
+ function o(i, l, c) {
1798
+ const u = pe(l);
1799
+ if (!u)
1780
1800
  throw new Error("header name must be a non-empty string");
1781
- const h = d.findKey(r, c);
1782
- (!h || r[h] === void 0 || u === !0 || u === void 0 && r[h] !== !1) && (r[h || l] = Re(i));
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));
1783
1803
  }
1784
- const a = (i, l) => d.forEach(i, (u, c) => o(u, c, l));
1804
+ const a = (i, l) => d.forEach(i, (c, u) => o(c, u, l));
1785
1805
  if (d.isPlainObject(t) || t instanceof this.constructor)
1786
1806
  a(t, n);
1787
- else if (d.isString(t) && (t = t.trim()) && !mo(t))
1788
- a(po(t), n);
1807
+ else if (d.isString(t) && (t = t.trim()) && !go(t))
1808
+ a(ho(t), n);
1789
1809
  else if (d.isObject(t) && d.isIterable(t)) {
1790
- let i = {}, l, u;
1791
- for (const c of t) {
1792
- if (!d.isArray(c))
1810
+ let i = {}, l, c;
1811
+ for (const u of t) {
1812
+ if (!d.isArray(u))
1793
1813
  throw TypeError("Object iterator must return a key-value pair");
1794
- i[u = c[0]] = (l = i[u]) ? d.isArray(l) ? [...l, c[1]] : [l, c[1]] : c[1];
1814
+ i[c = u[0]] = (l = i[c]) ? d.isArray(l) ? [...l, u[1]] : [l, u[1]] : u[1];
1795
1815
  }
1796
1816
  a(i, n);
1797
1817
  } else
@@ -1799,14 +1819,14 @@ let N = class {
1799
1819
  return this;
1800
1820
  }
1801
1821
  get(t, n) {
1802
- if (t = he(t), t) {
1822
+ if (t = pe(t), t) {
1803
1823
  const s = d.findKey(this, t);
1804
1824
  if (s) {
1805
1825
  const r = this[s];
1806
1826
  if (!n)
1807
1827
  return r;
1808
1828
  if (n === !0)
1809
- return ho(r);
1829
+ return mo(r);
1810
1830
  if (d.isFunction(n))
1811
1831
  return n.call(this, r, s);
1812
1832
  if (d.isRegExp(n))
@@ -1816,7 +1836,7 @@ let N = class {
1816
1836
  }
1817
1837
  }
1818
1838
  has(t, n) {
1819
- if (t = he(t), t) {
1839
+ if (t = pe(t), t) {
1820
1840
  const s = d.findKey(this, t);
1821
1841
  return !!(s && this[s] !== void 0 && (!n || Ue(this, this[s], s, n)));
1822
1842
  }
@@ -1826,7 +1846,7 @@ let N = class {
1826
1846
  const s = this;
1827
1847
  let r = !1;
1828
1848
  function o(a) {
1829
- if (a = he(a), a) {
1849
+ if (a = pe(a), a) {
1830
1850
  const i = d.findKey(s, a);
1831
1851
  i && (!n || Ue(s, s[i], i, n)) && (delete s[i], r = !0);
1832
1852
  }
@@ -1850,7 +1870,7 @@ let N = class {
1850
1870
  n[a] = Re(r), delete n[o];
1851
1871
  return;
1852
1872
  }
1853
- const i = t ? go(o) : String(o).trim();
1873
+ const i = t ? yo(o) : String(o).trim();
1854
1874
  i !== o && delete n[o], n[i] = Re(r), s[i] = !0;
1855
1875
  }), this;
1856
1876
  }
@@ -1888,8 +1908,8 @@ let N = class {
1888
1908
  accessors: {}
1889
1909
  }).accessors, r = this.prototype;
1890
1910
  function o(a) {
1891
- const i = he(a);
1892
- s[i] || (yo(r, a), s[i] = !0);
1911
+ const i = pe(a);
1912
+ s[i] || (wo(r, a), s[i] = !0);
1893
1913
  }
1894
1914
  return d.isArray(t) ? t.forEach(o) : o(t), this;
1895
1915
  }
@@ -1906,7 +1926,7 @@ d.reduceDescriptors(N.prototype, ({ value: e }, t) => {
1906
1926
  });
1907
1927
  d.freezeMethods(N);
1908
1928
  function je(e, t) {
1909
- const n = this || xe, s = t || n, r = N.from(s.headers);
1929
+ const n = this || be, s = t || n, r = N.from(s.headers);
1910
1930
  let o = s.data;
1911
1931
  return d.forEach(e, function(i) {
1912
1932
  o = i.call(n, o, r.normalize(), t ? t.status : void 0);
@@ -1915,10 +1935,10 @@ function je(e, t) {
1915
1935
  function Gt(e) {
1916
1936
  return !!(e && e.__CANCEL__);
1917
1937
  }
1918
- function ue(e, t, n) {
1938
+ function ce(e, t, n) {
1919
1939
  S.call(this, e ?? "canceled", S.ERR_CANCELED, t, n), this.name = "CanceledError";
1920
1940
  }
1921
- d.inherits(ue, S, {
1941
+ d.inherits(ce, S, {
1922
1942
  __CANCEL__: !0
1923
1943
  });
1924
1944
  function Jt(e, t, n) {
@@ -1931,56 +1951,56 @@ function Jt(e, t, n) {
1931
1951
  n
1932
1952
  ));
1933
1953
  }
1934
- function wo(e) {
1954
+ function bo(e) {
1935
1955
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
1936
1956
  return t && t[1] || "";
1937
1957
  }
1938
- function bo(e, t) {
1958
+ function xo(e, t) {
1939
1959
  e = e || 10;
1940
1960
  const n = new Array(e), s = new Array(e);
1941
1961
  let r = 0, o = 0, a;
1942
1962
  return t = t !== void 0 ? t : 1e3, function(l) {
1943
- const u = Date.now(), c = s[o];
1944
- a || (a = u), n[r] = l, s[r] = u;
1945
- let h = o, x = 0;
1946
- for (; h !== r; )
1947
- x += n[h++], h = h % e;
1948
- if (r = (r + 1) % e, r === o && (o = (o + 1) % e), u - a < t)
1963
+ const c = Date.now(), u = s[o];
1964
+ a || (a = c), n[r] = l, s[r] = c;
1965
+ let m = o, w = 0;
1966
+ for (; m !== r; )
1967
+ w += n[m++], m = m % e;
1968
+ if (r = (r + 1) % e, r === o && (o = (o + 1) % e), c - a < t)
1949
1969
  return;
1950
- const E = c && u - c;
1951
- return E ? Math.round(x * 1e3 / E) : void 0;
1970
+ const v = u && c - u;
1971
+ return v ? Math.round(w * 1e3 / v) : void 0;
1952
1972
  };
1953
1973
  }
1954
- function xo(e, t) {
1974
+ function So(e, t) {
1955
1975
  let n = 0, s = 1e3 / t, r, o;
1956
- const a = (u, c = Date.now()) => {
1957
- n = c, r = null, o && (clearTimeout(o), o = null), e(...u);
1976
+ const a = (c, u = Date.now()) => {
1977
+ n = u, r = null, o && (clearTimeout(o), o = null), e(...c);
1958
1978
  };
1959
- return [(...u) => {
1960
- const c = Date.now(), h = c - n;
1961
- h >= s ? a(u, c) : (r = u, o || (o = setTimeout(() => {
1979
+ return [(...c) => {
1980
+ const u = Date.now(), m = u - n;
1981
+ m >= s ? a(c, u) : (r = c, o || (o = setTimeout(() => {
1962
1982
  o = null, a(r);
1963
- }, s - h)));
1983
+ }, s - m)));
1964
1984
  }, () => r && a(r)];
1965
1985
  }
1966
- const Le = (e, t, n = 3) => {
1986
+ const Oe = (e, t, n = 3) => {
1967
1987
  let s = 0;
1968
- const r = bo(50, 250);
1969
- return xo((o) => {
1970
- const a = o.loaded, i = o.lengthComputable ? o.total : void 0, l = a - s, u = r(l), c = a <= i;
1988
+ const r = xo(50, 250);
1989
+ return So((o) => {
1990
+ const a = o.loaded, i = o.lengthComputable ? o.total : void 0, l = a - s, c = r(l), u = a <= i;
1971
1991
  s = a;
1972
- const h = {
1992
+ const m = {
1973
1993
  loaded: a,
1974
1994
  total: i,
1975
1995
  progress: i ? a / i : void 0,
1976
1996
  bytes: l,
1977
- rate: u || void 0,
1978
- estimated: u && i && c ? (i - a) / u : void 0,
1997
+ rate: c || void 0,
1998
+ estimated: c && i && u ? (i - a) / c : void 0,
1979
1999
  event: o,
1980
2000
  lengthComputable: i != null,
1981
2001
  [t ? "download" : "upload"]: !0
1982
2002
  };
1983
- e(h);
2003
+ e(m);
1984
2004
  }, n);
1985
2005
  }, ft = (e, t) => {
1986
2006
  const n = e != null;
@@ -1989,10 +2009,10 @@ const Le = (e, t, n = 3) => {
1989
2009
  total: e,
1990
2010
  loaded: s
1991
2011
  }), t[1]];
1992
- }, pt = (e) => (...t) => d.asap(() => e(...t)), So = 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
+ }, 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)))(
1993
2013
  new URL(H.origin),
1994
2014
  H.navigator && /(msie|trident)/i.test(H.navigator.userAgent)
1995
- ) : () => !0, Co = H.hasStandardBrowserEnv ? (
2015
+ ) : () => !0, vo = H.hasStandardBrowserEnv ? (
1996
2016
  // Standard browser envs support document.cookie
1997
2017
  {
1998
2018
  write(e, t, n, s, r, o, a) {
@@ -2021,44 +2041,44 @@ const Le = (e, t, n = 3) => {
2021
2041
  }
2022
2042
  }
2023
2043
  );
2024
- function vo(e) {
2044
+ function _o(e) {
2025
2045
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
2026
2046
  }
2027
- function _o(e, t) {
2047
+ function ko(e, t) {
2028
2048
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
2029
2049
  }
2030
2050
  function Kt(e, t, n) {
2031
- let s = !vo(t);
2032
- return e && (s || n == !1) ? _o(e, t) : t;
2051
+ let s = !_o(t);
2052
+ return e && (s || n == !1) ? ko(e, t) : t;
2033
2053
  }
2034
2054
  const ht = (e) => e instanceof N ? { ...e } : e;
2035
- function ne(e, t) {
2055
+ function te(e, t) {
2036
2056
  t = t || {};
2037
2057
  const n = {};
2038
- function s(u, c, h, x) {
2039
- return d.isPlainObject(u) && d.isPlainObject(c) ? d.merge.call({ caseless: x }, u, c) : d.isPlainObject(c) ? d.merge({}, c) : d.isArray(c) ? c.slice() : c;
2058
+ function s(c, u, m, w) {
2059
+ return d.isPlainObject(c) && d.isPlainObject(u) ? d.merge.call({ caseless: w }, c, u) : d.isPlainObject(u) ? d.merge({}, u) : d.isArray(u) ? u.slice() : u;
2040
2060
  }
2041
- function r(u, c, h, x) {
2042
- if (d.isUndefined(c)) {
2043
- if (!d.isUndefined(u))
2044
- return s(void 0, u, h, x);
2045
- } else return s(u, c, h, x);
2061
+ function r(c, u, m, w) {
2062
+ if (d.isUndefined(u)) {
2063
+ if (!d.isUndefined(c))
2064
+ return s(void 0, c, m, w);
2065
+ } else return s(c, u, m, w);
2046
2066
  }
2047
- function o(u, c) {
2048
- if (!d.isUndefined(c))
2049
- return s(void 0, c);
2067
+ function o(c, u) {
2068
+ if (!d.isUndefined(u))
2069
+ return s(void 0, u);
2050
2070
  }
2051
- function a(u, c) {
2052
- if (d.isUndefined(c)) {
2053
- if (!d.isUndefined(u))
2054
- return s(void 0, u);
2055
- } else return s(void 0, c);
2071
+ function a(c, u) {
2072
+ if (d.isUndefined(u)) {
2073
+ if (!d.isUndefined(c))
2074
+ return s(void 0, c);
2075
+ } else return s(void 0, u);
2056
2076
  }
2057
- function i(u, c, h) {
2058
- if (h in t)
2059
- return s(u, c);
2060
- if (h in e)
2061
- return s(void 0, u);
2077
+ function i(c, u, m) {
2078
+ if (m in t)
2079
+ return s(c, u);
2080
+ if (m in e)
2081
+ return s(void 0, c);
2062
2082
  }
2063
2083
  const l = {
2064
2084
  url: o,
@@ -2089,15 +2109,15 @@ function ne(e, t) {
2089
2109
  socketPath: a,
2090
2110
  responseEncoding: a,
2091
2111
  validateStatus: i,
2092
- headers: (u, c, h) => r(ht(u), ht(c), h, !0)
2112
+ headers: (c, u, m) => r(ht(c), ht(u), m, !0)
2093
2113
  };
2094
- return d.forEach(Object.keys({ ...e, ...t }), function(c) {
2095
- const h = l[c] || r, x = h(e[c], t[c], c);
2096
- d.isUndefined(x) && h !== i || (n[c] = x);
2114
+ return d.forEach(Object.keys({ ...e, ...t }), function(u) {
2115
+ const m = l[u] || r, w = m(e[u], t[u], u);
2116
+ d.isUndefined(w) && m !== i || (n[u] = w);
2097
2117
  }), n;
2098
2118
  }
2099
2119
  const Xt = (e) => {
2100
- const t = ne({}, e);
2120
+ const t = te({}, e);
2101
2121
  let { data: n, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: o, headers: a, auth: i } = t;
2102
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(
2103
2123
  "Authorization",
@@ -2106,99 +2126,99 @@ const Xt = (e) => {
2106
2126
  if (H.hasStandardBrowserEnv || H.hasStandardBrowserWebWorkerEnv)
2107
2127
  a.setContentType(void 0);
2108
2128
  else if (d.isFunction(n.getHeaders)) {
2109
- const l = n.getHeaders(), u = ["content-type", "content-length"];
2110
- Object.entries(l).forEach(([c, h]) => {
2111
- u.includes(c.toLowerCase()) && a.set(c, h);
2129
+ const l = n.getHeaders(), c = ["content-type", "content-length"];
2130
+ Object.entries(l).forEach(([u, m]) => {
2131
+ c.includes(u.toLowerCase()) && a.set(u, m);
2112
2132
  });
2113
2133
  }
2114
2134
  }
2115
- if (H.hasStandardBrowserEnv && (s && d.isFunction(s) && (s = s(t)), s || s !== !1 && So(t.url))) {
2116
- const l = r && o && Co.read(o);
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);
2117
2137
  l && a.set(r, l);
2118
2138
  }
2119
2139
  return t;
2120
- }, ko = typeof XMLHttpRequest < "u", Ro = ko && function(e) {
2140
+ }, Ro = typeof XMLHttpRequest < "u", Eo = Ro && function(e) {
2121
2141
  return new Promise(function(n, s) {
2122
2142
  const r = Xt(e);
2123
2143
  let o = r.data;
2124
2144
  const a = N.from(r.headers).normalize();
2125
- let { responseType: i, onUploadProgress: l, onDownloadProgress: u } = r, c, h, x, E, p;
2126
- function w() {
2127
- E && E(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(c), r.signal && r.signal.removeEventListener("abort", c);
2128
- }
2129
- let y = new XMLHttpRequest();
2130
- y.open(r.method.toUpperCase(), r.url, !0), y.timeout = r.timeout;
2131
- function $() {
2132
- if (!y)
2145
+ let { responseType: i, onUploadProgress: l, onDownloadProgress: c } = r, u, m, w, v, p;
2146
+ function b() {
2147
+ v && v(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(u), r.signal && r.signal.removeEventListener("abort", u);
2148
+ }
2149
+ let h = new XMLHttpRequest();
2150
+ h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
2151
+ function _() {
2152
+ if (!h)
2133
2153
  return;
2134
- const L = N.from(
2135
- "getAllResponseHeaders" in y && y.getAllResponseHeaders()
2154
+ const O = N.from(
2155
+ "getAllResponseHeaders" in h && h.getAllResponseHeaders()
2136
2156
  ), j = {
2137
- data: !i || i === "text" || i === "json" ? y.responseText : y.response,
2138
- status: y.status,
2139
- statusText: y.statusText,
2140
- headers: L,
2157
+ data: !i || i === "text" || i === "json" ? h.responseText : h.response,
2158
+ status: h.status,
2159
+ statusText: h.statusText,
2160
+ headers: O,
2141
2161
  config: e,
2142
- request: y
2162
+ request: h
2143
2163
  };
2144
2164
  Jt(function(P) {
2145
- n(P), w();
2165
+ n(P), b();
2146
2166
  }, function(P) {
2147
- s(P), w();
2148
- }, j), y = null;
2149
- }
2150
- "onloadend" in y ? y.onloadend = $ : y.onreadystatechange = function() {
2151
- !y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout($);
2152
- }, y.onabort = function() {
2153
- y && (s(new S("Request aborted", S.ECONNABORTED, e, y)), y = null);
2154
- }, y.onerror = function(F) {
2155
- const j = F && F.message ? F.message : "Network Error", X = new S(j, S.ERR_NETWORK, e, y);
2156
- X.event = F || null, s(X), y = null;
2157
- }, y.ontimeout = function() {
2167
+ s(P), b();
2168
+ }, j), h = null;
2169
+ }
2170
+ "onloadend" in h ? h.onloadend = _ : h.onreadystatechange = function() {
2171
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(_);
2172
+ }, h.onabort = function() {
2173
+ h && (s(new S("Request aborted", S.ECONNABORTED, e, h)), h = null);
2174
+ }, h.onerror = function(F) {
2175
+ const j = F && F.message ? F.message : "Network Error", X = new S(j, S.ERR_NETWORK, e, h);
2176
+ X.event = F || null, s(X), h = null;
2177
+ }, h.ontimeout = function() {
2158
2178
  let F = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
2159
2179
  const j = r.transitional || Zt;
2160
2180
  r.timeoutErrorMessage && (F = r.timeoutErrorMessage), s(new S(
2161
2181
  F,
2162
2182
  j.clarifyTimeoutError ? S.ETIMEDOUT : S.ECONNABORTED,
2163
2183
  e,
2164
- y
2165
- )), y = null;
2166
- }, o === void 0 && a.setContentType(null), "setRequestHeader" in y && d.forEach(a.toJSON(), function(F, j) {
2167
- y.setRequestHeader(j, F);
2168
- }), d.isUndefined(r.withCredentials) || (y.withCredentials = !!r.withCredentials), i && i !== "json" && (y.responseType = r.responseType), u && ([x, p] = Le(u, !0), y.addEventListener("progress", x)), l && y.upload && ([h, E] = Le(l), y.upload.addEventListener("progress", h), y.upload.addEventListener("loadend", E)), (r.cancelToken || r.signal) && (c = (L) => {
2169
- y && (s(!L || L.type ? new ue(null, e, y) : L), y.abort(), y = null);
2170
- }, r.cancelToken && r.cancelToken.subscribe(c), r.signal && (r.signal.aborted ? c() : r.signal.addEventListener("abort", c)));
2171
- const T = wo(r.url);
2184
+ h
2185
+ )), h = null;
2186
+ }, o === void 0 && a.setContentType(null), "setRequestHeader" in h && d.forEach(a.toJSON(), function(F, j) {
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);
2190
+ }, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
2191
+ const T = bo(r.url);
2172
2192
  if (T && H.protocols.indexOf(T) === -1) {
2173
2193
  s(new S("Unsupported protocol " + T + ":", S.ERR_BAD_REQUEST, e));
2174
2194
  return;
2175
2195
  }
2176
- y.send(o || null);
2196
+ h.send(o || null);
2177
2197
  });
2178
- }, Eo = (e, t) => {
2198
+ }, $o = (e, t) => {
2179
2199
  const { length: n } = e = e ? e.filter(Boolean) : [];
2180
2200
  if (t || n) {
2181
2201
  let s = new AbortController(), r;
2182
- const o = function(u) {
2202
+ const o = function(c) {
2183
2203
  if (!r) {
2184
2204
  r = !0, i();
2185
- const c = u instanceof Error ? u : this.reason;
2186
- s.abort(c instanceof S ? c : new ue(c instanceof Error ? c.message : c));
2205
+ const u = c instanceof Error ? c : this.reason;
2206
+ s.abort(u instanceof S ? u : new ce(u instanceof Error ? u.message : u));
2187
2207
  }
2188
2208
  };
2189
2209
  let a = t && setTimeout(() => {
2190
2210
  a = null, o(new S(`timeout ${t} of ms exceeded`, S.ETIMEDOUT));
2191
2211
  }, t);
2192
2212
  const i = () => {
2193
- e && (a && clearTimeout(a), a = null, e.forEach((u) => {
2194
- u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
2213
+ e && (a && clearTimeout(a), a = null, e.forEach((c) => {
2214
+ c.unsubscribe ? c.unsubscribe(o) : c.removeEventListener("abort", o);
2195
2215
  }), e = null);
2196
2216
  };
2197
- e.forEach((u) => u.addEventListener("abort", o));
2217
+ e.forEach((c) => c.addEventListener("abort", o));
2198
2218
  const { signal: l } = s;
2199
2219
  return l.unsubscribe = () => d.asap(i), l;
2200
2220
  }
2201
- }, $o = function* (e, t) {
2221
+ }, Ao = function* (e, t) {
2202
2222
  let n = e.byteLength;
2203
2223
  if (n < t) {
2204
2224
  yield e;
@@ -2207,9 +2227,9 @@ const Xt = (e) => {
2207
2227
  let s = 0, r;
2208
2228
  for (; s < n; )
2209
2229
  r = s + t, yield e.slice(s, r), s = r;
2210
- }, Ao = async function* (e, t) {
2230
+ }, Oo = async function* (e, t) {
2211
2231
  for await (const n of Lo(e))
2212
- yield* $o(n, t);
2232
+ yield* Ao(n, t);
2213
2233
  }, Lo = async function* (e) {
2214
2234
  if (e[Symbol.asyncIterator]) {
2215
2235
  yield* e;
@@ -2227,26 +2247,26 @@ const Xt = (e) => {
2227
2247
  await t.cancel();
2228
2248
  }
2229
2249
  }, mt = (e, t, n, s) => {
2230
- const r = Ao(e, t);
2250
+ const r = Oo(e, t);
2231
2251
  let o = 0, a, i = (l) => {
2232
2252
  a || (a = !0, s && s(l));
2233
2253
  };
2234
2254
  return new ReadableStream({
2235
2255
  async pull(l) {
2236
2256
  try {
2237
- const { done: u, value: c } = await r.next();
2238
- if (u) {
2257
+ const { done: c, value: u } = await r.next();
2258
+ if (c) {
2239
2259
  i(), l.close();
2240
2260
  return;
2241
2261
  }
2242
- let h = c.byteLength;
2262
+ let m = u.byteLength;
2243
2263
  if (n) {
2244
- let x = o += h;
2245
- n(x);
2264
+ let w = o += m;
2265
+ n(w);
2246
2266
  }
2247
- l.enqueue(new Uint8Array(c));
2248
- } catch (u) {
2249
- throw i(u), u;
2267
+ l.enqueue(new Uint8Array(u));
2268
+ } catch (c) {
2269
+ throw i(c), c;
2250
2270
  }
2251
2271
  },
2252
2272
  cancel(l) {
@@ -2255,7 +2275,7 @@ const Xt = (e) => {
2255
2275
  }, {
2256
2276
  highWaterMark: 2
2257
2277
  });
2258
- }, gt = 64 * 1024, { isFunction: _e } = d, Oo = (({ Request: e, Response: t }) => ({
2278
+ }, gt = 64 * 1024, { isFunction: _e } = d, To = (({ Request: e, Response: t }) => ({
2259
2279
  Request: e,
2260
2280
  Response: t
2261
2281
  }))(d.global), {
@@ -2267,35 +2287,35 @@ const Xt = (e) => {
2267
2287
  } catch {
2268
2288
  return !1;
2269
2289
  }
2270
- }, To = (e) => {
2290
+ }, Ho = (e) => {
2271
2291
  e = d.merge.call({
2272
2292
  skipUndefined: !0
2273
- }, Oo, e);
2293
+ }, To, e);
2274
2294
  const { fetch: t, Request: n, Response: s } = e, r = t ? _e(t) : typeof fetch == "function", o = _e(n), a = _e(s);
2275
2295
  if (!r)
2276
2296
  return !1;
2277
- const i = r && _e(yt), l = r && (typeof wt == "function" ? /* @__PURE__ */ ((p) => (w) => p.encode(w))(new wt()) : async (p) => new Uint8Array(await new n(p).arrayBuffer())), u = o && i && bt(() => {
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(() => {
2278
2298
  let p = !1;
2279
- const w = new n(H.origin, {
2299
+ const b = new n(H.origin, {
2280
2300
  body: new yt(),
2281
2301
  method: "POST",
2282
2302
  get duplex() {
2283
2303
  return p = !0, "half";
2284
2304
  }
2285
2305
  }).headers.has("Content-Type");
2286
- return p && !w;
2287
- }), c = a && i && bt(() => d.isReadableStream(new s("").body)), h = {
2288
- stream: c && ((p) => p.body)
2306
+ return p && !b;
2307
+ }), u = a && i && bt(() => d.isReadableStream(new s("").body)), m = {
2308
+ stream: u && ((p) => p.body)
2289
2309
  };
2290
2310
  r && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((p) => {
2291
- !h[p] && (h[p] = (w, y) => {
2292
- let $ = w && w[p];
2293
- if ($)
2294
- return $.call(w);
2295
- throw new S(`Response type '${p}' is not supported`, S.ERR_NOT_SUPPORT, y);
2311
+ !m[p] && (m[p] = (b, h) => {
2312
+ let _ = b && b[p];
2313
+ if (_)
2314
+ return _.call(b);
2315
+ throw new S(`Response type '${p}' is not supported`, S.ERR_NOT_SUPPORT, h);
2296
2316
  });
2297
2317
  });
2298
- const x = async (p) => {
2318
+ const w = async (p) => {
2299
2319
  if (p == null)
2300
2320
  return 0;
2301
2321
  if (d.isBlob(p))
@@ -2309,112 +2329,112 @@ const Xt = (e) => {
2309
2329
  return p.byteLength;
2310
2330
  if (d.isURLSearchParams(p) && (p = p + ""), d.isString(p))
2311
2331
  return (await l(p)).byteLength;
2312
- }, E = async (p, w) => {
2313
- const y = d.toFiniteNumber(p.getContentLength());
2314
- return y ?? x(w);
2332
+ }, v = async (p, b) => {
2333
+ const h = d.toFiniteNumber(p.getContentLength());
2334
+ return h ?? w(b);
2315
2335
  };
2316
2336
  return async (p) => {
2317
2337
  let {
2318
- url: w,
2319
- method: y,
2320
- data: $,
2338
+ url: b,
2339
+ method: h,
2340
+ data: _,
2321
2341
  signal: T,
2322
- cancelToken: L,
2342
+ cancelToken: O,
2323
2343
  timeout: F,
2324
2344
  onDownloadProgress: j,
2325
2345
  onUploadProgress: X,
2326
2346
  responseType: P,
2327
2347
  headers: Ne,
2328
- withCredentials: Se = "same-origin",
2348
+ withCredentials: xe = "same-origin",
2329
2349
  fetchOptions: Ye
2330
2350
  } = Xt(p), Qe = t || fetch;
2331
2351
  P = P ? (P + "").toLowerCase() : "text";
2332
- let Ce = Eo([T, L && L.toAbortSignal()], F), de = null;
2333
- const Y = Ce && Ce.unsubscribe && (() => {
2334
- Ce.unsubscribe();
2352
+ let Se = $o([T, O && O.toAbortSignal()], F), ue = null;
2353
+ const Y = Se && Se.unsubscribe && (() => {
2354
+ Se.unsubscribe();
2335
2355
  });
2336
2356
  let et;
2337
2357
  try {
2338
- if (X && u && y !== "get" && y !== "head" && (et = await E(Ne, $)) !== 0) {
2339
- let G = new n(w, {
2358
+ if (X && c && h !== "get" && h !== "head" && (et = await v(Ne, _)) !== 0) {
2359
+ let G = new n(b, {
2340
2360
  method: "POST",
2341
- body: $,
2361
+ body: _,
2342
2362
  duplex: "half"
2343
- }), ae;
2344
- if (d.isFormData($) && (ae = G.headers.get("content-type")) && Ne.setContentType(ae), G.body) {
2345
- const [Pe, ve] = ft(
2363
+ }), oe;
2364
+ if (d.isFormData(_) && (oe = G.headers.get("content-type")) && Ne.setContentType(oe), G.body) {
2365
+ const [Pe, Ce] = ft(
2346
2366
  et,
2347
- Le(pt(X))
2367
+ Oe(pt(X))
2348
2368
  );
2349
- $ = mt(G.body, gt, Pe, ve);
2369
+ _ = mt(G.body, gt, Pe, Ce);
2350
2370
  }
2351
2371
  }
2352
- d.isString(Se) || (Se = Se ? "include" : "omit");
2372
+ d.isString(xe) || (xe = xe ? "include" : "omit");
2353
2373
  const I = o && "credentials" in n.prototype, tt = {
2354
2374
  ...Ye,
2355
- signal: Ce,
2356
- method: y.toUpperCase(),
2375
+ signal: Se,
2376
+ method: h.toUpperCase(),
2357
2377
  headers: Ne.normalize().toJSON(),
2358
- body: $,
2378
+ body: _,
2359
2379
  duplex: "half",
2360
- credentials: I ? Se : void 0
2380
+ credentials: I ? xe : void 0
2361
2381
  };
2362
- de = o && new n(w, tt);
2363
- let W = await (o ? Qe(de, Ye) : Qe(w, tt));
2364
- const nt = c && (P === "stream" || P === "response");
2365
- if (c && (j || nt && Y)) {
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)) {
2366
2386
  const G = {};
2367
2387
  ["status", "statusText", "headers"].forEach((st) => {
2368
2388
  G[st] = W[st];
2369
2389
  });
2370
- const ae = d.toFiniteNumber(W.headers.get("content-length")), [Pe, ve] = j && ft(
2371
- ae,
2372
- Le(pt(j), !0)
2390
+ const oe = d.toFiniteNumber(W.headers.get("content-length")), [Pe, Ce] = j && ft(
2391
+ oe,
2392
+ Oe(pt(j), !0)
2373
2393
  ) || [];
2374
2394
  W = new s(
2375
2395
  mt(W.body, gt, Pe, () => {
2376
- ve && ve(), Y && Y();
2396
+ Ce && Ce(), Y && Y();
2377
2397
  }),
2378
2398
  G
2379
2399
  );
2380
2400
  }
2381
2401
  P = P || "text";
2382
- let rn = await h[d.findKey(h, P) || "text"](W, p);
2383
- return !nt && Y && Y(), await new Promise((G, ae) => {
2384
- Jt(G, ae, {
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, {
2385
2405
  data: rn,
2386
2406
  headers: N.from(W.headers),
2387
2407
  status: W.status,
2388
2408
  statusText: W.statusText,
2389
2409
  config: p,
2390
- request: de
2410
+ request: ue
2391
2411
  });
2392
2412
  });
2393
2413
  } catch (I) {
2394
2414
  throw Y && Y(), I && I.name === "TypeError" && /Load failed|fetch/i.test(I.message) ? Object.assign(
2395
- new S("Network Error", S.ERR_NETWORK, p, de),
2415
+ new S("Network Error", S.ERR_NETWORK, p, ue),
2396
2416
  {
2397
2417
  cause: I.cause || I
2398
2418
  }
2399
- ) : S.from(I, I && I.code, p, de);
2419
+ ) : S.from(I, I && I.code, p, ue);
2400
2420
  }
2401
2421
  };
2402
- }, Ho = /* @__PURE__ */ new Map(), Yt = (e) => {
2422
+ }, Fo = /* @__PURE__ */ new Map(), Yt = (e) => {
2403
2423
  let t = e && e.env || {};
2404
2424
  const { fetch: n, Request: s, Response: r } = t, o = [
2405
2425
  s,
2406
2426
  r,
2407
2427
  n
2408
2428
  ];
2409
- let a = o.length, i = a, l, u, c = Ho;
2429
+ let a = o.length, i = a, l, c, u = Fo;
2410
2430
  for (; i--; )
2411
- l = o[i], u = c.get(l), u === void 0 && c.set(l, u = i ? /* @__PURE__ */ new Map() : To(t)), c = u;
2412
- return u;
2431
+ l = o[i], c = u.get(l), c === void 0 && u.set(l, c = i ? /* @__PURE__ */ new Map() : Ho(t)), u = c;
2432
+ return c;
2413
2433
  };
2414
2434
  Yt();
2415
2435
  const Xe = {
2416
- http: Jr,
2417
- xhr: Ro,
2436
+ http: Kr,
2437
+ xhr: Eo,
2418
2438
  fetch: {
2419
2439
  get: Yt
2420
2440
  }
@@ -2428,8 +2448,8 @@ d.forEach(Xe, (e, t) => {
2428
2448
  Object.defineProperty(e, "adapterName", { value: t });
2429
2449
  }
2430
2450
  });
2431
- const xt = (e) => `- ${e}`, Fo = (e) => d.isFunction(e) || e === null || e === !1;
2432
- function Bo(e, t) {
2451
+ const xt = (e) => `- ${e}`, Bo = (e) => d.isFunction(e) || e === null || e === !1;
2452
+ function Vo(e, t) {
2433
2453
  e = d.isArray(e) ? e : [e];
2434
2454
  const { length: n } = e;
2435
2455
  let s, r;
@@ -2437,7 +2457,7 @@ function Bo(e, t) {
2437
2457
  for (let a = 0; a < n; a++) {
2438
2458
  s = e[a];
2439
2459
  let i;
2440
- if (r = s, !Fo(s) && (r = Xe[(i = String(s)).toLowerCase()], r === void 0))
2460
+ if (r = s, !Bo(s) && (r = Xe[(i = String(s)).toLowerCase()], r === void 0))
2441
2461
  throw new S(`Unknown adapter '${i}'`);
2442
2462
  if (r && (d.isFunction(r) || (r = r.get(t))))
2443
2463
  break;
@@ -2445,7 +2465,7 @@ function Bo(e, t) {
2445
2465
  }
2446
2466
  if (!r) {
2447
2467
  const a = Object.entries(o).map(
2448
- ([l, u]) => `adapter ${l} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
2468
+ ([l, c]) => `adapter ${l} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
2449
2469
  );
2450
2470
  let i = n ? a.length > 1 ? `since :
2451
2471
  ` + a.map(xt).join(`
@@ -2462,7 +2482,7 @@ const Qt = {
2462
2482
  * Resolve an adapter from a list of adapter names or functions.
2463
2483
  * @type {Function}
2464
2484
  */
2465
- getAdapter: Bo,
2485
+ getAdapter: Vo,
2466
2486
  /**
2467
2487
  * Exposes all known adapters
2468
2488
  * @type {Object<string, Function|Object>}
@@ -2471,13 +2491,13 @@ const Qt = {
2471
2491
  };
2472
2492
  function De(e) {
2473
2493
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
2474
- throw new ue(null, e);
2494
+ throw new ce(null, e);
2475
2495
  }
2476
2496
  function St(e) {
2477
2497
  return De(e), e.headers = N.from(e.headers), e.data = je.call(
2478
2498
  e,
2479
2499
  e.transformRequest
2480
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Qt.getAdapter(e.adapter || xe.adapter, e)(e).then(function(s) {
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) {
2481
2501
  return De(e), s.data = je.call(
2482
2502
  e,
2483
2503
  e.transformResponse,
@@ -2519,7 +2539,7 @@ Ve.transitional = function(t, n, s) {
2519
2539
  Ve.spelling = function(t) {
2520
2540
  return (n, s) => (console.warn(`${s} is likely a misspelling of ${t}`), !0);
2521
2541
  };
2522
- function Vo(e, t, n) {
2542
+ function No(e, t, n) {
2523
2543
  if (typeof e != "object")
2524
2544
  throw new S("options must be an object", S.ERR_BAD_OPTION_VALUE);
2525
2545
  const s = Object.keys(e);
@@ -2537,10 +2557,10 @@ function Vo(e, t, n) {
2537
2557
  }
2538
2558
  }
2539
2559
  const Ee = {
2540
- assertOptions: Vo,
2560
+ assertOptions: No,
2541
2561
  validators: Ve
2542
2562
  }, z = Ee.validators;
2543
- let te = class {
2563
+ let ee = class {
2544
2564
  constructor(t) {
2545
2565
  this.defaults = t || {}, this.interceptors = {
2546
2566
  request: new ut(),
@@ -2573,7 +2593,7 @@ let te = class {
2573
2593
  }
2574
2594
  }
2575
2595
  _request(t, n) {
2576
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = ne(this.defaults, n);
2596
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = te(this.defaults, n);
2577
2597
  const { transitional: s, paramsSerializer: r, headers: o } = n;
2578
2598
  s !== void 0 && Ee.assertOptions(s, {
2579
2599
  silentJSONParsing: z.transitional(z.boolean),
@@ -2600,49 +2620,49 @@ let te = class {
2600
2620
  ), n.headers = N.concat(a, o);
2601
2621
  const i = [];
2602
2622
  let l = !0;
2603
- this.interceptors.request.forEach(function(w) {
2604
- typeof w.runWhen == "function" && w.runWhen(n) === !1 || (l = l && w.synchronous, i.unshift(w.fulfilled, w.rejected));
2623
+ this.interceptors.request.forEach(function(b) {
2624
+ typeof b.runWhen == "function" && b.runWhen(n) === !1 || (l = l && b.synchronous, i.unshift(b.fulfilled, b.rejected));
2605
2625
  });
2606
- const u = [];
2607
- this.interceptors.response.forEach(function(w) {
2608
- u.push(w.fulfilled, w.rejected);
2626
+ const c = [];
2627
+ this.interceptors.response.forEach(function(b) {
2628
+ c.push(b.fulfilled, b.rejected);
2609
2629
  });
2610
- let c, h = 0, x;
2630
+ let u, m = 0, w;
2611
2631
  if (!l) {
2612
2632
  const p = [St.bind(this), void 0];
2613
- for (p.unshift(...i), p.push(...u), x = p.length, c = Promise.resolve(n); h < x; )
2614
- c = c.then(p[h++], p[h++]);
2615
- return c;
2616
- }
2617
- x = i.length;
2618
- let E = n;
2619
- for (; h < x; ) {
2620
- const p = i[h++], w = i[h++];
2633
+ for (p.unshift(...i), p.push(...c), w = p.length, u = Promise.resolve(n); m < w; )
2634
+ u = u.then(p[m++], p[m++]);
2635
+ return u;
2636
+ }
2637
+ w = i.length;
2638
+ let v = n;
2639
+ for (; m < w; ) {
2640
+ const p = i[m++], b = i[m++];
2621
2641
  try {
2622
- E = p(E);
2623
- } catch (y) {
2624
- w.call(this, y);
2642
+ v = p(v);
2643
+ } catch (h) {
2644
+ b.call(this, h);
2625
2645
  break;
2626
2646
  }
2627
2647
  }
2628
2648
  try {
2629
- c = St.call(this, E);
2649
+ u = St.call(this, v);
2630
2650
  } catch (p) {
2631
2651
  return Promise.reject(p);
2632
2652
  }
2633
- for (h = 0, x = u.length; h < x; )
2634
- c = c.then(u[h++], u[h++]);
2635
- return c;
2653
+ for (m = 0, w = c.length; m < w; )
2654
+ u = u.then(c[m++], c[m++]);
2655
+ return u;
2636
2656
  }
2637
2657
  getUri(t) {
2638
- t = ne(this.defaults, t);
2658
+ t = te(this.defaults, t);
2639
2659
  const n = Kt(t.baseURL, t.url, t.allowAbsoluteUrls);
2640
2660
  return qt(n, t.params, t.paramsSerializer);
2641
2661
  }
2642
2662
  };
2643
2663
  d.forEach(["delete", "get", "head", "options"], function(t) {
2644
- te.prototype[t] = function(n, s) {
2645
- return this.request(ne(s || {}, {
2664
+ ee.prototype[t] = function(n, s) {
2665
+ return this.request(te(s || {}, {
2646
2666
  method: t,
2647
2667
  url: n,
2648
2668
  data: (s || {}).data
@@ -2652,7 +2672,7 @@ d.forEach(["delete", "get", "head", "options"], function(t) {
2652
2672
  d.forEach(["post", "put", "patch"], function(t) {
2653
2673
  function n(s) {
2654
2674
  return function(o, a, i) {
2655
- return this.request(ne(i || {}, {
2675
+ return this.request(te(i || {}, {
2656
2676
  method: t,
2657
2677
  headers: s ? {
2658
2678
  "Content-Type": "multipart/form-data"
@@ -2662,9 +2682,9 @@ d.forEach(["post", "put", "patch"], function(t) {
2662
2682
  }));
2663
2683
  };
2664
2684
  }
2665
- te.prototype[t] = n(), te.prototype[t + "Form"] = n(!0);
2685
+ ee.prototype[t] = n(), ee.prototype[t + "Form"] = n(!0);
2666
2686
  });
2667
- let No = class tn {
2687
+ let Po = class tn {
2668
2688
  constructor(t) {
2669
2689
  if (typeof t != "function")
2670
2690
  throw new TypeError("executor must be a function.");
@@ -2688,7 +2708,7 @@ let No = class tn {
2688
2708
  s.unsubscribe(o);
2689
2709
  }, a;
2690
2710
  }, t(function(o, a, i) {
2691
- s.reason || (s.reason = new ue(o, a, i), n(s.reason));
2711
+ s.reason || (s.reason = new ce(o, a, i), n(s.reason));
2692
2712
  });
2693
2713
  }
2694
2714
  /**
@@ -2737,12 +2757,12 @@ let No = class tn {
2737
2757
  };
2738
2758
  }
2739
2759
  };
2740
- function Po(e) {
2760
+ function Mo(e) {
2741
2761
  return function(n) {
2742
2762
  return e.apply(null, n);
2743
2763
  };
2744
2764
  }
2745
- function Mo(e) {
2765
+ function Uo(e) {
2746
2766
  return d.isObject(e) && e.isAxiosError === !0;
2747
2767
  }
2748
2768
  const We = {
@@ -2820,52 +2840,52 @@ Object.entries(We).forEach(([e, t]) => {
2820
2840
  We[t] = e;
2821
2841
  });
2822
2842
  function nn(e) {
2823
- const t = new te(e), n = Ht(te.prototype.request, t);
2824
- return d.extend(n, te.prototype, t, { allOwnKeys: !0 }), d.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
2825
- return nn(ne(e, r));
2843
+ const t = new ee(e), n = Ht(ee.prototype.request, t);
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));
2826
2846
  }, n;
2827
2847
  }
2828
- const v = nn(xe);
2829
- v.Axios = te;
2830
- v.CanceledError = ue;
2831
- v.CancelToken = No;
2832
- v.isCancel = Gt;
2833
- v.VERSION = en;
2834
- v.toFormData = Be;
2835
- v.AxiosError = S;
2836
- v.Cancel = v.CanceledError;
2837
- v.all = function(t) {
2848
+ const k = nn(be);
2849
+ k.Axios = ee;
2850
+ k.CanceledError = ce;
2851
+ k.CancelToken = Po;
2852
+ k.isCancel = Gt;
2853
+ k.VERSION = en;
2854
+ k.toFormData = Be;
2855
+ k.AxiosError = S;
2856
+ k.Cancel = k.CanceledError;
2857
+ k.all = function(t) {
2838
2858
  return Promise.all(t);
2839
2859
  };
2840
- v.spread = Po;
2841
- v.isAxiosError = Mo;
2842
- v.mergeConfig = ne;
2843
- v.AxiosHeaders = N;
2844
- v.formToJSON = (e) => Wt(d.isHTMLForm(e) ? new FormData(e) : e);
2845
- v.getAdapter = Qt.getAdapter;
2846
- v.HttpStatusCode = We;
2847
- v.default = v;
2860
+ k.spread = Mo;
2861
+ k.isAxiosError = Uo;
2862
+ k.mergeConfig = te;
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;
2867
+ k.default = k;
2848
2868
  const {
2849
- Axios: ci,
2850
- AxiosError: ui,
2851
- CanceledError: di,
2852
- isCancel: fi,
2853
- CancelToken: pi,
2854
- VERSION: hi,
2855
- all: mi,
2856
- Cancel: gi,
2857
- isAxiosError: yi,
2858
- spread: wi,
2859
- toFormData: bi,
2860
- AxiosHeaders: xi,
2861
- HttpStatusCode: Si,
2862
- formToJSON: Ci,
2863
- getAdapter: vi,
2864
- mergeConfig: _i
2865
- } = v, Uo = (e) => {
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) => {
2866
2886
  const t = document.cookie.match(new RegExp(`(^| )${e}=([^;]+)`));
2867
2887
  return t ? t[2] : null;
2868
- }, jo = (e, t, n = {}) => {
2888
+ }, Do = (e, t, n = {}) => {
2869
2889
  const {
2870
2890
  maxAge: s = 31536e3,
2871
2891
  // 365 days in seconds
@@ -2876,15 +2896,15 @@ const {
2876
2896
  } = n;
2877
2897
  let l = `${e}=${t}; max-age=${s}; path=${i}; samesite=${a}`;
2878
2898
  r && (l += `; domain=${r}`), o && (l += "; secure"), document.cookie = l;
2879
- }, Do = (e, t = {}) => {
2899
+ }, Io = (e, t = {}) => {
2880
2900
  const { domain: n = sn(), path: s = "/" } = t;
2881
2901
  let r = `${e}=; max-age=0; path=${s}`;
2882
2902
  n && (r += `; domain=${n}`), document.cookie = r;
2883
2903
  }, sn = () => {
2884
2904
  const e = window.location.hostname;
2885
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;
2886
- }, Ie = "bolt-next-token", K = ge("auth", () => {
2887
- const e = se({
2906
+ }, Ie = "bolt-next-token", K = me("auth", () => {
2907
+ const e = ne({
2888
2908
  user: null,
2889
2909
  token: null,
2890
2910
  ready: !1,
@@ -2916,18 +2936,18 @@ const {
2916
2936
  onLogoutSuccess: null,
2917
2937
  onLogoutError: null
2918
2938
  }
2919
- }), t = (u = {}) => {
2920
- u.endpoints && Object.assign(e.endpoints, u.endpoints), u.routes && Object.assign(e.routes, u.routes), u.devCredentials && Object.assign(e.devCredentials, u.devCredentials), u.callbacks && Object.assign(e.callbacks, u.callbacks), u.overrideToken && (e.overrideToken = u.overrideToken);
2921
- }, n = (u) => {
2922
- jo(Ie, u), e.token = u;
2939
+ }), t = (c = {}) => {
2940
+ 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
+ }, n = (c) => {
2942
+ Do(Ie, c), e.token = c;
2923
2943
  }, s = () => {
2924
- Do(Ie), e.token = null;
2925
- }, r = () => Uo(Ie), o = async (u) => {
2926
- const c = await v.post(e.endpoints.login, u), h = c.headers.authorization;
2927
- return n(h), e.user = c.data, e.callbacks.onLoginSuccess && await e.callbacks.onLoginSuccess(c.data), c.data;
2944
+ Io(Ie), e.token = null;
2945
+ }, r = () => jo(Ie), o = async (c) => {
2946
+ const u = await k.post(e.endpoints.login, c), m = u.headers.authorization;
2947
+ return n(m), e.user = u.data, e.callbacks.onLoginSuccess && await e.callbacks.onLoginSuccess(u.data), u.data;
2928
2948
  }, a = async () => {
2929
2949
  try {
2930
- await v.post(
2950
+ await k.post(
2931
2951
  e.endpoints.logout,
2932
2952
  {},
2933
2953
  {
@@ -2936,22 +2956,22 @@ const {
2936
2956
  }
2937
2957
  }
2938
2958
  ), e.callbacks.onLogoutSuccess && await e.callbacks.onLogoutSuccess();
2939
- } catch (u) {
2940
- throw e.callbacks.onLogoutError && await e.callbacks.onLogoutError(u), u;
2959
+ } catch (c) {
2960
+ throw e.callbacks.onLogoutError && await e.callbacks.onLogoutError(c), c;
2941
2961
  } finally {
2942
2962
  s(), e.user = null;
2943
2963
  }
2944
2964
  }, i = async () => {
2945
- const u = e.overrideToken || r();
2946
- if (!u)
2965
+ const c = e.overrideToken || r();
2966
+ if (!c)
2947
2967
  return e.ready = !0, null;
2948
2968
  try {
2949
- const { data: c } = await v.get(e.endpoints.fetch, {
2969
+ const { data: u } = await k.get(e.endpoints.fetch, {
2950
2970
  headers: {
2951
- Authorization: `Bearer ${u}`
2971
+ Authorization: `Bearer ${c}`
2952
2972
  }
2953
2973
  });
2954
- e.user = c, e.overrideToken || (e.token = u);
2974
+ e.user = u, e.overrideToken || (e.token = c);
2955
2975
  } catch {
2956
2976
  e.overrideToken || s();
2957
2977
  } finally {
@@ -2969,17 +2989,17 @@ const {
2969
2989
  clearTokenCookie: s,
2970
2990
  getTokenCookie: r
2971
2991
  };
2972
- }), Io = { class: "h-full grid place-content-center relative" }, zo = { class: "absolute top-8 left-8" }, qo = ["src"], Zo = {
2992
+ }), zo = { class: "h-full grid place-content-center relative" }, qo = { class: "absolute top-8 left-8" }, Zo = ["src"], Wo = {
2973
2993
  key: 1,
2974
2994
  width: "59",
2975
2995
  height: "23",
2976
2996
  viewBox: "0 0 59 23",
2977
2997
  fill: "none",
2978
2998
  xmlns: "http://www.w3.org/2000/svg"
2979
- }, Wo = { class: "max-w-sm grid gap-y-1 -mt-8" }, Go = { class: "mb-7" }, Jo = { class: "text-gray-600" }, Ko = { class: "grid grid-flow-col justify-between mt-1 mb-4" }, Xo = {
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 = {
2980
3000
  key: 0,
2981
3001
  class: "text-red-600 text-sm mb-2"
2982
- }, Yo = { key: 0 }, Qo = { key: 1 }, ea = {
3002
+ }, Qo = { key: 0 }, ea = { key: 1 }, ta = {
2983
3003
  __name: "SparkLoginView",
2984
3004
  props: {
2985
3005
  logo: {
@@ -2996,35 +3016,35 @@ const {
2996
3016
  }
2997
3017
  },
2998
3018
  setup(e) {
2999
- const t = re(), n = Oe(), s = Ot(), r = K(), o = e, a = q(!1), i = q(""), l = async (u) => {
3019
+ const t = se(), n = Le(), s = Lt(), r = K(), o = e, a = q(!1), i = q(""), l = async (c) => {
3000
3020
  a.value = !0, i.value = "";
3001
3021
  try {
3002
- await r.login(u);
3003
- const c = n.query.redirect;
3004
- if (c) {
3005
- if (c.startsWith("http")) {
3006
- window.location.href = c;
3022
+ await r.login(c);
3023
+ const u = n.query.redirect;
3024
+ if (u) {
3025
+ if (u.startsWith("http")) {
3026
+ window.location.href = u;
3007
3027
  return;
3008
3028
  }
3009
- await t.push(c);
3029
+ await t.push(u);
3010
3030
  } else
3011
3031
  await t.push(o.defaultRedirect);
3012
- } catch (c) {
3013
- i.value = c.response?.data?.message || c.message || "Login failed. Please try again.";
3032
+ } catch (u) {
3033
+ i.value = u.response?.data?.message || u.message || "Login failed. Please try again.";
3014
3034
  } finally {
3015
3035
  a.value = !1;
3016
3036
  }
3017
3037
  };
3018
- return (u, c) => {
3019
- const h = U("FormKit"), x = U("router-link");
3020
- return m(), g("div", Io, [
3021
- f("div", zo, [
3022
- o.logo ? (m(), g("img", {
3038
+ return (c, u) => {
3039
+ const m = U("FormKit"), w = U("router-link");
3040
+ return g(), y("div", zo, [
3041
+ f("div", qo, [
3042
+ o.logo ? (g(), y("img", {
3023
3043
  key: 0,
3024
3044
  src: o.logo,
3025
3045
  alt: "Logo",
3026
3046
  class: "h-[23px] w-auto"
3027
- }, null, 8, qo)) : (m(), g("svg", Zo, [...c[0] || (c[0] = [
3047
+ }, null, 8, Zo)) : (g(), y("svg", Wo, [...u[0] || (u[0] = [
3028
3048
  f("path", {
3029
3049
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3030
3050
  fill: "#1C64F2"
@@ -3043,56 +3063,56 @@ const {
3043
3063
  }, null, -1)
3044
3064
  ])]))
3045
3065
  ]),
3046
- f("div", Wo, [
3047
- f("div", Go, [
3048
- c[1] || (c[1] = f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Log in", -1)),
3049
- f("p", Jo, " Welcome back" + O(b(s).state.app ? ` to ${b(s).state.app}` : "") + "! Please enter your details. ", 1)
3066
+ f("div", Go, [
3067
+ f("div", Jo, [
3068
+ 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)
3050
3070
  ]),
3051
- C(h, {
3071
+ C(m, {
3052
3072
  type: "form",
3053
3073
  onSubmit: l,
3054
3074
  actions: !1
3055
3075
  }, {
3056
- default: R(() => [
3057
- C(h, {
3076
+ default: $(() => [
3077
+ C(m, {
3058
3078
  label: "Email",
3059
3079
  name: "email",
3060
3080
  placeholder: "Enter your email",
3061
3081
  type: "email",
3062
3082
  validation: "required|email",
3063
3083
  "outer-class": "max-w-full",
3064
- value: b(r).state.devCredentials.username
3084
+ value: x(r).state.devCredentials.username
3065
3085
  }, null, 8, ["value"]),
3066
- C(h, {
3086
+ C(m, {
3067
3087
  label: "Password",
3068
3088
  name: "password",
3069
3089
  placeholder: "••••••••",
3070
3090
  type: "password",
3071
3091
  validation: "required",
3072
3092
  "outer-class": "max-w-full",
3073
- value: b(r).state.devCredentials.password
3093
+ value: x(r).state.devCredentials.password
3074
3094
  }, null, 8, ["value"]),
3075
- f("div", Ko, [
3076
- c[3] || (c[3] = f("span", null, null, -1)),
3077
- C(x, {
3095
+ f("div", Xo, [
3096
+ u[3] || (u[3] = f("span", null, null, -1)),
3097
+ C(w, {
3078
3098
  to: o.forgotPasswordRoute,
3079
3099
  class: "text-sm text-primary-600 font-semibold"
3080
3100
  }, {
3081
- default: R(() => [...c[2] || (c[2] = [
3101
+ default: $(() => [...u[2] || (u[2] = [
3082
3102
  J(" Forgot password ", -1)
3083
3103
  ])]),
3084
3104
  _: 1
3085
3105
  }, 8, ["to"])
3086
3106
  ]),
3087
- i.value ? (m(), g("div", Xo, O(i.value), 1)) : _("", !0),
3088
- C(b(oe), {
3107
+ i.value ? (g(), y("div", Yo, L(i.value), 1)) : R("", !0),
3108
+ C(x(re), {
3089
3109
  type: "submit",
3090
3110
  size: "xl",
3091
3111
  disabled: a.value,
3092
3112
  "button-class": "w-full mb-2"
3093
3113
  }, {
3094
- default: R(() => [
3095
- a.value ? (m(), g("span", Qo, "Signing in...")) : (m(), g("span", Yo, "Sign in"))
3114
+ default: $(() => [
3115
+ a.value ? (g(), y("span", ea, "Signing in...")) : (g(), y("span", Qo, "Sign in"))
3096
3116
  ]),
3097
3117
  _: 1
3098
3118
  }, 8, ["disabled"])
@@ -3103,7 +3123,7 @@ const {
3103
3123
  ]);
3104
3124
  };
3105
3125
  }
3106
- }, ta = {
3126
+ }, na = {
3107
3127
  __name: "SparkLogoutView",
3108
3128
  props: {
3109
3129
  defaultRedirect: {
@@ -3112,27 +3132,27 @@ const {
3112
3132
  }
3113
3133
  },
3114
3134
  setup(e) {
3115
- const t = re(), n = Oe(), s = K(), r = e;
3135
+ const t = se(), n = Le(), s = K(), r = e;
3116
3136
  return cn(async () => {
3117
3137
  await s.logout();
3118
3138
  const o = n.query.redirect;
3119
3139
  o && o.startsWith("http") ? window.location.href = o : await t.push(o || r.defaultRedirect);
3120
3140
  }), (o, a) => null;
3121
3141
  }
3122
- }, na = { class: "h-full grid place-content-center relative" }, sa = { class: "absolute top-8 left-8" }, ra = ["src"], oa = {
3142
+ }, sa = { class: "h-full grid place-content-center relative" }, ra = { class: "absolute top-8 left-8" }, oa = ["src"], aa = {
3123
3143
  key: 1,
3124
3144
  width: "59",
3125
3145
  height: "23",
3126
3146
  viewBox: "0 0 59 23",
3127
3147
  fill: "none",
3128
3148
  xmlns: "http://www.w3.org/2000/svg"
3129
- }, aa = { class: "max-w-sm grid gap-y-1 -mt-8" }, ia = {
3149
+ }, ia = { class: "max-w-sm grid gap-y-1 -mt-8" }, la = {
3130
3150
  key: 0,
3131
3151
  class: "text-red-600 text-sm mb-2"
3132
- }, la = {
3152
+ }, ca = {
3133
3153
  key: 1,
3134
3154
  class: "text-green-600 text-sm mb-2"
3135
- }, ca = { key: 0 }, ua = { key: 1 }, da = {
3155
+ }, ua = { key: 0 }, da = { key: 1 }, fa = {
3136
3156
  __name: "SparkForgotPasswordView",
3137
3157
  props: {
3138
3158
  logo: {
@@ -3148,7 +3168,7 @@ const {
3148
3168
  const t = K(), n = e, s = q(!1), r = q(""), o = q(""), a = async ({ email: i }) => {
3149
3169
  s.value = !0, r.value = "", o.value = "";
3150
3170
  try {
3151
- await v.post(t.state.endpoints.passwordEmail, { email: i }), o.value = "Password reset link sent! Check your email.";
3171
+ await k.post(t.state.endpoints.passwordEmail, { email: i }), o.value = "Password reset link sent! Check your email.";
3152
3172
  } catch (l) {
3153
3173
  r.value = l.response?.data?.message || "Failed to send reset link.";
3154
3174
  } finally {
@@ -3156,15 +3176,15 @@ const {
3156
3176
  }
3157
3177
  };
3158
3178
  return (i, l) => {
3159
- const u = U("FormKit"), c = U("router-link");
3160
- return m(), g("div", na, [
3161
- f("div", sa, [
3162
- n.logo ? (m(), g("img", {
3179
+ const c = U("FormKit"), u = U("router-link");
3180
+ return g(), y("div", sa, [
3181
+ f("div", ra, [
3182
+ n.logo ? (g(), y("img", {
3163
3183
  key: 0,
3164
3184
  src: n.logo,
3165
3185
  alt: "Logo",
3166
3186
  class: "h-[23px] w-auto"
3167
- }, null, 8, ra)) : (m(), g("svg", oa, [...l[0] || (l[0] = [
3187
+ }, null, 8, oa)) : (g(), y("svg", aa, [...l[0] || (l[0] = [
3168
3188
  f("path", {
3169
3189
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3170
3190
  fill: "#1C64F2"
@@ -3183,18 +3203,18 @@ const {
3183
3203
  }, null, -1)
3184
3204
  ])]))
3185
3205
  ]),
3186
- f("div", aa, [
3206
+ f("div", ia, [
3187
3207
  l[2] || (l[2] = f("div", { class: "mb-7" }, [
3188
3208
  f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Reset password"),
3189
3209
  f("p", { class: "text-gray-600" }, " Enter your email and we'll send you a link to reset your password. ")
3190
3210
  ], -1)),
3191
- C(u, {
3211
+ C(c, {
3192
3212
  type: "form",
3193
3213
  onSubmit: a,
3194
3214
  actions: !1
3195
3215
  }, {
3196
- default: R(() => [
3197
- C(u, {
3216
+ default: $(() => [
3217
+ C(c, {
3198
3218
  label: "Email",
3199
3219
  name: "email",
3200
3220
  placeholder: "Enter your email",
@@ -3202,24 +3222,24 @@ const {
3202
3222
  validation: "required|email",
3203
3223
  "outer-class": "max-w-full"
3204
3224
  }),
3205
- r.value ? (m(), g("div", ia, O(r.value), 1)) : _("", !0),
3206
- o.value ? (m(), g("div", la, O(o.value), 1)) : _("", !0),
3207
- C(b(oe), {
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),
3227
+ C(x(re), {
3208
3228
  type: "submit",
3209
3229
  size: "xl",
3210
3230
  disabled: s.value,
3211
3231
  "button-class": "w-full mb-2"
3212
3232
  }, {
3213
- default: R(() => [
3214
- s.value ? (m(), g("span", ua, "Sending...")) : (m(), g("span", ca, "Send reset link"))
3233
+ default: $(() => [
3234
+ s.value ? (g(), y("span", da, "Sending...")) : (g(), y("span", ua, "Send reset link"))
3215
3235
  ]),
3216
3236
  _: 1
3217
3237
  }, 8, ["disabled"]),
3218
- C(c, {
3238
+ C(u, {
3219
3239
  to: n.loginRoute,
3220
3240
  class: "text-sm text-center text-primary-600 font-semibold block"
3221
3241
  }, {
3222
- default: R(() => [...l[1] || (l[1] = [
3242
+ default: $(() => [...l[1] || (l[1] = [
3223
3243
  J(" Back to login ", -1)
3224
3244
  ])]),
3225
3245
  _: 1
@@ -3231,17 +3251,17 @@ const {
3231
3251
  ]);
3232
3252
  };
3233
3253
  }
3234
- }, fa = { class: "h-full grid place-content-center relative" }, pa = { class: "absolute top-8 left-8" }, ha = ["src"], ma = {
3254
+ }, pa = { class: "h-full grid place-content-center relative" }, ha = { class: "absolute top-8 left-8" }, ma = ["src"], ga = {
3235
3255
  key: 1,
3236
3256
  width: "59",
3237
3257
  height: "23",
3238
3258
  viewBox: "0 0 59 23",
3239
3259
  fill: "none",
3240
3260
  xmlns: "http://www.w3.org/2000/svg"
3241
- }, ga = { class: "max-w-sm grid gap-y-1 -mt-8" }, ya = {
3261
+ }, ya = { class: "max-w-sm grid gap-y-1 -mt-8" }, wa = {
3242
3262
  key: 0,
3243
3263
  class: "text-red-600 text-sm mb-2"
3244
- }, wa = { key: 0 }, ba = { key: 1 }, xa = {
3264
+ }, ba = { key: 0 }, xa = { key: 1 }, Sa = {
3245
3265
  __name: "SparkResetPasswordView",
3246
3266
  props: {
3247
3267
  logo: {
@@ -3254,31 +3274,31 @@ const {
3254
3274
  }
3255
3275
  },
3256
3276
  setup(e) {
3257
- const t = re(), n = Oe(), s = K(), r = e, o = q(!1), a = q(""), i = async ({ password: l, password_confirmation: u }) => {
3277
+ const t = se(), n = Le(), s = K(), r = e, o = q(!1), a = q(""), i = async ({ password: l, password_confirmation: c }) => {
3258
3278
  o.value = !0, a.value = "";
3259
3279
  try {
3260
- await v.post(s.state.endpoints.passwordReset, {
3280
+ await k.post(s.state.endpoints.passwordReset, {
3261
3281
  email: n.query.email,
3262
3282
  token: n.query.token,
3263
3283
  password: l,
3264
- password_confirmation: u
3284
+ password_confirmation: c
3265
3285
  }), await t.push(r.loginRoute);
3266
- } catch (c) {
3267
- a.value = c.response?.data?.message || "Failed to reset password.";
3286
+ } catch (u) {
3287
+ a.value = u.response?.data?.message || "Failed to reset password.";
3268
3288
  } finally {
3269
3289
  o.value = !1;
3270
3290
  }
3271
3291
  };
3272
- return (l, u) => {
3273
- const c = U("FormKit");
3274
- return m(), g("div", fa, [
3275
- f("div", pa, [
3276
- r.logo ? (m(), g("img", {
3292
+ return (l, c) => {
3293
+ const u = U("FormKit");
3294
+ return g(), y("div", pa, [
3295
+ f("div", ha, [
3296
+ r.logo ? (g(), y("img", {
3277
3297
  key: 0,
3278
3298
  src: r.logo,
3279
3299
  alt: "Logo",
3280
3300
  class: "h-[23px] w-auto"
3281
- }, null, 8, ha)) : (m(), g("svg", ma, [...u[0] || (u[0] = [
3301
+ }, null, 8, ma)) : (g(), y("svg", ga, [...c[0] || (c[0] = [
3282
3302
  f("path", {
3283
3303
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3284
3304
  fill: "#1C64F2"
@@ -3297,18 +3317,18 @@ const {
3297
3317
  }, null, -1)
3298
3318
  ])]))
3299
3319
  ]),
3300
- f("div", ga, [
3301
- u[1] || (u[1] = f("div", { class: "mb-7" }, [
3320
+ f("div", ya, [
3321
+ c[1] || (c[1] = f("div", { class: "mb-7" }, [
3302
3322
  f("h1", { class: "text-4xl text-gray-900 semibold tracking-tight mb-3" }, "Set new password"),
3303
3323
  f("p", { class: "text-gray-600" }, " Enter your new password below. ")
3304
3324
  ], -1)),
3305
- C(c, {
3325
+ C(u, {
3306
3326
  type: "form",
3307
3327
  onSubmit: i,
3308
3328
  actions: !1
3309
3329
  }, {
3310
- default: R(() => [
3311
- C(c, {
3330
+ default: $(() => [
3331
+ C(u, {
3312
3332
  label: "New Password",
3313
3333
  name: "password",
3314
3334
  placeholder: "••••••••",
@@ -3316,7 +3336,7 @@ const {
3316
3336
  validation: "required|length:8",
3317
3337
  "outer-class": "max-w-full"
3318
3338
  }),
3319
- C(c, {
3339
+ C(u, {
3320
3340
  label: "Confirm Password",
3321
3341
  name: "password_confirmation",
3322
3342
  placeholder: "••••••••",
@@ -3324,15 +3344,15 @@ const {
3324
3344
  validation: "required|confirm:password",
3325
3345
  "outer-class": "max-w-full"
3326
3346
  }),
3327
- a.value ? (m(), g("div", ya, O(a.value), 1)) : _("", !0),
3328
- C(b(oe), {
3347
+ a.value ? (g(), y("div", wa, L(a.value), 1)) : R("", !0),
3348
+ C(x(re), {
3329
3349
  type: "submit",
3330
3350
  size: "xl",
3331
3351
  disabled: o.value,
3332
3352
  "button-class": "w-full mb-2"
3333
3353
  }, {
3334
- default: R(() => [
3335
- o.value ? (m(), g("span", ba, "Resetting...")) : (m(), g("span", wa, "Reset password"))
3354
+ default: $(() => [
3355
+ o.value ? (g(), y("span", xa, "Resetting...")) : (g(), y("span", ba, "Reset password"))
3336
3356
  ]),
3337
3357
  _: 1
3338
3358
  }, 8, ["disabled"])
@@ -3343,14 +3363,14 @@ const {
3343
3363
  ]);
3344
3364
  };
3345
3365
  }
3346
- }, Sa = { class: "h-full grid place-content-center relative" }, Ca = { class: "absolute top-8 left-8" }, va = ["src"], _a = {
3366
+ }, Ca = { class: "h-full grid place-content-center relative" }, va = { class: "absolute top-8 left-8" }, _a = ["src"], ka = {
3347
3367
  key: 1,
3348
3368
  width: "59",
3349
3369
  height: "23",
3350
3370
  viewBox: "0 0 59 23",
3351
3371
  fill: "none",
3352
3372
  xmlns: "http://www.w3.org/2000/svg"
3353
- }, ka = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, Ra = { class: "flex gap-4 justify-center" }, Ea = {
3373
+ }, Ra = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, Ea = { class: "flex gap-4 justify-center" }, $a = {
3354
3374
  __name: "SparkError403View",
3355
3375
  props: {
3356
3376
  logo: {
@@ -3363,17 +3383,17 @@ const {
3363
3383
  }
3364
3384
  },
3365
3385
  setup(e) {
3366
- const t = re(), n = e, s = () => {
3386
+ const t = se(), n = e, s = () => {
3367
3387
  t.push(n.homeRoute);
3368
3388
  };
3369
- return (r, o) => (m(), g("div", Sa, [
3370
- f("div", Ca, [
3371
- n.logo ? (m(), g("img", {
3389
+ return (r, o) => (g(), y("div", Ca, [
3390
+ f("div", va, [
3391
+ n.logo ? (g(), y("img", {
3372
3392
  key: 0,
3373
3393
  src: n.logo,
3374
3394
  alt: "Logo",
3375
3395
  class: "h-[23px] w-auto"
3376
- }, null, 8, va)) : (m(), g("svg", _a, [...o[0] || (o[0] = [
3396
+ }, null, 8, _a)) : (g(), y("svg", ka, [...o[0] || (o[0] = [
3377
3397
  f("path", {
3378
3398
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3379
3399
  fill: "#1C64F2"
@@ -3392,7 +3412,7 @@ const {
3392
3412
  }, null, -1)
3393
3413
  ])]))
3394
3414
  ]),
3395
- f("div", ka, [
3415
+ f("div", Ra, [
3396
3416
  o[2] || (o[2] = f("div", null, [
3397
3417
  f("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "403"),
3398
3418
  f("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, " Access Forbidden "),
@@ -3402,12 +3422,12 @@ const {
3402
3422
  J(" If you believe this is an error, please contact your administrator. ")
3403
3423
  ])
3404
3424
  ], -1)),
3405
- f("div", Ra, [
3406
- C(b(oe), {
3425
+ f("div", Ea, [
3426
+ C(x(re), {
3407
3427
  onClick: s,
3408
3428
  size: "lg"
3409
3429
  }, {
3410
- default: R(() => [...o[1] || (o[1] = [
3430
+ default: $(() => [...o[1] || (o[1] = [
3411
3431
  J(" Go to Home ", -1)
3412
3432
  ])]),
3413
3433
  _: 1
@@ -3416,14 +3436,14 @@ const {
3416
3436
  ])
3417
3437
  ]));
3418
3438
  }
3419
- }, $a = { class: "h-full grid place-content-center relative" }, Aa = { class: "absolute top-8 left-8" }, La = ["src"], Oa = {
3439
+ }, Aa = { class: "h-full grid place-content-center relative" }, Oa = { class: "absolute top-8 left-8" }, La = ["src"], Ta = {
3420
3440
  key: 1,
3421
3441
  width: "59",
3422
3442
  height: "23",
3423
3443
  viewBox: "0 0 59 23",
3424
3444
  fill: "none",
3425
3445
  xmlns: "http://www.w3.org/2000/svg"
3426
- }, Ta = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, Ha = { class: "flex gap-4 justify-center" }, Fa = {
3446
+ }, Ha = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, Fa = { class: "flex gap-4 justify-center" }, Ba = {
3427
3447
  __name: "SparkError404View",
3428
3448
  props: {
3429
3449
  logo: {
@@ -3436,17 +3456,17 @@ const {
3436
3456
  }
3437
3457
  },
3438
3458
  setup(e) {
3439
- const t = re(), n = e, s = () => {
3459
+ const t = se(), n = e, s = () => {
3440
3460
  t.push(n.homeRoute);
3441
3461
  };
3442
- return (r, o) => (m(), g("div", $a, [
3443
- f("div", Aa, [
3444
- n.logo ? (m(), g("img", {
3462
+ return (r, o) => (g(), y("div", Aa, [
3463
+ f("div", Oa, [
3464
+ n.logo ? (g(), y("img", {
3445
3465
  key: 0,
3446
3466
  src: n.logo,
3447
3467
  alt: "Logo",
3448
3468
  class: "h-[23px] w-auto"
3449
- }, null, 8, La)) : (m(), g("svg", Oa, [...o[0] || (o[0] = [
3469
+ }, null, 8, La)) : (g(), y("svg", Ta, [...o[0] || (o[0] = [
3450
3470
  f("path", {
3451
3471
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3452
3472
  fill: "#1C64F2"
@@ -3465,18 +3485,18 @@ const {
3465
3485
  }, null, -1)
3466
3486
  ])]))
3467
3487
  ]),
3468
- f("div", Ta, [
3488
+ f("div", Ha, [
3469
3489
  o[2] || (o[2] = f("div", null, [
3470
3490
  f("div", { class: "text-primary-600 text-7xl font-bold mb-4" }, "404"),
3471
3491
  f("h1", { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, " Page Not Found "),
3472
3492
  f("p", { class: "text-gray-600" }, " The page you're looking for doesn't exist or has been moved. ")
3473
3493
  ], -1)),
3474
- f("div", Ha, [
3475
- C(b(oe), {
3494
+ f("div", Fa, [
3495
+ C(x(re), {
3476
3496
  onClick: s,
3477
3497
  size: "lg"
3478
3498
  }, {
3479
- default: R(() => [...o[1] || (o[1] = [
3499
+ default: $(() => [...o[1] || (o[1] = [
3480
3500
  J(" Go to Home ", -1)
3481
3501
  ])]),
3482
3502
  _: 1
@@ -3485,14 +3505,14 @@ const {
3485
3505
  ])
3486
3506
  ]));
3487
3507
  }
3488
- }, Ba = { class: "h-full grid place-content-center relative" }, Va = { class: "absolute top-8 left-8" }, Na = ["src"], Pa = {
3508
+ }, Va = { class: "h-full grid place-content-center relative" }, Na = { class: "absolute top-8 left-8" }, Pa = ["src"], Ma = {
3489
3509
  key: 1,
3490
3510
  width: "59",
3491
3511
  height: "23",
3492
3512
  viewBox: "0 0 59 23",
3493
3513
  fill: "none",
3494
3514
  xmlns: "http://www.w3.org/2000/svg"
3495
- }, Ma = { class: "max-w-lg grid gap-y-6 text-center -mt-8" }, Ua = { class: "text-primary-600 text-7xl font-bold mb-4" }, ja = { class: "text-3xl text-gray-900 font-semibold tracking-tight mb-3" }, Da = { class: "text-gray-600" }, Ia = { class: "flex gap-4 justify-center" }, ki = {
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 = {
3496
3516
  __name: "SparkErrorGeneralView",
3497
3517
  props: {
3498
3518
  logo: {
@@ -3517,17 +3537,17 @@ const {
3517
3537
  }
3518
3538
  },
3519
3539
  setup(e) {
3520
- const t = re(), n = e, s = () => {
3540
+ const t = se(), n = e, s = () => {
3521
3541
  t.push(n.homeRoute);
3522
3542
  };
3523
- return (r, o) => (m(), g("div", Ba, [
3524
- f("div", Va, [
3525
- n.logo ? (m(), g("img", {
3543
+ return (r, o) => (g(), y("div", Va, [
3544
+ f("div", Na, [
3545
+ n.logo ? (g(), y("img", {
3526
3546
  key: 0,
3527
3547
  src: n.logo,
3528
3548
  alt: "Logo",
3529
3549
  class: "h-[23px] w-auto"
3530
- }, null, 8, Na)) : (m(), g("svg", Pa, [...o[0] || (o[0] = [
3550
+ }, null, 8, Pa)) : (g(), y("svg", Ma, [...o[0] || (o[0] = [
3531
3551
  f("path", {
3532
3552
  d: "M49.2029 17.1264V8.03835H44.0829V5.22235H58.0989V8.03835H52.9629V17.1264H49.2029Z",
3533
3553
  fill: "#1C64F2"
@@ -3546,18 +3566,18 @@ const {
3546
3566
  }, null, -1)
3547
3567
  ])]))
3548
3568
  ]),
3549
- f("div", Ma, [
3569
+ f("div", Ua, [
3550
3570
  f("div", null, [
3551
- f("div", Ua, O(n.errorCode || "Error"), 1),
3552
- f("h1", ja, O(n.title || "Something went wrong"), 1),
3553
- f("p", Da, O(n.message || "An unexpected error occurred. Please try again later."), 1)
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)
3554
3574
  ]),
3555
- f("div", Ia, [
3556
- C(b(oe), {
3575
+ f("div", za, [
3576
+ C(x(re), {
3557
3577
  onClick: s,
3558
3578
  size: "lg"
3559
3579
  }, {
3560
- default: R(() => [...o[1] || (o[1] = [
3580
+ default: $(() => [...o[1] || (o[1] = [
3561
3581
  J(" Go to Home ", -1)
3562
3582
  ])]),
3563
3583
  _: 1
@@ -3567,7 +3587,7 @@ const {
3567
3587
  ]));
3568
3588
  }
3569
3589
  };
3570
- function Ri(e = {}) {
3590
+ function Ei(e = {}) {
3571
3591
  const {
3572
3592
  loginPath: t = "/login",
3573
3593
  logoutPath: n = "/logout",
@@ -3580,41 +3600,41 @@ function Ri(e = {}) {
3580
3600
  {
3581
3601
  path: t,
3582
3602
  name: "login",
3583
- component: ea,
3603
+ component: ta,
3584
3604
  props: { logo: o, defaultRedirect: a },
3585
3605
  meta: { auth: !1 }
3586
3606
  },
3587
3607
  {
3588
3608
  path: n,
3589
3609
  name: "logout",
3590
- component: ta,
3610
+ component: na,
3591
3611
  props: { defaultRedirect: t },
3592
3612
  meta: { auth: !1 }
3593
3613
  },
3594
3614
  {
3595
3615
  path: s,
3596
3616
  name: "forgot-password",
3597
- component: da,
3617
+ component: fa,
3598
3618
  props: { logo: o, loginRoute: t },
3599
3619
  meta: { auth: !1 }
3600
3620
  },
3601
3621
  {
3602
3622
  path: r,
3603
3623
  name: "password-reset",
3604
- component: xa,
3624
+ component: Sa,
3605
3625
  props: { logo: o, loginRoute: t },
3606
3626
  meta: { auth: !1 }
3607
3627
  }
3608
3628
  ];
3609
3629
  }
3610
- function Ei(e, t = {}) {
3630
+ function $i(e, t = {}) {
3611
3631
  const { defaultAuthenticatedRoute: n = "/dashboard" } = t;
3612
3632
  e.beforeEach(async (s, r, o) => {
3613
3633
  const a = K();
3614
- a.state.ready || await a.fetchUser(), za(s, o, a, n);
3634
+ a.state.ready || await a.fetchUser(), qa(s, o, a, n);
3615
3635
  });
3616
3636
  }
3617
- function za(e, t, n, s) {
3637
+ function qa(e, t, n, s) {
3618
3638
  const r = e.meta.auth !== !1, o = n.check;
3619
3639
  if (n.state.overrideToken && e.path === "/logout") {
3620
3640
  t({ path: s });
@@ -3652,7 +3672,7 @@ function za(e, t, n, s) {
3652
3672
  t();
3653
3673
  }
3654
3674
  }
3655
- function $i(e = {}) {
3675
+ function Ai(e = {}) {
3656
3676
  const {
3657
3677
  forbiddenPath: t = "/error/403",
3658
3678
  logo: n = "",
@@ -3661,12 +3681,12 @@ function $i(e = {}) {
3661
3681
  return {
3662
3682
  path: t,
3663
3683
  name: "error-403",
3664
- component: Ea,
3684
+ component: $a,
3665
3685
  props: { logo: n, homeRoute: s },
3666
3686
  meta: { auth: !1 }
3667
3687
  };
3668
3688
  }
3669
- function Ai(e = {}) {
3689
+ function Oi(e = {}) {
3670
3690
  const {
3671
3691
  logo: t = "",
3672
3692
  homeRoute: n = "/dashboard"
@@ -3674,13 +3694,13 @@ function Ai(e = {}) {
3674
3694
  return {
3675
3695
  path: "/:pathMatch(.*)*",
3676
3696
  name: "error-404",
3677
- component: Fa,
3697
+ component: Ba,
3678
3698
  props: { logo: t, homeRoute: n },
3679
3699
  meta: { auth: !1 }
3680
3700
  };
3681
3701
  }
3682
- function qa(e = {}) {
3683
- const t = v.create({
3702
+ function Za(e = {}) {
3703
+ const t = k.create({
3684
3704
  baseURL: e.baseURL || "",
3685
3705
  timeout: e.timeout || 3e4,
3686
3706
  headers: {
@@ -3720,47 +3740,47 @@ function qa(e = {}) {
3720
3740
  ), t;
3721
3741
  }
3722
3742
  function Li(e, t = {}) {
3723
- const n = qa(t);
3743
+ const n = Za(t);
3724
3744
  return e.provide("axios", n), e.config.globalProperties.$axios = n, n;
3725
3745
  }
3726
- const Oi = ge("sparkNav", () => {
3727
- const e = se({
3746
+ const Ti = me("sparkNav", () => {
3747
+ const e = ne({
3728
3748
  menu: [],
3729
3749
  collapsed: !1,
3730
3750
  hidden: !1
3731
- }), t = re(), n = Oe(), s = (u = []) => {
3732
- e.menu = u;
3733
- }, r = (u, c) => {
3734
- for (const h of u) {
3735
- if (h.href === c) return h;
3736
- if (h.children) {
3737
- const x = r(h.children, c);
3738
- if (x) return x;
3751
+ }), t = se(), n = Le(), s = (c = []) => {
3752
+ e.menu = c;
3753
+ }, r = (c, u) => {
3754
+ for (const m of c) {
3755
+ if (m.href === u) return m;
3756
+ if (m.children) {
3757
+ const w = r(m.children, u);
3758
+ if (w) return w;
3739
3759
  }
3740
3760
  }
3741
3761
  return null;
3742
- }, o = async (u) => {
3743
- if (u) {
3744
- const c = r(e.menu, u);
3745
- if (c && typeof c.action == "function") {
3746
- c.action();
3762
+ }, o = async (c) => {
3763
+ if (c) {
3764
+ const u = r(e.menu, c);
3765
+ if (u && typeof u.action == "function") {
3766
+ u.action();
3747
3767
  return;
3748
3768
  }
3749
- await t.push(u);
3769
+ await t.push(c);
3750
3770
  }
3751
3771
  }, a = () => {
3752
3772
  e.collapsed = !e.collapsed;
3753
3773
  }, i = () => {
3754
3774
  e.hidden = !e.hidden;
3755
3775
  }, l = () => {
3756
- const u = n.name || n.path.replace("/", "");
3757
- if (u) {
3758
- const c = (h) => {
3759
- h.forEach((x) => {
3760
- x.current = x.href === u, x.children && c(x.children);
3776
+ const c = n.name || n.path.replace("/", "");
3777
+ if (c) {
3778
+ const u = (m) => {
3779
+ m.forEach((w) => {
3780
+ w.current = w.href === c, w.children && u(w.children);
3761
3781
  });
3762
3782
  };
3763
- c(e.menu);
3783
+ u(e.menu);
3764
3784
  }
3765
3785
  };
3766
3786
  return un(
@@ -3780,38 +3800,38 @@ const Oi = ge("sparkNav", () => {
3780
3800
  });
3781
3801
  export {
3782
3802
  B as Icons,
3783
- ti as SparkAlert,
3803
+ ni as SparkAlert,
3784
3804
  ps as SparkAppSelector,
3785
3805
  As as SparkBrandSelector,
3786
- oe as SparkButton,
3787
- ni as SparkButtonGroup,
3788
- si as SparkCard,
3789
- oi as SparkDefaultContainer,
3790
- Ea as SparkError403View,
3791
- Fa as SparkError404View,
3792
- ki as SparkErrorGeneralView,
3793
- da as SparkForgotPasswordView,
3794
- ea as SparkLoginView,
3795
- ta as SparkLogoutView,
3806
+ 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,
3796
3816
  Ns as SparkModalContainer,
3797
- ri as SparkModalDialog,
3817
+ oi as SparkModalDialog,
3798
3818
  ot as SparkOverlay,
3799
- ai as SparkPublicContainer,
3800
- xa as SparkResetPasswordView,
3801
- Qa as addIcons,
3802
- $i as create403Route,
3803
- Ai as create404Route,
3804
- Ri as createAuthRoutes,
3805
- qa as createAxiosInstance,
3806
- Ei as setupAuthGuards,
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,
3807
3827
  Li as setupAxios,
3808
- ei as setupFontAwesome,
3809
- pe as sparkModalService,
3810
- Q as sparkOverlayService,
3811
- Lt as useSparkAppSelectorStore,
3812
- Ot as useSparkAppStore,
3828
+ ti as setupFontAwesome,
3829
+ fe as sparkModalService,
3830
+ ve as sparkOverlayService,
3831
+ Ot as useSparkAppSelectorStore,
3832
+ Lt as useSparkAppStore,
3813
3833
  K as useSparkAuthStore,
3814
3834
  Tt as useSparkBrandFilterStore,
3815
- Oi as useSparkNavStore,
3835
+ Ti as useSparkNavStore,
3816
3836
  at as useSparkOverlay
3817
3837
  };