@stonecrop/desktop 0.2.26 → 0.2.28
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 +415 -415
- package/dist/desktop.js.map +1 -1
- package/dist/desktop.umd.cjs +12 -12
- package/dist/desktop.umd.cjs.map +1 -1
- package/package.json +5 -5
package/dist/desktop.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as j, onMounted as Zt, openBlock as
|
|
1
|
+
import { defineComponent as Z, ref as j, onMounted as Zt, openBlock as N, createElementBlock as T, normalizeClass as vo, createElementVNode as R, Fragment as Se, renderList as Ie, toDisplayString as ue, createCommentVNode as we, withDirectives as Je, vShow as en, pushScopeId as go, popScopeId as yo, computed as V, createBlock as Oe, resolveDynamicComponent as tn, mergeProps as nn, effectScope as wo, markRaw as xe, inject as ae, onBeforeMount as xr, shallowRef as Or, toRaw as yt, hasInjectionContext as Sr, getCurrentInstance as wt, unref as k, shallowReactive as Ir, watch as K, reactive as $e, isRef as Ke, isReactive as on, toRef as st, nextTick as Ye, getCurrentScope as rn, onScopeDispose as an, h as bo, provide as it, toRefs as In, watchEffect as Nr, normalizeStyle as ce, renderSlot as ge, createVNode as ht, withCtx as mt, createTextVNode as _o, onBeforeUnmount as Cr, readonly as Pr, customRef as Dr, resolveComponent as Ar, withKeys as tt, vModelText as Tr } from "vue";
|
|
2
2
|
const sn = (e) => (go("data-v-3ce59358"), e = e(), yo(), e), jr = { class: "action-menu-icon" }, Rr = /* @__PURE__ */ sn(() => /* @__PURE__ */ R("svg", {
|
|
3
3
|
class: "leftBar",
|
|
4
4
|
version: "1.1",
|
|
@@ -27,10 +27,10 @@ const sn = (e) => (go("data-v-3ce59358"), e = e(), yo(), e), jr = { class: "acti
|
|
|
27
27
|
height: "50"
|
|
28
28
|
}, [
|
|
29
29
|
/* @__PURE__ */ R("polygon", { points: "70.8,58.8 45.8,33.4 50,29.2 75,54.6 " })
|
|
30
|
-
], -1)),
|
|
30
|
+
], -1)), Lr = [
|
|
31
31
|
Rr,
|
|
32
32
|
Vr
|
|
33
|
-
],
|
|
33
|
+
], Mr = /* @__PURE__ */ sn(() => /* @__PURE__ */ R("div", { style: { "margin-right": "30px" } }, null, -1)), Ur = ["onclick"], Br = { key: 1 }, Wr = ["onClick"], Fr = { class: "dropdown-container" }, qr = { class: "dropdown" }, Gr = ["onclick"], zr = ["href"], Hr = { class: "dropdown-item" }, Jr = /* @__PURE__ */ Z({
|
|
34
34
|
__name: "ActionSet",
|
|
35
35
|
props: {
|
|
36
36
|
elements: {}
|
|
@@ -53,7 +53,7 @@ const sn = (e) => (go("data-v-3ce59358"), e = e(), yo(), e), jr = { class: "acti
|
|
|
53
53
|
const p = !n.value[c].show;
|
|
54
54
|
s(), n.value[c].show = p;
|
|
55
55
|
};
|
|
56
|
-
return (c, p) => (
|
|
56
|
+
return (c, p) => (N(), T("div", {
|
|
57
57
|
class: vo([{ "open-set": o.value, "hovered-and-closed": i.value }, "action-set collapse"]),
|
|
58
58
|
onMouseover: l,
|
|
59
59
|
onMouseleave: u
|
|
@@ -62,38 +62,38 @@ const sn = (e) => (go("data-v-3ce59358"), e = e(), yo(), e), jr = { class: "acti
|
|
|
62
62
|
R("div", {
|
|
63
63
|
id: "chevron",
|
|
64
64
|
onClick: p[0] || (p[0] = (f) => i.value = !i.value)
|
|
65
|
-
},
|
|
65
|
+
}, Lr)
|
|
66
66
|
]),
|
|
67
|
-
|
|
68
|
-
(
|
|
67
|
+
Mr,
|
|
68
|
+
(N(!0), T(Se, null, Ie(n.value, (f, m) => (N(), T("div", {
|
|
69
69
|
class: "action-element",
|
|
70
70
|
key: f.label
|
|
71
71
|
}, [
|
|
72
|
-
f.elementType == "button" ? (
|
|
72
|
+
f.elementType == "button" ? (N(), T("button", {
|
|
73
73
|
key: 0,
|
|
74
74
|
onclick: f.action,
|
|
75
75
|
class: "button-default"
|
|
76
76
|
}, ue(f.label), 9, Ur)) : we("", !0),
|
|
77
|
-
f.elementType == "dropdown" ? (
|
|
77
|
+
f.elementType == "dropdown" ? (N(), T("div", Br, [
|
|
78
78
|
R("button", {
|
|
79
79
|
class: "button-default",
|
|
80
80
|
onClick: (v) => d(m)
|
|
81
81
|
}, ue(f.label), 9, Wr),
|
|
82
82
|
Je(R("div", Fr, [
|
|
83
83
|
R("div", qr, [
|
|
84
|
-
(
|
|
84
|
+
(N(!0), T(Se, null, Ie(f.actions, (v) => (N(), T("div", {
|
|
85
85
|
key: v.label
|
|
86
86
|
}, [
|
|
87
|
-
v.action != null ? (
|
|
87
|
+
v.action != null ? (N(), T("button", {
|
|
88
88
|
key: 0,
|
|
89
89
|
onclick: v.action,
|
|
90
90
|
class: "dropdown-item"
|
|
91
|
-
}, ue(v.label), 9,
|
|
91
|
+
}, ue(v.label), 9, Gr)) : v.link != null ? (N(), T("a", {
|
|
92
92
|
key: 1,
|
|
93
93
|
href: v.link
|
|
94
94
|
}, [
|
|
95
95
|
R("button", Hr, ue(v.label), 1)
|
|
96
|
-
], 8,
|
|
96
|
+
], 8, zr)) : we("", !0)
|
|
97
97
|
]))), 128))
|
|
98
98
|
])
|
|
99
99
|
], 512), [
|
|
@@ -108,11 +108,11 @@ const sn = (e) => (go("data-v-3ce59358"), e = e(), yo(), e), jr = { class: "acti
|
|
|
108
108
|
for (const [o, r] of t)
|
|
109
109
|
n[o] = r;
|
|
110
110
|
return n;
|
|
111
|
-
}, Kr = /* @__PURE__ */ ln(Jr, [["__scopeId", "data-v-3ce59358"]]),
|
|
112
|
-
function
|
|
113
|
-
return
|
|
111
|
+
}, Kr = /* @__PURE__ */ ln(Jr, [["__scopeId", "data-v-3ce59358"]]), Yr = {};
|
|
112
|
+
function Qr(e, t) {
|
|
113
|
+
return N(), T("dialog");
|
|
114
114
|
}
|
|
115
|
-
const Xr = /* @__PURE__ */ ln(
|
|
115
|
+
const Xr = /* @__PURE__ */ ln(Yr, [["render", Qr]]), Zr = (e, t) => {
|
|
116
116
|
const n = e.__vccOpts || e;
|
|
117
117
|
for (const [o, r] of t)
|
|
118
118
|
n[o] = r;
|
|
@@ -145,8 +145,8 @@ const ea = { class: "aform" }, ta = /* @__PURE__ */ Z({
|
|
|
145
145
|
set: () => {
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
|
-
return (s, l) => (
|
|
149
|
-
(
|
|
148
|
+
return (s, l) => (N(), T("form", ea, [
|
|
149
|
+
(N(!0), T(Se, null, Ie(s.modelValue, (u, d) => (N(), Oe(tn(u.component), nn({
|
|
150
150
|
key: d,
|
|
151
151
|
schema: u,
|
|
152
152
|
modelValue: i.value[d].value,
|
|
@@ -324,10 +324,10 @@ function $o() {
|
|
|
324
324
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
325
325
|
}
|
|
326
326
|
const ia = typeof Proxy == "function", la = "devtools-plugin:setup", ca = "plugin:settings:set";
|
|
327
|
-
let
|
|
327
|
+
let Le, Bt;
|
|
328
328
|
function ua() {
|
|
329
329
|
var e;
|
|
330
|
-
return
|
|
330
|
+
return Le !== void 0 || (typeof window < "u" && window.performance ? (Le = !0, Bt = window.performance) : typeof global < "u" && !((e = global.perf_hooks) === null || e === void 0) && e.performance ? (Le = !0, Bt = global.perf_hooks.performance) : Le = !1), Le;
|
|
331
331
|
}
|
|
332
332
|
function da() {
|
|
333
333
|
return ua() ? Bt.now() : Date.now();
|
|
@@ -413,30 +413,30 @@ function cn(e, t) {
|
|
|
413
413
|
* @license MIT
|
|
414
414
|
*/
|
|
415
415
|
let Be;
|
|
416
|
-
const
|
|
416
|
+
const Qe = (e) => Be = e, xo = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
417
417
|
/* istanbul ignore next */
|
|
418
418
|
Symbol()
|
|
419
419
|
);
|
|
420
|
-
function
|
|
420
|
+
function Ne(e) {
|
|
421
421
|
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
422
422
|
}
|
|
423
423
|
var re;
|
|
424
424
|
(function(e) {
|
|
425
425
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
426
426
|
})(re || (re = {}));
|
|
427
|
-
const bt = typeof window < "u", Fe = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && bt,
|
|
427
|
+
const bt = typeof window < "u", Fe = (process.env.NODE_ENV !== "production" || !1) && process.env.NODE_ENV !== "test" && bt, Nn = 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 };
|
|
428
428
|
function fa(e, { autoBom: t = !1 } = {}) {
|
|
429
429
|
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;
|
|
430
430
|
}
|
|
431
431
|
function un(e, t, n) {
|
|
432
432
|
const o = new XMLHttpRequest();
|
|
433
433
|
o.open("GET", e), o.responseType = "blob", o.onload = function() {
|
|
434
|
-
|
|
434
|
+
Io(o.response, t, n);
|
|
435
435
|
}, o.onerror = function() {
|
|
436
436
|
console.error("could not download file");
|
|
437
437
|
}, o.send();
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function Oo(e) {
|
|
440
440
|
const t = new XMLHttpRequest();
|
|
441
441
|
t.open("HEAD", e, !1);
|
|
442
442
|
try {
|
|
@@ -453,7 +453,7 @@ function ct(e) {
|
|
|
453
453
|
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
const ut = typeof navigator == "object" ? navigator : { userAgent: "" }, So = /Macintosh/.test(ut.userAgent) && /AppleWebKit/.test(ut.userAgent) && !/Safari/.test(ut.userAgent),
|
|
456
|
+
const ut = typeof navigator == "object" ? navigator : { userAgent: "" }, So = /Macintosh/.test(ut.userAgent) && /AppleWebKit/.test(ut.userAgent) && !/Safari/.test(ut.userAgent), Io = bt ? (
|
|
457
457
|
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
|
|
458
458
|
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !So ? ha : (
|
|
459
459
|
// Use msSaveOrOpenBlob as a second approach
|
|
@@ -466,7 +466,7 @@ const ut = typeof navigator == "object" ? navigator : { userAgent: "" }, So = /M
|
|
|
466
466
|
};
|
|
467
467
|
function ha(e, t = "download", n) {
|
|
468
468
|
const o = document.createElement("a");
|
|
469
|
-
o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin !== location.origin ?
|
|
469
|
+
o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin !== location.origin ? Oo(o.href) ? un(e, t, n) : (o.target = "_blank", ct(o)) : ct(o)) : (o.href = URL.createObjectURL(e), setTimeout(function() {
|
|
470
470
|
URL.revokeObjectURL(o.href);
|
|
471
471
|
}, 4e4), setTimeout(function() {
|
|
472
472
|
ct(o);
|
|
@@ -474,7 +474,7 @@ function ha(e, t = "download", n) {
|
|
|
474
474
|
}
|
|
475
475
|
function ma(e, t = "download", n) {
|
|
476
476
|
if (typeof e == "string")
|
|
477
|
-
if (
|
|
477
|
+
if (Oo(e))
|
|
478
478
|
un(e, t, n);
|
|
479
479
|
else {
|
|
480
480
|
const o = document.createElement("a");
|
|
@@ -488,7 +488,7 @@ function ma(e, t = "download", n) {
|
|
|
488
488
|
function va(e, t, n, o) {
|
|
489
489
|
if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof e == "string")
|
|
490
490
|
return un(e, t, n);
|
|
491
|
-
const r = e.type === "application/octet-stream", a = /constructor/i.test(String(
|
|
491
|
+
const r = e.type === "application/octet-stream", a = /constructor/i.test(String(Nn.HTMLElement)) || "safari" in Nn, i = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
492
492
|
if ((i || r && a || So) && typeof FileReader < "u") {
|
|
493
493
|
const s = new FileReader();
|
|
494
494
|
s.onloadend = function() {
|
|
@@ -511,7 +511,7 @@ function B(e, t) {
|
|
|
511
511
|
function dn(e) {
|
|
512
512
|
return "_a" in e && "install" in e;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function No() {
|
|
515
515
|
if (!("clipboard" in navigator))
|
|
516
516
|
return B("Your browser doesn't support the Clipboard API", "error"), !0;
|
|
517
517
|
}
|
|
@@ -519,7 +519,7 @@ function Co(e) {
|
|
|
519
519
|
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (B('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
|
|
520
520
|
}
|
|
521
521
|
async function ga(e) {
|
|
522
|
-
if (!
|
|
522
|
+
if (!No())
|
|
523
523
|
try {
|
|
524
524
|
await navigator.clipboard.writeText(JSON.stringify(e.state.value)), B("Global state copied to clipboard.");
|
|
525
525
|
} catch (t) {
|
|
@@ -529,7 +529,7 @@ async function ga(e) {
|
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
async function ya(e) {
|
|
532
|
-
if (!
|
|
532
|
+
if (!No())
|
|
533
533
|
try {
|
|
534
534
|
Po(e, JSON.parse(await navigator.clipboard.readText())), B("Global state pasted from clipboard.");
|
|
535
535
|
} catch (t) {
|
|
@@ -540,7 +540,7 @@ async function ya(e) {
|
|
|
540
540
|
}
|
|
541
541
|
async function wa(e) {
|
|
542
542
|
try {
|
|
543
|
-
|
|
543
|
+
Io(new Blob([JSON.stringify(e.state.value)], {
|
|
544
544
|
type: "text/plain;charset=utf-8"
|
|
545
545
|
}), "pinia-state.json");
|
|
546
546
|
} catch (t) {
|
|
@@ -646,7 +646,7 @@ function $a(e) {
|
|
|
646
646
|
newValue: e.newValue
|
|
647
647
|
} : {};
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function xa(e) {
|
|
650
650
|
switch (e) {
|
|
651
651
|
case re.direct:
|
|
652
652
|
return "mutation";
|
|
@@ -659,7 +659,7 @@ function Oa(e) {
|
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
let De = !0;
|
|
662
|
-
const dt = [], ke = "pinia:mutations",
|
|
662
|
+
const dt = [], ke = "pinia:mutations", G = "pinia", { assign: Oa } = Object, vt = (e) => "🍍 " + e;
|
|
663
663
|
function Sa(e, t) {
|
|
664
664
|
cn({
|
|
665
665
|
id: "dev.esm.pinia",
|
|
@@ -675,7 +675,7 @@ function Sa(e, t) {
|
|
|
675
675
|
label: "Pinia 🍍",
|
|
676
676
|
color: 15064968
|
|
677
677
|
}), n.addInspector({
|
|
678
|
-
id:
|
|
678
|
+
id: G,
|
|
679
679
|
label: "Pinia 🍍",
|
|
680
680
|
icon: "storage",
|
|
681
681
|
treeFilterPlaceholder: "Search stores",
|
|
@@ -690,7 +690,7 @@ function Sa(e, t) {
|
|
|
690
690
|
{
|
|
691
691
|
icon: "content_paste",
|
|
692
692
|
action: async () => {
|
|
693
|
-
await ya(t), n.sendInspectorTree(
|
|
693
|
+
await ya(t), n.sendInspectorTree(G), n.sendInspectorState(G);
|
|
694
694
|
},
|
|
695
695
|
tooltip: "Replace the state with the content of your clipboard"
|
|
696
696
|
},
|
|
@@ -704,7 +704,7 @@ function Sa(e, t) {
|
|
|
704
704
|
{
|
|
705
705
|
icon: "folder_open",
|
|
706
706
|
action: async () => {
|
|
707
|
-
await _a(t), n.sendInspectorTree(
|
|
707
|
+
await _a(t), n.sendInspectorTree(G), n.sendInspectorState(G);
|
|
708
708
|
},
|
|
709
709
|
tooltip: "Import the state from a JSON file"
|
|
710
710
|
}
|
|
@@ -759,19 +759,19 @@ function Sa(e, t) {
|
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
761
|
}), n.on.getInspectorTree((o) => {
|
|
762
|
-
if (o.app === e && o.inspectorId ===
|
|
762
|
+
if (o.app === e && o.inspectorId === G) {
|
|
763
763
|
let r = [t];
|
|
764
764
|
r = r.concat(Array.from(t._s.values())), o.rootNodes = (o.filter ? r.filter((a) => "$id" in a ? a.$id.toLowerCase().includes(o.filter.toLowerCase()) : Do.toLowerCase().includes(o.filter.toLowerCase())) : r).map(Ea);
|
|
765
765
|
}
|
|
766
766
|
}), n.on.getInspectorState((o) => {
|
|
767
|
-
if (o.app === e && o.inspectorId ===
|
|
767
|
+
if (o.app === e && o.inspectorId === G) {
|
|
768
768
|
const r = o.nodeId === Wt ? t : t._s.get(o.nodeId);
|
|
769
769
|
if (!r)
|
|
770
770
|
return;
|
|
771
771
|
r && (o.state = ka(r));
|
|
772
772
|
}
|
|
773
773
|
}), n.on.editInspectorState((o, r) => {
|
|
774
|
-
if (o.app === e && o.inspectorId ===
|
|
774
|
+
if (o.app === e && o.inspectorId === G) {
|
|
775
775
|
const a = o.nodeId === Wt ? t : t._s.get(o.nodeId);
|
|
776
776
|
if (!a)
|
|
777
777
|
return B(`store "${o.nodeId}" not found`, "error");
|
|
@@ -793,7 +793,7 @@ Only state can be modified.`);
|
|
|
793
793
|
});
|
|
794
794
|
});
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function Ia(e, t) {
|
|
797
797
|
dt.includes(vt(t.$id)) || dt.push(vt(t.$id)), cn({
|
|
798
798
|
id: "dev.esm.pinia",
|
|
799
799
|
label: "Pinia 🍍",
|
|
@@ -867,7 +867,7 @@ function Na(e, t) {
|
|
|
867
867
|
});
|
|
868
868
|
}, !0), t._customProperties.forEach((i) => {
|
|
869
869
|
K(() => k(t[i]), (s, l) => {
|
|
870
|
-
n.notifyComponentUpdate(), n.sendInspectorState(
|
|
870
|
+
n.notifyComponentUpdate(), n.sendInspectorState(G), De && n.addTimelineEvent({
|
|
871
871
|
layerId: ke,
|
|
872
872
|
event: {
|
|
873
873
|
time: o(),
|
|
@@ -882,12 +882,12 @@ function Na(e, t) {
|
|
|
882
882
|
});
|
|
883
883
|
}, { deep: !0 });
|
|
884
884
|
}), t.$subscribe(({ events: i, type: s }, l) => {
|
|
885
|
-
if (n.notifyComponentUpdate(), n.sendInspectorState(
|
|
885
|
+
if (n.notifyComponentUpdate(), n.sendInspectorState(G), !De)
|
|
886
886
|
return;
|
|
887
887
|
const u = {
|
|
888
888
|
time: o(),
|
|
889
|
-
title:
|
|
890
|
-
data:
|
|
889
|
+
title: xa(s),
|
|
890
|
+
data: Oa({ store: ne(t.$id) }, $a(i)),
|
|
891
891
|
groupId: ye
|
|
892
892
|
};
|
|
893
893
|
s === re.patchFunction ? u.subtitle = "⤵️" : s === re.patchObject ? u.subtitle = "🧩" : i && !Array.isArray(i) && (u.subtitle = i.type), i && (u.data["rawEvent(s)"] = {
|
|
@@ -903,7 +903,7 @@ function Na(e, t) {
|
|
|
903
903
|
});
|
|
904
904
|
}, { detached: !0, flush: "sync" });
|
|
905
905
|
const r = t._hotUpdate;
|
|
906
|
-
t._hotUpdate =
|
|
906
|
+
t._hotUpdate = xe((i) => {
|
|
907
907
|
r(i), n.addTimelineEvent({
|
|
908
908
|
layerId: ke,
|
|
909
909
|
event: {
|
|
@@ -915,12 +915,12 @@ function Na(e, t) {
|
|
|
915
915
|
info: ne("HMR update")
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
|
-
}), n.notifyComponentUpdate(), n.sendInspectorTree(
|
|
918
|
+
}), n.notifyComponentUpdate(), n.sendInspectorTree(G), n.sendInspectorState(G);
|
|
919
919
|
});
|
|
920
920
|
const { $dispose: a } = t;
|
|
921
921
|
t.$dispose = () => {
|
|
922
|
-
a(), n.notifyComponentUpdate(), n.sendInspectorTree(
|
|
923
|
-
}, n.notifyComponentUpdate(), n.sendInspectorTree(
|
|
922
|
+
a(), n.notifyComponentUpdate(), n.sendInspectorTree(G), n.sendInspectorState(G), n.getSettings().logStoreChanges && B(`Disposed "${t.$id}" store 🗑`);
|
|
923
|
+
}, n.notifyComponentUpdate(), n.sendInspectorTree(G), n.sendInspectorState(G), n.getSettings().logStoreChanges && B(`"${t.$id}" store installed 🆕`);
|
|
924
924
|
});
|
|
925
925
|
}
|
|
926
926
|
let Ao = 0, ye;
|
|
@@ -941,14 +941,14 @@ function Cn(e, t, n) {
|
|
|
941
941
|
return ye = void 0, s;
|
|
942
942
|
};
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function Na({ app: e, store: t, options: n }) {
|
|
945
945
|
if (t.$id.startsWith("__hot:"))
|
|
946
946
|
return;
|
|
947
947
|
t._isOptionsAPI = !!n.state, Cn(t, Object.keys(n.actions), t._isOptionsAPI);
|
|
948
948
|
const o = t._hotUpdate;
|
|
949
949
|
yt(t)._hotUpdate = function(r) {
|
|
950
950
|
o.apply(this, arguments), Cn(t, Object.keys(r._hmrPayload.actions), !!t._isOptionsAPI);
|
|
951
|
-
},
|
|
951
|
+
}, Ia(
|
|
952
952
|
e,
|
|
953
953
|
// FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
|
|
954
954
|
t
|
|
@@ -957,9 +957,9 @@ function Ia({ app: e, store: t, options: n }) {
|
|
|
957
957
|
function Ca() {
|
|
958
958
|
const e = wo(!0), t = e.run(() => j({}));
|
|
959
959
|
let n = [], o = [];
|
|
960
|
-
const r =
|
|
960
|
+
const r = xe({
|
|
961
961
|
install(a) {
|
|
962
|
-
|
|
962
|
+
Qe(r), r._a = a, a.provide(xo, r), a.config.globalProperties.$pinia = r, Fe && Sa(a, r), o.forEach((i) => n.push(i)), o = [];
|
|
963
963
|
},
|
|
964
964
|
use(a) {
|
|
965
965
|
return !this._a && !ko ? o.push(a) : n.push(a), this;
|
|
@@ -972,7 +972,7 @@ function Ca() {
|
|
|
972
972
|
_s: /* @__PURE__ */ new Map(),
|
|
973
973
|
state: t
|
|
974
974
|
});
|
|
975
|
-
return Fe && typeof Proxy < "u" && r.use(
|
|
975
|
+
return Fe && typeof Proxy < "u" && r.use(Na), r;
|
|
976
976
|
}
|
|
977
977
|
function To(e, t) {
|
|
978
978
|
for (const n in t) {
|
|
@@ -980,7 +980,7 @@ function To(e, t) {
|
|
|
980
980
|
if (!(n in e))
|
|
981
981
|
continue;
|
|
982
982
|
const r = e[n];
|
|
983
|
-
|
|
983
|
+
Ne(r) && Ne(o) && !Ke(o) && !on(o) ? e[n] = To(r, o) : e[n] = o;
|
|
984
984
|
}
|
|
985
985
|
return e;
|
|
986
986
|
}
|
|
@@ -1006,7 +1006,7 @@ function Ft(e, t) {
|
|
|
1006
1006
|
if (!t.hasOwnProperty(n))
|
|
1007
1007
|
continue;
|
|
1008
1008
|
const o = t[n], r = e[n];
|
|
1009
|
-
|
|
1009
|
+
Ne(r) && Ne(o) && e.hasOwnProperty(n) && !Ke(o) && !on(o) ? e[n] = Ft(r, o) : e[n] = o;
|
|
1010
1010
|
}
|
|
1011
1011
|
return e;
|
|
1012
1012
|
}
|
|
@@ -1015,9 +1015,9 @@ const Da = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration")
|
|
|
1015
1015
|
Symbol()
|
|
1016
1016
|
);
|
|
1017
1017
|
function Aa(e) {
|
|
1018
|
-
return !
|
|
1018
|
+
return !Ne(e) || !e.hasOwnProperty(Da);
|
|
1019
1019
|
}
|
|
1020
|
-
const { assign:
|
|
1020
|
+
const { assign: Q } = Object;
|
|
1021
1021
|
function Dn(e) {
|
|
1022
1022
|
return !!(Ke(e) && e.effect);
|
|
1023
1023
|
}
|
|
@@ -1028,10 +1028,10 @@ function An(e, t, n, o) {
|
|
|
1028
1028
|
!s && (process.env.NODE_ENV === "production" || !o) && (n.state.value[e] = r ? r() : {});
|
|
1029
1029
|
const d = process.env.NODE_ENV !== "production" && o ? (
|
|
1030
1030
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
1031
|
-
|
|
1032
|
-
) :
|
|
1033
|
-
return
|
|
1034
|
-
|
|
1031
|
+
In(j(r ? r() : {}).value)
|
|
1032
|
+
) : In(n.state.value[e]);
|
|
1033
|
+
return Q(d, a, Object.keys(i || {}).reduce((c, p) => (process.env.NODE_ENV !== "production" && p in d && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${e}".`), c[p] = xe(V(() => {
|
|
1034
|
+
Qe(n);
|
|
1035
1035
|
const f = n._s.get(e);
|
|
1036
1036
|
return i[p].call(f, f);
|
|
1037
1037
|
})), c), {}));
|
|
@@ -1040,7 +1040,7 @@ function An(e, t, n, o) {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
function qt(e, t, n = {}, o, r, a) {
|
|
1042
1042
|
let i;
|
|
1043
|
-
const s =
|
|
1043
|
+
const s = Q({ actions: {} }, n);
|
|
1044
1044
|
if (process.env.NODE_ENV !== "production" && !o._e.active)
|
|
1045
1045
|
throw new Error("Pinia destroyed");
|
|
1046
1046
|
const l = {
|
|
@@ -1055,7 +1055,7 @@ function qt(e, t, n = {}, o, r, a) {
|
|
|
1055
1055
|
!a && !m && (process.env.NODE_ENV === "production" || !r) && (o.state.value[e] = {});
|
|
1056
1056
|
const v = j({});
|
|
1057
1057
|
let $;
|
|
1058
|
-
function
|
|
1058
|
+
function P(b) {
|
|
1059
1059
|
let w;
|
|
1060
1060
|
u = d = !1, process.env.NODE_ENV !== "production" && (f = []), typeof b == "function" ? (b(o.state.value[e]), w = {
|
|
1061
1061
|
type: re.patchFunction,
|
|
@@ -1067,15 +1067,15 @@ function qt(e, t, n = {}, o, r, a) {
|
|
|
1067
1067
|
storeId: e,
|
|
1068
1068
|
events: f
|
|
1069
1069
|
});
|
|
1070
|
-
const
|
|
1071
|
-
|
|
1072
|
-
$ ===
|
|
1070
|
+
const L = $ = Symbol();
|
|
1071
|
+
Ye().then(() => {
|
|
1072
|
+
$ === L && (u = !0);
|
|
1073
1073
|
}), d = !0, Pe(c, w, o.state.value[e]);
|
|
1074
1074
|
}
|
|
1075
|
-
const
|
|
1075
|
+
const x = a ? function() {
|
|
1076
1076
|
const { state: b } = n, w = b ? b() : {};
|
|
1077
|
-
this.$patch((
|
|
1078
|
-
|
|
1077
|
+
this.$patch((L) => {
|
|
1078
|
+
Q(L, w);
|
|
1079
1079
|
});
|
|
1080
1080
|
} : (
|
|
1081
1081
|
/* istanbul ignore next */
|
|
@@ -1083,36 +1083,36 @@ function qt(e, t, n = {}, o, r, a) {
|
|
|
1083
1083
|
throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
|
|
1084
1084
|
} : jo
|
|
1085
1085
|
);
|
|
1086
|
-
function
|
|
1086
|
+
function I() {
|
|
1087
1087
|
i.stop(), c = [], p = [], o._s.delete(e);
|
|
1088
1088
|
}
|
|
1089
1089
|
function W(b, w) {
|
|
1090
1090
|
return function() {
|
|
1091
|
-
|
|
1092
|
-
const
|
|
1093
|
-
function
|
|
1091
|
+
Qe(o);
|
|
1092
|
+
const L = Array.from(arguments), J = [], te = [];
|
|
1093
|
+
function xt(F) {
|
|
1094
1094
|
J.push(F);
|
|
1095
1095
|
}
|
|
1096
1096
|
function Ve(F) {
|
|
1097
1097
|
te.push(F);
|
|
1098
1098
|
}
|
|
1099
1099
|
Pe(p, {
|
|
1100
|
-
args:
|
|
1100
|
+
args: L,
|
|
1101
1101
|
name: b,
|
|
1102
1102
|
store: E,
|
|
1103
|
-
after:
|
|
1103
|
+
after: xt,
|
|
1104
1104
|
onError: Ve
|
|
1105
1105
|
});
|
|
1106
1106
|
let he;
|
|
1107
1107
|
try {
|
|
1108
|
-
he = w.apply(this && this.$id === e ? this : E,
|
|
1108
|
+
he = w.apply(this && this.$id === e ? this : E, L);
|
|
1109
1109
|
} catch (F) {
|
|
1110
1110
|
throw Pe(te, F), F;
|
|
1111
1111
|
}
|
|
1112
1112
|
return he instanceof Promise ? he.then((F) => (Pe(J, F), F)).catch((F) => (Pe(te, F), Promise.reject(F))) : (Pe(J, he), he);
|
|
1113
1113
|
};
|
|
1114
1114
|
}
|
|
1115
|
-
const
|
|
1115
|
+
const z = /* @__PURE__ */ xe({
|
|
1116
1116
|
actions: {},
|
|
1117
1117
|
getters: {},
|
|
1118
1118
|
state: [],
|
|
@@ -1122,23 +1122,23 @@ function qt(e, t, n = {}, o, r, a) {
|
|
|
1122
1122
|
// _s: scope,
|
|
1123
1123
|
$id: e,
|
|
1124
1124
|
$onAction: Pn.bind(null, p),
|
|
1125
|
-
$patch:
|
|
1126
|
-
$reset:
|
|
1125
|
+
$patch: P,
|
|
1126
|
+
$reset: x,
|
|
1127
1127
|
$subscribe(b, w = {}) {
|
|
1128
|
-
const
|
|
1128
|
+
const L = Pn(c, b, w.detached, () => J()), J = i.run(() => K(() => o.state.value[e], (te) => {
|
|
1129
1129
|
(w.flush === "sync" ? d : u) && b({
|
|
1130
1130
|
storeId: e,
|
|
1131
1131
|
type: re.direct,
|
|
1132
1132
|
events: f
|
|
1133
1133
|
}, te);
|
|
1134
|
-
},
|
|
1135
|
-
return
|
|
1134
|
+
}, Q({}, l, w)));
|
|
1135
|
+
return L;
|
|
1136
1136
|
},
|
|
1137
|
-
$dispose:
|
|
1138
|
-
}, E = $e(process.env.NODE_ENV !== "production" || Fe ?
|
|
1137
|
+
$dispose: I
|
|
1138
|
+
}, E = $e(process.env.NODE_ENV !== "production" || Fe ? Q(
|
|
1139
1139
|
{
|
|
1140
|
-
_hmrPayload:
|
|
1141
|
-
_customProperties:
|
|
1140
|
+
_hmrPayload: z,
|
|
1141
|
+
_customProperties: xe(/* @__PURE__ */ new Set())
|
|
1142
1142
|
// devtools custom properties
|
|
1143
1143
|
},
|
|
1144
1144
|
ee
|
|
@@ -1150,46 +1150,46 @@ function qt(e, t, n = {}, o, r, a) {
|
|
|
1150
1150
|
for (const b in oe) {
|
|
1151
1151
|
const w = oe[b];
|
|
1152
1152
|
if (Ke(w) && !Dn(w) || on(w))
|
|
1153
|
-
process.env.NODE_ENV !== "production" && r ? nt(v.value, b, st(oe, b)) : a || (m && Aa(w) && (Ke(w) ? w.value = m[b] : Ft(w, m[b])), o.state.value[e][b] = w), process.env.NODE_ENV !== "production" &&
|
|
1153
|
+
process.env.NODE_ENV !== "production" && r ? nt(v.value, b, st(oe, b)) : a || (m && Aa(w) && (Ke(w) ? w.value = m[b] : Ft(w, m[b])), o.state.value[e][b] = w), process.env.NODE_ENV !== "production" && z.state.push(b);
|
|
1154
1154
|
else if (typeof w == "function") {
|
|
1155
|
-
const
|
|
1156
|
-
oe[b] =
|
|
1157
|
-
} else process.env.NODE_ENV !== "production" && Dn(w) && (
|
|
1155
|
+
const L = process.env.NODE_ENV !== "production" && r ? w : W(b, w);
|
|
1156
|
+
oe[b] = L, process.env.NODE_ENV !== "production" && (z.actions[b] = w), s.actions[b] = w;
|
|
1157
|
+
} else process.env.NODE_ENV !== "production" && Dn(w) && (z.getters[b] = a ? (
|
|
1158
1158
|
// @ts-expect-error
|
|
1159
1159
|
n.getters[b]
|
|
1160
1160
|
) : w, bt && (oe._getters || // @ts-expect-error: same
|
|
1161
|
-
(oe._getters =
|
|
1161
|
+
(oe._getters = xe([]))).push(b));
|
|
1162
1162
|
}
|
|
1163
|
-
if (
|
|
1163
|
+
if (Q(E, oe), Q(yt(E), oe), Object.defineProperty(E, "$state", {
|
|
1164
1164
|
get: () => process.env.NODE_ENV !== "production" && r ? v.value : o.state.value[e],
|
|
1165
1165
|
set: (b) => {
|
|
1166
1166
|
if (process.env.NODE_ENV !== "production" && r)
|
|
1167
1167
|
throw new Error("cannot set hotState");
|
|
1168
|
-
|
|
1169
|
-
|
|
1168
|
+
P((w) => {
|
|
1169
|
+
Q(w, b);
|
|
1170
1170
|
});
|
|
1171
1171
|
}
|
|
1172
|
-
}), process.env.NODE_ENV !== "production" && (E._hotUpdate =
|
|
1172
|
+
}), process.env.NODE_ENV !== "production" && (E._hotUpdate = xe((b) => {
|
|
1173
1173
|
E._hotUpdating = !0, b._hmrPayload.state.forEach((w) => {
|
|
1174
1174
|
if (w in E.$state) {
|
|
1175
|
-
const
|
|
1176
|
-
typeof
|
|
1175
|
+
const L = b.$state[w], J = E.$state[w];
|
|
1176
|
+
typeof L == "object" && Ne(L) && Ne(J) ? To(L, J) : b.$state[w] = J;
|
|
1177
1177
|
}
|
|
1178
1178
|
nt(E, w, st(b.$state, w));
|
|
1179
1179
|
}), Object.keys(E.$state).forEach((w) => {
|
|
1180
1180
|
w in b.$state || Ct(E, w);
|
|
1181
|
-
}), u = !1, d = !1, o.state.value[e] = st(b._hmrPayload, "hotState"), d = !0,
|
|
1181
|
+
}), u = !1, d = !1, o.state.value[e] = st(b._hmrPayload, "hotState"), d = !0, Ye().then(() => {
|
|
1182
1182
|
u = !0;
|
|
1183
1183
|
});
|
|
1184
1184
|
for (const w in b._hmrPayload.actions) {
|
|
1185
|
-
const
|
|
1186
|
-
nt(E, w, W(w,
|
|
1185
|
+
const L = b[w];
|
|
1186
|
+
nt(E, w, W(w, L));
|
|
1187
1187
|
}
|
|
1188
1188
|
for (const w in b._hmrPayload.getters) {
|
|
1189
|
-
const
|
|
1189
|
+
const L = b._hmrPayload.getters[w], J = a ? (
|
|
1190
1190
|
// special handling of options api
|
|
1191
|
-
V(() => (
|
|
1192
|
-
) :
|
|
1191
|
+
V(() => (Qe(o), L.call(E, E)))
|
|
1192
|
+
) : L;
|
|
1193
1193
|
nt(E, w, J);
|
|
1194
1194
|
}
|
|
1195
1195
|
Object.keys(E._hmrPayload.getters).forEach((w) => {
|
|
@@ -1205,7 +1205,7 @@ function qt(e, t, n = {}, o, r, a) {
|
|
|
1205
1205
|
enumerable: !1
|
|
1206
1206
|
};
|
|
1207
1207
|
["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((w) => {
|
|
1208
|
-
Object.defineProperty(E, w,
|
|
1208
|
+
Object.defineProperty(E, w, Q({ value: E[w] }, b));
|
|
1209
1209
|
});
|
|
1210
1210
|
}
|
|
1211
1211
|
return o._p.forEach((b) => {
|
|
@@ -1216,9 +1216,9 @@ function qt(e, t, n = {}, o, r, a) {
|
|
|
1216
1216
|
pinia: o,
|
|
1217
1217
|
options: s
|
|
1218
1218
|
}));
|
|
1219
|
-
Object.keys(w || {}).forEach((
|
|
1219
|
+
Object.keys(w || {}).forEach((L) => E._customProperties.add(L)), Q(E, w);
|
|
1220
1220
|
} else
|
|
1221
|
-
|
|
1221
|
+
Q(E, i.run(() => b({
|
|
1222
1222
|
store: E,
|
|
1223
1223
|
app: o._a,
|
|
1224
1224
|
pinia: o,
|
|
@@ -1239,14 +1239,14 @@ function Ta(e, t, n) {
|
|
|
1239
1239
|
const u = Sr();
|
|
1240
1240
|
if (s = // in test mode, ignore the argument provided as we can always retrieve a
|
|
1241
1241
|
// pinia instance with getActivePinia()
|
|
1242
|
-
(process.env.NODE_ENV === "test" && Be && Be._testing ? null : s) || (u ? ae(
|
|
1242
|
+
(process.env.NODE_ENV === "test" && Be && Be._testing ? null : s) || (u ? ae(xo, null) : null), s && Qe(s), process.env.NODE_ENV !== "production" && !Be)
|
|
1243
1243
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
1244
1244
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
1245
1245
|
This will fail in production.`);
|
|
1246
1246
|
s = Be, s._s.has(o) || (a ? qt(o, t, r, s) : An(o, r, s), process.env.NODE_ENV !== "production" && (i._pinia = s));
|
|
1247
1247
|
const d = s._s.get(o);
|
|
1248
1248
|
if (process.env.NODE_ENV !== "production" && l) {
|
|
1249
|
-
const c = "__hot:" + o, p = a ? qt(c, t, r, s, !0) : An(c,
|
|
1249
|
+
const c = "__hot:" + o, p = a ? qt(c, t, r, s, !0) : An(c, Q({}, r), s, !0);
|
|
1250
1250
|
l._hotUpdate(p), delete s.state.value[c], s._s.delete(c);
|
|
1251
1251
|
}
|
|
1252
1252
|
if (process.env.NODE_ENV !== "production" && bt) {
|
|
@@ -1268,7 +1268,7 @@ const ja = Ta("data", () => {
|
|
|
1268
1268
|
function Ro(e) {
|
|
1269
1269
|
e || (e = ae("$registry"));
|
|
1270
1270
|
const t = ja(), n = j(new aa(e, t)), o = j(!1);
|
|
1271
|
-
return
|
|
1271
|
+
return xr(async () => {
|
|
1272
1272
|
var r, a;
|
|
1273
1273
|
const i = e.router.currentRoute.value, s = (r = i.params.records) == null ? void 0 : r.toString().toLowerCase(), l = (a = i.params.record) == null ? void 0 : a.toString().toLowerCase();
|
|
1274
1274
|
if (!s && !l)
|
|
@@ -1306,34 +1306,34 @@ function Pt(e, t) {
|
|
|
1306
1306
|
const n = {};
|
|
1307
1307
|
for (const o in t) {
|
|
1308
1308
|
const r = t[o];
|
|
1309
|
-
n[o] =
|
|
1309
|
+
n[o] = Y(r) ? r.map(e) : e(r);
|
|
1310
1310
|
}
|
|
1311
1311
|
return n;
|
|
1312
1312
|
}
|
|
1313
1313
|
const qe = () => {
|
|
1314
|
-
},
|
|
1314
|
+
}, Y = Array.isArray;
|
|
1315
1315
|
function O(e) {
|
|
1316
1316
|
const t = Array.from(arguments).slice(1);
|
|
1317
1317
|
console.warn.apply(console, ["[Vue Router warn]: " + e].concat(t));
|
|
1318
1318
|
}
|
|
1319
|
-
const Vo = /#/g,
|
|
1319
|
+
const Vo = /#/g, La = /&/g, Ma = /\//g, Ua = /=/g, Ba = /\?/g, Lo = /\+/g, Wa = /%5B/g, Fa = /%5D/g, Mo = /%5E/g, qa = /%60/g, Uo = /%7B/g, Ga = /%7C/g, Bo = /%7D/g, za = /%20/g;
|
|
1320
1320
|
function pn(e) {
|
|
1321
|
-
return encodeURI("" + e).replace(
|
|
1321
|
+
return encodeURI("" + e).replace(Ga, "|").replace(Wa, "[").replace(Fa, "]");
|
|
1322
1322
|
}
|
|
1323
1323
|
function Ha(e) {
|
|
1324
|
-
return pn(e).replace(Uo, "{").replace(Bo, "}").replace(
|
|
1324
|
+
return pn(e).replace(Uo, "{").replace(Bo, "}").replace(Mo, "^");
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1327
|
-
return pn(e).replace(
|
|
1326
|
+
function Gt(e) {
|
|
1327
|
+
return pn(e).replace(Lo, "%2B").replace(za, "+").replace(Vo, "%23").replace(La, "%26").replace(qa, "`").replace(Uo, "{").replace(Bo, "}").replace(Mo, "^");
|
|
1328
1328
|
}
|
|
1329
1329
|
function Ja(e) {
|
|
1330
|
-
return
|
|
1330
|
+
return Gt(e).replace(Ua, "%3D");
|
|
1331
1331
|
}
|
|
1332
1332
|
function Ka(e) {
|
|
1333
1333
|
return pn(e).replace(Vo, "%23").replace(Ba, "%3F");
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1336
|
-
return e == null ? "" : Ka(e).replace(
|
|
1335
|
+
function Ya(e) {
|
|
1336
|
+
return e == null ? "" : Ka(e).replace(Ma, "%2F");
|
|
1337
1337
|
}
|
|
1338
1338
|
function Te(e) {
|
|
1339
1339
|
try {
|
|
@@ -1343,7 +1343,7 @@ function Te(e) {
|
|
|
1343
1343
|
}
|
|
1344
1344
|
return "" + e;
|
|
1345
1345
|
}
|
|
1346
|
-
const
|
|
1346
|
+
const Qa = /\/$/, Xa = (e) => e.replace(Qa, "");
|
|
1347
1347
|
function Dt(e, t, n = "/") {
|
|
1348
1348
|
let o, r = {}, a = "", i = "";
|
|
1349
1349
|
const s = t.indexOf("#");
|
|
@@ -1378,10 +1378,10 @@ function Wo(e, t) {
|
|
|
1378
1378
|
return !0;
|
|
1379
1379
|
}
|
|
1380
1380
|
function es(e, t) {
|
|
1381
|
-
return
|
|
1381
|
+
return Y(e) ? Rn(e, t) : Y(t) ? Rn(t, e) : e === t;
|
|
1382
1382
|
}
|
|
1383
1383
|
function Rn(e, t) {
|
|
1384
|
-
return
|
|
1384
|
+
return Y(t) ? e.length === t.length && e.every((n, o) => n === t[o]) : e.length === 1 && e[0] === t;
|
|
1385
1385
|
}
|
|
1386
1386
|
function ts(e, t) {
|
|
1387
1387
|
if (e.startsWith("/"))
|
|
@@ -1417,10 +1417,10 @@ var Xe;
|
|
|
1417
1417
|
(function(e) {
|
|
1418
1418
|
e.pop = "pop", e.push = "push";
|
|
1419
1419
|
})(Xe || (Xe = {}));
|
|
1420
|
-
var
|
|
1420
|
+
var Ge;
|
|
1421
1421
|
(function(e) {
|
|
1422
1422
|
e.back = "back", e.forward = "forward", e.unknown = "";
|
|
1423
|
-
})(
|
|
1423
|
+
})(Ge || (Ge = {}));
|
|
1424
1424
|
function ns(e) {
|
|
1425
1425
|
if (!e)
|
|
1426
1426
|
if (le) {
|
|
@@ -1474,13 +1474,13 @@ function ss(e) {
|
|
|
1474
1474
|
function Vn(e, t) {
|
|
1475
1475
|
return (history.state ? history.state.position - t : -1) + e;
|
|
1476
1476
|
}
|
|
1477
|
-
const
|
|
1477
|
+
const zt = /* @__PURE__ */ new Map();
|
|
1478
1478
|
function is(e, t) {
|
|
1479
|
-
|
|
1479
|
+
zt.set(e, t);
|
|
1480
1480
|
}
|
|
1481
1481
|
function ls(e) {
|
|
1482
|
-
const t =
|
|
1483
|
-
return
|
|
1482
|
+
const t = zt.get(e);
|
|
1483
|
+
return zt.delete(e), t;
|
|
1484
1484
|
}
|
|
1485
1485
|
let cs = () => location.protocol + "//" + location.host;
|
|
1486
1486
|
function Fo(e, t) {
|
|
@@ -1504,11 +1504,11 @@ function us(e, t, n, o) {
|
|
|
1504
1504
|
$ = v ? p.position - v.position : 0;
|
|
1505
1505
|
} else
|
|
1506
1506
|
o(f);
|
|
1507
|
-
r.forEach((
|
|
1508
|
-
|
|
1507
|
+
r.forEach((P) => {
|
|
1508
|
+
P(n.value, m, {
|
|
1509
1509
|
delta: $,
|
|
1510
1510
|
type: Xe.pop,
|
|
1511
|
-
direction: $ ? $ > 0 ?
|
|
1511
|
+
direction: $ ? $ > 0 ? Ge.forward : Ge.back : Ge.unknown
|
|
1512
1512
|
});
|
|
1513
1513
|
});
|
|
1514
1514
|
};
|
|
@@ -1540,7 +1540,7 @@ function us(e, t, n, o) {
|
|
|
1540
1540
|
destroy: c
|
|
1541
1541
|
};
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1543
|
+
function Ln(e, t, n, o = !1, r = !1) {
|
|
1544
1544
|
return {
|
|
1545
1545
|
back: e,
|
|
1546
1546
|
current: t,
|
|
@@ -1574,7 +1574,7 @@ function ds(e) {
|
|
|
1574
1574
|
}
|
|
1575
1575
|
}
|
|
1576
1576
|
function i(l, u) {
|
|
1577
|
-
const d = A({}, t.state,
|
|
1577
|
+
const d = A({}, t.state, Ln(
|
|
1578
1578
|
r.value.back,
|
|
1579
1579
|
// keep back and forward entries but override current position
|
|
1580
1580
|
l,
|
|
@@ -1601,7 +1601,7 @@ function ds(e) {
|
|
|
1601
1601
|
history.replaceState(history.state, '', url)
|
|
1602
1602
|
|
|
1603
1603
|
You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`), a(d.current, d, !0);
|
|
1604
|
-
const c = A({},
|
|
1604
|
+
const c = A({}, Ln(o.value, l, null), { position: d.position + 1 }, u);
|
|
1605
1605
|
a(l, c, !1), o.value = l;
|
|
1606
1606
|
}
|
|
1607
1607
|
return {
|
|
@@ -1639,10 +1639,10 @@ function qo(e) {
|
|
|
1639
1639
|
return typeof e == "string" || typeof e == "symbol";
|
|
1640
1640
|
}
|
|
1641
1641
|
const Ht = Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
1642
|
-
var
|
|
1642
|
+
var Mn;
|
|
1643
1643
|
(function(e) {
|
|
1644
1644
|
e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
|
|
1645
|
-
})(
|
|
1645
|
+
})(Mn || (Mn = {}));
|
|
1646
1646
|
const fs = {
|
|
1647
1647
|
1({ location: e, currentLocation: t }) {
|
|
1648
1648
|
return `No match for
|
|
@@ -1708,25 +1708,25 @@ function ys(e, t) {
|
|
|
1708
1708
|
if (p.type === 0)
|
|
1709
1709
|
c || (r += "/"), r += p.value.replace(gs, "\\$&"), f += 40;
|
|
1710
1710
|
else if (p.type === 1) {
|
|
1711
|
-
const { value: m, repeatable: v, optional: $, regexp:
|
|
1711
|
+
const { value: m, repeatable: v, optional: $, regexp: P } = p;
|
|
1712
1712
|
a.push({
|
|
1713
1713
|
name: m,
|
|
1714
1714
|
repeatable: v,
|
|
1715
1715
|
optional: $
|
|
1716
1716
|
});
|
|
1717
|
-
const
|
|
1718
|
-
if (
|
|
1717
|
+
const x = P || Un;
|
|
1718
|
+
if (x !== Un) {
|
|
1719
1719
|
f += 10;
|
|
1720
1720
|
try {
|
|
1721
|
-
new RegExp(`(${
|
|
1721
|
+
new RegExp(`(${x})`);
|
|
1722
1722
|
} catch (W) {
|
|
1723
|
-
throw new Error(`Invalid custom RegExp for param "${m}" (${
|
|
1723
|
+
throw new Error(`Invalid custom RegExp for param "${m}" (${x}): ` + W.message);
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|
|
1726
|
-
let
|
|
1727
|
-
c || (
|
|
1726
|
+
let I = v ? `((?:${x})(?:/(?:${x}))*)` : `(${x})`;
|
|
1727
|
+
c || (I = // avoid an optional / if there are more segments e.g. /:p?-static
|
|
1728
1728
|
// or /:p?-:p2
|
|
1729
|
-
$ && u.length < 2 ? `(?:/${
|
|
1729
|
+
$ && u.length < 2 ? `(?:/${I})` : "/" + I), $ && (I += "?"), r += I, f += 20, $ && (f += -8), v && (f += -20), x === ".*" && (f += -50);
|
|
1730
1730
|
}
|
|
1731
1731
|
d.push(f);
|
|
1732
1732
|
}
|
|
@@ -1756,16 +1756,16 @@ function ys(e, t) {
|
|
|
1756
1756
|
if (f.type === 0)
|
|
1757
1757
|
d += f.value;
|
|
1758
1758
|
else if (f.type === 1) {
|
|
1759
|
-
const { value: m, repeatable: v, optional: $ } = f,
|
|
1760
|
-
if (
|
|
1759
|
+
const { value: m, repeatable: v, optional: $ } = f, P = m in u ? u[m] : "";
|
|
1760
|
+
if (Y(P) && !v)
|
|
1761
1761
|
throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);
|
|
1762
|
-
const
|
|
1763
|
-
if (!
|
|
1762
|
+
const x = Y(P) ? P.join("/") : P;
|
|
1763
|
+
if (!x)
|
|
1764
1764
|
if ($)
|
|
1765
1765
|
p.length < 2 && (d.endsWith("/") ? d = d.slice(0, -1) : c = !0);
|
|
1766
1766
|
else
|
|
1767
1767
|
throw new Error(`Missing required param "${m}"`);
|
|
1768
|
-
d +=
|
|
1768
|
+
d += x;
|
|
1769
1769
|
}
|
|
1770
1770
|
}
|
|
1771
1771
|
return d || "/";
|
|
@@ -1788,7 +1788,7 @@ function ws(e, t) {
|
|
|
1788
1788
|
}
|
|
1789
1789
|
return e.length < t.length ? e.length === 1 && e[0] === 80 ? -1 : 1 : e.length > t.length ? t.length === 1 && t[0] === 80 ? 1 : -1 : 0;
|
|
1790
1790
|
}
|
|
1791
|
-
function
|
|
1791
|
+
function Go(e, t) {
|
|
1792
1792
|
let n = 0;
|
|
1793
1793
|
const o = e.score, r = t.score;
|
|
1794
1794
|
for (; n < o.length && n < r.length; ) {
|
|
@@ -1896,44 +1896,44 @@ function $s(e, t) {
|
|
|
1896
1896
|
return o.get(c);
|
|
1897
1897
|
}
|
|
1898
1898
|
function a(c, p, f) {
|
|
1899
|
-
const m = !f, v =
|
|
1900
|
-
process.env.NODE_ENV !== "production" &&
|
|
1901
|
-
const $ = qn(t, c),
|
|
1899
|
+
const m = !f, v = xs(c);
|
|
1900
|
+
process.env.NODE_ENV !== "production" && Ns(v, p), v.aliasOf = f && f.record;
|
|
1901
|
+
const $ = qn(t, c), P = [
|
|
1902
1902
|
v
|
|
1903
1903
|
];
|
|
1904
1904
|
if ("alias" in c) {
|
|
1905
1905
|
const W = typeof c.alias == "string" ? [c.alias] : c.alias;
|
|
1906
|
-
for (const
|
|
1907
|
-
|
|
1906
|
+
for (const z of W)
|
|
1907
|
+
P.push(A({}, v, {
|
|
1908
1908
|
// this allows us to hold a copy of the `components` option
|
|
1909
1909
|
// so that async components cache is hold on the original record
|
|
1910
1910
|
components: f ? f.record.components : v.components,
|
|
1911
|
-
path:
|
|
1911
|
+
path: z,
|
|
1912
1912
|
// we might be the child of an alias
|
|
1913
1913
|
aliasOf: f ? f.record : v
|
|
1914
1914
|
// the aliases are always of the same kind as the original since they
|
|
1915
1915
|
// are defined on the same record
|
|
1916
1916
|
}));
|
|
1917
1917
|
}
|
|
1918
|
-
let
|
|
1919
|
-
for (const W of
|
|
1920
|
-
const { path:
|
|
1921
|
-
if (p &&
|
|
1918
|
+
let x, I;
|
|
1919
|
+
for (const W of P) {
|
|
1920
|
+
const { path: z } = W;
|
|
1921
|
+
if (p && z[0] !== "/") {
|
|
1922
1922
|
const ee = p.record.path, E = ee[ee.length - 1] === "/" ? "" : "/";
|
|
1923
|
-
W.path = p.record.path + (
|
|
1923
|
+
W.path = p.record.path + (z && E + z);
|
|
1924
1924
|
}
|
|
1925
1925
|
if (process.env.NODE_ENV !== "production" && W.path === "*")
|
|
1926
1926
|
throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
|
1927
1927
|
See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);
|
|
1928
|
-
if (
|
|
1928
|
+
if (x = ks(W, p, $), process.env.NODE_ENV !== "production" && p && z[0] === "/" && Cs(x, p), f ? (f.alias.push(x), process.env.NODE_ENV !== "production" && Is(f, x)) : (I = I || x, I !== x && I.alias.push(x), m && c.name && !Fn(x) && i(c.name)), zo(x) && l(x), v.children) {
|
|
1929
1929
|
const ee = v.children;
|
|
1930
1930
|
for (let E = 0; E < ee.length; E++)
|
|
1931
|
-
a(ee[E],
|
|
1931
|
+
a(ee[E], x, f && f.children[E]);
|
|
1932
1932
|
}
|
|
1933
|
-
f = f ||
|
|
1933
|
+
f = f || x;
|
|
1934
1934
|
}
|
|
1935
|
-
return
|
|
1936
|
-
i(
|
|
1935
|
+
return I ? () => {
|
|
1936
|
+
i(I);
|
|
1937
1937
|
} : qe;
|
|
1938
1938
|
}
|
|
1939
1939
|
function i(c) {
|
|
@@ -1960,8 +1960,8 @@ See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch
|
|
|
1960
1960
|
location: c
|
|
1961
1961
|
});
|
|
1962
1962
|
if (process.env.NODE_ENV !== "production") {
|
|
1963
|
-
const
|
|
1964
|
-
|
|
1963
|
+
const I = Object.keys(c.params || {}).filter((W) => !f.keys.find((z) => z.name === W));
|
|
1964
|
+
I.length && O(`Discarded invalid param(s) "${I.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
|
|
1965
1965
|
}
|
|
1966
1966
|
$ = f.record.name, m = A(
|
|
1967
1967
|
// paramsFromLocation is a new object
|
|
@@ -1969,32 +1969,32 @@ See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch
|
|
|
1969
1969
|
p.params,
|
|
1970
1970
|
// only keep params that exist in the resolved location
|
|
1971
1971
|
// only keep optional params coming from a parent record
|
|
1972
|
-
f.keys.filter((
|
|
1972
|
+
f.keys.filter((I) => !I.optional).concat(f.parent ? f.parent.keys.filter((I) => I.optional) : []).map((I) => I.name)
|
|
1973
1973
|
),
|
|
1974
1974
|
// discard any existing params in the current location that do not exist here
|
|
1975
1975
|
// #1497 this ensures better active/exact matching
|
|
1976
|
-
c.params && Wn(c.params, f.keys.map((
|
|
1976
|
+
c.params && Wn(c.params, f.keys.map((I) => I.name))
|
|
1977
1977
|
), v = f.stringify(m);
|
|
1978
1978
|
} else if (c.path != null)
|
|
1979
|
-
v = c.path, process.env.NODE_ENV !== "production" && !v.startsWith("/") && O(`The Matcher cannot resolve relative paths but received "${v}". Unless you directly called \`matcher.resolve("${v}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), f = n.find((
|
|
1979
|
+
v = c.path, process.env.NODE_ENV !== "production" && !v.startsWith("/") && O(`The Matcher cannot resolve relative paths but received "${v}". Unless you directly called \`matcher.resolve("${v}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), f = n.find((I) => I.re.test(v)), f && (m = f.parse(v), $ = f.record.name);
|
|
1980
1980
|
else {
|
|
1981
|
-
if (f = p.name ? o.get(p.name) : n.find((
|
|
1981
|
+
if (f = p.name ? o.get(p.name) : n.find((I) => I.re.test(p.path)), !f)
|
|
1982
1982
|
throw je(1, {
|
|
1983
1983
|
location: c,
|
|
1984
1984
|
currentLocation: p
|
|
1985
1985
|
});
|
|
1986
1986
|
$ = f.record.name, m = A({}, p.params, c.params), v = f.stringify(m);
|
|
1987
1987
|
}
|
|
1988
|
-
const
|
|
1989
|
-
let
|
|
1990
|
-
for (;
|
|
1991
|
-
|
|
1988
|
+
const P = [];
|
|
1989
|
+
let x = f;
|
|
1990
|
+
for (; x; )
|
|
1991
|
+
P.unshift(x.record), x = x.parent;
|
|
1992
1992
|
return {
|
|
1993
1993
|
name: $,
|
|
1994
1994
|
path: v,
|
|
1995
1995
|
params: m,
|
|
1996
|
-
matched:
|
|
1997
|
-
meta: Ss(
|
|
1996
|
+
matched: P,
|
|
1997
|
+
meta: Ss(P)
|
|
1998
1998
|
};
|
|
1999
1999
|
}
|
|
2000
2000
|
e.forEach((c) => a(c));
|
|
@@ -2016,7 +2016,7 @@ function Wn(e, t) {
|
|
|
2016
2016
|
o in e && (n[o] = e[o]);
|
|
2017
2017
|
return n;
|
|
2018
2018
|
}
|
|
2019
|
-
function
|
|
2019
|
+
function xs(e) {
|
|
2020
2020
|
return {
|
|
2021
2021
|
path: e.path,
|
|
2022
2022
|
redirect: e.redirect,
|
|
@@ -2024,7 +2024,7 @@ function Os(e) {
|
|
|
2024
2024
|
meta: e.meta || {},
|
|
2025
2025
|
aliasOf: void 0,
|
|
2026
2026
|
beforeEnter: e.beforeEnter,
|
|
2027
|
-
props:
|
|
2027
|
+
props: Os(e),
|
|
2028
2028
|
children: e.children || [],
|
|
2029
2029
|
instances: {},
|
|
2030
2030
|
leaveGuards: /* @__PURE__ */ new Set(),
|
|
@@ -2033,7 +2033,7 @@ function Os(e) {
|
|
|
2033
2033
|
components: "components" in e ? e.components || null : e.component && { default: e.component }
|
|
2034
2034
|
};
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function Os(e) {
|
|
2037
2037
|
const t = {}, n = e.props || !1;
|
|
2038
2038
|
if ("component" in e)
|
|
2039
2039
|
t.default = n;
|
|
@@ -2062,7 +2062,7 @@ function qn(e, t) {
|
|
|
2062
2062
|
function Jt(e, t) {
|
|
2063
2063
|
return e.name === t.name && e.optional === t.optional && e.repeatable === t.repeatable;
|
|
2064
2064
|
}
|
|
2065
|
-
function
|
|
2065
|
+
function Is(e, t) {
|
|
2066
2066
|
for (const n of e.keys)
|
|
2067
2067
|
if (!n.optional && !t.keys.find(Jt.bind(null, n)))
|
|
2068
2068
|
return O(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
|
|
@@ -2070,7 +2070,7 @@ function Ns(e, t) {
|
|
|
2070
2070
|
if (!n.optional && !e.keys.find(Jt.bind(null, n)))
|
|
2071
2071
|
return O(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
|
|
2072
2072
|
}
|
|
2073
|
-
function
|
|
2073
|
+
function Ns(e, t) {
|
|
2074
2074
|
t && t.record.name && !e.name && !e.path && O(`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.`);
|
|
2075
2075
|
}
|
|
2076
2076
|
function Cs(e, t) {
|
|
@@ -2082,7 +2082,7 @@ function Ps(e, t) {
|
|
|
2082
2082
|
let n = 0, o = t.length;
|
|
2083
2083
|
for (; n !== o; ) {
|
|
2084
2084
|
const a = n + o >> 1;
|
|
2085
|
-
|
|
2085
|
+
Go(e, t[a]) < 0 ? o = a : n = a + 1;
|
|
2086
2086
|
}
|
|
2087
2087
|
const r = Ds(e);
|
|
2088
2088
|
return r && (o = t.lastIndexOf(r, o - 1), process.env.NODE_ENV !== "production" && o < 0 && O(`Finding ancestor route "${r.record.path}" failed for "${e.record.path}"`)), o;
|
|
@@ -2090,10 +2090,10 @@ function Ps(e, t) {
|
|
|
2090
2090
|
function Ds(e) {
|
|
2091
2091
|
let t = e;
|
|
2092
2092
|
for (; t = t.parent; )
|
|
2093
|
-
if (
|
|
2093
|
+
if (zo(t) && Go(e, t) === 0)
|
|
2094
2094
|
return t;
|
|
2095
2095
|
}
|
|
2096
|
-
function
|
|
2096
|
+
function zo({ record: e }) {
|
|
2097
2097
|
return !!(e.name || e.components && Object.keys(e.components).length || e.redirect);
|
|
2098
2098
|
}
|
|
2099
2099
|
function As(e) {
|
|
@@ -2102,16 +2102,16 @@ function As(e) {
|
|
|
2102
2102
|
return t;
|
|
2103
2103
|
const n = (e[0] === "?" ? e.slice(1) : e).split("&");
|
|
2104
2104
|
for (let o = 0; o < n.length; ++o) {
|
|
2105
|
-
const r = n[o].replace(
|
|
2105
|
+
const r = n[o].replace(Lo, " "), a = r.indexOf("="), i = Te(a < 0 ? r : r.slice(0, a)), s = a < 0 ? null : Te(r.slice(a + 1));
|
|
2106
2106
|
if (i in t) {
|
|
2107
2107
|
let l = t[i];
|
|
2108
|
-
|
|
2108
|
+
Y(l) || (l = t[i] = [l]), l.push(s);
|
|
2109
2109
|
} else
|
|
2110
2110
|
t[i] = s;
|
|
2111
2111
|
}
|
|
2112
2112
|
return t;
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2114
|
+
function Gn(e) {
|
|
2115
2115
|
let t = "";
|
|
2116
2116
|
for (let n in e) {
|
|
2117
2117
|
const o = e[n];
|
|
@@ -2119,7 +2119,7 @@ function zn(e) {
|
|
|
2119
2119
|
o !== void 0 && (t += (t.length ? "&" : "") + n);
|
|
2120
2120
|
continue;
|
|
2121
2121
|
}
|
|
2122
|
-
(
|
|
2122
|
+
(Y(o) ? o.map((r) => r && Gt(r)) : [o && Gt(o)]).forEach((r) => {
|
|
2123
2123
|
r !== void 0 && (t += (t.length ? "&" : "") + n, r != null && (t += "=" + r));
|
|
2124
2124
|
});
|
|
2125
2125
|
}
|
|
@@ -2129,12 +2129,12 @@ function Ts(e) {
|
|
|
2129
2129
|
const t = {};
|
|
2130
2130
|
for (const n in e) {
|
|
2131
2131
|
const o = e[n];
|
|
2132
|
-
o !== void 0 && (t[n] =
|
|
2132
|
+
o !== void 0 && (t[n] = Y(o) ? o.map((r) => r == null ? null : "" + r) : o == null ? o : "" + o);
|
|
2133
2133
|
}
|
|
2134
2134
|
return t;
|
|
2135
2135
|
}
|
|
2136
|
-
const js = Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : ""),
|
|
2137
|
-
function
|
|
2136
|
+
const js = Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : ""), zn = Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : ""), fn = Symbol(process.env.NODE_ENV !== "production" ? "router" : ""), Ho = Symbol(process.env.NODE_ENV !== "production" ? "route location" : ""), Kt = Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
2137
|
+
function Me() {
|
|
2138
2138
|
let e = [];
|
|
2139
2139
|
function t(o) {
|
|
2140
2140
|
return e.push(o), () => {
|
|
@@ -2267,7 +2267,7 @@ function Hn(e) {
|
|
|
2267
2267
|
isExactActive: l.value,
|
|
2268
2268
|
error: null
|
|
2269
2269
|
};
|
|
2270
|
-
d.__vrl_devtools = d.__vrl_devtools || [], d.__vrl_devtools.push(c),
|
|
2270
|
+
d.__vrl_devtools = d.__vrl_devtools || [], d.__vrl_devtools.push(c), Nr(() => {
|
|
2271
2271
|
c.route = a.value, c.isActive = s.value, c.isExactActive = l.value, c.error = gt(k(e.to)) ? null : 'Invalid "to" value';
|
|
2272
2272
|
}, { flush: "post" });
|
|
2273
2273
|
}
|
|
@@ -2280,7 +2280,7 @@ function Hn(e) {
|
|
|
2280
2280
|
navigate: u
|
|
2281
2281
|
};
|
|
2282
2282
|
}
|
|
2283
|
-
const
|
|
2283
|
+
const Ls = /* @__PURE__ */ Z({
|
|
2284
2284
|
name: "RouterLink",
|
|
2285
2285
|
compatConfig: { MODE: 3 },
|
|
2286
2286
|
props: {
|
|
@@ -2321,7 +2321,7 @@ const Ms = /* @__PURE__ */ Z({
|
|
|
2321
2321
|
}, a);
|
|
2322
2322
|
};
|
|
2323
2323
|
}
|
|
2324
|
-
}),
|
|
2324
|
+
}), Ms = Ls;
|
|
2325
2325
|
function Us(e) {
|
|
2326
2326
|
if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button !== void 0 && e.button !== 0)) {
|
|
2327
2327
|
if (e.currentTarget && e.currentTarget.getAttribute) {
|
|
@@ -2338,7 +2338,7 @@ function Bs(e, t) {
|
|
|
2338
2338
|
if (typeof o == "string") {
|
|
2339
2339
|
if (o !== r)
|
|
2340
2340
|
return !1;
|
|
2341
|
-
} else if (!
|
|
2341
|
+
} else if (!Y(r) || r.length !== o.length || o.some((a, i) => a !== r[i]))
|
|
2342
2342
|
return !1;
|
|
2343
2343
|
}
|
|
2344
2344
|
return !0;
|
|
@@ -2362,7 +2362,7 @@ const Kn = (e, t, n) => e ?? t ?? n, Ws = /* @__PURE__ */ Z({
|
|
|
2362
2362
|
compatConfig: { MODE: 3 },
|
|
2363
2363
|
setup(e, { attrs: t, slots: n }) {
|
|
2364
2364
|
process.env.NODE_ENV !== "production" && qs();
|
|
2365
|
-
const o = ae(Kt), r = V(() => e.route || o.value), a = ae(
|
|
2365
|
+
const o = ae(Kt), r = V(() => e.route || o.value), a = ae(zn, 0), i = V(() => {
|
|
2366
2366
|
let u = k(a);
|
|
2367
2367
|
const { matched: d } = r.value;
|
|
2368
2368
|
let c;
|
|
@@ -2370,7 +2370,7 @@ const Kn = (e, t, n) => e ?? t ?? n, Ws = /* @__PURE__ */ Z({
|
|
|
2370
2370
|
u++;
|
|
2371
2371
|
return u;
|
|
2372
2372
|
}), s = V(() => r.value.matched[i.value]);
|
|
2373
|
-
it(
|
|
2373
|
+
it(zn, V(() => i.value + 1)), it(js, s), it(Kt, r);
|
|
2374
2374
|
const l = j();
|
|
2375
2375
|
return K(() => [l.value, s.value, e.name], ([u, d, c], [p, f, m]) => {
|
|
2376
2376
|
d && (d.instances[c] = u, f && f !== d && u && u === p && (d.leaveGuards.size || (d.leaveGuards = f.leaveGuards), d.updateGuards.size || (d.updateGuards = f.updateGuards))), u && d && // if there is no instance but to and from are the same this might be
|
|
@@ -2379,7 +2379,7 @@ const Kn = (e, t, n) => e ?? t ?? n, Ws = /* @__PURE__ */ Z({
|
|
|
2379
2379
|
}, { flush: "post" }), () => {
|
|
2380
2380
|
const u = r.value, d = e.name, c = s.value, p = c && c.components[d];
|
|
2381
2381
|
if (!p)
|
|
2382
|
-
return
|
|
2382
|
+
return Yn(n.default, { Component: p, route: u });
|
|
2383
2383
|
const f = c.props[d], m = f ? f === !0 ? u.params : typeof f == "function" ? f(u) : f : null, v = bo(p, A({}, m, t, {
|
|
2384
2384
|
onVnodeUnmounted: ($) => {
|
|
2385
2385
|
$.component.isUnmounted && (c.instances[d] = null);
|
|
@@ -2393,19 +2393,19 @@ const Kn = (e, t, n) => e ?? t ?? n, Ws = /* @__PURE__ */ Z({
|
|
|
2393
2393
|
path: c.path,
|
|
2394
2394
|
meta: c.meta
|
|
2395
2395
|
};
|
|
2396
|
-
(
|
|
2397
|
-
|
|
2396
|
+
(Y(v.ref) ? v.ref.map((P) => P.i) : [v.ref.i]).forEach((P) => {
|
|
2397
|
+
P.__vrv_devtools = $;
|
|
2398
2398
|
});
|
|
2399
2399
|
}
|
|
2400
2400
|
return (
|
|
2401
2401
|
// pass the vnode to the slot as a prop.
|
|
2402
2402
|
// h and <component :is="..."> both accept vnodes
|
|
2403
|
-
|
|
2403
|
+
Yn(n.default, { Component: v, route: u }) || v
|
|
2404
2404
|
);
|
|
2405
2405
|
};
|
|
2406
2406
|
}
|
|
2407
2407
|
});
|
|
2408
|
-
function
|
|
2408
|
+
function Yn(e, t) {
|
|
2409
2409
|
if (!e)
|
|
2410
2410
|
return null;
|
|
2411
2411
|
const n = e(t);
|
|
@@ -2448,12 +2448,12 @@ function ot(e) {
|
|
|
2448
2448
|
}
|
|
2449
2449
|
};
|
|
2450
2450
|
}
|
|
2451
|
-
let
|
|
2452
|
-
function
|
|
2451
|
+
let Gs = 0;
|
|
2452
|
+
function zs(e, t, n) {
|
|
2453
2453
|
if (t.__hasDevtools)
|
|
2454
2454
|
return;
|
|
2455
2455
|
t.__hasDevtools = !0;
|
|
2456
|
-
const o =
|
|
2456
|
+
const o = Gs++;
|
|
2457
2457
|
cn({
|
|
2458
2458
|
id: "org.vuejs.router" + (o ? "." + o : ""),
|
|
2459
2459
|
label: "Vue Router",
|
|
@@ -2480,9 +2480,9 @@ function Gs(e, t, n) {
|
|
|
2480
2480
|
backgroundColor: Jo
|
|
2481
2481
|
});
|
|
2482
2482
|
}
|
|
2483
|
-
|
|
2484
|
-
let f = p.route.path, m =
|
|
2485
|
-
p.error ? (f = p.error, m =
|
|
2483
|
+
Y(c.__vrl_devtools) && (c.__devtoolsApi = r, c.__vrl_devtools.forEach((p) => {
|
|
2484
|
+
let f = p.route.path, m = Qo, v = "", $ = 0;
|
|
2485
|
+
p.error ? (f = p.error, m = Qs, $ = Xs) : p.isExactActive ? (m = Yo, v = "This is exactly active") : p.isActive && (m = Ko, v = "This link is active"), d.tags.push({
|
|
2486
2486
|
label: f,
|
|
2487
2487
|
textColor: $,
|
|
2488
2488
|
tooltip: v,
|
|
@@ -2569,7 +2569,7 @@ function Gs(e, t, n) {
|
|
|
2569
2569
|
!p.parent.record.components);
|
|
2570
2570
|
c.forEach(er), d.filter && (c = c.filter((p) => (
|
|
2571
2571
|
// save matches state based on the payload
|
|
2572
|
-
|
|
2572
|
+
Yt(p, d.filter.toLowerCase())
|
|
2573
2573
|
))), c.forEach((p) => Zo(p, t.currentRoute.value)), d.rootNodes = c.map(Xo);
|
|
2574
2574
|
}
|
|
2575
2575
|
let u;
|
|
@@ -2634,7 +2634,7 @@ function Js(e) {
|
|
|
2634
2634
|
}
|
|
2635
2635
|
}), n;
|
|
2636
2636
|
}
|
|
2637
|
-
const Jo = 15485081, Ko = 2450411,
|
|
2637
|
+
const Jo = 15485081, Ko = 2450411, Yo = 8702998, Ks = 2282478, Qo = 16486972, Ys = 6710886, Qs = 16704226, Xs = 12131356;
|
|
2638
2638
|
function Xo(e) {
|
|
2639
2639
|
const t = [], { record: n } = e;
|
|
2640
2640
|
n.name != null && t.push({
|
|
@@ -2644,7 +2644,7 @@ function Xo(e) {
|
|
|
2644
2644
|
}), n.aliasOf && t.push({
|
|
2645
2645
|
label: "alias",
|
|
2646
2646
|
textColor: 0,
|
|
2647
|
-
backgroundColor:
|
|
2647
|
+
backgroundColor: Qo
|
|
2648
2648
|
}), e.__vd_match && t.push({
|
|
2649
2649
|
label: "matches",
|
|
2650
2650
|
textColor: 0,
|
|
@@ -2652,7 +2652,7 @@ function Xo(e) {
|
|
|
2652
2652
|
}), e.__vd_exactActive && t.push({
|
|
2653
2653
|
label: "exact",
|
|
2654
2654
|
textColor: 0,
|
|
2655
|
-
backgroundColor:
|
|
2655
|
+
backgroundColor: Yo
|
|
2656
2656
|
}), e.__vd_active && t.push({
|
|
2657
2657
|
label: "active",
|
|
2658
2658
|
textColor: 0,
|
|
@@ -2660,7 +2660,7 @@ function Xo(e) {
|
|
|
2660
2660
|
}), n.redirect && t.push({
|
|
2661
2661
|
label: typeof n.redirect == "string" ? `redirect: ${n.redirect}` : "redirects",
|
|
2662
2662
|
textColor: 16777215,
|
|
2663
|
-
backgroundColor:
|
|
2663
|
+
backgroundColor: Ys
|
|
2664
2664
|
});
|
|
2665
2665
|
let o = n.__vd_id;
|
|
2666
2666
|
return o == null && (o = String(Zs++), n.__vd_id = o), {
|
|
@@ -2679,14 +2679,14 @@ function Zo(e, t) {
|
|
|
2679
2679
|
function er(e) {
|
|
2680
2680
|
e.__vd_match = !1, e.children.forEach(er);
|
|
2681
2681
|
}
|
|
2682
|
-
function
|
|
2682
|
+
function Yt(e, t) {
|
|
2683
2683
|
const n = String(e.re).match(ei);
|
|
2684
2684
|
if (e.__vd_match = !1, !n || n.length < 3)
|
|
2685
2685
|
return !1;
|
|
2686
2686
|
if (new RegExp(n[1].replace(/\$$/, ""), n[2]).test(t))
|
|
2687
|
-
return e.children.forEach((a) =>
|
|
2687
|
+
return e.children.forEach((a) => Yt(a, t)), e.record.path !== "/" || t === "/" ? (e.__vd_match = e.re.test(t), !0) : !1;
|
|
2688
2688
|
const o = e.record.path.toLowerCase(), r = Te(o);
|
|
2689
|
-
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((a) =>
|
|
2689
|
+
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((a) => Yt(a, t));
|
|
2690
2690
|
}
|
|
2691
2691
|
function ti(e, t) {
|
|
2692
2692
|
const n = {};
|
|
@@ -2695,13 +2695,13 @@ function ti(e, t) {
|
|
|
2695
2695
|
return n;
|
|
2696
2696
|
}
|
|
2697
2697
|
function ni(e) {
|
|
2698
|
-
const t = $s(e.routes, e), n = e.parseQuery || As, o = e.stringifyQuery ||
|
|
2698
|
+
const t = $s(e.routes, e), n = e.parseQuery || As, o = e.stringifyQuery || Gn, r = e.history;
|
|
2699
2699
|
if (process.env.NODE_ENV !== "production" && !r)
|
|
2700
2700
|
throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');
|
|
2701
|
-
const a =
|
|
2701
|
+
const a = Me(), i = Me(), s = Me(), l = Or(me);
|
|
2702
2702
|
let u = me;
|
|
2703
2703
|
le && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
|
|
2704
|
-
const d = Pt.bind(null, (h) => "" + h), c = Pt.bind(null,
|
|
2704
|
+
const d = Pt.bind(null, (h) => "" + h), c = Pt.bind(null, Ya), p = (
|
|
2705
2705
|
// @ts-expect-error: intentionally avoid the type check
|
|
2706
2706
|
Pt.bind(null, Te)
|
|
2707
2707
|
);
|
|
@@ -2719,19 +2719,19 @@ function ni(e) {
|
|
|
2719
2719
|
function $(h) {
|
|
2720
2720
|
return !!t.getRecordMatcher(h);
|
|
2721
2721
|
}
|
|
2722
|
-
function
|
|
2722
|
+
function P(h, y) {
|
|
2723
2723
|
if (y = A({}, y || l.value), typeof h == "string") {
|
|
2724
|
-
const
|
|
2725
|
-
return process.env.NODE_ENV !== "production" && (_e.startsWith("//") ? O(`Location "${h}" resolved to "${_e}". A resolved location cannot start with multiple slashes.`) :
|
|
2726
|
-
params: p(
|
|
2727
|
-
hash: Te(
|
|
2724
|
+
const S = Dt(n, h, y.path), M = t.resolve({ path: S.path }, y), _e = r.createHref(S.fullPath);
|
|
2725
|
+
return process.env.NODE_ENV !== "production" && (_e.startsWith("//") ? O(`Location "${h}" resolved to "${_e}". A resolved location cannot start with multiple slashes.`) : M.matched.length || O(`No match found for location with path "${h}"`)), A(S, M, {
|
|
2726
|
+
params: p(M.params),
|
|
2727
|
+
hash: Te(S.hash),
|
|
2728
2728
|
redirectedFrom: void 0,
|
|
2729
2729
|
href: _e
|
|
2730
2730
|
});
|
|
2731
2731
|
}
|
|
2732
2732
|
if (process.env.NODE_ENV !== "production" && !gt(h))
|
|
2733
2733
|
return O(`router.resolve() was passed an invalid location. This will fail in production.
|
|
2734
|
-
- Location:`, h),
|
|
2734
|
+
- Location:`, h), P({});
|
|
2735
2735
|
let g;
|
|
2736
2736
|
if (h.path != null)
|
|
2737
2737
|
process.env.NODE_ENV !== "production" && "params" in h && !("name" in h) && // @ts-expect-error: the type is never
|
|
@@ -2739,11 +2739,11 @@ function ni(e) {
|
|
|
2739
2739
|
path: Dt(n, h.path, y.path).path
|
|
2740
2740
|
});
|
|
2741
2741
|
else {
|
|
2742
|
-
const
|
|
2743
|
-
for (const
|
|
2744
|
-
|
|
2742
|
+
const S = A({}, h.params);
|
|
2743
|
+
for (const M in S)
|
|
2744
|
+
S[M] == null && delete S[M];
|
|
2745
2745
|
g = A({}, h, {
|
|
2746
|
-
params: c(
|
|
2746
|
+
params: c(S)
|
|
2747
2747
|
}), y.params = c(y.params);
|
|
2748
2748
|
}
|
|
2749
2749
|
const _ = t.resolve(g, y), D = h.hash || "";
|
|
@@ -2751,8 +2751,8 @@ function ni(e) {
|
|
|
2751
2751
|
const U = Za(o, A({}, h, {
|
|
2752
2752
|
hash: Ha(D),
|
|
2753
2753
|
path: _.path
|
|
2754
|
-
})),
|
|
2755
|
-
return process.env.NODE_ENV !== "production" && (
|
|
2754
|
+
})), C = r.createHref(U);
|
|
2755
|
+
return process.env.NODE_ENV !== "production" && (C.startsWith("//") ? O(`Location "${h}" resolved to "${C}". A resolved location cannot start with multiple slashes.`) : _.matched.length || O(`No match found for location with path "${h.path != null ? h.path : h}"`)), A({
|
|
2756
2756
|
fullPath: U,
|
|
2757
2757
|
// keep the hash encoded so fullPath is effectively path + encodedQuery +
|
|
2758
2758
|
// hash
|
|
@@ -2763,17 +2763,17 @@ function ni(e) {
|
|
|
2763
2763
|
// numbers at `$route.query`, but at the point, the user will have to
|
|
2764
2764
|
// use their own type anyway.
|
|
2765
2765
|
// https://github.com/vuejs/router/issues/328#issuecomment-649481567
|
|
2766
|
-
o ===
|
|
2766
|
+
o === Gn ? Ts(h.query) : h.query || {}
|
|
2767
2767
|
)
|
|
2768
2768
|
}, _, {
|
|
2769
2769
|
redirectedFrom: void 0,
|
|
2770
|
-
href:
|
|
2770
|
+
href: C
|
|
2771
2771
|
});
|
|
2772
2772
|
}
|
|
2773
|
-
function
|
|
2773
|
+
function x(h) {
|
|
2774
2774
|
return typeof h == "string" ? Dt(n, h, l.value.path) : A({}, h);
|
|
2775
2775
|
}
|
|
2776
|
-
function
|
|
2776
|
+
function I(h, y) {
|
|
2777
2777
|
if (u !== h)
|
|
2778
2778
|
return je(8, {
|
|
2779
2779
|
from: y,
|
|
@@ -2783,15 +2783,15 @@ function ni(e) {
|
|
|
2783
2783
|
function W(h) {
|
|
2784
2784
|
return E(h);
|
|
2785
2785
|
}
|
|
2786
|
-
function
|
|
2787
|
-
return W(A(
|
|
2786
|
+
function z(h) {
|
|
2787
|
+
return W(A(x(h), { replace: !0 }));
|
|
2788
2788
|
}
|
|
2789
2789
|
function ee(h) {
|
|
2790
2790
|
const y = h.matched[h.matched.length - 1];
|
|
2791
2791
|
if (y && y.redirect) {
|
|
2792
2792
|
const { redirect: g } = y;
|
|
2793
2793
|
let _ = typeof g == "function" ? g(h) : g;
|
|
2794
|
-
if (typeof _ == "string" && (_ = _.includes("?") || _.includes("#") ? _ =
|
|
2794
|
+
if (typeof _ == "string" && (_ = _.includes("?") || _.includes("#") ? _ = x(_) : (
|
|
2795
2795
|
// force empty params
|
|
2796
2796
|
{ path: _ }
|
|
2797
2797
|
), _.params = {}), process.env.NODE_ENV !== "production" && _.path == null && !("name" in _))
|
|
@@ -2807,21 +2807,21 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2807
2807
|
}
|
|
2808
2808
|
}
|
|
2809
2809
|
function E(h, y) {
|
|
2810
|
-
const g = u =
|
|
2811
|
-
if (
|
|
2810
|
+
const g = u = P(h), _ = l.value, D = h.state, U = h.force, C = h.replace === !0, S = ee(g);
|
|
2811
|
+
if (S)
|
|
2812
2812
|
return E(
|
|
2813
|
-
A(
|
|
2814
|
-
state: typeof
|
|
2813
|
+
A(x(S), {
|
|
2814
|
+
state: typeof S == "object" ? A({}, D, S.state) : D,
|
|
2815
2815
|
force: U,
|
|
2816
|
-
replace:
|
|
2816
|
+
replace: C
|
|
2817
2817
|
}),
|
|
2818
2818
|
// keep original redirectedFrom if it exists
|
|
2819
2819
|
y || g
|
|
2820
2820
|
);
|
|
2821
|
-
const
|
|
2822
|
-
|
|
2821
|
+
const M = g;
|
|
2822
|
+
M.redirectedFrom = y;
|
|
2823
2823
|
let _e;
|
|
2824
|
-
return !U && jn(o, _, g) && (_e = je(16, { to:
|
|
2824
|
+
return !U && jn(o, _, g) && (_e = je(16, { to: M, from: _ }), Sn(
|
|
2825
2825
|
_,
|
|
2826
2826
|
_,
|
|
2827
2827
|
// this is a push, the only way for it to be triggered from a
|
|
@@ -2830,7 +2830,7 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2830
2830
|
// This cannot be the first navigation because the initial location
|
|
2831
2831
|
// cannot be manually navigated to
|
|
2832
2832
|
!1
|
|
2833
|
-
)), (_e ? Promise.resolve(_e) : w(
|
|
2833
|
+
)), (_e ? Promise.resolve(_e) : w(M, _)).catch((H) => ie(H) ? (
|
|
2834
2834
|
// navigation redirects still mark the router as ready
|
|
2835
2835
|
ie(
|
|
2836
2836
|
H,
|
|
@@ -2839,7 +2839,7 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2839
2839
|
) ? H : St(H)
|
|
2840
2840
|
) : (
|
|
2841
2841
|
// reject any unknown error
|
|
2842
|
-
|
|
2842
|
+
Ot(H, M, _)
|
|
2843
2843
|
)).then((H) => {
|
|
2844
2844
|
if (H) {
|
|
2845
2845
|
if (ie(
|
|
@@ -2848,31 +2848,31 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2848
2848
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
2849
2849
|
))
|
|
2850
2850
|
return process.env.NODE_ENV !== "production" && // we are redirecting to the same location we were already at
|
|
2851
|
-
jn(o,
|
|
2851
|
+
jn(o, P(H.to), M) && // and we have done it a couple of times
|
|
2852
2852
|
y && // @ts-expect-error: added only in dev
|
|
2853
2853
|
(y._count = y._count ? (
|
|
2854
2854
|
// @ts-expect-error
|
|
2855
2855
|
y._count + 1
|
|
2856
|
-
) : 1) > 30 ? (O(`Detected a possibly infinite redirection in a navigation guard when going from "${_.fullPath}" to "${
|
|
2856
|
+
) : 1) > 30 ? (O(`Detected a possibly infinite redirection in a navigation guard when going from "${_.fullPath}" to "${M.fullPath}". Aborting to avoid a Stack Overflow.
|
|
2857
2857
|
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`), Promise.reject(new Error("Infinite redirect in navigation guard"))) : E(
|
|
2858
2858
|
// keep options
|
|
2859
2859
|
A({
|
|
2860
2860
|
// preserve an existing replacement but allow the redirect to override it
|
|
2861
|
-
replace:
|
|
2862
|
-
},
|
|
2861
|
+
replace: C
|
|
2862
|
+
}, x(H.to), {
|
|
2863
2863
|
state: typeof H.to == "object" ? A({}, D, H.to.state) : D,
|
|
2864
2864
|
force: U
|
|
2865
2865
|
}),
|
|
2866
2866
|
// preserve the original redirectedFrom if any
|
|
2867
|
-
y ||
|
|
2867
|
+
y || M
|
|
2868
2868
|
);
|
|
2869
2869
|
} else
|
|
2870
|
-
H = J(
|
|
2871
|
-
return M
|
|
2870
|
+
H = J(M, _, !0, C, D);
|
|
2871
|
+
return L(M, _, H), H;
|
|
2872
2872
|
});
|
|
2873
2873
|
}
|
|
2874
2874
|
function oe(h, y) {
|
|
2875
|
-
const g =
|
|
2875
|
+
const g = I(h, y);
|
|
2876
2876
|
return g ? Promise.reject(g) : Promise.resolve();
|
|
2877
2877
|
}
|
|
2878
2878
|
function b(h) {
|
|
@@ -2883,106 +2883,106 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2883
2883
|
let g;
|
|
2884
2884
|
const [_, D, U] = oi(h, y);
|
|
2885
2885
|
g = At(_.reverse(), "beforeRouteLeave", h, y);
|
|
2886
|
-
for (const
|
|
2887
|
-
|
|
2888
|
-
g.push(ve(
|
|
2886
|
+
for (const S of _)
|
|
2887
|
+
S.leaveGuards.forEach((M) => {
|
|
2888
|
+
g.push(ve(M, h, y));
|
|
2889
2889
|
});
|
|
2890
|
-
const
|
|
2891
|
-
return g.push(
|
|
2890
|
+
const C = oe.bind(null, h, y);
|
|
2891
|
+
return g.push(C), Ce(g).then(() => {
|
|
2892
2892
|
g = [];
|
|
2893
|
-
for (const
|
|
2894
|
-
g.push(ve(
|
|
2895
|
-
return g.push(
|
|
2893
|
+
for (const S of a.list())
|
|
2894
|
+
g.push(ve(S, h, y));
|
|
2895
|
+
return g.push(C), Ce(g);
|
|
2896
2896
|
}).then(() => {
|
|
2897
2897
|
g = At(D, "beforeRouteUpdate", h, y);
|
|
2898
|
-
for (const
|
|
2899
|
-
|
|
2900
|
-
g.push(ve(
|
|
2898
|
+
for (const S of D)
|
|
2899
|
+
S.updateGuards.forEach((M) => {
|
|
2900
|
+
g.push(ve(M, h, y));
|
|
2901
2901
|
});
|
|
2902
|
-
return g.push(
|
|
2902
|
+
return g.push(C), Ce(g);
|
|
2903
2903
|
}).then(() => {
|
|
2904
2904
|
g = [];
|
|
2905
|
-
for (const
|
|
2906
|
-
if (
|
|
2907
|
-
if (
|
|
2908
|
-
for (const
|
|
2909
|
-
g.push(ve(
|
|
2905
|
+
for (const S of U)
|
|
2906
|
+
if (S.beforeEnter)
|
|
2907
|
+
if (Y(S.beforeEnter))
|
|
2908
|
+
for (const M of S.beforeEnter)
|
|
2909
|
+
g.push(ve(M, h, y));
|
|
2910
2910
|
else
|
|
2911
|
-
g.push(ve(
|
|
2912
|
-
return g.push(
|
|
2913
|
-
}).then(() => (h.matched.forEach((
|
|
2911
|
+
g.push(ve(S.beforeEnter, h, y));
|
|
2912
|
+
return g.push(C), Ce(g);
|
|
2913
|
+
}).then(() => (h.matched.forEach((S) => S.enterCallbacks = {}), g = At(U, "beforeRouteEnter", h, y, b), g.push(C), Ce(g))).then(() => {
|
|
2914
2914
|
g = [];
|
|
2915
|
-
for (const
|
|
2916
|
-
g.push(ve(
|
|
2917
|
-
return g.push(
|
|
2918
|
-
}).catch((
|
|
2919
|
-
|
|
2915
|
+
for (const S of i.list())
|
|
2916
|
+
g.push(ve(S, h, y));
|
|
2917
|
+
return g.push(C), Ce(g);
|
|
2918
|
+
}).catch((S) => ie(
|
|
2919
|
+
S,
|
|
2920
2920
|
8
|
|
2921
2921
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
2922
|
-
) ?
|
|
2922
|
+
) ? S : Promise.reject(S));
|
|
2923
2923
|
}
|
|
2924
|
-
function
|
|
2924
|
+
function L(h, y, g) {
|
|
2925
2925
|
s.list().forEach((_) => b(() => _(h, y, g)));
|
|
2926
2926
|
}
|
|
2927
2927
|
function J(h, y, g, _, D) {
|
|
2928
|
-
const U =
|
|
2928
|
+
const U = I(h, y);
|
|
2929
2929
|
if (U)
|
|
2930
2930
|
return U;
|
|
2931
|
-
const
|
|
2932
|
-
g && (_ ||
|
|
2933
|
-
scroll:
|
|
2934
|
-
}, D)) : r.push(h.fullPath, D)), l.value = h, Sn(h, y, g,
|
|
2931
|
+
const C = y === me, S = le ? history.state : {};
|
|
2932
|
+
g && (_ || C ? r.replace(h.fullPath, A({
|
|
2933
|
+
scroll: C && S && S.scroll
|
|
2934
|
+
}, D)) : r.push(h.fullPath, D)), l.value = h, Sn(h, y, g, C), St();
|
|
2935
2935
|
}
|
|
2936
2936
|
let te;
|
|
2937
|
-
function
|
|
2937
|
+
function xt() {
|
|
2938
2938
|
te || (te = r.listen((h, y, g) => {
|
|
2939
|
-
const _ =
|
|
2939
|
+
const _ = P(h), D = ee(_);
|
|
2940
2940
|
if (D) {
|
|
2941
2941
|
E(A(D, { replace: !0 }), _).catch(qe);
|
|
2942
2942
|
return;
|
|
2943
2943
|
}
|
|
2944
2944
|
u = _;
|
|
2945
2945
|
const U = l.value;
|
|
2946
|
-
le && is(Vn(U.fullPath, g.delta), _t()), w(_, U).catch((
|
|
2947
|
-
|
|
2946
|
+
le && is(Vn(U.fullPath, g.delta), _t()), w(_, U).catch((C) => ie(
|
|
2947
|
+
C,
|
|
2948
2948
|
12
|
|
2949
2949
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
2950
|
-
) ?
|
|
2951
|
-
|
|
2950
|
+
) ? C : ie(
|
|
2951
|
+
C,
|
|
2952
2952
|
2
|
|
2953
2953
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
2954
2954
|
) ? (E(
|
|
2955
|
-
|
|
2955
|
+
C.to,
|
|
2956
2956
|
_
|
|
2957
2957
|
// avoid an uncaught rejection, let push call triggerError
|
|
2958
|
-
).then((
|
|
2958
|
+
).then((S) => {
|
|
2959
2959
|
ie(
|
|
2960
|
-
|
|
2960
|
+
S,
|
|
2961
2961
|
20
|
|
2962
2962
|
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
|
2963
2963
|
) && !g.delta && g.type === Xe.pop && r.go(-1, !1);
|
|
2964
|
-
}).catch(qe), Promise.reject()) : (g.delta && r.go(-g.delta, !1),
|
|
2965
|
-
|
|
2964
|
+
}).catch(qe), Promise.reject()) : (g.delta && r.go(-g.delta, !1), Ot(C, _, U))).then((C) => {
|
|
2965
|
+
C = C || J(
|
|
2966
2966
|
// after navigation, all matched components are resolved
|
|
2967
2967
|
_,
|
|
2968
2968
|
U,
|
|
2969
2969
|
!1
|
|
2970
|
-
),
|
|
2970
|
+
), C && (g.delta && // a new navigation has been triggered, so we do not want to revert, that will change the current history
|
|
2971
2971
|
// entry while a different route is displayed
|
|
2972
2972
|
!ie(
|
|
2973
|
-
|
|
2973
|
+
C,
|
|
2974
2974
|
8
|
|
2975
2975
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
2976
2976
|
) ? r.go(-g.delta, !1) : g.type === Xe.pop && ie(
|
|
2977
|
-
|
|
2977
|
+
C,
|
|
2978
2978
|
20
|
|
2979
2979
|
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
|
2980
|
-
) && r.go(-1, !1)),
|
|
2980
|
+
) && r.go(-1, !1)), L(_, U, C);
|
|
2981
2981
|
}).catch(qe);
|
|
2982
2982
|
}));
|
|
2983
2983
|
}
|
|
2984
|
-
let Ve =
|
|
2985
|
-
function
|
|
2984
|
+
let Ve = Me(), he = Me(), F;
|
|
2985
|
+
function Ot(h, y, g) {
|
|
2986
2986
|
St(h);
|
|
2987
2987
|
const _ = he.list();
|
|
2988
2988
|
return _.length ? _.forEach((D) => D(h, y, g)) : (process.env.NODE_ENV !== "production" && O("uncaught error during route navigation:"), console.error(h)), Promise.reject(h);
|
|
@@ -2993,17 +2993,17 @@ ${JSON.stringify(_, null, 2)}
|
|
|
2993
2993
|
});
|
|
2994
2994
|
}
|
|
2995
2995
|
function St(h) {
|
|
2996
|
-
return F || (F = !h,
|
|
2996
|
+
return F || (F = !h, xt(), Ve.list().forEach(([y, g]) => h ? g(h) : y()), Ve.reset()), h;
|
|
2997
2997
|
}
|
|
2998
2998
|
function Sn(h, y, g, _) {
|
|
2999
2999
|
const { scrollBehavior: D } = e;
|
|
3000
3000
|
if (!le || !D)
|
|
3001
3001
|
return Promise.resolve();
|
|
3002
3002
|
const U = !g && ls(Vn(h.fullPath, 0)) || (_ || !g) && history.state && history.state.scroll || null;
|
|
3003
|
-
return
|
|
3003
|
+
return Ye().then(() => D(h, y, U)).then((C) => C && ss(C)).catch((C) => Ot(C, h, y));
|
|
3004
3004
|
}
|
|
3005
|
-
const
|
|
3006
|
-
let
|
|
3005
|
+
const It = (h) => r.go(h);
|
|
3006
|
+
let Nt;
|
|
3007
3007
|
const et = /* @__PURE__ */ new Set(), $r = {
|
|
3008
3008
|
currentRoute: l,
|
|
3009
3009
|
listening: !0,
|
|
@@ -3012,13 +3012,13 @@ ${JSON.stringify(_, null, 2)}
|
|
|
3012
3012
|
clearRoutes: t.clearRoutes,
|
|
3013
3013
|
hasRoute: $,
|
|
3014
3014
|
getRoutes: v,
|
|
3015
|
-
resolve:
|
|
3015
|
+
resolve: P,
|
|
3016
3016
|
options: e,
|
|
3017
3017
|
push: W,
|
|
3018
|
-
replace:
|
|
3019
|
-
go:
|
|
3020
|
-
back: () =>
|
|
3021
|
-
forward: () =>
|
|
3018
|
+
replace: z,
|
|
3019
|
+
go: It,
|
|
3020
|
+
back: () => It(-1),
|
|
3021
|
+
forward: () => It(1),
|
|
3022
3022
|
beforeEach: a.add,
|
|
3023
3023
|
beforeResolve: i.add,
|
|
3024
3024
|
afterEach: s.add,
|
|
@@ -3026,12 +3026,12 @@ ${JSON.stringify(_, null, 2)}
|
|
|
3026
3026
|
isReady: kr,
|
|
3027
3027
|
install(h) {
|
|
3028
3028
|
const y = this;
|
|
3029
|
-
h.component("RouterLink",
|
|
3029
|
+
h.component("RouterLink", Ms), h.component("RouterView", Fs), h.config.globalProperties.$router = y, Object.defineProperty(h.config.globalProperties, "$route", {
|
|
3030
3030
|
enumerable: !0,
|
|
3031
3031
|
get: () => k(l)
|
|
3032
3032
|
}), le && // used for the initial navigation client side to avoid pushing
|
|
3033
3033
|
// multiple times when the router is used in multiple apps
|
|
3034
|
-
!
|
|
3034
|
+
!Nt && l.value === me && (Nt = !0, W(r.location).catch((D) => {
|
|
3035
3035
|
process.env.NODE_ENV !== "production" && O("Unexpected error when starting the router:", D);
|
|
3036
3036
|
}));
|
|
3037
3037
|
const g = {};
|
|
@@ -3040,11 +3040,11 @@ ${JSON.stringify(_, null, 2)}
|
|
|
3040
3040
|
get: () => l.value[D],
|
|
3041
3041
|
enumerable: !0
|
|
3042
3042
|
});
|
|
3043
|
-
h.provide(fn, y), h.provide(Ho,
|
|
3043
|
+
h.provide(fn, y), h.provide(Ho, Ir(g)), h.provide(Kt, l);
|
|
3044
3044
|
const _ = h.unmount;
|
|
3045
3045
|
et.add(h), h.unmount = function() {
|
|
3046
|
-
et.delete(h), et.size < 1 && (u = me, te && te(), te = null, l.value = me,
|
|
3047
|
-
}, process.env.NODE_ENV !== "production" && le &&
|
|
3046
|
+
et.delete(h), et.size < 1 && (u = me, te && te(), te = null, l.value = me, Nt = !1, F = !1), _();
|
|
3047
|
+
}, process.env.NODE_ENV !== "production" && le && zs(h, y, t);
|
|
3048
3048
|
}
|
|
3049
3049
|
};
|
|
3050
3050
|
function Ce(h) {
|
|
@@ -3085,10 +3085,10 @@ function ai(e, t) {
|
|
|
3085
3085
|
function hn() {
|
|
3086
3086
|
return Math.random().toString(36).substring(2);
|
|
3087
3087
|
}
|
|
3088
|
-
var
|
|
3088
|
+
var Qn = 0, Tt = 0;
|
|
3089
3089
|
function Et() {
|
|
3090
3090
|
var e = (/* @__PURE__ */ new Date()).getTime();
|
|
3091
|
-
return e ===
|
|
3091
|
+
return e === Qn ? (Tt++, e * 1e3 + Tt) : (Qn = e, Tt = 0, e * 1e3);
|
|
3092
3092
|
}
|
|
3093
3093
|
var si = Et, ii = "native";
|
|
3094
3094
|
function li(e) {
|
|
@@ -3283,7 +3283,7 @@ function $i(e) {
|
|
|
3283
3283
|
}));
|
|
3284
3284
|
});
|
|
3285
3285
|
}
|
|
3286
|
-
function
|
|
3286
|
+
function xi(e, t) {
|
|
3287
3287
|
return t = mn(t), wi(e).then(function(n) {
|
|
3288
3288
|
var o = {
|
|
3289
3289
|
closed: !1,
|
|
@@ -3315,7 +3315,7 @@ function ar(e) {
|
|
|
3315
3315
|
return ar(e);
|
|
3316
3316
|
});
|
|
3317
3317
|
}
|
|
3318
|
-
function
|
|
3318
|
+
function Oi(e, t) {
|
|
3319
3319
|
return !(e.uuid === t.uuid || t.eMIs.has(e.id) || e.data.time < t.messagesCallbackTime);
|
|
3320
3320
|
}
|
|
3321
3321
|
function sr(e) {
|
|
@@ -3325,7 +3325,7 @@ function sr(e) {
|
|
|
3325
3325
|
}).map(function(o) {
|
|
3326
3326
|
return o.id > e.lastCursorId && (e.lastCursorId = o.id), o;
|
|
3327
3327
|
}).filter(function(o) {
|
|
3328
|
-
return
|
|
3328
|
+
return Oi(o, e);
|
|
3329
3329
|
}).sort(function(o, r) {
|
|
3330
3330
|
return o.time - r.time;
|
|
3331
3331
|
});
|
|
@@ -3337,14 +3337,14 @@ function sr(e) {
|
|
|
3337
3337
|
function Si(e) {
|
|
3338
3338
|
e.closed = !0, e.db.close();
|
|
3339
3339
|
}
|
|
3340
|
-
function
|
|
3340
|
+
function Ii(e, t) {
|
|
3341
3341
|
return e.writeBlockPromise = e.writeBlockPromise.then(function() {
|
|
3342
3342
|
return bi(e.db, e.uuid, t);
|
|
3343
3343
|
}).then(function() {
|
|
3344
3344
|
ai(0, 10) === 0 && $i(e);
|
|
3345
3345
|
}), e.writeBlockPromise;
|
|
3346
3346
|
}
|
|
3347
|
-
function
|
|
3347
|
+
function Ni(e, t, n) {
|
|
3348
3348
|
e.messagesCallbackTime = n, e.messagesCallback = t, sr(e);
|
|
3349
3349
|
}
|
|
3350
3350
|
function Ci() {
|
|
@@ -3354,10 +3354,10 @@ function Pi(e) {
|
|
|
3354
3354
|
return e.idb.fallbackInterval * 2;
|
|
3355
3355
|
}
|
|
3356
3356
|
var Di = {
|
|
3357
|
-
create:
|
|
3357
|
+
create: xi,
|
|
3358
3358
|
close: Si,
|
|
3359
|
-
onMessage:
|
|
3360
|
-
postMessage:
|
|
3359
|
+
onMessage: Ni,
|
|
3360
|
+
postMessage: Ii,
|
|
3361
3361
|
canBeUsed: Ci,
|
|
3362
3362
|
type: yi,
|
|
3363
3363
|
averageResponseTime: Pi,
|
|
@@ -3396,10 +3396,10 @@ function Vi(e, t) {
|
|
|
3396
3396
|
};
|
|
3397
3397
|
return window.addEventListener("storage", o), o;
|
|
3398
3398
|
}
|
|
3399
|
-
function
|
|
3399
|
+
function Li(e) {
|
|
3400
3400
|
window.removeEventListener("storage", e);
|
|
3401
3401
|
}
|
|
3402
|
-
function
|
|
3402
|
+
function Mi(e, t) {
|
|
3403
3403
|
if (t = mn(t), !cr())
|
|
3404
3404
|
throw new Error("BroadcastChannel: localstorage cannot be used");
|
|
3405
3405
|
var n = hn(), o = new nr(t.localstorage.removeTimeout), r = {
|
|
@@ -3413,7 +3413,7 @@ function Li(e, t) {
|
|
|
3413
3413
|
}), r;
|
|
3414
3414
|
}
|
|
3415
3415
|
function Ui(e) {
|
|
3416
|
-
|
|
3416
|
+
Li(e.listener);
|
|
3417
3417
|
}
|
|
3418
3418
|
function Bi(e, t, n) {
|
|
3419
3419
|
e.messagesCallbackTime = n, e.messagesCallback = t;
|
|
@@ -3434,7 +3434,7 @@ function Wi() {
|
|
|
3434
3434
|
return t.includes("safari") && !t.includes("chrome") ? e * 2 : e;
|
|
3435
3435
|
}
|
|
3436
3436
|
var Fi = {
|
|
3437
|
-
create:
|
|
3437
|
+
create: Mi,
|
|
3438
3438
|
close: Ui,
|
|
3439
3439
|
onMessage: Bi,
|
|
3440
3440
|
postMessage: Ri,
|
|
@@ -3442,8 +3442,8 @@ var Fi = {
|
|
|
3442
3442
|
type: ji,
|
|
3443
3443
|
averageResponseTime: Wi,
|
|
3444
3444
|
microSeconds: Ai
|
|
3445
|
-
}, qi = Et,
|
|
3446
|
-
function
|
|
3445
|
+
}, qi = Et, Gi = "simulate", gn = /* @__PURE__ */ new Set();
|
|
3446
|
+
function zi(e) {
|
|
3447
3447
|
var t = {
|
|
3448
3448
|
name: e,
|
|
3449
3449
|
messagesCallback: null
|
|
@@ -3472,20 +3472,20 @@ function Ji(e, t) {
|
|
|
3472
3472
|
function Ki(e, t) {
|
|
3473
3473
|
e.messagesCallback = t;
|
|
3474
3474
|
}
|
|
3475
|
-
function
|
|
3475
|
+
function Yi() {
|
|
3476
3476
|
return !0;
|
|
3477
3477
|
}
|
|
3478
|
-
function
|
|
3478
|
+
function Qi() {
|
|
3479
3479
|
return 5;
|
|
3480
3480
|
}
|
|
3481
3481
|
var Xi = {
|
|
3482
|
-
create:
|
|
3482
|
+
create: zi,
|
|
3483
3483
|
close: Hi,
|
|
3484
3484
|
onMessage: Ki,
|
|
3485
3485
|
postMessage: Ji,
|
|
3486
|
-
canBeUsed:
|
|
3487
|
-
type:
|
|
3488
|
-
averageResponseTime:
|
|
3486
|
+
canBeUsed: Yi,
|
|
3487
|
+
type: Gi,
|
|
3488
|
+
averageResponseTime: Qi,
|
|
3489
3489
|
microSeconds: qi
|
|
3490
3490
|
}, Xn = [
|
|
3491
3491
|
hi,
|
|
@@ -3905,7 +3905,7 @@ const fl = /* @__PURE__ */ Z({
|
|
|
3905
3905
|
r[i].value = l;
|
|
3906
3906
|
}), o.value = r;
|
|
3907
3907
|
}
|
|
3908
|
-
}), (r, a) => k(n) ? (
|
|
3908
|
+
}), (r, a) => k(n) ? (N(), Oe(k(na), {
|
|
3909
3909
|
key: 0,
|
|
3910
3910
|
class: "aform-main",
|
|
3911
3911
|
modelValue: o.value,
|
|
@@ -3930,7 +3930,7 @@ function Ze(e) {
|
|
|
3930
3930
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
3931
3931
|
}
|
|
3932
3932
|
const $t = vl ? window : void 0;
|
|
3933
|
-
function
|
|
3933
|
+
function Qt(...e) {
|
|
3934
3934
|
let t, n, o, r;
|
|
3935
3935
|
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = $t) : [t, n, o, r] = e, !t)
|
|
3936
3936
|
return bl;
|
|
@@ -4002,9 +4002,9 @@ function $l(e = {}) {
|
|
|
4002
4002
|
}, s = j(), l = () => {
|
|
4003
4003
|
s.value = i();
|
|
4004
4004
|
};
|
|
4005
|
-
return n && (
|
|
4005
|
+
return n && (Qt(n, "blur", (u) => {
|
|
4006
4006
|
u.relatedTarget === null && l();
|
|
4007
|
-
}, !0),
|
|
4007
|
+
}, !0), Qt(n, "focus", l, !0)), r && kl(a, (u) => {
|
|
4008
4008
|
u.filter((d) => d.removedNodes.length).map((d) => Array.from(d.removedNodes)).flat().forEach((d) => {
|
|
4009
4009
|
d === s.value && l();
|
|
4010
4010
|
});
|
|
@@ -4013,11 +4013,11 @@ function $l(e = {}) {
|
|
|
4013
4013
|
subtree: !0
|
|
4014
4014
|
}), l(), s;
|
|
4015
4015
|
}
|
|
4016
|
-
function
|
|
4016
|
+
function xl(e, t = {}) {
|
|
4017
4017
|
const n = $l(t), o = V(() => Ze(e));
|
|
4018
4018
|
return { focused: V(() => o.value && n.value ? o.value.contains(n.value) : !1) };
|
|
4019
4019
|
}
|
|
4020
|
-
function
|
|
4020
|
+
function Ol(e, { window: t = $t, scrollTarget: n } = {}) {
|
|
4021
4021
|
const o = j(!1), r = () => {
|
|
4022
4022
|
if (!t) return;
|
|
4023
4023
|
const a = t.document, i = Ze(e);
|
|
@@ -4032,13 +4032,13 @@ function xl(e, { window: t = $t, scrollTarget: n } = {}) {
|
|
|
4032
4032
|
() => Ze(e),
|
|
4033
4033
|
() => r(),
|
|
4034
4034
|
{ immediate: !0, flush: "post" }
|
|
4035
|
-
), t &&
|
|
4035
|
+
), t && Qt(n || t, "scroll", r, {
|
|
4036
4036
|
capture: !1,
|
|
4037
4037
|
passive: !0
|
|
4038
4038
|
}), o;
|
|
4039
4039
|
}
|
|
4040
4040
|
const pe = (e) => {
|
|
4041
|
-
let t =
|
|
4041
|
+
let t = Ol(e).value;
|
|
4042
4042
|
return t = t && e.offsetHeight > 0, t;
|
|
4043
4043
|
}, fe = (e) => e.tabIndex >= 0, ao = (e) => {
|
|
4044
4044
|
const t = e.target;
|
|
@@ -4092,7 +4092,7 @@ const pe = (e) => {
|
|
|
4092
4092
|
o && (n = o);
|
|
4093
4093
|
}
|
|
4094
4094
|
return n && (!fe(n) || !pe(n)) ? kn(n) : n;
|
|
4095
|
-
},
|
|
4095
|
+
}, Il = (e) => {
|
|
4096
4096
|
var t;
|
|
4097
4097
|
const n = e.target;
|
|
4098
4098
|
let o;
|
|
@@ -4125,8 +4125,8 @@ const pe = (e) => {
|
|
|
4125
4125
|
return n && (!fe(n) || !pe(n)) ? $n(n) : n;
|
|
4126
4126
|
}, lo = (e) => {
|
|
4127
4127
|
const t = e.target;
|
|
4128
|
-
return
|
|
4129
|
-
},
|
|
4128
|
+
return xn(t);
|
|
4129
|
+
}, xn = (e) => {
|
|
4130
4130
|
var t;
|
|
4131
4131
|
let n;
|
|
4132
4132
|
if (e.nextElementSibling)
|
|
@@ -4135,19 +4135,19 @@ const pe = (e) => {
|
|
|
4135
4135
|
const o = (t = e.parentElement) == null ? void 0 : t.nextElementSibling;
|
|
4136
4136
|
n = o == null ? void 0 : o.firstElementChild;
|
|
4137
4137
|
}
|
|
4138
|
-
return n && (!fe(n) || !pe(n)) ?
|
|
4138
|
+
return n && (!fe(n) || !pe(n)) ? xn(n) : n;
|
|
4139
4139
|
}, co = (e) => {
|
|
4140
4140
|
const t = e.target.parentElement.firstElementChild;
|
|
4141
|
-
return t && (!fe(t) || !pe(t)) ?
|
|
4141
|
+
return t && (!fe(t) || !pe(t)) ? xn(t) : t;
|
|
4142
4142
|
}, uo = (e) => {
|
|
4143
4143
|
const t = e.target.parentElement.lastElementChild;
|
|
4144
4144
|
return t && (!fe(t) || !pe(t)) ? $n(t) : t;
|
|
4145
|
-
}, rt = ["alt", "control", "shift", "meta"],
|
|
4145
|
+
}, rt = ["alt", "control", "shift", "meta"], Nl = {
|
|
4146
4146
|
ArrowUp: "up",
|
|
4147
4147
|
ArrowDown: "down",
|
|
4148
4148
|
ArrowLeft: "left",
|
|
4149
4149
|
ArrowRight: "right"
|
|
4150
|
-
},
|
|
4150
|
+
}, On = {
|
|
4151
4151
|
"keydown.up": (e) => {
|
|
4152
4152
|
const t = ao(e);
|
|
4153
4153
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
@@ -4169,7 +4169,7 @@ const pe = (e) => {
|
|
|
4169
4169
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
4170
4170
|
},
|
|
4171
4171
|
"keydown.control.down": (e) => {
|
|
4172
|
-
const t =
|
|
4172
|
+
const t = Il(e);
|
|
4173
4173
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
4174
4174
|
},
|
|
4175
4175
|
"keydown.control.left": (e) => {
|
|
@@ -4236,22 +4236,22 @@ function gr(e) {
|
|
|
4236
4236
|
let l = [];
|
|
4237
4237
|
return i.selectors ? l = n(i) : s && (l = Array.from(s.children).filter((u) => fe(u) && pe(u))), l;
|
|
4238
4238
|
}, r = (i) => (s) => {
|
|
4239
|
-
const l =
|
|
4239
|
+
const l = Nl[s.key] || s.key.toLowerCase();
|
|
4240
4240
|
if (rt.includes(l)) return;
|
|
4241
|
-
const u = i.handlers ||
|
|
4241
|
+
const u = i.handlers || On;
|
|
4242
4242
|
for (const d of Object.keys(u)) {
|
|
4243
4243
|
const [c, ...p] = d.split(".");
|
|
4244
4244
|
if (c === "keydown" && p.includes(l)) {
|
|
4245
4245
|
const f = u[d], m = p.filter(($) => rt.includes($)), v = rt.some(($) => {
|
|
4246
|
-
const
|
|
4247
|
-
return s.getModifierState(
|
|
4246
|
+
const P = $.charAt(0).toUpperCase() + $.slice(1);
|
|
4247
|
+
return s.getModifierState(P);
|
|
4248
4248
|
});
|
|
4249
4249
|
if (m.length > 0) {
|
|
4250
4250
|
if (v) {
|
|
4251
4251
|
for (const $ of rt)
|
|
4252
4252
|
if (p.includes($)) {
|
|
4253
|
-
const
|
|
4254
|
-
s.getModifierState(
|
|
4253
|
+
const P = $.charAt(0).toUpperCase() + $.slice(1);
|
|
4254
|
+
s.getModifierState(P) && f(s);
|
|
4255
4255
|
}
|
|
4256
4256
|
}
|
|
4257
4257
|
} else
|
|
@@ -4263,7 +4263,7 @@ function gr(e) {
|
|
|
4263
4263
|
for (const i of e) {
|
|
4264
4264
|
const s = t(i), l = o(i), u = r(i), d = s ? [s] : l;
|
|
4265
4265
|
for (const c of d) {
|
|
4266
|
-
const { focused: p } =
|
|
4266
|
+
const { focused: p } = xl(j(c)), f = K(p, (m) => {
|
|
4267
4267
|
m ? c.addEventListener("keydown", u) : c.removeEventListener("keydown", u);
|
|
4268
4268
|
});
|
|
4269
4269
|
a.push(f);
|
|
@@ -4288,8 +4288,8 @@ const Cl = ["data-colindex", "data-rowindex", "data-editable", "contenteditable"
|
|
|
4288
4288
|
const n = e, o = ae(n.tableid), r = j(null), a = j(""), i = j(!1), s = V(() => {
|
|
4289
4289
|
const v = o.cellData(n.colIndex, n.rowIndex);
|
|
4290
4290
|
if (o.columns[n.colIndex].format) {
|
|
4291
|
-
const $ = o.columns[n.colIndex].format;
|
|
4292
|
-
return typeof
|
|
4291
|
+
const $ = o.table, P = o.rows[n.rowIndex], x = o.columns[n.colIndex], I = x.format;
|
|
4292
|
+
return typeof I == "function" ? I(v, { table: $, row: P, column: x }) : typeof I == "string" ? Function(`"use strict";return (${I})`)()(v, { table: $, row: P, column: x }) : v;
|
|
4293
4293
|
} else
|
|
4294
4294
|
return v;
|
|
4295
4295
|
}), l = () => {
|
|
@@ -4300,7 +4300,7 @@ const Cl = ["data-colindex", "data-rowindex", "data-editable", "contenteditable"
|
|
|
4300
4300
|
};
|
|
4301
4301
|
if (n.addNavigation) {
|
|
4302
4302
|
let v = {
|
|
4303
|
-
...
|
|
4303
|
+
...On,
|
|
4304
4304
|
"keydown.f2": l,
|
|
4305
4305
|
"keydown.alt.up": l,
|
|
4306
4306
|
"keydown.alt.down": l,
|
|
@@ -4328,7 +4328,7 @@ const Cl = ["data-colindex", "data-rowindex", "data-editable", "contenteditable"
|
|
|
4328
4328
|
fontWeight: i.value ? "bold" : "inherit",
|
|
4329
4329
|
paddingLeft: f(n.colIndex, (t = o.display[n.rowIndex]) == null ? void 0 : t.indent)
|
|
4330
4330
|
};
|
|
4331
|
-
return (v, $) => (
|
|
4331
|
+
return (v, $) => (N(), T("td", {
|
|
4332
4332
|
ref_key: "cell",
|
|
4333
4333
|
ref: r,
|
|
4334
4334
|
"data-colindex": v.colIndex,
|
|
@@ -4346,10 +4346,10 @@ const Cl = ["data-colindex", "data-rowindex", "data-editable", "contenteditable"
|
|
|
4346
4346
|
onMousedown: l,
|
|
4347
4347
|
class: "atable__cell"
|
|
4348
4348
|
}, [
|
|
4349
|
-
k(o).columns[v.colIndex].cellComponent ? (
|
|
4349
|
+
k(o).columns[v.colIndex].cellComponent ? (N(), Oe(tn(k(o).columns[v.colIndex].cellComponent), nn({
|
|
4350
4350
|
key: 0,
|
|
4351
4351
|
value: s.value
|
|
4352
|
-
}, k(o).columns[v.colIndex].cellComponentProps), null, 16, ["value"])) : (
|
|
4352
|
+
}, k(o).columns[v.colIndex].cellComponentProps), null, 16, ["value"])) : (N(), T("span", Pl, ue(s.value), 1))
|
|
4353
4353
|
], 40, Cl));
|
|
4354
4354
|
}
|
|
4355
4355
|
}), Al = ["tabindex"], Tl = {
|
|
@@ -4370,7 +4370,7 @@ const Cl = ["data-colindex", "data-rowindex", "data-editable", "contenteditable"
|
|
|
4370
4370
|
n.toggleRowExpand(s);
|
|
4371
4371
|
};
|
|
4372
4372
|
if (t.addNavigation) {
|
|
4373
|
-
let s =
|
|
4373
|
+
let s = On;
|
|
4374
4374
|
typeof t.addNavigation == "object" && (s = {
|
|
4375
4375
|
...s,
|
|
4376
4376
|
...t.addNavigation
|
|
@@ -4381,14 +4381,14 @@ const Cl = ["data-colindex", "data-rowindex", "data-editable", "contenteditable"
|
|
|
4381
4381
|
}
|
|
4382
4382
|
]);
|
|
4383
4383
|
}
|
|
4384
|
-
return (s, l) => Je((
|
|
4384
|
+
return (s, l) => Je((N(), T("tr", {
|
|
4385
4385
|
ref_key: "rowEl",
|
|
4386
4386
|
ref: o,
|
|
4387
4387
|
tabindex: s.tabIndex,
|
|
4388
4388
|
class: "table-row"
|
|
4389
4389
|
}, [
|
|
4390
4390
|
ge(s.$slots, "index", {}, () => [
|
|
4391
|
-
k(n).config.view === "list" ? (
|
|
4391
|
+
k(n).config.view === "list" ? (N(), T("td", Tl, ue(s.rowIndex + 1), 1)) : k(n).config.view === "tree" ? (N(), T("td", {
|
|
4392
4392
|
key: 1,
|
|
4393
4393
|
tabIndex: -1,
|
|
4394
4394
|
class: "tree-index",
|
|
@@ -4404,14 +4404,14 @@ const Cl = ["data-colindex", "data-rowindex", "data-editable", "contenteditable"
|
|
|
4404
4404
|
function yr(e) {
|
|
4405
4405
|
return rn() ? (an(e), !0) : !1;
|
|
4406
4406
|
}
|
|
4407
|
-
function
|
|
4407
|
+
function ze(e) {
|
|
4408
4408
|
return typeof e == "function" ? e() : k(e);
|
|
4409
4409
|
}
|
|
4410
4410
|
const wr = typeof window < "u" && typeof document < "u";
|
|
4411
4411
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4412
4412
|
const Rl = Object.prototype.toString, Vl = (e) => Rl.call(e) === "[object Object]", He = () => {
|
|
4413
|
-
}, Xt = /* @__PURE__ */
|
|
4414
|
-
function
|
|
4413
|
+
}, Xt = /* @__PURE__ */ Ll();
|
|
4414
|
+
function Ll() {
|
|
4415
4415
|
var e, t;
|
|
4416
4416
|
return wr && ((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));
|
|
4417
4417
|
}
|
|
@@ -4420,7 +4420,7 @@ const po = {
|
|
|
4420
4420
|
updated: "updated",
|
|
4421
4421
|
unmounted: "unmounted"
|
|
4422
4422
|
};
|
|
4423
|
-
function
|
|
4423
|
+
function Ml(...e) {
|
|
4424
4424
|
if (e.length !== 1)
|
|
4425
4425
|
return st(...e);
|
|
4426
4426
|
const t = e[0];
|
|
@@ -4428,7 +4428,7 @@ function Ll(...e) {
|
|
|
4428
4428
|
}
|
|
4429
4429
|
function We(e) {
|
|
4430
4430
|
var t;
|
|
4431
|
-
const n =
|
|
4431
|
+
const n = ze(e);
|
|
4432
4432
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
4433
4433
|
}
|
|
4434
4434
|
const br = wr ? window : void 0;
|
|
@@ -4440,7 +4440,7 @@ function ft(...e) {
|
|
|
4440
4440
|
const a = [], i = () => {
|
|
4441
4441
|
a.forEach((d) => d()), a.length = 0;
|
|
4442
4442
|
}, s = (d, c, p, f) => (d.addEventListener(c, p, f), () => d.removeEventListener(c, p, f)), l = K(
|
|
4443
|
-
() => [We(t),
|
|
4443
|
+
() => [We(t), ze(r)],
|
|
4444
4444
|
([d, c]) => {
|
|
4445
4445
|
if (i(), !d)
|
|
4446
4446
|
return;
|
|
@@ -4524,15 +4524,15 @@ function Bl(e) {
|
|
|
4524
4524
|
const t = e || window.event, n = t.target;
|
|
4525
4525
|
return _r(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
|
|
4526
4526
|
}
|
|
4527
|
-
const
|
|
4527
|
+
const Lt = /* @__PURE__ */ new WeakMap();
|
|
4528
4528
|
function Wl(e, t = !1) {
|
|
4529
4529
|
const n = j(t);
|
|
4530
4530
|
let o = null, r = "";
|
|
4531
|
-
K(
|
|
4532
|
-
const l = Vt(
|
|
4531
|
+
K(Ml(e), (s) => {
|
|
4532
|
+
const l = Vt(ze(s));
|
|
4533
4533
|
if (l) {
|
|
4534
4534
|
const u = l;
|
|
4535
|
-
if (
|
|
4535
|
+
if (Lt.get(u) || Lt.set(u, u.style.overflow), u.style.overflow !== "hidden" && (r = u.style.overflow), u.style.overflow === "hidden")
|
|
4536
4536
|
return n.value = !0;
|
|
4537
4537
|
if (n.value)
|
|
4538
4538
|
return u.style.overflow = "hidden";
|
|
@@ -4541,7 +4541,7 @@ function Wl(e, t = !1) {
|
|
|
4541
4541
|
immediate: !0
|
|
4542
4542
|
});
|
|
4543
4543
|
const a = () => {
|
|
4544
|
-
const s = Vt(
|
|
4544
|
+
const s = Vt(ze(e));
|
|
4545
4545
|
!s || n.value || (Xt && (o = ft(
|
|
4546
4546
|
s,
|
|
4547
4547
|
"touchmove",
|
|
@@ -4551,8 +4551,8 @@ function Wl(e, t = !1) {
|
|
|
4551
4551
|
{ passive: !1 }
|
|
4552
4552
|
)), s.style.overflow = "hidden", n.value = !0);
|
|
4553
4553
|
}, i = () => {
|
|
4554
|
-
const s = Vt(
|
|
4555
|
-
!s || !n.value || (Xt && (o == null || o()), s.style.overflow = r,
|
|
4554
|
+
const s = Vt(ze(e));
|
|
4555
|
+
!s || !n.value || (Xt && (o == null || o()), s.style.overflow = r, Lt.delete(s), n.value = !1);
|
|
4556
4556
|
};
|
|
4557
4557
|
return yr(i), V({
|
|
4558
4558
|
get() {
|
|
@@ -4576,16 +4576,16 @@ function Fl() {
|
|
|
4576
4576
|
}
|
|
4577
4577
|
Fl();
|
|
4578
4578
|
var q = [];
|
|
4579
|
-
for (var
|
|
4580
|
-
q.push((
|
|
4579
|
+
for (var Mt = 0; Mt < 256; ++Mt)
|
|
4580
|
+
q.push((Mt + 256).toString(16).slice(1));
|
|
4581
4581
|
function ql(e, t = 0) {
|
|
4582
4582
|
return (q[e[t + 0]] + q[e[t + 1]] + q[e[t + 2]] + q[e[t + 3]] + "-" + q[e[t + 4]] + q[e[t + 5]] + "-" + q[e[t + 6]] + q[e[t + 7]] + "-" + q[e[t + 8]] + q[e[t + 9]] + "-" + q[e[t + 10]] + q[e[t + 11]] + q[e[t + 12]] + q[e[t + 13]] + q[e[t + 14]] + q[e[t + 15]]).toLowerCase();
|
|
4583
4583
|
}
|
|
4584
|
-
var at,
|
|
4585
|
-
function
|
|
4584
|
+
var at, Gl = new Uint8Array(16);
|
|
4585
|
+
function zl() {
|
|
4586
4586
|
if (!at && (at = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !at))
|
|
4587
4587
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4588
|
-
return at(
|
|
4588
|
+
return at(Gl);
|
|
4589
4589
|
}
|
|
4590
4590
|
var Hl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
4591
4591
|
const mo = {
|
|
@@ -4595,7 +4595,7 @@ function Jl(e, t, n) {
|
|
|
4595
4595
|
if (mo.randomUUID && !t && !e)
|
|
4596
4596
|
return mo.randomUUID();
|
|
4597
4597
|
e = e || {};
|
|
4598
|
-
var o = e.random || (e.rng ||
|
|
4598
|
+
var o = e.random || (e.rng || zl)();
|
|
4599
4599
|
if (o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, t) {
|
|
4600
4600
|
n = n || 0;
|
|
4601
4601
|
for (var r = 0; r < 16; ++r)
|
|
@@ -4657,10 +4657,10 @@ class Kl {
|
|
|
4657
4657
|
} else this.config.view === "list-expansion" && (this.display[t].expanded = !this.display[t].expanded);
|
|
4658
4658
|
}
|
|
4659
4659
|
}
|
|
4660
|
-
const
|
|
4660
|
+
const Yl = {
|
|
4661
4661
|
key: 0,
|
|
4662
4662
|
id: "resizable"
|
|
4663
|
-
},
|
|
4663
|
+
}, Ql = {
|
|
4664
4664
|
class: "atable-header-row",
|
|
4665
4665
|
tabindex: "-1"
|
|
4666
4666
|
}, Xl = {
|
|
@@ -4679,10 +4679,10 @@ const Ql = {
|
|
|
4679
4679
|
textAlign: o.align || "center",
|
|
4680
4680
|
width: t.config.fullWidth ? "auto" : null
|
|
4681
4681
|
});
|
|
4682
|
-
return (o, r) => o.columns.length ? (
|
|
4683
|
-
R("tr",
|
|
4684
|
-
k(t).zeroColumn ? (
|
|
4685
|
-
(
|
|
4682
|
+
return (o, r) => o.columns.length ? (N(), T("thead", Yl, [
|
|
4683
|
+
R("tr", Ql, [
|
|
4684
|
+
k(t).zeroColumn ? (N(), T("th", Xl)) : we("", !0),
|
|
4685
|
+
(N(!0), T(Se, null, Ie(o.columns, (a, i) => (N(), T("th", {
|
|
4686
4686
|
key: a.name,
|
|
4687
4687
|
tabindex: "-1",
|
|
4688
4688
|
style: ce(n(a))
|
|
@@ -4705,7 +4705,7 @@ const Ql = {
|
|
|
4705
4705
|
const t = (n) => {
|
|
4706
4706
|
n.stopPropagation();
|
|
4707
4707
|
};
|
|
4708
|
-
return (n, o) => (
|
|
4708
|
+
return (n, o) => (N(), T("div", {
|
|
4709
4709
|
ref: "amodal",
|
|
4710
4710
|
class: "amodal",
|
|
4711
4711
|
tabindex: "-1",
|
|
@@ -4744,11 +4744,11 @@ const Ql = {
|
|
|
4744
4744
|
if (s.key === "Escape" && a.modal.visible) {
|
|
4745
4745
|
a.modal.visible = !1;
|
|
4746
4746
|
const l = a.modal.parent;
|
|
4747
|
-
l &&
|
|
4747
|
+
l && Ye().then(() => {
|
|
4748
4748
|
l.focus();
|
|
4749
4749
|
});
|
|
4750
4750
|
}
|
|
4751
|
-
}), (s, l) => Je((
|
|
4751
|
+
}), (s, l) => Je((N(), T("table", {
|
|
4752
4752
|
class: "atable",
|
|
4753
4753
|
style: ce({ width: k(a).config.fullWidth ? "100%" : "auto" })
|
|
4754
4754
|
}, [
|
|
@@ -4761,14 +4761,14 @@ const Ql = {
|
|
|
4761
4761
|
]),
|
|
4762
4762
|
R("tbody", null, [
|
|
4763
4763
|
ge(s.$slots, "body", { data: k(a) }, () => [
|
|
4764
|
-
(
|
|
4764
|
+
(N(!0), T(Se, null, Ie(k(a).rows, (u, d) => (N(), Oe(jl, {
|
|
4765
4765
|
key: u.id,
|
|
4766
4766
|
row: u,
|
|
4767
4767
|
rowIndex: d,
|
|
4768
4768
|
tableid: k(a).id
|
|
4769
4769
|
}, {
|
|
4770
4770
|
default: mt(() => [
|
|
4771
|
-
(
|
|
4771
|
+
(N(!0), T(Se, null, Ie(k(a).columns, (c, p) => (N(), Oe(Dl, {
|
|
4772
4772
|
key: c.name,
|
|
4773
4773
|
tableid: k(a).id,
|
|
4774
4774
|
col: c,
|
|
@@ -4800,7 +4800,7 @@ const Ql = {
|
|
|
4800
4800
|
})
|
|
4801
4801
|
}, {
|
|
4802
4802
|
default: mt(() => [
|
|
4803
|
-
(
|
|
4803
|
+
(N(), Oe(tn(k(a).modal.component), nn({
|
|
4804
4804
|
key: `${k(a).modal.rowIndex}:${k(a).modal.colIndex}`,
|
|
4805
4805
|
colIndex: k(a).modal.colIndex,
|
|
4806
4806
|
rowIndex: k(a).modal.rowIndex,
|
|
@@ -4820,7 +4820,7 @@ const Ql = {
|
|
|
4820
4820
|
__name: "Records",
|
|
4821
4821
|
setup(e) {
|
|
4822
4822
|
const { stonecrop: t, isReady: n } = Ro(), o = { view: "list" };
|
|
4823
|
-
return (r, a) => k(n) ? (
|
|
4823
|
+
return (r, a) => k(n) ? (N(), Oe(k(tc), {
|
|
4824
4824
|
key: 0,
|
|
4825
4825
|
columns: k(t).schema.schema.toArray(),
|
|
4826
4826
|
rows: k(t).store.records,
|
|
@@ -4869,7 +4869,7 @@ const Ql = {
|
|
|
4869
4869
|
const t = j(!0), n = j(!1), o = j(""), r = j(null), a = V(() => t.value ? "unrotated" : "rotated"), i = () => {
|
|
4870
4870
|
t.value = !t.value;
|
|
4871
4871
|
}, s = async () => {
|
|
4872
|
-
n.value = !n.value, await
|
|
4872
|
+
n.value = !n.value, await Ye(() => {
|
|
4873
4873
|
r.value.focus();
|
|
4874
4874
|
});
|
|
4875
4875
|
}, l = (c) => {
|
|
@@ -4880,7 +4880,7 @@ const Ql = {
|
|
|
4880
4880
|
};
|
|
4881
4881
|
return (c, p) => {
|
|
4882
4882
|
const f = Ar("router-link");
|
|
4883
|
-
return
|
|
4883
|
+
return N(), T("footer", null, [
|
|
4884
4884
|
R("ul", oc, [
|
|
4885
4885
|
R("li", {
|
|
4886
4886
|
class: "hidebreadcrumbs",
|
|
@@ -4904,7 +4904,7 @@ const Ql = {
|
|
|
4904
4904
|
tabindex: "0"
|
|
4905
4905
|
}, {
|
|
4906
4906
|
default: mt(() => [
|
|
4907
|
-
(
|
|
4907
|
+
(N(), T("svg", ac, ic))
|
|
4908
4908
|
]),
|
|
4909
4909
|
_: 1
|
|
4910
4910
|
})
|
|
@@ -4919,7 +4919,7 @@ const Ql = {
|
|
|
4919
4919
|
R("span", {
|
|
4920
4920
|
style: ce({ display: n.value ? "none" : "block" })
|
|
4921
4921
|
}, [
|
|
4922
|
-
(
|
|
4922
|
+
(N(), T("svg", cc, dc))
|
|
4923
4923
|
], 4),
|
|
4924
4924
|
Je(R("input", {
|
|
4925
4925
|
"onUpdate:modelValue": p[0] || (p[0] = (m) => o.value = m),
|
|
@@ -4936,7 +4936,7 @@ const Ql = {
|
|
|
4936
4936
|
])
|
|
4937
4937
|
])
|
|
4938
4938
|
], 36),
|
|
4939
|
-
(
|
|
4939
|
+
(N(!0), T(Se, null, Ie(c.breadcrumbs, (m) => (N(), T("li", {
|
|
4940
4940
|
key: m.title,
|
|
4941
4941
|
style: ce({ display: t.value ? "block" : "none" })
|
|
4942
4942
|
}, [
|