pinia-plugin-persist-state 0.0.0-beta.4 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pinia-plugin-persist-state.js +548 -536
- package/dist/pinia-plugin-persist-state.umd.cjs +7 -7
- package/dist/services/Crypt.d.ts +23 -0
- package/dist/services/IndexedDB.d.ts +34 -0
- package/dist/services/Persister.d.ts +15 -0
- package/dist/services/WindowStorage.d.ts +10 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -72,6 +72,7 @@ class un {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
class fn {
|
|
75
|
+
_className;
|
|
75
76
|
_console;
|
|
76
77
|
_debug = !1;
|
|
77
78
|
get console() {
|
|
@@ -87,7 +88,7 @@ class fn {
|
|
|
87
88
|
this._debug = t;
|
|
88
89
|
}
|
|
89
90
|
constructor(t, n) {
|
|
90
|
-
this._debug = t, n && (this._console = n);
|
|
91
|
+
this._debug = t, this._className = this.constructor.name, n && (this._console = n);
|
|
91
92
|
}
|
|
92
93
|
debugLog(...t) {
|
|
93
94
|
this._debug && (Array.isArray(t) && (t[0] = `${this._className} - ${t[0]}`), this.console.log(...t));
|
|
@@ -152,59 +153,55 @@ class _n {
|
|
|
152
153
|
);
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
|
-
|
|
156
|
-
function yn(e) {
|
|
157
|
-
return gn.has(e[0]);
|
|
158
|
-
}
|
|
159
|
-
function W(e) {
|
|
156
|
+
function Y(e) {
|
|
160
157
|
return e ? Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : typeof e == "string" ? e.trim() === "" : !1 : !(typeof e == "boolean" || typeof e == "number");
|
|
161
158
|
}
|
|
162
159
|
// @__NO_SIDE_EFFECTS__
|
|
163
|
-
function
|
|
160
|
+
function gn(e) {
|
|
164
161
|
const t = /* @__PURE__ */ Object.create(null);
|
|
165
162
|
for (const n of e.split(",")) t[n] = 1;
|
|
166
163
|
return (n) => n in t;
|
|
167
164
|
}
|
|
168
|
-
const
|
|
165
|
+
const Me = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
169
166
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
170
|
-
const
|
|
171
|
-
},
|
|
172
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97),
|
|
167
|
+
const yn = () => {
|
|
168
|
+
}, mn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
169
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), bn = (e) => e.startsWith("onUpdate:"), q = Object.assign, Sn = Object.prototype.hasOwnProperty, Fe = (e, t) => Sn.call(e, t), g = Array.isArray, te = (e) => gt(e) === "[object Map]", T = (e) => typeof e == "function", R = (e) => typeof e == "string", H = (e) => typeof e == "symbol", y = (e) => e !== null && typeof e == "object", vn = Object.prototype.toString, gt = (e) => vn.call(e), yt = (e) => gt(e).slice(8, -1), Ee = (e) => R(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, wn = (e) => {
|
|
173
170
|
const t = /* @__PURE__ */ Object.create(null);
|
|
174
171
|
return ((n) => t[n] || (t[n] = e(n)));
|
|
175
|
-
},
|
|
172
|
+
}, En = wn((e) => e.charAt(0).toUpperCase() + e.slice(1)), ne = (e, t) => !Object.is(e, t);
|
|
176
173
|
let it;
|
|
177
|
-
const
|
|
178
|
-
function
|
|
174
|
+
const Ne = () => it || (it = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
175
|
+
function ze(e) {
|
|
179
176
|
if (g(e)) {
|
|
180
177
|
const t = {};
|
|
181
178
|
for (let n = 0; n < e.length; n++) {
|
|
182
|
-
const s = e[n], r =
|
|
179
|
+
const s = e[n], r = R(s) ? Vn(s) : ze(s);
|
|
183
180
|
if (r)
|
|
184
181
|
for (const o in r)
|
|
185
182
|
t[o] = r[o];
|
|
186
183
|
}
|
|
187
184
|
return t;
|
|
188
|
-
} else if (
|
|
185
|
+
} else if (R(e) || y(e))
|
|
189
186
|
return e;
|
|
190
187
|
}
|
|
191
|
-
const
|
|
192
|
-
function
|
|
188
|
+
const Nn = /;(?![^(]*\))/g, On = /:([^]+)/, kn = /\/\*[^]*?\*\//g;
|
|
189
|
+
function Vn(e) {
|
|
193
190
|
const t = {};
|
|
194
|
-
return e.replace(kn, "").split(
|
|
191
|
+
return e.replace(kn, "").split(Nn).forEach((n) => {
|
|
195
192
|
if (n) {
|
|
196
|
-
const s = n.split(
|
|
193
|
+
const s = n.split(On);
|
|
197
194
|
s.length > 1 && (t[s[0].trim()] = s[1].trim());
|
|
198
195
|
}
|
|
199
196
|
}), t;
|
|
200
197
|
}
|
|
201
|
-
function
|
|
198
|
+
function Be(e) {
|
|
202
199
|
let t = "";
|
|
203
|
-
if (
|
|
200
|
+
if (R(e))
|
|
204
201
|
t = e;
|
|
205
202
|
else if (g(e))
|
|
206
203
|
for (let n = 0; n < e.length; n++) {
|
|
207
|
-
const s =
|
|
204
|
+
const s = Be(e[n]);
|
|
208
205
|
s && (t += s + " ");
|
|
209
206
|
}
|
|
210
207
|
else if (y(e))
|
|
@@ -212,7 +209,7 @@ function We(e) {
|
|
|
212
209
|
e[n] && (t += n + " ");
|
|
213
210
|
return t.trim();
|
|
214
211
|
}
|
|
215
|
-
function
|
|
212
|
+
function Z(e, ...t) {
|
|
216
213
|
console.warn(`[Vue warn] ${e}`, ...t);
|
|
217
214
|
}
|
|
218
215
|
let mt = 0, Ve;
|
|
@@ -238,7 +235,7 @@ function Ye() {
|
|
|
238
235
|
}
|
|
239
236
|
if (e) throw e;
|
|
240
237
|
}
|
|
241
|
-
class
|
|
238
|
+
class Cn {
|
|
242
239
|
// TODO isolatedDeclarations "__v_skip"
|
|
243
240
|
constructor(t) {
|
|
244
241
|
this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = !0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
|
|
@@ -254,7 +251,7 @@ class xn {
|
|
|
254
251
|
if (process.env.NODE_ENV !== "production")
|
|
255
252
|
for (let n = this.subsHead; n; n = n.nextSub)
|
|
256
253
|
n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
|
|
257
|
-
|
|
254
|
+
q(
|
|
258
255
|
{
|
|
259
256
|
effect: n.sub
|
|
260
257
|
},
|
|
@@ -268,7 +265,7 @@ class xn {
|
|
|
268
265
|
}
|
|
269
266
|
}
|
|
270
267
|
}
|
|
271
|
-
const bt = /* @__PURE__ */ new WeakMap(),
|
|
268
|
+
const bt = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ Symbol(
|
|
272
269
|
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
273
270
|
), ct = /* @__PURE__ */ Symbol(
|
|
274
271
|
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
@@ -292,96 +289,96 @@ function P(e, t, n, s, r, o) {
|
|
|
292
289
|
if (Je(), t === "clear")
|
|
293
290
|
i.forEach(c);
|
|
294
291
|
else {
|
|
295
|
-
const l = g(e), f = l &&
|
|
292
|
+
const l = g(e), f = l && Ee(n);
|
|
296
293
|
if (l && n === "length") {
|
|
297
294
|
const h = Number(s);
|
|
298
295
|
i.forEach((a, u) => {
|
|
299
|
-
(u === "length" || u === at || !
|
|
296
|
+
(u === "length" || u === at || !H(u) && u >= h) && c(a);
|
|
300
297
|
});
|
|
301
298
|
} else
|
|
302
299
|
switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), f && c(i.get(at)), t) {
|
|
303
300
|
case "add":
|
|
304
|
-
l ? f && c(i.get("length")) : (c(i.get(
|
|
301
|
+
l ? f && c(i.get("length")) : (c(i.get(Ce)), te(e) && c(i.get(ct)));
|
|
305
302
|
break;
|
|
306
303
|
case "delete":
|
|
307
|
-
l || (c(i.get(
|
|
304
|
+
l || (c(i.get(Ce)), te(e) && c(i.get(ct)));
|
|
308
305
|
break;
|
|
309
306
|
case "set":
|
|
310
|
-
|
|
307
|
+
te(e) && c(i.get(Ce));
|
|
311
308
|
break;
|
|
312
309
|
}
|
|
313
310
|
}
|
|
314
311
|
Ye();
|
|
315
312
|
}
|
|
316
|
-
function
|
|
313
|
+
function Rn(e, t) {
|
|
317
314
|
const n = bt.get(e);
|
|
318
315
|
return n && n.get(t);
|
|
319
316
|
}
|
|
320
|
-
function
|
|
321
|
-
const t = p(e);
|
|
322
|
-
return t === e || v(e) ? t : t.map(x);
|
|
317
|
+
function L(e) {
|
|
318
|
+
const t = /* @__PURE__ */ p(e);
|
|
319
|
+
return t === e || /* @__PURE__ */ v(e) ? t : t.map(x);
|
|
323
320
|
}
|
|
324
321
|
function Ge(e) {
|
|
325
|
-
return e = p(e), e;
|
|
322
|
+
return e = /* @__PURE__ */ p(e), e;
|
|
326
323
|
}
|
|
327
|
-
function
|
|
328
|
-
return
|
|
324
|
+
function E(e, t) {
|
|
325
|
+
return /* @__PURE__ */ N(e) ? he(/* @__PURE__ */ Xe(e) ? x(t) : t) : x(t);
|
|
329
326
|
}
|
|
330
|
-
const
|
|
327
|
+
const xn = {
|
|
331
328
|
__proto__: null,
|
|
332
329
|
[Symbol.iterator]() {
|
|
333
|
-
return
|
|
330
|
+
return Re(this, Symbol.iterator, (e) => E(this, e));
|
|
334
331
|
},
|
|
335
332
|
concat(...e) {
|
|
336
|
-
return
|
|
337
|
-
...e.map((t) => g(t) ?
|
|
333
|
+
return L(this).concat(
|
|
334
|
+
...e.map((t) => g(t) ? L(t) : t)
|
|
338
335
|
);
|
|
339
336
|
},
|
|
340
337
|
entries() {
|
|
341
|
-
return
|
|
338
|
+
return Re(this, "entries", (e) => (e[1] = E(this, e[1]), e));
|
|
342
339
|
},
|
|
343
340
|
every(e, t) {
|
|
344
|
-
return
|
|
341
|
+
return k(this, "every", e, t, void 0, arguments);
|
|
345
342
|
},
|
|
346
343
|
filter(e, t) {
|
|
347
|
-
return
|
|
344
|
+
return k(
|
|
348
345
|
this,
|
|
349
346
|
"filter",
|
|
350
347
|
e,
|
|
351
348
|
t,
|
|
352
|
-
(n) => n.map((s) =>
|
|
349
|
+
(n) => n.map((s) => E(this, s)),
|
|
353
350
|
arguments
|
|
354
351
|
);
|
|
355
352
|
},
|
|
356
353
|
find(e, t) {
|
|
357
|
-
return
|
|
354
|
+
return k(
|
|
358
355
|
this,
|
|
359
356
|
"find",
|
|
360
357
|
e,
|
|
361
358
|
t,
|
|
362
|
-
(n) =>
|
|
359
|
+
(n) => E(this, n),
|
|
363
360
|
arguments
|
|
364
361
|
);
|
|
365
362
|
},
|
|
366
363
|
findIndex(e, t) {
|
|
367
|
-
return
|
|
364
|
+
return k(this, "findIndex", e, t, void 0, arguments);
|
|
368
365
|
},
|
|
369
366
|
findLast(e, t) {
|
|
370
|
-
return
|
|
367
|
+
return k(
|
|
371
368
|
this,
|
|
372
369
|
"findLast",
|
|
373
370
|
e,
|
|
374
371
|
t,
|
|
375
|
-
(n) =>
|
|
372
|
+
(n) => E(this, n),
|
|
376
373
|
arguments
|
|
377
374
|
);
|
|
378
375
|
},
|
|
379
376
|
findLastIndex(e, t) {
|
|
380
|
-
return
|
|
377
|
+
return k(this, "findLastIndex", e, t, void 0, arguments);
|
|
381
378
|
},
|
|
382
379
|
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
383
380
|
forEach(e, t) {
|
|
384
|
-
return
|
|
381
|
+
return k(this, "forEach", e, t, void 0, arguments);
|
|
385
382
|
},
|
|
386
383
|
includes(...e) {
|
|
387
384
|
return xe(this, "includes", e);
|
|
@@ -390,20 +387,20 @@ const Rn = {
|
|
|
390
387
|
return xe(this, "indexOf", e);
|
|
391
388
|
},
|
|
392
389
|
join(e) {
|
|
393
|
-
return
|
|
390
|
+
return L(this).join(e);
|
|
394
391
|
},
|
|
395
392
|
// keys() iterator only reads `length`, no optimization required
|
|
396
393
|
lastIndexOf(...e) {
|
|
397
394
|
return xe(this, "lastIndexOf", e);
|
|
398
395
|
},
|
|
399
396
|
map(e, t) {
|
|
400
|
-
return
|
|
397
|
+
return k(this, "map", e, t, void 0, arguments);
|
|
401
398
|
},
|
|
402
399
|
pop() {
|
|
403
|
-
return
|
|
400
|
+
return ee(this, "pop");
|
|
404
401
|
},
|
|
405
402
|
push(...e) {
|
|
406
|
-
return
|
|
403
|
+
return ee(this, "push", e);
|
|
407
404
|
},
|
|
408
405
|
reduce(e, ...t) {
|
|
409
406
|
return lt(this, "reduce", e, t);
|
|
@@ -412,48 +409,48 @@ const Rn = {
|
|
|
412
409
|
return lt(this, "reduceRight", e, t);
|
|
413
410
|
},
|
|
414
411
|
shift() {
|
|
415
|
-
return
|
|
412
|
+
return ee(this, "shift");
|
|
416
413
|
},
|
|
417
414
|
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
418
415
|
some(e, t) {
|
|
419
|
-
return
|
|
416
|
+
return k(this, "some", e, t, void 0, arguments);
|
|
420
417
|
},
|
|
421
418
|
splice(...e) {
|
|
422
|
-
return
|
|
419
|
+
return ee(this, "splice", e);
|
|
423
420
|
},
|
|
424
421
|
toReversed() {
|
|
425
|
-
return
|
|
422
|
+
return L(this).toReversed();
|
|
426
423
|
},
|
|
427
424
|
toSorted(e) {
|
|
428
|
-
return
|
|
425
|
+
return L(this).toSorted(e);
|
|
429
426
|
},
|
|
430
427
|
toSpliced(...e) {
|
|
431
|
-
return
|
|
428
|
+
return L(this).toSpliced(...e);
|
|
432
429
|
},
|
|
433
430
|
unshift(...e) {
|
|
434
|
-
return
|
|
431
|
+
return ee(this, "unshift", e);
|
|
435
432
|
},
|
|
436
433
|
values() {
|
|
437
|
-
return
|
|
434
|
+
return Re(this, "values", (e) => E(this, e));
|
|
438
435
|
}
|
|
439
436
|
};
|
|
440
|
-
function
|
|
437
|
+
function Re(e, t, n) {
|
|
441
438
|
const s = Ge(e), r = s[t]();
|
|
442
|
-
return s !== e &&
|
|
439
|
+
return s !== e && !/* @__PURE__ */ v(e) && (r._next = r.next, r.next = () => {
|
|
443
440
|
const o = r._next();
|
|
444
441
|
return o.done || (o.value = n(o.value)), o;
|
|
445
442
|
}), r;
|
|
446
443
|
}
|
|
447
|
-
const
|
|
448
|
-
function
|
|
449
|
-
const i = Ge(e), c = i !== e &&
|
|
450
|
-
if (l !==
|
|
444
|
+
const In = Array.prototype;
|
|
445
|
+
function k(e, t, n, s, r, o) {
|
|
446
|
+
const i = Ge(e), c = i !== e && !/* @__PURE__ */ v(e), l = i[t];
|
|
447
|
+
if (l !== In[t]) {
|
|
451
448
|
const a = l.apply(e, o);
|
|
452
449
|
return c ? x(a) : a;
|
|
453
450
|
}
|
|
454
451
|
let f = n;
|
|
455
452
|
i !== e && (c ? f = function(a, u) {
|
|
456
|
-
return n.call(this,
|
|
453
|
+
return n.call(this, E(e, a), u, e);
|
|
457
454
|
} : n.length > 2 && (f = function(a, u) {
|
|
458
455
|
return n.call(this, a, u, e);
|
|
459
456
|
}));
|
|
@@ -461,28 +458,30 @@ function O(e, t, n, s, r, o) {
|
|
|
461
458
|
return c && r ? r(h) : h;
|
|
462
459
|
}
|
|
463
460
|
function lt(e, t, n, s) {
|
|
464
|
-
const r = Ge(e);
|
|
465
|
-
let
|
|
466
|
-
|
|
467
|
-
return n.call(this,
|
|
468
|
-
}) :
|
|
469
|
-
return n.call(this,
|
|
470
|
-
})
|
|
461
|
+
const r = Ge(e), o = r !== e && !/* @__PURE__ */ v(e);
|
|
462
|
+
let i = n, c = !1;
|
|
463
|
+
r !== e && (o ? (c = s.length === 0, i = function(f, h, a) {
|
|
464
|
+
return c && (c = !1, f = E(e, f)), n.call(this, f, E(e, h), a, e);
|
|
465
|
+
}) : n.length > 3 && (i = function(f, h, a) {
|
|
466
|
+
return n.call(this, f, h, a, e);
|
|
467
|
+
}));
|
|
468
|
+
const l = r[t](i, ...s);
|
|
469
|
+
return c ? E(e, l) : l;
|
|
471
470
|
}
|
|
472
471
|
function xe(e, t, n) {
|
|
473
|
-
const s = p(e), r = s[t](...n);
|
|
474
|
-
return (r === -1 || r === !1) &&
|
|
472
|
+
const s = /* @__PURE__ */ p(e), r = s[t](...n);
|
|
473
|
+
return (r === -1 || r === !1) && /* @__PURE__ */ se(n[0]) ? (n[0] = /* @__PURE__ */ p(n[0]), s[t](...n)) : r;
|
|
475
474
|
}
|
|
476
|
-
function
|
|
475
|
+
function ee(e, t, n = []) {
|
|
477
476
|
Je();
|
|
478
|
-
const s = p(e)[t].apply(e, n);
|
|
477
|
+
const s = (/* @__PURE__ */ p(e))[t].apply(e, n);
|
|
479
478
|
return Ye(), s;
|
|
480
479
|
}
|
|
481
|
-
const
|
|
482
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(
|
|
480
|
+
const Dn = /* @__PURE__ */ gn("__proto__,__v_isRef,__isVue"), St = new Set(
|
|
481
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(H)
|
|
483
482
|
);
|
|
484
|
-
function
|
|
485
|
-
return
|
|
483
|
+
function Pn(e) {
|
|
484
|
+
return H(e) || (e = String(e)), (/* @__PURE__ */ p(this)).hasOwnProperty(e);
|
|
486
485
|
}
|
|
487
486
|
class vt {
|
|
488
487
|
constructor(t = !1, n = !1) {
|
|
@@ -498,16 +497,16 @@ class vt {
|
|
|
498
497
|
if (n === "__v_isShallow")
|
|
499
498
|
return o;
|
|
500
499
|
if (n === "__v_raw")
|
|
501
|
-
return s === (r ? o ? Un : Nt : o ?
|
|
500
|
+
return s === (r ? o ? Un : Nt : o ? qn : Et).get(t) || // receiver is not the reactive proxy, but has the same prototype
|
|
502
501
|
// this means the receiver is a user proxy of the reactive proxy
|
|
503
502
|
Object.getPrototypeOf(t) === Object.getPrototypeOf(s) ? t : void 0;
|
|
504
503
|
const i = g(t);
|
|
505
504
|
if (!r) {
|
|
506
505
|
let l;
|
|
507
|
-
if (i && (l =
|
|
506
|
+
if (i && (l = xn[n]))
|
|
508
507
|
return l;
|
|
509
508
|
if (n === "hasOwnProperty")
|
|
510
|
-
return
|
|
509
|
+
return Pn;
|
|
511
510
|
}
|
|
512
511
|
const c = Reflect.get(
|
|
513
512
|
t,
|
|
@@ -515,105 +514,105 @@ class vt {
|
|
|
515
514
|
// if this is a proxy wrapping a ref, return methods using the raw ref
|
|
516
515
|
// as receiver so that we don't have to call `toRaw` on the ref in all
|
|
517
516
|
// its class methods
|
|
518
|
-
m(t) ? t : s
|
|
517
|
+
/* @__PURE__ */ m(t) ? t : s
|
|
519
518
|
);
|
|
520
|
-
if ((
|
|
519
|
+
if ((H(n) ? St.has(n) : Dn(n)) || o)
|
|
521
520
|
return c;
|
|
522
|
-
if (m(c)) {
|
|
523
|
-
const l = i &&
|
|
524
|
-
return r && y(l) ?
|
|
521
|
+
if (/* @__PURE__ */ m(c)) {
|
|
522
|
+
const l = i && Ee(n) ? c : c.value;
|
|
523
|
+
return r && y(l) ? /* @__PURE__ */ Ke(l) : l;
|
|
525
524
|
}
|
|
526
|
-
return y(c) ? r ?
|
|
525
|
+
return y(c) ? r ? /* @__PURE__ */ Ke(c) : /* @__PURE__ */ Ot(c) : c;
|
|
527
526
|
}
|
|
528
527
|
}
|
|
529
|
-
class
|
|
528
|
+
class jn extends vt {
|
|
530
529
|
constructor(t = !1) {
|
|
531
530
|
super(!1, t);
|
|
532
531
|
}
|
|
533
532
|
set(t, n, s, r) {
|
|
534
533
|
let o = t[n];
|
|
535
|
-
const i = g(t) &&
|
|
534
|
+
const i = g(t) && Ee(n);
|
|
536
535
|
if (!this._isShallow) {
|
|
537
|
-
const f =
|
|
538
|
-
if (
|
|
539
|
-
return f ? (process.env.NODE_ENV !== "production" &&
|
|
536
|
+
const f = /* @__PURE__ */ N(o);
|
|
537
|
+
if (!/* @__PURE__ */ v(s) && !/* @__PURE__ */ N(s) && (o = /* @__PURE__ */ p(o), s = /* @__PURE__ */ p(s)), !i && /* @__PURE__ */ m(o) && !/* @__PURE__ */ m(s))
|
|
538
|
+
return f ? (process.env.NODE_ENV !== "production" && Z(
|
|
540
539
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
541
540
|
t[n]
|
|
542
541
|
), !0) : (o.value = s, !0);
|
|
543
542
|
}
|
|
544
|
-
const c = i ? Number(n) < t.length :
|
|
543
|
+
const c = i ? Number(n) < t.length : Fe(t, n), l = Reflect.set(
|
|
545
544
|
t,
|
|
546
545
|
n,
|
|
547
546
|
s,
|
|
548
|
-
m(t) ? t : r
|
|
547
|
+
/* @__PURE__ */ m(t) ? t : r
|
|
549
548
|
);
|
|
550
|
-
return t === p(r) && (c ?
|
|
549
|
+
return t === /* @__PURE__ */ p(r) && (c ? ne(s, o) && P(t, "set", n, s, o) : P(t, "add", n, s)), l;
|
|
551
550
|
}
|
|
552
551
|
deleteProperty(t, n) {
|
|
553
|
-
const s =
|
|
552
|
+
const s = Fe(t, n), r = t[n], o = Reflect.deleteProperty(t, n);
|
|
554
553
|
return o && s && P(t, "delete", n, void 0, r), o;
|
|
555
554
|
}
|
|
556
555
|
has(t, n) {
|
|
557
556
|
const s = Reflect.has(t, n);
|
|
558
|
-
return !
|
|
557
|
+
return !H(n) || St.has(n), s;
|
|
559
558
|
}
|
|
560
559
|
ownKeys(t) {
|
|
561
560
|
return Reflect.ownKeys(t);
|
|
562
561
|
}
|
|
563
562
|
}
|
|
564
|
-
class
|
|
563
|
+
class $n extends vt {
|
|
565
564
|
constructor(t = !1) {
|
|
566
565
|
super(!0, t);
|
|
567
566
|
}
|
|
568
567
|
set(t, n) {
|
|
569
|
-
return process.env.NODE_ENV !== "production" &&
|
|
568
|
+
return process.env.NODE_ENV !== "production" && Z(
|
|
570
569
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
571
570
|
t
|
|
572
571
|
), !0;
|
|
573
572
|
}
|
|
574
573
|
deleteProperty(t, n) {
|
|
575
|
-
return process.env.NODE_ENV !== "production" &&
|
|
574
|
+
return process.env.NODE_ENV !== "production" && Z(
|
|
576
575
|
`Delete operation on key "${String(n)}" failed: target is readonly.`,
|
|
577
576
|
t
|
|
578
577
|
), !0;
|
|
579
578
|
}
|
|
580
579
|
}
|
|
581
|
-
const
|
|
582
|
-
function
|
|
580
|
+
const Tn = /* @__PURE__ */ new jn(), An = /* @__PURE__ */ new $n(), ae = (e) => Reflect.getPrototypeOf(e);
|
|
581
|
+
function Mn(e, t, n) {
|
|
583
582
|
return function(...s) {
|
|
584
|
-
const r = this.__v_raw, o =
|
|
585
|
-
return
|
|
586
|
-
// iterator
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
done:
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
583
|
+
const r = this.__v_raw, o = te(/* @__PURE__ */ p(r)), i = e === "entries" || e === Symbol.iterator && o, c = r[e](...s), l = t ? he : x;
|
|
584
|
+
return q(
|
|
585
|
+
// inheriting all iterator properties
|
|
586
|
+
Object.create(c),
|
|
587
|
+
{
|
|
588
|
+
// iterator protocol
|
|
589
|
+
next() {
|
|
590
|
+
const { value: f, done: h } = c.next();
|
|
591
|
+
return h ? { value: f, done: h } : {
|
|
592
|
+
value: i ? [l(f[0]), l(f[1])] : l(f),
|
|
593
|
+
done: h
|
|
594
|
+
};
|
|
595
|
+
}
|
|
597
596
|
}
|
|
598
|
-
|
|
597
|
+
);
|
|
599
598
|
};
|
|
600
599
|
}
|
|
601
600
|
function le(e) {
|
|
602
601
|
return function(...t) {
|
|
603
602
|
if (process.env.NODE_ENV !== "production") {
|
|
604
603
|
const n = t[0] ? `on key "${t[0]}" ` : "";
|
|
605
|
-
|
|
606
|
-
`${
|
|
607
|
-
p(this)
|
|
604
|
+
Z(
|
|
605
|
+
`${En(e)} operation ${n}failed: target is readonly.`,
|
|
606
|
+
/* @__PURE__ */ p(this)
|
|
608
607
|
);
|
|
609
608
|
}
|
|
610
609
|
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
611
610
|
};
|
|
612
611
|
}
|
|
613
|
-
function
|
|
612
|
+
function Fn(e, t) {
|
|
614
613
|
const n = {
|
|
615
614
|
get(s) {
|
|
616
|
-
const r = this.__v_raw, o = p(r), i = p(s), { has: c } = ae(o), l = e ?
|
|
615
|
+
const r = this.__v_raw, o = /* @__PURE__ */ p(r), i = /* @__PURE__ */ p(s), { has: c } = ae(o), l = e ? he : x;
|
|
617
616
|
if (c.call(o, s))
|
|
618
617
|
return l(r.get(s));
|
|
619
618
|
if (c.call(o, i))
|
|
@@ -621,23 +620,18 @@ function Kn(e, t) {
|
|
|
621
620
|
r !== o && r.get(s);
|
|
622
621
|
},
|
|
623
622
|
get size() {
|
|
624
|
-
|
|
625
|
-
return !e && p(s), s.size;
|
|
623
|
+
return this.__v_raw.size;
|
|
626
624
|
},
|
|
627
625
|
has(s) {
|
|
628
|
-
const r = this.__v_raw;
|
|
629
|
-
p(r);
|
|
630
|
-
const o = p(s);
|
|
626
|
+
const r = this.__v_raw, o = /* @__PURE__ */ p(s);
|
|
631
627
|
return s === o ? r.has(s) : r.has(s) || r.has(o);
|
|
632
628
|
},
|
|
633
629
|
forEach(s, r) {
|
|
634
|
-
const o = this, i = o.__v_raw;
|
|
635
|
-
p(i);
|
|
636
|
-
const c = e ? ne : x;
|
|
630
|
+
const o = this, i = o.__v_raw, c = e ? he : x;
|
|
637
631
|
return i.forEach((l, f) => s.call(r, c(l), c(f), o));
|
|
638
632
|
}
|
|
639
633
|
};
|
|
640
|
-
return
|
|
634
|
+
return q(
|
|
641
635
|
n,
|
|
642
636
|
e ? {
|
|
643
637
|
add: le("add"),
|
|
@@ -646,27 +640,26 @@ function Kn(e, t) {
|
|
|
646
640
|
clear: le("clear")
|
|
647
641
|
} : {
|
|
648
642
|
add(s) {
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
return ae(r).has.call(r, s) || (r.add(s), P(r, "add", s, s)), this;
|
|
643
|
+
const r = /* @__PURE__ */ p(this), o = ae(r), i = /* @__PURE__ */ p(s), c = !/* @__PURE__ */ v(s) && !/* @__PURE__ */ N(s) ? i : s;
|
|
644
|
+
return o.has.call(r, c) || ne(s, c) && o.has.call(r, s) || ne(i, c) && o.has.call(r, i) || (r.add(c), P(r, "add", c, c)), this;
|
|
652
645
|
},
|
|
653
646
|
set(s, r) {
|
|
654
|
-
|
|
655
|
-
const o = p(this), { has: i, get: c } = ae(o);
|
|
647
|
+
!/* @__PURE__ */ v(r) && !/* @__PURE__ */ N(r) && (r = /* @__PURE__ */ p(r));
|
|
648
|
+
const o = /* @__PURE__ */ p(this), { has: i, get: c } = ae(o);
|
|
656
649
|
let l = i.call(o, s);
|
|
657
|
-
l ? process.env.NODE_ENV !== "production" && ut(o, i, s) : (s = p(s), l = i.call(o, s));
|
|
650
|
+
l ? process.env.NODE_ENV !== "production" && ut(o, i, s) : (s = /* @__PURE__ */ p(s), l = i.call(o, s));
|
|
658
651
|
const f = c.call(o, s);
|
|
659
|
-
return o.set(s, r), l ?
|
|
652
|
+
return o.set(s, r), l ? ne(r, f) && P(o, "set", s, r, f) : P(o, "add", s, r), this;
|
|
660
653
|
},
|
|
661
654
|
delete(s) {
|
|
662
|
-
const r = p(this), { has: o, get: i } = ae(r);
|
|
655
|
+
const r = /* @__PURE__ */ p(this), { has: o, get: i } = ae(r);
|
|
663
656
|
let c = o.call(r, s);
|
|
664
|
-
c ? process.env.NODE_ENV !== "production" && ut(r, o, s) : (s = p(s), c = o.call(r, s));
|
|
657
|
+
c ? process.env.NODE_ENV !== "production" && ut(r, o, s) : (s = /* @__PURE__ */ p(s), c = o.call(r, s));
|
|
665
658
|
const l = i ? i.call(r, s) : void 0, f = r.delete(s);
|
|
666
659
|
return c && P(r, "delete", s, void 0, l), f;
|
|
667
660
|
},
|
|
668
661
|
clear() {
|
|
669
|
-
const s = p(this), r = s.size !== 0, o = process.env.NODE_ENV !== "production" ?
|
|
662
|
+
const s = /* @__PURE__ */ p(this), r = s.size !== 0, o = process.env.NODE_ENV !== "production" ? te(s) ? new Map(s) : new Set(s) : void 0, i = s.clear();
|
|
670
663
|
return r && P(
|
|
671
664
|
s,
|
|
672
665
|
"clear",
|
|
@@ -682,33 +675,33 @@ function Kn(e, t) {
|
|
|
682
675
|
"entries",
|
|
683
676
|
Symbol.iterator
|
|
684
677
|
].forEach((s) => {
|
|
685
|
-
n[s] =
|
|
678
|
+
n[s] = Mn(s, e);
|
|
686
679
|
}), n;
|
|
687
680
|
}
|
|
688
681
|
function wt(e, t) {
|
|
689
|
-
const n =
|
|
682
|
+
const n = Fn(e);
|
|
690
683
|
return (s, r, o) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? s : Reflect.get(
|
|
691
|
-
|
|
684
|
+
Fe(n, r) && r in s ? n : s,
|
|
692
685
|
r,
|
|
693
686
|
o
|
|
694
687
|
);
|
|
695
688
|
}
|
|
696
|
-
const
|
|
689
|
+
const Kn = {
|
|
697
690
|
get: /* @__PURE__ */ wt(!1)
|
|
698
|
-
},
|
|
691
|
+
}, Hn = {
|
|
699
692
|
get: /* @__PURE__ */ wt(!0)
|
|
700
693
|
};
|
|
701
694
|
function ut(e, t, n) {
|
|
702
|
-
const s = p(n);
|
|
695
|
+
const s = /* @__PURE__ */ p(n);
|
|
703
696
|
if (s !== n && t.call(e, s)) {
|
|
704
697
|
const r = yt(e);
|
|
705
|
-
|
|
698
|
+
Z(
|
|
706
699
|
`Reactive ${r} contains both the raw and reactive versions of the same object${r === "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.`
|
|
707
700
|
);
|
|
708
701
|
}
|
|
709
702
|
}
|
|
710
|
-
const Et = /* @__PURE__ */ new WeakMap(),
|
|
711
|
-
function
|
|
703
|
+
const Et = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap();
|
|
704
|
+
function Ln(e) {
|
|
712
705
|
switch (e) {
|
|
713
706
|
case "Object":
|
|
714
707
|
case "Array":
|
|
@@ -722,37 +715,39 @@ function zn(e) {
|
|
|
722
715
|
return 0;
|
|
723
716
|
}
|
|
724
717
|
}
|
|
725
|
-
function
|
|
726
|
-
return e.__v_skip || !Object.isExtensible(e) ? 0 :
|
|
718
|
+
function Wn(e) {
|
|
719
|
+
return e.__v_skip || !Object.isExtensible(e) ? 0 : Ln(yt(e));
|
|
727
720
|
}
|
|
721
|
+
// @__NO_SIDE_EFFECTS__
|
|
728
722
|
function Ot(e) {
|
|
729
|
-
return
|
|
723
|
+
return /* @__PURE__ */ N(e) ? e : kt(
|
|
730
724
|
e,
|
|
731
725
|
!1,
|
|
732
|
-
|
|
733
|
-
|
|
726
|
+
Tn,
|
|
727
|
+
Kn,
|
|
734
728
|
Et
|
|
735
729
|
);
|
|
736
730
|
}
|
|
737
|
-
|
|
738
|
-
|
|
731
|
+
// @__NO_SIDE_EFFECTS__
|
|
732
|
+
function Ke(e) {
|
|
733
|
+
return kt(
|
|
739
734
|
e,
|
|
740
735
|
!0,
|
|
741
|
-
|
|
742
|
-
|
|
736
|
+
An,
|
|
737
|
+
Hn,
|
|
743
738
|
Nt
|
|
744
739
|
);
|
|
745
740
|
}
|
|
746
|
-
function
|
|
741
|
+
function kt(e, t, n, s, r) {
|
|
747
742
|
if (!y(e))
|
|
748
|
-
return process.env.NODE_ENV !== "production" &&
|
|
743
|
+
return process.env.NODE_ENV !== "production" && Z(
|
|
749
744
|
`value cannot be made ${t ? "readonly" : "reactive"}: ${String(
|
|
750
745
|
e
|
|
751
746
|
)}`
|
|
752
747
|
), e;
|
|
753
748
|
if (e.__v_raw && !(t && e.__v_isReactive))
|
|
754
749
|
return e;
|
|
755
|
-
const o =
|
|
750
|
+
const o = Wn(e);
|
|
756
751
|
if (o === 0)
|
|
757
752
|
return e;
|
|
758
753
|
const i = r.get(e);
|
|
@@ -764,35 +759,42 @@ function Vt(e, t, n, s, r) {
|
|
|
764
759
|
);
|
|
765
760
|
return r.set(e, c), c;
|
|
766
761
|
}
|
|
767
|
-
|
|
768
|
-
|
|
762
|
+
// @__NO_SIDE_EFFECTS__
|
|
763
|
+
function Xe(e) {
|
|
764
|
+
return /* @__PURE__ */ N(e) ? /* @__PURE__ */ Xe(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
769
765
|
}
|
|
770
|
-
|
|
766
|
+
// @__NO_SIDE_EFFECTS__
|
|
767
|
+
function N(e) {
|
|
771
768
|
return !!(e && e.__v_isReadonly);
|
|
772
769
|
}
|
|
770
|
+
// @__NO_SIDE_EFFECTS__
|
|
773
771
|
function v(e) {
|
|
774
772
|
return !!(e && e.__v_isShallow);
|
|
775
773
|
}
|
|
776
|
-
|
|
774
|
+
// @__NO_SIDE_EFFECTS__
|
|
775
|
+
function se(e) {
|
|
777
776
|
return e ? !!e.__v_raw : !1;
|
|
778
777
|
}
|
|
778
|
+
// @__NO_SIDE_EFFECTS__
|
|
779
779
|
function p(e) {
|
|
780
780
|
const t = e && e.__v_raw;
|
|
781
|
-
return t ? p(t) : e;
|
|
781
|
+
return t ? /* @__PURE__ */ p(t) : e;
|
|
782
782
|
}
|
|
783
|
-
const x = (e) => y(e) ? Ot(e) : e,
|
|
783
|
+
const x = (e) => y(e) ? /* @__PURE__ */ Ot(e) : e, he = (e) => y(e) ? /* @__PURE__ */ Ke(e) : e;
|
|
784
|
+
// @__NO_SIDE_EFFECTS__
|
|
784
785
|
function m(e) {
|
|
785
786
|
return e ? e.__v_isRef === !0 : !1;
|
|
786
787
|
}
|
|
787
|
-
|
|
788
|
-
|
|
788
|
+
// @__NO_SIDE_EFFECTS__
|
|
789
|
+
function Vt(e) {
|
|
790
|
+
return zn(e, !1);
|
|
789
791
|
}
|
|
790
|
-
function
|
|
791
|
-
return m(e) ? e : new
|
|
792
|
+
function zn(e, t) {
|
|
793
|
+
return /* @__PURE__ */ m(e) ? e : new Bn(e, t);
|
|
792
794
|
}
|
|
793
|
-
class
|
|
795
|
+
class Bn {
|
|
794
796
|
constructor(t, n) {
|
|
795
|
-
this.dep = new
|
|
797
|
+
this.dep = new Cn(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : /* @__PURE__ */ p(t), this._value = n ? t : x(t), this.__v_isShallow = n;
|
|
796
798
|
}
|
|
797
799
|
get value() {
|
|
798
800
|
return process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
@@ -802,8 +804,8 @@ class Jn {
|
|
|
802
804
|
}) : this.dep.track(), this._value;
|
|
803
805
|
}
|
|
804
806
|
set value(t) {
|
|
805
|
-
const n = this._rawValue, s = this.__v_isShallow || v(t) ||
|
|
806
|
-
t = s ? t : p(t),
|
|
807
|
+
const n = this._rawValue, s = this.__v_isShallow || /* @__PURE__ */ v(t) || /* @__PURE__ */ N(t);
|
|
808
|
+
t = s ? t : /* @__PURE__ */ p(t), ne(t, n) && (this._rawValue = t, this._value = s ? t : x(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
807
809
|
target: this,
|
|
808
810
|
type: "set",
|
|
809
811
|
key: "value",
|
|
@@ -812,27 +814,27 @@ class Jn {
|
|
|
812
814
|
}) : this.dep.trigger());
|
|
813
815
|
}
|
|
814
816
|
}
|
|
815
|
-
function
|
|
816
|
-
return m(e) ? e.value : e;
|
|
817
|
+
function Jn(e) {
|
|
818
|
+
return /* @__PURE__ */ m(e) ? e.value : e;
|
|
817
819
|
}
|
|
818
|
-
class
|
|
820
|
+
class Yn {
|
|
819
821
|
constructor(t, n, s) {
|
|
820
|
-
this._object = t, this.
|
|
822
|
+
this._object = t, this._defaultValue = s, this.__v_isRef = !0, this._value = void 0, this._key = H(n) ? n : String(n), this._raw = /* @__PURE__ */ p(t);
|
|
821
823
|
let r = !0, o = t;
|
|
822
|
-
if (!g(t) || !
|
|
824
|
+
if (!g(t) || H(this._key) || !Ee(this._key))
|
|
823
825
|
do
|
|
824
|
-
r =
|
|
826
|
+
r = !/* @__PURE__ */ se(o) || /* @__PURE__ */ v(o);
|
|
825
827
|
while (r && (o = o.__v_raw));
|
|
826
828
|
this._shallow = r;
|
|
827
829
|
}
|
|
828
830
|
get value() {
|
|
829
831
|
let t = this._object[this._key];
|
|
830
|
-
return this._shallow && (t =
|
|
832
|
+
return this._shallow && (t = Jn(t)), this._value = t === void 0 ? this._defaultValue : t;
|
|
831
833
|
}
|
|
832
834
|
set value(t) {
|
|
833
|
-
if (this._shallow && m(this._raw[this._key])) {
|
|
835
|
+
if (this._shallow && /* @__PURE__ */ m(this._raw[this._key])) {
|
|
834
836
|
const n = this._object[this._key];
|
|
835
|
-
if (m(n)) {
|
|
837
|
+
if (/* @__PURE__ */ m(n)) {
|
|
836
838
|
n.value = t;
|
|
837
839
|
return;
|
|
838
840
|
}
|
|
@@ -840,10 +842,10 @@ class Gn {
|
|
|
840
842
|
this._object[this._key] = t;
|
|
841
843
|
}
|
|
842
844
|
get dep() {
|
|
843
|
-
return
|
|
845
|
+
return Rn(this._raw, this._key);
|
|
844
846
|
}
|
|
845
847
|
}
|
|
846
|
-
class
|
|
848
|
+
class Gn {
|
|
847
849
|
constructor(t) {
|
|
848
850
|
this._getter = t, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
|
|
849
851
|
}
|
|
@@ -851,26 +853,27 @@ class Qn {
|
|
|
851
853
|
return this._value = this._getter();
|
|
852
854
|
}
|
|
853
855
|
}
|
|
856
|
+
// @__NO_SIDE_EFFECTS__
|
|
854
857
|
function Xn(e, t, n) {
|
|
855
|
-
return m(e) ? e : T(e) ? new
|
|
858
|
+
return /* @__PURE__ */ m(e) ? e : T(e) ? new Gn(e) : y(e) && arguments.length > 1 ? Zn(e, t, n) : /* @__PURE__ */ Vt(e);
|
|
856
859
|
}
|
|
857
860
|
function Zn(e, t, n) {
|
|
858
|
-
return new
|
|
861
|
+
return new Yn(e, t, n);
|
|
859
862
|
}
|
|
860
863
|
const M = [];
|
|
861
|
-
function
|
|
864
|
+
function Qn(e) {
|
|
862
865
|
M.push(e);
|
|
863
866
|
}
|
|
864
|
-
function
|
|
867
|
+
function es() {
|
|
865
868
|
M.pop();
|
|
866
869
|
}
|
|
867
870
|
let Ie = !1;
|
|
868
|
-
function
|
|
871
|
+
function re(e, ...t) {
|
|
869
872
|
if (Ie) return;
|
|
870
873
|
Ie = !0;
|
|
871
|
-
const n = M.length ? M[M.length - 1].component : null, s = n && n.appContext.config.warnHandler, r =
|
|
874
|
+
const n = M.length ? M[M.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = ts();
|
|
872
875
|
if (s)
|
|
873
|
-
|
|
876
|
+
Ze(
|
|
874
877
|
s,
|
|
875
878
|
n,
|
|
876
879
|
11,
|
|
@@ -891,11 +894,11 @@ function se(e, ...t) {
|
|
|
891
894
|
else {
|
|
892
895
|
const o = [`[Vue warn]: ${e}`, ...t];
|
|
893
896
|
r.length && o.push(`
|
|
894
|
-
`, ...
|
|
897
|
+
`, ...ns(r)), console.warn(...o);
|
|
895
898
|
}
|
|
896
899
|
Ie = !1;
|
|
897
900
|
}
|
|
898
|
-
function
|
|
901
|
+
function ts() {
|
|
899
902
|
let e = M[M.length - 1];
|
|
900
903
|
if (!e)
|
|
901
904
|
return [];
|
|
@@ -911,31 +914,31 @@ function ns() {
|
|
|
911
914
|
}
|
|
912
915
|
return t;
|
|
913
916
|
}
|
|
914
|
-
function
|
|
917
|
+
function ns(e) {
|
|
915
918
|
const t = [];
|
|
916
919
|
return e.forEach((n, s) => {
|
|
917
920
|
t.push(...s === 0 ? [] : [`
|
|
918
|
-
`], ...
|
|
921
|
+
`], ...ss(n));
|
|
919
922
|
}), t;
|
|
920
923
|
}
|
|
921
|
-
function
|
|
924
|
+
function ss({ vnode: e, recurseCount: t }) {
|
|
922
925
|
const n = t > 0 ? `... (${t} recursive calls)` : "", s = e.component ? e.component.parent == null : !1, r = ` at <${Ht(
|
|
923
926
|
e.component,
|
|
924
927
|
e.type,
|
|
925
928
|
s
|
|
926
929
|
)}`, o = ">" + n;
|
|
927
|
-
return e.props ? [r, ...
|
|
930
|
+
return e.props ? [r, ...rs(e.props), o] : [r + o];
|
|
928
931
|
}
|
|
929
|
-
function
|
|
932
|
+
function rs(e) {
|
|
930
933
|
const t = [], n = Object.keys(e);
|
|
931
934
|
return n.slice(0, 3).forEach((s) => {
|
|
932
935
|
t.push(...Ct(s, e[s]));
|
|
933
936
|
}), n.length > 3 && t.push(" ..."), t;
|
|
934
937
|
}
|
|
935
938
|
function Ct(e, t, n) {
|
|
936
|
-
return
|
|
939
|
+
return R(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */ m(t) ? (t = Ct(e, /* @__PURE__ */ p(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : T(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = /* @__PURE__ */ p(t), n ? t : [`${e}=`, t]);
|
|
937
940
|
}
|
|
938
|
-
const
|
|
941
|
+
const Rt = {
|
|
939
942
|
sp: "serverPrefetch hook",
|
|
940
943
|
bc: "beforeCreate hook",
|
|
941
944
|
c: "created hook",
|
|
@@ -968,18 +971,18 @@ const xt = {
|
|
|
968
971
|
15: "component update",
|
|
969
972
|
16: "app unmount cleanup function"
|
|
970
973
|
};
|
|
971
|
-
function
|
|
974
|
+
function Ze(e, t, n, s) {
|
|
972
975
|
try {
|
|
973
976
|
return s ? e(...s) : e();
|
|
974
977
|
} catch (r) {
|
|
975
|
-
|
|
978
|
+
xt(r, t, n);
|
|
976
979
|
}
|
|
977
980
|
}
|
|
978
|
-
function
|
|
979
|
-
const r = t ? t.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = t && t.appContext.config ||
|
|
981
|
+
function xt(e, t, n, s = !0) {
|
|
982
|
+
const r = t ? t.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = t && t.appContext.config || Me;
|
|
980
983
|
if (t) {
|
|
981
984
|
let c = t.parent;
|
|
982
|
-
const l = t.proxy, f = process.env.NODE_ENV !== "production" ?
|
|
985
|
+
const l = t.proxy, f = process.env.NODE_ENV !== "production" ? Rt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
983
986
|
for (; c; ) {
|
|
984
987
|
const h = c.ec;
|
|
985
988
|
if (h) {
|
|
@@ -990,7 +993,7 @@ function It(e, t, n, s = !0) {
|
|
|
990
993
|
c = c.parent;
|
|
991
994
|
}
|
|
992
995
|
if (o) {
|
|
993
|
-
|
|
996
|
+
Ze(o, null, 10, [
|
|
994
997
|
e,
|
|
995
998
|
l,
|
|
996
999
|
f
|
|
@@ -998,12 +1001,12 @@ function It(e, t, n, s = !0) {
|
|
|
998
1001
|
return;
|
|
999
1002
|
}
|
|
1000
1003
|
}
|
|
1001
|
-
|
|
1004
|
+
os(e, n, r, s, i);
|
|
1002
1005
|
}
|
|
1003
|
-
function
|
|
1006
|
+
function os(e, t, n, s = !0, r = !1) {
|
|
1004
1007
|
if (process.env.NODE_ENV !== "production") {
|
|
1005
|
-
const o =
|
|
1006
|
-
if (n &&
|
|
1008
|
+
const o = Rt[t];
|
|
1009
|
+
if (n && Qn(n), re(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && es(), s)
|
|
1007
1010
|
throw e;
|
|
1008
1011
|
console.error(e);
|
|
1009
1012
|
} else {
|
|
@@ -1014,59 +1017,59 @@ function is(e, t, n, s = !0, r = !1) {
|
|
|
1014
1017
|
}
|
|
1015
1018
|
const b = [];
|
|
1016
1019
|
let V = -1;
|
|
1017
|
-
const
|
|
1018
|
-
let
|
|
1019
|
-
const
|
|
1020
|
-
let
|
|
1021
|
-
const
|
|
1022
|
-
function
|
|
1020
|
+
const G = [];
|
|
1021
|
+
let I = null, z = 0;
|
|
1022
|
+
const is = /* @__PURE__ */ Promise.resolve();
|
|
1023
|
+
let He = null;
|
|
1024
|
+
const cs = 100;
|
|
1025
|
+
function as(e) {
|
|
1023
1026
|
let t = V + 1, n = b.length;
|
|
1024
1027
|
for (; t < n; ) {
|
|
1025
|
-
const s = t + n >>> 1, r = b[s], o =
|
|
1028
|
+
const s = t + n >>> 1, r = b[s], o = oe(r);
|
|
1026
1029
|
o < e || o === e && r.flags & 2 ? t = s + 1 : n = s;
|
|
1027
1030
|
}
|
|
1028
1031
|
return t;
|
|
1029
1032
|
}
|
|
1030
|
-
function
|
|
1033
|
+
function ls(e) {
|
|
1031
1034
|
if (!(e.flags & 1)) {
|
|
1032
|
-
const t =
|
|
1035
|
+
const t = oe(e), n = b[b.length - 1];
|
|
1033
1036
|
!n || // fast path when the job id is larger than the tail
|
|
1034
|
-
!(e.flags & 2) && t >=
|
|
1037
|
+
!(e.flags & 2) && t >= oe(n) ? b.push(e) : b.splice(as(t), 0, e), e.flags |= 1, It();
|
|
1035
1038
|
}
|
|
1036
1039
|
}
|
|
1037
|
-
function
|
|
1038
|
-
|
|
1040
|
+
function It() {
|
|
1041
|
+
He || (He = is.then(Dt));
|
|
1039
1042
|
}
|
|
1040
|
-
function
|
|
1041
|
-
g(e) ?
|
|
1043
|
+
function us(e) {
|
|
1044
|
+
g(e) ? G.push(...e) : I && e.id === -1 ? I.splice(z + 1, 0, e) : e.flags & 1 || (G.push(e), e.flags |= 1), It();
|
|
1042
1045
|
}
|
|
1043
|
-
function
|
|
1044
|
-
if (
|
|
1045
|
-
const t = [...new Set(
|
|
1046
|
-
(n, s) =>
|
|
1046
|
+
function fs(e) {
|
|
1047
|
+
if (G.length) {
|
|
1048
|
+
const t = [...new Set(G)].sort(
|
|
1049
|
+
(n, s) => oe(n) - oe(s)
|
|
1047
1050
|
);
|
|
1048
|
-
if (
|
|
1049
|
-
|
|
1051
|
+
if (G.length = 0, I) {
|
|
1052
|
+
I.push(...t);
|
|
1050
1053
|
return;
|
|
1051
1054
|
}
|
|
1052
|
-
for (
|
|
1053
|
-
const n =
|
|
1055
|
+
for (I = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), z = 0; z < I.length; z++) {
|
|
1056
|
+
const n = I[z];
|
|
1054
1057
|
process.env.NODE_ENV !== "production" && Pt(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
|
|
1055
1058
|
}
|
|
1056
|
-
|
|
1059
|
+
I = null, z = 0;
|
|
1057
1060
|
}
|
|
1058
1061
|
}
|
|
1059
|
-
const
|
|
1062
|
+
const oe = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
1060
1063
|
function Dt(e) {
|
|
1061
1064
|
process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
|
|
1062
|
-
const t = process.env.NODE_ENV !== "production" ? (n) => Pt(e, n) :
|
|
1065
|
+
const t = process.env.NODE_ENV !== "production" ? (n) => Pt(e, n) : yn;
|
|
1063
1066
|
try {
|
|
1064
1067
|
for (V = 0; V < b.length; V++) {
|
|
1065
1068
|
const n = b[V];
|
|
1066
1069
|
if (n && !(n.flags & 8)) {
|
|
1067
1070
|
if (process.env.NODE_ENV !== "production" && t(n))
|
|
1068
1071
|
continue;
|
|
1069
|
-
n.flags & 4 && (n.flags &= -2),
|
|
1072
|
+
n.flags & 4 && (n.flags &= -2), Ze(
|
|
1070
1073
|
n,
|
|
1071
1074
|
n.i,
|
|
1072
1075
|
n.i ? 15 : 14
|
|
@@ -1078,14 +1081,14 @@ function Dt(e) {
|
|
|
1078
1081
|
const n = b[V];
|
|
1079
1082
|
n && (n.flags &= -2);
|
|
1080
1083
|
}
|
|
1081
|
-
V = -1, b.length = 0,
|
|
1084
|
+
V = -1, b.length = 0, fs(e), He = null, (b.length || G.length) && Dt(e);
|
|
1082
1085
|
}
|
|
1083
1086
|
}
|
|
1084
1087
|
function Pt(e, t) {
|
|
1085
1088
|
const n = e.get(t) || 0;
|
|
1086
|
-
if (n >
|
|
1089
|
+
if (n > cs) {
|
|
1087
1090
|
const s = t.i, r = s && Kt(s.type);
|
|
1088
|
-
return
|
|
1091
|
+
return xt(
|
|
1089
1092
|
`Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. 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.`,
|
|
1090
1093
|
null,
|
|
1091
1094
|
10
|
|
@@ -1093,52 +1096,52 @@ function Pt(e, t) {
|
|
|
1093
1096
|
}
|
|
1094
1097
|
return e.set(t, n + 1), !1;
|
|
1095
1098
|
}
|
|
1096
|
-
const
|
|
1097
|
-
process.env.NODE_ENV !== "production" && (
|
|
1098
|
-
createRecord:
|
|
1099
|
-
rerender:
|
|
1100
|
-
reload:
|
|
1099
|
+
const De = /* @__PURE__ */ new Map();
|
|
1100
|
+
process.env.NODE_ENV !== "production" && (Ne().__VUE_HMR_RUNTIME__ = {
|
|
1101
|
+
createRecord: Pe(ps),
|
|
1102
|
+
rerender: Pe(hs),
|
|
1103
|
+
reload: Pe(ds)
|
|
1101
1104
|
});
|
|
1102
|
-
const
|
|
1103
|
-
function
|
|
1104
|
-
return
|
|
1105
|
-
initialDef:
|
|
1105
|
+
const de = /* @__PURE__ */ new Map();
|
|
1106
|
+
function ps(e, t) {
|
|
1107
|
+
return de.has(e) ? !1 : (de.set(e, {
|
|
1108
|
+
initialDef: _e(t),
|
|
1106
1109
|
instances: /* @__PURE__ */ new Set()
|
|
1107
1110
|
}), !0);
|
|
1108
1111
|
}
|
|
1109
|
-
function
|
|
1112
|
+
function _e(e) {
|
|
1110
1113
|
return qt(e) ? e.__vccOpts : e;
|
|
1111
1114
|
}
|
|
1112
|
-
function
|
|
1113
|
-
const n =
|
|
1115
|
+
function hs(e, t) {
|
|
1116
|
+
const n = de.get(e);
|
|
1114
1117
|
n && (n.initialDef.render = t, [...n.instances].forEach((s) => {
|
|
1115
|
-
t && (s.render = t,
|
|
1118
|
+
t && (s.render = t, _e(s.type).render = t), s.renderCache = [], s.job.flags & 8 || s.update();
|
|
1116
1119
|
}));
|
|
1117
1120
|
}
|
|
1118
|
-
function
|
|
1119
|
-
const n =
|
|
1121
|
+
function ds(e, t) {
|
|
1122
|
+
const n = de.get(e);
|
|
1120
1123
|
if (!n) return;
|
|
1121
|
-
t =
|
|
1124
|
+
t = _e(t), ft(n.initialDef, t);
|
|
1122
1125
|
const s = [...n.instances];
|
|
1123
1126
|
for (let r = 0; r < s.length; r++) {
|
|
1124
|
-
const o = s[r], i =
|
|
1125
|
-
let c =
|
|
1126
|
-
c || (i !== n.initialDef && ft(i, t),
|
|
1127
|
+
const o = s[r], i = _e(o.type);
|
|
1128
|
+
let c = De.get(i);
|
|
1129
|
+
c || (i !== n.initialDef && ft(i, t), De.set(i, c = /* @__PURE__ */ new Set())), c.add(o), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (c.add(o), o.ceReload(t.styles), c.delete(o)) : o.parent ? ls(() => {
|
|
1127
1130
|
o.job.flags & 8 || (o.parent.update(), c.delete(o));
|
|
1128
1131
|
}) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
1129
1132
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
1130
1133
|
), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
|
|
1131
1134
|
}
|
|
1132
|
-
|
|
1133
|
-
|
|
1135
|
+
us(() => {
|
|
1136
|
+
De.clear();
|
|
1134
1137
|
});
|
|
1135
1138
|
}
|
|
1136
1139
|
function ft(e, t) {
|
|
1137
|
-
|
|
1140
|
+
q(e, t);
|
|
1138
1141
|
for (const n in e)
|
|
1139
1142
|
n !== "__file" && !(n in t) && delete e[n];
|
|
1140
1143
|
}
|
|
1141
|
-
function
|
|
1144
|
+
function Pe(e) {
|
|
1142
1145
|
return (t, n) => {
|
|
1143
1146
|
try {
|
|
1144
1147
|
return e(t, n);
|
|
@@ -1149,27 +1152,27 @@ function De(e) {
|
|
|
1149
1152
|
}
|
|
1150
1153
|
};
|
|
1151
1154
|
}
|
|
1152
|
-
let
|
|
1153
|
-
const
|
|
1155
|
+
let ge = null, _s = null;
|
|
1156
|
+
const gs = (e) => e.__isTeleport;
|
|
1154
1157
|
function jt(e, t) {
|
|
1155
1158
|
e.shapeFlag & 6 && e.component ? (e.transition = t, jt(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
1156
1159
|
}
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
const
|
|
1160
|
+
Ne().requestIdleCallback;
|
|
1161
|
+
Ne().cancelIdleCallback;
|
|
1162
|
+
const ys = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
1160
1163
|
process.env.NODE_ENV;
|
|
1161
|
-
const
|
|
1162
|
-
function
|
|
1164
|
+
const ms = {}, $t = (e) => Object.getPrototypeOf(e) === ms, bs = (e) => e.__isSuspense, Tt = /* @__PURE__ */ Symbol.for("v-fgt"), Ss = /* @__PURE__ */ Symbol.for("v-txt"), vs = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
1165
|
+
function ws(e) {
|
|
1163
1166
|
return e ? e.__v_isVNode === !0 : !1;
|
|
1164
1167
|
}
|
|
1165
|
-
const
|
|
1168
|
+
const Es = (...e) => Mt(
|
|
1166
1169
|
...e
|
|
1167
1170
|
), At = ({ key: e }) => e ?? null, fe = ({
|
|
1168
1171
|
ref: e,
|
|
1169
1172
|
ref_key: t,
|
|
1170
1173
|
ref_for: n
|
|
1171
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ?
|
|
1172
|
-
function
|
|
1174
|
+
}) => (typeof e == "number" && (e = "" + e), e != null ? R(e) || /* @__PURE__ */ m(e) || T(e) ? { i: ge, r: e, k: t, f: !!n } : e : null);
|
|
1175
|
+
function Ns(e, t = null, n = null, s = 0, r = null, o = e === Tt ? 0 : 1, i = !1, c = !1) {
|
|
1173
1176
|
const l = {
|
|
1174
1177
|
__v_isVNode: !0,
|
|
1175
1178
|
__v_skip: !0,
|
|
@@ -1177,7 +1180,7 @@ function Os(e, t = null, n = null, s = 0, r = null, o = e === Tt ? 0 : 1, i = !1
|
|
|
1177
1180
|
props: t,
|
|
1178
1181
|
key: t && At(t),
|
|
1179
1182
|
ref: t && fe(t),
|
|
1180
|
-
scopeId:
|
|
1183
|
+
scopeId: _s,
|
|
1181
1184
|
slotScopeIds: null,
|
|
1182
1185
|
children: n,
|
|
1183
1186
|
component: null,
|
|
@@ -1197,33 +1200,33 @@ function Os(e, t = null, n = null, s = 0, r = null, o = e === Tt ? 0 : 1, i = !1
|
|
|
1197
1200
|
dynamicProps: r,
|
|
1198
1201
|
dynamicChildren: null,
|
|
1199
1202
|
appContext: null,
|
|
1200
|
-
ctx:
|
|
1203
|
+
ctx: ge
|
|
1201
1204
|
};
|
|
1202
|
-
return c ? (
|
|
1205
|
+
return c ? (Qe(l, n), o & 128 && e.normalize(l)) : n && (l.shapeFlag |= R(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && re("VNode created with invalid key (NaN). VNode type:", l.type), l;
|
|
1203
1206
|
}
|
|
1204
|
-
const
|
|
1207
|
+
const Os = process.env.NODE_ENV !== "production" ? Es : Mt;
|
|
1205
1208
|
function Mt(e, t = null, n = null, s = 0, r = null, o = !1) {
|
|
1206
|
-
if ((!e || e ===
|
|
1207
|
-
const c =
|
|
1209
|
+
if ((!e || e === ys) && (process.env.NODE_ENV !== "production" && !e && re(`Invalid vnode type when creating vnode: ${e}.`), e = vs), ws(e)) {
|
|
1210
|
+
const c = ye(
|
|
1208
1211
|
e,
|
|
1209
1212
|
t,
|
|
1210
1213
|
!0
|
|
1211
1214
|
/* mergeRef: true */
|
|
1212
1215
|
);
|
|
1213
|
-
return n &&
|
|
1216
|
+
return n && Qe(c, n), c.patchFlag = -2, c;
|
|
1214
1217
|
}
|
|
1215
1218
|
if (qt(e) && (e = e.__vccOpts), t) {
|
|
1216
1219
|
t = ks(t);
|
|
1217
1220
|
let { class: c, style: l } = t;
|
|
1218
|
-
c && !
|
|
1221
|
+
c && !R(c) && (t.class = Be(c)), y(l) && (/* @__PURE__ */ se(l) && !g(l) && (l = q({}, l)), t.style = ze(l));
|
|
1219
1222
|
}
|
|
1220
|
-
const i =
|
|
1221
|
-
return process.env.NODE_ENV !== "production" && i & 4 &&
|
|
1223
|
+
const i = R(e) ? 1 : bs(e) ? 128 : gs(e) ? 64 : y(e) ? 4 : T(e) ? 2 : 0;
|
|
1224
|
+
return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ se(e) && (e = /* @__PURE__ */ p(e), re(
|
|
1222
1225
|
"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`.",
|
|
1223
1226
|
`
|
|
1224
1227
|
Component that was made reactive: `,
|
|
1225
1228
|
e
|
|
1226
|
-
)),
|
|
1229
|
+
)), Ns(
|
|
1227
1230
|
e,
|
|
1228
1231
|
t,
|
|
1229
1232
|
n,
|
|
@@ -1235,10 +1238,10 @@ Component that was made reactive: `,
|
|
|
1235
1238
|
);
|
|
1236
1239
|
}
|
|
1237
1240
|
function ks(e) {
|
|
1238
|
-
return e ?
|
|
1241
|
+
return e ? /* @__PURE__ */ se(e) || $t(e) ? q({}, e) : e : null;
|
|
1239
1242
|
}
|
|
1240
|
-
function
|
|
1241
|
-
const { props: r, ref: o, patchFlag: i, children: c, transition: l } = e, f = t ?
|
|
1243
|
+
function ye(e, t, n = !1, s = !1) {
|
|
1244
|
+
const { props: r, ref: o, patchFlag: i, children: c, transition: l } = e, f = t ? Cs(r || {}, t) : r, h = {
|
|
1242
1245
|
__v_isVNode: !0,
|
|
1243
1246
|
__v_skip: !0,
|
|
1244
1247
|
type: e.type,
|
|
@@ -1274,8 +1277,8 @@ function ge(e, t, n = !1, s = !1) {
|
|
|
1274
1277
|
// they will simply be overwritten.
|
|
1275
1278
|
component: e.component,
|
|
1276
1279
|
suspense: e.suspense,
|
|
1277
|
-
ssContent: e.ssContent &&
|
|
1278
|
-
ssFallback: e.ssFallback &&
|
|
1280
|
+
ssContent: e.ssContent && ye(e.ssContent),
|
|
1281
|
+
ssFallback: e.ssFallback && ye(e.ssFallback),
|
|
1279
1282
|
placeholder: e.placeholder,
|
|
1280
1283
|
el: e.el,
|
|
1281
1284
|
anchor: e.anchor,
|
|
@@ -1288,13 +1291,13 @@ function ge(e, t, n = !1, s = !1) {
|
|
|
1288
1291
|
), h;
|
|
1289
1292
|
}
|
|
1290
1293
|
function Ft(e) {
|
|
1291
|
-
const t =
|
|
1294
|
+
const t = ye(e);
|
|
1292
1295
|
return g(e.children) && (t.children = e.children.map(Ft)), t;
|
|
1293
1296
|
}
|
|
1294
|
-
function
|
|
1295
|
-
return
|
|
1297
|
+
function Vs(e = " ", t = 0) {
|
|
1298
|
+
return Os(Ss, null, e, t);
|
|
1296
1299
|
}
|
|
1297
|
-
function
|
|
1300
|
+
function Qe(e, t) {
|
|
1298
1301
|
let n = 0;
|
|
1299
1302
|
const { shapeFlag: s } = e;
|
|
1300
1303
|
if (t == null)
|
|
@@ -1304,31 +1307,33 @@ function Ze(e, t) {
|
|
|
1304
1307
|
else if (typeof t == "object")
|
|
1305
1308
|
if (s & 65) {
|
|
1306
1309
|
const r = t.default;
|
|
1307
|
-
r && (r._c && (r._d = !1),
|
|
1310
|
+
r && (r._c && (r._d = !1), Qe(e, r()), r._c && (r._d = !0));
|
|
1308
1311
|
return;
|
|
1309
1312
|
} else
|
|
1310
|
-
n = 32, !t._ && !$t(t) && (t._ctx =
|
|
1311
|
-
else T(t) ? (t = { default: t, _ctx:
|
|
1313
|
+
n = 32, !t._ && !$t(t) && (t._ctx = ge);
|
|
1314
|
+
else T(t) ? (t = { default: t, _ctx: ge }, n = 32) : (t = String(t), s & 64 ? (n = 16, t = [Vs(t)]) : n = 8);
|
|
1312
1315
|
e.children = t, e.shapeFlag |= n;
|
|
1313
1316
|
}
|
|
1314
|
-
function
|
|
1317
|
+
function Cs(...e) {
|
|
1315
1318
|
const t = {};
|
|
1316
1319
|
for (let n = 0; n < e.length; n++) {
|
|
1317
1320
|
const s = e[n];
|
|
1318
1321
|
for (const r in s)
|
|
1319
1322
|
if (r === "class")
|
|
1320
|
-
t.class !== s.class && (t.class =
|
|
1323
|
+
t.class !== s.class && (t.class = Be([t.class, s.class]));
|
|
1321
1324
|
else if (r === "style")
|
|
1322
|
-
t.style =
|
|
1323
|
-
else if (
|
|
1325
|
+
t.style = ze([t.style, s.style]);
|
|
1326
|
+
else if (mn(r)) {
|
|
1324
1327
|
const o = t[r], i = s[r];
|
|
1325
|
-
i && o !== i && !(g(o) && o.includes(i))
|
|
1328
|
+
i && o !== i && !(g(o) && o.includes(i)) ? t[r] = o ? [].concat(o, i) : i : i == null && o == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
|
|
1329
|
+
// the model listener.
|
|
1330
|
+
!bn(r) && (t[r] = i);
|
|
1326
1331
|
} else r !== "" && (t[r] = s[r]);
|
|
1327
1332
|
}
|
|
1328
1333
|
return t;
|
|
1329
1334
|
}
|
|
1330
1335
|
{
|
|
1331
|
-
const e =
|
|
1336
|
+
const e = Ne(), t = (n, s) => {
|
|
1332
1337
|
let r;
|
|
1333
1338
|
return (r = e[n]) || (r = e[n] = []), r.push(s), (o) => {
|
|
1334
1339
|
r.length > 1 ? r.forEach((i) => i(o)) : r[0](o);
|
|
@@ -1343,7 +1348,7 @@ function xs(...e) {
|
|
|
1343
1348
|
);
|
|
1344
1349
|
}
|
|
1345
1350
|
process.env.NODE_ENV;
|
|
1346
|
-
const
|
|
1351
|
+
const Rs = /(?:^|[-_])\w/g, xs = (e) => e.replace(Rs, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
1347
1352
|
function Kt(e, t = !0) {
|
|
1348
1353
|
return T(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
1349
1354
|
}
|
|
@@ -1363,12 +1368,12 @@ function Ht(e, t, n = !1) {
|
|
|
1363
1368
|
e.parent.type.components
|
|
1364
1369
|
) || r(e.appContext.components);
|
|
1365
1370
|
}
|
|
1366
|
-
return s ?
|
|
1371
|
+
return s ? xs(s) : n ? "App" : "Anonymous";
|
|
1367
1372
|
}
|
|
1368
1373
|
function qt(e) {
|
|
1369
1374
|
return T(e) && "__vccOpts" in e;
|
|
1370
1375
|
}
|
|
1371
|
-
function
|
|
1376
|
+
function Is() {
|
|
1372
1377
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
1373
1378
|
return;
|
|
1374
1379
|
const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
|
|
@@ -1378,7 +1383,7 @@ function Ds() {
|
|
|
1378
1383
|
return null;
|
|
1379
1384
|
if (a.__isVue)
|
|
1380
1385
|
return ["div", e, "VueInstance"];
|
|
1381
|
-
if (m(a)) {
|
|
1386
|
+
if (/* @__PURE__ */ m(a)) {
|
|
1382
1387
|
const u = a.value;
|
|
1383
1388
|
return [
|
|
1384
1389
|
"div",
|
|
@@ -1389,20 +1394,20 @@ function Ds() {
|
|
|
1389
1394
|
">"
|
|
1390
1395
|
];
|
|
1391
1396
|
} else {
|
|
1392
|
-
if (
|
|
1397
|
+
if (/* @__PURE__ */ Xe(a))
|
|
1393
1398
|
return [
|
|
1394
1399
|
"div",
|
|
1395
1400
|
{},
|
|
1396
|
-
["span", e, v(a) ? "ShallowReactive" : "Reactive"],
|
|
1401
|
+
["span", e, /* @__PURE__ */ v(a) ? "ShallowReactive" : "Reactive"],
|
|
1397
1402
|
"<",
|
|
1398
1403
|
c(a),
|
|
1399
|
-
`>${
|
|
1404
|
+
`>${/* @__PURE__ */ N(a) ? " (readonly)" : ""}`
|
|
1400
1405
|
];
|
|
1401
|
-
if (
|
|
1406
|
+
if (/* @__PURE__ */ N(a))
|
|
1402
1407
|
return [
|
|
1403
1408
|
"div",
|
|
1404
1409
|
{},
|
|
1405
|
-
["span", e, v(a) ? "ShallowReadonly" : "Readonly"],
|
|
1410
|
+
["span", e, /* @__PURE__ */ v(a) ? "ShallowReadonly" : "Readonly"],
|
|
1406
1411
|
"<",
|
|
1407
1412
|
c(a),
|
|
1408
1413
|
">"
|
|
@@ -1424,7 +1429,7 @@ function Ds() {
|
|
|
1424
1429
|
};
|
|
1425
1430
|
function o(a) {
|
|
1426
1431
|
const u = [];
|
|
1427
|
-
a.type.props && a.props && u.push(i("props", p(a.props))), a.setupState !==
|
|
1432
|
+
a.type.props && a.props && u.push(i("props", /* @__PURE__ */ p(a.props))), a.setupState !== Me && u.push(i("setup", a.setupState)), a.data !== Me && u.push(i("data", /* @__PURE__ */ p(a.data)));
|
|
1428
1433
|
const d = l(a, "computed");
|
|
1429
1434
|
d && u.push(i("computed", d));
|
|
1430
1435
|
const _ = l(a, "inject");
|
|
@@ -1442,7 +1447,7 @@ function Ds() {
|
|
|
1442
1447
|
]), u;
|
|
1443
1448
|
}
|
|
1444
1449
|
function i(a, u) {
|
|
1445
|
-
return u =
|
|
1450
|
+
return u = q({}, u), Object.keys(u).length ? [
|
|
1446
1451
|
"div",
|
|
1447
1452
|
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
1448
1453
|
[
|
|
@@ -1467,7 +1472,7 @@ function Ds() {
|
|
|
1467
1472
|
] : ["span", {}];
|
|
1468
1473
|
}
|
|
1469
1474
|
function c(a, u = !0) {
|
|
1470
|
-
return typeof a == "number" ? ["span", t, a] : typeof a == "string" ? ["span", n, JSON.stringify(a)] : typeof a == "boolean" ? ["span", s, a] : y(a) ? ["object", { object: u ? p(a) : a }] : ["span", n, String(a)];
|
|
1475
|
+
return typeof a == "number" ? ["span", t, a] : typeof a == "string" ? ["span", n, JSON.stringify(a)] : typeof a == "boolean" ? ["span", s, a] : y(a) ? ["object", { object: u ? /* @__PURE__ */ p(a) : a }] : ["span", n, String(a)];
|
|
1471
1476
|
}
|
|
1472
1477
|
function l(a, u) {
|
|
1473
1478
|
const d = a.type;
|
|
@@ -1484,19 +1489,22 @@ function Ds() {
|
|
|
1484
1489
|
return !0;
|
|
1485
1490
|
}
|
|
1486
1491
|
function h(a) {
|
|
1487
|
-
return v(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
|
|
1492
|
+
return /* @__PURE__ */ v(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
|
|
1488
1493
|
}
|
|
1489
1494
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
|
|
1490
1495
|
}
|
|
1491
1496
|
process.env.NODE_ENV;
|
|
1492
1497
|
process.env.NODE_ENV;
|
|
1493
1498
|
process.env.NODE_ENV;
|
|
1494
|
-
function
|
|
1495
|
-
|
|
1499
|
+
function Ds() {
|
|
1500
|
+
Is();
|
|
1501
|
+
}
|
|
1502
|
+
process.env.NODE_ENV !== "production" && Ds();
|
|
1503
|
+
const Ps = /* @__PURE__ */ new Set(["_", "$"]);
|
|
1504
|
+
function js(e) {
|
|
1505
|
+
return Ps.has(e[0]);
|
|
1496
1506
|
}
|
|
1497
|
-
|
|
1498
|
-
class js extends fn {
|
|
1499
|
-
_className = "Store";
|
|
1507
|
+
class $s extends fn {
|
|
1500
1508
|
_onAction;
|
|
1501
1509
|
_options;
|
|
1502
1510
|
_store;
|
|
@@ -1544,7 +1552,7 @@ class js extends fn {
|
|
|
1544
1552
|
* @param value
|
|
1545
1553
|
*/
|
|
1546
1554
|
addToState(t, n) {
|
|
1547
|
-
this.isOptionApi() || n?.value || (n =
|
|
1555
|
+
this.isOptionApi() || n?.value || (n = /* @__PURE__ */ Vt(n)), this.state[t] = n, this.store[t] = /* @__PURE__ */ Xn(this.state, t);
|
|
1548
1556
|
}
|
|
1549
1557
|
addSubscription(t, n, s) {
|
|
1550
1558
|
this._subscriptions[t] = { subscription: n, ...s ?? {} };
|
|
@@ -1561,10 +1569,10 @@ class js extends fn {
|
|
|
1561
1569
|
return new this(t, n, s, r);
|
|
1562
1570
|
}
|
|
1563
1571
|
hasDeniedFirstChar(t) {
|
|
1564
|
-
return
|
|
1572
|
+
return js(t[0]);
|
|
1565
1573
|
}
|
|
1566
1574
|
static hasRequiredKeys(t) {
|
|
1567
|
-
return this._requiredKeys
|
|
1575
|
+
return this._requiredKeys !== void 0 && this._requiredKeys?.every((n) => !!t[n]);
|
|
1568
1576
|
}
|
|
1569
1577
|
getOption(t) {
|
|
1570
1578
|
return this.options && this.options[t];
|
|
@@ -1573,7 +1581,7 @@ class js extends fn {
|
|
|
1573
1581
|
return this.getValue(this.state[t]);
|
|
1574
1582
|
}
|
|
1575
1583
|
getSubscriptions() {
|
|
1576
|
-
if (!
|
|
1584
|
+
if (!Y(this._subscriptions))
|
|
1577
1585
|
return this._subscriptions;
|
|
1578
1586
|
}
|
|
1579
1587
|
getValue(t) {
|
|
@@ -1589,11 +1597,11 @@ class js extends fn {
|
|
|
1589
1597
|
return this.store.hasOwnProperty(t);
|
|
1590
1598
|
}
|
|
1591
1599
|
}
|
|
1592
|
-
const
|
|
1593
|
-
class
|
|
1594
|
-
_pluginName =
|
|
1600
|
+
const Ut = "pinia-plugin-persist-state";
|
|
1601
|
+
class Ts extends _n {
|
|
1602
|
+
_pluginName = Ut;
|
|
1595
1603
|
}
|
|
1596
|
-
const A = new
|
|
1604
|
+
const A = new Ts();
|
|
1597
1605
|
let pt = class {
|
|
1598
1606
|
_db;
|
|
1599
1607
|
_localStorageVersionKey = "IDBVersion";
|
|
@@ -1792,7 +1800,7 @@ class et {
|
|
|
1792
1800
|
this._db.removeItem(t);
|
|
1793
1801
|
}
|
|
1794
1802
|
setItem(t, n) {
|
|
1795
|
-
if (
|
|
1803
|
+
if (this._db instanceof pt)
|
|
1796
1804
|
try {
|
|
1797
1805
|
this._db.getItem(t).then((s) => {
|
|
1798
1806
|
s ? this._db.updateItem(s) : this._db.setItem({ storeName: t, ...n });
|
|
@@ -1804,7 +1812,7 @@ class et {
|
|
|
1804
1812
|
this._db.setItem(n, t);
|
|
1805
1813
|
}
|
|
1806
1814
|
}
|
|
1807
|
-
class
|
|
1815
|
+
class As {
|
|
1808
1816
|
_store = /* @__PURE__ */ new Map();
|
|
1809
1817
|
clear() {
|
|
1810
1818
|
this._store.clear();
|
|
@@ -1829,22 +1837,22 @@ class Ts {
|
|
|
1829
1837
|
this._store.set(n, t);
|
|
1830
1838
|
}
|
|
1831
1839
|
}
|
|
1832
|
-
let
|
|
1833
|
-
const
|
|
1834
|
-
clear: () =>
|
|
1835
|
-
getItem: async (e) => new Promise((t) => t(
|
|
1836
|
-
removeItem: (e) => delete
|
|
1837
|
-
removeItems: (e) => e ? e.forEach((t) => delete
|
|
1840
|
+
let W = {};
|
|
1841
|
+
const Ms = {
|
|
1842
|
+
clear: () => W = {},
|
|
1843
|
+
getItem: async (e) => new Promise((t) => t(W[e])),
|
|
1844
|
+
removeItem: (e) => delete W[e],
|
|
1845
|
+
removeItems: (e) => e ? e.forEach((t) => delete W[t]) : W = {},
|
|
1838
1846
|
setItem: (e, t) => {
|
|
1839
|
-
|
|
1847
|
+
W[t] = e;
|
|
1840
1848
|
}
|
|
1841
1849
|
};
|
|
1842
|
-
class
|
|
1850
|
+
class Fs extends et {
|
|
1843
1851
|
defineDb() {
|
|
1844
|
-
return this.dbName === "localStorage" || this.dbName === "sessionStorage" ?
|
|
1852
|
+
return this.dbName === "localStorage" || this.dbName === "sessionStorage" ? Ms : new As();
|
|
1845
1853
|
}
|
|
1846
1854
|
}
|
|
1847
|
-
class
|
|
1855
|
+
class ie {
|
|
1848
1856
|
_encoder = new TextEncoder();
|
|
1849
1857
|
_key;
|
|
1850
1858
|
_materialKey;
|
|
@@ -1887,7 +1895,7 @@ class oe {
|
|
|
1887
1895
|
name: "AES-GCM",
|
|
1888
1896
|
iv: Uint8Array.from(atob(n), (o) => o.charCodeAt(0))
|
|
1889
1897
|
},
|
|
1890
|
-
await this.getKey(
|
|
1898
|
+
await this.getKey(ie.DECRYPT),
|
|
1891
1899
|
Uint8Array.from(atob(s), (o) => o.charCodeAt(0))
|
|
1892
1900
|
);
|
|
1893
1901
|
return new TextDecoder().decode(r);
|
|
@@ -1903,7 +1911,7 @@ class oe {
|
|
|
1903
1911
|
name: "AES-GCM",
|
|
1904
1912
|
iv: n
|
|
1905
1913
|
},
|
|
1906
|
-
await this.getKey(
|
|
1914
|
+
await this.getKey(ie.ENCRYPT),
|
|
1907
1915
|
this._encoder.encode(t)
|
|
1908
1916
|
);
|
|
1909
1917
|
return btoa(String.fromCharCode(...new Uint8Array(n))) + ":" + btoa(String.fromCharCode(...new Uint8Array(s)));
|
|
@@ -1912,18 +1920,18 @@ class oe {
|
|
|
1912
1920
|
this._materialKey || await this.setKeyMaterial(this._key);
|
|
1913
1921
|
}
|
|
1914
1922
|
}
|
|
1915
|
-
const
|
|
1923
|
+
const qe = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
1916
1924
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
1917
|
-
const
|
|
1918
|
-
},
|
|
1919
|
-
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97),
|
|
1925
|
+
const Lt = () => {
|
|
1926
|
+
}, Ks = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
1927
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Hs = (e) => e.startsWith("onUpdate:"), Oe = Object.assign, O = Array.isArray, U = (e) => typeof e == "function", $ = (e) => typeof e == "string", qs = (e) => typeof e == "symbol", F = (e) => e !== null && typeof e == "object";
|
|
1920
1928
|
let ht;
|
|
1921
|
-
const
|
|
1929
|
+
const ke = () => ht || (ht = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
1922
1930
|
function tt(e) {
|
|
1923
|
-
if (
|
|
1931
|
+
if (O(e)) {
|
|
1924
1932
|
const t = {};
|
|
1925
1933
|
for (let n = 0; n < e.length; n++) {
|
|
1926
|
-
const s = e[n], r = $(s) ?
|
|
1934
|
+
const s = e[n], r = $(s) ? zs(s) : tt(s);
|
|
1927
1935
|
if (r)
|
|
1928
1936
|
for (const o in r)
|
|
1929
1937
|
t[o] = r[o];
|
|
@@ -1932,12 +1940,12 @@ function tt(e) {
|
|
|
1932
1940
|
} else if ($(e) || F(e))
|
|
1933
1941
|
return e;
|
|
1934
1942
|
}
|
|
1935
|
-
const
|
|
1936
|
-
function
|
|
1943
|
+
const Us = /;(?![^(]*\))/g, Ls = /:([^]+)/, Ws = /\/\*[^]*?\*\//g;
|
|
1944
|
+
function zs(e) {
|
|
1937
1945
|
const t = {};
|
|
1938
|
-
return e.replace(
|
|
1946
|
+
return e.replace(Ws, "").split(Us).forEach((n) => {
|
|
1939
1947
|
if (n) {
|
|
1940
|
-
const s = n.split(
|
|
1948
|
+
const s = n.split(Ls);
|
|
1941
1949
|
s.length > 1 && (t[s[0].trim()] = s[1].trim());
|
|
1942
1950
|
}
|
|
1943
1951
|
}), t;
|
|
@@ -1946,7 +1954,7 @@ function nt(e) {
|
|
|
1946
1954
|
let t = "";
|
|
1947
1955
|
if ($(e))
|
|
1948
1956
|
t = e;
|
|
1949
|
-
else if (
|
|
1957
|
+
else if (O(e))
|
|
1950
1958
|
for (let n = 0; n < e.length; n++) {
|
|
1951
1959
|
const s = nt(e[n]);
|
|
1952
1960
|
s && (t += s + " ");
|
|
@@ -1960,18 +1968,18 @@ process.env.NODE_ENV;
|
|
|
1960
1968
|
process.env.NODE_ENV;
|
|
1961
1969
|
process.env.NODE_ENV;
|
|
1962
1970
|
new Set(
|
|
1963
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(
|
|
1971
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(qs)
|
|
1964
1972
|
);
|
|
1965
1973
|
// @__NO_SIDE_EFFECTS__
|
|
1966
|
-
function
|
|
1967
|
-
return /* @__PURE__ */
|
|
1974
|
+
function Wt(e) {
|
|
1975
|
+
return /* @__PURE__ */ Ue(e) ? /* @__PURE__ */ Wt(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
1968
1976
|
}
|
|
1969
1977
|
// @__NO_SIDE_EFFECTS__
|
|
1970
|
-
function
|
|
1978
|
+
function Ue(e) {
|
|
1971
1979
|
return !!(e && e.__v_isReadonly);
|
|
1972
1980
|
}
|
|
1973
1981
|
// @__NO_SIDE_EFFECTS__
|
|
1974
|
-
function
|
|
1982
|
+
function je(e) {
|
|
1975
1983
|
return !!(e && e.__v_isShallow);
|
|
1976
1984
|
}
|
|
1977
1985
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1988,17 +1996,17 @@ function st(e) {
|
|
|
1988
1996
|
return e ? e.__v_isRef === !0 : !1;
|
|
1989
1997
|
}
|
|
1990
1998
|
const K = [];
|
|
1991
|
-
function
|
|
1999
|
+
function Bs(e) {
|
|
1992
2000
|
K.push(e);
|
|
1993
2001
|
}
|
|
1994
|
-
function
|
|
2002
|
+
function Js() {
|
|
1995
2003
|
K.pop();
|
|
1996
2004
|
}
|
|
1997
|
-
let
|
|
2005
|
+
let $e = !1;
|
|
1998
2006
|
function Q(e, ...t) {
|
|
1999
|
-
if (
|
|
2000
|
-
|
|
2001
|
-
const n = K.length ? K[K.length - 1].component : null, s = n && n.appContext.config.warnHandler, r =
|
|
2007
|
+
if ($e) return;
|
|
2008
|
+
$e = !0;
|
|
2009
|
+
const n = K.length ? K[K.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = Ys();
|
|
2002
2010
|
if (s)
|
|
2003
2011
|
rt(
|
|
2004
2012
|
s,
|
|
@@ -2021,11 +2029,11 @@ function Q(e, ...t) {
|
|
|
2021
2029
|
else {
|
|
2022
2030
|
const o = [`[Vue warn]: ${e}`, ...t];
|
|
2023
2031
|
r.length && o.push(`
|
|
2024
|
-
`, ...
|
|
2032
|
+
`, ...Gs(r)), console.warn(...o);
|
|
2025
2033
|
}
|
|
2026
|
-
|
|
2034
|
+
$e = !1;
|
|
2027
2035
|
}
|
|
2028
|
-
function
|
|
2036
|
+
function Ys() {
|
|
2029
2037
|
let e = K[K.length - 1];
|
|
2030
2038
|
if (!e)
|
|
2031
2039
|
return [];
|
|
@@ -2041,31 +2049,31 @@ function Ws() {
|
|
|
2041
2049
|
}
|
|
2042
2050
|
return t;
|
|
2043
2051
|
}
|
|
2044
|
-
function
|
|
2052
|
+
function Gs(e) {
|
|
2045
2053
|
const t = [];
|
|
2046
2054
|
return e.forEach((n, s) => {
|
|
2047
2055
|
t.push(...s === 0 ? [] : [`
|
|
2048
|
-
`], ...
|
|
2056
|
+
`], ...Xs(n));
|
|
2049
2057
|
}), t;
|
|
2050
2058
|
}
|
|
2051
|
-
function
|
|
2059
|
+
function Xs({ vnode: e, recurseCount: t }) {
|
|
2052
2060
|
const n = t > 0 ? `... (${t} recursive calls)` : "", s = e.component ? e.component.parent == null : !1, r = ` at <${cn(
|
|
2053
2061
|
e.component,
|
|
2054
2062
|
e.type,
|
|
2055
2063
|
s
|
|
2056
2064
|
)}`, o = ">" + n;
|
|
2057
|
-
return e.props ? [r, ...
|
|
2065
|
+
return e.props ? [r, ...Zs(e.props), o] : [r + o];
|
|
2058
2066
|
}
|
|
2059
|
-
function
|
|
2067
|
+
function Zs(e) {
|
|
2060
2068
|
const t = [], n = Object.keys(e);
|
|
2061
2069
|
return n.slice(0, 3).forEach((s) => {
|
|
2062
|
-
t.push(...
|
|
2070
|
+
t.push(...zt(s, e[s]));
|
|
2063
2071
|
}), n.length > 3 && t.push(" ..."), t;
|
|
2064
2072
|
}
|
|
2065
|
-
function
|
|
2066
|
-
return $(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */ st(t) ? (t =
|
|
2073
|
+
function zt(e, t, n) {
|
|
2074
|
+
return $(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : /* @__PURE__ */ st(t) ? (t = zt(e, /* @__PURE__ */ j(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : U(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = /* @__PURE__ */ j(t), n ? t : [`${e}=`, t]);
|
|
2067
2075
|
}
|
|
2068
|
-
const
|
|
2076
|
+
const Bt = {
|
|
2069
2077
|
sp: "serverPrefetch hook",
|
|
2070
2078
|
bc: "beforeCreate hook",
|
|
2071
2079
|
c: "created hook",
|
|
@@ -2106,10 +2114,10 @@ function rt(e, t, n, s) {
|
|
|
2106
2114
|
}
|
|
2107
2115
|
}
|
|
2108
2116
|
function Jt(e, t, n, s = !0) {
|
|
2109
|
-
const r = t ? t.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = t && t.appContext.config ||
|
|
2117
|
+
const r = t ? t.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = t && t.appContext.config || qe;
|
|
2110
2118
|
if (t) {
|
|
2111
2119
|
let c = t.parent;
|
|
2112
|
-
const l = t.proxy, f = process.env.NODE_ENV !== "production" ?
|
|
2120
|
+
const l = t.proxy, f = process.env.NODE_ENV !== "production" ? Bt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
2113
2121
|
for (; c; ) {
|
|
2114
2122
|
const h = c.ec;
|
|
2115
2123
|
if (h) {
|
|
@@ -2132,8 +2140,8 @@ function Jt(e, t, n, s = !0) {
|
|
|
2132
2140
|
}
|
|
2133
2141
|
function Qs(e, t, n, s = !0, r = !1) {
|
|
2134
2142
|
if (process.env.NODE_ENV !== "production") {
|
|
2135
|
-
const o =
|
|
2136
|
-
if (n &&
|
|
2143
|
+
const o = Bt[t];
|
|
2144
|
+
if (n && Bs(n), Q(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && Js(), s)
|
|
2137
2145
|
throw e;
|
|
2138
2146
|
console.error(e);
|
|
2139
2147
|
} else {
|
|
@@ -2143,56 +2151,56 @@ function Qs(e, t, n, s = !0, r = !1) {
|
|
|
2143
2151
|
}
|
|
2144
2152
|
}
|
|
2145
2153
|
const S = [];
|
|
2146
|
-
let
|
|
2147
|
-
const
|
|
2148
|
-
let D = null,
|
|
2149
|
-
const
|
|
2150
|
-
let
|
|
2151
|
-
const
|
|
2152
|
-
function
|
|
2153
|
-
let t =
|
|
2154
|
+
let C = -1;
|
|
2155
|
+
const X = [];
|
|
2156
|
+
let D = null, B = 0;
|
|
2157
|
+
const er = /* @__PURE__ */ Promise.resolve();
|
|
2158
|
+
let We = null;
|
|
2159
|
+
const tr = 100;
|
|
2160
|
+
function nr(e) {
|
|
2161
|
+
let t = C + 1, n = S.length;
|
|
2154
2162
|
for (; t < n; ) {
|
|
2155
|
-
const s = t + n >>> 1, r = S[s], o =
|
|
2163
|
+
const s = t + n >>> 1, r = S[s], o = ce(r);
|
|
2156
2164
|
o < e || o === e && r.flags & 2 ? t = s + 1 : n = s;
|
|
2157
2165
|
}
|
|
2158
2166
|
return t;
|
|
2159
2167
|
}
|
|
2160
|
-
function
|
|
2168
|
+
function sr(e) {
|
|
2161
2169
|
if (!(e.flags & 1)) {
|
|
2162
|
-
const t =
|
|
2170
|
+
const t = ce(e), n = S[S.length - 1];
|
|
2163
2171
|
!n || // fast path when the job id is larger than the tail
|
|
2164
|
-
!(e.flags & 2) && t >=
|
|
2172
|
+
!(e.flags & 2) && t >= ce(n) ? S.push(e) : S.splice(nr(t), 0, e), e.flags |= 1, Yt();
|
|
2165
2173
|
}
|
|
2166
2174
|
}
|
|
2167
2175
|
function Yt() {
|
|
2168
|
-
|
|
2176
|
+
We || (We = er.then(Gt));
|
|
2169
2177
|
}
|
|
2170
|
-
function
|
|
2171
|
-
|
|
2178
|
+
function rr(e) {
|
|
2179
|
+
O(e) ? X.push(...e) : D && e.id === -1 ? D.splice(B + 1, 0, e) : e.flags & 1 || (X.push(e), e.flags |= 1), Yt();
|
|
2172
2180
|
}
|
|
2173
|
-
function
|
|
2174
|
-
if (
|
|
2175
|
-
const t = [...new Set(
|
|
2176
|
-
(n, s) =>
|
|
2181
|
+
function or(e) {
|
|
2182
|
+
if (X.length) {
|
|
2183
|
+
const t = [...new Set(X)].sort(
|
|
2184
|
+
(n, s) => ce(n) - ce(s)
|
|
2177
2185
|
);
|
|
2178
|
-
if (
|
|
2186
|
+
if (X.length = 0, D) {
|
|
2179
2187
|
D.push(...t);
|
|
2180
2188
|
return;
|
|
2181
2189
|
}
|
|
2182
|
-
for (D = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()),
|
|
2183
|
-
const n = D[
|
|
2184
|
-
process.env.NODE_ENV !== "production" &&
|
|
2190
|
+
for (D = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), B = 0; B < D.length; B++) {
|
|
2191
|
+
const n = D[B];
|
|
2192
|
+
process.env.NODE_ENV !== "production" && Xt(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
|
|
2185
2193
|
}
|
|
2186
|
-
D = null,
|
|
2194
|
+
D = null, B = 0;
|
|
2187
2195
|
}
|
|
2188
2196
|
}
|
|
2189
|
-
const
|
|
2197
|
+
const ce = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
2190
2198
|
function Gt(e) {
|
|
2191
2199
|
process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
|
|
2192
|
-
const t = process.env.NODE_ENV !== "production" ? (n) =>
|
|
2200
|
+
const t = process.env.NODE_ENV !== "production" ? (n) => Xt(e, n) : Lt;
|
|
2193
2201
|
try {
|
|
2194
|
-
for (
|
|
2195
|
-
const n = S[
|
|
2202
|
+
for (C = 0; C < S.length; C++) {
|
|
2203
|
+
const n = S[C];
|
|
2196
2204
|
if (n && !(n.flags & 8)) {
|
|
2197
2205
|
if (process.env.NODE_ENV !== "production" && t(n))
|
|
2198
2206
|
continue;
|
|
@@ -2204,16 +2212,16 @@ function Gt(e) {
|
|
|
2204
2212
|
}
|
|
2205
2213
|
}
|
|
2206
2214
|
} finally {
|
|
2207
|
-
for (;
|
|
2208
|
-
const n = S[
|
|
2215
|
+
for (; C < S.length; C++) {
|
|
2216
|
+
const n = S[C];
|
|
2209
2217
|
n && (n.flags &= -2);
|
|
2210
2218
|
}
|
|
2211
|
-
|
|
2219
|
+
C = -1, S.length = 0, or(e), We = null, (S.length || X.length) && Gt(e);
|
|
2212
2220
|
}
|
|
2213
2221
|
}
|
|
2214
|
-
function
|
|
2222
|
+
function Xt(e, t) {
|
|
2215
2223
|
const n = e.get(t) || 0;
|
|
2216
|
-
if (n >
|
|
2224
|
+
if (n > tr) {
|
|
2217
2225
|
const s = t.i, r = s && on(s.type);
|
|
2218
2226
|
return Jt(
|
|
2219
2227
|
`Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. 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.`,
|
|
@@ -2223,52 +2231,52 @@ function Qt(e, t) {
|
|
|
2223
2231
|
}
|
|
2224
2232
|
return e.set(t, n + 1), !1;
|
|
2225
2233
|
}
|
|
2226
|
-
const
|
|
2227
|
-
process.env.NODE_ENV !== "production" && (
|
|
2228
|
-
createRecord:
|
|
2229
|
-
rerender:
|
|
2230
|
-
reload:
|
|
2234
|
+
const Te = /* @__PURE__ */ new Map();
|
|
2235
|
+
process.env.NODE_ENV !== "production" && (ke().__VUE_HMR_RUNTIME__ = {
|
|
2236
|
+
createRecord: Ae(ir),
|
|
2237
|
+
rerender: Ae(cr),
|
|
2238
|
+
reload: Ae(ar)
|
|
2231
2239
|
});
|
|
2232
|
-
const
|
|
2233
|
-
function
|
|
2234
|
-
return
|
|
2235
|
-
initialDef:
|
|
2240
|
+
const me = /* @__PURE__ */ new Map();
|
|
2241
|
+
function ir(e, t) {
|
|
2242
|
+
return me.has(e) ? !1 : (me.set(e, {
|
|
2243
|
+
initialDef: be(t),
|
|
2236
2244
|
instances: /* @__PURE__ */ new Set()
|
|
2237
2245
|
}), !0);
|
|
2238
2246
|
}
|
|
2239
|
-
function
|
|
2247
|
+
function be(e) {
|
|
2240
2248
|
return an(e) ? e.__vccOpts : e;
|
|
2241
2249
|
}
|
|
2242
|
-
function
|
|
2243
|
-
const n =
|
|
2250
|
+
function cr(e, t) {
|
|
2251
|
+
const n = me.get(e);
|
|
2244
2252
|
n && (n.initialDef.render = t, [...n.instances].forEach((s) => {
|
|
2245
|
-
t && (s.render = t,
|
|
2253
|
+
t && (s.render = t, be(s.type).render = t), s.renderCache = [], s.job.flags & 8 || s.update();
|
|
2246
2254
|
}));
|
|
2247
2255
|
}
|
|
2248
|
-
function
|
|
2249
|
-
const n =
|
|
2256
|
+
function ar(e, t) {
|
|
2257
|
+
const n = me.get(e);
|
|
2250
2258
|
if (!n) return;
|
|
2251
|
-
t =
|
|
2259
|
+
t = be(t), dt(n.initialDef, t);
|
|
2252
2260
|
const s = [...n.instances];
|
|
2253
2261
|
for (let r = 0; r < s.length; r++) {
|
|
2254
|
-
const o = s[r], i =
|
|
2255
|
-
let c =
|
|
2256
|
-
c || (i !== n.initialDef && dt(i, t),
|
|
2262
|
+
const o = s[r], i = be(o.type);
|
|
2263
|
+
let c = Te.get(i);
|
|
2264
|
+
c || (i !== n.initialDef && dt(i, t), Te.set(i, c = /* @__PURE__ */ new Set())), c.add(o), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (c.add(o), o.ceReload(t.styles), c.delete(o)) : o.parent ? sr(() => {
|
|
2257
2265
|
o.job.flags & 8 || (o.parent.update(), c.delete(o));
|
|
2258
2266
|
}) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
2259
2267
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
2260
2268
|
), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
|
|
2261
2269
|
}
|
|
2262
|
-
|
|
2263
|
-
|
|
2270
|
+
rr(() => {
|
|
2271
|
+
Te.clear();
|
|
2264
2272
|
});
|
|
2265
2273
|
}
|
|
2266
2274
|
function dt(e, t) {
|
|
2267
|
-
|
|
2275
|
+
Oe(e, t);
|
|
2268
2276
|
for (const n in e)
|
|
2269
2277
|
n !== "__file" && !(n in t) && delete e[n];
|
|
2270
2278
|
}
|
|
2271
|
-
function
|
|
2279
|
+
function Ae(e) {
|
|
2272
2280
|
return (t, n) => {
|
|
2273
2281
|
try {
|
|
2274
2282
|
return e(t, n);
|
|
@@ -2279,41 +2287,41 @@ function Te(e) {
|
|
|
2279
2287
|
}
|
|
2280
2288
|
};
|
|
2281
2289
|
}
|
|
2282
|
-
let
|
|
2283
|
-
function
|
|
2290
|
+
let J, ue = [];
|
|
2291
|
+
function Zt(e, t) {
|
|
2284
2292
|
var n, s;
|
|
2285
|
-
|
|
2293
|
+
J = e, J ? (J.enabled = !0, ue.forEach(({ event: r, args: o }) => J.emit(r, ...o)), ue = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
|
|
2286
2294
|
window.HTMLElement && // also exclude jsdom
|
|
2287
2295
|
// eslint-disable-next-line no-restricted-syntax
|
|
2288
2296
|
!((s = (n = window.navigator) == null ? void 0 : n.userAgent) != null && s.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
|
|
2289
|
-
|
|
2297
|
+
Zt(o, t);
|
|
2290
2298
|
}), setTimeout(() => {
|
|
2291
|
-
|
|
2299
|
+
J || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, ue = []);
|
|
2292
2300
|
}, 3e3)) : ue = [];
|
|
2293
2301
|
}
|
|
2294
|
-
let
|
|
2295
|
-
const
|
|
2296
|
-
function
|
|
2297
|
-
e.shapeFlag & 6 && e.component ? (e.transition = t,
|
|
2302
|
+
let Se = null, lr = null;
|
|
2303
|
+
const ur = (e) => e.__isTeleport;
|
|
2304
|
+
function Qt(e, t) {
|
|
2305
|
+
e.shapeFlag & 6 && e.component ? (e.transition = t, Qt(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
2298
2306
|
}
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
const
|
|
2302
|
-
process.env.NODE_ENV !== "production" && (
|
|
2307
|
+
ke().requestIdleCallback;
|
|
2308
|
+
ke().cancelIdleCallback;
|
|
2309
|
+
const fr = /* @__PURE__ */ Symbol.for("v-ndc"), pr = {};
|
|
2310
|
+
process.env.NODE_ENV !== "production" && (pr.ownKeys = (e) => (Q(
|
|
2303
2311
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
2304
2312
|
), Reflect.ownKeys(e)));
|
|
2305
|
-
const
|
|
2306
|
-
function
|
|
2313
|
+
const hr = {}, en = (e) => Object.getPrototypeOf(e) === hr, dr = (e) => e.__isSuspense, tn = /* @__PURE__ */ Symbol.for("v-fgt"), _r = /* @__PURE__ */ Symbol.for("v-txt"), gr = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
2314
|
+
function yr(e) {
|
|
2307
2315
|
return e ? e.__v_isVNode === !0 : !1;
|
|
2308
2316
|
}
|
|
2309
|
-
const
|
|
2317
|
+
const mr = (...e) => sn(
|
|
2310
2318
|
...e
|
|
2311
2319
|
), nn = ({ key: e }) => e ?? null, pe = ({
|
|
2312
2320
|
ref: e,
|
|
2313
2321
|
ref_key: t,
|
|
2314
2322
|
ref_for: n
|
|
2315
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ? $(e) || /* @__PURE__ */ st(e) ||
|
|
2316
|
-
function
|
|
2323
|
+
}) => (typeof e == "number" && (e = "" + e), e != null ? $(e) || /* @__PURE__ */ st(e) || U(e) ? { i: Se, r: e, k: t, f: !!n } : e : null);
|
|
2324
|
+
function br(e, t = null, n = null, s = 0, r = null, o = e === tn ? 0 : 1, i = !1, c = !1) {
|
|
2317
2325
|
const l = {
|
|
2318
2326
|
__v_isVNode: !0,
|
|
2319
2327
|
__v_skip: !0,
|
|
@@ -2321,7 +2329,7 @@ function yr(e, t = null, n = null, s = 0, r = null, o = e === tn ? 0 : 1, i = !1
|
|
|
2321
2329
|
props: t,
|
|
2322
2330
|
key: t && nn(t),
|
|
2323
2331
|
ref: t && pe(t),
|
|
2324
|
-
scopeId:
|
|
2332
|
+
scopeId: lr,
|
|
2325
2333
|
slotScopeIds: null,
|
|
2326
2334
|
children: n,
|
|
2327
2335
|
component: null,
|
|
@@ -2341,14 +2349,14 @@ function yr(e, t = null, n = null, s = 0, r = null, o = e === tn ? 0 : 1, i = !1
|
|
|
2341
2349
|
dynamicProps: r,
|
|
2342
2350
|
dynamicChildren: null,
|
|
2343
2351
|
appContext: null,
|
|
2344
|
-
ctx:
|
|
2352
|
+
ctx: Se
|
|
2345
2353
|
};
|
|
2346
2354
|
return c ? (ot(l, n), o & 128 && e.normalize(l)) : n && (l.shapeFlag |= $(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && Q("VNode created with invalid key (NaN). VNode type:", l.type), l;
|
|
2347
2355
|
}
|
|
2348
|
-
const
|
|
2356
|
+
const Sr = process.env.NODE_ENV !== "production" ? mr : sn;
|
|
2349
2357
|
function sn(e, t = null, n = null, s = 0, r = null, o = !1) {
|
|
2350
|
-
if ((!e || e ===
|
|
2351
|
-
const c =
|
|
2358
|
+
if ((!e || e === fr) && (process.env.NODE_ENV !== "production" && !e && Q(`Invalid vnode type when creating vnode: ${e}.`), e = gr), yr(e)) {
|
|
2359
|
+
const c = ve(
|
|
2352
2360
|
e,
|
|
2353
2361
|
t,
|
|
2354
2362
|
!0
|
|
@@ -2357,17 +2365,17 @@ function sn(e, t = null, n = null, s = 0, r = null, o = !1) {
|
|
|
2357
2365
|
return n && ot(c, n), c.patchFlag = -2, c;
|
|
2358
2366
|
}
|
|
2359
2367
|
if (an(e) && (e = e.__vccOpts), t) {
|
|
2360
|
-
t =
|
|
2368
|
+
t = vr(t);
|
|
2361
2369
|
let { class: c, style: l } = t;
|
|
2362
|
-
c && !$(c) && (t.class = nt(c)), F(l) && (/* @__PURE__ */ Le(l) && !
|
|
2370
|
+
c && !$(c) && (t.class = nt(c)), F(l) && (/* @__PURE__ */ Le(l) && !O(l) && (l = Oe({}, l)), t.style = tt(l));
|
|
2363
2371
|
}
|
|
2364
|
-
const i = $(e) ? 1 :
|
|
2372
|
+
const i = $(e) ? 1 : dr(e) ? 128 : ur(e) ? 64 : F(e) ? 4 : U(e) ? 2 : 0;
|
|
2365
2373
|
return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ Le(e) && (e = /* @__PURE__ */ j(e), Q(
|
|
2366
2374
|
"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`.",
|
|
2367
2375
|
`
|
|
2368
2376
|
Component that was made reactive: `,
|
|
2369
2377
|
e
|
|
2370
|
-
)),
|
|
2378
|
+
)), br(
|
|
2371
2379
|
e,
|
|
2372
2380
|
t,
|
|
2373
2381
|
n,
|
|
@@ -2378,11 +2386,11 @@ Component that was made reactive: `,
|
|
|
2378
2386
|
!0
|
|
2379
2387
|
);
|
|
2380
2388
|
}
|
|
2381
|
-
function
|
|
2382
|
-
return e ? /* @__PURE__ */ Le(e) || en(e) ?
|
|
2389
|
+
function vr(e) {
|
|
2390
|
+
return e ? /* @__PURE__ */ Le(e) || en(e) ? Oe({}, e) : e : null;
|
|
2383
2391
|
}
|
|
2384
|
-
function
|
|
2385
|
-
const { props: r, ref: o, patchFlag: i, children: c, transition: l } = e, f = t ?
|
|
2392
|
+
function ve(e, t, n = !1, s = !1) {
|
|
2393
|
+
const { props: r, ref: o, patchFlag: i, children: c, transition: l } = e, f = t ? Er(r || {}, t) : r, h = {
|
|
2386
2394
|
__v_isVNode: !0,
|
|
2387
2395
|
__v_skip: !0,
|
|
2388
2396
|
type: e.type,
|
|
@@ -2392,11 +2400,11 @@ function Se(e, t, n = !1, s = !1) {
|
|
|
2392
2400
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
2393
2401
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
2394
2402
|
// the refs so the single vnode can be set on multiple refs
|
|
2395
|
-
n && o ?
|
|
2403
|
+
n && o ? O(o) ? o.concat(pe(t)) : [o, pe(t)] : pe(t)
|
|
2396
2404
|
) : o,
|
|
2397
2405
|
scopeId: e.scopeId,
|
|
2398
2406
|
slotScopeIds: e.slotScopeIds,
|
|
2399
|
-
children: process.env.NODE_ENV !== "production" && i === -1 &&
|
|
2407
|
+
children: process.env.NODE_ENV !== "production" && i === -1 && O(c) ? c.map(rn) : c,
|
|
2400
2408
|
target: e.target,
|
|
2401
2409
|
targetStart: e.targetStart,
|
|
2402
2410
|
targetAnchor: e.targetAnchor,
|
|
@@ -2418,32 +2426,32 @@ function Se(e, t, n = !1, s = !1) {
|
|
|
2418
2426
|
// they will simply be overwritten.
|
|
2419
2427
|
component: e.component,
|
|
2420
2428
|
suspense: e.suspense,
|
|
2421
|
-
ssContent: e.ssContent &&
|
|
2422
|
-
ssFallback: e.ssFallback &&
|
|
2429
|
+
ssContent: e.ssContent && ve(e.ssContent),
|
|
2430
|
+
ssFallback: e.ssFallback && ve(e.ssFallback),
|
|
2423
2431
|
placeholder: e.placeholder,
|
|
2424
2432
|
el: e.el,
|
|
2425
2433
|
anchor: e.anchor,
|
|
2426
2434
|
ctx: e.ctx,
|
|
2427
2435
|
ce: e.ce
|
|
2428
2436
|
};
|
|
2429
|
-
return l && s &&
|
|
2437
|
+
return l && s && Qt(
|
|
2430
2438
|
h,
|
|
2431
2439
|
l.clone(h)
|
|
2432
2440
|
), h;
|
|
2433
2441
|
}
|
|
2434
2442
|
function rn(e) {
|
|
2435
|
-
const t =
|
|
2436
|
-
return
|
|
2443
|
+
const t = ve(e);
|
|
2444
|
+
return O(e.children) && (t.children = e.children.map(rn)), t;
|
|
2437
2445
|
}
|
|
2438
|
-
function
|
|
2439
|
-
return
|
|
2446
|
+
function wr(e = " ", t = 0) {
|
|
2447
|
+
return Sr(_r, null, e, t);
|
|
2440
2448
|
}
|
|
2441
2449
|
function ot(e, t) {
|
|
2442
2450
|
let n = 0;
|
|
2443
2451
|
const { shapeFlag: s } = e;
|
|
2444
2452
|
if (t == null)
|
|
2445
2453
|
t = null;
|
|
2446
|
-
else if (
|
|
2454
|
+
else if (O(t))
|
|
2447
2455
|
n = 16;
|
|
2448
2456
|
else if (typeof t == "object")
|
|
2449
2457
|
if (s & 65) {
|
|
@@ -2451,11 +2459,11 @@ function ot(e, t) {
|
|
|
2451
2459
|
r && (r._c && (r._d = !1), ot(e, r()), r._c && (r._d = !0));
|
|
2452
2460
|
return;
|
|
2453
2461
|
} else
|
|
2454
|
-
n = 32, !t._ && !en(t) && (t._ctx =
|
|
2455
|
-
else
|
|
2462
|
+
n = 32, !t._ && !en(t) && (t._ctx = Se);
|
|
2463
|
+
else U(t) ? (t = { default: t, _ctx: Se }, n = 32) : (t = String(t), s & 64 ? (n = 16, t = [wr(t)]) : n = 8);
|
|
2456
2464
|
e.children = t, e.shapeFlag |= n;
|
|
2457
2465
|
}
|
|
2458
|
-
function
|
|
2466
|
+
function Er(...e) {
|
|
2459
2467
|
const t = {};
|
|
2460
2468
|
for (let n = 0; n < e.length; n++) {
|
|
2461
2469
|
const s = e[n];
|
|
@@ -2464,15 +2472,17 @@ function vr(...e) {
|
|
|
2464
2472
|
t.class !== s.class && (t.class = nt([t.class, s.class]));
|
|
2465
2473
|
else if (r === "style")
|
|
2466
2474
|
t.style = tt([t.style, s.style]);
|
|
2467
|
-
else if (
|
|
2475
|
+
else if (Ks(r)) {
|
|
2468
2476
|
const o = t[r], i = s[r];
|
|
2469
|
-
i && o !== i && !(
|
|
2477
|
+
i && o !== i && !(O(o) && o.includes(i)) ? t[r] = o ? [].concat(o, i) : i : i == null && o == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
|
|
2478
|
+
// the model listener.
|
|
2479
|
+
!Hs(r) && (t[r] = i);
|
|
2470
2480
|
} else r !== "" && (t[r] = s[r]);
|
|
2471
2481
|
}
|
|
2472
2482
|
return t;
|
|
2473
2483
|
}
|
|
2474
2484
|
{
|
|
2475
|
-
const e =
|
|
2485
|
+
const e = ke(), t = (n, s) => {
|
|
2476
2486
|
let r;
|
|
2477
2487
|
return (r = e[n]) || (r = e[n] = []), r.push(s), (o) => {
|
|
2478
2488
|
r.length > 1 ? r.forEach((i) => i(o)) : r[0](o);
|
|
@@ -2487,9 +2497,9 @@ function vr(...e) {
|
|
|
2487
2497
|
);
|
|
2488
2498
|
}
|
|
2489
2499
|
process.env.NODE_ENV;
|
|
2490
|
-
const
|
|
2500
|
+
const Nr = /(?:^|[-_])\w/g, Or = (e) => e.replace(Nr, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
2491
2501
|
function on(e, t = !0) {
|
|
2492
|
-
return
|
|
2502
|
+
return U(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
2493
2503
|
}
|
|
2494
2504
|
function cn(e, t, n = !1) {
|
|
2495
2505
|
let s = on(t);
|
|
@@ -2507,12 +2517,12 @@ function cn(e, t, n = !1) {
|
|
|
2507
2517
|
e.parent.type.components
|
|
2508
2518
|
) || r(e.appContext.components);
|
|
2509
2519
|
}
|
|
2510
|
-
return s ?
|
|
2520
|
+
return s ? Or(s) : n ? "App" : "Anonymous";
|
|
2511
2521
|
}
|
|
2512
2522
|
function an(e) {
|
|
2513
|
-
return
|
|
2523
|
+
return U(e) && "__vccOpts" in e;
|
|
2514
2524
|
}
|
|
2515
|
-
function
|
|
2525
|
+
function kr() {
|
|
2516
2526
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
2517
2527
|
return;
|
|
2518
2528
|
const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
|
|
@@ -2533,20 +2543,20 @@ function Nr() {
|
|
|
2533
2543
|
">"
|
|
2534
2544
|
];
|
|
2535
2545
|
} else {
|
|
2536
|
-
if (/* @__PURE__ */
|
|
2546
|
+
if (/* @__PURE__ */ Wt(a))
|
|
2537
2547
|
return [
|
|
2538
2548
|
"div",
|
|
2539
2549
|
{},
|
|
2540
|
-
["span", e, /* @__PURE__ */
|
|
2550
|
+
["span", e, /* @__PURE__ */ je(a) ? "ShallowReactive" : "Reactive"],
|
|
2541
2551
|
"<",
|
|
2542
2552
|
c(a),
|
|
2543
|
-
`>${/* @__PURE__ */
|
|
2553
|
+
`>${/* @__PURE__ */ Ue(a) ? " (readonly)" : ""}`
|
|
2544
2554
|
];
|
|
2545
|
-
if (/* @__PURE__ */
|
|
2555
|
+
if (/* @__PURE__ */ Ue(a))
|
|
2546
2556
|
return [
|
|
2547
2557
|
"div",
|
|
2548
2558
|
{},
|
|
2549
|
-
["span", e, /* @__PURE__ */
|
|
2559
|
+
["span", e, /* @__PURE__ */ je(a) ? "ShallowReadonly" : "Readonly"],
|
|
2550
2560
|
"<",
|
|
2551
2561
|
c(a),
|
|
2552
2562
|
">"
|
|
@@ -2568,7 +2578,7 @@ function Nr() {
|
|
|
2568
2578
|
};
|
|
2569
2579
|
function o(a) {
|
|
2570
2580
|
const u = [];
|
|
2571
|
-
a.type.props && a.props && u.push(i("props", /* @__PURE__ */ j(a.props))), a.setupState !==
|
|
2581
|
+
a.type.props && a.props && u.push(i("props", /* @__PURE__ */ j(a.props))), a.setupState !== qe && u.push(i("setup", a.setupState)), a.data !== qe && u.push(i("data", /* @__PURE__ */ j(a.data)));
|
|
2572
2582
|
const d = l(a, "computed");
|
|
2573
2583
|
d && u.push(i("computed", d));
|
|
2574
2584
|
const _ = l(a, "inject");
|
|
@@ -2586,7 +2596,7 @@ function Nr() {
|
|
|
2586
2596
|
]), u;
|
|
2587
2597
|
}
|
|
2588
2598
|
function i(a, u) {
|
|
2589
|
-
return u =
|
|
2599
|
+
return u = Oe({}, u), Object.keys(u).length ? [
|
|
2590
2600
|
"div",
|
|
2591
2601
|
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
2592
2602
|
[
|
|
@@ -2615,7 +2625,7 @@ function Nr() {
|
|
|
2615
2625
|
}
|
|
2616
2626
|
function l(a, u) {
|
|
2617
2627
|
const d = a.type;
|
|
2618
|
-
if (
|
|
2628
|
+
if (U(d))
|
|
2619
2629
|
return;
|
|
2620
2630
|
const _ = {};
|
|
2621
2631
|
for (const w in a.ctx)
|
|
@@ -2624,22 +2634,22 @@ function Nr() {
|
|
|
2624
2634
|
}
|
|
2625
2635
|
function f(a, u, d) {
|
|
2626
2636
|
const _ = a[d];
|
|
2627
|
-
if (
|
|
2637
|
+
if (O(_) && _.includes(u) || F(_) && u in _ || a.extends && f(a.extends, u, d) || a.mixins && a.mixins.some((w) => f(w, u, d)))
|
|
2628
2638
|
return !0;
|
|
2629
2639
|
}
|
|
2630
2640
|
function h(a) {
|
|
2631
|
-
return /* @__PURE__ */
|
|
2641
|
+
return /* @__PURE__ */ je(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
|
|
2632
2642
|
}
|
|
2633
2643
|
window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
|
|
2634
2644
|
}
|
|
2635
2645
|
process.env.NODE_ENV;
|
|
2636
2646
|
process.env.NODE_ENV;
|
|
2637
2647
|
process.env.NODE_ENV;
|
|
2638
|
-
function
|
|
2639
|
-
|
|
2648
|
+
function Vr() {
|
|
2649
|
+
kr();
|
|
2640
2650
|
}
|
|
2641
|
-
process.env.NODE_ENV !== "production" &&
|
|
2642
|
-
const
|
|
2651
|
+
process.env.NODE_ENV !== "production" && Vr();
|
|
2652
|
+
const Cr = [
|
|
2643
2653
|
"@context",
|
|
2644
2654
|
"activeLink",
|
|
2645
2655
|
"computed",
|
|
@@ -2651,8 +2661,7 @@ const Vr = [
|
|
|
2651
2661
|
"subs",
|
|
2652
2662
|
"version"
|
|
2653
2663
|
];
|
|
2654
|
-
class _t extends
|
|
2655
|
-
_className = "StorePersister";
|
|
2664
|
+
class _t extends $s {
|
|
2656
2665
|
_crypt;
|
|
2657
2666
|
_excludedKeys;
|
|
2658
2667
|
_persister;
|
|
@@ -2689,7 +2698,7 @@ class _t extends js {
|
|
|
2689
2698
|
const f = this.getValue(t[l]);
|
|
2690
2699
|
f && (c[l] = await this.cryptProperty(r, f, n));
|
|
2691
2700
|
}
|
|
2692
|
-
this.debugLog(`cryptState - ${this.store.$id}`, { encryptedState: c }),
|
|
2701
|
+
this.debugLog(`cryptState - ${this.store.$id}`, { encryptedState: c }), Y(c) || (t = { ...t, ...c }, this.options && (this.options.isEncrypted = !n));
|
|
2693
2702
|
}
|
|
2694
2703
|
s(t);
|
|
2695
2704
|
});
|
|
@@ -2722,22 +2731,25 @@ class _t extends js {
|
|
|
2722
2731
|
for (const i of Object.keys(n))
|
|
2723
2732
|
if (!this.hasDeniedFirstChar(i[0]) && !t.has(i)) {
|
|
2724
2733
|
const c = n[i];
|
|
2725
|
-
|
|
2734
|
+
Y(c) || (s && this._propertiesToEncrypt.has(i) ? o[i] = await this.cryptProperty(r, c, !1) : o[i] = /* @__PURE__ */ j(c));
|
|
2726
2735
|
}
|
|
2727
2736
|
return o;
|
|
2728
2737
|
}
|
|
2729
2738
|
getWatchMutation() {
|
|
2730
2739
|
return this.options.watchMutation;
|
|
2731
2740
|
}
|
|
2741
|
+
static hasRequiredKeys(t) {
|
|
2742
|
+
return !!t?.persist || !!t?.watchMutation;
|
|
2743
|
+
}
|
|
2732
2744
|
initExcludedKeys() {
|
|
2733
2745
|
return /* @__PURE__ */ new Set([
|
|
2734
|
-
...
|
|
2746
|
+
...Cr,
|
|
2735
2747
|
...this.options.excludedKeys ?? []
|
|
2736
2748
|
]);
|
|
2737
2749
|
}
|
|
2738
2750
|
async persist() {
|
|
2739
2751
|
const t = await this.getStateToPersist();
|
|
2740
|
-
this.debugLog(`persist() ${this.store.$id} - stateToPersist:`, { state: t }),
|
|
2752
|
+
this.debugLog(`persist() ${this.store.$id} - stateToPersist:`, { state: t }), Y(t) || this._persister.setItem(this.store.$id, t);
|
|
2741
2753
|
}
|
|
2742
2754
|
propertyShouldBePersisted(t) {
|
|
2743
2755
|
return !this._excludedKeys.has(t);
|
|
@@ -2745,7 +2757,7 @@ class _t extends js {
|
|
|
2745
2757
|
async remember() {
|
|
2746
2758
|
return this.state.isLoading = !0, new Promise(async (t) => {
|
|
2747
2759
|
let n = await this.getPersistedState();
|
|
2748
|
-
return n && !
|
|
2760
|
+
return n && !Y(n) && this.store.$patch(n), this.state.isLoading = !1, t(!0);
|
|
2749
2761
|
});
|
|
2750
2762
|
}
|
|
2751
2763
|
removePersistedState() {
|
|
@@ -2780,44 +2792,44 @@ class _t extends js {
|
|
|
2780
2792
|
this.toBeWatched() && (this.options && (this.options.watchMutation = !0), this.storeSubscribe = this.storeSubscription.bind(this));
|
|
2781
2793
|
}
|
|
2782
2794
|
}
|
|
2783
|
-
class
|
|
2795
|
+
class Rr extends un {
|
|
2784
2796
|
_resetStoreCallback = (t) => {
|
|
2785
2797
|
const { removePersistedState: n } = t;
|
|
2786
2798
|
typeof n == "function" && n();
|
|
2787
2799
|
};
|
|
2788
2800
|
constructor() {
|
|
2789
2801
|
super(
|
|
2790
|
-
|
|
2802
|
+
Ut,
|
|
2791
2803
|
_t.customizeStore.bind(_t),
|
|
2792
2804
|
A
|
|
2793
2805
|
);
|
|
2794
2806
|
}
|
|
2795
2807
|
}
|
|
2796
|
-
const
|
|
2797
|
-
function
|
|
2798
|
-
return
|
|
2808
|
+
const we = new Rr();
|
|
2809
|
+
function Pr(e, t) {
|
|
2810
|
+
return we.pluginOptions = xr(e, t), we;
|
|
2799
2811
|
}
|
|
2800
|
-
function
|
|
2812
|
+
function xr(e, t) {
|
|
2801
2813
|
let n, s;
|
|
2802
2814
|
const r = /* @__PURE__ */ new Set();
|
|
2803
2815
|
try {
|
|
2804
2816
|
if (window)
|
|
2805
|
-
return !
|
|
2817
|
+
return !Y(e) && e && (n = new et({ name: e, keyPath: "storeName" })), t && (s = new ie(t)), { persister: n, crypt: s, watchedStore: r };
|
|
2806
2818
|
} catch {
|
|
2807
2819
|
}
|
|
2808
2820
|
return { persister: n, crypt: s, watchedStore: r };
|
|
2809
2821
|
}
|
|
2810
|
-
function
|
|
2822
|
+
function jr(e, t) {
|
|
2811
2823
|
let n;
|
|
2812
|
-
return t && (n = new
|
|
2813
|
-
persister: new
|
|
2824
|
+
return t && (n = new ie(t)), we.pluginOptions = {
|
|
2825
|
+
persister: new Fs({ name: e }),
|
|
2814
2826
|
crypt: n,
|
|
2815
2827
|
watchedStore: /* @__PURE__ */ new Set()
|
|
2816
|
-
},
|
|
2828
|
+
}, we;
|
|
2817
2829
|
}
|
|
2818
2830
|
export {
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2831
|
+
Ut as PLUGIN_NAME,
|
|
2832
|
+
Fs as PersisterMock,
|
|
2833
|
+
Pr as createPersistStatePlugin,
|
|
2834
|
+
jr as createPluginMock
|
|
2823
2835
|
};
|