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