@xingtukeji/micro 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -7
- package/dist/index.js +1311 -1133
- package/dist/types/child.d.ts +0 -1
- package/package.json +1 -1
- package/dist/types/components/XTMicroView.vue.d.ts +0 -6
package/dist/index.js
CHANGED
|
@@ -1,394 +1,415 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Nn = Object.defineProperty, vn = Object.defineProperties;
|
|
2
|
+
var yn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var pt = Object.getOwnPropertySymbols;
|
|
4
|
+
var bn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Le = (e, t, n) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, W = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
bn.call(t, n) && Le(e, n, t[n]);
|
|
8
|
+
if (pt)
|
|
9
|
+
for (var n of pt(t))
|
|
10
|
+
Sn.call(t, n) && Le(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
12
|
+
}, je = (e, t) => vn(e, yn(t));
|
|
13
|
+
var pe = (e, t, n) => (Le(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var ht = (e, t, n) => new Promise((r, s) => {
|
|
15
|
+
var o = (a) => {
|
|
16
16
|
try {
|
|
17
|
-
c(n.next(
|
|
17
|
+
c(n.next(a));
|
|
18
18
|
} catch (u) {
|
|
19
|
-
|
|
19
|
+
s(u);
|
|
20
20
|
}
|
|
21
|
-
}, i = (
|
|
21
|
+
}, i = (a) => {
|
|
22
22
|
try {
|
|
23
|
-
c(n.throw(
|
|
23
|
+
c(n.throw(a));
|
|
24
24
|
} catch (u) {
|
|
25
|
-
|
|
25
|
+
s(u);
|
|
26
26
|
}
|
|
27
|
-
}, c = (
|
|
27
|
+
}, c = (a) => a.done ? r(a.value) : Promise.resolve(a.value).then(o, i);
|
|
28
28
|
c((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const n = e.
|
|
39
|
-
|
|
40
|
-
}
|
|
30
|
+
/**
|
|
31
|
+
* @vue/shared v3.4.38
|
|
32
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
33
|
+
* @license MIT
|
|
34
|
+
**/
|
|
35
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
|
36
|
+
// @__NO_SIDE_EFFECTS__
|
|
37
|
+
function Rn(e, t) {
|
|
38
|
+
const n = new Set(e.split(","));
|
|
39
|
+
return t ? (r) => n.has(r.toLowerCase()) : (r) => n.has(r);
|
|
40
|
+
}
|
|
41
|
+
const M = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, In = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], Z = () => {
|
|
42
|
+
}, Cn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
43
|
+
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), I = Object.assign, xn = Object.prototype.hasOwnProperty, w = (e, t) => xn.call(e, t), m = Array.isArray, k = (e) => Me(e) === "[object Map]", Pn = (e) => Me(e) === "[object Set]", E = (e) => typeof e == "function", P = (e) => typeof e == "string", ae = (e) => typeof e == "symbol", b = (e) => e !== null && typeof e == "object", Vn = (e) => (b(e) || E(e)) && E(e.then) && E(e.catch), Mn = Object.prototype.toString, Me = (e) => Mn.call(e), Vt = (e) => Me(e).slice(8, -1), Dn = (e) => Me(e) === "[object Object]", Ze = (e) => P(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Mt = (e) => {
|
|
41
44
|
const t = /* @__PURE__ */ Object.create(null);
|
|
42
45
|
return (n) => t[n] || (t[n] = e(n));
|
|
43
|
-
}, Mt =
|
|
44
|
-
(e) => e.charAt(0).toUpperCase() + e.slice(1)
|
|
45
|
-
), Cn = Pt(
|
|
46
|
-
(e) => e ? `on${Mt(e)}` : ""
|
|
47
|
-
), ie = (e, t) => !Object.is(e, t), Pn = (e, t, n) => {
|
|
46
|
+
}, Dt = Mt((e) => e.charAt(0).toUpperCase() + e.slice(1)), Tn = Mt((e) => e ? `on${Dt(e)}` : ""), H = (e, t) => !Object.is(e, t), $n = (e, t, n, r = !1) => {
|
|
48
47
|
Object.defineProperty(e, t, {
|
|
49
48
|
configurable: !0,
|
|
50
49
|
enumerable: !1,
|
|
50
|
+
writable: r,
|
|
51
51
|
value: n
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
|
-
let
|
|
55
|
-
const
|
|
56
|
-
function
|
|
57
|
-
if (
|
|
54
|
+
let _t;
|
|
55
|
+
const Tt = () => _t || (_t = typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : typeof global != "undefined" ? global : {});
|
|
56
|
+
function ke(e) {
|
|
57
|
+
if (m(e)) {
|
|
58
58
|
const t = {};
|
|
59
59
|
for (let n = 0; n < e.length; n++) {
|
|
60
|
-
const
|
|
61
|
-
if (
|
|
62
|
-
for (const
|
|
63
|
-
t[
|
|
60
|
+
const r = e[n], s = P(r) ? Un(r) : ke(r);
|
|
61
|
+
if (s)
|
|
62
|
+
for (const o in s)
|
|
63
|
+
t[o] = s[o];
|
|
64
64
|
}
|
|
65
65
|
return t;
|
|
66
|
-
} else
|
|
67
|
-
|
|
68
|
-
return e;
|
|
69
|
-
if (I(e))
|
|
70
|
-
return e;
|
|
71
|
-
}
|
|
66
|
+
} else if (P(e) || b(e))
|
|
67
|
+
return e;
|
|
72
68
|
}
|
|
73
|
-
const
|
|
74
|
-
function
|
|
69
|
+
const An = /;(?![^(]*\))/g, Ln = /:([^]+)/, jn = /\/\*[^]*?\*\//g;
|
|
70
|
+
function Un(e) {
|
|
75
71
|
const t = {};
|
|
76
|
-
return e.replace(
|
|
72
|
+
return e.replace(jn, "").split(An).forEach((n) => {
|
|
77
73
|
if (n) {
|
|
78
|
-
const
|
|
79
|
-
|
|
74
|
+
const r = n.split(Ln);
|
|
75
|
+
r.length > 1 && (t[r[0].trim()] = r[1].trim());
|
|
80
76
|
}
|
|
81
77
|
}), t;
|
|
82
78
|
}
|
|
83
|
-
function
|
|
79
|
+
function et(e) {
|
|
84
80
|
let t = "";
|
|
85
|
-
if (
|
|
81
|
+
if (P(e))
|
|
86
82
|
t = e;
|
|
87
|
-
else if (
|
|
83
|
+
else if (m(e))
|
|
88
84
|
for (let n = 0; n < e.length; n++) {
|
|
89
|
-
const
|
|
90
|
-
|
|
85
|
+
const r = et(e[n]);
|
|
86
|
+
r && (t += r + " ");
|
|
91
87
|
}
|
|
92
|
-
else if (
|
|
88
|
+
else if (b(e))
|
|
93
89
|
for (const n in e)
|
|
94
90
|
e[n] && (t += n + " ");
|
|
95
91
|
return t.trim();
|
|
96
92
|
}
|
|
97
|
-
|
|
93
|
+
/**
|
|
94
|
+
* @vue/reactivity v3.4.38
|
|
95
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
96
|
+
* @license MIT
|
|
97
|
+
**/
|
|
98
|
+
function ne(e, ...t) {
|
|
98
99
|
console.warn(`[Vue warn] ${e}`, ...t);
|
|
99
100
|
}
|
|
100
|
-
let
|
|
101
|
-
function
|
|
101
|
+
let Fn;
|
|
102
|
+
function Hn(e, t = Fn) {
|
|
102
103
|
t && t.active && t.effects.push(e);
|
|
103
104
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
for (let o = 0; o < t.length; o++) {
|
|
119
|
-
const r = t[o];
|
|
120
|
-
Tt(r) && !Dt(r) ? r.delete(e) : t[n++] = r, r.w &= ~H, r.n &= ~H;
|
|
105
|
+
let J;
|
|
106
|
+
class $t {
|
|
107
|
+
constructor(t, n, r, s) {
|
|
108
|
+
this.fn = t, this.trigger = n, this.scheduler = r, this.active = !0, this.deps = [], this._dirtyLevel = 4, this._trackId = 0, this._runnings = 0, this._shouldSchedule = !1, this._depsLength = 0, Hn(this, s);
|
|
109
|
+
}
|
|
110
|
+
get dirty() {
|
|
111
|
+
if (this._dirtyLevel === 2 || this._dirtyLevel === 3) {
|
|
112
|
+
this._dirtyLevel = 1, ue();
|
|
113
|
+
for (let t = 0; t < this._depsLength; t++) {
|
|
114
|
+
const n = this.deps[t];
|
|
115
|
+
if (n.computed && (Kn(n.computed), this._dirtyLevel >= 4))
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
this._dirtyLevel === 1 && (this._dirtyLevel = 0), fe();
|
|
121
119
|
}
|
|
122
|
-
|
|
120
|
+
return this._dirtyLevel >= 4;
|
|
123
121
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const je = 30;
|
|
127
|
-
let N;
|
|
128
|
-
const q = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), He = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
|
|
129
|
-
class jn {
|
|
130
|
-
constructor(t, n = null, o) {
|
|
131
|
-
this.fn = t, this.scheduler = n, this.active = !0, this.deps = [], this.parent = void 0, $n(this, o);
|
|
122
|
+
set dirty(t) {
|
|
123
|
+
this._dirtyLevel = t ? 4 : 0;
|
|
132
124
|
}
|
|
133
125
|
run() {
|
|
134
|
-
if (!this.active)
|
|
126
|
+
if (this._dirtyLevel = 0, !this.active)
|
|
135
127
|
return this.fn();
|
|
136
|
-
let t =
|
|
137
|
-
for (; t; ) {
|
|
138
|
-
if (t === this)
|
|
139
|
-
return;
|
|
140
|
-
t = t.parent;
|
|
141
|
-
}
|
|
128
|
+
let t = U, n = J;
|
|
142
129
|
try {
|
|
143
|
-
return
|
|
130
|
+
return U = !0, J = this, this._runnings++, mt(this), this.fn();
|
|
144
131
|
} finally {
|
|
145
|
-
|
|
132
|
+
gt(this), this._runnings--, J = n, U = t;
|
|
146
133
|
}
|
|
147
134
|
}
|
|
148
135
|
stop() {
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
function
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
let
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}
|
|
165
|
-
function
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
136
|
+
this.active && (mt(this), gt(this), this.onStop && this.onStop(), this.active = !1);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
function Kn(e) {
|
|
140
|
+
return e.value;
|
|
141
|
+
}
|
|
142
|
+
function mt(e) {
|
|
143
|
+
e._trackId++, e._depsLength = 0;
|
|
144
|
+
}
|
|
145
|
+
function gt(e) {
|
|
146
|
+
if (e.deps.length > e._depsLength) {
|
|
147
|
+
for (let t = e._depsLength; t < e.deps.length; t++)
|
|
148
|
+
At(e.deps[t], e);
|
|
149
|
+
e.deps.length = e._depsLength;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
function At(e, t) {
|
|
153
|
+
const n = e.get(t);
|
|
154
|
+
n !== void 0 && t._trackId !== n && (e.delete(t), e.size === 0 && e.cleanup());
|
|
155
|
+
}
|
|
156
|
+
let U = !0, We = 0;
|
|
157
|
+
const Lt = [];
|
|
158
|
+
function ue() {
|
|
159
|
+
Lt.push(U), U = !1;
|
|
160
|
+
}
|
|
161
|
+
function fe() {
|
|
162
|
+
const e = Lt.pop();
|
|
163
|
+
U = e === void 0 ? !0 : e;
|
|
164
|
+
}
|
|
165
|
+
function tt() {
|
|
166
|
+
We++;
|
|
167
|
+
}
|
|
168
|
+
function nt() {
|
|
169
|
+
for (We--; !We && Be.length; )
|
|
170
|
+
Be.shift()();
|
|
171
|
+
}
|
|
172
|
+
function jt(e, t, n) {
|
|
173
|
+
var r;
|
|
174
|
+
if (t.get(e) !== e._trackId) {
|
|
175
|
+
t.set(e, e._trackId);
|
|
176
|
+
const s = e.deps[e._depsLength];
|
|
177
|
+
s !== t ? (s && At(s, e), e.deps[e._depsLength++] = t) : e._depsLength++, process.env.NODE_ENV !== "production" && ((r = e.onTrack) == null || r.call(e, I({ effect: e }, n)));
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
const Be = [];
|
|
181
|
+
function Ut(e, t, n) {
|
|
182
|
+
var r;
|
|
183
|
+
tt();
|
|
184
|
+
for (const s of e.keys()) {
|
|
185
|
+
let o;
|
|
186
|
+
s._dirtyLevel < t && (o != null ? o : o = e.get(s) === s._trackId) && (s._shouldSchedule || (s._shouldSchedule = s._dirtyLevel === 0), s._dirtyLevel = t), s._shouldSchedule && (o != null ? o : o = e.get(s) === s._trackId) && (process.env.NODE_ENV !== "production" && ((r = s.onTrigger) == null || r.call(s, I({ effect: s }, n))), s.trigger(), (!s._runnings || s.allowRecurse) && s._dirtyLevel !== 2 && (s._shouldSchedule = !1, s.scheduler && Be.push(s.scheduler)));
|
|
187
|
+
}
|
|
188
|
+
nt();
|
|
189
|
+
}
|
|
190
|
+
const Ft = (e, t) => {
|
|
191
|
+
const n = /* @__PURE__ */ new Map();
|
|
192
|
+
return n.cleanup = e, n.computed = t, n;
|
|
193
|
+
}, qe = /* @__PURE__ */ new WeakMap(), Y = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), Je = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
|
|
194
|
+
function v(e, t, n) {
|
|
195
|
+
if (U && J) {
|
|
196
|
+
let r = qe.get(e);
|
|
197
|
+
r || qe.set(e, r = /* @__PURE__ */ new Map());
|
|
198
|
+
let s = r.get(n);
|
|
199
|
+
s || r.set(n, s = Ft(() => r.delete(n))), jt(
|
|
200
|
+
J,
|
|
201
|
+
s,
|
|
202
|
+
process.env.NODE_ENV !== "production" ? {
|
|
203
|
+
target: e,
|
|
204
|
+
type: t,
|
|
205
|
+
key: n
|
|
206
|
+
} : void 0
|
|
207
|
+
);
|
|
208
|
+
}
|
|
189
209
|
}
|
|
190
|
-
function
|
|
191
|
-
const i =
|
|
210
|
+
function F(e, t, n, r, s, o) {
|
|
211
|
+
const i = qe.get(e);
|
|
192
212
|
if (!i)
|
|
193
213
|
return;
|
|
194
214
|
let c = [];
|
|
195
215
|
if (t === "clear")
|
|
196
216
|
c = [...i.values()];
|
|
197
|
-
else if (n === "length" &&
|
|
198
|
-
const
|
|
199
|
-
i.forEach((
|
|
200
|
-
(
|
|
217
|
+
else if (n === "length" && m(e)) {
|
|
218
|
+
const a = Number(r);
|
|
219
|
+
i.forEach((u, h) => {
|
|
220
|
+
(h === "length" || !ae(h) && h >= a) && c.push(u);
|
|
201
221
|
});
|
|
202
222
|
} else
|
|
203
223
|
switch (n !== void 0 && c.push(i.get(n)), t) {
|
|
204
224
|
case "add":
|
|
205
|
-
|
|
225
|
+
m(e) ? Ze(n) && c.push(i.get("length")) : (c.push(i.get(Y)), k(e) && c.push(i.get(Je)));
|
|
206
226
|
break;
|
|
207
227
|
case "delete":
|
|
208
|
-
|
|
228
|
+
m(e) || (c.push(i.get(Y)), k(e) && c.push(i.get(Je)));
|
|
209
229
|
break;
|
|
210
230
|
case "set":
|
|
211
|
-
k(e) && c.push(i.get(
|
|
231
|
+
k(e) && c.push(i.get(Y));
|
|
212
232
|
break;
|
|
213
233
|
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
o.computed || dt(o, t);
|
|
230
|
-
}
|
|
231
|
-
function dt(e, t) {
|
|
232
|
-
(e !== N || e.allowRecurse) && (process.env.NODE_ENV !== "production" && e.onTrigger && e.onTrigger(x({ effect: e }, t)), e.scheduler ? e.scheduler() : e.run());
|
|
234
|
+
tt();
|
|
235
|
+
for (const a of c)
|
|
236
|
+
a && Ut(
|
|
237
|
+
a,
|
|
238
|
+
4,
|
|
239
|
+
process.env.NODE_ENV !== "production" ? {
|
|
240
|
+
target: e,
|
|
241
|
+
type: t,
|
|
242
|
+
key: n,
|
|
243
|
+
newValue: r,
|
|
244
|
+
oldValue: s,
|
|
245
|
+
oldTarget: o
|
|
246
|
+
} : void 0
|
|
247
|
+
);
|
|
248
|
+
nt();
|
|
233
249
|
}
|
|
234
|
-
const
|
|
235
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(
|
|
236
|
-
),
|
|
250
|
+
const zn = /* @__PURE__ */ Rn("__proto__,__v_isRef,__isVue"), Ht = new Set(
|
|
251
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ae)
|
|
252
|
+
), wt = /* @__PURE__ */ Wn();
|
|
237
253
|
function Wn() {
|
|
238
254
|
const e = {};
|
|
239
255
|
return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
|
|
240
256
|
e[t] = function(...n) {
|
|
241
|
-
const
|
|
242
|
-
for (let
|
|
243
|
-
|
|
244
|
-
const
|
|
245
|
-
return
|
|
257
|
+
const r = f(this);
|
|
258
|
+
for (let o = 0, i = this.length; o < i; o++)
|
|
259
|
+
v(r, "get", o + "");
|
|
260
|
+
const s = r[t](...n);
|
|
261
|
+
return s === -1 || s === !1 ? r[t](...n.map(f)) : s;
|
|
246
262
|
};
|
|
247
263
|
}), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => {
|
|
248
264
|
e[t] = function(...n) {
|
|
249
|
-
|
|
250
|
-
const
|
|
251
|
-
return
|
|
265
|
+
ue(), tt();
|
|
266
|
+
const r = f(this)[t].apply(this, n);
|
|
267
|
+
return nt(), fe(), r;
|
|
252
268
|
};
|
|
253
269
|
}), e;
|
|
254
270
|
}
|
|
255
271
|
function Bn(e) {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
272
|
+
ae(e) || (e = String(e));
|
|
273
|
+
const t = f(this);
|
|
274
|
+
return v(t, "has", e), t.hasOwnProperty(e);
|
|
275
|
+
}
|
|
276
|
+
class Kt {
|
|
277
|
+
constructor(t = !1, n = !1) {
|
|
278
|
+
this._isReadonly = t, this._isShallow = n;
|
|
279
|
+
}
|
|
280
|
+
get(t, n, r) {
|
|
281
|
+
const s = this._isReadonly, o = this._isShallow;
|
|
282
|
+
if (n === "__v_isReactive")
|
|
283
|
+
return !s;
|
|
284
|
+
if (n === "__v_isReadonly")
|
|
285
|
+
return s;
|
|
286
|
+
if (n === "__v_isShallow")
|
|
268
287
|
return o;
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
288
|
+
if (n === "__v_raw")
|
|
289
|
+
return r === (s ? o ? Jt : qt : o ? sr : Bt).get(t) || // receiver is not the reactive proxy, but has the same prototype
|
|
290
|
+
// this means the receiver is a user proxy of the reactive proxy
|
|
291
|
+
Object.getPrototypeOf(t) === Object.getPrototypeOf(r) ? t : void 0;
|
|
292
|
+
const i = m(t);
|
|
293
|
+
if (!s) {
|
|
294
|
+
if (i && w(wt, n))
|
|
295
|
+
return Reflect.get(wt, n, r);
|
|
296
|
+
if (n === "hasOwnProperty")
|
|
274
297
|
return Bn;
|
|
275
298
|
}
|
|
276
|
-
const c = Reflect.get(
|
|
277
|
-
return (
|
|
278
|
-
}
|
|
299
|
+
const c = Reflect.get(t, n, r);
|
|
300
|
+
return (ae(n) ? Ht.has(n) : zn(n)) || (s || v(t, "get", n), o) ? c : R(c) ? i && Ze(n) ? c : c.value : b(c) ? s ? Gt(c) : Yt(c) : c;
|
|
301
|
+
}
|
|
279
302
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
if (!
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
303
|
+
class qn extends Kt {
|
|
304
|
+
constructor(t = !1) {
|
|
305
|
+
super(!1, t);
|
|
306
|
+
}
|
|
307
|
+
set(t, n, r, s) {
|
|
308
|
+
let o = t[n];
|
|
309
|
+
if (!this._isShallow) {
|
|
310
|
+
const a = $(o);
|
|
311
|
+
if (!T(r) && !$(r) && (o = f(o), r = f(r)), !m(t) && R(o) && !R(r))
|
|
312
|
+
return a ? !1 : (o.value = r, !0);
|
|
313
|
+
}
|
|
314
|
+
const i = m(t) && Ze(n) ? Number(n) < t.length : w(t, n), c = Reflect.set(t, n, r, s);
|
|
315
|
+
return t === f(s) && (i ? H(r, o) && F(t, "set", n, r, o) : F(t, "add", n, r)), c;
|
|
316
|
+
}
|
|
317
|
+
deleteProperty(t, n) {
|
|
318
|
+
const r = w(t, n), s = t[n], o = Reflect.deleteProperty(t, n);
|
|
319
|
+
return o && r && F(t, "delete", n, void 0, s), o;
|
|
320
|
+
}
|
|
321
|
+
has(t, n) {
|
|
322
|
+
const r = Reflect.has(t, n);
|
|
323
|
+
return (!ae(n) || !Ht.has(n)) && v(t, "has", n), r;
|
|
324
|
+
}
|
|
325
|
+
ownKeys(t) {
|
|
326
|
+
return v(
|
|
327
|
+
t,
|
|
328
|
+
"iterate",
|
|
329
|
+
m(t) ? "length" : Y
|
|
330
|
+
), Reflect.ownKeys(t);
|
|
331
|
+
}
|
|
291
332
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
function Yn(e) {
|
|
301
|
-
return y(e, "iterate", h(e) ? "length" : q), Reflect.ownKeys(e);
|
|
302
|
-
}
|
|
303
|
-
const Qn = {
|
|
304
|
-
get: Kn,
|
|
305
|
-
set: qn,
|
|
306
|
-
deleteProperty: Jn,
|
|
307
|
-
has: Xn,
|
|
308
|
-
ownKeys: Yn
|
|
309
|
-
}, Ut = {
|
|
310
|
-
get: Ln,
|
|
311
|
-
set(e, t) {
|
|
312
|
-
return process.env.NODE_ENV !== "production" && ft(
|
|
313
|
-
`Set operation on key "${String(t)}" failed: target is readonly.`,
|
|
314
|
-
e
|
|
315
|
-
), !0;
|
|
316
|
-
},
|
|
317
|
-
deleteProperty(e, t) {
|
|
318
|
-
return process.env.NODE_ENV !== "production" && ft(
|
|
319
|
-
`Delete operation on key "${String(t)}" failed: target is readonly.`,
|
|
320
|
-
e
|
|
333
|
+
class zt extends Kt {
|
|
334
|
+
constructor(t = !1) {
|
|
335
|
+
super(!0, t);
|
|
336
|
+
}
|
|
337
|
+
set(t, n) {
|
|
338
|
+
return process.env.NODE_ENV !== "production" && ne(
|
|
339
|
+
`Set operation on key "${String(n)}" failed: target is readonly.`,
|
|
340
|
+
t
|
|
321
341
|
), !0;
|
|
322
342
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
343
|
+
deleteProperty(t, n) {
|
|
344
|
+
return process.env.NODE_ENV !== "production" && ne(
|
|
345
|
+
`Delete operation on key "${String(n)}" failed: target is readonly.`,
|
|
346
|
+
t
|
|
347
|
+
), !0;
|
|
328
348
|
}
|
|
329
|
-
|
|
330
|
-
|
|
349
|
+
}
|
|
350
|
+
const Jn = /* @__PURE__ */ new qn(), Yn = /* @__PURE__ */ new zt(), Gn = /* @__PURE__ */ new zt(!0), rt = (e) => e, De = (e) => Reflect.getPrototypeOf(e);
|
|
351
|
+
function he(e, t, n = !1, r = !1) {
|
|
331
352
|
e = e.__v_raw;
|
|
332
|
-
const
|
|
333
|
-
n || (t
|
|
334
|
-
const { has: i } =
|
|
335
|
-
if (i.call(
|
|
353
|
+
const s = f(e), o = f(t);
|
|
354
|
+
n || (H(t, o) && v(s, "get", t), v(s, "get", o));
|
|
355
|
+
const { has: i } = De(s), c = r ? rt : n ? it : ce;
|
|
356
|
+
if (i.call(s, t))
|
|
336
357
|
return c(e.get(t));
|
|
337
|
-
if (i.call(
|
|
338
|
-
return c(e.get(
|
|
339
|
-
e !==
|
|
340
|
-
}
|
|
341
|
-
function
|
|
342
|
-
const n = this.__v_raw,
|
|
343
|
-
return t || (e
|
|
344
|
-
}
|
|
345
|
-
function
|
|
346
|
-
return e = e.__v_raw, !t &&
|
|
358
|
+
if (i.call(s, o))
|
|
359
|
+
return c(e.get(o));
|
|
360
|
+
e !== s && e.get(t);
|
|
361
|
+
}
|
|
362
|
+
function _e(e, t = !1) {
|
|
363
|
+
const n = this.__v_raw, r = f(n), s = f(e);
|
|
364
|
+
return t || (H(e, s) && v(r, "has", e), v(r, "has", s)), e === s ? n.has(e) : n.has(e) || n.has(s);
|
|
365
|
+
}
|
|
366
|
+
function me(e, t = !1) {
|
|
367
|
+
return e = e.__v_raw, !t && v(f(e), "iterate", Y), Reflect.get(e, "size", e);
|
|
368
|
+
}
|
|
369
|
+
function Et(e, t = !1) {
|
|
370
|
+
!t && !T(e) && !$(e) && (e = f(e));
|
|
371
|
+
const n = f(this);
|
|
372
|
+
return De(n).has.call(n, e) || (n.add(e), F(n, "add", e, e)), this;
|
|
373
|
+
}
|
|
374
|
+
function Ot(e, t, n = !1) {
|
|
375
|
+
!n && !T(t) && !$(t) && (t = f(t));
|
|
376
|
+
const r = f(this), { has: s, get: o } = De(r);
|
|
377
|
+
let i = s.call(r, e);
|
|
378
|
+
i ? process.env.NODE_ENV !== "production" && Wt(r, s, e) : (e = f(e), i = s.call(r, e));
|
|
379
|
+
const c = o.call(r, e);
|
|
380
|
+
return r.set(e, t), i ? H(t, c) && F(r, "set", e, t, c) : F(r, "add", e, t), this;
|
|
381
|
+
}
|
|
382
|
+
function Nt(e) {
|
|
383
|
+
const t = f(this), { has: n, get: r } = De(t);
|
|
384
|
+
let s = n.call(t, e);
|
|
385
|
+
s ? process.env.NODE_ENV !== "production" && Wt(t, n, e) : (e = f(e), s = n.call(t, e));
|
|
386
|
+
const o = r ? r.call(t, e) : void 0, i = t.delete(e);
|
|
387
|
+
return s && F(t, "delete", e, void 0, o), i;
|
|
347
388
|
}
|
|
348
|
-
function
|
|
349
|
-
e =
|
|
350
|
-
|
|
351
|
-
return Pe(t).has.call(t, e) || (t.add(e), K(t, "add", e, e)), this;
|
|
352
|
-
}
|
|
353
|
-
function _t(e, t) {
|
|
354
|
-
t = p(t);
|
|
355
|
-
const n = p(this), { has: o, get: r } = Pe(n);
|
|
356
|
-
let s = o.call(n, e);
|
|
357
|
-
s ? process.env.NODE_ENV !== "production" && Ft(n, o, e) : (e = p(e), s = o.call(n, e));
|
|
358
|
-
const i = r.call(n, e);
|
|
359
|
-
return n.set(e, t), s ? ie(t, i) && K(n, "set", e, t, i) : K(n, "add", e, t), this;
|
|
389
|
+
function vt() {
|
|
390
|
+
const e = f(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? k(e) ? new Map(e) : new Set(e) : void 0, r = e.clear();
|
|
391
|
+
return t && F(e, "clear", void 0, void 0, n), r;
|
|
360
392
|
}
|
|
361
|
-
function
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
const s = o ? o.call(t, e) : void 0, i = t.delete(e);
|
|
366
|
-
return r && K(t, "delete", e, void 0, s), i;
|
|
367
|
-
}
|
|
368
|
-
function wt() {
|
|
369
|
-
const e = p(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? k(e) ? new Map(e) : new Set(e) : void 0, o = e.clear();
|
|
370
|
-
return t && K(e, "clear", void 0, void 0, n), o;
|
|
371
|
-
}
|
|
372
|
-
function me(e, t) {
|
|
373
|
-
return function(o, r) {
|
|
374
|
-
const s = this, i = s.__v_raw, c = p(i), l = t ? ke : e ? nt : ae;
|
|
375
|
-
return !e && y(c, "iterate", q), i.forEach((u, d) => o.call(r, l(u), l(d), s));
|
|
393
|
+
function ge(e, t) {
|
|
394
|
+
return function(r, s) {
|
|
395
|
+
const o = this, i = o.__v_raw, c = f(i), a = t ? rt : e ? it : ce;
|
|
396
|
+
return !e && v(c, "iterate", Y), i.forEach((u, h) => r.call(s, a(u), a(h), o));
|
|
376
397
|
};
|
|
377
398
|
}
|
|
378
|
-
function
|
|
379
|
-
return function(...
|
|
380
|
-
const
|
|
381
|
-
return !t &&
|
|
382
|
-
|
|
399
|
+
function we(e, t, n) {
|
|
400
|
+
return function(...r) {
|
|
401
|
+
const s = this.__v_raw, o = f(s), i = k(o), c = e === "entries" || e === Symbol.iterator && i, a = e === "keys" && i, u = s[e](...r), h = n ? rt : t ? it : ce;
|
|
402
|
+
return !t && v(
|
|
403
|
+
o,
|
|
383
404
|
"iterate",
|
|
384
|
-
|
|
405
|
+
a ? Je : Y
|
|
385
406
|
), {
|
|
386
407
|
// iterator protocol
|
|
387
408
|
next() {
|
|
388
|
-
const { value:
|
|
389
|
-
return
|
|
390
|
-
value: c ? [
|
|
391
|
-
done:
|
|
409
|
+
const { value: l, done: d } = u.next();
|
|
410
|
+
return d ? { value: l, done: d } : {
|
|
411
|
+
value: c ? [h(l[0]), h(l[1])] : h(l),
|
|
412
|
+
done: d
|
|
392
413
|
};
|
|
393
414
|
},
|
|
394
415
|
// iterable protocol
|
|
@@ -398,91 +419,88 @@ function _e(e, t, n) {
|
|
|
398
419
|
};
|
|
399
420
|
};
|
|
400
421
|
}
|
|
401
|
-
function
|
|
422
|
+
function A(e) {
|
|
402
423
|
return function(...t) {
|
|
403
424
|
if (process.env.NODE_ENV !== "production") {
|
|
404
425
|
const n = t[0] ? `on key "${t[0]}" ` : "";
|
|
405
|
-
|
|
406
|
-
`${
|
|
407
|
-
|
|
426
|
+
ne(
|
|
427
|
+
`${Dt(e)} operation ${n}failed: target is readonly.`,
|
|
428
|
+
f(this)
|
|
408
429
|
);
|
|
409
430
|
}
|
|
410
|
-
return e === "delete" ? !1 : this;
|
|
431
|
+
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
411
432
|
};
|
|
412
433
|
}
|
|
413
|
-
function
|
|
434
|
+
function Xn() {
|
|
414
435
|
const e = {
|
|
415
|
-
get(
|
|
416
|
-
return
|
|
436
|
+
get(o) {
|
|
437
|
+
return he(this, o);
|
|
417
438
|
},
|
|
418
439
|
get size() {
|
|
419
|
-
return
|
|
440
|
+
return me(this);
|
|
420
441
|
},
|
|
421
|
-
has:
|
|
422
|
-
add:
|
|
423
|
-
set:
|
|
424
|
-
delete:
|
|
425
|
-
clear:
|
|
426
|
-
forEach:
|
|
442
|
+
has: _e,
|
|
443
|
+
add: Et,
|
|
444
|
+
set: Ot,
|
|
445
|
+
delete: Nt,
|
|
446
|
+
clear: vt,
|
|
447
|
+
forEach: ge(!1, !1)
|
|
427
448
|
}, t = {
|
|
428
|
-
get(
|
|
429
|
-
return
|
|
449
|
+
get(o) {
|
|
450
|
+
return he(this, o, !1, !0);
|
|
430
451
|
},
|
|
431
452
|
get size() {
|
|
432
|
-
return
|
|
453
|
+
return me(this);
|
|
454
|
+
},
|
|
455
|
+
has: _e,
|
|
456
|
+
add(o) {
|
|
457
|
+
return Et.call(this, o, !0);
|
|
433
458
|
},
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
delete:
|
|
438
|
-
clear:
|
|
439
|
-
forEach:
|
|
459
|
+
set(o, i) {
|
|
460
|
+
return Ot.call(this, o, i, !0);
|
|
461
|
+
},
|
|
462
|
+
delete: Nt,
|
|
463
|
+
clear: vt,
|
|
464
|
+
forEach: ge(!1, !0)
|
|
440
465
|
}, n = {
|
|
441
|
-
get(
|
|
442
|
-
return
|
|
466
|
+
get(o) {
|
|
467
|
+
return he(this, o, !0);
|
|
443
468
|
},
|
|
444
469
|
get size() {
|
|
445
|
-
return
|
|
470
|
+
return me(this, !0);
|
|
446
471
|
},
|
|
447
|
-
has(
|
|
448
|
-
return
|
|
472
|
+
has(o) {
|
|
473
|
+
return _e.call(this, o, !0);
|
|
449
474
|
},
|
|
450
|
-
add:
|
|
451
|
-
set:
|
|
452
|
-
delete:
|
|
453
|
-
clear:
|
|
454
|
-
forEach:
|
|
455
|
-
},
|
|
456
|
-
get(
|
|
457
|
-
return
|
|
475
|
+
add: A("add"),
|
|
476
|
+
set: A("set"),
|
|
477
|
+
delete: A("delete"),
|
|
478
|
+
clear: A("clear"),
|
|
479
|
+
forEach: ge(!0, !1)
|
|
480
|
+
}, r = {
|
|
481
|
+
get(o) {
|
|
482
|
+
return he(this, o, !0, !0);
|
|
458
483
|
},
|
|
459
484
|
get size() {
|
|
460
|
-
return
|
|
485
|
+
return me(this, !0);
|
|
461
486
|
},
|
|
462
|
-
has(
|
|
463
|
-
return
|
|
487
|
+
has(o) {
|
|
488
|
+
return _e.call(this, o, !0);
|
|
464
489
|
},
|
|
465
|
-
add:
|
|
466
|
-
set:
|
|
467
|
-
delete:
|
|
468
|
-
clear:
|
|
469
|
-
forEach:
|
|
490
|
+
add: A("add"),
|
|
491
|
+
set: A("set"),
|
|
492
|
+
delete: A("delete"),
|
|
493
|
+
clear: A("clear"),
|
|
494
|
+
forEach: ge(!0, !0)
|
|
470
495
|
};
|
|
471
|
-
return [
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
!1
|
|
480
|
-
), t[s] = _e(
|
|
481
|
-
s,
|
|
482
|
-
!1,
|
|
483
|
-
!0
|
|
484
|
-
), o[s] = _e(
|
|
485
|
-
s,
|
|
496
|
+
return [
|
|
497
|
+
"keys",
|
|
498
|
+
"values",
|
|
499
|
+
"entries",
|
|
500
|
+
Symbol.iterator
|
|
501
|
+
].forEach((o) => {
|
|
502
|
+
e[o] = we(o, !1, !1), n[o] = we(o, !0, !1), t[o] = we(o, !1, !0), r[o] = we(
|
|
503
|
+
o,
|
|
486
504
|
!0,
|
|
487
505
|
!0
|
|
488
506
|
);
|
|
@@ -490,41 +508,41 @@ function kn() {
|
|
|
490
508
|
e,
|
|
491
509
|
n,
|
|
492
510
|
t,
|
|
493
|
-
|
|
511
|
+
r
|
|
494
512
|
];
|
|
495
513
|
}
|
|
496
514
|
const [
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
] = /* @__PURE__ */
|
|
502
|
-
function
|
|
503
|
-
const n = t ? e ?
|
|
504
|
-
return (
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
515
|
+
Qn,
|
|
516
|
+
Zn,
|
|
517
|
+
kn,
|
|
518
|
+
er
|
|
519
|
+
] = /* @__PURE__ */ Xn();
|
|
520
|
+
function st(e, t) {
|
|
521
|
+
const n = t ? e ? er : kn : e ? Zn : Qn;
|
|
522
|
+
return (r, s, o) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? r : Reflect.get(
|
|
523
|
+
w(n, s) && s in r ? n : r,
|
|
524
|
+
s,
|
|
525
|
+
o
|
|
508
526
|
);
|
|
509
527
|
}
|
|
510
|
-
const
|
|
511
|
-
get: /* @__PURE__ */
|
|
512
|
-
},
|
|
513
|
-
get: /* @__PURE__ */
|
|
514
|
-
},
|
|
515
|
-
get: /* @__PURE__ */
|
|
528
|
+
const tr = {
|
|
529
|
+
get: /* @__PURE__ */ st(!1, !1)
|
|
530
|
+
}, nr = {
|
|
531
|
+
get: /* @__PURE__ */ st(!0, !1)
|
|
532
|
+
}, rr = {
|
|
533
|
+
get: /* @__PURE__ */ st(!0, !0)
|
|
516
534
|
};
|
|
517
|
-
function
|
|
518
|
-
const
|
|
519
|
-
if (
|
|
520
|
-
const
|
|
521
|
-
|
|
522
|
-
`Reactive ${
|
|
535
|
+
function Wt(e, t, n) {
|
|
536
|
+
const r = f(n);
|
|
537
|
+
if (r !== n && t.call(e, r)) {
|
|
538
|
+
const s = Vt(e);
|
|
539
|
+
ne(
|
|
540
|
+
`Reactive ${s} contains both the raw and reactive versions of the same object${s === "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.`
|
|
523
541
|
);
|
|
524
542
|
}
|
|
525
543
|
}
|
|
526
|
-
const
|
|
527
|
-
function
|
|
544
|
+
const Bt = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap();
|
|
545
|
+
function or(e) {
|
|
528
546
|
switch (e) {
|
|
529
547
|
case "Object":
|
|
530
548
|
case "Array":
|
|
@@ -538,160 +556,218 @@ function ar(e) {
|
|
|
538
556
|
return 0;
|
|
539
557
|
}
|
|
540
558
|
}
|
|
541
|
-
function
|
|
542
|
-
return e.__v_skip || !Object.isExtensible(e) ? 0 :
|
|
559
|
+
function ir(e) {
|
|
560
|
+
return e.__v_skip || !Object.isExtensible(e) ? 0 : or(Vt(e));
|
|
543
561
|
}
|
|
544
|
-
function
|
|
545
|
-
return
|
|
562
|
+
function Yt(e) {
|
|
563
|
+
return $(e) ? e : ot(
|
|
546
564
|
e,
|
|
547
565
|
!1,
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
566
|
+
Jn,
|
|
567
|
+
tr,
|
|
568
|
+
Bt
|
|
551
569
|
);
|
|
552
570
|
}
|
|
553
|
-
function
|
|
554
|
-
return
|
|
571
|
+
function Gt(e) {
|
|
572
|
+
return ot(
|
|
555
573
|
e,
|
|
556
574
|
!0,
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
575
|
+
Yn,
|
|
576
|
+
nr,
|
|
577
|
+
qt
|
|
560
578
|
);
|
|
561
579
|
}
|
|
562
|
-
function
|
|
563
|
-
return
|
|
580
|
+
function Ee(e) {
|
|
581
|
+
return ot(
|
|
564
582
|
e,
|
|
565
583
|
!0,
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
584
|
+
Gn,
|
|
585
|
+
rr,
|
|
586
|
+
Jt
|
|
569
587
|
);
|
|
570
588
|
}
|
|
571
|
-
function
|
|
572
|
-
if (!
|
|
573
|
-
return process.env.NODE_ENV !== "production" &&
|
|
589
|
+
function ot(e, t, n, r, s) {
|
|
590
|
+
if (!b(e))
|
|
591
|
+
return process.env.NODE_ENV !== "production" && ne(
|
|
592
|
+
`value cannot be made ${t ? "readonly" : "reactive"}: ${String(
|
|
593
|
+
e
|
|
594
|
+
)}`
|
|
595
|
+
), e;
|
|
574
596
|
if (e.__v_raw && !(t && e.__v_isReactive))
|
|
575
597
|
return e;
|
|
576
|
-
const
|
|
577
|
-
if (
|
|
578
|
-
return
|
|
579
|
-
const i =
|
|
598
|
+
const o = s.get(e);
|
|
599
|
+
if (o)
|
|
600
|
+
return o;
|
|
601
|
+
const i = ir(e);
|
|
580
602
|
if (i === 0)
|
|
581
603
|
return e;
|
|
582
604
|
const c = new Proxy(
|
|
583
605
|
e,
|
|
584
|
-
i === 2 ?
|
|
606
|
+
i === 2 ? r : n
|
|
585
607
|
);
|
|
586
|
-
return
|
|
608
|
+
return s.set(e, c), c;
|
|
587
609
|
}
|
|
588
|
-
function
|
|
589
|
-
return
|
|
610
|
+
function ee(e) {
|
|
611
|
+
return $(e) ? ee(e.__v_raw) : !!(e && e.__v_isReactive);
|
|
590
612
|
}
|
|
591
|
-
function
|
|
613
|
+
function $(e) {
|
|
592
614
|
return !!(e && e.__v_isReadonly);
|
|
593
615
|
}
|
|
594
|
-
function
|
|
616
|
+
function T(e) {
|
|
595
617
|
return !!(e && e.__v_isShallow);
|
|
596
618
|
}
|
|
597
|
-
function
|
|
598
|
-
return
|
|
619
|
+
function Ye(e) {
|
|
620
|
+
return e ? !!e.__v_raw : !1;
|
|
599
621
|
}
|
|
600
|
-
function
|
|
622
|
+
function f(e) {
|
|
601
623
|
const t = e && e.__v_raw;
|
|
602
|
-
return t ?
|
|
603
|
-
}
|
|
604
|
-
function
|
|
605
|
-
return
|
|
606
|
-
}
|
|
607
|
-
const
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
|
|
624
|
+
return t ? f(t) : e;
|
|
625
|
+
}
|
|
626
|
+
function cr(e) {
|
|
627
|
+
return Object.isExtensible(e) && $n(e, "__v_skip", !0), e;
|
|
628
|
+
}
|
|
629
|
+
const ce = (e) => b(e) ? Yt(e) : e, it = (e) => b(e) ? Gt(e) : e, lr = "Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";
|
|
630
|
+
class ar {
|
|
631
|
+
constructor(t, n, r, s) {
|
|
632
|
+
this.getter = t, this._setter = n, this.dep = void 0, this.__v_isRef = !0, this.__v_isReadonly = !1, this.effect = new $t(
|
|
633
|
+
() => t(this._value),
|
|
634
|
+
() => ve(
|
|
635
|
+
this,
|
|
636
|
+
this.effect._dirtyLevel === 2 ? 2 : 3
|
|
637
|
+
)
|
|
638
|
+
), this.effect.computed = this, this.effect.active = this._cacheable = !s, this.__v_isReadonly = r;
|
|
639
|
+
}
|
|
640
|
+
get value() {
|
|
641
|
+
const t = f(this);
|
|
642
|
+
return (!t._cacheable || t.effect.dirty) && H(t._value, t._value = t.effect.run()) && ve(t, 4), Xt(t), t.effect._dirtyLevel >= 2 && (process.env.NODE_ENV !== "production" && this._warnRecursive && ne(lr, `
|
|
643
|
+
|
|
644
|
+
getter: `, this.getter), ve(t, 2)), t._value;
|
|
645
|
+
}
|
|
646
|
+
set value(t) {
|
|
647
|
+
this._setter(t);
|
|
648
|
+
}
|
|
649
|
+
// #region polyfill _dirty for backward compatibility third party code for Vue <= 3.3.x
|
|
650
|
+
get _dirty() {
|
|
651
|
+
return this.effect.dirty;
|
|
652
|
+
}
|
|
653
|
+
set _dirty(t) {
|
|
654
|
+
this.effect.dirty = t;
|
|
655
|
+
}
|
|
656
|
+
// #endregion
|
|
657
|
+
}
|
|
658
|
+
function Xt(e) {
|
|
659
|
+
var t;
|
|
660
|
+
U && J && (e = f(e), jt(
|
|
661
|
+
J,
|
|
662
|
+
(t = e.dep) != null ? t : e.dep = Ft(
|
|
663
|
+
() => e.dep = void 0,
|
|
664
|
+
e instanceof ar ? e : void 0
|
|
665
|
+
),
|
|
666
|
+
process.env.NODE_ENV !== "production" ? {
|
|
667
|
+
target: e,
|
|
668
|
+
type: "get",
|
|
669
|
+
key: "value"
|
|
670
|
+
} : void 0
|
|
671
|
+
));
|
|
672
|
+
}
|
|
673
|
+
function ve(e, t = 4, n, r) {
|
|
674
|
+
e = f(e);
|
|
675
|
+
const s = e.dep;
|
|
676
|
+
s && Ut(
|
|
677
|
+
s,
|
|
678
|
+
t,
|
|
679
|
+
process.env.NODE_ENV !== "production" ? {
|
|
680
|
+
target: e,
|
|
681
|
+
type: "set",
|
|
682
|
+
key: "value",
|
|
683
|
+
newValue: n,
|
|
684
|
+
oldValue: r
|
|
685
|
+
} : void 0
|
|
686
|
+
);
|
|
687
|
+
}
|
|
688
|
+
function R(e) {
|
|
626
689
|
return !!(e && e.__v_isRef === !0);
|
|
627
690
|
}
|
|
628
|
-
function
|
|
629
|
-
return
|
|
691
|
+
function Qt(e) {
|
|
692
|
+
return ur(e, !1);
|
|
630
693
|
}
|
|
631
|
-
function
|
|
632
|
-
return
|
|
694
|
+
function ur(e, t) {
|
|
695
|
+
return R(e) ? e : new fr(e, t);
|
|
633
696
|
}
|
|
634
|
-
class
|
|
697
|
+
class fr {
|
|
635
698
|
constructor(t, n) {
|
|
636
|
-
this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t :
|
|
699
|
+
this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : f(t), this._value = n ? t : ce(t);
|
|
637
700
|
}
|
|
638
701
|
get value() {
|
|
639
|
-
return
|
|
702
|
+
return Xt(this), this._value;
|
|
640
703
|
}
|
|
641
704
|
set value(t) {
|
|
642
|
-
const n = this.__v_isShallow ||
|
|
643
|
-
t = n ? t :
|
|
705
|
+
const n = this.__v_isShallow || T(t) || $(t);
|
|
706
|
+
if (t = n ? t : f(t), H(t, this._rawValue)) {
|
|
707
|
+
const r = this._rawValue;
|
|
708
|
+
this._rawValue = t, this._value = n ? t : ce(t), ve(this, 4, t, r);
|
|
709
|
+
}
|
|
644
710
|
}
|
|
645
711
|
}
|
|
646
|
-
function
|
|
647
|
-
return
|
|
712
|
+
function dr(e) {
|
|
713
|
+
return R(e) ? e.value : e;
|
|
648
714
|
}
|
|
649
|
-
const
|
|
650
|
-
get: (e, t, n) =>
|
|
651
|
-
set: (e, t, n,
|
|
652
|
-
const
|
|
653
|
-
return
|
|
715
|
+
const pr = {
|
|
716
|
+
get: (e, t, n) => dr(Reflect.get(e, t, n)),
|
|
717
|
+
set: (e, t, n, r) => {
|
|
718
|
+
const s = e[t];
|
|
719
|
+
return R(s) && !R(n) ? (s.value = n, !0) : Reflect.set(e, t, n, r);
|
|
654
720
|
}
|
|
655
721
|
};
|
|
656
|
-
function
|
|
657
|
-
return
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
722
|
+
function hr(e) {
|
|
723
|
+
return ee(e) ? e : new Proxy(e, pr);
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* @vue/runtime-core v3.4.38
|
|
727
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
728
|
+
* @license MIT
|
|
729
|
+
**/
|
|
730
|
+
const G = [];
|
|
731
|
+
function _r(e) {
|
|
732
|
+
G.push(e);
|
|
733
|
+
}
|
|
734
|
+
function mr() {
|
|
735
|
+
G.pop();
|
|
736
|
+
}
|
|
737
|
+
let Ue = !1;
|
|
738
|
+
function _(e, ...t) {
|
|
739
|
+
if (Ue)
|
|
668
740
|
return;
|
|
669
|
-
|
|
670
|
-
const n =
|
|
671
|
-
if (
|
|
741
|
+
Ue = !0, ue();
|
|
742
|
+
const n = G.length ? G[G.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = gr();
|
|
743
|
+
if (r)
|
|
672
744
|
X(
|
|
673
|
-
|
|
745
|
+
r,
|
|
674
746
|
n,
|
|
675
747
|
11,
|
|
676
748
|
[
|
|
677
|
-
|
|
749
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
750
|
+
e + t.map((o) => {
|
|
751
|
+
var i, c;
|
|
752
|
+
return (c = (i = o.toString) == null ? void 0 : i.call(o)) != null ? c : JSON.stringify(o);
|
|
753
|
+
}).join(""),
|
|
678
754
|
n && n.proxy,
|
|
679
|
-
|
|
680
|
-
({ vnode:
|
|
755
|
+
s.map(
|
|
756
|
+
({ vnode: o }) => `at <${gn(n, o.type)}>`
|
|
681
757
|
).join(`
|
|
682
758
|
`),
|
|
683
|
-
|
|
759
|
+
s
|
|
684
760
|
]
|
|
685
761
|
);
|
|
686
762
|
else {
|
|
687
|
-
const
|
|
688
|
-
|
|
689
|
-
`, ...
|
|
763
|
+
const o = [`[Vue warn]: ${e}`, ...t];
|
|
764
|
+
s.length && o.push(`
|
|
765
|
+
`, ...wr(s)), console.warn(...o);
|
|
690
766
|
}
|
|
691
|
-
|
|
767
|
+
fe(), Ue = !1;
|
|
692
768
|
}
|
|
693
|
-
function
|
|
694
|
-
let e =
|
|
769
|
+
function gr() {
|
|
770
|
+
let e = G[G.length - 1];
|
|
695
771
|
if (!e)
|
|
696
772
|
return [];
|
|
697
773
|
const t = [];
|
|
@@ -701,36 +777,36 @@ function Or() {
|
|
|
701
777
|
vnode: e,
|
|
702
778
|
recurseCount: 0
|
|
703
779
|
});
|
|
704
|
-
const
|
|
705
|
-
e =
|
|
780
|
+
const r = e.component && e.component.parent;
|
|
781
|
+
e = r && r.vnode;
|
|
706
782
|
}
|
|
707
783
|
return t;
|
|
708
784
|
}
|
|
709
|
-
function
|
|
785
|
+
function wr(e) {
|
|
710
786
|
const t = [];
|
|
711
|
-
return e.forEach((n,
|
|
712
|
-
t.push(...
|
|
713
|
-
`], ...
|
|
787
|
+
return e.forEach((n, r) => {
|
|
788
|
+
t.push(...r === 0 ? [] : [`
|
|
789
|
+
`], ...Er(n));
|
|
714
790
|
}), t;
|
|
715
791
|
}
|
|
716
|
-
function
|
|
717
|
-
const n = t > 0 ? `... (${t} recursive calls)` : "",
|
|
792
|
+
function Er({ vnode: e, recurseCount: t }) {
|
|
793
|
+
const n = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, s = ` at <${gn(
|
|
718
794
|
e.component,
|
|
719
795
|
e.type,
|
|
720
|
-
|
|
721
|
-
)}`,
|
|
722
|
-
return e.props ? [
|
|
796
|
+
r
|
|
797
|
+
)}`, o = ">" + n;
|
|
798
|
+
return e.props ? [s, ...Or(e.props), o] : [s + o];
|
|
723
799
|
}
|
|
724
|
-
function
|
|
800
|
+
function Or(e) {
|
|
725
801
|
const t = [], n = Object.keys(e);
|
|
726
|
-
return n.slice(0, 3).forEach((
|
|
727
|
-
t.push(...
|
|
802
|
+
return n.slice(0, 3).forEach((r) => {
|
|
803
|
+
t.push(...Zt(r, e[r]));
|
|
728
804
|
}), n.length > 3 && t.push(" ..."), t;
|
|
729
805
|
}
|
|
730
|
-
function
|
|
731
|
-
return
|
|
806
|
+
function Zt(e, t, n) {
|
|
807
|
+
return P(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : R(t) ? (t = Zt(e, f(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : E(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = f(t), n ? t : [`${e}=`, t]);
|
|
732
808
|
}
|
|
733
|
-
const
|
|
809
|
+
const ct = {
|
|
734
810
|
sp: "serverPrefetch hook",
|
|
735
811
|
bc: "beforeCreate hook",
|
|
736
812
|
c: "created hook",
|
|
@@ -745,127 +821,135 @@ const rt = {
|
|
|
745
821
|
ec: "errorCaptured hook",
|
|
746
822
|
rtc: "renderTracked hook",
|
|
747
823
|
rtg: "renderTriggered hook",
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
824
|
+
0: "setup function",
|
|
825
|
+
1: "render function",
|
|
826
|
+
2: "watcher getter",
|
|
827
|
+
3: "watcher callback",
|
|
828
|
+
4: "watcher cleanup function",
|
|
829
|
+
5: "native event handler",
|
|
830
|
+
6: "component event handler",
|
|
831
|
+
7: "vnode hook",
|
|
832
|
+
8: "directive hook",
|
|
833
|
+
9: "transition hook",
|
|
834
|
+
10: "app errorHandler",
|
|
835
|
+
11: "app warnHandler",
|
|
836
|
+
12: "ref function",
|
|
837
|
+
13: "async component loader",
|
|
838
|
+
14: "scheduler flush",
|
|
839
|
+
15: "component update"
|
|
763
840
|
};
|
|
764
|
-
function X(e, t, n,
|
|
765
|
-
let r;
|
|
841
|
+
function X(e, t, n, r) {
|
|
766
842
|
try {
|
|
767
|
-
r
|
|
843
|
+
return r ? e(...r) : e();
|
|
768
844
|
} catch (s) {
|
|
769
|
-
|
|
845
|
+
lt(s, t, n);
|
|
770
846
|
}
|
|
771
|
-
return r;
|
|
772
847
|
}
|
|
773
|
-
function
|
|
848
|
+
function oe(e, t, n, r) {
|
|
774
849
|
if (E(e)) {
|
|
775
|
-
const s = X(e, t, n,
|
|
776
|
-
return s &&
|
|
777
|
-
|
|
850
|
+
const s = X(e, t, n, r);
|
|
851
|
+
return s && Vn(s) && s.catch((o) => {
|
|
852
|
+
lt(o, t, n);
|
|
778
853
|
}), s;
|
|
779
854
|
}
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
855
|
+
if (m(e)) {
|
|
856
|
+
const s = [];
|
|
857
|
+
for (let o = 0; o < e.length; o++)
|
|
858
|
+
s.push(oe(e[o], t, n, r));
|
|
859
|
+
return s;
|
|
860
|
+
} else
|
|
861
|
+
process.env.NODE_ENV !== "production" && _(
|
|
862
|
+
`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
|
|
863
|
+
);
|
|
784
864
|
}
|
|
785
|
-
function
|
|
786
|
-
const
|
|
865
|
+
function lt(e, t, n, r = !0) {
|
|
866
|
+
const s = t ? t.vnode : null;
|
|
787
867
|
if (t) {
|
|
788
|
-
let
|
|
789
|
-
const i = t.proxy, c = process.env.NODE_ENV !== "production" ?
|
|
790
|
-
for (;
|
|
791
|
-
const u =
|
|
868
|
+
let o = t.parent;
|
|
869
|
+
const i = t.proxy, c = process.env.NODE_ENV !== "production" ? ct[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
870
|
+
for (; o; ) {
|
|
871
|
+
const u = o.ec;
|
|
792
872
|
if (u) {
|
|
793
|
-
for (let
|
|
794
|
-
if (u[
|
|
873
|
+
for (let h = 0; h < u.length; h++)
|
|
874
|
+
if (u[h](e, i, c) === !1)
|
|
795
875
|
return;
|
|
796
876
|
}
|
|
797
|
-
|
|
877
|
+
o = o.parent;
|
|
798
878
|
}
|
|
799
|
-
const
|
|
800
|
-
if (
|
|
801
|
-
X(
|
|
802
|
-
|
|
879
|
+
const a = t.appContext.config.errorHandler;
|
|
880
|
+
if (a) {
|
|
881
|
+
ue(), X(
|
|
882
|
+
a,
|
|
803
883
|
null,
|
|
804
884
|
10,
|
|
805
885
|
[e, i, c]
|
|
806
|
-
);
|
|
886
|
+
), fe();
|
|
807
887
|
return;
|
|
808
888
|
}
|
|
809
889
|
}
|
|
810
|
-
|
|
890
|
+
Nr(e, n, s, r);
|
|
811
891
|
}
|
|
812
|
-
function
|
|
892
|
+
function Nr(e, t, n, r = !0) {
|
|
813
893
|
if (process.env.NODE_ENV !== "production") {
|
|
814
|
-
const
|
|
815
|
-
if (n &&
|
|
894
|
+
const s = ct[t];
|
|
895
|
+
if (n && _r(n), _(`Unhandled error${s ? ` during execution of ${s}` : ""}`), n && mr(), r)
|
|
816
896
|
throw e;
|
|
817
897
|
console.error(e);
|
|
818
898
|
} else
|
|
819
899
|
console.error(e);
|
|
820
900
|
}
|
|
821
|
-
let
|
|
822
|
-
const
|
|
823
|
-
let
|
|
824
|
-
const
|
|
825
|
-
let
|
|
826
|
-
const
|
|
827
|
-
let
|
|
828
|
-
const
|
|
829
|
-
function
|
|
830
|
-
const t =
|
|
901
|
+
let Re = !1, Ge = !1;
|
|
902
|
+
const C = [];
|
|
903
|
+
let j = 0;
|
|
904
|
+
const te = [];
|
|
905
|
+
let L = null, B = 0;
|
|
906
|
+
const kt = /* @__PURE__ */ Promise.resolve();
|
|
907
|
+
let at = null;
|
|
908
|
+
const vr = 100;
|
|
909
|
+
function yr(e) {
|
|
910
|
+
const t = at || kt;
|
|
831
911
|
return e ? t.then(this ? e.bind(this) : e) : t;
|
|
832
912
|
}
|
|
833
|
-
function
|
|
834
|
-
let t =
|
|
913
|
+
function br(e) {
|
|
914
|
+
let t = j + 1, n = C.length;
|
|
835
915
|
for (; t < n; ) {
|
|
836
|
-
const
|
|
837
|
-
|
|
916
|
+
const r = t + n >>> 1, s = C[r], o = le(s);
|
|
917
|
+
o < e || o === e && s.pre ? t = r + 1 : n = r;
|
|
838
918
|
}
|
|
839
919
|
return t;
|
|
840
920
|
}
|
|
841
|
-
function
|
|
842
|
-
(!
|
|
921
|
+
function ut(e) {
|
|
922
|
+
(!C.length || !C.includes(
|
|
843
923
|
e,
|
|
844
|
-
|
|
845
|
-
)) && (e.id == null ?
|
|
924
|
+
Re && e.allowRecurse ? j + 1 : j
|
|
925
|
+
)) && (e.id == null ? C.push(e) : C.splice(br(e.id), 0, e), en());
|
|
846
926
|
}
|
|
847
|
-
function
|
|
848
|
-
!
|
|
927
|
+
function en() {
|
|
928
|
+
!Re && !Ge && (Ge = !0, at = kt.then(nn));
|
|
849
929
|
}
|
|
850
|
-
function
|
|
851
|
-
|
|
930
|
+
function tn(e) {
|
|
931
|
+
m(e) ? te.push(...e) : (!L || !L.includes(
|
|
852
932
|
e,
|
|
853
|
-
e.allowRecurse ?
|
|
854
|
-
)) &&
|
|
855
|
-
}
|
|
856
|
-
function
|
|
857
|
-
if (
|
|
858
|
-
const t = [...new Set(
|
|
859
|
-
|
|
860
|
-
|
|
933
|
+
e.allowRecurse ? B + 1 : B
|
|
934
|
+
)) && te.push(e), en();
|
|
935
|
+
}
|
|
936
|
+
function Sr(e) {
|
|
937
|
+
if (te.length) {
|
|
938
|
+
const t = [...new Set(te)].sort(
|
|
939
|
+
(n, r) => le(n) - le(r)
|
|
940
|
+
);
|
|
941
|
+
if (te.length = 0, L) {
|
|
942
|
+
L.push(...t);
|
|
861
943
|
return;
|
|
862
944
|
}
|
|
863
|
-
for (
|
|
864
|
-
|
|
865
|
-
|
|
945
|
+
for (L = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), B = 0; B < L.length; B++) {
|
|
946
|
+
const n = L[B];
|
|
947
|
+
process.env.NODE_ENV !== "production" && rn(e, n) || n.active !== !1 && n();
|
|
948
|
+
}
|
|
949
|
+
L = null, B = 0;
|
|
866
950
|
}
|
|
867
951
|
}
|
|
868
|
-
const le = (e) => e.id == null ? 1 / 0 : e.id,
|
|
952
|
+
const le = (e) => e.id == null ? 1 / 0 : e.id, Rr = (e, t) => {
|
|
869
953
|
const n = le(e) - le(t);
|
|
870
954
|
if (n === 0) {
|
|
871
955
|
if (e.pre && !t.pre)
|
|
@@ -875,412 +959,325 @@ const le = (e) => e.id == null ? 1 / 0 : e.id, Cr = (e, t) => {
|
|
|
875
959
|
}
|
|
876
960
|
return n;
|
|
877
961
|
};
|
|
878
|
-
function
|
|
879
|
-
|
|
880
|
-
const t = process.env.NODE_ENV !== "production" ? (n) =>
|
|
962
|
+
function nn(e) {
|
|
963
|
+
Ge = !1, Re = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), C.sort(Rr);
|
|
964
|
+
const t = process.env.NODE_ENV !== "production" ? (n) => rn(e, n) : Z;
|
|
881
965
|
try {
|
|
882
|
-
for (
|
|
883
|
-
const n =
|
|
966
|
+
for (j = 0; j < C.length; j++) {
|
|
967
|
+
const n = C[j];
|
|
884
968
|
if (n && n.active !== !1) {
|
|
885
969
|
if (process.env.NODE_ENV !== "production" && t(n))
|
|
886
970
|
continue;
|
|
887
|
-
X(
|
|
971
|
+
X(
|
|
972
|
+
n,
|
|
973
|
+
n.i,
|
|
974
|
+
n.i ? 15 : 14
|
|
975
|
+
);
|
|
888
976
|
}
|
|
889
977
|
}
|
|
890
978
|
} finally {
|
|
891
|
-
|
|
979
|
+
j = 0, C.length = 0, Sr(e), Re = !1, at = null, (C.length || te.length) && nn(e);
|
|
892
980
|
}
|
|
893
981
|
}
|
|
894
|
-
function
|
|
982
|
+
function rn(e, t) {
|
|
895
983
|
if (!e.has(t))
|
|
896
984
|
e.set(t, 1);
|
|
897
985
|
else {
|
|
898
986
|
const n = e.get(t);
|
|
899
|
-
if (n >
|
|
900
|
-
const
|
|
901
|
-
return
|
|
902
|
-
`Maximum recursive updates exceeded${
|
|
987
|
+
if (n > vr) {
|
|
988
|
+
const r = t.i, s = r && mn(r.type);
|
|
989
|
+
return lt(
|
|
990
|
+
`Maximum recursive updates exceeded${s ? ` in component <${s}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
|
|
991
|
+
null,
|
|
992
|
+
10
|
|
903
993
|
), !0;
|
|
904
994
|
} else
|
|
905
995
|
e.set(t, n + 1);
|
|
906
996
|
}
|
|
907
997
|
}
|
|
908
|
-
const
|
|
909
|
-
process.env.NODE_ENV !== "production" && (
|
|
910
|
-
createRecord:
|
|
911
|
-
rerender:
|
|
912
|
-
reload:
|
|
998
|
+
const Fe = /* @__PURE__ */ new Map();
|
|
999
|
+
process.env.NODE_ENV !== "production" && (Tt().__VUE_HMR_RUNTIME__ = {
|
|
1000
|
+
createRecord: He(Ir),
|
|
1001
|
+
rerender: He(Cr),
|
|
1002
|
+
reload: He(xr)
|
|
913
1003
|
});
|
|
914
|
-
const
|
|
915
|
-
function
|
|
916
|
-
return
|
|
917
|
-
initialDef:
|
|
1004
|
+
const Ie = /* @__PURE__ */ new Map();
|
|
1005
|
+
function Ir(e, t) {
|
|
1006
|
+
return Ie.has(e) ? !1 : (Ie.set(e, {
|
|
1007
|
+
initialDef: Ce(t),
|
|
918
1008
|
instances: /* @__PURE__ */ new Set()
|
|
919
1009
|
}), !0);
|
|
920
1010
|
}
|
|
921
|
-
function
|
|
922
|
-
return
|
|
1011
|
+
function Ce(e) {
|
|
1012
|
+
return wn(e) ? e.__vccOpts : e;
|
|
923
1013
|
}
|
|
924
|
-
function
|
|
925
|
-
const n =
|
|
926
|
-
n && (n.initialDef.render = t, [...n.instances].forEach((
|
|
927
|
-
t && (
|
|
1014
|
+
function Cr(e, t) {
|
|
1015
|
+
const n = Ie.get(e);
|
|
1016
|
+
n && (n.initialDef.render = t, [...n.instances].forEach((r) => {
|
|
1017
|
+
t && (r.render = t, Ce(r.type).render = t), r.renderCache = [], r.effect.dirty = !0, r.update();
|
|
928
1018
|
}));
|
|
929
1019
|
}
|
|
930
|
-
function
|
|
931
|
-
const n =
|
|
1020
|
+
function xr(e, t) {
|
|
1021
|
+
const n = Ie.get(e);
|
|
932
1022
|
if (!n)
|
|
933
1023
|
return;
|
|
934
|
-
t =
|
|
935
|
-
const
|
|
936
|
-
for (
|
|
937
|
-
const s =
|
|
938
|
-
|
|
1024
|
+
t = Ce(t), yt(n.initialDef, t);
|
|
1025
|
+
const r = [...n.instances];
|
|
1026
|
+
for (let s = 0; s < r.length; s++) {
|
|
1027
|
+
const o = r[s], i = Ce(o.type);
|
|
1028
|
+
let c = Fe.get(i);
|
|
1029
|
+
c || (i !== n.initialDef && yt(i, t), Fe.set(i, c = /* @__PURE__ */ new Set())), c.add(o), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (c.add(o), o.ceReload(t.styles), c.delete(o)) : o.parent ? (o.parent.effect.dirty = !0, ut(() => {
|
|
1030
|
+
o.parent.update(), c.delete(o);
|
|
1031
|
+
})) : o.appContext.reload ? o.appContext.reload() : typeof window != "undefined" ? window.location.reload() : console.warn(
|
|
939
1032
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
940
1033
|
);
|
|
941
1034
|
}
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
te.delete(
|
|
945
|
-
oe(r.type)
|
|
946
|
-
);
|
|
1035
|
+
tn(() => {
|
|
1036
|
+
Fe.clear();
|
|
947
1037
|
});
|
|
948
1038
|
}
|
|
949
|
-
function
|
|
950
|
-
|
|
1039
|
+
function yt(e, t) {
|
|
1040
|
+
I(e, t);
|
|
951
1041
|
for (const n in e)
|
|
952
1042
|
n !== "__file" && !(n in t) && delete e[n];
|
|
953
1043
|
}
|
|
954
|
-
function
|
|
1044
|
+
function He(e) {
|
|
955
1045
|
return (t, n) => {
|
|
956
1046
|
try {
|
|
957
1047
|
return e(t, n);
|
|
958
|
-
} catch (
|
|
959
|
-
console.error(
|
|
1048
|
+
} catch (r) {
|
|
1049
|
+
console.error(r), console.warn(
|
|
960
1050
|
"[HMR] Something went wrong during Vue component hot-reload. Full reload required."
|
|
961
1051
|
);
|
|
962
1052
|
}
|
|
963
1053
|
};
|
|
964
1054
|
}
|
|
965
|
-
let
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
w(
|
|
985
|
-
"Invalid watch source: ",
|
|
986
|
-
_,
|
|
987
|
-
"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
|
|
988
|
-
);
|
|
989
|
-
}, u = An() === ((c = z) == null ? void 0 : c.scope) ? z : null;
|
|
990
|
-
let d, a = !1, f = !1;
|
|
991
|
-
if (S(e) ? (d = () => e.value, a = be(e)) : G(e) ? (d = () => e, o = !0) : h(e) ? (f = !0, a = e.some((_) => G(_) || be(_)), d = () => e.map((_) => {
|
|
992
|
-
if (S(_))
|
|
993
|
-
return _.value;
|
|
994
|
-
if (G(_))
|
|
995
|
-
return Z(_);
|
|
996
|
-
if (E(_))
|
|
997
|
-
return X(_, u, 2);
|
|
998
|
-
process.env.NODE_ENV !== "production" && l(_);
|
|
999
|
-
})) : E(e) ? t ? d = () => X(e, u, 2) : d = () => {
|
|
1000
|
-
if (!(u && u.isUnmounted))
|
|
1001
|
-
return m && m(), Se(
|
|
1002
|
-
e,
|
|
1003
|
-
u,
|
|
1004
|
-
3,
|
|
1005
|
-
[R]
|
|
1006
|
-
);
|
|
1007
|
-
} : (d = xt, process.env.NODE_ENV !== "production" && l(e)), t && o) {
|
|
1008
|
-
const _ = d;
|
|
1009
|
-
d = () => Z(_());
|
|
1010
|
-
}
|
|
1011
|
-
let m, R = (_) => {
|
|
1012
|
-
m = C.onStop = () => {
|
|
1013
|
-
X(_, u, 4);
|
|
1014
|
-
};
|
|
1015
|
-
}, v = f ? new Array(e.length).fill(we) : we;
|
|
1016
|
-
const W = () => {
|
|
1017
|
-
if (C.active)
|
|
1018
|
-
if (t) {
|
|
1019
|
-
const _ = C.run();
|
|
1020
|
-
(o || a || (f ? _.some(
|
|
1021
|
-
(pn, dn) => ie(pn, v[dn])
|
|
1022
|
-
) : ie(_, v))) && (m && m(), Se(t, u, 3, [
|
|
1023
|
-
_,
|
|
1024
|
-
// pass undefined as the old value when it's changed for the first time
|
|
1025
|
-
v === we ? void 0 : f && v[0] === we ? [] : v,
|
|
1026
|
-
R
|
|
1027
|
-
]), v = _);
|
|
1028
|
-
} else
|
|
1029
|
-
C.run();
|
|
1030
|
-
};
|
|
1031
|
-
W.allowRecurse = !!t;
|
|
1032
|
-
let ue;
|
|
1033
|
-
r === "sync" ? ue = W : r === "post" ? ue = () => It(W, u && u.suspense) : (W.pre = !0, u && (W.id = u.uid), ue = () => st(W));
|
|
1034
|
-
const C = new jn(d, ue);
|
|
1035
|
-
return process.env.NODE_ENV !== "production" && (C.onTrack = s, C.onTrigger = i), t ? n ? W() : v = C.run() : r === "post" ? It(
|
|
1036
|
-
C.run.bind(C),
|
|
1037
|
-
u && u.suspense
|
|
1038
|
-
) : C.run(), () => {
|
|
1039
|
-
C.stop(), u && u.scope && Sn(u.scope.effects, C);
|
|
1040
|
-
};
|
|
1041
|
-
}
|
|
1042
|
-
function Ur(e, t, n) {
|
|
1043
|
-
const o = this.proxy, r = V(e) ? e.includes(".") ? Fr(o, e) : () => o[e] : e.bind(o, o);
|
|
1044
|
-
let s;
|
|
1045
|
-
E(t) ? s = t : (s = t.handler, n = t);
|
|
1046
|
-
const i = z;
|
|
1047
|
-
Be(this);
|
|
1048
|
-
const c = Zt(r, s.bind(o), n);
|
|
1049
|
-
return i ? Be(i) : cn(), c;
|
|
1050
|
-
}
|
|
1051
|
-
function Fr(e, t) {
|
|
1052
|
-
const n = t.split(".");
|
|
1053
|
-
return () => {
|
|
1054
|
-
let o = e;
|
|
1055
|
-
for (let r = 0; r < n.length && o; r++)
|
|
1056
|
-
o = o[n[r]];
|
|
1057
|
-
return o;
|
|
1058
|
-
};
|
|
1059
|
-
}
|
|
1060
|
-
function Z(e, t) {
|
|
1061
|
-
if (!I(e) || e.__v_skip || (t = t || /* @__PURE__ */ new Set(), t.has(e)))
|
|
1062
|
-
return e;
|
|
1063
|
-
if (t.add(e), S(e))
|
|
1064
|
-
Z(e.value, t);
|
|
1065
|
-
else if (h(e))
|
|
1066
|
-
for (let n = 0; n < e.length; n++)
|
|
1067
|
-
Z(e[n], t);
|
|
1068
|
-
else if (yn(e) || k(e))
|
|
1069
|
-
e.forEach((n) => {
|
|
1070
|
-
Z(n, t);
|
|
1071
|
-
});
|
|
1072
|
-
else if (xn(e))
|
|
1073
|
-
for (const n in e)
|
|
1074
|
-
Z(e[n], t);
|
|
1075
|
-
return e;
|
|
1076
|
-
}
|
|
1077
|
-
function jr(e, t) {
|
|
1055
|
+
let Q, Oe = [];
|
|
1056
|
+
function sn(e, t) {
|
|
1057
|
+
var n, r;
|
|
1058
|
+
Q = e, Q ? (Q.enabled = !0, Oe.forEach(({ event: s, args: o }) => Q.emit(s, ...o)), Oe = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window != "undefined" && // some envs mock window but not fully
|
|
1059
|
+
window.HTMLElement && // also exclude jsdom
|
|
1060
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
1061
|
+
!((r = (n = window.navigator) == null ? void 0 : n.userAgent) != null && r.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
|
|
1062
|
+
sn(o, t);
|
|
1063
|
+
}), setTimeout(() => {
|
|
1064
|
+
Q || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, Oe = []);
|
|
1065
|
+
}, 3e3)) : Oe = [];
|
|
1066
|
+
}
|
|
1067
|
+
let D = null, Pr = null;
|
|
1068
|
+
function on(e, t) {
|
|
1069
|
+
e.shapeFlag & 6 && e.component ? on(e.component.subTree, t) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
1070
|
+
}
|
|
1071
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
|
1072
|
+
// @__NO_SIDE_EFFECTS__
|
|
1073
|
+
function Vr(e, t) {
|
|
1078
1074
|
return E(e) ? (
|
|
1079
1075
|
// #8326: extend call and options.name access are considered side-effects
|
|
1080
1076
|
// by Rollup, so we have to wrap it in a pure-annotated IIFE.
|
|
1081
|
-
/* @__PURE__ */ (() =>
|
|
1077
|
+
/* @__PURE__ */ (() => I({ name: e.name }, t, { setup: e }))()
|
|
1082
1078
|
) : e;
|
|
1083
1079
|
}
|
|
1084
|
-
function
|
|
1080
|
+
function Mr(e, t, n = re, r = !1) {
|
|
1085
1081
|
if (n) {
|
|
1086
|
-
const
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
const c = Se(t, n, e, i);
|
|
1091
|
-
return cn(), Qe(), c;
|
|
1082
|
+
const s = n[e] || (n[e] = []), o = t.__weh || (t.__weh = (...i) => {
|
|
1083
|
+
ue();
|
|
1084
|
+
const c = _n(n), a = oe(t, n, e, i);
|
|
1085
|
+
return c(), fe(), a;
|
|
1092
1086
|
});
|
|
1093
|
-
return
|
|
1087
|
+
return r ? s.unshift(o) : s.push(o), o;
|
|
1094
1088
|
} else if (process.env.NODE_ENV !== "production") {
|
|
1095
|
-
const
|
|
1096
|
-
|
|
1097
|
-
`${
|
|
1089
|
+
const s = Tn(ct[e].replace(/ hook$/, ""));
|
|
1090
|
+
_(
|
|
1091
|
+
`${s} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`
|
|
1098
1092
|
);
|
|
1099
1093
|
}
|
|
1100
1094
|
}
|
|
1101
|
-
const
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
), Kr = kt("m"), Lr = kt("um"), zr = Symbol.for("v-ndc"), We = (e) => e ? lo(e) ? uo(e) || e.proxy : We(e.parent) : null, se = (
|
|
1095
|
+
const cn = (e) => (t, n = re) => {
|
|
1096
|
+
(!dt || e === "sp") && Mr(e, (...r) => t(...r), n);
|
|
1097
|
+
}, Dr = cn("m"), Tr = cn("um"), $r = Symbol.for("v-ndc"), Xe = (e) => e ? fs(e) ? ds(e) : Xe(e.parent) : null, ie = (
|
|
1105
1098
|
// Move PURE marker to new line to workaround compiler discarding it
|
|
1106
1099
|
// due to type annotation
|
|
1107
|
-
/* @__PURE__ */
|
|
1100
|
+
/* @__PURE__ */ I(/* @__PURE__ */ Object.create(null), {
|
|
1108
1101
|
$: (e) => e,
|
|
1109
1102
|
$el: (e) => e.vnode.el,
|
|
1110
1103
|
$data: (e) => e.data,
|
|
1111
|
-
$props: (e) => process.env.NODE_ENV !== "production" ?
|
|
1112
|
-
$attrs: (e) => process.env.NODE_ENV !== "production" ?
|
|
1113
|
-
$slots: (e) => process.env.NODE_ENV !== "production" ?
|
|
1114
|
-
$refs: (e) => process.env.NODE_ENV !== "production" ?
|
|
1115
|
-
$parent: (e) =>
|
|
1116
|
-
$root: (e) =>
|
|
1104
|
+
$props: (e) => process.env.NODE_ENV !== "production" ? Ee(e.props) : e.props,
|
|
1105
|
+
$attrs: (e) => process.env.NODE_ENV !== "production" ? Ee(e.attrs) : e.attrs,
|
|
1106
|
+
$slots: (e) => process.env.NODE_ENV !== "production" ? Ee(e.slots) : e.slots,
|
|
1107
|
+
$refs: (e) => process.env.NODE_ENV !== "production" ? Ee(e.refs) : e.refs,
|
|
1108
|
+
$parent: (e) => Xe(e.parent),
|
|
1109
|
+
$root: (e) => Xe(e.root),
|
|
1117
1110
|
$emit: (e) => e.emit,
|
|
1118
|
-
$options: (e) =>
|
|
1119
|
-
$forceUpdate: (e) => e.f || (e.f = () =>
|
|
1120
|
-
|
|
1121
|
-
|
|
1111
|
+
$options: (e) => jr(e),
|
|
1112
|
+
$forceUpdate: (e) => e.f || (e.f = () => {
|
|
1113
|
+
e.effect.dirty = !0, ut(e.update);
|
|
1114
|
+
}),
|
|
1115
|
+
$nextTick: (e) => e.n || (e.n = yr.bind(e.proxy)),
|
|
1116
|
+
$watch: (e) => Gr.bind(e)
|
|
1122
1117
|
})
|
|
1123
|
-
),
|
|
1118
|
+
), Ar = (e) => e === "_" || e === "$", Ke = (e, t) => e !== M && !e.__isScriptSetup && w(e, t), Lr = {
|
|
1124
1119
|
get({ _: e }, t) {
|
|
1125
|
-
|
|
1120
|
+
if (t === "__v_skip")
|
|
1121
|
+
return !0;
|
|
1122
|
+
const { ctx: n, setupState: r, data: s, props: o, accessCache: i, type: c, appContext: a } = e;
|
|
1126
1123
|
if (process.env.NODE_ENV !== "production" && t === "__isVue")
|
|
1127
1124
|
return !0;
|
|
1128
1125
|
let u;
|
|
1129
1126
|
if (t[0] !== "$") {
|
|
1130
|
-
const
|
|
1131
|
-
if (
|
|
1132
|
-
switch (
|
|
1127
|
+
const g = i[t];
|
|
1128
|
+
if (g !== void 0)
|
|
1129
|
+
switch (g) {
|
|
1133
1130
|
case 1:
|
|
1134
|
-
return o[t];
|
|
1135
|
-
case 2:
|
|
1136
1131
|
return r[t];
|
|
1132
|
+
case 2:
|
|
1133
|
+
return s[t];
|
|
1137
1134
|
case 4:
|
|
1138
1135
|
return n[t];
|
|
1139
1136
|
case 3:
|
|
1140
|
-
return
|
|
1137
|
+
return o[t];
|
|
1141
1138
|
}
|
|
1142
1139
|
else {
|
|
1143
|
-
if (
|
|
1144
|
-
return i[t] = 1,
|
|
1145
|
-
if (
|
|
1146
|
-
return i[t] = 2,
|
|
1140
|
+
if (Ke(r, t))
|
|
1141
|
+
return i[t] = 1, r[t];
|
|
1142
|
+
if (s !== M && w(s, t))
|
|
1143
|
+
return i[t] = 2, s[t];
|
|
1147
1144
|
if (
|
|
1148
1145
|
// only cache other properties when instance has declared (thus stable)
|
|
1149
1146
|
// props
|
|
1150
|
-
(u = e.propsOptions[0]) &&
|
|
1147
|
+
(u = e.propsOptions[0]) && w(u, t)
|
|
1151
1148
|
)
|
|
1152
|
-
return i[t] = 3,
|
|
1153
|
-
if (n !==
|
|
1149
|
+
return i[t] = 3, o[t];
|
|
1150
|
+
if (n !== M && w(n, t))
|
|
1154
1151
|
return i[t] = 4, n[t];
|
|
1155
1152
|
i[t] = 0;
|
|
1156
1153
|
}
|
|
1157
1154
|
}
|
|
1158
|
-
const
|
|
1159
|
-
let
|
|
1160
|
-
if (
|
|
1161
|
-
return t === "$attrs" ? (
|
|
1155
|
+
const h = ie[t];
|
|
1156
|
+
let l, d;
|
|
1157
|
+
if (h)
|
|
1158
|
+
return t === "$attrs" ? (v(e.attrs, "get", ""), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && v(e, "get", t), h(e);
|
|
1162
1159
|
if (
|
|
1163
1160
|
// css module (injected by vue-loader)
|
|
1164
|
-
(
|
|
1161
|
+
(l = c.__cssModules) && (l = l[t])
|
|
1165
1162
|
)
|
|
1166
|
-
return
|
|
1167
|
-
if (n !==
|
|
1163
|
+
return l;
|
|
1164
|
+
if (n !== M && w(n, t))
|
|
1168
1165
|
return i[t] = 4, n[t];
|
|
1169
1166
|
if (
|
|
1170
1167
|
// global properties
|
|
1171
|
-
|
|
1168
|
+
d = a.config.globalProperties, w(d, t)
|
|
1172
1169
|
)
|
|
1173
|
-
return
|
|
1174
|
-
process.env.NODE_ENV !== "production" &&
|
|
1170
|
+
return d[t];
|
|
1171
|
+
process.env.NODE_ENV !== "production" && D && (!P(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading
|
|
1175
1172
|
// to infinite warning loop
|
|
1176
|
-
t.indexOf("__v") !== 0) && (
|
|
1173
|
+
t.indexOf("__v") !== 0) && (s !== M && Ar(t[0]) && w(s, t) ? _(
|
|
1177
1174
|
`Property ${JSON.stringify(
|
|
1178
1175
|
t
|
|
1179
1176
|
)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
|
|
1180
|
-
) : e ===
|
|
1177
|
+
) : e === D && _(
|
|
1181
1178
|
`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`
|
|
1182
1179
|
));
|
|
1183
1180
|
},
|
|
1184
1181
|
set({ _: e }, t, n) {
|
|
1185
|
-
const { data:
|
|
1186
|
-
return
|
|
1182
|
+
const { data: r, setupState: s, ctx: o } = e;
|
|
1183
|
+
return Ke(s, t) ? (s[t] = n, !0) : process.env.NODE_ENV !== "production" && s.__isScriptSetup && w(s, t) ? (_(`Cannot mutate <script setup> binding "${t}" from Options API.`), !1) : r !== M && w(r, t) ? (r[t] = n, !0) : w(e.props, t) ? (process.env.NODE_ENV !== "production" && _(`Attempting to mutate prop "${t}". Props are readonly.`), !1) : t[0] === "$" && t.slice(1) in e ? (process.env.NODE_ENV !== "production" && _(
|
|
1187
1184
|
`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`
|
|
1188
|
-
), !1) : (process.env.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(
|
|
1185
|
+
), !1) : (process.env.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(o, t, {
|
|
1189
1186
|
enumerable: !0,
|
|
1190
1187
|
configurable: !0,
|
|
1191
1188
|
value: n
|
|
1192
|
-
}) :
|
|
1189
|
+
}) : o[t] = n, !0);
|
|
1193
1190
|
},
|
|
1194
1191
|
has({
|
|
1195
|
-
_: { data: e, setupState: t, accessCache: n, ctx:
|
|
1192
|
+
_: { data: e, setupState: t, accessCache: n, ctx: r, appContext: s, propsOptions: o }
|
|
1196
1193
|
}, i) {
|
|
1197
1194
|
let c;
|
|
1198
|
-
return !!n[i] || e !==
|
|
1195
|
+
return !!n[i] || e !== M && w(e, i) || Ke(t, i) || (c = o[0]) && w(c, i) || w(r, i) || w(ie, i) || w(s.config.globalProperties, i);
|
|
1199
1196
|
},
|
|
1200
1197
|
defineProperty(e, t, n) {
|
|
1201
|
-
return n.get != null ? e._.accessCache[t] = 0 :
|
|
1198
|
+
return n.get != null ? e._.accessCache[t] = 0 : w(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
|
|
1202
1199
|
}
|
|
1203
1200
|
};
|
|
1204
|
-
process.env.NODE_ENV !== "production" && (
|
|
1201
|
+
process.env.NODE_ENV !== "production" && (Lr.ownKeys = (e) => (_(
|
|
1205
1202
|
"Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
|
|
1206
1203
|
), Reflect.ownKeys(e)));
|
|
1207
|
-
function
|
|
1208
|
-
return
|
|
1204
|
+
function bt(e) {
|
|
1205
|
+
return m(e) ? e.reduce(
|
|
1209
1206
|
(t, n) => (t[n] = null, t),
|
|
1210
1207
|
{}
|
|
1211
1208
|
) : e;
|
|
1212
1209
|
}
|
|
1213
|
-
function
|
|
1214
|
-
const t = e.type, { mixins: n, extends:
|
|
1215
|
-
mixins:
|
|
1216
|
-
optionsCache:
|
|
1210
|
+
function jr(e) {
|
|
1211
|
+
const t = e.type, { mixins: n, extends: r } = t, {
|
|
1212
|
+
mixins: s,
|
|
1213
|
+
optionsCache: o,
|
|
1217
1214
|
config: { optionMergeStrategies: i }
|
|
1218
|
-
} = e.appContext, c =
|
|
1219
|
-
let
|
|
1220
|
-
return c ?
|
|
1221
|
-
(u) =>
|
|
1222
|
-
),
|
|
1223
|
-
}
|
|
1224
|
-
function
|
|
1225
|
-
const { mixins:
|
|
1226
|
-
|
|
1227
|
-
(i) =>
|
|
1215
|
+
} = e.appContext, c = o.get(t);
|
|
1216
|
+
let a;
|
|
1217
|
+
return c ? a = c : !s.length && !n && !r ? a = t : (a = {}, s.length && s.forEach(
|
|
1218
|
+
(u) => xe(a, u, i, !0)
|
|
1219
|
+
), xe(a, t, i)), b(t) && o.set(t, a), a;
|
|
1220
|
+
}
|
|
1221
|
+
function xe(e, t, n, r = !1) {
|
|
1222
|
+
const { mixins: s, extends: o } = t;
|
|
1223
|
+
o && xe(e, o, n, !0), s && s.forEach(
|
|
1224
|
+
(i) => xe(e, i, n, !0)
|
|
1228
1225
|
);
|
|
1229
1226
|
for (const i in t)
|
|
1230
|
-
if (
|
|
1231
|
-
process.env.NODE_ENV !== "production" &&
|
|
1227
|
+
if (r && i === "expose")
|
|
1228
|
+
process.env.NODE_ENV !== "production" && _(
|
|
1232
1229
|
'"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.'
|
|
1233
1230
|
);
|
|
1234
1231
|
else {
|
|
1235
|
-
const c =
|
|
1232
|
+
const c = Ur[i] || n && n[i];
|
|
1236
1233
|
e[i] = c ? c(e[i], t[i]) : t[i];
|
|
1237
1234
|
}
|
|
1238
1235
|
return e;
|
|
1239
1236
|
}
|
|
1240
|
-
const
|
|
1241
|
-
data:
|
|
1242
|
-
props:
|
|
1243
|
-
emits:
|
|
1237
|
+
const Ur = {
|
|
1238
|
+
data: St,
|
|
1239
|
+
props: It,
|
|
1240
|
+
emits: It,
|
|
1244
1241
|
// objects
|
|
1245
|
-
methods:
|
|
1246
|
-
computed:
|
|
1242
|
+
methods: se,
|
|
1243
|
+
computed: se,
|
|
1247
1244
|
// lifecycle
|
|
1248
|
-
beforeCreate:
|
|
1249
|
-
created:
|
|
1250
|
-
beforeMount:
|
|
1251
|
-
mounted:
|
|
1252
|
-
beforeUpdate:
|
|
1253
|
-
updated:
|
|
1254
|
-
beforeDestroy:
|
|
1255
|
-
beforeUnmount:
|
|
1256
|
-
destroyed:
|
|
1257
|
-
unmounted:
|
|
1258
|
-
activated:
|
|
1259
|
-
deactivated:
|
|
1260
|
-
errorCaptured:
|
|
1261
|
-
serverPrefetch:
|
|
1245
|
+
beforeCreate: y,
|
|
1246
|
+
created: y,
|
|
1247
|
+
beforeMount: y,
|
|
1248
|
+
mounted: y,
|
|
1249
|
+
beforeUpdate: y,
|
|
1250
|
+
updated: y,
|
|
1251
|
+
beforeDestroy: y,
|
|
1252
|
+
beforeUnmount: y,
|
|
1253
|
+
destroyed: y,
|
|
1254
|
+
unmounted: y,
|
|
1255
|
+
activated: y,
|
|
1256
|
+
deactivated: y,
|
|
1257
|
+
errorCaptured: y,
|
|
1258
|
+
serverPrefetch: y,
|
|
1262
1259
|
// assets
|
|
1263
|
-
components:
|
|
1264
|
-
directives:
|
|
1260
|
+
components: se,
|
|
1261
|
+
directives: se,
|
|
1265
1262
|
// watch
|
|
1266
|
-
watch:
|
|
1263
|
+
watch: Hr,
|
|
1267
1264
|
// provide / inject
|
|
1268
|
-
provide:
|
|
1269
|
-
inject:
|
|
1265
|
+
provide: St,
|
|
1266
|
+
inject: Fr
|
|
1270
1267
|
};
|
|
1271
|
-
function
|
|
1268
|
+
function St(e, t) {
|
|
1272
1269
|
return t ? e ? function() {
|
|
1273
|
-
return
|
|
1270
|
+
return I(
|
|
1274
1271
|
E(e) ? e.call(this, this) : e,
|
|
1275
1272
|
E(t) ? t.call(this, this) : t
|
|
1276
1273
|
);
|
|
1277
1274
|
} : t : e;
|
|
1278
1275
|
}
|
|
1279
|
-
function
|
|
1280
|
-
return
|
|
1276
|
+
function Fr(e, t) {
|
|
1277
|
+
return se(Rt(e), Rt(t));
|
|
1281
1278
|
}
|
|
1282
|
-
function
|
|
1283
|
-
if (
|
|
1279
|
+
function Rt(e) {
|
|
1280
|
+
if (m(e)) {
|
|
1284
1281
|
const t = {};
|
|
1285
1282
|
for (let n = 0; n < e.length; n++)
|
|
1286
1283
|
t[e[n]] = e[n];
|
|
@@ -1288,73 +1285,229 @@ function bt(e) {
|
|
|
1288
1285
|
}
|
|
1289
1286
|
return e;
|
|
1290
1287
|
}
|
|
1291
|
-
function
|
|
1288
|
+
function y(e, t) {
|
|
1292
1289
|
return e ? [...new Set([].concat(e, t))] : t;
|
|
1293
1290
|
}
|
|
1294
|
-
function
|
|
1295
|
-
return e ?
|
|
1291
|
+
function se(e, t) {
|
|
1292
|
+
return e ? I(/* @__PURE__ */ Object.create(null), e, t) : t;
|
|
1296
1293
|
}
|
|
1297
|
-
function
|
|
1298
|
-
return e ?
|
|
1294
|
+
function It(e, t) {
|
|
1295
|
+
return e ? m(e) && m(t) ? [.../* @__PURE__ */ new Set([...e, ...t])] : I(
|
|
1299
1296
|
/* @__PURE__ */ Object.create(null),
|
|
1300
|
-
|
|
1301
|
-
|
|
1297
|
+
bt(e),
|
|
1298
|
+
bt(t != null ? t : {})
|
|
1302
1299
|
) : t;
|
|
1303
1300
|
}
|
|
1304
|
-
function
|
|
1301
|
+
function Hr(e, t) {
|
|
1305
1302
|
if (!e)
|
|
1306
1303
|
return t;
|
|
1307
1304
|
if (!t)
|
|
1308
1305
|
return e;
|
|
1309
|
-
const n =
|
|
1310
|
-
for (const
|
|
1311
|
-
n[
|
|
1306
|
+
const n = I(/* @__PURE__ */ Object.create(null), e);
|
|
1307
|
+
for (const r in t)
|
|
1308
|
+
n[r] = y(e[r], t[r]);
|
|
1312
1309
|
return n;
|
|
1313
1310
|
}
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1311
|
+
let Kr = null;
|
|
1312
|
+
function zr(e, t, n = !1) {
|
|
1313
|
+
const r = re || D;
|
|
1314
|
+
if (r || Kr) {
|
|
1315
|
+
const s = r ? r.parent == null ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides : void 0;
|
|
1316
|
+
if (s && e in s)
|
|
1317
|
+
return s[e];
|
|
1318
|
+
if (arguments.length > 1)
|
|
1319
|
+
return n && E(t) ? t.call(r && r.proxy) : t;
|
|
1320
|
+
process.env.NODE_ENV !== "production" && _(`injection "${String(e)}" not found.`);
|
|
1321
|
+
} else
|
|
1322
|
+
process.env.NODE_ENV !== "production" && _("inject() can only be used inside setup() or functional components.");
|
|
1318
1323
|
}
|
|
1319
|
-
|
|
1320
|
-
|
|
1324
|
+
const Wr = {}, ln = (e) => Object.getPrototypeOf(e) === Wr, Br = (e) => e.__isTeleport, Ct = Zr, qr = Symbol.for("v-scx"), Jr = () => {
|
|
1325
|
+
{
|
|
1326
|
+
const e = zr(qr);
|
|
1327
|
+
return e || process.env.NODE_ENV !== "production" && _(
|
|
1328
|
+
"Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."
|
|
1329
|
+
), e;
|
|
1330
|
+
}
|
|
1331
|
+
}, Ne = {};
|
|
1332
|
+
function Yr(e, t, n) {
|
|
1333
|
+
return process.env.NODE_ENV !== "production" && !E(t) && _(
|
|
1334
|
+
"`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."
|
|
1335
|
+
), an(e, t, n);
|
|
1336
|
+
}
|
|
1337
|
+
function an(e, t, {
|
|
1338
|
+
immediate: n,
|
|
1339
|
+
deep: r,
|
|
1340
|
+
flush: s,
|
|
1341
|
+
once: o,
|
|
1342
|
+
onTrack: i,
|
|
1343
|
+
onTrigger: c
|
|
1344
|
+
} = M) {
|
|
1345
|
+
if (t && o) {
|
|
1346
|
+
const p = t;
|
|
1347
|
+
t = (...Ae) => {
|
|
1348
|
+
p(...Ae), $e();
|
|
1349
|
+
};
|
|
1350
|
+
}
|
|
1351
|
+
process.env.NODE_ENV !== "production" && r !== void 0 && typeof r == "number" && _(
|
|
1352
|
+
'watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'
|
|
1353
|
+
), process.env.NODE_ENV !== "production" && !t && (n !== void 0 && _(
|
|
1354
|
+
'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
|
|
1355
|
+
), r !== void 0 && _(
|
|
1356
|
+
'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
|
|
1357
|
+
), o !== void 0 && _(
|
|
1358
|
+
'watch() "once" option is only respected when using the watch(source, callback, options?) signature.'
|
|
1359
|
+
));
|
|
1360
|
+
const a = (p) => {
|
|
1361
|
+
_(
|
|
1362
|
+
"Invalid watch source: ",
|
|
1363
|
+
p,
|
|
1364
|
+
"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
|
|
1365
|
+
);
|
|
1366
|
+
}, u = re, h = (p) => r === !0 ? p : (
|
|
1367
|
+
// for deep: false, only traverse root-level properties
|
|
1368
|
+
q(p, r === !1 ? 1 : void 0)
|
|
1369
|
+
);
|
|
1370
|
+
let l, d = !1, g = !1;
|
|
1371
|
+
if (R(e) ? (l = () => e.value, d = T(e)) : ee(e) ? (l = () => h(e), d = !0) : m(e) ? (g = !0, d = e.some((p) => ee(p) || T(p)), l = () => e.map((p) => {
|
|
1372
|
+
if (R(p))
|
|
1373
|
+
return p.value;
|
|
1374
|
+
if (ee(p))
|
|
1375
|
+
return h(p);
|
|
1376
|
+
if (E(p))
|
|
1377
|
+
return X(p, u, 2);
|
|
1378
|
+
process.env.NODE_ENV !== "production" && a(p);
|
|
1379
|
+
})) : E(e) ? t ? l = () => X(e, u, 2) : l = () => (O && O(), oe(
|
|
1380
|
+
e,
|
|
1381
|
+
u,
|
|
1382
|
+
3,
|
|
1383
|
+
[V]
|
|
1384
|
+
)) : (l = Z, process.env.NODE_ENV !== "production" && a(e)), t && r) {
|
|
1385
|
+
const p = l;
|
|
1386
|
+
l = () => q(p());
|
|
1387
|
+
}
|
|
1388
|
+
let O, V = (p) => {
|
|
1389
|
+
O = S.onStop = () => {
|
|
1390
|
+
X(p, u, 4), O = S.onStop = void 0;
|
|
1391
|
+
};
|
|
1392
|
+
}, Te;
|
|
1393
|
+
if (dt)
|
|
1394
|
+
if (V = Z, t ? n && oe(t, u, 3, [
|
|
1395
|
+
l(),
|
|
1396
|
+
g ? [] : void 0,
|
|
1397
|
+
V
|
|
1398
|
+
]) : l(), s === "sync") {
|
|
1399
|
+
const p = Jr();
|
|
1400
|
+
Te = p.__watcherHandles || (p.__watcherHandles = []);
|
|
1401
|
+
} else
|
|
1402
|
+
return Z;
|
|
1403
|
+
let K = g ? new Array(e.length).fill(Ne) : Ne;
|
|
1404
|
+
const z = () => {
|
|
1405
|
+
if (!(!S.active || !S.dirty))
|
|
1406
|
+
if (t) {
|
|
1407
|
+
const p = S.run();
|
|
1408
|
+
(r || d || (g ? p.some((Ae, On) => H(Ae, K[On])) : H(p, K))) && (O && O(), oe(t, u, 3, [
|
|
1409
|
+
p,
|
|
1410
|
+
// pass undefined as the old value when it's changed for the first time
|
|
1411
|
+
K === Ne ? void 0 : g && K[0] === Ne ? [] : K,
|
|
1412
|
+
V
|
|
1413
|
+
]), K = p);
|
|
1414
|
+
} else
|
|
1415
|
+
S.run();
|
|
1416
|
+
};
|
|
1417
|
+
z.allowRecurse = !!t;
|
|
1418
|
+
let de;
|
|
1419
|
+
s === "sync" ? de = z : s === "post" ? de = () => Ct(z, u && u.suspense) : (z.pre = !0, u && (z.id = u.uid), de = () => ut(z));
|
|
1420
|
+
const S = new $t(l, Z, de), $e = () => {
|
|
1421
|
+
S.stop();
|
|
1422
|
+
};
|
|
1423
|
+
return process.env.NODE_ENV !== "production" && (S.onTrack = i, S.onTrigger = c), t ? n ? z() : K = S.run() : s === "post" ? Ct(
|
|
1424
|
+
S.run.bind(S),
|
|
1425
|
+
u && u.suspense
|
|
1426
|
+
) : S.run(), Te && Te.push($e), $e;
|
|
1427
|
+
}
|
|
1428
|
+
function Gr(e, t, n) {
|
|
1429
|
+
const r = this.proxy, s = P(e) ? e.includes(".") ? Xr(r, e) : () => r[e] : e.bind(r, r);
|
|
1430
|
+
let o;
|
|
1431
|
+
E(t) ? o = t : (o = t.handler, n = t);
|
|
1432
|
+
const i = _n(this), c = an(s, o.bind(r), n);
|
|
1433
|
+
return i(), c;
|
|
1434
|
+
}
|
|
1435
|
+
function Xr(e, t) {
|
|
1436
|
+
const n = t.split(".");
|
|
1437
|
+
return () => {
|
|
1438
|
+
let r = e;
|
|
1439
|
+
for (let s = 0; s < n.length && r; s++)
|
|
1440
|
+
r = r[n[s]];
|
|
1441
|
+
return r;
|
|
1442
|
+
};
|
|
1443
|
+
}
|
|
1444
|
+
function q(e, t = 1 / 0, n) {
|
|
1445
|
+
if (t <= 0 || !b(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Set(), n.has(e)))
|
|
1446
|
+
return e;
|
|
1447
|
+
if (n.add(e), t--, R(e))
|
|
1448
|
+
q(e.value, t, n);
|
|
1449
|
+
else if (m(e))
|
|
1450
|
+
for (let r = 0; r < e.length; r++)
|
|
1451
|
+
q(e[r], t, n);
|
|
1452
|
+
else if (Pn(e) || k(e))
|
|
1453
|
+
e.forEach((r) => {
|
|
1454
|
+
q(r, t, n);
|
|
1455
|
+
});
|
|
1456
|
+
else if (Dn(e)) {
|
|
1457
|
+
for (const r in e)
|
|
1458
|
+
q(e[r], t, n);
|
|
1459
|
+
for (const r of Object.getOwnPropertySymbols(e))
|
|
1460
|
+
Object.prototype.propertyIsEnumerable.call(e, r) && q(e[r], t, n);
|
|
1461
|
+
}
|
|
1462
|
+
return e;
|
|
1463
|
+
}
|
|
1464
|
+
const Qr = (e) => e.__isSuspense;
|
|
1465
|
+
function Zr(e, t) {
|
|
1466
|
+
t && t.pendingBranch ? m(e) ? t.effects.push(...e) : t.effects.push(e) : tn(e);
|
|
1467
|
+
}
|
|
1468
|
+
const un = Symbol.for("v-fgt"), kr = Symbol.for("v-txt"), es = Symbol.for("v-cmt"), ye = [];
|
|
1469
|
+
let x = null;
|
|
1470
|
+
function ts(e = !1) {
|
|
1471
|
+
ye.push(x = e ? null : []);
|
|
1321
1472
|
}
|
|
1322
|
-
function
|
|
1323
|
-
|
|
1473
|
+
function ns() {
|
|
1474
|
+
ye.pop(), x = ye[ye.length - 1] || null;
|
|
1324
1475
|
}
|
|
1325
|
-
function
|
|
1326
|
-
return
|
|
1327
|
-
|
|
1476
|
+
function rs(e) {
|
|
1477
|
+
return e.dynamicChildren = x || In, ns(), x && x.push(e), e;
|
|
1478
|
+
}
|
|
1479
|
+
function ss(e, t, n, r, s, o) {
|
|
1480
|
+
return rs(
|
|
1481
|
+
dn(
|
|
1328
1482
|
e,
|
|
1329
1483
|
t,
|
|
1330
1484
|
n,
|
|
1331
|
-
o,
|
|
1332
1485
|
r,
|
|
1333
1486
|
s,
|
|
1487
|
+
o,
|
|
1334
1488
|
!0
|
|
1335
|
-
/* isBlock */
|
|
1336
1489
|
)
|
|
1337
1490
|
);
|
|
1338
1491
|
}
|
|
1339
|
-
function
|
|
1492
|
+
function os(e) {
|
|
1340
1493
|
return e ? e.__v_isVNode === !0 : !1;
|
|
1341
1494
|
}
|
|
1342
|
-
const
|
|
1495
|
+
const is = (...e) => pn(
|
|
1343
1496
|
...e
|
|
1344
|
-
),
|
|
1497
|
+
), fn = ({ key: e }) => e != null ? e : null, be = ({
|
|
1345
1498
|
ref: e,
|
|
1346
1499
|
ref_key: t,
|
|
1347
1500
|
ref_for: n
|
|
1348
|
-
}) => (typeof e == "number" && (e = "" + e), e != null ?
|
|
1349
|
-
function
|
|
1350
|
-
const
|
|
1501
|
+
}) => (typeof e == "number" && (e = "" + e), e != null ? P(e) || R(e) || E(e) ? { i: D, r: e, k: t, f: !!n } : e : null);
|
|
1502
|
+
function dn(e, t = null, n = null, r = 0, s = null, o = e === un ? 0 : 1, i = !1, c = !1) {
|
|
1503
|
+
const a = {
|
|
1351
1504
|
__v_isVNode: !0,
|
|
1352
1505
|
__v_skip: !0,
|
|
1353
1506
|
type: e,
|
|
1354
1507
|
props: t,
|
|
1355
|
-
key: t &&
|
|
1356
|
-
ref: t &&
|
|
1357
|
-
scopeId:
|
|
1508
|
+
key: t && fn(t),
|
|
1509
|
+
ref: t && be(t),
|
|
1510
|
+
scopeId: Pr,
|
|
1358
1511
|
slotScopeIds: null,
|
|
1359
1512
|
children: n,
|
|
1360
1513
|
component: null,
|
|
@@ -1366,79 +1519,80 @@ function rn(e, t = null, n = null, o = 0, r = null, s = e === en ? 0 : 1, i = !1
|
|
|
1366
1519
|
el: null,
|
|
1367
1520
|
anchor: null,
|
|
1368
1521
|
target: null,
|
|
1522
|
+
targetStart: null,
|
|
1369
1523
|
targetAnchor: null,
|
|
1370
1524
|
staticCount: 0,
|
|
1371
|
-
shapeFlag:
|
|
1372
|
-
patchFlag:
|
|
1373
|
-
dynamicProps:
|
|
1525
|
+
shapeFlag: o,
|
|
1526
|
+
patchFlag: r,
|
|
1527
|
+
dynamicProps: s,
|
|
1374
1528
|
dynamicChildren: null,
|
|
1375
1529
|
appContext: null,
|
|
1376
|
-
ctx:
|
|
1530
|
+
ctx: D
|
|
1377
1531
|
};
|
|
1378
|
-
return c ? (
|
|
1532
|
+
return c ? (ft(a, n), o & 128 && e.normalize(a)) : n && (a.shapeFlag |= P(n) ? 8 : 16), process.env.NODE_ENV !== "production" && a.key !== a.key && _("VNode created with invalid key (NaN). VNode type:", a.type), // avoid a block node from tracking itself
|
|
1379
1533
|
!i && // has current parent block
|
|
1380
|
-
|
|
1534
|
+
x && // presence of a patch flag indicates this node needs patching on updates.
|
|
1381
1535
|
// component nodes also should always be patched, because even if the
|
|
1382
1536
|
// component doesn't need to update, it needs to persist the instance on to
|
|
1383
1537
|
// the next vnode so that it can be properly unmounted later.
|
|
1384
|
-
(
|
|
1538
|
+
(a.patchFlag > 0 || o & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
|
|
1385
1539
|
// vnode should not be considered dynamic due to handler caching.
|
|
1386
|
-
|
|
1540
|
+
a.patchFlag !== 32 && x.push(a), a;
|
|
1387
1541
|
}
|
|
1388
|
-
const
|
|
1389
|
-
function
|
|
1390
|
-
if ((!e || e ===
|
|
1391
|
-
const c =
|
|
1542
|
+
const cs = process.env.NODE_ENV !== "production" ? is : pn;
|
|
1543
|
+
function pn(e, t = null, n = null, r = 0, s = null, o = !1) {
|
|
1544
|
+
if ((!e || e === $r) && (process.env.NODE_ENV !== "production" && !e && _(`Invalid vnode type when creating vnode: ${e}.`), e = es), os(e)) {
|
|
1545
|
+
const c = Pe(
|
|
1392
1546
|
e,
|
|
1393
1547
|
t,
|
|
1394
1548
|
!0
|
|
1395
1549
|
/* mergeRef: true */
|
|
1396
1550
|
);
|
|
1397
|
-
return n &&
|
|
1551
|
+
return n && ft(c, n), !o && x && (c.shapeFlag & 6 ? x[x.indexOf(e)] = c : x.push(c)), c.patchFlag = -2, c;
|
|
1398
1552
|
}
|
|
1399
|
-
if (
|
|
1400
|
-
t =
|
|
1401
|
-
let { class: c, style:
|
|
1402
|
-
c && !
|
|
1553
|
+
if (wn(e) && (e = e.__vccOpts), t) {
|
|
1554
|
+
t = ls(t);
|
|
1555
|
+
let { class: c, style: a } = t;
|
|
1556
|
+
c && !P(c) && (t.class = et(c)), b(a) && (Ye(a) && !m(a) && (a = I({}, a)), t.style = ke(a));
|
|
1403
1557
|
}
|
|
1404
|
-
const i =
|
|
1405
|
-
return process.env.NODE_ENV !== "production" && i & 4 &&
|
|
1406
|
-
"Vue received a Component
|
|
1558
|
+
const i = P(e) ? 1 : Qr(e) ? 128 : Br(e) ? 64 : b(e) ? 4 : E(e) ? 2 : 0;
|
|
1559
|
+
return process.env.NODE_ENV !== "production" && i & 4 && Ye(e) && (e = f(e), _(
|
|
1560
|
+
"Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
|
|
1407
1561
|
`
|
|
1408
1562
|
Component that was made reactive: `,
|
|
1409
1563
|
e
|
|
1410
|
-
)),
|
|
1564
|
+
)), dn(
|
|
1411
1565
|
e,
|
|
1412
1566
|
t,
|
|
1413
1567
|
n,
|
|
1414
|
-
o,
|
|
1415
1568
|
r,
|
|
1416
|
-
i,
|
|
1417
1569
|
s,
|
|
1570
|
+
i,
|
|
1571
|
+
o,
|
|
1418
1572
|
!0
|
|
1419
1573
|
);
|
|
1420
1574
|
}
|
|
1421
|
-
function
|
|
1422
|
-
return e ?
|
|
1575
|
+
function ls(e) {
|
|
1576
|
+
return e ? Ye(e) || ln(e) ? I({}, e) : e : null;
|
|
1423
1577
|
}
|
|
1424
|
-
function
|
|
1425
|
-
const { props:
|
|
1426
|
-
return {
|
|
1578
|
+
function Pe(e, t, n = !1, r = !1) {
|
|
1579
|
+
const { props: s, ref: o, patchFlag: i, children: c, transition: a } = e, u = t ? us(s || {}, t) : s, h = {
|
|
1427
1580
|
__v_isVNode: !0,
|
|
1428
1581
|
__v_skip: !0,
|
|
1429
1582
|
type: e.type,
|
|
1430
|
-
props:
|
|
1431
|
-
key:
|
|
1583
|
+
props: u,
|
|
1584
|
+
key: u && fn(u),
|
|
1432
1585
|
ref: t && t.ref ? (
|
|
1433
1586
|
// #2078 in the case of <component :is="vnode" ref="extra"/>
|
|
1434
1587
|
// if the vnode itself already has a ref, cloneVNode will need to merge
|
|
1435
1588
|
// the refs so the single vnode can be set on multiple refs
|
|
1436
|
-
n &&
|
|
1437
|
-
) :
|
|
1589
|
+
n && o ? m(o) ? o.concat(be(t)) : [o, be(t)] : be(t)
|
|
1590
|
+
) : o,
|
|
1438
1591
|
scopeId: e.scopeId,
|
|
1439
1592
|
slotScopeIds: e.slotScopeIds,
|
|
1440
|
-
children: process.env.NODE_ENV !== "production" &&
|
|
1593
|
+
children: process.env.NODE_ENV !== "production" && i === -1 && m(c) ? c.map(hn) : c,
|
|
1441
1594
|
target: e.target,
|
|
1595
|
+
targetStart: e.targetStart,
|
|
1442
1596
|
targetAnchor: e.targetAnchor,
|
|
1443
1597
|
staticCount: e.staticCount,
|
|
1444
1598
|
shapeFlag: e.shapeFlag,
|
|
@@ -1446,186 +1600,202 @@ function ve(e, t, n = !1) {
|
|
|
1446
1600
|
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
|
|
1447
1601
|
// note: preserve flag for fragments since they use the flag for children
|
|
1448
1602
|
// fast paths only.
|
|
1449
|
-
patchFlag: t && e.type !==
|
|
1603
|
+
patchFlag: t && e.type !== un ? i === -1 ? 16 : i | 16 : i,
|
|
1450
1604
|
dynamicProps: e.dynamicProps,
|
|
1451
1605
|
dynamicChildren: e.dynamicChildren,
|
|
1452
1606
|
appContext: e.appContext,
|
|
1453
1607
|
dirs: e.dirs,
|
|
1454
|
-
transition:
|
|
1608
|
+
transition: a,
|
|
1455
1609
|
// These should technically only be non-null on mounted VNodes. However,
|
|
1456
1610
|
// they *should* be copied for kept-alive vnodes. So we just always copy
|
|
1457
1611
|
// them since them being non-null during a mount doesn't affect the logic as
|
|
1458
1612
|
// they will simply be overwritten.
|
|
1459
1613
|
component: e.component,
|
|
1460
1614
|
suspense: e.suspense,
|
|
1461
|
-
ssContent: e.ssContent &&
|
|
1462
|
-
ssFallback: e.ssFallback &&
|
|
1615
|
+
ssContent: e.ssContent && Pe(e.ssContent),
|
|
1616
|
+
ssFallback: e.ssFallback && Pe(e.ssFallback),
|
|
1463
1617
|
el: e.el,
|
|
1464
1618
|
anchor: e.anchor,
|
|
1465
1619
|
ctx: e.ctx,
|
|
1466
1620
|
ce: e.ce
|
|
1467
1621
|
};
|
|
1622
|
+
return a && r && on(
|
|
1623
|
+
h,
|
|
1624
|
+
a.clone(h)
|
|
1625
|
+
), h;
|
|
1468
1626
|
}
|
|
1469
|
-
function
|
|
1470
|
-
const t =
|
|
1471
|
-
return
|
|
1627
|
+
function hn(e) {
|
|
1628
|
+
const t = Pe(e);
|
|
1629
|
+
return m(e.children) && (t.children = e.children.map(hn)), t;
|
|
1472
1630
|
}
|
|
1473
|
-
function
|
|
1474
|
-
return
|
|
1631
|
+
function as(e = " ", t = 0) {
|
|
1632
|
+
return cs(kr, null, e, t);
|
|
1475
1633
|
}
|
|
1476
|
-
function
|
|
1634
|
+
function ft(e, t) {
|
|
1477
1635
|
let n = 0;
|
|
1478
|
-
const { shapeFlag:
|
|
1636
|
+
const { shapeFlag: r } = e;
|
|
1479
1637
|
if (t == null)
|
|
1480
1638
|
t = null;
|
|
1481
|
-
else if (
|
|
1639
|
+
else if (m(t))
|
|
1482
1640
|
n = 16;
|
|
1483
1641
|
else if (typeof t == "object")
|
|
1484
|
-
if (
|
|
1485
|
-
const
|
|
1486
|
-
|
|
1642
|
+
if (r & 65) {
|
|
1643
|
+
const s = t.default;
|
|
1644
|
+
s && (s._c && (s._d = !1), ft(e, s()), s._c && (s._d = !0));
|
|
1487
1645
|
return;
|
|
1488
1646
|
} else {
|
|
1489
1647
|
n = 32;
|
|
1490
|
-
const
|
|
1491
|
-
!
|
|
1648
|
+
const s = t._;
|
|
1649
|
+
!s && !ln(t) ? t._ctx = D : s === 3 && D && (D.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
|
|
1492
1650
|
}
|
|
1493
1651
|
else
|
|
1494
|
-
E(t) ? (t = { default: t, _ctx:
|
|
1652
|
+
E(t) ? (t = { default: t, _ctx: D }, n = 32) : (t = String(t), r & 64 ? (n = 16, t = [as(t)]) : n = 8);
|
|
1495
1653
|
e.children = t, e.shapeFlag |= n;
|
|
1496
1654
|
}
|
|
1497
|
-
function
|
|
1655
|
+
function us(...e) {
|
|
1498
1656
|
const t = {};
|
|
1499
1657
|
for (let n = 0; n < e.length; n++) {
|
|
1500
|
-
const
|
|
1501
|
-
for (const
|
|
1502
|
-
if (
|
|
1503
|
-
t.class !==
|
|
1504
|
-
else if (
|
|
1505
|
-
t.style =
|
|
1506
|
-
else if (
|
|
1507
|
-
const
|
|
1508
|
-
i &&
|
|
1658
|
+
const r = e[n];
|
|
1659
|
+
for (const s in r)
|
|
1660
|
+
if (s === "class")
|
|
1661
|
+
t.class !== r.class && (t.class = et([t.class, r.class]));
|
|
1662
|
+
else if (s === "style")
|
|
1663
|
+
t.style = ke([t.style, r.style]);
|
|
1664
|
+
else if (Cn(s)) {
|
|
1665
|
+
const o = t[s], i = r[s];
|
|
1666
|
+
i && o !== i && !(m(o) && o.includes(i)) && (t[s] = o ? [].concat(o, i) : i);
|
|
1509
1667
|
} else
|
|
1510
|
-
|
|
1668
|
+
s !== "" && (t[s] = r[s]);
|
|
1511
1669
|
}
|
|
1512
1670
|
return t;
|
|
1513
1671
|
}
|
|
1514
|
-
let
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
}
|
|
1521
|
-
|
|
1672
|
+
let re = null, Qe;
|
|
1673
|
+
{
|
|
1674
|
+
const e = Tt(), t = (n, r) => {
|
|
1675
|
+
let s;
|
|
1676
|
+
return (s = e[n]) || (s = e[n] = []), s.push(r), (o) => {
|
|
1677
|
+
s.length > 1 ? s.forEach((i) => i(o)) : s[0](o);
|
|
1678
|
+
};
|
|
1679
|
+
};
|
|
1680
|
+
Qe = t(
|
|
1681
|
+
"__VUE_INSTANCE_SETTERS__",
|
|
1682
|
+
(n) => re = n
|
|
1683
|
+
), t(
|
|
1684
|
+
"__VUE_SSR_SETTERS__",
|
|
1685
|
+
(n) => dt = n
|
|
1686
|
+
);
|
|
1687
|
+
}
|
|
1688
|
+
const _n = (e) => {
|
|
1689
|
+
const t = re;
|
|
1690
|
+
return Qe(e), e.scope.on(), () => {
|
|
1691
|
+
e.scope.off(), Qe(t);
|
|
1692
|
+
};
|
|
1522
1693
|
};
|
|
1523
|
-
function
|
|
1694
|
+
function fs(e) {
|
|
1524
1695
|
return e.vnode.shapeFlag & 4;
|
|
1525
1696
|
}
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
}
|
|
1697
|
+
let dt = !1;
|
|
1698
|
+
process.env.NODE_ENV;
|
|
1699
|
+
function ds(e) {
|
|
1700
|
+
return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(hr(cr(e.exposed)), {
|
|
1701
|
+
get(t, n) {
|
|
1702
|
+
if (n in t)
|
|
1703
|
+
return t[n];
|
|
1704
|
+
if (n in ie)
|
|
1705
|
+
return ie[n](e);
|
|
1706
|
+
},
|
|
1707
|
+
has(t, n) {
|
|
1708
|
+
return n in t || n in ie;
|
|
1709
|
+
}
|
|
1710
|
+
})) : e.proxy;
|
|
1539
1711
|
}
|
|
1540
|
-
const
|
|
1541
|
-
function
|
|
1712
|
+
const ps = /(?:^|[-_])(\w)/g, hs = (e) => e.replace(ps, (t) => t.toUpperCase()).replace(/[-_]/g, "");
|
|
1713
|
+
function mn(e, t = !0) {
|
|
1542
1714
|
return E(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
1543
1715
|
}
|
|
1544
|
-
function
|
|
1545
|
-
let
|
|
1546
|
-
if (!
|
|
1547
|
-
const
|
|
1548
|
-
|
|
1716
|
+
function gn(e, t, n = !1) {
|
|
1717
|
+
let r = mn(t);
|
|
1718
|
+
if (!r && t.__file) {
|
|
1719
|
+
const s = t.__file.match(/([^/\\]+)\.\w+$/);
|
|
1720
|
+
s && (r = s[1]);
|
|
1549
1721
|
}
|
|
1550
|
-
if (!
|
|
1551
|
-
const
|
|
1552
|
-
for (const i in
|
|
1553
|
-
if (
|
|
1722
|
+
if (!r && e && e.parent) {
|
|
1723
|
+
const s = (o) => {
|
|
1724
|
+
for (const i in o)
|
|
1725
|
+
if (o[i] === t)
|
|
1554
1726
|
return i;
|
|
1555
1727
|
};
|
|
1556
|
-
|
|
1728
|
+
r = s(
|
|
1557
1729
|
e.components || e.parent.type.components
|
|
1558
|
-
) ||
|
|
1730
|
+
) || s(e.appContext.components);
|
|
1559
1731
|
}
|
|
1560
|
-
return
|
|
1732
|
+
return r ? hs(r) : n ? "App" : "Anonymous";
|
|
1561
1733
|
}
|
|
1562
|
-
function
|
|
1734
|
+
function wn(e) {
|
|
1563
1735
|
return E(e) && "__vccOpts" in e;
|
|
1564
1736
|
}
|
|
1565
|
-
function
|
|
1566
|
-
return !!(e && e.__v_isShallow);
|
|
1567
|
-
}
|
|
1568
|
-
function ho() {
|
|
1737
|
+
function _s() {
|
|
1569
1738
|
if (process.env.NODE_ENV === "production" || typeof window == "undefined")
|
|
1570
1739
|
return;
|
|
1571
|
-
const e = { style: "color:#3ba776" }, t = { style: "color:#
|
|
1572
|
-
|
|
1573
|
-
|
|
1740
|
+
const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, s = {
|
|
1741
|
+
__vue_custom_formatter: !0,
|
|
1742
|
+
header(l) {
|
|
1743
|
+
return b(l) ? l.__isVue ? ["div", e, "VueInstance"] : R(l) ? [
|
|
1574
1744
|
"div",
|
|
1575
1745
|
{},
|
|
1576
|
-
["span", e,
|
|
1746
|
+
["span", e, h(l)],
|
|
1577
1747
|
"<",
|
|
1578
|
-
c(
|
|
1748
|
+
c(l.value),
|
|
1579
1749
|
">"
|
|
1580
|
-
] :
|
|
1750
|
+
] : ee(l) ? [
|
|
1581
1751
|
"div",
|
|
1582
1752
|
{},
|
|
1583
|
-
["span", e,
|
|
1753
|
+
["span", e, T(l) ? "ShallowReactive" : "Reactive"],
|
|
1584
1754
|
"<",
|
|
1585
|
-
c(
|
|
1586
|
-
`>${
|
|
1587
|
-
] :
|
|
1755
|
+
c(l),
|
|
1756
|
+
`>${$(l) ? " (readonly)" : ""}`
|
|
1757
|
+
] : $(l) ? [
|
|
1588
1758
|
"div",
|
|
1589
1759
|
{},
|
|
1590
|
-
["span", e,
|
|
1760
|
+
["span", e, T(l) ? "ShallowReadonly" : "Readonly"],
|
|
1591
1761
|
"<",
|
|
1592
|
-
c(
|
|
1762
|
+
c(l),
|
|
1593
1763
|
">"
|
|
1594
1764
|
] : null : null;
|
|
1595
1765
|
},
|
|
1596
|
-
hasBody(
|
|
1597
|
-
return
|
|
1766
|
+
hasBody(l) {
|
|
1767
|
+
return l && l.__isVue;
|
|
1598
1768
|
},
|
|
1599
|
-
body(
|
|
1600
|
-
if (
|
|
1769
|
+
body(l) {
|
|
1770
|
+
if (l && l.__isVue)
|
|
1601
1771
|
return [
|
|
1602
1772
|
"div",
|
|
1603
1773
|
{},
|
|
1604
|
-
...
|
|
1774
|
+
...o(l.$)
|
|
1605
1775
|
];
|
|
1606
1776
|
}
|
|
1607
1777
|
};
|
|
1608
|
-
function
|
|
1609
|
-
const
|
|
1610
|
-
|
|
1611
|
-
const
|
|
1612
|
-
|
|
1613
|
-
const
|
|
1614
|
-
return
|
|
1778
|
+
function o(l) {
|
|
1779
|
+
const d = [];
|
|
1780
|
+
l.type.props && l.props && d.push(i("props", f(l.props))), l.setupState !== M && d.push(i("setup", l.setupState)), l.data !== M && d.push(i("data", f(l.data)));
|
|
1781
|
+
const g = a(l, "computed");
|
|
1782
|
+
g && d.push(i("computed", g));
|
|
1783
|
+
const O = a(l, "inject");
|
|
1784
|
+
return O && d.push(i("injected", O)), d.push([
|
|
1615
1785
|
"div",
|
|
1616
1786
|
{},
|
|
1617
1787
|
[
|
|
1618
1788
|
"span",
|
|
1619
1789
|
{
|
|
1620
|
-
style:
|
|
1790
|
+
style: r.style + ";opacity:0.66"
|
|
1621
1791
|
},
|
|
1622
1792
|
"$ (internal): "
|
|
1623
1793
|
],
|
|
1624
|
-
["object", { object:
|
|
1625
|
-
]),
|
|
1794
|
+
["object", { object: l }]
|
|
1795
|
+
]), d;
|
|
1626
1796
|
}
|
|
1627
|
-
function i(
|
|
1628
|
-
return
|
|
1797
|
+
function i(l, d) {
|
|
1798
|
+
return d = I({}, d), Object.keys(d).length ? [
|
|
1629
1799
|
"div",
|
|
1630
1800
|
{ style: "line-height:1.25em;margin-bottom:0.6em" },
|
|
1631
1801
|
[
|
|
@@ -1633,49 +1803,57 @@ function ho() {
|
|
|
1633
1803
|
{
|
|
1634
1804
|
style: "color:#476582"
|
|
1635
1805
|
},
|
|
1636
|
-
|
|
1806
|
+
l
|
|
1637
1807
|
],
|
|
1638
1808
|
[
|
|
1639
1809
|
"div",
|
|
1640
1810
|
{
|
|
1641
1811
|
style: "padding-left:1.25em"
|
|
1642
1812
|
},
|
|
1643
|
-
...Object.keys(
|
|
1813
|
+
...Object.keys(d).map((g) => [
|
|
1644
1814
|
"div",
|
|
1645
1815
|
{},
|
|
1646
|
-
["span",
|
|
1647
|
-
c(
|
|
1816
|
+
["span", r, g + ": "],
|
|
1817
|
+
c(d[g], !1)
|
|
1648
1818
|
])
|
|
1649
1819
|
]
|
|
1650
1820
|
] : ["span", {}];
|
|
1651
1821
|
}
|
|
1652
|
-
function c(
|
|
1653
|
-
return typeof
|
|
1822
|
+
function c(l, d = !0) {
|
|
1823
|
+
return typeof l == "number" ? ["span", t, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", r, l] : b(l) ? ["object", { object: d ? f(l) : l }] : ["span", n, String(l)];
|
|
1654
1824
|
}
|
|
1655
|
-
function l
|
|
1656
|
-
const
|
|
1657
|
-
if (E(
|
|
1825
|
+
function a(l, d) {
|
|
1826
|
+
const g = l.type;
|
|
1827
|
+
if (E(g))
|
|
1658
1828
|
return;
|
|
1659
|
-
const
|
|
1660
|
-
for (const
|
|
1661
|
-
u(
|
|
1662
|
-
return
|
|
1663
|
-
}
|
|
1664
|
-
function u(
|
|
1665
|
-
const
|
|
1666
|
-
if (
|
|
1829
|
+
const O = {};
|
|
1830
|
+
for (const V in l.ctx)
|
|
1831
|
+
u(g, V, d) && (O[V] = l.ctx[V]);
|
|
1832
|
+
return O;
|
|
1833
|
+
}
|
|
1834
|
+
function u(l, d, g) {
|
|
1835
|
+
const O = l[g];
|
|
1836
|
+
if (m(O) && O.includes(d) || b(O) && d in O || l.extends && u(l.extends, d, g) || l.mixins && l.mixins.some((V) => u(V, d, g)))
|
|
1667
1837
|
return !0;
|
|
1668
1838
|
}
|
|
1669
|
-
function
|
|
1670
|
-
return
|
|
1839
|
+
function h(l) {
|
|
1840
|
+
return T(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
|
|
1671
1841
|
}
|
|
1672
|
-
window.devtoolsFormatters ? window.devtoolsFormatters.push(
|
|
1673
|
-
}
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1842
|
+
window.devtoolsFormatters ? window.devtoolsFormatters.push(s) : window.devtoolsFormatters = [s];
|
|
1843
|
+
}
|
|
1844
|
+
process.env.NODE_ENV;
|
|
1845
|
+
process.env.NODE_ENV;
|
|
1846
|
+
process.env.NODE_ENV;
|
|
1847
|
+
/**
|
|
1848
|
+
* vue v3.4.38
|
|
1849
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
1850
|
+
* @license MIT
|
|
1851
|
+
**/
|
|
1852
|
+
function ms() {
|
|
1853
|
+
_s();
|
|
1854
|
+
}
|
|
1855
|
+
process.env.NODE_ENV !== "production" && ms();
|
|
1856
|
+
const N = {
|
|
1679
1857
|
KEY: "$xtm",
|
|
1680
1858
|
// 父应用注入子应用实例的key
|
|
1681
1859
|
IS_MICRO: "__XT_MICRO",
|
|
@@ -1689,76 +1867,76 @@ const b = {
|
|
|
1689
1867
|
DOM_ID_PREFIX: "xt-micro-ifr-"
|
|
1690
1868
|
// dom id前缀
|
|
1691
1869
|
};
|
|
1692
|
-
function
|
|
1870
|
+
function Se(e, t = window.location.href) {
|
|
1693
1871
|
e = e.replace(/[\[\]]/g, "\\$&");
|
|
1694
|
-
var n = new RegExp("[?&]" + e + "(=([^&#]*)|&|#|$)"),
|
|
1695
|
-
return
|
|
1872
|
+
var n = new RegExp("[?&]" + e + "(=([^&#]*)|&|#|$)"), r = n.exec(t);
|
|
1873
|
+
return r ? r[2] ? decodeURIComponent(r[2].replace(/\+/g, " ")).trim() : "" : null;
|
|
1696
1874
|
}
|
|
1697
|
-
function
|
|
1875
|
+
function gs(e, t, n) {
|
|
1698
1876
|
try {
|
|
1699
1877
|
return e && (n && e.startsWith("#") ? e : new URL(e, t).href);
|
|
1700
|
-
} catch (
|
|
1878
|
+
} catch (r) {
|
|
1701
1879
|
return e;
|
|
1702
1880
|
}
|
|
1703
1881
|
}
|
|
1704
|
-
function
|
|
1705
|
-
const [
|
|
1706
|
-
return i.has(t) ? i.set(t, n) : i.append(t, n),
|
|
1882
|
+
function ws(e, t, n) {
|
|
1883
|
+
const [r, s] = e.split("#"), o = new URL(r), i = o.searchParams;
|
|
1884
|
+
return i.has(t) ? i.set(t, n) : i.append(t, n), s && (o.hash = s), o.search = i.toString(), o.toString();
|
|
1707
1885
|
}
|
|
1708
|
-
const
|
|
1709
|
-
Object.defineProperty(window,
|
|
1886
|
+
const xt = Qt(!1);
|
|
1887
|
+
Object.defineProperty(window, N.IS_MICRO, {
|
|
1710
1888
|
get: function() {
|
|
1711
|
-
return
|
|
1889
|
+
return xt.value;
|
|
1712
1890
|
},
|
|
1713
1891
|
set: function(e) {
|
|
1714
|
-
|
|
1892
|
+
xt.value = e;
|
|
1715
1893
|
}
|
|
1716
1894
|
});
|
|
1717
|
-
const
|
|
1895
|
+
const ze = (e) => `${N.DOM_ID_PREFIX}${e}`, Es = (e) => {
|
|
1718
1896
|
function t(c) {
|
|
1719
1897
|
return c !== null && typeof c == "object" && !Array.isArray(c);
|
|
1720
1898
|
}
|
|
1721
|
-
const n = typeof e.params == "function" ? e.params() : t(e.params) ? e.params : {},
|
|
1722
|
-
if (
|
|
1723
|
-
const c =
|
|
1899
|
+
const n = typeof e.params == "function" ? e.params() : t(e.params) ? e.params : {}, r = typeof e.token == "function" ? e.token() : t(e.token) ? e.token : "", s = new URL(e.url.indexOf("http") > -1 ? e.url : window.location.origin + e.url), o = Se(e.name);
|
|
1900
|
+
if (o) {
|
|
1901
|
+
const c = gs(o, e.url, !0);
|
|
1724
1902
|
if (c) {
|
|
1725
|
-
const
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
}),
|
|
1903
|
+
const a = new URL(c);
|
|
1904
|
+
a.searchParams.forEach((h, l) => {
|
|
1905
|
+
s.searchParams.set(l, h);
|
|
1906
|
+
}), s.hash = a.hash;
|
|
1729
1907
|
}
|
|
1730
1908
|
}
|
|
1731
|
-
if (
|
|
1909
|
+
if (s.searchParams.set(N.IS_MICRO, !0 + ""), s.searchParams.set(N.MICRO_NAME, e.name), r && s.searchParams.set(N.MICRO_TOKEN, r), n)
|
|
1732
1910
|
for (let c of Object.keys(n))
|
|
1733
|
-
|
|
1911
|
+
s.searchParams.set(c, n[c]);
|
|
1734
1912
|
const i = new URL(window.location.href);
|
|
1735
|
-
return i.searchParams.delete(e.name), window.history.replaceState({}, "", i.href),
|
|
1913
|
+
return i.searchParams.delete(e.name), window.history.replaceState({}, "", i.href), s.href;
|
|
1736
1914
|
};
|
|
1737
|
-
class
|
|
1915
|
+
class Os {
|
|
1738
1916
|
constructor(t) {
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1917
|
+
pe(this, "app");
|
|
1918
|
+
pe(this, "dom");
|
|
1919
|
+
pe(this, "panel");
|
|
1742
1920
|
return this.app = t, t.preload && this.preload(), this.dom = void 0, this.panel = void 0, this;
|
|
1743
1921
|
}
|
|
1744
1922
|
mount(t, n = !1) {
|
|
1745
|
-
let
|
|
1746
|
-
if (t ? (typeof t == "string" ?
|
|
1747
|
-
let
|
|
1748
|
-
if (!
|
|
1749
|
-
|
|
1750
|
-
const
|
|
1751
|
-
|
|
1923
|
+
let r;
|
|
1924
|
+
if (t ? (typeof t == "string" ? r = document.querySelector(t) : r = t, r.innerHTML = "") : r = document.body, r) {
|
|
1925
|
+
let s = document.getElementById(ze(this.app.name));
|
|
1926
|
+
if (!s) {
|
|
1927
|
+
s = document.createElement("iframe"), s.id = ze(this.app.name);
|
|
1928
|
+
const o = Es(this.app);
|
|
1929
|
+
s.src = o, s.classList.add("micro-iframe"), s.addEventListener("load", (i) => {
|
|
1752
1930
|
this.onLoad.call(this, i);
|
|
1753
|
-
}),
|
|
1931
|
+
}), s.addEventListener("error", this.onError), s.addEventListener("unload", this.onUnload), this.dom = s;
|
|
1754
1932
|
}
|
|
1755
|
-
n ?
|
|
1933
|
+
n ? s.style.display = "none" : s.style.removeProperty("display"), this.panel = r, r.appendChild(s);
|
|
1756
1934
|
} else
|
|
1757
1935
|
throw new Error("el not found");
|
|
1758
1936
|
}
|
|
1759
1937
|
unmount() {
|
|
1760
1938
|
var n;
|
|
1761
|
-
const t = document.getElementById(
|
|
1939
|
+
const t = document.getElementById(ze(this.app.name));
|
|
1762
1940
|
if (t)
|
|
1763
1941
|
this.app.preload ? (t.style.display = "none", document.body.appendChild(t)) : (n = this.panel) == null || n.removeChild(t);
|
|
1764
1942
|
else
|
|
@@ -1779,17 +1957,17 @@ class Eo {
|
|
|
1779
1957
|
this.mount(void 0, !0);
|
|
1780
1958
|
}
|
|
1781
1959
|
changeOptions(t) {
|
|
1782
|
-
this.app =
|
|
1960
|
+
this.app = W(W({}, this.app), t);
|
|
1783
1961
|
}
|
|
1784
1962
|
onLoad(t) {
|
|
1785
|
-
|
|
1963
|
+
Ns(this);
|
|
1786
1964
|
}
|
|
1787
1965
|
onUnload(t) {
|
|
1788
1966
|
}
|
|
1789
1967
|
onError() {
|
|
1790
1968
|
}
|
|
1791
1969
|
}
|
|
1792
|
-
const
|
|
1970
|
+
const Ns = (e) => {
|
|
1793
1971
|
var t, n;
|
|
1794
1972
|
(n = (t = e.dom) == null ? void 0 : t.contentWindow) == null || n.postMessage(
|
|
1795
1973
|
{
|
|
@@ -1804,108 +1982,108 @@ const Oo = (e) => {
|
|
|
1804
1982
|
},
|
|
1805
1983
|
"*"
|
|
1806
1984
|
);
|
|
1807
|
-
},
|
|
1985
|
+
}, vs = () => {
|
|
1808
1986
|
window.addEventListener("message", (e) => {
|
|
1809
1987
|
if (e.data.cmd === "$xt/micro/sync") {
|
|
1810
|
-
const t = [
|
|
1811
|
-
for (let
|
|
1812
|
-
n.searchParams.delete(
|
|
1988
|
+
const t = [N.IS_MICRO, N.MICRO_NAME, N.MICRO_TOKEN], n = new URL(window.decodeURIComponent(e.data.data.url), e.origin);
|
|
1989
|
+
for (let s of t)
|
|
1990
|
+
n.searchParams.delete(s);
|
|
1813
1991
|
console.log("tempUrl", n.href);
|
|
1814
|
-
const
|
|
1815
|
-
window.history.replaceState(null, "",
|
|
1992
|
+
const r = ws(window.location.href, e.data.data.name, n.href);
|
|
1993
|
+
window.history.replaceState(null, "", r);
|
|
1816
1994
|
}
|
|
1817
1995
|
});
|
|
1818
|
-
},
|
|
1819
|
-
const n =
|
|
1820
|
-
n && (window[
|
|
1821
|
-
function
|
|
1996
|
+
}, Ps = (...t) => ht(void 0, [...t], function* (e = {}) {
|
|
1997
|
+
const n = Se(N.IS_MICRO), r = Se(N.MICRO_NAME);
|
|
1998
|
+
n && (window[N.IS_MICRO] = !0);
|
|
1999
|
+
function s(i) {
|
|
1822
2000
|
var c = document.styleSheets[0];
|
|
1823
2001
|
if (!c) {
|
|
1824
|
-
var
|
|
1825
|
-
document.head.appendChild(
|
|
2002
|
+
var a = document.createElement("style");
|
|
2003
|
+
document.head.appendChild(a), c = a.sheet;
|
|
1826
2004
|
}
|
|
1827
2005
|
c.insertRule(i, c.cssRules.length);
|
|
1828
2006
|
}
|
|
1829
|
-
e.hideHeaderCssSelector &&
|
|
1830
|
-
i.data.cmd === `$xt/micro/${
|
|
1831
|
-
}),
|
|
1832
|
-
const
|
|
1833
|
-
e.authHandler &&
|
|
2007
|
+
window[N.IS_MICRO] && e.hideHeaderCssSelector && s(`${e.hideHeaderCssSelector} { display: none !important; }`), window.addEventListener("message", (i) => {
|
|
2008
|
+
i.data.cmd === `$xt/micro/${r}` && (console.log("子应用收到消息:", r), window[N.MICRO_APP] = je(W({}, i.data.data), { mainBaseURL: i.origin }));
|
|
2009
|
+
}), ys(window);
|
|
2010
|
+
const o = Se(N.MICRO_TOKEN);
|
|
2011
|
+
e.authHandler && o && (yield e.authHandler(o));
|
|
1834
2012
|
});
|
|
1835
|
-
function
|
|
1836
|
-
const t = e.history, n = t.pushState,
|
|
1837
|
-
t.pushState = function(
|
|
1838
|
-
n.call(t,
|
|
1839
|
-
}, t.replaceState = function(
|
|
1840
|
-
|
|
2013
|
+
function ys(e) {
|
|
2014
|
+
const t = e.history, n = t.pushState, r = t.replaceState;
|
|
2015
|
+
t.pushState = function(s, o, i) {
|
|
2016
|
+
n.call(t, s, o, i), Pt();
|
|
2017
|
+
}, t.replaceState = function(s, o, i) {
|
|
2018
|
+
r.call(t, s, o, i), Pt();
|
|
1841
2019
|
};
|
|
1842
2020
|
}
|
|
1843
|
-
function
|
|
1844
|
-
if (!window[
|
|
2021
|
+
function Pt() {
|
|
2022
|
+
if (!window[N.MICRO_APP])
|
|
1845
2023
|
return;
|
|
1846
|
-
const { name: e, sync: t, mainBaseURL: n } = window[
|
|
2024
|
+
const { name: e, sync: t, mainBaseURL: n } = window[N.MICRO_APP], r = window.location.pathname + window.location.search + window.location.hash;
|
|
1847
2025
|
window.parent.postMessage({
|
|
1848
2026
|
cmd: "$xt/micro/sync",
|
|
1849
2027
|
data: {
|
|
1850
2028
|
name: e,
|
|
1851
|
-
url: window.encodeURIComponent(
|
|
2029
|
+
url: window.encodeURIComponent(r)
|
|
1852
2030
|
}
|
|
1853
2031
|
}, n);
|
|
1854
2032
|
}
|
|
1855
|
-
let
|
|
1856
|
-
const
|
|
2033
|
+
let Ve = {};
|
|
2034
|
+
const bs = {
|
|
1857
2035
|
url: "",
|
|
1858
2036
|
name: "",
|
|
1859
2037
|
sync: !0
|
|
1860
|
-
},
|
|
2038
|
+
}, Vs = (e) => {
|
|
1861
2039
|
if (!e.url || e.url === "" || e.url === "undefined") {
|
|
1862
2040
|
console.error("app url is required", e);
|
|
1863
2041
|
return;
|
|
1864
2042
|
}
|
|
1865
|
-
const t = Object.assign({}, e,
|
|
1866
|
-
return
|
|
1867
|
-
instance: new
|
|
1868
|
-
}),
|
|
1869
|
-
},
|
|
1870
|
-
let
|
|
1871
|
-
|
|
1872
|
-
}),
|
|
1873
|
-
let t =
|
|
2043
|
+
const t = Object.assign({}, e, bs);
|
|
2044
|
+
return Ve[e.name] = je(W({}, t), {
|
|
2045
|
+
instance: new Os(e)
|
|
2046
|
+
}), Ve[e.name];
|
|
2047
|
+
}, En = (e) => Ve[e], Ss = (e, t) => Ve[e.name] = W(W({}, e), t), Rs = (e, t) => new Promise((n, r) => {
|
|
2048
|
+
let s = En(e);
|
|
2049
|
+
s ? (t && (s.instance.changeOptions(t), s = Ss(s, t)), s.preload ? s.instance.preloadRender(s.el) : s.instance.mount(s.el), n(s)) : r("app not found");
|
|
2050
|
+
}), Is = (e) => {
|
|
2051
|
+
let t = En(e);
|
|
1874
2052
|
t && t.instance.unmount();
|
|
1875
|
-
},
|
|
2053
|
+
}, Cs = /* @__PURE__ */ Vr({
|
|
1876
2054
|
__name: "XTMicroView",
|
|
1877
2055
|
props: {
|
|
1878
2056
|
appId: String
|
|
1879
2057
|
},
|
|
1880
2058
|
setup(e) {
|
|
1881
|
-
const t = e, n =
|
|
1882
|
-
t.appId &&
|
|
2059
|
+
const t = e, n = Qt(), r = () => {
|
|
2060
|
+
t.appId && Rs(t.appId, {
|
|
1883
2061
|
el: n.value
|
|
1884
2062
|
});
|
|
1885
2063
|
};
|
|
1886
|
-
return
|
|
1887
|
-
|
|
1888
|
-
}),
|
|
1889
|
-
|
|
1890
|
-
}),
|
|
2064
|
+
return Yr(() => t.appId, (s, o) => {
|
|
2065
|
+
s !== o && o && Is(o), r();
|
|
2066
|
+
}), Dr(() => {
|
|
2067
|
+
r();
|
|
2068
|
+
}), Tr(() => {
|
|
1891
2069
|
console.log("微应用销毁", t.appId);
|
|
1892
|
-
}), (
|
|
2070
|
+
}), (s, o) => (ts(), ss("div", {
|
|
1893
2071
|
ref_key: "refPanel",
|
|
1894
2072
|
ref: n,
|
|
1895
2073
|
class: "xt-micro w-100% h-100% overflow-hidden"
|
|
1896
2074
|
}, null, 512));
|
|
1897
2075
|
}
|
|
1898
2076
|
});
|
|
1899
|
-
const
|
|
2077
|
+
const Ms = {
|
|
1900
2078
|
install: (e, t = {}) => {
|
|
1901
|
-
e.component("xt-micro-view",
|
|
2079
|
+
e.component("xt-micro-view", Cs), vs();
|
|
1902
2080
|
}
|
|
1903
2081
|
};
|
|
1904
2082
|
export {
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
2083
|
+
Ms as default,
|
|
2084
|
+
En as getApp,
|
|
2085
|
+
Ps as microInit,
|
|
2086
|
+
Vs as setupApp,
|
|
2087
|
+
Rs as startApp,
|
|
2088
|
+
Is as stopApp
|
|
1911
2089
|
};
|