pinia-plugin-subscription 0.0.0-beta.9 → 0.0.1

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