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