@poveste/vendors 0.2.0 → 0.3.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/client/b-floating-vue.js +1 -1
- package/dist/client/b-pinia.js +1 -1
- package/dist/client/b-vue-use.js +10194 -9176
- package/dist/client/b-vue.js +1 -1
- package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +24 -4
- package/dist/client/node_modules/@vue/compiler-core/package.json +5 -5
- package/dist/client/node_modules/@vue/compiler-dom/package.json +3 -3
- package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +4 -2
- package/dist/client/node_modules/@vue/compiler-sfc/package.json +12 -12
- package/dist/client/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +18 -14
- package/dist/client/node_modules/@vue/reactivity/package.json +2 -2
- package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +48 -19
- package/dist/client/node_modules/@vue/runtime-core/package.json +3 -3
- package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +126 -104
- package/dist/client/node_modules/@vue/runtime-dom/package.json +4 -4
- package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +6 -6
- package/dist/client/node_modules/@vue/server-renderer/package.json +4 -6
- package/dist/client/node_modules/@vue/shared/package.json +1 -1
- package/dist/client/node_modules/@vueuse/core/dist/index.d.ts +5748 -0
- package/dist/client/node_modules/@vueuse/core/package.json +17 -25
- package/dist/client/node_modules/@vueuse/metadata/dist/index.d.ts +81 -0
- package/dist/client/node_modules/@vueuse/metadata/package.json +9 -17
- package/dist/client/node_modules/@vueuse/shared/dist/index.d.ts +1511 -0
- package/dist/client/node_modules/@vueuse/shared/package.json +13 -20
- package/dist/client/node_modules/nanoid/package.json +1 -1
- package/dist/client/node_modules/vue/package.json +7 -7
- package/dist/client/vue.runtime.esm-bundler.js +745 -348
- package/package.json +2 -2
- package/dist/client/node_modules/@vueuse/core/index.d.mts +0 -6221
- package/dist/client/node_modules/@vueuse/core/index.d.ts +0 -6221
- package/dist/client/node_modules/@vueuse/core/metadata.d.ts +0 -1
- package/dist/client/node_modules/@vueuse/metadata/index.d.mts +0 -78
- package/dist/client/node_modules/@vueuse/metadata/index.d.ts +0 -78
- package/dist/client/node_modules/@vueuse/shared/index.d.mts +0 -1260
- package/dist/client/node_modules/@vueuse/shared/index.d.ts +0 -1260
- /package/dist/client/node_modules/@vueuse/core/{metadata.d.mts → dist/metadata.d.mts} +0 -0
- /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/lib/index.d.ts +0 -0
- /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/lib/v2/index.d.ts +0 -0
- /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/lib/v2.7/index.d.ts +0 -0
- /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/lib/v3/index.d.ts +0 -0
- /package/dist/client/node_modules/{pinia/node_modules/vue-demi → vue-demi}/package.json +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.5.
|
|
2
|
+
* @vue/shared v3.5.41
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -335,7 +335,7 @@ const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
|
|
|
335
335
|
const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
|
|
336
336
|
const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
|
|
337
337
|
const isBooleanAttr = /* @__PURE__ */ makeMap(
|
|
338
|
-
specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,
|
|
338
|
+
specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`
|
|
339
339
|
);
|
|
340
340
|
function includeBooleanAttr(value) {
|
|
341
341
|
return !!value || value === "";
|
|
@@ -414,9 +414,14 @@ function escapeHtml(string) {
|
|
|
414
414
|
}
|
|
415
415
|
return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
|
|
416
416
|
}
|
|
417
|
-
const commentStripRE =
|
|
417
|
+
const commentStripRE = /^(?:-?>)+|<!--|-->|--!>|<!-$/g;
|
|
418
418
|
function escapeHtmlComment(src) {
|
|
419
|
-
|
|
419
|
+
let prev;
|
|
420
|
+
do {
|
|
421
|
+
prev = src;
|
|
422
|
+
src = src.replace(commentStripRE, "");
|
|
423
|
+
} while (src !== prev);
|
|
424
|
+
return src;
|
|
420
425
|
}
|
|
421
426
|
const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
|
|
422
427
|
function getEscapedCssVarName(key, doubleEscape) {
|
|
@@ -534,7 +539,7 @@ function normalizeCssVarValue(value) {
|
|
|
534
539
|
}
|
|
535
540
|
|
|
536
541
|
/**
|
|
537
|
-
* @vue/reactivity v3.5.
|
|
542
|
+
* @vue/reactivity v3.5.41
|
|
538
543
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
539
544
|
* @license MIT
|
|
540
545
|
**/
|
|
@@ -545,6 +550,7 @@ function warn$2(msg, ...args) {
|
|
|
545
550
|
|
|
546
551
|
let activeEffectScope;
|
|
547
552
|
class EffectScope {
|
|
553
|
+
// TODO isolatedDeclarations "__v_skip"
|
|
548
554
|
constructor(detached = false) {
|
|
549
555
|
this.detached = detached;
|
|
550
556
|
/**
|
|
@@ -564,11 +570,18 @@ class EffectScope {
|
|
|
564
570
|
*/
|
|
565
571
|
this.cleanups = [];
|
|
566
572
|
this._isPaused = false;
|
|
567
|
-
this.
|
|
573
|
+
this._warnOnRun = true;
|
|
574
|
+
this.__v_skip = true;
|
|
568
575
|
if (!detached && activeEffectScope) {
|
|
569
|
-
|
|
570
|
-
this
|
|
571
|
-
|
|
576
|
+
if (activeEffectScope.active) {
|
|
577
|
+
this.parent = activeEffectScope;
|
|
578
|
+
this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
|
|
579
|
+
this
|
|
580
|
+
) - 1;
|
|
581
|
+
} else {
|
|
582
|
+
this._active = false;
|
|
583
|
+
this._warnOnRun = false;
|
|
584
|
+
}
|
|
572
585
|
}
|
|
573
586
|
}
|
|
574
587
|
get active() {
|
|
@@ -579,8 +592,9 @@ class EffectScope {
|
|
|
579
592
|
this._isPaused = true;
|
|
580
593
|
let i, l;
|
|
581
594
|
if (this.scopes) {
|
|
582
|
-
|
|
583
|
-
|
|
595
|
+
const scopes = this.scopes.slice();
|
|
596
|
+
for (i = 0, l = scopes.length; i < l; i++) {
|
|
597
|
+
scopes[i].pause();
|
|
584
598
|
}
|
|
585
599
|
}
|
|
586
600
|
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
@@ -597,12 +611,14 @@ class EffectScope {
|
|
|
597
611
|
this._isPaused = false;
|
|
598
612
|
let i, l;
|
|
599
613
|
if (this.scopes) {
|
|
600
|
-
|
|
601
|
-
|
|
614
|
+
const scopes = this.scopes.slice();
|
|
615
|
+
for (i = 0, l = scopes.length; i < l; i++) {
|
|
616
|
+
scopes[i].resume();
|
|
602
617
|
}
|
|
603
618
|
}
|
|
604
|
-
|
|
605
|
-
|
|
619
|
+
const effects = this.effects.slice();
|
|
620
|
+
for (i = 0, l = effects.length; i < l; i++) {
|
|
621
|
+
effects[i].resume();
|
|
606
622
|
}
|
|
607
623
|
}
|
|
608
624
|
}
|
|
@@ -616,7 +632,7 @@ class EffectScope {
|
|
|
616
632
|
} finally {
|
|
617
633
|
activeEffectScope = currentEffectScope;
|
|
618
634
|
}
|
|
619
|
-
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
635
|
+
} else if (!!(process.env.NODE_ENV !== "production") && this._warnOnRun) {
|
|
620
636
|
warn$2(`cannot run an inactive effect scope.`);
|
|
621
637
|
}
|
|
622
638
|
}
|
|
@@ -636,7 +652,18 @@ class EffectScope {
|
|
|
636
652
|
*/
|
|
637
653
|
off() {
|
|
638
654
|
if (this._on > 0 && --this._on === 0) {
|
|
639
|
-
activeEffectScope
|
|
655
|
+
if (activeEffectScope === this) {
|
|
656
|
+
activeEffectScope = this.prevScope;
|
|
657
|
+
} else {
|
|
658
|
+
let current = activeEffectScope;
|
|
659
|
+
while (current) {
|
|
660
|
+
if (current.prevScope === this) {
|
|
661
|
+
current.prevScope = this.prevScope;
|
|
662
|
+
break;
|
|
663
|
+
}
|
|
664
|
+
current = current.prevScope;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
640
667
|
this.prevScope = void 0;
|
|
641
668
|
}
|
|
642
669
|
}
|
|
@@ -653,8 +680,9 @@ class EffectScope {
|
|
|
653
680
|
}
|
|
654
681
|
this.cleanups.length = 0;
|
|
655
682
|
if (this.scopes) {
|
|
656
|
-
|
|
657
|
-
|
|
683
|
+
const scopes = this.scopes.slice();
|
|
684
|
+
for (i = 0, l = scopes.length; i < l; i++) {
|
|
685
|
+
scopes[i].stop(true);
|
|
658
686
|
}
|
|
659
687
|
this.scopes.length = 0;
|
|
660
688
|
}
|
|
@@ -729,8 +757,12 @@ class ReactiveEffect {
|
|
|
729
757
|
*/
|
|
730
758
|
this.cleanup = void 0;
|
|
731
759
|
this.scheduler = void 0;
|
|
732
|
-
if (activeEffectScope
|
|
733
|
-
activeEffectScope.
|
|
760
|
+
if (activeEffectScope) {
|
|
761
|
+
if (activeEffectScope.active) {
|
|
762
|
+
activeEffectScope.effects.push(this);
|
|
763
|
+
} else {
|
|
764
|
+
this.flags &= -2;
|
|
765
|
+
}
|
|
734
766
|
}
|
|
735
767
|
}
|
|
736
768
|
pause() {
|
|
@@ -1449,10 +1481,17 @@ function apply(self, method, fn, thisArg, wrappedRetFn, args) {
|
|
|
1449
1481
|
}
|
|
1450
1482
|
function reduce(self, method, fn, args) {
|
|
1451
1483
|
const arr = shallowReadArray(self);
|
|
1484
|
+
const needsWrap = arr !== self && !isShallow(self);
|
|
1452
1485
|
let wrappedFn = fn;
|
|
1486
|
+
let wrapInitialAccumulator = false;
|
|
1453
1487
|
if (arr !== self) {
|
|
1454
|
-
if (
|
|
1488
|
+
if (needsWrap) {
|
|
1489
|
+
wrapInitialAccumulator = args.length === 0;
|
|
1455
1490
|
wrappedFn = function(acc, item, index) {
|
|
1491
|
+
if (wrapInitialAccumulator) {
|
|
1492
|
+
wrapInitialAccumulator = false;
|
|
1493
|
+
acc = toWrapped(self, acc);
|
|
1494
|
+
}
|
|
1456
1495
|
return fn.call(this, acc, toWrapped(self, item), index, self);
|
|
1457
1496
|
};
|
|
1458
1497
|
} else if (fn.length > 3) {
|
|
@@ -1461,7 +1500,8 @@ function reduce(self, method, fn, args) {
|
|
|
1461
1500
|
};
|
|
1462
1501
|
}
|
|
1463
1502
|
}
|
|
1464
|
-
|
|
1503
|
+
const result = arr[method](wrappedFn, ...args);
|
|
1504
|
+
return wrapInitialAccumulator ? toWrapped(self, result) : result;
|
|
1465
1505
|
}
|
|
1466
1506
|
function searchProxy(self, method, args) {
|
|
1467
1507
|
const arr = toRaw(self);
|
|
@@ -1586,7 +1626,7 @@ class MutableReactiveHandler extends BaseReactiveHandler {
|
|
|
1586
1626
|
value,
|
|
1587
1627
|
isRef(target) ? target : receiver
|
|
1588
1628
|
);
|
|
1589
|
-
if (target === toRaw(receiver)) {
|
|
1629
|
+
if (target === toRaw(receiver) && result) {
|
|
1590
1630
|
if (!hadKey) {
|
|
1591
1631
|
trigger(target, "add", key, value);
|
|
1592
1632
|
} else if (hasChanged(value, oldValue)) {
|
|
@@ -1664,20 +1704,20 @@ function createIterableMethod(method, isReadonly2, isShallow2) {
|
|
|
1664
1704
|
"iterate",
|
|
1665
1705
|
isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY
|
|
1666
1706
|
);
|
|
1667
|
-
return
|
|
1668
|
-
// iterator
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
done
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1707
|
+
return extend(
|
|
1708
|
+
// inheriting all iterator properties
|
|
1709
|
+
Object.create(innerIterator),
|
|
1710
|
+
{
|
|
1711
|
+
// iterator protocol
|
|
1712
|
+
next() {
|
|
1713
|
+
const { value, done } = innerIterator.next();
|
|
1714
|
+
return done ? { value, done } : {
|
|
1715
|
+
value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
|
|
1716
|
+
done
|
|
1717
|
+
};
|
|
1718
|
+
}
|
|
1679
1719
|
}
|
|
1680
|
-
|
|
1720
|
+
);
|
|
1681
1721
|
};
|
|
1682
1722
|
}
|
|
1683
1723
|
function createReadonlyMethod(type) {
|
|
@@ -1751,15 +1791,14 @@ function createInstrumentations(readonly, shallow) {
|
|
|
1751
1791
|
clear: createReadonlyMethod("clear")
|
|
1752
1792
|
} : {
|
|
1753
1793
|
add(value) {
|
|
1754
|
-
if (!shallow && !isShallow(value) && !isReadonly(value)) {
|
|
1755
|
-
value = toRaw(value);
|
|
1756
|
-
}
|
|
1757
1794
|
const target = toRaw(this);
|
|
1758
1795
|
const proto = getProto(target);
|
|
1759
|
-
const
|
|
1796
|
+
const rawValue = toRaw(value);
|
|
1797
|
+
const valueToAdd = !shallow && !isShallow(value) && !isReadonly(value) ? rawValue : value;
|
|
1798
|
+
const hadKey = proto.has.call(target, valueToAdd) || hasChanged(value, valueToAdd) && proto.has.call(target, value) || hasChanged(rawValue, valueToAdd) && proto.has.call(target, rawValue);
|
|
1760
1799
|
if (!hadKey) {
|
|
1761
|
-
target.add(
|
|
1762
|
-
trigger(target, "add",
|
|
1800
|
+
target.add(valueToAdd);
|
|
1801
|
+
trigger(target, "add", valueToAdd, valueToAdd);
|
|
1763
1802
|
}
|
|
1764
1803
|
return this;
|
|
1765
1804
|
},
|
|
@@ -1888,11 +1927,9 @@ function targetTypeMap(rawType) {
|
|
|
1888
1927
|
return 0 /* INVALID */;
|
|
1889
1928
|
}
|
|
1890
1929
|
}
|
|
1891
|
-
|
|
1892
|
-
return value["__v_skip"] || !Object.isExtensible(value) ? 0 /* INVALID */ : targetTypeMap(toRawType(value));
|
|
1893
|
-
}
|
|
1930
|
+
// @__NO_SIDE_EFFECTS__
|
|
1894
1931
|
function reactive(target) {
|
|
1895
|
-
if (isReadonly(target)) {
|
|
1932
|
+
if (/* @__PURE__ */ isReadonly(target)) {
|
|
1896
1933
|
return target;
|
|
1897
1934
|
}
|
|
1898
1935
|
return createReactiveObject(
|
|
@@ -1903,6 +1940,7 @@ function reactive(target) {
|
|
|
1903
1940
|
reactiveMap
|
|
1904
1941
|
);
|
|
1905
1942
|
}
|
|
1943
|
+
// @__NO_SIDE_EFFECTS__
|
|
1906
1944
|
function shallowReactive(target) {
|
|
1907
1945
|
return createReactiveObject(
|
|
1908
1946
|
target,
|
|
@@ -1912,6 +1950,7 @@ function shallowReactive(target) {
|
|
|
1912
1950
|
shallowReactiveMap
|
|
1913
1951
|
);
|
|
1914
1952
|
}
|
|
1953
|
+
// @__NO_SIDE_EFFECTS__
|
|
1915
1954
|
function readonly(target) {
|
|
1916
1955
|
return createReactiveObject(
|
|
1917
1956
|
target,
|
|
@@ -1921,6 +1960,7 @@ function readonly(target) {
|
|
|
1921
1960
|
readonlyMap
|
|
1922
1961
|
);
|
|
1923
1962
|
}
|
|
1963
|
+
// @__NO_SIDE_EFFECTS__
|
|
1924
1964
|
function shallowReadonly(target) {
|
|
1925
1965
|
return createReactiveObject(
|
|
1926
1966
|
target,
|
|
@@ -1944,14 +1984,17 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
|
|
|
1944
1984
|
if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
|
|
1945
1985
|
return target;
|
|
1946
1986
|
}
|
|
1947
|
-
|
|
1948
|
-
if (targetType === 0 /* INVALID */) {
|
|
1987
|
+
if (target["__v_skip"] || !Object.isExtensible(target)) {
|
|
1949
1988
|
return target;
|
|
1950
1989
|
}
|
|
1951
1990
|
const existingProxy = proxyMap.get(target);
|
|
1952
1991
|
if (existingProxy) {
|
|
1953
1992
|
return existingProxy;
|
|
1954
1993
|
}
|
|
1994
|
+
const targetType = targetTypeMap(toRawType(target));
|
|
1995
|
+
if (targetType === 0 /* INVALID */) {
|
|
1996
|
+
return target;
|
|
1997
|
+
}
|
|
1955
1998
|
const proxy = new Proxy(
|
|
1956
1999
|
target,
|
|
1957
2000
|
targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers
|
|
@@ -1959,24 +2002,29 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
|
|
|
1959
2002
|
proxyMap.set(target, proxy);
|
|
1960
2003
|
return proxy;
|
|
1961
2004
|
}
|
|
2005
|
+
// @__NO_SIDE_EFFECTS__
|
|
1962
2006
|
function isReactive(value) {
|
|
1963
|
-
if (isReadonly(value)) {
|
|
1964
|
-
return isReactive(value["__v_raw"]);
|
|
2007
|
+
if (/* @__PURE__ */ isReadonly(value)) {
|
|
2008
|
+
return /* @__PURE__ */ isReactive(value["__v_raw"]);
|
|
1965
2009
|
}
|
|
1966
2010
|
return !!(value && value["__v_isReactive"]);
|
|
1967
2011
|
}
|
|
2012
|
+
// @__NO_SIDE_EFFECTS__
|
|
1968
2013
|
function isReadonly(value) {
|
|
1969
2014
|
return !!(value && value["__v_isReadonly"]);
|
|
1970
2015
|
}
|
|
2016
|
+
// @__NO_SIDE_EFFECTS__
|
|
1971
2017
|
function isShallow(value) {
|
|
1972
2018
|
return !!(value && value["__v_isShallow"]);
|
|
1973
2019
|
}
|
|
2020
|
+
// @__NO_SIDE_EFFECTS__
|
|
1974
2021
|
function isProxy(value) {
|
|
1975
2022
|
return value ? !!value["__v_raw"] : false;
|
|
1976
2023
|
}
|
|
2024
|
+
// @__NO_SIDE_EFFECTS__
|
|
1977
2025
|
function toRaw(observed) {
|
|
1978
2026
|
const raw = observed && observed["__v_raw"];
|
|
1979
|
-
return raw ? toRaw(raw) : observed;
|
|
2027
|
+
return raw ? /* @__PURE__ */ toRaw(raw) : observed;
|
|
1980
2028
|
}
|
|
1981
2029
|
function markRaw(value) {
|
|
1982
2030
|
if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) {
|
|
@@ -1984,20 +2032,23 @@ function markRaw(value) {
|
|
|
1984
2032
|
}
|
|
1985
2033
|
return value;
|
|
1986
2034
|
}
|
|
1987
|
-
const toReactive = (value) => isObject(value) ? reactive(value) : value;
|
|
1988
|
-
const toReadonly = (value) => isObject(value) ? readonly(value) : value;
|
|
2035
|
+
const toReactive = (value) => isObject(value) ? /* @__PURE__ */ reactive(value) : value;
|
|
2036
|
+
const toReadonly = (value) => isObject(value) ? /* @__PURE__ */ readonly(value) : value;
|
|
1989
2037
|
|
|
2038
|
+
// @__NO_SIDE_EFFECTS__
|
|
1990
2039
|
function isRef(r) {
|
|
1991
2040
|
return r ? r["__v_isRef"] === true : false;
|
|
1992
2041
|
}
|
|
2042
|
+
// @__NO_SIDE_EFFECTS__
|
|
1993
2043
|
function ref(value) {
|
|
1994
2044
|
return createRef(value, false);
|
|
1995
2045
|
}
|
|
2046
|
+
// @__NO_SIDE_EFFECTS__
|
|
1996
2047
|
function shallowRef(value) {
|
|
1997
2048
|
return createRef(value, true);
|
|
1998
2049
|
}
|
|
1999
2050
|
function createRef(rawValue, shallow) {
|
|
2000
|
-
if (isRef(rawValue)) {
|
|
2051
|
+
if (/* @__PURE__ */ isRef(rawValue)) {
|
|
2001
2052
|
return rawValue;
|
|
2002
2053
|
}
|
|
2003
2054
|
return new RefImpl(rawValue, shallow);
|
|
@@ -2059,7 +2110,7 @@ function triggerRef(ref2) {
|
|
|
2059
2110
|
}
|
|
2060
2111
|
}
|
|
2061
2112
|
function unref(ref2) {
|
|
2062
|
-
return isRef(ref2) ? ref2.value : ref2;
|
|
2113
|
+
return /* @__PURE__ */ isRef(ref2) ? ref2.value : ref2;
|
|
2063
2114
|
}
|
|
2064
2115
|
function toValue(source) {
|
|
2065
2116
|
return isFunction(source) ? source() : unref(source);
|
|
@@ -2068,7 +2119,7 @@ const shallowUnwrapHandlers = {
|
|
|
2068
2119
|
get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
|
|
2069
2120
|
set: (target, key, value, receiver) => {
|
|
2070
2121
|
const oldValue = target[key];
|
|
2071
|
-
if (isRef(oldValue) &&
|
|
2122
|
+
if (/* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) {
|
|
2072
2123
|
oldValue.value = value;
|
|
2073
2124
|
return true;
|
|
2074
2125
|
} else {
|
|
@@ -2098,6 +2149,7 @@ class CustomRefImpl {
|
|
|
2098
2149
|
function customRef(factory) {
|
|
2099
2150
|
return new CustomRefImpl(factory);
|
|
2100
2151
|
}
|
|
2152
|
+
// @__NO_SIDE_EFFECTS__
|
|
2101
2153
|
function toRefs(object) {
|
|
2102
2154
|
if (!!(process.env.NODE_ENV !== "production") && !isProxy(object)) {
|
|
2103
2155
|
warn$2(`toRefs() expects a reactive object but received a plain one.`);
|
|
@@ -2109,16 +2161,16 @@ function toRefs(object) {
|
|
|
2109
2161
|
return ret;
|
|
2110
2162
|
}
|
|
2111
2163
|
class ObjectRefImpl {
|
|
2112
|
-
constructor(_object,
|
|
2164
|
+
constructor(_object, key, _defaultValue) {
|
|
2113
2165
|
this._object = _object;
|
|
2114
|
-
this._key = _key;
|
|
2115
2166
|
this._defaultValue = _defaultValue;
|
|
2116
2167
|
this["__v_isRef"] = true;
|
|
2117
2168
|
this._value = void 0;
|
|
2169
|
+
this._key = isSymbol(key) ? key : String(key);
|
|
2118
2170
|
this._raw = toRaw(_object);
|
|
2119
2171
|
let shallow = true;
|
|
2120
2172
|
let obj = _object;
|
|
2121
|
-
if (!isArray(_object) || !isIntegerKey(
|
|
2173
|
+
if (!isArray(_object) || isSymbol(this._key) || !isIntegerKey(this._key)) {
|
|
2122
2174
|
do {
|
|
2123
2175
|
shallow = !isProxy(obj) || isShallow(obj);
|
|
2124
2176
|
} while (shallow && (obj = obj["__v_raw"]));
|
|
@@ -2133,9 +2185,9 @@ class ObjectRefImpl {
|
|
|
2133
2185
|
return this._value = val === void 0 ? this._defaultValue : val;
|
|
2134
2186
|
}
|
|
2135
2187
|
set value(newVal) {
|
|
2136
|
-
if (this._shallow && isRef(this._raw[this._key])) {
|
|
2188
|
+
if (this._shallow && /* @__PURE__ */ isRef(this._raw[this._key])) {
|
|
2137
2189
|
const nestedRef = this._object[this._key];
|
|
2138
|
-
if (isRef(nestedRef)) {
|
|
2190
|
+
if (/* @__PURE__ */ isRef(nestedRef)) {
|
|
2139
2191
|
nestedRef.value = newVal;
|
|
2140
2192
|
return;
|
|
2141
2193
|
}
|
|
@@ -2157,15 +2209,16 @@ class GetterRefImpl {
|
|
|
2157
2209
|
return this._value = this._getter();
|
|
2158
2210
|
}
|
|
2159
2211
|
}
|
|
2212
|
+
// @__NO_SIDE_EFFECTS__
|
|
2160
2213
|
function toRef(source, key, defaultValue) {
|
|
2161
|
-
if (isRef(source)) {
|
|
2214
|
+
if (/* @__PURE__ */ isRef(source)) {
|
|
2162
2215
|
return source;
|
|
2163
2216
|
} else if (isFunction(source)) {
|
|
2164
2217
|
return new GetterRefImpl(source);
|
|
2165
2218
|
} else if (isObject(source) && arguments.length > 1) {
|
|
2166
2219
|
return propertyToRef(source, key, defaultValue);
|
|
2167
2220
|
} else {
|
|
2168
|
-
return ref(source);
|
|
2221
|
+
return /* @__PURE__ */ ref(source);
|
|
2169
2222
|
}
|
|
2170
2223
|
}
|
|
2171
2224
|
function propertyToRef(source, key, defaultValue) {
|
|
@@ -2246,6 +2299,7 @@ class ComputedRefImpl {
|
|
|
2246
2299
|
}
|
|
2247
2300
|
}
|
|
2248
2301
|
}
|
|
2302
|
+
// @__NO_SIDE_EFFECTS__
|
|
2249
2303
|
function computed$1(getterOrOptions, debugOptions, isSSR = false) {
|
|
2250
2304
|
let getter;
|
|
2251
2305
|
let setter;
|
|
@@ -2390,8 +2444,9 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
2390
2444
|
if (once && cb) {
|
|
2391
2445
|
const _cb = cb;
|
|
2392
2446
|
cb = (...args) => {
|
|
2393
|
-
_cb(...args);
|
|
2447
|
+
const res = _cb(...args);
|
|
2394
2448
|
watchHandle();
|
|
2449
|
+
return res;
|
|
2395
2450
|
};
|
|
2396
2451
|
}
|
|
2397
2452
|
let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
|
|
@@ -2401,7 +2456,7 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
2401
2456
|
}
|
|
2402
2457
|
if (cb) {
|
|
2403
2458
|
const newValue = effect.run();
|
|
2404
|
-
if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue))) {
|
|
2459
|
+
if (immediateFirstRun || deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue))) {
|
|
2405
2460
|
if (cleanup) {
|
|
2406
2461
|
cleanup();
|
|
2407
2462
|
}
|
|
@@ -2498,7 +2553,7 @@ function traverse(value, depth = Infinity, seen) {
|
|
|
2498
2553
|
}
|
|
2499
2554
|
|
|
2500
2555
|
/**
|
|
2501
|
-
* @vue/runtime-core v3.5.
|
|
2556
|
+
* @vue/runtime-core v3.5.41
|
|
2502
2557
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
2503
2558
|
* @license MIT
|
|
2504
2559
|
**/
|
|
@@ -2826,7 +2881,9 @@ function queuePostFlushCb(cb) {
|
|
|
2826
2881
|
cb.flags |= 1;
|
|
2827
2882
|
}
|
|
2828
2883
|
} else {
|
|
2829
|
-
|
|
2884
|
+
for (let i = 0; i < cb.length; i++) {
|
|
2885
|
+
pendingPostFlushCbs.push(cb[i]);
|
|
2886
|
+
}
|
|
2830
2887
|
}
|
|
2831
2888
|
queueFlush();
|
|
2832
2889
|
}
|
|
@@ -2862,7 +2919,9 @@ function flushPostFlushCbs(seen) {
|
|
|
2862
2919
|
);
|
|
2863
2920
|
pendingPostFlushCbs.length = 0;
|
|
2864
2921
|
if (activePostFlushCbs) {
|
|
2865
|
-
|
|
2922
|
+
for (let i = 0; i < deduped.length; i++) {
|
|
2923
|
+
activePostFlushCbs.push(deduped[i]);
|
|
2924
|
+
}
|
|
2866
2925
|
return;
|
|
2867
2926
|
}
|
|
2868
2927
|
activePostFlushCbs = deduped;
|
|
@@ -2943,6 +3002,13 @@ function checkRecursiveUpdates(seen, fn) {
|
|
|
2943
3002
|
}
|
|
2944
3003
|
|
|
2945
3004
|
let isHmrUpdating = false;
|
|
3005
|
+
const setHmrUpdating = (v) => {
|
|
3006
|
+
try {
|
|
3007
|
+
return isHmrUpdating;
|
|
3008
|
+
} finally {
|
|
3009
|
+
isHmrUpdating = v;
|
|
3010
|
+
}
|
|
3011
|
+
};
|
|
2946
3012
|
const hmrDirtyComponents = /* @__PURE__ */ new Map();
|
|
2947
3013
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2948
3014
|
getGlobalThis().__VUE_HMR_RUNTIME__ = {
|
|
@@ -3185,10 +3251,12 @@ function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {
|
|
|
3185
3251
|
setBlockTracking(-1);
|
|
3186
3252
|
}
|
|
3187
3253
|
const prevInstance = setCurrentRenderingInstance(ctx);
|
|
3254
|
+
const prevStackSize = blockStack.length;
|
|
3188
3255
|
let res;
|
|
3189
3256
|
try {
|
|
3190
3257
|
res = fn(...args);
|
|
3191
3258
|
} finally {
|
|
3259
|
+
for (let i = blockStack.length; i > prevStackSize; i--) closeBlock();
|
|
3192
3260
|
setCurrentRenderingInstance(prevInstance);
|
|
3193
3261
|
if (renderFnWithContext._d) {
|
|
3194
3262
|
setBlockTracking(1);
|
|
@@ -3436,6 +3504,7 @@ function createPathGetter(ctx, path) {
|
|
|
3436
3504
|
};
|
|
3437
3505
|
}
|
|
3438
3506
|
|
|
3507
|
+
const pendingMounts = /* @__PURE__ */ new WeakMap();
|
|
3439
3508
|
const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
|
|
3440
3509
|
const isTeleport = (type) => type.__isTeleport;
|
|
3441
3510
|
const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
|
|
@@ -3474,91 +3543,88 @@ const TeleportImpl = {
|
|
|
3474
3543
|
mc: mountChildren,
|
|
3475
3544
|
pc: patchChildren,
|
|
3476
3545
|
pbc: patchBlockChildren,
|
|
3477
|
-
o: { insert, querySelector, createText, createComment }
|
|
3546
|
+
o: { insert, querySelector, createText, createComment, parentNode }
|
|
3478
3547
|
} = internals;
|
|
3479
3548
|
const disabled = isTeleportDisabled(n2.props);
|
|
3480
|
-
let {
|
|
3549
|
+
let { dynamicChildren } = n2;
|
|
3481
3550
|
if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) {
|
|
3482
3551
|
optimized = false;
|
|
3483
3552
|
dynamicChildren = null;
|
|
3484
3553
|
}
|
|
3554
|
+
const mount = (vnode, container2, anchor2) => {
|
|
3555
|
+
if (vnode.shapeFlag & 16) {
|
|
3556
|
+
mountChildren(
|
|
3557
|
+
vnode.children,
|
|
3558
|
+
container2,
|
|
3559
|
+
anchor2,
|
|
3560
|
+
parentComponent,
|
|
3561
|
+
parentSuspense,
|
|
3562
|
+
namespace,
|
|
3563
|
+
slotScopeIds,
|
|
3564
|
+
optimized
|
|
3565
|
+
);
|
|
3566
|
+
}
|
|
3567
|
+
};
|
|
3568
|
+
const mountToTarget = (vnode = n2) => {
|
|
3569
|
+
const disabled2 = isTeleportDisabled(vnode.props);
|
|
3570
|
+
const target = vnode.target = resolveTarget(vnode.props, querySelector);
|
|
3571
|
+
const targetAnchor = prepareAnchor(target, vnode, createText, insert);
|
|
3572
|
+
if (target) {
|
|
3573
|
+
if (namespace !== "svg" && isTargetSVG(target)) {
|
|
3574
|
+
namespace = "svg";
|
|
3575
|
+
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
3576
|
+
namespace = "mathml";
|
|
3577
|
+
}
|
|
3578
|
+
if (parentComponent && parentComponent.isCE) {
|
|
3579
|
+
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
3580
|
+
}
|
|
3581
|
+
if (!disabled2) {
|
|
3582
|
+
mount(vnode, target, targetAnchor);
|
|
3583
|
+
updateCssVars(vnode, false);
|
|
3584
|
+
}
|
|
3585
|
+
} else if (!!(process.env.NODE_ENV !== "production") && !disabled2) {
|
|
3586
|
+
warn$1("Invalid Teleport target on mount:", target, `(${typeof target})`);
|
|
3587
|
+
}
|
|
3588
|
+
};
|
|
3589
|
+
const queuePendingMount = (vnode) => {
|
|
3590
|
+
const mountJob = () => {
|
|
3591
|
+
if (pendingMounts.get(vnode) !== mountJob) return;
|
|
3592
|
+
pendingMounts.delete(vnode);
|
|
3593
|
+
if (isTeleportDisabled(vnode.props)) {
|
|
3594
|
+
const mountContainer = parentNode(vnode.el) || container;
|
|
3595
|
+
mount(vnode, mountContainer, vnode.anchor);
|
|
3596
|
+
updateCssVars(vnode, true);
|
|
3597
|
+
}
|
|
3598
|
+
mountToTarget(vnode);
|
|
3599
|
+
};
|
|
3600
|
+
pendingMounts.set(vnode, mountJob);
|
|
3601
|
+
queuePostRenderEffect(mountJob, parentSuspense);
|
|
3602
|
+
};
|
|
3485
3603
|
if (n1 == null) {
|
|
3486
3604
|
const placeholder = n2.el = !!(process.env.NODE_ENV !== "production") ? createComment("teleport start") : createText("");
|
|
3487
3605
|
const mainAnchor = n2.anchor = !!(process.env.NODE_ENV !== "production") ? createComment("teleport end") : createText("");
|
|
3488
3606
|
insert(placeholder, container, anchor);
|
|
3489
3607
|
insert(mainAnchor, container, anchor);
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
container2,
|
|
3495
|
-
anchor2,
|
|
3496
|
-
parentComponent,
|
|
3497
|
-
parentSuspense,
|
|
3498
|
-
namespace,
|
|
3499
|
-
slotScopeIds,
|
|
3500
|
-
optimized
|
|
3501
|
-
);
|
|
3502
|
-
}
|
|
3503
|
-
};
|
|
3504
|
-
const mountToTarget = () => {
|
|
3505
|
-
const target = n2.target = resolveTarget(n2.props, querySelector);
|
|
3506
|
-
const targetAnchor = prepareAnchor(target, n2, createText, insert);
|
|
3507
|
-
if (target) {
|
|
3508
|
-
if (namespace !== "svg" && isTargetSVG(target)) {
|
|
3509
|
-
namespace = "svg";
|
|
3510
|
-
} else if (namespace !== "mathml" && isTargetMathML(target)) {
|
|
3511
|
-
namespace = "mathml";
|
|
3512
|
-
}
|
|
3513
|
-
if (parentComponent && parentComponent.isCE) {
|
|
3514
|
-
(parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target);
|
|
3515
|
-
}
|
|
3516
|
-
if (!disabled) {
|
|
3517
|
-
mount(target, targetAnchor);
|
|
3518
|
-
updateCssVars(n2, false);
|
|
3519
|
-
}
|
|
3520
|
-
} else if (!!(process.env.NODE_ENV !== "production") && !disabled) {
|
|
3521
|
-
warn$1(
|
|
3522
|
-
"Invalid Teleport target on mount:",
|
|
3523
|
-
target,
|
|
3524
|
-
`(${typeof target})`
|
|
3525
|
-
);
|
|
3526
|
-
}
|
|
3527
|
-
};
|
|
3608
|
+
if (isTeleportDeferred(n2.props) || parentSuspense && parentSuspense.pendingBranch) {
|
|
3609
|
+
queuePendingMount(n2);
|
|
3610
|
+
return;
|
|
3611
|
+
}
|
|
3528
3612
|
if (disabled) {
|
|
3529
|
-
mount(container, mainAnchor);
|
|
3613
|
+
mount(n2, container, mainAnchor);
|
|
3530
3614
|
updateCssVars(n2, true);
|
|
3531
3615
|
}
|
|
3532
|
-
|
|
3533
|
-
n2.el.__isMounted = false;
|
|
3534
|
-
queuePostRenderEffect(() => {
|
|
3535
|
-
mountToTarget();
|
|
3536
|
-
delete n2.el.__isMounted;
|
|
3537
|
-
}, parentSuspense);
|
|
3538
|
-
} else {
|
|
3539
|
-
mountToTarget();
|
|
3540
|
-
}
|
|
3616
|
+
mountToTarget();
|
|
3541
3617
|
} else {
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
parentComponent,
|
|
3550
|
-
parentSuspense,
|
|
3551
|
-
namespace,
|
|
3552
|
-
slotScopeIds,
|
|
3553
|
-
optimized,
|
|
3554
|
-
internals
|
|
3555
|
-
);
|
|
3556
|
-
}, parentSuspense);
|
|
3618
|
+
n2.el = n1.el;
|
|
3619
|
+
const mainAnchor = n2.anchor = n1.anchor;
|
|
3620
|
+
const pendingMount = pendingMounts.get(n1);
|
|
3621
|
+
if (pendingMount) {
|
|
3622
|
+
pendingMount.flags |= 8;
|
|
3623
|
+
pendingMounts.delete(n1);
|
|
3624
|
+
queuePendingMount(n2);
|
|
3557
3625
|
return;
|
|
3558
3626
|
}
|
|
3559
|
-
n2.el = n1.el;
|
|
3560
3627
|
n2.targetStart = n1.targetStart;
|
|
3561
|
-
const mainAnchor = n2.anchor = n1.anchor;
|
|
3562
3628
|
const target = n2.target = n1.target;
|
|
3563
3629
|
const targetAnchor = n2.targetAnchor = n1.targetAnchor;
|
|
3564
3630
|
const wasDisabled = isTeleportDisabled(n1.props);
|
|
@@ -3609,11 +3675,9 @@ const TeleportImpl = {
|
|
|
3609
3675
|
}
|
|
3610
3676
|
} else {
|
|
3611
3677
|
if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) {
|
|
3612
|
-
const nextTarget = n2.
|
|
3613
|
-
n2.props,
|
|
3614
|
-
querySelector
|
|
3615
|
-
);
|
|
3678
|
+
const nextTarget = resolveTarget(n2.props, querySelector);
|
|
3616
3679
|
if (nextTarget) {
|
|
3680
|
+
n2.target = nextTarget;
|
|
3617
3681
|
moveTeleport(
|
|
3618
3682
|
n2,
|
|
3619
3683
|
nextTarget,
|
|
@@ -3651,13 +3715,19 @@ const TeleportImpl = {
|
|
|
3651
3715
|
target,
|
|
3652
3716
|
props
|
|
3653
3717
|
} = vnode;
|
|
3718
|
+
const disabled = isTeleportDisabled(props);
|
|
3719
|
+
const shouldRemove = doRemove || !disabled;
|
|
3720
|
+
const pendingMount = pendingMounts.get(vnode);
|
|
3721
|
+
if (pendingMount) {
|
|
3722
|
+
pendingMount.flags |= 8;
|
|
3723
|
+
pendingMounts.delete(vnode);
|
|
3724
|
+
}
|
|
3654
3725
|
if (target) {
|
|
3655
3726
|
hostRemove(targetStart);
|
|
3656
3727
|
hostRemove(targetAnchor);
|
|
3657
3728
|
}
|
|
3658
3729
|
doRemove && hostRemove(anchor);
|
|
3659
|
-
if (shapeFlag & 16) {
|
|
3660
|
-
const shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
3730
|
+
if (!pendingMount && (disabled || target) && shapeFlag & 16) {
|
|
3661
3731
|
for (let i = 0; i < children.length; i++) {
|
|
3662
3732
|
const child = children[i];
|
|
3663
3733
|
unmount(
|
|
@@ -3682,7 +3752,7 @@ function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }
|
|
|
3682
3752
|
if (isReorder) {
|
|
3683
3753
|
insert(el, container, parentAnchor);
|
|
3684
3754
|
}
|
|
3685
|
-
if (!isReorder || isTeleportDisabled(props)) {
|
|
3755
|
+
if (!pendingMounts.has(vnode) && (!isReorder || isTeleportDisabled(props))) {
|
|
3686
3756
|
if (shapeFlag & 16) {
|
|
3687
3757
|
for (let i = 0; i < children.length; i++) {
|
|
3688
3758
|
move(
|
|
@@ -3701,7 +3771,22 @@ function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }
|
|
|
3701
3771
|
function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, {
|
|
3702
3772
|
o: { nextSibling, parentNode, querySelector, insert, createText }
|
|
3703
3773
|
}, hydrateChildren) {
|
|
3704
|
-
function
|
|
3774
|
+
function hydrateAnchor(target2, targetNode) {
|
|
3775
|
+
let targetAnchor = targetNode;
|
|
3776
|
+
while (targetAnchor) {
|
|
3777
|
+
if (targetAnchor && targetAnchor.nodeType === 8) {
|
|
3778
|
+
if (targetAnchor.data === "teleport start anchor") {
|
|
3779
|
+
vnode.targetStart = targetAnchor;
|
|
3780
|
+
} else if (targetAnchor.data === "teleport anchor") {
|
|
3781
|
+
vnode.targetAnchor = targetAnchor;
|
|
3782
|
+
target2._lpa = vnode.targetAnchor && nextSibling(vnode.targetAnchor);
|
|
3783
|
+
break;
|
|
3784
|
+
}
|
|
3785
|
+
}
|
|
3786
|
+
targetAnchor = nextSibling(targetAnchor);
|
|
3787
|
+
}
|
|
3788
|
+
}
|
|
3789
|
+
function hydrateDisabledTeleport(node2, vnode2) {
|
|
3705
3790
|
vnode2.anchor = hydrateChildren(
|
|
3706
3791
|
nextSibling(node2),
|
|
3707
3792
|
vnode2,
|
|
@@ -3711,8 +3796,6 @@ function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScope
|
|
|
3711
3796
|
slotScopeIds,
|
|
3712
3797
|
optimized
|
|
3713
3798
|
);
|
|
3714
|
-
vnode2.targetStart = targetStart;
|
|
3715
|
-
vnode2.targetAnchor = targetAnchor;
|
|
3716
3799
|
}
|
|
3717
3800
|
const target = vnode.target = resolveTarget(
|
|
3718
3801
|
vnode.props,
|
|
@@ -3723,27 +3806,22 @@ function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScope
|
|
|
3723
3806
|
const targetNode = target._lpa || target.firstChild;
|
|
3724
3807
|
if (vnode.shapeFlag & 16) {
|
|
3725
3808
|
if (disabled) {
|
|
3726
|
-
hydrateDisabledTeleport(
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3809
|
+
hydrateDisabledTeleport(node, vnode);
|
|
3810
|
+
hydrateAnchor(target, targetNode);
|
|
3811
|
+
if (!vnode.targetAnchor) {
|
|
3812
|
+
prepareAnchor(
|
|
3813
|
+
target,
|
|
3814
|
+
vnode,
|
|
3815
|
+
createText,
|
|
3816
|
+
insert,
|
|
3817
|
+
// if target is the same as the main view, insert anchors before current node
|
|
3818
|
+
// to avoid hydrating mismatch
|
|
3819
|
+
parentNode(node) === target ? node : null
|
|
3820
|
+
);
|
|
3821
|
+
}
|
|
3732
3822
|
} else {
|
|
3733
3823
|
vnode.anchor = nextSibling(node);
|
|
3734
|
-
|
|
3735
|
-
while (targetAnchor) {
|
|
3736
|
-
if (targetAnchor && targetAnchor.nodeType === 8) {
|
|
3737
|
-
if (targetAnchor.data === "teleport start anchor") {
|
|
3738
|
-
vnode.targetStart = targetAnchor;
|
|
3739
|
-
} else if (targetAnchor.data === "teleport anchor") {
|
|
3740
|
-
vnode.targetAnchor = targetAnchor;
|
|
3741
|
-
target._lpa = vnode.targetAnchor && nextSibling(vnode.targetAnchor);
|
|
3742
|
-
break;
|
|
3743
|
-
}
|
|
3744
|
-
}
|
|
3745
|
-
targetAnchor = nextSibling(targetAnchor);
|
|
3746
|
-
}
|
|
3824
|
+
hydrateAnchor(target, targetNode);
|
|
3747
3825
|
if (!vnode.targetAnchor) {
|
|
3748
3826
|
prepareAnchor(target, vnode, createText, insert);
|
|
3749
3827
|
}
|
|
@@ -3761,7 +3839,9 @@ function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScope
|
|
|
3761
3839
|
updateCssVars(vnode, disabled);
|
|
3762
3840
|
} else if (disabled) {
|
|
3763
3841
|
if (vnode.shapeFlag & 16) {
|
|
3764
|
-
hydrateDisabledTeleport(node, vnode
|
|
3842
|
+
hydrateDisabledTeleport(node, vnode);
|
|
3843
|
+
vnode.targetStart = node;
|
|
3844
|
+
vnode.targetAnchor = nextSibling(node);
|
|
3765
3845
|
}
|
|
3766
3846
|
}
|
|
3767
3847
|
return vnode.anchor && nextSibling(vnode.anchor);
|
|
@@ -3785,13 +3865,13 @@ function updateCssVars(vnode, isDisabled) {
|
|
|
3785
3865
|
ctx.ut();
|
|
3786
3866
|
}
|
|
3787
3867
|
}
|
|
3788
|
-
function prepareAnchor(target, vnode, createText, insert) {
|
|
3868
|
+
function prepareAnchor(target, vnode, createText, insert, anchor = null) {
|
|
3789
3869
|
const targetStart = vnode.targetStart = createText("");
|
|
3790
3870
|
const targetAnchor = vnode.targetAnchor = createText("");
|
|
3791
3871
|
targetStart[TeleportEndKey] = targetAnchor;
|
|
3792
3872
|
if (target) {
|
|
3793
|
-
insert(targetStart, target);
|
|
3794
|
-
insert(targetAnchor, target);
|
|
3873
|
+
insert(targetStart, target, anchor);
|
|
3874
|
+
insert(targetAnchor, target, anchor);
|
|
3795
3875
|
}
|
|
3796
3876
|
return targetAnchor;
|
|
3797
3877
|
}
|
|
@@ -3846,10 +3926,14 @@ const BaseTransitionImpl = {
|
|
|
3846
3926
|
const state = useTransitionState();
|
|
3847
3927
|
return () => {
|
|
3848
3928
|
const children = slots.default && getTransitionRawChildren(slots.default(), true);
|
|
3849
|
-
|
|
3929
|
+
const child = children && children.length ? findNonCommentChild(children) : (
|
|
3930
|
+
// Keep explicit default-slot conditionals on the same transition path
|
|
3931
|
+
// as regular v-if branches, which render a comment placeholder.
|
|
3932
|
+
instance.subTree ? createCommentVNode() : void 0
|
|
3933
|
+
);
|
|
3934
|
+
if (!child) {
|
|
3850
3935
|
return;
|
|
3851
3936
|
}
|
|
3852
|
-
const child = findNonCommentChild(children);
|
|
3853
3937
|
const rawProps = toRaw(props);
|
|
3854
3938
|
const { mode } = rawProps;
|
|
3855
3939
|
if (!!(process.env.NODE_ENV !== "production") && mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
|
|
@@ -4014,6 +4098,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
4014
4098
|
callHook(hook, [el]);
|
|
4015
4099
|
},
|
|
4016
4100
|
enter(el) {
|
|
4101
|
+
if (!isHmrUpdating && leavingVNodesCache[key] === vnode) return;
|
|
4017
4102
|
let hook = onEnter;
|
|
4018
4103
|
let afterHook = onAfterEnter;
|
|
4019
4104
|
let cancelHook = onEnterCancelled;
|
|
@@ -4027,7 +4112,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
4027
4112
|
}
|
|
4028
4113
|
}
|
|
4029
4114
|
let called = false;
|
|
4030
|
-
|
|
4115
|
+
el[enterCbKey$1] = (cancelled) => {
|
|
4031
4116
|
if (called) return;
|
|
4032
4117
|
called = true;
|
|
4033
4118
|
if (cancelled) {
|
|
@@ -4040,6 +4125,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
4040
4125
|
}
|
|
4041
4126
|
el[enterCbKey$1] = void 0;
|
|
4042
4127
|
};
|
|
4128
|
+
const done = el[enterCbKey$1].bind(null, false);
|
|
4043
4129
|
if (hook) {
|
|
4044
4130
|
callAsyncHook(hook, [el, done]);
|
|
4045
4131
|
} else {
|
|
@@ -4059,7 +4145,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
4059
4145
|
}
|
|
4060
4146
|
callHook(onBeforeLeave, [el]);
|
|
4061
4147
|
let called = false;
|
|
4062
|
-
|
|
4148
|
+
el[leaveCbKey] = (cancelled) => {
|
|
4063
4149
|
if (called) return;
|
|
4064
4150
|
called = true;
|
|
4065
4151
|
remove();
|
|
@@ -4073,6 +4159,7 @@ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
|
|
|
4073
4159
|
delete leavingVNodesCache[key2];
|
|
4074
4160
|
}
|
|
4075
4161
|
};
|
|
4162
|
+
const done = el[leaveCbKey].bind(null, false);
|
|
4076
4163
|
leavingVNodesCache[key2] = vnode;
|
|
4077
4164
|
if (onLeave) {
|
|
4078
4165
|
callAsyncHook(onLeave, [el, done]);
|
|
@@ -4124,7 +4211,11 @@ function getInnerChild$1(vnode) {
|
|
|
4124
4211
|
function setTransitionHooks(vnode, hooks) {
|
|
4125
4212
|
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
4126
4213
|
vnode.transition = hooks;
|
|
4127
|
-
|
|
4214
|
+
const subTree = vnode.component.subTree;
|
|
4215
|
+
setTransitionHooks(
|
|
4216
|
+
isTeleport(subTree.type) ? getInnerChild$1(subTree) || subTree : subTree,
|
|
4217
|
+
hooks
|
|
4218
|
+
);
|
|
4128
4219
|
} else if (vnode.shapeFlag & 128) {
|
|
4129
4220
|
vnode.ssContent.transition = hooks.clone(vnode.ssContent);
|
|
4130
4221
|
vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);
|
|
@@ -4185,8 +4276,7 @@ function useTemplateRef(key) {
|
|
|
4185
4276
|
const r = shallowRef(null);
|
|
4186
4277
|
if (i) {
|
|
4187
4278
|
const refs = i.refs === EMPTY_OBJ ? i.refs = {} : i.refs;
|
|
4188
|
-
|
|
4189
|
-
if (!!(process.env.NODE_ENV !== "production") && (desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable) {
|
|
4279
|
+
if (!!(process.env.NODE_ENV !== "production") && isTemplateRefKey(refs, key)) {
|
|
4190
4280
|
warn$1(`useTemplateRef('${key}') already exists.`);
|
|
4191
4281
|
} else {
|
|
4192
4282
|
Object.defineProperty(refs, key, {
|
|
@@ -4206,6 +4296,10 @@ function useTemplateRef(key) {
|
|
|
4206
4296
|
}
|
|
4207
4297
|
return ret;
|
|
4208
4298
|
}
|
|
4299
|
+
function isTemplateRefKey(refs, key) {
|
|
4300
|
+
let desc;
|
|
4301
|
+
return !!((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable);
|
|
4302
|
+
}
|
|
4209
4303
|
|
|
4210
4304
|
const pendingSetRefMap = /* @__PURE__ */ new WeakMap();
|
|
4211
4305
|
function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
@@ -4251,10 +4345,19 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4251
4345
|
return false;
|
|
4252
4346
|
}
|
|
4253
4347
|
}
|
|
4348
|
+
if (isTemplateRefKey(refs, key)) {
|
|
4349
|
+
return false;
|
|
4350
|
+
}
|
|
4254
4351
|
return hasOwn(rawSetupState, key);
|
|
4255
4352
|
};
|
|
4256
|
-
const canSetRef = (ref2) => {
|
|
4257
|
-
|
|
4353
|
+
const canSetRef = (ref2, key) => {
|
|
4354
|
+
if (!!(process.env.NODE_ENV !== "production") && knownTemplateRefs.has(ref2)) {
|
|
4355
|
+
return false;
|
|
4356
|
+
}
|
|
4357
|
+
if (key && isTemplateRefKey(refs, key)) {
|
|
4358
|
+
return false;
|
|
4359
|
+
}
|
|
4360
|
+
return true;
|
|
4258
4361
|
};
|
|
4259
4362
|
if (oldRef != null && oldRef !== ref) {
|
|
4260
4363
|
invalidatePendingSetRef(oldRawRef);
|
|
@@ -4264,10 +4367,10 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4264
4367
|
setupState[oldRef] = null;
|
|
4265
4368
|
}
|
|
4266
4369
|
} else if (isRef(oldRef)) {
|
|
4267
|
-
|
|
4370
|
+
const oldRawRefAtom = oldRawRef;
|
|
4371
|
+
if (canSetRef(oldRef, oldRawRefAtom.k)) {
|
|
4268
4372
|
oldRef.value = null;
|
|
4269
4373
|
}
|
|
4270
|
-
const oldRawRefAtom = oldRawRef;
|
|
4271
4374
|
if (oldRawRefAtom.k) refs[oldRawRefAtom.k] = null;
|
|
4272
4375
|
}
|
|
4273
4376
|
}
|
|
@@ -4291,7 +4394,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4291
4394
|
}
|
|
4292
4395
|
} else {
|
|
4293
4396
|
const newVal = [refValue];
|
|
4294
|
-
if (canSetRef(ref)) {
|
|
4397
|
+
if (canSetRef(ref, rawRef.k)) {
|
|
4295
4398
|
ref.value = newVal;
|
|
4296
4399
|
}
|
|
4297
4400
|
if (rawRef.k) refs[rawRef.k] = newVal;
|
|
@@ -4306,7 +4409,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
4306
4409
|
setupState[ref] = value;
|
|
4307
4410
|
}
|
|
4308
4411
|
} else if (_isRef) {
|
|
4309
|
-
if (canSetRef(ref)) {
|
|
4412
|
+
if (canSetRef(ref, rawRef.k)) {
|
|
4310
4413
|
ref.value = value;
|
|
4311
4414
|
}
|
|
4312
4415
|
if (rawRef.k) refs[rawRef.k] = value;
|
|
@@ -4564,9 +4667,18 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4564
4667
|
};
|
|
4565
4668
|
const hydrateElement = (el, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {
|
|
4566
4669
|
optimized = optimized || !!vnode.dynamicChildren;
|
|
4567
|
-
const {
|
|
4670
|
+
const {
|
|
4671
|
+
type,
|
|
4672
|
+
dynamicProps,
|
|
4673
|
+
props,
|
|
4674
|
+
patchFlag,
|
|
4675
|
+
shapeFlag,
|
|
4676
|
+
dirs,
|
|
4677
|
+
transition
|
|
4678
|
+
} = vnode;
|
|
4568
4679
|
const forcePatch = type === "input" || type === "option";
|
|
4569
|
-
|
|
4680
|
+
const hasDynamicProps = !!dynamicProps;
|
|
4681
|
+
if (!!(process.env.NODE_ENV !== "production") || forcePatch || hasDynamicProps || patchFlag !== -1) {
|
|
4570
4682
|
if (dirs) {
|
|
4571
4683
|
invokeDirectiveHook(vnode, null, parentComponent, "created");
|
|
4572
4684
|
}
|
|
@@ -4597,20 +4709,16 @@ function createHydrationFunctions(rendererInternals) {
|
|
|
4597
4709
|
slotScopeIds,
|
|
4598
4710
|
optimized
|
|
4599
4711
|
);
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
`Hydration children mismatch on`,
|
|
4606
|
-
el,
|
|
4607
|
-
`
|
|
4712
|
+
if (next && !isMismatchAllowed(el, 1 /* CHILDREN */)) {
|
|
4713
|
+
(!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(
|
|
4714
|
+
`Hydration children mismatch on`,
|
|
4715
|
+
el,
|
|
4716
|
+
`
|
|
4608
4717
|
Server rendered element contains more child nodes than client vdom.`
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
}
|
|
4718
|
+
);
|
|
4719
|
+
logMismatchError();
|
|
4720
|
+
}
|
|
4721
|
+
while (next) {
|
|
4614
4722
|
const cur = next;
|
|
4615
4723
|
next = next.nextSibling;
|
|
4616
4724
|
remove(cur);
|
|
@@ -4637,8 +4745,9 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4637
4745
|
}
|
|
4638
4746
|
}
|
|
4639
4747
|
if (props) {
|
|
4640
|
-
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ || forcePatch || !optimized || patchFlag & (16 | 32)) {
|
|
4748
|
+
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ || forcePatch || hasDynamicProps || !optimized || patchFlag & (16 | 32)) {
|
|
4641
4749
|
const isCustomElement = el.tagName.includes("-");
|
|
4750
|
+
const namespace = el.namespaceURI.includes("svg") ? "svg" : el.namespaceURI.includes("MathML") ? "mathml" : void 0;
|
|
4642
4751
|
for (const key in props) {
|
|
4643
4752
|
if ((!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && // #11189 skip if this node has directives that have created hooks
|
|
4644
4753
|
// as it could have mutated the DOM in any possible way
|
|
@@ -4646,8 +4755,11 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4646
4755
|
logMismatchError();
|
|
4647
4756
|
}
|
|
4648
4757
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
4649
|
-
key[0] === "." || isCustomElement) {
|
|
4650
|
-
|
|
4758
|
+
key[0] === "." || isCustomElement && !isReservedProp(key) || dynamicProps && dynamicProps.includes(key)) {
|
|
4759
|
+
if (isUnchangedResourceProp(el, key, props[key])) {
|
|
4760
|
+
continue;
|
|
4761
|
+
}
|
|
4762
|
+
patchProp(el, key, null, props[key], namespace, parentComponent);
|
|
4651
4763
|
}
|
|
4652
4764
|
}
|
|
4653
4765
|
} else if (props.onClick) {
|
|
@@ -4684,7 +4796,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4684
4796
|
optimized = optimized || !!parentVNode.dynamicChildren;
|
|
4685
4797
|
const children = parentVNode.children;
|
|
4686
4798
|
const l = children.length;
|
|
4687
|
-
let
|
|
4799
|
+
let hasCheckedMismatch = false;
|
|
4688
4800
|
for (let i = 0; i < l; i++) {
|
|
4689
4801
|
const vnode = optimized ? children[i] : children[i] = normalizeVNode(children[i]);
|
|
4690
4802
|
const isText = vnode.type === Text;
|
|
@@ -4712,17 +4824,17 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4712
4824
|
} else if (isText && !vnode.children) {
|
|
4713
4825
|
insert(vnode.el = createText(""), container);
|
|
4714
4826
|
} else {
|
|
4715
|
-
if (!
|
|
4716
|
-
|
|
4717
|
-
|
|
4827
|
+
if (!hasCheckedMismatch) {
|
|
4828
|
+
hasCheckedMismatch = true;
|
|
4829
|
+
if (!isMismatchAllowed(container, 1 /* CHILDREN */)) {
|
|
4830
|
+
(!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(
|
|
4718
4831
|
`Hydration children mismatch on`,
|
|
4719
4832
|
container,
|
|
4720
4833
|
`
|
|
4721
4834
|
Server rendered element contains fewer child nodes than client vdom.`
|
|
4722
4835
|
);
|
|
4723
|
-
|
|
4836
|
+
logMismatchError();
|
|
4724
4837
|
}
|
|
4725
|
-
logMismatchError();
|
|
4726
4838
|
}
|
|
4727
4839
|
patch(
|
|
4728
4840
|
null,
|
|
@@ -4762,7 +4874,7 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4762
4874
|
}
|
|
4763
4875
|
};
|
|
4764
4876
|
const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {
|
|
4765
|
-
if (!
|
|
4877
|
+
if (!isNodeMismatchAllowed(node, vnode)) {
|
|
4766
4878
|
(!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(
|
|
4767
4879
|
`Hydration node mismatch:
|
|
4768
4880
|
- rendered on server:`,
|
|
@@ -4840,6 +4952,13 @@ Server rendered element contains fewer child nodes than client vdom.`
|
|
|
4840
4952
|
};
|
|
4841
4953
|
return [hydrate, hydrateNode];
|
|
4842
4954
|
}
|
|
4955
|
+
const resourceProps = /* @__PURE__ */ new Set(["src", "srcset", "href", "poster"]);
|
|
4956
|
+
function isUnchangedResourceProp(el, key, clientValue) {
|
|
4957
|
+
if (!resourceProps.has(key)) {
|
|
4958
|
+
return false;
|
|
4959
|
+
}
|
|
4960
|
+
return el.getAttribute(key) === (clientValue == null ? null : `${clientValue}`);
|
|
4961
|
+
}
|
|
4843
4962
|
function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
4844
4963
|
let mismatchType;
|
|
4845
4964
|
let mismatchKey;
|
|
@@ -4877,7 +4996,10 @@ function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
|
4877
4996
|
mismatchKey = "style";
|
|
4878
4997
|
}
|
|
4879
4998
|
} else if (el instanceof SVGElement && isKnownSvgAttr(key) || el instanceof HTMLElement && (isBooleanAttr(key) || isKnownHtmlAttr(key))) {
|
|
4880
|
-
if (
|
|
4999
|
+
if (key === "hidden") {
|
|
5000
|
+
actual = normalizeHiddenValue(el.getAttribute(key));
|
|
5001
|
+
expected = normalizeHiddenValue(clientValue);
|
|
5002
|
+
} else if (isBooleanAttr(key)) {
|
|
4881
5003
|
actual = el.hasAttribute(key);
|
|
4882
5004
|
expected = includeBooleanAttr(clientValue);
|
|
4883
5005
|
} else if (clientValue == null) {
|
|
@@ -4913,6 +5035,15 @@ function propHasMismatch(el, key, clientValue, vnode, instance) {
|
|
|
4913
5035
|
}
|
|
4914
5036
|
return false;
|
|
4915
5037
|
}
|
|
5038
|
+
function normalizeHiddenValue(value) {
|
|
5039
|
+
if (!isRenderableAttrValue(value)) {
|
|
5040
|
+
return false;
|
|
5041
|
+
}
|
|
5042
|
+
if (isString(value)) {
|
|
5043
|
+
return value.toLowerCase() === "until-found" ? "until-found" : "";
|
|
5044
|
+
}
|
|
5045
|
+
return includeBooleanAttr(value) ? "" : false;
|
|
5046
|
+
}
|
|
4916
5047
|
function toClassSet(str) {
|
|
4917
5048
|
return new Set(str.trim().split(/\s+/));
|
|
4918
5049
|
}
|
|
@@ -4977,7 +5108,12 @@ function isMismatchAllowed(el, allowedType) {
|
|
|
4977
5108
|
el = el.parentElement;
|
|
4978
5109
|
}
|
|
4979
5110
|
}
|
|
4980
|
-
|
|
5111
|
+
return isMismatchAllowedByAttr(
|
|
5112
|
+
el && el.getAttribute(allowMismatchAttr),
|
|
5113
|
+
allowedType
|
|
5114
|
+
);
|
|
5115
|
+
}
|
|
5116
|
+
function isMismatchAllowedByAttr(allowedAttr, allowedType) {
|
|
4981
5117
|
if (allowedAttr == null) {
|
|
4982
5118
|
return false;
|
|
4983
5119
|
} else if (allowedAttr === "") {
|
|
@@ -4990,6 +5126,19 @@ function isMismatchAllowed(el, allowedType) {
|
|
|
4990
5126
|
return list.includes(MismatchTypeString[allowedType]);
|
|
4991
5127
|
}
|
|
4992
5128
|
}
|
|
5129
|
+
function isNodeMismatchAllowed(node, vnode) {
|
|
5130
|
+
return isMismatchAllowed(node.parentElement, 1 /* CHILDREN */) || isMismatchAllowedByNode(node) || isMismatchAllowedByVNode(vnode);
|
|
5131
|
+
}
|
|
5132
|
+
function isMismatchAllowedByNode(node) {
|
|
5133
|
+
return node.nodeType === 1 && isMismatchAllowedByAttr(
|
|
5134
|
+
node.getAttribute(allowMismatchAttr),
|
|
5135
|
+
1 /* CHILDREN */
|
|
5136
|
+
);
|
|
5137
|
+
}
|
|
5138
|
+
function isMismatchAllowedByVNode({ props }) {
|
|
5139
|
+
const allowedAttr = props && props[allowMismatchAttr];
|
|
5140
|
+
return typeof allowedAttr === "string" && isMismatchAllowedByAttr(allowedAttr, 1 /* CHILDREN */);
|
|
5141
|
+
}
|
|
4993
5142
|
|
|
4994
5143
|
const requestIdleCallback = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));
|
|
4995
5144
|
const cancelIdleCallback = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));
|
|
@@ -5143,6 +5292,7 @@ function defineAsyncComponent(source) {
|
|
|
5143
5292
|
name: "AsyncComponentWrapper",
|
|
5144
5293
|
__asyncLoader: load,
|
|
5145
5294
|
__asyncHydrate(el, instance, hydrate) {
|
|
5295
|
+
const wasConnected = el.isConnected;
|
|
5146
5296
|
let patched = false;
|
|
5147
5297
|
(instance.bu || (instance.bu = [])).push(() => patched = true);
|
|
5148
5298
|
const performHydrate = () => {
|
|
@@ -5154,6 +5304,7 @@ function defineAsyncComponent(source) {
|
|
|
5154
5304
|
}
|
|
5155
5305
|
return;
|
|
5156
5306
|
}
|
|
5307
|
+
if (!el.parentNode || wasConnected && !el.isConnected) return;
|
|
5157
5308
|
hydrate();
|
|
5158
5309
|
};
|
|
5159
5310
|
const doHydrate = hydrateStrategy ? () => {
|
|
@@ -5202,13 +5353,21 @@ function defineAsyncComponent(source) {
|
|
|
5202
5353
|
const loaded = ref(false);
|
|
5203
5354
|
const error = ref();
|
|
5204
5355
|
const delayed = ref(!!delay);
|
|
5356
|
+
let timeoutTimer;
|
|
5357
|
+
let delayTimer;
|
|
5358
|
+
onUnmounted(() => {
|
|
5359
|
+
if (timeoutTimer != null) clearTimeout(timeoutTimer);
|
|
5360
|
+
if (delayTimer != null) clearTimeout(delayTimer);
|
|
5361
|
+
});
|
|
5205
5362
|
if (delay) {
|
|
5206
|
-
setTimeout(() => {
|
|
5363
|
+
delayTimer = setTimeout(() => {
|
|
5364
|
+
if (instance.isUnmounted) return;
|
|
5207
5365
|
delayed.value = false;
|
|
5208
5366
|
}, delay);
|
|
5209
5367
|
}
|
|
5210
5368
|
if (timeout != null) {
|
|
5211
|
-
setTimeout(() => {
|
|
5369
|
+
timeoutTimer = setTimeout(() => {
|
|
5370
|
+
if (instance.isUnmounted) return;
|
|
5212
5371
|
if (!loaded.value && !error.value) {
|
|
5213
5372
|
const err = new Error(
|
|
5214
5373
|
`Async component timed out after ${timeout}ms.`
|
|
@@ -5219,11 +5378,16 @@ function defineAsyncComponent(source) {
|
|
|
5219
5378
|
}, timeout);
|
|
5220
5379
|
}
|
|
5221
5380
|
load().then(() => {
|
|
5381
|
+
if (instance.isUnmounted) return;
|
|
5222
5382
|
loaded.value = true;
|
|
5223
5383
|
if (instance.parent && isKeepAlive(instance.parent.vnode)) {
|
|
5224
5384
|
instance.parent.update();
|
|
5225
5385
|
}
|
|
5226
5386
|
}).catch((err) => {
|
|
5387
|
+
if (instance.isUnmounted) {
|
|
5388
|
+
pendingRequest = null;
|
|
5389
|
+
return;
|
|
5390
|
+
}
|
|
5227
5391
|
onError(err);
|
|
5228
5392
|
error.value = err;
|
|
5229
5393
|
});
|
|
@@ -5647,12 +5811,16 @@ function renderList(source, renderItem, cache, index) {
|
|
|
5647
5811
|
);
|
|
5648
5812
|
}
|
|
5649
5813
|
} else if (typeof source === "number") {
|
|
5650
|
-
if (!!(process.env.NODE_ENV !== "production") && !Number.isInteger(source)) {
|
|
5651
|
-
warn$1(
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5814
|
+
if (!!(process.env.NODE_ENV !== "production") && (!Number.isInteger(source) || source < 0)) {
|
|
5815
|
+
warn$1(
|
|
5816
|
+
`The v-for range expects a positive integer value but got ${source}.`
|
|
5817
|
+
);
|
|
5818
|
+
ret = [];
|
|
5819
|
+
} else {
|
|
5820
|
+
ret = new Array(source);
|
|
5821
|
+
for (let i = 0; i < source; i++) {
|
|
5822
|
+
ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
|
|
5823
|
+
}
|
|
5656
5824
|
}
|
|
5657
5825
|
} else if (isObject(source)) {
|
|
5658
5826
|
if (source[Symbol.iterator]) {
|
|
@@ -5695,14 +5863,16 @@ function createSlots(slots, dynamicSlots) {
|
|
|
5695
5863
|
return slots;
|
|
5696
5864
|
}
|
|
5697
5865
|
|
|
5698
|
-
function renderSlot(slots, name, props
|
|
5866
|
+
function renderSlot(slots, name, props, fallback, noSlotted, branchKey) {
|
|
5867
|
+
if (props == null) props = {};
|
|
5699
5868
|
if (currentRenderingInstance.ce || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.ce) {
|
|
5700
|
-
const
|
|
5701
|
-
|
|
5869
|
+
const slotProps = branchKey != null && props.key == null ? extend({}, props, { key: branchKey }) : props;
|
|
5870
|
+
const hasProps = Object.keys(slotProps).length > 0;
|
|
5871
|
+
if (name !== "default") slotProps.name = name;
|
|
5702
5872
|
return openBlock(), createBlock(
|
|
5703
5873
|
Fragment,
|
|
5704
5874
|
null,
|
|
5705
|
-
[createVNode("slot",
|
|
5875
|
+
[createVNode("slot", slotProps, fallback && fallback())],
|
|
5706
5876
|
hasProps ? -2 : 64
|
|
5707
5877
|
);
|
|
5708
5878
|
}
|
|
@@ -5716,26 +5886,34 @@ function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
|
5716
5886
|
if (slot && slot._c) {
|
|
5717
5887
|
slot._d = false;
|
|
5718
5888
|
}
|
|
5889
|
+
const prevStackSize = blockStack.length;
|
|
5719
5890
|
openBlock();
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5891
|
+
let rendered;
|
|
5892
|
+
try {
|
|
5893
|
+
const validSlotContent = slot && ensureValidVNode(slot(props));
|
|
5894
|
+
const slotKey = props.key || branchKey || // slot content array of a dynamic conditional slot may have a branch
|
|
5895
|
+
// key attached in the `createSlots` helper, respect that
|
|
5896
|
+
validSlotContent && validSlotContent.key;
|
|
5897
|
+
rendered = createBlock(
|
|
5898
|
+
Fragment,
|
|
5899
|
+
{
|
|
5900
|
+
key: (slotKey && !isSymbol(slotKey) ? slotKey : `_${name}`) + // #7256 force differentiate fallback content from actual content
|
|
5901
|
+
(!validSlotContent && fallback ? "_fb" : "")
|
|
5902
|
+
},
|
|
5903
|
+
validSlotContent || (fallback ? fallback() : []),
|
|
5904
|
+
validSlotContent && slots._ === 1 ? 64 : -2
|
|
5905
|
+
);
|
|
5906
|
+
} catch (err) {
|
|
5907
|
+
for (let i = blockStack.length; i > prevStackSize; i--) closeBlock();
|
|
5908
|
+
throw err;
|
|
5909
|
+
} finally {
|
|
5910
|
+
if (slot && slot._c) {
|
|
5911
|
+
slot._d = true;
|
|
5912
|
+
}
|
|
5913
|
+
}
|
|
5733
5914
|
if (!noSlotted && rendered.scopeId) {
|
|
5734
5915
|
rendered.slotScopeIds = [rendered.scopeId + "-s"];
|
|
5735
5916
|
}
|
|
5736
|
-
if (slot && slot._c) {
|
|
5737
|
-
slot._d = true;
|
|
5738
|
-
}
|
|
5739
5917
|
return rendered;
|
|
5740
5918
|
}
|
|
5741
5919
|
function ensureValidVNode(vnodes) {
|
|
@@ -6103,6 +6281,7 @@ function createPropsRestProxy(props, excludedKeys) {
|
|
|
6103
6281
|
}
|
|
6104
6282
|
function withAsyncContext(getAwaitable) {
|
|
6105
6283
|
const ctx = getCurrentInstance();
|
|
6284
|
+
const inSSRSetup = isInSSRComponentSetup;
|
|
6106
6285
|
if (!!(process.env.NODE_ENV !== "production") && !ctx) {
|
|
6107
6286
|
warn$1(
|
|
6108
6287
|
`withAsyncContext called without active current instance. This is likely a bug.`
|
|
@@ -6110,13 +6289,36 @@ function withAsyncContext(getAwaitable) {
|
|
|
6110
6289
|
}
|
|
6111
6290
|
let awaitable = getAwaitable();
|
|
6112
6291
|
unsetCurrentInstance();
|
|
6292
|
+
if (inSSRSetup) {
|
|
6293
|
+
setInSSRSetupState(false);
|
|
6294
|
+
}
|
|
6295
|
+
const restore = () => {
|
|
6296
|
+
setCurrentInstance(ctx);
|
|
6297
|
+
if (inSSRSetup) {
|
|
6298
|
+
setInSSRSetupState(true);
|
|
6299
|
+
}
|
|
6300
|
+
};
|
|
6301
|
+
const cleanup = () => {
|
|
6302
|
+
if (getCurrentInstance() !== ctx) ctx.scope.off();
|
|
6303
|
+
unsetCurrentInstance();
|
|
6304
|
+
if (inSSRSetup) {
|
|
6305
|
+
setInSSRSetupState(false);
|
|
6306
|
+
}
|
|
6307
|
+
};
|
|
6113
6308
|
if (isPromise(awaitable)) {
|
|
6114
6309
|
awaitable = awaitable.catch((e) => {
|
|
6115
|
-
|
|
6310
|
+
restore();
|
|
6311
|
+
Promise.resolve().then(() => Promise.resolve().then(cleanup));
|
|
6116
6312
|
throw e;
|
|
6117
6313
|
});
|
|
6118
6314
|
}
|
|
6119
|
-
return [
|
|
6315
|
+
return [
|
|
6316
|
+
awaitable,
|
|
6317
|
+
() => {
|
|
6318
|
+
restore();
|
|
6319
|
+
Promise.resolve().then(cleanup);
|
|
6320
|
+
}
|
|
6321
|
+
];
|
|
6120
6322
|
}
|
|
6121
6323
|
|
|
6122
6324
|
function createDuplicateChecker() {
|
|
@@ -6778,13 +6980,20 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
6778
6980
|
return;
|
|
6779
6981
|
}
|
|
6780
6982
|
const rawProps = i.vnode.props;
|
|
6781
|
-
|
|
6782
|
-
(name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps))
|
|
6983
|
+
const hasVModel = !!(rawProps && // check if parent has passed v-model
|
|
6984
|
+
(name in rawProps || camelizedName in rawProps || hyphenatedName in rawProps) && (`onUpdate:${name}` in rawProps || `onUpdate:${camelizedName}` in rawProps || `onUpdate:${hyphenatedName}` in rawProps));
|
|
6985
|
+
if (!hasVModel) {
|
|
6783
6986
|
localValue = value;
|
|
6784
6987
|
trigger();
|
|
6785
6988
|
}
|
|
6786
6989
|
i.emit(`update:${name}`, emittedValue);
|
|
6787
|
-
if (hasChanged(value,
|
|
6990
|
+
if (hasChanged(value, prevSetValue) && (hasChanged(value, emittedValue) && !hasChanged(emittedValue, prevEmittedValue) || // #13524: browsers differ in when they flush microtasks between
|
|
6991
|
+
// event listeners. If a v-model listener emits an intermediate value
|
|
6992
|
+
// and a following listener restores the model to its previous prop
|
|
6993
|
+
// value before parent updates are flushed, the parent render can be
|
|
6994
|
+
// deduped as having no prop change. Force a local update so DOM state
|
|
6995
|
+
// such as an input's value is synchronized back to the current model.
|
|
6996
|
+
hasVModel && prevSetValue !== EMPTY_OBJ && !hasChanged(emittedValue, localValue))) {
|
|
6788
6997
|
trigger();
|
|
6789
6998
|
}
|
|
6790
6999
|
prevSetValue = value;
|
|
@@ -6943,7 +7152,8 @@ function isEmitListener(options, key) {
|
|
|
6943
7152
|
if (!options || !isOn(key)) {
|
|
6944
7153
|
return false;
|
|
6945
7154
|
}
|
|
6946
|
-
key = key.slice(2)
|
|
7155
|
+
key = key.slice(2);
|
|
7156
|
+
key = key === "Once" ? key : key.replace(/Once$/, "");
|
|
6947
7157
|
return hasOwn(options, key[0].toLowerCase() + key.slice(1)) || hasOwn(options, hyphenate(key)) || hasOwn(options, key);
|
|
6948
7158
|
}
|
|
6949
7159
|
|
|
@@ -7082,12 +7292,13 @@ function renderComponentRoot(instance) {
|
|
|
7082
7292
|
root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
7083
7293
|
}
|
|
7084
7294
|
if (vnode.transition) {
|
|
7085
|
-
|
|
7295
|
+
const child = isTeleport(root.type) ? getInnerChild$1(root) || root : root;
|
|
7296
|
+
if (!!(process.env.NODE_ENV !== "production") && !isElementRoot(child)) {
|
|
7086
7297
|
warn$1(
|
|
7087
7298
|
`Component inside <Transition> renders non-element root node that cannot be animated.`
|
|
7088
7299
|
);
|
|
7089
7300
|
}
|
|
7090
|
-
setTransitionHooks(
|
|
7301
|
+
setTransitionHooks(child, vnode.transition);
|
|
7091
7302
|
}
|
|
7092
7303
|
if (!!(process.env.NODE_ENV !== "production") && setRoot) {
|
|
7093
7304
|
setRoot(root);
|
|
@@ -7185,7 +7396,7 @@ function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
|
|
|
7185
7396
|
const dynamicProps = nextVNode.dynamicProps;
|
|
7186
7397
|
for (let i = 0; i < dynamicProps.length; i++) {
|
|
7187
7398
|
const key = dynamicProps[i];
|
|
7188
|
-
if (nextProps
|
|
7399
|
+
if (hasPropValueChanged(nextProps, prevProps, key) && !isEmitListener(emits, key)) {
|
|
7189
7400
|
return true;
|
|
7190
7401
|
}
|
|
7191
7402
|
}
|
|
@@ -7216,17 +7427,26 @@ function hasPropsChanged(prevProps, nextProps, emitsOptions) {
|
|
|
7216
7427
|
}
|
|
7217
7428
|
for (let i = 0; i < nextKeys.length; i++) {
|
|
7218
7429
|
const key = nextKeys[i];
|
|
7219
|
-
if (nextProps
|
|
7430
|
+
if (hasPropValueChanged(nextProps, prevProps, key) && !isEmitListener(emitsOptions, key)) {
|
|
7220
7431
|
return true;
|
|
7221
7432
|
}
|
|
7222
7433
|
}
|
|
7223
7434
|
return false;
|
|
7224
7435
|
}
|
|
7225
|
-
function
|
|
7436
|
+
function hasPropValueChanged(nextProps, prevProps, key) {
|
|
7437
|
+
const nextProp = nextProps[key];
|
|
7438
|
+
const prevProp = prevProps[key];
|
|
7439
|
+
if (key === "style" && isObject(nextProp) && isObject(prevProp)) {
|
|
7440
|
+
return !looseEqual(nextProp, prevProp);
|
|
7441
|
+
}
|
|
7442
|
+
return nextProp !== prevProp;
|
|
7443
|
+
}
|
|
7444
|
+
function updateHOCHostEl({ vnode, parent, suspense }, el) {
|
|
7226
7445
|
while (parent) {
|
|
7227
7446
|
const root = parent.subTree;
|
|
7228
7447
|
if (root.suspense && root.suspense.activeBranch === vnode) {
|
|
7229
|
-
root.el =
|
|
7448
|
+
root.suspense.vnode.el = root.el = el;
|
|
7449
|
+
vnode = root;
|
|
7230
7450
|
}
|
|
7231
7451
|
if (root === vnode) {
|
|
7232
7452
|
(vnode = parent.vnode).el = el;
|
|
@@ -7235,6 +7455,9 @@ function updateHOCHostEl({ vnode, parent }, el) {
|
|
|
7235
7455
|
break;
|
|
7236
7456
|
}
|
|
7237
7457
|
}
|
|
7458
|
+
if (suspense && suspense.activeBranch === vnode) {
|
|
7459
|
+
suspense.vnode.el = el;
|
|
7460
|
+
}
|
|
7238
7461
|
}
|
|
7239
7462
|
|
|
7240
7463
|
const internalObjectProto = {};
|
|
@@ -7622,7 +7845,7 @@ function getInvalidTypeMessage(name, value, expectedTypes) {
|
|
|
7622
7845
|
const receivedType = toRawType(value);
|
|
7623
7846
|
const expectedValue = styleValue(value, expectedType);
|
|
7624
7847
|
const receivedValue = styleValue(value, receivedType);
|
|
7625
|
-
if (expectedTypes.length === 1 && isExplicable(expectedType) &&
|
|
7848
|
+
if (expectedTypes.length === 1 && isExplicable(expectedType) && isCoercible(expectedType, receivedType)) {
|
|
7626
7849
|
message += ` with value ${expectedValue}`;
|
|
7627
7850
|
}
|
|
7628
7851
|
message += `, got ${receivedType} `;
|
|
@@ -7632,7 +7855,9 @@ function getInvalidTypeMessage(name, value, expectedTypes) {
|
|
|
7632
7855
|
return message;
|
|
7633
7856
|
}
|
|
7634
7857
|
function styleValue(value, type) {
|
|
7635
|
-
if (
|
|
7858
|
+
if (isSymbol(value)) {
|
|
7859
|
+
return value.toString();
|
|
7860
|
+
} else if (type === "String") {
|
|
7636
7861
|
return `"${value}"`;
|
|
7637
7862
|
} else if (type === "Number") {
|
|
7638
7863
|
return `${Number(value)}`;
|
|
@@ -7644,8 +7869,11 @@ function isExplicable(type) {
|
|
|
7644
7869
|
const explicitTypes = ["string", "number", "boolean"];
|
|
7645
7870
|
return explicitTypes.some((elem) => type.toLowerCase() === elem);
|
|
7646
7871
|
}
|
|
7647
|
-
function
|
|
7648
|
-
return args.
|
|
7872
|
+
function isCoercible(...args) {
|
|
7873
|
+
return args.every((elem) => {
|
|
7874
|
+
const value = elem.toLowerCase();
|
|
7875
|
+
return value !== "boolean" && value !== "symbol";
|
|
7876
|
+
});
|
|
7649
7877
|
}
|
|
7650
7878
|
|
|
7651
7879
|
const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
|
|
@@ -7952,15 +8180,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7952
8180
|
} else {
|
|
7953
8181
|
const el = n2.el = n1.el;
|
|
7954
8182
|
if (n2.children !== n1.children) {
|
|
7955
|
-
|
|
7956
|
-
const childNodes = container.childNodes;
|
|
7957
|
-
const newChild = hostCreateText(n2.children);
|
|
7958
|
-
const oldChild = childNodes[n2.__elIndex = n1.__elIndex];
|
|
7959
|
-
hostInsert(newChild, container, oldChild);
|
|
7960
|
-
hostRemove(oldChild);
|
|
7961
|
-
} else {
|
|
7962
|
-
hostSetText(el, n2.children);
|
|
7963
|
-
}
|
|
8183
|
+
hostSetText(el, n2.children);
|
|
7964
8184
|
}
|
|
7965
8185
|
}
|
|
7966
8186
|
};
|
|
@@ -8036,7 +8256,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8036
8256
|
optimized
|
|
8037
8257
|
);
|
|
8038
8258
|
} else {
|
|
8039
|
-
const customElement =
|
|
8259
|
+
const customElement = n1.el && n1.el._isVueCE ? n1.el : null;
|
|
8040
8260
|
try {
|
|
8041
8261
|
if (customElement) {
|
|
8042
8262
|
customElement._beginPatch();
|
|
@@ -8111,10 +8331,17 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8111
8331
|
}
|
|
8112
8332
|
hostInsert(el, container, anchor);
|
|
8113
8333
|
if ((vnodeHook = props && props.onVnodeMounted) || needCallTransitionHooks || dirs) {
|
|
8334
|
+
const isHmr = !!(process.env.NODE_ENV !== "production") && isHmrUpdating;
|
|
8114
8335
|
queuePostRenderEffect(() => {
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8336
|
+
let prev;
|
|
8337
|
+
if (!!(process.env.NODE_ENV !== "production")) prev = setHmrUpdating(isHmr);
|
|
8338
|
+
try {
|
|
8339
|
+
vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
|
|
8340
|
+
needCallTransitionHooks && transition.enter(el);
|
|
8341
|
+
dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted");
|
|
8342
|
+
} finally {
|
|
8343
|
+
if (!!(process.env.NODE_ENV !== "production")) setHmrUpdating(prev);
|
|
8344
|
+
}
|
|
8118
8345
|
}, parentSuspense);
|
|
8119
8346
|
}
|
|
8120
8347
|
};
|
|
@@ -8178,7 +8405,12 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8178
8405
|
invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate");
|
|
8179
8406
|
}
|
|
8180
8407
|
parentComponent && toggleRecurse(parentComponent, true);
|
|
8181
|
-
if (
|
|
8408
|
+
if (
|
|
8409
|
+
// HMR updated, force full diff
|
|
8410
|
+
!!(process.env.NODE_ENV !== "production") && isHmrUpdating || // #6385 the old vnode may be a user-wrapped non-isomorphic block
|
|
8411
|
+
// Force full diff when block metadata is unstable.
|
|
8412
|
+
dynamicChildren && (!n1.dynamicChildren || n1.dynamicChildren.length !== dynamicChildren.length)
|
|
8413
|
+
) {
|
|
8182
8414
|
patchFlag = 0;
|
|
8183
8415
|
optimized = false;
|
|
8184
8416
|
dynamicChildren = null;
|
|
@@ -8529,9 +8761,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8529
8761
|
hydrateSubTree();
|
|
8530
8762
|
}
|
|
8531
8763
|
} else {
|
|
8532
|
-
if (root.ce &&
|
|
8533
|
-
|
|
8534
|
-
|
|
8764
|
+
if (root.ce && root.ce._hasShadowRoot()) {
|
|
8765
|
+
root.ce._injectChildStyle(
|
|
8766
|
+
type,
|
|
8767
|
+
instance.parent ? instance.parent.type : void 0
|
|
8768
|
+
);
|
|
8535
8769
|
}
|
|
8536
8770
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
8537
8771
|
startMeasure(instance, `render`);
|
|
@@ -8585,9 +8819,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8585
8819
|
updateComponentPreRender(instance, next, optimized);
|
|
8586
8820
|
}
|
|
8587
8821
|
nonHydratedAsyncRoot.asyncDep.then(() => {
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
}
|
|
8822
|
+
queuePostRenderEffect(() => {
|
|
8823
|
+
if (!instance.isUnmounted) update();
|
|
8824
|
+
}, parentSuspense);
|
|
8591
8825
|
});
|
|
8592
8826
|
return;
|
|
8593
8827
|
}
|
|
@@ -9000,9 +9234,13 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9000
9234
|
const needTransition2 = moveType !== 2 && shapeFlag & 1 && transition;
|
|
9001
9235
|
if (needTransition2) {
|
|
9002
9236
|
if (moveType === 0) {
|
|
9003
|
-
transition.
|
|
9004
|
-
|
|
9005
|
-
|
|
9237
|
+
if (transition.persisted && !el[leaveCbKey]) {
|
|
9238
|
+
hostInsert(el, container, anchor);
|
|
9239
|
+
} else {
|
|
9240
|
+
transition.beforeEnter(el);
|
|
9241
|
+
hostInsert(el, container, anchor);
|
|
9242
|
+
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
|
|
9243
|
+
}
|
|
9006
9244
|
} else {
|
|
9007
9245
|
const { leave, delayLeave, afterLeave } = transition;
|
|
9008
9246
|
const remove2 = () => {
|
|
@@ -9013,16 +9251,21 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9013
9251
|
}
|
|
9014
9252
|
};
|
|
9015
9253
|
const performLeave = () => {
|
|
9254
|
+
const wasLeaving = el._isLeaving || !!el[leaveCbKey];
|
|
9016
9255
|
if (el._isLeaving) {
|
|
9017
9256
|
el[leaveCbKey](
|
|
9018
9257
|
true
|
|
9019
9258
|
/* cancelled */
|
|
9020
9259
|
);
|
|
9021
9260
|
}
|
|
9022
|
-
|
|
9261
|
+
if (transition.persisted && !wasLeaving) {
|
|
9023
9262
|
remove2();
|
|
9024
|
-
|
|
9025
|
-
|
|
9263
|
+
} else {
|
|
9264
|
+
leave(el, () => {
|
|
9265
|
+
remove2();
|
|
9266
|
+
afterLeave && afterLeave();
|
|
9267
|
+
});
|
|
9268
|
+
}
|
|
9026
9269
|
};
|
|
9027
9270
|
if (delayLeave) {
|
|
9028
9271
|
delayLeave(el, remove2, performLeave);
|
|
@@ -9044,7 +9287,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9044
9287
|
shapeFlag,
|
|
9045
9288
|
patchFlag,
|
|
9046
9289
|
dirs,
|
|
9047
|
-
cacheIndex
|
|
9290
|
+
cacheIndex,
|
|
9291
|
+
memo
|
|
9048
9292
|
} = vnode;
|
|
9049
9293
|
if (patchFlag === -2) {
|
|
9050
9294
|
optimized = false;
|
|
@@ -9106,10 +9350,14 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9106
9350
|
remove(vnode);
|
|
9107
9351
|
}
|
|
9108
9352
|
}
|
|
9109
|
-
|
|
9353
|
+
const shouldInvalidateMemo = memo != null && cacheIndex == null;
|
|
9354
|
+
if (shouldInvokeVnodeHook && (vnodeHook = props && props.onVnodeUnmounted) || shouldInvokeDirs || shouldInvalidateMemo) {
|
|
9110
9355
|
queuePostRenderEffect(() => {
|
|
9111
9356
|
vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
|
|
9112
9357
|
shouldInvokeDirs && invokeDirectiveHook(vnode, null, parentComponent, "unmounted");
|
|
9358
|
+
if (shouldInvalidateMemo) {
|
|
9359
|
+
vnode.el = null;
|
|
9360
|
+
}
|
|
9113
9361
|
}, parentSuspense);
|
|
9114
9362
|
}
|
|
9115
9363
|
};
|
|
@@ -9284,12 +9532,10 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
9284
9532
|
traverseStaticChildren(c1, c2);
|
|
9285
9533
|
}
|
|
9286
9534
|
if (c2.type === Text) {
|
|
9287
|
-
if (c2.patchFlag
|
|
9288
|
-
c2
|
|
9289
|
-
} else {
|
|
9290
|
-
c2.__elIndex = i + // take fragment start anchor into account
|
|
9291
|
-
(n1.type === Fragment ? 1 : 0);
|
|
9535
|
+
if (c2.patchFlag === -1) {
|
|
9536
|
+
c2 = ch2[i] = cloneIfMounted(c2);
|
|
9292
9537
|
}
|
|
9538
|
+
c2.el = c1.el;
|
|
9293
9539
|
}
|
|
9294
9540
|
if (c2.type === Comment && !c2.el) {
|
|
9295
9541
|
c2.el = c1.el;
|
|
@@ -9665,6 +9911,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
9665
9911
|
pendingId: suspenseId++,
|
|
9666
9912
|
timeout: typeof timeout === "number" ? timeout : -1,
|
|
9667
9913
|
activeBranch: null,
|
|
9914
|
+
isFallbackMountPending: false,
|
|
9668
9915
|
pendingBranch: null,
|
|
9669
9916
|
isInFallback: !isHydrating,
|
|
9670
9917
|
isHydrating,
|
|
@@ -9698,13 +9945,14 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
9698
9945
|
suspense.isHydrating = false;
|
|
9699
9946
|
} else if (!resume) {
|
|
9700
9947
|
delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === "out-in";
|
|
9948
|
+
let hasUpdatedAnchor = false;
|
|
9701
9949
|
if (delayEnter) {
|
|
9702
9950
|
activeBranch.transition.afterLeave = () => {
|
|
9703
9951
|
if (pendingId === suspense.pendingId) {
|
|
9704
9952
|
move(
|
|
9705
9953
|
pendingBranch,
|
|
9706
9954
|
container2,
|
|
9707
|
-
anchor === initialAnchor ? next(activeBranch) : anchor,
|
|
9955
|
+
anchor === initialAnchor && !hasUpdatedAnchor ? next(activeBranch) : anchor,
|
|
9708
9956
|
0
|
|
9709
9957
|
);
|
|
9710
9958
|
queuePostFlushCb(effects);
|
|
@@ -9714,9 +9962,10 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
9714
9962
|
}
|
|
9715
9963
|
};
|
|
9716
9964
|
}
|
|
9717
|
-
if (activeBranch) {
|
|
9965
|
+
if (activeBranch && !suspense.isFallbackMountPending) {
|
|
9718
9966
|
if (parentNode(activeBranch.el) === container2) {
|
|
9719
9967
|
anchor = next(activeBranch);
|
|
9968
|
+
hasUpdatedAnchor = true;
|
|
9720
9969
|
}
|
|
9721
9970
|
unmount(activeBranch, parentComponent2, suspense, true);
|
|
9722
9971
|
if (!delayEnter && isInFallback && vnode2.ssFallback) {
|
|
@@ -9727,6 +9976,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
9727
9976
|
move(pendingBranch, container2, anchor, 0);
|
|
9728
9977
|
}
|
|
9729
9978
|
}
|
|
9979
|
+
suspense.isFallbackMountPending = false;
|
|
9730
9980
|
setActiveBranch(suspense, pendingBranch);
|
|
9731
9981
|
suspense.pendingBranch = null;
|
|
9732
9982
|
suspense.isInFallback = false;
|
|
@@ -9734,7 +9984,9 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
9734
9984
|
let hasUnresolvedAncestor = false;
|
|
9735
9985
|
while (parent) {
|
|
9736
9986
|
if (parent.pendingBranch) {
|
|
9737
|
-
|
|
9987
|
+
for (let i = 0; i < effects.length; i++) {
|
|
9988
|
+
parent.effects.push(effects[i]);
|
|
9989
|
+
}
|
|
9738
9990
|
hasUnresolvedAncestor = true;
|
|
9739
9991
|
break;
|
|
9740
9992
|
}
|
|
@@ -9762,6 +10014,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
9762
10014
|
triggerEvent(vnode2, "onFallback");
|
|
9763
10015
|
const anchor2 = next(activeBranch);
|
|
9764
10016
|
const mountFallback = () => {
|
|
10017
|
+
suspense.isFallbackMountPending = false;
|
|
9765
10018
|
if (!suspense.isInFallback) {
|
|
9766
10019
|
return;
|
|
9767
10020
|
}
|
|
@@ -9781,6 +10034,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
9781
10034
|
};
|
|
9782
10035
|
const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === "out-in";
|
|
9783
10036
|
if (delayEnter) {
|
|
10037
|
+
suspense.isFallbackMountPending = true;
|
|
9784
10038
|
activeBranch.transition.afterLeave = mountFallback;
|
|
9785
10039
|
}
|
|
9786
10040
|
suspense.isInFallback = true;
|
|
@@ -9815,6 +10069,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
9815
10069
|
if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) {
|
|
9816
10070
|
return;
|
|
9817
10071
|
}
|
|
10072
|
+
unsetCurrentInstance();
|
|
9818
10073
|
instance.asyncResolved = true;
|
|
9819
10074
|
const { vnode: vnode2 } = instance;
|
|
9820
10075
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
@@ -10096,6 +10351,14 @@ function createBaseVNode(type, props = null, children = null, patchFlag = 0, dyn
|
|
|
10096
10351
|
if (!!(process.env.NODE_ENV !== "production") && vnode.key !== vnode.key) {
|
|
10097
10352
|
warn$1(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
|
|
10098
10353
|
}
|
|
10354
|
+
if (!!(process.env.NODE_ENV !== "production") && props && vnode.shapeFlag & 1) {
|
|
10355
|
+
const overwritingProp = props.innerHTML != null ? "innerHTML" : props.textContent != null ? "textContent" : null;
|
|
10356
|
+
if (overwritingProp && hasContentChildren(vnode.children)) {
|
|
10357
|
+
warn$1(
|
|
10358
|
+
`The \`${overwritingProp}\` prop on <${vnode.type}> will override its children. Remove either the \`${overwritingProp}\` prop or the children.`
|
|
10359
|
+
);
|
|
10360
|
+
}
|
|
10361
|
+
}
|
|
10099
10362
|
if (isBlockTreeEnabled > 0 && // avoid a block node from tracking itself
|
|
10100
10363
|
!isBlockNode && // has current parent block
|
|
10101
10364
|
currentBlock && // presence of a patch flag indicates this node needs patching on updates.
|
|
@@ -10109,6 +10372,11 @@ function createBaseVNode(type, props = null, children = null, patchFlag = 0, dyn
|
|
|
10109
10372
|
}
|
|
10110
10373
|
return vnode;
|
|
10111
10374
|
}
|
|
10375
|
+
function hasContentChildren(children) {
|
|
10376
|
+
if (isString(children)) return children !== "";
|
|
10377
|
+
if (isArray(children)) return children.length > 0;
|
|
10378
|
+
return false;
|
|
10379
|
+
}
|
|
10112
10380
|
const createVNode = !!(process.env.NODE_ENV !== "production") ? createVNodeWithArgsTransform : _createVNode;
|
|
10113
10381
|
function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
|
|
10114
10382
|
if (!type || type === NULL_DYNAMIC_COMPONENT) {
|
|
@@ -10301,6 +10569,10 @@ function normalizeChildren(vnode, children) {
|
|
|
10301
10569
|
}
|
|
10302
10570
|
}
|
|
10303
10571
|
} else if (isFunction(children)) {
|
|
10572
|
+
if (shapeFlag & (1 | 64)) {
|
|
10573
|
+
normalizeChildren(vnode, { default: children });
|
|
10574
|
+
return;
|
|
10575
|
+
}
|
|
10304
10576
|
children = { default: children, _ctx: currentRenderingInstance };
|
|
10305
10577
|
type = 32;
|
|
10306
10578
|
} else {
|
|
@@ -10331,6 +10603,10 @@ function mergeProps(...args) {
|
|
|
10331
10603
|
const incoming = toMerge[key];
|
|
10332
10604
|
if (incoming && existing !== incoming && !(isArray(existing) && existing.includes(incoming))) {
|
|
10333
10605
|
ret[key] = existing ? [].concat(existing, incoming) : incoming;
|
|
10606
|
+
} else if (incoming == null && existing == null && // mergeProps({ 'onUpdate:modelValue': undefined }) should not retain
|
|
10607
|
+
// the model listener.
|
|
10608
|
+
!isModelListener(key)) {
|
|
10609
|
+
ret[key] = incoming;
|
|
10334
10610
|
}
|
|
10335
10611
|
} else if (key !== "") {
|
|
10336
10612
|
ret[key] = toMerge[key];
|
|
@@ -10551,7 +10827,12 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
10551
10827
|
setupResult.then(unsetCurrentInstance, unsetCurrentInstance);
|
|
10552
10828
|
if (isSSR) {
|
|
10553
10829
|
return setupResult.then((resolvedResult) => {
|
|
10554
|
-
|
|
10830
|
+
setInSSRSetupState(true);
|
|
10831
|
+
try {
|
|
10832
|
+
handleSetupResult(instance, resolvedResult, isSSR);
|
|
10833
|
+
} finally {
|
|
10834
|
+
setInSSRSetupState(false);
|
|
10835
|
+
}
|
|
10555
10836
|
}).catch((e) => {
|
|
10556
10837
|
handleError(e, instance, 0);
|
|
10557
10838
|
});
|
|
@@ -11029,7 +11310,7 @@ function isMemoSame(cached, memo) {
|
|
|
11029
11310
|
return true;
|
|
11030
11311
|
}
|
|
11031
11312
|
|
|
11032
|
-
const version = "3.5.
|
|
11313
|
+
const version = "3.5.41";
|
|
11033
11314
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
11034
11315
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
11035
11316
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -11052,7 +11333,7 @@ const compatUtils = null;
|
|
|
11052
11333
|
const DeprecationTypes = null;
|
|
11053
11334
|
|
|
11054
11335
|
/**
|
|
11055
|
-
* @vue/runtime-dom v3.5.
|
|
11336
|
+
* @vue/runtime-dom v3.5.41
|
|
11056
11337
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
11057
11338
|
* @license MIT
|
|
11058
11339
|
**/
|
|
@@ -11582,7 +11863,19 @@ function patchStyle(el, prev, next) {
|
|
|
11582
11863
|
if (key === "display") {
|
|
11583
11864
|
hasControlledDisplay = true;
|
|
11584
11865
|
}
|
|
11585
|
-
|
|
11866
|
+
const value = next[key];
|
|
11867
|
+
if (value != null) {
|
|
11868
|
+
if (!shouldPreserveTextareaResizeStyle(
|
|
11869
|
+
el,
|
|
11870
|
+
key,
|
|
11871
|
+
!isString(prev) && prev ? prev[key] : void 0,
|
|
11872
|
+
value
|
|
11873
|
+
)) {
|
|
11874
|
+
setStyle(style, key, value);
|
|
11875
|
+
}
|
|
11876
|
+
} else {
|
|
11877
|
+
setStyle(style, key, "");
|
|
11878
|
+
}
|
|
11586
11879
|
}
|
|
11587
11880
|
} else {
|
|
11588
11881
|
if (isCssString) {
|
|
@@ -11655,6 +11948,9 @@ function autoPrefix(style, rawName) {
|
|
|
11655
11948
|
}
|
|
11656
11949
|
return rawName;
|
|
11657
11950
|
}
|
|
11951
|
+
function shouldPreserveTextareaResizeStyle(el, key, prev, next) {
|
|
11952
|
+
return el.tagName === "TEXTAREA" && (key === "width" || key === "height") && isString(next) && prev === next;
|
|
11953
|
+
}
|
|
11658
11954
|
|
|
11659
11955
|
const xlinkNS = "http://www.w3.org/1999/xlink";
|
|
11660
11956
|
function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) {
|
|
@@ -11753,16 +12049,15 @@ function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
|
11753
12049
|
}
|
|
11754
12050
|
}
|
|
11755
12051
|
}
|
|
11756
|
-
const optionsModifierRE = /(
|
|
12052
|
+
const optionsModifierRE = /(Once|Passive|Capture)$/;
|
|
12053
|
+
const optionsModifierEventRE = /^on:?(?:Once|Passive|Capture)$/;
|
|
11757
12054
|
function parseName(name) {
|
|
11758
12055
|
let options;
|
|
11759
|
-
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
11763
|
-
|
|
11764
|
-
options[m[0].toLowerCase()] = true;
|
|
11765
|
-
}
|
|
12056
|
+
let m;
|
|
12057
|
+
while ((m = name.match(optionsModifierRE)) && !optionsModifierEventRE.test(name)) {
|
|
12058
|
+
if (!options) options = {};
|
|
12059
|
+
name = name.slice(0, name.length - m[1].length);
|
|
12060
|
+
options[m[1].toLowerCase()] = true;
|
|
11766
12061
|
}
|
|
11767
12062
|
const event = name[2] === ":" ? name.slice(3) : hyphenate(name.slice(2));
|
|
11768
12063
|
return [event, options];
|
|
@@ -11777,12 +12072,37 @@ function createInvoker(initialValue, instance) {
|
|
|
11777
12072
|
} else if (e._vts <= invoker.attached) {
|
|
11778
12073
|
return;
|
|
11779
12074
|
}
|
|
11780
|
-
|
|
11781
|
-
|
|
11782
|
-
|
|
11783
|
-
|
|
11784
|
-
|
|
11785
|
-
|
|
12075
|
+
const value = invoker.value;
|
|
12076
|
+
if (isArray(value)) {
|
|
12077
|
+
const originalStop = e.stopImmediatePropagation;
|
|
12078
|
+
e.stopImmediatePropagation = () => {
|
|
12079
|
+
originalStop.call(e);
|
|
12080
|
+
e._stopped = true;
|
|
12081
|
+
};
|
|
12082
|
+
const handlers = value.slice();
|
|
12083
|
+
const args = [e];
|
|
12084
|
+
for (let i = 0; i < handlers.length; i++) {
|
|
12085
|
+
if (e._stopped) {
|
|
12086
|
+
break;
|
|
12087
|
+
}
|
|
12088
|
+
const handler = handlers[i];
|
|
12089
|
+
if (handler) {
|
|
12090
|
+
callWithAsyncErrorHandling(
|
|
12091
|
+
handler,
|
|
12092
|
+
instance,
|
|
12093
|
+
5,
|
|
12094
|
+
args
|
|
12095
|
+
);
|
|
12096
|
+
}
|
|
12097
|
+
}
|
|
12098
|
+
} else {
|
|
12099
|
+
callWithAsyncErrorHandling(
|
|
12100
|
+
value,
|
|
12101
|
+
instance,
|
|
12102
|
+
5,
|
|
12103
|
+
[e]
|
|
12104
|
+
);
|
|
12105
|
+
}
|
|
11786
12106
|
};
|
|
11787
12107
|
invoker.value = initialValue;
|
|
11788
12108
|
invoker.attached = getNow();
|
|
@@ -11798,20 +12118,6 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
11798
12118
|
);
|
|
11799
12119
|
return NOOP;
|
|
11800
12120
|
}
|
|
11801
|
-
function patchStopImmediatePropagation(e, value) {
|
|
11802
|
-
if (isArray(value)) {
|
|
11803
|
-
const originalStop = e.stopImmediatePropagation;
|
|
11804
|
-
e.stopImmediatePropagation = () => {
|
|
11805
|
-
originalStop.call(e);
|
|
11806
|
-
e._stopped = true;
|
|
11807
|
-
};
|
|
11808
|
-
return value.map(
|
|
11809
|
-
(fn) => (e2) => !e2._stopped && fn && fn(e2)
|
|
11810
|
-
);
|
|
11811
|
-
} else {
|
|
11812
|
-
return value;
|
|
11813
|
-
}
|
|
11814
|
-
}
|
|
11815
12121
|
|
|
11816
12122
|
const isNativeOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // lowercase letter
|
|
11817
12123
|
key.charCodeAt(2) > 96 && key.charCodeAt(2) < 123;
|
|
@@ -11832,7 +12138,9 @@ const patchProp = (el, key, prevValue, nextValue, namespace, parentComponent) =>
|
|
|
11832
12138
|
}
|
|
11833
12139
|
} else if (
|
|
11834
12140
|
// #11081 force set props for possible async custom element
|
|
11835
|
-
el._isVueCE &&
|
|
12141
|
+
el._isVueCE && // #12408 check if it's declared prop or it's async custom element
|
|
12142
|
+
(shouldSetAsPropForVueCE(el, key) || // @ts-expect-error _def is private
|
|
12143
|
+
el._def.__asyncLoader && (/[A-Z]/.test(key) || !isString(nextValue)))
|
|
11836
12144
|
) {
|
|
11837
12145
|
patchDOMProp(el, camelize(key), nextValue, parentComponent, key);
|
|
11838
12146
|
} else {
|
|
@@ -11880,6 +12188,17 @@ function shouldSetAsProp(el, key, value, isSVG) {
|
|
|
11880
12188
|
}
|
|
11881
12189
|
return key in el;
|
|
11882
12190
|
}
|
|
12191
|
+
function shouldSetAsPropForVueCE(el, key) {
|
|
12192
|
+
const props = (
|
|
12193
|
+
// @ts-expect-error _def is private
|
|
12194
|
+
el._def.props
|
|
12195
|
+
);
|
|
12196
|
+
if (!props) {
|
|
12197
|
+
return false;
|
|
12198
|
+
}
|
|
12199
|
+
const camelKey = camelize(key);
|
|
12200
|
+
return Array.isArray(props) ? props.some((prop) => camelize(prop) === camelKey) : Object.keys(props).some((prop) => camelize(prop) === camelKey);
|
|
12201
|
+
}
|
|
11883
12202
|
|
|
11884
12203
|
const REMOVAL = {};
|
|
11885
12204
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -11924,6 +12243,7 @@ class VueElement extends BaseClass {
|
|
|
11924
12243
|
this._dirty = false;
|
|
11925
12244
|
this._numberProps = null;
|
|
11926
12245
|
this._styleChildren = /* @__PURE__ */ new WeakSet();
|
|
12246
|
+
this._styleAnchors = /* @__PURE__ */ new WeakMap();
|
|
11927
12247
|
this._ob = null;
|
|
11928
12248
|
if (this.shadowRoot && _createApp !== createApp) {
|
|
11929
12249
|
this._root = this.shadowRoot;
|
|
@@ -11952,7 +12272,8 @@ class VueElement extends BaseClass {
|
|
|
11952
12272
|
}
|
|
11953
12273
|
this._connected = true;
|
|
11954
12274
|
let parent = this;
|
|
11955
|
-
while (parent = parent &&
|
|
12275
|
+
while (parent = parent && // #12479 should check assignedSlot first to get correct parent
|
|
12276
|
+
(parent.assignedSlot || parent.parentNode || parent.host)) {
|
|
11956
12277
|
if (parent instanceof VueElement) {
|
|
11957
12278
|
this._parent = parent;
|
|
11958
12279
|
break;
|
|
@@ -11965,7 +12286,9 @@ class VueElement extends BaseClass {
|
|
|
11965
12286
|
if (parent && parent._pendingResolve) {
|
|
11966
12287
|
this._pendingResolve = parent._pendingResolve.then(() => {
|
|
11967
12288
|
this._pendingResolve = void 0;
|
|
11968
|
-
this.
|
|
12289
|
+
if (this.isConnected) {
|
|
12290
|
+
return this._resolveDef();
|
|
12291
|
+
}
|
|
11969
12292
|
});
|
|
11970
12293
|
} else {
|
|
11971
12294
|
this._resolveDef();
|
|
@@ -12015,7 +12338,7 @@ class VueElement extends BaseClass {
|
|
|
12015
12338
|
*/
|
|
12016
12339
|
_resolveDef() {
|
|
12017
12340
|
if (this._pendingResolve) {
|
|
12018
|
-
return;
|
|
12341
|
+
return this._pendingResolve;
|
|
12019
12342
|
}
|
|
12020
12343
|
for (let i = 0; i < this.attributes.length; i++) {
|
|
12021
12344
|
this._setAttr(this.attributes[i].name);
|
|
@@ -12055,6 +12378,7 @@ class VueElement extends BaseClass {
|
|
|
12055
12378
|
def.configureApp = this._def.configureApp;
|
|
12056
12379
|
resolve(this._def = def, true);
|
|
12057
12380
|
});
|
|
12381
|
+
return this._pendingResolve;
|
|
12058
12382
|
} else {
|
|
12059
12383
|
resolve(this._def);
|
|
12060
12384
|
}
|
|
@@ -12092,6 +12416,11 @@ class VueElement extends BaseClass {
|
|
|
12092
12416
|
}
|
|
12093
12417
|
}
|
|
12094
12418
|
for (const key of declaredPropKeys.map(camelize)) {
|
|
12419
|
+
if (!!(process.env.NODE_ENV !== "production") && key in Object.getPrototypeOf(this)) {
|
|
12420
|
+
warn(
|
|
12421
|
+
`Custom element prop "${key}" conflicts with an existing property on the element and will overwrite it.`
|
|
12422
|
+
);
|
|
12423
|
+
}
|
|
12095
12424
|
Object.defineProperty(this, key, {
|
|
12096
12425
|
get() {
|
|
12097
12426
|
return this._getProp(key);
|
|
@@ -12174,6 +12503,7 @@ class VueElement extends BaseClass {
|
|
|
12174
12503
|
this._styles.forEach((s) => this._root.removeChild(s));
|
|
12175
12504
|
this._styles.length = 0;
|
|
12176
12505
|
}
|
|
12506
|
+
this._styleAnchors.delete(this._def);
|
|
12177
12507
|
this._applyStyles(newStyles);
|
|
12178
12508
|
this._instance = null;
|
|
12179
12509
|
this._update();
|
|
@@ -12198,7 +12528,7 @@ class VueElement extends BaseClass {
|
|
|
12198
12528
|
}
|
|
12199
12529
|
return vnode;
|
|
12200
12530
|
}
|
|
12201
|
-
_applyStyles(styles, owner) {
|
|
12531
|
+
_applyStyles(styles, owner, parentComp) {
|
|
12202
12532
|
if (!styles) return;
|
|
12203
12533
|
if (owner) {
|
|
12204
12534
|
if (owner === this._def || this._styleChildren.has(owner)) {
|
|
@@ -12207,11 +12537,19 @@ class VueElement extends BaseClass {
|
|
|
12207
12537
|
this._styleChildren.add(owner);
|
|
12208
12538
|
}
|
|
12209
12539
|
const nonce = this._nonce;
|
|
12540
|
+
const root = this.shadowRoot;
|
|
12541
|
+
const insertionAnchor = parentComp ? this._getStyleAnchor(parentComp) || this._getStyleAnchor(this._def) : this._getRootStyleInsertionAnchor(root);
|
|
12542
|
+
let last = null;
|
|
12210
12543
|
for (let i = styles.length - 1; i >= 0; i--) {
|
|
12211
12544
|
const s = document.createElement("style");
|
|
12212
12545
|
if (nonce) s.setAttribute("nonce", nonce);
|
|
12213
12546
|
s.textContent = styles[i];
|
|
12214
|
-
|
|
12547
|
+
root.insertBefore(s, last || insertionAnchor);
|
|
12548
|
+
last = s;
|
|
12549
|
+
if (i === 0) {
|
|
12550
|
+
if (!parentComp) this._styleAnchors.set(this._def, s);
|
|
12551
|
+
if (owner) this._styleAnchors.set(owner, s);
|
|
12552
|
+
}
|
|
12215
12553
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
12216
12554
|
if (owner) {
|
|
12217
12555
|
if (owner.__hmrId) {
|
|
@@ -12228,6 +12566,28 @@ class VueElement extends BaseClass {
|
|
|
12228
12566
|
}
|
|
12229
12567
|
}
|
|
12230
12568
|
}
|
|
12569
|
+
_getStyleAnchor(comp) {
|
|
12570
|
+
if (!comp) {
|
|
12571
|
+
return null;
|
|
12572
|
+
}
|
|
12573
|
+
const anchor = this._styleAnchors.get(comp);
|
|
12574
|
+
if (anchor && anchor.parentNode === this.shadowRoot) {
|
|
12575
|
+
return anchor;
|
|
12576
|
+
}
|
|
12577
|
+
if (anchor) {
|
|
12578
|
+
this._styleAnchors.delete(comp);
|
|
12579
|
+
}
|
|
12580
|
+
return null;
|
|
12581
|
+
}
|
|
12582
|
+
_getRootStyleInsertionAnchor(root) {
|
|
12583
|
+
for (let i = 0; i < root.childNodes.length; i++) {
|
|
12584
|
+
const node = root.childNodes[i];
|
|
12585
|
+
if (!(node instanceof HTMLStyleElement)) {
|
|
12586
|
+
return node;
|
|
12587
|
+
}
|
|
12588
|
+
}
|
|
12589
|
+
return null;
|
|
12590
|
+
}
|
|
12231
12591
|
/**
|
|
12232
12592
|
* Only called when shadowRoot is false
|
|
12233
12593
|
*/
|
|
@@ -12290,8 +12650,8 @@ class VueElement extends BaseClass {
|
|
|
12290
12650
|
/**
|
|
12291
12651
|
* @internal
|
|
12292
12652
|
*/
|
|
12293
|
-
_injectChildStyle(comp) {
|
|
12294
|
-
this._applyStyles(comp.styles, comp);
|
|
12653
|
+
_injectChildStyle(comp, parentComp) {
|
|
12654
|
+
this._applyStyles(comp.styles, comp, parentComp);
|
|
12295
12655
|
}
|
|
12296
12656
|
/**
|
|
12297
12657
|
* @internal
|
|
@@ -12309,12 +12669,19 @@ class VueElement extends BaseClass {
|
|
|
12309
12669
|
this._update();
|
|
12310
12670
|
}
|
|
12311
12671
|
}
|
|
12672
|
+
/**
|
|
12673
|
+
* @internal
|
|
12674
|
+
*/
|
|
12675
|
+
_hasShadowRoot() {
|
|
12676
|
+
return this._def.shadowRoot !== false;
|
|
12677
|
+
}
|
|
12312
12678
|
/**
|
|
12313
12679
|
* @internal
|
|
12314
12680
|
*/
|
|
12315
12681
|
_removeChildStyle(comp) {
|
|
12316
12682
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
12317
12683
|
this._styleChildren.delete(comp);
|
|
12684
|
+
this._styleAnchors.delete(comp);
|
|
12318
12685
|
if (this._childStyles && comp.__hmrId) {
|
|
12319
12686
|
const oldStyles = this._childStyles.get(comp.__hmrId);
|
|
12320
12687
|
if (oldStyles) {
|
|
@@ -12432,7 +12799,8 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
|
12432
12799
|
if (children) {
|
|
12433
12800
|
for (let i = 0; i < children.length; i++) {
|
|
12434
12801
|
const child = children[i];
|
|
12435
|
-
if (child.el && child.el instanceof Element
|
|
12802
|
+
if (child.el && child.el instanceof Element && // Hidden v-show nodes have no previous layout box to animate from.
|
|
12803
|
+
!child.el[vShowHidden]) {
|
|
12436
12804
|
prevChildren.push(child);
|
|
12437
12805
|
setTransitionHooks(
|
|
12438
12806
|
child,
|
|
@@ -12443,10 +12811,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
|
|
|
12443
12811
|
instance
|
|
12444
12812
|
)
|
|
12445
12813
|
);
|
|
12446
|
-
positionMap.set(child,
|
|
12447
|
-
left: child.el.offsetLeft,
|
|
12448
|
-
top: child.el.offsetTop
|
|
12449
|
-
});
|
|
12814
|
+
positionMap.set(child, getPosition(child.el));
|
|
12450
12815
|
}
|
|
12451
12816
|
}
|
|
12452
12817
|
}
|
|
@@ -12477,10 +12842,7 @@ function callPendingCbs(c) {
|
|
|
12477
12842
|
}
|
|
12478
12843
|
}
|
|
12479
12844
|
function recordPosition(c) {
|
|
12480
|
-
newPositionMap.set(c,
|
|
12481
|
-
left: c.el.offsetLeft,
|
|
12482
|
-
top: c.el.offsetTop
|
|
12483
|
-
});
|
|
12845
|
+
newPositionMap.set(c, getPosition(c.el));
|
|
12484
12846
|
}
|
|
12485
12847
|
function applyTranslation(c) {
|
|
12486
12848
|
const oldPos = positionMap.get(c);
|
|
@@ -12488,12 +12850,29 @@ function applyTranslation(c) {
|
|
|
12488
12850
|
const dx = oldPos.left - newPos.left;
|
|
12489
12851
|
const dy = oldPos.top - newPos.top;
|
|
12490
12852
|
if (dx || dy) {
|
|
12491
|
-
const
|
|
12492
|
-
s
|
|
12853
|
+
const el = c.el;
|
|
12854
|
+
const s = el.style;
|
|
12855
|
+
const rect = el.getBoundingClientRect();
|
|
12856
|
+
let scaleX = 1;
|
|
12857
|
+
let scaleY = 1;
|
|
12858
|
+
if (el.offsetWidth) scaleX = rect.width / el.offsetWidth;
|
|
12859
|
+
if (el.offsetHeight) scaleY = rect.height / el.offsetHeight;
|
|
12860
|
+
if (!Number.isFinite(scaleX) || scaleX === 0) scaleX = 1;
|
|
12861
|
+
if (!Number.isFinite(scaleY) || scaleY === 0) scaleY = 1;
|
|
12862
|
+
if (Math.abs(scaleX - 1) < 0.01) scaleX = 1;
|
|
12863
|
+
if (Math.abs(scaleY - 1) < 0.01) scaleY = 1;
|
|
12864
|
+
s.transform = s.webkitTransform = `translate(${dx / scaleX}px,${dy / scaleY}px)`;
|
|
12493
12865
|
s.transitionDuration = "0s";
|
|
12494
12866
|
return c;
|
|
12495
12867
|
}
|
|
12496
12868
|
}
|
|
12869
|
+
function getPosition(el) {
|
|
12870
|
+
const rect = el.getBoundingClientRect();
|
|
12871
|
+
return {
|
|
12872
|
+
left: rect.left,
|
|
12873
|
+
top: rect.top
|
|
12874
|
+
};
|
|
12875
|
+
}
|
|
12497
12876
|
function hasCSSTransform(el, root, moveClass) {
|
|
12498
12877
|
const clone = el.cloneNode();
|
|
12499
12878
|
const _vtc = el[vtcKey];
|
|
@@ -12526,6 +12905,7 @@ function onCompositionEnd(e) {
|
|
|
12526
12905
|
}
|
|
12527
12906
|
}
|
|
12528
12907
|
const assignKey = /* @__PURE__ */ Symbol("_assign");
|
|
12908
|
+
const initialValueKey = /* @__PURE__ */ Symbol("_initialValue");
|
|
12529
12909
|
function castValue(value, trim, number) {
|
|
12530
12910
|
if (trim) value = value.trim();
|
|
12531
12911
|
if (number) value = looseToNumber(value);
|
|
@@ -12533,6 +12913,13 @@ function castValue(value, trim, number) {
|
|
|
12533
12913
|
}
|
|
12534
12914
|
const vModelText = {
|
|
12535
12915
|
created(el, { modifiers: { lazy, trim, number } }, vnode) {
|
|
12916
|
+
if (el.parentNode) {
|
|
12917
|
+
if (el.type === "text") {
|
|
12918
|
+
el[initialValueKey] = el.defaultValue.replace(/[\r\n]/g, "");
|
|
12919
|
+
} else if (el.type === "textarea") {
|
|
12920
|
+
el[initialValueKey] = el.defaultValue.replace(/\r\n?/g, "\n");
|
|
12921
|
+
}
|
|
12922
|
+
}
|
|
12536
12923
|
el[assignKey] = getModelAssigner(vnode);
|
|
12537
12924
|
const castToNumber = number || vnode.props && vnode.props.type === "number";
|
|
12538
12925
|
addEventListener(el, lazy ? "change" : "input", (e) => {
|
|
@@ -12551,8 +12938,15 @@ const vModelText = {
|
|
|
12551
12938
|
}
|
|
12552
12939
|
},
|
|
12553
12940
|
// set value on mounted so it's after min/max for type="range"
|
|
12554
|
-
mounted(el, { value }) {
|
|
12555
|
-
|
|
12941
|
+
mounted(el, { value, modifiers: { trim, number } }) {
|
|
12942
|
+
const newValue = value == null ? "" : value;
|
|
12943
|
+
const initialValue = el[initialValueKey];
|
|
12944
|
+
delete el[initialValueKey];
|
|
12945
|
+
if (initialValue !== void 0 && (el.type === "text" || el.type === "textarea") && el.value !== initialValue) {
|
|
12946
|
+
el[assignKey](castValue(el.value, trim, number));
|
|
12947
|
+
} else {
|
|
12948
|
+
el.value = newValue;
|
|
12949
|
+
}
|
|
12556
12950
|
},
|
|
12557
12951
|
beforeUpdate(el, { value, oldValue, modifiers: { lazy, trim, number } }, vnode) {
|
|
12558
12952
|
el[assignKey] = getModelAssigner(vnode);
|
|
@@ -12562,7 +12956,8 @@ const vModelText = {
|
|
|
12562
12956
|
if (elValue === newValue) {
|
|
12563
12957
|
return;
|
|
12564
12958
|
}
|
|
12565
|
-
|
|
12959
|
+
const rootNode = el.getRootNode();
|
|
12960
|
+
if ((rootNode instanceof Document || rootNode instanceof ShadowRoot) && rootNode.activeElement === el && el.type !== "range") {
|
|
12566
12961
|
if (lazy && value === oldValue) {
|
|
12567
12962
|
return;
|
|
12568
12963
|
}
|
|
@@ -12647,13 +13042,13 @@ const vModelSelect = {
|
|
|
12647
13042
|
// <select multiple> value need to be deep traversed
|
|
12648
13043
|
deep: true,
|
|
12649
13044
|
created(el, { value, modifiers: { number } }, vnode) {
|
|
12650
|
-
|
|
13045
|
+
el._modelValue = value;
|
|
12651
13046
|
addEventListener(el, "change", () => {
|
|
12652
13047
|
const selectedVal = Array.prototype.filter.call(el.options, (o) => o.selected).map(
|
|
12653
13048
|
(o) => number ? looseToNumber(getValue(o)) : getValue(o)
|
|
12654
13049
|
);
|
|
12655
13050
|
el[assignKey](
|
|
12656
|
-
el.multiple ?
|
|
13051
|
+
el.multiple ? isSet(el._modelValue) ? new Set(selectedVal) : selectedVal : selectedVal[0]
|
|
12657
13052
|
);
|
|
12658
13053
|
el._assigning = true;
|
|
12659
13054
|
nextTick(() => {
|
|
@@ -12667,7 +13062,8 @@ const vModelSelect = {
|
|
|
12667
13062
|
mounted(el, { value }) {
|
|
12668
13063
|
setSelected(el, value);
|
|
12669
13064
|
},
|
|
12670
|
-
beforeUpdate(el,
|
|
13065
|
+
beforeUpdate(el, { value }, vnode) {
|
|
13066
|
+
el._modelValue = value;
|
|
12671
13067
|
el[assignKey] = getModelAssigner(vnode);
|
|
12672
13068
|
},
|
|
12673
13069
|
updated(el, { value }) {
|
|
@@ -12804,6 +13200,7 @@ const modifierGuards = {
|
|
|
12804
13200
|
exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
|
|
12805
13201
|
};
|
|
12806
13202
|
const withModifiers = (fn, modifiers) => {
|
|
13203
|
+
if (!fn) return fn;
|
|
12807
13204
|
const cache = fn._withMods || (fn._withMods = {});
|
|
12808
13205
|
const cacheKey = modifiers.join(".");
|
|
12809
13206
|
return cache[cacheKey] || (cache[cacheKey] = ((event, ...args) => {
|
|
@@ -12967,7 +13364,7 @@ const initDirectivesForSSR = () => {
|
|
|
12967
13364
|
} ;
|
|
12968
13365
|
|
|
12969
13366
|
/**
|
|
12970
|
-
* vue v3.5.
|
|
13367
|
+
* vue v3.5.41
|
|
12971
13368
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12972
13369
|
* @license MIT
|
|
12973
13370
|
**/
|
|
@@ -13164,4 +13561,4 @@ var vue_runtime_esmBundler = /*#__PURE__*/Object.freeze({
|
|
|
13164
13561
|
withScopeId: withScopeId
|
|
13165
13562
|
});
|
|
13166
13563
|
|
|
13167
|
-
export {
|
|
13564
|
+
export { onBeforeUnmount as $, toRaw as A, watch as B, unref as C, markRaw as D, effectScope as E, Fragment as F, isRef as G, isReactive as H, getCurrentScope as I, onScopeDispose as J, toRefs as K, computed as L, reactive as M, toRef as N, getCurrentInstance as O, onUnmounted as P, onDeactivated as Q, onActivated as R, watchEffect as S, provide as T, shallowRef as U, shallowReactive as V, readonly as W, customRef as X, toValue as Y, shallowReadonly as Z, onBeforeMount as _, normalizeProps as a, mergeDefaults as a$, onMounted as a0, TransitionGroup as a1, onUpdated as a2, isReadonly as a3, onBeforeUpdate as a4, BaseTransition as a5, BaseTransitionPropsValidators as a6, Comment as a7, DeprecationTypes as a8, EffectScope as a9, createTextVNode as aA, defineAsyncComponent as aB, defineCustomElement as aC, defineEmits as aD, defineExpose as aE, defineModel as aF, defineOptions as aG, defineProps as aH, defineSSRCustomElement as aI, defineSlots as aJ, devtools as aK, effect as aL, getCurrentWatcher as aM, getTransitionRawChildren as aN, handleError as aO, hydrate as aP, hydrateOnIdle as aQ, hydrateOnInteraction as aR, hydrateOnMediaQuery as aS, hydrateOnVisible as aT, initCustomFormatter as aU, initDirectivesForSSR as aV, isMemoSame as aW, isProxy as aX, isRuntimeOnly as aY, isShallow as aZ, isVNode as a_, ErrorCodes as aa, ErrorTypeStrings as ab, KeepAlive as ac, ReactiveEffect as ad, Static as ae, Suspense as af, Teleport as ag, Text as ah, TrackOpTypes as ai, Transition as aj, TriggerOpTypes as ak, VueElement as al, assertNumber as am, callWithAsyncErrorHandling as an, callWithErrorHandling as ao, camelize as ap, capitalize as aq, cloneVNode as ar, compatUtils as as, compile as at, createHydrationRenderer as au, createPropsRestProxy as av, createRenderer as aw, createSSRApp as ax, createSlots as ay, createStaticVNode as az, nextTick as b, mergeModels as b0, nodeOps as b1, onErrorCaptured as b2, onRenderTracked as b3, onRenderTriggered as b4, onServerPrefetch as b5, onWatcherCleanup as b6, patchProp as b7, proxyRefs as b8, queuePostFlushCb as b9, useTemplateRef as bA, useTransitionState as bB, vModelCheckbox as bC, vModelDynamic as bD, vModelRadio as bE, vModelSelect as bF, vModelText as bG, vShow as bH, version as bI, warn as bJ, watchPostEffect as bK, watchSyncEffect as bL, withAsyncContext as bM, withDefaults as bN, withDirectives as bO, withMemo as bP, withModifiers as bQ, registerRuntimeCompiler as ba, render as bb, renderList as bc, resolveDirective as bd, resolveDynamicComponent as be, resolveFilter as bf, resolveTransitionHooks as bg, setBlockTracking as bh, setDevtoolsHook as bi, setTransitionHooks as bj, ssrContextKey as bk, ssrUtils as bl, stop as bm, toHandlerKey as bn, toHandlers as bo, transformVNodeArgs as bp, triggerRef as bq, useAttrs as br, useCssModule as bs, useCssVars as bt, useHost as bu, useId as bv, useModel as bw, useSSRContext as bx, useShadowRoot as by, useSlots as bz, createElementBlock as c, defineComponent as d, popScopeId as e, createBlock as f, guardReactiveProps as g, createBaseVNode as h, resolveComponent as i, withKeys as j, normalizeStyle as k, createCommentVNode as l, mergeProps as m, normalizeClass as n, openBlock as o, pushScopeId as p, withCtx as q, renderSlot as r, createVNode as s, toDisplayString as t, ref as u, createApp as v, withScopeId as w, h as x, hasInjectionContext as y, inject as z };
|