@inpageedit/core 0.10.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -2
- package/dist/PluginPrefSync-COidewzp.js +258 -0
- package/dist/PluginPrefSync-COidewzp.js.map +1 -0
- package/dist/__test__/utils/constants.d.ts +3 -2
- package/dist/components/index.js +69 -51
- package/dist/components/index.js.map +1 -1
- package/dist/constants/endpoints.d.ts +1 -1
- package/dist/{index-BR6gK_ki.js → index-BNDyaWnI.js} +44 -38
- package/dist/index-BNDyaWnI.js.map +1 -0
- package/dist/{index-BnAhw94L.js → index-BQzuJxBO.js} +2 -2
- package/dist/{index-BnAhw94L.js.map → index-BQzuJxBO.js.map} +1 -1
- package/dist/{index-Z-_kjibx.js → index-BUI2IX49.js} +763 -699
- package/dist/index-BUI2IX49.js.map +1 -0
- package/dist/{index-Cx-YiN1j.js → index-CBszdxJJ.js} +22 -21
- package/dist/index-CBszdxJJ.js.map +1 -0
- package/dist/index-CfgnJ51A.js +185 -0
- package/dist/index-CfgnJ51A.js.map +1 -0
- package/dist/index-Cx4qgCJK.js +4914 -0
- package/dist/{index-DqJUIV2e.js.map → index-Cx4qgCJK.js.map} +1 -1
- package/dist/index-D5J7RU5I.js +211 -0
- package/dist/index-D5J7RU5I.js.map +1 -0
- package/dist/{index-ByzgI28q.js → index-MhNAv9Vf.js} +6 -2
- package/dist/index-MhNAv9Vf.js.map +1 -0
- package/dist/{index-ByJfEsN8.js → index-U2RPZk8N.js} +148 -110
- package/dist/index-U2RPZk8N.js.map +1 -0
- package/dist/{index-CAiGct8U.js → index-VnRKIVau.js} +42 -42
- package/dist/index-VnRKIVau.js.map +1 -0
- package/dist/{index-eOIVMf9E.js → index-etJXONAj.js} +46 -35
- package/dist/index-etJXONAj.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/models/WikiTitle/index.d.ts +2 -2
- package/dist/plugins/analytics/index.d.ts +41 -0
- package/dist/plugins/in-article-links/index.d.ts +14 -0
- package/dist/plugins/preferences-ui/PluginPrefSync.d.ts +2 -0
- package/dist/plugins/preferences-ui/index.d.ts +3 -1
- package/dist/plugins/quick-delete/index.d.ts +3 -0
- package/dist/plugins/quick-diff/index.d.ts +17 -0
- package/dist/plugins/quick-edit/index.d.ts +8 -0
- package/dist/plugins/quick-move/index.d.ts +16 -0
- package/dist/plugins/quick-redirect/index.d.ts +15 -0
- package/dist/plugins/toolbox/index.d.ts +9 -0
- package/dist/services/PreferencesService.d.ts +9 -2
- package/dist/services/WikiMetadataService.d.ts +23 -23
- package/dist/style.css +1 -1
- package/dist/types/WikiMetadata.d.ts +6 -8
- package/lib/index.umd.js +24 -24
- package/lib/index.umd.js.map +1 -1
- package/lib/style.css +1 -1
- package/package.json +3 -3
- package/dist/ActionButton-BgbTKTg7.js +0 -24
- package/dist/ActionButton-BgbTKTg7.js.map +0 -1
- package/dist/PluginPrefSync-CNCU2DJU.js +0 -171
- package/dist/PluginPrefSync-CNCU2DJU.js.map +0 -1
- package/dist/index-2mNdeL-V.js +0 -193
- package/dist/index-2mNdeL-V.js.map +0 -1
- package/dist/index-BR6gK_ki.js.map +0 -1
- package/dist/index-ByJfEsN8.js.map +0 -1
- package/dist/index-ByzgI28q.js.map +0 -1
- package/dist/index-CAiGct8U.js.map +0 -1
- package/dist/index-Cx-YiN1j.js.map +0 -1
- package/dist/index-DqJUIV2e.js +0 -4861
- package/dist/index-Z-_kjibx.js.map +0 -1
- package/dist/index-eOIVMf9E.js.map +0 -1
package/dist/index-DqJUIV2e.js
DELETED
|
@@ -1,4861 +0,0 @@
|
|
|
1
|
-
import { j as z, P as Ri, F as Li } from "./index-CvhkVj_L.js";
|
|
2
|
-
import { B as Di, S as Tn, I as ji } from "./index-Z-_kjibx.js";
|
|
3
|
-
import { A as Hi } from "./ActionButton-BgbTKTg7.js";
|
|
4
|
-
/**
|
|
5
|
-
* @vue/shared v3.5.22
|
|
6
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
7
|
-
* @license MIT
|
|
8
|
-
**/
|
|
9
|
-
// @__NO_SIDE_EFFECTS__
|
|
10
|
-
function Gs(e) {
|
|
11
|
-
const t = /* @__PURE__ */ Object.create(null);
|
|
12
|
-
for (const s of e.split(",")) t[s] = 1;
|
|
13
|
-
return (s) => s in t;
|
|
14
|
-
}
|
|
15
|
-
const H = {}, at = [], Ae = () => {
|
|
16
|
-
}, ir = () => !1, cs = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
17
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Ys = (e) => e.startsWith("onUpdate:"), te = Object.assign, Xs = (e, t) => {
|
|
18
|
-
const s = e.indexOf(t);
|
|
19
|
-
s > -1 && e.splice(s, 1);
|
|
20
|
-
}, Ui = Object.prototype.hasOwnProperty, B = (e, t) => Ui.call(e, t), O = Array.isArray, ut = (e) => as(e) === "[object Map]", or = (e) => as(e) === "[object Set]", F = (e) => typeof e == "function", Q = (e) => typeof e == "string", ze = (e) => typeof e == "symbol", J = (e) => e !== null && typeof e == "object", lr = (e) => (J(e) || F(e)) && F(e.then) && F(e.catch), cr = Object.prototype.toString, as = (e) => cr.call(e), Vi = (e) => as(e).slice(8, -1), ar = (e) => as(e) === "[object Object]", Qs = (e) => Q(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, wt = /* @__PURE__ */ Gs(
|
|
21
|
-
// the leading comma is intentional so empty string "" is also included
|
|
22
|
-
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
23
|
-
), us = (e) => {
|
|
24
|
-
const t = /* @__PURE__ */ Object.create(null);
|
|
25
|
-
return (s) => t[s] || (t[s] = e(s));
|
|
26
|
-
}, Bi = /-\w/g, Le = us(
|
|
27
|
-
(e) => e.replace(Bi, (t) => t.slice(1).toUpperCase())
|
|
28
|
-
), ki = /\B([A-Z])/g, Je = us(
|
|
29
|
-
(e) => e.replace(ki, "-$1").toLowerCase()
|
|
30
|
-
), ur = us((e) => e.charAt(0).toUpperCase() + e.slice(1)), Cs = us(
|
|
31
|
-
(e) => e ? `on${ur(e)}` : ""
|
|
32
|
-
), ue = (e, t) => !Object.is(e, t), Es = (e, ...t) => {
|
|
33
|
-
for (let s = 0; s < e.length; s++)
|
|
34
|
-
e[s](...t);
|
|
35
|
-
}, fr = (e, t, s, n = !1) => {
|
|
36
|
-
Object.defineProperty(e, t, {
|
|
37
|
-
configurable: !0,
|
|
38
|
-
enumerable: !1,
|
|
39
|
-
writable: n,
|
|
40
|
-
value: s
|
|
41
|
-
});
|
|
42
|
-
}, Wi = (e) => {
|
|
43
|
-
const t = parseFloat(e);
|
|
44
|
-
return isNaN(t) ? e : t;
|
|
45
|
-
};
|
|
46
|
-
let $n;
|
|
47
|
-
const fs = () => $n || ($n = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
48
|
-
function Zs(e) {
|
|
49
|
-
if (O(e)) {
|
|
50
|
-
const t = {};
|
|
51
|
-
for (let s = 0; s < e.length; s++) {
|
|
52
|
-
const n = e[s], r = Q(n) ? Ji(n) : Zs(n);
|
|
53
|
-
if (r)
|
|
54
|
-
for (const i in r)
|
|
55
|
-
t[i] = r[i];
|
|
56
|
-
}
|
|
57
|
-
return t;
|
|
58
|
-
} else if (Q(e) || J(e))
|
|
59
|
-
return e;
|
|
60
|
-
}
|
|
61
|
-
const Ki = /;(?![^(]*\))/g, qi = /:([^]+)/, zi = /\/\*[^]*?\*\//g;
|
|
62
|
-
function Ji(e) {
|
|
63
|
-
const t = {};
|
|
64
|
-
return e.replace(zi, "").split(Ki).forEach((s) => {
|
|
65
|
-
if (s) {
|
|
66
|
-
const n = s.split(qi);
|
|
67
|
-
n.length > 1 && (t[n[0].trim()] = n[1].trim());
|
|
68
|
-
}
|
|
69
|
-
}), t;
|
|
70
|
-
}
|
|
71
|
-
function hs(e) {
|
|
72
|
-
let t = "";
|
|
73
|
-
if (Q(e))
|
|
74
|
-
t = e;
|
|
75
|
-
else if (O(e))
|
|
76
|
-
for (let s = 0; s < e.length; s++) {
|
|
77
|
-
const n = hs(e[s]);
|
|
78
|
-
n && (t += n + " ");
|
|
79
|
-
}
|
|
80
|
-
else if (J(e))
|
|
81
|
-
for (const s in e)
|
|
82
|
-
e[s] && (t += s + " ");
|
|
83
|
-
return t.trim();
|
|
84
|
-
}
|
|
85
|
-
const Gi = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", Yi = /* @__PURE__ */ Gs(Gi);
|
|
86
|
-
function hr(e) {
|
|
87
|
-
return !!e || e === "";
|
|
88
|
-
}
|
|
89
|
-
const dr = (e) => !!(e && e.__v_isRef === !0), Fs = (e) => Q(e) ? e : e == null ? "" : O(e) || J(e) && (e.toString === cr || !F(e.toString)) ? dr(e) ? Fs(e.value) : JSON.stringify(e, pr, 2) : String(e), pr = (e, t) => dr(t) ? pr(e, t.value) : ut(t) ? {
|
|
90
|
-
[`Map(${t.size})`]: [...t.entries()].reduce(
|
|
91
|
-
(s, [n, r], i) => (s[Ss(n, i) + " =>"] = r, s),
|
|
92
|
-
{}
|
|
93
|
-
)
|
|
94
|
-
} : or(t) ? {
|
|
95
|
-
[`Set(${t.size})`]: [...t.values()].map((s) => Ss(s))
|
|
96
|
-
} : ze(t) ? Ss(t) : J(t) && !O(t) && !ar(t) ? String(t) : t, Ss = (e, t = "") => {
|
|
97
|
-
var s;
|
|
98
|
-
return (
|
|
99
|
-
// Symbol.description in es2019+ so we need to cast here to pass
|
|
100
|
-
// the lib: es2016 check
|
|
101
|
-
ze(e) ? `Symbol(${(s = e.description) != null ? s : t})` : e
|
|
102
|
-
);
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* @vue/reactivity v3.5.22
|
|
106
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
107
|
-
* @license MIT
|
|
108
|
-
**/
|
|
109
|
-
let ae;
|
|
110
|
-
class Xi {
|
|
111
|
-
constructor(t = !1) {
|
|
112
|
-
this.detached = t, this._active = !0, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = !1, this.parent = ae, !t && ae && (this.index = (ae.scopes || (ae.scopes = [])).push(
|
|
113
|
-
this
|
|
114
|
-
) - 1);
|
|
115
|
-
}
|
|
116
|
-
get active() {
|
|
117
|
-
return this._active;
|
|
118
|
-
}
|
|
119
|
-
pause() {
|
|
120
|
-
if (this._active) {
|
|
121
|
-
this._isPaused = !0;
|
|
122
|
-
let t, s;
|
|
123
|
-
if (this.scopes)
|
|
124
|
-
for (t = 0, s = this.scopes.length; t < s; t++)
|
|
125
|
-
this.scopes[t].pause();
|
|
126
|
-
for (t = 0, s = this.effects.length; t < s; t++)
|
|
127
|
-
this.effects[t].pause();
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Resumes the effect scope, including all child scopes and effects.
|
|
132
|
-
*/
|
|
133
|
-
resume() {
|
|
134
|
-
if (this._active && this._isPaused) {
|
|
135
|
-
this._isPaused = !1;
|
|
136
|
-
let t, s;
|
|
137
|
-
if (this.scopes)
|
|
138
|
-
for (t = 0, s = this.scopes.length; t < s; t++)
|
|
139
|
-
this.scopes[t].resume();
|
|
140
|
-
for (t = 0, s = this.effects.length; t < s; t++)
|
|
141
|
-
this.effects[t].resume();
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
run(t) {
|
|
145
|
-
if (this._active) {
|
|
146
|
-
const s = ae;
|
|
147
|
-
try {
|
|
148
|
-
return ae = this, t();
|
|
149
|
-
} finally {
|
|
150
|
-
ae = s;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* This should only be called on non-detached scopes
|
|
156
|
-
* @internal
|
|
157
|
-
*/
|
|
158
|
-
on() {
|
|
159
|
-
++this._on === 1 && (this.prevScope = ae, ae = this);
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* This should only be called on non-detached scopes
|
|
163
|
-
* @internal
|
|
164
|
-
*/
|
|
165
|
-
off() {
|
|
166
|
-
this._on > 0 && --this._on === 0 && (ae = this.prevScope, this.prevScope = void 0);
|
|
167
|
-
}
|
|
168
|
-
stop(t) {
|
|
169
|
-
if (this._active) {
|
|
170
|
-
this._active = !1;
|
|
171
|
-
let s, n;
|
|
172
|
-
for (s = 0, n = this.effects.length; s < n; s++)
|
|
173
|
-
this.effects[s].stop();
|
|
174
|
-
for (this.effects.length = 0, s = 0, n = this.cleanups.length; s < n; s++)
|
|
175
|
-
this.cleanups[s]();
|
|
176
|
-
if (this.cleanups.length = 0, this.scopes) {
|
|
177
|
-
for (s = 0, n = this.scopes.length; s < n; s++)
|
|
178
|
-
this.scopes[s].stop(!0);
|
|
179
|
-
this.scopes.length = 0;
|
|
180
|
-
}
|
|
181
|
-
if (!this.detached && this.parent && !t) {
|
|
182
|
-
const r = this.parent.scopes.pop();
|
|
183
|
-
r && r !== this && (this.parent.scopes[this.index] = r, r.index = this.index);
|
|
184
|
-
}
|
|
185
|
-
this.parent = void 0;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
function Qi() {
|
|
190
|
-
return ae;
|
|
191
|
-
}
|
|
192
|
-
let q;
|
|
193
|
-
const ws = /* @__PURE__ */ new WeakSet();
|
|
194
|
-
class mr {
|
|
195
|
-
constructor(t) {
|
|
196
|
-
this.fn = t, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0, ae && ae.active && ae.effects.push(this);
|
|
197
|
-
}
|
|
198
|
-
pause() {
|
|
199
|
-
this.flags |= 64;
|
|
200
|
-
}
|
|
201
|
-
resume() {
|
|
202
|
-
this.flags & 64 && (this.flags &= -65, ws.has(this) && (ws.delete(this), this.trigger()));
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* @internal
|
|
206
|
-
*/
|
|
207
|
-
notify() {
|
|
208
|
-
this.flags & 2 && !(this.flags & 32) || this.flags & 8 || _r(this);
|
|
209
|
-
}
|
|
210
|
-
run() {
|
|
211
|
-
if (!(this.flags & 1))
|
|
212
|
-
return this.fn();
|
|
213
|
-
this.flags |= 2, An(this), vr(this);
|
|
214
|
-
const t = q, s = _e;
|
|
215
|
-
q = this, _e = !0;
|
|
216
|
-
try {
|
|
217
|
-
return this.fn();
|
|
218
|
-
} finally {
|
|
219
|
-
br(this), q = t, _e = s, this.flags &= -3;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
stop() {
|
|
223
|
-
if (this.flags & 1) {
|
|
224
|
-
for (let t = this.deps; t; t = t.nextDep)
|
|
225
|
-
sn(t);
|
|
226
|
-
this.deps = this.depsTail = void 0, An(this), this.onStop && this.onStop(), this.flags &= -2;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
trigger() {
|
|
230
|
-
this.flags & 64 ? ws.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* @internal
|
|
234
|
-
*/
|
|
235
|
-
runIfDirty() {
|
|
236
|
-
Ns(this) && this.run();
|
|
237
|
-
}
|
|
238
|
-
get dirty() {
|
|
239
|
-
return Ns(this);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
let gr = 0, Tt, $t;
|
|
243
|
-
function _r(e, t = !1) {
|
|
244
|
-
if (e.flags |= 8, t) {
|
|
245
|
-
e.next = $t, $t = e;
|
|
246
|
-
return;
|
|
247
|
-
}
|
|
248
|
-
e.next = Tt, Tt = e;
|
|
249
|
-
}
|
|
250
|
-
function en() {
|
|
251
|
-
gr++;
|
|
252
|
-
}
|
|
253
|
-
function tn() {
|
|
254
|
-
if (--gr > 0)
|
|
255
|
-
return;
|
|
256
|
-
if ($t) {
|
|
257
|
-
let t = $t;
|
|
258
|
-
for ($t = void 0; t; ) {
|
|
259
|
-
const s = t.next;
|
|
260
|
-
t.next = void 0, t.flags &= -9, t = s;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
let e;
|
|
264
|
-
for (; Tt; ) {
|
|
265
|
-
let t = Tt;
|
|
266
|
-
for (Tt = void 0; t; ) {
|
|
267
|
-
const s = t.next;
|
|
268
|
-
if (t.next = void 0, t.flags &= -9, t.flags & 1)
|
|
269
|
-
try {
|
|
270
|
-
t.trigger();
|
|
271
|
-
} catch (n) {
|
|
272
|
-
e || (e = n);
|
|
273
|
-
}
|
|
274
|
-
t = s;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
if (e) throw e;
|
|
278
|
-
}
|
|
279
|
-
function vr(e) {
|
|
280
|
-
for (let t = e.deps; t; t = t.nextDep)
|
|
281
|
-
t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
|
|
282
|
-
}
|
|
283
|
-
function br(e) {
|
|
284
|
-
let t, s = e.depsTail, n = s;
|
|
285
|
-
for (; n; ) {
|
|
286
|
-
const r = n.prevDep;
|
|
287
|
-
n.version === -1 ? (n === s && (s = r), sn(n), Zi(n)) : t = n, n.dep.activeLink = n.prevActiveLink, n.prevActiveLink = void 0, n = r;
|
|
288
|
-
}
|
|
289
|
-
e.deps = t, e.depsTail = s;
|
|
290
|
-
}
|
|
291
|
-
function Ns(e) {
|
|
292
|
-
for (let t = e.deps; t; t = t.nextDep)
|
|
293
|
-
if (t.dep.version !== t.version || t.dep.computed && (yr(t.dep.computed) || t.dep.version !== t.version))
|
|
294
|
-
return !0;
|
|
295
|
-
return !!e._dirty;
|
|
296
|
-
}
|
|
297
|
-
function yr(e) {
|
|
298
|
-
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === Ft) || (e.globalVersion = Ft, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !Ns(e))))
|
|
299
|
-
return;
|
|
300
|
-
e.flags |= 2;
|
|
301
|
-
const t = e.dep, s = q, n = _e;
|
|
302
|
-
q = e, _e = !0;
|
|
303
|
-
try {
|
|
304
|
-
vr(e);
|
|
305
|
-
const r = e.fn(e._value);
|
|
306
|
-
(t.version === 0 || ue(r, e._value)) && (e.flags |= 128, e._value = r, t.version++);
|
|
307
|
-
} catch (r) {
|
|
308
|
-
throw t.version++, r;
|
|
309
|
-
} finally {
|
|
310
|
-
q = s, _e = n, br(e), e.flags &= -3;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
function sn(e, t = !1) {
|
|
314
|
-
const { dep: s, prevSub: n, nextSub: r } = e;
|
|
315
|
-
if (n && (n.nextSub = r, e.prevSub = void 0), r && (r.prevSub = n, e.nextSub = void 0), s.subs === e && (s.subs = n, !n && s.computed)) {
|
|
316
|
-
s.computed.flags &= -5;
|
|
317
|
-
for (let i = s.computed.deps; i; i = i.nextDep)
|
|
318
|
-
sn(i, !0);
|
|
319
|
-
}
|
|
320
|
-
!t && !--s.sc && s.map && s.map.delete(s.key);
|
|
321
|
-
}
|
|
322
|
-
function Zi(e) {
|
|
323
|
-
const { prevDep: t, nextDep: s } = e;
|
|
324
|
-
t && (t.nextDep = s, e.prevDep = void 0), s && (s.prevDep = t, e.nextDep = void 0);
|
|
325
|
-
}
|
|
326
|
-
let _e = !0;
|
|
327
|
-
const xr = [];
|
|
328
|
-
function De() {
|
|
329
|
-
xr.push(_e), _e = !1;
|
|
330
|
-
}
|
|
331
|
-
function je() {
|
|
332
|
-
const e = xr.pop();
|
|
333
|
-
_e = e === void 0 ? !0 : e;
|
|
334
|
-
}
|
|
335
|
-
function An(e) {
|
|
336
|
-
const { cleanup: t } = e;
|
|
337
|
-
if (e.cleanup = void 0, t) {
|
|
338
|
-
const s = q;
|
|
339
|
-
q = void 0;
|
|
340
|
-
try {
|
|
341
|
-
t();
|
|
342
|
-
} finally {
|
|
343
|
-
q = s;
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
let Ft = 0;
|
|
348
|
-
class eo {
|
|
349
|
-
constructor(t, s) {
|
|
350
|
-
this.sub = t, this.dep = s, this.version = s.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
class ds {
|
|
354
|
-
// TODO isolatedDeclarations "__v_skip"
|
|
355
|
-
constructor(t) {
|
|
356
|
-
this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = !0;
|
|
357
|
-
}
|
|
358
|
-
track(t) {
|
|
359
|
-
if (!q || !_e || q === this.computed)
|
|
360
|
-
return;
|
|
361
|
-
let s = this.activeLink;
|
|
362
|
-
if (s === void 0 || s.sub !== q)
|
|
363
|
-
s = this.activeLink = new eo(q, this), q.deps ? (s.prevDep = q.depsTail, q.depsTail.nextDep = s, q.depsTail = s) : q.deps = q.depsTail = s, Cr(s);
|
|
364
|
-
else if (s.version === -1 && (s.version = this.version, s.nextDep)) {
|
|
365
|
-
const n = s.nextDep;
|
|
366
|
-
n.prevDep = s.prevDep, s.prevDep && (s.prevDep.nextDep = n), s.prevDep = q.depsTail, s.nextDep = void 0, q.depsTail.nextDep = s, q.depsTail = s, q.deps === s && (q.deps = n);
|
|
367
|
-
}
|
|
368
|
-
return s;
|
|
369
|
-
}
|
|
370
|
-
trigger(t) {
|
|
371
|
-
this.version++, Ft++, this.notify(t);
|
|
372
|
-
}
|
|
373
|
-
notify(t) {
|
|
374
|
-
en();
|
|
375
|
-
try {
|
|
376
|
-
for (let s = this.subs; s; s = s.prevSub)
|
|
377
|
-
s.sub.notify() && s.sub.dep.notify();
|
|
378
|
-
} finally {
|
|
379
|
-
tn();
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
function Cr(e) {
|
|
384
|
-
if (e.dep.sc++, e.sub.flags & 4) {
|
|
385
|
-
const t = e.dep.computed;
|
|
386
|
-
if (t && !e.dep.subs) {
|
|
387
|
-
t.flags |= 20;
|
|
388
|
-
for (let n = t.deps; n; n = n.nextDep)
|
|
389
|
-
Cr(n);
|
|
390
|
-
}
|
|
391
|
-
const s = e.dep.subs;
|
|
392
|
-
s !== e && (e.prevSub = s, s && (s.nextSub = e)), e.dep.subs = e;
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
const Rs = /* @__PURE__ */ new WeakMap(), st = Symbol(
|
|
396
|
-
""
|
|
397
|
-
), Ls = Symbol(
|
|
398
|
-
""
|
|
399
|
-
), Nt = Symbol(
|
|
400
|
-
""
|
|
401
|
-
);
|
|
402
|
-
function se(e, t, s) {
|
|
403
|
-
if (_e && q) {
|
|
404
|
-
let n = Rs.get(e);
|
|
405
|
-
n || Rs.set(e, n = /* @__PURE__ */ new Map());
|
|
406
|
-
let r = n.get(s);
|
|
407
|
-
r || (n.set(s, r = new ds()), r.map = n, r.key = s), r.track();
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
function Ne(e, t, s, n, r, i) {
|
|
411
|
-
const o = Rs.get(e);
|
|
412
|
-
if (!o) {
|
|
413
|
-
Ft++;
|
|
414
|
-
return;
|
|
415
|
-
}
|
|
416
|
-
const l = (c) => {
|
|
417
|
-
c && c.trigger();
|
|
418
|
-
};
|
|
419
|
-
if (en(), t === "clear")
|
|
420
|
-
o.forEach(l);
|
|
421
|
-
else {
|
|
422
|
-
const c = O(e), h = c && Qs(s);
|
|
423
|
-
if (c && s === "length") {
|
|
424
|
-
const u = Number(n);
|
|
425
|
-
o.forEach((d, p) => {
|
|
426
|
-
(p === "length" || p === Nt || !ze(p) && p >= u) && l(d);
|
|
427
|
-
});
|
|
428
|
-
} else
|
|
429
|
-
switch ((s !== void 0 || o.has(void 0)) && l(o.get(s)), h && l(o.get(Nt)), t) {
|
|
430
|
-
case "add":
|
|
431
|
-
c ? h && l(o.get("length")) : (l(o.get(st)), ut(e) && l(o.get(Ls)));
|
|
432
|
-
break;
|
|
433
|
-
case "delete":
|
|
434
|
-
c || (l(o.get(st)), ut(e) && l(o.get(Ls)));
|
|
435
|
-
break;
|
|
436
|
-
case "set":
|
|
437
|
-
ut(e) && l(o.get(st));
|
|
438
|
-
break;
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
tn();
|
|
442
|
-
}
|
|
443
|
-
function ot(e) {
|
|
444
|
-
const t = j(e);
|
|
445
|
-
return t === e ? t : (se(t, "iterate", Nt), pe(e) ? t : t.map(Z));
|
|
446
|
-
}
|
|
447
|
-
function ps(e) {
|
|
448
|
-
return se(e = j(e), "iterate", Nt), e;
|
|
449
|
-
}
|
|
450
|
-
const to = {
|
|
451
|
-
__proto__: null,
|
|
452
|
-
[Symbol.iterator]() {
|
|
453
|
-
return Ts(this, Symbol.iterator, Z);
|
|
454
|
-
},
|
|
455
|
-
concat(...e) {
|
|
456
|
-
return ot(this).concat(
|
|
457
|
-
...e.map((t) => O(t) ? ot(t) : t)
|
|
458
|
-
);
|
|
459
|
-
},
|
|
460
|
-
entries() {
|
|
461
|
-
return Ts(this, "entries", (e) => (e[1] = Z(e[1]), e));
|
|
462
|
-
},
|
|
463
|
-
every(e, t) {
|
|
464
|
-
return Oe(this, "every", e, t, void 0, arguments);
|
|
465
|
-
},
|
|
466
|
-
filter(e, t) {
|
|
467
|
-
return Oe(this, "filter", e, t, (s) => s.map(Z), arguments);
|
|
468
|
-
},
|
|
469
|
-
find(e, t) {
|
|
470
|
-
return Oe(this, "find", e, t, Z, arguments);
|
|
471
|
-
},
|
|
472
|
-
findIndex(e, t) {
|
|
473
|
-
return Oe(this, "findIndex", e, t, void 0, arguments);
|
|
474
|
-
},
|
|
475
|
-
findLast(e, t) {
|
|
476
|
-
return Oe(this, "findLast", e, t, Z, arguments);
|
|
477
|
-
},
|
|
478
|
-
findLastIndex(e, t) {
|
|
479
|
-
return Oe(this, "findLastIndex", e, t, void 0, arguments);
|
|
480
|
-
},
|
|
481
|
-
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
482
|
-
forEach(e, t) {
|
|
483
|
-
return Oe(this, "forEach", e, t, void 0, arguments);
|
|
484
|
-
},
|
|
485
|
-
includes(...e) {
|
|
486
|
-
return $s(this, "includes", e);
|
|
487
|
-
},
|
|
488
|
-
indexOf(...e) {
|
|
489
|
-
return $s(this, "indexOf", e);
|
|
490
|
-
},
|
|
491
|
-
join(e) {
|
|
492
|
-
return ot(this).join(e);
|
|
493
|
-
},
|
|
494
|
-
// keys() iterator only reads `length`, no optimization required
|
|
495
|
-
lastIndexOf(...e) {
|
|
496
|
-
return $s(this, "lastIndexOf", e);
|
|
497
|
-
},
|
|
498
|
-
map(e, t) {
|
|
499
|
-
return Oe(this, "map", e, t, void 0, arguments);
|
|
500
|
-
},
|
|
501
|
-
pop() {
|
|
502
|
-
return xt(this, "pop");
|
|
503
|
-
},
|
|
504
|
-
push(...e) {
|
|
505
|
-
return xt(this, "push", e);
|
|
506
|
-
},
|
|
507
|
-
reduce(e, ...t) {
|
|
508
|
-
return Pn(this, "reduce", e, t);
|
|
509
|
-
},
|
|
510
|
-
reduceRight(e, ...t) {
|
|
511
|
-
return Pn(this, "reduceRight", e, t);
|
|
512
|
-
},
|
|
513
|
-
shift() {
|
|
514
|
-
return xt(this, "shift");
|
|
515
|
-
},
|
|
516
|
-
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
517
|
-
some(e, t) {
|
|
518
|
-
return Oe(this, "some", e, t, void 0, arguments);
|
|
519
|
-
},
|
|
520
|
-
splice(...e) {
|
|
521
|
-
return xt(this, "splice", e);
|
|
522
|
-
},
|
|
523
|
-
toReversed() {
|
|
524
|
-
return ot(this).toReversed();
|
|
525
|
-
},
|
|
526
|
-
toSorted(e) {
|
|
527
|
-
return ot(this).toSorted(e);
|
|
528
|
-
},
|
|
529
|
-
toSpliced(...e) {
|
|
530
|
-
return ot(this).toSpliced(...e);
|
|
531
|
-
},
|
|
532
|
-
unshift(...e) {
|
|
533
|
-
return xt(this, "unshift", e);
|
|
534
|
-
},
|
|
535
|
-
values() {
|
|
536
|
-
return Ts(this, "values", Z);
|
|
537
|
-
}
|
|
538
|
-
};
|
|
539
|
-
function Ts(e, t, s) {
|
|
540
|
-
const n = ps(e), r = n[t]();
|
|
541
|
-
return n !== e && !pe(e) && (r._next = r.next, r.next = () => {
|
|
542
|
-
const i = r._next();
|
|
543
|
-
return i.done || (i.value = s(i.value)), i;
|
|
544
|
-
}), r;
|
|
545
|
-
}
|
|
546
|
-
const so = Array.prototype;
|
|
547
|
-
function Oe(e, t, s, n, r, i) {
|
|
548
|
-
const o = ps(e), l = o !== e && !pe(e), c = o[t];
|
|
549
|
-
if (c !== so[t]) {
|
|
550
|
-
const d = c.apply(e, i);
|
|
551
|
-
return l ? Z(d) : d;
|
|
552
|
-
}
|
|
553
|
-
let h = s;
|
|
554
|
-
o !== e && (l ? h = function(d, p) {
|
|
555
|
-
return s.call(this, Z(d), p, e);
|
|
556
|
-
} : s.length > 2 && (h = function(d, p) {
|
|
557
|
-
return s.call(this, d, p, e);
|
|
558
|
-
}));
|
|
559
|
-
const u = c.call(o, h, n);
|
|
560
|
-
return l && r ? r(u) : u;
|
|
561
|
-
}
|
|
562
|
-
function Pn(e, t, s, n) {
|
|
563
|
-
const r = ps(e);
|
|
564
|
-
let i = s;
|
|
565
|
-
return r !== e && (pe(e) ? s.length > 3 && (i = function(o, l, c) {
|
|
566
|
-
return s.call(this, o, l, c, e);
|
|
567
|
-
}) : i = function(o, l, c) {
|
|
568
|
-
return s.call(this, o, Z(l), c, e);
|
|
569
|
-
}), r[t](i, ...n);
|
|
570
|
-
}
|
|
571
|
-
function $s(e, t, s) {
|
|
572
|
-
const n = j(e);
|
|
573
|
-
se(n, "iterate", Nt);
|
|
574
|
-
const r = n[t](...s);
|
|
575
|
-
return (r === -1 || r === !1) && ln(s[0]) ? (s[0] = j(s[0]), n[t](...s)) : r;
|
|
576
|
-
}
|
|
577
|
-
function xt(e, t, s = []) {
|
|
578
|
-
De(), en();
|
|
579
|
-
const n = j(e)[t].apply(e, s);
|
|
580
|
-
return tn(), je(), n;
|
|
581
|
-
}
|
|
582
|
-
const no = /* @__PURE__ */ Gs("__proto__,__v_isRef,__isVue"), Er = new Set(
|
|
583
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ze)
|
|
584
|
-
);
|
|
585
|
-
function ro(e) {
|
|
586
|
-
ze(e) || (e = String(e));
|
|
587
|
-
const t = j(this);
|
|
588
|
-
return se(t, "has", e), t.hasOwnProperty(e);
|
|
589
|
-
}
|
|
590
|
-
class Sr {
|
|
591
|
-
constructor(t = !1, s = !1) {
|
|
592
|
-
this._isReadonly = t, this._isShallow = s;
|
|
593
|
-
}
|
|
594
|
-
get(t, s, n) {
|
|
595
|
-
if (s === "__v_skip") return t.__v_skip;
|
|
596
|
-
const r = this._isReadonly, i = this._isShallow;
|
|
597
|
-
if (s === "__v_isReactive")
|
|
598
|
-
return !r;
|
|
599
|
-
if (s === "__v_isReadonly")
|
|
600
|
-
return r;
|
|
601
|
-
if (s === "__v_isShallow")
|
|
602
|
-
return i;
|
|
603
|
-
if (s === "__v_raw")
|
|
604
|
-
return n === (r ? i ? mo : Ar : i ? $r : Tr).get(t) || // receiver is not the reactive proxy, but has the same prototype
|
|
605
|
-
// this means the receiver is a user proxy of the reactive proxy
|
|
606
|
-
Object.getPrototypeOf(t) === Object.getPrototypeOf(n) ? t : void 0;
|
|
607
|
-
const o = O(t);
|
|
608
|
-
if (!r) {
|
|
609
|
-
let c;
|
|
610
|
-
if (o && (c = to[s]))
|
|
611
|
-
return c;
|
|
612
|
-
if (s === "hasOwnProperty")
|
|
613
|
-
return ro;
|
|
614
|
-
}
|
|
615
|
-
const l = Reflect.get(
|
|
616
|
-
t,
|
|
617
|
-
s,
|
|
618
|
-
// if this is a proxy wrapping a ref, return methods using the raw ref
|
|
619
|
-
// as receiver so that we don't have to call `toRaw` on the ref in all
|
|
620
|
-
// its class methods
|
|
621
|
-
ee(t) ? t : n
|
|
622
|
-
);
|
|
623
|
-
if ((ze(s) ? Er.has(s) : no(s)) || (r || se(t, "get", s), i))
|
|
624
|
-
return l;
|
|
625
|
-
if (ee(l)) {
|
|
626
|
-
const c = o && Qs(s) ? l : l.value;
|
|
627
|
-
return r && J(c) ? js(c) : c;
|
|
628
|
-
}
|
|
629
|
-
return J(l) ? r ? js(l) : rn(l) : l;
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
class wr extends Sr {
|
|
633
|
-
constructor(t = !1) {
|
|
634
|
-
super(!1, t);
|
|
635
|
-
}
|
|
636
|
-
set(t, s, n, r) {
|
|
637
|
-
let i = t[s];
|
|
638
|
-
if (!this._isShallow) {
|
|
639
|
-
const c = We(i);
|
|
640
|
-
if (!pe(n) && !We(n) && (i = j(i), n = j(n)), !O(t) && ee(i) && !ee(n))
|
|
641
|
-
return c || (i.value = n), !0;
|
|
642
|
-
}
|
|
643
|
-
const o = O(t) && Qs(s) ? Number(s) < t.length : B(t, s), l = Reflect.set(
|
|
644
|
-
t,
|
|
645
|
-
s,
|
|
646
|
-
n,
|
|
647
|
-
ee(t) ? t : r
|
|
648
|
-
);
|
|
649
|
-
return t === j(r) && (o ? ue(n, i) && Ne(t, "set", s, n) : Ne(t, "add", s, n)), l;
|
|
650
|
-
}
|
|
651
|
-
deleteProperty(t, s) {
|
|
652
|
-
const n = B(t, s);
|
|
653
|
-
t[s];
|
|
654
|
-
const r = Reflect.deleteProperty(t, s);
|
|
655
|
-
return r && n && Ne(t, "delete", s, void 0), r;
|
|
656
|
-
}
|
|
657
|
-
has(t, s) {
|
|
658
|
-
const n = Reflect.has(t, s);
|
|
659
|
-
return (!ze(s) || !Er.has(s)) && se(t, "has", s), n;
|
|
660
|
-
}
|
|
661
|
-
ownKeys(t) {
|
|
662
|
-
return se(
|
|
663
|
-
t,
|
|
664
|
-
"iterate",
|
|
665
|
-
O(t) ? "length" : st
|
|
666
|
-
), Reflect.ownKeys(t);
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
class io extends Sr {
|
|
670
|
-
constructor(t = !1) {
|
|
671
|
-
super(!0, t);
|
|
672
|
-
}
|
|
673
|
-
set(t, s) {
|
|
674
|
-
return !0;
|
|
675
|
-
}
|
|
676
|
-
deleteProperty(t, s) {
|
|
677
|
-
return !0;
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
const oo = /* @__PURE__ */ new wr(), lo = /* @__PURE__ */ new io(), co = /* @__PURE__ */ new wr(!0);
|
|
681
|
-
const Ds = (e) => e, Wt = (e) => Reflect.getPrototypeOf(e);
|
|
682
|
-
function ao(e, t, s) {
|
|
683
|
-
return function(...n) {
|
|
684
|
-
const r = this.__v_raw, i = j(r), o = ut(i), l = e === "entries" || e === Symbol.iterator && o, c = e === "keys" && o, h = r[e](...n), u = s ? Ds : t ? Qt : Z;
|
|
685
|
-
return !t && se(
|
|
686
|
-
i,
|
|
687
|
-
"iterate",
|
|
688
|
-
c ? Ls : st
|
|
689
|
-
), {
|
|
690
|
-
// iterator protocol
|
|
691
|
-
next() {
|
|
692
|
-
const { value: d, done: p } = h.next();
|
|
693
|
-
return p ? { value: d, done: p } : {
|
|
694
|
-
value: l ? [u(d[0]), u(d[1])] : u(d),
|
|
695
|
-
done: p
|
|
696
|
-
};
|
|
697
|
-
},
|
|
698
|
-
// iterable protocol
|
|
699
|
-
[Symbol.iterator]() {
|
|
700
|
-
return this;
|
|
701
|
-
}
|
|
702
|
-
};
|
|
703
|
-
};
|
|
704
|
-
}
|
|
705
|
-
function Kt(e) {
|
|
706
|
-
return function(...t) {
|
|
707
|
-
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
708
|
-
};
|
|
709
|
-
}
|
|
710
|
-
function uo(e, t) {
|
|
711
|
-
const s = {
|
|
712
|
-
get(r) {
|
|
713
|
-
const i = this.__v_raw, o = j(i), l = j(r);
|
|
714
|
-
e || (ue(r, l) && se(o, "get", r), se(o, "get", l));
|
|
715
|
-
const { has: c } = Wt(o), h = t ? Ds : e ? Qt : Z;
|
|
716
|
-
if (c.call(o, r))
|
|
717
|
-
return h(i.get(r));
|
|
718
|
-
if (c.call(o, l))
|
|
719
|
-
return h(i.get(l));
|
|
720
|
-
i !== o && i.get(r);
|
|
721
|
-
},
|
|
722
|
-
get size() {
|
|
723
|
-
const r = this.__v_raw;
|
|
724
|
-
return !e && se(j(r), "iterate", st), r.size;
|
|
725
|
-
},
|
|
726
|
-
has(r) {
|
|
727
|
-
const i = this.__v_raw, o = j(i), l = j(r);
|
|
728
|
-
return e || (ue(r, l) && se(o, "has", r), se(o, "has", l)), r === l ? i.has(r) : i.has(r) || i.has(l);
|
|
729
|
-
},
|
|
730
|
-
forEach(r, i) {
|
|
731
|
-
const o = this, l = o.__v_raw, c = j(l), h = t ? Ds : e ? Qt : Z;
|
|
732
|
-
return !e && se(c, "iterate", st), l.forEach((u, d) => r.call(i, h(u), h(d), o));
|
|
733
|
-
}
|
|
734
|
-
};
|
|
735
|
-
return te(
|
|
736
|
-
s,
|
|
737
|
-
e ? {
|
|
738
|
-
add: Kt("add"),
|
|
739
|
-
set: Kt("set"),
|
|
740
|
-
delete: Kt("delete"),
|
|
741
|
-
clear: Kt("clear")
|
|
742
|
-
} : {
|
|
743
|
-
add(r) {
|
|
744
|
-
!t && !pe(r) && !We(r) && (r = j(r));
|
|
745
|
-
const i = j(this);
|
|
746
|
-
return Wt(i).has.call(i, r) || (i.add(r), Ne(i, "add", r, r)), this;
|
|
747
|
-
},
|
|
748
|
-
set(r, i) {
|
|
749
|
-
!t && !pe(i) && !We(i) && (i = j(i));
|
|
750
|
-
const o = j(this), { has: l, get: c } = Wt(o);
|
|
751
|
-
let h = l.call(o, r);
|
|
752
|
-
h || (r = j(r), h = l.call(o, r));
|
|
753
|
-
const u = c.call(o, r);
|
|
754
|
-
return o.set(r, i), h ? ue(i, u) && Ne(o, "set", r, i) : Ne(o, "add", r, i), this;
|
|
755
|
-
},
|
|
756
|
-
delete(r) {
|
|
757
|
-
const i = j(this), { has: o, get: l } = Wt(i);
|
|
758
|
-
let c = o.call(i, r);
|
|
759
|
-
c || (r = j(r), c = o.call(i, r)), l && l.call(i, r);
|
|
760
|
-
const h = i.delete(r);
|
|
761
|
-
return c && Ne(i, "delete", r, void 0), h;
|
|
762
|
-
},
|
|
763
|
-
clear() {
|
|
764
|
-
const r = j(this), i = r.size !== 0, o = r.clear();
|
|
765
|
-
return i && Ne(
|
|
766
|
-
r,
|
|
767
|
-
"clear",
|
|
768
|
-
void 0,
|
|
769
|
-
void 0
|
|
770
|
-
), o;
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
), [
|
|
774
|
-
"keys",
|
|
775
|
-
"values",
|
|
776
|
-
"entries",
|
|
777
|
-
Symbol.iterator
|
|
778
|
-
].forEach((r) => {
|
|
779
|
-
s[r] = ao(r, e, t);
|
|
780
|
-
}), s;
|
|
781
|
-
}
|
|
782
|
-
function nn(e, t) {
|
|
783
|
-
const s = uo(e, t);
|
|
784
|
-
return (n, r, i) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? n : Reflect.get(
|
|
785
|
-
B(s, r) && r in n ? s : n,
|
|
786
|
-
r,
|
|
787
|
-
i
|
|
788
|
-
);
|
|
789
|
-
}
|
|
790
|
-
const fo = {
|
|
791
|
-
get: /* @__PURE__ */ nn(!1, !1)
|
|
792
|
-
}, ho = {
|
|
793
|
-
get: /* @__PURE__ */ nn(!1, !0)
|
|
794
|
-
}, po = {
|
|
795
|
-
get: /* @__PURE__ */ nn(!0, !1)
|
|
796
|
-
};
|
|
797
|
-
const Tr = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), mo = /* @__PURE__ */ new WeakMap();
|
|
798
|
-
function go(e) {
|
|
799
|
-
switch (e) {
|
|
800
|
-
case "Object":
|
|
801
|
-
case "Array":
|
|
802
|
-
return 1;
|
|
803
|
-
case "Map":
|
|
804
|
-
case "Set":
|
|
805
|
-
case "WeakMap":
|
|
806
|
-
case "WeakSet":
|
|
807
|
-
return 2;
|
|
808
|
-
default:
|
|
809
|
-
return 0;
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
function _o(e) {
|
|
813
|
-
return e.__v_skip || !Object.isExtensible(e) ? 0 : go(Vi(e));
|
|
814
|
-
}
|
|
815
|
-
function rn(e) {
|
|
816
|
-
return We(e) ? e : on(
|
|
817
|
-
e,
|
|
818
|
-
!1,
|
|
819
|
-
oo,
|
|
820
|
-
fo,
|
|
821
|
-
Tr
|
|
822
|
-
);
|
|
823
|
-
}
|
|
824
|
-
function vo(e) {
|
|
825
|
-
return on(
|
|
826
|
-
e,
|
|
827
|
-
!1,
|
|
828
|
-
co,
|
|
829
|
-
ho,
|
|
830
|
-
$r
|
|
831
|
-
);
|
|
832
|
-
}
|
|
833
|
-
function js(e) {
|
|
834
|
-
return on(
|
|
835
|
-
e,
|
|
836
|
-
!0,
|
|
837
|
-
lo,
|
|
838
|
-
po,
|
|
839
|
-
Ar
|
|
840
|
-
);
|
|
841
|
-
}
|
|
842
|
-
function on(e, t, s, n, r) {
|
|
843
|
-
if (!J(e) || e.__v_raw && !(t && e.__v_isReactive))
|
|
844
|
-
return e;
|
|
845
|
-
const i = _o(e);
|
|
846
|
-
if (i === 0)
|
|
847
|
-
return e;
|
|
848
|
-
const o = r.get(e);
|
|
849
|
-
if (o)
|
|
850
|
-
return o;
|
|
851
|
-
const l = new Proxy(
|
|
852
|
-
e,
|
|
853
|
-
i === 2 ? n : s
|
|
854
|
-
);
|
|
855
|
-
return r.set(e, l), l;
|
|
856
|
-
}
|
|
857
|
-
function ft(e) {
|
|
858
|
-
return We(e) ? ft(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
859
|
-
}
|
|
860
|
-
function We(e) {
|
|
861
|
-
return !!(e && e.__v_isReadonly);
|
|
862
|
-
}
|
|
863
|
-
function pe(e) {
|
|
864
|
-
return !!(e && e.__v_isShallow);
|
|
865
|
-
}
|
|
866
|
-
function ln(e) {
|
|
867
|
-
return e ? !!e.__v_raw : !1;
|
|
868
|
-
}
|
|
869
|
-
function j(e) {
|
|
870
|
-
const t = e && e.__v_raw;
|
|
871
|
-
return t ? j(t) : e;
|
|
872
|
-
}
|
|
873
|
-
function bo(e) {
|
|
874
|
-
return !B(e, "__v_skip") && Object.isExtensible(e) && fr(e, "__v_skip", !0), e;
|
|
875
|
-
}
|
|
876
|
-
const Z = (e) => J(e) ? rn(e) : e, Qt = (e) => J(e) ? js(e) : e;
|
|
877
|
-
function ee(e) {
|
|
878
|
-
return e ? e.__v_isRef === !0 : !1;
|
|
879
|
-
}
|
|
880
|
-
function In(e) {
|
|
881
|
-
return Pr(e, !1);
|
|
882
|
-
}
|
|
883
|
-
function Jt(e) {
|
|
884
|
-
return Pr(e, !0);
|
|
885
|
-
}
|
|
886
|
-
function Pr(e, t) {
|
|
887
|
-
return ee(e) ? e : new yo(e, t);
|
|
888
|
-
}
|
|
889
|
-
class yo {
|
|
890
|
-
constructor(t, s) {
|
|
891
|
-
this.dep = new ds(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = s ? t : j(t), this._value = s ? t : Z(t), this.__v_isShallow = s;
|
|
892
|
-
}
|
|
893
|
-
get value() {
|
|
894
|
-
return this.dep.track(), this._value;
|
|
895
|
-
}
|
|
896
|
-
set value(t) {
|
|
897
|
-
const s = this._rawValue, n = this.__v_isShallow || pe(t) || We(t);
|
|
898
|
-
t = n ? t : j(t), ue(t, s) && (this._rawValue = t, this._value = n ? t : Z(t), this.dep.trigger());
|
|
899
|
-
}
|
|
900
|
-
}
|
|
901
|
-
function Hs(e) {
|
|
902
|
-
return ee(e) ? e.value : e;
|
|
903
|
-
}
|
|
904
|
-
const xo = {
|
|
905
|
-
get: (e, t, s) => t === "__v_raw" ? e : Hs(Reflect.get(e, t, s)),
|
|
906
|
-
set: (e, t, s, n) => {
|
|
907
|
-
const r = e[t];
|
|
908
|
-
return ee(r) && !ee(s) ? (r.value = s, !0) : Reflect.set(e, t, s, n);
|
|
909
|
-
}
|
|
910
|
-
};
|
|
911
|
-
function Ir(e) {
|
|
912
|
-
return ft(e) ? e : new Proxy(e, xo);
|
|
913
|
-
}
|
|
914
|
-
class Co {
|
|
915
|
-
constructor(t) {
|
|
916
|
-
this.__v_isRef = !0, this._value = void 0;
|
|
917
|
-
const s = this.dep = new ds(), { get: n, set: r } = t(s.track.bind(s), s.trigger.bind(s));
|
|
918
|
-
this._get = n, this._set = r;
|
|
919
|
-
}
|
|
920
|
-
get value() {
|
|
921
|
-
return this._value = this._get();
|
|
922
|
-
}
|
|
923
|
-
set value(t) {
|
|
924
|
-
this._set(t);
|
|
925
|
-
}
|
|
926
|
-
}
|
|
927
|
-
function Eo(e) {
|
|
928
|
-
return new Co(e);
|
|
929
|
-
}
|
|
930
|
-
class So {
|
|
931
|
-
constructor(t, s, n) {
|
|
932
|
-
this.fn = t, this.setter = s, this._value = void 0, this.dep = new ds(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = Ft - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !s, this.isSSR = n;
|
|
933
|
-
}
|
|
934
|
-
/**
|
|
935
|
-
* @internal
|
|
936
|
-
*/
|
|
937
|
-
notify() {
|
|
938
|
-
if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
|
|
939
|
-
q !== this)
|
|
940
|
-
return _r(this, !0), !0;
|
|
941
|
-
}
|
|
942
|
-
get value() {
|
|
943
|
-
const t = this.dep.track();
|
|
944
|
-
return yr(this), t && (t.version = this.dep.version), this._value;
|
|
945
|
-
}
|
|
946
|
-
set value(t) {
|
|
947
|
-
this.setter && this.setter(t);
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
function wo(e, t, s = !1) {
|
|
951
|
-
let n, r;
|
|
952
|
-
return F(e) ? n = e : (n = e.get, r = e.set), new So(n, r, s);
|
|
953
|
-
}
|
|
954
|
-
const qt = {}, Zt = /* @__PURE__ */ new WeakMap();
|
|
955
|
-
let et;
|
|
956
|
-
function To(e, t = !1, s = et) {
|
|
957
|
-
if (s) {
|
|
958
|
-
let n = Zt.get(s);
|
|
959
|
-
n || Zt.set(s, n = []), n.push(e);
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
function $o(e, t, s = H) {
|
|
963
|
-
const { immediate: n, deep: r, once: i, scheduler: o, augmentJob: l, call: c } = s, h = (T) => r ? T : pe(T) || r === !1 || r === 0 ? ke(T, 1) : ke(T);
|
|
964
|
-
let u, d, p, v, x = !1, $ = !1;
|
|
965
|
-
if (ee(e) ? (d = () => e.value, x = pe(e)) : ft(e) ? (d = () => h(e), x = !0) : O(e) ? ($ = !0, x = e.some((T) => ft(T) || pe(T)), d = () => e.map((T) => {
|
|
966
|
-
if (ee(T))
|
|
967
|
-
return T.value;
|
|
968
|
-
if (ft(T))
|
|
969
|
-
return h(T);
|
|
970
|
-
if (F(T))
|
|
971
|
-
return c ? c(T, 2) : T();
|
|
972
|
-
})) : F(e) ? t ? d = c ? () => c(e, 2) : e : d = () => {
|
|
973
|
-
if (p) {
|
|
974
|
-
De();
|
|
975
|
-
try {
|
|
976
|
-
p();
|
|
977
|
-
} finally {
|
|
978
|
-
je();
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
const T = et;
|
|
982
|
-
et = u;
|
|
983
|
-
try {
|
|
984
|
-
return c ? c(e, 3, [v]) : e(v);
|
|
985
|
-
} finally {
|
|
986
|
-
et = T;
|
|
987
|
-
}
|
|
988
|
-
} : d = Ae, t && r) {
|
|
989
|
-
const T = d, N = r === !0 ? 1 / 0 : r;
|
|
990
|
-
d = () => ke(T(), N);
|
|
991
|
-
}
|
|
992
|
-
const U = Qi(), I = () => {
|
|
993
|
-
u.stop(), U && U.active && Xs(U.effects, u);
|
|
994
|
-
};
|
|
995
|
-
if (i && t) {
|
|
996
|
-
const T = t;
|
|
997
|
-
t = (...N) => {
|
|
998
|
-
T(...N), I();
|
|
999
|
-
};
|
|
1000
|
-
}
|
|
1001
|
-
let R = $ ? new Array(e.length).fill(qt) : qt;
|
|
1002
|
-
const L = (T) => {
|
|
1003
|
-
if (!(!(u.flags & 1) || !u.dirty && !T))
|
|
1004
|
-
if (t) {
|
|
1005
|
-
const N = u.run();
|
|
1006
|
-
if (r || x || ($ ? N.some((V, X) => ue(V, R[X])) : ue(N, R))) {
|
|
1007
|
-
p && p();
|
|
1008
|
-
const V = et;
|
|
1009
|
-
et = u;
|
|
1010
|
-
try {
|
|
1011
|
-
const X = [
|
|
1012
|
-
N,
|
|
1013
|
-
// pass undefined as the old value when it's changed for the first time
|
|
1014
|
-
R === qt ? void 0 : $ && R[0] === qt ? [] : R,
|
|
1015
|
-
v
|
|
1016
|
-
];
|
|
1017
|
-
R = N, c ? c(t, 3, X) : (
|
|
1018
|
-
// @ts-expect-error
|
|
1019
|
-
t(...X)
|
|
1020
|
-
);
|
|
1021
|
-
} finally {
|
|
1022
|
-
et = V;
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
} else
|
|
1026
|
-
u.run();
|
|
1027
|
-
};
|
|
1028
|
-
return l && l(L), u = new mr(d), u.scheduler = o ? () => o(L, !1) : L, v = (T) => To(T, !1, u), p = u.onStop = () => {
|
|
1029
|
-
const T = Zt.get(u);
|
|
1030
|
-
if (T) {
|
|
1031
|
-
if (c)
|
|
1032
|
-
c(T, 4);
|
|
1033
|
-
else
|
|
1034
|
-
for (const N of T) N();
|
|
1035
|
-
Zt.delete(u);
|
|
1036
|
-
}
|
|
1037
|
-
}, t ? n ? L(!0) : R = u.run() : o ? o(L.bind(null, !0), !0) : u.run(), I.pause = u.pause.bind(u), I.resume = u.resume.bind(u), I.stop = I, I;
|
|
1038
|
-
}
|
|
1039
|
-
function ke(e, t = 1 / 0, s) {
|
|
1040
|
-
if (t <= 0 || !J(e) || e.__v_skip || (s = s || /* @__PURE__ */ new Map(), (s.get(e) || 0) >= t))
|
|
1041
|
-
return e;
|
|
1042
|
-
if (s.set(e, t), t--, ee(e))
|
|
1043
|
-
ke(e.value, t, s);
|
|
1044
|
-
else if (O(e))
|
|
1045
|
-
for (let n = 0; n < e.length; n++)
|
|
1046
|
-
ke(e[n], t, s);
|
|
1047
|
-
else if (or(e) || ut(e))
|
|
1048
|
-
e.forEach((n) => {
|
|
1049
|
-
ke(n, t, s);
|
|
1050
|
-
});
|
|
1051
|
-
else if (ar(e)) {
|
|
1052
|
-
for (const n in e)
|
|
1053
|
-
ke(e[n], t, s);
|
|
1054
|
-
for (const n of Object.getOwnPropertySymbols(e))
|
|
1055
|
-
Object.prototype.propertyIsEnumerable.call(e, n) && ke(e[n], t, s);
|
|
1056
|
-
}
|
|
1057
|
-
return e;
|
|
1058
|
-
}
|
|
1059
|
-
/**
|
|
1060
|
-
* @vue/runtime-core v3.5.22
|
|
1061
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1062
|
-
* @license MIT
|
|
1063
|
-
**/
|
|
1064
|
-
function jt(e, t, s, n) {
|
|
1065
|
-
try {
|
|
1066
|
-
return n ? e(...n) : e();
|
|
1067
|
-
} catch (r) {
|
|
1068
|
-
ms(r, t, s);
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
function Pe(e, t, s, n) {
|
|
1072
|
-
if (F(e)) {
|
|
1073
|
-
const r = jt(e, t, s, n);
|
|
1074
|
-
return r && lr(r) && r.catch((i) => {
|
|
1075
|
-
ms(i, t, s);
|
|
1076
|
-
}), r;
|
|
1077
|
-
}
|
|
1078
|
-
if (O(e)) {
|
|
1079
|
-
const r = [];
|
|
1080
|
-
for (let i = 0; i < e.length; i++)
|
|
1081
|
-
r.push(Pe(e[i], t, s, n));
|
|
1082
|
-
return r;
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
function ms(e, t, s, n = !0) {
|
|
1086
|
-
const r = t ? t.vnode : null, { errorHandler: i, throwUnhandledErrorInProduction: o } = t && t.appContext.config || H;
|
|
1087
|
-
if (t) {
|
|
1088
|
-
let l = t.parent;
|
|
1089
|
-
const c = t.proxy, h = `https://vuejs.org/error-reference/#runtime-${s}`;
|
|
1090
|
-
for (; l; ) {
|
|
1091
|
-
const u = l.ec;
|
|
1092
|
-
if (u) {
|
|
1093
|
-
for (let d = 0; d < u.length; d++)
|
|
1094
|
-
if (u[d](e, c, h) === !1)
|
|
1095
|
-
return;
|
|
1096
|
-
}
|
|
1097
|
-
l = l.parent;
|
|
1098
|
-
}
|
|
1099
|
-
if (i) {
|
|
1100
|
-
De(), jt(i, null, 10, [
|
|
1101
|
-
e,
|
|
1102
|
-
c,
|
|
1103
|
-
h
|
|
1104
|
-
]), je();
|
|
1105
|
-
return;
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
Ao(e, s, r, n, o);
|
|
1109
|
-
}
|
|
1110
|
-
function Ao(e, t, s, n = !0, r = !1) {
|
|
1111
|
-
if (r)
|
|
1112
|
-
throw e;
|
|
1113
|
-
}
|
|
1114
|
-
const ie = [];
|
|
1115
|
-
let we = -1;
|
|
1116
|
-
const ht = [];
|
|
1117
|
-
let Ue = null, lt = 0;
|
|
1118
|
-
const Mr = /* @__PURE__ */ Promise.resolve();
|
|
1119
|
-
let es = null;
|
|
1120
|
-
function Gt(e) {
|
|
1121
|
-
const t = es || Mr;
|
|
1122
|
-
return e ? t.then(this ? e.bind(this) : e) : t;
|
|
1123
|
-
}
|
|
1124
|
-
function Po(e) {
|
|
1125
|
-
let t = we + 1, s = ie.length;
|
|
1126
|
-
for (; t < s; ) {
|
|
1127
|
-
const n = t + s >>> 1, r = ie[n], i = Rt(r);
|
|
1128
|
-
i < e || i === e && r.flags & 2 ? t = n + 1 : s = n;
|
|
1129
|
-
}
|
|
1130
|
-
return t;
|
|
1131
|
-
}
|
|
1132
|
-
function cn(e) {
|
|
1133
|
-
if (!(e.flags & 1)) {
|
|
1134
|
-
const t = Rt(e), s = ie[ie.length - 1];
|
|
1135
|
-
!s || // fast path when the job id is larger than the tail
|
|
1136
|
-
!(e.flags & 2) && t >= Rt(s) ? ie.push(e) : ie.splice(Po(t), 0, e), e.flags |= 1, Or();
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
function Or() {
|
|
1140
|
-
es || (es = Mr.then(Nr));
|
|
1141
|
-
}
|
|
1142
|
-
function Io(e) {
|
|
1143
|
-
O(e) ? ht.push(...e) : Ue && e.id === -1 ? Ue.splice(lt + 1, 0, e) : e.flags & 1 || (ht.push(e), e.flags |= 1), Or();
|
|
1144
|
-
}
|
|
1145
|
-
function Mn(e, t, s = we + 1) {
|
|
1146
|
-
for (; s < ie.length; s++) {
|
|
1147
|
-
const n = ie[s];
|
|
1148
|
-
if (n && n.flags & 2) {
|
|
1149
|
-
if (e && n.id !== e.uid)
|
|
1150
|
-
continue;
|
|
1151
|
-
ie.splice(s, 1), s--, n.flags & 4 && (n.flags &= -2), n(), n.flags & 4 || (n.flags &= -2);
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
function Fr(e) {
|
|
1156
|
-
if (ht.length) {
|
|
1157
|
-
const t = [...new Set(ht)].sort(
|
|
1158
|
-
(s, n) => Rt(s) - Rt(n)
|
|
1159
|
-
);
|
|
1160
|
-
if (ht.length = 0, Ue) {
|
|
1161
|
-
Ue.push(...t);
|
|
1162
|
-
return;
|
|
1163
|
-
}
|
|
1164
|
-
for (Ue = t, lt = 0; lt < Ue.length; lt++) {
|
|
1165
|
-
const s = Ue[lt];
|
|
1166
|
-
s.flags & 4 && (s.flags &= -2), s.flags & 8 || s(), s.flags &= -2;
|
|
1167
|
-
}
|
|
1168
|
-
Ue = null, lt = 0;
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
|
-
const Rt = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
1172
|
-
function Nr(e) {
|
|
1173
|
-
try {
|
|
1174
|
-
for (we = 0; we < ie.length; we++) {
|
|
1175
|
-
const t = ie[we];
|
|
1176
|
-
t && !(t.flags & 8) && (t.flags & 4 && (t.flags &= -2), jt(
|
|
1177
|
-
t,
|
|
1178
|
-
t.i,
|
|
1179
|
-
t.i ? 15 : 14
|
|
1180
|
-
), t.flags & 4 || (t.flags &= -2));
|
|
1181
|
-
}
|
|
1182
|
-
} finally {
|
|
1183
|
-
for (; we < ie.length; we++) {
|
|
1184
|
-
const t = ie[we];
|
|
1185
|
-
t && (t.flags &= -2);
|
|
1186
|
-
}
|
|
1187
|
-
we = -1, ie.length = 0, Fr(), es = null, (ie.length || ht.length) && Nr();
|
|
1188
|
-
}
|
|
1189
|
-
}
|
|
1190
|
-
let $e = null, Rr = null;
|
|
1191
|
-
function ts(e) {
|
|
1192
|
-
const t = $e;
|
|
1193
|
-
return $e = e, Rr = e && e.type.__scopeId || null, t;
|
|
1194
|
-
}
|
|
1195
|
-
function Mo(e, t = $e, s) {
|
|
1196
|
-
if (!t || e._n)
|
|
1197
|
-
return e;
|
|
1198
|
-
const n = (...r) => {
|
|
1199
|
-
n._d && kn(-1);
|
|
1200
|
-
const i = ts(t);
|
|
1201
|
-
let o;
|
|
1202
|
-
try {
|
|
1203
|
-
o = e(...r);
|
|
1204
|
-
} finally {
|
|
1205
|
-
ts(i), n._d && kn(1);
|
|
1206
|
-
}
|
|
1207
|
-
return o;
|
|
1208
|
-
};
|
|
1209
|
-
return n._n = !0, n._c = !0, n._d = !0, n;
|
|
1210
|
-
}
|
|
1211
|
-
function Qe(e, t, s, n) {
|
|
1212
|
-
const r = e.dirs, i = t && t.dirs;
|
|
1213
|
-
for (let o = 0; o < r.length; o++) {
|
|
1214
|
-
const l = r[o];
|
|
1215
|
-
i && (l.oldValue = i[o].value);
|
|
1216
|
-
let c = l.dir[n];
|
|
1217
|
-
c && (De(), Pe(c, s, 8, [
|
|
1218
|
-
e.el,
|
|
1219
|
-
l,
|
|
1220
|
-
e,
|
|
1221
|
-
t
|
|
1222
|
-
]), je());
|
|
1223
|
-
}
|
|
1224
|
-
}
|
|
1225
|
-
const Oo = Symbol("_vte"), Fo = (e) => e.__isTeleport, No = Symbol("_leaveCb");
|
|
1226
|
-
function an(e, t) {
|
|
1227
|
-
e.shapeFlag & 6 && e.component ? (e.transition = t, an(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
1228
|
-
}
|
|
1229
|
-
// @__NO_SIDE_EFFECTS__
|
|
1230
|
-
function Lr(e, t) {
|
|
1231
|
-
return F(e) ? (
|
|
1232
|
-
// #8236: extend call and options.name access are considered side-effects
|
|
1233
|
-
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
1234
|
-
te({ name: e.name }, t, { setup: e })
|
|
1235
|
-
) : e;
|
|
1236
|
-
}
|
|
1237
|
-
function Dr(e) {
|
|
1238
|
-
e.ids = [e.ids[0] + e.ids[2]++ + "-", 0, 0];
|
|
1239
|
-
}
|
|
1240
|
-
function Ro(e) {
|
|
1241
|
-
const t = mn(), s = Jt(null);
|
|
1242
|
-
if (t) {
|
|
1243
|
-
const r = t.refs === H ? t.refs = {} : t.refs;
|
|
1244
|
-
Object.defineProperty(r, e, {
|
|
1245
|
-
enumerable: !0,
|
|
1246
|
-
get: () => s.value,
|
|
1247
|
-
set: (i) => s.value = i
|
|
1248
|
-
});
|
|
1249
|
-
}
|
|
1250
|
-
return s;
|
|
1251
|
-
}
|
|
1252
|
-
const ss = /* @__PURE__ */ new WeakMap();
|
|
1253
|
-
function At(e, t, s, n, r = !1) {
|
|
1254
|
-
if (O(e)) {
|
|
1255
|
-
e.forEach(
|
|
1256
|
-
(x, $) => At(
|
|
1257
|
-
x,
|
|
1258
|
-
t && (O(t) ? t[$] : t),
|
|
1259
|
-
s,
|
|
1260
|
-
n,
|
|
1261
|
-
r
|
|
1262
|
-
)
|
|
1263
|
-
);
|
|
1264
|
-
return;
|
|
1265
|
-
}
|
|
1266
|
-
if (Pt(n) && !r) {
|
|
1267
|
-
n.shapeFlag & 512 && n.type.__asyncResolved && n.component.subTree.component && At(e, t, s, n.component.subTree);
|
|
1268
|
-
return;
|
|
1269
|
-
}
|
|
1270
|
-
const i = n.shapeFlag & 4 ? gn(n.component) : n.el, o = r ? null : i, { i: l, r: c } = e, h = t && t.r, u = l.refs === H ? l.refs = {} : l.refs, d = l.setupState, p = j(d), v = d === H ? ir : (x) => B(p, x);
|
|
1271
|
-
if (h != null && h !== c) {
|
|
1272
|
-
if (On(t), Q(h))
|
|
1273
|
-
u[h] = null, v(h) && (d[h] = null);
|
|
1274
|
-
else if (ee(h)) {
|
|
1275
|
-
h.value = null;
|
|
1276
|
-
const x = t;
|
|
1277
|
-
x.k && (u[x.k] = null);
|
|
1278
|
-
}
|
|
1279
|
-
}
|
|
1280
|
-
if (F(c))
|
|
1281
|
-
jt(c, l, 12, [o, u]);
|
|
1282
|
-
else {
|
|
1283
|
-
const x = Q(c), $ = ee(c);
|
|
1284
|
-
if (x || $) {
|
|
1285
|
-
const U = () => {
|
|
1286
|
-
if (e.f) {
|
|
1287
|
-
const I = x ? v(c) ? d[c] : u[c] : c.value;
|
|
1288
|
-
if (r)
|
|
1289
|
-
O(I) && Xs(I, i);
|
|
1290
|
-
else if (O(I))
|
|
1291
|
-
I.includes(i) || I.push(i);
|
|
1292
|
-
else if (x)
|
|
1293
|
-
u[c] = [i], v(c) && (d[c] = u[c]);
|
|
1294
|
-
else {
|
|
1295
|
-
const R = [i];
|
|
1296
|
-
c.value = R, e.k && (u[e.k] = R);
|
|
1297
|
-
}
|
|
1298
|
-
} else x ? (u[c] = o, v(c) && (d[c] = o)) : $ && (c.value = o, e.k && (u[e.k] = o));
|
|
1299
|
-
};
|
|
1300
|
-
if (o) {
|
|
1301
|
-
const I = () => {
|
|
1302
|
-
U(), ss.delete(e);
|
|
1303
|
-
};
|
|
1304
|
-
I.id = -1, ss.set(e, I), he(I, s);
|
|
1305
|
-
} else
|
|
1306
|
-
On(e), U();
|
|
1307
|
-
}
|
|
1308
|
-
}
|
|
1309
|
-
}
|
|
1310
|
-
function On(e) {
|
|
1311
|
-
const t = ss.get(e);
|
|
1312
|
-
t && (t.flags |= 8, ss.delete(e));
|
|
1313
|
-
}
|
|
1314
|
-
fs().requestIdleCallback;
|
|
1315
|
-
fs().cancelIdleCallback;
|
|
1316
|
-
const Pt = (e) => !!e.type.__asyncLoader, jr = (e) => e.type.__isKeepAlive;
|
|
1317
|
-
function Lo(e, t) {
|
|
1318
|
-
Hr(e, "a", t);
|
|
1319
|
-
}
|
|
1320
|
-
function Do(e, t) {
|
|
1321
|
-
Hr(e, "da", t);
|
|
1322
|
-
}
|
|
1323
|
-
function Hr(e, t, s = oe) {
|
|
1324
|
-
const n = e.__wdc || (e.__wdc = () => {
|
|
1325
|
-
let r = s;
|
|
1326
|
-
for (; r; ) {
|
|
1327
|
-
if (r.isDeactivated)
|
|
1328
|
-
return;
|
|
1329
|
-
r = r.parent;
|
|
1330
|
-
}
|
|
1331
|
-
return e();
|
|
1332
|
-
});
|
|
1333
|
-
if (gs(t, n, s), s) {
|
|
1334
|
-
let r = s.parent;
|
|
1335
|
-
for (; r && r.parent; )
|
|
1336
|
-
jr(r.parent.vnode) && jo(n, t, s, r), r = r.parent;
|
|
1337
|
-
}
|
|
1338
|
-
}
|
|
1339
|
-
function jo(e, t, s, n) {
|
|
1340
|
-
const r = gs(
|
|
1341
|
-
t,
|
|
1342
|
-
e,
|
|
1343
|
-
n,
|
|
1344
|
-
!0
|
|
1345
|
-
/* prepend */
|
|
1346
|
-
);
|
|
1347
|
-
Br(() => {
|
|
1348
|
-
Xs(n[t], r);
|
|
1349
|
-
}, s);
|
|
1350
|
-
}
|
|
1351
|
-
function gs(e, t, s = oe, n = !1) {
|
|
1352
|
-
if (s) {
|
|
1353
|
-
const r = s[e] || (s[e] = []), i = t.__weh || (t.__weh = (...o) => {
|
|
1354
|
-
De();
|
|
1355
|
-
const l = Ht(s), c = Pe(t, s, e, o);
|
|
1356
|
-
return l(), je(), c;
|
|
1357
|
-
});
|
|
1358
|
-
return n ? r.unshift(i) : r.push(i), i;
|
|
1359
|
-
}
|
|
1360
|
-
}
|
|
1361
|
-
const He = (e) => (t, s = oe) => {
|
|
1362
|
-
(!Dt || e === "sp") && gs(e, (...n) => t(...n), s);
|
|
1363
|
-
}, Ur = He("bm"), un = He("m"), Ho = He(
|
|
1364
|
-
"bu"
|
|
1365
|
-
), Uo = He("u"), Vr = He(
|
|
1366
|
-
"bum"
|
|
1367
|
-
), Br = He("um"), Vo = He(
|
|
1368
|
-
"sp"
|
|
1369
|
-
), Bo = He("rtg"), ko = He("rtc");
|
|
1370
|
-
function Wo(e, t = oe) {
|
|
1371
|
-
gs("ec", e, t);
|
|
1372
|
-
}
|
|
1373
|
-
const Ko = Symbol.for("v-ndc");
|
|
1374
|
-
function Fn(e, t, s, n) {
|
|
1375
|
-
let r;
|
|
1376
|
-
const i = s, o = O(e);
|
|
1377
|
-
if (o || Q(e)) {
|
|
1378
|
-
const l = o && ft(e);
|
|
1379
|
-
let c = !1, h = !1;
|
|
1380
|
-
l && (c = !pe(e), h = We(e), e = ps(e)), r = new Array(e.length);
|
|
1381
|
-
for (let u = 0, d = e.length; u < d; u++)
|
|
1382
|
-
r[u] = t(
|
|
1383
|
-
c ? h ? Qt(Z(e[u])) : Z(e[u]) : e[u],
|
|
1384
|
-
u,
|
|
1385
|
-
void 0,
|
|
1386
|
-
i
|
|
1387
|
-
);
|
|
1388
|
-
} else if (typeof e == "number") {
|
|
1389
|
-
r = new Array(e);
|
|
1390
|
-
for (let l = 0; l < e; l++)
|
|
1391
|
-
r[l] = t(l + 1, l, void 0, i);
|
|
1392
|
-
} else if (J(e))
|
|
1393
|
-
if (e[Symbol.iterator])
|
|
1394
|
-
r = Array.from(
|
|
1395
|
-
e,
|
|
1396
|
-
(l, c) => t(l, c, void 0, i)
|
|
1397
|
-
);
|
|
1398
|
-
else {
|
|
1399
|
-
const l = Object.keys(e);
|
|
1400
|
-
r = new Array(l.length);
|
|
1401
|
-
for (let c = 0, h = l.length; c < h; c++) {
|
|
1402
|
-
const u = l[c];
|
|
1403
|
-
r[c] = t(e[u], u, c, i);
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
else
|
|
1407
|
-
r = [];
|
|
1408
|
-
return r;
|
|
1409
|
-
}
|
|
1410
|
-
const Us = (e) => e ? hi(e) ? gn(e) : Us(e.parent) : null, It = (
|
|
1411
|
-
// Move PURE marker to new line to workaround compiler discarding it
|
|
1412
|
-
// due to type annotation
|
|
1413
|
-
/* @__PURE__ */ te(/* @__PURE__ */ Object.create(null), {
|
|
1414
|
-
$: (e) => e,
|
|
1415
|
-
$el: (e) => e.vnode.el,
|
|
1416
|
-
$data: (e) => e.data,
|
|
1417
|
-
$props: (e) => e.props,
|
|
1418
|
-
$attrs: (e) => e.attrs,
|
|
1419
|
-
$slots: (e) => e.slots,
|
|
1420
|
-
$refs: (e) => e.refs,
|
|
1421
|
-
$parent: (e) => Us(e.parent),
|
|
1422
|
-
$root: (e) => Us(e.root),
|
|
1423
|
-
$host: (e) => e.ce,
|
|
1424
|
-
$emit: (e) => e.emit,
|
|
1425
|
-
$options: (e) => Wr(e),
|
|
1426
|
-
$forceUpdate: (e) => e.f || (e.f = () => {
|
|
1427
|
-
cn(e.update);
|
|
1428
|
-
}),
|
|
1429
|
-
$nextTick: (e) => e.n || (e.n = Gt.bind(e.proxy)),
|
|
1430
|
-
$watch: (e) => dl.bind(e)
|
|
1431
|
-
})
|
|
1432
|
-
), As = (e, t) => e !== H && !e.__isScriptSetup && B(e, t), qo = {
|
|
1433
|
-
get({ _: e }, t) {
|
|
1434
|
-
if (t === "__v_skip")
|
|
1435
|
-
return !0;
|
|
1436
|
-
const { ctx: s, setupState: n, data: r, props: i, accessCache: o, type: l, appContext: c } = e;
|
|
1437
|
-
let h;
|
|
1438
|
-
if (t[0] !== "$") {
|
|
1439
|
-
const v = o[t];
|
|
1440
|
-
if (v !== void 0)
|
|
1441
|
-
switch (v) {
|
|
1442
|
-
case 1:
|
|
1443
|
-
return n[t];
|
|
1444
|
-
case 2:
|
|
1445
|
-
return r[t];
|
|
1446
|
-
case 4:
|
|
1447
|
-
return s[t];
|
|
1448
|
-
case 3:
|
|
1449
|
-
return i[t];
|
|
1450
|
-
}
|
|
1451
|
-
else {
|
|
1452
|
-
if (As(n, t))
|
|
1453
|
-
return o[t] = 1, n[t];
|
|
1454
|
-
if (r !== H && B(r, t))
|
|
1455
|
-
return o[t] = 2, r[t];
|
|
1456
|
-
if (
|
|
1457
|
-
// only cache other properties when instance has declared (thus stable)
|
|
1458
|
-
// props
|
|
1459
|
-
(h = e.propsOptions[0]) && B(h, t)
|
|
1460
|
-
)
|
|
1461
|
-
return o[t] = 3, i[t];
|
|
1462
|
-
if (s !== H && B(s, t))
|
|
1463
|
-
return o[t] = 4, s[t];
|
|
1464
|
-
Vs && (o[t] = 0);
|
|
1465
|
-
}
|
|
1466
|
-
}
|
|
1467
|
-
const u = It[t];
|
|
1468
|
-
let d, p;
|
|
1469
|
-
if (u)
|
|
1470
|
-
return t === "$attrs" && se(e.attrs, "get", ""), u(e);
|
|
1471
|
-
if (
|
|
1472
|
-
// css module (injected by vue-loader)
|
|
1473
|
-
(d = l.__cssModules) && (d = d[t])
|
|
1474
|
-
)
|
|
1475
|
-
return d;
|
|
1476
|
-
if (s !== H && B(s, t))
|
|
1477
|
-
return o[t] = 4, s[t];
|
|
1478
|
-
if (
|
|
1479
|
-
// global properties
|
|
1480
|
-
p = c.config.globalProperties, B(p, t)
|
|
1481
|
-
)
|
|
1482
|
-
return p[t];
|
|
1483
|
-
},
|
|
1484
|
-
set({ _: e }, t, s) {
|
|
1485
|
-
const { data: n, setupState: r, ctx: i } = e;
|
|
1486
|
-
return As(r, t) ? (r[t] = s, !0) : n !== H && B(n, t) ? (n[t] = s, !0) : B(e.props, t) || t[0] === "$" && t.slice(1) in e ? !1 : (i[t] = s, !0);
|
|
1487
|
-
},
|
|
1488
|
-
has({
|
|
1489
|
-
_: { data: e, setupState: t, accessCache: s, ctx: n, appContext: r, propsOptions: i, type: o }
|
|
1490
|
-
}, l) {
|
|
1491
|
-
let c, h;
|
|
1492
|
-
return !!(s[l] || e !== H && l[0] !== "$" && B(e, l) || As(t, l) || (c = i[0]) && B(c, l) || B(n, l) || B(It, l) || B(r.config.globalProperties, l) || (h = o.__cssModules) && h[l]);
|
|
1493
|
-
},
|
|
1494
|
-
defineProperty(e, t, s) {
|
|
1495
|
-
return s.get != null ? e._.accessCache[t] = 0 : B(s, "value") && this.set(e, t, s.value, null), Reflect.defineProperty(e, t, s);
|
|
1496
|
-
}
|
|
1497
|
-
};
|
|
1498
|
-
function ns(e) {
|
|
1499
|
-
return O(e) ? e.reduce(
|
|
1500
|
-
(t, s) => (t[s] = null, t),
|
|
1501
|
-
{}
|
|
1502
|
-
) : e;
|
|
1503
|
-
}
|
|
1504
|
-
function Nn(e, t) {
|
|
1505
|
-
return !e || !t ? e || t : O(e) && O(t) ? e.concat(t) : te({}, ns(e), ns(t));
|
|
1506
|
-
}
|
|
1507
|
-
let Vs = !0;
|
|
1508
|
-
function zo(e) {
|
|
1509
|
-
const t = Wr(e), s = e.proxy, n = e.ctx;
|
|
1510
|
-
Vs = !1, t.beforeCreate && Rn(t.beforeCreate, e, "bc");
|
|
1511
|
-
const {
|
|
1512
|
-
// state
|
|
1513
|
-
data: r,
|
|
1514
|
-
computed: i,
|
|
1515
|
-
methods: o,
|
|
1516
|
-
watch: l,
|
|
1517
|
-
provide: c,
|
|
1518
|
-
inject: h,
|
|
1519
|
-
// lifecycle
|
|
1520
|
-
created: u,
|
|
1521
|
-
beforeMount: d,
|
|
1522
|
-
mounted: p,
|
|
1523
|
-
beforeUpdate: v,
|
|
1524
|
-
updated: x,
|
|
1525
|
-
activated: $,
|
|
1526
|
-
deactivated: U,
|
|
1527
|
-
beforeDestroy: I,
|
|
1528
|
-
beforeUnmount: R,
|
|
1529
|
-
destroyed: L,
|
|
1530
|
-
unmounted: T,
|
|
1531
|
-
render: N,
|
|
1532
|
-
renderTracked: V,
|
|
1533
|
-
renderTriggered: X,
|
|
1534
|
-
errorCaptured: be,
|
|
1535
|
-
serverPrefetch: Ge,
|
|
1536
|
-
// public API
|
|
1537
|
-
expose: Me,
|
|
1538
|
-
inheritAttrs: rt,
|
|
1539
|
-
// assets
|
|
1540
|
-
components: it,
|
|
1541
|
-
directives: Vt,
|
|
1542
|
-
filters: ys
|
|
1543
|
-
} = t;
|
|
1544
|
-
if (h && Jo(h, n, null), o)
|
|
1545
|
-
for (const G in o) {
|
|
1546
|
-
const W = o[G];
|
|
1547
|
-
F(W) && (n[G] = W.bind(s));
|
|
1548
|
-
}
|
|
1549
|
-
if (r) {
|
|
1550
|
-
const G = r.call(s, s);
|
|
1551
|
-
J(G) && (e.data = rn(G));
|
|
1552
|
-
}
|
|
1553
|
-
if (Vs = !0, i)
|
|
1554
|
-
for (const G in i) {
|
|
1555
|
-
const W = i[G], Ye = F(W) ? W.bind(s, s) : F(W.get) ? W.get.bind(s, s) : Ae, Bt = !F(W) && F(W.set) ? W.set.bind(s) : Ae, Xe = pi({
|
|
1556
|
-
get: Ye,
|
|
1557
|
-
set: Bt
|
|
1558
|
-
});
|
|
1559
|
-
Object.defineProperty(n, G, {
|
|
1560
|
-
enumerable: !0,
|
|
1561
|
-
configurable: !0,
|
|
1562
|
-
get: () => Xe.value,
|
|
1563
|
-
set: (ye) => Xe.value = ye
|
|
1564
|
-
});
|
|
1565
|
-
}
|
|
1566
|
-
if (l)
|
|
1567
|
-
for (const G in l)
|
|
1568
|
-
kr(l[G], n, s, G);
|
|
1569
|
-
if (c) {
|
|
1570
|
-
const G = F(c) ? c.call(s) : c;
|
|
1571
|
-
Reflect.ownKeys(G).forEach((W) => {
|
|
1572
|
-
qr(W, G[W]);
|
|
1573
|
-
});
|
|
1574
|
-
}
|
|
1575
|
-
u && Rn(u, e, "c");
|
|
1576
|
-
function ne(G, W) {
|
|
1577
|
-
O(W) ? W.forEach((Ye) => G(Ye.bind(s))) : W && G(W.bind(s));
|
|
1578
|
-
}
|
|
1579
|
-
if (ne(Ur, d), ne(un, p), ne(Ho, v), ne(Uo, x), ne(Lo, $), ne(Do, U), ne(Wo, be), ne(ko, V), ne(Bo, X), ne(Vr, R), ne(Br, T), ne(Vo, Ge), O(Me))
|
|
1580
|
-
if (Me.length) {
|
|
1581
|
-
const G = e.exposed || (e.exposed = {});
|
|
1582
|
-
Me.forEach((W) => {
|
|
1583
|
-
Object.defineProperty(G, W, {
|
|
1584
|
-
get: () => s[W],
|
|
1585
|
-
set: (Ye) => s[W] = Ye,
|
|
1586
|
-
enumerable: !0
|
|
1587
|
-
});
|
|
1588
|
-
});
|
|
1589
|
-
} else e.exposed || (e.exposed = {});
|
|
1590
|
-
N && e.render === Ae && (e.render = N), rt != null && (e.inheritAttrs = rt), it && (e.components = it), Vt && (e.directives = Vt), Ge && Dr(e);
|
|
1591
|
-
}
|
|
1592
|
-
function Jo(e, t, s = Ae) {
|
|
1593
|
-
O(e) && (e = Bs(e));
|
|
1594
|
-
for (const n in e) {
|
|
1595
|
-
const r = e[n];
|
|
1596
|
-
let i;
|
|
1597
|
-
J(r) ? "default" in r ? i = Mt(
|
|
1598
|
-
r.from || n,
|
|
1599
|
-
r.default,
|
|
1600
|
-
!0
|
|
1601
|
-
) : i = Mt(r.from || n) : i = Mt(r), ee(i) ? Object.defineProperty(t, n, {
|
|
1602
|
-
enumerable: !0,
|
|
1603
|
-
configurable: !0,
|
|
1604
|
-
get: () => i.value,
|
|
1605
|
-
set: (o) => i.value = o
|
|
1606
|
-
}) : t[n] = i;
|
|
1607
|
-
}
|
|
1608
|
-
}
|
|
1609
|
-
function Rn(e, t, s) {
|
|
1610
|
-
Pe(
|
|
1611
|
-
O(e) ? e.map((n) => n.bind(t.proxy)) : e.bind(t.proxy),
|
|
1612
|
-
t,
|
|
1613
|
-
s
|
|
1614
|
-
);
|
|
1615
|
-
}
|
|
1616
|
-
function kr(e, t, s, n) {
|
|
1617
|
-
let r = n.includes(".") ? ni(s, n) : () => s[n];
|
|
1618
|
-
if (Q(e)) {
|
|
1619
|
-
const i = t[e];
|
|
1620
|
-
F(i) && pt(r, i);
|
|
1621
|
-
} else if (F(e))
|
|
1622
|
-
pt(r, e.bind(s));
|
|
1623
|
-
else if (J(e))
|
|
1624
|
-
if (O(e))
|
|
1625
|
-
e.forEach((i) => kr(i, t, s, n));
|
|
1626
|
-
else {
|
|
1627
|
-
const i = F(e.handler) ? e.handler.bind(s) : t[e.handler];
|
|
1628
|
-
F(i) && pt(r, i, e);
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1631
|
-
function Wr(e) {
|
|
1632
|
-
const t = e.type, { mixins: s, extends: n } = t, {
|
|
1633
|
-
mixins: r,
|
|
1634
|
-
optionsCache: i,
|
|
1635
|
-
config: { optionMergeStrategies: o }
|
|
1636
|
-
} = e.appContext, l = i.get(t);
|
|
1637
|
-
let c;
|
|
1638
|
-
return l ? c = l : !r.length && !s && !n ? c = t : (c = {}, r.length && r.forEach(
|
|
1639
|
-
(h) => rs(c, h, o, !0)
|
|
1640
|
-
), rs(c, t, o)), J(t) && i.set(t, c), c;
|
|
1641
|
-
}
|
|
1642
|
-
function rs(e, t, s, n = !1) {
|
|
1643
|
-
const { mixins: r, extends: i } = t;
|
|
1644
|
-
i && rs(e, i, s, !0), r && r.forEach(
|
|
1645
|
-
(o) => rs(e, o, s, !0)
|
|
1646
|
-
);
|
|
1647
|
-
for (const o in t)
|
|
1648
|
-
if (!(n && o === "expose")) {
|
|
1649
|
-
const l = Go[o] || s && s[o];
|
|
1650
|
-
e[o] = l ? l(e[o], t[o]) : t[o];
|
|
1651
|
-
}
|
|
1652
|
-
return e;
|
|
1653
|
-
}
|
|
1654
|
-
const Go = {
|
|
1655
|
-
data: Ln,
|
|
1656
|
-
props: Dn,
|
|
1657
|
-
emits: Dn,
|
|
1658
|
-
// objects
|
|
1659
|
-
methods: Et,
|
|
1660
|
-
computed: Et,
|
|
1661
|
-
// lifecycle
|
|
1662
|
-
beforeCreate: re,
|
|
1663
|
-
created: re,
|
|
1664
|
-
beforeMount: re,
|
|
1665
|
-
mounted: re,
|
|
1666
|
-
beforeUpdate: re,
|
|
1667
|
-
updated: re,
|
|
1668
|
-
beforeDestroy: re,
|
|
1669
|
-
beforeUnmount: re,
|
|
1670
|
-
destroyed: re,
|
|
1671
|
-
unmounted: re,
|
|
1672
|
-
activated: re,
|
|
1673
|
-
deactivated: re,
|
|
1674
|
-
errorCaptured: re,
|
|
1675
|
-
serverPrefetch: re,
|
|
1676
|
-
// assets
|
|
1677
|
-
components: Et,
|
|
1678
|
-
directives: Et,
|
|
1679
|
-
// watch
|
|
1680
|
-
watch: Xo,
|
|
1681
|
-
// provide / inject
|
|
1682
|
-
provide: Ln,
|
|
1683
|
-
inject: Yo
|
|
1684
|
-
};
|
|
1685
|
-
function Ln(e, t) {
|
|
1686
|
-
return t ? e ? function() {
|
|
1687
|
-
return te(
|
|
1688
|
-
F(e) ? e.call(this, this) : e,
|
|
1689
|
-
F(t) ? t.call(this, this) : t
|
|
1690
|
-
);
|
|
1691
|
-
} : t : e;
|
|
1692
|
-
}
|
|
1693
|
-
function Yo(e, t) {
|
|
1694
|
-
return Et(Bs(e), Bs(t));
|
|
1695
|
-
}
|
|
1696
|
-
function Bs(e) {
|
|
1697
|
-
if (O(e)) {
|
|
1698
|
-
const t = {};
|
|
1699
|
-
for (let s = 0; s < e.length; s++)
|
|
1700
|
-
t[e[s]] = e[s];
|
|
1701
|
-
return t;
|
|
1702
|
-
}
|
|
1703
|
-
return e;
|
|
1704
|
-
}
|
|
1705
|
-
function re(e, t) {
|
|
1706
|
-
return e ? [...new Set([].concat(e, t))] : t;
|
|
1707
|
-
}
|
|
1708
|
-
function Et(e, t) {
|
|
1709
|
-
return e ? te(/* @__PURE__ */ Object.create(null), e, t) : t;
|
|
1710
|
-
}
|
|
1711
|
-
function Dn(e, t) {
|
|
1712
|
-
return e ? O(e) && O(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : te(
|
|
1713
|
-
/* @__PURE__ */ Object.create(null),
|
|
1714
|
-
ns(e),
|
|
1715
|
-
ns(t ?? {})
|
|
1716
|
-
) : t;
|
|
1717
|
-
}
|
|
1718
|
-
function Xo(e, t) {
|
|
1719
|
-
if (!e) return t;
|
|
1720
|
-
if (!t) return e;
|
|
1721
|
-
const s = te(/* @__PURE__ */ Object.create(null), e);
|
|
1722
|
-
for (const n in t)
|
|
1723
|
-
s[n] = re(e[n], t[n]);
|
|
1724
|
-
return s;
|
|
1725
|
-
}
|
|
1726
|
-
function Kr() {
|
|
1727
|
-
return {
|
|
1728
|
-
app: null,
|
|
1729
|
-
config: {
|
|
1730
|
-
isNativeTag: ir,
|
|
1731
|
-
performance: !1,
|
|
1732
|
-
globalProperties: {},
|
|
1733
|
-
optionMergeStrategies: {},
|
|
1734
|
-
errorHandler: void 0,
|
|
1735
|
-
warnHandler: void 0,
|
|
1736
|
-
compilerOptions: {}
|
|
1737
|
-
},
|
|
1738
|
-
mixins: [],
|
|
1739
|
-
components: {},
|
|
1740
|
-
directives: {},
|
|
1741
|
-
provides: /* @__PURE__ */ Object.create(null),
|
|
1742
|
-
optionsCache: /* @__PURE__ */ new WeakMap(),
|
|
1743
|
-
propsCache: /* @__PURE__ */ new WeakMap(),
|
|
1744
|
-
emitsCache: /* @__PURE__ */ new WeakMap()
|
|
1745
|
-
};
|
|
1746
|
-
}
|
|
1747
|
-
let Qo = 0;
|
|
1748
|
-
function Zo(e, t) {
|
|
1749
|
-
return function(n, r = null) {
|
|
1750
|
-
F(n) || (n = te({}, n)), r != null && !J(r) && (r = null);
|
|
1751
|
-
const i = Kr(), o = /* @__PURE__ */ new WeakSet(), l = [];
|
|
1752
|
-
let c = !1;
|
|
1753
|
-
const h = i.app = {
|
|
1754
|
-
_uid: Qo++,
|
|
1755
|
-
_component: n,
|
|
1756
|
-
_props: r,
|
|
1757
|
-
_container: null,
|
|
1758
|
-
_context: i,
|
|
1759
|
-
_instance: null,
|
|
1760
|
-
version: Nl,
|
|
1761
|
-
get config() {
|
|
1762
|
-
return i.config;
|
|
1763
|
-
},
|
|
1764
|
-
set config(u) {
|
|
1765
|
-
},
|
|
1766
|
-
use(u, ...d) {
|
|
1767
|
-
return o.has(u) || (u && F(u.install) ? (o.add(u), u.install(h, ...d)) : F(u) && (o.add(u), u(h, ...d))), h;
|
|
1768
|
-
},
|
|
1769
|
-
mixin(u) {
|
|
1770
|
-
return i.mixins.includes(u) || i.mixins.push(u), h;
|
|
1771
|
-
},
|
|
1772
|
-
component(u, d) {
|
|
1773
|
-
return d ? (i.components[u] = d, h) : i.components[u];
|
|
1774
|
-
},
|
|
1775
|
-
directive(u, d) {
|
|
1776
|
-
return d ? (i.directives[u] = d, h) : i.directives[u];
|
|
1777
|
-
},
|
|
1778
|
-
mount(u, d, p) {
|
|
1779
|
-
if (!c) {
|
|
1780
|
-
const v = h._ceVNode || Re(n, r);
|
|
1781
|
-
return v.appContext = i, p === !0 ? p = "svg" : p === !1 && (p = void 0), e(v, u, p), c = !0, h._container = u, u.__vue_app__ = h, gn(v.component);
|
|
1782
|
-
}
|
|
1783
|
-
},
|
|
1784
|
-
onUnmount(u) {
|
|
1785
|
-
l.push(u);
|
|
1786
|
-
},
|
|
1787
|
-
unmount() {
|
|
1788
|
-
c && (Pe(
|
|
1789
|
-
l,
|
|
1790
|
-
h._instance,
|
|
1791
|
-
16
|
|
1792
|
-
), e(null, h._container), delete h._container.__vue_app__);
|
|
1793
|
-
},
|
|
1794
|
-
provide(u, d) {
|
|
1795
|
-
return i.provides[u] = d, h;
|
|
1796
|
-
},
|
|
1797
|
-
runWithContext(u) {
|
|
1798
|
-
const d = dt;
|
|
1799
|
-
dt = h;
|
|
1800
|
-
try {
|
|
1801
|
-
return u();
|
|
1802
|
-
} finally {
|
|
1803
|
-
dt = d;
|
|
1804
|
-
}
|
|
1805
|
-
}
|
|
1806
|
-
};
|
|
1807
|
-
return h;
|
|
1808
|
-
};
|
|
1809
|
-
}
|
|
1810
|
-
let dt = null;
|
|
1811
|
-
function qr(e, t) {
|
|
1812
|
-
if (oe) {
|
|
1813
|
-
let s = oe.provides;
|
|
1814
|
-
const n = oe.parent && oe.parent.provides;
|
|
1815
|
-
n === s && (s = oe.provides = Object.create(n)), s[e] = t;
|
|
1816
|
-
}
|
|
1817
|
-
}
|
|
1818
|
-
function Mt(e, t, s = !1) {
|
|
1819
|
-
const n = mn();
|
|
1820
|
-
if (n || dt) {
|
|
1821
|
-
let r = dt ? dt._context.provides : n ? n.parent == null || n.ce ? n.vnode.appContext && n.vnode.appContext.provides : n.parent.provides : void 0;
|
|
1822
|
-
if (r && e in r)
|
|
1823
|
-
return r[e];
|
|
1824
|
-
if (arguments.length > 1)
|
|
1825
|
-
return s && F(t) ? t.call(n && n.proxy) : t;
|
|
1826
|
-
}
|
|
1827
|
-
}
|
|
1828
|
-
const zr = {}, Jr = () => Object.create(zr), Gr = (e) => Object.getPrototypeOf(e) === zr;
|
|
1829
|
-
function el(e, t, s, n = !1) {
|
|
1830
|
-
const r = {}, i = Jr();
|
|
1831
|
-
e.propsDefaults = /* @__PURE__ */ Object.create(null), Yr(e, t, r, i);
|
|
1832
|
-
for (const o in e.propsOptions[0])
|
|
1833
|
-
o in r || (r[o] = void 0);
|
|
1834
|
-
s ? e.props = n ? r : vo(r) : e.type.props ? e.props = r : e.props = i, e.attrs = i;
|
|
1835
|
-
}
|
|
1836
|
-
function tl(e, t, s, n) {
|
|
1837
|
-
const {
|
|
1838
|
-
props: r,
|
|
1839
|
-
attrs: i,
|
|
1840
|
-
vnode: { patchFlag: o }
|
|
1841
|
-
} = e, l = j(r), [c] = e.propsOptions;
|
|
1842
|
-
let h = !1;
|
|
1843
|
-
if (
|
|
1844
|
-
// always force full diff in dev
|
|
1845
|
-
// - #1942 if hmr is enabled with sfc component
|
|
1846
|
-
// - vite#872 non-sfc component used by sfc component
|
|
1847
|
-
(n || o > 0) && !(o & 16)
|
|
1848
|
-
) {
|
|
1849
|
-
if (o & 8) {
|
|
1850
|
-
const u = e.vnode.dynamicProps;
|
|
1851
|
-
for (let d = 0; d < u.length; d++) {
|
|
1852
|
-
let p = u[d];
|
|
1853
|
-
if (_s(e.emitsOptions, p))
|
|
1854
|
-
continue;
|
|
1855
|
-
const v = t[p];
|
|
1856
|
-
if (c)
|
|
1857
|
-
if (B(i, p))
|
|
1858
|
-
v !== i[p] && (i[p] = v, h = !0);
|
|
1859
|
-
else {
|
|
1860
|
-
const x = Le(p);
|
|
1861
|
-
r[x] = ks(
|
|
1862
|
-
c,
|
|
1863
|
-
l,
|
|
1864
|
-
x,
|
|
1865
|
-
v,
|
|
1866
|
-
e,
|
|
1867
|
-
!1
|
|
1868
|
-
);
|
|
1869
|
-
}
|
|
1870
|
-
else
|
|
1871
|
-
v !== i[p] && (i[p] = v, h = !0);
|
|
1872
|
-
}
|
|
1873
|
-
}
|
|
1874
|
-
} else {
|
|
1875
|
-
Yr(e, t, r, i) && (h = !0);
|
|
1876
|
-
let u;
|
|
1877
|
-
for (const d in l)
|
|
1878
|
-
(!t || // for camelCase
|
|
1879
|
-
!B(t, d) && // it's possible the original props was passed in as kebab-case
|
|
1880
|
-
// and converted to camelCase (#955)
|
|
1881
|
-
((u = Je(d)) === d || !B(t, u))) && (c ? s && // for camelCase
|
|
1882
|
-
(s[d] !== void 0 || // for kebab-case
|
|
1883
|
-
s[u] !== void 0) && (r[d] = ks(
|
|
1884
|
-
c,
|
|
1885
|
-
l,
|
|
1886
|
-
d,
|
|
1887
|
-
void 0,
|
|
1888
|
-
e,
|
|
1889
|
-
!0
|
|
1890
|
-
)) : delete r[d]);
|
|
1891
|
-
if (i !== l)
|
|
1892
|
-
for (const d in i)
|
|
1893
|
-
(!t || !B(t, d)) && (delete i[d], h = !0);
|
|
1894
|
-
}
|
|
1895
|
-
h && Ne(e.attrs, "set", "");
|
|
1896
|
-
}
|
|
1897
|
-
function Yr(e, t, s, n) {
|
|
1898
|
-
const [r, i] = e.propsOptions;
|
|
1899
|
-
let o = !1, l;
|
|
1900
|
-
if (t)
|
|
1901
|
-
for (let c in t) {
|
|
1902
|
-
if (wt(c))
|
|
1903
|
-
continue;
|
|
1904
|
-
const h = t[c];
|
|
1905
|
-
let u;
|
|
1906
|
-
r && B(r, u = Le(c)) ? !i || !i.includes(u) ? s[u] = h : (l || (l = {}))[u] = h : _s(e.emitsOptions, c) || (!(c in n) || h !== n[c]) && (n[c] = h, o = !0);
|
|
1907
|
-
}
|
|
1908
|
-
if (i) {
|
|
1909
|
-
const c = j(s), h = l || H;
|
|
1910
|
-
for (let u = 0; u < i.length; u++) {
|
|
1911
|
-
const d = i[u];
|
|
1912
|
-
s[d] = ks(
|
|
1913
|
-
r,
|
|
1914
|
-
c,
|
|
1915
|
-
d,
|
|
1916
|
-
h[d],
|
|
1917
|
-
e,
|
|
1918
|
-
!B(h, d)
|
|
1919
|
-
);
|
|
1920
|
-
}
|
|
1921
|
-
}
|
|
1922
|
-
return o;
|
|
1923
|
-
}
|
|
1924
|
-
function ks(e, t, s, n, r, i) {
|
|
1925
|
-
const o = e[s];
|
|
1926
|
-
if (o != null) {
|
|
1927
|
-
const l = B(o, "default");
|
|
1928
|
-
if (l && n === void 0) {
|
|
1929
|
-
const c = o.default;
|
|
1930
|
-
if (o.type !== Function && !o.skipFactory && F(c)) {
|
|
1931
|
-
const { propsDefaults: h } = r;
|
|
1932
|
-
if (s in h)
|
|
1933
|
-
n = h[s];
|
|
1934
|
-
else {
|
|
1935
|
-
const u = Ht(r);
|
|
1936
|
-
n = h[s] = c.call(
|
|
1937
|
-
null,
|
|
1938
|
-
t
|
|
1939
|
-
), u();
|
|
1940
|
-
}
|
|
1941
|
-
} else
|
|
1942
|
-
n = c;
|
|
1943
|
-
r.ce && r.ce._setProp(s, n);
|
|
1944
|
-
}
|
|
1945
|
-
o[
|
|
1946
|
-
0
|
|
1947
|
-
/* shouldCast */
|
|
1948
|
-
] && (i && !l ? n = !1 : o[
|
|
1949
|
-
1
|
|
1950
|
-
/* shouldCastTrue */
|
|
1951
|
-
] && (n === "" || n === Je(s)) && (n = !0));
|
|
1952
|
-
}
|
|
1953
|
-
return n;
|
|
1954
|
-
}
|
|
1955
|
-
const sl = /* @__PURE__ */ new WeakMap();
|
|
1956
|
-
function Xr(e, t, s = !1) {
|
|
1957
|
-
const n = s ? sl : t.propsCache, r = n.get(e);
|
|
1958
|
-
if (r)
|
|
1959
|
-
return r;
|
|
1960
|
-
const i = e.props, o = {}, l = [];
|
|
1961
|
-
let c = !1;
|
|
1962
|
-
if (!F(e)) {
|
|
1963
|
-
const u = (d) => {
|
|
1964
|
-
c = !0;
|
|
1965
|
-
const [p, v] = Xr(d, t, !0);
|
|
1966
|
-
te(o, p), v && l.push(...v);
|
|
1967
|
-
};
|
|
1968
|
-
!s && t.mixins.length && t.mixins.forEach(u), e.extends && u(e.extends), e.mixins && e.mixins.forEach(u);
|
|
1969
|
-
}
|
|
1970
|
-
if (!i && !c)
|
|
1971
|
-
return J(e) && n.set(e, at), at;
|
|
1972
|
-
if (O(i))
|
|
1973
|
-
for (let u = 0; u < i.length; u++) {
|
|
1974
|
-
const d = Le(i[u]);
|
|
1975
|
-
jn(d) && (o[d] = H);
|
|
1976
|
-
}
|
|
1977
|
-
else if (i)
|
|
1978
|
-
for (const u in i) {
|
|
1979
|
-
const d = Le(u);
|
|
1980
|
-
if (jn(d)) {
|
|
1981
|
-
const p = i[u], v = o[d] = O(p) || F(p) ? { type: p } : te({}, p), x = v.type;
|
|
1982
|
-
let $ = !1, U = !0;
|
|
1983
|
-
if (O(x))
|
|
1984
|
-
for (let I = 0; I < x.length; ++I) {
|
|
1985
|
-
const R = x[I], L = F(R) && R.name;
|
|
1986
|
-
if (L === "Boolean") {
|
|
1987
|
-
$ = !0;
|
|
1988
|
-
break;
|
|
1989
|
-
} else L === "String" && (U = !1);
|
|
1990
|
-
}
|
|
1991
|
-
else
|
|
1992
|
-
$ = F(x) && x.name === "Boolean";
|
|
1993
|
-
v[
|
|
1994
|
-
0
|
|
1995
|
-
/* shouldCast */
|
|
1996
|
-
] = $, v[
|
|
1997
|
-
1
|
|
1998
|
-
/* shouldCastTrue */
|
|
1999
|
-
] = U, ($ || B(v, "default")) && l.push(d);
|
|
2000
|
-
}
|
|
2001
|
-
}
|
|
2002
|
-
const h = [o, l];
|
|
2003
|
-
return J(e) && n.set(e, h), h;
|
|
2004
|
-
}
|
|
2005
|
-
function jn(e) {
|
|
2006
|
-
return e[0] !== "$" && !wt(e);
|
|
2007
|
-
}
|
|
2008
|
-
const fn = (e) => e === "_" || e === "_ctx" || e === "$stable", hn = (e) => O(e) ? e.map(Te) : [Te(e)], nl = (e, t, s) => {
|
|
2009
|
-
if (t._n)
|
|
2010
|
-
return t;
|
|
2011
|
-
const n = Mo((...r) => hn(t(...r)), s);
|
|
2012
|
-
return n._c = !1, n;
|
|
2013
|
-
}, Qr = (e, t, s) => {
|
|
2014
|
-
const n = e._ctx;
|
|
2015
|
-
for (const r in e) {
|
|
2016
|
-
if (fn(r)) continue;
|
|
2017
|
-
const i = e[r];
|
|
2018
|
-
if (F(i))
|
|
2019
|
-
t[r] = nl(r, i, n);
|
|
2020
|
-
else if (i != null) {
|
|
2021
|
-
const o = hn(i);
|
|
2022
|
-
t[r] = () => o;
|
|
2023
|
-
}
|
|
2024
|
-
}
|
|
2025
|
-
}, Zr = (e, t) => {
|
|
2026
|
-
const s = hn(t);
|
|
2027
|
-
e.slots.default = () => s;
|
|
2028
|
-
}, ei = (e, t, s) => {
|
|
2029
|
-
for (const n in t)
|
|
2030
|
-
(s || !fn(n)) && (e[n] = t[n]);
|
|
2031
|
-
}, rl = (e, t, s) => {
|
|
2032
|
-
const n = e.slots = Jr();
|
|
2033
|
-
if (e.vnode.shapeFlag & 32) {
|
|
2034
|
-
const r = t._;
|
|
2035
|
-
r ? (ei(n, t, s), s && fr(n, "_", r, !0)) : Qr(t, n);
|
|
2036
|
-
} else t && Zr(e, t);
|
|
2037
|
-
}, il = (e, t, s) => {
|
|
2038
|
-
const { vnode: n, slots: r } = e;
|
|
2039
|
-
let i = !0, o = H;
|
|
2040
|
-
if (n.shapeFlag & 32) {
|
|
2041
|
-
const l = t._;
|
|
2042
|
-
l ? s && l === 1 ? i = !1 : ei(r, t, s) : (i = !t.$stable, Qr(t, r)), o = t;
|
|
2043
|
-
} else t && (Zr(e, t), o = { default: 1 });
|
|
2044
|
-
if (i)
|
|
2045
|
-
for (const l in r)
|
|
2046
|
-
!fn(l) && o[l] == null && delete r[l];
|
|
2047
|
-
}, he = yl;
|
|
2048
|
-
function ol(e) {
|
|
2049
|
-
return ll(e);
|
|
2050
|
-
}
|
|
2051
|
-
function ll(e, t) {
|
|
2052
|
-
const s = fs();
|
|
2053
|
-
s.__VUE__ = !0;
|
|
2054
|
-
const {
|
|
2055
|
-
insert: n,
|
|
2056
|
-
remove: r,
|
|
2057
|
-
patchProp: i,
|
|
2058
|
-
createElement: o,
|
|
2059
|
-
createText: l,
|
|
2060
|
-
createComment: c,
|
|
2061
|
-
setText: h,
|
|
2062
|
-
setElementText: u,
|
|
2063
|
-
parentNode: d,
|
|
2064
|
-
nextSibling: p,
|
|
2065
|
-
setScopeId: v = Ae,
|
|
2066
|
-
insertStaticContent: x
|
|
2067
|
-
} = e, $ = (a, f, m, b = null, g = null, _ = null, S = void 0, E = null, C = !!f.dynamicChildren) => {
|
|
2068
|
-
if (a === f)
|
|
2069
|
-
return;
|
|
2070
|
-
a && !Ct(a, f) && (b = kt(a), ye(a, g, _, !0), a = null), f.patchFlag === -2 && (C = !1, f.dynamicChildren = null);
|
|
2071
|
-
const { type: y, ref: P, shapeFlag: w } = f;
|
|
2072
|
-
switch (y) {
|
|
2073
|
-
case vs:
|
|
2074
|
-
U(a, f, m, b);
|
|
2075
|
-
break;
|
|
2076
|
-
case Ke:
|
|
2077
|
-
I(a, f, m, b);
|
|
2078
|
-
break;
|
|
2079
|
-
case Is:
|
|
2080
|
-
a == null && R(f, m, b, S);
|
|
2081
|
-
break;
|
|
2082
|
-
case ge:
|
|
2083
|
-
it(
|
|
2084
|
-
a,
|
|
2085
|
-
f,
|
|
2086
|
-
m,
|
|
2087
|
-
b,
|
|
2088
|
-
g,
|
|
2089
|
-
_,
|
|
2090
|
-
S,
|
|
2091
|
-
E,
|
|
2092
|
-
C
|
|
2093
|
-
);
|
|
2094
|
-
break;
|
|
2095
|
-
default:
|
|
2096
|
-
w & 1 ? N(
|
|
2097
|
-
a,
|
|
2098
|
-
f,
|
|
2099
|
-
m,
|
|
2100
|
-
b,
|
|
2101
|
-
g,
|
|
2102
|
-
_,
|
|
2103
|
-
S,
|
|
2104
|
-
E,
|
|
2105
|
-
C
|
|
2106
|
-
) : w & 6 ? Vt(
|
|
2107
|
-
a,
|
|
2108
|
-
f,
|
|
2109
|
-
m,
|
|
2110
|
-
b,
|
|
2111
|
-
g,
|
|
2112
|
-
_,
|
|
2113
|
-
S,
|
|
2114
|
-
E,
|
|
2115
|
-
C
|
|
2116
|
-
) : (w & 64 || w & 128) && y.process(
|
|
2117
|
-
a,
|
|
2118
|
-
f,
|
|
2119
|
-
m,
|
|
2120
|
-
b,
|
|
2121
|
-
g,
|
|
2122
|
-
_,
|
|
2123
|
-
S,
|
|
2124
|
-
E,
|
|
2125
|
-
C,
|
|
2126
|
-
bt
|
|
2127
|
-
);
|
|
2128
|
-
}
|
|
2129
|
-
P != null && g ? At(P, a && a.ref, _, f || a, !f) : P == null && a && a.ref != null && At(a.ref, null, _, a, !0);
|
|
2130
|
-
}, U = (a, f, m, b) => {
|
|
2131
|
-
if (a == null)
|
|
2132
|
-
n(
|
|
2133
|
-
f.el = l(f.children),
|
|
2134
|
-
m,
|
|
2135
|
-
b
|
|
2136
|
-
);
|
|
2137
|
-
else {
|
|
2138
|
-
const g = f.el = a.el;
|
|
2139
|
-
f.children !== a.children && h(g, f.children);
|
|
2140
|
-
}
|
|
2141
|
-
}, I = (a, f, m, b) => {
|
|
2142
|
-
a == null ? n(
|
|
2143
|
-
f.el = c(f.children || ""),
|
|
2144
|
-
m,
|
|
2145
|
-
b
|
|
2146
|
-
) : f.el = a.el;
|
|
2147
|
-
}, R = (a, f, m, b) => {
|
|
2148
|
-
[a.el, a.anchor] = x(
|
|
2149
|
-
a.children,
|
|
2150
|
-
f,
|
|
2151
|
-
m,
|
|
2152
|
-
b,
|
|
2153
|
-
a.el,
|
|
2154
|
-
a.anchor
|
|
2155
|
-
);
|
|
2156
|
-
}, L = ({ el: a, anchor: f }, m, b) => {
|
|
2157
|
-
let g;
|
|
2158
|
-
for (; a && a !== f; )
|
|
2159
|
-
g = p(a), n(a, m, b), a = g;
|
|
2160
|
-
n(f, m, b);
|
|
2161
|
-
}, T = ({ el: a, anchor: f }) => {
|
|
2162
|
-
let m;
|
|
2163
|
-
for (; a && a !== f; )
|
|
2164
|
-
m = p(a), r(a), a = m;
|
|
2165
|
-
r(f);
|
|
2166
|
-
}, N = (a, f, m, b, g, _, S, E, C) => {
|
|
2167
|
-
f.type === "svg" ? S = "svg" : f.type === "math" && (S = "mathml"), a == null ? V(
|
|
2168
|
-
f,
|
|
2169
|
-
m,
|
|
2170
|
-
b,
|
|
2171
|
-
g,
|
|
2172
|
-
_,
|
|
2173
|
-
S,
|
|
2174
|
-
E,
|
|
2175
|
-
C
|
|
2176
|
-
) : Ge(
|
|
2177
|
-
a,
|
|
2178
|
-
f,
|
|
2179
|
-
g,
|
|
2180
|
-
_,
|
|
2181
|
-
S,
|
|
2182
|
-
E,
|
|
2183
|
-
C
|
|
2184
|
-
);
|
|
2185
|
-
}, V = (a, f, m, b, g, _, S, E) => {
|
|
2186
|
-
let C, y;
|
|
2187
|
-
const { props: P, shapeFlag: w, transition: A, dirs: M } = a;
|
|
2188
|
-
if (C = a.el = o(
|
|
2189
|
-
a.type,
|
|
2190
|
-
_,
|
|
2191
|
-
P && P.is,
|
|
2192
|
-
P
|
|
2193
|
-
), w & 8 ? u(C, a.children) : w & 16 && be(
|
|
2194
|
-
a.children,
|
|
2195
|
-
C,
|
|
2196
|
-
null,
|
|
2197
|
-
b,
|
|
2198
|
-
g,
|
|
2199
|
-
Ps(a, _),
|
|
2200
|
-
S,
|
|
2201
|
-
E
|
|
2202
|
-
), M && Qe(a, null, b, "created"), X(C, a, a.scopeId, S, b), P) {
|
|
2203
|
-
for (const K in P)
|
|
2204
|
-
K !== "value" && !wt(K) && i(C, K, null, P[K], _, b);
|
|
2205
|
-
"value" in P && i(C, "value", null, P.value, _), (y = P.onVnodeBeforeMount) && Se(y, b, a);
|
|
2206
|
-
}
|
|
2207
|
-
M && Qe(a, null, b, "beforeMount");
|
|
2208
|
-
const D = cl(g, A);
|
|
2209
|
-
D && A.beforeEnter(C), n(C, f, m), ((y = P && P.onVnodeMounted) || D || M) && he(() => {
|
|
2210
|
-
y && Se(y, b, a), D && A.enter(C), M && Qe(a, null, b, "mounted");
|
|
2211
|
-
}, g);
|
|
2212
|
-
}, X = (a, f, m, b, g) => {
|
|
2213
|
-
if (m && v(a, m), b)
|
|
2214
|
-
for (let _ = 0; _ < b.length; _++)
|
|
2215
|
-
v(a, b[_]);
|
|
2216
|
-
if (g) {
|
|
2217
|
-
let _ = g.subTree;
|
|
2218
|
-
if (f === _ || oi(_.type) && (_.ssContent === f || _.ssFallback === f)) {
|
|
2219
|
-
const S = g.vnode;
|
|
2220
|
-
X(
|
|
2221
|
-
a,
|
|
2222
|
-
S,
|
|
2223
|
-
S.scopeId,
|
|
2224
|
-
S.slotScopeIds,
|
|
2225
|
-
g.parent
|
|
2226
|
-
);
|
|
2227
|
-
}
|
|
2228
|
-
}
|
|
2229
|
-
}, be = (a, f, m, b, g, _, S, E, C = 0) => {
|
|
2230
|
-
for (let y = C; y < a.length; y++) {
|
|
2231
|
-
const P = a[y] = E ? Be(a[y]) : Te(a[y]);
|
|
2232
|
-
$(
|
|
2233
|
-
null,
|
|
2234
|
-
P,
|
|
2235
|
-
f,
|
|
2236
|
-
m,
|
|
2237
|
-
b,
|
|
2238
|
-
g,
|
|
2239
|
-
_,
|
|
2240
|
-
S,
|
|
2241
|
-
E
|
|
2242
|
-
);
|
|
2243
|
-
}
|
|
2244
|
-
}, Ge = (a, f, m, b, g, _, S) => {
|
|
2245
|
-
const E = f.el = a.el;
|
|
2246
|
-
let { patchFlag: C, dynamicChildren: y, dirs: P } = f;
|
|
2247
|
-
C |= a.patchFlag & 16;
|
|
2248
|
-
const w = a.props || H, A = f.props || H;
|
|
2249
|
-
let M;
|
|
2250
|
-
if (m && Ze(m, !1), (M = A.onVnodeBeforeUpdate) && Se(M, m, f, a), P && Qe(f, a, m, "beforeUpdate"), m && Ze(m, !0), (w.innerHTML && A.innerHTML == null || w.textContent && A.textContent == null) && u(E, ""), y ? Me(
|
|
2251
|
-
a.dynamicChildren,
|
|
2252
|
-
y,
|
|
2253
|
-
E,
|
|
2254
|
-
m,
|
|
2255
|
-
b,
|
|
2256
|
-
Ps(f, g),
|
|
2257
|
-
_
|
|
2258
|
-
) : S || W(
|
|
2259
|
-
a,
|
|
2260
|
-
f,
|
|
2261
|
-
E,
|
|
2262
|
-
null,
|
|
2263
|
-
m,
|
|
2264
|
-
b,
|
|
2265
|
-
Ps(f, g),
|
|
2266
|
-
_,
|
|
2267
|
-
!1
|
|
2268
|
-
), C > 0) {
|
|
2269
|
-
if (C & 16)
|
|
2270
|
-
rt(E, w, A, m, g);
|
|
2271
|
-
else if (C & 2 && w.class !== A.class && i(E, "class", null, A.class, g), C & 4 && i(E, "style", w.style, A.style, g), C & 8) {
|
|
2272
|
-
const D = f.dynamicProps;
|
|
2273
|
-
for (let K = 0; K < D.length; K++) {
|
|
2274
|
-
const k = D[K], le = w[k], ce = A[k];
|
|
2275
|
-
(ce !== le || k === "value") && i(E, k, le, ce, g, m);
|
|
2276
|
-
}
|
|
2277
|
-
}
|
|
2278
|
-
C & 1 && a.children !== f.children && u(E, f.children);
|
|
2279
|
-
} else !S && y == null && rt(E, w, A, m, g);
|
|
2280
|
-
((M = A.onVnodeUpdated) || P) && he(() => {
|
|
2281
|
-
M && Se(M, m, f, a), P && Qe(f, a, m, "updated");
|
|
2282
|
-
}, b);
|
|
2283
|
-
}, Me = (a, f, m, b, g, _, S) => {
|
|
2284
|
-
for (let E = 0; E < f.length; E++) {
|
|
2285
|
-
const C = a[E], y = f[E], P = (
|
|
2286
|
-
// oldVNode may be an errored async setup() component inside Suspense
|
|
2287
|
-
// which will not have a mounted element
|
|
2288
|
-
C.el && // - In the case of a Fragment, we need to provide the actual parent
|
|
2289
|
-
// of the Fragment itself so it can move its children.
|
|
2290
|
-
(C.type === ge || // - In the case of different nodes, there is going to be a replacement
|
|
2291
|
-
// which also requires the correct parent container
|
|
2292
|
-
!Ct(C, y) || // - In the case of a component, it could contain anything.
|
|
2293
|
-
C.shapeFlag & 198) ? d(C.el) : (
|
|
2294
|
-
// In other cases, the parent container is not actually used so we
|
|
2295
|
-
// just pass the block element here to avoid a DOM parentNode call.
|
|
2296
|
-
m
|
|
2297
|
-
)
|
|
2298
|
-
);
|
|
2299
|
-
$(
|
|
2300
|
-
C,
|
|
2301
|
-
y,
|
|
2302
|
-
P,
|
|
2303
|
-
null,
|
|
2304
|
-
b,
|
|
2305
|
-
g,
|
|
2306
|
-
_,
|
|
2307
|
-
S,
|
|
2308
|
-
!0
|
|
2309
|
-
);
|
|
2310
|
-
}
|
|
2311
|
-
}, rt = (a, f, m, b, g) => {
|
|
2312
|
-
if (f !== m) {
|
|
2313
|
-
if (f !== H)
|
|
2314
|
-
for (const _ in f)
|
|
2315
|
-
!wt(_) && !(_ in m) && i(
|
|
2316
|
-
a,
|
|
2317
|
-
_,
|
|
2318
|
-
f[_],
|
|
2319
|
-
null,
|
|
2320
|
-
g,
|
|
2321
|
-
b
|
|
2322
|
-
);
|
|
2323
|
-
for (const _ in m) {
|
|
2324
|
-
if (wt(_)) continue;
|
|
2325
|
-
const S = m[_], E = f[_];
|
|
2326
|
-
S !== E && _ !== "value" && i(a, _, E, S, g, b);
|
|
2327
|
-
}
|
|
2328
|
-
"value" in m && i(a, "value", f.value, m.value, g);
|
|
2329
|
-
}
|
|
2330
|
-
}, it = (a, f, m, b, g, _, S, E, C) => {
|
|
2331
|
-
const y = f.el = a ? a.el : l(""), P = f.anchor = a ? a.anchor : l("");
|
|
2332
|
-
let { patchFlag: w, dynamicChildren: A, slotScopeIds: M } = f;
|
|
2333
|
-
M && (E = E ? E.concat(M) : M), a == null ? (n(y, m, b), n(P, m, b), be(
|
|
2334
|
-
// #10007
|
|
2335
|
-
// such fragment like `<></>` will be compiled into
|
|
2336
|
-
// a fragment which doesn't have a children.
|
|
2337
|
-
// In this case fallback to an empty array
|
|
2338
|
-
f.children || [],
|
|
2339
|
-
m,
|
|
2340
|
-
P,
|
|
2341
|
-
g,
|
|
2342
|
-
_,
|
|
2343
|
-
S,
|
|
2344
|
-
E,
|
|
2345
|
-
C
|
|
2346
|
-
)) : w > 0 && w & 64 && A && // #2715 the previous fragment could've been a BAILed one as a result
|
|
2347
|
-
// of renderSlot() with no valid children
|
|
2348
|
-
a.dynamicChildren ? (Me(
|
|
2349
|
-
a.dynamicChildren,
|
|
2350
|
-
A,
|
|
2351
|
-
m,
|
|
2352
|
-
g,
|
|
2353
|
-
_,
|
|
2354
|
-
S,
|
|
2355
|
-
E
|
|
2356
|
-
), // #2080 if the stable fragment has a key, it's a <template v-for> that may
|
|
2357
|
-
// get moved around. Make sure all root level vnodes inherit el.
|
|
2358
|
-
// #2134 or if it's a component root, it may also get moved around
|
|
2359
|
-
// as the component is being moved.
|
|
2360
|
-
(f.key != null || g && f === g.subTree) && ti(
|
|
2361
|
-
a,
|
|
2362
|
-
f,
|
|
2363
|
-
!0
|
|
2364
|
-
/* shallow */
|
|
2365
|
-
)) : W(
|
|
2366
|
-
a,
|
|
2367
|
-
f,
|
|
2368
|
-
m,
|
|
2369
|
-
P,
|
|
2370
|
-
g,
|
|
2371
|
-
_,
|
|
2372
|
-
S,
|
|
2373
|
-
E,
|
|
2374
|
-
C
|
|
2375
|
-
);
|
|
2376
|
-
}, Vt = (a, f, m, b, g, _, S, E, C) => {
|
|
2377
|
-
f.slotScopeIds = E, a == null ? f.shapeFlag & 512 ? g.ctx.activate(
|
|
2378
|
-
f,
|
|
2379
|
-
m,
|
|
2380
|
-
b,
|
|
2381
|
-
S,
|
|
2382
|
-
C
|
|
2383
|
-
) : ys(
|
|
2384
|
-
f,
|
|
2385
|
-
m,
|
|
2386
|
-
b,
|
|
2387
|
-
g,
|
|
2388
|
-
_,
|
|
2389
|
-
S,
|
|
2390
|
-
C
|
|
2391
|
-
) : yn(a, f, C);
|
|
2392
|
-
}, ys = (a, f, m, b, g, _, S) => {
|
|
2393
|
-
const E = a.component = Al(
|
|
2394
|
-
a,
|
|
2395
|
-
b,
|
|
2396
|
-
g
|
|
2397
|
-
);
|
|
2398
|
-
if (jr(a) && (E.ctx.renderer = bt), Pl(E, !1, S), E.asyncDep) {
|
|
2399
|
-
if (g && g.registerDep(E, ne, S), !a.el) {
|
|
2400
|
-
const C = E.subTree = Re(Ke);
|
|
2401
|
-
I(null, C, f, m), a.placeholder = C.el;
|
|
2402
|
-
}
|
|
2403
|
-
} else
|
|
2404
|
-
ne(
|
|
2405
|
-
E,
|
|
2406
|
-
a,
|
|
2407
|
-
f,
|
|
2408
|
-
m,
|
|
2409
|
-
g,
|
|
2410
|
-
_,
|
|
2411
|
-
S
|
|
2412
|
-
);
|
|
2413
|
-
}, yn = (a, f, m) => {
|
|
2414
|
-
const b = f.component = a.component;
|
|
2415
|
-
if (vl(a, f, m))
|
|
2416
|
-
if (b.asyncDep && !b.asyncResolved) {
|
|
2417
|
-
G(b, f, m);
|
|
2418
|
-
return;
|
|
2419
|
-
} else
|
|
2420
|
-
b.next = f, b.update();
|
|
2421
|
-
else
|
|
2422
|
-
f.el = a.el, b.vnode = f;
|
|
2423
|
-
}, ne = (a, f, m, b, g, _, S) => {
|
|
2424
|
-
const E = () => {
|
|
2425
|
-
if (a.isMounted) {
|
|
2426
|
-
let { next: w, bu: A, u: M, parent: D, vnode: K } = a;
|
|
2427
|
-
{
|
|
2428
|
-
const Ce = si(a);
|
|
2429
|
-
if (Ce) {
|
|
2430
|
-
w && (w.el = K.el, G(a, w, S)), Ce.asyncDep.then(() => {
|
|
2431
|
-
a.isUnmounted || E();
|
|
2432
|
-
});
|
|
2433
|
-
return;
|
|
2434
|
-
}
|
|
2435
|
-
}
|
|
2436
|
-
let k = w, le;
|
|
2437
|
-
Ze(a, !1), w ? (w.el = K.el, G(a, w, S)) : w = K, A && Es(A), (le = w.props && w.props.onVnodeBeforeUpdate) && Se(le, D, w, K), Ze(a, !0);
|
|
2438
|
-
const ce = Vn(a), xe = a.subTree;
|
|
2439
|
-
a.subTree = ce, $(
|
|
2440
|
-
xe,
|
|
2441
|
-
ce,
|
|
2442
|
-
// parent may have changed if it's in a teleport
|
|
2443
|
-
d(xe.el),
|
|
2444
|
-
// anchor may have changed if it's in a fragment
|
|
2445
|
-
kt(xe),
|
|
2446
|
-
a,
|
|
2447
|
-
g,
|
|
2448
|
-
_
|
|
2449
|
-
), w.el = ce.el, k === null && bl(a, ce.el), M && he(M, g), (le = w.props && w.props.onVnodeUpdated) && he(
|
|
2450
|
-
() => Se(le, D, w, K),
|
|
2451
|
-
g
|
|
2452
|
-
);
|
|
2453
|
-
} else {
|
|
2454
|
-
let w;
|
|
2455
|
-
const { el: A, props: M } = f, { bm: D, m: K, parent: k, root: le, type: ce } = a, xe = Pt(f);
|
|
2456
|
-
Ze(a, !1), D && Es(D), !xe && (w = M && M.onVnodeBeforeMount) && Se(w, k, f), Ze(a, !0);
|
|
2457
|
-
{
|
|
2458
|
-
le.ce && // @ts-expect-error _def is private
|
|
2459
|
-
le.ce._def.shadowRoot !== !1 && le.ce._injectChildStyle(ce);
|
|
2460
|
-
const Ce = a.subTree = Vn(a);
|
|
2461
|
-
$(
|
|
2462
|
-
null,
|
|
2463
|
-
Ce,
|
|
2464
|
-
m,
|
|
2465
|
-
b,
|
|
2466
|
-
a,
|
|
2467
|
-
g,
|
|
2468
|
-
_
|
|
2469
|
-
), f.el = Ce.el;
|
|
2470
|
-
}
|
|
2471
|
-
if (K && he(K, g), !xe && (w = M && M.onVnodeMounted)) {
|
|
2472
|
-
const Ce = f;
|
|
2473
|
-
he(
|
|
2474
|
-
() => Se(w, k, Ce),
|
|
2475
|
-
g
|
|
2476
|
-
);
|
|
2477
|
-
}
|
|
2478
|
-
(f.shapeFlag & 256 || k && Pt(k.vnode) && k.vnode.shapeFlag & 256) && a.a && he(a.a, g), a.isMounted = !0, f = m = b = null;
|
|
2479
|
-
}
|
|
2480
|
-
};
|
|
2481
|
-
a.scope.on();
|
|
2482
|
-
const C = a.effect = new mr(E);
|
|
2483
|
-
a.scope.off();
|
|
2484
|
-
const y = a.update = C.run.bind(C), P = a.job = C.runIfDirty.bind(C);
|
|
2485
|
-
P.i = a, P.id = a.uid, C.scheduler = () => cn(P), Ze(a, !0), y();
|
|
2486
|
-
}, G = (a, f, m) => {
|
|
2487
|
-
f.component = a;
|
|
2488
|
-
const b = a.vnode.props;
|
|
2489
|
-
a.vnode = f, a.next = null, tl(a, f.props, b, m), il(a, f.children, m), De(), Mn(a), je();
|
|
2490
|
-
}, W = (a, f, m, b, g, _, S, E, C = !1) => {
|
|
2491
|
-
const y = a && a.children, P = a ? a.shapeFlag : 0, w = f.children, { patchFlag: A, shapeFlag: M } = f;
|
|
2492
|
-
if (A > 0) {
|
|
2493
|
-
if (A & 128) {
|
|
2494
|
-
Bt(
|
|
2495
|
-
y,
|
|
2496
|
-
w,
|
|
2497
|
-
m,
|
|
2498
|
-
b,
|
|
2499
|
-
g,
|
|
2500
|
-
_,
|
|
2501
|
-
S,
|
|
2502
|
-
E,
|
|
2503
|
-
C
|
|
2504
|
-
);
|
|
2505
|
-
return;
|
|
2506
|
-
} else if (A & 256) {
|
|
2507
|
-
Ye(
|
|
2508
|
-
y,
|
|
2509
|
-
w,
|
|
2510
|
-
m,
|
|
2511
|
-
b,
|
|
2512
|
-
g,
|
|
2513
|
-
_,
|
|
2514
|
-
S,
|
|
2515
|
-
E,
|
|
2516
|
-
C
|
|
2517
|
-
);
|
|
2518
|
-
return;
|
|
2519
|
-
}
|
|
2520
|
-
}
|
|
2521
|
-
M & 8 ? (P & 16 && vt(y, g, _), w !== y && u(m, w)) : P & 16 ? M & 16 ? Bt(
|
|
2522
|
-
y,
|
|
2523
|
-
w,
|
|
2524
|
-
m,
|
|
2525
|
-
b,
|
|
2526
|
-
g,
|
|
2527
|
-
_,
|
|
2528
|
-
S,
|
|
2529
|
-
E,
|
|
2530
|
-
C
|
|
2531
|
-
) : vt(y, g, _, !0) : (P & 8 && u(m, ""), M & 16 && be(
|
|
2532
|
-
w,
|
|
2533
|
-
m,
|
|
2534
|
-
b,
|
|
2535
|
-
g,
|
|
2536
|
-
_,
|
|
2537
|
-
S,
|
|
2538
|
-
E,
|
|
2539
|
-
C
|
|
2540
|
-
));
|
|
2541
|
-
}, Ye = (a, f, m, b, g, _, S, E, C) => {
|
|
2542
|
-
a = a || at, f = f || at;
|
|
2543
|
-
const y = a.length, P = f.length, w = Math.min(y, P);
|
|
2544
|
-
let A;
|
|
2545
|
-
for (A = 0; A < w; A++) {
|
|
2546
|
-
const M = f[A] = C ? Be(f[A]) : Te(f[A]);
|
|
2547
|
-
$(
|
|
2548
|
-
a[A],
|
|
2549
|
-
M,
|
|
2550
|
-
m,
|
|
2551
|
-
null,
|
|
2552
|
-
g,
|
|
2553
|
-
_,
|
|
2554
|
-
S,
|
|
2555
|
-
E,
|
|
2556
|
-
C
|
|
2557
|
-
);
|
|
2558
|
-
}
|
|
2559
|
-
y > P ? vt(
|
|
2560
|
-
a,
|
|
2561
|
-
g,
|
|
2562
|
-
_,
|
|
2563
|
-
!0,
|
|
2564
|
-
!1,
|
|
2565
|
-
w
|
|
2566
|
-
) : be(
|
|
2567
|
-
f,
|
|
2568
|
-
m,
|
|
2569
|
-
b,
|
|
2570
|
-
g,
|
|
2571
|
-
_,
|
|
2572
|
-
S,
|
|
2573
|
-
E,
|
|
2574
|
-
C,
|
|
2575
|
-
w
|
|
2576
|
-
);
|
|
2577
|
-
}, Bt = (a, f, m, b, g, _, S, E, C) => {
|
|
2578
|
-
let y = 0;
|
|
2579
|
-
const P = f.length;
|
|
2580
|
-
let w = a.length - 1, A = P - 1;
|
|
2581
|
-
for (; y <= w && y <= A; ) {
|
|
2582
|
-
const M = a[y], D = f[y] = C ? Be(f[y]) : Te(f[y]);
|
|
2583
|
-
if (Ct(M, D))
|
|
2584
|
-
$(
|
|
2585
|
-
M,
|
|
2586
|
-
D,
|
|
2587
|
-
m,
|
|
2588
|
-
null,
|
|
2589
|
-
g,
|
|
2590
|
-
_,
|
|
2591
|
-
S,
|
|
2592
|
-
E,
|
|
2593
|
-
C
|
|
2594
|
-
);
|
|
2595
|
-
else
|
|
2596
|
-
break;
|
|
2597
|
-
y++;
|
|
2598
|
-
}
|
|
2599
|
-
for (; y <= w && y <= A; ) {
|
|
2600
|
-
const M = a[w], D = f[A] = C ? Be(f[A]) : Te(f[A]);
|
|
2601
|
-
if (Ct(M, D))
|
|
2602
|
-
$(
|
|
2603
|
-
M,
|
|
2604
|
-
D,
|
|
2605
|
-
m,
|
|
2606
|
-
null,
|
|
2607
|
-
g,
|
|
2608
|
-
_,
|
|
2609
|
-
S,
|
|
2610
|
-
E,
|
|
2611
|
-
C
|
|
2612
|
-
);
|
|
2613
|
-
else
|
|
2614
|
-
break;
|
|
2615
|
-
w--, A--;
|
|
2616
|
-
}
|
|
2617
|
-
if (y > w) {
|
|
2618
|
-
if (y <= A) {
|
|
2619
|
-
const M = A + 1, D = M < P ? f[M].el : b;
|
|
2620
|
-
for (; y <= A; )
|
|
2621
|
-
$(
|
|
2622
|
-
null,
|
|
2623
|
-
f[y] = C ? Be(f[y]) : Te(f[y]),
|
|
2624
|
-
m,
|
|
2625
|
-
D,
|
|
2626
|
-
g,
|
|
2627
|
-
_,
|
|
2628
|
-
S,
|
|
2629
|
-
E,
|
|
2630
|
-
C
|
|
2631
|
-
), y++;
|
|
2632
|
-
}
|
|
2633
|
-
} else if (y > A)
|
|
2634
|
-
for (; y <= w; )
|
|
2635
|
-
ye(a[y], g, _, !0), y++;
|
|
2636
|
-
else {
|
|
2637
|
-
const M = y, D = y, K = /* @__PURE__ */ new Map();
|
|
2638
|
-
for (y = D; y <= A; y++) {
|
|
2639
|
-
const fe = f[y] = C ? Be(f[y]) : Te(f[y]);
|
|
2640
|
-
fe.key != null && K.set(fe.key, y);
|
|
2641
|
-
}
|
|
2642
|
-
let k, le = 0;
|
|
2643
|
-
const ce = A - D + 1;
|
|
2644
|
-
let xe = !1, Ce = 0;
|
|
2645
|
-
const yt = new Array(ce);
|
|
2646
|
-
for (y = 0; y < ce; y++) yt[y] = 0;
|
|
2647
|
-
for (y = M; y <= w; y++) {
|
|
2648
|
-
const fe = a[y];
|
|
2649
|
-
if (le >= ce) {
|
|
2650
|
-
ye(fe, g, _, !0);
|
|
2651
|
-
continue;
|
|
2652
|
-
}
|
|
2653
|
-
let Ee;
|
|
2654
|
-
if (fe.key != null)
|
|
2655
|
-
Ee = K.get(fe.key);
|
|
2656
|
-
else
|
|
2657
|
-
for (k = D; k <= A; k++)
|
|
2658
|
-
if (yt[k - D] === 0 && Ct(fe, f[k])) {
|
|
2659
|
-
Ee = k;
|
|
2660
|
-
break;
|
|
2661
|
-
}
|
|
2662
|
-
Ee === void 0 ? ye(fe, g, _, !0) : (yt[Ee - D] = y + 1, Ee >= Ce ? Ce = Ee : xe = !0, $(
|
|
2663
|
-
fe,
|
|
2664
|
-
f[Ee],
|
|
2665
|
-
m,
|
|
2666
|
-
null,
|
|
2667
|
-
g,
|
|
2668
|
-
_,
|
|
2669
|
-
S,
|
|
2670
|
-
E,
|
|
2671
|
-
C
|
|
2672
|
-
), le++);
|
|
2673
|
-
}
|
|
2674
|
-
const En = xe ? al(yt) : at;
|
|
2675
|
-
for (k = En.length - 1, y = ce - 1; y >= 0; y--) {
|
|
2676
|
-
const fe = D + y, Ee = f[fe], Sn = f[fe + 1], wn = fe + 1 < P ? (
|
|
2677
|
-
// #13559, fallback to el placeholder for unresolved async component
|
|
2678
|
-
Sn.el || Sn.placeholder
|
|
2679
|
-
) : b;
|
|
2680
|
-
yt[y] === 0 ? $(
|
|
2681
|
-
null,
|
|
2682
|
-
Ee,
|
|
2683
|
-
m,
|
|
2684
|
-
wn,
|
|
2685
|
-
g,
|
|
2686
|
-
_,
|
|
2687
|
-
S,
|
|
2688
|
-
E,
|
|
2689
|
-
C
|
|
2690
|
-
) : xe && (k < 0 || y !== En[k] ? Xe(Ee, m, wn, 2) : k--);
|
|
2691
|
-
}
|
|
2692
|
-
}
|
|
2693
|
-
}, Xe = (a, f, m, b, g = null) => {
|
|
2694
|
-
const { el: _, type: S, transition: E, children: C, shapeFlag: y } = a;
|
|
2695
|
-
if (y & 6) {
|
|
2696
|
-
Xe(a.component.subTree, f, m, b);
|
|
2697
|
-
return;
|
|
2698
|
-
}
|
|
2699
|
-
if (y & 128) {
|
|
2700
|
-
a.suspense.move(f, m, b);
|
|
2701
|
-
return;
|
|
2702
|
-
}
|
|
2703
|
-
if (y & 64) {
|
|
2704
|
-
S.move(a, f, m, bt);
|
|
2705
|
-
return;
|
|
2706
|
-
}
|
|
2707
|
-
if (S === ge) {
|
|
2708
|
-
n(_, f, m);
|
|
2709
|
-
for (let w = 0; w < C.length; w++)
|
|
2710
|
-
Xe(C[w], f, m, b);
|
|
2711
|
-
n(a.anchor, f, m);
|
|
2712
|
-
return;
|
|
2713
|
-
}
|
|
2714
|
-
if (S === Is) {
|
|
2715
|
-
L(a, f, m);
|
|
2716
|
-
return;
|
|
2717
|
-
}
|
|
2718
|
-
if (b !== 2 && y & 1 && E)
|
|
2719
|
-
if (b === 0)
|
|
2720
|
-
E.beforeEnter(_), n(_, f, m), he(() => E.enter(_), g);
|
|
2721
|
-
else {
|
|
2722
|
-
const { leave: w, delayLeave: A, afterLeave: M } = E, D = () => {
|
|
2723
|
-
a.ctx.isUnmounted ? r(_) : n(_, f, m);
|
|
2724
|
-
}, K = () => {
|
|
2725
|
-
_._isLeaving && _[No](
|
|
2726
|
-
!0
|
|
2727
|
-
/* cancelled */
|
|
2728
|
-
), w(_, () => {
|
|
2729
|
-
D(), M && M();
|
|
2730
|
-
});
|
|
2731
|
-
};
|
|
2732
|
-
A ? A(_, D, K) : K();
|
|
2733
|
-
}
|
|
2734
|
-
else
|
|
2735
|
-
n(_, f, m);
|
|
2736
|
-
}, ye = (a, f, m, b = !1, g = !1) => {
|
|
2737
|
-
const {
|
|
2738
|
-
type: _,
|
|
2739
|
-
props: S,
|
|
2740
|
-
ref: E,
|
|
2741
|
-
children: C,
|
|
2742
|
-
dynamicChildren: y,
|
|
2743
|
-
shapeFlag: P,
|
|
2744
|
-
patchFlag: w,
|
|
2745
|
-
dirs: A,
|
|
2746
|
-
cacheIndex: M
|
|
2747
|
-
} = a;
|
|
2748
|
-
if (w === -2 && (g = !1), E != null && (De(), At(E, null, m, a, !0), je()), M != null && (f.renderCache[M] = void 0), P & 256) {
|
|
2749
|
-
f.ctx.deactivate(a);
|
|
2750
|
-
return;
|
|
2751
|
-
}
|
|
2752
|
-
const D = P & 1 && A, K = !Pt(a);
|
|
2753
|
-
let k;
|
|
2754
|
-
if (K && (k = S && S.onVnodeBeforeUnmount) && Se(k, f, a), P & 6)
|
|
2755
|
-
Ni(a.component, m, b);
|
|
2756
|
-
else {
|
|
2757
|
-
if (P & 128) {
|
|
2758
|
-
a.suspense.unmount(m, b);
|
|
2759
|
-
return;
|
|
2760
|
-
}
|
|
2761
|
-
D && Qe(a, null, f, "beforeUnmount"), P & 64 ? a.type.remove(
|
|
2762
|
-
a,
|
|
2763
|
-
f,
|
|
2764
|
-
m,
|
|
2765
|
-
bt,
|
|
2766
|
-
b
|
|
2767
|
-
) : y && // #5154
|
|
2768
|
-
// when v-once is used inside a block, setBlockTracking(-1) marks the
|
|
2769
|
-
// parent block with hasOnce: true
|
|
2770
|
-
// so that it doesn't take the fast path during unmount - otherwise
|
|
2771
|
-
// components nested in v-once are never unmounted.
|
|
2772
|
-
!y.hasOnce && // #1153: fast path should not be taken for non-stable (v-for) fragments
|
|
2773
|
-
(_ !== ge || w > 0 && w & 64) ? vt(
|
|
2774
|
-
y,
|
|
2775
|
-
f,
|
|
2776
|
-
m,
|
|
2777
|
-
!1,
|
|
2778
|
-
!0
|
|
2779
|
-
) : (_ === ge && w & 384 || !g && P & 16) && vt(C, f, m), b && xn(a);
|
|
2780
|
-
}
|
|
2781
|
-
(K && (k = S && S.onVnodeUnmounted) || D) && he(() => {
|
|
2782
|
-
k && Se(k, f, a), D && Qe(a, null, f, "unmounted");
|
|
2783
|
-
}, m);
|
|
2784
|
-
}, xn = (a) => {
|
|
2785
|
-
const { type: f, el: m, anchor: b, transition: g } = a;
|
|
2786
|
-
if (f === ge) {
|
|
2787
|
-
Fi(m, b);
|
|
2788
|
-
return;
|
|
2789
|
-
}
|
|
2790
|
-
if (f === Is) {
|
|
2791
|
-
T(a);
|
|
2792
|
-
return;
|
|
2793
|
-
}
|
|
2794
|
-
const _ = () => {
|
|
2795
|
-
r(m), g && !g.persisted && g.afterLeave && g.afterLeave();
|
|
2796
|
-
};
|
|
2797
|
-
if (a.shapeFlag & 1 && g && !g.persisted) {
|
|
2798
|
-
const { leave: S, delayLeave: E } = g, C = () => S(m, _);
|
|
2799
|
-
E ? E(a.el, _, C) : C();
|
|
2800
|
-
} else
|
|
2801
|
-
_();
|
|
2802
|
-
}, Fi = (a, f) => {
|
|
2803
|
-
let m;
|
|
2804
|
-
for (; a !== f; )
|
|
2805
|
-
m = p(a), r(a), a = m;
|
|
2806
|
-
r(f);
|
|
2807
|
-
}, Ni = (a, f, m) => {
|
|
2808
|
-
const { bum: b, scope: g, job: _, subTree: S, um: E, m: C, a: y } = a;
|
|
2809
|
-
Hn(C), Hn(y), b && Es(b), g.stop(), _ && (_.flags |= 8, ye(S, a, f, m)), E && he(E, f), he(() => {
|
|
2810
|
-
a.isUnmounted = !0;
|
|
2811
|
-
}, f);
|
|
2812
|
-
}, vt = (a, f, m, b = !1, g = !1, _ = 0) => {
|
|
2813
|
-
for (let S = _; S < a.length; S++)
|
|
2814
|
-
ye(a[S], f, m, b, g);
|
|
2815
|
-
}, kt = (a) => {
|
|
2816
|
-
if (a.shapeFlag & 6)
|
|
2817
|
-
return kt(a.component.subTree);
|
|
2818
|
-
if (a.shapeFlag & 128)
|
|
2819
|
-
return a.suspense.next();
|
|
2820
|
-
const f = p(a.anchor || a.el), m = f && f[Oo];
|
|
2821
|
-
return m ? p(m) : f;
|
|
2822
|
-
};
|
|
2823
|
-
let xs = !1;
|
|
2824
|
-
const Cn = (a, f, m) => {
|
|
2825
|
-
a == null ? f._vnode && ye(f._vnode, null, null, !0) : $(
|
|
2826
|
-
f._vnode || null,
|
|
2827
|
-
a,
|
|
2828
|
-
f,
|
|
2829
|
-
null,
|
|
2830
|
-
null,
|
|
2831
|
-
null,
|
|
2832
|
-
m
|
|
2833
|
-
), f._vnode = a, xs || (xs = !0, Mn(), Fr(), xs = !1);
|
|
2834
|
-
}, bt = {
|
|
2835
|
-
p: $,
|
|
2836
|
-
um: ye,
|
|
2837
|
-
m: Xe,
|
|
2838
|
-
r: xn,
|
|
2839
|
-
mt: ys,
|
|
2840
|
-
mc: be,
|
|
2841
|
-
pc: W,
|
|
2842
|
-
pbc: Me,
|
|
2843
|
-
n: kt,
|
|
2844
|
-
o: e
|
|
2845
|
-
};
|
|
2846
|
-
return {
|
|
2847
|
-
render: Cn,
|
|
2848
|
-
hydrate: void 0,
|
|
2849
|
-
createApp: Zo(Cn)
|
|
2850
|
-
};
|
|
2851
|
-
}
|
|
2852
|
-
function Ps({ type: e, props: t }, s) {
|
|
2853
|
-
return s === "svg" && e === "foreignObject" || s === "mathml" && e === "annotation-xml" && t && t.encoding && t.encoding.includes("html") ? void 0 : s;
|
|
2854
|
-
}
|
|
2855
|
-
function Ze({ effect: e, job: t }, s) {
|
|
2856
|
-
s ? (e.flags |= 32, t.flags |= 4) : (e.flags &= -33, t.flags &= -5);
|
|
2857
|
-
}
|
|
2858
|
-
function cl(e, t) {
|
|
2859
|
-
return (!e || e && !e.pendingBranch) && t && !t.persisted;
|
|
2860
|
-
}
|
|
2861
|
-
function ti(e, t, s = !1) {
|
|
2862
|
-
const n = e.children, r = t.children;
|
|
2863
|
-
if (O(n) && O(r))
|
|
2864
|
-
for (let i = 0; i < n.length; i++) {
|
|
2865
|
-
const o = n[i];
|
|
2866
|
-
let l = r[i];
|
|
2867
|
-
l.shapeFlag & 1 && !l.dynamicChildren && ((l.patchFlag <= 0 || l.patchFlag === 32) && (l = r[i] = Be(r[i]), l.el = o.el), !s && l.patchFlag !== -2 && ti(o, l)), l.type === vs && // avoid cached text nodes retaining detached dom nodes
|
|
2868
|
-
l.patchFlag !== -1 && (l.el = o.el), l.type === Ke && !l.el && (l.el = o.el);
|
|
2869
|
-
}
|
|
2870
|
-
}
|
|
2871
|
-
function al(e) {
|
|
2872
|
-
const t = e.slice(), s = [0];
|
|
2873
|
-
let n, r, i, o, l;
|
|
2874
|
-
const c = e.length;
|
|
2875
|
-
for (n = 0; n < c; n++) {
|
|
2876
|
-
const h = e[n];
|
|
2877
|
-
if (h !== 0) {
|
|
2878
|
-
if (r = s[s.length - 1], e[r] < h) {
|
|
2879
|
-
t[n] = r, s.push(n);
|
|
2880
|
-
continue;
|
|
2881
|
-
}
|
|
2882
|
-
for (i = 0, o = s.length - 1; i < o; )
|
|
2883
|
-
l = i + o >> 1, e[s[l]] < h ? i = l + 1 : o = l;
|
|
2884
|
-
h < e[s[i]] && (i > 0 && (t[n] = s[i - 1]), s[i] = n);
|
|
2885
|
-
}
|
|
2886
|
-
}
|
|
2887
|
-
for (i = s.length, o = s[i - 1]; i-- > 0; )
|
|
2888
|
-
s[i] = o, o = t[o];
|
|
2889
|
-
return s;
|
|
2890
|
-
}
|
|
2891
|
-
function si(e) {
|
|
2892
|
-
const t = e.subTree.component;
|
|
2893
|
-
if (t)
|
|
2894
|
-
return t.asyncDep && !t.asyncResolved ? t : si(t);
|
|
2895
|
-
}
|
|
2896
|
-
function Hn(e) {
|
|
2897
|
-
if (e)
|
|
2898
|
-
for (let t = 0; t < e.length; t++)
|
|
2899
|
-
e[t].flags |= 8;
|
|
2900
|
-
}
|
|
2901
|
-
const ul = Symbol.for("v-scx"), fl = () => Mt(ul);
|
|
2902
|
-
function hl(e, t) {
|
|
2903
|
-
return dn(
|
|
2904
|
-
e,
|
|
2905
|
-
null,
|
|
2906
|
-
{ flush: "sync" }
|
|
2907
|
-
);
|
|
2908
|
-
}
|
|
2909
|
-
function pt(e, t, s) {
|
|
2910
|
-
return dn(e, t, s);
|
|
2911
|
-
}
|
|
2912
|
-
function dn(e, t, s = H) {
|
|
2913
|
-
const { immediate: n, deep: r, flush: i, once: o } = s, l = te({}, s), c = t && n || !t && i !== "post";
|
|
2914
|
-
let h;
|
|
2915
|
-
if (Dt) {
|
|
2916
|
-
if (i === "sync") {
|
|
2917
|
-
const v = fl();
|
|
2918
|
-
h = v.__watcherHandles || (v.__watcherHandles = []);
|
|
2919
|
-
} else if (!c) {
|
|
2920
|
-
const v = () => {
|
|
2921
|
-
};
|
|
2922
|
-
return v.stop = Ae, v.resume = Ae, v.pause = Ae, v;
|
|
2923
|
-
}
|
|
2924
|
-
}
|
|
2925
|
-
const u = oe;
|
|
2926
|
-
l.call = (v, x, $) => Pe(v, u, x, $);
|
|
2927
|
-
let d = !1;
|
|
2928
|
-
i === "post" ? l.scheduler = (v) => {
|
|
2929
|
-
he(v, u && u.suspense);
|
|
2930
|
-
} : i !== "sync" && (d = !0, l.scheduler = (v, x) => {
|
|
2931
|
-
x ? v() : cn(v);
|
|
2932
|
-
}), l.augmentJob = (v) => {
|
|
2933
|
-
t && (v.flags |= 4), d && (v.flags |= 2, u && (v.id = u.uid, v.i = u));
|
|
2934
|
-
};
|
|
2935
|
-
const p = $o(e, t, l);
|
|
2936
|
-
return Dt && (h ? h.push(p) : c && p()), p;
|
|
2937
|
-
}
|
|
2938
|
-
function dl(e, t, s) {
|
|
2939
|
-
const n = this.proxy, r = Q(e) ? e.includes(".") ? ni(n, e) : () => n[e] : e.bind(n, n);
|
|
2940
|
-
let i;
|
|
2941
|
-
F(t) ? i = t : (i = t.handler, s = t);
|
|
2942
|
-
const o = Ht(this), l = dn(r, i.bind(n), s);
|
|
2943
|
-
return o(), l;
|
|
2944
|
-
}
|
|
2945
|
-
function ni(e, t) {
|
|
2946
|
-
const s = t.split(".");
|
|
2947
|
-
return () => {
|
|
2948
|
-
let n = e;
|
|
2949
|
-
for (let r = 0; r < s.length && n; r++)
|
|
2950
|
-
n = n[s[r]];
|
|
2951
|
-
return n;
|
|
2952
|
-
};
|
|
2953
|
-
}
|
|
2954
|
-
function Un(e, t, s = H) {
|
|
2955
|
-
const n = mn(), r = Le(t), i = Je(t), o = ri(e, r), l = Eo((c, h) => {
|
|
2956
|
-
let u, d = H, p;
|
|
2957
|
-
return hl(() => {
|
|
2958
|
-
const v = e[r];
|
|
2959
|
-
ue(u, v) && (u = v, h());
|
|
2960
|
-
}), {
|
|
2961
|
-
get() {
|
|
2962
|
-
return c(), s.get ? s.get(u) : u;
|
|
2963
|
-
},
|
|
2964
|
-
set(v) {
|
|
2965
|
-
const x = s.set ? s.set(v) : v;
|
|
2966
|
-
if (!ue(x, u) && !(d !== H && ue(v, d)))
|
|
2967
|
-
return;
|
|
2968
|
-
const $ = n.vnode.props;
|
|
2969
|
-
$ && // check if parent has passed v-model
|
|
2970
|
-
(t in $ || r in $ || i in $) && (`onUpdate:${t}` in $ || `onUpdate:${r}` in $ || `onUpdate:${i}` in $) || (u = v, h()), n.emit(`update:${t}`, x), ue(v, x) && ue(v, d) && !ue(x, p) && h(), d = v, p = x;
|
|
2971
|
-
}
|
|
2972
|
-
};
|
|
2973
|
-
});
|
|
2974
|
-
return l[Symbol.iterator] = () => {
|
|
2975
|
-
let c = 0;
|
|
2976
|
-
return {
|
|
2977
|
-
next() {
|
|
2978
|
-
return c < 2 ? { value: c++ ? o || H : l, done: !1 } : { done: !0 };
|
|
2979
|
-
}
|
|
2980
|
-
};
|
|
2981
|
-
}, l;
|
|
2982
|
-
}
|
|
2983
|
-
const ri = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${Le(t)}Modifiers`] || e[`${Je(t)}Modifiers`];
|
|
2984
|
-
function pl(e, t, ...s) {
|
|
2985
|
-
if (e.isUnmounted) return;
|
|
2986
|
-
const n = e.vnode.props || H;
|
|
2987
|
-
let r = s;
|
|
2988
|
-
const i = t.startsWith("update:"), o = i && ri(n, t.slice(7));
|
|
2989
|
-
o && (o.trim && (r = s.map((u) => Q(u) ? u.trim() : u)), o.number && (r = s.map(Wi)));
|
|
2990
|
-
let l, c = n[l = Cs(t)] || // also try camelCase event handler (#2249)
|
|
2991
|
-
n[l = Cs(Le(t))];
|
|
2992
|
-
!c && i && (c = n[l = Cs(Je(t))]), c && Pe(
|
|
2993
|
-
c,
|
|
2994
|
-
e,
|
|
2995
|
-
6,
|
|
2996
|
-
r
|
|
2997
|
-
);
|
|
2998
|
-
const h = n[l + "Once"];
|
|
2999
|
-
if (h) {
|
|
3000
|
-
if (!e.emitted)
|
|
3001
|
-
e.emitted = {};
|
|
3002
|
-
else if (e.emitted[l])
|
|
3003
|
-
return;
|
|
3004
|
-
e.emitted[l] = !0, Pe(
|
|
3005
|
-
h,
|
|
3006
|
-
e,
|
|
3007
|
-
6,
|
|
3008
|
-
r
|
|
3009
|
-
);
|
|
3010
|
-
}
|
|
3011
|
-
}
|
|
3012
|
-
const ml = /* @__PURE__ */ new WeakMap();
|
|
3013
|
-
function ii(e, t, s = !1) {
|
|
3014
|
-
const n = s ? ml : t.emitsCache, r = n.get(e);
|
|
3015
|
-
if (r !== void 0)
|
|
3016
|
-
return r;
|
|
3017
|
-
const i = e.emits;
|
|
3018
|
-
let o = {}, l = !1;
|
|
3019
|
-
if (!F(e)) {
|
|
3020
|
-
const c = (h) => {
|
|
3021
|
-
const u = ii(h, t, !0);
|
|
3022
|
-
u && (l = !0, te(o, u));
|
|
3023
|
-
};
|
|
3024
|
-
!s && t.mixins.length && t.mixins.forEach(c), e.extends && c(e.extends), e.mixins && e.mixins.forEach(c);
|
|
3025
|
-
}
|
|
3026
|
-
return !i && !l ? (J(e) && n.set(e, null), null) : (O(i) ? i.forEach((c) => o[c] = null) : te(o, i), J(e) && n.set(e, o), o);
|
|
3027
|
-
}
|
|
3028
|
-
function _s(e, t) {
|
|
3029
|
-
return !e || !cs(t) ? !1 : (t = t.slice(2).replace(/Once$/, ""), B(e, t[0].toLowerCase() + t.slice(1)) || B(e, Je(t)) || B(e, t));
|
|
3030
|
-
}
|
|
3031
|
-
function Vn(e) {
|
|
3032
|
-
const {
|
|
3033
|
-
type: t,
|
|
3034
|
-
vnode: s,
|
|
3035
|
-
proxy: n,
|
|
3036
|
-
withProxy: r,
|
|
3037
|
-
propsOptions: [i],
|
|
3038
|
-
slots: o,
|
|
3039
|
-
attrs: l,
|
|
3040
|
-
emit: c,
|
|
3041
|
-
render: h,
|
|
3042
|
-
renderCache: u,
|
|
3043
|
-
props: d,
|
|
3044
|
-
data: p,
|
|
3045
|
-
setupState: v,
|
|
3046
|
-
ctx: x,
|
|
3047
|
-
inheritAttrs: $
|
|
3048
|
-
} = e, U = ts(e);
|
|
3049
|
-
let I, R;
|
|
3050
|
-
try {
|
|
3051
|
-
if (s.shapeFlag & 4) {
|
|
3052
|
-
const T = r || n, N = T;
|
|
3053
|
-
I = Te(
|
|
3054
|
-
h.call(
|
|
3055
|
-
N,
|
|
3056
|
-
T,
|
|
3057
|
-
u,
|
|
3058
|
-
d,
|
|
3059
|
-
v,
|
|
3060
|
-
p,
|
|
3061
|
-
x
|
|
3062
|
-
)
|
|
3063
|
-
), R = l;
|
|
3064
|
-
} else {
|
|
3065
|
-
const T = t;
|
|
3066
|
-
I = Te(
|
|
3067
|
-
T.length > 1 ? T(
|
|
3068
|
-
d,
|
|
3069
|
-
{ attrs: l, slots: o, emit: c }
|
|
3070
|
-
) : T(
|
|
3071
|
-
d,
|
|
3072
|
-
null
|
|
3073
|
-
)
|
|
3074
|
-
), R = t.props ? l : gl(l);
|
|
3075
|
-
}
|
|
3076
|
-
} catch (T) {
|
|
3077
|
-
Ot.length = 0, ms(T, e, 1), I = Re(Ke);
|
|
3078
|
-
}
|
|
3079
|
-
let L = I;
|
|
3080
|
-
if (R && $ !== !1) {
|
|
3081
|
-
const T = Object.keys(R), { shapeFlag: N } = L;
|
|
3082
|
-
T.length && N & 7 && (i && T.some(Ys) && (R = _l(
|
|
3083
|
-
R,
|
|
3084
|
-
i
|
|
3085
|
-
)), L = mt(L, R, !1, !0));
|
|
3086
|
-
}
|
|
3087
|
-
return s.dirs && (L = mt(L, null, !1, !0), L.dirs = L.dirs ? L.dirs.concat(s.dirs) : s.dirs), s.transition && an(L, s.transition), I = L, ts(U), I;
|
|
3088
|
-
}
|
|
3089
|
-
const gl = (e) => {
|
|
3090
|
-
let t;
|
|
3091
|
-
for (const s in e)
|
|
3092
|
-
(s === "class" || s === "style" || cs(s)) && ((t || (t = {}))[s] = e[s]);
|
|
3093
|
-
return t;
|
|
3094
|
-
}, _l = (e, t) => {
|
|
3095
|
-
const s = {};
|
|
3096
|
-
for (const n in e)
|
|
3097
|
-
(!Ys(n) || !(n.slice(9) in t)) && (s[n] = e[n]);
|
|
3098
|
-
return s;
|
|
3099
|
-
};
|
|
3100
|
-
function vl(e, t, s) {
|
|
3101
|
-
const { props: n, children: r, component: i } = e, { props: o, children: l, patchFlag: c } = t, h = i.emitsOptions;
|
|
3102
|
-
if (t.dirs || t.transition)
|
|
3103
|
-
return !0;
|
|
3104
|
-
if (s && c >= 0) {
|
|
3105
|
-
if (c & 1024)
|
|
3106
|
-
return !0;
|
|
3107
|
-
if (c & 16)
|
|
3108
|
-
return n ? Bn(n, o, h) : !!o;
|
|
3109
|
-
if (c & 8) {
|
|
3110
|
-
const u = t.dynamicProps;
|
|
3111
|
-
for (let d = 0; d < u.length; d++) {
|
|
3112
|
-
const p = u[d];
|
|
3113
|
-
if (o[p] !== n[p] && !_s(h, p))
|
|
3114
|
-
return !0;
|
|
3115
|
-
}
|
|
3116
|
-
}
|
|
3117
|
-
} else
|
|
3118
|
-
return (r || l) && (!l || !l.$stable) ? !0 : n === o ? !1 : n ? o ? Bn(n, o, h) : !0 : !!o;
|
|
3119
|
-
return !1;
|
|
3120
|
-
}
|
|
3121
|
-
function Bn(e, t, s) {
|
|
3122
|
-
const n = Object.keys(t);
|
|
3123
|
-
if (n.length !== Object.keys(e).length)
|
|
3124
|
-
return !0;
|
|
3125
|
-
for (let r = 0; r < n.length; r++) {
|
|
3126
|
-
const i = n[r];
|
|
3127
|
-
if (t[i] !== e[i] && !_s(s, i))
|
|
3128
|
-
return !0;
|
|
3129
|
-
}
|
|
3130
|
-
return !1;
|
|
3131
|
-
}
|
|
3132
|
-
function bl({ vnode: e, parent: t }, s) {
|
|
3133
|
-
for (; t; ) {
|
|
3134
|
-
const n = t.subTree;
|
|
3135
|
-
if (n.suspense && n.suspense.activeBranch === e && (n.el = e.el), n === e)
|
|
3136
|
-
(e = t.vnode).el = s, t = t.parent;
|
|
3137
|
-
else
|
|
3138
|
-
break;
|
|
3139
|
-
}
|
|
3140
|
-
}
|
|
3141
|
-
const oi = (e) => e.__isSuspense;
|
|
3142
|
-
function yl(e, t) {
|
|
3143
|
-
t && t.pendingBranch ? O(e) ? t.effects.push(...e) : t.effects.push(e) : Io(e);
|
|
3144
|
-
}
|
|
3145
|
-
const ge = Symbol.for("v-fgt"), vs = Symbol.for("v-txt"), Ke = Symbol.for("v-cmt"), Is = Symbol.for("v-stc"), Ot = [];
|
|
3146
|
-
let de = null;
|
|
3147
|
-
function Ve(e = !1) {
|
|
3148
|
-
Ot.push(de = e ? null : []);
|
|
3149
|
-
}
|
|
3150
|
-
function xl() {
|
|
3151
|
-
Ot.pop(), de = Ot[Ot.length - 1] || null;
|
|
3152
|
-
}
|
|
3153
|
-
let Lt = 1;
|
|
3154
|
-
function kn(e, t = !1) {
|
|
3155
|
-
Lt += e, e < 0 && de && t && (de.hasOnce = !0);
|
|
3156
|
-
}
|
|
3157
|
-
function li(e) {
|
|
3158
|
-
return e.dynamicChildren = Lt > 0 ? de || at : null, xl(), Lt > 0 && de && de.push(e), e;
|
|
3159
|
-
}
|
|
3160
|
-
function ct(e, t, s, n, r, i) {
|
|
3161
|
-
return li(
|
|
3162
|
-
is(
|
|
3163
|
-
e,
|
|
3164
|
-
t,
|
|
3165
|
-
s,
|
|
3166
|
-
n,
|
|
3167
|
-
r,
|
|
3168
|
-
i,
|
|
3169
|
-
!0
|
|
3170
|
-
)
|
|
3171
|
-
);
|
|
3172
|
-
}
|
|
3173
|
-
function ci(e, t, s, n, r) {
|
|
3174
|
-
return li(
|
|
3175
|
-
Re(
|
|
3176
|
-
e,
|
|
3177
|
-
t,
|
|
3178
|
-
s,
|
|
3179
|
-
n,
|
|
3180
|
-
r,
|
|
3181
|
-
!0
|
|
3182
|
-
)
|
|
3183
|
-
);
|
|
3184
|
-
}
|
|
3185
|
-
function ai(e) {
|
|
3186
|
-
return e ? e.__v_isVNode === !0 : !1;
|
|
3187
|
-
}
|
|
3188
|
-
function Ct(e, t) {
|
|
3189
|
-
return e.type === t.type && e.key === t.key;
|
|
3190
|
-
}
|
|
3191
|
-
const ui = ({ key: e }) => e ?? null, Yt = ({
|
|
3192
|
-
ref: e,
|
|
3193
|
-
ref_key: t,
|
|
3194
|
-
ref_for: s
|
|
3195
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ? Q(e) || ee(e) || F(e) ? { i: $e, r: e, k: t, f: !!s } : e : null);
|
|
3196
|
-
function is(e, t = null, s = null, n = 0, r = null, i = e === ge ? 0 : 1, o = !1, l = !1) {
|
|
3197
|
-
const c = {
|
|
3198
|
-
__v_isVNode: !0,
|
|
3199
|
-
__v_skip: !0,
|
|
3200
|
-
type: e,
|
|
3201
|
-
props: t,
|
|
3202
|
-
key: t && ui(t),
|
|
3203
|
-
ref: t && Yt(t),
|
|
3204
|
-
scopeId: Rr,
|
|
3205
|
-
slotScopeIds: null,
|
|
3206
|
-
children: s,
|
|
3207
|
-
component: null,
|
|
3208
|
-
suspense: null,
|
|
3209
|
-
ssContent: null,
|
|
3210
|
-
ssFallback: null,
|
|
3211
|
-
dirs: null,
|
|
3212
|
-
transition: null,
|
|
3213
|
-
el: null,
|
|
3214
|
-
anchor: null,
|
|
3215
|
-
target: null,
|
|
3216
|
-
targetStart: null,
|
|
3217
|
-
targetAnchor: null,
|
|
3218
|
-
staticCount: 0,
|
|
3219
|
-
shapeFlag: i,
|
|
3220
|
-
patchFlag: n,
|
|
3221
|
-
dynamicProps: r,
|
|
3222
|
-
dynamicChildren: null,
|
|
3223
|
-
appContext: null,
|
|
3224
|
-
ctx: $e
|
|
3225
|
-
};
|
|
3226
|
-
return l ? (pn(c, s), i & 128 && e.normalize(c)) : s && (c.shapeFlag |= Q(s) ? 8 : 16), Lt > 0 && // avoid a block node from tracking itself
|
|
3227
|
-
!o && // has current parent block
|
|
3228
|
-
de && // presence of a patch flag indicates this node needs patching on updates.
|
|
3229
|
-
// component nodes also should always be patched, because even if the
|
|
3230
|
-
// component doesn't need to update, it needs to persist the instance on to
|
|
3231
|
-
// the next vnode so that it can be properly unmounted later.
|
|
3232
|
-
(c.patchFlag > 0 || i & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
|
|
3233
|
-
// vnode should not be considered dynamic due to handler caching.
|
|
3234
|
-
c.patchFlag !== 32 && de.push(c), c;
|
|
3235
|
-
}
|
|
3236
|
-
const Re = Cl;
|
|
3237
|
-
function Cl(e, t = null, s = null, n = 0, r = null, i = !1) {
|
|
3238
|
-
if ((!e || e === Ko) && (e = Ke), ai(e)) {
|
|
3239
|
-
const l = mt(
|
|
3240
|
-
e,
|
|
3241
|
-
t,
|
|
3242
|
-
!0
|
|
3243
|
-
/* mergeRef: true */
|
|
3244
|
-
);
|
|
3245
|
-
return s && pn(l, s), Lt > 0 && !i && de && (l.shapeFlag & 6 ? de[de.indexOf(e)] = l : de.push(l)), l.patchFlag = -2, l;
|
|
3246
|
-
}
|
|
3247
|
-
if (Fl(e) && (e = e.__vccOpts), t) {
|
|
3248
|
-
t = El(t);
|
|
3249
|
-
let { class: l, style: c } = t;
|
|
3250
|
-
l && !Q(l) && (t.class = hs(l)), J(c) && (ln(c) && !O(c) && (c = te({}, c)), t.style = Zs(c));
|
|
3251
|
-
}
|
|
3252
|
-
const o = Q(e) ? 1 : oi(e) ? 128 : Fo(e) ? 64 : J(e) ? 4 : F(e) ? 2 : 0;
|
|
3253
|
-
return is(
|
|
3254
|
-
e,
|
|
3255
|
-
t,
|
|
3256
|
-
s,
|
|
3257
|
-
n,
|
|
3258
|
-
r,
|
|
3259
|
-
o,
|
|
3260
|
-
i,
|
|
3261
|
-
!0
|
|
3262
|
-
);
|
|
3263
|
-
}
|
|
3264
|
-
function El(e) {
|
|
3265
|
-
return e ? ln(e) || Gr(e) ? te({}, e) : e : null;
|
|
3266
|
-
}
|
|
3267
|
-
function mt(e, t, s = !1, n = !1) {
|
|
3268
|
-
const { props: r, ref: i, patchFlag: o, children: l, transition: c } = e, h = t ? fi(r || {}, t) : r, u = {
|
|
3269
|
-
__v_isVNode: !0,
|
|
3270
|
-
__v_skip: !0,
|
|
3271
|
-
type: e.type,
|
|
3272
|
-
props: h,
|
|
3273
|
-
key: h && ui(h),
|
|
3274
|
-
ref: t && t.ref ? (
|
|
3275
|
-
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
3276
|
-
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
3277
|
-
// the refs so the single vnode can be set on multiple refs
|
|
3278
|
-
s && i ? O(i) ? i.concat(Yt(t)) : [i, Yt(t)] : Yt(t)
|
|
3279
|
-
) : i,
|
|
3280
|
-
scopeId: e.scopeId,
|
|
3281
|
-
slotScopeIds: e.slotScopeIds,
|
|
3282
|
-
children: l,
|
|
3283
|
-
target: e.target,
|
|
3284
|
-
targetStart: e.targetStart,
|
|
3285
|
-
targetAnchor: e.targetAnchor,
|
|
3286
|
-
staticCount: e.staticCount,
|
|
3287
|
-
shapeFlag: e.shapeFlag,
|
|
3288
|
-
// if the vnode is cloned with extra props, we can no longer assume its
|
|
3289
|
-
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
3290
|
-
// note: preserve flag for fragments since they use the flag for children
|
|
3291
|
-
// fast paths only.
|
|
3292
|
-
patchFlag: t && e.type !== ge ? o === -1 ? 16 : o | 16 : o,
|
|
3293
|
-
dynamicProps: e.dynamicProps,
|
|
3294
|
-
dynamicChildren: e.dynamicChildren,
|
|
3295
|
-
appContext: e.appContext,
|
|
3296
|
-
dirs: e.dirs,
|
|
3297
|
-
transition: c,
|
|
3298
|
-
// These should technically only be non-null on mounted VNodes. However,
|
|
3299
|
-
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
3300
|
-
// them since them being non-null during a mount doesn't affect the logic as
|
|
3301
|
-
// they will simply be overwritten.
|
|
3302
|
-
component: e.component,
|
|
3303
|
-
suspense: e.suspense,
|
|
3304
|
-
ssContent: e.ssContent && mt(e.ssContent),
|
|
3305
|
-
ssFallback: e.ssFallback && mt(e.ssFallback),
|
|
3306
|
-
placeholder: e.placeholder,
|
|
3307
|
-
el: e.el,
|
|
3308
|
-
anchor: e.anchor,
|
|
3309
|
-
ctx: e.ctx,
|
|
3310
|
-
ce: e.ce
|
|
3311
|
-
};
|
|
3312
|
-
return c && n && an(
|
|
3313
|
-
u,
|
|
3314
|
-
c.clone(u)
|
|
3315
|
-
), u;
|
|
3316
|
-
}
|
|
3317
|
-
function Sl(e = " ", t = 0) {
|
|
3318
|
-
return Re(vs, null, e, t);
|
|
3319
|
-
}
|
|
3320
|
-
function wl(e = "", t = !1) {
|
|
3321
|
-
return t ? (Ve(), ci(Ke, null, e)) : Re(Ke, null, e);
|
|
3322
|
-
}
|
|
3323
|
-
function Te(e) {
|
|
3324
|
-
return e == null || typeof e == "boolean" ? Re(Ke) : O(e) ? Re(
|
|
3325
|
-
ge,
|
|
3326
|
-
null,
|
|
3327
|
-
// #3666, avoid reference pollution when reusing vnode
|
|
3328
|
-
e.slice()
|
|
3329
|
-
) : ai(e) ? Be(e) : Re(vs, null, String(e));
|
|
3330
|
-
}
|
|
3331
|
-
function Be(e) {
|
|
3332
|
-
return e.el === null && e.patchFlag !== -1 || e.memo ? e : mt(e);
|
|
3333
|
-
}
|
|
3334
|
-
function pn(e, t) {
|
|
3335
|
-
let s = 0;
|
|
3336
|
-
const { shapeFlag: n } = e;
|
|
3337
|
-
if (t == null)
|
|
3338
|
-
t = null;
|
|
3339
|
-
else if (O(t))
|
|
3340
|
-
s = 16;
|
|
3341
|
-
else if (typeof t == "object")
|
|
3342
|
-
if (n & 65) {
|
|
3343
|
-
const r = t.default;
|
|
3344
|
-
r && (r._c && (r._d = !1), pn(e, r()), r._c && (r._d = !0));
|
|
3345
|
-
return;
|
|
3346
|
-
} else {
|
|
3347
|
-
s = 32;
|
|
3348
|
-
const r = t._;
|
|
3349
|
-
!r && !Gr(t) ? t._ctx = $e : r === 3 && $e && ($e.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
|
|
3350
|
-
}
|
|
3351
|
-
else F(t) ? (t = { default: t, _ctx: $e }, s = 32) : (t = String(t), n & 64 ? (s = 16, t = [Sl(t)]) : s = 8);
|
|
3352
|
-
e.children = t, e.shapeFlag |= s;
|
|
3353
|
-
}
|
|
3354
|
-
function fi(...e) {
|
|
3355
|
-
const t = {};
|
|
3356
|
-
for (let s = 0; s < e.length; s++) {
|
|
3357
|
-
const n = e[s];
|
|
3358
|
-
for (const r in n)
|
|
3359
|
-
if (r === "class")
|
|
3360
|
-
t.class !== n.class && (t.class = hs([t.class, n.class]));
|
|
3361
|
-
else if (r === "style")
|
|
3362
|
-
t.style = Zs([t.style, n.style]);
|
|
3363
|
-
else if (cs(r)) {
|
|
3364
|
-
const i = t[r], o = n[r];
|
|
3365
|
-
o && i !== o && !(O(i) && i.includes(o)) && (t[r] = i ? [].concat(i, o) : o);
|
|
3366
|
-
} else r !== "" && (t[r] = n[r]);
|
|
3367
|
-
}
|
|
3368
|
-
return t;
|
|
3369
|
-
}
|
|
3370
|
-
function Se(e, t, s, n = null) {
|
|
3371
|
-
Pe(e, t, 7, [
|
|
3372
|
-
s,
|
|
3373
|
-
n
|
|
3374
|
-
]);
|
|
3375
|
-
}
|
|
3376
|
-
const Tl = Kr();
|
|
3377
|
-
let $l = 0;
|
|
3378
|
-
function Al(e, t, s) {
|
|
3379
|
-
const n = e.type, r = (t ? t.appContext : e.appContext) || Tl, i = {
|
|
3380
|
-
uid: $l++,
|
|
3381
|
-
vnode: e,
|
|
3382
|
-
type: n,
|
|
3383
|
-
parent: t,
|
|
3384
|
-
appContext: r,
|
|
3385
|
-
root: null,
|
|
3386
|
-
// to be immediately set
|
|
3387
|
-
next: null,
|
|
3388
|
-
subTree: null,
|
|
3389
|
-
// will be set synchronously right after creation
|
|
3390
|
-
effect: null,
|
|
3391
|
-
update: null,
|
|
3392
|
-
// will be set synchronously right after creation
|
|
3393
|
-
job: null,
|
|
3394
|
-
scope: new Xi(
|
|
3395
|
-
!0
|
|
3396
|
-
/* detached */
|
|
3397
|
-
),
|
|
3398
|
-
render: null,
|
|
3399
|
-
proxy: null,
|
|
3400
|
-
exposed: null,
|
|
3401
|
-
exposeProxy: null,
|
|
3402
|
-
withProxy: null,
|
|
3403
|
-
provides: t ? t.provides : Object.create(r.provides),
|
|
3404
|
-
ids: t ? t.ids : ["", 0, 0],
|
|
3405
|
-
accessCache: null,
|
|
3406
|
-
renderCache: [],
|
|
3407
|
-
// local resolved assets
|
|
3408
|
-
components: null,
|
|
3409
|
-
directives: null,
|
|
3410
|
-
// resolved props and emits options
|
|
3411
|
-
propsOptions: Xr(n, r),
|
|
3412
|
-
emitsOptions: ii(n, r),
|
|
3413
|
-
// emit
|
|
3414
|
-
emit: null,
|
|
3415
|
-
// to be set immediately
|
|
3416
|
-
emitted: null,
|
|
3417
|
-
// props default value
|
|
3418
|
-
propsDefaults: H,
|
|
3419
|
-
// inheritAttrs
|
|
3420
|
-
inheritAttrs: n.inheritAttrs,
|
|
3421
|
-
// state
|
|
3422
|
-
ctx: H,
|
|
3423
|
-
data: H,
|
|
3424
|
-
props: H,
|
|
3425
|
-
attrs: H,
|
|
3426
|
-
slots: H,
|
|
3427
|
-
refs: H,
|
|
3428
|
-
setupState: H,
|
|
3429
|
-
setupContext: null,
|
|
3430
|
-
// suspense related
|
|
3431
|
-
suspense: s,
|
|
3432
|
-
suspenseId: s ? s.pendingId : 0,
|
|
3433
|
-
asyncDep: null,
|
|
3434
|
-
asyncResolved: !1,
|
|
3435
|
-
// lifecycle hooks
|
|
3436
|
-
// not using enums here because it results in computed properties
|
|
3437
|
-
isMounted: !1,
|
|
3438
|
-
isUnmounted: !1,
|
|
3439
|
-
isDeactivated: !1,
|
|
3440
|
-
bc: null,
|
|
3441
|
-
c: null,
|
|
3442
|
-
bm: null,
|
|
3443
|
-
m: null,
|
|
3444
|
-
bu: null,
|
|
3445
|
-
u: null,
|
|
3446
|
-
um: null,
|
|
3447
|
-
bum: null,
|
|
3448
|
-
da: null,
|
|
3449
|
-
a: null,
|
|
3450
|
-
rtg: null,
|
|
3451
|
-
rtc: null,
|
|
3452
|
-
ec: null,
|
|
3453
|
-
sp: null
|
|
3454
|
-
};
|
|
3455
|
-
return i.ctx = { _: i }, i.root = t ? t.root : i, i.emit = pl.bind(null, i), e.ce && e.ce(i), i;
|
|
3456
|
-
}
|
|
3457
|
-
let oe = null;
|
|
3458
|
-
const mn = () => oe || $e;
|
|
3459
|
-
let os, Ws;
|
|
3460
|
-
{
|
|
3461
|
-
const e = fs(), t = (s, n) => {
|
|
3462
|
-
let r;
|
|
3463
|
-
return (r = e[s]) || (r = e[s] = []), r.push(n), (i) => {
|
|
3464
|
-
r.length > 1 ? r.forEach((o) => o(i)) : r[0](i);
|
|
3465
|
-
};
|
|
3466
|
-
};
|
|
3467
|
-
os = t(
|
|
3468
|
-
"__VUE_INSTANCE_SETTERS__",
|
|
3469
|
-
(s) => oe = s
|
|
3470
|
-
), Ws = t(
|
|
3471
|
-
"__VUE_SSR_SETTERS__",
|
|
3472
|
-
(s) => Dt = s
|
|
3473
|
-
);
|
|
3474
|
-
}
|
|
3475
|
-
const Ht = (e) => {
|
|
3476
|
-
const t = oe;
|
|
3477
|
-
return os(e), e.scope.on(), () => {
|
|
3478
|
-
e.scope.off(), os(t);
|
|
3479
|
-
};
|
|
3480
|
-
}, Wn = () => {
|
|
3481
|
-
oe && oe.scope.off(), os(null);
|
|
3482
|
-
};
|
|
3483
|
-
function hi(e) {
|
|
3484
|
-
return e.vnode.shapeFlag & 4;
|
|
3485
|
-
}
|
|
3486
|
-
let Dt = !1;
|
|
3487
|
-
function Pl(e, t = !1, s = !1) {
|
|
3488
|
-
t && Ws(t);
|
|
3489
|
-
const { props: n, children: r } = e.vnode, i = hi(e);
|
|
3490
|
-
el(e, n, i, t), rl(e, r, s || t);
|
|
3491
|
-
const o = i ? Il(e, t) : void 0;
|
|
3492
|
-
return t && Ws(!1), o;
|
|
3493
|
-
}
|
|
3494
|
-
function Il(e, t) {
|
|
3495
|
-
const s = e.type;
|
|
3496
|
-
e.accessCache = /* @__PURE__ */ Object.create(null), e.proxy = new Proxy(e.ctx, qo);
|
|
3497
|
-
const { setup: n } = s;
|
|
3498
|
-
if (n) {
|
|
3499
|
-
De();
|
|
3500
|
-
const r = e.setupContext = n.length > 1 ? Ol(e) : null, i = Ht(e), o = jt(
|
|
3501
|
-
n,
|
|
3502
|
-
e,
|
|
3503
|
-
0,
|
|
3504
|
-
[
|
|
3505
|
-
e.props,
|
|
3506
|
-
r
|
|
3507
|
-
]
|
|
3508
|
-
), l = lr(o);
|
|
3509
|
-
if (je(), i(), (l || e.sp) && !Pt(e) && Dr(e), l) {
|
|
3510
|
-
if (o.then(Wn, Wn), t)
|
|
3511
|
-
return o.then((c) => {
|
|
3512
|
-
Kn(e, c);
|
|
3513
|
-
}).catch((c) => {
|
|
3514
|
-
ms(c, e, 0);
|
|
3515
|
-
});
|
|
3516
|
-
e.asyncDep = o;
|
|
3517
|
-
} else
|
|
3518
|
-
Kn(e, o);
|
|
3519
|
-
} else
|
|
3520
|
-
di(e);
|
|
3521
|
-
}
|
|
3522
|
-
function Kn(e, t, s) {
|
|
3523
|
-
F(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : J(t) && (e.setupState = Ir(t)), di(e);
|
|
3524
|
-
}
|
|
3525
|
-
function di(e, t, s) {
|
|
3526
|
-
const n = e.type;
|
|
3527
|
-
e.render || (e.render = n.render || Ae);
|
|
3528
|
-
{
|
|
3529
|
-
const r = Ht(e);
|
|
3530
|
-
De();
|
|
3531
|
-
try {
|
|
3532
|
-
zo(e);
|
|
3533
|
-
} finally {
|
|
3534
|
-
je(), r();
|
|
3535
|
-
}
|
|
3536
|
-
}
|
|
3537
|
-
}
|
|
3538
|
-
const Ml = {
|
|
3539
|
-
get(e, t) {
|
|
3540
|
-
return se(e, "get", ""), e[t];
|
|
3541
|
-
}
|
|
3542
|
-
};
|
|
3543
|
-
function Ol(e) {
|
|
3544
|
-
const t = (s) => {
|
|
3545
|
-
e.exposed = s || {};
|
|
3546
|
-
};
|
|
3547
|
-
return {
|
|
3548
|
-
attrs: new Proxy(e.attrs, Ml),
|
|
3549
|
-
slots: e.slots,
|
|
3550
|
-
emit: e.emit,
|
|
3551
|
-
expose: t
|
|
3552
|
-
};
|
|
3553
|
-
}
|
|
3554
|
-
function gn(e) {
|
|
3555
|
-
return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(Ir(bo(e.exposed)), {
|
|
3556
|
-
get(t, s) {
|
|
3557
|
-
if (s in t)
|
|
3558
|
-
return t[s];
|
|
3559
|
-
if (s in It)
|
|
3560
|
-
return It[s](e);
|
|
3561
|
-
},
|
|
3562
|
-
has(t, s) {
|
|
3563
|
-
return s in t || s in It;
|
|
3564
|
-
}
|
|
3565
|
-
})) : e.proxy;
|
|
3566
|
-
}
|
|
3567
|
-
function Fl(e) {
|
|
3568
|
-
return F(e) && "__vccOpts" in e;
|
|
3569
|
-
}
|
|
3570
|
-
const pi = (e, t) => wo(e, t, Dt), Nl = "3.5.22";
|
|
3571
|
-
/**
|
|
3572
|
-
* @vue/runtime-dom v3.5.22
|
|
3573
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
3574
|
-
* @license MIT
|
|
3575
|
-
**/
|
|
3576
|
-
let Ks;
|
|
3577
|
-
const qn = typeof window < "u" && window.trustedTypes;
|
|
3578
|
-
if (qn)
|
|
3579
|
-
try {
|
|
3580
|
-
Ks = /* @__PURE__ */ qn.createPolicy("vue", {
|
|
3581
|
-
createHTML: (e) => e
|
|
3582
|
-
});
|
|
3583
|
-
} catch {
|
|
3584
|
-
}
|
|
3585
|
-
const mi = Ks ? (e) => Ks.createHTML(e) : (e) => e, Rl = "http://www.w3.org/2000/svg", Ll = "http://www.w3.org/1998/Math/MathML", Fe = typeof document < "u" ? document : null, zn = Fe && /* @__PURE__ */ Fe.createElement("template"), Dl = {
|
|
3586
|
-
insert: (e, t, s) => {
|
|
3587
|
-
t.insertBefore(e, s || null);
|
|
3588
|
-
},
|
|
3589
|
-
remove: (e) => {
|
|
3590
|
-
const t = e.parentNode;
|
|
3591
|
-
t && t.removeChild(e);
|
|
3592
|
-
},
|
|
3593
|
-
createElement: (e, t, s, n) => {
|
|
3594
|
-
const r = t === "svg" ? Fe.createElementNS(Rl, e) : t === "mathml" ? Fe.createElementNS(Ll, e) : s ? Fe.createElement(e, { is: s }) : Fe.createElement(e);
|
|
3595
|
-
return e === "select" && n && n.multiple != null && r.setAttribute("multiple", n.multiple), r;
|
|
3596
|
-
},
|
|
3597
|
-
createText: (e) => Fe.createTextNode(e),
|
|
3598
|
-
createComment: (e) => Fe.createComment(e),
|
|
3599
|
-
setText: (e, t) => {
|
|
3600
|
-
e.nodeValue = t;
|
|
3601
|
-
},
|
|
3602
|
-
setElementText: (e, t) => {
|
|
3603
|
-
e.textContent = t;
|
|
3604
|
-
},
|
|
3605
|
-
parentNode: (e) => e.parentNode,
|
|
3606
|
-
nextSibling: (e) => e.nextSibling,
|
|
3607
|
-
querySelector: (e) => Fe.querySelector(e),
|
|
3608
|
-
setScopeId(e, t) {
|
|
3609
|
-
e.setAttribute(t, "");
|
|
3610
|
-
},
|
|
3611
|
-
// __UNSAFE__
|
|
3612
|
-
// Reason: innerHTML.
|
|
3613
|
-
// Static content here can only come from compiled templates.
|
|
3614
|
-
// As long as the user only uses trusted templates, this is safe.
|
|
3615
|
-
insertStaticContent(e, t, s, n, r, i) {
|
|
3616
|
-
const o = s ? s.previousSibling : t.lastChild;
|
|
3617
|
-
if (r && (r === i || r.nextSibling))
|
|
3618
|
-
for (; t.insertBefore(r.cloneNode(!0), s), !(r === i || !(r = r.nextSibling)); )
|
|
3619
|
-
;
|
|
3620
|
-
else {
|
|
3621
|
-
zn.innerHTML = mi(
|
|
3622
|
-
n === "svg" ? `<svg>${e}</svg>` : n === "mathml" ? `<math>${e}</math>` : e
|
|
3623
|
-
);
|
|
3624
|
-
const l = zn.content;
|
|
3625
|
-
if (n === "svg" || n === "mathml") {
|
|
3626
|
-
const c = l.firstChild;
|
|
3627
|
-
for (; c.firstChild; )
|
|
3628
|
-
l.appendChild(c.firstChild);
|
|
3629
|
-
l.removeChild(c);
|
|
3630
|
-
}
|
|
3631
|
-
t.insertBefore(l, s);
|
|
3632
|
-
}
|
|
3633
|
-
return [
|
|
3634
|
-
// first
|
|
3635
|
-
o ? o.nextSibling : t.firstChild,
|
|
3636
|
-
// last
|
|
3637
|
-
s ? s.previousSibling : t.lastChild
|
|
3638
|
-
];
|
|
3639
|
-
}
|
|
3640
|
-
}, jl = Symbol("_vtc");
|
|
3641
|
-
function Hl(e, t, s) {
|
|
3642
|
-
const n = e[jl];
|
|
3643
|
-
n && (t = (t ? [t, ...n] : [...n]).join(" ")), t == null ? e.removeAttribute("class") : s ? e.setAttribute("class", t) : e.className = t;
|
|
3644
|
-
}
|
|
3645
|
-
const Jn = Symbol("_vod"), Ul = Symbol("_vsh"), Vl = Symbol(""), Bl = /(?:^|;)\s*display\s*:/;
|
|
3646
|
-
function kl(e, t, s) {
|
|
3647
|
-
const n = e.style, r = Q(s);
|
|
3648
|
-
let i = !1;
|
|
3649
|
-
if (s && !r) {
|
|
3650
|
-
if (t)
|
|
3651
|
-
if (Q(t))
|
|
3652
|
-
for (const o of t.split(";")) {
|
|
3653
|
-
const l = o.slice(0, o.indexOf(":")).trim();
|
|
3654
|
-
s[l] == null && Xt(n, l, "");
|
|
3655
|
-
}
|
|
3656
|
-
else
|
|
3657
|
-
for (const o in t)
|
|
3658
|
-
s[o] == null && Xt(n, o, "");
|
|
3659
|
-
for (const o in s)
|
|
3660
|
-
o === "display" && (i = !0), Xt(n, o, s[o]);
|
|
3661
|
-
} else if (r) {
|
|
3662
|
-
if (t !== s) {
|
|
3663
|
-
const o = n[Vl];
|
|
3664
|
-
o && (s += ";" + o), n.cssText = s, i = Bl.test(s);
|
|
3665
|
-
}
|
|
3666
|
-
} else t && e.removeAttribute("style");
|
|
3667
|
-
Jn in e && (e[Jn] = i ? n.display : "", e[Ul] && (n.display = "none"));
|
|
3668
|
-
}
|
|
3669
|
-
const Gn = /\s*!important$/;
|
|
3670
|
-
function Xt(e, t, s) {
|
|
3671
|
-
if (O(s))
|
|
3672
|
-
s.forEach((n) => Xt(e, t, n));
|
|
3673
|
-
else if (s == null && (s = ""), t.startsWith("--"))
|
|
3674
|
-
e.setProperty(t, s);
|
|
3675
|
-
else {
|
|
3676
|
-
const n = Wl(e, t);
|
|
3677
|
-
Gn.test(s) ? e.setProperty(
|
|
3678
|
-
Je(n),
|
|
3679
|
-
s.replace(Gn, ""),
|
|
3680
|
-
"important"
|
|
3681
|
-
) : e[n] = s;
|
|
3682
|
-
}
|
|
3683
|
-
}
|
|
3684
|
-
const Yn = ["Webkit", "Moz", "ms"], Ms = {};
|
|
3685
|
-
function Wl(e, t) {
|
|
3686
|
-
const s = Ms[t];
|
|
3687
|
-
if (s)
|
|
3688
|
-
return s;
|
|
3689
|
-
let n = Le(t);
|
|
3690
|
-
if (n !== "filter" && n in e)
|
|
3691
|
-
return Ms[t] = n;
|
|
3692
|
-
n = ur(n);
|
|
3693
|
-
for (let r = 0; r < Yn.length; r++) {
|
|
3694
|
-
const i = Yn[r] + n;
|
|
3695
|
-
if (i in e)
|
|
3696
|
-
return Ms[t] = i;
|
|
3697
|
-
}
|
|
3698
|
-
return t;
|
|
3699
|
-
}
|
|
3700
|
-
const Xn = "http://www.w3.org/1999/xlink";
|
|
3701
|
-
function Qn(e, t, s, n, r, i = Yi(t)) {
|
|
3702
|
-
n && t.startsWith("xlink:") ? s == null ? e.removeAttributeNS(Xn, t.slice(6, t.length)) : e.setAttributeNS(Xn, t, s) : s == null || i && !hr(s) ? e.removeAttribute(t) : e.setAttribute(
|
|
3703
|
-
t,
|
|
3704
|
-
i ? "" : ze(s) ? String(s) : s
|
|
3705
|
-
);
|
|
3706
|
-
}
|
|
3707
|
-
function Zn(e, t, s, n, r) {
|
|
3708
|
-
if (t === "innerHTML" || t === "textContent") {
|
|
3709
|
-
s != null && (e[t] = t === "innerHTML" ? mi(s) : s);
|
|
3710
|
-
return;
|
|
3711
|
-
}
|
|
3712
|
-
const i = e.tagName;
|
|
3713
|
-
if (t === "value" && i !== "PROGRESS" && // custom elements may use _value internally
|
|
3714
|
-
!i.includes("-")) {
|
|
3715
|
-
const l = i === "OPTION" ? e.getAttribute("value") || "" : e.value, c = s == null ? (
|
|
3716
|
-
// #11647: value should be set as empty string for null and undefined,
|
|
3717
|
-
// but <input type="checkbox"> should be set as 'on'.
|
|
3718
|
-
e.type === "checkbox" ? "on" : ""
|
|
3719
|
-
) : String(s);
|
|
3720
|
-
(l !== c || !("_value" in e)) && (e.value = c), s == null && e.removeAttribute(t), e._value = s;
|
|
3721
|
-
return;
|
|
3722
|
-
}
|
|
3723
|
-
let o = !1;
|
|
3724
|
-
if (s === "" || s == null) {
|
|
3725
|
-
const l = typeof e[t];
|
|
3726
|
-
l === "boolean" ? s = hr(s) : s == null && l === "string" ? (s = "", o = !0) : l === "number" && (s = 0, o = !0);
|
|
3727
|
-
}
|
|
3728
|
-
try {
|
|
3729
|
-
e[t] = s;
|
|
3730
|
-
} catch {
|
|
3731
|
-
}
|
|
3732
|
-
o && e.removeAttribute(r || t);
|
|
3733
|
-
}
|
|
3734
|
-
function Kl(e, t, s, n) {
|
|
3735
|
-
e.addEventListener(t, s, n);
|
|
3736
|
-
}
|
|
3737
|
-
function ql(e, t, s, n) {
|
|
3738
|
-
e.removeEventListener(t, s, n);
|
|
3739
|
-
}
|
|
3740
|
-
const er = Symbol("_vei");
|
|
3741
|
-
function zl(e, t, s, n, r = null) {
|
|
3742
|
-
const i = e[er] || (e[er] = {}), o = i[t];
|
|
3743
|
-
if (n && o)
|
|
3744
|
-
o.value = n;
|
|
3745
|
-
else {
|
|
3746
|
-
const [l, c] = Jl(t);
|
|
3747
|
-
if (n) {
|
|
3748
|
-
const h = i[t] = Xl(
|
|
3749
|
-
n,
|
|
3750
|
-
r
|
|
3751
|
-
);
|
|
3752
|
-
Kl(e, l, h, c);
|
|
3753
|
-
} else o && (ql(e, l, o, c), i[t] = void 0);
|
|
3754
|
-
}
|
|
3755
|
-
}
|
|
3756
|
-
const tr = /(?:Once|Passive|Capture)$/;
|
|
3757
|
-
function Jl(e) {
|
|
3758
|
-
let t;
|
|
3759
|
-
if (tr.test(e)) {
|
|
3760
|
-
t = {};
|
|
3761
|
-
let n;
|
|
3762
|
-
for (; n = e.match(tr); )
|
|
3763
|
-
e = e.slice(0, e.length - n[0].length), t[n[0].toLowerCase()] = !0;
|
|
3764
|
-
}
|
|
3765
|
-
return [e[2] === ":" ? e.slice(3) : Je(e.slice(2)), t];
|
|
3766
|
-
}
|
|
3767
|
-
let Os = 0;
|
|
3768
|
-
const Gl = /* @__PURE__ */ Promise.resolve(), Yl = () => Os || (Gl.then(() => Os = 0), Os = Date.now());
|
|
3769
|
-
function Xl(e, t) {
|
|
3770
|
-
const s = (n) => {
|
|
3771
|
-
if (!n._vts)
|
|
3772
|
-
n._vts = Date.now();
|
|
3773
|
-
else if (n._vts <= s.attached)
|
|
3774
|
-
return;
|
|
3775
|
-
Pe(
|
|
3776
|
-
Ql(n, s.value),
|
|
3777
|
-
t,
|
|
3778
|
-
5,
|
|
3779
|
-
[n]
|
|
3780
|
-
);
|
|
3781
|
-
};
|
|
3782
|
-
return s.value = e, s.attached = Yl(), s;
|
|
3783
|
-
}
|
|
3784
|
-
function Ql(e, t) {
|
|
3785
|
-
if (O(t)) {
|
|
3786
|
-
const s = e.stopImmediatePropagation;
|
|
3787
|
-
return e.stopImmediatePropagation = () => {
|
|
3788
|
-
s.call(e), e._stopped = !0;
|
|
3789
|
-
}, t.map(
|
|
3790
|
-
(n) => (r) => !r._stopped && n && n(r)
|
|
3791
|
-
);
|
|
3792
|
-
} else
|
|
3793
|
-
return t;
|
|
3794
|
-
}
|
|
3795
|
-
const sr = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // lowercase letter
|
|
3796
|
-
e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, Zl = (e, t, s, n, r, i) => {
|
|
3797
|
-
const o = r === "svg";
|
|
3798
|
-
t === "class" ? Hl(e, n, o) : t === "style" ? kl(e, s, n) : cs(t) ? Ys(t) || zl(e, t, s, n, i) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) : ec(e, t, n, o)) ? (Zn(e, t, n), !e.tagName.includes("-") && (t === "value" || t === "checked" || t === "selected") && Qn(e, t, n, o, i, t !== "value")) : /* #11081 force set props for possible async custom element */ e._isVueCE && (/[A-Z]/.test(t) || !Q(n)) ? Zn(e, Le(t), n, i, t) : (t === "true-value" ? e._trueValue = n : t === "false-value" && (e._falseValue = n), Qn(e, t, n, o));
|
|
3799
|
-
};
|
|
3800
|
-
function ec(e, t, s, n) {
|
|
3801
|
-
if (n)
|
|
3802
|
-
return !!(t === "innerHTML" || t === "textContent" || t in e && sr(t) && F(s));
|
|
3803
|
-
if (t === "spellcheck" || t === "draggable" || t === "translate" || t === "autocorrect" || t === "form" || t === "list" && e.tagName === "INPUT" || t === "type" && e.tagName === "TEXTAREA")
|
|
3804
|
-
return !1;
|
|
3805
|
-
if (t === "width" || t === "height") {
|
|
3806
|
-
const r = e.tagName;
|
|
3807
|
-
if (r === "IMG" || r === "VIDEO" || r === "CANVAS" || r === "SOURCE")
|
|
3808
|
-
return !1;
|
|
3809
|
-
}
|
|
3810
|
-
return sr(t) && Q(s) ? !1 : t in e;
|
|
3811
|
-
}
|
|
3812
|
-
const tc = /* @__PURE__ */ te({ patchProp: Zl }, Dl);
|
|
3813
|
-
let nr;
|
|
3814
|
-
function sc() {
|
|
3815
|
-
return nr || (nr = ol(tc));
|
|
3816
|
-
}
|
|
3817
|
-
const nc = (...e) => {
|
|
3818
|
-
const t = sc().createApp(...e), { mount: s } = t;
|
|
3819
|
-
return t.mount = (n) => {
|
|
3820
|
-
const r = ic(n);
|
|
3821
|
-
if (!r) return;
|
|
3822
|
-
const i = t._component;
|
|
3823
|
-
!F(i) && !i.render && !i.template && (i.template = r.innerHTML), r.nodeType === 1 && (r.textContent = "");
|
|
3824
|
-
const o = s(r, !1, rc(r));
|
|
3825
|
-
return r instanceof Element && (r.removeAttribute("v-cloak"), r.setAttribute("data-v-app", "")), o;
|
|
3826
|
-
}, t;
|
|
3827
|
-
};
|
|
3828
|
-
function rc(e) {
|
|
3829
|
-
if (e instanceof SVGElement)
|
|
3830
|
-
return "svg";
|
|
3831
|
-
if (typeof MathMLElement == "function" && e instanceof MathMLElement)
|
|
3832
|
-
return "mathml";
|
|
3833
|
-
}
|
|
3834
|
-
function ic(e) {
|
|
3835
|
-
return Q(e) ? document.querySelector(e) : e;
|
|
3836
|
-
}
|
|
3837
|
-
const qs = Symbol("IPEInjectKey"), oc = (e, t) => (t ? t.provide(qs, e) : qr(qs, e), e), lc = () => {
|
|
3838
|
-
const e = Mt(qs);
|
|
3839
|
-
if (!e)
|
|
3840
|
-
throw new Error("InPageEdit instance is not provided");
|
|
3841
|
-
return e;
|
|
3842
|
-
}, cc = (e, ...t) => {
|
|
3843
|
-
const s = nc(...t);
|
|
3844
|
-
return oc(e, s), s;
|
|
3845
|
-
}, me = '@charset "UTF-8";:host{all:initial;font-family:var(--schema-font-family, ui-sans-serif, system-ui, -apple-system)}*,*:before,*:after{box-sizing:border-box}:host{color:var(--schema-color-fg, #111827)}:host{--schema-radius: var(--schema-radius, 10px)}.wrapper{display:block;background:var(--schema-color-bg, #ffffff)}.form{display:grid;gap:12px}.field{display:grid;gap:6px;padding:8px 10px;border:1px solid var(--schema-color-muted, #e5e7eb);border-radius:var(--schema-radius);background:var(--schema-surface, #fff)}.label{font-size:12px;color:var(--schema-color-muted-text, #6b7280)}.input,select,textarea{width:100%;padding:8px 10px;border-radius:8px;border:1px solid var(--schema-color-muted, #e5e7eb);background:var(--schema-input-bg, #fff);color:inherit}.checkbox{display:inline-flex;align-items:center;gap:8px}.helper{font-size:12px;color:var(--schema-color-muted-text, #6b7280)}.row{display:grid;gap:8px}.actions{display:flex;gap:8px}.btn{padding:6px 10px;border:1px solid var(--schema-color-muted, #e5e7eb);background:var(--schema-btn-bg, #f8fafc);border-radius:8px;cursor:pointer}.btn.primary{background:var(--schema-color-primary, #2563eb);color:#fff;border-color:transparent}.btn:disabled{opacity:.5;cursor:not-allowed}.btn.danger{background:var(--schema-color-danger, #dc2626);color:#fff;border-color:transparent}.group{display:grid;gap:10px;border-left:3px solid var(--schema-color-muted, #e5e7eb);padding-left:10px}.kv{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:center}.badge{display:inline-flex;padding:2px 6px;border-radius:999px;font-size:11px;background:var(--schema-badge-bg, #eef2ff);color:var(--schema-badge-fg, #4f46e5)}.hidden{display:none!important}.toolbar{display:flex;gap:6px}.schema-collection-row{position:relative;transition:transform var(--schema-collection-transition-duration, .25s) var(--schema-collection-transition-ease, ease),opacity var(--schema-collection-transition-duration, .25s) var(--schema-collection-transition-ease, ease)}.schema-collection-row.enter{opacity:0}.schema-collection-row.enter.enter-active{opacity:1}.schema-collection-row.leaving{opacity:0}.field.schema-type-array .group,.field.schema-type-array .group .row{position:relative}';
|
|
3846
|
-
/**
|
|
3847
|
-
* SchemaForm
|
|
3848
|
-
* 一个基于 Schemastery 的 Web Components 表单生成器
|
|
3849
|
-
*
|
|
3850
|
-
* ✅ 使用 TypeScript,组件前缀统一为 <schema-*>
|
|
3851
|
-
* ✅ 简单样式 + 通过 CSS 变量 --schema-* 配置主题
|
|
3852
|
-
* ✅ 暴露 API:设置/获取表单数据、设置 Schema、校验
|
|
3853
|
-
* ✅ 支持的类型:string / number / boolean / date / const / object / array / tuple / dict / union
|
|
3854
|
-
* ✅ 支持按类型拆分的独立 Field 组件:<schema-form-string> 等,可单独使用
|
|
3855
|
-
* ✅ 字段容器带类名:schema-form-item schema-type-xxx,并带 data-path="a.b.0.c"
|
|
3856
|
-
* ✅ schema-form-array 支持条目上下移动
|
|
3857
|
-
* ✅ 主类为泛型:SchemaForm<T>
|
|
3858
|
-
* ✅ 提供 createSchemasteryForm<T>() 工厂,返回带强类型的 FormInstance<T>
|
|
3859
|
-
*
|
|
3860
|
-
* @license MIT
|
|
3861
|
-
* @author dragon-fish
|
|
3862
|
-
* @author @openai/gpt-5
|
|
3863
|
-
*/
|
|
3864
|
-
const gi = {
|
|
3865
|
-
arrayAdd: "+",
|
|
3866
|
-
arrayMoveUp: "↑",
|
|
3867
|
-
arrayMoveDown: "↓",
|
|
3868
|
-
arrayRemove: "×",
|
|
3869
|
-
dictAdd: "+",
|
|
3870
|
-
dictRemove: "×",
|
|
3871
|
-
rootLabel: "root"
|
|
3872
|
-
}, Y = (e, t) => {
|
|
3873
|
-
customElements.get(e) || customElements.define(e, t);
|
|
3874
|
-
}, ac = (e, t, s) => {
|
|
3875
|
-
if (!t.length) return;
|
|
3876
|
-
let n = e, r = null, i = null;
|
|
3877
|
-
for (let l = 0; l < t.length - 1; l++) {
|
|
3878
|
-
const c = t[l];
|
|
3879
|
-
let h = n?.[c];
|
|
3880
|
-
h == null ? (h = typeof t[l + 1] == "number" ? [] : {}, n[c] = h) : typeof h != "object" && (h = typeof t[l + 1] == "number" ? [] : {}, n[c] = h), r = n, i = c, n = h;
|
|
3881
|
-
}
|
|
3882
|
-
const o = t[t.length - 1];
|
|
3883
|
-
if (n == null || typeof n != "object") {
|
|
3884
|
-
const l = typeof o == "number" ? [] : {};
|
|
3885
|
-
if (r)
|
|
3886
|
-
r[i] = l, n = l;
|
|
3887
|
-
else
|
|
3888
|
-
return;
|
|
3889
|
-
}
|
|
3890
|
-
try {
|
|
3891
|
-
n[o] = s;
|
|
3892
|
-
} catch {
|
|
3893
|
-
try {
|
|
3894
|
-
const l = Array.isArray(n) ? n.slice() : { ...n };
|
|
3895
|
-
l[o] = s, r && (r[i] = l);
|
|
3896
|
-
} catch {
|
|
3897
|
-
}
|
|
3898
|
-
}
|
|
3899
|
-
}, Ut = (e) => e.map(String).join("."), uc = (e) => e.replace(/[^a-zA-Z0-9_-]/g, "_"), qe = (e) => `schema_${uc(Ut(e) || "root")}`, nt = (e) => Ut(e);
|
|
3900
|
-
function _n(e, t) {
|
|
3901
|
-
if (t == null) return t;
|
|
3902
|
-
switch (e) {
|
|
3903
|
-
case "number":
|
|
3904
|
-
case "natural":
|
|
3905
|
-
case "percent": {
|
|
3906
|
-
if (t === "") return;
|
|
3907
|
-
const s = Number(t);
|
|
3908
|
-
return Number.isNaN(s) ? void 0 : s;
|
|
3909
|
-
}
|
|
3910
|
-
case "boolean":
|
|
3911
|
-
return !!t;
|
|
3912
|
-
case "date": {
|
|
3913
|
-
if (!t) return;
|
|
3914
|
-
const s = new Date(t);
|
|
3915
|
-
return Number.isNaN(+s) ? void 0 : s;
|
|
3916
|
-
}
|
|
3917
|
-
case "const":
|
|
3918
|
-
case "string":
|
|
3919
|
-
default:
|
|
3920
|
-
return t;
|
|
3921
|
-
}
|
|
3922
|
-
}
|
|
3923
|
-
function rr(e) {
|
|
3924
|
-
return typeof e == "function" && !!e?.type;
|
|
3925
|
-
}
|
|
3926
|
-
function _i(e) {
|
|
3927
|
-
if (!e) throw new Error("schema is required");
|
|
3928
|
-
if (rr(e)) return e;
|
|
3929
|
-
try {
|
|
3930
|
-
const t = Schema.from(e);
|
|
3931
|
-
if (rr(t)) return t;
|
|
3932
|
-
} catch {
|
|
3933
|
-
}
|
|
3934
|
-
if (e?.type) {
|
|
3935
|
-
const t = e.type;
|
|
3936
|
-
if (Schema[t]) return Schema[t](e.inner ?? e.list ?? e.dict);
|
|
3937
|
-
}
|
|
3938
|
-
throw new Error("无法从传入对象生成 Schemastery 实例,请传入 schema 或 schema.toJSON() 的结果。");
|
|
3939
|
-
}
|
|
3940
|
-
function ve(e) {
|
|
3941
|
-
return e?.meta ?? {};
|
|
3942
|
-
}
|
|
3943
|
-
function fc(e) {
|
|
3944
|
-
return e.length > 0 && e.every((t) => t?.type === "const");
|
|
3945
|
-
}
|
|
3946
|
-
function gt(e) {
|
|
3947
|
-
if (!e) return;
|
|
3948
|
-
const t = e, s = t.meta || {};
|
|
3949
|
-
if (Object.prototype.hasOwnProperty.call(s, "default")) return s.default;
|
|
3950
|
-
const n = t.type;
|
|
3951
|
-
try {
|
|
3952
|
-
const r = e();
|
|
3953
|
-
if (r !== void 0) return r;
|
|
3954
|
-
} catch {
|
|
3955
|
-
}
|
|
3956
|
-
switch (n) {
|
|
3957
|
-
case "string":
|
|
3958
|
-
return "";
|
|
3959
|
-
case "number":
|
|
3960
|
-
case "natural":
|
|
3961
|
-
case "percent":
|
|
3962
|
-
return 0;
|
|
3963
|
-
case "boolean":
|
|
3964
|
-
return !1;
|
|
3965
|
-
case "array":
|
|
3966
|
-
return [];
|
|
3967
|
-
case "tuple":
|
|
3968
|
-
return [];
|
|
3969
|
-
case "object":
|
|
3970
|
-
return {};
|
|
3971
|
-
case "dict":
|
|
3972
|
-
return {};
|
|
3973
|
-
case "union": {
|
|
3974
|
-
const r = t.list || [];
|
|
3975
|
-
return r.length ? gt(r[0]) : void 0;
|
|
3976
|
-
}
|
|
3977
|
-
case "const":
|
|
3978
|
-
return t.value;
|
|
3979
|
-
case "date":
|
|
3980
|
-
return;
|
|
3981
|
-
default:
|
|
3982
|
-
return;
|
|
3983
|
-
}
|
|
3984
|
-
}
|
|
3985
|
-
class Ie extends HTMLElement {
|
|
3986
|
-
constructor() {
|
|
3987
|
-
super(), this._path = [], this._i18n = gi, this.$root = this.attachShadow({ mode: "open" });
|
|
3988
|
-
const t = document.createElement("style");
|
|
3989
|
-
t.textContent = me, this.$root.appendChild(t);
|
|
3990
|
-
}
|
|
3991
|
-
/** 初始化公共容器(带类名与 data-path) */
|
|
3992
|
-
makeFieldContainer(t, s) {
|
|
3993
|
-
const n = document.createElement("div");
|
|
3994
|
-
if (n.className = `field schema-form-item schema-type-${t}`, n.setAttribute("data-path", Ut(this._path)), this._label) {
|
|
3995
|
-
const r = document.createElement("label");
|
|
3996
|
-
r.className = "label", r.textContent = this._label, n.appendChild(r);
|
|
3997
|
-
}
|
|
3998
|
-
if (s) {
|
|
3999
|
-
const r = document.createElement("div");
|
|
4000
|
-
r.className = "helper", r.textContent = s, n.appendChild(r);
|
|
4001
|
-
}
|
|
4002
|
-
return n;
|
|
4003
|
-
}
|
|
4004
|
-
/** 外部设置 schema/path/label/value */
|
|
4005
|
-
set schema(t) {
|
|
4006
|
-
this._schema = _i(t), this.render();
|
|
4007
|
-
}
|
|
4008
|
-
get schema() {
|
|
4009
|
-
return this._schema;
|
|
4010
|
-
}
|
|
4011
|
-
set path(t) {
|
|
4012
|
-
this._path = t ?? [], this.render();
|
|
4013
|
-
}
|
|
4014
|
-
get path() {
|
|
4015
|
-
return this._path;
|
|
4016
|
-
}
|
|
4017
|
-
set label(t) {
|
|
4018
|
-
this._label = t, this.render();
|
|
4019
|
-
}
|
|
4020
|
-
get label() {
|
|
4021
|
-
return this._label;
|
|
4022
|
-
}
|
|
4023
|
-
set i18n(t) {
|
|
4024
|
-
t && (this._i18n = { ...this._i18n, ...t }), this.render();
|
|
4025
|
-
}
|
|
4026
|
-
get i18n() {
|
|
4027
|
-
return this._i18n;
|
|
4028
|
-
}
|
|
4029
|
-
setValue(t) {
|
|
4030
|
-
this._value = t, this.render();
|
|
4031
|
-
}
|
|
4032
|
-
getValue() {
|
|
4033
|
-
return this._value;
|
|
4034
|
-
}
|
|
4035
|
-
/** 触发变更事件(冒泡) */
|
|
4036
|
-
emitChange(t) {
|
|
4037
|
-
this._value = t, this.dispatchEvent(
|
|
4038
|
-
new CustomEvent("change", {
|
|
4039
|
-
bubbles: !0,
|
|
4040
|
-
composed: !0,
|
|
4041
|
-
detail: { path: this._path, value: t }
|
|
4042
|
-
})
|
|
4043
|
-
);
|
|
4044
|
-
}
|
|
4045
|
-
}
|
|
4046
|
-
class vi extends Ie {
|
|
4047
|
-
render() {
|
|
4048
|
-
if (this.$input && this.$root.contains(this.$input)) {
|
|
4049
|
-
const i = this._value ?? "";
|
|
4050
|
-
this.$input.value !== i && document.activeElement !== this.$input && (this.$input.value = i);
|
|
4051
|
-
return;
|
|
4052
|
-
}
|
|
4053
|
-
this.$root.innerHTML = `<style>${me}</style>`;
|
|
4054
|
-
const t = ve(this._schema), s = this.makeFieldContainer("string", t.description), n = document.createElement("input");
|
|
4055
|
-
this.$input = n, n.className = "input", n.type = "text", n.name = nt(this._path), n.id = qe(this._path), t?.pattern?.source && (n.pattern = t.pattern.source), t?.max != null && (n.maxLength = t.max), n.value = this._value ?? "", n.oninput = () => this.emitChange(_n("string", n.value));
|
|
4056
|
-
const r = s.querySelector("label.label");
|
|
4057
|
-
r && (r.htmlFor = n.id), s.appendChild(n), this.$root.appendChild(s);
|
|
4058
|
-
}
|
|
4059
|
-
}
|
|
4060
|
-
Y("schema-form-string", vi);
|
|
4061
|
-
class bi extends Ie {
|
|
4062
|
-
render() {
|
|
4063
|
-
if (this.$input && this.$root.contains(this.$input)) {
|
|
4064
|
-
const o = this._value ?? "";
|
|
4065
|
-
this.$input.value !== String(o) && document.activeElement !== this.$input && (this.$input.value = o);
|
|
4066
|
-
return;
|
|
4067
|
-
}
|
|
4068
|
-
this.$root.innerHTML = `<style>${me}</style>`;
|
|
4069
|
-
const t = this._schema?.type ?? "number", s = ve(this._schema), n = this.makeFieldContainer("number", s.description), r = document.createElement("input");
|
|
4070
|
-
this.$input = r, r.className = "input", r.name = nt(this._path), r.id = qe(this._path), s?.min != null && (r.min = String(s.min)), s?.max != null && (r.max = String(s.max)), s?.step != null && (r.step = String(s.step)), t === "percent" && !r.step && (r.step = "0.01"), r.value = this._value ?? "", r.oninput = () => this.emitChange(_n(t, r.value));
|
|
4071
|
-
const i = n.querySelector("label.label");
|
|
4072
|
-
i && (i.htmlFor = r.id), s.role === "slider" ? r.type = "range" : r.type = "number", n.appendChild(r), this.$root.appendChild(n);
|
|
4073
|
-
}
|
|
4074
|
-
}
|
|
4075
|
-
Y("schema-form-number", bi);
|
|
4076
|
-
class yi extends Ie {
|
|
4077
|
-
render() {
|
|
4078
|
-
this.$root.innerHTML = `<style>${me}</style>`;
|
|
4079
|
-
const t = ve(this._schema), s = this.makeFieldContainer("boolean", t.description), n = document.createElement("label");
|
|
4080
|
-
n.className = "checkbox";
|
|
4081
|
-
const r = document.createElement("input");
|
|
4082
|
-
r.type = "checkbox", r.checked = !!this._value, r.name = nt(this._path), r.id = qe(this._path);
|
|
4083
|
-
const i = document.createElement("span");
|
|
4084
|
-
i.textContent = t.description ?? this._label ?? "", r.onchange = () => this.emitChange(r.checked);
|
|
4085
|
-
const o = s.querySelector("label.label");
|
|
4086
|
-
o && (o.htmlFor = r.id), n.append(r, i), s.appendChild(n), this.$root.appendChild(s);
|
|
4087
|
-
}
|
|
4088
|
-
}
|
|
4089
|
-
Y("schema-form-boolean", yi);
|
|
4090
|
-
function ls(e) {
|
|
4091
|
-
return String(e).padStart(2, "0");
|
|
4092
|
-
}
|
|
4093
|
-
function St(e) {
|
|
4094
|
-
return `${e.getFullYear()}-${ls(e.getMonth() + 1)}-${ls(e.getDate())}`;
|
|
4095
|
-
}
|
|
4096
|
-
function zs(e) {
|
|
4097
|
-
return `${ls(e.getHours())}:${ls(e.getMinutes())}`;
|
|
4098
|
-
}
|
|
4099
|
-
function zt(e) {
|
|
4100
|
-
return `${St(e)}T${zs(e)}`;
|
|
4101
|
-
}
|
|
4102
|
-
class xi extends Ie {
|
|
4103
|
-
render() {
|
|
4104
|
-
if (this.$input && this.$root.contains(this.$input)) {
|
|
4105
|
-
const o = ve(this._schema).role || "date";
|
|
4106
|
-
if (document.activeElement !== this.$input)
|
|
4107
|
-
if (this._value instanceof Date)
|
|
4108
|
-
o === "date" ? this.$input.value = St(this._value) : o === "time" ? this.$input.value = zs(this._value) : o === "datetime" && (this.$input.value = zt(this._value));
|
|
4109
|
-
else if (typeof this._value == "string" && o !== "time") {
|
|
4110
|
-
const l = new Date(this._value);
|
|
4111
|
-
isNaN(+l) || (o === "date" ? this.$input.value = St(l) : o === "datetime" && (this.$input.value = zt(l)));
|
|
4112
|
-
} else this._value || (this.$input.value = "");
|
|
4113
|
-
return;
|
|
4114
|
-
}
|
|
4115
|
-
this.$root.innerHTML = `<style>${me}</style>`;
|
|
4116
|
-
const t = ve(this._schema), s = this.makeFieldContainer("date", t.description), n = document.createElement("input");
|
|
4117
|
-
this.$input = n, n.className = "input";
|
|
4118
|
-
const r = t.role || "date";
|
|
4119
|
-
if (r === "datetime" ? n.type = "datetime-local" : r === "time" ? n.type = "time" : n.type = "date", n.name = nt(this._path), n.id = qe(this._path), this._value instanceof Date)
|
|
4120
|
-
r === "date" ? n.value = St(this._value) : r === "time" ? n.value = zs(this._value) : r === "datetime" && (n.value = zt(this._value));
|
|
4121
|
-
else if (typeof this._value == "string" && r !== "time") {
|
|
4122
|
-
const o = new Date(this._value);
|
|
4123
|
-
isNaN(+o) || (r === "date" ? n.value = St(o) : r === "datetime" && (n.value = zt(o)));
|
|
4124
|
-
}
|
|
4125
|
-
n.oninput = () => {
|
|
4126
|
-
t.role;
|
|
4127
|
-
let o;
|
|
4128
|
-
if (!n.value)
|
|
4129
|
-
o = void 0;
|
|
4130
|
-
else {
|
|
4131
|
-
const l = new Date(n.value);
|
|
4132
|
-
o = Number.isNaN(+l) ? void 0 : l;
|
|
4133
|
-
}
|
|
4134
|
-
this.emitChange(o);
|
|
4135
|
-
};
|
|
4136
|
-
const i = s.querySelector("label.label");
|
|
4137
|
-
i && (i.htmlFor = n.id), s.appendChild(n), this.$root.appendChild(s);
|
|
4138
|
-
}
|
|
4139
|
-
}
|
|
4140
|
-
Y("schema-form-date", xi);
|
|
4141
|
-
class Ci extends Ie {
|
|
4142
|
-
render() {
|
|
4143
|
-
this.$root.innerHTML = `<style>${me}</style>`;
|
|
4144
|
-
const t = ve(this._schema), s = this._schema.value;
|
|
4145
|
-
if (t.role === "raw-html") {
|
|
4146
|
-
if (s instanceof Node) {
|
|
4147
|
-
this.$root.appendChild(s);
|
|
4148
|
-
return;
|
|
4149
|
-
}
|
|
4150
|
-
const o = document.createElement("div");
|
|
4151
|
-
o.innerHTML = String(s), this.$root.appendChild(o);
|
|
4152
|
-
return;
|
|
4153
|
-
}
|
|
4154
|
-
const n = this.makeFieldContainer("const", t.description), r = document.createElement("section");
|
|
4155
|
-
r.className = "const content", r.textContent = String(s), r.id = qe(this._path);
|
|
4156
|
-
const i = n.querySelector("label.label");
|
|
4157
|
-
i && (i.htmlFor = r.id), n.appendChild(r), this.$root.appendChild(n);
|
|
4158
|
-
}
|
|
4159
|
-
}
|
|
4160
|
-
Y("schema-form-const", Ci);
|
|
4161
|
-
function hc(e) {
|
|
4162
|
-
switch (e.type) {
|
|
4163
|
-
case "string":
|
|
4164
|
-
return "schema-form-string";
|
|
4165
|
-
case "number":
|
|
4166
|
-
case "natural":
|
|
4167
|
-
case "percent":
|
|
4168
|
-
return "schema-form-number";
|
|
4169
|
-
case "boolean":
|
|
4170
|
-
return "schema-form-boolean";
|
|
4171
|
-
case "date":
|
|
4172
|
-
return "schema-form-date";
|
|
4173
|
-
case "const":
|
|
4174
|
-
return "schema-form-const";
|
|
4175
|
-
case "array":
|
|
4176
|
-
return "schema-form-array";
|
|
4177
|
-
case "object":
|
|
4178
|
-
return "schema-form-object";
|
|
4179
|
-
case "tuple":
|
|
4180
|
-
return "schema-form-tuple";
|
|
4181
|
-
case "dict":
|
|
4182
|
-
return "schema-form-dict";
|
|
4183
|
-
case "union": {
|
|
4184
|
-
const t = e.list || [];
|
|
4185
|
-
return t.length === 2 && t[0]?.type === "is" && t[0]?.constructor === Date && t[1]?.type === "transform" && (t[1]?.inner?.meta?.role === "datetime" || t[1]?.inner?.meta?.role === "date" || t[1]?.inner?.meta?.role === "time") ? "schema-form-date" : "schema-form-union";
|
|
4186
|
-
}
|
|
4187
|
-
default:
|
|
4188
|
-
return "schema-form-string";
|
|
4189
|
-
}
|
|
4190
|
-
}
|
|
4191
|
-
function _t(e, t, s, n, r) {
|
|
4192
|
-
const i = hc(e), o = document.createElement(i);
|
|
4193
|
-
return o.schema = e, o.path = t, o.label = n, r && (o.i18n = r), o.setValue?.(s), o;
|
|
4194
|
-
}
|
|
4195
|
-
class Ei extends Ie {
|
|
4196
|
-
render() {
|
|
4197
|
-
this.$root.innerHTML = `<style>${me}</style>`;
|
|
4198
|
-
const t = ve(this._schema), s = this.makeFieldContainer("union", t.description), n = this._schema.list || [];
|
|
4199
|
-
if (fc(n)) {
|
|
4200
|
-
const r = document.createElement("select");
|
|
4201
|
-
r.className = "input", r.name = nt(this._path), r.id = qe(this._path), n.forEach((o) => {
|
|
4202
|
-
const l = document.createElement("option");
|
|
4203
|
-
l.value = String(o.value), l.textContent = String(o.value), this._value === o.value && (l.selected = !0), r.appendChild(l);
|
|
4204
|
-
}), r.onchange = () => this.emitChange(_n("string", r.value));
|
|
4205
|
-
const i = s.querySelector("label.label");
|
|
4206
|
-
i && (i.htmlFor = r.id), s.appendChild(r);
|
|
4207
|
-
} else {
|
|
4208
|
-
const r = document.createElement("div");
|
|
4209
|
-
r.className = "toolbar";
|
|
4210
|
-
const i = document.createElement("select");
|
|
4211
|
-
i.className = "input", i.name = nt(this._path) + ".__type", i.id = qe(this._path) + "__type";
|
|
4212
|
-
let o = 0;
|
|
4213
|
-
n.forEach((u, d) => {
|
|
4214
|
-
const p = document.createElement("option");
|
|
4215
|
-
p.value = String(d), p.textContent = u.type, i.appendChild(p);
|
|
4216
|
-
}), i.onchange = () => {
|
|
4217
|
-
o = Number(i.value);
|
|
4218
|
-
const u = n[o], d = gt(u);
|
|
4219
|
-
this.emitChange(d), h();
|
|
4220
|
-
};
|
|
4221
|
-
const l = s.querySelector("label.label");
|
|
4222
|
-
l && (l.htmlFor = i.id), r.appendChild(i), s.appendChild(r);
|
|
4223
|
-
const c = document.createElement("div");
|
|
4224
|
-
c.className = "group";
|
|
4225
|
-
const h = () => {
|
|
4226
|
-
c.innerHTML = "";
|
|
4227
|
-
const u = n[o], d = _t(u, this._path, this._value, this._label);
|
|
4228
|
-
d.addEventListener("change", (p) => {
|
|
4229
|
-
p.stopPropagation(), this.emitChange(p.detail.value);
|
|
4230
|
-
}), c.appendChild(d);
|
|
4231
|
-
};
|
|
4232
|
-
h(), s.appendChild(c);
|
|
4233
|
-
}
|
|
4234
|
-
this.$root.appendChild(s);
|
|
4235
|
-
}
|
|
4236
|
-
}
|
|
4237
|
-
Y("schema-form-union", Ei);
|
|
4238
|
-
class Si extends Ie {
|
|
4239
|
-
render() {
|
|
4240
|
-
this.$root.innerHTML = `<style>${me}</style>`;
|
|
4241
|
-
const t = ve(this._schema), s = this.makeFieldContainer("tuple", t.description), n = document.createElement("div");
|
|
4242
|
-
n.className = "group";
|
|
4243
|
-
const r = Array.isArray(this._value) ? this._value : [];
|
|
4244
|
-
(this._schema.list || []).forEach((i, o) => {
|
|
4245
|
-
const l = _t(
|
|
4246
|
-
i,
|
|
4247
|
-
[...this._path, o],
|
|
4248
|
-
r[o],
|
|
4249
|
-
`${this._label ?? ""}[${o}]`
|
|
4250
|
-
);
|
|
4251
|
-
l.addEventListener("change", (c) => {
|
|
4252
|
-
c.stopPropagation();
|
|
4253
|
-
const h = Array.isArray(this._value) ? this._value.slice() : [];
|
|
4254
|
-
h[o] = c.detail.value, this.emitChange(h);
|
|
4255
|
-
}), n.appendChild(l);
|
|
4256
|
-
}), s.appendChild(n), this.$root.appendChild(s);
|
|
4257
|
-
}
|
|
4258
|
-
}
|
|
4259
|
-
Y("schema-form-tuple", Si);
|
|
4260
|
-
class wi extends Ie {
|
|
4261
|
-
render() {
|
|
4262
|
-
this.$root.innerHTML = `<style>${me}</style>`;
|
|
4263
|
-
const t = ve(this._schema), s = this.makeFieldContainer("object", t.description), n = document.createElement("div");
|
|
4264
|
-
n.className = "group";
|
|
4265
|
-
const r = this._schema.dict || {};
|
|
4266
|
-
Object.keys(r).forEach((i) => {
|
|
4267
|
-
if (r[i]?.meta?.hidden) return;
|
|
4268
|
-
const o = (this._value ?? {})[i], l = _t(r[i], [...this._path, i], o, i);
|
|
4269
|
-
l.addEventListener("change", (c) => {
|
|
4270
|
-
c.stopPropagation();
|
|
4271
|
-
const h = { ...this._value ?? {} };
|
|
4272
|
-
h[i] = c.detail.value, this.emitChange(h);
|
|
4273
|
-
}), n.appendChild(l);
|
|
4274
|
-
}), s.appendChild(n), this.$root.appendChild(s);
|
|
4275
|
-
}
|
|
4276
|
-
}
|
|
4277
|
-
Y("schema-form-object", wi);
|
|
4278
|
-
class bs extends Ie {
|
|
4279
|
-
constructor() {
|
|
4280
|
-
super(...arguments), this._itemIds = [];
|
|
4281
|
-
}
|
|
4282
|
-
static {
|
|
4283
|
-
this._idCounter = 0;
|
|
4284
|
-
}
|
|
4285
|
-
generateItemId() {
|
|
4286
|
-
try {
|
|
4287
|
-
if (typeof crypto < "u" && typeof crypto.randomUUID == "function")
|
|
4288
|
-
return crypto.randomUUID();
|
|
4289
|
-
} catch {
|
|
4290
|
-
}
|
|
4291
|
-
return "i" + bs._idCounter++;
|
|
4292
|
-
}
|
|
4293
|
-
ensureItemIds(t) {
|
|
4294
|
-
for (; this._itemIds.length < t; ) this._itemIds.push(this.generateItemId());
|
|
4295
|
-
this._itemIds.length > t && (this._itemIds.length = t);
|
|
4296
|
-
}
|
|
4297
|
-
// 采集当前行位置信息(用于 FLIP)
|
|
4298
|
-
capturePositions(t) {
|
|
4299
|
-
const s = {};
|
|
4300
|
-
return t.querySelectorAll(".row").forEach((n) => {
|
|
4301
|
-
const r = n.dataset.uid;
|
|
4302
|
-
r && (s[r] = n.getBoundingClientRect());
|
|
4303
|
-
}), s;
|
|
4304
|
-
}
|
|
4305
|
-
playFLIP(t, s) {
|
|
4306
|
-
Array.from(t.querySelectorAll(".row")).forEach((n) => {
|
|
4307
|
-
const r = n.dataset.uid;
|
|
4308
|
-
if (!r) return;
|
|
4309
|
-
const i = s[r];
|
|
4310
|
-
if (!i) return;
|
|
4311
|
-
const o = n.getBoundingClientRect(), l = i.left - o.left, c = i.top - o.top;
|
|
4312
|
-
(l || c) && (n.style.transition = "none", n.style.transform = `translate(${l}px, ${c}px)`, requestAnimationFrame(() => {
|
|
4313
|
-
n.style.transition = "transform .25s ease", n.style.transform = "";
|
|
4314
|
-
}));
|
|
4315
|
-
});
|
|
4316
|
-
}
|
|
4317
|
-
render() {
|
|
4318
|
-
this.$root.innerHTML = `<style>${me}</style>`;
|
|
4319
|
-
const t = ve(this._schema), s = this.makeFieldContainer("array", t.description), n = document.createElement("div");
|
|
4320
|
-
n.className = "group";
|
|
4321
|
-
const r = this._schema.inner, i = () => Array.isArray(this._value) ? this._value : [];
|
|
4322
|
-
this.ensureItemIds(i().length);
|
|
4323
|
-
const o = (h, u) => {
|
|
4324
|
-
n.innerHTML = "", i().forEach((d, p) => {
|
|
4325
|
-
const v = [...this._path, p], x = document.createElement("div");
|
|
4326
|
-
x.className = "row schema-collection-row";
|
|
4327
|
-
const $ = this._itemIds[p];
|
|
4328
|
-
x.dataset.uid = $, x.setAttribute("data-path", Ut(v));
|
|
4329
|
-
const U = _t(
|
|
4330
|
-
r,
|
|
4331
|
-
v,
|
|
4332
|
-
d,
|
|
4333
|
-
`${this._label ?? ""}[${p}]`
|
|
4334
|
-
);
|
|
4335
|
-
U.addEventListener("change", (N) => {
|
|
4336
|
-
N.stopPropagation();
|
|
4337
|
-
const V = i().slice();
|
|
4338
|
-
V[p] = N.detail.value, this._value = V, this.emitChange(V);
|
|
4339
|
-
});
|
|
4340
|
-
const I = document.createElement("div");
|
|
4341
|
-
I.className = "actions";
|
|
4342
|
-
const R = document.createElement("button");
|
|
4343
|
-
R.type = "button", R.className = "btn", R.textContent = this._i18n.arrayMoveUp ?? "↑", R.onclick = () => {
|
|
4344
|
-
if (p <= 0) return;
|
|
4345
|
-
const N = this.capturePositions(n), V = i().slice();
|
|
4346
|
-
[V[p - 1], V[p]] = [V[p], V[p - 1]], [this._itemIds[p - 1], this._itemIds[p]] = [
|
|
4347
|
-
this._itemIds[p],
|
|
4348
|
-
this._itemIds[p - 1]
|
|
4349
|
-
], this._value = V, o(N), this.emitChange(V);
|
|
4350
|
-
};
|
|
4351
|
-
const L = document.createElement("button");
|
|
4352
|
-
L.type = "button", L.className = "btn", L.textContent = this._i18n.arrayMoveDown ?? "↓", L.onclick = () => {
|
|
4353
|
-
const N = i();
|
|
4354
|
-
if (p >= N.length - 1) return;
|
|
4355
|
-
const V = this.capturePositions(n), X = N.slice();
|
|
4356
|
-
[X[p + 1], X[p]] = [X[p], X[p + 1]], [this._itemIds[p + 1], this._itemIds[p]] = [
|
|
4357
|
-
this._itemIds[p],
|
|
4358
|
-
this._itemIds[p + 1]
|
|
4359
|
-
], this._value = X, o(V), this.emitChange(X);
|
|
4360
|
-
};
|
|
4361
|
-
const T = document.createElement("button");
|
|
4362
|
-
T.type = "button", T.className = "btn danger", T.textContent = this._i18n.arrayRemove ?? "×", T.onclick = () => {
|
|
4363
|
-
x.classList.add("leaving");
|
|
4364
|
-
const N = 250;
|
|
4365
|
-
let V = !1;
|
|
4366
|
-
const X = () => {
|
|
4367
|
-
if (V) return;
|
|
4368
|
-
V = !0, clearTimeout(be);
|
|
4369
|
-
const Ge = i().filter((rt, it) => it !== p);
|
|
4370
|
-
this._itemIds.splice(p, 1);
|
|
4371
|
-
const Me = this.capturePositions(n);
|
|
4372
|
-
this._value = Ge, o(Me), this.emitChange(Ge);
|
|
4373
|
-
};
|
|
4374
|
-
x.addEventListener("transitionend", X, { once: !0 });
|
|
4375
|
-
const be = setTimeout(X, N + 80);
|
|
4376
|
-
}, I.append(R, L, T), x.appendChild(U), x.appendChild(I), n.appendChild(x), u && u === $ && (x.classList.add("enter"), requestAnimationFrame(() => {
|
|
4377
|
-
x.classList.add("enter-active");
|
|
4378
|
-
}), requestAnimationFrame(() => {
|
|
4379
|
-
x.classList.remove("enter");
|
|
4380
|
-
}));
|
|
4381
|
-
}), h && this.playFLIP(n, h);
|
|
4382
|
-
};
|
|
4383
|
-
o();
|
|
4384
|
-
const l = document.createElement("button");
|
|
4385
|
-
l.type = "button", l.className = "btn primary", l.textContent = this._i18n.arrayAdd ?? "+", l.onclick = () => {
|
|
4386
|
-
const h = this.capturePositions(n), u = i().slice(), d = gt(r);
|
|
4387
|
-
u.push(d);
|
|
4388
|
-
const p = this.generateItemId();
|
|
4389
|
-
this._itemIds.push(p), this._value = u, o(h, p), this.emitChange(u);
|
|
4390
|
-
};
|
|
4391
|
-
const c = document.createElement("div");
|
|
4392
|
-
c.className = "actions", c.appendChild(l), s.appendChild(n), s.appendChild(c), this.$root.appendChild(s);
|
|
4393
|
-
}
|
|
4394
|
-
}
|
|
4395
|
-
Y("schema-form-array", bs);
|
|
4396
|
-
class Ti extends Ie {
|
|
4397
|
-
render() {
|
|
4398
|
-
this.$root.innerHTML = `<style>${me}</style>`;
|
|
4399
|
-
const t = ve(this._schema), s = this.makeFieldContainer("dict", t.description), n = document.createElement("div");
|
|
4400
|
-
n.className = "group";
|
|
4401
|
-
const r = this._schema.inner, i = this._value ?? {}, o = (p) => `d_${p}`, l = () => {
|
|
4402
|
-
const p = {};
|
|
4403
|
-
return n.querySelectorAll(".kv").forEach((v) => {
|
|
4404
|
-
const x = v.dataset.uid;
|
|
4405
|
-
x && (p[x] = v.getBoundingClientRect());
|
|
4406
|
-
}), p;
|
|
4407
|
-
}, c = (p) => {
|
|
4408
|
-
n.querySelectorAll(".kv").forEach((v) => {
|
|
4409
|
-
const x = v.dataset.uid;
|
|
4410
|
-
if (!x) return;
|
|
4411
|
-
const $ = p[x];
|
|
4412
|
-
if (!$) return;
|
|
4413
|
-
const U = v.getBoundingClientRect(), I = $.left - U.left, R = $.top - U.top;
|
|
4414
|
-
(I || R) && (v.style.transition = "none", v.style.transform = `translate(${I}px, ${R}px)`, requestAnimationFrame(() => {
|
|
4415
|
-
v.style.transition = "transform .25s ease", v.style.transform = "";
|
|
4416
|
-
}));
|
|
4417
|
-
});
|
|
4418
|
-
}, h = (p, v) => {
|
|
4419
|
-
n.innerHTML = "", Object.keys(i).forEach((x) => {
|
|
4420
|
-
const $ = [...this._path, x], U = document.createElement("div");
|
|
4421
|
-
U.className = "kv schema-collection-row", U.dataset.uid = o(x), U.setAttribute("data-path", Ut($));
|
|
4422
|
-
const I = document.createElement("input");
|
|
4423
|
-
I.className = "input", I.value = x, I.name = nt($) + ".__key", I.id = qe($) + "__key";
|
|
4424
|
-
const R = _t(r, $, i[x], `${this._label ?? ""}[${x}]`), L = document.createElement("button");
|
|
4425
|
-
L.type = "button", L.className = "btn danger", L.textContent = this._i18n.dictRemove ?? "×", L.onclick = () => {
|
|
4426
|
-
const T = l();
|
|
4427
|
-
delete i[x];
|
|
4428
|
-
const N = { ...this._value ?? {} };
|
|
4429
|
-
delete N[x], this._value = N, h(T), this.emitChange(N);
|
|
4430
|
-
}, I.onchange = () => {
|
|
4431
|
-
const T = I.value.trim();
|
|
4432
|
-
if (!T || T === x || i[T] !== void 0) return;
|
|
4433
|
-
const N = l();
|
|
4434
|
-
i[T] = i[x], delete i[x];
|
|
4435
|
-
const V = { ...this._value ?? {} };
|
|
4436
|
-
V[T] = V[x], delete V[x], this._value = V, h(N), this.emitChange(V);
|
|
4437
|
-
}, R.addEventListener("change", (T) => {
|
|
4438
|
-
T.stopPropagation();
|
|
4439
|
-
const N = { ...this._value ?? {} };
|
|
4440
|
-
N[x] = T.detail.value, this._value = N, this.emitChange(N);
|
|
4441
|
-
}), U.append(I, R, L), n.appendChild(U), v === x && (U.classList.add("enter"), requestAnimationFrame(() => U.classList.add("enter-active")), requestAnimationFrame(() => U.classList.remove("enter")));
|
|
4442
|
-
}), p && c(p);
|
|
4443
|
-
};
|
|
4444
|
-
h();
|
|
4445
|
-
const u = document.createElement("button");
|
|
4446
|
-
u.type = "button", u.className = "btn primary", u.textContent = this._i18n.dictAdd ?? "+", u.onclick = () => {
|
|
4447
|
-
let p = Object.keys(i).length + 1, v = `k${p}`;
|
|
4448
|
-
for (; i[v] !== void 0; ) v = `k${++p}`;
|
|
4449
|
-
const x = l();
|
|
4450
|
-
i[v] = gt(r);
|
|
4451
|
-
const $ = { ...this._value ?? {}, [v]: i[v] };
|
|
4452
|
-
this._value = $, h(x, v), this.emitChange($);
|
|
4453
|
-
};
|
|
4454
|
-
const d = document.createElement("div");
|
|
4455
|
-
d.className = "actions", d.appendChild(u), s.appendChild(n), s.appendChild(d), this.$root.appendChild(s);
|
|
4456
|
-
}
|
|
4457
|
-
}
|
|
4458
|
-
Y("schema-form-dict", Ti);
|
|
4459
|
-
class $i extends HTMLElement {
|
|
4460
|
-
constructor() {
|
|
4461
|
-
super(), this._i18n = { ...gi }, this.$root = this.attachShadow({ mode: "open" });
|
|
4462
|
-
const t = document.createElement("style");
|
|
4463
|
-
t.textContent = me, this.$root.appendChild(t);
|
|
4464
|
-
const s = document.createElement("div");
|
|
4465
|
-
s.className = "wrapper", s.innerHTML = '<form class="form" part="form"></form>', this.$root.appendChild(s), this.addEventListener("change", (n) => {
|
|
4466
|
-
if (!n?.detail) return;
|
|
4467
|
-
const { path: r, value: i } = n.detail;
|
|
4468
|
-
Array.isArray(r) && r.length === 0 ? this._state = i : ac(this._state ?? (this._state = {}), r, i), this.dispatchEvent(
|
|
4469
|
-
new CustomEvent("form-change", { detail: { path: r, value: i, state: this._state } })
|
|
4470
|
-
);
|
|
4471
|
-
});
|
|
4472
|
-
}
|
|
4473
|
-
// --- 对外 API ---
|
|
4474
|
-
set schema(t) {
|
|
4475
|
-
this._schema = _i(t);
|
|
4476
|
-
try {
|
|
4477
|
-
this._state = this._schema(null, { autofix: !0 });
|
|
4478
|
-
} catch {
|
|
4479
|
-
this._state = gt(this._schema);
|
|
4480
|
-
}
|
|
4481
|
-
this.render();
|
|
4482
|
-
}
|
|
4483
|
-
get schema() {
|
|
4484
|
-
return this._schema;
|
|
4485
|
-
}
|
|
4486
|
-
set schemaJSON(t) {
|
|
4487
|
-
this.schema = t;
|
|
4488
|
-
}
|
|
4489
|
-
get schemaJSON() {
|
|
4490
|
-
return this._schema?.toJSON?.();
|
|
4491
|
-
}
|
|
4492
|
-
setData(t, s = { validate: !0, autofix: !0 }) {
|
|
4493
|
-
if (!this._schema) throw new Error("请先设置 schema");
|
|
4494
|
-
const n = s.validate ? this._schema(t ?? null, { autofix: s.autofix }) : t;
|
|
4495
|
-
this._state = n, this.render();
|
|
4496
|
-
}
|
|
4497
|
-
getData(t = { validate: !0, autofix: !0 }) {
|
|
4498
|
-
if (!this._schema) throw new Error("请先设置 schema");
|
|
4499
|
-
const s = this._state;
|
|
4500
|
-
return t.validate ? this._schema(s ?? null, { autofix: t.autofix }) : s;
|
|
4501
|
-
}
|
|
4502
|
-
reset() {
|
|
4503
|
-
try {
|
|
4504
|
-
this._state = this._schema(null, { autofix: !0 });
|
|
4505
|
-
} catch {
|
|
4506
|
-
this._state = gt(this._schema);
|
|
4507
|
-
}
|
|
4508
|
-
this.render();
|
|
4509
|
-
}
|
|
4510
|
-
refresh() {
|
|
4511
|
-
this.render();
|
|
4512
|
-
}
|
|
4513
|
-
// i18n 相关
|
|
4514
|
-
set i18n(t) {
|
|
4515
|
-
this._i18n = { ...this._i18n, ...t }, this.render();
|
|
4516
|
-
}
|
|
4517
|
-
get i18n() {
|
|
4518
|
-
return this._i18n;
|
|
4519
|
-
}
|
|
4520
|
-
render() {
|
|
4521
|
-
if (!this._schema) return;
|
|
4522
|
-
const t = this.$root.querySelector("form");
|
|
4523
|
-
t.innerHTML = "";
|
|
4524
|
-
const s = _t(
|
|
4525
|
-
this._schema,
|
|
4526
|
-
[],
|
|
4527
|
-
this._state,
|
|
4528
|
-
this._i18n.rootLabel,
|
|
4529
|
-
this._i18n
|
|
4530
|
-
);
|
|
4531
|
-
t.appendChild(s);
|
|
4532
|
-
}
|
|
4533
|
-
}
|
|
4534
|
-
Y("schema-form", $i);
|
|
4535
|
-
function dc() {
|
|
4536
|
-
Y("schema-form", $i), Y("schema-form-string", vi), Y("schema-form-number", bi), Y("schema-form-boolean", yi), Y("schema-form-date", xi), Y("schema-form-const", Ci), Y("schema-form-union", Ei), Y("schema-form-tuple", Si), Y("schema-form-object", wi), Y("schema-form-array", bs), Y("schema-form-dict", Ti);
|
|
4537
|
-
}
|
|
4538
|
-
const pc = /* @__PURE__ */ Lr({
|
|
4539
|
-
__name: "SchemasteryFormVue",
|
|
4540
|
-
props: /* @__PURE__ */ Nn({
|
|
4541
|
-
schema: {},
|
|
4542
|
-
value: {},
|
|
4543
|
-
validateOnChange: { type: Boolean, default: !1 }
|
|
4544
|
-
}, {
|
|
4545
|
-
schema: { required: !0 },
|
|
4546
|
-
schemaModifiers: {},
|
|
4547
|
-
value: { required: !1, default: {} },
|
|
4548
|
-
valueModifiers: {}
|
|
4549
|
-
}),
|
|
4550
|
-
emits: /* @__PURE__ */ Nn(["change"], ["update:schema", "update:value"]),
|
|
4551
|
-
setup(e, { expose: t, emit: s }) {
|
|
4552
|
-
const n = Un(e, "schema"), r = Un(e, "value"), i = s, o = Ro("elRef");
|
|
4553
|
-
let l = !1, c = !1;
|
|
4554
|
-
const h = (u) => {
|
|
4555
|
-
if (c)
|
|
4556
|
-
return;
|
|
4557
|
-
const d = o.value, p = e.validateOnChange ? d.getData({ validate: !0 }) : u.detail.state;
|
|
4558
|
-
l = !0, r.value = p, Gt(() => {
|
|
4559
|
-
l = !1;
|
|
4560
|
-
}), i("change", u.detail);
|
|
4561
|
-
};
|
|
4562
|
-
return Ur(() => {
|
|
4563
|
-
dc();
|
|
4564
|
-
}), un(() => {
|
|
4565
|
-
const u = o.value;
|
|
4566
|
-
n.value && (u.schema = n.value), r.value !== void 0 && u.setData(r.value, { validate: !1, autofix: !0 }), u.addEventListener("form-change", h);
|
|
4567
|
-
}), Vr(() => {
|
|
4568
|
-
o.value?.removeEventListener("form-change", h);
|
|
4569
|
-
}), pt(
|
|
4570
|
-
() => n,
|
|
4571
|
-
(u) => {
|
|
4572
|
-
l || o.value && u && o.value.schema !== u.value && (c = !0, o.value.schema = u.value, Gt(() => {
|
|
4573
|
-
c = !1;
|
|
4574
|
-
}));
|
|
4575
|
-
},
|
|
4576
|
-
{ deep: !0, immediate: !0 }
|
|
4577
|
-
), pt(
|
|
4578
|
-
() => r,
|
|
4579
|
-
(u) => {
|
|
4580
|
-
if (l || !o.value || u.value === void 0) return;
|
|
4581
|
-
const d = o.value.getData({ validate: !1 });
|
|
4582
|
-
JSON.stringify(d) !== JSON.stringify(u.value) && (c = !0, o.value.setData(u.value, { validate: !1 }), Gt(() => {
|
|
4583
|
-
c = !1;
|
|
4584
|
-
}));
|
|
4585
|
-
},
|
|
4586
|
-
{ deep: !0, immediate: !0 }
|
|
4587
|
-
), t({
|
|
4588
|
-
/** 手动设置数据并可选择是否触发 v-model:data */
|
|
4589
|
-
setData(u, d) {
|
|
4590
|
-
const p = o.value;
|
|
4591
|
-
p.setData(u, { validate: !!d?.validate }), d?.emit && (r.value = p.getData({ validate: !!d?.validate }));
|
|
4592
|
-
},
|
|
4593
|
-
/** 获取数据 */
|
|
4594
|
-
getData(u) {
|
|
4595
|
-
return o.value.getData(u);
|
|
4596
|
-
},
|
|
4597
|
-
/** 设置 schema,并同步到 v-model:schema */
|
|
4598
|
-
setSchema(u, d = !0) {
|
|
4599
|
-
o.value.schema = u, d && (n.value = u);
|
|
4600
|
-
},
|
|
4601
|
-
refresh() {
|
|
4602
|
-
o.value.refresh();
|
|
4603
|
-
},
|
|
4604
|
-
reset() {
|
|
4605
|
-
o.value.reset();
|
|
4606
|
-
},
|
|
4607
|
-
/** 原生元素 */
|
|
4608
|
-
el: o
|
|
4609
|
-
}), (u, d) => (Ve(), ct("schema-form", fi({
|
|
4610
|
-
ref_key: "elRef",
|
|
4611
|
-
ref: o
|
|
4612
|
-
}, u.$attrs), null, 16));
|
|
4613
|
-
}
|
|
4614
|
-
});
|
|
4615
|
-
function tt(e, t = /* @__PURE__ */ new WeakMap()) {
|
|
4616
|
-
if (ee(e))
|
|
4617
|
-
return tt(e.value, t);
|
|
4618
|
-
if (e === null || typeof e != "object")
|
|
4619
|
-
return e;
|
|
4620
|
-
if (t.has(e))
|
|
4621
|
-
return t.get(e);
|
|
4622
|
-
if (e instanceof Date)
|
|
4623
|
-
return new Date(e);
|
|
4624
|
-
if (e instanceof RegExp)
|
|
4625
|
-
return new RegExp(e);
|
|
4626
|
-
if (e instanceof Map) {
|
|
4627
|
-
const r = /* @__PURE__ */ new Map();
|
|
4628
|
-
return t.set(e, r), Array.from(e.entries()).forEach(([i, o]) => {
|
|
4629
|
-
r.set(i, tt(o, t));
|
|
4630
|
-
}), r;
|
|
4631
|
-
}
|
|
4632
|
-
if (e instanceof Set) {
|
|
4633
|
-
const r = /* @__PURE__ */ new Set();
|
|
4634
|
-
return t.set(e, r), Array.from(e).forEach((i) => {
|
|
4635
|
-
r.add(tt(i, t));
|
|
4636
|
-
}), r;
|
|
4637
|
-
}
|
|
4638
|
-
if (Array.isArray(e)) {
|
|
4639
|
-
const r = [];
|
|
4640
|
-
t.set(e, r);
|
|
4641
|
-
for (const i of e)
|
|
4642
|
-
r.push(tt(i, t));
|
|
4643
|
-
return r;
|
|
4644
|
-
}
|
|
4645
|
-
const s = j(e), n = {};
|
|
4646
|
-
t.set(e, n);
|
|
4647
|
-
for (const r of Object.keys(s))
|
|
4648
|
-
n[r] = tt(s[r], t);
|
|
4649
|
-
for (const r of Object.getOwnPropertySymbols(s))
|
|
4650
|
-
n[r] = tt(s[r], t);
|
|
4651
|
-
return n;
|
|
4652
|
-
}
|
|
4653
|
-
const mc = { class: "preferences-ui-app" }, gc = { class: "tabs" }, _c = ["onClick", "data-value"], vc = { key: 0 }, bc = { style: { "max-height": "20em", overflow: "auto" } }, yc = /* @__PURE__ */ Lr({
|
|
4654
|
-
__name: "PreferencesForm",
|
|
4655
|
-
setup(e, { expose: t }) {
|
|
4656
|
-
const s = lc(), n = !1, r = In([]), i = In(""), o = Jt([]), l = pi(() => o.value.map((u) => u.schema)), c = Jt({}), h = Jt({});
|
|
4657
|
-
return t({
|
|
4658
|
-
getValue() {
|
|
4659
|
-
return tt(h);
|
|
4660
|
-
}
|
|
4661
|
-
}), pt(
|
|
4662
|
-
i,
|
|
4663
|
-
(u) => {
|
|
4664
|
-
u && (c.value = h.value, o.value = s.preferences.getConfigRegistries(u));
|
|
4665
|
-
},
|
|
4666
|
-
{ immediate: !0 }
|
|
4667
|
-
), un(async () => {
|
|
4668
|
-
s.inject(["preferences"], async (u) => {
|
|
4669
|
-
const d = await u.preferences.getAll();
|
|
4670
|
-
c.value = h.value = d, r.value = u.preferences.getConfigCategories(), i.value = r.value[0].name;
|
|
4671
|
-
});
|
|
4672
|
-
}), (u, d) => (Ve(), ct("div", mc, [
|
|
4673
|
-
is("div", gc, [
|
|
4674
|
-
(Ve(!0), ct(ge, null, Fn(r.value, (p) => (Ve(), ct("a", {
|
|
4675
|
-
class: hs(["tab", { active: i.value === p.name }]),
|
|
4676
|
-
key: p.name,
|
|
4677
|
-
onClick: (v) => i.value = p.name,
|
|
4678
|
-
"data-value": p.name
|
|
4679
|
-
}, Fs(p.label), 11, _c))), 128))
|
|
4680
|
-
]),
|
|
4681
|
-
(Ve(!0), ct(ge, null, Fn(l.value, (p, v) => (Ve(), ci(Hs(pc), {
|
|
4682
|
-
key: `${i.value}-${v}`,
|
|
4683
|
-
schema: p,
|
|
4684
|
-
value: c.value,
|
|
4685
|
-
"onUpdate:value": d[0] || (d[0] = (x) => h.value = x),
|
|
4686
|
-
"validate-on-change": !1,
|
|
4687
|
-
i18n: { rootLabel: "" }
|
|
4688
|
-
}, null, 8, ["schema", "value"]))), 128)),
|
|
4689
|
-
Hs(n) ? (Ve(), ct("details", vc, [
|
|
4690
|
-
is("pre", bc, Fs(h.value), 1)
|
|
4691
|
-
])) : wl("", !0)
|
|
4692
|
-
]));
|
|
4693
|
-
}
|
|
4694
|
-
}), xc = (e, t) => {
|
|
4695
|
-
const s = e.__vccOpts || e;
|
|
4696
|
-
for (const [n, r] of t)
|
|
4697
|
-
s[n] = r;
|
|
4698
|
-
return s;
|
|
4699
|
-
}, Cc = /* @__PURE__ */ xc(yc, [["__scopeId", "data-v-2a1a9c7e"]]);
|
|
4700
|
-
var Ec = Object.create, vn = Object.defineProperty, Sc = Object.getOwnPropertyDescriptor, Ai = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), Pi = (e) => {
|
|
4701
|
-
throw TypeError(e);
|
|
4702
|
-
}, wc = (e, t, s) => t in e ? vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, Tc = (e, t) => vn(e, "name", { value: t, configurable: !0 }), $c = (e) => [, , , Ec(e?.[Ai("metadata")] ?? null)], Ac = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Ii = (e) => e !== void 0 && typeof e != "function" ? Pi("Function expected") : e, Pc = (e, t, s, n, r) => ({ kind: Ac[e], name: t, metadata: n, addInitializer: (i) => s._ ? Pi("Already initialized") : r.push(Ii(i || null)) }), Ic = (e, t) => wc(t, Ai("metadata"), e[3]), Mc = (e, t, s, n) => {
|
|
4703
|
-
for (var r = 0, i = e[t >> 1], o = i && i.length; r < o; r++) i[r].call(s);
|
|
4704
|
-
return n;
|
|
4705
|
-
}, Oc = (e, t, s, n, r, i) => {
|
|
4706
|
-
var o, l, c, h = t & 7, u = !1, d = 0, p = e[d] || (e[d] = []), v = h && (r = r.prototype, h < 5 && (h > 3 || !u) && Sc(r, s));
|
|
4707
|
-
Tc(r, s);
|
|
4708
|
-
for (var x = n.length - 1; x >= 0; x--)
|
|
4709
|
-
c = Pc(h, s, l = {}, e[3], p), o = (0, n[x])(r, c), l._ = 1, Ii(o) && (r = o);
|
|
4710
|
-
return Ic(e, r), v && vn(r, s, v), u ? h ^ 4 ? i : v : r;
|
|
4711
|
-
}, Mi, bn, Oi;
|
|
4712
|
-
Mi = [ji(["preferences", "modal"])];
|
|
4713
|
-
class Js extends (Oi = Di) {
|
|
4714
|
-
constructor(t) {
|
|
4715
|
-
super(t, {}, "preferences-ui"), this.ctx = t, this._latestModal = null, t.set("preferencesUI", this), t.preferences.defineCategory({
|
|
4716
|
-
name: "about",
|
|
4717
|
-
label: "About",
|
|
4718
|
-
description: "About InPageEdit",
|
|
4719
|
-
index: 99
|
|
4720
|
-
}), t.preferences.registerCustomConfig(
|
|
4721
|
-
"about",
|
|
4722
|
-
Tn.object({
|
|
4723
|
-
about: Tn.const(
|
|
4724
|
-
/* @__PURE__ */ z("div", { className: "prose", children: [
|
|
4725
|
-
/* @__PURE__ */ z("h2", { children: "✏️ InPageEdit NEXT" }),
|
|
4726
|
-
/* @__PURE__ */ z("i", { children: [
|
|
4727
|
-
"v",
|
|
4728
|
-
this.ctx.version
|
|
4729
|
-
] }),
|
|
4730
|
-
/* @__PURE__ */ z("h2", { children: "Portals" }),
|
|
4731
|
-
/* @__PURE__ */ z("div", { style: "display: flex; flex-direction: column; gap: 1rem", children: [
|
|
4732
|
-
/* @__PURE__ */ z(
|
|
4733
|
-
"a",
|
|
4734
|
-
{
|
|
4735
|
-
href: this.ctx.Endpoints.HOME_URL,
|
|
4736
|
-
target: "_blank",
|
|
4737
|
-
style: { display: "block", width: "100%" },
|
|
4738
|
-
children: "Official Website & Help Center"
|
|
4739
|
-
}
|
|
4740
|
-
),
|
|
4741
|
-
/* @__PURE__ */ z(
|
|
4742
|
-
Hi,
|
|
4743
|
-
{
|
|
4744
|
-
href: `${this.ctx.Endpoints.UPDATE_LOGS_URL}#${this.ctx.version}`,
|
|
4745
|
-
style: { display: "block", width: "100%" },
|
|
4746
|
-
children: "Update Logs"
|
|
4747
|
-
}
|
|
4748
|
-
)
|
|
4749
|
-
] }),
|
|
4750
|
-
/* @__PURE__ */ z("h2", { children: "Join us" }),
|
|
4751
|
-
/* @__PURE__ */ z("ul", { children: [
|
|
4752
|
-
/* @__PURE__ */ z("li", { children: [
|
|
4753
|
-
/* @__PURE__ */ z("strong", { children: "GitHub" }),
|
|
4754
|
-
":",
|
|
4755
|
-
" ",
|
|
4756
|
-
/* @__PURE__ */ z("a", { href: this.ctx.Endpoints.GITHUB_URL, target: "_blank", children: "inpageedit/inpageedit-next" })
|
|
4757
|
-
] }),
|
|
4758
|
-
/* @__PURE__ */ z("li", { children: [
|
|
4759
|
-
/* @__PURE__ */ z("strong", { children: "QQ Group" }),
|
|
4760
|
-
": 1026023666"
|
|
4761
|
-
] })
|
|
4762
|
-
] }),
|
|
4763
|
-
/* @__PURE__ */ z("hr", {}),
|
|
4764
|
-
/* @__PURE__ */ z("p", { children: "🚀 Modular, Extensible Supercharged Plugin for MediaWiki." }),
|
|
4765
|
-
/* @__PURE__ */ z("p", { children: "InPageEdit-NEXT Copyright © 2025-present dragon-fish" })
|
|
4766
|
-
] })
|
|
4767
|
-
).role("raw-html")
|
|
4768
|
-
}).description(""),
|
|
4769
|
-
"about"
|
|
4770
|
-
), t.inject(["toolbox"], (s) => {
|
|
4771
|
-
s.toolbox.addButton({
|
|
4772
|
-
id: "preferences",
|
|
4773
|
-
icon: /* @__PURE__ */ z(
|
|
4774
|
-
"svg",
|
|
4775
|
-
{
|
|
4776
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4777
|
-
width: "24",
|
|
4778
|
-
height: "24",
|
|
4779
|
-
viewBox: "0 0 24 24",
|
|
4780
|
-
fill: "currentColor",
|
|
4781
|
-
class: "icon icon-tabler icons-tabler-filled icon-tabler-settings",
|
|
4782
|
-
children: [
|
|
4783
|
-
/* @__PURE__ */ z("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
|
|
4784
|
-
/* @__PURE__ */ z("path", { d: "M14.647 4.081a.724 .724 0 0 0 1.08 .448c2.439 -1.485 5.23 1.305 3.745 3.744a.724 .724 0 0 0 .447 1.08c2.775 .673 2.775 4.62 0 5.294a.724 .724 0 0 0 -.448 1.08c1.485 2.439 -1.305 5.23 -3.744 3.745a.724 .724 0 0 0 -1.08 .447c-.673 2.775 -4.62 2.775 -5.294 0a.724 .724 0 0 0 -1.08 -.448c-2.439 1.485 -5.23 -1.305 -3.745 -3.744a.724 .724 0 0 0 -.447 -1.08c-2.775 -.673 -2.775 -4.62 0 -5.294a.724 .724 0 0 0 .448 -1.08c-1.485 -2.439 1.305 -5.23 3.744 -3.745a.722 .722 0 0 0 1.08 -.447c.673 -2.775 4.62 -2.775 5.294 0zm-2.647 4.919a3 3 0 1 0 0 6a3 3 0 0 0 0 -6z" })
|
|
4785
|
-
]
|
|
4786
|
-
}
|
|
4787
|
-
),
|
|
4788
|
-
tooltip: "Configure Preferences",
|
|
4789
|
-
group: "group2",
|
|
4790
|
-
index: 1 / 0,
|
|
4791
|
-
onClick: () => this.showModal()
|
|
4792
|
-
}), this.addDisposeHandler((n) => {
|
|
4793
|
-
n.toolbox.removeButton("preferences");
|
|
4794
|
-
});
|
|
4795
|
-
});
|
|
4796
|
-
}
|
|
4797
|
-
async start() {
|
|
4798
|
-
import("./PluginPrefSync-CNCU2DJU.js").then(({ PluginPrefSync: t }) => {
|
|
4799
|
-
this.ctx.plugin(t);
|
|
4800
|
-
}).catch(this.ctx.logger.warn);
|
|
4801
|
-
}
|
|
4802
|
-
stop() {
|
|
4803
|
-
}
|
|
4804
|
-
getExistingModal() {
|
|
4805
|
-
return this._latestModal;
|
|
4806
|
-
}
|
|
4807
|
-
showModal() {
|
|
4808
|
-
const t = this.ctx.modal.show({
|
|
4809
|
-
className: "ipe-preference compact-buttons",
|
|
4810
|
-
sizeClass: "small",
|
|
4811
|
-
outSideClose: !1,
|
|
4812
|
-
center: !0,
|
|
4813
|
-
title: `InPageEdit Preferences (${this.ctx.version})`,
|
|
4814
|
-
content: /* @__PURE__ */ z(Li, { children: /* @__PURE__ */ z(Ri, {}) })
|
|
4815
|
-
});
|
|
4816
|
-
t.get$window().classList.add("dialog");
|
|
4817
|
-
const s = /* @__PURE__ */ z("div", { id: "ipe-preferences-app", style: { minHeight: "65vh" } });
|
|
4818
|
-
t.setContent(s);
|
|
4819
|
-
const n = this.createForm(), r = n.mount(s);
|
|
4820
|
-
t.setButtons([
|
|
4821
|
-
{
|
|
4822
|
-
label: "Cancel",
|
|
4823
|
-
className: "is-danger is-ghost",
|
|
4824
|
-
method: () => {
|
|
4825
|
-
t.close();
|
|
4826
|
-
}
|
|
4827
|
-
},
|
|
4828
|
-
{
|
|
4829
|
-
label: "Save",
|
|
4830
|
-
className: "is-primary is-ghost",
|
|
4831
|
-
method: () => {
|
|
4832
|
-
const i = r.getValue();
|
|
4833
|
-
this.logger.info("saving preferences", i);
|
|
4834
|
-
try {
|
|
4835
|
-
Object.entries(i).forEach(([o, l]) => {
|
|
4836
|
-
this.ctx.preferences.set(o, l).catch(console.error);
|
|
4837
|
-
});
|
|
4838
|
-
} catch (o) {
|
|
4839
|
-
this.logger.error("failed to save preferences", o);
|
|
4840
|
-
}
|
|
4841
|
-
t.close(), this.ctx.modal.notify("success", {
|
|
4842
|
-
title: "Preferences Saved",
|
|
4843
|
-
content: /* @__PURE__ */ z("p", { children: "Some settings may take effect after reloading the page." })
|
|
4844
|
-
});
|
|
4845
|
-
}
|
|
4846
|
-
}
|
|
4847
|
-
]), this._latestModal = t, t.on(t.Event.Close, () => {
|
|
4848
|
-
this.logger.debug("preferences modal closed, vue app unmounting"), n.unmount(), this._latestModal = null;
|
|
4849
|
-
});
|
|
4850
|
-
}
|
|
4851
|
-
createForm() {
|
|
4852
|
-
return cc(this.ctx, Cc);
|
|
4853
|
-
}
|
|
4854
|
-
}
|
|
4855
|
-
bn = $c(Oi);
|
|
4856
|
-
Js = Oc(bn, 0, "PluginPreferencesUI", Mi, Js);
|
|
4857
|
-
Mc(bn, 1, Js);
|
|
4858
|
-
export {
|
|
4859
|
-
Js as PluginPreferencesUI
|
|
4860
|
-
};
|
|
4861
|
-
//# sourceMappingURL=index-DqJUIV2e.js.map
|