@stonecrop/desktop 0.2.61 → 0.2.62

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/desktop.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as Z, ref as C, onMounted as Be, openBlock as I, createElementBlock as V, normalizeClass as Se, createElementVNode as M, Fragment as Ne, renderList as Ie, toDisplayString as ue, createCommentVNode as de, withDirectives as Ze, vShow as on, computed as j, createBlock as xe, resolveDynamicComponent as rn, mergeProps as sn, effectScope as bo, markRaw as $e, inject as ae, onBeforeMount as Nr, shallowRef as Ir, toRaw as et, unref as E, shallowReactive as Cr, watch as z, nextTick as Re, hasInjectionContext as Pr, getCurrentInstance as We, reactive as ke, h as _o, provide as ft, isRef as tt, isReactive as an, toRef as ht, watchEffect as Dr, getCurrentScope as xt, onScopeDispose as St, toRefs as Cn, useTemplateRef as Nt, normalizeStyle as re, renderSlot as ge, createVNode as Et, withCtx as kt, readonly as Ar, customRef as Tr, createTextVNode as Eo, onBeforeUnmount as Rr, resolveComponent as Vr, withKeys as ct, vModelText as jr } from "vue";
1
+ import { defineComponent as Z, ref as C, onMounted as Be, openBlock as I, createElementBlock as V, normalizeClass as Se, createElementVNode as M, Fragment as Ne, renderList as Ie, toDisplayString as ue, createCommentVNode as de, withDirectives as Ze, vShow as on, computed as j, createBlock as xe, resolveDynamicComponent as rn, mergeProps as sn, effectScope as bo, markRaw as $e, inject as ae, onBeforeMount as Nr, shallowRef as Ir, toRaw as et, unref as k, shallowReactive as Cr, watch as z, nextTick as Re, hasInjectionContext as Pr, getCurrentInstance as We, reactive as ke, h as _o, provide as ft, isRef as tt, isReactive as an, toRef as ht, watchEffect as Dr, getCurrentScope as xt, onScopeDispose as St, toRefs as Cn, useTemplateRef as Nt, normalizeStyle as re, renderSlot as ge, createVNode as Et, withCtx as kt, readonly as Ar, customRef as Tr, createTextVNode as Eo, onBeforeUnmount as Rr, resolveComponent as Vr, withKeys as ct, vModelText as jr } from "vue";
2
2
  const Lr = { class: "action-menu-icon" }, Mr = ["onclick"], Br = { key: 1 }, Wr = ["onClick"], Ur = { class: "dropdown-container" }, Hr = { class: "dropdown" }, Fr = ["onclick"], zr = ["href"], Gr = { class: "dropdown-item" }, qr = /* @__PURE__ */ Z({
3
3
  __name: "ActionSet",
4
4
  props: {
@@ -7,31 +7,31 @@ const Lr = { class: "action-menu-icon" }, Mr = ["onclick"], Br = { key: 1 }, Wr
7
7
  setup(e) {
8
8
  const t = C(e.elements), n = C(!1), o = C(null), r = C(!1), s = C(!1);
9
9
  Be(() => {
10
- i();
10
+ a();
11
11
  });
12
- const i = () => {
13
- for (const u of t.value)
14
- u.elementType === "dropdown" && (u.show = !1);
15
- }, a = () => {
12
+ const a = () => {
13
+ for (const c of t.value)
14
+ c.elementType === "dropdown" && (c.show = !1);
15
+ }, i = () => {
16
16
  r.value = !0, o.value = setTimeout(() => {
17
17
  r.value && (n.value = !0);
18
18
  }, 500);
19
- }, c = () => {
19
+ }, d = () => {
20
20
  r.value = !1, s.value = !1, clearTimeout(o.value), n.value = !1;
21
- }, l = (u) => {
22
- const d = !t.value[u].show;
23
- i(), t.value[u].show = d;
21
+ }, l = (c) => {
22
+ const u = !t.value[c].show;
23
+ a(), t.value[c].show = u;
24
24
  };
25
- return (u, d) => (I(), V("div", {
25
+ return (c, u) => (I(), V("div", {
26
26
  class: Se([{ "open-set": n.value, "hovered-and-closed": s.value }, "action-set collapse"]),
27
- onMouseover: a,
28
- onMouseleave: c
27
+ onMouseover: i,
28
+ onMouseleave: d
29
29
  }, [
30
30
  M("div", Lr, [
31
31
  M("div", {
32
32
  id: "chevron",
33
- onClick: d[0] || (d[0] = (p) => s.value = !s.value)
34
- }, d[1] || (d[1] = [
33
+ onClick: u[0] || (u[0] = (p) => s.value = !s.value)
34
+ }, u[1] || (u[1] = [
35
35
  M("svg", {
36
36
  class: "leftBar",
37
37
  version: "1.1",
@@ -64,7 +64,7 @@ const Lr = { class: "action-menu-icon" }, Mr = ["onclick"], Br = { key: 1 }, Wr
64
64
  ], -1)
65
65
  ]))
66
66
  ]),
67
- d[2] || (d[2] = M("div", { style: { "margin-right": "30px" } }, null, -1)),
67
+ u[2] || (u[2] = M("div", { style: { "margin-right": "30px" } }, null, -1)),
68
68
  (I(!0), V(Ne, null, Ie(t.value, (p, f) => (I(), V("div", {
69
69
  class: "action-element",
70
70
  key: p.label
@@ -128,33 +128,33 @@ const Zr = { class: "aform" }, es = /* @__PURE__ */ Z({
128
128
  },
129
129
  emits: ["update:modelValue"],
130
130
  setup(e, { emit: t }) {
131
- const n = t, o = C(e.data || {}), r = (i) => {
132
- let a = {};
133
- for (const [c, l] of Object.entries(i))
134
- ["component", "fieldtype"].includes(c) || (a[c] = l), c === "rows" && l && l.length === 0 && (a.rows = o.value[i.fieldname]);
135
- return a;
131
+ const n = t, o = C(e.data || {}), r = (a) => {
132
+ let i = {};
133
+ for (const [d, l] of Object.entries(a))
134
+ ["component", "fieldtype"].includes(d) || (i[d] = l), d === "rows" && l && l.length === 0 && (i.rows = o.value[a.fieldname]);
135
+ return i;
136
136
  }, s = j({
137
- get: () => e.modelValue.map((i, a) => j({
137
+ get: () => e.modelValue.map((a, i) => j({
138
138
  get() {
139
- return i.value;
139
+ return a.value;
140
140
  },
141
- set: (c) => {
142
- e.modelValue[a].value = c, n("update:modelValue", e.modelValue);
141
+ set: (d) => {
142
+ e.modelValue[i].value = d, n("update:modelValue", e.modelValue);
143
143
  }
144
144
  })),
145
145
  set: () => {
146
146
  }
147
147
  });
148
- return (i, a) => (I(), V("form", Zr, [
149
- (I(!0), V(Ne, null, Ie(i.modelValue, (c, l) => (I(), xe(rn(c.component), sn({
148
+ return (a, i) => (I(), V("form", Zr, [
149
+ (I(!0), V(Ne, null, Ie(a.modelValue, (d, l) => (I(), xe(rn(d.component), sn({
150
150
  key: l,
151
- schema: c,
151
+ schema: d,
152
152
  modelValue: s.value[l].value,
153
- "onUpdate:modelValue": (u) => s.value[l].value = u,
154
- data: o.value[c.fieldname],
155
- readonly: i.readonly,
153
+ "onUpdate:modelValue": (c) => s.value[l].value = c,
154
+ data: o.value[d.fieldname],
155
+ readonly: a.readonly,
156
156
  ref_for: !0
157
- }, r(c)), null, 16, ["schema", "modelValue", "onUpdate:modelValue", "data", "readonly"]))), 128))
157
+ }, r(d)), null, 16, ["schema", "modelValue", "onUpdate:modelValue", "data", "readonly"]))), 128))
158
158
  ]));
159
159
  }
160
160
  }), ts = /* @__PURE__ */ Xr(es, [["__scopeId", "data-v-d9ce3008"]]);
@@ -300,8 +300,8 @@ const ko = class mt {
300
300
  */
301
301
  runAction(t, n, o) {
302
302
  const r = this.registry.registry[t.slug].actions.get(n), { initialState: s } = this.workflow;
303
- this.workflow.transition(s, { type: n }), r.length > 0 && r.forEach((i) => {
304
- new Function(i)(o);
303
+ this.workflow.transition(s, { type: n }), r.length > 0 && r.forEach((a) => {
304
+ new Function(a)(o);
305
305
  });
306
306
  }
307
307
  };
@@ -338,50 +338,50 @@ class ds {
338
338
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
339
339
  const o = {};
340
340
  if (t.settings)
341
- for (const i in t.settings) {
342
- const a = t.settings[i];
343
- o[i] = a.defaultValue;
341
+ for (const a in t.settings) {
342
+ const i = t.settings[a];
343
+ o[a] = i.defaultValue;
344
344
  }
345
345
  const r = `__vue-devtools-plugin-settings__${t.id}`;
346
346
  let s = Object.assign({}, o);
347
347
  try {
348
- const i = localStorage.getItem(r), a = JSON.parse(i);
349
- Object.assign(s, a);
348
+ const a = localStorage.getItem(r), i = JSON.parse(a);
349
+ Object.assign(s, i);
350
350
  } catch {
351
351
  }
352
352
  this.fallbacks = {
353
353
  getSettings() {
354
354
  return s;
355
355
  },
356
- setSettings(i) {
356
+ setSettings(a) {
357
357
  try {
358
- localStorage.setItem(r, JSON.stringify(i));
358
+ localStorage.setItem(r, JSON.stringify(a));
359
359
  } catch {
360
360
  }
361
- s = i;
361
+ s = a;
362
362
  },
363
363
  now() {
364
364
  return us();
365
365
  }
366
- }, n && n.on(ls, (i, a) => {
367
- i === this.plugin.id && this.fallbacks.setSettings(a);
366
+ }, n && n.on(ls, (a, i) => {
367
+ a === this.plugin.id && this.fallbacks.setSettings(i);
368
368
  }), this.proxiedOn = new Proxy({}, {
369
- get: (i, a) => this.target ? this.target.on[a] : (...c) => {
369
+ get: (a, i) => this.target ? this.target.on[i] : (...d) => {
370
370
  this.onQueue.push({
371
- method: a,
372
- args: c
371
+ method: i,
372
+ args: d
373
373
  });
374
374
  }
375
375
  }), this.proxiedTarget = new Proxy({}, {
376
- get: (i, a) => this.target ? this.target[a] : a === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(a) ? (...c) => (this.targetQueue.push({
377
- method: a,
378
- args: c,
376
+ get: (a, i) => this.target ? this.target[i] : i === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(i) ? (...d) => (this.targetQueue.push({
377
+ method: i,
378
+ args: d,
379
379
  resolve: () => {
380
380
  }
381
- }), this.fallbacks[a](...c)) : (...c) => new Promise((l) => {
381
+ }), this.fallbacks[i](...d)) : (...d) => new Promise((l) => {
382
382
  this.targetQueue.push({
383
- method: a,
384
- args: c,
383
+ method: i,
384
+ args: d,
385
385
  resolve: l
386
386
  });
387
387
  })
@@ -400,12 +400,12 @@ function cn(e, t) {
400
400
  if (r && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
401
401
  r.emit(is, e, t);
402
402
  else {
403
- const i = s ? new ds(n, r) : null;
403
+ const a = s ? new ds(n, r) : null;
404
404
  (o.__VUE_DEVTOOLS_PLUGINS__ = o.__VUE_DEVTOOLS_PLUGINS__ || []).push({
405
405
  pluginDescriptor: n,
406
406
  setupFn: t,
407
- proxy: i
408
- }), i && t(i.proxiedTarget);
407
+ proxy: a
408
+ }), a && t(a.proxiedTarget);
409
409
  }
410
410
  }
411
411
  /*!
@@ -489,19 +489,19 @@ function hs(e, t = "download", n) {
489
489
  function ms(e, t, n, o) {
490
490
  if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof e == "string")
491
491
  return un(e, t, n);
492
- const r = e.type === "application/octet-stream", s = /constructor/i.test(String(Pn.HTMLElement)) || "safari" in Pn, i = /CriOS\/[\d]+/.test(navigator.userAgent);
493
- if ((i || r && s || No) && typeof FileReader < "u") {
494
- const a = new FileReader();
495
- a.onloadend = function() {
496
- let c = a.result;
497
- if (typeof c != "string")
492
+ const r = e.type === "application/octet-stream", s = /constructor/i.test(String(Pn.HTMLElement)) || "safari" in Pn, a = /CriOS\/[\d]+/.test(navigator.userAgent);
493
+ if ((a || r && s || No) && typeof FileReader < "u") {
494
+ const i = new FileReader();
495
+ i.onloadend = function() {
496
+ let d = i.result;
497
+ if (typeof d != "string")
498
498
  throw o = null, new Error("Wrong reader.result type");
499
- c = i ? c : c.replace(/^data:[^;]*;/, "data:attachment/file;"), o ? o.location.href = c : location.assign(c), o = null;
500
- }, a.readAsDataURL(e);
499
+ d = a ? d : d.replace(/^data:[^;]*;/, "data:attachment/file;"), o ? o.location.href = d : location.assign(d), o = null;
500
+ }, i.readAsDataURL(e);
501
501
  } else {
502
- const a = URL.createObjectURL(e);
503
- o ? o.location.assign(a) : location.href = a, o = null, setTimeout(function() {
504
- URL.revokeObjectURL(a);
502
+ const i = URL.createObjectURL(e);
503
+ o ? o.location.assign(i) : location.href = i, o = null, setTimeout(function() {
504
+ URL.revokeObjectURL(i);
505
505
  }, 4e4);
506
506
  }
507
507
  }
@@ -612,7 +612,7 @@ function Es(e) {
612
612
  return {
613
613
  editable: !1,
614
614
  key: r,
615
- value: s._getters.reduce((i, a) => (i[a] = s[a], i), {})
615
+ value: s._getters.reduce((a, i) => (a[i] = s[i], a), {})
616
616
  };
617
617
  })
618
618
  };
@@ -723,38 +723,38 @@ function xs(e, t) {
723
723
  }), n.on.inspectComponent((o, r) => {
724
724
  const s = o.componentInstance && o.componentInstance.proxy;
725
725
  if (s && s._pStores) {
726
- const i = o.componentInstance.proxy._pStores;
727
- Object.values(i).forEach((a) => {
726
+ const a = o.componentInstance.proxy._pStores;
727
+ Object.values(a).forEach((i) => {
728
728
  o.instanceData.state.push({
729
- type: $t(a.$id),
729
+ type: $t(i.$id),
730
730
  key: "state",
731
731
  editable: !0,
732
- value: a._isOptionsAPI ? {
732
+ value: i._isOptionsAPI ? {
733
733
  _custom: {
734
- value: et(a.$state),
734
+ value: et(i.$state),
735
735
  actions: [
736
736
  {
737
737
  icon: "restore",
738
738
  tooltip: "Reset the state of this store",
739
- action: () => a.$reset()
739
+ action: () => i.$reset()
740
740
  }
741
741
  ]
742
742
  }
743
743
  } : (
744
744
  // NOTE: workaround to unwrap transferred refs
745
- Object.keys(a.$state).reduce((c, l) => (c[l] = a.$state[l], c), {})
745
+ Object.keys(i.$state).reduce((d, l) => (d[l] = i.$state[l], d), {})
746
746
  )
747
- }), a._getters && a._getters.length && o.instanceData.state.push({
748
- type: $t(a.$id),
747
+ }), i._getters && i._getters.length && o.instanceData.state.push({
748
+ type: $t(i.$id),
749
749
  key: "getters",
750
750
  editable: !1,
751
- value: a._getters.reduce((c, l) => {
751
+ value: i._getters.reduce((d, l) => {
752
752
  try {
753
- c[l] = a[l];
754
- } catch (u) {
755
- c[l] = u;
753
+ d[l] = i[l];
754
+ } catch (c) {
755
+ d[l] = c;
756
756
  }
757
- return c;
757
+ return d;
758
758
  }, {})
759
759
  });
760
760
  });
@@ -776,20 +776,20 @@ function xs(e, t) {
776
776
  const s = o.nodeId === yt ? t : t._s.get(o.nodeId);
777
777
  if (!s)
778
778
  return F(`store "${o.nodeId}" not found`, "error");
779
- const { path: i } = o;
780
- dn(s) ? i.unshift("state") : (i.length !== 1 || !s._customProperties.has(i[0]) || i[0] in s.$state) && i.unshift("$state"), Ae = !1, o.set(s, i, o.state.value), Ae = !0;
779
+ const { path: a } = o;
780
+ dn(s) ? a.unshift("state") : (a.length !== 1 || !s._customProperties.has(a[0]) || a[0] in s.$state) && a.unshift("$state"), Ae = !1, o.set(s, a, o.state.value), Ae = !0;
781
781
  }
782
782
  }), n.on.editComponentState((o) => {
783
783
  if (o.type.startsWith("🍍")) {
784
784
  const r = o.type.replace(/^🍍\s*/, ""), s = t._s.get(r);
785
785
  if (!s)
786
786
  return F(`store "${r}" not found`, "error");
787
- const { path: i } = o;
788
- if (i[0] !== "state")
787
+ const { path: a } = o;
788
+ if (a[0] !== "state")
789
789
  return F(`Invalid path for store "${r}":
790
- ${i}
790
+ ${a}
791
791
  Only state can be modified.`);
792
- i[0] = "$state", Ae = !1, o.set(s, i, o.state.value), Ae = !0;
792
+ a[0] = "$state", Ae = !1, o.set(s, a, o.state.value), Ae = !0;
793
793
  }
794
794
  });
795
795
  });
@@ -817,86 +817,86 @@ function Ss(e, t) {
817
817
  }
818
818
  }, (n) => {
819
819
  const o = typeof n.now == "function" ? n.now.bind(n) : Date.now;
820
- t.$onAction(({ after: i, onError: a, name: c, args: l }) => {
821
- const u = To++;
820
+ t.$onAction(({ after: a, onError: i, name: d, args: l }) => {
821
+ const c = To++;
822
822
  n.addTimelineEvent({
823
823
  layerId: Ee,
824
824
  event: {
825
825
  time: o(),
826
- title: "🛫 " + c,
826
+ title: "🛫 " + d,
827
827
  subtitle: "start",
828
828
  data: {
829
829
  store: te(t.$id),
830
- action: te(c),
830
+ action: te(d),
831
831
  args: l
832
832
  },
833
- groupId: u
833
+ groupId: c
834
834
  }
835
- }), i((d) => {
835
+ }), a((u) => {
836
836
  ye = void 0, n.addTimelineEvent({
837
837
  layerId: Ee,
838
838
  event: {
839
839
  time: o(),
840
- title: "🛬 " + c,
840
+ title: "🛬 " + d,
841
841
  subtitle: "end",
842
842
  data: {
843
843
  store: te(t.$id),
844
- action: te(c),
844
+ action: te(d),
845
845
  args: l,
846
- result: d
846
+ result: u
847
847
  },
848
- groupId: u
848
+ groupId: c
849
849
  }
850
850
  });
851
- }), a((d) => {
851
+ }), i((u) => {
852
852
  ye = void 0, n.addTimelineEvent({
853
853
  layerId: Ee,
854
854
  event: {
855
855
  time: o(),
856
856
  logType: "error",
857
- title: "💥 " + c,
857
+ title: "💥 " + d,
858
858
  subtitle: "end",
859
859
  data: {
860
860
  store: te(t.$id),
861
- action: te(c),
861
+ action: te(d),
862
862
  args: l,
863
- error: d
863
+ error: u
864
864
  },
865
- groupId: u
865
+ groupId: c
866
866
  }
867
867
  });
868
868
  });
869
- }, !0), t._customProperties.forEach((i) => {
870
- z(() => E(t[i]), (a, c) => {
869
+ }, !0), t._customProperties.forEach((a) => {
870
+ z(() => k(t[a]), (i, d) => {
871
871
  n.notifyComponentUpdate(), n.sendInspectorState(q), Ae && n.addTimelineEvent({
872
872
  layerId: Ee,
873
873
  event: {
874
874
  time: o(),
875
875
  title: "Change",
876
- subtitle: i,
876
+ subtitle: a,
877
877
  data: {
878
- newValue: a,
879
- oldValue: c
878
+ newValue: i,
879
+ oldValue: d
880
880
  },
881
881
  groupId: ye
882
882
  }
883
883
  });
884
884
  }, { deep: !0 });
885
- }), t.$subscribe(({ events: i, type: a }, c) => {
885
+ }), t.$subscribe(({ events: a, type: i }, d) => {
886
886
  if (n.notifyComponentUpdate(), n.sendInspectorState(q), !Ae)
887
887
  return;
888
888
  const l = {
889
889
  time: o(),
890
- title: $s(a),
891
- data: Os({ store: te(t.$id) }, ks(i)),
890
+ title: $s(i),
891
+ data: Os({ store: te(t.$id) }, ks(a)),
892
892
  groupId: ye
893
893
  };
894
- a === se.patchFunction ? l.subtitle = "⤵️" : a === se.patchObject ? l.subtitle = "🧩" : i && !Array.isArray(i) && (l.subtitle = i.type), i && (l.data["rawEvent(s)"] = {
894
+ i === se.patchFunction ? l.subtitle = "⤵️" : i === se.patchObject ? l.subtitle = "🧩" : a && !Array.isArray(a) && (l.subtitle = a.type), a && (l.data["rawEvent(s)"] = {
895
895
  _custom: {
896
896
  display: "DebuggerEvent",
897
897
  type: "object",
898
898
  tooltip: "raw DebuggerEvent[]",
899
- value: i
899
+ value: a
900
900
  }
901
901
  }), n.addTimelineEvent({
902
902
  layerId: Ee,
@@ -904,8 +904,8 @@ function Ss(e, t) {
904
904
  });
905
905
  }, { detached: !0, flush: "sync" });
906
906
  const r = t._hotUpdate;
907
- t._hotUpdate = $e((i) => {
908
- r(i), n.addTimelineEvent({
907
+ t._hotUpdate = $e((a) => {
908
+ r(a), n.addTimelineEvent({
909
909
  layerId: Ee,
910
910
  event: {
911
911
  time: o(),
@@ -929,17 +929,17 @@ function Dn(e, t, n) {
929
929
  const o = t.reduce((r, s) => (r[s] = et(e)[s], r), {});
930
930
  for (const r in o)
931
931
  e[r] = function() {
932
- const s = To, i = n ? new Proxy(e, {
933
- get(...c) {
934
- return ye = s, Reflect.get(...c);
932
+ const s = To, a = n ? new Proxy(e, {
933
+ get(...d) {
934
+ return ye = s, Reflect.get(...d);
935
935
  },
936
- set(...c) {
937
- return ye = s, Reflect.set(...c);
936
+ set(...d) {
937
+ return ye = s, Reflect.set(...d);
938
938
  }
939
939
  }) : e;
940
940
  ye = s;
941
- const a = o[r].apply(i, arguments);
942
- return ye = void 0, a;
941
+ const i = o[r].apply(a, arguments);
942
+ return ye = void 0, i;
943
943
  };
944
944
  }
945
945
  function Ns({ app: e, store: t, options: n }) {
@@ -963,7 +963,7 @@ function Is() {
963
963
  let n = [], o = [];
964
964
  const r = $e({
965
965
  install(s) {
966
- nt(r), r._a = s, s.provide(xo, r), s.config.globalProperties.$pinia = r, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Oe && xs(s, r), o.forEach((i) => n.push(i)), o = [];
966
+ nt(r), r._a = s, s.provide(xo, r), s.config.globalProperties.$pinia = r, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Oe && xs(s, r), o.forEach((a) => n.push(a)), o = [];
967
967
  },
968
968
  use(s) {
969
969
  return !this._a && !$o ? o.push(s) : n.push(s), this;
@@ -1026,39 +1026,39 @@ function Rn(e) {
1026
1026
  return !!(tt(e) && e.effect);
1027
1027
  }
1028
1028
  function Vn(e, t, n, o) {
1029
- const { state: r, actions: s, getters: i } = t, a = n.state.value[e];
1030
- let c;
1029
+ const { state: r, actions: s, getters: a } = t, i = n.state.value[e];
1030
+ let d;
1031
1031
  function l() {
1032
- !a && (process.env.NODE_ENV === "production" || !o) && (n.state.value[e] = r ? r() : {});
1033
- const u = process.env.NODE_ENV !== "production" && o ? (
1032
+ !i && (process.env.NODE_ENV === "production" || !o) && (n.state.value[e] = r ? r() : {});
1033
+ const c = process.env.NODE_ENV !== "production" && o ? (
1034
1034
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
1035
1035
  Cn(C(r ? r() : {}).value)
1036
1036
  ) : Cn(n.state.value[e]);
1037
- return Q(u, s, Object.keys(i || {}).reduce((d, p) => (process.env.NODE_ENV !== "production" && p in u && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`), d[p] = $e(j(() => {
1037
+ return Q(c, s, Object.keys(a || {}).reduce((u, p) => (process.env.NODE_ENV !== "production" && p in c && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`), u[p] = $e(j(() => {
1038
1038
  nt(n);
1039
1039
  const f = n._s.get(e);
1040
- return i[p].call(f, f);
1041
- })), d), {}));
1040
+ return a[p].call(f, f);
1041
+ })), u), {}));
1042
1042
  }
1043
- return c = Kt(e, l, t, n, o, !0), c;
1043
+ return d = Kt(e, l, t, n, o, !0), d;
1044
1044
  }
1045
1045
  function Kt(e, t, n = {}, o, r, s) {
1046
- let i;
1047
- const a = Q({ actions: {} }, n);
1046
+ let a;
1047
+ const i = Q({ actions: {} }, n);
1048
1048
  if (process.env.NODE_ENV !== "production" && !o._e.active)
1049
1049
  throw new Error("Pinia destroyed");
1050
- const c = { deep: !0 };
1051
- process.env.NODE_ENV !== "production" && !$o && (c.onTrigger = (b) => {
1052
- l ? f = b : l == !1 && !k._hotUpdating && (Array.isArray(f) ? f.push(b) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
1050
+ const d = { deep: !0 };
1051
+ process.env.NODE_ENV !== "production" && !$o && (d.onTrigger = (b) => {
1052
+ l ? f = b : l == !1 && !$._hotUpdating && (Array.isArray(f) ? f.push(b) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
1053
1053
  });
1054
- let l, u, d = [], p = [], f;
1054
+ let l, c, u = [], p = [], f;
1055
1055
  const m = o.state.value[e];
1056
1056
  !s && !m && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
1057
1057
  const v = C({});
1058
- let $;
1058
+ let _;
1059
1059
  function x(b) {
1060
1060
  let w;
1061
- l = u = !1, process.env.NODE_ENV !== "production" && (f = []), typeof b == "function" ? (b(o.state.value[e]), w = {
1061
+ l = c = !1, process.env.NODE_ENV !== "production" && (f = []), typeof b == "function" ? (b(o.state.value[e]), w = {
1062
1062
  type: se.patchFunction,
1063
1063
  storeId: e,
1064
1064
  events: f
@@ -1068,10 +1068,10 @@ function Kt(e, t, n = {}, o, r, s) {
1068
1068
  storeId: e,
1069
1069
  events: f
1070
1070
  });
1071
- const L = $ = Symbol();
1071
+ const L = _ = Symbol();
1072
1072
  Re().then(() => {
1073
- $ === L && (l = !0);
1074
- }), u = !0, De(d, w, o.state.value[e]);
1073
+ _ === L && (l = !0);
1074
+ }), c = !0, De(u, w, o.state.value[e]);
1075
1075
  }
1076
1076
  const O = s ? function() {
1077
1077
  const { state: b } = n, w = b ? b() : {};
@@ -1085,7 +1085,7 @@ function Kt(e, t, n = {}, o, r, s) {
1085
1085
  } : Vo
1086
1086
  );
1087
1087
  function P() {
1088
- i.stop(), d = [], p = [], o._s.delete(e);
1088
+ a.stop(), u = [], p = [], o._s.delete(e);
1089
1089
  }
1090
1090
  const U = (b, w = "") => {
1091
1091
  if (Tn in b)
@@ -1102,13 +1102,13 @@ function Kt(e, t, n = {}, o, r, s) {
1102
1102
  De(p, {
1103
1103
  args: K,
1104
1104
  name: L[jt],
1105
- store: k,
1105
+ store: $,
1106
1106
  after: He,
1107
1107
  onError: it
1108
1108
  });
1109
1109
  let oe;
1110
1110
  try {
1111
- oe = b.apply(this && this.$id === e ? this : k, K);
1111
+ oe = b.apply(this && this.$id === e ? this : $, K);
1112
1112
  } catch (G) {
1113
1113
  throw De(Ue, G), G;
1114
1114
  }
@@ -1128,17 +1128,17 @@ function Kt(e, t, n = {}, o, r, s) {
1128
1128
  $patch: x,
1129
1129
  $reset: O,
1130
1130
  $subscribe(b, w = {}) {
1131
- const L = An(d, b, w.detached, () => K()), K = i.run(() => z(() => o.state.value[e], (ee) => {
1132
- (w.flush === "sync" ? u : l) && b({
1131
+ const L = An(u, b, w.detached, () => K()), K = a.run(() => z(() => o.state.value[e], (ee) => {
1132
+ (w.flush === "sync" ? c : l) && b({
1133
1133
  storeId: e,
1134
1134
  type: se.direct,
1135
1135
  events: f
1136
1136
  }, ee);
1137
- }, Q({}, c, w)));
1137
+ }, Q({}, d, w)));
1138
1138
  return L;
1139
1139
  },
1140
1140
  $dispose: P
1141
- }, k = ke(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Oe ? Q(
1141
+ }, $ = ke(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Oe ? Q(
1142
1142
  {
1143
1143
  _hmrPayload: D,
1144
1144
  _customProperties: $e(/* @__PURE__ */ new Set())
@@ -1148,22 +1148,22 @@ function Kt(e, t, n = {}, o, r, s) {
1148
1148
  // must be added later
1149
1149
  // setupStore
1150
1150
  ) : B);
1151
- o._s.set(e, k);
1152
- const ne = (o._a && o._a.runWithContext || Cs)(() => o._e.run(() => (i = bo()).run(() => t({ action: U }))));
1151
+ o._s.set(e, $);
1152
+ const ne = (o._a && o._a.runWithContext || Cs)(() => o._e.run(() => (a = bo()).run(() => t({ action: U }))));
1153
1153
  for (const b in ne) {
1154
1154
  const w = ne[b];
1155
1155
  if (tt(w) && !Rn(w) || an(w))
1156
1156
  process.env.NODE_ENV !== "production" && r ? ut(v.value, b, ht(ne, b)) : s || (m && Ds(w) && (tt(w) ? w.value = m[b] : Jt(w, m[b])), o.state.value[e][b] = w), process.env.NODE_ENV !== "production" && D.state.push(b);
1157
1157
  else if (typeof w == "function") {
1158
1158
  const L = process.env.NODE_ENV !== "production" && r ? w : U(w, b);
1159
- ne[b] = L, process.env.NODE_ENV !== "production" && (D.actions[b] = w), a.actions[b] = w;
1159
+ ne[b] = L, process.env.NODE_ENV !== "production" && (D.actions[b] = w), i.actions[b] = w;
1160
1160
  } else process.env.NODE_ENV !== "production" && Rn(w) && (D.getters[b] = s ? (
1161
1161
  // @ts-expect-error
1162
1162
  n.getters[b]
1163
1163
  ) : w, Oe && (ne._getters || // @ts-expect-error: same
1164
1164
  (ne._getters = $e([]))).push(b));
1165
1165
  }
1166
- if (Q(k, ne), Q(et(k), ne), Object.defineProperty(k, "$state", {
1166
+ if (Q($, ne), Q(et($), ne), Object.defineProperty($, "$state", {
1167
1167
  get: () => process.env.NODE_ENV !== "production" && r ? v.value : o.state.value[e],
1168
1168
  set: (b) => {
1169
1169
  if (process.env.NODE_ENV !== "production" && r)
@@ -1172,34 +1172,34 @@ function Kt(e, t, n = {}, o, r, s) {
1172
1172
  Q(w, b);
1173
1173
  });
1174
1174
  }
1175
- }), process.env.NODE_ENV !== "production" && (k._hotUpdate = $e((b) => {
1176
- k._hotUpdating = !0, b._hmrPayload.state.forEach((w) => {
1177
- if (w in k.$state) {
1178
- const L = b.$state[w], K = k.$state[w];
1175
+ }), process.env.NODE_ENV !== "production" && ($._hotUpdate = $e((b) => {
1176
+ $._hotUpdating = !0, b._hmrPayload.state.forEach((w) => {
1177
+ if (w in $.$state) {
1178
+ const L = b.$state[w], K = $.$state[w];
1179
1179
  typeof L == "object" && Ce(L) && Ce(K) ? Ro(L, K) : b.$state[w] = K;
1180
1180
  }
1181
- ut(k, w, ht(b.$state, w));
1182
- }), Object.keys(k.$state).forEach((w) => {
1183
- w in b.$state || Vt(k, w);
1184
- }), l = !1, u = !1, o.state.value[e] = ht(b._hmrPayload, "hotState"), u = !0, Re().then(() => {
1181
+ ut($, w, ht(b.$state, w));
1182
+ }), Object.keys($.$state).forEach((w) => {
1183
+ w in b.$state || Vt($, w);
1184
+ }), l = !1, c = !1, o.state.value[e] = ht(b._hmrPayload, "hotState"), c = !0, Re().then(() => {
1185
1185
  l = !0;
1186
1186
  });
1187
1187
  for (const w in b._hmrPayload.actions) {
1188
1188
  const L = b[w];
1189
- ut(k, w, U(L, w));
1189
+ ut($, w, U(L, w));
1190
1190
  }
1191
1191
  for (const w in b._hmrPayload.getters) {
1192
1192
  const L = b._hmrPayload.getters[w], K = s ? (
1193
1193
  // special handling of options api
1194
- j(() => (nt(o), L.call(k, k)))
1194
+ j(() => (nt(o), L.call($, $)))
1195
1195
  ) : L;
1196
- ut(k, w, K);
1196
+ ut($, w, K);
1197
1197
  }
1198
- Object.keys(k._hmrPayload.getters).forEach((w) => {
1199
- w in b._hmrPayload.getters || Vt(k, w);
1200
- }), Object.keys(k._hmrPayload.actions).forEach((w) => {
1201
- w in b._hmrPayload.actions || Vt(k, w);
1202
- }), k._hmrPayload = b._hmrPayload, k._getters = b._getters, k._hotUpdating = !1;
1198
+ Object.keys($._hmrPayload.getters).forEach((w) => {
1199
+ w in b._hmrPayload.getters || Vt($, w);
1200
+ }), Object.keys($._hmrPayload.actions).forEach((w) => {
1201
+ w in b._hmrPayload.actions || Vt($, w);
1202
+ }), $._hmrPayload = b._hmrPayload, $._getters = b._getters, $._hotUpdating = !1;
1203
1203
  })), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Oe) {
1204
1204
  const b = {
1205
1205
  writable: !0,
@@ -1208,59 +1208,59 @@ function Kt(e, t, n = {}, o, r, s) {
1208
1208
  enumerable: !1
1209
1209
  };
1210
1210
  ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((w) => {
1211
- Object.defineProperty(k, w, Q({ value: k[w] }, b));
1211
+ Object.defineProperty($, w, Q({ value: $[w] }, b));
1212
1212
  });
1213
1213
  }
1214
1214
  return o._p.forEach((b) => {
1215
1215
  if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && Oe) {
1216
- const w = i.run(() => b({
1217
- store: k,
1216
+ const w = a.run(() => b({
1217
+ store: $,
1218
1218
  app: o._a,
1219
1219
  pinia: o,
1220
- options: a
1220
+ options: i
1221
1221
  }));
1222
- Object.keys(w || {}).forEach((L) => k._customProperties.add(L)), Q(k, w);
1222
+ Object.keys(w || {}).forEach((L) => $._customProperties.add(L)), Q($, w);
1223
1223
  } else
1224
- Q(k, i.run(() => b({
1225
- store: k,
1224
+ Q($, a.run(() => b({
1225
+ store: $,
1226
1226
  app: o._a,
1227
1227
  pinia: o,
1228
- options: a
1228
+ options: i
1229
1229
  })));
1230
- }), process.env.NODE_ENV !== "production" && k.$state && typeof k.$state == "object" && typeof k.$state.constructor == "function" && !k.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
1230
+ }), process.env.NODE_ENV !== "production" && $.$state && typeof $.$state == "object" && typeof $.$state.constructor == "function" && !$.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
1231
1231
  state: () => new MyClass()
1232
- Found in store "${k.$id}".`), m && s && n.hydrate && n.hydrate(k.$state, m), l = !0, u = !0, k;
1232
+ Found in store "${$.$id}".`), m && s && n.hydrate && n.hydrate($.$state, m), l = !0, c = !0, $;
1233
1233
  }
1234
1234
  // @__NO_SIDE_EFFECTS__
1235
1235
  function As(e, t, n) {
1236
1236
  let o, r;
1237
1237
  const s = typeof t == "function";
1238
1238
  o = e, r = s ? n : t;
1239
- function i(a, c) {
1239
+ function a(i, d) {
1240
1240
  const l = Pr();
1241
- if (a = // in test mode, ignore the argument provided as we can always retrieve a
1241
+ if (i = // in test mode, ignore the argument provided as we can always retrieve a
1242
1242
  // pinia instance with getActivePinia()
1243
- (process.env.NODE_ENV === "test" && qe && qe._testing ? null : a) || (l ? ae(xo, null) : null), a && nt(a), process.env.NODE_ENV !== "production" && !qe)
1243
+ (process.env.NODE_ENV === "test" && qe && qe._testing ? null : i) || (l ? ae(xo, null) : null), i && nt(i), process.env.NODE_ENV !== "production" && !qe)
1244
1244
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
1245
1245
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
1246
1246
  This will fail in production.`);
1247
- a = qe, a._s.has(o) || (s ? Kt(o, t, r, a) : Vn(o, r, a), process.env.NODE_ENV !== "production" && (i._pinia = a));
1248
- const u = a._s.get(o);
1249
- if (process.env.NODE_ENV !== "production" && c) {
1250
- const d = "__hot:" + o, p = s ? Kt(d, t, r, a, !0) : Vn(d, Q({}, r), a, !0);
1251
- c._hotUpdate(p), delete a.state.value[d], a._s.delete(d);
1247
+ i = qe, i._s.has(o) || (s ? Kt(o, t, r, i) : Vn(o, r, i), process.env.NODE_ENV !== "production" && (a._pinia = i));
1248
+ const c = i._s.get(o);
1249
+ if (process.env.NODE_ENV !== "production" && d) {
1250
+ const u = "__hot:" + o, p = s ? Kt(u, t, r, i, !0) : Vn(u, Q({}, r), i, !0);
1251
+ d._hotUpdate(p), delete i.state.value[u], i._s.delete(u);
1252
1252
  }
1253
1253
  if (process.env.NODE_ENV !== "production" && Oe) {
1254
- const d = We();
1255
- if (d && d.proxy && // avoid adding stores that are just built for hot module replacement
1256
- !c) {
1257
- const p = d.proxy, f = "_pStores" in p ? p._pStores : p._pStores = {};
1258
- f[o] = u;
1254
+ const u = We();
1255
+ if (u && u.proxy && // avoid adding stores that are just built for hot module replacement
1256
+ !d) {
1257
+ const p = u.proxy, f = "_pStores" in p ? p._pStores : p._pStores = {};
1258
+ f[o] = c;
1259
1259
  }
1260
1260
  }
1261
- return u;
1261
+ return c;
1262
1262
  }
1263
- return i.$id = o, i;
1263
+ return a.$id = o, a;
1264
1264
  }
1265
1265
  const Ts = /* @__PURE__ */ As("data", () => {
1266
1266
  const e = C([]), t = C({});
@@ -1271,11 +1271,11 @@ function jo(e) {
1271
1271
  const t = Ts(), n = C(new rs(e, t)), o = C(!1);
1272
1272
  return Nr(async () => {
1273
1273
  var r, s;
1274
- const i = e.router.currentRoute.value, a = (r = i.params.records) == null ? void 0 : r.toString().toLowerCase(), c = (s = i.params.record) == null ? void 0 : s.toString().toLowerCase();
1275
- if (!a && !c)
1274
+ const a = e.router.currentRoute.value, i = (r = a.params.records) == null ? void 0 : r.toString().toLowerCase(), d = (s = a.params.record) == null ? void 0 : s.toString().toLowerCase();
1275
+ if (!i && !d)
1276
1276
  return;
1277
- const l = await e.getMeta(a);
1278
- e.addDoctype(l), n.value.setup(l), a && (c ? await n.value.getRecord(l, c) : await n.value.getRecords(l)), n.value.runAction(l, "LOAD", c ? [c] : void 0), o.value = !0;
1277
+ const l = await e.getMeta(i);
1278
+ e.addDoctype(l), n.value.setup(l), i && (d ? await n.value.getRecord(l, d) : await n.value.getRecords(l)), n.value.runAction(l, "LOAD", d ? [d] : void 0), o.value = !0;
1279
1279
  }), { stonecrop: n, isReady: o };
1280
1280
  }
1281
1281
  const Rs = class bt {
@@ -1351,14 +1351,14 @@ function Ve(e) {
1351
1351
  }
1352
1352
  const Ys = /\/$/, Qs = (e) => e.replace(Ys, "");
1353
1353
  function Mt(e, t, n = "/") {
1354
- let o, r = {}, s = "", i = "";
1355
- const a = t.indexOf("#");
1356
- let c = t.indexOf("?");
1357
- return a < c && a >= 0 && (c = -1), c > -1 && (o = t.slice(0, c), s = t.slice(c + 1, a > -1 ? a : t.length), r = e(s)), a > -1 && (o = o || t.slice(0, a), i = t.slice(a, t.length)), o = ea(o ?? t, n), {
1358
- fullPath: o + (s && "?") + s + i,
1354
+ let o, r = {}, s = "", a = "";
1355
+ const i = t.indexOf("#");
1356
+ let d = t.indexOf("?");
1357
+ return i < d && i >= 0 && (d = -1), d > -1 && (o = t.slice(0, d), s = t.slice(d + 1, i > -1 ? i : t.length), r = e(s)), i > -1 && (o = o || t.slice(0, i), a = t.slice(i, t.length)), o = ea(o ?? t, n), {
1358
+ fullPath: o + (s && "?") + s + a,
1359
1359
  path: o,
1360
1360
  query: r,
1361
- hash: Ve(i)
1361
+ hash: Ve(a)
1362
1362
  };
1363
1363
  }
1364
1364
  function Xs(e, t) {
@@ -1398,14 +1398,14 @@ function ea(e, t) {
1398
1398
  return t;
1399
1399
  const n = t.split("/"), o = e.split("/"), r = o[o.length - 1];
1400
1400
  (r === ".." || r === ".") && o.push("");
1401
- let s = n.length - 1, i, a;
1402
- for (i = 0; i < o.length; i++)
1403
- if (a = o[i], a !== ".")
1404
- if (a === "..")
1401
+ let s = n.length - 1, a, i;
1402
+ for (a = 0; a < o.length; a++)
1403
+ if (i = o[a], i !== ".")
1404
+ if (i === "..")
1405
1405
  s > 1 && s--;
1406
1406
  else
1407
1407
  break;
1408
- return n.slice(0, s).join("/") + "/" + o.slice(i).join("/");
1408
+ return n.slice(0, s).join("/") + "/" + o.slice(a).join("/");
1409
1409
  }
1410
1410
  const me = {
1411
1411
  path: "/",
@@ -1492,34 +1492,34 @@ let la = () => location.protocol + "//" + location.host;
1492
1492
  function zo(e, t) {
1493
1493
  const { pathname: n, search: o, hash: r } = t, s = e.indexOf("#");
1494
1494
  if (s > -1) {
1495
- let i = r.includes(e.slice(s)) ? e.slice(s).length : 1, a = r.slice(i);
1496
- return a[0] !== "/" && (a = "/" + a), jn(a, "");
1495
+ let a = r.includes(e.slice(s)) ? e.slice(s).length : 1, i = r.slice(a);
1496
+ return i[0] !== "/" && (i = "/" + i), jn(i, "");
1497
1497
  }
1498
1498
  return jn(n, e) + o + r;
1499
1499
  }
1500
1500
  function ca(e, t, n, o) {
1501
- let r = [], s = [], i = null;
1502
- const a = ({ state: p }) => {
1501
+ let r = [], s = [], a = null;
1502
+ const i = ({ state: p }) => {
1503
1503
  const f = zo(e, location), m = n.value, v = t.value;
1504
- let $ = 0;
1504
+ let _ = 0;
1505
1505
  if (p) {
1506
- if (n.value = f, t.value = p, i && i === m) {
1507
- i = null;
1506
+ if (n.value = f, t.value = p, a && a === m) {
1507
+ a = null;
1508
1508
  return;
1509
1509
  }
1510
- $ = v ? p.position - v.position : 0;
1510
+ _ = v ? p.position - v.position : 0;
1511
1511
  } else
1512
1512
  o(f);
1513
1513
  r.forEach((x) => {
1514
1514
  x(n.value, m, {
1515
- delta: $,
1515
+ delta: _,
1516
1516
  type: ot.pop,
1517
- direction: $ ? $ > 0 ? Ye.forward : Ye.back : Ye.unknown
1517
+ direction: _ ? _ > 0 ? Ye.forward : Ye.back : Ye.unknown
1518
1518
  });
1519
1519
  });
1520
1520
  };
1521
- function c() {
1522
- i = n.value;
1521
+ function d() {
1522
+ a = n.value;
1523
1523
  }
1524
1524
  function l(p) {
1525
1525
  r.push(p);
@@ -1529,21 +1529,21 @@ function ca(e, t, n, o) {
1529
1529
  };
1530
1530
  return s.push(f), f;
1531
1531
  }
1532
- function u() {
1532
+ function c() {
1533
1533
  const { history: p } = window;
1534
1534
  p.state && p.replaceState(R({}, p.state, { scroll: It() }), "");
1535
1535
  }
1536
- function d() {
1536
+ function u() {
1537
1537
  for (const p of s)
1538
1538
  p();
1539
- s = [], window.removeEventListener("popstate", a), window.removeEventListener("beforeunload", u);
1539
+ s = [], window.removeEventListener("popstate", i), window.removeEventListener("beforeunload", c);
1540
1540
  }
1541
- return window.addEventListener("popstate", a), window.addEventListener("beforeunload", u, {
1541
+ return window.addEventListener("popstate", i), window.addEventListener("beforeunload", c, {
1542
1542
  passive: !0
1543
1543
  }), {
1544
- pauseListeners: c,
1544
+ pauseListeners: d,
1545
1545
  listen: l,
1546
- destroy: d
1546
+ destroy: u
1547
1547
  };
1548
1548
  }
1549
1549
  function Wn(e, t, n, o = !1, r = !1) {
@@ -1571,26 +1571,26 @@ function ua(e) {
1571
1571
  // scrollBehavior to be triggered without a saved position
1572
1572
  scroll: null
1573
1573
  }, !0);
1574
- function s(c, l, u) {
1575
- const d = e.indexOf("#"), p = d > -1 ? (n.host && document.querySelector("base") ? e : e.slice(d)) + c : la() + e + c;
1574
+ function s(d, l, c) {
1575
+ const u = e.indexOf("#"), p = u > -1 ? (n.host && document.querySelector("base") ? e : e.slice(u)) + d : la() + e + d;
1576
1576
  try {
1577
- t[u ? "replaceState" : "pushState"](l, "", p), r.value = l;
1577
+ t[c ? "replaceState" : "pushState"](l, "", p), r.value = l;
1578
1578
  } catch (f) {
1579
- process.env.NODE_ENV !== "production" ? S("Error with push/replace State", f) : console.error(f), n[u ? "replace" : "assign"](p);
1579
+ process.env.NODE_ENV !== "production" ? S("Error with push/replace State", f) : console.error(f), n[c ? "replace" : "assign"](p);
1580
1580
  }
1581
1581
  }
1582
- function i(c, l) {
1583
- const u = R({}, t.state, Wn(
1582
+ function a(d, l) {
1583
+ const c = R({}, t.state, Wn(
1584
1584
  r.value.back,
1585
1585
  // keep back and forward entries but override current position
1586
- c,
1586
+ d,
1587
1587
  r.value.forward,
1588
1588
  !0
1589
1589
  ), l, { position: r.value.position });
1590
- s(c, u, !0), o.value = c;
1590
+ s(d, c, !0), o.value = d;
1591
1591
  }
1592
- function a(c, l) {
1593
- const u = R(
1592
+ function i(d, l) {
1593
+ const c = R(
1594
1594
  {},
1595
1595
  // use current history state to gracefully handle a wrong call to
1596
1596
  // history.replaceState
@@ -1598,7 +1598,7 @@ function ua(e) {
1598
1598
  r.value,
1599
1599
  t.state,
1600
1600
  {
1601
- forward: c,
1601
+ forward: d,
1602
1602
  scroll: It()
1603
1603
  }
1604
1604
  );
@@ -1606,22 +1606,22 @@ function ua(e) {
1606
1606
 
1607
1607
  history.replaceState(history.state, '', url)
1608
1608
 
1609
- You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), s(u.current, u, !0);
1610
- const d = R({}, Wn(o.value, c, null), { position: u.position + 1 }, l);
1611
- s(c, d, !1), o.value = c;
1609
+ You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), s(c.current, c, !0);
1610
+ const u = R({}, Wn(o.value, d, null), { position: c.position + 1 }, l);
1611
+ s(d, u, !1), o.value = d;
1612
1612
  }
1613
1613
  return {
1614
1614
  location: o,
1615
1615
  state: r,
1616
- push: a,
1617
- replace: i
1616
+ push: i,
1617
+ replace: a
1618
1618
  };
1619
1619
  }
1620
1620
  function da(e) {
1621
1621
  e = ta(e);
1622
1622
  const t = ua(e), n = ca(e, t.state, t.location, t.replace);
1623
- function o(s, i = !0) {
1624
- i || n.pauseListeners(), history.go(s);
1623
+ function o(s, a = !0) {
1624
+ a || n.pauseListeners(), history.go(s);
1625
1625
  }
1626
1626
  const r = R({
1627
1627
  // it's overridden right after
@@ -1703,22 +1703,22 @@ function ga(e, t) {
1703
1703
  let r = n.start ? "^" : "";
1704
1704
  const s = [];
1705
1705
  for (const l of e) {
1706
- const u = l.length ? [] : [
1706
+ const c = l.length ? [] : [
1707
1707
  90
1708
1708
  /* PathScore.Root */
1709
1709
  ];
1710
1710
  n.strict && !l.length && (r += "/");
1711
- for (let d = 0; d < l.length; d++) {
1712
- const p = l[d];
1711
+ for (let u = 0; u < l.length; u++) {
1712
+ const p = l[u];
1713
1713
  let f = 40 + (n.sensitive ? 0.25 : 0);
1714
1714
  if (p.type === 0)
1715
- d || (r += "/"), r += p.value.replace(va, "\\$&"), f += 40;
1715
+ u || (r += "/"), r += p.value.replace(va, "\\$&"), f += 40;
1716
1716
  else if (p.type === 1) {
1717
- const { value: m, repeatable: v, optional: $, regexp: x } = p;
1717
+ const { value: m, repeatable: v, optional: _, regexp: x } = p;
1718
1718
  s.push({
1719
1719
  name: m,
1720
1720
  repeatable: v,
1721
- optional: $
1721
+ optional: _
1722
1722
  });
1723
1723
  const O = x || Hn;
1724
1724
  if (O !== Hn) {
@@ -1730,58 +1730,58 @@ function ga(e, t) {
1730
1730
  }
1731
1731
  }
1732
1732
  let P = v ? `((?:${O})(?:/(?:${O}))*)` : `(${O})`;
1733
- d || (P = // avoid an optional / if there are more segments e.g. /:p?-static
1733
+ u || (P = // avoid an optional / if there are more segments e.g. /:p?-static
1734
1734
  // or /:p?-:p2
1735
- $ && l.length < 2 ? `(?:/${P})` : "/" + P), $ && (P += "?"), r += P, f += 20, $ && (f += -8), v && (f += -20), O === ".*" && (f += -50);
1735
+ _ && l.length < 2 ? `(?:/${P})` : "/" + P), _ && (P += "?"), r += P, f += 20, _ && (f += -8), v && (f += -20), O === ".*" && (f += -50);
1736
1736
  }
1737
- u.push(f);
1737
+ c.push(f);
1738
1738
  }
1739
- o.push(u);
1739
+ o.push(c);
1740
1740
  }
1741
1741
  if (n.strict && n.end) {
1742
1742
  const l = o.length - 1;
1743
1743
  o[l][o[l].length - 1] += 0.7000000000000001;
1744
1744
  }
1745
1745
  n.strict || (r += "/?"), n.end ? r += "$" : n.strict && (r += "(?:/|$)");
1746
- const i = new RegExp(r, n.sensitive ? "" : "i");
1747
- function a(l) {
1748
- const u = l.match(i), d = {};
1749
- if (!u)
1746
+ const a = new RegExp(r, n.sensitive ? "" : "i");
1747
+ function i(l) {
1748
+ const c = l.match(a), u = {};
1749
+ if (!c)
1750
1750
  return null;
1751
- for (let p = 1; p < u.length; p++) {
1752
- const f = u[p] || "", m = s[p - 1];
1753
- d[m.name] = f && m.repeatable ? f.split("/") : f;
1751
+ for (let p = 1; p < c.length; p++) {
1752
+ const f = c[p] || "", m = s[p - 1];
1753
+ u[m.name] = f && m.repeatable ? f.split("/") : f;
1754
1754
  }
1755
- return d;
1755
+ return u;
1756
1756
  }
1757
- function c(l) {
1758
- let u = "", d = !1;
1757
+ function d(l) {
1758
+ let c = "", u = !1;
1759
1759
  for (const p of e) {
1760
- (!d || !u.endsWith("/")) && (u += "/"), d = !1;
1760
+ (!u || !c.endsWith("/")) && (c += "/"), u = !1;
1761
1761
  for (const f of p)
1762
1762
  if (f.type === 0)
1763
- u += f.value;
1763
+ c += f.value;
1764
1764
  else if (f.type === 1) {
1765
- const { value: m, repeatable: v, optional: $ } = f, x = m in l ? l[m] : "";
1765
+ const { value: m, repeatable: v, optional: _ } = f, x = m in l ? l[m] : "";
1766
1766
  if (Y(x) && !v)
1767
1767
  throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);
1768
1768
  const O = Y(x) ? x.join("/") : x;
1769
1769
  if (!O)
1770
- if ($)
1771
- p.length < 2 && (u.endsWith("/") ? u = u.slice(0, -1) : d = !0);
1770
+ if (_)
1771
+ p.length < 2 && (c.endsWith("/") ? c = c.slice(0, -1) : u = !0);
1772
1772
  else
1773
1773
  throw new Error(`Missing required param "${m}"`);
1774
- u += O;
1774
+ c += O;
1775
1775
  }
1776
1776
  }
1777
- return u || "/";
1777
+ return c || "/";
1778
1778
  }
1779
1779
  return {
1780
- re: i,
1780
+ re: a,
1781
1781
  score: o,
1782
1782
  keys: s,
1783
- parse: a,
1784
- stringify: c
1783
+ parse: i,
1784
+ stringify: d
1785
1785
  };
1786
1786
  }
1787
1787
  function ya(e, t) {
@@ -1832,59 +1832,59 @@ function _a(e) {
1832
1832
  let n = 0, o = n;
1833
1833
  const r = [];
1834
1834
  let s;
1835
- function i() {
1835
+ function a() {
1836
1836
  s && r.push(s), s = [];
1837
1837
  }
1838
- let a = 0, c, l = "", u = "";
1839
- function d() {
1838
+ let i = 0, d, l = "", c = "";
1839
+ function u() {
1840
1840
  l && (n === 0 ? s.push({
1841
1841
  type: 0,
1842
1842
  value: l
1843
- }) : n === 1 || n === 2 || n === 3 ? (s.length > 1 && (c === "*" || c === "+") && t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`), s.push({
1843
+ }) : n === 1 || n === 2 || n === 3 ? (s.length > 1 && (d === "*" || d === "+") && t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`), s.push({
1844
1844
  type: 1,
1845
1845
  value: l,
1846
- regexp: u,
1847
- repeatable: c === "*" || c === "+",
1848
- optional: c === "*" || c === "?"
1846
+ regexp: c,
1847
+ repeatable: d === "*" || d === "+",
1848
+ optional: d === "*" || d === "?"
1849
1849
  })) : t("Invalid state to consume buffer"), l = "");
1850
1850
  }
1851
1851
  function p() {
1852
- l += c;
1852
+ l += d;
1853
1853
  }
1854
- for (; a < e.length; ) {
1855
- if (c = e[a++], c === "\\" && n !== 2) {
1854
+ for (; i < e.length; ) {
1855
+ if (d = e[i++], d === "\\" && n !== 2) {
1856
1856
  o = n, n = 4;
1857
1857
  continue;
1858
1858
  }
1859
1859
  switch (n) {
1860
1860
  case 0:
1861
- c === "/" ? (l && d(), i()) : c === ":" ? (d(), n = 1) : p();
1861
+ d === "/" ? (l && u(), a()) : d === ":" ? (u(), n = 1) : p();
1862
1862
  break;
1863
1863
  case 4:
1864
1864
  p(), n = o;
1865
1865
  break;
1866
1866
  case 1:
1867
- c === "(" ? n = 2 : ba.test(c) ? p() : (d(), n = 0, c !== "*" && c !== "?" && c !== "+" && a--);
1867
+ d === "(" ? n = 2 : ba.test(d) ? p() : (u(), n = 0, d !== "*" && d !== "?" && d !== "+" && i--);
1868
1868
  break;
1869
1869
  case 2:
1870
- c === ")" ? u[u.length - 1] == "\\" ? u = u.slice(0, -1) + c : n = 3 : u += c;
1870
+ d === ")" ? c[c.length - 1] == "\\" ? c = c.slice(0, -1) + d : n = 3 : c += d;
1871
1871
  break;
1872
1872
  case 3:
1873
- d(), n = 0, c !== "*" && c !== "?" && c !== "+" && a--, u = "";
1873
+ u(), n = 0, d !== "*" && d !== "?" && d !== "+" && i--, c = "";
1874
1874
  break;
1875
1875
  default:
1876
1876
  t("Unknown state");
1877
1877
  break;
1878
1878
  }
1879
1879
  }
1880
- return n === 2 && t(`Unfinished custom RegExp for param "${l}"`), d(), i(), r;
1880
+ return n === 2 && t(`Unfinished custom RegExp for param "${l}"`), u(), a(), r;
1881
1881
  }
1882
1882
  function Ea(e, t, n) {
1883
1883
  const o = ga(_a(e.path), n);
1884
1884
  if (process.env.NODE_ENV !== "production") {
1885
1885
  const s = /* @__PURE__ */ new Set();
1886
- for (const i of o.keys)
1887
- s.has(i.name) && S(`Found duplicated params with name "${i.name}" for path "${e.path}". Only the last one will be available on "$route.params".`), s.add(i.name);
1886
+ for (const a of o.keys)
1887
+ s.has(a.name) && S(`Found duplicated params with name "${a.name}" for path "${e.path}". Only the last one will be available on "$route.params".`), s.add(a.name);
1888
1888
  }
1889
1889
  const r = R(o, {
1890
1890
  record: e,
@@ -1898,15 +1898,15 @@ function Ea(e, t, n) {
1898
1898
  function ka(e, t) {
1899
1899
  const n = [], o = /* @__PURE__ */ new Map();
1900
1900
  t = Jn({ strict: !1, end: !0, sensitive: !1 }, t);
1901
- function r(d) {
1902
- return o.get(d);
1901
+ function r(u) {
1902
+ return o.get(u);
1903
1903
  }
1904
- function s(d, p, f) {
1905
- const m = !f, v = Gn(d);
1904
+ function s(u, p, f) {
1905
+ const m = !f, v = Gn(u);
1906
1906
  process.env.NODE_ENV !== "production" && Sa(v, p), v.aliasOf = f && f.record;
1907
- const $ = Jn(t, d), x = [v];
1908
- if ("alias" in d) {
1909
- const U = typeof d.alias == "string" ? [d.alias] : d.alias;
1907
+ const _ = Jn(t, u), x = [v];
1908
+ if ("alias" in u) {
1909
+ const U = typeof u.alias == "string" ? [u.alias] : u.alias;
1910
1910
  for (const D of U)
1911
1911
  x.push(
1912
1912
  // we need to normalize again to ensure the `mods` property
@@ -1927,51 +1927,51 @@ function ka(e, t) {
1927
1927
  for (const U of x) {
1928
1928
  const { path: D } = U;
1929
1929
  if (p && D[0] !== "/") {
1930
- const B = p.record.path, k = B[B.length - 1] === "/" ? "" : "/";
1931
- U.path = p.record.path + (D && k + D);
1930
+ const B = p.record.path, $ = B[B.length - 1] === "/" ? "" : "/";
1931
+ U.path = p.record.path + (D && $ + D);
1932
1932
  }
1933
1933
  if (process.env.NODE_ENV !== "production" && U.path === "*")
1934
1934
  throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
1935
1935
  See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);
1936
- if (O = Ea(U, p, $), process.env.NODE_ENV !== "production" && p && D[0] === "/" && Na(O, p), f ? (f.alias.push(O), process.env.NODE_ENV !== "production" && xa(f, O)) : (P = P || O, P !== O && P.alias.push(O), m && d.name && !qn(O) && i(d.name)), Jo(O) && c(O), v.children) {
1936
+ if (O = Ea(U, p, _), process.env.NODE_ENV !== "production" && p && D[0] === "/" && Na(O, p), f ? (f.alias.push(O), process.env.NODE_ENV !== "production" && xa(f, O)) : (P = P || O, P !== O && P.alias.push(O), m && u.name && !qn(O) && a(u.name)), Jo(O) && d(O), v.children) {
1937
1937
  const B = v.children;
1938
- for (let k = 0; k < B.length; k++)
1939
- s(B[k], O, f && f.children[k]);
1938
+ for (let $ = 0; $ < B.length; $++)
1939
+ s(B[$], O, f && f.children[$]);
1940
1940
  }
1941
1941
  f = f || O;
1942
1942
  }
1943
1943
  return P ? () => {
1944
- i(P);
1944
+ a(P);
1945
1945
  } : Ke;
1946
1946
  }
1947
- function i(d) {
1948
- if (Go(d)) {
1949
- const p = o.get(d);
1950
- p && (o.delete(d), n.splice(n.indexOf(p), 1), p.children.forEach(i), p.alias.forEach(i));
1947
+ function a(u) {
1948
+ if (Go(u)) {
1949
+ const p = o.get(u);
1950
+ p && (o.delete(u), n.splice(n.indexOf(p), 1), p.children.forEach(a), p.alias.forEach(a));
1951
1951
  } else {
1952
- const p = n.indexOf(d);
1953
- p > -1 && (n.splice(p, 1), d.record.name && o.delete(d.record.name), d.children.forEach(i), d.alias.forEach(i));
1952
+ const p = n.indexOf(u);
1953
+ p > -1 && (n.splice(p, 1), u.record.name && o.delete(u.record.name), u.children.forEach(a), u.alias.forEach(a));
1954
1954
  }
1955
1955
  }
1956
- function a() {
1956
+ function i() {
1957
1957
  return n;
1958
1958
  }
1959
- function c(d) {
1960
- const p = Ia(d, n);
1961
- n.splice(p, 0, d), d.record.name && !qn(d) && o.set(d.record.name, d);
1959
+ function d(u) {
1960
+ const p = Ia(u, n);
1961
+ n.splice(p, 0, u), u.record.name && !qn(u) && o.set(u.record.name, u);
1962
1962
  }
1963
- function l(d, p) {
1964
- let f, m = {}, v, $;
1965
- if ("name" in d && d.name) {
1966
- if (f = o.get(d.name), !f)
1963
+ function l(u, p) {
1964
+ let f, m = {}, v, _;
1965
+ if ("name" in u && u.name) {
1966
+ if (f = o.get(u.name), !f)
1967
1967
  throw je(1, {
1968
- location: d
1968
+ location: u
1969
1969
  });
1970
1970
  if (process.env.NODE_ENV !== "production") {
1971
- const P = Object.keys(d.params || {}).filter((U) => !f.keys.find((D) => D.name === U));
1971
+ const P = Object.keys(u.params || {}).filter((U) => !f.keys.find((D) => D.name === U));
1972
1972
  P.length && S(`Discarded invalid param(s) "${P.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
1973
1973
  }
1974
- $ = f.record.name, m = R(
1974
+ _ = f.record.name, m = R(
1975
1975
  // paramsFromLocation is a new object
1976
1976
  zn(
1977
1977
  p.params,
@@ -1981,40 +1981,40 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
1981
1981
  ),
1982
1982
  // discard any existing params in the current location that do not exist here
1983
1983
  // #1497 this ensures better active/exact matching
1984
- d.params && zn(d.params, f.keys.map((P) => P.name))
1984
+ u.params && zn(u.params, f.keys.map((P) => P.name))
1985
1985
  ), v = f.stringify(m);
1986
- } else if (d.path != null)
1987
- v = d.path, process.env.NODE_ENV !== "production" && !v.startsWith("/") && S(`The Matcher cannot resolve relative paths but received "${v}". Unless you directly called \`matcher.resolve("${v}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), f = n.find((P) => P.re.test(v)), f && (m = f.parse(v), $ = f.record.name);
1986
+ } else if (u.path != null)
1987
+ v = u.path, process.env.NODE_ENV !== "production" && !v.startsWith("/") && S(`The Matcher cannot resolve relative paths but received "${v}". Unless you directly called \`matcher.resolve("${v}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), f = n.find((P) => P.re.test(v)), f && (m = f.parse(v), _ = f.record.name);
1988
1988
  else {
1989
1989
  if (f = p.name ? o.get(p.name) : n.find((P) => P.re.test(p.path)), !f)
1990
1990
  throw je(1, {
1991
- location: d,
1991
+ location: u,
1992
1992
  currentLocation: p
1993
1993
  });
1994
- $ = f.record.name, m = R({}, p.params, d.params), v = f.stringify(m);
1994
+ _ = f.record.name, m = R({}, p.params, u.params), v = f.stringify(m);
1995
1995
  }
1996
1996
  const x = [];
1997
1997
  let O = f;
1998
1998
  for (; O; )
1999
1999
  x.unshift(O.record), O = O.parent;
2000
2000
  return {
2001
- name: $,
2001
+ name: _,
2002
2002
  path: v,
2003
2003
  params: m,
2004
2004
  matched: x,
2005
2005
  meta: Oa(x)
2006
2006
  };
2007
2007
  }
2008
- e.forEach((d) => s(d));
2009
- function u() {
2008
+ e.forEach((u) => s(u));
2009
+ function c() {
2010
2010
  n.length = 0, o.clear();
2011
2011
  }
2012
2012
  return {
2013
2013
  addRoute: s,
2014
2014
  resolve: l,
2015
- removeRoute: i,
2016
- clearRoutes: u,
2017
- getRoutes: a,
2015
+ removeRoute: a,
2016
+ clearRoutes: c,
2017
+ getRoutes: i,
2018
2018
  getRecordMatcher: r
2019
2019
  };
2020
2020
  }
@@ -2115,12 +2115,12 @@ function Pa(e) {
2115
2115
  return t;
2116
2116
  const n = (e[0] === "?" ? e.slice(1) : e).split("&");
2117
2117
  for (let o = 0; o < n.length; ++o) {
2118
- const r = n[o].replace(Bo, " "), s = r.indexOf("="), i = Ve(s < 0 ? r : r.slice(0, s)), a = s < 0 ? null : Ve(r.slice(s + 1));
2119
- if (i in t) {
2120
- let c = t[i];
2121
- Y(c) || (c = t[i] = [c]), c.push(a);
2118
+ const r = n[o].replace(Bo, " "), s = r.indexOf("="), a = Ve(s < 0 ? r : r.slice(0, s)), i = s < 0 ? null : Ve(r.slice(s + 1));
2119
+ if (a in t) {
2120
+ let d = t[a];
2121
+ Y(d) || (d = t[a] = [d]), d.push(i);
2122
2122
  } else
2123
- t[i] = a;
2123
+ t[a] = i;
2124
2124
  }
2125
2125
  return t;
2126
2126
  }
@@ -2164,33 +2164,33 @@ function ze() {
2164
2164
  reset: n
2165
2165
  };
2166
2166
  }
2167
- function ve(e, t, n, o, r, s = (i) => i()) {
2168
- const i = o && // name is defined if record is because of the function overload
2167
+ function ve(e, t, n, o, r, s = (a) => a()) {
2168
+ const a = o && // name is defined if record is because of the function overload
2169
2169
  (o.enterCallbacks[r] = o.enterCallbacks[r] || []);
2170
- return () => new Promise((a, c) => {
2170
+ return () => new Promise((i, d) => {
2171
2171
  const l = (p) => {
2172
- p === !1 ? c(je(4, {
2172
+ p === !1 ? d(je(4, {
2173
2173
  from: n,
2174
2174
  to: t
2175
- })) : p instanceof Error ? c(p) : Ot(p) ? c(je(2, {
2175
+ })) : p instanceof Error ? d(p) : Ot(p) ? d(je(2, {
2176
2176
  from: t,
2177
2177
  to: p
2178
- })) : (i && // since enterCallbackArray is truthy, both record and name also are
2179
- o.enterCallbacks[r] === i && typeof p == "function" && i.push(p), a());
2180
- }, u = s(() => e.call(o && o.instances[r], t, n, process.env.NODE_ENV !== "production" ? Ta(l, t, n) : l));
2181
- let d = Promise.resolve(u);
2182
- if (e.length < 3 && (d = d.then(l)), process.env.NODE_ENV !== "production" && e.length > 2) {
2178
+ })) : (a && // since enterCallbackArray is truthy, both record and name also are
2179
+ o.enterCallbacks[r] === a && typeof p == "function" && a.push(p), i());
2180
+ }, c = s(() => e.call(o && o.instances[r], t, n, process.env.NODE_ENV !== "production" ? Ta(l, t, n) : l));
2181
+ let u = Promise.resolve(c);
2182
+ if (e.length < 3 && (u = u.then(l)), process.env.NODE_ENV !== "production" && e.length > 2) {
2183
2183
  const p = `The "next" callback was never called inside of ${e.name ? '"' + e.name + '"' : ""}:
2184
2184
  ${e.toString()}
2185
2185
  . If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;
2186
- if (typeof u == "object" && "then" in u)
2187
- d = d.then((f) => l._called ? f : (S(p), Promise.reject(new Error("Invalid navigation guard"))));
2188
- else if (u !== void 0 && !l._called) {
2189
- S(p), c(new Error("Invalid navigation guard"));
2186
+ if (typeof c == "object" && "then" in c)
2187
+ u = u.then((f) => l._called ? f : (S(p), Promise.reject(new Error("Invalid navigation guard"))));
2188
+ else if (c !== void 0 && !l._called) {
2189
+ S(p), d(new Error("Invalid navigation guard"));
2190
2190
  return;
2191
2191
  }
2192
2192
  }
2193
- d.catch((p) => c(p));
2193
+ u.catch((p) => d(p));
2194
2194
  });
2195
2195
  }
2196
2196
  function Ta(e, t, n) {
@@ -2201,33 +2201,33 @@ function Ta(e, t, n) {
2201
2201
  }
2202
2202
  function Bt(e, t, n, o, r = (s) => s()) {
2203
2203
  const s = [];
2204
- for (const i of e) {
2205
- process.env.NODE_ENV !== "production" && !i.components && !i.children.length && S(`Record with path "${i.path}" is either missing a "component(s)" or "children" property.`);
2206
- for (const a in i.components) {
2207
- let c = i.components[a];
2204
+ for (const a of e) {
2205
+ process.env.NODE_ENV !== "production" && !a.components && !a.children.length && S(`Record with path "${a.path}" is either missing a "component(s)" or "children" property.`);
2206
+ for (const i in a.components) {
2207
+ let d = a.components[i];
2208
2208
  if (process.env.NODE_ENV !== "production") {
2209
- if (!c || typeof c != "object" && typeof c != "function")
2210
- throw S(`Component "${a}" in record with path "${i.path}" is not a valid component. Received "${String(c)}".`), new Error("Invalid route component");
2211
- if ("then" in c) {
2212
- S(`Component "${a}" in record with path "${i.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);
2213
- const l = c;
2214
- c = () => l;
2215
- } else c.__asyncLoader && // warn only once per component
2216
- !c.__warnedDefineAsync && (c.__warnedDefineAsync = !0, S(`Component "${a}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
2209
+ if (!d || typeof d != "object" && typeof d != "function")
2210
+ throw S(`Component "${i}" in record with path "${a.path}" is not a valid component. Received "${String(d)}".`), new Error("Invalid route component");
2211
+ if ("then" in d) {
2212
+ S(`Component "${i}" in record with path "${a.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);
2213
+ const l = d;
2214
+ d = () => l;
2215
+ } else d.__asyncLoader && // warn only once per component
2216
+ !d.__warnedDefineAsync && (d.__warnedDefineAsync = !0, S(`Component "${i}" in record with path "${a.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
2217
2217
  }
2218
- if (!(t !== "beforeRouteEnter" && !i.instances[a]))
2219
- if (Lo(c)) {
2220
- const l = (c.__vccOpts || c)[t];
2221
- l && s.push(ve(l, n, o, i, a, r));
2218
+ if (!(t !== "beforeRouteEnter" && !a.instances[i]))
2219
+ if (Lo(d)) {
2220
+ const l = (d.__vccOpts || d)[t];
2221
+ l && s.push(ve(l, n, o, a, i, r));
2222
2222
  } else {
2223
- let l = c();
2224
- process.env.NODE_ENV !== "production" && !("catch" in l) && (S(`Component "${a}" in record with path "${i.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`), l = Promise.resolve(l)), s.push(() => l.then((u) => {
2225
- if (!u)
2226
- throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);
2227
- const d = Vs(u) ? u.default : u;
2228
- i.mods[a] = u, i.components[a] = d;
2229
- const p = (d.__vccOpts || d)[t];
2230
- return p && ve(p, n, o, i, a, r)();
2223
+ let l = d();
2224
+ process.env.NODE_ENV !== "production" && !("catch" in l) && (S(`Component "${i}" in record with path "${a.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`), l = Promise.resolve(l)), s.push(() => l.then((c) => {
2225
+ if (!c)
2226
+ throw new Error(`Couldn't resolve component "${i}" at "${a.path}"`);
2227
+ const u = Vs(c) ? c.default : c;
2228
+ a.mods[i] = c, a.components[i] = u;
2229
+ const p = (u.__vccOpts || u)[t];
2230
+ return p && ve(p, n, o, a, i, r)();
2231
2231
  }));
2232
2232
  }
2233
2233
  }
@@ -2238,55 +2238,55 @@ function Qn(e) {
2238
2238
  const t = ae(fn), n = ae(Ko);
2239
2239
  let o = !1, r = null;
2240
2240
  const s = j(() => {
2241
- const u = E(e.to);
2242
- return process.env.NODE_ENV !== "production" && (!o || u !== r) && (Ot(u) || (o ? S(`Invalid value for prop "to" in useLink()
2243
- - to:`, u, `
2241
+ const c = k(e.to);
2242
+ return process.env.NODE_ENV !== "production" && (!o || c !== r) && (Ot(c) || (o ? S(`Invalid value for prop "to" in useLink()
2243
+ - to:`, c, `
2244
2244
  - previous to:`, r, `
2245
2245
  - props:`, e) : S(`Invalid value for prop "to" in useLink()
2246
- - to:`, u, `
2247
- - props:`, e)), r = u, o = !0), t.resolve(u);
2248
- }), i = j(() => {
2249
- const { matched: u } = s.value, { length: d } = u, p = u[d - 1], f = n.matched;
2246
+ - to:`, c, `
2247
+ - props:`, e)), r = c, o = !0), t.resolve(c);
2248
+ }), a = j(() => {
2249
+ const { matched: c } = s.value, { length: u } = c, p = c[u - 1], f = n.matched;
2250
2250
  if (!p || !f.length)
2251
2251
  return -1;
2252
2252
  const m = f.findIndex(we.bind(null, p));
2253
2253
  if (m > -1)
2254
2254
  return m;
2255
- const v = Xn(u[d - 2]);
2255
+ const v = Xn(c[u - 2]);
2256
2256
  return (
2257
2257
  // we are dealing with nested routes
2258
- d > 1 && // if the parent and matched route have the same path, this link is
2258
+ u > 1 && // if the parent and matched route have the same path, this link is
2259
2259
  // referring to the empty child. Or we currently are on a different
2260
2260
  // child of the same parent
2261
2261
  Xn(p) === v && // avoid comparing the child with its parent
2262
- f[f.length - 1].path !== v ? f.findIndex(we.bind(null, u[d - 2])) : m
2262
+ f[f.length - 1].path !== v ? f.findIndex(we.bind(null, c[u - 2])) : m
2263
2263
  );
2264
- }), a = j(() => i.value > -1 && La(n.params, s.value.params)), c = j(() => i.value > -1 && i.value === n.matched.length - 1 && Fo(n.params, s.value.params));
2265
- function l(u = {}) {
2266
- return ja(u) ? t[E(e.replace) ? "replace" : "push"](
2267
- E(e.to)
2264
+ }), i = j(() => a.value > -1 && La(n.params, s.value.params)), d = j(() => a.value > -1 && a.value === n.matched.length - 1 && Fo(n.params, s.value.params));
2265
+ function l(c = {}) {
2266
+ return ja(c) ? t[k(e.replace) ? "replace" : "push"](
2267
+ k(e.to)
2268
2268
  // avoid uncaught errors are they are logged anyway
2269
2269
  ).catch(Ke) : Promise.resolve();
2270
2270
  }
2271
2271
  if (process.env.NODE_ENV !== "production" && ce) {
2272
- const u = We();
2273
- if (u) {
2274
- const d = {
2272
+ const c = We();
2273
+ if (c) {
2274
+ const u = {
2275
2275
  route: s.value,
2276
- isActive: a.value,
2277
- isExactActive: c.value,
2276
+ isActive: i.value,
2277
+ isExactActive: d.value,
2278
2278
  error: null
2279
2279
  };
2280
- u.__vrl_devtools = u.__vrl_devtools || [], u.__vrl_devtools.push(d), Dr(() => {
2281
- d.route = s.value, d.isActive = a.value, d.isExactActive = c.value, d.error = Ot(E(e.to)) ? null : 'Invalid "to" value';
2280
+ c.__vrl_devtools = c.__vrl_devtools || [], c.__vrl_devtools.push(u), Dr(() => {
2281
+ u.route = s.value, u.isActive = i.value, u.isExactActive = d.value, u.error = Ot(k(e.to)) ? null : 'Invalid "to" value';
2282
2282
  }, { flush: "post" });
2283
2283
  }
2284
2284
  }
2285
2285
  return {
2286
2286
  route: s,
2287
2287
  href: j(() => s.value.href),
2288
- isActive: a,
2289
- isExactActive: c,
2288
+ isActive: i,
2289
+ isExactActive: d,
2290
2290
  navigate: l
2291
2291
  };
2292
2292
  }
@@ -2348,7 +2348,7 @@ function La(e, t) {
2348
2348
  if (typeof o == "string") {
2349
2349
  if (o !== r)
2350
2350
  return !1;
2351
- } else if (!Y(r) || r.length !== o.length || o.some((s, i) => s !== r[i]))
2351
+ } else if (!Y(r) || r.length !== o.length || o.some((s, a) => s !== r[a]))
2352
2352
  return !1;
2353
2353
  }
2354
2354
  return !0;
@@ -2372,39 +2372,39 @@ const Zn = (e, t, n) => e ?? t ?? n, Ma = /* @__PURE__ */ Z({
2372
2372
  compatConfig: { MODE: 3 },
2373
2373
  setup(e, { attrs: t, slots: n }) {
2374
2374
  process.env.NODE_ENV !== "production" && Wa();
2375
- const o = ae(en), r = j(() => e.route || o.value), s = ae(Yn, 0), i = j(() => {
2376
- let l = E(s);
2377
- const { matched: u } = r.value;
2378
- let d;
2379
- for (; (d = u[l]) && !d.components; )
2375
+ const o = ae(en), r = j(() => e.route || o.value), s = ae(Yn, 0), a = j(() => {
2376
+ let l = k(s);
2377
+ const { matched: c } = r.value;
2378
+ let u;
2379
+ for (; (u = c[l]) && !u.components; )
2380
2380
  l++;
2381
2381
  return l;
2382
- }), a = j(() => r.value.matched[i.value]);
2383
- ft(Yn, j(() => i.value + 1)), ft(Aa, a), ft(en, r);
2384
- const c = C();
2385
- return z(() => [c.value, a.value, e.name], ([l, u, d], [p, f, m]) => {
2386
- u && (u.instances[d] = l, f && f !== u && l && l === p && (u.leaveGuards.size || (u.leaveGuards = f.leaveGuards), u.updateGuards.size || (u.updateGuards = f.updateGuards))), l && u && // if there is no instance but to and from are the same this might be
2382
+ }), i = j(() => r.value.matched[a.value]);
2383
+ ft(Yn, j(() => a.value + 1)), ft(Aa, i), ft(en, r);
2384
+ const d = C();
2385
+ return z(() => [d.value, i.value, e.name], ([l, c, u], [p, f, m]) => {
2386
+ c && (c.instances[u] = l, f && f !== c && l && l === p && (c.leaveGuards.size || (c.leaveGuards = f.leaveGuards), c.updateGuards.size || (c.updateGuards = f.updateGuards))), l && c && // if there is no instance but to and from are the same this might be
2387
2387
  // the first visit
2388
- (!f || !we(u, f) || !p) && (u.enterCallbacks[d] || []).forEach((v) => v(l));
2388
+ (!f || !we(c, f) || !p) && (c.enterCallbacks[u] || []).forEach((v) => v(l));
2389
2389
  }, { flush: "post" }), () => {
2390
- const l = r.value, u = e.name, d = a.value, p = d && d.components[u];
2390
+ const l = r.value, c = e.name, u = i.value, p = u && u.components[c];
2391
2391
  if (!p)
2392
2392
  return eo(n.default, { Component: p, route: l });
2393
- const f = d.props[u], m = f ? f === !0 ? l.params : typeof f == "function" ? f(l) : f : null, v = _o(p, R({}, m, t, {
2394
- onVnodeUnmounted: ($) => {
2395
- $.component.isUnmounted && (d.instances[u] = null);
2393
+ const f = u.props[c], m = f ? f === !0 ? l.params : typeof f == "function" ? f(l) : f : null, v = _o(p, R({}, m, t, {
2394
+ onVnodeUnmounted: (_) => {
2395
+ _.component.isUnmounted && (u.instances[c] = null);
2396
2396
  },
2397
- ref: c
2397
+ ref: d
2398
2398
  }));
2399
2399
  if (process.env.NODE_ENV !== "production" && ce && v.ref) {
2400
- const $ = {
2401
- depth: i.value,
2402
- name: d.name,
2403
- path: d.path,
2404
- meta: d.meta
2400
+ const _ = {
2401
+ depth: a.value,
2402
+ name: u.name,
2403
+ path: u.path,
2404
+ meta: u.meta
2405
2405
  };
2406
2406
  (Y(v.ref) ? v.ref.map((x) => x.i) : [v.ref.i]).forEach((x) => {
2407
- x.__vrv_devtools = $;
2407
+ x.__vrv_devtools = _;
2408
2408
  });
2409
2409
  }
2410
2410
  return (
@@ -2473,73 +2473,73 @@ function Ha(e, t, n) {
2473
2473
  componentStateTypes: ["Routing"],
2474
2474
  app: e
2475
2475
  }, (r) => {
2476
- typeof r.now != "function" && console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), r.on.inspectComponent((u, d) => {
2477
- u.instanceData && u.instanceData.state.push({
2476
+ typeof r.now != "function" && console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), r.on.inspectComponent((c, u) => {
2477
+ c.instanceData && c.instanceData.state.push({
2478
2478
  type: "Routing",
2479
2479
  key: "$route",
2480
2480
  editable: !1,
2481
2481
  value: Ge(t.currentRoute.value, "Current Route")
2482
2482
  });
2483
- }), r.on.visitComponentTree(({ treeNode: u, componentInstance: d }) => {
2484
- if (d.__vrv_devtools) {
2485
- const p = d.__vrv_devtools;
2486
- u.tags.push({
2483
+ }), r.on.visitComponentTree(({ treeNode: c, componentInstance: u }) => {
2484
+ if (u.__vrv_devtools) {
2485
+ const p = u.__vrv_devtools;
2486
+ c.tags.push({
2487
2487
  label: (p.name ? `${p.name.toString()}: ` : "") + p.path,
2488
2488
  textColor: 0,
2489
2489
  tooltip: "This component is rendered by &lt;router-view&gt;",
2490
2490
  backgroundColor: Yo
2491
2491
  });
2492
2492
  }
2493
- Y(d.__vrl_devtools) && (d.__devtoolsApi = r, d.__vrl_devtools.forEach((p) => {
2494
- let f = p.route.path, m = Zo, v = "", $ = 0;
2495
- p.error ? (f = p.error, m = Ja, $ = Ka) : p.isExactActive ? (m = Xo, v = "This is exactly active") : p.isActive && (m = Qo, v = "This link is active"), u.tags.push({
2493
+ Y(u.__vrl_devtools) && (u.__devtoolsApi = r, u.__vrl_devtools.forEach((p) => {
2494
+ let f = p.route.path, m = Zo, v = "", _ = 0;
2495
+ p.error ? (f = p.error, m = Ja, _ = Ka) : p.isExactActive ? (m = Xo, v = "This is exactly active") : p.isActive && (m = Qo, v = "This link is active"), c.tags.push({
2496
2496
  label: f,
2497
- textColor: $,
2497
+ textColor: _,
2498
2498
  tooltip: v,
2499
2499
  backgroundColor: m
2500
2500
  });
2501
2501
  }));
2502
2502
  }), z(t.currentRoute, () => {
2503
- c(), r.notifyComponentUpdate(), r.sendInspectorTree(a), r.sendInspectorState(a);
2503
+ d(), r.notifyComponentUpdate(), r.sendInspectorTree(i), r.sendInspectorState(i);
2504
2504
  });
2505
2505
  const s = "router:navigations:" + o;
2506
2506
  r.addTimelineLayer({
2507
2507
  id: s,
2508
2508
  label: `Router${o ? " " + o : ""} Navigations`,
2509
2509
  color: 4237508
2510
- }), t.onError((u, d) => {
2510
+ }), t.onError((c, u) => {
2511
2511
  r.addTimelineEvent({
2512
2512
  layerId: s,
2513
2513
  event: {
2514
2514
  title: "Error during Navigation",
2515
- subtitle: d.fullPath,
2515
+ subtitle: u.fullPath,
2516
2516
  logType: "error",
2517
2517
  time: r.now(),
2518
- data: { error: u },
2519
- groupId: d.meta.__navigationId
2518
+ data: { error: c },
2519
+ groupId: u.meta.__navigationId
2520
2520
  }
2521
2521
  });
2522
2522
  });
2523
- let i = 0;
2524
- t.beforeEach((u, d) => {
2523
+ let a = 0;
2524
+ t.beforeEach((c, u) => {
2525
2525
  const p = {
2526
2526
  guard: dt("beforeEach"),
2527
- from: Ge(d, "Current Location during this navigation"),
2528
- to: Ge(u, "Target location")
2527
+ from: Ge(u, "Current Location during this navigation"),
2528
+ to: Ge(c, "Target location")
2529
2529
  };
2530
- Object.defineProperty(u.meta, "__navigationId", {
2531
- value: i++
2530
+ Object.defineProperty(c.meta, "__navigationId", {
2531
+ value: a++
2532
2532
  }), r.addTimelineEvent({
2533
2533
  layerId: s,
2534
2534
  event: {
2535
2535
  time: r.now(),
2536
2536
  title: "Start of navigation",
2537
- subtitle: u.fullPath,
2537
+ subtitle: c.fullPath,
2538
2538
  data: p,
2539
- groupId: u.meta.__navigationId
2539
+ groupId: c.meta.__navigationId
2540
2540
  }
2541
2541
  });
2542
- }), t.afterEach((u, d, p) => {
2542
+ }), t.afterEach((c, u, p) => {
2543
2543
  const f = {
2544
2544
  guard: dt("afterEach")
2545
2545
  };
@@ -2551,48 +2551,48 @@ function Ha(e, t, n) {
2551
2551
  tooltip: "Navigation Failure",
2552
2552
  value: p
2553
2553
  }
2554
- }, f.status = dt("❌")) : f.status = dt("✅"), f.from = Ge(d, "Current Location during this navigation"), f.to = Ge(u, "Target location"), r.addTimelineEvent({
2554
+ }, f.status = dt("❌")) : f.status = dt("✅"), f.from = Ge(u, "Current Location during this navigation"), f.to = Ge(c, "Target location"), r.addTimelineEvent({
2555
2555
  layerId: s,
2556
2556
  event: {
2557
2557
  title: "End of navigation",
2558
- subtitle: u.fullPath,
2558
+ subtitle: c.fullPath,
2559
2559
  time: r.now(),
2560
2560
  data: f,
2561
2561
  logType: p ? "warning" : "default",
2562
- groupId: u.meta.__navigationId
2562
+ groupId: c.meta.__navigationId
2563
2563
  }
2564
2564
  });
2565
2565
  });
2566
- const a = "router-inspector:" + o;
2566
+ const i = "router-inspector:" + o;
2567
2567
  r.addInspector({
2568
- id: a,
2568
+ id: i,
2569
2569
  label: "Routes" + (o ? " " + o : ""),
2570
2570
  icon: "book",
2571
2571
  treeFilterPlaceholder: "Search routes"
2572
2572
  });
2573
- function c() {
2573
+ function d() {
2574
2574
  if (!l)
2575
2575
  return;
2576
- const u = l;
2577
- let d = n.getRoutes().filter((p) => !p.parent || // these routes have a parent with no component which will not appear in the view
2576
+ const c = l;
2577
+ let u = n.getRoutes().filter((p) => !p.parent || // these routes have a parent with no component which will not appear in the view
2578
2578
  // therefore we still need to include them
2579
2579
  !p.parent.record.components);
2580
- d.forEach(nr), u.filter && (d = d.filter((p) => (
2580
+ u.forEach(nr), c.filter && (u = u.filter((p) => (
2581
2581
  // save matches state based on the payload
2582
- tn(p, u.filter.toLowerCase())
2583
- ))), d.forEach((p) => tr(p, t.currentRoute.value)), u.rootNodes = d.map(er);
2582
+ tn(p, c.filter.toLowerCase())
2583
+ ))), u.forEach((p) => tr(p, t.currentRoute.value)), c.rootNodes = u.map(er);
2584
2584
  }
2585
2585
  let l;
2586
- r.on.getInspectorTree((u) => {
2587
- l = u, u.app === e && u.inspectorId === a && c();
2588
- }), r.on.getInspectorState((u) => {
2589
- if (u.app === e && u.inspectorId === a) {
2590
- const d = n.getRoutes().find((p) => p.record.__vd_id === u.nodeId);
2591
- d && (u.state = {
2592
- options: za(d)
2586
+ r.on.getInspectorTree((c) => {
2587
+ l = c, c.app === e && c.inspectorId === i && d();
2588
+ }), r.on.getInspectorState((c) => {
2589
+ if (c.app === e && c.inspectorId === i) {
2590
+ const u = n.getRoutes().find((p) => p.record.__vd_id === c.nodeId);
2591
+ u && (c.state = {
2592
+ options: za(u)
2593
2593
  });
2594
2594
  }
2595
- }), r.sendInspectorTree(a), r.sendInspectorState(a);
2595
+ }), r.sendInspectorTree(i), r.sendInspectorState(i);
2596
2596
  });
2597
2597
  }
2598
2598
  function Fa(e) {
@@ -2708,16 +2708,16 @@ function Za(e) {
2708
2708
  const t = ka(e.routes, e), n = e.parseQuery || Pa, o = e.stringifyQuery || Kn, r = e.history;
2709
2709
  if (process.env.NODE_ENV !== "production" && !r)
2710
2710
  throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');
2711
- const s = ze(), i = ze(), a = ze(), c = Ir(me);
2711
+ const s = ze(), a = ze(), i = ze(), d = Ir(me);
2712
2712
  let l = me;
2713
2713
  ce && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
2714
- const u = Lt.bind(null, (h) => "" + h), d = Lt.bind(null, Ks), p = (
2714
+ const c = Lt.bind(null, (h) => "" + h), u = Lt.bind(null, Ks), p = (
2715
2715
  // @ts-expect-error: intentionally avoid the type check
2716
2716
  Lt.bind(null, Ve)
2717
2717
  );
2718
2718
  function f(h, y) {
2719
- let g, _;
2720
- return Go(h) ? (g = t.getRecordMatcher(h), process.env.NODE_ENV !== "production" && !g && S(`Parent route "${String(h)}" not found when adding child route`, y), _ = y) : _ = h, t.addRoute(_, g);
2719
+ let g, E;
2720
+ return Go(h) ? (g = t.getRecordMatcher(h), process.env.NODE_ENV !== "production" && !g && S(`Parent route "${String(h)}" not found when adding child route`, y), E = y) : E = h, t.addRoute(E, g);
2721
2721
  }
2722
2722
  function m(h) {
2723
2723
  const y = t.getRecordMatcher(h);
@@ -2726,11 +2726,11 @@ function Za(e) {
2726
2726
  function v() {
2727
2727
  return t.getRoutes().map((h) => h.record);
2728
2728
  }
2729
- function $(h) {
2729
+ function _(h) {
2730
2730
  return !!t.getRecordMatcher(h);
2731
2731
  }
2732
2732
  function x(h, y) {
2733
- if (y = R({}, y || c.value), typeof h == "string") {
2733
+ if (y = R({}, y || d.value), typeof h == "string") {
2734
2734
  const N = Mt(n, h, y.path), W = t.resolve({ path: N.path }, y), be = r.createHref(N.fullPath);
2735
2735
  return process.env.NODE_ENV !== "production" && (be.startsWith("//") ? S(`Location "${h}" resolved to "${be}". A resolved location cannot start with multiple slashes.`) : W.matched.length || S(`No match found for location with path "${h}"`)), R(N, W, {
2736
2736
  params: p(W.params),
@@ -2753,16 +2753,16 @@ function Za(e) {
2753
2753
  for (const W in N)
2754
2754
  N[W] == null && delete N[W];
2755
2755
  g = R({}, h, {
2756
- params: d(N)
2757
- }), y.params = d(y.params);
2756
+ params: u(N)
2757
+ }), y.params = u(y.params);
2758
2758
  }
2759
- const _ = t.resolve(g, y), T = h.hash || "";
2760
- process.env.NODE_ENV !== "production" && T && !T.startsWith("#") && S(`A \`hash\` should always start with the character "#". Replace "${T}" with "#${T}".`), _.params = u(p(_.params));
2759
+ const E = t.resolve(g, y), T = h.hash || "";
2760
+ process.env.NODE_ENV !== "production" && T && !T.startsWith("#") && S(`A \`hash\` should always start with the character "#". Replace "${T}" with "#${T}".`), E.params = c(p(E.params));
2761
2761
  const H = Xs(o, R({}, h, {
2762
2762
  hash: Gs(T),
2763
- path: _.path
2763
+ path: E.path
2764
2764
  })), A = r.createHref(H);
2765
- return process.env.NODE_ENV !== "production" && (A.startsWith("//") ? S(`Location "${h}" resolved to "${A}". A resolved location cannot start with multiple slashes.`) : _.matched.length || S(`No match found for location with path "${h.path != null ? h.path : h}"`)), R({
2765
+ return process.env.NODE_ENV !== "production" && (A.startsWith("//") ? S(`Location "${h}" resolved to "${A}". A resolved location cannot start with multiple slashes.`) : E.matched.length || S(`No match found for location with path "${h.path != null ? h.path : h}"`)), R({
2766
2766
  fullPath: H,
2767
2767
  // keep the hash encoded so fullPath is effectively path + encodedQuery +
2768
2768
  // hash
@@ -2775,13 +2775,13 @@ function Za(e) {
2775
2775
  // https://github.com/vuejs/router/issues/328#issuecomment-649481567
2776
2776
  o === Kn ? Da(h.query) : h.query || {}
2777
2777
  )
2778
- }, _, {
2778
+ }, E, {
2779
2779
  redirectedFrom: void 0,
2780
2780
  href: A
2781
2781
  });
2782
2782
  }
2783
2783
  function O(h) {
2784
- return typeof h == "string" ? Mt(n, h, c.value.path) : R({}, h);
2784
+ return typeof h == "string" ? Mt(n, h, d.value.path) : R({}, h);
2785
2785
  }
2786
2786
  function P(h, y) {
2787
2787
  if (l !== h)
@@ -2791,7 +2791,7 @@ function Za(e) {
2791
2791
  });
2792
2792
  }
2793
2793
  function U(h) {
2794
- return k(h);
2794
+ return $(h);
2795
2795
  }
2796
2796
  function D(h) {
2797
2797
  return U(R(O(h), { replace: !0 }));
@@ -2800,26 +2800,26 @@ function Za(e) {
2800
2800
  const y = h.matched[h.matched.length - 1];
2801
2801
  if (y && y.redirect) {
2802
2802
  const { redirect: g } = y;
2803
- let _ = typeof g == "function" ? g(h) : g;
2804
- if (typeof _ == "string" && (_ = _.includes("?") || _.includes("#") ? _ = O(_) : (
2803
+ let E = typeof g == "function" ? g(h) : g;
2804
+ if (typeof E == "string" && (E = E.includes("?") || E.includes("#") ? E = O(E) : (
2805
2805
  // force empty params
2806
- { path: _ }
2807
- ), _.params = {}), process.env.NODE_ENV !== "production" && _.path == null && !("name" in _))
2806
+ { path: E }
2807
+ ), E.params = {}), process.env.NODE_ENV !== "production" && E.path == null && !("name" in E))
2808
2808
  throw S(`Invalid redirect found:
2809
- ${JSON.stringify(_, null, 2)}
2809
+ ${JSON.stringify(E, null, 2)}
2810
2810
  when navigating to "${h.fullPath}". A redirect must contain a name or path. This will break in production.`), new Error("Invalid redirect");
2811
2811
  return R({
2812
2812
  query: h.query,
2813
2813
  hash: h.hash,
2814
2814
  // avoid transferring params if the redirect has a path
2815
- params: _.path != null ? {} : h.params
2816
- }, _);
2815
+ params: E.path != null ? {} : h.params
2816
+ }, E);
2817
2817
  }
2818
2818
  }
2819
- function k(h, y) {
2820
- const g = l = x(h), _ = c.value, T = h.state, H = h.force, A = h.replace === !0, N = B(g);
2819
+ function $(h, y) {
2820
+ const g = l = x(h), E = d.value, T = h.state, H = h.force, A = h.replace === !0, N = B(g);
2821
2821
  if (N)
2822
- return k(
2822
+ return $(
2823
2823
  R(O(N), {
2824
2824
  state: typeof N == "object" ? R({}, T, N.state) : T,
2825
2825
  force: H,
@@ -2831,16 +2831,16 @@ ${JSON.stringify(_, null, 2)}
2831
2831
  const W = g;
2832
2832
  W.redirectedFrom = y;
2833
2833
  let be;
2834
- return !H && Ln(o, _, g) && (be = je(16, { to: W, from: _ }), In(
2835
- _,
2836
- _,
2834
+ return !H && Ln(o, E, g) && (be = je(16, { to: W, from: E }), In(
2835
+ E,
2836
+ E,
2837
2837
  // this is a push, the only way for it to be triggered from a
2838
2838
  // history.listen is with a redirect, which makes it become a push
2839
2839
  !0,
2840
2840
  // This cannot be the first navigation because the initial location
2841
2841
  // cannot be manually navigated to
2842
2842
  !1
2843
- )), (be ? Promise.resolve(be) : w(W, _)).catch((J) => le(J) ? (
2843
+ )), (be ? Promise.resolve(be) : w(W, E)).catch((J) => le(J) ? (
2844
2844
  // navigation redirects still mark the router as ready
2845
2845
  le(
2846
2846
  J,
@@ -2849,7 +2849,7 @@ ${JSON.stringify(_, null, 2)}
2849
2849
  ) ? J : At(J)
2850
2850
  ) : (
2851
2851
  // reject any unknown error
2852
- G(J, W, _)
2852
+ G(J, W, E)
2853
2853
  )).then((J) => {
2854
2854
  if (J) {
2855
2855
  if (le(
@@ -2863,8 +2863,8 @@ ${JSON.stringify(_, null, 2)}
2863
2863
  (y._count = y._count ? (
2864
2864
  // @ts-expect-error
2865
2865
  y._count + 1
2866
- ) : 1) > 30 ? (S(`Detected a possibly infinite redirection in a navigation guard when going from "${_.fullPath}" to "${W.fullPath}". Aborting to avoid a Stack Overflow.
2867
- Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`), Promise.reject(new Error("Infinite redirect in navigation guard"))) : k(
2866
+ ) : 1) > 30 ? (S(`Detected a possibly infinite redirection in a navigation guard when going from "${E.fullPath}" to "${W.fullPath}". Aborting to avoid a Stack Overflow.
2867
+ Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`), Promise.reject(new Error("Infinite redirect in navigation guard"))) : $(
2868
2868
  // keep options
2869
2869
  R({
2870
2870
  // preserve an existing replacement but allow the redirect to override it
@@ -2877,8 +2877,8 @@ ${JSON.stringify(_, null, 2)}
2877
2877
  y || W
2878
2878
  );
2879
2879
  } else
2880
- J = K(W, _, !0, A, T);
2881
- return L(W, _, J), J;
2880
+ J = K(W, E, !0, A, T);
2881
+ return L(W, E, J), J;
2882
2882
  });
2883
2883
  }
2884
2884
  function ne(h, y) {
@@ -2891,9 +2891,9 @@ ${JSON.stringify(_, null, 2)}
2891
2891
  }
2892
2892
  function w(h, y) {
2893
2893
  let g;
2894
- const [_, T, H] = ei(h, y);
2895
- g = Bt(_.reverse(), "beforeRouteLeave", h, y);
2896
- for (const N of _)
2894
+ const [E, T, H] = ei(h, y);
2895
+ g = Bt(E.reverse(), "beforeRouteLeave", h, y);
2896
+ for (const N of E)
2897
2897
  N.leaveGuards.forEach((W) => {
2898
2898
  g.push(ve(W, h, y));
2899
2899
  });
@@ -2922,7 +2922,7 @@ ${JSON.stringify(_, null, 2)}
2922
2922
  return g.push(A), Pe(g);
2923
2923
  }).then(() => (h.matched.forEach((N) => N.enterCallbacks = {}), g = Bt(H, "beforeRouteEnter", h, y, b), g.push(A), Pe(g))).then(() => {
2924
2924
  g = [];
2925
- for (const N of i.list())
2925
+ for (const N of a.list())
2926
2926
  g.push(ve(N, h, y));
2927
2927
  return g.push(A), Pe(g);
2928
2928
  }).catch((N) => le(
@@ -2932,28 +2932,28 @@ ${JSON.stringify(_, null, 2)}
2932
2932
  ) ? N : Promise.reject(N));
2933
2933
  }
2934
2934
  function L(h, y, g) {
2935
- a.list().forEach((_) => b(() => _(h, y, g)));
2935
+ i.list().forEach((E) => b(() => E(h, y, g)));
2936
2936
  }
2937
- function K(h, y, g, _, T) {
2937
+ function K(h, y, g, E, T) {
2938
2938
  const H = P(h, y);
2939
2939
  if (H)
2940
2940
  return H;
2941
2941
  const A = y === me, N = ce ? history.state : {};
2942
- g && (_ || A ? r.replace(h.fullPath, R({
2942
+ g && (E || A ? r.replace(h.fullPath, R({
2943
2943
  scroll: A && N && N.scroll
2944
- }, T)) : r.push(h.fullPath, T)), c.value = h, In(h, y, g, A), At();
2944
+ }, T)) : r.push(h.fullPath, T)), d.value = h, In(h, y, g, A), At();
2945
2945
  }
2946
2946
  let ee;
2947
2947
  function Ue() {
2948
2948
  ee || (ee = r.listen((h, y, g) => {
2949
- const _ = x(h), T = B(_);
2949
+ const E = x(h), T = B(E);
2950
2950
  if (T) {
2951
- k(R(T, { replace: !0 }), _).catch(Ke);
2951
+ $(R(T, { replace: !0 }), E).catch(Ke);
2952
2952
  return;
2953
2953
  }
2954
- l = _;
2955
- const H = c.value;
2956
- ce && aa(Bn(H.fullPath, g.delta), It()), w(_, H).catch((A) => le(
2954
+ l = E;
2955
+ const H = d.value;
2956
+ ce && aa(Bn(H.fullPath, g.delta), It()), w(E, H).catch((A) => le(
2957
2957
  A,
2958
2958
  12
2959
2959
  /* ErrorTypes.NAVIGATION_CANCELLED */
@@ -2961,9 +2961,9 @@ ${JSON.stringify(_, null, 2)}
2961
2961
  A,
2962
2962
  2
2963
2963
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
2964
- ) ? (k(
2964
+ ) ? ($(
2965
2965
  A.to,
2966
- _
2966
+ E
2967
2967
  // avoid an uncaught rejection, let push call triggerError
2968
2968
  ).then((N) => {
2969
2969
  le(
@@ -2971,10 +2971,10 @@ ${JSON.stringify(_, null, 2)}
2971
2971
  20
2972
2972
  /* ErrorTypes.NAVIGATION_DUPLICATED */
2973
2973
  ) && !g.delta && g.type === ot.pop && r.go(-1, !1);
2974
- }).catch(Ke), Promise.reject()) : (g.delta && r.go(-g.delta, !1), G(A, _, H))).then((A) => {
2974
+ }).catch(Ke), Promise.reject()) : (g.delta && r.go(-g.delta, !1), G(A, E, H))).then((A) => {
2975
2975
  A = A || K(
2976
2976
  // after navigation, all matched components are resolved
2977
- _,
2977
+ E,
2978
2978
  H,
2979
2979
  !1
2980
2980
  ), A && (g.delta && // a new navigation has been triggered, so we do not want to revert, that will change the current history
@@ -2987,40 +2987,40 @@ ${JSON.stringify(_, null, 2)}
2987
2987
  A,
2988
2988
  20
2989
2989
  /* ErrorTypes.NAVIGATION_DUPLICATED */
2990
- ) && r.go(-1, !1)), L(_, H, A);
2990
+ ) && r.go(-1, !1)), L(E, H, A);
2991
2991
  }).catch(Ke);
2992
2992
  }));
2993
2993
  }
2994
2994
  let He = ze(), it = ze(), oe;
2995
2995
  function G(h, y, g) {
2996
2996
  At(h);
2997
- const _ = it.list();
2998
- return _.length ? _.forEach((T) => T(h, y, g)) : (process.env.NODE_ENV !== "production" && S("uncaught error during route navigation:"), console.error(h)), Promise.reject(h);
2997
+ const E = it.list();
2998
+ return E.length ? E.forEach((T) => T(h, y, g)) : (process.env.NODE_ENV !== "production" && S("uncaught error during route navigation:"), console.error(h)), Promise.reject(h);
2999
2999
  }
3000
3000
  function xr() {
3001
- return oe && c.value !== me ? Promise.resolve() : new Promise((h, y) => {
3001
+ return oe && d.value !== me ? Promise.resolve() : new Promise((h, y) => {
3002
3002
  He.add([h, y]);
3003
3003
  });
3004
3004
  }
3005
3005
  function At(h) {
3006
3006
  return oe || (oe = !h, Ue(), He.list().forEach(([y, g]) => h ? g(h) : y()), He.reset()), h;
3007
3007
  }
3008
- function In(h, y, g, _) {
3008
+ function In(h, y, g, E) {
3009
3009
  const { scrollBehavior: T } = e;
3010
3010
  if (!ce || !T)
3011
3011
  return Promise.resolve();
3012
- const H = !g && ia(Bn(h.fullPath, 0)) || (_ || !g) && history.state && history.state.scroll || null;
3012
+ const H = !g && ia(Bn(h.fullPath, 0)) || (E || !g) && history.state && history.state.scroll || null;
3013
3013
  return Re().then(() => T(h, y, H)).then((A) => A && sa(A)).catch((A) => G(A, h, y));
3014
3014
  }
3015
3015
  const Tt = (h) => r.go(h);
3016
3016
  let Rt;
3017
3017
  const lt = /* @__PURE__ */ new Set(), Sr = {
3018
- currentRoute: c,
3018
+ currentRoute: d,
3019
3019
  listening: !0,
3020
3020
  addRoute: f,
3021
3021
  removeRoute: m,
3022
3022
  clearRoutes: t.clearRoutes,
3023
- hasRoute: $,
3023
+ hasRoute: _,
3024
3024
  getRoutes: v,
3025
3025
  resolve: x,
3026
3026
  options: e,
@@ -3030,30 +3030,30 @@ ${JSON.stringify(_, null, 2)}
3030
3030
  back: () => Tt(-1),
3031
3031
  forward: () => Tt(1),
3032
3032
  beforeEach: s.add,
3033
- beforeResolve: i.add,
3034
- afterEach: a.add,
3033
+ beforeResolve: a.add,
3034
+ afterEach: i.add,
3035
3035
  onError: it.add,
3036
3036
  isReady: xr,
3037
3037
  install(h) {
3038
3038
  const y = this;
3039
3039
  h.component("RouterLink", Va), h.component("RouterView", Ba), h.config.globalProperties.$router = y, Object.defineProperty(h.config.globalProperties, "$route", {
3040
3040
  enumerable: !0,
3041
- get: () => E(c)
3041
+ get: () => k(d)
3042
3042
  }), ce && // used for the initial navigation client side to avoid pushing
3043
3043
  // multiple times when the router is used in multiple apps
3044
- !Rt && c.value === me && (Rt = !0, U(r.location).catch((T) => {
3044
+ !Rt && d.value === me && (Rt = !0, U(r.location).catch((T) => {
3045
3045
  process.env.NODE_ENV !== "production" && S("Unexpected error when starting the router:", T);
3046
3046
  }));
3047
3047
  const g = {};
3048
3048
  for (const T in me)
3049
3049
  Object.defineProperty(g, T, {
3050
- get: () => c.value[T],
3050
+ get: () => d.value[T],
3051
3051
  enumerable: !0
3052
3052
  });
3053
- h.provide(fn, y), h.provide(Ko, Cr(g)), h.provide(en, c);
3054
- const _ = h.unmount;
3053
+ h.provide(fn, y), h.provide(Ko, Cr(g)), h.provide(en, d);
3054
+ const E = h.unmount;
3055
3055
  lt.add(h), h.unmount = function() {
3056
- lt.delete(h), lt.size < 1 && (l = me, ee && ee(), ee = null, c.value = me, Rt = !1, oe = !1), _();
3056
+ lt.delete(h), lt.size < 1 && (l = me, ee && ee(), ee = null, d.value = me, Rt = !1, oe = !1), E();
3057
3057
  }, process.env.NODE_ENV !== "production" && ce && Ha(h, y, t);
3058
3058
  }
3059
3059
  };
@@ -3064,11 +3064,11 @@ ${JSON.stringify(_, null, 2)}
3064
3064
  }
3065
3065
  function ei(e, t) {
3066
3066
  const n = [], o = [], r = [], s = Math.max(t.matched.length, e.matched.length);
3067
- for (let i = 0; i < s; i++) {
3068
- const a = t.matched[i];
3069
- a && (e.matched.find((l) => we(l, a)) ? o.push(a) : n.push(a));
3070
- const c = e.matched[i];
3071
- c && (t.matched.find((l) => we(l, c)) || r.push(c));
3067
+ for (let a = 0; a < s; a++) {
3068
+ const i = t.matched[a];
3069
+ i && (e.matched.find((l) => we(l, i)) ? o.push(i) : n.push(i));
3070
+ const d = e.matched[a];
3071
+ d && (t.matched.find((l) => we(l, d)) || r.push(d));
3072
3072
  }
3073
3073
  return [n, o, r];
3074
3074
  }
@@ -3208,8 +3208,8 @@ function vi(e) {
3208
3208
  autoIncrement: !0
3209
3209
  });
3210
3210
  }, new Promise(function(r, s) {
3211
- o.onerror = function(i) {
3212
- return s(i);
3211
+ o.onerror = function(a) {
3212
+ return s(a);
3213
3213
  }, o.onsuccess = function() {
3214
3214
  r(o.result);
3215
3215
  };
@@ -3221,42 +3221,42 @@ function gi(e, t, n) {
3221
3221
  time: o,
3222
3222
  data: n
3223
3223
  }, s = e.transaction([pe], "readwrite", Pt);
3224
- return new Promise(function(i, a) {
3224
+ return new Promise(function(a, i) {
3225
3225
  s.oncomplete = function() {
3226
- return i();
3226
+ return a();
3227
3227
  }, s.onerror = function(l) {
3228
- return a(l);
3228
+ return i(l);
3229
3229
  };
3230
- var c = s.objectStore(pe);
3231
- c.add(r), vn(s);
3230
+ var d = s.objectStore(pe);
3231
+ d.add(r), vn(s);
3232
3232
  });
3233
3233
  }
3234
3234
  function yi(e, t) {
3235
3235
  var n = e.transaction(pe, "readonly", Pt), o = n.objectStore(pe), r = [], s = IDBKeyRange.bound(t + 1, 1 / 0);
3236
3236
  if (o.getAll) {
3237
- var i = o.getAll(s);
3238
- return new Promise(function(c, l) {
3239
- i.onerror = function(u) {
3240
- return l(u);
3241
- }, i.onsuccess = function(u) {
3242
- c(u.target.result);
3237
+ var a = o.getAll(s);
3238
+ return new Promise(function(d, l) {
3239
+ a.onerror = function(c) {
3240
+ return l(c);
3241
+ }, a.onsuccess = function(c) {
3242
+ d(c.target.result);
3243
3243
  };
3244
3244
  });
3245
3245
  }
3246
- function a() {
3246
+ function i() {
3247
3247
  try {
3248
3248
  return s = IDBKeyRange.bound(t + 1, 1 / 0), o.openCursor(s);
3249
3249
  } catch {
3250
3250
  return o.openCursor();
3251
3251
  }
3252
3252
  }
3253
- return new Promise(function(c, l) {
3254
- var u = a();
3255
- u.onerror = function(d) {
3256
- return l(d);
3257
- }, u.onsuccess = function(d) {
3258
- var p = d.target.result;
3259
- p ? p.value.id < t + 1 ? p.continue(t + 1) : (r.push(p.value), p.continue()) : (vn(n), c(r));
3253
+ return new Promise(function(d, l) {
3254
+ var c = i();
3255
+ c.onerror = function(u) {
3256
+ return l(u);
3257
+ }, c.onsuccess = function(u) {
3258
+ var p = u.target.result;
3259
+ p ? p.value.id < t + 1 ? p.continue(t + 1) : (r.push(p.value), p.continue()) : (vn(n), d(r));
3260
3260
  };
3261
3261
  });
3262
3262
  }
@@ -3266,23 +3266,23 @@ function wi(e, t) {
3266
3266
  var n = e.db.transaction(pe, "readwrite", Pt), o = n.objectStore(pe);
3267
3267
  return Promise.all(t.map(function(r) {
3268
3268
  var s = o.delete(r);
3269
- return new Promise(function(i) {
3269
+ return new Promise(function(a) {
3270
3270
  s.onsuccess = function() {
3271
- return i();
3271
+ return a();
3272
3272
  };
3273
3273
  });
3274
3274
  }));
3275
3275
  }
3276
3276
  function bi(e, t) {
3277
3277
  var n = (/* @__PURE__ */ new Date()).getTime() - t, o = e.transaction(pe, "readonly", Pt), r = o.objectStore(pe), s = [];
3278
- return new Promise(function(i) {
3279
- r.openCursor().onsuccess = function(a) {
3280
- var c = a.target.result;
3281
- if (c) {
3282
- var l = c.value;
3283
- l.time < n ? (s.push(l), c.continue()) : (vn(o), i(s));
3278
+ return new Promise(function(a) {
3279
+ r.openCursor().onsuccess = function(i) {
3280
+ var d = i.target.result;
3281
+ if (d) {
3282
+ var l = d.value;
3283
+ l.time < n ? (s.push(l), d.continue()) : (vn(o), a(s));
3284
3284
  } else
3285
- i(s);
3285
+ a(s);
3286
3286
  };
3287
3287
  });
3288
3288
  }
@@ -3395,8 +3395,8 @@ function Ai(e, t) {
3395
3395
  uuid: e.uuid
3396
3396
  }, s = JSON.stringify(r);
3397
3397
  cr().setItem(o, s);
3398
- var i = document.createEvent("Event");
3399
- i.initEvent("storage", !0, !0), i.key = o, i.newValue = s, window.dispatchEvent(i), n();
3398
+ var a = document.createEvent("Event");
3399
+ a.initEvent("storage", !0, !0), a.key = o, a.newValue = s, window.dispatchEvent(a), n();
3400
3400
  });
3401
3401
  });
3402
3402
  }
@@ -3596,10 +3596,10 @@ function oo(e, t, n) {
3596
3596
  data: n
3597
3597
  }, s = e._prepP ? e._prepP : Le;
3598
3598
  return s.then(function() {
3599
- var i = e.method.postMessage(e._state, r);
3600
- return e._uMP.add(i), i.catch().then(function() {
3601
- return e._uMP.delete(i);
3602
- }), i;
3599
+ var a = e.method.postMessage(e._state, r);
3600
+ return e._uMP.add(a), a.catch().then(function() {
3601
+ return e._uMP.delete(a);
3602
+ }), a;
3603
3603
  });
3604
3604
  }
3605
3605
  function Xi(e) {
@@ -3623,8 +3623,8 @@ function Zi(e) {
3623
3623
  if (!e._iL && fr(e)) {
3624
3624
  var t = function(o) {
3625
3625
  e._addEL[o.type].forEach(function(r) {
3626
- var s = 1e5, i = r.time - s;
3627
- o.time >= i && r.fn(o.data);
3626
+ var s = 1e5, a = r.time - s;
3627
+ o.time >= a && r.fn(o.data);
3628
3628
  });
3629
3629
  }, n = e.method.microSeconds();
3630
3630
  e._prepP ? e._prepP.then(function() {
@@ -3692,8 +3692,8 @@ function Te(e) {
3692
3692
  let t = "", n = 0;
3693
3693
  const o = e.length;
3694
3694
  for (let r = 0; r < o; r += 1) {
3695
- const s = e[r], i = rl(s);
3696
- i && (t += e.slice(n, r) + i, n = r + 1);
3695
+ const s = e[r], a = rl(s);
3696
+ a && (t += e.slice(n, r) + a, n = r + 1);
3697
3697
  }
3698
3698
  return `"${n === 0 ? e : t + e.slice(n)}"`;
3699
3699
  }
@@ -3709,68 +3709,68 @@ function sl(e, t) {
3709
3709
  /** @type {any[]} */
3710
3710
  e
3711
3711
  ), o = Array(n.length);
3712
- function r(s, i = !1) {
3712
+ function r(s, a = !1) {
3713
3713
  if (s === wn) return;
3714
3714
  if (s === mr) return NaN;
3715
3715
  if (s === vr) return 1 / 0;
3716
3716
  if (s === gr) return -1 / 0;
3717
3717
  if (s === bn) return -0;
3718
- if (i) throw new Error("Invalid input");
3718
+ if (a) throw new Error("Invalid input");
3719
3719
  if (s in o) return o[s];
3720
- const a = n[s];
3721
- if (!a || typeof a != "object")
3722
- o[s] = a;
3723
- else if (Array.isArray(a))
3724
- if (typeof a[0] == "string") {
3725
- const c = a[0];
3726
- switch (c) {
3720
+ const i = n[s];
3721
+ if (!i || typeof i != "object")
3722
+ o[s] = i;
3723
+ else if (Array.isArray(i))
3724
+ if (typeof i[0] == "string") {
3725
+ const d = i[0];
3726
+ switch (d) {
3727
3727
  case "Date":
3728
- o[s] = new Date(a[1]);
3728
+ o[s] = new Date(i[1]);
3729
3729
  break;
3730
3730
  case "Set":
3731
3731
  const l = /* @__PURE__ */ new Set();
3732
3732
  o[s] = l;
3733
- for (let p = 1; p < a.length; p += 1)
3734
- l.add(r(a[p]));
3733
+ for (let p = 1; p < i.length; p += 1)
3734
+ l.add(r(i[p]));
3735
3735
  break;
3736
3736
  case "Map":
3737
- const u = /* @__PURE__ */ new Map();
3738
- o[s] = u;
3739
- for (let p = 1; p < a.length; p += 2)
3740
- u.set(r(a[p]), r(a[p + 1]));
3737
+ const c = /* @__PURE__ */ new Map();
3738
+ o[s] = c;
3739
+ for (let p = 1; p < i.length; p += 2)
3740
+ c.set(r(i[p]), r(i[p + 1]));
3741
3741
  break;
3742
3742
  case "RegExp":
3743
- o[s] = new RegExp(a[1], a[2]);
3743
+ o[s] = new RegExp(i[1], i[2]);
3744
3744
  break;
3745
3745
  case "Object":
3746
- o[s] = Object(a[1]);
3746
+ o[s] = Object(i[1]);
3747
3747
  break;
3748
3748
  case "BigInt":
3749
- o[s] = BigInt(a[1]);
3749
+ o[s] = BigInt(i[1]);
3750
3750
  break;
3751
3751
  case "null":
3752
- const d = /* @__PURE__ */ Object.create(null);
3753
- o[s] = d;
3754
- for (let p = 1; p < a.length; p += 2)
3755
- d[a[p]] = r(a[p + 1]);
3752
+ const u = /* @__PURE__ */ Object.create(null);
3753
+ o[s] = u;
3754
+ for (let p = 1; p < i.length; p += 2)
3755
+ u[i[p]] = r(i[p + 1]);
3756
3756
  break;
3757
3757
  default:
3758
- throw new Error(`Unknown type ${c}`);
3758
+ throw new Error(`Unknown type ${d}`);
3759
3759
  }
3760
3760
  } else {
3761
- const c = new Array(a.length);
3762
- o[s] = c;
3763
- for (let l = 0; l < a.length; l += 1) {
3764
- const u = a[l];
3765
- u !== hr && (c[l] = r(u));
3761
+ const d = new Array(i.length);
3762
+ o[s] = d;
3763
+ for (let l = 0; l < i.length; l += 1) {
3764
+ const c = i[l];
3765
+ c !== hr && (d[l] = r(c));
3766
3766
  }
3767
3767
  }
3768
3768
  else {
3769
- const c = {};
3770
- o[s] = c;
3771
- for (const l in a) {
3772
- const u = a[l];
3773
- c[l] = r(u);
3769
+ const d = {};
3770
+ o[s] = d;
3771
+ for (const l in i) {
3772
+ const c = i[l];
3773
+ d[l] = r(c);
3774
3774
  }
3775
3775
  }
3776
3776
  return o[s];
@@ -3782,8 +3782,8 @@ function lo(e, t) {
3782
3782
  for (const l in t)
3783
3783
  r.push({ key: l, fn: t[l] });
3784
3784
  const s = [];
3785
- let i = 0;
3786
- function a(l) {
3785
+ let a = 0;
3786
+ function i(l) {
3787
3787
  if (typeof l == "function")
3788
3788
  throw new Ut("Cannot stringify a function", s);
3789
3789
  if (o.has(l)) return o.get(l);
@@ -3792,52 +3792,52 @@ function lo(e, t) {
3792
3792
  if (l === 1 / 0) return vr;
3793
3793
  if (l === -1 / 0) return gr;
3794
3794
  if (l === 0 && 1 / l < 0) return bn;
3795
- const u = i++;
3796
- o.set(l, u);
3795
+ const c = a++;
3796
+ o.set(l, c);
3797
3797
  for (const { key: p, fn: f } of r) {
3798
3798
  const m = f(l);
3799
3799
  if (m)
3800
- return n[u] = `["${p}",${a(m)}]`, u;
3800
+ return n[c] = `["${p}",${i(m)}]`, c;
3801
3801
  }
3802
- let d = "";
3802
+ let u = "";
3803
3803
  if (ao(l))
3804
- d = Ht(l);
3804
+ u = Ht(l);
3805
3805
  else
3806
3806
  switch (ol(l)) {
3807
3807
  case "Number":
3808
3808
  case "String":
3809
3809
  case "Boolean":
3810
- d = `["Object",${Ht(l)}]`;
3810
+ u = `["Object",${Ht(l)}]`;
3811
3811
  break;
3812
3812
  case "BigInt":
3813
- d = `["BigInt",${l}]`;
3813
+ u = `["BigInt",${l}]`;
3814
3814
  break;
3815
3815
  case "Date":
3816
- d = `["Date","${isNaN(l.getDate()) ? "" : l.toISOString()}"]`;
3816
+ u = `["Date","${isNaN(l.getDate()) ? "" : l.toISOString()}"]`;
3817
3817
  break;
3818
3818
  case "RegExp":
3819
3819
  const { source: p, flags: f } = l;
3820
- d = f ? `["RegExp",${Te(p)},"${f}"]` : `["RegExp",${Te(p)}]`;
3820
+ u = f ? `["RegExp",${Te(p)},"${f}"]` : `["RegExp",${Te(p)}]`;
3821
3821
  break;
3822
3822
  case "Array":
3823
- d = "[";
3823
+ u = "[";
3824
3824
  for (let m = 0; m < l.length; m += 1)
3825
- m > 0 && (d += ","), m in l ? (s.push(`[${m}]`), d += a(l[m]), s.pop()) : d += hr;
3826
- d += "]";
3825
+ m > 0 && (u += ","), m in l ? (s.push(`[${m}]`), u += i(l[m]), s.pop()) : u += hr;
3826
+ u += "]";
3827
3827
  break;
3828
3828
  case "Set":
3829
- d = '["Set"';
3829
+ u = '["Set"';
3830
3830
  for (const m of l)
3831
- d += `,${a(m)}`;
3832
- d += "]";
3831
+ u += `,${i(m)}`;
3832
+ u += "]";
3833
3833
  break;
3834
3834
  case "Map":
3835
- d = '["Map"';
3835
+ u = '["Map"';
3836
3836
  for (const [m, v] of l)
3837
3837
  s.push(
3838
3838
  `.get(${ao(m) ? Ht(m) : "..."})`
3839
- ), d += `,${a(m)},${a(v)}`, s.pop();
3840
- d += "]";
3839
+ ), u += `,${i(m)},${i(v)}`, s.pop();
3840
+ u += "]";
3841
3841
  break;
3842
3842
  default:
3843
3843
  if (!nl(l))
@@ -3851,47 +3851,47 @@ function lo(e, t) {
3851
3851
  s
3852
3852
  );
3853
3853
  if (Object.getPrototypeOf(l) === null) {
3854
- d = '["null"';
3854
+ u = '["null"';
3855
3855
  for (const m in l)
3856
- s.push(`.${m}`), d += `,${Te(m)},${a(l[m])}`, s.pop();
3857
- d += "]";
3856
+ s.push(`.${m}`), u += `,${Te(m)},${i(l[m])}`, s.pop();
3857
+ u += "]";
3858
3858
  } else {
3859
- d = "{";
3859
+ u = "{";
3860
3860
  let m = !1;
3861
3861
  for (const v in l)
3862
- m && (d += ","), m = !0, s.push(`.${v}`), d += `${Te(v)}:${a(l[v])}`, s.pop();
3863
- d += "}";
3862
+ m && (u += ","), m = !0, s.push(`.${v}`), u += `${Te(v)}:${i(l[v])}`, s.pop();
3863
+ u += "}";
3864
3864
  }
3865
3865
  }
3866
- return n[u] = d, u;
3866
+ return n[c] = u, c;
3867
3867
  }
3868
- const c = a(e);
3869
- return c < 0 ? `${c}` : `[${n.join(",")}]`;
3868
+ const d = i(e);
3869
+ return d < 0 ? `${d}` : `[${n.join(",")}]`;
3870
3870
  }
3871
3871
  function Ht(e) {
3872
3872
  const t = typeof e;
3873
3873
  return t === "string" ? Te(e) : e instanceof String ? Te(e.toString()) : e === void 0 ? wn.toString() : e === 0 && 1 / e < 0 ? bn.toString() : t === "bigint" ? `["BigInt","${e}"]` : String(e);
3874
3874
  }
3875
3875
  function al(e, t, { initialize: n, type: o }) {
3876
- let r = `${t.$id}-${e.toString()}`, s = new yn(r, { type: o }), i = !1, a = 0;
3877
- z(() => t[e], (u) => {
3878
- i || (a = Date.now(), s.postMessage({ timestamp: a, state: io(lo(u)) })), i = !1;
3879
- }, { deep: !0 }), s.onmessage = (u) => {
3880
- if (u === void 0) {
3881
- s.postMessage({ timestamp: a, state: io(lo(t[e])) });
3876
+ let r = `${t.$id}-${e.toString()}`, s = new yn(r, { type: o }), a = !1, i = 0;
3877
+ z(() => t[e], (c) => {
3878
+ a || (i = Date.now(), s.postMessage({ timestamp: i, state: io(lo(c)) })), a = !1;
3879
+ }, { deep: !0 }), s.onmessage = (c) => {
3880
+ if (c === void 0) {
3881
+ s.postMessage({ timestamp: i, state: io(lo(t[e])) });
3882
3882
  return;
3883
3883
  }
3884
- u.timestamp <= a || (i = !0, a = u.timestamp, t[e] = u.state);
3884
+ c.timestamp <= i || (a = !0, i = c.timestamp, t[e] = c.state);
3885
3885
  };
3886
- let c = () => s.postMessage(void 0), l = () => s.close();
3887
- return n && c(), { sync: c, unshare: l };
3886
+ let d = () => s.postMessage(void 0), l = () => s.close();
3887
+ return n && d(), { sync: d, unshare: l };
3888
3888
  }
3889
3889
  var il = (e, t) => Object.keys(t).includes(e), ll = ({ initialize: e = !0, enable: t = !0, type: n }) => ({ store: o, options: r }) => {
3890
- var s, i;
3891
- let a = ((s = r == null ? void 0 : r.share) == null ? void 0 : s.enable) ?? t, c = ((i = r == null ? void 0 : r.share) == null ? void 0 : i.omit) ?? [];
3892
- !a || Object.keys(o.$state).forEach((l) => {
3893
- var u;
3894
- c.includes(l) || !il(l, o.$state) || al(l, o, { initialize: ((u = r == null ? void 0 : r.share) == null ? void 0 : u.initialize) ?? e, type: n });
3890
+ var s, a;
3891
+ let i = ((s = r == null ? void 0 : r.share) == null ? void 0 : s.enable) ?? t, d = ((a = r == null ? void 0 : r.share) == null ? void 0 : a.omit) ?? [];
3892
+ !i || Object.keys(o.$state).forEach((l) => {
3893
+ var c;
3894
+ d.includes(l) || !il(l, o.$state) || al(l, o, { initialize: ((c = r == null ? void 0 : r.share) == null ? void 0 : c.initialize) ?? e, type: n });
3895
3895
  });
3896
3896
  };
3897
3897
  const cl = Is();
@@ -3908,16 +3908,16 @@ const ul = /* @__PURE__ */ Z({
3908
3908
  return z(n, () => {
3909
3909
  if (n.value) {
3910
3910
  let r = t.value.schema.schema.toArray();
3911
- r.forEach((s, i) => {
3912
- const c = t.value.store.record[s.fieldname];
3913
- r[i].value = c;
3911
+ r.forEach((s, a) => {
3912
+ const d = t.value.store.record[s.fieldname];
3913
+ r[a].value = d;
3914
3914
  }), o.value = r;
3915
3915
  }
3916
- }), (r, s) => E(n) ? (I(), xe(E(ts), {
3916
+ }), (r, s) => k(n) ? (I(), xe(k(ts), {
3917
3917
  key: 0,
3918
3918
  class: "aform-main",
3919
3919
  modelValue: o.value,
3920
- "onUpdate:modelValue": s[0] || (s[0] = (i) => o.value = i)
3920
+ "onUpdate:modelValue": s[0] || (s[0] = (a) => o.value = a)
3921
3921
  }, null, 8, ["modelValue"])) : de("", !0);
3922
3922
  }
3923
3923
  });
@@ -3926,7 +3926,7 @@ function yr(e) {
3926
3926
  return xt() ? (St(e), !0) : !1;
3927
3927
  }
3928
3928
  function _n(e) {
3929
- return typeof e == "function" ? e() : E(e);
3929
+ return typeof e == "function" ? e() : k(e);
3930
3930
  }
3931
3931
  const fl = typeof window < "u" && typeof document < "u";
3932
3932
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -3942,21 +3942,21 @@ function st(...e) {
3942
3942
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = at) : [t, n, o, r] = e, !t)
3943
3943
  return gl;
3944
3944
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
3945
- const s = [], i = () => {
3946
- s.forEach((u) => u()), s.length = 0;
3947
- }, a = (u, d, p, f) => (u.addEventListener(d, p, f), () => u.removeEventListener(d, p, f)), c = z(
3945
+ const s = [], a = () => {
3946
+ s.forEach((c) => c()), s.length = 0;
3947
+ }, i = (c, u, p, f) => (c.addEventListener(u, p, f), () => c.removeEventListener(u, p, f)), d = z(
3948
3948
  () => [rt(t), _n(r)],
3949
- ([u, d]) => {
3950
- if (i(), !u)
3949
+ ([c, u]) => {
3950
+ if (a(), !c)
3951
3951
  return;
3952
- const p = vl(d) ? { ...d } : d;
3952
+ const p = vl(u) ? { ...u } : u;
3953
3953
  s.push(
3954
- ...n.flatMap((f) => o.map((m) => a(u, f, m, p)))
3954
+ ...n.flatMap((f) => o.map((m) => i(c, f, m, p)))
3955
3955
  );
3956
3956
  },
3957
3957
  { immediate: !0, flush: "post" }
3958
3958
  ), l = () => {
3959
- c(), i();
3959
+ d(), a();
3960
3960
  };
3961
3961
  return yr(l), l;
3962
3962
  }
@@ -3973,24 +3973,24 @@ function wl(e) {
3973
3973
  function bl(e, t, n = {}) {
3974
3974
  const { window: o = at, ...r } = n;
3975
3975
  let s;
3976
- const i = wl(() => o && "MutationObserver" in o), a = () => {
3976
+ const a = wl(() => o && "MutationObserver" in o), i = () => {
3977
3977
  s && (s.disconnect(), s = void 0);
3978
- }, c = j(() => {
3978
+ }, d = j(() => {
3979
3979
  const p = _n(e), f = (Array.isArray(p) ? p : [p]).map(rt).filter(hl);
3980
3980
  return new Set(f);
3981
3981
  }), l = z(
3982
- () => c.value,
3982
+ () => d.value,
3983
3983
  (p) => {
3984
- a(), i.value && p.size && (s = new MutationObserver(t), p.forEach((f) => s.observe(f, r)));
3984
+ i(), a.value && p.size && (s = new MutationObserver(t), p.forEach((f) => s.observe(f, r)));
3985
3985
  },
3986
3986
  { immediate: !0, flush: "post" }
3987
- ), u = () => s == null ? void 0 : s.takeRecords(), d = () => {
3988
- l(), a();
3987
+ ), c = () => s == null ? void 0 : s.takeRecords(), u = () => {
3988
+ l(), i();
3989
3989
  };
3990
- return yr(d), {
3991
- isSupported: i,
3992
- stop: d,
3993
- takeRecords: u
3990
+ return yr(u), {
3991
+ isSupported: a,
3992
+ stop: u,
3993
+ takeRecords: c
3994
3994
  };
3995
3995
  }
3996
3996
  function _l(e = {}) {
@@ -3999,41 +3999,41 @@ function _l(e = {}) {
3999
3999
  window: n = at,
4000
4000
  deep: o = !0,
4001
4001
  triggerOnRemoval: r = !1
4002
- } = e, s = (t = e.document) != null ? t : n == null ? void 0 : n.document, i = () => {
4002
+ } = e, s = (t = e.document) != null ? t : n == null ? void 0 : n.document, a = () => {
4003
4003
  var l;
4004
- let u = s == null ? void 0 : s.activeElement;
4004
+ let c = s == null ? void 0 : s.activeElement;
4005
4005
  if (o)
4006
- for (; u != null && u.shadowRoot; )
4007
- u = (l = u == null ? void 0 : u.shadowRoot) == null ? void 0 : l.activeElement;
4008
- return u;
4009
- }, a = C(), c = () => {
4010
- a.value = i();
4006
+ for (; c != null && c.shadowRoot; )
4007
+ c = (l = c == null ? void 0 : c.shadowRoot) == null ? void 0 : l.activeElement;
4008
+ return c;
4009
+ }, i = C(), d = () => {
4010
+ i.value = a();
4011
4011
  };
4012
4012
  return n && (st(n, "blur", (l) => {
4013
- l.relatedTarget === null && c();
4014
- }, !0), st(n, "focus", c, !0)), r && bl(s, (l) => {
4015
- l.filter((u) => u.removedNodes.length).map((u) => Array.from(u.removedNodes)).flat().forEach((u) => {
4016
- u === a.value && c();
4013
+ l.relatedTarget === null && d();
4014
+ }, !0), st(n, "focus", d, !0)), r && bl(s, (l) => {
4015
+ l.filter((c) => c.removedNodes.length).map((c) => Array.from(c.removedNodes)).flat().forEach((c) => {
4016
+ c === i.value && d();
4017
4017
  });
4018
4018
  }, {
4019
4019
  childList: !0,
4020
4020
  subtree: !0
4021
- }), c(), a;
4021
+ }), d(), i;
4022
4022
  }
4023
4023
  const El = "focusin", kl = "focusout";
4024
4024
  function $l(e, t = {}) {
4025
- const { window: n = at } = t, o = j(() => rt(e)), r = C(!1), s = j(() => r.value), i = _l(t);
4026
- return !n || !i.value ? { focused: s } : (st(o, El, () => r.value = !0), st(o, kl, () => r.value = !1), { focused: s });
4025
+ const { window: n = at } = t, o = j(() => rt(e)), r = C(!1), s = j(() => r.value), a = _l(t);
4026
+ return !n || !a.value ? { focused: s } : (st(o, El, () => r.value = !0), st(o, kl, () => r.value = !1), { focused: s });
4027
4027
  }
4028
4028
  function Ol(e, { window: t = at, scrollTarget: n } = {}) {
4029
4029
  const o = C(!1), r = () => {
4030
4030
  if (!t) return;
4031
- const s = t.document, i = rt(e);
4032
- if (!i)
4031
+ const s = t.document, a = rt(e);
4032
+ if (!a)
4033
4033
  o.value = !1;
4034
4034
  else {
4035
- const a = i.getBoundingClientRect();
4036
- o.value = a.top <= (t.innerHeight || s.documentElement.clientHeight) && a.left <= (t.innerWidth || s.documentElement.clientWidth) && a.bottom >= 0 && a.right >= 0;
4035
+ const i = a.getBoundingClientRect();
4036
+ o.value = i.top <= (t.innerHeight || s.documentElement.clientHeight) && i.left <= (t.innerWidth || s.documentElement.clientWidth) && i.bottom >= 0 && i.right >= 0;
4037
4037
  }
4038
4038
  };
4039
4039
  return z(
@@ -4220,73 +4220,73 @@ const fe = (e) => {
4220
4220
  }
4221
4221
  };
4222
4222
  function wr(e) {
4223
- const t = (i) => {
4224
- let a = null;
4225
- return i.parent && (typeof i.parent == "string" ? a = document.querySelector(i.parent) : i.parent instanceof HTMLElement ? a = i.parent : a = i.parent.value), a;
4226
- }, n = (i) => {
4227
- const a = t(i);
4228
- let c = [];
4229
- if (typeof i.selectors == "string")
4230
- c = a ? Array.from(a.querySelectorAll(i.selectors)) : Array.from(document.querySelectorAll(i.selectors));
4231
- else if (Array.isArray(i.selectors))
4232
- for (const l of i.selectors)
4233
- l instanceof HTMLElement ? c.push(l) : c.push(l.$el);
4234
- else if (i.selectors instanceof HTMLElement)
4235
- c.push(i.selectors);
4236
- else if (Array.isArray(i.selectors.value))
4237
- for (const l of i.selectors.value)
4238
- l instanceof HTMLElement ? c.push(l) : c.push(l.$el);
4223
+ const t = (a) => {
4224
+ let i = null;
4225
+ return a.parent && (typeof a.parent == "string" ? i = document.querySelector(a.parent) : a.parent instanceof HTMLElement ? i = a.parent : i = a.parent.value), i;
4226
+ }, n = (a) => {
4227
+ const i = t(a);
4228
+ let d = [];
4229
+ if (typeof a.selectors == "string")
4230
+ d = i ? Array.from(i.querySelectorAll(a.selectors)) : Array.from(document.querySelectorAll(a.selectors));
4231
+ else if (Array.isArray(a.selectors))
4232
+ for (const l of a.selectors)
4233
+ l instanceof HTMLElement ? d.push(l) : d.push(l.$el);
4234
+ else if (a.selectors instanceof HTMLElement)
4235
+ d.push(a.selectors);
4236
+ else if (Array.isArray(a.selectors.value))
4237
+ for (const l of a.selectors.value)
4238
+ l instanceof HTMLElement ? d.push(l) : d.push(l.$el);
4239
4239
  else
4240
- c.push(i.selectors.value);
4241
- return c;
4242
- }, o = (i) => {
4243
- const a = t(i);
4244
- let c = [];
4245
- return i.selectors ? c = n(i) : a && (c = Array.from(a.children).filter((l) => he(l) && fe(l))), c;
4246
- }, r = (i) => (a) => {
4247
- const c = Nl[a.key] || a.key.toLowerCase();
4248
- if (pt.includes(c)) return;
4249
- const l = i.handlers || xn;
4250
- for (const u of Object.keys(l)) {
4251
- const [d, ...p] = u.split(".");
4252
- if (d === "keydown" && p.includes(c)) {
4253
- const f = l[u], m = p.filter(($) => pt.includes($)), v = pt.some(($) => {
4254
- const x = $.charAt(0).toUpperCase() + $.slice(1);
4255
- return a.getModifierState(x);
4240
+ d.push(a.selectors.value);
4241
+ return d;
4242
+ }, o = (a) => {
4243
+ const i = t(a);
4244
+ let d = [];
4245
+ return a.selectors ? d = n(a) : i && (d = Array.from(i.children).filter((l) => he(l) && fe(l))), d;
4246
+ }, r = (a) => (i) => {
4247
+ const d = Nl[i.key] || i.key.toLowerCase();
4248
+ if (pt.includes(d)) return;
4249
+ const l = a.handlers || xn;
4250
+ for (const c of Object.keys(l)) {
4251
+ const [u, ...p] = c.split(".");
4252
+ if (u === "keydown" && p.includes(d)) {
4253
+ const f = l[c], m = p.filter((_) => pt.includes(_)), v = pt.some((_) => {
4254
+ const x = _.charAt(0).toUpperCase() + _.slice(1);
4255
+ return i.getModifierState(x);
4256
4256
  });
4257
4257
  if (m.length > 0) {
4258
4258
  if (v) {
4259
- for (const $ of pt)
4260
- if (p.includes($)) {
4261
- const x = $.charAt(0).toUpperCase() + $.slice(1);
4262
- a.getModifierState(x) && f(a);
4259
+ for (const _ of pt)
4260
+ if (p.includes(_)) {
4261
+ const x = _.charAt(0).toUpperCase() + _.slice(1);
4262
+ i.getModifierState(x) && f(i);
4263
4263
  }
4264
4264
  }
4265
4265
  } else
4266
- v || f(a);
4266
+ v || f(i);
4267
4267
  }
4268
4268
  }
4269
4269
  }, s = [];
4270
4270
  Be(() => {
4271
- for (const i of e) {
4272
- const a = t(i), c = o(i), l = r(i), u = a ? [a] : c;
4273
- for (const d of u) {
4274
- const { focused: p } = $l(C(d)), f = z(p, (m) => {
4275
- m ? d.addEventListener("keydown", l) : d.removeEventListener("keydown", l);
4271
+ for (const a of e) {
4272
+ const i = t(a), d = o(a), l = r(a), c = i ? [i] : d;
4273
+ for (const u of c) {
4274
+ const { focused: p } = $l(C(u)), f = z(p, (m) => {
4275
+ m ? u.addEventListener("keydown", l) : u.removeEventListener("keydown", l);
4276
4276
  });
4277
4277
  s.push(f);
4278
4278
  }
4279
4279
  }
4280
4280
  }), Rr(() => {
4281
- for (const i of s)
4282
- i();
4281
+ for (const a of s)
4282
+ a();
4283
4283
  });
4284
4284
  }
4285
4285
  function Sn(e) {
4286
4286
  return xt() ? (St(e), !0) : !1;
4287
4287
  }
4288
4288
  function Dt(e) {
4289
- return typeof e == "function" ? e() : E(e);
4289
+ return typeof e == "function" ? e() : k(e);
4290
4290
  }
4291
4291
  const Il = typeof window < "u" && typeof document < "u";
4292
4292
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -4309,21 +4309,21 @@ function vo(...e) {
4309
4309
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = Nn) : [t, n, o, r] = e, !t)
4310
4310
  return Al;
4311
4311
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
4312
- const s = [], i = () => {
4313
- s.forEach((u) => u()), s.length = 0;
4314
- }, a = (u, d, p, f) => (u.addEventListener(d, p, f), () => u.removeEventListener(d, p, f)), c = z(
4312
+ const s = [], a = () => {
4313
+ s.forEach((c) => c()), s.length = 0;
4314
+ }, i = (c, u, p, f) => (c.addEventListener(u, p, f), () => c.removeEventListener(u, p, f)), d = z(
4315
4315
  () => [Me(t), Dt(r)],
4316
- ([u, d]) => {
4317
- if (i(), !u)
4316
+ ([c, u]) => {
4317
+ if (a(), !c)
4318
4318
  return;
4319
- const p = Dl(d) ? { ...d } : d;
4319
+ const p = Dl(u) ? { ...u } : u;
4320
4320
  s.push(
4321
- ...n.flatMap((f) => o.map((m) => a(u, f, m, p)))
4321
+ ...n.flatMap((f) => o.map((m) => i(c, f, m, p)))
4322
4322
  );
4323
4323
  },
4324
4324
  { immediate: !0, flush: "post" }
4325
4325
  ), l = () => {
4326
- c(), i();
4326
+ d(), a();
4327
4327
  };
4328
4328
  return Sn(l), l;
4329
4329
  }
@@ -4340,50 +4340,50 @@ function br(e) {
4340
4340
  function _r(e, t, n = {}) {
4341
4341
  const { window: o = Nn, ...r } = n;
4342
4342
  let s;
4343
- const i = br(() => o && "MutationObserver" in o), a = () => {
4343
+ const a = br(() => o && "MutationObserver" in o), i = () => {
4344
4344
  s && (s.disconnect(), s = void 0);
4345
- }, c = j(() => {
4345
+ }, d = j(() => {
4346
4346
  const p = Dt(e), f = (Array.isArray(p) ? p : [p]).map(Me).filter(Cl);
4347
4347
  return new Set(f);
4348
4348
  }), l = z(
4349
- () => c.value,
4349
+ () => d.value,
4350
4350
  (p) => {
4351
- a(), i.value && p.size && (s = new MutationObserver(t), p.forEach((f) => s.observe(f, r)));
4351
+ i(), a.value && p.size && (s = new MutationObserver(t), p.forEach((f) => s.observe(f, r)));
4352
4352
  },
4353
4353
  { immediate: !0, flush: "post" }
4354
- ), u = () => s == null ? void 0 : s.takeRecords(), d = () => {
4355
- l(), a();
4354
+ ), c = () => s == null ? void 0 : s.takeRecords(), u = () => {
4355
+ l(), i();
4356
4356
  };
4357
- return Sn(d), {
4358
- isSupported: i,
4359
- stop: d,
4360
- takeRecords: u
4357
+ return Sn(u), {
4358
+ isSupported: a,
4359
+ stop: u,
4360
+ takeRecords: c
4361
4361
  };
4362
4362
  }
4363
4363
  function jl(e, t, n = {}) {
4364
4364
  const { window: o = Nn, ...r } = n;
4365
4365
  let s;
4366
- const i = br(() => o && "ResizeObserver" in o), a = () => {
4366
+ const a = br(() => o && "ResizeObserver" in o), i = () => {
4367
4367
  s && (s.disconnect(), s = void 0);
4368
- }, c = j(() => {
4369
- const d = Dt(e);
4370
- return Array.isArray(d) ? d.map((p) => Me(p)) : [Me(d)];
4368
+ }, d = j(() => {
4369
+ const u = Dt(e);
4370
+ return Array.isArray(u) ? u.map((p) => Me(p)) : [Me(u)];
4371
4371
  }), l = z(
4372
- c,
4373
- (d) => {
4374
- if (a(), i.value && o) {
4372
+ d,
4373
+ (u) => {
4374
+ if (i(), a.value && o) {
4375
4375
  s = new ResizeObserver(t);
4376
- for (const p of d)
4376
+ for (const p of u)
4377
4377
  p && s.observe(p, r);
4378
4378
  }
4379
4379
  },
4380
4380
  { immediate: !0, flush: "post" }
4381
- ), u = () => {
4382
- a(), l();
4381
+ ), c = () => {
4382
+ i(), l();
4383
4383
  };
4384
- return Sn(u), {
4385
- isSupported: i,
4386
- stop: u
4384
+ return Sn(c), {
4385
+ isSupported: a,
4386
+ stop: c
4387
4387
  };
4388
4388
  }
4389
4389
  function Ll(e, t = {}) {
@@ -4392,34 +4392,34 @@ function Ll(e, t = {}) {
4392
4392
  windowResize: o = !0,
4393
4393
  windowScroll: r = !0,
4394
4394
  immediate: s = !0,
4395
- updateTiming: i = "sync"
4396
- } = t, a = C(0), c = C(0), l = C(0), u = C(0), d = C(0), p = C(0), f = C(0), m = C(0);
4395
+ updateTiming: a = "sync"
4396
+ } = t, i = C(0), d = C(0), l = C(0), c = C(0), u = C(0), p = C(0), f = C(0), m = C(0);
4397
4397
  function v() {
4398
4398
  const x = Me(e);
4399
4399
  if (!x) {
4400
- n && (a.value = 0, c.value = 0, l.value = 0, u.value = 0, d.value = 0, p.value = 0, f.value = 0, m.value = 0);
4400
+ n && (i.value = 0, d.value = 0, l.value = 0, c.value = 0, u.value = 0, p.value = 0, f.value = 0, m.value = 0);
4401
4401
  return;
4402
4402
  }
4403
4403
  const O = x.getBoundingClientRect();
4404
- a.value = O.height, c.value = O.bottom, l.value = O.left, u.value = O.right, d.value = O.top, p.value = O.width, f.value = O.x, m.value = O.y;
4404
+ i.value = O.height, d.value = O.bottom, l.value = O.left, c.value = O.right, u.value = O.top, p.value = O.width, f.value = O.x, m.value = O.y;
4405
4405
  }
4406
- function $() {
4407
- i === "sync" ? v() : i === "next-frame" && requestAnimationFrame(() => v());
4406
+ function _() {
4407
+ a === "sync" ? v() : a === "next-frame" && requestAnimationFrame(() => v());
4408
4408
  }
4409
- return jl(e, $), z(() => Me(e), (x) => !x && $()), _r(e, $, {
4409
+ return jl(e, _), z(() => Me(e), (x) => !x && _()), _r(e, _, {
4410
4410
  attributeFilter: ["style", "class"]
4411
- }), r && vo("scroll", $, { capture: !0, passive: !0 }), o && vo("resize", $, { passive: !0 }), Rl(() => {
4412
- s && $();
4411
+ }), r && vo("scroll", _, { capture: !0, passive: !0 }), o && vo("resize", _, { passive: !0 }), Rl(() => {
4412
+ s && _();
4413
4413
  }), {
4414
- height: a,
4415
- bottom: c,
4414
+ height: i,
4415
+ bottom: d,
4416
4416
  left: l,
4417
- right: u,
4418
- top: d,
4417
+ right: c,
4418
+ top: u,
4419
4419
  width: p,
4420
4420
  x: f,
4421
4421
  y: m,
4422
- update: $
4422
+ update: _
4423
4423
  };
4424
4424
  }
4425
4425
  const Ml = (e) => {
@@ -4436,23 +4436,23 @@ const Ml = (e) => {
4436
4436
  pinned: { type: Boolean }
4437
4437
  },
4438
4438
  setup(e) {
4439
- const t = ae(e.tableid), n = Nt("cell"), { bottom: o, left: r } = Ll(n), s = t.cellData(e.colIndex, e.rowIndex), i = C(""), a = C(!1), c = t.table, l = t.columns[e.colIndex], u = t.rows[e.rowIndex], d = l.align || "center", p = l.width || "40ch", f = j(() => typeof v.value == "string" ? Ml(v.value) : !1), m = j(() => {
4439
+ const t = ae(e.tableid), n = Nt("cell"), { bottom: o, left: r } = Ll(n), s = t.cellData(e.colIndex, e.rowIndex), a = C(""), i = C(!1), d = t.table, l = t.columns[e.colIndex], c = t.rows[e.rowIndex], u = l.align || "center", p = l.width || "40ch", f = j(() => typeof v.value == "string" ? Ml(v.value) : !1), m = j(() => {
4440
4440
  var D;
4441
4441
  return {
4442
- textAlign: d,
4442
+ textAlign: u,
4443
4443
  width: p,
4444
- backgroundColor: a.value ? "var(--sc-cell-modified)" : "inherit",
4445
- fontWeight: a.value ? "bold" : "inherit",
4444
+ backgroundColor: i.value ? "var(--sc-cell-modified)" : "inherit",
4445
+ fontWeight: i.value ? "bold" : "inherit",
4446
4446
  paddingLeft: U(e.colIndex, (D = t.display[e.rowIndex]) == null ? void 0 : D.indent)
4447
4447
  };
4448
4448
  }), v = j(() => {
4449
4449
  const D = t.cellData(e.colIndex, e.rowIndex);
4450
- return $(D);
4451
- }), $ = (D) => {
4450
+ return _(D);
4451
+ }), _ = (D) => {
4452
4452
  const B = l.format;
4453
- return B ? typeof B == "function" ? B(D, { table: c, row: u, column: l }) : typeof B == "string" ? Function(`"use strict";return (${B})`)()(D, { table: c, row: u, column: l }) : D : D;
4453
+ return B ? typeof B == "function" ? B(D, { table: d, row: c, column: l }) : typeof B == "string" ? Function(`"use strict";return (${B})`)()(D, { table: d, row: c, column: l }) : D : D;
4454
4454
  }, x = () => {
4455
- l.mask, l.modalComponent && (t.modal.visible = !0, t.modal.colIndex = e.colIndex, t.modal.rowIndex = e.rowIndex, t.modal.parent = n.value, t.modal.top = o.value, t.modal.left = r.value, t.modal.width = p, typeof l.modalComponent == "function" ? t.modal.component = l.modalComponent({ table: c, row: u, column: l }) : t.modal.component = l.modalComponent, t.modal.componentProps = l.modalComponentExtraProps);
4455
+ l.mask, l.modalComponent && (t.modal.visible = !0, t.modal.colIndex = e.colIndex, t.modal.rowIndex = e.rowIndex, t.modal.parent = n.value, t.modal.top = o.value, t.modal.left = r.value, t.modal.width = p, typeof l.modalComponent == "function" ? t.modal.component = l.modalComponent({ table: d, row: c, column: l }) : t.modal.component = l.modalComponent, t.modal.componentProps = l.modalComponentExtraProps);
4456
4456
  };
4457
4457
  if (e.addNavigation) {
4458
4458
  let D = {
@@ -4474,16 +4474,16 @@ const Ml = (e) => {
4474
4474
  ]);
4475
4475
  }
4476
4476
  const O = () => {
4477
- n.value && (i.value = n.value.textContent);
4477
+ n.value && (a.value = n.value.textContent);
4478
4478
  }, P = () => {
4479
- n.value && (l.format ? a.value = n.value.textContent !== $(s) : a.value = n.value.textContent !== s, n.value.textContent !== i.value && (i.value = n.value.textContent, n.value.dispatchEvent(new Event("change")), l.format || t.setCellData(e.rowIndex, e.colIndex, i.value)));
4479
+ n.value && (l.format ? i.value = n.value.textContent !== _(s) : i.value = n.value.textContent !== s, n.value.textContent !== a.value && (a.value = n.value.textContent, n.value.dispatchEvent(new Event("change")), l.format || t.setCellData(e.rowIndex, e.colIndex, a.value)));
4480
4480
  }, U = (D, B) => B && D === 0 && B > 0 ? `${B}ch` : "inherit";
4481
4481
  return (D, B) => (I(), V("td", {
4482
4482
  ref: "cell",
4483
4483
  "data-colindex": D.colIndex,
4484
4484
  "data-rowindex": D.rowIndex,
4485
- "data-editable": E(l).edit,
4486
- contenteditable: E(l).edit,
4485
+ "data-editable": k(l).edit,
4486
+ contenteditable: k(l).edit,
4487
4487
  tabindex: D.tabIndex,
4488
4488
  spellcheck: !1,
4489
4489
  style: re(m.value),
@@ -4495,10 +4495,10 @@ const Ml = (e) => {
4495
4495
  onMousedown: x,
4496
4496
  class: Se(["atable-cell", D.pinned ? "sticky-column" : ""])
4497
4497
  }, [
4498
- E(l).cellComponent ? (I(), xe(rn(E(l).cellComponent), sn({
4498
+ k(l).cellComponent ? (I(), xe(rn(k(l).cellComponent), sn({
4499
4499
  key: 0,
4500
4500
  value: v.value
4501
- }, E(l).cellComponentProps), null, 16, ["value"])) : f.value ? (I(), V("span", {
4501
+ }, k(l).cellComponentProps), null, 16, ["value"])) : f.value ? (I(), V("span", {
4502
4502
  key: 1,
4503
4503
  innerHTML: v.value
4504
4504
  }, null, 8, Wl)) : (I(), V("span", Ul, ue(v.value), 1))
@@ -4513,39 +4513,39 @@ const Ml = (e) => {
4513
4513
  addNavigation: { type: [Boolean, Object], default: !1 }
4514
4514
  },
4515
4515
  setup(e) {
4516
- const t = ae(e.tableid), n = Nt("rowEl"), o = j(() => t.columns.some((a) => a.pinned)), r = j(() => t.config.view !== "tree" || t.display[e.rowIndex].isRoot || t.display[e.rowIndex].open), s = j(() => t.config.view !== "tree" ? "" : t.display[e.rowIndex].isRoot || t.display[e.rowIndex].isParent ? t.display[e.rowIndex].childrenOpen ? "-" : "+" : ""), i = (a) => {
4517
- t.toggleRowExpand(a);
4516
+ const t = ae(e.tableid), n = Nt("rowEl"), o = j(() => t.columns.some((i) => i.pinned)), r = j(() => t.config.view !== "tree" || t.display[e.rowIndex].isRoot || t.display[e.rowIndex].open), s = j(() => t.config.view !== "tree" ? "" : t.display[e.rowIndex].isRoot || t.display[e.rowIndex].isParent ? t.display[e.rowIndex].childrenOpen ? "-" : "+" : ""), a = (i) => {
4517
+ t.toggleRowExpand(i);
4518
4518
  };
4519
4519
  if (e.addNavigation) {
4520
- let a = xn;
4521
- typeof e.addNavigation == "object" && (a = {
4522
- ...a,
4520
+ let i = xn;
4521
+ typeof e.addNavigation == "object" && (i = {
4522
+ ...i,
4523
4523
  ...e.addNavigation
4524
4524
  }), wr([
4525
4525
  {
4526
4526
  selectors: n,
4527
- handlers: a
4527
+ handlers: i
4528
4528
  }
4529
4529
  ]);
4530
4530
  }
4531
- return (a, c) => Ze((I(), V("tr", {
4531
+ return (i, d) => Ze((I(), V("tr", {
4532
4532
  ref: "rowEl",
4533
- tabindex: a.tabIndex,
4533
+ tabindex: i.tabIndex,
4534
4534
  class: "table-row"
4535
4535
  }, [
4536
- E(t).config.view !== "uncounted" ? ge(a.$slots, "index", { key: 0 }, () => [
4537
- E(t).config.view === "list" ? (I(), V("td", {
4536
+ k(t).config.view !== "uncounted" ? ge(i.$slots, "index", { key: 0 }, () => [
4537
+ k(t).config.view === "list" ? (I(), V("td", {
4538
4538
  key: 0,
4539
4539
  tabIndex: -1,
4540
4540
  class: Se(["list-index", o.value ? "sticky-index" : ""])
4541
- }, ue(a.rowIndex + 1), 3)) : E(t).config.view === "tree" ? (I(), V("td", {
4541
+ }, ue(i.rowIndex + 1), 3)) : k(t).config.view === "tree" ? (I(), V("td", {
4542
4542
  key: 1,
4543
4543
  tabIndex: -1,
4544
4544
  class: Se(["tree-index", o.value ? "sticky-index" : ""]),
4545
- onClick: c[0] || (c[0] = (l) => i(a.rowIndex))
4545
+ onClick: d[0] || (d[0] = (l) => a(i.rowIndex))
4546
4546
  }, ue(s.value), 3)) : de("", !0)
4547
4547
  ]) : de("", !0),
4548
- ge(a.$slots, "default")
4548
+ ge(i.$slots, "default")
4549
4549
  ], 8, Fl)), [
4550
4550
  [on, r.value]
4551
4551
  ]);
@@ -4555,7 +4555,7 @@ function Er(e) {
4555
4555
  return xt() ? (St(e), !0) : !1;
4556
4556
  }
4557
4557
  function Qe(e) {
4558
- return typeof e == "function" ? e() : E(e);
4558
+ return typeof e == "function" ? e() : k(e);
4559
4559
  }
4560
4560
  const kr = typeof window < "u" && typeof document < "u";
4561
4561
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -4587,62 +4587,62 @@ function _t(...e) {
4587
4587
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = $r) : [t, n, o, r] = e, !t)
4588
4588
  return Xe;
4589
4589
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
4590
- const s = [], i = () => {
4591
- s.forEach((u) => u()), s.length = 0;
4592
- }, a = (u, d, p, f) => (u.addEventListener(d, p, f), () => u.removeEventListener(d, p, f)), c = z(
4590
+ const s = [], a = () => {
4591
+ s.forEach((c) => c()), s.length = 0;
4592
+ }, i = (c, u, p, f) => (c.addEventListener(u, p, f), () => c.removeEventListener(u, p, f)), d = z(
4593
4593
  () => [Je(t), Qe(r)],
4594
- ([u, d]) => {
4595
- if (i(), !u)
4594
+ ([c, u]) => {
4595
+ if (a(), !c)
4596
4596
  return;
4597
- const p = ql(d) ? { ...d } : d;
4597
+ const p = ql(u) ? { ...u } : u;
4598
4598
  s.push(
4599
- ...n.flatMap((f) => o.map((m) => a(u, f, m, p)))
4599
+ ...n.flatMap((f) => o.map((m) => i(c, f, m, p)))
4600
4600
  );
4601
4601
  },
4602
4602
  { immediate: !0, flush: "post" }
4603
4603
  ), l = () => {
4604
- c(), i();
4604
+ d(), a();
4605
4605
  };
4606
4606
  return Er(l), l;
4607
4607
  }
4608
4608
  let yo = !1;
4609
4609
  function wo(e, t, n = {}) {
4610
- const { window: o = $r, ignore: r = [], capture: s = !0, detectIframe: i = !1 } = n;
4610
+ const { window: o = $r, ignore: r = [], capture: s = !0, detectIframe: a = !1 } = n;
4611
4611
  if (!o)
4612
4612
  return Xe;
4613
- nn && !yo && (yo = !0, Array.from(o.document.body.children).forEach((u) => u.addEventListener("click", Xe)), o.document.documentElement.addEventListener("click", Xe));
4614
- let a = !0;
4615
- const c = (u) => r.some((d) => {
4616
- if (typeof d == "string")
4617
- return Array.from(o.document.querySelectorAll(d)).some((p) => p === u.target || u.composedPath().includes(p));
4613
+ nn && !yo && (yo = !0, Array.from(o.document.body.children).forEach((c) => c.addEventListener("click", Xe)), o.document.documentElement.addEventListener("click", Xe));
4614
+ let i = !0;
4615
+ const d = (c) => r.some((u) => {
4616
+ if (typeof u == "string")
4617
+ return Array.from(o.document.querySelectorAll(u)).some((p) => p === c.target || c.composedPath().includes(p));
4618
4618
  {
4619
- const p = Je(d);
4620
- return p && (u.target === p || u.composedPath().includes(p));
4619
+ const p = Je(u);
4620
+ return p && (c.target === p || c.composedPath().includes(p));
4621
4621
  }
4622
4622
  }), l = [
4623
- _t(o, "click", (u) => {
4624
- const d = Je(e);
4625
- if (!(!d || d === u.target || u.composedPath().includes(d))) {
4626
- if (u.detail === 0 && (a = !c(u)), !a) {
4627
- a = !0;
4623
+ _t(o, "click", (c) => {
4624
+ const u = Je(e);
4625
+ if (!(!u || u === c.target || c.composedPath().includes(u))) {
4626
+ if (c.detail === 0 && (i = !d(c)), !i) {
4627
+ i = !0;
4628
4628
  return;
4629
4629
  }
4630
- t(u);
4630
+ t(c);
4631
4631
  }
4632
4632
  }, { passive: !0, capture: s }),
4633
- _t(o, "pointerdown", (u) => {
4634
- const d = Je(e);
4635
- a = !c(u) && !!(d && !u.composedPath().includes(d));
4633
+ _t(o, "pointerdown", (c) => {
4634
+ const u = Je(e);
4635
+ i = !d(c) && !!(u && !c.composedPath().includes(u));
4636
4636
  }, { passive: !0 }),
4637
- i && _t(o, "blur", (u) => {
4637
+ a && _t(o, "blur", (c) => {
4638
4638
  setTimeout(() => {
4639
- var d;
4639
+ var u;
4640
4640
  const p = Je(e);
4641
- ((d = o.document.activeElement) == null ? void 0 : d.tagName) === "IFRAME" && !(p != null && p.contains(o.document.activeElement)) && t(u);
4641
+ ((u = o.document.activeElement) == null ? void 0 : u.tagName) === "IFRAME" && !(p != null && p.contains(o.document.activeElement)) && t(c);
4642
4642
  }, 0);
4643
4643
  })
4644
4644
  ].filter(Boolean);
4645
- return () => l.forEach((u) => u());
4645
+ return () => l.forEach((c) => c());
4646
4646
  }
4647
4647
  const Yl = {
4648
4648
  [go.mounted](e, t) {
@@ -4678,10 +4678,10 @@ const zt = /* @__PURE__ */ new WeakMap();
4678
4678
  function Xl(e, t = !1) {
4679
4679
  const n = C(t);
4680
4680
  let o = null, r = "";
4681
- z(Kl(e), (a) => {
4682
- const c = Ft(Qe(a));
4683
- if (c) {
4684
- const l = c;
4681
+ z(Kl(e), (i) => {
4682
+ const d = Ft(Qe(i));
4683
+ if (d) {
4684
+ const l = d;
4685
4685
  if (zt.get(l) || zt.set(l, l.style.overflow), l.style.overflow !== "hidden" && (r = l.style.overflow), l.style.overflow === "hidden")
4686
4686
  return n.value = !0;
4687
4687
  if (n.value)
@@ -4691,25 +4691,25 @@ function Xl(e, t = !1) {
4691
4691
  immediate: !0
4692
4692
  });
4693
4693
  const s = () => {
4694
- const a = Ft(Qe(e));
4695
- !a || n.value || (nn && (o = _t(
4696
- a,
4694
+ const i = Ft(Qe(e));
4695
+ !i || n.value || (nn && (o = _t(
4696
+ i,
4697
4697
  "touchmove",
4698
- (c) => {
4699
- Ql(c);
4698
+ (d) => {
4699
+ Ql(d);
4700
4700
  },
4701
4701
  { passive: !1 }
4702
- )), a.style.overflow = "hidden", n.value = !0);
4703
- }, i = () => {
4704
- const a = Ft(Qe(e));
4705
- !a || !n.value || (nn && (o == null || o()), a.style.overflow = r, zt.delete(a), n.value = !1);
4702
+ )), i.style.overflow = "hidden", n.value = !0);
4703
+ }, a = () => {
4704
+ const i = Ft(Qe(e));
4705
+ !i || !n.value || (nn && (o == null || o()), i.style.overflow = r, zt.delete(i), n.value = !1);
4706
4706
  };
4707
- return Er(i), j({
4707
+ return Er(a), j({
4708
4708
  get() {
4709
4709
  return n.value;
4710
4710
  },
4711
- set(a) {
4712
- a ? s() : i();
4711
+ set(i) {
4712
+ i ? s() : a();
4713
4713
  }
4714
4714
  });
4715
4715
  }
@@ -4726,8 +4726,8 @@ function Zl() {
4726
4726
  }
4727
4727
  Zl();
4728
4728
  class ec {
4729
- constructor(t, n, o, r, s, i) {
4730
- _e(this, "id"), _e(this, "rows"), _e(this, "columns"), _e(this, "config"), _e(this, "table"), _e(this, "display"), _e(this, "modal"), this.id = t || crypto.randomUUID(), this.rows = o, this.columns = ke(n), this.config = ke(r), this.table = s || ke(this.createTableObject()), this.display = this.createDisplayObject(i), this.modal = ke({ visible: !1 });
4729
+ constructor(t, n, o, r, s, a) {
4730
+ _e(this, "id"), _e(this, "rows"), _e(this, "columns"), _e(this, "config"), _e(this, "table"), _e(this, "display"), _e(this, "modal"), this.id = t || crypto.randomUUID(), this.rows = o, this.columns = ke(n), this.config = ke(r), this.table = s || ke(this.createTableObject()), this.display = this.createDisplayObject(a), this.modal = ke({ visible: !1 });
4731
4731
  }
4732
4732
  createTableObject() {
4733
4733
  const t = {};
@@ -4797,23 +4797,23 @@ const tc = {
4797
4797
  });
4798
4798
  return (r, s) => r.columns.length ? (I(), V("thead", tc, [
4799
4799
  M("tr", nc, [
4800
- E(t).zeroColumn ? (I(), V("th", {
4800
+ k(t).zeroColumn ? (I(), V("th", {
4801
4801
  key: 0,
4802
4802
  id: "header-index",
4803
4803
  class: Se([[
4804
4804
  n.value ? "sticky-index" : "",
4805
- E(t).config.view === "tree" ? "tree-index" : "",
4806
- E(t).config.view === "list-expansion" ? "list-expansion-index" : ""
4805
+ k(t).config.view === "tree" ? "tree-index" : "",
4806
+ k(t).config.view === "list-expansion" ? "list-expansion-index" : ""
4807
4807
  ], "list-index"])
4808
4808
  }, null, 2)) : de("", !0),
4809
- (I(!0), V(Ne, null, Ie(r.columns, (i, a) => (I(), V("th", {
4810
- key: i.name,
4809
+ (I(!0), V(Ne, null, Ie(r.columns, (a, i) => (I(), V("th", {
4810
+ key: a.name,
4811
4811
  tabindex: "-1",
4812
- style: re(o(i)),
4813
- class: Se(i.pinned ? "sticky-column" : "")
4812
+ style: re(o(a)),
4813
+ class: Se(a.pinned ? "sticky-column" : "")
4814
4814
  }, [
4815
4815
  ge(r.$slots, "default", {}, () => [
4816
- Eo(ue(i.label || String.fromCharCode(a + 97).toUpperCase()), 1)
4816
+ Eo(ue(a.label || String.fromCharCode(i + 97).toUpperCase()), 1)
4817
4817
  ])
4818
4818
  ], 6))), 128))
4819
4819
  ])
@@ -4849,75 +4849,75 @@ const tc = {
4849
4849
  config: { default: () => new Object() }
4850
4850
  },
4851
4851
  emits: ["update:modelValue"],
4852
- setup(e, { emit: t }) {
4853
- const n = t, o = Nt("table"), r = e.modelValue ? e.modelValue : e.rows, s = new ec(e.id, e.columns, r, e.config);
4854
- ft(s.id, s), z(
4855
- () => s.rows,
4856
- (c) => {
4857
- n("update:modelValue", c);
4852
+ setup(e, { expose: t, emit: n }) {
4853
+ const o = n, r = Nt("table"), s = e.modelValue ? e.modelValue : e.rows, a = new ec(e.id, e.columns, s, e.config);
4854
+ ft(a.id, a), z(
4855
+ () => a.rows,
4856
+ (l) => {
4857
+ o("update:modelValue", l);
4858
4858
  },
4859
4859
  { deep: !0 }
4860
4860
  ), Be(() => {
4861
- e.columns.some((c) => c.pinned) && (i(), s.config.view === "tree" && _r(o, i, { childList: !0, subtree: !0 }));
4861
+ e.columns.some((l) => l.pinned) && (i(), a.config.view === "tree" && _r(r, i, { childList: !0, subtree: !0 }));
4862
4862
  });
4863
4863
  const i = () => {
4864
- const c = o.value, l = c.rows[0], u = c.rows[1], d = l ? Array.from(l.cells) : [];
4865
- for (const [p, f] of d.entries()) {
4866
- const m = u.cells[p];
4867
- m && (f.style.width = `${m.offsetWidth}px`);
4864
+ const l = r.value, c = l.rows[0], u = l.rows[1], p = c ? Array.from(c.cells) : [];
4865
+ for (const [f, m] of p.entries()) {
4866
+ const v = u.cells[f];
4867
+ v && (m.style.width = `${v.offsetWidth}px`);
4868
4868
  }
4869
- for (const p of c.rows) {
4870
- let f = 0;
4871
- const m = [];
4872
- for (const v of p.cells)
4873
- (v.classList.contains("sticky-column") || v.classList.contains("sticky-index")) && (v.style.left = `${f}px`, f += v.offsetWidth, m.push(v));
4874
- m.length > 0 && m[m.length - 1].classList.add("sticky-column-edge");
4869
+ for (const f of l.rows) {
4870
+ let m = 0;
4871
+ const v = [];
4872
+ for (const _ of f.cells)
4873
+ (_.classList.contains("sticky-column") || _.classList.contains("sticky-index")) && (_.style.left = `${m}px`, m += _.offsetWidth, v.push(_));
4874
+ v.length > 0 && v[v.length - 1].classList.add("sticky-column-edge");
4875
4875
  }
4876
- }, a = (c) => {
4877
- var l;
4878
- c.target instanceof Node && (l = s.modal.parent) != null && l.contains(c.target) || s.modal.visible && (s.modal.visible = !1);
4876
+ }, d = (l) => {
4877
+ var c;
4878
+ l.target instanceof Node && (c = a.modal.parent) != null && c.contains(l.target) || a.modal.visible && (a.modal.visible = !1);
4879
4879
  };
4880
- return window.addEventListener("keydown", (c) => {
4881
- if (c.key === "Escape" && s.modal.visible) {
4882
- s.modal.visible = !1;
4883
- const l = s.modal.parent;
4884
- l && Re().then(() => {
4885
- l.focus();
4880
+ return window.addEventListener("keydown", (l) => {
4881
+ if (l.key === "Escape" && a.modal.visible) {
4882
+ a.modal.visible = !1;
4883
+ const c = a.modal.parent;
4884
+ c && Re().then(() => {
4885
+ c.focus();
4886
4886
  });
4887
4887
  }
4888
- }), (c, l) => Ze((I(), V("table", {
4888
+ }), t({ tableData: a }), (l, c) => Ze((I(), V("table", {
4889
4889
  ref: "table",
4890
4890
  class: "atable",
4891
- style: re({ width: E(s).config.fullWidth ? "100%" : "auto" })
4891
+ style: re({ width: k(a).config.fullWidth ? "100%" : "auto" })
4892
4892
  }, [
4893
- ge(c.$slots, "header", { data: E(s) }, () => [
4893
+ ge(l.$slots, "header", { data: k(a) }, () => [
4894
4894
  Et(oc, {
4895
- columns: E(s).columns,
4896
- tableid: E(s).id
4895
+ columns: k(a).columns,
4896
+ tableid: k(a).id
4897
4897
  }, null, 8, ["columns", "tableid"])
4898
4898
  ], !0),
4899
4899
  M("tbody", null, [
4900
- ge(c.$slots, "body", { data: E(s) }, () => [
4901
- (I(!0), V(Ne, null, Ie(E(s).rows, (u, d) => (I(), xe(zl, {
4900
+ ge(l.$slots, "body", { data: k(a) }, () => [
4901
+ (I(!0), V(Ne, null, Ie(k(a).rows, (u, p) => (I(), xe(zl, {
4902
4902
  key: u.id,
4903
4903
  row: u,
4904
- rowIndex: d,
4905
- tableid: E(s).id
4904
+ rowIndex: p,
4905
+ tableid: k(a).id
4906
4906
  }, {
4907
4907
  default: kt(() => [
4908
- (I(!0), V(Ne, null, Ie(E(s).columns, (p, f) => (I(), xe(Hl, {
4909
- key: p.name,
4910
- tableid: E(s).id,
4911
- col: p,
4908
+ (I(!0), V(Ne, null, Ie(k(a).columns, (f, m) => (I(), xe(Hl, {
4909
+ key: f.name,
4910
+ tableid: k(a).id,
4911
+ col: f,
4912
4912
  spellcheck: "false",
4913
- pinned: p.pinned,
4914
- rowIndex: d,
4915
- colIndex: f,
4916
- component: p.cellComponent,
4913
+ pinned: f.pinned,
4914
+ rowIndex: p,
4915
+ colIndex: m,
4916
+ component: f.cellComponent,
4917
4917
  style: re({
4918
- textAlign: (p == null ? void 0 : p.align) || "center",
4919
- minWidth: (p == null ? void 0 : p.width) || "40ch",
4920
- width: E(s).config.fullWidth ? "auto" : null
4918
+ textAlign: (f == null ? void 0 : f.align) || "center",
4919
+ minWidth: (f == null ? void 0 : f.width) || "40ch",
4920
+ width: k(a).config.fullWidth ? "auto" : null
4921
4921
  })
4922
4922
  }, null, 8, ["tableid", "col", "pinned", "rowIndex", "colIndex", "component", "style"]))), 128))
4923
4923
  ]),
@@ -4925,33 +4925,33 @@ const tc = {
4925
4925
  }, 1032, ["row", "rowIndex", "tableid"]))), 128))
4926
4926
  ], !0)
4927
4927
  ]),
4928
- ge(c.$slots, "footer", { data: E(s) }, void 0, !0),
4929
- ge(c.$slots, "modal", { data: E(s) }, () => [
4928
+ ge(l.$slots, "footer", { data: k(a) }, void 0, !0),
4929
+ ge(l.$slots, "modal", { data: k(a) }, () => [
4930
4930
  Ze(Et(rc, {
4931
- colIndex: E(s).modal.colIndex,
4932
- rowIndex: E(s).modal.rowIndex,
4933
- tableid: E(s).id,
4931
+ colIndex: k(a).modal.colIndex,
4932
+ rowIndex: k(a).modal.rowIndex,
4933
+ tableid: k(a).id,
4934
4934
  style: re({
4935
- left: E(s).modal.left + "px",
4936
- top: E(s).modal.top + "px",
4937
- maxWidth: E(s).modal.width + "px"
4935
+ left: k(a).modal.left + "px",
4936
+ top: k(a).modal.top + "px",
4937
+ maxWidth: k(a).modal.width + "px"
4938
4938
  })
4939
4939
  }, {
4940
4940
  default: kt(() => [
4941
- (I(), xe(rn(E(s).modal.component), sn({
4942
- key: `${E(s).modal.rowIndex}:${E(s).modal.colIndex}`,
4943
- colIndex: E(s).modal.colIndex,
4944
- rowIndex: E(s).modal.rowIndex,
4945
- tableid: E(s).id
4946
- }, E(s).modal.componentProps), null, 16, ["colIndex", "rowIndex", "tableid"]))
4941
+ (I(), xe(rn(k(a).modal.component), sn({
4942
+ key: `${k(a).modal.rowIndex}:${k(a).modal.colIndex}`,
4943
+ colIndex: k(a).modal.colIndex,
4944
+ rowIndex: k(a).modal.rowIndex,
4945
+ tableid: k(a).id
4946
+ }, k(a).modal.componentProps), null, 16, ["colIndex", "rowIndex", "tableid"]))
4947
4947
  ]),
4948
4948
  _: 1
4949
4949
  }, 8, ["colIndex", "rowIndex", "tableid", "style"]), [
4950
- [on, E(s).modal.visible]
4950
+ [on, k(a).modal.visible]
4951
4951
  ])
4952
4952
  ], !0)
4953
4953
  ], 4)), [
4954
- [E(Yl), a]
4954
+ [k(Yl), d]
4955
4955
  ]);
4956
4956
  }
4957
4957
  }), ac = (e, t) => {
@@ -4959,14 +4959,14 @@ const tc = {
4959
4959
  for (const [o, r] of t)
4960
4960
  n[o] = r;
4961
4961
  return n;
4962
- }, ic = /* @__PURE__ */ ac(sc, [["__scopeId", "data-v-5fc77917"]]), lc = /* @__PURE__ */ Z({
4962
+ }, ic = /* @__PURE__ */ ac(sc, [["__scopeId", "data-v-183c4dd3"]]), lc = /* @__PURE__ */ Z({
4963
4963
  __name: "Records",
4964
4964
  setup(e) {
4965
4965
  const { stonecrop: t, isReady: n } = jo(), o = { view: "list" };
4966
- return (r, s) => E(n) ? (I(), xe(E(ic), {
4966
+ return (r, s) => k(n) ? (I(), xe(k(ic), {
4967
4967
  key: 0,
4968
- columns: E(t).schema.schema.toArray(),
4969
- rows: E(t).store.records,
4968
+ columns: k(t).schema.schema.toArray(),
4969
+ rows: k(t).store.records,
4970
4970
  config: o
4971
4971
  }, null, 8, ["columns", "rows"])) : de("", !0);
4972
4972
  }
@@ -4986,26 +4986,26 @@ const tc = {
4986
4986
  breadcrumbs: { default: () => [] }
4987
4987
  },
4988
4988
  setup(e) {
4989
- const t = C(!0), n = C(!1), o = C(""), r = Nt("searchinput"), s = j(() => t.value ? "unrotated" : "rotated"), i = () => {
4989
+ const t = C(!0), n = C(!1), o = C(""), r = Nt("searchinput"), s = j(() => t.value ? "unrotated" : "rotated"), a = () => {
4990
4990
  t.value = !t.value;
4991
- }, a = async () => {
4991
+ }, i = async () => {
4992
4992
  n.value = !n.value, await Re(() => {
4993
4993
  r.value.focus();
4994
4994
  });
4995
- }, c = (d) => {
4996
- d.preventDefault(), d.stopPropagation();
4997
- }, l = async (d) => {
4998
- d.preventDefault(), d.stopPropagation(), await a();
4999
- }, u = () => {
4995
+ }, d = (u) => {
4996
+ u.preventDefault(), u.stopPropagation();
4997
+ }, l = async (u) => {
4998
+ u.preventDefault(), u.stopPropagation(), await i();
4999
+ }, c = () => {
5000
5000
  };
5001
- return (d, p) => {
5001
+ return (u, p) => {
5002
5002
  const f = Vr("router-link");
5003
5003
  return I(), V("footer", null, [
5004
5004
  M("ul", cc, [
5005
5005
  M("li", {
5006
5006
  class: "hidebreadcrumbs",
5007
- onClick: i,
5008
- onKeydown: ct(i, ["enter"])
5007
+ onClick: a,
5008
+ onKeydown: ct(a, ["enter"])
5009
5009
  }, [
5010
5010
  M("a", uc, [
5011
5011
  M("div", {
@@ -5015,8 +5015,8 @@ const tc = {
5015
5015
  ], 32),
5016
5016
  M("li", {
5017
5017
  class: "hometab",
5018
- onClick: u,
5019
- onKeydown: ct(u, ["enter"]),
5018
+ onClick: c,
5019
+ onKeydown: ct(c, ["enter"]),
5020
5020
  style: re({ display: t.value ? "block" : "none" })
5021
5021
  }, [
5022
5022
  Et(f, {
@@ -5046,8 +5046,8 @@ const tc = {
5046
5046
  ], 36),
5047
5047
  M("li", {
5048
5048
  class: "searchtab",
5049
- onClick: a,
5050
- onKeydown: ct(a, ["enter"]),
5049
+ onClick: i,
5050
+ onKeydown: ct(i, ["enter"]),
5051
5051
  style: re({ display: t.value ? "block" : "none" })
5052
5052
  }, [
5053
5053
  M("a", pc, [
@@ -5068,8 +5068,8 @@ const tc = {
5068
5068
  "onUpdate:modelValue": p[0] || (p[0] = (m) => o.value = m),
5069
5069
  ref: "searchinput",
5070
5070
  style: re({ display: n.value ? "block" : "none" }),
5071
- onClick: p[1] || (p[1] = (m) => c(m)),
5072
- onInput: p[2] || (p[2] = (m) => c(m)),
5071
+ onClick: p[1] || (p[1] = (m) => d(m)),
5072
+ onInput: p[2] || (p[2] = (m) => d(m)),
5073
5073
  onBlur: p[3] || (p[3] = (m) => l(m)),
5074
5074
  onKeydown: p[4] || (p[4] = ct((m) => l(m), ["enter"])),
5075
5075
  type: "text"
@@ -5078,7 +5078,7 @@ const tc = {
5078
5078
  ])
5079
5079
  ])
5080
5080
  ], 36),
5081
- (I(!0), V(Ne, null, Ie(d.breadcrumbs, (m) => (I(), V("li", {
5081
+ (I(!0), V(Ne, null, Ie(u.breadcrumbs, (m) => (I(), V("li", {
5082
5082
  key: m.title,
5083
5083
  style: re({ display: t.value ? "block" : "none" })
5084
5084
  }, [