@vuact/runtime-dom 3.5.13-vuact.2 → 3.5.14-vuact.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/runtime-dom.cjs.js +12 -10
- package/dist/runtime-dom.cjs.prod.js +12 -10
- package/dist/runtime-dom.esm-browser.js +163 -130
- package/dist/runtime-dom.esm-browser.prod.js +3 -2
- package/dist/runtime-dom.esm-bundler.js +12 -10
- package/dist/runtime-dom.global.js +163 -130
- package/dist/runtime-dom.global.prod.js +3 -2
- package/package.json +4 -4
- package/dist/runtime-dom.d.ts +0 -1396
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
2
|
+
* @vuact/runtime-dom v3.5.14
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -409,7 +409,7 @@ class EffectScope {
|
|
|
409
409
|
off() {
|
|
410
410
|
if (this._on > 0 && --this._on === 0) {
|
|
411
411
|
activeEffectScope = this.prevScope;
|
|
412
|
-
this.prevScope =
|
|
412
|
+
this.prevScope = void 0;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
415
|
stop(fromParent) {
|
|
@@ -437,7 +437,7 @@ class EffectScope {
|
|
|
437
437
|
last.index = this.index;
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
this.parent =
|
|
440
|
+
this.parent = void 0;
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
}
|
|
@@ -465,11 +465,11 @@ class ReactiveEffect {
|
|
|
465
465
|
/**
|
|
466
466
|
* @internal
|
|
467
467
|
*/
|
|
468
|
-
this.deps =
|
|
468
|
+
this.deps = void 0;
|
|
469
469
|
/**
|
|
470
470
|
* @internal
|
|
471
471
|
*/
|
|
472
|
-
this.depsTail =
|
|
472
|
+
this.depsTail = void 0;
|
|
473
473
|
/**
|
|
474
474
|
* @internal
|
|
475
475
|
*/
|
|
@@ -477,12 +477,12 @@ class ReactiveEffect {
|
|
|
477
477
|
/**
|
|
478
478
|
* @internal
|
|
479
479
|
*/
|
|
480
|
-
this.next =
|
|
480
|
+
this.next = void 0;
|
|
481
481
|
/**
|
|
482
482
|
* @internal
|
|
483
483
|
*/
|
|
484
|
-
this.cleanup =
|
|
485
|
-
this.scheduler =
|
|
484
|
+
this.cleanup = void 0;
|
|
485
|
+
this.scheduler = void 0;
|
|
486
486
|
if (activeEffectScope && activeEffectScope.active) {
|
|
487
487
|
activeEffectScope.effects.push(this);
|
|
488
488
|
}
|
|
@@ -540,7 +540,7 @@ class ReactiveEffect {
|
|
|
540
540
|
for (let link = this.deps; link; link = link.nextDep) {
|
|
541
541
|
removeSub(link);
|
|
542
542
|
}
|
|
543
|
-
this.deps = this.depsTail =
|
|
543
|
+
this.deps = this.depsTail = void 0;
|
|
544
544
|
cleanupEffect(this);
|
|
545
545
|
this.onStop && this.onStop();
|
|
546
546
|
this.flags &= -2;
|
|
@@ -589,10 +589,10 @@ function endBatch() {
|
|
|
589
589
|
}
|
|
590
590
|
if (batchedComputed) {
|
|
591
591
|
let e = batchedComputed;
|
|
592
|
-
batchedComputed =
|
|
592
|
+
batchedComputed = void 0;
|
|
593
593
|
while (e) {
|
|
594
594
|
const next = e.next;
|
|
595
|
-
e.next =
|
|
595
|
+
e.next = void 0;
|
|
596
596
|
e.flags &= -9;
|
|
597
597
|
e = next;
|
|
598
598
|
}
|
|
@@ -600,10 +600,10 @@ function endBatch() {
|
|
|
600
600
|
let error;
|
|
601
601
|
while (batchedSub) {
|
|
602
602
|
let e = batchedSub;
|
|
603
|
-
batchedSub =
|
|
603
|
+
batchedSub = void 0;
|
|
604
604
|
while (e) {
|
|
605
605
|
const next = e.next;
|
|
606
|
-
e.next =
|
|
606
|
+
e.next = void 0;
|
|
607
607
|
e.flags &= -9;
|
|
608
608
|
if (e.flags & 1) {
|
|
609
609
|
try {
|
|
@@ -639,7 +639,7 @@ function cleanupDeps(sub) {
|
|
|
639
639
|
head = link;
|
|
640
640
|
}
|
|
641
641
|
link.dep.activeLink = link.prevActiveLink;
|
|
642
|
-
link.prevActiveLink =
|
|
642
|
+
link.prevActiveLink = void 0;
|
|
643
643
|
link = prev;
|
|
644
644
|
}
|
|
645
645
|
sub.deps = head;
|
|
@@ -665,12 +665,11 @@ function refreshComputed(computed) {
|
|
|
665
665
|
return;
|
|
666
666
|
}
|
|
667
667
|
computed.globalVersion = globalVersion;
|
|
668
|
-
|
|
669
|
-
computed.flags |= 2;
|
|
670
|
-
if (dep.version > 0 && !computed.isSSR && computed.deps && !isDirty(computed)) {
|
|
671
|
-
computed.flags &= -3;
|
|
668
|
+
if (!computed.isSSR && computed.flags & 128 && (!computed.deps && !computed._dirty || !isDirty(computed))) {
|
|
672
669
|
return;
|
|
673
670
|
}
|
|
671
|
+
computed.flags |= 2;
|
|
672
|
+
const dep = computed.dep;
|
|
674
673
|
const prevSub = activeSub;
|
|
675
674
|
const prevShouldTrack = shouldTrack;
|
|
676
675
|
activeSub = computed;
|
|
@@ -679,6 +678,7 @@ function refreshComputed(computed) {
|
|
|
679
678
|
prepareDeps(computed);
|
|
680
679
|
const value = computed.fn(computed._value);
|
|
681
680
|
if (dep.version === 0 || hasChanged(value, computed._value)) {
|
|
681
|
+
computed.flags |= 128;
|
|
682
682
|
computed._value = value;
|
|
683
683
|
dep.version++;
|
|
684
684
|
}
|
|
@@ -696,11 +696,11 @@ function removeSub(link, soft = false) {
|
|
|
696
696
|
const { dep, prevSub, nextSub } = link;
|
|
697
697
|
if (prevSub) {
|
|
698
698
|
prevSub.nextSub = nextSub;
|
|
699
|
-
link.prevSub =
|
|
699
|
+
link.prevSub = void 0;
|
|
700
700
|
}
|
|
701
701
|
if (nextSub) {
|
|
702
702
|
nextSub.prevSub = prevSub;
|
|
703
|
-
link.nextSub =
|
|
703
|
+
link.nextSub = void 0;
|
|
704
704
|
}
|
|
705
705
|
if (dep.subsHead === link) {
|
|
706
706
|
dep.subsHead = nextSub;
|
|
@@ -722,11 +722,11 @@ function removeDep(link) {
|
|
|
722
722
|
const { prevDep, nextDep } = link;
|
|
723
723
|
if (prevDep) {
|
|
724
724
|
prevDep.nextDep = nextDep;
|
|
725
|
-
link.prevDep =
|
|
725
|
+
link.prevDep = void 0;
|
|
726
726
|
}
|
|
727
727
|
if (nextDep) {
|
|
728
728
|
nextDep.prevDep = prevDep;
|
|
729
|
-
link.nextDep =
|
|
729
|
+
link.nextDep = void 0;
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
732
|
function effect(fn, options) {
|
|
@@ -758,14 +758,14 @@ function pauseTracking() {
|
|
|
758
758
|
}
|
|
759
759
|
function resetTracking() {
|
|
760
760
|
const last = trackStack.pop();
|
|
761
|
-
shouldTrack = last ===
|
|
761
|
+
shouldTrack = last === void 0 ? true : last;
|
|
762
762
|
}
|
|
763
763
|
function cleanupEffect(e) {
|
|
764
764
|
const { cleanup } = e;
|
|
765
|
-
e.cleanup =
|
|
765
|
+
e.cleanup = void 0;
|
|
766
766
|
if (cleanup) {
|
|
767
767
|
const prevSub = activeSub;
|
|
768
|
-
activeSub =
|
|
768
|
+
activeSub = void 0;
|
|
769
769
|
try {
|
|
770
770
|
cleanup();
|
|
771
771
|
} finally {
|
|
@@ -780,7 +780,7 @@ class Link {
|
|
|
780
780
|
this.sub = sub;
|
|
781
781
|
this.dep = dep;
|
|
782
782
|
this.version = dep.version;
|
|
783
|
-
this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink =
|
|
783
|
+
this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
784
784
|
}
|
|
785
785
|
}
|
|
786
786
|
class Dep {
|
|
@@ -790,22 +790,22 @@ class Dep {
|
|
|
790
790
|
/**
|
|
791
791
|
* Link between this dep and the current active effect
|
|
792
792
|
*/
|
|
793
|
-
this.activeLink =
|
|
793
|
+
this.activeLink = void 0;
|
|
794
794
|
/**
|
|
795
795
|
* Doubly linked list representing the subscribing effects (tail)
|
|
796
796
|
*/
|
|
797
|
-
this.subs =
|
|
797
|
+
this.subs = void 0;
|
|
798
798
|
/**
|
|
799
799
|
* For object property deps cleanup
|
|
800
800
|
*/
|
|
801
|
-
this.map =
|
|
802
|
-
this.key =
|
|
801
|
+
this.map = void 0;
|
|
802
|
+
this.key = void 0;
|
|
803
803
|
/**
|
|
804
804
|
* Subscriber counter
|
|
805
805
|
*/
|
|
806
806
|
this.sc = 0;
|
|
807
807
|
{
|
|
808
|
-
this.subsHead =
|
|
808
|
+
this.subsHead = void 0;
|
|
809
809
|
}
|
|
810
810
|
}
|
|
811
811
|
track(debugInfo) {
|
|
@@ -813,7 +813,7 @@ class Dep {
|
|
|
813
813
|
return;
|
|
814
814
|
}
|
|
815
815
|
let link = this.activeLink;
|
|
816
|
-
if (link ===
|
|
816
|
+
if (link === void 0 || link.sub !== activeSub) {
|
|
817
817
|
link = this.activeLink = new Link(activeSub, this);
|
|
818
818
|
if (!activeSub.deps) {
|
|
819
819
|
activeSub.deps = activeSub.depsTail = link;
|
|
@@ -832,7 +832,7 @@ class Dep {
|
|
|
832
832
|
link.prevDep.nextDep = next;
|
|
833
833
|
}
|
|
834
834
|
link.prevDep = activeSub.depsTail;
|
|
835
|
-
link.nextDep =
|
|
835
|
+
link.nextDep = void 0;
|
|
836
836
|
activeSub.depsTail.nextDep = link;
|
|
837
837
|
activeSub.depsTail = link;
|
|
838
838
|
if (activeSub.deps === link) {
|
|
@@ -900,7 +900,7 @@ function addSub(link) {
|
|
|
900
900
|
link.prevSub = currentTail;
|
|
901
901
|
if (currentTail) currentTail.nextSub = link;
|
|
902
902
|
}
|
|
903
|
-
if (link.dep.subsHead ===
|
|
903
|
+
if (link.dep.subsHead === void 0) {
|
|
904
904
|
link.dep.subsHead = link;
|
|
905
905
|
}
|
|
906
906
|
link.dep.subs = link;
|
|
@@ -971,7 +971,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
971
971
|
}
|
|
972
972
|
});
|
|
973
973
|
} else {
|
|
974
|
-
if (key !==
|
|
974
|
+
if (key !== void 0 || depsMap.has(void 0)) {
|
|
975
975
|
run(depsMap.get(key));
|
|
976
976
|
}
|
|
977
977
|
if (isArrayIndex) {
|
|
@@ -1038,7 +1038,7 @@ const arrayInstrumentations = {
|
|
|
1038
1038
|
});
|
|
1039
1039
|
},
|
|
1040
1040
|
every(fn, thisArg) {
|
|
1041
|
-
return apply(this, "every", fn, thisArg,
|
|
1041
|
+
return apply(this, "every", fn, thisArg, void 0, arguments);
|
|
1042
1042
|
},
|
|
1043
1043
|
filter(fn, thisArg) {
|
|
1044
1044
|
return apply(this, "filter", fn, thisArg, (v) => v.map(toReactive), arguments);
|
|
@@ -1047,17 +1047,17 @@ const arrayInstrumentations = {
|
|
|
1047
1047
|
return apply(this, "find", fn, thisArg, toReactive, arguments);
|
|
1048
1048
|
},
|
|
1049
1049
|
findIndex(fn, thisArg) {
|
|
1050
|
-
return apply(this, "findIndex", fn, thisArg,
|
|
1050
|
+
return apply(this, "findIndex", fn, thisArg, void 0, arguments);
|
|
1051
1051
|
},
|
|
1052
1052
|
findLast(fn, thisArg) {
|
|
1053
1053
|
return apply(this, "findLast", fn, thisArg, toReactive, arguments);
|
|
1054
1054
|
},
|
|
1055
1055
|
findLastIndex(fn, thisArg) {
|
|
1056
|
-
return apply(this, "findLastIndex", fn, thisArg,
|
|
1056
|
+
return apply(this, "findLastIndex", fn, thisArg, void 0, arguments);
|
|
1057
1057
|
},
|
|
1058
1058
|
// flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
|
|
1059
1059
|
forEach(fn, thisArg) {
|
|
1060
|
-
return apply(this, "forEach", fn, thisArg,
|
|
1060
|
+
return apply(this, "forEach", fn, thisArg, void 0, arguments);
|
|
1061
1061
|
},
|
|
1062
1062
|
includes(...args) {
|
|
1063
1063
|
return searchProxy(this, "includes", args);
|
|
@@ -1073,7 +1073,7 @@ const arrayInstrumentations = {
|
|
|
1073
1073
|
return searchProxy(this, "lastIndexOf", args);
|
|
1074
1074
|
},
|
|
1075
1075
|
map(fn, thisArg) {
|
|
1076
|
-
return apply(this, "map", fn, thisArg,
|
|
1076
|
+
return apply(this, "map", fn, thisArg, void 0, arguments);
|
|
1077
1077
|
},
|
|
1078
1078
|
pop() {
|
|
1079
1079
|
return noTracking(this, "pop");
|
|
@@ -1092,7 +1092,7 @@ const arrayInstrumentations = {
|
|
|
1092
1092
|
},
|
|
1093
1093
|
// slice could use ARRAY_ITERATE but also seems to beg for range tracking
|
|
1094
1094
|
some(fn, thisArg) {
|
|
1095
|
-
return apply(this, "some", fn, thisArg,
|
|
1095
|
+
return apply(this, "some", fn, thisArg, void 0, arguments);
|
|
1096
1096
|
},
|
|
1097
1097
|
splice(...args) {
|
|
1098
1098
|
return noTracking(this, "splice", args);
|
|
@@ -1297,7 +1297,7 @@ class MutableReactiveHandler extends BaseReactiveHandler {
|
|
|
1297
1297
|
const oldValue = target[key];
|
|
1298
1298
|
const result = Reflect.deleteProperty(target, key);
|
|
1299
1299
|
if (result && hadKey) {
|
|
1300
|
-
trigger(target, "delete", key,
|
|
1300
|
+
trigger(target, "delete", key, void 0, oldValue);
|
|
1301
1301
|
}
|
|
1302
1302
|
return result;
|
|
1303
1303
|
}
|
|
@@ -1386,7 +1386,7 @@ function createReadonlyMethod(type) {
|
|
|
1386
1386
|
toRaw(this)
|
|
1387
1387
|
);
|
|
1388
1388
|
}
|
|
1389
|
-
return type === "delete" ? false : type === "clear" ?
|
|
1389
|
+
return type === "delete" ? false : type === "clear" ? void 0 : this;
|
|
1390
1390
|
};
|
|
1391
1391
|
}
|
|
1392
1392
|
function createInstrumentations(readonly, shallow) {
|
|
@@ -1492,10 +1492,10 @@ function createInstrumentations(readonly, shallow) {
|
|
|
1492
1492
|
} else {
|
|
1493
1493
|
checkIdentityKeys(target, has, key);
|
|
1494
1494
|
}
|
|
1495
|
-
const oldValue = get ? get.call(target, key) :
|
|
1495
|
+
const oldValue = get ? get.call(target, key) : void 0;
|
|
1496
1496
|
const result = target.delete(key);
|
|
1497
1497
|
if (hadKey) {
|
|
1498
|
-
trigger(target, "delete", key,
|
|
1498
|
+
trigger(target, "delete", key, void 0, oldValue);
|
|
1499
1499
|
}
|
|
1500
1500
|
return result;
|
|
1501
1501
|
},
|
|
@@ -1508,8 +1508,8 @@ function createInstrumentations(readonly, shallow) {
|
|
|
1508
1508
|
trigger(
|
|
1509
1509
|
target,
|
|
1510
1510
|
"clear",
|
|
1511
|
-
|
|
1512
|
-
|
|
1511
|
+
void 0,
|
|
1512
|
+
void 0,
|
|
1513
1513
|
oldTarget
|
|
1514
1514
|
);
|
|
1515
1515
|
}
|
|
@@ -1641,14 +1641,14 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
|
|
|
1641
1641
|
if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
|
|
1642
1642
|
return target;
|
|
1643
1643
|
}
|
|
1644
|
-
const existingProxy = proxyMap.get(target);
|
|
1645
|
-
if (existingProxy) {
|
|
1646
|
-
return existingProxy;
|
|
1647
|
-
}
|
|
1648
1644
|
const targetType = getTargetType(target);
|
|
1649
1645
|
if (targetType === 0 /* INVALID */) {
|
|
1650
1646
|
return target;
|
|
1651
1647
|
}
|
|
1648
|
+
const existingProxy = proxyMap.get(target);
|
|
1649
|
+
if (existingProxy) {
|
|
1650
|
+
return existingProxy;
|
|
1651
|
+
}
|
|
1652
1652
|
const proxy = new Proxy(
|
|
1653
1653
|
target,
|
|
1654
1654
|
targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers
|
|
@@ -1773,7 +1773,7 @@ function proxyRefs(objectWithRefs) {
|
|
|
1773
1773
|
class CustomRefImpl {
|
|
1774
1774
|
constructor(factory) {
|
|
1775
1775
|
this["__v_isRef"] = true;
|
|
1776
|
-
this._value =
|
|
1776
|
+
this._value = void 0;
|
|
1777
1777
|
const dep = this.dep = new Dep();
|
|
1778
1778
|
const { get, set } = factory(dep.track.bind(dep), dep.trigger.bind(dep));
|
|
1779
1779
|
this._get = get;
|
|
@@ -1805,11 +1805,11 @@ class ObjectRefImpl {
|
|
|
1805
1805
|
this._key = _key;
|
|
1806
1806
|
this._defaultValue = _defaultValue;
|
|
1807
1807
|
this["__v_isRef"] = true;
|
|
1808
|
-
this._value =
|
|
1808
|
+
this._value = void 0;
|
|
1809
1809
|
}
|
|
1810
1810
|
get value() {
|
|
1811
1811
|
const val = this._object[this._key];
|
|
1812
|
-
return this._value = val ===
|
|
1812
|
+
return this._value = val === void 0 ? this._defaultValue : val;
|
|
1813
1813
|
}
|
|
1814
1814
|
set value(newVal) {
|
|
1815
1815
|
this._object[this._key] = newVal;
|
|
@@ -1823,7 +1823,7 @@ class GetterRefImpl {
|
|
|
1823
1823
|
this._getter = _getter;
|
|
1824
1824
|
this["__v_isRef"] = true;
|
|
1825
1825
|
this["__v_isReadonly"] = true;
|
|
1826
|
-
this._value =
|
|
1826
|
+
this._value = void 0;
|
|
1827
1827
|
}
|
|
1828
1828
|
get value() {
|
|
1829
1829
|
return this._value = this._getter();
|
|
@@ -1852,7 +1852,7 @@ class ComputedRefImpl {
|
|
|
1852
1852
|
/**
|
|
1853
1853
|
* @internal
|
|
1854
1854
|
*/
|
|
1855
|
-
this._value =
|
|
1855
|
+
this._value = void 0;
|
|
1856
1856
|
/**
|
|
1857
1857
|
* @internal
|
|
1858
1858
|
*/
|
|
@@ -1866,11 +1866,11 @@ class ComputedRefImpl {
|
|
|
1866
1866
|
/**
|
|
1867
1867
|
* @internal
|
|
1868
1868
|
*/
|
|
1869
|
-
this.deps =
|
|
1869
|
+
this.deps = void 0;
|
|
1870
1870
|
/**
|
|
1871
1871
|
* @internal
|
|
1872
1872
|
*/
|
|
1873
|
-
this.depsTail =
|
|
1873
|
+
this.depsTail = void 0;
|
|
1874
1874
|
/**
|
|
1875
1875
|
* @internal
|
|
1876
1876
|
*/
|
|
@@ -1882,7 +1882,7 @@ class ComputedRefImpl {
|
|
|
1882
1882
|
/**
|
|
1883
1883
|
* @internal
|
|
1884
1884
|
*/
|
|
1885
|
-
this.next =
|
|
1885
|
+
this.next = void 0;
|
|
1886
1886
|
// for backwards compat
|
|
1887
1887
|
this.effect = this;
|
|
1888
1888
|
this["__v_isReadonly"] = !setter;
|
|
@@ -1950,7 +1950,7 @@ const TriggerOpTypes = {
|
|
|
1950
1950
|
|
|
1951
1951
|
const INITIAL_WATCHER_VALUE = {};
|
|
1952
1952
|
const cleanupMap = /* @__PURE__ */ new WeakMap();
|
|
1953
|
-
let activeWatcher =
|
|
1953
|
+
let activeWatcher = void 0;
|
|
1954
1954
|
function getCurrentWatcher() {
|
|
1955
1955
|
return activeWatcher;
|
|
1956
1956
|
}
|
|
@@ -2178,7 +2178,7 @@ function warn$1(msg, ...args) {
|
|
|
2178
2178
|
// eslint-disable-next-line no-restricted-syntax
|
|
2179
2179
|
msg + args.map((a) => {
|
|
2180
2180
|
var _a, _b;
|
|
2181
|
-
return (_b = (_a = a.toString) == null ?
|
|
2181
|
+
return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
|
|
2182
2182
|
}).join(""),
|
|
2183
2183
|
instance && instance.proxy,
|
|
2184
2184
|
trace.map(
|
|
@@ -2267,7 +2267,7 @@ function formatProp(key, value, raw) {
|
|
|
2267
2267
|
}
|
|
2268
2268
|
}
|
|
2269
2269
|
function assertNumber(val, type) {
|
|
2270
|
-
if (val ===
|
|
2270
|
+
if (val === void 0) {
|
|
2271
2271
|
return;
|
|
2272
2272
|
} else if (typeof val !== "number") {
|
|
2273
2273
|
warn$1(`${type} is not a valid number - got ${JSON.stringify(val)}.`);
|
|
@@ -2733,7 +2733,7 @@ function setDevtoolsHook$1(hook, target) {
|
|
|
2733
2733
|
typeof window !== "undefined" && // some envs mock window but not fully
|
|
2734
2734
|
window.HTMLElement && // also exclude jsdom
|
|
2735
2735
|
// eslint-disable-next-line no-restricted-syntax
|
|
2736
|
-
!((_b = (_a = window.navigator) == null ?
|
|
2736
|
+
!((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom"))
|
|
2737
2737
|
) {
|
|
2738
2738
|
const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
|
|
2739
2739
|
replay.push((newHook) => {
|
|
@@ -2781,7 +2781,7 @@ function createDevtoolsComponentHook(hook) {
|
|
|
2781
2781
|
hook,
|
|
2782
2782
|
component.appContext.app,
|
|
2783
2783
|
component.uid,
|
|
2784
|
-
component.parent ? component.parent.uid :
|
|
2784
|
+
component.parent ? component.parent.uid : void 0,
|
|
2785
2785
|
component
|
|
2786
2786
|
);
|
|
2787
2787
|
};
|
|
@@ -2876,7 +2876,7 @@ function withDirectives(vnode, directives) {
|
|
|
2876
2876
|
dir,
|
|
2877
2877
|
instance,
|
|
2878
2878
|
value,
|
|
2879
|
-
oldValue:
|
|
2879
|
+
oldValue: void 0,
|
|
2880
2880
|
arg,
|
|
2881
2881
|
modifiers
|
|
2882
2882
|
});
|
|
@@ -3049,7 +3049,7 @@ const TeleportImpl = {
|
|
|
3049
3049
|
namespace,
|
|
3050
3050
|
slotScopeIds
|
|
3051
3051
|
);
|
|
3052
|
-
traverseStaticChildren(n1, n2,
|
|
3052
|
+
traverseStaticChildren(n1, n2, false);
|
|
3053
3053
|
} else if (!optimized) {
|
|
3054
3054
|
patchChildren(
|
|
3055
3055
|
n1,
|
|
@@ -3348,7 +3348,7 @@ const BaseTransitionImpl = {
|
|
|
3348
3348
|
instance.update();
|
|
3349
3349
|
}
|
|
3350
3350
|
delete leavingHooks.afterLeave;
|
|
3351
|
-
oldInnerChild =
|
|
3351
|
+
oldInnerChild = void 0;
|
|
3352
3352
|
};
|
|
3353
3353
|
return emptyPlaceholder(child);
|
|
3354
3354
|
} else if (mode === "in-out" && innerChild.type !== Comment) {
|
|
@@ -3360,21 +3360,21 @@ const BaseTransitionImpl = {
|
|
|
3360
3360
|
leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild;
|
|
3361
3361
|
el[leaveCbKey] = () => {
|
|
3362
3362
|
earlyRemove();
|
|
3363
|
-
el[leaveCbKey] =
|
|
3363
|
+
el[leaveCbKey] = void 0;
|
|
3364
3364
|
delete enterHooks.delayedLeave;
|
|
3365
|
-
oldInnerChild =
|
|
3365
|
+
oldInnerChild = void 0;
|
|
3366
3366
|
};
|
|
3367
3367
|
enterHooks.delayedLeave = () => {
|
|
3368
3368
|
delayedLeave();
|
|
3369
3369
|
delete enterHooks.delayedLeave;
|
|
3370
|
-
oldInnerChild =
|
|
3370
|
+
oldInnerChild = void 0;
|
|
3371
3371
|
};
|
|
3372
3372
|
};
|
|
3373
3373
|
} else {
|
|
3374
|
-
oldInnerChild =
|
|
3374
|
+
oldInnerChild = void 0;
|
|
3375
3375
|
}
|
|
3376
3376
|
} else if (oldInnerChild) {
|
|
3377
|
-
oldInnerChild =
|
|
3377
|
+
oldInnerChild = void 0;
|
|
3378
3378
|
}
|
|
3379
3379
|
return child;
|
|
3380
3380
|
};
|
|
@@ -3495,7 +3495,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
3495
3495
|
if (hooks.delayedLeave) {
|
|
3496
3496
|
hooks.delayedLeave();
|
|
3497
3497
|
}
|
|
3498
|
-
el[enterCbKey$1] =
|
|
3498
|
+
el[enterCbKey$1] = void 0;
|
|
3499
3499
|
};
|
|
3500
3500
|
if (hook) {
|
|
3501
3501
|
callAsyncHook(hook, [el, done]);
|
|
@@ -3525,7 +3525,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
3525
3525
|
} else {
|
|
3526
3526
|
callHook(onAfterLeave, [el]);
|
|
3527
3527
|
}
|
|
3528
|
-
el[leaveCbKey] =
|
|
3528
|
+
el[leaveCbKey] = void 0;
|
|
3529
3529
|
if (leavingVNodesCache[key2] === vnode) {
|
|
3530
3530
|
delete leavingVNodesCache[key2];
|
|
3531
3531
|
}
|
|
@@ -3781,10 +3781,10 @@ const logMismatchError = () => {
|
|
|
3781
3781
|
const isSVGContainer = (container) => container.namespaceURI.includes("svg") && container.tagName !== "foreignObject";
|
|
3782
3782
|
const isMathMLContainer = (container) => container.namespaceURI.includes("MathML");
|
|
3783
3783
|
const getContainerType = (container) => {
|
|
3784
|
-
if (container.nodeType !== 1) return
|
|
3784
|
+
if (container.nodeType !== 1) return void 0;
|
|
3785
3785
|
if (isSVGContainer(container)) return "svg";
|
|
3786
3786
|
if (isMathMLContainer(container)) return "mathml";
|
|
3787
|
-
return
|
|
3787
|
+
return void 0;
|
|
3788
3788
|
};
|
|
3789
3789
|
const isComment = (node) => node.nodeType === 8;
|
|
3790
3790
|
function createHydrationFunctions(rendererInternals) {
|
|
@@ -4074,7 +4074,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4074
4074
|
}
|
|
4075
4075
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
4076
4076
|
key[0] === "." || isCustomElement) {
|
|
4077
|
-
patchProp(el, key, null, props[key],
|
|
4077
|
+
patchProp(el, key, null, props[key], void 0, parentComponent);
|
|
4078
4078
|
}
|
|
4079
4079
|
}
|
|
4080
4080
|
}
|
|
@@ -4734,6 +4734,9 @@ const KeepAliveImpl = {
|
|
|
4734
4734
|
{
|
|
4735
4735
|
devtoolsComponentAdded(instance2);
|
|
4736
4736
|
}
|
|
4737
|
+
{
|
|
4738
|
+
instance2.__keepAliveStorageContainer = storageContainer;
|
|
4739
|
+
}
|
|
4737
4740
|
};
|
|
4738
4741
|
function unmount(vnode) {
|
|
4739
4742
|
resetShapeFlag(vnode);
|
|
@@ -5024,16 +5027,18 @@ function renderList(source, renderItem, cache, index) {
|
|
|
5024
5027
|
if (sourceIsArray || isString(source)) {
|
|
5025
5028
|
const sourceIsReactiveArray = sourceIsArray && isReactive(source);
|
|
5026
5029
|
let needsWrap = false;
|
|
5030
|
+
let isReadonlySource = false;
|
|
5027
5031
|
if (sourceIsReactiveArray) {
|
|
5028
5032
|
needsWrap = !isShallow(source);
|
|
5033
|
+
isReadonlySource = isReadonly(source);
|
|
5029
5034
|
source = shallowReadArray(source);
|
|
5030
5035
|
}
|
|
5031
5036
|
ret = new Array(source.length);
|
|
5032
5037
|
for (let i = 0, l = source.length; i < l; i++) {
|
|
5033
5038
|
ret[i] = renderItem(
|
|
5034
|
-
needsWrap ? toReactive(source[i]) : source[i],
|
|
5039
|
+
needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i])) : toReactive(source[i]) : source[i],
|
|
5035
5040
|
i,
|
|
5036
|
-
|
|
5041
|
+
void 0,
|
|
5037
5042
|
cached && cached[i]
|
|
5038
5043
|
);
|
|
5039
5044
|
}
|
|
@@ -5043,13 +5048,13 @@ function renderList(source, renderItem, cache, index) {
|
|
|
5043
5048
|
}
|
|
5044
5049
|
ret = new Array(source);
|
|
5045
5050
|
for (let i = 0; i < source; i++) {
|
|
5046
|
-
ret[i] = renderItem(i + 1, i,
|
|
5051
|
+
ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
|
|
5047
5052
|
}
|
|
5048
5053
|
} else if (isObject(source)) {
|
|
5049
5054
|
if (source[Symbol.iterator]) {
|
|
5050
5055
|
ret = Array.from(
|
|
5051
5056
|
source,
|
|
5052
|
-
(item, i) => renderItem(item, i,
|
|
5057
|
+
(item, i) => renderItem(item, i, void 0, cached && cached[i])
|
|
5053
5058
|
);
|
|
5054
5059
|
} else {
|
|
5055
5060
|
const keys = Object.keys(source);
|
|
@@ -5192,7 +5197,7 @@ const PublicInstanceProxyHandlers = {
|
|
|
5192
5197
|
let normalizedProps;
|
|
5193
5198
|
if (key[0] !== "$") {
|
|
5194
5199
|
const n = accessCache[key];
|
|
5195
|
-
if (n !==
|
|
5200
|
+
if (n !== void 0) {
|
|
5196
5201
|
switch (n) {
|
|
5197
5202
|
case 1 /* SETUP */:
|
|
5198
5203
|
return setupState[key];
|
|
@@ -5937,8 +5942,8 @@ function createAppContext() {
|
|
|
5937
5942
|
performance: false,
|
|
5938
5943
|
globalProperties: {},
|
|
5939
5944
|
optionMergeStrategies: {},
|
|
5940
|
-
errorHandler:
|
|
5941
|
-
warnHandler:
|
|
5945
|
+
errorHandler: void 0,
|
|
5946
|
+
warnHandler: void 0,
|
|
5942
5947
|
compilerOptions: {}
|
|
5943
5948
|
},
|
|
5944
5949
|
mixins: [],
|
|
@@ -6049,15 +6054,13 @@ function createAppAPI(render, hydrate) {
|
|
|
6049
6054
|
if (namespace === true) {
|
|
6050
6055
|
namespace = "svg";
|
|
6051
6056
|
} else if (namespace === false) {
|
|
6052
|
-
namespace =
|
|
6057
|
+
namespace = void 0;
|
|
6053
6058
|
}
|
|
6054
6059
|
{
|
|
6055
6060
|
context.reload = () => {
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
namespace
|
|
6060
|
-
);
|
|
6061
|
+
const cloned = cloneVNode(vnode);
|
|
6062
|
+
cloned.el = null;
|
|
6063
|
+
render(cloned, rootContainer, namespace);
|
|
6061
6064
|
};
|
|
6062
6065
|
}
|
|
6063
6066
|
if (isHydrate && hydrate) {
|
|
@@ -6146,7 +6149,7 @@ function provide(key, value) {
|
|
|
6146
6149
|
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
6147
6150
|
const instance = currentInstance || currentRenderingInstance;
|
|
6148
6151
|
if (instance || currentApp) {
|
|
6149
|
-
const provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides :
|
|
6152
|
+
const provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
6150
6153
|
if (provides && key in provides) {
|
|
6151
6154
|
return provides[key];
|
|
6152
6155
|
} else if (arguments.length > 1) {
|
|
@@ -6173,7 +6176,7 @@ function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
|
6173
6176
|
setFullProps(instance, rawProps, props, attrs);
|
|
6174
6177
|
for (const key in instance.propsOptions[0]) {
|
|
6175
6178
|
if (!(key in props)) {
|
|
6176
|
-
props[key] =
|
|
6179
|
+
props[key] = void 0;
|
|
6177
6180
|
}
|
|
6178
6181
|
}
|
|
6179
6182
|
{
|
|
@@ -6256,13 +6259,13 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
|
|
|
6256
6259
|
((kebabKey = hyphenate(key)) === key || !hasOwn(rawProps, kebabKey))) {
|
|
6257
6260
|
if (options) {
|
|
6258
6261
|
if (rawPrevProps && // for camelCase
|
|
6259
|
-
(rawPrevProps[key] !==
|
|
6260
|
-
rawPrevProps[kebabKey] !==
|
|
6262
|
+
(rawPrevProps[key] !== void 0 || // for kebab-case
|
|
6263
|
+
rawPrevProps[kebabKey] !== void 0)) {
|
|
6261
6264
|
props[key] = resolvePropValue(
|
|
6262
6265
|
options,
|
|
6263
6266
|
rawCurrentProps,
|
|
6264
6267
|
key,
|
|
6265
|
-
|
|
6268
|
+
void 0,
|
|
6266
6269
|
instance,
|
|
6267
6270
|
true
|
|
6268
6271
|
);
|
|
@@ -6334,7 +6337,7 @@ function resolvePropValue(options, props, key, value, instance, isAbsent) {
|
|
|
6334
6337
|
const opt = options[key];
|
|
6335
6338
|
if (opt != null) {
|
|
6336
6339
|
const hasDefault = hasOwn(opt, "default");
|
|
6337
|
-
if (hasDefault && value ===
|
|
6340
|
+
if (hasDefault && value === void 0) {
|
|
6338
6341
|
const defaultValue = opt.default;
|
|
6339
6342
|
if (opt.type !== Function && !opt.skipFactory && isFunction(defaultValue)) {
|
|
6340
6343
|
const { propsDefaults } = instance;
|
|
@@ -6580,7 +6583,7 @@ const normalizeSlot = (key, rawSlot, ctx) => {
|
|
|
6580
6583
|
return rawSlot;
|
|
6581
6584
|
}
|
|
6582
6585
|
const normalized = withCtx((...args) => {
|
|
6583
|
-
if (currentInstance && (!ctx
|
|
6586
|
+
if (currentInstance && !(ctx === null && currentRenderingInstance) && !(ctx && ctx.root !== currentInstance.root)) {
|
|
6584
6587
|
warn$1(
|
|
6585
6588
|
`Slot "${key}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`
|
|
6586
6589
|
);
|
|
@@ -6619,7 +6622,7 @@ const normalizeVNodeSlots = (instance, children) => {
|
|
|
6619
6622
|
};
|
|
6620
6623
|
const assignSlots = (slots, children, optimized) => {
|
|
6621
6624
|
for (const key in children) {
|
|
6622
|
-
if (optimized || key
|
|
6625
|
+
if (optimized || !isInternalKey(key)) {
|
|
6623
6626
|
slots[key] = children[key];
|
|
6624
6627
|
}
|
|
6625
6628
|
}
|
|
@@ -6701,7 +6704,7 @@ function endMeasure(instance, type) {
|
|
|
6701
6704
|
}
|
|
6702
6705
|
}
|
|
6703
6706
|
function isSupported() {
|
|
6704
|
-
if (supported !==
|
|
6707
|
+
if (supported !== void 0) {
|
|
6705
6708
|
return supported;
|
|
6706
6709
|
}
|
|
6707
6710
|
if (typeof window !== "undefined" && window.performance) {
|
|
@@ -6740,7 +6743,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6740
6743
|
setScopeId: hostSetScopeId = NOOP,
|
|
6741
6744
|
insertStaticContent: hostInsertStaticContent
|
|
6742
6745
|
} = options;
|
|
6743
|
-
const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, namespace =
|
|
6746
|
+
const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, namespace = void 0, slotScopeIds = null, optimized = isHmrUpdating ? false : !!n2.dynamicChildren) => {
|
|
6744
6747
|
if (n1 === n2) {
|
|
6745
6748
|
return;
|
|
6746
6749
|
}
|
|
@@ -7305,8 +7308,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7305
7308
|
endMeasure(instance, `init`);
|
|
7306
7309
|
}
|
|
7307
7310
|
}
|
|
7311
|
+
if (isHmrUpdating) initialVNode.el = null;
|
|
7308
7312
|
if (instance.asyncDep) {
|
|
7309
|
-
if (isHmrUpdating) initialVNode.el = null;
|
|
7310
7313
|
parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
|
|
7311
7314
|
if (!initialVNode.el) {
|
|
7312
7315
|
const placeholder = instance.subTree = createVNode(Comment);
|
|
@@ -7535,8 +7538,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7535
7538
|
effect.scheduler = () => queueJob(job);
|
|
7536
7539
|
toggleRecurse(instance, true);
|
|
7537
7540
|
{
|
|
7538
|
-
effect.onTrack = instance.rtc ? (e) => invokeArrayFns(instance.rtc, e) :
|
|
7539
|
-
effect.onTrigger = instance.rtg ? (e) => invokeArrayFns(instance.rtg, e) :
|
|
7541
|
+
effect.onTrack = instance.rtc ? (e) => invokeArrayFns(instance.rtc, e) : void 0;
|
|
7542
|
+
effect.onTrigger = instance.rtg ? (e) => invokeArrayFns(instance.rtg, e) : void 0;
|
|
7540
7543
|
}
|
|
7541
7544
|
update();
|
|
7542
7545
|
};
|
|
@@ -7783,7 +7786,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7783
7786
|
}
|
|
7784
7787
|
}
|
|
7785
7788
|
}
|
|
7786
|
-
if (newIndex ===
|
|
7789
|
+
if (newIndex === void 0) {
|
|
7787
7790
|
unmount(prevChild, parentComponent, parentSuspense, true);
|
|
7788
7791
|
} else {
|
|
7789
7792
|
newIndexToOldIndexMap[newIndex - s2] = i + 1;
|
|
@@ -7868,7 +7871,13 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7868
7871
|
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
|
|
7869
7872
|
} else {
|
|
7870
7873
|
const { leave, delayLeave, afterLeave } = transition;
|
|
7871
|
-
const remove2 = () =>
|
|
7874
|
+
const remove2 = () => {
|
|
7875
|
+
if (vnode.ctx.isUnmounted) {
|
|
7876
|
+
hostRemove(el);
|
|
7877
|
+
} else {
|
|
7878
|
+
hostInsert(el, container, anchor);
|
|
7879
|
+
}
|
|
7880
|
+
};
|
|
7872
7881
|
const performLeave = () => {
|
|
7873
7882
|
leave(el, () => {
|
|
7874
7883
|
remove2();
|
|
@@ -7901,10 +7910,12 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7901
7910
|
optimized = false;
|
|
7902
7911
|
}
|
|
7903
7912
|
if (ref != null) {
|
|
7913
|
+
pauseTracking();
|
|
7904
7914
|
setRef(ref, null, parentSuspense, vnode, true);
|
|
7915
|
+
resetTracking();
|
|
7905
7916
|
}
|
|
7906
7917
|
if (cacheIndex != null) {
|
|
7907
|
-
parentComponent.renderCache[cacheIndex] =
|
|
7918
|
+
parentComponent.renderCache[cacheIndex] = void 0;
|
|
7908
7919
|
}
|
|
7909
7920
|
if (shapeFlag & 256) {
|
|
7910
7921
|
parentComponent.ctx.deactivate(vnode);
|
|
@@ -8013,12 +8024,27 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8013
8024
|
if (instance.type.__hmrId) {
|
|
8014
8025
|
unregisterHMR(instance);
|
|
8015
8026
|
}
|
|
8016
|
-
const {
|
|
8027
|
+
const {
|
|
8028
|
+
bum,
|
|
8029
|
+
scope,
|
|
8030
|
+
job,
|
|
8031
|
+
subTree,
|
|
8032
|
+
um,
|
|
8033
|
+
m,
|
|
8034
|
+
a,
|
|
8035
|
+
parent,
|
|
8036
|
+
slots: { __: slotCacheKeys }
|
|
8037
|
+
} = instance;
|
|
8017
8038
|
invalidateMount(m);
|
|
8018
8039
|
invalidateMount(a);
|
|
8019
8040
|
if (bum) {
|
|
8020
8041
|
invokeArrayFns(bum);
|
|
8021
8042
|
}
|
|
8043
|
+
if (parent && isArray(slotCacheKeys)) {
|
|
8044
|
+
slotCacheKeys.forEach((v) => {
|
|
8045
|
+
parent.renderCache[v] = void 0;
|
|
8046
|
+
});
|
|
8047
|
+
}
|
|
8022
8048
|
scope.stop();
|
|
8023
8049
|
if (job) {
|
|
8024
8050
|
job.flags |= 8;
|
|
@@ -8107,7 +8133,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8107
8133
|
};
|
|
8108
8134
|
}
|
|
8109
8135
|
function resolveChildrenNamespace({ type, props }, currentNamespace) {
|
|
8110
|
-
return currentNamespace === "svg" && type === "foreignObject" || currentNamespace === "mathml" && type === "annotation-xml" && props && props.encoding && props.encoding.includes("html") ?
|
|
8136
|
+
return currentNamespace === "svg" && type === "foreignObject" || currentNamespace === "mathml" && type === "annotation-xml" && props && props.encoding && props.encoding.includes("html") ? void 0 : currentNamespace;
|
|
8111
8137
|
}
|
|
8112
8138
|
function toggleRecurse({ effect, job }, allowed) {
|
|
8113
8139
|
if (allowed) {
|
|
@@ -8142,6 +8168,9 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
8142
8168
|
if (c2.type === Comment && !c2.el) {
|
|
8143
8169
|
c2.el = c1.el;
|
|
8144
8170
|
}
|
|
8171
|
+
{
|
|
8172
|
+
c2.el && (c2.el.__vnode = c2);
|
|
8173
|
+
}
|
|
8145
8174
|
}
|
|
8146
8175
|
}
|
|
8147
8176
|
}
|
|
@@ -8243,17 +8272,17 @@ function watch(source, cb, options) {
|
|
|
8243
8272
|
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
8244
8273
|
const { immediate, deep, flush, once } = options;
|
|
8245
8274
|
if (!cb) {
|
|
8246
|
-
if (immediate !==
|
|
8275
|
+
if (immediate !== void 0) {
|
|
8247
8276
|
warn$1(
|
|
8248
8277
|
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
8249
8278
|
);
|
|
8250
8279
|
}
|
|
8251
|
-
if (deep !==
|
|
8280
|
+
if (deep !== void 0) {
|
|
8252
8281
|
warn$1(
|
|
8253
8282
|
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
8254
8283
|
);
|
|
8255
8284
|
}
|
|
8256
|
-
if (once !==
|
|
8285
|
+
if (once !== void 0) {
|
|
8257
8286
|
warn$1(
|
|
8258
8287
|
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
8259
8288
|
);
|
|
@@ -8496,7 +8525,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
8496
8525
|
function normalizeEmitsOptions(comp, appContext, asMixin = false) {
|
|
8497
8526
|
const cache = appContext.emitsCache;
|
|
8498
8527
|
const cached = cache.get(comp);
|
|
8499
|
-
if (cached !==
|
|
8528
|
+
if (cached !== void 0) {
|
|
8500
8529
|
return cached;
|
|
8501
8530
|
}
|
|
8502
8531
|
const raw = comp.emits;
|
|
@@ -8626,7 +8655,7 @@ function renderComponentRoot(instance) {
|
|
|
8626
8655
|
result = createVNode(Comment);
|
|
8627
8656
|
}
|
|
8628
8657
|
let root = result;
|
|
8629
|
-
let setRoot =
|
|
8658
|
+
let setRoot = void 0;
|
|
8630
8659
|
if (result.patchFlag > 0 && result.patchFlag & 2048) {
|
|
8631
8660
|
[root, setRoot] = getChildRoot(result);
|
|
8632
8661
|
}
|
|
@@ -8699,7 +8728,7 @@ const getChildRoot = (vnode) => {
|
|
|
8699
8728
|
const dynamicChildren = vnode.dynamicChildren;
|
|
8700
8729
|
const childRoot = filterSingleRoot(rawChildren, false);
|
|
8701
8730
|
if (!childRoot) {
|
|
8702
|
-
return [vnode,
|
|
8731
|
+
return [vnode, void 0];
|
|
8703
8732
|
} else if (childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) {
|
|
8704
8733
|
return getChildRoot(childRoot);
|
|
8705
8734
|
}
|
|
@@ -9116,7 +9145,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
9116
9145
|
parentSuspense.deps++;
|
|
9117
9146
|
}
|
|
9118
9147
|
}
|
|
9119
|
-
const timeout = vnode.props ? toNumber(vnode.props.timeout) :
|
|
9148
|
+
const timeout = vnode.props ? toNumber(vnode.props.timeout) : void 0;
|
|
9120
9149
|
{
|
|
9121
9150
|
assertNumber(timeout, `Suspense timeout`);
|
|
9122
9151
|
}
|
|
@@ -9949,8 +9978,8 @@ function setupComponent(instance, isSSR = false, optimized = false) {
|
|
|
9949
9978
|
const { props, children } = instance.vnode;
|
|
9950
9979
|
const isStateful = isStatefulComponent(instance);
|
|
9951
9980
|
initProps(instance, props, isStateful, isSSR);
|
|
9952
|
-
initSlots(instance, children, optimized);
|
|
9953
|
-
const setupResult = isStateful ? setupStatefulComponent(instance, isSSR) :
|
|
9981
|
+
initSlots(instance, children, optimized || isSSR);
|
|
9982
|
+
const setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : void 0;
|
|
9954
9983
|
isSSR && setInSSRSetupState(false);
|
|
9955
9984
|
return setupResult;
|
|
9956
9985
|
}
|
|
@@ -10048,7 +10077,7 @@ function handleSetupResult(instance, setupResult, isSSR) {
|
|
|
10048
10077
|
{
|
|
10049
10078
|
exposeSetupStateOnRenderContext(instance);
|
|
10050
10079
|
}
|
|
10051
|
-
} else if (setupResult !==
|
|
10080
|
+
} else if (setupResult !== void 0) {
|
|
10052
10081
|
warn$1(
|
|
10053
10082
|
`setup() should return an object. Received: ${setupResult === null ? "null" : typeof setupResult}`
|
|
10054
10083
|
);
|
|
@@ -10280,13 +10309,15 @@ function initCustomFormatter() {
|
|
|
10280
10309
|
if (obj.__isVue) {
|
|
10281
10310
|
return ["div", vueStyle, `VueInstance`];
|
|
10282
10311
|
} else if (isRef(obj)) {
|
|
10312
|
+
pauseTracking();
|
|
10313
|
+
const value = obj.value;
|
|
10314
|
+
resetTracking();
|
|
10283
10315
|
return [
|
|
10284
10316
|
"div",
|
|
10285
10317
|
{},
|
|
10286
10318
|
["span", vueStyle, genRefFlag(obj)],
|
|
10287
10319
|
"<",
|
|
10288
|
-
|
|
10289
|
-
formatValue("_value" in obj ? obj._value : obj),
|
|
10320
|
+
formatValue(value),
|
|
10290
10321
|
`>`
|
|
10291
10322
|
];
|
|
10292
10323
|
} else if (isReactive(obj)) {
|
|
@@ -10467,7 +10498,7 @@ function isMemoSame(cached, memo) {
|
|
|
10467
10498
|
return true;
|
|
10468
10499
|
}
|
|
10469
10500
|
|
|
10470
|
-
const version = "3.5.
|
|
10501
|
+
const version = "3.5.14";
|
|
10471
10502
|
const warn = warn$1 ;
|
|
10472
10503
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10473
10504
|
const devtools = devtools$1 ;
|
|
@@ -10489,7 +10520,7 @@ const resolveFilter = null;
|
|
|
10489
10520
|
const compatUtils = null;
|
|
10490
10521
|
const DeprecationTypes = null;
|
|
10491
10522
|
|
|
10492
|
-
let policy =
|
|
10523
|
+
let policy = void 0;
|
|
10493
10524
|
const tt = typeof window !== "undefined" && window.trustedTypes;
|
|
10494
10525
|
if (tt) {
|
|
10495
10526
|
try {
|
|
@@ -10715,11 +10746,11 @@ function resolveTransitionProps(rawProps) {
|
|
|
10715
10746
|
callHook(onLeave, [el, resolve]);
|
|
10716
10747
|
},
|
|
10717
10748
|
onEnterCancelled(el) {
|
|
10718
|
-
finishEnter(el, false,
|
|
10749
|
+
finishEnter(el, false, void 0, true);
|
|
10719
10750
|
callHook(onEnterCancelled, [el]);
|
|
10720
10751
|
},
|
|
10721
10752
|
onAppearCancelled(el) {
|
|
10722
|
-
finishEnter(el, true,
|
|
10753
|
+
finishEnter(el, true, void 0, true);
|
|
10723
10754
|
callHook(onAppearCancelled, [el]);
|
|
10724
10755
|
},
|
|
10725
10756
|
onLeaveCancelled(el) {
|
|
@@ -10755,7 +10786,7 @@ function removeTransitionClass(el, cls) {
|
|
|
10755
10786
|
if (_vtc) {
|
|
10756
10787
|
_vtc.delete(cls);
|
|
10757
10788
|
if (!_vtc.size) {
|
|
10758
|
-
el[vtcKey] =
|
|
10789
|
+
el[vtcKey] = void 0;
|
|
10759
10790
|
}
|
|
10760
10791
|
}
|
|
10761
10792
|
}
|
|
@@ -11180,7 +11211,7 @@ function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
|
11180
11211
|
addEventListener(el, name, invoker, options);
|
|
11181
11212
|
} else if (existingInvoker) {
|
|
11182
11213
|
removeEventListener(el, name, existingInvoker, options);
|
|
11183
|
-
invokers[rawName] =
|
|
11214
|
+
invokers[rawName] = void 0;
|
|
11184
11215
|
}
|
|
11185
11216
|
}
|
|
11186
11217
|
}
|
|
@@ -11285,7 +11316,7 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
11285
11316
|
}
|
|
11286
11317
|
return false;
|
|
11287
11318
|
}
|
|
11288
|
-
if (key === "spellcheck" || key === "draggable" || key === "translate") {
|
|
11319
|
+
if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") {
|
|
11289
11320
|
return false;
|
|
11290
11321
|
}
|
|
11291
11322
|
if (key === "form") {
|
|
@@ -11392,7 +11423,7 @@ class VueElement extends BaseClass {
|
|
|
11392
11423
|
} else {
|
|
11393
11424
|
if (parent && parent._pendingResolve) {
|
|
11394
11425
|
this._pendingResolve = parent._pendingResolve.then(() => {
|
|
11395
|
-
this._pendingResolve =
|
|
11426
|
+
this._pendingResolve = void 0;
|
|
11396
11427
|
this._resolveDef();
|
|
11397
11428
|
});
|
|
11398
11429
|
} else {
|
|
@@ -11416,7 +11447,7 @@ class VueElement extends BaseClass {
|
|
|
11416
11447
|
this._ob = null;
|
|
11417
11448
|
}
|
|
11418
11449
|
this._app && this._app.unmount();
|
|
11419
|
-
if (this._instance) this._instance.ce =
|
|
11450
|
+
if (this._instance) this._instance.ce = void 0;
|
|
11420
11451
|
this._app = this._instance = null;
|
|
11421
11452
|
}
|
|
11422
11453
|
});
|
|
@@ -11439,7 +11470,7 @@ class VueElement extends BaseClass {
|
|
|
11439
11470
|
this._ob.observe(this, { attributes: true });
|
|
11440
11471
|
const resolve = (def, isAsync = false) => {
|
|
11441
11472
|
this._resolved = true;
|
|
11442
|
-
this._pendingResolve =
|
|
11473
|
+
this._pendingResolve = void 0;
|
|
11443
11474
|
const { props, styles } = def;
|
|
11444
11475
|
let numberProps;
|
|
11445
11476
|
if (props && !isArray(props)) {
|
|
@@ -11774,6 +11805,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
|
11774
11805
|
instance.vnode.el,
|
|
11775
11806
|
moveClass
|
|
11776
11807
|
)) {
|
|
11808
|
+
prevChildren = [];
|
|
11777
11809
|
return;
|
|
11778
11810
|
}
|
|
11779
11811
|
prevChildren.forEach(callPendingCbs);
|
|
@@ -11797,6 +11829,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
|
11797
11829
|
};
|
|
11798
11830
|
el.addEventListener("transitionend", cb);
|
|
11799
11831
|
});
|
|
11832
|
+
prevChildren = [];
|
|
11800
11833
|
});
|
|
11801
11834
|
return () => {
|
|
11802
11835
|
const rawProps = toRaw(props);
|