@inpageedit/core 0.4.1 → 0.5.0

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