@vue/compat 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/README.md +38 -40
- package/dist/vue.cjs.js +446 -379
- package/dist/vue.cjs.prod.js +387 -333
- package/dist/vue.esm-browser.js +440 -373
- package/dist/vue.esm-browser.prod.js +5 -5
- package/dist/vue.esm-bundler.js +440 -373
- package/dist/vue.global.js +413 -346
- package/dist/vue.global.prod.js +5 -5
- package/dist/vue.runtime.esm-browser.js +327 -279
- package/dist/vue.runtime.esm-browser.prod.js +3 -3
- package/dist/vue.runtime.esm-bundler.js +327 -279
- package/dist/vue.runtime.global.js +300 -252
- package/dist/vue.runtime.global.prod.js +3 -3
- package/package.json +2 -2
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compat v3.5.
|
|
2
|
+
* @vue/compat v3.5.27
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1002,13 +1002,13 @@ function addSub(link) {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
1005
|
-
const ITERATE_KEY = Symbol(
|
|
1005
|
+
const ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
1006
1006
|
!!(process.env.NODE_ENV !== "production") ? "Object iterate" : ""
|
|
1007
1007
|
);
|
|
1008
|
-
const MAP_KEY_ITERATE_KEY = Symbol(
|
|
1008
|
+
const MAP_KEY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
1009
1009
|
!!(process.env.NODE_ENV !== "production") ? "Map keys iterate" : ""
|
|
1010
1010
|
);
|
|
1011
|
-
const ARRAY_ITERATE_KEY = Symbol(
|
|
1011
|
+
const ARRAY_ITERATE_KEY = /* @__PURE__ */ Symbol(
|
|
1012
1012
|
!!(process.env.NODE_ENV !== "production") ? "Array iterate" : ""
|
|
1013
1013
|
);
|
|
1014
1014
|
function track(target, type, key) {
|
|
@@ -1495,20 +1495,20 @@ function createIterableMethod(method, isReadonly2, isShallow2) {
|
|
|
1495
1495
|
"iterate",
|
|
1496
1496
|
isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY
|
|
1497
1497
|
);
|
|
1498
|
-
return
|
|
1499
|
-
// iterator
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
done
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1498
|
+
return extend(
|
|
1499
|
+
// inheriting all iterator properties
|
|
1500
|
+
Object.create(innerIterator),
|
|
1501
|
+
{
|
|
1502
|
+
// iterator protocol
|
|
1503
|
+
next() {
|
|
1504
|
+
const { value, done } = innerIterator.next();
|
|
1505
|
+
return done ? { value, done } : {
|
|
1506
|
+
value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
|
|
1507
|
+
done
|
|
1508
|
+
};
|
|
1509
|
+
}
|
|
1510
1510
|
}
|
|
1511
|
-
|
|
1511
|
+
);
|
|
1512
1512
|
};
|
|
1513
1513
|
}
|
|
1514
1514
|
function createReadonlyMethod(type) {
|
|
@@ -1722,8 +1722,9 @@ function targetTypeMap(rawType) {
|
|
|
1722
1722
|
function getTargetType(value) {
|
|
1723
1723
|
return value["__v_skip"] || !Object.isExtensible(value) ? 0 /* INVALID */ : targetTypeMap(toRawType(value));
|
|
1724
1724
|
}
|
|
1725
|
+
// @__NO_SIDE_EFFECTS__
|
|
1725
1726
|
function reactive(target) {
|
|
1726
|
-
if (isReadonly(target)) {
|
|
1727
|
+
if (/* @__PURE__ */ isReadonly(target)) {
|
|
1727
1728
|
return target;
|
|
1728
1729
|
}
|
|
1729
1730
|
return createReactiveObject(
|
|
@@ -1734,6 +1735,7 @@ function reactive(target) {
|
|
|
1734
1735
|
reactiveMap
|
|
1735
1736
|
);
|
|
1736
1737
|
}
|
|
1738
|
+
// @__NO_SIDE_EFFECTS__
|
|
1737
1739
|
function shallowReactive(target) {
|
|
1738
1740
|
return createReactiveObject(
|
|
1739
1741
|
target,
|
|
@@ -1743,6 +1745,7 @@ function shallowReactive(target) {
|
|
|
1743
1745
|
shallowReactiveMap
|
|
1744
1746
|
);
|
|
1745
1747
|
}
|
|
1748
|
+
// @__NO_SIDE_EFFECTS__
|
|
1746
1749
|
function readonly(target) {
|
|
1747
1750
|
return createReactiveObject(
|
|
1748
1751
|
target,
|
|
@@ -1752,6 +1755,7 @@ function readonly(target) {
|
|
|
1752
1755
|
readonlyMap
|
|
1753
1756
|
);
|
|
1754
1757
|
}
|
|
1758
|
+
// @__NO_SIDE_EFFECTS__
|
|
1755
1759
|
function shallowReadonly(target) {
|
|
1756
1760
|
return createReactiveObject(
|
|
1757
1761
|
target,
|
|
@@ -1790,24 +1794,29 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
|
|
|
1790
1794
|
proxyMap.set(target, proxy);
|
|
1791
1795
|
return proxy;
|
|
1792
1796
|
}
|
|
1797
|
+
// @__NO_SIDE_EFFECTS__
|
|
1793
1798
|
function isReactive(value) {
|
|
1794
|
-
if (isReadonly(value)) {
|
|
1795
|
-
return isReactive(value["__v_raw"]);
|
|
1799
|
+
if (/* @__PURE__ */ isReadonly(value)) {
|
|
1800
|
+
return /* @__PURE__ */ isReactive(value["__v_raw"]);
|
|
1796
1801
|
}
|
|
1797
1802
|
return !!(value && value["__v_isReactive"]);
|
|
1798
1803
|
}
|
|
1804
|
+
// @__NO_SIDE_EFFECTS__
|
|
1799
1805
|
function isReadonly(value) {
|
|
1800
1806
|
return !!(value && value["__v_isReadonly"]);
|
|
1801
1807
|
}
|
|
1808
|
+
// @__NO_SIDE_EFFECTS__
|
|
1802
1809
|
function isShallow(value) {
|
|
1803
1810
|
return !!(value && value["__v_isShallow"]);
|
|
1804
1811
|
}
|
|
1812
|
+
// @__NO_SIDE_EFFECTS__
|
|
1805
1813
|
function isProxy(value) {
|
|
1806
1814
|
return value ? !!value["__v_raw"] : false;
|
|
1807
1815
|
}
|
|
1816
|
+
// @__NO_SIDE_EFFECTS__
|
|
1808
1817
|
function toRaw(observed) {
|
|
1809
1818
|
const raw = observed && observed["__v_raw"];
|
|
1810
|
-
return raw ? toRaw(raw) : observed;
|
|
1819
|
+
return raw ? /* @__PURE__ */ toRaw(raw) : observed;
|
|
1811
1820
|
}
|
|
1812
1821
|
function markRaw(value) {
|
|
1813
1822
|
if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) {
|
|
@@ -1815,20 +1824,23 @@ function markRaw(value) {
|
|
|
1815
1824
|
}
|
|
1816
1825
|
return value;
|
|
1817
1826
|
}
|
|
1818
|
-
const toReactive = (value) => isObject(value) ? reactive(value) : value;
|
|
1819
|
-
const toReadonly = (value) => isObject(value) ? readonly(value) : value;
|
|
1827
|
+
const toReactive = (value) => isObject(value) ? /* @__PURE__ */ reactive(value) : value;
|
|
1828
|
+
const toReadonly = (value) => isObject(value) ? /* @__PURE__ */ readonly(value) : value;
|
|
1820
1829
|
|
|
1830
|
+
// @__NO_SIDE_EFFECTS__
|
|
1821
1831
|
function isRef(r) {
|
|
1822
1832
|
return r ? r["__v_isRef"] === true : false;
|
|
1823
1833
|
}
|
|
1834
|
+
// @__NO_SIDE_EFFECTS__
|
|
1824
1835
|
function ref(value) {
|
|
1825
1836
|
return createRef(value, false);
|
|
1826
1837
|
}
|
|
1838
|
+
// @__NO_SIDE_EFFECTS__
|
|
1827
1839
|
function shallowRef(value) {
|
|
1828
1840
|
return createRef(value, true);
|
|
1829
1841
|
}
|
|
1830
1842
|
function createRef(rawValue, shallow) {
|
|
1831
|
-
if (isRef(rawValue)) {
|
|
1843
|
+
if (/* @__PURE__ */ isRef(rawValue)) {
|
|
1832
1844
|
return rawValue;
|
|
1833
1845
|
}
|
|
1834
1846
|
return new RefImpl(rawValue, shallow);
|
|
@@ -1890,7 +1902,7 @@ function triggerRef(ref2) {
|
|
|
1890
1902
|
}
|
|
1891
1903
|
}
|
|
1892
1904
|
function unref(ref2) {
|
|
1893
|
-
return isRef(ref2) ? ref2.value : ref2;
|
|
1905
|
+
return /* @__PURE__ */ isRef(ref2) ? ref2.value : ref2;
|
|
1894
1906
|
}
|
|
1895
1907
|
function toValue(source) {
|
|
1896
1908
|
return isFunction(source) ? source() : unref(source);
|
|
@@ -1899,7 +1911,7 @@ const shallowUnwrapHandlers = {
|
|
|
1899
1911
|
get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
|
|
1900
1912
|
set: (target, key, value, receiver) => {
|
|
1901
1913
|
const oldValue = target[key];
|
|
1902
|
-
if (isRef(oldValue) &&
|
|
1914
|
+
if (/* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) {
|
|
1903
1915
|
oldValue.value = value;
|
|
1904
1916
|
return true;
|
|
1905
1917
|
} else {
|
|
@@ -1929,6 +1941,7 @@ class CustomRefImpl {
|
|
|
1929
1941
|
function customRef(factory) {
|
|
1930
1942
|
return new CustomRefImpl(factory);
|
|
1931
1943
|
}
|
|
1944
|
+
// @__NO_SIDE_EFFECTS__
|
|
1932
1945
|
function toRefs(object) {
|
|
1933
1946
|
if (!!(process.env.NODE_ENV !== "production") && !isProxy(object)) {
|
|
1934
1947
|
warn$2(`toRefs() expects a reactive object but received a plain one.`);
|
|
@@ -1964,9 +1977,9 @@ class ObjectRefImpl {
|
|
|
1964
1977
|
return this._value = val === void 0 ? this._defaultValue : val;
|
|
1965
1978
|
}
|
|
1966
1979
|
set value(newVal) {
|
|
1967
|
-
if (this._shallow && isRef(this._raw[this._key])) {
|
|
1980
|
+
if (this._shallow && /* @__PURE__ */ isRef(this._raw[this._key])) {
|
|
1968
1981
|
const nestedRef = this._object[this._key];
|
|
1969
|
-
if (isRef(nestedRef)) {
|
|
1982
|
+
if (/* @__PURE__ */ isRef(nestedRef)) {
|
|
1970
1983
|
nestedRef.value = newVal;
|
|
1971
1984
|
return;
|
|
1972
1985
|
}
|
|
@@ -1988,15 +2001,16 @@ class GetterRefImpl {
|
|
|
1988
2001
|
return this._value = this._getter();
|
|
1989
2002
|
}
|
|
1990
2003
|
}
|
|
2004
|
+
// @__NO_SIDE_EFFECTS__
|
|
1991
2005
|
function toRef(source, key, defaultValue) {
|
|
1992
|
-
if (isRef(source)) {
|
|
2006
|
+
if (/* @__PURE__ */ isRef(source)) {
|
|
1993
2007
|
return source;
|
|
1994
2008
|
} else if (isFunction(source)) {
|
|
1995
2009
|
return new GetterRefImpl(source);
|
|
1996
2010
|
} else if (isObject(source) && arguments.length > 1) {
|
|
1997
2011
|
return propertyToRef(source, key, defaultValue);
|
|
1998
2012
|
} else {
|
|
1999
|
-
return ref(source);
|
|
2013
|
+
return /* @__PURE__ */ ref(source);
|
|
2000
2014
|
}
|
|
2001
2015
|
}
|
|
2002
2016
|
function propertyToRef(source, key, defaultValue) {
|
|
@@ -2077,6 +2091,7 @@ class ComputedRefImpl {
|
|
|
2077
2091
|
}
|
|
2078
2092
|
}
|
|
2079
2093
|
}
|
|
2094
|
+
// @__NO_SIDE_EFFECTS__
|
|
2080
2095
|
function computed$1(getterOrOptions, debugOptions, isSSR = false) {
|
|
2081
2096
|
let getter;
|
|
2082
2097
|
let setter;
|
|
@@ -3394,65 +3409,6 @@ function emit$1(instance, event, args) {
|
|
|
3394
3409
|
return instance.proxy;
|
|
3395
3410
|
}
|
|
3396
3411
|
|
|
3397
|
-
const compatModelEventPrefix = `onModelCompat:`;
|
|
3398
|
-
const warnedTypes = /* @__PURE__ */ new WeakSet();
|
|
3399
|
-
function convertLegacyVModelProps(vnode) {
|
|
3400
|
-
const { type, shapeFlag, props, dynamicProps } = vnode;
|
|
3401
|
-
const comp = type;
|
|
3402
|
-
if (shapeFlag & 6 && props && "modelValue" in props) {
|
|
3403
|
-
if (!isCompatEnabled$1(
|
|
3404
|
-
"COMPONENT_V_MODEL",
|
|
3405
|
-
// this is a special case where we want to use the vnode component's
|
|
3406
|
-
// compat config instead of the current rendering instance (which is the
|
|
3407
|
-
// parent of the component that exposes v-model)
|
|
3408
|
-
{ type }
|
|
3409
|
-
)) {
|
|
3410
|
-
return;
|
|
3411
|
-
}
|
|
3412
|
-
if (!!(process.env.NODE_ENV !== "production") && !warnedTypes.has(comp)) {
|
|
3413
|
-
pushWarningContext(vnode);
|
|
3414
|
-
warnDeprecation$1("COMPONENT_V_MODEL", { type }, comp);
|
|
3415
|
-
popWarningContext();
|
|
3416
|
-
warnedTypes.add(comp);
|
|
3417
|
-
}
|
|
3418
|
-
const model = comp.model || {};
|
|
3419
|
-
applyModelFromMixins(model, comp.mixins);
|
|
3420
|
-
const { prop = "value", event = "input" } = model;
|
|
3421
|
-
if (prop !== "modelValue") {
|
|
3422
|
-
props[prop] = props.modelValue;
|
|
3423
|
-
delete props.modelValue;
|
|
3424
|
-
}
|
|
3425
|
-
if (dynamicProps) {
|
|
3426
|
-
dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
|
|
3427
|
-
}
|
|
3428
|
-
props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
|
|
3429
|
-
delete props["onUpdate:modelValue"];
|
|
3430
|
-
}
|
|
3431
|
-
}
|
|
3432
|
-
function applyModelFromMixins(model, mixins) {
|
|
3433
|
-
if (mixins) {
|
|
3434
|
-
mixins.forEach((m) => {
|
|
3435
|
-
if (m.model) extend(model, m.model);
|
|
3436
|
-
if (m.mixins) applyModelFromMixins(model, m.mixins);
|
|
3437
|
-
});
|
|
3438
|
-
}
|
|
3439
|
-
}
|
|
3440
|
-
function compatModelEmit(instance, event, args) {
|
|
3441
|
-
if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
|
|
3442
|
-
return;
|
|
3443
|
-
}
|
|
3444
|
-
const props = instance.vnode.props;
|
|
3445
|
-
const modelHandler = props && props[compatModelEventPrefix + event];
|
|
3446
|
-
if (modelHandler) {
|
|
3447
|
-
callWithErrorHandling(
|
|
3448
|
-
modelHandler,
|
|
3449
|
-
instance,
|
|
3450
|
-
6,
|
|
3451
|
-
args
|
|
3452
|
-
);
|
|
3453
|
-
}
|
|
3454
|
-
}
|
|
3455
|
-
|
|
3456
3412
|
let currentRenderingInstance = null;
|
|
3457
3413
|
let currentScopeId = null;
|
|
3458
3414
|
function setCurrentRenderingInstance(instance) {
|
|
@@ -3603,7 +3559,180 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
|
|
|
3603
3559
|
}
|
|
3604
3560
|
}
|
|
3605
3561
|
|
|
3606
|
-
|
|
3562
|
+
function provide(key, value) {
|
|
3563
|
+
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3564
|
+
if (!currentInstance || currentInstance.isMounted) {
|
|
3565
|
+
warn$1(`provide() can only be used inside setup().`);
|
|
3566
|
+
}
|
|
3567
|
+
}
|
|
3568
|
+
if (currentInstance) {
|
|
3569
|
+
let provides = currentInstance.provides;
|
|
3570
|
+
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
3571
|
+
if (parentProvides === provides) {
|
|
3572
|
+
provides = currentInstance.provides = Object.create(parentProvides);
|
|
3573
|
+
}
|
|
3574
|
+
provides[key] = value;
|
|
3575
|
+
}
|
|
3576
|
+
}
|
|
3577
|
+
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
3578
|
+
const instance = getCurrentInstance();
|
|
3579
|
+
if (instance || currentApp) {
|
|
3580
|
+
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
3581
|
+
if (provides && key in provides) {
|
|
3582
|
+
return provides[key];
|
|
3583
|
+
} else if (arguments.length > 1) {
|
|
3584
|
+
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
3585
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
3586
|
+
warn$1(`injection "${String(key)}" not found.`);
|
|
3587
|
+
}
|
|
3588
|
+
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
3589
|
+
warn$1(`inject() can only be used inside setup() or functional components.`);
|
|
3590
|
+
}
|
|
3591
|
+
}
|
|
3592
|
+
function hasInjectionContext() {
|
|
3593
|
+
return !!(getCurrentInstance() || currentApp);
|
|
3594
|
+
}
|
|
3595
|
+
|
|
3596
|
+
const ssrContextKey = /* @__PURE__ */ Symbol.for("v-scx");
|
|
3597
|
+
const useSSRContext = () => {
|
|
3598
|
+
{
|
|
3599
|
+
const ctx = inject(ssrContextKey);
|
|
3600
|
+
if (!ctx) {
|
|
3601
|
+
!!(process.env.NODE_ENV !== "production") && warn$1(
|
|
3602
|
+
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
3603
|
+
);
|
|
3604
|
+
}
|
|
3605
|
+
return ctx;
|
|
3606
|
+
}
|
|
3607
|
+
};
|
|
3608
|
+
|
|
3609
|
+
function watchEffect(effect, options) {
|
|
3610
|
+
return doWatch(effect, null, options);
|
|
3611
|
+
}
|
|
3612
|
+
function watchPostEffect(effect, options) {
|
|
3613
|
+
return doWatch(
|
|
3614
|
+
effect,
|
|
3615
|
+
null,
|
|
3616
|
+
!!(process.env.NODE_ENV !== "production") ? extend({}, options, { flush: "post" }) : { flush: "post" }
|
|
3617
|
+
);
|
|
3618
|
+
}
|
|
3619
|
+
function watchSyncEffect(effect, options) {
|
|
3620
|
+
return doWatch(
|
|
3621
|
+
effect,
|
|
3622
|
+
null,
|
|
3623
|
+
!!(process.env.NODE_ENV !== "production") ? extend({}, options, { flush: "sync" }) : { flush: "sync" }
|
|
3624
|
+
);
|
|
3625
|
+
}
|
|
3626
|
+
function watch(source, cb, options) {
|
|
3627
|
+
if (!!(process.env.NODE_ENV !== "production") && !isFunction(cb)) {
|
|
3628
|
+
warn$1(
|
|
3629
|
+
`\`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.`
|
|
3630
|
+
);
|
|
3631
|
+
}
|
|
3632
|
+
return doWatch(source, cb, options);
|
|
3633
|
+
}
|
|
3634
|
+
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
3635
|
+
const { immediate, deep, flush, once } = options;
|
|
3636
|
+
if (!!(process.env.NODE_ENV !== "production") && !cb) {
|
|
3637
|
+
if (immediate !== void 0) {
|
|
3638
|
+
warn$1(
|
|
3639
|
+
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3640
|
+
);
|
|
3641
|
+
}
|
|
3642
|
+
if (deep !== void 0) {
|
|
3643
|
+
warn$1(
|
|
3644
|
+
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3645
|
+
);
|
|
3646
|
+
}
|
|
3647
|
+
if (once !== void 0) {
|
|
3648
|
+
warn$1(
|
|
3649
|
+
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
3650
|
+
);
|
|
3651
|
+
}
|
|
3652
|
+
}
|
|
3653
|
+
const baseWatchOptions = extend({}, options);
|
|
3654
|
+
if (!!(process.env.NODE_ENV !== "production")) baseWatchOptions.onWarn = warn$1;
|
|
3655
|
+
const runsImmediately = cb && immediate || !cb && flush !== "post";
|
|
3656
|
+
let ssrCleanup;
|
|
3657
|
+
if (isInSSRComponentSetup) {
|
|
3658
|
+
if (flush === "sync") {
|
|
3659
|
+
const ctx = useSSRContext();
|
|
3660
|
+
ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
|
|
3661
|
+
} else if (!runsImmediately) {
|
|
3662
|
+
const watchStopHandle = () => {
|
|
3663
|
+
};
|
|
3664
|
+
watchStopHandle.stop = NOOP;
|
|
3665
|
+
watchStopHandle.resume = NOOP;
|
|
3666
|
+
watchStopHandle.pause = NOOP;
|
|
3667
|
+
return watchStopHandle;
|
|
3668
|
+
}
|
|
3669
|
+
}
|
|
3670
|
+
const instance = currentInstance;
|
|
3671
|
+
baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
|
|
3672
|
+
let isPre = false;
|
|
3673
|
+
if (flush === "post") {
|
|
3674
|
+
baseWatchOptions.scheduler = (job) => {
|
|
3675
|
+
queuePostRenderEffect(job, instance && instance.suspense);
|
|
3676
|
+
};
|
|
3677
|
+
} else if (flush !== "sync") {
|
|
3678
|
+
isPre = true;
|
|
3679
|
+
baseWatchOptions.scheduler = (job, isFirstRun) => {
|
|
3680
|
+
if (isFirstRun) {
|
|
3681
|
+
job();
|
|
3682
|
+
} else {
|
|
3683
|
+
queueJob(job);
|
|
3684
|
+
}
|
|
3685
|
+
};
|
|
3686
|
+
}
|
|
3687
|
+
baseWatchOptions.augmentJob = (job) => {
|
|
3688
|
+
if (cb) {
|
|
3689
|
+
job.flags |= 4;
|
|
3690
|
+
}
|
|
3691
|
+
if (isPre) {
|
|
3692
|
+
job.flags |= 2;
|
|
3693
|
+
if (instance) {
|
|
3694
|
+
job.id = instance.uid;
|
|
3695
|
+
job.i = instance;
|
|
3696
|
+
}
|
|
3697
|
+
}
|
|
3698
|
+
};
|
|
3699
|
+
const watchHandle = watch$1(source, cb, baseWatchOptions);
|
|
3700
|
+
if (isInSSRComponentSetup) {
|
|
3701
|
+
if (ssrCleanup) {
|
|
3702
|
+
ssrCleanup.push(watchHandle);
|
|
3703
|
+
} else if (runsImmediately) {
|
|
3704
|
+
watchHandle();
|
|
3705
|
+
}
|
|
3706
|
+
}
|
|
3707
|
+
return watchHandle;
|
|
3708
|
+
}
|
|
3709
|
+
function instanceWatch(source, value, options) {
|
|
3710
|
+
const publicThis = this.proxy;
|
|
3711
|
+
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
3712
|
+
let cb;
|
|
3713
|
+
if (isFunction(value)) {
|
|
3714
|
+
cb = value;
|
|
3715
|
+
} else {
|
|
3716
|
+
cb = value.handler;
|
|
3717
|
+
options = value;
|
|
3718
|
+
}
|
|
3719
|
+
const reset = setCurrentInstance(this);
|
|
3720
|
+
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
3721
|
+
reset();
|
|
3722
|
+
return res;
|
|
3723
|
+
}
|
|
3724
|
+
function createPathGetter(ctx, path) {
|
|
3725
|
+
const segments = path.split(".");
|
|
3726
|
+
return () => {
|
|
3727
|
+
let cur = ctx;
|
|
3728
|
+
for (let i = 0; i < segments.length && cur; i++) {
|
|
3729
|
+
cur = cur[segments[i]];
|
|
3730
|
+
}
|
|
3731
|
+
return cur;
|
|
3732
|
+
};
|
|
3733
|
+
}
|
|
3734
|
+
|
|
3735
|
+
const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
|
|
3607
3736
|
const isTeleport = (type) => type.__isTeleport;
|
|
3608
3737
|
const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === "");
|
|
3609
3738
|
const isTeleportDeferred = (props) => props && (props.defer || props.defer === "");
|
|
@@ -3963,8 +4092,8 @@ function prepareAnchor(target, vnode, createText, insert) {
|
|
|
3963
4092
|
return targetAnchor;
|
|
3964
4093
|
}
|
|
3965
4094
|
|
|
3966
|
-
const leaveCbKey = Symbol("_leaveCb");
|
|
3967
|
-
const enterCbKey$1 = Symbol("_enterCb");
|
|
4095
|
+
const leaveCbKey = /* @__PURE__ */ Symbol("_leaveCb");
|
|
4096
|
+
const enterCbKey$1 = /* @__PURE__ */ Symbol("_enterCb");
|
|
3968
4097
|
function useTransitionState() {
|
|
3969
4098
|
const state = {
|
|
3970
4099
|
isMounted: false,
|
|
@@ -4816,7 +4945,7 @@ Server rendered element contains more child nodes than client vdom.`
|
|
|
4816
4945
|
logMismatchError();
|
|
4817
4946
|
}
|
|
4818
4947
|
if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
|
|
4819
|
-
key[0] === "." || isCustomElement) {
|
|
4948
|
+
key[0] === "." || isCustomElement && !isReservedProp(key)) {
|
|
4820
4949
|
patchProp(el, key, null, props[key], void 0, parentComponent);
|
|
4821
4950
|
}
|
|
4822
4951
|
}
|
|
@@ -5516,7 +5645,9 @@ const KeepAliveImpl = {
|
|
|
5516
5645
|
}
|
|
5517
5646
|
function pruneCache(filter) {
|
|
5518
5647
|
cache.forEach((vnode, key) => {
|
|
5519
|
-
const name = getComponentName(
|
|
5648
|
+
const name = getComponentName(
|
|
5649
|
+
isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : vnode.type
|
|
5650
|
+
);
|
|
5520
5651
|
if (name && !filter(name)) {
|
|
5521
5652
|
pruneCacheEntry(key);
|
|
5522
5653
|
}
|
|
@@ -5783,7 +5914,7 @@ const FILTERS = "filters";
|
|
|
5783
5914
|
function resolveComponent(name, maybeSelfReference) {
|
|
5784
5915
|
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
5785
5916
|
}
|
|
5786
|
-
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
5917
|
+
const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
5787
5918
|
function resolveDynamicComponent(component) {
|
|
5788
5919
|
if (isString(component)) {
|
|
5789
5920
|
return resolveAsset(COMPONENTS, component, false) || component;
|
|
@@ -7350,7 +7481,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
7350
7481
|
return vm;
|
|
7351
7482
|
}
|
|
7352
7483
|
}
|
|
7353
|
-
Vue.version = `2.6.14-compat:${"3.5.
|
|
7484
|
+
Vue.version = `2.6.14-compat:${"3.5.27"}`;
|
|
7354
7485
|
Vue.config = singletonApp.config;
|
|
7355
7486
|
Vue.use = (plugin, ...options) => {
|
|
7356
7487
|
if (plugin && isFunction(plugin.install)) {
|
|
@@ -7929,177 +8060,70 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
7929
8060
|
}
|
|
7930
8061
|
let currentApp = null;
|
|
7931
8062
|
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
|
|
7935
|
-
|
|
8063
|
+
const compatModelEventPrefix = `onModelCompat:`;
|
|
8064
|
+
const warnedTypes = /* @__PURE__ */ new WeakSet();
|
|
8065
|
+
function convertLegacyVModelProps(vnode) {
|
|
8066
|
+
const { type, shapeFlag, props, dynamicProps } = vnode;
|
|
8067
|
+
const comp = type;
|
|
8068
|
+
if (shapeFlag & 6 && props && "modelValue" in props) {
|
|
8069
|
+
if (!isCompatEnabled$1(
|
|
8070
|
+
"COMPONENT_V_MODEL",
|
|
8071
|
+
// this is a special case where we want to use the vnode component's
|
|
8072
|
+
// compat config instead of the current rendering instance (which is the
|
|
8073
|
+
// parent of the component that exposes v-model)
|
|
8074
|
+
{ type }
|
|
8075
|
+
)) {
|
|
8076
|
+
return;
|
|
7936
8077
|
}
|
|
7937
|
-
|
|
7938
|
-
|
|
7939
|
-
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
|
|
8078
|
+
if (!!(process.env.NODE_ENV !== "production") && !warnedTypes.has(comp)) {
|
|
8079
|
+
pushWarningContext(vnode);
|
|
8080
|
+
warnDeprecation$1(
|
|
8081
|
+
"COMPONENT_V_MODEL",
|
|
8082
|
+
{
|
|
8083
|
+
type,
|
|
8084
|
+
appContext: vnode.ctx && vnode.ctx.appContext || createAppContext()
|
|
8085
|
+
},
|
|
8086
|
+
comp
|
|
8087
|
+
);
|
|
8088
|
+
popWarningContext();
|
|
8089
|
+
warnedTypes.add(comp);
|
|
7943
8090
|
}
|
|
7944
|
-
|
|
7945
|
-
|
|
7946
|
-
}
|
|
7947
|
-
|
|
7948
|
-
|
|
7949
|
-
|
|
7950
|
-
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
|
7951
|
-
if (provides && key in provides) {
|
|
7952
|
-
return provides[key];
|
|
7953
|
-
} else if (arguments.length > 1) {
|
|
7954
|
-
return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue;
|
|
7955
|
-
} else if (!!(process.env.NODE_ENV !== "production")) {
|
|
7956
|
-
warn$1(`injection "${String(key)}" not found.`);
|
|
8091
|
+
const model = comp.model || {};
|
|
8092
|
+
applyModelFromMixins(model, comp.mixins);
|
|
8093
|
+
const { prop = "value", event = "input" } = model;
|
|
8094
|
+
if (prop !== "modelValue") {
|
|
8095
|
+
props[prop] = props.modelValue;
|
|
8096
|
+
delete props.modelValue;
|
|
7957
8097
|
}
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
}
|
|
7961
|
-
}
|
|
7962
|
-
function hasInjectionContext() {
|
|
7963
|
-
return !!(getCurrentInstance() || currentApp);
|
|
7964
|
-
}
|
|
7965
|
-
|
|
7966
|
-
const ssrContextKey = Symbol.for("v-scx");
|
|
7967
|
-
const useSSRContext = () => {
|
|
7968
|
-
{
|
|
7969
|
-
const ctx = inject(ssrContextKey);
|
|
7970
|
-
if (!ctx) {
|
|
7971
|
-
!!(process.env.NODE_ENV !== "production") && warn$1(
|
|
7972
|
-
`Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build.`
|
|
7973
|
-
);
|
|
8098
|
+
if (dynamicProps) {
|
|
8099
|
+
dynamicProps[dynamicProps.indexOf("modelValue")] = prop;
|
|
7974
8100
|
}
|
|
7975
|
-
|
|
8101
|
+
props[compatModelEventPrefix + event] = props["onUpdate:modelValue"];
|
|
8102
|
+
delete props["onUpdate:modelValue"];
|
|
7976
8103
|
}
|
|
7977
|
-
};
|
|
7978
|
-
|
|
7979
|
-
function watchEffect(effect, options) {
|
|
7980
|
-
return doWatch(effect, null, options);
|
|
7981
|
-
}
|
|
7982
|
-
function watchPostEffect(effect, options) {
|
|
7983
|
-
return doWatch(
|
|
7984
|
-
effect,
|
|
7985
|
-
null,
|
|
7986
|
-
!!(process.env.NODE_ENV !== "production") ? extend({}, options, { flush: "post" }) : { flush: "post" }
|
|
7987
|
-
);
|
|
7988
|
-
}
|
|
7989
|
-
function watchSyncEffect(effect, options) {
|
|
7990
|
-
return doWatch(
|
|
7991
|
-
effect,
|
|
7992
|
-
null,
|
|
7993
|
-
!!(process.env.NODE_ENV !== "production") ? extend({}, options, { flush: "sync" }) : { flush: "sync" }
|
|
7994
|
-
);
|
|
7995
8104
|
}
|
|
7996
|
-
function
|
|
7997
|
-
if (
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
8105
|
+
function applyModelFromMixins(model, mixins) {
|
|
8106
|
+
if (mixins) {
|
|
8107
|
+
mixins.forEach((m) => {
|
|
8108
|
+
if (m.model) extend(model, m.model);
|
|
8109
|
+
if (m.mixins) applyModelFromMixins(model, m.mixins);
|
|
8110
|
+
});
|
|
8001
8111
|
}
|
|
8002
|
-
return doWatch(source, cb, options);
|
|
8003
8112
|
}
|
|
8004
|
-
function
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
if (immediate !== void 0) {
|
|
8008
|
-
warn$1(
|
|
8009
|
-
`watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.`
|
|
8010
|
-
);
|
|
8011
|
-
}
|
|
8012
|
-
if (deep !== void 0) {
|
|
8013
|
-
warn$1(
|
|
8014
|
-
`watch() "deep" option is only respected when using the watch(source, callback, options?) signature.`
|
|
8015
|
-
);
|
|
8016
|
-
}
|
|
8017
|
-
if (once !== void 0) {
|
|
8018
|
-
warn$1(
|
|
8019
|
-
`watch() "once" option is only respected when using the watch(source, callback, options?) signature.`
|
|
8020
|
-
);
|
|
8021
|
-
}
|
|
8022
|
-
}
|
|
8023
|
-
const baseWatchOptions = extend({}, options);
|
|
8024
|
-
if (!!(process.env.NODE_ENV !== "production")) baseWatchOptions.onWarn = warn$1;
|
|
8025
|
-
const runsImmediately = cb && immediate || !cb && flush !== "post";
|
|
8026
|
-
let ssrCleanup;
|
|
8027
|
-
if (isInSSRComponentSetup) {
|
|
8028
|
-
if (flush === "sync") {
|
|
8029
|
-
const ctx = useSSRContext();
|
|
8030
|
-
ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
|
|
8031
|
-
} else if (!runsImmediately) {
|
|
8032
|
-
const watchStopHandle = () => {
|
|
8033
|
-
};
|
|
8034
|
-
watchStopHandle.stop = NOOP;
|
|
8035
|
-
watchStopHandle.resume = NOOP;
|
|
8036
|
-
watchStopHandle.pause = NOOP;
|
|
8037
|
-
return watchStopHandle;
|
|
8038
|
-
}
|
|
8039
|
-
}
|
|
8040
|
-
const instance = currentInstance;
|
|
8041
|
-
baseWatchOptions.call = (fn, type, args) => callWithAsyncErrorHandling(fn, instance, type, args);
|
|
8042
|
-
let isPre = false;
|
|
8043
|
-
if (flush === "post") {
|
|
8044
|
-
baseWatchOptions.scheduler = (job) => {
|
|
8045
|
-
queuePostRenderEffect(job, instance && instance.suspense);
|
|
8046
|
-
};
|
|
8047
|
-
} else if (flush !== "sync") {
|
|
8048
|
-
isPre = true;
|
|
8049
|
-
baseWatchOptions.scheduler = (job, isFirstRun) => {
|
|
8050
|
-
if (isFirstRun) {
|
|
8051
|
-
job();
|
|
8052
|
-
} else {
|
|
8053
|
-
queueJob(job);
|
|
8054
|
-
}
|
|
8055
|
-
};
|
|
8056
|
-
}
|
|
8057
|
-
baseWatchOptions.augmentJob = (job) => {
|
|
8058
|
-
if (cb) {
|
|
8059
|
-
job.flags |= 4;
|
|
8060
|
-
}
|
|
8061
|
-
if (isPre) {
|
|
8062
|
-
job.flags |= 2;
|
|
8063
|
-
if (instance) {
|
|
8064
|
-
job.id = instance.uid;
|
|
8065
|
-
job.i = instance;
|
|
8066
|
-
}
|
|
8067
|
-
}
|
|
8068
|
-
};
|
|
8069
|
-
const watchHandle = watch$1(source, cb, baseWatchOptions);
|
|
8070
|
-
if (isInSSRComponentSetup) {
|
|
8071
|
-
if (ssrCleanup) {
|
|
8072
|
-
ssrCleanup.push(watchHandle);
|
|
8073
|
-
} else if (runsImmediately) {
|
|
8074
|
-
watchHandle();
|
|
8075
|
-
}
|
|
8113
|
+
function compatModelEmit(instance, event, args) {
|
|
8114
|
+
if (!isCompatEnabled$1("COMPONENT_V_MODEL", instance)) {
|
|
8115
|
+
return;
|
|
8076
8116
|
}
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
cb = value.handler;
|
|
8087
|
-
options = value;
|
|
8117
|
+
const props = instance.vnode.props;
|
|
8118
|
+
const modelHandler = props && props[compatModelEventPrefix + event];
|
|
8119
|
+
if (modelHandler) {
|
|
8120
|
+
callWithErrorHandling(
|
|
8121
|
+
modelHandler,
|
|
8122
|
+
instance,
|
|
8123
|
+
6,
|
|
8124
|
+
args
|
|
8125
|
+
);
|
|
8088
8126
|
}
|
|
8089
|
-
const reset = setCurrentInstance(this);
|
|
8090
|
-
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
8091
|
-
reset();
|
|
8092
|
-
return res;
|
|
8093
|
-
}
|
|
8094
|
-
function createPathGetter(ctx, path) {
|
|
8095
|
-
const segments = path.split(".");
|
|
8096
|
-
return () => {
|
|
8097
|
-
let cur = ctx;
|
|
8098
|
-
for (let i = 0; i < segments.length && cur; i++) {
|
|
8099
|
-
cur = cur[segments[i]];
|
|
8100
|
-
}
|
|
8101
|
-
return cur;
|
|
8102
|
-
};
|
|
8103
8127
|
}
|
|
8104
8128
|
|
|
8105
8129
|
function useModel(props, name, options = EMPTY_OBJ) {
|
|
@@ -9412,7 +9436,15 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9412
9436
|
} else {
|
|
9413
9437
|
const el = n2.el = n1.el;
|
|
9414
9438
|
if (n2.children !== n1.children) {
|
|
9415
|
-
|
|
9439
|
+
if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating && n2.patchFlag === -1 && "__elIndex" in n1) {
|
|
9440
|
+
const childNodes = container.childNodes;
|
|
9441
|
+
const newChild = hostCreateText(n2.children);
|
|
9442
|
+
const oldChild = childNodes[n2.__elIndex = n1.__elIndex];
|
|
9443
|
+
hostInsert(newChild, container, oldChild);
|
|
9444
|
+
hostRemove(oldChild);
|
|
9445
|
+
} else {
|
|
9446
|
+
hostSetText(el, n2.children);
|
|
9447
|
+
}
|
|
9416
9448
|
}
|
|
9417
9449
|
}
|
|
9418
9450
|
};
|
|
@@ -9796,7 +9828,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
9796
9828
|
} else {
|
|
9797
9829
|
if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result
|
|
9798
9830
|
// of renderSlot() with no valid children
|
|
9799
|
-
n1.dynamicChildren) {
|
|
9831
|
+
n1.dynamicChildren && n1.dynamicChildren.length === dynamicChildren.length) {
|
|
9800
9832
|
patchBlockChildren(
|
|
9801
9833
|
n1.dynamicChildren,
|
|
9802
9834
|
dynamicChildren,
|
|
@@ -10423,8 +10455,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10423
10455
|
const nextChild = c2[nextIndex];
|
|
10424
10456
|
const anchorVNode = c2[nextIndex + 1];
|
|
10425
10457
|
const anchor = nextIndex + 1 < l2 ? (
|
|
10426
|
-
// #13559, fallback to el placeholder for unresolved async component
|
|
10427
|
-
anchorVNode.el || anchorVNode
|
|
10458
|
+
// #13559, #14173 fallback to el placeholder for unresolved async component
|
|
10459
|
+
anchorVNode.el || resolveAsyncComponentPlaceholder(anchorVNode)
|
|
10428
10460
|
) : parentAnchor;
|
|
10429
10461
|
if (newIndexToOldIndexMap[i] === 0) {
|
|
10430
10462
|
patch(
|
|
@@ -10689,9 +10721,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10689
10721
|
};
|
|
10690
10722
|
let isFlushing = false;
|
|
10691
10723
|
const render = (vnode, container, namespace) => {
|
|
10724
|
+
let instance;
|
|
10692
10725
|
if (vnode == null) {
|
|
10693
10726
|
if (container._vnode) {
|
|
10694
10727
|
unmount(container._vnode, null, null, true);
|
|
10728
|
+
instance = container._vnode.component;
|
|
10695
10729
|
}
|
|
10696
10730
|
} else {
|
|
10697
10731
|
patch(
|
|
@@ -10707,7 +10741,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
10707
10741
|
container._vnode = vnode;
|
|
10708
10742
|
if (!isFlushing) {
|
|
10709
10743
|
isFlushing = true;
|
|
10710
|
-
flushPreFlushCbs();
|
|
10744
|
+
flushPreFlushCbs(instance);
|
|
10711
10745
|
flushPostFlushCbs();
|
|
10712
10746
|
isFlushing = false;
|
|
10713
10747
|
}
|
|
@@ -10767,9 +10801,13 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
10767
10801
|
if (!shallow && c2.patchFlag !== -2)
|
|
10768
10802
|
traverseStaticChildren(c1, c2);
|
|
10769
10803
|
}
|
|
10770
|
-
if (c2.type === Text
|
|
10771
|
-
|
|
10772
|
-
|
|
10804
|
+
if (c2.type === Text) {
|
|
10805
|
+
if (c2.patchFlag !== -1) {
|
|
10806
|
+
c2.el = c1.el;
|
|
10807
|
+
} else {
|
|
10808
|
+
c2.__elIndex = i + // take fragment start anchor into account
|
|
10809
|
+
(n1.type === Fragment ? 1 : 0);
|
|
10810
|
+
}
|
|
10773
10811
|
}
|
|
10774
10812
|
if (c2.type === Comment && !c2.el) {
|
|
10775
10813
|
c2.el = c1.el;
|
|
@@ -10836,6 +10874,16 @@ function invalidateMount(hooks) {
|
|
|
10836
10874
|
hooks[i].flags |= 8;
|
|
10837
10875
|
}
|
|
10838
10876
|
}
|
|
10877
|
+
function resolveAsyncComponentPlaceholder(anchorVnode) {
|
|
10878
|
+
if (anchorVnode.placeholder) {
|
|
10879
|
+
return anchorVnode.placeholder;
|
|
10880
|
+
}
|
|
10881
|
+
const instance = anchorVnode.component;
|
|
10882
|
+
if (instance) {
|
|
10883
|
+
return resolveAsyncComponentPlaceholder(instance.subTree);
|
|
10884
|
+
}
|
|
10885
|
+
return null;
|
|
10886
|
+
}
|
|
10839
10887
|
|
|
10840
10888
|
const isSuspense = (type) => type.__isSuspense;
|
|
10841
10889
|
let suspenseId = 0;
|
|
@@ -11495,10 +11543,10 @@ function convertLegacyComponent(comp, instance) {
|
|
|
11495
11543
|
return comp;
|
|
11496
11544
|
}
|
|
11497
11545
|
|
|
11498
|
-
const Fragment = Symbol.for("v-fgt");
|
|
11499
|
-
const Text = Symbol.for("v-txt");
|
|
11500
|
-
const Comment = Symbol.for("v-cmt");
|
|
11501
|
-
const Static = Symbol.for("v-stc");
|
|
11546
|
+
const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
|
|
11547
|
+
const Text = /* @__PURE__ */ Symbol.for("v-txt");
|
|
11548
|
+
const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
|
|
11549
|
+
const Static = /* @__PURE__ */ Symbol.for("v-stc");
|
|
11502
11550
|
const blockStack = [];
|
|
11503
11551
|
let currentBlock = null;
|
|
11504
11552
|
function openBlock(disableTracking = false) {
|
|
@@ -12578,7 +12626,7 @@ function isMemoSame(cached, memo) {
|
|
|
12578
12626
|
return true;
|
|
12579
12627
|
}
|
|
12580
12628
|
|
|
12581
|
-
const version = "3.5.
|
|
12629
|
+
const version = "3.5.27";
|
|
12582
12630
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
12583
12631
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
12584
12632
|
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
|
|
@@ -12690,7 +12738,7 @@ const nodeOps = {
|
|
|
12690
12738
|
|
|
12691
12739
|
const TRANSITION$1 = "transition";
|
|
12692
12740
|
const ANIMATION = "animation";
|
|
12693
|
-
const vtcKey = Symbol("_vtc");
|
|
12741
|
+
const vtcKey = /* @__PURE__ */ Symbol("_vtc");
|
|
12694
12742
|
const DOMTransitionPropsValidators = {
|
|
12695
12743
|
name: String,
|
|
12696
12744
|
type: String,
|
|
@@ -13020,8 +13068,8 @@ function patchClass(el, value, isSVG) {
|
|
|
13020
13068
|
}
|
|
13021
13069
|
}
|
|
13022
13070
|
|
|
13023
|
-
const vShowOriginalDisplay = Symbol("_vod");
|
|
13024
|
-
const vShowHidden = Symbol("_vsh");
|
|
13071
|
+
const vShowOriginalDisplay = /* @__PURE__ */ Symbol("_vod");
|
|
13072
|
+
const vShowHidden = /* @__PURE__ */ Symbol("_vsh");
|
|
13025
13073
|
const vShow = {
|
|
13026
13074
|
// used for prop mismatch check during hydration
|
|
13027
13075
|
name: "show",
|
|
@@ -13070,7 +13118,7 @@ function initVShowForSSR() {
|
|
|
13070
13118
|
};
|
|
13071
13119
|
}
|
|
13072
13120
|
|
|
13073
|
-
const CSS_VAR_TEXT = Symbol(!!(process.env.NODE_ENV !== "production") ? "CSS_VAR_TEXT" : "");
|
|
13121
|
+
const CSS_VAR_TEXT = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? "CSS_VAR_TEXT" : "");
|
|
13074
13122
|
function useCssVars(getter) {
|
|
13075
13123
|
const instance = getCurrentInstance();
|
|
13076
13124
|
if (!instance) {
|
|
@@ -13268,7 +13316,7 @@ function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBoolean
|
|
|
13268
13316
|
const isEnumeratedAttr = /* @__PURE__ */ makeMap("contenteditable,draggable,spellcheck") ;
|
|
13269
13317
|
function compatCoerceAttr(el, key, value, instance = null) {
|
|
13270
13318
|
if (isEnumeratedAttr(key)) {
|
|
13271
|
-
const v2CoercedValue = value ===
|
|
13319
|
+
const v2CoercedValue = value === void 0 ? null : value === null || value === false || value === "false" ? "false" : "true";
|
|
13272
13320
|
if (v2CoercedValue && compatUtils.softAssertCompatEnabled(
|
|
13273
13321
|
"ATTR_ENUMERATED_COERCION",
|
|
13274
13322
|
instance,
|
|
@@ -13364,7 +13412,7 @@ function addEventListener(el, event, handler, options) {
|
|
|
13364
13412
|
function removeEventListener(el, event, handler, options) {
|
|
13365
13413
|
el.removeEventListener(event, handler, options);
|
|
13366
13414
|
}
|
|
13367
|
-
const veiKey = Symbol("_vei");
|
|
13415
|
+
const veiKey = /* @__PURE__ */ Symbol("_vei");
|
|
13368
13416
|
function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
|
|
13369
13417
|
const invokers = el[veiKey] || (el[veiKey] = {});
|
|
13370
13418
|
const existingInvoker = invokers[rawName];
|
|
@@ -14002,8 +14050,8 @@ function useCssModule(name = "$style") {
|
|
|
14002
14050
|
|
|
14003
14051
|
const positionMap = /* @__PURE__ */ new WeakMap();
|
|
14004
14052
|
const newPositionMap = /* @__PURE__ */ new WeakMap();
|
|
14005
|
-
const moveCbKey = Symbol("_moveCb");
|
|
14006
|
-
const enterCbKey = Symbol("_enterCb");
|
|
14053
|
+
const moveCbKey = /* @__PURE__ */ Symbol("_moveCb");
|
|
14054
|
+
const enterCbKey = /* @__PURE__ */ Symbol("_enterCb");
|
|
14007
14055
|
const decorate = (t) => {
|
|
14008
14056
|
delete t.props.mode;
|
|
14009
14057
|
{
|
|
@@ -14165,7 +14213,7 @@ function onCompositionEnd(e) {
|
|
|
14165
14213
|
target.dispatchEvent(new Event("input"));
|
|
14166
14214
|
}
|
|
14167
14215
|
}
|
|
14168
|
-
const assignKey = Symbol("_assign");
|
|
14216
|
+
const assignKey = /* @__PURE__ */ Symbol("_assign");
|
|
14169
14217
|
function castValue(value, trim, number) {
|
|
14170
14218
|
if (trim) value = value.trim();
|
|
14171
14219
|
if (number) value = looseToNumber(value);
|
|
@@ -14854,81 +14902,81 @@ function createCompatVue() {
|
|
|
14854
14902
|
return Vue;
|
|
14855
14903
|
}
|
|
14856
14904
|
|
|
14857
|
-
const FRAGMENT = Symbol(!!(process.env.NODE_ENV !== "production") ? `Fragment` : ``);
|
|
14858
|
-
const TELEPORT = Symbol(!!(process.env.NODE_ENV !== "production") ? `Teleport` : ``);
|
|
14859
|
-
const SUSPENSE = Symbol(!!(process.env.NODE_ENV !== "production") ? `Suspense` : ``);
|
|
14860
|
-
const KEEP_ALIVE = Symbol(!!(process.env.NODE_ENV !== "production") ? `KeepAlive` : ``);
|
|
14861
|
-
const BASE_TRANSITION = Symbol(
|
|
14905
|
+
const FRAGMENT = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `Fragment` : ``);
|
|
14906
|
+
const TELEPORT = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `Teleport` : ``);
|
|
14907
|
+
const SUSPENSE = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `Suspense` : ``);
|
|
14908
|
+
const KEEP_ALIVE = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `KeepAlive` : ``);
|
|
14909
|
+
const BASE_TRANSITION = /* @__PURE__ */ Symbol(
|
|
14862
14910
|
!!(process.env.NODE_ENV !== "production") ? `BaseTransition` : ``
|
|
14863
14911
|
);
|
|
14864
|
-
const OPEN_BLOCK = Symbol(!!(process.env.NODE_ENV !== "production") ? `openBlock` : ``);
|
|
14865
|
-
const CREATE_BLOCK = Symbol(!!(process.env.NODE_ENV !== "production") ? `createBlock` : ``);
|
|
14866
|
-
const CREATE_ELEMENT_BLOCK = Symbol(
|
|
14912
|
+
const OPEN_BLOCK = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `openBlock` : ``);
|
|
14913
|
+
const CREATE_BLOCK = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `createBlock` : ``);
|
|
14914
|
+
const CREATE_ELEMENT_BLOCK = /* @__PURE__ */ Symbol(
|
|
14867
14915
|
!!(process.env.NODE_ENV !== "production") ? `createElementBlock` : ``
|
|
14868
14916
|
);
|
|
14869
|
-
const CREATE_VNODE = Symbol(!!(process.env.NODE_ENV !== "production") ? `createVNode` : ``);
|
|
14870
|
-
const CREATE_ELEMENT_VNODE = Symbol(
|
|
14917
|
+
const CREATE_VNODE = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `createVNode` : ``);
|
|
14918
|
+
const CREATE_ELEMENT_VNODE = /* @__PURE__ */ Symbol(
|
|
14871
14919
|
!!(process.env.NODE_ENV !== "production") ? `createElementVNode` : ``
|
|
14872
14920
|
);
|
|
14873
|
-
const CREATE_COMMENT = Symbol(
|
|
14921
|
+
const CREATE_COMMENT = /* @__PURE__ */ Symbol(
|
|
14874
14922
|
!!(process.env.NODE_ENV !== "production") ? `createCommentVNode` : ``
|
|
14875
14923
|
);
|
|
14876
|
-
const CREATE_TEXT = Symbol(
|
|
14924
|
+
const CREATE_TEXT = /* @__PURE__ */ Symbol(
|
|
14877
14925
|
!!(process.env.NODE_ENV !== "production") ? `createTextVNode` : ``
|
|
14878
14926
|
);
|
|
14879
|
-
const CREATE_STATIC = Symbol(
|
|
14927
|
+
const CREATE_STATIC = /* @__PURE__ */ Symbol(
|
|
14880
14928
|
!!(process.env.NODE_ENV !== "production") ? `createStaticVNode` : ``
|
|
14881
14929
|
);
|
|
14882
|
-
const RESOLVE_COMPONENT = Symbol(
|
|
14930
|
+
const RESOLVE_COMPONENT = /* @__PURE__ */ Symbol(
|
|
14883
14931
|
!!(process.env.NODE_ENV !== "production") ? `resolveComponent` : ``
|
|
14884
14932
|
);
|
|
14885
|
-
const RESOLVE_DYNAMIC_COMPONENT = Symbol(
|
|
14933
|
+
const RESOLVE_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol(
|
|
14886
14934
|
!!(process.env.NODE_ENV !== "production") ? `resolveDynamicComponent` : ``
|
|
14887
14935
|
);
|
|
14888
|
-
const RESOLVE_DIRECTIVE = Symbol(
|
|
14936
|
+
const RESOLVE_DIRECTIVE = /* @__PURE__ */ Symbol(
|
|
14889
14937
|
!!(process.env.NODE_ENV !== "production") ? `resolveDirective` : ``
|
|
14890
14938
|
);
|
|
14891
|
-
const RESOLVE_FILTER = Symbol(
|
|
14939
|
+
const RESOLVE_FILTER = /* @__PURE__ */ Symbol(
|
|
14892
14940
|
!!(process.env.NODE_ENV !== "production") ? `resolveFilter` : ``
|
|
14893
14941
|
);
|
|
14894
|
-
const WITH_DIRECTIVES = Symbol(
|
|
14942
|
+
const WITH_DIRECTIVES = /* @__PURE__ */ Symbol(
|
|
14895
14943
|
!!(process.env.NODE_ENV !== "production") ? `withDirectives` : ``
|
|
14896
14944
|
);
|
|
14897
|
-
const RENDER_LIST = Symbol(!!(process.env.NODE_ENV !== "production") ? `renderList` : ``);
|
|
14898
|
-
const RENDER_SLOT = Symbol(!!(process.env.NODE_ENV !== "production") ? `renderSlot` : ``);
|
|
14899
|
-
const CREATE_SLOTS = Symbol(!!(process.env.NODE_ENV !== "production") ? `createSlots` : ``);
|
|
14900
|
-
const TO_DISPLAY_STRING = Symbol(
|
|
14945
|
+
const RENDER_LIST = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `renderList` : ``);
|
|
14946
|
+
const RENDER_SLOT = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `renderSlot` : ``);
|
|
14947
|
+
const CREATE_SLOTS = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `createSlots` : ``);
|
|
14948
|
+
const TO_DISPLAY_STRING = /* @__PURE__ */ Symbol(
|
|
14901
14949
|
!!(process.env.NODE_ENV !== "production") ? `toDisplayString` : ``
|
|
14902
14950
|
);
|
|
14903
|
-
const MERGE_PROPS = Symbol(!!(process.env.NODE_ENV !== "production") ? `mergeProps` : ``);
|
|
14904
|
-
const NORMALIZE_CLASS = Symbol(
|
|
14951
|
+
const MERGE_PROPS = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `mergeProps` : ``);
|
|
14952
|
+
const NORMALIZE_CLASS = /* @__PURE__ */ Symbol(
|
|
14905
14953
|
!!(process.env.NODE_ENV !== "production") ? `normalizeClass` : ``
|
|
14906
14954
|
);
|
|
14907
|
-
const NORMALIZE_STYLE = Symbol(
|
|
14955
|
+
const NORMALIZE_STYLE = /* @__PURE__ */ Symbol(
|
|
14908
14956
|
!!(process.env.NODE_ENV !== "production") ? `normalizeStyle` : ``
|
|
14909
14957
|
);
|
|
14910
|
-
const NORMALIZE_PROPS = Symbol(
|
|
14958
|
+
const NORMALIZE_PROPS = /* @__PURE__ */ Symbol(
|
|
14911
14959
|
!!(process.env.NODE_ENV !== "production") ? `normalizeProps` : ``
|
|
14912
14960
|
);
|
|
14913
|
-
const GUARD_REACTIVE_PROPS = Symbol(
|
|
14961
|
+
const GUARD_REACTIVE_PROPS = /* @__PURE__ */ Symbol(
|
|
14914
14962
|
!!(process.env.NODE_ENV !== "production") ? `guardReactiveProps` : ``
|
|
14915
14963
|
);
|
|
14916
|
-
const TO_HANDLERS = Symbol(!!(process.env.NODE_ENV !== "production") ? `toHandlers` : ``);
|
|
14917
|
-
const CAMELIZE = Symbol(!!(process.env.NODE_ENV !== "production") ? `camelize` : ``);
|
|
14918
|
-
const CAPITALIZE = Symbol(!!(process.env.NODE_ENV !== "production") ? `capitalize` : ``);
|
|
14919
|
-
const TO_HANDLER_KEY = Symbol(
|
|
14964
|
+
const TO_HANDLERS = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `toHandlers` : ``);
|
|
14965
|
+
const CAMELIZE = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `camelize` : ``);
|
|
14966
|
+
const CAPITALIZE = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `capitalize` : ``);
|
|
14967
|
+
const TO_HANDLER_KEY = /* @__PURE__ */ Symbol(
|
|
14920
14968
|
!!(process.env.NODE_ENV !== "production") ? `toHandlerKey` : ``
|
|
14921
14969
|
);
|
|
14922
|
-
const SET_BLOCK_TRACKING = Symbol(
|
|
14970
|
+
const SET_BLOCK_TRACKING = /* @__PURE__ */ Symbol(
|
|
14923
14971
|
!!(process.env.NODE_ENV !== "production") ? `setBlockTracking` : ``
|
|
14924
14972
|
);
|
|
14925
|
-
const PUSH_SCOPE_ID = Symbol(!!(process.env.NODE_ENV !== "production") ? `pushScopeId` : ``);
|
|
14926
|
-
const POP_SCOPE_ID = Symbol(!!(process.env.NODE_ENV !== "production") ? `popScopeId` : ``);
|
|
14927
|
-
const WITH_CTX = Symbol(!!(process.env.NODE_ENV !== "production") ? `withCtx` : ``);
|
|
14928
|
-
const UNREF = Symbol(!!(process.env.NODE_ENV !== "production") ? `unref` : ``);
|
|
14929
|
-
const IS_REF = Symbol(!!(process.env.NODE_ENV !== "production") ? `isRef` : ``);
|
|
14930
|
-
const WITH_MEMO = Symbol(!!(process.env.NODE_ENV !== "production") ? `withMemo` : ``);
|
|
14931
|
-
const IS_MEMO_SAME = Symbol(!!(process.env.NODE_ENV !== "production") ? `isMemoSame` : ``);
|
|
14973
|
+
const PUSH_SCOPE_ID = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `pushScopeId` : ``);
|
|
14974
|
+
const POP_SCOPE_ID = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `popScopeId` : ``);
|
|
14975
|
+
const WITH_CTX = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `withCtx` : ``);
|
|
14976
|
+
const UNREF = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `unref` : ``);
|
|
14977
|
+
const IS_REF = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `isRef` : ``);
|
|
14978
|
+
const WITH_MEMO = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `withMemo` : ``);
|
|
14979
|
+
const IS_MEMO_SAME = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `isMemoSame` : ``);
|
|
14932
14980
|
const helperNameMap = {
|
|
14933
14981
|
[FRAGMENT]: `Fragment`,
|
|
14934
14982
|
[TELEPORT]: `Teleport`,
|
|
@@ -15223,14 +15271,28 @@ class Tokenizer {
|
|
|
15223
15271
|
getPos(index) {
|
|
15224
15272
|
let line = 1;
|
|
15225
15273
|
let column = index + 1;
|
|
15226
|
-
|
|
15227
|
-
|
|
15228
|
-
|
|
15229
|
-
|
|
15230
|
-
|
|
15231
|
-
|
|
15274
|
+
const length = this.newlines.length;
|
|
15275
|
+
let j = -1;
|
|
15276
|
+
if (length > 100) {
|
|
15277
|
+
let l = -1;
|
|
15278
|
+
let r = length;
|
|
15279
|
+
while (l + 1 < r) {
|
|
15280
|
+
const m = l + r >>> 1;
|
|
15281
|
+
this.newlines[m] < index ? l = m : r = m;
|
|
15282
|
+
}
|
|
15283
|
+
j = l;
|
|
15284
|
+
} else {
|
|
15285
|
+
for (let i = length - 1; i >= 0; i--) {
|
|
15286
|
+
if (index > this.newlines[i]) {
|
|
15287
|
+
j = i;
|
|
15288
|
+
break;
|
|
15289
|
+
}
|
|
15232
15290
|
}
|
|
15233
15291
|
}
|
|
15292
|
+
if (j >= 0) {
|
|
15293
|
+
line = j + 2;
|
|
15294
|
+
column = index - this.newlines[j];
|
|
15295
|
+
}
|
|
15234
15296
|
return {
|
|
15235
15297
|
column,
|
|
15236
15298
|
line,
|
|
@@ -16045,7 +16107,7 @@ const errorMessages = {
|
|
|
16045
16107
|
[32]: `v-for has invalid expression.`,
|
|
16046
16108
|
[33]: `<template v-for> key should be placed on the <template> tag.`,
|
|
16047
16109
|
[34]: `v-bind is missing expression.`,
|
|
16048
|
-
[
|
|
16110
|
+
[53]: `v-bind with same-name shorthand only allows static argument.`,
|
|
16049
16111
|
[35]: `v-on is missing expression.`,
|
|
16050
16112
|
[36]: `Unexpected custom directive on <slot> outlet.`,
|
|
16051
16113
|
[37]: `Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.`,
|
|
@@ -16057,16 +16119,17 @@ const errorMessages = {
|
|
|
16057
16119
|
[43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
|
|
16058
16120
|
[44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
|
|
16059
16121
|
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
|
|
16060
|
-
[45]: `
|
|
16061
|
-
[46]:
|
|
16062
|
-
[
|
|
16122
|
+
[45]: `v-model cannot be used on a const binding because it is not writable.`,
|
|
16123
|
+
[46]: `Error parsing JavaScript expression: `,
|
|
16124
|
+
[47]: `<KeepAlive> expects exactly one child component.`,
|
|
16125
|
+
[52]: `@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.`,
|
|
16063
16126
|
// generic errors
|
|
16064
|
-
[
|
|
16065
|
-
[
|
|
16066
|
-
[
|
|
16067
|
-
[
|
|
16127
|
+
[48]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
|
|
16128
|
+
[49]: `ES module mode is not supported in this build of compiler.`,
|
|
16129
|
+
[50]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
|
|
16130
|
+
[51]: `"scopeId" option is only supported in module mode.`,
|
|
16068
16131
|
// just to fulfill types
|
|
16069
|
-
[
|
|
16132
|
+
[54]: ``
|
|
16070
16133
|
};
|
|
16071
16134
|
|
|
16072
16135
|
const isStaticExp = (p) => p.type === 4 && p.isStatic;
|
|
@@ -18255,7 +18318,7 @@ function validateBrowserExpression(node, context, asParams = false, asRawStateme
|
|
|
18255
18318
|
}
|
|
18256
18319
|
context.onError(
|
|
18257
18320
|
createCompilerError(
|
|
18258
|
-
|
|
18321
|
+
46,
|
|
18259
18322
|
node.loc,
|
|
18260
18323
|
void 0,
|
|
18261
18324
|
message
|
|
@@ -19021,7 +19084,7 @@ const transformElement = (node, context) => {
|
|
|
19021
19084
|
patchFlag |= 1024;
|
|
19022
19085
|
if (!!(process.env.NODE_ENV !== "production") && node.children.length > 1) {
|
|
19023
19086
|
context.onError(
|
|
19024
|
-
createCompilerError(
|
|
19087
|
+
createCompilerError(47, {
|
|
19025
19088
|
start: node.children[0].loc.start,
|
|
19026
19089
|
end: node.children[node.children.length - 1].loc.end,
|
|
19027
19090
|
source: ""
|
|
@@ -19608,7 +19671,7 @@ const transformOn$1 = (dir, node, context, augmentor) => {
|
|
|
19608
19671
|
if (arg.isStatic) {
|
|
19609
19672
|
let rawName = arg.content;
|
|
19610
19673
|
if (!!(process.env.NODE_ENV !== "production") && rawName.startsWith("vnode")) {
|
|
19611
|
-
context.onError(createCompilerError(
|
|
19674
|
+
context.onError(createCompilerError(52, arg.loc));
|
|
19612
19675
|
}
|
|
19613
19676
|
if (rawName.startsWith("vue:")) {
|
|
19614
19677
|
rawName = `vnode-${rawName.slice(4)}`;
|
|
@@ -19841,6 +19904,10 @@ const transformModel$1 = (dir, node, context) => {
|
|
|
19841
19904
|
context.onError(createCompilerError(44, exp.loc));
|
|
19842
19905
|
return createTransformProps();
|
|
19843
19906
|
}
|
|
19907
|
+
if (bindingType === "literal-const" || bindingType === "setup-const") {
|
|
19908
|
+
context.onError(createCompilerError(45, exp.loc));
|
|
19909
|
+
return createTransformProps();
|
|
19910
|
+
}
|
|
19844
19911
|
if (!expString.trim() || !isMemberExpression(exp) && true) {
|
|
19845
19912
|
context.onError(
|
|
19846
19913
|
createCompilerError(42, exp.loc)
|
|
@@ -20069,7 +20136,7 @@ const transformVBindShorthand = (node, context) => {
|
|
|
20069
20136
|
if (arg.type !== 4 || !arg.isStatic) {
|
|
20070
20137
|
context.onError(
|
|
20071
20138
|
createCompilerError(
|
|
20072
|
-
|
|
20139
|
+
53,
|
|
20073
20140
|
arg.loc
|
|
20074
20141
|
)
|
|
20075
20142
|
);
|
|
@@ -20113,17 +20180,17 @@ function baseCompile(source, options = {}) {
|
|
|
20113
20180
|
const isModuleMode = options.mode === "module";
|
|
20114
20181
|
{
|
|
20115
20182
|
if (options.prefixIdentifiers === true) {
|
|
20116
|
-
onError(createCompilerError(47));
|
|
20117
|
-
} else if (isModuleMode) {
|
|
20118
20183
|
onError(createCompilerError(48));
|
|
20184
|
+
} else if (isModuleMode) {
|
|
20185
|
+
onError(createCompilerError(49));
|
|
20119
20186
|
}
|
|
20120
20187
|
}
|
|
20121
20188
|
const prefixIdentifiers = false;
|
|
20122
20189
|
if (options.cacheHandlers) {
|
|
20123
|
-
onError(createCompilerError(
|
|
20190
|
+
onError(createCompilerError(50));
|
|
20124
20191
|
}
|
|
20125
20192
|
if (options.scopeId && !isModuleMode) {
|
|
20126
|
-
onError(createCompilerError(
|
|
20193
|
+
onError(createCompilerError(51));
|
|
20127
20194
|
}
|
|
20128
20195
|
const resolvedOptions = extend({}, options, {
|
|
20129
20196
|
prefixIdentifiers
|
|
@@ -20151,26 +20218,26 @@ function baseCompile(source, options = {}) {
|
|
|
20151
20218
|
|
|
20152
20219
|
const noopDirectiveTransform = () => ({ props: [] });
|
|
20153
20220
|
|
|
20154
|
-
const V_MODEL_RADIO = Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelRadio` : ``);
|
|
20155
|
-
const V_MODEL_CHECKBOX = Symbol(
|
|
20221
|
+
const V_MODEL_RADIO = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelRadio` : ``);
|
|
20222
|
+
const V_MODEL_CHECKBOX = /* @__PURE__ */ Symbol(
|
|
20156
20223
|
!!(process.env.NODE_ENV !== "production") ? `vModelCheckbox` : ``
|
|
20157
20224
|
);
|
|
20158
|
-
const V_MODEL_TEXT = Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelText` : ``);
|
|
20159
|
-
const V_MODEL_SELECT = Symbol(
|
|
20225
|
+
const V_MODEL_TEXT = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelText` : ``);
|
|
20226
|
+
const V_MODEL_SELECT = /* @__PURE__ */ Symbol(
|
|
20160
20227
|
!!(process.env.NODE_ENV !== "production") ? `vModelSelect` : ``
|
|
20161
20228
|
);
|
|
20162
|
-
const V_MODEL_DYNAMIC = Symbol(
|
|
20229
|
+
const V_MODEL_DYNAMIC = /* @__PURE__ */ Symbol(
|
|
20163
20230
|
!!(process.env.NODE_ENV !== "production") ? `vModelDynamic` : ``
|
|
20164
20231
|
);
|
|
20165
|
-
const V_ON_WITH_MODIFIERS = Symbol(
|
|
20232
|
+
const V_ON_WITH_MODIFIERS = /* @__PURE__ */ Symbol(
|
|
20166
20233
|
!!(process.env.NODE_ENV !== "production") ? `vOnModifiersGuard` : ``
|
|
20167
20234
|
);
|
|
20168
|
-
const V_ON_WITH_KEYS = Symbol(
|
|
20235
|
+
const V_ON_WITH_KEYS = /* @__PURE__ */ Symbol(
|
|
20169
20236
|
!!(process.env.NODE_ENV !== "production") ? `vOnKeysGuard` : ``
|
|
20170
20237
|
);
|
|
20171
|
-
const V_SHOW = Symbol(!!(process.env.NODE_ENV !== "production") ? `vShow` : ``);
|
|
20172
|
-
const TRANSITION = Symbol(!!(process.env.NODE_ENV !== "production") ? `Transition` : ``);
|
|
20173
|
-
const TRANSITION_GROUP = Symbol(
|
|
20238
|
+
const V_SHOW = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `vShow` : ``);
|
|
20239
|
+
const TRANSITION = /* @__PURE__ */ Symbol(!!(process.env.NODE_ENV !== "production") ? `Transition` : ``);
|
|
20240
|
+
const TRANSITION_GROUP = /* @__PURE__ */ Symbol(
|
|
20174
20241
|
!!(process.env.NODE_ENV !== "production") ? `TransitionGroup` : ``
|
|
20175
20242
|
);
|
|
20176
20243
|
registerRuntimeHelpers({
|
|
@@ -20281,29 +20348,29 @@ function createDOMCompilerError(code, loc) {
|
|
|
20281
20348
|
);
|
|
20282
20349
|
}
|
|
20283
20350
|
const DOMErrorMessages = {
|
|
20284
|
-
[
|
|
20285
|
-
[
|
|
20286
|
-
[
|
|
20287
|
-
[
|
|
20288
|
-
[
|
|
20289
|
-
[
|
|
20290
|
-
[
|
|
20291
|
-
[
|
|
20292
|
-
[
|
|
20293
|
-
[
|
|
20294
|
-
[
|
|
20351
|
+
[54]: `v-html is missing expression.`,
|
|
20352
|
+
[55]: `v-html will override element children.`,
|
|
20353
|
+
[56]: `v-text is missing expression.`,
|
|
20354
|
+
[57]: `v-text will override element children.`,
|
|
20355
|
+
[58]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
|
|
20356
|
+
[59]: `v-model argument is not supported on plain elements.`,
|
|
20357
|
+
[60]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
|
|
20358
|
+
[61]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
|
|
20359
|
+
[62]: `v-show is missing expression.`,
|
|
20360
|
+
[63]: `<Transition> expects exactly one child element or component.`,
|
|
20361
|
+
[64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
|
|
20295
20362
|
};
|
|
20296
20363
|
|
|
20297
20364
|
const transformVHtml = (dir, node, context) => {
|
|
20298
20365
|
const { exp, loc } = dir;
|
|
20299
20366
|
if (!exp) {
|
|
20300
20367
|
context.onError(
|
|
20301
|
-
createDOMCompilerError(
|
|
20368
|
+
createDOMCompilerError(54, loc)
|
|
20302
20369
|
);
|
|
20303
20370
|
}
|
|
20304
20371
|
if (node.children.length) {
|
|
20305
20372
|
context.onError(
|
|
20306
|
-
createDOMCompilerError(
|
|
20373
|
+
createDOMCompilerError(55, loc)
|
|
20307
20374
|
);
|
|
20308
20375
|
node.children.length = 0;
|
|
20309
20376
|
}
|
|
@@ -20321,12 +20388,12 @@ const transformVText = (dir, node, context) => {
|
|
|
20321
20388
|
const { exp, loc } = dir;
|
|
20322
20389
|
if (!exp) {
|
|
20323
20390
|
context.onError(
|
|
20324
|
-
createDOMCompilerError(
|
|
20391
|
+
createDOMCompilerError(56, loc)
|
|
20325
20392
|
);
|
|
20326
20393
|
}
|
|
20327
20394
|
if (node.children.length) {
|
|
20328
20395
|
context.onError(
|
|
20329
|
-
createDOMCompilerError(
|
|
20396
|
+
createDOMCompilerError(57, loc)
|
|
20330
20397
|
);
|
|
20331
20398
|
node.children.length = 0;
|
|
20332
20399
|
}
|
|
@@ -20352,7 +20419,7 @@ const transformModel = (dir, node, context) => {
|
|
|
20352
20419
|
if (dir.arg) {
|
|
20353
20420
|
context.onError(
|
|
20354
20421
|
createDOMCompilerError(
|
|
20355
|
-
|
|
20422
|
+
59,
|
|
20356
20423
|
dir.arg.loc
|
|
20357
20424
|
)
|
|
20358
20425
|
);
|
|
@@ -20362,7 +20429,7 @@ const transformModel = (dir, node, context) => {
|
|
|
20362
20429
|
if (value && isStaticArgOf(value.arg, "value")) {
|
|
20363
20430
|
context.onError(
|
|
20364
20431
|
createDOMCompilerError(
|
|
20365
|
-
|
|
20432
|
+
61,
|
|
20366
20433
|
value.loc
|
|
20367
20434
|
)
|
|
20368
20435
|
);
|
|
@@ -20390,7 +20457,7 @@ const transformModel = (dir, node, context) => {
|
|
|
20390
20457
|
isInvalidType = true;
|
|
20391
20458
|
context.onError(
|
|
20392
20459
|
createDOMCompilerError(
|
|
20393
|
-
|
|
20460
|
+
60,
|
|
20394
20461
|
dir.loc
|
|
20395
20462
|
)
|
|
20396
20463
|
);
|
|
@@ -20416,7 +20483,7 @@ const transformModel = (dir, node, context) => {
|
|
|
20416
20483
|
} else {
|
|
20417
20484
|
context.onError(
|
|
20418
20485
|
createDOMCompilerError(
|
|
20419
|
-
|
|
20486
|
+
58,
|
|
20420
20487
|
dir.loc
|
|
20421
20488
|
)
|
|
20422
20489
|
);
|
|
@@ -20524,7 +20591,7 @@ const transformShow = (dir, node, context) => {
|
|
|
20524
20591
|
const { exp, loc } = dir;
|
|
20525
20592
|
if (!exp) {
|
|
20526
20593
|
context.onError(
|
|
20527
|
-
createDOMCompilerError(
|
|
20594
|
+
createDOMCompilerError(62, loc)
|
|
20528
20595
|
);
|
|
20529
20596
|
}
|
|
20530
20597
|
return {
|
|
@@ -20544,7 +20611,7 @@ const transformTransition = (node, context) => {
|
|
|
20544
20611
|
if (hasMultipleChildren(node)) {
|
|
20545
20612
|
context.onError(
|
|
20546
20613
|
createDOMCompilerError(
|
|
20547
|
-
|
|
20614
|
+
63,
|
|
20548
20615
|
{
|
|
20549
20616
|
start: node.children[0].loc.start,
|
|
20550
20617
|
end: node.children[node.children.length - 1].loc.end,
|
|
@@ -20583,7 +20650,7 @@ const ignoreSideEffectTags = (node, context) => {
|
|
|
20583
20650
|
if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
|
|
20584
20651
|
!!(process.env.NODE_ENV !== "production") && context.onError(
|
|
20585
20652
|
createDOMCompilerError(
|
|
20586
|
-
|
|
20653
|
+
64,
|
|
20587
20654
|
node.loc
|
|
20588
20655
|
)
|
|
20589
20656
|
);
|