@vuact/runtime-dom 3.5.13-vuact.2 → 3.5.16-vuact.0
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 +28 -21
- package/dist/runtime-dom.cjs.prod.js +28 -21
- package/dist/runtime-dom.esm-browser.js +213 -151
- package/dist/runtime-dom.esm-browser.prod.js +3 -2
- package/dist/runtime-dom.esm-bundler.js +28 -21
- package/dist/runtime-dom.global.js +213 -151
- 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
|
+
* @vue/runtime-dom v3.5.16
|
|
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
|
}
|
|
@@ -2071,11 +2071,11 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
2071
2071
|
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
|
2072
2072
|
boundCleanup
|
|
2073
2073
|
];
|
|
2074
|
+
oldValue = newValue;
|
|
2074
2075
|
call ? call(cb, 3, args) : (
|
|
2075
2076
|
// @ts-expect-error
|
|
2076
2077
|
cb(...args)
|
|
2077
2078
|
);
|
|
2078
|
-
oldValue = newValue;
|
|
2079
2079
|
} finally {
|
|
2080
2080
|
activeWatcher = currentWatcher;
|
|
2081
2081
|
}
|
|
@@ -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
|
});
|
|
@@ -3000,15 +3000,16 @@ const TeleportImpl = {
|
|
|
3000
3000
|
updateCssVars(n2, true);
|
|
3001
3001
|
}
|
|
3002
3002
|
if (isTeleportDeferred(n2.props)) {
|
|
3003
|
+
n2.el.__isMounted = false;
|
|
3003
3004
|
queuePostRenderEffect(() => {
|
|
3004
3005
|
mountToTarget();
|
|
3005
|
-
n2.el.__isMounted
|
|
3006
|
+
delete n2.el.__isMounted;
|
|
3006
3007
|
}, parentSuspense);
|
|
3007
3008
|
} else {
|
|
3008
3009
|
mountToTarget();
|
|
3009
3010
|
}
|
|
3010
3011
|
} else {
|
|
3011
|
-
if (isTeleportDeferred(n2.props) &&
|
|
3012
|
+
if (isTeleportDeferred(n2.props) && n1.el.__isMounted === false) {
|
|
3012
3013
|
queuePostRenderEffect(() => {
|
|
3013
3014
|
TeleportImpl.process(
|
|
3014
3015
|
n1,
|
|
@@ -3022,7 +3023,6 @@ const TeleportImpl = {
|
|
|
3022
3023
|
optimized,
|
|
3023
3024
|
internals
|
|
3024
3025
|
);
|
|
3025
|
-
delete n1.el.__isMounted;
|
|
3026
3026
|
}, parentSuspense);
|
|
3027
3027
|
return;
|
|
3028
3028
|
}
|
|
@@ -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) {
|
|
@@ -4010,6 +4010,8 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4010
4010
|
) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
|
|
4011
4011
|
const content = el.content.firstChild;
|
|
4012
4012
|
if (needCallTransitionHooks) {
|
|
4013
|
+
const cls = content.getAttribute("class");
|
|
4014
|
+
if (cls) content.$cls = cls;
|
|
4013
4015
|
transition.beforeEnter(content);
|
|
4014
4016
|
}
|
|
4015
4017
|
replaceNode(content, el, parentComponent);
|
|
@@ -4074,7 +4076,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4074
4076
|
}
|
|
4075
4077
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
4076
4078
|
key[0] === "." || isCustomElement) {
|
|
4077
|
-
patchProp(el, key, null, props[key],
|
|
4079
|
+
patchProp(el, key, null, props[key], void 0, parentComponent);
|
|
4078
4080
|
}
|
|
4079
4081
|
}
|
|
4080
4082
|
}
|
|
@@ -4262,7 +4264,12 @@ function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
|
4262
4264
|
let actual;
|
|
4263
4265
|
let expected;
|
|
4264
4266
|
if (key === "class") {
|
|
4265
|
-
|
|
4267
|
+
if (el.$cls) {
|
|
4268
|
+
actual = el.$cls;
|
|
4269
|
+
delete el.$cls;
|
|
4270
|
+
} else {
|
|
4271
|
+
actual = el.getAttribute("class");
|
|
4272
|
+
}
|
|
4266
4273
|
expected = normalizeClass(clientValue);
|
|
4267
4274
|
if (!isSetEqual(toClassSet(actual || ""), toClassSet(expected))) {
|
|
4268
4275
|
mismatchType = 2 /* CLASS */;
|
|
@@ -4557,14 +4564,25 @@ function defineAsyncComponent(source) {
|
|
|
4557
4564
|
name: "AsyncComponentWrapper",
|
|
4558
4565
|
__asyncLoader: load,
|
|
4559
4566
|
__asyncHydrate(el, instance, hydrate) {
|
|
4567
|
+
let patched = false;
|
|
4560
4568
|
const doHydrate = hydrateStrategy ? () => {
|
|
4569
|
+
const performHydrate = () => {
|
|
4570
|
+
if (patched) {
|
|
4571
|
+
warn$1(
|
|
4572
|
+
`Skipping lazy hydration for component '${getComponentName(resolvedComp)}': it was updated before lazy hydration performed.`
|
|
4573
|
+
);
|
|
4574
|
+
return;
|
|
4575
|
+
}
|
|
4576
|
+
hydrate();
|
|
4577
|
+
};
|
|
4561
4578
|
const teardown = hydrateStrategy(
|
|
4562
|
-
|
|
4579
|
+
performHydrate,
|
|
4563
4580
|
(cb) => forEachElement(el, cb)
|
|
4564
4581
|
);
|
|
4565
4582
|
if (teardown) {
|
|
4566
4583
|
(instance.bum || (instance.bum = [])).push(teardown);
|
|
4567
4584
|
}
|
|
4585
|
+
(instance.u || (instance.u = [])).push(() => patched = true);
|
|
4568
4586
|
} : hydrate;
|
|
4569
4587
|
if (resolvedComp) {
|
|
4570
4588
|
doHydrate();
|
|
@@ -4734,6 +4752,9 @@ const KeepAliveImpl = {
|
|
|
4734
4752
|
{
|
|
4735
4753
|
devtoolsComponentAdded(instance2);
|
|
4736
4754
|
}
|
|
4755
|
+
{
|
|
4756
|
+
instance2.__keepAliveStorageContainer = storageContainer;
|
|
4757
|
+
}
|
|
4737
4758
|
};
|
|
4738
4759
|
function unmount(vnode) {
|
|
4739
4760
|
resetShapeFlag(vnode);
|
|
@@ -5024,16 +5045,18 @@ function renderList(source, renderItem, cache, index) {
|
|
|
5024
5045
|
if (sourceIsArray || isString(source)) {
|
|
5025
5046
|
const sourceIsReactiveArray = sourceIsArray && isReactive(source);
|
|
5026
5047
|
let needsWrap = false;
|
|
5048
|
+
let isReadonlySource = false;
|
|
5027
5049
|
if (sourceIsReactiveArray) {
|
|
5028
5050
|
needsWrap = !isShallow(source);
|
|
5051
|
+
isReadonlySource = isReadonly(source);
|
|
5029
5052
|
source = shallowReadArray(source);
|
|
5030
5053
|
}
|
|
5031
5054
|
ret = new Array(source.length);
|
|
5032
5055
|
for (let i = 0, l = source.length; i < l; i++) {
|
|
5033
5056
|
ret[i] = renderItem(
|
|
5034
|
-
needsWrap ? toReactive(source[i]) : source[i],
|
|
5057
|
+
needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i])) : toReactive(source[i]) : source[i],
|
|
5035
5058
|
i,
|
|
5036
|
-
|
|
5059
|
+
void 0,
|
|
5037
5060
|
cached && cached[i]
|
|
5038
5061
|
);
|
|
5039
5062
|
}
|
|
@@ -5043,13 +5066,13 @@ function renderList(source, renderItem, cache, index) {
|
|
|
5043
5066
|
}
|
|
5044
5067
|
ret = new Array(source);
|
|
5045
5068
|
for (let i = 0; i < source; i++) {
|
|
5046
|
-
ret[i] = renderItem(i + 1, i,
|
|
5069
|
+
ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
|
|
5047
5070
|
}
|
|
5048
5071
|
} else if (isObject(source)) {
|
|
5049
5072
|
if (source[Symbol.iterator]) {
|
|
5050
5073
|
ret = Array.from(
|
|
5051
5074
|
source,
|
|
5052
|
-
(item, i) => renderItem(item, i,
|
|
5075
|
+
(item, i) => renderItem(item, i, void 0, cached && cached[i])
|
|
5053
5076
|
);
|
|
5054
5077
|
} else {
|
|
5055
5078
|
const keys = Object.keys(source);
|
|
@@ -5192,7 +5215,7 @@ const PublicInstanceProxyHandlers = {
|
|
|
5192
5215
|
let normalizedProps;
|
|
5193
5216
|
if (key[0] !== "$") {
|
|
5194
5217
|
const n = accessCache[key];
|
|
5195
|
-
if (n !==
|
|
5218
|
+
if (n !== void 0) {
|
|
5196
5219
|
switch (n) {
|
|
5197
5220
|
case 1 /* SETUP */:
|
|
5198
5221
|
return setupState[key];
|
|
@@ -5937,8 +5960,8 @@ function createAppContext() {
|
|
|
5937
5960
|
performance: false,
|
|
5938
5961
|
globalProperties: {},
|
|
5939
5962
|
optionMergeStrategies: {},
|
|
5940
|
-
errorHandler:
|
|
5941
|
-
warnHandler:
|
|
5963
|
+
errorHandler: void 0,
|
|
5964
|
+
warnHandler: void 0,
|
|
5942
5965
|
compilerOptions: {}
|
|
5943
5966
|
},
|
|
5944
5967
|
mixins: [],
|
|
@@ -6049,15 +6072,13 @@ function createAppAPI(render, hydrate) {
|
|
|
6049
6072
|
if (namespace === true) {
|
|
6050
6073
|
namespace = "svg";
|
|
6051
6074
|
} else if (namespace === false) {
|
|
6052
|
-
namespace =
|
|
6075
|
+
namespace = void 0;
|
|
6053
6076
|
}
|
|
6054
6077
|
{
|
|
6055
6078
|
context.reload = () => {
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
namespace
|
|
6060
|
-
);
|
|
6079
|
+
const cloned = cloneVNode(vnode);
|
|
6080
|
+
cloned.el = null;
|
|
6081
|
+
render(cloned, rootContainer, namespace);
|
|
6061
6082
|
};
|
|
6062
6083
|
}
|
|
6063
6084
|
if (isHydrate && hydrate) {
|
|
@@ -6107,9 +6128,15 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6107
6128
|
},
|
|
6108
6129
|
provide(key, value) {
|
|
6109
6130
|
if (key in context.provides) {
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6131
|
+
if (hasOwn(context.provides, key)) {
|
|
6132
|
+
warn$1(
|
|
6133
|
+
`App already provides property with key "${String(key)}". It will be overwritten with the new value.`
|
|
6134
|
+
);
|
|
6135
|
+
} else {
|
|
6136
|
+
warn$1(
|
|
6137
|
+
`App already provides property with key "${String(key)}" inherited from its parent element. It will be overwritten with the new value.`
|
|
6138
|
+
);
|
|
6139
|
+
}
|
|
6113
6140
|
}
|
|
6114
6141
|
context.provides[key] = value;
|
|
6115
6142
|
return app;
|
|
@@ -6146,7 +6173,7 @@ function provide(key, value) {
|
|
|
6146
6173
|
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
6147
6174
|
const instance = currentInstance || currentRenderingInstance;
|
|
6148
6175
|
if (instance || currentApp) {
|
|
6149
|
-
|
|
6176
|
+
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
6150
6177
|
if (provides && key in provides) {
|
|
6151
6178
|
return provides[key];
|
|
6152
6179
|
} else if (arguments.length > 1) {
|
|
@@ -6173,7 +6200,7 @@ function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
|
6173
6200
|
setFullProps(instance, rawProps, props, attrs);
|
|
6174
6201
|
for (const key in instance.propsOptions[0]) {
|
|
6175
6202
|
if (!(key in props)) {
|
|
6176
|
-
props[key] =
|
|
6203
|
+
props[key] = void 0;
|
|
6177
6204
|
}
|
|
6178
6205
|
}
|
|
6179
6206
|
{
|
|
@@ -6256,13 +6283,13 @@ function updateProps(instance, rawProps, rawPrevProps, optimized) {
|
|
|
6256
6283
|
((kebabKey = hyphenate(key)) === key || !hasOwn(rawProps, kebabKey))) {
|
|
6257
6284
|
if (options) {
|
|
6258
6285
|
if (rawPrevProps && // for camelCase
|
|
6259
|
-
(rawPrevProps[key] !==
|
|
6260
|
-
rawPrevProps[kebabKey] !==
|
|
6286
|
+
(rawPrevProps[key] !== void 0 || // for kebab-case
|
|
6287
|
+
rawPrevProps[kebabKey] !== void 0)) {
|
|
6261
6288
|
props[key] = resolvePropValue(
|
|
6262
6289
|
options,
|
|
6263
6290
|
rawCurrentProps,
|
|
6264
6291
|
key,
|
|
6265
|
-
|
|
6292
|
+
void 0,
|
|
6266
6293
|
instance,
|
|
6267
6294
|
true
|
|
6268
6295
|
);
|
|
@@ -6334,7 +6361,7 @@ function resolvePropValue(options, props, key, value, instance, isAbsent) {
|
|
|
6334
6361
|
const opt = options[key];
|
|
6335
6362
|
if (opt != null) {
|
|
6336
6363
|
const hasDefault = hasOwn(opt, "default");
|
|
6337
|
-
if (hasDefault && value ===
|
|
6364
|
+
if (hasDefault && value === void 0) {
|
|
6338
6365
|
const defaultValue = opt.default;
|
|
6339
6366
|
if (opt.type !== Function && !opt.skipFactory && isFunction(defaultValue)) {
|
|
6340
6367
|
const { propsDefaults } = instance;
|
|
@@ -6580,7 +6607,7 @@ const normalizeSlot = (key, rawSlot, ctx) => {
|
|
|
6580
6607
|
return rawSlot;
|
|
6581
6608
|
}
|
|
6582
6609
|
const normalized = withCtx((...args) => {
|
|
6583
|
-
if (currentInstance && (!ctx
|
|
6610
|
+
if (currentInstance && !(ctx === null && currentRenderingInstance) && !(ctx && ctx.root !== currentInstance.root)) {
|
|
6584
6611
|
warn$1(
|
|
6585
6612
|
`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
6613
|
);
|
|
@@ -6619,7 +6646,7 @@ const normalizeVNodeSlots = (instance, children) => {
|
|
|
6619
6646
|
};
|
|
6620
6647
|
const assignSlots = (slots, children, optimized) => {
|
|
6621
6648
|
for (const key in children) {
|
|
6622
|
-
if (optimized || key
|
|
6649
|
+
if (optimized || !isInternalKey(key)) {
|
|
6623
6650
|
slots[key] = children[key];
|
|
6624
6651
|
}
|
|
6625
6652
|
}
|
|
@@ -6701,7 +6728,7 @@ function endMeasure(instance, type) {
|
|
|
6701
6728
|
}
|
|
6702
6729
|
}
|
|
6703
6730
|
function isSupported() {
|
|
6704
|
-
if (supported !==
|
|
6731
|
+
if (supported !== void 0) {
|
|
6705
6732
|
return supported;
|
|
6706
6733
|
}
|
|
6707
6734
|
if (typeof window !== "undefined" && window.performance) {
|
|
@@ -6740,7 +6767,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
6740
6767
|
setScopeId: hostSetScopeId = NOOP,
|
|
6741
6768
|
insertStaticContent: hostInsertStaticContent
|
|
6742
6769
|
} = options;
|
|
6743
|
-
const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, namespace =
|
|
6770
|
+
const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, namespace = void 0, slotScopeIds = null, optimized = isHmrUpdating ? false : !!n2.dynamicChildren) => {
|
|
6744
6771
|
if (n1 === n2) {
|
|
6745
6772
|
return;
|
|
6746
6773
|
}
|
|
@@ -7143,7 +7170,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7143
7170
|
(oldVNode.type === Fragment || // - In the case of different nodes, there is going to be a replacement
|
|
7144
7171
|
// which also requires the correct parent container
|
|
7145
7172
|
!isSameVNodeType(oldVNode, newVNode) || // - In the case of a component, it could contain anything.
|
|
7146
|
-
oldVNode.shapeFlag & (6 | 64)) ? hostParentNode(oldVNode.el) : (
|
|
7173
|
+
oldVNode.shapeFlag & (6 | 64 | 128)) ? hostParentNode(oldVNode.el) : (
|
|
7147
7174
|
// In other cases, the parent container is not actually used so we
|
|
7148
7175
|
// just pass the block element here to avoid a DOM parentNode call.
|
|
7149
7176
|
fallbackContainer
|
|
@@ -7305,8 +7332,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7305
7332
|
endMeasure(instance, `init`);
|
|
7306
7333
|
}
|
|
7307
7334
|
}
|
|
7335
|
+
if (isHmrUpdating) initialVNode.el = null;
|
|
7308
7336
|
if (instance.asyncDep) {
|
|
7309
|
-
if (isHmrUpdating) initialVNode.el = null;
|
|
7310
7337
|
parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
|
|
7311
7338
|
if (!initialVNode.el) {
|
|
7312
7339
|
const placeholder = instance.subTree = createVNode(Comment);
|
|
@@ -7535,8 +7562,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7535
7562
|
effect.scheduler = () => queueJob(job);
|
|
7536
7563
|
toggleRecurse(instance, true);
|
|
7537
7564
|
{
|
|
7538
|
-
effect.onTrack = instance.rtc ? (e) => invokeArrayFns(instance.rtc, e) :
|
|
7539
|
-
effect.onTrigger = instance.rtg ? (e) => invokeArrayFns(instance.rtg, e) :
|
|
7565
|
+
effect.onTrack = instance.rtc ? (e) => invokeArrayFns(instance.rtc, e) : void 0;
|
|
7566
|
+
effect.onTrigger = instance.rtg ? (e) => invokeArrayFns(instance.rtg, e) : void 0;
|
|
7540
7567
|
}
|
|
7541
7568
|
update();
|
|
7542
7569
|
};
|
|
@@ -7783,7 +7810,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7783
7810
|
}
|
|
7784
7811
|
}
|
|
7785
7812
|
}
|
|
7786
|
-
if (newIndex ===
|
|
7813
|
+
if (newIndex === void 0) {
|
|
7787
7814
|
unmount(prevChild, parentComponent, parentSuspense, true);
|
|
7788
7815
|
} else {
|
|
7789
7816
|
newIndexToOldIndexMap[newIndex - s2] = i + 1;
|
|
@@ -7868,7 +7895,13 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7868
7895
|
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
|
|
7869
7896
|
} else {
|
|
7870
7897
|
const { leave, delayLeave, afterLeave } = transition;
|
|
7871
|
-
const remove2 = () =>
|
|
7898
|
+
const remove2 = () => {
|
|
7899
|
+
if (vnode.ctx.isUnmounted) {
|
|
7900
|
+
hostRemove(el);
|
|
7901
|
+
} else {
|
|
7902
|
+
hostInsert(el, container, anchor);
|
|
7903
|
+
}
|
|
7904
|
+
};
|
|
7872
7905
|
const performLeave = () => {
|
|
7873
7906
|
leave(el, () => {
|
|
7874
7907
|
remove2();
|
|
@@ -7901,10 +7934,12 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7901
7934
|
optimized = false;
|
|
7902
7935
|
}
|
|
7903
7936
|
if (ref != null) {
|
|
7937
|
+
pauseTracking();
|
|
7904
7938
|
setRef(ref, null, parentSuspense, vnode, true);
|
|
7939
|
+
resetTracking();
|
|
7905
7940
|
}
|
|
7906
7941
|
if (cacheIndex != null) {
|
|
7907
|
-
parentComponent.renderCache[cacheIndex] =
|
|
7942
|
+
parentComponent.renderCache[cacheIndex] = void 0;
|
|
7908
7943
|
}
|
|
7909
7944
|
if (shapeFlag & 256) {
|
|
7910
7945
|
parentComponent.ctx.deactivate(vnode);
|
|
@@ -8013,12 +8048,27 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8013
8048
|
if (instance.type.__hmrId) {
|
|
8014
8049
|
unregisterHMR(instance);
|
|
8015
8050
|
}
|
|
8016
|
-
const {
|
|
8051
|
+
const {
|
|
8052
|
+
bum,
|
|
8053
|
+
scope,
|
|
8054
|
+
job,
|
|
8055
|
+
subTree,
|
|
8056
|
+
um,
|
|
8057
|
+
m,
|
|
8058
|
+
a,
|
|
8059
|
+
parent,
|
|
8060
|
+
slots: { __: slotCacheKeys }
|
|
8061
|
+
} = instance;
|
|
8017
8062
|
invalidateMount(m);
|
|
8018
8063
|
invalidateMount(a);
|
|
8019
8064
|
if (bum) {
|
|
8020
8065
|
invokeArrayFns(bum);
|
|
8021
8066
|
}
|
|
8067
|
+
if (parent && isArray(slotCacheKeys)) {
|
|
8068
|
+
slotCacheKeys.forEach((v) => {
|
|
8069
|
+
parent.renderCache[v] = void 0;
|
|
8070
|
+
});
|
|
8071
|
+
}
|
|
8022
8072
|
scope.stop();
|
|
8023
8073
|
if (job) {
|
|
8024
8074
|
job.flags |= 8;
|
|
@@ -8107,7 +8157,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8107
8157
|
};
|
|
8108
8158
|
}
|
|
8109
8159
|
function resolveChildrenNamespace({ type, props }, currentNamespace) {
|
|
8110
|
-
return currentNamespace === "svg" && type === "foreignObject" || currentNamespace === "mathml" && type === "annotation-xml" && props && props.encoding && props.encoding.includes("html") ?
|
|
8160
|
+
return currentNamespace === "svg" && type === "foreignObject" || currentNamespace === "mathml" && type === "annotation-xml" && props && props.encoding && props.encoding.includes("html") ? void 0 : currentNamespace;
|
|
8111
8161
|
}
|
|
8112
8162
|
function toggleRecurse({ effect, job }, allowed) {
|
|
8113
8163
|
if (allowed) {
|
|
@@ -8142,6 +8192,9 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
8142
8192
|
if (c2.type === Comment && !c2.el) {
|
|
8143
8193
|
c2.el = c1.el;
|
|
8144
8194
|
}
|
|
8195
|
+
{
|
|
8196
|
+
c2.el && (c2.el.__vnode = c2);
|
|
8197
|
+
}
|
|
8145
8198
|
}
|
|
8146
8199
|
}
|
|
8147
8200
|
}
|
|
@@ -8243,17 +8296,17 @@ function watch(source, cb, options) {
|
|
|
8243
8296
|
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
8244
8297
|
const { immediate, deep, flush, once } = options;
|
|
8245
8298
|
if (!cb) {
|
|
8246
|
-
if (immediate !==
|
|
8299
|
+
if (immediate !== void 0) {
|
|
8247
8300
|
warn$1(
|
|
8248
8301
|
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
8249
8302
|
);
|
|
8250
8303
|
}
|
|
8251
|
-
if (deep !==
|
|
8304
|
+
if (deep !== void 0) {
|
|
8252
8305
|
warn$1(
|
|
8253
8306
|
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
8254
8307
|
);
|
|
8255
8308
|
}
|
|
8256
|
-
if (once !==
|
|
8309
|
+
if (once !== void 0) {
|
|
8257
8310
|
warn$1(
|
|
8258
8311
|
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
8259
8312
|
);
|
|
@@ -8496,7 +8549,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
8496
8549
|
function normalizeEmitsOptions(comp, appContext, asMixin = false) {
|
|
8497
8550
|
const cache = appContext.emitsCache;
|
|
8498
8551
|
const cached = cache.get(comp);
|
|
8499
|
-
if (cached !==
|
|
8552
|
+
if (cached !== void 0) {
|
|
8500
8553
|
return cached;
|
|
8501
8554
|
}
|
|
8502
8555
|
const raw = comp.emits;
|
|
@@ -8626,7 +8679,7 @@ function renderComponentRoot(instance) {
|
|
|
8626
8679
|
result = createVNode(Comment);
|
|
8627
8680
|
}
|
|
8628
8681
|
let root = result;
|
|
8629
|
-
let setRoot =
|
|
8682
|
+
let setRoot = void 0;
|
|
8630
8683
|
if (result.patchFlag > 0 && result.patchFlag & 2048) {
|
|
8631
8684
|
[root, setRoot] = getChildRoot(result);
|
|
8632
8685
|
}
|
|
@@ -8699,7 +8752,7 @@ const getChildRoot = (vnode) => {
|
|
|
8699
8752
|
const dynamicChildren = vnode.dynamicChildren;
|
|
8700
8753
|
const childRoot = filterSingleRoot(rawChildren, false);
|
|
8701
8754
|
if (!childRoot) {
|
|
8702
|
-
return [vnode,
|
|
8755
|
+
return [vnode, void 0];
|
|
8703
8756
|
} else if (childRoot.patchFlag > 0 && childRoot.patchFlag & 2048) {
|
|
8704
8757
|
return getChildRoot(childRoot);
|
|
8705
8758
|
}
|
|
@@ -9116,7 +9169,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
9116
9169
|
parentSuspense.deps++;
|
|
9117
9170
|
}
|
|
9118
9171
|
}
|
|
9119
|
-
const timeout = vnode.props ? toNumber(vnode.props.timeout) :
|
|
9172
|
+
const timeout = vnode.props ? toNumber(vnode.props.timeout) : void 0;
|
|
9120
9173
|
{
|
|
9121
9174
|
assertNumber(timeout, `Suspense timeout`);
|
|
9122
9175
|
}
|
|
@@ -9949,8 +10002,8 @@ function setupComponent(instance, isSSR = false, optimized = false) {
|
|
|
9949
10002
|
const { props, children } = instance.vnode;
|
|
9950
10003
|
const isStateful = isStatefulComponent(instance);
|
|
9951
10004
|
initProps(instance, props, isStateful, isSSR);
|
|
9952
|
-
initSlots(instance, children, optimized);
|
|
9953
|
-
const setupResult = isStateful ? setupStatefulComponent(instance, isSSR) :
|
|
10005
|
+
initSlots(instance, children, optimized || isSSR);
|
|
10006
|
+
const setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : void 0;
|
|
9954
10007
|
isSSR && setInSSRSetupState(false);
|
|
9955
10008
|
return setupResult;
|
|
9956
10009
|
}
|
|
@@ -10048,7 +10101,7 @@ function handleSetupResult(instance, setupResult, isSSR) {
|
|
|
10048
10101
|
{
|
|
10049
10102
|
exposeSetupStateOnRenderContext(instance);
|
|
10050
10103
|
}
|
|
10051
|
-
} else if (setupResult !==
|
|
10104
|
+
} else if (setupResult !== void 0) {
|
|
10052
10105
|
warn$1(
|
|
10053
10106
|
`setup() should return an object. Received: ${setupResult === null ? "null" : typeof setupResult}`
|
|
10054
10107
|
);
|
|
@@ -10280,13 +10333,15 @@ function initCustomFormatter() {
|
|
|
10280
10333
|
if (obj.__isVue) {
|
|
10281
10334
|
return ["div", vueStyle, `VueInstance`];
|
|
10282
10335
|
} else if (isRef(obj)) {
|
|
10336
|
+
pauseTracking();
|
|
10337
|
+
const value = obj.value;
|
|
10338
|
+
resetTracking();
|
|
10283
10339
|
return [
|
|
10284
10340
|
"div",
|
|
10285
10341
|
{},
|
|
10286
10342
|
["span", vueStyle, genRefFlag(obj)],
|
|
10287
10343
|
"<",
|
|
10288
|
-
|
|
10289
|
-
formatValue("_value" in obj ? obj._value : obj),
|
|
10344
|
+
formatValue(value),
|
|
10290
10345
|
`>`
|
|
10291
10346
|
];
|
|
10292
10347
|
} else if (isReactive(obj)) {
|
|
@@ -10467,7 +10522,7 @@ function isMemoSame(cached, memo) {
|
|
|
10467
10522
|
return true;
|
|
10468
10523
|
}
|
|
10469
10524
|
|
|
10470
|
-
const version = "3.5.
|
|
10525
|
+
const version = "3.5.16";
|
|
10471
10526
|
const warn = warn$1 ;
|
|
10472
10527
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10473
10528
|
const devtools = devtools$1 ;
|
|
@@ -10489,7 +10544,7 @@ const resolveFilter = null;
|
|
|
10489
10544
|
const compatUtils = null;
|
|
10490
10545
|
const DeprecationTypes = null;
|
|
10491
10546
|
|
|
10492
|
-
let policy =
|
|
10547
|
+
let policy = void 0;
|
|
10493
10548
|
const tt = typeof window !== "undefined" && window.trustedTypes;
|
|
10494
10549
|
if (tt) {
|
|
10495
10550
|
try {
|
|
@@ -10715,11 +10770,11 @@ function resolveTransitionProps(rawProps) {
|
|
|
10715
10770
|
callHook(onLeave, [el, resolve]);
|
|
10716
10771
|
},
|
|
10717
10772
|
onEnterCancelled(el) {
|
|
10718
|
-
finishEnter(el, false,
|
|
10773
|
+
finishEnter(el, false, void 0, true);
|
|
10719
10774
|
callHook(onEnterCancelled, [el]);
|
|
10720
10775
|
},
|
|
10721
10776
|
onAppearCancelled(el) {
|
|
10722
|
-
finishEnter(el, true,
|
|
10777
|
+
finishEnter(el, true, void 0, true);
|
|
10723
10778
|
callHook(onAppearCancelled, [el]);
|
|
10724
10779
|
},
|
|
10725
10780
|
onLeaveCancelled(el) {
|
|
@@ -10755,7 +10810,7 @@ function removeTransitionClass(el, cls) {
|
|
|
10755
10810
|
if (_vtc) {
|
|
10756
10811
|
_vtc.delete(cls);
|
|
10757
10812
|
if (!_vtc.size) {
|
|
10758
|
-
el[vtcKey] =
|
|
10813
|
+
el[vtcKey] = void 0;
|
|
10759
10814
|
}
|
|
10760
10815
|
}
|
|
10761
10816
|
}
|
|
@@ -11180,7 +11235,7 @@ function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
|
11180
11235
|
addEventListener(el, name, invoker, options);
|
|
11181
11236
|
} else if (existingInvoker) {
|
|
11182
11237
|
removeEventListener(el, name, existingInvoker, options);
|
|
11183
|
-
invokers[rawName] =
|
|
11238
|
+
invokers[rawName] = void 0;
|
|
11184
11239
|
}
|
|
11185
11240
|
}
|
|
11186
11241
|
}
|
|
@@ -11285,7 +11340,7 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
11285
11340
|
}
|
|
11286
11341
|
return false;
|
|
11287
11342
|
}
|
|
11288
|
-
if (key === "spellcheck" || key === "draggable" || key === "translate") {
|
|
11343
|
+
if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") {
|
|
11289
11344
|
return false;
|
|
11290
11345
|
}
|
|
11291
11346
|
if (key === "form") {
|
|
@@ -11368,13 +11423,10 @@ class VueElement extends BaseClass {
|
|
|
11368
11423
|
this._root = this;
|
|
11369
11424
|
}
|
|
11370
11425
|
}
|
|
11371
|
-
if (!this._def.__asyncLoader) {
|
|
11372
|
-
this._resolveProps(this._def);
|
|
11373
|
-
}
|
|
11374
11426
|
}
|
|
11375
11427
|
connectedCallback() {
|
|
11376
11428
|
if (!this.isConnected) return;
|
|
11377
|
-
if (!this.shadowRoot) {
|
|
11429
|
+
if (!this.shadowRoot && !this._resolved) {
|
|
11378
11430
|
this._parseSlots();
|
|
11379
11431
|
}
|
|
11380
11432
|
this._connected = true;
|
|
@@ -11387,12 +11439,11 @@ class VueElement extends BaseClass {
|
|
|
11387
11439
|
}
|
|
11388
11440
|
if (!this._instance) {
|
|
11389
11441
|
if (this._resolved) {
|
|
11390
|
-
this.
|
|
11391
|
-
this._update();
|
|
11442
|
+
this._mount(this._def);
|
|
11392
11443
|
} else {
|
|
11393
11444
|
if (parent && parent._pendingResolve) {
|
|
11394
11445
|
this._pendingResolve = parent._pendingResolve.then(() => {
|
|
11395
|
-
this._pendingResolve =
|
|
11446
|
+
this._pendingResolve = void 0;
|
|
11396
11447
|
this._resolveDef();
|
|
11397
11448
|
});
|
|
11398
11449
|
} else {
|
|
@@ -11404,7 +11455,15 @@ class VueElement extends BaseClass {
|
|
|
11404
11455
|
_setParent(parent = this._parent) {
|
|
11405
11456
|
if (parent) {
|
|
11406
11457
|
this._instance.parent = parent._instance;
|
|
11407
|
-
this.
|
|
11458
|
+
this._inheritParentContext(parent);
|
|
11459
|
+
}
|
|
11460
|
+
}
|
|
11461
|
+
_inheritParentContext(parent = this._parent) {
|
|
11462
|
+
if (parent && this._app) {
|
|
11463
|
+
Object.setPrototypeOf(
|
|
11464
|
+
this._app._context.provides,
|
|
11465
|
+
parent._instance.provides
|
|
11466
|
+
);
|
|
11408
11467
|
}
|
|
11409
11468
|
}
|
|
11410
11469
|
disconnectedCallback() {
|
|
@@ -11416,7 +11475,7 @@ class VueElement extends BaseClass {
|
|
|
11416
11475
|
this._ob = null;
|
|
11417
11476
|
}
|
|
11418
11477
|
this._app && this._app.unmount();
|
|
11419
|
-
if (this._instance) this._instance.ce =
|
|
11478
|
+
if (this._instance) this._instance.ce = void 0;
|
|
11420
11479
|
this._app = this._instance = null;
|
|
11421
11480
|
}
|
|
11422
11481
|
});
|
|
@@ -11439,7 +11498,7 @@ class VueElement extends BaseClass {
|
|
|
11439
11498
|
this._ob.observe(this, { attributes: true });
|
|
11440
11499
|
const resolve = (def, isAsync = false) => {
|
|
11441
11500
|
this._resolved = true;
|
|
11442
|
-
this._pendingResolve =
|
|
11501
|
+
this._pendingResolve = void 0;
|
|
11443
11502
|
const { props, styles } = def;
|
|
11444
11503
|
let numberProps;
|
|
11445
11504
|
if (props && !isArray(props)) {
|
|
@@ -11454,9 +11513,7 @@ class VueElement extends BaseClass {
|
|
|
11454
11513
|
}
|
|
11455
11514
|
}
|
|
11456
11515
|
this._numberProps = numberProps;
|
|
11457
|
-
|
|
11458
|
-
this._resolveProps(def);
|
|
11459
|
-
}
|
|
11516
|
+
this._resolveProps(def);
|
|
11460
11517
|
if (this.shadowRoot) {
|
|
11461
11518
|
this._applyStyles(styles);
|
|
11462
11519
|
} else if (styles) {
|
|
@@ -11480,6 +11537,7 @@ class VueElement extends BaseClass {
|
|
|
11480
11537
|
def.name = "VueElement";
|
|
11481
11538
|
}
|
|
11482
11539
|
this._app = this._createApp(def);
|
|
11540
|
+
this._inheritParentContext();
|
|
11483
11541
|
if (def.configureApp) {
|
|
11484
11542
|
def.configureApp(this._app);
|
|
11485
11543
|
}
|
|
@@ -11564,7 +11622,9 @@ class VueElement extends BaseClass {
|
|
|
11564
11622
|
}
|
|
11565
11623
|
}
|
|
11566
11624
|
_update() {
|
|
11567
|
-
|
|
11625
|
+
const vnode = this._createVNode();
|
|
11626
|
+
if (this._app) vnode.appContext = this._app._context;
|
|
11627
|
+
render(vnode, this._root);
|
|
11568
11628
|
}
|
|
11569
11629
|
_createVNode() {
|
|
11570
11630
|
const baseProps = {};
|
|
@@ -11774,6 +11834,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
|
11774
11834
|
instance.vnode.el,
|
|
11775
11835
|
moveClass
|
|
11776
11836
|
)) {
|
|
11837
|
+
prevChildren = [];
|
|
11777
11838
|
return;
|
|
11778
11839
|
}
|
|
11779
11840
|
prevChildren.forEach(callPendingCbs);
|
|
@@ -11797,6 +11858,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
|
11797
11858
|
};
|
|
11798
11859
|
el.addEventListener("transitionend", cb);
|
|
11799
11860
|
});
|
|
11861
|
+
prevChildren = [];
|
|
11800
11862
|
});
|
|
11801
11863
|
return () => {
|
|
11802
11864
|
const rawProps = toRaw(props);
|