pinia-plugin-subscription 0.0.0-beta.5 → 0.0.0-beta.7

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