@vue/runtime-dom 3.5.25 → 3.5.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/runtime-dom.cjs.js +9 -9
- package/dist/runtime-dom.cjs.prod.js +9 -9
- package/dist/runtime-dom.d.ts +13 -1
- package/dist/runtime-dom.esm-browser.js +271 -230
- package/dist/runtime-dom.esm-browser.prod.js +3 -3
- package/dist/runtime-dom.esm-bundler.js +9 -9
- package/dist/runtime-dom.global.js +243 -202
- package/dist/runtime-dom.global.prod.js +3 -3
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.5.
|
|
2
|
+
* @vue/runtime-dom v3.5.27
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -929,13 +929,13 @@ function addSub(link) {
|
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
931
|
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
932
|
-
const ITERATE_KEY = Symbol(
|
|
932
|
+
const ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
933
933
|
"Object iterate"
|
|
934
934
|
);
|
|
935
|
-
const MAP_KEY_ITERATE_KEY = Symbol(
|
|
935
|
+
const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
936
936
|
"Map keys iterate"
|
|
937
937
|
);
|
|
938
|
-
const ARRAY_ITERATE_KEY = Symbol(
|
|
938
|
+
const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
939
939
|
"Array iterate"
|
|
940
940
|
);
|
|
941
941
|
function track(target, type, key) {
|
|
@@ -1418,20 +1418,20 @@ function createIterableMethod(method, isReadonly2, isShallow2) {
|
|
|
1418
1418
|
"iterate",
|
|
1419
1419
|
isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY
|
|
1420
1420
|
);
|
|
1421
|
-
return
|
|
1422
|
-
// iterator
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
done
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1421
|
+
return extend(
|
|
1422
|
+
// inheriting all iterator properties
|
|
1423
|
+
Object.create(innerIterator),
|
|
1424
|
+
{
|
|
1425
|
+
// iterator protocol
|
|
1426
|
+
next() {
|
|
1427
|
+
const { value, done } = innerIterator.next();
|
|
1428
|
+
return done ? { value, done } : {
|
|
1429
|
+
value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
|
|
1430
|
+
done
|
|
1431
|
+
};
|
|
1432
|
+
}
|
|
1433
1433
|
}
|
|
1434
|
-
|
|
1434
|
+
);
|
|
1435
1435
|
};
|
|
1436
1436
|
}
|
|
1437
1437
|
function createReadonlyMethod(type) {
|
|
@@ -1645,8 +1645,9 @@ function targetTypeMap(rawType) {
|
|
|
1645
1645
|
function getTargetType(value) {
|
|
1646
1646
|
return value["__v_skip"] || !Object.isExtensible(value) ? 0 /* INVALID */ : targetTypeMap(toRawType(value));
|
|
1647
1647
|
}
|
|
1648
|
+
// @__NO_SIDE_EFFECTS__
|
|
1648
1649
|
function reactive(target) {
|
|
1649
|
-
if (isReadonly(target)) {
|
|
1650
|
+
if (/* @__PURE__ */ isReadonly(target)) {
|
|
1650
1651
|
return target;
|
|
1651
1652
|
}
|
|
1652
1653
|
return createReactiveObject(
|
|
@@ -1657,6 +1658,7 @@ function reactive(target) {
|
|
|
1657
1658
|
reactiveMap
|
|
1658
1659
|
);
|
|
1659
1660
|
}
|
|
1661
|
+
// @__NO_SIDE_EFFECTS__
|
|
1660
1662
|
function shallowReactive(target) {
|
|
1661
1663
|
return createReactiveObject(
|
|
1662
1664
|
target,
|
|
@@ -1666,6 +1668,7 @@ function shallowReactive(target) {
|
|
|
1666
1668
|
shallowReactiveMap
|
|
1667
1669
|
);
|
|
1668
1670
|
}
|
|
1671
|
+
// @__NO_SIDE_EFFECTS__
|
|
1669
1672
|
function readonly(target) {
|
|
1670
1673
|
return createReactiveObject(
|
|
1671
1674
|
target,
|
|
@@ -1675,6 +1678,7 @@ function readonly(target) {
|
|
|
1675
1678
|
readonlyMap
|
|
1676
1679
|
);
|
|
1677
1680
|
}
|
|
1681
|
+
// @__NO_SIDE_EFFECTS__
|
|
1678
1682
|
function shallowReadonly(target) {
|
|
1679
1683
|
return createReactiveObject(
|
|
1680
1684
|
target,
|
|
@@ -1713,24 +1717,29 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
|
|
|
1713
1717
|
proxyMap.set(target, proxy);
|
|
1714
1718
|
return proxy;
|
|
1715
1719
|
}
|
|
1720
|
+
// @__NO_SIDE_EFFECTS__
|
|
1716
1721
|
function isReactive(value) {
|
|
1717
|
-
if (isReadonly(value)) {
|
|
1718
|
-
return isReactive(value["__v_raw"]);
|
|
1722
|
+
if (/* @__PURE__ */ isReadonly(value)) {
|
|
1723
|
+
return /* @__PURE__ */ isReactive(value["__v_raw"]);
|
|
1719
1724
|
}
|
|
1720
1725
|
return !!(value && value["__v_isReactive"]);
|
|
1721
1726
|
}
|
|
1727
|
+
// @__NO_SIDE_EFFECTS__
|
|
1722
1728
|
function isReadonly(value) {
|
|
1723
1729
|
return !!(value && value["__v_isReadonly"]);
|
|
1724
1730
|
}
|
|
1731
|
+
// @__NO_SIDE_EFFECTS__
|
|
1725
1732
|
function isShallow(value) {
|
|
1726
1733
|
return !!(value && value["__v_isShallow"]);
|
|
1727
1734
|
}
|
|
1735
|
+
// @__NO_SIDE_EFFECTS__
|
|
1728
1736
|
function isProxy(value) {
|
|
1729
1737
|
return value ? !!value["__v_raw"] : false;
|
|
1730
1738
|
}
|
|
1739
|
+
// @__NO_SIDE_EFFECTS__
|
|
1731
1740
|
function toRaw(observed) {
|
|
1732
1741
|
const raw = observed && observed["__v_raw"];
|
|
1733
|
-
return raw ? toRaw(raw) : observed;
|
|
1742
|
+
return raw ? /* @__PURE__ */ toRaw(raw) : observed;
|
|
1734
1743
|
}
|
|
1735
1744
|
function markRaw(value) {
|
|
1736
1745
|
if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) {
|
|
@@ -1738,20 +1747,23 @@ function markRaw(value) {
|
|
|
1738
1747
|
}
|
|
1739
1748
|
return value;
|
|
1740
1749
|
}
|
|
1741
|
-
const toReactive = (value) => isObject(value) ? reactive(value) : value;
|
|
1742
|
-
const toReadonly = (value) => isObject(value) ? readonly(value) : value;
|
|
1750
|
+
const toReactive = (value) => isObject(value) ? /* @__PURE__ */ reactive(value) : value;
|
|
1751
|
+
const toReadonly = (value) => isObject(value) ? /* @__PURE__ */ readonly(value) : value;
|
|
1743
1752
|
|
|
1753
|
+
// @__NO_SIDE_EFFECTS__
|
|
1744
1754
|
function isRef(r) {
|
|
1745
1755
|
return r ? r["__v_isRef"] === true : false;
|
|
1746
1756
|
}
|
|
1757
|
+
// @__NO_SIDE_EFFECTS__
|
|
1747
1758
|
function ref(value) {
|
|
1748
1759
|
return createRef(value, false);
|
|
1749
1760
|
}
|
|
1761
|
+
// @__NO_SIDE_EFFECTS__
|
|
1750
1762
|
function shallowRef(value) {
|
|
1751
1763
|
return createRef(value, true);
|
|
1752
1764
|
}
|
|
1753
1765
|
function createRef(rawValue, shallow) {
|
|
1754
|
-
if (isRef(rawValue)) {
|
|
1766
|
+
if (/* @__PURE__ */ isRef(rawValue)) {
|
|
1755
1767
|
return rawValue;
|
|
1756
1768
|
}
|
|
1757
1769
|
return new RefImpl(rawValue, shallow);
|
|
@@ -1807,7 +1819,7 @@ function triggerRef(ref2) {
|
|
|
1807
1819
|
}
|
|
1808
1820
|
}
|
|
1809
1821
|
function unref(ref2) {
|
|
1810
|
-
return isRef(ref2) ? ref2.value : ref2;
|
|
1822
|
+
return /* @__PURE__ */ isRef(ref2) ? ref2.value : ref2;
|
|
1811
1823
|
}
|
|
1812
1824
|
function toValue(source) {
|
|
1813
1825
|
return isFunction(source) ? source() : unref(source);
|
|
@@ -1816,7 +1828,7 @@ const shallowUnwrapHandlers = {
|
|
|
1816
1828
|
get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
|
|
1817
1829
|
set: (target, key, value, receiver) => {
|
|
1818
1830
|
const oldValue = target[key];
|
|
1819
|
-
if (isRef(oldValue) &&
|
|
1831
|
+
if (/* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) {
|
|
1820
1832
|
oldValue.value = value;
|
|
1821
1833
|
return true;
|
|
1822
1834
|
} else {
|
|
@@ -1846,6 +1858,7 @@ class CustomRefImpl {
|
|
|
1846
1858
|
function customRef(factory) {
|
|
1847
1859
|
return new CustomRefImpl(factory);
|
|
1848
1860
|
}
|
|
1861
|
+
// @__NO_SIDE_EFFECTS__
|
|
1849
1862
|
function toRefs(object) {
|
|
1850
1863
|
if (!isProxy(object)) {
|
|
1851
1864
|
warn$2(`toRefs() expects a reactive object but received a plain one.`);
|
|
@@ -1881,9 +1894,9 @@ class ObjectRefImpl {
|
|
|
1881
1894
|
return this._value = val === void 0 ? this._defaultValue : val;
|
|
1882
1895
|
}
|
|
1883
1896
|
set value(newVal) {
|
|
1884
|
-
if (this._shallow && isRef(this._raw[this._key])) {
|
|
1897
|
+
if (this._shallow && /* @__PURE__ */ isRef(this._raw[this._key])) {
|
|
1885
1898
|
const nestedRef = this._object[this._key];
|
|
1886
|
-
if (isRef(nestedRef)) {
|
|
1899
|
+
if (/* @__PURE__ */ isRef(nestedRef)) {
|
|
1887
1900
|
nestedRef.value = newVal;
|
|
1888
1901
|
return;
|
|
1889
1902
|
}
|
|
@@ -1905,15 +1918,16 @@ class GetterRefImpl {
|
|
|
1905
1918
|
return this._value = this._getter();
|
|
1906
1919
|
}
|
|
1907
1920
|
}
|
|
1921
|
+
// @__NO_SIDE_EFFECTS__
|
|
1908
1922
|
function toRef(source, key, defaultValue) {
|
|
1909
|
-
if (isRef(source)) {
|
|
1923
|
+
if (/* @__PURE__ */ isRef(source)) {
|
|
1910
1924
|
return source;
|
|
1911
1925
|
} else if (isFunction(source)) {
|
|
1912
1926
|
return new GetterRefImpl(source);
|
|
1913
1927
|
} else if (isObject(source) && arguments.length > 1) {
|
|
1914
1928
|
return propertyToRef(source, key, defaultValue);
|
|
1915
1929
|
} else {
|
|
1916
|
-
return ref(source);
|
|
1930
|
+
return /* @__PURE__ */ ref(source);
|
|
1917
1931
|
}
|
|
1918
1932
|
}
|
|
1919
1933
|
function propertyToRef(source, key, defaultValue) {
|
|
@@ -1994,6 +2008,7 @@ class ComputedRefImpl {
|
|
|
1994
2008
|
}
|
|
1995
2009
|
}
|
|
1996
2010
|
}
|
|
2011
|
+
// @__NO_SIDE_EFFECTS__
|
|
1997
2012
|
function computed$1(getterOrOptions, debugOptions, isSSR = false) {
|
|
1998
2013
|
let getter;
|
|
1999
2014
|
let setter;
|
|
@@ -2984,7 +2999,180 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
|
|
|
2984
2999
|
}
|
|
2985
3000
|
}
|
|
2986
3001
|
|
|
2987
|
-
|
|
3002
|
+
function provide(key, value) {
|
|
3003
|
+
{
|
|
3004
|
+
if (!currentInstance || currentInstance.isMounted) {
|
|
3005
|
+
warn$1(`provide() can only be used inside setup().`);
|
|
3006
|
+
}
|
|
3007
|
+
}
|
|
3008
|
+
if (currentInstance) {
|
|
3009
|
+
let provides = currentInstance.provides;
|
|
3010
|
+
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
3011
|
+
if (parentProvides === provides) {
|
|
3012
|
+
provides = currentInstance.provides = Object.create(parentProvides);
|
|
3013
|
+
}
|
|
3014
|
+
provides[key] = value;
|
|
3015
|
+
}
|
|
3016
|
+
}
|
|
3017
|
+
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
3018
|
+
const instance = getCurrentInstance();
|
|
3019
|
+
if (instance || currentApp) {
|
|
3020
|
+
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
3021
|
+
if (provides && key in provides) {
|
|
3022
|
+
return provides[key];
|
|
3023
|
+
} else if (arguments.length > 1) {
|
|
3024
|
+
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
3025
|
+
} else {
|
|
3026
|
+
warn$1(`injection "${String(key)}" not found.`);
|
|
3027
|
+
}
|
|
3028
|
+
} else {
|
|
3029
|
+
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
3030
|
+
}
|
|
3031
|
+
}
|
|
3032
|
+
function hasInjectionContext() {
|
|
3033
|
+
return !!(getCurrentInstance() || currentApp);
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
const ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx");
|
|
3037
|
+
const useSSRContext = () => {
|
|
3038
|
+
{
|
|
3039
|
+
const ctx = inject(ssrContextKey);
|
|
3040
|
+
if (!ctx) {
|
|
3041
|
+
warn$1(
|
|
3042
|
+
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
3043
|
+
);
|
|
3044
|
+
}
|
|
3045
|
+
return ctx;
|
|
3046
|
+
}
|
|
3047
|
+
};
|
|
3048
|
+
|
|
3049
|
+
function watchEffect(effect, options) {
|
|
3050
|
+
return doWatch(effect, null, options);
|
|
3051
|
+
}
|
|
3052
|
+
function watchPostEffect(effect, options) {
|
|
3053
|
+
return doWatch(
|
|
3054
|
+
effect,
|
|
3055
|
+
null,
|
|
3056
|
+
extend({}, options, { flush: "post" })
|
|
3057
|
+
);
|
|
3058
|
+
}
|
|
3059
|
+
function watchSyncEffect(effect, options) {
|
|
3060
|
+
return doWatch(
|
|
3061
|
+
effect,
|
|
3062
|
+
null,
|
|
3063
|
+
extend({}, options, { flush: "sync" })
|
|
3064
|
+
);
|
|
3065
|
+
}
|
|
3066
|
+
function watch(source, cb, options) {
|
|
3067
|
+
if (!isFunction(cb)) {
|
|
3068
|
+
warn$1(
|
|
3069
|
+
`\`watch(fn, options?)\` signature has been moved to a separate API. Use \`watchEffect(fn, options?)\` instead. \`watch\` now only supports \`watch(source, cb, options?) signature.`
|
|
3070
|
+
);
|
|
3071
|
+
}
|
|
3072
|
+
return doWatch(source, cb, options);
|
|
3073
|
+
}
|
|
3074
|
+
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
3075
|
+
const { immediate, deep, flush, once } = options;
|
|
3076
|
+
if (!cb) {
|
|
3077
|
+
if (immediate !== void 0) {
|
|
3078
|
+
warn$1(
|
|
3079
|
+
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3080
|
+
);
|
|
3081
|
+
}
|
|
3082
|
+
if (deep !== void 0) {
|
|
3083
|
+
warn$1(
|
|
3084
|
+
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3085
|
+
);
|
|
3086
|
+
}
|
|
3087
|
+
if (once !== void 0) {
|
|
3088
|
+
warn$1(
|
|
3089
|
+
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3090
|
+
);
|
|
3091
|
+
}
|
|
3092
|
+
}
|
|
3093
|
+
const baseWatchOptions = extend({}, options);
|
|
3094
|
+
baseWatchOptions.onWarn = warn$1;
|
|
3095
|
+
const runsImmediately = cb && immediate || !cb && flush !== "post";
|
|
3096
|
+
let ssrCleanup;
|
|
3097
|
+
if (isInSSRComponentSetup) {
|
|
3098
|
+
if (flush === "sync") {
|
|
3099
|
+
const ctx = useSSRContext();
|
|
3100
|
+
ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
|
|
3101
|
+
} else if (!runsImmediately) {
|
|
3102
|
+
const watchStopHandle = () => {
|
|
3103
|
+
};
|
|
3104
|
+
watchStopHandle.stop = NOOP;
|
|
3105
|
+
watchStopHandle.resume = NOOP;
|
|
3106
|
+
watchStopHandle.pause = NOOP;
|
|
3107
|
+
return watchStopHandle;
|
|
3108
|
+
}
|
|
3109
|
+
}
|
|
3110
|
+
const instance = currentInstance;
|
|
3111
|
+
baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
|
|
3112
|
+
let isPre = false;
|
|
3113
|
+
if (flush === "post") {
|
|
3114
|
+
baseWatchOptions.scheduler = (job) => {
|
|
3115
|
+
queuePostRenderEffect(job, instance && instance.suspense);
|
|
3116
|
+
};
|
|
3117
|
+
} else if (flush !== "sync") {
|
|
3118
|
+
isPre = true;
|
|
3119
|
+
baseWatchOptions.scheduler = (job, isFirstRun) => {
|
|
3120
|
+
if (isFirstRun) {
|
|
3121
|
+
job();
|
|
3122
|
+
} else {
|
|
3123
|
+
queueJob(job);
|
|
3124
|
+
}
|
|
3125
|
+
};
|
|
3126
|
+
}
|
|
3127
|
+
baseWatchOptions.augmentJob = (job) => {
|
|
3128
|
+
if (cb) {
|
|
3129
|
+
job.flags |= 4;
|
|
3130
|
+
}
|
|
3131
|
+
if (isPre) {
|
|
3132
|
+
job.flags |= 2;
|
|
3133
|
+
if (instance) {
|
|
3134
|
+
job.id = instance.uid;
|
|
3135
|
+
job.i = instance;
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3138
|
+
};
|
|
3139
|
+
const watchHandle = watch$1(source, cb, baseWatchOptions);
|
|
3140
|
+
if (isInSSRComponentSetup) {
|
|
3141
|
+
if (ssrCleanup) {
|
|
3142
|
+
ssrCleanup.push(watchHandle);
|
|
3143
|
+
} else if (runsImmediately) {
|
|
3144
|
+
watchHandle();
|
|
3145
|
+
}
|
|
3146
|
+
}
|
|
3147
|
+
return watchHandle;
|
|
3148
|
+
}
|
|
3149
|
+
function instanceWatch(source, value, options) {
|
|
3150
|
+
const publicThis = this.proxy;
|
|
3151
|
+
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
3152
|
+
let cb;
|
|
3153
|
+
if (isFunction(value)) {
|
|
3154
|
+
cb = value;
|
|
3155
|
+
} else {
|
|
3156
|
+
cb = value.handler;
|
|
3157
|
+
options = value;
|
|
3158
|
+
}
|
|
3159
|
+
const reset = setCurrentInstance(this);
|
|
3160
|
+
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
3161
|
+
reset();
|
|
3162
|
+
return res;
|
|
3163
|
+
}
|
|
3164
|
+
function createPathGetter(ctx, path) {
|
|
3165
|
+
const segments = path.split(".");
|
|
3166
|
+
return () => {
|
|
3167
|
+
let cur = ctx;
|
|
3168
|
+
for (let i = 0; i < segments.length && cur; i++) {
|
|
3169
|
+
cur = cur[segments[i]];
|
|
3170
|
+
}
|
|
3171
|
+
return cur;
|
|
3172
|
+
};
|
|
3173
|
+
}
|
|
3174
|
+
|
|
3175
|
+
const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
|
|
2988
3176
|
const isTeleport = (type) => type.__isTeleport;
|
|
2989
3177
|
const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
|
|
2990
3178
|
const isTeleportDeferred = (props) => props && (props.defer || props.defer === "");
|
|
@@ -3344,8 +3532,8 @@ function prepareAnchor(target, vnode, createText, insert) {
|
|
|
3344
3532
|
return targetAnchor;
|
|
3345
3533
|
}
|
|
3346
3534
|
|
|
3347
|
-
const leaveCbKey = Symbol("_leaveCb");
|
|
3348
|
-
const enterCbKey$1 = Symbol("_enterCb");
|
|
3535
|
+
const leaveCbKey = /* @__PURE__ */ Symbol("_leaveCb");
|
|
3536
|
+
const enterCbKey$1 = /* @__PURE__ */ Symbol("_enterCb");
|
|
3349
3537
|
function useTransitionState() {
|
|
3350
3538
|
const state = {
|
|
3351
3539
|
isMounted: false,
|
|
@@ -4193,7 +4381,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4193
4381
|
logMismatchError();
|
|
4194
4382
|
}
|
|
4195
4383
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
4196
|
-
key[0] === "." || isCustomElement) {
|
|
4384
|
+
key[0] === "." || isCustomElement && !isReservedProp(key)) {
|
|
4197
4385
|
patchProp(el, key, null, props[key], void 0, parentComponent);
|
|
4198
4386
|
}
|
|
4199
4387
|
}
|
|
@@ -4882,7 +5070,9 @@ const KeepAliveImpl = {
|
|
|
4882
5070
|
}
|
|
4883
5071
|
function pruneCache(filter) {
|
|
4884
5072
|
cache.forEach((vnode, key) => {
|
|
4885
|
-
const name = getComponentName(
|
|
5073
|
+
const name = getComponentName(
|
|
5074
|
+
isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type
|
|
5075
|
+
);
|
|
4886
5076
|
if (name && !filter(name)) {
|
|
4887
5077
|
pruneCacheEntry(key);
|
|
4888
5078
|
}
|
|
@@ -5109,7 +5299,7 @@ const DIRECTIVES = "directives";
|
|
|
5109
5299
|
function resolveComponent(name, maybeSelfReference) {
|
|
5110
5300
|
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
5111
5301
|
}
|
|
5112
|
-
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
5302
|
+
const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
5113
5303
|
function resolveDynamicComponent(component) {
|
|
5114
5304
|
if (isString(component)) {
|
|
5115
5305
|
return resolveAsset(COMPONENTS, component, false) || component;
|
|
@@ -6273,179 +6463,6 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
6273
6463
|
}
|
|
6274
6464
|
let currentApp = null;
|
|
6275
6465
|
|
|
6276
|
-
function provide(key, value) {
|
|
6277
|
-
{
|
|
6278
|
-
if (!currentInstance || currentInstance.isMounted) {
|
|
6279
|
-
warn$1(`provide() can only be used inside setup().`);
|
|
6280
|
-
}
|
|
6281
|
-
}
|
|
6282
|
-
if (currentInstance) {
|
|
6283
|
-
let provides = currentInstance.provides;
|
|
6284
|
-
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
6285
|
-
if (parentProvides === provides) {
|
|
6286
|
-
provides = currentInstance.provides = Object.create(parentProvides);
|
|
6287
|
-
}
|
|
6288
|
-
provides[key] = value;
|
|
6289
|
-
}
|
|
6290
|
-
}
|
|
6291
|
-
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
6292
|
-
const instance = getCurrentInstance();
|
|
6293
|
-
if (instance || currentApp) {
|
|
6294
|
-
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
6295
|
-
if (provides && key in provides) {
|
|
6296
|
-
return provides[key];
|
|
6297
|
-
} else if (arguments.length > 1) {
|
|
6298
|
-
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
6299
|
-
} else {
|
|
6300
|
-
warn$1(`injection "${String(key)}" not found.`);
|
|
6301
|
-
}
|
|
6302
|
-
} else {
|
|
6303
|
-
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
6304
|
-
}
|
|
6305
|
-
}
|
|
6306
|
-
function hasInjectionContext() {
|
|
6307
|
-
return !!(getCurrentInstance() || currentApp);
|
|
6308
|
-
}
|
|
6309
|
-
|
|
6310
|
-
const ssrContextKey = Symbol.for("v-scx");
|
|
6311
|
-
const useSSRContext = () => {
|
|
6312
|
-
{
|
|
6313
|
-
const ctx = inject(ssrContextKey);
|
|
6314
|
-
if (!ctx) {
|
|
6315
|
-
warn$1(
|
|
6316
|
-
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
6317
|
-
);
|
|
6318
|
-
}
|
|
6319
|
-
return ctx;
|
|
6320
|
-
}
|
|
6321
|
-
};
|
|
6322
|
-
|
|
6323
|
-
function watchEffect(effect, options) {
|
|
6324
|
-
return doWatch(effect, null, options);
|
|
6325
|
-
}
|
|
6326
|
-
function watchPostEffect(effect, options) {
|
|
6327
|
-
return doWatch(
|
|
6328
|
-
effect,
|
|
6329
|
-
null,
|
|
6330
|
-
extend({}, options, { flush: "post" })
|
|
6331
|
-
);
|
|
6332
|
-
}
|
|
6333
|
-
function watchSyncEffect(effect, options) {
|
|
6334
|
-
return doWatch(
|
|
6335
|
-
effect,
|
|
6336
|
-
null,
|
|
6337
|
-
extend({}, options, { flush: "sync" })
|
|
6338
|
-
);
|
|
6339
|
-
}
|
|
6340
|
-
function watch(source, cb, options) {
|
|
6341
|
-
if (!isFunction(cb)) {
|
|
6342
|
-
warn$1(
|
|
6343
|
-
`\`watch(fn, options?)\` signature has been moved to a separate API. Use \`watchEffect(fn, options?)\` instead. \`watch\` now only supports \`watch(source, cb, options?) signature.`
|
|
6344
|
-
);
|
|
6345
|
-
}
|
|
6346
|
-
return doWatch(source, cb, options);
|
|
6347
|
-
}
|
|
6348
|
-
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
6349
|
-
const { immediate, deep, flush, once } = options;
|
|
6350
|
-
if (!cb) {
|
|
6351
|
-
if (immediate !== void 0) {
|
|
6352
|
-
warn$1(
|
|
6353
|
-
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
6354
|
-
);
|
|
6355
|
-
}
|
|
6356
|
-
if (deep !== void 0) {
|
|
6357
|
-
warn$1(
|
|
6358
|
-
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
6359
|
-
);
|
|
6360
|
-
}
|
|
6361
|
-
if (once !== void 0) {
|
|
6362
|
-
warn$1(
|
|
6363
|
-
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
6364
|
-
);
|
|
6365
|
-
}
|
|
6366
|
-
}
|
|
6367
|
-
const baseWatchOptions = extend({}, options);
|
|
6368
|
-
baseWatchOptions.onWarn = warn$1;
|
|
6369
|
-
const runsImmediately = cb && immediate || !cb && flush !== "post";
|
|
6370
|
-
let ssrCleanup;
|
|
6371
|
-
if (isInSSRComponentSetup) {
|
|
6372
|
-
if (flush === "sync") {
|
|
6373
|
-
const ctx = useSSRContext();
|
|
6374
|
-
ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
|
|
6375
|
-
} else if (!runsImmediately) {
|
|
6376
|
-
const watchStopHandle = () => {
|
|
6377
|
-
};
|
|
6378
|
-
watchStopHandle.stop = NOOP;
|
|
6379
|
-
watchStopHandle.resume = NOOP;
|
|
6380
|
-
watchStopHandle.pause = NOOP;
|
|
6381
|
-
return watchStopHandle;
|
|
6382
|
-
}
|
|
6383
|
-
}
|
|
6384
|
-
const instance = currentInstance;
|
|
6385
|
-
baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
|
|
6386
|
-
let isPre = false;
|
|
6387
|
-
if (flush === "post") {
|
|
6388
|
-
baseWatchOptions.scheduler = (job) => {
|
|
6389
|
-
queuePostRenderEffect(job, instance && instance.suspense);
|
|
6390
|
-
};
|
|
6391
|
-
} else if (flush !== "sync") {
|
|
6392
|
-
isPre = true;
|
|
6393
|
-
baseWatchOptions.scheduler = (job, isFirstRun) => {
|
|
6394
|
-
if (isFirstRun) {
|
|
6395
|
-
job();
|
|
6396
|
-
} else {
|
|
6397
|
-
queueJob(job);
|
|
6398
|
-
}
|
|
6399
|
-
};
|
|
6400
|
-
}
|
|
6401
|
-
baseWatchOptions.augmentJob = (job) => {
|
|
6402
|
-
if (cb) {
|
|
6403
|
-
job.flags |= 4;
|
|
6404
|
-
}
|
|
6405
|
-
if (isPre) {
|
|
6406
|
-
job.flags |= 2;
|
|
6407
|
-
if (instance) {
|
|
6408
|
-
job.id = instance.uid;
|
|
6409
|
-
job.i = instance;
|
|
6410
|
-
}
|
|
6411
|
-
}
|
|
6412
|
-
};
|
|
6413
|
-
const watchHandle = watch$1(source, cb, baseWatchOptions);
|
|
6414
|
-
if (isInSSRComponentSetup) {
|
|
6415
|
-
if (ssrCleanup) {
|
|
6416
|
-
ssrCleanup.push(watchHandle);
|
|
6417
|
-
} else if (runsImmediately) {
|
|
6418
|
-
watchHandle();
|
|
6419
|
-
}
|
|
6420
|
-
}
|
|
6421
|
-
return watchHandle;
|
|
6422
|
-
}
|
|
6423
|
-
function instanceWatch(source, value, options) {
|
|
6424
|
-
const publicThis = this.proxy;
|
|
6425
|
-
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
6426
|
-
let cb;
|
|
6427
|
-
if (isFunction(value)) {
|
|
6428
|
-
cb = value;
|
|
6429
|
-
} else {
|
|
6430
|
-
cb = value.handler;
|
|
6431
|
-
options = value;
|
|
6432
|
-
}
|
|
6433
|
-
const reset = setCurrentInstance(this);
|
|
6434
|
-
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
6435
|
-
reset();
|
|
6436
|
-
return res;
|
|
6437
|
-
}
|
|
6438
|
-
function createPathGetter(ctx, path) {
|
|
6439
|
-
const segments = path.split(".");
|
|
6440
|
-
return () => {
|
|
6441
|
-
let cur = ctx;
|
|
6442
|
-
for (let i = 0; i < segments.length && cur; i++) {
|
|
6443
|
-
cur = cur[segments[i]];
|
|
6444
|
-
}
|
|
6445
|
-
return cur;
|
|
6446
|
-
};
|
|
6447
|
-
}
|
|
6448
|
-
|
|
6449
6466
|
function useModel(props, name, options = EMPTY_OBJ) {
|
|
6450
6467
|
const i = getCurrentInstance();
|
|
6451
6468
|
if (!i) {
|
|
@@ -7628,7 +7645,15 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7628
7645
|
} else {
|
|
7629
7646
|
const el = n2.el = n1.el;
|
|
7630
7647
|
if (n2.children !== n1.children) {
|
|
7631
|
-
|
|
7648
|
+
if (isHmrUpdating && n2.patchFlag === -1 && "__elIndex" in n1) {
|
|
7649
|
+
const childNodes = container.childNodes;
|
|
7650
|
+
const newChild = hostCreateText(n2.children);
|
|
7651
|
+
const oldChild = childNodes[n2.__elIndex = n1.__elIndex];
|
|
7652
|
+
hostInsert(newChild, container, oldChild);
|
|
7653
|
+
hostRemove(oldChild);
|
|
7654
|
+
} else {
|
|
7655
|
+
hostSetText(el, n2.children);
|
|
7656
|
+
}
|
|
7632
7657
|
}
|
|
7633
7658
|
}
|
|
7634
7659
|
};
|
|
@@ -8014,7 +8039,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8014
8039
|
} else {
|
|
8015
8040
|
if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result
|
|
8016
8041
|
// of renderSlot() with no valid children
|
|
8017
|
-
n1.dynamicChildren) {
|
|
8042
|
+
n1.dynamicChildren && n1.dynamicChildren.length === dynamicChildren.length) {
|
|
8018
8043
|
patchBlockChildren(
|
|
8019
8044
|
n1.dynamicChildren,
|
|
8020
8045
|
dynamicChildren,
|
|
@@ -8603,8 +8628,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8603
8628
|
const nextChild = c2[nextIndex];
|
|
8604
8629
|
const anchorVNode = c2[nextIndex + 1];
|
|
8605
8630
|
const anchor = nextIndex + 1 < l2 ? (
|
|
8606
|
-
// #13559, fallback to el placeholder for unresolved async component
|
|
8607
|
-
anchorVNode.el || anchorVNode
|
|
8631
|
+
// #13559, #14173 fallback to el placeholder for unresolved async component
|
|
8632
|
+
anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode)
|
|
8608
8633
|
) : parentAnchor;
|
|
8609
8634
|
if (newIndexToOldIndexMap[i] === 0) {
|
|
8610
8635
|
patch(
|
|
@@ -8860,9 +8885,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8860
8885
|
};
|
|
8861
8886
|
let isFlushing = false;
|
|
8862
8887
|
const render = (vnode, container, namespace) => {
|
|
8888
|
+
let instance;
|
|
8863
8889
|
if (vnode == null) {
|
|
8864
8890
|
if (container._vnode) {
|
|
8865
8891
|
unmount(container._vnode, null, null, true);
|
|
8892
|
+
instance = container._vnode.component;
|
|
8866
8893
|
}
|
|
8867
8894
|
} else {
|
|
8868
8895
|
patch(
|
|
@@ -8878,7 +8905,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8878
8905
|
container._vnode = vnode;
|
|
8879
8906
|
if (!isFlushing) {
|
|
8880
8907
|
isFlushing = true;
|
|
8881
|
-
flushPreFlushCbs();
|
|
8908
|
+
flushPreFlushCbs(instance);
|
|
8882
8909
|
flushPostFlushCbs();
|
|
8883
8910
|
isFlushing = false;
|
|
8884
8911
|
}
|
|
@@ -8938,9 +8965,13 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
8938
8965
|
if (!shallow && c2.patchFlag !== -2)
|
|
8939
8966
|
traverseStaticChildren(c1, c2);
|
|
8940
8967
|
}
|
|
8941
|
-
if (c2.type === Text
|
|
8942
|
-
|
|
8943
|
-
|
|
8968
|
+
if (c2.type === Text) {
|
|
8969
|
+
if (c2.patchFlag !== -1) {
|
|
8970
|
+
c2.el = c1.el;
|
|
8971
|
+
} else {
|
|
8972
|
+
c2.__elIndex = i + // take fragment start anchor into account
|
|
8973
|
+
(n1.type === Fragment ? 1 : 0);
|
|
8974
|
+
}
|
|
8944
8975
|
}
|
|
8945
8976
|
if (c2.type === Comment && !c2.el) {
|
|
8946
8977
|
c2.el = c1.el;
|
|
@@ -9007,6 +9038,16 @@ function invalidateMount(hooks) {
|
|
|
9007
9038
|
hooks[i].flags |= 8;
|
|
9008
9039
|
}
|
|
9009
9040
|
}
|
|
9041
|
+
function resolveAsyncComponentPlaceholder(anchorVnode) {
|
|
9042
|
+
if (anchorVnode.placeholder) {
|
|
9043
|
+
return anchorVnode.placeholder;
|
|
9044
|
+
}
|
|
9045
|
+
const instance = anchorVnode.component;
|
|
9046
|
+
if (instance) {
|
|
9047
|
+
return resolveAsyncComponentPlaceholder(instance.subTree);
|
|
9048
|
+
}
|
|
9049
|
+
return null;
|
|
9050
|
+
}
|
|
9010
9051
|
|
|
9011
9052
|
const isSuspense = (type) => type.__isSuspense;
|
|
9012
9053
|
let suspenseId = 0;
|
|
@@ -9609,10 +9650,10 @@ function isVNodeSuspensible(vnode) {
|
|
|
9609
9650
|
return suspensible != null && suspensible !== false;
|
|
9610
9651
|
}
|
|
9611
9652
|
|
|
9612
|
-
const Fragment = Symbol.for("v-fgt");
|
|
9613
|
-
const Text = Symbol.for("v-txt");
|
|
9614
|
-
const Comment = Symbol.for("v-cmt");
|
|
9615
|
-
const Static = Symbol.for("v-stc");
|
|
9653
|
+
const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
|
|
9654
|
+
const Text = /* @__PURE__ */ Symbol.for("v-txt");
|
|
9655
|
+
const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
9656
|
+
const Static = /* @__PURE__ */ Symbol.for("v-stc");
|
|
9616
9657
|
const blockStack = [];
|
|
9617
9658
|
let currentBlock = null;
|
|
9618
9659
|
function openBlock(disableTracking = false) {
|
|
@@ -10656,7 +10697,7 @@ function isMemoSame(cached, memo) {
|
|
|
10656
10697
|
return true;
|
|
10657
10698
|
}
|
|
10658
10699
|
|
|
10659
|
-
const version = "3.5.
|
|
10700
|
+
const version = "3.5.27";
|
|
10660
10701
|
const warn = warn$1 ;
|
|
10661
10702
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
10662
10703
|
const devtools = devtools$1 ;
|
|
@@ -10761,7 +10802,7 @@ const nodeOps = {
|
|
|
10761
10802
|
|
|
10762
10803
|
const TRANSITION = "transition";
|
|
10763
10804
|
const ANIMATION = "animation";
|
|
10764
|
-
const vtcKey = Symbol("_vtc");
|
|
10805
|
+
const vtcKey = /* @__PURE__ */ Symbol("_vtc");
|
|
10765
10806
|
const DOMTransitionPropsValidators = {
|
|
10766
10807
|
name: String,
|
|
10767
10808
|
type: String,
|
|
@@ -11054,8 +11095,8 @@ function patchClass(el, value, isSVG) {
|
|
|
11054
11095
|
}
|
|
11055
11096
|
}
|
|
11056
11097
|
|
|
11057
|
-
const vShowOriginalDisplay = Symbol("_vod");
|
|
11058
|
-
const vShowHidden = Symbol("_vsh");
|
|
11098
|
+
const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
|
|
11099
|
+
const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
|
|
11059
11100
|
const vShow = {
|
|
11060
11101
|
// used for prop mismatch check during hydration
|
|
11061
11102
|
name: "show",
|
|
@@ -11104,7 +11145,7 @@ function initVShowForSSR() {
|
|
|
11104
11145
|
};
|
|
11105
11146
|
}
|
|
11106
11147
|
|
|
11107
|
-
const CSS_VAR_TEXT = Symbol("CSS_VAR_TEXT" );
|
|
11148
|
+
const CSS_VAR_TEXT = /* @__PURE__ */ Symbol("CSS_VAR_TEXT" );
|
|
11108
11149
|
function useCssVars(getter) {
|
|
11109
11150
|
const instance = getCurrentInstance();
|
|
11110
11151
|
if (!instance) {
|
|
@@ -11354,7 +11395,7 @@ function addEventListener(el, event, handler, options) {
|
|
|
11354
11395
|
function removeEventListener(el, event, handler, options) {
|
|
11355
11396
|
el.removeEventListener(event, handler, options);
|
|
11356
11397
|
}
|
|
11357
|
-
const veiKey = Symbol("_vei");
|
|
11398
|
+
const veiKey = /* @__PURE__ */ Symbol("_vei");
|
|
11358
11399
|
function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
11359
11400
|
const invokers = el[veiKey] || (el[veiKey] = {});
|
|
11360
11401
|
const existingInvoker = invokers[rawName];
|
|
@@ -11992,8 +12033,8 @@ function useCssModule(name = "$style") {
|
|
|
11992
12033
|
|
|
11993
12034
|
const positionMap = /* @__PURE__ */ new WeakMap();
|
|
11994
12035
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
11995
|
-
const moveCbKey = Symbol("_moveCb");
|
|
11996
|
-
const enterCbKey = Symbol("_enterCb");
|
|
12036
|
+
const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
|
|
12037
|
+
const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
|
|
11997
12038
|
const decorate = (t) => {
|
|
11998
12039
|
delete t.props.mode;
|
|
11999
12040
|
return t;
|
|
@@ -12146,7 +12187,7 @@ function onCompositionEnd(e) {
|
|
|
12146
12187
|
target.dispatchEvent(new Event("input"));
|
|
12147
12188
|
}
|
|
12148
12189
|
}
|
|
12149
|
-
const assignKey = Symbol("_assign");
|
|
12190
|
+
const assignKey = /* @__PURE__ */ Symbol("_assign");
|
|
12150
12191
|
function castValue(value, trim, number) {
|
|
12151
12192
|
if (trim) value = value.trim();
|
|
12152
12193
|
if (number) value = looseToNumber(value);
|