@delta-comic/model 0.0.0-semantically-released

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 ADDED
@@ -0,0 +1,4077 @@
1
+ var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), __exportAll$1 = (e, n) => {
2
+ let r = {};
3
+ for (var i in e) __defProp$1(r, i, {
4
+ get: e[i],
5
+ enumerable: !0
6
+ });
7
+ return n || __defProp$1(r, Symbol.toStringTag, { value: "Module" }), r;
8
+ }, __copyProps = (e, i, o, s) => {
9
+ if (i && typeof i == "object" || typeof i == "function") for (var c = __getOwnPropNames(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !__hasOwnProp.call(e, d) && d !== o && __defProp$1(e, d, {
10
+ get: ((e) => i[e]).bind(null, d),
11
+ enumerable: !(s = __getOwnPropDesc(i, d)) || s.enumerable
12
+ });
13
+ return e;
14
+ }, __toESM = (n, r, a) => (a = n == null ? {} : __create(__getProtoOf(n)), __copyProps(r || !n || !n.__esModule ? __defProp$1(a, "default", {
15
+ value: n,
16
+ enumerable: !0
17
+ }) : a, n)), useGlobalVar = (e, t) => (window.$api.__core_lib__ ??= {})[t] ??= e;
18
+ function isTypedArray$2(e) {
19
+ return ArrayBuffer.isView(e) && !(e instanceof DataView);
20
+ }
21
+ function getTag(e) {
22
+ return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
23
+ }
24
+ function isError(e) {
25
+ return e instanceof Error;
26
+ }
27
+ function isLength(e) {
28
+ return Number.isSafeInteger(e) && e >= 0;
29
+ }
30
+ function isString$3(e) {
31
+ return typeof e == "string";
32
+ }
33
+ function isArrayLike(e) {
34
+ return e != null && typeof e != "function" && isLength(e.length);
35
+ }
36
+ function isArguments(e) {
37
+ return typeof e == "object" && !!e && getTag(e) === "[object Arguments]";
38
+ }
39
+ function isString$2(e) {
40
+ return typeof e == "string" || e instanceof String;
41
+ }
42
+ function isPrototype(e) {
43
+ let t = e?.constructor;
44
+ return e === (typeof t == "function" ? t.prototype : Object.prototype);
45
+ }
46
+ function isTypedArray$1(e) {
47
+ return isTypedArray$2(e);
48
+ }
49
+ function isEmpty(e) {
50
+ if (e == null) return !0;
51
+ if (isArrayLike(e)) return typeof e.splice != "function" && typeof e != "string" && (typeof Buffer > "u" || !Buffer.isBuffer(e)) && !isTypedArray$1(e) && !isArguments(e) ? !1 : e.length === 0;
52
+ if (typeof e == "object") {
53
+ if (e instanceof Map || e instanceof Set) return e.size === 0;
54
+ let t = Object.keys(e);
55
+ return isPrototype(e) ? t.filter((e) => e !== "constructor").length === 0 : t.length === 0;
56
+ }
57
+ return !0;
58
+ }
59
+ function mitt_default$1(e) {
60
+ return {
61
+ all: e ||= /* @__PURE__ */ new Map(),
62
+ on: function(t, n) {
63
+ var r = e.get(t);
64
+ r ? r.push(n) : e.set(t, [n]);
65
+ },
66
+ off: function(t, n) {
67
+ var r = e.get(t);
68
+ r && (n ? r.splice(r.indexOf(n) >>> 0, 1) : e.set(t, []));
69
+ },
70
+ emit: function(t, n) {
71
+ var r = e.get(t);
72
+ r && r.slice().map(function(e) {
73
+ e(n);
74
+ }), (r = e.get("*")) && r.slice().map(function(e) {
75
+ e(t, n);
76
+ });
77
+ }
78
+ };
79
+ }
80
+ /**
81
+ * @vue/shared v3.5.27
82
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
83
+ * @license MIT
84
+ **/
85
+ /* @__NO_SIDE_EFFECTS__ */
86
+ function makeMap(e) {
87
+ let t = /* @__PURE__ */ Object.create(null);
88
+ for (let n of e.split(",")) t[n] = 1;
89
+ return (e) => e in t;
90
+ }
91
+ var EMPTY_OBJ = process.env.NODE_ENV === "production" ? {} : Object.freeze({});
92
+ process.env.NODE_ENV === "production" || Object.freeze([]);
93
+ var NOOP = () => {}, isOn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), extend$1 = Object.assign, remove = (e, t) => {
94
+ let n = e.indexOf(t);
95
+ n > -1 && e.splice(n, 1);
96
+ }, hasOwnProperty$2 = Object.prototype.hasOwnProperty, hasOwn = (e, t) => hasOwnProperty$2.call(e, t), isArray$1 = Array.isArray, isMap = (e) => toTypeString(e) === "[object Map]", isSet = (e) => toTypeString(e) === "[object Set]", isFunction$2 = (e) => typeof e == "function", isString$1 = (e) => typeof e == "string", isSymbol = (e) => typeof e == "symbol", isObject$1 = (e) => typeof e == "object" && !!e, isPromise = (e) => (isObject$1(e) || isFunction$2(e)) && isFunction$2(e.then) && isFunction$2(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$1(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, capitalize = ((e) => {
97
+ let t = /* @__PURE__ */ Object.create(null);
98
+ return ((n) => t[n] || (t[n] = e(n)));
99
+ })((e) => e.charAt(0).toUpperCase() + e.slice(1)), hasChanged = (e, t) => !Object.is(e, t), def = (e, t, n, r = !1) => {
100
+ Object.defineProperty(e, t, {
101
+ configurable: !0,
102
+ enumerable: !1,
103
+ writable: r,
104
+ value: n
105
+ });
106
+ }, _globalThis, getGlobalThis = () => _globalThis ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
107
+ function normalizeStyle(e) {
108
+ if (isArray$1(e)) {
109
+ let t = {};
110
+ for (let n = 0; n < e.length; n++) {
111
+ let r = e[n], i = isString$1(r) ? parseStringStyle(r) : normalizeStyle(r);
112
+ if (i) for (let e in i) t[e] = i[e];
113
+ }
114
+ return t;
115
+ } else if (isString$1(e) || isObject$1(e)) return e;
116
+ }
117
+ var listDelimiterRE = /;(?![^(]*\))/g, propertyDelimiterRE = /:([^]+)/, styleCommentRE = /\/\*[^]*?\*\//g;
118
+ function parseStringStyle(e) {
119
+ let t = {};
120
+ return e.replace(styleCommentRE, "").split(listDelimiterRE).forEach((e) => {
121
+ if (e) {
122
+ let n = e.split(propertyDelimiterRE);
123
+ n.length > 1 && (t[n[0].trim()] = n[1].trim());
124
+ }
125
+ }), t;
126
+ }
127
+ function normalizeClass(e) {
128
+ let t = "";
129
+ if (isString$1(e)) t = e;
130
+ else if (isArray$1(e)) for (let n = 0; n < e.length; n++) {
131
+ let r = normalizeClass(e[n]);
132
+ r && (t += r + " ");
133
+ }
134
+ else if (isObject$1(e)) for (let n in e) e[n] && (t += n + " ");
135
+ return t.trim();
136
+ }
137
+ /**
138
+ * @vue/reactivity v3.5.27
139
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
140
+ * @license MIT
141
+ **/
142
+ function warn$2(e, ...t) {
143
+ console.warn(`[Vue warn] ${e}`, ...t);
144
+ }
145
+ var activeEffectScope;
146
+ function getCurrentScope() {
147
+ return activeEffectScope;
148
+ }
149
+ var activeSub, pausedQueueEffects = /* @__PURE__ */ new WeakSet(), ReactiveEffect = class {
150
+ constructor(e) {
151
+ 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);
152
+ }
153
+ pause() {
154
+ this.flags |= 64;
155
+ }
156
+ resume() {
157
+ this.flags & 64 && (this.flags &= -65, pausedQueueEffects.has(this) && (pausedQueueEffects.delete(this), this.trigger()));
158
+ }
159
+ notify() {
160
+ this.flags & 2 && !(this.flags & 32) || this.flags & 8 || batch(this);
161
+ }
162
+ run() {
163
+ if (!(this.flags & 1)) return this.fn();
164
+ this.flags |= 2, cleanupEffect(this), prepareDeps(this);
165
+ let e = activeSub, t = shouldTrack;
166
+ activeSub = this, shouldTrack = !0;
167
+ try {
168
+ return this.fn();
169
+ } finally {
170
+ 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;
171
+ }
172
+ }
173
+ stop() {
174
+ if (this.flags & 1) {
175
+ for (let e = this.deps; e; e = e.nextDep) removeSub(e);
176
+ this.deps = this.depsTail = void 0, cleanupEffect(this), this.onStop && this.onStop(), this.flags &= -2;
177
+ }
178
+ }
179
+ trigger() {
180
+ this.flags & 64 ? pausedQueueEffects.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
181
+ }
182
+ runIfDirty() {
183
+ isDirty(this) && this.run();
184
+ }
185
+ get dirty() {
186
+ return isDirty(this);
187
+ }
188
+ }, batchDepth = 0, batchedSub, batchedComputed;
189
+ function batch(e, t = !1) {
190
+ if (e.flags |= 8, t) {
191
+ e.next = batchedComputed, batchedComputed = e;
192
+ return;
193
+ }
194
+ e.next = batchedSub, batchedSub = e;
195
+ }
196
+ function startBatch() {
197
+ batchDepth++;
198
+ }
199
+ function endBatch() {
200
+ if (--batchDepth > 0) return;
201
+ if (batchedComputed) {
202
+ let e = batchedComputed;
203
+ for (batchedComputed = void 0; e;) {
204
+ let t = e.next;
205
+ e.next = void 0, e.flags &= -9, e = t;
206
+ }
207
+ }
208
+ let e;
209
+ for (; batchedSub;) {
210
+ let t = batchedSub;
211
+ for (batchedSub = void 0; t;) {
212
+ let n = t.next;
213
+ if (t.next = void 0, t.flags &= -9, t.flags & 1) try {
214
+ t.trigger();
215
+ } catch (t) {
216
+ e ||= t;
217
+ }
218
+ t = n;
219
+ }
220
+ }
221
+ if (e) throw e;
222
+ }
223
+ function prepareDeps(e) {
224
+ for (let t = e.deps; t; t = t.nextDep) t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
225
+ }
226
+ function cleanupDeps(e) {
227
+ let t, n = e.depsTail, r = n;
228
+ for (; r;) {
229
+ let e = r.prevDep;
230
+ r.version === -1 ? (r === n && (n = e), removeSub(r), removeDep(r)) : t = r, r.dep.activeLink = r.prevActiveLink, r.prevActiveLink = void 0, r = e;
231
+ }
232
+ e.deps = t, e.depsTail = n;
233
+ }
234
+ function isDirty(e) {
235
+ 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;
236
+ return !!e._dirty;
237
+ }
238
+ function refreshComputed(e) {
239
+ 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;
240
+ e.flags |= 2;
241
+ let t = e.dep, n = activeSub, r = shouldTrack;
242
+ activeSub = e, shouldTrack = !0;
243
+ try {
244
+ prepareDeps(e);
245
+ let n = e.fn(e._value);
246
+ (t.version === 0 || hasChanged(n, e._value)) && (e.flags |= 128, e._value = n, t.version++);
247
+ } catch (e) {
248
+ throw t.version++, e;
249
+ } finally {
250
+ activeSub = n, shouldTrack = r, cleanupDeps(e), e.flags &= -3;
251
+ }
252
+ }
253
+ function removeSub(e, t = !1) {
254
+ let { dep: n, prevSub: r, nextSub: i } = e;
255
+ 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)) {
256
+ n.computed.flags &= -5;
257
+ for (let e = n.computed.deps; e; e = e.nextDep) removeSub(e, !0);
258
+ }
259
+ !t && !--n.sc && n.map && n.map.delete(n.key);
260
+ }
261
+ function removeDep(e) {
262
+ let { prevDep: t, nextDep: n } = e;
263
+ t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
264
+ }
265
+ var shouldTrack = !0, trackStack = [];
266
+ function pauseTracking() {
267
+ trackStack.push(shouldTrack), shouldTrack = !1;
268
+ }
269
+ function resetTracking() {
270
+ let e = trackStack.pop();
271
+ shouldTrack = e === void 0 ? !0 : e;
272
+ }
273
+ function cleanupEffect(e) {
274
+ let { cleanup: t } = e;
275
+ if (e.cleanup = void 0, t) {
276
+ let e = activeSub;
277
+ activeSub = void 0;
278
+ try {
279
+ t();
280
+ } finally {
281
+ activeSub = e;
282
+ }
283
+ }
284
+ }
285
+ var globalVersion = 0, Link = class {
286
+ constructor(e, t) {
287
+ this.sub = e, this.dep = t, this.version = t.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
288
+ }
289
+ }, Dep = class {
290
+ constructor(e) {
291
+ 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);
292
+ }
293
+ track(e) {
294
+ if (!activeSub || !shouldTrack || activeSub === this.computed) return;
295
+ let t = this.activeLink;
296
+ 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);
297
+ else if (t.version === -1 && (t.version = this.version, t.nextDep)) {
298
+ let e = t.nextDep;
299
+ 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);
300
+ }
301
+ return process.env.NODE_ENV !== "production" && activeSub.onTrack && activeSub.onTrack(extend$1({ effect: activeSub }, e)), t;
302
+ }
303
+ trigger(e) {
304
+ this.version++, globalVersion++, this.notify(e);
305
+ }
306
+ notify(e) {
307
+ startBatch();
308
+ try {
309
+ 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));
310
+ for (let e = this.subs; e; e = e.prevSub) e.sub.notify() && e.sub.dep.notify();
311
+ } finally {
312
+ endBatch();
313
+ }
314
+ }
315
+ };
316
+ function addSub(e) {
317
+ if (e.dep.sc++, e.sub.flags & 4) {
318
+ let t = e.dep.computed;
319
+ if (t && !e.dep.subs) {
320
+ t.flags |= 20;
321
+ for (let e = t.deps; e; e = e.nextDep) addSub(e);
322
+ }
323
+ let n = e.dep.subs;
324
+ 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;
325
+ }
326
+ }
327
+ 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");
328
+ function track(e, t, n) {
329
+ if (shouldTrack && activeSub) {
330
+ let r = targetMap.get(e);
331
+ r || targetMap.set(e, r = /* @__PURE__ */ new Map());
332
+ let i = r.get(n);
333
+ i || (r.set(n, i = new Dep()), i.map = r, i.key = n), process.env.NODE_ENV === "production" ? i.track() : i.track({
334
+ target: e,
335
+ type: t,
336
+ key: n
337
+ });
338
+ }
339
+ }
340
+ function trigger(e, t, n, r, i, a) {
341
+ let o = targetMap.get(e);
342
+ if (!o) {
343
+ globalVersion++;
344
+ return;
345
+ }
346
+ let s = (o) => {
347
+ o && (process.env.NODE_ENV === "production" ? o.trigger() : o.trigger({
348
+ target: e,
349
+ type: t,
350
+ key: n,
351
+ newValue: r,
352
+ oldValue: i,
353
+ oldTarget: a
354
+ }));
355
+ };
356
+ if (startBatch(), t === "clear") o.forEach(s);
357
+ else {
358
+ let i = isArray$1(e), a = i && isIntegerKey(n);
359
+ if (i && n === "length") {
360
+ let e = Number(r);
361
+ o.forEach((t, n) => {
362
+ (n === "length" || n === ARRAY_ITERATE_KEY || !isSymbol(n) && n >= e) && s(t);
363
+ });
364
+ } else switch ((n !== void 0 || o.has(void 0)) && s(o.get(n)), a && s(o.get(ARRAY_ITERATE_KEY)), t) {
365
+ case "add":
366
+ i ? a && s(o.get("length")) : (s(o.get(ITERATE_KEY)), isMap(e) && s(o.get(MAP_KEY_ITERATE_KEY)));
367
+ break;
368
+ case "delete":
369
+ i || (s(o.get(ITERATE_KEY)), isMap(e) && s(o.get(MAP_KEY_ITERATE_KEY)));
370
+ break;
371
+ case "set":
372
+ isMap(e) && s(o.get(ITERATE_KEY));
373
+ break;
374
+ }
375
+ }
376
+ endBatch();
377
+ }
378
+ function reactiveReadArray(e) {
379
+ let t = /* @__PURE__ */ toRaw(e);
380
+ return t === e ? t : (track(t, "iterate", ARRAY_ITERATE_KEY), /* @__PURE__ */ isShallow(e) ? t : t.map(toReactive));
381
+ }
382
+ function shallowReadArray(e) {
383
+ return track(e = /* @__PURE__ */ toRaw(e), "iterate", ARRAY_ITERATE_KEY), e;
384
+ }
385
+ function toWrapped(e, t) {
386
+ return /* @__PURE__ */ isReadonly(e) ? toReadonly(/* @__PURE__ */ isReactive(e) ? toReactive(t) : t) : toReactive(t);
387
+ }
388
+ var arrayInstrumentations = {
389
+ __proto__: null,
390
+ [Symbol.iterator]() {
391
+ return iterator$1(this, Symbol.iterator, (e) => toWrapped(this, e));
392
+ },
393
+ concat(...e) {
394
+ return reactiveReadArray(this).concat(...e.map((e) => isArray$1(e) ? reactiveReadArray(e) : e));
395
+ },
396
+ entries() {
397
+ return iterator$1(this, "entries", (e) => (e[1] = toWrapped(this, e[1]), e));
398
+ },
399
+ every(e, t) {
400
+ return apply(this, "every", e, t, void 0, arguments);
401
+ },
402
+ filter(e, t) {
403
+ return apply(this, "filter", e, t, (e) => e.map((e) => toWrapped(this, e)), arguments);
404
+ },
405
+ find(e, t) {
406
+ return apply(this, "find", e, t, (e) => toWrapped(this, e), arguments);
407
+ },
408
+ findIndex(e, t) {
409
+ return apply(this, "findIndex", e, t, void 0, arguments);
410
+ },
411
+ findLast(e, t) {
412
+ return apply(this, "findLast", e, t, (e) => toWrapped(this, e), arguments);
413
+ },
414
+ findLastIndex(e, t) {
415
+ return apply(this, "findLastIndex", e, t, void 0, arguments);
416
+ },
417
+ forEach(e, t) {
418
+ return apply(this, "forEach", e, t, void 0, arguments);
419
+ },
420
+ includes(...e) {
421
+ return searchProxy(this, "includes", e);
422
+ },
423
+ indexOf(...e) {
424
+ return searchProxy(this, "indexOf", e);
425
+ },
426
+ join(e) {
427
+ return reactiveReadArray(this).join(e);
428
+ },
429
+ lastIndexOf(...e) {
430
+ return searchProxy(this, "lastIndexOf", e);
431
+ },
432
+ map(e, t) {
433
+ return apply(this, "map", e, t, void 0, arguments);
434
+ },
435
+ pop() {
436
+ return noTracking(this, "pop");
437
+ },
438
+ push(...e) {
439
+ return noTracking(this, "push", e);
440
+ },
441
+ reduce(e, ...t) {
442
+ return reduce(this, "reduce", e, t);
443
+ },
444
+ reduceRight(e, ...t) {
445
+ return reduce(this, "reduceRight", e, t);
446
+ },
447
+ shift() {
448
+ return noTracking(this, "shift");
449
+ },
450
+ some(e, t) {
451
+ return apply(this, "some", e, t, void 0, arguments);
452
+ },
453
+ splice(...e) {
454
+ return noTracking(this, "splice", e);
455
+ },
456
+ toReversed() {
457
+ return reactiveReadArray(this).toReversed();
458
+ },
459
+ toSorted(e) {
460
+ return reactiveReadArray(this).toSorted(e);
461
+ },
462
+ toSpliced(...e) {
463
+ return reactiveReadArray(this).toSpliced(...e);
464
+ },
465
+ unshift(...e) {
466
+ return noTracking(this, "unshift", e);
467
+ },
468
+ values() {
469
+ return iterator$1(this, "values", (e) => toWrapped(this, e));
470
+ }
471
+ };
472
+ function iterator$1(e, t, n) {
473
+ let r = shallowReadArray(e), i = r[t]();
474
+ return r !== e && !/* @__PURE__ */ isShallow(e) && (i._next = i.next, i.next = () => {
475
+ let e = i._next();
476
+ return e.done || (e.value = n(e.value)), e;
477
+ }), i;
478
+ }
479
+ var arrayProto = Array.prototype;
480
+ function apply(e, t, n, r, i, a) {
481
+ let o = shallowReadArray(e), s = o !== e && !/* @__PURE__ */ isShallow(e), c = o[t];
482
+ if (c !== arrayProto[t]) {
483
+ let t = c.apply(e, a);
484
+ return s ? toReactive(t) : t;
485
+ }
486
+ let l = n;
487
+ o !== e && (s ? l = function(t, r) {
488
+ return n.call(this, toWrapped(e, t), r, e);
489
+ } : n.length > 2 && (l = function(t, r) {
490
+ return n.call(this, t, r, e);
491
+ }));
492
+ let u = c.call(o, l, r);
493
+ return s && i ? i(u) : u;
494
+ }
495
+ function reduce(e, t, n, r) {
496
+ let i = shallowReadArray(e), a = n;
497
+ return i !== e && (/* @__PURE__ */ isShallow(e) ? n.length > 3 && (a = function(t, r, i) {
498
+ return n.call(this, t, r, i, e);
499
+ }) : a = function(t, r, i) {
500
+ return n.call(this, t, toWrapped(e, r), i, e);
501
+ }), i[t](a, ...r);
502
+ }
503
+ function searchProxy(e, t, n) {
504
+ let r = /* @__PURE__ */ toRaw(e);
505
+ track(r, "iterate", ARRAY_ITERATE_KEY);
506
+ let i = r[t](...n);
507
+ return (i === -1 || i === !1) && /* @__PURE__ */ isProxy(n[0]) ? (n[0] = /* @__PURE__ */ toRaw(n[0]), r[t](...n)) : i;
508
+ }
509
+ function noTracking(e, t, n = []) {
510
+ pauseTracking(), startBatch();
511
+ let r = (/* @__PURE__ */ toRaw(e))[t].apply(e, n);
512
+ return endBatch(), resetTracking(), r;
513
+ }
514
+ 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));
515
+ function hasOwnProperty$1(e) {
516
+ isSymbol(e) || (e = String(e));
517
+ let t = /* @__PURE__ */ toRaw(this);
518
+ return track(t, "has", e), t.hasOwnProperty(e);
519
+ }
520
+ var BaseReactiveHandler = class {
521
+ constructor(e = !1, t = !1) {
522
+ this._isReadonly = e, this._isShallow = t;
523
+ }
524
+ get(e, t, n) {
525
+ if (t === "__v_skip") return e.__v_skip;
526
+ let r = this._isReadonly, i = this._isShallow;
527
+ if (t === "__v_isReactive") return !r;
528
+ if (t === "__v_isReadonly") return r;
529
+ if (t === "__v_isShallow") return i;
530
+ if (t === "__v_raw") return n === (r ? i ? shallowReadonlyMap : readonlyMap : i ? shallowReactiveMap : reactiveMap).get(e) || Object.getPrototypeOf(e) === Object.getPrototypeOf(n) ? e : void 0;
531
+ let a = isArray$1(e);
532
+ if (!r) {
533
+ let e;
534
+ if (a && (e = arrayInstrumentations[t])) return e;
535
+ if (t === "hasOwnProperty") return hasOwnProperty$1;
536
+ }
537
+ let o = Reflect.get(e, t, /* @__PURE__ */ isRef(e) ? e : n);
538
+ if ((isSymbol(t) ? builtInSymbols.has(t) : isNonTrackableKeys(t)) || (r || track(e, "get", t), i)) return o;
539
+ if (/* @__PURE__ */ isRef(o)) {
540
+ let e = a && isIntegerKey(t) ? o : o.value;
541
+ return r && isObject$1(e) ? /* @__PURE__ */ readonly(e) : e;
542
+ }
543
+ return isObject$1(o) ? r ? /* @__PURE__ */ readonly(o) : /* @__PURE__ */ reactive(o) : o;
544
+ }
545
+ }, MutableReactiveHandler = class extends BaseReactiveHandler {
546
+ constructor(e = !1) {
547
+ super(!1, e);
548
+ }
549
+ set(e, t, n, r) {
550
+ let i = e[t], a = isArray$1(e) && isIntegerKey(t);
551
+ if (!this._isShallow) {
552
+ let r = /* @__PURE__ */ isReadonly(i);
553
+ 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);
554
+ }
555
+ let o = a ? Number(t) < e.length : hasOwn(e, t), s = Reflect.set(e, t, n, /* @__PURE__ */ isRef(e) ? e : r);
556
+ return e === /* @__PURE__ */ toRaw(r) && (o ? hasChanged(n, i) && trigger(e, "set", t, n, i) : trigger(e, "add", t, n)), s;
557
+ }
558
+ deleteProperty(e, t) {
559
+ let n = hasOwn(e, t), r = e[t], i = Reflect.deleteProperty(e, t);
560
+ return i && n && trigger(e, "delete", t, void 0, r), i;
561
+ }
562
+ has(e, t) {
563
+ let n = Reflect.has(e, t);
564
+ return (!isSymbol(t) || !builtInSymbols.has(t)) && track(e, "has", t), n;
565
+ }
566
+ ownKeys(e) {
567
+ return track(e, "iterate", isArray$1(e) ? "length" : ITERATE_KEY), Reflect.ownKeys(e);
568
+ }
569
+ }, ReadonlyReactiveHandler = class extends BaseReactiveHandler {
570
+ constructor(e = !1) {
571
+ super(!0, e);
572
+ }
573
+ set(e, t) {
574
+ return process.env.NODE_ENV !== "production" && warn$2(`Set operation on key "${String(t)}" failed: target is readonly.`, e), !0;
575
+ }
576
+ deleteProperty(e, t) {
577
+ return process.env.NODE_ENV !== "production" && warn$2(`Delete operation on key "${String(t)}" failed: target is readonly.`, e), !0;
578
+ }
579
+ }, 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);
580
+ function createIterableMethod(e, t, n) {
581
+ return function(...r) {
582
+ 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;
583
+ return !t && track(a, "iterate", c ? MAP_KEY_ITERATE_KEY : ITERATE_KEY), extend$1(Object.create(l), { next() {
584
+ let { value: e, done: t } = l.next();
585
+ return t ? {
586
+ value: e,
587
+ done: t
588
+ } : {
589
+ value: s ? [u(e[0]), u(e[1])] : u(e),
590
+ done: t
591
+ };
592
+ } });
593
+ };
594
+ }
595
+ function createReadonlyMethod(e) {
596
+ return function(...t) {
597
+ if (process.env.NODE_ENV !== "production") {
598
+ let n = t[0] ? `on key "${t[0]}" ` : "";
599
+ warn$2(`${capitalize(e)} operation ${n}failed: target is readonly.`, /* @__PURE__ */ toRaw(this));
600
+ }
601
+ return e === "delete" ? !1 : e === "clear" ? void 0 : this;
602
+ };
603
+ }
604
+ function createInstrumentations(e, t) {
605
+ let n = {
606
+ get(n) {
607
+ let r = this.__v_raw, i = /* @__PURE__ */ toRaw(r), a = /* @__PURE__ */ toRaw(n);
608
+ e || (hasChanged(n, a) && track(i, "get", n), track(i, "get", a));
609
+ let { has: o } = getProto(i), s = t ? toShallow : e ? toReadonly : toReactive;
610
+ if (o.call(i, n)) return s(r.get(n));
611
+ if (o.call(i, a)) return s(r.get(a));
612
+ r !== i && r.get(n);
613
+ },
614
+ get size() {
615
+ let t = this.__v_raw;
616
+ return !e && track(/* @__PURE__ */ toRaw(t), "iterate", ITERATE_KEY), t.size;
617
+ },
618
+ has(t) {
619
+ let n = this.__v_raw, r = /* @__PURE__ */ toRaw(n), i = /* @__PURE__ */ toRaw(t);
620
+ return e || (hasChanged(t, i) && track(r, "has", t), track(r, "has", i)), t === i ? n.has(t) : n.has(t) || n.has(i);
621
+ },
622
+ forEach(n, r) {
623
+ let i = this, a = i.__v_raw, o = /* @__PURE__ */ toRaw(a), s = t ? toShallow : e ? toReadonly : toReactive;
624
+ return !e && track(o, "iterate", ITERATE_KEY), a.forEach((e, t) => n.call(r, s(e), s(t), i));
625
+ }
626
+ };
627
+ return extend$1(n, e ? {
628
+ add: createReadonlyMethod("add"),
629
+ set: createReadonlyMethod("set"),
630
+ delete: createReadonlyMethod("delete"),
631
+ clear: createReadonlyMethod("clear")
632
+ } : {
633
+ add(e) {
634
+ !t && !/* @__PURE__ */ isShallow(e) && !/* @__PURE__ */ isReadonly(e) && (e = /* @__PURE__ */ toRaw(e));
635
+ let n = /* @__PURE__ */ toRaw(this);
636
+ return getProto(n).has.call(n, e) || (n.add(e), trigger(n, "add", e, e)), this;
637
+ },
638
+ set(e, n) {
639
+ !t && !/* @__PURE__ */ isShallow(n) && !/* @__PURE__ */ isReadonly(n) && (n = /* @__PURE__ */ toRaw(n));
640
+ let r = /* @__PURE__ */ toRaw(this), { has: i, get: a } = getProto(r), o = i.call(r, e);
641
+ o ? process.env.NODE_ENV !== "production" && checkIdentityKeys(r, i, e) : (e = /* @__PURE__ */ toRaw(e), o = i.call(r, e));
642
+ let s = a.call(r, e);
643
+ return r.set(e, n), o ? hasChanged(n, s) && trigger(r, "set", e, n, s) : trigger(r, "add", e, n), this;
644
+ },
645
+ delete(e) {
646
+ let t = /* @__PURE__ */ toRaw(this), { has: n, get: r } = getProto(t), i = n.call(t, e);
647
+ i ? process.env.NODE_ENV !== "production" && checkIdentityKeys(t, n, e) : (e = /* @__PURE__ */ toRaw(e), i = n.call(t, e));
648
+ let a = r ? r.call(t, e) : void 0, o = t.delete(e);
649
+ return i && trigger(t, "delete", e, void 0, a), o;
650
+ },
651
+ clear() {
652
+ 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();
653
+ return t && trigger(e, "clear", void 0, void 0, n), r;
654
+ }
655
+ }), [
656
+ "keys",
657
+ "values",
658
+ "entries",
659
+ Symbol.iterator
660
+ ].forEach((r) => {
661
+ n[r] = createIterableMethod(r, e, t);
662
+ }), n;
663
+ }
664
+ function createInstrumentationGetter(e, t) {
665
+ let n = createInstrumentations(e, t);
666
+ 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);
667
+ }
668
+ 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) };
669
+ function checkIdentityKeys(e, t, n) {
670
+ let r = /* @__PURE__ */ toRaw(n);
671
+ if (r !== n && t.call(e, r)) {
672
+ let t = toRawType(e);
673
+ 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.`);
674
+ }
675
+ }
676
+ var reactiveMap = /* @__PURE__ */ new WeakMap(), shallowReactiveMap = /* @__PURE__ */ new WeakMap(), readonlyMap = /* @__PURE__ */ new WeakMap(), shallowReadonlyMap = /* @__PURE__ */ new WeakMap();
677
+ function targetTypeMap(e) {
678
+ switch (e) {
679
+ case "Object":
680
+ case "Array": return 1;
681
+ case "Map":
682
+ case "Set":
683
+ case "WeakMap":
684
+ case "WeakSet": return 2;
685
+ default: return 0;
686
+ }
687
+ }
688
+ function getTargetType(e) {
689
+ return e.__v_skip || !Object.isExtensible(e) ? 0 : targetTypeMap(toRawType(e));
690
+ }
691
+ /* @__NO_SIDE_EFFECTS__ */
692
+ function reactive(e) {
693
+ return /* @__PURE__ */ isReadonly(e) ? e : createReactiveObject(e, !1, mutableHandlers, mutableCollectionHandlers, reactiveMap);
694
+ }
695
+ /* @__NO_SIDE_EFFECTS__ */
696
+ function shallowReactive(e) {
697
+ return createReactiveObject(e, !1, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);
698
+ }
699
+ /* @__NO_SIDE_EFFECTS__ */
700
+ function readonly(e) {
701
+ return createReactiveObject(e, !0, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);
702
+ }
703
+ /* @__NO_SIDE_EFFECTS__ */
704
+ function shallowReadonly(e) {
705
+ return createReactiveObject(e, !0, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);
706
+ }
707
+ function createReactiveObject(e, t, n, r, i) {
708
+ if (!isObject$1(e)) return process.env.NODE_ENV !== "production" && warn$2(`value cannot be made ${t ? "readonly" : "reactive"}: ${String(e)}`), e;
709
+ if (e.__v_raw && !(t && e.__v_isReactive)) return e;
710
+ let a = getTargetType(e);
711
+ if (a === 0) return e;
712
+ let o = i.get(e);
713
+ if (o) return o;
714
+ let s = new Proxy(e, a === 2 ? r : n);
715
+ return i.set(e, s), s;
716
+ }
717
+ /* @__NO_SIDE_EFFECTS__ */
718
+ function isReactive(e) {
719
+ return /* @__PURE__ */ isReadonly(e) ? /* @__PURE__ */ isReactive(e.__v_raw) : !!(e && e.__v_isReactive);
720
+ }
721
+ /* @__NO_SIDE_EFFECTS__ */
722
+ function isReadonly(e) {
723
+ return !!(e && e.__v_isReadonly);
724
+ }
725
+ /* @__NO_SIDE_EFFECTS__ */
726
+ function isShallow(e) {
727
+ return !!(e && e.__v_isShallow);
728
+ }
729
+ /* @__NO_SIDE_EFFECTS__ */
730
+ function isProxy(e) {
731
+ return e ? !!e.__v_raw : !1;
732
+ }
733
+ /* @__NO_SIDE_EFFECTS__ */
734
+ function toRaw(e) {
735
+ let t = e && e.__v_raw;
736
+ return t ? /* @__PURE__ */ toRaw(t) : e;
737
+ }
738
+ function markRaw(e) {
739
+ return !hasOwn(e, "__v_skip") && Object.isExtensible(e) && def(e, "__v_skip", !0), e;
740
+ }
741
+ var toReactive = (e) => isObject$1(e) ? /* @__PURE__ */ reactive(e) : e, toReadonly = (e) => isObject$1(e) ? /* @__PURE__ */ readonly(e) : e;
742
+ /* @__NO_SIDE_EFFECTS__ */
743
+ function isRef(e) {
744
+ return e ? e.__v_isRef === !0 : !1;
745
+ }
746
+ /* @__NO_SIDE_EFFECTS__ */
747
+ function ref(e) {
748
+ return createRef(e, !1);
749
+ }
750
+ /* @__NO_SIDE_EFFECTS__ */
751
+ function shallowRef(e) {
752
+ return createRef(e, !0);
753
+ }
754
+ function createRef(e, t) {
755
+ return /* @__PURE__ */ isRef(e) ? e : new RefImpl(e, t);
756
+ }
757
+ var RefImpl = class {
758
+ constructor(e, t) {
759
+ 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;
760
+ }
761
+ get value() {
762
+ return process.env.NODE_ENV === "production" ? this.dep.track() : this.dep.track({
763
+ target: this,
764
+ type: "get",
765
+ key: "value"
766
+ }), this._value;
767
+ }
768
+ set value(e) {
769
+ let t = this._rawValue, n = this.__v_isShallow || /* @__PURE__ */ isShallow(e) || /* @__PURE__ */ isReadonly(e);
770
+ 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({
771
+ target: this,
772
+ type: "set",
773
+ key: "value",
774
+ newValue: e,
775
+ oldValue: t
776
+ }));
777
+ }
778
+ };
779
+ function unref(e) {
780
+ return /* @__PURE__ */ isRef(e) ? e.value : e;
781
+ }
782
+ function toValue(e) {
783
+ return isFunction$2(e) ? e() : unref(e);
784
+ }
785
+ var shallowUnwrapHandlers = {
786
+ get: (e, t, n) => t === "__v_raw" ? e : unref(Reflect.get(e, t, n)),
787
+ set: (e, t, n, r) => {
788
+ let i = e[t];
789
+ return /* @__PURE__ */ isRef(i) && !/* @__PURE__ */ isRef(n) ? (i.value = n, !0) : Reflect.set(e, t, n, r);
790
+ }
791
+ };
792
+ function proxyRefs(e) {
793
+ return /* @__PURE__ */ isReactive(e) ? e : new Proxy(e, shallowUnwrapHandlers);
794
+ }
795
+ var ComputedRefImpl = class {
796
+ constructor(e, t, n) {
797
+ 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;
798
+ }
799
+ notify() {
800
+ if (this.flags |= 16, !(this.flags & 8) && activeSub !== this) return batch(this, !0), !0;
801
+ process.env.NODE_ENV;
802
+ }
803
+ get value() {
804
+ let e = process.env.NODE_ENV === "production" ? this.dep.track() : this.dep.track({
805
+ target: this,
806
+ type: "get",
807
+ key: "value"
808
+ });
809
+ return refreshComputed(this), e && (e.version = this.dep.version), this._value;
810
+ }
811
+ set value(e) {
812
+ this.setter ? this.setter(e) : process.env.NODE_ENV !== "production" && warn$2("Write operation failed: computed value is readonly");
813
+ }
814
+ };
815
+ /* @__NO_SIDE_EFFECTS__ */
816
+ function computed$1(e, t, n = !1) {
817
+ let r, i;
818
+ isFunction$2(e) ? r = e : (r = e.get, i = e.set);
819
+ let a = new ComputedRefImpl(r, i, n);
820
+ return process.env.NODE_ENV !== "production" && t && !n && (a.onTrack = t.onTrack, a.onTrigger = t.onTrigger), a;
821
+ }
822
+ var INITIAL_WATCHER_VALUE = {}, cleanupMap = /* @__PURE__ */ new WeakMap(), activeWatcher = void 0;
823
+ function onWatcherCleanup(e, t = !1, n = activeWatcher) {
824
+ if (n) {
825
+ let t = cleanupMap.get(n);
826
+ t || cleanupMap.set(n, t = []), t.push(e);
827
+ } else process.env.NODE_ENV !== "production" && !t && warn$2("onWatcherCleanup() was called when there was no active watcher to associate with.");
828
+ }
829
+ function watch$1(e, t, n = EMPTY_OBJ) {
830
+ let { immediate: r, deep: i, once: a, scheduler: o, augmentJob: s, call: c } = n, l = (e) => {
831
+ (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.");
832
+ }, u = (e) => i ? e : /* @__PURE__ */ isShallow(e) || i === !1 || i === 0 ? traverse(e, 1) : traverse(e), d, f, p, m, h = !1, g = !1;
833
+ if (/* @__PURE__ */ isRef(e) ? (f = () => e.value, h = /* @__PURE__ */ isShallow(e)) : /* @__PURE__ */ isReactive(e) ? (f = () => u(e), h = !0) : isArray$1(e) ? (g = !0, h = e.some((e) => /* @__PURE__ */ isReactive(e) || /* @__PURE__ */ isShallow(e)), f = () => e.map((e) => {
834
+ if (/* @__PURE__ */ isRef(e)) return e.value;
835
+ if (/* @__PURE__ */ isReactive(e)) return u(e);
836
+ if (isFunction$2(e)) return c ? c(e, 2) : e();
837
+ process.env.NODE_ENV !== "production" && l(e);
838
+ })) : isFunction$2(e) ? f = t ? c ? () => c(e, 2) : e : () => {
839
+ if (p) {
840
+ pauseTracking();
841
+ try {
842
+ p();
843
+ } finally {
844
+ resetTracking();
845
+ }
846
+ }
847
+ let t = activeWatcher;
848
+ activeWatcher = d;
849
+ try {
850
+ return c ? c(e, 3, [m]) : e(m);
851
+ } finally {
852
+ activeWatcher = t;
853
+ }
854
+ } : (f = NOOP, process.env.NODE_ENV !== "production" && l(e)), t && i) {
855
+ let e = f, t = i === !0 ? Infinity : i;
856
+ f = () => traverse(e(), t);
857
+ }
858
+ let _ = getCurrentScope(), v = () => {
859
+ d.stop(), _ && _.active && remove(_.effects, d);
860
+ };
861
+ if (a && t) {
862
+ let e = t;
863
+ t = (...t) => {
864
+ e(...t), v();
865
+ };
866
+ }
867
+ let y = g ? Array(e.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE, b = (e) => {
868
+ if (!(!(d.flags & 1) || !d.dirty && !e)) if (t) {
869
+ let e = d.run();
870
+ if (i || h || (g ? e.some((e, t) => hasChanged(e, y[t])) : hasChanged(e, y))) {
871
+ p && p();
872
+ let n = activeWatcher;
873
+ activeWatcher = d;
874
+ try {
875
+ let n = [
876
+ e,
877
+ y === INITIAL_WATCHER_VALUE ? void 0 : g && y[0] === INITIAL_WATCHER_VALUE ? [] : y,
878
+ m
879
+ ];
880
+ y = e, c ? c(t, 3, n) : t(...n);
881
+ } finally {
882
+ activeWatcher = n;
883
+ }
884
+ }
885
+ } else d.run();
886
+ };
887
+ return s && s(b), d = new ReactiveEffect(f), d.scheduler = o ? () => o(b, !1) : b, m = (e) => onWatcherCleanup(e, !1, d), p = d.onStop = () => {
888
+ let e = cleanupMap.get(d);
889
+ if (e) {
890
+ if (c) c(e, 4);
891
+ else for (let t of e) t();
892
+ cleanupMap.delete(d);
893
+ }
894
+ }, 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;
895
+ }
896
+ function traverse(e, t = Infinity, n) {
897
+ if (t <= 0 || !isObject$1(e) || e.__v_skip || (n ||= /* @__PURE__ */ new Map(), (n.get(e) || 0) >= t)) return e;
898
+ if (n.set(e, t), t--, /* @__PURE__ */ isRef(e)) traverse(e.value, t, n);
899
+ else if (isArray$1(e)) for (let r = 0; r < e.length; r++) traverse(e[r], t, n);
900
+ else if (isSet(e) || isMap(e)) e.forEach((e) => {
901
+ traverse(e, t, n);
902
+ });
903
+ else if (isPlainObject$1(e)) {
904
+ for (let r in e) traverse(e[r], t, n);
905
+ for (let r of Object.getOwnPropertySymbols(e)) Object.prototype.propertyIsEnumerable.call(e, r) && traverse(e[r], t, n);
906
+ }
907
+ return e;
908
+ }
909
+ /**
910
+ * @vue/runtime-core v3.5.27
911
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
912
+ * @license MIT
913
+ **/
914
+ var stack = [];
915
+ function pushWarningContext(e) {
916
+ stack.push(e);
917
+ }
918
+ function popWarningContext() {
919
+ stack.pop();
920
+ }
921
+ var isWarning = !1;
922
+ function warn$1(e, ...t) {
923
+ if (isWarning) return;
924
+ isWarning = !0, pauseTracking();
925
+ let n = stack.length ? stack[stack.length - 1].component : null, r = n && n.appContext.config.warnHandler, i = getComponentTrace();
926
+ if (r) callWithErrorHandling(r, n, 11, [
927
+ e + t.map((e) => e.toString?.call(e) ?? JSON.stringify(e)).join(""),
928
+ n && n.proxy,
929
+ i.map(({ vnode: e }) => `at <${formatComponentName(n, e.type)}>`).join("\n"),
930
+ i
931
+ ]);
932
+ else {
933
+ let n = [`[Vue warn]: ${e}`, ...t];
934
+ i.length && n.push("\n", ...formatTrace(i)), console.warn(...n);
935
+ }
936
+ resetTracking(), isWarning = !1;
937
+ }
938
+ function getComponentTrace() {
939
+ let e = stack[stack.length - 1];
940
+ if (!e) return [];
941
+ let t = [];
942
+ for (; e;) {
943
+ let n = t[0];
944
+ n && n.vnode === e ? n.recurseCount++ : t.push({
945
+ vnode: e,
946
+ recurseCount: 0
947
+ });
948
+ let r = e.component && e.component.parent;
949
+ e = r && r.vnode;
950
+ }
951
+ return t;
952
+ }
953
+ function formatTrace(e) {
954
+ let t = [];
955
+ return e.forEach((e, n) => {
956
+ t.push(...n === 0 ? [] : ["\n"], ...formatTraceEntry(e));
957
+ }), t;
958
+ }
959
+ function formatTraceEntry({ vnode: e, recurseCount: t }) {
960
+ 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;
961
+ return e.props ? [
962
+ i,
963
+ ...formatProps(e.props),
964
+ a
965
+ ] : [i + a];
966
+ }
967
+ function formatProps(e) {
968
+ let t = [], n = Object.keys(e);
969
+ return n.slice(0, 3).forEach((n) => {
970
+ t.push(...formatProp(n, e[n]));
971
+ }), n.length > 3 && t.push(" ..."), t;
972
+ }
973
+ function formatProp(e, t, n) {
974
+ 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(t) ? (t = formatProp(e, /* @__PURE__ */ toRaw(t.value), !0), n ? t : [
975
+ `${e}=Ref<`,
976
+ t,
977
+ ">"
978
+ ]) : isFunction$2(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = /* @__PURE__ */ toRaw(t), n ? t : [`${e}=`, t]);
979
+ }
980
+ var ErrorTypeStrings$1 = {
981
+ sp: "serverPrefetch hook",
982
+ bc: "beforeCreate hook",
983
+ c: "created hook",
984
+ bm: "beforeMount hook",
985
+ m: "mounted hook",
986
+ bu: "beforeUpdate hook",
987
+ u: "updated",
988
+ bum: "beforeUnmount hook",
989
+ um: "unmounted hook",
990
+ a: "activated hook",
991
+ da: "deactivated hook",
992
+ ec: "errorCaptured hook",
993
+ rtc: "renderTracked hook",
994
+ rtg: "renderTriggered hook",
995
+ 0: "setup function",
996
+ 1: "render function",
997
+ 2: "watcher getter",
998
+ 3: "watcher callback",
999
+ 4: "watcher cleanup function",
1000
+ 5: "native event handler",
1001
+ 6: "component event handler",
1002
+ 7: "vnode hook",
1003
+ 8: "directive hook",
1004
+ 9: "transition hook",
1005
+ 10: "app errorHandler",
1006
+ 11: "app warnHandler",
1007
+ 12: "ref function",
1008
+ 13: "async component loader",
1009
+ 14: "scheduler flush",
1010
+ 15: "component update",
1011
+ 16: "app unmount cleanup function"
1012
+ };
1013
+ function callWithErrorHandling(e, t, n, r) {
1014
+ try {
1015
+ return r ? e(...r) : e();
1016
+ } catch (e) {
1017
+ handleError(e, t, n);
1018
+ }
1019
+ }
1020
+ function callWithAsyncErrorHandling(e, t, n, r) {
1021
+ if (isFunction$2(e)) {
1022
+ let i = callWithErrorHandling(e, t, n, r);
1023
+ return i && isPromise(i) && i.catch((e) => {
1024
+ handleError(e, t, n);
1025
+ }), i;
1026
+ }
1027
+ if (isArray$1(e)) {
1028
+ let i = [];
1029
+ for (let a = 0; a < e.length; a++) i.push(callWithAsyncErrorHandling(e[a], t, n, r));
1030
+ return i;
1031
+ } else process.env.NODE_ENV !== "production" && warn$1(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`);
1032
+ }
1033
+ function handleError(e, t, n, r = !0) {
1034
+ let i = t ? t.vnode : null, { errorHandler: a, throwUnhandledErrorInProduction: o } = t && t.appContext.config || EMPTY_OBJ;
1035
+ if (t) {
1036
+ let r = t.parent, i = t.proxy, o = process.env.NODE_ENV === "production" ? `https://vuejs.org/error-reference/#runtime-${n}` : ErrorTypeStrings$1[n];
1037
+ for (; r;) {
1038
+ let t = r.ec;
1039
+ if (t) {
1040
+ for (let n = 0; n < t.length; n++) if (t[n](e, i, o) === !1) return;
1041
+ }
1042
+ r = r.parent;
1043
+ }
1044
+ if (a) {
1045
+ pauseTracking(), callWithErrorHandling(a, null, 10, [
1046
+ e,
1047
+ i,
1048
+ o
1049
+ ]), resetTracking();
1050
+ return;
1051
+ }
1052
+ }
1053
+ logError(e, n, i, r, o);
1054
+ }
1055
+ function logError(e, t, n, r = !0, i = !1) {
1056
+ if (process.env.NODE_ENV !== "production") {
1057
+ let i = ErrorTypeStrings$1[t];
1058
+ if (n && pushWarningContext(n), warn$1(`Unhandled error${i ? ` during execution of ${i}` : ""}`), n && popWarningContext(), r) throw e;
1059
+ console.error(e);
1060
+ } else if (i) throw e;
1061
+ else console.error(e);
1062
+ }
1063
+ var queue = [], flushIndex = -1, pendingPostFlushCbs = [], activePostFlushCbs = null, postFlushIndex = 0, resolvedPromise = /* @__PURE__ */ Promise.resolve(), currentFlushPromise = null, RECURSION_LIMIT = 100;
1064
+ function nextTick(e) {
1065
+ let t = currentFlushPromise || resolvedPromise;
1066
+ return e ? t.then(this ? e.bind(this) : e) : t;
1067
+ }
1068
+ function findInsertionIndex(e) {
1069
+ let t = flushIndex + 1, n = queue.length;
1070
+ for (; t < n;) {
1071
+ let r = t + n >>> 1, i = queue[r], a = getId(i);
1072
+ a < e || a === e && i.flags & 2 ? t = r + 1 : n = r;
1073
+ }
1074
+ return t;
1075
+ }
1076
+ function queueJob(e) {
1077
+ if (!(e.flags & 1)) {
1078
+ let t = getId(e), n = queue[queue.length - 1];
1079
+ !n || !(e.flags & 2) && t >= getId(n) ? queue.push(e) : queue.splice(findInsertionIndex(t), 0, e), e.flags |= 1, queueFlush();
1080
+ }
1081
+ }
1082
+ function queueFlush() {
1083
+ currentFlushPromise ||= resolvedPromise.then(flushJobs);
1084
+ }
1085
+ function queuePostFlushCb(e) {
1086
+ isArray$1(e) ? pendingPostFlushCbs.push(...e) : activePostFlushCbs && e.id === -1 ? activePostFlushCbs.splice(postFlushIndex + 1, 0, e) : e.flags & 1 || (pendingPostFlushCbs.push(e), e.flags |= 1), queueFlush();
1087
+ }
1088
+ function flushPostFlushCbs(e) {
1089
+ if (pendingPostFlushCbs.length) {
1090
+ let t = [...new Set(pendingPostFlushCbs)].sort((e, t) => getId(e) - getId(t));
1091
+ if (pendingPostFlushCbs.length = 0, activePostFlushCbs) {
1092
+ activePostFlushCbs.push(...t);
1093
+ return;
1094
+ }
1095
+ for (activePostFlushCbs = t, process.env.NODE_ENV !== "production" && (e ||= /* @__PURE__ */ new Map()), postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
1096
+ let t = activePostFlushCbs[postFlushIndex];
1097
+ process.env.NODE_ENV !== "production" && checkRecursiveUpdates(e, t) || (t.flags & 4 && (t.flags &= -2), t.flags & 8 || t(), t.flags &= -2);
1098
+ }
1099
+ activePostFlushCbs = null, postFlushIndex = 0;
1100
+ }
1101
+ }
1102
+ var getId = (e) => e.id == null ? e.flags & 2 ? -1 : Infinity : e.id;
1103
+ function flushJobs(e) {
1104
+ process.env.NODE_ENV !== "production" && (e ||= /* @__PURE__ */ new Map());
1105
+ let t = process.env.NODE_ENV === "production" ? NOOP : (t) => checkRecursiveUpdates(e, t);
1106
+ try {
1107
+ for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
1108
+ let e = queue[flushIndex];
1109
+ if (e && !(e.flags & 8)) {
1110
+ if (process.env.NODE_ENV !== "production" && t(e)) continue;
1111
+ e.flags & 4 && (e.flags &= -2), callWithErrorHandling(e, e.i, e.i ? 15 : 14), e.flags & 4 || (e.flags &= -2);
1112
+ }
1113
+ }
1114
+ } finally {
1115
+ for (; flushIndex < queue.length; flushIndex++) {
1116
+ let e = queue[flushIndex];
1117
+ e && (e.flags &= -2);
1118
+ }
1119
+ flushIndex = -1, queue.length = 0, flushPostFlushCbs(e), currentFlushPromise = null, (queue.length || pendingPostFlushCbs.length) && flushJobs(e);
1120
+ }
1121
+ }
1122
+ function checkRecursiveUpdates(e, t) {
1123
+ let n = e.get(t) || 0;
1124
+ if (n > RECURSION_LIMIT) {
1125
+ let e = t.i, n = e && getComponentName(e.type);
1126
+ 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;
1127
+ }
1128
+ return e.set(t, n + 1), !1;
1129
+ }
1130
+ var hmrDirtyComponents = /* @__PURE__ */ new Map();
1131
+ process.env.NODE_ENV !== "production" && (getGlobalThis().__VUE_HMR_RUNTIME__ = {
1132
+ createRecord: tryWrap(createRecord),
1133
+ rerender: tryWrap(rerender),
1134
+ reload: tryWrap(reload)
1135
+ });
1136
+ var map = /* @__PURE__ */ new Map();
1137
+ function createRecord(e, t) {
1138
+ return map.has(e) ? !1 : (map.set(e, {
1139
+ initialDef: normalizeClassComponent(t),
1140
+ instances: /* @__PURE__ */ new Set()
1141
+ }), !0);
1142
+ }
1143
+ function normalizeClassComponent(e) {
1144
+ return isClassComponent(e) ? e.__vccOpts : e;
1145
+ }
1146
+ function rerender(e, t) {
1147
+ let n = map.get(e);
1148
+ n && (n.initialDef.render = t, [...n.instances].forEach((e) => {
1149
+ t && (e.render = t, normalizeClassComponent(e.type).render = t), e.renderCache = [], e.job.flags & 8 || e.update();
1150
+ }));
1151
+ }
1152
+ function reload(e, t) {
1153
+ let n = map.get(e);
1154
+ if (!n) return;
1155
+ t = normalizeClassComponent(t), updateComponentDef(n.initialDef, t);
1156
+ let r = [...n.instances];
1157
+ for (let e = 0; e < r.length; e++) {
1158
+ let i = r[e], a = normalizeClassComponent(i.type), o = hmrDirtyComponents.get(a);
1159
+ 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(() => {
1160
+ i.job.flags & 8 || (i.parent.update(), o.delete(i));
1161
+ }) : 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);
1162
+ }
1163
+ queuePostFlushCb(() => {
1164
+ hmrDirtyComponents.clear();
1165
+ });
1166
+ }
1167
+ function updateComponentDef(e, t) {
1168
+ extend$1(e, t);
1169
+ for (let n in e) n !== "__file" && !(n in t) && delete e[n];
1170
+ }
1171
+ function tryWrap(e) {
1172
+ return (t, n) => {
1173
+ try {
1174
+ return e(t, n);
1175
+ } catch (e) {
1176
+ console.error(e), console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.");
1177
+ }
1178
+ };
1179
+ }
1180
+ var devtools$1, buffer = [];
1181
+ function setDevtoolsHook$1(e, t) {
1182
+ 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) => {
1183
+ setDevtoolsHook$1(e, t);
1184
+ }), setTimeout(() => {
1185
+ devtools$1 || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, buffer = []);
1186
+ }, 3e3)) : buffer = [];
1187
+ }
1188
+ var currentRenderingInstance = null, currentScopeId = null;
1189
+ function inject(e, t, n = !1) {
1190
+ let r = getCurrentInstance();
1191
+ if (r || currentApp) {
1192
+ let i = currentApp ? currentApp._context.provides : r ? r.parent == null || r.ce ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides : void 0;
1193
+ if (i && e in i) return i[e];
1194
+ if (arguments.length > 1) return n && isFunction$2(t) ? t.call(r && r.proxy) : t;
1195
+ process.env.NODE_ENV !== "production" && warn$1(`injection "${String(e)}" not found.`);
1196
+ } else process.env.NODE_ENV !== "production" && warn$1("inject() can only be used inside setup() or functional components.");
1197
+ }
1198
+ var ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx"), useSSRContext = () => {
1199
+ {
1200
+ let e = inject(ssrContextKey);
1201
+ 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;
1202
+ }
1203
+ };
1204
+ function watch(e, t, n) {
1205
+ return process.env.NODE_ENV !== "production" && !isFunction$2(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);
1206
+ }
1207
+ function doWatch(e, t, n = EMPTY_OBJ) {
1208
+ let { immediate: r, deep: i, flush: a, once: o } = n;
1209
+ 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."));
1210
+ let s = extend$1({}, n);
1211
+ process.env.NODE_ENV !== "production" && (s.onWarn = warn$1);
1212
+ let c = t && r || !t && a !== "post", l;
1213
+ if (isInSSRComponentSetup) {
1214
+ if (a === "sync") {
1215
+ let e = useSSRContext();
1216
+ l = e.__watcherHandles ||= [];
1217
+ } else if (!c) {
1218
+ let e = () => {};
1219
+ return e.stop = NOOP, e.resume = NOOP, e.pause = NOOP, e;
1220
+ }
1221
+ }
1222
+ let u = currentInstance;
1223
+ s.call = (e, t, n) => callWithAsyncErrorHandling(e, u, t, n);
1224
+ let d = !1;
1225
+ a === "post" ? s.scheduler = (e) => {
1226
+ queuePostRenderEffect(e, u && u.suspense);
1227
+ } : a !== "sync" && (d = !0, s.scheduler = (e, t) => {
1228
+ t ? e() : queueJob(e);
1229
+ }), s.augmentJob = (e) => {
1230
+ t && (e.flags |= 4), d && (e.flags |= 2, u && (e.id = u.uid, e.i = u));
1231
+ };
1232
+ let f = watch$1(e, t, s);
1233
+ return isInSSRComponentSetup && (l ? l.push(f) : c && f()), f;
1234
+ }
1235
+ function instanceWatch(e, t, n) {
1236
+ let r = this.proxy, i = isString$1(e) ? e.includes(".") ? createPathGetter(r, e) : () => r[e] : e.bind(r, r), a;
1237
+ isFunction$2(t) ? a = t : (a = t.handler, n = t);
1238
+ let o = setCurrentInstance(this), s = doWatch(i, a.bind(r), n);
1239
+ return o(), s;
1240
+ }
1241
+ function createPathGetter(e, t) {
1242
+ let n = t.split(".");
1243
+ return () => {
1244
+ let t = e;
1245
+ for (let e = 0; e < n.length && t; e++) t = t[n[e]];
1246
+ return t;
1247
+ };
1248
+ }
1249
+ var isTeleport = (e) => e.__isTeleport;
1250
+ function setTransitionHooks(e, t) {
1251
+ 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;
1252
+ }
1253
+ getGlobalThis().requestIdleCallback, getGlobalThis().cancelIdleCallback;
1254
+ var NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc"), getPublicInstance = (e) => e ? isStatefulComponent(e) ? getComponentPublicInstance(e) : getPublicInstance(e.parent) : null, publicPropertiesMap = /* @__PURE__ */ extend$1(/* @__PURE__ */ Object.create(null), {
1255
+ $: (e) => e,
1256
+ $el: (e) => e.vnode.el,
1257
+ $data: (e) => e.data,
1258
+ $props: (e) => process.env.NODE_ENV === "production" ? e.props : /* @__PURE__ */ shallowReadonly(e.props),
1259
+ $attrs: (e) => process.env.NODE_ENV === "production" ? e.attrs : /* @__PURE__ */ shallowReadonly(e.attrs),
1260
+ $slots: (e) => process.env.NODE_ENV === "production" ? e.slots : /* @__PURE__ */ shallowReadonly(e.slots),
1261
+ $refs: (e) => process.env.NODE_ENV === "production" ? e.refs : /* @__PURE__ */ shallowReadonly(e.refs),
1262
+ $parent: (e) => getPublicInstance(e.parent),
1263
+ $root: (e) => getPublicInstance(e.root),
1264
+ $host: (e) => e.ce,
1265
+ $emit: (e) => e.emit,
1266
+ $options: (e) => __VUE_OPTIONS_API__ ? resolveMergedOptions(e) : e.type,
1267
+ $forceUpdate: (e) => e.f ||= () => {
1268
+ queueJob(e.update);
1269
+ },
1270
+ $nextTick: (e) => e.n ||= nextTick.bind(e.proxy),
1271
+ $watch: (e) => __VUE_OPTIONS_API__ ? instanceWatch.bind(e) : NOOP
1272
+ }), isReservedPrefix = (e) => e === "_" || e === "$", hasSetupBinding = (e, t) => e !== EMPTY_OBJ && !e.__isScriptSetup && hasOwn(e, t), PublicInstanceProxyHandlers = {
1273
+ get({ _: e }, t) {
1274
+ if (t === "__v_skip") return !0;
1275
+ let { ctx: n, setupState: r, data: i, props: a, accessCache: o, type: s, appContext: c } = e;
1276
+ if (process.env.NODE_ENV !== "production" && t === "__isVue") return !0;
1277
+ if (t[0] !== "$") {
1278
+ let e = o[t];
1279
+ if (e !== void 0) switch (e) {
1280
+ case 1: return r[t];
1281
+ case 2: return i[t];
1282
+ case 4: return n[t];
1283
+ case 3: return a[t];
1284
+ }
1285
+ else if (hasSetupBinding(r, t)) return o[t] = 1, r[t];
1286
+ else if (__VUE_OPTIONS_API__ && i !== EMPTY_OBJ && hasOwn(i, t)) return o[t] = 2, i[t];
1287
+ else if (hasOwn(a, t)) return o[t] = 3, a[t];
1288
+ else if (n !== EMPTY_OBJ && hasOwn(n, t)) return o[t] = 4, n[t];
1289
+ else (!__VUE_OPTIONS_API__ || shouldCacheAccess) && (o[t] = 0);
1290
+ }
1291
+ let l = publicPropertiesMap[t], u, d;
1292
+ 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);
1293
+ if ((u = s.__cssModules) && (u = u[t])) return u;
1294
+ if (n !== EMPTY_OBJ && hasOwn(n, t)) return o[t] = 4, n[t];
1295
+ if (d = c.config.globalProperties, hasOwn(d, t)) return d[t];
1296
+ process.env.NODE_ENV !== "production" && currentRenderingInstance && (!isString$1(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.`));
1297
+ },
1298
+ set({ _: e }, t, n) {
1299
+ let { data: r, setupState: i, ctx: a } = e;
1300
+ 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, {
1301
+ enumerable: !0,
1302
+ configurable: !0,
1303
+ value: n
1304
+ }) : a[t] = n, !0);
1305
+ },
1306
+ has({ _: { data: e, setupState: t, accessCache: n, ctx: r, appContext: i, props: a, type: o } }, s) {
1307
+ let c;
1308
+ 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]);
1309
+ },
1310
+ defineProperty(e, t, n) {
1311
+ return n.get == null ? hasOwn(n, "value") && this.set(e, t, n.value, null) : e._.accessCache[t] = 0, Reflect.defineProperty(e, t, n);
1312
+ }
1313
+ };
1314
+ 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)));
1315
+ function normalizePropsOrEmits(e) {
1316
+ return isArray$1(e) ? e.reduce((e, t) => (e[t] = null, e), {}) : e;
1317
+ }
1318
+ var shouldCacheAccess = !0;
1319
+ function resolveMergedOptions(e) {
1320
+ let t = e.type, { mixins: n, extends: r } = t, { mixins: i, optionsCache: a, config: { optionMergeStrategies: o } } = e.appContext, s = a.get(t), c;
1321
+ 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;
1322
+ }
1323
+ function mergeOptions(e, t, n, r = !1) {
1324
+ let { mixins: i, extends: a } = t;
1325
+ a && mergeOptions(e, a, n, !0), i && i.forEach((t) => mergeOptions(e, t, n, !0));
1326
+ 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.");
1327
+ else {
1328
+ let r = internalOptionMergeStrats[i] || n && n[i];
1329
+ e[i] = r ? r(e[i], t[i]) : t[i];
1330
+ }
1331
+ return e;
1332
+ }
1333
+ var internalOptionMergeStrats = {
1334
+ data: mergeDataFn,
1335
+ props: mergeEmitsOrPropsOptions,
1336
+ emits: mergeEmitsOrPropsOptions,
1337
+ methods: mergeObjectOptions,
1338
+ computed: mergeObjectOptions,
1339
+ beforeCreate: mergeAsArray,
1340
+ created: mergeAsArray,
1341
+ beforeMount: mergeAsArray,
1342
+ mounted: mergeAsArray,
1343
+ beforeUpdate: mergeAsArray,
1344
+ updated: mergeAsArray,
1345
+ beforeDestroy: mergeAsArray,
1346
+ beforeUnmount: mergeAsArray,
1347
+ destroyed: mergeAsArray,
1348
+ unmounted: mergeAsArray,
1349
+ activated: mergeAsArray,
1350
+ deactivated: mergeAsArray,
1351
+ errorCaptured: mergeAsArray,
1352
+ serverPrefetch: mergeAsArray,
1353
+ components: mergeObjectOptions,
1354
+ directives: mergeObjectOptions,
1355
+ watch: mergeWatchOptions,
1356
+ provide: mergeDataFn,
1357
+ inject: mergeInject
1358
+ };
1359
+ function mergeDataFn(e, t) {
1360
+ return t ? e ? function() {
1361
+ return extend$1(isFunction$2(e) ? e.call(this, this) : e, isFunction$2(t) ? t.call(this, this) : t);
1362
+ } : t : e;
1363
+ }
1364
+ function mergeInject(e, t) {
1365
+ return mergeObjectOptions(normalizeInject(e), normalizeInject(t));
1366
+ }
1367
+ function normalizeInject(e) {
1368
+ if (isArray$1(e)) {
1369
+ let t = {};
1370
+ for (let n = 0; n < e.length; n++) t[e[n]] = e[n];
1371
+ return t;
1372
+ }
1373
+ return e;
1374
+ }
1375
+ function mergeAsArray(e, t) {
1376
+ return e ? [...new Set([].concat(e, t))] : t;
1377
+ }
1378
+ function mergeObjectOptions(e, t) {
1379
+ return e ? extend$1(/* @__PURE__ */ Object.create(null), e, t) : t;
1380
+ }
1381
+ function mergeEmitsOrPropsOptions(e, t) {
1382
+ return e ? isArray$1(e) && isArray$1(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : extend$1(/* @__PURE__ */ Object.create(null), normalizePropsOrEmits(e), normalizePropsOrEmits(t ?? {})) : t;
1383
+ }
1384
+ function mergeWatchOptions(e, t) {
1385
+ if (!e) return t;
1386
+ if (!t) return e;
1387
+ let n = extend$1(/* @__PURE__ */ Object.create(null), e);
1388
+ for (let r in t) n[r] = mergeAsArray(e[r], t[r]);
1389
+ return n;
1390
+ }
1391
+ var currentApp = null, internalObjectProto = {}, isInternalObject = (e) => Object.getPrototypeOf(e) === internalObjectProto, queuePostRenderEffect = queueEffectWithSuspense, isSuspense = (e) => e.__isSuspense;
1392
+ function queueEffectWithSuspense(e, t) {
1393
+ t && t.pendingBranch ? isArray$1(e) ? t.effects.push(...e) : t.effects.push(e) : queuePostFlushCb(e);
1394
+ }
1395
+ var Fragment = /* @__PURE__ */ Symbol.for("v-fgt"), Text = /* @__PURE__ */ Symbol.for("v-txt"), Comment$1 = /* @__PURE__ */ Symbol.for("v-cmt"), currentBlock = null, isBlockTreeEnabled = 1;
1396
+ function isVNode(e) {
1397
+ return e ? e.__v_isVNode === !0 : !1;
1398
+ }
1399
+ 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$1(e) || /* @__PURE__ */ isRef(e) || isFunction$2(e) ? {
1400
+ i: currentRenderingInstance,
1401
+ r: e,
1402
+ k: t,
1403
+ f: !!n
1404
+ } : e);
1405
+ function createBaseVNode(e, t = null, n = null, r = 0, i = null, a = e === Fragment ? 0 : 1, o = !1, s = !1) {
1406
+ let c = {
1407
+ __v_isVNode: !0,
1408
+ __v_skip: !0,
1409
+ type: e,
1410
+ props: t,
1411
+ key: t && normalizeKey(t),
1412
+ ref: t && normalizeRef(t),
1413
+ scopeId: currentScopeId,
1414
+ slotScopeIds: null,
1415
+ children: n,
1416
+ component: null,
1417
+ suspense: null,
1418
+ ssContent: null,
1419
+ ssFallback: null,
1420
+ dirs: null,
1421
+ transition: null,
1422
+ el: null,
1423
+ anchor: null,
1424
+ target: null,
1425
+ targetStart: null,
1426
+ targetAnchor: null,
1427
+ staticCount: 0,
1428
+ shapeFlag: a,
1429
+ patchFlag: r,
1430
+ dynamicProps: i,
1431
+ dynamicChildren: null,
1432
+ appContext: null,
1433
+ ctx: currentRenderingInstance
1434
+ };
1435
+ return s ? (normalizeChildren(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("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;
1436
+ }
1437
+ var createVNode = process.env.NODE_ENV === "production" ? _createVNode : createVNodeWithArgsTransform;
1438
+ function _createVNode(e, t = null, n = null, r = 0, i = null, a = !1) {
1439
+ if ((!e || e === NULL_DYNAMIC_COMPONENT) && (process.env.NODE_ENV !== "production" && !e && warn$1(`Invalid vnode type when creating vnode: ${e}.`), e = Comment$1), isVNode(e)) {
1440
+ let r = cloneVNode(e, t, !0);
1441
+ return n && normalizeChildren(r, n), isBlockTreeEnabled > 0 && !a && currentBlock && (r.shapeFlag & 6 ? currentBlock[currentBlock.indexOf(e)] = r : currentBlock.push(r)), r.patchFlag = -2, r;
1442
+ }
1443
+ if (isClassComponent(e) && (e = e.__vccOpts), t) {
1444
+ t = guardReactiveProps(t);
1445
+ let { class: e, style: n } = t;
1446
+ e && !isString$1(e) && (t.class = normalizeClass(e)), isObject$1(n) && (/* @__PURE__ */ isProxy(n) && !isArray$1(n) && (n = extend$1({}, n)), t.style = normalizeStyle(n));
1447
+ }
1448
+ let o = isString$1(e) ? 1 : isSuspense(e) ? 128 : isTeleport(e) ? 64 : isObject$1(e) ? 4 : isFunction$2(e) ? 2 : 0;
1449
+ 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);
1450
+ }
1451
+ function guardReactiveProps(e) {
1452
+ return e ? /* @__PURE__ */ isProxy(e) || isInternalObject(e) ? extend$1({}, e) : e : null;
1453
+ }
1454
+ function cloneVNode(e, t, n = !1, r = !1) {
1455
+ let { props: i, ref: a, patchFlag: o, children: s, transition: c } = e, l = t ? mergeProps(i || {}, t) : i, u = {
1456
+ __v_isVNode: !0,
1457
+ __v_skip: !0,
1458
+ type: e.type,
1459
+ props: l,
1460
+ key: l && normalizeKey(l),
1461
+ ref: t && t.ref ? n && a ? isArray$1(a) ? a.concat(normalizeRef(t)) : [a, normalizeRef(t)] : normalizeRef(t) : a,
1462
+ scopeId: e.scopeId,
1463
+ slotScopeIds: e.slotScopeIds,
1464
+ children: process.env.NODE_ENV !== "production" && o === -1 && isArray$1(s) ? s.map(deepCloneVNode) : s,
1465
+ target: e.target,
1466
+ targetStart: e.targetStart,
1467
+ targetAnchor: e.targetAnchor,
1468
+ staticCount: e.staticCount,
1469
+ shapeFlag: e.shapeFlag,
1470
+ patchFlag: t && e.type !== Fragment ? o === -1 ? 16 : o | 16 : o,
1471
+ dynamicProps: e.dynamicProps,
1472
+ dynamicChildren: e.dynamicChildren,
1473
+ appContext: e.appContext,
1474
+ dirs: e.dirs,
1475
+ transition: c,
1476
+ component: e.component,
1477
+ suspense: e.suspense,
1478
+ ssContent: e.ssContent && cloneVNode(e.ssContent),
1479
+ ssFallback: e.ssFallback && cloneVNode(e.ssFallback),
1480
+ placeholder: e.placeholder,
1481
+ el: e.el,
1482
+ anchor: e.anchor,
1483
+ ctx: e.ctx,
1484
+ ce: e.ce
1485
+ };
1486
+ return c && r && setTransitionHooks(u, c.clone(u)), u;
1487
+ }
1488
+ function deepCloneVNode(e) {
1489
+ let t = cloneVNode(e);
1490
+ return isArray$1(e.children) && (t.children = e.children.map(deepCloneVNode)), t;
1491
+ }
1492
+ function createTextVNode(e = " ", t = 0) {
1493
+ return createVNode(Text, null, e, t);
1494
+ }
1495
+ function normalizeChildren(e, t) {
1496
+ let n = 0, { shapeFlag: r } = e;
1497
+ if (t == null) t = null;
1498
+ else if (isArray$1(t)) n = 16;
1499
+ else if (typeof t == "object") if (r & 65) {
1500
+ let n = t.default;
1501
+ n && (n._c && (n._d = !1), normalizeChildren(e, n()), n._c && (n._d = !0));
1502
+ return;
1503
+ } else {
1504
+ n = 32;
1505
+ let r = t._;
1506
+ !r && !isInternalObject(t) ? t._ctx = currentRenderingInstance : r === 3 && currentRenderingInstance && (currentRenderingInstance.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
1507
+ }
1508
+ else isFunction$2(t) ? (t = {
1509
+ default: t,
1510
+ _ctx: currentRenderingInstance
1511
+ }, n = 32) : (t = String(t), r & 64 ? (n = 16, t = [createTextVNode(t)]) : n = 8);
1512
+ e.children = t, e.shapeFlag |= n;
1513
+ }
1514
+ function mergeProps(...e) {
1515
+ let t = {};
1516
+ for (let n = 0; n < e.length; n++) {
1517
+ let r = e[n];
1518
+ for (let e in r) if (e === "class") t.class !== r.class && (t.class = normalizeClass([t.class, r.class]));
1519
+ else if (e === "style") t.style = normalizeStyle([t.style, r.style]);
1520
+ else if (isOn(e)) {
1521
+ let n = t[e], i = r[e];
1522
+ i && n !== i && !(isArray$1(n) && n.includes(i)) && (t[e] = n ? [].concat(n, i) : i);
1523
+ } else e !== "" && (t[e] = r[e]);
1524
+ }
1525
+ return t;
1526
+ }
1527
+ var currentInstance = null, getCurrentInstance = () => currentInstance || currentRenderingInstance, internalSetCurrentInstance;
1528
+ {
1529
+ let e = getGlobalThis(), t = (t, n) => {
1530
+ let r;
1531
+ return (r = e[t]) || (r = e[t] = []), r.push(n), (e) => {
1532
+ r.length > 1 ? r.forEach((t) => t(e)) : r[0](e);
1533
+ };
1534
+ };
1535
+ internalSetCurrentInstance = t("__VUE_INSTANCE_SETTERS__", (e) => currentInstance = e), t("__VUE_SSR_SETTERS__", (e) => isInSSRComponentSetup = e);
1536
+ }
1537
+ var setCurrentInstance = (e) => {
1538
+ let t = currentInstance;
1539
+ return internalSetCurrentInstance(e), e.scope.on(), () => {
1540
+ e.scope.off(), internalSetCurrentInstance(t);
1541
+ };
1542
+ };
1543
+ function isStatefulComponent(e) {
1544
+ return e.vnode.shapeFlag & 4;
1545
+ }
1546
+ var isInSSRComponentSetup = !1;
1547
+ process.env.NODE_ENV;
1548
+ function getComponentPublicInstance(e) {
1549
+ return e.exposed ? e.exposeProxy ||= new Proxy(proxyRefs(markRaw(e.exposed)), {
1550
+ get(t, n) {
1551
+ if (n in t) return t[n];
1552
+ if (n in publicPropertiesMap) return publicPropertiesMap[n](e);
1553
+ },
1554
+ has(e, t) {
1555
+ return t in e || t in publicPropertiesMap;
1556
+ }
1557
+ }) : e.proxy;
1558
+ }
1559
+ var classifyRE = /(?:^|[-_])\w/g, classify = (e) => e.replace(classifyRE, (e) => e.toUpperCase()).replace(/[-_]/g, "");
1560
+ function getComponentName(e, t = !0) {
1561
+ return isFunction$2(e) ? e.displayName || e.name : e.name || t && e.__name;
1562
+ }
1563
+ function formatComponentName(e, t, n = !1) {
1564
+ let r = getComponentName(t);
1565
+ if (!r && t.__file) {
1566
+ let e = t.__file.match(/([^/\\]+)\.\w+$/);
1567
+ e && (r = e[1]);
1568
+ }
1569
+ if (!r && e) {
1570
+ let n = (e) => {
1571
+ for (let n in e) if (e[n] === t) return n;
1572
+ };
1573
+ r = n(e.components) || e.parent && n(e.parent.type.components) || n(e.appContext.components);
1574
+ }
1575
+ return r ? classify(r) : n ? "App" : "Anonymous";
1576
+ }
1577
+ function isClassComponent(e) {
1578
+ return isFunction$2(e) && "__vccOpts" in e;
1579
+ }
1580
+ var computed = (e, t) => {
1581
+ let n = /* @__PURE__ */ computed$1(e, t, isInSSRComponentSetup);
1582
+ if (process.env.NODE_ENV !== "production") {
1583
+ let e = getCurrentInstance();
1584
+ e && e.appContext.config.warnRecursiveComputed && (n._warnRecursive = !0);
1585
+ }
1586
+ return n;
1587
+ };
1588
+ function initCustomFormatter() {
1589
+ if (process.env.NODE_ENV === "production" || typeof window > "u") return;
1590
+ let e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, i = {
1591
+ __vue_custom_formatter: !0,
1592
+ header(t) {
1593
+ if (!isObject$1(t)) return null;
1594
+ if (t.__isVue) return [
1595
+ "div",
1596
+ e,
1597
+ "VueInstance"
1598
+ ];
1599
+ if (/* @__PURE__ */ isRef(t)) {
1600
+ pauseTracking();
1601
+ let n = t.value;
1602
+ return resetTracking(), [
1603
+ "div",
1604
+ {},
1605
+ [
1606
+ "span",
1607
+ e,
1608
+ u(t)
1609
+ ],
1610
+ "<",
1611
+ s(n),
1612
+ ">"
1613
+ ];
1614
+ } else if (/* @__PURE__ */ isReactive(t)) return [
1615
+ "div",
1616
+ {},
1617
+ [
1618
+ "span",
1619
+ e,
1620
+ /* @__PURE__ */ isShallow(t) ? "ShallowReactive" : "Reactive"
1621
+ ],
1622
+ "<",
1623
+ s(t),
1624
+ `>${/* @__PURE__ */ isReadonly(t) ? " (readonly)" : ""}`
1625
+ ];
1626
+ else if (/* @__PURE__ */ isReadonly(t)) return [
1627
+ "div",
1628
+ {},
1629
+ [
1630
+ "span",
1631
+ e,
1632
+ /* @__PURE__ */ isShallow(t) ? "ShallowReadonly" : "Readonly"
1633
+ ],
1634
+ "<",
1635
+ s(t),
1636
+ ">"
1637
+ ];
1638
+ return null;
1639
+ },
1640
+ hasBody(e) {
1641
+ return e && e.__isVue;
1642
+ },
1643
+ body(e) {
1644
+ if (e && e.__isVue) return [
1645
+ "div",
1646
+ {},
1647
+ ...a(e.$)
1648
+ ];
1649
+ }
1650
+ };
1651
+ function a(e) {
1652
+ let t = [];
1653
+ 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)));
1654
+ let n = c(e, "computed");
1655
+ n && t.push(o("computed", n));
1656
+ let i = c(e, "inject");
1657
+ return i && t.push(o("injected", i)), t.push([
1658
+ "div",
1659
+ {},
1660
+ [
1661
+ "span",
1662
+ { style: r.style + ";opacity:0.66" },
1663
+ "$ (internal): "
1664
+ ],
1665
+ ["object", { object: e }]
1666
+ ]), t;
1667
+ }
1668
+ function o(e, t) {
1669
+ return t = extend$1({}, t), Object.keys(t).length ? [
1670
+ "div",
1671
+ { style: "line-height:1.25em;margin-bottom:0.6em" },
1672
+ [
1673
+ "div",
1674
+ { style: "color:#476582" },
1675
+ e
1676
+ ],
1677
+ [
1678
+ "div",
1679
+ { style: "padding-left:1.25em" },
1680
+ ...Object.keys(t).map((e) => [
1681
+ "div",
1682
+ {},
1683
+ [
1684
+ "span",
1685
+ r,
1686
+ e + ": "
1687
+ ],
1688
+ s(t[e], !1)
1689
+ ])
1690
+ ]
1691
+ ] : ["span", {}];
1692
+ }
1693
+ function s(e, i = !0) {
1694
+ return typeof e == "number" ? [
1695
+ "span",
1696
+ t,
1697
+ e
1698
+ ] : typeof e == "string" ? [
1699
+ "span",
1700
+ n,
1701
+ JSON.stringify(e)
1702
+ ] : typeof e == "boolean" ? [
1703
+ "span",
1704
+ r,
1705
+ e
1706
+ ] : isObject$1(e) ? ["object", { object: i ? /* @__PURE__ */ toRaw(e) : e }] : [
1707
+ "span",
1708
+ n,
1709
+ String(e)
1710
+ ];
1711
+ }
1712
+ function c(e, t) {
1713
+ let n = e.type;
1714
+ if (isFunction$2(n)) return;
1715
+ let r = {};
1716
+ for (let i in e.ctx) l(n, i, t) && (r[i] = e.ctx[i]);
1717
+ return r;
1718
+ }
1719
+ function l(e, t, n) {
1720
+ let r = e[n];
1721
+ if (isArray$1(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;
1722
+ }
1723
+ function u(e) {
1724
+ return /* @__PURE__ */ isShallow(e) ? "ShallowRef" : e.effect ? "ComputedRef" : "Ref";
1725
+ }
1726
+ window.devtoolsFormatters ? window.devtoolsFormatters.push(i) : window.devtoolsFormatters = [i];
1727
+ }
1728
+ process.env.NODE_ENV, process.env.NODE_ENV, process.env.NODE_ENV;
1729
+ /**
1730
+ * vue v3.5.27
1731
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
1732
+ * @license MIT
1733
+ **/
1734
+ function initDev() {
1735
+ initCustomFormatter();
1736
+ }
1737
+ process.env.NODE_ENV !== "production" && initDev();
1738
+ var PromiseContent = class e {
1739
+ [Symbol.toStringTag] = "PromiseContent";
1740
+ static _this;
1741
+ static {
1742
+ this._this = useGlobalVar(this, "data/PromiseContent");
1743
+ }
1744
+ static isPromiseContent(e) {
1745
+ return e instanceof this._this;
1746
+ }
1747
+ static fromPromise(e, t = (e) => e) {
1748
+ return markRaw(new this._this(e, t));
1749
+ }
1750
+ constructor(e, t = (e) => e) {
1751
+ this.promise = e, this.processor = t, this.loadPromise(e);
1752
+ }
1753
+ async loadPromise(e) {
1754
+ this.data.value = void 0, this.isLoading.value = !0, this.isError.value = !1, this.errorCause.value = void 0, this.isEmpty.value = !0;
1755
+ try {
1756
+ let t = await e;
1757
+ this.data.value = this.processor(t), this.isLoading.value = !1, this.isError.value = !1, this.isEmpty.value = isEmpty(t), this.emitter.emit("success", this.data.value);
1758
+ } catch (e) {
1759
+ this.data.value = void 0, this.isError.value = !0, this.errorCause.value = isError(e) ? e : Error(String(e)), console.error("Non-throw Error [PromiseContent]", e), this.emitter.emit("error", e);
1760
+ }
1761
+ this.emitter.emit("finial", void 0);
1762
+ }
1763
+ emitter = mitt_default$1();
1764
+ onError(e) {
1765
+ return this.emitter.on("error", e), () => this.emitter.off("error", e);
1766
+ }
1767
+ onSuccess(e) {
1768
+ return this.emitter.on("success", e), () => this.emitter.off("success", e);
1769
+ }
1770
+ onFinal(e) {
1771
+ return this.emitter.on("finial", e), () => this.emitter.off("finial", e);
1772
+ }
1773
+ setProcessor(t) {
1774
+ return e.fromPromise(this.promise, t);
1775
+ }
1776
+ catch(e) {
1777
+ return this.promise.catch(e);
1778
+ }
1779
+ then(e, t) {
1780
+ return this.promise.then(e, t);
1781
+ }
1782
+ finally(e) {
1783
+ return this.promise.finally(e);
1784
+ }
1785
+ data = /* @__PURE__ */ shallowRef();
1786
+ isLoading = /* @__PURE__ */ shallowRef(!0);
1787
+ isError = /* @__PURE__ */ shallowRef(!1);
1788
+ errorCause = /* @__PURE__ */ shallowRef();
1789
+ isEmpty = /* @__PURE__ */ shallowRef(!0);
1790
+ static fromAsyncFunction(e) {
1791
+ return (...t) => this.fromPromise(e(...t));
1792
+ }
1793
+ static resolve(e) {
1794
+ let t = this.fromPromise(Promise.resolve(e));
1795
+ return t.isLoading.value = !1, t;
1796
+ }
1797
+ static withResolvers(e = !1) {
1798
+ let t = Promise.withResolvers(), n = new this._this(t.promise);
1799
+ return n.isLoading.value = e, {
1800
+ content: n,
1801
+ reject: (e) => {
1802
+ t.reject(e);
1803
+ },
1804
+ resolve: (e) => {
1805
+ t.resolve(e);
1806
+ },
1807
+ reset(e = !1) {
1808
+ t = Promise.withResolvers(), n.loadPromise(t.promise), n.isLoading.value = e;
1809
+ }
1810
+ };
1811
+ }
1812
+ }, SourcedValue = class {
1813
+ toJSON(e) {
1814
+ return isString$3(e) ? this.parse(e) : e;
1815
+ }
1816
+ parse(e) {
1817
+ let t = e.split(this.separator);
1818
+ return [t[0], t.slice(1).join(this.separator)];
1819
+ }
1820
+ toString(e) {
1821
+ return isString$3(e) ? e : this.stringify(e);
1822
+ }
1823
+ stringify(e) {
1824
+ return e.join(this.separator);
1825
+ }
1826
+ constructor(e = ":") {
1827
+ this.separator = e;
1828
+ }
1829
+ }, SourcedKeyMap = class extends SourcedValue {
1830
+ static create(e = ":") {
1831
+ return /* @__PURE__ */ shallowReactive(new this(e));
1832
+ }
1833
+ constructor(e = ":") {
1834
+ super(e);
1835
+ }
1836
+ store = /* @__PURE__ */ shallowReactive(/* @__PURE__ */ new Map());
1837
+ get size() {
1838
+ return this.store.size;
1839
+ }
1840
+ [Symbol.toStringTag] = "SourcedKeyMap";
1841
+ clear() {
1842
+ this.store.clear();
1843
+ }
1844
+ delete(e) {
1845
+ return this.store.delete(this.toString(e));
1846
+ }
1847
+ forEach(e, t) {
1848
+ this.store.forEach((n, r) => {
1849
+ e.call(t, n, r, this);
1850
+ });
1851
+ }
1852
+ get(e) {
1853
+ return this.store.get(this.toString(e));
1854
+ }
1855
+ has(e) {
1856
+ return this.store.has(this.toString(e));
1857
+ }
1858
+ set(e, t) {
1859
+ return this.store.set(this.toString(e), t), this;
1860
+ }
1861
+ entries() {
1862
+ return this.store.entries();
1863
+ }
1864
+ keys() {
1865
+ return this.store.keys();
1866
+ }
1867
+ values() {
1868
+ return this.store.values();
1869
+ }
1870
+ [Symbol.iterator]() {
1871
+ return this.entries();
1872
+ }
1873
+ }, __defProp = Object.defineProperty, __exportAll = (e, t) => {
1874
+ let n = {};
1875
+ for (var r in e) __defProp(n, r, {
1876
+ get: e[r],
1877
+ enumerable: !0
1878
+ });
1879
+ return t || __defProp(n, Symbol.toStringTag, { value: "Module" }), n;
1880
+ };
1881
+ function mitt_default(e) {
1882
+ return {
1883
+ all: e ||= /* @__PURE__ */ new Map(),
1884
+ on: function(t, n) {
1885
+ var r = e.get(t);
1886
+ r ? r.push(n) : e.set(t, [n]);
1887
+ },
1888
+ off: function(t, n) {
1889
+ var r = e.get(t);
1890
+ r && (n ? r.splice(r.indexOf(n) >>> 0, 1) : e.set(t, []));
1891
+ },
1892
+ emit: function(t, n) {
1893
+ var r = e.get(t);
1894
+ r && r.slice().map(function(e) {
1895
+ e(n);
1896
+ }), (r = e.get("*")) && r.slice().map(function(e) {
1897
+ e(t, n);
1898
+ });
1899
+ }
1900
+ };
1901
+ }
1902
+ var SmartAbortController = class {
1903
+ _controller = new AbortController();
1904
+ mitt = mitt_default();
1905
+ get signal() {
1906
+ return this._controller.signal;
1907
+ }
1908
+ abort(e) {
1909
+ this._controller.abort(e), this._controller = new AbortController(), this.mitt.emit("abort");
1910
+ }
1911
+ onAbort(e) {
1912
+ return this.mitt.on("abort", e), () => this.mitt.off("abort", e);
1913
+ }
1914
+ onAbortOnce(e) {
1915
+ let t = async () => {
1916
+ await e(), this.mitt.off("abort", t);
1917
+ };
1918
+ this.mitt.on("abort", t);
1919
+ }
1920
+ };
1921
+ function bind(e, t) {
1922
+ return function() {
1923
+ return e.apply(t, arguments);
1924
+ };
1925
+ }
1926
+ var { toString } = Object.prototype, { getPrototypeOf } = Object, { iterator, toStringTag } = Symbol, kindOf = ((e) => (t) => {
1927
+ let n = toString.call(t);
1928
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
1929
+ })(Object.create(null)), kindOfTest = (e) => (e = e.toLowerCase(), (t) => kindOf(t) === e), typeOfTest = (e) => (t) => typeof t === e, { isArray } = Array, isUndefined = typeOfTest("undefined");
1930
+ function isBuffer(e) {
1931
+ return e !== null && !isUndefined(e) && e.constructor !== null && !isUndefined(e.constructor) && isFunction$1(e.constructor.isBuffer) && e.constructor.isBuffer(e);
1932
+ }
1933
+ var isArrayBuffer = kindOfTest("ArrayBuffer");
1934
+ function isArrayBufferView(e) {
1935
+ let t;
1936
+ return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && isArrayBuffer(e.buffer), t;
1937
+ }
1938
+ var isString = typeOfTest("string"), isFunction$1 = typeOfTest("function"), isNumber = typeOfTest("number"), isObject = (e) => typeof e == "object" && !!e, isBoolean = (e) => e === !0 || e === !1, isPlainObject = (e) => {
1939
+ if (kindOf(e) !== "object") return !1;
1940
+ let t = getPrototypeOf(e);
1941
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(toStringTag in e) && !(iterator in e);
1942
+ }, isEmptyObject = (e) => {
1943
+ if (!isObject(e) || isBuffer(e)) return !1;
1944
+ try {
1945
+ return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
1946
+ } catch {
1947
+ return !1;
1948
+ }
1949
+ }, isDate = kindOfTest("Date"), isFile = kindOfTest("File"), isBlob = kindOfTest("Blob"), isFileList = kindOfTest("FileList"), isStream = (e) => isObject(e) && isFunction$1(e.pipe), isFormData = (e) => {
1950
+ let t;
1951
+ return e && (typeof FormData == "function" && e instanceof FormData || isFunction$1(e.append) && ((t = kindOf(e)) === "formdata" || t === "object" && isFunction$1(e.toString) && e.toString() === "[object FormData]"));
1952
+ }, isURLSearchParams = kindOfTest("URLSearchParams"), [isReadableStream, isRequest, isResponse, isHeaders] = [
1953
+ "ReadableStream",
1954
+ "Request",
1955
+ "Response",
1956
+ "Headers"
1957
+ ].map(kindOfTest), trim = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1958
+ function forEach(e, t, { allOwnKeys: n = !1 } = {}) {
1959
+ if (e == null) return;
1960
+ let r, i;
1961
+ if (typeof e != "object" && (e = [e]), isArray(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e);
1962
+ else {
1963
+ if (isBuffer(e)) return;
1964
+ let i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length, o;
1965
+ for (r = 0; r < a; r++) o = i[r], t.call(null, e[o], o, e);
1966
+ }
1967
+ }
1968
+ function findKey(e, t) {
1969
+ if (isBuffer(e)) return null;
1970
+ t = t.toLowerCase();
1971
+ let n = Object.keys(e), r = n.length, i;
1972
+ for (; r-- > 0;) if (i = n[r], t === i.toLowerCase()) return i;
1973
+ return null;
1974
+ }
1975
+ var _global = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, isContextDefined = (e) => !isUndefined(e) && e !== _global;
1976
+ function merge() {
1977
+ let { caseless: e, skipUndefined: t } = isContextDefined(this) && this || {}, n = {}, r = (r, i) => {
1978
+ if (i === "__proto__" || i === "constructor" || i === "prototype") return;
1979
+ let a = e && findKey(n, i) || i;
1980
+ isPlainObject(n[a]) && isPlainObject(r) ? n[a] = merge(n[a], r) : isPlainObject(r) ? n[a] = merge({}, r) : isArray(r) ? n[a] = r.slice() : (!t || !isUndefined(r)) && (n[a] = r);
1981
+ };
1982
+ for (let e = 0, t = arguments.length; e < t; e++) arguments[e] && forEach(arguments[e], r);
1983
+ return n;
1984
+ }
1985
+ var extend = (e, t, n, { allOwnKeys: r } = {}) => (forEach(t, (t, r) => {
1986
+ n && isFunction$1(t) ? Object.defineProperty(e, r, {
1987
+ value: bind(t, n),
1988
+ writable: !0,
1989
+ enumerable: !0,
1990
+ configurable: !0
1991
+ }) : Object.defineProperty(e, r, {
1992
+ value: t,
1993
+ writable: !0,
1994
+ enumerable: !0,
1995
+ configurable: !0
1996
+ });
1997
+ }, { allOwnKeys: r }), e), stripBOM = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), inherits = (e, t, n, r) => {
1998
+ e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
1999
+ value: e,
2000
+ writable: !0,
2001
+ enumerable: !1,
2002
+ configurable: !0
2003
+ }), Object.defineProperty(e, "super", { value: t.prototype }), n && Object.assign(e.prototype, n);
2004
+ }, toFlatObject = (e, t, n, r) => {
2005
+ let i, a, o, s = {};
2006
+ if (t ||= {}, e == null) return t;
2007
+ do {
2008
+ for (i = Object.getOwnPropertyNames(e), a = i.length; a-- > 0;) o = i[a], (!r || r(o, e, t)) && !s[o] && (t[o] = e[o], s[o] = !0);
2009
+ e = n !== !1 && getPrototypeOf(e);
2010
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
2011
+ return t;
2012
+ }, endsWith = (e, t, n) => {
2013
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
2014
+ let r = e.indexOf(t, n);
2015
+ return r !== -1 && r === n;
2016
+ }, toArray = (e) => {
2017
+ if (!e) return null;
2018
+ if (isArray(e)) return e;
2019
+ let t = e.length;
2020
+ if (!isNumber(t)) return null;
2021
+ let n = Array(t);
2022
+ for (; t-- > 0;) n[t] = e[t];
2023
+ return n;
2024
+ }, isTypedArray = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && getPrototypeOf(Uint8Array)), forEachEntry = (e, t) => {
2025
+ let n = (e && e[iterator]).call(e), r;
2026
+ for (; (r = n.next()) && !r.done;) {
2027
+ let n = r.value;
2028
+ t.call(e, n[0], n[1]);
2029
+ }
2030
+ }, matchAll = (e, t) => {
2031
+ let n, r = [];
2032
+ for (; (n = e.exec(t)) !== null;) r.push(n);
2033
+ return r;
2034
+ }, isHTMLForm = kindOfTest("HTMLFormElement"), toCamelCase = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, n) {
2035
+ return t.toUpperCase() + n;
2036
+ }), hasOwnProperty = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), isRegExp = kindOfTest("RegExp"), reduceDescriptors = (e, t) => {
2037
+ let n = Object.getOwnPropertyDescriptors(e), r = {};
2038
+ forEach(n, (n, i) => {
2039
+ let a;
2040
+ (a = t(n, i, e)) !== !1 && (r[i] = a || n);
2041
+ }), Object.defineProperties(e, r);
2042
+ }, freezeMethods = (e) => {
2043
+ reduceDescriptors(e, (t, n) => {
2044
+ if (isFunction$1(e) && [
2045
+ "arguments",
2046
+ "caller",
2047
+ "callee"
2048
+ ].indexOf(n) !== -1) return !1;
2049
+ let r = e[n];
2050
+ if (isFunction$1(r)) {
2051
+ if (t.enumerable = !1, "writable" in t) {
2052
+ t.writable = !1;
2053
+ return;
2054
+ }
2055
+ t.set ||= () => {
2056
+ throw Error("Can not rewrite read-only method '" + n + "'");
2057
+ };
2058
+ }
2059
+ });
2060
+ }, toObjectSet = (e, t) => {
2061
+ let n = {}, r = (e) => {
2062
+ e.forEach((e) => {
2063
+ n[e] = !0;
2064
+ });
2065
+ };
2066
+ return isArray(e) ? r(e) : r(String(e).split(t)), n;
2067
+ }, noop = () => {}, toFiniteNumber = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
2068
+ function isSpecCompliantForm(e) {
2069
+ return !!(e && isFunction$1(e.append) && e[toStringTag] === "FormData" && e[iterator]);
2070
+ }
2071
+ var toJSONObject = (e) => {
2072
+ let t = Array(10), n = (e, r) => {
2073
+ if (isObject(e)) {
2074
+ if (t.indexOf(e) >= 0) return;
2075
+ if (isBuffer(e)) return e;
2076
+ if (!("toJSON" in e)) {
2077
+ t[r] = e;
2078
+ let i = isArray(e) ? [] : {};
2079
+ return forEach(e, (e, t) => {
2080
+ let a = n(e, r + 1);
2081
+ !isUndefined(a) && (i[t] = a);
2082
+ }), t[r] = void 0, i;
2083
+ }
2084
+ }
2085
+ return e;
2086
+ };
2087
+ return n(e, 0);
2088
+ }, isAsyncFn = kindOfTest("AsyncFunction"), isThenable = (e) => e && (isObject(e) || isFunction$1(e)) && isFunction$1(e.then) && isFunction$1(e.catch), _setImmediate = ((e, t) => e ? setImmediate : t ? ((e, t) => (_global.addEventListener("message", ({ source: n, data: r }) => {
2089
+ n === _global && r === e && t.length && t.shift()();
2090
+ }, !1), (n) => {
2091
+ t.push(n), _global.postMessage(e, "*");
2092
+ }))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function", isFunction$1(_global.postMessage)), utils_default = {
2093
+ isArray,
2094
+ isArrayBuffer,
2095
+ isBuffer,
2096
+ isFormData,
2097
+ isArrayBufferView,
2098
+ isString,
2099
+ isNumber,
2100
+ isBoolean,
2101
+ isObject,
2102
+ isPlainObject,
2103
+ isEmptyObject,
2104
+ isReadableStream,
2105
+ isRequest,
2106
+ isResponse,
2107
+ isHeaders,
2108
+ isUndefined,
2109
+ isDate,
2110
+ isFile,
2111
+ isBlob,
2112
+ isRegExp,
2113
+ isFunction: isFunction$1,
2114
+ isStream,
2115
+ isURLSearchParams,
2116
+ isTypedArray,
2117
+ isFileList,
2118
+ forEach,
2119
+ merge,
2120
+ extend,
2121
+ trim,
2122
+ stripBOM,
2123
+ inherits,
2124
+ toFlatObject,
2125
+ kindOf,
2126
+ kindOfTest,
2127
+ endsWith,
2128
+ toArray,
2129
+ forEachEntry,
2130
+ matchAll,
2131
+ isHTMLForm,
2132
+ hasOwnProperty,
2133
+ hasOwnProp: hasOwnProperty,
2134
+ reduceDescriptors,
2135
+ freezeMethods,
2136
+ toObjectSet,
2137
+ toCamelCase,
2138
+ noop,
2139
+ toFiniteNumber,
2140
+ findKey,
2141
+ global: _global,
2142
+ isContextDefined,
2143
+ isSpecCompliantForm,
2144
+ toJSONObject,
2145
+ isAsyncFn,
2146
+ isThenable,
2147
+ setImmediate: _setImmediate,
2148
+ asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(_global) : typeof process < "u" && process.nextTick || _setImmediate,
2149
+ isIterable: (e) => e != null && isFunction$1(e[iterator])
2150
+ }, AxiosError$1 = class e extends Error {
2151
+ static from(t, n, r, i, a, o) {
2152
+ let s = new e(t.message, n || t.code, r, i, a);
2153
+ return s.cause = t, s.name = t.name, o && Object.assign(s, o), s;
2154
+ }
2155
+ constructor(e, t, n, r, i) {
2156
+ super(e), this.name = "AxiosError", this.isAxiosError = !0, t && (this.code = t), n && (this.config = n), r && (this.request = r), i && (this.response = i, this.status = i.status);
2157
+ }
2158
+ toJSON() {
2159
+ return {
2160
+ message: this.message,
2161
+ name: this.name,
2162
+ description: this.description,
2163
+ number: this.number,
2164
+ fileName: this.fileName,
2165
+ lineNumber: this.lineNumber,
2166
+ columnNumber: this.columnNumber,
2167
+ stack: this.stack,
2168
+ config: utils_default.toJSONObject(this.config),
2169
+ code: this.code,
2170
+ status: this.status
2171
+ };
2172
+ }
2173
+ };
2174
+ AxiosError$1.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE", AxiosError$1.ERR_BAD_OPTION = "ERR_BAD_OPTION", AxiosError$1.ECONNABORTED = "ECONNABORTED", AxiosError$1.ETIMEDOUT = "ETIMEDOUT", AxiosError$1.ERR_NETWORK = "ERR_NETWORK", AxiosError$1.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS", AxiosError$1.ERR_DEPRECATED = "ERR_DEPRECATED", AxiosError$1.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE", AxiosError$1.ERR_BAD_REQUEST = "ERR_BAD_REQUEST", AxiosError$1.ERR_CANCELED = "ERR_CANCELED", AxiosError$1.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT", AxiosError$1.ERR_INVALID_URL = "ERR_INVALID_URL";
2175
+ function isVisitable(e) {
2176
+ return utils_default.isPlainObject(e) || utils_default.isArray(e);
2177
+ }
2178
+ function removeBrackets(e) {
2179
+ return utils_default.endsWith(e, "[]") ? e.slice(0, -2) : e;
2180
+ }
2181
+ function renderKey(e, t, n) {
2182
+ return e ? e.concat(t).map(function(e, t) {
2183
+ return e = removeBrackets(e), !n && t ? "[" + e + "]" : e;
2184
+ }).join(n ? "." : "") : t;
2185
+ }
2186
+ function isFlatArray(e) {
2187
+ return utils_default.isArray(e) && !e.some(isVisitable);
2188
+ }
2189
+ var predicates = utils_default.toFlatObject(utils_default, {}, null, function(e) {
2190
+ return /^is[A-Z]/.test(e);
2191
+ });
2192
+ function toFormData$1(e, t, n) {
2193
+ if (!utils_default.isObject(e)) throw TypeError("target must be an object");
2194
+ t ||= new FormData(), n = utils_default.toFlatObject(n, {
2195
+ metaTokens: !0,
2196
+ dots: !1,
2197
+ indexes: !1
2198
+ }, !1, function(e, t) {
2199
+ return !utils_default.isUndefined(t[e]);
2200
+ });
2201
+ let r = n.metaTokens, i = n.visitor || l, a = n.dots, o = n.indexes, s = (n.Blob || typeof Blob < "u" && Blob) && utils_default.isSpecCompliantForm(t);
2202
+ if (!utils_default.isFunction(i)) throw TypeError("visitor must be a function");
2203
+ function c(e) {
2204
+ if (e === null) return "";
2205
+ if (utils_default.isDate(e)) return e.toISOString();
2206
+ if (utils_default.isBoolean(e)) return e.toString();
2207
+ if (!s && utils_default.isBlob(e)) throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
2208
+ return utils_default.isArrayBuffer(e) || utils_default.isTypedArray(e) ? s && typeof Blob == "function" ? new Blob([e]) : Buffer.from(e) : e;
2209
+ }
2210
+ function l(e, n, i) {
2211
+ let s = e;
2212
+ if (e && !i && typeof e == "object") {
2213
+ if (utils_default.endsWith(n, "{}")) n = r ? n : n.slice(0, -2), e = JSON.stringify(e);
2214
+ else if (utils_default.isArray(e) && isFlatArray(e) || (utils_default.isFileList(e) || utils_default.endsWith(n, "[]")) && (s = utils_default.toArray(e))) return n = removeBrackets(n), s.forEach(function(e, r) {
2215
+ !(utils_default.isUndefined(e) || e === null) && t.append(o === !0 ? renderKey([n], r, a) : o === null ? n : n + "[]", c(e));
2216
+ }), !1;
2217
+ }
2218
+ return isVisitable(e) ? !0 : (t.append(renderKey(i, n, a), c(e)), !1);
2219
+ }
2220
+ let u = [], d = Object.assign(predicates, {
2221
+ defaultVisitor: l,
2222
+ convertValue: c,
2223
+ isVisitable
2224
+ });
2225
+ function f(e, n) {
2226
+ if (!utils_default.isUndefined(e)) {
2227
+ if (u.indexOf(e) !== -1) throw Error("Circular reference detected in " + n.join("."));
2228
+ u.push(e), utils_default.forEach(e, function(e, r) {
2229
+ (!(utils_default.isUndefined(e) || e === null) && i.call(t, e, utils_default.isString(r) ? r.trim() : r, n, d)) === !0 && f(e, n ? n.concat(r) : [r]);
2230
+ }), u.pop();
2231
+ }
2232
+ }
2233
+ if (!utils_default.isObject(e)) throw TypeError("data must be an object");
2234
+ return f(e), t;
2235
+ }
2236
+ function encode$1(e) {
2237
+ let t = {
2238
+ "!": "%21",
2239
+ "'": "%27",
2240
+ "(": "%28",
2241
+ ")": "%29",
2242
+ "~": "%7E",
2243
+ "%20": "+",
2244
+ "%00": "\0"
2245
+ };
2246
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(e) {
2247
+ return t[e];
2248
+ });
2249
+ }
2250
+ function AxiosURLSearchParams(e, t) {
2251
+ this._pairs = [], e && toFormData$1(e, this, t);
2252
+ }
2253
+ var prototype = AxiosURLSearchParams.prototype;
2254
+ prototype.append = function(e, t) {
2255
+ this._pairs.push([e, t]);
2256
+ }, prototype.toString = function(e) {
2257
+ let t = e ? function(t) {
2258
+ return e.call(this, t, encode$1);
2259
+ } : encode$1;
2260
+ return this._pairs.map(function(e) {
2261
+ return t(e[0]) + "=" + t(e[1]);
2262
+ }, "").join("&");
2263
+ };
2264
+ function encode(e) {
2265
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
2266
+ }
2267
+ function buildURL(e, t, n) {
2268
+ if (!t) return e;
2269
+ let r = n && n.encode || encode, i = utils_default.isFunction(n) ? { serialize: n } : n, a = i && i.serialize, o;
2270
+ if (o = a ? a(t, i) : utils_default.isURLSearchParams(t) ? t.toString() : new AxiosURLSearchParams(t, i).toString(r), o) {
2271
+ let t = e.indexOf("#");
2272
+ t !== -1 && (e = e.slice(0, t)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
2273
+ }
2274
+ return e;
2275
+ }
2276
+ var InterceptorManager = class {
2277
+ constructor() {
2278
+ this.handlers = [];
2279
+ }
2280
+ use(e, t, n) {
2281
+ return this.handlers.push({
2282
+ fulfilled: e,
2283
+ rejected: t,
2284
+ synchronous: n ? n.synchronous : !1,
2285
+ runWhen: n ? n.runWhen : null
2286
+ }), this.handlers.length - 1;
2287
+ }
2288
+ eject(e) {
2289
+ this.handlers[e] && (this.handlers[e] = null);
2290
+ }
2291
+ clear() {
2292
+ this.handlers &&= [];
2293
+ }
2294
+ forEach(e) {
2295
+ utils_default.forEach(this.handlers, function(t) {
2296
+ t !== null && e(t);
2297
+ });
2298
+ }
2299
+ }, transitional_default = {
2300
+ silentJSONParsing: !0,
2301
+ forcedJSONParsing: !0,
2302
+ clarifyTimeoutError: !1,
2303
+ legacyInterceptorReqResOrdering: !0
2304
+ }, browser_default = {
2305
+ isBrowser: !0,
2306
+ classes: {
2307
+ URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : AxiosURLSearchParams,
2308
+ FormData: typeof FormData < "u" ? FormData : null,
2309
+ Blob: typeof Blob < "u" ? Blob : null
2310
+ },
2311
+ protocols: [
2312
+ "http",
2313
+ "https",
2314
+ "file",
2315
+ "blob",
2316
+ "url",
2317
+ "data"
2318
+ ]
2319
+ }, utils_exports = /* @__PURE__ */ __exportAll({
2320
+ hasBrowserEnv: () => hasBrowserEnv,
2321
+ hasStandardBrowserEnv: () => hasStandardBrowserEnv,
2322
+ hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv,
2323
+ navigator: () => _navigator,
2324
+ origin: () => origin
2325
+ }), hasBrowserEnv = typeof window < "u" && typeof document < "u", _navigator = typeof navigator == "object" && navigator || void 0, hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || [
2326
+ "ReactNative",
2327
+ "NativeScript",
2328
+ "NS"
2329
+ ].indexOf(_navigator.product) < 0), hasStandardBrowserWebWorkerEnv = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", origin = hasBrowserEnv && window.location.href || "http://localhost", platform_default = {
2330
+ ...utils_exports,
2331
+ ...browser_default
2332
+ };
2333
+ function toURLEncodedForm(e, t) {
2334
+ return toFormData$1(e, new platform_default.classes.URLSearchParams(), {
2335
+ visitor: function(e, t, n, r) {
2336
+ return platform_default.isNode && utils_default.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
2337
+ },
2338
+ ...t
2339
+ });
2340
+ }
2341
+ function parsePropPath(e) {
2342
+ return utils_default.matchAll(/\w+|\[(\w*)]/g, e).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
2343
+ }
2344
+ function arrayToObject(e) {
2345
+ let t = {}, n = Object.keys(e), r, i = n.length, a;
2346
+ for (r = 0; r < i; r++) a = n[r], t[a] = e[a];
2347
+ return t;
2348
+ }
2349
+ function formDataToJSON(e) {
2350
+ function t(e, n, r, i) {
2351
+ let a = e[i++];
2352
+ if (a === "__proto__") return !0;
2353
+ let o = Number.isFinite(+a), s = i >= e.length;
2354
+ return a = !a && utils_default.isArray(r) ? r.length : a, s ? (utils_default.hasOwnProp(r, a) ? r[a] = [r[a], n] : r[a] = n, !o) : ((!r[a] || !utils_default.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && utils_default.isArray(r[a]) && (r[a] = arrayToObject(r[a])), !o);
2355
+ }
2356
+ if (utils_default.isFormData(e) && utils_default.isFunction(e.entries)) {
2357
+ let n = {};
2358
+ return utils_default.forEachEntry(e, (e, r) => {
2359
+ t(parsePropPath(e), r, n, 0);
2360
+ }), n;
2361
+ }
2362
+ return null;
2363
+ }
2364
+ function stringifySafely(e, t, n) {
2365
+ if (utils_default.isString(e)) try {
2366
+ return (t || JSON.parse)(e), utils_default.trim(e);
2367
+ } catch (e) {
2368
+ if (e.name !== "SyntaxError") throw e;
2369
+ }
2370
+ return (n || JSON.stringify)(e);
2371
+ }
2372
+ var defaults = {
2373
+ transitional: transitional_default,
2374
+ adapter: [
2375
+ "xhr",
2376
+ "http",
2377
+ "fetch"
2378
+ ],
2379
+ transformRequest: [function(e, t) {
2380
+ let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i = utils_default.isObject(e);
2381
+ if (i && utils_default.isHTMLForm(e) && (e = new FormData(e)), utils_default.isFormData(e)) return r ? JSON.stringify(formDataToJSON(e)) : e;
2382
+ if (utils_default.isArrayBuffer(e) || utils_default.isBuffer(e) || utils_default.isStream(e) || utils_default.isFile(e) || utils_default.isBlob(e) || utils_default.isReadableStream(e)) return e;
2383
+ if (utils_default.isArrayBufferView(e)) return e.buffer;
2384
+ if (utils_default.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
2385
+ let a;
2386
+ if (i) {
2387
+ if (n.indexOf("application/x-www-form-urlencoded") > -1) return toURLEncodedForm(e, this.formSerializer).toString();
2388
+ if ((a = utils_default.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
2389
+ let t = this.env && this.env.FormData;
2390
+ return toFormData$1(a ? { "files[]": e } : e, t && new t(), this.formSerializer);
2391
+ }
2392
+ }
2393
+ return i || r ? (t.setContentType("application/json", !1), stringifySafely(e)) : e;
2394
+ }],
2395
+ transformResponse: [function(e) {
2396
+ let t = this.transitional || defaults.transitional, n = t && t.forcedJSONParsing, r = this.responseType === "json";
2397
+ if (utils_default.isResponse(e) || utils_default.isReadableStream(e)) return e;
2398
+ if (e && utils_default.isString(e) && (n && !this.responseType || r)) {
2399
+ let n = !(t && t.silentJSONParsing) && r;
2400
+ try {
2401
+ return JSON.parse(e, this.parseReviver);
2402
+ } catch (e) {
2403
+ if (n) throw e.name === "SyntaxError" ? AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response) : e;
2404
+ }
2405
+ }
2406
+ return e;
2407
+ }],
2408
+ timeout: 0,
2409
+ xsrfCookieName: "XSRF-TOKEN",
2410
+ xsrfHeaderName: "X-XSRF-TOKEN",
2411
+ maxContentLength: -1,
2412
+ maxBodyLength: -1,
2413
+ env: {
2414
+ FormData: platform_default.classes.FormData,
2415
+ Blob: platform_default.classes.Blob
2416
+ },
2417
+ validateStatus: function(e) {
2418
+ return e >= 200 && e < 300;
2419
+ },
2420
+ headers: { common: {
2421
+ Accept: "application/json, text/plain, */*",
2422
+ "Content-Type": void 0
2423
+ } }
2424
+ };
2425
+ utils_default.forEach([
2426
+ "delete",
2427
+ "get",
2428
+ "head",
2429
+ "post",
2430
+ "put",
2431
+ "patch"
2432
+ ], (e) => {
2433
+ defaults.headers[e] = {};
2434
+ });
2435
+ var ignoreDuplicateOf = utils_default.toObjectSet([
2436
+ "age",
2437
+ "authorization",
2438
+ "content-length",
2439
+ "content-type",
2440
+ "etag",
2441
+ "expires",
2442
+ "from",
2443
+ "host",
2444
+ "if-modified-since",
2445
+ "if-unmodified-since",
2446
+ "last-modified",
2447
+ "location",
2448
+ "max-forwards",
2449
+ "proxy-authorization",
2450
+ "referer",
2451
+ "retry-after",
2452
+ "user-agent"
2453
+ ]), parseHeaders_default = (e) => {
2454
+ let t = {}, n, r, i;
2455
+ return e && e.split("\n").forEach(function(e) {
2456
+ i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] && ignoreDuplicateOf[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
2457
+ }), t;
2458
+ }, $internals = Symbol("internals");
2459
+ function normalizeHeader(e) {
2460
+ return e && String(e).trim().toLowerCase();
2461
+ }
2462
+ function normalizeValue(e) {
2463
+ return e === !1 || e == null ? e : utils_default.isArray(e) ? e.map(normalizeValue) : String(e);
2464
+ }
2465
+ function parseTokens(e) {
2466
+ let t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g, r;
2467
+ for (; r = n.exec(e);) t[r[1]] = r[2];
2468
+ return t;
2469
+ }
2470
+ var isValidHeaderName = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
2471
+ function matchHeaderValue(e, t, n, r, i) {
2472
+ if (utils_default.isFunction(r)) return r.call(this, t, n);
2473
+ if (i && (t = n), utils_default.isString(t)) {
2474
+ if (utils_default.isString(r)) return t.indexOf(r) !== -1;
2475
+ if (utils_default.isRegExp(r)) return r.test(t);
2476
+ }
2477
+ }
2478
+ function formatHeader(e) {
2479
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, n) => t.toUpperCase() + n);
2480
+ }
2481
+ function buildAccessors(e, t) {
2482
+ let n = utils_default.toCamelCase(" " + t);
2483
+ [
2484
+ "get",
2485
+ "set",
2486
+ "has"
2487
+ ].forEach((r) => {
2488
+ Object.defineProperty(e, r + n, {
2489
+ value: function(e, n, i) {
2490
+ return this[r].call(this, t, e, n, i);
2491
+ },
2492
+ configurable: !0
2493
+ });
2494
+ });
2495
+ }
2496
+ var AxiosHeaders$1 = class {
2497
+ constructor(e) {
2498
+ e && this.set(e);
2499
+ }
2500
+ set(e, t, n) {
2501
+ let r = this;
2502
+ function i(e, t, n) {
2503
+ let i = normalizeHeader(t);
2504
+ if (!i) throw Error("header name must be a non-empty string");
2505
+ let a = utils_default.findKey(r, i);
2506
+ (!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] = normalizeValue(e));
2507
+ }
2508
+ let a = (e, t) => utils_default.forEach(e, (e, n) => i(e, n, t));
2509
+ if (utils_default.isPlainObject(e) || e instanceof this.constructor) a(e, t);
2510
+ else if (utils_default.isString(e) && (e = e.trim()) && !isValidHeaderName(e)) a(parseHeaders_default(e), t);
2511
+ else if (utils_default.isObject(e) && utils_default.isIterable(e)) {
2512
+ let n = {}, r, i;
2513
+ for (let t of e) {
2514
+ if (!utils_default.isArray(t)) throw TypeError("Object iterator must return a key-value pair");
2515
+ n[i = t[0]] = (r = n[i]) ? utils_default.isArray(r) ? [...r, t[1]] : [r, t[1]] : t[1];
2516
+ }
2517
+ a(n, t);
2518
+ } else e != null && i(t, e, n);
2519
+ return this;
2520
+ }
2521
+ get(e, t) {
2522
+ if (e = normalizeHeader(e), e) {
2523
+ let n = utils_default.findKey(this, e);
2524
+ if (n) {
2525
+ let e = this[n];
2526
+ if (!t) return e;
2527
+ if (t === !0) return parseTokens(e);
2528
+ if (utils_default.isFunction(t)) return t.call(this, e, n);
2529
+ if (utils_default.isRegExp(t)) return t.exec(e);
2530
+ throw TypeError("parser must be boolean|regexp|function");
2531
+ }
2532
+ }
2533
+ }
2534
+ has(e, t) {
2535
+ if (e = normalizeHeader(e), e) {
2536
+ let n = utils_default.findKey(this, e);
2537
+ return !!(n && this[n] !== void 0 && (!t || matchHeaderValue(this, this[n], n, t)));
2538
+ }
2539
+ return !1;
2540
+ }
2541
+ delete(e, t) {
2542
+ let n = this, r = !1;
2543
+ function i(e) {
2544
+ if (e = normalizeHeader(e), e) {
2545
+ let i = utils_default.findKey(n, e);
2546
+ i && (!t || matchHeaderValue(n, n[i], i, t)) && (delete n[i], r = !0);
2547
+ }
2548
+ }
2549
+ return utils_default.isArray(e) ? e.forEach(i) : i(e), r;
2550
+ }
2551
+ clear(e) {
2552
+ let t = Object.keys(this), n = t.length, r = !1;
2553
+ for (; n--;) {
2554
+ let i = t[n];
2555
+ (!e || matchHeaderValue(this, this[i], i, e, !0)) && (delete this[i], r = !0);
2556
+ }
2557
+ return r;
2558
+ }
2559
+ normalize(e) {
2560
+ let t = this, n = {};
2561
+ return utils_default.forEach(this, (r, i) => {
2562
+ let a = utils_default.findKey(n, i);
2563
+ if (a) {
2564
+ t[a] = normalizeValue(r), delete t[i];
2565
+ return;
2566
+ }
2567
+ let o = e ? formatHeader(i) : String(i).trim();
2568
+ o !== i && delete t[i], t[o] = normalizeValue(r), n[o] = !0;
2569
+ }), this;
2570
+ }
2571
+ concat(...e) {
2572
+ return this.constructor.concat(this, ...e);
2573
+ }
2574
+ toJSON(e) {
2575
+ let t = Object.create(null);
2576
+ return utils_default.forEach(this, (n, r) => {
2577
+ n != null && n !== !1 && (t[r] = e && utils_default.isArray(n) ? n.join(", ") : n);
2578
+ }), t;
2579
+ }
2580
+ [Symbol.iterator]() {
2581
+ return Object.entries(this.toJSON())[Symbol.iterator]();
2582
+ }
2583
+ toString() {
2584
+ return Object.entries(this.toJSON()).map(([e, t]) => e + ": " + t).join("\n");
2585
+ }
2586
+ getSetCookie() {
2587
+ return this.get("set-cookie") || [];
2588
+ }
2589
+ get [Symbol.toStringTag]() {
2590
+ return "AxiosHeaders";
2591
+ }
2592
+ static from(e) {
2593
+ return e instanceof this ? e : new this(e);
2594
+ }
2595
+ static concat(e, ...t) {
2596
+ let n = new this(e);
2597
+ return t.forEach((e) => n.set(e)), n;
2598
+ }
2599
+ static accessor(e) {
2600
+ let t = (this[$internals] = this[$internals] = { accessors: {} }).accessors, n = this.prototype;
2601
+ function r(e) {
2602
+ let r = normalizeHeader(e);
2603
+ t[r] || (buildAccessors(n, e), t[r] = !0);
2604
+ }
2605
+ return utils_default.isArray(e) ? e.forEach(r) : r(e), this;
2606
+ }
2607
+ };
2608
+ AxiosHeaders$1.accessor([
2609
+ "Content-Type",
2610
+ "Content-Length",
2611
+ "Accept",
2612
+ "Accept-Encoding",
2613
+ "User-Agent",
2614
+ "Authorization"
2615
+ ]), utils_default.reduceDescriptors(AxiosHeaders$1.prototype, ({ value: e }, t) => {
2616
+ let n = t[0].toUpperCase() + t.slice(1);
2617
+ return {
2618
+ get: () => e,
2619
+ set(e) {
2620
+ this[n] = e;
2621
+ }
2622
+ };
2623
+ }), utils_default.freezeMethods(AxiosHeaders$1);
2624
+ function transformData(e, t) {
2625
+ let n = this || defaults, r = t || n, i = AxiosHeaders$1.from(r.headers), a = r.data;
2626
+ return utils_default.forEach(e, function(e) {
2627
+ a = e.call(n, a, i.normalize(), t ? t.status : void 0);
2628
+ }), i.normalize(), a;
2629
+ }
2630
+ function isCancel$1(e) {
2631
+ return !!(e && e.__CANCEL__);
2632
+ }
2633
+ var CanceledError$1 = class extends AxiosError$1 {
2634
+ constructor(e, t, n) {
2635
+ super(e ?? "canceled", AxiosError$1.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
2636
+ }
2637
+ };
2638
+ function settle(e, t, n) {
2639
+ let r = n.config.validateStatus;
2640
+ !n.status || !r || r(n.status) ? e(n) : t(new AxiosError$1("Request failed with status code " + n.status, [AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n));
2641
+ }
2642
+ function parseProtocol(e) {
2643
+ let t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
2644
+ return t && t[1] || "";
2645
+ }
2646
+ function speedometer(e, t) {
2647
+ e ||= 10;
2648
+ let n = Array(e), r = Array(e), i = 0, a = 0, o;
2649
+ return t = t === void 0 ? 1e3 : t, function(s) {
2650
+ let c = Date.now(), l = r[a];
2651
+ o ||= c, n[i] = s, r[i] = c;
2652
+ let u = a, d = 0;
2653
+ for (; u !== i;) d += n[u++], u %= e;
2654
+ if (i = (i + 1) % e, i === a && (a = (a + 1) % e), c - o < t) return;
2655
+ let f = l && c - l;
2656
+ return f ? Math.round(d * 1e3 / f) : void 0;
2657
+ };
2658
+ }
2659
+ function throttle(e, t) {
2660
+ let n = 0, r = 1e3 / t, i, a, o = (t, r = Date.now()) => {
2661
+ n = r, i = null, a &&= (clearTimeout(a), null), e(...t);
2662
+ };
2663
+ return [(...e) => {
2664
+ let t = Date.now(), s = t - n;
2665
+ s >= r ? o(e, t) : (i = e, a ||= setTimeout(() => {
2666
+ a = null, o(i);
2667
+ }, r - s));
2668
+ }, () => i && o(i)];
2669
+ }
2670
+ var progressEventReducer = (e, t, n = 3) => {
2671
+ let r = 0, i = speedometer(50, 250);
2672
+ return throttle((n) => {
2673
+ let a = n.loaded, o = n.lengthComputable ? n.total : void 0, s = a - r, c = i(s), l = a <= o;
2674
+ r = a, e({
2675
+ loaded: a,
2676
+ total: o,
2677
+ progress: o ? a / o : void 0,
2678
+ bytes: s,
2679
+ rate: c || void 0,
2680
+ estimated: c && o && l ? (o - a) / c : void 0,
2681
+ event: n,
2682
+ lengthComputable: o != null,
2683
+ [t ? "download" : "upload"]: !0
2684
+ });
2685
+ }, n);
2686
+ }, progressEventDecorator = (e, t) => {
2687
+ let n = e != null;
2688
+ return [(r) => t[0]({
2689
+ lengthComputable: n,
2690
+ total: e,
2691
+ loaded: r
2692
+ }), t[1]];
2693
+ }, asyncDecorator = (e) => (...t) => utils_default.asap(() => e(...t)), isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, platform_default.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(platform_default.origin), platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)) : () => !0, cookies_default = platform_default.hasStandardBrowserEnv ? {
2694
+ write(e, t, n, r, i, a, o) {
2695
+ if (typeof document > "u") return;
2696
+ let s = [`${e}=${encodeURIComponent(t)}`];
2697
+ utils_default.isNumber(n) && s.push(`expires=${new Date(n).toUTCString()}`), utils_default.isString(r) && s.push(`path=${r}`), utils_default.isString(i) && s.push(`domain=${i}`), a === !0 && s.push("secure"), utils_default.isString(o) && s.push(`SameSite=${o}`), document.cookie = s.join("; ");
2698
+ },
2699
+ read(e) {
2700
+ if (typeof document > "u") return null;
2701
+ let t = document.cookie.match(RegExp("(?:^|; )" + e + "=([^;]*)"));
2702
+ return t ? decodeURIComponent(t[1]) : null;
2703
+ },
2704
+ remove(e) {
2705
+ this.write(e, "", Date.now() - 864e5, "/");
2706
+ }
2707
+ } : {
2708
+ write() {},
2709
+ read() {
2710
+ return null;
2711
+ },
2712
+ remove() {}
2713
+ };
2714
+ function isAbsoluteURL(e) {
2715
+ return typeof e == "string" ? /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) : !1;
2716
+ }
2717
+ function combineURLs(e, t) {
2718
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
2719
+ }
2720
+ function buildFullPath(e, t, n) {
2721
+ let r = !isAbsoluteURL(t);
2722
+ return e && (r || n == 0) ? combineURLs(e, t) : t;
2723
+ }
2724
+ var headersToObject = (e) => e instanceof AxiosHeaders$1 ? { ...e } : e;
2725
+ function mergeConfig$1(e, t) {
2726
+ t ||= {};
2727
+ let n = {};
2728
+ function r(e, t, n, r) {
2729
+ return utils_default.isPlainObject(e) && utils_default.isPlainObject(t) ? utils_default.merge.call({ caseless: r }, e, t) : utils_default.isPlainObject(t) ? utils_default.merge({}, t) : utils_default.isArray(t) ? t.slice() : t;
2730
+ }
2731
+ function i(e, t, n, i) {
2732
+ if (!utils_default.isUndefined(t)) return r(e, t, n, i);
2733
+ if (!utils_default.isUndefined(e)) return r(void 0, e, n, i);
2734
+ }
2735
+ function a(e, t) {
2736
+ if (!utils_default.isUndefined(t)) return r(void 0, t);
2737
+ }
2738
+ function o(e, t) {
2739
+ if (!utils_default.isUndefined(t)) return r(void 0, t);
2740
+ if (!utils_default.isUndefined(e)) return r(void 0, e);
2741
+ }
2742
+ function s(n, i, a) {
2743
+ if (a in t) return r(n, i);
2744
+ if (a in e) return r(void 0, n);
2745
+ }
2746
+ let c = {
2747
+ url: a,
2748
+ method: a,
2749
+ data: a,
2750
+ baseURL: o,
2751
+ transformRequest: o,
2752
+ transformResponse: o,
2753
+ paramsSerializer: o,
2754
+ timeout: o,
2755
+ timeoutMessage: o,
2756
+ withCredentials: o,
2757
+ withXSRFToken: o,
2758
+ adapter: o,
2759
+ responseType: o,
2760
+ xsrfCookieName: o,
2761
+ xsrfHeaderName: o,
2762
+ onUploadProgress: o,
2763
+ onDownloadProgress: o,
2764
+ decompress: o,
2765
+ maxContentLength: o,
2766
+ maxBodyLength: o,
2767
+ beforeRedirect: o,
2768
+ transport: o,
2769
+ httpAgent: o,
2770
+ httpsAgent: o,
2771
+ cancelToken: o,
2772
+ socketPath: o,
2773
+ responseEncoding: o,
2774
+ validateStatus: s,
2775
+ headers: (e, t, n) => i(headersToObject(e), headersToObject(t), n, !0)
2776
+ };
2777
+ return utils_default.forEach(Object.keys({
2778
+ ...e,
2779
+ ...t
2780
+ }), function(r) {
2781
+ if (r === "__proto__" || r === "constructor" || r === "prototype") return;
2782
+ let a = utils_default.hasOwnProp(c, r) ? c[r] : i, o = a(e[r], t[r], r);
2783
+ utils_default.isUndefined(o) && a !== s || (n[r] = o);
2784
+ }), n;
2785
+ }
2786
+ var resolveConfig_default = (e) => {
2787
+ let t = mergeConfig$1({}, e), { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: s } = t;
2788
+ if (t.headers = o = AxiosHeaders$1.from(o), t.url = buildURL(buildFullPath(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), s && o.set("Authorization", "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))), utils_default.isFormData(n)) {
2789
+ if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) o.setContentType(void 0);
2790
+ else if (utils_default.isFunction(n.getHeaders)) {
2791
+ let e = n.getHeaders(), t = ["content-type", "content-length"];
2792
+ Object.entries(e).forEach(([e, n]) => {
2793
+ t.includes(e.toLowerCase()) && o.set(e, n);
2794
+ });
2795
+ }
2796
+ }
2797
+ if (platform_default.hasStandardBrowserEnv && (r && utils_default.isFunction(r) && (r = r(t)), r || r !== !1 && isURLSameOrigin_default(t.url))) {
2798
+ let e = i && a && cookies_default.read(a);
2799
+ e && o.set(i, e);
2800
+ }
2801
+ return t;
2802
+ }, xhr_default = typeof XMLHttpRequest < "u" && function(e) {
2803
+ return new Promise(function(t, n) {
2804
+ let r = resolveConfig_default(e), i = r.data, a = AxiosHeaders$1.from(r.headers).normalize(), { responseType: o, onUploadProgress: s, onDownloadProgress: c } = r, l, u, d, f, p;
2805
+ function m() {
2806
+ f && f(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
2807
+ }
2808
+ let h = new XMLHttpRequest();
2809
+ h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
2810
+ function g() {
2811
+ if (!h) return;
2812
+ let r = AxiosHeaders$1.from("getAllResponseHeaders" in h && h.getAllResponseHeaders());
2813
+ settle(function(e) {
2814
+ t(e), m();
2815
+ }, function(e) {
2816
+ n(e), m();
2817
+ }, {
2818
+ data: !o || o === "text" || o === "json" ? h.responseText : h.response,
2819
+ status: h.status,
2820
+ statusText: h.statusText,
2821
+ headers: r,
2822
+ config: e,
2823
+ request: h
2824
+ }), h = null;
2825
+ }
2826
+ "onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() {
2827
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(g);
2828
+ }, h.onabort = function() {
2829
+ h &&= (n(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, e, h)), null);
2830
+ }, h.onerror = function(t) {
2831
+ let r = new AxiosError$1(t && t.message ? t.message : "Network Error", AxiosError$1.ERR_NETWORK, e, h);
2832
+ r.event = t || null, n(r), h = null;
2833
+ }, h.ontimeout = function() {
2834
+ let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional || transitional_default;
2835
+ r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new AxiosError$1(t, i.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED, e, h)), h = null;
2836
+ }, i === void 0 && a.setContentType(null), "setRequestHeader" in h && utils_default.forEach(a.toJSON(), function(e, t) {
2837
+ h.setRequestHeader(t, e);
2838
+ }), utils_default.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), o && o !== "json" && (h.responseType = r.responseType), c && ([d, p] = progressEventReducer(c, !0), h.addEventListener("progress", d)), s && h.upload && ([u, f] = progressEventReducer(s), h.upload.addEventListener("progress", u), h.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (l = (t) => {
2839
+ h &&= (n(!t || t.type ? new CanceledError$1(null, e, h) : t), h.abort(), null);
2840
+ }, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
2841
+ let _ = parseProtocol(r.url);
2842
+ if (_ && platform_default.protocols.indexOf(_) === -1) {
2843
+ n(new AxiosError$1("Unsupported protocol " + _ + ":", AxiosError$1.ERR_BAD_REQUEST, e));
2844
+ return;
2845
+ }
2846
+ h.send(i || null);
2847
+ });
2848
+ }, composeSignals = (e, t) => {
2849
+ let { length: n } = e = e ? e.filter(Boolean) : [];
2850
+ if (t || n) {
2851
+ let n = new AbortController(), r, i = function(e) {
2852
+ if (!r) {
2853
+ r = !0, o();
2854
+ let t = e instanceof Error ? e : this.reason;
2855
+ n.abort(t instanceof AxiosError$1 ? t : new CanceledError$1(t instanceof Error ? t.message : t));
2856
+ }
2857
+ }, a = t && setTimeout(() => {
2858
+ a = null, i(new AxiosError$1(`timeout of ${t}ms exceeded`, AxiosError$1.ETIMEDOUT));
2859
+ }, t), o = () => {
2860
+ e &&= (a && clearTimeout(a), a = null, e.forEach((e) => {
2861
+ e.unsubscribe ? e.unsubscribe(i) : e.removeEventListener("abort", i);
2862
+ }), null);
2863
+ };
2864
+ e.forEach((e) => e.addEventListener("abort", i));
2865
+ let { signal: s } = n;
2866
+ return s.unsubscribe = () => utils_default.asap(o), s;
2867
+ }
2868
+ }, streamChunk = function* (e, t) {
2869
+ let n = e.byteLength;
2870
+ if (!t || n < t) {
2871
+ yield e;
2872
+ return;
2873
+ }
2874
+ let r = 0, i;
2875
+ for (; r < n;) i = r + t, yield e.slice(r, i), r = i;
2876
+ }, readBytes = async function* (e, t) {
2877
+ for await (let n of readStream(e)) yield* streamChunk(n, t);
2878
+ }, readStream = async function* (e) {
2879
+ if (e[Symbol.asyncIterator]) {
2880
+ yield* e;
2881
+ return;
2882
+ }
2883
+ let t = e.getReader();
2884
+ try {
2885
+ for (;;) {
2886
+ let { done: e, value: n } = await t.read();
2887
+ if (e) break;
2888
+ yield n;
2889
+ }
2890
+ } finally {
2891
+ await t.cancel();
2892
+ }
2893
+ }, trackStream = (e, t, n, r) => {
2894
+ let i = readBytes(e, t), a = 0, o, s = (e) => {
2895
+ o || (o = !0, r && r(e));
2896
+ };
2897
+ return new ReadableStream({
2898
+ async pull(e) {
2899
+ try {
2900
+ let { done: t, value: r } = await i.next();
2901
+ if (t) {
2902
+ s(), e.close();
2903
+ return;
2904
+ }
2905
+ let o = r.byteLength;
2906
+ n && n(a += o), e.enqueue(new Uint8Array(r));
2907
+ } catch (e) {
2908
+ throw s(e), e;
2909
+ }
2910
+ },
2911
+ cancel(e) {
2912
+ return s(e), i.return();
2913
+ }
2914
+ }, { highWaterMark: 2 });
2915
+ }, DEFAULT_CHUNK_SIZE = 64 * 1024, { isFunction } = utils_default, globalFetchAPI = (({ Request: e, Response: t }) => ({
2916
+ Request: e,
2917
+ Response: t
2918
+ }))(utils_default.global), { ReadableStream: ReadableStream$1, TextEncoder } = utils_default.global, test = (e, ...t) => {
2919
+ try {
2920
+ return !!e(...t);
2921
+ } catch {
2922
+ return !1;
2923
+ }
2924
+ }, factory = (e) => {
2925
+ e = utils_default.merge.call({ skipUndefined: !0 }, globalFetchAPI, e);
2926
+ let { fetch: t, Request: n, Response: r } = e, i = t ? isFunction(t) : typeof fetch == "function", a = isFunction(n), o = isFunction(r);
2927
+ if (!i) return !1;
2928
+ let s = i && isFunction(ReadableStream$1), c = i && (typeof TextEncoder == "function" ? ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new n(e).arrayBuffer())), l = a && s && test(() => {
2929
+ let e = !1, t = new n(platform_default.origin, {
2930
+ body: new ReadableStream$1(),
2931
+ method: "POST",
2932
+ get duplex() {
2933
+ return e = !0, "half";
2934
+ }
2935
+ }).headers.has("Content-Type");
2936
+ return e && !t;
2937
+ }), u = o && s && test(() => utils_default.isReadableStream(new r("").body)), d = { stream: u && ((e) => e.body) };
2938
+ i && [
2939
+ "text",
2940
+ "arrayBuffer",
2941
+ "blob",
2942
+ "formData",
2943
+ "stream"
2944
+ ].forEach((e) => {
2945
+ !d[e] && (d[e] = (t, n) => {
2946
+ let r = t && t[e];
2947
+ if (r) return r.call(t);
2948
+ throw new AxiosError$1(`Response type '${e}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, n);
2949
+ });
2950
+ });
2951
+ let f = async (e) => {
2952
+ if (e == null) return 0;
2953
+ if (utils_default.isBlob(e)) return e.size;
2954
+ if (utils_default.isSpecCompliantForm(e)) return (await new n(platform_default.origin, {
2955
+ method: "POST",
2956
+ body: e
2957
+ }).arrayBuffer()).byteLength;
2958
+ if (utils_default.isArrayBufferView(e) || utils_default.isArrayBuffer(e)) return e.byteLength;
2959
+ if (utils_default.isURLSearchParams(e) && (e += ""), utils_default.isString(e)) return (await c(e)).byteLength;
2960
+ }, p = async (e, t) => utils_default.toFiniteNumber(e.getContentLength()) ?? f(t);
2961
+ return async (e) => {
2962
+ let { url: i, method: o, data: s, signal: c, cancelToken: f, timeout: m, onDownloadProgress: h, onUploadProgress: g, responseType: _, headers: v, withCredentials: y = "same-origin", fetchOptions: b } = resolveConfig_default(e), x = t || fetch;
2963
+ _ = _ ? (_ + "").toLowerCase() : "text";
2964
+ let S = composeSignals([c, f && f.toAbortSignal()], m), C = null, w = S && S.unsubscribe && (() => {
2965
+ S.unsubscribe();
2966
+ }), T;
2967
+ try {
2968
+ if (g && l && o !== "get" && o !== "head" && (T = await p(v, s)) !== 0) {
2969
+ let e = new n(i, {
2970
+ method: "POST",
2971
+ body: s,
2972
+ duplex: "half"
2973
+ }), t;
2974
+ if (utils_default.isFormData(s) && (t = e.headers.get("content-type")) && v.setContentType(t), e.body) {
2975
+ let [t, n] = progressEventDecorator(T, progressEventReducer(asyncDecorator(g)));
2976
+ s = trackStream(e.body, DEFAULT_CHUNK_SIZE, t, n);
2977
+ }
2978
+ }
2979
+ utils_default.isString(y) || (y = y ? "include" : "omit");
2980
+ let t = a && "credentials" in n.prototype, c = {
2981
+ ...b,
2982
+ signal: S,
2983
+ method: o.toUpperCase(),
2984
+ headers: v.normalize().toJSON(),
2985
+ body: s,
2986
+ duplex: "half",
2987
+ credentials: t ? y : void 0
2988
+ };
2989
+ C = a && new n(i, c);
2990
+ let f = await (a ? x(C, b) : x(i, c)), m = u && (_ === "stream" || _ === "response");
2991
+ if (u && (h || m && w)) {
2992
+ let e = {};
2993
+ [
2994
+ "status",
2995
+ "statusText",
2996
+ "headers"
2997
+ ].forEach((t) => {
2998
+ e[t] = f[t];
2999
+ });
3000
+ let t = utils_default.toFiniteNumber(f.headers.get("content-length")), [n, i] = h && progressEventDecorator(t, progressEventReducer(asyncDecorator(h), !0)) || [];
3001
+ f = new r(trackStream(f.body, DEFAULT_CHUNK_SIZE, n, () => {
3002
+ i && i(), w && w();
3003
+ }), e);
3004
+ }
3005
+ _ ||= "text";
3006
+ let E = await d[utils_default.findKey(d, _) || "text"](f, e);
3007
+ return !m && w && w(), await new Promise((t, n) => {
3008
+ settle(t, n, {
3009
+ data: E,
3010
+ headers: AxiosHeaders$1.from(f.headers),
3011
+ status: f.status,
3012
+ statusText: f.statusText,
3013
+ config: e,
3014
+ request: C
3015
+ });
3016
+ });
3017
+ } catch (t) {
3018
+ throw w && w(), t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message) ? Object.assign(new AxiosError$1("Network Error", AxiosError$1.ERR_NETWORK, e, C, t && t.response), { cause: t.cause || t }) : AxiosError$1.from(t, t && t.code, e, C, t && t.response);
3019
+ }
3020
+ };
3021
+ }, seedCache = /* @__PURE__ */ new Map(), getFetch = (e) => {
3022
+ let t = e && e.env || {}, { fetch: n, Request: r, Response: i } = t, a = [
3023
+ r,
3024
+ i,
3025
+ n
3026
+ ], o = a.length, s, c, l = seedCache;
3027
+ for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() : factory(t)), l = c;
3028
+ return c;
3029
+ };
3030
+ getFetch();
3031
+ var knownAdapters = {
3032
+ http: null,
3033
+ xhr: xhr_default,
3034
+ fetch: { get: getFetch }
3035
+ };
3036
+ utils_default.forEach(knownAdapters, (e, t) => {
3037
+ if (e) {
3038
+ try {
3039
+ Object.defineProperty(e, "name", { value: t });
3040
+ } catch {}
3041
+ Object.defineProperty(e, "adapterName", { value: t });
3042
+ }
3043
+ });
3044
+ var renderReason = (e) => `- ${e}`, isResolvedHandle = (e) => utils_default.isFunction(e) || e === null || e === !1;
3045
+ function getAdapter$1(e, t) {
3046
+ e = utils_default.isArray(e) ? e : [e];
3047
+ let { length: n } = e, r, i, a = {};
3048
+ for (let o = 0; o < n; o++) {
3049
+ r = e[o];
3050
+ let n;
3051
+ if (i = r, !isResolvedHandle(r) && (i = knownAdapters[(n = String(r)).toLowerCase()], i === void 0)) throw new AxiosError$1(`Unknown adapter '${n}'`);
3052
+ if (i && (utils_default.isFunction(i) || (i = i.get(t)))) break;
3053
+ a[n || "#" + o] = i;
3054
+ }
3055
+ if (!i) {
3056
+ let e = Object.entries(a).map(([e, t]) => `adapter ${e} ` + (t === !1 ? "is not supported by the environment" : "is not available in the build"));
3057
+ throw new AxiosError$1("There is no suitable adapter to dispatch the request " + (n ? e.length > 1 ? "since :\n" + e.map(renderReason).join("\n") : " " + renderReason(e[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT");
3058
+ }
3059
+ return i;
3060
+ }
3061
+ var adapters_default = {
3062
+ getAdapter: getAdapter$1,
3063
+ adapters: knownAdapters
3064
+ };
3065
+ function throwIfCancellationRequested(e) {
3066
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new CanceledError$1(null, e);
3067
+ }
3068
+ function dispatchRequest(e) {
3069
+ return throwIfCancellationRequested(e), e.headers = AxiosHeaders$1.from(e.headers), e.data = transformData.call(e, e.transformRequest), [
3070
+ "post",
3071
+ "put",
3072
+ "patch"
3073
+ ].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), adapters_default.getAdapter(e.adapter || defaults.adapter, e)(e).then(function(t) {
3074
+ return throwIfCancellationRequested(e), t.data = transformData.call(e, e.transformResponse, t), t.headers = AxiosHeaders$1.from(t.headers), t;
3075
+ }, function(t) {
3076
+ return isCancel$1(t) || (throwIfCancellationRequested(e), t && t.response && (t.response.data = transformData.call(e, e.transformResponse, t.response), t.response.headers = AxiosHeaders$1.from(t.response.headers))), Promise.reject(t);
3077
+ });
3078
+ }
3079
+ var VERSION$1 = "1.13.5", validators$1 = {};
3080
+ [
3081
+ "object",
3082
+ "boolean",
3083
+ "number",
3084
+ "function",
3085
+ "string",
3086
+ "symbol"
3087
+ ].forEach((e, t) => {
3088
+ validators$1[e] = function(n) {
3089
+ return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
3090
+ };
3091
+ });
3092
+ var deprecatedWarnings = {};
3093
+ validators$1.transitional = function(e, t, n) {
3094
+ function r(e, t) {
3095
+ return "[Axios v" + VERSION$1 + "] Transitional option '" + e + "'" + t + (n ? ". " + n : "");
3096
+ }
3097
+ return (n, i, a) => {
3098
+ if (e === !1) throw new AxiosError$1(r(i, " has been removed" + (t ? " in " + t : "")), AxiosError$1.ERR_DEPRECATED);
3099
+ return t && !deprecatedWarnings[i] && (deprecatedWarnings[i] = !0, console.warn(r(i, " has been deprecated since v" + t + " and will be removed in the near future"))), e ? e(n, i, a) : !0;
3100
+ };
3101
+ }, validators$1.spelling = function(e) {
3102
+ return (t, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
3103
+ };
3104
+ function assertOptions(e, t, n) {
3105
+ if (typeof e != "object") throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
3106
+ let r = Object.keys(e), i = r.length;
3107
+ for (; i-- > 0;) {
3108
+ let a = r[i], o = t[a];
3109
+ if (o) {
3110
+ let t = e[a], n = t === void 0 || o(t, a, e);
3111
+ if (n !== !0) throw new AxiosError$1("option " + a + " must be " + n, AxiosError$1.ERR_BAD_OPTION_VALUE);
3112
+ continue;
3113
+ }
3114
+ if (n !== !0) throw new AxiosError$1("Unknown option " + a, AxiosError$1.ERR_BAD_OPTION);
3115
+ }
3116
+ }
3117
+ var validator_default = {
3118
+ assertOptions,
3119
+ validators: validators$1
3120
+ }, validators = validator_default.validators, Axios$1 = class {
3121
+ constructor(e) {
3122
+ this.defaults = e || {}, this.interceptors = {
3123
+ request: new InterceptorManager(),
3124
+ response: new InterceptorManager()
3125
+ };
3126
+ }
3127
+ async request(e, t) {
3128
+ try {
3129
+ return await this._request(e, t);
3130
+ } catch (e) {
3131
+ if (e instanceof Error) {
3132
+ let t = {};
3133
+ Error.captureStackTrace ? Error.captureStackTrace(t) : t = /* @__PURE__ */ Error();
3134
+ let n = t.stack ? t.stack.replace(/^.+\n/, "") : "";
3135
+ try {
3136
+ e.stack ? n && !String(e.stack).endsWith(n.replace(/^.+\n.+\n/, "")) && (e.stack += "\n" + n) : e.stack = n;
3137
+ } catch {}
3138
+ }
3139
+ throw e;
3140
+ }
3141
+ }
3142
+ _request(e, t) {
3143
+ typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t = mergeConfig$1(this.defaults, t);
3144
+ let { transitional: n, paramsSerializer: r, headers: i } = t;
3145
+ n !== void 0 && validator_default.assertOptions(n, {
3146
+ silentJSONParsing: validators.transitional(validators.boolean),
3147
+ forcedJSONParsing: validators.transitional(validators.boolean),
3148
+ clarifyTimeoutError: validators.transitional(validators.boolean),
3149
+ legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
3150
+ }, !1), r != null && (utils_default.isFunction(r) ? t.paramsSerializer = { serialize: r } : validator_default.assertOptions(r, {
3151
+ encode: validators.function,
3152
+ serialize: validators.function
3153
+ }, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls), validator_default.assertOptions(t, {
3154
+ baseUrl: validators.spelling("baseURL"),
3155
+ withXsrfToken: validators.spelling("withXSRFToken")
3156
+ }, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
3157
+ let a = i && utils_default.merge(i.common, i[t.method]);
3158
+ i && utils_default.forEach([
3159
+ "delete",
3160
+ "get",
3161
+ "head",
3162
+ "post",
3163
+ "put",
3164
+ "patch",
3165
+ "common"
3166
+ ], (e) => {
3167
+ delete i[e];
3168
+ }), t.headers = AxiosHeaders$1.concat(a, i);
3169
+ let o = [], s = !0;
3170
+ this.interceptors.request.forEach(function(e) {
3171
+ if (typeof e.runWhen == "function" && e.runWhen(t) === !1) return;
3172
+ s &&= e.synchronous;
3173
+ let n = t.transitional || transitional_default;
3174
+ n && n.legacyInterceptorReqResOrdering ? o.unshift(e.fulfilled, e.rejected) : o.push(e.fulfilled, e.rejected);
3175
+ });
3176
+ let c = [];
3177
+ this.interceptors.response.forEach(function(e) {
3178
+ c.push(e.fulfilled, e.rejected);
3179
+ });
3180
+ let l, u = 0, d;
3181
+ if (!s) {
3182
+ let e = [dispatchRequest.bind(this), void 0];
3183
+ for (e.unshift(...o), e.push(...c), d = e.length, l = Promise.resolve(t); u < d;) l = l.then(e[u++], e[u++]);
3184
+ return l;
3185
+ }
3186
+ d = o.length;
3187
+ let f = t;
3188
+ for (; u < d;) {
3189
+ let e = o[u++], t = o[u++];
3190
+ try {
3191
+ f = e(f);
3192
+ } catch (e) {
3193
+ t.call(this, e);
3194
+ break;
3195
+ }
3196
+ }
3197
+ try {
3198
+ l = dispatchRequest.call(this, f);
3199
+ } catch (e) {
3200
+ return Promise.reject(e);
3201
+ }
3202
+ for (u = 0, d = c.length; u < d;) l = l.then(c[u++], c[u++]);
3203
+ return l;
3204
+ }
3205
+ getUri(e) {
3206
+ return e = mergeConfig$1(this.defaults, e), buildURL(buildFullPath(e.baseURL, e.url, e.allowAbsoluteUrls), e.params, e.paramsSerializer);
3207
+ }
3208
+ };
3209
+ utils_default.forEach([
3210
+ "delete",
3211
+ "get",
3212
+ "head",
3213
+ "options"
3214
+ ], function(e) {
3215
+ Axios$1.prototype[e] = function(t, n) {
3216
+ return this.request(mergeConfig$1(n || {}, {
3217
+ method: e,
3218
+ url: t,
3219
+ data: (n || {}).data
3220
+ }));
3221
+ };
3222
+ }), utils_default.forEach([
3223
+ "post",
3224
+ "put",
3225
+ "patch"
3226
+ ], function(e) {
3227
+ function t(t) {
3228
+ return function(n, r, i) {
3229
+ return this.request(mergeConfig$1(i || {}, {
3230
+ method: e,
3231
+ headers: t ? { "Content-Type": "multipart/form-data" } : {},
3232
+ url: n,
3233
+ data: r
3234
+ }));
3235
+ };
3236
+ }
3237
+ Axios$1.prototype[e] = t(), Axios$1.prototype[e + "Form"] = t(!0);
3238
+ });
3239
+ var CancelToken$1 = class e {
3240
+ constructor(e) {
3241
+ if (typeof e != "function") throw TypeError("executor must be a function.");
3242
+ let t;
3243
+ this.promise = new Promise(function(e) {
3244
+ t = e;
3245
+ });
3246
+ let n = this;
3247
+ this.promise.then((e) => {
3248
+ if (!n._listeners) return;
3249
+ let t = n._listeners.length;
3250
+ for (; t-- > 0;) n._listeners[t](e);
3251
+ n._listeners = null;
3252
+ }), this.promise.then = (e) => {
3253
+ let t, r = new Promise((e) => {
3254
+ n.subscribe(e), t = e;
3255
+ }).then(e);
3256
+ return r.cancel = function() {
3257
+ n.unsubscribe(t);
3258
+ }, r;
3259
+ }, e(function(e, r, i) {
3260
+ n.reason || (n.reason = new CanceledError$1(e, r, i), t(n.reason));
3261
+ });
3262
+ }
3263
+ throwIfRequested() {
3264
+ if (this.reason) throw this.reason;
3265
+ }
3266
+ subscribe(e) {
3267
+ if (this.reason) {
3268
+ e(this.reason);
3269
+ return;
3270
+ }
3271
+ this._listeners ? this._listeners.push(e) : this._listeners = [e];
3272
+ }
3273
+ unsubscribe(e) {
3274
+ if (!this._listeners) return;
3275
+ let t = this._listeners.indexOf(e);
3276
+ t !== -1 && this._listeners.splice(t, 1);
3277
+ }
3278
+ toAbortSignal() {
3279
+ let e = new AbortController(), t = (t) => {
3280
+ e.abort(t);
3281
+ };
3282
+ return this.subscribe(t), e.signal.unsubscribe = () => this.unsubscribe(t), e.signal;
3283
+ }
3284
+ static source() {
3285
+ let t;
3286
+ return {
3287
+ token: new e(function(e) {
3288
+ t = e;
3289
+ }),
3290
+ cancel: t
3291
+ };
3292
+ }
3293
+ };
3294
+ function spread$1(e) {
3295
+ return function(t) {
3296
+ return e.apply(null, t);
3297
+ };
3298
+ }
3299
+ function isAxiosError$1(e) {
3300
+ return utils_default.isObject(e) && e.isAxiosError === !0;
3301
+ }
3302
+ var HttpStatusCode$1 = {
3303
+ Continue: 100,
3304
+ SwitchingProtocols: 101,
3305
+ Processing: 102,
3306
+ EarlyHints: 103,
3307
+ Ok: 200,
3308
+ Created: 201,
3309
+ Accepted: 202,
3310
+ NonAuthoritativeInformation: 203,
3311
+ NoContent: 204,
3312
+ ResetContent: 205,
3313
+ PartialContent: 206,
3314
+ MultiStatus: 207,
3315
+ AlreadyReported: 208,
3316
+ ImUsed: 226,
3317
+ MultipleChoices: 300,
3318
+ MovedPermanently: 301,
3319
+ Found: 302,
3320
+ SeeOther: 303,
3321
+ NotModified: 304,
3322
+ UseProxy: 305,
3323
+ Unused: 306,
3324
+ TemporaryRedirect: 307,
3325
+ PermanentRedirect: 308,
3326
+ BadRequest: 400,
3327
+ Unauthorized: 401,
3328
+ PaymentRequired: 402,
3329
+ Forbidden: 403,
3330
+ NotFound: 404,
3331
+ MethodNotAllowed: 405,
3332
+ NotAcceptable: 406,
3333
+ ProxyAuthenticationRequired: 407,
3334
+ RequestTimeout: 408,
3335
+ Conflict: 409,
3336
+ Gone: 410,
3337
+ LengthRequired: 411,
3338
+ PreconditionFailed: 412,
3339
+ PayloadTooLarge: 413,
3340
+ UriTooLong: 414,
3341
+ UnsupportedMediaType: 415,
3342
+ RangeNotSatisfiable: 416,
3343
+ ExpectationFailed: 417,
3344
+ ImATeapot: 418,
3345
+ MisdirectedRequest: 421,
3346
+ UnprocessableEntity: 422,
3347
+ Locked: 423,
3348
+ FailedDependency: 424,
3349
+ TooEarly: 425,
3350
+ UpgradeRequired: 426,
3351
+ PreconditionRequired: 428,
3352
+ TooManyRequests: 429,
3353
+ RequestHeaderFieldsTooLarge: 431,
3354
+ UnavailableForLegalReasons: 451,
3355
+ InternalServerError: 500,
3356
+ NotImplemented: 501,
3357
+ BadGateway: 502,
3358
+ ServiceUnavailable: 503,
3359
+ GatewayTimeout: 504,
3360
+ HttpVersionNotSupported: 505,
3361
+ VariantAlsoNegotiates: 506,
3362
+ InsufficientStorage: 507,
3363
+ LoopDetected: 508,
3364
+ NotExtended: 510,
3365
+ NetworkAuthenticationRequired: 511,
3366
+ WebServerIsDown: 521,
3367
+ ConnectionTimedOut: 522,
3368
+ OriginIsUnreachable: 523,
3369
+ TimeoutOccurred: 524,
3370
+ SslHandshakeFailed: 525,
3371
+ InvalidSslCertificate: 526
3372
+ };
3373
+ Object.entries(HttpStatusCode$1).forEach(([e, t]) => {
3374
+ HttpStatusCode$1[t] = e;
3375
+ });
3376
+ function createInstance(e) {
3377
+ let t = new Axios$1(e), n = bind(Axios$1.prototype.request, t);
3378
+ return utils_default.extend(n, Axios$1.prototype, t, { allOwnKeys: !0 }), utils_default.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
3379
+ return createInstance(mergeConfig$1(e, t));
3380
+ }, n;
3381
+ }
3382
+ var axios = createInstance(defaults);
3383
+ axios.Axios = Axios$1, axios.CanceledError = CanceledError$1, axios.CancelToken = CancelToken$1, axios.isCancel = isCancel$1, axios.VERSION = VERSION$1, axios.toFormData = toFormData$1, axios.AxiosError = AxiosError$1, axios.Cancel = axios.CanceledError, axios.all = function(e) {
3384
+ return Promise.all(e);
3385
+ }, axios.spread = spread$1, axios.isAxiosError = isAxiosError$1, axios.mergeConfig = mergeConfig$1, axios.AxiosHeaders = AxiosHeaders$1, axios.formToJSON = (e) => formDataToJSON(utils_default.isHTMLForm(e) ? new FormData(e) : e), axios.getAdapter = adapters_default.getAdapter, axios.HttpStatusCode = HttpStatusCode$1, axios.default = axios;
3386
+ var { Axios, AxiosError, CanceledError, isCancel, CancelToken, VERSION, all, Cancel, isAxiosError, spread, toFormData, AxiosHeaders, HttpStatusCode, formToJSON, getAdapter, mergeConfig } = axios;
3387
+ Error, typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
3388
+ function promiseTimeout(e, t = !1, n = "Timeout") {
3389
+ return new Promise((r, i) => {
3390
+ t ? setTimeout(() => i(n), e) : setTimeout(r, e);
3391
+ });
3392
+ }
3393
+ function createUntil(e, t = !1) {
3394
+ function n(n, { flush: r = "sync", deep: i = !1, timeout: a, throwOnTimeout: o } = {}) {
3395
+ let s = null, c = [new Promise((a) => {
3396
+ s = watch(e, (e) => {
3397
+ n(e) !== t && (s ? s() : nextTick(() => s?.()), a(e));
3398
+ }, {
3399
+ flush: r,
3400
+ deep: i,
3401
+ immediate: !0
3402
+ });
3403
+ })];
3404
+ return a != null && c.push(promiseTimeout(a, o).then(() => toValue(e)).finally(() => s?.())), Promise.race(c);
3405
+ }
3406
+ function r(r, i) {
3407
+ if (!/* @__PURE__ */ isRef(r)) return n((e) => e === r, i);
3408
+ let { flush: a = "sync", deep: o = !1, timeout: s, throwOnTimeout: c } = i ?? {}, l = null, u = [new Promise((n) => {
3409
+ l = watch([e, r], ([e, r]) => {
3410
+ t !== (e === r) && (l ? l() : nextTick(() => l?.()), n(e));
3411
+ }, {
3412
+ flush: a,
3413
+ deep: o,
3414
+ immediate: !0
3415
+ });
3416
+ })];
3417
+ return s != null && u.push(promiseTimeout(s, c).then(() => toValue(e)).finally(() => (l?.(), toValue(e)))), Promise.race(u);
3418
+ }
3419
+ function i(e) {
3420
+ return n((e) => !!e, e);
3421
+ }
3422
+ function a(e) {
3423
+ return r(null, e);
3424
+ }
3425
+ function o(e) {
3426
+ return r(void 0, e);
3427
+ }
3428
+ function s(e) {
3429
+ return n(Number.isNaN, e);
3430
+ }
3431
+ function c(e, t) {
3432
+ return n((t) => {
3433
+ let n = Array.from(t);
3434
+ return n.includes(e) || n.includes(toValue(e));
3435
+ }, t);
3436
+ }
3437
+ function l(e) {
3438
+ return u(1, e);
3439
+ }
3440
+ function u(e = 1, t) {
3441
+ let r = -1;
3442
+ return n(() => (r += 1, r >= e), t);
3443
+ }
3444
+ return Array.isArray(toValue(e)) ? {
3445
+ toMatch: n,
3446
+ toContains: c,
3447
+ changed: l,
3448
+ changedTimes: u,
3449
+ get not() {
3450
+ return createUntil(e, !t);
3451
+ }
3452
+ } : {
3453
+ toMatch: n,
3454
+ toBe: r,
3455
+ toBeTruthy: i,
3456
+ toBeNull: a,
3457
+ toBeNaN: s,
3458
+ toBeUndefined: o,
3459
+ changed: l,
3460
+ changedTimes: u,
3461
+ get not() {
3462
+ return createUntil(e, !t);
3463
+ }
3464
+ };
3465
+ }
3466
+ function until(e) {
3467
+ return createUntil(e);
3468
+ }
3469
+ var generatorMap = /* @__PURE__ */ new Map(), Stream = class {
3470
+ constructor(e) {
3471
+ this.generator = e(this.abortController.signal, this), generatorMap.set(this, e);
3472
+ }
3473
+ static _this;
3474
+ static {
3475
+ this._this = useGlobalVar(this, "data/Stream");
3476
+ }
3477
+ static isStream(e) {
3478
+ return e instanceof this._this;
3479
+ }
3480
+ static create(e) {
3481
+ return markRaw(new this._this(e));
3482
+ }
3483
+ abortController = new SmartAbortController();
3484
+ generator;
3485
+ _setupData = [];
3486
+ setupData(e) {
3487
+ return this._setupData.push(...e), this.data.value.unshift(...e), this;
3488
+ }
3489
+ async next(e = !1) {
3490
+ try {
3491
+ if (e || (await until(this.isRequesting).toBe(!1), this.isRequesting.value = !0), this._isDone) return e || (this.isRequesting.value = !1), {
3492
+ done: !0,
3493
+ value: void 0
3494
+ };
3495
+ e && console.log("igRequesting next");
3496
+ let { value: t, done: n } = await this.generator.next(this);
3497
+ return this.isDone.value = n ?? !1, e || (this.isRequesting.value = !1), n ? {
3498
+ done: !0,
3499
+ value: void 0
3500
+ } : (this.data.value.push(...t), {
3501
+ value: t,
3502
+ done: n
3503
+ });
3504
+ } catch (t) {
3505
+ throw e || (this.isRequesting.value = !1), this.error.value = t, t;
3506
+ }
3507
+ }
3508
+ async return() {
3509
+ return await this.generator.return?.() ?? {
3510
+ value: void 0,
3511
+ done: !0
3512
+ };
3513
+ }
3514
+ async throw(e) {
3515
+ return await this.generator.throw?.(e) ?? {
3516
+ value: void 0,
3517
+ done: !0
3518
+ };
3519
+ }
3520
+ reset() {
3521
+ this.generator = generatorMap.get(this)(this.abortController.signal, this), this.total.value = NaN, this.page.value = 0, this.pageSize.value = NaN, this.data.value = this._setupData, this.isDone.value = !1, this.isRequesting.value = !1, this.error.value = void 0;
3522
+ }
3523
+ async retry() {
3524
+ return this.page.value--, this.next();
3525
+ }
3526
+ async nextToDone() {
3527
+ isNaN(this._pages) && await this.next(!0);
3528
+ let e = [];
3529
+ for (let t = this._page + 1; t <= this._pages; t++) e.push(this.next(!0));
3530
+ return await Promise.all(e), this._data;
3531
+ }
3532
+ stop() {
3533
+ this.abortController.abort(), this.isRequesting.value = !1;
3534
+ }
3535
+ [Symbol.asyncIterator]() {
3536
+ return this;
3537
+ }
3538
+ error = /* @__PURE__ */ shallowRef();
3539
+ data = /* @__PURE__ */ ref([]);
3540
+ get _data() {
3541
+ return this.data.value;
3542
+ }
3543
+ page = /* @__PURE__ */ shallowRef(0);
3544
+ get _page() {
3545
+ return this.page.value;
3546
+ }
3547
+ pages = /* @__PURE__ */ shallowRef(NaN);
3548
+ get _pages() {
3549
+ return this.pages.value;
3550
+ }
3551
+ total = /* @__PURE__ */ shallowRef(NaN);
3552
+ get _total() {
3553
+ return this.total.value;
3554
+ }
3555
+ pageSize = /* @__PURE__ */ shallowRef(NaN);
3556
+ get _pageSize() {
3557
+ return this.pageSize.value;
3558
+ }
3559
+ length = computed(() => this.data.value.length);
3560
+ get _length() {
3561
+ return this.data.value.length;
3562
+ }
3563
+ isRequesting = /* @__PURE__ */ shallowRef(!1);
3564
+ get _isRequesting() {
3565
+ return this.isRequesting.value;
3566
+ }
3567
+ isDone = /* @__PURE__ */ shallowRef(!1);
3568
+ get _isDone() {
3569
+ return this.isDone.value;
3570
+ }
3571
+ isNoData = computed(() => this.isDone.value && this.isEmpty.value);
3572
+ get _isNoData() {
3573
+ return this.isNoData.value;
3574
+ }
3575
+ isEmpty = computed(() => this.length.value === 0);
3576
+ get _isEmpty() {
3577
+ return this.isEmpty.value;
3578
+ }
3579
+ };
3580
+ const callbackToPromise = (e) => {
3581
+ let { resolve: t, promise: n } = Promise.withResolvers();
3582
+ return e(t), n;
3583
+ };
3584
+ var Struct = class e {
3585
+ toJSON() {
3586
+ return JSON.parse(JSON.stringify(this.$$raw));
3587
+ }
3588
+ constructor(e) {
3589
+ this.$$raw = e;
3590
+ }
3591
+ static toRaw(t) {
3592
+ return t instanceof e ? t.toJSON() : t;
3593
+ }
3594
+ }, require_dayjs_min = /* @__PURE__ */ __commonJSMin(((e, t) => {
3595
+ (function(n, r) {
3596
+ typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
3597
+ })(e, (function() {
3598
+ var e = 1e3, t = 6e4, n = 36e5, r = "millisecond", i = "second", a = "minute", o = "hour", s = "day", c = "week", l = "month", u = "quarter", d = "year", f = "date", p = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, h = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = {
3599
+ name: "en",
3600
+ weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
3601
+ months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
3602
+ ordinal: function(e) {
3603
+ var t = [
3604
+ "th",
3605
+ "st",
3606
+ "nd",
3607
+ "rd"
3608
+ ], n = e % 100;
3609
+ return "[" + e + (t[(n - 20) % 10] || t[n] || t[0]) + "]";
3610
+ }
3611
+ }, _ = function(e, t, n) {
3612
+ var r = String(e);
3613
+ return !r || r.length >= t ? e : "" + Array(t + 1 - r.length).join(n) + e;
3614
+ }, v = {
3615
+ s: _,
3616
+ z: function(e) {
3617
+ var t = -e.utcOffset(), n = Math.abs(t), r = Math.floor(n / 60), i = n % 60;
3618
+ return (t <= 0 ? "+" : "-") + _(r, 2, "0") + ":" + _(i, 2, "0");
3619
+ },
3620
+ m: function e(t, n) {
3621
+ if (t.date() < n.date()) return -e(n, t);
3622
+ var r = 12 * (n.year() - t.year()) + (n.month() - t.month()), i = t.clone().add(r, l), a = n - i < 0, o = t.clone().add(r + (a ? -1 : 1), l);
3623
+ return +(-(r + (n - i) / (a ? i - o : o - i)) || 0);
3624
+ },
3625
+ a: function(e) {
3626
+ return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
3627
+ },
3628
+ p: function(e) {
3629
+ return {
3630
+ M: l,
3631
+ y: d,
3632
+ w: c,
3633
+ d: s,
3634
+ D: f,
3635
+ h: o,
3636
+ m: a,
3637
+ s: i,
3638
+ ms: r,
3639
+ Q: u
3640
+ }[e] || String(e || "").toLowerCase().replace(/s$/, "");
3641
+ },
3642
+ u: function(e) {
3643
+ return e === void 0;
3644
+ }
3645
+ }, y = "en", b = {};
3646
+ b[y] = g;
3647
+ var x = "$isDayjsObject", S = function(e) {
3648
+ return e instanceof E || !(!e || !e[x]);
3649
+ }, C = function e(t, n, r) {
3650
+ var i;
3651
+ if (!t) return y;
3652
+ if (typeof t == "string") {
3653
+ var a = t.toLowerCase();
3654
+ b[a] && (i = a), n && (b[a] = n, i = a);
3655
+ var o = t.split("-");
3656
+ if (!i && o.length > 1) return e(o[0]);
3657
+ } else {
3658
+ var s = t.name;
3659
+ b[s] = t, i = s;
3660
+ }
3661
+ return !r && i && (y = i), i || !r && y;
3662
+ }, w = function(e, t) {
3663
+ if (S(e)) return e.clone();
3664
+ var n = typeof t == "object" ? t : {};
3665
+ return n.date = e, n.args = arguments, new E(n);
3666
+ }, T = v;
3667
+ T.l = C, T.i = S, T.w = function(e, t) {
3668
+ return w(e, {
3669
+ locale: t.$L,
3670
+ utc: t.$u,
3671
+ x: t.$x,
3672
+ $offset: t.$offset
3673
+ });
3674
+ };
3675
+ var E = function() {
3676
+ function g(e) {
3677
+ this.$L = C(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[x] = !0;
3678
+ }
3679
+ var _ = g.prototype;
3680
+ return _.parse = function(e) {
3681
+ this.$d = function(e) {
3682
+ var t = e.date, n = e.utc;
3683
+ if (t === null) return /* @__PURE__ */ new Date(NaN);
3684
+ if (T.u(t)) return /* @__PURE__ */ new Date();
3685
+ if (t instanceof Date) return new Date(t);
3686
+ if (typeof t == "string" && !/Z$/i.test(t)) {
3687
+ var r = t.match(m);
3688
+ if (r) {
3689
+ var i = r[2] - 1 || 0, a = (r[7] || "0").substring(0, 3);
3690
+ return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, a)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, a);
3691
+ }
3692
+ }
3693
+ return new Date(t);
3694
+ }(e), this.init();
3695
+ }, _.init = function() {
3696
+ var e = this.$d;
3697
+ this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
3698
+ }, _.$utils = function() {
3699
+ return T;
3700
+ }, _.isValid = function() {
3701
+ return this.$d.toString() !== p;
3702
+ }, _.isSame = function(e, t) {
3703
+ var n = w(e);
3704
+ return this.startOf(t) <= n && n <= this.endOf(t);
3705
+ }, _.isAfter = function(e, t) {
3706
+ return w(e) < this.startOf(t);
3707
+ }, _.isBefore = function(e, t) {
3708
+ return this.endOf(t) < w(e);
3709
+ }, _.$g = function(e, t, n) {
3710
+ return T.u(e) ? this[t] : this.set(n, e);
3711
+ }, _.unix = function() {
3712
+ return Math.floor(this.valueOf() / 1e3);
3713
+ }, _.valueOf = function() {
3714
+ return this.$d.getTime();
3715
+ }, _.startOf = function(e, t) {
3716
+ var n = this, r = !!T.u(t) || t, u = T.p(e), p = function(e, t) {
3717
+ var i = T.w(n.$u ? Date.UTC(n.$y, t, e) : new Date(n.$y, t, e), n);
3718
+ return r ? i : i.endOf(s);
3719
+ }, m = function(e, t) {
3720
+ return T.w(n.toDate()[e].apply(n.toDate("s"), (r ? [
3721
+ 0,
3722
+ 0,
3723
+ 0,
3724
+ 0
3725
+ ] : [
3726
+ 23,
3727
+ 59,
3728
+ 59,
3729
+ 999
3730
+ ]).slice(t)), n);
3731
+ }, h = this.$W, g = this.$M, _ = this.$D, v = "set" + (this.$u ? "UTC" : "");
3732
+ switch (u) {
3733
+ case d: return r ? p(1, 0) : p(31, 11);
3734
+ case l: return r ? p(1, g) : p(0, g + 1);
3735
+ case c:
3736
+ var y = this.$locale().weekStart || 0, b = (h < y ? h + 7 : h) - y;
3737
+ return p(r ? _ - b : _ + (6 - b), g);
3738
+ case s:
3739
+ case f: return m(v + "Hours", 0);
3740
+ case o: return m(v + "Minutes", 1);
3741
+ case a: return m(v + "Seconds", 2);
3742
+ case i: return m(v + "Milliseconds", 3);
3743
+ default: return this.clone();
3744
+ }
3745
+ }, _.endOf = function(e) {
3746
+ return this.startOf(e, !1);
3747
+ }, _.$set = function(e, t) {
3748
+ var n, c = T.p(e), u = "set" + (this.$u ? "UTC" : ""), p = (n = {}, n[s] = u + "Date", n[f] = u + "Date", n[l] = u + "Month", n[d] = u + "FullYear", n[o] = u + "Hours", n[a] = u + "Minutes", n[i] = u + "Seconds", n[r] = u + "Milliseconds", n)[c], m = c === s ? this.$D + (t - this.$W) : t;
3749
+ if (c === l || c === d) {
3750
+ var h = this.clone().set(f, 1);
3751
+ h.$d[p](m), h.init(), this.$d = h.set(f, Math.min(this.$D, h.daysInMonth())).$d;
3752
+ } else p && this.$d[p](m);
3753
+ return this.init(), this;
3754
+ }, _.set = function(e, t) {
3755
+ return this.clone().$set(e, t);
3756
+ }, _.get = function(e) {
3757
+ return this[T.p(e)]();
3758
+ }, _.add = function(r, u) {
3759
+ var f, p = this;
3760
+ r = Number(r);
3761
+ var m = T.p(u), h = function(e) {
3762
+ var t = w(p);
3763
+ return T.w(t.date(t.date() + Math.round(e * r)), p);
3764
+ };
3765
+ if (m === l) return this.set(l, this.$M + r);
3766
+ if (m === d) return this.set(d, this.$y + r);
3767
+ if (m === s) return h(1);
3768
+ if (m === c) return h(7);
3769
+ var g = (f = {}, f[a] = t, f[o] = n, f[i] = e, f)[m] || 1, _ = this.$d.getTime() + r * g;
3770
+ return T.w(_, this);
3771
+ }, _.subtract = function(e, t) {
3772
+ return this.add(-1 * e, t);
3773
+ }, _.format = function(e) {
3774
+ var t = this, n = this.$locale();
3775
+ if (!this.isValid()) return n.invalidDate || p;
3776
+ var r = e || "YYYY-MM-DDTHH:mm:ssZ", i = T.z(this), a = this.$H, o = this.$m, s = this.$M, c = n.weekdays, l = n.months, u = n.meridiem, d = function(e, n, i, a) {
3777
+ return e && (e[n] || e(t, r)) || i[n].slice(0, a);
3778
+ }, f = function(e) {
3779
+ return T.s(a % 12 || 12, e, "0");
3780
+ }, m = u || function(e, t, n) {
3781
+ var r = e < 12 ? "AM" : "PM";
3782
+ return n ? r.toLowerCase() : r;
3783
+ };
3784
+ return r.replace(h, (function(e, r) {
3785
+ return r || function(e) {
3786
+ switch (e) {
3787
+ case "YY": return String(t.$y).slice(-2);
3788
+ case "YYYY": return T.s(t.$y, 4, "0");
3789
+ case "M": return s + 1;
3790
+ case "MM": return T.s(s + 1, 2, "0");
3791
+ case "MMM": return d(n.monthsShort, s, l, 3);
3792
+ case "MMMM": return d(l, s);
3793
+ case "D": return t.$D;
3794
+ case "DD": return T.s(t.$D, 2, "0");
3795
+ case "d": return String(t.$W);
3796
+ case "dd": return d(n.weekdaysMin, t.$W, c, 2);
3797
+ case "ddd": return d(n.weekdaysShort, t.$W, c, 3);
3798
+ case "dddd": return c[t.$W];
3799
+ case "H": return String(a);
3800
+ case "HH": return T.s(a, 2, "0");
3801
+ case "h": return f(1);
3802
+ case "hh": return f(2);
3803
+ case "a": return m(a, o, !0);
3804
+ case "A": return m(a, o, !1);
3805
+ case "m": return String(o);
3806
+ case "mm": return T.s(o, 2, "0");
3807
+ case "s": return String(t.$s);
3808
+ case "ss": return T.s(t.$s, 2, "0");
3809
+ case "SSS": return T.s(t.$ms, 3, "0");
3810
+ case "Z": return i;
3811
+ }
3812
+ return null;
3813
+ }(e) || i.replace(":", "");
3814
+ }));
3815
+ }, _.utcOffset = function() {
3816
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
3817
+ }, _.diff = function(r, f, p) {
3818
+ var m, h = this, g = T.p(f), _ = w(r), v = (_.utcOffset() - this.utcOffset()) * t, y = this - _, b = function() {
3819
+ return T.m(h, _);
3820
+ };
3821
+ switch (g) {
3822
+ case d:
3823
+ m = b() / 12;
3824
+ break;
3825
+ case l:
3826
+ m = b();
3827
+ break;
3828
+ case u:
3829
+ m = b() / 3;
3830
+ break;
3831
+ case c:
3832
+ m = (y - v) / 6048e5;
3833
+ break;
3834
+ case s:
3835
+ m = (y - v) / 864e5;
3836
+ break;
3837
+ case o:
3838
+ m = y / n;
3839
+ break;
3840
+ case a:
3841
+ m = y / t;
3842
+ break;
3843
+ case i:
3844
+ m = y / e;
3845
+ break;
3846
+ default: m = y;
3847
+ }
3848
+ return p ? m : T.a(m);
3849
+ }, _.daysInMonth = function() {
3850
+ return this.endOf(l).$D;
3851
+ }, _.$locale = function() {
3852
+ return b[this.$L];
3853
+ }, _.locale = function(e, t) {
3854
+ if (!e) return this.$L;
3855
+ var n = this.clone(), r = C(e, t, !0);
3856
+ return r && (n.$L = r), n;
3857
+ }, _.clone = function() {
3858
+ return T.w(this.$d, this);
3859
+ }, _.toDate = function() {
3860
+ return new Date(this.valueOf());
3861
+ }, _.toJSON = function() {
3862
+ return this.isValid() ? this.toISOString() : null;
3863
+ }, _.toISOString = function() {
3864
+ return this.$d.toISOString();
3865
+ }, _.toString = function() {
3866
+ return this.$d.toUTCString();
3867
+ }, g;
3868
+ }(), D = E.prototype;
3869
+ return w.prototype = D, [
3870
+ ["$ms", r],
3871
+ ["$s", i],
3872
+ ["$m", a],
3873
+ ["$H", o],
3874
+ ["$W", s],
3875
+ ["$M", l],
3876
+ ["$y", d],
3877
+ ["$D", f]
3878
+ ].forEach((function(e) {
3879
+ D[e[1]] = function(t) {
3880
+ return this.$g(t, e[0], e[1]);
3881
+ };
3882
+ })), w.extend = function(e, t) {
3883
+ return e.$i ||= (e(t, E, w), !0), w;
3884
+ }, w.locale = C, w.isDayjs = S, w.unix = function(e) {
3885
+ return w(1e3 * e);
3886
+ }, w.en = b[y], w.Ls = b, w.p = {}, w;
3887
+ }));
3888
+ })), comment_exports = /* @__PURE__ */ __exportAll$1({ Comment: () => Comment }), import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min(), 1), Comment = class extends Struct {
3889
+ static commentRow = SourcedKeyMap.create();
3890
+ constructor(e) {
3891
+ super(e), this.content = e.content, this.time = e.time, this.id = e.id, this.childrenCount = e.childrenCount, this.likeCount = e.likeCount, this.isLiked = e.isLiked, this.reported = e.reported, this.$$plugin = e.$$plugin, this.$$meta = e.$$meta, this.isTop = e.isTop;
3892
+ }
3893
+ content;
3894
+ time;
3895
+ get $time() {
3896
+ return (0, import_dayjs_min.default)(this.time);
3897
+ }
3898
+ id;
3899
+ childrenCount;
3900
+ likeCount;
3901
+ isTop;
3902
+ isLiked;
3903
+ reported;
3904
+ $$plugin;
3905
+ $$meta;
3906
+ }, ep_exports = /* @__PURE__ */ __exportAll$1({ Ep: () => Ep }), Ep = class extends Struct {
3907
+ name;
3908
+ index;
3909
+ $$plugin;
3910
+ $$meta;
3911
+ constructor(e) {
3912
+ super(e), this.name = e.name, this.index = e.index, this.$$plugin = e.$$plugin, this.$$meta = e.$$meta;
3913
+ }
3914
+ }, resource_exports = /* @__PURE__ */ __exportAll$1({ Resource: () => Resource }), Resource = class e extends Struct {
3915
+ static processInstances = useGlobalVar(SourcedKeyMap.create(), "uni/resource/processInstances");
3916
+ static fork = useGlobalVar(SourcedKeyMap.create(), "uni/resource/fork");
3917
+ static precedenceFork = useGlobalVar(SourcedKeyMap.create(), "uni/resource/precedenceFork");
3918
+ static is(e) {
3919
+ return e instanceof this;
3920
+ }
3921
+ static create(e) {
3922
+ return new this(e);
3923
+ }
3924
+ constructor(e) {
3925
+ super(e), this.$$plugin = e.$$plugin, this.$$meta = e.$$meta, this.pathname = e.pathname, this.type = e.type, this.processSteps = (e.processSteps ?? []).map((e) => isString$2(e) ? {
3926
+ referenceName: e,
3927
+ ignoreExit: !1
3928
+ } : e);
3929
+ }
3930
+ type;
3931
+ pathname;
3932
+ processSteps;
3933
+ $$meta;
3934
+ $$plugin;
3935
+ async getUrl() {
3936
+ let t = this.pathname;
3937
+ for (let n of this.processSteps) {
3938
+ let r = e.processInstances.get([this.$$plugin, n.referenceName]);
3939
+ if (!r) {
3940
+ console.warn(`[Resource.getUrl] process not found, fullname: [${this.$$plugin}, ${n.referenceName}]`);
3941
+ continue;
3942
+ }
3943
+ let i = await r(t, this);
3944
+ if (t = i[0], !(n.ignoreExit || !i[1])) break;
3945
+ }
3946
+ return URL.canParse(t) ? t : `${this.getThisFork()}/${t}`;
3947
+ }
3948
+ omittedForks = /* @__PURE__ */ shallowReactive(/* @__PURE__ */ new Set());
3949
+ getThisFork() {
3950
+ let t = new Set(e.fork.get([this.$$plugin, this.type])?.urls ?? []);
3951
+ if (this.omittedForks.size == 0) var n = e.precedenceFork.get([this.$$plugin, this.type]);
3952
+ else var n = Array.from(t.difference(this.omittedForks).values())[0];
3953
+ if (!n) throw Error(`[Resource.getThisFork] fork not found, type: [${this.$$plugin}, ${this.type}]`);
3954
+ return n;
3955
+ }
3956
+ localChangeFork() {
3957
+ let t = new Set(e.fork.get([this.$$plugin, this.type])?.urls ?? []);
3958
+ this.omittedForks.add(this.getThisFork());
3959
+ let n = t.difference(this.omittedForks).size != 0;
3960
+ return n && this.omittedForks.clear(), n;
3961
+ }
3962
+ }, image_exports = /* @__PURE__ */ __exportAll$1({ Image: () => Image }), Image = class extends Resource {
3963
+ static is(e) {
3964
+ return e instanceof this;
3965
+ }
3966
+ static create(e, t) {
3967
+ return new this(e, t);
3968
+ }
3969
+ constructor(e, t) {
3970
+ "forkNamespace" in e ? super({
3971
+ $$plugin: e.$$plugin,
3972
+ $$meta: {
3973
+ ...e.$$meta,
3974
+ ...t
3975
+ },
3976
+ pathname: e.path,
3977
+ type: e.forkNamespace,
3978
+ processSteps: e.processSteps
3979
+ }) : super(e);
3980
+ }
3981
+ get aspect() {
3982
+ return this.$$meta;
3983
+ }
3984
+ set aspect(e) {
3985
+ this.$$meta ??= {}, this.$$meta.width = e.width, this.$$meta.height = e.height;
3986
+ }
3987
+ }, item_exports = /* @__PURE__ */ __exportAll$1({ Item: () => Item }), Item = class extends Struct {
3988
+ static itemTranslator = SourcedKeyMap.create();
3989
+ static create(e) {
3990
+ let t = this.itemTranslator.get(e.contentType);
3991
+ if (!t) throw Error(`can not found itemTranslator contentType:"${ContentPage.contentPage.toString(e.contentType)}"`);
3992
+ return t(e);
3993
+ }
3994
+ static authorIcon = SourcedKeyMap.create();
3995
+ static itemCard = useGlobalVar(SourcedKeyMap.create(), "uni/item/itemCard");
3996
+ static is(e) {
3997
+ return e instanceof this;
3998
+ }
3999
+ cover;
4000
+ get $cover() {
4001
+ return Image.create(this.cover);
4002
+ }
4003
+ title;
4004
+ id;
4005
+ categories;
4006
+ author;
4007
+ viewNumber;
4008
+ likeNumber;
4009
+ commentNumber;
4010
+ isLiked;
4011
+ description;
4012
+ updateTime;
4013
+ get $updateTime() {
4014
+ return (0, import_dayjs_min.default)(this.updateTime);
4015
+ }
4016
+ contentType;
4017
+ length;
4018
+ epLength;
4019
+ $$plugin;
4020
+ $$meta;
4021
+ thisEp;
4022
+ customIsSafe;
4023
+ get $thisEp() {
4024
+ return new Ep(this.thisEp);
4025
+ }
4026
+ constructor(e) {
4027
+ super(e), this.$$plugin = e.$$plugin, this.$$meta = e.$$meta, this.thisEp = e.thisEp, this.updateTime = e.updateTime, this.cover = e.cover, this.title = e.title, this.id = e.id, this.categories = e.categories, this.author = e.author, this.viewNumber = e.viewNumber, this.likeNumber = e.likeNumber, this.commentNumber = e.commentNumber, this.isLiked = e.isLiked, this.customIsAI = e.customIsAI, this.contentType = ContentPage.contentPage.toJSON(e.contentType), this.length = e.length, this.epLength = e.epLength, this.description = e.description, this.commentSendable = e.commentSendable, this.customIsSafe = e.customIsSafe;
4028
+ }
4029
+ commentSendable;
4030
+ customIsAI;
4031
+ get $isAi() {
4032
+ let e = (e) => /(^|[\((\[\s【])ai[】\))\]\s]?/gi.test(e);
4033
+ return this.customIsAI || e(this.title) || this.author.some((t) => e(`${t.label}\u1145${t.description}`));
4034
+ }
4035
+ }, content_exports = /* @__PURE__ */ __exportAll$1({
4036
+ ContentImagePage: () => ContentImagePage,
4037
+ ContentPage: () => ContentPage,
4038
+ ContentVideoPage: () => ContentVideoPage
4039
+ }), ContentPage = class {
4040
+ static viewLayout = useGlobalVar(SourcedKeyMap.create(), "uni/contentPage/viewLayout");
4041
+ static contentPage = useGlobalVar(SourcedKeyMap.create(), "uni/contentPage/contentPage");
4042
+ constructor(e, t, n) {
4043
+ this.id = t, this.ep = n, this.preload.value = e;
4044
+ }
4045
+ pid = PromiseContent.withResolvers();
4046
+ preload = /* @__PURE__ */ shallowRef(void 0);
4047
+ detail = PromiseContent.withResolvers();
4048
+ union = computed(() => this.detail.content.data.value ?? this.preload.value);
4049
+ recommends = PromiseContent.withResolvers();
4050
+ eps = PromiseContent.withResolvers();
4051
+ }, ContentImagePage = class extends ContentPage {
4052
+ images = PromiseContent.withResolvers();
4053
+ }, ContentVideoPage = class extends ContentPage {
4054
+ videos = PromiseContent.withResolvers();
4055
+ }, download_exports = /* @__PURE__ */ __exportAll$1({ Downloader: () => Downloader }), Downloader = class {}, user_exports = /* @__PURE__ */ __exportAll$1({ User: () => User }), User = class {
4056
+ static userBase = /* @__PURE__ */ shallowReactive(/* @__PURE__ */ new Map());
4057
+ static userEditorBase = /* @__PURE__ */ shallowReactive(/* @__PURE__ */ new Map());
4058
+ constructor(e) {
4059
+ e.avatar && (this.avatar = Image.create(e.avatar)), this.name = e.name, this.id = e.id, this.$$plugin = e.$$plugin;
4060
+ }
4061
+ avatar;
4062
+ name;
4063
+ id;
4064
+ $$plugin;
4065
+ }, model_exports = /* @__PURE__ */ __exportAll$1({
4066
+ comment: () => comment_exports,
4067
+ content: () => content_exports,
4068
+ download: () => download_exports,
4069
+ ep: () => ep_exports,
4070
+ image: () => image_exports,
4071
+ item: () => item_exports,
4072
+ resource: () => resource_exports,
4073
+ user: () => user_exports
4074
+ });
4075
+ export { PromiseContent, SourcedKeyMap, SourcedValue, Stream, Struct, callbackToPromise, model_exports as uni };
4076
+
4077
+ //# sourceMappingURL=index.js.map