pinia-plugin-subscription 0.0.0-beta.20 → 0.0.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -10
- package/dist/pinia-plugin-subscription.js +249 -251
- package/dist/pinia-plugin-subscription.umd.cjs +5 -5
- package/dist/types/index.d.ts +11 -9
- package/dist/types/store.d.ts +1 -0
- package/package.json +1 -1
|
@@ -69,8 +69,8 @@ class Dt {
|
|
|
69
69
|
this.console.error(...e);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
const Vt = "pinia-plugin-subscription",
|
|
73
|
-
function
|
|
72
|
+
const Vt = "pinia-plugin-subscription", le = (t, e = "white") => `background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;
|
|
73
|
+
function ae(t, e) {
|
|
74
74
|
if (!t)
|
|
75
75
|
throw new Error("Style instructions are required");
|
|
76
76
|
console.log(
|
|
@@ -80,7 +80,7 @@ function ue(t, e) {
|
|
|
80
80
|
...e
|
|
81
81
|
);
|
|
82
82
|
}
|
|
83
|
-
class
|
|
83
|
+
class ue {
|
|
84
84
|
_bgColor = "#ffec73";
|
|
85
85
|
_color = "green";
|
|
86
86
|
_icon = "🍍⚡";
|
|
@@ -95,7 +95,7 @@ class fe {
|
|
|
95
95
|
return ` [${n} ${Vt}] - ${e} `;
|
|
96
96
|
}
|
|
97
97
|
generateStyle(e) {
|
|
98
|
-
return
|
|
98
|
+
return le(e.bgColor, e.color);
|
|
99
99
|
}
|
|
100
100
|
getStyleDefinition(e) {
|
|
101
101
|
return this._styles[e ?? "info"];
|
|
@@ -119,43 +119,21 @@ class fe {
|
|
|
119
119
|
return [this.formatMessage(e.shift(), n), ...e ?? []];
|
|
120
120
|
}
|
|
121
121
|
useLog(e, n) {
|
|
122
|
-
|
|
122
|
+
ae(
|
|
123
123
|
this.generateStyle(e),
|
|
124
124
|
this.rebuildArgs(n, e.icon)
|
|
125
125
|
);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
class
|
|
128
|
+
class fe extends ue {
|
|
129
129
|
_pluginName = Vt;
|
|
130
130
|
}
|
|
131
|
-
const
|
|
132
|
-
function Fn(t, e, n) {
|
|
133
|
-
const s = n ? { storeOptions: n } : {};
|
|
134
|
-
return typeof e == "function" ? de(
|
|
135
|
-
t,
|
|
136
|
-
e,
|
|
137
|
-
s
|
|
138
|
-
) : _e(
|
|
139
|
-
t,
|
|
140
|
-
e,
|
|
141
|
-
s
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
function de(t, e, n) {
|
|
145
|
-
return $t(t, e, n);
|
|
146
|
-
}
|
|
147
|
-
function _e(t, e, n) {
|
|
148
|
-
return n && (e = { ...e, ...n ?? {} }), $t(t, e);
|
|
149
|
-
}
|
|
150
|
-
const ge = /* @__PURE__ */ new Set(["_", "$"]);
|
|
151
|
-
function xt(t) {
|
|
152
|
-
return ge.has(t[0]);
|
|
153
|
-
}
|
|
131
|
+
const he = new fe();
|
|
154
132
|
function lt(t) {
|
|
155
133
|
return t ? Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : typeof t == "string" ? t.trim() === "" : !1 : !(typeof t == "boolean" || typeof t == "number");
|
|
156
134
|
}
|
|
157
135
|
const wt = "PluginSubscription";
|
|
158
|
-
class
|
|
136
|
+
class pe extends Dt {
|
|
159
137
|
_className = wt;
|
|
160
138
|
_pluginDebug;
|
|
161
139
|
_resetStoreCallback = [];
|
|
@@ -171,7 +149,7 @@ class be extends Dt {
|
|
|
171
149
|
return this._subscriptions;
|
|
172
150
|
}
|
|
173
151
|
constructor(e, n) {
|
|
174
|
-
super(Array.isArray(n) && !!n?.includes(wt),
|
|
152
|
+
super(Array.isArray(n) && !!n?.includes(wt), he), this._pluginDebug = Array.isArray(n) ? n : void 0, this._subscribers = e;
|
|
175
153
|
}
|
|
176
154
|
addResetStoreCallback(e) {
|
|
177
155
|
this._resetStoreCallback.push(e);
|
|
@@ -200,7 +178,7 @@ class be extends Dt {
|
|
|
200
178
|
this.definePluginDebug(s)
|
|
201
179
|
) && (this._subscribersDelivered.add(`${s.name}-${e.$id}`), s.subscriptions && this.subscriptionDelivery({ store: e, options: n }, s.subscriptions), s.storeMutationSubscription && this.storeMutationSubscription(s.storeMutationSubscription), s.storeOnActionSubscription && this.storeOnActionSubscription(s.storeOnActionSubscription), s.resetStoreCallback && this.addResetStoreCallback(s.resetStoreCallback));
|
|
202
180
|
}
|
|
203
|
-
), this.rewriteResetStore({ store: e },
|
|
181
|
+
), this.rewriteResetStore({ store: e }, JSON.stringify(e.$state), Object.assign({}, e));
|
|
204
182
|
} catch (s) {
|
|
205
183
|
this.logError(s, e, n);
|
|
206
184
|
}
|
|
@@ -208,9 +186,7 @@ class be extends Dt {
|
|
|
208
186
|
}
|
|
209
187
|
rewriteResetStore({ store: e }, n, s) {
|
|
210
188
|
e.$reset = () => {
|
|
211
|
-
this.
|
|
212
|
-
xt(r) || (e[r] = n[r] ?? s[r]);
|
|
213
|
-
}), e.$patch(JSON.parse(JSON.stringify(n)));
|
|
189
|
+
this.debugLog("rewriteResetStore()", { initState: n, store: e, customStore: s }), this.executeResetStoreCallbacks(e), e.$patch(JSON.parse(n));
|
|
214
190
|
};
|
|
215
191
|
}
|
|
216
192
|
storeOnActionSubscription(e) {
|
|
@@ -267,26 +243,26 @@ class be extends Dt {
|
|
|
267
243
|
}
|
|
268
244
|
}
|
|
269
245
|
// @__NO_SIDE_EFFECTS__
|
|
270
|
-
function
|
|
246
|
+
function de(t) {
|
|
271
247
|
const e = /* @__PURE__ */ Object.create(null);
|
|
272
248
|
for (const n of t.split(",")) e[n] = 1;
|
|
273
249
|
return (n) => n in e;
|
|
274
250
|
}
|
|
275
251
|
const at = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
276
252
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
277
|
-
const
|
|
278
|
-
},
|
|
279
|
-
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), F = Object.assign,
|
|
253
|
+
const xt = () => {
|
|
254
|
+
}, _e = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
|
|
255
|
+
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), F = Object.assign, ge = Object.prototype.hasOwnProperty, ut = (t, e) => ge.call(t, e), d = Array.isArray, K = (t) => Tt(t) === "[object Map]", A = (t) => typeof t == "function", N = (t) => typeof t == "string", U = (t) => typeof t == "symbol", _ = (t) => t !== null && typeof t == "object", be = Object.prototype.toString, Tt = (t) => be.call(t), Mt = (t) => Tt(t).slice(8, -1), Z = (t) => N(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, me = (t) => {
|
|
280
256
|
const e = /* @__PURE__ */ Object.create(null);
|
|
281
257
|
return ((n) => e[n] || (e[n] = t(n)));
|
|
282
|
-
},
|
|
258
|
+
}, ye = me((t) => t.charAt(0).toUpperCase() + t.slice(1)), dt = (t, e) => !Object.is(t, e);
|
|
283
259
|
let Nt;
|
|
284
260
|
const tt = () => Nt || (Nt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
285
261
|
function _t(t) {
|
|
286
262
|
if (d(t)) {
|
|
287
263
|
const e = {};
|
|
288
264
|
for (let n = 0; n < t.length; n++) {
|
|
289
|
-
const s = t[n], r = N(s) ?
|
|
265
|
+
const s = t[n], r = N(s) ? we(s) : _t(s);
|
|
290
266
|
if (r)
|
|
291
267
|
for (const o in r)
|
|
292
268
|
e[o] = r[o];
|
|
@@ -295,12 +271,12 @@ function _t(t) {
|
|
|
295
271
|
} else if (N(t) || _(t))
|
|
296
272
|
return t;
|
|
297
273
|
}
|
|
298
|
-
const
|
|
299
|
-
function
|
|
274
|
+
const Se = /;(?![^(]*\))/g, Ee = /:([^]+)/, Oe = /\/\*[^]*?\*\//g;
|
|
275
|
+
function we(t) {
|
|
300
276
|
const e = {};
|
|
301
|
-
return t.replace(
|
|
277
|
+
return t.replace(Oe, "").split(Se).forEach((n) => {
|
|
302
278
|
if (n) {
|
|
303
|
-
const s = n.split(
|
|
279
|
+
const s = n.split(Ee);
|
|
304
280
|
s.length > 1 && (e[s[0].trim()] = s[1].trim());
|
|
305
281
|
}
|
|
306
282
|
}), e;
|
|
@@ -322,12 +298,12 @@ function gt(t) {
|
|
|
322
298
|
function M(t, ...e) {
|
|
323
299
|
console.warn(`[Vue warn] ${t}`, ...e);
|
|
324
300
|
}
|
|
325
|
-
let
|
|
301
|
+
let Pt = 0, et;
|
|
326
302
|
function bt() {
|
|
327
|
-
|
|
303
|
+
Pt++;
|
|
328
304
|
}
|
|
329
305
|
function mt() {
|
|
330
|
-
if (--
|
|
306
|
+
if (--Pt > 0)
|
|
331
307
|
return;
|
|
332
308
|
let t;
|
|
333
309
|
for (; et; ) {
|
|
@@ -345,7 +321,7 @@ function mt() {
|
|
|
345
321
|
}
|
|
346
322
|
if (t) throw t;
|
|
347
323
|
}
|
|
348
|
-
class
|
|
324
|
+
class Ne {
|
|
349
325
|
// TODO isolatedDeclarations "__v_skip"
|
|
350
326
|
constructor(e) {
|
|
351
327
|
this.computed = e, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = !0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
|
|
@@ -375,7 +351,7 @@ class Ie {
|
|
|
375
351
|
}
|
|
376
352
|
}
|
|
377
353
|
}
|
|
378
|
-
const
|
|
354
|
+
const Ft = /* @__PURE__ */ new WeakMap(), nt = Symbol(
|
|
379
355
|
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
380
356
|
), vt = Symbol(
|
|
381
357
|
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
@@ -383,7 +359,7 @@ const jt = /* @__PURE__ */ new WeakMap(), nt = Symbol(
|
|
|
383
359
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
384
360
|
);
|
|
385
361
|
function I(t, e, n, s, r, o) {
|
|
386
|
-
const i =
|
|
362
|
+
const i = Ft.get(t);
|
|
387
363
|
if (!i)
|
|
388
364
|
return;
|
|
389
365
|
const c = (a) => {
|
|
@@ -420,8 +396,8 @@ function I(t, e, n, s, r, o) {
|
|
|
420
396
|
}
|
|
421
397
|
mt();
|
|
422
398
|
}
|
|
423
|
-
function
|
|
424
|
-
const n =
|
|
399
|
+
function ve(t, e) {
|
|
400
|
+
const n = Ft.get(t);
|
|
425
401
|
return n && n.get(e);
|
|
426
402
|
}
|
|
427
403
|
function D(t) {
|
|
@@ -432,9 +408,9 @@ function yt(t) {
|
|
|
432
408
|
return t = f(t), t;
|
|
433
409
|
}
|
|
434
410
|
function R(t, e) {
|
|
435
|
-
return
|
|
411
|
+
return E(t) ? St(t) ? L(v(e)) : L(e) : v(e);
|
|
436
412
|
}
|
|
437
|
-
const
|
|
413
|
+
const Re = {
|
|
438
414
|
__proto__: null,
|
|
439
415
|
[Symbol.iterator]() {
|
|
440
416
|
return rt(this, Symbol.iterator, (t) => R(this, t));
|
|
@@ -448,10 +424,10 @@ const $e = {
|
|
|
448
424
|
return rt(this, "entries", (t) => (t[1] = R(this, t[1]), t));
|
|
449
425
|
},
|
|
450
426
|
every(t, e) {
|
|
451
|
-
return
|
|
427
|
+
return O(this, "every", t, e, void 0, arguments);
|
|
452
428
|
},
|
|
453
429
|
filter(t, e) {
|
|
454
|
-
return
|
|
430
|
+
return O(
|
|
455
431
|
this,
|
|
456
432
|
"filter",
|
|
457
433
|
t,
|
|
@@ -461,7 +437,7 @@ const $e = {
|
|
|
461
437
|
);
|
|
462
438
|
},
|
|
463
439
|
find(t, e) {
|
|
464
|
-
return
|
|
440
|
+
return O(
|
|
465
441
|
this,
|
|
466
442
|
"find",
|
|
467
443
|
t,
|
|
@@ -471,10 +447,10 @@ const $e = {
|
|
|
471
447
|
);
|
|
472
448
|
},
|
|
473
449
|
findIndex(t, e) {
|
|
474
|
-
return
|
|
450
|
+
return O(this, "findIndex", t, e, void 0, arguments);
|
|
475
451
|
},
|
|
476
452
|
findLast(t, e) {
|
|
477
|
-
return
|
|
453
|
+
return O(
|
|
478
454
|
this,
|
|
479
455
|
"findLast",
|
|
480
456
|
t,
|
|
@@ -484,11 +460,11 @@ const $e = {
|
|
|
484
460
|
);
|
|
485
461
|
},
|
|
486
462
|
findLastIndex(t, e) {
|
|
487
|
-
return
|
|
463
|
+
return O(this, "findLastIndex", t, e, void 0, arguments);
|
|
488
464
|
},
|
|
489
465
|
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
490
466
|
forEach(t, e) {
|
|
491
|
-
return
|
|
467
|
+
return O(this, "forEach", t, e, void 0, arguments);
|
|
492
468
|
},
|
|
493
469
|
includes(...t) {
|
|
494
470
|
return st(this, "includes", t);
|
|
@@ -504,13 +480,13 @@ const $e = {
|
|
|
504
480
|
return st(this, "lastIndexOf", t);
|
|
505
481
|
},
|
|
506
482
|
map(t, e) {
|
|
507
|
-
return
|
|
483
|
+
return O(this, "map", t, e, void 0, arguments);
|
|
508
484
|
},
|
|
509
485
|
pop() {
|
|
510
|
-
return
|
|
486
|
+
return j(this, "pop");
|
|
511
487
|
},
|
|
512
488
|
push(...t) {
|
|
513
|
-
return
|
|
489
|
+
return j(this, "push", t);
|
|
514
490
|
},
|
|
515
491
|
reduce(t, ...e) {
|
|
516
492
|
return Ct(this, "reduce", t, e);
|
|
@@ -519,14 +495,14 @@ const $e = {
|
|
|
519
495
|
return Ct(this, "reduceRight", t, e);
|
|
520
496
|
},
|
|
521
497
|
shift() {
|
|
522
|
-
return
|
|
498
|
+
return j(this, "shift");
|
|
523
499
|
},
|
|
524
500
|
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
525
501
|
some(t, e) {
|
|
526
|
-
return
|
|
502
|
+
return O(this, "some", t, e, void 0, arguments);
|
|
527
503
|
},
|
|
528
504
|
splice(...t) {
|
|
529
|
-
return
|
|
505
|
+
return j(this, "splice", t);
|
|
530
506
|
},
|
|
531
507
|
toReversed() {
|
|
532
508
|
return D(this).toReversed();
|
|
@@ -538,7 +514,7 @@ const $e = {
|
|
|
538
514
|
return D(this).toSpliced(...t);
|
|
539
515
|
},
|
|
540
516
|
unshift(...t) {
|
|
541
|
-
return
|
|
517
|
+
return j(this, "unshift", t);
|
|
542
518
|
},
|
|
543
519
|
values() {
|
|
544
520
|
return rt(this, "values", (t) => R(this, t));
|
|
@@ -551,10 +527,10 @@ function rt(t, e, n) {
|
|
|
551
527
|
return o.done || (o.value = n(o.value)), o;
|
|
552
528
|
}), r;
|
|
553
529
|
}
|
|
554
|
-
const
|
|
555
|
-
function
|
|
530
|
+
const Ce = Array.prototype;
|
|
531
|
+
function O(t, e, n, s, r, o) {
|
|
556
532
|
const i = yt(t), c = i !== t && !y(t), a = i[e];
|
|
557
|
-
if (a !==
|
|
533
|
+
if (a !== Ce[e]) {
|
|
558
534
|
const l = a.apply(t, o);
|
|
559
535
|
return c ? v(l) : l;
|
|
560
536
|
}
|
|
@@ -580,18 +556,18 @@ function st(t, e, n) {
|
|
|
580
556
|
const s = f(t), r = s[e](...n);
|
|
581
557
|
return (r === -1 || r === !1) && H(n[0]) ? (n[0] = f(n[0]), s[e](...n)) : r;
|
|
582
558
|
}
|
|
583
|
-
function
|
|
559
|
+
function j(t, e, n = []) {
|
|
584
560
|
bt();
|
|
585
561
|
const s = f(t)[e].apply(t, n);
|
|
586
562
|
return mt(), s;
|
|
587
563
|
}
|
|
588
|
-
const
|
|
564
|
+
const Ie = /* @__PURE__ */ de("__proto__,__v_isRef,__isVue"), kt = new Set(
|
|
589
565
|
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(U)
|
|
590
566
|
);
|
|
591
|
-
function
|
|
567
|
+
function Ae(t) {
|
|
592
568
|
return U(t) || (t = String(t)), f(this).hasOwnProperty(t);
|
|
593
569
|
}
|
|
594
|
-
class
|
|
570
|
+
class jt {
|
|
595
571
|
constructor(e = !1, n = !1) {
|
|
596
572
|
this._isReadonly = e, this._isShallow = n;
|
|
597
573
|
}
|
|
@@ -605,16 +581,16 @@ class Kt {
|
|
|
605
581
|
if (n === "__v_isShallow")
|
|
606
582
|
return o;
|
|
607
583
|
if (n === "__v_raw")
|
|
608
|
-
return s === (r ? o ?
|
|
584
|
+
return s === (r ? o ? je : Lt : o ? ke : Ht).get(e) || // receiver is not the reactive proxy, but has the same prototype
|
|
609
585
|
// this means the receiver is a user proxy of the reactive proxy
|
|
610
586
|
Object.getPrototypeOf(e) === Object.getPrototypeOf(s) ? e : void 0;
|
|
611
587
|
const i = d(e);
|
|
612
588
|
if (!r) {
|
|
613
589
|
let a;
|
|
614
|
-
if (i && (a =
|
|
590
|
+
if (i && (a = Re[n]))
|
|
615
591
|
return a;
|
|
616
592
|
if (n === "hasOwnProperty")
|
|
617
|
-
return
|
|
593
|
+
return Ae;
|
|
618
594
|
}
|
|
619
595
|
const c = Reflect.get(
|
|
620
596
|
e,
|
|
@@ -624,16 +600,16 @@ class Kt {
|
|
|
624
600
|
// its class methods
|
|
625
601
|
g(e) ? e : s
|
|
626
602
|
);
|
|
627
|
-
if ((U(n) ? kt.has(n) :
|
|
603
|
+
if ((U(n) ? kt.has(n) : Ie(n)) || o)
|
|
628
604
|
return c;
|
|
629
605
|
if (g(c)) {
|
|
630
606
|
const a = i && Z(n) ? c : c.value;
|
|
631
607
|
return r && _(a) ? ht(a) : a;
|
|
632
608
|
}
|
|
633
|
-
return _(c) ? r ? ht(c) :
|
|
609
|
+
return _(c) ? r ? ht(c) : zt(c) : c;
|
|
634
610
|
}
|
|
635
611
|
}
|
|
636
|
-
class
|
|
612
|
+
class $e extends jt {
|
|
637
613
|
constructor(e = !1) {
|
|
638
614
|
super(!1, e);
|
|
639
615
|
}
|
|
@@ -641,8 +617,8 @@ class Te extends Kt {
|
|
|
641
617
|
let o = e[n];
|
|
642
618
|
const i = d(e) && Z(n);
|
|
643
619
|
if (!this._isShallow) {
|
|
644
|
-
const u =
|
|
645
|
-
if (!y(s) && !
|
|
620
|
+
const u = E(o);
|
|
621
|
+
if (!y(s) && !E(s) && (o = f(o), s = f(s)), !i && g(o) && !g(s))
|
|
646
622
|
return u ? (process.env.NODE_ENV !== "production" && M(
|
|
647
623
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
648
624
|
e[n]
|
|
@@ -668,7 +644,7 @@ class Te extends Kt {
|
|
|
668
644
|
return Reflect.ownKeys(e);
|
|
669
645
|
}
|
|
670
646
|
}
|
|
671
|
-
class
|
|
647
|
+
class De extends jt {
|
|
672
648
|
constructor(e = !1) {
|
|
673
649
|
super(!0, e);
|
|
674
650
|
}
|
|
@@ -685,8 +661,8 @@ class Me extends Kt {
|
|
|
685
661
|
), !0;
|
|
686
662
|
}
|
|
687
663
|
}
|
|
688
|
-
const
|
|
689
|
-
function
|
|
664
|
+
const Ve = /* @__PURE__ */ new $e(), xe = /* @__PURE__ */ new De(), ft = (t) => t, W = (t) => Reflect.getPrototypeOf(t);
|
|
665
|
+
function Te(t, e, n) {
|
|
690
666
|
return function(...s) {
|
|
691
667
|
const r = this.__v_raw, o = f(r), i = K(o), c = t === "entries" || t === Symbol.iterator && i, a = r[t](...s), u = n ? ft : e ? L : v;
|
|
692
668
|
return {
|
|
@@ -710,14 +686,14 @@ function q(t) {
|
|
|
710
686
|
if (process.env.NODE_ENV !== "production") {
|
|
711
687
|
const n = e[0] ? `on key "${e[0]}" ` : "";
|
|
712
688
|
M(
|
|
713
|
-
`${
|
|
689
|
+
`${ye(t)} operation ${n}failed: target is readonly.`,
|
|
714
690
|
f(this)
|
|
715
691
|
);
|
|
716
692
|
}
|
|
717
693
|
return t === "delete" ? !1 : t === "clear" ? void 0 : this;
|
|
718
694
|
};
|
|
719
695
|
}
|
|
720
|
-
function
|
|
696
|
+
function Me(t, e) {
|
|
721
697
|
const n = {
|
|
722
698
|
get(r) {
|
|
723
699
|
const o = this.__v_raw, i = f(o), c = f(r), { has: a } = W(i), u = e ? ft : t ? L : v;
|
|
@@ -753,12 +729,12 @@ function ke(t, e) {
|
|
|
753
729
|
clear: q("clear")
|
|
754
730
|
} : {
|
|
755
731
|
add(r) {
|
|
756
|
-
!e && !y(r) && !
|
|
732
|
+
!e && !y(r) && !E(r) && (r = f(r));
|
|
757
733
|
const o = f(this);
|
|
758
734
|
return W(o).has.call(o, r) || (o.add(r), I(o, "add", r, r)), this;
|
|
759
735
|
},
|
|
760
736
|
set(r, o) {
|
|
761
|
-
!e && !y(o) && !
|
|
737
|
+
!e && !y(o) && !E(o) && (o = f(o));
|
|
762
738
|
const i = f(this), { has: c, get: a } = W(i);
|
|
763
739
|
let u = c.call(i, r);
|
|
764
740
|
u ? process.env.NODE_ENV !== "production" && It(i, c, r) : (r = f(r), u = c.call(i, r));
|
|
@@ -789,33 +765,33 @@ function ke(t, e) {
|
|
|
789
765
|
"entries",
|
|
790
766
|
Symbol.iterator
|
|
791
767
|
].forEach((r) => {
|
|
792
|
-
n[r] =
|
|
768
|
+
n[r] = Te(r, t, e);
|
|
793
769
|
}), n;
|
|
794
770
|
}
|
|
795
|
-
function
|
|
796
|
-
const n =
|
|
771
|
+
function Kt(t, e) {
|
|
772
|
+
const n = Me(t, e);
|
|
797
773
|
return (s, r, o) => r === "__v_isReactive" ? !t : r === "__v_isReadonly" ? t : r === "__v_raw" ? s : Reflect.get(
|
|
798
774
|
ut(n, r) && r in s ? n : s,
|
|
799
775
|
r,
|
|
800
776
|
o
|
|
801
777
|
);
|
|
802
778
|
}
|
|
803
|
-
const
|
|
804
|
-
get: /* @__PURE__ */
|
|
805
|
-
},
|
|
806
|
-
get: /* @__PURE__ */
|
|
779
|
+
const Pe = {
|
|
780
|
+
get: /* @__PURE__ */ Kt(!1, !1)
|
|
781
|
+
}, Fe = {
|
|
782
|
+
get: /* @__PURE__ */ Kt(!0, !1)
|
|
807
783
|
};
|
|
808
784
|
function It(t, e, n) {
|
|
809
785
|
const s = f(n);
|
|
810
786
|
if (s !== n && e.call(t, s)) {
|
|
811
|
-
const r =
|
|
787
|
+
const r = Mt(t);
|
|
812
788
|
M(
|
|
813
789
|
`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.`
|
|
814
790
|
);
|
|
815
791
|
}
|
|
816
792
|
}
|
|
817
|
-
const
|
|
818
|
-
function
|
|
793
|
+
const Ht = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap();
|
|
794
|
+
function Ke(t) {
|
|
819
795
|
switch (t) {
|
|
820
796
|
case "Object":
|
|
821
797
|
case "Array":
|
|
@@ -829,28 +805,28 @@ function Ue(t) {
|
|
|
829
805
|
return 0;
|
|
830
806
|
}
|
|
831
807
|
}
|
|
832
|
-
function
|
|
833
|
-
return t.__v_skip || !Object.isExtensible(t) ? 0 :
|
|
808
|
+
function He(t) {
|
|
809
|
+
return t.__v_skip || !Object.isExtensible(t) ? 0 : Ke(Mt(t));
|
|
834
810
|
}
|
|
835
|
-
function
|
|
836
|
-
return
|
|
811
|
+
function zt(t) {
|
|
812
|
+
return E(t) ? t : Ut(
|
|
837
813
|
t,
|
|
838
814
|
!1,
|
|
815
|
+
Ve,
|
|
839
816
|
Pe,
|
|
840
|
-
|
|
841
|
-
Lt
|
|
817
|
+
Ht
|
|
842
818
|
);
|
|
843
819
|
}
|
|
844
820
|
function ht(t) {
|
|
845
|
-
return
|
|
821
|
+
return Ut(
|
|
846
822
|
t,
|
|
847
823
|
!0,
|
|
824
|
+
xe,
|
|
848
825
|
Fe,
|
|
849
|
-
|
|
850
|
-
zt
|
|
826
|
+
Lt
|
|
851
827
|
);
|
|
852
828
|
}
|
|
853
|
-
function
|
|
829
|
+
function Ut(t, e, n, s, r) {
|
|
854
830
|
if (!_(t))
|
|
855
831
|
return process.env.NODE_ENV !== "production" && M(
|
|
856
832
|
`value cannot be made ${e ? "readonly" : "reactive"}: ${String(
|
|
@@ -859,7 +835,7 @@ function Wt(t, e, n, s, r) {
|
|
|
859
835
|
), t;
|
|
860
836
|
if (t.__v_raw && !(e && t.__v_isReactive))
|
|
861
837
|
return t;
|
|
862
|
-
const o =
|
|
838
|
+
const o = He(t);
|
|
863
839
|
if (o === 0)
|
|
864
840
|
return t;
|
|
865
841
|
const i = r.get(t);
|
|
@@ -872,9 +848,9 @@ function Wt(t, e, n, s, r) {
|
|
|
872
848
|
return r.set(t, c), c;
|
|
873
849
|
}
|
|
874
850
|
function St(t) {
|
|
875
|
-
return
|
|
851
|
+
return E(t) ? St(t.__v_raw) : !!(t && t.__v_isReactive);
|
|
876
852
|
}
|
|
877
|
-
function
|
|
853
|
+
function E(t) {
|
|
878
854
|
return !!(t && t.__v_isReadonly);
|
|
879
855
|
}
|
|
880
856
|
function y(t) {
|
|
@@ -887,19 +863,19 @@ function f(t) {
|
|
|
887
863
|
const e = t && t.__v_raw;
|
|
888
864
|
return e ? f(e) : t;
|
|
889
865
|
}
|
|
890
|
-
const v = (t) => _(t) ?
|
|
866
|
+
const v = (t) => _(t) ? zt(t) : t, L = (t) => _(t) ? ht(t) : t;
|
|
891
867
|
function g(t) {
|
|
892
868
|
return t ? t.__v_isRef === !0 : !1;
|
|
893
869
|
}
|
|
894
|
-
function
|
|
895
|
-
return
|
|
870
|
+
function Wt(t) {
|
|
871
|
+
return Le(t, !1);
|
|
896
872
|
}
|
|
897
|
-
function
|
|
898
|
-
return g(t) ? t : new
|
|
873
|
+
function Le(t, e) {
|
|
874
|
+
return g(t) ? t : new ze(t, e);
|
|
899
875
|
}
|
|
900
|
-
class
|
|
876
|
+
class ze {
|
|
901
877
|
constructor(e, n) {
|
|
902
|
-
this.dep = new
|
|
878
|
+
this.dep = new Ne(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? e : f(e), this._value = n ? e : v(e), this.__v_isShallow = n;
|
|
903
879
|
}
|
|
904
880
|
get value() {
|
|
905
881
|
return process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
@@ -909,7 +885,7 @@ class Je {
|
|
|
909
885
|
}) : this.dep.track(), this._value;
|
|
910
886
|
}
|
|
911
887
|
set value(e) {
|
|
912
|
-
const n = this._rawValue, s = this.__v_isShallow || y(e) ||
|
|
888
|
+
const n = this._rawValue, s = this.__v_isShallow || y(e) || E(e);
|
|
913
889
|
e = s ? e : f(e), dt(e, n) && (this._rawValue = e, this._value = s ? e : v(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
914
890
|
target: this,
|
|
915
891
|
type: "set",
|
|
@@ -919,10 +895,10 @@ class Je {
|
|
|
919
895
|
}) : this.dep.trigger());
|
|
920
896
|
}
|
|
921
897
|
}
|
|
922
|
-
function
|
|
898
|
+
function Ue(t) {
|
|
923
899
|
return g(t) ? t.value : t;
|
|
924
900
|
}
|
|
925
|
-
class
|
|
901
|
+
class We {
|
|
926
902
|
constructor(e, n, s) {
|
|
927
903
|
this._object = e, this._key = n, this._defaultValue = s, this.__v_isRef = !0, this._value = void 0, this._raw = f(e);
|
|
928
904
|
let r = !0, o = e;
|
|
@@ -934,7 +910,7 @@ class Ye {
|
|
|
934
910
|
}
|
|
935
911
|
get value() {
|
|
936
912
|
let e = this._object[this._key];
|
|
937
|
-
return this._shallow && (e =
|
|
913
|
+
return this._shallow && (e = Ue(e)), this._value = e === void 0 ? this._defaultValue : e;
|
|
938
914
|
}
|
|
939
915
|
set value(e) {
|
|
940
916
|
if (this._shallow && g(this._raw[this._key])) {
|
|
@@ -947,10 +923,10 @@ class Ye {
|
|
|
947
923
|
this._object[this._key] = e;
|
|
948
924
|
}
|
|
949
925
|
get dep() {
|
|
950
|
-
return
|
|
926
|
+
return ve(this._raw, this._key);
|
|
951
927
|
}
|
|
952
928
|
}
|
|
953
|
-
class
|
|
929
|
+
class qe {
|
|
954
930
|
constructor(e) {
|
|
955
931
|
this._getter = e, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
|
|
956
932
|
}
|
|
@@ -958,26 +934,26 @@ class Ge {
|
|
|
958
934
|
return this._value = this._getter();
|
|
959
935
|
}
|
|
960
936
|
}
|
|
961
|
-
function
|
|
962
|
-
return g(t) ? t : A(t) ? new
|
|
937
|
+
function Je(t, e, n) {
|
|
938
|
+
return g(t) ? t : A(t) ? new qe(t) : _(t) && arguments.length > 1 ? Be(t, e, n) : Wt(t);
|
|
963
939
|
}
|
|
964
|
-
function
|
|
965
|
-
return new
|
|
940
|
+
function Be(t, e, n) {
|
|
941
|
+
return new We(t, e, n);
|
|
966
942
|
}
|
|
967
943
|
const $ = [];
|
|
968
|
-
function
|
|
944
|
+
function Ye(t) {
|
|
969
945
|
$.push(t);
|
|
970
946
|
}
|
|
971
|
-
function
|
|
947
|
+
function Ge() {
|
|
972
948
|
$.pop();
|
|
973
949
|
}
|
|
974
950
|
let ot = !1;
|
|
975
951
|
function P(t, ...e) {
|
|
976
952
|
if (ot) return;
|
|
977
953
|
ot = !0;
|
|
978
|
-
const n = $.length ? $[$.length - 1].component : null, s = n && n.appContext.config.warnHandler, r =
|
|
954
|
+
const n = $.length ? $[$.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = Qe();
|
|
979
955
|
if (s)
|
|
980
|
-
|
|
956
|
+
Et(
|
|
981
957
|
s,
|
|
982
958
|
n,
|
|
983
959
|
11,
|
|
@@ -989,7 +965,7 @@ function P(t, ...e) {
|
|
|
989
965
|
}).join(""),
|
|
990
966
|
n && n.proxy,
|
|
991
967
|
r.map(
|
|
992
|
-
({ vnode: o }) => `at <${
|
|
968
|
+
({ vnode: o }) => `at <${ie(n, o.type)}>`
|
|
993
969
|
).join(`
|
|
994
970
|
`),
|
|
995
971
|
r
|
|
@@ -998,11 +974,11 @@ function P(t, ...e) {
|
|
|
998
974
|
else {
|
|
999
975
|
const o = [`[Vue warn]: ${t}`, ...e];
|
|
1000
976
|
r.length && o.push(`
|
|
1001
|
-
`, ...
|
|
977
|
+
`, ...Xe(r)), console.warn(...o);
|
|
1002
978
|
}
|
|
1003
979
|
ot = !1;
|
|
1004
980
|
}
|
|
1005
|
-
function
|
|
981
|
+
function Qe() {
|
|
1006
982
|
let t = $[$.length - 1];
|
|
1007
983
|
if (!t)
|
|
1008
984
|
return [];
|
|
@@ -1018,31 +994,31 @@ function en() {
|
|
|
1018
994
|
}
|
|
1019
995
|
return e;
|
|
1020
996
|
}
|
|
1021
|
-
function
|
|
997
|
+
function Xe(t) {
|
|
1022
998
|
const e = [];
|
|
1023
999
|
return t.forEach((n, s) => {
|
|
1024
1000
|
e.push(...s === 0 ? [] : [`
|
|
1025
|
-
`], ...
|
|
1001
|
+
`], ...Ze(n));
|
|
1026
1002
|
}), e;
|
|
1027
1003
|
}
|
|
1028
|
-
function
|
|
1029
|
-
const n = e > 0 ? `... (${e} recursive calls)` : "", s = t.component ? t.component.parent == null : !1, r = ` at <${
|
|
1004
|
+
function Ze({ vnode: t, recurseCount: e }) {
|
|
1005
|
+
const n = e > 0 ? `... (${e} recursive calls)` : "", s = t.component ? t.component.parent == null : !1, r = ` at <${ie(
|
|
1030
1006
|
t.component,
|
|
1031
1007
|
t.type,
|
|
1032
1008
|
s
|
|
1033
1009
|
)}`, o = ">" + n;
|
|
1034
|
-
return t.props ? [r, ...
|
|
1010
|
+
return t.props ? [r, ...tn(t.props), o] : [r + o];
|
|
1035
1011
|
}
|
|
1036
|
-
function
|
|
1012
|
+
function tn(t) {
|
|
1037
1013
|
const e = [], n = Object.keys(t);
|
|
1038
1014
|
return n.slice(0, 3).forEach((s) => {
|
|
1039
|
-
e.push(...
|
|
1015
|
+
e.push(...qt(s, t[s]));
|
|
1040
1016
|
}), n.length > 3 && e.push(" ..."), e;
|
|
1041
1017
|
}
|
|
1042
|
-
function
|
|
1043
|
-
return N(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : g(e) ? (e =
|
|
1018
|
+
function qt(t, e, n) {
|
|
1019
|
+
return N(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : g(e) ? (e = qt(t, f(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : A(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = f(e), n ? e : [`${t}=`, e]);
|
|
1044
1020
|
}
|
|
1045
|
-
const
|
|
1021
|
+
const Jt = {
|
|
1046
1022
|
sp: "serverPrefetch hook",
|
|
1047
1023
|
bc: "beforeCreate hook",
|
|
1048
1024
|
c: "created hook",
|
|
@@ -1075,18 +1051,18 @@ const Bt = {
|
|
|
1075
1051
|
15: "component update",
|
|
1076
1052
|
16: "app unmount cleanup function"
|
|
1077
1053
|
};
|
|
1078
|
-
function
|
|
1054
|
+
function Et(t, e, n, s) {
|
|
1079
1055
|
try {
|
|
1080
1056
|
return s ? t(...s) : t();
|
|
1081
1057
|
} catch (r) {
|
|
1082
|
-
|
|
1058
|
+
Bt(r, e, n);
|
|
1083
1059
|
}
|
|
1084
1060
|
}
|
|
1085
|
-
function
|
|
1061
|
+
function Bt(t, e, n, s = !0) {
|
|
1086
1062
|
const r = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config || at;
|
|
1087
1063
|
if (e) {
|
|
1088
1064
|
let c = e.parent;
|
|
1089
|
-
const a = e.proxy, u = process.env.NODE_ENV !== "production" ?
|
|
1065
|
+
const a = e.proxy, u = process.env.NODE_ENV !== "production" ? Jt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
1090
1066
|
for (; c; ) {
|
|
1091
1067
|
const p = c.ec;
|
|
1092
1068
|
if (p) {
|
|
@@ -1097,7 +1073,7 @@ function Yt(t, e, n, s = !0) {
|
|
|
1097
1073
|
c = c.parent;
|
|
1098
1074
|
}
|
|
1099
1075
|
if (o) {
|
|
1100
|
-
|
|
1076
|
+
Et(o, null, 10, [
|
|
1101
1077
|
t,
|
|
1102
1078
|
a,
|
|
1103
1079
|
u
|
|
@@ -1105,12 +1081,12 @@ function Yt(t, e, n, s = !0) {
|
|
|
1105
1081
|
return;
|
|
1106
1082
|
}
|
|
1107
1083
|
}
|
|
1108
|
-
|
|
1084
|
+
en(t, n, r, s, i);
|
|
1109
1085
|
}
|
|
1110
|
-
function
|
|
1086
|
+
function en(t, e, n, s = !0, r = !1) {
|
|
1111
1087
|
if (process.env.NODE_ENV !== "production") {
|
|
1112
|
-
const o =
|
|
1113
|
-
if (n &&
|
|
1088
|
+
const o = Jt[e];
|
|
1089
|
+
if (n && Ye(n), P(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && Ge(), s)
|
|
1114
1090
|
throw t;
|
|
1115
1091
|
console.error(t);
|
|
1116
1092
|
} else {
|
|
@@ -1123,10 +1099,10 @@ const m = [];
|
|
|
1123
1099
|
let w = -1;
|
|
1124
1100
|
const T = [];
|
|
1125
1101
|
let C = null, V = 0;
|
|
1126
|
-
const
|
|
1102
|
+
const nn = /* @__PURE__ */ Promise.resolve();
|
|
1127
1103
|
let pt = null;
|
|
1128
|
-
const
|
|
1129
|
-
function
|
|
1104
|
+
const rn = 100;
|
|
1105
|
+
function sn(t) {
|
|
1130
1106
|
let e = w + 1, n = m.length;
|
|
1131
1107
|
for (; e < n; ) {
|
|
1132
1108
|
const s = e + n >>> 1, r = m[s], o = z(r);
|
|
@@ -1134,20 +1110,20 @@ function an(t) {
|
|
|
1134
1110
|
}
|
|
1135
1111
|
return e;
|
|
1136
1112
|
}
|
|
1137
|
-
function
|
|
1113
|
+
function on(t) {
|
|
1138
1114
|
if (!(t.flags & 1)) {
|
|
1139
1115
|
const e = z(t), n = m[m.length - 1];
|
|
1140
1116
|
!n || // fast path when the job id is larger than the tail
|
|
1141
|
-
!(t.flags & 2) && e >= z(n) ? m.push(t) : m.splice(
|
|
1117
|
+
!(t.flags & 2) && e >= z(n) ? m.push(t) : m.splice(sn(e), 0, t), t.flags |= 1, Yt();
|
|
1142
1118
|
}
|
|
1143
1119
|
}
|
|
1144
|
-
function
|
|
1145
|
-
pt || (pt =
|
|
1120
|
+
function Yt() {
|
|
1121
|
+
pt || (pt = nn.then(Gt));
|
|
1146
1122
|
}
|
|
1147
|
-
function
|
|
1148
|
-
d(t) ? T.push(...t) : C && t.id === -1 ? C.splice(V + 1, 0, t) : t.flags & 1 || (T.push(t), t.flags |= 1),
|
|
1123
|
+
function cn(t) {
|
|
1124
|
+
d(t) ? T.push(...t) : C && t.id === -1 ? C.splice(V + 1, 0, t) : t.flags & 1 || (T.push(t), t.flags |= 1), Yt();
|
|
1149
1125
|
}
|
|
1150
|
-
function
|
|
1126
|
+
function ln(t) {
|
|
1151
1127
|
if (T.length) {
|
|
1152
1128
|
const e = [...new Set(T)].sort(
|
|
1153
1129
|
(n, s) => z(n) - z(s)
|
|
@@ -1158,22 +1134,22 @@ function hn(t) {
|
|
|
1158
1134
|
}
|
|
1159
1135
|
for (C = e, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), V = 0; V < C.length; V++) {
|
|
1160
1136
|
const n = C[V];
|
|
1161
|
-
process.env.NODE_ENV !== "production" &&
|
|
1137
|
+
process.env.NODE_ENV !== "production" && Qt(t, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
|
|
1162
1138
|
}
|
|
1163
1139
|
C = null, V = 0;
|
|
1164
1140
|
}
|
|
1165
1141
|
}
|
|
1166
1142
|
const z = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
|
|
1167
|
-
function
|
|
1143
|
+
function Gt(t) {
|
|
1168
1144
|
process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map());
|
|
1169
|
-
const e = process.env.NODE_ENV !== "production" ? (n) =>
|
|
1145
|
+
const e = process.env.NODE_ENV !== "production" ? (n) => Qt(t, n) : xt;
|
|
1170
1146
|
try {
|
|
1171
1147
|
for (w = 0; w < m.length; w++) {
|
|
1172
1148
|
const n = m[w];
|
|
1173
1149
|
if (n && !(n.flags & 8)) {
|
|
1174
1150
|
if (process.env.NODE_ENV !== "production" && e(n))
|
|
1175
1151
|
continue;
|
|
1176
|
-
n.flags & 4 && (n.flags &= -2),
|
|
1152
|
+
n.flags & 4 && (n.flags &= -2), Et(
|
|
1177
1153
|
n,
|
|
1178
1154
|
n.i,
|
|
1179
1155
|
n.i ? 15 : 14
|
|
@@ -1185,14 +1161,14 @@ function Qt(t) {
|
|
|
1185
1161
|
const n = m[w];
|
|
1186
1162
|
n && (n.flags &= -2);
|
|
1187
1163
|
}
|
|
1188
|
-
w = -1, m.length = 0,
|
|
1164
|
+
w = -1, m.length = 0, ln(t), pt = null, (m.length || T.length) && Gt(t);
|
|
1189
1165
|
}
|
|
1190
1166
|
}
|
|
1191
|
-
function
|
|
1167
|
+
function Qt(t, e) {
|
|
1192
1168
|
const n = t.get(e) || 0;
|
|
1193
|
-
if (n >
|
|
1194
|
-
const s = e.i, r = s &&
|
|
1195
|
-
return
|
|
1169
|
+
if (n > rn) {
|
|
1170
|
+
const s = e.i, r = s && oe(s.type);
|
|
1171
|
+
return Bt(
|
|
1196
1172
|
`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.`,
|
|
1197
1173
|
null,
|
|
1198
1174
|
10
|
|
@@ -1202,27 +1178,27 @@ function Xt(t, e) {
|
|
|
1202
1178
|
}
|
|
1203
1179
|
const it = /* @__PURE__ */ new Map();
|
|
1204
1180
|
process.env.NODE_ENV !== "production" && (tt().__VUE_HMR_RUNTIME__ = {
|
|
1205
|
-
createRecord: ct(
|
|
1206
|
-
rerender: ct(
|
|
1207
|
-
reload: ct(
|
|
1181
|
+
createRecord: ct(an),
|
|
1182
|
+
rerender: ct(un),
|
|
1183
|
+
reload: ct(fn)
|
|
1208
1184
|
});
|
|
1209
1185
|
const Y = /* @__PURE__ */ new Map();
|
|
1210
|
-
function
|
|
1186
|
+
function an(t, e) {
|
|
1211
1187
|
return Y.has(t) ? !1 : (Y.set(t, {
|
|
1212
1188
|
initialDef: G(e),
|
|
1213
1189
|
instances: /* @__PURE__ */ new Set()
|
|
1214
1190
|
}), !0);
|
|
1215
1191
|
}
|
|
1216
1192
|
function G(t) {
|
|
1217
|
-
return
|
|
1193
|
+
return ce(t) ? t.__vccOpts : t;
|
|
1218
1194
|
}
|
|
1219
|
-
function
|
|
1195
|
+
function un(t, e) {
|
|
1220
1196
|
const n = Y.get(t);
|
|
1221
1197
|
n && (n.initialDef.render = e, [...n.instances].forEach((s) => {
|
|
1222
1198
|
e && (s.render = e, G(s.type).render = e), s.renderCache = [], s.job.flags & 8 || s.update();
|
|
1223
1199
|
}));
|
|
1224
1200
|
}
|
|
1225
|
-
function
|
|
1201
|
+
function fn(t, e) {
|
|
1226
1202
|
const n = Y.get(t);
|
|
1227
1203
|
if (!n) return;
|
|
1228
1204
|
e = G(e), At(n.initialDef, e);
|
|
@@ -1230,13 +1206,13 @@ function _n(t, e) {
|
|
|
1230
1206
|
for (let r = 0; r < s.length; r++) {
|
|
1231
1207
|
const o = s[r], i = G(o.type);
|
|
1232
1208
|
let c = it.get(i);
|
|
1233
|
-
c || (i !== n.initialDef && At(i, e), it.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(e.styles), c.delete(o)) : o.parent ?
|
|
1209
|
+
c || (i !== n.initialDef && At(i, e), it.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(e.styles), c.delete(o)) : o.parent ? on(() => {
|
|
1234
1210
|
o.job.flags & 8 || (o.parent.update(), c.delete(o));
|
|
1235
1211
|
}) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
1236
1212
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
1237
1213
|
), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
|
|
1238
1214
|
}
|
|
1239
|
-
|
|
1215
|
+
cn(() => {
|
|
1240
1216
|
it.clear();
|
|
1241
1217
|
});
|
|
1242
1218
|
}
|
|
@@ -1257,48 +1233,48 @@ function ct(t) {
|
|
|
1257
1233
|
};
|
|
1258
1234
|
}
|
|
1259
1235
|
let x, J = [];
|
|
1260
|
-
function
|
|
1236
|
+
function Xt(t, e) {
|
|
1261
1237
|
var n, s;
|
|
1262
1238
|
x = t, x ? (x.enabled = !0, J.forEach(({ event: r, args: o }) => x.emit(r, ...o)), J = []) : /* 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
|
|
1263
1239
|
window.HTMLElement && // also exclude jsdom
|
|
1264
1240
|
// eslint-disable-next-line no-restricted-syntax
|
|
1265
1241
|
!((s = (n = window.navigator) == null ? void 0 : n.userAgent) != null && s.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
|
|
1266
|
-
|
|
1242
|
+
Xt(o, e);
|
|
1267
1243
|
}), setTimeout(() => {
|
|
1268
1244
|
x || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, J = []);
|
|
1269
1245
|
}, 3e3)) : J = [];
|
|
1270
1246
|
}
|
|
1271
|
-
let Q = null,
|
|
1272
|
-
const
|
|
1273
|
-
function
|
|
1274
|
-
t.shapeFlag & 6 && t.component ? (t.transition = e,
|
|
1247
|
+
let Q = null, hn = null;
|
|
1248
|
+
const pn = (t) => t.__isTeleport;
|
|
1249
|
+
function Zt(t, e) {
|
|
1250
|
+
t.shapeFlag & 6 && t.component ? (t.transition = e, Zt(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
|
|
1275
1251
|
}
|
|
1276
1252
|
tt().requestIdleCallback;
|
|
1277
1253
|
tt().cancelIdleCallback;
|
|
1278
|
-
const
|
|
1279
|
-
process.env.NODE_ENV !== "production" && (
|
|
1254
|
+
const dn = Symbol.for("v-ndc"), _n = {};
|
|
1255
|
+
process.env.NODE_ENV !== "production" && (_n.ownKeys = (t) => (P(
|
|
1280
1256
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
1281
1257
|
), Reflect.ownKeys(t)));
|
|
1282
|
-
const
|
|
1283
|
-
function
|
|
1258
|
+
const gn = {}, te = (t) => Object.getPrototypeOf(t) === gn, bn = (t) => t.__isSuspense, ee = Symbol.for("v-fgt"), mn = Symbol.for("v-txt"), yn = Symbol.for("v-cmt");
|
|
1259
|
+
function Sn(t) {
|
|
1284
1260
|
return t ? t.__v_isVNode === !0 : !1;
|
|
1285
1261
|
}
|
|
1286
|
-
const
|
|
1262
|
+
const En = (...t) => re(
|
|
1287
1263
|
...t
|
|
1288
|
-
),
|
|
1264
|
+
), ne = ({ key: t }) => t ?? null, B = ({
|
|
1289
1265
|
ref: t,
|
|
1290
1266
|
ref_key: e,
|
|
1291
1267
|
ref_for: n
|
|
1292
1268
|
}) => (typeof t == "number" && (t = "" + t), t != null ? N(t) || g(t) || A(t) ? { i: Q, r: t, k: e, f: !!n } : t : null);
|
|
1293
|
-
function
|
|
1269
|
+
function On(t, e = null, n = null, s = 0, r = null, o = t === ee ? 0 : 1, i = !1, c = !1) {
|
|
1294
1270
|
const a = {
|
|
1295
1271
|
__v_isVNode: !0,
|
|
1296
1272
|
__v_skip: !0,
|
|
1297
1273
|
type: t,
|
|
1298
1274
|
props: e,
|
|
1299
|
-
key: e &&
|
|
1275
|
+
key: e && ne(e),
|
|
1300
1276
|
ref: e && B(e),
|
|
1301
|
-
scopeId:
|
|
1277
|
+
scopeId: hn,
|
|
1302
1278
|
slotScopeIds: null,
|
|
1303
1279
|
children: n,
|
|
1304
1280
|
component: null,
|
|
@@ -1320,31 +1296,31 @@ function Rn(t, e = null, n = null, s = 0, r = null, o = t === ne ? 0 : 1, i = !1
|
|
|
1320
1296
|
appContext: null,
|
|
1321
1297
|
ctx: Q
|
|
1322
1298
|
};
|
|
1323
|
-
return c ? (
|
|
1299
|
+
return c ? (Ot(a, n), o & 128 && t.normalize(a)) : n && (a.shapeFlag |= N(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && P("VNode created with invalid key (NaN). VNode type:", a.type), a;
|
|
1324
1300
|
}
|
|
1325
|
-
const
|
|
1326
|
-
function
|
|
1327
|
-
if ((!t || t ===
|
|
1301
|
+
const wn = process.env.NODE_ENV !== "production" ? En : re;
|
|
1302
|
+
function re(t, e = null, n = null, s = 0, r = null, o = !1) {
|
|
1303
|
+
if ((!t || t === dn) && (process.env.NODE_ENV !== "production" && !t && P(`Invalid vnode type when creating vnode: ${t}.`), t = yn), Sn(t)) {
|
|
1328
1304
|
const c = X(
|
|
1329
1305
|
t,
|
|
1330
1306
|
e,
|
|
1331
1307
|
!0
|
|
1332
1308
|
/* mergeRef: true */
|
|
1333
1309
|
);
|
|
1334
|
-
return n &&
|
|
1310
|
+
return n && Ot(c, n), c.patchFlag = -2, c;
|
|
1335
1311
|
}
|
|
1336
|
-
if (
|
|
1337
|
-
e =
|
|
1312
|
+
if (ce(t) && (t = t.__vccOpts), e) {
|
|
1313
|
+
e = Nn(e);
|
|
1338
1314
|
let { class: c, style: a } = e;
|
|
1339
1315
|
c && !N(c) && (e.class = gt(c)), _(a) && (H(a) && !d(a) && (a = F({}, a)), e.style = _t(a));
|
|
1340
1316
|
}
|
|
1341
|
-
const i = N(t) ? 1 :
|
|
1317
|
+
const i = N(t) ? 1 : bn(t) ? 128 : pn(t) ? 64 : _(t) ? 4 : A(t) ? 2 : 0;
|
|
1342
1318
|
return process.env.NODE_ENV !== "production" && i & 4 && H(t) && (t = f(t), P(
|
|
1343
1319
|
"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`.",
|
|
1344
1320
|
`
|
|
1345
1321
|
Component that was made reactive: `,
|
|
1346
1322
|
t
|
|
1347
|
-
)),
|
|
1323
|
+
)), On(
|
|
1348
1324
|
t,
|
|
1349
1325
|
e,
|
|
1350
1326
|
n,
|
|
@@ -1355,16 +1331,16 @@ Component that was made reactive: `,
|
|
|
1355
1331
|
!0
|
|
1356
1332
|
);
|
|
1357
1333
|
}
|
|
1358
|
-
function
|
|
1359
|
-
return t ? H(t) ||
|
|
1334
|
+
function Nn(t) {
|
|
1335
|
+
return t ? H(t) || te(t) ? F({}, t) : t : null;
|
|
1360
1336
|
}
|
|
1361
1337
|
function X(t, e, n = !1, s = !1) {
|
|
1362
|
-
const { props: r, ref: o, patchFlag: i, children: c, transition: a } = t, u = e ?
|
|
1338
|
+
const { props: r, ref: o, patchFlag: i, children: c, transition: a } = t, u = e ? Rn(r || {}, e) : r, p = {
|
|
1363
1339
|
__v_isVNode: !0,
|
|
1364
1340
|
__v_skip: !0,
|
|
1365
1341
|
type: t.type,
|
|
1366
1342
|
props: u,
|
|
1367
|
-
key: u &&
|
|
1343
|
+
key: u && ne(u),
|
|
1368
1344
|
ref: e && e.ref ? (
|
|
1369
1345
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
1370
1346
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
@@ -1373,7 +1349,7 @@ function X(t, e, n = !1, s = !1) {
|
|
|
1373
1349
|
) : o,
|
|
1374
1350
|
scopeId: t.scopeId,
|
|
1375
1351
|
slotScopeIds: t.slotScopeIds,
|
|
1376
|
-
children: process.env.NODE_ENV !== "production" && i === -1 && d(c) ? c.map(
|
|
1352
|
+
children: process.env.NODE_ENV !== "production" && i === -1 && d(c) ? c.map(se) : c,
|
|
1377
1353
|
target: t.target,
|
|
1378
1354
|
targetStart: t.targetStart,
|
|
1379
1355
|
targetAnchor: t.targetAnchor,
|
|
@@ -1383,7 +1359,7 @@ function X(t, e, n = !1, s = !1) {
|
|
|
1383
1359
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
1384
1360
|
// note: preserve flag for fragments since they use the flag for children
|
|
1385
1361
|
// fast paths only.
|
|
1386
|
-
patchFlag: e && t.type !==
|
|
1362
|
+
patchFlag: e && t.type !== ee ? i === -1 ? 16 : i | 16 : i,
|
|
1387
1363
|
dynamicProps: t.dynamicProps,
|
|
1388
1364
|
dynamicChildren: t.dynamicChildren,
|
|
1389
1365
|
appContext: t.appContext,
|
|
@@ -1403,19 +1379,19 @@ function X(t, e, n = !1, s = !1) {
|
|
|
1403
1379
|
ctx: t.ctx,
|
|
1404
1380
|
ce: t.ce
|
|
1405
1381
|
};
|
|
1406
|
-
return a && s &&
|
|
1382
|
+
return a && s && Zt(
|
|
1407
1383
|
p,
|
|
1408
1384
|
a.clone(p)
|
|
1409
1385
|
), p;
|
|
1410
1386
|
}
|
|
1411
|
-
function
|
|
1387
|
+
function se(t) {
|
|
1412
1388
|
const e = X(t);
|
|
1413
|
-
return d(t.children) && (e.children = t.children.map(
|
|
1389
|
+
return d(t.children) && (e.children = t.children.map(se)), e;
|
|
1414
1390
|
}
|
|
1415
|
-
function
|
|
1416
|
-
return
|
|
1391
|
+
function vn(t = " ", e = 0) {
|
|
1392
|
+
return wn(mn, null, t, e);
|
|
1417
1393
|
}
|
|
1418
|
-
function
|
|
1394
|
+
function Ot(t, e) {
|
|
1419
1395
|
let n = 0;
|
|
1420
1396
|
const { shapeFlag: s } = t;
|
|
1421
1397
|
if (e == null)
|
|
@@ -1425,14 +1401,14 @@ function Et(t, e) {
|
|
|
1425
1401
|
else if (typeof e == "object")
|
|
1426
1402
|
if (s & 65) {
|
|
1427
1403
|
const r = e.default;
|
|
1428
|
-
r && (r._c && (r._d = !1),
|
|
1404
|
+
r && (r._c && (r._d = !1), Ot(t, r()), r._c && (r._d = !0));
|
|
1429
1405
|
return;
|
|
1430
1406
|
} else
|
|
1431
|
-
n = 32, !e._ && !
|
|
1432
|
-
else A(e) ? (e = { default: e, _ctx: Q }, n = 32) : (e = String(e), s & 64 ? (n = 16, e = [
|
|
1407
|
+
n = 32, !e._ && !te(e) && (e._ctx = Q);
|
|
1408
|
+
else A(e) ? (e = { default: e, _ctx: Q }, n = 32) : (e = String(e), s & 64 ? (n = 16, e = [vn(e)]) : n = 8);
|
|
1433
1409
|
t.children = e, t.shapeFlag |= n;
|
|
1434
1410
|
}
|
|
1435
|
-
function
|
|
1411
|
+
function Rn(...t) {
|
|
1436
1412
|
const e = {};
|
|
1437
1413
|
for (let n = 0; n < t.length; n++) {
|
|
1438
1414
|
const s = t[n];
|
|
@@ -1441,7 +1417,7 @@ function $n(...t) {
|
|
|
1441
1417
|
e.class !== s.class && (e.class = gt([e.class, s.class]));
|
|
1442
1418
|
else if (r === "style")
|
|
1443
1419
|
e.style = _t([e.style, s.style]);
|
|
1444
|
-
else if (
|
|
1420
|
+
else if (_e(r)) {
|
|
1445
1421
|
const o = e[r], i = s[r];
|
|
1446
1422
|
i && o !== i && !(d(o) && o.includes(i)) && (e[r] = o ? [].concat(o, i) : i);
|
|
1447
1423
|
} else r !== "" && (e[r] = s[r]);
|
|
@@ -1464,12 +1440,12 @@ function $n(...t) {
|
|
|
1464
1440
|
);
|
|
1465
1441
|
}
|
|
1466
1442
|
process.env.NODE_ENV;
|
|
1467
|
-
const
|
|
1468
|
-
function
|
|
1443
|
+
const Cn = /(?:^|[-_])\w/g, In = (t) => t.replace(Cn, (e) => e.toUpperCase()).replace(/[-_]/g, "");
|
|
1444
|
+
function oe(t, e = !0) {
|
|
1469
1445
|
return A(t) ? t.displayName || t.name : t.name || e && t.__name;
|
|
1470
1446
|
}
|
|
1471
|
-
function
|
|
1472
|
-
let s =
|
|
1447
|
+
function ie(t, e, n = !1) {
|
|
1448
|
+
let s = oe(e);
|
|
1473
1449
|
if (!s && e.__file) {
|
|
1474
1450
|
const r = e.__file.match(/([^/\\]+)\.\w+$/);
|
|
1475
1451
|
r && (s = r[1]);
|
|
@@ -1484,12 +1460,12 @@ function ce(t, e, n = !1) {
|
|
|
1484
1460
|
t.parent.type.components
|
|
1485
1461
|
) || r(t.appContext.components);
|
|
1486
1462
|
}
|
|
1487
|
-
return s ?
|
|
1463
|
+
return s ? In(s) : n ? "App" : "Anonymous";
|
|
1488
1464
|
}
|
|
1489
|
-
function
|
|
1465
|
+
function ce(t) {
|
|
1490
1466
|
return A(t) && "__vccOpts" in t;
|
|
1491
1467
|
}
|
|
1492
|
-
function
|
|
1468
|
+
function An() {
|
|
1493
1469
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
1494
1470
|
return;
|
|
1495
1471
|
const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
|
|
@@ -1517,9 +1493,9 @@ function xn() {
|
|
|
1517
1493
|
["span", t, y(l) ? "ShallowReactive" : "Reactive"],
|
|
1518
1494
|
"<",
|
|
1519
1495
|
c(l),
|
|
1520
|
-
`>${
|
|
1496
|
+
`>${E(l) ? " (readonly)" : ""}`
|
|
1521
1497
|
];
|
|
1522
|
-
if (
|
|
1498
|
+
if (E(l))
|
|
1523
1499
|
return [
|
|
1524
1500
|
"div",
|
|
1525
1501
|
{},
|
|
@@ -1595,13 +1571,13 @@ function xn() {
|
|
|
1595
1571
|
if (A(b))
|
|
1596
1572
|
return;
|
|
1597
1573
|
const S = {};
|
|
1598
|
-
for (const
|
|
1599
|
-
u(b,
|
|
1574
|
+
for (const k in l.ctx)
|
|
1575
|
+
u(b, k, h) && (S[k] = l.ctx[k]);
|
|
1600
1576
|
return S;
|
|
1601
1577
|
}
|
|
1602
1578
|
function u(l, h, b) {
|
|
1603
1579
|
const S = l[b];
|
|
1604
|
-
if (d(S) && S.includes(h) || _(S) && h in S || l.extends && u(l.extends, h, b) || l.mixins && l.mixins.some((
|
|
1580
|
+
if (d(S) && S.includes(h) || _(S) && h in S || l.extends && u(l.extends, h, b) || l.mixins && l.mixins.some((k) => u(k, h, b)))
|
|
1605
1581
|
return !0;
|
|
1606
1582
|
}
|
|
1607
1583
|
function p(l) {
|
|
@@ -1612,11 +1588,33 @@ function xn() {
|
|
|
1612
1588
|
process.env.NODE_ENV;
|
|
1613
1589
|
process.env.NODE_ENV;
|
|
1614
1590
|
process.env.NODE_ENV;
|
|
1615
|
-
function
|
|
1616
|
-
|
|
1591
|
+
function $n() {
|
|
1592
|
+
An();
|
|
1593
|
+
}
|
|
1594
|
+
process.env.NODE_ENV !== "production" && $n();
|
|
1595
|
+
function Fn(t, e, n) {
|
|
1596
|
+
const s = n ? { storeOptions: n } : {};
|
|
1597
|
+
return typeof e == "function" ? Dn(
|
|
1598
|
+
t,
|
|
1599
|
+
e,
|
|
1600
|
+
s
|
|
1601
|
+
) : Vn(
|
|
1602
|
+
t,
|
|
1603
|
+
e,
|
|
1604
|
+
s
|
|
1605
|
+
);
|
|
1606
|
+
}
|
|
1607
|
+
function Dn(t, e, n) {
|
|
1608
|
+
return $t(t, e, n);
|
|
1609
|
+
}
|
|
1610
|
+
function Vn(t, e, n) {
|
|
1611
|
+
return n && (e = { ...e, ...n ?? {} }), $t(t, e);
|
|
1612
|
+
}
|
|
1613
|
+
const xn = /* @__PURE__ */ new Set(["_", "$"]);
|
|
1614
|
+
function Tn(t) {
|
|
1615
|
+
return xn.has(t[0]);
|
|
1617
1616
|
}
|
|
1618
|
-
|
|
1619
|
-
class jn extends Dt {
|
|
1617
|
+
class kn extends Dt {
|
|
1620
1618
|
_className = "Store";
|
|
1621
1619
|
_onAction;
|
|
1622
1620
|
_options;
|
|
@@ -1665,7 +1663,7 @@ class jn extends Dt {
|
|
|
1665
1663
|
* @param value
|
|
1666
1664
|
*/
|
|
1667
1665
|
addToState(e, n) {
|
|
1668
|
-
this.isOptionApi() || n?.value || (n =
|
|
1666
|
+
this.isOptionApi() || n?.value || (n = Wt(n)), this.state[e] = n, this.store[e] = Je(this.state, e);
|
|
1669
1667
|
}
|
|
1670
1668
|
addSubscription(e, n, s) {
|
|
1671
1669
|
this._subscriptions[e] = { subscription: n, ...s ?? {} };
|
|
@@ -1682,10 +1680,10 @@ class jn extends Dt {
|
|
|
1682
1680
|
return new this(e, n, s, r);
|
|
1683
1681
|
}
|
|
1684
1682
|
hasDeniedFirstChar(e) {
|
|
1685
|
-
return
|
|
1683
|
+
return Tn(e[0]);
|
|
1686
1684
|
}
|
|
1687
1685
|
static hasRequiredKeys(e) {
|
|
1688
|
-
return this._requiredKeys
|
|
1686
|
+
return this._requiredKeys !== void 0 && this._requiredKeys?.every((n) => !!e[n]);
|
|
1689
1687
|
}
|
|
1690
1688
|
getOption(e) {
|
|
1691
1689
|
return this.options && this.options[e];
|
|
@@ -1710,17 +1708,17 @@ class jn extends Dt {
|
|
|
1710
1708
|
return this.store.hasOwnProperty(e);
|
|
1711
1709
|
}
|
|
1712
1710
|
}
|
|
1713
|
-
function
|
|
1714
|
-
const n = new
|
|
1711
|
+
function jn(t, e) {
|
|
1712
|
+
const n = new pe(t, e);
|
|
1715
1713
|
return n.plugin.bind(n);
|
|
1716
1714
|
}
|
|
1717
1715
|
export {
|
|
1718
|
-
|
|
1716
|
+
ue as CustomConsole,
|
|
1719
1717
|
Vt as PLUGIN_NAME,
|
|
1720
1718
|
Pn as PluginSubscriber,
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1719
|
+
pe as PluginSubscription,
|
|
1720
|
+
kn as Store,
|
|
1721
|
+
jn as createPlugin,
|
|
1724
1722
|
Fn as defineAStore,
|
|
1725
1723
|
lt as isEmpty
|
|
1726
1724
|
};
|