@valaxyjs/devtools 0.18.6 → 0.18.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{index-DWqsJbxC.css → index-DIHmqMB6.css} +1 -1
- package/dist/client/assets/{index-C-zhEyv8.js → index-FtLpRgBM.js} +594 -784
- package/dist/client/index.html +2 -2
- package/package.json +6 -6
- package/src/client/components.d.ts +48 -48
- package/dist/client/assets/_plugin-vue_export-helper-DgDhiqFL.js +0 -11
- package/dist/client/assets/about-BFD_MvF9.js +0 -12
- package/dist/client/assets/categories-D_edQMeI.js +0 -12
- package/dist/client/assets/index-Cd46Agkz.js +0 -4540
- package/dist/client/assets/index-DF84L4of.css +0 -61
- package/dist/client/assets/tags-IGhVL7Gg.js +0 -12
|
@@ -1,51 +1,44 @@
|
|
|
1
|
-
const __vite__fileDeps=["./index-Cd46Agkz.js","./_plugin-vue_export-helper-DgDhiqFL.js","./index-DF84L4of.css","./about-BFD_MvF9.js","./categories-D_edQMeI.js","./tags-IGhVL7Gg.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|
2
1
|
true&&(function polyfill() {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
}).observe(document, { childList: true, subtree: true });
|
|
21
|
-
function getFetchOpts(link) {
|
|
22
|
-
const fetchOpts = {};
|
|
23
|
-
if (link.integrity)
|
|
24
|
-
fetchOpts.integrity = link.integrity;
|
|
25
|
-
if (link.referrerPolicy)
|
|
26
|
-
fetchOpts.referrerPolicy = link.referrerPolicy;
|
|
27
|
-
if (link.crossOrigin === 'use-credentials')
|
|
28
|
-
fetchOpts.credentials = 'include';
|
|
29
|
-
else if (link.crossOrigin === 'anonymous')
|
|
30
|
-
fetchOpts.credentials = 'omit';
|
|
31
|
-
else
|
|
32
|
-
fetchOpts.credentials = 'same-origin';
|
|
33
|
-
return fetchOpts;
|
|
34
|
-
}
|
|
35
|
-
function processPreload(link) {
|
|
36
|
-
if (link.ep)
|
|
37
|
-
// ep marker = processed
|
|
38
|
-
return;
|
|
39
|
-
link.ep = true;
|
|
40
|
-
// prepopulate the load record
|
|
41
|
-
const fetchOpts = getFetchOpts(link);
|
|
42
|
-
fetch(link.href, fetchOpts);
|
|
2
|
+
const relList = document.createElement("link").relList;
|
|
3
|
+
if (relList && relList.supports && relList.supports("modulepreload")) {
|
|
4
|
+
return;
|
|
5
|
+
}
|
|
6
|
+
for (const link of document.querySelectorAll('link[rel="modulepreload"]')) {
|
|
7
|
+
processPreload(link);
|
|
8
|
+
}
|
|
9
|
+
new MutationObserver((mutations) => {
|
|
10
|
+
for (const mutation of mutations) {
|
|
11
|
+
if (mutation.type !== "childList") {
|
|
12
|
+
continue;
|
|
13
|
+
}
|
|
14
|
+
for (const node of mutation.addedNodes) {
|
|
15
|
+
if (node.tagName === "LINK" && node.rel === "modulepreload")
|
|
16
|
+
processPreload(node);
|
|
17
|
+
}
|
|
43
18
|
}
|
|
19
|
+
}).observe(document, { childList: true, subtree: true });
|
|
20
|
+
function getFetchOpts(link) {
|
|
21
|
+
const fetchOpts = {};
|
|
22
|
+
if (link.integrity) fetchOpts.integrity = link.integrity;
|
|
23
|
+
if (link.referrerPolicy) fetchOpts.referrerPolicy = link.referrerPolicy;
|
|
24
|
+
if (link.crossOrigin === "use-credentials")
|
|
25
|
+
fetchOpts.credentials = "include";
|
|
26
|
+
else if (link.crossOrigin === "anonymous") fetchOpts.credentials = "omit";
|
|
27
|
+
else fetchOpts.credentials = "same-origin";
|
|
28
|
+
return fetchOpts;
|
|
29
|
+
}
|
|
30
|
+
function processPreload(link) {
|
|
31
|
+
if (link.ep)
|
|
32
|
+
return;
|
|
33
|
+
link.ep = true;
|
|
34
|
+
const fetchOpts = getFetchOpts(link);
|
|
35
|
+
fetch(link.href, fetchOpts);
|
|
36
|
+
}
|
|
44
37
|
}());
|
|
45
38
|
/* Injected with object hook! */
|
|
46
39
|
|
|
47
40
|
/**
|
|
48
|
-
* @vue/shared v3.4.
|
|
41
|
+
* @vue/shared v3.4.29
|
|
49
42
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
50
43
|
* @license MIT
|
|
51
44
|
**/
|
|
@@ -53,7 +46,7 @@ true&&(function polyfill() {
|
|
|
53
46
|
// @__NO_SIDE_EFFECTS__
|
|
54
47
|
function makeMap(str, expectsLowerCase) {
|
|
55
48
|
const set = new Set(str.split(","));
|
|
56
|
-
return
|
|
49
|
+
return (val) => set.has(val);
|
|
57
50
|
}
|
|
58
51
|
const EMPTY_OBJ = {};
|
|
59
52
|
const EMPTY_ARR = [];
|
|
@@ -116,15 +109,16 @@ const toHandlerKey = cacheStringFunction((str) => {
|
|
|
116
109
|
return s;
|
|
117
110
|
});
|
|
118
111
|
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
|
119
|
-
const invokeArrayFns = (fns, arg) => {
|
|
112
|
+
const invokeArrayFns = (fns, ...arg) => {
|
|
120
113
|
for (let i = 0; i < fns.length; i++) {
|
|
121
|
-
fns[i](arg);
|
|
114
|
+
fns[i](...arg);
|
|
122
115
|
}
|
|
123
116
|
};
|
|
124
|
-
const def = (obj, key, value) => {
|
|
117
|
+
const def = (obj, key, value, writable = false) => {
|
|
125
118
|
Object.defineProperty(obj, key, {
|
|
126
119
|
configurable: true,
|
|
127
120
|
enumerable: false,
|
|
121
|
+
writable,
|
|
128
122
|
value
|
|
129
123
|
});
|
|
130
124
|
};
|
|
@@ -191,46 +185,11 @@ const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
|
|
|
191
185
|
function includeBooleanAttr(value) {
|
|
192
186
|
return !!value || value === "";
|
|
193
187
|
}
|
|
194
|
-
const toDisplayString = (val) => {
|
|
195
|
-
return isString(val) ? val : val == null ? "" : isArray$1(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? JSON.stringify(val, replacer, 2) : String(val);
|
|
196
|
-
};
|
|
197
|
-
const replacer = (_key, val) => {
|
|
198
|
-
if (val && val.__v_isRef) {
|
|
199
|
-
return replacer(_key, val.value);
|
|
200
|
-
} else if (isMap(val)) {
|
|
201
|
-
return {
|
|
202
|
-
[`Map(${val.size})`]: [...val.entries()].reduce(
|
|
203
|
-
(entries, [key, val2], i) => {
|
|
204
|
-
entries[stringifySymbol(key, i) + " =>"] = val2;
|
|
205
|
-
return entries;
|
|
206
|
-
},
|
|
207
|
-
{}
|
|
208
|
-
)
|
|
209
|
-
};
|
|
210
|
-
} else if (isSet(val)) {
|
|
211
|
-
return {
|
|
212
|
-
[`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v))
|
|
213
|
-
};
|
|
214
|
-
} else if (isSymbol(val)) {
|
|
215
|
-
return stringifySymbol(val);
|
|
216
|
-
} else if (isObject(val) && !isArray$1(val) && !isPlainObject(val)) {
|
|
217
|
-
return String(val);
|
|
218
|
-
}
|
|
219
|
-
return val;
|
|
220
|
-
};
|
|
221
|
-
const stringifySymbol = (v, i = "") => {
|
|
222
|
-
var _a;
|
|
223
|
-
return (
|
|
224
|
-
// Symbol.description in es2019+ so we need to cast here to pass
|
|
225
|
-
// the lib: es2016 check
|
|
226
|
-
isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v
|
|
227
|
-
);
|
|
228
|
-
};
|
|
229
188
|
|
|
230
189
|
/* Injected with object hook! */
|
|
231
190
|
|
|
232
191
|
/**
|
|
233
|
-
* @vue/reactivity v3.4.
|
|
192
|
+
* @vue/reactivity v3.4.29
|
|
234
193
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
235
194
|
* @license MIT
|
|
236
195
|
**/
|
|
@@ -318,7 +277,7 @@ class ReactiveEffect {
|
|
|
318
277
|
this.scheduler = scheduler;
|
|
319
278
|
this.active = true;
|
|
320
279
|
this.deps = [];
|
|
321
|
-
this._dirtyLevel =
|
|
280
|
+
this._dirtyLevel = 5;
|
|
322
281
|
this._trackId = 0;
|
|
323
282
|
this._runnings = 0;
|
|
324
283
|
this._shouldSchedule = false;
|
|
@@ -326,14 +285,18 @@ class ReactiveEffect {
|
|
|
326
285
|
recordEffectScope(this, scope);
|
|
327
286
|
}
|
|
328
287
|
get dirty() {
|
|
329
|
-
if (this._dirtyLevel === 2
|
|
288
|
+
if (this._dirtyLevel === 2)
|
|
289
|
+
return false;
|
|
290
|
+
if (this._dirtyLevel === 3 || this._dirtyLevel === 4) {
|
|
330
291
|
this._dirtyLevel = 1;
|
|
331
292
|
pauseTracking();
|
|
332
293
|
for (let i = 0; i < this._depsLength; i++) {
|
|
333
294
|
const dep = this.deps[i];
|
|
334
295
|
if (dep.computed) {
|
|
296
|
+
if (dep.computed.effect._dirtyLevel === 2)
|
|
297
|
+
return true;
|
|
335
298
|
triggerComputed(dep.computed);
|
|
336
|
-
if (this._dirtyLevel >=
|
|
299
|
+
if (this._dirtyLevel >= 5) {
|
|
337
300
|
break;
|
|
338
301
|
}
|
|
339
302
|
}
|
|
@@ -343,10 +306,10 @@ class ReactiveEffect {
|
|
|
343
306
|
}
|
|
344
307
|
resetTracking();
|
|
345
308
|
}
|
|
346
|
-
return this._dirtyLevel >=
|
|
309
|
+
return this._dirtyLevel >= 5;
|
|
347
310
|
}
|
|
348
311
|
set dirty(v) {
|
|
349
|
-
this._dirtyLevel = v ?
|
|
312
|
+
this._dirtyLevel = v ? 5 : 0;
|
|
350
313
|
}
|
|
351
314
|
run() {
|
|
352
315
|
this._dirtyLevel = 0;
|
|
@@ -369,11 +332,10 @@ class ReactiveEffect {
|
|
|
369
332
|
}
|
|
370
333
|
}
|
|
371
334
|
stop() {
|
|
372
|
-
var _a;
|
|
373
335
|
if (this.active) {
|
|
374
336
|
preCleanupEffect(this);
|
|
375
337
|
postCleanupEffect(this);
|
|
376
|
-
|
|
338
|
+
this.onStop && this.onStop();
|
|
377
339
|
this.active = false;
|
|
378
340
|
}
|
|
379
341
|
}
|
|
@@ -440,14 +402,23 @@ const queueEffectSchedulers = [];
|
|
|
440
402
|
function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
|
|
441
403
|
pauseScheduling();
|
|
442
404
|
for (const effect2 of dep.keys()) {
|
|
405
|
+
if (!dep.computed && effect2.computed) {
|
|
406
|
+
if (dep.get(effect2) === effect2._trackId && effect2._runnings > 0) {
|
|
407
|
+
effect2._dirtyLevel = 2;
|
|
408
|
+
continue;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
443
411
|
let tracking;
|
|
444
412
|
if (effect2._dirtyLevel < dirtyLevel && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
445
413
|
effect2._shouldSchedule || (effect2._shouldSchedule = effect2._dirtyLevel === 0);
|
|
414
|
+
if (effect2.computed && effect2._dirtyLevel === 2) {
|
|
415
|
+
effect2._shouldSchedule = true;
|
|
416
|
+
}
|
|
446
417
|
effect2._dirtyLevel = dirtyLevel;
|
|
447
418
|
}
|
|
448
419
|
if (effect2._shouldSchedule && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
|
|
449
420
|
effect2.trigger();
|
|
450
|
-
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !==
|
|
421
|
+
if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 3) {
|
|
451
422
|
effect2._shouldSchedule = false;
|
|
452
423
|
if (effect2.scheduler) {
|
|
453
424
|
queueEffectSchedulers.push(effect2.scheduler);
|
|
@@ -531,7 +502,7 @@ function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
|
531
502
|
if (dep) {
|
|
532
503
|
triggerEffects(
|
|
533
504
|
dep,
|
|
534
|
-
|
|
505
|
+
5);
|
|
535
506
|
}
|
|
536
507
|
}
|
|
537
508
|
resetScheduling();
|
|
@@ -570,8 +541,7 @@ function createArrayInstrumentations() {
|
|
|
570
541
|
return instrumentations;
|
|
571
542
|
}
|
|
572
543
|
function hasOwnProperty(key) {
|
|
573
|
-
if (!isSymbol(key))
|
|
574
|
-
key = String(key);
|
|
544
|
+
if (!isSymbol(key)) key = String(key);
|
|
575
545
|
const obj = toRaw(this);
|
|
576
546
|
track(obj, "has", key);
|
|
577
547
|
return obj.hasOwnProperty(key);
|
|
@@ -698,6 +668,7 @@ const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
|
|
|
698
668
|
const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(
|
|
699
669
|
true
|
|
700
670
|
);
|
|
671
|
+
const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);
|
|
701
672
|
const toShallow = (value) => value;
|
|
702
673
|
const getProto = (v) => Reflect.getPrototypeOf(v);
|
|
703
674
|
function get(target, key, isReadonly2 = false, isShallow2 = false) {
|
|
@@ -953,6 +924,9 @@ const shallowCollectionHandlers = {
|
|
|
953
924
|
const readonlyCollectionHandlers = {
|
|
954
925
|
get: /* @__PURE__ */ createInstrumentationGetter(true, false)
|
|
955
926
|
};
|
|
927
|
+
const shallowReadonlyCollectionHandlers = {
|
|
928
|
+
get: /* @__PURE__ */ createInstrumentationGetter(true, true)
|
|
929
|
+
};
|
|
956
930
|
const reactiveMap = /* @__PURE__ */ new WeakMap();
|
|
957
931
|
const shallowReactiveMap = /* @__PURE__ */ new WeakMap();
|
|
958
932
|
const readonlyMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -1004,6 +978,15 @@ function readonly(target) {
|
|
|
1004
978
|
readonlyMap
|
|
1005
979
|
);
|
|
1006
980
|
}
|
|
981
|
+
function shallowReadonly(target) {
|
|
982
|
+
return createReactiveObject(
|
|
983
|
+
target,
|
|
984
|
+
true,
|
|
985
|
+
shallowReadonlyHandlers,
|
|
986
|
+
shallowReadonlyCollectionHandlers,
|
|
987
|
+
shallowReadonlyMap
|
|
988
|
+
);
|
|
989
|
+
}
|
|
1007
990
|
function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) {
|
|
1008
991
|
if (!isObject(target)) {
|
|
1009
992
|
return target;
|
|
@@ -1064,7 +1047,7 @@ class ComputedRefImpl {
|
|
|
1064
1047
|
() => getter(this._value),
|
|
1065
1048
|
() => triggerRefValue(
|
|
1066
1049
|
this,
|
|
1067
|
-
this.effect._dirtyLevel ===
|
|
1050
|
+
this.effect._dirtyLevel === 3 ? 3 : 4
|
|
1068
1051
|
)
|
|
1069
1052
|
);
|
|
1070
1053
|
this.effect.computed = this;
|
|
@@ -1074,11 +1057,11 @@ class ComputedRefImpl {
|
|
|
1074
1057
|
get value() {
|
|
1075
1058
|
const self = toRaw(this);
|
|
1076
1059
|
if ((!self._cacheable || self.effect.dirty) && hasChanged(self._value, self._value = self.effect.run())) {
|
|
1077
|
-
triggerRefValue(self,
|
|
1060
|
+
triggerRefValue(self, 5);
|
|
1078
1061
|
}
|
|
1079
1062
|
trackRefValue(self);
|
|
1080
1063
|
if (self.effect._dirtyLevel >= 2) {
|
|
1081
|
-
triggerRefValue(self,
|
|
1064
|
+
triggerRefValue(self, 3);
|
|
1082
1065
|
}
|
|
1083
1066
|
return self._value;
|
|
1084
1067
|
}
|
|
@@ -1120,7 +1103,7 @@ function trackRefValue(ref2) {
|
|
|
1120
1103
|
));
|
|
1121
1104
|
}
|
|
1122
1105
|
}
|
|
1123
|
-
function triggerRefValue(ref2, dirtyLevel =
|
|
1106
|
+
function triggerRefValue(ref2, dirtyLevel = 5, newVal, oldVal) {
|
|
1124
1107
|
ref2 = toRaw(ref2);
|
|
1125
1108
|
const dep = ref2.dep;
|
|
1126
1109
|
if (dep) {
|
|
@@ -1160,9 +1143,10 @@ class RefImpl {
|
|
|
1160
1143
|
const useDirectValue = this.__v_isShallow || isShallow(newVal) || isReadonly(newVal);
|
|
1161
1144
|
newVal = useDirectValue ? newVal : toRaw(newVal);
|
|
1162
1145
|
if (hasChanged(newVal, this._rawValue)) {
|
|
1146
|
+
this._rawValue;
|
|
1163
1147
|
this._rawValue = newVal;
|
|
1164
1148
|
this._value = useDirectValue ? newVal : toReactive(newVal);
|
|
1165
|
-
triggerRefValue(this,
|
|
1149
|
+
triggerRefValue(this, 5);
|
|
1166
1150
|
}
|
|
1167
1151
|
}
|
|
1168
1152
|
}
|
|
@@ -1188,7 +1172,7 @@ function proxyRefs(objectWithRefs) {
|
|
|
1188
1172
|
/* Injected with object hook! */
|
|
1189
1173
|
|
|
1190
1174
|
/**
|
|
1191
|
-
* @vue/runtime-core v3.4.
|
|
1175
|
+
* @vue/runtime-core v3.4.29
|
|
1192
1176
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1193
1177
|
* @license MIT
|
|
1194
1178
|
**/
|
|
@@ -1204,6 +1188,7 @@ function warn$1(msg, ...args) {
|
|
|
1204
1188
|
instance,
|
|
1205
1189
|
11,
|
|
1206
1190
|
[
|
|
1191
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
1207
1192
|
msg + args.map((a) => {
|
|
1208
1193
|
var _a, _b;
|
|
1209
1194
|
return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
|
|
@@ -1368,7 +1353,7 @@ function nextTick(fn) {
|
|
|
1368
1353
|
const p = currentFlushPromise || resolvedPromise;
|
|
1369
1354
|
return fn ? p.then(this ? fn.bind(this) : fn) : p;
|
|
1370
1355
|
}
|
|
1371
|
-
function findInsertionIndex(id) {
|
|
1356
|
+
function findInsertionIndex$1(id) {
|
|
1372
1357
|
let start = flushIndex + 1;
|
|
1373
1358
|
let end = queue.length;
|
|
1374
1359
|
while (start < end) {
|
|
@@ -1391,7 +1376,7 @@ function queueJob(job) {
|
|
|
1391
1376
|
if (job.id == null) {
|
|
1392
1377
|
queue.push(job);
|
|
1393
1378
|
} else {
|
|
1394
|
-
queue.splice(findInsertionIndex(job.id), 0, job);
|
|
1379
|
+
queue.splice(findInsertionIndex$1(job.id), 0, job);
|
|
1395
1380
|
}
|
|
1396
1381
|
queueFlush();
|
|
1397
1382
|
}
|
|
@@ -1446,7 +1431,8 @@ function flushPostFlushCbs(seen) {
|
|
|
1446
1431
|
}
|
|
1447
1432
|
activePostFlushCbs = deduped;
|
|
1448
1433
|
for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
|
|
1449
|
-
activePostFlushCbs[postFlushIndex]
|
|
1434
|
+
const cb = activePostFlushCbs[postFlushIndex];
|
|
1435
|
+
if (cb.active !== false) cb();
|
|
1450
1436
|
}
|
|
1451
1437
|
activePostFlushCbs = null;
|
|
1452
1438
|
postFlushIndex = 0;
|
|
@@ -1456,10 +1442,8 @@ const getId = (job) => job.id == null ? Infinity : job.id;
|
|
|
1456
1442
|
const comparator = (a, b) => {
|
|
1457
1443
|
const diff = getId(a) - getId(b);
|
|
1458
1444
|
if (diff === 0) {
|
|
1459
|
-
if (a.pre && !b.pre)
|
|
1460
|
-
|
|
1461
|
-
if (b.pre && !a.pre)
|
|
1462
|
-
return 1;
|
|
1445
|
+
if (a.pre && !b.pre) return -1;
|
|
1446
|
+
if (b.pre && !a.pre) return 1;
|
|
1463
1447
|
}
|
|
1464
1448
|
return diff;
|
|
1465
1449
|
};
|
|
@@ -1487,8 +1471,7 @@ function flushJobs(seen) {
|
|
|
1487
1471
|
}
|
|
1488
1472
|
}
|
|
1489
1473
|
function emit(instance, event, ...rawArgs) {
|
|
1490
|
-
if (instance.isUnmounted)
|
|
1491
|
-
return;
|
|
1474
|
+
if (instance.isUnmounted) return;
|
|
1492
1475
|
const props = instance.vnode.props || EMPTY_OBJ;
|
|
1493
1476
|
let args = rawArgs;
|
|
1494
1477
|
const isModelListener2 = event.startsWith("update:");
|
|
@@ -1592,8 +1575,7 @@ function setCurrentRenderingInstance(instance) {
|
|
|
1592
1575
|
return prev;
|
|
1593
1576
|
}
|
|
1594
1577
|
function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {
|
|
1595
|
-
if (!ctx)
|
|
1596
|
-
return fn;
|
|
1578
|
+
if (!ctx) return fn;
|
|
1597
1579
|
if (fn._n) {
|
|
1598
1580
|
return fn;
|
|
1599
1581
|
}
|
|
@@ -1626,21 +1608,21 @@ function renderComponentRoot(instance) {
|
|
|
1626
1608
|
vnode,
|
|
1627
1609
|
proxy,
|
|
1628
1610
|
withProxy,
|
|
1629
|
-
props,
|
|
1630
1611
|
propsOptions: [propsOptions],
|
|
1631
1612
|
slots,
|
|
1632
1613
|
attrs,
|
|
1633
1614
|
emit: emit2,
|
|
1634
1615
|
render,
|
|
1635
1616
|
renderCache,
|
|
1617
|
+
props,
|
|
1636
1618
|
data,
|
|
1637
1619
|
setupState,
|
|
1638
1620
|
ctx,
|
|
1639
1621
|
inheritAttrs
|
|
1640
1622
|
} = instance;
|
|
1623
|
+
const prev = setCurrentRenderingInstance(instance);
|
|
1641
1624
|
let result;
|
|
1642
1625
|
let fallthroughAttrs;
|
|
1643
|
-
const prev = setCurrentRenderingInstance(instance);
|
|
1644
1626
|
try {
|
|
1645
1627
|
if (vnode.shapeFlag & 4) {
|
|
1646
1628
|
const proxyToUse = withProxy || proxy;
|
|
@@ -1659,7 +1641,7 @@ function renderComponentRoot(instance) {
|
|
|
1659
1641
|
thisProxy,
|
|
1660
1642
|
proxyToUse,
|
|
1661
1643
|
renderCache,
|
|
1662
|
-
props,
|
|
1644
|
+
false ? shallowReadonly(props) : props,
|
|
1663
1645
|
setupState,
|
|
1664
1646
|
data,
|
|
1665
1647
|
ctx
|
|
@@ -1671,19 +1653,18 @@ function renderComponentRoot(instance) {
|
|
|
1671
1653
|
if (false) ;
|
|
1672
1654
|
result = normalizeVNode(
|
|
1673
1655
|
render2.length > 1 ? render2(
|
|
1674
|
-
props,
|
|
1656
|
+
false ? shallowReadonly(props) : props,
|
|
1675
1657
|
false ? {
|
|
1676
1658
|
get attrs() {
|
|
1677
1659
|
markAttrsAccessed();
|
|
1678
|
-
return attrs;
|
|
1660
|
+
return shallowReadonly(attrs);
|
|
1679
1661
|
},
|
|
1680
1662
|
slots,
|
|
1681
1663
|
emit: emit2
|
|
1682
1664
|
} : { attrs, slots, emit: emit2 }
|
|
1683
1665
|
) : render2(
|
|
1684
|
-
props,
|
|
1666
|
+
false ? shallowReadonly(props) : props,
|
|
1685
1667
|
null
|
|
1686
|
-
/* we know it doesn't need it */
|
|
1687
1668
|
)
|
|
1688
1669
|
);
|
|
1689
1670
|
fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
|
|
@@ -1705,12 +1686,12 @@ function renderComponentRoot(instance) {
|
|
|
1705
1686
|
propsOptions
|
|
1706
1687
|
);
|
|
1707
1688
|
}
|
|
1708
|
-
root = cloneVNode(root, fallthroughAttrs);
|
|
1689
|
+
root = cloneVNode(root, fallthroughAttrs, false, true);
|
|
1709
1690
|
}
|
|
1710
1691
|
}
|
|
1711
1692
|
}
|
|
1712
1693
|
if (vnode.dirs) {
|
|
1713
|
-
root = cloneVNode(root);
|
|
1694
|
+
root = cloneVNode(root, null, false, true);
|
|
1714
1695
|
root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
1715
1696
|
}
|
|
1716
1697
|
if (vnode.transition) {
|
|
@@ -1820,7 +1801,7 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
1820
1801
|
const instance = currentRenderingInstance || currentInstance;
|
|
1821
1802
|
if (instance) {
|
|
1822
1803
|
const Component = instance.type;
|
|
1823
|
-
|
|
1804
|
+
{
|
|
1824
1805
|
const selfName = getComponentName(
|
|
1825
1806
|
Component,
|
|
1826
1807
|
false
|
|
@@ -1856,304 +1837,10 @@ function queueEffectWithSuspense(fn, suspense) {
|
|
|
1856
1837
|
queuePostFlushCb(fn);
|
|
1857
1838
|
}
|
|
1858
1839
|
}
|
|
1859
|
-
const ssrContextKey = Symbol.for("v-scx");
|
|
1860
|
-
const useSSRContext = () => {
|
|
1861
|
-
{
|
|
1862
|
-
const ctx = inject(ssrContextKey);
|
|
1863
|
-
return ctx;
|
|
1864
|
-
}
|
|
1865
|
-
};
|
|
1866
|
-
const INITIAL_WATCHER_VALUE = {};
|
|
1867
|
-
function watch(source, cb, options) {
|
|
1868
|
-
return doWatch(source, cb, options);
|
|
1869
|
-
}
|
|
1870
|
-
function doWatch(source, cb, {
|
|
1871
|
-
immediate,
|
|
1872
|
-
deep,
|
|
1873
|
-
flush,
|
|
1874
|
-
once,
|
|
1875
|
-
onTrack,
|
|
1876
|
-
onTrigger
|
|
1877
|
-
} = EMPTY_OBJ) {
|
|
1878
|
-
if (cb && once) {
|
|
1879
|
-
const _cb = cb;
|
|
1880
|
-
cb = (...args) => {
|
|
1881
|
-
_cb(...args);
|
|
1882
|
-
unwatch();
|
|
1883
|
-
};
|
|
1884
|
-
}
|
|
1885
|
-
const instance = currentInstance;
|
|
1886
|
-
const reactiveGetter = (source2) => deep === true ? source2 : (
|
|
1887
|
-
// for deep: false, only traverse root-level properties
|
|
1888
|
-
traverse(source2, deep === false ? 1 : void 0)
|
|
1889
|
-
);
|
|
1890
|
-
let getter;
|
|
1891
|
-
let forceTrigger = false;
|
|
1892
|
-
let isMultiSource = false;
|
|
1893
|
-
if (isRef(source)) {
|
|
1894
|
-
getter = () => source.value;
|
|
1895
|
-
forceTrigger = isShallow(source);
|
|
1896
|
-
} else if (isReactive(source)) {
|
|
1897
|
-
getter = () => reactiveGetter(source);
|
|
1898
|
-
forceTrigger = true;
|
|
1899
|
-
} else if (isArray$1(source)) {
|
|
1900
|
-
isMultiSource = true;
|
|
1901
|
-
forceTrigger = source.some((s) => isReactive(s) || isShallow(s));
|
|
1902
|
-
getter = () => source.map((s) => {
|
|
1903
|
-
if (isRef(s)) {
|
|
1904
|
-
return s.value;
|
|
1905
|
-
} else if (isReactive(s)) {
|
|
1906
|
-
return reactiveGetter(s);
|
|
1907
|
-
} else if (isFunction(s)) {
|
|
1908
|
-
return callWithErrorHandling(s, instance, 2);
|
|
1909
|
-
} else ;
|
|
1910
|
-
});
|
|
1911
|
-
} else if (isFunction(source)) {
|
|
1912
|
-
if (cb) {
|
|
1913
|
-
getter = () => callWithErrorHandling(source, instance, 2);
|
|
1914
|
-
} else {
|
|
1915
|
-
getter = () => {
|
|
1916
|
-
if (cleanup) {
|
|
1917
|
-
cleanup();
|
|
1918
|
-
}
|
|
1919
|
-
return callWithAsyncErrorHandling(
|
|
1920
|
-
source,
|
|
1921
|
-
instance,
|
|
1922
|
-
3,
|
|
1923
|
-
[onCleanup]
|
|
1924
|
-
);
|
|
1925
|
-
};
|
|
1926
|
-
}
|
|
1927
|
-
} else {
|
|
1928
|
-
getter = NOOP;
|
|
1929
|
-
}
|
|
1930
|
-
if (cb && deep) {
|
|
1931
|
-
const baseGetter = getter;
|
|
1932
|
-
getter = () => traverse(baseGetter());
|
|
1933
|
-
}
|
|
1934
|
-
let cleanup;
|
|
1935
|
-
let onCleanup = (fn) => {
|
|
1936
|
-
cleanup = effect2.onStop = () => {
|
|
1937
|
-
callWithErrorHandling(fn, instance, 4);
|
|
1938
|
-
cleanup = effect2.onStop = void 0;
|
|
1939
|
-
};
|
|
1940
|
-
};
|
|
1941
|
-
let ssrCleanup;
|
|
1942
|
-
if (isInSSRComponentSetup) {
|
|
1943
|
-
onCleanup = NOOP;
|
|
1944
|
-
if (!cb) {
|
|
1945
|
-
getter();
|
|
1946
|
-
} else if (immediate) {
|
|
1947
|
-
callWithAsyncErrorHandling(cb, instance, 3, [
|
|
1948
|
-
getter(),
|
|
1949
|
-
isMultiSource ? [] : void 0,
|
|
1950
|
-
onCleanup
|
|
1951
|
-
]);
|
|
1952
|
-
}
|
|
1953
|
-
if (flush === "sync") {
|
|
1954
|
-
const ctx = useSSRContext();
|
|
1955
|
-
ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
|
|
1956
|
-
} else {
|
|
1957
|
-
return NOOP;
|
|
1958
|
-
}
|
|
1959
|
-
}
|
|
1960
|
-
let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
|
|
1961
|
-
const job = () => {
|
|
1962
|
-
if (!effect2.active || !effect2.dirty) {
|
|
1963
|
-
return;
|
|
1964
|
-
}
|
|
1965
|
-
if (cb) {
|
|
1966
|
-
const newValue = effect2.run();
|
|
1967
|
-
if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue)) || false) {
|
|
1968
|
-
if (cleanup) {
|
|
1969
|
-
cleanup();
|
|
1970
|
-
}
|
|
1971
|
-
callWithAsyncErrorHandling(cb, instance, 3, [
|
|
1972
|
-
newValue,
|
|
1973
|
-
// pass undefined as the old value when it's changed for the first time
|
|
1974
|
-
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
|
1975
|
-
onCleanup
|
|
1976
|
-
]);
|
|
1977
|
-
oldValue = newValue;
|
|
1978
|
-
}
|
|
1979
|
-
} else {
|
|
1980
|
-
effect2.run();
|
|
1981
|
-
}
|
|
1982
|
-
};
|
|
1983
|
-
job.allowRecurse = !!cb;
|
|
1984
|
-
let scheduler;
|
|
1985
|
-
if (flush === "sync") {
|
|
1986
|
-
scheduler = job;
|
|
1987
|
-
} else if (flush === "post") {
|
|
1988
|
-
scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);
|
|
1989
|
-
} else {
|
|
1990
|
-
job.pre = true;
|
|
1991
|
-
if (instance)
|
|
1992
|
-
job.id = instance.uid;
|
|
1993
|
-
scheduler = () => queueJob(job);
|
|
1994
|
-
}
|
|
1995
|
-
const effect2 = new ReactiveEffect(getter, NOOP, scheduler);
|
|
1996
|
-
const scope = getCurrentScope();
|
|
1997
|
-
const unwatch = () => {
|
|
1998
|
-
effect2.stop();
|
|
1999
|
-
if (scope) {
|
|
2000
|
-
remove(scope.effects, effect2);
|
|
2001
|
-
}
|
|
2002
|
-
};
|
|
2003
|
-
if (cb) {
|
|
2004
|
-
if (immediate) {
|
|
2005
|
-
job();
|
|
2006
|
-
} else {
|
|
2007
|
-
oldValue = effect2.run();
|
|
2008
|
-
}
|
|
2009
|
-
} else if (flush === "post") {
|
|
2010
|
-
queuePostRenderEffect(
|
|
2011
|
-
effect2.run.bind(effect2),
|
|
2012
|
-
instance && instance.suspense
|
|
2013
|
-
);
|
|
2014
|
-
} else {
|
|
2015
|
-
effect2.run();
|
|
2016
|
-
}
|
|
2017
|
-
if (ssrCleanup)
|
|
2018
|
-
ssrCleanup.push(unwatch);
|
|
2019
|
-
return unwatch;
|
|
2020
|
-
}
|
|
2021
|
-
function instanceWatch(source, value, options) {
|
|
2022
|
-
const publicThis = this.proxy;
|
|
2023
|
-
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
2024
|
-
let cb;
|
|
2025
|
-
if (isFunction(value)) {
|
|
2026
|
-
cb = value;
|
|
2027
|
-
} else {
|
|
2028
|
-
cb = value.handler;
|
|
2029
|
-
options = value;
|
|
2030
|
-
}
|
|
2031
|
-
const reset = setCurrentInstance(this);
|
|
2032
|
-
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
2033
|
-
reset();
|
|
2034
|
-
return res;
|
|
2035
|
-
}
|
|
2036
|
-
function createPathGetter(ctx, path) {
|
|
2037
|
-
const segments = path.split(".");
|
|
2038
|
-
return () => {
|
|
2039
|
-
let cur = ctx;
|
|
2040
|
-
for (let i = 0; i < segments.length && cur; i++) {
|
|
2041
|
-
cur = cur[segments[i]];
|
|
2042
|
-
}
|
|
2043
|
-
return cur;
|
|
2044
|
-
};
|
|
2045
|
-
}
|
|
2046
|
-
function traverse(value, depth, currentDepth = 0, seen) {
|
|
2047
|
-
if (!isObject(value) || value["__v_skip"]) {
|
|
2048
|
-
return value;
|
|
2049
|
-
}
|
|
2050
|
-
if (depth && depth > 0) {
|
|
2051
|
-
if (currentDepth >= depth) {
|
|
2052
|
-
return value;
|
|
2053
|
-
}
|
|
2054
|
-
currentDepth++;
|
|
2055
|
-
}
|
|
2056
|
-
seen = seen || /* @__PURE__ */ new Set();
|
|
2057
|
-
if (seen.has(value)) {
|
|
2058
|
-
return value;
|
|
2059
|
-
}
|
|
2060
|
-
seen.add(value);
|
|
2061
|
-
if (isRef(value)) {
|
|
2062
|
-
traverse(value.value, depth, currentDepth, seen);
|
|
2063
|
-
} else if (isArray$1(value)) {
|
|
2064
|
-
for (let i = 0; i < value.length; i++) {
|
|
2065
|
-
traverse(value[i], depth, currentDepth, seen);
|
|
2066
|
-
}
|
|
2067
|
-
} else if (isSet(value) || isMap(value)) {
|
|
2068
|
-
value.forEach((v) => {
|
|
2069
|
-
traverse(v, depth, currentDepth, seen);
|
|
2070
|
-
});
|
|
2071
|
-
} else if (isPlainObject(value)) {
|
|
2072
|
-
for (const key in value) {
|
|
2073
|
-
traverse(value[key], depth, currentDepth, seen);
|
|
2074
|
-
}
|
|
2075
|
-
}
|
|
2076
|
-
return value;
|
|
2077
|
-
}
|
|
2078
|
-
function invokeDirectiveHook(vnode, prevVNode, instance, name) {
|
|
2079
|
-
const bindings = vnode.dirs;
|
|
2080
|
-
const oldBindings = prevVNode && prevVNode.dirs;
|
|
2081
|
-
for (let i = 0; i < bindings.length; i++) {
|
|
2082
|
-
const binding = bindings[i];
|
|
2083
|
-
if (oldBindings) {
|
|
2084
|
-
binding.oldValue = oldBindings[i].value;
|
|
2085
|
-
}
|
|
2086
|
-
let hook = binding.dir[name];
|
|
2087
|
-
if (hook) {
|
|
2088
|
-
pauseTracking();
|
|
2089
|
-
callWithAsyncErrorHandling(hook, instance, 8, [
|
|
2090
|
-
vnode.el,
|
|
2091
|
-
binding,
|
|
2092
|
-
vnode,
|
|
2093
|
-
prevVNode
|
|
2094
|
-
]);
|
|
2095
|
-
resetTracking();
|
|
2096
|
-
}
|
|
2097
|
-
}
|
|
2098
|
-
}
|
|
2099
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
2100
|
-
// @__NO_SIDE_EFFECTS__
|
|
2101
|
-
function defineComponent(options, extraOptions) {
|
|
2102
|
-
return isFunction(options) ? (
|
|
2103
|
-
// #8326: extend call and options.name access are considered side-effects
|
|
2104
|
-
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
2105
|
-
/* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))()
|
|
2106
|
-
) : options;
|
|
2107
|
-
}
|
|
2108
|
-
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
2109
|
-
const isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
|
|
2110
|
-
function onActivated(hook, target) {
|
|
2111
|
-
registerKeepAliveHook(hook, "a", target);
|
|
2112
|
-
}
|
|
2113
|
-
function onDeactivated(hook, target) {
|
|
2114
|
-
registerKeepAliveHook(hook, "da", target);
|
|
2115
|
-
}
|
|
2116
|
-
function registerKeepAliveHook(hook, type, target = currentInstance) {
|
|
2117
|
-
const wrappedHook = hook.__wdc || (hook.__wdc = () => {
|
|
2118
|
-
let current = target;
|
|
2119
|
-
while (current) {
|
|
2120
|
-
if (current.isDeactivated) {
|
|
2121
|
-
return;
|
|
2122
|
-
}
|
|
2123
|
-
current = current.parent;
|
|
2124
|
-
}
|
|
2125
|
-
return hook();
|
|
2126
|
-
});
|
|
2127
|
-
injectHook(type, wrappedHook, target);
|
|
2128
|
-
if (target) {
|
|
2129
|
-
let current = target.parent;
|
|
2130
|
-
while (current && current.parent) {
|
|
2131
|
-
if (isKeepAlive(current.parent.vnode)) {
|
|
2132
|
-
injectToKeepAliveRoot(wrappedHook, type, target, current);
|
|
2133
|
-
}
|
|
2134
|
-
current = current.parent;
|
|
2135
|
-
}
|
|
2136
|
-
}
|
|
2137
|
-
}
|
|
2138
|
-
function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {
|
|
2139
|
-
const injected = injectHook(
|
|
2140
|
-
type,
|
|
2141
|
-
hook,
|
|
2142
|
-
keepAliveRoot,
|
|
2143
|
-
true
|
|
2144
|
-
/* prepend */
|
|
2145
|
-
);
|
|
2146
|
-
onUnmounted(() => {
|
|
2147
|
-
remove(keepAliveRoot[type], injected);
|
|
2148
|
-
}, target);
|
|
2149
|
-
}
|
|
2150
1840
|
function injectHook(type, hook, target = currentInstance, prepend = false) {
|
|
2151
1841
|
if (target) {
|
|
2152
1842
|
const hooks = target[type] || (target[type] = []);
|
|
2153
1843
|
const wrappedHook = hook.__weh || (hook.__weh = (...args) => {
|
|
2154
|
-
if (target.isUnmounted) {
|
|
2155
|
-
return;
|
|
2156
|
-
}
|
|
2157
1844
|
pauseTracking();
|
|
2158
1845
|
const reset = setCurrentInstance(target);
|
|
2159
1846
|
const res = callWithAsyncErrorHandling(hook, target, type, args);
|
|
@@ -2169,10 +1856,11 @@ function injectHook(type, hook, target = currentInstance, prepend = false) {
|
|
|
2169
1856
|
return wrappedHook;
|
|
2170
1857
|
}
|
|
2171
1858
|
}
|
|
2172
|
-
const createHook = (lifecycle) => (hook, target = currentInstance) =>
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
1859
|
+
const createHook = (lifecycle) => (hook, target = currentInstance) => {
|
|
1860
|
+
if (!isInSSRComponentSetup || lifecycle === "sp") {
|
|
1861
|
+
injectHook(lifecycle, (...args) => hook(...args), target);
|
|
1862
|
+
}
|
|
1863
|
+
};
|
|
2176
1864
|
const onBeforeMount = createHook("bm");
|
|
2177
1865
|
const onMounted = createHook("m");
|
|
2178
1866
|
const onBeforeUpdate = createHook("bu");
|
|
@@ -2189,87 +1877,40 @@ const onRenderTracked = createHook(
|
|
|
2189
1877
|
function onErrorCaptured(hook, target = currentInstance) {
|
|
2190
1878
|
injectHook("ec", hook, target);
|
|
2191
1879
|
}
|
|
2192
|
-
function
|
|
2193
|
-
|
|
2194
|
-
const
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
}
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
);
|
|
2211
|
-
} else {
|
|
2212
|
-
const keys = Object.keys(source);
|
|
2213
|
-
ret = new Array(keys.length);
|
|
2214
|
-
for (let i = 0, l = keys.length; i < l; i++) {
|
|
2215
|
-
const key = keys[i];
|
|
2216
|
-
ret[i] = renderItem(source[key], key, i, cached && cached[i]);
|
|
2217
|
-
}
|
|
1880
|
+
function invokeDirectiveHook(vnode, prevVNode, instance, name) {
|
|
1881
|
+
const bindings = vnode.dirs;
|
|
1882
|
+
const oldBindings = prevVNode && prevVNode.dirs;
|
|
1883
|
+
for (let i = 0; i < bindings.length; i++) {
|
|
1884
|
+
const binding = bindings[i];
|
|
1885
|
+
if (oldBindings) {
|
|
1886
|
+
binding.oldValue = oldBindings[i].value;
|
|
1887
|
+
}
|
|
1888
|
+
let hook = binding.dir[name];
|
|
1889
|
+
if (hook) {
|
|
1890
|
+
pauseTracking();
|
|
1891
|
+
callWithAsyncErrorHandling(hook, instance, 8, [
|
|
1892
|
+
vnode.el,
|
|
1893
|
+
binding,
|
|
1894
|
+
vnode,
|
|
1895
|
+
prevVNode
|
|
1896
|
+
]);
|
|
1897
|
+
resetTracking();
|
|
2218
1898
|
}
|
|
2219
|
-
} else {
|
|
2220
|
-
ret = [];
|
|
2221
|
-
}
|
|
2222
|
-
if (cache) {
|
|
2223
|
-
cache[index] = ret;
|
|
2224
|
-
}
|
|
2225
|
-
return ret;
|
|
2226
|
-
}
|
|
2227
|
-
function renderSlot(slots, name, props = {}, fallback, noSlotted) {
|
|
2228
|
-
if (currentRenderingInstance.isCE || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.isCE) {
|
|
2229
|
-
if (name !== "default")
|
|
2230
|
-
props.name = name;
|
|
2231
|
-
return createVNode("slot", props, fallback && fallback());
|
|
2232
|
-
}
|
|
2233
|
-
let slot = slots[name];
|
|
2234
|
-
if (slot && slot._c) {
|
|
2235
|
-
slot._d = false;
|
|
2236
|
-
}
|
|
2237
|
-
openBlock();
|
|
2238
|
-
const validSlotContent = slot && ensureValidVNode(slot(props));
|
|
2239
|
-
const rendered = createBlock(
|
|
2240
|
-
Fragment,
|
|
2241
|
-
{
|
|
2242
|
-
key: props.key || // slot content array of a dynamic conditional slot may have a branch
|
|
2243
|
-
// key attached in the `createSlots` helper, respect that
|
|
2244
|
-
validSlotContent && validSlotContent.key || `_${name}`
|
|
2245
|
-
},
|
|
2246
|
-
validSlotContent || (fallback ? fallback() : []),
|
|
2247
|
-
validSlotContent && slots._ === 1 ? 64 : -2
|
|
2248
|
-
);
|
|
2249
|
-
if (!noSlotted && rendered.scopeId) {
|
|
2250
|
-
rendered.slotScopeIds = [rendered.scopeId + "-s"];
|
|
2251
|
-
}
|
|
2252
|
-
if (slot && slot._c) {
|
|
2253
|
-
slot._d = true;
|
|
2254
1899
|
}
|
|
2255
|
-
return rendered;
|
|
2256
1900
|
}
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
return true;
|
|
2266
|
-
}) ? vnodes : null;
|
|
1901
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
|
1902
|
+
// @__NO_SIDE_EFFECTS__
|
|
1903
|
+
function defineComponent(options, extraOptions) {
|
|
1904
|
+
return isFunction(options) ? (
|
|
1905
|
+
// #8326: extend call and options.name access are considered side-effects
|
|
1906
|
+
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
1907
|
+
/* @__PURE__ */ (() => extend({ name: options.name }, extraOptions, { setup: options }))()
|
|
1908
|
+
) : options;
|
|
2267
1909
|
}
|
|
1910
|
+
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
2268
1911
|
const getPublicInstance = (i) => {
|
|
2269
|
-
if (!i)
|
|
2270
|
-
|
|
2271
|
-
if (isStatefulComponent(i))
|
|
2272
|
-
return getExposeProxy(i) || i.proxy;
|
|
1912
|
+
if (!i) return null;
|
|
1913
|
+
if (isStatefulComponent(i)) return getComponentPublicInstance(i);
|
|
2273
1914
|
return getPublicInstance(i.parent);
|
|
2274
1915
|
};
|
|
2275
1916
|
const publicPropertiesMap = (
|
|
@@ -2533,10 +2174,8 @@ function applyOptions(instance) {
|
|
|
2533
2174
|
if (inheritAttrs != null) {
|
|
2534
2175
|
instance.inheritAttrs = inheritAttrs;
|
|
2535
2176
|
}
|
|
2536
|
-
if (components)
|
|
2537
|
-
|
|
2538
|
-
if (directives)
|
|
2539
|
-
instance.directives = directives;
|
|
2177
|
+
if (components) instance.components = components;
|
|
2178
|
+
if (directives) instance.directives = directives;
|
|
2540
2179
|
}
|
|
2541
2180
|
function resolveInjections(injectOptions, ctx, checkDuplicateProperties = NOOP) {
|
|
2542
2181
|
if (isArray$1(injectOptions)) {
|
|
@@ -2724,10 +2363,8 @@ function mergeEmitsOrPropsOptions(to, from) {
|
|
|
2724
2363
|
}
|
|
2725
2364
|
}
|
|
2726
2365
|
function mergeWatchOptions(to, from) {
|
|
2727
|
-
if (!to)
|
|
2728
|
-
|
|
2729
|
-
if (!from)
|
|
2730
|
-
return to;
|
|
2366
|
+
if (!to) return from;
|
|
2367
|
+
if (!from) return to;
|
|
2731
2368
|
const merged = extend(/* @__PURE__ */ Object.create(null), to);
|
|
2732
2369
|
for (const key in from) {
|
|
2733
2370
|
merged[key] = mergeAsArray(to[key], from[key]);
|
|
@@ -2829,7 +2466,7 @@ function createAppAPI(render, hydrate) {
|
|
|
2829
2466
|
isMounted = true;
|
|
2830
2467
|
app._container = rootContainer;
|
|
2831
2468
|
rootContainer.__vue_app__ = app;
|
|
2832
|
-
return
|
|
2469
|
+
return getComponentPublicInstance(vnode.component);
|
|
2833
2470
|
}
|
|
2834
2471
|
},
|
|
2835
2472
|
unmount() {
|
|
@@ -2877,7 +2514,7 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
|
2877
2514
|
} else ;
|
|
2878
2515
|
}
|
|
2879
2516
|
}
|
|
2880
|
-
const internalObjectProto =
|
|
2517
|
+
const internalObjectProto = {};
|
|
2881
2518
|
const createInternalObject = () => Object.create(internalObjectProto);
|
|
2882
2519
|
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
2883
2520
|
function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
@@ -3085,8 +2722,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
|
|
|
3085
2722
|
hasExtends = true;
|
|
3086
2723
|
const [props, keys] = normalizePropsOptions(raw2, appContext, true);
|
|
3087
2724
|
extend(normalized, props);
|
|
3088
|
-
if (keys)
|
|
3089
|
-
needCastKeys.push(...keys);
|
|
2725
|
+
if (keys) needCastKeys.push(...keys);
|
|
3090
2726
|
};
|
|
3091
2727
|
if (!asMixin && appContext.mixins.length) {
|
|
3092
2728
|
appContext.mixins.forEach(extendProps);
|
|
@@ -3186,8 +2822,7 @@ const normalizeSlot$1 = (key, rawSlot, ctx) => {
|
|
|
3186
2822
|
const normalizeObjectSlots = (rawSlots, slots, instance) => {
|
|
3187
2823
|
const ctx = rawSlots._ctx;
|
|
3188
2824
|
for (const key in rawSlots) {
|
|
3189
|
-
if (isInternalKey(key))
|
|
3190
|
-
continue;
|
|
2825
|
+
if (isInternalKey(key)) continue;
|
|
3191
2826
|
const value = rawSlots[key];
|
|
3192
2827
|
if (isFunction(value)) {
|
|
3193
2828
|
slots[key] = normalizeSlot$1(key, value, ctx);
|
|
@@ -3202,22 +2837,17 @@ const normalizeVNodeSlots = (instance, children) => {
|
|
|
3202
2837
|
instance.slots.default = () => normalized;
|
|
3203
2838
|
};
|
|
3204
2839
|
const initSlots = (instance, children) => {
|
|
2840
|
+
const slots = instance.slots = createInternalObject();
|
|
3205
2841
|
if (instance.vnode.shapeFlag & 32) {
|
|
3206
2842
|
const type = children._;
|
|
3207
2843
|
if (type) {
|
|
3208
|
-
|
|
3209
|
-
def(
|
|
2844
|
+
extend(slots, children);
|
|
2845
|
+
def(slots, "_", type, true);
|
|
3210
2846
|
} else {
|
|
3211
|
-
normalizeObjectSlots(
|
|
3212
|
-
children,
|
|
3213
|
-
instance.slots = createInternalObject()
|
|
3214
|
-
);
|
|
3215
|
-
}
|
|
3216
|
-
} else {
|
|
3217
|
-
instance.slots = createInternalObject();
|
|
3218
|
-
if (children) {
|
|
3219
|
-
normalizeVNodeSlots(instance, children);
|
|
2847
|
+
normalizeObjectSlots(children, slots);
|
|
3220
2848
|
}
|
|
2849
|
+
} else if (children) {
|
|
2850
|
+
normalizeVNodeSlots(instance, children);
|
|
3221
2851
|
}
|
|
3222
2852
|
};
|
|
3223
2853
|
const updateSlots = (instance, children, optimized) => {
|
|
@@ -3268,7 +2898,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3268
2898
|
if (isAsyncWrapper(vnode) && !isUnmount) {
|
|
3269
2899
|
return;
|
|
3270
2900
|
}
|
|
3271
|
-
const refValue = vnode.shapeFlag & 4 ?
|
|
2901
|
+
const refValue = vnode.shapeFlag & 4 ? getComponentPublicInstance(vnode.component) : vnode.el;
|
|
3272
2902
|
const value = isUnmount ? null : refValue;
|
|
3273
2903
|
const { i: owner, r: ref3 } = rawRef;
|
|
3274
2904
|
const oldRef = oldRawRef && oldRawRef.r;
|
|
@@ -3304,8 +2934,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3304
2934
|
}
|
|
3305
2935
|
} else {
|
|
3306
2936
|
ref3.value = [refValue];
|
|
3307
|
-
if (rawRef.k)
|
|
3308
|
-
refs[rawRef.k] = ref3.value;
|
|
2937
|
+
if (rawRef.k) refs[rawRef.k] = ref3.value;
|
|
3309
2938
|
}
|
|
3310
2939
|
} else if (!existing.includes(refValue)) {
|
|
3311
2940
|
existing.push(refValue);
|
|
@@ -3318,8 +2947,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
3318
2947
|
}
|
|
3319
2948
|
} else if (_isRef) {
|
|
3320
2949
|
ref3.value = value;
|
|
3321
|
-
if (rawRef.k)
|
|
3322
|
-
refs[rawRef.k] = value;
|
|
2950
|
+
if (rawRef.k) refs[rawRef.k] = value;
|
|
3323
2951
|
} else ;
|
|
3324
2952
|
};
|
|
3325
2953
|
if (value) {
|
|
@@ -3790,8 +3418,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3790
3418
|
}
|
|
3791
3419
|
}
|
|
3792
3420
|
for (const key in newProps) {
|
|
3793
|
-
if (isReservedProp(key))
|
|
3794
|
-
continue;
|
|
3421
|
+
if (isReservedProp(key)) continue;
|
|
3795
3422
|
const next = newProps[key];
|
|
3796
3423
|
const prev = oldProps[key];
|
|
3797
3424
|
if (next !== prev && key !== "value") {
|
|
@@ -3918,7 +3545,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
3918
3545
|
setupComponent(instance);
|
|
3919
3546
|
}
|
|
3920
3547
|
if (instance.asyncDep) {
|
|
3921
|
-
parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect);
|
|
3548
|
+
parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
|
|
3922
3549
|
if (!initialVNode.el) {
|
|
3923
3550
|
const placeholder = instance.subTree = createVNode(Comment);
|
|
3924
3551
|
processCommentNode(null, placeholder, container, anchor);
|
|
@@ -4313,8 +3940,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4313
3940
|
let moved = false;
|
|
4314
3941
|
let maxNewIndexSoFar = 0;
|
|
4315
3942
|
const newIndexToOldIndexMap = new Array(toBePatched);
|
|
4316
|
-
for (i = 0; i < toBePatched; i++)
|
|
4317
|
-
newIndexToOldIndexMap[i] = 0;
|
|
3943
|
+
for (i = 0; i < toBePatched; i++) newIndexToOldIndexMap[i] = 0;
|
|
4318
3944
|
for (i = s1; i <= e1; i++) {
|
|
4319
3945
|
const prevChild = c1[i];
|
|
4320
3946
|
if (patched >= toBePatched) {
|
|
@@ -4443,11 +4069,15 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4443
4069
|
dynamicChildren,
|
|
4444
4070
|
shapeFlag,
|
|
4445
4071
|
patchFlag,
|
|
4446
|
-
dirs
|
|
4072
|
+
dirs,
|
|
4073
|
+
memoIndex
|
|
4447
4074
|
} = vnode;
|
|
4448
4075
|
if (ref3 != null) {
|
|
4449
4076
|
setRef(ref3, null, parentSuspense, vnode, true);
|
|
4450
4077
|
}
|
|
4078
|
+
if (memoIndex != null) {
|
|
4079
|
+
parentComponent.renderCache[memoIndex] = void 0;
|
|
4080
|
+
}
|
|
4451
4081
|
if (shapeFlag & 256) {
|
|
4452
4082
|
parentComponent.ctx.deactivate(vnode);
|
|
4453
4083
|
return;
|
|
@@ -4540,7 +4170,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4540
4170
|
hostRemove(end);
|
|
4541
4171
|
};
|
|
4542
4172
|
const unmountComponent = (instance, parentSuspense, doRemove) => {
|
|
4543
|
-
const { bum, scope, update, subTree, um } = instance;
|
|
4173
|
+
const { bum, scope, update, subTree, um, m, a } = instance;
|
|
4174
|
+
invalidateMount(m);
|
|
4175
|
+
invalidateMount(a);
|
|
4544
4176
|
if (bum) {
|
|
4545
4177
|
invokeArrayFns(bum);
|
|
4546
4178
|
}
|
|
@@ -4599,111 +4231,379 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4599
4231
|
flushPostFlushCbs();
|
|
4600
4232
|
isFlushing2 = false;
|
|
4601
4233
|
}
|
|
4602
|
-
container._vnode = vnode;
|
|
4234
|
+
container._vnode = vnode;
|
|
4235
|
+
};
|
|
4236
|
+
const internals = {
|
|
4237
|
+
p: patch,
|
|
4238
|
+
um: unmount,
|
|
4239
|
+
m: move,
|
|
4240
|
+
r: remove2,
|
|
4241
|
+
mt: mountComponent,
|
|
4242
|
+
mc: mountChildren,
|
|
4243
|
+
pc: patchChildren,
|
|
4244
|
+
pbc: patchBlockChildren,
|
|
4245
|
+
n: getNextHostNode,
|
|
4246
|
+
o: options
|
|
4247
|
+
};
|
|
4248
|
+
let hydrate;
|
|
4249
|
+
let hydrateNode;
|
|
4250
|
+
return {
|
|
4251
|
+
render,
|
|
4252
|
+
hydrate,
|
|
4253
|
+
createApp: createAppAPI(render, hydrate)
|
|
4254
|
+
};
|
|
4255
|
+
}
|
|
4256
|
+
function resolveChildrenNamespace({ type, props }, currentNamespace) {
|
|
4257
|
+
return currentNamespace === "svg" && type === "foreignObject" || currentNamespace === "mathml" && type === "annotation-xml" && props && props.encoding && props.encoding.includes("html") ? void 0 : currentNamespace;
|
|
4258
|
+
}
|
|
4259
|
+
function toggleRecurse({ effect: effect2, update }, allowed) {
|
|
4260
|
+
effect2.allowRecurse = update.allowRecurse = allowed;
|
|
4261
|
+
}
|
|
4262
|
+
function needTransition(parentSuspense, transition) {
|
|
4263
|
+
return (!parentSuspense || parentSuspense && !parentSuspense.pendingBranch) && transition && !transition.persisted;
|
|
4264
|
+
}
|
|
4265
|
+
function traverseStaticChildren(n1, n2, shallow = false) {
|
|
4266
|
+
const ch1 = n1.children;
|
|
4267
|
+
const ch2 = n2.children;
|
|
4268
|
+
if (isArray$1(ch1) && isArray$1(ch2)) {
|
|
4269
|
+
for (let i = 0; i < ch1.length; i++) {
|
|
4270
|
+
const c1 = ch1[i];
|
|
4271
|
+
let c2 = ch2[i];
|
|
4272
|
+
if (c2.shapeFlag & 1 && !c2.dynamicChildren) {
|
|
4273
|
+
if (c2.patchFlag <= 0 || c2.patchFlag === 32) {
|
|
4274
|
+
c2 = ch2[i] = cloneIfMounted(ch2[i]);
|
|
4275
|
+
c2.el = c1.el;
|
|
4276
|
+
}
|
|
4277
|
+
if (!shallow && c2.patchFlag !== -2)
|
|
4278
|
+
traverseStaticChildren(c1, c2);
|
|
4279
|
+
}
|
|
4280
|
+
if (c2.type === Text) {
|
|
4281
|
+
c2.el = c1.el;
|
|
4282
|
+
}
|
|
4283
|
+
}
|
|
4284
|
+
}
|
|
4285
|
+
}
|
|
4286
|
+
function getSequence(arr) {
|
|
4287
|
+
const p = arr.slice();
|
|
4288
|
+
const result = [0];
|
|
4289
|
+
let i, j, u, v, c;
|
|
4290
|
+
const len = arr.length;
|
|
4291
|
+
for (i = 0; i < len; i++) {
|
|
4292
|
+
const arrI = arr[i];
|
|
4293
|
+
if (arrI !== 0) {
|
|
4294
|
+
j = result[result.length - 1];
|
|
4295
|
+
if (arr[j] < arrI) {
|
|
4296
|
+
p[i] = j;
|
|
4297
|
+
result.push(i);
|
|
4298
|
+
continue;
|
|
4299
|
+
}
|
|
4300
|
+
u = 0;
|
|
4301
|
+
v = result.length - 1;
|
|
4302
|
+
while (u < v) {
|
|
4303
|
+
c = u + v >> 1;
|
|
4304
|
+
if (arr[result[c]] < arrI) {
|
|
4305
|
+
u = c + 1;
|
|
4306
|
+
} else {
|
|
4307
|
+
v = c;
|
|
4308
|
+
}
|
|
4309
|
+
}
|
|
4310
|
+
if (arrI < arr[result[u]]) {
|
|
4311
|
+
if (u > 0) {
|
|
4312
|
+
p[i] = result[u - 1];
|
|
4313
|
+
}
|
|
4314
|
+
result[u] = i;
|
|
4315
|
+
}
|
|
4316
|
+
}
|
|
4317
|
+
}
|
|
4318
|
+
u = result.length;
|
|
4319
|
+
v = result[u - 1];
|
|
4320
|
+
while (u-- > 0) {
|
|
4321
|
+
result[u] = v;
|
|
4322
|
+
v = p[v];
|
|
4323
|
+
}
|
|
4324
|
+
return result;
|
|
4325
|
+
}
|
|
4326
|
+
function locateNonHydratedAsyncRoot(instance) {
|
|
4327
|
+
const subComponent = instance.subTree.component;
|
|
4328
|
+
if (subComponent) {
|
|
4329
|
+
if (subComponent.asyncDep && !subComponent.asyncResolved) {
|
|
4330
|
+
return subComponent;
|
|
4331
|
+
} else {
|
|
4332
|
+
return locateNonHydratedAsyncRoot(subComponent);
|
|
4333
|
+
}
|
|
4334
|
+
}
|
|
4335
|
+
}
|
|
4336
|
+
function invalidateMount(hooks) {
|
|
4337
|
+
if (hooks) {
|
|
4338
|
+
for (let i = 0; i < hooks.length; i++) hooks[i].active = false;
|
|
4339
|
+
}
|
|
4340
|
+
}
|
|
4341
|
+
const ssrContextKey = Symbol.for("v-scx");
|
|
4342
|
+
const useSSRContext = () => {
|
|
4343
|
+
{
|
|
4344
|
+
const ctx = inject(ssrContextKey);
|
|
4345
|
+
return ctx;
|
|
4346
|
+
}
|
|
4347
|
+
};
|
|
4348
|
+
const INITIAL_WATCHER_VALUE = {};
|
|
4349
|
+
function watch(source, cb, options) {
|
|
4350
|
+
return doWatch(source, cb, options);
|
|
4351
|
+
}
|
|
4352
|
+
function doWatch(source, cb, {
|
|
4353
|
+
immediate,
|
|
4354
|
+
deep,
|
|
4355
|
+
flush,
|
|
4356
|
+
once,
|
|
4357
|
+
onTrack,
|
|
4358
|
+
onTrigger
|
|
4359
|
+
} = EMPTY_OBJ) {
|
|
4360
|
+
if (cb && once) {
|
|
4361
|
+
const _cb = cb;
|
|
4362
|
+
cb = (...args) => {
|
|
4363
|
+
_cb(...args);
|
|
4364
|
+
unwatch();
|
|
4365
|
+
};
|
|
4366
|
+
}
|
|
4367
|
+
const instance = currentInstance;
|
|
4368
|
+
const reactiveGetter = (source2) => deep === true ? source2 : (
|
|
4369
|
+
// for deep: false, only traverse root-level properties
|
|
4370
|
+
traverse(source2, deep === false ? 1 : void 0)
|
|
4371
|
+
);
|
|
4372
|
+
let getter;
|
|
4373
|
+
let forceTrigger = false;
|
|
4374
|
+
let isMultiSource = false;
|
|
4375
|
+
if (isRef(source)) {
|
|
4376
|
+
getter = () => source.value;
|
|
4377
|
+
forceTrigger = isShallow(source);
|
|
4378
|
+
} else if (isReactive(source)) {
|
|
4379
|
+
getter = () => reactiveGetter(source);
|
|
4380
|
+
forceTrigger = true;
|
|
4381
|
+
} else if (isArray$1(source)) {
|
|
4382
|
+
isMultiSource = true;
|
|
4383
|
+
forceTrigger = source.some((s) => isReactive(s) || isShallow(s));
|
|
4384
|
+
getter = () => source.map((s) => {
|
|
4385
|
+
if (isRef(s)) {
|
|
4386
|
+
return s.value;
|
|
4387
|
+
} else if (isReactive(s)) {
|
|
4388
|
+
return reactiveGetter(s);
|
|
4389
|
+
} else if (isFunction(s)) {
|
|
4390
|
+
return callWithErrorHandling(s, instance, 2);
|
|
4391
|
+
} else ;
|
|
4392
|
+
});
|
|
4393
|
+
} else if (isFunction(source)) {
|
|
4394
|
+
if (cb) {
|
|
4395
|
+
getter = () => callWithErrorHandling(source, instance, 2);
|
|
4396
|
+
} else {
|
|
4397
|
+
getter = () => {
|
|
4398
|
+
if (cleanup) {
|
|
4399
|
+
cleanup();
|
|
4400
|
+
}
|
|
4401
|
+
return callWithAsyncErrorHandling(
|
|
4402
|
+
source,
|
|
4403
|
+
instance,
|
|
4404
|
+
3,
|
|
4405
|
+
[onCleanup]
|
|
4406
|
+
);
|
|
4407
|
+
};
|
|
4408
|
+
}
|
|
4409
|
+
} else {
|
|
4410
|
+
getter = NOOP;
|
|
4411
|
+
}
|
|
4412
|
+
if (cb && deep) {
|
|
4413
|
+
const baseGetter = getter;
|
|
4414
|
+
getter = () => traverse(baseGetter());
|
|
4415
|
+
}
|
|
4416
|
+
let cleanup;
|
|
4417
|
+
let onCleanup = (fn) => {
|
|
4418
|
+
cleanup = effect2.onStop = () => {
|
|
4419
|
+
callWithErrorHandling(fn, instance, 4);
|
|
4420
|
+
cleanup = effect2.onStop = void 0;
|
|
4421
|
+
};
|
|
4422
|
+
};
|
|
4423
|
+
let ssrCleanup;
|
|
4424
|
+
if (isInSSRComponentSetup) {
|
|
4425
|
+
onCleanup = NOOP;
|
|
4426
|
+
if (!cb) {
|
|
4427
|
+
getter();
|
|
4428
|
+
} else if (immediate) {
|
|
4429
|
+
callWithAsyncErrorHandling(cb, instance, 3, [
|
|
4430
|
+
getter(),
|
|
4431
|
+
isMultiSource ? [] : void 0,
|
|
4432
|
+
onCleanup
|
|
4433
|
+
]);
|
|
4434
|
+
}
|
|
4435
|
+
if (flush === "sync") {
|
|
4436
|
+
const ctx = useSSRContext();
|
|
4437
|
+
ssrCleanup = ctx.__watcherHandles || (ctx.__watcherHandles = []);
|
|
4438
|
+
} else {
|
|
4439
|
+
return NOOP;
|
|
4440
|
+
}
|
|
4441
|
+
}
|
|
4442
|
+
let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
|
|
4443
|
+
const job = () => {
|
|
4444
|
+
if (!effect2.active || !effect2.dirty) {
|
|
4445
|
+
return;
|
|
4446
|
+
}
|
|
4447
|
+
if (cb) {
|
|
4448
|
+
const newValue = effect2.run();
|
|
4449
|
+
if (deep || forceTrigger || (isMultiSource ? newValue.some((v, i) => hasChanged(v, oldValue[i])) : hasChanged(newValue, oldValue)) || false) {
|
|
4450
|
+
if (cleanup) {
|
|
4451
|
+
cleanup();
|
|
4452
|
+
}
|
|
4453
|
+
callWithAsyncErrorHandling(cb, instance, 3, [
|
|
4454
|
+
newValue,
|
|
4455
|
+
// pass undefined as the old value when it's changed for the first time
|
|
4456
|
+
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
|
4457
|
+
onCleanup
|
|
4458
|
+
]);
|
|
4459
|
+
oldValue = newValue;
|
|
4460
|
+
}
|
|
4461
|
+
} else {
|
|
4462
|
+
effect2.run();
|
|
4463
|
+
}
|
|
4603
4464
|
};
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4465
|
+
job.allowRecurse = !!cb;
|
|
4466
|
+
let scheduler;
|
|
4467
|
+
if (flush === "sync") {
|
|
4468
|
+
scheduler = job;
|
|
4469
|
+
} else if (flush === "post") {
|
|
4470
|
+
scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);
|
|
4471
|
+
} else {
|
|
4472
|
+
job.pre = true;
|
|
4473
|
+
if (instance) job.id = instance.uid;
|
|
4474
|
+
scheduler = () => queueJob(job);
|
|
4475
|
+
}
|
|
4476
|
+
const effect2 = new ReactiveEffect(getter, NOOP, scheduler);
|
|
4477
|
+
const scope = getCurrentScope();
|
|
4478
|
+
const unwatch = () => {
|
|
4479
|
+
effect2.stop();
|
|
4480
|
+
if (scope) {
|
|
4481
|
+
remove(scope.effects, effect2);
|
|
4482
|
+
}
|
|
4615
4483
|
};
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4484
|
+
if (cb) {
|
|
4485
|
+
if (immediate) {
|
|
4486
|
+
job();
|
|
4487
|
+
} else {
|
|
4488
|
+
oldValue = effect2.run();
|
|
4489
|
+
}
|
|
4490
|
+
} else if (flush === "post") {
|
|
4491
|
+
queuePostRenderEffect(
|
|
4492
|
+
effect2.run.bind(effect2),
|
|
4493
|
+
instance && instance.suspense
|
|
4621
4494
|
);
|
|
4495
|
+
} else {
|
|
4496
|
+
effect2.run();
|
|
4622
4497
|
}
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
hydrate,
|
|
4626
|
-
createApp: createAppAPI(render, hydrate)
|
|
4627
|
-
};
|
|
4628
|
-
}
|
|
4629
|
-
function resolveChildrenNamespace({ type, props }, currentNamespace) {
|
|
4630
|
-
return currentNamespace === "svg" && type === "foreignObject" || currentNamespace === "mathml" && type === "annotation-xml" && props && props.encoding && props.encoding.includes("html") ? void 0 : currentNamespace;
|
|
4498
|
+
if (ssrCleanup) ssrCleanup.push(unwatch);
|
|
4499
|
+
return unwatch;
|
|
4631
4500
|
}
|
|
4632
|
-
function
|
|
4633
|
-
|
|
4501
|
+
function instanceWatch(source, value, options) {
|
|
4502
|
+
const publicThis = this.proxy;
|
|
4503
|
+
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
4504
|
+
let cb;
|
|
4505
|
+
if (isFunction(value)) {
|
|
4506
|
+
cb = value;
|
|
4507
|
+
} else {
|
|
4508
|
+
cb = value.handler;
|
|
4509
|
+
options = value;
|
|
4510
|
+
}
|
|
4511
|
+
const reset = setCurrentInstance(this);
|
|
4512
|
+
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
4513
|
+
reset();
|
|
4514
|
+
return res;
|
|
4634
4515
|
}
|
|
4635
|
-
function
|
|
4636
|
-
|
|
4516
|
+
function createPathGetter(ctx, path) {
|
|
4517
|
+
const segments = path.split(".");
|
|
4518
|
+
return () => {
|
|
4519
|
+
let cur = ctx;
|
|
4520
|
+
for (let i = 0; i < segments.length && cur; i++) {
|
|
4521
|
+
cur = cur[segments[i]];
|
|
4522
|
+
}
|
|
4523
|
+
return cur;
|
|
4524
|
+
};
|
|
4637
4525
|
}
|
|
4638
|
-
function
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4526
|
+
function traverse(value, depth = Infinity, seen) {
|
|
4527
|
+
if (depth <= 0 || !isObject(value) || value["__v_skip"]) {
|
|
4528
|
+
return value;
|
|
4529
|
+
}
|
|
4530
|
+
seen = seen || /* @__PURE__ */ new Set();
|
|
4531
|
+
if (seen.has(value)) {
|
|
4532
|
+
return value;
|
|
4533
|
+
}
|
|
4534
|
+
seen.add(value);
|
|
4535
|
+
depth--;
|
|
4536
|
+
if (isRef(value)) {
|
|
4537
|
+
traverse(value.value, depth, seen);
|
|
4538
|
+
} else if (isArray$1(value)) {
|
|
4539
|
+
for (let i = 0; i < value.length; i++) {
|
|
4540
|
+
traverse(value[i], depth, seen);
|
|
4541
|
+
}
|
|
4542
|
+
} else if (isSet(value) || isMap(value)) {
|
|
4543
|
+
value.forEach((v) => {
|
|
4544
|
+
traverse(v, depth, seen);
|
|
4545
|
+
});
|
|
4546
|
+
} else if (isPlainObject(value)) {
|
|
4547
|
+
for (const key in value) {
|
|
4548
|
+
traverse(value[key], depth, seen);
|
|
4549
|
+
}
|
|
4550
|
+
for (const key of Object.getOwnPropertySymbols(value)) {
|
|
4551
|
+
if (Object.prototype.propertyIsEnumerable.call(value, key)) {
|
|
4552
|
+
traverse(value[key], depth, seen);
|
|
4655
4553
|
}
|
|
4656
4554
|
}
|
|
4657
4555
|
}
|
|
4556
|
+
return value;
|
|
4658
4557
|
}
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
}
|
|
4673
|
-
u = 0;
|
|
4674
|
-
v = result.length - 1;
|
|
4675
|
-
while (u < v) {
|
|
4676
|
-
c = u + v >> 1;
|
|
4677
|
-
if (arr[result[c]] < arrI) {
|
|
4678
|
-
u = c + 1;
|
|
4679
|
-
} else {
|
|
4680
|
-
v = c;
|
|
4681
|
-
}
|
|
4558
|
+
const isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
|
|
4559
|
+
function onActivated(hook, target) {
|
|
4560
|
+
registerKeepAliveHook(hook, "a", target);
|
|
4561
|
+
}
|
|
4562
|
+
function onDeactivated(hook, target) {
|
|
4563
|
+
registerKeepAliveHook(hook, "da", target);
|
|
4564
|
+
}
|
|
4565
|
+
function registerKeepAliveHook(hook, type, target = currentInstance) {
|
|
4566
|
+
const wrappedHook = hook.__wdc || (hook.__wdc = () => {
|
|
4567
|
+
let current = target;
|
|
4568
|
+
while (current) {
|
|
4569
|
+
if (current.isDeactivated) {
|
|
4570
|
+
return;
|
|
4682
4571
|
}
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4572
|
+
current = current.parent;
|
|
4573
|
+
}
|
|
4574
|
+
return hook();
|
|
4575
|
+
});
|
|
4576
|
+
injectHook(type, wrappedHook, target);
|
|
4577
|
+
if (target) {
|
|
4578
|
+
let current = target.parent;
|
|
4579
|
+
while (current && current.parent) {
|
|
4580
|
+
if (isKeepAlive(current.parent.vnode)) {
|
|
4581
|
+
injectToKeepAliveRoot(wrappedHook, type, target, current);
|
|
4688
4582
|
}
|
|
4583
|
+
current = current.parent;
|
|
4689
4584
|
}
|
|
4690
4585
|
}
|
|
4691
|
-
u = result.length;
|
|
4692
|
-
v = result[u - 1];
|
|
4693
|
-
while (u-- > 0) {
|
|
4694
|
-
result[u] = v;
|
|
4695
|
-
v = p[v];
|
|
4696
|
-
}
|
|
4697
|
-
return result;
|
|
4698
4586
|
}
|
|
4699
|
-
function
|
|
4700
|
-
const
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4587
|
+
function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {
|
|
4588
|
+
const injected = injectHook(
|
|
4589
|
+
type,
|
|
4590
|
+
hook,
|
|
4591
|
+
keepAliveRoot,
|
|
4592
|
+
true
|
|
4593
|
+
/* prepend */
|
|
4594
|
+
);
|
|
4595
|
+
onUnmounted(() => {
|
|
4596
|
+
remove(keepAliveRoot[type], injected);
|
|
4597
|
+
}, target);
|
|
4598
|
+
}
|
|
4599
|
+
function setTransitionHooks(vnode, hooks) {
|
|
4600
|
+
if (vnode.shapeFlag & 6 && vnode.component) {
|
|
4601
|
+
setTransitionHooks(vnode.component.subTree, hooks);
|
|
4602
|
+
} else if (vnode.shapeFlag & 128) {
|
|
4603
|
+
vnode.ssContent.transition = hooks.clone(vnode.ssContent);
|
|
4604
|
+
vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);
|
|
4605
|
+
} else {
|
|
4606
|
+
vnode.transition = hooks;
|
|
4707
4607
|
}
|
|
4708
4608
|
}
|
|
4709
4609
|
const isTeleport = (type) => type.__isTeleport;
|
|
@@ -4732,19 +4632,6 @@ function setupBlock(vnode) {
|
|
|
4732
4632
|
}
|
|
4733
4633
|
return vnode;
|
|
4734
4634
|
}
|
|
4735
|
-
function createElementBlock(type, props, children, patchFlag, dynamicProps, shapeFlag) {
|
|
4736
|
-
return setupBlock(
|
|
4737
|
-
createBaseVNode(
|
|
4738
|
-
type,
|
|
4739
|
-
props,
|
|
4740
|
-
children,
|
|
4741
|
-
patchFlag,
|
|
4742
|
-
dynamicProps,
|
|
4743
|
-
shapeFlag,
|
|
4744
|
-
true
|
|
4745
|
-
)
|
|
4746
|
-
);
|
|
4747
|
-
}
|
|
4748
4635
|
function createBlock(type, props, children, patchFlag, dynamicProps) {
|
|
4749
4636
|
return setupBlock(
|
|
4750
4637
|
createVNode(
|
|
@@ -4846,7 +4733,7 @@ function _createVNode(type, props = null, children = null, patchFlag = 0, dynami
|
|
|
4846
4733
|
currentBlock.push(cloned);
|
|
4847
4734
|
}
|
|
4848
4735
|
}
|
|
4849
|
-
cloned.patchFlag
|
|
4736
|
+
cloned.patchFlag = -2;
|
|
4850
4737
|
return cloned;
|
|
4851
4738
|
}
|
|
4852
4739
|
if (isClassComponent(type)) {
|
|
@@ -4878,12 +4765,11 @@ function _createVNode(type, props = null, children = null, patchFlag = 0, dynami
|
|
|
4878
4765
|
);
|
|
4879
4766
|
}
|
|
4880
4767
|
function guardReactiveProps(props) {
|
|
4881
|
-
if (!props)
|
|
4882
|
-
return null;
|
|
4768
|
+
if (!props) return null;
|
|
4883
4769
|
return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
|
|
4884
4770
|
}
|
|
4885
|
-
function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
4886
|
-
const { props, ref: ref3, patchFlag, children } = vnode;
|
|
4771
|
+
function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
|
|
4772
|
+
const { props, ref: ref3, patchFlag, children, transition } = vnode;
|
|
4887
4773
|
const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
|
|
4888
4774
|
const cloned = {
|
|
4889
4775
|
__v_isVNode: true,
|
|
@@ -4913,7 +4799,7 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
|
4913
4799
|
dynamicChildren: vnode.dynamicChildren,
|
|
4914
4800
|
appContext: vnode.appContext,
|
|
4915
4801
|
dirs: vnode.dirs,
|
|
4916
|
-
transition
|
|
4802
|
+
transition,
|
|
4917
4803
|
// These should technically only be non-null on mounted VNodes. However,
|
|
4918
4804
|
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
4919
4805
|
// them since them being non-null during a mount doesn't affect the logic as
|
|
@@ -4927,14 +4813,17 @@ function cloneVNode(vnode, extraProps, mergeRef = false) {
|
|
|
4927
4813
|
ctx: vnode.ctx,
|
|
4928
4814
|
ce: vnode.ce
|
|
4929
4815
|
};
|
|
4816
|
+
if (transition && cloneTransition) {
|
|
4817
|
+
setTransitionHooks(
|
|
4818
|
+
cloned,
|
|
4819
|
+
transition.clone(cloned)
|
|
4820
|
+
);
|
|
4821
|
+
}
|
|
4930
4822
|
return cloned;
|
|
4931
4823
|
}
|
|
4932
4824
|
function createTextVNode(text = " ", flag = 0) {
|
|
4933
4825
|
return createVNode(Text, null, text, flag);
|
|
4934
4826
|
}
|
|
4935
|
-
function createCommentVNode(text = "", asBlock = false) {
|
|
4936
|
-
return asBlock ? (openBlock(), createBlock(Comment, null, text)) : createVNode(Comment, null, text);
|
|
4937
|
-
}
|
|
4938
4827
|
function normalizeVNode(child) {
|
|
4939
4828
|
if (child == null || typeof child === "boolean") {
|
|
4940
4829
|
return createVNode(Comment);
|
|
@@ -5127,14 +5016,11 @@ let setInSSRSetupState;
|
|
|
5127
5016
|
const g = getGlobalThis();
|
|
5128
5017
|
const registerGlobalSetter = (key, setter) => {
|
|
5129
5018
|
let setters;
|
|
5130
|
-
if (!(setters = g[key]))
|
|
5131
|
-
setters = g[key] = [];
|
|
5019
|
+
if (!(setters = g[key])) setters = g[key] = [];
|
|
5132
5020
|
setters.push(setter);
|
|
5133
5021
|
return (v) => {
|
|
5134
|
-
if (setters.length > 1)
|
|
5135
|
-
|
|
5136
|
-
else
|
|
5137
|
-
setters[0](v);
|
|
5022
|
+
if (setters.length > 1) setters.forEach((set) => set(v));
|
|
5023
|
+
else setters[0](v);
|
|
5138
5024
|
};
|
|
5139
5025
|
};
|
|
5140
5026
|
internalSetCurrentInstance = registerGlobalSetter(
|
|
@@ -5277,7 +5163,7 @@ function createSetupContext(instance) {
|
|
|
5277
5163
|
};
|
|
5278
5164
|
}
|
|
5279
5165
|
}
|
|
5280
|
-
function
|
|
5166
|
+
function getComponentPublicInstance(instance) {
|
|
5281
5167
|
if (instance.exposed) {
|
|
5282
5168
|
return instance.exposeProxy || (instance.exposeProxy = new Proxy(proxyRefs(markRaw(instance.exposed)), {
|
|
5283
5169
|
get(target, key) {
|
|
@@ -5291,6 +5177,8 @@ function getExposeProxy(instance) {
|
|
|
5291
5177
|
return key in target || key in publicPropertiesMap;
|
|
5292
5178
|
}
|
|
5293
5179
|
}));
|
|
5180
|
+
} else {
|
|
5181
|
+
return instance.proxy;
|
|
5294
5182
|
}
|
|
5295
5183
|
}
|
|
5296
5184
|
const classifyRE = /(?:^|[-_])(\w)/g;
|
|
@@ -5347,12 +5235,12 @@ function h(type, propsOrChildren, children) {
|
|
|
5347
5235
|
return createVNode(type, propsOrChildren, children);
|
|
5348
5236
|
}
|
|
5349
5237
|
}
|
|
5350
|
-
const version = "3.4.
|
|
5238
|
+
const version = "3.4.29";
|
|
5351
5239
|
|
|
5352
5240
|
/* Injected with object hook! */
|
|
5353
5241
|
|
|
5354
5242
|
/**
|
|
5355
|
-
* @vue/runtime-dom v3.4.
|
|
5243
|
+
* @vue/runtime-dom v3.4.29
|
|
5356
5244
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5357
5245
|
* @license MIT
|
|
5358
5246
|
**/
|
|
@@ -5371,7 +5259,7 @@ const nodeOps = {
|
|
|
5371
5259
|
}
|
|
5372
5260
|
},
|
|
5373
5261
|
createElement: (tag, namespace, is, props) => {
|
|
5374
|
-
const el = namespace === "svg" ? doc.createElementNS(svgNS, tag) : namespace === "mathml" ? doc.createElementNS(mathmlNS, tag) : doc.createElement(tag,
|
|
5262
|
+
const el = namespace === "svg" ? doc.createElementNS(svgNS, tag) : namespace === "mathml" ? doc.createElementNS(mathmlNS, tag) : is ? doc.createElement(tag, { is }) : doc.createElement(tag);
|
|
5375
5263
|
if (tag === "select" && props && props.multiple != null) {
|
|
5376
5264
|
el.setAttribute("multiple", props.multiple);
|
|
5377
5265
|
}
|
|
@@ -5400,8 +5288,7 @@ const nodeOps = {
|
|
|
5400
5288
|
if (start && (start === end || start.nextSibling)) {
|
|
5401
5289
|
while (true) {
|
|
5402
5290
|
parent.insertBefore(start.cloneNode(true), anchor);
|
|
5403
|
-
if (start === end || !(start = start.nextSibling))
|
|
5404
|
-
break;
|
|
5291
|
+
if (start === end || !(start = start.nextSibling)) break;
|
|
5405
5292
|
}
|
|
5406
5293
|
} else {
|
|
5407
5294
|
templateContainer.innerHTML = namespace === "svg" ? `<svg>${content}</svg>` : namespace === "mathml" ? `<math>${content}</math>` : content;
|
|
@@ -5494,8 +5381,7 @@ function setStyle(style, name, val) {
|
|
|
5494
5381
|
if (isArray$1(val)) {
|
|
5495
5382
|
val.forEach((v) => setStyle(style, name, v));
|
|
5496
5383
|
} else {
|
|
5497
|
-
if (val == null)
|
|
5498
|
-
val = "";
|
|
5384
|
+
if (val == null) val = "";
|
|
5499
5385
|
if (name.startsWith("--")) {
|
|
5500
5386
|
style.setProperty(name, val);
|
|
5501
5387
|
} else {
|
|
@@ -5533,7 +5419,7 @@ function autoPrefix(style, rawName) {
|
|
|
5533
5419
|
return rawName;
|
|
5534
5420
|
}
|
|
5535
5421
|
const xlinkNS = "http://www.w3.org/1999/xlink";
|
|
5536
|
-
function patchAttr(el, key, value, isSVG, instance) {
|
|
5422
|
+
function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) {
|
|
5537
5423
|
if (isSVG && key.startsWith("xlink:")) {
|
|
5538
5424
|
if (value == null) {
|
|
5539
5425
|
el.removeAttributeNS(xlinkNS, key.slice(6, key.length));
|
|
@@ -5541,11 +5427,10 @@ function patchAttr(el, key, value, isSVG, instance) {
|
|
|
5541
5427
|
el.setAttributeNS(xlinkNS, key, value);
|
|
5542
5428
|
}
|
|
5543
5429
|
} else {
|
|
5544
|
-
const isBoolean = isSpecialBooleanAttr(key);
|
|
5545
5430
|
if (value == null || isBoolean && !includeBooleanAttr(value)) {
|
|
5546
5431
|
el.removeAttribute(key);
|
|
5547
5432
|
} else {
|
|
5548
|
-
el.setAttribute(key, isBoolean ? "" : value);
|
|
5433
|
+
el.setAttribute(key, isBoolean ? "" : String(value));
|
|
5549
5434
|
}
|
|
5550
5435
|
}
|
|
5551
5436
|
}
|
|
@@ -5561,7 +5446,7 @@ function patchDOMProp(el, key, value, prevChildren, parentComponent, parentSuspe
|
|
|
5561
5446
|
if (key === "value" && tag !== "PROGRESS" && // custom elements may use _value internally
|
|
5562
5447
|
!tag.includes("-")) {
|
|
5563
5448
|
const oldValue = tag === "OPTION" ? el.getAttribute("value") || "" : el.value;
|
|
5564
|
-
const newValue = value == null ? "" : value;
|
|
5449
|
+
const newValue = value == null ? "" : String(value);
|
|
5565
5450
|
if (oldValue !== newValue || !("_value" in el)) {
|
|
5566
5451
|
el.value = newValue;
|
|
5567
5452
|
}
|
|
@@ -5687,6 +5572,9 @@ const patchProp = (el, key, prevValue, nextValue, namespace, prevChildren, paren
|
|
|
5687
5572
|
parentSuspense,
|
|
5688
5573
|
unmountChildren
|
|
5689
5574
|
);
|
|
5575
|
+
if (key === "value" || key === "checked" || key === "selected") {
|
|
5576
|
+
patchAttr(el, key, nextValue, isSVG, parentComponent, key !== "value");
|
|
5577
|
+
}
|
|
5690
5578
|
} else {
|
|
5691
5579
|
if (key === "true-value") {
|
|
5692
5580
|
el._trueValue = nextValue;
|
|
@@ -5739,8 +5627,7 @@ const createApp = (...args) => {
|
|
|
5739
5627
|
const { mount } = app;
|
|
5740
5628
|
app.mount = (containerOrSelector) => {
|
|
5741
5629
|
const container = normalizeContainer(containerOrSelector);
|
|
5742
|
-
if (!container)
|
|
5743
|
-
return;
|
|
5630
|
+
if (!container) return;
|
|
5744
5631
|
const component = app._component;
|
|
5745
5632
|
if (!isFunction(component) && !component.render && !component.template) {
|
|
5746
5633
|
component.template = container.innerHTML;
|
|
@@ -5773,105 +5660,8 @@ function normalizeContainer(container) {
|
|
|
5773
5660
|
|
|
5774
5661
|
/* Injected with object hook! */
|
|
5775
5662
|
|
|
5776
|
-
const scriptRel = 'modulepreload';const assetsURL = function(dep, importerUrl) { return new URL(dep, importerUrl).href };const seen = {};const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
5777
|
-
let promise = Promise.resolve();
|
|
5778
|
-
// @ts-expect-error true will be replaced with boolean later
|
|
5779
|
-
if (true && deps && deps.length > 0) {
|
|
5780
|
-
const links = document.getElementsByTagName('link');
|
|
5781
|
-
const cspNonceMeta = document.querySelector('meta[property=csp-nonce]');
|
|
5782
|
-
// `.nonce` should be used to get along with nonce hiding (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/nonce#accessing_nonces_and_nonce_hiding)
|
|
5783
|
-
// Firefox 67-74 uses modern chunks and supports CSP nonce, but does not support `.nonce`
|
|
5784
|
-
// in that case fallback to getAttribute
|
|
5785
|
-
const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute('nonce');
|
|
5786
|
-
promise = Promise.all(deps.map((dep) => {
|
|
5787
|
-
// @ts-expect-error assetsURL is declared before preload.toString()
|
|
5788
|
-
dep = assetsURL(dep, importerUrl);
|
|
5789
|
-
if (dep in seen)
|
|
5790
|
-
return;
|
|
5791
|
-
seen[dep] = true;
|
|
5792
|
-
const isCss = dep.endsWith('.css');
|
|
5793
|
-
const cssSelector = isCss ? '[rel="stylesheet"]' : '';
|
|
5794
|
-
const isBaseRelative = !!importerUrl;
|
|
5795
|
-
// check if the file is already preloaded by SSR markup
|
|
5796
|
-
if (isBaseRelative) {
|
|
5797
|
-
// When isBaseRelative is true then we have `importerUrl` and `dep` is
|
|
5798
|
-
// already converted to an absolute URL by the `assetsURL` function
|
|
5799
|
-
for (let i = links.length - 1; i >= 0; i--) {
|
|
5800
|
-
const link = links[i];
|
|
5801
|
-
// The `links[i].href` is an absolute URL thanks to browser doing the work
|
|
5802
|
-
// for us. See https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#reflecting-content-attributes-in-idl-attributes:idl-domstring-5
|
|
5803
|
-
if (link.href === dep && (!isCss || link.rel === 'stylesheet')) {
|
|
5804
|
-
return;
|
|
5805
|
-
}
|
|
5806
|
-
}
|
|
5807
|
-
}
|
|
5808
|
-
else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) {
|
|
5809
|
-
return;
|
|
5810
|
-
}
|
|
5811
|
-
const link = document.createElement('link');
|
|
5812
|
-
link.rel = isCss ? 'stylesheet' : scriptRel;
|
|
5813
|
-
if (!isCss) {
|
|
5814
|
-
link.as = 'script';
|
|
5815
|
-
link.crossOrigin = '';
|
|
5816
|
-
}
|
|
5817
|
-
link.href = dep;
|
|
5818
|
-
if (cspNonce) {
|
|
5819
|
-
link.setAttribute('nonce', cspNonce);
|
|
5820
|
-
}
|
|
5821
|
-
document.head.appendChild(link);
|
|
5822
|
-
if (isCss) {
|
|
5823
|
-
return new Promise((res, rej) => {
|
|
5824
|
-
link.addEventListener('load', res);
|
|
5825
|
-
link.addEventListener('error', () => rej(new Error(`Unable to preload CSS for ${dep}`)));
|
|
5826
|
-
});
|
|
5827
|
-
}
|
|
5828
|
-
}));
|
|
5829
|
-
}
|
|
5830
|
-
return promise
|
|
5831
|
-
.then(() => baseModule())
|
|
5832
|
-
.catch((err) => {
|
|
5833
|
-
const e = new Event('vite:preloadError', { cancelable: true });
|
|
5834
|
-
// @ts-expect-error custom payload
|
|
5835
|
-
e.payload = err;
|
|
5836
|
-
window.dispatchEvent(e);
|
|
5837
|
-
if (!e.defaultPrevented) {
|
|
5838
|
-
throw err;
|
|
5839
|
-
}
|
|
5840
|
-
});
|
|
5841
|
-
};
|
|
5842
|
-
/* Injected with object hook! */
|
|
5843
|
-
|
|
5844
|
-
const routes = [
|
|
5845
|
-
{
|
|
5846
|
-
path: '/',
|
|
5847
|
-
name: '/',
|
|
5848
|
-
component: () => __vitePreload(() => import('./index-Cd46Agkz.js'),true?__vite__mapDeps([0,1,2]):void 0,import.meta.url),
|
|
5849
|
-
/* no children */
|
|
5850
|
-
},
|
|
5851
|
-
{
|
|
5852
|
-
path: '/about',
|
|
5853
|
-
name: '/about',
|
|
5854
|
-
component: () => __vitePreload(() => import('./about-BFD_MvF9.js'),true?__vite__mapDeps([3,1]):void 0,import.meta.url),
|
|
5855
|
-
/* no children */
|
|
5856
|
-
},
|
|
5857
|
-
{
|
|
5858
|
-
path: '/categories',
|
|
5859
|
-
name: '/categories',
|
|
5860
|
-
component: () => __vitePreload(() => import('./categories-D_edQMeI.js'),true?__vite__mapDeps([4,1]):void 0,import.meta.url),
|
|
5861
|
-
/* no children */
|
|
5862
|
-
},
|
|
5863
|
-
{
|
|
5864
|
-
path: '/tags',
|
|
5865
|
-
name: '/tags',
|
|
5866
|
-
component: () => __vitePreload(() => import('./tags-IGhVL7Gg.js'),true?__vite__mapDeps([5,1]):void 0,import.meta.url),
|
|
5867
|
-
/* no children */
|
|
5868
|
-
}
|
|
5869
|
-
];
|
|
5870
|
-
|
|
5871
|
-
/* Injected with object hook! */
|
|
5872
|
-
|
|
5873
5663
|
/*!
|
|
5874
|
-
* vue-router v4.3.
|
|
5664
|
+
* vue-router v4.3.3
|
|
5875
5665
|
* (c) 2024 Eduardo San Martin Morote
|
|
5876
5666
|
* @license MIT
|
|
5877
5667
|
*/
|
|
@@ -6661,6 +6451,9 @@ function createRouterMatcher(routes, globalOptions) {
|
|
|
6661
6451
|
if (isRootAdd && record.name && !isAliasRecord(matcher))
|
|
6662
6452
|
removeRoute(record.name);
|
|
6663
6453
|
}
|
|
6454
|
+
if (isMatchable(matcher)) {
|
|
6455
|
+
insertMatcher(matcher);
|
|
6456
|
+
}
|
|
6664
6457
|
if (mainNormalizedRecord.children) {
|
|
6665
6458
|
const children = mainNormalizedRecord.children;
|
|
6666
6459
|
for (let i = 0; i < children.length; i++) {
|
|
@@ -6668,9 +6461,6 @@ function createRouterMatcher(routes, globalOptions) {
|
|
|
6668
6461
|
}
|
|
6669
6462
|
}
|
|
6670
6463
|
originalRecord = originalRecord || matcher;
|
|
6671
|
-
if (matcher.record.components && Object.keys(matcher.record.components).length || matcher.record.name || matcher.record.redirect) {
|
|
6672
|
-
insertMatcher(matcher);
|
|
6673
|
-
}
|
|
6674
6464
|
}
|
|
6675
6465
|
return originalMatcher ? () => {
|
|
6676
6466
|
removeRoute(originalMatcher);
|
|
@@ -6700,12 +6490,8 @@ function createRouterMatcher(routes, globalOptions) {
|
|
|
6700
6490
|
return matchers;
|
|
6701
6491
|
}
|
|
6702
6492
|
function insertMatcher(matcher) {
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
// https://github.com/vuejs/router/issues/1124
|
|
6706
|
-
(matcher.record.path !== matchers[i].record.path || !isRecordChildOf(matcher, matchers[i])))
|
|
6707
|
-
i++;
|
|
6708
|
-
matchers.splice(i, 0, matcher);
|
|
6493
|
+
const index = findInsertionIndex(matcher, matchers);
|
|
6494
|
+
matchers.splice(index, 0, matcher);
|
|
6709
6495
|
if (matcher.record.name && !isAliasRecord(matcher))
|
|
6710
6496
|
matcherMap.set(matcher.record.name, matcher);
|
|
6711
6497
|
}
|
|
@@ -6823,8 +6609,35 @@ function mergeOptions(defaults, partialOptions) {
|
|
|
6823
6609
|
}
|
|
6824
6610
|
return options;
|
|
6825
6611
|
}
|
|
6826
|
-
function
|
|
6827
|
-
|
|
6612
|
+
function findInsertionIndex(matcher, matchers) {
|
|
6613
|
+
let lower = 0;
|
|
6614
|
+
let upper = matchers.length;
|
|
6615
|
+
while (lower !== upper) {
|
|
6616
|
+
const mid = lower + upper >> 1;
|
|
6617
|
+
const sortOrder = comparePathParserScore(matcher, matchers[mid]);
|
|
6618
|
+
if (sortOrder < 0) {
|
|
6619
|
+
upper = mid;
|
|
6620
|
+
} else {
|
|
6621
|
+
lower = mid + 1;
|
|
6622
|
+
}
|
|
6623
|
+
}
|
|
6624
|
+
const insertionAncestor = getInsertionAncestor(matcher);
|
|
6625
|
+
if (insertionAncestor) {
|
|
6626
|
+
upper = matchers.lastIndexOf(insertionAncestor, upper - 1);
|
|
6627
|
+
}
|
|
6628
|
+
return upper;
|
|
6629
|
+
}
|
|
6630
|
+
function getInsertionAncestor(matcher) {
|
|
6631
|
+
let ancestor = matcher;
|
|
6632
|
+
while (ancestor = ancestor.parent) {
|
|
6633
|
+
if (isMatchable(ancestor) && comparePathParserScore(matcher, ancestor) === 0) {
|
|
6634
|
+
return ancestor;
|
|
6635
|
+
}
|
|
6636
|
+
}
|
|
6637
|
+
return;
|
|
6638
|
+
}
|
|
6639
|
+
function isMatchable({ record }) {
|
|
6640
|
+
return !!(record.name || record.components && Object.keys(record.components).length || record.redirect);
|
|
6828
6641
|
}
|
|
6829
6642
|
function parseQuery(search) {
|
|
6830
6643
|
const query = {};
|
|
@@ -6970,7 +6783,10 @@ function isRouteComponent(component) {
|
|
|
6970
6783
|
function useLink(props) {
|
|
6971
6784
|
const router = inject(routerKey);
|
|
6972
6785
|
const currentRoute = inject(routeLocationKey);
|
|
6973
|
-
const route = computed(() =>
|
|
6786
|
+
const route = computed(() => {
|
|
6787
|
+
const to = unref(props.to);
|
|
6788
|
+
return router.resolve(to);
|
|
6789
|
+
});
|
|
6974
6790
|
const activeRecordIndex = computed(() => {
|
|
6975
6791
|
const { matched } = route.value;
|
|
6976
6792
|
const { length } = matched;
|
|
@@ -7675,11 +7491,14 @@ function extractChangingRecords(to, from) {
|
|
|
7675
7491
|
/* Injected with object hook! */
|
|
7676
7492
|
|
|
7677
7493
|
function createRouter(options) {
|
|
7678
|
-
const { extendRoutes } = options;
|
|
7494
|
+
const { extendRoutes, routes } = options;
|
|
7679
7495
|
// use Object.assign for better browser support
|
|
7496
|
+
if (extendRoutes) {
|
|
7497
|
+
console.warn('"extendRoutes()" is deprecated, please modify the routes directly. See');
|
|
7498
|
+
}
|
|
7680
7499
|
const router = createRouter$1(Object.assign(
|
|
7681
7500
|
options,
|
|
7682
|
-
{ routes: typeof extendRoutes === 'function' ? extendRoutes(routes) : routes },
|
|
7501
|
+
{ routes: typeof extendRoutes === 'function' ? (extendRoutes(routes) || routes) : routes },
|
|
7683
7502
|
));
|
|
7684
7503
|
|
|
7685
7504
|
return router
|
|
@@ -7694,16 +7513,9 @@ const pageData = ref();
|
|
|
7694
7513
|
|
|
7695
7514
|
/* Injected with object hook! */
|
|
7696
7515
|
|
|
7697
|
-
function getAppWindow() {
|
|
7698
|
-
return window.parent.parent;
|
|
7699
|
-
}
|
|
7700
7516
|
function getWindowProperty(property) {
|
|
7701
7517
|
return window.parent.parent[property];
|
|
7702
7518
|
}
|
|
7703
|
-
function getGlobalValaxyProperty(property) {
|
|
7704
|
-
const $valaxy = window.parent.parent.$valaxy;
|
|
7705
|
-
return $valaxy[property];
|
|
7706
|
-
}
|
|
7707
7519
|
|
|
7708
7520
|
/* Injected with object hook! */
|
|
7709
7521
|
|
|
@@ -7727,7 +7539,7 @@ function initDevtoolsClient() {
|
|
|
7727
7539
|
|
|
7728
7540
|
/* Injected with object hook! */
|
|
7729
7541
|
|
|
7730
|
-
|
|
7542
|
+
document.body.getAttribute("data-valaxy-devtools-mode") === "BUILD";
|
|
7731
7543
|
|
|
7732
7544
|
/* Injected with object hook! */
|
|
7733
7545
|
|
|
@@ -7764,5 +7576,3 @@ app.mount("#app");
|
|
|
7764
7576
|
/* Injected with object hook! */
|
|
7765
7577
|
|
|
7766
7578
|
/* Injected with object hook! */
|
|
7767
|
-
|
|
7768
|
-
export { h as A, normalizeStyle as B, isStaticMode as C, Fragment as F, createElementBlock as a, createCommentVNode as b, computed as c, defineComponent as d, ref as e, onMounted as f, getAppWindow as g, createBaseVNode as h, resolveComponent as i, createBlock as j, renderList as k, createTextVNode as l, createVNode as m, normalizeClass as n, openBlock as o, pageData as p, toRaw as q, renderSlot as r, frontmatter as s, toDisplayString as t, unref as u, getWindowProperty as v, withCtx as w, getGlobalValaxyProperty as x, activePath as y, devtoolsRouter as z };
|