@vue/compat 3.2.45 → 3.2.47
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/vue.cjs.js +602 -524
- package/dist/vue.cjs.prod.js +421 -339
- package/dist/vue.esm-browser.js +609 -528
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.esm-bundler.js +613 -533
- package/dist/vue.global.js +603 -522
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +440 -364
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.esm-bundler.js +444 -369
- package/dist/vue.runtime.global.js +434 -358
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +2 -2
|
@@ -99,7 +99,7 @@ var Vue = (function () {
|
|
|
99
99
|
// These tag configs are shared between compiler-dom and runtime-dom, so they
|
|
100
100
|
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element
|
|
101
101
|
const HTML_TAGS = 'html,body,base,head,link,meta,style,title,address,article,aside,footer,' +
|
|
102
|
-
'header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,' +
|
|
102
|
+
'header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,' +
|
|
103
103
|
'figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,' +
|
|
104
104
|
'data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,' +
|
|
105
105
|
'time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,' +
|
|
@@ -111,7 +111,7 @@ var Vue = (function () {
|
|
|
111
111
|
const SVG_TAGS = 'svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,' +
|
|
112
112
|
'defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,' +
|
|
113
113
|
'feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,' +
|
|
114
|
-
'
|
|
114
|
+
'feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,' +
|
|
115
115
|
'feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,' +
|
|
116
116
|
'fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,' +
|
|
117
117
|
'foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,' +
|
|
@@ -262,12 +262,13 @@ var Vue = (function () {
|
|
|
262
262
|
arr.splice(i, 1);
|
|
263
263
|
}
|
|
264
264
|
};
|
|
265
|
-
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
266
|
-
const hasOwn = (val, key) => hasOwnProperty.call(val, key);
|
|
265
|
+
const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
266
|
+
const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
|
|
267
267
|
const isArray = Array.isArray;
|
|
268
268
|
const isMap = (val) => toTypeString(val) === '[object Map]';
|
|
269
269
|
const isSet = (val) => toTypeString(val) === '[object Set]';
|
|
270
270
|
const isDate = (val) => toTypeString(val) === '[object Date]';
|
|
271
|
+
const isRegExp = (val) => toTypeString(val) === '[object RegExp]';
|
|
271
272
|
const isFunction = (val) => typeof val === 'function';
|
|
272
273
|
const isString = (val) => typeof val === 'string';
|
|
273
274
|
const isSymbol = (val) => typeof val === 'symbol';
|
|
@@ -334,10 +335,22 @@ var Vue = (function () {
|
|
|
334
335
|
value
|
|
335
336
|
});
|
|
336
337
|
};
|
|
337
|
-
|
|
338
|
+
/**
|
|
339
|
+
* "123-foo" will be parsed to 123
|
|
340
|
+
* This is used for the .number modifier in v-model
|
|
341
|
+
*/
|
|
342
|
+
const looseToNumber = (val) => {
|
|
338
343
|
const n = parseFloat(val);
|
|
339
344
|
return isNaN(n) ? val : n;
|
|
340
345
|
};
|
|
346
|
+
/**
|
|
347
|
+
* Only conerces number-like strings
|
|
348
|
+
* "123-foo" will be returned as-is
|
|
349
|
+
*/
|
|
350
|
+
const toNumber = (val) => {
|
|
351
|
+
const n = isString(val) ? Number(val) : NaN;
|
|
352
|
+
return isNaN(n) ? val : n;
|
|
353
|
+
};
|
|
341
354
|
let _globalThis;
|
|
342
355
|
const getGlobalThis = () => {
|
|
343
356
|
return (_globalThis ||
|
|
@@ -353,7 +366,7 @@ var Vue = (function () {
|
|
|
353
366
|
: {}));
|
|
354
367
|
};
|
|
355
368
|
|
|
356
|
-
function warn(msg, ...args) {
|
|
369
|
+
function warn$1(msg, ...args) {
|
|
357
370
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
358
371
|
}
|
|
359
372
|
|
|
@@ -364,7 +377,7 @@ var Vue = (function () {
|
|
|
364
377
|
/**
|
|
365
378
|
* @internal
|
|
366
379
|
*/
|
|
367
|
-
this.
|
|
380
|
+
this._active = true;
|
|
368
381
|
/**
|
|
369
382
|
* @internal
|
|
370
383
|
*/
|
|
@@ -379,8 +392,11 @@ var Vue = (function () {
|
|
|
379
392
|
(activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
|
|
380
393
|
}
|
|
381
394
|
}
|
|
395
|
+
get active() {
|
|
396
|
+
return this._active;
|
|
397
|
+
}
|
|
382
398
|
run(fn) {
|
|
383
|
-
if (this.
|
|
399
|
+
if (this._active) {
|
|
384
400
|
const currentEffectScope = activeEffectScope;
|
|
385
401
|
try {
|
|
386
402
|
activeEffectScope = this;
|
|
@@ -391,7 +407,7 @@ var Vue = (function () {
|
|
|
391
407
|
}
|
|
392
408
|
}
|
|
393
409
|
else {
|
|
394
|
-
warn(`cannot run an inactive effect scope.`);
|
|
410
|
+
warn$1(`cannot run an inactive effect scope.`);
|
|
395
411
|
}
|
|
396
412
|
}
|
|
397
413
|
/**
|
|
@@ -409,7 +425,7 @@ var Vue = (function () {
|
|
|
409
425
|
activeEffectScope = this.parent;
|
|
410
426
|
}
|
|
411
427
|
stop(fromParent) {
|
|
412
|
-
if (this.
|
|
428
|
+
if (this._active) {
|
|
413
429
|
let i, l;
|
|
414
430
|
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
415
431
|
this.effects[i].stop();
|
|
@@ -432,7 +448,7 @@ var Vue = (function () {
|
|
|
432
448
|
}
|
|
433
449
|
}
|
|
434
450
|
this.parent = undefined;
|
|
435
|
-
this.
|
|
451
|
+
this._active = false;
|
|
436
452
|
}
|
|
437
453
|
}
|
|
438
454
|
}
|
|
@@ -452,7 +468,7 @@ var Vue = (function () {
|
|
|
452
468
|
activeEffectScope.cleanups.push(fn);
|
|
453
469
|
}
|
|
454
470
|
else {
|
|
455
|
-
warn(`onScopeDispose() is called when there is no active effect scope` +
|
|
471
|
+
warn$1(`onScopeDispose() is called when there is no active effect scope` +
|
|
456
472
|
` to be associated with.`);
|
|
457
473
|
}
|
|
458
474
|
}
|
|
@@ -653,7 +669,7 @@ var Vue = (function () {
|
|
|
653
669
|
deps = [...depsMap.values()];
|
|
654
670
|
}
|
|
655
671
|
else if (key === 'length' && isArray(target)) {
|
|
656
|
-
const newLength =
|
|
672
|
+
const newLength = Number(newValue);
|
|
657
673
|
depsMap.forEach((dep, key) => {
|
|
658
674
|
if (key === 'length' || key >= newLength) {
|
|
659
675
|
deps.push(dep);
|
|
@@ -742,6 +758,10 @@ var Vue = (function () {
|
|
|
742
758
|
}
|
|
743
759
|
}
|
|
744
760
|
}
|
|
761
|
+
function getDepFromReactive(object, key) {
|
|
762
|
+
var _a;
|
|
763
|
+
return (_a = targetMap.get(object)) === null || _a === void 0 ? void 0 : _a.get(key);
|
|
764
|
+
}
|
|
745
765
|
|
|
746
766
|
const isNonTrackableKeys = /*#__PURE__*/ makeMap(`__proto__,__v_isRef,__isVue`);
|
|
747
767
|
const builtInSymbols = new Set(
|
|
@@ -753,7 +773,7 @@ var Vue = (function () {
|
|
|
753
773
|
.filter(key => key !== 'arguments' && key !== 'caller')
|
|
754
774
|
.map(key => Symbol[key])
|
|
755
775
|
.filter(isSymbol));
|
|
756
|
-
const get = /*#__PURE__*/ createGetter();
|
|
776
|
+
const get$1 = /*#__PURE__*/ createGetter();
|
|
757
777
|
const shallowGet = /*#__PURE__*/ createGetter(false, true);
|
|
758
778
|
const readonlyGet = /*#__PURE__*/ createGetter(true);
|
|
759
779
|
const shallowReadonlyGet = /*#__PURE__*/ createGetter(true, true);
|
|
@@ -787,6 +807,11 @@ var Vue = (function () {
|
|
|
787
807
|
});
|
|
788
808
|
return instrumentations;
|
|
789
809
|
}
|
|
810
|
+
function hasOwnProperty(key) {
|
|
811
|
+
const obj = toRaw(this);
|
|
812
|
+
track(obj, "has" /* TrackOpTypes.HAS */, key);
|
|
813
|
+
return obj.hasOwnProperty(key);
|
|
814
|
+
}
|
|
790
815
|
function createGetter(isReadonly = false, shallow = false) {
|
|
791
816
|
return function get(target, key, receiver) {
|
|
792
817
|
if (key === "__v_isReactive" /* ReactiveFlags.IS_REACTIVE */) {
|
|
@@ -810,8 +835,13 @@ var Vue = (function () {
|
|
|
810
835
|
return target;
|
|
811
836
|
}
|
|
812
837
|
const targetIsArray = isArray(target);
|
|
813
|
-
if (!isReadonly
|
|
814
|
-
|
|
838
|
+
if (!isReadonly) {
|
|
839
|
+
if (targetIsArray && hasOwn(arrayInstrumentations, key)) {
|
|
840
|
+
return Reflect.get(arrayInstrumentations, key, receiver);
|
|
841
|
+
}
|
|
842
|
+
if (key === 'hasOwnProperty') {
|
|
843
|
+
return hasOwnProperty;
|
|
844
|
+
}
|
|
815
845
|
}
|
|
816
846
|
const res = Reflect.get(target, key, receiver);
|
|
817
847
|
if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
|
|
@@ -836,7 +866,7 @@ var Vue = (function () {
|
|
|
836
866
|
return res;
|
|
837
867
|
};
|
|
838
868
|
}
|
|
839
|
-
const set = /*#__PURE__*/ createSetter();
|
|
869
|
+
const set$1 = /*#__PURE__*/ createSetter();
|
|
840
870
|
const shallowSet = /*#__PURE__*/ createSetter(true);
|
|
841
871
|
function createSetter(shallow = false) {
|
|
842
872
|
return function set(target, key, value, receiver) {
|
|
@@ -879,7 +909,7 @@ var Vue = (function () {
|
|
|
879
909
|
}
|
|
880
910
|
return result;
|
|
881
911
|
}
|
|
882
|
-
function has(target, key) {
|
|
912
|
+
function has$1(target, key) {
|
|
883
913
|
const result = Reflect.has(target, key);
|
|
884
914
|
if (!isSymbol(key) || !builtInSymbols.has(key)) {
|
|
885
915
|
track(target, "has" /* TrackOpTypes.HAS */, key);
|
|
@@ -891,23 +921,23 @@ var Vue = (function () {
|
|
|
891
921
|
return Reflect.ownKeys(target);
|
|
892
922
|
}
|
|
893
923
|
const mutableHandlers = {
|
|
894
|
-
get,
|
|
895
|
-
set,
|
|
924
|
+
get: get$1,
|
|
925
|
+
set: set$1,
|
|
896
926
|
deleteProperty,
|
|
897
|
-
has,
|
|
927
|
+
has: has$1,
|
|
898
928
|
ownKeys
|
|
899
929
|
};
|
|
900
930
|
const readonlyHandlers = {
|
|
901
931
|
get: readonlyGet,
|
|
902
932
|
set(target, key) {
|
|
903
933
|
{
|
|
904
|
-
warn(`Set operation on key "${String(key)}" failed: target is readonly.`, target);
|
|
934
|
+
warn$1(`Set operation on key "${String(key)}" failed: target is readonly.`, target);
|
|
905
935
|
}
|
|
906
936
|
return true;
|
|
907
937
|
},
|
|
908
938
|
deleteProperty(target, key) {
|
|
909
939
|
{
|
|
910
|
-
warn(`Delete operation on key "${String(key)}" failed: target is readonly.`, target);
|
|
940
|
+
warn$1(`Delete operation on key "${String(key)}" failed: target is readonly.`, target);
|
|
911
941
|
}
|
|
912
942
|
return true;
|
|
913
943
|
}
|
|
@@ -925,7 +955,7 @@ var Vue = (function () {
|
|
|
925
955
|
|
|
926
956
|
const toShallow = (value) => value;
|
|
927
957
|
const getProto = (v) => Reflect.getPrototypeOf(v);
|
|
928
|
-
function get
|
|
958
|
+
function get(target, key, isReadonly = false, isShallow = false) {
|
|
929
959
|
// #1772: readonly(reactive(Map)) should return readonly + reactive version
|
|
930
960
|
// of the value
|
|
931
961
|
target = target["__v_raw" /* ReactiveFlags.RAW */];
|
|
@@ -951,7 +981,7 @@ var Vue = (function () {
|
|
|
951
981
|
target.get(key);
|
|
952
982
|
}
|
|
953
983
|
}
|
|
954
|
-
function has
|
|
984
|
+
function has(key, isReadonly = false) {
|
|
955
985
|
const target = this["__v_raw" /* ReactiveFlags.RAW */];
|
|
956
986
|
const rawTarget = toRaw(target);
|
|
957
987
|
const rawKey = toRaw(key);
|
|
@@ -981,7 +1011,7 @@ var Vue = (function () {
|
|
|
981
1011
|
}
|
|
982
1012
|
return this;
|
|
983
1013
|
}
|
|
984
|
-
function set
|
|
1014
|
+
function set(key, value) {
|
|
985
1015
|
value = toRaw(value);
|
|
986
1016
|
const target = toRaw(this);
|
|
987
1017
|
const { has, get } = getProto(target);
|
|
@@ -1094,41 +1124,41 @@ var Vue = (function () {
|
|
|
1094
1124
|
function createInstrumentations() {
|
|
1095
1125
|
const mutableInstrumentations = {
|
|
1096
1126
|
get(key) {
|
|
1097
|
-
return get
|
|
1127
|
+
return get(this, key);
|
|
1098
1128
|
},
|
|
1099
1129
|
get size() {
|
|
1100
1130
|
return size(this);
|
|
1101
1131
|
},
|
|
1102
|
-
has
|
|
1132
|
+
has,
|
|
1103
1133
|
add,
|
|
1104
|
-
set
|
|
1134
|
+
set,
|
|
1105
1135
|
delete: deleteEntry,
|
|
1106
1136
|
clear,
|
|
1107
1137
|
forEach: createForEach(false, false)
|
|
1108
1138
|
};
|
|
1109
1139
|
const shallowInstrumentations = {
|
|
1110
1140
|
get(key) {
|
|
1111
|
-
return get
|
|
1141
|
+
return get(this, key, false, true);
|
|
1112
1142
|
},
|
|
1113
1143
|
get size() {
|
|
1114
1144
|
return size(this);
|
|
1115
1145
|
},
|
|
1116
|
-
has
|
|
1146
|
+
has,
|
|
1117
1147
|
add,
|
|
1118
|
-
set
|
|
1148
|
+
set,
|
|
1119
1149
|
delete: deleteEntry,
|
|
1120
1150
|
clear,
|
|
1121
1151
|
forEach: createForEach(false, true)
|
|
1122
1152
|
};
|
|
1123
1153
|
const readonlyInstrumentations = {
|
|
1124
1154
|
get(key) {
|
|
1125
|
-
return get
|
|
1155
|
+
return get(this, key, true);
|
|
1126
1156
|
},
|
|
1127
1157
|
get size() {
|
|
1128
1158
|
return size(this, true);
|
|
1129
1159
|
},
|
|
1130
1160
|
has(key) {
|
|
1131
|
-
return has
|
|
1161
|
+
return has.call(this, key, true);
|
|
1132
1162
|
},
|
|
1133
1163
|
add: createReadonlyMethod("add" /* TriggerOpTypes.ADD */),
|
|
1134
1164
|
set: createReadonlyMethod("set" /* TriggerOpTypes.SET */),
|
|
@@ -1138,13 +1168,13 @@ var Vue = (function () {
|
|
|
1138
1168
|
};
|
|
1139
1169
|
const shallowReadonlyInstrumentations = {
|
|
1140
1170
|
get(key) {
|
|
1141
|
-
return get
|
|
1171
|
+
return get(this, key, true, true);
|
|
1142
1172
|
},
|
|
1143
1173
|
get size() {
|
|
1144
1174
|
return size(this, true);
|
|
1145
1175
|
},
|
|
1146
1176
|
has(key) {
|
|
1147
|
-
return has
|
|
1177
|
+
return has.call(this, key, true);
|
|
1148
1178
|
},
|
|
1149
1179
|
add: createReadonlyMethod("add" /* TriggerOpTypes.ADD */),
|
|
1150
1180
|
set: createReadonlyMethod("set" /* TriggerOpTypes.SET */),
|
|
@@ -1335,9 +1365,10 @@ var Vue = (function () {
|
|
|
1335
1365
|
}
|
|
1336
1366
|
function triggerRefValue(ref, newVal) {
|
|
1337
1367
|
ref = toRaw(ref);
|
|
1338
|
-
|
|
1368
|
+
const dep = ref.dep;
|
|
1369
|
+
if (dep) {
|
|
1339
1370
|
{
|
|
1340
|
-
triggerEffects(
|
|
1371
|
+
triggerEffects(dep, {
|
|
1341
1372
|
target: ref,
|
|
1342
1373
|
type: "set" /* TriggerOpTypes.SET */,
|
|
1343
1374
|
key: 'value',
|
|
@@ -1449,6 +1480,9 @@ var Vue = (function () {
|
|
|
1449
1480
|
set value(newVal) {
|
|
1450
1481
|
this._object[this._key] = newVal;
|
|
1451
1482
|
}
|
|
1483
|
+
get dep() {
|
|
1484
|
+
return getDepFromReactive(toRaw(this._object), this._key);
|
|
1485
|
+
}
|
|
1452
1486
|
}
|
|
1453
1487
|
function toRef(object, key, defaultValue) {
|
|
1454
1488
|
const val = object[key];
|
|
@@ -1490,7 +1524,7 @@ var Vue = (function () {
|
|
|
1490
1524
|
}
|
|
1491
1525
|
}
|
|
1492
1526
|
_a = "__v_isReadonly" /* ReactiveFlags.IS_READONLY */;
|
|
1493
|
-
function computed(getterOrOptions, debugOptions, isSSR = false) {
|
|
1527
|
+
function computed$1(getterOrOptions, debugOptions, isSSR = false) {
|
|
1494
1528
|
let getter;
|
|
1495
1529
|
let setter;
|
|
1496
1530
|
const onlyGetter = isFunction(getterOrOptions);
|
|
@@ -1520,7 +1554,7 @@ var Vue = (function () {
|
|
|
1520
1554
|
function popWarningContext() {
|
|
1521
1555
|
stack.pop();
|
|
1522
1556
|
}
|
|
1523
|
-
function warn
|
|
1557
|
+
function warn(msg, ...args) {
|
|
1524
1558
|
// avoid props formatting or warn handler tracking deps that might be mutated
|
|
1525
1559
|
// during patch, leading to infinite recursion.
|
|
1526
1560
|
pauseTracking();
|
|
@@ -1626,6 +1660,20 @@ var Vue = (function () {
|
|
|
1626
1660
|
return raw ? value : [`${key}=`, value];
|
|
1627
1661
|
}
|
|
1628
1662
|
}
|
|
1663
|
+
/**
|
|
1664
|
+
* @internal
|
|
1665
|
+
*/
|
|
1666
|
+
function assertNumber(val, type) {
|
|
1667
|
+
if (val === undefined) {
|
|
1668
|
+
return;
|
|
1669
|
+
}
|
|
1670
|
+
else if (typeof val !== 'number') {
|
|
1671
|
+
warn(`${type} is not a valid number - ` + `got ${JSON.stringify(val)}.`);
|
|
1672
|
+
}
|
|
1673
|
+
else if (isNaN(val)) {
|
|
1674
|
+
warn(`${type} is NaN - ` + 'the duration expression might be incorrect.');
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1629
1677
|
|
|
1630
1678
|
const ErrorTypeStrings = {
|
|
1631
1679
|
["sp" /* LifecycleHooks.SERVER_PREFETCH */]: 'serverPrefetch hook',
|
|
@@ -1719,7 +1767,7 @@ var Vue = (function () {
|
|
|
1719
1767
|
if (contextVNode) {
|
|
1720
1768
|
pushWarningContext(contextVNode);
|
|
1721
1769
|
}
|
|
1722
|
-
warn
|
|
1770
|
+
warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
|
|
1723
1771
|
if (contextVNode) {
|
|
1724
1772
|
popWarningContext();
|
|
1725
1773
|
}
|
|
@@ -1915,7 +1963,7 @@ var Vue = (function () {
|
|
|
1915
1963
|
if (count > RECURSION_LIMIT) {
|
|
1916
1964
|
const instance = fn.ownerInstance;
|
|
1917
1965
|
const componentName = instance && getComponentName(instance.type);
|
|
1918
|
-
warn
|
|
1966
|
+
warn(`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. ` +
|
|
1919
1967
|
`This means you have a reactive effect that is mutating its own ` +
|
|
1920
1968
|
`dependencies and thus recursively triggering itself. Possible sources ` +
|
|
1921
1969
|
`include component template, render function, updated hook or ` +
|
|
@@ -2066,7 +2114,7 @@ var Vue = (function () {
|
|
|
2066
2114
|
let devtools;
|
|
2067
2115
|
let buffer = [];
|
|
2068
2116
|
let devtoolsNotInstalled = false;
|
|
2069
|
-
function emit(event, ...args) {
|
|
2117
|
+
function emit$2(event, ...args) {
|
|
2070
2118
|
if (devtools) {
|
|
2071
2119
|
devtools.emit(event, ...args);
|
|
2072
2120
|
}
|
|
@@ -2113,7 +2161,7 @@ var Vue = (function () {
|
|
|
2113
2161
|
}
|
|
2114
2162
|
}
|
|
2115
2163
|
function devtoolsInitApp(app, version) {
|
|
2116
|
-
emit("app:init" /* DevtoolsHooks.APP_INIT */, app, version, {
|
|
2164
|
+
emit$2("app:init" /* DevtoolsHooks.APP_INIT */, app, version, {
|
|
2117
2165
|
Fragment,
|
|
2118
2166
|
Text,
|
|
2119
2167
|
Comment,
|
|
@@ -2121,7 +2169,7 @@ var Vue = (function () {
|
|
|
2121
2169
|
});
|
|
2122
2170
|
}
|
|
2123
2171
|
function devtoolsUnmountApp(app) {
|
|
2124
|
-
emit("app:unmount" /* DevtoolsHooks.APP_UNMOUNT */, app);
|
|
2172
|
+
emit$2("app:unmount" /* DevtoolsHooks.APP_UNMOUNT */, app);
|
|
2125
2173
|
}
|
|
2126
2174
|
const devtoolsComponentAdded = /*#__PURE__*/ createDevtoolsComponentHook("component:added" /* DevtoolsHooks.COMPONENT_ADDED */);
|
|
2127
2175
|
const devtoolsComponentUpdated =
|
|
@@ -2137,18 +2185,18 @@ var Vue = (function () {
|
|
|
2137
2185
|
};
|
|
2138
2186
|
function createDevtoolsComponentHook(hook) {
|
|
2139
2187
|
return (component) => {
|
|
2140
|
-
emit(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component);
|
|
2188
|
+
emit$2(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component);
|
|
2141
2189
|
};
|
|
2142
2190
|
}
|
|
2143
2191
|
const devtoolsPerfStart = /*#__PURE__*/ createDevtoolsPerformanceHook("perf:start" /* DevtoolsHooks.PERFORMANCE_START */);
|
|
2144
2192
|
const devtoolsPerfEnd = /*#__PURE__*/ createDevtoolsPerformanceHook("perf:end" /* DevtoolsHooks.PERFORMANCE_END */);
|
|
2145
2193
|
function createDevtoolsPerformanceHook(hook) {
|
|
2146
2194
|
return (component, type, time) => {
|
|
2147
|
-
emit(hook, component.appContext.app, component.uid, component, type, time);
|
|
2195
|
+
emit$2(hook, component.appContext.app, component.uid, component, type, time);
|
|
2148
2196
|
};
|
|
2149
2197
|
}
|
|
2150
2198
|
function devtoolsComponentEmit(component, event, params) {
|
|
2151
|
-
emit("component:emit" /* DevtoolsHooks.COMPONENT_EMIT */, component.appContext.app, component, event, params);
|
|
2199
|
+
emit$2("component:emit" /* DevtoolsHooks.COMPONENT_EMIT */, component.appContext.app, component, event, params);
|
|
2152
2200
|
}
|
|
2153
2201
|
|
|
2154
2202
|
const deprecationData = {
|
|
@@ -2436,12 +2484,12 @@ var Vue = (function () {
|
|
|
2436
2484
|
// same warning, but different component. skip the long message and just
|
|
2437
2485
|
// log the key and count.
|
|
2438
2486
|
if (dupKey in warnCount) {
|
|
2439
|
-
warn
|
|
2487
|
+
warn(`(deprecation ${key}) (${++warnCount[dupKey] + 1})`);
|
|
2440
2488
|
return;
|
|
2441
2489
|
}
|
|
2442
2490
|
warnCount[dupKey] = 0;
|
|
2443
2491
|
const { message, link } = deprecationData[key];
|
|
2444
|
-
warn
|
|
2492
|
+
warn(`(deprecation ${key}) ${typeof message === 'function' ? message(...args) : message}${link ? `\n Details: ${link}` : ``}`);
|
|
2445
2493
|
if (!isCompatEnabled(key, instance, true)) {
|
|
2446
2494
|
console.error(`^ The above deprecation's compat behavior is disabled and will likely ` +
|
|
2447
2495
|
`lead to runtime errors.`);
|
|
@@ -2470,20 +2518,20 @@ var Vue = (function () {
|
|
|
2470
2518
|
!(key in warnedInvalidKeys)) {
|
|
2471
2519
|
if (key.startsWith('COMPILER_')) {
|
|
2472
2520
|
if (isRuntimeOnly()) {
|
|
2473
|
-
warn
|
|
2521
|
+
warn(`Deprecation config "${key}" is compiler-specific and you are ` +
|
|
2474
2522
|
`running a runtime-only build of Vue. This deprecation should be ` +
|
|
2475
2523
|
`configured via compiler options in your build setup instead.\n` +
|
|
2476
2524
|
`Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`);
|
|
2477
2525
|
}
|
|
2478
2526
|
}
|
|
2479
2527
|
else {
|
|
2480
|
-
warn
|
|
2528
|
+
warn(`Invalid deprecation config "${key}".`);
|
|
2481
2529
|
}
|
|
2482
2530
|
warnedInvalidKeys[key] = true;
|
|
2483
2531
|
}
|
|
2484
2532
|
}
|
|
2485
2533
|
if (instance && config["OPTIONS_DATA_MERGE" /* DeprecationTypes.OPTIONS_DATA_MERGE */] != null) {
|
|
2486
|
-
warn
|
|
2534
|
+
warn(`Deprecation config "${"OPTIONS_DATA_MERGE" /* DeprecationTypes.OPTIONS_DATA_MERGE */}" can only be configured globally.`);
|
|
2487
2535
|
}
|
|
2488
2536
|
}
|
|
2489
2537
|
function getCompatConfigForKey(key, instance) {
|
|
@@ -2669,7 +2717,7 @@ var Vue = (function () {
|
|
|
2669
2717
|
}
|
|
2670
2718
|
}
|
|
2671
2719
|
|
|
2672
|
-
function emit
|
|
2720
|
+
function emit(instance, event, ...rawArgs) {
|
|
2673
2721
|
if (instance.isUnmounted)
|
|
2674
2722
|
return;
|
|
2675
2723
|
const props = instance.vnode.props || EMPTY_OBJ;
|
|
@@ -2680,7 +2728,7 @@ var Vue = (function () {
|
|
|
2680
2728
|
!((event.startsWith('hook:') ||
|
|
2681
2729
|
event.startsWith(compatModelEventPrefix)))) {
|
|
2682
2730
|
if (!propsOptions || !(toHandlerKey(event) in propsOptions)) {
|
|
2683
|
-
warn
|
|
2731
|
+
warn(`Component emitted event "${event}" but it is neither declared in ` +
|
|
2684
2732
|
`the emits option nor as an "${toHandlerKey(event)}" prop.`);
|
|
2685
2733
|
}
|
|
2686
2734
|
}
|
|
@@ -2689,7 +2737,7 @@ var Vue = (function () {
|
|
|
2689
2737
|
if (isFunction(validator)) {
|
|
2690
2738
|
const isValid = validator(...rawArgs);
|
|
2691
2739
|
if (!isValid) {
|
|
2692
|
-
warn
|
|
2740
|
+
warn(`Invalid event arguments: event validation failed for event "${event}".`);
|
|
2693
2741
|
}
|
|
2694
2742
|
}
|
|
2695
2743
|
}
|
|
@@ -2706,7 +2754,7 @@ var Vue = (function () {
|
|
|
2706
2754
|
args = rawArgs.map(a => (isString(a) ? a.trim() : a));
|
|
2707
2755
|
}
|
|
2708
2756
|
if (number) {
|
|
2709
|
-
args = rawArgs.map(
|
|
2757
|
+
args = rawArgs.map(looseToNumber);
|
|
2710
2758
|
}
|
|
2711
2759
|
}
|
|
2712
2760
|
{
|
|
@@ -2715,7 +2763,7 @@ var Vue = (function () {
|
|
|
2715
2763
|
{
|
|
2716
2764
|
const lowerCaseEvent = event.toLowerCase();
|
|
2717
2765
|
if (lowerCaseEvent !== event && props[toHandlerKey(lowerCaseEvent)]) {
|
|
2718
|
-
warn
|
|
2766
|
+
warn(`Event "${lowerCaseEvent}" is emitted in component ` +
|
|
2719
2767
|
`${formatComponentName(instance, instance.type)} but the handler is registered for "${event}". ` +
|
|
2720
2768
|
`Note that HTML attributes are case-insensitive and you cannot use ` +
|
|
2721
2769
|
`v-on to listen to camelCase events when using in-DOM templates. ` +
|
|
@@ -3005,13 +3053,13 @@ var Vue = (function () {
|
|
|
3005
3053
|
}
|
|
3006
3054
|
}
|
|
3007
3055
|
if (extraAttrs.length) {
|
|
3008
|
-
warn
|
|
3056
|
+
warn(`Extraneous non-props attributes (` +
|
|
3009
3057
|
`${extraAttrs.join(', ')}) ` +
|
|
3010
3058
|
`were passed to component but could not be automatically inherited ` +
|
|
3011
3059
|
`because component renders fragment or text root nodes.`);
|
|
3012
3060
|
}
|
|
3013
3061
|
if (eventAttrs.length) {
|
|
3014
|
-
warn
|
|
3062
|
+
warn(`Extraneous non-emits event listeners (` +
|
|
3015
3063
|
`${eventAttrs.join(', ')}) ` +
|
|
3016
3064
|
`were passed to component but could not be automatically inherited ` +
|
|
3017
3065
|
`because component renders fragment or text root nodes. ` +
|
|
@@ -3038,7 +3086,7 @@ var Vue = (function () {
|
|
|
3038
3086
|
// inherit directives
|
|
3039
3087
|
if (vnode.dirs) {
|
|
3040
3088
|
if (!isElementRoot(root)) {
|
|
3041
|
-
warn
|
|
3089
|
+
warn(`Runtime directive used on component with non-element root node. ` +
|
|
3042
3090
|
`The directives will not function as intended.`);
|
|
3043
3091
|
}
|
|
3044
3092
|
// clone before mutating since the root may be a hoisted vnode
|
|
@@ -3048,7 +3096,7 @@ var Vue = (function () {
|
|
|
3048
3096
|
// inherit transition data
|
|
3049
3097
|
if (vnode.transition) {
|
|
3050
3098
|
if (!isElementRoot(root)) {
|
|
3051
|
-
warn
|
|
3099
|
+
warn(`Component inside <Transition> renders non-element root node ` +
|
|
3052
3100
|
`that cannot be animated.`);
|
|
3053
3101
|
}
|
|
3054
3102
|
root.transition = vnode.transition;
|
|
@@ -3383,7 +3431,10 @@ var Vue = (function () {
|
|
|
3383
3431
|
console[console.info ? 'info' : 'log'](`<Suspense> is an experimental feature and its API will likely change.`);
|
|
3384
3432
|
}
|
|
3385
3433
|
const { p: patch, m: move, um: unmount, n: next, o: { parentNode, remove } } = rendererInternals;
|
|
3386
|
-
const timeout =
|
|
3434
|
+
const timeout = vnode.props ? toNumber(vnode.props.timeout) : undefined;
|
|
3435
|
+
{
|
|
3436
|
+
assertNumber(timeout, `Suspense timeout`);
|
|
3437
|
+
}
|
|
3387
3438
|
const suspense = {
|
|
3388
3439
|
vnode,
|
|
3389
3440
|
parent,
|
|
@@ -3611,7 +3662,7 @@ var Vue = (function () {
|
|
|
3611
3662
|
if (isArray(s)) {
|
|
3612
3663
|
const singleChild = filterSingleRoot(s);
|
|
3613
3664
|
if (!singleChild) {
|
|
3614
|
-
warn
|
|
3665
|
+
warn(`<Suspense> slots expect a single root node.`);
|
|
3615
3666
|
}
|
|
3616
3667
|
s = singleChild;
|
|
3617
3668
|
}
|
|
@@ -3649,7 +3700,7 @@ var Vue = (function () {
|
|
|
3649
3700
|
function provide(key, value) {
|
|
3650
3701
|
if (!currentInstance) {
|
|
3651
3702
|
{
|
|
3652
|
-
warn
|
|
3703
|
+
warn(`provide() can only be used inside setup().`);
|
|
3653
3704
|
}
|
|
3654
3705
|
}
|
|
3655
3706
|
else {
|
|
@@ -3688,11 +3739,11 @@ var Vue = (function () {
|
|
|
3688
3739
|
: defaultValue;
|
|
3689
3740
|
}
|
|
3690
3741
|
else {
|
|
3691
|
-
warn
|
|
3742
|
+
warn(`injection "${String(key)}" not found.`);
|
|
3692
3743
|
}
|
|
3693
3744
|
}
|
|
3694
3745
|
else {
|
|
3695
|
-
warn
|
|
3746
|
+
warn(`inject() can only be used inside setup() or functional components.`);
|
|
3696
3747
|
}
|
|
3697
3748
|
}
|
|
3698
3749
|
|
|
@@ -3701,17 +3752,17 @@ var Vue = (function () {
|
|
|
3701
3752
|
return doWatch(effect, null, options);
|
|
3702
3753
|
}
|
|
3703
3754
|
function watchPostEffect(effect, options) {
|
|
3704
|
-
return doWatch(effect, null,
|
|
3755
|
+
return doWatch(effect, null, Object.assign(Object.assign({}, options), { flush: 'post' }) );
|
|
3705
3756
|
}
|
|
3706
3757
|
function watchSyncEffect(effect, options) {
|
|
3707
|
-
return doWatch(effect, null,
|
|
3758
|
+
return doWatch(effect, null, Object.assign(Object.assign({}, options), { flush: 'sync' }) );
|
|
3708
3759
|
}
|
|
3709
3760
|
// initial value for watchers to trigger on undefined initial values
|
|
3710
3761
|
const INITIAL_WATCHER_VALUE = {};
|
|
3711
3762
|
// implementation
|
|
3712
3763
|
function watch(source, cb, options) {
|
|
3713
3764
|
if (!isFunction(cb)) {
|
|
3714
|
-
warn
|
|
3765
|
+
warn(`\`watch(fn, options?)\` signature has been moved to a separate API. ` +
|
|
3715
3766
|
`Use \`watchEffect(fn, options?)\` instead. \`watch\` now only ` +
|
|
3716
3767
|
`supports \`watch(source, cb, options?) signature.`);
|
|
3717
3768
|
}
|
|
@@ -3720,19 +3771,20 @@ var Vue = (function () {
|
|
|
3720
3771
|
function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EMPTY_OBJ) {
|
|
3721
3772
|
if (!cb) {
|
|
3722
3773
|
if (immediate !== undefined) {
|
|
3723
|
-
warn
|
|
3774
|
+
warn(`watch() "immediate" option is only respected when using the ` +
|
|
3724
3775
|
`watch(source, callback, options?) signature.`);
|
|
3725
3776
|
}
|
|
3726
3777
|
if (deep !== undefined) {
|
|
3727
|
-
warn
|
|
3778
|
+
warn(`watch() "deep" option is only respected when using the ` +
|
|
3728
3779
|
`watch(source, callback, options?) signature.`);
|
|
3729
3780
|
}
|
|
3730
3781
|
}
|
|
3731
3782
|
const warnInvalidSource = (s) => {
|
|
3732
|
-
warn
|
|
3783
|
+
warn(`Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, ` +
|
|
3733
3784
|
`a reactive object, or an array of these types.`);
|
|
3734
3785
|
};
|
|
3735
|
-
const instance = currentInstance;
|
|
3786
|
+
const instance = getCurrentScope() === (currentInstance === null || currentInstance === void 0 ? void 0 : currentInstance.scope) ? currentInstance : null;
|
|
3787
|
+
// const instance = currentInstance
|
|
3736
3788
|
let getter;
|
|
3737
3789
|
let forceTrigger = false;
|
|
3738
3790
|
let isMultiSource = false;
|
|
@@ -3832,7 +3884,7 @@ var Vue = (function () {
|
|
|
3832
3884
|
// pass undefined as the old value when it's changed for the first time
|
|
3833
3885
|
oldValue === INITIAL_WATCHER_VALUE
|
|
3834
3886
|
? undefined
|
|
3835
|
-
:
|
|
3887
|
+
: isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE
|
|
3836
3888
|
? []
|
|
3837
3889
|
: oldValue,
|
|
3838
3890
|
onCleanup
|
|
@@ -4012,7 +4064,7 @@ var Vue = (function () {
|
|
|
4012
4064
|
if (c.type !== Comment) {
|
|
4013
4065
|
if (hasFound) {
|
|
4014
4066
|
// warn more than one non-comment child
|
|
4015
|
-
warn
|
|
4067
|
+
warn('<transition> can only be used on a single element or component. ' +
|
|
4016
4068
|
'Use <transition-group> for lists.');
|
|
4017
4069
|
break;
|
|
4018
4070
|
}
|
|
@@ -4030,7 +4082,7 @@ var Vue = (function () {
|
|
|
4030
4082
|
mode !== 'in-out' &&
|
|
4031
4083
|
mode !== 'out-in' &&
|
|
4032
4084
|
mode !== 'default') {
|
|
4033
|
-
warn
|
|
4085
|
+
warn(`invalid <transition> mode: ${mode}`);
|
|
4034
4086
|
}
|
|
4035
4087
|
if (state.isLeaving) {
|
|
4036
4088
|
return emptyPlaceholder(child);
|
|
@@ -4341,7 +4393,7 @@ var Vue = (function () {
|
|
|
4341
4393
|
return pendingRequest;
|
|
4342
4394
|
}
|
|
4343
4395
|
if (!comp) {
|
|
4344
|
-
warn
|
|
4396
|
+
warn(`Async component loader resolved to undefined. ` +
|
|
4345
4397
|
`If you are using retry(), make sure to return its return value.`);
|
|
4346
4398
|
}
|
|
4347
4399
|
// interop module default
|
|
@@ -4528,7 +4580,7 @@ var Vue = (function () {
|
|
|
4528
4580
|
}
|
|
4529
4581
|
function pruneCacheEntry(key) {
|
|
4530
4582
|
const cached = cache.get(key);
|
|
4531
|
-
if (!current || cached
|
|
4583
|
+
if (!current || !isSameVNodeType(cached, current)) {
|
|
4532
4584
|
unmount(cached);
|
|
4533
4585
|
}
|
|
4534
4586
|
else if (current) {
|
|
@@ -4560,7 +4612,7 @@ var Vue = (function () {
|
|
|
4560
4612
|
cache.forEach(cached => {
|
|
4561
4613
|
const { subTree, suspense } = instance;
|
|
4562
4614
|
const vnode = getInnerChild(subTree);
|
|
4563
|
-
if (cached.type === vnode.type) {
|
|
4615
|
+
if (cached.type === vnode.type && cached.key === vnode.key) {
|
|
4564
4616
|
// current instance will be unmounted as part of keep-alive's unmount
|
|
4565
4617
|
resetShapeFlag(vnode);
|
|
4566
4618
|
// but invoke its deactivated hook here
|
|
@@ -4580,7 +4632,7 @@ var Vue = (function () {
|
|
|
4580
4632
|
const rawVNode = children[0];
|
|
4581
4633
|
if (children.length > 1) {
|
|
4582
4634
|
{
|
|
4583
|
-
warn
|
|
4635
|
+
warn(`KeepAlive should contain exactly one component child.`);
|
|
4584
4636
|
}
|
|
4585
4637
|
current = null;
|
|
4586
4638
|
return children;
|
|
@@ -4660,7 +4712,7 @@ var Vue = (function () {
|
|
|
4660
4712
|
else if (isString(pattern)) {
|
|
4661
4713
|
return pattern.split(',').includes(name);
|
|
4662
4714
|
}
|
|
4663
|
-
else if (pattern
|
|
4715
|
+
else if (isRegExp(pattern)) {
|
|
4664
4716
|
return pattern.test(name);
|
|
4665
4717
|
}
|
|
4666
4718
|
/* istanbul ignore next */
|
|
@@ -4754,7 +4806,7 @@ var Vue = (function () {
|
|
|
4754
4806
|
}
|
|
4755
4807
|
else {
|
|
4756
4808
|
const apiName = toHandlerKey(ErrorTypeStrings[type].replace(/ hook$/, ''));
|
|
4757
|
-
warn
|
|
4809
|
+
warn(`${apiName} is called when there is no active component instance to be ` +
|
|
4758
4810
|
`associated with. ` +
|
|
4759
4811
|
`Lifecycle injection APIs can only be used during execution of setup().` +
|
|
4760
4812
|
(` If you are using async setup(), make sure to register lifecycle ` +
|
|
@@ -4858,7 +4910,7 @@ var Vue = (function () {
|
|
|
4858
4910
|
*/
|
|
4859
4911
|
function validateDirectiveName(name) {
|
|
4860
4912
|
if (isBuiltInDirective(name)) {
|
|
4861
|
-
warn
|
|
4913
|
+
warn('Do not use built-in directive ids as custom directive id: ' + name);
|
|
4862
4914
|
}
|
|
4863
4915
|
}
|
|
4864
4916
|
/**
|
|
@@ -4867,7 +4919,7 @@ var Vue = (function () {
|
|
|
4867
4919
|
function withDirectives(vnode, directives) {
|
|
4868
4920
|
const internalInstance = currentRenderingInstance;
|
|
4869
4921
|
if (internalInstance === null) {
|
|
4870
|
-
warn
|
|
4922
|
+
warn(`withDirectives can only be used inside render functions.`);
|
|
4871
4923
|
return vnode;
|
|
4872
4924
|
}
|
|
4873
4925
|
const instance = getExposeProxy(internalInstance) ||
|
|
@@ -4956,7 +5008,7 @@ var Vue = (function () {
|
|
|
4956
5008
|
* v2 compat only
|
|
4957
5009
|
* @internal
|
|
4958
5010
|
*/
|
|
4959
|
-
function resolveFilter(name) {
|
|
5011
|
+
function resolveFilter$1(name) {
|
|
4960
5012
|
return resolveAsset(FILTERS, name);
|
|
4961
5013
|
}
|
|
4962
5014
|
// implementation
|
|
@@ -4989,12 +5041,12 @@ var Vue = (function () {
|
|
|
4989
5041
|
? `\nIf this is a native custom element, make sure to exclude it from ` +
|
|
4990
5042
|
`component resolution via compilerOptions.isCustomElement.`
|
|
4991
5043
|
: ``;
|
|
4992
|
-
warn
|
|
5044
|
+
warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
4993
5045
|
}
|
|
4994
5046
|
return res;
|
|
4995
5047
|
}
|
|
4996
5048
|
else {
|
|
4997
|
-
warn
|
|
5049
|
+
warn(`resolve${capitalize(type.slice(0, -1))} ` +
|
|
4998
5050
|
`can only be used in render() or setup().`);
|
|
4999
5051
|
}
|
|
5000
5052
|
}
|
|
@@ -5272,7 +5324,7 @@ var Vue = (function () {
|
|
|
5272
5324
|
}
|
|
5273
5325
|
else if (typeof source === 'number') {
|
|
5274
5326
|
if (!Number.isInteger(source)) {
|
|
5275
|
-
warn
|
|
5327
|
+
warn(`The v-for range expect an integer value but got ${source}.`);
|
|
5276
5328
|
}
|
|
5277
5329
|
ret = new Array(source);
|
|
5278
5330
|
for (let i = 0; i < source; i++) {
|
|
@@ -5349,7 +5401,7 @@ var Vue = (function () {
|
|
|
5349
5401
|
}
|
|
5350
5402
|
let slot = slots[name];
|
|
5351
5403
|
if (slot && slot.length > 1) {
|
|
5352
|
-
warn
|
|
5404
|
+
warn(`SSR-optimized slot function detected in a non-SSR-optimized render ` +
|
|
5353
5405
|
`function. You need to mark this component with $dynamic-slots in the ` +
|
|
5354
5406
|
`parent template.`);
|
|
5355
5407
|
slot = () => [];
|
|
@@ -5402,7 +5454,7 @@ var Vue = (function () {
|
|
|
5402
5454
|
function toHandlers(obj, preserveCaseIfNecessary) {
|
|
5403
5455
|
const ret = {};
|
|
5404
5456
|
if (!isObject(obj)) {
|
|
5405
|
-
warn
|
|
5457
|
+
warn(`v-on with no argument expects an object value.`);
|
|
5406
5458
|
return ret;
|
|
5407
5459
|
}
|
|
5408
5460
|
for (const key in obj) {
|
|
@@ -5610,14 +5662,14 @@ var Vue = (function () {
|
|
|
5610
5662
|
$createElement: () => compatH,
|
|
5611
5663
|
_c: () => compatH,
|
|
5612
5664
|
_o: () => legacyMarkOnce,
|
|
5613
|
-
_n: () =>
|
|
5665
|
+
_n: () => looseToNumber,
|
|
5614
5666
|
_s: () => toDisplayString,
|
|
5615
5667
|
_l: () => renderList,
|
|
5616
5668
|
_t: i => legacyRenderSlot.bind(null, i),
|
|
5617
5669
|
_q: () => looseEqual,
|
|
5618
5670
|
_i: () => looseIndexOf,
|
|
5619
5671
|
_m: i => legacyRenderStatic.bind(null, i),
|
|
5620
|
-
_f: () => resolveFilter,
|
|
5672
|
+
_f: () => resolveFilter$1,
|
|
5621
5673
|
_k: i => legacyCheckKeyCodes.bind(null, i),
|
|
5622
5674
|
_b: () => legacyBindObjectProps,
|
|
5623
5675
|
_v: () => createTextVNode,
|
|
@@ -5763,11 +5815,11 @@ var Vue = (function () {
|
|
|
5763
5815
|
// to infinite warning loop
|
|
5764
5816
|
key.indexOf('__v') !== 0)) {
|
|
5765
5817
|
if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) {
|
|
5766
|
-
warn
|
|
5818
|
+
warn(`Property ${JSON.stringify(key)} must be accessed via $data because it starts with a reserved ` +
|
|
5767
5819
|
`character ("$" or "_") and is not proxied on the render context.`);
|
|
5768
5820
|
}
|
|
5769
5821
|
else if (instance === currentRenderingInstance) {
|
|
5770
|
-
warn
|
|
5822
|
+
warn(`Property ${JSON.stringify(key)} was accessed during render ` +
|
|
5771
5823
|
`but is not defined on instance.`);
|
|
5772
5824
|
}
|
|
5773
5825
|
}
|
|
@@ -5780,7 +5832,7 @@ var Vue = (function () {
|
|
|
5780
5832
|
}
|
|
5781
5833
|
else if (setupState.__isScriptSetup &&
|
|
5782
5834
|
hasOwn(setupState, key)) {
|
|
5783
|
-
warn
|
|
5835
|
+
warn(`Cannot mutate <script setup> binding "${key}" from Options API.`);
|
|
5784
5836
|
return false;
|
|
5785
5837
|
}
|
|
5786
5838
|
else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
|
|
@@ -5788,11 +5840,11 @@ var Vue = (function () {
|
|
|
5788
5840
|
return true;
|
|
5789
5841
|
}
|
|
5790
5842
|
else if (hasOwn(instance.props, key)) {
|
|
5791
|
-
warn
|
|
5843
|
+
warn(`Attempting to mutate prop "${key}". Props are readonly.`);
|
|
5792
5844
|
return false;
|
|
5793
5845
|
}
|
|
5794
5846
|
if (key[0] === '$' && key.slice(1) in instance) {
|
|
5795
|
-
warn
|
|
5847
|
+
warn(`Attempting to mutate public property "${key}". ` +
|
|
5796
5848
|
`Properties starting with $ are reserved and readonly.`);
|
|
5797
5849
|
return false;
|
|
5798
5850
|
}
|
|
@@ -5833,7 +5885,7 @@ var Vue = (function () {
|
|
|
5833
5885
|
};
|
|
5834
5886
|
{
|
|
5835
5887
|
PublicInstanceProxyHandlers.ownKeys = (target) => {
|
|
5836
|
-
warn
|
|
5888
|
+
warn(`Avoid app logic that relies on enumerating keys on a component instance. ` +
|
|
5837
5889
|
`The keys will be empty in production mode to avoid performance overhead.`);
|
|
5838
5890
|
return Reflect.ownKeys(target);
|
|
5839
5891
|
};
|
|
@@ -5849,7 +5901,7 @@ var Vue = (function () {
|
|
|
5849
5901
|
has(_, key) {
|
|
5850
5902
|
const has = key[0] !== '_' && !isGloballyWhitelisted(key);
|
|
5851
5903
|
if (!has && PublicInstanceProxyHandlers.has(_, key)) {
|
|
5852
|
-
warn
|
|
5904
|
+
warn(`Property ${JSON.stringify(key)} should not start with _ which is a reserved prefix for Vue internals.`);
|
|
5853
5905
|
}
|
|
5854
5906
|
return has;
|
|
5855
5907
|
}
|
|
@@ -5899,7 +5951,7 @@ var Vue = (function () {
|
|
|
5899
5951
|
Object.keys(toRaw(setupState)).forEach(key => {
|
|
5900
5952
|
if (!setupState.__isScriptSetup) {
|
|
5901
5953
|
if (isReservedPrefix(key[0])) {
|
|
5902
|
-
warn
|
|
5954
|
+
warn(`setup() return property ${JSON.stringify(key)} should not start with "$" or "_" ` +
|
|
5903
5955
|
`which are reserved prefixes for Vue internals.`);
|
|
5904
5956
|
return;
|
|
5905
5957
|
}
|
|
@@ -5932,7 +5984,7 @@ var Vue = (function () {
|
|
|
5932
5984
|
const cache = Object.create(null);
|
|
5933
5985
|
return (type, key) => {
|
|
5934
5986
|
if (cache[key]) {
|
|
5935
|
-
warn
|
|
5987
|
+
warn(`${type} property "${key}" is already defined in ${cache[key]}.`);
|
|
5936
5988
|
}
|
|
5937
5989
|
else {
|
|
5938
5990
|
cache[key] = type;
|
|
@@ -5949,7 +6001,7 @@ var Vue = (function () {
|
|
|
5949
6001
|
// call beforeCreate first before accessing other options since
|
|
5950
6002
|
// the hook may mutate resolved options (#2791)
|
|
5951
6003
|
if (options.beforeCreate) {
|
|
5952
|
-
callHook(options.beforeCreate, instance, "bc" /* LifecycleHooks.BEFORE_CREATE */);
|
|
6004
|
+
callHook$1(options.beforeCreate, instance, "bc" /* LifecycleHooks.BEFORE_CREATE */);
|
|
5953
6005
|
}
|
|
5954
6006
|
const {
|
|
5955
6007
|
// state
|
|
@@ -5999,24 +6051,24 @@ var Vue = (function () {
|
|
|
5999
6051
|
}
|
|
6000
6052
|
}
|
|
6001
6053
|
else {
|
|
6002
|
-
warn
|
|
6054
|
+
warn(`Method "${key}" has type "${typeof methodHandler}" in the component definition. ` +
|
|
6003
6055
|
`Did you reference the function correctly?`);
|
|
6004
6056
|
}
|
|
6005
6057
|
}
|
|
6006
6058
|
}
|
|
6007
6059
|
if (dataOptions) {
|
|
6008
6060
|
if (!isFunction(dataOptions)) {
|
|
6009
|
-
warn
|
|
6061
|
+
warn(`The data option must be a function. ` +
|
|
6010
6062
|
`Plain object usage is no longer supported.`);
|
|
6011
6063
|
}
|
|
6012
6064
|
const data = dataOptions.call(publicThis, publicThis);
|
|
6013
6065
|
if (isPromise(data)) {
|
|
6014
|
-
warn
|
|
6066
|
+
warn(`data() returned a Promise - note data() cannot be async; If you ` +
|
|
6015
6067
|
`intend to perform data fetching before component renders, use ` +
|
|
6016
6068
|
`async setup() + <Suspense>.`);
|
|
6017
6069
|
}
|
|
6018
6070
|
if (!isObject(data)) {
|
|
6019
|
-
warn
|
|
6071
|
+
warn(`data() should return an object.`);
|
|
6020
6072
|
}
|
|
6021
6073
|
else {
|
|
6022
6074
|
instance.data = reactive(data);
|
|
@@ -6047,15 +6099,15 @@ var Vue = (function () {
|
|
|
6047
6099
|
? opt.get.bind(publicThis, publicThis)
|
|
6048
6100
|
: NOOP;
|
|
6049
6101
|
if (get === NOOP) {
|
|
6050
|
-
warn
|
|
6102
|
+
warn(`Computed property "${key}" has no getter.`);
|
|
6051
6103
|
}
|
|
6052
6104
|
const set = !isFunction(opt) && isFunction(opt.set)
|
|
6053
6105
|
? opt.set.bind(publicThis)
|
|
6054
6106
|
: () => {
|
|
6055
|
-
warn
|
|
6107
|
+
warn(`Write operation failed: computed property "${key}" is readonly.`);
|
|
6056
6108
|
}
|
|
6057
6109
|
;
|
|
6058
|
-
const c = computed
|
|
6110
|
+
const c = computed({
|
|
6059
6111
|
get,
|
|
6060
6112
|
set
|
|
6061
6113
|
});
|
|
@@ -6084,7 +6136,7 @@ var Vue = (function () {
|
|
|
6084
6136
|
});
|
|
6085
6137
|
}
|
|
6086
6138
|
if (created) {
|
|
6087
|
-
callHook(created, instance, "c" /* LifecycleHooks.CREATED */);
|
|
6139
|
+
callHook$1(created, instance, "c" /* LifecycleHooks.CREATED */);
|
|
6088
6140
|
}
|
|
6089
6141
|
function registerLifecycleHook(register, hook) {
|
|
6090
6142
|
if (isArray(hook)) {
|
|
@@ -6178,7 +6230,7 @@ var Vue = (function () {
|
|
|
6178
6230
|
}
|
|
6179
6231
|
else {
|
|
6180
6232
|
{
|
|
6181
|
-
warn
|
|
6233
|
+
warn(`injected property "${key}" is a ref and will be auto-unwrapped ` +
|
|
6182
6234
|
`and no longer needs \`.value\` in the next minor release. ` +
|
|
6183
6235
|
`To opt-in to the new behavior now, ` +
|
|
6184
6236
|
`set \`app.config.unwrapInjectedRef = true\` (this config is ` +
|
|
@@ -6195,7 +6247,7 @@ var Vue = (function () {
|
|
|
6195
6247
|
}
|
|
6196
6248
|
}
|
|
6197
6249
|
}
|
|
6198
|
-
function callHook(hook, instance, type) {
|
|
6250
|
+
function callHook$1(hook, instance, type) {
|
|
6199
6251
|
callWithAsyncErrorHandling(isArray(hook)
|
|
6200
6252
|
? hook.map(h => h.bind(instance.proxy))
|
|
6201
6253
|
: hook.bind(instance.proxy), instance, type);
|
|
@@ -6210,7 +6262,7 @@ var Vue = (function () {
|
|
|
6210
6262
|
watch(getter, handler);
|
|
6211
6263
|
}
|
|
6212
6264
|
else {
|
|
6213
|
-
warn
|
|
6265
|
+
warn(`Invalid watch handler specified by key "${raw}"`, handler);
|
|
6214
6266
|
}
|
|
6215
6267
|
}
|
|
6216
6268
|
else if (isFunction(raw)) {
|
|
@@ -6228,12 +6280,12 @@ var Vue = (function () {
|
|
|
6228
6280
|
watch(getter, handler, raw);
|
|
6229
6281
|
}
|
|
6230
6282
|
else {
|
|
6231
|
-
warn
|
|
6283
|
+
warn(`Invalid watch handler specified by key "${raw.handler}"`, handler);
|
|
6232
6284
|
}
|
|
6233
6285
|
}
|
|
6234
6286
|
}
|
|
6235
6287
|
else {
|
|
6236
|
-
warn
|
|
6288
|
+
warn(`Invalid watch option: "${key}"`, raw);
|
|
6237
6289
|
}
|
|
6238
6290
|
}
|
|
6239
6291
|
/**
|
|
@@ -6285,7 +6337,7 @@ var Vue = (function () {
|
|
|
6285
6337
|
}
|
|
6286
6338
|
for (const key in from) {
|
|
6287
6339
|
if (asMixin && key === 'expose') {
|
|
6288
|
-
warn
|
|
6340
|
+
warn(`"expose" option is ignored when declared in mixins or extends. ` +
|
|
6289
6341
|
`It should only be declared in the base component itself.`);
|
|
6290
6342
|
}
|
|
6291
6343
|
else {
|
|
@@ -6702,7 +6754,7 @@ var Vue = (function () {
|
|
|
6702
6754
|
if (isArray(raw)) {
|
|
6703
6755
|
for (let i = 0; i < raw.length; i++) {
|
|
6704
6756
|
if (!isString(raw[i])) {
|
|
6705
|
-
warn
|
|
6757
|
+
warn(`props must be strings when using array syntax.`, raw[i]);
|
|
6706
6758
|
}
|
|
6707
6759
|
const normalizedKey = camelize(raw[i]);
|
|
6708
6760
|
if (validatePropName(normalizedKey)) {
|
|
@@ -6712,7 +6764,7 @@ var Vue = (function () {
|
|
|
6712
6764
|
}
|
|
6713
6765
|
else if (raw) {
|
|
6714
6766
|
if (!isObject(raw)) {
|
|
6715
|
-
warn
|
|
6767
|
+
warn(`invalid props options`, raw);
|
|
6716
6768
|
}
|
|
6717
6769
|
for (const key in raw) {
|
|
6718
6770
|
const normalizedKey = camelize(key);
|
|
@@ -6745,15 +6797,15 @@ var Vue = (function () {
|
|
|
6745
6797
|
return true;
|
|
6746
6798
|
}
|
|
6747
6799
|
else {
|
|
6748
|
-
warn
|
|
6800
|
+
warn(`Invalid prop name: "${key}" is a reserved property.`);
|
|
6749
6801
|
}
|
|
6750
6802
|
return false;
|
|
6751
6803
|
}
|
|
6752
6804
|
// use function string name to check type constructors
|
|
6753
6805
|
// so that it works across vms / iframes.
|
|
6754
6806
|
function getType(ctor) {
|
|
6755
|
-
const match = ctor && ctor.toString().match(/^\s*function (\w+)/);
|
|
6756
|
-
return match ? match[
|
|
6807
|
+
const match = ctor && ctor.toString().match(/^\s*(function|class) (\w+)/);
|
|
6808
|
+
return match ? match[2] : ctor === null ? 'null' : '';
|
|
6757
6809
|
}
|
|
6758
6810
|
function isSameType(a, b) {
|
|
6759
6811
|
return getType(a) === getType(b);
|
|
@@ -6787,7 +6839,7 @@ var Vue = (function () {
|
|
|
6787
6839
|
const { type, required, validator } = prop;
|
|
6788
6840
|
// required!
|
|
6789
6841
|
if (required && isAbsent) {
|
|
6790
|
-
warn
|
|
6842
|
+
warn('Missing required prop: "' + name + '"');
|
|
6791
6843
|
return;
|
|
6792
6844
|
}
|
|
6793
6845
|
// missing but optional
|
|
@@ -6806,13 +6858,13 @@ var Vue = (function () {
|
|
|
6806
6858
|
isValid = valid;
|
|
6807
6859
|
}
|
|
6808
6860
|
if (!isValid) {
|
|
6809
|
-
warn
|
|
6861
|
+
warn(getInvalidTypeMessage(name, value, expectedTypes));
|
|
6810
6862
|
return;
|
|
6811
6863
|
}
|
|
6812
6864
|
}
|
|
6813
6865
|
// custom validator
|
|
6814
6866
|
if (validator && !validator(value)) {
|
|
6815
|
-
warn
|
|
6867
|
+
warn('Invalid prop: custom validator check failed for prop "' + name + '".');
|
|
6816
6868
|
}
|
|
6817
6869
|
}
|
|
6818
6870
|
const isSimpleType = /*#__PURE__*/ makeMap('String,Number,Boolean,Function,Symbol,BigInt');
|
|
@@ -6909,7 +6961,7 @@ var Vue = (function () {
|
|
|
6909
6961
|
}
|
|
6910
6962
|
const normalized = withCtx((...args) => {
|
|
6911
6963
|
if (true && currentInstance) {
|
|
6912
|
-
warn
|
|
6964
|
+
warn(`Slot "${key}" invoked outside of the render function: ` +
|
|
6913
6965
|
`this will not track dependencies used in the slot. ` +
|
|
6914
6966
|
`Invoke the slot function inside the render function instead.`);
|
|
6915
6967
|
}
|
|
@@ -6929,7 +6981,7 @@ var Vue = (function () {
|
|
|
6929
6981
|
}
|
|
6930
6982
|
else if (value != null) {
|
|
6931
6983
|
if (!(isCompatEnabled("RENDER_FUNCTION" /* DeprecationTypes.RENDER_FUNCTION */, instance))) {
|
|
6932
|
-
warn
|
|
6984
|
+
warn(`Non-function value encountered for slot "${key}". ` +
|
|
6933
6985
|
`Prefer function slots for better performance.`);
|
|
6934
6986
|
}
|
|
6935
6987
|
const normalized = normalizeSlotValue(value);
|
|
@@ -6940,7 +6992,7 @@ var Vue = (function () {
|
|
|
6940
6992
|
const normalizeVNodeSlots = (instance, children) => {
|
|
6941
6993
|
if (!isKeepAlive(instance.vnode) &&
|
|
6942
6994
|
!(isCompatEnabled("RENDER_FUNCTION" /* DeprecationTypes.RENDER_FUNCTION */, instance))) {
|
|
6943
|
-
warn
|
|
6995
|
+
warn(`Non-function value encountered for default slot. ` +
|
|
6944
6996
|
`Prefer function slots for better performance.`);
|
|
6945
6997
|
}
|
|
6946
6998
|
const normalized = normalizeSlotValue(children);
|
|
@@ -7064,7 +7116,7 @@ var Vue = (function () {
|
|
|
7064
7116
|
let singletonApp;
|
|
7065
7117
|
let singletonCtor;
|
|
7066
7118
|
// Legacy global Vue constructor
|
|
7067
|
-
function createCompatVue(createApp, createSingletonApp) {
|
|
7119
|
+
function createCompatVue$1(createApp, createSingletonApp) {
|
|
7068
7120
|
singletonApp = createSingletonApp({});
|
|
7069
7121
|
const Vue = (singletonCtor = function Vue(options = {}) {
|
|
7070
7122
|
return createCompatApp(options, Vue);
|
|
@@ -7089,7 +7141,7 @@ var Vue = (function () {
|
|
|
7089
7141
|
return vm;
|
|
7090
7142
|
}
|
|
7091
7143
|
}
|
|
7092
|
-
Vue.version = `2.6.14-compat:${"3.2.
|
|
7144
|
+
Vue.version = `2.6.14-compat:${"3.2.47"}`;
|
|
7093
7145
|
Vue.config = singletonApp.config;
|
|
7094
7146
|
Vue.use = (p, ...options) => {
|
|
7095
7147
|
if (p && isFunction(p.install)) {
|
|
@@ -7191,7 +7243,7 @@ var Vue = (function () {
|
|
|
7191
7243
|
});
|
|
7192
7244
|
// internal utils - these are technically internal but some plugins use it.
|
|
7193
7245
|
const util = {
|
|
7194
|
-
warn: warn
|
|
7246
|
+
warn: warn ,
|
|
7195
7247
|
extend,
|
|
7196
7248
|
mergeOptions: (parent, child, vm) => mergeOptions(parent, child, vm ? undefined : internalOptionMergeStrats),
|
|
7197
7249
|
defineReactive
|
|
@@ -7226,7 +7278,7 @@ var Vue = (function () {
|
|
|
7226
7278
|
return context.filters[name];
|
|
7227
7279
|
}
|
|
7228
7280
|
if (context.filters[name]) {
|
|
7229
|
-
warn
|
|
7281
|
+
warn(`Filter "${name}" has already been registered.`);
|
|
7230
7282
|
}
|
|
7231
7283
|
context.filters[name] = filter;
|
|
7232
7284
|
return app;
|
|
@@ -7337,7 +7389,7 @@ var Vue = (function () {
|
|
|
7337
7389
|
// both runtime-core AND runtime-dom.
|
|
7338
7390
|
instance.ctx._compat_mount = (selectorOrEl) => {
|
|
7339
7391
|
if (isMounted) {
|
|
7340
|
-
warn
|
|
7392
|
+
warn(`Root instance is already mounted.`);
|
|
7341
7393
|
return;
|
|
7342
7394
|
}
|
|
7343
7395
|
let container;
|
|
@@ -7345,7 +7397,7 @@ var Vue = (function () {
|
|
|
7345
7397
|
// eslint-disable-next-line
|
|
7346
7398
|
const result = document.querySelector(selectorOrEl);
|
|
7347
7399
|
if (!result) {
|
|
7348
|
-
warn
|
|
7400
|
+
warn(`Failed to mount root instance: selector "${selectorOrEl}" returned null.`);
|
|
7349
7401
|
return;
|
|
7350
7402
|
}
|
|
7351
7403
|
container = result;
|
|
@@ -7515,21 +7567,21 @@ var Vue = (function () {
|
|
|
7515
7567
|
emitsCache: new WeakMap()
|
|
7516
7568
|
};
|
|
7517
7569
|
}
|
|
7518
|
-
let uid = 0;
|
|
7570
|
+
let uid$1 = 0;
|
|
7519
7571
|
function createAppAPI(render, hydrate) {
|
|
7520
7572
|
return function createApp(rootComponent, rootProps = null) {
|
|
7521
7573
|
if (!isFunction(rootComponent)) {
|
|
7522
7574
|
rootComponent = Object.assign({}, rootComponent);
|
|
7523
7575
|
}
|
|
7524
7576
|
if (rootProps != null && !isObject(rootProps)) {
|
|
7525
|
-
warn
|
|
7577
|
+
warn(`root props passed to app.mount() must be an object.`);
|
|
7526
7578
|
rootProps = null;
|
|
7527
7579
|
}
|
|
7528
7580
|
const context = createAppContext();
|
|
7529
7581
|
const installedPlugins = new Set();
|
|
7530
7582
|
let isMounted = false;
|
|
7531
7583
|
const app = (context.app = {
|
|
7532
|
-
_uid: uid++,
|
|
7584
|
+
_uid: uid$1++,
|
|
7533
7585
|
_component: rootComponent,
|
|
7534
7586
|
_props: rootProps,
|
|
7535
7587
|
_container: null,
|
|
@@ -7541,12 +7593,12 @@ var Vue = (function () {
|
|
|
7541
7593
|
},
|
|
7542
7594
|
set config(v) {
|
|
7543
7595
|
{
|
|
7544
|
-
warn
|
|
7596
|
+
warn(`app.config cannot be replaced. Modify individual options instead.`);
|
|
7545
7597
|
}
|
|
7546
7598
|
},
|
|
7547
7599
|
use(plugin, ...options) {
|
|
7548
7600
|
if (installedPlugins.has(plugin)) {
|
|
7549
|
-
warn
|
|
7601
|
+
warn(`Plugin has already been applied to target app.`);
|
|
7550
7602
|
}
|
|
7551
7603
|
else if (plugin && isFunction(plugin.install)) {
|
|
7552
7604
|
installedPlugins.add(plugin);
|
|
@@ -7557,7 +7609,7 @@ var Vue = (function () {
|
|
|
7557
7609
|
plugin(app, ...options);
|
|
7558
7610
|
}
|
|
7559
7611
|
else {
|
|
7560
|
-
warn
|
|
7612
|
+
warn(`A plugin must either be a function or an object with an "install" ` +
|
|
7561
7613
|
`function.`);
|
|
7562
7614
|
}
|
|
7563
7615
|
return app;
|
|
@@ -7568,7 +7620,7 @@ var Vue = (function () {
|
|
|
7568
7620
|
context.mixins.push(mixin);
|
|
7569
7621
|
}
|
|
7570
7622
|
else {
|
|
7571
|
-
warn
|
|
7623
|
+
warn('Mixin has already been applied to target app' +
|
|
7572
7624
|
(mixin.name ? `: ${mixin.name}` : ''));
|
|
7573
7625
|
}
|
|
7574
7626
|
}
|
|
@@ -7582,7 +7634,7 @@ var Vue = (function () {
|
|
|
7582
7634
|
return context.components[name];
|
|
7583
7635
|
}
|
|
7584
7636
|
if (context.components[name]) {
|
|
7585
|
-
warn
|
|
7637
|
+
warn(`Component "${name}" has already been registered in target app.`);
|
|
7586
7638
|
}
|
|
7587
7639
|
context.components[name] = component;
|
|
7588
7640
|
return app;
|
|
@@ -7595,7 +7647,7 @@ var Vue = (function () {
|
|
|
7595
7647
|
return context.directives[name];
|
|
7596
7648
|
}
|
|
7597
7649
|
if (context.directives[name]) {
|
|
7598
|
-
warn
|
|
7650
|
+
warn(`Directive "${name}" has already been registered in target app.`);
|
|
7599
7651
|
}
|
|
7600
7652
|
context.directives[name] = directive;
|
|
7601
7653
|
return app;
|
|
@@ -7604,7 +7656,7 @@ var Vue = (function () {
|
|
|
7604
7656
|
if (!isMounted) {
|
|
7605
7657
|
// #5571
|
|
7606
7658
|
if (rootContainer.__vue_app__) {
|
|
7607
|
-
warn
|
|
7659
|
+
warn(`There is already an app instance mounted on the host container.\n` +
|
|
7608
7660
|
` If you want to mount another app on the same host container,` +
|
|
7609
7661
|
` you need to unmount the previous app by calling \`app.unmount()\` first.`);
|
|
7610
7662
|
}
|
|
@@ -7634,7 +7686,7 @@ var Vue = (function () {
|
|
|
7634
7686
|
return getExposeProxy(vnode.component) || vnode.component.proxy;
|
|
7635
7687
|
}
|
|
7636
7688
|
else {
|
|
7637
|
-
warn
|
|
7689
|
+
warn(`App has already been mounted.\n` +
|
|
7638
7690
|
`If you want to remount the same app, move your app creation logic ` +
|
|
7639
7691
|
`into a factory function and create fresh app instances for each ` +
|
|
7640
7692
|
`mount - e.g. \`const createMyApp = () => createApp(App)\``);
|
|
@@ -7650,12 +7702,12 @@ var Vue = (function () {
|
|
|
7650
7702
|
delete app._container.__vue_app__;
|
|
7651
7703
|
}
|
|
7652
7704
|
else {
|
|
7653
|
-
warn
|
|
7705
|
+
warn(`Cannot unmount an app that is not mounted.`);
|
|
7654
7706
|
}
|
|
7655
7707
|
},
|
|
7656
7708
|
provide(key, value) {
|
|
7657
7709
|
if (key in context.provides) {
|
|
7658
|
-
warn
|
|
7710
|
+
warn(`App already provides property with key "${String(key)}". ` +
|
|
7659
7711
|
`It will be overwritten with the new value.`);
|
|
7660
7712
|
}
|
|
7661
7713
|
context.provides[key] = value;
|
|
@@ -7688,7 +7740,7 @@ var Vue = (function () {
|
|
|
7688
7740
|
const value = isUnmount ? null : refValue;
|
|
7689
7741
|
const { i: owner, r: ref } = rawRef;
|
|
7690
7742
|
if (!owner) {
|
|
7691
|
-
warn
|
|
7743
|
+
warn(`Missing ref owner context. ref cannot be used on hoisted vnodes. ` +
|
|
7692
7744
|
`A vnode with ref must be created inside the render function.`);
|
|
7693
7745
|
return;
|
|
7694
7746
|
}
|
|
@@ -7755,7 +7807,7 @@ var Vue = (function () {
|
|
|
7755
7807
|
refs[rawRef.k] = value;
|
|
7756
7808
|
}
|
|
7757
7809
|
else {
|
|
7758
|
-
warn
|
|
7810
|
+
warn('Invalid template ref type:', ref, `(${typeof ref})`);
|
|
7759
7811
|
}
|
|
7760
7812
|
};
|
|
7761
7813
|
if (value) {
|
|
@@ -7767,7 +7819,7 @@ var Vue = (function () {
|
|
|
7767
7819
|
}
|
|
7768
7820
|
}
|
|
7769
7821
|
else {
|
|
7770
|
-
warn
|
|
7822
|
+
warn('Invalid template ref type:', ref, `(${typeof ref})`);
|
|
7771
7823
|
}
|
|
7772
7824
|
}
|
|
7773
7825
|
}
|
|
@@ -7784,7 +7836,7 @@ var Vue = (function () {
|
|
|
7784
7836
|
const { mt: mountComponent, p: patch, o: { patchProp, createText, nextSibling, parentNode, remove, insert, createComment } } = rendererInternals;
|
|
7785
7837
|
const hydrate = (vnode, container) => {
|
|
7786
7838
|
if (!container.hasChildNodes()) {
|
|
7787
|
-
warn
|
|
7839
|
+
warn(`Attempting to hydrate existing markup but container is empty. ` +
|
|
7788
7840
|
`Performing full mount instead.`);
|
|
7789
7841
|
patch(null, vnode, container);
|
|
7790
7842
|
flushPostFlushCbs();
|
|
@@ -7827,7 +7879,7 @@ var Vue = (function () {
|
|
|
7827
7879
|
else {
|
|
7828
7880
|
if (node.data !== vnode.children) {
|
|
7829
7881
|
hasMismatch = true;
|
|
7830
|
-
warn
|
|
7882
|
+
warn(`Hydration text mismatch:` +
|
|
7831
7883
|
`\n- Client: ${JSON.stringify(node.data)}` +
|
|
7832
7884
|
`\n- Server: ${JSON.stringify(vnode.children)}`);
|
|
7833
7885
|
node.data = vnode.children;
|
|
@@ -7942,7 +7994,7 @@ var Vue = (function () {
|
|
|
7942
7994
|
nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, isSVGContainer(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode);
|
|
7943
7995
|
}
|
|
7944
7996
|
else {
|
|
7945
|
-
warn
|
|
7997
|
+
warn('Invalid HostVNode type:', type, `(${typeof type})`);
|
|
7946
7998
|
}
|
|
7947
7999
|
}
|
|
7948
8000
|
if (ref != null) {
|
|
@@ -8003,7 +8055,7 @@ var Vue = (function () {
|
|
|
8003
8055
|
while (next) {
|
|
8004
8056
|
hasMismatch = true;
|
|
8005
8057
|
if (!hasWarned) {
|
|
8006
|
-
warn
|
|
8058
|
+
warn(`Hydration children mismatch in <${vnode.type}>: ` +
|
|
8007
8059
|
`server rendered element contains more child nodes than client vdom.`);
|
|
8008
8060
|
hasWarned = true;
|
|
8009
8061
|
}
|
|
@@ -8016,7 +8068,7 @@ var Vue = (function () {
|
|
|
8016
8068
|
else if (shapeFlag & 8 /* ShapeFlags.TEXT_CHILDREN */) {
|
|
8017
8069
|
if (el.textContent !== vnode.children) {
|
|
8018
8070
|
hasMismatch = true;
|
|
8019
|
-
warn
|
|
8071
|
+
warn(`Hydration text content mismatch in <${vnode.type}>:\n` +
|
|
8020
8072
|
`- Client: ${el.textContent}\n` +
|
|
8021
8073
|
`- Server: ${vnode.children}`);
|
|
8022
8074
|
el.textContent = vnode.children;
|
|
@@ -8043,7 +8095,7 @@ var Vue = (function () {
|
|
|
8043
8095
|
else {
|
|
8044
8096
|
hasMismatch = true;
|
|
8045
8097
|
if (!hasWarned) {
|
|
8046
|
-
warn
|
|
8098
|
+
warn(`Hydration children mismatch in <${container.tagName.toLowerCase()}>: ` +
|
|
8047
8099
|
`server rendered element contains fewer child nodes than client vdom.`);
|
|
8048
8100
|
hasWarned = true;
|
|
8049
8101
|
}
|
|
@@ -8076,7 +8128,7 @@ var Vue = (function () {
|
|
|
8076
8128
|
};
|
|
8077
8129
|
const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {
|
|
8078
8130
|
hasMismatch = true;
|
|
8079
|
-
warn
|
|
8131
|
+
warn(`Hydration node mismatch:\n- Client vnode:`, vnode.type, `\n- Server rendered DOM:`, node, node.nodeType === 3 /* DOMNodeTypes.TEXT */
|
|
8080
8132
|
? `(text)`
|
|
8081
8133
|
: isComment(node) && node.data === '['
|
|
8082
8134
|
? `(start of fragment)`
|
|
@@ -8244,7 +8296,7 @@ var Vue = (function () {
|
|
|
8244
8296
|
type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals);
|
|
8245
8297
|
}
|
|
8246
8298
|
else {
|
|
8247
|
-
warn
|
|
8299
|
+
warn('Invalid VNode type:', type, `(${typeof type})`);
|
|
8248
8300
|
}
|
|
8249
8301
|
}
|
|
8250
8302
|
// set ref
|
|
@@ -8334,6 +8386,8 @@ var Vue = (function () {
|
|
|
8334
8386
|
if (dirs) {
|
|
8335
8387
|
invokeDirectiveHook(vnode, null, parentComponent, 'created');
|
|
8336
8388
|
}
|
|
8389
|
+
// scopeId
|
|
8390
|
+
setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent);
|
|
8337
8391
|
// props
|
|
8338
8392
|
if (props) {
|
|
8339
8393
|
for (const key in props) {
|
|
@@ -8357,8 +8411,6 @@ var Vue = (function () {
|
|
|
8357
8411
|
invokeVNodeHook(vnodeHook, parentComponent, vnode);
|
|
8358
8412
|
}
|
|
8359
8413
|
}
|
|
8360
|
-
// scopeId
|
|
8361
|
-
setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent);
|
|
8362
8414
|
{
|
|
8363
8415
|
Object.defineProperty(el, '__vnode', {
|
|
8364
8416
|
value: vnode,
|
|
@@ -9087,7 +9139,7 @@ var Vue = (function () {
|
|
|
9087
9139
|
: normalizeVNode(c2[i]));
|
|
9088
9140
|
if (nextChild.key != null) {
|
|
9089
9141
|
if (keyToNewIndexMap.has(nextChild.key)) {
|
|
9090
|
-
warn
|
|
9142
|
+
warn(`Duplicate keys found during update:`, JSON.stringify(nextChild.key), `Make sure keys are unique.`);
|
|
9091
9143
|
}
|
|
9092
9144
|
keyToNewIndexMap.set(nextChild.key, i);
|
|
9093
9145
|
}
|
|
@@ -9538,14 +9590,14 @@ var Vue = (function () {
|
|
|
9538
9590
|
const targetSelector = props && props.to;
|
|
9539
9591
|
if (isString(targetSelector)) {
|
|
9540
9592
|
if (!select) {
|
|
9541
|
-
warn
|
|
9593
|
+
warn(`Current renderer does not support string target for Teleports. ` +
|
|
9542
9594
|
`(missing querySelector renderer option)`);
|
|
9543
9595
|
return null;
|
|
9544
9596
|
}
|
|
9545
9597
|
else {
|
|
9546
9598
|
const target = select(targetSelector);
|
|
9547
9599
|
if (!target) {
|
|
9548
|
-
warn
|
|
9600
|
+
warn(`Failed to locate Teleport target with selector "${targetSelector}". ` +
|
|
9549
9601
|
`Note the target element must exist before the component is mounted - ` +
|
|
9550
9602
|
`i.e. the target cannot be rendered by the component itself, and ` +
|
|
9551
9603
|
`ideally should be outside of the entire Vue component tree.`);
|
|
@@ -9555,7 +9607,7 @@ var Vue = (function () {
|
|
|
9555
9607
|
}
|
|
9556
9608
|
else {
|
|
9557
9609
|
if (!targetSelector && !isTeleportDisabled(props)) {
|
|
9558
|
-
warn
|
|
9610
|
+
warn(`Invalid Teleport target: ${targetSelector}`);
|
|
9559
9611
|
}
|
|
9560
9612
|
return targetSelector;
|
|
9561
9613
|
}
|
|
@@ -9588,7 +9640,7 @@ var Vue = (function () {
|
|
|
9588
9640
|
isSVG = isSVG || isTargetSVG(target);
|
|
9589
9641
|
}
|
|
9590
9642
|
else if (!disabled) {
|
|
9591
|
-
warn
|
|
9643
|
+
warn('Invalid Teleport target on mount:', target, `(${typeof target})`);
|
|
9592
9644
|
}
|
|
9593
9645
|
const mount = (container, anchor) => {
|
|
9594
9646
|
// Teleport *always* has Array children. This is enforced in both the
|
|
@@ -9640,7 +9692,7 @@ var Vue = (function () {
|
|
|
9640
9692
|
moveTeleport(n2, nextTarget, null, internals, 0 /* TeleportMoveTypes.TARGET_CHANGE */);
|
|
9641
9693
|
}
|
|
9642
9694
|
else {
|
|
9643
|
-
warn
|
|
9695
|
+
warn('Invalid Teleport target on update:', target, `(${typeof target})`);
|
|
9644
9696
|
}
|
|
9645
9697
|
}
|
|
9646
9698
|
else if (wasDisabled) {
|
|
@@ -9981,7 +10033,7 @@ var Vue = (function () {
|
|
|
9981
10033
|
}
|
|
9982
10034
|
// validate key
|
|
9983
10035
|
if (vnode.key !== vnode.key) {
|
|
9984
|
-
warn
|
|
10036
|
+
warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
|
|
9985
10037
|
}
|
|
9986
10038
|
// track vnode for block tree
|
|
9987
10039
|
if (isBlockTreeEnabled > 0 &&
|
|
@@ -10009,7 +10061,7 @@ var Vue = (function () {
|
|
|
10009
10061
|
function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
|
|
10010
10062
|
if (!type || type === NULL_DYNAMIC_COMPONENT) {
|
|
10011
10063
|
if (!type) {
|
|
10012
|
-
warn
|
|
10064
|
+
warn(`Invalid vnode type when creating vnode: ${type}.`);
|
|
10013
10065
|
}
|
|
10014
10066
|
type = Comment;
|
|
10015
10067
|
}
|
|
@@ -10071,7 +10123,7 @@ var Vue = (function () {
|
|
|
10071
10123
|
: 0;
|
|
10072
10124
|
if (shapeFlag & 4 /* ShapeFlags.STATEFUL_COMPONENT */ && isProxy(type)) {
|
|
10073
10125
|
type = toRaw(type);
|
|
10074
|
-
warn
|
|
10126
|
+
warn(`Vue received a Component which was made a reactive object. This can ` +
|
|
10075
10127
|
`lead to unnecessary performance overhead, and should be avoided by ` +
|
|
10076
10128
|
`marking the component with \`markRaw\` or using \`shallowRef\` ` +
|
|
10077
10129
|
`instead of \`ref\`.`, `\nComponent that was made reactive: `, type);
|
|
@@ -10139,7 +10191,8 @@ var Vue = (function () {
|
|
|
10139
10191
|
ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
|
|
10140
10192
|
el: vnode.el,
|
|
10141
10193
|
anchor: vnode.anchor,
|
|
10142
|
-
ctx: vnode.ctx
|
|
10194
|
+
ctx: vnode.ctx,
|
|
10195
|
+
ce: vnode.ce
|
|
10143
10196
|
};
|
|
10144
10197
|
{
|
|
10145
10198
|
defineLegacyVNodeProperties(cloned);
|
|
@@ -10309,13 +10362,13 @@ var Vue = (function () {
|
|
|
10309
10362
|
}
|
|
10310
10363
|
|
|
10311
10364
|
const emptyAppContext = createAppContext();
|
|
10312
|
-
let uid
|
|
10365
|
+
let uid = 0;
|
|
10313
10366
|
function createComponentInstance(vnode, parent, suspense) {
|
|
10314
10367
|
const type = vnode.type;
|
|
10315
10368
|
// inherit parent app context - or - if root, adopt from root vnode
|
|
10316
10369
|
const appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext;
|
|
10317
10370
|
const instance = {
|
|
10318
|
-
uid: uid
|
|
10371
|
+
uid: uid++,
|
|
10319
10372
|
vnode,
|
|
10320
10373
|
type,
|
|
10321
10374
|
parent,
|
|
@@ -10385,7 +10438,7 @@ var Vue = (function () {
|
|
|
10385
10438
|
instance.ctx = createDevRenderContext(instance);
|
|
10386
10439
|
}
|
|
10387
10440
|
instance.root = parent ? parent.root : instance;
|
|
10388
|
-
instance.emit = emit
|
|
10441
|
+
instance.emit = emit.bind(null, instance);
|
|
10389
10442
|
// apply custom element special handling
|
|
10390
10443
|
if (vnode.ce) {
|
|
10391
10444
|
vnode.ce(instance);
|
|
@@ -10406,7 +10459,7 @@ var Vue = (function () {
|
|
|
10406
10459
|
function validateComponentName(name, config) {
|
|
10407
10460
|
const appIsNativeTag = config.isNativeTag || NO;
|
|
10408
10461
|
if (isBuiltInTag(name) || appIsNativeTag(name)) {
|
|
10409
|
-
warn
|
|
10462
|
+
warn('Do not use built-in or reserved HTML elements as component id: ' + name);
|
|
10410
10463
|
}
|
|
10411
10464
|
}
|
|
10412
10465
|
function isStatefulComponent(instance) {
|
|
@@ -10445,7 +10498,7 @@ var Vue = (function () {
|
|
|
10445
10498
|
}
|
|
10446
10499
|
}
|
|
10447
10500
|
if (Component.compilerOptions && isRuntimeOnly()) {
|
|
10448
|
-
warn
|
|
10501
|
+
warn(`"compilerOptions" is only supported when using a build of Vue that ` +
|
|
10449
10502
|
`includes the runtime compiler. Since you are using a runtime-only ` +
|
|
10450
10503
|
`build, the options should be passed via your build tool config instead.`);
|
|
10451
10504
|
}
|
|
@@ -10486,7 +10539,7 @@ var Vue = (function () {
|
|
|
10486
10539
|
instance.asyncDep = setupResult;
|
|
10487
10540
|
if (!instance.suspense) {
|
|
10488
10541
|
const name = (_a = Component.name) !== null && _a !== void 0 ? _a : 'Anonymous';
|
|
10489
|
-
warn
|
|
10542
|
+
warn(`Component <${name}>: setup function returned a promise, but no ` +
|
|
10490
10543
|
`<Suspense> boundary was found in the parent component tree. ` +
|
|
10491
10544
|
`A component with async setup() must be nested in a <Suspense> ` +
|
|
10492
10545
|
`in order to be rendered.`);
|
|
@@ -10510,7 +10563,7 @@ var Vue = (function () {
|
|
|
10510
10563
|
}
|
|
10511
10564
|
else if (isObject(setupResult)) {
|
|
10512
10565
|
if (isVNode(setupResult)) {
|
|
10513
|
-
warn
|
|
10566
|
+
warn(`setup() should not return VNodes directly - ` +
|
|
10514
10567
|
`return a render function instead.`);
|
|
10515
10568
|
}
|
|
10516
10569
|
// setup returned bindings.
|
|
@@ -10524,7 +10577,7 @@ var Vue = (function () {
|
|
|
10524
10577
|
}
|
|
10525
10578
|
}
|
|
10526
10579
|
else if (setupResult !== undefined) {
|
|
10527
|
-
warn
|
|
10580
|
+
warn(`setup() should return an object. Received: ${setupResult === null ? 'null' : typeof setupResult}`);
|
|
10528
10581
|
}
|
|
10529
10582
|
finishComponentSetup(instance, isSSR);
|
|
10530
10583
|
}
|
|
@@ -10607,13 +10660,13 @@ var Vue = (function () {
|
|
|
10607
10660
|
if (!Component.render && instance.render === NOOP && !isSSR) {
|
|
10608
10661
|
/* istanbul ignore if */
|
|
10609
10662
|
if (!compile && Component.template) {
|
|
10610
|
-
warn
|
|
10663
|
+
warn(`Component provided template option but ` +
|
|
10611
10664
|
`runtime compilation is not supported in this build of Vue.` +
|
|
10612
10665
|
(` Use "vue.global.js" instead.`
|
|
10613
10666
|
) /* should not happen */);
|
|
10614
10667
|
}
|
|
10615
10668
|
else {
|
|
10616
|
-
warn
|
|
10669
|
+
warn(`Component is missing template or render function.`);
|
|
10617
10670
|
}
|
|
10618
10671
|
}
|
|
10619
10672
|
}
|
|
@@ -10625,11 +10678,11 @@ var Vue = (function () {
|
|
|
10625
10678
|
return target[key];
|
|
10626
10679
|
},
|
|
10627
10680
|
set() {
|
|
10628
|
-
warn
|
|
10681
|
+
warn(`setupContext.attrs is readonly.`);
|
|
10629
10682
|
return false;
|
|
10630
10683
|
},
|
|
10631
10684
|
deleteProperty() {
|
|
10632
|
-
warn
|
|
10685
|
+
warn(`setupContext.attrs is readonly.`);
|
|
10633
10686
|
return false;
|
|
10634
10687
|
}
|
|
10635
10688
|
}
|
|
@@ -10637,8 +10690,24 @@ var Vue = (function () {
|
|
|
10637
10690
|
}
|
|
10638
10691
|
function createSetupContext(instance) {
|
|
10639
10692
|
const expose = exposed => {
|
|
10640
|
-
|
|
10641
|
-
|
|
10693
|
+
{
|
|
10694
|
+
if (instance.exposed) {
|
|
10695
|
+
warn(`expose() should be called only once per setup().`);
|
|
10696
|
+
}
|
|
10697
|
+
if (exposed != null) {
|
|
10698
|
+
let exposedType = typeof exposed;
|
|
10699
|
+
if (exposedType === 'object') {
|
|
10700
|
+
if (isArray(exposed)) {
|
|
10701
|
+
exposedType = 'array';
|
|
10702
|
+
}
|
|
10703
|
+
else if (isRef(exposed)) {
|
|
10704
|
+
exposedType = 'ref';
|
|
10705
|
+
}
|
|
10706
|
+
}
|
|
10707
|
+
if (exposedType !== 'object') {
|
|
10708
|
+
warn(`expose() should be passed a plain object, received ${exposedType}.`);
|
|
10709
|
+
}
|
|
10710
|
+
}
|
|
10642
10711
|
}
|
|
10643
10712
|
instance.exposed = exposed || {};
|
|
10644
10713
|
};
|
|
@@ -10713,13 +10782,13 @@ var Vue = (function () {
|
|
|
10713
10782
|
return isFunction(value) && '__vccOpts' in value;
|
|
10714
10783
|
}
|
|
10715
10784
|
|
|
10716
|
-
const computed
|
|
10785
|
+
const computed = ((getterOrOptions, debugOptions) => {
|
|
10717
10786
|
// @ts-ignore
|
|
10718
|
-
return computed(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
10787
|
+
return computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
10719
10788
|
});
|
|
10720
10789
|
|
|
10721
10790
|
// dev only
|
|
10722
|
-
const warnRuntimeUsage = (method) => warn
|
|
10791
|
+
const warnRuntimeUsage = (method) => warn(`${method}() is a compiler-hint helper that is only usable inside ` +
|
|
10723
10792
|
`<script setup> of a single file component. Its arguments should be ` +
|
|
10724
10793
|
`compiled away and passing it at runtime has no effect.`);
|
|
10725
10794
|
// implementation
|
|
@@ -10786,7 +10855,7 @@ var Vue = (function () {
|
|
|
10786
10855
|
function getContext() {
|
|
10787
10856
|
const i = getCurrentInstance();
|
|
10788
10857
|
if (!i) {
|
|
10789
|
-
warn
|
|
10858
|
+
warn(`useContext() called without active instance.`);
|
|
10790
10859
|
}
|
|
10791
10860
|
return i.setupContext || (i.setupContext = createSetupContext(i));
|
|
10792
10861
|
}
|
|
@@ -10813,7 +10882,7 @@ var Vue = (function () {
|
|
|
10813
10882
|
props[key] = { default: defaults[key] };
|
|
10814
10883
|
}
|
|
10815
10884
|
else {
|
|
10816
|
-
warn
|
|
10885
|
+
warn(`props default key "${key}" has no corresponding declaration.`);
|
|
10817
10886
|
}
|
|
10818
10887
|
}
|
|
10819
10888
|
return props;
|
|
@@ -10856,7 +10925,7 @@ var Vue = (function () {
|
|
|
10856
10925
|
function withAsyncContext(getAwaitable) {
|
|
10857
10926
|
const ctx = getCurrentInstance();
|
|
10858
10927
|
if (!ctx) {
|
|
10859
|
-
warn
|
|
10928
|
+
warn(`withAsyncContext called without active current instance. ` +
|
|
10860
10929
|
`This is likely a bug.`);
|
|
10861
10930
|
}
|
|
10862
10931
|
let awaitable = getAwaitable();
|
|
@@ -10901,7 +10970,7 @@ var Vue = (function () {
|
|
|
10901
10970
|
const ssrContextKey = Symbol(`ssrContext` );
|
|
10902
10971
|
const useSSRContext = () => {
|
|
10903
10972
|
{
|
|
10904
|
-
warn
|
|
10973
|
+
warn(`useSSRContext() is not supported in the global build.`);
|
|
10905
10974
|
}
|
|
10906
10975
|
};
|
|
10907
10976
|
|
|
@@ -11122,7 +11191,7 @@ var Vue = (function () {
|
|
|
11122
11191
|
}
|
|
11123
11192
|
|
|
11124
11193
|
// Core API ------------------------------------------------------------------
|
|
11125
|
-
const version = "3.2.
|
|
11194
|
+
const version = "3.2.47";
|
|
11126
11195
|
/**
|
|
11127
11196
|
* SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
|
|
11128
11197
|
* @internal
|
|
@@ -11131,10 +11200,10 @@ var Vue = (function () {
|
|
|
11131
11200
|
/**
|
|
11132
11201
|
* @internal only exposed in compat builds
|
|
11133
11202
|
*/
|
|
11134
|
-
const resolveFilter
|
|
11203
|
+
const resolveFilter = resolveFilter$1 ;
|
|
11135
11204
|
const _compatUtils = {
|
|
11136
11205
|
warnDeprecation,
|
|
11137
|
-
createCompatVue,
|
|
11206
|
+
createCompatVue: createCompatVue$1,
|
|
11138
11207
|
isCompatEnabled,
|
|
11139
11208
|
checkCompatEnabled,
|
|
11140
11209
|
softAssertCompatEnabled
|
|
@@ -11246,9 +11315,6 @@ var Vue = (function () {
|
|
|
11246
11315
|
const style = el.style;
|
|
11247
11316
|
const isCssString = isString(next);
|
|
11248
11317
|
if (next && !isCssString) {
|
|
11249
|
-
for (const key in next) {
|
|
11250
|
-
setStyle(style, key, next[key]);
|
|
11251
|
-
}
|
|
11252
11318
|
if (prev && !isString(prev)) {
|
|
11253
11319
|
for (const key in prev) {
|
|
11254
11320
|
if (next[key] == null) {
|
|
@@ -11256,6 +11322,9 @@ var Vue = (function () {
|
|
|
11256
11322
|
}
|
|
11257
11323
|
}
|
|
11258
11324
|
}
|
|
11325
|
+
for (const key in next) {
|
|
11326
|
+
setStyle(style, key, next[key]);
|
|
11327
|
+
}
|
|
11259
11328
|
}
|
|
11260
11329
|
else {
|
|
11261
11330
|
const currentDisplay = style.display;
|
|
@@ -11286,7 +11355,7 @@ var Vue = (function () {
|
|
|
11286
11355
|
val = '';
|
|
11287
11356
|
{
|
|
11288
11357
|
if (semicolonRE.test(val)) {
|
|
11289
|
-
warn
|
|
11358
|
+
warn(`Unexpected semicolon at the end of '${name}' style value: '${val}'`);
|
|
11290
11359
|
}
|
|
11291
11360
|
}
|
|
11292
11361
|
if (name.startsWith('--')) {
|
|
@@ -11448,7 +11517,7 @@ var Vue = (function () {
|
|
|
11448
11517
|
catch (e) {
|
|
11449
11518
|
// do not warn if value is auto-coerced from nullish values
|
|
11450
11519
|
if (!needRemove) {
|
|
11451
|
-
warn
|
|
11520
|
+
warn(`Failed setting prop "${key}" on <${el.tagName.toLowerCase()}>: ` +
|
|
11452
11521
|
`value ${value} is invalid.`, e);
|
|
11453
11522
|
}
|
|
11454
11523
|
}
|
|
@@ -11652,7 +11721,7 @@ var Vue = (function () {
|
|
|
11652
11721
|
}
|
|
11653
11722
|
else {
|
|
11654
11723
|
if (this.shadowRoot) {
|
|
11655
|
-
warn
|
|
11724
|
+
warn(`Custom element has pre-rendered declarative shadow root but is not ` +
|
|
11656
11725
|
`defined as hydratable. Use \`defineSSRCustomElement\`.`);
|
|
11657
11726
|
}
|
|
11658
11727
|
this.attachShadow({ mode: 'open' });
|
|
@@ -11858,7 +11927,7 @@ var Vue = (function () {
|
|
|
11858
11927
|
/* istanbul ignore else */
|
|
11859
11928
|
{
|
|
11860
11929
|
{
|
|
11861
|
-
warn
|
|
11930
|
+
warn(`useCssModule() is not supported in the global build.`);
|
|
11862
11931
|
}
|
|
11863
11932
|
return EMPTY_OBJ;
|
|
11864
11933
|
}
|
|
@@ -11872,7 +11941,7 @@ var Vue = (function () {
|
|
|
11872
11941
|
const instance = getCurrentInstance();
|
|
11873
11942
|
/* istanbul ignore next */
|
|
11874
11943
|
if (!instance) {
|
|
11875
|
-
warn
|
|
11944
|
+
warn(`useCssVars is called without current active component instance.`);
|
|
11876
11945
|
return;
|
|
11877
11946
|
}
|
|
11878
11947
|
const updateTeleports = (instance.ut = (vars = getter(instance.proxy)) => {
|
|
@@ -11962,7 +12031,7 @@ var Vue = (function () {
|
|
|
11962
12031
|
* #3227 Incoming hooks may be merged into arrays when wrapping Transition
|
|
11963
12032
|
* with custom HOCs.
|
|
11964
12033
|
*/
|
|
11965
|
-
const callHook
|
|
12034
|
+
const callHook = (hook, args = []) => {
|
|
11966
12035
|
if (isArray(hook)) {
|
|
11967
12036
|
hook.forEach(h => h(...args));
|
|
11968
12037
|
}
|
|
@@ -12029,11 +12098,16 @@ var Vue = (function () {
|
|
|
12029
12098
|
return (el, done) => {
|
|
12030
12099
|
const hook = isAppear ? onAppear : onEnter;
|
|
12031
12100
|
const resolve = () => finishEnter(el, isAppear, done);
|
|
12032
|
-
callHook
|
|
12101
|
+
callHook(hook, [el, resolve]);
|
|
12033
12102
|
nextFrame(() => {
|
|
12034
12103
|
removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass);
|
|
12035
12104
|
if (legacyClassEnabled) {
|
|
12036
|
-
|
|
12105
|
+
const legacyClass = isAppear
|
|
12106
|
+
? legacyAppearFromClass
|
|
12107
|
+
: legacyEnterFromClass;
|
|
12108
|
+
if (legacyClass) {
|
|
12109
|
+
removeTransitionClass(el, legacyClass);
|
|
12110
|
+
}
|
|
12037
12111
|
}
|
|
12038
12112
|
addTransitionClass(el, isAppear ? appearToClass : enterToClass);
|
|
12039
12113
|
if (!hasExplicitCallback(hook)) {
|
|
@@ -12044,17 +12118,17 @@ var Vue = (function () {
|
|
|
12044
12118
|
};
|
|
12045
12119
|
return extend(baseProps, {
|
|
12046
12120
|
onBeforeEnter(el) {
|
|
12047
|
-
callHook
|
|
12121
|
+
callHook(onBeforeEnter, [el]);
|
|
12048
12122
|
addTransitionClass(el, enterFromClass);
|
|
12049
|
-
if (legacyClassEnabled) {
|
|
12123
|
+
if (legacyClassEnabled && legacyEnterFromClass) {
|
|
12050
12124
|
addTransitionClass(el, legacyEnterFromClass);
|
|
12051
12125
|
}
|
|
12052
12126
|
addTransitionClass(el, enterActiveClass);
|
|
12053
12127
|
},
|
|
12054
12128
|
onBeforeAppear(el) {
|
|
12055
|
-
callHook
|
|
12129
|
+
callHook(onBeforeAppear, [el]);
|
|
12056
12130
|
addTransitionClass(el, appearFromClass);
|
|
12057
|
-
if (legacyClassEnabled) {
|
|
12131
|
+
if (legacyClassEnabled && legacyAppearFromClass) {
|
|
12058
12132
|
addTransitionClass(el, legacyAppearFromClass);
|
|
12059
12133
|
}
|
|
12060
12134
|
addTransitionClass(el, appearActiveClass);
|
|
@@ -12065,7 +12139,7 @@ var Vue = (function () {
|
|
|
12065
12139
|
el._isLeaving = true;
|
|
12066
12140
|
const resolve = () => finishLeave(el, done);
|
|
12067
12141
|
addTransitionClass(el, leaveFromClass);
|
|
12068
|
-
if (legacyClassEnabled) {
|
|
12142
|
+
if (legacyClassEnabled && legacyLeaveFromClass) {
|
|
12069
12143
|
addTransitionClass(el, legacyLeaveFromClass);
|
|
12070
12144
|
}
|
|
12071
12145
|
// force reflow so *-leave-from classes immediately take effect (#2593)
|
|
@@ -12077,7 +12151,7 @@ var Vue = (function () {
|
|
|
12077
12151
|
return;
|
|
12078
12152
|
}
|
|
12079
12153
|
removeTransitionClass(el, leaveFromClass);
|
|
12080
|
-
if (legacyClassEnabled) {
|
|
12154
|
+
if (legacyClassEnabled && legacyLeaveFromClass) {
|
|
12081
12155
|
removeTransitionClass(el, legacyLeaveFromClass);
|
|
12082
12156
|
}
|
|
12083
12157
|
addTransitionClass(el, leaveToClass);
|
|
@@ -12085,19 +12159,19 @@ var Vue = (function () {
|
|
|
12085
12159
|
whenTransitionEnds(el, type, leaveDuration, resolve);
|
|
12086
12160
|
}
|
|
12087
12161
|
});
|
|
12088
|
-
callHook
|
|
12162
|
+
callHook(onLeave, [el, resolve]);
|
|
12089
12163
|
},
|
|
12090
12164
|
onEnterCancelled(el) {
|
|
12091
12165
|
finishEnter(el, false);
|
|
12092
|
-
callHook
|
|
12166
|
+
callHook(onEnterCancelled, [el]);
|
|
12093
12167
|
},
|
|
12094
12168
|
onAppearCancelled(el) {
|
|
12095
12169
|
finishEnter(el, true);
|
|
12096
|
-
callHook
|
|
12170
|
+
callHook(onAppearCancelled, [el]);
|
|
12097
12171
|
},
|
|
12098
12172
|
onLeaveCancelled(el) {
|
|
12099
12173
|
finishLeave(el);
|
|
12100
|
-
callHook
|
|
12174
|
+
callHook(onLeaveCancelled, [el]);
|
|
12101
12175
|
}
|
|
12102
12176
|
});
|
|
12103
12177
|
}
|
|
@@ -12115,18 +12189,10 @@ var Vue = (function () {
|
|
|
12115
12189
|
}
|
|
12116
12190
|
function NumberOf(val) {
|
|
12117
12191
|
const res = toNumber(val);
|
|
12118
|
-
|
|
12119
|
-
|
|
12120
|
-
}
|
|
12121
|
-
function validateDuration(val) {
|
|
12122
|
-
if (typeof val !== 'number') {
|
|
12123
|
-
warn$1(`<transition> explicit duration is not a valid number - ` +
|
|
12124
|
-
`got ${JSON.stringify(val)}.`);
|
|
12125
|
-
}
|
|
12126
|
-
else if (isNaN(val)) {
|
|
12127
|
-
warn$1(`<transition> explicit duration is NaN - ` +
|
|
12128
|
-
'the duration expression might be incorrect.');
|
|
12192
|
+
{
|
|
12193
|
+
assertNumber(res, '<transition> explicit duration');
|
|
12129
12194
|
}
|
|
12195
|
+
return res;
|
|
12130
12196
|
}
|
|
12131
12197
|
function addTransitionClass(el, cls) {
|
|
12132
12198
|
cls.split(/\s+/).forEach(c => c && el.classList.add(c));
|
|
@@ -12313,7 +12379,7 @@ var Vue = (function () {
|
|
|
12313
12379
|
setTransitionHooks(child, resolveTransitionHooks(child, cssTransitionProps, state, instance));
|
|
12314
12380
|
}
|
|
12315
12381
|
else {
|
|
12316
|
-
warn
|
|
12382
|
+
warn(`<TransitionGroup> children must be keyed.`);
|
|
12317
12383
|
}
|
|
12318
12384
|
}
|
|
12319
12385
|
if (prevChildren) {
|
|
@@ -12330,6 +12396,14 @@ var Vue = (function () {
|
|
|
12330
12396
|
{
|
|
12331
12397
|
TransitionGroupImpl.__isBuiltIn = true;
|
|
12332
12398
|
}
|
|
12399
|
+
/**
|
|
12400
|
+
* TransitionGroup does not support "mode" so we need to remove it from the
|
|
12401
|
+
* props declarations, but direct delete operation is considered a side effect
|
|
12402
|
+
* and will make the entire transition feature non-tree-shakeable, so we do it
|
|
12403
|
+
* in a function and mark the function's invocation as pure.
|
|
12404
|
+
*/
|
|
12405
|
+
const removeMode = (props) => delete props.mode;
|
|
12406
|
+
/*#__PURE__*/ removeMode(TransitionGroupImpl.props);
|
|
12333
12407
|
const TransitionGroup = TransitionGroupImpl;
|
|
12334
12408
|
function callPendingCbs(c) {
|
|
12335
12409
|
const el = c.el;
|
|
@@ -12405,7 +12479,7 @@ var Vue = (function () {
|
|
|
12405
12479
|
domValue = domValue.trim();
|
|
12406
12480
|
}
|
|
12407
12481
|
if (castToNumber) {
|
|
12408
|
-
domValue =
|
|
12482
|
+
domValue = looseToNumber(domValue);
|
|
12409
12483
|
}
|
|
12410
12484
|
el._assign(domValue);
|
|
12411
12485
|
});
|
|
@@ -12440,7 +12514,8 @@ var Vue = (function () {
|
|
|
12440
12514
|
if (trim && el.value.trim() === value) {
|
|
12441
12515
|
return;
|
|
12442
12516
|
}
|
|
12443
|
-
if ((number || el.type === 'number') &&
|
|
12517
|
+
if ((number || el.type === 'number') &&
|
|
12518
|
+
looseToNumber(el.value) === value) {
|
|
12444
12519
|
return;
|
|
12445
12520
|
}
|
|
12446
12521
|
}
|
|
@@ -12529,7 +12604,7 @@ var Vue = (function () {
|
|
|
12529
12604
|
addEventListener(el, 'change', () => {
|
|
12530
12605
|
const selectedVal = Array.prototype.filter
|
|
12531
12606
|
.call(el.options, (o) => o.selected)
|
|
12532
|
-
.map((o) => number ?
|
|
12607
|
+
.map((o) => number ? looseToNumber(getValue(o)) : getValue(o));
|
|
12533
12608
|
el._assign(el.multiple
|
|
12534
12609
|
? isSetModel
|
|
12535
12610
|
? new Set(selectedVal)
|
|
@@ -12553,7 +12628,7 @@ var Vue = (function () {
|
|
|
12553
12628
|
function setSelected(el, value) {
|
|
12554
12629
|
const isMultiple = el.multiple;
|
|
12555
12630
|
if (isMultiple && !isArray(value) && !isSet(value)) {
|
|
12556
|
-
warn
|
|
12631
|
+
warn(`<select multiple v-model> expects an Array or Set value for its binding, ` +
|
|
12557
12632
|
`but got ${Object.prototype.toString.call(value).slice(8, -1)}.`);
|
|
12558
12633
|
return;
|
|
12559
12634
|
}
|
|
@@ -12849,7 +12924,7 @@ var Vue = (function () {
|
|
|
12849
12924
|
return isCustomElement;
|
|
12850
12925
|
},
|
|
12851
12926
|
set() {
|
|
12852
|
-
warn
|
|
12927
|
+
warn(`The \`isCustomElement\` config option is deprecated. Use ` +
|
|
12853
12928
|
`\`compilerOptions.isCustomElement\` instead.`);
|
|
12854
12929
|
}
|
|
12855
12930
|
});
|
|
@@ -12863,11 +12938,11 @@ var Vue = (function () {
|
|
|
12863
12938
|
`- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-dom`;
|
|
12864
12939
|
Object.defineProperty(app.config, 'compilerOptions', {
|
|
12865
12940
|
get() {
|
|
12866
|
-
warn
|
|
12941
|
+
warn(msg);
|
|
12867
12942
|
return compilerOptions;
|
|
12868
12943
|
},
|
|
12869
12944
|
set() {
|
|
12870
|
-
warn
|
|
12945
|
+
warn(msg);
|
|
12871
12946
|
}
|
|
12872
12947
|
});
|
|
12873
12948
|
}
|
|
@@ -12876,14 +12951,14 @@ var Vue = (function () {
|
|
|
12876
12951
|
if (isString(container)) {
|
|
12877
12952
|
const res = document.querySelector(container);
|
|
12878
12953
|
if (!res) {
|
|
12879
|
-
warn
|
|
12954
|
+
warn(`Failed to mount app: mount target selector "${container}" returned null.`);
|
|
12880
12955
|
}
|
|
12881
12956
|
return res;
|
|
12882
12957
|
}
|
|
12883
12958
|
if (window.ShadowRoot &&
|
|
12884
12959
|
container instanceof window.ShadowRoot &&
|
|
12885
12960
|
container.mode === 'closed') {
|
|
12886
|
-
warn
|
|
12961
|
+
warn(`mounting on a ShadowRoot with \`{mode: "closed"}\` may lead to unpredictable bugs`);
|
|
12887
12962
|
}
|
|
12888
12963
|
return container;
|
|
12889
12964
|
}
|
|
@@ -12894,150 +12969,151 @@ var Vue = (function () {
|
|
|
12894
12969
|
|
|
12895
12970
|
var runtimeDom = /*#__PURE__*/Object.freeze({
|
|
12896
12971
|
__proto__: null,
|
|
12897
|
-
|
|
12898
|
-
|
|
12972
|
+
BaseTransition: BaseTransition,
|
|
12973
|
+
Comment: Comment,
|
|
12974
|
+
EffectScope: EffectScope,
|
|
12975
|
+
Fragment: Fragment,
|
|
12976
|
+
KeepAlive: KeepAlive,
|
|
12977
|
+
ReactiveEffect: ReactiveEffect,
|
|
12978
|
+
Static: Static,
|
|
12979
|
+
Suspense: Suspense,
|
|
12980
|
+
Teleport: Teleport,
|
|
12981
|
+
Text: Text,
|
|
12982
|
+
Transition: Transition,
|
|
12983
|
+
TransitionGroup: TransitionGroup,
|
|
12984
|
+
VueElement: VueElement,
|
|
12985
|
+
assertNumber: assertNumber,
|
|
12986
|
+
callWithAsyncErrorHandling: callWithAsyncErrorHandling,
|
|
12987
|
+
callWithErrorHandling: callWithErrorHandling,
|
|
12988
|
+
camelize: camelize,
|
|
12989
|
+
capitalize: capitalize,
|
|
12990
|
+
cloneVNode: cloneVNode,
|
|
12991
|
+
compatUtils: compatUtils,
|
|
12992
|
+
computed: computed,
|
|
12899
12993
|
createApp: createApp,
|
|
12994
|
+
createBlock: createBlock,
|
|
12995
|
+
createCommentVNode: createCommentVNode,
|
|
12996
|
+
createElementBlock: createElementBlock,
|
|
12997
|
+
createElementVNode: createBaseVNode,
|
|
12998
|
+
createHydrationRenderer: createHydrationRenderer,
|
|
12999
|
+
createPropsRestProxy: createPropsRestProxy,
|
|
13000
|
+
createRenderer: createRenderer,
|
|
12900
13001
|
createSSRApp: createSSRApp,
|
|
12901
|
-
|
|
13002
|
+
createSlots: createSlots,
|
|
13003
|
+
createStaticVNode: createStaticVNode,
|
|
13004
|
+
createTextVNode: createTextVNode,
|
|
13005
|
+
createVNode: createVNode,
|
|
13006
|
+
customRef: customRef,
|
|
13007
|
+
defineAsyncComponent: defineAsyncComponent,
|
|
13008
|
+
defineComponent: defineComponent,
|
|
12902
13009
|
defineCustomElement: defineCustomElement,
|
|
13010
|
+
defineEmits: defineEmits,
|
|
13011
|
+
defineExpose: defineExpose,
|
|
13012
|
+
defineProps: defineProps,
|
|
12903
13013
|
defineSSRCustomElement: defineSSRCustomElement,
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
|
|
12907
|
-
|
|
12908
|
-
|
|
12909
|
-
|
|
12910
|
-
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
|
|
12914
|
-
|
|
12915
|
-
|
|
12916
|
-
|
|
12917
|
-
|
|
12918
|
-
ref: ref,
|
|
12919
|
-
readonly: readonly,
|
|
12920
|
-
unref: unref,
|
|
12921
|
-
proxyRefs: proxyRefs,
|
|
12922
|
-
isRef: isRef,
|
|
12923
|
-
toRef: toRef,
|
|
12924
|
-
toRefs: toRefs,
|
|
13014
|
+
get devtools () { return devtools; },
|
|
13015
|
+
effect: effect,
|
|
13016
|
+
effectScope: effectScope,
|
|
13017
|
+
getCurrentInstance: getCurrentInstance,
|
|
13018
|
+
getCurrentScope: getCurrentScope,
|
|
13019
|
+
getTransitionRawChildren: getTransitionRawChildren,
|
|
13020
|
+
guardReactiveProps: guardReactiveProps,
|
|
13021
|
+
h: h,
|
|
13022
|
+
handleError: handleError,
|
|
13023
|
+
hydrate: hydrate,
|
|
13024
|
+
initCustomFormatter: initCustomFormatter,
|
|
13025
|
+
initDirectivesForSSR: initDirectivesForSSR,
|
|
13026
|
+
inject: inject,
|
|
13027
|
+
isMemoSame: isMemoSame,
|
|
12925
13028
|
isProxy: isProxy,
|
|
12926
13029
|
isReactive: isReactive,
|
|
12927
13030
|
isReadonly: isReadonly,
|
|
13031
|
+
isRef: isRef,
|
|
13032
|
+
isRuntimeOnly: isRuntimeOnly,
|
|
12928
13033
|
isShallow: isShallow,
|
|
12929
|
-
|
|
12930
|
-
triggerRef: triggerRef,
|
|
12931
|
-
shallowRef: shallowRef,
|
|
12932
|
-
shallowReactive: shallowReactive,
|
|
12933
|
-
shallowReadonly: shallowReadonly,
|
|
13034
|
+
isVNode: isVNode,
|
|
12934
13035
|
markRaw: markRaw,
|
|
12935
|
-
|
|
12936
|
-
|
|
12937
|
-
|
|
12938
|
-
|
|
12939
|
-
|
|
12940
|
-
|
|
12941
|
-
|
|
12942
|
-
onScopeDispose: onScopeDispose,
|
|
12943
|
-
computed: computed$1,
|
|
12944
|
-
watch: watch,
|
|
12945
|
-
watchEffect: watchEffect,
|
|
12946
|
-
watchPostEffect: watchPostEffect,
|
|
12947
|
-
watchSyncEffect: watchSyncEffect,
|
|
13036
|
+
mergeDefaults: mergeDefaults,
|
|
13037
|
+
mergeProps: mergeProps,
|
|
13038
|
+
nextTick: nextTick,
|
|
13039
|
+
normalizeClass: normalizeClass,
|
|
13040
|
+
normalizeProps: normalizeProps,
|
|
13041
|
+
normalizeStyle: normalizeStyle,
|
|
13042
|
+
onActivated: onActivated,
|
|
12948
13043
|
onBeforeMount: onBeforeMount,
|
|
12949
|
-
onMounted: onMounted,
|
|
12950
|
-
onBeforeUpdate: onBeforeUpdate,
|
|
12951
|
-
onUpdated: onUpdated,
|
|
12952
13044
|
onBeforeUnmount: onBeforeUnmount,
|
|
12953
|
-
|
|
12954
|
-
onActivated: onActivated,
|
|
13045
|
+
onBeforeUpdate: onBeforeUpdate,
|
|
12955
13046
|
onDeactivated: onDeactivated,
|
|
13047
|
+
onErrorCaptured: onErrorCaptured,
|
|
13048
|
+
onMounted: onMounted,
|
|
12956
13049
|
onRenderTracked: onRenderTracked,
|
|
12957
13050
|
onRenderTriggered: onRenderTriggered,
|
|
12958
|
-
|
|
13051
|
+
onScopeDispose: onScopeDispose,
|
|
12959
13052
|
onServerPrefetch: onServerPrefetch,
|
|
13053
|
+
onUnmounted: onUnmounted,
|
|
13054
|
+
onUpdated: onUpdated,
|
|
13055
|
+
openBlock: openBlock,
|
|
13056
|
+
popScopeId: popScopeId,
|
|
12960
13057
|
provide: provide,
|
|
12961
|
-
|
|
12962
|
-
|
|
12963
|
-
defineComponent: defineComponent,
|
|
12964
|
-
defineAsyncComponent: defineAsyncComponent,
|
|
12965
|
-
useAttrs: useAttrs,
|
|
12966
|
-
useSlots: useSlots,
|
|
12967
|
-
defineProps: defineProps,
|
|
12968
|
-
defineEmits: defineEmits,
|
|
12969
|
-
defineExpose: defineExpose,
|
|
12970
|
-
withDefaults: withDefaults,
|
|
12971
|
-
mergeDefaults: mergeDefaults,
|
|
12972
|
-
createPropsRestProxy: createPropsRestProxy,
|
|
12973
|
-
withAsyncContext: withAsyncContext,
|
|
12974
|
-
getCurrentInstance: getCurrentInstance,
|
|
12975
|
-
h: h,
|
|
12976
|
-
createVNode: createVNode,
|
|
12977
|
-
cloneVNode: cloneVNode,
|
|
12978
|
-
mergeProps: mergeProps,
|
|
12979
|
-
isVNode: isVNode,
|
|
12980
|
-
Fragment: Fragment,
|
|
12981
|
-
Text: Text,
|
|
12982
|
-
Comment: Comment,
|
|
12983
|
-
Static: Static,
|
|
12984
|
-
Teleport: Teleport,
|
|
12985
|
-
Suspense: Suspense,
|
|
12986
|
-
KeepAlive: KeepAlive,
|
|
12987
|
-
BaseTransition: BaseTransition,
|
|
12988
|
-
withDirectives: withDirectives,
|
|
12989
|
-
useSSRContext: useSSRContext,
|
|
12990
|
-
ssrContextKey: ssrContextKey,
|
|
12991
|
-
createRenderer: createRenderer,
|
|
12992
|
-
createHydrationRenderer: createHydrationRenderer,
|
|
13058
|
+
proxyRefs: proxyRefs,
|
|
13059
|
+
pushScopeId: pushScopeId,
|
|
12993
13060
|
queuePostFlushCb: queuePostFlushCb,
|
|
12994
|
-
|
|
12995
|
-
|
|
12996
|
-
|
|
12997
|
-
|
|
13061
|
+
reactive: reactive,
|
|
13062
|
+
readonly: readonly,
|
|
13063
|
+
ref: ref,
|
|
13064
|
+
registerRuntimeCompiler: registerRuntimeCompiler,
|
|
13065
|
+
render: render,
|
|
13066
|
+
renderList: renderList,
|
|
13067
|
+
renderSlot: renderSlot,
|
|
12998
13068
|
resolveComponent: resolveComponent,
|
|
12999
13069
|
resolveDirective: resolveDirective,
|
|
13000
13070
|
resolveDynamicComponent: resolveDynamicComponent,
|
|
13001
|
-
|
|
13002
|
-
isRuntimeOnly: isRuntimeOnly,
|
|
13003
|
-
useTransitionState: useTransitionState,
|
|
13071
|
+
resolveFilter: resolveFilter,
|
|
13004
13072
|
resolveTransitionHooks: resolveTransitionHooks,
|
|
13005
|
-
setTransitionHooks: setTransitionHooks,
|
|
13006
|
-
getTransitionRawChildren: getTransitionRawChildren,
|
|
13007
|
-
initCustomFormatter: initCustomFormatter,
|
|
13008
|
-
get devtools () { return devtools; },
|
|
13009
|
-
setDevtoolsHook: setDevtoolsHook,
|
|
13010
|
-
withCtx: withCtx,
|
|
13011
|
-
pushScopeId: pushScopeId,
|
|
13012
|
-
popScopeId: popScopeId,
|
|
13013
|
-
withScopeId: withScopeId,
|
|
13014
|
-
renderList: renderList,
|
|
13015
|
-
toHandlers: toHandlers,
|
|
13016
|
-
renderSlot: renderSlot,
|
|
13017
|
-
createSlots: createSlots,
|
|
13018
|
-
withMemo: withMemo,
|
|
13019
|
-
isMemoSame: isMemoSame,
|
|
13020
|
-
openBlock: openBlock,
|
|
13021
|
-
createBlock: createBlock,
|
|
13022
13073
|
setBlockTracking: setBlockTracking,
|
|
13023
|
-
|
|
13024
|
-
|
|
13025
|
-
|
|
13026
|
-
|
|
13027
|
-
|
|
13028
|
-
|
|
13074
|
+
setDevtoolsHook: setDevtoolsHook,
|
|
13075
|
+
setTransitionHooks: setTransitionHooks,
|
|
13076
|
+
shallowReactive: shallowReactive,
|
|
13077
|
+
shallowReadonly: shallowReadonly,
|
|
13078
|
+
shallowRef: shallowRef,
|
|
13079
|
+
ssrContextKey: ssrContextKey,
|
|
13080
|
+
ssrUtils: ssrUtils,
|
|
13081
|
+
stop: stop,
|
|
13029
13082
|
toDisplayString: toDisplayString,
|
|
13030
|
-
camelize: camelize,
|
|
13031
|
-
capitalize: capitalize,
|
|
13032
13083
|
toHandlerKey: toHandlerKey,
|
|
13033
|
-
|
|
13034
|
-
|
|
13035
|
-
|
|
13084
|
+
toHandlers: toHandlers,
|
|
13085
|
+
toRaw: toRaw,
|
|
13086
|
+
toRef: toRef,
|
|
13087
|
+
toRefs: toRefs,
|
|
13036
13088
|
transformVNodeArgs: transformVNodeArgs,
|
|
13089
|
+
triggerRef: triggerRef,
|
|
13090
|
+
unref: unref,
|
|
13091
|
+
useAttrs: useAttrs,
|
|
13092
|
+
useCssModule: useCssModule,
|
|
13093
|
+
useCssVars: useCssVars,
|
|
13094
|
+
useSSRContext: useSSRContext,
|
|
13095
|
+
useSlots: useSlots,
|
|
13096
|
+
useTransitionState: useTransitionState,
|
|
13097
|
+
vModelCheckbox: vModelCheckbox,
|
|
13098
|
+
vModelDynamic: vModelDynamic,
|
|
13099
|
+
vModelRadio: vModelRadio,
|
|
13100
|
+
vModelSelect: vModelSelect,
|
|
13101
|
+
vModelText: vModelText,
|
|
13102
|
+
vShow: vShow,
|
|
13037
13103
|
version: version,
|
|
13038
|
-
|
|
13039
|
-
|
|
13040
|
-
|
|
13104
|
+
warn: warn,
|
|
13105
|
+
watch: watch,
|
|
13106
|
+
watchEffect: watchEffect,
|
|
13107
|
+
watchPostEffect: watchPostEffect,
|
|
13108
|
+
watchSyncEffect: watchSyncEffect,
|
|
13109
|
+
withAsyncContext: withAsyncContext,
|
|
13110
|
+
withCtx: withCtx,
|
|
13111
|
+
withDefaults: withDefaults,
|
|
13112
|
+
withDirectives: withDirectives,
|
|
13113
|
+
withKeys: withKeys,
|
|
13114
|
+
withMemo: withMemo,
|
|
13115
|
+
withModifiers: withModifiers,
|
|
13116
|
+
withScopeId: withScopeId
|
|
13041
13117
|
});
|
|
13042
13118
|
|
|
13043
13119
|
function initDev() {
|
|
@@ -13071,17 +13147,17 @@ var Vue = (function () {
|
|
|
13071
13147
|
}
|
|
13072
13148
|
return app;
|
|
13073
13149
|
}
|
|
13074
|
-
function createCompatVue
|
|
13150
|
+
function createCompatVue() {
|
|
13075
13151
|
const Vue = compatUtils.createCompatVue(createApp, wrappedCreateApp);
|
|
13076
13152
|
extend(Vue, runtimeDom);
|
|
13077
13153
|
return Vue;
|
|
13078
13154
|
}
|
|
13079
13155
|
|
|
13080
13156
|
// This entry exports the runtime only, and is built as
|
|
13081
|
-
const Vue = createCompatVue
|
|
13157
|
+
const Vue = createCompatVue();
|
|
13082
13158
|
Vue.compile = (() => {
|
|
13083
13159
|
{
|
|
13084
|
-
warn
|
|
13160
|
+
warn(`Runtime compilation is not supported in this build of Vue.` +
|
|
13085
13161
|
(` Use "vue.global.js" instead.`
|
|
13086
13162
|
) /* should not happen */);
|
|
13087
13163
|
}
|
|
@@ -13089,4 +13165,4 @@ var Vue = (function () {
|
|
|
13089
13165
|
|
|
13090
13166
|
return Vue;
|
|
13091
13167
|
|
|
13092
|
-
}()
|
|
13168
|
+
})();
|