@duxweb/dvha-naiveui 0.0.4 → 0.0.6

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.
@@ -0,0 +1,875 @@
1
+ import { isFunction as q, extend as X, hasChanged as M, isSymbol as L, isObject as W, EMPTY_OBJ as Pe, toRawType as he, isArray as x, hasOwn as Z, isIntegerKey as ie, isMap as O, makeMap as Ke, capitalize as je, NOOP as Le, isSet as We, isPlainObject as He } from "../../shared/dist/shared.esm-bundler.js";
2
+ /**
3
+ * @vue/reactivity v3.5.14
4
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
+ * @license MIT
6
+ **/
7
+ function D(e, ...t) {
8
+ console.warn(`[Vue warn] ${e}`, ...t);
9
+ }
10
+ let l;
11
+ const J = /* @__PURE__ */ new WeakSet();
12
+ class Ce {
13
+ constructor(t) {
14
+ this.fn = t, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0;
15
+ }
16
+ pause() {
17
+ this.flags |= 64;
18
+ }
19
+ resume() {
20
+ this.flags & 64 && (this.flags &= -65, J.has(this) && (J.delete(this), this.trigger()));
21
+ }
22
+ /**
23
+ * @internal
24
+ */
25
+ notify() {
26
+ this.flags & 2 && !(this.flags & 32) || this.flags & 8 || _e(this);
27
+ }
28
+ run() {
29
+ if (!(this.flags & 1))
30
+ return this.fn();
31
+ this.flags |= 2, le(this), ge(this);
32
+ const t = l, n = b;
33
+ l = this, b = !0;
34
+ try {
35
+ return this.fn();
36
+ } finally {
37
+ process.env.NODE_ENV !== "production" && l !== this && D(
38
+ "Active effect was not restored correctly - this is likely a Vue internal bug."
39
+ ), be(this), l = t, b = n, this.flags &= -3;
40
+ }
41
+ }
42
+ stop() {
43
+ if (this.flags & 1) {
44
+ for (let t = this.deps; t; t = t.nextDep)
45
+ ce(t);
46
+ this.deps = this.depsTail = void 0, le(this), this.onStop && this.onStop(), this.flags &= -2;
47
+ }
48
+ }
49
+ trigger() {
50
+ this.flags & 64 ? J.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
51
+ }
52
+ /**
53
+ * @internal
54
+ */
55
+ runIfDirty() {
56
+ k(this) && this.run();
57
+ }
58
+ get dirty() {
59
+ return k(this);
60
+ }
61
+ }
62
+ let ve = 0, A, P;
63
+ function _e(e, t = !1) {
64
+ if (e.flags |= 8, t) {
65
+ e.next = P, P = e;
66
+ return;
67
+ }
68
+ e.next = A, A = e;
69
+ }
70
+ function re() {
71
+ ve++;
72
+ }
73
+ function oe() {
74
+ if (--ve > 0)
75
+ return;
76
+ if (P) {
77
+ let t = P;
78
+ for (P = void 0; t; ) {
79
+ const n = t.next;
80
+ t.next = void 0, t.flags &= -9, t = n;
81
+ }
82
+ }
83
+ let e;
84
+ for (; A; ) {
85
+ let t = A;
86
+ for (A = void 0; t; ) {
87
+ const n = t.next;
88
+ if (t.next = void 0, t.flags &= -9, t.flags & 1)
89
+ try {
90
+ t.trigger();
91
+ } catch (i) {
92
+ e || (e = i);
93
+ }
94
+ t = n;
95
+ }
96
+ }
97
+ if (e) throw e;
98
+ }
99
+ function ge(e) {
100
+ for (let t = e.deps; t; t = t.nextDep)
101
+ t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
102
+ }
103
+ function be(e) {
104
+ let t, n = e.depsTail, i = n;
105
+ for (; i; ) {
106
+ const s = i.prevDep;
107
+ i.version === -1 ? (i === n && (n = s), ce(i), $e(i)) : t = i, i.dep.activeLink = i.prevActiveLink, i.prevActiveLink = void 0, i = s;
108
+ }
109
+ e.deps = t, e.depsTail = n;
110
+ }
111
+ function k(e) {
112
+ for (let t = e.deps; t; t = t.nextDep)
113
+ if (t.dep.version !== t.version || t.dep.computed && (we(t.dep.computed) || t.dep.version !== t.version))
114
+ return !0;
115
+ return !!e._dirty;
116
+ }
117
+ function we(e) {
118
+ if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === K) || (e.globalVersion = K, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !k(e))))
119
+ return;
120
+ e.flags |= 2;
121
+ const t = e.dep, n = l, i = b;
122
+ l = e, b = !0;
123
+ try {
124
+ ge(e);
125
+ const s = e.fn(e._value);
126
+ (t.version === 0 || M(s, e._value)) && (e.flags |= 128, e._value = s, t.version++);
127
+ } catch (s) {
128
+ throw t.version++, s;
129
+ } finally {
130
+ l = n, b = i, be(e), e.flags &= -3;
131
+ }
132
+ }
133
+ function ce(e, t = !1) {
134
+ const { dep: n, prevSub: i, nextSub: s } = e;
135
+ if (i && (i.nextSub = s, e.prevSub = void 0), s && (s.prevSub = i, e.nextSub = void 0), process.env.NODE_ENV !== "production" && n.subsHead === e && (n.subsHead = s), n.subs === e && (n.subs = i, !i && n.computed)) {
136
+ n.computed.flags &= -5;
137
+ for (let r = n.computed.deps; r; r = r.nextDep)
138
+ ce(r, !0);
139
+ }
140
+ !t && !--n.sc && n.map && n.map.delete(n.key);
141
+ }
142
+ function $e(e) {
143
+ const { prevDep: t, nextDep: n } = e;
144
+ t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
145
+ }
146
+ let b = !0;
147
+ const Ee = [];
148
+ function Se() {
149
+ Ee.push(b), b = !1;
150
+ }
151
+ function De() {
152
+ const e = Ee.pop();
153
+ b = e === void 0 ? !0 : e;
154
+ }
155
+ function le(e) {
156
+ const { cleanup: t } = e;
157
+ if (e.cleanup = void 0, t) {
158
+ const n = l;
159
+ l = void 0;
160
+ try {
161
+ t();
162
+ } finally {
163
+ l = n;
164
+ }
165
+ }
166
+ }
167
+ let K = 0;
168
+ class Ye {
169
+ constructor(t, n) {
170
+ this.sub = t, this.dep = n, this.version = n.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
171
+ }
172
+ }
173
+ class Ne {
174
+ constructor(t) {
175
+ this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
176
+ }
177
+ track(t) {
178
+ if (!l || !b || l === this.computed)
179
+ return;
180
+ let n = this.activeLink;
181
+ if (n === void 0 || n.sub !== l)
182
+ n = this.activeLink = new Ye(l, this), l.deps ? (n.prevDep = l.depsTail, l.depsTail.nextDep = n, l.depsTail = n) : l.deps = l.depsTail = n, xe(n);
183
+ else if (n.version === -1 && (n.version = this.version, n.nextDep)) {
184
+ const i = n.nextDep;
185
+ i.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = i), n.prevDep = l.depsTail, n.nextDep = void 0, l.depsTail.nextDep = n, l.depsTail = n, l.deps === n && (l.deps = i);
186
+ }
187
+ return process.env.NODE_ENV !== "production" && l.onTrack && l.onTrack(
188
+ X(
189
+ {
190
+ effect: l
191
+ },
192
+ t
193
+ )
194
+ ), n;
195
+ }
196
+ trigger(t) {
197
+ this.version++, K++, this.notify(t);
198
+ }
199
+ notify(t) {
200
+ re();
201
+ try {
202
+ if (process.env.NODE_ENV !== "production")
203
+ for (let n = this.subsHead; n; n = n.nextSub)
204
+ n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
205
+ X(
206
+ {
207
+ effect: n.sub
208
+ },
209
+ t
210
+ )
211
+ );
212
+ for (let n = this.subs; n; n = n.prevSub)
213
+ n.sub.notify() && n.sub.dep.notify();
214
+ } finally {
215
+ oe();
216
+ }
217
+ }
218
+ }
219
+ function xe(e) {
220
+ if (e.dep.sc++, e.sub.flags & 4) {
221
+ const t = e.dep.computed;
222
+ if (t && !e.dep.subs) {
223
+ t.flags |= 20;
224
+ for (let i = t.deps; i; i = i.nextDep)
225
+ xe(i);
226
+ }
227
+ const n = e.dep.subs;
228
+ n !== e && (e.prevSub = n, n && (n.nextSub = e)), process.env.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;
229
+ }
230
+ }
231
+ const ee = /* @__PURE__ */ new WeakMap(), m = Symbol(
232
+ process.env.NODE_ENV !== "production" ? "Object iterate" : ""
233
+ ), te = Symbol(
234
+ process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
235
+ ), j = Symbol(
236
+ process.env.NODE_ENV !== "production" ? "Array iterate" : ""
237
+ );
238
+ function _(e, t, n) {
239
+ if (b && l) {
240
+ let i = ee.get(e);
241
+ i || ee.set(e, i = /* @__PURE__ */ new Map());
242
+ let s = i.get(n);
243
+ s || (i.set(n, s = new Ne()), s.map = i, s.key = n), process.env.NODE_ENV !== "production" ? s.track({
244
+ target: e,
245
+ type: t,
246
+ key: n
247
+ }) : s.track();
248
+ }
249
+ }
250
+ function N(e, t, n, i, s, r) {
251
+ const o = ee.get(e);
252
+ if (!o) {
253
+ K++;
254
+ return;
255
+ }
256
+ const c = (a) => {
257
+ a && (process.env.NODE_ENV !== "production" ? a.trigger({
258
+ target: e,
259
+ type: t,
260
+ key: n,
261
+ newValue: i,
262
+ oldValue: s,
263
+ oldTarget: r
264
+ }) : a.trigger());
265
+ };
266
+ if (re(), t === "clear")
267
+ o.forEach(c);
268
+ else {
269
+ const a = x(e), d = a && ie(n);
270
+ if (a && n === "length") {
271
+ const v = Number(i);
272
+ o.forEach((f, h) => {
273
+ (h === "length" || h === j || !L(h) && h >= v) && c(f);
274
+ });
275
+ } else
276
+ switch ((n !== void 0 || o.has(void 0)) && c(o.get(n)), d && c(o.get(j)), t) {
277
+ case "add":
278
+ a ? d && c(o.get("length")) : (c(o.get(m)), O(e) && c(o.get(te)));
279
+ break;
280
+ case "delete":
281
+ a || (c(o.get(m)), O(e) && c(o.get(te)));
282
+ break;
283
+ case "set":
284
+ O(e) && c(o.get(m));
285
+ break;
286
+ }
287
+ }
288
+ oe();
289
+ }
290
+ function R(e) {
291
+ const t = p(e);
292
+ return t === e ? t : (_(t, "iterate", j), w(e) ? t : t.map(g));
293
+ }
294
+ function ae(e) {
295
+ return _(e = p(e), "iterate", j), e;
296
+ }
297
+ const ze = {
298
+ __proto__: null,
299
+ [Symbol.iterator]() {
300
+ return Q(this, Symbol.iterator, g);
301
+ },
302
+ concat(...e) {
303
+ return R(this).concat(
304
+ ...e.map((t) => x(t) ? R(t) : t)
305
+ );
306
+ },
307
+ entries() {
308
+ return Q(this, "entries", (e) => (e[1] = g(e[1]), e));
309
+ },
310
+ every(e, t) {
311
+ return E(this, "every", e, t, void 0, arguments);
312
+ },
313
+ filter(e, t) {
314
+ return E(this, "filter", e, t, (n) => n.map(g), arguments);
315
+ },
316
+ find(e, t) {
317
+ return E(this, "find", e, t, g, arguments);
318
+ },
319
+ findIndex(e, t) {
320
+ return E(this, "findIndex", e, t, void 0, arguments);
321
+ },
322
+ findLast(e, t) {
323
+ return E(this, "findLast", e, t, g, arguments);
324
+ },
325
+ findLastIndex(e, t) {
326
+ return E(this, "findLastIndex", e, t, void 0, arguments);
327
+ },
328
+ // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
329
+ forEach(e, t) {
330
+ return E(this, "forEach", e, t, void 0, arguments);
331
+ },
332
+ includes(...e) {
333
+ return U(this, "includes", e);
334
+ },
335
+ indexOf(...e) {
336
+ return U(this, "indexOf", e);
337
+ },
338
+ join(e) {
339
+ return R(this).join(e);
340
+ },
341
+ // keys() iterator only reads `length`, no optimisation required
342
+ lastIndexOf(...e) {
343
+ return U(this, "lastIndexOf", e);
344
+ },
345
+ map(e, t) {
346
+ return E(this, "map", e, t, void 0, arguments);
347
+ },
348
+ pop() {
349
+ return I(this, "pop");
350
+ },
351
+ push(...e) {
352
+ return I(this, "push", e);
353
+ },
354
+ reduce(e, ...t) {
355
+ return ue(this, "reduce", e, t);
356
+ },
357
+ reduceRight(e, ...t) {
358
+ return ue(this, "reduceRight", e, t);
359
+ },
360
+ shift() {
361
+ return I(this, "shift");
362
+ },
363
+ // slice could use ARRAY_ITERATE but also seems to beg for range tracking
364
+ some(e, t) {
365
+ return E(this, "some", e, t, void 0, arguments);
366
+ },
367
+ splice(...e) {
368
+ return I(this, "splice", e);
369
+ },
370
+ toReversed() {
371
+ return R(this).toReversed();
372
+ },
373
+ toSorted(e) {
374
+ return R(this).toSorted(e);
375
+ },
376
+ toSpliced(...e) {
377
+ return R(this).toSpliced(...e);
378
+ },
379
+ unshift(...e) {
380
+ return I(this, "unshift", e);
381
+ },
382
+ values() {
383
+ return Q(this, "values", g);
384
+ }
385
+ };
386
+ function Q(e, t, n) {
387
+ const i = ae(e), s = i[t]();
388
+ return i !== e && !w(e) && (s._next = s.next, s.next = () => {
389
+ const r = s._next();
390
+ return r.value && (r.value = n(r.value)), r;
391
+ }), s;
392
+ }
393
+ const Be = Array.prototype;
394
+ function E(e, t, n, i, s, r) {
395
+ const o = ae(e), c = o !== e && !w(e), a = o[t];
396
+ if (a !== Be[t]) {
397
+ const f = a.apply(e, r);
398
+ return c ? g(f) : f;
399
+ }
400
+ let d = n;
401
+ o !== e && (c ? d = function(f, h) {
402
+ return n.call(this, g(f), h, e);
403
+ } : n.length > 2 && (d = function(f, h) {
404
+ return n.call(this, f, h, e);
405
+ }));
406
+ const v = a.call(o, d, i);
407
+ return c && s ? s(v) : v;
408
+ }
409
+ function ue(e, t, n, i) {
410
+ const s = ae(e);
411
+ let r = n;
412
+ return s !== e && (w(e) ? n.length > 3 && (r = function(o, c, a) {
413
+ return n.call(this, o, c, a, e);
414
+ }) : r = function(o, c, a) {
415
+ return n.call(this, o, g(c), a, e);
416
+ }), s[t](r, ...i);
417
+ }
418
+ function U(e, t, n) {
419
+ const i = p(e);
420
+ _(i, "iterate", j);
421
+ const s = i[t](...n);
422
+ return (s === -1 || s === !1) && rt(n[0]) ? (n[0] = p(n[0]), i[t](...n)) : s;
423
+ }
424
+ function I(e, t, n = []) {
425
+ Se(), re();
426
+ const i = p(e)[t].apply(e, n);
427
+ return oe(), De(), i;
428
+ }
429
+ const Fe = /* @__PURE__ */ Ke("__proto__,__v_isRef,__isVue"), ye = new Set(
430
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(L)
431
+ );
432
+ function Ge(e) {
433
+ L(e) || (e = String(e));
434
+ const t = p(this);
435
+ return _(t, "has", e), t.hasOwnProperty(e);
436
+ }
437
+ class me {
438
+ constructor(t = !1, n = !1) {
439
+ this._isReadonly = t, this._isShallow = n;
440
+ }
441
+ get(t, n, i) {
442
+ if (n === "__v_skip") return t.__v_skip;
443
+ const s = this._isReadonly, r = this._isShallow;
444
+ if (n === "__v_isReactive")
445
+ return !s;
446
+ if (n === "__v_isReadonly")
447
+ return s;
448
+ if (n === "__v_isShallow")
449
+ return r;
450
+ if (n === "__v_raw")
451
+ return i === (s ? r ? nt : Te : r ? tt : Oe).get(t) || // receiver is not the reactive proxy, but has the same prototype
452
+ // this means the receiver is a user proxy of the reactive proxy
453
+ Object.getPrototypeOf(t) === Object.getPrototypeOf(i) ? t : void 0;
454
+ const o = x(t);
455
+ if (!s) {
456
+ let a;
457
+ if (o && (a = ze[n]))
458
+ return a;
459
+ if (n === "hasOwnProperty")
460
+ return Ge;
461
+ }
462
+ const c = Reflect.get(
463
+ t,
464
+ n,
465
+ // if this is a proxy wrapping a ref, return methods using the raw ref
466
+ // as receiver so that we don't have to call `toRaw` on the ref in all
467
+ // its class methods
468
+ S(t) ? t : i
469
+ );
470
+ return (L(n) ? ye.has(n) : Fe(n)) || (s || _(t, "get", n), r) ? c : S(c) ? o && ie(n) ? c : c.value : W(c) ? s ? Ie(c) : Ve(c) : c;
471
+ }
472
+ }
473
+ class Je extends me {
474
+ constructor(t = !1) {
475
+ super(!1, t);
476
+ }
477
+ set(t, n, i, s) {
478
+ let r = t[n];
479
+ if (!this._isShallow) {
480
+ const a = T(r);
481
+ if (!w(i) && !T(i) && (r = p(r), i = p(i)), !x(t) && S(r) && !S(i))
482
+ return a ? !1 : (r.value = i, !0);
483
+ }
484
+ const o = x(t) && ie(n) ? Number(n) < t.length : Z(t, n), c = Reflect.set(
485
+ t,
486
+ n,
487
+ i,
488
+ S(t) ? t : s
489
+ );
490
+ return t === p(s) && (o ? M(i, r) && N(t, "set", n, i, r) : N(t, "add", n, i)), c;
491
+ }
492
+ deleteProperty(t, n) {
493
+ const i = Z(t, n), s = t[n], r = Reflect.deleteProperty(t, n);
494
+ return r && i && N(t, "delete", n, void 0, s), r;
495
+ }
496
+ has(t, n) {
497
+ const i = Reflect.has(t, n);
498
+ return (!L(n) || !ye.has(n)) && _(t, "has", n), i;
499
+ }
500
+ ownKeys(t) {
501
+ return _(
502
+ t,
503
+ "iterate",
504
+ x(t) ? "length" : m
505
+ ), Reflect.ownKeys(t);
506
+ }
507
+ }
508
+ class Qe extends me {
509
+ constructor(t = !1) {
510
+ super(!0, t);
511
+ }
512
+ set(t, n) {
513
+ return process.env.NODE_ENV !== "production" && D(
514
+ `Set operation on key "${String(n)}" failed: target is readonly.`,
515
+ t
516
+ ), !0;
517
+ }
518
+ deleteProperty(t, n) {
519
+ return process.env.NODE_ENV !== "production" && D(
520
+ `Delete operation on key "${String(n)}" failed: target is readonly.`,
521
+ t
522
+ ), !0;
523
+ }
524
+ }
525
+ const Ue = /* @__PURE__ */ new Je(), qe = /* @__PURE__ */ new Qe(), ne = (e) => e, C = (e) => Reflect.getPrototypeOf(e);
526
+ function Xe(e, t, n) {
527
+ return function(...i) {
528
+ const s = this.__v_raw, r = p(s), o = O(r), c = e === "entries" || e === Symbol.iterator && o, a = e === "keys" && o, d = s[e](...i), v = n ? ne : t ? se : g;
529
+ return !t && _(
530
+ r,
531
+ "iterate",
532
+ a ? te : m
533
+ ), {
534
+ // iterator protocol
535
+ next() {
536
+ const { value: f, done: h } = d.next();
537
+ return h ? { value: f, done: h } : {
538
+ value: c ? [v(f[0]), v(f[1])] : v(f),
539
+ done: h
540
+ };
541
+ },
542
+ // iterable protocol
543
+ [Symbol.iterator]() {
544
+ return this;
545
+ }
546
+ };
547
+ };
548
+ }
549
+ function $(e) {
550
+ return function(...t) {
551
+ if (process.env.NODE_ENV !== "production") {
552
+ const n = t[0] ? `on key "${t[0]}" ` : "";
553
+ D(
554
+ `${je(e)} operation ${n}failed: target is readonly.`,
555
+ p(this)
556
+ );
557
+ }
558
+ return e === "delete" ? !1 : e === "clear" ? void 0 : this;
559
+ };
560
+ }
561
+ function Ze(e, t) {
562
+ const n = {
563
+ get(s) {
564
+ const r = this.__v_raw, o = p(r), c = p(s);
565
+ e || (M(s, c) && _(o, "get", s), _(o, "get", c));
566
+ const { has: a } = C(o), d = t ? ne : e ? se : g;
567
+ if (a.call(o, s))
568
+ return d(r.get(s));
569
+ if (a.call(o, c))
570
+ return d(r.get(c));
571
+ r !== o && r.get(s);
572
+ },
573
+ get size() {
574
+ const s = this.__v_raw;
575
+ return !e && _(p(s), "iterate", m), Reflect.get(s, "size", s);
576
+ },
577
+ has(s) {
578
+ const r = this.__v_raw, o = p(r), c = p(s);
579
+ return e || (M(s, c) && _(o, "has", s), _(o, "has", c)), s === c ? r.has(s) : r.has(s) || r.has(c);
580
+ },
581
+ forEach(s, r) {
582
+ const o = this, c = o.__v_raw, a = p(c), d = t ? ne : e ? se : g;
583
+ return !e && _(a, "iterate", m), c.forEach((v, f) => s.call(r, d(v), d(f), o));
584
+ }
585
+ };
586
+ return X(
587
+ n,
588
+ e ? {
589
+ add: $("add"),
590
+ set: $("set"),
591
+ delete: $("delete"),
592
+ clear: $("clear")
593
+ } : {
594
+ add(s) {
595
+ !t && !w(s) && !T(s) && (s = p(s));
596
+ const r = p(this);
597
+ return C(r).has.call(r, s) || (r.add(s), N(r, "add", s, s)), this;
598
+ },
599
+ set(s, r) {
600
+ !t && !w(r) && !T(r) && (r = p(r));
601
+ const o = p(this), { has: c, get: a } = C(o);
602
+ let d = c.call(o, s);
603
+ d ? process.env.NODE_ENV !== "production" && pe(o, c, s) : (s = p(s), d = c.call(o, s));
604
+ const v = a.call(o, s);
605
+ return o.set(s, r), d ? M(r, v) && N(o, "set", s, r, v) : N(o, "add", s, r), this;
606
+ },
607
+ delete(s) {
608
+ const r = p(this), { has: o, get: c } = C(r);
609
+ let a = o.call(r, s);
610
+ a ? process.env.NODE_ENV !== "production" && pe(r, o, s) : (s = p(s), a = o.call(r, s));
611
+ const d = c ? c.call(r, s) : void 0, v = r.delete(s);
612
+ return a && N(r, "delete", s, void 0, d), v;
613
+ },
614
+ clear() {
615
+ const s = p(this), r = s.size !== 0, o = process.env.NODE_ENV !== "production" ? O(s) ? new Map(s) : new Set(s) : void 0, c = s.clear();
616
+ return r && N(
617
+ s,
618
+ "clear",
619
+ void 0,
620
+ void 0,
621
+ o
622
+ ), c;
623
+ }
624
+ }
625
+ ), [
626
+ "keys",
627
+ "values",
628
+ "entries",
629
+ Symbol.iterator
630
+ ].forEach((s) => {
631
+ n[s] = Xe(s, e, t);
632
+ }), n;
633
+ }
634
+ function Re(e, t) {
635
+ const n = Ze(e, t);
636
+ return (i, s, r) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? i : Reflect.get(
637
+ Z(n, s) && s in i ? n : i,
638
+ s,
639
+ r
640
+ );
641
+ }
642
+ const ke = {
643
+ get: /* @__PURE__ */ Re(!1, !1)
644
+ }, et = {
645
+ get: /* @__PURE__ */ Re(!0, !1)
646
+ };
647
+ function pe(e, t, n) {
648
+ const i = p(n);
649
+ if (i !== n && t.call(e, i)) {
650
+ const s = he(e);
651
+ D(
652
+ `Reactive ${s} contains both the raw and reactive versions of the same object${s === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
653
+ );
654
+ }
655
+ }
656
+ const Oe = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap();
657
+ function st(e) {
658
+ switch (e) {
659
+ case "Object":
660
+ case "Array":
661
+ return 1;
662
+ case "Map":
663
+ case "Set":
664
+ case "WeakMap":
665
+ case "WeakSet":
666
+ return 2;
667
+ default:
668
+ return 0;
669
+ }
670
+ }
671
+ function it(e) {
672
+ return e.__v_skip || !Object.isExtensible(e) ? 0 : st(he(e));
673
+ }
674
+ function Ve(e) {
675
+ return T(e) ? e : Me(
676
+ e,
677
+ !1,
678
+ Ue,
679
+ ke,
680
+ Oe
681
+ );
682
+ }
683
+ function Ie(e) {
684
+ return Me(
685
+ e,
686
+ !0,
687
+ qe,
688
+ et,
689
+ Te
690
+ );
691
+ }
692
+ function Me(e, t, n, i, s) {
693
+ if (!W(e))
694
+ return process.env.NODE_ENV !== "production" && D(
695
+ `value cannot be made ${t ? "readonly" : "reactive"}: ${String(
696
+ e
697
+ )}`
698
+ ), e;
699
+ if (e.__v_raw && !(t && e.__v_isReactive))
700
+ return e;
701
+ const r = it(e);
702
+ if (r === 0)
703
+ return e;
704
+ const o = s.get(e);
705
+ if (o)
706
+ return o;
707
+ const c = new Proxy(
708
+ e,
709
+ r === 2 ? i : n
710
+ );
711
+ return s.set(e, c), c;
712
+ }
713
+ function Y(e) {
714
+ return T(e) ? Y(e.__v_raw) : !!(e && e.__v_isReactive);
715
+ }
716
+ function T(e) {
717
+ return !!(e && e.__v_isReadonly);
718
+ }
719
+ function w(e) {
720
+ return !!(e && e.__v_isShallow);
721
+ }
722
+ function rt(e) {
723
+ return e ? !!e.__v_raw : !1;
724
+ }
725
+ function p(e) {
726
+ const t = e && e.__v_raw;
727
+ return t ? p(t) : e;
728
+ }
729
+ const g = (e) => W(e) ? Ve(e) : e, se = (e) => W(e) ? Ie(e) : e;
730
+ function S(e) {
731
+ return e ? e.__v_isRef === !0 : !1;
732
+ }
733
+ function ft(e) {
734
+ return S(e) ? e.value : e;
735
+ }
736
+ class ot {
737
+ constructor(t, n, i) {
738
+ this.fn = t, this.setter = n, this._value = void 0, this.dep = new Ne(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = K - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !n, this.isSSR = i;
739
+ }
740
+ /**
741
+ * @internal
742
+ */
743
+ notify() {
744
+ if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
745
+ l !== this)
746
+ return _e(this, !0), !0;
747
+ process.env.NODE_ENV;
748
+ }
749
+ get value() {
750
+ const t = process.env.NODE_ENV !== "production" ? this.dep.track({
751
+ target: this,
752
+ type: "get",
753
+ key: "value"
754
+ }) : this.dep.track();
755
+ return we(this), t && (t.version = this.dep.version), this._value;
756
+ }
757
+ set value(t) {
758
+ this.setter ? this.setter(t) : process.env.NODE_ENV !== "production" && D("Write operation failed: computed value is readonly");
759
+ }
760
+ }
761
+ function lt(e, t, n = !1) {
762
+ let i, s;
763
+ q(e) ? i = e : (i = e.get, s = e.set);
764
+ const r = new ot(i, s, n);
765
+ return process.env.NODE_ENV, r;
766
+ }
767
+ const de = {}, B = /* @__PURE__ */ new WeakMap();
768
+ let z;
769
+ function ct(e, t = !1, n = z) {
770
+ if (n) {
771
+ let i = B.get(n);
772
+ i || B.set(n, i = []), i.push(e);
773
+ } else process.env.NODE_ENV !== "production" && !t && D(
774
+ "onWatcherCleanup() was called when there was no active watcher to associate with."
775
+ );
776
+ }
777
+ function ut(e, t, n = Pe) {
778
+ const { immediate: i, deep: s, once: r, scheduler: o, augmentJob: c, call: a } = n, d = (u) => {
779
+ (n.onWarn || D)(
780
+ "Invalid watch source: ",
781
+ u,
782
+ "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
783
+ );
784
+ }, v = (u) => s ? u : w(u) || s === !1 || s === 0 ? y(u, 1) : y(u);
785
+ let f, h, F, G, fe = !1;
786
+ S(e) ? (h = () => e.value, w(e)) : Y(e) ? h = () => v(e) : x(e) ? (fe = !0, e.some((u) => Y(u) || w(u)), h = () => e.map((u) => {
787
+ if (S(u))
788
+ return u.value;
789
+ if (Y(u))
790
+ return v(u);
791
+ if (q(u))
792
+ return a ? a(u, 2) : u();
793
+ process.env.NODE_ENV !== "production" && d(u);
794
+ })) : q(e) ? h = () => {
795
+ if (F) {
796
+ Se();
797
+ try {
798
+ F();
799
+ } finally {
800
+ De();
801
+ }
802
+ }
803
+ const u = z;
804
+ z = f;
805
+ try {
806
+ return a ? a(e, 3, [G]) : e(G);
807
+ } finally {
808
+ z = u;
809
+ }
810
+ } : (h = Le, process.env.NODE_ENV !== "production" && d(e));
811
+ const V = () => {
812
+ f.stop();
813
+ };
814
+ fe && new Array(e.length).fill(de);
815
+ const H = (u) => {
816
+ !(f.flags & 1) || !f.dirty && !u || f.run();
817
+ };
818
+ return c && c(H), f = new Ce(h), f.scheduler = o ? () => o(H, !1) : H, G = (u) => ct(u, !1, f), F = f.onStop = () => {
819
+ const u = B.get(f);
820
+ if (u) {
821
+ if (a)
822
+ a(u, 4);
823
+ else
824
+ for (const Ae of u) Ae();
825
+ B.delete(f);
826
+ }
827
+ }, process.env.NODE_ENV !== "production" && (f.onTrack = n.onTrack, f.onTrigger = n.onTrigger), o ? o(H.bind(null, !0), !0) : f.run(), V.pause = f.pause.bind(f), V.resume = f.resume.bind(f), V.stop = V, V;
828
+ }
829
+ function y(e, t = 1 / 0, n) {
830
+ if (t <= 0 || !W(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
831
+ return e;
832
+ if (n.add(e), t--, S(e))
833
+ y(e.value, t, n);
834
+ else if (x(e))
835
+ for (let i = 0; i < e.length; i++)
836
+ y(e[i], t, n);
837
+ else if (We(e) || O(e))
838
+ e.forEach((i) => {
839
+ y(i, t, n);
840
+ });
841
+ else if (He(e)) {
842
+ for (const i in e)
843
+ y(e[i], t, n);
844
+ for (const i of Object.getOwnPropertySymbols(e))
845
+ Object.prototype.propertyIsEnumerable.call(e, i) && y(e[i], t, n);
846
+ }
847
+ return e;
848
+ }
849
+ export {
850
+ j as ARRAY_ITERATE_KEY,
851
+ m as ITERATE_KEY,
852
+ te as MAP_KEY_ITERATE_KEY,
853
+ Ce as ReactiveEffect,
854
+ lt as computed,
855
+ rt as isProxy,
856
+ Y as isReactive,
857
+ T as isReadonly,
858
+ S as isRef,
859
+ w as isShallow,
860
+ ct as onWatcherCleanup,
861
+ Se as pauseTracking,
862
+ Ve as reactive,
863
+ R as reactiveReadArray,
864
+ Ie as readonly,
865
+ De as resetTracking,
866
+ ae as shallowReadArray,
867
+ p as toRaw,
868
+ g as toReactive,
869
+ se as toReadonly,
870
+ _ as track,
871
+ y as traverse,
872
+ N as trigger,
873
+ ft as unref,
874
+ ut as watch
875
+ };