@vitejs/devtools 0.0.0-alpha.25 → 0.0.0-alpha.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DockIcon-CG2NSDoX.js → DockIcon-BfVdt_M0.js} +56 -58
- package/dist/{ViewBuiltinLogs-CUz-jlMA.js → ViewBuiltinLogs-C8wFxIxg.js} +2 -2
- package/dist/{ViewBuiltinTerminals-BKqSU-x4.js → ViewBuiltinTerminals-CrBOq_Ni.js} +657 -661
- package/dist/cli-commands.js +65 -2
- package/dist/cli.js +2 -2
- package/dist/client/inject.js +15 -3
- package/dist/client/standalone/assets/ViewBuiltinLogs-CYvdMq-7.js +1 -0
- package/dist/client/standalone/assets/{ViewBuiltinTerminals-BAc9-MAy.js → ViewBuiltinTerminals-B9l9XmES.js} +4 -4
- package/dist/client/standalone/assets/index-DWC0UjCz.js +2 -0
- package/dist/client/standalone/assets/index-DzhHPm4X.css +1 -0
- package/dist/client/standalone/index.html +2 -2
- package/dist/client/webcomponents.d.ts +1450 -4
- package/dist/client/webcomponents.js +441 -171
- package/dist/dirs.js +7 -1
- package/dist/{dist-B-r4P83Y.js → dist-BpFPAu5f.js} +5 -6
- package/dist/docks-CYaKLVhQ.js +131 -0
- package/dist/index.d.ts +174 -22
- package/dist/index.js +1 -1
- package/dist/plugins-BbzqUdpu.js +3038 -0
- package/dist/standalone-DVh1a9tu.js +34 -0
- package/dist/{vue.runtime.esm-bundler-B7xD_5x9.js → vue.runtime.esm-bundler-DL0i8o0W.js} +248 -220
- package/package.json +15 -15
- package/dist/cli-commands-DEf9IsfU.js +0 -96
- package/dist/client/standalone/assets/ViewBuiltinLogs-DPvwWqqt.js +0 -1
- package/dist/client/standalone/assets/index-BgrADCac.css +0 -1
- package/dist/client/standalone/assets/index-DXUNB7Hd.js +0 -2
- package/dist/dirs-C0s1Ghvy.js +0 -9
- package/dist/docks-Dgft7LEp.js +0 -72
- package/dist/index-CmOJZ3e5.d.ts +0 -561
- package/dist/plugins-CCFu2oMz.js +0 -3031
- /package/dist/{export-helper-Dw-qygE5.js → export-helper-DjM8b2QE.js} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@vue+shared@3.5.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@vue+shared@3.5.27/node_modules/@vue/shared/dist/shared.esm-bundler.js
|
|
2
2
|
/**
|
|
3
|
-
* @vue/shared v3.5.
|
|
3
|
+
* @vue/shared v3.5.27
|
|
4
4
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
5
|
* @license MIT
|
|
6
6
|
**/
|
|
7
7
|
/* @__NO_SIDE_EFFECTS__ */
|
|
8
8
|
function makeMap(str) {
|
|
9
|
-
const map
|
|
10
|
-
for (const key of str.split(",")) map
|
|
11
|
-
return (val) => val in map
|
|
9
|
+
const map = /* @__PURE__ */ Object.create(null);
|
|
10
|
+
for (const key of str.split(",")) map[key] = 1;
|
|
11
|
+
return (val) => val in map;
|
|
12
12
|
}
|
|
13
13
|
const EMPTY_OBJ = !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
|
|
14
14
|
const EMPTY_ARR = !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
|
|
@@ -155,9 +155,9 @@ const stringifySymbol = (v, i = "") => {
|
|
|
155
155
|
};
|
|
156
156
|
|
|
157
157
|
//#endregion
|
|
158
|
-
//#region ../../node_modules/.pnpm/@vue+reactivity@3.5.
|
|
158
|
+
//#region ../../node_modules/.pnpm/@vue+reactivity@3.5.27/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
|
|
159
159
|
/**
|
|
160
|
-
* @vue/reactivity v3.5.
|
|
160
|
+
* @vue/reactivity v3.5.27
|
|
161
161
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
162
162
|
* @license MIT
|
|
163
163
|
**/
|
|
@@ -439,24 +439,24 @@ function isDirty(sub) {
|
|
|
439
439
|
if (sub._dirty) return true;
|
|
440
440
|
return false;
|
|
441
441
|
}
|
|
442
|
-
function refreshComputed(computed
|
|
443
|
-
if (computed
|
|
444
|
-
computed
|
|
445
|
-
if (computed
|
|
446
|
-
computed
|
|
447
|
-
if (!computed
|
|
448
|
-
computed
|
|
449
|
-
const dep = computed
|
|
442
|
+
function refreshComputed(computed) {
|
|
443
|
+
if (computed.flags & 4 && !(computed.flags & 16)) return;
|
|
444
|
+
computed.flags &= -17;
|
|
445
|
+
if (computed.globalVersion === globalVersion) return;
|
|
446
|
+
computed.globalVersion = globalVersion;
|
|
447
|
+
if (!computed.isSSR && computed.flags & 128 && (!computed.deps && !computed._dirty || !isDirty(computed))) return;
|
|
448
|
+
computed.flags |= 2;
|
|
449
|
+
const dep = computed.dep;
|
|
450
450
|
const prevSub = activeSub;
|
|
451
451
|
const prevShouldTrack = shouldTrack;
|
|
452
|
-
activeSub = computed
|
|
452
|
+
activeSub = computed;
|
|
453
453
|
shouldTrack = true;
|
|
454
454
|
try {
|
|
455
|
-
prepareDeps(computed
|
|
456
|
-
const value = computed
|
|
457
|
-
if (dep.version === 0 || hasChanged(value, computed
|
|
458
|
-
computed
|
|
459
|
-
computed
|
|
455
|
+
prepareDeps(computed);
|
|
456
|
+
const value = computed.fn(computed._value);
|
|
457
|
+
if (dep.version === 0 || hasChanged(value, computed._value)) {
|
|
458
|
+
computed.flags |= 128;
|
|
459
|
+
computed._value = value;
|
|
460
460
|
dep.version++;
|
|
461
461
|
}
|
|
462
462
|
} catch (err) {
|
|
@@ -465,8 +465,8 @@ function refreshComputed(computed$2) {
|
|
|
465
465
|
} finally {
|
|
466
466
|
activeSub = prevSub;
|
|
467
467
|
shouldTrack = prevShouldTrack;
|
|
468
|
-
cleanupDeps(computed
|
|
469
|
-
computed
|
|
468
|
+
cleanupDeps(computed);
|
|
469
|
+
computed.flags &= -3;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
function removeSub(link, soft = false) {
|
|
@@ -533,8 +533,8 @@ var Link = class {
|
|
|
533
533
|
}
|
|
534
534
|
};
|
|
535
535
|
var Dep = class {
|
|
536
|
-
constructor(computed
|
|
537
|
-
this.computed = computed
|
|
536
|
+
constructor(computed) {
|
|
537
|
+
this.computed = computed;
|
|
538
538
|
this.version = 0;
|
|
539
539
|
/**
|
|
540
540
|
* Link between this dep and the current active effect
|
|
@@ -607,10 +607,10 @@ var Dep = class {
|
|
|
607
607
|
function addSub(link) {
|
|
608
608
|
link.dep.sc++;
|
|
609
609
|
if (link.sub.flags & 4) {
|
|
610
|
-
const computed
|
|
611
|
-
if (computed
|
|
612
|
-
computed
|
|
613
|
-
for (let l = computed
|
|
610
|
+
const computed = link.dep.computed;
|
|
611
|
+
if (computed && !link.dep.subs) {
|
|
612
|
+
computed.flags |= 20;
|
|
613
|
+
for (let l = computed.deps; l; l = l.nextDep) addSub(l);
|
|
614
614
|
}
|
|
615
615
|
const currentTail = link.dep.subs;
|
|
616
616
|
if (currentTail !== link) {
|
|
@@ -699,17 +699,17 @@ function getDepFromReactive(object, key) {
|
|
|
699
699
|
return depMap && depMap.get(key);
|
|
700
700
|
}
|
|
701
701
|
function reactiveReadArray(array) {
|
|
702
|
-
const raw = toRaw(array);
|
|
702
|
+
const raw = /* @__PURE__ */ toRaw(array);
|
|
703
703
|
if (raw === array) return raw;
|
|
704
704
|
track(raw, "iterate", ARRAY_ITERATE_KEY);
|
|
705
|
-
return isShallow(array) ? raw : raw.map(toReactive);
|
|
705
|
+
return /* @__PURE__ */ isShallow(array) ? raw : raw.map(toReactive);
|
|
706
706
|
}
|
|
707
707
|
function shallowReadArray(arr) {
|
|
708
|
-
track(arr = toRaw(arr), "iterate", ARRAY_ITERATE_KEY);
|
|
708
|
+
track(arr = /* @__PURE__ */ toRaw(arr), "iterate", ARRAY_ITERATE_KEY);
|
|
709
709
|
return arr;
|
|
710
710
|
}
|
|
711
711
|
function toWrapped(target, item) {
|
|
712
|
-
if (isReadonly(target)) return isReactive(target) ? toReadonly(toReactive(item)) : toReadonly(item);
|
|
712
|
+
if (/* @__PURE__ */ isReadonly(target)) return /* @__PURE__ */ isReactive(target) ? toReadonly(toReactive(item)) : toReadonly(item);
|
|
713
713
|
return toReactive(item);
|
|
714
714
|
}
|
|
715
715
|
const arrayInstrumentations = {
|
|
@@ -799,10 +799,10 @@ const arrayInstrumentations = {
|
|
|
799
799
|
return iterator(this, "values", (item) => toWrapped(this, item));
|
|
800
800
|
}
|
|
801
801
|
};
|
|
802
|
-
function iterator(self
|
|
803
|
-
const arr = shallowReadArray(self
|
|
802
|
+
function iterator(self, method, wrapValue) {
|
|
803
|
+
const arr = shallowReadArray(self);
|
|
804
804
|
const iter = arr[method]();
|
|
805
|
-
if (arr !== self
|
|
805
|
+
if (arr !== self && !/* @__PURE__ */ isShallow(self)) {
|
|
806
806
|
iter._next = iter.next;
|
|
807
807
|
iter.next = () => {
|
|
808
808
|
const result = iter._next();
|
|
@@ -813,53 +813,53 @@ function iterator(self$1, method, wrapValue) {
|
|
|
813
813
|
return iter;
|
|
814
814
|
}
|
|
815
815
|
const arrayProto = Array.prototype;
|
|
816
|
-
function apply(self
|
|
817
|
-
const arr = shallowReadArray(self
|
|
818
|
-
const needsWrap = arr !== self
|
|
816
|
+
function apply(self, method, fn, thisArg, wrappedRetFn, args) {
|
|
817
|
+
const arr = shallowReadArray(self);
|
|
818
|
+
const needsWrap = arr !== self && !/* @__PURE__ */ isShallow(self);
|
|
819
819
|
const methodFn = arr[method];
|
|
820
820
|
if (methodFn !== arrayProto[method]) {
|
|
821
|
-
const result2 = methodFn.apply(self
|
|
821
|
+
const result2 = methodFn.apply(self, args);
|
|
822
822
|
return needsWrap ? toReactive(result2) : result2;
|
|
823
823
|
}
|
|
824
824
|
let wrappedFn = fn;
|
|
825
|
-
if (arr !== self
|
|
825
|
+
if (arr !== self) {
|
|
826
826
|
if (needsWrap) wrappedFn = function(item, index) {
|
|
827
|
-
return fn.call(this, toWrapped(self
|
|
827
|
+
return fn.call(this, toWrapped(self, item), index, self);
|
|
828
828
|
};
|
|
829
829
|
else if (fn.length > 2) wrappedFn = function(item, index) {
|
|
830
|
-
return fn.call(this, item, index, self
|
|
830
|
+
return fn.call(this, item, index, self);
|
|
831
831
|
};
|
|
832
832
|
}
|
|
833
833
|
const result = methodFn.call(arr, wrappedFn, thisArg);
|
|
834
834
|
return needsWrap && wrappedRetFn ? wrappedRetFn(result) : result;
|
|
835
835
|
}
|
|
836
|
-
function reduce(self
|
|
837
|
-
const arr = shallowReadArray(self
|
|
836
|
+
function reduce(self, method, fn, args) {
|
|
837
|
+
const arr = shallowReadArray(self);
|
|
838
838
|
let wrappedFn = fn;
|
|
839
|
-
if (arr !== self
|
|
840
|
-
if (
|
|
841
|
-
return fn.call(this, acc, toWrapped(self
|
|
839
|
+
if (arr !== self) {
|
|
840
|
+
if (!/* @__PURE__ */ isShallow(self)) wrappedFn = function(acc, item, index) {
|
|
841
|
+
return fn.call(this, acc, toWrapped(self, item), index, self);
|
|
842
842
|
};
|
|
843
843
|
else if (fn.length > 3) wrappedFn = function(acc, item, index) {
|
|
844
|
-
return fn.call(this, acc, item, index, self
|
|
844
|
+
return fn.call(this, acc, item, index, self);
|
|
845
845
|
};
|
|
846
846
|
}
|
|
847
847
|
return arr[method](wrappedFn, ...args);
|
|
848
848
|
}
|
|
849
|
-
function searchProxy(self
|
|
850
|
-
const arr = toRaw(self
|
|
849
|
+
function searchProxy(self, method, args) {
|
|
850
|
+
const arr = /* @__PURE__ */ toRaw(self);
|
|
851
851
|
track(arr, "iterate", ARRAY_ITERATE_KEY);
|
|
852
852
|
const res = arr[method](...args);
|
|
853
|
-
if ((res === -1 || res === false) && isProxy(args[0])) {
|
|
854
|
-
args[0] = toRaw(args[0]);
|
|
853
|
+
if ((res === -1 || res === false) && /* @__PURE__ */ isProxy(args[0])) {
|
|
854
|
+
args[0] = /* @__PURE__ */ toRaw(args[0]);
|
|
855
855
|
return arr[method](...args);
|
|
856
856
|
}
|
|
857
857
|
return res;
|
|
858
858
|
}
|
|
859
|
-
function noTracking(self
|
|
859
|
+
function noTracking(self, method, args = []) {
|
|
860
860
|
pauseTracking();
|
|
861
861
|
startBatch();
|
|
862
|
-
const res = toRaw(self
|
|
862
|
+
const res = (/* @__PURE__ */ toRaw(self))[method].apply(self, args);
|
|
863
863
|
endBatch();
|
|
864
864
|
resetTracking();
|
|
865
865
|
return res;
|
|
@@ -868,7 +868,7 @@ const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`
|
|
|
868
868
|
const builtInSymbols = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(isSymbol));
|
|
869
869
|
function hasOwnProperty(key) {
|
|
870
870
|
if (!isSymbol(key)) key = String(key);
|
|
871
|
-
const obj = toRaw(this);
|
|
871
|
+
const obj = /* @__PURE__ */ toRaw(this);
|
|
872
872
|
track(obj, "has", key);
|
|
873
873
|
return obj.hasOwnProperty(key);
|
|
874
874
|
}
|
|
@@ -893,15 +893,15 @@ var BaseReactiveHandler = class {
|
|
|
893
893
|
if (targetIsArray && (fn = arrayInstrumentations[key])) return fn;
|
|
894
894
|
if (key === "hasOwnProperty") return hasOwnProperty;
|
|
895
895
|
}
|
|
896
|
-
const res = Reflect.get(target, key, isRef(target) ? target : receiver);
|
|
896
|
+
const res = Reflect.get(target, key, /* @__PURE__ */ isRef(target) ? target : receiver);
|
|
897
897
|
if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) return res;
|
|
898
898
|
if (!isReadonly2) track(target, "get", key);
|
|
899
899
|
if (isShallow2) return res;
|
|
900
|
-
if (isRef(res)) {
|
|
900
|
+
if (/* @__PURE__ */ isRef(res)) {
|
|
901
901
|
const value = targetIsArray && isIntegerKey(key) ? res : res.value;
|
|
902
|
-
return isReadonly2 && isObject(value) ? readonly(value) : value;
|
|
902
|
+
return isReadonly2 && isObject(value) ? /* @__PURE__ */ readonly(value) : value;
|
|
903
903
|
}
|
|
904
|
-
if (isObject(res)) return isReadonly2 ? readonly(res) : reactive(res);
|
|
904
|
+
if (isObject(res)) return isReadonly2 ? /* @__PURE__ */ readonly(res) : /* @__PURE__ */ reactive(res);
|
|
905
905
|
return res;
|
|
906
906
|
}
|
|
907
907
|
};
|
|
@@ -913,12 +913,12 @@ var MutableReactiveHandler = class extends BaseReactiveHandler {
|
|
|
913
913
|
let oldValue = target[key];
|
|
914
914
|
const isArrayWithIntegerKey = isArray(target) && isIntegerKey(key);
|
|
915
915
|
if (!this._isShallow) {
|
|
916
|
-
const isOldValueReadonly = isReadonly(oldValue);
|
|
917
|
-
if (
|
|
918
|
-
oldValue = toRaw(oldValue);
|
|
919
|
-
value = toRaw(value);
|
|
916
|
+
const isOldValueReadonly = /* @__PURE__ */ isReadonly(oldValue);
|
|
917
|
+
if (!/* @__PURE__ */ isShallow(value) && !/* @__PURE__ */ isReadonly(value)) {
|
|
918
|
+
oldValue = /* @__PURE__ */ toRaw(oldValue);
|
|
919
|
+
value = /* @__PURE__ */ toRaw(value);
|
|
920
920
|
}
|
|
921
|
-
if (!isArrayWithIntegerKey && isRef(oldValue) &&
|
|
921
|
+
if (!isArrayWithIntegerKey && /* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) if (isOldValueReadonly) {
|
|
922
922
|
if (!!(process.env.NODE_ENV !== "production")) warn$2(`Set operation on key "${String(key)}" failed: target is readonly.`, target[key]);
|
|
923
923
|
return true;
|
|
924
924
|
} else {
|
|
@@ -927,8 +927,8 @@ var MutableReactiveHandler = class extends BaseReactiveHandler {
|
|
|
927
927
|
}
|
|
928
928
|
}
|
|
929
929
|
const hadKey = isArrayWithIntegerKey ? Number(key) < target.length : hasOwn(target, key);
|
|
930
|
-
const result = Reflect.set(target, key, value, isRef(target) ? target : receiver);
|
|
931
|
-
if (target === toRaw(receiver)) {
|
|
930
|
+
const result = Reflect.set(target, key, value, /* @__PURE__ */ isRef(target) ? target : receiver);
|
|
931
|
+
if (target === /* @__PURE__ */ toRaw(receiver)) {
|
|
932
932
|
if (!hadKey) trigger(target, "add", key, value);
|
|
933
933
|
else if (hasChanged(value, oldValue)) trigger(target, "set", key, value, oldValue);
|
|
934
934
|
}
|
|
@@ -973,65 +973,60 @@ const getProto = (v) => Reflect.getPrototypeOf(v);
|
|
|
973
973
|
function createIterableMethod(method, isReadonly2, isShallow2) {
|
|
974
974
|
return function(...args) {
|
|
975
975
|
const target = this["__v_raw"];
|
|
976
|
-
const rawTarget = toRaw(target);
|
|
976
|
+
const rawTarget = /* @__PURE__ */ toRaw(target);
|
|
977
977
|
const targetIsMap = isMap(rawTarget);
|
|
978
978
|
const isPair = method === "entries" || method === Symbol.iterator && targetIsMap;
|
|
979
979
|
const isKeyOnly = method === "keys" && targetIsMap;
|
|
980
980
|
const innerIterator = target[method](...args);
|
|
981
981
|
const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
|
|
982
982
|
!isReadonly2 && track(rawTarget, "iterate", isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);
|
|
983
|
-
return {
|
|
984
|
-
next()
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
},
|
|
994
|
-
[Symbol.iterator]() {
|
|
995
|
-
return this;
|
|
996
|
-
}
|
|
997
|
-
};
|
|
983
|
+
return extend(Object.create(innerIterator), { next() {
|
|
984
|
+
const { value, done } = innerIterator.next();
|
|
985
|
+
return done ? {
|
|
986
|
+
value,
|
|
987
|
+
done
|
|
988
|
+
} : {
|
|
989
|
+
value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
|
|
990
|
+
done
|
|
991
|
+
};
|
|
992
|
+
} });
|
|
998
993
|
};
|
|
999
994
|
}
|
|
1000
995
|
function createReadonlyMethod(type) {
|
|
1001
996
|
return function(...args) {
|
|
1002
997
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
1003
998
|
const key = args[0] ? `on key "${args[0]}" ` : ``;
|
|
1004
|
-
warn$2(`${capitalize(type)} operation ${key}failed: target is readonly.`, toRaw(this));
|
|
999
|
+
warn$2(`${capitalize(type)} operation ${key}failed: target is readonly.`, /* @__PURE__ */ toRaw(this));
|
|
1005
1000
|
}
|
|
1006
1001
|
return type === "delete" ? false : type === "clear" ? void 0 : this;
|
|
1007
1002
|
};
|
|
1008
1003
|
}
|
|
1009
|
-
function createInstrumentations(readonly
|
|
1004
|
+
function createInstrumentations(readonly, shallow) {
|
|
1010
1005
|
const instrumentations = {
|
|
1011
1006
|
get(key) {
|
|
1012
1007
|
const target = this["__v_raw"];
|
|
1013
|
-
const rawTarget = toRaw(target);
|
|
1014
|
-
const rawKey = toRaw(key);
|
|
1015
|
-
if (!readonly
|
|
1008
|
+
const rawTarget = /* @__PURE__ */ toRaw(target);
|
|
1009
|
+
const rawKey = /* @__PURE__ */ toRaw(key);
|
|
1010
|
+
if (!readonly) {
|
|
1016
1011
|
if (hasChanged(key, rawKey)) track(rawTarget, "get", key);
|
|
1017
1012
|
track(rawTarget, "get", rawKey);
|
|
1018
1013
|
}
|
|
1019
1014
|
const { has } = getProto(rawTarget);
|
|
1020
|
-
const wrap = shallow ? toShallow : readonly
|
|
1015
|
+
const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
|
|
1021
1016
|
if (has.call(rawTarget, key)) return wrap(target.get(key));
|
|
1022
1017
|
else if (has.call(rawTarget, rawKey)) return wrap(target.get(rawKey));
|
|
1023
1018
|
else if (target !== rawTarget) target.get(key);
|
|
1024
1019
|
},
|
|
1025
1020
|
get size() {
|
|
1026
1021
|
const target = this["__v_raw"];
|
|
1027
|
-
!readonly
|
|
1022
|
+
!readonly && track(/* @__PURE__ */ toRaw(target), "iterate", ITERATE_KEY);
|
|
1028
1023
|
return target.size;
|
|
1029
1024
|
},
|
|
1030
1025
|
has(key) {
|
|
1031
1026
|
const target = this["__v_raw"];
|
|
1032
|
-
const rawTarget = toRaw(target);
|
|
1033
|
-
const rawKey = toRaw(key);
|
|
1034
|
-
if (!readonly
|
|
1027
|
+
const rawTarget = /* @__PURE__ */ toRaw(target);
|
|
1028
|
+
const rawKey = /* @__PURE__ */ toRaw(key);
|
|
1029
|
+
if (!readonly) {
|
|
1035
1030
|
if (hasChanged(key, rawKey)) track(rawTarget, "has", key);
|
|
1036
1031
|
track(rawTarget, "has", rawKey);
|
|
1037
1032
|
}
|
|
@@ -1040,23 +1035,23 @@ function createInstrumentations(readonly$1, shallow) {
|
|
|
1040
1035
|
forEach(callback, thisArg) {
|
|
1041
1036
|
const observed = this;
|
|
1042
1037
|
const target = observed["__v_raw"];
|
|
1043
|
-
const rawTarget = toRaw(target);
|
|
1044
|
-
const wrap = shallow ? toShallow : readonly
|
|
1045
|
-
!readonly
|
|
1038
|
+
const rawTarget = /* @__PURE__ */ toRaw(target);
|
|
1039
|
+
const wrap = shallow ? toShallow : readonly ? toReadonly : toReactive;
|
|
1040
|
+
!readonly && track(rawTarget, "iterate", ITERATE_KEY);
|
|
1046
1041
|
return target.forEach((value, key) => {
|
|
1047
1042
|
return callback.call(thisArg, wrap(value), wrap(key), observed);
|
|
1048
1043
|
});
|
|
1049
1044
|
}
|
|
1050
1045
|
};
|
|
1051
|
-
extend(instrumentations, readonly
|
|
1046
|
+
extend(instrumentations, readonly ? {
|
|
1052
1047
|
add: createReadonlyMethod("add"),
|
|
1053
1048
|
set: createReadonlyMethod("set"),
|
|
1054
1049
|
delete: createReadonlyMethod("delete"),
|
|
1055
1050
|
clear: createReadonlyMethod("clear")
|
|
1056
1051
|
} : {
|
|
1057
1052
|
add(value) {
|
|
1058
|
-
if (!shallow &&
|
|
1059
|
-
const target = toRaw(this);
|
|
1053
|
+
if (!shallow && !/* @__PURE__ */ isShallow(value) && !/* @__PURE__ */ isReadonly(value)) value = /* @__PURE__ */ toRaw(value);
|
|
1054
|
+
const target = /* @__PURE__ */ toRaw(this);
|
|
1060
1055
|
if (!getProto(target).has.call(target, value)) {
|
|
1061
1056
|
target.add(value);
|
|
1062
1057
|
trigger(target, "add", value, value);
|
|
@@ -1064,12 +1059,12 @@ function createInstrumentations(readonly$1, shallow) {
|
|
|
1064
1059
|
return this;
|
|
1065
1060
|
},
|
|
1066
1061
|
set(key, value) {
|
|
1067
|
-
if (!shallow &&
|
|
1068
|
-
const target = toRaw(this);
|
|
1062
|
+
if (!shallow && !/* @__PURE__ */ isShallow(value) && !/* @__PURE__ */ isReadonly(value)) value = /* @__PURE__ */ toRaw(value);
|
|
1063
|
+
const target = /* @__PURE__ */ toRaw(this);
|
|
1069
1064
|
const { has, get } = getProto(target);
|
|
1070
1065
|
let hadKey = has.call(target, key);
|
|
1071
1066
|
if (!hadKey) {
|
|
1072
|
-
key = toRaw(key);
|
|
1067
|
+
key = /* @__PURE__ */ toRaw(key);
|
|
1073
1068
|
hadKey = has.call(target, key);
|
|
1074
1069
|
} else if (!!(process.env.NODE_ENV !== "production")) checkIdentityKeys(target, has, key);
|
|
1075
1070
|
const oldValue = get.call(target, key);
|
|
@@ -1079,11 +1074,11 @@ function createInstrumentations(readonly$1, shallow) {
|
|
|
1079
1074
|
return this;
|
|
1080
1075
|
},
|
|
1081
1076
|
delete(key) {
|
|
1082
|
-
const target = toRaw(this);
|
|
1077
|
+
const target = /* @__PURE__ */ toRaw(this);
|
|
1083
1078
|
const { has, get } = getProto(target);
|
|
1084
1079
|
let hadKey = has.call(target, key);
|
|
1085
1080
|
if (!hadKey) {
|
|
1086
|
-
key = toRaw(key);
|
|
1081
|
+
key = /* @__PURE__ */ toRaw(key);
|
|
1087
1082
|
hadKey = has.call(target, key);
|
|
1088
1083
|
} else if (!!(process.env.NODE_ENV !== "production")) checkIdentityKeys(target, has, key);
|
|
1089
1084
|
const oldValue = get ? get.call(target, key) : void 0;
|
|
@@ -1092,7 +1087,7 @@ function createInstrumentations(readonly$1, shallow) {
|
|
|
1092
1087
|
return result;
|
|
1093
1088
|
},
|
|
1094
1089
|
clear() {
|
|
1095
|
-
const target = toRaw(this);
|
|
1090
|
+
const target = /* @__PURE__ */ toRaw(this);
|
|
1096
1091
|
const hadItems = target.size !== 0;
|
|
1097
1092
|
const oldTarget = !!(process.env.NODE_ENV !== "production") ? isMap(target) ? new Map(target) : new Set(target) : void 0;
|
|
1098
1093
|
const result = target.clear();
|
|
@@ -1106,7 +1101,7 @@ function createInstrumentations(readonly$1, shallow) {
|
|
|
1106
1101
|
"entries",
|
|
1107
1102
|
Symbol.iterator
|
|
1108
1103
|
].forEach((method) => {
|
|
1109
|
-
instrumentations[method] = createIterableMethod(method, readonly
|
|
1104
|
+
instrumentations[method] = createIterableMethod(method, readonly, shallow);
|
|
1110
1105
|
});
|
|
1111
1106
|
return instrumentations;
|
|
1112
1107
|
}
|
|
@@ -1124,7 +1119,7 @@ const shallowCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGe
|
|
|
1124
1119
|
const readonlyCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(true, false) };
|
|
1125
1120
|
const shallowReadonlyCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(true, true) };
|
|
1126
1121
|
function checkIdentityKeys(target, has, key) {
|
|
1127
|
-
const rawKey = toRaw(key);
|
|
1122
|
+
const rawKey = /* @__PURE__ */ toRaw(key);
|
|
1128
1123
|
if (rawKey !== key && has.call(target, rawKey)) {
|
|
1129
1124
|
const type = toRawType(target);
|
|
1130
1125
|
warn$2(`Reactive ${type} contains both the raw and reactive versions of the same object${type === `Map` ? ` as keys` : ``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`);
|
|
@@ -1148,16 +1143,20 @@ function targetTypeMap(rawType) {
|
|
|
1148
1143
|
function getTargetType(value) {
|
|
1149
1144
|
return value["__v_skip"] || !Object.isExtensible(value) ? 0 : targetTypeMap(toRawType(value));
|
|
1150
1145
|
}
|
|
1146
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1151
1147
|
function reactive(target) {
|
|
1152
|
-
if (isReadonly(target)) return target;
|
|
1148
|
+
if (/* @__PURE__ */ isReadonly(target)) return target;
|
|
1153
1149
|
return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);
|
|
1154
1150
|
}
|
|
1151
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1155
1152
|
function shallowReactive(target) {
|
|
1156
1153
|
return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);
|
|
1157
1154
|
}
|
|
1155
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1158
1156
|
function readonly(target) {
|
|
1159
1157
|
return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);
|
|
1160
1158
|
}
|
|
1159
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1161
1160
|
function shallowReadonly(target) {
|
|
1162
1161
|
return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);
|
|
1163
1162
|
}
|
|
@@ -1175,40 +1174,48 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
|
|
|
1175
1174
|
proxyMap.set(target, proxy);
|
|
1176
1175
|
return proxy;
|
|
1177
1176
|
}
|
|
1177
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1178
1178
|
function isReactive(value) {
|
|
1179
|
-
if (isReadonly(value)) return isReactive(value["__v_raw"]);
|
|
1179
|
+
if (/* @__PURE__ */ isReadonly(value)) return /* @__PURE__ */ isReactive(value["__v_raw"]);
|
|
1180
1180
|
return !!(value && value["__v_isReactive"]);
|
|
1181
1181
|
}
|
|
1182
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1182
1183
|
function isReadonly(value) {
|
|
1183
1184
|
return !!(value && value["__v_isReadonly"]);
|
|
1184
1185
|
}
|
|
1186
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1185
1187
|
function isShallow(value) {
|
|
1186
1188
|
return !!(value && value["__v_isShallow"]);
|
|
1187
1189
|
}
|
|
1190
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1188
1191
|
function isProxy(value) {
|
|
1189
1192
|
return value ? !!value["__v_raw"] : false;
|
|
1190
1193
|
}
|
|
1194
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1191
1195
|
function toRaw(observed) {
|
|
1192
1196
|
const raw = observed && observed["__v_raw"];
|
|
1193
|
-
return raw ? toRaw(raw) : observed;
|
|
1197
|
+
return raw ? /* @__PURE__ */ toRaw(raw) : observed;
|
|
1194
1198
|
}
|
|
1195
1199
|
function markRaw(value) {
|
|
1196
1200
|
if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) def(value, "__v_skip", true);
|
|
1197
1201
|
return value;
|
|
1198
1202
|
}
|
|
1199
|
-
const toReactive = (value) => isObject(value) ? reactive(value) : value;
|
|
1200
|
-
const toReadonly = (value) => isObject(value) ? readonly(value) : value;
|
|
1203
|
+
const toReactive = (value) => isObject(value) ? /* @__PURE__ */ reactive(value) : value;
|
|
1204
|
+
const toReadonly = (value) => isObject(value) ? /* @__PURE__ */ readonly(value) : value;
|
|
1205
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1201
1206
|
function isRef(r) {
|
|
1202
1207
|
return r ? r["__v_isRef"] === true : false;
|
|
1203
1208
|
}
|
|
1209
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1204
1210
|
function ref(value) {
|
|
1205
1211
|
return createRef(value, false);
|
|
1206
1212
|
}
|
|
1213
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1207
1214
|
function shallowRef(value) {
|
|
1208
1215
|
return createRef(value, true);
|
|
1209
1216
|
}
|
|
1210
1217
|
function createRef(rawValue, shallow) {
|
|
1211
|
-
if (isRef(rawValue)) return rawValue;
|
|
1218
|
+
if (/* @__PURE__ */ isRef(rawValue)) return rawValue;
|
|
1212
1219
|
return new RefImpl(rawValue, shallow);
|
|
1213
1220
|
}
|
|
1214
1221
|
var RefImpl = class {
|
|
@@ -1216,7 +1223,7 @@ var RefImpl = class {
|
|
|
1216
1223
|
this.dep = new Dep();
|
|
1217
1224
|
this["__v_isRef"] = true;
|
|
1218
1225
|
this["__v_isShallow"] = false;
|
|
1219
|
-
this._rawValue = isShallow2 ? value : toRaw(value);
|
|
1226
|
+
this._rawValue = isShallow2 ? value : /* @__PURE__ */ toRaw(value);
|
|
1220
1227
|
this._value = isShallow2 ? value : toReactive(value);
|
|
1221
1228
|
this["__v_isShallow"] = isShallow2;
|
|
1222
1229
|
}
|
|
@@ -1231,8 +1238,8 @@ var RefImpl = class {
|
|
|
1231
1238
|
}
|
|
1232
1239
|
set value(newValue) {
|
|
1233
1240
|
const oldValue = this._rawValue;
|
|
1234
|
-
const useDirectValue = this["__v_isShallow"] || isShallow(newValue) || isReadonly(newValue);
|
|
1235
|
-
newValue = useDirectValue ? newValue : toRaw(newValue);
|
|
1241
|
+
const useDirectValue = this["__v_isShallow"] || /* @__PURE__ */ isShallow(newValue) || /* @__PURE__ */ isReadonly(newValue);
|
|
1242
|
+
newValue = useDirectValue ? newValue : /* @__PURE__ */ toRaw(newValue);
|
|
1236
1243
|
if (hasChanged(newValue, oldValue)) {
|
|
1237
1244
|
this._rawValue = newValue;
|
|
1238
1245
|
this._value = useDirectValue ? newValue : toReactive(newValue);
|
|
@@ -1248,7 +1255,7 @@ var RefImpl = class {
|
|
|
1248
1255
|
}
|
|
1249
1256
|
};
|
|
1250
1257
|
function unref(ref2) {
|
|
1251
|
-
return isRef(ref2) ? ref2.value : ref2;
|
|
1258
|
+
return /* @__PURE__ */ isRef(ref2) ? ref2.value : ref2;
|
|
1252
1259
|
}
|
|
1253
1260
|
function toValue(source) {
|
|
1254
1261
|
return isFunction(source) ? source() : unref(source);
|
|
@@ -1257,14 +1264,14 @@ const shallowUnwrapHandlers = {
|
|
|
1257
1264
|
get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
|
|
1258
1265
|
set: (target, key, value, receiver) => {
|
|
1259
1266
|
const oldValue = target[key];
|
|
1260
|
-
if (isRef(oldValue) &&
|
|
1267
|
+
if (/* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) {
|
|
1261
1268
|
oldValue.value = value;
|
|
1262
1269
|
return true;
|
|
1263
1270
|
} else return Reflect.set(target, key, value, receiver);
|
|
1264
1271
|
}
|
|
1265
1272
|
};
|
|
1266
1273
|
function proxyRefs(objectWithRefs) {
|
|
1267
|
-
return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers);
|
|
1274
|
+
return /* @__PURE__ */ isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers);
|
|
1268
1275
|
}
|
|
1269
1276
|
var CustomRefImpl = class {
|
|
1270
1277
|
constructor(factory) {
|
|
@@ -1285,8 +1292,9 @@ var CustomRefImpl = class {
|
|
|
1285
1292
|
function customRef(factory) {
|
|
1286
1293
|
return new CustomRefImpl(factory);
|
|
1287
1294
|
}
|
|
1295
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1288
1296
|
function toRefs(object) {
|
|
1289
|
-
if (!!(process.env.NODE_ENV !== "production") &&
|
|
1297
|
+
if (!!(process.env.NODE_ENV !== "production") && !/* @__PURE__ */ isProxy(object)) warn$2(`toRefs() expects a reactive object but received a plain one.`);
|
|
1290
1298
|
const ret = isArray(object) ? new Array(object.length) : {};
|
|
1291
1299
|
for (const key in object) ret[key] = propertyToRef(object, key);
|
|
1292
1300
|
return ret;
|
|
@@ -1298,11 +1306,11 @@ var ObjectRefImpl = class {
|
|
|
1298
1306
|
this._defaultValue = _defaultValue;
|
|
1299
1307
|
this["__v_isRef"] = true;
|
|
1300
1308
|
this._value = void 0;
|
|
1301
|
-
this._raw = toRaw(_object);
|
|
1309
|
+
this._raw = /* @__PURE__ */ toRaw(_object);
|
|
1302
1310
|
let shallow = true;
|
|
1303
1311
|
let obj = _object;
|
|
1304
1312
|
if (!isArray(_object) || !isIntegerKey(String(_key))) do
|
|
1305
|
-
shallow =
|
|
1313
|
+
shallow = !/* @__PURE__ */ isProxy(obj) || /* @__PURE__ */ isShallow(obj);
|
|
1306
1314
|
while (shallow && (obj = obj["__v_raw"]));
|
|
1307
1315
|
this._shallow = shallow;
|
|
1308
1316
|
}
|
|
@@ -1312,9 +1320,9 @@ var ObjectRefImpl = class {
|
|
|
1312
1320
|
return this._value = val === void 0 ? this._defaultValue : val;
|
|
1313
1321
|
}
|
|
1314
1322
|
set value(newVal) {
|
|
1315
|
-
if (this._shallow && isRef(this._raw[this._key])) {
|
|
1323
|
+
if (this._shallow && /* @__PURE__ */ isRef(this._raw[this._key])) {
|
|
1316
1324
|
const nestedRef = this._object[this._key];
|
|
1317
|
-
if (isRef(nestedRef)) {
|
|
1325
|
+
if (/* @__PURE__ */ isRef(nestedRef)) {
|
|
1318
1326
|
nestedRef.value = newVal;
|
|
1319
1327
|
return;
|
|
1320
1328
|
}
|
|
@@ -1336,11 +1344,12 @@ var GetterRefImpl = class {
|
|
|
1336
1344
|
return this._value = this._getter();
|
|
1337
1345
|
}
|
|
1338
1346
|
};
|
|
1347
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1339
1348
|
function toRef(source, key, defaultValue) {
|
|
1340
|
-
if (isRef(source)) return source;
|
|
1349
|
+
if (/* @__PURE__ */ isRef(source)) return source;
|
|
1341
1350
|
else if (isFunction(source)) return new GetterRefImpl(source);
|
|
1342
1351
|
else if (isObject(source) && arguments.length > 1) return propertyToRef(source, key, defaultValue);
|
|
1343
|
-
else return ref(source);
|
|
1352
|
+
else return /* @__PURE__ */ ref(source);
|
|
1344
1353
|
}
|
|
1345
1354
|
function propertyToRef(source, key, defaultValue) {
|
|
1346
1355
|
return new ObjectRefImpl(source, key, defaultValue);
|
|
@@ -1410,6 +1419,7 @@ var ComputedRefImpl = class {
|
|
|
1410
1419
|
else if (!!(process.env.NODE_ENV !== "production")) warn$2("Write operation failed: computed value is readonly");
|
|
1411
1420
|
}
|
|
1412
1421
|
};
|
|
1422
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1413
1423
|
function computed$1(getterOrOptions, debugOptions, isSSR = false) {
|
|
1414
1424
|
let getter;
|
|
1415
1425
|
let setter;
|
|
@@ -1442,7 +1452,7 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
1442
1452
|
};
|
|
1443
1453
|
const reactiveGetter = (source2) => {
|
|
1444
1454
|
if (deep) return source2;
|
|
1445
|
-
if (isShallow(source2) || deep === false || deep === 0) return traverse(source2, 1);
|
|
1455
|
+
if (/* @__PURE__ */ isShallow(source2) || deep === false || deep === 0) return traverse(source2, 1);
|
|
1446
1456
|
return traverse(source2);
|
|
1447
1457
|
};
|
|
1448
1458
|
let effect;
|
|
@@ -1451,18 +1461,18 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
|
|
|
1451
1461
|
let boundCleanup;
|
|
1452
1462
|
let forceTrigger = false;
|
|
1453
1463
|
let isMultiSource = false;
|
|
1454
|
-
if (isRef(source)) {
|
|
1464
|
+
if (/* @__PURE__ */ isRef(source)) {
|
|
1455
1465
|
getter = () => source.value;
|
|
1456
|
-
forceTrigger = isShallow(source);
|
|
1457
|
-
} else if (isReactive(source)) {
|
|
1466
|
+
forceTrigger = /* @__PURE__ */ isShallow(source);
|
|
1467
|
+
} else if (/* @__PURE__ */ isReactive(source)) {
|
|
1458
1468
|
getter = () => reactiveGetter(source);
|
|
1459
1469
|
forceTrigger = true;
|
|
1460
1470
|
} else if (isArray(source)) {
|
|
1461
1471
|
isMultiSource = true;
|
|
1462
|
-
forceTrigger = source.some((s) => isReactive(s) || isShallow(s));
|
|
1472
|
+
forceTrigger = source.some((s) => /* @__PURE__ */ isReactive(s) || /* @__PURE__ */ isShallow(s));
|
|
1463
1473
|
getter = () => source.map((s) => {
|
|
1464
|
-
if (isRef(s)) return s.value;
|
|
1465
|
-
else if (isReactive(s)) return reactiveGetter(s);
|
|
1474
|
+
if (/* @__PURE__ */ isRef(s)) return s.value;
|
|
1475
|
+
else if (/* @__PURE__ */ isReactive(s)) return reactiveGetter(s);
|
|
1466
1476
|
else if (isFunction(s)) return call ? call(s, 2) : s();
|
|
1467
1477
|
else process.env.NODE_ENV !== "production" && warnInvalidSource(s);
|
|
1468
1478
|
});
|
|
@@ -1559,7 +1569,7 @@ function traverse(value, depth = Infinity, seen) {
|
|
|
1559
1569
|
if ((seen.get(value) || 0) >= depth) return value;
|
|
1560
1570
|
seen.set(value, depth);
|
|
1561
1571
|
depth--;
|
|
1562
|
-
if (isRef(value)) traverse(value.value, depth, seen);
|
|
1572
|
+
if (/* @__PURE__ */ isRef(value)) traverse(value.value, depth, seen);
|
|
1563
1573
|
else if (isArray(value)) for (let i = 0; i < value.length; i++) traverse(value[i], depth, seen);
|
|
1564
1574
|
else if (isSet(value) || isMap(value)) value.forEach((v) => {
|
|
1565
1575
|
traverse(v, depth, seen);
|
|
@@ -1572,9 +1582,9 @@ function traverse(value, depth = Infinity, seen) {
|
|
|
1572
1582
|
}
|
|
1573
1583
|
|
|
1574
1584
|
//#endregion
|
|
1575
|
-
//#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.
|
|
1585
|
+
//#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.27/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
|
|
1576
1586
|
/**
|
|
1577
|
-
* @vue/runtime-core v3.5.
|
|
1587
|
+
* @vue/runtime-core v3.5.27
|
|
1578
1588
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1579
1589
|
* @license MIT
|
|
1580
1590
|
**/
|
|
@@ -1780,8 +1790,8 @@ const resolvedPromise = /* @__PURE__ */ Promise.resolve();
|
|
|
1780
1790
|
let currentFlushPromise = null;
|
|
1781
1791
|
const RECURSION_LIMIT = 100;
|
|
1782
1792
|
function nextTick(fn) {
|
|
1783
|
-
const p
|
|
1784
|
-
return fn ? p
|
|
1793
|
+
const p = currentFlushPromise || resolvedPromise;
|
|
1794
|
+
return fn ? p.then(this ? fn.bind(this) : fn) : p;
|
|
1785
1795
|
}
|
|
1786
1796
|
function findInsertionIndex(id) {
|
|
1787
1797
|
let start = flushIndex + 1;
|
|
@@ -2023,8 +2033,8 @@ function setDevtoolsHook$1(hook, target) {
|
|
|
2023
2033
|
buffer = [];
|
|
2024
2034
|
}
|
|
2025
2035
|
}
|
|
2026
|
-
function devtoolsInitApp(app, version
|
|
2027
|
-
emit$1("app:init", app, version
|
|
2036
|
+
function devtoolsInitApp(app, version) {
|
|
2037
|
+
emit$1("app:init", app, version, {
|
|
2028
2038
|
Fragment,
|
|
2029
2039
|
Text,
|
|
2030
2040
|
Comment,
|
|
@@ -2300,7 +2310,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
2300
2310
|
}
|
|
2301
2311
|
const refValue = vnode.shapeFlag & 4 ? getComponentPublicInstance(vnode.component) : vnode.el;
|
|
2302
2312
|
const value = isUnmount ? null : refValue;
|
|
2303
|
-
const { i: owner, r: ref
|
|
2313
|
+
const { i: owner, r: ref } = rawRef;
|
|
2304
2314
|
if (!!(process.env.NODE_ENV !== "production") && !owner) {
|
|
2305
2315
|
warn$1(`Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.`);
|
|
2306
2316
|
return;
|
|
@@ -2319,7 +2329,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
2319
2329
|
const canSetRef = (ref2) => {
|
|
2320
2330
|
return !!!(process.env.NODE_ENV !== "production") || !knownTemplateRefs.has(ref2);
|
|
2321
2331
|
};
|
|
2322
|
-
if (oldRef != null && oldRef !== ref
|
|
2332
|
+
if (oldRef != null && oldRef !== ref) {
|
|
2323
2333
|
invalidatePendingSetRef(oldRawRef);
|
|
2324
2334
|
if (isString(oldRef)) {
|
|
2325
2335
|
refs[oldRef] = null;
|
|
@@ -2330,31 +2340,31 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
2330
2340
|
if (oldRawRefAtom.k) refs[oldRawRefAtom.k] = null;
|
|
2331
2341
|
}
|
|
2332
2342
|
}
|
|
2333
|
-
if (isFunction(ref
|
|
2343
|
+
if (isFunction(ref)) callWithErrorHandling(ref, owner, 12, [value, refs]);
|
|
2334
2344
|
else {
|
|
2335
|
-
const _isString = isString(ref
|
|
2336
|
-
const _isRef = isRef(ref
|
|
2345
|
+
const _isString = isString(ref);
|
|
2346
|
+
const _isRef = isRef(ref);
|
|
2337
2347
|
if (_isString || _isRef) {
|
|
2338
2348
|
const doSet = () => {
|
|
2339
2349
|
if (rawRef.f) {
|
|
2340
|
-
const existing = _isString ? canSetSetupRef(ref
|
|
2350
|
+
const existing = _isString ? canSetSetupRef(ref) ? setupState[ref] : refs[ref] : canSetRef(ref) || !rawRef.k ? ref.value : refs[rawRef.k];
|
|
2341
2351
|
if (isUnmount) isArray(existing) && remove(existing, refValue);
|
|
2342
2352
|
else if (!isArray(existing)) if (_isString) {
|
|
2343
|
-
refs[ref
|
|
2344
|
-
if (canSetSetupRef(ref
|
|
2353
|
+
refs[ref] = [refValue];
|
|
2354
|
+
if (canSetSetupRef(ref)) setupState[ref] = refs[ref];
|
|
2345
2355
|
} else {
|
|
2346
2356
|
const newVal = [refValue];
|
|
2347
|
-
if (canSetRef(ref
|
|
2357
|
+
if (canSetRef(ref)) ref.value = newVal;
|
|
2348
2358
|
if (rawRef.k) refs[rawRef.k] = newVal;
|
|
2349
2359
|
}
|
|
2350
2360
|
else if (!existing.includes(refValue)) existing.push(refValue);
|
|
2351
2361
|
} else if (_isString) {
|
|
2352
|
-
refs[ref
|
|
2353
|
-
if (canSetSetupRef(ref
|
|
2362
|
+
refs[ref] = value;
|
|
2363
|
+
if (canSetSetupRef(ref)) setupState[ref] = value;
|
|
2354
2364
|
} else if (_isRef) {
|
|
2355
|
-
if (canSetRef(ref
|
|
2365
|
+
if (canSetRef(ref)) ref.value = value;
|
|
2356
2366
|
if (rawRef.k) refs[rawRef.k] = value;
|
|
2357
|
-
} else if (!!(process.env.NODE_ENV !== "production")) warn$1("Invalid template ref type:", ref
|
|
2367
|
+
} else if (!!(process.env.NODE_ENV !== "production")) warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
2358
2368
|
};
|
|
2359
2369
|
if (value) {
|
|
2360
2370
|
const job = () => {
|
|
@@ -2368,7 +2378,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
2368
2378
|
invalidatePendingSetRef(rawRef);
|
|
2369
2379
|
doSet();
|
|
2370
2380
|
}
|
|
2371
|
-
} else if (!!(process.env.NODE_ENV !== "production")) warn$1("Invalid template ref type:", ref
|
|
2381
|
+
} else if (!!(process.env.NODE_ENV !== "production")) warn$1("Invalid template ref type:", ref, `(${typeof ref})`);
|
|
2372
2382
|
}
|
|
2373
2383
|
}
|
|
2374
2384
|
function invalidatePendingSetRef(rawRef) {
|
|
@@ -2782,7 +2792,7 @@ function exposeSetupStateOnRenderContext(instance) {
|
|
|
2782
2792
|
});
|
|
2783
2793
|
}
|
|
2784
2794
|
function normalizePropsOrEmits(props) {
|
|
2785
|
-
return isArray(props) ? props.reduce((normalized, p
|
|
2795
|
+
return isArray(props) ? props.reduce((normalized, p) => (normalized[p] = null, normalized), {}) : props;
|
|
2786
2796
|
}
|
|
2787
2797
|
function createDuplicateChecker() {
|
|
2788
2798
|
const cache = /* @__PURE__ */ Object.create(null);
|
|
@@ -2798,7 +2808,7 @@ function applyOptions(instance) {
|
|
|
2798
2808
|
const ctx = instance.ctx;
|
|
2799
2809
|
shouldCacheAccess = false;
|
|
2800
2810
|
if (options.beforeCreate) callHook(options.beforeCreate, instance, "bc");
|
|
2801
|
-
const { data: dataOptions, computed: computedOptions, methods, watch: watchOptions, provide: provideOptions, inject: injectOptions, created, beforeMount, mounted, beforeUpdate, updated, activated, deactivated, beforeDestroy, beforeUnmount, destroyed, unmounted, render
|
|
2811
|
+
const { data: dataOptions, computed: computedOptions, methods, watch: watchOptions, provide: provideOptions, inject: injectOptions, created, beforeMount, mounted, beforeUpdate, updated, activated, deactivated, beforeDestroy, beforeUnmount, destroyed, unmounted, render, renderTracked, renderTriggered, errorCaptured, serverPrefetch, expose, inheritAttrs, components, directives, filters } = options;
|
|
2802
2812
|
const checkDuplicateProperties = !!(process.env.NODE_ENV !== "production") ? createDuplicateChecker() : null;
|
|
2803
2813
|
if (!!(process.env.NODE_ENV !== "production")) {
|
|
2804
2814
|
const [propsOptions] = instance.propsOptions;
|
|
@@ -2891,7 +2901,7 @@ function applyOptions(instance) {
|
|
|
2891
2901
|
});
|
|
2892
2902
|
} else if (!instance.exposed) instance.exposed = {};
|
|
2893
2903
|
}
|
|
2894
|
-
if (render
|
|
2904
|
+
if (render && instance.render === NOOP) instance.render = render;
|
|
2895
2905
|
if (inheritAttrs != null) instance.inheritAttrs = inheritAttrs;
|
|
2896
2906
|
if (components) instance.components = components;
|
|
2897
2907
|
if (directives) instance.directives = directives;
|
|
@@ -2916,7 +2926,7 @@ function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP)
|
|
|
2916
2926
|
}
|
|
2917
2927
|
}
|
|
2918
2928
|
function callHook(hook, instance, type) {
|
|
2919
|
-
callWithAsyncErrorHandling(isArray(hook) ? hook.map((h
|
|
2929
|
+
callWithAsyncErrorHandling(isArray(hook) ? hook.map((h) => h.bind(instance.proxy)) : hook.bind(instance.proxy), instance, type);
|
|
2920
2930
|
}
|
|
2921
2931
|
function createWatcher(raw, ctx, publicThis, key) {
|
|
2922
2932
|
let getter = key.includes(".") ? createPathGetter(publicThis, key) : () => publicThis[key];
|
|
@@ -3045,8 +3055,8 @@ function createAppContext() {
|
|
|
3045
3055
|
};
|
|
3046
3056
|
}
|
|
3047
3057
|
let uid$1 = 0;
|
|
3048
|
-
function createAppAPI(render
|
|
3049
|
-
return function createApp
|
|
3058
|
+
function createAppAPI(render, hydrate) {
|
|
3059
|
+
return function createApp(rootComponent, rootProps = null) {
|
|
3050
3060
|
if (!isFunction(rootComponent)) rootComponent = extend({}, rootComponent);
|
|
3051
3061
|
if (rootProps != null && !isObject(rootProps)) {
|
|
3052
3062
|
process.env.NODE_ENV !== "production" && warn$1(`root props passed to app.mount() must be an object.`);
|
|
@@ -3113,10 +3123,10 @@ function createAppAPI(render$1, hydrate) {
|
|
|
3113
3123
|
if (!!(process.env.NODE_ENV !== "production")) context.reload = () => {
|
|
3114
3124
|
const cloned = cloneVNode(vnode);
|
|
3115
3125
|
cloned.el = null;
|
|
3116
|
-
render
|
|
3126
|
+
render(cloned, rootContainer, namespace);
|
|
3117
3127
|
};
|
|
3118
3128
|
if (isHydrate && hydrate) hydrate(vnode, rootContainer);
|
|
3119
|
-
else render
|
|
3129
|
+
else render(vnode, rootContainer, namespace);
|
|
3120
3130
|
isMounted = true;
|
|
3121
3131
|
app._container = rootContainer;
|
|
3122
3132
|
rootContainer.__vue_app__ = app;
|
|
@@ -3135,7 +3145,7 @@ If you want to remount the same app, move your app creation logic into a factory
|
|
|
3135
3145
|
unmount() {
|
|
3136
3146
|
if (isMounted) {
|
|
3137
3147
|
callWithAsyncErrorHandling(pluginCleanupFns, app._instance, 16);
|
|
3138
|
-
render
|
|
3148
|
+
render(null, app._container);
|
|
3139
3149
|
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
|
|
3140
3150
|
app._instance = null;
|
|
3141
3151
|
devtoolsUnmountApp(app);
|
|
@@ -3181,8 +3191,8 @@ function emit(instance, event, ...rawArgs) {
|
|
|
3181
3191
|
}
|
|
3182
3192
|
}
|
|
3183
3193
|
let args = rawArgs;
|
|
3184
|
-
const isModelListener
|
|
3185
|
-
const modifiers = isModelListener
|
|
3194
|
+
const isModelListener = event.startsWith("update:");
|
|
3195
|
+
const modifiers = isModelListener && getModelModifiers(props, event.slice(7));
|
|
3186
3196
|
if (modifiers) {
|
|
3187
3197
|
if (modifiers.trim) args = rawArgs.map((a) => isString(a) ? a.trim() : a);
|
|
3188
3198
|
if (modifiers.number) args = rawArgs.map(looseToNumber);
|
|
@@ -3194,7 +3204,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
3194
3204
|
}
|
|
3195
3205
|
let handlerName;
|
|
3196
3206
|
let handler = props[handlerName = toHandlerKey(event)] || props[handlerName = toHandlerKey(camelize(event))];
|
|
3197
|
-
if (!handler && isModelListener
|
|
3207
|
+
if (!handler && isModelListener) handler = props[handlerName = toHandlerKey(hyphenate(event))];
|
|
3198
3208
|
if (handler) callWithAsyncErrorHandling(handler, instance, 6, args);
|
|
3199
3209
|
const onceHandler = props[handlerName + `Once`];
|
|
3200
3210
|
if (onceHandler) {
|
|
@@ -3243,7 +3253,7 @@ function markAttrsAccessed() {
|
|
|
3243
3253
|
accessedAttrs = true;
|
|
3244
3254
|
}
|
|
3245
3255
|
function renderComponentRoot(instance) {
|
|
3246
|
-
const { type: Component, vnode, proxy, withProxy, propsOptions: [propsOptions], slots, attrs, emit
|
|
3256
|
+
const { type: Component, vnode, proxy, withProxy, propsOptions: [propsOptions], slots, attrs, emit, render, renderCache, props, data, setupState, ctx, inheritAttrs } = instance;
|
|
3247
3257
|
const prev = setCurrentRenderingInstance(instance);
|
|
3248
3258
|
let result;
|
|
3249
3259
|
let fallthroughAttrs;
|
|
@@ -3255,7 +3265,7 @@ function renderComponentRoot(instance) {
|
|
|
3255
3265
|
warn$1(`Property '${String(key)}' was accessed via 'this'. Avoid using 'this' in templates.`);
|
|
3256
3266
|
return Reflect.get(target, key, receiver);
|
|
3257
3267
|
} }) : proxyToUse;
|
|
3258
|
-
result = normalizeVNode(render
|
|
3268
|
+
result = normalizeVNode(render.call(thisProxy, proxyToUse, renderCache, !!(process.env.NODE_ENV !== "production") ? shallowReadonly(props) : props, setupState, data, ctx));
|
|
3259
3269
|
fallthroughAttrs = attrs;
|
|
3260
3270
|
} else {
|
|
3261
3271
|
const render2 = Component;
|
|
@@ -3266,11 +3276,11 @@ function renderComponentRoot(instance) {
|
|
|
3266
3276
|
return shallowReadonly(attrs);
|
|
3267
3277
|
},
|
|
3268
3278
|
slots,
|
|
3269
|
-
emit
|
|
3279
|
+
emit
|
|
3270
3280
|
} : {
|
|
3271
3281
|
attrs,
|
|
3272
3282
|
slots,
|
|
3273
|
-
emit
|
|
3283
|
+
emit
|
|
3274
3284
|
}) : render2(!!(process.env.NODE_ENV !== "production") ? shallowReadonly(props) : props, null));
|
|
3275
3285
|
fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
|
|
3276
3286
|
}
|
|
@@ -3806,7 +3816,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3806
3816
|
optimized = false;
|
|
3807
3817
|
n2.dynamicChildren = null;
|
|
3808
3818
|
}
|
|
3809
|
-
const { type, ref
|
|
3819
|
+
const { type, ref, shapeFlag } = n2;
|
|
3810
3820
|
switch (type) {
|
|
3811
3821
|
case Text:
|
|
3812
3822
|
processText(n1, n2, container, anchor);
|
|
@@ -3827,8 +3837,8 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3827
3837
|
else if (shapeFlag & 128) type.process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals);
|
|
3828
3838
|
else if (!!(process.env.NODE_ENV !== "production")) warn$1("Invalid VNode type:", type, `(${typeof type})`);
|
|
3829
3839
|
}
|
|
3830
|
-
if (ref
|
|
3831
|
-
else if (ref
|
|
3840
|
+
if (ref != null && parentComponent) setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
|
|
3841
|
+
else if (ref == null && n1 && n1.ref != null) setRef(n1.ref, null, parentSuspense, n1, true);
|
|
3832
3842
|
};
|
|
3833
3843
|
const processText = (n1, n2, container, anchor) => {
|
|
3834
3844
|
if (n1 == null) hostInsert(n2.el = hostCreateText(n2.children), container, anchor);
|
|
@@ -4350,11 +4360,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4350
4360
|
else hostInsert(el, container, anchor);
|
|
4351
4361
|
};
|
|
4352
4362
|
const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
|
|
4353
|
-
const { type, props, ref
|
|
4363
|
+
const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs, cacheIndex } = vnode;
|
|
4354
4364
|
if (patchFlag === -2) optimized = false;
|
|
4355
|
-
if (ref
|
|
4365
|
+
if (ref != null) {
|
|
4356
4366
|
pauseTracking();
|
|
4357
|
-
setRef(ref
|
|
4367
|
+
setRef(ref, null, parentSuspense, vnode, true);
|
|
4358
4368
|
resetTracking();
|
|
4359
4369
|
}
|
|
4360
4370
|
if (cacheIndex != null) parentComponent.renderCache[cacheIndex] = void 0;
|
|
@@ -4376,19 +4386,19 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4376
4386
|
if (shapeFlag & 64) vnode.type.remove(vnode, parentComponent, parentSuspense, internals, doRemove);
|
|
4377
4387
|
else if (dynamicChildren && !dynamicChildren.hasOnce && (type !== Fragment || patchFlag > 0 && patchFlag & 64)) unmountChildren(dynamicChildren, parentComponent, parentSuspense, false, true);
|
|
4378
4388
|
else if (type === Fragment && patchFlag & 384 || !optimized && shapeFlag & 16) unmountChildren(children, parentComponent, parentSuspense);
|
|
4379
|
-
if (doRemove) remove
|
|
4389
|
+
if (doRemove) remove(vnode);
|
|
4380
4390
|
}
|
|
4381
4391
|
if (shouldInvokeVnodeHook && (vnodeHook = props && props.onVnodeUnmounted) || shouldInvokeDirs) queuePostRenderEffect(() => {
|
|
4382
4392
|
vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
|
|
4383
4393
|
shouldInvokeDirs && invokeDirectiveHook(vnode, null, parentComponent, "unmounted");
|
|
4384
4394
|
}, parentSuspense);
|
|
4385
4395
|
};
|
|
4386
|
-
const remove
|
|
4396
|
+
const remove = (vnode) => {
|
|
4387
4397
|
const { type, el, anchor, transition } = vnode;
|
|
4388
4398
|
if (type === Fragment) {
|
|
4389
4399
|
if (!!(process.env.NODE_ENV !== "production") && vnode.patchFlag > 0 && vnode.patchFlag & 2048 && transition && !transition.persisted) vnode.children.forEach((child) => {
|
|
4390
4400
|
if (child.type === Comment) hostRemove(child.el);
|
|
4391
|
-
else remove
|
|
4401
|
+
else remove(child);
|
|
4392
4402
|
});
|
|
4393
4403
|
else removeFragment(el, anchor);
|
|
4394
4404
|
return;
|
|
@@ -4445,7 +4455,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4445
4455
|
return teleportEnd ? hostNextSibling(teleportEnd) : el;
|
|
4446
4456
|
};
|
|
4447
4457
|
let isFlushing = false;
|
|
4448
|
-
const render
|
|
4458
|
+
const render = (vnode, container, namespace) => {
|
|
4449
4459
|
let instance;
|
|
4450
4460
|
if (vnode == null) {
|
|
4451
4461
|
if (container._vnode) {
|
|
@@ -4465,7 +4475,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4465
4475
|
p: patch,
|
|
4466
4476
|
um: unmount,
|
|
4467
4477
|
m: move,
|
|
4468
|
-
r: remove
|
|
4478
|
+
r: remove,
|
|
4469
4479
|
mt: mountComponent,
|
|
4470
4480
|
mc: mountChildren,
|
|
4471
4481
|
pc: patchChildren,
|
|
@@ -4477,9 +4487,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4477
4487
|
let hydrateNode;
|
|
4478
4488
|
if (createHydrationFns) [hydrate, hydrateNode] = createHydrationFns(internals);
|
|
4479
4489
|
return {
|
|
4480
|
-
render
|
|
4490
|
+
render,
|
|
4481
4491
|
hydrate,
|
|
4482
|
-
createApp: createAppAPI(render
|
|
4492
|
+
createApp: createAppAPI(render, hydrate)
|
|
4483
4493
|
};
|
|
4484
4494
|
}
|
|
4485
4495
|
function resolveChildrenNamespace({ type, props }, currentNamespace) {
|
|
@@ -4517,7 +4527,7 @@ function traverseStaticChildren(n1, n2, shallow = false) {
|
|
|
4517
4527
|
}
|
|
4518
4528
|
}
|
|
4519
4529
|
function getSequence(arr) {
|
|
4520
|
-
const p
|
|
4530
|
+
const p = arr.slice();
|
|
4521
4531
|
const result = [0];
|
|
4522
4532
|
let i, j, u, v, c;
|
|
4523
4533
|
const len = arr.length;
|
|
@@ -4526,7 +4536,7 @@ function getSequence(arr) {
|
|
|
4526
4536
|
if (arrI !== 0) {
|
|
4527
4537
|
j = result[result.length - 1];
|
|
4528
4538
|
if (arr[j] < arrI) {
|
|
4529
|
-
p
|
|
4539
|
+
p[i] = j;
|
|
4530
4540
|
result.push(i);
|
|
4531
4541
|
continue;
|
|
4532
4542
|
}
|
|
@@ -4538,7 +4548,7 @@ function getSequence(arr) {
|
|
|
4538
4548
|
else v = c;
|
|
4539
4549
|
}
|
|
4540
4550
|
if (arrI < arr[result[u]]) {
|
|
4541
|
-
if (u > 0) p
|
|
4551
|
+
if (u > 0) p[i] = result[u - 1];
|
|
4542
4552
|
result[u] = i;
|
|
4543
4553
|
}
|
|
4544
4554
|
}
|
|
@@ -4547,7 +4557,7 @@ function getSequence(arr) {
|
|
|
4547
4557
|
v = result[u - 1];
|
|
4548
4558
|
while (u-- > 0) {
|
|
4549
4559
|
result[u] = v;
|
|
4550
|
-
v = p
|
|
4560
|
+
v = p[v];
|
|
4551
4561
|
}
|
|
4552
4562
|
return result;
|
|
4553
4563
|
}
|
|
@@ -4668,7 +4678,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
4668
4678
|
hasWarned = true;
|
|
4669
4679
|
console[console.info ? "info" : "log"](`<Suspense> is an experimental feature and its API will likely change.`);
|
|
4670
4680
|
}
|
|
4671
|
-
const { p: patch, m: move, um: unmount, n: next, o: { parentNode, remove
|
|
4681
|
+
const { p: patch, m: move, um: unmount, n: next, o: { parentNode, remove } } = rendererInternals;
|
|
4672
4682
|
let parentSuspenseId;
|
|
4673
4683
|
const isSuspensible = isVNodeSuspensible(vnode);
|
|
4674
4684
|
if (isSuspensible) {
|
|
@@ -4783,7 +4793,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
4783
4793
|
setupRenderEffect(instance, vnode2, parentNode(hydratedEl || instance.subTree.el), hydratedEl ? null : next(instance.subTree), suspense, namespace, optimized2);
|
|
4784
4794
|
if (placeholder) {
|
|
4785
4795
|
vnode2.placeholder = null;
|
|
4786
|
-
remove
|
|
4796
|
+
remove(placeholder);
|
|
4787
4797
|
}
|
|
4788
4798
|
updateHOCHostEl(instance, vnode2.el);
|
|
4789
4799
|
if (!!(process.env.NODE_ENV !== "production")) popWarningContext();
|
|
@@ -4906,14 +4916,14 @@ const createVNodeWithArgsTransform = (...args) => {
|
|
|
4906
4916
|
return _createVNode(...vnodeArgsTransformer ? vnodeArgsTransformer(args, currentRenderingInstance) : args);
|
|
4907
4917
|
};
|
|
4908
4918
|
const normalizeKey = ({ key }) => key != null ? key : null;
|
|
4909
|
-
const normalizeRef = ({ ref
|
|
4910
|
-
if (typeof ref
|
|
4911
|
-
return ref
|
|
4919
|
+
const normalizeRef = ({ ref, ref_key, ref_for }) => {
|
|
4920
|
+
if (typeof ref === "number") ref = "" + ref;
|
|
4921
|
+
return ref != null ? isString(ref) || isRef(ref) || isFunction(ref) ? {
|
|
4912
4922
|
i: currentRenderingInstance,
|
|
4913
|
-
r: ref
|
|
4923
|
+
r: ref,
|
|
4914
4924
|
k: ref_key,
|
|
4915
4925
|
f: !!ref_for
|
|
4916
|
-
} : ref
|
|
4926
|
+
} : ref : null;
|
|
4917
4927
|
};
|
|
4918
4928
|
function createBaseVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, shapeFlag = type === Fragment ? 0 : 1, isBlockNode = false, needFullChildrenNormalization = false) {
|
|
4919
4929
|
const vnode = {
|
|
@@ -4990,7 +5000,7 @@ function guardReactiveProps(props) {
|
|
|
4990
5000
|
return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
|
|
4991
5001
|
}
|
|
4992
5002
|
function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
|
|
4993
|
-
const { props, ref
|
|
5003
|
+
const { props, ref, patchFlag, children, transition } = vnode;
|
|
4994
5004
|
const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
|
|
4995
5005
|
const cloned = {
|
|
4996
5006
|
__v_isVNode: true,
|
|
@@ -4998,7 +5008,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false
|
|
|
4998
5008
|
type: vnode.type,
|
|
4999
5009
|
props: mergedProps,
|
|
5000
5010
|
key: mergedProps && normalizeKey(mergedProps),
|
|
5001
|
-
ref: extraProps && extraProps.ref ? mergeRef && ref
|
|
5011
|
+
ref: extraProps && extraProps.ref ? mergeRef && ref ? isArray(ref) ? ref.concat(normalizeRef(extraProps)) : [ref, normalizeRef(extraProps)] : normalizeRef(extraProps) : ref,
|
|
5002
5012
|
scopeId: vnode.scopeId,
|
|
5003
5013
|
slotScopeIds: vnode.slotScopeIds,
|
|
5004
5014
|
children: !!(process.env.NODE_ENV !== "production") && patchFlag === -1 && isArray(children) ? children.map(deepCloneVNode) : children,
|
|
@@ -5514,8 +5524,8 @@ function initCustomFormatter() {
|
|
|
5514
5524
|
if (instance.type.props && instance.props) blocks.push(createInstanceBlock("props", toRaw(instance.props)));
|
|
5515
5525
|
if (instance.setupState !== EMPTY_OBJ) blocks.push(createInstanceBlock("setup", instance.setupState));
|
|
5516
5526
|
if (instance.data !== EMPTY_OBJ) blocks.push(createInstanceBlock("data", toRaw(instance.data)));
|
|
5517
|
-
const computed
|
|
5518
|
-
if (computed
|
|
5527
|
+
const computed = extractKeys(instance, "computed");
|
|
5528
|
+
if (computed) blocks.push(createInstanceBlock("computed", computed));
|
|
5519
5529
|
const injected = extractKeys(instance, "inject");
|
|
5520
5530
|
if (injected) blocks.push(createInstanceBlock("injected", injected));
|
|
5521
5531
|
blocks.push([
|
|
@@ -5603,15 +5613,15 @@ function initCustomFormatter() {
|
|
|
5603
5613
|
if (window.devtoolsFormatters) window.devtoolsFormatters.push(formatter);
|
|
5604
5614
|
else window.devtoolsFormatters = [formatter];
|
|
5605
5615
|
}
|
|
5606
|
-
const version = "3.5.
|
|
5616
|
+
const version = "3.5.27";
|
|
5607
5617
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
5608
5618
|
const devtools = (process.env.NODE_ENV, devtools$1);
|
|
5609
5619
|
const setDevtoolsHook = (process.env.NODE_ENV, setDevtoolsHook$1);
|
|
5610
5620
|
|
|
5611
5621
|
//#endregion
|
|
5612
|
-
//#region ../../node_modules/.pnpm/@vue+runtime-dom@3.5.
|
|
5622
|
+
//#region ../../node_modules/.pnpm/@vue+runtime-dom@3.5.27/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js
|
|
5613
5623
|
/**
|
|
5614
|
-
* @vue/runtime-dom v3.5.
|
|
5624
|
+
* @vue/runtime-dom v3.5.27
|
|
5615
5625
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5616
5626
|
* @license MIT
|
|
5617
5627
|
**/
|
|
@@ -5778,11 +5788,11 @@ function autoPrefix(style, rawName) {
|
|
|
5778
5788
|
return rawName;
|
|
5779
5789
|
}
|
|
5780
5790
|
const xlinkNS = "http://www.w3.org/1999/xlink";
|
|
5781
|
-
function patchAttr(el, key, value, isSVG, instance, isBoolean
|
|
5791
|
+
function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) {
|
|
5782
5792
|
if (isSVG && key.startsWith("xlink:")) if (value == null) el.removeAttributeNS(xlinkNS, key.slice(6, key.length));
|
|
5783
5793
|
else el.setAttributeNS(xlinkNS, key, value);
|
|
5784
|
-
else if (value == null || isBoolean
|
|
5785
|
-
else el.setAttribute(key, isBoolean
|
|
5794
|
+
else if (value == null || isBoolean && !includeBooleanAttr(value)) el.removeAttribute(key);
|
|
5795
|
+
else el.setAttribute(key, isBoolean ? "" : isSymbol(value) ? String(value) : value);
|
|
5786
5796
|
}
|
|
5787
5797
|
function patchDOMProp(el, key, value, parentComponent, attrName) {
|
|
5788
5798
|
if (key === "innerHTML" || key === "textContent") {
|
|
@@ -6017,10 +6027,10 @@ var VueElement = class VueElement extends BaseClass {
|
|
|
6017
6027
|
for (let i = 0; i < this.attributes.length; i++) this._setAttr(this.attributes[i].name);
|
|
6018
6028
|
this._ob = new MutationObserver(this._processMutations.bind(this));
|
|
6019
6029
|
this._ob.observe(this, { attributes: true });
|
|
6020
|
-
const resolve = (def
|
|
6030
|
+
const resolve = (def, isAsync = false) => {
|
|
6021
6031
|
this._resolved = true;
|
|
6022
6032
|
this._pendingResolve = void 0;
|
|
6023
|
-
const { props, styles } = def
|
|
6033
|
+
const { props, styles } = def;
|
|
6024
6034
|
let numberProps;
|
|
6025
6035
|
if (props && !isArray(props)) for (const key in props) {
|
|
6026
6036
|
const opt = props[key];
|
|
@@ -6030,23 +6040,23 @@ var VueElement = class VueElement extends BaseClass {
|
|
|
6030
6040
|
}
|
|
6031
6041
|
}
|
|
6032
6042
|
this._numberProps = numberProps;
|
|
6033
|
-
this._resolveProps(def
|
|
6043
|
+
this._resolveProps(def);
|
|
6034
6044
|
if (this.shadowRoot) this._applyStyles(styles);
|
|
6035
6045
|
else if (!!(process.env.NODE_ENV !== "production") && styles) warn("Custom element style injection is not supported when using shadowRoot: false");
|
|
6036
|
-
this._mount(def
|
|
6046
|
+
this._mount(def);
|
|
6037
6047
|
};
|
|
6038
6048
|
const asyncDef = this._def.__asyncLoader;
|
|
6039
|
-
if (asyncDef) this._pendingResolve = asyncDef().then((def
|
|
6040
|
-
def
|
|
6041
|
-
resolve(this._def = def
|
|
6049
|
+
if (asyncDef) this._pendingResolve = asyncDef().then((def) => {
|
|
6050
|
+
def.configureApp = this._def.configureApp;
|
|
6051
|
+
resolve(this._def = def, true);
|
|
6042
6052
|
});
|
|
6043
6053
|
else resolve(this._def);
|
|
6044
6054
|
}
|
|
6045
|
-
_mount(def
|
|
6046
|
-
if ((!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) && !def
|
|
6047
|
-
this._app = this._createApp(def
|
|
6055
|
+
_mount(def) {
|
|
6056
|
+
if ((!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) && !def.name) def.name = "VueElement";
|
|
6057
|
+
this._app = this._createApp(def);
|
|
6048
6058
|
this._inheritParentContext();
|
|
6049
|
-
if (def
|
|
6059
|
+
if (def.configureApp) def.configureApp(this._app);
|
|
6050
6060
|
this._app._ceVNode = this._createVNode();
|
|
6051
6061
|
this._app.mount(this._root);
|
|
6052
6062
|
const exposed = this._instance && this._instance.exposed;
|
|
@@ -6054,8 +6064,8 @@ var VueElement = class VueElement extends BaseClass {
|
|
|
6054
6064
|
for (const key in exposed) if (!hasOwn(this, key)) Object.defineProperty(this, key, { get: () => unref(exposed[key]) });
|
|
6055
6065
|
else if (!!(process.env.NODE_ENV !== "production")) warn(`Exposed property "${key}" already exists on custom element.`);
|
|
6056
6066
|
}
|
|
6057
|
-
_resolveProps(def
|
|
6058
|
-
const { props } = def
|
|
6067
|
+
_resolveProps(def) {
|
|
6068
|
+
const { props } = def;
|
|
6059
6069
|
const declaredPropKeys = isArray(props) ? props : Object.keys(props || {});
|
|
6060
6070
|
for (const key of Object.keys(this)) if (key[0] !== "_" && declaredPropKeys.includes(key)) this._setProp(key, this[key]);
|
|
6061
6071
|
for (const key of declaredPropKeys.map(camelize)) Object.defineProperty(this, key, {
|
|
@@ -6277,6 +6287,24 @@ const withModifiers = (fn, modifiers) => {
|
|
|
6277
6287
|
return fn(event, ...args);
|
|
6278
6288
|
}));
|
|
6279
6289
|
};
|
|
6290
|
+
const keyNames = {
|
|
6291
|
+
esc: "escape",
|
|
6292
|
+
space: " ",
|
|
6293
|
+
up: "arrow-up",
|
|
6294
|
+
left: "arrow-left",
|
|
6295
|
+
right: "arrow-right",
|
|
6296
|
+
down: "arrow-down",
|
|
6297
|
+
delete: "backspace"
|
|
6298
|
+
};
|
|
6299
|
+
const withKeys = (fn, modifiers) => {
|
|
6300
|
+
const cache = fn._withKeys || (fn._withKeys = {});
|
|
6301
|
+
const cacheKey = modifiers.join(".");
|
|
6302
|
+
return cache[cacheKey] || (cache[cacheKey] = ((event) => {
|
|
6303
|
+
if (!("key" in event)) return;
|
|
6304
|
+
const eventKey = hyphenate(event.key);
|
|
6305
|
+
if (modifiers.some((k) => k === eventKey || keyNames[k] === eventKey)) return fn(event);
|
|
6306
|
+
}));
|
|
6307
|
+
};
|
|
6280
6308
|
const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps);
|
|
6281
6309
|
let renderer;
|
|
6282
6310
|
function ensureRenderer() {
|
|
@@ -6355,9 +6383,9 @@ function normalizeContainer(container) {
|
|
|
6355
6383
|
}
|
|
6356
6384
|
|
|
6357
6385
|
//#endregion
|
|
6358
|
-
//#region ../../node_modules/.pnpm/vue@3.5.
|
|
6386
|
+
//#region ../../node_modules/.pnpm/vue@3.5.27_typescript@5.9.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
|
|
6359
6387
|
/**
|
|
6360
|
-
* vue v3.5.
|
|
6388
|
+
* vue v3.5.27
|
|
6361
6389
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
6362
6390
|
* @license MIT
|
|
6363
6391
|
**/
|
|
@@ -6367,4 +6395,4 @@ function initDev() {
|
|
|
6367
6395
|
if (!!(process.env.NODE_ENV !== "production")) initDev();
|
|
6368
6396
|
|
|
6369
6397
|
//#endregion
|
|
6370
|
-
export {
|
|
6398
|
+
export { withCtx as A, toRef as B, onUnmounted as C, useTemplateRef as D, renderSlot as E, onScopeDispose as F, normalizeStyle as G, toValue as H, reactive as I, toDisplayString as K, readonly as L, customRef as M, getCurrentScope as N, watch as O, markRaw as P, ref as R, onMounted as S, renderList as T, unref as U, toRefs as V, normalizeClass as W, getCurrentInstance as _, Fragment as a, inject as b, createBaseVNode as c, createElementBlock as d, createStaticVNode as f, defineComponent as g, defineAsyncComponent as h, withModifiers as i, withDirectives as j, watchEffect as k, createBlock as l, createVNode as m, vShow as n, Suspense as o, createTextVNode as p, withKeys as r, computed as s, defineCustomElement as t, createCommentVNode as u, h as v, openBlock as w, nextTick as x, hasInjectionContext as y, shallowRef as z };
|