@delta-comic/plugin 0.0.0-semantically-released → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,14 +1,20 @@
1
+ import { SharedFunction } from "@delta-comic/core";
2
+ import { useNativeStore } from "@delta-comic/db";
3
+ import { useGlobalVar } from "@delta-comic/utils";
4
+ import { computed, getCurrentInstance, getCurrentScope, hasInjectionContext, inject, onMounted, shallowReactive, shallowRef, toValue, unref, watch, watchEffect } from "vue";
5
+ import { defineStore } from "pinia";
6
+ import { SourcedKeyMap } from "@delta-comic/model";
1
7
  function isLength(e) {
2
8
  return Number.isSafeInteger(e) && e >= 0;
3
9
  }
4
- function isString$2(e) {
10
+ function isString(e) {
5
11
  return typeof e == "string";
6
12
  }
7
13
  function isUndefined(e) {
8
14
  return e === void 0;
9
15
  }
10
- function isArrayLike(t) {
11
- return t != null && typeof t != "function" && isLength(t.length);
16
+ function isArrayLike(e) {
17
+ return e != null && typeof e != "function" && isLength(e.length);
12
18
  }
13
19
  function fromPairs(e) {
14
20
  if (!isArrayLike(e)) return {};
@@ -19,4000 +25,35 @@ function fromPairs(e) {
19
25
  }
20
26
  return t;
21
27
  }
22
- function isFunction$2(e) {
28
+ function isFunction(e) {
23
29
  return typeof e == "function";
24
30
  }
25
- var useGlobalVar = (e, t) => (window.$api.__core_lib__ ??= {})[t] ??= e;
26
- /**
27
- * @vue/shared v3.5.28
28
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
29
- * @license MIT
30
- **/
31
- /* @__NO_SIDE_EFFECTS__ */
32
- function makeMap$1(e) {
33
- let t = /* @__PURE__ */ Object.create(null);
34
- for (let n of e.split(",")) t[n] = 1;
35
- return (e) => e in t;
36
- }
37
- var EMPTY_OBJ$1 = process.env.NODE_ENV === "production" ? {} : Object.freeze({});
38
- process.env.NODE_ENV === "production" || Object.freeze([]);
39
- var NOOP$1 = () => {}, isOn$1 = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), extend$1 = Object.assign, remove$1 = (e, t) => {
40
- let n = e.indexOf(t);
41
- n > -1 && e.splice(n, 1);
42
- }, hasOwnProperty$1$1 = Object.prototype.hasOwnProperty, hasOwn$1 = (e, t) => hasOwnProperty$1$1.call(e, t), isArray$1 = Array.isArray, isMap$1 = (e) => toTypeString$1(e) === "[object Map]", isSet$1 = (e) => toTypeString$1(e) === "[object Set]", isFunction$1 = (e) => typeof e == "function", isString$1 = (e) => typeof e == "string", isSymbol$1 = (e) => typeof e == "symbol", isObject$2 = (e) => typeof e == "object" && !!e, isPromise$1 = (e) => (isObject$2(e) || isFunction$1(e)) && isFunction$1(e.then) && isFunction$1(e.catch), objectToString$1 = Object.prototype.toString, toTypeString$1 = (e) => objectToString$1.call(e), toRawType$1 = (e) => toTypeString$1(e).slice(8, -1), isPlainObject$1$1 = (e) => toTypeString$1(e) === "[object Object]", isIntegerKey$1 = (e) => isString$1(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, capitalize$1 = ((e) => {
43
- let t = /* @__PURE__ */ Object.create(null);
44
- return ((n) => t[n] || (t[n] = e(n)));
45
- })((e) => e.charAt(0).toUpperCase() + e.slice(1)), hasChanged$1 = (e, t) => !Object.is(e, t), def$1 = (e, t, n, r = !1) => {
46
- Object.defineProperty(e, t, {
47
- configurable: !0,
48
- enumerable: !1,
49
- writable: r,
50
- value: n
51
- });
52
- }, _globalThis$1, getGlobalThis$1 = () => _globalThis$1 ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
53
- function normalizeStyle$1(e) {
54
- if (isArray$1(e)) {
55
- let t = {};
56
- for (let n = 0; n < e.length; n++) {
57
- let r = e[n], i = isString$1(r) ? parseStringStyle$1(r) : normalizeStyle$1(r);
58
- if (i) for (let e in i) t[e] = i[e];
59
- }
60
- return t;
61
- } else if (isString$1(e) || isObject$2(e)) return e;
62
- }
63
- var listDelimiterRE$1 = /;(?![^(]*\))/g, propertyDelimiterRE$1 = /:([^]+)/, styleCommentRE$1 = /\/\*[^]*?\*\//g;
64
- function parseStringStyle$1(e) {
65
- let t = {};
66
- return e.replace(styleCommentRE$1, "").split(listDelimiterRE$1).forEach((e) => {
67
- if (e) {
68
- let n = e.split(propertyDelimiterRE$1);
69
- n.length > 1 && (t[n[0].trim()] = n[1].trim());
70
- }
71
- }), t;
72
- }
73
- function normalizeClass$1(e) {
74
- let t = "";
75
- if (isString$1(e)) t = e;
76
- else if (isArray$1(e)) for (let n = 0; n < e.length; n++) {
77
- let r = normalizeClass$1(e[n]);
78
- r && (t += r + " ");
79
- }
80
- else if (isObject$2(e)) for (let n in e) e[n] && (t += n + " ");
81
- return t.trim();
82
- }
83
- /**
84
- * @vue/reactivity v3.5.28
85
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
86
- * @license MIT
87
- **/
88
- function warn$2$1(e, ...t) {
89
- console.warn(`[Vue warn] ${e}`, ...t);
90
- }
91
- var activeEffectScope$1, EffectScope$1 = class {
92
- constructor(e = !1) {
93
- this.detached = e, this._active = !0, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = !1, this.__v_skip = !0, this.parent = activeEffectScope$1, !e && activeEffectScope$1 && (this.index = (activeEffectScope$1.scopes ||= []).push(this) - 1);
94
- }
95
- get active() {
96
- return this._active;
97
- }
98
- pause() {
99
- if (this._active) {
100
- this._isPaused = !0;
101
- let e, t;
102
- if (this.scopes) for (e = 0, t = this.scopes.length; e < t; e++) this.scopes[e].pause();
103
- for (e = 0, t = this.effects.length; e < t; e++) this.effects[e].pause();
104
- }
105
- }
106
- resume() {
107
- if (this._active && this._isPaused) {
108
- this._isPaused = !1;
109
- let e, t;
110
- if (this.scopes) for (e = 0, t = this.scopes.length; e < t; e++) this.scopes[e].resume();
111
- for (e = 0, t = this.effects.length; e < t; e++) this.effects[e].resume();
112
- }
113
- }
114
- run(e) {
115
- if (this._active) {
116
- let t = activeEffectScope$1;
117
- try {
118
- return activeEffectScope$1 = this, e();
119
- } finally {
120
- activeEffectScope$1 = t;
121
- }
122
- } else process.env.NODE_ENV !== "production" && warn$2$1("cannot run an inactive effect scope.");
123
- }
124
- on() {
125
- ++this._on === 1 && (this.prevScope = activeEffectScope$1, activeEffectScope$1 = this);
126
- }
127
- off() {
128
- this._on > 0 && --this._on === 0 && (activeEffectScope$1 = this.prevScope, this.prevScope = void 0);
129
- }
130
- stop(e) {
131
- if (this._active) {
132
- this._active = !1;
133
- let t, n;
134
- for (t = 0, n = this.effects.length; t < n; t++) this.effects[t].stop();
135
- for (this.effects.length = 0, t = 0, n = this.cleanups.length; t < n; t++) this.cleanups[t]();
136
- if (this.cleanups.length = 0, this.scopes) {
137
- for (t = 0, n = this.scopes.length; t < n; t++) this.scopes[t].stop(!0);
138
- this.scopes.length = 0;
139
- }
140
- if (!this.detached && this.parent && !e) {
141
- let e = this.parent.scopes.pop();
142
- e && e !== this && (this.parent.scopes[this.index] = e, e.index = this.index);
143
- }
144
- this.parent = void 0;
145
- }
146
- }
147
- };
148
- function effectScope$1(e) {
149
- return new EffectScope$1(e);
150
- }
151
- function getCurrentScope$1() {
152
- return activeEffectScope$1;
153
- }
154
- function onScopeDispose$1(e, t = !1) {
155
- activeEffectScope$1 ? activeEffectScope$1.cleanups.push(e) : process.env.NODE_ENV !== "production" && !t && warn$2$1("onScopeDispose() is called when there is no active effect scope to be associated with.");
156
- }
157
- var activeSub$1, pausedQueueEffects$1 = /* @__PURE__ */ new WeakSet(), ReactiveEffect$1 = class {
158
- constructor(e) {
159
- this.fn = e, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0, activeEffectScope$1 && activeEffectScope$1.active && activeEffectScope$1.effects.push(this);
160
- }
161
- pause() {
162
- this.flags |= 64;
163
- }
164
- resume() {
165
- this.flags & 64 && (this.flags &= -65, pausedQueueEffects$1.has(this) && (pausedQueueEffects$1.delete(this), this.trigger()));
166
- }
167
- notify() {
168
- this.flags & 2 && !(this.flags & 32) || this.flags & 8 || batch$1(this);
169
- }
170
- run() {
171
- if (!(this.flags & 1)) return this.fn();
172
- this.flags |= 2, cleanupEffect$1(this), prepareDeps$1(this);
173
- let e = activeSub$1, t = shouldTrack$1;
174
- activeSub$1 = this, shouldTrack$1 = !0;
175
- try {
176
- return this.fn();
177
- } finally {
178
- process.env.NODE_ENV !== "production" && activeSub$1 !== this && warn$2$1("Active effect was not restored correctly - this is likely a Vue internal bug."), cleanupDeps$1(this), activeSub$1 = e, shouldTrack$1 = t, this.flags &= -3;
179
- }
180
- }
181
- stop() {
182
- if (this.flags & 1) {
183
- for (let e = this.deps; e; e = e.nextDep) removeSub$1(e);
184
- this.deps = this.depsTail = void 0, cleanupEffect$1(this), this.onStop && this.onStop(), this.flags &= -2;
185
- }
186
- }
187
- trigger() {
188
- this.flags & 64 ? pausedQueueEffects$1.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
189
- }
190
- runIfDirty() {
191
- isDirty$1(this) && this.run();
192
- }
193
- get dirty() {
194
- return isDirty$1(this);
195
- }
196
- }, batchDepth$1 = 0, batchedSub$1, batchedComputed$1;
197
- function batch$1(e, t = !1) {
198
- if (e.flags |= 8, t) {
199
- e.next = batchedComputed$1, batchedComputed$1 = e;
200
- return;
201
- }
202
- e.next = batchedSub$1, batchedSub$1 = e;
203
- }
204
- function startBatch$1() {
205
- batchDepth$1++;
206
- }
207
- function endBatch$1() {
208
- if (--batchDepth$1 > 0) return;
209
- if (batchedComputed$1) {
210
- let e = batchedComputed$1;
211
- for (batchedComputed$1 = void 0; e;) {
212
- let t = e.next;
213
- e.next = void 0, e.flags &= -9, e = t;
214
- }
215
- }
216
- let e;
217
- for (; batchedSub$1;) {
218
- let t = batchedSub$1;
219
- for (batchedSub$1 = void 0; t;) {
220
- let n = t.next;
221
- if (t.next = void 0, t.flags &= -9, t.flags & 1) try {
222
- t.trigger();
223
- } catch (t) {
224
- e ||= t;
225
- }
226
- t = n;
227
- }
228
- }
229
- if (e) throw e;
230
- }
231
- function prepareDeps$1(e) {
232
- for (let t = e.deps; t; t = t.nextDep) t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
233
- }
234
- function cleanupDeps$1(e) {
235
- let t, n = e.depsTail, r = n;
236
- for (; r;) {
237
- let e = r.prevDep;
238
- r.version === -1 ? (r === n && (n = e), removeSub$1(r), removeDep$1(r)) : t = r, r.dep.activeLink = r.prevActiveLink, r.prevActiveLink = void 0, r = e;
239
- }
240
- e.deps = t, e.depsTail = n;
241
- }
242
- function isDirty$1(e) {
243
- for (let t = e.deps; t; t = t.nextDep) if (t.dep.version !== t.version || t.dep.computed && (refreshComputed$1(t.dep.computed) || t.dep.version !== t.version)) return !0;
244
- return !!e._dirty;
245
- }
246
- function refreshComputed$1(e) {
247
- if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === globalVersion$1) || (e.globalVersion = globalVersion$1, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !isDirty$1(e)))) return;
248
- e.flags |= 2;
249
- let t = e.dep, n = activeSub$1, r = shouldTrack$1;
250
- activeSub$1 = e, shouldTrack$1 = !0;
251
- try {
252
- prepareDeps$1(e);
253
- let n = e.fn(e._value);
254
- (t.version === 0 || hasChanged$1(n, e._value)) && (e.flags |= 128, e._value = n, t.version++);
255
- } catch (e) {
256
- throw t.version++, e;
257
- } finally {
258
- activeSub$1 = n, shouldTrack$1 = r, cleanupDeps$1(e), e.flags &= -3;
259
- }
260
- }
261
- function removeSub$1(e, t = !1) {
262
- let { dep: n, prevSub: r, nextSub: i } = e;
263
- if (r && (r.nextSub = i, e.prevSub = void 0), i && (i.prevSub = r, e.nextSub = void 0), process.env.NODE_ENV !== "production" && n.subsHead === e && (n.subsHead = i), n.subs === e && (n.subs = r, !r && n.computed)) {
264
- n.computed.flags &= -5;
265
- for (let e = n.computed.deps; e; e = e.nextDep) removeSub$1(e, !0);
266
- }
267
- !t && !--n.sc && n.map && n.map.delete(n.key);
268
- }
269
- function removeDep$1(e) {
270
- let { prevDep: t, nextDep: n } = e;
271
- t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
272
- }
273
- var shouldTrack$1 = !0, trackStack$1 = [];
274
- function pauseTracking$1() {
275
- trackStack$1.push(shouldTrack$1), shouldTrack$1 = !1;
276
- }
277
- function resetTracking$1() {
278
- let e = trackStack$1.pop();
279
- shouldTrack$1 = e === void 0 ? !0 : e;
280
- }
281
- function cleanupEffect$1(e) {
282
- let { cleanup: t } = e;
283
- if (e.cleanup = void 0, t) {
284
- let e = activeSub$1;
285
- activeSub$1 = void 0;
286
- try {
287
- t();
288
- } finally {
289
- activeSub$1 = e;
290
- }
291
- }
292
- }
293
- var globalVersion$1 = 0, Link$1 = class {
294
- constructor(e, t) {
295
- this.sub = e, this.dep = t, this.version = t.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
296
- }
297
- }, Dep$1 = class {
298
- constructor(e) {
299
- this.computed = e, 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, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
300
- }
301
- track(e) {
302
- if (!activeSub$1 || !shouldTrack$1 || activeSub$1 === this.computed) return;
303
- let t = this.activeLink;
304
- if (t === void 0 || t.sub !== activeSub$1) t = this.activeLink = new Link$1(activeSub$1, this), activeSub$1.deps ? (t.prevDep = activeSub$1.depsTail, activeSub$1.depsTail.nextDep = t, activeSub$1.depsTail = t) : activeSub$1.deps = activeSub$1.depsTail = t, addSub$1(t);
305
- else if (t.version === -1 && (t.version = this.version, t.nextDep)) {
306
- let e = t.nextDep;
307
- e.prevDep = t.prevDep, t.prevDep && (t.prevDep.nextDep = e), t.prevDep = activeSub$1.depsTail, t.nextDep = void 0, activeSub$1.depsTail.nextDep = t, activeSub$1.depsTail = t, activeSub$1.deps === t && (activeSub$1.deps = e);
308
- }
309
- return process.env.NODE_ENV !== "production" && activeSub$1.onTrack && activeSub$1.onTrack(extend$1({ effect: activeSub$1 }, e)), t;
310
- }
311
- trigger(e) {
312
- this.version++, globalVersion$1++, this.notify(e);
313
- }
314
- notify(e) {
315
- startBatch$1();
316
- try {
317
- if (process.env.NODE_ENV !== "production") for (let t = this.subsHead; t; t = t.nextSub) t.sub.onTrigger && !(t.sub.flags & 8) && t.sub.onTrigger(extend$1({ effect: t.sub }, e));
318
- for (let e = this.subs; e; e = e.prevSub) e.sub.notify() && e.sub.dep.notify();
319
- } finally {
320
- endBatch$1();
321
- }
322
- }
323
- };
324
- function addSub$1(e) {
325
- if (e.dep.sc++, e.sub.flags & 4) {
326
- let t = e.dep.computed;
327
- if (t && !e.dep.subs) {
328
- t.flags |= 20;
329
- for (let e = t.deps; e; e = e.nextDep) addSub$1(e);
330
- }
331
- let n = e.dep.subs;
332
- n !== e && (e.prevSub = n, n && (n.nextSub = e)), process.env.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;
333
- }
334
- }
335
- var targetMap$1 = /* @__PURE__ */ new WeakMap(), ITERATE_KEY$1 = /* @__PURE__ */ Symbol(process.env.NODE_ENV === "production" ? "" : "Object iterate"), MAP_KEY_ITERATE_KEY$1 = /* @__PURE__ */ Symbol(process.env.NODE_ENV === "production" ? "" : "Map keys iterate"), ARRAY_ITERATE_KEY$1 = /* @__PURE__ */ Symbol(process.env.NODE_ENV === "production" ? "" : "Array iterate");
336
- function track$1(e, t, n) {
337
- if (shouldTrack$1 && activeSub$1) {
338
- let r = targetMap$1.get(e);
339
- r || targetMap$1.set(e, r = /* @__PURE__ */ new Map());
340
- let i = r.get(n);
341
- i || (r.set(n, i = new Dep$1()), i.map = r, i.key = n), process.env.NODE_ENV === "production" ? i.track() : i.track({
342
- target: e,
343
- type: t,
344
- key: n
345
- });
346
- }
347
- }
348
- function trigger$1(e, t, n, r, i, a) {
349
- let o = targetMap$1.get(e);
350
- if (!o) {
351
- globalVersion$1++;
352
- return;
353
- }
354
- let s = (o) => {
355
- o && (process.env.NODE_ENV === "production" ? o.trigger() : o.trigger({
356
- target: e,
357
- type: t,
358
- key: n,
359
- newValue: r,
360
- oldValue: i,
361
- oldTarget: a
362
- }));
363
- };
364
- if (startBatch$1(), t === "clear") o.forEach(s);
365
- else {
366
- let i = isArray$1(e), a = i && isIntegerKey$1(n);
367
- if (i && n === "length") {
368
- let e = Number(r);
369
- o.forEach((t, n) => {
370
- (n === "length" || n === ARRAY_ITERATE_KEY$1 || !isSymbol$1(n) && n >= e) && s(t);
371
- });
372
- } else switch ((n !== void 0 || o.has(void 0)) && s(o.get(n)), a && s(o.get(ARRAY_ITERATE_KEY$1)), t) {
373
- case "add":
374
- i ? a && s(o.get("length")) : (s(o.get(ITERATE_KEY$1)), isMap$1(e) && s(o.get(MAP_KEY_ITERATE_KEY$1)));
375
- break;
376
- case "delete":
377
- i || (s(o.get(ITERATE_KEY$1)), isMap$1(e) && s(o.get(MAP_KEY_ITERATE_KEY$1)));
378
- break;
379
- case "set":
380
- isMap$1(e) && s(o.get(ITERATE_KEY$1));
381
- break;
382
- }
383
- }
384
- endBatch$1();
385
- }
386
- function getDepFromReactive$1(e, t) {
387
- let n = targetMap$1.get(e);
388
- return n && n.get(t);
389
- }
390
- function reactiveReadArray$1(e) {
391
- let t = /* @__PURE__ */ toRaw$1(e);
392
- return t === e ? t : (track$1(t, "iterate", ARRAY_ITERATE_KEY$1), /* @__PURE__ */ isShallow$1(e) ? t : t.map(toReactive$1));
393
- }
394
- function shallowReadArray$1(e) {
395
- return track$1(e = /* @__PURE__ */ toRaw$1(e), "iterate", ARRAY_ITERATE_KEY$1), e;
396
- }
397
- function toWrapped$1(e, t) {
398
- return /* @__PURE__ */ isReadonly$1(e) ? toReadonly$1(/* @__PURE__ */ isReactive$1(e) ? toReactive$1(t) : t) : toReactive$1(t);
399
- }
400
- var arrayInstrumentations$1 = {
401
- __proto__: null,
402
- [Symbol.iterator]() {
403
- return iterator$1(this, Symbol.iterator, (e) => toWrapped$1(this, e));
404
- },
405
- concat(...e) {
406
- return reactiveReadArray$1(this).concat(...e.map((e) => isArray$1(e) ? reactiveReadArray$1(e) : e));
407
- },
408
- entries() {
409
- return iterator$1(this, "entries", (e) => (e[1] = toWrapped$1(this, e[1]), e));
410
- },
411
- every(e, t) {
412
- return apply$1(this, "every", e, t, void 0, arguments);
413
- },
414
- filter(e, t) {
415
- return apply$1(this, "filter", e, t, (e) => e.map((e) => toWrapped$1(this, e)), arguments);
416
- },
417
- find(e, t) {
418
- return apply$1(this, "find", e, t, (e) => toWrapped$1(this, e), arguments);
419
- },
420
- findIndex(e, t) {
421
- return apply$1(this, "findIndex", e, t, void 0, arguments);
422
- },
423
- findLast(e, t) {
424
- return apply$1(this, "findLast", e, t, (e) => toWrapped$1(this, e), arguments);
425
- },
426
- findLastIndex(e, t) {
427
- return apply$1(this, "findLastIndex", e, t, void 0, arguments);
428
- },
429
- forEach(e, t) {
430
- return apply$1(this, "forEach", e, t, void 0, arguments);
431
- },
432
- includes(...e) {
433
- return searchProxy$1(this, "includes", e);
434
- },
435
- indexOf(...e) {
436
- return searchProxy$1(this, "indexOf", e);
437
- },
438
- join(e) {
439
- return reactiveReadArray$1(this).join(e);
440
- },
441
- lastIndexOf(...e) {
442
- return searchProxy$1(this, "lastIndexOf", e);
443
- },
444
- map(e, t) {
445
- return apply$1(this, "map", e, t, void 0, arguments);
446
- },
447
- pop() {
448
- return noTracking$1(this, "pop");
449
- },
450
- push(...e) {
451
- return noTracking$1(this, "push", e);
452
- },
453
- reduce(e, ...t) {
454
- return reduce$1(this, "reduce", e, t);
455
- },
456
- reduceRight(e, ...t) {
457
- return reduce$1(this, "reduceRight", e, t);
458
- },
459
- shift() {
460
- return noTracking$1(this, "shift");
461
- },
462
- some(e, t) {
463
- return apply$1(this, "some", e, t, void 0, arguments);
464
- },
465
- splice(...e) {
466
- return noTracking$1(this, "splice", e);
467
- },
468
- toReversed() {
469
- return reactiveReadArray$1(this).toReversed();
470
- },
471
- toSorted(e) {
472
- return reactiveReadArray$1(this).toSorted(e);
473
- },
474
- toSpliced(...e) {
475
- return reactiveReadArray$1(this).toSpliced(...e);
476
- },
477
- unshift(...e) {
478
- return noTracking$1(this, "unshift", e);
479
- },
480
- values() {
481
- return iterator$1(this, "values", (e) => toWrapped$1(this, e));
482
- }
483
- };
484
- function iterator$1(e, t, n) {
485
- let r = shallowReadArray$1(e), i = r[t]();
486
- return r !== e && !/* @__PURE__ */ isShallow$1(e) && (i._next = i.next, i.next = () => {
487
- let e = i._next();
488
- return e.done || (e.value = n(e.value)), e;
489
- }), i;
490
- }
491
- var arrayProto$1 = Array.prototype;
492
- function apply$1(e, t, n, r, i, a) {
493
- let o = shallowReadArray$1(e), s = o !== e && !/* @__PURE__ */ isShallow$1(e), c = o[t];
494
- if (c !== arrayProto$1[t]) {
495
- let t = c.apply(e, a);
496
- return s ? toReactive$1(t) : t;
497
- }
498
- let l = n;
499
- o !== e && (s ? l = function(t, r) {
500
- return n.call(this, toWrapped$1(e, t), r, e);
501
- } : n.length > 2 && (l = function(t, r) {
502
- return n.call(this, t, r, e);
503
- }));
504
- let u = c.call(o, l, r);
505
- return s && i ? i(u) : u;
506
- }
507
- function reduce$1(e, t, n, r) {
508
- let i = shallowReadArray$1(e), a = n;
509
- return i !== e && (/* @__PURE__ */ isShallow$1(e) ? n.length > 3 && (a = function(t, r, i) {
510
- return n.call(this, t, r, i, e);
511
- }) : a = function(t, r, i) {
512
- return n.call(this, t, toWrapped$1(e, r), i, e);
513
- }), i[t](a, ...r);
514
- }
515
- function searchProxy$1(e, t, n) {
516
- let r = /* @__PURE__ */ toRaw$1(e);
517
- track$1(r, "iterate", ARRAY_ITERATE_KEY$1);
518
- let i = r[t](...n);
519
- return (i === -1 || i === !1) && /* @__PURE__ */ isProxy$1(n[0]) ? (n[0] = /* @__PURE__ */ toRaw$1(n[0]), r[t](...n)) : i;
520
- }
521
- function noTracking$1(e, t, n = []) {
522
- pauseTracking$1(), startBatch$1();
523
- let r = (/* @__PURE__ */ toRaw$1(e))[t].apply(e, n);
524
- return endBatch$1(), resetTracking$1(), r;
525
- }
526
- var isNonTrackableKeys$1 = /* @__PURE__ */ makeMap$1("__proto__,__v_isRef,__isVue"), builtInSymbols$1 = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(isSymbol$1));
527
- function hasOwnProperty$2(e) {
528
- isSymbol$1(e) || (e = String(e));
529
- let t = /* @__PURE__ */ toRaw$1(this);
530
- return track$1(t, "has", e), t.hasOwnProperty(e);
531
- }
532
- var BaseReactiveHandler$1 = class {
533
- constructor(e = !1, t = !1) {
534
- this._isReadonly = e, this._isShallow = t;
535
- }
536
- get(e, t, n) {
537
- if (t === "__v_skip") return e.__v_skip;
538
- let r = this._isReadonly, i = this._isShallow;
539
- if (t === "__v_isReactive") return !r;
540
- if (t === "__v_isReadonly") return r;
541
- if (t === "__v_isShallow") return i;
542
- if (t === "__v_raw") return n === (r ? i ? shallowReadonlyMap$1 : readonlyMap$1 : i ? shallowReactiveMap$1 : reactiveMap$1).get(e) || Object.getPrototypeOf(e) === Object.getPrototypeOf(n) ? e : void 0;
543
- let a = isArray$1(e);
544
- if (!r) {
545
- let e;
546
- if (a && (e = arrayInstrumentations$1[t])) return e;
547
- if (t === "hasOwnProperty") return hasOwnProperty$2;
548
- }
549
- let o = Reflect.get(e, t, /* @__PURE__ */ isRef$1(e) ? e : n);
550
- if ((isSymbol$1(t) ? builtInSymbols$1.has(t) : isNonTrackableKeys$1(t)) || (r || track$1(e, "get", t), i)) return o;
551
- if (/* @__PURE__ */ isRef$1(o)) {
552
- let e = a && isIntegerKey$1(t) ? o : o.value;
553
- return r && isObject$2(e) ? /* @__PURE__ */ readonly$1(e) : e;
554
- }
555
- return isObject$2(o) ? r ? /* @__PURE__ */ readonly$1(o) : /* @__PURE__ */ reactive$1(o) : o;
556
- }
557
- }, MutableReactiveHandler$1 = class extends BaseReactiveHandler$1 {
558
- constructor(e = !1) {
559
- super(!1, e);
560
- }
561
- set(e, t, n, r) {
562
- let i = e[t], a = isArray$1(e) && isIntegerKey$1(t);
563
- if (!this._isShallow) {
564
- let r = /* @__PURE__ */ isReadonly$1(i);
565
- if (!/* @__PURE__ */ isShallow$1(n) && !/* @__PURE__ */ isReadonly$1(n) && (i = /* @__PURE__ */ toRaw$1(i), n = /* @__PURE__ */ toRaw$1(n)), !a && /* @__PURE__ */ isRef$1(i) && !/* @__PURE__ */ isRef$1(n)) return r ? (process.env.NODE_ENV !== "production" && warn$2$1(`Set operation on key "${String(t)}" failed: target is readonly.`, e[t]), !0) : (i.value = n, !0);
566
- }
567
- let o = a ? Number(t) < e.length : hasOwn$1(e, t), s = Reflect.set(e, t, n, /* @__PURE__ */ isRef$1(e) ? e : r);
568
- return e === /* @__PURE__ */ toRaw$1(r) && (o ? hasChanged$1(n, i) && trigger$1(e, "set", t, n, i) : trigger$1(e, "add", t, n)), s;
569
- }
570
- deleteProperty(e, t) {
571
- let n = hasOwn$1(e, t), r = e[t], i = Reflect.deleteProperty(e, t);
572
- return i && n && trigger$1(e, "delete", t, void 0, r), i;
573
- }
574
- has(e, t) {
575
- let n = Reflect.has(e, t);
576
- return (!isSymbol$1(t) || !builtInSymbols$1.has(t)) && track$1(e, "has", t), n;
577
- }
578
- ownKeys(e) {
579
- return track$1(e, "iterate", isArray$1(e) ? "length" : ITERATE_KEY$1), Reflect.ownKeys(e);
580
- }
581
- }, ReadonlyReactiveHandler$1 = class extends BaseReactiveHandler$1 {
582
- constructor(e = !1) {
583
- super(!0, e);
584
- }
585
- set(e, t) {
586
- return process.env.NODE_ENV !== "production" && warn$2$1(`Set operation on key "${String(t)}" failed: target is readonly.`, e), !0;
587
- }
588
- deleteProperty(e, t) {
589
- return process.env.NODE_ENV !== "production" && warn$2$1(`Delete operation on key "${String(t)}" failed: target is readonly.`, e), !0;
590
- }
591
- }, mutableHandlers$1 = /* @__PURE__ */ new MutableReactiveHandler$1(), readonlyHandlers$1 = /* @__PURE__ */ new ReadonlyReactiveHandler$1(), shallowReactiveHandlers$1 = /* @__PURE__ */ new MutableReactiveHandler$1(!0), shallowReadonlyHandlers$1 = /* @__PURE__ */ new ReadonlyReactiveHandler$1(!0), toShallow$1 = (e) => e, getProto$1 = (e) => Reflect.getPrototypeOf(e);
592
- function createIterableMethod$1(e, t, n) {
593
- return function(...r) {
594
- let i = this.__v_raw, a = /* @__PURE__ */ toRaw$1(i), o = isMap$1(a), s = e === "entries" || e === Symbol.iterator && o, c = e === "keys" && o, l = i[e](...r), u = n ? toShallow$1 : t ? toReadonly$1 : toReactive$1;
595
- return !t && track$1(a, "iterate", c ? MAP_KEY_ITERATE_KEY$1 : ITERATE_KEY$1), extend$1(Object.create(l), { next() {
596
- let { value: e, done: t } = l.next();
597
- return t ? {
598
- value: e,
599
- done: t
600
- } : {
601
- value: s ? [u(e[0]), u(e[1])] : u(e),
602
- done: t
603
- };
604
- } });
605
- };
606
- }
607
- function createReadonlyMethod$1(e) {
608
- return function(...t) {
609
- if (process.env.NODE_ENV !== "production") {
610
- let n = t[0] ? `on key "${t[0]}" ` : "";
611
- warn$2$1(`${capitalize$1(e)} operation ${n}failed: target is readonly.`, /* @__PURE__ */ toRaw$1(this));
612
- }
613
- return e === "delete" ? !1 : e === "clear" ? void 0 : this;
614
- };
615
- }
616
- function createInstrumentations$1(e, t) {
617
- let n = {
618
- get(n) {
619
- let r = this.__v_raw, i = /* @__PURE__ */ toRaw$1(r), a = /* @__PURE__ */ toRaw$1(n);
620
- e || (hasChanged$1(n, a) && track$1(i, "get", n), track$1(i, "get", a));
621
- let { has: o } = getProto$1(i), s = t ? toShallow$1 : e ? toReadonly$1 : toReactive$1;
622
- if (o.call(i, n)) return s(r.get(n));
623
- if (o.call(i, a)) return s(r.get(a));
624
- r !== i && r.get(n);
625
- },
626
- get size() {
627
- let t = this.__v_raw;
628
- return !e && track$1(/* @__PURE__ */ toRaw$1(t), "iterate", ITERATE_KEY$1), t.size;
629
- },
630
- has(t) {
631
- let n = this.__v_raw, r = /* @__PURE__ */ toRaw$1(n), i = /* @__PURE__ */ toRaw$1(t);
632
- return e || (hasChanged$1(t, i) && track$1(r, "has", t), track$1(r, "has", i)), t === i ? n.has(t) : n.has(t) || n.has(i);
633
- },
634
- forEach(n, r) {
635
- let i = this, a = i.__v_raw, o = /* @__PURE__ */ toRaw$1(a), s = t ? toShallow$1 : e ? toReadonly$1 : toReactive$1;
636
- return !e && track$1(o, "iterate", ITERATE_KEY$1), a.forEach((e, t) => n.call(r, s(e), s(t), i));
637
- }
638
- };
639
- return extend$1(n, e ? {
640
- add: createReadonlyMethod$1("add"),
641
- set: createReadonlyMethod$1("set"),
642
- delete: createReadonlyMethod$1("delete"),
643
- clear: createReadonlyMethod$1("clear")
644
- } : {
645
- add(e) {
646
- !t && !/* @__PURE__ */ isShallow$1(e) && !/* @__PURE__ */ isReadonly$1(e) && (e = /* @__PURE__ */ toRaw$1(e));
647
- let n = /* @__PURE__ */ toRaw$1(this);
648
- return getProto$1(n).has.call(n, e) || (n.add(e), trigger$1(n, "add", e, e)), this;
649
- },
650
- set(e, n) {
651
- !t && !/* @__PURE__ */ isShallow$1(n) && !/* @__PURE__ */ isReadonly$1(n) && (n = /* @__PURE__ */ toRaw$1(n));
652
- let r = /* @__PURE__ */ toRaw$1(this), { has: i, get: a } = getProto$1(r), o = i.call(r, e);
653
- o ? process.env.NODE_ENV !== "production" && checkIdentityKeys$1(r, i, e) : (e = /* @__PURE__ */ toRaw$1(e), o = i.call(r, e));
654
- let s = a.call(r, e);
655
- return r.set(e, n), o ? hasChanged$1(n, s) && trigger$1(r, "set", e, n, s) : trigger$1(r, "add", e, n), this;
656
- },
657
- delete(e) {
658
- let t = /* @__PURE__ */ toRaw$1(this), { has: n, get: r } = getProto$1(t), i = n.call(t, e);
659
- i ? process.env.NODE_ENV !== "production" && checkIdentityKeys$1(t, n, e) : (e = /* @__PURE__ */ toRaw$1(e), i = n.call(t, e));
660
- let a = r ? r.call(t, e) : void 0, o = t.delete(e);
661
- return i && trigger$1(t, "delete", e, void 0, a), o;
662
- },
663
- clear() {
664
- let e = /* @__PURE__ */ toRaw$1(this), t = e.size !== 0, n = process.env.NODE_ENV === "production" ? void 0 : isMap$1(e) ? new Map(e) : new Set(e), r = e.clear();
665
- return t && trigger$1(e, "clear", void 0, void 0, n), r;
666
- }
667
- }), [
668
- "keys",
669
- "values",
670
- "entries",
671
- Symbol.iterator
672
- ].forEach((r) => {
673
- n[r] = createIterableMethod$1(r, e, t);
674
- }), n;
675
- }
676
- function createInstrumentationGetter$1(e, t) {
677
- let n = createInstrumentations$1(e, t);
678
- return (t, r, i) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? t : Reflect.get(hasOwn$1(n, r) && r in t ? n : t, r, i);
679
- }
680
- var mutableCollectionHandlers$1 = { get: /* @__PURE__ */ createInstrumentationGetter$1(!1, !1) }, shallowCollectionHandlers$1 = { get: /* @__PURE__ */ createInstrumentationGetter$1(!1, !0) }, readonlyCollectionHandlers$1 = { get: /* @__PURE__ */ createInstrumentationGetter$1(!0, !1) }, shallowReadonlyCollectionHandlers$1 = { get: /* @__PURE__ */ createInstrumentationGetter$1(!0, !0) };
681
- function checkIdentityKeys$1(e, t, n) {
682
- let r = /* @__PURE__ */ toRaw$1(n);
683
- if (r !== n && t.call(e, r)) {
684
- let t = toRawType$1(e);
685
- warn$2$1(`Reactive ${t} contains both the raw and reactive versions of the same object${t === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`);
686
- }
687
- }
688
- var reactiveMap$1 = /* @__PURE__ */ new WeakMap(), shallowReactiveMap$1 = /* @__PURE__ */ new WeakMap(), readonlyMap$1 = /* @__PURE__ */ new WeakMap(), shallowReadonlyMap$1 = /* @__PURE__ */ new WeakMap();
689
- function targetTypeMap$1(e) {
690
- switch (e) {
691
- case "Object":
692
- case "Array": return 1;
693
- case "Map":
694
- case "Set":
695
- case "WeakMap":
696
- case "WeakSet": return 2;
697
- default: return 0;
698
- }
699
- }
700
- function getTargetType$1(e) {
701
- return e.__v_skip || !Object.isExtensible(e) ? 0 : targetTypeMap$1(toRawType$1(e));
702
- }
703
- /* @__NO_SIDE_EFFECTS__ */
704
- function reactive$1(e) {
705
- return /* @__PURE__ */ isReadonly$1(e) ? e : createReactiveObject$1(e, !1, mutableHandlers$1, mutableCollectionHandlers$1, reactiveMap$1);
706
- }
707
- /* @__NO_SIDE_EFFECTS__ */
708
- function shallowReactive$1(e) {
709
- return createReactiveObject$1(e, !1, shallowReactiveHandlers$1, shallowCollectionHandlers$1, shallowReactiveMap$1);
710
- }
711
- /* @__NO_SIDE_EFFECTS__ */
712
- function readonly$1(e) {
713
- return createReactiveObject$1(e, !0, readonlyHandlers$1, readonlyCollectionHandlers$1, readonlyMap$1);
714
- }
715
- /* @__NO_SIDE_EFFECTS__ */
716
- function shallowReadonly$1(e) {
717
- return createReactiveObject$1(e, !0, shallowReadonlyHandlers$1, shallowReadonlyCollectionHandlers$1, shallowReadonlyMap$1);
718
- }
719
- function createReactiveObject$1(e, t, n, r, i) {
720
- if (!isObject$2(e)) return process.env.NODE_ENV !== "production" && warn$2$1(`value cannot be made ${t ? "readonly" : "reactive"}: ${String(e)}`), e;
721
- if (e.__v_raw && !(t && e.__v_isReactive)) return e;
722
- let a = getTargetType$1(e);
723
- if (a === 0) return e;
724
- let o = i.get(e);
725
- if (o) return o;
726
- let s = new Proxy(e, a === 2 ? r : n);
727
- return i.set(e, s), s;
728
- }
729
- /* @__NO_SIDE_EFFECTS__ */
730
- function isReactive$1(e) {
731
- return /* @__PURE__ */ isReadonly$1(e) ? /* @__PURE__ */ isReactive$1(e.__v_raw) : !!(e && e.__v_isReactive);
732
- }
733
- /* @__NO_SIDE_EFFECTS__ */
734
- function isReadonly$1(e) {
735
- return !!(e && e.__v_isReadonly);
736
- }
737
- /* @__NO_SIDE_EFFECTS__ */
738
- function isShallow$1(e) {
739
- return !!(e && e.__v_isShallow);
740
- }
741
- /* @__NO_SIDE_EFFECTS__ */
742
- function isProxy$1(e) {
743
- return e ? !!e.__v_raw : !1;
744
- }
745
- /* @__NO_SIDE_EFFECTS__ */
746
- function toRaw$1(e) {
747
- let t = e && e.__v_raw;
748
- return t ? /* @__PURE__ */ toRaw$1(t) : e;
749
- }
750
- function markRaw$1(e) {
751
- return !hasOwn$1(e, "__v_skip") && Object.isExtensible(e) && def$1(e, "__v_skip", !0), e;
752
- }
753
- var toReactive$1 = (e) => isObject$2(e) ? /* @__PURE__ */ reactive$1(e) : e, toReadonly$1 = (e) => isObject$2(e) ? /* @__PURE__ */ readonly$1(e) : e;
754
- /* @__NO_SIDE_EFFECTS__ */
755
- function isRef$1(e) {
756
- return e ? e.__v_isRef === !0 : !1;
757
- }
758
- /* @__NO_SIDE_EFFECTS__ */
759
- function ref$1(e) {
760
- return createRef$1(e, !1);
761
- }
762
- function createRef$1(e, t) {
763
- return /* @__PURE__ */ isRef$1(e) ? e : new RefImpl$1(e, t);
764
- }
765
- var RefImpl$1 = class {
766
- constructor(e, t) {
767
- this.dep = new Dep$1(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = t ? e : /* @__PURE__ */ toRaw$1(e), this._value = t ? e : toReactive$1(e), this.__v_isShallow = t;
768
- }
769
- get value() {
770
- return process.env.NODE_ENV === "production" ? this.dep.track() : this.dep.track({
771
- target: this,
772
- type: "get",
773
- key: "value"
774
- }), this._value;
775
- }
776
- set value(e) {
777
- let t = this._rawValue, n = this.__v_isShallow || /* @__PURE__ */ isShallow$1(e) || /* @__PURE__ */ isReadonly$1(e);
778
- e = n ? e : /* @__PURE__ */ toRaw$1(e), hasChanged$1(e, t) && (this._rawValue = e, this._value = n ? e : toReactive$1(e), process.env.NODE_ENV === "production" ? this.dep.trigger() : this.dep.trigger({
779
- target: this,
780
- type: "set",
781
- key: "value",
782
- newValue: e,
783
- oldValue: t
784
- }));
785
- }
786
- };
787
- function unref$1(e) {
788
- return /* @__PURE__ */ isRef$1(e) ? e.value : e;
789
- }
790
- var shallowUnwrapHandlers$1 = {
791
- get: (e, t, n) => t === "__v_raw" ? e : unref$1(Reflect.get(e, t, n)),
792
- set: (e, t, n, r) => {
793
- let i = e[t];
794
- return /* @__PURE__ */ isRef$1(i) && !/* @__PURE__ */ isRef$1(n) ? (i.value = n, !0) : Reflect.set(e, t, n, r);
795
- }
796
- };
797
- function proxyRefs$1(e) {
798
- return /* @__PURE__ */ isReactive$1(e) ? e : new Proxy(e, shallowUnwrapHandlers$1);
799
- }
800
- /* @__NO_SIDE_EFFECTS__ */
801
- function toRefs$1(e) {
802
- process.env.NODE_ENV !== "production" && !/* @__PURE__ */ isProxy$1(e) && warn$2$1("toRefs() expects a reactive object but received a plain one.");
803
- let t = isArray$1(e) ? Array(e.length) : {};
804
- for (let n in e) t[n] = propertyToRef$1(e, n);
805
- return t;
806
- }
807
- var ObjectRefImpl$1 = class {
808
- constructor(e, t, n) {
809
- this._object = e, this._key = t, this._defaultValue = n, this.__v_isRef = !0, this._value = void 0, this._raw = /* @__PURE__ */ toRaw$1(e);
810
- let r = !0, i = e;
811
- if (!isArray$1(e) || !isIntegerKey$1(String(t))) do
812
- r = !/* @__PURE__ */ isProxy$1(i) || /* @__PURE__ */ isShallow$1(i);
813
- while (r && (i = i.__v_raw));
814
- this._shallow = r;
815
- }
816
- get value() {
817
- let e = this._object[this._key];
818
- return this._shallow && (e = unref$1(e)), this._value = e === void 0 ? this._defaultValue : e;
819
- }
820
- set value(e) {
821
- if (this._shallow && /* @__PURE__ */ isRef$1(this._raw[this._key])) {
822
- let t = this._object[this._key];
823
- if (/* @__PURE__ */ isRef$1(t)) {
824
- t.value = e;
825
- return;
826
- }
827
- }
828
- this._object[this._key] = e;
829
- }
830
- get dep() {
831
- return getDepFromReactive$1(this._raw, this._key);
832
- }
833
- }, GetterRefImpl$1 = class {
834
- constructor(e) {
835
- this._getter = e, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
836
- }
837
- get value() {
838
- return this._value = this._getter();
839
- }
840
- };
841
- /* @__NO_SIDE_EFFECTS__ */
842
- function toRef$1(e, t, n) {
843
- return /* @__PURE__ */ isRef$1(e) ? e : isFunction$1(e) ? new GetterRefImpl$1(e) : isObject$2(e) && arguments.length > 1 ? propertyToRef$1(e, t, n) : /* @__PURE__ */ ref$1(e);
844
- }
845
- function propertyToRef$1(e, t, n) {
846
- return new ObjectRefImpl$1(e, t, n);
847
- }
848
- var ComputedRefImpl$1 = class {
849
- constructor(e, t, n) {
850
- this.fn = e, this.setter = t, this._value = void 0, this.dep = new Dep$1(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = globalVersion$1 - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !t, this.isSSR = n;
851
- }
852
- notify() {
853
- if (this.flags |= 16, !(this.flags & 8) && activeSub$1 !== this) return batch$1(this, !0), !0;
854
- process.env.NODE_ENV;
855
- }
856
- get value() {
857
- let e = process.env.NODE_ENV === "production" ? this.dep.track() : this.dep.track({
858
- target: this,
859
- type: "get",
860
- key: "value"
861
- });
862
- return refreshComputed$1(this), e && (e.version = this.dep.version), this._value;
863
- }
864
- set value(e) {
865
- this.setter ? this.setter(e) : process.env.NODE_ENV !== "production" && warn$2$1("Write operation failed: computed value is readonly");
866
- }
867
- };
868
- /* @__NO_SIDE_EFFECTS__ */
869
- function computed$1$1(e, t, n = !1) {
870
- let r, i;
871
- isFunction$1(e) ? r = e : (r = e.get, i = e.set);
872
- let a = new ComputedRefImpl$1(r, i, n);
873
- return process.env.NODE_ENV !== "production" && t && !n && (a.onTrack = t.onTrack, a.onTrigger = t.onTrigger), a;
874
- }
875
- var INITIAL_WATCHER_VALUE$1 = {}, cleanupMap$1 = /* @__PURE__ */ new WeakMap(), activeWatcher$1 = void 0;
876
- function onWatcherCleanup$1(e, t = !1, n = activeWatcher$1) {
877
- if (n) {
878
- let t = cleanupMap$1.get(n);
879
- t || cleanupMap$1.set(n, t = []), t.push(e);
880
- } else process.env.NODE_ENV !== "production" && !t && warn$2$1("onWatcherCleanup() was called when there was no active watcher to associate with.");
881
- }
882
- function watch$1$1(e, t, n = EMPTY_OBJ$1) {
883
- let { immediate: r, deep: i, once: a, scheduler: o, augmentJob: s, call: u } = n, d = (e) => {
884
- (n.onWarn || warn$2$1)("Invalid watch source: ", e, "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.");
885
- }, p = (e) => i ? e : /* @__PURE__ */ isShallow$1(e) || i === !1 || i === 0 ? traverse$1(e, 1) : traverse$1(e), m, g, _, y, b = !1, x = !1;
886
- if (/* @__PURE__ */ isRef$1(e) ? (g = () => e.value, b = /* @__PURE__ */ isShallow$1(e)) : /* @__PURE__ */ isReactive$1(e) ? (g = () => p(e), b = !0) : isArray$1(e) ? (x = !0, b = e.some((e) => /* @__PURE__ */ isReactive$1(e) || /* @__PURE__ */ isShallow$1(e)), g = () => e.map((e) => {
887
- if (/* @__PURE__ */ isRef$1(e)) return e.value;
888
- if (/* @__PURE__ */ isReactive$1(e)) return p(e);
889
- if (isFunction$1(e)) return u ? u(e, 2) : e();
890
- process.env.NODE_ENV !== "production" && d(e);
891
- })) : isFunction$1(e) ? g = t ? u ? () => u(e, 2) : e : () => {
892
- if (_) {
893
- pauseTracking$1();
894
- try {
895
- _();
896
- } finally {
897
- resetTracking$1();
898
- }
899
- }
900
- let t = activeWatcher$1;
901
- activeWatcher$1 = m;
902
- try {
903
- return u ? u(e, 3, [y]) : e(y);
904
- } finally {
905
- activeWatcher$1 = t;
906
- }
907
- } : (g = NOOP$1, process.env.NODE_ENV !== "production" && d(e)), t && i) {
908
- let e = g, t = i === !0 ? Infinity : i;
909
- g = () => traverse$1(e(), t);
910
- }
911
- let S = getCurrentScope$1(), C = () => {
912
- m.stop(), S && S.active && remove$1(S.effects, m);
913
- };
914
- if (a && t) {
915
- let e = t;
916
- t = (...t) => {
917
- e(...t), C();
918
- };
919
- }
920
- let w = x ? Array(e.length).fill(INITIAL_WATCHER_VALUE$1) : INITIAL_WATCHER_VALUE$1, T = (e) => {
921
- if (!(!(m.flags & 1) || !m.dirty && !e)) if (t) {
922
- let e = m.run();
923
- if (i || b || (x ? e.some((e, t) => hasChanged$1(e, w[t])) : hasChanged$1(e, w))) {
924
- _ && _();
925
- let n = activeWatcher$1;
926
- activeWatcher$1 = m;
927
- try {
928
- let n = [
929
- e,
930
- w === INITIAL_WATCHER_VALUE$1 ? void 0 : x && w[0] === INITIAL_WATCHER_VALUE$1 ? [] : w,
931
- y
932
- ];
933
- w = e, u ? u(t, 3, n) : t(...n);
934
- } finally {
935
- activeWatcher$1 = n;
936
- }
937
- }
938
- } else m.run();
939
- };
940
- return s && s(T), m = new ReactiveEffect$1(g), m.scheduler = o ? () => o(T, !1) : T, y = (e) => onWatcherCleanup$1(e, !1, m), _ = m.onStop = () => {
941
- let e = cleanupMap$1.get(m);
942
- if (e) {
943
- if (u) u(e, 4);
944
- else for (let t of e) t();
945
- cleanupMap$1.delete(m);
946
- }
947
- }, process.env.NODE_ENV !== "production" && (m.onTrack = n.onTrack, m.onTrigger = n.onTrigger), t ? r ? T(!0) : w = m.run() : o ? o(T.bind(null, !0), !0) : m.run(), C.pause = m.pause.bind(m), C.resume = m.resume.bind(m), C.stop = C, C;
948
- }
949
- function traverse$1(e, t = Infinity, n) {
950
- if (t <= 0 || !isObject$2(e) || e.__v_skip || (n ||= /* @__PURE__ */ new Map(), (n.get(e) || 0) >= t)) return e;
951
- if (n.set(e, t), t--, /* @__PURE__ */ isRef$1(e)) traverse$1(e.value, t, n);
952
- else if (isArray$1(e)) for (let r = 0; r < e.length; r++) traverse$1(e[r], t, n);
953
- else if (isSet$1(e) || isMap$1(e)) e.forEach((e) => {
954
- traverse$1(e, t, n);
955
- });
956
- else if (isPlainObject$1$1(e)) {
957
- for (let r in e) traverse$1(e[r], t, n);
958
- for (let r of Object.getOwnPropertySymbols(e)) Object.prototype.propertyIsEnumerable.call(e, r) && traverse$1(e[r], t, n);
959
- }
960
- return e;
961
- }
962
- /**
963
- * @vue/runtime-core v3.5.28
964
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
965
- * @license MIT
966
- **/
967
- var stack$1 = [];
968
- function pushWarningContext$1(e) {
969
- stack$1.push(e);
970
- }
971
- function popWarningContext$1() {
972
- stack$1.pop();
973
- }
974
- var isWarning$1 = !1;
975
- function warn$1$3(e, ...t) {
976
- if (isWarning$1) return;
977
- isWarning$1 = !0, pauseTracking$1();
978
- let n = stack$1.length ? stack$1[stack$1.length - 1].component : null, r = n && n.appContext.config.warnHandler, i = getComponentTrace$1();
979
- if (r) callWithErrorHandling$1(r, n, 11, [
980
- e + t.map((e) => e.toString?.call(e) ?? JSON.stringify(e)).join(""),
981
- n && n.proxy,
982
- i.map(({ vnode: e }) => `at <${formatComponentName$1(n, e.type)}>`).join("\n"),
983
- i
984
- ]);
985
- else {
986
- let n = [`[Vue warn]: ${e}`, ...t];
987
- i.length && n.push("\n", ...formatTrace$1(i)), console.warn(...n);
988
- }
989
- resetTracking$1(), isWarning$1 = !1;
990
- }
991
- function getComponentTrace$1() {
992
- let e = stack$1[stack$1.length - 1];
993
- if (!e) return [];
994
- let t = [];
995
- for (; e;) {
996
- let n = t[0];
997
- n && n.vnode === e ? n.recurseCount++ : t.push({
998
- vnode: e,
999
- recurseCount: 0
1000
- });
1001
- let r = e.component && e.component.parent;
1002
- e = r && r.vnode;
1003
- }
1004
- return t;
1005
- }
1006
- function formatTrace$1(e) {
1007
- let t = [];
1008
- return e.forEach((e, n) => {
1009
- t.push(...n === 0 ? [] : ["\n"], ...formatTraceEntry$1(e));
1010
- }), t;
1011
- }
1012
- function formatTraceEntry$1({ vnode: e, recurseCount: t }) {
1013
- let n = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, i = ` at <${formatComponentName$1(e.component, e.type, r)}`, a = ">" + n;
1014
- return e.props ? [
1015
- i,
1016
- ...formatProps$1(e.props),
1017
- a
1018
- ] : [i + a];
1019
- }
1020
- function formatProps$1(e) {
1021
- let t = [], n = Object.keys(e);
1022
- return n.slice(0, 3).forEach((n) => {
1023
- t.push(...formatProp$1(n, e[n]));
1024
- }), n.length > 3 && t.push(" ..."), t;
1025
- }
1026
- function formatProp$1(e, t, n) {
1027
- return isString$1(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */ isRef$1(t) ? (t = formatProp$1(e, /* @__PURE__ */ toRaw$1(t.value), !0), n ? t : [
1028
- `${e}=Ref<`,
1029
- t,
1030
- ">"
1031
- ]) : isFunction$1(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = /* @__PURE__ */ toRaw$1(t), n ? t : [`${e}=`, t]);
1032
- }
1033
- var ErrorTypeStrings$1$1 = {
1034
- sp: "serverPrefetch hook",
1035
- bc: "beforeCreate hook",
1036
- c: "created hook",
1037
- bm: "beforeMount hook",
1038
- m: "mounted hook",
1039
- bu: "beforeUpdate hook",
1040
- u: "updated",
1041
- bum: "beforeUnmount hook",
1042
- um: "unmounted hook",
1043
- a: "activated hook",
1044
- da: "deactivated hook",
1045
- ec: "errorCaptured hook",
1046
- rtc: "renderTracked hook",
1047
- rtg: "renderTriggered hook",
1048
- 0: "setup function",
1049
- 1: "render function",
1050
- 2: "watcher getter",
1051
- 3: "watcher callback",
1052
- 4: "watcher cleanup function",
1053
- 5: "native event handler",
1054
- 6: "component event handler",
1055
- 7: "vnode hook",
1056
- 8: "directive hook",
1057
- 9: "transition hook",
1058
- 10: "app errorHandler",
1059
- 11: "app warnHandler",
1060
- 12: "ref function",
1061
- 13: "async component loader",
1062
- 14: "scheduler flush",
1063
- 15: "component update",
1064
- 16: "app unmount cleanup function"
1065
- };
1066
- function callWithErrorHandling$1(e, t, n, r) {
1067
- try {
1068
- return r ? e(...r) : e();
1069
- } catch (e) {
1070
- handleError$1(e, t, n);
1071
- }
1072
- }
1073
- function callWithAsyncErrorHandling$1(e, t, n, r) {
1074
- if (isFunction$1(e)) {
1075
- let i = callWithErrorHandling$1(e, t, n, r);
1076
- return i && isPromise$1(i) && i.catch((e) => {
1077
- handleError$1(e, t, n);
1078
- }), i;
1079
- }
1080
- if (isArray$1(e)) {
1081
- let i = [];
1082
- for (let a = 0; a < e.length; a++) i.push(callWithAsyncErrorHandling$1(e[a], t, n, r));
1083
- return i;
1084
- } else process.env.NODE_ENV !== "production" && warn$1$3(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`);
1085
- }
1086
- function handleError$1(e, t, n, r = !0) {
1087
- let i = t ? t.vnode : null, { errorHandler: a, throwUnhandledErrorInProduction: o } = t && t.appContext.config || EMPTY_OBJ$1;
1088
- if (t) {
1089
- let r = t.parent, i = t.proxy, o = process.env.NODE_ENV === "production" ? `https://vuejs.org/error-reference/#runtime-${n}` : ErrorTypeStrings$1$1[n];
1090
- for (; r;) {
1091
- let t = r.ec;
1092
- if (t) {
1093
- for (let n = 0; n < t.length; n++) if (t[n](e, i, o) === !1) return;
1094
- }
1095
- r = r.parent;
1096
- }
1097
- if (a) {
1098
- pauseTracking$1(), callWithErrorHandling$1(a, null, 10, [
1099
- e,
1100
- i,
1101
- o
1102
- ]), resetTracking$1();
1103
- return;
1104
- }
1105
- }
1106
- logError$1(e, n, i, r, o);
1107
- }
1108
- function logError$1(e, t, n, r = !0, i = !1) {
1109
- if (process.env.NODE_ENV !== "production") {
1110
- let i = ErrorTypeStrings$1$1[t];
1111
- if (n && pushWarningContext$1(n), warn$1$3(`Unhandled error${i ? ` during execution of ${i}` : ""}`), n && popWarningContext$1(), r) throw e;
1112
- console.error(e);
1113
- } else if (i) throw e;
1114
- else console.error(e);
1115
- }
1116
- var queue$1 = [], flushIndex$1 = -1, pendingPostFlushCbs$1 = [], activePostFlushCbs$1 = null, postFlushIndex$1 = 0, resolvedPromise$1 = /* @__PURE__ */ Promise.resolve(), currentFlushPromise$1 = null, RECURSION_LIMIT$1 = 100;
1117
- function nextTick$1(e) {
1118
- let t = currentFlushPromise$1 || resolvedPromise$1;
1119
- return e ? t.then(this ? e.bind(this) : e) : t;
1120
- }
1121
- function findInsertionIndex$1(e) {
1122
- let t = flushIndex$1 + 1, n = queue$1.length;
1123
- for (; t < n;) {
1124
- let r = t + n >>> 1, i = queue$1[r], a = getId$1(i);
1125
- a < e || a === e && i.flags & 2 ? t = r + 1 : n = r;
1126
- }
1127
- return t;
1128
- }
1129
- function queueJob$1(e) {
1130
- if (!(e.flags & 1)) {
1131
- let t = getId$1(e), n = queue$1[queue$1.length - 1];
1132
- !n || !(e.flags & 2) && t >= getId$1(n) ? queue$1.push(e) : queue$1.splice(findInsertionIndex$1(t), 0, e), e.flags |= 1, queueFlush$1();
1133
- }
1134
- }
1135
- function queueFlush$1() {
1136
- currentFlushPromise$1 ||= resolvedPromise$1.then(flushJobs$1);
1137
- }
1138
- function queuePostFlushCb$1(e) {
1139
- isArray$1(e) ? pendingPostFlushCbs$1.push(...e) : activePostFlushCbs$1 && e.id === -1 ? activePostFlushCbs$1.splice(postFlushIndex$1 + 1, 0, e) : e.flags & 1 || (pendingPostFlushCbs$1.push(e), e.flags |= 1), queueFlush$1();
1140
- }
1141
- function flushPostFlushCbs$1(e) {
1142
- if (pendingPostFlushCbs$1.length) {
1143
- let t = [...new Set(pendingPostFlushCbs$1)].sort((e, t) => getId$1(e) - getId$1(t));
1144
- if (pendingPostFlushCbs$1.length = 0, activePostFlushCbs$1) {
1145
- activePostFlushCbs$1.push(...t);
1146
- return;
1147
- }
1148
- for (activePostFlushCbs$1 = t, process.env.NODE_ENV !== "production" && (e ||= /* @__PURE__ */ new Map()), postFlushIndex$1 = 0; postFlushIndex$1 < activePostFlushCbs$1.length; postFlushIndex$1++) {
1149
- let t = activePostFlushCbs$1[postFlushIndex$1];
1150
- process.env.NODE_ENV !== "production" && checkRecursiveUpdates$1(e, t) || (t.flags & 4 && (t.flags &= -2), t.flags & 8 || t(), t.flags &= -2);
1151
- }
1152
- activePostFlushCbs$1 = null, postFlushIndex$1 = 0;
1153
- }
1154
- }
1155
- var getId$1 = (e) => e.id == null ? e.flags & 2 ? -1 : Infinity : e.id;
1156
- function flushJobs$1(e) {
1157
- process.env.NODE_ENV !== "production" && (e ||= /* @__PURE__ */ new Map());
1158
- let t = process.env.NODE_ENV === "production" ? NOOP$1 : (t) => checkRecursiveUpdates$1(e, t);
1159
- try {
1160
- for (flushIndex$1 = 0; flushIndex$1 < queue$1.length; flushIndex$1++) {
1161
- let e = queue$1[flushIndex$1];
1162
- if (e && !(e.flags & 8)) {
1163
- if (process.env.NODE_ENV !== "production" && t(e)) continue;
1164
- e.flags & 4 && (e.flags &= -2), callWithErrorHandling$1(e, e.i, e.i ? 15 : 14), e.flags & 4 || (e.flags &= -2);
1165
- }
1166
- }
1167
- } finally {
1168
- for (; flushIndex$1 < queue$1.length; flushIndex$1++) {
1169
- let e = queue$1[flushIndex$1];
1170
- e && (e.flags &= -2);
1171
- }
1172
- flushIndex$1 = -1, queue$1.length = 0, flushPostFlushCbs$1(e), currentFlushPromise$1 = null, (queue$1.length || pendingPostFlushCbs$1.length) && flushJobs$1(e);
1173
- }
1174
- }
1175
- function checkRecursiveUpdates$1(e, t) {
1176
- let n = e.get(t) || 0;
1177
- if (n > RECURSION_LIMIT$1) {
1178
- let e = t.i, n = e && getComponentName$1(e.type);
1179
- return handleError$1(`Maximum recursive updates exceeded${n ? ` in component <${n}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`, null, 10), !0;
1180
- }
1181
- return e.set(t, n + 1), !1;
1182
- }
1183
- var hmrDirtyComponents$1 = /* @__PURE__ */ new Map();
1184
- process.env.NODE_ENV !== "production" && (getGlobalThis$1().__VUE_HMR_RUNTIME__ = {
1185
- createRecord: tryWrap$1(createRecord$1),
1186
- rerender: tryWrap$1(rerender$1),
1187
- reload: tryWrap$1(reload$1)
1188
- });
1189
- var map$1 = /* @__PURE__ */ new Map();
1190
- function createRecord$1(e, t) {
1191
- return map$1.has(e) ? !1 : (map$1.set(e, {
1192
- initialDef: normalizeClassComponent$1(t),
1193
- instances: /* @__PURE__ */ new Set()
1194
- }), !0);
1195
- }
1196
- function normalizeClassComponent$1(e) {
1197
- return isClassComponent$1(e) ? e.__vccOpts : e;
1198
- }
1199
- function rerender$1(e, t) {
1200
- let n = map$1.get(e);
1201
- n && (n.initialDef.render = t, [...n.instances].forEach((e) => {
1202
- t && (e.render = t, normalizeClassComponent$1(e.type).render = t), e.renderCache = [], e.job.flags & 8 || e.update();
1203
- }));
1204
- }
1205
- function reload$1(e, t) {
1206
- let n = map$1.get(e);
1207
- if (!n) return;
1208
- t = normalizeClassComponent$1(t), updateComponentDef$1(n.initialDef, t);
1209
- let r = [...n.instances];
1210
- for (let e = 0; e < r.length; e++) {
1211
- let i = r[e], a = normalizeClassComponent$1(i.type), o = hmrDirtyComponents$1.get(a);
1212
- o || (a !== n.initialDef && updateComponentDef$1(a, t), hmrDirtyComponents$1.set(a, o = /* @__PURE__ */ new Set())), o.add(i), i.appContext.propsCache.delete(i.type), i.appContext.emitsCache.delete(i.type), i.appContext.optionsCache.delete(i.type), i.ceReload ? (o.add(i), i.ceReload(t.styles), o.delete(i)) : i.parent ? queueJob$1(() => {
1213
- i.job.flags & 8 || (i.parent.update(), o.delete(i));
1214
- }) : i.appContext.reload ? i.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn("[HMR] Root or manually mounted instance modified. Full reload required."), i.root.ce && i !== i.root && i.root.ce._removeChildStyle(a);
1215
- }
1216
- queuePostFlushCb$1(() => {
1217
- hmrDirtyComponents$1.clear();
1218
- });
1219
- }
1220
- function updateComponentDef$1(e, t) {
1221
- extend$1(e, t);
1222
- for (let n in e) n !== "__file" && !(n in t) && delete e[n];
1223
- }
1224
- function tryWrap$1(e) {
1225
- return (t, n) => {
1226
- try {
1227
- return e(t, n);
1228
- } catch (e) {
1229
- console.error(e), console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.");
1230
- }
1231
- };
1232
- }
1233
- var currentRenderingInstance$1 = null, currentScopeId$1 = null;
1234
- function inject$1(e, t, n = !1) {
1235
- let r = getCurrentInstance$1();
1236
- if (r || currentApp$1) {
1237
- let i = currentApp$1 ? currentApp$1._context.provides : r ? r.parent == null || r.ce ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides : void 0;
1238
- if (i && e in i) return i[e];
1239
- if (arguments.length > 1) return n && isFunction$1(t) ? t.call(r && r.proxy) : t;
1240
- process.env.NODE_ENV !== "production" && warn$1$3(`injection "${String(e)}" not found.`);
1241
- } else process.env.NODE_ENV !== "production" && warn$1$3("inject() can only be used inside setup() or functional components.");
1242
- }
1243
- function hasInjectionContext$1() {
1244
- return !!(getCurrentInstance$1() || currentApp$1);
1245
- }
1246
- var ssrContextKey$1 = /* @__PURE__ */ Symbol.for("v-scx"), useSSRContext$1 = () => {
1247
- {
1248
- let e = inject$1(ssrContextKey$1);
1249
- return e || process.env.NODE_ENV !== "production" && warn$1$3("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."), e;
1250
- }
1251
- };
1252
- function watch$2(e, t, n) {
1253
- return process.env.NODE_ENV !== "production" && !isFunction$1(t) && warn$1$3("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."), doWatch$1(e, t, n);
1254
- }
1255
- function doWatch$1(e, t, n = EMPTY_OBJ$1) {
1256
- let { immediate: r, deep: i, flush: a, once: o } = n;
1257
- process.env.NODE_ENV !== "production" && !t && (r !== void 0 && warn$1$3("watch() \"immediate\" option is only respected when using the watch(source, callback, options?) signature."), i !== void 0 && warn$1$3("watch() \"deep\" option is only respected when using the watch(source, callback, options?) signature."), o !== void 0 && warn$1$3("watch() \"once\" option is only respected when using the watch(source, callback, options?) signature."));
1258
- let s = extend$1({}, n);
1259
- process.env.NODE_ENV !== "production" && (s.onWarn = warn$1$3);
1260
- let u = t && r || !t && a !== "post", f;
1261
- if (isInSSRComponentSetup$1) {
1262
- if (a === "sync") {
1263
- let e = useSSRContext$1();
1264
- f = e.__watcherHandles ||= [];
1265
- } else if (!u) {
1266
- let e = () => {};
1267
- return e.stop = NOOP$1, e.resume = NOOP$1, e.pause = NOOP$1, e;
1268
- }
1269
- }
1270
- let p = currentInstance$1;
1271
- s.call = (e, t, n) => callWithAsyncErrorHandling$1(e, p, t, n);
1272
- let m = !1;
1273
- a === "post" ? s.scheduler = (e) => {
1274
- queuePostRenderEffect$1(e, p && p.suspense);
1275
- } : a !== "sync" && (m = !0, s.scheduler = (e, t) => {
1276
- t ? e() : queueJob$1(e);
1277
- }), s.augmentJob = (e) => {
1278
- t && (e.flags |= 4), m && (e.flags |= 2, p && (e.id = p.uid, e.i = p));
1279
- };
1280
- let h = watch$1$1(e, t, s);
1281
- return isInSSRComponentSetup$1 && (f ? f.push(h) : u && h()), h;
1282
- }
1283
- function instanceWatch$1(e, t, n) {
1284
- let r = this.proxy, i = isString$1(e) ? e.includes(".") ? createPathGetter$1(r, e) : () => r[e] : e.bind(r, r), a;
1285
- isFunction$1(t) ? a = t : (a = t.handler, n = t);
1286
- let o = setCurrentInstance$1(this), s = doWatch$1(i, a.bind(r), n);
1287
- return o(), s;
1288
- }
1289
- function createPathGetter$1(e, t) {
1290
- let n = t.split(".");
1291
- return () => {
1292
- let t = e;
1293
- for (let e = 0; e < n.length && t; e++) t = t[n[e]];
1294
- return t;
1295
- };
1296
- }
1297
- var isTeleport$1 = (e) => e.__isTeleport;
1298
- function setTransitionHooks$1(e, t) {
1299
- e.shapeFlag & 6 && e.component ? (e.transition = t, setTransitionHooks$1(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
1300
- }
1301
- getGlobalThis$1().requestIdleCallback, getGlobalThis$1().cancelIdleCallback;
1302
- var NULL_DYNAMIC_COMPONENT$1 = /* @__PURE__ */ Symbol.for("v-ndc"), getPublicInstance$1 = (e) => e ? isStatefulComponent$1(e) ? getComponentPublicInstance$1(e) : getPublicInstance$1(e.parent) : null, publicPropertiesMap$1 = /* @__PURE__ */ extend$1(/* @__PURE__ */ Object.create(null), {
1303
- $: (e) => e,
1304
- $el: (e) => e.vnode.el,
1305
- $data: (e) => e.data,
1306
- $props: (e) => process.env.NODE_ENV === "production" ? e.props : /* @__PURE__ */ shallowReadonly$1(e.props),
1307
- $attrs: (e) => process.env.NODE_ENV === "production" ? e.attrs : /* @__PURE__ */ shallowReadonly$1(e.attrs),
1308
- $slots: (e) => process.env.NODE_ENV === "production" ? e.slots : /* @__PURE__ */ shallowReadonly$1(e.slots),
1309
- $refs: (e) => process.env.NODE_ENV === "production" ? e.refs : /* @__PURE__ */ shallowReadonly$1(e.refs),
1310
- $parent: (e) => getPublicInstance$1(e.parent),
1311
- $root: (e) => getPublicInstance$1(e.root),
1312
- $host: (e) => e.ce,
1313
- $emit: (e) => e.emit,
1314
- $options: (e) => __VUE_OPTIONS_API__ ? resolveMergedOptions$1(e) : e.type,
1315
- $forceUpdate: (e) => e.f ||= () => {
1316
- queueJob$1(e.update);
1317
- },
1318
- $nextTick: (e) => e.n ||= nextTick$1.bind(e.proxy),
1319
- $watch: (e) => __VUE_OPTIONS_API__ ? instanceWatch$1.bind(e) : NOOP$1
1320
- }), isReservedPrefix$1 = (e) => e === "_" || e === "$", hasSetupBinding$1 = (e, t) => e !== EMPTY_OBJ$1 && !e.__isScriptSetup && hasOwn$1(e, t), PublicInstanceProxyHandlers$1 = {
1321
- get({ _: e }, t) {
1322
- if (t === "__v_skip") return !0;
1323
- let { ctx: n, setupState: r, data: i, props: a, accessCache: o, type: s, appContext: l } = e;
1324
- if (process.env.NODE_ENV !== "production" && t === "__isVue") return !0;
1325
- if (t[0] !== "$") {
1326
- let e = o[t];
1327
- if (e !== void 0) switch (e) {
1328
- case 1: return r[t];
1329
- case 2: return i[t];
1330
- case 4: return n[t];
1331
- case 3: return a[t];
1332
- }
1333
- else if (hasSetupBinding$1(r, t)) return o[t] = 1, r[t];
1334
- else if (__VUE_OPTIONS_API__ && i !== EMPTY_OBJ$1 && hasOwn$1(i, t)) return o[t] = 2, i[t];
1335
- else if (hasOwn$1(a, t)) return o[t] = 3, a[t];
1336
- else if (n !== EMPTY_OBJ$1 && hasOwn$1(n, t)) return o[t] = 4, n[t];
1337
- else (!__VUE_OPTIONS_API__ || shouldCacheAccess$1) && (o[t] = 0);
1338
- }
1339
- let u = publicPropertiesMap$1[t], d, f;
1340
- if (u) return t === "$attrs" ? (track$1(e.attrs, "get", ""), process.env.NODE_ENV) : process.env.NODE_ENV !== "production" && t === "$slots" && track$1(e, "get", t), u(e);
1341
- if ((d = s.__cssModules) && (d = d[t])) return d;
1342
- if (n !== EMPTY_OBJ$1 && hasOwn$1(n, t)) return o[t] = 4, n[t];
1343
- if (f = l.config.globalProperties, hasOwn$1(f, t)) return f[t];
1344
- process.env.NODE_ENV !== "production" && currentRenderingInstance$1 && (!isString$1(t) || t.indexOf("__v") !== 0) && (i !== EMPTY_OBJ$1 && isReservedPrefix$1(t[0]) && hasOwn$1(i, t) ? warn$1$3(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`) : e === currentRenderingInstance$1 && warn$1$3(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`));
1345
- },
1346
- set({ _: e }, t, n) {
1347
- let { data: r, setupState: i, ctx: a } = e;
1348
- return hasSetupBinding$1(i, t) ? (i[t] = n, !0) : process.env.NODE_ENV !== "production" && i.__isScriptSetup && hasOwn$1(i, t) ? (warn$1$3(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : __VUE_OPTIONS_API__ && r !== EMPTY_OBJ$1 && hasOwn$1(r, t) ? (r[t] = n, !0) : hasOwn$1(e.props, t) ? (process.env.NODE_ENV !== "production" && warn$1$3(`Attempting to mutate prop "${t}". Props are readonly.`), !1) : t[0] === "$" && t.slice(1) in e ? (process.env.NODE_ENV !== "production" && warn$1$3(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`), !1) : (process.env.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(a, t, {
1349
- enumerable: !0,
1350
- configurable: !0,
1351
- value: n
1352
- }) : a[t] = n, !0);
1353
- },
1354
- has({ _: { data: e, setupState: t, accessCache: n, ctx: r, appContext: i, props: a, type: o } }, s) {
1355
- let l;
1356
- return !!(n[s] || __VUE_OPTIONS_API__ && e !== EMPTY_OBJ$1 && s[0] !== "$" && hasOwn$1(e, s) || hasSetupBinding$1(t, s) || hasOwn$1(a, s) || hasOwn$1(r, s) || hasOwn$1(publicPropertiesMap$1, s) || hasOwn$1(i.config.globalProperties, s) || (l = o.__cssModules) && l[s]);
1357
- },
1358
- defineProperty(e, t, n) {
1359
- return n.get == null ? hasOwn$1(n, "value") && this.set(e, t, n.value, null) : e._.accessCache[t] = 0, Reflect.defineProperty(e, t, n);
1360
- }
1361
- };
1362
- process.env.NODE_ENV !== "production" && (PublicInstanceProxyHandlers$1.ownKeys = (e) => (warn$1$3("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."), Reflect.ownKeys(e)));
1363
- function normalizePropsOrEmits$1(e) {
1364
- return isArray$1(e) ? e.reduce((e, t) => (e[t] = null, e), {}) : e;
1365
- }
1366
- var shouldCacheAccess$1 = !0;
1367
- function resolveMergedOptions$1(e) {
1368
- let t = e.type, { mixins: n, extends: r } = t, { mixins: i, optionsCache: a, config: { optionMergeStrategies: o } } = e.appContext, s = a.get(t), c;
1369
- return s ? c = s : !i.length && !n && !r ? c = t : (c = {}, i.length && i.forEach((e) => mergeOptions$1(c, e, o, !0)), mergeOptions$1(c, t, o)), isObject$2(t) && a.set(t, c), c;
1370
- }
1371
- function mergeOptions$1(e, t, n, r = !1) {
1372
- let { mixins: i, extends: a } = t;
1373
- a && mergeOptions$1(e, a, n, !0), i && i.forEach((t) => mergeOptions$1(e, t, n, !0));
1374
- for (let i in t) if (r && i === "expose") process.env.NODE_ENV !== "production" && warn$1$3("\"expose\" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.");
1375
- else {
1376
- let r = internalOptionMergeStrats$1[i] || n && n[i];
1377
- e[i] = r ? r(e[i], t[i]) : t[i];
1378
- }
1379
- return e;
1380
- }
1381
- var internalOptionMergeStrats$1 = {
1382
- data: mergeDataFn$1,
1383
- props: mergeEmitsOrPropsOptions$1,
1384
- emits: mergeEmitsOrPropsOptions$1,
1385
- methods: mergeObjectOptions$1,
1386
- computed: mergeObjectOptions$1,
1387
- beforeCreate: mergeAsArray$1,
1388
- created: mergeAsArray$1,
1389
- beforeMount: mergeAsArray$1,
1390
- mounted: mergeAsArray$1,
1391
- beforeUpdate: mergeAsArray$1,
1392
- updated: mergeAsArray$1,
1393
- beforeDestroy: mergeAsArray$1,
1394
- beforeUnmount: mergeAsArray$1,
1395
- destroyed: mergeAsArray$1,
1396
- unmounted: mergeAsArray$1,
1397
- activated: mergeAsArray$1,
1398
- deactivated: mergeAsArray$1,
1399
- errorCaptured: mergeAsArray$1,
1400
- serverPrefetch: mergeAsArray$1,
1401
- components: mergeObjectOptions$1,
1402
- directives: mergeObjectOptions$1,
1403
- watch: mergeWatchOptions$1,
1404
- provide: mergeDataFn$1,
1405
- inject: mergeInject$1
1406
- };
1407
- function mergeDataFn$1(e, t) {
1408
- return t ? e ? function() {
1409
- return extend$1(isFunction$1(e) ? e.call(this, this) : e, isFunction$1(t) ? t.call(this, this) : t);
1410
- } : t : e;
1411
- }
1412
- function mergeInject$1(e, t) {
1413
- return mergeObjectOptions$1(normalizeInject$1(e), normalizeInject$1(t));
1414
- }
1415
- function normalizeInject$1(e) {
1416
- if (isArray$1(e)) {
1417
- let t = {};
1418
- for (let n = 0; n < e.length; n++) t[e[n]] = e[n];
1419
- return t;
1420
- }
1421
- return e;
1422
- }
1423
- function mergeAsArray$1(e, t) {
1424
- return e ? [...new Set([].concat(e, t))] : t;
1425
- }
1426
- function mergeObjectOptions$1(e, t) {
1427
- return e ? extend$1(/* @__PURE__ */ Object.create(null), e, t) : t;
1428
- }
1429
- function mergeEmitsOrPropsOptions$1(e, t) {
1430
- return e ? isArray$1(e) && isArray$1(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : extend$1(/* @__PURE__ */ Object.create(null), normalizePropsOrEmits$1(e), normalizePropsOrEmits$1(t ?? {})) : t;
1431
- }
1432
- function mergeWatchOptions$1(e, t) {
1433
- if (!e) return t;
1434
- if (!t) return e;
1435
- let n = extend$1(/* @__PURE__ */ Object.create(null), e);
1436
- for (let r in t) n[r] = mergeAsArray$1(e[r], t[r]);
1437
- return n;
1438
- }
1439
- var currentApp$1 = null, internalObjectProto$1 = {}, isInternalObject$1 = (e) => Object.getPrototypeOf(e) === internalObjectProto$1, queuePostRenderEffect$1 = queueEffectWithSuspense$1, isSuspense$1 = (e) => e.__isSuspense;
1440
- function queueEffectWithSuspense$1(e, t) {
1441
- t && t.pendingBranch ? isArray$1(e) ? t.effects.push(...e) : t.effects.push(e) : queuePostFlushCb$1(e);
1442
- }
1443
- var Fragment$1 = /* @__PURE__ */ Symbol.for("v-fgt"), Text$1 = /* @__PURE__ */ Symbol.for("v-txt"), Comment$1 = /* @__PURE__ */ Symbol.for("v-cmt"), currentBlock$1 = null, isBlockTreeEnabled$1 = 1;
1444
- function isVNode$1(e) {
1445
- return e ? e.__v_isVNode === !0 : !1;
1446
- }
1447
- var vnodeArgsTransformer$1, createVNodeWithArgsTransform$1 = (...e) => _createVNode$1(...vnodeArgsTransformer$1 ? vnodeArgsTransformer$1(e, currentRenderingInstance$1) : e), normalizeKey$1 = ({ key: e }) => e ?? null, normalizeRef$1 = ({ ref: e, ref_key: t, ref_for: n }) => (typeof e == "number" && (e = "" + e), e == null ? null : isString$1(e) || /* @__PURE__ */ isRef$1(e) || isFunction$1(e) ? {
1448
- i: currentRenderingInstance$1,
1449
- r: e,
1450
- k: t,
1451
- f: !!n
1452
- } : e);
1453
- function createBaseVNode$1(e, t = null, n = null, r = 0, i = null, a = e === Fragment$1 ? 0 : 1, o = !1, s = !1) {
1454
- let c = {
1455
- __v_isVNode: !0,
1456
- __v_skip: !0,
1457
- type: e,
1458
- props: t,
1459
- key: t && normalizeKey$1(t),
1460
- ref: t && normalizeRef$1(t),
1461
- scopeId: currentScopeId$1,
1462
- slotScopeIds: null,
1463
- children: n,
1464
- component: null,
1465
- suspense: null,
1466
- ssContent: null,
1467
- ssFallback: null,
1468
- dirs: null,
1469
- transition: null,
1470
- el: null,
1471
- anchor: null,
1472
- target: null,
1473
- targetStart: null,
1474
- targetAnchor: null,
1475
- staticCount: 0,
1476
- shapeFlag: a,
1477
- patchFlag: r,
1478
- dynamicProps: i,
1479
- dynamicChildren: null,
1480
- appContext: null,
1481
- ctx: currentRenderingInstance$1
1482
- };
1483
- return s ? (normalizeChildren$1(c, n), a & 128 && e.normalize(c)) : n && (c.shapeFlag |= isString$1(n) ? 8 : 16), process.env.NODE_ENV !== "production" && c.key !== c.key && warn$1$3("VNode created with invalid key (NaN). VNode type:", c.type), isBlockTreeEnabled$1 > 0 && !o && currentBlock$1 && (c.patchFlag > 0 || a & 6) && c.patchFlag !== 32 && currentBlock$1.push(c), c;
1484
- }
1485
- var createVNode$1 = process.env.NODE_ENV === "production" ? _createVNode$1 : createVNodeWithArgsTransform$1;
1486
- function _createVNode$1(e, t = null, n = null, r = 0, i = null, a = !1) {
1487
- if ((!e || e === NULL_DYNAMIC_COMPONENT$1) && (process.env.NODE_ENV !== "production" && !e && warn$1$3(`Invalid vnode type when creating vnode: ${e}.`), e = Comment$1), isVNode$1(e)) {
1488
- let r = cloneVNode$1(e, t, !0);
1489
- return n && normalizeChildren$1(r, n), isBlockTreeEnabled$1 > 0 && !a && currentBlock$1 && (r.shapeFlag & 6 ? currentBlock$1[currentBlock$1.indexOf(e)] = r : currentBlock$1.push(r)), r.patchFlag = -2, r;
1490
- }
1491
- if (isClassComponent$1(e) && (e = e.__vccOpts), t) {
1492
- t = guardReactiveProps$1(t);
1493
- let { class: e, style: n } = t;
1494
- e && !isString$1(e) && (t.class = normalizeClass$1(e)), isObject$2(n) && (/* @__PURE__ */ isProxy$1(n) && !isArray$1(n) && (n = extend$1({}, n)), t.style = normalizeStyle$1(n));
1495
- }
1496
- let o = isString$1(e) ? 1 : isSuspense$1(e) ? 128 : isTeleport$1(e) ? 64 : isObject$2(e) ? 4 : isFunction$1(e) ? 2 : 0;
1497
- return process.env.NODE_ENV !== "production" && o & 4 && /* @__PURE__ */ isProxy$1(e) && (e = /* @__PURE__ */ toRaw$1(e), warn$1$3("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.", "\nComponent that was made reactive: ", e)), createBaseVNode$1(e, t, n, r, i, o, a, !0);
1498
- }
1499
- function guardReactiveProps$1(e) {
1500
- return e ? /* @__PURE__ */ isProxy$1(e) || isInternalObject$1(e) ? extend$1({}, e) : e : null;
1501
- }
1502
- function cloneVNode$1(e, t, n = !1, r = !1) {
1503
- let { props: i, ref: a, patchFlag: o, children: s, transition: c } = e, l = t ? mergeProps$1(i || {}, t) : i, u = {
1504
- __v_isVNode: !0,
1505
- __v_skip: !0,
1506
- type: e.type,
1507
- props: l,
1508
- key: l && normalizeKey$1(l),
1509
- ref: t && t.ref ? n && a ? isArray$1(a) ? a.concat(normalizeRef$1(t)) : [a, normalizeRef$1(t)] : normalizeRef$1(t) : a,
1510
- scopeId: e.scopeId,
1511
- slotScopeIds: e.slotScopeIds,
1512
- children: process.env.NODE_ENV !== "production" && o === -1 && isArray$1(s) ? s.map(deepCloneVNode$1) : s,
1513
- target: e.target,
1514
- targetStart: e.targetStart,
1515
- targetAnchor: e.targetAnchor,
1516
- staticCount: e.staticCount,
1517
- shapeFlag: e.shapeFlag,
1518
- patchFlag: t && e.type !== Fragment$1 ? o === -1 ? 16 : o | 16 : o,
1519
- dynamicProps: e.dynamicProps,
1520
- dynamicChildren: e.dynamicChildren,
1521
- appContext: e.appContext,
1522
- dirs: e.dirs,
1523
- transition: c,
1524
- component: e.component,
1525
- suspense: e.suspense,
1526
- ssContent: e.ssContent && cloneVNode$1(e.ssContent),
1527
- ssFallback: e.ssFallback && cloneVNode$1(e.ssFallback),
1528
- placeholder: e.placeholder,
1529
- el: e.el,
1530
- anchor: e.anchor,
1531
- ctx: e.ctx,
1532
- ce: e.ce
1533
- };
1534
- return c && r && setTransitionHooks$1(u, c.clone(u)), u;
1535
- }
1536
- function deepCloneVNode$1(e) {
1537
- let t = cloneVNode$1(e);
1538
- return isArray$1(e.children) && (t.children = e.children.map(deepCloneVNode$1)), t;
1539
- }
1540
- function createTextVNode$1(e = " ", t = 0) {
1541
- return createVNode$1(Text$1, null, e, t);
1542
- }
1543
- function normalizeChildren$1(e, t) {
1544
- let n = 0, { shapeFlag: r } = e;
1545
- if (t == null) t = null;
1546
- else if (isArray$1(t)) n = 16;
1547
- else if (typeof t == "object") if (r & 65) {
1548
- let n = t.default;
1549
- n && (n._c && (n._d = !1), normalizeChildren$1(e, n()), n._c && (n._d = !0));
1550
- return;
1551
- } else {
1552
- n = 32;
1553
- let r = t._;
1554
- !r && !isInternalObject$1(t) ? t._ctx = currentRenderingInstance$1 : r === 3 && currentRenderingInstance$1 && (currentRenderingInstance$1.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
1555
- }
1556
- else isFunction$1(t) ? (t = {
1557
- default: t,
1558
- _ctx: currentRenderingInstance$1
1559
- }, n = 32) : (t = String(t), r & 64 ? (n = 16, t = [createTextVNode$1(t)]) : n = 8);
1560
- e.children = t, e.shapeFlag |= n;
1561
- }
1562
- function mergeProps$1(...e) {
1563
- let t = {};
1564
- for (let n = 0; n < e.length; n++) {
1565
- let r = e[n];
1566
- for (let e in r) if (e === "class") t.class !== r.class && (t.class = normalizeClass$1([t.class, r.class]));
1567
- else if (e === "style") t.style = normalizeStyle$1([t.style, r.style]);
1568
- else if (isOn$1(e)) {
1569
- let n = t[e], i = r[e];
1570
- i && n !== i && !(isArray$1(n) && n.includes(i)) && (t[e] = n ? [].concat(n, i) : i);
1571
- } else e !== "" && (t[e] = r[e]);
1572
- }
1573
- return t;
1574
- }
1575
- var currentInstance$1 = null, getCurrentInstance$1 = () => currentInstance$1 || currentRenderingInstance$1, internalSetCurrentInstance$1;
1576
- {
1577
- let e = getGlobalThis$1(), t = (t, n) => {
1578
- let r;
1579
- return (r = e[t]) || (r = e[t] = []), r.push(n), (e) => {
1580
- r.length > 1 ? r.forEach((t) => t(e)) : r[0](e);
1581
- };
1582
- };
1583
- internalSetCurrentInstance$1 = t("__VUE_INSTANCE_SETTERS__", (e) => currentInstance$1 = e), t("__VUE_SSR_SETTERS__", (e) => isInSSRComponentSetup$1 = e);
1584
- }
1585
- var setCurrentInstance$1 = (e) => {
1586
- let t = currentInstance$1;
1587
- return internalSetCurrentInstance$1(e), e.scope.on(), () => {
1588
- e.scope.off(), internalSetCurrentInstance$1(t);
1589
- };
1590
- };
1591
- function isStatefulComponent$1(e) {
1592
- return e.vnode.shapeFlag & 4;
1593
- }
1594
- var isInSSRComponentSetup$1 = !1;
1595
- process.env.NODE_ENV;
1596
- function getComponentPublicInstance$1(e) {
1597
- return e.exposed ? e.exposeProxy ||= new Proxy(proxyRefs$1(markRaw$1(e.exposed)), {
1598
- get(t, n) {
1599
- if (n in t) return t[n];
1600
- if (n in publicPropertiesMap$1) return publicPropertiesMap$1[n](e);
1601
- },
1602
- has(e, t) {
1603
- return t in e || t in publicPropertiesMap$1;
1604
- }
1605
- }) : e.proxy;
1606
- }
1607
- var classifyRE$1 = /(?:^|[-_])\w/g, classify$1 = (e) => e.replace(classifyRE$1, (e) => e.toUpperCase()).replace(/[-_]/g, "");
1608
- function getComponentName$1(e, t = !0) {
1609
- return isFunction$1(e) ? e.displayName || e.name : e.name || t && e.__name;
1610
- }
1611
- function formatComponentName$1(e, t, n = !1) {
1612
- let r = getComponentName$1(t);
1613
- if (!r && t.__file) {
1614
- let e = t.__file.match(/([^/\\]+)\.\w+$/);
1615
- e && (r = e[1]);
1616
- }
1617
- if (!r && e) {
1618
- let n = (e) => {
1619
- for (let n in e) if (e[n] === t) return n;
1620
- };
1621
- r = n(e.components) || e.parent && n(e.parent.type.components) || n(e.appContext.components);
1622
- }
1623
- return r ? classify$1(r) : n ? "App" : "Anonymous";
1624
- }
1625
- function isClassComponent$1(e) {
1626
- return isFunction$1(e) && "__vccOpts" in e;
1627
- }
1628
- var computed$2 = (e, t) => {
1629
- let n = /* @__PURE__ */ computed$1$1(e, t, isInSSRComponentSetup$1);
1630
- if (process.env.NODE_ENV !== "production") {
1631
- let e = getCurrentInstance$1();
1632
- e && e.appContext.config.warnRecursiveComputed && (n._warnRecursive = !0);
1633
- }
1634
- return n;
1635
- };
1636
- function initCustomFormatter$1() {
1637
- if (process.env.NODE_ENV === "production" || typeof window > "u") return;
1638
- let e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, i = {
1639
- __vue_custom_formatter: !0,
1640
- header(t) {
1641
- if (!isObject$2(t)) return null;
1642
- if (t.__isVue) return [
1643
- "div",
1644
- e,
1645
- "VueInstance"
1646
- ];
1647
- if (/* @__PURE__ */ isRef$1(t)) {
1648
- pauseTracking$1();
1649
- let n = t.value;
1650
- return resetTracking$1(), [
1651
- "div",
1652
- {},
1653
- [
1654
- "span",
1655
- e,
1656
- f(t)
1657
- ],
1658
- "<",
1659
- s(n),
1660
- ">"
1661
- ];
1662
- } else if (/* @__PURE__ */ isReactive$1(t)) return [
1663
- "div",
1664
- {},
1665
- [
1666
- "span",
1667
- e,
1668
- /* @__PURE__ */ isShallow$1(t) ? "ShallowReactive" : "Reactive"
1669
- ],
1670
- "<",
1671
- s(t),
1672
- `>${/* @__PURE__ */ isReadonly$1(t) ? " (readonly)" : ""}`
1673
- ];
1674
- else if (/* @__PURE__ */ isReadonly$1(t)) return [
1675
- "div",
1676
- {},
1677
- [
1678
- "span",
1679
- e,
1680
- /* @__PURE__ */ isShallow$1(t) ? "ShallowReadonly" : "Readonly"
1681
- ],
1682
- "<",
1683
- s(t),
1684
- ">"
1685
- ];
1686
- return null;
1687
- },
1688
- hasBody(e) {
1689
- return e && e.__isVue;
1690
- },
1691
- body(e) {
1692
- if (e && e.__isVue) return [
1693
- "div",
1694
- {},
1695
- ...a(e.$)
1696
- ];
1697
- }
1698
- };
1699
- function a(e) {
1700
- let t = [];
1701
- e.type.props && e.props && t.push(o("props", /* @__PURE__ */ toRaw$1(e.props))), e.setupState !== EMPTY_OBJ$1 && t.push(o("setup", e.setupState)), e.data !== EMPTY_OBJ$1 && t.push(o("data", /* @__PURE__ */ toRaw$1(e.data)));
1702
- let n = l(e, "computed");
1703
- n && t.push(o("computed", n));
1704
- let i = l(e, "inject");
1705
- return i && t.push(o("injected", i)), t.push([
1706
- "div",
1707
- {},
1708
- [
1709
- "span",
1710
- { style: r.style + ";opacity:0.66" },
1711
- "$ (internal): "
1712
- ],
1713
- ["object", { object: e }]
1714
- ]), t;
1715
- }
1716
- function o(e, t) {
1717
- return t = extend$1({}, t), Object.keys(t).length ? [
1718
- "div",
1719
- { style: "line-height:1.25em;margin-bottom:0.6em" },
1720
- [
1721
- "div",
1722
- { style: "color:#476582" },
1723
- e
1724
- ],
1725
- [
1726
- "div",
1727
- { style: "padding-left:1.25em" },
1728
- ...Object.keys(t).map((e) => [
1729
- "div",
1730
- {},
1731
- [
1732
- "span",
1733
- r,
1734
- e + ": "
1735
- ],
1736
- s(t[e], !1)
1737
- ])
1738
- ]
1739
- ] : ["span", {}];
1740
- }
1741
- function s(e, i = !0) {
1742
- return typeof e == "number" ? [
1743
- "span",
1744
- t,
1745
- e
1746
- ] : typeof e == "string" ? [
1747
- "span",
1748
- n,
1749
- JSON.stringify(e)
1750
- ] : typeof e == "boolean" ? [
1751
- "span",
1752
- r,
1753
- e
1754
- ] : isObject$2(e) ? ["object", { object: i ? /* @__PURE__ */ toRaw$1(e) : e }] : [
1755
- "span",
1756
- n,
1757
- String(e)
1758
- ];
1759
- }
1760
- function l(e, t) {
1761
- let n = e.type;
1762
- if (isFunction$1(n)) return;
1763
- let r = {};
1764
- for (let i in e.ctx) u(n, i, t) && (r[i] = e.ctx[i]);
1765
- return r;
1766
- }
1767
- function u(e, t, n) {
1768
- let r = e[n];
1769
- if (isArray$1(r) && r.includes(t) || isObject$2(r) && t in r || e.extends && u(e.extends, t, n) || e.mixins && e.mixins.some((e) => u(e, t, n))) return !0;
1770
- }
1771
- function f(e) {
1772
- return /* @__PURE__ */ isShallow$1(e) ? "ShallowRef" : e.effect ? "ComputedRef" : "Ref";
1773
- }
1774
- window.devtoolsFormatters ? window.devtoolsFormatters.push(i) : window.devtoolsFormatters = [i];
1775
- }
1776
- process.env.NODE_ENV, process.env.NODE_ENV, process.env.NODE_ENV;
1777
- /**
1778
- * vue v3.5.28
1779
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
1780
- * @license MIT
1781
- **/
1782
- function initDev$1() {
1783
- initCustomFormatter$1();
1784
- }
1785
- process.env.NODE_ENV !== "production" && initDev$1();
1786
- var IS_CLIENT$1 = typeof window < "u", activePinia$1, setActivePinia$1 = (e) => activePinia$1 = e;
1787
- process.env.NODE_ENV;
1788
- var piniaSymbol$1 = process.env.NODE_ENV === "production" ? Symbol() : Symbol("pinia");
1789
- function isPlainObject$2(e) {
1790
- return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
1791
- }
1792
- var MutationType$1;
1793
- (function(e) {
1794
- e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
1795
- })(MutationType$1 ||= {});
1796
- var _global$1 = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
1797
- function bom$1(e, { autoBom: t = !1 } = {}) {
1798
- return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["", e], { type: e.type }) : e;
1799
- }
1800
- function download$1(e, t, n) {
1801
- let r = new XMLHttpRequest();
1802
- r.open("GET", e), r.responseType = "blob", r.onload = function() {
1803
- saveAs$1(r.response, t, n);
1804
- }, r.onerror = function() {
1805
- console.error("could not download file");
1806
- }, r.send();
1807
- }
1808
- function corsEnabled$1(e) {
1809
- let t = new XMLHttpRequest();
1810
- t.open("HEAD", e, !1);
1811
- try {
1812
- t.send();
1813
- } catch {}
1814
- return t.status >= 200 && t.status <= 299;
1815
- }
1816
- function click$1(e) {
1817
- try {
1818
- e.dispatchEvent(new MouseEvent("click"));
1819
- } catch {
1820
- let t = new MouseEvent("click", {
1821
- bubbles: !0,
1822
- cancelable: !0,
1823
- view: window,
1824
- detail: 0,
1825
- screenX: 80,
1826
- screenY: 20,
1827
- clientX: 80,
1828
- clientY: 20,
1829
- ctrlKey: !1,
1830
- altKey: !1,
1831
- shiftKey: !1,
1832
- metaKey: !1,
1833
- button: 0,
1834
- relatedTarget: null
1835
- });
1836
- e.dispatchEvent(t);
1837
- }
1838
- }
1839
- var _navigator$1 = typeof navigator == "object" ? navigator : { userAgent: "" }, isMacOSWebView$1 = /Macintosh/.test(_navigator$1.userAgent) && /AppleWebKit/.test(_navigator$1.userAgent) && !/Safari/.test(_navigator$1.userAgent), saveAs$1 = IS_CLIENT$1 ? typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !isMacOSWebView$1 ? downloadSaveAs$1 : "msSaveOrOpenBlob" in _navigator$1 ? msSaveAs$1 : fileSaverSaveAs$1 : () => {};
1840
- function downloadSaveAs$1(e, t = "download", n) {
1841
- let r = document.createElement("a");
1842
- r.download = t, r.rel = "noopener", typeof e == "string" ? (r.href = e, r.origin === location.origin ? click$1(r) : corsEnabled$1(r.href) ? download$1(e, t, n) : (r.target = "_blank", click$1(r))) : (r.href = URL.createObjectURL(e), setTimeout(function() {
1843
- URL.revokeObjectURL(r.href);
1844
- }, 4e4), setTimeout(function() {
1845
- click$1(r);
1846
- }, 0));
1847
- }
1848
- function msSaveAs$1(e, t = "download", n) {
1849
- if (typeof e == "string") if (corsEnabled$1(e)) download$1(e, t, n);
1850
- else {
1851
- let t = document.createElement("a");
1852
- t.href = e, t.target = "_blank", setTimeout(function() {
1853
- click$1(t);
1854
- });
1855
- }
1856
- else navigator.msSaveOrOpenBlob(bom$1(e, n), t);
1857
- }
1858
- function fileSaverSaveAs$1(e, t, n, r) {
1859
- if (r ||= open("", "_blank"), r && (r.document.title = r.document.body.innerText = "downloading..."), typeof e == "string") return download$1(e, t, n);
1860
- let i = e.type === "application/octet-stream", a = /constructor/i.test(String(_global$1.HTMLElement)) || "safari" in _global$1, o = /CriOS\/[\d]+/.test(navigator.userAgent);
1861
- if ((o || i && a || isMacOSWebView$1) && typeof FileReader < "u") {
1862
- let t = new FileReader();
1863
- t.onloadend = function() {
1864
- let e = t.result;
1865
- if (typeof e != "string") throw r = null, Error("Wrong reader.result type");
1866
- e = o ? e : e.replace(/^data:[^;]*;/, "data:attachment/file;"), r ? r.location.href = e : location.assign(e), r = null;
1867
- }, t.readAsDataURL(e);
1868
- } else {
1869
- let t = URL.createObjectURL(e);
1870
- r ? r.location.assign(t) : location.href = t, r = null, setTimeout(function() {
1871
- URL.revokeObjectURL(t);
1872
- }, 4e4);
1873
- }
1874
- }
1875
- var { assign: assign$1$1 } = Object;
1876
- function patchObject$1(e, t) {
1877
- for (let n in t) {
1878
- let r = t[n];
1879
- if (!(n in e)) continue;
1880
- let i = e[n];
1881
- isPlainObject$2(i) && isPlainObject$2(r) && !/* @__PURE__ */ isRef$1(r) && !/* @__PURE__ */ isReactive$1(r) ? e[n] = patchObject$1(i, r) : e[n] = r;
1882
- }
1883
- return e;
1884
- }
1885
- var noop$1 = () => {};
1886
- function addSubscription$1(e, t, n, r = noop$1) {
1887
- e.add(t);
1888
- let i = () => {
1889
- e.delete(t) && r();
1890
- };
1891
- return !n && getCurrentScope$1() && onScopeDispose$1(i), i;
1892
- }
1893
- function triggerSubscriptions$1(e, ...t) {
1894
- e.forEach((e) => {
1895
- e(...t);
1896
- });
1897
- }
1898
- var fallbackRunWithContext$1 = (e) => e(), ACTION_MARKER$1 = Symbol(), ACTION_NAME$1 = Symbol();
1899
- function mergeReactiveObjects$1(e, t) {
1900
- e instanceof Map && t instanceof Map ? t.forEach((t, n) => e.set(n, t)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
1901
- for (let n in t) {
1902
- if (!t.hasOwnProperty(n)) continue;
1903
- let r = t[n], i = e[n];
1904
- isPlainObject$2(i) && isPlainObject$2(r) && e.hasOwnProperty(n) && !/* @__PURE__ */ isRef$1(r) && !/* @__PURE__ */ isReactive$1(r) ? e[n] = mergeReactiveObjects$1(i, r) : e[n] = r;
1905
- }
1906
- return e;
1907
- }
1908
- var skipHydrateSymbol$1 = process.env.NODE_ENV === "production" ? Symbol() : Symbol("pinia:skipHydration");
1909
- function shouldHydrate$1(e) {
1910
- return !isPlainObject$2(e) || !Object.prototype.hasOwnProperty.call(e, skipHydrateSymbol$1);
1911
- }
1912
- var { assign: assign$2 } = Object;
1913
- function isComputed$1(e) {
1914
- return !!(/* @__PURE__ */ isRef$1(e) && e.effect);
1915
- }
1916
- function createOptionsStore$1(e, t, n, r) {
1917
- let { state: i, actions: a, getters: o } = t, s = n.state.value[e], c;
1918
- function l() {
1919
- !s && (process.env.NODE_ENV === "production" || !r) && (n.state.value[e] = i ? i() : {});
1920
- let t = process.env.NODE_ENV !== "production" && r ? /* @__PURE__ */ toRefs$1((/* @__PURE__ */ ref$1(i ? i() : {})).value) : /* @__PURE__ */ toRefs$1(n.state.value[e]);
1921
- return assign$2(t, a, Object.keys(o || {}).reduce((r, i) => (process.env.NODE_ENV !== "production" && i in t && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${i}" in store "${e}".`), r[i] = markRaw$1(computed$2(() => {
1922
- setActivePinia$1(n);
1923
- let t = n._s.get(e);
1924
- return o[i].call(t, t);
1925
- })), r), {}));
1926
- }
1927
- return c = createSetupStore$1(e, l, t, n, r, !0), c;
1928
- }
1929
- function createSetupStore$1(e, t, n = {}, r, i, a) {
1930
- let o, s = assign$2({ actions: {} }, n);
1931
- /* istanbul ignore if */
1932
- if (process.env.NODE_ENV !== "production" && !r._e.active) throw Error("Pinia destroyed");
1933
- let c = { deep: !0 };
1934
- /* istanbul ignore else */
1935
- process.env.NODE_ENV !== "production" && (c.onTrigger = (e) => {
1936
- /* istanbul ignore else */
1937
- l ? p = e : l == 0 && !C._hotUpdating && (Array.isArray(p) ? p.push(e) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
1938
- });
1939
- let l, u, d = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Set(), p, m = r.state.value[e];
1940
- !a && !m && (process.env.NODE_ENV === "production" || !i) && (r.state.value[e] = {});
1941
- let h = /* @__PURE__ */ ref$1({}), g;
1942
- function _(t) {
1943
- let n;
1944
- l = u = !1, process.env.NODE_ENV !== "production" && (p = []), typeof t == "function" ? (t(r.state.value[e]), n = {
1945
- type: MutationType$1.patchFunction,
1946
- storeId: e,
1947
- events: p
1948
- }) : (mergeReactiveObjects$1(r.state.value[e], t), n = {
1949
- type: MutationType$1.patchObject,
1950
- payload: t,
1951
- storeId: e,
1952
- events: p
1953
- });
1954
- let i = g = Symbol();
1955
- nextTick$1().then(() => {
1956
- g === i && (l = !0);
1957
- }), u = !0, triggerSubscriptions$1(d, n, r.state.value[e]);
1958
- }
1959
- let v = a ? function() {
1960
- let { state: e } = n, t = e ? e() : {};
1961
- this.$patch((e) => {
1962
- assign$2(e, t);
1963
- });
1964
- } : process.env.NODE_ENV === "production" ? noop$1 : () => {
1965
- throw Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
1966
- };
1967
- function y() {
1968
- o.stop(), d.clear(), f.clear(), r._s.delete(e);
1969
- }
1970
- let b = (t, n = "") => {
1971
- if (ACTION_MARKER$1 in t) return t[ACTION_NAME$1] = n, t;
1972
- let i = function() {
1973
- setActivePinia$1(r);
1974
- let n = Array.from(arguments), a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set();
1975
- function s(e) {
1976
- a.add(e);
1977
- }
1978
- function c(e) {
1979
- o.add(e);
1980
- }
1981
- triggerSubscriptions$1(f, {
1982
- args: n,
1983
- name: i[ACTION_NAME$1],
1984
- store: C,
1985
- after: s,
1986
- onError: c
1987
- });
1988
- let l;
1989
- try {
1990
- l = t.apply(this && this.$id === e ? this : C, n);
1991
- } catch (e) {
1992
- throw triggerSubscriptions$1(o, e), e;
1993
- }
1994
- return l instanceof Promise ? l.then((e) => (triggerSubscriptions$1(a, e), e)).catch((e) => (triggerSubscriptions$1(o, e), Promise.reject(e))) : (triggerSubscriptions$1(a, l), l);
1995
- };
1996
- return i[ACTION_MARKER$1] = !0, i[ACTION_NAME$1] = n, i;
1997
- }, x = /* @__PURE__ */ markRaw$1({
1998
- actions: {},
1999
- getters: {},
2000
- state: [],
2001
- hotState: h
2002
- }), S = {
2003
- _p: r,
2004
- $id: e,
2005
- $onAction: addSubscription$1.bind(null, f),
2006
- $patch: _,
2007
- $reset: v,
2008
- $subscribe(t, n = {}) {
2009
- let i = addSubscription$1(d, t, n.detached, () => a()), a = o.run(() => watch$2(() => r.state.value[e], (r) => {
2010
- (n.flush === "sync" ? u : l) && t({
2011
- storeId: e,
2012
- type: MutationType$1.direct,
2013
- events: p
2014
- }, r);
2015
- }, assign$2({}, c, n)));
2016
- return i;
2017
- },
2018
- $dispose: y
2019
- }, C = /* @__PURE__ */ reactive$1(process.env.NODE_ENV !== "production" || (process.env.NODE_ENV !== "production" || typeof __VUE_PROD_DEVTOOLS__ < "u" && __VUE_PROD_DEVTOOLS__) && process.env.NODE_ENV !== "test" && IS_CLIENT$1 ? assign$2({
2020
- _hmrPayload: x,
2021
- _customProperties: markRaw$1(/* @__PURE__ */ new Set())
2022
- }, S) : S);
2023
- r._s.set(e, C);
2024
- let w = (r._a && r._a.runWithContext || fallbackRunWithContext$1)(() => r._e.run(() => (o = effectScope$1()).run(() => t({ action: b }))));
2025
- for (let t in w) {
2026
- let o = w[t];
2027
- /* @__PURE__ */ isRef$1(o) && !isComputed$1(o) || /* @__PURE__ */ isReactive$1(o) ? (process.env.NODE_ENV !== "production" && i ? h.value[t] = /* @__PURE__ */ toRef$1(w, t) : a || (m && shouldHydrate$1(o) && (/* @__PURE__ */ isRef$1(o) ? o.value = m[t] : mergeReactiveObjects$1(o, m[t])), r.state.value[e][t] = o), process.env.NODE_ENV !== "production" && x.state.push(t)) : typeof o == "function" ? (w[t] = process.env.NODE_ENV !== "production" && i ? o : b(o, t), process.env.NODE_ENV !== "production" && (x.actions[t] = o), s.actions[t] = o) : process.env.NODE_ENV !== "production" && isComputed$1(o) && (x.getters[t] = a ? n.getters[t] : o, IS_CLIENT$1 && (w._getters ||= markRaw$1([])).push(t));
2028
- }
2029
- if (assign$2(C, w), assign$2(/* @__PURE__ */ toRaw$1(C), w), Object.defineProperty(C, "$state", {
2030
- get: () => process.env.NODE_ENV !== "production" && i ? h.value : r.state.value[e],
2031
- set: (e) => {
2032
- /* istanbul ignore if */
2033
- if (process.env.NODE_ENV !== "production" && i) throw Error("cannot set hotState");
2034
- _((t) => {
2035
- assign$2(t, e);
2036
- });
2037
- }
2038
- }), process.env.NODE_ENV !== "production" && (C._hotUpdate = markRaw$1((t) => {
2039
- C._hotUpdating = !0, t._hmrPayload.state.forEach((e) => {
2040
- if (e in C.$state) {
2041
- let n = t.$state[e], r = C.$state[e];
2042
- typeof n == "object" && isPlainObject$2(n) && isPlainObject$2(r) ? patchObject$1(n, r) : t.$state[e] = r;
2043
- }
2044
- C[e] = /* @__PURE__ */ toRef$1(t.$state, e);
2045
- }), Object.keys(C.$state).forEach((e) => {
2046
- e in t.$state || delete C[e];
2047
- }), l = !1, u = !1, r.state.value[e] = /* @__PURE__ */ toRef$1(t._hmrPayload, "hotState"), u = !0, nextTick$1().then(() => {
2048
- l = !0;
2049
- });
2050
- for (let e in t._hmrPayload.actions) {
2051
- let n = t[e];
2052
- C[e] = b(n, e);
2053
- }
2054
- for (let e in t._hmrPayload.getters) {
2055
- let n = t._hmrPayload.getters[e];
2056
- C[e] = a ? computed$2(() => (setActivePinia$1(r), n.call(C, C))) : n;
2057
- }
2058
- Object.keys(C._hmrPayload.getters).forEach((e) => {
2059
- e in t._hmrPayload.getters || delete C[e];
2060
- }), Object.keys(C._hmrPayload.actions).forEach((e) => {
2061
- e in t._hmrPayload.actions || delete C[e];
2062
- }), C._hmrPayload = t._hmrPayload, C._getters = t._getters, C._hotUpdating = !1;
2063
- })), (process.env.NODE_ENV !== "production" || typeof __VUE_PROD_DEVTOOLS__ < "u" && __VUE_PROD_DEVTOOLS__) && process.env.NODE_ENV !== "test" && IS_CLIENT$1) {
2064
- let e = {
2065
- writable: !0,
2066
- configurable: !0,
2067
- enumerable: !1
2068
- };
2069
- [
2070
- "_p",
2071
- "_hmrPayload",
2072
- "_getters",
2073
- "_customProperties"
2074
- ].forEach((t) => {
2075
- Object.defineProperty(C, t, assign$2({ value: C[t] }, e));
2076
- });
2077
- }
2078
- return r._p.forEach((e) => {
2079
- /* istanbul ignore else */
2080
- if ((process.env.NODE_ENV !== "production" || typeof __VUE_PROD_DEVTOOLS__ < "u" && __VUE_PROD_DEVTOOLS__) && process.env.NODE_ENV !== "test" && IS_CLIENT$1) {
2081
- let t = o.run(() => e({
2082
- store: C,
2083
- app: r._a,
2084
- pinia: r,
2085
- options: s
2086
- }));
2087
- Object.keys(t || {}).forEach((e) => C._customProperties.add(e)), assign$2(C, t);
2088
- } else assign$2(C, o.run(() => e({
2089
- store: C,
2090
- app: r._a,
2091
- pinia: r,
2092
- options: s
2093
- })));
2094
- }), process.env.NODE_ENV !== "production" && C.$state && typeof C.$state == "object" && typeof C.$state.constructor == "function" && !C.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
2095
- state: () => new MyClass()
2096
- Found in store "${C.$id}".`), m && a && n.hydrate && n.hydrate(C.$state, m), l = !0, u = !0, C;
2097
- }
2098
- function defineStore$1(e, t, n) {
2099
- let r, i = typeof t == "function";
2100
- r = i ? n : t;
2101
- function a(n, o) {
2102
- let s = hasInjectionContext$1();
2103
- if (n = (process.env.NODE_ENV === "test" && activePinia$1 && activePinia$1._testing ? null : n) || (s ? inject$1(piniaSymbol$1, null) : null), n && setActivePinia$1(n), process.env.NODE_ENV !== "production" && !activePinia$1) throw Error("[🍍]: \"getActivePinia()\" was called but there was no active Pinia. Are you trying to use a store before calling \"app.use(pinia)\"?\nSee https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.\nThis will fail in production.");
2104
- n = activePinia$1, n._s.has(e) || (i ? createSetupStore$1(e, t, r, n) : createOptionsStore$1(e, r, n), process.env.NODE_ENV !== "production" && (a._pinia = n));
2105
- let c = n._s.get(e);
2106
- if (process.env.NODE_ENV !== "production" && o) {
2107
- let a = "__hot:" + e, s = i ? createSetupStore$1(a, t, r, n, !0) : createOptionsStore$1(a, assign$2({}, r), n, !0);
2108
- o._hotUpdate(s), delete n.state.value[a], n._s.delete(a);
2109
- }
2110
- if (process.env.NODE_ENV !== "production" && IS_CLIENT$1) {
2111
- let t = getCurrentInstance$1();
2112
- if (t && t.proxy && !o) {
2113
- let n = t.proxy, r = "_pStores" in n ? n._pStores : n._pStores = {};
2114
- r[e] = c;
2115
- }
2116
- }
2117
- return c;
2118
- }
2119
- return a.$id = e, a;
2120
- }
2121
- useGlobalVar(defineStore$1("core:temp", (e) => {
2122
- let t = /* @__PURE__ */ shallowReactive$1(/* @__PURE__ */ new Map());
2123
- return {
2124
- $apply: (e, n) => (e = `reactive:${e}`, t.has(e) || t.set(e, /* @__PURE__ */ reactive$1(n())), t.get(e)),
2125
- $has: e.action((e) => (e = `reactive:${e}`, t.has(e)), "has"),
2126
- $onlyGet: e.action((e) => (e = `reactive:${e}`, t.get(e)), "onlyGet"),
2127
- $applyRaw: e.action((e, n) => (e = `raw:${e}`, t.has(e) || t.set(e, n()), t.get(e)), "applyRaw"),
2128
- $hasRaw: e.action((e) => (e = `raw:${e}`, t.has(e)), "hasRaw"),
2129
- $onlyGetRaw: e.action((e) => (e = `raw:${e}`, t.get(e)), "onlyGetRaw")
2130
- };
2131
- }), "store/temp");
2132
- function random$1(e, t) {
2133
- if (t ?? (t = e, e = 0), e >= t) throw Error("Invalid input: The maximum value must be greater than the minimum value.");
2134
- return Math.random() * (t - e) + e;
2135
- }
2136
- function randomInt(e, t) {
2137
- return Math.floor(random$1(e, t));
2138
- }
2139
- function clamp$1(e, t, n) {
2140
- return n == null ? Math.min(e, t) : Math.min(Math.max(e, t), n);
2141
- }
2142
- function clamp(e, t, n) {
2143
- return Number.isNaN(t) && (t = 0), Number.isNaN(n) && (n = 0), clamp$1(e, t, n);
2144
- }
2145
- function random(...e) {
2146
- let t = 0, n = 1, r = !1;
2147
- switch (e.length) {
2148
- case 1:
2149
- typeof e[0] == "boolean" ? r = e[0] : n = e[0];
2150
- break;
2151
- case 2: typeof e[1] == "boolean" ? (n = e[0], r = e[1]) : (t = e[0], n = e[1]);
2152
- case 3: typeof e[2] == "object" && e[2] != null && e[2][e[1]] === e[0] ? (t = 0, n = e[0], r = !1) : (t = e[0], n = e[1], r = e[2]);
2153
- }
2154
- return typeof t != "number" && (t = Number(t)), typeof n != "number" && (t = Number(n)), t ||= 0, n ||= 0, t > n && ([t, n] = [n, t]), t = clamp(t, -(2 ** 53 - 1), 2 ** 53 - 1), n = clamp(n, -(2 ** 53 - 1), 2 ** 53 - 1), t === n ? t : r ? random$1(t, n + 1) : randomInt(t, n + 1);
2155
- }
2156
- var SharedFunction = class {
2157
- static sharedFunctions = useGlobalVar(/* @__PURE__ */ new Map(), "utils/SharedFunction/sharedFunctions");
2158
- static define(e, t, n) {
2159
- return console.debug("[SharedFunction.define] defined new function", t, ":", n, "->", e), this.sharedFunctions.set(n, [...this.sharedFunctions.get(n) ?? [], {
2160
- fn: e,
2161
- plugin: t
2162
- }]), e;
2163
- }
2164
- static call(e, ...t) {
2165
- let n = this.sharedFunctions.get(e)?.map((e) => ({
2166
- result: e.fn(...t),
2167
- ...e
2168
- })) ?? [], r = Promise.all(n.map(async (e) => ({
2169
- ...e,
2170
- result: await e.result
2171
- })));
2172
- return Object.assign(n, r);
2173
- }
2174
- static callRandom(e, ...t) {
2175
- let n = this.sharedFunctions.get(e) ?? [], r = random(0, n.length - 1), i = n[r];
2176
- if (!i) throw Error(`[SharedFunction.callRandom] call ${e}, but not resigner any function.`);
2177
- console.log(`[SharedFunction.callRandom] call index: ${r} in ${n.length}`, i);
2178
- let a = i.fn(...t), o = {
2179
- result: a,
2180
- ...i
2181
- }, s = (async () => ({
2182
- ...i,
2183
- result: await a
2184
- }))();
2185
- return Object.assign(o, s);
2186
- }
2187
- static callWitch(e, t, ...n) {
2188
- let r = (this.sharedFunctions.get(e) ?? []).filter((e) => e.plugin === t);
2189
- if (!r.length) throw Error(`[SharedFunction.callWitch] not found plugin function (plugin: ${t}, name: ${e})`);
2190
- let i = r.map((e) => ({
2191
- result: e.fn(...n),
2192
- ...e
2193
- })), a = Promise.all(i.map(async (e) => ({
2194
- ...e,
2195
- result: await e.result
2196
- })));
2197
- return Object.assign(i, a);
2198
- }
2199
- };
2200
- const definePlugin = async (e) => {
2201
- if (isFunction$2(e)) var t = e(window.$$safe$$);
2202
- else var t = e;
2203
- return console.log("[definePlugin] new plugin defining...", t), await SharedFunction.call("addPlugin", t), t;
2204
- }, decodePluginMeta = (e) => ({
2205
- name: {
2206
- display: e["name:display"],
2207
- id: e["name:id"]
2208
- },
2209
- author: e.author ?? "",
2210
- description: e.description,
2211
- require: (e.require ? isString$2(e.require) ? [e.require] : e.require : []).map((e) => {
2212
- let [t, ...n] = e.split(":");
2213
- if (t.startsWith("dc|")) return {
2214
- id: t.replace(/^dc\|/, ""),
2215
- download: n.join(":")
2216
- };
2217
- }).filter((e) => !isUndefined(e)),
2218
- version: {
2219
- plugin: e.version.split("/")[0],
2220
- supportCore: (() => {
2221
- let t = e.version.split("/")[1];
2222
- return e.version.split("/")[2] ? t.replaceAll(">=", "^") : t;
2223
- })()
2224
- }
2225
- });
2226
- /**
2227
- * @vue/shared v3.5.28
2228
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
2229
- * @license MIT
2230
- **/
2231
- /* @__NO_SIDE_EFFECTS__ */
2232
- function makeMap(e) {
2233
- let t = /* @__PURE__ */ Object.create(null);
2234
- for (let n of e.split(",")) t[n] = 1;
2235
- return (e) => e in t;
2236
- }
2237
- var EMPTY_OBJ = process.env.NODE_ENV === "production" ? {} : Object.freeze({});
2238
- process.env.NODE_ENV === "production" || Object.freeze([]);
2239
- var NOOP = () => {}, isOn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), extend = Object.assign, remove = (e, t) => {
2240
- let n = e.indexOf(t);
2241
- n > -1 && e.splice(n, 1);
2242
- }, hasOwnProperty$1 = Object.prototype.hasOwnProperty, hasOwn = (e, t) => hasOwnProperty$1.call(e, t), isArray = Array.isArray, isMap = (e) => toTypeString(e) === "[object Map]", isSet = (e) => toTypeString(e) === "[object Set]", isFunction = (e) => typeof e == "function", isString = (e) => typeof e == "string", isSymbol = (e) => typeof e == "symbol", isObject$1 = (e) => typeof e == "object" && !!e, isPromise = (e) => (isObject$1(e) || isFunction(e)) && isFunction(e.then) && isFunction(e.catch), objectToString = Object.prototype.toString, toTypeString = (e) => objectToString.call(e), toRawType = (e) => toTypeString(e).slice(8, -1), isPlainObject$1 = (e) => toTypeString(e) === "[object Object]", isIntegerKey = (e) => isString(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, cacheStringFunction$1 = (e) => {
2243
- let t = /* @__PURE__ */ Object.create(null);
2244
- return ((n) => t[n] || (t[n] = e(n)));
2245
- }, capitalize = cacheStringFunction$1((e) => e.charAt(0).toUpperCase() + e.slice(1)), toHandlerKey = cacheStringFunction$1((e) => e ? `on${capitalize(e)}` : ""), hasChanged = (e, t) => !Object.is(e, t), def = (e, t, n, r = !1) => {
2246
- Object.defineProperty(e, t, {
2247
- configurable: !0,
2248
- enumerable: !1,
2249
- writable: r,
2250
- value: n
2251
- });
2252
- }, _globalThis, getGlobalThis = () => _globalThis ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
2253
- function normalizeStyle(e) {
2254
- if (isArray(e)) {
2255
- let t = {};
2256
- for (let n = 0; n < e.length; n++) {
2257
- let r = e[n], i = isString(r) ? parseStringStyle(r) : normalizeStyle(r);
2258
- if (i) for (let e in i) t[e] = i[e];
2259
- }
2260
- return t;
2261
- } else if (isString(e) || isObject$1(e)) return e;
2262
- }
2263
- var listDelimiterRE = /;(?![^(]*\))/g, propertyDelimiterRE = /:([^]+)/, styleCommentRE = /\/\*[^]*?\*\//g;
2264
- function parseStringStyle(e) {
2265
- let t = {};
2266
- return e.replace(styleCommentRE, "").split(listDelimiterRE).forEach((e) => {
2267
- if (e) {
2268
- let n = e.split(propertyDelimiterRE);
2269
- n.length > 1 && (t[n[0].trim()] = n[1].trim());
2270
- }
2271
- }), t;
2272
- }
2273
- function normalizeClass(e) {
2274
- let t = "";
2275
- if (isString(e)) t = e;
2276
- else if (isArray(e)) for (let n = 0; n < e.length; n++) {
2277
- let r = normalizeClass(e[n]);
2278
- r && (t += r + " ");
2279
- }
2280
- else if (isObject$1(e)) for (let n in e) e[n] && (t += n + " ");
2281
- return t.trim();
2282
- }
2283
- /**
2284
- * @vue/reactivity v3.5.28
2285
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
2286
- * @license MIT
2287
- **/
2288
- function warn$2(e, ...t) {
2289
- console.warn(`[Vue warn] ${e}`, ...t);
2290
- }
2291
- var activeEffectScope, EffectScope = class {
2292
- constructor(e = !1) {
2293
- this.detached = e, this._active = !0, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = !1, this.__v_skip = !0, this.parent = activeEffectScope, !e && activeEffectScope && (this.index = (activeEffectScope.scopes ||= []).push(this) - 1);
2294
- }
2295
- get active() {
2296
- return this._active;
2297
- }
2298
- pause() {
2299
- if (this._active) {
2300
- this._isPaused = !0;
2301
- let e, t;
2302
- if (this.scopes) for (e = 0, t = this.scopes.length; e < t; e++) this.scopes[e].pause();
2303
- for (e = 0, t = this.effects.length; e < t; e++) this.effects[e].pause();
2304
- }
2305
- }
2306
- resume() {
2307
- if (this._active && this._isPaused) {
2308
- this._isPaused = !1;
2309
- let e, t;
2310
- if (this.scopes) for (e = 0, t = this.scopes.length; e < t; e++) this.scopes[e].resume();
2311
- for (e = 0, t = this.effects.length; e < t; e++) this.effects[e].resume();
2312
- }
2313
- }
2314
- run(e) {
2315
- if (this._active) {
2316
- let t = activeEffectScope;
2317
- try {
2318
- return activeEffectScope = this, e();
2319
- } finally {
2320
- activeEffectScope = t;
2321
- }
2322
- } else process.env.NODE_ENV !== "production" && warn$2("cannot run an inactive effect scope.");
2323
- }
2324
- on() {
2325
- ++this._on === 1 && (this.prevScope = activeEffectScope, activeEffectScope = this);
2326
- }
2327
- off() {
2328
- this._on > 0 && --this._on === 0 && (activeEffectScope = this.prevScope, this.prevScope = void 0);
2329
- }
2330
- stop(e) {
2331
- if (this._active) {
2332
- this._active = !1;
2333
- let t, n;
2334
- for (t = 0, n = this.effects.length; t < n; t++) this.effects[t].stop();
2335
- for (this.effects.length = 0, t = 0, n = this.cleanups.length; t < n; t++) this.cleanups[t]();
2336
- if (this.cleanups.length = 0, this.scopes) {
2337
- for (t = 0, n = this.scopes.length; t < n; t++) this.scopes[t].stop(!0);
2338
- this.scopes.length = 0;
2339
- }
2340
- if (!this.detached && this.parent && !e) {
2341
- let e = this.parent.scopes.pop();
2342
- e && e !== this && (this.parent.scopes[this.index] = e, e.index = this.index);
2343
- }
2344
- this.parent = void 0;
2345
- }
2346
- }
2347
- };
2348
- function effectScope(e) {
2349
- return new EffectScope(e);
2350
- }
2351
- function getCurrentScope() {
2352
- return activeEffectScope;
2353
- }
2354
- function onScopeDispose(e, t = !1) {
2355
- activeEffectScope ? activeEffectScope.cleanups.push(e) : process.env.NODE_ENV !== "production" && !t && warn$2("onScopeDispose() is called when there is no active effect scope to be associated with.");
2356
- }
2357
- var activeSub, pausedQueueEffects = /* @__PURE__ */ new WeakSet(), ReactiveEffect = class {
2358
- constructor(e) {
2359
- this.fn = e, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0, activeEffectScope && activeEffectScope.active && activeEffectScope.effects.push(this);
2360
- }
2361
- pause() {
2362
- this.flags |= 64;
2363
- }
2364
- resume() {
2365
- this.flags & 64 && (this.flags &= -65, pausedQueueEffects.has(this) && (pausedQueueEffects.delete(this), this.trigger()));
2366
- }
2367
- notify() {
2368
- this.flags & 2 && !(this.flags & 32) || this.flags & 8 || batch(this);
2369
- }
2370
- run() {
2371
- if (!(this.flags & 1)) return this.fn();
2372
- this.flags |= 2, cleanupEffect(this), prepareDeps(this);
2373
- let e = activeSub, t = shouldTrack;
2374
- activeSub = this, shouldTrack = !0;
2375
- try {
2376
- return this.fn();
2377
- } finally {
2378
- process.env.NODE_ENV !== "production" && activeSub !== this && warn$2("Active effect was not restored correctly - this is likely a Vue internal bug."), cleanupDeps(this), activeSub = e, shouldTrack = t, this.flags &= -3;
2379
- }
2380
- }
2381
- stop() {
2382
- if (this.flags & 1) {
2383
- for (let e = this.deps; e; e = e.nextDep) removeSub(e);
2384
- this.deps = this.depsTail = void 0, cleanupEffect(this), this.onStop && this.onStop(), this.flags &= -2;
2385
- }
2386
- }
2387
- trigger() {
2388
- this.flags & 64 ? pausedQueueEffects.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
2389
- }
2390
- runIfDirty() {
2391
- isDirty(this) && this.run();
2392
- }
2393
- get dirty() {
2394
- return isDirty(this);
2395
- }
2396
- }, batchDepth = 0, batchedSub, batchedComputed;
2397
- function batch(e, t = !1) {
2398
- if (e.flags |= 8, t) {
2399
- e.next = batchedComputed, batchedComputed = e;
2400
- return;
2401
- }
2402
- e.next = batchedSub, batchedSub = e;
2403
- }
2404
- function startBatch() {
2405
- batchDepth++;
2406
- }
2407
- function endBatch() {
2408
- if (--batchDepth > 0) return;
2409
- if (batchedComputed) {
2410
- let e = batchedComputed;
2411
- for (batchedComputed = void 0; e;) {
2412
- let t = e.next;
2413
- e.next = void 0, e.flags &= -9, e = t;
2414
- }
2415
- }
2416
- let e;
2417
- for (; batchedSub;) {
2418
- let t = batchedSub;
2419
- for (batchedSub = void 0; t;) {
2420
- let n = t.next;
2421
- if (t.next = void 0, t.flags &= -9, t.flags & 1) try {
2422
- t.trigger();
2423
- } catch (t) {
2424
- e ||= t;
2425
- }
2426
- t = n;
2427
- }
2428
- }
2429
- if (e) throw e;
2430
- }
2431
- function prepareDeps(e) {
2432
- for (let t = e.deps; t; t = t.nextDep) t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
2433
- }
2434
- function cleanupDeps(e) {
2435
- let t, n = e.depsTail, r = n;
2436
- for (; r;) {
2437
- let e = r.prevDep;
2438
- r.version === -1 ? (r === n && (n = e), removeSub(r), removeDep(r)) : t = r, r.dep.activeLink = r.prevActiveLink, r.prevActiveLink = void 0, r = e;
2439
- }
2440
- e.deps = t, e.depsTail = n;
2441
- }
2442
- function isDirty(e) {
2443
- for (let t = e.deps; t; t = t.nextDep) if (t.dep.version !== t.version || t.dep.computed && (refreshComputed(t.dep.computed) || t.dep.version !== t.version)) return !0;
2444
- return !!e._dirty;
2445
- }
2446
- function refreshComputed(e) {
2447
- if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === globalVersion) || (e.globalVersion = globalVersion, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !isDirty(e)))) return;
2448
- e.flags |= 2;
2449
- let t = e.dep, n = activeSub, r = shouldTrack;
2450
- activeSub = e, shouldTrack = !0;
2451
- try {
2452
- prepareDeps(e);
2453
- let n = e.fn(e._value);
2454
- (t.version === 0 || hasChanged(n, e._value)) && (e.flags |= 128, e._value = n, t.version++);
2455
- } catch (e) {
2456
- throw t.version++, e;
2457
- } finally {
2458
- activeSub = n, shouldTrack = r, cleanupDeps(e), e.flags &= -3;
2459
- }
2460
- }
2461
- function removeSub(e, t = !1) {
2462
- let { dep: n, prevSub: r, nextSub: i } = e;
2463
- if (r && (r.nextSub = i, e.prevSub = void 0), i && (i.prevSub = r, e.nextSub = void 0), process.env.NODE_ENV !== "production" && n.subsHead === e && (n.subsHead = i), n.subs === e && (n.subs = r, !r && n.computed)) {
2464
- n.computed.flags &= -5;
2465
- for (let e = n.computed.deps; e; e = e.nextDep) removeSub(e, !0);
2466
- }
2467
- !t && !--n.sc && n.map && n.map.delete(n.key);
2468
- }
2469
- function removeDep(e) {
2470
- let { prevDep: t, nextDep: n } = e;
2471
- t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
2472
- }
2473
- var shouldTrack = !0, trackStack = [];
2474
- function pauseTracking() {
2475
- trackStack.push(shouldTrack), shouldTrack = !1;
2476
- }
2477
- function resetTracking() {
2478
- let e = trackStack.pop();
2479
- shouldTrack = e === void 0 ? !0 : e;
2480
- }
2481
- function cleanupEffect(e) {
2482
- let { cleanup: t } = e;
2483
- if (e.cleanup = void 0, t) {
2484
- let e = activeSub;
2485
- activeSub = void 0;
2486
- try {
2487
- t();
2488
- } finally {
2489
- activeSub = e;
2490
- }
2491
- }
2492
- }
2493
- var globalVersion = 0, Link = class {
2494
- constructor(e, t) {
2495
- this.sub = e, this.dep = t, this.version = t.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
2496
- }
2497
- }, Dep = class {
2498
- constructor(e) {
2499
- this.computed = e, 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, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
2500
- }
2501
- track(e) {
2502
- if (!activeSub || !shouldTrack || activeSub === this.computed) return;
2503
- let t = this.activeLink;
2504
- if (t === void 0 || t.sub !== activeSub) t = this.activeLink = new Link(activeSub, this), activeSub.deps ? (t.prevDep = activeSub.depsTail, activeSub.depsTail.nextDep = t, activeSub.depsTail = t) : activeSub.deps = activeSub.depsTail = t, addSub(t);
2505
- else if (t.version === -1 && (t.version = this.version, t.nextDep)) {
2506
- let e = t.nextDep;
2507
- e.prevDep = t.prevDep, t.prevDep && (t.prevDep.nextDep = e), t.prevDep = activeSub.depsTail, t.nextDep = void 0, activeSub.depsTail.nextDep = t, activeSub.depsTail = t, activeSub.deps === t && (activeSub.deps = e);
2508
- }
2509
- return process.env.NODE_ENV !== "production" && activeSub.onTrack && activeSub.onTrack(extend({ effect: activeSub }, e)), t;
2510
- }
2511
- trigger(e) {
2512
- this.version++, globalVersion++, this.notify(e);
2513
- }
2514
- notify(e) {
2515
- startBatch();
2516
- try {
2517
- if (process.env.NODE_ENV !== "production") for (let t = this.subsHead; t; t = t.nextSub) t.sub.onTrigger && !(t.sub.flags & 8) && t.sub.onTrigger(extend({ effect: t.sub }, e));
2518
- for (let e = this.subs; e; e = e.prevSub) e.sub.notify() && e.sub.dep.notify();
2519
- } finally {
2520
- endBatch();
2521
- }
2522
- }
2523
- };
2524
- function addSub(e) {
2525
- if (e.dep.sc++, e.sub.flags & 4) {
2526
- let t = e.dep.computed;
2527
- if (t && !e.dep.subs) {
2528
- t.flags |= 20;
2529
- for (let e = t.deps; e; e = e.nextDep) addSub(e);
2530
- }
2531
- let n = e.dep.subs;
2532
- n !== e && (e.prevSub = n, n && (n.nextSub = e)), process.env.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;
2533
- }
2534
- }
2535
- var targetMap = /* @__PURE__ */ new WeakMap(), ITERATE_KEY = /* @__PURE__ */ Symbol(process.env.NODE_ENV === "production" ? "" : "Object iterate"), MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(process.env.NODE_ENV === "production" ? "" : "Map keys iterate"), ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(process.env.NODE_ENV === "production" ? "" : "Array iterate");
2536
- function track(e, t, n) {
2537
- if (shouldTrack && activeSub) {
2538
- let r = targetMap.get(e);
2539
- r || targetMap.set(e, r = /* @__PURE__ */ new Map());
2540
- let i = r.get(n);
2541
- i || (r.set(n, i = new Dep()), i.map = r, i.key = n), process.env.NODE_ENV === "production" ? i.track() : i.track({
2542
- target: e,
2543
- type: t,
2544
- key: n
2545
- });
2546
- }
2547
- }
2548
- function trigger(e, t, n, r, i, a) {
2549
- let o = targetMap.get(e);
2550
- if (!o) {
2551
- globalVersion++;
2552
- return;
2553
- }
2554
- let s = (o) => {
2555
- o && (process.env.NODE_ENV === "production" ? o.trigger() : o.trigger({
2556
- target: e,
2557
- type: t,
2558
- key: n,
2559
- newValue: r,
2560
- oldValue: i,
2561
- oldTarget: a
2562
- }));
2563
- };
2564
- if (startBatch(), t === "clear") o.forEach(s);
2565
- else {
2566
- let i = isArray(e), a = i && isIntegerKey(n);
2567
- if (i && n === "length") {
2568
- let e = Number(r);
2569
- o.forEach((t, n) => {
2570
- (n === "length" || n === ARRAY_ITERATE_KEY || !isSymbol(n) && n >= e) && s(t);
2571
- });
2572
- } else switch ((n !== void 0 || o.has(void 0)) && s(o.get(n)), a && s(o.get(ARRAY_ITERATE_KEY)), t) {
2573
- case "add":
2574
- i ? a && s(o.get("length")) : (s(o.get(ITERATE_KEY)), isMap(e) && s(o.get(MAP_KEY_ITERATE_KEY)));
2575
- break;
2576
- case "delete":
2577
- i || (s(o.get(ITERATE_KEY)), isMap(e) && s(o.get(MAP_KEY_ITERATE_KEY)));
2578
- break;
2579
- case "set":
2580
- isMap(e) && s(o.get(ITERATE_KEY));
2581
- break;
2582
- }
2583
- }
2584
- endBatch();
2585
- }
2586
- function getDepFromReactive(e, t) {
2587
- let n = targetMap.get(e);
2588
- return n && n.get(t);
2589
- }
2590
- function reactiveReadArray(e) {
2591
- let t = /* @__PURE__ */ toRaw(e);
2592
- return t === e ? t : (track(t, "iterate", ARRAY_ITERATE_KEY), /* @__PURE__ */ isShallow(e) ? t : t.map(toReactive));
2593
- }
2594
- function shallowReadArray(e) {
2595
- return track(e = /* @__PURE__ */ toRaw(e), "iterate", ARRAY_ITERATE_KEY), e;
2596
- }
2597
- function toWrapped(e, t) {
2598
- return /* @__PURE__ */ isReadonly(e) ? toReadonly(/* @__PURE__ */ isReactive(e) ? toReactive(t) : t) : toReactive(t);
2599
- }
2600
- var arrayInstrumentations = {
2601
- __proto__: null,
2602
- [Symbol.iterator]() {
2603
- return iterator(this, Symbol.iterator, (e) => toWrapped(this, e));
2604
- },
2605
- concat(...e) {
2606
- return reactiveReadArray(this).concat(...e.map((e) => isArray(e) ? reactiveReadArray(e) : e));
2607
- },
2608
- entries() {
2609
- return iterator(this, "entries", (e) => (e[1] = toWrapped(this, e[1]), e));
2610
- },
2611
- every(e, t) {
2612
- return apply(this, "every", e, t, void 0, arguments);
2613
- },
2614
- filter(e, t) {
2615
- return apply(this, "filter", e, t, (e) => e.map((e) => toWrapped(this, e)), arguments);
2616
- },
2617
- find(e, t) {
2618
- return apply(this, "find", e, t, (e) => toWrapped(this, e), arguments);
2619
- },
2620
- findIndex(e, t) {
2621
- return apply(this, "findIndex", e, t, void 0, arguments);
2622
- },
2623
- findLast(e, t) {
2624
- return apply(this, "findLast", e, t, (e) => toWrapped(this, e), arguments);
2625
- },
2626
- findLastIndex(e, t) {
2627
- return apply(this, "findLastIndex", e, t, void 0, arguments);
2628
- },
2629
- forEach(e, t) {
2630
- return apply(this, "forEach", e, t, void 0, arguments);
2631
- },
2632
- includes(...e) {
2633
- return searchProxy(this, "includes", e);
2634
- },
2635
- indexOf(...e) {
2636
- return searchProxy(this, "indexOf", e);
2637
- },
2638
- join(e) {
2639
- return reactiveReadArray(this).join(e);
2640
- },
2641
- lastIndexOf(...e) {
2642
- return searchProxy(this, "lastIndexOf", e);
2643
- },
2644
- map(e, t) {
2645
- return apply(this, "map", e, t, void 0, arguments);
2646
- },
2647
- pop() {
2648
- return noTracking(this, "pop");
2649
- },
2650
- push(...e) {
2651
- return noTracking(this, "push", e);
2652
- },
2653
- reduce(e, ...t) {
2654
- return reduce(this, "reduce", e, t);
2655
- },
2656
- reduceRight(e, ...t) {
2657
- return reduce(this, "reduceRight", e, t);
2658
- },
2659
- shift() {
2660
- return noTracking(this, "shift");
2661
- },
2662
- some(e, t) {
2663
- return apply(this, "some", e, t, void 0, arguments);
2664
- },
2665
- splice(...e) {
2666
- return noTracking(this, "splice", e);
2667
- },
2668
- toReversed() {
2669
- return reactiveReadArray(this).toReversed();
2670
- },
2671
- toSorted(e) {
2672
- return reactiveReadArray(this).toSorted(e);
2673
- },
2674
- toSpliced(...e) {
2675
- return reactiveReadArray(this).toSpliced(...e);
2676
- },
2677
- unshift(...e) {
2678
- return noTracking(this, "unshift", e);
2679
- },
2680
- values() {
2681
- return iterator(this, "values", (e) => toWrapped(this, e));
2682
- }
2683
- };
2684
- function iterator(e, t, n) {
2685
- let r = shallowReadArray(e), i = r[t]();
2686
- return r !== e && !/* @__PURE__ */ isShallow(e) && (i._next = i.next, i.next = () => {
2687
- let e = i._next();
2688
- return e.done || (e.value = n(e.value)), e;
2689
- }), i;
2690
- }
2691
- var arrayProto = Array.prototype;
2692
- function apply(e, t, n, r, i, a) {
2693
- let o = shallowReadArray(e), s = o !== e && !/* @__PURE__ */ isShallow(e), c = o[t];
2694
- if (c !== arrayProto[t]) {
2695
- let t = c.apply(e, a);
2696
- return s ? toReactive(t) : t;
2697
- }
2698
- let l = n;
2699
- o !== e && (s ? l = function(t, r) {
2700
- return n.call(this, toWrapped(e, t), r, e);
2701
- } : n.length > 2 && (l = function(t, r) {
2702
- return n.call(this, t, r, e);
2703
- }));
2704
- let u = c.call(o, l, r);
2705
- return s && i ? i(u) : u;
2706
- }
2707
- function reduce(e, t, n, r) {
2708
- let i = shallowReadArray(e), a = n;
2709
- return i !== e && (/* @__PURE__ */ isShallow(e) ? n.length > 3 && (a = function(t, r, i) {
2710
- return n.call(this, t, r, i, e);
2711
- }) : a = function(t, r, i) {
2712
- return n.call(this, t, toWrapped(e, r), i, e);
2713
- }), i[t](a, ...r);
2714
- }
2715
- function searchProxy(e, t, n) {
2716
- let r = /* @__PURE__ */ toRaw(e);
2717
- track(r, "iterate", ARRAY_ITERATE_KEY);
2718
- let i = r[t](...n);
2719
- return (i === -1 || i === !1) && /* @__PURE__ */ isProxy(n[0]) ? (n[0] = /* @__PURE__ */ toRaw(n[0]), r[t](...n)) : i;
2720
- }
2721
- function noTracking(e, t, n = []) {
2722
- pauseTracking(), startBatch();
2723
- let r = (/* @__PURE__ */ toRaw(e))[t].apply(e, n);
2724
- return endBatch(), resetTracking(), r;
2725
- }
2726
- var isNonTrackableKeys = /* @__PURE__ */ makeMap("__proto__,__v_isRef,__isVue"), builtInSymbols = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(isSymbol));
2727
- function hasOwnProperty(e) {
2728
- isSymbol(e) || (e = String(e));
2729
- let t = /* @__PURE__ */ toRaw(this);
2730
- return track(t, "has", e), t.hasOwnProperty(e);
2731
- }
2732
- var BaseReactiveHandler = class {
2733
- constructor(e = !1, t = !1) {
2734
- this._isReadonly = e, this._isShallow = t;
2735
- }
2736
- get(e, t, n) {
2737
- if (t === "__v_skip") return e.__v_skip;
2738
- let r = this._isReadonly, i = this._isShallow;
2739
- if (t === "__v_isReactive") return !r;
2740
- if (t === "__v_isReadonly") return r;
2741
- if (t === "__v_isShallow") return i;
2742
- if (t === "__v_raw") return n === (r ? i ? shallowReadonlyMap : readonlyMap : i ? shallowReactiveMap : reactiveMap).get(e) || Object.getPrototypeOf(e) === Object.getPrototypeOf(n) ? e : void 0;
2743
- let a = isArray(e);
2744
- if (!r) {
2745
- let e;
2746
- if (a && (e = arrayInstrumentations[t])) return e;
2747
- if (t === "hasOwnProperty") return hasOwnProperty;
2748
- }
2749
- let o = Reflect.get(e, t, /* @__PURE__ */ isRef(e) ? e : n);
2750
- if ((isSymbol(t) ? builtInSymbols.has(t) : isNonTrackableKeys(t)) || (r || track(e, "get", t), i)) return o;
2751
- if (/* @__PURE__ */ isRef(o)) {
2752
- let e = a && isIntegerKey(t) ? o : o.value;
2753
- return r && isObject$1(e) ? /* @__PURE__ */ readonly(e) : e;
2754
- }
2755
- return isObject$1(o) ? r ? /* @__PURE__ */ readonly(o) : /* @__PURE__ */ reactive(o) : o;
2756
- }
2757
- }, MutableReactiveHandler = class extends BaseReactiveHandler {
2758
- constructor(e = !1) {
2759
- super(!1, e);
2760
- }
2761
- set(e, t, n, r) {
2762
- let i = e[t], a = isArray(e) && isIntegerKey(t);
2763
- if (!this._isShallow) {
2764
- let r = /* @__PURE__ */ isReadonly(i);
2765
- if (!/* @__PURE__ */ isShallow(n) && !/* @__PURE__ */ isReadonly(n) && (i = /* @__PURE__ */ toRaw(i), n = /* @__PURE__ */ toRaw(n)), !a && /* @__PURE__ */ isRef(i) && !/* @__PURE__ */ isRef(n)) return r ? (process.env.NODE_ENV !== "production" && warn$2(`Set operation on key "${String(t)}" failed: target is readonly.`, e[t]), !0) : (i.value = n, !0);
2766
- }
2767
- let o = a ? Number(t) < e.length : hasOwn(e, t), s = Reflect.set(e, t, n, /* @__PURE__ */ isRef(e) ? e : r);
2768
- return e === /* @__PURE__ */ toRaw(r) && (o ? hasChanged(n, i) && trigger(e, "set", t, n, i) : trigger(e, "add", t, n)), s;
2769
- }
2770
- deleteProperty(e, t) {
2771
- let n = hasOwn(e, t), r = e[t], i = Reflect.deleteProperty(e, t);
2772
- return i && n && trigger(e, "delete", t, void 0, r), i;
2773
- }
2774
- has(e, t) {
2775
- let n = Reflect.has(e, t);
2776
- return (!isSymbol(t) || !builtInSymbols.has(t)) && track(e, "has", t), n;
2777
- }
2778
- ownKeys(e) {
2779
- return track(e, "iterate", isArray(e) ? "length" : ITERATE_KEY), Reflect.ownKeys(e);
2780
- }
2781
- }, ReadonlyReactiveHandler = class extends BaseReactiveHandler {
2782
- constructor(e = !1) {
2783
- super(!0, e);
2784
- }
2785
- set(e, t) {
2786
- return process.env.NODE_ENV !== "production" && warn$2(`Set operation on key "${String(t)}" failed: target is readonly.`, e), !0;
2787
- }
2788
- deleteProperty(e, t) {
2789
- return process.env.NODE_ENV !== "production" && warn$2(`Delete operation on key "${String(t)}" failed: target is readonly.`, e), !0;
2790
- }
2791
- }, mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler(), readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(), shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(!0), shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(!0), toShallow = (e) => e, getProto = (e) => Reflect.getPrototypeOf(e);
2792
- function createIterableMethod(e, t, n) {
2793
- return function(...r) {
2794
- let i = this.__v_raw, a = /* @__PURE__ */ toRaw(i), o = isMap(a), s = e === "entries" || e === Symbol.iterator && o, c = e === "keys" && o, l = i[e](...r), u = n ? toShallow : t ? toReadonly : toReactive;
2795
- return !t && track(a, "iterate", c ? MAP_KEY_ITERATE_KEY : ITERATE_KEY), extend(Object.create(l), { next() {
2796
- let { value: e, done: t } = l.next();
2797
- return t ? {
2798
- value: e,
2799
- done: t
2800
- } : {
2801
- value: s ? [u(e[0]), u(e[1])] : u(e),
2802
- done: t
2803
- };
2804
- } });
2805
- };
2806
- }
2807
- function createReadonlyMethod(e) {
2808
- return function(...t) {
2809
- if (process.env.NODE_ENV !== "production") {
2810
- let n = t[0] ? `on key "${t[0]}" ` : "";
2811
- warn$2(`${capitalize(e)} operation ${n}failed: target is readonly.`, /* @__PURE__ */ toRaw(this));
2812
- }
2813
- return e === "delete" ? !1 : e === "clear" ? void 0 : this;
2814
- };
2815
- }
2816
- function createInstrumentations(e, t) {
2817
- let n = {
2818
- get(n) {
2819
- let r = this.__v_raw, i = /* @__PURE__ */ toRaw(r), a = /* @__PURE__ */ toRaw(n);
2820
- e || (hasChanged(n, a) && track(i, "get", n), track(i, "get", a));
2821
- let { has: o } = getProto(i), s = t ? toShallow : e ? toReadonly : toReactive;
2822
- if (o.call(i, n)) return s(r.get(n));
2823
- if (o.call(i, a)) return s(r.get(a));
2824
- r !== i && r.get(n);
2825
- },
2826
- get size() {
2827
- let t = this.__v_raw;
2828
- return !e && track(/* @__PURE__ */ toRaw(t), "iterate", ITERATE_KEY), t.size;
2829
- },
2830
- has(t) {
2831
- let n = this.__v_raw, r = /* @__PURE__ */ toRaw(n), i = /* @__PURE__ */ toRaw(t);
2832
- return e || (hasChanged(t, i) && track(r, "has", t), track(r, "has", i)), t === i ? n.has(t) : n.has(t) || n.has(i);
2833
- },
2834
- forEach(n, r) {
2835
- let i = this, a = i.__v_raw, o = /* @__PURE__ */ toRaw(a), s = t ? toShallow : e ? toReadonly : toReactive;
2836
- return !e && track(o, "iterate", ITERATE_KEY), a.forEach((e, t) => n.call(r, s(e), s(t), i));
2837
- }
2838
- };
2839
- return extend(n, e ? {
2840
- add: createReadonlyMethod("add"),
2841
- set: createReadonlyMethod("set"),
2842
- delete: createReadonlyMethod("delete"),
2843
- clear: createReadonlyMethod("clear")
2844
- } : {
2845
- add(e) {
2846
- !t && !/* @__PURE__ */ isShallow(e) && !/* @__PURE__ */ isReadonly(e) && (e = /* @__PURE__ */ toRaw(e));
2847
- let n = /* @__PURE__ */ toRaw(this);
2848
- return getProto(n).has.call(n, e) || (n.add(e), trigger(n, "add", e, e)), this;
2849
- },
2850
- set(e, n) {
2851
- !t && !/* @__PURE__ */ isShallow(n) && !/* @__PURE__ */ isReadonly(n) && (n = /* @__PURE__ */ toRaw(n));
2852
- let r = /* @__PURE__ */ toRaw(this), { has: i, get: a } = getProto(r), o = i.call(r, e);
2853
- o ? process.env.NODE_ENV !== "production" && checkIdentityKeys(r, i, e) : (e = /* @__PURE__ */ toRaw(e), o = i.call(r, e));
2854
- let s = a.call(r, e);
2855
- return r.set(e, n), o ? hasChanged(n, s) && trigger(r, "set", e, n, s) : trigger(r, "add", e, n), this;
2856
- },
2857
- delete(e) {
2858
- let t = /* @__PURE__ */ toRaw(this), { has: n, get: r } = getProto(t), i = n.call(t, e);
2859
- i ? process.env.NODE_ENV !== "production" && checkIdentityKeys(t, n, e) : (e = /* @__PURE__ */ toRaw(e), i = n.call(t, e));
2860
- let a = r ? r.call(t, e) : void 0, o = t.delete(e);
2861
- return i && trigger(t, "delete", e, void 0, a), o;
2862
- },
2863
- clear() {
2864
- let e = /* @__PURE__ */ toRaw(this), t = e.size !== 0, n = process.env.NODE_ENV === "production" ? void 0 : isMap(e) ? new Map(e) : new Set(e), r = e.clear();
2865
- return t && trigger(e, "clear", void 0, void 0, n), r;
2866
- }
2867
- }), [
2868
- "keys",
2869
- "values",
2870
- "entries",
2871
- Symbol.iterator
2872
- ].forEach((r) => {
2873
- n[r] = createIterableMethod(r, e, t);
2874
- }), n;
2875
- }
2876
- function createInstrumentationGetter(e, t) {
2877
- let n = createInstrumentations(e, t);
2878
- return (t, r, i) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? t : Reflect.get(hasOwn(n, r) && r in t ? n : t, r, i);
2879
- }
2880
- var mutableCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(!1, !1) }, shallowCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(!1, !0) }, readonlyCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(!0, !1) }, shallowReadonlyCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(!0, !0) };
2881
- function checkIdentityKeys(e, t, n) {
2882
- let r = /* @__PURE__ */ toRaw(n);
2883
- if (r !== n && t.call(e, r)) {
2884
- let t = toRawType(e);
2885
- warn$2(`Reactive ${t} contains both the raw and reactive versions of the same object${t === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`);
2886
- }
2887
- }
2888
- var reactiveMap = /* @__PURE__ */ new WeakMap(), shallowReactiveMap = /* @__PURE__ */ new WeakMap(), readonlyMap = /* @__PURE__ */ new WeakMap(), shallowReadonlyMap = /* @__PURE__ */ new WeakMap();
2889
- function targetTypeMap(e) {
2890
- switch (e) {
2891
- case "Object":
2892
- case "Array": return 1;
2893
- case "Map":
2894
- case "Set":
2895
- case "WeakMap":
2896
- case "WeakSet": return 2;
2897
- default: return 0;
2898
- }
2899
- }
2900
- function getTargetType(e) {
2901
- return e.__v_skip || !Object.isExtensible(e) ? 0 : targetTypeMap(toRawType(e));
2902
- }
2903
- /* @__NO_SIDE_EFFECTS__ */
2904
- function reactive(e) {
2905
- return /* @__PURE__ */ isReadonly(e) ? e : createReactiveObject(e, !1, mutableHandlers, mutableCollectionHandlers, reactiveMap);
2906
- }
2907
- /* @__NO_SIDE_EFFECTS__ */
2908
- function shallowReactive(e) {
2909
- return createReactiveObject(e, !1, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);
2910
- }
2911
- /* @__NO_SIDE_EFFECTS__ */
2912
- function readonly(e) {
2913
- return createReactiveObject(e, !0, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);
2914
- }
2915
- /* @__NO_SIDE_EFFECTS__ */
2916
- function shallowReadonly(e) {
2917
- return createReactiveObject(e, !0, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);
2918
- }
2919
- function createReactiveObject(e, t, n, r, i) {
2920
- if (!isObject$1(e)) return process.env.NODE_ENV !== "production" && warn$2(`value cannot be made ${t ? "readonly" : "reactive"}: ${String(e)}`), e;
2921
- if (e.__v_raw && !(t && e.__v_isReactive)) return e;
2922
- let a = getTargetType(e);
2923
- if (a === 0) return e;
2924
- let o = i.get(e);
2925
- if (o) return o;
2926
- let s = new Proxy(e, a === 2 ? r : n);
2927
- return i.set(e, s), s;
2928
- }
2929
- /* @__NO_SIDE_EFFECTS__ */
2930
- function isReactive(e) {
2931
- return /* @__PURE__ */ isReadonly(e) ? /* @__PURE__ */ isReactive(e.__v_raw) : !!(e && e.__v_isReactive);
2932
- }
2933
- /* @__NO_SIDE_EFFECTS__ */
2934
- function isReadonly(e) {
2935
- return !!(e && e.__v_isReadonly);
2936
- }
2937
- /* @__NO_SIDE_EFFECTS__ */
2938
- function isShallow(e) {
2939
- return !!(e && e.__v_isShallow);
2940
- }
2941
- /* @__NO_SIDE_EFFECTS__ */
2942
- function isProxy(e) {
2943
- return e ? !!e.__v_raw : !1;
2944
- }
2945
- /* @__NO_SIDE_EFFECTS__ */
2946
- function toRaw(e) {
2947
- let t = e && e.__v_raw;
2948
- return t ? /* @__PURE__ */ toRaw(t) : e;
2949
- }
2950
- function markRaw(e) {
2951
- return !hasOwn(e, "__v_skip") && Object.isExtensible(e) && def(e, "__v_skip", !0), e;
2952
- }
2953
- var toReactive = (e) => isObject$1(e) ? /* @__PURE__ */ reactive(e) : e, toReadonly = (e) => isObject$1(e) ? /* @__PURE__ */ readonly(e) : e;
2954
- /* @__NO_SIDE_EFFECTS__ */
2955
- function isRef(e) {
2956
- return e ? e.__v_isRef === !0 : !1;
2957
- }
2958
- /* @__NO_SIDE_EFFECTS__ */
2959
- function ref(e) {
2960
- return createRef(e, !1);
2961
- }
2962
- /* @__NO_SIDE_EFFECTS__ */
2963
- function shallowRef(e) {
2964
- return createRef(e, !0);
2965
- }
2966
- function createRef(e, t) {
2967
- return /* @__PURE__ */ isRef(e) ? e : new RefImpl(e, t);
2968
- }
2969
- var RefImpl = class {
2970
- constructor(e, t) {
2971
- this.dep = new Dep(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = t ? e : /* @__PURE__ */ toRaw(e), this._value = t ? e : toReactive(e), this.__v_isShallow = t;
2972
- }
2973
- get value() {
2974
- return process.env.NODE_ENV === "production" ? this.dep.track() : this.dep.track({
2975
- target: this,
2976
- type: "get",
2977
- key: "value"
2978
- }), this._value;
2979
- }
2980
- set value(e) {
2981
- let t = this._rawValue, n = this.__v_isShallow || /* @__PURE__ */ isShallow(e) || /* @__PURE__ */ isReadonly(e);
2982
- e = n ? e : /* @__PURE__ */ toRaw(e), hasChanged(e, t) && (this._rawValue = e, this._value = n ? e : toReactive(e), process.env.NODE_ENV === "production" ? this.dep.trigger() : this.dep.trigger({
2983
- target: this,
2984
- type: "set",
2985
- key: "value",
2986
- newValue: e,
2987
- oldValue: t
2988
- }));
2989
- }
2990
- };
2991
- function unref(e) {
2992
- return /* @__PURE__ */ isRef(e) ? e.value : e;
2993
- }
2994
- function toValue(e) {
2995
- return isFunction(e) ? e() : unref(e);
2996
- }
2997
- var shallowUnwrapHandlers = {
2998
- get: (e, t, n) => t === "__v_raw" ? e : unref(Reflect.get(e, t, n)),
2999
- set: (e, t, n, r) => {
3000
- let i = e[t];
3001
- return /* @__PURE__ */ isRef(i) && !/* @__PURE__ */ isRef(n) ? (i.value = n, !0) : Reflect.set(e, t, n, r);
3002
- }
3003
- };
3004
- function proxyRefs(e) {
3005
- return /* @__PURE__ */ isReactive(e) ? e : new Proxy(e, shallowUnwrapHandlers);
3006
- }
3007
- /* @__NO_SIDE_EFFECTS__ */
3008
- function toRefs(e) {
3009
- process.env.NODE_ENV !== "production" && !/* @__PURE__ */ isProxy(e) && warn$2("toRefs() expects a reactive object but received a plain one.");
3010
- let t = isArray(e) ? Array(e.length) : {};
3011
- for (let n in e) t[n] = propertyToRef(e, n);
3012
- return t;
3013
- }
3014
- var ObjectRefImpl = class {
3015
- constructor(e, t, n) {
3016
- this._object = e, this._key = t, this._defaultValue = n, this.__v_isRef = !0, this._value = void 0, this._raw = /* @__PURE__ */ toRaw(e);
3017
- let r = !0, i = e;
3018
- if (!isArray(e) || !isIntegerKey(String(t))) do
3019
- r = !/* @__PURE__ */ isProxy(i) || /* @__PURE__ */ isShallow(i);
3020
- while (r && (i = i.__v_raw));
3021
- this._shallow = r;
3022
- }
3023
- get value() {
3024
- let e = this._object[this._key];
3025
- return this._shallow && (e = unref(e)), this._value = e === void 0 ? this._defaultValue : e;
3026
- }
3027
- set value(e) {
3028
- if (this._shallow && /* @__PURE__ */ isRef(this._raw[this._key])) {
3029
- let t = this._object[this._key];
3030
- if (/* @__PURE__ */ isRef(t)) {
3031
- t.value = e;
3032
- return;
3033
- }
3034
- }
3035
- this._object[this._key] = e;
3036
- }
3037
- get dep() {
3038
- return getDepFromReactive(this._raw, this._key);
3039
- }
3040
- }, GetterRefImpl = class {
3041
- constructor(e) {
3042
- this._getter = e, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
3043
- }
3044
- get value() {
3045
- return this._value = this._getter();
3046
- }
3047
- };
3048
- /* @__NO_SIDE_EFFECTS__ */
3049
- function toRef(e, t, n) {
3050
- return /* @__PURE__ */ isRef(e) ? e : isFunction(e) ? new GetterRefImpl(e) : isObject$1(e) && arguments.length > 1 ? propertyToRef(e, t, n) : /* @__PURE__ */ ref(e);
3051
- }
3052
- function propertyToRef(e, t, n) {
3053
- return new ObjectRefImpl(e, t, n);
3054
- }
3055
- var ComputedRefImpl = class {
3056
- constructor(e, t, n) {
3057
- this.fn = e, this.setter = t, this._value = void 0, this.dep = new Dep(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = globalVersion - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !t, this.isSSR = n;
3058
- }
3059
- notify() {
3060
- if (this.flags |= 16, !(this.flags & 8) && activeSub !== this) return batch(this, !0), !0;
3061
- process.env.NODE_ENV;
3062
- }
3063
- get value() {
3064
- let e = process.env.NODE_ENV === "production" ? this.dep.track() : this.dep.track({
3065
- target: this,
3066
- type: "get",
3067
- key: "value"
3068
- });
3069
- return refreshComputed(this), e && (e.version = this.dep.version), this._value;
3070
- }
3071
- set value(e) {
3072
- this.setter ? this.setter(e) : process.env.NODE_ENV !== "production" && warn$2("Write operation failed: computed value is readonly");
3073
- }
3074
- };
3075
- /* @__NO_SIDE_EFFECTS__ */
3076
- function computed$1(e, t, n = !1) {
3077
- let r, i;
3078
- isFunction(e) ? r = e : (r = e.get, i = e.set);
3079
- let a = new ComputedRefImpl(r, i, n);
3080
- return process.env.NODE_ENV !== "production" && t && !n && (a.onTrack = t.onTrack, a.onTrigger = t.onTrigger), a;
3081
- }
3082
- var INITIAL_WATCHER_VALUE = {}, cleanupMap = /* @__PURE__ */ new WeakMap(), activeWatcher = void 0;
3083
- function onWatcherCleanup(e, t = !1, n = activeWatcher) {
3084
- if (n) {
3085
- let t = cleanupMap.get(n);
3086
- t || cleanupMap.set(n, t = []), t.push(e);
3087
- } else process.env.NODE_ENV !== "production" && !t && warn$2("onWatcherCleanup() was called when there was no active watcher to associate with.");
3088
- }
3089
- function watch$1(e, t, n = EMPTY_OBJ) {
3090
- let { immediate: r, deep: i, once: a, scheduler: o, augmentJob: s, call: c } = n, l = (e) => {
3091
- (n.onWarn || warn$2)("Invalid watch source: ", e, "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.");
3092
- }, u = (e) => i ? e : /* @__PURE__ */ isShallow(e) || i === !1 || i === 0 ? traverse(e, 1) : traverse(e), d, f, p, m, h = !1, g = !1;
3093
- if (/* @__PURE__ */ isRef(e) ? (f = () => e.value, h = /* @__PURE__ */ isShallow(e)) : /* @__PURE__ */ isReactive(e) ? (f = () => u(e), h = !0) : isArray(e) ? (g = !0, h = e.some((e) => /* @__PURE__ */ isReactive(e) || /* @__PURE__ */ isShallow(e)), f = () => e.map((e) => {
3094
- if (/* @__PURE__ */ isRef(e)) return e.value;
3095
- if (/* @__PURE__ */ isReactive(e)) return u(e);
3096
- if (isFunction(e)) return c ? c(e, 2) : e();
3097
- process.env.NODE_ENV !== "production" && l(e);
3098
- })) : isFunction(e) ? f = t ? c ? () => c(e, 2) : e : () => {
3099
- if (p) {
3100
- pauseTracking();
3101
- try {
3102
- p();
3103
- } finally {
3104
- resetTracking();
3105
- }
3106
- }
3107
- let t = activeWatcher;
3108
- activeWatcher = d;
3109
- try {
3110
- return c ? c(e, 3, [m]) : e(m);
3111
- } finally {
3112
- activeWatcher = t;
3113
- }
3114
- } : (f = NOOP, process.env.NODE_ENV !== "production" && l(e)), t && i) {
3115
- let e = f, t = i === !0 ? Infinity : i;
3116
- f = () => traverse(e(), t);
3117
- }
3118
- let _ = getCurrentScope(), v = () => {
3119
- d.stop(), _ && _.active && remove(_.effects, d);
3120
- };
3121
- if (a && t) {
3122
- let e = t;
3123
- t = (...t) => {
3124
- e(...t), v();
3125
- };
3126
- }
3127
- let y = g ? Array(e.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE, b = (e) => {
3128
- if (!(!(d.flags & 1) || !d.dirty && !e)) if (t) {
3129
- let e = d.run();
3130
- if (i || h || (g ? e.some((e, t) => hasChanged(e, y[t])) : hasChanged(e, y))) {
3131
- p && p();
3132
- let n = activeWatcher;
3133
- activeWatcher = d;
3134
- try {
3135
- let n = [
3136
- e,
3137
- y === INITIAL_WATCHER_VALUE ? void 0 : g && y[0] === INITIAL_WATCHER_VALUE ? [] : y,
3138
- m
3139
- ];
3140
- y = e, c ? c(t, 3, n) : t(...n);
3141
- } finally {
3142
- activeWatcher = n;
3143
- }
3144
- }
3145
- } else d.run();
3146
- };
3147
- return s && s(b), d = new ReactiveEffect(f), d.scheduler = o ? () => o(b, !1) : b, m = (e) => onWatcherCleanup(e, !1, d), p = d.onStop = () => {
3148
- let e = cleanupMap.get(d);
3149
- if (e) {
3150
- if (c) c(e, 4);
3151
- else for (let t of e) t();
3152
- cleanupMap.delete(d);
3153
- }
3154
- }, process.env.NODE_ENV !== "production" && (d.onTrack = n.onTrack, d.onTrigger = n.onTrigger), t ? r ? b(!0) : y = d.run() : o ? o(b.bind(null, !0), !0) : d.run(), v.pause = d.pause.bind(d), v.resume = d.resume.bind(d), v.stop = v, v;
3155
- }
3156
- function traverse(e, t = Infinity, n) {
3157
- if (t <= 0 || !isObject$1(e) || e.__v_skip || (n ||= /* @__PURE__ */ new Map(), (n.get(e) || 0) >= t)) return e;
3158
- if (n.set(e, t), t--, /* @__PURE__ */ isRef(e)) traverse(e.value, t, n);
3159
- else if (isArray(e)) for (let r = 0; r < e.length; r++) traverse(e[r], t, n);
3160
- else if (isSet(e) || isMap(e)) e.forEach((e) => {
3161
- traverse(e, t, n);
3162
- });
3163
- else if (isPlainObject$1(e)) {
3164
- for (let r in e) traverse(e[r], t, n);
3165
- for (let r of Object.getOwnPropertySymbols(e)) Object.prototype.propertyIsEnumerable.call(e, r) && traverse(e[r], t, n);
3166
- }
3167
- return e;
3168
- }
3169
- /**
3170
- * @vue/runtime-core v3.5.28
3171
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
3172
- * @license MIT
3173
- **/
3174
- var stack = [];
3175
- function pushWarningContext(e) {
3176
- stack.push(e);
3177
- }
3178
- function popWarningContext() {
3179
- stack.pop();
3180
- }
3181
- var isWarning = !1;
3182
- function warn$1(e, ...t) {
3183
- if (isWarning) return;
3184
- isWarning = !0, pauseTracking();
3185
- let n = stack.length ? stack[stack.length - 1].component : null, r = n && n.appContext.config.warnHandler, i = getComponentTrace();
3186
- if (r) callWithErrorHandling(r, n, 11, [
3187
- e + t.map((e) => e.toString?.call(e) ?? JSON.stringify(e)).join(""),
3188
- n && n.proxy,
3189
- i.map(({ vnode: e }) => `at <${formatComponentName(n, e.type)}>`).join("\n"),
3190
- i
3191
- ]);
3192
- else {
3193
- let n = [`[Vue warn]: ${e}`, ...t];
3194
- i.length && n.push("\n", ...formatTrace(i)), console.warn(...n);
3195
- }
3196
- resetTracking(), isWarning = !1;
3197
- }
3198
- function getComponentTrace() {
3199
- let e = stack[stack.length - 1];
3200
- if (!e) return [];
3201
- let t = [];
3202
- for (; e;) {
3203
- let n = t[0];
3204
- n && n.vnode === e ? n.recurseCount++ : t.push({
3205
- vnode: e,
3206
- recurseCount: 0
3207
- });
3208
- let r = e.component && e.component.parent;
3209
- e = r && r.vnode;
3210
- }
3211
- return t;
3212
- }
3213
- function formatTrace(e) {
3214
- let t = [];
3215
- return e.forEach((e, n) => {
3216
- t.push(...n === 0 ? [] : ["\n"], ...formatTraceEntry(e));
3217
- }), t;
3218
- }
3219
- function formatTraceEntry({ vnode: e, recurseCount: t }) {
3220
- let n = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, i = ` at <${formatComponentName(e.component, e.type, r)}`, a = ">" + n;
3221
- return e.props ? [
3222
- i,
3223
- ...formatProps(e.props),
3224
- a
3225
- ] : [i + a];
3226
- }
3227
- function formatProps(e) {
3228
- let t = [], n = Object.keys(e);
3229
- return n.slice(0, 3).forEach((n) => {
3230
- t.push(...formatProp(n, e[n]));
3231
- }), n.length > 3 && t.push(" ..."), t;
3232
- }
3233
- function formatProp(e, t, n) {
3234
- return isString(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */ isRef(t) ? (t = formatProp(e, /* @__PURE__ */ toRaw(t.value), !0), n ? t : [
3235
- `${e}=Ref<`,
3236
- t,
3237
- ">"
3238
- ]) : isFunction(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = /* @__PURE__ */ toRaw(t), n ? t : [`${e}=`, t]);
3239
- }
3240
- var ErrorTypeStrings$1 = {
3241
- sp: "serverPrefetch hook",
3242
- bc: "beforeCreate hook",
3243
- c: "created hook",
3244
- bm: "beforeMount hook",
3245
- m: "mounted hook",
3246
- bu: "beforeUpdate hook",
3247
- u: "updated",
3248
- bum: "beforeUnmount hook",
3249
- um: "unmounted hook",
3250
- a: "activated hook",
3251
- da: "deactivated hook",
3252
- ec: "errorCaptured hook",
3253
- rtc: "renderTracked hook",
3254
- rtg: "renderTriggered hook",
3255
- 0: "setup function",
3256
- 1: "render function",
3257
- 2: "watcher getter",
3258
- 3: "watcher callback",
3259
- 4: "watcher cleanup function",
3260
- 5: "native event handler",
3261
- 6: "component event handler",
3262
- 7: "vnode hook",
3263
- 8: "directive hook",
3264
- 9: "transition hook",
3265
- 10: "app errorHandler",
3266
- 11: "app warnHandler",
3267
- 12: "ref function",
3268
- 13: "async component loader",
3269
- 14: "scheduler flush",
3270
- 15: "component update",
3271
- 16: "app unmount cleanup function"
3272
- };
3273
- function callWithErrorHandling(e, t, n, r) {
3274
- try {
3275
- return r ? e(...r) : e();
3276
- } catch (e) {
3277
- handleError(e, t, n);
3278
- }
3279
- }
3280
- function callWithAsyncErrorHandling(e, t, n, r) {
3281
- if (isFunction(e)) {
3282
- let i = callWithErrorHandling(e, t, n, r);
3283
- return i && isPromise(i) && i.catch((e) => {
3284
- handleError(e, t, n);
3285
- }), i;
3286
- }
3287
- if (isArray(e)) {
3288
- let i = [];
3289
- for (let a = 0; a < e.length; a++) i.push(callWithAsyncErrorHandling(e[a], t, n, r));
3290
- return i;
3291
- } else process.env.NODE_ENV !== "production" && warn$1(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`);
3292
- }
3293
- function handleError(e, t, n, r = !0) {
3294
- let i = t ? t.vnode : null, { errorHandler: a, throwUnhandledErrorInProduction: o } = t && t.appContext.config || EMPTY_OBJ;
3295
- if (t) {
3296
- let r = t.parent, i = t.proxy, o = process.env.NODE_ENV === "production" ? `https://vuejs.org/error-reference/#runtime-${n}` : ErrorTypeStrings$1[n];
3297
- for (; r;) {
3298
- let t = r.ec;
3299
- if (t) {
3300
- for (let n = 0; n < t.length; n++) if (t[n](e, i, o) === !1) return;
3301
- }
3302
- r = r.parent;
3303
- }
3304
- if (a) {
3305
- pauseTracking(), callWithErrorHandling(a, null, 10, [
3306
- e,
3307
- i,
3308
- o
3309
- ]), resetTracking();
3310
- return;
3311
- }
3312
- }
3313
- logError(e, n, i, r, o);
3314
- }
3315
- function logError(e, t, n, r = !0, i = !1) {
3316
- if (process.env.NODE_ENV !== "production") {
3317
- let i = ErrorTypeStrings$1[t];
3318
- if (n && pushWarningContext(n), warn$1(`Unhandled error${i ? ` during execution of ${i}` : ""}`), n && popWarningContext(), r) throw e;
3319
- console.error(e);
3320
- } else if (i) throw e;
3321
- else console.error(e);
3322
- }
3323
- var queue = [], flushIndex = -1, pendingPostFlushCbs = [], activePostFlushCbs = null, postFlushIndex = 0, resolvedPromise = /* @__PURE__ */ Promise.resolve(), currentFlushPromise = null, RECURSION_LIMIT = 100;
3324
- function nextTick(e) {
3325
- let t = currentFlushPromise || resolvedPromise;
3326
- return e ? t.then(this ? e.bind(this) : e) : t;
3327
- }
3328
- function findInsertionIndex(e) {
3329
- let t = flushIndex + 1, n = queue.length;
3330
- for (; t < n;) {
3331
- let r = t + n >>> 1, i = queue[r], a = getId(i);
3332
- a < e || a === e && i.flags & 2 ? t = r + 1 : n = r;
3333
- }
3334
- return t;
3335
- }
3336
- function queueJob(e) {
3337
- if (!(e.flags & 1)) {
3338
- let t = getId(e), n = queue[queue.length - 1];
3339
- !n || !(e.flags & 2) && t >= getId(n) ? queue.push(e) : queue.splice(findInsertionIndex(t), 0, e), e.flags |= 1, queueFlush();
3340
- }
3341
- }
3342
- function queueFlush() {
3343
- currentFlushPromise ||= resolvedPromise.then(flushJobs);
3344
- }
3345
- function queuePostFlushCb(e) {
3346
- isArray(e) ? pendingPostFlushCbs.push(...e) : activePostFlushCbs && e.id === -1 ? activePostFlushCbs.splice(postFlushIndex + 1, 0, e) : e.flags & 1 || (pendingPostFlushCbs.push(e), e.flags |= 1), queueFlush();
3347
- }
3348
- function flushPostFlushCbs(e) {
3349
- if (pendingPostFlushCbs.length) {
3350
- let t = [...new Set(pendingPostFlushCbs)].sort((e, t) => getId(e) - getId(t));
3351
- if (pendingPostFlushCbs.length = 0, activePostFlushCbs) {
3352
- activePostFlushCbs.push(...t);
3353
- return;
3354
- }
3355
- for (activePostFlushCbs = t, process.env.NODE_ENV !== "production" && (e ||= /* @__PURE__ */ new Map()), postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
3356
- let t = activePostFlushCbs[postFlushIndex];
3357
- process.env.NODE_ENV !== "production" && checkRecursiveUpdates(e, t) || (t.flags & 4 && (t.flags &= -2), t.flags & 8 || t(), t.flags &= -2);
3358
- }
3359
- activePostFlushCbs = null, postFlushIndex = 0;
3360
- }
3361
- }
3362
- var getId = (e) => e.id == null ? e.flags & 2 ? -1 : Infinity : e.id;
3363
- function flushJobs(e) {
3364
- process.env.NODE_ENV !== "production" && (e ||= /* @__PURE__ */ new Map());
3365
- let t = process.env.NODE_ENV === "production" ? NOOP : (t) => checkRecursiveUpdates(e, t);
3366
- try {
3367
- for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
3368
- let e = queue[flushIndex];
3369
- if (e && !(e.flags & 8)) {
3370
- if (process.env.NODE_ENV !== "production" && t(e)) continue;
3371
- e.flags & 4 && (e.flags &= -2), callWithErrorHandling(e, e.i, e.i ? 15 : 14), e.flags & 4 || (e.flags &= -2);
3372
- }
3373
- }
3374
- } finally {
3375
- for (; flushIndex < queue.length; flushIndex++) {
3376
- let e = queue[flushIndex];
3377
- e && (e.flags &= -2);
3378
- }
3379
- flushIndex = -1, queue.length = 0, flushPostFlushCbs(e), currentFlushPromise = null, (queue.length || pendingPostFlushCbs.length) && flushJobs(e);
3380
- }
3381
- }
3382
- function checkRecursiveUpdates(e, t) {
3383
- let n = e.get(t) || 0;
3384
- if (n > RECURSION_LIMIT) {
3385
- let e = t.i, n = e && getComponentName(e.type);
3386
- return handleError(`Maximum recursive updates exceeded${n ? ` in component <${n}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`, null, 10), !0;
3387
- }
3388
- return e.set(t, n + 1), !1;
3389
- }
3390
- var hmrDirtyComponents = /* @__PURE__ */ new Map();
3391
- process.env.NODE_ENV !== "production" && (getGlobalThis().__VUE_HMR_RUNTIME__ = {
3392
- createRecord: tryWrap(createRecord),
3393
- rerender: tryWrap(rerender),
3394
- reload: tryWrap(reload)
3395
- });
3396
- var map = /* @__PURE__ */ new Map();
3397
- function createRecord(e, t) {
3398
- return map.has(e) ? !1 : (map.set(e, {
3399
- initialDef: normalizeClassComponent(t),
3400
- instances: /* @__PURE__ */ new Set()
3401
- }), !0);
3402
- }
3403
- function normalizeClassComponent(e) {
3404
- return isClassComponent(e) ? e.__vccOpts : e;
3405
- }
3406
- function rerender(e, t) {
3407
- let n = map.get(e);
3408
- n && (n.initialDef.render = t, [...n.instances].forEach((e) => {
3409
- t && (e.render = t, normalizeClassComponent(e.type).render = t), e.renderCache = [], e.job.flags & 8 || e.update();
3410
- }));
3411
- }
3412
- function reload(e, t) {
3413
- let n = map.get(e);
3414
- if (!n) return;
3415
- t = normalizeClassComponent(t), updateComponentDef(n.initialDef, t);
3416
- let r = [...n.instances];
3417
- for (let e = 0; e < r.length; e++) {
3418
- let i = r[e], a = normalizeClassComponent(i.type), o = hmrDirtyComponents.get(a);
3419
- o || (a !== n.initialDef && updateComponentDef(a, t), hmrDirtyComponents.set(a, o = /* @__PURE__ */ new Set())), o.add(i), i.appContext.propsCache.delete(i.type), i.appContext.emitsCache.delete(i.type), i.appContext.optionsCache.delete(i.type), i.ceReload ? (o.add(i), i.ceReload(t.styles), o.delete(i)) : i.parent ? queueJob(() => {
3420
- i.job.flags & 8 || (i.parent.update(), o.delete(i));
3421
- }) : i.appContext.reload ? i.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn("[HMR] Root or manually mounted instance modified. Full reload required."), i.root.ce && i !== i.root && i.root.ce._removeChildStyle(a);
3422
- }
3423
- queuePostFlushCb(() => {
3424
- hmrDirtyComponents.clear();
3425
- });
3426
- }
3427
- function updateComponentDef(e, t) {
3428
- extend(e, t);
3429
- for (let n in e) n !== "__file" && !(n in t) && delete e[n];
3430
- }
3431
- function tryWrap(e) {
3432
- return (t, n) => {
3433
- try {
3434
- return e(t, n);
3435
- } catch (e) {
3436
- console.error(e), console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.");
3437
- }
3438
- };
3439
- }
3440
- var devtools$1, buffer = [];
3441
- function setDevtoolsHook$1(e, t) {
3442
- devtools$1 = e, devtools$1 ? (devtools$1.enabled = !0, buffer.forEach(({ event: e, args: t }) => devtools$1.emit(e, ...t)), buffer = []) : typeof window < "u" && window.HTMLElement && !(window.navigator?.userAgent)?.includes("jsdom") ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((e) => {
3443
- setDevtoolsHook$1(e, t);
3444
- }), setTimeout(() => {
3445
- devtools$1 || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, buffer = []);
3446
- }, 3e3)) : buffer = [];
3447
- }
3448
- var currentRenderingInstance = null, currentScopeId = null;
3449
- function inject(e, t, n = !1) {
3450
- let r = getCurrentInstance();
3451
- if (r || currentApp) {
3452
- let i = currentApp ? currentApp._context.provides : r ? r.parent == null || r.ce ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides : void 0;
3453
- if (i && e in i) return i[e];
3454
- if (arguments.length > 1) return n && isFunction(t) ? t.call(r && r.proxy) : t;
3455
- process.env.NODE_ENV !== "production" && warn$1(`injection "${String(e)}" not found.`);
3456
- } else process.env.NODE_ENV !== "production" && warn$1("inject() can only be used inside setup() or functional components.");
3457
- }
3458
- function hasInjectionContext() {
3459
- return !!(getCurrentInstance() || currentApp);
3460
- }
3461
- var ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx"), useSSRContext = () => {
3462
- {
3463
- let e = inject(ssrContextKey);
3464
- return e || process.env.NODE_ENV !== "production" && warn$1("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."), e;
3465
- }
3466
- };
3467
- function watchEffect(e, t) {
3468
- return doWatch(e, null, t);
3469
- }
3470
- function watch(e, t, n) {
3471
- return process.env.NODE_ENV !== "production" && !isFunction(t) && warn$1("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."), doWatch(e, t, n);
3472
- }
3473
- function doWatch(e, t, n = EMPTY_OBJ) {
3474
- let { immediate: r, deep: i, flush: a, once: o } = n;
3475
- process.env.NODE_ENV !== "production" && !t && (r !== void 0 && warn$1("watch() \"immediate\" option is only respected when using the watch(source, callback, options?) signature."), i !== void 0 && warn$1("watch() \"deep\" option is only respected when using the watch(source, callback, options?) signature."), o !== void 0 && warn$1("watch() \"once\" option is only respected when using the watch(source, callback, options?) signature."));
3476
- let s = extend({}, n);
3477
- process.env.NODE_ENV !== "production" && (s.onWarn = warn$1);
3478
- let c = t && r || !t && a !== "post", l;
3479
- if (isInSSRComponentSetup) {
3480
- if (a === "sync") {
3481
- let e = useSSRContext();
3482
- l = e.__watcherHandles ||= [];
3483
- } else if (!c) {
3484
- let e = () => {};
3485
- return e.stop = NOOP, e.resume = NOOP, e.pause = NOOP, e;
3486
- }
3487
- }
3488
- let u = currentInstance;
3489
- s.call = (e, t, n) => callWithAsyncErrorHandling(e, u, t, n);
3490
- let d = !1;
3491
- a === "post" ? s.scheduler = (e) => {
3492
- queuePostRenderEffect(e, u && u.suspense);
3493
- } : a !== "sync" && (d = !0, s.scheduler = (e, t) => {
3494
- t ? e() : queueJob(e);
3495
- }), s.augmentJob = (e) => {
3496
- t && (e.flags |= 4), d && (e.flags |= 2, u && (e.id = u.uid, e.i = u));
3497
- };
3498
- let f = watch$1(e, t, s);
3499
- return isInSSRComponentSetup && (l ? l.push(f) : c && f()), f;
3500
- }
3501
- function instanceWatch(e, t, n) {
3502
- let r = this.proxy, i = isString(e) ? e.includes(".") ? createPathGetter(r, e) : () => r[e] : e.bind(r, r), a;
3503
- isFunction(t) ? a = t : (a = t.handler, n = t);
3504
- let o = setCurrentInstance(this), s = doWatch(i, a.bind(r), n);
3505
- return o(), s;
3506
- }
3507
- function createPathGetter(e, t) {
3508
- let n = t.split(".");
3509
- return () => {
3510
- let t = e;
3511
- for (let e = 0; e < n.length && t; e++) t = t[n[e]];
3512
- return t;
3513
- };
3514
- }
3515
- var isTeleport = (e) => e.__isTeleport;
3516
- function setTransitionHooks(e, t) {
3517
- e.shapeFlag & 6 && e.component ? (e.transition = t, setTransitionHooks(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
3518
- }
3519
- getGlobalThis().requestIdleCallback, getGlobalThis().cancelIdleCallback;
3520
- function injectHook(e, t, n = currentInstance, r = !1) {
3521
- if (n) {
3522
- let i = n[e] || (n[e] = []), a = t.__weh ||= (...r) => {
3523
- pauseTracking();
3524
- let i = setCurrentInstance(n), a = callWithAsyncErrorHandling(t, n, e, r);
3525
- return i(), resetTracking(), a;
3526
- };
3527
- return r ? i.unshift(a) : i.push(a), a;
3528
- } else process.env.NODE_ENV !== "production" && warn$1(`${toHandlerKey(ErrorTypeStrings$1[e].replace(/ hook$/, ""))} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`);
3529
- }
3530
- var onMounted = ((e) => (t, n = currentInstance) => {
3531
- (!isInSSRComponentSetup || e === "sp") && injectHook(e, (...e) => t(...e), n);
3532
- })("m"), NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc"), getPublicInstance = (e) => e ? isStatefulComponent(e) ? getComponentPublicInstance(e) : getPublicInstance(e.parent) : null, publicPropertiesMap = /* @__PURE__ */ extend(/* @__PURE__ */ Object.create(null), {
3533
- $: (e) => e,
3534
- $el: (e) => e.vnode.el,
3535
- $data: (e) => e.data,
3536
- $props: (e) => process.env.NODE_ENV === "production" ? e.props : /* @__PURE__ */ shallowReadonly(e.props),
3537
- $attrs: (e) => process.env.NODE_ENV === "production" ? e.attrs : /* @__PURE__ */ shallowReadonly(e.attrs),
3538
- $slots: (e) => process.env.NODE_ENV === "production" ? e.slots : /* @__PURE__ */ shallowReadonly(e.slots),
3539
- $refs: (e) => process.env.NODE_ENV === "production" ? e.refs : /* @__PURE__ */ shallowReadonly(e.refs),
3540
- $parent: (e) => getPublicInstance(e.parent),
3541
- $root: (e) => getPublicInstance(e.root),
3542
- $host: (e) => e.ce,
3543
- $emit: (e) => e.emit,
3544
- $options: (e) => __VUE_OPTIONS_API__ ? resolveMergedOptions(e) : e.type,
3545
- $forceUpdate: (e) => e.f ||= () => {
3546
- queueJob(e.update);
3547
- },
3548
- $nextTick: (e) => e.n ||= nextTick.bind(e.proxy),
3549
- $watch: (e) => __VUE_OPTIONS_API__ ? instanceWatch.bind(e) : NOOP
3550
- }), isReservedPrefix = (e) => e === "_" || e === "$", hasSetupBinding = (e, t) => e !== EMPTY_OBJ && !e.__isScriptSetup && hasOwn(e, t), PublicInstanceProxyHandlers = {
3551
- get({ _: e }, t) {
3552
- if (t === "__v_skip") return !0;
3553
- let { ctx: n, setupState: r, data: i, props: a, accessCache: o, type: s, appContext: c } = e;
3554
- if (process.env.NODE_ENV !== "production" && t === "__isVue") return !0;
3555
- if (t[0] !== "$") {
3556
- let e = o[t];
3557
- if (e !== void 0) switch (e) {
3558
- case 1: return r[t];
3559
- case 2: return i[t];
3560
- case 4: return n[t];
3561
- case 3: return a[t];
3562
- }
3563
- else if (hasSetupBinding(r, t)) return o[t] = 1, r[t];
3564
- else if (__VUE_OPTIONS_API__ && i !== EMPTY_OBJ && hasOwn(i, t)) return o[t] = 2, i[t];
3565
- else if (hasOwn(a, t)) return o[t] = 3, a[t];
3566
- else if (n !== EMPTY_OBJ && hasOwn(n, t)) return o[t] = 4, n[t];
3567
- else (!__VUE_OPTIONS_API__ || shouldCacheAccess) && (o[t] = 0);
3568
- }
3569
- let l = publicPropertiesMap[t], u, d;
3570
- if (l) return t === "$attrs" ? (track(e.attrs, "get", ""), process.env.NODE_ENV) : process.env.NODE_ENV !== "production" && t === "$slots" && track(e, "get", t), l(e);
3571
- if ((u = s.__cssModules) && (u = u[t])) return u;
3572
- if (n !== EMPTY_OBJ && hasOwn(n, t)) return o[t] = 4, n[t];
3573
- if (d = c.config.globalProperties, hasOwn(d, t)) return d[t];
3574
- process.env.NODE_ENV !== "production" && currentRenderingInstance && (!isString(t) || t.indexOf("__v") !== 0) && (i !== EMPTY_OBJ && isReservedPrefix(t[0]) && hasOwn(i, t) ? warn$1(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`) : e === currentRenderingInstance && warn$1(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`));
3575
- },
3576
- set({ _: e }, t, n) {
3577
- let { data: r, setupState: i, ctx: a } = e;
3578
- return hasSetupBinding(i, t) ? (i[t] = n, !0) : process.env.NODE_ENV !== "production" && i.__isScriptSetup && hasOwn(i, t) ? (warn$1(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : __VUE_OPTIONS_API__ && r !== EMPTY_OBJ && hasOwn(r, t) ? (r[t] = n, !0) : hasOwn(e.props, t) ? (process.env.NODE_ENV !== "production" && warn$1(`Attempting to mutate prop "${t}". Props are readonly.`), !1) : t[0] === "$" && t.slice(1) in e ? (process.env.NODE_ENV !== "production" && warn$1(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`), !1) : (process.env.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(a, t, {
3579
- enumerable: !0,
3580
- configurable: !0,
3581
- value: n
3582
- }) : a[t] = n, !0);
3583
- },
3584
- has({ _: { data: e, setupState: t, accessCache: n, ctx: r, appContext: i, props: a, type: o } }, s) {
3585
- let c;
3586
- return !!(n[s] || __VUE_OPTIONS_API__ && e !== EMPTY_OBJ && s[0] !== "$" && hasOwn(e, s) || hasSetupBinding(t, s) || hasOwn(a, s) || hasOwn(r, s) || hasOwn(publicPropertiesMap, s) || hasOwn(i.config.globalProperties, s) || (c = o.__cssModules) && c[s]);
31
+ const definePlugin = async (t) => {
32
+ if (isFunction(t)) var n = t(window.$$safe$$);
33
+ else var n = t;
34
+ return console.log("[definePlugin] new plugin defining...", n), await SharedFunction.call("addPlugin", n), n;
35
+ }, decodePluginMeta = (e) => ({
36
+ name: {
37
+ display: e["name:display"],
38
+ id: e["name:id"]
3587
39
  },
3588
- defineProperty(e, t, n) {
3589
- return n.get == null ? hasOwn(n, "value") && this.set(e, t, n.value, null) : e._.accessCache[t] = 0, Reflect.defineProperty(e, t, n);
3590
- }
3591
- };
3592
- process.env.NODE_ENV !== "production" && (PublicInstanceProxyHandlers.ownKeys = (e) => (warn$1("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."), Reflect.ownKeys(e)));
3593
- function normalizePropsOrEmits(e) {
3594
- return isArray(e) ? e.reduce((e, t) => (e[t] = null, e), {}) : e;
3595
- }
3596
- var shouldCacheAccess = !0;
3597
- function resolveMergedOptions(e) {
3598
- let t = e.type, { mixins: n, extends: r } = t, { mixins: i, optionsCache: a, config: { optionMergeStrategies: o } } = e.appContext, s = a.get(t), c;
3599
- return s ? c = s : !i.length && !n && !r ? c = t : (c = {}, i.length && i.forEach((e) => mergeOptions(c, e, o, !0)), mergeOptions(c, t, o)), isObject$1(t) && a.set(t, c), c;
3600
- }
3601
- function mergeOptions(e, t, n, r = !1) {
3602
- let { mixins: i, extends: a } = t;
3603
- a && mergeOptions(e, a, n, !0), i && i.forEach((t) => mergeOptions(e, t, n, !0));
3604
- for (let i in t) if (r && i === "expose") process.env.NODE_ENV !== "production" && warn$1("\"expose\" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.");
3605
- else {
3606
- let r = internalOptionMergeStrats[i] || n && n[i];
3607
- e[i] = r ? r(e[i], t[i]) : t[i];
3608
- }
3609
- return e;
3610
- }
3611
- var internalOptionMergeStrats = {
3612
- data: mergeDataFn,
3613
- props: mergeEmitsOrPropsOptions,
3614
- emits: mergeEmitsOrPropsOptions,
3615
- methods: mergeObjectOptions,
3616
- computed: mergeObjectOptions,
3617
- beforeCreate: mergeAsArray,
3618
- created: mergeAsArray,
3619
- beforeMount: mergeAsArray,
3620
- mounted: mergeAsArray,
3621
- beforeUpdate: mergeAsArray,
3622
- updated: mergeAsArray,
3623
- beforeDestroy: mergeAsArray,
3624
- beforeUnmount: mergeAsArray,
3625
- destroyed: mergeAsArray,
3626
- unmounted: mergeAsArray,
3627
- activated: mergeAsArray,
3628
- deactivated: mergeAsArray,
3629
- errorCaptured: mergeAsArray,
3630
- serverPrefetch: mergeAsArray,
3631
- components: mergeObjectOptions,
3632
- directives: mergeObjectOptions,
3633
- watch: mergeWatchOptions,
3634
- provide: mergeDataFn,
3635
- inject: mergeInject
3636
- };
3637
- function mergeDataFn(e, t) {
3638
- return t ? e ? function() {
3639
- return extend(isFunction(e) ? e.call(this, this) : e, isFunction(t) ? t.call(this, this) : t);
3640
- } : t : e;
3641
- }
3642
- function mergeInject(e, t) {
3643
- return mergeObjectOptions(normalizeInject(e), normalizeInject(t));
3644
- }
3645
- function normalizeInject(e) {
3646
- if (isArray(e)) {
3647
- let t = {};
3648
- for (let n = 0; n < e.length; n++) t[e[n]] = e[n];
3649
- return t;
3650
- }
3651
- return e;
3652
- }
3653
- function mergeAsArray(e, t) {
3654
- return e ? [...new Set([].concat(e, t))] : t;
3655
- }
3656
- function mergeObjectOptions(e, t) {
3657
- return e ? extend(/* @__PURE__ */ Object.create(null), e, t) : t;
3658
- }
3659
- function mergeEmitsOrPropsOptions(e, t) {
3660
- return e ? isArray(e) && isArray(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : extend(/* @__PURE__ */ Object.create(null), normalizePropsOrEmits(e), normalizePropsOrEmits(t ?? {})) : t;
3661
- }
3662
- function mergeWatchOptions(e, t) {
3663
- if (!e) return t;
3664
- if (!t) return e;
3665
- let n = extend(/* @__PURE__ */ Object.create(null), e);
3666
- for (let r in t) n[r] = mergeAsArray(e[r], t[r]);
3667
- return n;
3668
- }
3669
- var currentApp = null, internalObjectProto = {}, isInternalObject = (e) => Object.getPrototypeOf(e) === internalObjectProto, queuePostRenderEffect = queueEffectWithSuspense, isSuspense = (e) => e.__isSuspense;
3670
- function queueEffectWithSuspense(e, t) {
3671
- t && t.pendingBranch ? isArray(e) ? t.effects.push(...e) : t.effects.push(e) : queuePostFlushCb(e);
3672
- }
3673
- var Fragment = /* @__PURE__ */ Symbol.for("v-fgt"), Text = /* @__PURE__ */ Symbol.for("v-txt"), Comment = /* @__PURE__ */ Symbol.for("v-cmt"), currentBlock = null, isBlockTreeEnabled = 1;
3674
- function isVNode(e) {
3675
- return e ? e.__v_isVNode === !0 : !1;
3676
- }
3677
- var vnodeArgsTransformer, createVNodeWithArgsTransform = (...e) => _createVNode(...vnodeArgsTransformer ? vnodeArgsTransformer(e, currentRenderingInstance) : e), normalizeKey = ({ key: e }) => e ?? null, normalizeRef = ({ ref: e, ref_key: t, ref_for: n }) => (typeof e == "number" && (e = "" + e), e == null ? null : isString(e) || /* @__PURE__ */ isRef(e) || isFunction(e) ? {
3678
- i: currentRenderingInstance,
3679
- r: e,
3680
- k: t,
3681
- f: !!n
3682
- } : e);
3683
- function createBaseVNode(e, t = null, n = null, r = 0, i = null, a = e === Fragment ? 0 : 1, o = !1, s = !1) {
3684
- let c = {
3685
- __v_isVNode: !0,
3686
- __v_skip: !0,
3687
- type: e,
3688
- props: t,
3689
- key: t && normalizeKey(t),
3690
- ref: t && normalizeRef(t),
3691
- scopeId: currentScopeId,
3692
- slotScopeIds: null,
3693
- children: n,
3694
- component: null,
3695
- suspense: null,
3696
- ssContent: null,
3697
- ssFallback: null,
3698
- dirs: null,
3699
- transition: null,
3700
- el: null,
3701
- anchor: null,
3702
- target: null,
3703
- targetStart: null,
3704
- targetAnchor: null,
3705
- staticCount: 0,
3706
- shapeFlag: a,
3707
- patchFlag: r,
3708
- dynamicProps: i,
3709
- dynamicChildren: null,
3710
- appContext: null,
3711
- ctx: currentRenderingInstance
3712
- };
3713
- return s ? (normalizeChildren(c, n), a & 128 && e.normalize(c)) : n && (c.shapeFlag |= isString(n) ? 8 : 16), process.env.NODE_ENV !== "production" && c.key !== c.key && warn$1("VNode created with invalid key (NaN). VNode type:", c.type), isBlockTreeEnabled > 0 && !o && currentBlock && (c.patchFlag > 0 || a & 6) && c.patchFlag !== 32 && currentBlock.push(c), c;
3714
- }
3715
- var createVNode = process.env.NODE_ENV === "production" ? _createVNode : createVNodeWithArgsTransform;
3716
- function _createVNode(e, t = null, n = null, r = 0, i = null, a = !1) {
3717
- if ((!e || e === NULL_DYNAMIC_COMPONENT) && (process.env.NODE_ENV !== "production" && !e && warn$1(`Invalid vnode type when creating vnode: ${e}.`), e = Comment), isVNode(e)) {
3718
- let r = cloneVNode(e, t, !0);
3719
- return n && normalizeChildren(r, n), isBlockTreeEnabled > 0 && !a && currentBlock && (r.shapeFlag & 6 ? currentBlock[currentBlock.indexOf(e)] = r : currentBlock.push(r)), r.patchFlag = -2, r;
3720
- }
3721
- if (isClassComponent(e) && (e = e.__vccOpts), t) {
3722
- t = guardReactiveProps(t);
3723
- let { class: e, style: n } = t;
3724
- e && !isString(e) && (t.class = normalizeClass(e)), isObject$1(n) && (/* @__PURE__ */ isProxy(n) && !isArray(n) && (n = extend({}, n)), t.style = normalizeStyle(n));
3725
- }
3726
- let o = isString(e) ? 1 : isSuspense(e) ? 128 : isTeleport(e) ? 64 : isObject$1(e) ? 4 : isFunction(e) ? 2 : 0;
3727
- return process.env.NODE_ENV !== "production" && o & 4 && /* @__PURE__ */ isProxy(e) && (e = /* @__PURE__ */ toRaw(e), warn$1("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.", "\nComponent that was made reactive: ", e)), createBaseVNode(e, t, n, r, i, o, a, !0);
3728
- }
3729
- function guardReactiveProps(e) {
3730
- return e ? /* @__PURE__ */ isProxy(e) || isInternalObject(e) ? extend({}, e) : e : null;
3731
- }
3732
- function cloneVNode(e, t, n = !1, r = !1) {
3733
- let { props: i, ref: a, patchFlag: o, children: s, transition: c } = e, l = t ? mergeProps(i || {}, t) : i, u = {
3734
- __v_isVNode: !0,
3735
- __v_skip: !0,
3736
- type: e.type,
3737
- props: l,
3738
- key: l && normalizeKey(l),
3739
- ref: t && t.ref ? n && a ? isArray(a) ? a.concat(normalizeRef(t)) : [a, normalizeRef(t)] : normalizeRef(t) : a,
3740
- scopeId: e.scopeId,
3741
- slotScopeIds: e.slotScopeIds,
3742
- children: process.env.NODE_ENV !== "production" && o === -1 && isArray(s) ? s.map(deepCloneVNode) : s,
3743
- target: e.target,
3744
- targetStart: e.targetStart,
3745
- targetAnchor: e.targetAnchor,
3746
- staticCount: e.staticCount,
3747
- shapeFlag: e.shapeFlag,
3748
- patchFlag: t && e.type !== Fragment ? o === -1 ? 16 : o | 16 : o,
3749
- dynamicProps: e.dynamicProps,
3750
- dynamicChildren: e.dynamicChildren,
3751
- appContext: e.appContext,
3752
- dirs: e.dirs,
3753
- transition: c,
3754
- component: e.component,
3755
- suspense: e.suspense,
3756
- ssContent: e.ssContent && cloneVNode(e.ssContent),
3757
- ssFallback: e.ssFallback && cloneVNode(e.ssFallback),
3758
- placeholder: e.placeholder,
3759
- el: e.el,
3760
- anchor: e.anchor,
3761
- ctx: e.ctx,
3762
- ce: e.ce
3763
- };
3764
- return c && r && setTransitionHooks(u, c.clone(u)), u;
3765
- }
3766
- function deepCloneVNode(e) {
3767
- let t = cloneVNode(e);
3768
- return isArray(e.children) && (t.children = e.children.map(deepCloneVNode)), t;
3769
- }
3770
- function createTextVNode(e = " ", t = 0) {
3771
- return createVNode(Text, null, e, t);
3772
- }
3773
- function normalizeChildren(e, t) {
3774
- let n = 0, { shapeFlag: r } = e;
3775
- if (t == null) t = null;
3776
- else if (isArray(t)) n = 16;
3777
- else if (typeof t == "object") if (r & 65) {
3778
- let n = t.default;
3779
- n && (n._c && (n._d = !1), normalizeChildren(e, n()), n._c && (n._d = !0));
3780
- return;
3781
- } else {
3782
- n = 32;
3783
- let r = t._;
3784
- !r && !isInternalObject(t) ? t._ctx = currentRenderingInstance : r === 3 && currentRenderingInstance && (currentRenderingInstance.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
3785
- }
3786
- else isFunction(t) ? (t = {
3787
- default: t,
3788
- _ctx: currentRenderingInstance
3789
- }, n = 32) : (t = String(t), r & 64 ? (n = 16, t = [createTextVNode(t)]) : n = 8);
3790
- e.children = t, e.shapeFlag |= n;
3791
- }
3792
- function mergeProps(...e) {
3793
- let t = {};
3794
- for (let n = 0; n < e.length; n++) {
3795
- let r = e[n];
3796
- for (let e in r) if (e === "class") t.class !== r.class && (t.class = normalizeClass([t.class, r.class]));
3797
- else if (e === "style") t.style = normalizeStyle([t.style, r.style]);
3798
- else if (isOn(e)) {
3799
- let n = t[e], i = r[e];
3800
- i && n !== i && !(isArray(n) && n.includes(i)) && (t[e] = n ? [].concat(n, i) : i);
3801
- } else e !== "" && (t[e] = r[e]);
3802
- }
3803
- return t;
3804
- }
3805
- var currentInstance = null, getCurrentInstance = () => currentInstance || currentRenderingInstance, internalSetCurrentInstance;
3806
- {
3807
- let e = getGlobalThis(), t = (t, n) => {
3808
- let r;
3809
- return (r = e[t]) || (r = e[t] = []), r.push(n), (e) => {
3810
- r.length > 1 ? r.forEach((t) => t(e)) : r[0](e);
3811
- };
3812
- };
3813
- internalSetCurrentInstance = t("__VUE_INSTANCE_SETTERS__", (e) => currentInstance = e), t("__VUE_SSR_SETTERS__", (e) => isInSSRComponentSetup = e);
3814
- }
3815
- var setCurrentInstance = (e) => {
3816
- let t = currentInstance;
3817
- return internalSetCurrentInstance(e), e.scope.on(), () => {
3818
- e.scope.off(), internalSetCurrentInstance(t);
3819
- };
3820
- };
3821
- function isStatefulComponent(e) {
3822
- return e.vnode.shapeFlag & 4;
3823
- }
3824
- var isInSSRComponentSetup = !1;
3825
- process.env.NODE_ENV;
3826
- function getComponentPublicInstance(e) {
3827
- return e.exposed ? e.exposeProxy ||= new Proxy(proxyRefs(markRaw(e.exposed)), {
3828
- get(t, n) {
3829
- if (n in t) return t[n];
3830
- if (n in publicPropertiesMap) return publicPropertiesMap[n](e);
3831
- },
3832
- has(e, t) {
3833
- return t in e || t in publicPropertiesMap;
3834
- }
3835
- }) : e.proxy;
3836
- }
3837
- var classifyRE = /(?:^|[-_])\w/g, classify = (e) => e.replace(classifyRE, (e) => e.toUpperCase()).replace(/[-_]/g, "");
3838
- function getComponentName(e, t = !0) {
3839
- return isFunction(e) ? e.displayName || e.name : e.name || t && e.__name;
3840
- }
3841
- function formatComponentName(e, t, n = !1) {
3842
- let r = getComponentName(t);
3843
- if (!r && t.__file) {
3844
- let e = t.__file.match(/([^/\\]+)\.\w+$/);
3845
- e && (r = e[1]);
3846
- }
3847
- if (!r && e) {
3848
- let n = (e) => {
3849
- for (let n in e) if (e[n] === t) return n;
40
+ author: e.author ?? "",
41
+ description: e.description,
42
+ require: (e.require ? isString(e.require) ? [e.require] : e.require : []).map((e) => {
43
+ let [t, ...n] = e.split(":");
44
+ if (t.startsWith("dc|")) return {
45
+ id: t.replace(/^dc\|/, ""),
46
+ download: n.join(":")
3850
47
  };
3851
- r = n(e.components) || e.parent && n(e.parent.type.components) || n(e.appContext.components);
3852
- }
3853
- return r ? classify(r) : n ? "App" : "Anonymous";
3854
- }
3855
- function isClassComponent(e) {
3856
- return isFunction(e) && "__vccOpts" in e;
3857
- }
3858
- var computed = (e, t) => {
3859
- let n = /* @__PURE__ */ computed$1(e, t, isInSSRComponentSetup);
3860
- if (process.env.NODE_ENV !== "production") {
3861
- let e = getCurrentInstance();
3862
- e && e.appContext.config.warnRecursiveComputed && (n._warnRecursive = !0);
3863
- }
3864
- return n;
3865
- };
3866
- function initCustomFormatter() {
3867
- if (process.env.NODE_ENV === "production" || typeof window > "u") return;
3868
- let e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, i = {
3869
- __vue_custom_formatter: !0,
3870
- header(t) {
3871
- if (!isObject$1(t)) return null;
3872
- if (t.__isVue) return [
3873
- "div",
3874
- e,
3875
- "VueInstance"
3876
- ];
3877
- if (/* @__PURE__ */ isRef(t)) {
3878
- pauseTracking();
3879
- let n = t.value;
3880
- return resetTracking(), [
3881
- "div",
3882
- {},
3883
- [
3884
- "span",
3885
- e,
3886
- u(t)
3887
- ],
3888
- "<",
3889
- s(n),
3890
- ">"
3891
- ];
3892
- } else if (/* @__PURE__ */ isReactive(t)) return [
3893
- "div",
3894
- {},
3895
- [
3896
- "span",
3897
- e,
3898
- /* @__PURE__ */ isShallow(t) ? "ShallowReactive" : "Reactive"
3899
- ],
3900
- "<",
3901
- s(t),
3902
- `>${/* @__PURE__ */ isReadonly(t) ? " (readonly)" : ""}`
3903
- ];
3904
- else if (/* @__PURE__ */ isReadonly(t)) return [
3905
- "div",
3906
- {},
3907
- [
3908
- "span",
3909
- e,
3910
- /* @__PURE__ */ isShallow(t) ? "ShallowReadonly" : "Readonly"
3911
- ],
3912
- "<",
3913
- s(t),
3914
- ">"
3915
- ];
3916
- return null;
3917
- },
3918
- hasBody(e) {
3919
- return e && e.__isVue;
3920
- },
3921
- body(e) {
3922
- if (e && e.__isVue) return [
3923
- "div",
3924
- {},
3925
- ...a(e.$)
3926
- ];
3927
- }
3928
- };
3929
- function a(e) {
3930
- let t = [];
3931
- e.type.props && e.props && t.push(o("props", /* @__PURE__ */ toRaw(e.props))), e.setupState !== EMPTY_OBJ && t.push(o("setup", e.setupState)), e.data !== EMPTY_OBJ && t.push(o("data", /* @__PURE__ */ toRaw(e.data)));
3932
- let n = c(e, "computed");
3933
- n && t.push(o("computed", n));
3934
- let i = c(e, "inject");
3935
- return i && t.push(o("injected", i)), t.push([
3936
- "div",
3937
- {},
3938
- [
3939
- "span",
3940
- { style: r.style + ";opacity:0.66" },
3941
- "$ (internal): "
3942
- ],
3943
- ["object", { object: e }]
3944
- ]), t;
3945
- }
3946
- function o(e, t) {
3947
- return t = extend({}, t), Object.keys(t).length ? [
3948
- "div",
3949
- { style: "line-height:1.25em;margin-bottom:0.6em" },
3950
- [
3951
- "div",
3952
- { style: "color:#476582" },
3953
- e
3954
- ],
3955
- [
3956
- "div",
3957
- { style: "padding-left:1.25em" },
3958
- ...Object.keys(t).map((e) => [
3959
- "div",
3960
- {},
3961
- [
3962
- "span",
3963
- r,
3964
- e + ": "
3965
- ],
3966
- s(t[e], !1)
3967
- ])
3968
- ]
3969
- ] : ["span", {}];
3970
- }
3971
- function s(e, i = !0) {
3972
- return typeof e == "number" ? [
3973
- "span",
3974
- t,
3975
- e
3976
- ] : typeof e == "string" ? [
3977
- "span",
3978
- n,
3979
- JSON.stringify(e)
3980
- ] : typeof e == "boolean" ? [
3981
- "span",
3982
- r,
3983
- e
3984
- ] : isObject$1(e) ? ["object", { object: i ? /* @__PURE__ */ toRaw(e) : e }] : [
3985
- "span",
3986
- n,
3987
- String(e)
3988
- ];
3989
- }
3990
- function c(e, t) {
3991
- let n = e.type;
3992
- if (isFunction(n)) return;
3993
- let r = {};
3994
- for (let i in e.ctx) l(n, i, t) && (r[i] = e.ctx[i]);
3995
- return r;
3996
- }
3997
- function l(e, t, n) {
3998
- let r = e[n];
3999
- if (isArray(r) && r.includes(t) || isObject$1(r) && t in r || e.extends && l(e.extends, t, n) || e.mixins && e.mixins.some((e) => l(e, t, n))) return !0;
4000
- }
4001
- function u(e) {
4002
- return /* @__PURE__ */ isShallow(e) ? "ShallowRef" : e.effect ? "ComputedRef" : "Ref";
48
+ }).filter((e) => !isUndefined(e)),
49
+ version: {
50
+ plugin: e.version.split("/")[0],
51
+ supportCore: (() => {
52
+ let t = e.version.split("/")[1];
53
+ return e.version.split("/")[2] ? t.replaceAll(">=", "^") : t;
54
+ })()
4003
55
  }
4004
- window.devtoolsFormatters ? window.devtoolsFormatters.push(i) : window.devtoolsFormatters = [i];
4005
- }
4006
- process.env.NODE_ENV, process.env.NODE_ENV, process.env.NODE_ENV;
4007
- /**
4008
- * vue v3.5.28
4009
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4010
- * @license MIT
4011
- **/
4012
- function initDev() {
4013
- initCustomFormatter();
4014
- }
4015
- process.env.NODE_ENV !== "production" && initDev();
56
+ });
4016
57
  var localProvidedStateMap = /* @__PURE__ */ new WeakMap(), injectLocal = (...e) => {
4017
58
  let t = e[0], n = getCurrentInstance()?.proxy ?? getCurrentScope();
4018
59
  if (n == null && !hasInjectionContext()) throw Error("injectLocal must be called in setup");
@@ -4057,7 +98,7 @@ function useEventListener(...e) {
4057
98
  }, { flush: "post" });
4058
99
  }
4059
100
  function useMounted() {
4060
- let e = /* @__PURE__ */ shallowRef(!1), t = getCurrentInstance();
101
+ let e = shallowRef(!1), t = getCurrentInstance();
4061
102
  return t && onMounted(() => {
4062
103
  e.value = !0;
4063
104
  }, t), e;
@@ -4074,365 +115,30 @@ function useSSRWidth() {
4074
115
  return typeof e == "number" ? e : void 0;
4075
116
  }
4076
117
  function useMediaQuery(e, t = {}) {
4077
- let { window: n = defaultWindow, ssrWidth: r = /* @__PURE__ */ useSSRWidth() } = t, i = /* @__PURE__ */ useSupported(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), a = /* @__PURE__ */ shallowRef(typeof r == "number"), o = /* @__PURE__ */ shallowRef(), s = /* @__PURE__ */ shallowRef(!1);
118
+ let { window: n = defaultWindow, ssrWidth: i = /* @__PURE__ */ useSSRWidth() } = t, a = /* @__PURE__ */ useSupported(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), o = shallowRef(typeof i == "number"), s = shallowRef(), c = shallowRef(!1);
4078
119
  return watchEffect(() => {
4079
- if (a.value) {
4080
- a.value = !i.value, s.value = toValue(e).split(",").some((e) => {
4081
- let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), i = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || i);
4082
- return n && a && (a = r >= pxValue(n[1])), i && a && (a = r <= pxValue(i[1])), t ? !a : a;
120
+ if (o.value) {
121
+ o.value = !a.value, c.value = toValue(e).split(",").some((e) => {
122
+ let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), r = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || r);
123
+ return n && a && (a = i >= pxValue(n[1])), r && a && (a = i <= pxValue(r[1])), t ? !a : a;
4083
124
  });
4084
125
  return;
4085
126
  }
4086
- i.value && (o.value = n.matchMedia(toValue(e)), s.value = o.value.matches);
4087
- }), useEventListener(o, "change", (e) => {
4088
- s.value = e.matches;
4089
- }, { passive: !0 }), computed(() => s.value);
127
+ a.value && (s.value = n.matchMedia(toValue(e)), c.value = s.value.matches);
128
+ }), useEventListener(s, "change", (e) => {
129
+ c.value = e.matches;
130
+ }, { passive: !0 }), computed(() => c.value);
4090
131
  }
4091
132
  function usePreferredDark(e) {
4092
133
  return useMediaQuery("(prefers-color-scheme: dark)", e);
4093
134
  }
4094
- var IS_CLIENT = typeof window < "u", activePinia, setActivePinia = (e) => activePinia = e;
4095
- process.env.NODE_ENV;
4096
- var piniaSymbol = process.env.NODE_ENV === "production" ? Symbol() : Symbol("pinia");
4097
- function isPlainObject(e) {
4098
- return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
4099
- }
4100
- var MutationType;
4101
- (function(e) {
4102
- e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
4103
- })(MutationType ||= {});
4104
- var _global = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
4105
- function bom(e, { autoBom: t = !1 } = {}) {
4106
- return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["", e], { type: e.type }) : e;
4107
- }
4108
- function download(e, t, n) {
4109
- let r = new XMLHttpRequest();
4110
- r.open("GET", e), r.responseType = "blob", r.onload = function() {
4111
- saveAs(r.response, t, n);
4112
- }, r.onerror = function() {
4113
- console.error("could not download file");
4114
- }, r.send();
4115
- }
4116
- function corsEnabled(e) {
4117
- let t = new XMLHttpRequest();
4118
- t.open("HEAD", e, !1);
4119
- try {
4120
- t.send();
4121
- } catch {}
4122
- return t.status >= 200 && t.status <= 299;
4123
- }
4124
- function click(e) {
4125
- try {
4126
- e.dispatchEvent(new MouseEvent("click"));
4127
- } catch {
4128
- let t = new MouseEvent("click", {
4129
- bubbles: !0,
4130
- cancelable: !0,
4131
- view: window,
4132
- detail: 0,
4133
- screenX: 80,
4134
- screenY: 20,
4135
- clientX: 80,
4136
- clientY: 20,
4137
- ctrlKey: !1,
4138
- altKey: !1,
4139
- shiftKey: !1,
4140
- metaKey: !1,
4141
- button: 0,
4142
- relatedTarget: null
4143
- });
4144
- e.dispatchEvent(t);
4145
- }
4146
- }
4147
- var _navigator = typeof navigator == "object" ? navigator : { userAgent: "" }, isMacOSWebView = /Macintosh/.test(_navigator.userAgent) && /AppleWebKit/.test(_navigator.userAgent) && !/Safari/.test(_navigator.userAgent), saveAs = IS_CLIENT ? typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !isMacOSWebView ? downloadSaveAs : "msSaveOrOpenBlob" in _navigator ? msSaveAs : fileSaverSaveAs : () => {};
4148
- function downloadSaveAs(e, t = "download", n) {
4149
- let r = document.createElement("a");
4150
- r.download = t, r.rel = "noopener", typeof e == "string" ? (r.href = e, r.origin === location.origin ? click(r) : corsEnabled(r.href) ? download(e, t, n) : (r.target = "_blank", click(r))) : (r.href = URL.createObjectURL(e), setTimeout(function() {
4151
- URL.revokeObjectURL(r.href);
4152
- }, 4e4), setTimeout(function() {
4153
- click(r);
4154
- }, 0));
4155
- }
4156
- function msSaveAs(e, t = "download", n) {
4157
- if (typeof e == "string") if (corsEnabled(e)) download(e, t, n);
4158
- else {
4159
- let t = document.createElement("a");
4160
- t.href = e, t.target = "_blank", setTimeout(function() {
4161
- click(t);
4162
- });
4163
- }
4164
- else navigator.msSaveOrOpenBlob(bom(e, n), t);
4165
- }
4166
- function fileSaverSaveAs(e, t, n, r) {
4167
- if (r ||= open("", "_blank"), r && (r.document.title = r.document.body.innerText = "downloading..."), typeof e == "string") return download(e, t, n);
4168
- let i = e.type === "application/octet-stream", a = /constructor/i.test(String(_global.HTMLElement)) || "safari" in _global, o = /CriOS\/[\d]+/.test(navigator.userAgent);
4169
- if ((o || i && a || isMacOSWebView) && typeof FileReader < "u") {
4170
- let t = new FileReader();
4171
- t.onloadend = function() {
4172
- let e = t.result;
4173
- if (typeof e != "string") throw r = null, Error("Wrong reader.result type");
4174
- e = o ? e : e.replace(/^data:[^;]*;/, "data:attachment/file;"), r ? r.location.href = e : location.assign(e), r = null;
4175
- }, t.readAsDataURL(e);
4176
- } else {
4177
- let t = URL.createObjectURL(e);
4178
- r ? r.location.assign(t) : location.href = t, r = null, setTimeout(function() {
4179
- URL.revokeObjectURL(t);
4180
- }, 4e4);
4181
- }
4182
- }
4183
- var { assign: assign$1 } = Object;
4184
- function patchObject(e, t) {
4185
- for (let n in t) {
4186
- let r = t[n];
4187
- if (!(n in e)) continue;
4188
- let i = e[n];
4189
- isPlainObject(i) && isPlainObject(r) && !/* @__PURE__ */ isRef(r) && !/* @__PURE__ */ isReactive(r) ? e[n] = patchObject(i, r) : e[n] = r;
4190
- }
4191
- return e;
4192
- }
4193
- var noop = () => {};
4194
- function addSubscription(e, t, n, r = noop) {
4195
- e.add(t);
4196
- let i = () => {
4197
- e.delete(t) && r();
4198
- };
4199
- return !n && getCurrentScope() && onScopeDispose(i), i;
4200
- }
4201
- function triggerSubscriptions(e, ...t) {
4202
- e.forEach((e) => {
4203
- e(...t);
4204
- });
4205
- }
4206
- var fallbackRunWithContext = (e) => e(), ACTION_MARKER = Symbol(), ACTION_NAME = Symbol();
4207
- function mergeReactiveObjects(e, t) {
4208
- e instanceof Map && t instanceof Map ? t.forEach((t, n) => e.set(n, t)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
4209
- for (let n in t) {
4210
- if (!t.hasOwnProperty(n)) continue;
4211
- let r = t[n], i = e[n];
4212
- isPlainObject(i) && isPlainObject(r) && e.hasOwnProperty(n) && !/* @__PURE__ */ isRef(r) && !/* @__PURE__ */ isReactive(r) ? e[n] = mergeReactiveObjects(i, r) : e[n] = r;
4213
- }
4214
- return e;
4215
- }
4216
- var skipHydrateSymbol = process.env.NODE_ENV === "production" ? Symbol() : Symbol("pinia:skipHydration");
4217
- function shouldHydrate(e) {
4218
- return !isPlainObject(e) || !Object.prototype.hasOwnProperty.call(e, skipHydrateSymbol);
4219
- }
4220
- var { assign } = Object;
4221
- function isComputed(e) {
4222
- return !!(/* @__PURE__ */ isRef(e) && e.effect);
4223
- }
4224
- function createOptionsStore(e, t, n, r) {
4225
- let { state: i, actions: a, getters: o } = t, s = n.state.value[e], c;
4226
- function l() {
4227
- !s && (process.env.NODE_ENV === "production" || !r) && (n.state.value[e] = i ? i() : {});
4228
- let t = process.env.NODE_ENV !== "production" && r ? /* @__PURE__ */ toRefs((/* @__PURE__ */ ref(i ? i() : {})).value) : /* @__PURE__ */ toRefs(n.state.value[e]);
4229
- return assign(t, a, Object.keys(o || {}).reduce((r, i) => (process.env.NODE_ENV !== "production" && i in t && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${i}" in store "${e}".`), r[i] = markRaw(computed(() => {
4230
- setActivePinia(n);
4231
- let t = n._s.get(e);
4232
- return o[i].call(t, t);
4233
- })), r), {}));
4234
- }
4235
- return c = createSetupStore(e, l, t, n, r, !0), c;
4236
- }
4237
- function createSetupStore(e, t, n = {}, r, i, a) {
4238
- let o, s = assign({ actions: {} }, n);
4239
- /* istanbul ignore if */
4240
- if (process.env.NODE_ENV !== "production" && !r._e.active) throw Error("Pinia destroyed");
4241
- let c = { deep: !0 };
4242
- /* istanbul ignore else */
4243
- process.env.NODE_ENV !== "production" && (c.onTrigger = (e) => {
4244
- /* istanbul ignore else */
4245
- l ? p = e : l == 0 && !C._hotUpdating && (Array.isArray(p) ? p.push(e) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
4246
- });
4247
- let l, u, d = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Set(), p, m = r.state.value[e];
4248
- !a && !m && (process.env.NODE_ENV === "production" || !i) && (r.state.value[e] = {});
4249
- let h = /* @__PURE__ */ ref({}), g;
4250
- function _(t) {
4251
- let n;
4252
- l = u = !1, process.env.NODE_ENV !== "production" && (p = []), typeof t == "function" ? (t(r.state.value[e]), n = {
4253
- type: MutationType.patchFunction,
4254
- storeId: e,
4255
- events: p
4256
- }) : (mergeReactiveObjects(r.state.value[e], t), n = {
4257
- type: MutationType.patchObject,
4258
- payload: t,
4259
- storeId: e,
4260
- events: p
4261
- });
4262
- let i = g = Symbol();
4263
- nextTick().then(() => {
4264
- g === i && (l = !0);
4265
- }), u = !0, triggerSubscriptions(d, n, r.state.value[e]);
4266
- }
4267
- let v = a ? function() {
4268
- let { state: e } = n, t = e ? e() : {};
4269
- this.$patch((e) => {
4270
- assign(e, t);
4271
- });
4272
- } : process.env.NODE_ENV === "production" ? noop : () => {
4273
- throw Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
4274
- };
4275
- function y() {
4276
- o.stop(), d.clear(), f.clear(), r._s.delete(e);
4277
- }
4278
- let b = (t, n = "") => {
4279
- if (ACTION_MARKER in t) return t[ACTION_NAME] = n, t;
4280
- let i = function() {
4281
- setActivePinia(r);
4282
- let n = Array.from(arguments), a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set();
4283
- function s(e) {
4284
- a.add(e);
4285
- }
4286
- function c(e) {
4287
- o.add(e);
4288
- }
4289
- triggerSubscriptions(f, {
4290
- args: n,
4291
- name: i[ACTION_NAME],
4292
- store: C,
4293
- after: s,
4294
- onError: c
4295
- });
4296
- let l;
4297
- try {
4298
- l = t.apply(this && this.$id === e ? this : C, n);
4299
- } catch (e) {
4300
- throw triggerSubscriptions(o, e), e;
4301
- }
4302
- return l instanceof Promise ? l.then((e) => (triggerSubscriptions(a, e), e)).catch((e) => (triggerSubscriptions(o, e), Promise.reject(e))) : (triggerSubscriptions(a, l), l);
4303
- };
4304
- return i[ACTION_MARKER] = !0, i[ACTION_NAME] = n, i;
4305
- }, x = /* @__PURE__ */ markRaw({
4306
- actions: {},
4307
- getters: {},
4308
- state: [],
4309
- hotState: h
4310
- }), S = {
4311
- _p: r,
4312
- $id: e,
4313
- $onAction: addSubscription.bind(null, f),
4314
- $patch: _,
4315
- $reset: v,
4316
- $subscribe(t, n = {}) {
4317
- let i = addSubscription(d, t, n.detached, () => a()), a = o.run(() => watch(() => r.state.value[e], (r) => {
4318
- (n.flush === "sync" ? u : l) && t({
4319
- storeId: e,
4320
- type: MutationType.direct,
4321
- events: p
4322
- }, r);
4323
- }, assign({}, c, n)));
4324
- return i;
4325
- },
4326
- $dispose: y
4327
- }, C = /* @__PURE__ */ reactive(process.env.NODE_ENV !== "production" || (process.env.NODE_ENV !== "production" || typeof __VUE_PROD_DEVTOOLS__ < "u" && __VUE_PROD_DEVTOOLS__) && process.env.NODE_ENV !== "test" && IS_CLIENT ? assign({
4328
- _hmrPayload: x,
4329
- _customProperties: markRaw(/* @__PURE__ */ new Set())
4330
- }, S) : S);
4331
- r._s.set(e, C);
4332
- let w = (r._a && r._a.runWithContext || fallbackRunWithContext)(() => r._e.run(() => (o = effectScope()).run(() => t({ action: b }))));
4333
- for (let t in w) {
4334
- let o = w[t];
4335
- /* @__PURE__ */ isRef(o) && !isComputed(o) || /* @__PURE__ */ isReactive(o) ? (process.env.NODE_ENV !== "production" && i ? h.value[t] = /* @__PURE__ */ toRef(w, t) : a || (m && shouldHydrate(o) && (/* @__PURE__ */ isRef(o) ? o.value = m[t] : mergeReactiveObjects(o, m[t])), r.state.value[e][t] = o), process.env.NODE_ENV !== "production" && x.state.push(t)) : typeof o == "function" ? (w[t] = process.env.NODE_ENV !== "production" && i ? o : b(o, t), process.env.NODE_ENV !== "production" && (x.actions[t] = o), s.actions[t] = o) : process.env.NODE_ENV !== "production" && isComputed(o) && (x.getters[t] = a ? n.getters[t] : o, IS_CLIENT && (w._getters ||= markRaw([])).push(t));
4336
- }
4337
- if (assign(C, w), assign(/* @__PURE__ */ toRaw(C), w), Object.defineProperty(C, "$state", {
4338
- get: () => process.env.NODE_ENV !== "production" && i ? h.value : r.state.value[e],
4339
- set: (e) => {
4340
- /* istanbul ignore if */
4341
- if (process.env.NODE_ENV !== "production" && i) throw Error("cannot set hotState");
4342
- _((t) => {
4343
- assign(t, e);
4344
- });
4345
- }
4346
- }), process.env.NODE_ENV !== "production" && (C._hotUpdate = markRaw((t) => {
4347
- C._hotUpdating = !0, t._hmrPayload.state.forEach((e) => {
4348
- if (e in C.$state) {
4349
- let n = t.$state[e], r = C.$state[e];
4350
- typeof n == "object" && isPlainObject(n) && isPlainObject(r) ? patchObject(n, r) : t.$state[e] = r;
4351
- }
4352
- C[e] = /* @__PURE__ */ toRef(t.$state, e);
4353
- }), Object.keys(C.$state).forEach((e) => {
4354
- e in t.$state || delete C[e];
4355
- }), l = !1, u = !1, r.state.value[e] = /* @__PURE__ */ toRef(t._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
4356
- l = !0;
4357
- });
4358
- for (let e in t._hmrPayload.actions) {
4359
- let n = t[e];
4360
- C[e] = b(n, e);
4361
- }
4362
- for (let e in t._hmrPayload.getters) {
4363
- let n = t._hmrPayload.getters[e];
4364
- C[e] = a ? computed(() => (setActivePinia(r), n.call(C, C))) : n;
4365
- }
4366
- Object.keys(C._hmrPayload.getters).forEach((e) => {
4367
- e in t._hmrPayload.getters || delete C[e];
4368
- }), Object.keys(C._hmrPayload.actions).forEach((e) => {
4369
- e in t._hmrPayload.actions || delete C[e];
4370
- }), C._hmrPayload = t._hmrPayload, C._getters = t._getters, C._hotUpdating = !1;
4371
- })), (process.env.NODE_ENV !== "production" || typeof __VUE_PROD_DEVTOOLS__ < "u" && __VUE_PROD_DEVTOOLS__) && process.env.NODE_ENV !== "test" && IS_CLIENT) {
4372
- let e = {
4373
- writable: !0,
4374
- configurable: !0,
4375
- enumerable: !1
4376
- };
4377
- [
4378
- "_p",
4379
- "_hmrPayload",
4380
- "_getters",
4381
- "_customProperties"
4382
- ].forEach((t) => {
4383
- Object.defineProperty(C, t, assign({ value: C[t] }, e));
4384
- });
4385
- }
4386
- return r._p.forEach((e) => {
4387
- /* istanbul ignore else */
4388
- if ((process.env.NODE_ENV !== "production" || typeof __VUE_PROD_DEVTOOLS__ < "u" && __VUE_PROD_DEVTOOLS__) && process.env.NODE_ENV !== "test" && IS_CLIENT) {
4389
- let t = o.run(() => e({
4390
- store: C,
4391
- app: r._a,
4392
- pinia: r,
4393
- options: s
4394
- }));
4395
- Object.keys(t || {}).forEach((e) => C._customProperties.add(e)), assign(C, t);
4396
- } else assign(C, o.run(() => e({
4397
- store: C,
4398
- app: r._a,
4399
- pinia: r,
4400
- options: s
4401
- })));
4402
- }), process.env.NODE_ENV !== "production" && C.$state && typeof C.$state == "object" && typeof C.$state.constructor == "function" && !C.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
4403
- state: () => new MyClass()
4404
- Found in store "${C.$id}".`), m && a && n.hydrate && n.hydrate(C.$state, m), l = !0, u = !0, C;
4405
- }
4406
- function defineStore(e, t, n) {
4407
- let r, i = typeof t == "function";
4408
- r = i ? n : t;
4409
- function a(n, o) {
4410
- let s = hasInjectionContext();
4411
- if (n = (process.env.NODE_ENV === "test" && activePinia && activePinia._testing ? null : n) || (s ? inject(piniaSymbol, null) : null), n && setActivePinia(n), process.env.NODE_ENV !== "production" && !activePinia) throw Error("[🍍]: \"getActivePinia()\" was called but there was no active Pinia. Are you trying to use a store before calling \"app.use(pinia)\"?\nSee https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.\nThis will fail in production.");
4412
- n = activePinia, n._s.has(e) || (i ? createSetupStore(e, t, r, n) : createOptionsStore(e, r, n), process.env.NODE_ENV !== "production" && (a._pinia = n));
4413
- let c = n._s.get(e);
4414
- if (process.env.NODE_ENV !== "production" && o) {
4415
- let a = "__hot:" + e, s = i ? createSetupStore(a, t, r, n, !0) : createOptionsStore(a, assign({}, r), n, !0);
4416
- o._hotUpdate(s), delete n.state.value[a], n._s.delete(a);
4417
- }
4418
- if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
4419
- let t = getCurrentInstance();
4420
- if (t && t.proxy && !o) {
4421
- let n = t.proxy, r = "_pStores" in n ? n._pStores : n._pStores = {};
4422
- r[e] = c;
4423
- }
4424
- }
4425
- return c;
4426
- }
4427
- return a.$id = e, a;
4428
- }
4429
135
  var ConfigPointer = class {
4430
- constructor(e, t) {
4431
- this.pluginName = e, this.config = t, this.key = Symbol.for(`config:${e}`);
136
+ constructor(e, t, n) {
137
+ this.pluginName = e, this.config = t, this.configName = n, this.key = Symbol.for(`config:${e}`);
4432
138
  }
4433
139
  key;
4434
140
  };
4435
- const appConfig = new ConfigPointer("core", {
141
+ const appConfig = useGlobalVar(new ConfigPointer("core", {
4436
142
  recordHistory: {
4437
143
  type: "switch",
4438
144
  defaultValue: !0,
@@ -4467,35 +173,77 @@ const appConfig = new ConfigPointer("core", {
4467
173
  type: "switch",
4468
174
  defaultValue: !1,
4469
175
  info: "简化标题(实验)"
4470
- }
4471
- }), useConfig = defineStore("config", (e) => {
4472
- let t = /* @__PURE__ */ shallowReactive(/* @__PURE__ */ new Map()), n = e.action((e) => {
4473
- let n = t.get(e.key);
4474
- if (!n) throw Error(`not found config by plugin "${e.pluginName}"`);
4475
- return n.value;
4476
- }, "load"), r = usePreferredDark(), a = computed(() => {
4477
- if (!o(appConfig)) return r.value;
4478
- switch (n(appConfig).value.darkMode) {
176
+ },
177
+ githubToken: {
178
+ type: "string",
179
+ defaultValue: "",
180
+ info: "github的token",
181
+ placeholder: "仅用于解除api访问限制"
182
+ }
183
+ }, "核心"), "core/plugin/config"), useConfig = defineStore("config", (e) => {
184
+ let n = shallowReactive(/* @__PURE__ */ new Map()), i = e.action((e) => {
185
+ let t = n.get(e.key);
186
+ if (!t) throw Error(`not found config by plugin "${e.pluginName}"`);
187
+ return t.value;
188
+ }, "load"), a = usePreferredDark(), o = computed(() => {
189
+ if (!s(appConfig)) return a.value;
190
+ switch (i(appConfig).value.darkMode) {
4479
191
  case "light": return !1;
4480
192
  case "dark": return !0;
4481
- case "system": return r.value;
193
+ case "system": return a.value;
4482
194
  default: return !1;
4483
195
  }
4484
- }), o = e.action((e) => t.has(e.key), "isExistConfig");
196
+ }), s = e.action((e) => n.has(e.key), "isExistConfig");
4485
197
  return {
4486
- isDark: a,
4487
- form: t,
4488
- $load: n,
4489
- $isExistConfig: o,
198
+ isDark: o,
199
+ form: n,
200
+ $load: i,
201
+ $isExistConfig: s,
4490
202
  $resignerConfig: e.action((e) => {
4491
- let t = window.$api.useNativeStore, n = useConfig(), r = t(e.pluginName, "config", fromPairs(Object.entries(e.config).map(([e, t]) => [e, t.defaultValue])));
203
+ let n = useConfig(), r = useNativeStore(e.pluginName, "config", fromPairs(Object.entries(e.config).map(([e, t]) => [e, t.defaultValue])));
4492
204
  n.form.set(e.key, {
4493
205
  form: e.config,
4494
206
  value: r
4495
207
  });
4496
208
  }, "resignerConfig")
4497
209
  };
4498
- });
4499
- export { ConfigPointer, appConfig, decodePluginMeta, definePlugin, useConfig };
210
+ }), declareDepType = (e) => Symbol.for(`expose:${e}`), require = (e) => pluginExposes.get(e), pluginExposes = /* @__PURE__ */ new Map(), Global = useGlobalVar(new class {
211
+ share = shallowReactive(SourcedKeyMap.create());
212
+ shareToken = shallowReactive(SourcedKeyMap.create());
213
+ userActions = shallowReactive(SourcedKeyMap.create());
214
+ subscribes = shallowReactive(SourcedKeyMap.create());
215
+ globalNodes = shallowReactive([]);
216
+ tabbar = shallowReactive(/* @__PURE__ */ new Map());
217
+ addTabbar(e, ...t) {
218
+ let n = this.tabbar.get(e) ?? [];
219
+ this.tabbar.set(e, n.concat(t));
220
+ }
221
+ categories = shallowReactive(/* @__PURE__ */ new Map());
222
+ addCategories(e, ...t) {
223
+ let n = this.categories.get(e) ?? [];
224
+ this.categories.set(e, n.concat(t));
225
+ }
226
+ barcode = shallowReactive(/* @__PURE__ */ new Map());
227
+ addBarcode(e, ...t) {
228
+ let n = this.barcode.get(e) ?? [];
229
+ this.barcode.set(e, n.concat(t));
230
+ }
231
+ levelboard = shallowReactive(/* @__PURE__ */ new Map());
232
+ addLevelboard(e, ...t) {
233
+ let n = this.levelboard.get(e) ?? [];
234
+ this.levelboard.set(e, n.concat(t));
235
+ }
236
+ topButton = shallowReactive(/* @__PURE__ */ new Map());
237
+ addTopButton(e, ...t) {
238
+ let n = this.topButton.get(e) ?? [];
239
+ this.topButton.set(e, n.concat(t));
240
+ }
241
+ mainLists = shallowReactive(/* @__PURE__ */ new Map());
242
+ addMainList(e, ...t) {
243
+ let n = this.mainLists.get(e) ?? [];
244
+ this.mainLists.set(e, n.concat(t));
245
+ }
246
+ }(), "core/global");
247
+ export { ConfigPointer, Global, appConfig, declareDepType, decodePluginMeta, definePlugin, pluginExposes, require, useConfig };
4500
248
 
4501
249
  //# sourceMappingURL=index.js.map