pinia-plugin-subscription 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineStore as
|
|
2
|
-
class
|
|
1
|
+
import { defineStore as It } from "pinia";
|
|
2
|
+
class Fn {
|
|
3
3
|
_console;
|
|
4
4
|
_createInstance;
|
|
5
5
|
_name;
|
|
@@ -37,14 +37,15 @@ class Pn {
|
|
|
37
37
|
set subscriptions(e) {
|
|
38
38
|
this._subscriptions = e;
|
|
39
39
|
}
|
|
40
|
-
constructor(e, n,
|
|
41
|
-
this._name = e, this._createInstance = n,
|
|
40
|
+
constructor(e, n, r) {
|
|
41
|
+
this._name = e, this._createInstance = n, r && (this._console = r);
|
|
42
42
|
}
|
|
43
|
-
invoke({ store: e, options: n },
|
|
44
|
-
return this._storeInstance = this._createInstance(e, { ...n, ...this.pluginOptions },
|
|
43
|
+
invoke({ store: e, options: n }, r) {
|
|
44
|
+
return this._storeInstance = this._createInstance(e, { ...n, ...this.pluginOptions }, r, this.console), this._storeInstance ? (this._subscriptions = this._storeInstance.getSubscriptions(), this._storeMutationSubscription = this._storeInstance.storeSubscribe, this._storeOnActionSubscription = this._storeInstance.onAction, this.pluginCreated && this.pluginCreated(e), !0) : !1;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
class
|
|
47
|
+
class $t {
|
|
48
|
+
_className;
|
|
48
49
|
_console;
|
|
49
50
|
_debug = !1;
|
|
50
51
|
get console() {
|
|
@@ -60,7 +61,7 @@ class Dt {
|
|
|
60
61
|
this._debug = e;
|
|
61
62
|
}
|
|
62
63
|
constructor(e, n) {
|
|
63
|
-
this._debug = e, n && (this._console = n);
|
|
64
|
+
this._debug = e, this._className = this.constructor.name, n && (this._console = n);
|
|
64
65
|
}
|
|
65
66
|
debugLog(...e) {
|
|
66
67
|
this._debug && (Array.isArray(e) && (e[0] = `${this._className} - ${e[0]}`), this.console.log(...e));
|
|
@@ -69,8 +70,8 @@ class Dt {
|
|
|
69
70
|
this.console.error(...e);
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
|
-
const Vt = "pinia-plugin-subscription",
|
|
73
|
-
function
|
|
73
|
+
const Vt = "pinia-plugin-subscription", ce = (t, e = "white") => `background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;
|
|
74
|
+
function le(t, e) {
|
|
74
75
|
if (!t)
|
|
75
76
|
throw new Error("Style instructions are required");
|
|
76
77
|
console.log(
|
|
@@ -80,7 +81,7 @@ function ae(t, e) {
|
|
|
80
81
|
...e
|
|
81
82
|
);
|
|
82
83
|
}
|
|
83
|
-
class
|
|
84
|
+
class ae {
|
|
84
85
|
_bgColor = "#ffec73";
|
|
85
86
|
_color = "green";
|
|
86
87
|
_icon = "🍍⚡";
|
|
@@ -95,7 +96,7 @@ class ue {
|
|
|
95
96
|
return ` [${n} ${Vt}] - ${e} `;
|
|
96
97
|
}
|
|
97
98
|
generateStyle(e) {
|
|
98
|
-
return
|
|
99
|
+
return ce(e.bgColor, e.color);
|
|
99
100
|
}
|
|
100
101
|
getStyleDefinition(e) {
|
|
101
102
|
return this._styles[e ?? "info"];
|
|
@@ -119,22 +120,21 @@ class ue {
|
|
|
119
120
|
return [this.formatMessage(e.shift(), n), ...e ?? []];
|
|
120
121
|
}
|
|
121
122
|
useLog(e, n) {
|
|
122
|
-
|
|
123
|
+
le(
|
|
123
124
|
this.generateStyle(e),
|
|
124
125
|
this.rebuildArgs(n, e.icon)
|
|
125
126
|
);
|
|
126
127
|
}
|
|
127
128
|
}
|
|
128
|
-
class
|
|
129
|
+
class ue extends ae {
|
|
129
130
|
_pluginName = Vt;
|
|
130
131
|
}
|
|
131
|
-
const
|
|
132
|
-
function
|
|
132
|
+
const fe = new ue();
|
|
133
|
+
function at(t) {
|
|
133
134
|
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");
|
|
134
135
|
}
|
|
135
|
-
const
|
|
136
|
-
class pe extends
|
|
137
|
-
_className = wt;
|
|
136
|
+
const he = "PluginSubscription";
|
|
137
|
+
class pe extends $t {
|
|
138
138
|
_pluginDebug;
|
|
139
139
|
_resetStoreCallback = [];
|
|
140
140
|
_subscribers = [];
|
|
@@ -145,11 +145,11 @@ class pe extends Dt {
|
|
|
145
145
|
this._subscribers = e;
|
|
146
146
|
}
|
|
147
147
|
get subscriptions() {
|
|
148
|
-
if (!
|
|
148
|
+
if (!at(this._subscriptions))
|
|
149
149
|
return this._subscriptions;
|
|
150
150
|
}
|
|
151
151
|
constructor(e, n) {
|
|
152
|
-
super(Array.isArray(n) && !!n?.includes(
|
|
152
|
+
super(Array.isArray(n) && !!n?.includes(he), fe), this._pluginDebug = Array.isArray(n) ? n : void 0, this._subscribers = e;
|
|
153
153
|
}
|
|
154
154
|
addResetStoreCallback(e) {
|
|
155
155
|
this._resetStoreCallback.push(e);
|
|
@@ -172,44 +172,44 @@ class pe extends Dt {
|
|
|
172
172
|
]);
|
|
173
173
|
try {
|
|
174
174
|
this._subscribers.forEach(
|
|
175
|
-
(
|
|
176
|
-
this._subscribersDelivered.has(`${
|
|
175
|
+
(r) => {
|
|
176
|
+
this._subscribersDelivered.has(`${r.name}-${e.$id}`) || r.invoke(
|
|
177
177
|
{ store: e, options: n },
|
|
178
|
-
this.definePluginDebug(
|
|
179
|
-
) && (this._subscribersDelivered.add(`${
|
|
178
|
+
this.definePluginDebug(r)
|
|
179
|
+
) && (this._subscribersDelivered.add(`${r.name}-${e.$id}`), r.subscriptions && this.subscriptionDelivery({ store: e, options: n }, r.subscriptions), r.storeMutationSubscription && this.storeMutationSubscription(r.storeMutationSubscription), r.storeOnActionSubscription && this.storeOnActionSubscription(r.storeOnActionSubscription), r.resetStoreCallback && this.addResetStoreCallback(r.resetStoreCallback));
|
|
180
180
|
}
|
|
181
181
|
), this.rewriteResetStore({ store: e }, JSON.stringify(e.$state), Object.assign({}, e));
|
|
182
|
-
} catch (
|
|
183
|
-
this.logError(
|
|
182
|
+
} catch (r) {
|
|
183
|
+
this.logError(r, e, n);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
rewriteResetStore({ store: e }, n,
|
|
187
|
+
rewriteResetStore({ store: e }, n, r) {
|
|
188
188
|
e.$reset = () => {
|
|
189
|
-
this.debugLog("rewriteResetStore()", { initState: n, store: e, customStore:
|
|
189
|
+
this.debugLog("rewriteResetStore()", { initState: n, store: e, customStore: r }), this.executeResetStoreCallbacks(e), e.$patch(JSON.parse(n));
|
|
190
190
|
};
|
|
191
191
|
}
|
|
192
192
|
storeOnActionSubscription(e) {
|
|
193
|
-
const { store: n, callback:
|
|
194
|
-
n.$onAction(({ after:
|
|
195
|
-
this.debugLog(`storeOnActionSubscription ${n.$id}`, { after:
|
|
193
|
+
const { store: n, callback: r } = e();
|
|
194
|
+
n.$onAction(({ after: s, args: o, name: i }) => {
|
|
195
|
+
this.debugLog(`storeOnActionSubscription ${n.$id}`, { after: s, args: o, name: i, store: n }), r({ after: s, args: o, name: i });
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
198
|
storeMutationSubscription(e) {
|
|
199
|
-
const { store: n, callback:
|
|
200
|
-
n.$subscribe((
|
|
201
|
-
this.debugLog(`$subscribe ${n.$id}`, { mutation:
|
|
199
|
+
const { store: n, callback: r } = e();
|
|
200
|
+
n.$subscribe((s) => {
|
|
201
|
+
this.debugLog(`$subscribe ${n.$id}`, { mutation: s, store: n }), r(s);
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
|
-
subscriptionDelivery({ store: e, options: n },
|
|
205
|
-
Object.entries(
|
|
204
|
+
subscriptionDelivery({ store: e, options: n }, r) {
|
|
205
|
+
Object.entries(r).forEach(([s, o]) => {
|
|
206
206
|
try {
|
|
207
|
-
if (this._subscriptionsDelivered.has(`${
|
|
207
|
+
if (this._subscriptionsDelivered.has(`${s}-${e.$id}`))
|
|
208
208
|
return;
|
|
209
209
|
const { subscription: i, subscriptionOptions: c, stores: a } = o;
|
|
210
210
|
this.debugLog(`subscriptionDelivery() - store: ${e.$id}`, [
|
|
211
211
|
"pluginName:",
|
|
212
|
-
|
|
212
|
+
s,
|
|
213
213
|
"subscription:",
|
|
214
214
|
i,
|
|
215
215
|
"options:",
|
|
@@ -223,14 +223,14 @@ class pe extends Dt {
|
|
|
223
223
|
i.invoke(
|
|
224
224
|
{ store: e, options: { ...n, ...u } },
|
|
225
225
|
this.debug
|
|
226
|
-
), this._subscriptionsDelivered.add(`${
|
|
227
|
-
(
|
|
226
|
+
), this._subscriptionsDelivered.add(`${s}-${e.$id}`), at(a) || a?.forEach(
|
|
227
|
+
(f) => i.invoke(
|
|
228
228
|
{
|
|
229
|
-
store:
|
|
229
|
+
store: f,
|
|
230
230
|
options: {
|
|
231
231
|
...n,
|
|
232
232
|
...u,
|
|
233
|
-
...
|
|
233
|
+
...f?.storeOptions ?? {}
|
|
234
234
|
}
|
|
235
235
|
},
|
|
236
236
|
this.debug
|
|
@@ -248,80 +248,80 @@ function de(t) {
|
|
|
248
248
|
for (const n of t.split(",")) e[n] = 1;
|
|
249
249
|
return (n) => n in e;
|
|
250
250
|
}
|
|
251
|
-
const
|
|
251
|
+
const ut = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
252
252
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
253
|
-
const
|
|
253
|
+
const Dt = () => {
|
|
254
254
|
}, _e = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
|
|
255
|
-
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97),
|
|
255
|
+
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), ge = (t) => t.startsWith("onUpdate:"), D = Object.assign, be = Object.prototype.hasOwnProperty, ft = (t, e) => be.call(t, e), d = Array.isArray, H = (t) => xt(t) === "[object Map]", I = (t) => typeof t == "function", v = (t) => typeof t == "string", V = (t) => typeof t == "symbol", _ = (t) => t !== null && typeof t == "object", me = Object.prototype.toString, xt = (t) => me.call(t), Tt = (t) => xt(t).slice(8, -1), tt = (t) => v(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, ye = (t) => {
|
|
256
256
|
const e = /* @__PURE__ */ Object.create(null);
|
|
257
257
|
return ((n) => e[n] || (e[n] = t(n)));
|
|
258
|
-
},
|
|
259
|
-
let
|
|
260
|
-
const
|
|
258
|
+
}, Se = ye((t) => t.charAt(0).toUpperCase() + t.slice(1)), L = (t, e) => !Object.is(t, e);
|
|
259
|
+
let wt;
|
|
260
|
+
const et = () => wt || (wt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
261
261
|
function _t(t) {
|
|
262
262
|
if (d(t)) {
|
|
263
263
|
const e = {};
|
|
264
264
|
for (let n = 0; n < t.length; n++) {
|
|
265
|
-
const
|
|
266
|
-
if (
|
|
267
|
-
for (const o in
|
|
268
|
-
e[o] =
|
|
265
|
+
const r = t[n], s = v(r) ? Ne(r) : _t(r);
|
|
266
|
+
if (s)
|
|
267
|
+
for (const o in s)
|
|
268
|
+
e[o] = s[o];
|
|
269
269
|
}
|
|
270
270
|
return e;
|
|
271
|
-
} else if (
|
|
271
|
+
} else if (v(t) || _(t))
|
|
272
272
|
return t;
|
|
273
273
|
}
|
|
274
|
-
const
|
|
275
|
-
function
|
|
274
|
+
const Oe = /;(?![^(]*\))/g, Ee = /:([^]+)/, we = /\/\*[^]*?\*\//g;
|
|
275
|
+
function Ne(t) {
|
|
276
276
|
const e = {};
|
|
277
|
-
return t.replace(
|
|
277
|
+
return t.replace(we, "").split(Oe).forEach((n) => {
|
|
278
278
|
if (n) {
|
|
279
|
-
const
|
|
280
|
-
|
|
279
|
+
const r = n.split(Ee);
|
|
280
|
+
r.length > 1 && (e[r[0].trim()] = r[1].trim());
|
|
281
281
|
}
|
|
282
282
|
}), e;
|
|
283
283
|
}
|
|
284
284
|
function gt(t) {
|
|
285
285
|
let e = "";
|
|
286
|
-
if (
|
|
286
|
+
if (v(t))
|
|
287
287
|
e = t;
|
|
288
288
|
else if (d(t))
|
|
289
289
|
for (let n = 0; n < t.length; n++) {
|
|
290
|
-
const
|
|
291
|
-
|
|
290
|
+
const r = gt(t[n]);
|
|
291
|
+
r && (e += r + " ");
|
|
292
292
|
}
|
|
293
293
|
else if (_(t))
|
|
294
294
|
for (const n in t)
|
|
295
295
|
t[n] && (e += n + " ");
|
|
296
296
|
return e.trim();
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function F(t, ...e) {
|
|
299
299
|
console.warn(`[Vue warn] ${t}`, ...e);
|
|
300
300
|
}
|
|
301
|
-
let
|
|
301
|
+
let Mt = 0, nt;
|
|
302
302
|
function bt() {
|
|
303
|
-
|
|
303
|
+
Mt++;
|
|
304
304
|
}
|
|
305
305
|
function mt() {
|
|
306
|
-
if (--
|
|
306
|
+
if (--Mt > 0)
|
|
307
307
|
return;
|
|
308
308
|
let t;
|
|
309
|
-
for (;
|
|
310
|
-
let e =
|
|
311
|
-
for (
|
|
309
|
+
for (; nt; ) {
|
|
310
|
+
let e = nt;
|
|
311
|
+
for (nt = void 0; e; ) {
|
|
312
312
|
const n = e.next;
|
|
313
313
|
if (e.next = void 0, e.flags &= -9, e.flags & 1)
|
|
314
314
|
try {
|
|
315
315
|
e.trigger();
|
|
316
|
-
} catch (
|
|
317
|
-
t || (t =
|
|
316
|
+
} catch (r) {
|
|
317
|
+
t || (t = r);
|
|
318
318
|
}
|
|
319
319
|
e = n;
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
if (t) throw t;
|
|
323
323
|
}
|
|
324
|
-
class
|
|
324
|
+
class ve {
|
|
325
325
|
// TODO isolatedDeclarations "__v_skip"
|
|
326
326
|
constructor(e) {
|
|
327
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);
|
|
@@ -337,7 +337,7 @@ class Ne {
|
|
|
337
337
|
if (process.env.NODE_ENV !== "production")
|
|
338
338
|
for (let n = this.subsHead; n; n = n.nextSub)
|
|
339
339
|
n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
|
|
340
|
-
|
|
340
|
+
D(
|
|
341
341
|
{
|
|
342
342
|
effect: n.sub
|
|
343
343
|
},
|
|
@@ -351,15 +351,15 @@ class Ne {
|
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
const
|
|
354
|
+
const Pt = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ Symbol(
|
|
355
355
|
process.env.NODE_ENV !== "production" ? "Object iterate" : ""
|
|
356
|
-
),
|
|
356
|
+
), Nt = /* @__PURE__ */ Symbol(
|
|
357
357
|
process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
|
|
358
|
-
),
|
|
358
|
+
), vt = /* @__PURE__ */ Symbol(
|
|
359
359
|
process.env.NODE_ENV !== "production" ? "Array iterate" : ""
|
|
360
360
|
);
|
|
361
|
-
function
|
|
362
|
-
const i =
|
|
361
|
+
function A(t, e, n, r, s, o) {
|
|
362
|
+
const i = Pt.get(t);
|
|
363
363
|
if (!i)
|
|
364
364
|
return;
|
|
365
365
|
const c = (a) => {
|
|
@@ -367,230 +367,232 @@ function I(t, e, n, s, r, o) {
|
|
|
367
367
|
target: t,
|
|
368
368
|
type: e,
|
|
369
369
|
key: n,
|
|
370
|
-
newValue:
|
|
371
|
-
oldValue:
|
|
370
|
+
newValue: r,
|
|
371
|
+
oldValue: s,
|
|
372
372
|
oldTarget: o
|
|
373
373
|
}) : a.trigger());
|
|
374
374
|
};
|
|
375
375
|
if (bt(), e === "clear")
|
|
376
376
|
i.forEach(c);
|
|
377
377
|
else {
|
|
378
|
-
const a = d(t), u = a &&
|
|
378
|
+
const a = d(t), u = a && tt(n);
|
|
379
379
|
if (a && n === "length") {
|
|
380
|
-
const
|
|
380
|
+
const f = Number(r);
|
|
381
381
|
i.forEach((l, h) => {
|
|
382
|
-
(h === "length" || h ===
|
|
382
|
+
(h === "length" || h === vt || !V(h) && h >= f) && c(l);
|
|
383
383
|
});
|
|
384
384
|
} else
|
|
385
|
-
switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), u && c(i.get(
|
|
385
|
+
switch ((n !== void 0 || i.has(void 0)) && c(i.get(n)), u && c(i.get(vt)), e) {
|
|
386
386
|
case "add":
|
|
387
|
-
a ? u && c(i.get("length")) : (c(i.get(
|
|
387
|
+
a ? u && c(i.get("length")) : (c(i.get(st)), H(t) && c(i.get(Nt)));
|
|
388
388
|
break;
|
|
389
389
|
case "delete":
|
|
390
|
-
a || (c(i.get(
|
|
390
|
+
a || (c(i.get(st)), H(t) && c(i.get(Nt)));
|
|
391
391
|
break;
|
|
392
392
|
case "set":
|
|
393
|
-
|
|
393
|
+
H(t) && c(i.get(st));
|
|
394
394
|
break;
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
mt();
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
const n =
|
|
399
|
+
function Re(t, e) {
|
|
400
|
+
const n = Pt.get(t);
|
|
401
401
|
return n && n.get(e);
|
|
402
402
|
}
|
|
403
|
-
function
|
|
404
|
-
const e =
|
|
405
|
-
return e === t || y(t) ? e : e.map(
|
|
403
|
+
function x(t) {
|
|
404
|
+
const e = /* @__PURE__ */ p(t);
|
|
405
|
+
return e === t || /* @__PURE__ */ y(t) ? e : e.map(R);
|
|
406
406
|
}
|
|
407
407
|
function yt(t) {
|
|
408
|
-
return t =
|
|
408
|
+
return t = /* @__PURE__ */ p(t), t;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
return E(t) ? St(t) ?
|
|
410
|
+
function O(t, e) {
|
|
411
|
+
return /* @__PURE__ */ E(t) ? z(/* @__PURE__ */ St(t) ? R(e) : e) : R(e);
|
|
412
412
|
}
|
|
413
|
-
const
|
|
413
|
+
const Ce = {
|
|
414
414
|
__proto__: null,
|
|
415
415
|
[Symbol.iterator]() {
|
|
416
|
-
return rt(this, Symbol.iterator, (t) =>
|
|
416
|
+
return rt(this, Symbol.iterator, (t) => O(this, t));
|
|
417
417
|
},
|
|
418
418
|
concat(...t) {
|
|
419
|
-
return
|
|
420
|
-
...t.map((e) => d(e) ?
|
|
419
|
+
return x(this).concat(
|
|
420
|
+
...t.map((e) => d(e) ? x(e) : e)
|
|
421
421
|
);
|
|
422
422
|
},
|
|
423
423
|
entries() {
|
|
424
|
-
return rt(this, "entries", (t) => (t[1] =
|
|
424
|
+
return rt(this, "entries", (t) => (t[1] = O(this, t[1]), t));
|
|
425
425
|
},
|
|
426
426
|
every(t, e) {
|
|
427
|
-
return
|
|
427
|
+
return w(this, "every", t, e, void 0, arguments);
|
|
428
428
|
},
|
|
429
429
|
filter(t, e) {
|
|
430
|
-
return
|
|
430
|
+
return w(
|
|
431
431
|
this,
|
|
432
432
|
"filter",
|
|
433
433
|
t,
|
|
434
434
|
e,
|
|
435
|
-
(n) => n.map((
|
|
435
|
+
(n) => n.map((r) => O(this, r)),
|
|
436
436
|
arguments
|
|
437
437
|
);
|
|
438
438
|
},
|
|
439
439
|
find(t, e) {
|
|
440
|
-
return
|
|
440
|
+
return w(
|
|
441
441
|
this,
|
|
442
442
|
"find",
|
|
443
443
|
t,
|
|
444
444
|
e,
|
|
445
|
-
(n) =>
|
|
445
|
+
(n) => O(this, n),
|
|
446
446
|
arguments
|
|
447
447
|
);
|
|
448
448
|
},
|
|
449
449
|
findIndex(t, e) {
|
|
450
|
-
return
|
|
450
|
+
return w(this, "findIndex", t, e, void 0, arguments);
|
|
451
451
|
},
|
|
452
452
|
findLast(t, e) {
|
|
453
|
-
return
|
|
453
|
+
return w(
|
|
454
454
|
this,
|
|
455
455
|
"findLast",
|
|
456
456
|
t,
|
|
457
457
|
e,
|
|
458
|
-
(n) =>
|
|
458
|
+
(n) => O(this, n),
|
|
459
459
|
arguments
|
|
460
460
|
);
|
|
461
461
|
},
|
|
462
462
|
findLastIndex(t, e) {
|
|
463
|
-
return
|
|
463
|
+
return w(this, "findLastIndex", t, e, void 0, arguments);
|
|
464
464
|
},
|
|
465
465
|
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
466
466
|
forEach(t, e) {
|
|
467
|
-
return
|
|
467
|
+
return w(this, "forEach", t, e, void 0, arguments);
|
|
468
468
|
},
|
|
469
469
|
includes(...t) {
|
|
470
|
-
return
|
|
470
|
+
return ot(this, "includes", t);
|
|
471
471
|
},
|
|
472
472
|
indexOf(...t) {
|
|
473
|
-
return
|
|
473
|
+
return ot(this, "indexOf", t);
|
|
474
474
|
},
|
|
475
475
|
join(t) {
|
|
476
|
-
return
|
|
476
|
+
return x(this).join(t);
|
|
477
477
|
},
|
|
478
478
|
// keys() iterator only reads `length`, no optimization required
|
|
479
479
|
lastIndexOf(...t) {
|
|
480
|
-
return
|
|
480
|
+
return ot(this, "lastIndexOf", t);
|
|
481
481
|
},
|
|
482
482
|
map(t, e) {
|
|
483
|
-
return
|
|
483
|
+
return w(this, "map", t, e, void 0, arguments);
|
|
484
484
|
},
|
|
485
485
|
pop() {
|
|
486
|
-
return
|
|
486
|
+
return K(this, "pop");
|
|
487
487
|
},
|
|
488
488
|
push(...t) {
|
|
489
|
-
return
|
|
489
|
+
return K(this, "push", t);
|
|
490
490
|
},
|
|
491
491
|
reduce(t, ...e) {
|
|
492
|
-
return
|
|
492
|
+
return Rt(this, "reduce", t, e);
|
|
493
493
|
},
|
|
494
494
|
reduceRight(t, ...e) {
|
|
495
|
-
return
|
|
495
|
+
return Rt(this, "reduceRight", t, e);
|
|
496
496
|
},
|
|
497
497
|
shift() {
|
|
498
|
-
return
|
|
498
|
+
return K(this, "shift");
|
|
499
499
|
},
|
|
500
500
|
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
501
501
|
some(t, e) {
|
|
502
|
-
return
|
|
502
|
+
return w(this, "some", t, e, void 0, arguments);
|
|
503
503
|
},
|
|
504
504
|
splice(...t) {
|
|
505
|
-
return
|
|
505
|
+
return K(this, "splice", t);
|
|
506
506
|
},
|
|
507
507
|
toReversed() {
|
|
508
|
-
return
|
|
508
|
+
return x(this).toReversed();
|
|
509
509
|
},
|
|
510
510
|
toSorted(t) {
|
|
511
|
-
return
|
|
511
|
+
return x(this).toSorted(t);
|
|
512
512
|
},
|
|
513
513
|
toSpliced(...t) {
|
|
514
|
-
return
|
|
514
|
+
return x(this).toSpliced(...t);
|
|
515
515
|
},
|
|
516
516
|
unshift(...t) {
|
|
517
|
-
return
|
|
517
|
+
return K(this, "unshift", t);
|
|
518
518
|
},
|
|
519
519
|
values() {
|
|
520
|
-
return rt(this, "values", (t) =>
|
|
520
|
+
return rt(this, "values", (t) => O(this, t));
|
|
521
521
|
}
|
|
522
522
|
};
|
|
523
523
|
function rt(t, e, n) {
|
|
524
|
-
const
|
|
525
|
-
return
|
|
526
|
-
const o =
|
|
524
|
+
const r = yt(t), s = r[e]();
|
|
525
|
+
return r !== t && !/* @__PURE__ */ y(t) && (s._next = s.next, s.next = () => {
|
|
526
|
+
const o = s._next();
|
|
527
527
|
return o.done || (o.value = n(o.value)), o;
|
|
528
|
-
}),
|
|
528
|
+
}), s;
|
|
529
529
|
}
|
|
530
|
-
const
|
|
531
|
-
function
|
|
532
|
-
const i = yt(t), c = i !== t &&
|
|
533
|
-
if (a !==
|
|
530
|
+
const Ae = Array.prototype;
|
|
531
|
+
function w(t, e, n, r, s, o) {
|
|
532
|
+
const i = yt(t), c = i !== t && !/* @__PURE__ */ y(t), a = i[e];
|
|
533
|
+
if (a !== Ae[e]) {
|
|
534
534
|
const l = a.apply(t, o);
|
|
535
|
-
return c ?
|
|
535
|
+
return c ? R(l) : l;
|
|
536
536
|
}
|
|
537
537
|
let u = n;
|
|
538
538
|
i !== t && (c ? u = function(l, h) {
|
|
539
|
-
return n.call(this,
|
|
539
|
+
return n.call(this, O(t, l), h, t);
|
|
540
540
|
} : n.length > 2 && (u = function(l, h) {
|
|
541
541
|
return n.call(this, l, h, t);
|
|
542
542
|
}));
|
|
543
|
-
const
|
|
544
|
-
return c &&
|
|
545
|
-
}
|
|
546
|
-
function
|
|
547
|
-
const
|
|
548
|
-
let
|
|
549
|
-
|
|
550
|
-
return n.call(this,
|
|
551
|
-
}) :
|
|
552
|
-
return n.call(this,
|
|
553
|
-
})
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
543
|
+
const f = a.call(i, u, r);
|
|
544
|
+
return c && s ? s(f) : f;
|
|
545
|
+
}
|
|
546
|
+
function Rt(t, e, n, r) {
|
|
547
|
+
const s = yt(t), o = s !== t && !/* @__PURE__ */ y(t);
|
|
548
|
+
let i = n, c = !1;
|
|
549
|
+
s !== t && (o ? (c = r.length === 0, i = function(u, f, l) {
|
|
550
|
+
return c && (c = !1, u = O(t, u)), n.call(this, u, O(t, f), l, t);
|
|
551
|
+
}) : n.length > 3 && (i = function(u, f, l) {
|
|
552
|
+
return n.call(this, u, f, l, t);
|
|
553
|
+
}));
|
|
554
|
+
const a = s[e](i, ...r);
|
|
555
|
+
return c ? O(t, a) : a;
|
|
556
|
+
}
|
|
557
|
+
function ot(t, e, n) {
|
|
558
|
+
const r = /* @__PURE__ */ p(t), s = r[e](...n);
|
|
559
|
+
return (s === -1 || s === !1) && /* @__PURE__ */ W(n[0]) ? (n[0] = /* @__PURE__ */ p(n[0]), r[e](...n)) : s;
|
|
560
|
+
}
|
|
561
|
+
function K(t, e, n = []) {
|
|
560
562
|
bt();
|
|
561
|
-
const
|
|
562
|
-
return mt(),
|
|
563
|
+
const r = (/* @__PURE__ */ p(t))[e].apply(t, n);
|
|
564
|
+
return mt(), r;
|
|
563
565
|
}
|
|
564
|
-
const Ie = /* @__PURE__ */ de("__proto__,__v_isRef,__isVue"),
|
|
565
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(
|
|
566
|
+
const Ie = /* @__PURE__ */ de("__proto__,__v_isRef,__isVue"), Ft = new Set(
|
|
567
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(V)
|
|
566
568
|
);
|
|
567
|
-
function
|
|
568
|
-
return
|
|
569
|
+
function $e(t) {
|
|
570
|
+
return V(t) || (t = String(t)), (/* @__PURE__ */ p(this)).hasOwnProperty(t);
|
|
569
571
|
}
|
|
570
|
-
class
|
|
572
|
+
class kt {
|
|
571
573
|
constructor(e = !1, n = !1) {
|
|
572
574
|
this._isReadonly = e, this._isShallow = n;
|
|
573
575
|
}
|
|
574
|
-
get(e, n,
|
|
576
|
+
get(e, n, r) {
|
|
575
577
|
if (n === "__v_skip") return e.__v_skip;
|
|
576
|
-
const
|
|
578
|
+
const s = this._isReadonly, o = this._isShallow;
|
|
577
579
|
if (n === "__v_isReactive")
|
|
578
|
-
return !
|
|
580
|
+
return !s;
|
|
579
581
|
if (n === "__v_isReadonly")
|
|
580
|
-
return
|
|
582
|
+
return s;
|
|
581
583
|
if (n === "__v_isShallow")
|
|
582
584
|
return o;
|
|
583
585
|
if (n === "__v_raw")
|
|
584
|
-
return
|
|
586
|
+
return r === (s ? o ? Ke : Ht : o ? je : Kt).get(e) || // receiver is not the reactive proxy, but has the same prototype
|
|
585
587
|
// this means the receiver is a user proxy of the reactive proxy
|
|
586
|
-
Object.getPrototypeOf(e) === Object.getPrototypeOf(
|
|
588
|
+
Object.getPrototypeOf(e) === Object.getPrototypeOf(r) ? e : void 0;
|
|
587
589
|
const i = d(e);
|
|
588
|
-
if (!
|
|
590
|
+
if (!s) {
|
|
589
591
|
let a;
|
|
590
|
-
if (i && (a =
|
|
592
|
+
if (i && (a = Ce[n]))
|
|
591
593
|
return a;
|
|
592
594
|
if (n === "hasOwnProperty")
|
|
593
|
-
return
|
|
595
|
+
return $e;
|
|
594
596
|
}
|
|
595
597
|
const c = Reflect.get(
|
|
596
598
|
e,
|
|
@@ -598,160 +600,154 @@ class jt {
|
|
|
598
600
|
// if this is a proxy wrapping a ref, return methods using the raw ref
|
|
599
601
|
// as receiver so that we don't have to call `toRaw` on the ref in all
|
|
600
602
|
// its class methods
|
|
601
|
-
g(e) ? e :
|
|
603
|
+
/* @__PURE__ */ g(e) ? e : r
|
|
602
604
|
);
|
|
603
|
-
if ((
|
|
605
|
+
if ((V(n) ? Ft.has(n) : Ie(n)) || o)
|
|
604
606
|
return c;
|
|
605
|
-
if (g(c)) {
|
|
606
|
-
const a = i &&
|
|
607
|
-
return
|
|
607
|
+
if (/* @__PURE__ */ g(c)) {
|
|
608
|
+
const a = i && tt(n) ? c : c.value;
|
|
609
|
+
return s && _(a) ? /* @__PURE__ */ pt(a) : a;
|
|
608
610
|
}
|
|
609
|
-
return _(c) ?
|
|
611
|
+
return _(c) ? s ? /* @__PURE__ */ pt(c) : /* @__PURE__ */ Lt(c) : c;
|
|
610
612
|
}
|
|
611
613
|
}
|
|
612
|
-
class
|
|
614
|
+
class Ve extends kt {
|
|
613
615
|
constructor(e = !1) {
|
|
614
616
|
super(!1, e);
|
|
615
617
|
}
|
|
616
|
-
set(e, n,
|
|
618
|
+
set(e, n, r, s) {
|
|
617
619
|
let o = e[n];
|
|
618
|
-
const i = d(e) &&
|
|
620
|
+
const i = d(e) && tt(n);
|
|
619
621
|
if (!this._isShallow) {
|
|
620
|
-
const u = E(o);
|
|
621
|
-
if (
|
|
622
|
-
return u ? (process.env.NODE_ENV !== "production" &&
|
|
622
|
+
const u = /* @__PURE__ */ E(o);
|
|
623
|
+
if (!/* @__PURE__ */ y(r) && !/* @__PURE__ */ E(r) && (o = /* @__PURE__ */ p(o), r = /* @__PURE__ */ p(r)), !i && /* @__PURE__ */ g(o) && !/* @__PURE__ */ g(r))
|
|
624
|
+
return u ? (process.env.NODE_ENV !== "production" && F(
|
|
623
625
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
624
626
|
e[n]
|
|
625
|
-
), !0) : (o.value =
|
|
627
|
+
), !0) : (o.value = r, !0);
|
|
626
628
|
}
|
|
627
|
-
const c = i ? Number(n) < e.length :
|
|
629
|
+
const c = i ? Number(n) < e.length : ft(e, n), a = Reflect.set(
|
|
628
630
|
e,
|
|
629
631
|
n,
|
|
630
|
-
|
|
631
|
-
g(e) ? e :
|
|
632
|
+
r,
|
|
633
|
+
/* @__PURE__ */ g(e) ? e : s
|
|
632
634
|
);
|
|
633
|
-
return e ===
|
|
635
|
+
return e === /* @__PURE__ */ p(s) && (c ? L(r, o) && A(e, "set", n, r, o) : A(e, "add", n, r)), a;
|
|
634
636
|
}
|
|
635
637
|
deleteProperty(e, n) {
|
|
636
|
-
const
|
|
637
|
-
return o &&
|
|
638
|
+
const r = ft(e, n), s = e[n], o = Reflect.deleteProperty(e, n);
|
|
639
|
+
return o && r && A(e, "delete", n, void 0, s), o;
|
|
638
640
|
}
|
|
639
641
|
has(e, n) {
|
|
640
|
-
const
|
|
641
|
-
return !
|
|
642
|
+
const r = Reflect.has(e, n);
|
|
643
|
+
return !V(n) || Ft.has(n), r;
|
|
642
644
|
}
|
|
643
645
|
ownKeys(e) {
|
|
644
646
|
return Reflect.ownKeys(e);
|
|
645
647
|
}
|
|
646
648
|
}
|
|
647
|
-
class De extends
|
|
649
|
+
class De extends kt {
|
|
648
650
|
constructor(e = !1) {
|
|
649
651
|
super(!0, e);
|
|
650
652
|
}
|
|
651
653
|
set(e, n) {
|
|
652
|
-
return process.env.NODE_ENV !== "production" &&
|
|
654
|
+
return process.env.NODE_ENV !== "production" && F(
|
|
653
655
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
654
656
|
e
|
|
655
657
|
), !0;
|
|
656
658
|
}
|
|
657
659
|
deleteProperty(e, n) {
|
|
658
|
-
return process.env.NODE_ENV !== "production" &&
|
|
660
|
+
return process.env.NODE_ENV !== "production" && F(
|
|
659
661
|
`Delete operation on key "${String(n)}" failed: target is readonly.`,
|
|
660
662
|
e
|
|
661
663
|
), !0;
|
|
662
664
|
}
|
|
663
665
|
}
|
|
664
|
-
const
|
|
665
|
-
function
|
|
666
|
-
return function(...
|
|
667
|
-
const
|
|
668
|
-
return
|
|
669
|
-
// iterator
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
done: l
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
666
|
+
const xe = /* @__PURE__ */ new Ve(), Te = /* @__PURE__ */ new De(), ht = (t) => t, q = (t) => Reflect.getPrototypeOf(t);
|
|
667
|
+
function Me(t, e, n) {
|
|
668
|
+
return function(...r) {
|
|
669
|
+
const s = this.__v_raw, i = H(/* @__PURE__ */ p(s)), c = t === "entries" || t === Symbol.iterator && i, a = s[t](...r), u = n ? ht : e ? z : R;
|
|
670
|
+
return D(
|
|
671
|
+
// inheriting all iterator properties
|
|
672
|
+
Object.create(a),
|
|
673
|
+
{
|
|
674
|
+
// iterator protocol
|
|
675
|
+
next() {
|
|
676
|
+
const { value: f, done: l } = a.next();
|
|
677
|
+
return l ? { value: f, done: l } : {
|
|
678
|
+
value: c ? [u(f[0]), u(f[1])] : u(f),
|
|
679
|
+
done: l
|
|
680
|
+
};
|
|
681
|
+
}
|
|
680
682
|
}
|
|
681
|
-
|
|
683
|
+
);
|
|
682
684
|
};
|
|
683
685
|
}
|
|
684
|
-
function
|
|
686
|
+
function J(t) {
|
|
685
687
|
return function(...e) {
|
|
686
688
|
if (process.env.NODE_ENV !== "production") {
|
|
687
689
|
const n = e[0] ? `on key "${e[0]}" ` : "";
|
|
688
|
-
|
|
689
|
-
`${
|
|
690
|
-
|
|
690
|
+
F(
|
|
691
|
+
`${Se(t)} operation ${n}failed: target is readonly.`,
|
|
692
|
+
/* @__PURE__ */ p(this)
|
|
691
693
|
);
|
|
692
694
|
}
|
|
693
695
|
return t === "delete" ? !1 : t === "clear" ? void 0 : this;
|
|
694
696
|
};
|
|
695
697
|
}
|
|
696
|
-
function
|
|
698
|
+
function Pe(t, e) {
|
|
697
699
|
const n = {
|
|
698
|
-
get(
|
|
699
|
-
const o = this.__v_raw, i =
|
|
700
|
-
if (a.call(i,
|
|
701
|
-
return u(o.get(
|
|
700
|
+
get(s) {
|
|
701
|
+
const o = this.__v_raw, i = /* @__PURE__ */ p(o), c = /* @__PURE__ */ p(s), { has: a } = q(i), u = e ? ht : t ? z : R;
|
|
702
|
+
if (a.call(i, s))
|
|
703
|
+
return u(o.get(s));
|
|
702
704
|
if (a.call(i, c))
|
|
703
705
|
return u(o.get(c));
|
|
704
|
-
o !== i && o.get(
|
|
706
|
+
o !== i && o.get(s);
|
|
705
707
|
},
|
|
706
708
|
get size() {
|
|
707
|
-
|
|
708
|
-
return !t && (f(r), void 0), r.size;
|
|
709
|
+
return this.__v_raw.size;
|
|
709
710
|
},
|
|
710
|
-
has(
|
|
711
|
-
const o = this.__v_raw;
|
|
712
|
-
|
|
713
|
-
const i = f(r);
|
|
714
|
-
return r === i ? o.has(r) : o.has(r) || o.has(i);
|
|
711
|
+
has(s) {
|
|
712
|
+
const o = this.__v_raw, i = /* @__PURE__ */ p(s);
|
|
713
|
+
return s === i ? o.has(s) : o.has(s) || o.has(i);
|
|
715
714
|
},
|
|
716
|
-
forEach(
|
|
717
|
-
const i = this, c = i.__v_raw;
|
|
718
|
-
f(
|
|
719
|
-
const a = e ? ft : t ? L : v;
|
|
720
|
-
return c.forEach((u, p) => r.call(o, a(u), a(p), i));
|
|
715
|
+
forEach(s, o) {
|
|
716
|
+
const i = this, c = i.__v_raw, a = e ? ht : t ? z : R;
|
|
717
|
+
return c.forEach((u, f) => s.call(o, a(u), a(f), i));
|
|
721
718
|
}
|
|
722
719
|
};
|
|
723
|
-
return
|
|
720
|
+
return D(
|
|
724
721
|
n,
|
|
725
722
|
t ? {
|
|
726
|
-
add:
|
|
727
|
-
set:
|
|
728
|
-
delete:
|
|
729
|
-
clear:
|
|
723
|
+
add: J("add"),
|
|
724
|
+
set: J("set"),
|
|
725
|
+
delete: J("delete"),
|
|
726
|
+
clear: J("clear")
|
|
730
727
|
} : {
|
|
731
|
-
add(
|
|
732
|
-
!e &&
|
|
733
|
-
|
|
734
|
-
return W(o).has.call(o, r) || (o.add(r), I(o, "add", r, r)), this;
|
|
728
|
+
add(s) {
|
|
729
|
+
const o = /* @__PURE__ */ p(this), i = q(o), c = /* @__PURE__ */ p(s), a = !e && !/* @__PURE__ */ y(s) && !/* @__PURE__ */ E(s) ? c : s;
|
|
730
|
+
return i.has.call(o, a) || L(s, a) && i.has.call(o, s) || L(c, a) && i.has.call(o, c) || (o.add(a), A(o, "add", a, a)), this;
|
|
735
731
|
},
|
|
736
|
-
set(
|
|
737
|
-
!e &&
|
|
738
|
-
const i =
|
|
739
|
-
let u = c.call(i,
|
|
740
|
-
u ? process.env.NODE_ENV !== "production" &&
|
|
741
|
-
const
|
|
742
|
-
return i.set(
|
|
732
|
+
set(s, o) {
|
|
733
|
+
!e && !/* @__PURE__ */ y(o) && !/* @__PURE__ */ E(o) && (o = /* @__PURE__ */ p(o));
|
|
734
|
+
const i = /* @__PURE__ */ p(this), { has: c, get: a } = q(i);
|
|
735
|
+
let u = c.call(i, s);
|
|
736
|
+
u ? process.env.NODE_ENV !== "production" && Ct(i, c, s) : (s = /* @__PURE__ */ p(s), u = c.call(i, s));
|
|
737
|
+
const f = a.call(i, s);
|
|
738
|
+
return i.set(s, o), u ? L(o, f) && A(i, "set", s, o, f) : A(i, "add", s, o), this;
|
|
743
739
|
},
|
|
744
|
-
delete(
|
|
745
|
-
const o =
|
|
746
|
-
let a = i.call(o,
|
|
747
|
-
a ? process.env.NODE_ENV !== "production" &&
|
|
748
|
-
const u = c ? c.call(o,
|
|
749
|
-
return a &&
|
|
740
|
+
delete(s) {
|
|
741
|
+
const o = /* @__PURE__ */ p(this), { has: i, get: c } = q(o);
|
|
742
|
+
let a = i.call(o, s);
|
|
743
|
+
a ? process.env.NODE_ENV !== "production" && Ct(o, i, s) : (s = /* @__PURE__ */ p(s), a = i.call(o, s));
|
|
744
|
+
const u = c ? c.call(o, s) : void 0, f = o.delete(s);
|
|
745
|
+
return a && A(o, "delete", s, void 0, u), f;
|
|
750
746
|
},
|
|
751
747
|
clear() {
|
|
752
|
-
const
|
|
753
|
-
return o &&
|
|
754
|
-
|
|
748
|
+
const s = /* @__PURE__ */ p(this), o = s.size !== 0, i = process.env.NODE_ENV !== "production" ? H(s) ? new Map(s) : new Set(s) : void 0, c = s.clear();
|
|
749
|
+
return o && A(
|
|
750
|
+
s,
|
|
755
751
|
"clear",
|
|
756
752
|
void 0,
|
|
757
753
|
void 0,
|
|
@@ -764,34 +760,34 @@ function Me(t, e) {
|
|
|
764
760
|
"values",
|
|
765
761
|
"entries",
|
|
766
762
|
Symbol.iterator
|
|
767
|
-
].forEach((
|
|
768
|
-
n[
|
|
763
|
+
].forEach((s) => {
|
|
764
|
+
n[s] = Me(s, t, e);
|
|
769
765
|
}), n;
|
|
770
766
|
}
|
|
771
|
-
function
|
|
772
|
-
const n =
|
|
773
|
-
return (
|
|
774
|
-
|
|
775
|
-
|
|
767
|
+
function jt(t, e) {
|
|
768
|
+
const n = Pe(t, e);
|
|
769
|
+
return (r, s, o) => s === "__v_isReactive" ? !t : s === "__v_isReadonly" ? t : s === "__v_raw" ? r : Reflect.get(
|
|
770
|
+
ft(n, s) && s in r ? n : r,
|
|
771
|
+
s,
|
|
776
772
|
o
|
|
777
773
|
);
|
|
778
774
|
}
|
|
779
|
-
const
|
|
780
|
-
get: /* @__PURE__ */
|
|
781
|
-
},
|
|
782
|
-
get: /* @__PURE__ */
|
|
775
|
+
const Fe = {
|
|
776
|
+
get: /* @__PURE__ */ jt(!1, !1)
|
|
777
|
+
}, ke = {
|
|
778
|
+
get: /* @__PURE__ */ jt(!0, !1)
|
|
783
779
|
};
|
|
784
|
-
function
|
|
785
|
-
const
|
|
786
|
-
if (
|
|
787
|
-
const
|
|
788
|
-
|
|
789
|
-
`Reactive ${
|
|
780
|
+
function Ct(t, e, n) {
|
|
781
|
+
const r = /* @__PURE__ */ p(n);
|
|
782
|
+
if (r !== n && e.call(t, r)) {
|
|
783
|
+
const s = Tt(t);
|
|
784
|
+
F(
|
|
785
|
+
`Reactive ${s} contains both the raw and reactive versions of the same object${s === "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.`
|
|
790
786
|
);
|
|
791
787
|
}
|
|
792
788
|
}
|
|
793
|
-
const
|
|
794
|
-
function
|
|
789
|
+
const Kt = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap();
|
|
790
|
+
function He(t) {
|
|
795
791
|
switch (t) {
|
|
796
792
|
case "Object":
|
|
797
793
|
case "Array":
|
|
@@ -805,77 +801,86 @@ function Ke(t) {
|
|
|
805
801
|
return 0;
|
|
806
802
|
}
|
|
807
803
|
}
|
|
808
|
-
function
|
|
809
|
-
return t.__v_skip || !Object.isExtensible(t) ? 0 :
|
|
804
|
+
function Le(t) {
|
|
805
|
+
return t.__v_skip || !Object.isExtensible(t) ? 0 : He(Tt(t));
|
|
810
806
|
}
|
|
811
|
-
|
|
812
|
-
|
|
807
|
+
// @__NO_SIDE_EFFECTS__
|
|
808
|
+
function Lt(t) {
|
|
809
|
+
return /* @__PURE__ */ E(t) ? t : Wt(
|
|
813
810
|
t,
|
|
814
811
|
!1,
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
812
|
+
xe,
|
|
813
|
+
Fe,
|
|
814
|
+
Kt
|
|
818
815
|
);
|
|
819
816
|
}
|
|
820
|
-
|
|
821
|
-
|
|
817
|
+
// @__NO_SIDE_EFFECTS__
|
|
818
|
+
function pt(t) {
|
|
819
|
+
return Wt(
|
|
822
820
|
t,
|
|
823
821
|
!0,
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
822
|
+
Te,
|
|
823
|
+
ke,
|
|
824
|
+
Ht
|
|
827
825
|
);
|
|
828
826
|
}
|
|
829
|
-
function
|
|
827
|
+
function Wt(t, e, n, r, s) {
|
|
830
828
|
if (!_(t))
|
|
831
|
-
return process.env.NODE_ENV !== "production" &&
|
|
829
|
+
return process.env.NODE_ENV !== "production" && F(
|
|
832
830
|
`value cannot be made ${e ? "readonly" : "reactive"}: ${String(
|
|
833
831
|
t
|
|
834
832
|
)}`
|
|
835
833
|
), t;
|
|
836
834
|
if (t.__v_raw && !(e && t.__v_isReactive))
|
|
837
835
|
return t;
|
|
838
|
-
const o =
|
|
836
|
+
const o = Le(t);
|
|
839
837
|
if (o === 0)
|
|
840
838
|
return t;
|
|
841
|
-
const i =
|
|
839
|
+
const i = s.get(t);
|
|
842
840
|
if (i)
|
|
843
841
|
return i;
|
|
844
842
|
const c = new Proxy(
|
|
845
843
|
t,
|
|
846
|
-
o === 2 ?
|
|
844
|
+
o === 2 ? r : n
|
|
847
845
|
);
|
|
848
|
-
return
|
|
846
|
+
return s.set(t, c), c;
|
|
849
847
|
}
|
|
848
|
+
// @__NO_SIDE_EFFECTS__
|
|
850
849
|
function St(t) {
|
|
851
|
-
return E(t) ? St(t.__v_raw) : !!(t && t.__v_isReactive);
|
|
850
|
+
return /* @__PURE__ */ E(t) ? /* @__PURE__ */ St(t.__v_raw) : !!(t && t.__v_isReactive);
|
|
852
851
|
}
|
|
852
|
+
// @__NO_SIDE_EFFECTS__
|
|
853
853
|
function E(t) {
|
|
854
854
|
return !!(t && t.__v_isReadonly);
|
|
855
855
|
}
|
|
856
|
+
// @__NO_SIDE_EFFECTS__
|
|
856
857
|
function y(t) {
|
|
857
858
|
return !!(t && t.__v_isShallow);
|
|
858
859
|
}
|
|
859
|
-
|
|
860
|
+
// @__NO_SIDE_EFFECTS__
|
|
861
|
+
function W(t) {
|
|
860
862
|
return t ? !!t.__v_raw : !1;
|
|
861
863
|
}
|
|
862
|
-
|
|
864
|
+
// @__NO_SIDE_EFFECTS__
|
|
865
|
+
function p(t) {
|
|
863
866
|
const e = t && t.__v_raw;
|
|
864
|
-
return e ?
|
|
867
|
+
return e ? /* @__PURE__ */ p(e) : t;
|
|
865
868
|
}
|
|
866
|
-
const
|
|
869
|
+
const R = (t) => _(t) ? /* @__PURE__ */ Lt(t) : t, z = (t) => _(t) ? /* @__PURE__ */ pt(t) : t;
|
|
870
|
+
// @__NO_SIDE_EFFECTS__
|
|
867
871
|
function g(t) {
|
|
868
872
|
return t ? t.__v_isRef === !0 : !1;
|
|
869
873
|
}
|
|
870
|
-
|
|
871
|
-
|
|
874
|
+
// @__NO_SIDE_EFFECTS__
|
|
875
|
+
function zt(t) {
|
|
876
|
+
return We(t, !1);
|
|
872
877
|
}
|
|
873
|
-
function
|
|
874
|
-
return g(t) ? t : new ze(t, e);
|
|
878
|
+
function We(t, e) {
|
|
879
|
+
return /* @__PURE__ */ g(t) ? t : new ze(t, e);
|
|
875
880
|
}
|
|
876
881
|
class ze {
|
|
877
882
|
constructor(e, n) {
|
|
878
|
-
this.dep = new
|
|
883
|
+
this.dep = new ve(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? e : /* @__PURE__ */ p(e), this._value = n ? e : R(e), this.__v_isShallow = n;
|
|
879
884
|
}
|
|
880
885
|
get value() {
|
|
881
886
|
return process.env.NODE_ENV !== "production" ? this.dep.track({
|
|
@@ -885,8 +890,8 @@ class ze {
|
|
|
885
890
|
}) : this.dep.track(), this._value;
|
|
886
891
|
}
|
|
887
892
|
set value(e) {
|
|
888
|
-
const n = this._rawValue,
|
|
889
|
-
e =
|
|
893
|
+
const n = this._rawValue, r = this.__v_isShallow || /* @__PURE__ */ y(e) || /* @__PURE__ */ E(e);
|
|
894
|
+
e = r ? e : /* @__PURE__ */ p(e), L(e, n) && (this._rawValue = e, this._value = r ? e : R(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
890
895
|
target: this,
|
|
891
896
|
type: "set",
|
|
892
897
|
key: "value",
|
|
@@ -896,26 +901,26 @@ class ze {
|
|
|
896
901
|
}
|
|
897
902
|
}
|
|
898
903
|
function Ue(t) {
|
|
899
|
-
return g(t) ? t.value : t;
|
|
904
|
+
return /* @__PURE__ */ g(t) ? t.value : t;
|
|
900
905
|
}
|
|
901
|
-
class
|
|
902
|
-
constructor(e, n,
|
|
903
|
-
this._object = e, this.
|
|
904
|
-
let
|
|
905
|
-
if (!d(e) || !
|
|
906
|
+
class qe {
|
|
907
|
+
constructor(e, n, r) {
|
|
908
|
+
this._object = e, this._defaultValue = r, this.__v_isRef = !0, this._value = void 0, this._key = V(n) ? n : String(n), this._raw = /* @__PURE__ */ p(e);
|
|
909
|
+
let s = !0, o = e;
|
|
910
|
+
if (!d(e) || V(this._key) || !tt(this._key))
|
|
906
911
|
do
|
|
907
|
-
|
|
908
|
-
while (
|
|
909
|
-
this._shallow =
|
|
912
|
+
s = !/* @__PURE__ */ W(o) || /* @__PURE__ */ y(o);
|
|
913
|
+
while (s && (o = o.__v_raw));
|
|
914
|
+
this._shallow = s;
|
|
910
915
|
}
|
|
911
916
|
get value() {
|
|
912
917
|
let e = this._object[this._key];
|
|
913
918
|
return this._shallow && (e = Ue(e)), this._value = e === void 0 ? this._defaultValue : e;
|
|
914
919
|
}
|
|
915
920
|
set value(e) {
|
|
916
|
-
if (this._shallow && g(this._raw[this._key])) {
|
|
921
|
+
if (this._shallow && /* @__PURE__ */ g(this._raw[this._key])) {
|
|
917
922
|
const n = this._object[this._key];
|
|
918
|
-
if (g(n)) {
|
|
923
|
+
if (/* @__PURE__ */ g(n)) {
|
|
919
924
|
n.value = e;
|
|
920
925
|
return;
|
|
921
926
|
}
|
|
@@ -923,10 +928,10 @@ class We {
|
|
|
923
928
|
this._object[this._key] = e;
|
|
924
929
|
}
|
|
925
930
|
get dep() {
|
|
926
|
-
return
|
|
931
|
+
return Re(this._raw, this._key);
|
|
927
932
|
}
|
|
928
933
|
}
|
|
929
|
-
class
|
|
934
|
+
class Je {
|
|
930
935
|
constructor(e) {
|
|
931
936
|
this._getter = e, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
|
|
932
937
|
}
|
|
@@ -934,27 +939,28 @@ class qe {
|
|
|
934
939
|
return this._value = this._getter();
|
|
935
940
|
}
|
|
936
941
|
}
|
|
937
|
-
|
|
938
|
-
return g(t) ? t : A(t) ? new qe(t) : _(t) && arguments.length > 1 ? Be(t, e, n) : Wt(t);
|
|
939
|
-
}
|
|
942
|
+
// @__NO_SIDE_EFFECTS__
|
|
940
943
|
function Be(t, e, n) {
|
|
941
|
-
return new
|
|
944
|
+
return /* @__PURE__ */ g(t) ? t : I(t) ? new Je(t) : _(t) && arguments.length > 1 ? Ye(t, e, n) : /* @__PURE__ */ zt(t);
|
|
945
|
+
}
|
|
946
|
+
function Ye(t, e, n) {
|
|
947
|
+
return new qe(t, e, n);
|
|
942
948
|
}
|
|
943
949
|
const $ = [];
|
|
944
|
-
function
|
|
950
|
+
function Ge(t) {
|
|
945
951
|
$.push(t);
|
|
946
952
|
}
|
|
947
|
-
function
|
|
953
|
+
function Qe() {
|
|
948
954
|
$.pop();
|
|
949
955
|
}
|
|
950
|
-
let
|
|
951
|
-
function
|
|
952
|
-
if (
|
|
953
|
-
|
|
954
|
-
const n = $.length ? $[$.length - 1].component : null,
|
|
955
|
-
if (
|
|
956
|
-
|
|
957
|
-
|
|
956
|
+
let it = !1;
|
|
957
|
+
function k(t, ...e) {
|
|
958
|
+
if (it) return;
|
|
959
|
+
it = !0;
|
|
960
|
+
const n = $.length ? $[$.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = Xe();
|
|
961
|
+
if (r)
|
|
962
|
+
Ot(
|
|
963
|
+
r,
|
|
958
964
|
n,
|
|
959
965
|
11,
|
|
960
966
|
[
|
|
@@ -964,21 +970,21 @@ function P(t, ...e) {
|
|
|
964
970
|
return (c = (i = o.toString) == null ? void 0 : i.call(o)) != null ? c : JSON.stringify(o);
|
|
965
971
|
}).join(""),
|
|
966
972
|
n && n.proxy,
|
|
967
|
-
|
|
968
|
-
({ vnode: o }) => `at <${
|
|
973
|
+
s.map(
|
|
974
|
+
({ vnode: o }) => `at <${oe(n, o.type)}>`
|
|
969
975
|
).join(`
|
|
970
976
|
`),
|
|
971
|
-
|
|
977
|
+
s
|
|
972
978
|
]
|
|
973
979
|
);
|
|
974
980
|
else {
|
|
975
981
|
const o = [`[Vue warn]: ${t}`, ...e];
|
|
976
|
-
|
|
977
|
-
`, ...
|
|
982
|
+
s.length && o.push(`
|
|
983
|
+
`, ...Ze(s)), console.warn(...o);
|
|
978
984
|
}
|
|
979
|
-
|
|
985
|
+
it = !1;
|
|
980
986
|
}
|
|
981
|
-
function
|
|
987
|
+
function Xe() {
|
|
982
988
|
let t = $[$.length - 1];
|
|
983
989
|
if (!t)
|
|
984
990
|
return [];
|
|
@@ -989,36 +995,36 @@ function Qe() {
|
|
|
989
995
|
vnode: t,
|
|
990
996
|
recurseCount: 0
|
|
991
997
|
});
|
|
992
|
-
const
|
|
993
|
-
t =
|
|
998
|
+
const r = t.component && t.component.parent;
|
|
999
|
+
t = r && r.vnode;
|
|
994
1000
|
}
|
|
995
1001
|
return e;
|
|
996
1002
|
}
|
|
997
|
-
function
|
|
1003
|
+
function Ze(t) {
|
|
998
1004
|
const e = [];
|
|
999
|
-
return t.forEach((n,
|
|
1000
|
-
e.push(...
|
|
1001
|
-
`], ...
|
|
1005
|
+
return t.forEach((n, r) => {
|
|
1006
|
+
e.push(...r === 0 ? [] : [`
|
|
1007
|
+
`], ...tn(n));
|
|
1002
1008
|
}), e;
|
|
1003
1009
|
}
|
|
1004
|
-
function
|
|
1005
|
-
const n = e > 0 ? `... (${e} recursive calls)` : "",
|
|
1010
|
+
function tn({ vnode: t, recurseCount: e }) {
|
|
1011
|
+
const n = e > 0 ? `... (${e} recursive calls)` : "", r = t.component ? t.component.parent == null : !1, s = ` at <${oe(
|
|
1006
1012
|
t.component,
|
|
1007
1013
|
t.type,
|
|
1008
|
-
|
|
1014
|
+
r
|
|
1009
1015
|
)}`, o = ">" + n;
|
|
1010
|
-
return t.props ? [
|
|
1016
|
+
return t.props ? [s, ...en(t.props), o] : [s + o];
|
|
1011
1017
|
}
|
|
1012
|
-
function
|
|
1018
|
+
function en(t) {
|
|
1013
1019
|
const e = [], n = Object.keys(t);
|
|
1014
|
-
return n.slice(0, 3).forEach((
|
|
1015
|
-
e.push(...
|
|
1020
|
+
return n.slice(0, 3).forEach((r) => {
|
|
1021
|
+
e.push(...Ut(r, t[r]));
|
|
1016
1022
|
}), n.length > 3 && e.push(" ..."), e;
|
|
1017
1023
|
}
|
|
1018
|
-
function
|
|
1019
|
-
return
|
|
1024
|
+
function Ut(t, e, n) {
|
|
1025
|
+
return v(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : /* @__PURE__ */ g(e) ? (e = Ut(t, /* @__PURE__ */ p(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : I(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = /* @__PURE__ */ p(e), n ? e : [`${t}=`, e]);
|
|
1020
1026
|
}
|
|
1021
|
-
const
|
|
1027
|
+
const qt = {
|
|
1022
1028
|
sp: "serverPrefetch hook",
|
|
1023
1029
|
bc: "beforeCreate hook",
|
|
1024
1030
|
c: "created hook",
|
|
@@ -1051,29 +1057,29 @@ const Jt = {
|
|
|
1051
1057
|
15: "component update",
|
|
1052
1058
|
16: "app unmount cleanup function"
|
|
1053
1059
|
};
|
|
1054
|
-
function
|
|
1060
|
+
function Ot(t, e, n, r) {
|
|
1055
1061
|
try {
|
|
1056
|
-
return
|
|
1057
|
-
} catch (
|
|
1058
|
-
|
|
1062
|
+
return r ? t(...r) : t();
|
|
1063
|
+
} catch (s) {
|
|
1064
|
+
Jt(s, e, n);
|
|
1059
1065
|
}
|
|
1060
1066
|
}
|
|
1061
|
-
function
|
|
1062
|
-
const
|
|
1067
|
+
function Jt(t, e, n, r = !0) {
|
|
1068
|
+
const s = e ? e.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: i } = e && e.appContext.config || ut;
|
|
1063
1069
|
if (e) {
|
|
1064
1070
|
let c = e.parent;
|
|
1065
|
-
const a = e.proxy, u = process.env.NODE_ENV !== "production" ?
|
|
1071
|
+
const a = e.proxy, u = process.env.NODE_ENV !== "production" ? qt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
1066
1072
|
for (; c; ) {
|
|
1067
|
-
const
|
|
1068
|
-
if (
|
|
1069
|
-
for (let l = 0; l <
|
|
1070
|
-
if (
|
|
1073
|
+
const f = c.ec;
|
|
1074
|
+
if (f) {
|
|
1075
|
+
for (let l = 0; l < f.length; l++)
|
|
1076
|
+
if (f[l](t, a, u) === !1)
|
|
1071
1077
|
return;
|
|
1072
1078
|
}
|
|
1073
1079
|
c = c.parent;
|
|
1074
1080
|
}
|
|
1075
1081
|
if (o) {
|
|
1076
|
-
|
|
1082
|
+
Ot(o, null, 10, [
|
|
1077
1083
|
t,
|
|
1078
1084
|
a,
|
|
1079
1085
|
u
|
|
@@ -1081,75 +1087,75 @@ function Bt(t, e, n, s = !0) {
|
|
|
1081
1087
|
return;
|
|
1082
1088
|
}
|
|
1083
1089
|
}
|
|
1084
|
-
|
|
1090
|
+
nn(t, n, s, r, i);
|
|
1085
1091
|
}
|
|
1086
|
-
function
|
|
1092
|
+
function nn(t, e, n, r = !0, s = !1) {
|
|
1087
1093
|
if (process.env.NODE_ENV !== "production") {
|
|
1088
|
-
const o =
|
|
1089
|
-
if (n &&
|
|
1094
|
+
const o = qt[e];
|
|
1095
|
+
if (n && Ge(n), k(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && Qe(), r)
|
|
1090
1096
|
throw t;
|
|
1091
1097
|
console.error(t);
|
|
1092
1098
|
} else {
|
|
1093
|
-
if (
|
|
1099
|
+
if (s)
|
|
1094
1100
|
throw t;
|
|
1095
1101
|
console.error(t);
|
|
1096
1102
|
}
|
|
1097
1103
|
}
|
|
1098
1104
|
const m = [];
|
|
1099
|
-
let
|
|
1100
|
-
const
|
|
1101
|
-
let C = null,
|
|
1102
|
-
const
|
|
1103
|
-
let
|
|
1105
|
+
let N = -1;
|
|
1106
|
+
const P = [];
|
|
1107
|
+
let C = null, T = 0;
|
|
1108
|
+
const sn = /* @__PURE__ */ Promise.resolve();
|
|
1109
|
+
let dt = null;
|
|
1104
1110
|
const rn = 100;
|
|
1105
|
-
function
|
|
1106
|
-
let e =
|
|
1111
|
+
function on(t) {
|
|
1112
|
+
let e = N + 1, n = m.length;
|
|
1107
1113
|
for (; e < n; ) {
|
|
1108
|
-
const
|
|
1109
|
-
o < t || o === t &&
|
|
1114
|
+
const r = e + n >>> 1, s = m[r], o = U(s);
|
|
1115
|
+
o < t || o === t && s.flags & 2 ? e = r + 1 : n = r;
|
|
1110
1116
|
}
|
|
1111
1117
|
return e;
|
|
1112
1118
|
}
|
|
1113
|
-
function
|
|
1119
|
+
function cn(t) {
|
|
1114
1120
|
if (!(t.flags & 1)) {
|
|
1115
|
-
const e =
|
|
1121
|
+
const e = U(t), n = m[m.length - 1];
|
|
1116
1122
|
!n || // fast path when the job id is larger than the tail
|
|
1117
|
-
!(t.flags & 2) && e >=
|
|
1123
|
+
!(t.flags & 2) && e >= U(n) ? m.push(t) : m.splice(on(e), 0, t), t.flags |= 1, Bt();
|
|
1118
1124
|
}
|
|
1119
1125
|
}
|
|
1120
|
-
function
|
|
1121
|
-
|
|
1122
|
-
}
|
|
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();
|
|
1126
|
+
function Bt() {
|
|
1127
|
+
dt || (dt = sn.then(Yt));
|
|
1125
1128
|
}
|
|
1126
1129
|
function ln(t) {
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
+
d(t) ? P.push(...t) : C && t.id === -1 ? C.splice(T + 1, 0, t) : t.flags & 1 || (P.push(t), t.flags |= 1), Bt();
|
|
1131
|
+
}
|
|
1132
|
+
function an(t) {
|
|
1133
|
+
if (P.length) {
|
|
1134
|
+
const e = [...new Set(P)].sort(
|
|
1135
|
+
(n, r) => U(n) - U(r)
|
|
1130
1136
|
);
|
|
1131
|
-
if (
|
|
1137
|
+
if (P.length = 0, C) {
|
|
1132
1138
|
C.push(...e);
|
|
1133
1139
|
return;
|
|
1134
1140
|
}
|
|
1135
|
-
for (C = e, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()),
|
|
1136
|
-
const n = C[
|
|
1137
|
-
process.env.NODE_ENV !== "production" &&
|
|
1141
|
+
for (C = e, process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map()), T = 0; T < C.length; T++) {
|
|
1142
|
+
const n = C[T];
|
|
1143
|
+
process.env.NODE_ENV !== "production" && Gt(t, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
|
|
1138
1144
|
}
|
|
1139
|
-
C = null,
|
|
1145
|
+
C = null, T = 0;
|
|
1140
1146
|
}
|
|
1141
1147
|
}
|
|
1142
|
-
const
|
|
1143
|
-
function
|
|
1148
|
+
const U = (t) => t.id == null ? t.flags & 2 ? -1 : 1 / 0 : t.id;
|
|
1149
|
+
function Yt(t) {
|
|
1144
1150
|
process.env.NODE_ENV !== "production" && (t = t || /* @__PURE__ */ new Map());
|
|
1145
|
-
const e = process.env.NODE_ENV !== "production" ? (n) =>
|
|
1151
|
+
const e = process.env.NODE_ENV !== "production" ? (n) => Gt(t, n) : Dt;
|
|
1146
1152
|
try {
|
|
1147
|
-
for (
|
|
1148
|
-
const n = m[
|
|
1153
|
+
for (N = 0; N < m.length; N++) {
|
|
1154
|
+
const n = m[N];
|
|
1149
1155
|
if (n && !(n.flags & 8)) {
|
|
1150
1156
|
if (process.env.NODE_ENV !== "production" && e(n))
|
|
1151
1157
|
continue;
|
|
1152
|
-
n.flags & 4 && (n.flags &= -2),
|
|
1158
|
+
n.flags & 4 && (n.flags &= -2), Ot(
|
|
1153
1159
|
n,
|
|
1154
1160
|
n.i,
|
|
1155
1161
|
n.i ? 15 : 14
|
|
@@ -1157,124 +1163,124 @@ function Gt(t) {
|
|
|
1157
1163
|
}
|
|
1158
1164
|
}
|
|
1159
1165
|
} finally {
|
|
1160
|
-
for (;
|
|
1161
|
-
const n = m[
|
|
1166
|
+
for (; N < m.length; N++) {
|
|
1167
|
+
const n = m[N];
|
|
1162
1168
|
n && (n.flags &= -2);
|
|
1163
1169
|
}
|
|
1164
|
-
|
|
1170
|
+
N = -1, m.length = 0, an(t), dt = null, (m.length || P.length) && Yt(t);
|
|
1165
1171
|
}
|
|
1166
1172
|
}
|
|
1167
|
-
function
|
|
1173
|
+
function Gt(t, e) {
|
|
1168
1174
|
const n = t.get(e) || 0;
|
|
1169
1175
|
if (n > rn) {
|
|
1170
|
-
const
|
|
1171
|
-
return
|
|
1172
|
-
`Maximum recursive updates exceeded${
|
|
1176
|
+
const r = e.i, s = r && re(r.type);
|
|
1177
|
+
return Jt(
|
|
1178
|
+
`Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. 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.`,
|
|
1173
1179
|
null,
|
|
1174
1180
|
10
|
|
1175
1181
|
), !0;
|
|
1176
1182
|
}
|
|
1177
1183
|
return t.set(e, n + 1), !1;
|
|
1178
1184
|
}
|
|
1179
|
-
const
|
|
1180
|
-
process.env.NODE_ENV !== "production" && (
|
|
1181
|
-
createRecord:
|
|
1182
|
-
rerender:
|
|
1183
|
-
reload:
|
|
1185
|
+
const ct = /* @__PURE__ */ new Map();
|
|
1186
|
+
process.env.NODE_ENV !== "production" && (et().__VUE_HMR_RUNTIME__ = {
|
|
1187
|
+
createRecord: lt(un),
|
|
1188
|
+
rerender: lt(fn),
|
|
1189
|
+
reload: lt(hn)
|
|
1184
1190
|
});
|
|
1185
|
-
const
|
|
1186
|
-
function
|
|
1187
|
-
return
|
|
1188
|
-
initialDef:
|
|
1191
|
+
const G = /* @__PURE__ */ new Map();
|
|
1192
|
+
function un(t, e) {
|
|
1193
|
+
return G.has(t) ? !1 : (G.set(t, {
|
|
1194
|
+
initialDef: Q(e),
|
|
1189
1195
|
instances: /* @__PURE__ */ new Set()
|
|
1190
1196
|
}), !0);
|
|
1191
1197
|
}
|
|
1192
|
-
function
|
|
1193
|
-
return
|
|
1198
|
+
function Q(t) {
|
|
1199
|
+
return ie(t) ? t.__vccOpts : t;
|
|
1194
1200
|
}
|
|
1195
|
-
function
|
|
1196
|
-
const n =
|
|
1197
|
-
n && (n.initialDef.render = e, [...n.instances].forEach((
|
|
1198
|
-
e && (
|
|
1201
|
+
function fn(t, e) {
|
|
1202
|
+
const n = G.get(t);
|
|
1203
|
+
n && (n.initialDef.render = e, [...n.instances].forEach((r) => {
|
|
1204
|
+
e && (r.render = e, Q(r.type).render = e), r.renderCache = [], r.job.flags & 8 || r.update();
|
|
1199
1205
|
}));
|
|
1200
1206
|
}
|
|
1201
|
-
function
|
|
1202
|
-
const n =
|
|
1207
|
+
function hn(t, e) {
|
|
1208
|
+
const n = G.get(t);
|
|
1203
1209
|
if (!n) return;
|
|
1204
|
-
e =
|
|
1205
|
-
const
|
|
1206
|
-
for (let
|
|
1207
|
-
const o = s
|
|
1208
|
-
let c =
|
|
1209
|
-
c || (i !== n.initialDef && At(i, e),
|
|
1210
|
+
e = Q(e), At(n.initialDef, e);
|
|
1211
|
+
const r = [...n.instances];
|
|
1212
|
+
for (let s = 0; s < r.length; s++) {
|
|
1213
|
+
const o = r[s], i = Q(o.type);
|
|
1214
|
+
let c = ct.get(i);
|
|
1215
|
+
c || (i !== n.initialDef && At(i, e), ct.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 ? cn(() => {
|
|
1210
1216
|
o.job.flags & 8 || (o.parent.update(), c.delete(o));
|
|
1211
1217
|
}) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
1212
1218
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
1213
1219
|
), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(i);
|
|
1214
1220
|
}
|
|
1215
|
-
|
|
1216
|
-
|
|
1221
|
+
ln(() => {
|
|
1222
|
+
ct.clear();
|
|
1217
1223
|
});
|
|
1218
1224
|
}
|
|
1219
1225
|
function At(t, e) {
|
|
1220
|
-
|
|
1226
|
+
D(t, e);
|
|
1221
1227
|
for (const n in t)
|
|
1222
1228
|
n !== "__file" && !(n in e) && delete t[n];
|
|
1223
1229
|
}
|
|
1224
|
-
function
|
|
1230
|
+
function lt(t) {
|
|
1225
1231
|
return (e, n) => {
|
|
1226
1232
|
try {
|
|
1227
1233
|
return t(e, n);
|
|
1228
|
-
} catch (
|
|
1229
|
-
console.error(
|
|
1234
|
+
} catch (r) {
|
|
1235
|
+
console.error(r), console.warn(
|
|
1230
1236
|
"[HMR] Something went wrong during Vue component hot-reload. Full reload required."
|
|
1231
1237
|
);
|
|
1232
1238
|
}
|
|
1233
1239
|
};
|
|
1234
1240
|
}
|
|
1235
|
-
let
|
|
1236
|
-
function
|
|
1237
|
-
var n,
|
|
1238
|
-
|
|
1241
|
+
let M, B = [];
|
|
1242
|
+
function Qt(t, e) {
|
|
1243
|
+
var n, r;
|
|
1244
|
+
M = t, M ? (M.enabled = !0, B.forEach(({ event: s, args: o }) => M.emit(s, ...o)), B = []) : /* 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
|
|
1239
1245
|
window.HTMLElement && // also exclude jsdom
|
|
1240
1246
|
// eslint-disable-next-line no-restricted-syntax
|
|
1241
|
-
!((
|
|
1242
|
-
|
|
1247
|
+
!((r = (n = window.navigator) == null ? void 0 : n.userAgent) != null && r.includes("jsdom")) ? ((e.__VUE_DEVTOOLS_HOOK_REPLAY__ = e.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
|
|
1248
|
+
Qt(o, e);
|
|
1243
1249
|
}), setTimeout(() => {
|
|
1244
|
-
|
|
1245
|
-
}, 3e3)) :
|
|
1246
|
-
}
|
|
1247
|
-
let
|
|
1248
|
-
const
|
|
1249
|
-
function
|
|
1250
|
-
t.shapeFlag & 6 && t.component ? (t.transition = e,
|
|
1251
|
-
}
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
const
|
|
1255
|
-
process.env.NODE_ENV !== "production" && (
|
|
1250
|
+
M || (e.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, B = []);
|
|
1251
|
+
}, 3e3)) : B = [];
|
|
1252
|
+
}
|
|
1253
|
+
let X = null, pn = null;
|
|
1254
|
+
const dn = (t) => t.__isTeleport;
|
|
1255
|
+
function Xt(t, e) {
|
|
1256
|
+
t.shapeFlag & 6 && t.component ? (t.transition = e, Xt(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
|
|
1257
|
+
}
|
|
1258
|
+
et().requestIdleCallback;
|
|
1259
|
+
et().cancelIdleCallback;
|
|
1260
|
+
const _n = /* @__PURE__ */ Symbol.for("v-ndc"), gn = {};
|
|
1261
|
+
process.env.NODE_ENV !== "production" && (gn.ownKeys = (t) => (k(
|
|
1256
1262
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
1257
1263
|
), Reflect.ownKeys(t)));
|
|
1258
|
-
const
|
|
1259
|
-
function
|
|
1264
|
+
const bn = {}, Zt = (t) => Object.getPrototypeOf(t) === bn, mn = (t) => t.__isSuspense, te = /* @__PURE__ */ Symbol.for("v-fgt"), yn = /* @__PURE__ */ Symbol.for("v-txt"), Sn = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
1265
|
+
function On(t) {
|
|
1260
1266
|
return t ? t.__v_isVNode === !0 : !1;
|
|
1261
1267
|
}
|
|
1262
|
-
const En = (...t) =>
|
|
1268
|
+
const En = (...t) => ne(
|
|
1263
1269
|
...t
|
|
1264
|
-
),
|
|
1270
|
+
), ee = ({ key: t }) => t ?? null, Y = ({
|
|
1265
1271
|
ref: t,
|
|
1266
1272
|
ref_key: e,
|
|
1267
1273
|
ref_for: n
|
|
1268
|
-
}) => (typeof t == "number" && (t = "" + t), t != null ?
|
|
1269
|
-
function
|
|
1274
|
+
}) => (typeof t == "number" && (t = "" + t), t != null ? v(t) || /* @__PURE__ */ g(t) || I(t) ? { i: X, r: t, k: e, f: !!n } : t : null);
|
|
1275
|
+
function wn(t, e = null, n = null, r = 0, s = null, o = t === te ? 0 : 1, i = !1, c = !1) {
|
|
1270
1276
|
const a = {
|
|
1271
1277
|
__v_isVNode: !0,
|
|
1272
1278
|
__v_skip: !0,
|
|
1273
1279
|
type: t,
|
|
1274
1280
|
props: e,
|
|
1275
|
-
key: e &&
|
|
1276
|
-
ref: e &&
|
|
1277
|
-
scopeId:
|
|
1281
|
+
key: e && ee(e),
|
|
1282
|
+
ref: e && Y(e),
|
|
1283
|
+
scopeId: pn,
|
|
1278
1284
|
slotScopeIds: null,
|
|
1279
1285
|
children: n,
|
|
1280
1286
|
component: null,
|
|
@@ -1290,62 +1296,62 @@ function On(t, e = null, n = null, s = 0, r = null, o = t === ee ? 0 : 1, i = !1
|
|
|
1290
1296
|
targetAnchor: null,
|
|
1291
1297
|
staticCount: 0,
|
|
1292
1298
|
shapeFlag: o,
|
|
1293
|
-
patchFlag:
|
|
1294
|
-
dynamicProps:
|
|
1299
|
+
patchFlag: r,
|
|
1300
|
+
dynamicProps: s,
|
|
1295
1301
|
dynamicChildren: null,
|
|
1296
1302
|
appContext: null,
|
|
1297
|
-
ctx:
|
|
1303
|
+
ctx: X
|
|
1298
1304
|
};
|
|
1299
|
-
return c ? (
|
|
1305
|
+
return c ? (Et(a, n), o & 128 && t.normalize(a)) : n && (a.shapeFlag |= v(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && k("VNode created with invalid key (NaN). VNode type:", a.type), a;
|
|
1300
1306
|
}
|
|
1301
|
-
const
|
|
1302
|
-
function
|
|
1303
|
-
if ((!t || t ===
|
|
1304
|
-
const c =
|
|
1307
|
+
const Nn = process.env.NODE_ENV !== "production" ? En : ne;
|
|
1308
|
+
function ne(t, e = null, n = null, r = 0, s = null, o = !1) {
|
|
1309
|
+
if ((!t || t === _n) && (process.env.NODE_ENV !== "production" && !t && k(`Invalid vnode type when creating vnode: ${t}.`), t = Sn), On(t)) {
|
|
1310
|
+
const c = Z(
|
|
1305
1311
|
t,
|
|
1306
1312
|
e,
|
|
1307
1313
|
!0
|
|
1308
1314
|
/* mergeRef: true */
|
|
1309
1315
|
);
|
|
1310
|
-
return n &&
|
|
1316
|
+
return n && Et(c, n), c.patchFlag = -2, c;
|
|
1311
1317
|
}
|
|
1312
|
-
if (
|
|
1313
|
-
e =
|
|
1318
|
+
if (ie(t) && (t = t.__vccOpts), e) {
|
|
1319
|
+
e = vn(e);
|
|
1314
1320
|
let { class: c, style: a } = e;
|
|
1315
|
-
c && !
|
|
1321
|
+
c && !v(c) && (e.class = gt(c)), _(a) && (/* @__PURE__ */ W(a) && !d(a) && (a = D({}, a)), e.style = _t(a));
|
|
1316
1322
|
}
|
|
1317
|
-
const i =
|
|
1318
|
-
return process.env.NODE_ENV !== "production" && i & 4 &&
|
|
1323
|
+
const i = v(t) ? 1 : mn(t) ? 128 : dn(t) ? 64 : _(t) ? 4 : I(t) ? 2 : 0;
|
|
1324
|
+
return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ W(t) && (t = /* @__PURE__ */ p(t), k(
|
|
1319
1325
|
"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`.",
|
|
1320
1326
|
`
|
|
1321
1327
|
Component that was made reactive: `,
|
|
1322
1328
|
t
|
|
1323
|
-
)),
|
|
1329
|
+
)), wn(
|
|
1324
1330
|
t,
|
|
1325
1331
|
e,
|
|
1326
1332
|
n,
|
|
1327
|
-
s,
|
|
1328
1333
|
r,
|
|
1334
|
+
s,
|
|
1329
1335
|
i,
|
|
1330
1336
|
o,
|
|
1331
1337
|
!0
|
|
1332
1338
|
);
|
|
1333
1339
|
}
|
|
1334
|
-
function
|
|
1335
|
-
return t ?
|
|
1340
|
+
function vn(t) {
|
|
1341
|
+
return t ? /* @__PURE__ */ W(t) || Zt(t) ? D({}, t) : t : null;
|
|
1336
1342
|
}
|
|
1337
|
-
function
|
|
1338
|
-
const { props:
|
|
1343
|
+
function Z(t, e, n = !1, r = !1) {
|
|
1344
|
+
const { props: s, ref: o, patchFlag: i, children: c, transition: a } = t, u = e ? Cn(s || {}, e) : s, f = {
|
|
1339
1345
|
__v_isVNode: !0,
|
|
1340
1346
|
__v_skip: !0,
|
|
1341
1347
|
type: t.type,
|
|
1342
1348
|
props: u,
|
|
1343
|
-
key: u &&
|
|
1349
|
+
key: u && ee(u),
|
|
1344
1350
|
ref: e && e.ref ? (
|
|
1345
1351
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
1346
1352
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
1347
1353
|
// the refs so the single vnode can be set on multiple refs
|
|
1348
|
-
n && o ? d(o) ? o.concat(
|
|
1354
|
+
n && o ? d(o) ? o.concat(Y(e)) : [o, Y(e)] : Y(e)
|
|
1349
1355
|
) : o,
|
|
1350
1356
|
scopeId: t.scopeId,
|
|
1351
1357
|
slotScopeIds: t.slotScopeIds,
|
|
@@ -1359,7 +1365,7 @@ function X(t, e, n = !1, s = !1) {
|
|
|
1359
1365
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
1360
1366
|
// note: preserve flag for fragments since they use the flag for children
|
|
1361
1367
|
// fast paths only.
|
|
1362
|
-
patchFlag: e && t.type !==
|
|
1368
|
+
patchFlag: e && t.type !== te ? i === -1 ? 16 : i | 16 : i,
|
|
1363
1369
|
dynamicProps: t.dynamicProps,
|
|
1364
1370
|
dynamicChildren: t.dynamicChildren,
|
|
1365
1371
|
appContext: t.appContext,
|
|
@@ -1371,64 +1377,66 @@ function X(t, e, n = !1, s = !1) {
|
|
|
1371
1377
|
// they will simply be overwritten.
|
|
1372
1378
|
component: t.component,
|
|
1373
1379
|
suspense: t.suspense,
|
|
1374
|
-
ssContent: t.ssContent &&
|
|
1375
|
-
ssFallback: t.ssFallback &&
|
|
1380
|
+
ssContent: t.ssContent && Z(t.ssContent),
|
|
1381
|
+
ssFallback: t.ssFallback && Z(t.ssFallback),
|
|
1376
1382
|
placeholder: t.placeholder,
|
|
1377
1383
|
el: t.el,
|
|
1378
1384
|
anchor: t.anchor,
|
|
1379
1385
|
ctx: t.ctx,
|
|
1380
1386
|
ce: t.ce
|
|
1381
1387
|
};
|
|
1382
|
-
return a &&
|
|
1383
|
-
|
|
1384
|
-
a.clone(
|
|
1385
|
-
),
|
|
1388
|
+
return a && r && Xt(
|
|
1389
|
+
f,
|
|
1390
|
+
a.clone(f)
|
|
1391
|
+
), f;
|
|
1386
1392
|
}
|
|
1387
1393
|
function se(t) {
|
|
1388
|
-
const e =
|
|
1394
|
+
const e = Z(t);
|
|
1389
1395
|
return d(t.children) && (e.children = t.children.map(se)), e;
|
|
1390
1396
|
}
|
|
1391
|
-
function
|
|
1392
|
-
return
|
|
1397
|
+
function Rn(t = " ", e = 0) {
|
|
1398
|
+
return Nn(yn, null, t, e);
|
|
1393
1399
|
}
|
|
1394
|
-
function
|
|
1400
|
+
function Et(t, e) {
|
|
1395
1401
|
let n = 0;
|
|
1396
|
-
const { shapeFlag:
|
|
1402
|
+
const { shapeFlag: r } = t;
|
|
1397
1403
|
if (e == null)
|
|
1398
1404
|
e = null;
|
|
1399
1405
|
else if (d(e))
|
|
1400
1406
|
n = 16;
|
|
1401
1407
|
else if (typeof e == "object")
|
|
1402
|
-
if (
|
|
1403
|
-
const
|
|
1404
|
-
|
|
1408
|
+
if (r & 65) {
|
|
1409
|
+
const s = e.default;
|
|
1410
|
+
s && (s._c && (s._d = !1), Et(t, s()), s._c && (s._d = !0));
|
|
1405
1411
|
return;
|
|
1406
1412
|
} else
|
|
1407
|
-
n = 32, !e._ && !
|
|
1408
|
-
else
|
|
1413
|
+
n = 32, !e._ && !Zt(e) && (e._ctx = X);
|
|
1414
|
+
else I(e) ? (e = { default: e, _ctx: X }, n = 32) : (e = String(e), r & 64 ? (n = 16, e = [Rn(e)]) : n = 8);
|
|
1409
1415
|
t.children = e, t.shapeFlag |= n;
|
|
1410
1416
|
}
|
|
1411
|
-
function
|
|
1417
|
+
function Cn(...t) {
|
|
1412
1418
|
const e = {};
|
|
1413
1419
|
for (let n = 0; n < t.length; n++) {
|
|
1414
|
-
const
|
|
1415
|
-
for (const
|
|
1416
|
-
if (
|
|
1417
|
-
e.class !==
|
|
1418
|
-
else if (
|
|
1419
|
-
e.style = _t([e.style,
|
|
1420
|
-
else if (_e(
|
|
1421
|
-
const o = e[
|
|
1422
|
-
i && o !== i && !(d(o) && o.includes(i))
|
|
1423
|
-
|
|
1420
|
+
const r = t[n];
|
|
1421
|
+
for (const s in r)
|
|
1422
|
+
if (s === "class")
|
|
1423
|
+
e.class !== r.class && (e.class = gt([e.class, r.class]));
|
|
1424
|
+
else if (s === "style")
|
|
1425
|
+
e.style = _t([e.style, r.style]);
|
|
1426
|
+
else if (_e(s)) {
|
|
1427
|
+
const o = e[s], i = r[s];
|
|
1428
|
+
i && o !== i && !(d(o) && o.includes(i)) ? e[s] = o ? [].concat(o, i) : i : i == null && o == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
|
|
1429
|
+
// the model listener.
|
|
1430
|
+
!ge(s) && (e[s] = i);
|
|
1431
|
+
} else s !== "" && (e[s] = r[s]);
|
|
1424
1432
|
}
|
|
1425
1433
|
return e;
|
|
1426
1434
|
}
|
|
1427
1435
|
{
|
|
1428
|
-
const t =
|
|
1429
|
-
let
|
|
1430
|
-
return (
|
|
1431
|
-
|
|
1436
|
+
const t = et(), e = (n, r) => {
|
|
1437
|
+
let s;
|
|
1438
|
+
return (s = t[n]) || (s = t[n] = []), s.push(r), (o) => {
|
|
1439
|
+
s.length > 1 ? s.forEach((i) => i(o)) : s[0](o);
|
|
1432
1440
|
};
|
|
1433
1441
|
};
|
|
1434
1442
|
e(
|
|
@@ -1440,66 +1448,66 @@ function Rn(...t) {
|
|
|
1440
1448
|
);
|
|
1441
1449
|
}
|
|
1442
1450
|
process.env.NODE_ENV;
|
|
1443
|
-
const
|
|
1444
|
-
function
|
|
1445
|
-
return
|
|
1446
|
-
}
|
|
1447
|
-
function
|
|
1448
|
-
let
|
|
1449
|
-
if (!
|
|
1450
|
-
const
|
|
1451
|
-
|
|
1452
|
-
}
|
|
1453
|
-
if (!
|
|
1454
|
-
const
|
|
1451
|
+
const An = /(?:^|[-_])\w/g, In = (t) => t.replace(An, (e) => e.toUpperCase()).replace(/[-_]/g, "");
|
|
1452
|
+
function re(t, e = !0) {
|
|
1453
|
+
return I(t) ? t.displayName || t.name : t.name || e && t.__name;
|
|
1454
|
+
}
|
|
1455
|
+
function oe(t, e, n = !1) {
|
|
1456
|
+
let r = re(e);
|
|
1457
|
+
if (!r && e.__file) {
|
|
1458
|
+
const s = e.__file.match(/([^/\\]+)\.\w+$/);
|
|
1459
|
+
s && (r = s[1]);
|
|
1460
|
+
}
|
|
1461
|
+
if (!r && t) {
|
|
1462
|
+
const s = (o) => {
|
|
1455
1463
|
for (const i in o)
|
|
1456
1464
|
if (o[i] === e)
|
|
1457
1465
|
return i;
|
|
1458
1466
|
};
|
|
1459
|
-
|
|
1467
|
+
r = s(t.components) || t.parent && s(
|
|
1460
1468
|
t.parent.type.components
|
|
1461
|
-
) ||
|
|
1469
|
+
) || s(t.appContext.components);
|
|
1462
1470
|
}
|
|
1463
|
-
return
|
|
1471
|
+
return r ? In(r) : n ? "App" : "Anonymous";
|
|
1464
1472
|
}
|
|
1465
|
-
function
|
|
1466
|
-
return
|
|
1473
|
+
function ie(t) {
|
|
1474
|
+
return I(t) && "__vccOpts" in t;
|
|
1467
1475
|
}
|
|
1468
|
-
function
|
|
1476
|
+
function $n() {
|
|
1469
1477
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
1470
1478
|
return;
|
|
1471
|
-
const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, n = { style: "color:#f5222d" },
|
|
1479
|
+
const t = { style: "color:#3ba776" }, e = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, s = {
|
|
1472
1480
|
__vue_custom_formatter: !0,
|
|
1473
1481
|
header(l) {
|
|
1474
1482
|
if (!_(l))
|
|
1475
1483
|
return null;
|
|
1476
1484
|
if (l.__isVue)
|
|
1477
1485
|
return ["div", t, "VueInstance"];
|
|
1478
|
-
if (g(l)) {
|
|
1486
|
+
if (/* @__PURE__ */ g(l)) {
|
|
1479
1487
|
const h = l.value;
|
|
1480
1488
|
return [
|
|
1481
1489
|
"div",
|
|
1482
1490
|
{},
|
|
1483
|
-
["span", t,
|
|
1491
|
+
["span", t, f(l)],
|
|
1484
1492
|
"<",
|
|
1485
1493
|
c(h),
|
|
1486
1494
|
">"
|
|
1487
1495
|
];
|
|
1488
1496
|
} else {
|
|
1489
|
-
if (St(l))
|
|
1497
|
+
if (/* @__PURE__ */ St(l))
|
|
1490
1498
|
return [
|
|
1491
1499
|
"div",
|
|
1492
1500
|
{},
|
|
1493
|
-
["span", t, y(l) ? "ShallowReactive" : "Reactive"],
|
|
1501
|
+
["span", t, /* @__PURE__ */ y(l) ? "ShallowReactive" : "Reactive"],
|
|
1494
1502
|
"<",
|
|
1495
1503
|
c(l),
|
|
1496
|
-
`>${E(l) ? " (readonly)" : ""}`
|
|
1504
|
+
`>${/* @__PURE__ */ E(l) ? " (readonly)" : ""}`
|
|
1497
1505
|
];
|
|
1498
|
-
if (E(l))
|
|
1506
|
+
if (/* @__PURE__ */ E(l))
|
|
1499
1507
|
return [
|
|
1500
1508
|
"div",
|
|
1501
1509
|
{},
|
|
1502
|
-
["span", t, y(l) ? "ShallowReadonly" : "Readonly"],
|
|
1510
|
+
["span", t, /* @__PURE__ */ y(l) ? "ShallowReadonly" : "Readonly"],
|
|
1503
1511
|
"<",
|
|
1504
1512
|
c(l),
|
|
1505
1513
|
">"
|
|
@@ -1521,7 +1529,7 @@ function An() {
|
|
|
1521
1529
|
};
|
|
1522
1530
|
function o(l) {
|
|
1523
1531
|
const h = [];
|
|
1524
|
-
l.type.props && l.props && h.push(i("props",
|
|
1532
|
+
l.type.props && l.props && h.push(i("props", /* @__PURE__ */ p(l.props))), l.setupState !== ut && h.push(i("setup", l.setupState)), l.data !== ut && h.push(i("data", /* @__PURE__ */ p(l.data)));
|
|
1525
1533
|
const b = a(l, "computed");
|
|
1526
1534
|
b && h.push(i("computed", b));
|
|
1527
1535
|
const S = a(l, "inject");
|
|
@@ -1531,7 +1539,7 @@ function An() {
|
|
|
1531
1539
|
[
|
|
1532
1540
|
"span",
|
|
1533
1541
|
{
|
|
1534
|
-
style:
|
|
1542
|
+
style: r.style + ";opacity:0.66"
|
|
1535
1543
|
},
|
|
1536
1544
|
"$ (internal): "
|
|
1537
1545
|
],
|
|
@@ -1539,7 +1547,7 @@ function An() {
|
|
|
1539
1547
|
]), h;
|
|
1540
1548
|
}
|
|
1541
1549
|
function i(l, h) {
|
|
1542
|
-
return h =
|
|
1550
|
+
return h = D({}, h), Object.keys(h).length ? [
|
|
1543
1551
|
"div",
|
|
1544
1552
|
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
1545
1553
|
[
|
|
@@ -1557,65 +1565,64 @@ function An() {
|
|
|
1557
1565
|
...Object.keys(h).map((b) => [
|
|
1558
1566
|
"div",
|
|
1559
1567
|
{},
|
|
1560
|
-
["span",
|
|
1568
|
+
["span", r, b + ": "],
|
|
1561
1569
|
c(h[b], !1)
|
|
1562
1570
|
])
|
|
1563
1571
|
]
|
|
1564
1572
|
] : ["span", {}];
|
|
1565
1573
|
}
|
|
1566
1574
|
function c(l, h = !0) {
|
|
1567
|
-
return typeof l == "number" ? ["span", e, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span",
|
|
1575
|
+
return typeof l == "number" ? ["span", e, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", r, l] : _(l) ? ["object", { object: h ? /* @__PURE__ */ p(l) : l }] : ["span", n, String(l)];
|
|
1568
1576
|
}
|
|
1569
1577
|
function a(l, h) {
|
|
1570
1578
|
const b = l.type;
|
|
1571
|
-
if (
|
|
1579
|
+
if (I(b))
|
|
1572
1580
|
return;
|
|
1573
1581
|
const S = {};
|
|
1574
|
-
for (const
|
|
1575
|
-
u(b,
|
|
1582
|
+
for (const j in l.ctx)
|
|
1583
|
+
u(b, j, h) && (S[j] = l.ctx[j]);
|
|
1576
1584
|
return S;
|
|
1577
1585
|
}
|
|
1578
1586
|
function u(l, h, b) {
|
|
1579
1587
|
const S = l[b];
|
|
1580
|
-
if (d(S) && S.includes(h) || _(S) && h in S || l.extends && u(l.extends, h, b) || l.mixins && l.mixins.some((
|
|
1588
|
+
if (d(S) && S.includes(h) || _(S) && h in S || l.extends && u(l.extends, h, b) || l.mixins && l.mixins.some((j) => u(j, h, b)))
|
|
1581
1589
|
return !0;
|
|
1582
1590
|
}
|
|
1583
|
-
function
|
|
1584
|
-
return y(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
|
|
1591
|
+
function f(l) {
|
|
1592
|
+
return /* @__PURE__ */ y(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
|
|
1585
1593
|
}
|
|
1586
|
-
window.devtoolsFormatters ? window.devtoolsFormatters.push(
|
|
1594
|
+
window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
|
|
1587
1595
|
}
|
|
1588
1596
|
process.env.NODE_ENV;
|
|
1589
1597
|
process.env.NODE_ENV;
|
|
1590
1598
|
process.env.NODE_ENV;
|
|
1591
|
-
function
|
|
1592
|
-
|
|
1599
|
+
function Vn() {
|
|
1600
|
+
$n();
|
|
1593
1601
|
}
|
|
1594
|
-
process.env.NODE_ENV !== "production" &&
|
|
1595
|
-
function
|
|
1596
|
-
const
|
|
1602
|
+
process.env.NODE_ENV !== "production" && Vn();
|
|
1603
|
+
function kn(t, e, n) {
|
|
1604
|
+
const r = n ? { storeOptions: n } : {};
|
|
1597
1605
|
return typeof e == "function" ? Dn(
|
|
1598
1606
|
t,
|
|
1599
1607
|
e,
|
|
1600
|
-
|
|
1601
|
-
) :
|
|
1608
|
+
r
|
|
1609
|
+
) : xn(
|
|
1602
1610
|
t,
|
|
1603
1611
|
e,
|
|
1604
|
-
|
|
1612
|
+
r
|
|
1605
1613
|
);
|
|
1606
1614
|
}
|
|
1607
1615
|
function Dn(t, e, n) {
|
|
1608
|
-
return
|
|
1616
|
+
return It(t, e, n);
|
|
1609
1617
|
}
|
|
1610
|
-
function
|
|
1611
|
-
return n && (e = { ...e, ...n ?? {} }),
|
|
1618
|
+
function xn(t, e, n) {
|
|
1619
|
+
return n && (e = { ...e, ...n ?? {} }), It(t, e);
|
|
1612
1620
|
}
|
|
1613
|
-
const
|
|
1614
|
-
function
|
|
1615
|
-
return
|
|
1621
|
+
const Tn = /* @__PURE__ */ new Set(["_", "$"]);
|
|
1622
|
+
function Mn(t) {
|
|
1623
|
+
return Tn.has(t[0]);
|
|
1616
1624
|
}
|
|
1617
|
-
class
|
|
1618
|
-
_className = "Store";
|
|
1625
|
+
class jn extends $t {
|
|
1619
1626
|
_onAction;
|
|
1620
1627
|
_options;
|
|
1621
1628
|
_store;
|
|
@@ -1654,8 +1661,8 @@ class kn extends Dt {
|
|
|
1654
1661
|
set storeSubscribe(e) {
|
|
1655
1662
|
this._storeSubscribe = e;
|
|
1656
1663
|
}
|
|
1657
|
-
constructor(e, n,
|
|
1658
|
-
super(
|
|
1664
|
+
constructor(e, n, r = !1, s) {
|
|
1665
|
+
super(r, s), this._options = n.storeOptions, this._store = e;
|
|
1659
1666
|
}
|
|
1660
1667
|
/**
|
|
1661
1668
|
* Add property to state
|
|
@@ -1663,10 +1670,10 @@ class kn extends Dt {
|
|
|
1663
1670
|
* @param value
|
|
1664
1671
|
*/
|
|
1665
1672
|
addToState(e, n) {
|
|
1666
|
-
this.isOptionApi() || n?.value || (n =
|
|
1673
|
+
this.isOptionApi() || n?.value || (n = /* @__PURE__ */ zt(n)), this.state[e] = n, this.store[e] = /* @__PURE__ */ Be(this.state, e);
|
|
1667
1674
|
}
|
|
1668
|
-
addSubscription(e, n,
|
|
1669
|
-
this._subscriptions[e] = { subscription: n, ...
|
|
1675
|
+
addSubscription(e, n, r) {
|
|
1676
|
+
this._subscriptions[e] = { subscription: n, ...r ?? {} };
|
|
1670
1677
|
}
|
|
1671
1678
|
/**
|
|
1672
1679
|
* Create and return a class instance
|
|
@@ -1675,12 +1682,12 @@ class kn extends Dt {
|
|
|
1675
1682
|
* @param debug
|
|
1676
1683
|
* @returns
|
|
1677
1684
|
*/
|
|
1678
|
-
static customizeStore(e, n,
|
|
1685
|
+
static customizeStore(e, n, r = !1, s) {
|
|
1679
1686
|
if (n.storeOptions && this.hasRequiredKeys(n.storeOptions))
|
|
1680
|
-
return new this(e, n,
|
|
1687
|
+
return new this(e, n, r, s);
|
|
1681
1688
|
}
|
|
1682
1689
|
hasDeniedFirstChar(e) {
|
|
1683
|
-
return
|
|
1690
|
+
return Mn(e[0]);
|
|
1684
1691
|
}
|
|
1685
1692
|
static hasRequiredKeys(e) {
|
|
1686
1693
|
return this._requiredKeys !== void 0 && this._requiredKeys?.every((n) => !!e[n]);
|
|
@@ -1692,7 +1699,7 @@ class kn extends Dt {
|
|
|
1692
1699
|
return this.getValue(this.state[e]);
|
|
1693
1700
|
}
|
|
1694
1701
|
getSubscriptions() {
|
|
1695
|
-
if (!
|
|
1702
|
+
if (!at(this._subscriptions))
|
|
1696
1703
|
return this._subscriptions;
|
|
1697
1704
|
}
|
|
1698
1705
|
getValue(e) {
|
|
@@ -1708,17 +1715,17 @@ class kn extends Dt {
|
|
|
1708
1715
|
return this.store.hasOwnProperty(e);
|
|
1709
1716
|
}
|
|
1710
1717
|
}
|
|
1711
|
-
function
|
|
1718
|
+
function Kn(t, e) {
|
|
1712
1719
|
const n = new pe(t, e);
|
|
1713
1720
|
return n.plugin.bind(n);
|
|
1714
1721
|
}
|
|
1715
1722
|
export {
|
|
1716
|
-
|
|
1723
|
+
ae as CustomConsole,
|
|
1717
1724
|
Vt as PLUGIN_NAME,
|
|
1718
|
-
|
|
1725
|
+
Fn as PluginSubscriber,
|
|
1719
1726
|
pe as PluginSubscription,
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1727
|
+
jn as Store,
|
|
1728
|
+
Kn as createPlugin,
|
|
1729
|
+
kn as defineAStore,
|
|
1730
|
+
at as isEmpty
|
|
1724
1731
|
};
|