pinia-plugin-subscription 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -0
- package/README.md +2 -0
- package/dist/pinia-plugin-subscription.js +46 -46
- package/dist/pinia-plugin-subscription.umd.cjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
14
14
|
|
|
15
15
|
### Changed
|
|
16
16
|
- `getDefineAStoreSetupContext()` now falls back to store ID lookup during plugin execution timing.
|
|
17
|
+
- `defineAStoreSetup()` now stores setup contexts only for stores with `storeOptions.enhancedStore = true`.
|
|
17
18
|
- Public exports now include `defineAStoreCtx`, `getEnhancedStore`, and `setEnhancedStore`.
|
|
18
19
|
- GitHub Actions now publishes GitHub pre-releases to npm with the `beta` dist-tag.
|
|
19
20
|
|
package/README.md
CHANGED
|
@@ -111,6 +111,8 @@ export const useMyStore = defineAStoreCtx('myStore', (ctx) => {
|
|
|
111
111
|
`ctx.extensions` now supports:
|
|
112
112
|
- `enhancedStore`
|
|
113
113
|
|
|
114
|
+
The setup context is indexed internally only when `storeOptions.enhancedStore` is set to `true` (this is enabled automatically by `defineAStoreCtx`).
|
|
115
|
+
|
|
114
116
|
### `PluginSubscriberInterface`
|
|
115
117
|
|
|
116
118
|
An object with at least an `invoke(context: PiniaPluginContext, debug?: boolean)` method, plus optional properties:
|
|
@@ -133,7 +133,7 @@ function gt(t) {
|
|
|
133
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");
|
|
134
134
|
}
|
|
135
135
|
const It = "PluginSubscription";
|
|
136
|
-
class
|
|
136
|
+
class Oe extends Pt {
|
|
137
137
|
_className = It;
|
|
138
138
|
_pluginDebug;
|
|
139
139
|
_resetStoreCallback = [];
|
|
@@ -243,7 +243,7 @@ class we extends Pt {
|
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
// @__NO_SIDE_EFFECTS__
|
|
246
|
-
function
|
|
246
|
+
function we(t) {
|
|
247
247
|
const e = /* @__PURE__ */ Object.create(null);
|
|
248
248
|
for (const n of t.split(",")) e[n] = 1;
|
|
249
249
|
return (n) => n in e;
|
|
@@ -258,11 +258,11 @@ const kt = () => {
|
|
|
258
258
|
}, xe = Ae((t) => t.charAt(0).toUpperCase() + t.slice(1)), $ = (t, e) => !Object.is(t, e);
|
|
259
259
|
let $t;
|
|
260
260
|
const ct = () => $t || ($t = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
261
|
-
function
|
|
261
|
+
function wt(t) {
|
|
262
262
|
if (d(t)) {
|
|
263
263
|
const e = {};
|
|
264
264
|
for (let n = 0; n < t.length; n++) {
|
|
265
|
-
const r = t[n], s = R(r) ? Ve(r) :
|
|
265
|
+
const r = t[n], s = R(r) ? Ve(r) : wt(r);
|
|
266
266
|
if (s)
|
|
267
267
|
for (const o in s)
|
|
268
268
|
e[o] = s[o];
|
|
@@ -428,13 +428,13 @@ function P(t) {
|
|
|
428
428
|
function Ct(t) {
|
|
429
429
|
return _(t = /* @__PURE__ */ h(t), "iterate", U), t;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
432
|
-
return /* @__PURE__ */
|
|
431
|
+
function O(t, e) {
|
|
432
|
+
return /* @__PURE__ */ w(t) ? B(/* @__PURE__ */ At(t) ? C(e) : e) : C(e);
|
|
433
433
|
}
|
|
434
434
|
const Pe = {
|
|
435
435
|
__proto__: null,
|
|
436
436
|
[Symbol.iterator]() {
|
|
437
|
-
return ft(this, Symbol.iterator, (t) =>
|
|
437
|
+
return ft(this, Symbol.iterator, (t) => O(this, t));
|
|
438
438
|
},
|
|
439
439
|
concat(...t) {
|
|
440
440
|
return P(this).concat(
|
|
@@ -442,7 +442,7 @@ const Pe = {
|
|
|
442
442
|
);
|
|
443
443
|
},
|
|
444
444
|
entries() {
|
|
445
|
-
return ft(this, "entries", (t) => (t[1] =
|
|
445
|
+
return ft(this, "entries", (t) => (t[1] = O(this, t[1]), t));
|
|
446
446
|
},
|
|
447
447
|
every(t, e) {
|
|
448
448
|
return N(this, "every", t, e, void 0, arguments);
|
|
@@ -453,7 +453,7 @@ const Pe = {
|
|
|
453
453
|
"filter",
|
|
454
454
|
t,
|
|
455
455
|
e,
|
|
456
|
-
(n) => n.map((r) =>
|
|
456
|
+
(n) => n.map((r) => O(this, r)),
|
|
457
457
|
arguments
|
|
458
458
|
);
|
|
459
459
|
},
|
|
@@ -463,7 +463,7 @@ const Pe = {
|
|
|
463
463
|
"find",
|
|
464
464
|
t,
|
|
465
465
|
e,
|
|
466
|
-
(n) =>
|
|
466
|
+
(n) => O(this, n),
|
|
467
467
|
arguments
|
|
468
468
|
);
|
|
469
469
|
},
|
|
@@ -476,7 +476,7 @@ const Pe = {
|
|
|
476
476
|
"findLast",
|
|
477
477
|
t,
|
|
478
478
|
e,
|
|
479
|
-
(n) =>
|
|
479
|
+
(n) => O(this, n),
|
|
480
480
|
arguments
|
|
481
481
|
);
|
|
482
482
|
},
|
|
@@ -538,7 +538,7 @@ const Pe = {
|
|
|
538
538
|
return W(this, "unshift", t);
|
|
539
539
|
},
|
|
540
540
|
values() {
|
|
541
|
-
return ft(this, "values", (t) =>
|
|
541
|
+
return ft(this, "values", (t) => O(this, t));
|
|
542
542
|
}
|
|
543
543
|
};
|
|
544
544
|
function ft(t, e, n) {
|
|
@@ -557,7 +557,7 @@ function N(t, e, n, r, s, o) {
|
|
|
557
557
|
}
|
|
558
558
|
let u = n;
|
|
559
559
|
i !== t && (c ? u = function(a, f) {
|
|
560
|
-
return n.call(this,
|
|
560
|
+
return n.call(this, O(t, a), f, t);
|
|
561
561
|
} : n.length > 2 && (u = function(a, f) {
|
|
562
562
|
return n.call(this, a, f, t);
|
|
563
563
|
}));
|
|
@@ -568,12 +568,12 @@ function Dt(t, e, n, r) {
|
|
|
568
568
|
const s = Ct(t), o = s !== t && !/* @__PURE__ */ y(t);
|
|
569
569
|
let i = n, c = !1;
|
|
570
570
|
s !== t && (o ? (c = r.length === 0, i = function(u, p, a) {
|
|
571
|
-
return c && (c = !1, u =
|
|
571
|
+
return c && (c = !1, u = O(t, u)), n.call(this, u, O(t, p), a, t);
|
|
572
572
|
}) : n.length > 3 && (i = function(u, p, a) {
|
|
573
573
|
return n.call(this, u, p, a, t);
|
|
574
574
|
}));
|
|
575
575
|
const l = s[e](i, ...r);
|
|
576
|
-
return c ?
|
|
576
|
+
return c ? O(t, l) : l;
|
|
577
577
|
}
|
|
578
578
|
function ht(t, e, n) {
|
|
579
579
|
const r = /* @__PURE__ */ h(t);
|
|
@@ -586,7 +586,7 @@ function W(t, e, n = []) {
|
|
|
586
586
|
const r = (/* @__PURE__ */ h(t))[e].apply(t, n);
|
|
587
587
|
return Rt(), lt(), r;
|
|
588
588
|
}
|
|
589
|
-
const ke = /* @__PURE__ */
|
|
589
|
+
const ke = /* @__PURE__ */ we("__proto__,__v_isRef,__isVue"), zt = new Set(
|
|
590
590
|
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(T)
|
|
591
591
|
);
|
|
592
592
|
function je(t) {
|
|
@@ -644,8 +644,8 @@ class Ke extends Ut {
|
|
|
644
644
|
let o = e[n];
|
|
645
645
|
const i = d(e) && it(n);
|
|
646
646
|
if (!this._isShallow) {
|
|
647
|
-
const u = /* @__PURE__ */
|
|
648
|
-
if (!/* @__PURE__ */ y(r) && !/* @__PURE__ */
|
|
647
|
+
const u = /* @__PURE__ */ w(o);
|
|
648
|
+
if (!/* @__PURE__ */ y(r) && !/* @__PURE__ */ w(r) && (o = /* @__PURE__ */ h(o), r = /* @__PURE__ */ h(r)), !i && /* @__PURE__ */ b(o) && !/* @__PURE__ */ b(r))
|
|
649
649
|
return u ? (process.env.NODE_ENV !== "production" && K(
|
|
650
650
|
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
651
651
|
e[n]
|
|
@@ -762,11 +762,11 @@ function Ue(t, e) {
|
|
|
762
762
|
clear: G("clear")
|
|
763
763
|
} : {
|
|
764
764
|
add(s) {
|
|
765
|
-
const o = /* @__PURE__ */ h(this), i = Y(o), c = /* @__PURE__ */ h(s), l = !e && !/* @__PURE__ */ y(s) && !/* @__PURE__ */
|
|
765
|
+
const o = /* @__PURE__ */ h(this), i = Y(o), c = /* @__PURE__ */ h(s), l = !e && !/* @__PURE__ */ y(s) && !/* @__PURE__ */ w(s) ? c : s;
|
|
766
766
|
return i.has.call(o, l) || $(s, l) && i.has.call(o, s) || $(c, l) && i.has.call(o, c) || (o.add(l), x(o, "add", l, l)), this;
|
|
767
767
|
},
|
|
768
768
|
set(s, o) {
|
|
769
|
-
!e && !/* @__PURE__ */ y(o) && !/* @__PURE__ */
|
|
769
|
+
!e && !/* @__PURE__ */ y(o) && !/* @__PURE__ */ w(o) && (o = /* @__PURE__ */ h(o));
|
|
770
770
|
const i = /* @__PURE__ */ h(this), { has: c, get: l } = Y(i);
|
|
771
771
|
let u = c.call(i, s);
|
|
772
772
|
u ? process.env.NODE_ENV !== "production" && Vt(i, c, s) : (s = /* @__PURE__ */ h(s), u = c.call(i, s));
|
|
@@ -839,7 +839,7 @@ function Ge(t) {
|
|
|
839
839
|
}
|
|
840
840
|
// @__NO_SIDE_EFFECTS__
|
|
841
841
|
function Yt(t) {
|
|
842
|
-
return /* @__PURE__ */
|
|
842
|
+
return /* @__PURE__ */ w(t) ? t : Gt(
|
|
843
843
|
t,
|
|
844
844
|
!1,
|
|
845
845
|
Le,
|
|
@@ -880,10 +880,10 @@ function Gt(t, e, n, r, s) {
|
|
|
880
880
|
}
|
|
881
881
|
// @__NO_SIDE_EFFECTS__
|
|
882
882
|
function At(t) {
|
|
883
|
-
return /* @__PURE__ */
|
|
883
|
+
return /* @__PURE__ */ w(t) ? /* @__PURE__ */ At(t.__v_raw) : !!(t && t.__v_isReactive);
|
|
884
884
|
}
|
|
885
885
|
// @__NO_SIDE_EFFECTS__
|
|
886
|
-
function
|
|
886
|
+
function w(t) {
|
|
887
887
|
return !!(t && t.__v_isReadonly);
|
|
888
888
|
}
|
|
889
889
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -923,7 +923,7 @@ class Xe {
|
|
|
923
923
|
}) : this.dep.track(), this._value;
|
|
924
924
|
}
|
|
925
925
|
set value(e) {
|
|
926
|
-
const n = this._rawValue, r = this.__v_isShallow || /* @__PURE__ */ y(e) || /* @__PURE__ */
|
|
926
|
+
const n = this._rawValue, r = this.__v_isShallow || /* @__PURE__ */ y(e) || /* @__PURE__ */ w(e);
|
|
927
927
|
e = r ? e : /* @__PURE__ */ h(e), $(e, n) && (this._rawValue = e, this._value = r ? e : C(e), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
928
928
|
target: this,
|
|
929
929
|
type: "set",
|
|
@@ -1139,7 +1139,7 @@ let v = -1;
|
|
|
1139
1139
|
const j = [];
|
|
1140
1140
|
let A = null, F = 0;
|
|
1141
1141
|
const hn = /* @__PURE__ */ Promise.resolve();
|
|
1142
|
-
let
|
|
1142
|
+
let Ot = null;
|
|
1143
1143
|
const pn = 100;
|
|
1144
1144
|
function dn(t) {
|
|
1145
1145
|
let e = v + 1, n = S.length;
|
|
@@ -1157,7 +1157,7 @@ function _n(t) {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
1159
|
function ee() {
|
|
1160
|
-
|
|
1160
|
+
Ot || (Ot = hn.then(ne));
|
|
1161
1161
|
}
|
|
1162
1162
|
function gn(t) {
|
|
1163
1163
|
d(t) ? j.push(...t) : A && t.id === -1 ? A.splice(F + 1, 0, t) : t.flags & 1 || (j.push(t), t.flags |= 1), ee();
|
|
@@ -1200,7 +1200,7 @@ function ne(t) {
|
|
|
1200
1200
|
const n = S[v];
|
|
1201
1201
|
n && (n.flags &= -2);
|
|
1202
1202
|
}
|
|
1203
|
-
v = -1, S.length = 0, bn(t),
|
|
1203
|
+
v = -1, S.length = 0, bn(t), Ot = null, (S.length || j.length) && ne(t);
|
|
1204
1204
|
}
|
|
1205
1205
|
}
|
|
1206
1206
|
function se(t, e) {
|
|
@@ -1284,13 +1284,13 @@ function re(t, e) {
|
|
|
1284
1284
|
}, 3e3)) : Q = [];
|
|
1285
1285
|
}
|
|
1286
1286
|
let st = null, En = null;
|
|
1287
|
-
const
|
|
1287
|
+
const On = (t) => t.__isTeleport;
|
|
1288
1288
|
function oe(t, e) {
|
|
1289
1289
|
t.shapeFlag & 6 && t.component ? (t.transition = e, oe(t.component.subTree, e)) : t.shapeFlag & 128 ? (t.ssContent.transition = e.clone(t.ssContent), t.ssFallback.transition = e.clone(t.ssFallback)) : t.transition = e;
|
|
1290
1290
|
}
|
|
1291
1291
|
ct().requestIdleCallback;
|
|
1292
1292
|
ct().cancelIdleCallback;
|
|
1293
|
-
const
|
|
1293
|
+
const wn = /* @__PURE__ */ Symbol.for("v-ndc"), Nn = {};
|
|
1294
1294
|
process.env.NODE_ENV !== "production" && (Nn.ownKeys = (t) => (H(
|
|
1295
1295
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
1296
1296
|
), Reflect.ownKeys(t)));
|
|
@@ -1339,7 +1339,7 @@ function $n(t, e = null, n = null, r = 0, s = null, o = t === ce ? 0 : 1, i = !1
|
|
|
1339
1339
|
}
|
|
1340
1340
|
const Dn = process.env.NODE_ENV !== "production" ? In : le;
|
|
1341
1341
|
function le(t, e = null, n = null, r = 0, s = null, o = !1) {
|
|
1342
|
-
if ((!t || t ===
|
|
1342
|
+
if ((!t || t === wn) && (process.env.NODE_ENV !== "production" && !t && H(`Invalid vnode type when creating vnode: ${t}.`), t = An), xn(t)) {
|
|
1343
1343
|
const c = rt(
|
|
1344
1344
|
t,
|
|
1345
1345
|
e,
|
|
@@ -1351,9 +1351,9 @@ function le(t, e = null, n = null, r = 0, s = null, o = !1) {
|
|
|
1351
1351
|
if (pe(t) && (t = t.__vccOpts), e) {
|
|
1352
1352
|
e = Vn(e);
|
|
1353
1353
|
let { class: c, style: l } = e;
|
|
1354
|
-
c && !R(c) && (e.class = Nt(c)), g(l) && (/* @__PURE__ */ q(l) && !d(l) && (l = M({}, l)), e.style =
|
|
1354
|
+
c && !R(c) && (e.class = Nt(c)), g(l) && (/* @__PURE__ */ q(l) && !d(l) && (l = M({}, l)), e.style = wt(l));
|
|
1355
1355
|
}
|
|
1356
|
-
const i = R(t) ? 1 : Rn(t) ? 128 :
|
|
1356
|
+
const i = R(t) ? 1 : Rn(t) ? 128 : On(t) ? 64 : g(t) ? 4 : I(t) ? 2 : 0;
|
|
1357
1357
|
return process.env.NODE_ENV !== "production" && i & 4 && /* @__PURE__ */ q(t) && (t = /* @__PURE__ */ h(t), H(
|
|
1358
1358
|
"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`.",
|
|
1359
1359
|
`
|
|
@@ -1462,7 +1462,7 @@ function Mn(...t) {
|
|
|
1462
1462
|
if (s === "class")
|
|
1463
1463
|
e.class !== r.class && (e.class = Nt([e.class, r.class]));
|
|
1464
1464
|
else if (s === "style")
|
|
1465
|
-
e.style =
|
|
1465
|
+
e.style = wt([e.style, r.style]);
|
|
1466
1466
|
else if (Ne(s)) {
|
|
1467
1467
|
const o = e[s], i = r[s];
|
|
1468
1468
|
i && o !== i && !(d(o) && o.includes(i)) ? e[s] = o ? [].concat(o, i) : i : i == null && o == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
|
|
@@ -1542,9 +1542,9 @@ function kn() {
|
|
|
1542
1542
|
["span", t, /* @__PURE__ */ y(a) ? "ShallowReactive" : "Reactive"],
|
|
1543
1543
|
"<",
|
|
1544
1544
|
c(a),
|
|
1545
|
-
`>${/* @__PURE__ */
|
|
1545
|
+
`>${/* @__PURE__ */ w(a) ? " (readonly)" : ""}`
|
|
1546
1546
|
];
|
|
1547
|
-
if (/* @__PURE__ */
|
|
1547
|
+
if (/* @__PURE__ */ w(a))
|
|
1548
1548
|
return [
|
|
1549
1549
|
"div",
|
|
1550
1550
|
{},
|
|
@@ -1655,7 +1655,7 @@ function Jn(t, e, n) {
|
|
|
1655
1655
|
);
|
|
1656
1656
|
}
|
|
1657
1657
|
function Yn(t, e, n) {
|
|
1658
|
-
const r = n ? { storeOptions: { ...n,
|
|
1658
|
+
const r = n ? { storeOptions: { ...n, enhancedStore: !0 } } : { storeOptions: { enhancedStore: !0 } };
|
|
1659
1659
|
return ge(
|
|
1660
1660
|
t,
|
|
1661
1661
|
e,
|
|
@@ -1666,13 +1666,13 @@ function ge(t, e, n) {
|
|
|
1666
1666
|
const r = {
|
|
1667
1667
|
id: t,
|
|
1668
1668
|
extensions: {}
|
|
1669
|
-
};
|
|
1670
|
-
_e.set(t, r);
|
|
1671
|
-
const
|
|
1672
|
-
return Object.assign(((...
|
|
1673
|
-
const
|
|
1674
|
-
return de.set(
|
|
1675
|
-
}),
|
|
1669
|
+
}, s = n?.storeOptions?.enhancedStore === !0;
|
|
1670
|
+
s && _e.set(t, r);
|
|
1671
|
+
const o = Mt(t, () => e(r), n);
|
|
1672
|
+
return Object.assign(((...i) => {
|
|
1673
|
+
const c = o(...i);
|
|
1674
|
+
return s && de.set(c, r), c;
|
|
1675
|
+
}), o);
|
|
1676
1676
|
}
|
|
1677
1677
|
function Kn(t, e, n) {
|
|
1678
1678
|
return n && (e = { ...e, ...n ?? {} }), Mt(t, e);
|
|
@@ -1737,7 +1737,7 @@ class Qn extends Pt {
|
|
|
1737
1737
|
this._storeSubscribe = e;
|
|
1738
1738
|
}
|
|
1739
1739
|
constructor(e, n, r = !1, s) {
|
|
1740
|
-
if (super(r, s), this._options = n.storeOptions, this._store = e, this._options?.
|
|
1740
|
+
if (super(r, s), this._options = n.storeOptions, this._store = e, this._options?.enhancedStore) {
|
|
1741
1741
|
const o = Wn(this.store);
|
|
1742
1742
|
o && Un(o, this.store);
|
|
1743
1743
|
}
|
|
@@ -1794,14 +1794,14 @@ class Qn extends Pt {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
}
|
|
1796
1796
|
function Xn(t, e) {
|
|
1797
|
-
const n = new
|
|
1797
|
+
const n = new Oe(t, e);
|
|
1798
1798
|
return n.plugin.bind(n);
|
|
1799
1799
|
}
|
|
1800
1800
|
export {
|
|
1801
1801
|
Se as CustomConsole,
|
|
1802
1802
|
Ft as PLUGIN_NAME,
|
|
1803
1803
|
Bn as PluginSubscriber,
|
|
1804
|
-
|
|
1804
|
+
Oe as PluginSubscription,
|
|
1805
1805
|
Qn as Store,
|
|
1806
1806
|
Xn as createPlugin,
|
|
1807
1807
|
Jn as defineAStore,
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
`),s]);else{const i=[`[Vue warn]: ${t}`,...e];s.length&&i.push(`
|
|
3
3
|
`,...hn(s)),console.warn(...i)}nt(),At=!1}function fn(){let t=P[P.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const r=t.component&&t.component.parent;t=r&&r.vnode}return e}function hn(t){const e=[];return t.forEach((n,r)=>{e.push(...r===0?[]:[`
|
|
4
4
|
`],...pn(n))}),e}function pn({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",r=t.component?t.component.parent==null:!1,s=` at <${_e(t.component,t.type,r)}`,i=">"+n;return t.props?[s,...dn(t.props),i]:[s+i]}function dn(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(r=>{e.push(...te(r,t[r]))}),n.length>3&&e.push(" ..."),e}function te(t,e,n){return v(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:m(e)?(e=te(t,h(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):I(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=h(e),n?e:[`${t}=`,e])}const ee={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function It(t,e,n,r){try{return r?t(...r):t()}catch(s){ne(s,e,n)}}function ne(t,e,n,r=!0){const s=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||dt;if(e){let c=e.parent;const u=e.proxy,l=process.env.NODE_ENV!=="production"?ee[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;c;){const p=c.ec;if(p){for(let a=0;a<p.length;a++)if(p[a](t,u,l)===!1)return}c=c.parent}if(i){et(),It(i,null,10,[t,u,l]),nt();return}}_n(t,n,s,r,o)}function _n(t,e,n,r=!0,s=!1){if(process.env.NODE_ENV!=="production"){const i=ee[e];if(n&&un(n),K(`Unhandled error${i?` during execution of ${i}`:""}`),n&&ln(),r)throw t;console.error(t)}else{if(s)throw t;console.error(t)}}const y=[];let A=-1;const H=[];let D=null,L=0;const gn=Promise.resolve();let $t=null;const bn=100;function mn(t){let e=A+1,n=y.length;for(;e<n;){const r=e+n>>>1,s=y[r],i=Y(s);i<t||i===t&&s.flags&2?e=r+1:n=r}return e}function Sn(t){if(!(t.flags&1)){const e=Y(t),n=y[y.length-1];!n||!(t.flags&2)&&e>=Y(n)?y.push(t):y.splice(mn(e),0,t),t.flags|=1,se()}}function se(){$t||($t=gn.then(re))}function yn(t){_(t)?H.push(...t):D&&t.id===-1?D.splice(L+1,0,t):t.flags&1||(H.push(t),t.flags|=1),se()}function En(t){if(H.length){const e=[...new Set(H)].sort((n,r)=>Y(n)-Y(r));if(H.length=0,D){D.push(...e);return}for(D=e,process.env.NODE_ENV!=="production"&&(t=t||new Map),L=0;L<D.length;L++){const n=D[L];process.env.NODE_ENV!=="production"&&ie(t,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}D=null,L=0}}const Y=t=>t.id==null?t.flags&2?-1:1/0:t.id;function re(t){process.env.NODE_ENV!=="production"&&(t=t||new Map);const e=process.env.NODE_ENV!=="production"?n=>ie(t,n):Ft;try{for(A=0;A<y.length;A++){const n=y[A];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&e(n))continue;n.flags&4&&(n.flags&=-2),It(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;A<y.length;A++){const n=y[A];n&&(n.flags&=-2)}A=-1,y.length=0,En(t),$t=null,(y.length||H.length)&&re(t)}}function ie(t,e){const n=t.get(e)||0;if(n>bn){const r=e.i,s=r&&de(r.type);return ne(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return t.set(e,n+1),!1}const Dt=new Map;process.env.NODE_ENV!=="production"&&(Z().__VUE_HMR_RUNTIME__={createRecord:Vt(On),rerender:Vt(wn),reload:Vt(Nn)});const ot=new Map;function On(t,e){return ot.has(t)?!1:(ot.set(t,{initialDef:ct(e),instances:new Set}),!0)}function ct(t){return ge(t)?t.__vccOpts:t}function wn(t,e){const n=ot.get(t);n&&(n.initialDef.render=e,[...n.instances].forEach(r=>{e&&(r.render=e,ct(r.type).render=e),r.renderCache=[],r.job.flags&8||r.update()}))}function Nn(t,e){const n=ot.get(t);if(!n)return;e=ct(e),oe(n.initialDef,e);const r=[...n.instances];for(let s=0;s<r.length;s++){const i=r[s],o=ct(i.type);let c=Dt.get(o);c||(o!==n.initialDef&&oe(o,e),Dt.set(o,c=new Set)),c.add(i),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(c.add(i),i.ceReload(e.styles),c.delete(i)):i.parent?Sn(()=>{i.job.flags&8||(i.parent.update(),c.delete(i))}):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),i.root.ce&&i!==i.root&&i.root.ce._removeChildStyle(o)}yn(()=>{Dt.clear()})}function oe(t,e){V(t,e);for(const n in t)n!=="__file"&&!(n in e)&&delete t[n]}function Vt(t){return(e,n)=>{try{return t(e,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let W,at=[];function ce(t,e){var n,r;W=t,W?(W.enabled=!0,at.forEach(({event:s,args:i})=>W.emit(s,...i)),at=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{ce(i,e)}),setTimeout(()=>{W||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,at=[])},3e3)):at=[]}let ut=null,vn=null;const Rn=t=>t.__isTeleport;function ae(t,e){t.shapeFlag&6&&t.component?(t.transition=e,ae(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}Z().requestIdleCallback,Z().cancelIdleCallback;const Cn=Symbol.for("v-ndc"),An={};process.env.NODE_ENV!=="production"&&(An.ownKeys=t=>(K("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(t)));const In={},ue=t=>Object.getPrototypeOf(t)===In,$n=t=>t.__isSuspense,le=Symbol.for("v-fgt"),Dn=Symbol.for("v-txt"),Vn=Symbol.for("v-cmt");function xn(t){return t?t.__v_isVNode===!0:!1}const Tn=(...t)=>he(...t),fe=({key:t})=>t??null,lt=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?v(t)||m(t)||I(t)?{i:ut,r:t,k:e,f:!!n}:t:null);function Mn(t,e=null,n=null,r=0,s=null,i=t===le?0:1,o=!1,c=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&fe(e),ref:e&<(e),scopeId:vn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ut};return c?(ht(u,n),i&128&&t.normalize(u)):n&&(u.shapeFlag|=v(n)?8:16),process.env.NODE_ENV!=="production"&&u.key!==u.key&&K("VNode created with invalid key (NaN). VNode type:",u.type),u}const Pn=process.env.NODE_ENV!=="production"?Tn:he;function he(t,e=null,n=null,r=0,s=null,i=!1){if((!t||t===Cn)&&(process.env.NODE_ENV!=="production"&&!t&&K(`Invalid vnode type when creating vnode: ${t}.`),t=Vn),xn(t)){const c=ft(t,e,!0);return n&&ht(c,n),c.patchFlag=-2,c}if(ge(t)&&(t=t.__vccOpts),e){e=Fn(e);let{class:c,style:u}=e;c&&!v(c)&&(e.class=bt(c)),b(u)&&(B(u)&&!_(u)&&(u=V({},u)),e.style=gt(u))}const o=v(t)?1:$n(t)?128:Rn(t)?64:b(t)?4:I(t)?2:0;return process.env.NODE_ENV!=="production"&&o&4&&B(t)&&(t=h(t),K("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`.",`
|
|
5
|
-
Component that was made reactive: `,t)),Mn(t,e,n,r,s,o,i,!0)}function Fn(t){return t?B(t)||ue(t)?V({},t):t:null}function ft(t,e,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:c,transition:u}=t,l=e?jn(s||{},e):s,p={__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&fe(l),ref:e&&e.ref?n&&i?_(i)?i.concat(lt(e)):[i,lt(e)]:lt(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:process.env.NODE_ENV!=="production"&&o===-1&&_(c)?c.map(pe):c,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==le?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:u,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ft(t.ssContent),ssFallback:t.ssFallback&&ft(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return u&&r&&ae(p,u.clone(p)),p}function pe(t){const e=ft(t);return _(t.children)&&(e.children=t.children.map(pe)),e}function kn(t=" ",e=0){return Pn(Dn,null,t,e)}function ht(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(_(e))n=16;else if(typeof e=="object")if(r&65){const s=e.default;s&&(s._c&&(s._d=!1),ht(t,s()),s._c&&(s._d=!0));return}else n=32,!e._&&!ue(e)&&(e._ctx=ut);else if(I(e)){if(r&65){ht(t,{default:e});return}e={default:e,_ctx:ut},n=32}else e=String(e),r&64?(n=16,e=[kn(e)]):n=8;t.children=e,t.shapeFlag|=n}function jn(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const s in r)if(s==="class")e.class!==r.class&&(e.class=bt([e.class,r.class]));else if(s==="style")e.style=gt([e.style,r.style]);else if(Ie(s)){const i=e[s],o=r[s];o&&i!==o&&!(_(i)&&i.includes(o))?e[s]=i?[].concat(i,o):o:o==null&&i==null&&!$e(s)&&(e[s]=o)}else s!==""&&(e[s]=r[s])}return e}{const t=Z(),e=(n,r)=>{let s;return(s=t[n])||(s=t[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};e("__VUE_INSTANCE_SETTERS__",n=>n),e("__VUE_SSR_SETTERS__",n=>n)}process.env.NODE_ENV;const Kn=/(?:^|[-_])\w/g,Hn=t=>t.replace(Kn,e=>e.toUpperCase()).replace(/[-_]/g,"");function de(t,e=!0){return I(t)?t.displayName||t.name:t.name||e&&t.__name}function _e(t,e,n=!1){let r=de(e);if(!r&&e.__file){const s=e.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&t){const s=i=>{for(const o in i)if(i[o]===e)return o};r=s(t.components)||t.parent&&s(t.parent.type.components)||s(t.appContext.components)}return r?Hn(r):n?"App":"Anonymous"}function ge(t){return I(t)&&"__vccOpts"in t}function Ln(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const t={style:"color:#3ba776"},e={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},s={__vue_custom_formatter:!0,header(a){if(!b(a))return null;if(a.__isVue)return["div",t,"VueInstance"];if(m(a)){et();const f=a.value;return nt(),["div",{},["span",t,p(a)],"<",c(f),">"]}else{if(Ct(a))return["div",{},["span",t,S(a)?"ShallowReactive":"Reactive"],"<",c(a),`>${w(a)?" (readonly)":""}`];if(w(a))return["div",{},["span",t,S(a)?"ShallowReadonly":"Readonly"],"<",c(a),">"]}return null},hasBody(a){return a&&a.__isVue},body(a){if(a&&a.__isVue)return["div",{},...i(a.$)]}};function i(a){const f=[];a.type.props&&a.props&&f.push(o("props",h(a.props))),a.setupState!==dt&&f.push(o("setup",a.setupState)),a.data!==dt&&f.push(o("data",h(a.data)));const E=u(a,"computed");E&&f.push(o("computed",E));const N=u(a,"inject");return N&&f.push(o("injected",N)),f.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:a}]]),f}function o(a,f){return f=V({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},a],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(E=>["div",{},["span",r,E+": "],c(f[E],!1)])]]:["span",{}]}function c(a,f=!0){return typeof a=="number"?["span",e,a]:typeof a=="string"?["span",n,JSON.stringify(a)]:typeof a=="boolean"?["span",r,a]:b(a)?["object",{object:f?h(a):a}]:["span",n,String(a)]}function u(a,f){const E=a.type;if(I(E))return;const N={};for(const G in a.ctx)l(E,G,f)&&(N[G]=a.ctx[G]);return N}function l(a,f,E){const N=a[E];if(_(N)&&N.includes(f)||b(N)&&f in N||a.extends&&l(a.extends,f,E)||a.mixins&&a.mixins.some(G=>l(G,f,E)))return!0}function p(a){return S(a)?"ShallowRef":a.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;function Wn(){Ln()}process.env.NODE_ENV!=="production"&&Wn();const be=new WeakMap,me=new Map;function zn(t,e,n){const r=n?{storeOptions:n}:{};return typeof e=="function"?Se(t,e,r):qn(t,e,r)}function Un(t,e,n){const r=n?{storeOptions:{...n,
|
|
5
|
+
Component that was made reactive: `,t)),Mn(t,e,n,r,s,o,i,!0)}function Fn(t){return t?B(t)||ue(t)?V({},t):t:null}function ft(t,e,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:c,transition:u}=t,l=e?jn(s||{},e):s,p={__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&fe(l),ref:e&&e.ref?n&&i?_(i)?i.concat(lt(e)):[i,lt(e)]:lt(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:process.env.NODE_ENV!=="production"&&o===-1&&_(c)?c.map(pe):c,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==le?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:u,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ft(t.ssContent),ssFallback:t.ssFallback&&ft(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return u&&r&&ae(p,u.clone(p)),p}function pe(t){const e=ft(t);return _(t.children)&&(e.children=t.children.map(pe)),e}function kn(t=" ",e=0){return Pn(Dn,null,t,e)}function ht(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(_(e))n=16;else if(typeof e=="object")if(r&65){const s=e.default;s&&(s._c&&(s._d=!1),ht(t,s()),s._c&&(s._d=!0));return}else n=32,!e._&&!ue(e)&&(e._ctx=ut);else if(I(e)){if(r&65){ht(t,{default:e});return}e={default:e,_ctx:ut},n=32}else e=String(e),r&64?(n=16,e=[kn(e)]):n=8;t.children=e,t.shapeFlag|=n}function jn(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const s in r)if(s==="class")e.class!==r.class&&(e.class=bt([e.class,r.class]));else if(s==="style")e.style=gt([e.style,r.style]);else if(Ie(s)){const i=e[s],o=r[s];o&&i!==o&&!(_(i)&&i.includes(o))?e[s]=i?[].concat(i,o):o:o==null&&i==null&&!$e(s)&&(e[s]=o)}else s!==""&&(e[s]=r[s])}return e}{const t=Z(),e=(n,r)=>{let s;return(s=t[n])||(s=t[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};e("__VUE_INSTANCE_SETTERS__",n=>n),e("__VUE_SSR_SETTERS__",n=>n)}process.env.NODE_ENV;const Kn=/(?:^|[-_])\w/g,Hn=t=>t.replace(Kn,e=>e.toUpperCase()).replace(/[-_]/g,"");function de(t,e=!0){return I(t)?t.displayName||t.name:t.name||e&&t.__name}function _e(t,e,n=!1){let r=de(e);if(!r&&e.__file){const s=e.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&t){const s=i=>{for(const o in i)if(i[o]===e)return o};r=s(t.components)||t.parent&&s(t.parent.type.components)||s(t.appContext.components)}return r?Hn(r):n?"App":"Anonymous"}function ge(t){return I(t)&&"__vccOpts"in t}function Ln(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const t={style:"color:#3ba776"},e={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},s={__vue_custom_formatter:!0,header(a){if(!b(a))return null;if(a.__isVue)return["div",t,"VueInstance"];if(m(a)){et();const f=a.value;return nt(),["div",{},["span",t,p(a)],"<",c(f),">"]}else{if(Ct(a))return["div",{},["span",t,S(a)?"ShallowReactive":"Reactive"],"<",c(a),`>${w(a)?" (readonly)":""}`];if(w(a))return["div",{},["span",t,S(a)?"ShallowReadonly":"Readonly"],"<",c(a),">"]}return null},hasBody(a){return a&&a.__isVue},body(a){if(a&&a.__isVue)return["div",{},...i(a.$)]}};function i(a){const f=[];a.type.props&&a.props&&f.push(o("props",h(a.props))),a.setupState!==dt&&f.push(o("setup",a.setupState)),a.data!==dt&&f.push(o("data",h(a.data)));const E=u(a,"computed");E&&f.push(o("computed",E));const N=u(a,"inject");return N&&f.push(o("injected",N)),f.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:a}]]),f}function o(a,f){return f=V({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},a],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(E=>["div",{},["span",r,E+": "],c(f[E],!1)])]]:["span",{}]}function c(a,f=!0){return typeof a=="number"?["span",e,a]:typeof a=="string"?["span",n,JSON.stringify(a)]:typeof a=="boolean"?["span",r,a]:b(a)?["object",{object:f?h(a):a}]:["span",n,String(a)]}function u(a,f){const E=a.type;if(I(E))return;const N={};for(const G in a.ctx)l(E,G,f)&&(N[G]=a.ctx[G]);return N}function l(a,f,E){const N=a[E];if(_(N)&&N.includes(f)||b(N)&&f in N||a.extends&&l(a.extends,f,E)||a.mixins&&a.mixins.some(G=>l(G,f,E)))return!0}function p(a){return S(a)?"ShallowRef":a.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;function Wn(){Ln()}process.env.NODE_ENV!=="production"&&Wn();const be=new WeakMap,me=new Map;function zn(t,e,n){const r=n?{storeOptions:n}:{};return typeof e=="function"?Se(t,e,r):qn(t,e,r)}function Un(t,e,n){const r=n?{storeOptions:{...n,enhancedStore:!0}}:{storeOptions:{enhancedStore:!0}};return Se(t,e,r)}function Se(t,e,n){const r={id:t,extensions:{}},s=n?.storeOptions?.enhancedStore===!0;s&&me.set(t,r);const i=F.defineStore(t,()=>e(r),n);return Object.assign(((...o)=>{const c=i(...o);return s&&be.set(c,r),c}),i)}function qn(t,e,n){return n&&(e={...e,...n??{}}),F.defineStore(t,e)}const Bn=new Set(["_","$"]);function Jn(t){return Bn.has(t[0])}function ye(t){return be.get(t)??(typeof t?.$id=="string"?me.get(t.$id):void 0)}function Ee(t){const e=t.extensions.enhancedStore??t.extensions.extending;if(!e)throw new Error(`${t.id}Store - getEnhancedStore - Error: enhanced store is required`);return e}function Oe(t,e){t.extensions.enhancedStore=e,t.extensions.extending=e}function Yn(t){return Ee(t)}class Gn extends xt{_className="Store";_onAction;_options;_store;_subscriptions={};_storeSubscribe;static _requiredKeys;get onAction(){if(this._onAction)return()=>({store:this.store,callback:this._onAction})}set onAction(e){this._onAction=e}get options(){return this._options}get state(){return this._store.$state}set state(e){this._store.$state=e}get store(){return this._store}get storeSubscribe(){if(this._storeSubscribe)return()=>({store:this.store,callback:this._storeSubscribe})}set storeSubscribe(e){this._storeSubscribe=e}constructor(e,n,r=!1,s){if(super(r,s),this._options=n.storeOptions,this._store=e,this._options?.enhancedStore){const i=ye(this.store);i&&Oe(i,this.store)}}addToState(e,n){this.isOptionApi()||n?.value||(n=Zt(n)),this.state[e]=n,this.store[e]=cn(this.state,e)}addSubscription(e,n,r){this._subscriptions[e]={subscription:n,...r??{}}}static customizeStore(e,n,r=!1,s){if(n.storeOptions&&this.hasRequiredKeys(n.storeOptions))return new this(e,n,r,s)}hasDeniedFirstChar(e){return Jn(e[0])}static hasRequiredKeys(e){return this._requiredKeys!==void 0&&this._requiredKeys?.every(n=>!!e[n])}getOption(e){return this.options&&this.options[e]}getStatePropertyValue(e){return this.getValue(this.state[e])}getSubscriptions(){if(!Q(this._subscriptions))return this._subscriptions}getValue(e){return e?.__v_isRef?e.value:e}isOptionApi(){return this.store._isOptionsAPI}stateHas(e){return this.state.hasOwnProperty(e)}storeHas(e){return this.store.hasOwnProperty(e)}}function Qn(t,e){const n=new Pt(t,e);return n.plugin.bind(n)}d.CustomConsole=Tt,d.PLUGIN_NAME=pt,d.PluginSubscriber=we,d.PluginSubscription=Pt,d.Store=Gn,d.createPlugin=Qn,d.defineAStore=zn,d.defineAStoreCtx=Un,d.getDefineAStoreSetupContext=ye,d.getEnhancedStore=Ee,d.getExtendingStore=Yn,d.isEmpty=Q,d.setEnhancedStore=Oe,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pinia-plugin-subscription",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Pinia plugin for Vue.js that helps building Pinia plugins by centralizing subscriber registration and providing a Store base class for store helpers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|