@stonecrop/desktop 0.3.2 → 0.3.3

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 ae, ref as C, onMounted as Qe, openBlock as A, createElementBlock as M, normalizeClass as Ve, createElementVNode as U, Fragment as Ae, renderList as Te, toDisplayString as ve, createCommentVNode as ge, withDirectives as lt, vShow as gn, computed as B, createBlock as Ie, resolveDynamicComponent as yn, mergeProps as wn, effectScope as bn, markRaw as re, inject as Oe, onBeforeMount as Hr, shallowRef as zr, toRaw as qe, unref as S, shallowReactive as qr, watch as J, nextTick as xe, hasInjectionContext as Ro, getCurrentInstance as Le, reactive as _n, h as jo, provide as Ht, isRef as de, isReactive as Xe, toRef as De, watchEffect as Gr, getCurrentScope as Tt, onScopeDispose as Rt, toRefs as Ct, useTemplateRef as jt, normalizeStyle as le, renderSlot as ke, createVNode as Pt, withCtx as It, readonly as Jr, customRef as Yr, createTextVNode as Lo, onBeforeUnmount as Kr, resolveComponent as Qr, withKeys as gt, vModelText as Xr } from "vue";
2
- const Zr = { class: "action-menu-icon" }, es = ["onclick"], ts = { key: 1 }, ns = ["onClick"], os = { class: "dropdown-container" }, rs = { class: "dropdown" }, ss = ["onclick"], as = ["href"], is = { class: "dropdown-item" }, cs = /* @__PURE__ */ ae({
1
+ import { defineComponent as ae, ref as C, onMounted as Ke, openBlock as A, createElementBlock as M, normalizeClass as Ve, createElementVNode as U, Fragment as Ae, renderList as Te, toDisplayString as ve, createCommentVNode as ge, withDirectives as lt, vShow as gn, computed as B, createBlock as Ie, resolveDynamicComponent as yn, mergeProps as wn, effectScope as bn, markRaw as re, inject as Oe, onBeforeMount as zr, shallowRef as qr, toRaw as qe, unref as S, shallowReactive as Gr, watch as J, nextTick as xe, hasInjectionContext as Ro, getCurrentInstance as Le, reactive as _n, h as jo, provide as Ft, isRef as de, isReactive as Xe, toRef as De, watchEffect as Jr, getCurrentScope as Rt, onScopeDispose as jt, toRefs as Pt, useTemplateRef as ht, normalizeStyle as le, renderSlot as ke, createVNode as It, withCtx as Dt, readonly as Yr, customRef as Qr, createTextVNode as Lo, onBeforeUnmount as Kr, resolveComponent as Xr, withKeys as yt, vModelText as Zr } from "vue";
2
+ const es = { class: "action-menu-icon" }, ts = ["onclick"], ns = { key: 1 }, os = ["onClick"], rs = { class: "dropdown-container" }, ss = { class: "dropdown" }, as = ["onclick"], is = ["href"], cs = { class: "dropdown-item" }, ls = /* @__PURE__ */ ae({
3
3
  __name: "ActionSet",
4
4
  props: {
5
5
  elements: {}
6
6
  },
7
7
  setup(e) {
8
8
  const t = C(e.elements), n = C(!1), o = C(null), r = C(!1), s = C(!1);
9
- Qe(() => {
9
+ Ke(() => {
10
10
  a();
11
11
  });
12
12
  const a = () => {
@@ -27,7 +27,7 @@ const Zr = { class: "action-menu-icon" }, es = ["onclick"], ts = { key: 1 }, ns
27
27
  onMouseover: i,
28
28
  onMouseleave: c
29
29
  }, [
30
- U("div", Zr, [
30
+ U("div", es, [
31
31
  U("div", {
32
32
  id: "chevron",
33
33
  onClick: u[0] || (u[0] = (d) => s.value = !s.value)
@@ -73,14 +73,14 @@ const Zr = { class: "action-menu-icon" }, es = ["onclick"], ts = { key: 1 }, ns
73
73
  key: 0,
74
74
  onclick: d.action,
75
75
  class: "button-default"
76
- }, ve(d.label), 9, es)) : ge("", !0),
77
- d.elementType == "dropdown" ? (A(), M("div", ts, [
76
+ }, ve(d.label), 9, ts)) : ge("", !0),
77
+ d.elementType == "dropdown" ? (A(), M("div", ns, [
78
78
  U("button", {
79
79
  class: "button-default",
80
80
  onClick: (h) => l(f)
81
- }, ve(d.label), 9, ns),
82
- lt(U("div", os, [
83
- U("div", rs, [
81
+ }, ve(d.label), 9, os),
82
+ lt(U("div", rs, [
83
+ U("div", ss, [
84
84
  (A(!0), M(Ae, null, Te(d.actions, (h) => (A(), M("div", {
85
85
  key: h.label
86
86
  }, [
@@ -88,12 +88,12 @@ const Zr = { class: "action-menu-icon" }, es = ["onclick"], ts = { key: 1 }, ns
88
88
  key: 0,
89
89
  onclick: h.action,
90
90
  class: "dropdown-item"
91
- }, ve(h.label), 9, ss)) : h.link != null ? (A(), M("a", {
91
+ }, ve(h.label), 9, as)) : h.link != null ? (A(), M("a", {
92
92
  key: 1,
93
93
  href: h.link
94
94
  }, [
95
- U("button", is, ve(h.label), 1)
96
- ], 8, as)) : ge("", !0)
95
+ U("button", cs, ve(h.label), 1)
96
+ ], 8, is)) : ge("", !0)
97
97
  ]))), 128))
98
98
  ])
99
99
  ], 512), [
@@ -108,18 +108,18 @@ const Zr = { class: "action-menu-icon" }, es = ["onclick"], ts = { key: 1 }, ns
108
108
  for (const [o, r] of t)
109
109
  n[o] = r;
110
110
  return n;
111
- }, ls = /* @__PURE__ */ En(cs, [["__scopeId", "data-v-4fb5c934"]]), us = {};
112
- function ds(e, t) {
111
+ }, us = /* @__PURE__ */ En(ls, [["__scopeId", "data-v-4fb5c934"]]), ds = {};
112
+ function ps(e, t) {
113
113
  return A(), M("dialog");
114
114
  }
115
- const ps = /* @__PURE__ */ En(us, [["render", ds]]), fs = (e, t) => {
115
+ const fs = /* @__PURE__ */ En(ds, [["render", ps]]), hs = (e, t) => {
116
116
  const n = e.__vccOpts || e;
117
117
  for (const [o, r] of t)
118
118
  n[o] = r;
119
119
  return n;
120
120
  };
121
121
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
122
- const hs = { class: "aform" }, ms = /* @__PURE__ */ ae({
122
+ const ms = { class: "aform" }, vs = /* @__PURE__ */ ae({
123
123
  __name: "AForm",
124
124
  props: {
125
125
  modelValue: {},
@@ -145,7 +145,7 @@ const hs = { class: "aform" }, ms = /* @__PURE__ */ ae({
145
145
  set: () => {
146
146
  }
147
147
  });
148
- return (a, i) => (A(), M("form", hs, [
148
+ return (a, i) => (A(), M("form", ms, [
149
149
  (A(!0), M(Ae, null, Te(a.modelValue, (c, l) => (A(), Ie(yn(c.component), wn({
150
150
  key: l,
151
151
  schema: c,
@@ -157,9 +157,9 @@ const hs = { class: "aform" }, ms = /* @__PURE__ */ ae({
157
157
  }, r(c)), null, 16, ["schema", "modelValue", "onUpdate:modelValue", "data", "readonly"]))), 128))
158
158
  ]));
159
159
  }
160
- }), vs = /* @__PURE__ */ fs(ms, [["__scopeId", "data-v-68845234"]]);
160
+ }), gs = /* @__PURE__ */ hs(vs, [["__scopeId", "data-v-68845234"]]);
161
161
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
162
- var gs = Object.defineProperty, ys = (e, t, n) => t in e ? gs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, oe = (e, t, n) => ys(e, typeof t != "symbol" ? t + "" : t, n);
162
+ var ys = Object.defineProperty, ws = (e, t, n) => t in e ? ys(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, oe = (e, t, n) => ws(e, typeof t != "symbol" ? t + "" : t, n);
163
163
  function on(e) {
164
164
  this.message = e || "";
165
165
  }
@@ -172,7 +172,7 @@ on.prototype = Object.create(Error.prototype, {
172
172
  }
173
173
  }
174
174
  });
175
- const Mo = class Et {
175
+ const Mo = class kt {
176
176
  /**
177
177
  * @constructor
178
178
  * @param {Registry} registry - The immutable registry
@@ -188,9 +188,9 @@ const Mo = class Et {
188
188
  * const stonecrop = new Stonecrop(registry, store, schema, workflow, actions)
189
189
  */
190
190
  constructor(t, n, o, r, s) {
191
- if (oe(this, "name", "Stonecrop"), oe(this, "registry"), oe(this, "schema"), oe(this, "workflow"), oe(this, "actions"), oe(this, "store"), Et._root)
192
- return Et._root;
193
- Et._root = this, this.registry = t, this.store = n, this.schema = o, this.workflow = r, this.actions = s;
191
+ if (oe(this, "name", "Stonecrop"), oe(this, "registry"), oe(this, "schema"), oe(this, "workflow"), oe(this, "actions"), oe(this, "store"), kt._root)
192
+ return kt._root;
193
+ kt._root = this, this.registry = t, this.store = n, this.schema = o, this.workflow = r, this.actions = s;
194
194
  }
195
195
  /**
196
196
  * @method setup
@@ -306,9 +306,9 @@ const Mo = class Et {
306
306
  }
307
307
  };
308
308
  oe(Mo, "_root");
309
- let ws = Mo;
309
+ let bs = Mo;
310
310
  var Bo = !1;
311
- function yt(e, t, n) {
311
+ function wt(e, t, n) {
312
312
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
313
313
  }
314
314
  function zt(e, t) {
@@ -318,22 +318,22 @@ function zt(e, t) {
318
318
  }
319
319
  delete e[t];
320
320
  }
321
- function bs() {
321
+ function _s() {
322
322
  return Wo().__VUE_DEVTOOLS_GLOBAL_HOOK__;
323
323
  }
324
324
  function Wo() {
325
325
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
326
326
  }
327
- const _s = typeof Proxy == "function", Es = "devtools-plugin:setup", ks = "plugin:settings:set";
327
+ const Es = typeof Proxy == "function", ks = "devtools-plugin:setup", $s = "plugin:settings:set";
328
328
  let Ze, rn;
329
- function $s() {
329
+ function Ns() {
330
330
  var e;
331
331
  return Ze !== void 0 || (typeof window < "u" && window.performance ? (Ze = !0, rn = window.performance) : typeof globalThis < "u" && !((e = globalThis.perf_hooks) === null || e === void 0) && e.performance ? (Ze = !0, rn = globalThis.perf_hooks.performance) : Ze = !1), Ze;
332
332
  }
333
- function Ns() {
334
- return $s() ? rn.now() : Date.now();
333
+ function Os() {
334
+ return Ns() ? rn.now() : Date.now();
335
335
  }
336
- class Os {
336
+ class xs {
337
337
  constructor(t, n) {
338
338
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
339
339
  const o = {};
@@ -361,9 +361,9 @@ class Os {
361
361
  s = a;
362
362
  },
363
363
  now() {
364
- return Ns();
364
+ return Os();
365
365
  }
366
- }, n && n.on(ks, (a, i) => {
366
+ }, n && n.on($s, (a, i) => {
367
367
  a === this.plugin.id && this.fallbacks.setSettings(i);
368
368
  }), this.proxiedOn = new Proxy({}, {
369
369
  get: (a, i) => this.target ? this.target.on[i] : (...c) => {
@@ -396,11 +396,11 @@ class Os {
396
396
  }
397
397
  }
398
398
  function kn(e, t) {
399
- const n = e, o = Wo(), r = bs(), s = _s && n.enableEarlyProxy;
399
+ const n = e, o = Wo(), r = _s(), s = Es && n.enableEarlyProxy;
400
400
  if (r && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
401
- r.emit(Es, e, t);
401
+ r.emit(ks, e, t);
402
402
  else {
403
- const a = s ? new Os(n, r) : null;
403
+ const a = s ? new xs(n, r) : null;
404
404
  (o.__VUE_DEVTOOLS_PLUGINS__ = o.__VUE_DEVTOOLS_PLUGINS__ || []).push({
405
405
  pluginDescriptor: n,
406
406
  setupFn: t,
@@ -425,8 +425,8 @@ var ue;
425
425
  (function(e) {
426
426
  e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
427
427
  })(ue || (ue = {}));
428
- const $e = typeof window < "u", Hn = 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 };
429
- function xs(e, { autoBom: t = !1 } = {}) {
428
+ const $e = typeof window < "u", Fn = 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 };
429
+ function Ss(e, { autoBom: t = !1 } = {}) {
430
430
  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;
431
431
  }
432
432
  function $n(e, t, n) {
@@ -437,7 +437,7 @@ function $n(e, t, n) {
437
437
  console.error("could not download file");
438
438
  }, o.send();
439
439
  }
440
- function Fo(e) {
440
+ function Ho(e) {
441
441
  const t = new XMLHttpRequest();
442
442
  t.open("HEAD", e, !1);
443
443
  try {
@@ -446,7 +446,7 @@ function Fo(e) {
446
446
  }
447
447
  return t.status >= 200 && t.status <= 299;
448
448
  }
449
- function kt(e) {
449
+ function $t(e) {
450
450
  try {
451
451
  e.dispatchEvent(new MouseEvent("click"));
452
452
  } catch {
@@ -454,43 +454,43 @@ function kt(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 $t = typeof navigator == "object" ? navigator : { userAgent: "" }, Ho = /Macintosh/.test($t.userAgent) && /AppleWebKit/.test($t.userAgent) && !/Safari/.test($t.userAgent), zo = $e ? (
457
+ const Nt = typeof navigator == "object" ? navigator : { userAgent: "" }, Fo = /Macintosh/.test(Nt.userAgent) && /AppleWebKit/.test(Nt.userAgent) && !/Safari/.test(Nt.userAgent), zo = $e ? (
458
458
  // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
459
- typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Ho ? Ss : (
459
+ typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Fo ? Cs : (
460
460
  // Use msSaveOrOpenBlob as a second approach
461
- "msSaveOrOpenBlob" in $t ? Cs : (
461
+ "msSaveOrOpenBlob" in Nt ? Ps : (
462
462
  // Fallback to using FileReader and a popup
463
- Ps
463
+ Is
464
464
  )
465
465
  )
466
466
  ) : () => {
467
467
  };
468
- function Ss(e, t = "download", n) {
468
+ function Cs(e, t = "download", n) {
469
469
  const o = document.createElement("a");
470
- o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin !== location.origin ? Fo(o.href) ? $n(e, t, n) : (o.target = "_blank", kt(o)) : kt(o)) : (o.href = URL.createObjectURL(e), setTimeout(function() {
470
+ o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin !== location.origin ? Ho(o.href) ? $n(e, t, n) : (o.target = "_blank", $t(o)) : $t(o)) : (o.href = URL.createObjectURL(e), setTimeout(function() {
471
471
  URL.revokeObjectURL(o.href);
472
472
  }, 4e4), setTimeout(function() {
473
- kt(o);
473
+ $t(o);
474
474
  }, 0));
475
475
  }
476
- function Cs(e, t = "download", n) {
476
+ function Ps(e, t = "download", n) {
477
477
  if (typeof e == "string")
478
- if (Fo(e))
478
+ if (Ho(e))
479
479
  $n(e, t, n);
480
480
  else {
481
481
  const o = document.createElement("a");
482
482
  o.href = e, o.target = "_blank", setTimeout(function() {
483
- kt(o);
483
+ $t(o);
484
484
  });
485
485
  }
486
486
  else
487
- navigator.msSaveOrOpenBlob(xs(e, n), t);
487
+ navigator.msSaveOrOpenBlob(Ss(e, n), t);
488
488
  }
489
- function Ps(e, t, n, o) {
489
+ function Is(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 $n(e, t, n);
492
- const r = e.type === "application/octet-stream", s = /constructor/i.test(String(Hn.HTMLElement)) || "safari" in Hn, a = /CriOS\/[\d]+/.test(navigator.userAgent);
493
- if ((a || r && s || Ho) && typeof FileReader < "u") {
492
+ const r = e.type === "application/octet-stream", s = /constructor/i.test(String(Fn.HTMLElement)) || "safari" in Fn, a = /CriOS\/[\d]+/.test(navigator.userAgent);
493
+ if ((a || r && s || Fo) && typeof FileReader < "u") {
494
494
  const i = new FileReader();
495
495
  i.onloadend = function() {
496
496
  let c = i.result;
@@ -519,7 +519,7 @@ function qo() {
519
519
  function Go(e) {
520
520
  return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (Y('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
521
521
  }
522
- async function Is(e) {
522
+ async function Ds(e) {
523
523
  if (!qo())
524
524
  try {
525
525
  await navigator.clipboard.writeText(JSON.stringify(e.state.value)), Y("Global state copied to clipboard.");
@@ -529,7 +529,7 @@ async function Is(e) {
529
529
  Y("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
530
530
  }
531
531
  }
532
- async function Ds(e) {
532
+ async function Vs(e) {
533
533
  if (!qo())
534
534
  try {
535
535
  Jo(e, JSON.parse(await navigator.clipboard.readText())), Y("Global state pasted from clipboard.");
@@ -539,7 +539,7 @@ async function Ds(e) {
539
539
  Y("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
540
540
  }
541
541
  }
542
- async function Vs(e) {
542
+ async function As(e) {
543
543
  try {
544
544
  zo(new Blob([JSON.stringify(e.state.value)], {
545
545
  type: "text/plain;charset=utf-8"
@@ -549,7 +549,7 @@ async function Vs(e) {
549
549
  }
550
550
  }
551
551
  let fe;
552
- function As() {
552
+ function Ts() {
553
553
  fe || (fe = document.createElement("input"), fe.type = "file", fe.accept = ".json");
554
554
  function e() {
555
555
  return new Promise((t, n) => {
@@ -564,9 +564,9 @@ function As() {
564
564
  }
565
565
  return e;
566
566
  }
567
- async function Ts(e) {
567
+ async function Rs(e) {
568
568
  try {
569
- const t = await As()();
569
+ const t = await Ts()();
570
570
  if (!t)
571
571
  return;
572
572
  const { text: n, file: o } = t;
@@ -588,17 +588,17 @@ function ce(e) {
588
588
  }
589
589
  };
590
590
  }
591
- const Yo = "🍍 Pinia (root)", Nt = "_root";
592
- function Rs(e) {
591
+ const Yo = "🍍 Pinia (root)", Ot = "_root";
592
+ function js(e) {
593
593
  return Nn(e) ? {
594
- id: Nt,
594
+ id: Ot,
595
595
  label: Yo
596
596
  } : {
597
597
  id: e.$id,
598
598
  label: e.$id
599
599
  };
600
600
  }
601
- function js(e) {
601
+ function Ls(e) {
602
602
  if (Nn(e)) {
603
603
  const n = Array.from(e._s.keys()), o = e._s;
604
604
  return {
@@ -634,7 +634,7 @@ function js(e) {
634
634
  value: e[n]
635
635
  }))), t;
636
636
  }
637
- function Ls(e) {
637
+ function Ms(e) {
638
638
  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), {
639
639
  oldValue: {},
640
640
  keys: [],
@@ -647,7 +647,7 @@ function Ls(e) {
647
647
  newValue: e.newValue
648
648
  } : {};
649
649
  }
650
- function Ms(e) {
650
+ function Bs(e) {
651
651
  switch (e) {
652
652
  case ue.direct:
653
653
  return "mutation";
@@ -659,16 +659,16 @@ function Ms(e) {
659
659
  return "unknown";
660
660
  }
661
661
  }
662
- let Fe = !0;
663
- const Ot = [], Pe = "pinia:mutations", K = "pinia", { assign: Bs } = Object, Dt = (e) => "🍍 " + e;
664
- function Ws(e, t) {
662
+ let He = !0;
663
+ const xt = [], Pe = "pinia:mutations", Q = "pinia", { assign: Ws } = Object, Vt = (e) => "🍍 " + e;
664
+ function Us(e, t) {
665
665
  kn({
666
666
  id: "dev.esm.pinia",
667
667
  label: "Pinia 🍍",
668
668
  logo: "https://pinia.vuejs.org/logo.svg",
669
669
  packageName: "pinia",
670
670
  homepage: "https://pinia.vuejs.org",
671
- componentStateTypes: Ot,
671
+ componentStateTypes: xt,
672
672
  app: e
673
673
  }, (n) => {
674
674
  typeof n.now != "function" && Y("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."), n.addTimelineLayer({
@@ -676,7 +676,7 @@ function Ws(e, t) {
676
676
  label: "Pinia 🍍",
677
677
  color: 15064968
678
678
  }), n.addInspector({
679
- id: K,
679
+ id: Q,
680
680
  label: "Pinia 🍍",
681
681
  icon: "storage",
682
682
  treeFilterPlaceholder: "Search stores",
@@ -684,28 +684,28 @@ function Ws(e, t) {
684
684
  {
685
685
  icon: "content_copy",
686
686
  action: () => {
687
- Is(t);
687
+ Ds(t);
688
688
  },
689
689
  tooltip: "Serialize and copy the state"
690
690
  },
691
691
  {
692
692
  icon: "content_paste",
693
693
  action: async () => {
694
- await Ds(t), n.sendInspectorTree(K), n.sendInspectorState(K);
694
+ await Vs(t), n.sendInspectorTree(Q), n.sendInspectorState(Q);
695
695
  },
696
696
  tooltip: "Replace the state with the content of your clipboard"
697
697
  },
698
698
  {
699
699
  icon: "save",
700
700
  action: () => {
701
- Vs(t);
701
+ As(t);
702
702
  },
703
703
  tooltip: "Save the state as a JSON file"
704
704
  },
705
705
  {
706
706
  icon: "folder_open",
707
707
  action: async () => {
708
- await Ts(t), n.sendInspectorTree(K), n.sendInspectorState(K);
708
+ await Rs(t), n.sendInspectorTree(Q), n.sendInspectorState(Q);
709
709
  },
710
710
  tooltip: "Import the state from a JSON file"
711
711
  }
@@ -726,7 +726,7 @@ function Ws(e, t) {
726
726
  const a = o.componentInstance.proxy._pStores;
727
727
  Object.values(a).forEach((i) => {
728
728
  o.instanceData.state.push({
729
- type: Dt(i.$id),
729
+ type: Vt(i.$id),
730
730
  key: "state",
731
731
  editable: !0,
732
732
  value: i._isOptionsAPI ? {
@@ -745,7 +745,7 @@ function Ws(e, t) {
745
745
  Object.keys(i.$state).reduce((c, l) => (c[l] = i.$state[l], c), {})
746
746
  )
747
747
  }), i._getters && i._getters.length && o.instanceData.state.push({
748
- type: Dt(i.$id),
748
+ type: Vt(i.$id),
749
749
  key: "getters",
750
750
  editable: !1,
751
751
  value: i._getters.reduce((c, l) => {
@@ -760,24 +760,24 @@ function Ws(e, t) {
760
760
  });
761
761
  }
762
762
  }), n.on.getInspectorTree((o) => {
763
- if (o.app === e && o.inspectorId === K) {
763
+ if (o.app === e && o.inspectorId === Q) {
764
764
  let r = [t];
765
- 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()) : Yo.toLowerCase().includes(o.filter.toLowerCase())) : r).map(Rs);
765
+ 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()) : Yo.toLowerCase().includes(o.filter.toLowerCase())) : r).map(js);
766
766
  }
767
767
  }), globalThis.$pinia = t, n.on.getInspectorState((o) => {
768
- if (o.app === e && o.inspectorId === K) {
769
- const r = o.nodeId === Nt ? t : t._s.get(o.nodeId);
768
+ if (o.app === e && o.inspectorId === Q) {
769
+ const r = o.nodeId === Ot ? t : t._s.get(o.nodeId);
770
770
  if (!r)
771
771
  return;
772
- r && (o.nodeId !== Nt && (globalThis.$store = qe(r)), o.state = js(r));
772
+ r && (o.nodeId !== Ot && (globalThis.$store = qe(r)), o.state = Ls(r));
773
773
  }
774
774
  }), n.on.editInspectorState((o, r) => {
775
- if (o.app === e && o.inspectorId === K) {
776
- const s = o.nodeId === Nt ? t : t._s.get(o.nodeId);
775
+ if (o.app === e && o.inspectorId === Q) {
776
+ const s = o.nodeId === Ot ? t : t._s.get(o.nodeId);
777
777
  if (!s)
778
778
  return Y(`store "${o.nodeId}" not found`, "error");
779
779
  const { path: a } = o;
780
- Nn(s) ? a.unshift("state") : (a.length !== 1 || !s._customProperties.has(a[0]) || a[0] in s.$state) && a.unshift("$state"), Fe = !1, o.set(s, a, o.state.value), Fe = !0;
780
+ Nn(s) ? a.unshift("state") : (a.length !== 1 || !s._customProperties.has(a[0]) || a[0] in s.$state) && a.unshift("$state"), He = !1, o.set(s, a, o.state.value), He = !0;
781
781
  }
782
782
  }), n.on.editComponentState((o) => {
783
783
  if (o.type.startsWith("🍍")) {
@@ -789,19 +789,19 @@ function Ws(e, t) {
789
789
  return Y(`Invalid path for store "${r}":
790
790
  ${a}
791
791
  Only state can be modified.`);
792
- a[0] = "$state", Fe = !1, o.set(s, a, o.state.value), Fe = !0;
792
+ a[0] = "$state", He = !1, o.set(s, a, o.state.value), He = !0;
793
793
  }
794
794
  });
795
795
  });
796
796
  }
797
- function Us(e, t) {
798
- Ot.includes(Dt(t.$id)) || Ot.push(Dt(t.$id)), kn({
797
+ function Hs(e, t) {
798
+ xt.includes(Vt(t.$id)) || xt.push(Vt(t.$id)), kn({
799
799
  id: "dev.esm.pinia",
800
800
  label: "Pinia 🍍",
801
801
  logo: "https://pinia.vuejs.org/logo.svg",
802
802
  packageName: "pinia",
803
803
  homepage: "https://pinia.vuejs.org",
804
- componentStateTypes: Ot,
804
+ componentStateTypes: xt,
805
805
  app: e,
806
806
  settings: {
807
807
  logStoreChanges: {
@@ -818,7 +818,7 @@ function Us(e, t) {
818
818
  }, (n) => {
819
819
  const o = typeof n.now == "function" ? n.now.bind(n) : Date.now;
820
820
  t.$onAction(({ after: a, onError: i, name: c, args: l }) => {
821
- const p = Ko++;
821
+ const p = Qo++;
822
822
  n.addTimelineEvent({
823
823
  layerId: Pe,
824
824
  event: {
@@ -868,7 +868,7 @@ function Us(e, t) {
868
868
  });
869
869
  }, !0), t._customProperties.forEach((a) => {
870
870
  J(() => S(t[a]), (i, c) => {
871
- n.notifyComponentUpdate(), n.sendInspectorState(K), Fe && n.addTimelineEvent({
871
+ n.notifyComponentUpdate(), n.sendInspectorState(Q), He && n.addTimelineEvent({
872
872
  layerId: Pe,
873
873
  event: {
874
874
  time: o(),
@@ -883,12 +883,12 @@ function Us(e, t) {
883
883
  });
884
884
  }, { deep: !0 });
885
885
  }), t.$subscribe(({ events: a, type: i }, c) => {
886
- if (n.notifyComponentUpdate(), n.sendInspectorState(K), !Fe)
886
+ if (n.notifyComponentUpdate(), n.sendInspectorState(Q), !He)
887
887
  return;
888
888
  const l = {
889
889
  time: o(),
890
- title: Ms(i),
891
- data: Bs({ store: ce(t.$id) }, Ls(a)),
890
+ title: Bs(i),
891
+ data: Ws({ store: ce(t.$id) }, Ms(a)),
892
892
  groupId: Ne
893
893
  };
894
894
  i === ue.patchFunction ? l.subtitle = "⤵️" : i === ue.patchObject ? l.subtitle = "🧩" : a && !Array.isArray(a) && (l.subtitle = a.type), a && (l.data["rawEvent(s)"] = {
@@ -916,20 +916,20 @@ function Us(e, t) {
916
916
  info: ce("HMR update")
917
917
  }
918
918
  }
919
- }), n.notifyComponentUpdate(), n.sendInspectorTree(K), n.sendInspectorState(K);
919
+ }), n.notifyComponentUpdate(), n.sendInspectorTree(Q), n.sendInspectorState(Q);
920
920
  });
921
921
  const { $dispose: s } = t;
922
922
  t.$dispose = () => {
923
- s(), n.notifyComponentUpdate(), n.sendInspectorTree(K), n.sendInspectorState(K), n.getSettings().logStoreChanges && Y(`Disposed "${t.$id}" store 🗑`);
924
- }, n.notifyComponentUpdate(), n.sendInspectorTree(K), n.sendInspectorState(K), n.getSettings().logStoreChanges && Y(`"${t.$id}" store installed 🆕`);
923
+ s(), n.notifyComponentUpdate(), n.sendInspectorTree(Q), n.sendInspectorState(Q), n.getSettings().logStoreChanges && Y(`Disposed "${t.$id}" store 🗑`);
924
+ }, n.notifyComponentUpdate(), n.sendInspectorTree(Q), n.sendInspectorState(Q), n.getSettings().logStoreChanges && Y(`"${t.$id}" store installed 🆕`);
925
925
  });
926
926
  }
927
- let Ko = 0, Ne;
927
+ let Qo = 0, Ne;
928
928
  function zn(e, t, n) {
929
929
  const o = t.reduce((r, s) => (r[s] = qe(e)[s], r), {});
930
930
  for (const r in o)
931
931
  e[r] = function() {
932
- const s = Ko, a = n ? new Proxy(e, {
932
+ const s = Qo, a = n ? new Proxy(e, {
933
933
  get(...c) {
934
934
  return Ne = s, Reflect.get(...c);
935
935
  },
@@ -951,19 +951,19 @@ function Fs({ app: e, store: t, options: n }) {
951
951
  o.apply(this, arguments), zn(t, Object.keys(r._hmrPayload.actions), !!t._isOptionsAPI);
952
952
  };
953
953
  }
954
- Us(
954
+ Hs(
955
955
  e,
956
956
  // FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
957
957
  t
958
958
  );
959
959
  }
960
960
  }
961
- function Hs() {
961
+ function zs() {
962
962
  const e = bn(!0), t = e.run(() => C({}));
963
963
  let n = [], o = [];
964
964
  const r = re({
965
965
  install(s) {
966
- ut(r), r._a = s, s.provide(Uo, r), s.config.globalProperties.$pinia = r, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && $e && Ws(s, r), o.forEach((a) => n.push(a)), o = [];
966
+ ut(r), r._a = s, s.provide(Uo, r), s.config.globalProperties.$pinia = r, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && $e && Us(s, r), o.forEach((a) => n.push(a)), o = [];
967
967
  },
968
968
  use(s) {
969
969
  return !this._a && !Bo ? o.push(s) : n.push(s), this;
@@ -978,13 +978,13 @@ function Hs() {
978
978
  });
979
979
  return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && $e && typeof Proxy < "u" && r.use(Fs), r;
980
980
  }
981
- function Qo(e, t) {
981
+ function Ko(e, t) {
982
982
  for (const n in t) {
983
983
  const o = t[n];
984
984
  if (!(n in e))
985
985
  continue;
986
986
  const r = e[n];
987
- Re(r) && Re(o) && !de(o) && !Xe(o) ? e[n] = Qo(r, o) : e[n] = o;
987
+ Re(r) && Re(o) && !de(o) && !Xe(o) ? e[n] = Ko(r, o) : e[n] = o;
988
988
  }
989
989
  return e;
990
990
  }
@@ -996,14 +996,14 @@ function qn(e, t, n, o = Xo) {
996
996
  const s = e.indexOf(t);
997
997
  s > -1 && (e.splice(s, 1), o());
998
998
  };
999
- return !n && Tt() && Rt(r), r;
999
+ return !n && Rt() && jt(r), r;
1000
1000
  }
1001
1001
  function We(e, ...t) {
1002
1002
  e.slice().forEach((n) => {
1003
1003
  n(...t);
1004
1004
  });
1005
1005
  }
1006
- const zs = (e) => e(), Gn = Symbol(), qt = Symbol();
1006
+ const qs = (e) => e(), Gn = Symbol(), qt = Symbol();
1007
1007
  function sn(e, t) {
1008
1008
  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);
1009
1009
  for (const n in t) {
@@ -1014,12 +1014,12 @@ function sn(e, t) {
1014
1014
  }
1015
1015
  return e;
1016
1016
  }
1017
- const qs = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
1017
+ const Gs = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
1018
1018
  /* istanbul ignore next */
1019
1019
  Symbol()
1020
1020
  );
1021
- function Gs(e) {
1022
- return !Re(e) || !e.hasOwnProperty(qs);
1021
+ function Js(e) {
1022
+ return !Re(e) || !e.hasOwnProperty(Gs);
1023
1023
  }
1024
1024
  const { assign: te } = Object;
1025
1025
  function Jn(e) {
@@ -1032,8 +1032,8 @@ function Yn(e, t, n, o) {
1032
1032
  !i && (process.env.NODE_ENV === "production" || !o) && (n.state.value[e] = r ? r() : {});
1033
1033
  const p = process.env.NODE_ENV !== "production" && o ? (
1034
1034
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
1035
- Ct(C(r ? r() : {}).value)
1036
- ) : Ct(n.state.value[e]);
1035
+ Pt(C(r ? r() : {}).value)
1036
+ ) : Pt(n.state.value[e]);
1037
1037
  return te(p, s, Object.keys(a || {}).reduce((u, d) => (process.env.NODE_ENV !== "production" && d in p && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${d}" in store "${e}".`), u[d] = re(B(() => {
1038
1038
  ut(n);
1039
1039
  const f = n._s.get(e);
@@ -1087,14 +1087,14 @@ function an(e, t, n = {}, o, r, s) {
1087
1087
  function T() {
1088
1088
  a.stop(), u = [], d = [], o._s.delete(e);
1089
1089
  }
1090
- const F = (b, m = "") => {
1090
+ const H = (b, m = "") => {
1091
1091
  if (Gn in b)
1092
1092
  return b[qt] = m, b;
1093
1093
  const w = function() {
1094
1094
  ut(o);
1095
- const D = Array.from(arguments), H = [], ie = [];
1095
+ const D = Array.from(arguments), F = [], ie = [];
1096
1096
  function pe(z) {
1097
- H.push(z);
1097
+ F.push(z);
1098
1098
  }
1099
1099
  function Me(z) {
1100
1100
  ie.push(z);
@@ -1112,7 +1112,7 @@ function an(e, t, n = {}, o, r, s) {
1112
1112
  } catch (z) {
1113
1113
  throw We(ie, z), z;
1114
1114
  }
1115
- return ee instanceof Promise ? ee.then((z) => (We(H, z), z)).catch((z) => (We(ie, z), Promise.reject(z))) : (We(H, ee), ee);
1115
+ return ee instanceof Promise ? ee.then((z) => (We(F, z), z)).catch((z) => (We(ie, z), Promise.reject(z))) : (We(F, ee), ee);
1116
1116
  };
1117
1117
  return w[Gn] = !0, w[qt] = m, w;
1118
1118
  }, N = /* @__PURE__ */ re({
@@ -1128,12 +1128,12 @@ function an(e, t, n = {}, o, r, s) {
1128
1128
  $patch: _,
1129
1129
  $reset: x,
1130
1130
  $subscribe(b, m = {}) {
1131
- const w = qn(u, b, m.detached, () => D()), D = a.run(() => J(() => o.state.value[e], (H) => {
1131
+ const w = qn(u, b, m.detached, () => D()), D = a.run(() => J(() => o.state.value[e], (F) => {
1132
1132
  (m.flush === "sync" ? p : l) && b({
1133
1133
  storeId: e,
1134
1134
  type: ue.direct,
1135
1135
  events: f
1136
- }, H);
1136
+ }, F);
1137
1137
  }, te({}, c, m)));
1138
1138
  return w;
1139
1139
  },
@@ -1149,13 +1149,13 @@ function an(e, t, n = {}, o, r, s) {
1149
1149
  // setupStore
1150
1150
  ) : P);
1151
1151
  o._s.set(e, g);
1152
- const W = (o._a && o._a.runWithContext || zs)(() => o._e.run(() => (a = bn()).run(() => t({ action: F }))));
1152
+ const W = (o._a && o._a.runWithContext || qs)(() => o._e.run(() => (a = bn()).run(() => t({ action: H }))));
1153
1153
  for (const b in W) {
1154
1154
  const m = W[b];
1155
1155
  if (de(m) && !Jn(m) || Xe(m))
1156
- process.env.NODE_ENV !== "production" && r ? yt(y.value, b, De(W, b)) : s || (h && Gs(m) && (de(m) ? m.value = h[b] : sn(m, h[b])), o.state.value[e][b] = m), process.env.NODE_ENV !== "production" && N.state.push(b);
1156
+ process.env.NODE_ENV !== "production" && r ? wt(y.value, b, De(W, b)) : s || (h && Js(m) && (de(m) ? m.value = h[b] : sn(m, h[b])), o.state.value[e][b] = m), process.env.NODE_ENV !== "production" && N.state.push(b);
1157
1157
  else if (typeof m == "function") {
1158
- const w = process.env.NODE_ENV !== "production" && r ? m : F(m, b);
1158
+ const w = process.env.NODE_ENV !== "production" && r ? m : H(m, b);
1159
1159
  W[b] = w, process.env.NODE_ENV !== "production" && (N.actions[b] = m), i.actions[b] = m;
1160
1160
  } else process.env.NODE_ENV !== "production" && Jn(m) && (N.getters[b] = s ? (
1161
1161
  // @ts-expect-error
@@ -1176,9 +1176,9 @@ function an(e, t, n = {}, o, r, s) {
1176
1176
  g._hotUpdating = !0, b._hmrPayload.state.forEach((m) => {
1177
1177
  if (m in g.$state) {
1178
1178
  const w = b.$state[m], D = g.$state[m];
1179
- typeof w == "object" && Re(w) && Re(D) ? Qo(w, D) : b.$state[m] = D;
1179
+ typeof w == "object" && Re(w) && Re(D) ? Ko(w, D) : b.$state[m] = D;
1180
1180
  }
1181
- yt(g, m, De(b.$state, m));
1181
+ wt(g, m, De(b.$state, m));
1182
1182
  }), Object.keys(g.$state).forEach((m) => {
1183
1183
  m in b.$state || zt(g, m);
1184
1184
  }), l = !1, p = !1, o.state.value[e] = De(b._hmrPayload, "hotState"), p = !0, xe().then(() => {
@@ -1186,14 +1186,14 @@ function an(e, t, n = {}, o, r, s) {
1186
1186
  });
1187
1187
  for (const m in b._hmrPayload.actions) {
1188
1188
  const w = b[m];
1189
- yt(g, m, F(w, m));
1189
+ wt(g, m, H(w, m));
1190
1190
  }
1191
1191
  for (const m in b._hmrPayload.getters) {
1192
1192
  const w = b._hmrPayload.getters[m], D = s ? (
1193
1193
  // special handling of options api
1194
1194
  B(() => (ut(o), w.call(g, g)))
1195
1195
  ) : w;
1196
- yt(g, m, D);
1196
+ wt(g, m, D);
1197
1197
  }
1198
1198
  Object.keys(g._hmrPayload.getters).forEach((m) => {
1199
1199
  m in b._hmrPayload.getters || zt(g, m);
@@ -1233,7 +1233,7 @@ Found in store "${g.$id}".`), h && s && n.hydrate && n.hydrate(g.$state, h), l =
1233
1233
  }
1234
1234
  /*! #__NO_SIDE_EFFECTS__ */
1235
1235
  // @__NO_SIDE_EFFECTS__
1236
- function Js(e, t, n) {
1236
+ function Ys(e, t, n) {
1237
1237
  let o, r;
1238
1238
  const s = typeof t == "function";
1239
1239
  o = e, r = s ? n : t;
@@ -1263,14 +1263,14 @@ This will fail in production.`);
1263
1263
  }
1264
1264
  return a.$id = o, a;
1265
1265
  }
1266
- const Ys = /* @__PURE__ */ Js("data", () => {
1266
+ const Qs = /* @__PURE__ */ Ys("data", () => {
1267
1267
  const e = C([]), t = C({});
1268
1268
  return { records: e, record: t };
1269
1269
  });
1270
1270
  function Zo(e) {
1271
1271
  e || (e = Oe("$registry"));
1272
- const t = Ys(), n = C(new ws(e, t)), o = C(!1);
1273
- return Hr(async () => {
1272
+ const t = Qs(), n = C(new bs(e, t)), o = C(!1);
1273
+ return zr(async () => {
1274
1274
  var r, s;
1275
1275
  const a = e.router.currentRoute.value, i = (r = a.params.records) == null ? void 0 : r.toString().toLowerCase(), c = (s = a.params.record) == null ? void 0 : s.toString().toLowerCase();
1276
1276
  if (!i && !c)
@@ -1279,11 +1279,11 @@ function Zo(e) {
1279
1279
  e.addDoctype(l), n.value.setup(l), i && (c ? await n.value.getRecord(l, c) : await n.value.getRecords(l)), n.value.runAction(l, "LOAD", c ? [c] : void 0), o.value = !0;
1280
1280
  }), { stonecrop: n, isReady: o };
1281
1281
  }
1282
- const Ks = class xt {
1282
+ const Ks = class St {
1283
1283
  constructor(t, n) {
1284
- if (oe(this, "name"), oe(this, "router"), oe(this, "registry"), oe(this, "getMeta"), xt._root)
1285
- return xt._root;
1286
- xt._root = this, this.name = "Registry", this.router = t, this.registry = {}, this.getMeta = n;
1284
+ if (oe(this, "name"), oe(this, "router"), oe(this, "registry"), oe(this, "getMeta"), St._root)
1285
+ return St._root;
1286
+ St._root = this, this.name = "Registry", this.router = t, this.registry = {}, this.getMeta = n;
1287
1287
  }
1288
1288
  addDoctype(t) {
1289
1289
  t.doctype in Object.keys(this.registry) || (this.registry[t.slug] = t), this.router.hasRoute(t.doctype) || this.router.addRoute({
@@ -1303,7 +1303,7 @@ const me = typeof document < "u";
1303
1303
  function er(e) {
1304
1304
  return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e;
1305
1305
  }
1306
- function Qs(e) {
1306
+ function Xs(e) {
1307
1307
  return e.__esModule || e[Symbol.toStringTag] === "Module" || // support CF with dynamic imports that do not
1308
1308
  // add the Module string tag
1309
1309
  e.default && er(e.default);
@@ -1323,24 +1323,24 @@ function I(e) {
1323
1323
  const t = Array.from(arguments).slice(1);
1324
1324
  console.warn.apply(console, ["[Vue Router warn]: " + e].concat(t));
1325
1325
  }
1326
- const tr = /#/g, Xs = /&/g, Zs = /\//g, ea = /=/g, ta = /\?/g, nr = /\+/g, na = /%5B/g, oa = /%5D/g, or = /%5E/g, ra = /%60/g, rr = /%7B/g, sa = /%7C/g, sr = /%7D/g, aa = /%20/g;
1326
+ const tr = /#/g, Zs = /&/g, ea = /\//g, ta = /=/g, na = /\?/g, nr = /\+/g, oa = /%5B/g, ra = /%5D/g, or = /%5E/g, sa = /%60/g, rr = /%7B/g, aa = /%7C/g, sr = /%7D/g, ia = /%20/g;
1327
1327
  function On(e) {
1328
- return encodeURI("" + e).replace(sa, "|").replace(na, "[").replace(oa, "]");
1328
+ return encodeURI("" + e).replace(aa, "|").replace(oa, "[").replace(ra, "]");
1329
1329
  }
1330
- function ia(e) {
1330
+ function ca(e) {
1331
1331
  return On(e).replace(rr, "{").replace(sr, "}").replace(or, "^");
1332
1332
  }
1333
1333
  function cn(e) {
1334
- return On(e).replace(nr, "%2B").replace(aa, "+").replace(tr, "%23").replace(Xs, "%26").replace(ra, "`").replace(rr, "{").replace(sr, "}").replace(or, "^");
1335
- }
1336
- function ca(e) {
1337
- return cn(e).replace(ea, "%3D");
1334
+ return On(e).replace(nr, "%2B").replace(ia, "+").replace(tr, "%23").replace(Zs, "%26").replace(sa, "`").replace(rr, "{").replace(sr, "}").replace(or, "^");
1338
1335
  }
1339
1336
  function la(e) {
1340
- return On(e).replace(tr, "%23").replace(ta, "%3F");
1337
+ return cn(e).replace(ta, "%3D");
1341
1338
  }
1342
1339
  function ua(e) {
1343
- return e == null ? "" : la(e).replace(Zs, "%2F");
1340
+ return On(e).replace(tr, "%23").replace(na, "%3F");
1341
+ }
1342
+ function da(e) {
1343
+ return e == null ? "" : ua(e).replace(ea, "%2F");
1344
1344
  }
1345
1345
  function Ge(e) {
1346
1346
  try {
@@ -1350,26 +1350,26 @@ function Ge(e) {
1350
1350
  }
1351
1351
  return "" + e;
1352
1352
  }
1353
- const da = /\/$/, pa = (e) => e.replace(da, "");
1353
+ const pa = /\/$/, fa = (e) => e.replace(pa, "");
1354
1354
  function Jt(e, t, n = "/") {
1355
1355
  let o, r = {}, s = "", a = "";
1356
1356
  const i = t.indexOf("#");
1357
1357
  let c = t.indexOf("?");
1358
- return i < c && i >= 0 && (c = -1), c > -1 && (o = t.slice(0, c), s = t.slice(c + 1, i > -1 ? i : t.length), r = e(s)), i > -1 && (o = o || t.slice(0, i), a = t.slice(i, t.length)), o = ma(o ?? t, n), {
1358
+ return i < c && i >= 0 && (c = -1), c > -1 && (o = t.slice(0, c), s = t.slice(c + 1, i > -1 ? i : t.length), r = e(s)), i > -1 && (o = o || t.slice(0, i), a = t.slice(i, t.length)), o = va(o ?? t, n), {
1359
1359
  fullPath: o + (s && "?") + s + a,
1360
1360
  path: o,
1361
1361
  query: r,
1362
1362
  hash: Ge(a)
1363
1363
  };
1364
1364
  }
1365
- function fa(e, t) {
1365
+ function ha(e, t) {
1366
1366
  const n = t.query ? e(t.query) : "";
1367
1367
  return t.path + (n && "?") + n + (t.hash || "");
1368
1368
  }
1369
- function Kn(e, t) {
1369
+ function Qn(e, t) {
1370
1370
  return !t || !e.toLowerCase().startsWith(t.toLowerCase()) ? e : e.slice(t.length) || "/";
1371
1371
  }
1372
- function Qn(e, t, n) {
1372
+ function Kn(e, t, n) {
1373
1373
  const o = t.matched.length - 1, r = n.matched.length - 1;
1374
1374
  return o > -1 && o === r && Se(t.matched[o], n.matched[r]) && ar(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
1375
1375
  }
@@ -1380,17 +1380,17 @@ function ar(e, t) {
1380
1380
  if (Object.keys(e).length !== Object.keys(t).length)
1381
1381
  return !1;
1382
1382
  for (const n in e)
1383
- if (!ha(e[n], t[n]))
1383
+ if (!ma(e[n], t[n]))
1384
1384
  return !1;
1385
1385
  return !0;
1386
1386
  }
1387
- function ha(e, t) {
1387
+ function ma(e, t) {
1388
1388
  return Z(e) ? Xn(e, t) : Z(t) ? Xn(t, e) : e === t;
1389
1389
  }
1390
1390
  function Xn(e, t) {
1391
1391
  return Z(t) ? e.length === t.length && e.every((n, o) => n === t[o]) : e.length === 1 && e[0] === t;
1392
1392
  }
1393
- function ma(e, t) {
1393
+ function va(e, t) {
1394
1394
  if (e.startsWith("/"))
1395
1395
  return e;
1396
1396
  if (process.env.NODE_ENV !== "production" && !t.startsWith("/"))
@@ -1428,20 +1428,20 @@ var it;
1428
1428
  (function(e) {
1429
1429
  e.back = "back", e.forward = "forward", e.unknown = "";
1430
1430
  })(it || (it = {}));
1431
- function va(e) {
1431
+ function ga(e) {
1432
1432
  if (!e)
1433
1433
  if (me) {
1434
1434
  const t = document.querySelector("base");
1435
1435
  e = t && t.getAttribute("href") || "/", e = e.replace(/^\w+:\/\/[^\/]+/, "");
1436
1436
  } else
1437
1437
  e = "/";
1438
- return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), pa(e);
1439
- }
1440
- const ga = /^[^#]+#/;
1441
- function ya(e, t) {
1442
- return e.replace(ga, "#") + t;
1438
+ return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), fa(e);
1443
1439
  }
1440
+ const ya = /^[^#]+#/;
1444
1441
  function wa(e, t) {
1442
+ return e.replace(ya, "#") + t;
1443
+ }
1444
+ function ba(e, t) {
1445
1445
  const n = document.documentElement.getBoundingClientRect(), o = e.getBoundingClientRect();
1446
1446
  return {
1447
1447
  behavior: t.behavior,
@@ -1453,7 +1453,7 @@ const Lt = () => ({
1453
1453
  left: window.scrollX,
1454
1454
  top: window.scrollY
1455
1455
  });
1456
- function ba(e) {
1456
+ function _a(e) {
1457
1457
  let t;
1458
1458
  if ("el" in e) {
1459
1459
  const n = e.el, o = typeof n == "string" && n.startsWith("#");
@@ -1473,7 +1473,7 @@ function ba(e) {
1473
1473
  process.env.NODE_ENV !== "production" && I(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
1474
1474
  return;
1475
1475
  }
1476
- t = wa(r, e);
1476
+ t = ba(r, e);
1477
1477
  } else
1478
1478
  t = e;
1479
1479
  "scrollBehavior" in document.documentElement.style ? window.scrollTo(t) : window.scrollTo(t.left != null ? t.left : window.scrollX, t.top != null ? t.top : window.scrollY);
@@ -1482,23 +1482,23 @@ function Zn(e, t) {
1482
1482
  return (history.state ? history.state.position - t : -1) + e;
1483
1483
  }
1484
1484
  const ln = /* @__PURE__ */ new Map();
1485
- function _a(e, t) {
1485
+ function Ea(e, t) {
1486
1486
  ln.set(e, t);
1487
1487
  }
1488
- function Ea(e) {
1488
+ function ka(e) {
1489
1489
  const t = ln.get(e);
1490
1490
  return ln.delete(e), t;
1491
1491
  }
1492
- let ka = () => location.protocol + "//" + location.host;
1492
+ let $a = () => location.protocol + "//" + location.host;
1493
1493
  function ir(e, t) {
1494
1494
  const { pathname: n, search: o, hash: r } = t, s = e.indexOf("#");
1495
1495
  if (s > -1) {
1496
1496
  let a = r.includes(e.slice(s)) ? e.slice(s).length : 1, i = r.slice(a);
1497
- return i[0] !== "/" && (i = "/" + i), Kn(i, "");
1497
+ return i[0] !== "/" && (i = "/" + i), Qn(i, "");
1498
1498
  }
1499
- return Kn(n, e) + o + r;
1499
+ return Qn(n, e) + o + r;
1500
1500
  }
1501
- function $a(e, t, n, o) {
1501
+ function Na(e, t, n, o) {
1502
1502
  let r = [], s = [], a = null;
1503
1503
  const i = ({ state: d }) => {
1504
1504
  const f = ir(e, location), h = n.value, y = t.value;
@@ -1557,7 +1557,7 @@ function eo(e, t, n, o = !1, r = !1) {
1557
1557
  scroll: r ? Lt() : null
1558
1558
  };
1559
1559
  }
1560
- function Na(e) {
1560
+ function Oa(e) {
1561
1561
  const { history: t, location: n } = window, o = {
1562
1562
  value: ir(e, n)
1563
1563
  }, r = { value: t.state };
@@ -1573,7 +1573,7 @@ function Na(e) {
1573
1573
  scroll: null
1574
1574
  }, !0);
1575
1575
  function s(c, l, p) {
1576
- const u = e.indexOf("#"), d = u > -1 ? (n.host && document.querySelector("base") ? e : e.slice(u)) + c : ka() + e + c;
1576
+ const u = e.indexOf("#"), d = u > -1 ? (n.host && document.querySelector("base") ? e : e.slice(u)) + c : $a() + e + c;
1577
1577
  try {
1578
1578
  t[p ? "replaceState" : "pushState"](l, "", d), r.value = l;
1579
1579
  } catch (f) {
@@ -1618,9 +1618,9 @@ You can find more information at https://router.vuejs.org/guide/migration/#Usage
1618
1618
  replace: a
1619
1619
  };
1620
1620
  }
1621
- function Oa(e) {
1622
- e = va(e);
1623
- const t = Na(e), n = $a(e, t.state, t.location, t.replace);
1621
+ function xa(e) {
1622
+ e = ga(e);
1623
+ const t = Oa(e), n = Na(e, t.state, t.location, t.replace);
1624
1624
  function o(s, a = !0) {
1625
1625
  a || n.pauseListeners(), history.go(s);
1626
1626
  }
@@ -1629,7 +1629,7 @@ function Oa(e) {
1629
1629
  location: "",
1630
1630
  base: e,
1631
1631
  go: o,
1632
- createHref: ya.bind(null, e)
1632
+ createHref: wa.bind(null, e)
1633
1633
  }, t, n);
1634
1634
  return Object.defineProperty(r, "location", {
1635
1635
  enumerable: !0,
@@ -1639,7 +1639,7 @@ function Oa(e) {
1639
1639
  get: () => t.state.value
1640
1640
  }), r;
1641
1641
  }
1642
- function Vt(e) {
1642
+ function At(e) {
1643
1643
  return typeof e == "string" || e && typeof e == "object";
1644
1644
  }
1645
1645
  function cr(e) {
@@ -1650,7 +1650,7 @@ var to;
1650
1650
  (function(e) {
1651
1651
  e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
1652
1652
  })(to || (to = {}));
1653
- const xa = {
1653
+ const Sa = {
1654
1654
  1({ location: e, currentLocation: t }) {
1655
1655
  return `No match for
1656
1656
  ${JSON.stringify(e)}${t ? `
@@ -1658,7 +1658,7 @@ while being at
1658
1658
  ` + JSON.stringify(t) : ""}`;
1659
1659
  },
1660
1660
  2({ from: e, to: t }) {
1661
- return `Redirected from "${e.fullPath}" to "${Ca(t)}" via a navigation guard.`;
1661
+ return `Redirected from "${e.fullPath}" to "${Pa(t)}" via a navigation guard.`;
1662
1662
  },
1663
1663
  4({ from: e, to: t }) {
1664
1664
  return `Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`;
@@ -1671,7 +1671,7 @@ while being at
1671
1671
  }
1672
1672
  };
1673
1673
  function Je(e, t) {
1674
- return process.env.NODE_ENV !== "production" ? j(new Error(xa[e](t)), {
1674
+ return process.env.NODE_ENV !== "production" ? j(new Error(Sa[e](t)), {
1675
1675
  type: e,
1676
1676
  [un]: !0
1677
1677
  }, t) : j(new Error(), {
@@ -1682,25 +1682,25 @@ function Je(e, t) {
1682
1682
  function he(e, t) {
1683
1683
  return e instanceof Error && un in e && (t == null || !!(e.type & t));
1684
1684
  }
1685
- const Sa = ["params", "query", "hash"];
1686
- function Ca(e) {
1685
+ const Ca = ["params", "query", "hash"];
1686
+ function Pa(e) {
1687
1687
  if (typeof e == "string")
1688
1688
  return e;
1689
1689
  if (e.path != null)
1690
1690
  return e.path;
1691
1691
  const t = {};
1692
- for (const n of Sa)
1692
+ for (const n of Ca)
1693
1693
  n in e && (t[n] = e[n]);
1694
1694
  return JSON.stringify(t, null, 2);
1695
1695
  }
1696
- const no = "[^/]+?", Pa = {
1696
+ const no = "[^/]+?", Ia = {
1697
1697
  sensitive: !1,
1698
1698
  strict: !1,
1699
1699
  start: !0,
1700
1700
  end: !0
1701
- }, Ia = /[.+*?^${}()[\]/\\]/g;
1702
- function Da(e, t) {
1703
- const n = j({}, Pa, t), o = [];
1701
+ }, Da = /[.+*?^${}()[\]/\\]/g;
1702
+ function Va(e, t) {
1703
+ const n = j({}, Ia, t), o = [];
1704
1704
  let r = n.start ? "^" : "";
1705
1705
  const s = [];
1706
1706
  for (const l of e) {
@@ -1713,7 +1713,7 @@ function Da(e, t) {
1713
1713
  const d = l[u];
1714
1714
  let f = 40 + (n.sensitive ? 0.25 : 0);
1715
1715
  if (d.type === 0)
1716
- u || (r += "/"), r += d.value.replace(Ia, "\\$&"), f += 40;
1716
+ u || (r += "/"), r += d.value.replace(Da, "\\$&"), f += 40;
1717
1717
  else if (d.type === 1) {
1718
1718
  const { value: h, repeatable: y, optional: k, regexp: _ } = d;
1719
1719
  s.push({
@@ -1726,8 +1726,8 @@ function Da(e, t) {
1726
1726
  f += 10;
1727
1727
  try {
1728
1728
  new RegExp(`(${x})`);
1729
- } catch (F) {
1730
- throw new Error(`Invalid custom RegExp for param "${h}" (${x}): ` + F.message);
1729
+ } catch (H) {
1730
+ throw new Error(`Invalid custom RegExp for param "${h}" (${x}): ` + H.message);
1731
1731
  }
1732
1732
  }
1733
1733
  let T = y ? `((?:${x})(?:/(?:${x}))*)` : `(${x})`;
@@ -1785,7 +1785,7 @@ function Da(e, t) {
1785
1785
  stringify: c
1786
1786
  };
1787
1787
  }
1788
- function Va(e, t) {
1788
+ function Aa(e, t) {
1789
1789
  let n = 0;
1790
1790
  for (; n < e.length && n < t.length; ) {
1791
1791
  const o = t[n] - e[n];
@@ -1799,7 +1799,7 @@ function lr(e, t) {
1799
1799
  let n = 0;
1800
1800
  const o = e.score, r = t.score;
1801
1801
  for (; n < o.length && n < r.length; ) {
1802
- const s = Va(o[n], r[n]);
1802
+ const s = Aa(o[n], r[n]);
1803
1803
  if (s)
1804
1804
  return s;
1805
1805
  n++;
@@ -1816,15 +1816,15 @@ function oo(e) {
1816
1816
  const t = e[e.length - 1];
1817
1817
  return e.length > 0 && t[t.length - 1] < 0;
1818
1818
  }
1819
- const Aa = {
1819
+ const Ta = {
1820
1820
  type: 0,
1821
1821
  value: ""
1822
- }, Ta = /[a-zA-Z0-9_]/;
1823
- function Ra(e) {
1822
+ }, Ra = /[a-zA-Z0-9_]/;
1823
+ function ja(e) {
1824
1824
  if (!e)
1825
1825
  return [[]];
1826
1826
  if (e === "/")
1827
- return [[Aa]];
1827
+ return [[Ta]];
1828
1828
  if (!e.startsWith("/"))
1829
1829
  throw new Error(process.env.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
1830
1830
  function t(f) {
@@ -1865,7 +1865,7 @@ function Ra(e) {
1865
1865
  d(), n = o;
1866
1866
  break;
1867
1867
  case 1:
1868
- c === "(" ? n = 2 : Ta.test(c) ? d() : (u(), n = 0, c !== "*" && c !== "?" && c !== "+" && i--);
1868
+ c === "(" ? n = 2 : Ra.test(c) ? d() : (u(), n = 0, c !== "*" && c !== "?" && c !== "+" && i--);
1869
1869
  break;
1870
1870
  case 2:
1871
1871
  c === ")" ? p[p.length - 1] == "\\" ? p = p.slice(0, -1) + c : n = 3 : p += c;
@@ -1880,8 +1880,8 @@ function Ra(e) {
1880
1880
  }
1881
1881
  return n === 2 && t(`Unfinished custom RegExp for param "${l}"`), u(), a(), r;
1882
1882
  }
1883
- function ja(e, t, n) {
1884
- const o = Da(Ra(e.path), n);
1883
+ function La(e, t, n) {
1884
+ const o = Va(ja(e.path), n);
1885
1885
  if (process.env.NODE_ENV !== "production") {
1886
1886
  const s = /* @__PURE__ */ new Set();
1887
1887
  for (const a of o.keys)
@@ -1896,7 +1896,7 @@ function ja(e, t, n) {
1896
1896
  });
1897
1897
  return t && !r.record.aliasOf == !t.record.aliasOf && t.children.push(r), r;
1898
1898
  }
1899
- function La(e, t) {
1899
+ function Ma(e, t) {
1900
1900
  const n = [], o = /* @__PURE__ */ new Map();
1901
1901
  t = io({ strict: !1, end: !0, sensitive: !1 }, t);
1902
1902
  function r(u) {
@@ -1904,11 +1904,11 @@ function La(e, t) {
1904
1904
  }
1905
1905
  function s(u, d, f) {
1906
1906
  const h = !f, y = so(u);
1907
- process.env.NODE_ENV !== "production" && Ua(y, d), y.aliasOf = f && f.record;
1907
+ process.env.NODE_ENV !== "production" && Ha(y, d), y.aliasOf = f && f.record;
1908
1908
  const k = io(t, u), _ = [y];
1909
1909
  if ("alias" in u) {
1910
- const F = typeof u.alias == "string" ? [u.alias] : u.alias;
1911
- for (const N of F)
1910
+ const H = typeof u.alias == "string" ? [u.alias] : u.alias;
1911
+ for (const N of H)
1912
1912
  _.push(
1913
1913
  // we need to normalize again to ensure the `mods` property
1914
1914
  // being non enumerable
@@ -1925,16 +1925,16 @@ function La(e, t) {
1925
1925
  );
1926
1926
  }
1927
1927
  let x, T;
1928
- for (const F of _) {
1929
- const { path: N } = F;
1928
+ for (const H of _) {
1929
+ const { path: N } = H;
1930
1930
  if (d && N[0] !== "/") {
1931
1931
  const P = d.record.path, g = P[P.length - 1] === "/" ? "" : "/";
1932
- F.path = d.record.path + (N && g + N);
1932
+ H.path = d.record.path + (N && g + N);
1933
1933
  }
1934
- if (process.env.NODE_ENV !== "production" && F.path === "*")
1934
+ if (process.env.NODE_ENV !== "production" && H.path === "*")
1935
1935
  throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
1936
1936
  See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);
1937
- if (x = ja(F, d, k), process.env.NODE_ENV !== "production" && d && N[0] === "/" && Ha(x, d), f ? (f.alias.push(x), process.env.NODE_ENV !== "production" && Wa(f, x)) : (T = T || x, T !== x && T.alias.push(x), h && u.name && !ao(x) && (process.env.NODE_ENV !== "production" && Fa(u, d), a(u.name))), ur(x) && c(x), y.children) {
1937
+ if (x = La(H, d, k), process.env.NODE_ENV !== "production" && d && N[0] === "/" && za(x, d), f ? (f.alias.push(x), process.env.NODE_ENV !== "production" && Ua(f, x)) : (T = T || x, T !== x && T.alias.push(x), h && u.name && !ao(x) && (process.env.NODE_ENV !== "production" && Fa(u, d), a(u.name))), ur(x) && c(x), y.children) {
1938
1938
  const P = y.children;
1939
1939
  for (let g = 0; g < P.length; g++)
1940
1940
  s(P[g], x, f && f.children[g]);
@@ -1958,7 +1958,7 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
1958
1958
  return n;
1959
1959
  }
1960
1960
  function c(u) {
1961
- const d = za(u, n);
1961
+ const d = qa(u, n);
1962
1962
  n.splice(d, 0, u), u.record.name && !ao(u) && o.set(u.record.name, u);
1963
1963
  }
1964
1964
  function l(u, d) {
@@ -1969,7 +1969,7 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
1969
1969
  location: u
1970
1970
  });
1971
1971
  if (process.env.NODE_ENV !== "production") {
1972
- const T = Object.keys(u.params || {}).filter((F) => !f.keys.find((N) => N.name === F));
1972
+ const T = Object.keys(u.params || {}).filter((H) => !f.keys.find((N) => N.name === H));
1973
1973
  T.length && I(`Discarded invalid param(s) "${T.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
1974
1974
  }
1975
1975
  k = f.record.name, h = j(
@@ -2003,7 +2003,7 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
2003
2003
  path: y,
2004
2004
  params: h,
2005
2005
  matched: _,
2006
- meta: Ba(_)
2006
+ meta: Wa(_)
2007
2007
  };
2008
2008
  }
2009
2009
  e.forEach((u) => s(u));
@@ -2033,7 +2033,7 @@ function so(e) {
2033
2033
  meta: e.meta || {},
2034
2034
  aliasOf: e.aliasOf,
2035
2035
  beforeEnter: e.beforeEnter,
2036
- props: Ma(e),
2036
+ props: Ba(e),
2037
2037
  children: e.children || [],
2038
2038
  instances: {},
2039
2039
  leaveGuards: /* @__PURE__ */ new Set(),
@@ -2047,7 +2047,7 @@ function so(e) {
2047
2047
  value: {}
2048
2048
  }), t;
2049
2049
  }
2050
- function Ma(e) {
2050
+ function Ba(e) {
2051
2051
  const t = {}, n = e.props || !1;
2052
2052
  if ("component" in e)
2053
2053
  t.default = n;
@@ -2064,7 +2064,7 @@ function ao(e) {
2064
2064
  }
2065
2065
  return !1;
2066
2066
  }
2067
- function Ba(e) {
2067
+ function Wa(e) {
2068
2068
  return e.reduce((t, n) => j(t, n.meta), {});
2069
2069
  }
2070
2070
  function io(e, t) {
@@ -2076,7 +2076,7 @@ function io(e, t) {
2076
2076
  function dn(e, t) {
2077
2077
  return e.name === t.name && e.optional === t.optional && e.repeatable === t.repeatable;
2078
2078
  }
2079
- function Wa(e, t) {
2079
+ function Ua(e, t) {
2080
2080
  for (const n of e.keys)
2081
2081
  if (!n.optional && !t.keys.find(dn.bind(null, n)))
2082
2082
  return I(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
@@ -2084,7 +2084,7 @@ function Wa(e, t) {
2084
2084
  if (!n.optional && !e.keys.find(dn.bind(null, n)))
2085
2085
  return I(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
2086
2086
  }
2087
- function Ua(e, t) {
2087
+ function Ha(e, t) {
2088
2088
  t && t.record.name && !e.name && !e.path && I(`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.`);
2089
2089
  }
2090
2090
  function Fa(e, t) {
@@ -2092,21 +2092,21 @@ function Fa(e, t) {
2092
2092
  if (n.record.name === e.name)
2093
2093
  throw new Error(`A route named "${String(e.name)}" has been added as a ${t === n ? "child" : "descendant"} of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.`);
2094
2094
  }
2095
- function Ha(e, t) {
2095
+ function za(e, t) {
2096
2096
  for (const n of t.keys)
2097
2097
  if (!e.keys.find(dn.bind(null, n)))
2098
2098
  return I(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`);
2099
2099
  }
2100
- function za(e, t) {
2100
+ function qa(e, t) {
2101
2101
  let n = 0, o = t.length;
2102
2102
  for (; n !== o; ) {
2103
2103
  const s = n + o >> 1;
2104
2104
  lr(e, t[s]) < 0 ? o = s : n = s + 1;
2105
2105
  }
2106
- const r = qa(e);
2106
+ const r = Ga(e);
2107
2107
  return r && (o = t.lastIndexOf(r, o - 1), process.env.NODE_ENV !== "production" && o < 0 && I(`Finding ancestor route "${r.record.path}" failed for "${e.record.path}"`)), o;
2108
2108
  }
2109
- function qa(e) {
2109
+ function Ga(e) {
2110
2110
  let t = e;
2111
2111
  for (; t = t.parent; )
2112
2112
  if (ur(t) && lr(e, t) === 0)
@@ -2115,7 +2115,7 @@ function qa(e) {
2115
2115
  function ur({ record: e }) {
2116
2116
  return !!(e.name || e.components && Object.keys(e.components).length || e.redirect);
2117
2117
  }
2118
- function Ga(e) {
2118
+ function Ja(e) {
2119
2119
  const t = {};
2120
2120
  if (e === "" || e === "?")
2121
2121
  return t;
@@ -2134,7 +2134,7 @@ function co(e) {
2134
2134
  let t = "";
2135
2135
  for (let n in e) {
2136
2136
  const o = e[n];
2137
- if (n = ca(n), o == null) {
2137
+ if (n = la(n), o == null) {
2138
2138
  o !== void 0 && (t += (t.length ? "&" : "") + n);
2139
2139
  continue;
2140
2140
  }
@@ -2144,7 +2144,7 @@ function co(e) {
2144
2144
  }
2145
2145
  return t;
2146
2146
  }
2147
- function Ja(e) {
2147
+ function Ya(e) {
2148
2148
  const t = {};
2149
2149
  for (const n in e) {
2150
2150
  const o = e[n];
@@ -2152,7 +2152,7 @@ function Ja(e) {
2152
2152
  }
2153
2153
  return t;
2154
2154
  }
2155
- const Ya = Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : ""), lo = Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : ""), xn = Symbol(process.env.NODE_ENV !== "production" ? "router" : ""), dr = Symbol(process.env.NODE_ENV !== "production" ? "route location" : ""), pn = Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
2155
+ const Qa = Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : ""), lo = Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : ""), xn = Symbol(process.env.NODE_ENV !== "production" ? "router" : ""), dr = Symbol(process.env.NODE_ENV !== "production" ? "route location" : ""), pn = Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
2156
2156
  function et() {
2157
2157
  let e = [];
2158
2158
  function t(o) {
@@ -2178,7 +2178,7 @@ function Ee(e, t, n, o, r, s = (a) => a()) {
2178
2178
  d === !1 ? c(Je(4, {
2179
2179
  from: n,
2180
2180
  to: t
2181
- })) : d instanceof Error ? c(d) : Vt(d) ? c(Je(2, {
2181
+ })) : d instanceof Error ? c(d) : At(d) ? c(Je(2, {
2182
2182
  from: t,
2183
2183
  to: d
2184
2184
  })) : (a && // since enterCallbackArray is truthy, both record and name also are
@@ -2230,7 +2230,7 @@ function Yt(e, t, n, o, r = (s) => s()) {
2230
2230
  process.env.NODE_ENV !== "production" && !("catch" in l) && (I(`Component "${i}" in record with path "${a.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`), l = Promise.resolve(l)), s.push(() => l.then((p) => {
2231
2231
  if (!p)
2232
2232
  throw new Error(`Couldn't resolve component "${i}" at "${a.path}"`);
2233
- const u = Qs(p) ? p.default : p;
2233
+ const u = Xs(p) ? p.default : p;
2234
2234
  a.mods[i] = p, a.components[i] = u;
2235
2235
  const d = (u.__vccOpts || u)[t];
2236
2236
  return d && Ee(d, n, o, a, i, r)();
@@ -2245,7 +2245,7 @@ function uo(e) {
2245
2245
  let o = !1, r = null;
2246
2246
  const s = B(() => {
2247
2247
  const p = S(e.to);
2248
- return process.env.NODE_ENV !== "production" && (!o || p !== r) && (Vt(p) || (o ? I(`Invalid value for prop "to" in useLink()
2248
+ return process.env.NODE_ENV !== "production" && (!o || p !== r) && (At(p) || (o ? I(`Invalid value for prop "to" in useLink()
2249
2249
  - to:`, p, `
2250
2250
  - previous to:`, r, `
2251
2251
  - props:`, e) : I(`Invalid value for prop "to" in useLink()
@@ -2267,9 +2267,9 @@ function uo(e) {
2267
2267
  po(d) === y && // avoid comparing the child with its parent
2268
2268
  f[f.length - 1].path !== y ? f.findIndex(Se.bind(null, p[u - 2])) : h
2269
2269
  );
2270
- }), i = B(() => a.value > -1 && ti(n.params, s.value.params)), c = B(() => a.value > -1 && a.value === n.matched.length - 1 && ar(n.params, s.value.params));
2270
+ }), i = B(() => a.value > -1 && ni(n.params, s.value.params)), c = B(() => a.value > -1 && a.value === n.matched.length - 1 && ar(n.params, s.value.params));
2271
2271
  function l(p = {}) {
2272
- if (ei(p)) {
2272
+ if (ti(p)) {
2273
2273
  const u = t[S(e.replace) ? "replace" : "push"](
2274
2274
  S(e.to)
2275
2275
  // avoid uncaught errors are they are logged anyway
@@ -2287,8 +2287,8 @@ function uo(e) {
2287
2287
  isExactActive: c.value,
2288
2288
  error: null
2289
2289
  };
2290
- p.__vrl_devtools = p.__vrl_devtools || [], p.__vrl_devtools.push(u), Gr(() => {
2291
- u.route = s.value, u.isActive = i.value, u.isExactActive = c.value, u.error = Vt(S(e.to)) ? null : 'Invalid "to" value';
2290
+ p.__vrl_devtools = p.__vrl_devtools || [], p.__vrl_devtools.push(u), Jr(() => {
2291
+ u.route = s.value, u.isActive = i.value, u.isExactActive = c.value, u.error = At(S(e.to)) ? null : 'Invalid "to" value';
2292
2292
  }, { flush: "post" });
2293
2293
  }
2294
2294
  }
@@ -2300,10 +2300,10 @@ function uo(e) {
2300
2300
  navigate: l
2301
2301
  };
2302
2302
  }
2303
- function Qa(e) {
2303
+ function Xa(e) {
2304
2304
  return e.length === 1 ? e[0] : e;
2305
2305
  }
2306
- const Xa = /* @__PURE__ */ ae({
2306
+ const Za = /* @__PURE__ */ ae({
2307
2307
  name: "RouterLink",
2308
2308
  compatConfig: { MODE: 3 },
2309
2309
  props: {
@@ -2333,7 +2333,7 @@ const Xa = /* @__PURE__ */ ae({
2333
2333
  [fo(e.exactActiveClass, o.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
2334
2334
  }));
2335
2335
  return () => {
2336
- const s = t.default && Qa(t.default(n));
2336
+ const s = t.default && Xa(t.default(n));
2337
2337
  return e.custom ? s : jo("a", {
2338
2338
  "aria-current": n.isExactActive ? e.ariaCurrentValue : null,
2339
2339
  href: n.href,
@@ -2344,8 +2344,8 @@ const Xa = /* @__PURE__ */ ae({
2344
2344
  }, s);
2345
2345
  };
2346
2346
  }
2347
- }), Za = Xa;
2348
- function ei(e) {
2347
+ }), ei = Za;
2348
+ function ti(e) {
2349
2349
  if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button !== void 0 && e.button !== 0)) {
2350
2350
  if (e.currentTarget && e.currentTarget.getAttribute) {
2351
2351
  const t = e.currentTarget.getAttribute("target");
@@ -2355,7 +2355,7 @@ function ei(e) {
2355
2355
  return e.preventDefault && e.preventDefault(), !0;
2356
2356
  }
2357
2357
  }
2358
- function ti(e, t) {
2358
+ function ni(e, t) {
2359
2359
  for (const n in t) {
2360
2360
  const o = t[n], r = e[n];
2361
2361
  if (typeof o == "string") {
@@ -2369,7 +2369,7 @@ function ti(e, t) {
2369
2369
  function po(e) {
2370
2370
  return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
2371
2371
  }
2372
- const fo = (e, t, n) => e ?? t ?? n, ni = /* @__PURE__ */ ae({
2372
+ const fo = (e, t, n) => e ?? t ?? n, oi = /* @__PURE__ */ ae({
2373
2373
  name: "RouterView",
2374
2374
  // #674 we manually inherit them
2375
2375
  inheritAttrs: !1,
@@ -2384,7 +2384,7 @@ const fo = (e, t, n) => e ?? t ?? n, ni = /* @__PURE__ */ ae({
2384
2384
  // https://github.com/vuejs/router/issues/1315
2385
2385
  compatConfig: { MODE: 3 },
2386
2386
  setup(e, { attrs: t, slots: n }) {
2387
- process.env.NODE_ENV !== "production" && ri();
2387
+ process.env.NODE_ENV !== "production" && si();
2388
2388
  const o = Oe(pn), r = B(() => e.route || o.value), s = Oe(lo, 0), a = B(() => {
2389
2389
  let l = S(s);
2390
2390
  const { matched: p } = r.value;
@@ -2393,7 +2393,7 @@ const fo = (e, t, n) => e ?? t ?? n, ni = /* @__PURE__ */ ae({
2393
2393
  l++;
2394
2394
  return l;
2395
2395
  }), i = B(() => r.value.matched[a.value]);
2396
- Ht(lo, B(() => a.value + 1)), Ht(Ya, i), Ht(pn, r);
2396
+ Ft(lo, B(() => a.value + 1)), Ft(Qa, i), Ft(pn, r);
2397
2397
  const c = C();
2398
2398
  return J(() => [c.value, i.value, e.name], ([l, p, u], [d, f, h]) => {
2399
2399
  p && (p.instances[u] = l, f && f !== p && l && l === d && (p.leaveGuards.size || (p.leaveGuards = f.leaveGuards), p.updateGuards.size || (p.updateGuards = f.updateGuards))), l && p && // if there is no instance but to and from are the same this might be
@@ -2434,8 +2434,8 @@ function ho(e, t) {
2434
2434
  const n = e(t);
2435
2435
  return n.length === 1 ? n[0] : n;
2436
2436
  }
2437
- const oi = ni;
2438
- function ri() {
2437
+ const ri = oi;
2438
+ function si() {
2439
2439
  const e = Le(), t = e.parent && e.parent.type.name, n = e.parent && e.parent.subTree && e.parent.subTree.type;
2440
2440
  if (t && (t === "KeepAlive" || t.includes("Transition")) && typeof n == "object" && n.name === "RouterView") {
2441
2441
  const o = t === "KeepAlive" ? "keep-alive" : "transition";
@@ -2452,7 +2452,7 @@ Use slot props instead:
2452
2452
  function tt(e, t) {
2453
2453
  const n = j({}, e, {
2454
2454
  // remove variables that can contain vue instances
2455
- matched: e.matched.map((o) => mi(o, ["instances", "children", "aliasOf"]))
2455
+ matched: e.matched.map((o) => vi(o, ["instances", "children", "aliasOf"]))
2456
2456
  });
2457
2457
  return {
2458
2458
  _custom: {
@@ -2464,19 +2464,19 @@ function tt(e, t) {
2464
2464
  }
2465
2465
  };
2466
2466
  }
2467
- function wt(e) {
2467
+ function bt(e) {
2468
2468
  return {
2469
2469
  _custom: {
2470
2470
  display: e
2471
2471
  }
2472
2472
  };
2473
2473
  }
2474
- let si = 0;
2475
- function ai(e, t, n) {
2474
+ let ai = 0;
2475
+ function ii(e, t, n) {
2476
2476
  if (t.__hasDevtools)
2477
2477
  return;
2478
2478
  t.__hasDevtools = !0;
2479
- const o = si++;
2479
+ const o = ai++;
2480
2480
  kn({
2481
2481
  id: "org.vuejs.router" + (o ? "." + o : ""),
2482
2482
  label: "Vue Router",
@@ -2505,7 +2505,7 @@ function ai(e, t, n) {
2505
2505
  }
2506
2506
  Z(u.__vrl_devtools) && (u.__devtoolsApi = r, u.__vrl_devtools.forEach((d) => {
2507
2507
  let f = d.route.path, h = mr, y = "", k = 0;
2508
- d.error ? (f = d.error, h = di, k = pi) : d.isExactActive ? (h = hr, y = "This is exactly active") : d.isActive && (h = fr, y = "This link is active"), p.tags.push({
2508
+ d.error ? (f = d.error, h = pi, k = fi) : d.isExactActive ? (h = hr, y = "This is exactly active") : d.isActive && (h = fr, y = "This link is active"), p.tags.push({
2509
2509
  label: f,
2510
2510
  textColor: k,
2511
2511
  tooltip: y,
@@ -2536,7 +2536,7 @@ function ai(e, t, n) {
2536
2536
  let a = 0;
2537
2537
  t.beforeEach((p, u) => {
2538
2538
  const d = {
2539
- guard: wt("beforeEach"),
2539
+ guard: bt("beforeEach"),
2540
2540
  from: tt(u, "Current Location during this navigation"),
2541
2541
  to: tt(p, "Target location")
2542
2542
  };
@@ -2554,7 +2554,7 @@ function ai(e, t, n) {
2554
2554
  });
2555
2555
  }), t.afterEach((p, u, d) => {
2556
2556
  const f = {
2557
- guard: wt("afterEach")
2557
+ guard: bt("afterEach")
2558
2558
  };
2559
2559
  d ? (f.failure = {
2560
2560
  _custom: {
@@ -2564,7 +2564,7 @@ function ai(e, t, n) {
2564
2564
  tooltip: "Navigation Failure",
2565
2565
  value: d
2566
2566
  }
2567
- }, f.status = wt("❌")) : f.status = wt("✅"), f.from = tt(u, "Current Location during this navigation"), f.to = tt(p, "Target location"), r.addTimelineEvent({
2567
+ }, f.status = bt("❌")) : f.status = bt("✅"), f.from = tt(u, "Current Location during this navigation"), f.to = tt(p, "Target location"), r.addTimelineEvent({
2568
2568
  layerId: s,
2569
2569
  event: {
2570
2570
  title: "End of navigation",
@@ -2602,16 +2602,16 @@ function ai(e, t, n) {
2602
2602
  if (p.app === e && p.inspectorId === i) {
2603
2603
  const u = n.getRoutes().find((d) => d.record.__vd_id === p.nodeId);
2604
2604
  u && (p.state = {
2605
- options: ci(u)
2605
+ options: li(u)
2606
2606
  });
2607
2607
  }
2608
2608
  }), r.sendInspectorTree(i), r.sendInspectorState(i);
2609
2609
  });
2610
2610
  }
2611
- function ii(e) {
2611
+ function ci(e) {
2612
2612
  return e.optional ? e.repeatable ? "*" : "?" : e.repeatable ? "+" : "";
2613
2613
  }
2614
- function ci(e) {
2614
+ function li(e) {
2615
2615
  const { record: t } = e, n = [
2616
2616
  { editable: !1, key: "path", value: t.path }
2617
2617
  ];
@@ -2626,7 +2626,7 @@ function ci(e) {
2626
2626
  _custom: {
2627
2627
  type: null,
2628
2628
  readOnly: !0,
2629
- display: e.keys.map((o) => `${o.name}${ii(o)}`).join(" "),
2629
+ display: e.keys.map((o) => `${o.name}${ci(o)}`).join(" "),
2630
2630
  tooltip: "Param keys",
2631
2631
  value: e.keys
2632
2632
  }
@@ -2657,13 +2657,13 @@ function ci(e) {
2657
2657
  }
2658
2658
  }), n;
2659
2659
  }
2660
- const pr = 15485081, fr = 2450411, hr = 8702998, li = 2282478, mr = 16486972, ui = 6710886, di = 16704226, pi = 12131356;
2660
+ const pr = 15485081, fr = 2450411, hr = 8702998, ui = 2282478, mr = 16486972, di = 6710886, pi = 16704226, fi = 12131356;
2661
2661
  function vr(e) {
2662
2662
  const t = [], { record: n } = e;
2663
2663
  n.name != null && t.push({
2664
2664
  label: String(n.name),
2665
2665
  textColor: 0,
2666
- backgroundColor: li
2666
+ backgroundColor: ui
2667
2667
  }), n.aliasOf && t.push({
2668
2668
  label: "alias",
2669
2669
  textColor: 0,
@@ -2683,18 +2683,18 @@ function vr(e) {
2683
2683
  }), n.redirect && t.push({
2684
2684
  label: typeof n.redirect == "string" ? `redirect: ${n.redirect}` : "redirects",
2685
2685
  textColor: 16777215,
2686
- backgroundColor: ui
2686
+ backgroundColor: di
2687
2687
  });
2688
2688
  let o = n.__vd_id;
2689
- return o == null && (o = String(fi++), n.__vd_id = o), {
2689
+ return o == null && (o = String(hi++), n.__vd_id = o), {
2690
2690
  id: o,
2691
2691
  label: n.path,
2692
2692
  tags: t,
2693
2693
  children: e.children.map(vr)
2694
2694
  };
2695
2695
  }
2696
- let fi = 0;
2697
- const hi = /^\/(.*)\/([a-z]*)$/;
2696
+ let hi = 0;
2697
+ const mi = /^\/(.*)\/([a-z]*)$/;
2698
2698
  function gr(e, t) {
2699
2699
  const n = t.matched.length && Se(t.matched[t.matched.length - 1], e.record);
2700
2700
  e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((o) => Se(o, e.record))), e.children.forEach((o) => gr(o, t));
@@ -2703,7 +2703,7 @@ function yr(e) {
2703
2703
  e.__vd_match = !1, e.children.forEach(yr);
2704
2704
  }
2705
2705
  function fn(e, t) {
2706
- const n = String(e.re).match(hi);
2706
+ const n = String(e.re).match(mi);
2707
2707
  if (e.__vd_match = !1, !n || n.length < 3)
2708
2708
  return !1;
2709
2709
  if (new RegExp(n[1].replace(/\$$/, ""), n[2]).test(t))
@@ -2711,20 +2711,20 @@ function fn(e, t) {
2711
2711
  const o = e.record.path.toLowerCase(), r = Ge(o);
2712
2712
  return !t.startsWith("/") && (r.includes(t) || o.includes(t)) || r.startsWith(t) || o.startsWith(t) || e.record.name && String(e.record.name).includes(t) ? !0 : e.children.some((s) => fn(s, t));
2713
2713
  }
2714
- function mi(e, t) {
2714
+ function vi(e, t) {
2715
2715
  const n = {};
2716
2716
  for (const o in e)
2717
2717
  t.includes(o) || (n[o] = e[o]);
2718
2718
  return n;
2719
2719
  }
2720
- function vi(e) {
2721
- const t = La(e.routes, e), n = e.parseQuery || Ga, o = e.stringifyQuery || co, r = e.history;
2720
+ function gi(e) {
2721
+ const t = Ma(e.routes, e), n = e.parseQuery || Ja, o = e.stringifyQuery || co, r = e.history;
2722
2722
  if (process.env.NODE_ENV !== "production" && !r)
2723
2723
  throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');
2724
- const s = et(), a = et(), i = et(), c = zr(_e);
2724
+ const s = et(), a = et(), i = et(), c = qr(_e);
2725
2725
  let l = _e;
2726
2726
  me && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
2727
- const p = Gt.bind(null, (v) => "" + v), u = Gt.bind(null, ua), d = (
2727
+ const p = Gt.bind(null, (v) => "" + v), u = Gt.bind(null, da), d = (
2728
2728
  // @ts-expect-error: intentionally avoid the type check
2729
2729
  Gt.bind(null, Ge)
2730
2730
  );
@@ -2752,7 +2752,7 @@ function vi(e) {
2752
2752
  href: Ce
2753
2753
  });
2754
2754
  }
2755
- if (process.env.NODE_ENV !== "production" && !Vt(v))
2755
+ if (process.env.NODE_ENV !== "production" && !At(v))
2756
2756
  return I(`router.resolve() was passed an invalid location. This will fail in production.
2757
2757
  - Location:`, v), _({});
2758
2758
  let E;
@@ -2771,8 +2771,8 @@ function vi(e) {
2771
2771
  }
2772
2772
  const O = t.resolve(E, $), L = v.hash || "";
2773
2773
  process.env.NODE_ENV !== "production" && L && !L.startsWith("#") && I(`A \`hash\` should always start with the character "#". Replace "${L}" with "#${L}".`), O.params = p(d(O.params));
2774
- const G = fa(o, j({}, v, {
2775
- hash: ia(L),
2774
+ const G = ha(o, j({}, v, {
2775
+ hash: ca(L),
2776
2776
  path: O.path
2777
2777
  })), R = r.createHref(G);
2778
2778
  return process.env.NODE_ENV !== "production" && (R.startsWith("//") ? I(`Location "${v}" resolved to "${R}". A resolved location cannot start with multiple slashes.`) : O.matched.length || I(`No match found for location with path "${v.path != null ? v.path : v}"`)), j({
@@ -2786,7 +2786,7 @@ function vi(e) {
2786
2786
  // numbers at `$route.query`, but at the point, the user will have to
2787
2787
  // use their own type anyway.
2788
2788
  // https://github.com/vuejs/router/issues/328#issuecomment-649481567
2789
- o === co ? Ja(v.query) : v.query || {}
2789
+ o === co ? Ya(v.query) : v.query || {}
2790
2790
  )
2791
2791
  }, O, {
2792
2792
  redirectedFrom: void 0,
@@ -2803,11 +2803,11 @@ function vi(e) {
2803
2803
  to: v
2804
2804
  });
2805
2805
  }
2806
- function F(v) {
2806
+ function H(v) {
2807
2807
  return g(v);
2808
2808
  }
2809
2809
  function N(v) {
2810
- return F(j(x(v), { replace: !0 }));
2810
+ return H(j(x(v), { replace: !0 }));
2811
2811
  }
2812
2812
  function P(v) {
2813
2813
  const $ = v.matched[v.matched.length - 1];
@@ -2844,7 +2844,7 @@ ${JSON.stringify(O, null, 2)}
2844
2844
  const q = E;
2845
2845
  q.redirectedFrom = $;
2846
2846
  let Ce;
2847
- return !G && Qn(o, O, E) && (Ce = Je(16, { to: q, from: O }), Fn(
2847
+ return !G && Kn(o, O, E) && (Ce = Je(16, { to: q, from: O }), Hn(
2848
2848
  O,
2849
2849
  O,
2850
2850
  // this is a push, the only way for it to be triggered from a
@@ -2853,25 +2853,25 @@ ${JSON.stringify(O, null, 2)}
2853
2853
  // This cannot be the first navigation because the initial location
2854
2854
  // cannot be manually navigated to
2855
2855
  !1
2856
- )), (Ce ? Promise.resolve(Ce) : m(q, O)).catch((Q) => he(Q) ? (
2856
+ )), (Ce ? Promise.resolve(Ce) : m(q, O)).catch((K) => he(K) ? (
2857
2857
  // navigation redirects still mark the router as ready
2858
2858
  he(
2859
- Q,
2859
+ K,
2860
2860
  2
2861
2861
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
2862
- ) ? Q : Wt(Q)
2862
+ ) ? K : Wt(K)
2863
2863
  ) : (
2864
2864
  // reject any unknown error
2865
- z(Q, q, O)
2866
- )).then((Q) => {
2867
- if (Q) {
2865
+ z(K, q, O)
2866
+ )).then((K) => {
2867
+ if (K) {
2868
2868
  if (he(
2869
- Q,
2869
+ K,
2870
2870
  2
2871
2871
  /* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
2872
2872
  ))
2873
2873
  return process.env.NODE_ENV !== "production" && // we are redirecting to the same location we were already at
2874
- Qn(o, _(Q.to), q) && // and we have done it a couple of times
2874
+ Kn(o, _(K.to), q) && // and we have done it a couple of times
2875
2875
  $ && // @ts-expect-error: added only in dev
2876
2876
  ($._count = $._count ? (
2877
2877
  // @ts-expect-error
@@ -2882,16 +2882,16 @@ ${JSON.stringify(O, null, 2)}
2882
2882
  j({
2883
2883
  // preserve an existing replacement but allow the redirect to override it
2884
2884
  replace: R
2885
- }, x(Q.to), {
2886
- state: typeof Q.to == "object" ? j({}, L, Q.to.state) : L,
2885
+ }, x(K.to), {
2886
+ state: typeof K.to == "object" ? j({}, L, K.to.state) : L,
2887
2887
  force: G
2888
2888
  }),
2889
2889
  // preserve the original redirectedFrom if any
2890
2890
  $ || q
2891
2891
  );
2892
2892
  } else
2893
- Q = D(q, O, !0, R, L);
2894
- return w(q, O, Q), Q;
2893
+ K = D(q, O, !0, R, L);
2894
+ return w(q, O, K), K;
2895
2895
  });
2896
2896
  }
2897
2897
  function W(v, $) {
@@ -2899,12 +2899,12 @@ ${JSON.stringify(O, null, 2)}
2899
2899
  return E ? Promise.reject(E) : Promise.resolve();
2900
2900
  }
2901
2901
  function b(v) {
2902
- const $ = vt.values().next().value;
2902
+ const $ = gt.values().next().value;
2903
2903
  return $ && typeof $.runWithContext == "function" ? $.runWithContext(v) : v();
2904
2904
  }
2905
2905
  function m(v, $) {
2906
2906
  let E;
2907
- const [O, L, G] = gi(v, $);
2907
+ const [O, L, G] = yi(v, $);
2908
2908
  E = Yt(O.reverse(), "beforeRouteLeave", v, $);
2909
2909
  for (const V of O)
2910
2910
  V.leaveGuards.forEach((q) => {
@@ -2954,11 +2954,11 @@ ${JSON.stringify(O, null, 2)}
2954
2954
  const R = $ === _e, V = me ? history.state : {};
2955
2955
  E && (O || R ? r.replace(v.fullPath, j({
2956
2956
  scroll: R && V && V.scroll
2957
- }, L)) : r.push(v.fullPath, L)), c.value = v, Fn(v, $, E, R), Wt();
2957
+ }, L)) : r.push(v.fullPath, L)), c.value = v, Hn(v, $, E, R), Wt();
2958
2958
  }
2959
- let H;
2959
+ let F;
2960
2960
  function ie() {
2961
- H || (H = r.listen((v, $, E) => {
2961
+ F || (F = r.listen((v, $, E) => {
2962
2962
  const O = _(v), L = P(O);
2963
2963
  if (L) {
2964
2964
  g(j(L, { replace: !0, force: !0 }), O).catch(at);
@@ -2966,7 +2966,7 @@ ${JSON.stringify(O, null, 2)}
2966
2966
  }
2967
2967
  l = O;
2968
2968
  const G = c.value;
2969
- me && _a(Zn(G.fullPath, E.delta), Lt()), m(O, G).catch((R) => he(
2969
+ me && Ea(Zn(G.fullPath, E.delta), Lt()), m(O, G).catch((R) => he(
2970
2970
  R,
2971
2971
  12
2972
2972
  /* ErrorTypes.NAVIGATION_CANCELLED */
@@ -3020,16 +3020,16 @@ ${JSON.stringify(O, null, 2)}
3020
3020
  function Wt(v) {
3021
3021
  return ee || (ee = !v, ie(), pe.list().forEach(([$, E]) => v ? E(v) : $()), pe.reset()), v;
3022
3022
  }
3023
- function Fn(v, $, E, O) {
3023
+ function Hn(v, $, E, O) {
3024
3024
  const { scrollBehavior: L } = e;
3025
3025
  if (!me || !L)
3026
3026
  return Promise.resolve();
3027
- const G = !E && Ea(Zn(v.fullPath, 0)) || (O || !E) && history.state && history.state.scroll || null;
3028
- return xe().then(() => L(v, $, G)).then((R) => R && ba(R)).catch((R) => z(R, v, $));
3027
+ const G = !E && ka(Zn(v.fullPath, 0)) || (O || !E) && history.state && history.state.scroll || null;
3028
+ return xe().then(() => L(v, $, G)).then((R) => R && _a(R)).catch((R) => z(R, v, $));
3029
3029
  }
3030
3030
  const Ut = (v) => r.go(v);
3031
- let Ft;
3032
- const vt = /* @__PURE__ */ new Set(), Fr = {
3031
+ let Ht;
3032
+ const gt = /* @__PURE__ */ new Set(), Fr = {
3033
3033
  currentRoute: c,
3034
3034
  listening: !0,
3035
3035
  addRoute: f,
@@ -3039,7 +3039,7 @@ ${JSON.stringify(O, null, 2)}
3039
3039
  getRoutes: y,
3040
3040
  resolve: _,
3041
3041
  options: e,
3042
- push: F,
3042
+ push: H,
3043
3043
  replace: N,
3044
3044
  go: Ut,
3045
3045
  back: () => Ut(-1),
@@ -3051,12 +3051,12 @@ ${JSON.stringify(O, null, 2)}
3051
3051
  isReady: X,
3052
3052
  install(v) {
3053
3053
  const $ = this;
3054
- v.component("RouterLink", Za), v.component("RouterView", oi), v.config.globalProperties.$router = $, Object.defineProperty(v.config.globalProperties, "$route", {
3054
+ v.component("RouterLink", ei), v.component("RouterView", ri), v.config.globalProperties.$router = $, Object.defineProperty(v.config.globalProperties, "$route", {
3055
3055
  enumerable: !0,
3056
3056
  get: () => S(c)
3057
3057
  }), me && // used for the initial navigation client side to avoid pushing
3058
3058
  // multiple times when the router is used in multiple apps
3059
- !Ft && c.value === _e && (Ft = !0, F(r.location).catch((L) => {
3059
+ !Ht && c.value === _e && (Ht = !0, H(r.location).catch((L) => {
3060
3060
  process.env.NODE_ENV !== "production" && I("Unexpected error when starting the router:", L);
3061
3061
  }));
3062
3062
  const E = {};
@@ -3065,11 +3065,11 @@ ${JSON.stringify(O, null, 2)}
3065
3065
  get: () => c.value[L],
3066
3066
  enumerable: !0
3067
3067
  });
3068
- v.provide(xn, $), v.provide(dr, qr(E)), v.provide(pn, c);
3068
+ v.provide(xn, $), v.provide(dr, Gr(E)), v.provide(pn, c);
3069
3069
  const O = v.unmount;
3070
- vt.add(v), v.unmount = function() {
3071
- vt.delete(v), vt.size < 1 && (l = _e, H && H(), H = null, c.value = _e, Ft = !1, ee = !1), O();
3072
- }, process.env.NODE_ENV !== "production" && me && ai(v, $, t);
3070
+ gt.add(v), v.unmount = function() {
3071
+ gt.delete(v), gt.size < 1 && (l = _e, F && F(), F = null, c.value = _e, Ht = !1, ee = !1), O();
3072
+ }, process.env.NODE_ENV !== "production" && me && ii(v, $, t);
3073
3073
  }
3074
3074
  };
3075
3075
  function Be(v) {
@@ -3077,7 +3077,7 @@ ${JSON.stringify(O, null, 2)}
3077
3077
  }
3078
3078
  return Fr;
3079
3079
  }
3080
- function gi(e, t) {
3080
+ function yi(e, t) {
3081
3081
  const n = [], o = [], r = [], s = Math.max(t.matched.length, e.matched.length);
3082
3082
  for (let a = 0; a < s; a++) {
3083
3083
  const i = t.matched[a];
@@ -3087,11 +3087,11 @@ function gi(e, t) {
3087
3087
  }
3088
3088
  return [n, o, r];
3089
3089
  }
3090
- vi({
3091
- history: Oa(),
3090
+ gi({
3091
+ history: xa(),
3092
3092
  routes: []
3093
3093
  });
3094
- function yi(e) {
3094
+ function wi(e) {
3095
3095
  return e && typeof e.then == "function";
3096
3096
  }
3097
3097
  Promise.resolve(!1);
@@ -3104,19 +3104,19 @@ function wr(e, t) {
3104
3104
  }, e);
3105
3105
  });
3106
3106
  }
3107
- function wi(e, t) {
3107
+ function bi(e, t) {
3108
3108
  return Math.floor(Math.random() * (t - e + 1) + e);
3109
3109
  }
3110
3110
  function Sn() {
3111
3111
  return Math.random().toString(36).substring(2);
3112
3112
  }
3113
- var mo = 0, Kt = 0;
3113
+ var mo = 0, Qt = 0;
3114
3114
  function Mt() {
3115
3115
  var e = (/* @__PURE__ */ new Date()).getTime();
3116
- return e === mo ? (Kt++, e * 1e3 + Kt) : (mo = e, Kt = 0, e * 1e3);
3116
+ return e === mo ? (Qt++, e * 1e3 + Qt) : (mo = e, Qt = 0, e * 1e3);
3117
3117
  }
3118
- var bi = Mt, _i = "native";
3119
- function Ei(e) {
3118
+ var _i = Mt, Ei = "native";
3119
+ function ki(e) {
3120
3120
  var t = {
3121
3121
  messagesCallback: null,
3122
3122
  bc: new BroadcastChannel(e),
@@ -3127,20 +3127,20 @@ function Ei(e) {
3127
3127
  t.messagesCallback && t.messagesCallback(n.data);
3128
3128
  }, t;
3129
3129
  }
3130
- function ki(e) {
3130
+ function $i(e) {
3131
3131
  e.bc.close(), e.subFns = [];
3132
3132
  }
3133
- function $i(e, t) {
3133
+ function Ni(e, t) {
3134
3134
  try {
3135
3135
  return e.bc.postMessage(t, !1), Ye;
3136
3136
  } catch (n) {
3137
3137
  return Promise.reject(n);
3138
3138
  }
3139
3139
  }
3140
- function Ni(e, t) {
3140
+ function Oi(e, t) {
3141
3141
  e.messagesCallback = t;
3142
3142
  }
3143
- function Oi() {
3143
+ function xi() {
3144
3144
  if (typeof window > "u")
3145
3145
  return !1;
3146
3146
  if (typeof BroadcastChannel == "function") {
@@ -3150,18 +3150,18 @@ function Oi() {
3150
3150
  } else
3151
3151
  return !1;
3152
3152
  }
3153
- function xi() {
3153
+ function Si() {
3154
3154
  return 150;
3155
3155
  }
3156
- var Si = {
3157
- create: Ei,
3158
- close: ki,
3159
- onMessage: Ni,
3160
- postMessage: $i,
3161
- canBeUsed: Oi,
3162
- type: _i,
3163
- averageResponseTime: xi,
3164
- microSeconds: bi
3156
+ var Ci = {
3157
+ create: ki,
3158
+ close: $i,
3159
+ onMessage: Oi,
3160
+ postMessage: Ni,
3161
+ canBeUsed: xi,
3162
+ type: Ei,
3163
+ averageResponseTime: Si,
3164
+ microSeconds: _i
3165
3165
  }, br = (
3166
3166
  /** @class */
3167
3167
  function() {
@@ -3173,14 +3173,14 @@ var Si = {
3173
3173
  }, e.prototype.add = function(t) {
3174
3174
  var n = this;
3175
3175
  this.map.set(t, _r()), this._to || (this._to = !0, setTimeout(function() {
3176
- n._to = !1, Ci(n);
3176
+ n._to = !1, Pi(n);
3177
3177
  }, 0));
3178
3178
  }, e.prototype.clear = function() {
3179
3179
  this.map.clear();
3180
3180
  }, e;
3181
3181
  }()
3182
3182
  );
3183
- function Ci(e) {
3183
+ function Pi(e) {
3184
3184
  for (var t = _r() - e.ttl, n = e.map[Symbol.iterator](); ; ) {
3185
3185
  var o = n.next().value;
3186
3186
  if (!o)
@@ -3199,9 +3199,9 @@ function Cn() {
3199
3199
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = JSON.parse(JSON.stringify(e));
3200
3200
  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;
3201
3201
  }
3202
- var Pi = Mt, Ii = "pubkey.broadcast-channel-0-", ye = "messages", Bt = {
3202
+ var Ii = Mt, Di = "pubkey.broadcast-channel-0-", ye = "messages", Bt = {
3203
3203
  durability: "relaxed"
3204
- }, Di = "idb";
3204
+ }, Vi = "idb";
3205
3205
  function Er() {
3206
3206
  if (typeof indexedDB < "u") return indexedDB;
3207
3207
  if (typeof window < "u") {
@@ -3214,8 +3214,8 @@ function Er() {
3214
3214
  function Pn(e) {
3215
3215
  e.commit && e.commit();
3216
3216
  }
3217
- function Vi(e) {
3218
- var t = Er(), n = Ii + e, o = t.open(n);
3217
+ function Ai(e) {
3218
+ var t = Er(), n = Di + e, o = t.open(n);
3219
3219
  return o.onupgradeneeded = function(r) {
3220
3220
  var s = r.target.result;
3221
3221
  s.createObjectStore(ye, {
@@ -3230,7 +3230,7 @@ function Vi(e) {
3230
3230
  };
3231
3231
  });
3232
3232
  }
3233
- function Ai(e, t, n) {
3233
+ function Ti(e, t, n) {
3234
3234
  var o = (/* @__PURE__ */ new Date()).getTime(), r = {
3235
3235
  uuid: t,
3236
3236
  time: o,
@@ -3246,7 +3246,7 @@ function Ai(e, t, n) {
3246
3246
  c.add(r), Pn(s);
3247
3247
  });
3248
3248
  }
3249
- function Ti(e, t) {
3249
+ function Ri(e, t) {
3250
3250
  var n = e.transaction(ye, "readonly", Bt), o = n.objectStore(ye), r = [], s = IDBKeyRange.bound(t + 1, 1 / 0);
3251
3251
  if (o.getAll) {
3252
3252
  var a = o.getAll(s);
@@ -3275,7 +3275,7 @@ function Ti(e, t) {
3275
3275
  };
3276
3276
  });
3277
3277
  }
3278
- function Ri(e, t) {
3278
+ function ji(e, t) {
3279
3279
  if (e.closed)
3280
3280
  return Promise.resolve([]);
3281
3281
  var n = e.db.transaction(ye, "readwrite", Bt), o = n.objectStore(ye);
@@ -3288,7 +3288,7 @@ function Ri(e, t) {
3288
3288
  });
3289
3289
  }));
3290
3290
  }
3291
- function ji(e, t) {
3291
+ function Li(e, t) {
3292
3292
  var n = (/* @__PURE__ */ new Date()).getTime() - t, o = e.transaction(ye, "readonly", Bt), r = o.objectStore(ye), s = [];
3293
3293
  return new Promise(function(a) {
3294
3294
  r.openCursor().onsuccess = function(i) {
@@ -3301,15 +3301,15 @@ function ji(e, t) {
3301
3301
  };
3302
3302
  });
3303
3303
  }
3304
- function Li(e) {
3305
- return ji(e.db, e.options.idb.ttl).then(function(t) {
3306
- return Ri(e, t.map(function(n) {
3304
+ function Mi(e) {
3305
+ return Li(e.db, e.options.idb.ttl).then(function(t) {
3306
+ return ji(e, t.map(function(n) {
3307
3307
  return n.id;
3308
3308
  }));
3309
3309
  });
3310
3310
  }
3311
- function Mi(e, t) {
3312
- return t = Cn(t), Vi(e).then(function(n) {
3311
+ function Bi(e, t) {
3312
+ return t = Cn(t), Ai(e).then(function(n) {
3313
3313
  var o = {
3314
3314
  closed: !1,
3315
3315
  lastCursorId: 0,
@@ -3340,17 +3340,17 @@ function kr(e) {
3340
3340
  return kr(e);
3341
3341
  });
3342
3342
  }
3343
- function Bi(e, t) {
3343
+ function Wi(e, t) {
3344
3344
  return !(e.uuid === t.uuid || t.eMIs.has(e.id) || e.data.time < t.messagesCallbackTime);
3345
3345
  }
3346
3346
  function $r(e) {
3347
- return e.closed || !e.messagesCallback ? Ye : Ti(e.db, e.lastCursorId).then(function(t) {
3347
+ return e.closed || !e.messagesCallback ? Ye : Ri(e.db, e.lastCursorId).then(function(t) {
3348
3348
  var n = t.filter(function(o) {
3349
3349
  return !!o;
3350
3350
  }).map(function(o) {
3351
3351
  return o.id > e.lastCursorId && (e.lastCursorId = o.id), o;
3352
3352
  }).filter(function(o) {
3353
- return Bi(o, e);
3353
+ return Wi(o, e);
3354
3354
  }).sort(function(o, r) {
3355
3355
  return o.time - r.time;
3356
3356
  });
@@ -3359,35 +3359,35 @@ function $r(e) {
3359
3359
  }), Ye;
3360
3360
  });
3361
3361
  }
3362
- function Wi(e) {
3362
+ function Ui(e) {
3363
3363
  e.closed = !0, e.db.close();
3364
3364
  }
3365
- function Ui(e, t) {
3365
+ function Hi(e, t) {
3366
3366
  return e.writeBlockPromise = e.writeBlockPromise.then(function() {
3367
- return Ai(e.db, e.uuid, t);
3367
+ return Ti(e.db, e.uuid, t);
3368
3368
  }).then(function() {
3369
- wi(0, 10) === 0 && Li(e);
3369
+ bi(0, 10) === 0 && Mi(e);
3370
3370
  }), e.writeBlockPromise;
3371
3371
  }
3372
3372
  function Fi(e, t, n) {
3373
3373
  e.messagesCallbackTime = n, e.messagesCallback = t, $r(e);
3374
3374
  }
3375
- function Hi() {
3375
+ function zi() {
3376
3376
  return !!Er();
3377
3377
  }
3378
- function zi(e) {
3378
+ function qi(e) {
3379
3379
  return e.idb.fallbackInterval * 2;
3380
3380
  }
3381
- var qi = {
3382
- create: Mi,
3383
- close: Wi,
3381
+ var Gi = {
3382
+ create: Bi,
3383
+ close: Ui,
3384
3384
  onMessage: Fi,
3385
- postMessage: Ui,
3386
- canBeUsed: Hi,
3387
- type: Di,
3388
- averageResponseTime: zi,
3389
- microSeconds: Pi
3390
- }, Gi = Mt, Ji = "pubkey.broadcastChannel-", Yi = "localstorage";
3385
+ postMessage: Hi,
3386
+ canBeUsed: zi,
3387
+ type: Vi,
3388
+ averageResponseTime: qi,
3389
+ microSeconds: Ii
3390
+ }, Ji = Mt, Yi = "pubkey.broadcastChannel-", Qi = "localstorage";
3391
3391
  function Nr() {
3392
3392
  var e;
3393
3393
  if (typeof window > "u") return null;
@@ -3398,7 +3398,7 @@ function Nr() {
3398
3398
  return e;
3399
3399
  }
3400
3400
  function Or(e) {
3401
- return Ji + e;
3401
+ return Yi + e;
3402
3402
  }
3403
3403
  function Ki(e, t) {
3404
3404
  return new Promise(function(n) {
@@ -3415,16 +3415,16 @@ function Ki(e, t) {
3415
3415
  });
3416
3416
  });
3417
3417
  }
3418
- function Qi(e, t) {
3418
+ function Xi(e, t) {
3419
3419
  var n = Or(e), o = function(r) {
3420
3420
  r.key === n && t(JSON.parse(r.newValue));
3421
3421
  };
3422
3422
  return window.addEventListener("storage", o), o;
3423
3423
  }
3424
- function Xi(e) {
3424
+ function Zi(e) {
3425
3425
  window.removeEventListener("storage", e);
3426
3426
  }
3427
- function Zi(e, t) {
3427
+ function ec(e, t) {
3428
3428
  if (t = Cn(t), !xr())
3429
3429
  throw new Error("BroadcastChannel: localstorage cannot be used");
3430
3430
  var n = Sn(), o = new br(t.localstorage.removeTimeout), r = {
@@ -3433,14 +3433,14 @@ function Zi(e, t) {
3433
3433
  eMIs: o
3434
3434
  // emittedMessagesIds
3435
3435
  };
3436
- return r.listener = Qi(e, function(s) {
3436
+ return r.listener = Xi(e, function(s) {
3437
3437
  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)));
3438
3438
  }), r;
3439
3439
  }
3440
- function ec(e) {
3441
- Xi(e.listener);
3440
+ function tc(e) {
3441
+ Zi(e.listener);
3442
3442
  }
3443
- function tc(e, t, n) {
3443
+ function nc(e, t, n) {
3444
3444
  e.messagesCallbackTime = n, e.messagesCallback = t;
3445
3445
  }
3446
3446
  function xr() {
@@ -3454,31 +3454,31 @@ function xr() {
3454
3454
  }
3455
3455
  return !0;
3456
3456
  }
3457
- function nc() {
3457
+ function oc() {
3458
3458
  var e = 120, t = navigator.userAgent.toLowerCase();
3459
3459
  return t.includes("safari") && !t.includes("chrome") ? e * 2 : e;
3460
3460
  }
3461
- var oc = {
3462
- create: Zi,
3463
- close: ec,
3464
- onMessage: tc,
3461
+ var rc = {
3462
+ create: ec,
3463
+ close: tc,
3464
+ onMessage: nc,
3465
3465
  postMessage: Ki,
3466
3466
  canBeUsed: xr,
3467
- type: Yi,
3468
- averageResponseTime: nc,
3469
- microSeconds: Gi
3470
- }, rc = Mt, sc = "simulate", In = /* @__PURE__ */ new Set();
3471
- function ac(e) {
3467
+ type: Qi,
3468
+ averageResponseTime: oc,
3469
+ microSeconds: Ji
3470
+ }, sc = Mt, ac = "simulate", In = /* @__PURE__ */ new Set();
3471
+ function ic(e) {
3472
3472
  var t = {
3473
3473
  name: e,
3474
3474
  messagesCallback: null
3475
3475
  };
3476
3476
  return In.add(t), t;
3477
3477
  }
3478
- function ic(e) {
3478
+ function cc(e) {
3479
3479
  In.delete(e);
3480
3480
  }
3481
- function cc(e, t) {
3481
+ function lc(e, t) {
3482
3482
  return new Promise(function(n) {
3483
3483
  return setTimeout(function() {
3484
3484
  var o = Array.from(In);
@@ -3494,35 +3494,35 @@ function cc(e, t) {
3494
3494
  }, 5);
3495
3495
  });
3496
3496
  }
3497
- function lc(e, t) {
3497
+ function uc(e, t) {
3498
3498
  e.messagesCallback = t;
3499
3499
  }
3500
- function uc() {
3500
+ function dc() {
3501
3501
  return !0;
3502
3502
  }
3503
- function dc() {
3503
+ function pc() {
3504
3504
  return 5;
3505
3505
  }
3506
- var pc = {
3507
- create: ac,
3508
- close: ic,
3509
- onMessage: lc,
3510
- postMessage: cc,
3511
- canBeUsed: uc,
3512
- type: sc,
3513
- averageResponseTime: dc,
3514
- microSeconds: rc
3506
+ var fc = {
3507
+ create: ic,
3508
+ close: cc,
3509
+ onMessage: uc,
3510
+ postMessage: lc,
3511
+ canBeUsed: dc,
3512
+ type: ac,
3513
+ averageResponseTime: pc,
3514
+ microSeconds: sc
3515
3515
  }, vo = [
3516
- Si,
3516
+ Ci,
3517
3517
  // fastest
3518
- qi,
3519
- oc
3518
+ Gi,
3519
+ rc
3520
3520
  ];
3521
- function fc(e) {
3521
+ function hc(e) {
3522
3522
  var t = [].concat(e.methods, vo).filter(Boolean);
3523
3523
  if (e.type) {
3524
3524
  if (e.type === "simulate")
3525
- return pc;
3525
+ return fc;
3526
3526
  var n = t.find(function(r) {
3527
3527
  return r.type === e.type;
3528
3528
  });
@@ -3540,11 +3540,11 @@ function fc(e) {
3540
3540
  return r.type;
3541
3541
  })));
3542
3542
  }
3543
- var Sr = /* @__PURE__ */ new Set(), hc = 0, Dn = function(e, t) {
3544
- this.id = hc++, Sr.add(this), this.name = e, this.options = Cn(t), this.method = fc(this.options), this._iL = !1, this._onML = null, this._addEL = {
3543
+ var Sr = /* @__PURE__ */ new Set(), mc = 0, Dn = function(e, t) {
3544
+ this.id = mc++, Sr.add(this), this.name = e, this.options = Cn(t), this.method = hc(this.options), this._iL = !1, this._onML = null, this._addEL = {
3545
3545
  message: [],
3546
3546
  internal: []
3547
- }, this._uMP = /* @__PURE__ */ new Set(), this._befC = [], this._prepP = null, mc(this);
3547
+ }, this._uMP = /* @__PURE__ */ new Set(), this._befC = [], this._prepP = null, vc(this);
3548
3548
  };
3549
3549
  Dn._pubkey = !0;
3550
3550
  Dn.prototype = {
@@ -3617,9 +3617,9 @@ function go(e, t, n) {
3617
3617
  }), a;
3618
3618
  });
3619
3619
  }
3620
- function mc(e) {
3620
+ function vc(e) {
3621
3621
  var t = e.method.create(e.name, e.options);
3622
- yi(t) ? (e._prepP = t, t.then(function(n) {
3622
+ wi(t) ? (e._prepP = t, t.then(function(n) {
3623
3623
  e._state = n;
3624
3624
  })) : e._state = t;
3625
3625
  }
@@ -3627,14 +3627,14 @@ function Cr(e) {
3627
3627
  return e._addEL.message.length > 0 || e._addEL.internal.length > 0;
3628
3628
  }
3629
3629
  function yo(e, t, n) {
3630
- e._addEL[t].push(n), vc(e);
3630
+ e._addEL[t].push(n), gc(e);
3631
3631
  }
3632
3632
  function wo(e, t, n) {
3633
3633
  e._addEL[t] = e._addEL[t].filter(function(o) {
3634
3634
  return o !== n;
3635
- }), gc(e);
3635
+ }), yc(e);
3636
3636
  }
3637
- function vc(e) {
3637
+ function gc(e) {
3638
3638
  if (!e._iL && Cr(e)) {
3639
3639
  var t = function(o) {
3640
3640
  e._addEL[o.type].forEach(function(r) {
@@ -3647,14 +3647,14 @@ function vc(e) {
3647
3647
  }) : (e._iL = !0, e.method.onMessage(e._state, t, n));
3648
3648
  }
3649
3649
  }
3650
- function gc(e) {
3650
+ function yc(e) {
3651
3651
  if (e._iL && !Cr(e)) {
3652
3652
  e._iL = !1;
3653
3653
  var t = e.method.microSeconds();
3654
3654
  e.method.onMessage(e._state, null, t);
3655
3655
  }
3656
3656
  }
3657
- let Qt = class extends Error {
3657
+ let Kt = class extends Error {
3658
3658
  /**
3659
3659
  * @param {string} message
3660
3660
  * @param {string[]} keys
@@ -3666,17 +3666,17 @@ let Qt = class extends Error {
3666
3666
  function bo(e) {
3667
3667
  return Object(e) !== e;
3668
3668
  }
3669
- const yc = /* @__PURE__ */ Object.getOwnPropertyNames(
3669
+ const wc = /* @__PURE__ */ Object.getOwnPropertyNames(
3670
3670
  Object.prototype
3671
3671
  ).sort().join("\0");
3672
- function wc(e) {
3672
+ function bc(e) {
3673
3673
  const t = Object.getPrototypeOf(e);
3674
- return t === Object.prototype || t === null || Object.getOwnPropertyNames(t).sort().join("\0") === yc;
3674
+ return t === Object.prototype || t === null || Object.getOwnPropertyNames(t).sort().join("\0") === wc;
3675
3675
  }
3676
- function bc(e) {
3676
+ function _c(e) {
3677
3677
  return Object.prototype.toString.call(e).slice(8, -1);
3678
3678
  }
3679
- function _c(e) {
3679
+ function Ec(e) {
3680
3680
  switch (e) {
3681
3681
  case '"':
3682
3682
  return '\\"';
@@ -3703,20 +3703,20 @@ function _c(e) {
3703
3703
  return e < " " ? `\\u${e.charCodeAt(0).toString(16).padStart(4, "0")}` : "";
3704
3704
  }
3705
3705
  }
3706
- function He(e) {
3706
+ function Fe(e) {
3707
3707
  let t = "", n = 0;
3708
3708
  const o = e.length;
3709
3709
  for (let r = 0; r < o; r += 1) {
3710
- const s = e[r], a = _c(s);
3710
+ const s = e[r], a = Ec(s);
3711
3711
  a && (t += e.slice(n, r) + a, n = r + 1);
3712
3712
  }
3713
3713
  return `"${n === 0 ? e : t + e.slice(n)}"`;
3714
3714
  }
3715
3715
  const Vn = -1, Pr = -2, Ir = -3, Dr = -4, Vr = -5, An = -6;
3716
3716
  function _o(e, t) {
3717
- return Ec(JSON.parse(e));
3717
+ return kc(JSON.parse(e));
3718
3718
  }
3719
- function Ec(e, t) {
3719
+ function kc(e, t) {
3720
3720
  if (typeof e == "number") return r(e, !0);
3721
3721
  if (!Array.isArray(e) || e.length === 0)
3722
3722
  throw new Error("Invalid input");
@@ -3800,7 +3800,7 @@ function Eo(e, t) {
3800
3800
  let a = 0;
3801
3801
  function i(l) {
3802
3802
  if (typeof l == "function")
3803
- throw new Qt("Cannot stringify a function", s);
3803
+ throw new Kt("Cannot stringify a function", s);
3804
3804
  if (o.has(l)) return o.get(l);
3805
3805
  if (l === void 0) return Vn;
3806
3806
  if (Number.isNaN(l)) return Ir;
@@ -3818,7 +3818,7 @@ function Eo(e, t) {
3818
3818
  if (bo(l))
3819
3819
  u = Xt(l);
3820
3820
  else
3821
- switch (bc(l)) {
3821
+ switch (_c(l)) {
3822
3822
  case "Number":
3823
3823
  case "String":
3824
3824
  case "Boolean":
@@ -3832,7 +3832,7 @@ function Eo(e, t) {
3832
3832
  break;
3833
3833
  case "RegExp":
3834
3834
  const { source: d, flags: f } = l;
3835
- u = f ? `["RegExp",${He(d)},"${f}"]` : `["RegExp",${He(d)}]`;
3835
+ u = f ? `["RegExp",${Fe(d)},"${f}"]` : `["RegExp",${Fe(d)}]`;
3836
3836
  break;
3837
3837
  case "Array":
3838
3838
  u = "[";
@@ -3855,26 +3855,26 @@ function Eo(e, t) {
3855
3855
  u += "]";
3856
3856
  break;
3857
3857
  default:
3858
- if (!wc(l))
3859
- throw new Qt(
3858
+ if (!bc(l))
3859
+ throw new Kt(
3860
3860
  "Cannot stringify arbitrary non-POJOs",
3861
3861
  s
3862
3862
  );
3863
3863
  if (Object.getOwnPropertySymbols(l).length > 0)
3864
- throw new Qt(
3864
+ throw new Kt(
3865
3865
  "Cannot stringify POJOs with symbolic keys",
3866
3866
  s
3867
3867
  );
3868
3868
  if (Object.getPrototypeOf(l) === null) {
3869
3869
  u = '["null"';
3870
3870
  for (const h in l)
3871
- s.push(`.${h}`), u += `,${He(h)},${i(l[h])}`, s.pop();
3871
+ s.push(`.${h}`), u += `,${Fe(h)},${i(l[h])}`, s.pop();
3872
3872
  u += "]";
3873
3873
  } else {
3874
3874
  u = "{";
3875
3875
  let h = !1;
3876
3876
  for (const y in l)
3877
- h && (u += ","), h = !0, s.push(`.${y}`), u += `${He(y)}:${i(l[y])}`, s.pop();
3877
+ h && (u += ","), h = !0, s.push(`.${y}`), u += `${Fe(y)}:${i(l[y])}`, s.pop();
3878
3878
  u += "}";
3879
3879
  }
3880
3880
  }
@@ -3885,9 +3885,9 @@ function Eo(e, t) {
3885
3885
  }
3886
3886
  function Xt(e) {
3887
3887
  const t = typeof e;
3888
- return t === "string" ? He(e) : e instanceof String ? He(e.toString()) : e === void 0 ? Vn.toString() : e === 0 && 1 / e < 0 ? An.toString() : t === "bigint" ? `["BigInt","${e}"]` : String(e);
3888
+ return t === "string" ? Fe(e) : e instanceof String ? Fe(e.toString()) : e === void 0 ? Vn.toString() : e === 0 && 1 / e < 0 ? An.toString() : t === "bigint" ? `["BigInt","${e}"]` : String(e);
3889
3889
  }
3890
- function kc(e, t, { initialize: n, type: o }) {
3890
+ function $c(e, t, { initialize: n, type: o }) {
3891
3891
  let r = `${t.$id}-${e.toString()}`, s = new Dn(r, { type: o }), a = !1, i = 0;
3892
3892
  J(() => t[e], (p) => {
3893
3893
  a || (i = Date.now(), s.postMessage({ timestamp: i, state: _o(Eo(p)) })), a = !1;
@@ -3901,22 +3901,22 @@ function kc(e, t, { initialize: n, type: o }) {
3901
3901
  let c = () => s.postMessage(void 0), l = () => s.close();
3902
3902
  return n && c(), { sync: c, unshare: l };
3903
3903
  }
3904
- var $c = (e, t) => Object.keys(t).includes(e), Nc = ({ initialize: e = !0, enable: t = !0, type: n }) => ({ store: o, options: r }) => {
3904
+ var Nc = (e, t) => Object.keys(t).includes(e), Oc = ({ initialize: e = !0, enable: t = !0, type: n }) => ({ store: o, options: r }) => {
3905
3905
  var s, a;
3906
3906
  let i = ((s = r == null ? void 0 : r.share) == null ? void 0 : s.enable) ?? t, c = ((a = r == null ? void 0 : r.share) == null ? void 0 : a.omit) ?? [];
3907
3907
  !i || Object.keys(o.$state).forEach((l) => {
3908
3908
  var p;
3909
- c.includes(l) || !$c(l, o.$state) || kc(l, o, { initialize: ((p = r == null ? void 0 : r.share) == null ? void 0 : p.initialize) ?? e, type: n });
3909
+ c.includes(l) || !Nc(l, o.$state) || $c(l, o, { initialize: ((p = r == null ? void 0 : r.share) == null ? void 0 : p.initialize) ?? e, type: n });
3910
3910
  });
3911
3911
  };
3912
- const Oc = Hs();
3913
- Oc.use(
3914
- Nc({
3912
+ const xc = zs();
3913
+ xc.use(
3914
+ Oc({
3915
3915
  enable: !0,
3916
3916
  initialize: !0
3917
3917
  })
3918
3918
  );
3919
- const xc = /* @__PURE__ */ ae({
3919
+ const Sc = /* @__PURE__ */ ae({
3920
3920
  __name: "Doctype",
3921
3921
  setup(e) {
3922
3922
  const { stonecrop: t, isReady: n } = Zo(), o = C([]);
@@ -3928,7 +3928,7 @@ const xc = /* @__PURE__ */ ae({
3928
3928
  r[a].value = c;
3929
3929
  }), o.value = r;
3930
3930
  }
3931
- }), (r, s) => S(n) ? (A(), Ie(S(vs), {
3931
+ }), (r, s) => S(n) ? (A(), Ie(S(gs), {
3932
3932
  key: 0,
3933
3933
  class: "aform-main",
3934
3934
  modelValue: o.value,
@@ -3936,8 +3936,8 @@ const xc = /* @__PURE__ */ ae({
3936
3936
  }, null, 8, ["modelValue"])) : ge("", !0);
3937
3937
  }
3938
3938
  });
3939
- var Sc = !1;
3940
- function bt(e, t, n) {
3939
+ var Cc = !1;
3940
+ function _t(e, t, n) {
3941
3941
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
3942
3942
  }
3943
3943
  function Zt(e, t) {
@@ -3953,7 +3953,7 @@ function Zt(e, t) {
3953
3953
  * @license MIT
3954
3954
  */
3955
3955
  let ot;
3956
- const At = (e) => ot = e, Cc = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
3956
+ const Tt = (e) => ot = e, Pc = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
3957
3957
  /* istanbul ignore next */
3958
3958
  Symbol()
3959
3959
  );
@@ -3983,14 +3983,14 @@ function ko(e, t, n, o = Tr) {
3983
3983
  const s = e.indexOf(t);
3984
3984
  s > -1 && (e.splice(s, 1), o());
3985
3985
  };
3986
- return !n && Tt() && Rt(r), r;
3986
+ return !n && Rt() && jt(r), r;
3987
3987
  }
3988
3988
  function Ue(e, ...t) {
3989
3989
  e.slice().forEach((n) => {
3990
3990
  n(...t);
3991
3991
  });
3992
3992
  }
3993
- const Pc = (e) => e(), $o = Symbol(), en = Symbol();
3993
+ const Ic = (e) => e(), $o = Symbol(), en = Symbol();
3994
3994
  function hn(e, t) {
3995
3995
  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);
3996
3996
  for (const n in t) {
@@ -4001,12 +4001,12 @@ function hn(e, t) {
4001
4001
  }
4002
4002
  return e;
4003
4003
  }
4004
- const Ic = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
4004
+ const Dc = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
4005
4005
  /* istanbul ignore next */
4006
4006
  Symbol()
4007
4007
  );
4008
- function Dc(e) {
4009
- return !je(e) || !e.hasOwnProperty(Ic);
4008
+ function Vc(e) {
4009
+ return !je(e) || !e.hasOwnProperty(Dc);
4010
4010
  }
4011
4011
  const { assign: ne } = Object;
4012
4012
  function No(e) {
@@ -4019,10 +4019,10 @@ function Oo(e, t, n, o) {
4019
4019
  !i && (process.env.NODE_ENV === "production" || !o) && (n.state.value[e] = r ? r() : {});
4020
4020
  const p = process.env.NODE_ENV !== "production" && o ? (
4021
4021
  // use ref() to unwrap refs inside state TODO: check if this is still necessary
4022
- Ct(C(r ? r() : {}).value)
4023
- ) : Ct(n.state.value[e]);
4022
+ Pt(C(r ? r() : {}).value)
4023
+ ) : Pt(n.state.value[e]);
4024
4024
  return ne(p, s, Object.keys(a || {}).reduce((u, d) => (process.env.NODE_ENV !== "production" && d in p && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${d}" in store "${e}".`), u[d] = re(B(() => {
4025
- At(n);
4025
+ Tt(n);
4026
4026
  const f = n._s.get(e);
4027
4027
  return a[d].call(f, f);
4028
4028
  })), u), {}));
@@ -4035,7 +4035,7 @@ function mn(e, t, n = {}, o, r, s) {
4035
4035
  if (process.env.NODE_ENV !== "production" && !o._e.active)
4036
4036
  throw new Error("Pinia destroyed");
4037
4037
  const c = { deep: !0 };
4038
- process.env.NODE_ENV !== "production" && !Sc && (c.onTrigger = (m) => {
4038
+ process.env.NODE_ENV !== "production" && !Cc && (c.onTrigger = (m) => {
4039
4039
  l ? f = m : l == !1 && !g._hotUpdating && (Array.isArray(f) ? f.push(m) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
4040
4040
  });
4041
4041
  let l, p, u = [], d = [], f;
@@ -4062,8 +4062,8 @@ function mn(e, t, n = {}, o, r, s) {
4062
4062
  }
4063
4063
  const x = s ? function() {
4064
4064
  const { state: w } = n, D = w ? w() : {};
4065
- this.$patch((H) => {
4066
- ne(H, D);
4065
+ this.$patch((F) => {
4066
+ ne(F, D);
4067
4067
  });
4068
4068
  } : (
4069
4069
  /* istanbul ignore next */
@@ -4074,12 +4074,12 @@ function mn(e, t, n = {}, o, r, s) {
4074
4074
  function T() {
4075
4075
  a.stop(), u = [], d = [], o._s.delete(e);
4076
4076
  }
4077
- const F = (m, w = "") => {
4077
+ const H = (m, w = "") => {
4078
4078
  if ($o in m)
4079
4079
  return m[en] = w, m;
4080
4080
  const D = function() {
4081
- At(o);
4082
- const H = Array.from(arguments), ie = [], pe = [];
4081
+ Tt(o);
4082
+ const F = Array.from(arguments), ie = [], pe = [];
4083
4083
  function Me(X) {
4084
4084
  ie.push(X);
4085
4085
  }
@@ -4087,7 +4087,7 @@ function mn(e, t, n = {}, o, r, s) {
4087
4087
  pe.push(X);
4088
4088
  }
4089
4089
  Ue(d, {
4090
- args: H,
4090
+ args: F,
4091
4091
  name: D[en],
4092
4092
  store: g,
4093
4093
  after: Me,
@@ -4095,7 +4095,7 @@ function mn(e, t, n = {}, o, r, s) {
4095
4095
  });
4096
4096
  let z;
4097
4097
  try {
4098
- z = m.apply(this && this.$id === e ? this : g, H);
4098
+ z = m.apply(this && this.$id === e ? this : g, F);
4099
4099
  } catch (X) {
4100
4100
  throw Ue(pe, X), X;
4101
4101
  }
@@ -4115,7 +4115,7 @@ function mn(e, t, n = {}, o, r, s) {
4115
4115
  $patch: _,
4116
4116
  $reset: x,
4117
4117
  $subscribe(m, w = {}) {
4118
- const D = ko(u, m, w.detached, () => H()), H = a.run(() => J(() => o.state.value[e], (ie) => {
4118
+ const D = ko(u, m, w.detached, () => F()), F = a.run(() => J(() => o.state.value[e], (ie) => {
4119
4119
  (w.flush === "sync" ? p : l) && m({
4120
4120
  storeId: e,
4121
4121
  type: ct.direct,
@@ -4136,13 +4136,13 @@ function mn(e, t, n = {}, o, r, s) {
4136
4136
  // setupStore
4137
4137
  ) : P);
4138
4138
  o._s.set(e, g);
4139
- const b = (o._a && o._a.runWithContext || Pc)(() => o._e.run(() => (a = bn()).run(() => t({ action: F }))));
4139
+ const b = (o._a && o._a.runWithContext || Ic)(() => o._e.run(() => (a = bn()).run(() => t({ action: H }))));
4140
4140
  for (const m in b) {
4141
4141
  const w = b[m];
4142
4142
  if (de(w) && !No(w) || Xe(w))
4143
- process.env.NODE_ENV !== "production" && r ? bt(y.value, m, De(b, m)) : s || (h && Dc(w) && (de(w) ? w.value = h[m] : hn(w, h[m])), o.state.value[e][m] = w), process.env.NODE_ENV !== "production" && N.state.push(m);
4143
+ process.env.NODE_ENV !== "production" && r ? _t(y.value, m, De(b, m)) : s || (h && Vc(w) && (de(w) ? w.value = h[m] : hn(w, h[m])), o.state.value[e][m] = w), process.env.NODE_ENV !== "production" && N.state.push(m);
4144
4144
  else if (typeof w == "function") {
4145
- const D = process.env.NODE_ENV !== "production" && r ? w : F(w, m);
4145
+ const D = process.env.NODE_ENV !== "production" && r ? w : H(w, m);
4146
4146
  b[m] = D, process.env.NODE_ENV !== "production" && (N.actions[m] = w), i.actions[m] = w;
4147
4147
  } else process.env.NODE_ENV !== "production" && No(w) && (N.getters[m] = s ? (
4148
4148
  // @ts-expect-error
@@ -4162,10 +4162,10 @@ function mn(e, t, n = {}, o, r, s) {
4162
4162
  }), process.env.NODE_ENV !== "production" && (g._hotUpdate = re((m) => {
4163
4163
  g._hotUpdating = !0, m._hmrPayload.state.forEach((w) => {
4164
4164
  if (w in g.$state) {
4165
- const D = m.$state[w], H = g.$state[w];
4166
- typeof D == "object" && je(D) && je(H) ? Ar(D, H) : m.$state[w] = H;
4165
+ const D = m.$state[w], F = g.$state[w];
4166
+ typeof D == "object" && je(D) && je(F) ? Ar(D, F) : m.$state[w] = F;
4167
4167
  }
4168
- bt(g, w, De(m.$state, w));
4168
+ _t(g, w, De(m.$state, w));
4169
4169
  }), Object.keys(g.$state).forEach((w) => {
4170
4170
  w in m.$state || Zt(g, w);
4171
4171
  }), l = !1, p = !1, o.state.value[e] = De(m._hmrPayload, "hotState"), p = !0, xe().then(() => {
@@ -4173,14 +4173,14 @@ function mn(e, t, n = {}, o, r, s) {
4173
4173
  });
4174
4174
  for (const w in m._hmrPayload.actions) {
4175
4175
  const D = m[w];
4176
- bt(g, w, F(D, w));
4176
+ _t(g, w, H(D, w));
4177
4177
  }
4178
4178
  for (const w in m._hmrPayload.getters) {
4179
- const D = m._hmrPayload.getters[w], H = s ? (
4179
+ const D = m._hmrPayload.getters[w], F = s ? (
4180
4180
  // special handling of options api
4181
- B(() => (At(o), D.call(g, g)))
4181
+ B(() => (Tt(o), D.call(g, g)))
4182
4182
  ) : D;
4183
- bt(g, w, H);
4183
+ _t(g, w, F);
4184
4184
  }
4185
4185
  Object.keys(g._hmrPayload.getters).forEach((w) => {
4186
4186
  w in m._hmrPayload.getters || Zt(g, w);
@@ -4220,7 +4220,7 @@ Found in store "${g.$id}".`), h && s && n.hydrate && n.hydrate(g.$state, h), l =
4220
4220
  }
4221
4221
  /*! #__NO_SIDE_EFFECTS__ */
4222
4222
  // @__NO_SIDE_EFFECTS__
4223
- function Vc(e, t, n) {
4223
+ function Ac(e, t, n) {
4224
4224
  let o, r;
4225
4225
  const s = typeof t == "function";
4226
4226
  if (typeof e == "string")
@@ -4231,7 +4231,7 @@ function Vc(e, t, n) {
4231
4231
  const l = Ro();
4232
4232
  if (i = // in test mode, ignore the argument provided as we can always retrieve a
4233
4233
  // pinia instance with getActivePinia()
4234
- (process.env.NODE_ENV === "test" && ot && ot._testing ? null : i) || (l ? Oe(Cc, null) : null), i && At(i), process.env.NODE_ENV !== "production" && !ot)
4234
+ (process.env.NODE_ENV === "test" && ot && ot._testing ? null : i) || (l ? Oe(Pc, null) : null), i && Tt(i), process.env.NODE_ENV !== "production" && !ot)
4235
4235
  throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
4236
4236
  See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
4237
4237
  This will fail in production.`);
@@ -4254,15 +4254,15 @@ This will fail in production.`);
4254
4254
  return a.$id = o, a;
4255
4255
  }
4256
4256
  function Rr(e) {
4257
- return Tt() ? (Rt(e), !0) : !1;
4257
+ return Rt() ? (jt(e), !0) : !1;
4258
4258
  }
4259
4259
  function Tn(e) {
4260
4260
  return typeof e == "function" ? e() : S(e);
4261
4261
  }
4262
- const Ac = typeof window < "u" && typeof document < "u";
4262
+ const Tc = typeof window < "u" && typeof document < "u";
4263
4263
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
4264
- const Tc = (e) => e != null, Rc = Object.prototype.toString, jc = (e) => Rc.call(e) === "[object Object]", Lc = () => {
4265
- }, ht = Ac ? window : void 0;
4264
+ const Rc = (e) => e != null, jc = Object.prototype.toString, Lc = (e) => jc.call(e) === "[object Object]", Mc = () => {
4265
+ }, mt = Tc ? window : void 0;
4266
4266
  function pt(e) {
4267
4267
  var t;
4268
4268
  const n = Tn(e);
@@ -4270,8 +4270,8 @@ function pt(e) {
4270
4270
  }
4271
4271
  function ft(...e) {
4272
4272
  let t, n, o, r;
4273
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = ht) : [t, n, o, r] = e, !t)
4274
- return Lc;
4273
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = mt) : [t, n, o, r] = e, !t)
4274
+ return Mc;
4275
4275
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
4276
4276
  const s = [], a = () => {
4277
4277
  s.forEach((p) => p()), s.length = 0;
@@ -4280,7 +4280,7 @@ function ft(...e) {
4280
4280
  ([p, u]) => {
4281
4281
  if (a(), !p)
4282
4282
  return;
4283
- const d = jc(u) ? { ...u } : u;
4283
+ const d = Lc(u) ? { ...u } : u;
4284
4284
  s.push(
4285
4285
  ...n.flatMap((f) => o.map((h) => i(p, f, h, d)))
4286
4286
  );
@@ -4291,23 +4291,23 @@ function ft(...e) {
4291
4291
  };
4292
4292
  return Rr(l), l;
4293
4293
  }
4294
- function Mc() {
4294
+ function Bc() {
4295
4295
  const e = C(!1), t = Le();
4296
- return t && Qe(() => {
4296
+ return t && Ke(() => {
4297
4297
  e.value = !0;
4298
4298
  }, t), e;
4299
4299
  }
4300
- function Bc(e) {
4301
- const t = Mc();
4300
+ function Wc(e) {
4301
+ const t = Bc();
4302
4302
  return B(() => (t.value, !!e()));
4303
4303
  }
4304
- function Wc(e, t, n = {}) {
4305
- const { window: o = ht, ...r } = n;
4304
+ function Uc(e, t, n = {}) {
4305
+ const { window: o = mt, ...r } = n;
4306
4306
  let s;
4307
- const a = Bc(() => o && "MutationObserver" in o), i = () => {
4307
+ const a = Wc(() => o && "MutationObserver" in o), i = () => {
4308
4308
  s && (s.disconnect(), s = void 0);
4309
4309
  }, c = B(() => {
4310
- const d = Tn(e), f = (Array.isArray(d) ? d : [d]).map(pt).filter(Tc);
4310
+ const d = Tn(e), f = (Array.isArray(d) ? d : [d]).map(pt).filter(Rc);
4311
4311
  return new Set(f);
4312
4312
  }), l = J(
4313
4313
  () => c.value,
@@ -4324,10 +4324,10 @@ function Wc(e, t, n = {}) {
4324
4324
  takeRecords: p
4325
4325
  };
4326
4326
  }
4327
- function Uc(e = {}) {
4327
+ function Hc(e = {}) {
4328
4328
  var t;
4329
4329
  const {
4330
- window: n = ht,
4330
+ window: n = mt,
4331
4331
  deep: o = !0,
4332
4332
  triggerOnRemoval: r = !1
4333
4333
  } = e, s = (t = e.document) != null ? t : n == null ? void 0 : n.document, a = () => {
@@ -4342,7 +4342,7 @@ function Uc(e = {}) {
4342
4342
  };
4343
4343
  return n && (ft(n, "blur", (l) => {
4344
4344
  l.relatedTarget === null && c();
4345
- }, !0), ft(n, "focus", c, !0)), r && Wc(s, (l) => {
4345
+ }, !0), ft(n, "focus", c, !0)), r && Uc(s, (l) => {
4346
4346
  l.filter((p) => p.removedNodes.length).map((p) => Array.from(p.removedNodes)).flat().forEach((p) => {
4347
4347
  p === i.value && c();
4348
4348
  });
@@ -4351,12 +4351,12 @@ function Uc(e = {}) {
4351
4351
  subtree: !0
4352
4352
  }), c(), i;
4353
4353
  }
4354
- const Fc = "focusin", Hc = "focusout";
4355
- function zc(e, t = {}) {
4356
- const { window: n = ht } = t, o = B(() => pt(e)), r = C(!1), s = B(() => r.value), a = Uc(t);
4357
- return !n || !a.value ? { focused: s } : (ft(o, Fc, () => r.value = !0), ft(o, Hc, () => r.value = !1), { focused: s });
4354
+ const Fc = "focusin", zc = "focusout";
4355
+ function qc(e, t = {}) {
4356
+ const { window: n = mt } = t, o = B(() => pt(e)), r = C(!1), s = B(() => r.value), a = Hc(t);
4357
+ return !n || !a.value ? { focused: s } : (ft(o, Fc, () => r.value = !0), ft(o, zc, () => r.value = !1), { focused: s });
4358
4358
  }
4359
- function qc(e, { window: t = ht, scrollTarget: n } = {}) {
4359
+ function Gc(e, { window: t = mt, scrollTarget: n } = {}) {
4360
4360
  const o = C(!1), r = () => {
4361
4361
  if (!t) return;
4362
4362
  const s = t.document, a = pt(e);
@@ -4377,7 +4377,7 @@ function qc(e, { window: t = ht, scrollTarget: n } = {}) {
4377
4377
  }), o;
4378
4378
  }
4379
4379
  const we = (e) => {
4380
- let t = qc(e).value;
4380
+ let t = Gc(e).value;
4381
4381
  return t = t && e.offsetHeight > 0, t;
4382
4382
  }, be = (e) => e.tabIndex >= 0, xo = (e) => {
4383
4383
  const t = e.target;
@@ -4396,7 +4396,7 @@ const we = (e) => {
4396
4396
  o && (n = o);
4397
4397
  }
4398
4398
  return n && (!be(n) || !we(n)) ? Rn(n) : n;
4399
- }, Gc = (e) => {
4399
+ }, Jc = (e) => {
4400
4400
  var t;
4401
4401
  const n = e.target;
4402
4402
  let o;
@@ -4431,7 +4431,7 @@ const we = (e) => {
4431
4431
  o && (n = o);
4432
4432
  }
4433
4433
  return n && (!be(n) || !we(n)) ? jn(n) : n;
4434
- }, Jc = (e) => {
4434
+ }, Yc = (e) => {
4435
4435
  var t;
4436
4436
  const n = e.target;
4437
4437
  let o;
@@ -4481,7 +4481,7 @@ const we = (e) => {
4481
4481
  }, Do = (e) => {
4482
4482
  const t = e.target.parentElement.lastElementChild;
4483
4483
  return t && (!be(t) || !we(t)) ? Ln(t) : t;
4484
- }, _t = ["alt", "control", "shift", "meta"], Yc = {
4484
+ }, Et = ["alt", "control", "shift", "meta"], Qc = {
4485
4485
  ArrowUp: "up",
4486
4486
  ArrowDown: "down",
4487
4487
  ArrowLeft: "left",
@@ -4504,11 +4504,11 @@ const we = (e) => {
4504
4504
  e.preventDefault(), e.stopPropagation(), t && t.focus();
4505
4505
  },
4506
4506
  "keydown.control.up": (e) => {
4507
- const t = Gc(e);
4507
+ const t = Jc(e);
4508
4508
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
4509
4509
  },
4510
4510
  "keydown.control.down": (e) => {
4511
- const t = Jc(e);
4511
+ const t = Yc(e);
4512
4512
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
4513
4513
  },
4514
4514
  "keydown.control.left": (e) => {
@@ -4575,19 +4575,19 @@ function jr(e) {
4575
4575
  let c = [];
4576
4576
  return a.selectors ? c = n(a) : i && (c = Array.from(i.children).filter((l) => be(l) && we(l))), c;
4577
4577
  }, r = (a) => (i) => {
4578
- const c = Yc[i.key] || i.key.toLowerCase();
4579
- if (_t.includes(c)) return;
4578
+ const c = Qc[i.key] || i.key.toLowerCase();
4579
+ if (Et.includes(c)) return;
4580
4580
  const l = a.handlers || Bn;
4581
4581
  for (const p of Object.keys(l)) {
4582
4582
  const [u, ...d] = p.split(".");
4583
4583
  if (u === "keydown" && d.includes(c)) {
4584
- const f = l[p], h = d.filter((k) => _t.includes(k)), y = _t.some((k) => {
4584
+ const f = l[p], h = d.filter((k) => Et.includes(k)), y = Et.some((k) => {
4585
4585
  const _ = k.charAt(0).toUpperCase() + k.slice(1);
4586
4586
  return i.getModifierState(_);
4587
4587
  });
4588
4588
  if (h.length > 0) {
4589
4589
  if (y) {
4590
- for (const k of _t)
4590
+ for (const k of Et)
4591
4591
  if (d.includes(k)) {
4592
4592
  const _ = k.charAt(0).toUpperCase() + k.slice(1);
4593
4593
  i.getModifierState(_) && f(i);
@@ -4598,11 +4598,11 @@ function jr(e) {
4598
4598
  }
4599
4599
  }
4600
4600
  }, s = [];
4601
- Qe(() => {
4601
+ Ke(() => {
4602
4602
  for (const a of e) {
4603
4603
  const i = t(a), c = o(a), l = r(a), p = i ? [i] : c;
4604
4604
  for (const u of p) {
4605
- const { focused: d } = zc(C(u)), f = J(d, (h) => {
4605
+ const { focused: d } = qc(C(u)), f = J(d, (h) => {
4606
4606
  h ? u.addEventListener("keydown", l) : u.removeEventListener("keydown", l);
4607
4607
  });
4608
4608
  s.push(f);
@@ -4613,34 +4613,34 @@ function jr(e) {
4613
4613
  a();
4614
4614
  });
4615
4615
  }
4616
- function mt(e) {
4617
- return Tt() ? (Rt(e), !0) : !1;
4616
+ function vt(e) {
4617
+ return Rt() ? (jt(e), !0) : !1;
4618
4618
  }
4619
4619
  function se(e) {
4620
4620
  return typeof e == "function" ? e() : S(e);
4621
4621
  }
4622
4622
  const Wn = typeof window < "u" && typeof document < "u";
4623
4623
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
4624
- const Kc = (e) => e != null, Qc = Object.prototype.toString, Lr = (e) => Qc.call(e) === "[object Object]", ze = () => {
4625
- }, vn = /* @__PURE__ */ Xc();
4626
- function Xc() {
4624
+ const Kc = (e) => e != null, Xc = Object.prototype.toString, Lr = (e) => Xc.call(e) === "[object Object]", ze = () => {
4625
+ }, vn = /* @__PURE__ */ Zc();
4626
+ function Zc() {
4627
4627
  var e, t;
4628
4628
  return Wn && ((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));
4629
4629
  }
4630
- function Zc(e) {
4630
+ function el(e) {
4631
4631
  return Le();
4632
4632
  }
4633
- function el(...e) {
4633
+ function tl(...e) {
4634
4634
  if (e.length !== 1)
4635
4635
  return De(...e);
4636
4636
  const t = e[0];
4637
- return typeof t == "function" ? Jr(Yr(() => ({ get: t, set: ze }))) : C(t);
4637
+ return typeof t == "function" ? Yr(Qr(() => ({ get: t, set: ze }))) : C(t);
4638
4638
  }
4639
- function tl(e, t = !0, n) {
4640
- Zc() ? Qe(e, n) : t ? e() : xe(e);
4639
+ function nl(e, t = !0, n) {
4640
+ el() ? Ke(e, n) : t ? e() : xe(e);
4641
4641
  }
4642
4642
  const Un = Wn ? window : void 0;
4643
- function Ke(e) {
4643
+ function Qe(e) {
4644
4644
  var t;
4645
4645
  const n = se(e);
4646
4646
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
@@ -4653,7 +4653,7 @@ function Vo(...e) {
4653
4653
  const s = [], a = () => {
4654
4654
  s.forEach((p) => p()), s.length = 0;
4655
4655
  }, i = (p, u, d, f) => (p.addEventListener(u, d, f), () => p.removeEventListener(u, d, f)), c = J(
4656
- () => [Ke(t), se(r)],
4656
+ () => [Qe(t), se(r)],
4657
4657
  ([p, u]) => {
4658
4658
  if (a(), !p)
4659
4659
  return;
@@ -4666,16 +4666,16 @@ function Vo(...e) {
4666
4666
  ), l = () => {
4667
4667
  c(), a();
4668
4668
  };
4669
- return mt(l), l;
4669
+ return vt(l), l;
4670
4670
  }
4671
- function nl() {
4671
+ function ol() {
4672
4672
  const e = C(!1), t = Le();
4673
- return t && Qe(() => {
4673
+ return t && Ke(() => {
4674
4674
  e.value = !0;
4675
4675
  }, t), e;
4676
4676
  }
4677
4677
  function Mr(e) {
4678
- const t = nl();
4678
+ const t = ol();
4679
4679
  return B(() => (t.value, !!e()));
4680
4680
  }
4681
4681
  function Br(e, t, n = {}) {
@@ -4684,7 +4684,7 @@ function Br(e, t, n = {}) {
4684
4684
  const a = Mr(() => o && "MutationObserver" in o), i = () => {
4685
4685
  s && (s.disconnect(), s = void 0);
4686
4686
  }, c = B(() => {
4687
- const d = se(e), f = (Array.isArray(d) ? d : [d]).map(Ke).filter(Kc);
4687
+ const d = se(e), f = (Array.isArray(d) ? d : [d]).map(Qe).filter(Kc);
4688
4688
  return new Set(f);
4689
4689
  }), l = J(
4690
4690
  () => c.value,
@@ -4695,20 +4695,20 @@ function Br(e, t, n = {}) {
4695
4695
  ), p = () => s == null ? void 0 : s.takeRecords(), u = () => {
4696
4696
  l(), i();
4697
4697
  };
4698
- return mt(u), {
4698
+ return vt(u), {
4699
4699
  isSupported: a,
4700
4700
  stop: u,
4701
4701
  takeRecords: p
4702
4702
  };
4703
4703
  }
4704
- function ol(e, t, n = {}) {
4704
+ function rl(e, t, n = {}) {
4705
4705
  const { window: o = Un, ...r } = n;
4706
4706
  let s;
4707
4707
  const a = Mr(() => o && "ResizeObserver" in o), i = () => {
4708
4708
  s && (s.disconnect(), s = void 0);
4709
4709
  }, c = B(() => {
4710
4710
  const u = se(e);
4711
- return Array.isArray(u) ? u.map((d) => Ke(d)) : [Ke(u)];
4711
+ return Array.isArray(u) ? u.map((d) => Qe(d)) : [Qe(u)];
4712
4712
  }), l = J(
4713
4713
  c,
4714
4714
  (u) => {
@@ -4722,12 +4722,12 @@ function ol(e, t, n = {}) {
4722
4722
  ), p = () => {
4723
4723
  i(), l();
4724
4724
  };
4725
- return mt(p), {
4725
+ return vt(p), {
4726
4726
  isSupported: a,
4727
4727
  stop: p
4728
4728
  };
4729
4729
  }
4730
- function rl(e, t = {}) {
4730
+ function Wr(e, t = {}) {
4731
4731
  const {
4732
4732
  reset: n = !0,
4733
4733
  windowResize: o = !0,
@@ -4736,7 +4736,7 @@ function rl(e, t = {}) {
4736
4736
  updateTiming: a = "sync"
4737
4737
  } = t, i = C(0), c = C(0), l = C(0), p = C(0), u = C(0), d = C(0), f = C(0), h = C(0);
4738
4738
  function y() {
4739
- const _ = Ke(e);
4739
+ const _ = Qe(e);
4740
4740
  if (!_) {
4741
4741
  n && (i.value = 0, c.value = 0, l.value = 0, p.value = 0, u.value = 0, d.value = 0, f.value = 0, h.value = 0);
4742
4742
  return;
@@ -4747,9 +4747,9 @@ function rl(e, t = {}) {
4747
4747
  function k() {
4748
4748
  a === "sync" ? y() : a === "next-frame" && requestAnimationFrame(() => y());
4749
4749
  }
4750
- return ol(e, k), J(() => Ke(e), (_) => !_ && k()), Br(e, k, {
4750
+ return rl(e, k), J(() => Qe(e), (_) => !_ && k()), Br(e, k, {
4751
4751
  attributeFilter: ["style", "class"]
4752
- }), r && Vo("scroll", k, { capture: !0, passive: !0 }), o && Vo("resize", k, { passive: !0 }), tl(() => {
4752
+ }), r && Vo("scroll", k, { capture: !0, passive: !0 }), o && Vo("resize", k, { passive: !0 }), nl(() => {
4753
4753
  s && k();
4754
4754
  }), {
4755
4755
  height: i,
@@ -4777,7 +4777,7 @@ const sl = (e) => {
4777
4777
  pinned: { type: Boolean }
4778
4778
  },
4779
4779
  setup(e) {
4780
- const t = jt("cell"), { bottom: n, left: o } = rl(t), r = e.store.getCellData(e.colIndex, e.rowIndex), s = C(e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), a = C(""), i = C(!1), c = e.store.columns[e.colIndex], l = e.store.rows[e.rowIndex], p = c.align || "center", u = c.width || "40ch";
4780
+ const t = ht("cell"), { width: n, height: o } = Wr(t), r = e.store.getCellData(e.colIndex, e.rowIndex), s = C(e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), a = C(""), i = C(!1), c = e.store.columns[e.colIndex], l = e.store.rows[e.rowIndex], p = c.align || "center", u = c.width || "40ch";
4781
4781
  J(
4782
4782
  () => e.store.getCellData(e.colIndex, e.rowIndex),
4783
4783
  (_) => {
@@ -4795,7 +4795,7 @@ const sl = (e) => {
4795
4795
  };
4796
4796
  }), h = () => {
4797
4797
  c.mask, c.modalComponent && e.store.$patch((_) => {
4798
- _.modal.visible = !0, _.modal.colIndex = e.colIndex, _.modal.rowIndex = e.rowIndex, _.modal.parent = t.value, _.modal.top = n.value, _.modal.left = o.value, _.modal.width = u, typeof c.modalComponent == "function" ? _.modal.component = c.modalComponent({ table: _.table, row: l, column: c }) : _.modal.component = c.modalComponent, _.modal.componentProps = c.modalComponentExtraProps;
4798
+ _.modal.visible = !0, _.modal.colIndex = e.colIndex, _.modal.rowIndex = e.rowIndex, _.modal.parent = t.value, _.modal.top = t.value.offsetTop + t.value.offsetHeight, _.modal.left = t.value.offsetLeft, _.modal.width = n.value, _.modal.height = o.value, typeof c.modalComponent == "function" ? _.modal.component = c.modalComponent({ table: _.table, row: l, column: c }) : _.modal.component = c.modalComponent, _.modal.componentProps = c.modalComponentExtraProps;
4799
4799
  });
4800
4800
  };
4801
4801
  if (e.addNavigation) {
@@ -4856,7 +4856,7 @@ const sl = (e) => {
4856
4856
  addNavigation: { type: [Boolean, Object], default: !1 }
4857
4857
  },
4858
4858
  setup(e) {
4859
- const t = jt("rowEl"), n = e.store.isRowVisible(e.rowIndex), o = e.store.getRowExpandSymbol(e.rowIndex);
4859
+ const t = ht("rowEl"), n = e.store.isRowVisible(e.rowIndex), o = e.store.getRowExpandSymbol(e.rowIndex);
4860
4860
  if (e.addNavigation) {
4861
4861
  let r = Bn;
4862
4862
  typeof e.addNavigation == "object" && (r = {
@@ -4891,15 +4891,15 @@ const sl = (e) => {
4891
4891
  [gn, S(n)]
4892
4892
  ]);
4893
4893
  }
4894
- }), Wr = Wn ? window : void 0;
4894
+ }), Ur = Wn ? window : void 0;
4895
4895
  function st(e) {
4896
4896
  var t;
4897
4897
  const n = se(e);
4898
4898
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
4899
4899
  }
4900
- function St(...e) {
4900
+ function Ct(...e) {
4901
4901
  let t, n, o, r;
4902
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = Wr) : [t, n, o, r] = e, !t)
4902
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = Ur) : [t, n, o, r] = e, !t)
4903
4903
  return ze;
4904
4904
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
4905
4905
  const s = [], a = () => {
@@ -4918,11 +4918,11 @@ function St(...e) {
4918
4918
  ), l = () => {
4919
4919
  c(), a();
4920
4920
  };
4921
- return mt(l), l;
4921
+ return vt(l), l;
4922
4922
  }
4923
4923
  let Ao = !1;
4924
4924
  function To(e, t, n = {}) {
4925
- const { window: o = Wr, ignore: r = [], capture: s = !0, detectIframe: a = !1 } = n;
4925
+ const { window: o = Ur, ignore: r = [], capture: s = !0, detectIframe: a = !1 } = n;
4926
4926
  if (!o)
4927
4927
  return ze;
4928
4928
  vn && !Ao && (Ao = !0, Array.from(o.document.body.children).forEach((h) => h.addEventListener("click", ze)), o.document.documentElement.addEventListener("click", ze));
@@ -4955,16 +4955,16 @@ function To(e, t, n = {}) {
4955
4955
  };
4956
4956
  let d = !1;
4957
4957
  const f = [
4958
- St(o, "click", (h) => {
4958
+ Ct(o, "click", (h) => {
4959
4959
  d || (d = !0, setTimeout(() => {
4960
4960
  d = !1;
4961
4961
  }, 0), u(h));
4962
4962
  }, { passive: !0, capture: s }),
4963
- St(o, "pointerdown", (h) => {
4963
+ Ct(o, "pointerdown", (h) => {
4964
4964
  const y = st(e);
4965
4965
  i = !c(h) && !!(y && !h.composedPath().includes(y));
4966
4966
  }, { passive: !0 }),
4967
- a && St(o, "blur", (h) => {
4967
+ a && Ct(o, "blur", (h) => {
4968
4968
  setTimeout(() => {
4969
4969
  var y;
4970
4970
  const k = st(e);
@@ -4991,24 +4991,24 @@ const pl = {
4991
4991
  function tn(e) {
4992
4992
  return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
4993
4993
  }
4994
- function Ur(e) {
4994
+ function Hr(e) {
4995
4995
  const t = window.getComputedStyle(e);
4996
4996
  if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight)
4997
4997
  return !0;
4998
4998
  {
4999
4999
  const n = e.parentNode;
5000
- return !n || n.tagName === "BODY" ? !1 : Ur(n);
5000
+ return !n || n.tagName === "BODY" ? !1 : Hr(n);
5001
5001
  }
5002
5002
  }
5003
5003
  function fl(e) {
5004
5004
  const t = e || window.event, n = t.target;
5005
- return Ur(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
5005
+ return Hr(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
5006
5006
  }
5007
5007
  const nn = /* @__PURE__ */ new WeakMap();
5008
5008
  function hl(e, t = !1) {
5009
5009
  const n = C(t);
5010
5010
  let o = null, r = "";
5011
- J(el(e), (i) => {
5011
+ J(tl(e), (i) => {
5012
5012
  const c = tn(se(i));
5013
5013
  if (c) {
5014
5014
  const l = c;
@@ -5022,7 +5022,7 @@ function hl(e, t = !1) {
5022
5022
  });
5023
5023
  const s = () => {
5024
5024
  const i = tn(se(e));
5025
- !i || n.value || (vn && (o = St(
5025
+ !i || n.value || (vn && (o = Ct(
5026
5026
  i,
5027
5027
  "touchmove",
5028
5028
  (c) => {
@@ -5034,7 +5034,7 @@ function hl(e, t = !1) {
5034
5034
  const i = tn(se(e));
5035
5035
  !i || !n.value || (vn && (o == null || o()), i.style.overflow = r, nn.delete(i), n.value = !1);
5036
5036
  };
5037
- return mt(a), B({
5037
+ return vt(a), B({
5038
5038
  get() {
5039
5039
  return n.value;
5040
5040
  },
@@ -5097,24 +5097,34 @@ const vl = {
5097
5097
  props: {
5098
5098
  colIndex: {},
5099
5099
  rowIndex: {},
5100
- store: {}
5100
+ store: {},
5101
+ container: {}
5101
5102
  },
5102
5103
  setup(e) {
5103
- const t = (n) => {
5104
- n.stopPropagation();
5104
+ const t = ht("amodal"), { width: n, height: o } = Wr(t), r = B(() => {
5105
+ var a, i;
5106
+ const c = ((a = e.container) == null ? void 0 : a.offsetWidth) || 0, l = ((i = e.container) == null ? void 0 : i.offsetHeight) || 0, p = e.store.modal.left + n.value > c ? e.store.modal.left - (n.value - e.store.modal.width) : e.store.modal.left, u = e.store.modal.top + o.value > l ? e.store.modal.top - o.value - e.store.modal.height : e.store.modal.top;
5107
+ return {
5108
+ left: `${p}px`,
5109
+ top: `${u}px`
5110
+ };
5111
+ }), s = (a) => {
5112
+ a.stopPropagation();
5105
5113
  };
5106
- return (n, o) => (A(), M("div", {
5114
+ return (a, i) => (A(), M("div", {
5107
5115
  class: "amodal",
5116
+ ref: "amodal",
5108
5117
  tabindex: "-1",
5109
- onClick: t,
5110
- onInput: t
5118
+ onClick: s,
5119
+ onInput: s,
5120
+ style: le(r.value)
5111
5121
  }, [
5112
- ke(n.$slots, "default")
5113
- ], 32));
5122
+ ke(a.$slots, "default")
5123
+ ], 36));
5114
5124
  }
5115
5125
  }), bl = (e) => {
5116
5126
  const t = e.id || crypto.randomUUID();
5117
- return (/* @__PURE__ */ Vc(`table-${t}`, () => {
5127
+ return (/* @__PURE__ */ Ac(`table-${t}`, () => {
5118
5128
  const n = () => {
5119
5129
  const N = {};
5120
5130
  for (const [P, g] of r.value.entries())
@@ -5155,8 +5165,8 @@ const vl = {
5155
5165
  } else a.value.view === "list-expansion" && (c.value[N].expanded = !c.value[N].expanded);
5156
5166
  }, T = (N, P) => {
5157
5167
  const g = f(N, P);
5158
- return F(N, P, g);
5159
- }, F = (N, P, g) => {
5168
+ return H(N, P, g);
5169
+ }, H = (N, P, g) => {
5160
5170
  const W = r.value[N], b = s.value[P], m = W.format;
5161
5171
  return m ? typeof m == "function" ? m(g, { table: i.value, row: b, column: W }) : typeof m == "string" ? Function(`"use strict";return (${m})`)()(g, { table: i.value, row: b, column: W }) : g : g;
5162
5172
  };
@@ -5179,7 +5189,7 @@ const vl = {
5179
5189
  },
5180
5190
  getCellData: f,
5181
5191
  getCellDisplayValue: T,
5182
- getFormattedValue: F,
5192
+ getFormattedValue: H,
5183
5193
  getHeaderCellStyle: y,
5184
5194
  getIndent: (N, P) => P && N === 0 && P > 0 ? `${P}ch` : "inherit",
5185
5195
  getRowExpandSymbol: _,
@@ -5199,7 +5209,7 @@ const vl = {
5199
5209
  },
5200
5210
  emits: ["update:modelValue", "cellUpdate"],
5201
5211
  setup(e, { expose: t, emit: n }) {
5202
- const o = n, r = jt("table"), s = e.modelValue ? e.modelValue : e.rows, a = bl({ columns: e.columns, rows: s, id: e.id, config: e.config });
5212
+ const o = n, r = ht("table"), s = e.modelValue ? e.modelValue : e.rows, a = bl({ columns: e.columns, rows: s, id: e.id, config: e.config });
5203
5213
  a.$onAction(({ name: c, store: l, args: p }) => {
5204
5214
  if (c === "setCellData") {
5205
5215
  const [u, d, f] = p, h = l.getCellData(u, d);
@@ -5211,7 +5221,7 @@ const vl = {
5211
5221
  o("update:modelValue", c);
5212
5222
  },
5213
5223
  { deep: !0 }
5214
- ), Qe(() => {
5224
+ ), Ke(() => {
5215
5225
  e.columns.some((c) => c.pinned) && (i(), a.config.view === "tree" && Br(r, i, { childList: !0, subtree: !0 }));
5216
5226
  });
5217
5227
  const i = () => {
@@ -5242,7 +5252,7 @@ const vl = {
5242
5252
  style: le({ width: S(a).config.fullWidth ? "100%" : "auto" })
5243
5253
  }, [
5244
5254
  ke(c.$slots, "header", { data: S(a) }, () => [
5245
- Pt(yl, {
5255
+ It(yl, {
5246
5256
  columns: S(a).columns,
5247
5257
  store: S(a)
5248
5258
  }, null, 8, ["columns", "store"])
@@ -5255,7 +5265,7 @@ const vl = {
5255
5265
  rowIndex: u,
5256
5266
  store: S(a)
5257
5267
  }, {
5258
- default: It(() => [
5268
+ default: Dt(() => [
5259
5269
  (A(!0), M(Ae, null, Te(S(a).columns, (d, f) => (A(), Ie(ll, {
5260
5270
  key: d.name,
5261
5271
  store: S(a),
@@ -5278,17 +5288,13 @@ const vl = {
5278
5288
  ]),
5279
5289
  ke(c.$slots, "footer", { data: S(a) }, void 0, !0),
5280
5290
  ke(c.$slots, "modal", { data: S(a) }, () => [
5281
- lt(Pt(wl, {
5291
+ lt(It(wl, {
5282
5292
  colIndex: S(a).modal.colIndex,
5283
5293
  rowIndex: S(a).modal.rowIndex,
5284
5294
  store: S(a),
5285
- style: le({
5286
- left: S(a).modal.left + "px",
5287
- top: S(a).modal.top + "px",
5288
- maxWidth: S(a).modal.width + "px"
5289
- })
5295
+ container: S(r)
5290
5296
  }, {
5291
- default: It(() => [
5297
+ default: Dt(() => [
5292
5298
  (A(), Ie(yn(S(a).modal.component), wn({
5293
5299
  key: `${S(a).modal.rowIndex}:${S(a).modal.colIndex}`,
5294
5300
  colIndex: S(a).modal.colIndex,
@@ -5297,7 +5303,7 @@ const vl = {
5297
5303
  }, S(a).modal.componentProps), null, 16, ["colIndex", "rowIndex", "store"]))
5298
5304
  ]),
5299
5305
  _: 1
5300
- }, 8, ["colIndex", "rowIndex", "store", "style"]), [
5306
+ }, 8, ["colIndex", "rowIndex", "store", "container"]), [
5301
5307
  [gn, S(a).modal.visible]
5302
5308
  ])
5303
5309
  ], !0)
@@ -5310,7 +5316,7 @@ const vl = {
5310
5316
  for (const [o, r] of t)
5311
5317
  n[o] = r;
5312
5318
  return n;
5313
- }, kl = /* @__PURE__ */ El(_l, [["__scopeId", "data-v-a7848db7"]]), $l = /* @__PURE__ */ ae({
5319
+ }, kl = /* @__PURE__ */ El(_l, [["__scopeId", "data-v-7a1c014a"]]), $l = /* @__PURE__ */ ae({
5314
5320
  __name: "Records",
5315
5321
  setup(e) {
5316
5322
  const { stonecrop: t, isReady: n } = Zo(), o = { view: "list" };
@@ -5337,7 +5343,7 @@ const vl = {
5337
5343
  breadcrumbs: { default: () => [] }
5338
5344
  },
5339
5345
  setup(e) {
5340
- const t = C(!0), n = C(!1), o = C(""), r = jt("searchinput"), s = B(() => t.value ? "unrotated" : "rotated"), a = () => {
5346
+ const t = C(!0), n = C(!1), o = C(""), r = ht("searchinput"), s = B(() => t.value ? "unrotated" : "rotated"), a = () => {
5341
5347
  t.value = !t.value;
5342
5348
  }, i = async () => {
5343
5349
  n.value = !n.value, await xe(() => {
@@ -5350,13 +5356,13 @@ const vl = {
5350
5356
  }, p = () => {
5351
5357
  };
5352
5358
  return (u, d) => {
5353
- const f = Qr("router-link");
5359
+ const f = Xr("router-link");
5354
5360
  return A(), M("footer", null, [
5355
5361
  U("ul", Nl, [
5356
5362
  U("li", {
5357
5363
  class: "hidebreadcrumbs",
5358
5364
  onClick: a,
5359
- onKeydown: gt(a, ["enter"])
5365
+ onKeydown: yt(a, ["enter"])
5360
5366
  }, [
5361
5367
  U("a", Ol, [
5362
5368
  U("div", {
@@ -5367,14 +5373,14 @@ const vl = {
5367
5373
  U("li", {
5368
5374
  class: "hometab",
5369
5375
  onClick: p,
5370
- onKeydown: gt(p, ["enter"]),
5376
+ onKeydown: yt(p, ["enter"]),
5371
5377
  style: le({ display: t.value ? "block" : "none" })
5372
5378
  }, [
5373
- Pt(f, {
5379
+ It(f, {
5374
5380
  to: "/home",
5375
5381
  tabindex: "0"
5376
5382
  }, {
5377
- default: It(() => [
5383
+ default: Dt(() => [
5378
5384
  (A(), M("svg", xl, d[5] || (d[5] = [
5379
5385
  U("g", null, [
5380
5386
  U("path", {
@@ -5398,7 +5404,7 @@ const vl = {
5398
5404
  U("li", {
5399
5405
  class: "searchtab",
5400
5406
  onClick: i,
5401
- onKeydown: gt(i, ["enter"]),
5407
+ onKeydown: yt(i, ["enter"]),
5402
5408
  style: le({ display: t.value ? "block" : "none" })
5403
5409
  }, [
5404
5410
  U("a", Sl, [
@@ -5422,10 +5428,10 @@ const vl = {
5422
5428
  onClick: d[1] || (d[1] = (h) => c(h)),
5423
5429
  onInput: d[2] || (d[2] = (h) => c(h)),
5424
5430
  onBlur: d[3] || (d[3] = (h) => l(h)),
5425
- onKeydown: d[4] || (d[4] = gt((h) => l(h), ["enter"])),
5431
+ onKeydown: d[4] || (d[4] = yt((h) => l(h), ["enter"])),
5426
5432
  type: "text"
5427
5433
  }, null, 36), [
5428
- [Xr, o.value]
5434
+ [Zr, o.value]
5429
5435
  ])
5430
5436
  ])
5431
5437
  ], 36),
@@ -5433,11 +5439,11 @@ const vl = {
5433
5439
  key: h.title,
5434
5440
  style: le({ display: t.value ? "block" : "none" })
5435
5441
  }, [
5436
- Pt(f, {
5442
+ It(f, {
5437
5443
  tabindex: "0",
5438
5444
  to: h.to
5439
5445
  }, {
5440
- default: It(() => [
5446
+ default: Dt(() => [
5441
5447
  Lo(ve(h.title), 1)
5442
5448
  ]),
5443
5449
  _: 2
@@ -5449,13 +5455,13 @@ const vl = {
5449
5455
  }
5450
5456
  }), Il = /* @__PURE__ */ En(Pl, [["__scopeId", "data-v-a650f215"]]), Al = {
5451
5457
  install: (e) => {
5452
- e.component("ActionSet", ls), e.component("CommandPalette", ps), e.component("Doctype", xc), e.component("Records", $l), e.component("SheetNav", Il);
5458
+ e.component("ActionSet", us), e.component("CommandPalette", fs), e.component("Doctype", Sc), e.component("Records", $l), e.component("SheetNav", Il);
5453
5459
  }
5454
5460
  };
5455
5461
  export {
5456
- ls as ActionSet,
5457
- ps as CommandPalette,
5458
- xc as Doctype,
5462
+ us as ActionSet,
5463
+ fs as CommandPalette,
5464
+ Sc as Doctype,
5459
5465
  $l as Records,
5460
5466
  Il as SheetNav,
5461
5467
  Al as StonecropDesktop