@stonecrop/desktop 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/desktop.js CHANGED
@@ -1,12 +1,12 @@
1
- import { defineComponent as Y, ref as b, onMounted as xe, openBlock as x, createElementBlock as O, normalizeClass as de, createElementVNode as I, Fragment as fe, renderList as pe, toDisplayString as q, createCommentVNode as K, withDirectives as Te, vShow as It, watch as D, computed as P, getCurrentScope as Re, onScopeDispose as Be, unref as k, toRef as ae, readonly as Sn, customRef as On, createBlock as ue, resolveDynamicComponent as Ct, mergeProps as Dt, effectScope as At, markRaw as W, inject as Vt, onBeforeMount as $o, toRaw as Ee, hasInjectionContext as Nn, getCurrentInstance as Ue, reactive as Pn, isRef as G, isReactive as Se, nextTick as he, toRefs as nt, useTemplateRef as We, normalizeStyle as z, renderSlot as oe, createVNode as ot, withCtx as rt, createTextVNode as In, onBeforeUnmount as ko, resolveComponent as xo, withKeys as ze, vModelText as So } from "vue";
2
- const Oo = { class: "action-menu-icon" }, No = ["onclick"], Po = { key: 1 }, Io = ["onClick"], Co = { class: "dropdown-container" }, Do = { class: "dropdown" }, Ao = ["onclick"], Vo = ["href"], To = { class: "dropdown-item" }, jo = /* @__PURE__ */ Y({
1
+ import { defineComponent as Y, ref as b, onMounted as ge, openBlock as x, createElementBlock as O, normalizeClass as de, createElementVNode as I, Fragment as fe, renderList as pe, toDisplayString as q, createCommentVNode as K, withDirectives as Te, vShow as It, watch as D, computed as P, getCurrentScope as Re, onScopeDispose as Be, unref as k, toRef as ae, readonly as Sn, customRef as On, createBlock as ue, resolveDynamicComponent as Ct, mergeProps as Dt, effectScope as At, markRaw as W, inject as Vt, toRaw as $e, hasInjectionContext as Nn, getCurrentInstance as Ue, reactive as Pn, isRef as G, isReactive as Se, nextTick as he, toRefs as nt, useTemplateRef as We, normalizeStyle as z, renderSlot as oe, createVNode as ot, withCtx as rt, createTextVNode as In, onBeforeUnmount as $o, resolveComponent as ko, withKeys as ze, vModelText as xo } from "vue";
2
+ const So = { class: "action-menu-icon" }, Oo = ["onclick"], No = { key: 1 }, Po = ["onClick"], Io = { class: "dropdown-container" }, Co = { class: "dropdown" }, Do = ["onclick"], Ao = ["href"], Vo = { class: "dropdown-item" }, To = /* @__PURE__ */ Y({
3
3
  __name: "ActionSet",
4
4
  props: {
5
5
  elements: {}
6
6
  },
7
7
  setup(e) {
8
8
  const t = b(e.elements), n = b(!1), o = b(null), r = b(!1), s = b(!1);
9
- xe(() => {
9
+ ge(() => {
10
10
  i();
11
11
  });
12
12
  const i = () => {
@@ -27,7 +27,7 @@ const Oo = { class: "action-menu-icon" }, No = ["onclick"], Po = { key: 1 }, Io
27
27
  onMouseover: a,
28
28
  onMouseleave: c
29
29
  }, [
30
- I("div", Oo, [
30
+ I("div", So, [
31
31
  I("div", {
32
32
  id: "chevron",
33
33
  onClick: d[0] || (d[0] = (f) => s.value = !s.value)
@@ -73,14 +73,14 @@ const Oo = { class: "action-menu-icon" }, No = ["onclick"], Po = { key: 1 }, Io
73
73
  key: 0,
74
74
  onclick: f.action,
75
75
  class: "button-default"
76
- }, q(f.label), 9, No)) : K("", !0),
77
- f.type == "dropdown" ? (x(), O("div", Po, [
76
+ }, q(f.label), 9, Oo)) : K("", !0),
77
+ f.type == "dropdown" ? (x(), O("div", No, [
78
78
  I("button", {
79
79
  class: "button-default",
80
80
  onClick: (h) => l(g)
81
- }, q(f.label), 9, Io),
82
- Te(I("div", Co, [
83
- I("div", Do, [
81
+ }, q(f.label), 9, Po),
82
+ Te(I("div", Io, [
83
+ I("div", Co, [
84
84
  (x(!0), O(fe, null, pe(f.actions, (h) => (x(), O("div", {
85
85
  key: h.label
86
86
  }, [
@@ -88,12 +88,12 @@ const Oo = { class: "action-menu-icon" }, No = ["onclick"], Po = { key: 1 }, Io
88
88
  key: 0,
89
89
  onclick: h.action,
90
90
  class: "dropdown-item"
91
- }, q(h.label), 9, Ao)) : h.link != null ? (x(), O("a", {
91
+ }, q(h.label), 9, Do)) : h.link != null ? (x(), O("a", {
92
92
  key: 1,
93
93
  href: h.link
94
94
  }, [
95
- I("button", To, q(h.label), 1)
96
- ], 8, Vo)) : K("", !0)
95
+ I("button", Vo, q(h.label), 1)
96
+ ], 8, Ao)) : K("", !0)
97
97
  ]))), 128))
98
98
  ])
99
99
  ], 512), [
@@ -108,11 +108,11 @@ const Oo = { class: "action-menu-icon" }, No = ["onclick"], Po = { key: 1 }, Io
108
108
  for (const [o, r] of t)
109
109
  n[o] = r;
110
110
  return n;
111
- }, Mo = /* @__PURE__ */ Tt(jo, [["__scopeId", "data-v-38e7af34"]]), Lo = {};
112
- function Ro(e, t) {
111
+ }, jo = /* @__PURE__ */ Tt(To, [["__scopeId", "data-v-38e7af34"]]), Mo = {};
112
+ function Lo(e, t) {
113
113
  return x(), O("dialog");
114
114
  }
115
- const Bo = /* @__PURE__ */ Tt(Lo, [["render", Ro]]), Uo = (e, t) => {
115
+ const Ro = /* @__PURE__ */ Tt(Mo, [["render", Lo]]), Bo = (e, t) => {
116
116
  const n = e.__vccOpts || e;
117
117
  for (const [o, r] of t)
118
118
  n[o] = r;
@@ -126,37 +126,37 @@ function Ae(e) {
126
126
  }
127
127
  const Dn = typeof window < "u" && typeof document < "u";
128
128
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
129
- const Wo = Object.prototype.toString, Ho = (e) => Wo.call(e) === "[object Object]", An = () => {
130
- }, Kt = /* @__PURE__ */ Fo();
131
- function Fo() {
129
+ const Uo = Object.prototype.toString, Wo = (e) => Uo.call(e) === "[object Object]", An = () => {
130
+ }, Kt = /* @__PURE__ */ Ho();
131
+ function Ho() {
132
132
  var e, t;
133
133
  return Dn && ((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));
134
134
  }
135
- function zo(...e) {
135
+ function Fo(...e) {
136
136
  if (e.length !== 1)
137
137
  return ae(...e);
138
138
  const t = e[0];
139
139
  return typeof t == "function" ? Sn(On(() => ({ get: t, set: An }))) : b(t);
140
140
  }
141
- const Jo = Dn ? window : void 0;
142
- function Go(e) {
141
+ const zo = Dn ? window : void 0;
142
+ function Jo(e) {
143
143
  var t;
144
144
  const n = Ae(e);
145
145
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
146
146
  }
147
- function Yo(...e) {
147
+ function Go(...e) {
148
148
  let t, n, o, r;
149
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = Jo) : [t, n, o, r] = e, !t)
149
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = zo) : [t, n, o, r] = e, !t)
150
150
  return An;
151
151
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
152
152
  const s = [], i = () => {
153
153
  s.forEach((u) => u()), s.length = 0;
154
154
  }, a = (u, d, f, g) => (u.addEventListener(d, f, g), () => u.removeEventListener(d, f, g)), c = D(
155
- () => [Go(t), Ae(r)],
155
+ () => [Jo(t), Ae(r)],
156
156
  ([u, d]) => {
157
157
  if (i(), !u)
158
158
  return;
159
- const f = Ho(d) ? { ...d } : d;
159
+ const f = Wo(d) ? { ...d } : d;
160
160
  s.push(
161
161
  ...n.flatMap((g) => o.map((h) => a(u, g, h, f)))
162
162
  );
@@ -179,15 +179,15 @@ function Vn(e) {
179
179
  return !n || n.tagName === "BODY" ? !1 : Vn(n);
180
180
  }
181
181
  }
182
- function Xo(e) {
182
+ function Yo(e) {
183
183
  const t = e || window.event, n = t.target;
184
184
  return Vn(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
185
185
  }
186
186
  const ft = /* @__PURE__ */ new WeakMap();
187
- function Qo(e, t = !1) {
187
+ function Xo(e, t = !1) {
188
188
  const n = b(t);
189
189
  let o = null, r = "";
190
- D(zo(e), (a) => {
190
+ D(Fo(e), (a) => {
191
191
  const c = dt(Ae(a));
192
192
  if (c) {
193
193
  const l = c;
@@ -201,11 +201,11 @@ function Qo(e, t = !1) {
201
201
  });
202
202
  const s = () => {
203
203
  const a = dt(Ae(e));
204
- !a || n.value || (Kt && (o = Yo(
204
+ !a || n.value || (Kt && (o = Go(
205
205
  a,
206
206
  "touchmove",
207
207
  (c) => {
208
- Xo(c);
208
+ Yo(c);
209
209
  },
210
210
  { passive: !1 }
211
211
  )), a.style.overflow = "hidden", n.value = !0);
@@ -222,20 +222,20 @@ function Qo(e, t = !1) {
222
222
  }
223
223
  });
224
224
  }
225
- function qo() {
225
+ function Qo() {
226
226
  let e = !1;
227
227
  const t = b(!1);
228
228
  return (n, o) => {
229
229
  if (t.value = o.value, e)
230
230
  return;
231
231
  e = !0;
232
- const r = Qo(n, o.value);
232
+ const r = Xo(n, o.value);
233
233
  D(t, (s) => r.value = s);
234
234
  };
235
235
  }
236
- qo();
236
+ Qo();
237
237
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
238
- const Ko = { class: "aform" }, Zo = /* @__PURE__ */ Y({
238
+ const qo = { class: "aform" }, Ko = /* @__PURE__ */ Y({
239
239
  __name: "AForm",
240
240
  props: {
241
241
  modelValue: {},
@@ -261,7 +261,7 @@ const Ko = { class: "aform" }, Zo = /* @__PURE__ */ Y({
261
261
  set: () => {
262
262
  }
263
263
  });
264
- return (i, a) => (x(), O("form", Ko, [
264
+ return (i, a) => (x(), O("form", qo, [
265
265
  (x(!0), O(fe, null, pe(i.modelValue, (c, l) => (x(), ue(Ct(c.component), Dt({
266
266
  key: l,
267
267
  schema: c,
@@ -273,8 +273,8 @@ const Ko = { class: "aform" }, Zo = /* @__PURE__ */ Y({
273
273
  }, r(c)), null, 16, ["schema", "modelValue", "onUpdate:modelValue", "data", "readonly"]))), 128))
274
274
  ]));
275
275
  }
276
- }), er = /* @__PURE__ */ Uo(Zo, [["__scopeId", "data-v-68845234"]]);
277
- var tr = Object.defineProperty, nr = (e, t, n) => t in e ? tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, U = (e, t, n) => nr(e, typeof t != "symbol" ? t + "" : t, n);
276
+ }), Zo = /* @__PURE__ */ Bo(Ko, [["__scopeId", "data-v-68845234"]]);
277
+ var er = Object.defineProperty, tr = (e, t, n) => t in e ? er(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, U = (e, t, n) => tr(e, typeof t != "symbol" ? t + "" : t, n);
278
278
  function Et(e) {
279
279
  this.message = e || "";
280
280
  }
@@ -434,7 +434,7 @@ const Tn = class Xe {
434
434
  }
435
435
  };
436
436
  U(Tn, "_root");
437
- let or = Tn;
437
+ let nr = Tn;
438
438
  var jn = !1;
439
439
  function Je(e, t, n) {
440
440
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
@@ -446,22 +446,22 @@ function pt(e, t) {
446
446
  }
447
447
  delete e[t];
448
448
  }
449
- function rr() {
449
+ function or() {
450
450
  return Mn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
451
451
  }
452
452
  function Mn() {
453
453
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
454
454
  }
455
- const sr = typeof Proxy == "function", ar = "devtools-plugin:setup", ir = "plugin:settings:set";
455
+ const rr = typeof Proxy == "function", sr = "devtools-plugin:setup", ar = "plugin:settings:set";
456
456
  let Ne, $t;
457
- function lr() {
457
+ function ir() {
458
458
  var e;
459
459
  return Ne !== void 0 || (typeof window < "u" && window.performance ? (Ne = !0, $t = window.performance) : typeof globalThis < "u" && !((e = globalThis.perf_hooks) === null || e === void 0) && e.performance ? (Ne = !0, $t = globalThis.perf_hooks.performance) : Ne = !1), Ne;
460
460
  }
461
- function cr() {
462
- return lr() ? $t.now() : Date.now();
461
+ function lr() {
462
+ return ir() ? $t.now() : Date.now();
463
463
  }
464
- class ur {
464
+ class cr {
465
465
  constructor(t, n) {
466
466
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
467
467
  const o = {};
@@ -489,9 +489,9 @@ class ur {
489
489
  s = i;
490
490
  },
491
491
  now() {
492
- return cr();
492
+ return lr();
493
493
  }
494
- }, n && n.on(ir, (i, a) => {
494
+ }, n && n.on(ar, (i, a) => {
495
495
  i === this.plugin.id && this.fallbacks.setSettings(a);
496
496
  }), this.proxiedOn = new Proxy({}, {
497
497
  get: (i, a) => this.target ? this.target.on[a] : (...c) => {
@@ -524,11 +524,11 @@ class ur {
524
524
  }
525
525
  }
526
526
  function Ln(e, t) {
527
- const n = e, o = Mn(), r = rr(), s = sr && n.enableEarlyProxy;
527
+ const n = e, o = Mn(), r = or(), s = rr && n.enableEarlyProxy;
528
528
  if (r && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
529
- r.emit(ar, e, t);
529
+ r.emit(sr, e, t);
530
530
  else {
531
- const i = s ? new ur(n, r) : null;
531
+ const i = s ? new cr(n, r) : null;
532
532
  (o.__VUE_DEVTOOLS_PLUGINS__ = o.__VUE_DEVTOOLS_PLUGINS__ || []).push({
533
533
  pluginDescriptor: n,
534
534
  setupFn: t,
@@ -554,7 +554,7 @@ var J;
554
554
  e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
555
555
  })(J || (J = {}));
556
556
  const re = typeof window < "u", Zt = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
557
- function dr(e, { autoBom: t = !1 } = {}) {
557
+ function ur(e, { autoBom: t = !1 } = {}) {
558
558
  return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
559
559
  }
560
560
  function jt(e, t, n) {
@@ -584,16 +584,16 @@ function Qe(e) {
584
584
  }
585
585
  const qe = typeof navigator == "object" ? navigator : { userAgent: "" }, Un = /Macintosh/.test(qe.userAgent) && /AppleWebKit/.test(qe.userAgent) && !/Safari/.test(qe.userAgent), Wn = re ? (
586
586
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
587
- typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Un ? fr : (
587
+ typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Un ? dr : (
588
588
  // Use msSaveOrOpenBlob as a second approach
589
- "msSaveOrOpenBlob" in qe ? pr : (
589
+ "msSaveOrOpenBlob" in qe ? fr : (
590
590
  // Fallback to using FileReader and a popup
591
- hr
591
+ pr
592
592
  )
593
593
  )
594
594
  ) : () => {
595
595
  };
596
- function fr(e, t = "download", n) {
596
+ function dr(e, t = "download", n) {
597
597
  const o = document.createElement("a");
598
598
  o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin !== location.origin ? Bn(o.href) ? jt(e, t, n) : (o.target = "_blank", Qe(o)) : Qe(o)) : (o.href = URL.createObjectURL(e), setTimeout(function() {
599
599
  URL.revokeObjectURL(o.href);
@@ -601,7 +601,7 @@ function fr(e, t = "download", n) {
601
601
  Qe(o);
602
602
  }, 0));
603
603
  }
604
- function pr(e, t = "download", n) {
604
+ function fr(e, t = "download", n) {
605
605
  if (typeof e == "string")
606
606
  if (Bn(e))
607
607
  jt(e, t, n);
@@ -612,9 +612,9 @@ function pr(e, t = "download", n) {
612
612
  });
613
613
  }
614
614
  else
615
- navigator.msSaveOrOpenBlob(dr(e, n), t);
615
+ navigator.msSaveOrOpenBlob(ur(e, n), t);
616
616
  }
617
- function hr(e, t, n, o) {
617
+ function pr(e, t, n, o) {
618
618
  if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof e == "string")
619
619
  return jt(e, t, n);
620
620
  const r = e.type === "application/octet-stream", s = /constructor/i.test(String(Zt.HTMLElement)) || "safari" in Zt, i = /CriOS\/[\d]+/.test(navigator.userAgent);
@@ -647,7 +647,7 @@ function Hn() {
647
647
  function Fn(e) {
648
648
  return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (T('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
649
649
  }
650
- async function mr(e) {
650
+ async function hr(e) {
651
651
  if (!Hn())
652
652
  try {
653
653
  await navigator.clipboard.writeText(JSON.stringify(e.state.value)), T("Global state copied to clipboard.");
@@ -657,7 +657,7 @@ async function mr(e) {
657
657
  T("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
658
658
  }
659
659
  }
660
- async function vr(e) {
660
+ async function mr(e) {
661
661
  if (!Hn())
662
662
  try {
663
663
  zn(e, JSON.parse(await navigator.clipboard.readText())), T("Global state pasted from clipboard.");
@@ -667,7 +667,7 @@ async function vr(e) {
667
667
  T("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
668
668
  }
669
669
  }
670
- async function gr(e) {
670
+ async function vr(e) {
671
671
  try {
672
672
  Wn(new Blob([JSON.stringify(e.state.value)], {
673
673
  type: "text/plain;charset=utf-8"
@@ -677,7 +677,7 @@ async function gr(e) {
677
677
  }
678
678
  }
679
679
  let Q;
680
- function yr() {
680
+ function gr() {
681
681
  Q || (Q = document.createElement("input"), Q.type = "file", Q.accept = ".json");
682
682
  function e() {
683
683
  return new Promise((t, n) => {
@@ -692,9 +692,9 @@ function yr() {
692
692
  }
693
693
  return e;
694
694
  }
695
- async function wr(e) {
695
+ async function yr(e) {
696
696
  try {
697
- const t = await yr()();
697
+ const t = await gr()();
698
698
  if (!t)
699
699
  return;
700
700
  const { text: n, file: o } = t;
@@ -717,7 +717,7 @@ function F(e) {
717
717
  };
718
718
  }
719
719
  const Jn = "🍍 Pinia (root)", Ke = "_root";
720
- function br(e) {
720
+ function wr(e) {
721
721
  return Mt(e) ? {
722
722
  id: Ke,
723
723
  label: Jn
@@ -726,7 +726,7 @@ function br(e) {
726
726
  label: e.$id
727
727
  };
728
728
  }
729
- function _r(e) {
729
+ function br(e) {
730
730
  if (Mt(e)) {
731
731
  const n = Array.from(e._s.keys()), o = e._s;
732
732
  return {
@@ -762,7 +762,7 @@ function _r(e) {
762
762
  value: e[n]
763
763
  }))), t;
764
764
  }
765
- function Er(e) {
765
+ function _r(e) {
766
766
  return e ? Array.isArray(e) ? e.reduce((t, n) => (t.keys.push(n.key), t.operations.push(n.type), t.oldValue[n.key] = n.oldValue, t.newValue[n.key] = n.newValue, t), {
767
767
  oldValue: {},
768
768
  keys: [],
@@ -775,7 +775,7 @@ function Er(e) {
775
775
  newValue: e.newValue
776
776
  } : {};
777
777
  }
778
- function $r(e) {
778
+ function Er(e) {
779
779
  switch (e) {
780
780
  case J.direct:
781
781
  return "mutation";
@@ -787,9 +787,9 @@ function $r(e) {
787
787
  return "unknown";
788
788
  }
789
789
  }
790
- let we = !0;
791
- const Ze = [], ce = "pinia:mutations", j = "pinia", { assign: kr } = Object, st = (e) => "🍍 " + e;
792
- function xr(e, t) {
790
+ let be = !0;
791
+ const Ze = [], ce = "pinia:mutations", j = "pinia", { assign: $r } = Object, st = (e) => "🍍 " + e;
792
+ function kr(e, t) {
793
793
  Ln({
794
794
  id: "dev.esm.pinia",
795
795
  label: "Pinia 🍍",
@@ -812,28 +812,28 @@ function xr(e, t) {
812
812
  {
813
813
  icon: "content_copy",
814
814
  action: () => {
815
- mr(t);
815
+ hr(t);
816
816
  },
817
817
  tooltip: "Serialize and copy the state"
818
818
  },
819
819
  {
820
820
  icon: "content_paste",
821
821
  action: async () => {
822
- await vr(t), n.sendInspectorTree(j), n.sendInspectorState(j);
822
+ await mr(t), n.sendInspectorTree(j), n.sendInspectorState(j);
823
823
  },
824
824
  tooltip: "Replace the state with the content of your clipboard"
825
825
  },
826
826
  {
827
827
  icon: "save",
828
828
  action: () => {
829
- gr(t);
829
+ vr(t);
830
830
  },
831
831
  tooltip: "Save the state as a JSON file"
832
832
  },
833
833
  {
834
834
  icon: "folder_open",
835
835
  action: async () => {
836
- await wr(t), n.sendInspectorTree(j), n.sendInspectorState(j);
836
+ await yr(t), n.sendInspectorTree(j), n.sendInspectorState(j);
837
837
  },
838
838
  tooltip: "Import the state from a JSON file"
839
839
  }
@@ -859,7 +859,7 @@ function xr(e, t) {
859
859
  editable: !0,
860
860
  value: a._isOptionsAPI ? {
861
861
  _custom: {
862
- value: Ee(a.$state),
862
+ value: $e(a.$state),
863
863
  actions: [
864
864
  {
865
865
  icon: "restore",
@@ -890,14 +890,14 @@ function xr(e, t) {
890
890
  }), n.on.getInspectorTree((o) => {
891
891
  if (o.app === e && o.inspectorId === j) {
892
892
  let r = [t];
893
- r = r.concat(Array.from(t._s.values())), o.rootNodes = (o.filter ? r.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(o.filter.toLowerCase()) : Jn.toLowerCase().includes(o.filter.toLowerCase())) : r).map(br);
893
+ r = r.concat(Array.from(t._s.values())), o.rootNodes = (o.filter ? r.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(o.filter.toLowerCase()) : Jn.toLowerCase().includes(o.filter.toLowerCase())) : r).map(wr);
894
894
  }
895
895
  }), globalThis.$pinia = t, n.on.getInspectorState((o) => {
896
896
  if (o.app === e && o.inspectorId === j) {
897
897
  const r = o.nodeId === Ke ? t : t._s.get(o.nodeId);
898
898
  if (!r)
899
899
  return;
900
- r && (o.nodeId !== Ke && (globalThis.$store = Ee(r)), o.state = _r(r));
900
+ r && (o.nodeId !== Ke && (globalThis.$store = $e(r)), o.state = br(r));
901
901
  }
902
902
  }), n.on.editInspectorState((o, r) => {
903
903
  if (o.app === e && o.inspectorId === j) {
@@ -905,7 +905,7 @@ function xr(e, t) {
905
905
  if (!s)
906
906
  return T(`store "${o.nodeId}" not found`, "error");
907
907
  const { path: i } = o;
908
- Mt(s) ? i.unshift("state") : (i.length !== 1 || !s._customProperties.has(i[0]) || i[0] in s.$state) && i.unshift("$state"), we = !1, o.set(s, i, o.state.value), we = !0;
908
+ Mt(s) ? i.unshift("state") : (i.length !== 1 || !s._customProperties.has(i[0]) || i[0] in s.$state) && i.unshift("$state"), be = !1, o.set(s, i, o.state.value), be = !0;
909
909
  }
910
910
  }), n.on.editComponentState((o) => {
911
911
  if (o.type.startsWith("🍍")) {
@@ -917,12 +917,12 @@ function xr(e, t) {
917
917
  return T(`Invalid path for store "${r}":
918
918
  ${i}
919
919
  Only state can be modified.`);
920
- i[0] = "$state", we = !1, o.set(s, i, o.state.value), we = !0;
920
+ i[0] = "$state", be = !1, o.set(s, i, o.state.value), be = !0;
921
921
  }
922
922
  });
923
923
  });
924
924
  }
925
- function Sr(e, t) {
925
+ function xr(e, t) {
926
926
  Ze.includes(st(t.$id)) || Ze.push(st(t.$id)), Ln({
927
927
  id: "dev.esm.pinia",
928
928
  label: "Pinia 🍍",
@@ -996,7 +996,7 @@ function Sr(e, t) {
996
996
  });
997
997
  }, !0), t._customProperties.forEach((i) => {
998
998
  D(() => k(t[i]), (a, c) => {
999
- n.notifyComponentUpdate(), n.sendInspectorState(j), we && n.addTimelineEvent({
999
+ n.notifyComponentUpdate(), n.sendInspectorState(j), be && n.addTimelineEvent({
1000
1000
  layerId: ce,
1001
1001
  event: {
1002
1002
  time: o(),
@@ -1011,12 +1011,12 @@ function Sr(e, t) {
1011
1011
  });
1012
1012
  }, { deep: !0 });
1013
1013
  }), t.$subscribe(({ events: i, type: a }, c) => {
1014
- if (n.notifyComponentUpdate(), n.sendInspectorState(j), !we)
1014
+ if (n.notifyComponentUpdate(), n.sendInspectorState(j), !be)
1015
1015
  return;
1016
1016
  const l = {
1017
1017
  time: o(),
1018
- title: $r(a),
1019
- data: kr({ store: F(t.$id) }, Er(i)),
1018
+ title: Er(a),
1019
+ data: $r({ store: F(t.$id) }, _r(i)),
1020
1020
  groupId: se
1021
1021
  };
1022
1022
  a === J.patchFunction ? l.subtitle = "⤵️" : a === J.patchObject ? l.subtitle = "🧩" : i && !Array.isArray(i) && (l.subtitle = i.type), i && (l.data["rawEvent(s)"] = {
@@ -1054,7 +1054,7 @@ function Sr(e, t) {
1054
1054
  }
1055
1055
  let Gn = 0, se;
1056
1056
  function en(e, t, n) {
1057
- const o = t.reduce((r, s) => (r[s] = Ee(e)[s], r), {});
1057
+ const o = t.reduce((r, s) => (r[s] = $e(e)[s], r), {});
1058
1058
  for (const r in o)
1059
1059
  e[r] = function() {
1060
1060
  const s = Gn, i = n ? new Proxy(e, {
@@ -1070,28 +1070,28 @@ function en(e, t, n) {
1070
1070
  return se = void 0, a;
1071
1071
  };
1072
1072
  }
1073
- function Or({ app: e, store: t, options: n }) {
1073
+ function Sr({ app: e, store: t, options: n }) {
1074
1074
  if (!t.$id.startsWith("__hot:")) {
1075
1075
  if (t._isOptionsAPI = !!n.state, !t._p._testing) {
1076
1076
  en(t, Object.keys(n.actions), t._isOptionsAPI);
1077
1077
  const o = t._hotUpdate;
1078
- Ee(t)._hotUpdate = function(r) {
1078
+ $e(t)._hotUpdate = function(r) {
1079
1079
  o.apply(this, arguments), en(t, Object.keys(r._hmrPayload.actions), !!t._isOptionsAPI);
1080
1080
  };
1081
1081
  }
1082
- Sr(
1082
+ xr(
1083
1083
  e,
1084
1084
  // FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
1085
1085
  t
1086
1086
  );
1087
1087
  }
1088
1088
  }
1089
- function Nr() {
1089
+ function Or() {
1090
1090
  const e = At(!0), t = e.run(() => b({}));
1091
1091
  let n = [], o = [];
1092
1092
  const r = W({
1093
1093
  install(s) {
1094
- je(r), r._a = s, s.provide(Rn, r), s.config.globalProperties.$pinia = r, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && re && xr(s, r), o.forEach((i) => n.push(i)), o = [];
1094
+ je(r), r._a = s, s.provide(Rn, r), s.config.globalProperties.$pinia = r, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && re && kr(s, r), o.forEach((i) => n.push(i)), o = [];
1095
1095
  },
1096
1096
  use(s) {
1097
1097
  return !this._a && !jn ? o.push(s) : n.push(s), this;
@@ -1104,7 +1104,7 @@ function Nr() {
1104
1104
  _s: /* @__PURE__ */ new Map(),
1105
1105
  state: t
1106
1106
  });
1107
- return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && re && typeof Proxy < "u" && r.use(Or), r;
1107
+ return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && re && typeof Proxy < "u" && r.use(Sr), r;
1108
1108
  }
1109
1109
  function Yn(e, t) {
1110
1110
  for (const n in t) {
@@ -1126,12 +1126,12 @@ function tn(e, t, n, o = Xn) {
1126
1126
  };
1127
1127
  return !n && Re() && Be(r), r;
1128
1128
  }
1129
- function ge(e, ...t) {
1129
+ function ye(e, ...t) {
1130
1130
  e.slice().forEach((n) => {
1131
1131
  n(...t);
1132
1132
  });
1133
1133
  }
1134
- const Pr = (e) => e(), nn = Symbol(), ht = Symbol();
1134
+ const Nr = (e) => e(), nn = Symbol(), ht = Symbol();
1135
1135
  function kt(e, t) {
1136
1136
  e instanceof Map && t instanceof Map ? t.forEach((n, o) => e.set(o, n)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
1137
1137
  for (const n in t) {
@@ -1142,12 +1142,12 @@ function kt(e, t) {
1142
1142
  }
1143
1143
  return e;
1144
1144
  }
1145
- const Ir = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
1145
+ const Pr = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
1146
1146
  /* istanbul ignore next */
1147
1147
  Symbol()
1148
1148
  );
1149
- function Cr(e) {
1150
- return !me(e) || !e.hasOwnProperty(Ir);
1149
+ function Ir(e) {
1150
+ return !me(e) || !e.hasOwnProperty(Pr);
1151
1151
  }
1152
1152
  const { assign: R } = Object;
1153
1153
  function on(e) {
@@ -1199,7 +1199,7 @@ function xt(e, t, n = {}, o, r, s) {
1199
1199
  const v = _ = Symbol();
1200
1200
  he().then(() => {
1201
1201
  _ === v && (l = !0);
1202
- }), u = !0, ge(d, p, o.state.value[e]);
1202
+ }), u = !0, ye(d, p, o.state.value[e]);
1203
1203
  }
1204
1204
  const N = s ? function() {
1205
1205
  const { state: y } = n, p = y ? y() : {};
@@ -1227,7 +1227,7 @@ function xt(e, t, n = {}, o, r, s) {
1227
1227
  function ut(V) {
1228
1228
  X.push(V);
1229
1229
  }
1230
- ge(f, {
1230
+ ye(f, {
1231
1231
  args: $,
1232
1232
  name: v[ht],
1233
1233
  store: m,
@@ -1238,9 +1238,9 @@ function xt(e, t, n = {}, o, r, s) {
1238
1238
  try {
1239
1239
  le = y.apply(this && this.$id === e ? this : m, $);
1240
1240
  } catch (V) {
1241
- throw ge(X, V), V;
1241
+ throw ye(X, V), V;
1242
1242
  }
1243
- return le instanceof Promise ? le.then((V) => (ge(A, V), V)).catch((V) => (ge(X, V), Promise.reject(V))) : (ge(A, le), le);
1243
+ return le instanceof Promise ? le.then((V) => (ye(A, V), V)).catch((V) => (ye(X, V), Promise.reject(V))) : (ye(A, le), le);
1244
1244
  };
1245
1245
  return v[nn] = !0, v[ht] = p, v;
1246
1246
  }, C = /* @__PURE__ */ W({
@@ -1277,11 +1277,11 @@ function xt(e, t, n = {}, o, r, s) {
1277
1277
  // setupStore
1278
1278
  ) : ne);
1279
1279
  o._s.set(e, m);
1280
- const E = (o._a && o._a.runWithContext || Pr)(() => o._e.run(() => (i = At()).run(() => t({ action: M }))));
1280
+ const E = (o._a && o._a.runWithContext || Nr)(() => o._e.run(() => (i = At()).run(() => t({ action: M }))));
1281
1281
  for (const y in E) {
1282
1282
  const p = E[y];
1283
1283
  if (G(p) && !on(p) || Se(p))
1284
- process.env.NODE_ENV !== "production" && r ? Je(w.value, y, ae(E, y)) : s || (h && Cr(p) && (G(p) ? p.value = h[y] : kt(p, h[y])), o.state.value[e][y] = p), process.env.NODE_ENV !== "production" && C.state.push(y);
1284
+ process.env.NODE_ENV !== "production" && r ? Je(w.value, y, ae(E, y)) : s || (h && Ir(p) && (G(p) ? p.value = h[y] : kt(p, h[y])), o.state.value[e][y] = p), process.env.NODE_ENV !== "production" && C.state.push(y);
1285
1285
  else if (typeof p == "function") {
1286
1286
  const v = process.env.NODE_ENV !== "production" && r ? p : M(p, y);
1287
1287
  E[y] = v, process.env.NODE_ENV !== "production" && (C.actions[y] = p), a.actions[y] = p;
@@ -1291,7 +1291,7 @@ function xt(e, t, n = {}, o, r, s) {
1291
1291
  ) : p, re && (E._getters || // @ts-expect-error: same
1292
1292
  (E._getters = W([]))).push(y));
1293
1293
  }
1294
- if (R(m, E), R(Ee(m), E), Object.defineProperty(m, "$state", {
1294
+ if (R(m, E), R($e(m), E), Object.defineProperty(m, "$state", {
1295
1295
  get: () => process.env.NODE_ENV !== "production" && r ? w.value : o.state.value[e],
1296
1296
  set: (y) => {
1297
1297
  if (process.env.NODE_ENV !== "production" && r)
@@ -1361,7 +1361,7 @@ Found in store "${m.$id}".`), h && s && n.hydrate && n.hydrate(m.$state, h), l =
1361
1361
  }
1362
1362
  /*! #__NO_SIDE_EFFECTS__ */
1363
1363
  // @__NO_SIDE_EFFECTS__
1364
- function Dr(e, t, n) {
1364
+ function Cr(e, t, n) {
1365
1365
  let o, r;
1366
1366
  const s = typeof t == "function";
1367
1367
  o = e, r = s ? n : t;
@@ -1391,30 +1391,30 @@ This will fail in production.`);
1391
1391
  }
1392
1392
  return i.$id = o, i;
1393
1393
  }
1394
- const Ar = /* @__PURE__ */ Dr("data", () => {
1394
+ const Dr = /* @__PURE__ */ Cr("data", () => {
1395
1395
  const e = b([]), t = b({});
1396
1396
  return { records: e, record: t };
1397
1397
  });
1398
1398
  function Qn(e) {
1399
- e || (e = Vt("$registry"));
1400
- let t;
1401
- try {
1402
- t = Ar();
1403
- } catch {
1404
- throw new Error("Please enable the Stonecrop plugin before using the Stonecrop composable");
1405
- }
1406
- const n = b(new or(e, t)), o = b(!1);
1407
- return $o(async () => {
1408
- var r, s, i;
1409
- if (!e || !e.router) return;
1410
- const a = e.router.currentRoute.value, c = (r = a.params.records) == null ? void 0 : r.toString().toLowerCase(), l = (s = a.params.record) == null ? void 0 : s.toString().toLowerCase();
1411
- if (!c && !l)
1399
+ const t = b();
1400
+ return ge(async () => {
1401
+ var n, o, r;
1402
+ e || (e = Vt("$registry"));
1403
+ let s;
1404
+ try {
1405
+ s = Dr();
1406
+ } catch {
1407
+ throw new Error("Please enable the Stonecrop plugin before using the Stonecrop composable");
1408
+ }
1409
+ if (t.value = new nr(e, s), !e || !e.router) return;
1410
+ const i = e.router.currentRoute.value, a = (n = i.params.records) == null ? void 0 : n.toString().toLowerCase(), c = (o = i.params.record) == null ? void 0 : o.toString().toLowerCase();
1411
+ if (!a && !c)
1412
1412
  return;
1413
- const u = await ((i = e.getMeta) == null ? void 0 : i.call(e, c));
1414
- u && (e.addDoctype(u), n.value.setup(u), c && (l ? await n.value.getRecord(u, l) : await n.value.getRecords(u)), n.value.runAction(u, "LOAD", l ? [l] : void 0)), o.value = !0;
1415
- }), { stonecrop: n, isReady: o };
1413
+ const l = await ((r = e.getMeta) == null ? void 0 : r.call(e, a));
1414
+ l && (e.addDoctype(l), t.value.setup(l), a && (c ? await t.value.getRecord(l, c) : await t.value.getRecords(l)), t.value.runAction(l, "LOAD", c ? [c] : void 0));
1415
+ }), { stonecrop: t };
1416
1416
  }
1417
- const Vr = class et {
1417
+ const Ar = class et {
1418
1418
  constructor(t, n) {
1419
1419
  if (U(this, "name"), U(this, "registry"), U(this, "router"), U(this, "getMeta"), et._root)
1420
1420
  return et._root;
@@ -1434,13 +1434,13 @@ const Vr = class et {
1434
1434
  });
1435
1435
  }
1436
1436
  };
1437
- U(Vr, "_root");
1438
- function Tr(e) {
1437
+ U(Ar, "_root");
1438
+ function Vr(e) {
1439
1439
  return e && typeof e.then == "function";
1440
1440
  }
1441
1441
  Promise.resolve(!1);
1442
1442
  Promise.resolve(!0);
1443
- var $e = Promise.resolve();
1443
+ var ke = Promise.resolve();
1444
1444
  function qn(e, t) {
1445
1445
  return e || (e = 0), new Promise(function(n) {
1446
1446
  return setTimeout(function() {
@@ -1448,7 +1448,7 @@ function qn(e, t) {
1448
1448
  }, e);
1449
1449
  });
1450
1450
  }
1451
- function jr(e, t) {
1451
+ function Tr(e, t) {
1452
1452
  return Math.floor(Math.random() * (t - e + 1) + e);
1453
1453
  }
1454
1454
  function Lt() {
@@ -1459,8 +1459,8 @@ function it() {
1459
1459
  var e = (/* @__PURE__ */ new Date()).getTime();
1460
1460
  return e === sn ? (mt++, e * 1e3 + mt) : (sn = e, mt = 0, e * 1e3);
1461
1461
  }
1462
- var Mr = it, Lr = "native";
1463
- function Rr(e) {
1462
+ var jr = it, Mr = "native";
1463
+ function Lr(e) {
1464
1464
  var t = {
1465
1465
  messagesCallback: null,
1466
1466
  bc: new BroadcastChannel(e),
@@ -1471,20 +1471,20 @@ function Rr(e) {
1471
1471
  t.messagesCallback && t.messagesCallback(n.data);
1472
1472
  }, t;
1473
1473
  }
1474
- function Br(e) {
1474
+ function Rr(e) {
1475
1475
  e.bc.close(), e.subFns = [];
1476
1476
  }
1477
- function Ur(e, t) {
1477
+ function Br(e, t) {
1478
1478
  try {
1479
- return e.bc.postMessage(t, !1), $e;
1479
+ return e.bc.postMessage(t, !1), ke;
1480
1480
  } catch (n) {
1481
1481
  return Promise.reject(n);
1482
1482
  }
1483
1483
  }
1484
- function Wr(e, t) {
1484
+ function Ur(e, t) {
1485
1485
  e.messagesCallback = t;
1486
1486
  }
1487
- function Hr() {
1487
+ function Wr() {
1488
1488
  if (typeof window > "u")
1489
1489
  return !1;
1490
1490
  if (typeof BroadcastChannel == "function") {
@@ -1494,18 +1494,18 @@ function Hr() {
1494
1494
  } else
1495
1495
  return !1;
1496
1496
  }
1497
- function Fr() {
1497
+ function Hr() {
1498
1498
  return 150;
1499
1499
  }
1500
- var zr = {
1501
- create: Rr,
1502
- close: Br,
1503
- onMessage: Wr,
1504
- postMessage: Ur,
1505
- canBeUsed: Hr,
1506
- type: Lr,
1507
- averageResponseTime: Fr,
1508
- microSeconds: Mr
1500
+ var Fr = {
1501
+ create: Lr,
1502
+ close: Rr,
1503
+ onMessage: Ur,
1504
+ postMessage: Br,
1505
+ canBeUsed: Wr,
1506
+ type: Mr,
1507
+ averageResponseTime: Hr,
1508
+ microSeconds: jr
1509
1509
  }, Kn = (
1510
1510
  /** @class */
1511
1511
  function() {
@@ -1517,14 +1517,14 @@ var zr = {
1517
1517
  }, e.prototype.add = function(t) {
1518
1518
  var n = this;
1519
1519
  this.map.set(t, Zn()), this._to || (this._to = !0, setTimeout(function() {
1520
- n._to = !1, Jr(n);
1520
+ n._to = !1, zr(n);
1521
1521
  }, 0));
1522
1522
  }, e.prototype.clear = function() {
1523
1523
  this.map.clear();
1524
1524
  }, e;
1525
1525
  }()
1526
1526
  );
1527
- function Jr(e) {
1527
+ function zr(e) {
1528
1528
  for (var t = Zn() - e.ttl, n = e.map[Symbol.iterator](); ; ) {
1529
1529
  var o = n.next().value;
1530
1530
  if (!o)
@@ -1543,9 +1543,9 @@ function Rt() {
1543
1543
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = JSON.parse(JSON.stringify(e));
1544
1544
  return typeof t.webWorkerSupport > "u" && (t.webWorkerSupport = !0), t.idb || (t.idb = {}), t.idb.ttl || (t.idb.ttl = 1e3 * 45), t.idb.fallbackInterval || (t.idb.fallbackInterval = 150), e.idb && typeof e.idb.onclose == "function" && (t.idb.onclose = e.idb.onclose), t.localstorage || (t.localstorage = {}), t.localstorage.removeTimeout || (t.localstorage.removeTimeout = 1e3 * 60), e.methods && (t.methods = e.methods), t.node || (t.node = {}), t.node.ttl || (t.node.ttl = 1e3 * 60 * 2), t.node.maxParallelWrites || (t.node.maxParallelWrites = 2048), typeof t.node.useFastPath > "u" && (t.node.useFastPath = !0), t;
1545
1545
  }
1546
- var Gr = it, Yr = "pubkey.broadcast-channel-0-", Z = "messages", lt = {
1546
+ var Jr = it, Gr = "pubkey.broadcast-channel-0-", Z = "messages", lt = {
1547
1547
  durability: "relaxed"
1548
- }, Xr = "idb";
1548
+ }, Yr = "idb";
1549
1549
  function eo() {
1550
1550
  if (typeof indexedDB < "u") return indexedDB;
1551
1551
  if (typeof window < "u") {
@@ -1558,8 +1558,8 @@ function eo() {
1558
1558
  function Bt(e) {
1559
1559
  e.commit && e.commit();
1560
1560
  }
1561
- function Qr(e) {
1562
- var t = eo(), n = Yr + e, o = t.open(n);
1561
+ function Xr(e) {
1562
+ var t = eo(), n = Gr + e, o = t.open(n);
1563
1563
  return o.onupgradeneeded = function(r) {
1564
1564
  var s = r.target.result;
1565
1565
  s.createObjectStore(Z, {
@@ -1574,7 +1574,7 @@ function Qr(e) {
1574
1574
  };
1575
1575
  });
1576
1576
  }
1577
- function qr(e, t, n) {
1577
+ function Qr(e, t, n) {
1578
1578
  var o = (/* @__PURE__ */ new Date()).getTime(), r = {
1579
1579
  uuid: t,
1580
1580
  time: o,
@@ -1590,7 +1590,7 @@ function qr(e, t, n) {
1590
1590
  c.add(r), Bt(s);
1591
1591
  });
1592
1592
  }
1593
- function Kr(e, t) {
1593
+ function qr(e, t) {
1594
1594
  var n = e.transaction(Z, "readonly", lt), o = n.objectStore(Z), r = [], s = IDBKeyRange.bound(t + 1, 1 / 0);
1595
1595
  if (o.getAll) {
1596
1596
  var i = o.getAll(s);
@@ -1619,7 +1619,7 @@ function Kr(e, t) {
1619
1619
  };
1620
1620
  });
1621
1621
  }
1622
- function Zr(e, t) {
1622
+ function Kr(e, t) {
1623
1623
  if (e.closed)
1624
1624
  return Promise.resolve([]);
1625
1625
  var n = e.db.transaction(Z, "readwrite", lt), o = n.objectStore(Z);
@@ -1632,7 +1632,7 @@ function Zr(e, t) {
1632
1632
  });
1633
1633
  }));
1634
1634
  }
1635
- function es(e, t) {
1635
+ function Zr(e, t) {
1636
1636
  var n = (/* @__PURE__ */ new Date()).getTime() - t, o = e.transaction(Z, "readonly", lt), r = o.objectStore(Z), s = [];
1637
1637
  return new Promise(function(i) {
1638
1638
  r.openCursor().onsuccess = function(a) {
@@ -1645,15 +1645,15 @@ function es(e, t) {
1645
1645
  };
1646
1646
  });
1647
1647
  }
1648
- function ts(e) {
1649
- return es(e.db, e.options.idb.ttl).then(function(t) {
1650
- return Zr(e, t.map(function(n) {
1648
+ function es(e) {
1649
+ return Zr(e.db, e.options.idb.ttl).then(function(t) {
1650
+ return Kr(e, t.map(function(n) {
1651
1651
  return n.id;
1652
1652
  }));
1653
1653
  });
1654
1654
  }
1655
- function ns(e, t) {
1656
- return t = Rt(t), Qr(e).then(function(n) {
1655
+ function ts(e, t) {
1656
+ return t = Rt(t), Xr(e).then(function(n) {
1657
1657
  var o = {
1658
1658
  closed: !1,
1659
1659
  lastCursorId: 0,
@@ -1667,7 +1667,7 @@ function ns(e, t) {
1667
1667
  */
1668
1668
  eMIs: new Kn(t.idb.ttl * 2),
1669
1669
  // ensures we do not read messages in parallel
1670
- writeBlockPromise: $e,
1670
+ writeBlockPromise: ke,
1671
1671
  messagesCallback: null,
1672
1672
  readQueuePromises: [],
1673
1673
  db: n
@@ -1684,54 +1684,54 @@ function to(e) {
1684
1684
  return to(e);
1685
1685
  });
1686
1686
  }
1687
- function os(e, t) {
1687
+ function ns(e, t) {
1688
1688
  return !(e.uuid === t.uuid || t.eMIs.has(e.id) || e.data.time < t.messagesCallbackTime);
1689
1689
  }
1690
1690
  function no(e) {
1691
- return e.closed || !e.messagesCallback ? $e : Kr(e.db, e.lastCursorId).then(function(t) {
1691
+ return e.closed || !e.messagesCallback ? ke : qr(e.db, e.lastCursorId).then(function(t) {
1692
1692
  var n = t.filter(function(o) {
1693
1693
  return !!o;
1694
1694
  }).map(function(o) {
1695
1695
  return o.id > e.lastCursorId && (e.lastCursorId = o.id), o;
1696
1696
  }).filter(function(o) {
1697
- return os(o, e);
1697
+ return ns(o, e);
1698
1698
  }).sort(function(o, r) {
1699
1699
  return o.time - r.time;
1700
1700
  });
1701
1701
  return n.forEach(function(o) {
1702
1702
  e.messagesCallback && (e.eMIs.add(o.id), e.messagesCallback(o.data));
1703
- }), $e;
1703
+ }), ke;
1704
1704
  });
1705
1705
  }
1706
- function rs(e) {
1706
+ function os(e) {
1707
1707
  e.closed = !0, e.db.close();
1708
1708
  }
1709
- function ss(e, t) {
1709
+ function rs(e, t) {
1710
1710
  return e.writeBlockPromise = e.writeBlockPromise.then(function() {
1711
- return qr(e.db, e.uuid, t);
1711
+ return Qr(e.db, e.uuid, t);
1712
1712
  }).then(function() {
1713
- jr(0, 10) === 0 && ts(e);
1713
+ Tr(0, 10) === 0 && es(e);
1714
1714
  }), e.writeBlockPromise;
1715
1715
  }
1716
- function as(e, t, n) {
1716
+ function ss(e, t, n) {
1717
1717
  e.messagesCallbackTime = n, e.messagesCallback = t, no(e);
1718
1718
  }
1719
- function is() {
1719
+ function as() {
1720
1720
  return !!eo();
1721
1721
  }
1722
- function ls(e) {
1722
+ function is(e) {
1723
1723
  return e.idb.fallbackInterval * 2;
1724
1724
  }
1725
- var cs = {
1726
- create: ns,
1727
- close: rs,
1728
- onMessage: as,
1729
- postMessage: ss,
1730
- canBeUsed: is,
1731
- type: Xr,
1732
- averageResponseTime: ls,
1733
- microSeconds: Gr
1734
- }, us = it, ds = "pubkey.broadcastChannel-", fs = "localstorage";
1725
+ var ls = {
1726
+ create: ts,
1727
+ close: os,
1728
+ onMessage: ss,
1729
+ postMessage: rs,
1730
+ canBeUsed: as,
1731
+ type: Yr,
1732
+ averageResponseTime: is,
1733
+ microSeconds: Jr
1734
+ }, cs = it, us = "pubkey.broadcastChannel-", ds = "localstorage";
1735
1735
  function oo() {
1736
1736
  var e;
1737
1737
  if (typeof window > "u") return null;
@@ -1742,9 +1742,9 @@ function oo() {
1742
1742
  return e;
1743
1743
  }
1744
1744
  function ro(e) {
1745
- return ds + e;
1745
+ return us + e;
1746
1746
  }
1747
- function ps(e, t) {
1747
+ function fs(e, t) {
1748
1748
  return new Promise(function(n) {
1749
1749
  qn().then(function() {
1750
1750
  var o = ro(e.channelName), r = {
@@ -1759,16 +1759,16 @@ function ps(e, t) {
1759
1759
  });
1760
1760
  });
1761
1761
  }
1762
- function hs(e, t) {
1762
+ function ps(e, t) {
1763
1763
  var n = ro(e), o = function(r) {
1764
1764
  r.key === n && t(JSON.parse(r.newValue));
1765
1765
  };
1766
1766
  return window.addEventListener("storage", o), o;
1767
1767
  }
1768
- function ms(e) {
1768
+ function hs(e) {
1769
1769
  window.removeEventListener("storage", e);
1770
1770
  }
1771
- function vs(e, t) {
1771
+ function ms(e, t) {
1772
1772
  if (t = Rt(t), !so())
1773
1773
  throw new Error("BroadcastChannel: localstorage cannot be used");
1774
1774
  var n = Lt(), o = new Kn(t.localstorage.removeTimeout), r = {
@@ -1777,14 +1777,14 @@ function vs(e, t) {
1777
1777
  eMIs: o
1778
1778
  // emittedMessagesIds
1779
1779
  };
1780
- return r.listener = hs(e, function(s) {
1780
+ return r.listener = ps(e, function(s) {
1781
1781
  r.messagesCallback && s.uuid !== n && (!s.token || o.has(s.token) || s.data.time && s.data.time < r.messagesCallbackTime || (o.add(s.token), r.messagesCallback(s.data)));
1782
1782
  }), r;
1783
1783
  }
1784
- function gs(e) {
1785
- ms(e.listener);
1784
+ function vs(e) {
1785
+ hs(e.listener);
1786
1786
  }
1787
- function ys(e, t, n) {
1787
+ function gs(e, t, n) {
1788
1788
  e.messagesCallbackTime = n, e.messagesCallback = t;
1789
1789
  }
1790
1790
  function so() {
@@ -1798,31 +1798,31 @@ function so() {
1798
1798
  }
1799
1799
  return !0;
1800
1800
  }
1801
- function ws() {
1801
+ function ys() {
1802
1802
  var e = 120, t = navigator.userAgent.toLowerCase();
1803
1803
  return t.includes("safari") && !t.includes("chrome") ? e * 2 : e;
1804
1804
  }
1805
- var bs = {
1806
- create: vs,
1807
- close: gs,
1808
- onMessage: ys,
1809
- postMessage: ps,
1805
+ var ws = {
1806
+ create: ms,
1807
+ close: vs,
1808
+ onMessage: gs,
1809
+ postMessage: fs,
1810
1810
  canBeUsed: so,
1811
- type: fs,
1812
- averageResponseTime: ws,
1813
- microSeconds: us
1814
- }, _s = it, Es = "simulate", Ut = /* @__PURE__ */ new Set();
1815
- function $s(e) {
1811
+ type: ds,
1812
+ averageResponseTime: ys,
1813
+ microSeconds: cs
1814
+ }, bs = it, _s = "simulate", Ut = /* @__PURE__ */ new Set();
1815
+ function Es(e) {
1816
1816
  var t = {
1817
1817
  name: e,
1818
1818
  messagesCallback: null
1819
1819
  };
1820
1820
  return Ut.add(t), t;
1821
1821
  }
1822
- function ks(e) {
1822
+ function $s(e) {
1823
1823
  Ut.delete(e);
1824
1824
  }
1825
- function xs(e, t) {
1825
+ function ks(e, t) {
1826
1826
  return new Promise(function(n) {
1827
1827
  return setTimeout(function() {
1828
1828
  var o = Array.from(Ut);
@@ -1838,35 +1838,35 @@ function xs(e, t) {
1838
1838
  }, 5);
1839
1839
  });
1840
1840
  }
1841
- function Ss(e, t) {
1841
+ function xs(e, t) {
1842
1842
  e.messagesCallback = t;
1843
1843
  }
1844
- function Os() {
1844
+ function Ss() {
1845
1845
  return !0;
1846
1846
  }
1847
- function Ns() {
1847
+ function Os() {
1848
1848
  return 5;
1849
1849
  }
1850
- var Ps = {
1851
- create: $s,
1852
- close: ks,
1853
- onMessage: Ss,
1854
- postMessage: xs,
1855
- canBeUsed: Os,
1856
- type: Es,
1857
- averageResponseTime: Ns,
1858
- microSeconds: _s
1850
+ var Ns = {
1851
+ create: Es,
1852
+ close: $s,
1853
+ onMessage: xs,
1854
+ postMessage: ks,
1855
+ canBeUsed: Ss,
1856
+ type: _s,
1857
+ averageResponseTime: Os,
1858
+ microSeconds: bs
1859
1859
  }, an = [
1860
- zr,
1860
+ Fr,
1861
1861
  // fastest
1862
- cs,
1863
- bs
1862
+ ls,
1863
+ ws
1864
1864
  ];
1865
- function Is(e) {
1865
+ function Ps(e) {
1866
1866
  var t = [].concat(e.methods, an).filter(Boolean);
1867
1867
  if (e.type) {
1868
1868
  if (e.type === "simulate")
1869
- return Ps;
1869
+ return Ns;
1870
1870
  var n = t.find(function(r) {
1871
1871
  return r.type === e.type;
1872
1872
  });
@@ -1884,11 +1884,11 @@ function Is(e) {
1884
1884
  return r.type;
1885
1885
  })));
1886
1886
  }
1887
- var ao = /* @__PURE__ */ new Set(), Cs = 0, Wt = function(e, t) {
1888
- this.id = Cs++, ao.add(this), this.name = e, this.options = Rt(t), this.method = Is(this.options), this._iL = !1, this._onML = null, this._addEL = {
1887
+ var ao = /* @__PURE__ */ new Set(), Is = 0, Wt = function(e, t) {
1888
+ this.id = Is++, ao.add(this), this.name = e, this.options = Rt(t), this.method = Ps(this.options), this._iL = !1, this._onML = null, this._addEL = {
1889
1889
  message: [],
1890
1890
  internal: []
1891
- }, this._uMP = /* @__PURE__ */ new Set(), this._befC = [], this._prepP = null, Ds(this);
1891
+ }, this._uMP = /* @__PURE__ */ new Set(), this._befC = [], this._prepP = null, Cs(this);
1892
1892
  };
1893
1893
  Wt._pubkey = !0;
1894
1894
  Wt.prototype = {
@@ -1929,7 +1929,7 @@ Wt.prototype = {
1929
1929
  var e = this;
1930
1930
  if (!this.closed) {
1931
1931
  ao.delete(this), this.closed = !0;
1932
- var t = this._prepP ? this._prepP : $e;
1932
+ var t = this._prepP ? this._prepP : ke;
1933
1933
  return this._onML = null, this._addEL.message = [], t.then(function() {
1934
1934
  return Promise.all(Array.from(e._uMP));
1935
1935
  }).then(function() {
@@ -1953,7 +1953,7 @@ function ln(e, t, n) {
1953
1953
  time: o,
1954
1954
  type: t,
1955
1955
  data: n
1956
- }, s = e._prepP ? e._prepP : $e;
1956
+ }, s = e._prepP ? e._prepP : ke;
1957
1957
  return s.then(function() {
1958
1958
  var i = e.method.postMessage(e._state, r);
1959
1959
  return e._uMP.add(i), i.catch().then(function() {
@@ -1961,9 +1961,9 @@ function ln(e, t, n) {
1961
1961
  }), i;
1962
1962
  });
1963
1963
  }
1964
- function Ds(e) {
1964
+ function Cs(e) {
1965
1965
  var t = e.method.create(e.name, e.options);
1966
- Tr(t) ? (e._prepP = t, t.then(function(n) {
1966
+ Vr(t) ? (e._prepP = t, t.then(function(n) {
1967
1967
  e._state = n;
1968
1968
  })) : e._state = t;
1969
1969
  }
@@ -1971,14 +1971,14 @@ function io(e) {
1971
1971
  return e._addEL.message.length > 0 || e._addEL.internal.length > 0;
1972
1972
  }
1973
1973
  function cn(e, t, n) {
1974
- e._addEL[t].push(n), As(e);
1974
+ e._addEL[t].push(n), Ds(e);
1975
1975
  }
1976
1976
  function un(e, t, n) {
1977
1977
  e._addEL[t] = e._addEL[t].filter(function(o) {
1978
1978
  return o !== n;
1979
- }), Vs(e);
1979
+ }), As(e);
1980
1980
  }
1981
- function As(e) {
1981
+ function Ds(e) {
1982
1982
  if (!e._iL && io(e)) {
1983
1983
  var t = function(o) {
1984
1984
  e._addEL[o.type].forEach(function(r) {
@@ -1991,7 +1991,7 @@ function As(e) {
1991
1991
  }) : (e._iL = !0, e.method.onMessage(e._state, t, n));
1992
1992
  }
1993
1993
  }
1994
- function Vs(e) {
1994
+ function As(e) {
1995
1995
  if (e._iL && !io(e)) {
1996
1996
  e._iL = !1;
1997
1997
  var t = e.method.microSeconds();
@@ -2010,17 +2010,17 @@ let vt = class extends Error {
2010
2010
  function dn(e) {
2011
2011
  return Object(e) !== e;
2012
2012
  }
2013
- const Ts = /* @__PURE__ */ Object.getOwnPropertyNames(
2013
+ const Vs = /* @__PURE__ */ Object.getOwnPropertyNames(
2014
2014
  Object.prototype
2015
2015
  ).sort().join("\0");
2016
- function js(e) {
2016
+ function Ts(e) {
2017
2017
  const t = Object.getPrototypeOf(e);
2018
- return t === Object.prototype || t === null || Object.getOwnPropertyNames(t).sort().join("\0") === Ts;
2018
+ return t === Object.prototype || t === null || Object.getOwnPropertyNames(t).sort().join("\0") === Vs;
2019
2019
  }
2020
- function Ms(e) {
2020
+ function js(e) {
2021
2021
  return Object.prototype.toString.call(e).slice(8, -1);
2022
2022
  }
2023
- function Ls(e) {
2023
+ function Ms(e) {
2024
2024
  switch (e) {
2025
2025
  case '"':
2026
2026
  return '\\"';
@@ -2047,20 +2047,20 @@ function Ls(e) {
2047
2047
  return e < " " ? `\\u${e.charCodeAt(0).toString(16).padStart(4, "0")}` : "";
2048
2048
  }
2049
2049
  }
2050
- function be(e) {
2050
+ function _e(e) {
2051
2051
  let t = "", n = 0;
2052
2052
  const o = e.length;
2053
2053
  for (let r = 0; r < o; r += 1) {
2054
- const s = e[r], i = Ls(s);
2054
+ const s = e[r], i = Ms(s);
2055
2055
  i && (t += e.slice(n, r) + i, n = r + 1);
2056
2056
  }
2057
2057
  return `"${n === 0 ? e : t + e.slice(n)}"`;
2058
2058
  }
2059
2059
  const Ht = -1, lo = -2, co = -3, uo = -4, fo = -5, Ft = -6;
2060
2060
  function fn(e, t) {
2061
- return Rs(JSON.parse(e));
2061
+ return Ls(JSON.parse(e));
2062
2062
  }
2063
- function Rs(e, t) {
2063
+ function Ls(e, t) {
2064
2064
  if (typeof e == "number") return r(e, !0);
2065
2065
  if (!Array.isArray(e) || e.length === 0)
2066
2066
  throw new Error("Invalid input");
@@ -2162,7 +2162,7 @@ function pn(e, t) {
2162
2162
  if (dn(l))
2163
2163
  d = gt(l);
2164
2164
  else
2165
- switch (Ms(l)) {
2165
+ switch (js(l)) {
2166
2166
  case "Number":
2167
2167
  case "String":
2168
2168
  case "Boolean":
@@ -2176,7 +2176,7 @@ function pn(e, t) {
2176
2176
  break;
2177
2177
  case "RegExp":
2178
2178
  const { source: f, flags: g } = l;
2179
- d = g ? `["RegExp",${be(f)},"${g}"]` : `["RegExp",${be(f)}]`;
2179
+ d = g ? `["RegExp",${_e(f)},"${g}"]` : `["RegExp",${_e(f)}]`;
2180
2180
  break;
2181
2181
  case "Array":
2182
2182
  d = "[";
@@ -2199,7 +2199,7 @@ function pn(e, t) {
2199
2199
  d += "]";
2200
2200
  break;
2201
2201
  default:
2202
- if (!js(l))
2202
+ if (!Ts(l))
2203
2203
  throw new vt(
2204
2204
  "Cannot stringify arbitrary non-POJOs",
2205
2205
  s
@@ -2212,13 +2212,13 @@ function pn(e, t) {
2212
2212
  if (Object.getPrototypeOf(l) === null) {
2213
2213
  d = '["null"';
2214
2214
  for (const h in l)
2215
- s.push(`.${h}`), d += `,${be(h)},${a(l[h])}`, s.pop();
2215
+ s.push(`.${h}`), d += `,${_e(h)},${a(l[h])}`, s.pop();
2216
2216
  d += "]";
2217
2217
  } else {
2218
2218
  d = "{";
2219
2219
  let h = !1;
2220
2220
  for (const w in l)
2221
- h && (d += ","), h = !0, s.push(`.${w}`), d += `${be(w)}:${a(l[w])}`, s.pop();
2221
+ h && (d += ","), h = !0, s.push(`.${w}`), d += `${_e(w)}:${a(l[w])}`, s.pop();
2222
2222
  d += "}";
2223
2223
  }
2224
2224
  }
@@ -2229,9 +2229,9 @@ function pn(e, t) {
2229
2229
  }
2230
2230
  function gt(e) {
2231
2231
  const t = typeof e;
2232
- return t === "string" ? be(e) : e instanceof String ? be(e.toString()) : e === void 0 ? Ht.toString() : e === 0 && 1 / e < 0 ? Ft.toString() : t === "bigint" ? `["BigInt","${e}"]` : String(e);
2232
+ return t === "string" ? _e(e) : e instanceof String ? _e(e.toString()) : e === void 0 ? Ht.toString() : e === 0 && 1 / e < 0 ? Ft.toString() : t === "bigint" ? `["BigInt","${e}"]` : String(e);
2233
2233
  }
2234
- function Bs(e, t, { initialize: n, type: o }) {
2234
+ function Rs(e, t, { initialize: n, type: o }) {
2235
2235
  let r = `${t.$id}-${e.toString()}`, s = new Wt(r, { type: o }), i = !1, a = 0;
2236
2236
  D(() => t[e], (u) => {
2237
2237
  i || (a = Date.now(), s.postMessage({ timestamp: a, state: fn(pn(u)) })), i = !1;
@@ -2245,22 +2245,22 @@ function Bs(e, t, { initialize: n, type: o }) {
2245
2245
  let c = () => s.postMessage(void 0), l = () => s.close();
2246
2246
  return n && c(), { sync: c, unshare: l };
2247
2247
  }
2248
- var Us = (e, t) => Object.keys(t).includes(e), Ws = ({ initialize: e = !0, enable: t = !0, type: n }) => ({ store: o, options: r }) => {
2248
+ var Bs = (e, t) => Object.keys(t).includes(e), Us = ({ initialize: e = !0, enable: t = !0, type: n }) => ({ store: o, options: r }) => {
2249
2249
  var s, i;
2250
2250
  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) ?? [];
2251
2251
  !a || Object.keys(o.$state).forEach((l) => {
2252
2252
  var u;
2253
- c.includes(l) || !Us(l, o.$state) || Bs(l, o, { initialize: ((u = r == null ? void 0 : r.share) == null ? void 0 : u.initialize) ?? e, type: n });
2253
+ c.includes(l) || !Bs(l, o.$state) || Rs(l, o, { initialize: ((u = r == null ? void 0 : r.share) == null ? void 0 : u.initialize) ?? e, type: n });
2254
2254
  });
2255
2255
  };
2256
- const Hs = Nr();
2257
- Hs.use(
2258
- Ws({
2256
+ const Ws = Or();
2257
+ Ws.use(
2258
+ Us({
2259
2259
  enable: !0,
2260
2260
  initialize: !0
2261
2261
  })
2262
2262
  );
2263
- const Fs = /* @__PURE__ */ Y({
2263
+ const Hs = /* @__PURE__ */ Y({
2264
2264
  __name: "Doctype",
2265
2265
  setup(e) {
2266
2266
  const { stonecrop: t, isReady: n } = Qn(), o = b([]);
@@ -2272,7 +2272,7 @@ const Fs = /* @__PURE__ */ Y({
2272
2272
  r[i].value = c;
2273
2273
  }), o.value = r;
2274
2274
  }
2275
- }), (r, s) => k(n) ? (x(), ue(k(er), {
2275
+ }), (r, s) => k(n) ? (x(), ue(k(Zo), {
2276
2276
  key: 0,
2277
2277
  class: "aform-main",
2278
2278
  modelValue: o.value,
@@ -2280,7 +2280,7 @@ const Fs = /* @__PURE__ */ Y({
2280
2280
  }, null, 8, ["modelValue"])) : K("", !0);
2281
2281
  }
2282
2282
  });
2283
- var zs = !1;
2283
+ var Fs = !1;
2284
2284
  function Ge(e, t, n) {
2285
2285
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
2286
2286
  }
@@ -2297,7 +2297,7 @@ function yt(e, t) {
2297
2297
  * @license MIT
2298
2298
  */
2299
2299
  let Ie;
2300
- const at = (e) => Ie = e, Js = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
2300
+ const at = (e) => Ie = e, zs = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
2301
2301
  /* istanbul ignore next */
2302
2302
  Symbol()
2303
2303
  );
@@ -2329,12 +2329,12 @@ function hn(e, t, n, o = ho) {
2329
2329
  };
2330
2330
  return !n && Re() && Be(r), r;
2331
2331
  }
2332
- function ye(e, ...t) {
2332
+ function we(e, ...t) {
2333
2333
  e.slice().forEach((n) => {
2334
2334
  n(...t);
2335
2335
  });
2336
2336
  }
2337
- const Gs = (e) => e(), mn = Symbol(), wt = Symbol();
2337
+ const Js = (e) => e(), mn = Symbol(), wt = Symbol();
2338
2338
  function St(e, t) {
2339
2339
  e instanceof Map && t instanceof Map ? t.forEach((n, o) => e.set(o, n)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
2340
2340
  for (const n in t) {
@@ -2345,12 +2345,12 @@ function St(e, t) {
2345
2345
  }
2346
2346
  return e;
2347
2347
  }
2348
- const Ys = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
2348
+ const Gs = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
2349
2349
  /* istanbul ignore next */
2350
2350
  Symbol()
2351
2351
  );
2352
- function Xs(e) {
2353
- return !ve(e) || !e.hasOwnProperty(Ys);
2352
+ function Ys(e) {
2353
+ return !ve(e) || !e.hasOwnProperty(Gs);
2354
2354
  }
2355
2355
  const { assign: B } = Object;
2356
2356
  function vn(e) {
@@ -2379,7 +2379,7 @@ function Ot(e, t, n = {}, o, r, s) {
2379
2379
  if (process.env.NODE_ENV !== "production" && !o._e.active)
2380
2380
  throw new Error("Pinia destroyed");
2381
2381
  const c = { deep: !0 };
2382
- process.env.NODE_ENV !== "production" && !zs && (c.onTrigger = (p) => {
2382
+ process.env.NODE_ENV !== "production" && !Fs && (c.onTrigger = (p) => {
2383
2383
  l ? g = p : l == !1 && !m._hotUpdating && (Array.isArray(g) ? g.push(p) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
2384
2384
  });
2385
2385
  let l, u, d = [], f = [], g;
@@ -2402,7 +2402,7 @@ function Ot(e, t, n = {}, o, r, s) {
2402
2402
  const $ = _ = Symbol();
2403
2403
  he().then(() => {
2404
2404
  _ === $ && (l = !0);
2405
- }), u = !0, ye(d, v, o.state.value[e]);
2405
+ }), u = !0, we(d, v, o.state.value[e]);
2406
2406
  }
2407
2407
  const N = s ? function() {
2408
2408
  const { state: v } = n, $ = v ? v() : {};
@@ -2430,7 +2430,7 @@ function Ot(e, t, n = {}, o, r, s) {
2430
2430
  function le(L) {
2431
2431
  Oe.push(L);
2432
2432
  }
2433
- ye(f, {
2433
+ we(f, {
2434
2434
  args: A,
2435
2435
  name: $[wt],
2436
2436
  store: m,
@@ -2441,9 +2441,9 @@ function Ot(e, t, n = {}, o, r, s) {
2441
2441
  try {
2442
2442
  V = p.apply(this && this.$id === e ? this : m, A);
2443
2443
  } catch (L) {
2444
- throw ye(Oe, L), L;
2444
+ throw we(Oe, L), L;
2445
2445
  }
2446
- return V instanceof Promise ? V.then((L) => (ye(X, L), L)).catch((L) => (ye(Oe, L), Promise.reject(L))) : (ye(X, V), V);
2446
+ return V instanceof Promise ? V.then((L) => (we(X, L), L)).catch((L) => (we(Oe, L), Promise.reject(L))) : (we(X, V), V);
2447
2447
  };
2448
2448
  return $[mn] = !0, $[wt] = v, $;
2449
2449
  }, C = /* @__PURE__ */ W({
@@ -2480,11 +2480,11 @@ function Ot(e, t, n = {}, o, r, s) {
2480
2480
  // setupStore
2481
2481
  ) : ne);
2482
2482
  o._s.set(e, m);
2483
- const y = (o._a && o._a.runWithContext || Gs)(() => o._e.run(() => (i = At()).run(() => t({ action: M }))));
2483
+ const y = (o._a && o._a.runWithContext || Js)(() => o._e.run(() => (i = At()).run(() => t({ action: M }))));
2484
2484
  for (const p in y) {
2485
2485
  const v = y[p];
2486
2486
  if (G(v) && !vn(v) || Se(v))
2487
- process.env.NODE_ENV !== "production" && r ? Ge(w.value, p, ae(y, p)) : s || (h && Xs(v) && (G(v) ? v.value = h[p] : St(v, h[p])), o.state.value[e][p] = v), process.env.NODE_ENV !== "production" && C.state.push(p);
2487
+ process.env.NODE_ENV !== "production" && r ? Ge(w.value, p, ae(y, p)) : s || (h && Ys(v) && (G(v) ? v.value = h[p] : St(v, h[p])), o.state.value[e][p] = v), process.env.NODE_ENV !== "production" && C.state.push(p);
2488
2488
  else if (typeof v == "function") {
2489
2489
  const $ = process.env.NODE_ENV !== "production" && r ? v : M(v, p);
2490
2490
  y[p] = $, process.env.NODE_ENV !== "production" && (C.actions[p] = v), a.actions[p] = v;
@@ -2494,7 +2494,7 @@ function Ot(e, t, n = {}, o, r, s) {
2494
2494
  ) : v, Ce && (y._getters || // @ts-expect-error: same
2495
2495
  (y._getters = W([]))).push(p));
2496
2496
  }
2497
- if (B(m, y), B(Ee(m), y), Object.defineProperty(m, "$state", {
2497
+ if (B(m, y), B($e(m), y), Object.defineProperty(m, "$state", {
2498
2498
  get: () => process.env.NODE_ENV !== "production" && r ? w.value : o.state.value[e],
2499
2499
  set: (p) => {
2500
2500
  if (process.env.NODE_ENV !== "production" && r)
@@ -2564,7 +2564,7 @@ Found in store "${m.$id}".`), h && s && n.hydrate && n.hydrate(m.$state, h), l =
2564
2564
  }
2565
2565
  /*! #__NO_SIDE_EFFECTS__ */
2566
2566
  // @__NO_SIDE_EFFECTS__
2567
- function Qs(e, t, n) {
2567
+ function Xs(e, t, n) {
2568
2568
  let o, r;
2569
2569
  const s = typeof t == "function";
2570
2570
  if (typeof e == "string")
@@ -2575,7 +2575,7 @@ function Qs(e, t, n) {
2575
2575
  const l = Nn();
2576
2576
  if (a = // in test mode, ignore the argument provided as we can always retrieve a
2577
2577
  // pinia instance with getActivePinia()
2578
- (process.env.NODE_ENV === "test" && Ie && Ie._testing ? null : a) || (l ? Vt(Js, null) : null), a && at(a), process.env.NODE_ENV !== "production" && !Ie)
2578
+ (process.env.NODE_ENV === "test" && Ie && Ie._testing ? null : a) || (l ? Vt(zs, null) : null), a && at(a), process.env.NODE_ENV !== "production" && !Ie)
2579
2579
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
2580
2580
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
2581
2581
  This will fail in production.`);
@@ -2603,10 +2603,10 @@ function mo(e) {
2603
2603
  function zt(e) {
2604
2604
  return typeof e == "function" ? e() : k(e);
2605
2605
  }
2606
- const qs = typeof window < "u" && typeof document < "u";
2606
+ const Qs = typeof window < "u" && typeof document < "u";
2607
2607
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
2608
- const Ks = (e) => e != null, Zs = Object.prototype.toString, ea = (e) => Zs.call(e) === "[object Object]", ta = () => {
2609
- }, He = qs ? window : void 0;
2608
+ const qs = (e) => e != null, Ks = Object.prototype.toString, Zs = (e) => Ks.call(e) === "[object Object]", ea = () => {
2609
+ }, He = Qs ? window : void 0;
2610
2610
  function Me(e) {
2611
2611
  var t;
2612
2612
  const n = zt(e);
@@ -2615,7 +2615,7 @@ function Me(e) {
2615
2615
  function Le(...e) {
2616
2616
  let t, n, o, r;
2617
2617
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = He) : [t, n, o, r] = e, !t)
2618
- return ta;
2618
+ return ea;
2619
2619
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
2620
2620
  const s = [], i = () => {
2621
2621
  s.forEach((u) => u()), s.length = 0;
@@ -2624,7 +2624,7 @@ function Le(...e) {
2624
2624
  ([u, d]) => {
2625
2625
  if (i(), !u)
2626
2626
  return;
2627
- const f = ea(d) ? { ...d } : d;
2627
+ const f = Zs(d) ? { ...d } : d;
2628
2628
  s.push(
2629
2629
  ...n.flatMap((g) => o.map((h) => a(u, g, h, f)))
2630
2630
  );
@@ -2635,23 +2635,23 @@ function Le(...e) {
2635
2635
  };
2636
2636
  return mo(l), l;
2637
2637
  }
2638
- function na() {
2638
+ function ta() {
2639
2639
  const e = b(!1), t = Ue();
2640
- return t && xe(() => {
2640
+ return t && ge(() => {
2641
2641
  e.value = !0;
2642
2642
  }, t), e;
2643
2643
  }
2644
- function oa(e) {
2645
- const t = na();
2644
+ function na(e) {
2645
+ const t = ta();
2646
2646
  return P(() => (t.value, !!e()));
2647
2647
  }
2648
- function ra(e, t, n = {}) {
2648
+ function oa(e, t, n = {}) {
2649
2649
  const { window: o = He, ...r } = n;
2650
2650
  let s;
2651
- const i = oa(() => o && "MutationObserver" in o), a = () => {
2651
+ const i = na(() => o && "MutationObserver" in o), a = () => {
2652
2652
  s && (s.disconnect(), s = void 0);
2653
2653
  }, c = P(() => {
2654
- const f = zt(e), g = (Array.isArray(f) ? f : [f]).map(Me).filter(Ks);
2654
+ const f = zt(e), g = (Array.isArray(f) ? f : [f]).map(Me).filter(qs);
2655
2655
  return new Set(g);
2656
2656
  }), l = D(
2657
2657
  () => c.value,
@@ -2668,7 +2668,7 @@ function ra(e, t, n = {}) {
2668
2668
  takeRecords: u
2669
2669
  };
2670
2670
  }
2671
- function sa(e = {}) {
2671
+ function ra(e = {}) {
2672
2672
  var t;
2673
2673
  const {
2674
2674
  window: n = He,
@@ -2686,7 +2686,7 @@ function sa(e = {}) {
2686
2686
  };
2687
2687
  return n && (Le(n, "blur", (l) => {
2688
2688
  l.relatedTarget === null && c();
2689
- }, !0), Le(n, "focus", c, !0)), r && ra(s, (l) => {
2689
+ }, !0), Le(n, "focus", c, !0)), r && oa(s, (l) => {
2690
2690
  l.filter((u) => u.removedNodes.length).map((u) => Array.from(u.removedNodes)).flat().forEach((u) => {
2691
2691
  u === a.value && c();
2692
2692
  });
@@ -2695,12 +2695,12 @@ function sa(e = {}) {
2695
2695
  subtree: !0
2696
2696
  }), c(), a;
2697
2697
  }
2698
- const aa = "focusin", ia = "focusout";
2699
- function la(e, t = {}) {
2700
- const { window: n = He } = t, o = P(() => Me(e)), r = b(!1), s = P(() => r.value), i = sa(t);
2701
- return !n || !i.value ? { focused: s } : (Le(o, aa, () => r.value = !0), Le(o, ia, () => r.value = !1), { focused: s });
2698
+ const sa = "focusin", aa = "focusout";
2699
+ function ia(e, t = {}) {
2700
+ const { window: n = He } = t, o = P(() => Me(e)), r = b(!1), s = P(() => r.value), i = ra(t);
2701
+ return !n || !i.value ? { focused: s } : (Le(o, sa, () => r.value = !0), Le(o, aa, () => r.value = !1), { focused: s });
2702
2702
  }
2703
- function ca(e, { window: t = He, scrollTarget: n } = {}) {
2703
+ function la(e, { window: t = He, scrollTarget: n } = {}) {
2704
2704
  const o = b(!1), r = () => {
2705
2705
  if (!t) return;
2706
2706
  const s = t.document, i = Me(e);
@@ -2721,7 +2721,7 @@ function ca(e, { window: t = He, scrollTarget: n } = {}) {
2721
2721
  }), o;
2722
2722
  }
2723
2723
  const ee = (e) => {
2724
- let t = ca(e).value;
2724
+ let t = la(e).value;
2725
2725
  return t = t && e.offsetHeight > 0, t;
2726
2726
  }, te = (e) => e.tabIndex >= 0, yn = (e) => {
2727
2727
  const t = e.target;
@@ -2740,7 +2740,7 @@ const ee = (e) => {
2740
2740
  o && (n = o);
2741
2741
  }
2742
2742
  return n && (!te(n) || !ee(n)) ? Jt(n) : n;
2743
- }, ua = (e) => {
2743
+ }, ca = (e) => {
2744
2744
  var t;
2745
2745
  const n = e.target;
2746
2746
  let o;
@@ -2775,7 +2775,7 @@ const ee = (e) => {
2775
2775
  o && (n = o);
2776
2776
  }
2777
2777
  return n && (!te(n) || !ee(n)) ? Gt(n) : n;
2778
- }, da = (e) => {
2778
+ }, ua = (e) => {
2779
2779
  var t;
2780
2780
  const n = e.target;
2781
2781
  let o;
@@ -2825,7 +2825,7 @@ const ee = (e) => {
2825
2825
  }, $n = (e) => {
2826
2826
  const t = e.target.parentElement, n = t == null ? void 0 : t.lastElementChild;
2827
2827
  return n && (!te(n) || !ee(n)) ? Yt(n) : n;
2828
- }, Ye = ["alt", "control", "shift", "meta"], fa = {
2828
+ }, Ye = ["alt", "control", "shift", "meta"], da = {
2829
2829
  ArrowUp: "up",
2830
2830
  ArrowDown: "down",
2831
2831
  ArrowLeft: "left",
@@ -2848,11 +2848,11 @@ const ee = (e) => {
2848
2848
  e.preventDefault(), e.stopPropagation(), t && t.focus();
2849
2849
  },
2850
2850
  "keydown.control.up": (e) => {
2851
- const t = ua(e);
2851
+ const t = ca(e);
2852
2852
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
2853
2853
  },
2854
2854
  "keydown.control.down": (e) => {
2855
- const t = da(e);
2855
+ const t = ua(e);
2856
2856
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
2857
2857
  },
2858
2858
  "keydown.control.left": (e) => {
@@ -2921,7 +2921,7 @@ function vo(e) {
2921
2921
  let c = [];
2922
2922
  return i.selectors ? c = n(i) : a && (c = Array.from(a.children).filter((l) => te(l) && ee(l))), c;
2923
2923
  }, r = (i) => (a) => {
2924
- const c = fa[a.key] || a.key.toLowerCase();
2924
+ const c = da[a.key] || a.key.toLowerCase();
2925
2925
  if (Ye.includes(c)) return;
2926
2926
  const l = i.handlers || Qt;
2927
2927
  for (const u of Object.keys(l)) {
@@ -2944,17 +2944,17 @@ function vo(e) {
2944
2944
  }
2945
2945
  }
2946
2946
  }, s = [];
2947
- xe(() => {
2947
+ ge(() => {
2948
2948
  for (const i of e) {
2949
2949
  const a = t(i), c = o(i), l = r(i), u = a ? [a] : c;
2950
2950
  for (const d of u) {
2951
- const { focused: f } = la(b(d)), g = D(f, (h) => {
2951
+ const { focused: f } = ia(b(d)), g = D(f, (h) => {
2952
2952
  h ? d.addEventListener("keydown", l) : d.removeEventListener("keydown", l);
2953
2953
  });
2954
2954
  s.push(g);
2955
2955
  }
2956
2956
  }
2957
- }), ko(() => {
2957
+ }), $o(() => {
2958
2958
  for (const i of s)
2959
2959
  i();
2960
2960
  });
@@ -2967,26 +2967,26 @@ function H(e) {
2967
2967
  }
2968
2968
  const qt = typeof window < "u" && typeof document < "u";
2969
2969
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
2970
- const pa = (e) => e != null, ha = Object.prototype.toString, go = (e) => ha.call(e) === "[object Object]", _e = () => {
2971
- }, Nt = /* @__PURE__ */ ma();
2972
- function ma() {
2970
+ const fa = (e) => e != null, pa = Object.prototype.toString, go = (e) => pa.call(e) === "[object Object]", Ee = () => {
2971
+ }, Nt = /* @__PURE__ */ ha();
2972
+ function ha() {
2973
2973
  var e, t;
2974
2974
  return qt && ((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));
2975
2975
  }
2976
- function va(e) {
2976
+ function ma(e) {
2977
2977
  return Ue();
2978
2978
  }
2979
- function ga(...e) {
2979
+ function va(...e) {
2980
2980
  if (e.length !== 1)
2981
2981
  return ae(...e);
2982
2982
  const t = e[0];
2983
- return typeof t == "function" ? Sn(On(() => ({ get: t, set: _e }))) : b(t);
2983
+ return typeof t == "function" ? Sn(On(() => ({ get: t, set: Ee }))) : b(t);
2984
2984
  }
2985
- function ya(e, t = !0, n) {
2986
- va() ? xe(e, n) : t ? e() : he(e);
2985
+ function ga(e, t = !0, n) {
2986
+ ma() ? ge(e, n) : t ? e() : he(e);
2987
2987
  }
2988
2988
  const ct = qt ? window : void 0;
2989
- function ke(e) {
2989
+ function xe(e) {
2990
2990
  var t;
2991
2991
  const n = H(e);
2992
2992
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
@@ -2994,12 +2994,12 @@ function ke(e) {
2994
2994
  function Pt(...e) {
2995
2995
  let t, n, o, r;
2996
2996
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = ct) : [t, n, o, r] = e, !t)
2997
- return _e;
2997
+ return Ee;
2998
2998
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
2999
2999
  const s = [], i = () => {
3000
3000
  s.forEach((u) => u()), s.length = 0;
3001
3001
  }, a = (u, d, f, g) => (u.addEventListener(d, f, g), () => u.removeEventListener(d, f, g)), c = D(
3002
- () => [ke(t), H(r)],
3002
+ () => [xe(t), H(r)],
3003
3003
  ([u, d]) => {
3004
3004
  if (i(), !u)
3005
3005
  return;
@@ -3014,14 +3014,14 @@ function Pt(...e) {
3014
3014
  };
3015
3015
  return Fe(l), l;
3016
3016
  }
3017
- function wa() {
3017
+ function ya() {
3018
3018
  const e = b(!1), t = Ue();
3019
- return t && xe(() => {
3019
+ return t && ge(() => {
3020
3020
  e.value = !0;
3021
3021
  }, t), e;
3022
3022
  }
3023
3023
  function yo(e) {
3024
- const t = wa();
3024
+ const t = ya();
3025
3025
  return P(() => (t.value, !!e()));
3026
3026
  }
3027
3027
  function wo(e, t, n = {}) {
@@ -3030,7 +3030,7 @@ function wo(e, t, n = {}) {
3030
3030
  const i = yo(() => o && "MutationObserver" in o), a = () => {
3031
3031
  s && (s.disconnect(), s = void 0);
3032
3032
  }, c = P(() => {
3033
- const f = H(e), g = (Array.isArray(f) ? f : [f]).map(ke).filter(pa);
3033
+ const f = H(e), g = (Array.isArray(f) ? f : [f]).map(xe).filter(fa);
3034
3034
  return new Set(g);
3035
3035
  }), l = D(
3036
3036
  () => c.value,
@@ -3047,14 +3047,14 @@ function wo(e, t, n = {}) {
3047
3047
  takeRecords: u
3048
3048
  };
3049
3049
  }
3050
- function ba(e, t, n = {}) {
3050
+ function wa(e, t, n = {}) {
3051
3051
  const { window: o = ct, ...r } = n;
3052
3052
  let s;
3053
3053
  const i = yo(() => o && "ResizeObserver" in o), a = () => {
3054
3054
  s && (s.disconnect(), s = void 0);
3055
3055
  }, c = P(() => {
3056
3056
  const d = H(e);
3057
- return Array.isArray(d) ? d.map((f) => ke(f)) : [ke(d)];
3057
+ return Array.isArray(d) ? d.map((f) => xe(f)) : [xe(d)];
3058
3058
  }), l = D(
3059
3059
  c,
3060
3060
  (d) => {
@@ -3082,7 +3082,7 @@ function bo(e, t = {}) {
3082
3082
  updateTiming: i = "sync"
3083
3083
  } = t, a = b(0), c = b(0), l = b(0), u = b(0), d = b(0), f = b(0), g = b(0), h = b(0);
3084
3084
  function w() {
3085
- const S = ke(e);
3085
+ const S = xe(e);
3086
3086
  if (!S) {
3087
3087
  n && (a.value = 0, c.value = 0, l.value = 0, u.value = 0, d.value = 0, f.value = 0, g.value = 0, h.value = 0);
3088
3088
  return;
@@ -3093,9 +3093,9 @@ function bo(e, t = {}) {
3093
3093
  function _() {
3094
3094
  i === "sync" ? w() : i === "next-frame" && requestAnimationFrame(() => w());
3095
3095
  }
3096
- return ba(e, _), D(() => ke(e), (S) => !S && _()), wo(e, _, {
3096
+ return wa(e, _), D(() => xe(e), (S) => !S && _()), wo(e, _, {
3097
3097
  attributeFilter: ["style", "class"]
3098
- }), r && Pt("scroll", _, { capture: !0, passive: !0 }), o && Pt("resize", _, { passive: !0 }), ya(() => {
3098
+ }), r && Pt("scroll", _, { capture: !0, passive: !0 }), o && Pt("resize", _, { passive: !0 }), ga(() => {
3099
3099
  s && _();
3100
3100
  }), {
3101
3101
  height: a,
@@ -3109,7 +3109,7 @@ function bo(e, t = {}) {
3109
3109
  update: _
3110
3110
  };
3111
3111
  }
3112
- function _a(e = {}) {
3112
+ function ba(e = {}) {
3113
3113
  const { window: t = ct, behavior: n = "auto" } = e;
3114
3114
  if (!t)
3115
3115
  return {
@@ -3143,10 +3143,10 @@ function _a(e = {}) {
3143
3143
  }
3144
3144
  ), { x: s, y: i };
3145
3145
  }
3146
- const Ea = (e) => {
3146
+ const _a = (e) => {
3147
3147
  const t = new DOMParser().parseFromString(e, "text/html");
3148
3148
  return Array.from(t.body.childNodes).some((n) => n.nodeType === 1);
3149
- }, $a = (e = 8) => Array.from({ length: e }, () => Math.floor(Math.random() * 16).toString(16)).join(""), ka = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"], xa = ["innerHTML"], Sa = { key: 2 }, Oa = /* @__PURE__ */ Y({
3149
+ }, Ea = (e = 8) => Array.from({ length: e }, () => Math.floor(Math.random() * 16).toString(16)).join(""), $a = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"], ka = ["innerHTML"], xa = { key: 2 }, Sa = /* @__PURE__ */ Y({
3150
3150
  __name: "ACell",
3151
3151
  props: {
3152
3152
  colIndex: {},
@@ -3158,7 +3158,7 @@ const Ea = (e) => {
3158
3158
  },
3159
3159
  emits: ["cellInput"],
3160
3160
  setup(e, { emit: t }) {
3161
- const n = t, o = We("cell"), r = e.store.getCellData(e.colIndex, e.rowIndex), s = b(""), i = b(!1), a = e.store.columns[e.colIndex], c = e.store.rows[e.rowIndex], l = a.align || "center", u = a.width || "40ch", d = P(() => e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), f = P(() => typeof d.value == "string" ? Ea(d.value) : !1), g = P(() => {
3161
+ const n = t, o = We("cell"), r = e.store.getCellData(e.colIndex, e.rowIndex), s = b(""), i = b(!1), a = e.store.columns[e.colIndex], c = e.store.rows[e.rowIndex], l = a.align || "center", u = a.width || "40ch", d = P(() => e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), f = P(() => typeof d.value == "string" ? _a(d.value) : !1), g = P(() => {
3162
3162
  var S;
3163
3163
  return {
3164
3164
  textAlign: l,
@@ -3219,10 +3219,10 @@ const Ea = (e) => {
3219
3219
  }, k(a).cellComponentProps), null, 16, ["value"])) : f.value ? (x(), O("span", {
3220
3220
  key: 1,
3221
3221
  innerHTML: d.value
3222
- }, null, 8, xa)) : (x(), O("span", Sa, q(d.value), 1))
3223
- ], 46, ka));
3222
+ }, null, 8, ka)) : (x(), O("span", xa, q(d.value), 1))
3223
+ ], 46, $a));
3224
3224
  }
3225
- }), Na = ["tabindex"], Pa = /* @__PURE__ */ Y({
3225
+ }), Oa = ["tabindex"], Na = /* @__PURE__ */ Y({
3226
3226
  __name: "ARow",
3227
3227
  props: {
3228
3228
  rowIndex: {},
@@ -3262,7 +3262,7 @@ const Ea = (e) => {
3262
3262
  }, q(o.value), 3)) : K("", !0)
3263
3263
  ]) : K("", !0),
3264
3264
  oe(r.$slots, "default")
3265
- ], 8, Na)), [
3265
+ ], 8, Oa)), [
3266
3266
  [It, n.value]
3267
3267
  ]);
3268
3268
  }
@@ -3275,7 +3275,7 @@ function De(e) {
3275
3275
  function tt(...e) {
3276
3276
  let t, n, o, r;
3277
3277
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = _o) : [t, n, o, r] = e, !t)
3278
- return _e;
3278
+ return Ee;
3279
3279
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
3280
3280
  const s = [], i = () => {
3281
3281
  s.forEach((u) => u()), s.length = 0;
@@ -3299,8 +3299,8 @@ let kn = !1;
3299
3299
  function xn(e, t, n = {}) {
3300
3300
  const { window: o = _o, ignore: r = [], capture: s = !0, detectIframe: i = !1 } = n;
3301
3301
  if (!o)
3302
- return _e;
3303
- Nt && !kn && (kn = !0, Array.from(o.document.body.children).forEach((h) => h.addEventListener("click", _e)), o.document.documentElement.addEventListener("click", _e));
3302
+ return Ee;
3303
+ Nt && !kn && (kn = !0, Array.from(o.document.body.children).forEach((h) => h.addEventListener("click", Ee)), o.document.documentElement.addEventListener("click", Ee));
3304
3304
  let a = !0;
3305
3305
  const c = (h) => H(r).some((w) => {
3306
3306
  if (typeof w == "string")
@@ -3349,7 +3349,7 @@ function xn(e, t, n = {}) {
3349
3349
  ].filter(Boolean);
3350
3350
  return () => g.forEach((h) => h());
3351
3351
  }
3352
- const Ia = {
3352
+ const Pa = {
3353
3353
  mounted(e, t) {
3354
3354
  const n = !t.modifiers.bubble;
3355
3355
  if (typeof t.value == "function")
@@ -3375,15 +3375,15 @@ function Eo(e) {
3375
3375
  return !n || n.tagName === "BODY" ? !1 : Eo(n);
3376
3376
  }
3377
3377
  }
3378
- function Ca(e) {
3378
+ function Ia(e) {
3379
3379
  const t = e || window.event, n = t.target;
3380
3380
  return Eo(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
3381
3381
  }
3382
3382
  const _t = /* @__PURE__ */ new WeakMap();
3383
- function Da(e, t = !1) {
3383
+ function Ca(e, t = !1) {
3384
3384
  const n = b(t);
3385
3385
  let o = null, r = "";
3386
- D(ga(e), (a) => {
3386
+ D(va(e), (a) => {
3387
3387
  const c = bt(H(a));
3388
3388
  if (c) {
3389
3389
  const l = c;
@@ -3401,7 +3401,7 @@ function Da(e, t = !1) {
3401
3401
  a,
3402
3402
  "touchmove",
3403
3403
  (c) => {
3404
- Ca(c);
3404
+ Ia(c);
3405
3405
  },
3406
3406
  { passive: !1 }
3407
3407
  )), a.style.overflow = "hidden", n.value = !0);
@@ -3418,33 +3418,33 @@ function Da(e, t = !1) {
3418
3418
  }
3419
3419
  });
3420
3420
  }
3421
- function Aa() {
3421
+ function Da() {
3422
3422
  let e = !1;
3423
3423
  const t = b(!1);
3424
3424
  return (n, o) => {
3425
3425
  if (t.value = o.value, e)
3426
3426
  return;
3427
3427
  e = !0;
3428
- const r = Da(n, o.value);
3428
+ const r = Ca(n, o.value);
3429
3429
  D(t, (s) => r.value = s);
3430
3430
  };
3431
3431
  }
3432
- Aa();
3433
- const Va = {
3432
+ Da();
3433
+ const Aa = {
3434
3434
  key: 0,
3435
3435
  id: "resizable"
3436
- }, Ta = {
3436
+ }, Va = {
3437
3437
  class: "atable-header-row",
3438
3438
  tabindex: "-1"
3439
- }, ja = /* @__PURE__ */ Y({
3439
+ }, Ta = /* @__PURE__ */ Y({
3440
3440
  __name: "ATableHeader",
3441
3441
  props: {
3442
3442
  columns: {},
3443
3443
  store: {}
3444
3444
  },
3445
3445
  setup(e) {
3446
- return (t, n) => t.columns.length ? (x(), O("thead", Va, [
3447
- I("tr", Ta, [
3446
+ return (t, n) => t.columns.length ? (x(), O("thead", Aa, [
3447
+ I("tr", Va, [
3448
3448
  t.store.zeroColumn ? (x(), O("th", {
3449
3449
  key: 0,
3450
3450
  id: "header-index",
@@ -3467,13 +3467,13 @@ const Va = {
3467
3467
  ])
3468
3468
  ])) : K("", !0);
3469
3469
  }
3470
- }), Ma = /* @__PURE__ */ Y({
3470
+ }), ja = /* @__PURE__ */ Y({
3471
3471
  __name: "ATableModal",
3472
3472
  props: {
3473
3473
  store: {}
3474
3474
  },
3475
3475
  setup(e) {
3476
- const t = We("amodal"), { width: n, height: o } = bo(t), { y: r } = _a(), s = P(() => {
3476
+ const t = We("amodal"), { width: n, height: o } = bo(t), { y: r } = ba(), s = P(() => {
3477
3477
  if (!(e.store.modal.height && e.store.modal.width && e.store.modal.left && e.store.modal.bottom)) return;
3478
3478
  const a = document.body, c = document.documentElement, l = Math.max(
3479
3479
  a.scrollHeight,
@@ -3500,9 +3500,9 @@ const Va = {
3500
3500
  oe(a.$slots, "default")
3501
3501
  ], 36));
3502
3502
  }
3503
- }), La = (e) => {
3504
- const t = e.id || $a();
3505
- return (/* @__PURE__ */ Qs(`table-${t}`, () => {
3503
+ }), Ma = (e) => {
3504
+ const t = e.id || Ea();
3505
+ return (/* @__PURE__ */ Xs(`table-${t}`, () => {
3506
3506
  const n = () => {
3507
3507
  const m = {};
3508
3508
  for (const [E, y] of r.value.entries())
@@ -3583,7 +3583,7 @@ const Va = {
3583
3583
  toggleRowExpand: M
3584
3584
  };
3585
3585
  }))();
3586
- }, Ra = /* @__PURE__ */ Y({
3586
+ }, La = /* @__PURE__ */ Y({
3587
3587
  __name: "ATable",
3588
3588
  props: {
3589
3589
  id: {},
@@ -3594,7 +3594,7 @@ const Va = {
3594
3594
  },
3595
3595
  emits: ["update:modelValue", "cellUpdate"],
3596
3596
  setup(e, { expose: t, emit: n }) {
3597
- const o = n, r = We("table"), s = e.modelValue ? e.modelValue : e.rows, i = La({ columns: e.columns, rows: s, id: e.id, config: e.config });
3597
+ const o = n, r = We("table"), s = e.modelValue ? e.modelValue : e.rows, i = Ma({ columns: e.columns, rows: s, id: e.id, config: e.config });
3598
3598
  i.$onAction(({ name: l, store: u, args: d, after: f }) => {
3599
3599
  if (l === "setCellData") {
3600
3600
  const [g, h, w] = d, _ = u.getCellData(g, h);
@@ -3608,7 +3608,7 @@ const Va = {
3608
3608
  o("update:modelValue", l);
3609
3609
  },
3610
3610
  { deep: !0 }
3611
- ), xe(() => {
3611
+ ), ge(() => {
3612
3612
  e.columns.some((l) => l.pinned) && (c(), i.config.view === "tree" && wo(r, c, { childList: !0, subtree: !0 }));
3613
3613
  });
3614
3614
  const a = (l, u, d, f) => {
@@ -3641,21 +3641,21 @@ const Va = {
3641
3641
  style: z({ width: k(i).config.fullWidth ? "100%" : "auto" })
3642
3642
  }, [
3643
3643
  oe(l.$slots, "header", { data: k(i) }, () => [
3644
- ot(ja, {
3644
+ ot(Ta, {
3645
3645
  columns: k(i).columns,
3646
3646
  store: k(i)
3647
3647
  }, null, 8, ["columns", "store"])
3648
3648
  ], !0),
3649
3649
  I("tbody", null, [
3650
3650
  oe(l.$slots, "body", { data: k(i) }, () => [
3651
- (x(!0), O(fe, null, pe(k(i).rows, (d, f) => (x(), ue(Pa, {
3651
+ (x(!0), O(fe, null, pe(k(i).rows, (d, f) => (x(), ue(Na, {
3652
3652
  key: d.id,
3653
3653
  row: d,
3654
3654
  rowIndex: f,
3655
3655
  store: k(i)
3656
3656
  }, {
3657
3657
  default: rt(() => [
3658
- (x(!0), O(fe, null, pe(k(i).columns, (g, h) => (x(), ue(Oa, {
3658
+ (x(!0), O(fe, null, pe(k(i).columns, (g, h) => (x(), ue(Sa, {
3659
3659
  key: g.name,
3660
3660
  store: k(i),
3661
3661
  col: g,
@@ -3678,7 +3678,7 @@ const Va = {
3678
3678
  ]),
3679
3679
  oe(l.$slots, "footer", { data: k(i) }, void 0, !0),
3680
3680
  oe(l.$slots, "modal", { data: k(i) }, () => [
3681
- Te(ot(Ma, { store: k(i) }, {
3681
+ Te(ot(ja, { store: k(i) }, {
3682
3682
  default: rt(() => [
3683
3683
  (x(), ue(Ct(k(i).modal.component), Dt({
3684
3684
  key: `${k(i).modal.rowIndex}:${k(i).modal.colIndex}`,
@@ -3693,26 +3693,26 @@ const Va = {
3693
3693
  ])
3694
3694
  ], !0)
3695
3695
  ], 4)), [
3696
- [k(Ia), k(i).closeModal]
3696
+ [k(Pa), k(i).closeModal]
3697
3697
  ]);
3698
3698
  }
3699
- }), Ba = (e, t) => {
3699
+ }), Ra = (e, t) => {
3700
3700
  const n = e.__vccOpts || e;
3701
3701
  for (const [o, r] of t)
3702
3702
  n[o] = r;
3703
3703
  return n;
3704
- }, Ua = /* @__PURE__ */ Ba(Ra, [["__scopeId", "data-v-bd5101d3"]]), Wa = /* @__PURE__ */ Y({
3704
+ }, Ba = /* @__PURE__ */ Ra(La, [["__scopeId", "data-v-bd5101d3"]]), Ua = /* @__PURE__ */ Y({
3705
3705
  __name: "Records",
3706
3706
  setup(e) {
3707
3707
  const { stonecrop: t, isReady: n } = Qn(), o = { view: "list" };
3708
- return (r, s) => k(n) ? (x(), ue(k(Ua), {
3708
+ return (r, s) => k(n) ? (x(), ue(k(Ba), {
3709
3709
  key: 0,
3710
3710
  columns: k(t).schema.schema.toArray(),
3711
3711
  rows: k(t).store.records,
3712
3712
  config: o
3713
3713
  }, null, 8, ["columns", "rows"])) : K("", !0);
3714
3714
  }
3715
- }), Ha = { class: "tabs" }, Fa = { tabindex: "0" }, za = {
3715
+ }), Wa = { class: "tabs" }, Ha = { tabindex: "0" }, Fa = {
3716
3716
  version: "1.1",
3717
3717
  id: "Capa_1",
3718
3718
  xmlns: "http://www.w3.org/2000/svg",
@@ -3722,7 +3722,7 @@ const Va = {
3722
3722
  viewBox: "0 0 424.098 424.098",
3723
3723
  style: { "enable-background": "new 0 0 424.098 424.098" },
3724
3724
  "xml:space": "preserve"
3725
- }, Ja = { tabindex: "0" }, Ga = { style: { width: "11pt" } }, Ya = /* @__PURE__ */ Y({
3725
+ }, za = { tabindex: "0" }, Ja = { style: { width: "11pt" } }, Ga = /* @__PURE__ */ Y({
3726
3726
  __name: "SheetNav",
3727
3727
  props: {
3728
3728
  breadcrumbs: { default: () => [] }
@@ -3741,15 +3741,15 @@ const Va = {
3741
3741
  }, u = () => {
3742
3742
  };
3743
3743
  return (d, f) => {
3744
- const g = xo("router-link");
3744
+ const g = ko("router-link");
3745
3745
  return x(), O("footer", null, [
3746
- I("ul", Ha, [
3746
+ I("ul", Wa, [
3747
3747
  I("li", {
3748
3748
  class: "hidebreadcrumbs",
3749
3749
  onClick: i,
3750
3750
  onKeydown: ze(i, ["enter"])
3751
3751
  }, [
3752
- I("a", Fa, [
3752
+ I("a", Ha, [
3753
3753
  I("div", {
3754
3754
  class: de(s.value)
3755
3755
  }, "×", 2)
@@ -3766,7 +3766,7 @@ const Va = {
3766
3766
  tabindex: "0"
3767
3767
  }, {
3768
3768
  default: rt(() => [
3769
- (x(), O("svg", za, f[5] || (f[5] = [
3769
+ (x(), O("svg", Fa, f[5] || (f[5] = [
3770
3770
  I("g", null, [
3771
3771
  I("path", {
3772
3772
  style: { fill: "#010002" },
@@ -3792,11 +3792,11 @@ const Va = {
3792
3792
  onKeydown: ze(a, ["enter"]),
3793
3793
  style: z({ display: t.value ? "block" : "none" })
3794
3794
  }, [
3795
- I("a", Ja, [
3795
+ I("a", za, [
3796
3796
  I("span", {
3797
3797
  style: z({ display: n.value ? "none" : "block" })
3798
3798
  }, [
3799
- (x(), O("svg", Ga, f[6] || (f[6] = [
3799
+ (x(), O("svg", Ja, f[6] || (f[6] = [
3800
3800
  I("g", { transform: "matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)" }, [
3801
3801
  I("path", {
3802
3802
  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",
@@ -3816,7 +3816,7 @@ const Va = {
3816
3816
  onKeydown: f[4] || (f[4] = ze((h) => l(h), ["enter"])),
3817
3817
  type: "text"
3818
3818
  }, null, 36), [
3819
- [So, o.value]
3819
+ [xo, o.value]
3820
3820
  ])
3821
3821
  ])
3822
3822
  ], 36),
@@ -3838,17 +3838,17 @@ const Va = {
3838
3838
  ]);
3839
3839
  };
3840
3840
  }
3841
- }), Xa = /* @__PURE__ */ Tt(Ya, [["__scopeId", "data-v-a650f215"]]), Ka = {
3841
+ }), Ya = /* @__PURE__ */ Tt(Ga, [["__scopeId", "data-v-a650f215"]]), qa = {
3842
3842
  install: (e) => {
3843
- e.component("ActionSet", Mo), e.component("CommandPalette", Bo), e.component("Doctype", Fs), e.component("Records", Wa), e.component("SheetNav", Xa);
3843
+ e.component("ActionSet", jo), e.component("CommandPalette", Ro), e.component("Doctype", Hs), e.component("Records", Ua), e.component("SheetNav", Ya);
3844
3844
  }
3845
3845
  };
3846
3846
  export {
3847
- Mo as ActionSet,
3848
- Bo as CommandPalette,
3849
- Fs as Doctype,
3850
- Wa as Records,
3851
- Xa as SheetNav,
3852
- Ka as StonecropDesktop
3847
+ jo as ActionSet,
3848
+ Ro as CommandPalette,
3849
+ Hs as Doctype,
3850
+ Ua as Records,
3851
+ Ya as SheetNav,
3852
+ qa as StonecropDesktop
3853
3853
  };
3854
3854
  //# sourceMappingURL=desktop.js.map