@stonecrop/desktop 0.2.41 → 0.2.43

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,11 +1,11 @@
1
- import { defineComponent as Z, ref as C, onMounted as Ue, openBlock as I, createElementBlock as V, normalizeClass as Ne, createElementVNode as L, Fragment as Ie, renderList as Ce, toDisplayString as de, createCommentVNode as we, withDirectives as et, vShow as an, computed as R, createBlock as Se, resolveDynamicComponent as ln, mergeProps as cn, effectScope as $o, markRaw as Oe, inject as ae, onBeforeMount as Dr, shallowRef as Ar, toRaw as tt, unref as O, shallowReactive as Tr, watch as H, nextTick as Ve, hasInjectionContext as Rr, getCurrentInstance as We, reactive as $e, h as Oo, provide as mt, isRef as nt, isReactive as un, toRef as vt, watchEffect as Vr, getCurrentScope as Nt, onScopeDispose as It, toRefs as An, useTemplateRef as Ct, normalizeStyle as ue, renderSlot as ge, createVNode as $t, withCtx as Ot, createTextVNode as xo, onBeforeUnmount as jr, readonly as Lr, customRef as Mr, resolveComponent as Br, withKeys as ut, vModelText as Ur } from "vue";
1
+ import { defineComponent as Z, ref as P, onMounted as Ue, openBlock as C, createElementBlock as V, normalizeClass as Ne, createElementVNode as M, Fragment as Ie, renderList as Ce, toDisplayString as de, createCommentVNode as be, withDirectives as et, vShow as an, computed as R, createBlock as Se, resolveDynamicComponent as ln, mergeProps as cn, effectScope as $o, markRaw as Oe, inject as ae, onBeforeMount as Dr, shallowRef as Ar, toRaw as tt, unref as k, shallowReactive as Tr, watch as H, nextTick as Ve, hasInjectionContext as Rr, getCurrentInstance as We, reactive as $e, h as Oo, provide as mt, isRef as nt, isReactive as un, toRef as vt, watchEffect as Vr, getCurrentScope as Nt, onScopeDispose as It, toRefs as An, useTemplateRef as Ct, normalizeStyle as ue, renderSlot as ge, createVNode as $t, withCtx as Ot, createTextVNode as xo, onBeforeUnmount as jr, readonly as Lr, customRef as Mr, resolveComponent as Br, withKeys as ut, vModelText as Ur } from "vue";
2
2
  const Wr = { class: "action-menu-icon" }, Hr = ["onclick"], Fr = { key: 1 }, zr = ["onClick"], Gr = { class: "dropdown-container" }, qr = { class: "dropdown" }, Jr = ["onclick"], Kr = ["href"], Yr = { class: "dropdown-item" }, Qr = /* @__PURE__ */ Z({
3
3
  __name: "ActionSet",
4
4
  props: {
5
5
  elements: {}
6
6
  },
7
7
  setup(e) {
8
- const t = C(e.elements), n = C(!1), o = C(null), r = C(!1), s = C(!1);
8
+ const t = P(e.elements), n = P(!1), o = P(null), r = P(!1), s = P(!1);
9
9
  Ue(() => {
10
10
  i();
11
11
  });
@@ -16,23 +16,23 @@ const Wr = { class: "action-menu-icon" }, Hr = ["onclick"], Fr = { key: 1 }, zr
16
16
  r.value = !0, o.value = setTimeout(() => {
17
17
  r.value && (n.value = !0);
18
18
  }, 500);
19
- }, l = () => {
19
+ }, c = () => {
20
20
  r.value = !1, s.value = !1, clearTimeout(o.value), n.value = !1;
21
- }, d = (u) => {
22
- const c = !t.value[u].show;
23
- i(), t.value[u].show = c;
21
+ }, l = (u) => {
22
+ const d = !t.value[u].show;
23
+ i(), t.value[u].show = d;
24
24
  };
25
- return (u, c) => (I(), V("div", {
25
+ return (u, d) => (C(), V("div", {
26
26
  class: Ne([{ "open-set": n.value, "hovered-and-closed": s.value }, "action-set collapse"]),
27
27
  onMouseover: a,
28
- onMouseleave: l
28
+ onMouseleave: c
29
29
  }, [
30
- L("div", Wr, [
31
- L("div", {
30
+ M("div", Wr, [
31
+ M("div", {
32
32
  id: "chevron",
33
- onClick: c[0] || (c[0] = (p) => s.value = !s.value)
34
- }, c[1] || (c[1] = [
35
- L("svg", {
33
+ onClick: d[0] || (d[0] = (p) => s.value = !s.value)
34
+ }, d[1] || (d[1] = [
35
+ M("svg", {
36
36
  class: "leftBar",
37
37
  version: "1.1",
38
38
  id: "Layer_1",
@@ -45,9 +45,9 @@ const Wr = { class: "action-menu-icon" }, Hr = ["onclick"], Fr = { key: 1 }, zr
45
45
  width: "50",
46
46
  height: "50"
47
47
  }, [
48
- L("polygon", { points: "54.2,33.4 29.2,58.8 25,54.6 50,29.2 " })
48
+ M("polygon", { points: "54.2,33.4 29.2,58.8 25,54.6 50,29.2 " })
49
49
  ], -1),
50
- L("svg", {
50
+ M("svg", {
51
51
  class: "rightBar",
52
52
  version: "1.1",
53
53
  id: "Layer_1",
@@ -60,46 +60,46 @@ const Wr = { class: "action-menu-icon" }, Hr = ["onclick"], Fr = { key: 1 }, zr
60
60
  width: "50",
61
61
  height: "50"
62
62
  }, [
63
- L("polygon", { points: "70.8,58.8 45.8,33.4 50,29.2 75,54.6 " })
63
+ M("polygon", { points: "70.8,58.8 45.8,33.4 50,29.2 75,54.6 " })
64
64
  ], -1)
65
65
  ]))
66
66
  ]),
67
- c[2] || (c[2] = L("div", { style: { "margin-right": "30px" } }, null, -1)),
68
- (I(!0), V(Ie, null, Ce(t.value, (p, f) => (I(), V("div", {
67
+ d[2] || (d[2] = M("div", { style: { "margin-right": "30px" } }, null, -1)),
68
+ (C(!0), V(Ie, null, Ce(t.value, (p, f) => (C(), V("div", {
69
69
  class: "action-element",
70
70
  key: p.label
71
71
  }, [
72
- p.elementType == "button" ? (I(), V("button", {
72
+ p.elementType == "button" ? (C(), V("button", {
73
73
  key: 0,
74
74
  onclick: p.action,
75
75
  class: "button-default"
76
- }, de(p.label), 9, Hr)) : we("", !0),
77
- p.elementType == "dropdown" ? (I(), V("div", Fr, [
78
- L("button", {
76
+ }, de(p.label), 9, Hr)) : be("", !0),
77
+ p.elementType == "dropdown" ? (C(), V("div", Fr, [
78
+ M("button", {
79
79
  class: "button-default",
80
- onClick: (m) => d(f)
80
+ onClick: (h) => l(f)
81
81
  }, de(p.label), 9, zr),
82
- et(L("div", Gr, [
83
- L("div", qr, [
84
- (I(!0), V(Ie, null, Ce(p.actions, (m) => (I(), V("div", {
85
- key: m.label
82
+ et(M("div", Gr, [
83
+ M("div", qr, [
84
+ (C(!0), V(Ie, null, Ce(p.actions, (h) => (C(), V("div", {
85
+ key: h.label
86
86
  }, [
87
- m.action != null ? (I(), V("button", {
87
+ h.action != null ? (C(), V("button", {
88
88
  key: 0,
89
- onclick: m.action,
89
+ onclick: h.action,
90
90
  class: "dropdown-item"
91
- }, de(m.label), 9, Jr)) : m.link != null ? (I(), V("a", {
91
+ }, de(h.label), 9, Jr)) : h.link != null ? (C(), V("a", {
92
92
  key: 1,
93
- href: m.link
93
+ href: h.link
94
94
  }, [
95
- L("button", Yr, de(m.label), 1)
96
- ], 8, Kr)) : we("", !0)
95
+ M("button", Yr, de(h.label), 1)
96
+ ], 8, Kr)) : be("", !0)
97
97
  ]))), 128))
98
98
  ])
99
99
  ], 512), [
100
100
  [an, p.show]
101
101
  ])
102
- ])) : we("", !0)
102
+ ])) : be("", !0)
103
103
  ]))), 128))
104
104
  ], 34));
105
105
  }
@@ -110,7 +110,7 @@ const Wr = { class: "action-menu-icon" }, Hr = ["onclick"], Fr = { key: 1 }, zr
110
110
  return n;
111
111
  }, Xr = /* @__PURE__ */ dn(Qr, [["__scopeId", "data-v-4fb5c934"]]), Zr = {};
112
112
  function es(e, t) {
113
- return I(), V("dialog");
113
+ return C(), V("dialog");
114
114
  }
115
115
  const ts = /* @__PURE__ */ dn(Zr, [["render", es]]), ns = (e, t) => {
116
116
  const n = e.__vccOpts || e;
@@ -128,33 +128,33 @@ const os = { class: "aform" }, rs = /* @__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) => {
131
+ const n = t, o = P(e.data || {}), r = (i) => {
132
132
  let a = {};
133
- for (const [l, d] of Object.entries(i))
134
- ["component", "fieldtype"].includes(l) || (a[l] = d), l === "rows" && d && d.length === 0 && (a.rows = o.value[i.fieldname]);
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
135
  return a;
136
136
  }, s = R({
137
137
  get: () => e.modelValue.map((i, a) => R({
138
138
  get() {
139
139
  return i.value;
140
140
  },
141
- set: (l) => {
142
- e.modelValue[a].value = l, n("update:modelValue", e.modelValue);
141
+ set: (c) => {
142
+ e.modelValue[a].value = c, n("update:modelValue", e.modelValue);
143
143
  }
144
144
  })),
145
145
  set: () => {
146
146
  }
147
147
  });
148
- return (i, a) => (I(), V("form", os, [
149
- (I(!0), V(Ie, null, Ce(i.modelValue, (l, d) => (I(), Se(ln(l.component), cn({
150
- key: d,
151
- schema: l,
152
- modelValue: s.value[d].value,
153
- "onUpdate:modelValue": (u) => s.value[d].value = u,
154
- data: o.value[l.fieldname],
148
+ return (i, a) => (C(), V("form", os, [
149
+ (C(!0), V(Ie, null, Ce(i.modelValue, (c, l) => (C(), Se(ln(c.component), cn({
150
+ key: l,
151
+ schema: c,
152
+ modelValue: s.value[l].value,
153
+ "onUpdate:modelValue": (u) => s.value[l].value = u,
154
+ data: o.value[c.fieldname],
155
155
  readonly: i.readonly,
156
156
  ref_for: !0
157
- }, r(l)), null, 16, ["schema", "modelValue", "onUpdate:modelValue", "data", "readonly"]))), 128))
157
+ }, r(c)), null, 16, ["schema", "modelValue", "onUpdate:modelValue", "data", "readonly"]))), 128))
158
158
  ]));
159
159
  }
160
160
  }), ss = /* @__PURE__ */ ns(rs, [["__scopeId", "data-v-15ed36be"]]);
@@ -366,23 +366,23 @@ class ms {
366
366
  }, n && n.on(ps, (i, a) => {
367
367
  i === this.plugin.id && this.fallbacks.setSettings(a);
368
368
  }), this.proxiedOn = new Proxy({}, {
369
- get: (i, a) => this.target ? this.target.on[a] : (...l) => {
369
+ get: (i, a) => this.target ? this.target.on[a] : (...c) => {
370
370
  this.onQueue.push({
371
371
  method: a,
372
- args: l
372
+ args: c
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) ? (...l) => (this.targetQueue.push({
376
+ get: (i, a) => this.target ? this.target[a] : a === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(a) ? (...c) => (this.targetQueue.push({
377
377
  method: a,
378
- args: l,
378
+ args: c,
379
379
  resolve: () => {
380
380
  }
381
- }), this.fallbacks[a](...l)) : (...l) => new Promise((d) => {
381
+ }), this.fallbacks[a](...c)) : (...c) => new Promise((l) => {
382
382
  this.targetQueue.push({
383
383
  method: a,
384
- args: l,
385
- resolve: d
384
+ args: c,
385
+ resolve: l
386
386
  });
387
387
  })
388
388
  });
@@ -454,13 +454,13 @@ function yt(e) {
454
454
  t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
455
455
  }
456
456
  }
457
- const wt = typeof navigator == "object" ? navigator : { userAgent: "" }, Do = /Macintosh/.test(wt.userAgent) && /AppleWebKit/.test(wt.userAgent) && !/Safari/.test(wt.userAgent), Ao = xe ? (
457
+ const bt = typeof navigator == "object" ? navigator : { userAgent: "" }, Do = /Macintosh/.test(bt.userAgent) && /AppleWebKit/.test(bt.userAgent) && !/Safari/.test(bt.userAgent), Ao = xe ? (
458
458
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
459
459
  typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Do ? gs : (
460
460
  // Use msSaveOrOpenBlob as a second approach
461
- "msSaveOrOpenBlob" in wt ? ys : (
461
+ "msSaveOrOpenBlob" in bt ? ys : (
462
462
  // Fallback to using FileReader and a popup
463
- ws
463
+ bs
464
464
  )
465
465
  )
466
466
  ) : () => {
@@ -486,17 +486,17 @@ function ys(e, t = "download", n) {
486
486
  else
487
487
  navigator.msSaveOrOpenBlob(vs(e, n), t);
488
488
  }
489
- function ws(e, t, n, o) {
489
+ function bs(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 fn(e, t, n);
492
492
  const r = e.type === "application/octet-stream", s = /constructor/i.test(String(Tn.HTMLElement)) || "safari" in Tn, i = /CriOS\/[\d]+/.test(navigator.userAgent);
493
493
  if ((i || r && s || Do) && typeof FileReader < "u") {
494
494
  const a = new FileReader();
495
495
  a.onloadend = function() {
496
- let l = a.result;
497
- if (typeof l != "string")
496
+ let c = a.result;
497
+ if (typeof c != "string")
498
498
  throw o = null, new Error("Wrong reader.result type");
499
- l = i ? l : l.replace(/^data:[^;]*;/, "data:attachment/file;"), o ? o.location.href = l : location.assign(l), o = null;
499
+ c = i ? c : c.replace(/^data:[^;]*;/, "data:attachment/file;"), o ? o.location.href = c : location.assign(c), o = null;
500
500
  }, a.readAsDataURL(e);
501
501
  } else {
502
502
  const a = URL.createObjectURL(e);
@@ -519,7 +519,7 @@ function To() {
519
519
  function Ro(e) {
520
520
  return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (W('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
521
521
  }
522
- async function bs(e) {
522
+ async function ws(e) {
523
523
  if (!To())
524
524
  try {
525
525
  await navigator.clipboard.writeText(JSON.stringify(e.state.value)), W("Global state copied to clipboard.");
@@ -588,10 +588,10 @@ function ne(e) {
588
588
  }
589
589
  };
590
590
  }
591
- const jo = "🍍 Pinia (root)", bt = "_root";
591
+ const jo = "🍍 Pinia (root)", wt = "_root";
592
592
  function Os(e) {
593
593
  return hn(e) ? {
594
- id: bt,
594
+ id: wt,
595
595
  label: jo
596
596
  } : {
597
597
  id: e.$id,
@@ -684,7 +684,7 @@ function Cs(e, t) {
684
684
  {
685
685
  icon: "content_copy",
686
686
  action: () => {
687
- bs(t);
687
+ ws(t);
688
688
  },
689
689
  tooltip: "Serialize and copy the state"
690
690
  },
@@ -742,19 +742,19 @@ function Cs(e, t) {
742
742
  }
743
743
  } : (
744
744
  // NOTE: workaround to unwrap transferred refs
745
- Object.keys(a.$state).reduce((l, d) => (l[d] = a.$state[d], l), {})
745
+ Object.keys(a.$state).reduce((c, l) => (c[l] = a.$state[l], c), {})
746
746
  )
747
747
  }), a._getters && a._getters.length && o.instanceData.state.push({
748
748
  type: xt(a.$id),
749
749
  key: "getters",
750
750
  editable: !1,
751
- value: a._getters.reduce((l, d) => {
751
+ value: a._getters.reduce((c, l) => {
752
752
  try {
753
- l[d] = a[d];
753
+ c[l] = a[l];
754
754
  } catch (u) {
755
- l[d] = u;
755
+ c[l] = u;
756
756
  }
757
- return l;
757
+ return c;
758
758
  }, {})
759
759
  });
760
760
  });
@@ -766,14 +766,14 @@ function Cs(e, t) {
766
766
  }
767
767
  }), globalThis.$pinia = t, n.on.getInspectorState((o) => {
768
768
  if (o.app === e && o.inspectorId === G) {
769
- const r = o.nodeId === bt ? t : t._s.get(o.nodeId);
769
+ const r = o.nodeId === wt ? t : t._s.get(o.nodeId);
770
770
  if (!r)
771
771
  return;
772
- r && (o.nodeId !== bt && (globalThis.$store = tt(r)), o.state = xs(r));
772
+ r && (o.nodeId !== wt && (globalThis.$store = tt(r)), o.state = xs(r));
773
773
  }
774
774
  }), n.on.editInspectorState((o, r) => {
775
775
  if (o.app === e && o.inspectorId === G) {
776
- const s = o.nodeId === bt ? t : t._s.get(o.nodeId);
776
+ const s = o.nodeId === wt ? t : t._s.get(o.nodeId);
777
777
  if (!s)
778
778
  return W(`store "${o.nodeId}" not found`, "error");
779
779
  const { path: i } = o;
@@ -817,57 +817,57 @@ function Ps(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: l, args: d }) => {
820
+ t.$onAction(({ after: i, onError: a, name: c, args: l }) => {
821
821
  const u = Lo++;
822
822
  n.addTimelineEvent({
823
823
  layerId: ke,
824
824
  event: {
825
825
  time: o(),
826
- title: "🛫 " + l,
826
+ title: "🛫 " + c,
827
827
  subtitle: "start",
828
828
  data: {
829
829
  store: ne(t.$id),
830
- action: ne(l),
831
- args: d
830
+ action: ne(c),
831
+ args: l
832
832
  },
833
833
  groupId: u
834
834
  }
835
- }), i((c) => {
835
+ }), i((d) => {
836
836
  ye = void 0, n.addTimelineEvent({
837
837
  layerId: ke,
838
838
  event: {
839
839
  time: o(),
840
- title: "🛬 " + l,
840
+ title: "🛬 " + c,
841
841
  subtitle: "end",
842
842
  data: {
843
843
  store: ne(t.$id),
844
- action: ne(l),
845
- args: d,
846
- result: c
844
+ action: ne(c),
845
+ args: l,
846
+ result: d
847
847
  },
848
848
  groupId: u
849
849
  }
850
850
  });
851
- }), a((c) => {
851
+ }), a((d) => {
852
852
  ye = void 0, n.addTimelineEvent({
853
853
  layerId: ke,
854
854
  event: {
855
855
  time: o(),
856
856
  logType: "error",
857
- title: "💥 " + l,
857
+ title: "💥 " + c,
858
858
  subtitle: "end",
859
859
  data: {
860
860
  store: ne(t.$id),
861
- action: ne(l),
862
- args: d,
863
- error: c
861
+ action: ne(c),
862
+ args: l,
863
+ error: d
864
864
  },
865
865
  groupId: u
866
866
  }
867
867
  });
868
868
  });
869
869
  }, !0), t._customProperties.forEach((i) => {
870
- H(() => O(t[i]), (a, l) => {
870
+ H(() => k(t[i]), (a, c) => {
871
871
  n.notifyComponentUpdate(), n.sendInspectorState(G), Te && n.addTimelineEvent({
872
872
  layerId: ke,
873
873
  event: {
@@ -876,22 +876,22 @@ function Ps(e, t) {
876
876
  subtitle: i,
877
877
  data: {
878
878
  newValue: a,
879
- oldValue: l
879
+ oldValue: c
880
880
  },
881
881
  groupId: ye
882
882
  }
883
883
  });
884
884
  }, { deep: !0 });
885
- }), t.$subscribe(({ events: i, type: a }, l) => {
885
+ }), t.$subscribe(({ events: i, type: a }, c) => {
886
886
  if (n.notifyComponentUpdate(), n.sendInspectorState(G), !Te)
887
887
  return;
888
- const d = {
888
+ const l = {
889
889
  time: o(),
890
890
  title: Ns(a),
891
891
  data: Is({ store: ne(t.$id) }, Ss(i)),
892
892
  groupId: ye
893
893
  };
894
- a === se.patchFunction ? d.subtitle = "⤵️" : a === se.patchObject ? d.subtitle = "🧩" : i && !Array.isArray(i) && (d.subtitle = i.type), i && (d.data["rawEvent(s)"] = {
894
+ a === se.patchFunction ? l.subtitle = "⤵️" : a === se.patchObject ? l.subtitle = "🧩" : i && !Array.isArray(i) && (l.subtitle = i.type), i && (l.data["rawEvent(s)"] = {
895
895
  _custom: {
896
896
  display: "DebuggerEvent",
897
897
  type: "object",
@@ -900,7 +900,7 @@ function Ps(e, t) {
900
900
  }
901
901
  }), n.addTimelineEvent({
902
902
  layerId: ke,
903
- event: d
903
+ event: l
904
904
  });
905
905
  }, { detached: !0, flush: "sync" });
906
906
  const r = t._hotUpdate;
@@ -930,11 +930,11 @@ function Rn(e, t, n) {
930
930
  for (const r in o)
931
931
  e[r] = function() {
932
932
  const s = Lo, i = n ? new Proxy(e, {
933
- get(...l) {
934
- return ye = s, Reflect.get(...l);
933
+ get(...c) {
934
+ return ye = s, Reflect.get(...c);
935
935
  },
936
- set(...l) {
937
- return ye = s, Reflect.set(...l);
936
+ set(...c) {
937
+ return ye = s, Reflect.set(...c);
938
938
  }
939
939
  }) : e;
940
940
  ye = s;
@@ -959,7 +959,7 @@ function Ds({ app: e, store: t, options: n }) {
959
959
  }
960
960
  }
961
961
  function As() {
962
- const e = $o(!0), t = e.run(() => C({}));
962
+ const e = $o(!0), t = e.run(() => P({}));
963
963
  let n = [], o = [];
964
964
  const r = Oe({
965
965
  install(s) {
@@ -1027,56 +1027,56 @@ function Ln(e) {
1027
1027
  }
1028
1028
  function Mn(e, t, n, o) {
1029
1029
  const { state: r, actions: s, getters: i } = t, a = n.state.value[e];
1030
- let l;
1031
- function d() {
1030
+ let c;
1031
+ function l() {
1032
1032
  !a && (process.env.NODE_ENV === "production" || !o) && (n.state.value[e] = r ? r() : {});
1033
1033
  const u = process.env.NODE_ENV !== "production" && o ? (
1034
1034
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
1035
- An(C(r ? r() : {}).value)
1035
+ An(P(r ? r() : {}).value)
1036
1036
  ) : An(n.state.value[e]);
1037
- return Q(u, s, Object.keys(i || {}).reduce((c, 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}".`), c[p] = Oe(R(() => {
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] = Oe(R(() => {
1038
1038
  ot(n);
1039
1039
  const f = n._s.get(e);
1040
1040
  return i[p].call(f, f);
1041
- })), c), {}));
1041
+ })), d), {}));
1042
1042
  }
1043
- return l = Xt(e, d, t, n, o, !0), l;
1043
+ return c = Xt(e, l, t, n, o, !0), c;
1044
1044
  }
1045
1045
  function Xt(e, t, n = {}, o, r, s) {
1046
1046
  let i;
1047
1047
  const a = Q({ actions: {} }, n);
1048
1048
  if (process.env.NODE_ENV !== "production" && !o._e.active)
1049
1049
  throw new Error("Pinia destroyed");
1050
- const l = { deep: !0 };
1051
- process.env.NODE_ENV !== "production" && !No && (l.onTrigger = (b) => {
1052
- d ? f = b : d == !1 && !$._hotUpdating && (Array.isArray(f) ? f.push(b) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
1050
+ const c = { deep: !0 };
1051
+ process.env.NODE_ENV !== "production" && !No && (c.onTrigger = (w) => {
1052
+ l ? f = w : l == !1 && !E._hotUpdating && (Array.isArray(f) ? f.push(w) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
1053
1053
  });
1054
- let d, u, c = [], p = [], f;
1055
- const m = o.state.value[e];
1056
- !s && !m && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
1057
- const g = C({});
1058
- let x;
1059
- function k(b) {
1060
- let w;
1061
- d = u = !1, process.env.NODE_ENV !== "production" && (f = []), typeof b == "function" ? (b(o.state.value[e]), w = {
1054
+ let l, u, d = [], p = [], f;
1055
+ const h = o.state.value[e];
1056
+ !s && !h && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
1057
+ const g = P({});
1058
+ let $;
1059
+ function S(w) {
1060
+ let b;
1061
+ l = u = !1, process.env.NODE_ENV !== "production" && (f = []), typeof w == "function" ? (w(o.state.value[e]), b = {
1062
1062
  type: se.patchFunction,
1063
1063
  storeId: e,
1064
1064
  events: f
1065
- }) : (Qt(o.state.value[e], b), w = {
1065
+ }) : (Qt(o.state.value[e], w), b = {
1066
1066
  type: se.patchObject,
1067
- payload: b,
1067
+ payload: w,
1068
1068
  storeId: e,
1069
1069
  events: f
1070
1070
  });
1071
- const j = x = Symbol();
1071
+ const L = $ = Symbol();
1072
1072
  Ve().then(() => {
1073
- x === j && (d = !0);
1074
- }), u = !0, Ae(c, w, o.state.value[e]);
1073
+ $ === L && (l = !0);
1074
+ }), u = !0, Ae(d, b, o.state.value[e]);
1075
1075
  }
1076
- const _ = s ? function() {
1077
- const { state: b } = n, w = b ? b() : {};
1078
- this.$patch((j) => {
1079
- Q(j, w);
1076
+ const x = s ? function() {
1077
+ const { state: w } = n, b = w ? w() : {};
1078
+ this.$patch((L) => {
1079
+ Q(L, b);
1080
1080
  });
1081
1081
  } : (
1082
1082
  /* istanbul ignore next */
@@ -1084,13 +1084,13 @@ function Xt(e, t, n = {}, o, r, s) {
1084
1084
  throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
1085
1085
  } : Bo
1086
1086
  );
1087
- function D() {
1088
- i.stop(), c = [], p = [], o._s.delete(e);
1087
+ function O() {
1088
+ i.stop(), d = [], p = [], o._s.delete(e);
1089
1089
  }
1090
- const U = (b, w = "") => {
1091
- if (jn in b)
1092
- return b[Mt] = w, b;
1093
- const j = function() {
1090
+ const j = (w, b = "") => {
1091
+ if (jn in w)
1092
+ return w[Mt] = b, w;
1093
+ const L = function() {
1094
1094
  ot(o);
1095
1095
  const K = Array.from(arguments), te = [], He = [];
1096
1096
  function Fe(z) {
@@ -1101,20 +1101,20 @@ function Xt(e, t, n = {}, o, r, s) {
1101
1101
  }
1102
1102
  Ae(p, {
1103
1103
  args: K,
1104
- name: j[Mt],
1105
- store: $,
1104
+ name: L[Mt],
1105
+ store: E,
1106
1106
  after: Fe,
1107
1107
  onError: lt
1108
1108
  });
1109
1109
  let re;
1110
1110
  try {
1111
- re = b.apply(this && this.$id === e ? this : $, K);
1111
+ re = w.apply(this && this.$id === e ? this : E, K);
1112
1112
  } catch (z) {
1113
1113
  throw Ae(He, z), z;
1114
1114
  }
1115
1115
  return re instanceof Promise ? re.then((z) => (Ae(te, z), z)).catch((z) => (Ae(He, z), Promise.reject(z))) : (Ae(te, re), re);
1116
1116
  };
1117
- return j[jn] = !0, j[Mt] = w, j;
1117
+ return L[jn] = !0, L[Mt] = b, L;
1118
1118
  }, q = /* @__PURE__ */ Oe({
1119
1119
  actions: {},
1120
1120
  getters: {},
@@ -1125,20 +1125,20 @@ function Xt(e, t, n = {}, o, r, s) {
1125
1125
  // _s: scope,
1126
1126
  $id: e,
1127
1127
  $onAction: Vn.bind(null, p),
1128
- $patch: k,
1129
- $reset: _,
1130
- $subscribe(b, w = {}) {
1131
- const j = Vn(c, b, w.detached, () => K()), K = i.run(() => H(() => o.state.value[e], (te) => {
1132
- (w.flush === "sync" ? u : d) && b({
1128
+ $patch: S,
1129
+ $reset: x,
1130
+ $subscribe(w, b = {}) {
1131
+ const L = Vn(d, w, b.detached, () => K()), K = i.run(() => H(() => o.state.value[e], (te) => {
1132
+ (b.flush === "sync" ? u : l) && w({
1133
1133
  storeId: e,
1134
1134
  type: se.direct,
1135
1135
  events: f
1136
1136
  }, te);
1137
- }, Q({}, l, w)));
1138
- return j;
1137
+ }, Q({}, c, b)));
1138
+ return L;
1139
1139
  },
1140
- $dispose: D
1141
- }, $ = $e(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && xe ? Q(
1140
+ $dispose: O
1141
+ }, E = $e(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && xe ? Q(
1142
1142
  {
1143
1143
  _hmrPayload: q,
1144
1144
  _customProperties: Oe(/* @__PURE__ */ new Set())
@@ -1148,113 +1148,113 @@ function Xt(e, t, n = {}, o, r, s) {
1148
1148
  // must be added later
1149
1149
  // setupStore
1150
1150
  ) : ee);
1151
- o._s.set(e, $);
1152
- const oe = (o._a && o._a.runWithContext || Ts)(() => o._e.run(() => (i = $o()).run(() => t({ action: U }))));
1153
- for (const b in oe) {
1154
- const w = oe[b];
1155
- if (nt(w) && !Ln(w) || un(w))
1156
- process.env.NODE_ENV !== "production" && r ? dt(g.value, b, vt(oe, b)) : s || (m && Vs(w) && (nt(w) ? w.value = m[b] : Qt(w, m[b])), o.state.value[e][b] = w), process.env.NODE_ENV !== "production" && q.state.push(b);
1157
- else if (typeof w == "function") {
1158
- const j = process.env.NODE_ENV !== "production" && r ? w : U(w, b);
1159
- oe[b] = j, process.env.NODE_ENV !== "production" && (q.actions[b] = w), a.actions[b] = w;
1160
- } else process.env.NODE_ENV !== "production" && Ln(w) && (q.getters[b] = s ? (
1151
+ o._s.set(e, E);
1152
+ const oe = (o._a && o._a.runWithContext || Ts)(() => o._e.run(() => (i = $o()).run(() => t({ action: j }))));
1153
+ for (const w in oe) {
1154
+ const b = oe[w];
1155
+ if (nt(b) && !Ln(b) || un(b))
1156
+ process.env.NODE_ENV !== "production" && r ? dt(g.value, w, vt(oe, w)) : s || (h && Vs(b) && (nt(b) ? b.value = h[w] : Qt(b, h[w])), o.state.value[e][w] = b), process.env.NODE_ENV !== "production" && q.state.push(w);
1157
+ else if (typeof b == "function") {
1158
+ const L = process.env.NODE_ENV !== "production" && r ? b : j(b, w);
1159
+ oe[w] = L, process.env.NODE_ENV !== "production" && (q.actions[w] = b), a.actions[w] = b;
1160
+ } else process.env.NODE_ENV !== "production" && Ln(b) && (q.getters[w] = s ? (
1161
1161
  // @ts-expect-error
1162
- n.getters[b]
1163
- ) : w, xe && (oe._getters || // @ts-expect-error: same
1164
- (oe._getters = Oe([]))).push(b));
1162
+ n.getters[w]
1163
+ ) : b, xe && (oe._getters || // @ts-expect-error: same
1164
+ (oe._getters = Oe([]))).push(w));
1165
1165
  }
1166
- if (Q($, oe), Q(tt($), oe), Object.defineProperty($, "$state", {
1166
+ if (Q(E, oe), Q(tt(E), oe), Object.defineProperty(E, "$state", {
1167
1167
  get: () => process.env.NODE_ENV !== "production" && r ? g.value : o.state.value[e],
1168
- set: (b) => {
1168
+ set: (w) => {
1169
1169
  if (process.env.NODE_ENV !== "production" && r)
1170
1170
  throw new Error("cannot set hotState");
1171
- k((w) => {
1172
- Q(w, b);
1171
+ S((b) => {
1172
+ Q(b, w);
1173
1173
  });
1174
1174
  }
1175
- }), process.env.NODE_ENV !== "production" && ($._hotUpdate = Oe((b) => {
1176
- $._hotUpdating = !0, b._hmrPayload.state.forEach((w) => {
1177
- if (w in $.$state) {
1178
- const j = b.$state[w], K = $.$state[w];
1179
- typeof j == "object" && Pe(j) && Pe(K) ? Mo(j, K) : b.$state[w] = K;
1175
+ }), process.env.NODE_ENV !== "production" && (E._hotUpdate = Oe((w) => {
1176
+ E._hotUpdating = !0, w._hmrPayload.state.forEach((b) => {
1177
+ if (b in E.$state) {
1178
+ const L = w.$state[b], K = E.$state[b];
1179
+ typeof L == "object" && Pe(L) && Pe(K) ? Mo(L, K) : w.$state[b] = K;
1180
1180
  }
1181
- dt($, w, vt(b.$state, w));
1182
- }), Object.keys($.$state).forEach((w) => {
1183
- w in b.$state || Lt($, w);
1184
- }), d = !1, u = !1, o.state.value[e] = vt(b._hmrPayload, "hotState"), u = !0, Ve().then(() => {
1185
- d = !0;
1181
+ dt(E, b, vt(w.$state, b));
1182
+ }), Object.keys(E.$state).forEach((b) => {
1183
+ b in w.$state || Lt(E, b);
1184
+ }), l = !1, u = !1, o.state.value[e] = vt(w._hmrPayload, "hotState"), u = !0, Ve().then(() => {
1185
+ l = !0;
1186
1186
  });
1187
- for (const w in b._hmrPayload.actions) {
1188
- const j = b[w];
1189
- dt($, w, U(j, w));
1187
+ for (const b in w._hmrPayload.actions) {
1188
+ const L = w[b];
1189
+ dt(E, b, j(L, b));
1190
1190
  }
1191
- for (const w in b._hmrPayload.getters) {
1192
- const j = b._hmrPayload.getters[w], K = s ? (
1191
+ for (const b in w._hmrPayload.getters) {
1192
+ const L = w._hmrPayload.getters[b], K = s ? (
1193
1193
  // special handling of options api
1194
- R(() => (ot(o), j.call($, $)))
1195
- ) : j;
1196
- dt($, w, K);
1194
+ R(() => (ot(o), L.call(E, E)))
1195
+ ) : L;
1196
+ dt(E, b, K);
1197
1197
  }
1198
- Object.keys($._hmrPayload.getters).forEach((w) => {
1199
- w in b._hmrPayload.getters || Lt($, w);
1200
- }), Object.keys($._hmrPayload.actions).forEach((w) => {
1201
- w in b._hmrPayload.actions || Lt($, w);
1202
- }), $._hmrPayload = b._hmrPayload, $._getters = b._getters, $._hotUpdating = !1;
1198
+ Object.keys(E._hmrPayload.getters).forEach((b) => {
1199
+ b in w._hmrPayload.getters || Lt(E, b);
1200
+ }), Object.keys(E._hmrPayload.actions).forEach((b) => {
1201
+ b in w._hmrPayload.actions || Lt(E, b);
1202
+ }), E._hmrPayload = w._hmrPayload, E._getters = w._getters, E._hotUpdating = !1;
1203
1203
  })), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && xe) {
1204
- const b = {
1204
+ const w = {
1205
1205
  writable: !0,
1206
1206
  configurable: !0,
1207
1207
  // avoid warning on devtools trying to display this property
1208
1208
  enumerable: !1
1209
1209
  };
1210
- ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((w) => {
1211
- Object.defineProperty($, w, Q({ value: $[w] }, b));
1210
+ ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((b) => {
1211
+ Object.defineProperty(E, b, Q({ value: E[b] }, w));
1212
1212
  });
1213
1213
  }
1214
- return o._p.forEach((b) => {
1214
+ return o._p.forEach((w) => {
1215
1215
  if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && xe) {
1216
- const w = i.run(() => b({
1217
- store: $,
1216
+ const b = i.run(() => w({
1217
+ store: E,
1218
1218
  app: o._a,
1219
1219
  pinia: o,
1220
1220
  options: a
1221
1221
  }));
1222
- Object.keys(w || {}).forEach((j) => $._customProperties.add(j)), Q($, w);
1222
+ Object.keys(b || {}).forEach((L) => E._customProperties.add(L)), Q(E, b);
1223
1223
  } else
1224
- Q($, i.run(() => b({
1225
- store: $,
1224
+ Q(E, i.run(() => w({
1225
+ store: E,
1226
1226
  app: o._a,
1227
1227
  pinia: o,
1228
1228
  options: a
1229
1229
  })));
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
1230
+ }), process.env.NODE_ENV !== "production" && E.$state && typeof E.$state == "object" && typeof E.$state.constructor == "function" && !E.$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 "${$.$id}".`), m && s && n.hydrate && n.hydrate($.$state, m), d = !0, u = !0, $;
1232
+ Found in store "${E.$id}".`), h && s && n.hydrate && n.hydrate(E.$state, h), l = !0, u = !0, E;
1233
1233
  }
1234
1234
  // @__NO_SIDE_EFFECTS__
1235
1235
  function js(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, l) {
1240
- const d = Rr();
1239
+ function i(a, c) {
1240
+ const l = Rr();
1241
1241
  if (a = // 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" && Je && Je._testing ? null : a) || (d ? ae(Co, null) : null), a && ot(a), process.env.NODE_ENV !== "production" && !Je)
1243
+ (process.env.NODE_ENV === "test" && Je && Je._testing ? null : a) || (l ? ae(Co, null) : null), a && ot(a), process.env.NODE_ENV !== "production" && !Je)
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
1247
  a = Je, a._s.has(o) || (s ? Xt(o, t, r, a) : Mn(o, r, a), process.env.NODE_ENV !== "production" && (i._pinia = a));
1248
1248
  const u = a._s.get(o);
1249
- if (process.env.NODE_ENV !== "production" && l) {
1250
- const c = "__hot:" + o, p = s ? Xt(c, t, r, a, !0) : Mn(c, Q({}, r), a, !0);
1251
- l._hotUpdate(p), delete a.state.value[c], a._s.delete(c);
1249
+ if (process.env.NODE_ENV !== "production" && c) {
1250
+ const d = "__hot:" + o, p = s ? Xt(d, t, r, a, !0) : Mn(d, Q({}, r), a, !0);
1251
+ c._hotUpdate(p), delete a.state.value[d], a._s.delete(d);
1252
1252
  }
1253
1253
  if (process.env.NODE_ENV !== "production" && xe) {
1254
- const c = We();
1255
- if (c && c.proxy && // avoid adding stores that are just built for hot module replacement
1256
- !l) {
1257
- const p = c.proxy, f = "_pStores" in p ? p._pStores : p._pStores = {};
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
1258
  f[o] = u;
1259
1259
  }
1260
1260
  }
@@ -1263,19 +1263,19 @@ This will fail in production.`);
1263
1263
  return i.$id = o, i;
1264
1264
  }
1265
1265
  const Ls = /* @__PURE__ */ js("data", () => {
1266
- const e = C([]), t = C({});
1266
+ const e = P([]), t = P({});
1267
1267
  return { records: e, record: t };
1268
1268
  });
1269
1269
  function Uo(e) {
1270
1270
  e || (e = ae("$registry"));
1271
- const t = Ls(), n = C(new ls(e, t)), o = C(!1);
1271
+ const t = Ls(), n = P(new ls(e, t)), o = P(!1);
1272
1272
  return Dr(async () => {
1273
1273
  var r, s;
1274
- const i = e.router.currentRoute.value, a = (r = i.params.records) == null ? void 0 : r.toString().toLowerCase(), l = (s = i.params.record) == null ? void 0 : s.toString().toLowerCase();
1275
- if (!a && !l)
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)
1276
1276
  return;
1277
- const d = await e.getMeta(a);
1278
- e.addDoctype(d), n.value.setup(d), a && (l ? await n.value.getRecord(d, l) : await n.value.getRecords(d)), n.value.runAction(d, "LOAD", l ? [l] : void 0), o.value = !0;
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;
1279
1279
  }), { stonecrop: n, isReady: o };
1280
1280
  }
1281
1281
  const Ms = class Et {
@@ -1318,7 +1318,7 @@ function Bt(e, t) {
1318
1318
  }
1319
1319
  const Ye = () => {
1320
1320
  }, Y = Array.isArray;
1321
- function S(e) {
1321
+ function N(e) {
1322
1322
  const t = Array.from(arguments).slice(1);
1323
1323
  console.warn.apply(console, ["[Vue Router warn]: " + e].concat(t));
1324
1324
  }
@@ -1345,7 +1345,7 @@ function je(e) {
1345
1345
  try {
1346
1346
  return decodeURIComponent("" + e);
1347
1347
  } catch {
1348
- process.env.NODE_ENV !== "production" && S(`Error decoding "${e}". Using original value`);
1348
+ process.env.NODE_ENV !== "production" && N(`Error decoding "${e}". Using original value`);
1349
1349
  }
1350
1350
  return "" + e;
1351
1351
  }
@@ -1353,8 +1353,8 @@ const ea = /\/$/, ta = (e) => e.replace(ea, "");
1353
1353
  function Ut(e, t, n = "/") {
1354
1354
  let o, r = {}, s = "", i = "";
1355
1355
  const a = t.indexOf("#");
1356
- let l = t.indexOf("?");
1357
- return a < l && a >= 0 && (l = -1), l > -1 && (o = t.slice(0, l), s = t.slice(l + 1, a > -1 ? a : t.length), r = e(s)), a > -1 && (o = o || t.slice(0, a), i = t.slice(a, t.length)), o = ra(o ?? t, n), {
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 = ra(o ?? t, n), {
1358
1358
  fullPath: o + (s && "?") + s + i,
1359
1359
  path: o,
1360
1360
  query: r,
@@ -1370,9 +1370,9 @@ function Bn(e, t) {
1370
1370
  }
1371
1371
  function Un(e, t, n) {
1372
1372
  const o = t.matched.length - 1, r = n.matched.length - 1;
1373
- return o > -1 && o === r && be(t.matched[o], n.matched[r]) && Jo(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
1373
+ return o > -1 && o === r && we(t.matched[o], n.matched[r]) && Jo(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
1374
1374
  }
1375
- function be(e, t) {
1375
+ function we(e, t) {
1376
1376
  return (e.aliasOf || e) === (t.aliasOf || t);
1377
1377
  }
1378
1378
  function Jo(e, t) {
@@ -1393,7 +1393,7 @@ function ra(e, t) {
1393
1393
  if (e.startsWith("/"))
1394
1394
  return e;
1395
1395
  if (process.env.NODE_ENV !== "production" && !t.startsWith("/"))
1396
- return S(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`), e;
1396
+ return N(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`), e;
1397
1397
  if (!e)
1398
1398
  return t;
1399
1399
  const n = t.split("/"), o = e.split("/"), r = o[o.length - 1];
@@ -1460,16 +1460,16 @@ function ca(e) {
1460
1460
  try {
1461
1461
  const s = document.querySelector(e.el);
1462
1462
  if (o && s) {
1463
- S(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);
1463
+ N(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);
1464
1464
  return;
1465
1465
  }
1466
1466
  } catch {
1467
- S(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);
1467
+ N(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);
1468
1468
  return;
1469
1469
  }
1470
1470
  const r = typeof n == "string" ? o ? document.getElementById(n.slice(1)) : document.querySelector(n) : n;
1471
1471
  if (!r) {
1472
- process.env.NODE_ENV !== "production" && S(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
1472
+ process.env.NODE_ENV !== "production" && N(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
1473
1473
  return;
1474
1474
  }
1475
1475
  t = la(r, e);
@@ -1500,32 +1500,32 @@ function Ko(e, t) {
1500
1500
  function fa(e, t, n, o) {
1501
1501
  let r = [], s = [], i = null;
1502
1502
  const a = ({ state: p }) => {
1503
- const f = Ko(e, location), m = n.value, g = t.value;
1504
- let x = 0;
1503
+ const f = Ko(e, location), h = n.value, g = t.value;
1504
+ let $ = 0;
1505
1505
  if (p) {
1506
- if (n.value = f, t.value = p, i && i === m) {
1506
+ if (n.value = f, t.value = p, i && i === h) {
1507
1507
  i = null;
1508
1508
  return;
1509
1509
  }
1510
- x = g ? p.position - g.position : 0;
1510
+ $ = g ? p.position - g.position : 0;
1511
1511
  } else
1512
1512
  o(f);
1513
- r.forEach((k) => {
1514
- k(n.value, m, {
1515
- delta: x,
1513
+ r.forEach((S) => {
1514
+ S(n.value, h, {
1515
+ delta: $,
1516
1516
  type: rt.pop,
1517
- direction: x ? x > 0 ? Qe.forward : Qe.back : Qe.unknown
1517
+ direction: $ ? $ > 0 ? Qe.forward : Qe.back : Qe.unknown
1518
1518
  });
1519
1519
  });
1520
1520
  };
1521
- function l() {
1521
+ function c() {
1522
1522
  i = n.value;
1523
1523
  }
1524
- function d(p) {
1524
+ function l(p) {
1525
1525
  r.push(p);
1526
1526
  const f = () => {
1527
- const m = r.indexOf(p);
1528
- m > -1 && r.splice(m, 1);
1527
+ const h = r.indexOf(p);
1528
+ h > -1 && r.splice(h, 1);
1529
1529
  };
1530
1530
  return s.push(f), f;
1531
1531
  }
@@ -1533,7 +1533,7 @@ function fa(e, t, n, o) {
1533
1533
  const { history: p } = window;
1534
1534
  p.state && p.replaceState(T({}, p.state, { scroll: Pt() }), "");
1535
1535
  }
1536
- function c() {
1536
+ function d() {
1537
1537
  for (const p of s)
1538
1538
  p();
1539
1539
  s = [], window.removeEventListener("popstate", a), window.removeEventListener("beforeunload", u);
@@ -1541,9 +1541,9 @@ function fa(e, t, n, o) {
1541
1541
  return window.addEventListener("popstate", a), window.addEventListener("beforeunload", u, {
1542
1542
  passive: !0
1543
1543
  }), {
1544
- pauseListeners: l,
1545
- listen: d,
1546
- destroy: c
1544
+ pauseListeners: c,
1545
+ listen: l,
1546
+ destroy: d
1547
1547
  };
1548
1548
  }
1549
1549
  function Fn(e, t, n, o = !1, r = !1) {
@@ -1571,25 +1571,25 @@ function ha(e) {
1571
1571
  // scrollBehavior to be triggered without a saved position
1572
1572
  scroll: null
1573
1573
  }, !0);
1574
- function s(l, d, u) {
1575
- const c = e.indexOf("#"), p = c > -1 ? (n.host && document.querySelector("base") ? e : e.slice(c)) + l : pa() + e + l;
1574
+ function s(c, l, u) {
1575
+ const d = e.indexOf("#"), p = d > -1 ? (n.host && document.querySelector("base") ? e : e.slice(d)) + c : pa() + e + c;
1576
1576
  try {
1577
- t[u ? "replaceState" : "pushState"](d, "", p), r.value = d;
1577
+ t[u ? "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" ? N("Error with push/replace State", f) : console.error(f), n[u ? "replace" : "assign"](p);
1580
1580
  }
1581
1581
  }
1582
- function i(l, d) {
1582
+ function i(c, l) {
1583
1583
  const u = T({}, t.state, Fn(
1584
1584
  r.value.back,
1585
1585
  // keep back and forward entries but override current position
1586
- l,
1586
+ c,
1587
1587
  r.value.forward,
1588
1588
  !0
1589
- ), d, { position: r.value.position });
1590
- s(l, u, !0), o.value = l;
1589
+ ), l, { position: r.value.position });
1590
+ s(c, u, !0), o.value = c;
1591
1591
  }
1592
- function a(l, d) {
1592
+ function a(c, l) {
1593
1593
  const u = T(
1594
1594
  {},
1595
1595
  // use current history state to gracefully handle a wrong call to
@@ -1598,17 +1598,17 @@ function ha(e) {
1598
1598
  r.value,
1599
1599
  t.state,
1600
1600
  {
1601
- forward: l,
1601
+ forward: c,
1602
1602
  scroll: Pt()
1603
1603
  }
1604
1604
  );
1605
- process.env.NODE_ENV !== "production" && !t.state && S(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
1605
+ process.env.NODE_ENV !== "production" && !t.state && N(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
1606
1606
 
1607
1607
  history.replaceState(history.state, '', url)
1608
1608
 
1609
1609
  You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), s(u.current, u, !0);
1610
- const c = T({}, Fn(o.value, l, null), { position: u.position + 1 }, d);
1611
- s(l, c, !1), o.value = l;
1610
+ const d = T({}, Fn(o.value, c, null), { position: u.position + 1 }, l);
1611
+ s(c, d, !1), o.value = c;
1612
1612
  }
1613
1613
  return {
1614
1614
  location: o,
@@ -1692,86 +1692,86 @@ function ya(e) {
1692
1692
  n in e && (t[n] = e[n]);
1693
1693
  return JSON.stringify(t, null, 2);
1694
1694
  }
1695
- const Gn = "[^/]+?", wa = {
1695
+ const Gn = "[^/]+?", ba = {
1696
1696
  sensitive: !1,
1697
1697
  strict: !1,
1698
1698
  start: !0,
1699
1699
  end: !0
1700
- }, ba = /[.+*?^${}()[\]/\\]/g;
1700
+ }, wa = /[.+*?^${}()[\]/\\]/g;
1701
1701
  function _a(e, t) {
1702
- const n = T({}, wa, t), o = [];
1702
+ const n = T({}, ba, t), o = [];
1703
1703
  let r = n.start ? "^" : "";
1704
1704
  const s = [];
1705
- for (const d of e) {
1706
- const u = d.length ? [] : [
1705
+ for (const l of e) {
1706
+ const u = l.length ? [] : [
1707
1707
  90
1708
1708
  /* PathScore.Root */
1709
1709
  ];
1710
- n.strict && !d.length && (r += "/");
1711
- for (let c = 0; c < d.length; c++) {
1712
- const p = d[c];
1710
+ n.strict && !l.length && (r += "/");
1711
+ for (let d = 0; d < l.length; d++) {
1712
+ const p = l[d];
1713
1713
  let f = 40 + (n.sensitive ? 0.25 : 0);
1714
1714
  if (p.type === 0)
1715
- c || (r += "/"), r += p.value.replace(ba, "\\$&"), f += 40;
1715
+ d || (r += "/"), r += p.value.replace(wa, "\\$&"), f += 40;
1716
1716
  else if (p.type === 1) {
1717
- const { value: m, repeatable: g, optional: x, regexp: k } = p;
1717
+ const { value: h, repeatable: g, optional: $, regexp: S } = p;
1718
1718
  s.push({
1719
- name: m,
1719
+ name: h,
1720
1720
  repeatable: g,
1721
- optional: x
1721
+ optional: $
1722
1722
  });
1723
- const _ = k || Gn;
1724
- if (_ !== Gn) {
1723
+ const x = S || Gn;
1724
+ if (x !== Gn) {
1725
1725
  f += 10;
1726
1726
  try {
1727
- new RegExp(`(${_})`);
1728
- } catch (U) {
1729
- throw new Error(`Invalid custom RegExp for param "${m}" (${_}): ` + U.message);
1727
+ new RegExp(`(${x})`);
1728
+ } catch (j) {
1729
+ throw new Error(`Invalid custom RegExp for param "${h}" (${x}): ` + j.message);
1730
1730
  }
1731
1731
  }
1732
- let D = g ? `((?:${_})(?:/(?:${_}))*)` : `(${_})`;
1733
- c || (D = // avoid an optional / if there are more segments e.g. /:p?-static
1732
+ let O = g ? `((?:${x})(?:/(?:${x}))*)` : `(${x})`;
1733
+ d || (O = // avoid an optional / if there are more segments e.g. /:p?-static
1734
1734
  // or /:p?-:p2
1735
- x && d.length < 2 ? `(?:/${D})` : "/" + D), x && (D += "?"), r += D, f += 20, x && (f += -8), g && (f += -20), _ === ".*" && (f += -50);
1735
+ $ && l.length < 2 ? `(?:/${O})` : "/" + O), $ && (O += "?"), r += O, f += 20, $ && (f += -8), g && (f += -20), x === ".*" && (f += -50);
1736
1736
  }
1737
1737
  u.push(f);
1738
1738
  }
1739
1739
  o.push(u);
1740
1740
  }
1741
1741
  if (n.strict && n.end) {
1742
- const d = o.length - 1;
1743
- o[d][o[d].length - 1] += 0.7000000000000001;
1742
+ const l = o.length - 1;
1743
+ o[l][o[l].length - 1] += 0.7000000000000001;
1744
1744
  }
1745
1745
  n.strict || (r += "/?"), n.end ? r += "$" : n.strict && (r += "(?:/|$)");
1746
1746
  const i = new RegExp(r, n.sensitive ? "" : "i");
1747
- function a(d) {
1748
- const u = d.match(i), c = {};
1747
+ function a(l) {
1748
+ const u = l.match(i), d = {};
1749
1749
  if (!u)
1750
1750
  return null;
1751
1751
  for (let p = 1; p < u.length; p++) {
1752
- const f = u[p] || "", m = s[p - 1];
1753
- c[m.name] = f && m.repeatable ? f.split("/") : f;
1752
+ const f = u[p] || "", h = s[p - 1];
1753
+ d[h.name] = f && h.repeatable ? f.split("/") : f;
1754
1754
  }
1755
- return c;
1755
+ return d;
1756
1756
  }
1757
- function l(d) {
1758
- let u = "", c = !1;
1757
+ function c(l) {
1758
+ let u = "", d = !1;
1759
1759
  for (const p of e) {
1760
- (!c || !u.endsWith("/")) && (u += "/"), c = !1;
1760
+ (!d || !u.endsWith("/")) && (u += "/"), d = !1;
1761
1761
  for (const f of p)
1762
1762
  if (f.type === 0)
1763
1763
  u += f.value;
1764
1764
  else if (f.type === 1) {
1765
- const { value: m, repeatable: g, optional: x } = f, k = m in d ? d[m] : "";
1766
- if (Y(k) && !g)
1767
- throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);
1768
- const _ = Y(k) ? k.join("/") : k;
1769
- if (!_)
1770
- if (x)
1771
- p.length < 2 && (u.endsWith("/") ? u = u.slice(0, -1) : c = !0);
1765
+ const { value: h, repeatable: g, optional: $ } = f, S = h in l ? l[h] : "";
1766
+ if (Y(S) && !g)
1767
+ throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);
1768
+ const x = Y(S) ? S.join("/") : S;
1769
+ if (!x)
1770
+ if ($)
1771
+ p.length < 2 && (u.endsWith("/") ? u = u.slice(0, -1) : d = !0);
1772
1772
  else
1773
- throw new Error(`Missing required param "${m}"`);
1774
- u += _;
1773
+ throw new Error(`Missing required param "${h}"`);
1774
+ u += x;
1775
1775
  }
1776
1776
  }
1777
1777
  return u || "/";
@@ -1781,7 +1781,7 @@ function _a(e, t) {
1781
1781
  score: o,
1782
1782
  keys: s,
1783
1783
  parse: a,
1784
- stringify: l
1784
+ stringify: c
1785
1785
  };
1786
1786
  }
1787
1787
  function Ea(e, t) {
@@ -1827,7 +1827,7 @@ function Oa(e) {
1827
1827
  if (!e.startsWith("/"))
1828
1828
  throw new Error(process.env.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
1829
1829
  function t(f) {
1830
- throw new Error(`ERR (${n})/"${d}": ${f}`);
1830
+ throw new Error(`ERR (${n})/"${l}": ${f}`);
1831
1831
  }
1832
1832
  let n = 0, o = n;
1833
1833
  const r = [];
@@ -1835,56 +1835,56 @@ function Oa(e) {
1835
1835
  function i() {
1836
1836
  s && r.push(s), s = [];
1837
1837
  }
1838
- let a = 0, l, d = "", u = "";
1839
- function c() {
1840
- d && (n === 0 ? s.push({
1838
+ let a = 0, c, l = "", u = "";
1839
+ function d() {
1840
+ l && (n === 0 ? s.push({
1841
1841
  type: 0,
1842
- value: d
1843
- }) : n === 1 || n === 2 || n === 3 ? (s.length > 1 && (l === "*" || l === "+") && t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`), s.push({
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({
1844
1844
  type: 1,
1845
- value: d,
1845
+ value: l,
1846
1846
  regexp: u,
1847
- repeatable: l === "*" || l === "+",
1848
- optional: l === "*" || l === "?"
1849
- })) : t("Invalid state to consume buffer"), d = "");
1847
+ repeatable: c === "*" || c === "+",
1848
+ optional: c === "*" || c === "?"
1849
+ })) : t("Invalid state to consume buffer"), l = "");
1850
1850
  }
1851
1851
  function p() {
1852
- d += l;
1852
+ l += c;
1853
1853
  }
1854
1854
  for (; a < e.length; ) {
1855
- if (l = e[a++], l === "\\" && n !== 2) {
1855
+ if (c = e[a++], c === "\\" && n !== 2) {
1856
1856
  o = n, n = 4;
1857
1857
  continue;
1858
1858
  }
1859
1859
  switch (n) {
1860
1860
  case 0:
1861
- l === "/" ? (d && c(), i()) : l === ":" ? (c(), n = 1) : p();
1861
+ c === "/" ? (l && d(), i()) : c === ":" ? (d(), n = 1) : p();
1862
1862
  break;
1863
1863
  case 4:
1864
1864
  p(), n = o;
1865
1865
  break;
1866
1866
  case 1:
1867
- l === "(" ? n = 2 : $a.test(l) ? p() : (c(), n = 0, l !== "*" && l !== "?" && l !== "+" && a--);
1867
+ c === "(" ? n = 2 : $a.test(c) ? p() : (d(), n = 0, c !== "*" && c !== "?" && c !== "+" && a--);
1868
1868
  break;
1869
1869
  case 2:
1870
- l === ")" ? u[u.length - 1] == "\\" ? u = u.slice(0, -1) + l : n = 3 : u += l;
1870
+ c === ")" ? u[u.length - 1] == "\\" ? u = u.slice(0, -1) + c : n = 3 : u += c;
1871
1871
  break;
1872
1872
  case 3:
1873
- c(), n = 0, l !== "*" && l !== "?" && l !== "+" && a--, u = "";
1873
+ d(), n = 0, c !== "*" && c !== "?" && c !== "+" && a--, u = "";
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 "${d}"`), c(), i(), r;
1880
+ return n === 2 && t(`Unfinished custom RegExp for param "${l}"`), d(), i(), r;
1881
1881
  }
1882
1882
  function xa(e, t, n) {
1883
1883
  const o = _a(Oa(e.path), n);
1884
1884
  if (process.env.NODE_ENV !== "production") {
1885
1885
  const s = /* @__PURE__ */ new Set();
1886
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);
1887
+ s.has(i.name) && N(`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);
1888
1888
  }
1889
1889
  const r = T(o, {
1890
1890
  record: e,
@@ -1898,17 +1898,17 @@ function xa(e, t, n) {
1898
1898
  function Sa(e, t) {
1899
1899
  const n = [], o = /* @__PURE__ */ new Map();
1900
1900
  t = Qn({ strict: !1, end: !0, sensitive: !1 }, t);
1901
- function r(c) {
1902
- return o.get(c);
1901
+ function r(d) {
1902
+ return o.get(d);
1903
1903
  }
1904
- function s(c, p, f) {
1905
- const m = !f, g = Kn(c);
1904
+ function s(d, p, f) {
1905
+ const h = !f, g = Kn(d);
1906
1906
  process.env.NODE_ENV !== "production" && Pa(g, p), g.aliasOf = f && f.record;
1907
- const x = Qn(t, c), k = [g];
1908
- if ("alias" in c) {
1909
- const U = typeof c.alias == "string" ? [c.alias] : c.alias;
1910
- for (const q of U)
1911
- k.push(
1907
+ const $ = Qn(t, d), S = [g];
1908
+ if ("alias" in d) {
1909
+ const j = typeof d.alias == "string" ? [d.alias] : d.alias;
1910
+ for (const q of j)
1911
+ S.push(
1912
1912
  // we need to normalize again to ensure the `mods` property
1913
1913
  // being non enumerable
1914
1914
  Kn(T({}, g, {
@@ -1923,95 +1923,95 @@ function Sa(e, t) {
1923
1923
  }))
1924
1924
  );
1925
1925
  }
1926
- let _, D;
1927
- for (const U of k) {
1928
- const { path: q } = U;
1926
+ let x, O;
1927
+ for (const j of S) {
1928
+ const { path: q } = j;
1929
1929
  if (p && q[0] !== "/") {
1930
- const ee = p.record.path, $ = ee[ee.length - 1] === "/" ? "" : "/";
1931
- U.path = p.record.path + (q && $ + q);
1930
+ const ee = p.record.path, E = ee[ee.length - 1] === "/" ? "" : "/";
1931
+ j.path = p.record.path + (q && E + q);
1932
1932
  }
1933
- if (process.env.NODE_ENV !== "production" && U.path === "*")
1933
+ if (process.env.NODE_ENV !== "production" && j.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 (_ = xa(U, p, x), process.env.NODE_ENV !== "production" && p && q[0] === "/" && Da(_, p), f ? (f.alias.push(_), process.env.NODE_ENV !== "production" && Ca(f, _)) : (D = D || _, D !== _ && D.alias.push(_), m && c.name && !Yn(_) && i(c.name)), Xo(_) && l(_), g.children) {
1936
+ if (x = xa(j, p, $), process.env.NODE_ENV !== "production" && p && q[0] === "/" && Da(x, p), f ? (f.alias.push(x), process.env.NODE_ENV !== "production" && Ca(f, x)) : (O = O || x, O !== x && O.alias.push(x), h && d.name && !Yn(x) && i(d.name)), Xo(x) && c(x), g.children) {
1937
1937
  const ee = g.children;
1938
- for (let $ = 0; $ < ee.length; $++)
1939
- s(ee[$], _, f && f.children[$]);
1938
+ for (let E = 0; E < ee.length; E++)
1939
+ s(ee[E], x, f && f.children[E]);
1940
1940
  }
1941
- f = f || _;
1941
+ f = f || x;
1942
1942
  }
1943
- return D ? () => {
1944
- i(D);
1943
+ return O ? () => {
1944
+ i(O);
1945
1945
  } : Ye;
1946
1946
  }
1947
- function i(c) {
1948
- if (Yo(c)) {
1949
- const p = o.get(c);
1950
- p && (o.delete(c), n.splice(n.indexOf(p), 1), p.children.forEach(i), p.alias.forEach(i));
1947
+ function i(d) {
1948
+ if (Yo(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));
1951
1951
  } else {
1952
- const p = n.indexOf(c);
1953
- p > -1 && (n.splice(p, 1), c.record.name && o.delete(c.record.name), c.children.forEach(i), c.alias.forEach(i));
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));
1954
1954
  }
1955
1955
  }
1956
1956
  function a() {
1957
1957
  return n;
1958
1958
  }
1959
- function l(c) {
1960
- const p = Aa(c, n);
1961
- n.splice(p, 0, c), c.record.name && !Yn(c) && o.set(c.record.name, c);
1959
+ function c(d) {
1960
+ const p = Aa(d, n);
1961
+ n.splice(p, 0, d), d.record.name && !Yn(d) && o.set(d.record.name, d);
1962
1962
  }
1963
- function d(c, p) {
1964
- let f, m = {}, g, x;
1965
- if ("name" in c && c.name) {
1966
- if (f = o.get(c.name), !f)
1963
+ function l(d, p) {
1964
+ let f, h = {}, g, $;
1965
+ if ("name" in d && d.name) {
1966
+ if (f = o.get(d.name), !f)
1967
1967
  throw Le(1, {
1968
- location: c
1968
+ location: d
1969
1969
  });
1970
1970
  if (process.env.NODE_ENV !== "production") {
1971
- const D = Object.keys(c.params || {}).filter((U) => !f.keys.find((q) => q.name === U));
1972
- D.length && S(`Discarded invalid param(s) "${D.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
1971
+ const O = Object.keys(d.params || {}).filter((j) => !f.keys.find((q) => q.name === j));
1972
+ O.length && N(`Discarded invalid param(s) "${O.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
- x = f.record.name, m = T(
1974
+ $ = f.record.name, h = T(
1975
1975
  // paramsFromLocation is a new object
1976
1976
  Jn(
1977
1977
  p.params,
1978
1978
  // only keep params that exist in the resolved location
1979
1979
  // only keep optional params coming from a parent record
1980
- f.keys.filter((D) => !D.optional).concat(f.parent ? f.parent.keys.filter((D) => D.optional) : []).map((D) => D.name)
1980
+ f.keys.filter((O) => !O.optional).concat(f.parent ? f.parent.keys.filter((O) => O.optional) : []).map((O) => O.name)
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
- c.params && Jn(c.params, f.keys.map((D) => D.name))
1985
- ), g = f.stringify(m);
1986
- } else if (c.path != null)
1987
- g = c.path, process.env.NODE_ENV !== "production" && !g.startsWith("/") && S(`The Matcher cannot resolve relative paths but received "${g}". Unless you directly called \`matcher.resolve("${g}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), f = n.find((D) => D.re.test(g)), f && (m = f.parse(g), x = f.record.name);
1984
+ d.params && Jn(d.params, f.keys.map((O) => O.name))
1985
+ ), g = f.stringify(h);
1986
+ } else if (d.path != null)
1987
+ g = d.path, process.env.NODE_ENV !== "production" && !g.startsWith("/") && N(`The Matcher cannot resolve relative paths but received "${g}". Unless you directly called \`matcher.resolve("${g}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), f = n.find((O) => O.re.test(g)), f && (h = f.parse(g), $ = f.record.name);
1988
1988
  else {
1989
- if (f = p.name ? o.get(p.name) : n.find((D) => D.re.test(p.path)), !f)
1989
+ if (f = p.name ? o.get(p.name) : n.find((O) => O.re.test(p.path)), !f)
1990
1990
  throw Le(1, {
1991
- location: c,
1991
+ location: d,
1992
1992
  currentLocation: p
1993
1993
  });
1994
- x = f.record.name, m = T({}, p.params, c.params), g = f.stringify(m);
1994
+ $ = f.record.name, h = T({}, p.params, d.params), g = f.stringify(h);
1995
1995
  }
1996
- const k = [];
1997
- let _ = f;
1998
- for (; _; )
1999
- k.unshift(_.record), _ = _.parent;
1996
+ const S = [];
1997
+ let x = f;
1998
+ for (; x; )
1999
+ S.unshift(x.record), x = x.parent;
2000
2000
  return {
2001
- name: x,
2001
+ name: $,
2002
2002
  path: g,
2003
- params: m,
2004
- matched: k,
2005
- meta: Ia(k)
2003
+ params: h,
2004
+ matched: S,
2005
+ meta: Ia(S)
2006
2006
  };
2007
2007
  }
2008
- e.forEach((c) => s(c));
2008
+ e.forEach((d) => s(d));
2009
2009
  function u() {
2010
2010
  n.length = 0, o.clear();
2011
2011
  }
2012
2012
  return {
2013
2013
  addRoute: s,
2014
- resolve: d,
2014
+ resolve: l,
2015
2015
  removeRoute: i,
2016
2016
  clearRoutes: u,
2017
2017
  getRoutes: a,
@@ -2078,18 +2078,18 @@ function nn(e, t) {
2078
2078
  function Ca(e, t) {
2079
2079
  for (const n of e.keys)
2080
2080
  if (!n.optional && !t.keys.find(nn.bind(null, n)))
2081
- return S(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
2081
+ return N(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
2082
2082
  for (const n of t.keys)
2083
2083
  if (!n.optional && !e.keys.find(nn.bind(null, n)))
2084
- return S(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
2084
+ return N(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
2085
2085
  }
2086
2086
  function Pa(e, t) {
2087
- t && t.record.name && !e.name && !e.path && S(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`);
2087
+ t && t.record.name && !e.name && !e.path && N(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`);
2088
2088
  }
2089
2089
  function Da(e, t) {
2090
2090
  for (const n of t.keys)
2091
2091
  if (!e.keys.find(nn.bind(null, n)))
2092
- return S(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`);
2092
+ return N(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`);
2093
2093
  }
2094
2094
  function Aa(e, t) {
2095
2095
  let n = 0, o = t.length;
@@ -2098,7 +2098,7 @@ function Aa(e, t) {
2098
2098
  Qo(e, t[s]) < 0 ? o = s : n = s + 1;
2099
2099
  }
2100
2100
  const r = Ta(e);
2101
- return r && (o = t.lastIndexOf(r, o - 1), process.env.NODE_ENV !== "production" && o < 0 && S(`Finding ancestor route "${r.record.path}" failed for "${e.record.path}"`)), o;
2101
+ return r && (o = t.lastIndexOf(r, o - 1), process.env.NODE_ENV !== "production" && o < 0 && N(`Finding ancestor route "${r.record.path}" failed for "${e.record.path}"`)), o;
2102
2102
  }
2103
2103
  function Ta(e) {
2104
2104
  let t = e;
@@ -2117,8 +2117,8 @@ function Ra(e) {
2117
2117
  for (let o = 0; o < n.length; ++o) {
2118
2118
  const r = n[o].replace(Fo, " "), s = r.indexOf("="), i = je(s < 0 ? r : r.slice(0, s)), a = s < 0 ? null : je(r.slice(s + 1));
2119
2119
  if (i in t) {
2120
- let l = t[i];
2121
- Y(l) || (l = t[i] = [l]), l.push(a);
2120
+ let c = t[i];
2121
+ Y(c) || (c = t[i] = [c]), c.push(a);
2122
2122
  } else
2123
2123
  t[i] = a;
2124
2124
  }
@@ -2167,66 +2167,66 @@ function Ge() {
2167
2167
  function ve(e, t, n, o, r, s = (i) => i()) {
2168
2168
  const i = 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, l) => {
2171
- const d = (p) => {
2172
- p === !1 ? l(Le(4, {
2170
+ return () => new Promise((a, c) => {
2171
+ const l = (p) => {
2172
+ p === !1 ? c(Le(4, {
2173
2173
  from: n,
2174
2174
  to: t
2175
- })) : p instanceof Error ? l(p) : St(p) ? l(Le(2, {
2175
+ })) : p instanceof Error ? c(p) : St(p) ? c(Le(2, {
2176
2176
  from: t,
2177
2177
  to: p
2178
2178
  })) : (i && // since enterCallbackArray is truthy, both record and name also are
2179
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" ? La(d, t, n) : d));
2181
- let c = Promise.resolve(u);
2182
- if (e.length < 3 && (c = c.then(d)), process.env.NODE_ENV !== "production" && e.length > 2) {
2180
+ }, u = s(() => e.call(o && o.instances[r], t, n, process.env.NODE_ENV !== "production" ? La(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) {
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
2186
  if (typeof u == "object" && "then" in u)
2187
- c = c.then((f) => d._called ? f : (S(p), Promise.reject(new Error("Invalid navigation guard"))));
2188
- else if (u !== void 0 && !d._called) {
2189
- S(p), l(new Error("Invalid navigation guard"));
2187
+ d = d.then((f) => l._called ? f : (N(p), Promise.reject(new Error("Invalid navigation guard"))));
2188
+ else if (u !== void 0 && !l._called) {
2189
+ N(p), c(new Error("Invalid navigation guard"));
2190
2190
  return;
2191
2191
  }
2192
2192
  }
2193
- c.catch((p) => l(p));
2193
+ d.catch((p) => c(p));
2194
2194
  });
2195
2195
  }
2196
2196
  function La(e, t, n) {
2197
2197
  let o = 0;
2198
2198
  return function() {
2199
- o++ === 1 && S(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`), e._called = !0, o === 1 && e.apply(null, arguments);
2199
+ o++ === 1 && N(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`), e._called = !0, o === 1 && e.apply(null, arguments);
2200
2200
  };
2201
2201
  }
2202
2202
  function Wt(e, t, n, o, r = (s) => s()) {
2203
2203
  const s = [];
2204
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.`);
2205
+ process.env.NODE_ENV !== "production" && !i.components && !i.children.length && N(`Record with path "${i.path}" is either missing a "component(s)" or "children" property.`);
2206
2206
  for (const a in i.components) {
2207
- let l = i.components[a];
2207
+ let c = i.components[a];
2208
2208
  if (process.env.NODE_ENV !== "production") {
2209
- if (!l || typeof l != "object" && typeof l != "function")
2210
- throw S(`Component "${a}" in record with path "${i.path}" is not a valid component. Received "${String(l)}".`), new Error("Invalid route component");
2211
- if ("then" in l) {
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 d = l;
2214
- l = () => d;
2215
- } else l.__asyncLoader && // warn only once per component
2216
- !l.__warnedDefineAsync && (l.__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 (!c || typeof c != "object" && typeof c != "function")
2210
+ throw N(`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
+ N(`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, N(`Component "${a}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
2217
2217
  }
2218
2218
  if (!(t !== "beforeRouteEnter" && !i.instances[a]))
2219
- if (Wo(l)) {
2220
- const d = (l.__vccOpts || l)[t];
2221
- d && s.push(ve(d, n, o, i, a, r));
2219
+ if (Wo(c)) {
2220
+ const l = (c.__vccOpts || c)[t];
2221
+ l && s.push(ve(l, n, o, i, a, r));
2222
2222
  } else {
2223
- let d = l();
2224
- process.env.NODE_ENV !== "production" && !("catch" in d) && (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.`), d = Promise.resolve(d)), s.push(() => d.then((u) => {
2223
+ let l = c();
2224
+ process.env.NODE_ENV !== "production" && !("catch" in l) && (N(`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
2225
  if (!u)
2226
2226
  throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);
2227
- const c = Bs(u) ? u.default : u;
2228
- i.mods[a] = u, i.components[a] = c;
2229
- const p = (c.__vccOpts || c)[t];
2227
+ const d = Bs(u) ? u.default : u;
2228
+ i.mods[a] = u, i.components[a] = d;
2229
+ const p = (d.__vccOpts || d)[t];
2230
2230
  return p && ve(p, n, o, i, a, r)();
2231
2231
  }));
2232
2232
  }
@@ -2238,47 +2238,47 @@ function eo(e) {
2238
2238
  const t = ae(vn), n = ae(Zo);
2239
2239
  let o = !1, r = null;
2240
2240
  const s = R(() => {
2241
- const u = O(e.to);
2242
- return process.env.NODE_ENV !== "production" && (!o || u !== r) && (St(u) || (o ? S(`Invalid value for prop "to" in useLink()
2241
+ const u = k(e.to);
2242
+ return process.env.NODE_ENV !== "production" && (!o || u !== r) && (St(u) || (o ? N(`Invalid value for prop "to" in useLink()
2243
2243
  - to:`, u, `
2244
2244
  - previous to:`, r, `
2245
- - props:`, e) : S(`Invalid value for prop "to" in useLink()
2245
+ - props:`, e) : N(`Invalid value for prop "to" in useLink()
2246
2246
  - to:`, u, `
2247
2247
  - props:`, e)), r = u, o = !0), t.resolve(u);
2248
2248
  }), i = R(() => {
2249
- const { matched: u } = s.value, { length: c } = u, p = u[c - 1], f = n.matched;
2249
+ const { matched: u } = s.value, { length: d } = u, p = u[d - 1], f = n.matched;
2250
2250
  if (!p || !f.length)
2251
2251
  return -1;
2252
- const m = f.findIndex(be.bind(null, p));
2253
- if (m > -1)
2254
- return m;
2255
- const g = to(u[c - 2]);
2252
+ const h = f.findIndex(we.bind(null, p));
2253
+ if (h > -1)
2254
+ return h;
2255
+ const g = to(u[d - 2]);
2256
2256
  return (
2257
2257
  // we are dealing with nested routes
2258
- c > 1 && // if the parent and matched route have the same path, this link is
2258
+ d > 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
  to(p) === g && // avoid comparing the child with its parent
2262
- f[f.length - 1].path !== g ? f.findIndex(be.bind(null, u[c - 2])) : m
2262
+ f[f.length - 1].path !== g ? f.findIndex(we.bind(null, u[d - 2])) : h
2263
2263
  );
2264
- }), a = R(() => i.value > -1 && Wa(n.params, s.value.params)), l = R(() => i.value > -1 && i.value === n.matched.length - 1 && Jo(n.params, s.value.params));
2265
- function d(u = {}) {
2266
- return Ua(u) ? t[O(e.replace) ? "replace" : "push"](
2267
- O(e.to)
2264
+ }), a = R(() => i.value > -1 && Wa(n.params, s.value.params)), c = R(() => i.value > -1 && i.value === n.matched.length - 1 && Jo(n.params, s.value.params));
2265
+ function l(u = {}) {
2266
+ return Ua(u) ? t[k(e.replace) ? "replace" : "push"](
2267
+ k(e.to)
2268
2268
  // avoid uncaught errors are they are logged anyway
2269
2269
  ).catch(Ye) : Promise.resolve();
2270
2270
  }
2271
2271
  if (process.env.NODE_ENV !== "production" && ce) {
2272
2272
  const u = We();
2273
2273
  if (u) {
2274
- const c = {
2274
+ const d = {
2275
2275
  route: s.value,
2276
2276
  isActive: a.value,
2277
- isExactActive: l.value,
2277
+ isExactActive: c.value,
2278
2278
  error: null
2279
2279
  };
2280
- u.__vrl_devtools = u.__vrl_devtools || [], u.__vrl_devtools.push(c), Vr(() => {
2281
- c.route = s.value, c.isActive = a.value, c.isExactActive = l.value, c.error = St(O(e.to)) ? null : 'Invalid "to" value';
2280
+ u.__vrl_devtools = u.__vrl_devtools || [], u.__vrl_devtools.push(d), Vr(() => {
2281
+ d.route = s.value, d.isActive = a.value, d.isExactActive = c.value, d.error = St(k(e.to)) ? null : 'Invalid "to" value';
2282
2282
  }, { flush: "post" });
2283
2283
  }
2284
2284
  }
@@ -2286,8 +2286,8 @@ function eo(e) {
2286
2286
  route: s,
2287
2287
  href: R(() => s.value.href),
2288
2288
  isActive: a,
2289
- isExactActive: l,
2290
- navigate: d
2289
+ isExactActive: c,
2290
+ navigate: l
2291
2291
  };
2292
2292
  }
2293
2293
  const Ma = /* @__PURE__ */ Z({
@@ -2373,44 +2373,44 @@ const no = (e, t, n) => e ?? t ?? n, Ha = /* @__PURE__ */ Z({
2373
2373
  setup(e, { attrs: t, slots: n }) {
2374
2374
  process.env.NODE_ENV !== "production" && za();
2375
2375
  const o = ae(on), r = R(() => e.route || o.value), s = ae(Zn, 0), i = R(() => {
2376
- let d = O(s);
2376
+ let l = k(s);
2377
2377
  const { matched: u } = r.value;
2378
- let c;
2379
- for (; (c = u[d]) && !c.components; )
2380
- d++;
2381
- return d;
2378
+ let d;
2379
+ for (; (d = u[l]) && !d.components; )
2380
+ l++;
2381
+ return l;
2382
2382
  }), a = R(() => r.value.matched[i.value]);
2383
2383
  mt(Zn, R(() => i.value + 1)), mt(ja, a), mt(on, r);
2384
- const l = C();
2385
- return H(() => [l.value, a.value, e.name], ([d, u, c], [p, f, m]) => {
2386
- u && (u.instances[c] = d, f && f !== u && d && d === p && (u.leaveGuards.size || (u.leaveGuards = f.leaveGuards), u.updateGuards.size || (u.updateGuards = f.updateGuards))), d && u && // if there is no instance but to and from are the same this might be
2384
+ const c = P();
2385
+ return H(() => [c.value, a.value, e.name], ([l, u, d], [p, f, h]) => {
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
2387
2387
  // the first visit
2388
- (!f || !be(u, f) || !p) && (u.enterCallbacks[c] || []).forEach((g) => g(d));
2388
+ (!f || !we(u, f) || !p) && (u.enterCallbacks[d] || []).forEach((g) => g(l));
2389
2389
  }, { flush: "post" }), () => {
2390
- const d = r.value, u = e.name, c = a.value, p = c && c.components[u];
2390
+ const l = r.value, u = e.name, d = a.value, p = d && d.components[u];
2391
2391
  if (!p)
2392
- return oo(n.default, { Component: p, route: d });
2393
- const f = c.props[u], m = f ? f === !0 ? d.params : typeof f == "function" ? f(d) : f : null, g = Oo(p, T({}, m, t, {
2394
- onVnodeUnmounted: (x) => {
2395
- x.component.isUnmounted && (c.instances[u] = null);
2392
+ return oo(n.default, { Component: p, route: l });
2393
+ const f = d.props[u], h = f ? f === !0 ? l.params : typeof f == "function" ? f(l) : f : null, g = Oo(p, T({}, h, t, {
2394
+ onVnodeUnmounted: ($) => {
2395
+ $.component.isUnmounted && (d.instances[u] = null);
2396
2396
  },
2397
- ref: l
2397
+ ref: c
2398
2398
  }));
2399
2399
  if (process.env.NODE_ENV !== "production" && ce && g.ref) {
2400
- const x = {
2400
+ const $ = {
2401
2401
  depth: i.value,
2402
- name: c.name,
2403
- path: c.path,
2404
- meta: c.meta
2402
+ name: d.name,
2403
+ path: d.path,
2404
+ meta: d.meta
2405
2405
  };
2406
- (Y(g.ref) ? g.ref.map((k) => k.i) : [g.ref.i]).forEach((k) => {
2407
- k.__vrv_devtools = x;
2406
+ (Y(g.ref) ? g.ref.map((S) => S.i) : [g.ref.i]).forEach((S) => {
2407
+ S.__vrv_devtools = $;
2408
2408
  });
2409
2409
  }
2410
2410
  return (
2411
2411
  // pass the vnode to the slot as a prop.
2412
2412
  // h and <component :is="..."> both accept vnodes
2413
- oo(n.default, { Component: g, route: d }) || g
2413
+ oo(n.default, { Component: g, route: l }) || g
2414
2414
  );
2415
2415
  };
2416
2416
  }
@@ -2426,7 +2426,7 @@ function za() {
2426
2426
  const e = We(), t = e.parent && e.parent.type.name, n = e.parent && e.parent.subTree && e.parent.subTree.type;
2427
2427
  if (t && (t === "KeepAlive" || t.includes("Transition")) && typeof n == "object" && n.name === "RouterView") {
2428
2428
  const o = t === "KeepAlive" ? "keep-alive" : "transition";
2429
- S(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
2429
+ N(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
2430
2430
  Use slot props instead:
2431
2431
 
2432
2432
  <router-view v-slot="{ Component }">
@@ -2473,16 +2473,16 @@ function qa(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, c) => {
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
2477
  u.instanceData && u.instanceData.state.push({
2478
2478
  type: "Routing",
2479
2479
  key: "$route",
2480
2480
  editable: !1,
2481
2481
  value: qe(t.currentRoute.value, "Current Route")
2482
2482
  });
2483
- }), r.on.visitComponentTree(({ treeNode: u, componentInstance: c }) => {
2484
- if (c.__vrv_devtools) {
2485
- const p = c.__vrv_devtools;
2483
+ }), r.on.visitComponentTree(({ treeNode: u, componentInstance: d }) => {
2484
+ if (d.__vrv_devtools) {
2485
+ const p = d.__vrv_devtools;
2486
2486
  u.tags.push({
2487
2487
  label: (p.name ? `${p.name.toString()}: ` : "") + p.path,
2488
2488
  textColor: 0,
@@ -2490,41 +2490,41 @@ function qa(e, t, n) {
2490
2490
  backgroundColor: er
2491
2491
  });
2492
2492
  }
2493
- Y(c.__vrl_devtools) && (c.__devtoolsApi = r, c.__vrl_devtools.forEach((p) => {
2494
- let f = p.route.path, m = or, g = "", x = 0;
2495
- p.error ? (f = p.error, m = Xa, x = Za) : p.isExactActive ? (m = nr, g = "This is exactly active") : p.isActive && (m = tr, g = "This link is active"), u.tags.push({
2493
+ Y(d.__vrl_devtools) && (d.__devtoolsApi = r, d.__vrl_devtools.forEach((p) => {
2494
+ let f = p.route.path, h = or, g = "", $ = 0;
2495
+ p.error ? (f = p.error, h = Xa, $ = Za) : p.isExactActive ? (h = nr, g = "This is exactly active") : p.isActive && (h = tr, g = "This link is active"), u.tags.push({
2496
2496
  label: f,
2497
- textColor: x,
2497
+ textColor: $,
2498
2498
  tooltip: g,
2499
- backgroundColor: m
2499
+ backgroundColor: h
2500
2500
  });
2501
2501
  }));
2502
2502
  }), H(t.currentRoute, () => {
2503
- l(), r.notifyComponentUpdate(), r.sendInspectorTree(a), r.sendInspectorState(a);
2503
+ c(), r.notifyComponentUpdate(), r.sendInspectorTree(a), r.sendInspectorState(a);
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, c) => {
2510
+ }), t.onError((u, d) => {
2511
2511
  r.addTimelineEvent({
2512
2512
  layerId: s,
2513
2513
  event: {
2514
2514
  title: "Error during Navigation",
2515
- subtitle: c.fullPath,
2515
+ subtitle: d.fullPath,
2516
2516
  logType: "error",
2517
2517
  time: r.now(),
2518
2518
  data: { error: u },
2519
- groupId: c.meta.__navigationId
2519
+ groupId: d.meta.__navigationId
2520
2520
  }
2521
2521
  });
2522
2522
  });
2523
2523
  let i = 0;
2524
- t.beforeEach((u, c) => {
2524
+ t.beforeEach((u, d) => {
2525
2525
  const p = {
2526
2526
  guard: pt("beforeEach"),
2527
- from: qe(c, "Current Location during this navigation"),
2527
+ from: qe(d, "Current Location during this navigation"),
2528
2528
  to: qe(u, "Target location")
2529
2529
  };
2530
2530
  Object.defineProperty(u.meta, "__navigationId", {
@@ -2539,7 +2539,7 @@ function qa(e, t, n) {
2539
2539
  groupId: u.meta.__navigationId
2540
2540
  }
2541
2541
  });
2542
- }), t.afterEach((u, c, p) => {
2542
+ }), t.afterEach((u, d, p) => {
2543
2543
  const f = {
2544
2544
  guard: pt("afterEach")
2545
2545
  };
@@ -2551,7 +2551,7 @@ function qa(e, t, n) {
2551
2551
  tooltip: "Navigation Failure",
2552
2552
  value: p
2553
2553
  }
2554
- }, f.status = pt("❌")) : f.status = pt("✅"), f.from = qe(c, "Current Location during this navigation"), f.to = qe(u, "Target location"), r.addTimelineEvent({
2554
+ }, f.status = pt("❌")) : f.status = pt("✅"), f.from = qe(d, "Current Location during this navigation"), f.to = qe(u, "Target location"), r.addTimelineEvent({
2555
2555
  layerId: s,
2556
2556
  event: {
2557
2557
  title: "End of navigation",
@@ -2570,26 +2570,26 @@ function qa(e, t, n) {
2570
2570
  icon: "book",
2571
2571
  treeFilterPlaceholder: "Search routes"
2572
2572
  });
2573
- function l() {
2574
- if (!d)
2573
+ function c() {
2574
+ if (!l)
2575
2575
  return;
2576
- const u = d;
2577
- let c = n.getRoutes().filter((p) => !p.parent || // these routes have a parent with no component which will not appear in the view
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
2578
2578
  // therefore we still need to include them
2579
2579
  !p.parent.record.components);
2580
- c.forEach(ar), u.filter && (c = c.filter((p) => (
2580
+ d.forEach(ar), u.filter && (d = d.filter((p) => (
2581
2581
  // save matches state based on the payload
2582
2582
  rn(p, u.filter.toLowerCase())
2583
- ))), c.forEach((p) => sr(p, t.currentRoute.value)), u.rootNodes = c.map(rr);
2583
+ ))), d.forEach((p) => sr(p, t.currentRoute.value)), u.rootNodes = d.map(rr);
2584
2584
  }
2585
- let d;
2585
+ let l;
2586
2586
  r.on.getInspectorTree((u) => {
2587
- d = u, u.app === e && u.inspectorId === a && l();
2587
+ l = u, u.app === e && u.inspectorId === a && c();
2588
2588
  }), r.on.getInspectorState((u) => {
2589
2589
  if (u.app === e && u.inspectorId === a) {
2590
- const c = n.getRoutes().find((p) => p.record.__vd_id === u.nodeId);
2591
- c && (u.state = {
2592
- options: Ka(c)
2590
+ const d = n.getRoutes().find((p) => p.record.__vd_id === u.nodeId);
2591
+ d && (u.state = {
2592
+ options: Ka(d)
2593
2593
  });
2594
2594
  }
2595
2595
  }), r.sendInspectorTree(a), r.sendInspectorState(a);
@@ -2683,8 +2683,8 @@ function rr(e) {
2683
2683
  let ei = 0;
2684
2684
  const ti = /^\/(.*)\/([a-z]*)$/;
2685
2685
  function sr(e, t) {
2686
- const n = t.matched.length && be(t.matched[t.matched.length - 1], e.record);
2687
- e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((o) => be(o, e.record))), e.children.forEach((o) => sr(o, t));
2686
+ const n = t.matched.length && we(t.matched[t.matched.length - 1], e.record);
2687
+ e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((o) => we(o, e.record))), e.children.forEach((o) => sr(o, t));
2688
2688
  }
2689
2689
  function ar(e) {
2690
2690
  e.__vd_match = !1, e.children.forEach(ar);
@@ -2708,62 +2708,62 @@ function oi(e) {
2708
2708
  const t = Sa(e.routes, e), n = e.parseQuery || Ra, o = e.stringifyQuery || Xn, 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 = Ge(), i = Ge(), a = Ge(), l = Ar(me);
2712
- let d = me;
2711
+ const s = Ge(), i = Ge(), a = Ge(), c = Ar(me);
2712
+ let l = me;
2713
2713
  ce && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
2714
- const u = Bt.bind(null, (h) => "" + h), c = Bt.bind(null, Zs), p = (
2714
+ const u = Bt.bind(null, (m) => "" + m), d = Bt.bind(null, Zs), p = (
2715
2715
  // @ts-expect-error: intentionally avoid the type check
2716
2716
  Bt.bind(null, je)
2717
2717
  );
2718
- function f(h, y) {
2719
- let v, E;
2720
- return Yo(h) ? (v = t.getRecordMatcher(h), process.env.NODE_ENV !== "production" && !v && S(`Parent route "${String(h)}" not found when adding child route`, y), E = y) : E = h, t.addRoute(E, v);
2718
+ function f(m, y) {
2719
+ let v, _;
2720
+ return Yo(m) ? (v = t.getRecordMatcher(m), process.env.NODE_ENV !== "production" && !v && N(`Parent route "${String(m)}" not found when adding child route`, y), _ = y) : _ = m, t.addRoute(_, v);
2721
2721
  }
2722
- function m(h) {
2723
- const y = t.getRecordMatcher(h);
2724
- y ? t.removeRoute(y) : process.env.NODE_ENV !== "production" && S(`Cannot remove non-existent route "${String(h)}"`);
2722
+ function h(m) {
2723
+ const y = t.getRecordMatcher(m);
2724
+ y ? t.removeRoute(y) : process.env.NODE_ENV !== "production" && N(`Cannot remove non-existent route "${String(m)}"`);
2725
2725
  }
2726
2726
  function g() {
2727
- return t.getRoutes().map((h) => h.record);
2727
+ return t.getRoutes().map((m) => m.record);
2728
2728
  }
2729
- function x(h) {
2730
- return !!t.getRecordMatcher(h);
2729
+ function $(m) {
2730
+ return !!t.getRecordMatcher(m);
2731
2731
  }
2732
- function k(h, y) {
2733
- if (y = T({}, y || l.value), typeof h == "string") {
2734
- const N = Ut(n, h, y.path), M = t.resolve({ path: N.path }, y), _e = r.createHref(N.fullPath);
2735
- return process.env.NODE_ENV !== "production" && (_e.startsWith("//") ? S(`Location "${h}" resolved to "${_e}". A resolved location cannot start with multiple slashes.`) : M.matched.length || S(`No match found for location with path "${h}"`)), T(N, M, {
2736
- params: p(M.params),
2737
- hash: je(N.hash),
2732
+ function S(m, y) {
2733
+ if (y = T({}, y || c.value), typeof m == "string") {
2734
+ const I = Ut(n, m, y.path), B = t.resolve({ path: I.path }, y), _e = r.createHref(I.fullPath);
2735
+ return process.env.NODE_ENV !== "production" && (_e.startsWith("//") ? N(`Location "${m}" resolved to "${_e}". A resolved location cannot start with multiple slashes.`) : B.matched.length || N(`No match found for location with path "${m}"`)), T(I, B, {
2736
+ params: p(B.params),
2737
+ hash: je(I.hash),
2738
2738
  redirectedFrom: void 0,
2739
2739
  href: _e
2740
2740
  });
2741
2741
  }
2742
- if (process.env.NODE_ENV !== "production" && !St(h))
2743
- return S(`router.resolve() was passed an invalid location. This will fail in production.
2744
- - Location:`, h), k({});
2742
+ if (process.env.NODE_ENV !== "production" && !St(m))
2743
+ return N(`router.resolve() was passed an invalid location. This will fail in production.
2744
+ - Location:`, m), S({});
2745
2745
  let v;
2746
- if (h.path != null)
2747
- process.env.NODE_ENV !== "production" && "params" in h && !("name" in h) && // @ts-expect-error: the type is never
2748
- Object.keys(h.params).length && S(`Path "${h.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), v = T({}, h, {
2749
- path: Ut(n, h.path, y.path).path
2746
+ if (m.path != null)
2747
+ process.env.NODE_ENV !== "production" && "params" in m && !("name" in m) && // @ts-expect-error: the type is never
2748
+ Object.keys(m.params).length && N(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), v = T({}, m, {
2749
+ path: Ut(n, m.path, y.path).path
2750
2750
  });
2751
2751
  else {
2752
- const N = T({}, h.params);
2753
- for (const M in N)
2754
- N[M] == null && delete N[M];
2755
- v = T({}, h, {
2756
- params: c(N)
2757
- }), y.params = c(y.params);
2752
+ const I = T({}, m.params);
2753
+ for (const B in I)
2754
+ I[B] == null && delete I[B];
2755
+ v = T({}, m, {
2756
+ params: d(I)
2757
+ }), y.params = d(y.params);
2758
2758
  }
2759
- const E = t.resolve(v, y), A = h.hash || "";
2760
- process.env.NODE_ENV !== "production" && A && !A.startsWith("#") && S(`A \`hash\` should always start with the character "#". Replace "${A}" with "#${A}".`), E.params = u(p(E.params));
2761
- const B = na(o, T({}, h, {
2759
+ const _ = t.resolve(v, y), A = m.hash || "";
2760
+ process.env.NODE_ENV !== "production" && A && !A.startsWith("#") && N(`A \`hash\` should always start with the character "#". Replace "${A}" with "#${A}".`), _.params = u(p(_.params));
2761
+ const U = na(o, T({}, m, {
2762
2762
  hash: Ys(A),
2763
- path: E.path
2764
- })), P = r.createHref(B);
2765
- return process.env.NODE_ENV !== "production" && (P.startsWith("//") ? S(`Location "${h}" resolved to "${P}". 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}"`)), T({
2766
- fullPath: B,
2763
+ path: _.path
2764
+ })), D = r.createHref(U);
2765
+ return process.env.NODE_ENV !== "production" && (D.startsWith("//") ? N(`Location "${m}" resolved to "${D}". A resolved location cannot start with multiple slashes.`) : _.matched.length || N(`No match found for location with path "${m.path != null ? m.path : m}"`)), T({
2766
+ fullPath: U,
2767
2767
  // keep the hash encoded so fullPath is effectively path + encodedQuery +
2768
2768
  // hash
2769
2769
  hash: A,
@@ -2773,74 +2773,74 @@ function oi(e) {
2773
2773
  // numbers at `$route.query`, but at the point, the user will have to
2774
2774
  // use their own type anyway.
2775
2775
  // https://github.com/vuejs/router/issues/328#issuecomment-649481567
2776
- o === Xn ? Va(h.query) : h.query || {}
2776
+ o === Xn ? Va(m.query) : m.query || {}
2777
2777
  )
2778
- }, E, {
2778
+ }, _, {
2779
2779
  redirectedFrom: void 0,
2780
- href: P
2780
+ href: D
2781
2781
  });
2782
2782
  }
2783
- function _(h) {
2784
- return typeof h == "string" ? Ut(n, h, l.value.path) : T({}, h);
2783
+ function x(m) {
2784
+ return typeof m == "string" ? Ut(n, m, c.value.path) : T({}, m);
2785
2785
  }
2786
- function D(h, y) {
2787
- if (d !== h)
2786
+ function O(m, y) {
2787
+ if (l !== m)
2788
2788
  return Le(8, {
2789
2789
  from: y,
2790
- to: h
2790
+ to: m
2791
2791
  });
2792
2792
  }
2793
- function U(h) {
2794
- return $(h);
2793
+ function j(m) {
2794
+ return E(m);
2795
2795
  }
2796
- function q(h) {
2797
- return U(T(_(h), { replace: !0 }));
2796
+ function q(m) {
2797
+ return j(T(x(m), { replace: !0 }));
2798
2798
  }
2799
- function ee(h) {
2800
- const y = h.matched[h.matched.length - 1];
2799
+ function ee(m) {
2800
+ const y = m.matched[m.matched.length - 1];
2801
2801
  if (y && y.redirect) {
2802
2802
  const { redirect: v } = y;
2803
- let E = typeof v == "function" ? v(h) : v;
2804
- if (typeof E == "string" && (E = E.includes("?") || E.includes("#") ? E = _(E) : (
2803
+ let _ = typeof v == "function" ? v(m) : v;
2804
+ if (typeof _ == "string" && (_ = _.includes("?") || _.includes("#") ? _ = x(_) : (
2805
2805
  // force empty params
2806
- { path: E }
2807
- ), E.params = {}), process.env.NODE_ENV !== "production" && E.path == null && !("name" in E))
2808
- throw S(`Invalid redirect found:
2809
- ${JSON.stringify(E, null, 2)}
2810
- when navigating to "${h.fullPath}". A redirect must contain a name or path. This will break in production.`), new Error("Invalid redirect");
2806
+ { path: _ }
2807
+ ), _.params = {}), process.env.NODE_ENV !== "production" && _.path == null && !("name" in _))
2808
+ throw N(`Invalid redirect found:
2809
+ ${JSON.stringify(_, null, 2)}
2810
+ when navigating to "${m.fullPath}". A redirect must contain a name or path. This will break in production.`), new Error("Invalid redirect");
2811
2811
  return T({
2812
- query: h.query,
2813
- hash: h.hash,
2812
+ query: m.query,
2813
+ hash: m.hash,
2814
2814
  // avoid transferring params if the redirect has a path
2815
- params: E.path != null ? {} : h.params
2816
- }, E);
2815
+ params: _.path != null ? {} : m.params
2816
+ }, _);
2817
2817
  }
2818
2818
  }
2819
- function $(h, y) {
2820
- const v = d = k(h), E = l.value, A = h.state, B = h.force, P = h.replace === !0, N = ee(v);
2821
- if (N)
2822
- return $(
2823
- T(_(N), {
2824
- state: typeof N == "object" ? T({}, A, N.state) : A,
2825
- force: B,
2826
- replace: P
2819
+ function E(m, y) {
2820
+ const v = l = S(m), _ = c.value, A = m.state, U = m.force, D = m.replace === !0, I = ee(v);
2821
+ if (I)
2822
+ return E(
2823
+ T(x(I), {
2824
+ state: typeof I == "object" ? T({}, A, I.state) : A,
2825
+ force: U,
2826
+ replace: D
2827
2827
  }),
2828
2828
  // keep original redirectedFrom if it exists
2829
2829
  y || v
2830
2830
  );
2831
- const M = v;
2832
- M.redirectedFrom = y;
2831
+ const B = v;
2832
+ B.redirectedFrom = y;
2833
2833
  let _e;
2834
- return !B && Un(o, E, v) && (_e = Le(16, { to: M, from: E }), Dn(
2835
- E,
2836
- E,
2834
+ return !U && Un(o, _, v) && (_e = Le(16, { to: B, from: _ }), Dn(
2835
+ _,
2836
+ _,
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
- )), (_e ? Promise.resolve(_e) : w(M, E)).catch((J) => le(J) ? (
2843
+ )), (_e ? Promise.resolve(_e) : b(B, _)).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(E, null, 2)}
2849
2849
  ) ? J : Rt(J)
2850
2850
  ) : (
2851
2851
  // reject any unknown error
2852
- z(J, M, E)
2852
+ z(J, B, _)
2853
2853
  )).then((J) => {
2854
2854
  if (J) {
2855
2855
  if (le(
@@ -2858,173 +2858,173 @@ ${JSON.stringify(E, null, 2)}
2858
2858
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
2859
2859
  ))
2860
2860
  return process.env.NODE_ENV !== "production" && // we are redirecting to the same location we were already at
2861
- Un(o, k(J.to), M) && // and we have done it a couple of times
2861
+ Un(o, S(J.to), B) && // and we have done it a couple of times
2862
2862
  y && // @ts-expect-error: added only in dev
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 "${E.fullPath}" to "${M.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"))) : $(
2866
+ ) : 1) > 30 ? (N(`Detected a possibly infinite redirection in a navigation guard when going from "${_.fullPath}" to "${B.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"))) : E(
2868
2868
  // keep options
2869
2869
  T({
2870
2870
  // preserve an existing replacement but allow the redirect to override it
2871
- replace: P
2872
- }, _(J.to), {
2871
+ replace: D
2872
+ }, x(J.to), {
2873
2873
  state: typeof J.to == "object" ? T({}, A, J.to.state) : A,
2874
- force: B
2874
+ force: U
2875
2875
  }),
2876
2876
  // preserve the original redirectedFrom if any
2877
- y || M
2877
+ y || B
2878
2878
  );
2879
2879
  } else
2880
- J = K(M, E, !0, P, A);
2881
- return j(M, E, J), J;
2880
+ J = K(B, _, !0, D, A);
2881
+ return L(B, _, J), J;
2882
2882
  });
2883
2883
  }
2884
- function oe(h, y) {
2885
- const v = D(h, y);
2884
+ function oe(m, y) {
2885
+ const v = O(m, y);
2886
2886
  return v ? Promise.reject(v) : Promise.resolve();
2887
2887
  }
2888
- function b(h) {
2888
+ function w(m) {
2889
2889
  const y = ct.values().next().value;
2890
- return y && typeof y.runWithContext == "function" ? y.runWithContext(h) : h();
2890
+ return y && typeof y.runWithContext == "function" ? y.runWithContext(m) : m();
2891
2891
  }
2892
- function w(h, y) {
2892
+ function b(m, y) {
2893
2893
  let v;
2894
- const [E, A, B] = ri(h, y);
2895
- v = Wt(E.reverse(), "beforeRouteLeave", h, y);
2896
- for (const N of E)
2897
- N.leaveGuards.forEach((M) => {
2898
- v.push(ve(M, h, y));
2894
+ const [_, A, U] = ri(m, y);
2895
+ v = Wt(_.reverse(), "beforeRouteLeave", m, y);
2896
+ for (const I of _)
2897
+ I.leaveGuards.forEach((B) => {
2898
+ v.push(ve(B, m, y));
2899
2899
  });
2900
- const P = oe.bind(null, h, y);
2901
- return v.push(P), De(v).then(() => {
2900
+ const D = oe.bind(null, m, y);
2901
+ return v.push(D), De(v).then(() => {
2902
2902
  v = [];
2903
- for (const N of s.list())
2904
- v.push(ve(N, h, y));
2905
- return v.push(P), De(v);
2903
+ for (const I of s.list())
2904
+ v.push(ve(I, m, y));
2905
+ return v.push(D), De(v);
2906
2906
  }).then(() => {
2907
- v = Wt(A, "beforeRouteUpdate", h, y);
2908
- for (const N of A)
2909
- N.updateGuards.forEach((M) => {
2910
- v.push(ve(M, h, y));
2907
+ v = Wt(A, "beforeRouteUpdate", m, y);
2908
+ for (const I of A)
2909
+ I.updateGuards.forEach((B) => {
2910
+ v.push(ve(B, m, y));
2911
2911
  });
2912
- return v.push(P), De(v);
2912
+ return v.push(D), De(v);
2913
2913
  }).then(() => {
2914
2914
  v = [];
2915
- for (const N of B)
2916
- if (N.beforeEnter)
2917
- if (Y(N.beforeEnter))
2918
- for (const M of N.beforeEnter)
2919
- v.push(ve(M, h, y));
2915
+ for (const I of U)
2916
+ if (I.beforeEnter)
2917
+ if (Y(I.beforeEnter))
2918
+ for (const B of I.beforeEnter)
2919
+ v.push(ve(B, m, y));
2920
2920
  else
2921
- v.push(ve(N.beforeEnter, h, y));
2922
- return v.push(P), De(v);
2923
- }).then(() => (h.matched.forEach((N) => N.enterCallbacks = {}), v = Wt(B, "beforeRouteEnter", h, y, b), v.push(P), De(v))).then(() => {
2921
+ v.push(ve(I.beforeEnter, m, y));
2922
+ return v.push(D), De(v);
2923
+ }).then(() => (m.matched.forEach((I) => I.enterCallbacks = {}), v = Wt(U, "beforeRouteEnter", m, y, w), v.push(D), De(v))).then(() => {
2924
2924
  v = [];
2925
- for (const N of i.list())
2926
- v.push(ve(N, h, y));
2927
- return v.push(P), De(v);
2928
- }).catch((N) => le(
2929
- N,
2925
+ for (const I of i.list())
2926
+ v.push(ve(I, m, y));
2927
+ return v.push(D), De(v);
2928
+ }).catch((I) => le(
2929
+ I,
2930
2930
  8
2931
2931
  /* ErrorTypes.NAVIGATION_CANCELLED */
2932
- ) ? N : Promise.reject(N));
2932
+ ) ? I : Promise.reject(I));
2933
2933
  }
2934
- function j(h, y, v) {
2935
- a.list().forEach((E) => b(() => E(h, y, v)));
2934
+ function L(m, y, v) {
2935
+ a.list().forEach((_) => w(() => _(m, y, v)));
2936
2936
  }
2937
- function K(h, y, v, E, A) {
2938
- const B = D(h, y);
2939
- if (B)
2940
- return B;
2941
- const P = y === me, N = ce ? history.state : {};
2942
- v && (E || P ? r.replace(h.fullPath, T({
2943
- scroll: P && N && N.scroll
2944
- }, A)) : r.push(h.fullPath, A)), l.value = h, Dn(h, y, v, P), Rt();
2937
+ function K(m, y, v, _, A) {
2938
+ const U = O(m, y);
2939
+ if (U)
2940
+ return U;
2941
+ const D = y === me, I = ce ? history.state : {};
2942
+ v && (_ || D ? r.replace(m.fullPath, T({
2943
+ scroll: D && I && I.scroll
2944
+ }, A)) : r.push(m.fullPath, A)), c.value = m, Dn(m, y, v, D), Rt();
2945
2945
  }
2946
2946
  let te;
2947
2947
  function He() {
2948
- te || (te = r.listen((h, y, v) => {
2949
- const E = k(h), A = ee(E);
2948
+ te || (te = r.listen((m, y, v) => {
2949
+ const _ = S(m), A = ee(_);
2950
2950
  if (A) {
2951
- $(T(A, { replace: !0 }), E).catch(Ye);
2951
+ E(T(A, { replace: !0 }), _).catch(Ye);
2952
2952
  return;
2953
2953
  }
2954
- d = E;
2955
- const B = l.value;
2956
- ce && ua(Hn(B.fullPath, v.delta), Pt()), w(E, B).catch((P) => le(
2957
- P,
2954
+ l = _;
2955
+ const U = c.value;
2956
+ ce && ua(Hn(U.fullPath, v.delta), Pt()), b(_, U).catch((D) => le(
2957
+ D,
2958
2958
  12
2959
2959
  /* ErrorTypes.NAVIGATION_CANCELLED */
2960
- ) ? P : le(
2961
- P,
2960
+ ) ? D : le(
2961
+ D,
2962
2962
  2
2963
2963
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
2964
- ) ? ($(
2965
- P.to,
2966
- E
2964
+ ) ? (E(
2965
+ D.to,
2966
+ _
2967
2967
  // avoid an uncaught rejection, let push call triggerError
2968
- ).then((N) => {
2968
+ ).then((I) => {
2969
2969
  le(
2970
- N,
2970
+ I,
2971
2971
  20
2972
2972
  /* ErrorTypes.NAVIGATION_DUPLICATED */
2973
2973
  ) && !v.delta && v.type === rt.pop && r.go(-1, !1);
2974
- }).catch(Ye), Promise.reject()) : (v.delta && r.go(-v.delta, !1), z(P, E, B))).then((P) => {
2975
- P = P || K(
2974
+ }).catch(Ye), Promise.reject()) : (v.delta && r.go(-v.delta, !1), z(D, _, U))).then((D) => {
2975
+ D = D || K(
2976
2976
  // after navigation, all matched components are resolved
2977
- E,
2978
- B,
2977
+ _,
2978
+ U,
2979
2979
  !1
2980
- ), P && (v.delta && // a new navigation has been triggered, so we do not want to revert, that will change the current history
2980
+ ), D && (v.delta && // a new navigation has been triggered, so we do not want to revert, that will change the current history
2981
2981
  // entry while a different route is displayed
2982
2982
  !le(
2983
- P,
2983
+ D,
2984
2984
  8
2985
2985
  /* ErrorTypes.NAVIGATION_CANCELLED */
2986
2986
  ) ? r.go(-v.delta, !1) : v.type === rt.pop && le(
2987
- P,
2987
+ D,
2988
2988
  20
2989
2989
  /* ErrorTypes.NAVIGATION_DUPLICATED */
2990
- ) && r.go(-1, !1)), j(E, B, P);
2990
+ ) && r.go(-1, !1)), L(_, U, D);
2991
2991
  }).catch(Ye);
2992
2992
  }));
2993
2993
  }
2994
2994
  let Fe = Ge(), lt = Ge(), re;
2995
- function z(h, y, v) {
2996
- Rt(h);
2997
- const E = lt.list();
2998
- return E.length ? E.forEach((A) => A(h, y, v)) : (process.env.NODE_ENV !== "production" && S("uncaught error during route navigation:"), console.error(h)), Promise.reject(h);
2995
+ function z(m, y, v) {
2996
+ Rt(m);
2997
+ const _ = lt.list();
2998
+ return _.length ? _.forEach((A) => A(m, y, v)) : (process.env.NODE_ENV !== "production" && N("uncaught error during route navigation:"), console.error(m)), Promise.reject(m);
2999
2999
  }
3000
3000
  function Cr() {
3001
- return re && l.value !== me ? Promise.resolve() : new Promise((h, y) => {
3002
- Fe.add([h, y]);
3001
+ return re && c.value !== me ? Promise.resolve() : new Promise((m, y) => {
3002
+ Fe.add([m, y]);
3003
3003
  });
3004
3004
  }
3005
- function Rt(h) {
3006
- return re || (re = !h, He(), Fe.list().forEach(([y, v]) => h ? v(h) : y()), Fe.reset()), h;
3005
+ function Rt(m) {
3006
+ return re || (re = !m, He(), Fe.list().forEach(([y, v]) => m ? v(m) : y()), Fe.reset()), m;
3007
3007
  }
3008
- function Dn(h, y, v, E) {
3008
+ function Dn(m, y, v, _) {
3009
3009
  const { scrollBehavior: A } = e;
3010
3010
  if (!ce || !A)
3011
3011
  return Promise.resolve();
3012
- const B = !v && da(Hn(h.fullPath, 0)) || (E || !v) && history.state && history.state.scroll || null;
3013
- return Ve().then(() => A(h, y, B)).then((P) => P && ca(P)).catch((P) => z(P, h, y));
3012
+ const U = !v && da(Hn(m.fullPath, 0)) || (_ || !v) && history.state && history.state.scroll || null;
3013
+ return Ve().then(() => A(m, y, U)).then((D) => D && ca(D)).catch((D) => z(D, m, y));
3014
3014
  }
3015
- const Vt = (h) => r.go(h);
3015
+ const Vt = (m) => r.go(m);
3016
3016
  let jt;
3017
3017
  const ct = /* @__PURE__ */ new Set(), Pr = {
3018
- currentRoute: l,
3018
+ currentRoute: c,
3019
3019
  listening: !0,
3020
3020
  addRoute: f,
3021
- removeRoute: m,
3021
+ removeRoute: h,
3022
3022
  clearRoutes: t.clearRoutes,
3023
- hasRoute: x,
3023
+ hasRoute: $,
3024
3024
  getRoutes: g,
3025
- resolve: k,
3025
+ resolve: S,
3026
3026
  options: e,
3027
- push: U,
3027
+ push: j,
3028
3028
  replace: q,
3029
3029
  go: Vt,
3030
3030
  back: () => Vt(-1),
@@ -3034,31 +3034,31 @@ ${JSON.stringify(E, null, 2)}
3034
3034
  afterEach: a.add,
3035
3035
  onError: lt.add,
3036
3036
  isReady: Cr,
3037
- install(h) {
3037
+ install(m) {
3038
3038
  const y = this;
3039
- h.component("RouterLink", Ba), h.component("RouterView", Fa), h.config.globalProperties.$router = y, Object.defineProperty(h.config.globalProperties, "$route", {
3039
+ m.component("RouterLink", Ba), m.component("RouterView", Fa), m.config.globalProperties.$router = y, Object.defineProperty(m.config.globalProperties, "$route", {
3040
3040
  enumerable: !0,
3041
- get: () => O(l)
3041
+ get: () => k(c)
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
- !jt && l.value === me && (jt = !0, U(r.location).catch((A) => {
3045
- process.env.NODE_ENV !== "production" && S("Unexpected error when starting the router:", A);
3044
+ !jt && c.value === me && (jt = !0, j(r.location).catch((A) => {
3045
+ process.env.NODE_ENV !== "production" && N("Unexpected error when starting the router:", A);
3046
3046
  }));
3047
3047
  const v = {};
3048
3048
  for (const A in me)
3049
3049
  Object.defineProperty(v, A, {
3050
- get: () => l.value[A],
3050
+ get: () => c.value[A],
3051
3051
  enumerable: !0
3052
3052
  });
3053
- h.provide(vn, y), h.provide(Zo, Tr(v)), h.provide(on, l);
3054
- const E = h.unmount;
3055
- ct.add(h), h.unmount = function() {
3056
- ct.delete(h), ct.size < 1 && (d = me, te && te(), te = null, l.value = me, jt = !1, re = !1), E();
3057
- }, process.env.NODE_ENV !== "production" && ce && qa(h, y, t);
3053
+ m.provide(vn, y), m.provide(Zo, Tr(v)), m.provide(on, c);
3054
+ const _ = m.unmount;
3055
+ ct.add(m), m.unmount = function() {
3056
+ ct.delete(m), ct.size < 1 && (l = me, te && te(), te = null, c.value = me, jt = !1, re = !1), _();
3057
+ }, process.env.NODE_ENV !== "production" && ce && qa(m, y, t);
3058
3058
  }
3059
3059
  };
3060
- function De(h) {
3061
- return h.reduce((y, v) => y.then(() => b(v)), Promise.resolve());
3060
+ function De(m) {
3061
+ return m.reduce((y, v) => y.then(() => w(v)), Promise.resolve());
3062
3062
  }
3063
3063
  return Pr;
3064
3064
  }
@@ -3066,9 +3066,9 @@ function ri(e, t) {
3066
3066
  const n = [], o = [], r = [], s = Math.max(t.matched.length, e.matched.length);
3067
3067
  for (let i = 0; i < s; i++) {
3068
3068
  const a = t.matched[i];
3069
- a && (e.matched.find((d) => be(d, a)) ? o.push(a) : n.push(a));
3070
- const l = e.matched[i];
3071
- l && (t.matched.find((d) => be(d, l)) || r.push(l));
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));
3072
3072
  }
3073
3073
  return [n, o, r];
3074
3074
  }
@@ -3186,7 +3186,7 @@ function yn() {
3186
3186
  }
3187
3187
  var gi = Dt, yi = "pubkey.broadcast-channel-0-", pe = "messages", At = {
3188
3188
  durability: "relaxed"
3189
- }, wi = "idb";
3189
+ }, bi = "idb";
3190
3190
  function ur() {
3191
3191
  if (typeof indexedDB < "u") return indexedDB;
3192
3192
  if (typeof window < "u") {
@@ -3196,10 +3196,10 @@ function ur() {
3196
3196
  }
3197
3197
  return !1;
3198
3198
  }
3199
- function wn(e) {
3199
+ function bn(e) {
3200
3200
  e.commit && e.commit();
3201
3201
  }
3202
- function bi(e) {
3202
+ function wi(e) {
3203
3203
  var t = ur(), n = yi + e, o = t.open(n);
3204
3204
  return o.onupgradeneeded = function(r) {
3205
3205
  var s = r.target.result;
@@ -3224,22 +3224,22 @@ function _i(e, t, n) {
3224
3224
  return new Promise(function(i, a) {
3225
3225
  s.oncomplete = function() {
3226
3226
  return i();
3227
- }, s.onerror = function(d) {
3228
- return a(d);
3227
+ }, s.onerror = function(l) {
3228
+ return a(l);
3229
3229
  };
3230
- var l = s.objectStore(pe);
3231
- l.add(r), wn(s);
3230
+ var c = s.objectStore(pe);
3231
+ c.add(r), bn(s);
3232
3232
  });
3233
3233
  }
3234
3234
  function Ei(e, t) {
3235
3235
  var n = e.transaction(pe, "readonly", At), o = n.objectStore(pe), r = [], s = IDBKeyRange.bound(t + 1, 1 / 0);
3236
3236
  if (o.getAll) {
3237
3237
  var i = o.getAll(s);
3238
- return new Promise(function(l, d) {
3238
+ return new Promise(function(c, l) {
3239
3239
  i.onerror = function(u) {
3240
- return d(u);
3240
+ return l(u);
3241
3241
  }, i.onsuccess = function(u) {
3242
- l(u.target.result);
3242
+ c(u.target.result);
3243
3243
  };
3244
3244
  });
3245
3245
  }
@@ -3250,13 +3250,13 @@ function Ei(e, t) {
3250
3250
  return o.openCursor();
3251
3251
  }
3252
3252
  }
3253
- return new Promise(function(l, d) {
3253
+ return new Promise(function(c, l) {
3254
3254
  var u = a();
3255
- u.onerror = function(c) {
3256
- return d(c);
3257
- }, u.onsuccess = function(c) {
3258
- var p = c.target.result;
3259
- p ? p.value.id < t + 1 ? p.continue(t + 1) : (r.push(p.value), p.continue()) : (wn(n), l(r));
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()) : (bn(n), c(r));
3260
3260
  };
3261
3261
  });
3262
3262
  }
@@ -3277,10 +3277,10 @@ function $i(e, t) {
3277
3277
  var n = (/* @__PURE__ */ new Date()).getTime() - t, o = e.transaction(pe, "readonly", At), r = o.objectStore(pe), s = [];
3278
3278
  return new Promise(function(i) {
3279
3279
  r.openCursor().onsuccess = function(a) {
3280
- var l = a.target.result;
3281
- if (l) {
3282
- var d = l.value;
3283
- d.time < n ? (s.push(d), l.continue()) : (wn(o), i(s));
3280
+ var c = a.target.result;
3281
+ if (c) {
3282
+ var l = c.value;
3283
+ l.time < n ? (s.push(l), c.continue()) : (bn(o), i(s));
3284
3284
  } else
3285
3285
  i(s);
3286
3286
  };
@@ -3294,7 +3294,7 @@ function Oi(e) {
3294
3294
  });
3295
3295
  }
3296
3296
  function xi(e, t) {
3297
- return t = yn(t), bi(e).then(function(n) {
3297
+ return t = yn(t), wi(e).then(function(n) {
3298
3298
  var o = {
3299
3299
  closed: !1,
3300
3300
  lastCursorId: 0,
@@ -3369,7 +3369,7 @@ var Ai = {
3369
3369
  onMessage: Ci,
3370
3370
  postMessage: Ii,
3371
3371
  canBeUsed: Pi,
3372
- type: wi,
3372
+ type: bi,
3373
3373
  averageResponseTime: Di,
3374
3374
  microSeconds: gi
3375
3375
  }, Ti = Dt, Ri = "pubkey.broadcastChannel-", Vi = "localstorage";
@@ -3452,21 +3452,21 @@ var Fi = {
3452
3452
  type: Vi,
3453
3453
  averageResponseTime: Hi,
3454
3454
  microSeconds: Ti
3455
- }, zi = Dt, Gi = "simulate", bn = /* @__PURE__ */ new Set();
3455
+ }, zi = Dt, Gi = "simulate", wn = /* @__PURE__ */ new Set();
3456
3456
  function qi(e) {
3457
3457
  var t = {
3458
3458
  name: e,
3459
3459
  messagesCallback: null
3460
3460
  };
3461
- return bn.add(t), t;
3461
+ return wn.add(t), t;
3462
3462
  }
3463
3463
  function Ji(e) {
3464
- bn.delete(e);
3464
+ wn.delete(e);
3465
3465
  }
3466
3466
  function Ki(e, t) {
3467
3467
  return new Promise(function(n) {
3468
3468
  return setTimeout(function() {
3469
- var o = Array.from(bn);
3469
+ var o = Array.from(wn);
3470
3470
  o.filter(function(r) {
3471
3471
  return r.name === e.name;
3472
3472
  }).filter(function(r) {
@@ -3697,7 +3697,7 @@ function Re(e) {
3697
3697
  }
3698
3698
  return `"${n === 0 ? e : t + e.slice(n)}"`;
3699
3699
  }
3700
- const En = -1, yr = -2, wr = -3, br = -4, _r = -5, kn = -6;
3700
+ const En = -1, yr = -2, br = -3, wr = -4, _r = -5, kn = -6;
3701
3701
  function uo(e, t) {
3702
3702
  return cl(JSON.parse(e));
3703
3703
  }
@@ -3711,8 +3711,8 @@ function cl(e, t) {
3711
3711
  ), o = Array(n.length);
3712
3712
  function r(s, i = !1) {
3713
3713
  if (s === En) return;
3714
- if (s === wr) return NaN;
3715
- if (s === br) return 1 / 0;
3714
+ if (s === br) return NaN;
3715
+ if (s === wr) return 1 / 0;
3716
3716
  if (s === _r) return -1 / 0;
3717
3717
  if (s === kn) return -0;
3718
3718
  if (i) throw new Error("Invalid input");
@@ -3722,16 +3722,16 @@ function cl(e, t) {
3722
3722
  o[s] = a;
3723
3723
  else if (Array.isArray(a))
3724
3724
  if (typeof a[0] == "string") {
3725
- const l = a[0];
3726
- switch (l) {
3725
+ const c = a[0];
3726
+ switch (c) {
3727
3727
  case "Date":
3728
3728
  o[s] = new Date(a[1]);
3729
3729
  break;
3730
3730
  case "Set":
3731
- const d = /* @__PURE__ */ new Set();
3732
- o[s] = d;
3731
+ const l = /* @__PURE__ */ new Set();
3732
+ o[s] = l;
3733
3733
  for (let p = 1; p < a.length; p += 1)
3734
- d.add(r(a[p]));
3734
+ l.add(r(a[p]));
3735
3735
  break;
3736
3736
  case "Map":
3737
3737
  const u = /* @__PURE__ */ new Map();
@@ -3749,28 +3749,28 @@ function cl(e, t) {
3749
3749
  o[s] = BigInt(a[1]);
3750
3750
  break;
3751
3751
  case "null":
3752
- const c = /* @__PURE__ */ Object.create(null);
3753
- o[s] = c;
3752
+ const d = /* @__PURE__ */ Object.create(null);
3753
+ o[s] = d;
3754
3754
  for (let p = 1; p < a.length; p += 2)
3755
- c[a[p]] = r(a[p + 1]);
3755
+ d[a[p]] = r(a[p + 1]);
3756
3756
  break;
3757
3757
  default:
3758
- throw new Error(`Unknown type ${l}`);
3758
+ throw new Error(`Unknown type ${c}`);
3759
3759
  }
3760
3760
  } else {
3761
- const l = new Array(a.length);
3762
- o[s] = l;
3763
- for (let d = 0; d < a.length; d += 1) {
3764
- const u = a[d];
3765
- u !== yr && (l[d] = r(u));
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 !== yr && (c[l] = r(u));
3766
3766
  }
3767
3767
  }
3768
3768
  else {
3769
- const l = {};
3770
- o[s] = l;
3771
- for (const d in a) {
3772
- const u = a[d];
3773
- l[d] = r(u);
3769
+ const c = {};
3770
+ o[s] = c;
3771
+ for (const l in a) {
3772
+ const u = a[l];
3773
+ c[l] = r(u);
3774
3774
  }
3775
3775
  }
3776
3776
  return o[s];
@@ -3779,94 +3779,94 @@ function cl(e, t) {
3779
3779
  }
3780
3780
  function po(e, t) {
3781
3781
  const n = [], o = /* @__PURE__ */ new Map(), r = [];
3782
- for (const d in t)
3783
- r.push({ key: d, fn: t[d] });
3782
+ for (const l in t)
3783
+ r.push({ key: l, fn: t[l] });
3784
3784
  const s = [];
3785
3785
  let i = 0;
3786
- function a(d) {
3787
- if (typeof d == "function")
3786
+ function a(l) {
3787
+ if (typeof l == "function")
3788
3788
  throw new Ft("Cannot stringify a function", s);
3789
- if (o.has(d)) return o.get(d);
3790
- if (d === void 0) return En;
3791
- if (Number.isNaN(d)) return wr;
3792
- if (d === 1 / 0) return br;
3793
- if (d === -1 / 0) return _r;
3794
- if (d === 0 && 1 / d < 0) return kn;
3789
+ if (o.has(l)) return o.get(l);
3790
+ if (l === void 0) return En;
3791
+ if (Number.isNaN(l)) return br;
3792
+ if (l === 1 / 0) return wr;
3793
+ if (l === -1 / 0) return _r;
3794
+ if (l === 0 && 1 / l < 0) return kn;
3795
3795
  const u = i++;
3796
- o.set(d, u);
3796
+ o.set(l, u);
3797
3797
  for (const { key: p, fn: f } of r) {
3798
- const m = f(d);
3799
- if (m)
3800
- return n[u] = `["${p}",${a(m)}]`, u;
3798
+ const h = f(l);
3799
+ if (h)
3800
+ return n[u] = `["${p}",${a(h)}]`, u;
3801
3801
  }
3802
- let c = "";
3803
- if (co(d))
3804
- c = zt(d);
3802
+ let d = "";
3803
+ if (co(l))
3804
+ d = zt(l);
3805
3805
  else
3806
- switch (il(d)) {
3806
+ switch (il(l)) {
3807
3807
  case "Number":
3808
3808
  case "String":
3809
3809
  case "Boolean":
3810
- c = `["Object",${zt(d)}]`;
3810
+ d = `["Object",${zt(l)}]`;
3811
3811
  break;
3812
3812
  case "BigInt":
3813
- c = `["BigInt",${d}]`;
3813
+ d = `["BigInt",${l}]`;
3814
3814
  break;
3815
3815
  case "Date":
3816
- c = `["Date","${isNaN(d.getDate()) ? "" : d.toISOString()}"]`;
3816
+ d = `["Date","${isNaN(l.getDate()) ? "" : l.toISOString()}"]`;
3817
3817
  break;
3818
3818
  case "RegExp":
3819
- const { source: p, flags: f } = d;
3820
- c = f ? `["RegExp",${Re(p)},"${f}"]` : `["RegExp",${Re(p)}]`;
3819
+ const { source: p, flags: f } = l;
3820
+ d = f ? `["RegExp",${Re(p)},"${f}"]` : `["RegExp",${Re(p)}]`;
3821
3821
  break;
3822
3822
  case "Array":
3823
- c = "[";
3824
- for (let m = 0; m < d.length; m += 1)
3825
- m > 0 && (c += ","), m in d ? (s.push(`[${m}]`), c += a(d[m]), s.pop()) : c += yr;
3826
- c += "]";
3823
+ d = "[";
3824
+ for (let h = 0; h < l.length; h += 1)
3825
+ h > 0 && (d += ","), h in l ? (s.push(`[${h}]`), d += a(l[h]), s.pop()) : d += yr;
3826
+ d += "]";
3827
3827
  break;
3828
3828
  case "Set":
3829
- c = '["Set"';
3830
- for (const m of d)
3831
- c += `,${a(m)}`;
3832
- c += "]";
3829
+ d = '["Set"';
3830
+ for (const h of l)
3831
+ d += `,${a(h)}`;
3832
+ d += "]";
3833
3833
  break;
3834
3834
  case "Map":
3835
- c = '["Map"';
3836
- for (const [m, g] of d)
3835
+ d = '["Map"';
3836
+ for (const [h, g] of l)
3837
3837
  s.push(
3838
- `.get(${co(m) ? zt(m) : "..."})`
3839
- ), c += `,${a(m)},${a(g)}`, s.pop();
3840
- c += "]";
3838
+ `.get(${co(h) ? zt(h) : "..."})`
3839
+ ), d += `,${a(h)},${a(g)}`, s.pop();
3840
+ d += "]";
3841
3841
  break;
3842
3842
  default:
3843
- if (!al(d))
3843
+ if (!al(l))
3844
3844
  throw new Ft(
3845
3845
  "Cannot stringify arbitrary non-POJOs",
3846
3846
  s
3847
3847
  );
3848
- if (Object.getOwnPropertySymbols(d).length > 0)
3848
+ if (Object.getOwnPropertySymbols(l).length > 0)
3849
3849
  throw new Ft(
3850
3850
  "Cannot stringify POJOs with symbolic keys",
3851
3851
  s
3852
3852
  );
3853
- if (Object.getPrototypeOf(d) === null) {
3854
- c = '["null"';
3855
- for (const m in d)
3856
- s.push(`.${m}`), c += `,${Re(m)},${a(d[m])}`, s.pop();
3857
- c += "]";
3853
+ if (Object.getPrototypeOf(l) === null) {
3854
+ d = '["null"';
3855
+ for (const h in l)
3856
+ s.push(`.${h}`), d += `,${Re(h)},${a(l[h])}`, s.pop();
3857
+ d += "]";
3858
3858
  } else {
3859
- c = "{";
3860
- let m = !1;
3861
- for (const g in d)
3862
- m && (c += ","), m = !0, s.push(`.${g}`), c += `${Re(g)}:${a(d[g])}`, s.pop();
3863
- c += "}";
3859
+ d = "{";
3860
+ let h = !1;
3861
+ for (const g in l)
3862
+ h && (d += ","), h = !0, s.push(`.${g}`), d += `${Re(g)}:${a(l[g])}`, s.pop();
3863
+ d += "}";
3864
3864
  }
3865
3865
  }
3866
- return n[u] = c, u;
3866
+ return n[u] = d, u;
3867
3867
  }
3868
- const l = a(e);
3869
- return l < 0 ? `${l}` : `[${n.join(",")}]`;
3868
+ const c = a(e);
3869
+ return c < 0 ? `${c}` : `[${n.join(",")}]`;
3870
3870
  }
3871
3871
  function zt(e) {
3872
3872
  const t = typeof e;
@@ -3883,15 +3883,15 @@ function ul(e, t, { initialize: n, type: o }) {
3883
3883
  }
3884
3884
  u.timestamp <= a || (i = !0, a = u.timestamp, t[e] = u.state);
3885
3885
  };
3886
- let l = () => s.postMessage(void 0), d = () => s.close();
3887
- return n && l(), { sync: l, unshare: d };
3886
+ let c = () => s.postMessage(void 0), l = () => s.close();
3887
+ return n && c(), { sync: c, unshare: l };
3888
3888
  }
3889
3889
  var dl = (e, t) => Object.keys(t).includes(e), pl = ({ initialize: e = !0, enable: t = !0, type: n }) => ({ store: o, options: r }) => {
3890
3890
  var s, i;
3891
- let a = ((s = r == null ? void 0 : r.share) == null ? void 0 : s.enable) ?? t, l = ((i = r == null ? void 0 : r.share) == null ? void 0 : i.omit) ?? [];
3892
- !a || Object.keys(o.$state).forEach((d) => {
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
3893
  var u;
3894
- l.includes(d) || !dl(d, o.$state) || ul(d, o, { initialize: ((u = r == null ? void 0 : r.share) == null ? void 0 : u.initialize) ?? e, type: n });
3894
+ c.includes(l) || !dl(l, o.$state) || ul(l, o, { initialize: ((u = r == null ? void 0 : r.share) == null ? void 0 : u.initialize) ?? e, type: n });
3895
3895
  });
3896
3896
  };
3897
3897
  const fl = As();
@@ -3904,21 +3904,21 @@ fl.use(
3904
3904
  const hl = /* @__PURE__ */ Z({
3905
3905
  __name: "Doctype",
3906
3906
  setup(e) {
3907
- const { stonecrop: t, isReady: n } = Uo(), o = C([]);
3907
+ const { stonecrop: t, isReady: n } = Uo(), o = P([]);
3908
3908
  return H(n, () => {
3909
3909
  if (n.value) {
3910
3910
  let r = t.value.schema.schema.toArray();
3911
3911
  r.forEach((s, i) => {
3912
- const l = t.value.store.record[s.fieldname];
3913
- r[i].value = l;
3912
+ const c = t.value.store.record[s.fieldname];
3913
+ r[i].value = c;
3914
3914
  }), o.value = r;
3915
3915
  }
3916
- }), (r, s) => O(n) ? (I(), Se(O(ss), {
3916
+ }), (r, s) => k(n) ? (C(), Se(k(ss), {
3917
3917
  key: 0,
3918
3918
  class: "aform-main",
3919
3919
  modelValue: o.value,
3920
3920
  "onUpdate:modelValue": s[0] || (s[0] = (i) => o.value = i)
3921
- }, null, 8, ["modelValue"])) : we("", !0);
3921
+ }, null, 8, ["modelValue"])) : be("", !0);
3922
3922
  }
3923
3923
  });
3924
3924
  var ml = Object.defineProperty, vl = (e, t, n) => t in e ? ml(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ee = (e, t, n) => vl(e, typeof t != "symbol" ? t + "" : t, n);
@@ -3926,11 +3926,11 @@ function Er(e) {
3926
3926
  return Nt() ? (It(e), !0) : !1;
3927
3927
  }
3928
3928
  function $n(e) {
3929
- return typeof e == "function" ? e() : O(e);
3929
+ return typeof e == "function" ? e() : k(e);
3930
3930
  }
3931
3931
  const gl = typeof window < "u" && typeof document < "u";
3932
3932
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
3933
- const yl = (e) => e != null, wl = Object.prototype.toString, bl = (e) => wl.call(e) === "[object Object]", _l = () => {
3933
+ const yl = (e) => e != null, bl = Object.prototype.toString, wl = (e) => bl.call(e) === "[object Object]", _l = () => {
3934
3934
  }, it = gl ? window : void 0;
3935
3935
  function st(e) {
3936
3936
  var t;
@@ -3944,24 +3944,24 @@ function at(...e) {
3944
3944
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
3945
3945
  const s = [], i = () => {
3946
3946
  s.forEach((u) => u()), s.length = 0;
3947
- }, a = (u, c, p, f) => (u.addEventListener(c, p, f), () => u.removeEventListener(c, p, f)), l = H(
3947
+ }, a = (u, d, p, f) => (u.addEventListener(d, p, f), () => u.removeEventListener(d, p, f)), c = H(
3948
3948
  () => [st(t), $n(r)],
3949
- ([u, c]) => {
3949
+ ([u, d]) => {
3950
3950
  if (i(), !u)
3951
3951
  return;
3952
- const p = bl(c) ? { ...c } : c;
3952
+ const p = wl(d) ? { ...d } : d;
3953
3953
  s.push(
3954
- ...n.flatMap((f) => o.map((m) => a(u, f, m, p)))
3954
+ ...n.flatMap((f) => o.map((h) => a(u, f, h, p)))
3955
3955
  );
3956
3956
  },
3957
3957
  { immediate: !0, flush: "post" }
3958
- ), d = () => {
3959
- l(), i();
3958
+ ), l = () => {
3959
+ c(), i();
3960
3960
  };
3961
- return Er(d), d;
3961
+ return Er(l), l;
3962
3962
  }
3963
3963
  function El() {
3964
- const e = C(!1), t = We();
3964
+ const e = P(!1), t = We();
3965
3965
  return t && Ue(() => {
3966
3966
  e.value = !0;
3967
3967
  }, t), e;
@@ -3975,21 +3975,21 @@ function $l(e, t, n = {}) {
3975
3975
  let s;
3976
3976
  const i = kl(() => o && "MutationObserver" in o), a = () => {
3977
3977
  s && (s.disconnect(), s = void 0);
3978
- }, l = R(() => {
3978
+ }, c = R(() => {
3979
3979
  const p = $n(e), f = (Array.isArray(p) ? p : [p]).map(st).filter(yl);
3980
3980
  return new Set(f);
3981
- }), d = H(
3982
- () => l.value,
3981
+ }), l = H(
3982
+ () => c.value,
3983
3983
  (p) => {
3984
3984
  a(), i.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(), c = () => {
3988
- d(), a();
3987
+ ), u = () => s == null ? void 0 : s.takeRecords(), d = () => {
3988
+ l(), a();
3989
3989
  };
3990
- return Er(c), {
3990
+ return Er(d), {
3991
3991
  isSupported: i,
3992
- stop: c,
3992
+ stop: d,
3993
3993
  takeRecords: u
3994
3994
  };
3995
3995
  }
@@ -4000,33 +4000,33 @@ function Ol(e = {}) {
4000
4000
  deep: o = !0,
4001
4001
  triggerOnRemoval: r = !1
4002
4002
  } = e, s = (t = e.document) != null ? t : n == null ? void 0 : n.document, i = () => {
4003
- var d;
4003
+ var l;
4004
4004
  let u = s == null ? void 0 : s.activeElement;
4005
4005
  if (o)
4006
4006
  for (; u != null && u.shadowRoot; )
4007
- u = (d = u == null ? void 0 : u.shadowRoot) == null ? void 0 : d.activeElement;
4007
+ u = (l = u == null ? void 0 : u.shadowRoot) == null ? void 0 : l.activeElement;
4008
4008
  return u;
4009
- }, a = C(), l = () => {
4009
+ }, a = P(), c = () => {
4010
4010
  a.value = i();
4011
4011
  };
4012
- return n && (at(n, "blur", (d) => {
4013
- d.relatedTarget === null && l();
4014
- }, !0), at(n, "focus", l, !0)), r && $l(s, (d) => {
4015
- d.filter((u) => u.removedNodes.length).map((u) => Array.from(u.removedNodes)).flat().forEach((u) => {
4016
- u === a.value && l();
4012
+ return n && (at(n, "blur", (l) => {
4013
+ l.relatedTarget === null && c();
4014
+ }, !0), at(n, "focus", c, !0)), r && $l(s, (l) => {
4015
+ l.filter((u) => u.removedNodes.length).map((u) => Array.from(u.removedNodes)).flat().forEach((u) => {
4016
+ u === a.value && c();
4017
4017
  });
4018
4018
  }, {
4019
4019
  childList: !0,
4020
4020
  subtree: !0
4021
- }), l(), a;
4021
+ }), c(), a;
4022
4022
  }
4023
4023
  const xl = "focusin", Sl = "focusout";
4024
4024
  function Nl(e, t = {}) {
4025
- const { window: n = it } = t, o = R(() => st(e)), r = C(!1), s = R(() => r.value), i = Ol(t);
4025
+ const { window: n = it } = t, o = R(() => st(e)), r = P(!1), s = R(() => r.value), i = Ol(t);
4026
4026
  return !n || !i.value ? { focused: s } : (at(o, xl, () => r.value = !0), at(o, Sl, () => r.value = !1), { focused: s });
4027
4027
  }
4028
4028
  function Il(e, { window: t = it, scrollTarget: n } = {}) {
4029
- const o = C(!1), r = () => {
4029
+ const o = P(!1), r = () => {
4030
4030
  if (!t) return;
4031
4031
  const s = t.document, i = st(e);
4032
4032
  if (!i)
@@ -4225,41 +4225,41 @@ function kr(e) {
4225
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
4226
  }, n = (i) => {
4227
4227
  const a = t(i);
4228
- let l = [];
4228
+ let c = [];
4229
4229
  if (typeof i.selectors == "string")
4230
- l = a ? Array.from(a.querySelectorAll(i.selectors)) : Array.from(document.querySelectorAll(i.selectors));
4230
+ c = a ? Array.from(a.querySelectorAll(i.selectors)) : Array.from(document.querySelectorAll(i.selectors));
4231
4231
  else if (Array.isArray(i.selectors))
4232
- for (const d of i.selectors)
4233
- d instanceof HTMLElement ? l.push(d) : l.push(d.$el);
4232
+ for (const l of i.selectors)
4233
+ l instanceof HTMLElement ? c.push(l) : c.push(l.$el);
4234
4234
  else if (i.selectors instanceof HTMLElement)
4235
- l.push(i.selectors);
4235
+ c.push(i.selectors);
4236
4236
  else if (Array.isArray(i.selectors.value))
4237
- for (const d of i.selectors.value)
4238
- d instanceof HTMLElement ? l.push(d) : l.push(d.$el);
4237
+ for (const l of i.selectors.value)
4238
+ l instanceof HTMLElement ? c.push(l) : c.push(l.$el);
4239
4239
  else
4240
- l.push(i.selectors.value);
4241
- return l;
4240
+ c.push(i.selectors.value);
4241
+ return c;
4242
4242
  }, o = (i) => {
4243
4243
  const a = t(i);
4244
- let l = [];
4245
- return i.selectors ? l = n(i) : a && (l = Array.from(a.children).filter((d) => he(d) && fe(d))), l;
4244
+ let c = [];
4245
+ return i.selectors ? c = n(i) : a && (c = Array.from(a.children).filter((l) => he(l) && fe(l))), c;
4246
4246
  }, r = (i) => (a) => {
4247
- const l = Dl[a.key] || a.key.toLowerCase();
4248
- if (ft.includes(l)) return;
4249
- const d = i.handlers || In;
4250
- for (const u of Object.keys(d)) {
4251
- const [c, ...p] = u.split(".");
4252
- if (c === "keydown" && p.includes(l)) {
4253
- const f = d[u], m = p.filter((x) => ft.includes(x)), g = ft.some((x) => {
4254
- const k = x.charAt(0).toUpperCase() + x.slice(1);
4255
- return a.getModifierState(k);
4247
+ const c = Dl[a.key] || a.key.toLowerCase();
4248
+ if (ft.includes(c)) return;
4249
+ const l = i.handlers || In;
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], h = p.filter(($) => ft.includes($)), g = ft.some(($) => {
4254
+ const S = $.charAt(0).toUpperCase() + $.slice(1);
4255
+ return a.getModifierState(S);
4256
4256
  });
4257
- if (m.length > 0) {
4257
+ if (h.length > 0) {
4258
4258
  if (g) {
4259
- for (const x of ft)
4260
- if (p.includes(x)) {
4261
- const k = x.charAt(0).toUpperCase() + x.slice(1);
4262
- a.getModifierState(k) && f(a);
4259
+ for (const $ of ft)
4260
+ if (p.includes($)) {
4261
+ const S = $.charAt(0).toUpperCase() + $.slice(1);
4262
+ a.getModifierState(S) && f(a);
4263
4263
  }
4264
4264
  }
4265
4265
  } else
@@ -4269,10 +4269,10 @@ function kr(e) {
4269
4269
  }, s = [];
4270
4270
  Ue(() => {
4271
4271
  for (const i of e) {
4272
- const a = t(i), l = o(i), d = r(i), u = a ? [a] : l;
4273
- for (const c of u) {
4274
- const { focused: p } = Nl(C(c)), f = H(p, (m) => {
4275
- m ? c.addEventListener("keydown", d) : c.removeEventListener("keydown", d);
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 } = Nl(P(d)), f = H(p, (h) => {
4275
+ h ? d.addEventListener("keydown", l) : d.removeEventListener("keydown", l);
4276
4276
  });
4277
4277
  s.push(f);
4278
4278
  }
@@ -4286,7 +4286,7 @@ function Cn(e) {
4286
4286
  return Nt() ? (It(e), !0) : !1;
4287
4287
  }
4288
4288
  function Tt(e) {
4289
- return typeof e == "function" ? e() : O(e);
4289
+ return typeof e == "function" ? e() : k(e);
4290
4290
  }
4291
4291
  const Al = typeof window < "u" && typeof document < "u";
4292
4292
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -4304,31 +4304,31 @@ function Be(e) {
4304
4304
  const n = Tt(e);
4305
4305
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
4306
4306
  }
4307
- function wo(...e) {
4307
+ function bo(...e) {
4308
4308
  let t, n, o, r;
4309
4309
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = Pn) : [t, n, o, r] = e, !t)
4310
4310
  return jl;
4311
4311
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
4312
4312
  const s = [], i = () => {
4313
4313
  s.forEach((u) => u()), s.length = 0;
4314
- }, a = (u, c, p, f) => (u.addEventListener(c, p, f), () => u.removeEventListener(c, p, f)), l = H(
4314
+ }, a = (u, d, p, f) => (u.addEventListener(d, p, f), () => u.removeEventListener(d, p, f)), c = H(
4315
4315
  () => [Be(t), Tt(r)],
4316
- ([u, c]) => {
4316
+ ([u, d]) => {
4317
4317
  if (i(), !u)
4318
4318
  return;
4319
- const p = Vl(c) ? { ...c } : c;
4319
+ const p = Vl(d) ? { ...d } : d;
4320
4320
  s.push(
4321
- ...n.flatMap((f) => o.map((m) => a(u, f, m, p)))
4321
+ ...n.flatMap((f) => o.map((h) => a(u, f, h, p)))
4322
4322
  );
4323
4323
  },
4324
4324
  { immediate: !0, flush: "post" }
4325
- ), d = () => {
4326
- l(), i();
4325
+ ), l = () => {
4326
+ c(), i();
4327
4327
  };
4328
- return Cn(d), d;
4328
+ return Cn(l), l;
4329
4329
  }
4330
4330
  function Bl() {
4331
- const e = C(!1), t = We();
4331
+ const e = P(!1), t = We();
4332
4332
  return t && Ue(() => {
4333
4333
  e.value = !0;
4334
4334
  }, t), e;
@@ -4342,21 +4342,21 @@ function Or(e, t, n = {}) {
4342
4342
  let s;
4343
4343
  const i = $r(() => o && "MutationObserver" in o), a = () => {
4344
4344
  s && (s.disconnect(), s = void 0);
4345
- }, l = R(() => {
4345
+ }, c = R(() => {
4346
4346
  const p = Tt(e), f = (Array.isArray(p) ? p : [p]).map(Be).filter(Tl);
4347
4347
  return new Set(f);
4348
- }), d = H(
4349
- () => l.value,
4348
+ }), l = H(
4349
+ () => c.value,
4350
4350
  (p) => {
4351
4351
  a(), i.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(), c = () => {
4355
- d(), a();
4354
+ ), u = () => s == null ? void 0 : s.takeRecords(), d = () => {
4355
+ l(), a();
4356
4356
  };
4357
- return Cn(c), {
4357
+ return Cn(d), {
4358
4358
  isSupported: i,
4359
- stop: c,
4359
+ stop: d,
4360
4360
  takeRecords: u
4361
4361
  };
4362
4362
  }
@@ -4365,21 +4365,21 @@ function Ul(e, t, n = {}) {
4365
4365
  let s;
4366
4366
  const i = $r(() => o && "ResizeObserver" in o), a = () => {
4367
4367
  s && (s.disconnect(), s = void 0);
4368
- }, l = R(() => {
4369
- const c = Tt(e);
4370
- return Array.isArray(c) ? c.map((p) => Be(p)) : [Be(c)];
4371
- }), d = H(
4372
- l,
4373
- (c) => {
4368
+ }, c = R(() => {
4369
+ const d = Tt(e);
4370
+ return Array.isArray(d) ? d.map((p) => Be(p)) : [Be(d)];
4371
+ }), l = H(
4372
+ c,
4373
+ (d) => {
4374
4374
  if (a(), i.value && o) {
4375
4375
  s = new ResizeObserver(t);
4376
- for (const p of c)
4376
+ for (const p of d)
4377
4377
  p && s.observe(p, r);
4378
4378
  }
4379
4379
  },
4380
4380
  { immediate: !0, flush: "post" }
4381
4381
  ), u = () => {
4382
- a(), d();
4382
+ a(), l();
4383
4383
  };
4384
4384
  return Cn(u), {
4385
4385
  isSupported: i,
@@ -4393,33 +4393,33 @@ function Wl(e, t = {}) {
4393
4393
  windowScroll: r = !0,
4394
4394
  immediate: s = !0,
4395
4395
  updateTiming: i = "sync"
4396
- } = t, a = C(0), l = C(0), d = C(0), u = C(0), c = C(0), p = C(0), f = C(0), m = C(0);
4396
+ } = t, a = P(0), c = P(0), l = P(0), u = P(0), d = P(0), p = P(0), f = P(0), h = P(0);
4397
4397
  function g() {
4398
- const k = Be(e);
4399
- if (!k) {
4400
- n && (a.value = 0, l.value = 0, d.value = 0, u.value = 0, c.value = 0, p.value = 0, f.value = 0, m.value = 0);
4398
+ const S = Be(e);
4399
+ if (!S) {
4400
+ n && (a.value = 0, c.value = 0, l.value = 0, u.value = 0, d.value = 0, p.value = 0, f.value = 0, h.value = 0);
4401
4401
  return;
4402
4402
  }
4403
- const _ = k.getBoundingClientRect();
4404
- a.value = _.height, l.value = _.bottom, d.value = _.left, u.value = _.right, c.value = _.top, p.value = _.width, f.value = _.x, m.value = _.y;
4403
+ const x = S.getBoundingClientRect();
4404
+ a.value = x.height, c.value = x.bottom, l.value = x.left, u.value = x.right, d.value = x.top, p.value = x.width, f.value = x.x, h.value = x.y;
4405
4405
  }
4406
- function x() {
4406
+ function $() {
4407
4407
  i === "sync" ? g() : i === "next-frame" && requestAnimationFrame(() => g());
4408
4408
  }
4409
- return Ul(e, x), H(() => Be(e), (k) => !k && x()), Or(e, x, {
4409
+ return Ul(e, $), H(() => Be(e), (S) => !S && $()), Or(e, $, {
4410
4410
  attributeFilter: ["style", "class"]
4411
- }), r && wo("scroll", x, { capture: !0, passive: !0 }), o && wo("resize", x, { passive: !0 }), Ml(() => {
4412
- s && x();
4411
+ }), r && bo("scroll", $, { capture: !0, passive: !0 }), o && bo("resize", $, { passive: !0 }), Ml(() => {
4412
+ s && $();
4413
4413
  }), {
4414
4414
  height: a,
4415
- bottom: l,
4416
- left: d,
4415
+ bottom: c,
4416
+ left: l,
4417
4417
  right: u,
4418
- top: c,
4418
+ top: d,
4419
4419
  width: p,
4420
4420
  x: f,
4421
- y: m,
4422
- update: x
4421
+ y: h,
4422
+ update: $
4423
4423
  };
4424
4424
  }
4425
4425
  const Hl = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"], Fl = { key: 1 }, zl = /* @__PURE__ */ Z({
@@ -4434,66 +4434,63 @@ const Hl = ["data-colindex", "data-rowindex", "data-editable", "contenteditable"
4434
4434
  },
4435
4435
  setup(e) {
4436
4436
  var t;
4437
- const n = ae(e.tableid), o = Ct("cell"), r = C(""), s = C(!1), i = n.table, a = n.columns[e.colIndex], l = n.rows[e.rowIndex], d = R(() => a.align || "center"), u = R(() => a.width || "40ch"), c = R(() => {
4438
- const k = n.cellData(e.colIndex, e.rowIndex), _ = a.format;
4439
- return _ ? typeof _ == "function" ? _(k, { table: i, row: l, column: a }) : typeof _ == "string" ? Function(`"use strict";return (${_})`)()(k, { table: i, row: l, column: a }) : k : k;
4440
- }), p = () => {
4441
- if (a.mask, a.modalComponent) {
4442
- const { top: k, left: _, height: D } = Wl(o);
4443
- n.modal.visible = !0, n.modal.colIndex = e.colIndex, n.modal.rowIndex = e.rowIndex, n.modal.parent = o.value, n.modal.top = k.value + D.value, n.modal.left = _.value, n.modal.width = u.value, typeof a.modalComponent == "function" ? n.modal.component = a.modalComponent({ table: i, row: l, column: a }) : n.modal.component = a.modalComponent, n.modal.componentProps = a.modalComponentExtraProps;
4444
- }
4437
+ const n = ae(e.tableid), o = Ct("cell"), r = P(""), s = P(!1), { bottom: i, left: a } = Wl(o), c = n.table, l = n.columns[e.colIndex], u = n.rows[e.rowIndex], d = R(() => l.align || "center"), p = R(() => l.width || "40ch"), f = R(() => {
4438
+ const O = n.cellData(e.colIndex, e.rowIndex), j = l.format;
4439
+ return j ? typeof j == "function" ? j(O, { table: c, row: u, column: l }) : typeof j == "string" ? Function(`"use strict";return (${j})`)()(O, { table: c, row: u, column: l }) : O : O;
4440
+ }), h = () => {
4441
+ l.mask, l.modalComponent && (n.modal.visible = !0, n.modal.colIndex = e.colIndex, n.modal.rowIndex = e.rowIndex, n.modal.parent = o.value, n.modal.top = i.value, n.modal.left = a.value, n.modal.width = p.value, typeof l.modalComponent == "function" ? n.modal.component = l.modalComponent({ table: c, row: u, column: l }) : n.modal.component = l.modalComponent, n.modal.componentProps = l.modalComponentExtraProps);
4445
4442
  };
4446
4443
  if (e.addNavigation) {
4447
- let k = {
4444
+ let O = {
4448
4445
  ...In,
4449
- "keydown.f2": p,
4450
- "keydown.alt.up": p,
4451
- "keydown.alt.down": p,
4452
- "keydown.alt.left": p,
4453
- "keydown.alt.right": p
4446
+ "keydown.f2": h,
4447
+ "keydown.alt.up": h,
4448
+ "keydown.alt.down": h,
4449
+ "keydown.alt.left": h,
4450
+ "keydown.alt.right": h
4454
4451
  };
4455
- typeof e.addNavigation == "object" && (k = {
4456
- ...k,
4452
+ typeof e.addNavigation == "object" && (O = {
4453
+ ...O,
4457
4454
  ...e.addNavigation
4458
4455
  }), kr([
4459
4456
  {
4460
4457
  selectors: o,
4461
- handlers: k
4458
+ handlers: O
4462
4459
  }
4463
4460
  ]);
4464
4461
  }
4465
- const f = () => {
4462
+ const g = () => {
4466
4463
  o.value && (r.value = o.value.textContent);
4467
- }, m = () => {
4468
- o.value && o.value.textContent !== r.value && (r.value = o.value.textContent, o.value.dispatchEvent(new Event("change")), s.value = !0, a.format || n.setCellData(e.rowIndex, e.colIndex, r.value));
4469
- }, g = (k, _) => _ && k === 0 && _ > 0 ? `${_}ch` : "inherit", x = {
4464
+ }, $ = () => {
4465
+ o.value && o.value.textContent !== r.value && (r.value = o.value.textContent, o.value.dispatchEvent(new Event("change")), s.value = !0, l.format || n.setCellData(e.rowIndex, e.colIndex, r.value));
4466
+ }, S = (O, j) => j && O === 0 && j > 0 ? `${j}ch` : "inherit", x = {
4470
4467
  textAlign: d.value,
4471
- width: u.value,
4468
+ width: p.value,
4472
4469
  backgroundColor: s.value ? "var(--cell-modified-color)" : "inherit",
4473
4470
  fontWeight: s.value ? "bold" : "inherit",
4474
- paddingLeft: g(e.colIndex, (t = n.display[e.rowIndex]) == null ? void 0 : t.indent)
4471
+ paddingLeft: S(e.colIndex, (t = n.display[e.rowIndex]) == null ? void 0 : t.indent)
4475
4472
  };
4476
- return (k, _) => (I(), V("td", {
4473
+ return (O, j) => (C(), V("td", {
4477
4474
  ref: "cell",
4478
- "data-colindex": k.colIndex,
4479
- "data-rowindex": k.rowIndex,
4480
- "data-editable": O(a).edit,
4481
- contenteditable: O(a).edit,
4482
- tabindex: k.tabIndex,
4475
+ "data-colindex": O.colIndex,
4476
+ "data-rowindex": O.rowIndex,
4477
+ "data-editable": k(l).edit,
4478
+ contenteditable: k(l).edit,
4479
+ tabindex: O.tabIndex,
4483
4480
  spellcheck: !1,
4484
4481
  style: x,
4485
- onFocus: f,
4486
- onPaste: m,
4487
- onBlur: m,
4488
- onInput: m,
4489
- onClick: p,
4490
- onMousedown: p,
4491
- class: Ne(["atable__cell", k.pinned ? "sticky-column" : ""])
4482
+ onFocus: g,
4483
+ onPaste: $,
4484
+ onBlur: $,
4485
+ onInput: $,
4486
+ onClick: h,
4487
+ onMousedown: h,
4488
+ class: Ne(["atable__cell", O.pinned ? "sticky-column" : ""])
4492
4489
  }, [
4493
- O(a).cellComponent ? (I(), Se(ln(O(a).cellComponent), cn({
4490
+ k(l).cellComponent ? (C(), Se(ln(k(l).cellComponent), cn({
4494
4491
  key: 0,
4495
- value: c.value
4496
- }, O(a).cellComponentProps), null, 16, ["value"])) : (I(), V("span", Fl, de(c.value), 1))
4492
+ value: f.value
4493
+ }, k(l).cellComponentProps), null, 16, ["value"])) : (C(), V("span", Fl, de(f.value), 1))
4497
4494
  ], 42, Hl));
4498
4495
  }
4499
4496
  }), Gl = ["tabindex"], ql = /* @__PURE__ */ Z({
@@ -4520,22 +4517,22 @@ const Hl = ["data-colindex", "data-rowindex", "data-editable", "contenteditable"
4520
4517
  }
4521
4518
  ]);
4522
4519
  }
4523
- return (a, l) => et((I(), V("tr", {
4520
+ return (a, c) => et((C(), V("tr", {
4524
4521
  ref: "rowEl",
4525
4522
  tabindex: a.tabIndex,
4526
4523
  class: "table-row"
4527
4524
  }, [
4528
4525
  ge(a.$slots, "index", {}, () => [
4529
- O(t).config.view === "list" ? (I(), V("td", {
4526
+ k(t).config.view === "list" ? (C(), V("td", {
4530
4527
  key: 0,
4531
4528
  tabIndex: -1,
4532
4529
  class: Ne(["list-index", o.value ? "sticky-index" : ""])
4533
- }, de(a.rowIndex + 1), 3)) : O(t).config.view === "tree" ? (I(), V("td", {
4530
+ }, de(a.rowIndex + 1), 3)) : k(t).config.view === "tree" ? (C(), V("td", {
4534
4531
  key: 1,
4535
4532
  tabIndex: -1,
4536
4533
  class: Ne(["tree-index", o.value ? "sticky-index" : ""]),
4537
- onClick: l[0] || (l[0] = (d) => i(a.rowIndex))
4538
- }, de(s.value), 3)) : we("", !0)
4534
+ onClick: c[0] || (c[0] = (l) => i(a.rowIndex))
4535
+ }, de(s.value), 3)) : be("", !0)
4539
4536
  ]),
4540
4537
  ge(a.$slots, "default")
4541
4538
  ], 8, Gl)), [
@@ -4547,7 +4544,7 @@ function xr(e) {
4547
4544
  return Nt() ? (It(e), !0) : !1;
4548
4545
  }
4549
4546
  function Xe(e) {
4550
- return typeof e == "function" ? e() : O(e);
4547
+ return typeof e == "function" ? e() : k(e);
4551
4548
  }
4552
4549
  const Sr = typeof window < "u" && typeof document < "u";
4553
4550
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -4557,7 +4554,7 @@ function Yl() {
4557
4554
  var e, t;
4558
4555
  return Sr && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
4559
4556
  }
4560
- const bo = {
4557
+ const wo = {
4561
4558
  mounted: "mounted",
4562
4559
  updated: "updated",
4563
4560
  unmounted: "unmounted"
@@ -4566,7 +4563,7 @@ function Ql(...e) {
4566
4563
  if (e.length !== 1)
4567
4564
  return vt(...e);
4568
4565
  const t = e[0];
4569
- return typeof t == "function" ? Lr(Mr(() => ({ get: t, set: Ze }))) : C(t);
4566
+ return typeof t == "function" ? Lr(Mr(() => ({ get: t, set: Ze }))) : P(t);
4570
4567
  }
4571
4568
  function Ke(e) {
4572
4569
  var t;
@@ -4581,21 +4578,21 @@ function kt(...e) {
4581
4578
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
4582
4579
  const s = [], i = () => {
4583
4580
  s.forEach((u) => u()), s.length = 0;
4584
- }, a = (u, c, p, f) => (u.addEventListener(c, p, f), () => u.removeEventListener(c, p, f)), l = H(
4581
+ }, a = (u, d, p, f) => (u.addEventListener(d, p, f), () => u.removeEventListener(d, p, f)), c = H(
4585
4582
  () => [Ke(t), Xe(r)],
4586
- ([u, c]) => {
4583
+ ([u, d]) => {
4587
4584
  if (i(), !u)
4588
4585
  return;
4589
- const p = Kl(c) ? { ...c } : c;
4586
+ const p = Kl(d) ? { ...d } : d;
4590
4587
  s.push(
4591
- ...n.flatMap((f) => o.map((m) => a(u, f, m, p)))
4588
+ ...n.flatMap((f) => o.map((h) => a(u, f, h, p)))
4592
4589
  );
4593
4590
  },
4594
4591
  { immediate: !0, flush: "post" }
4595
- ), d = () => {
4596
- l(), i();
4592
+ ), l = () => {
4593
+ c(), i();
4597
4594
  };
4598
- return xr(d), d;
4595
+ return xr(l), l;
4599
4596
  }
4600
4597
  let _o = !1;
4601
4598
  function Eo(e, t, n = {}) {
@@ -4604,18 +4601,18 @@ function Eo(e, t, n = {}) {
4604
4601
  return Ze;
4605
4602
  sn && !_o && (_o = !0, Array.from(o.document.body.children).forEach((u) => u.addEventListener("click", Ze)), o.document.documentElement.addEventListener("click", Ze));
4606
4603
  let a = !0;
4607
- const l = (u) => r.some((c) => {
4608
- if (typeof c == "string")
4609
- return Array.from(o.document.querySelectorAll(c)).some((p) => p === u.target || u.composedPath().includes(p));
4604
+ const c = (u) => r.some((d) => {
4605
+ if (typeof d == "string")
4606
+ return Array.from(o.document.querySelectorAll(d)).some((p) => p === u.target || u.composedPath().includes(p));
4610
4607
  {
4611
- const p = Ke(c);
4608
+ const p = Ke(d);
4612
4609
  return p && (u.target === p || u.composedPath().includes(p));
4613
4610
  }
4614
- }), d = [
4611
+ }), l = [
4615
4612
  kt(o, "click", (u) => {
4616
- const c = Ke(e);
4617
- if (!(!c || c === u.target || u.composedPath().includes(c))) {
4618
- if (u.detail === 0 && (a = !l(u)), !a) {
4613
+ const d = Ke(e);
4614
+ if (!(!d || d === u.target || u.composedPath().includes(d))) {
4615
+ if (u.detail === 0 && (a = !c(u)), !a) {
4619
4616
  a = !0;
4620
4617
  return;
4621
4618
  }
@@ -4623,21 +4620,21 @@ function Eo(e, t, n = {}) {
4623
4620
  }
4624
4621
  }, { passive: !0, capture: s }),
4625
4622
  kt(o, "pointerdown", (u) => {
4626
- const c = Ke(e);
4627
- a = !l(u) && !!(c && !u.composedPath().includes(c));
4623
+ const d = Ke(e);
4624
+ a = !c(u) && !!(d && !u.composedPath().includes(d));
4628
4625
  }, { passive: !0 }),
4629
4626
  i && kt(o, "blur", (u) => {
4630
4627
  setTimeout(() => {
4631
- var c;
4628
+ var d;
4632
4629
  const p = Ke(e);
4633
- ((c = o.document.activeElement) == null ? void 0 : c.tagName) === "IFRAME" && !(p != null && p.contains(o.document.activeElement)) && t(u);
4630
+ ((d = o.document.activeElement) == null ? void 0 : d.tagName) === "IFRAME" && !(p != null && p.contains(o.document.activeElement)) && t(u);
4634
4631
  }, 0);
4635
4632
  })
4636
4633
  ].filter(Boolean);
4637
- return () => d.forEach((u) => u());
4634
+ return () => l.forEach((u) => u());
4638
4635
  }
4639
4636
  const Xl = {
4640
- [bo.mounted](e, t) {
4637
+ [wo.mounted](e, t) {
4641
4638
  const n = !t.modifiers.bubble;
4642
4639
  if (typeof t.value == "function")
4643
4640
  e.__onClickOutside_stop = Eo(e, t.value, { capture: n });
@@ -4646,7 +4643,7 @@ const Xl = {
4646
4643
  e.__onClickOutside_stop = Eo(e, o, Object.assign({ capture: n }, r));
4647
4644
  }
4648
4645
  },
4649
- [bo.unmounted](e) {
4646
+ [wo.unmounted](e) {
4650
4647
  e.__onClickOutside_stop();
4651
4648
  }
4652
4649
  };
@@ -4668,16 +4665,16 @@ function Zl(e) {
4668
4665
  }
4669
4666
  const qt = /* @__PURE__ */ new WeakMap();
4670
4667
  function ec(e, t = !1) {
4671
- const n = C(t);
4668
+ const n = P(t);
4672
4669
  let o = null, r = "";
4673
4670
  H(Ql(e), (a) => {
4674
- const l = Gt(Xe(a));
4675
- if (l) {
4676
- const d = l;
4677
- if (qt.get(d) || qt.set(d, d.style.overflow), d.style.overflow !== "hidden" && (r = d.style.overflow), d.style.overflow === "hidden")
4671
+ const c = Gt(Xe(a));
4672
+ if (c) {
4673
+ const l = c;
4674
+ if (qt.get(l) || qt.set(l, l.style.overflow), l.style.overflow !== "hidden" && (r = l.style.overflow), l.style.overflow === "hidden")
4678
4675
  return n.value = !0;
4679
4676
  if (n.value)
4680
- return d.style.overflow = "hidden";
4677
+ return l.style.overflow = "hidden";
4681
4678
  }
4682
4679
  }, {
4683
4680
  immediate: !0
@@ -4687,8 +4684,8 @@ function ec(e, t = !1) {
4687
4684
  !a || n.value || (sn && (o = kt(
4688
4685
  a,
4689
4686
  "touchmove",
4690
- (l) => {
4691
- Zl(l);
4687
+ (c) => {
4688
+ Zl(c);
4692
4689
  },
4693
4690
  { passive: !1 }
4694
4691
  )), a.style.overflow = "hidden", n.value = !0);
@@ -4707,7 +4704,7 @@ function ec(e, t = !1) {
4707
4704
  }
4708
4705
  function tc() {
4709
4706
  let e = !1;
4710
- const t = C(!1);
4707
+ const t = P(!1);
4711
4708
  return (n, o) => {
4712
4709
  if (t.value = o.value, e)
4713
4710
  return;
@@ -4811,14 +4808,14 @@ const lc = {
4811
4808
  textAlign: r.align || "center",
4812
4809
  width: t.config.fullWidth ? "auto" : null
4813
4810
  });
4814
- return (r, s) => r.columns.length ? (I(), V("thead", lc, [
4815
- L("tr", cc, [
4816
- O(t).zeroColumn ? (I(), V("th", {
4811
+ return (r, s) => r.columns.length ? (C(), V("thead", lc, [
4812
+ M("tr", cc, [
4813
+ k(t).zeroColumn ? (C(), V("th", {
4817
4814
  key: 0,
4818
4815
  id: "header-index",
4819
4816
  class: Ne(n.value ? "sticky-index" : "")
4820
- }, null, 2)) : we("", !0),
4821
- (I(!0), V(Ie, null, Ce(r.columns, (i, a) => (I(), V("th", {
4817
+ }, null, 2)) : be("", !0),
4818
+ (C(!0), V(Ie, null, Ce(r.columns, (i, a) => (C(), V("th", {
4822
4819
  key: i.name,
4823
4820
  tabindex: "-1",
4824
4821
  style: ue(o(i)),
@@ -4829,7 +4826,7 @@ const lc = {
4829
4826
  ])
4830
4827
  ], 6))), 128))
4831
4828
  ])
4832
- ])) : we("", !0);
4829
+ ])) : be("", !0);
4833
4830
  }
4834
4831
  }), dc = /* @__PURE__ */ Z({
4835
4832
  __name: "ATableModal",
@@ -4842,7 +4839,7 @@ const lc = {
4842
4839
  const t = (n) => {
4843
4840
  n.stopPropagation();
4844
4841
  };
4845
- return (n, o) => (I(), V("div", {
4842
+ return (n, o) => (C(), V("div", {
4846
4843
  class: "amodal",
4847
4844
  tabindex: "-1",
4848
4845
  onClick: t,
@@ -4865,71 +4862,71 @@ const lc = {
4865
4862
  const n = t, o = Ct("table"), r = e.modelValue ? e.modelValue : e.rows, s = new ic(e.id, e.columns, r, e.config);
4866
4863
  mt(s.id, s), H(
4867
4864
  () => s.rows,
4868
- (l) => {
4869
- n("update:modelValue", l);
4865
+ (c) => {
4866
+ n("update:modelValue", c);
4870
4867
  },
4871
4868
  { deep: !0 }
4872
4869
  ), Ue(() => {
4873
- e.columns.some((l) => l.pinned) && (i(), s.config.view === "tree" && Or(o, i, { childList: !0, subtree: !0 }));
4870
+ e.columns.some((c) => c.pinned) && (i(), s.config.view === "tree" && Or(o, i, { childList: !0, subtree: !0 }));
4874
4871
  });
4875
4872
  const i = () => {
4876
- const l = o.value, d = l.rows[0], u = l.rows[1], c = d ? Array.from(d.cells) : [];
4877
- for (const [p, f] of c.entries()) {
4878
- const m = u.cells[p];
4879
- m && (f.style.width = `${m.offsetWidth}px`);
4873
+ const c = o.value, l = c.rows[0], u = c.rows[1], d = l ? Array.from(l.cells) : [];
4874
+ for (const [p, f] of d.entries()) {
4875
+ const h = u.cells[p];
4876
+ h && (f.style.width = `${h.offsetWidth}px`);
4880
4877
  }
4881
- for (const p of l.rows) {
4878
+ for (const p of c.rows) {
4882
4879
  let f = 0;
4883
- const m = [];
4880
+ const h = [];
4884
4881
  for (const g of p.cells)
4885
- (g.classList.contains("sticky-column") || g.classList.contains("sticky-index")) && (g.style.left = `${f}px`, f += g.offsetWidth, m.push(g));
4886
- m.length > 0 && m[m.length - 1].classList.add("sticky-column-edge");
4882
+ (g.classList.contains("sticky-column") || g.classList.contains("sticky-index")) && (g.style.left = `${f}px`, f += g.offsetWidth, h.push(g));
4883
+ h.length > 0 && h[h.length - 1].classList.add("sticky-column-edge");
4887
4884
  }
4888
- }, a = (l) => {
4889
- var d;
4890
- l.target instanceof Node && (d = s.modal.parent) != null && d.contains(l.target) || s.modal.visible && (s.modal.visible = !1);
4885
+ }, a = (c) => {
4886
+ var l;
4887
+ c.target instanceof Node && (l = s.modal.parent) != null && l.contains(c.target) || s.modal.visible && (s.modal.visible = !1);
4891
4888
  };
4892
- return window.addEventListener("keydown", (l) => {
4893
- if (l.key === "Escape" && s.modal.visible) {
4889
+ return window.addEventListener("keydown", (c) => {
4890
+ if (c.key === "Escape" && s.modal.visible) {
4894
4891
  s.modal.visible = !1;
4895
- const d = s.modal.parent;
4896
- d && Ve().then(() => {
4897
- d.focus();
4892
+ const l = s.modal.parent;
4893
+ l && Ve().then(() => {
4894
+ l.focus();
4898
4895
  });
4899
4896
  }
4900
- }), (l, d) => et((I(), V("table", {
4897
+ }), (c, l) => et((C(), V("table", {
4901
4898
  ref: "table",
4902
4899
  class: "atable",
4903
- style: ue({ width: O(s).config.fullWidth ? "100%" : "auto" })
4900
+ style: ue({ width: k(s).config.fullWidth ? "100%" : "auto" })
4904
4901
  }, [
4905
- ge(l.$slots, "header", { data: O(s) }, () => [
4902
+ ge(c.$slots, "header", { data: k(s) }, () => [
4906
4903
  $t(uc, {
4907
- columns: O(s).columns,
4908
- tableid: O(s).id
4904
+ columns: k(s).columns,
4905
+ tableid: k(s).id
4909
4906
  }, null, 8, ["columns", "tableid"])
4910
4907
  ]),
4911
- L("tbody", null, [
4912
- ge(l.$slots, "body", { data: O(s) }, () => [
4913
- (I(!0), V(Ie, null, Ce(O(s).rows, (u, c) => (I(), Se(ql, {
4908
+ M("tbody", null, [
4909
+ ge(c.$slots, "body", { data: k(s) }, () => [
4910
+ (C(!0), V(Ie, null, Ce(k(s).rows, (u, d) => (C(), Se(ql, {
4914
4911
  key: u.id,
4915
4912
  row: u,
4916
- rowIndex: c,
4917
- tableid: O(s).id
4913
+ rowIndex: d,
4914
+ tableid: k(s).id
4918
4915
  }, {
4919
4916
  default: Ot(() => [
4920
- (I(!0), V(Ie, null, Ce(O(s).columns, (p, f) => (I(), Se(zl, {
4917
+ (C(!0), V(Ie, null, Ce(k(s).columns, (p, f) => (C(), Se(zl, {
4921
4918
  key: p.name,
4922
- tableid: O(s).id,
4919
+ tableid: k(s).id,
4923
4920
  col: p,
4924
4921
  spellcheck: "false",
4925
4922
  pinned: p.pinned,
4926
- rowIndex: c,
4927
- colIndex: f + (O(s).zeroColumn ? 0 : -1),
4923
+ rowIndex: d,
4924
+ colIndex: f + (k(s).zeroColumn ? 0 : -1),
4928
4925
  component: p.cellComponent,
4929
4926
  style: ue({
4930
4927
  textAlign: (p == null ? void 0 : p.align) || "center",
4931
4928
  minWidth: (p == null ? void 0 : p.width) || "40ch",
4932
- width: O(s).config.fullWidth ? "auto" : null
4929
+ width: k(s).config.fullWidth ? "auto" : null
4933
4930
  })
4934
4931
  }, null, 8, ["tableid", "col", "pinned", "rowIndex", "colIndex", "component", "style"]))), 128))
4935
4932
  ]),
@@ -4937,45 +4934,45 @@ const lc = {
4937
4934
  }, 1032, ["row", "rowIndex", "tableid"]))), 128))
4938
4935
  ])
4939
4936
  ]),
4940
- ge(l.$slots, "footer", { data: O(s) }),
4941
- ge(l.$slots, "modal", { data: O(s) }, () => [
4937
+ ge(c.$slots, "footer", { data: k(s) }),
4938
+ ge(c.$slots, "modal", { data: k(s) }, () => [
4942
4939
  et($t(dc, {
4943
- colIndex: O(s).modal.colIndex,
4944
- rowIndex: O(s).modal.rowIndex,
4945
- tableid: O(s).id,
4940
+ colIndex: k(s).modal.colIndex,
4941
+ rowIndex: k(s).modal.rowIndex,
4942
+ tableid: k(s).id,
4946
4943
  style: ue({
4947
- left: O(s).modal.left + "px",
4948
- top: O(s).modal.top + "px",
4949
- maxWidth: O(s).modal.width + "px"
4944
+ left: k(s).modal.left + "px",
4945
+ top: k(s).modal.top + "px",
4946
+ maxWidth: k(s).modal.width + "px"
4950
4947
  })
4951
4948
  }, {
4952
4949
  default: Ot(() => [
4953
- (I(), Se(ln(O(s).modal.component), cn({
4954
- key: `${O(s).modal.rowIndex}:${O(s).modal.colIndex}`,
4955
- colIndex: O(s).modal.colIndex,
4956
- rowIndex: O(s).modal.rowIndex,
4957
- tableid: O(s).id
4958
- }, O(s).modal.componentProps), null, 16, ["colIndex", "rowIndex", "tableid"]))
4950
+ (C(), Se(ln(k(s).modal.component), cn({
4951
+ key: `${k(s).modal.rowIndex}:${k(s).modal.colIndex}`,
4952
+ colIndex: k(s).modal.colIndex,
4953
+ rowIndex: k(s).modal.rowIndex,
4954
+ tableid: k(s).id
4955
+ }, k(s).modal.componentProps), null, 16, ["colIndex", "rowIndex", "tableid"]))
4959
4956
  ]),
4960
4957
  _: 1
4961
4958
  }, 8, ["colIndex", "rowIndex", "tableid", "style"]), [
4962
- [an, O(s).modal.visible]
4959
+ [an, k(s).modal.visible]
4963
4960
  ])
4964
4961
  ])
4965
4962
  ], 4)), [
4966
- [O(Xl), a]
4963
+ [k(Xl), a]
4967
4964
  ]);
4968
4965
  }
4969
4966
  }), fc = /* @__PURE__ */ Z({
4970
4967
  __name: "Records",
4971
4968
  setup(e) {
4972
4969
  const { stonecrop: t, isReady: n } = Uo(), o = { view: "list" };
4973
- return (r, s) => O(n) ? (I(), Se(O(pc), {
4970
+ return (r, s) => k(n) ? (C(), Se(k(pc), {
4974
4971
  key: 0,
4975
- columns: O(t).schema.schema.toArray(),
4976
- rows: O(t).store.records,
4972
+ columns: k(t).schema.schema.toArray(),
4973
+ rows: k(t).store.records,
4977
4974
  config: o
4978
- }, null, 8, ["columns", "rows"])) : we("", !0);
4975
+ }, null, 8, ["columns", "rows"])) : be("", !0);
4979
4976
  }
4980
4977
  }), hc = { class: "tabs" }, mc = { tabindex: "0" }, vc = {
4981
4978
  version: "1.1",
@@ -4987,40 +4984,40 @@ const lc = {
4987
4984
  viewBox: "0 0 424.098 424.098",
4988
4985
  style: { "enable-background": "new 0 0 424.098 424.098" },
4989
4986
  "xml:space": "preserve"
4990
- }, gc = { tabindex: "0" }, yc = { style: { width: "11pt" } }, wc = /* @__PURE__ */ Z({
4987
+ }, gc = { tabindex: "0" }, yc = { style: { width: "11pt" } }, bc = /* @__PURE__ */ Z({
4991
4988
  __name: "SheetNav",
4992
4989
  props: {
4993
4990
  breadcrumbs: { default: () => [] }
4994
4991
  },
4995
4992
  setup(e) {
4996
- const t = C(!0), n = C(!1), o = C(""), r = Ct("searchinput"), s = R(() => t.value ? "unrotated" : "rotated"), i = () => {
4993
+ const t = P(!0), n = P(!1), o = P(""), r = Ct("searchinput"), s = R(() => t.value ? "unrotated" : "rotated"), i = () => {
4997
4994
  t.value = !t.value;
4998
4995
  }, a = async () => {
4999
4996
  n.value = !n.value, await Ve(() => {
5000
4997
  r.value.focus();
5001
4998
  });
5002
- }, l = (c) => {
5003
- c.preventDefault(), c.stopPropagation();
5004
- }, d = async (c) => {
5005
- c.preventDefault(), c.stopPropagation(), await a();
4999
+ }, c = (d) => {
5000
+ d.preventDefault(), d.stopPropagation();
5001
+ }, l = async (d) => {
5002
+ d.preventDefault(), d.stopPropagation(), await a();
5006
5003
  }, u = () => {
5007
5004
  };
5008
- return (c, p) => {
5005
+ return (d, p) => {
5009
5006
  const f = Br("router-link");
5010
- return I(), V("footer", null, [
5011
- L("ul", hc, [
5012
- L("li", {
5007
+ return C(), V("footer", null, [
5008
+ M("ul", hc, [
5009
+ M("li", {
5013
5010
  class: "hidebreadcrumbs",
5014
5011
  onClick: i,
5015
5012
  onKeydown: ut(i, ["enter"])
5016
5013
  }, [
5017
- L("a", mc, [
5018
- L("div", {
5014
+ M("a", mc, [
5015
+ M("div", {
5019
5016
  class: Ne(s.value)
5020
5017
  }, "×", 2)
5021
5018
  ])
5022
5019
  ], 32),
5023
- L("li", {
5020
+ M("li", {
5024
5021
  class: "hometab",
5025
5022
  onClick: u,
5026
5023
  onKeydown: ut(u, ["enter"]),
@@ -5031,9 +5028,9 @@ const lc = {
5031
5028
  tabindex: "0"
5032
5029
  }, {
5033
5030
  default: Ot(() => [
5034
- (I(), V("svg", vc, p[5] || (p[5] = [
5035
- L("g", null, [
5036
- L("path", {
5031
+ (C(), V("svg", vc, p[5] || (p[5] = [
5032
+ M("g", null, [
5033
+ M("path", {
5037
5034
  style: { fill: "#010002" },
5038
5035
  d: `M351.191,401.923H72.901c-4.487,0-8.129-3.633-8.129-8.129V242.262l-56.664-0.114
5039
5036
  c-3.284-0.008-6.243-1.992-7.495-5.023c-1.252-3.04-0.553-6.527,1.764-8.852L206.104,24.546c1.853-1.845,4.503-2.666,7.047-2.276
@@ -5051,19 +5048,19 @@ const lc = {
5051
5048
  _: 1
5052
5049
  })
5053
5050
  ], 36),
5054
- L("li", {
5051
+ M("li", {
5055
5052
  class: "searchtab",
5056
5053
  onClick: a,
5057
5054
  onKeydown: ut(a, ["enter"]),
5058
5055
  style: ue({ display: t.value ? "block" : "none" })
5059
5056
  }, [
5060
- L("a", gc, [
5061
- L("span", {
5057
+ M("a", gc, [
5058
+ M("span", {
5062
5059
  style: ue({ display: n.value ? "none" : "block" })
5063
5060
  }, [
5064
- (I(), V("svg", yc, p[6] || (p[6] = [
5065
- L("g", { transform: "matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)" }, [
5066
- L("path", {
5061
+ (C(), V("svg", yc, p[6] || (p[6] = [
5062
+ M("g", { transform: "matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)" }, [
5063
+ M("path", {
5067
5064
  d: "M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",
5068
5065
  style: { fill: "#000000", "fill-opacity": "1", "fill-rule": "nonzero", stroke: "none" },
5069
5066
  id: "path2"
@@ -5071,30 +5068,30 @@ const lc = {
5071
5068
  ], -1)
5072
5069
  ])))
5073
5070
  ], 4),
5074
- et(L("input", {
5075
- "onUpdate:modelValue": p[0] || (p[0] = (m) => o.value = m),
5071
+ et(M("input", {
5072
+ "onUpdate:modelValue": p[0] || (p[0] = (h) => o.value = h),
5076
5073
  ref: "searchinput",
5077
5074
  style: ue({ display: n.value ? "block" : "none" }),
5078
- onClick: p[1] || (p[1] = (m) => l(m)),
5079
- onInput: p[2] || (p[2] = (m) => l(m)),
5080
- onBlur: p[3] || (p[3] = (m) => d(m)),
5081
- onKeydown: p[4] || (p[4] = ut((m) => d(m), ["enter"])),
5075
+ onClick: p[1] || (p[1] = (h) => c(h)),
5076
+ onInput: p[2] || (p[2] = (h) => c(h)),
5077
+ onBlur: p[3] || (p[3] = (h) => l(h)),
5078
+ onKeydown: p[4] || (p[4] = ut((h) => l(h), ["enter"])),
5082
5079
  type: "text"
5083
5080
  }, null, 36), [
5084
5081
  [Ur, o.value]
5085
5082
  ])
5086
5083
  ])
5087
5084
  ], 36),
5088
- (I(!0), V(Ie, null, Ce(c.breadcrumbs, (m) => (I(), V("li", {
5089
- key: m.title,
5085
+ (C(!0), V(Ie, null, Ce(d.breadcrumbs, (h) => (C(), V("li", {
5086
+ key: h.title,
5090
5087
  style: ue({ display: t.value ? "block" : "none" })
5091
5088
  }, [
5092
5089
  $t(f, {
5093
5090
  tabindex: "0",
5094
- to: m.to
5091
+ to: h.to
5095
5092
  }, {
5096
5093
  default: Ot(() => [
5097
- xo(de(m.title), 1)
5094
+ xo(de(h.title), 1)
5098
5095
  ]),
5099
5096
  _: 2
5100
5097
  }, 1032, ["to"])
@@ -5103,9 +5100,9 @@ const lc = {
5103
5100
  ]);
5104
5101
  };
5105
5102
  }
5106
- }), bc = /* @__PURE__ */ dn(wc, [["__scopeId", "data-v-a650f215"]]), kc = {
5103
+ }), wc = /* @__PURE__ */ dn(bc, [["__scopeId", "data-v-a650f215"]]), kc = {
5107
5104
  install: (e) => {
5108
- e.component("ActionSet", Xr), e.component("CommandPalette", ts), e.component("Doctype", hl), e.component("Records", fc), e.component("SheetNav", bc);
5105
+ e.component("ActionSet", Xr), e.component("CommandPalette", ts), e.component("Doctype", hl), e.component("Records", fc), e.component("SheetNav", wc);
5109
5106
  }
5110
5107
  };
5111
5108
  export {
@@ -5113,7 +5110,7 @@ export {
5113
5110
  ts as CommandPalette,
5114
5111
  hl as Doctype,
5115
5112
  fc as Records,
5116
- bc as SheetNav,
5113
+ wc as SheetNav,
5117
5114
  kc as StonecropDesktop
5118
5115
  };
5119
5116
  //# sourceMappingURL=desktop.js.map