@vtj/parser 0.19.16 → 0.19.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -13
- package/dist/index.mjs +1138 -1114
- package/package.json +3 -3
- package/types/version.d.ts +2 -2
- package/types/vue/replacer.d.ts +2 -0
package/dist/index.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { parse as
|
|
2
|
-
import { parse as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { BlockModel as
|
|
6
|
-
import { GLOBAL_API_MAP as
|
|
1
|
+
import { parse as Ge, compileTemplate as He } from "@vue/compiler-sfc";
|
|
2
|
+
import { parse as yu } from "@babel/parser";
|
|
3
|
+
import ve from "@babel/traverse";
|
|
4
|
+
import Ee from "@babel/generator";
|
|
5
|
+
import { BlockModel as We } from "@vtj/core";
|
|
6
|
+
import { GLOBAL_API_MAP as ge, UI_PACKAGES as Su, UI_GLOBAL_API_MAPS as Je, tsFormatter as ae } from "@vtj/coder";
|
|
7
7
|
import { NodeTypes as w } from "@vue/compiler-core";
|
|
8
|
-
import { upperFirstCamelCase as
|
|
9
|
-
import
|
|
10
|
-
import * as
|
|
8
|
+
import { upperFirstCamelCase as vu, unBase64 as Eu, uid as re } from "@vtj/base";
|
|
9
|
+
import wu from "postcss";
|
|
10
|
+
import * as Iu from "sass";
|
|
11
11
|
import * as q from "@babel/types";
|
|
12
12
|
/**!
|
|
13
13
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
14
14
|
* @name @vtj/parser
|
|
15
15
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
16
|
-
* @version 0.19.
|
|
16
|
+
* @version 0.19.17
|
|
17
17
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
18
18
|
*/
|
|
19
|
-
const
|
|
20
|
-
function
|
|
21
|
-
const { descriptor:
|
|
19
|
+
const h0 = "0.19.17";
|
|
20
|
+
function P(u) {
|
|
21
|
+
const { descriptor: e, errors: t } = Ge(u), a = e.template?.content || "", r = !!e.scriptSetup, n = (e.scriptSetup || e.script)?.content || "", s = e.styles.map((i) => i.content);
|
|
22
22
|
return {
|
|
23
23
|
template: a,
|
|
24
24
|
script: n,
|
|
@@ -27,16 +27,16 @@ function M(e) {
|
|
|
27
27
|
isScriptSetup: r
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
function _(
|
|
31
|
-
return
|
|
30
|
+
function _(u) {
|
|
31
|
+
return yu(u, { sourceType: "module", plugins: ["typescript"] });
|
|
32
32
|
}
|
|
33
|
-
function J(
|
|
34
|
-
return (
|
|
33
|
+
function J(u, e) {
|
|
34
|
+
return (ve.default || ve)(u, e);
|
|
35
35
|
}
|
|
36
|
-
function A(
|
|
37
|
-
if (!
|
|
36
|
+
function A(u) {
|
|
37
|
+
if (!u) return "";
|
|
38
38
|
try {
|
|
39
|
-
return
|
|
39
|
+
return te(u), (Ee.default || Ee)(u, {
|
|
40
40
|
comments: !1,
|
|
41
41
|
concise: !0,
|
|
42
42
|
retainLines: !1,
|
|
@@ -44,64 +44,64 @@ function A(e) {
|
|
|
44
44
|
minimal: !0
|
|
45
45
|
}
|
|
46
46
|
}).code;
|
|
47
|
-
} catch (
|
|
48
|
-
return console.error("代码生成错误",
|
|
47
|
+
} catch (e) {
|
|
48
|
+
return console.error("代码生成错误", e), "";
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const Au = /* @__PURE__ */ new Set([
|
|
52
52
|
"TSAsExpression",
|
|
53
53
|
"TSTypeAssertion",
|
|
54
54
|
"TSNonNullExpression"
|
|
55
55
|
]);
|
|
56
|
-
function
|
|
57
|
-
if (!(!
|
|
58
|
-
if (Array.isArray(
|
|
59
|
-
for (const
|
|
56
|
+
function te(u) {
|
|
57
|
+
if (!(!u || typeof u != "object")) {
|
|
58
|
+
if (Array.isArray(u)) {
|
|
59
|
+
for (const e of u) te(e);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
63
|
-
const
|
|
64
|
-
|
|
62
|
+
if (Au.has(u.type) && u.expression) {
|
|
63
|
+
const e = u.expression;
|
|
64
|
+
te(e);
|
|
65
65
|
const t = {
|
|
66
|
-
start:
|
|
67
|
-
end:
|
|
68
|
-
loc:
|
|
66
|
+
start: u.start,
|
|
67
|
+
end: u.end,
|
|
68
|
+
loc: u.loc
|
|
69
69
|
};
|
|
70
|
-
for (const a of Object.keys(
|
|
71
|
-
a === "type" || a === "loc" || a === "start" || a === "end" || a === "extra" || a === "leadingComments" || a === "trailingComments" || a === "innerComments" || (
|
|
72
|
-
|
|
70
|
+
for (const a of Object.keys(e))
|
|
71
|
+
a === "type" || a === "loc" || a === "start" || a === "end" || a === "extra" || a === "leadingComments" || a === "trailingComments" || a === "innerComments" || (u[a] = e[a]);
|
|
72
|
+
u.type = e.type, u.start = t.start, u.end = t.end, u.loc = t.loc, delete u.typeAnnotation, delete u.typeParameters;
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
|
-
delete
|
|
76
|
-
for (const
|
|
77
|
-
|
|
75
|
+
delete u.typeAnnotation, delete u.returnType, delete u.typeParameters, u.type === "Identifier" && delete u.optional;
|
|
76
|
+
for (const e of Object.keys(u))
|
|
77
|
+
e === "type" || e === "loc" || e === "start" || e === "end" || e === "extra" || e === "leadingComments" || e === "trailingComments" || e === "innerComments" || e === "errors" || te(u[e]);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return !!
|
|
80
|
+
function ne(u) {
|
|
81
|
+
return !!u && u.type === "JSExpression";
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return typeof
|
|
83
|
+
function ku(u) {
|
|
84
|
+
return typeof u == "object" && !!u && u.type === "JSFunction";
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return !!
|
|
86
|
+
function oe(u) {
|
|
87
|
+
return !!ne(u) || !!ku(u);
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return !!
|
|
89
|
+
function Tu(u) {
|
|
90
|
+
return !!u && !ne(u) && typeof u != "string";
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Xe(u, e) {
|
|
93
93
|
try {
|
|
94
|
-
const t = _(
|
|
95
|
-
return J(t,
|
|
94
|
+
const t = _(u);
|
|
95
|
+
return J(t, e), A(t) || "";
|
|
96
96
|
} catch {
|
|
97
97
|
return "";
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
if (!
|
|
100
|
+
function Nu(u) {
|
|
101
|
+
if (!u) return "";
|
|
102
102
|
try {
|
|
103
|
-
const
|
|
104
|
-
return J(
|
|
103
|
+
const e = _(u);
|
|
104
|
+
return J(e, {
|
|
105
105
|
// TS as 断言 / <T> 断言 / 非空断言 → 只保留表达式本身
|
|
106
106
|
TSAsExpression: (t) => {
|
|
107
107
|
t.replaceWith(t.node.expression);
|
|
@@ -130,15 +130,15 @@ function ke(e) {
|
|
|
130
130
|
const a = t.node;
|
|
131
131
|
a && (delete a.typeAnnotation, delete a.returnType, delete a.typeParameters, a.type === "Identifier" && delete a.optional);
|
|
132
132
|
}
|
|
133
|
-
}), A(
|
|
133
|
+
}), A(e) || "";
|
|
134
134
|
} catch {
|
|
135
|
-
return
|
|
135
|
+
return u;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function ju(u, e) {
|
|
139
139
|
const t = [];
|
|
140
140
|
try {
|
|
141
|
-
const { descriptor: a, errors: r } =
|
|
141
|
+
const { descriptor: a, errors: r } = Ge(u);
|
|
142
142
|
if (r && r.length > 0 && r.forEach((s) => {
|
|
143
143
|
const i = s.message || String(s), o = s.loc;
|
|
144
144
|
o && o.start ? t.push(
|
|
@@ -146,9 +146,9 @@ function Te(e, u) {
|
|
|
146
146
|
) : t.push(`Vue SFC 错误: ${i}`);
|
|
147
147
|
}), a.template)
|
|
148
148
|
try {
|
|
149
|
-
const s =
|
|
149
|
+
const s = He({
|
|
150
150
|
id: "validation",
|
|
151
|
-
filename:
|
|
151
|
+
filename: e,
|
|
152
152
|
source: a.template.content,
|
|
153
153
|
isProd: !1
|
|
154
154
|
});
|
|
@@ -173,9 +173,9 @@ function Te(e, u) {
|
|
|
173
173
|
}
|
|
174
174
|
return t.length > 0 ? t : null;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
const
|
|
178
|
-
return
|
|
176
|
+
function x0(u) {
|
|
177
|
+
const e = P(u), t = _(e.script), a = {};
|
|
178
|
+
return e.styles && (a.css = e.styles[0] || ""), J(t, {
|
|
179
179
|
CallExpression(r) {
|
|
180
180
|
const n = r.node.callee?.name;
|
|
181
181
|
if (n) {
|
|
@@ -188,146 +188,183 @@ function p0(e) {
|
|
|
188
188
|
}
|
|
189
189
|
}), a;
|
|
190
190
|
}
|
|
191
|
-
function R(
|
|
192
|
-
if (!
|
|
191
|
+
function R(u, e, t) {
|
|
192
|
+
if (!u.includes(e)) return u;
|
|
193
193
|
try {
|
|
194
|
-
return
|
|
194
|
+
return ze(u, e, t);
|
|
195
195
|
} catch {
|
|
196
|
-
return
|
|
196
|
+
return u;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
function
|
|
200
|
-
|
|
199
|
+
function Vu(u, e) {
|
|
200
|
+
if (!u.includes(e)) return u;
|
|
201
201
|
try {
|
|
202
|
-
|
|
202
|
+
return ze(u, e, `this.${e}.value`, !0);
|
|
203
|
+
} catch {
|
|
204
|
+
return u;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
function ze(u, e, t, a = !1) {
|
|
208
|
+
let r, n = 0;
|
|
209
|
+
try {
|
|
210
|
+
r = _(u);
|
|
203
211
|
} catch {
|
|
204
212
|
try {
|
|
205
|
-
const
|
|
206
|
-
|
|
213
|
+
const o = "(()=>{", d = o + u + "})";
|
|
214
|
+
r = _(d), n = o.length;
|
|
207
215
|
} catch {
|
|
208
|
-
const
|
|
209
|
-
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
const
|
|
213
|
-
if (J(
|
|
214
|
-
Identifier(
|
|
215
|
-
const
|
|
216
|
-
if (
|
|
217
|
-
const
|
|
218
|
-
if (
|
|
219
|
-
const
|
|
220
|
-
if (
|
|
221
|
-
const
|
|
222
|
-
|
|
216
|
+
const o = "(()=>(", d = o + u + "))";
|
|
217
|
+
r = _(d), n = o.length;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
const s = [];
|
|
221
|
+
if (J(r, {
|
|
222
|
+
Identifier(o) {
|
|
223
|
+
const c = o.node;
|
|
224
|
+
if (c.name !== e) return;
|
|
225
|
+
const d = Cu(o);
|
|
226
|
+
if (d === "skip") return;
|
|
227
|
+
const l = (c.start ?? 0) - n, p = (c.end ?? 0) - n;
|
|
228
|
+
if (l < 0 || p > u.length) return;
|
|
229
|
+
const b = a && d === "replace" && qu(o) ? `this.${e}` : t, m = d === "expand" ? `${e}: ${t}` : b;
|
|
230
|
+
s.some((y) => y.start === l && y.end === p) || s.push({ start: l, end: p, text: m });
|
|
223
231
|
},
|
|
224
|
-
StringLiteral(
|
|
225
|
-
|
|
232
|
+
StringLiteral(o) {
|
|
233
|
+
Du(o, e, t, n, u, s);
|
|
226
234
|
},
|
|
227
|
-
TemplateLiteral(
|
|
228
|
-
|
|
235
|
+
TemplateLiteral(o) {
|
|
236
|
+
Ru(o, e, t, n, u, s);
|
|
229
237
|
},
|
|
230
|
-
MemberExpression(
|
|
231
|
-
|
|
238
|
+
MemberExpression(o) {
|
|
239
|
+
a ? we(o, e, t, n, u, s) : Ie(
|
|
240
|
+
o,
|
|
241
|
+
e,
|
|
242
|
+
t,
|
|
243
|
+
n,
|
|
244
|
+
u,
|
|
245
|
+
s
|
|
246
|
+
);
|
|
232
247
|
},
|
|
233
|
-
OptionalMemberExpression(
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
248
|
+
OptionalMemberExpression(o) {
|
|
249
|
+
a ? we(o, e, t, n, u, s) : Ie(
|
|
250
|
+
o,
|
|
251
|
+
e,
|
|
252
|
+
t,
|
|
253
|
+
n,
|
|
254
|
+
u,
|
|
255
|
+
s
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
}), s.length === 0) return u;
|
|
259
|
+
s.sort((o, c) => c.start - o.start);
|
|
260
|
+
let i = u;
|
|
261
|
+
for (const { start: o, end: c, text: d } of s)
|
|
262
|
+
i = i.slice(0, o) + d + i.slice(c);
|
|
263
|
+
return i;
|
|
264
|
+
}
|
|
265
|
+
function qu(u) {
|
|
266
|
+
const e = u.parent;
|
|
267
|
+
return (e?.type === "MemberExpression" || e?.type === "OptionalMemberExpression") && e.object === u.node && !e.computed && e.property?.type === "Identifier" && e.property.name === "value";
|
|
242
268
|
}
|
|
243
|
-
function
|
|
244
|
-
const s =
|
|
245
|
-
if (
|
|
246
|
-
|
|
269
|
+
function we(u, e, t, a, r, n) {
|
|
270
|
+
const s = u.node;
|
|
271
|
+
if (s.object?.type !== "Identifier" || s.object.name !== "_ctx" || s.computed || s.property?.type !== "Identifier" || s.property.name !== e)
|
|
272
|
+
return;
|
|
273
|
+
const i = u.parent, o = (i?.type === "MemberExpression" || i?.type === "OptionalMemberExpression") && i.object === s && !i.computed && i.property?.type === "Identifier" && i.property.name === "value", c = (s.start ?? 0) - a, d = (s.end ?? 0) - a;
|
|
274
|
+
c < 0 || d > r.length || n.push({
|
|
275
|
+
start: c,
|
|
276
|
+
end: d,
|
|
277
|
+
text: o ? `this.${e}` : t
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
function Du(u, e, t, a, r, n) {
|
|
281
|
+
const s = u.node;
|
|
282
|
+
if (!s.value.includes(e)) return;
|
|
283
|
+
const i = u.parent;
|
|
247
284
|
if (i?.type !== "NewExpression" || i?.callee?.name !== "RegExp")
|
|
248
285
|
return;
|
|
249
286
|
const o = s.value;
|
|
250
287
|
let c = 0;
|
|
251
288
|
for (; c < o.length; ) {
|
|
252
|
-
const d = o.indexOf(
|
|
289
|
+
const d = o.indexOf(e, c);
|
|
253
290
|
if (d === -1) break;
|
|
254
|
-
const l = 1 + d, p = (s.start ?? 0) - a + l, b = p +
|
|
255
|
-
p >= 0 && b <= r.length && !n.some((m) => m.start === p && m.end === b) && n.push({ start: p, end: b, text: t }), c = d +
|
|
291
|
+
const l = 1 + d, p = (s.start ?? 0) - a + l, b = p + e.length;
|
|
292
|
+
p >= 0 && b <= r.length && !n.some((m) => m.start === p && m.end === b) && n.push({ start: p, end: b, text: t }), c = d + e.length;
|
|
256
293
|
}
|
|
257
294
|
}
|
|
258
|
-
function
|
|
259
|
-
const s =
|
|
295
|
+
function Ru(u, e, t, a, r, n) {
|
|
296
|
+
const s = u.parent;
|
|
260
297
|
if (s?.type !== "NewExpression" || s?.callee?.name !== "RegExp")
|
|
261
298
|
return;
|
|
262
|
-
const o =
|
|
299
|
+
const o = u.node.quasis ?? [];
|
|
263
300
|
for (const c of o) {
|
|
264
301
|
const d = c.value?.raw ?? "";
|
|
265
|
-
if (!d.includes(
|
|
302
|
+
if (!d.includes(e)) continue;
|
|
266
303
|
let l = 0;
|
|
267
304
|
for (; l < d.length; ) {
|
|
268
|
-
const p = d.indexOf(
|
|
305
|
+
const p = d.indexOf(e, l);
|
|
269
306
|
if (p === -1) break;
|
|
270
307
|
const b = (c.start ?? 0) - a;
|
|
271
308
|
if (b < 0 || b > r.length) break;
|
|
272
|
-
const m = b + p,
|
|
273
|
-
m >= 0 &&
|
|
309
|
+
const m = b + p, y = m + e.length;
|
|
310
|
+
m >= 0 && y <= r.length && !n.some((v) => v.start === m && v.end === y) && n.push({ start: m, end: y, text: t }), l = p + e.length;
|
|
274
311
|
}
|
|
275
312
|
}
|
|
276
313
|
}
|
|
277
|
-
function
|
|
278
|
-
const s =
|
|
279
|
-
if (s.object?.type !== "ThisExpression" || s.computed || s.property?.type !== "Identifier" || s.property.name !==
|
|
314
|
+
function Ie(u, e, t, a, r, n) {
|
|
315
|
+
const s = u.node;
|
|
316
|
+
if (s.object?.type !== "ThisExpression" || s.computed || s.property?.type !== "Identifier" || s.property.name !== e)
|
|
280
317
|
return;
|
|
281
318
|
const i = (s.start ?? 0) - a, o = (s.end ?? 0) - a;
|
|
282
319
|
i < 0 || o > r.length || n.some((c) => c.start === i && c.end === o) || n.push({ start: i, end: o, text: t });
|
|
283
320
|
}
|
|
284
|
-
function
|
|
285
|
-
const t =
|
|
321
|
+
function Cu(u, e) {
|
|
322
|
+
const t = u.parent, a = t?.type ?? "", r = u.parentPath?.parent;
|
|
286
323
|
switch (a) {
|
|
287
324
|
// 成员访问 obj.key / obj[key] / obj?.key / obj?.[key]
|
|
288
325
|
case "MemberExpression":
|
|
289
326
|
case "OptionalMemberExpression": {
|
|
290
|
-
if (t.property ===
|
|
327
|
+
if (t.property === u.node)
|
|
291
328
|
return t.computed ? "replace" : "skip";
|
|
292
|
-
if (t.object ===
|
|
329
|
+
if (t.object === u.node)
|
|
293
330
|
return "replace";
|
|
294
331
|
break;
|
|
295
332
|
}
|
|
296
333
|
// 对象属性 { key: val } / { key } / { [key]: val }
|
|
297
334
|
case "ObjectProperty": {
|
|
298
|
-
if (t.key ===
|
|
335
|
+
if (t.key === u.node)
|
|
299
336
|
return t.computed ? "replace" : t.shorthand ? r && r?.type === "ObjectPattern" ? "skip" : "expand" : "skip";
|
|
300
|
-
if (t.value ===
|
|
337
|
+
if (t.value === u.node)
|
|
301
338
|
return r && r?.type === "ObjectPattern" ? "skip" : "replace";
|
|
302
339
|
break;
|
|
303
340
|
}
|
|
304
341
|
// 变量声明 const/let/var key = ...
|
|
305
342
|
case "VariableDeclarator": {
|
|
306
|
-
if (t.id ===
|
|
343
|
+
if (t.id === u.node)
|
|
307
344
|
return "skip";
|
|
308
345
|
break;
|
|
309
346
|
}
|
|
310
347
|
// 函数声明 function key() { }
|
|
311
348
|
case "FunctionDeclaration": {
|
|
312
|
-
if (t.id ===
|
|
349
|
+
if (t.id === u.node)
|
|
313
350
|
return "skip";
|
|
314
351
|
break;
|
|
315
352
|
}
|
|
316
353
|
// 类声明 class key { }
|
|
317
354
|
case "ClassDeclaration": {
|
|
318
|
-
if (t.id ===
|
|
355
|
+
if (t.id === u.node)
|
|
319
356
|
return "skip";
|
|
320
357
|
break;
|
|
321
358
|
}
|
|
322
359
|
// 类表达式 const X = class key { }
|
|
323
360
|
case "ClassExpression": {
|
|
324
|
-
if (t.id ===
|
|
361
|
+
if (t.id === u.node)
|
|
325
362
|
return "skip";
|
|
326
363
|
break;
|
|
327
364
|
}
|
|
328
365
|
// 异常捕获 catch(key) { }
|
|
329
366
|
case "CatchClause": {
|
|
330
|
-
if (t.param ===
|
|
367
|
+
if (t.param === u.node)
|
|
331
368
|
return "skip";
|
|
332
369
|
break;
|
|
333
370
|
}
|
|
@@ -341,79 +378,79 @@ function qe(e, u) {
|
|
|
341
378
|
return "skip";
|
|
342
379
|
// 标签语句 key: for(...)
|
|
343
380
|
case "LabeledStatement": {
|
|
344
|
-
if (t.label ===
|
|
381
|
+
if (t.label === u.node)
|
|
345
382
|
return "skip";
|
|
346
383
|
break;
|
|
347
384
|
}
|
|
348
385
|
// 默认参数 function(key = val)
|
|
349
386
|
case "AssignmentPattern": {
|
|
350
|
-
if (t.left ===
|
|
387
|
+
if (t.left === u.node)
|
|
351
388
|
return "skip";
|
|
352
389
|
break;
|
|
353
390
|
}
|
|
354
391
|
// 展开运算符 ...key
|
|
355
392
|
case "SpreadElement": {
|
|
356
|
-
if (t.argument ===
|
|
393
|
+
if (t.argument === u.node)
|
|
357
394
|
return "replace";
|
|
358
395
|
break;
|
|
359
396
|
}
|
|
360
397
|
// 对象方法 { key() {} }
|
|
361
398
|
case "ObjectMethod": {
|
|
362
|
-
if (t.key ===
|
|
399
|
+
if (t.key === u.node && !t.computed)
|
|
363
400
|
return "skip";
|
|
364
401
|
break;
|
|
365
402
|
}
|
|
366
403
|
// Rest 元素 function(...key)
|
|
367
404
|
case "RestElement": {
|
|
368
|
-
if (t.argument ===
|
|
405
|
+
if (t.argument === u.node)
|
|
369
406
|
return "skip";
|
|
370
407
|
break;
|
|
371
408
|
}
|
|
372
409
|
// 枚举声明 enum key { }
|
|
373
410
|
case "TSEnumDeclaration": {
|
|
374
|
-
if (t.id ===
|
|
411
|
+
if (t.id === u.node)
|
|
375
412
|
return "skip";
|
|
376
413
|
break;
|
|
377
414
|
}
|
|
378
415
|
// 类型别名 type key = ...
|
|
379
416
|
case "TSTypeAliasDeclaration": {
|
|
380
|
-
if (t.id ===
|
|
417
|
+
if (t.id === u.node)
|
|
381
418
|
return "skip";
|
|
382
419
|
break;
|
|
383
420
|
}
|
|
384
421
|
// 接口声明 interface key { }
|
|
385
422
|
case "TSInterfaceDeclaration": {
|
|
386
|
-
if (t.id ===
|
|
423
|
+
if (t.id === u.node)
|
|
387
424
|
return "skip";
|
|
388
425
|
break;
|
|
389
426
|
}
|
|
390
427
|
}
|
|
391
|
-
return
|
|
428
|
+
return _u(u) || Lu(u) ? "skip" : "replace";
|
|
392
429
|
}
|
|
393
|
-
function
|
|
394
|
-
let
|
|
395
|
-
for (;
|
|
396
|
-
const t =
|
|
430
|
+
function _u(u) {
|
|
431
|
+
let e = u.parentPath;
|
|
432
|
+
for (; e; ) {
|
|
433
|
+
const t = e.node, a = t?.type ?? "";
|
|
397
434
|
if (a === "FunctionDeclaration" || a === "FunctionExpression" || a === "ArrowFunctionExpression" || a === "ClassMethod" || a === "ObjectMethod" || a === "TSDeclareFunction")
|
|
398
|
-
return (t.params ?? []).includes(
|
|
435
|
+
return (t.params ?? []).includes(u.node);
|
|
399
436
|
if (a === "Program" || a === "BlockStatement" || a === "ObjectExpression" || a === "ArrayExpression" || a === "StaticBlock")
|
|
400
437
|
break;
|
|
401
|
-
|
|
438
|
+
e = e.parentPath;
|
|
402
439
|
}
|
|
403
440
|
return !1;
|
|
404
441
|
}
|
|
405
|
-
function
|
|
406
|
-
let
|
|
407
|
-
for (;
|
|
408
|
-
const t =
|
|
442
|
+
function Lu(u) {
|
|
443
|
+
let e = u.parentPath;
|
|
444
|
+
for (; e; ) {
|
|
445
|
+
const t = e.node?.type ?? "";
|
|
409
446
|
if (t === "ObjectPattern") return !0;
|
|
410
447
|
if (t === "FunctionDeclaration" || t === "FunctionExpression" || t === "ArrowFunctionExpression" || t === "Program")
|
|
411
448
|
break;
|
|
412
|
-
|
|
449
|
+
e = e.parentPath;
|
|
413
450
|
}
|
|
414
451
|
return !1;
|
|
415
452
|
}
|
|
416
|
-
function
|
|
453
|
+
function Ae(u, e, t) {
|
|
417
454
|
const {
|
|
418
455
|
context: a = {},
|
|
419
456
|
computed: r = [],
|
|
@@ -421,37 +458,37 @@ function Iu(e, u, t) {
|
|
|
421
458
|
members: s = [],
|
|
422
459
|
props: i = [],
|
|
423
460
|
platform: o
|
|
424
|
-
} = t || {}, c = Array.from(a[
|
|
461
|
+
} = t || {}, c = Array.from(a[e || ""] || /* @__PURE__ */ new Set());
|
|
425
462
|
if (c)
|
|
426
463
|
for (const d of c)
|
|
427
|
-
|
|
464
|
+
u = R(u, d, `this.context.${d}`);
|
|
428
465
|
for (const d of r)
|
|
429
|
-
|
|
466
|
+
u.includes(`this.${d}.value`) || (u = R(u, d, `this.${d}.value`));
|
|
430
467
|
for (const d of i)
|
|
431
|
-
|
|
468
|
+
u = R(u, d, `this.${d}`);
|
|
432
469
|
for (const [d, l] of Object.entries(n))
|
|
433
|
-
|
|
470
|
+
u = R(u, d, `this.$libs.${l}.${d}`), u = R(u, `this.${d}`, `this.$libs.${l}.${d}`);
|
|
434
471
|
for (const d of s)
|
|
435
|
-
|
|
472
|
+
u = R(u, d, `this.${d}`);
|
|
436
473
|
if (o === "uniapp") {
|
|
437
474
|
const d = /\suni\./g;
|
|
438
|
-
|
|
475
|
+
u = u.replace(d, "this.$libs.UniH5.uni.");
|
|
439
476
|
}
|
|
440
|
-
return
|
|
477
|
+
return u = u.replace(/_ctx\./g, "this."), u = u.replace(/this\.this\./g, "this."), u;
|
|
441
478
|
}
|
|
442
|
-
function k(
|
|
479
|
+
function k(u) {
|
|
443
480
|
return {
|
|
444
481
|
type: "JSExpression",
|
|
445
|
-
value: /^\{[\w\W]*\}$/.test(
|
|
482
|
+
value: /^\{[\w\W]*\}$/.test(u) ? `(${u})` : u
|
|
446
483
|
};
|
|
447
484
|
}
|
|
448
|
-
function C(
|
|
485
|
+
function C(u) {
|
|
449
486
|
return {
|
|
450
487
|
type: "JSFunction",
|
|
451
|
-
value:
|
|
488
|
+
value: u
|
|
452
489
|
};
|
|
453
490
|
}
|
|
454
|
-
const
|
|
491
|
+
const Mu = [
|
|
455
492
|
"beforeCreate",
|
|
456
493
|
"created",
|
|
457
494
|
"beforeMount",
|
|
@@ -465,46 +502,46 @@ const Ce = [
|
|
|
465
502
|
"renderTriggered",
|
|
466
503
|
"activated",
|
|
467
504
|
"deactivated"
|
|
468
|
-
],
|
|
505
|
+
], Pu = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot,svg,path,circle,rect,polygon".split(
|
|
469
506
|
","
|
|
470
|
-
),
|
|
507
|
+
), Ou = "component,slot,template".split(","), Bu = "view,swiper,progress,icon,text,button,checkbox,editor,form,input,label,picker,radio,slider,switch,textarea,audio,camera,image,video,map,canvas".split(
|
|
471
508
|
","
|
|
472
509
|
);
|
|
473
|
-
function
|
|
474
|
-
return
|
|
510
|
+
function Fu(u, e = "web") {
|
|
511
|
+
return e === "uniapp" && Bu.includes(u);
|
|
475
512
|
}
|
|
476
|
-
function
|
|
477
|
-
return (
|
|
513
|
+
function Ze(u, e = "web") {
|
|
514
|
+
return (Pu.includes(u) || Ou.includes(u)) && !Fu(u, e) ? u : vu(u);
|
|
478
515
|
}
|
|
479
|
-
function
|
|
480
|
-
return
|
|
516
|
+
function Qe(u) {
|
|
517
|
+
return u.replace(/\s+/g, " ").split(";").reduce((t, a) => {
|
|
481
518
|
const [r, n] = a.split(":").map((s) => s.trim());
|
|
482
519
|
return r && n && (t[r] = n), t;
|
|
483
520
|
}, {});
|
|
484
521
|
}
|
|
485
|
-
function
|
|
522
|
+
function $u(u, e, t) {
|
|
486
523
|
if (t === "ObjectExpression")
|
|
487
|
-
return `(Object.assign({${
|
|
524
|
+
return `(Object.assign({${u.split(" ").map((r) => `'${r}': true`).join(",")}}, ${e}))`;
|
|
488
525
|
if (t === "ArrayExpression")
|
|
489
|
-
return `([${
|
|
526
|
+
return `([${u.split(" ").map((r) => `'${r}'`).join(",")}].concat(${e}))`;
|
|
490
527
|
}
|
|
491
|
-
function
|
|
492
|
-
const t =
|
|
528
|
+
function Ke(u = "") {
|
|
529
|
+
const t = u.trim().match(/DataSource:\s*([^\n=]+={0,2})/)?.[1] || "";
|
|
493
530
|
try {
|
|
494
|
-
return t ? JSON.parse(
|
|
531
|
+
return t ? JSON.parse(Eu(t)) : null;
|
|
495
532
|
} catch (a) {
|
|
496
533
|
return console.warn("extractDataSource fail", a), null;
|
|
497
534
|
}
|
|
498
535
|
}
|
|
499
|
-
const
|
|
536
|
+
const Uu = /* @__PURE__ */ new Uint16Array(
|
|
500
537
|
// prettier-ignore
|
|
501
|
-
/* @__PURE__ */ 'ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e) => e.charCodeAt(0))
|
|
502
|
-
),
|
|
538
|
+
/* @__PURE__ */ 'ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((u) => u.charCodeAt(0))
|
|
539
|
+
), Gu = /* @__PURE__ */ new Uint16Array(
|
|
503
540
|
// prettier-ignore
|
|
504
|
-
/* @__PURE__ */ "Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((
|
|
541
|
+
/* @__PURE__ */ "Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u) => u.charCodeAt(0))
|
|
505
542
|
);
|
|
506
|
-
var
|
|
507
|
-
const
|
|
543
|
+
var le;
|
|
544
|
+
const Hu = /* @__PURE__ */ new Map([
|
|
508
545
|
[0, 65533],
|
|
509
546
|
// C1 Unicode control character reference replacements
|
|
510
547
|
[128, 8364],
|
|
@@ -534,53 +571,53 @@ const $e = /* @__PURE__ */ new Map([
|
|
|
534
571
|
[156, 339],
|
|
535
572
|
[158, 382],
|
|
536
573
|
[159, 376]
|
|
537
|
-
]),
|
|
574
|
+
]), ke = (
|
|
538
575
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, n/no-unsupported-features/es-builtins
|
|
539
|
-
(
|
|
540
|
-
let
|
|
541
|
-
return
|
|
576
|
+
(le = String.fromCodePoint) !== null && le !== void 0 ? le : function(u) {
|
|
577
|
+
let e = "";
|
|
578
|
+
return u > 65535 && (u -= 65536, e += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), e += String.fromCharCode(u), e;
|
|
542
579
|
}
|
|
543
580
|
);
|
|
544
|
-
function
|
|
545
|
-
var
|
|
546
|
-
return
|
|
581
|
+
function Wu(u) {
|
|
582
|
+
var e;
|
|
583
|
+
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = Hu.get(u)) !== null && e !== void 0 ? e : u;
|
|
547
584
|
}
|
|
548
585
|
var V;
|
|
549
|
-
(function(
|
|
550
|
-
|
|
586
|
+
(function(u) {
|
|
587
|
+
u[u.NUM = 35] = "NUM", u[u.SEMI = 59] = "SEMI", u[u.EQUALS = 61] = "EQUALS", u[u.ZERO = 48] = "ZERO", u[u.NINE = 57] = "NINE", u[u.LOWER_A = 97] = "LOWER_A", u[u.LOWER_F = 102] = "LOWER_F", u[u.LOWER_X = 120] = "LOWER_X", u[u.LOWER_Z = 122] = "LOWER_Z", u[u.UPPER_A = 65] = "UPPER_A", u[u.UPPER_F = 70] = "UPPER_F", u[u.UPPER_Z = 90] = "UPPER_Z";
|
|
551
588
|
})(V || (V = {}));
|
|
552
|
-
const
|
|
589
|
+
const Ju = 32;
|
|
553
590
|
var W;
|
|
554
|
-
(function(
|
|
555
|
-
|
|
591
|
+
(function(u) {
|
|
592
|
+
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
556
593
|
})(W || (W = {}));
|
|
557
|
-
function
|
|
558
|
-
return
|
|
594
|
+
function be(u) {
|
|
595
|
+
return u >= V.ZERO && u <= V.NINE;
|
|
559
596
|
}
|
|
560
|
-
function
|
|
561
|
-
return
|
|
597
|
+
function Xu(u) {
|
|
598
|
+
return u >= V.UPPER_A && u <= V.UPPER_F || u >= V.LOWER_A && u <= V.LOWER_F;
|
|
562
599
|
}
|
|
563
|
-
function
|
|
564
|
-
return
|
|
600
|
+
function zu(u) {
|
|
601
|
+
return u >= V.UPPER_A && u <= V.UPPER_Z || u >= V.LOWER_A && u <= V.LOWER_Z || be(u);
|
|
565
602
|
}
|
|
566
|
-
function
|
|
567
|
-
return
|
|
603
|
+
function Zu(u) {
|
|
604
|
+
return u === V.EQUALS || zu(u);
|
|
568
605
|
}
|
|
569
606
|
var j;
|
|
570
|
-
(function(
|
|
571
|
-
|
|
607
|
+
(function(u) {
|
|
608
|
+
u[u.EntityStart = 0] = "EntityStart", u[u.NumericStart = 1] = "NumericStart", u[u.NumericDecimal = 2] = "NumericDecimal", u[u.NumericHex = 3] = "NumericHex", u[u.NamedEntity = 4] = "NamedEntity";
|
|
572
609
|
})(j || (j = {}));
|
|
573
610
|
var O;
|
|
574
|
-
(function(
|
|
575
|
-
|
|
611
|
+
(function(u) {
|
|
612
|
+
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
|
576
613
|
})(O || (O = {}));
|
|
577
|
-
class
|
|
578
|
-
constructor(
|
|
579
|
-
this.decodeTree =
|
|
614
|
+
class Qu {
|
|
615
|
+
constructor(e, t, a) {
|
|
616
|
+
this.decodeTree = e, this.emitCodePoint = t, this.errors = a, this.state = j.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = O.Strict;
|
|
580
617
|
}
|
|
581
618
|
/** Resets the instance to make it reusable. */
|
|
582
|
-
startEntity(
|
|
583
|
-
this.decodeMode =
|
|
619
|
+
startEntity(e) {
|
|
620
|
+
this.decodeMode = e, this.state = j.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
|
584
621
|
}
|
|
585
622
|
/**
|
|
586
623
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
@@ -593,18 +630,18 @@ class Xe {
|
|
|
593
630
|
* @param offset The offset at which the entity begins. Should be 0 if this is not the first call.
|
|
594
631
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
595
632
|
*/
|
|
596
|
-
write(
|
|
633
|
+
write(e, t) {
|
|
597
634
|
switch (this.state) {
|
|
598
635
|
case j.EntityStart:
|
|
599
|
-
return
|
|
636
|
+
return e.charCodeAt(t) === V.NUM ? (this.state = j.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = j.NamedEntity, this.stateNamedEntity(e, t));
|
|
600
637
|
case j.NumericStart:
|
|
601
|
-
return this.stateNumericStart(
|
|
638
|
+
return this.stateNumericStart(e, t);
|
|
602
639
|
case j.NumericDecimal:
|
|
603
|
-
return this.stateNumericDecimal(
|
|
640
|
+
return this.stateNumericDecimal(e, t);
|
|
604
641
|
case j.NumericHex:
|
|
605
|
-
return this.stateNumericHex(
|
|
642
|
+
return this.stateNumericHex(e, t);
|
|
606
643
|
case j.NamedEntity:
|
|
607
|
-
return this.stateNamedEntity(
|
|
644
|
+
return this.stateNamedEntity(e, t);
|
|
608
645
|
}
|
|
609
646
|
}
|
|
610
647
|
/**
|
|
@@ -616,13 +653,13 @@ class Xe {
|
|
|
616
653
|
* @param offset The current offset.
|
|
617
654
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
618
655
|
*/
|
|
619
|
-
stateNumericStart(
|
|
620
|
-
return t >=
|
|
656
|
+
stateNumericStart(e, t) {
|
|
657
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | Ju) === V.LOWER_X ? (this.state = j.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = j.NumericDecimal, this.stateNumericDecimal(e, t));
|
|
621
658
|
}
|
|
622
|
-
addToNumericResult(
|
|
659
|
+
addToNumericResult(e, t, a, r) {
|
|
623
660
|
if (t !== a) {
|
|
624
661
|
const n = a - t;
|
|
625
|
-
this.result = this.result * Math.pow(r, n) + Number.parseInt(
|
|
662
|
+
this.result = this.result * Math.pow(r, n) + Number.parseInt(e.substr(t, n), r), this.consumed += n;
|
|
626
663
|
}
|
|
627
664
|
}
|
|
628
665
|
/**
|
|
@@ -634,16 +671,16 @@ class Xe {
|
|
|
634
671
|
* @param offset The current offset.
|
|
635
672
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
636
673
|
*/
|
|
637
|
-
stateNumericHex(
|
|
674
|
+
stateNumericHex(e, t) {
|
|
638
675
|
const a = t;
|
|
639
|
-
for (; t <
|
|
640
|
-
const r =
|
|
641
|
-
if (
|
|
676
|
+
for (; t < e.length; ) {
|
|
677
|
+
const r = e.charCodeAt(t);
|
|
678
|
+
if (be(r) || Xu(r))
|
|
642
679
|
t += 1;
|
|
643
680
|
else
|
|
644
|
-
return this.addToNumericResult(
|
|
681
|
+
return this.addToNumericResult(e, a, t, 16), this.emitNumericEntity(r, 3);
|
|
645
682
|
}
|
|
646
|
-
return this.addToNumericResult(
|
|
683
|
+
return this.addToNumericResult(e, a, t, 16), -1;
|
|
647
684
|
}
|
|
648
685
|
/**
|
|
649
686
|
* Parses a decimal numeric entity.
|
|
@@ -654,16 +691,16 @@ class Xe {
|
|
|
654
691
|
* @param offset The current offset.
|
|
655
692
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
656
693
|
*/
|
|
657
|
-
stateNumericDecimal(
|
|
694
|
+
stateNumericDecimal(e, t) {
|
|
658
695
|
const a = t;
|
|
659
|
-
for (; t <
|
|
660
|
-
const r =
|
|
661
|
-
if (
|
|
696
|
+
for (; t < e.length; ) {
|
|
697
|
+
const r = e.charCodeAt(t);
|
|
698
|
+
if (be(r))
|
|
662
699
|
t += 1;
|
|
663
700
|
else
|
|
664
|
-
return this.addToNumericResult(
|
|
701
|
+
return this.addToNumericResult(e, a, t, 10), this.emitNumericEntity(r, 2);
|
|
665
702
|
}
|
|
666
|
-
return this.addToNumericResult(
|
|
703
|
+
return this.addToNumericResult(e, a, t, 10), -1;
|
|
667
704
|
}
|
|
668
705
|
/**
|
|
669
706
|
* Validate and emit a numeric entity.
|
|
@@ -678,15 +715,15 @@ class Xe {
|
|
|
678
715
|
* was consumed.
|
|
679
716
|
* @returns The number of characters that were consumed.
|
|
680
717
|
*/
|
|
681
|
-
emitNumericEntity(
|
|
718
|
+
emitNumericEntity(e, t) {
|
|
682
719
|
var a;
|
|
683
720
|
if (this.consumed <= t)
|
|
684
721
|
return (a = this.errors) === null || a === void 0 || a.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
685
|
-
if (
|
|
722
|
+
if (e === V.SEMI)
|
|
686
723
|
this.consumed += 1;
|
|
687
724
|
else if (this.decodeMode === O.Strict)
|
|
688
725
|
return 0;
|
|
689
|
-
return this.emitCodePoint(
|
|
726
|
+
return this.emitCodePoint(Wu(this.result), this.consumed), this.errors && (e !== V.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
690
727
|
}
|
|
691
728
|
/**
|
|
692
729
|
* Parses a named entity.
|
|
@@ -697,16 +734,16 @@ class Xe {
|
|
|
697
734
|
* @param offset The current offset.
|
|
698
735
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
699
736
|
*/
|
|
700
|
-
stateNamedEntity(
|
|
737
|
+
stateNamedEntity(e, t) {
|
|
701
738
|
const { decodeTree: a } = this;
|
|
702
739
|
let r = a[this.treeIndex], n = (r & W.VALUE_LENGTH) >> 14;
|
|
703
|
-
for (; t <
|
|
704
|
-
const s =
|
|
705
|
-
if (this.treeIndex =
|
|
740
|
+
for (; t < e.length; t++, this.excess++) {
|
|
741
|
+
const s = e.charCodeAt(t);
|
|
742
|
+
if (this.treeIndex = Ku(a, r, this.treeIndex + Math.max(1, n), s), this.treeIndex < 0)
|
|
706
743
|
return this.result === 0 || // If we are parsing an attribute
|
|
707
744
|
this.decodeMode === O.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
708
745
|
(n === 0 || // And there should be no invalid characters.
|
|
709
|
-
|
|
746
|
+
Zu(s)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
710
747
|
if (r = a[this.treeIndex], n = (r & W.VALUE_LENGTH) >> 14, n !== 0) {
|
|
711
748
|
if (s === V.SEMI)
|
|
712
749
|
return this.emitNamedEntityData(this.treeIndex, n, this.consumed + this.excess);
|
|
@@ -721,9 +758,9 @@ class Xe {
|
|
|
721
758
|
* @returns The number of characters consumed.
|
|
722
759
|
*/
|
|
723
760
|
emitNotTerminatedNamedEntity() {
|
|
724
|
-
var
|
|
761
|
+
var e;
|
|
725
762
|
const { result: t, decodeTree: a } = this, r = (a[t] & W.VALUE_LENGTH) >> 14;
|
|
726
|
-
return this.emitNamedEntityData(t, r, this.consumed), (
|
|
763
|
+
return this.emitNamedEntityData(t, r, this.consumed), (e = this.errors) === null || e === void 0 || e.missingSemicolonAfterCharacterReference(), this.consumed;
|
|
727
764
|
}
|
|
728
765
|
/**
|
|
729
766
|
* Emit a named entity.
|
|
@@ -734,9 +771,9 @@ class Xe {
|
|
|
734
771
|
*
|
|
735
772
|
* @returns The number of characters consumed.
|
|
736
773
|
*/
|
|
737
|
-
emitNamedEntityData(
|
|
774
|
+
emitNamedEntityData(e, t, a) {
|
|
738
775
|
const { decodeTree: r } = this;
|
|
739
|
-
return this.emitCodePoint(t === 1 ? r[
|
|
776
|
+
return this.emitCodePoint(t === 1 ? r[e] & ~W.VALUE_LENGTH : r[e + 1], a), t === 3 && this.emitCodePoint(r[e + 2], a), a;
|
|
740
777
|
}
|
|
741
778
|
/**
|
|
742
779
|
* Signal to the parser that the end of the input was reached.
|
|
@@ -746,7 +783,7 @@ class Xe {
|
|
|
746
783
|
* @returns The number of characters consumed.
|
|
747
784
|
*/
|
|
748
785
|
end() {
|
|
749
|
-
var
|
|
786
|
+
var e;
|
|
750
787
|
switch (this.state) {
|
|
751
788
|
case j.NamedEntity:
|
|
752
789
|
return this.result !== 0 && (this.decodeMode !== O.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
@@ -756,52 +793,52 @@ class Xe {
|
|
|
756
793
|
case j.NumericHex:
|
|
757
794
|
return this.emitNumericEntity(0, 3);
|
|
758
795
|
case j.NumericStart:
|
|
759
|
-
return (
|
|
796
|
+
return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
760
797
|
case j.EntityStart:
|
|
761
798
|
return 0;
|
|
762
799
|
}
|
|
763
800
|
}
|
|
764
801
|
}
|
|
765
|
-
function
|
|
766
|
-
const r = (
|
|
802
|
+
function Ku(u, e, t, a) {
|
|
803
|
+
const r = (e & W.BRANCH_LENGTH) >> 7, n = e & W.JUMP_TABLE;
|
|
767
804
|
if (r === 0)
|
|
768
805
|
return n !== 0 && a === n ? t : -1;
|
|
769
806
|
if (n) {
|
|
770
807
|
const o = a - n;
|
|
771
|
-
return o < 0 || o >= r ? -1 :
|
|
808
|
+
return o < 0 || o >= r ? -1 : u[t + o] - 1;
|
|
772
809
|
}
|
|
773
810
|
let s = t, i = s + r - 1;
|
|
774
811
|
for (; s <= i; ) {
|
|
775
|
-
const o = s + i >>> 1, c =
|
|
812
|
+
const o = s + i >>> 1, c = u[o];
|
|
776
813
|
if (c < a)
|
|
777
814
|
s = o + 1;
|
|
778
815
|
else if (c > a)
|
|
779
816
|
i = o - 1;
|
|
780
817
|
else
|
|
781
|
-
return
|
|
818
|
+
return u[o + r];
|
|
782
819
|
}
|
|
783
820
|
return -1;
|
|
784
821
|
}
|
|
785
|
-
var
|
|
786
|
-
(function(
|
|
787
|
-
|
|
788
|
-
})(
|
|
822
|
+
var S;
|
|
823
|
+
(function(u) {
|
|
824
|
+
u[u.Tab = 9] = "Tab", u[u.NewLine = 10] = "NewLine", u[u.FormFeed = 12] = "FormFeed", u[u.CarriageReturn = 13] = "CarriageReturn", u[u.Space = 32] = "Space", u[u.ExclamationMark = 33] = "ExclamationMark", u[u.Number = 35] = "Number", u[u.Amp = 38] = "Amp", u[u.SingleQuote = 39] = "SingleQuote", u[u.DoubleQuote = 34] = "DoubleQuote", u[u.Dash = 45] = "Dash", u[u.Slash = 47] = "Slash", u[u.Zero = 48] = "Zero", u[u.Nine = 57] = "Nine", u[u.Semi = 59] = "Semi", u[u.Lt = 60] = "Lt", u[u.Eq = 61] = "Eq", u[u.Gt = 62] = "Gt", u[u.Questionmark = 63] = "Questionmark", u[u.UpperA = 65] = "UpperA", u[u.LowerA = 97] = "LowerA", u[u.UpperF = 70] = "UpperF", u[u.LowerF = 102] = "LowerF", u[u.UpperZ = 90] = "UpperZ", u[u.LowerZ = 122] = "LowerZ", u[u.LowerX = 120] = "LowerX", u[u.OpeningSquareBracket = 91] = "OpeningSquareBracket";
|
|
825
|
+
})(S || (S = {}));
|
|
789
826
|
var f;
|
|
790
|
-
(function(
|
|
791
|
-
|
|
827
|
+
(function(u) {
|
|
828
|
+
u[u.Text = 1] = "Text", u[u.BeforeTagName = 2] = "BeforeTagName", u[u.InTagName = 3] = "InTagName", u[u.InSelfClosingTag = 4] = "InSelfClosingTag", u[u.BeforeClosingTagName = 5] = "BeforeClosingTagName", u[u.InClosingTagName = 6] = "InClosingTagName", u[u.AfterClosingTagName = 7] = "AfterClosingTagName", u[u.BeforeAttributeName = 8] = "BeforeAttributeName", u[u.InAttributeName = 9] = "InAttributeName", u[u.AfterAttributeName = 10] = "AfterAttributeName", u[u.BeforeAttributeValue = 11] = "BeforeAttributeValue", u[u.InAttributeValueDq = 12] = "InAttributeValueDq", u[u.InAttributeValueSq = 13] = "InAttributeValueSq", u[u.InAttributeValueNq = 14] = "InAttributeValueNq", u[u.BeforeDeclaration = 15] = "BeforeDeclaration", u[u.InDeclaration = 16] = "InDeclaration", u[u.InProcessingInstruction = 17] = "InProcessingInstruction", u[u.BeforeComment = 18] = "BeforeComment", u[u.CDATASequence = 19] = "CDATASequence", u[u.InSpecialComment = 20] = "InSpecialComment", u[u.InCommentLike = 21] = "InCommentLike", u[u.BeforeSpecialS = 22] = "BeforeSpecialS", u[u.BeforeSpecialT = 23] = "BeforeSpecialT", u[u.SpecialStartSequence = 24] = "SpecialStartSequence", u[u.InSpecialTag = 25] = "InSpecialTag", u[u.InEntity = 26] = "InEntity";
|
|
792
829
|
})(f || (f = {}));
|
|
793
|
-
function U(
|
|
794
|
-
return
|
|
830
|
+
function U(u) {
|
|
831
|
+
return u === S.Space || u === S.NewLine || u === S.Tab || u === S.FormFeed || u === S.CarriageReturn;
|
|
795
832
|
}
|
|
796
|
-
function
|
|
797
|
-
return
|
|
833
|
+
function ue(u) {
|
|
834
|
+
return u === S.Slash || u === S.Gt || U(u);
|
|
798
835
|
}
|
|
799
|
-
function
|
|
800
|
-
return
|
|
836
|
+
function Yu(u) {
|
|
837
|
+
return u >= S.LowerA && u <= S.LowerZ || u >= S.UpperA && u <= S.UpperZ;
|
|
801
838
|
}
|
|
802
839
|
var B;
|
|
803
|
-
(function(
|
|
804
|
-
|
|
840
|
+
(function(u) {
|
|
841
|
+
u[u.NoValue = 0] = "NoValue", u[u.Unquoted = 1] = "Unquoted", u[u.Single = 2] = "Single", u[u.Double = 3] = "Double";
|
|
805
842
|
})(B || (B = {}));
|
|
806
843
|
const N = {
|
|
807
844
|
Cdata: new Uint8Array([67, 68, 65, 84, 65, 91]),
|
|
@@ -832,15 +869,15 @@ const N = {
|
|
|
832
869
|
XmpEnd: new Uint8Array([60, 47, 120, 109, 112])
|
|
833
870
|
// `</xmp`
|
|
834
871
|
};
|
|
835
|
-
class
|
|
836
|
-
constructor({ xmlMode:
|
|
837
|
-
this.cbs = a, this.state = f.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.entityStart = 0, this.baseState = f.Text, this.isSpecial = !1, this.running = !0, this.offset = 0, this.currentSequence = void 0, this.sequenceIndex = 0, this.xmlMode =
|
|
872
|
+
class et {
|
|
873
|
+
constructor({ xmlMode: e = !1, decodeEntities: t = !0 }, a) {
|
|
874
|
+
this.cbs = a, this.state = f.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.entityStart = 0, this.baseState = f.Text, this.isSpecial = !1, this.running = !0, this.offset = 0, this.currentSequence = void 0, this.sequenceIndex = 0, this.xmlMode = e, this.decodeEntities = t, this.entityDecoder = new Qu(e ? Gu : Uu, (r, n) => this.emitCodePoint(r, n));
|
|
838
875
|
}
|
|
839
876
|
reset() {
|
|
840
877
|
this.state = f.Text, this.buffer = "", this.sectionStart = 0, this.index = 0, this.baseState = f.Text, this.currentSequence = void 0, this.running = !0, this.offset = 0;
|
|
841
878
|
}
|
|
842
|
-
write(
|
|
843
|
-
this.offset += this.buffer.length, this.buffer =
|
|
879
|
+
write(e) {
|
|
880
|
+
this.offset += this.buffer.length, this.buffer = e, this.parse();
|
|
844
881
|
}
|
|
845
882
|
end() {
|
|
846
883
|
this.running && this.finish();
|
|
@@ -851,43 +888,43 @@ class Qe {
|
|
|
851
888
|
resume() {
|
|
852
889
|
this.running = !0, this.index < this.buffer.length + this.offset && this.parse();
|
|
853
890
|
}
|
|
854
|
-
stateText(
|
|
855
|
-
|
|
891
|
+
stateText(e) {
|
|
892
|
+
e === S.Lt || !this.decodeEntities && this.fastForwardTo(S.Lt) ? (this.index > this.sectionStart && this.cbs.ontext(this.sectionStart, this.index), this.state = f.BeforeTagName, this.sectionStart = this.index) : this.decodeEntities && e === S.Amp && this.startEntity();
|
|
856
893
|
}
|
|
857
|
-
stateSpecialStartSequence(
|
|
894
|
+
stateSpecialStartSequence(e) {
|
|
858
895
|
const t = this.sequenceIndex === this.currentSequence.length;
|
|
859
896
|
if (!(t ? (
|
|
860
897
|
// If we are at the end of the sequence, make sure the tag name has ended
|
|
861
|
-
|
|
898
|
+
ue(e)
|
|
862
899
|
) : (
|
|
863
900
|
// Otherwise, do a case-insensitive comparison
|
|
864
|
-
(
|
|
901
|
+
(e | 32) === this.currentSequence[this.sequenceIndex]
|
|
865
902
|
)))
|
|
866
903
|
this.isSpecial = !1;
|
|
867
904
|
else if (!t) {
|
|
868
905
|
this.sequenceIndex++;
|
|
869
906
|
return;
|
|
870
907
|
}
|
|
871
|
-
this.sequenceIndex = 0, this.state = f.InTagName, this.stateInTagName(
|
|
908
|
+
this.sequenceIndex = 0, this.state = f.InTagName, this.stateInTagName(e);
|
|
872
909
|
}
|
|
873
910
|
/** Look for an end tag. For <title> tags, also decode entities. */
|
|
874
|
-
stateInSpecialTag(
|
|
911
|
+
stateInSpecialTag(e) {
|
|
875
912
|
if (this.sequenceIndex === this.currentSequence.length) {
|
|
876
|
-
if (
|
|
913
|
+
if (e === S.Gt || U(e)) {
|
|
877
914
|
const t = this.index - this.currentSequence.length;
|
|
878
915
|
if (this.sectionStart < t) {
|
|
879
916
|
const a = this.index;
|
|
880
917
|
this.index = t, this.cbs.ontext(this.sectionStart, t), this.index = a;
|
|
881
918
|
}
|
|
882
|
-
this.isSpecial = !1, this.sectionStart = t + 2, this.stateInClosingTagName(
|
|
919
|
+
this.isSpecial = !1, this.sectionStart = t + 2, this.stateInClosingTagName(e);
|
|
883
920
|
return;
|
|
884
921
|
}
|
|
885
922
|
this.sequenceIndex = 0;
|
|
886
923
|
}
|
|
887
|
-
(
|
|
924
|
+
(e | 32) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : this.sequenceIndex === 0 ? this.currentSequence === N.TitleEnd ? this.decodeEntities && e === S.Amp && this.startEntity() : this.fastForwardTo(S.Lt) && (this.sequenceIndex = 1) : this.sequenceIndex = +(e === S.Lt);
|
|
888
925
|
}
|
|
889
|
-
stateCDATASequence(
|
|
890
|
-
|
|
926
|
+
stateCDATASequence(e) {
|
|
927
|
+
e === N.Cdata[this.sequenceIndex] ? ++this.sequenceIndex === N.Cdata.length && (this.state = f.InCommentLike, this.currentSequence = N.CdataEnd, this.sequenceIndex = 0, this.sectionStart = this.index + 1) : (this.sequenceIndex = 0, this.state = f.InDeclaration, this.stateInDeclaration(e));
|
|
891
928
|
}
|
|
892
929
|
/**
|
|
893
930
|
* When we wait for one specific character, we can speed things up
|
|
@@ -895,9 +932,9 @@ class Qe {
|
|
|
895
932
|
*
|
|
896
933
|
* @returns Whether the character was found.
|
|
897
934
|
*/
|
|
898
|
-
fastForwardTo(
|
|
935
|
+
fastForwardTo(e) {
|
|
899
936
|
for (; ++this.index < this.buffer.length + this.offset; )
|
|
900
|
-
if (this.buffer.charCodeAt(this.index - this.offset) ===
|
|
937
|
+
if (this.buffer.charCodeAt(this.index - this.offset) === e)
|
|
901
938
|
return !0;
|
|
902
939
|
return this.index = this.buffer.length + this.offset - 1, !1;
|
|
903
940
|
}
|
|
@@ -909,8 +946,8 @@ class Qe {
|
|
|
909
946
|
* - That character is then repeated, so we have to check multiple repeats.
|
|
910
947
|
* - All characters but the start character of the sequence can be skipped.
|
|
911
948
|
*/
|
|
912
|
-
stateInCommentLike(
|
|
913
|
-
|
|
949
|
+
stateInCommentLike(e) {
|
|
950
|
+
e === this.currentSequence[this.sequenceIndex] ? ++this.sequenceIndex === this.currentSequence.length && (this.currentSequence === N.CdataEnd ? this.cbs.oncdata(this.sectionStart, this.index, 2) : this.cbs.oncomment(this.sectionStart, this.index, 2), this.sequenceIndex = 0, this.sectionStart = this.index + 1, this.state = f.Text) : this.sequenceIndex === 0 ? this.fastForwardTo(this.currentSequence[0]) && (this.sequenceIndex = 1) : e !== this.currentSequence[this.sequenceIndex - 1] && (this.sequenceIndex = 0);
|
|
914
951
|
}
|
|
915
952
|
/**
|
|
916
953
|
* HTML only allows ASCII alpha characters (a-z and A-Z) at the beginning of a tag name.
|
|
@@ -918,82 +955,82 @@ class Qe {
|
|
|
918
955
|
* XML allows a lot more characters here (@see https://www.w3.org/TR/REC-xml/#NT-NameStartChar).
|
|
919
956
|
* We allow anything that wouldn't end the tag.
|
|
920
957
|
*/
|
|
921
|
-
isTagStartChar(
|
|
922
|
-
return this.xmlMode ? !
|
|
958
|
+
isTagStartChar(e) {
|
|
959
|
+
return this.xmlMode ? !ue(e) : Yu(e);
|
|
923
960
|
}
|
|
924
|
-
startSpecial(
|
|
925
|
-
this.isSpecial = !0, this.currentSequence =
|
|
961
|
+
startSpecial(e, t) {
|
|
962
|
+
this.isSpecial = !0, this.currentSequence = e, this.sequenceIndex = t, this.state = f.SpecialStartSequence;
|
|
926
963
|
}
|
|
927
|
-
stateBeforeTagName(
|
|
928
|
-
if (
|
|
964
|
+
stateBeforeTagName(e) {
|
|
965
|
+
if (e === S.ExclamationMark)
|
|
929
966
|
this.state = f.BeforeDeclaration, this.sectionStart = this.index + 1;
|
|
930
|
-
else if (
|
|
967
|
+
else if (e === S.Questionmark)
|
|
931
968
|
this.state = f.InProcessingInstruction, this.sectionStart = this.index + 1;
|
|
932
|
-
else if (this.isTagStartChar(
|
|
933
|
-
const t =
|
|
969
|
+
else if (this.isTagStartChar(e)) {
|
|
970
|
+
const t = e | 32;
|
|
934
971
|
this.sectionStart = this.index, this.xmlMode ? this.state = f.InTagName : t === N.ScriptEnd[2] ? this.state = f.BeforeSpecialS : t === N.TitleEnd[2] || t === N.XmpEnd[2] ? this.state = f.BeforeSpecialT : this.state = f.InTagName;
|
|
935
|
-
} else
|
|
972
|
+
} else e === S.Slash ? this.state = f.BeforeClosingTagName : (this.state = f.Text, this.stateText(e));
|
|
936
973
|
}
|
|
937
|
-
stateInTagName(
|
|
938
|
-
|
|
974
|
+
stateInTagName(e) {
|
|
975
|
+
ue(e) && (this.cbs.onopentagname(this.sectionStart, this.index), this.sectionStart = -1, this.state = f.BeforeAttributeName, this.stateBeforeAttributeName(e));
|
|
939
976
|
}
|
|
940
|
-
stateBeforeClosingTagName(
|
|
941
|
-
U(
|
|
977
|
+
stateBeforeClosingTagName(e) {
|
|
978
|
+
U(e) || (e === S.Gt ? this.state = f.Text : (this.state = this.isTagStartChar(e) ? f.InClosingTagName : f.InSpecialComment, this.sectionStart = this.index));
|
|
942
979
|
}
|
|
943
|
-
stateInClosingTagName(
|
|
944
|
-
(
|
|
980
|
+
stateInClosingTagName(e) {
|
|
981
|
+
(e === S.Gt || U(e)) && (this.cbs.onclosetag(this.sectionStart, this.index), this.sectionStart = -1, this.state = f.AfterClosingTagName, this.stateAfterClosingTagName(e));
|
|
945
982
|
}
|
|
946
|
-
stateAfterClosingTagName(
|
|
947
|
-
(
|
|
983
|
+
stateAfterClosingTagName(e) {
|
|
984
|
+
(e === S.Gt || this.fastForwardTo(S.Gt)) && (this.state = f.Text, this.sectionStart = this.index + 1);
|
|
948
985
|
}
|
|
949
|
-
stateBeforeAttributeName(
|
|
950
|
-
|
|
986
|
+
stateBeforeAttributeName(e) {
|
|
987
|
+
e === S.Gt ? (this.cbs.onopentagend(this.index), this.isSpecial ? (this.state = f.InSpecialTag, this.sequenceIndex = 0) : this.state = f.Text, this.sectionStart = this.index + 1) : e === S.Slash ? this.state = f.InSelfClosingTag : U(e) || (this.state = f.InAttributeName, this.sectionStart = this.index);
|
|
951
988
|
}
|
|
952
|
-
stateInSelfClosingTag(
|
|
953
|
-
|
|
989
|
+
stateInSelfClosingTag(e) {
|
|
990
|
+
e === S.Gt ? (this.cbs.onselfclosingtag(this.index), this.state = f.Text, this.sectionStart = this.index + 1, this.isSpecial = !1) : U(e) || (this.state = f.BeforeAttributeName, this.stateBeforeAttributeName(e));
|
|
954
991
|
}
|
|
955
|
-
stateInAttributeName(
|
|
956
|
-
(
|
|
992
|
+
stateInAttributeName(e) {
|
|
993
|
+
(e === S.Eq || ue(e)) && (this.cbs.onattribname(this.sectionStart, this.index), this.sectionStart = this.index, this.state = f.AfterAttributeName, this.stateAfterAttributeName(e));
|
|
957
994
|
}
|
|
958
|
-
stateAfterAttributeName(
|
|
959
|
-
|
|
995
|
+
stateAfterAttributeName(e) {
|
|
996
|
+
e === S.Eq ? this.state = f.BeforeAttributeValue : e === S.Slash || e === S.Gt ? (this.cbs.onattribend(B.NoValue, this.sectionStart), this.sectionStart = -1, this.state = f.BeforeAttributeName, this.stateBeforeAttributeName(e)) : U(e) || (this.cbs.onattribend(B.NoValue, this.sectionStart), this.state = f.InAttributeName, this.sectionStart = this.index);
|
|
960
997
|
}
|
|
961
|
-
stateBeforeAttributeValue(
|
|
962
|
-
|
|
998
|
+
stateBeforeAttributeValue(e) {
|
|
999
|
+
e === S.DoubleQuote ? (this.state = f.InAttributeValueDq, this.sectionStart = this.index + 1) : e === S.SingleQuote ? (this.state = f.InAttributeValueSq, this.sectionStart = this.index + 1) : U(e) || (this.sectionStart = this.index, this.state = f.InAttributeValueNq, this.stateInAttributeValueNoQuotes(e));
|
|
963
1000
|
}
|
|
964
|
-
handleInAttributeValue(
|
|
965
|
-
|
|
1001
|
+
handleInAttributeValue(e, t) {
|
|
1002
|
+
e === t || !this.decodeEntities && this.fastForwardTo(t) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(t === S.DoubleQuote ? B.Double : B.Single, this.index + 1), this.state = f.BeforeAttributeName) : this.decodeEntities && e === S.Amp && this.startEntity();
|
|
966
1003
|
}
|
|
967
|
-
stateInAttributeValueDoubleQuotes(
|
|
968
|
-
this.handleInAttributeValue(
|
|
1004
|
+
stateInAttributeValueDoubleQuotes(e) {
|
|
1005
|
+
this.handleInAttributeValue(e, S.DoubleQuote);
|
|
969
1006
|
}
|
|
970
|
-
stateInAttributeValueSingleQuotes(
|
|
971
|
-
this.handleInAttributeValue(
|
|
1007
|
+
stateInAttributeValueSingleQuotes(e) {
|
|
1008
|
+
this.handleInAttributeValue(e, S.SingleQuote);
|
|
972
1009
|
}
|
|
973
|
-
stateInAttributeValueNoQuotes(
|
|
974
|
-
U(
|
|
1010
|
+
stateInAttributeValueNoQuotes(e) {
|
|
1011
|
+
U(e) || e === S.Gt ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(B.Unquoted, this.index), this.state = f.BeforeAttributeName, this.stateBeforeAttributeName(e)) : this.decodeEntities && e === S.Amp && this.startEntity();
|
|
975
1012
|
}
|
|
976
|
-
stateBeforeDeclaration(
|
|
977
|
-
|
|
1013
|
+
stateBeforeDeclaration(e) {
|
|
1014
|
+
e === S.OpeningSquareBracket ? (this.state = f.CDATASequence, this.sequenceIndex = 0) : this.state = e === S.Dash ? f.BeforeComment : f.InDeclaration;
|
|
978
1015
|
}
|
|
979
|
-
stateInDeclaration(
|
|
980
|
-
(
|
|
1016
|
+
stateInDeclaration(e) {
|
|
1017
|
+
(e === S.Gt || this.fastForwardTo(S.Gt)) && (this.cbs.ondeclaration(this.sectionStart, this.index), this.state = f.Text, this.sectionStart = this.index + 1);
|
|
981
1018
|
}
|
|
982
|
-
stateInProcessingInstruction(
|
|
983
|
-
(
|
|
1019
|
+
stateInProcessingInstruction(e) {
|
|
1020
|
+
(e === S.Gt || this.fastForwardTo(S.Gt)) && (this.cbs.onprocessinginstruction(this.sectionStart, this.index), this.state = f.Text, this.sectionStart = this.index + 1);
|
|
984
1021
|
}
|
|
985
|
-
stateBeforeComment(
|
|
986
|
-
|
|
1022
|
+
stateBeforeComment(e) {
|
|
1023
|
+
e === S.Dash ? (this.state = f.InCommentLike, this.currentSequence = N.CommentEnd, this.sequenceIndex = 2, this.sectionStart = this.index + 1) : this.state = f.InDeclaration;
|
|
987
1024
|
}
|
|
988
|
-
stateInSpecialComment(
|
|
989
|
-
(
|
|
1025
|
+
stateInSpecialComment(e) {
|
|
1026
|
+
(e === S.Gt || this.fastForwardTo(S.Gt)) && (this.cbs.oncomment(this.sectionStart, this.index, 0), this.state = f.Text, this.sectionStart = this.index + 1);
|
|
990
1027
|
}
|
|
991
|
-
stateBeforeSpecialS(
|
|
992
|
-
const t =
|
|
993
|
-
t === N.ScriptEnd[3] ? this.startSpecial(N.ScriptEnd, 4) : t === N.StyleEnd[3] ? this.startSpecial(N.StyleEnd, 4) : (this.state = f.InTagName, this.stateInTagName(
|
|
1028
|
+
stateBeforeSpecialS(e) {
|
|
1029
|
+
const t = e | 32;
|
|
1030
|
+
t === N.ScriptEnd[3] ? this.startSpecial(N.ScriptEnd, 4) : t === N.StyleEnd[3] ? this.startSpecial(N.StyleEnd, 4) : (this.state = f.InTagName, this.stateInTagName(e));
|
|
994
1031
|
}
|
|
995
|
-
stateBeforeSpecialT(
|
|
996
|
-
switch (
|
|
1032
|
+
stateBeforeSpecialT(e) {
|
|
1033
|
+
switch (e | 32) {
|
|
997
1034
|
case N.TitleEnd[3]: {
|
|
998
1035
|
this.startSpecial(N.TitleEnd, 4);
|
|
999
1036
|
break;
|
|
@@ -1007,15 +1044,15 @@ class Qe {
|
|
|
1007
1044
|
break;
|
|
1008
1045
|
}
|
|
1009
1046
|
default:
|
|
1010
|
-
this.state = f.InTagName, this.stateInTagName(
|
|
1047
|
+
this.state = f.InTagName, this.stateInTagName(e);
|
|
1011
1048
|
}
|
|
1012
1049
|
}
|
|
1013
1050
|
startEntity() {
|
|
1014
1051
|
this.baseState = this.state, this.state = f.InEntity, this.entityStart = this.index, this.entityDecoder.startEntity(this.xmlMode ? O.Strict : this.baseState === f.Text || this.baseState === f.InSpecialTag ? O.Legacy : O.Attribute);
|
|
1015
1052
|
}
|
|
1016
1053
|
stateInEntity() {
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1054
|
+
const e = this.entityDecoder.write(this.buffer, this.index - this.offset);
|
|
1055
|
+
e >= 0 ? (this.state = this.baseState, e === 0 && (this.index = this.entityStart)) : this.index = this.offset + this.buffer.length - 1;
|
|
1019
1056
|
}
|
|
1020
1057
|
/**
|
|
1021
1058
|
* Remove data that has already been consumed from the buffer.
|
|
@@ -1033,106 +1070,106 @@ class Qe {
|
|
|
1033
1070
|
*/
|
|
1034
1071
|
parse() {
|
|
1035
1072
|
for (; this.shouldContinue(); ) {
|
|
1036
|
-
const
|
|
1073
|
+
const e = this.buffer.charCodeAt(this.index - this.offset);
|
|
1037
1074
|
switch (this.state) {
|
|
1038
1075
|
case f.Text: {
|
|
1039
|
-
this.stateText(
|
|
1076
|
+
this.stateText(e);
|
|
1040
1077
|
break;
|
|
1041
1078
|
}
|
|
1042
1079
|
case f.SpecialStartSequence: {
|
|
1043
|
-
this.stateSpecialStartSequence(
|
|
1080
|
+
this.stateSpecialStartSequence(e);
|
|
1044
1081
|
break;
|
|
1045
1082
|
}
|
|
1046
1083
|
case f.InSpecialTag: {
|
|
1047
|
-
this.stateInSpecialTag(
|
|
1084
|
+
this.stateInSpecialTag(e);
|
|
1048
1085
|
break;
|
|
1049
1086
|
}
|
|
1050
1087
|
case f.CDATASequence: {
|
|
1051
|
-
this.stateCDATASequence(
|
|
1088
|
+
this.stateCDATASequence(e);
|
|
1052
1089
|
break;
|
|
1053
1090
|
}
|
|
1054
1091
|
case f.InAttributeValueDq: {
|
|
1055
|
-
this.stateInAttributeValueDoubleQuotes(
|
|
1092
|
+
this.stateInAttributeValueDoubleQuotes(e);
|
|
1056
1093
|
break;
|
|
1057
1094
|
}
|
|
1058
1095
|
case f.InAttributeName: {
|
|
1059
|
-
this.stateInAttributeName(
|
|
1096
|
+
this.stateInAttributeName(e);
|
|
1060
1097
|
break;
|
|
1061
1098
|
}
|
|
1062
1099
|
case f.InCommentLike: {
|
|
1063
|
-
this.stateInCommentLike(
|
|
1100
|
+
this.stateInCommentLike(e);
|
|
1064
1101
|
break;
|
|
1065
1102
|
}
|
|
1066
1103
|
case f.InSpecialComment: {
|
|
1067
|
-
this.stateInSpecialComment(
|
|
1104
|
+
this.stateInSpecialComment(e);
|
|
1068
1105
|
break;
|
|
1069
1106
|
}
|
|
1070
1107
|
case f.BeforeAttributeName: {
|
|
1071
|
-
this.stateBeforeAttributeName(
|
|
1108
|
+
this.stateBeforeAttributeName(e);
|
|
1072
1109
|
break;
|
|
1073
1110
|
}
|
|
1074
1111
|
case f.InTagName: {
|
|
1075
|
-
this.stateInTagName(
|
|
1112
|
+
this.stateInTagName(e);
|
|
1076
1113
|
break;
|
|
1077
1114
|
}
|
|
1078
1115
|
case f.InClosingTagName: {
|
|
1079
|
-
this.stateInClosingTagName(
|
|
1116
|
+
this.stateInClosingTagName(e);
|
|
1080
1117
|
break;
|
|
1081
1118
|
}
|
|
1082
1119
|
case f.BeforeTagName: {
|
|
1083
|
-
this.stateBeforeTagName(
|
|
1120
|
+
this.stateBeforeTagName(e);
|
|
1084
1121
|
break;
|
|
1085
1122
|
}
|
|
1086
1123
|
case f.AfterAttributeName: {
|
|
1087
|
-
this.stateAfterAttributeName(
|
|
1124
|
+
this.stateAfterAttributeName(e);
|
|
1088
1125
|
break;
|
|
1089
1126
|
}
|
|
1090
1127
|
case f.InAttributeValueSq: {
|
|
1091
|
-
this.stateInAttributeValueSingleQuotes(
|
|
1128
|
+
this.stateInAttributeValueSingleQuotes(e);
|
|
1092
1129
|
break;
|
|
1093
1130
|
}
|
|
1094
1131
|
case f.BeforeAttributeValue: {
|
|
1095
|
-
this.stateBeforeAttributeValue(
|
|
1132
|
+
this.stateBeforeAttributeValue(e);
|
|
1096
1133
|
break;
|
|
1097
1134
|
}
|
|
1098
1135
|
case f.BeforeClosingTagName: {
|
|
1099
|
-
this.stateBeforeClosingTagName(
|
|
1136
|
+
this.stateBeforeClosingTagName(e);
|
|
1100
1137
|
break;
|
|
1101
1138
|
}
|
|
1102
1139
|
case f.AfterClosingTagName: {
|
|
1103
|
-
this.stateAfterClosingTagName(
|
|
1140
|
+
this.stateAfterClosingTagName(e);
|
|
1104
1141
|
break;
|
|
1105
1142
|
}
|
|
1106
1143
|
case f.BeforeSpecialS: {
|
|
1107
|
-
this.stateBeforeSpecialS(
|
|
1144
|
+
this.stateBeforeSpecialS(e);
|
|
1108
1145
|
break;
|
|
1109
1146
|
}
|
|
1110
1147
|
case f.BeforeSpecialT: {
|
|
1111
|
-
this.stateBeforeSpecialT(
|
|
1148
|
+
this.stateBeforeSpecialT(e);
|
|
1112
1149
|
break;
|
|
1113
1150
|
}
|
|
1114
1151
|
case f.InAttributeValueNq: {
|
|
1115
|
-
this.stateInAttributeValueNoQuotes(
|
|
1152
|
+
this.stateInAttributeValueNoQuotes(e);
|
|
1116
1153
|
break;
|
|
1117
1154
|
}
|
|
1118
1155
|
case f.InSelfClosingTag: {
|
|
1119
|
-
this.stateInSelfClosingTag(
|
|
1156
|
+
this.stateInSelfClosingTag(e);
|
|
1120
1157
|
break;
|
|
1121
1158
|
}
|
|
1122
1159
|
case f.InDeclaration: {
|
|
1123
|
-
this.stateInDeclaration(
|
|
1160
|
+
this.stateInDeclaration(e);
|
|
1124
1161
|
break;
|
|
1125
1162
|
}
|
|
1126
1163
|
case f.BeforeDeclaration: {
|
|
1127
|
-
this.stateBeforeDeclaration(
|
|
1164
|
+
this.stateBeforeDeclaration(e);
|
|
1128
1165
|
break;
|
|
1129
1166
|
}
|
|
1130
1167
|
case f.BeforeComment: {
|
|
1131
|
-
this.stateBeforeComment(
|
|
1168
|
+
this.stateBeforeComment(e);
|
|
1132
1169
|
break;
|
|
1133
1170
|
}
|
|
1134
1171
|
case f.InProcessingInstruction: {
|
|
1135
|
-
this.stateInProcessingInstruction(
|
|
1172
|
+
this.stateInProcessingInstruction(e);
|
|
1136
1173
|
break;
|
|
1137
1174
|
}
|
|
1138
1175
|
case f.InEntity: {
|
|
@@ -1149,11 +1186,11 @@ class Qe {
|
|
|
1149
1186
|
}
|
|
1150
1187
|
/** Handle any trailing data. */
|
|
1151
1188
|
handleTrailingData() {
|
|
1152
|
-
const
|
|
1153
|
-
this.sectionStart >=
|
|
1189
|
+
const e = this.buffer.length + this.offset;
|
|
1190
|
+
this.sectionStart >= e || (this.state === f.InCommentLike ? this.currentSequence === N.CdataEnd ? this.cbs.oncdata(this.sectionStart, e, 0) : this.cbs.oncomment(this.sectionStart, e, 0) : this.state === f.InTagName || this.state === f.BeforeAttributeName || this.state === f.BeforeAttributeValue || this.state === f.AfterAttributeName || this.state === f.InAttributeName || this.state === f.InAttributeValueSq || this.state === f.InAttributeValueDq || this.state === f.InAttributeValueNq || this.state === f.InClosingTagName || this.cbs.ontext(this.sectionStart, e));
|
|
1154
1191
|
}
|
|
1155
|
-
emitCodePoint(
|
|
1156
|
-
this.baseState !== f.Text && this.baseState !== f.InSpecialTag ? (this.sectionStart < this.entityStart && this.cbs.onattribdata(this.sectionStart, this.entityStart), this.sectionStart = this.entityStart + t, this.index = this.sectionStart - 1, this.cbs.onattribentity(
|
|
1192
|
+
emitCodePoint(e, t) {
|
|
1193
|
+
this.baseState !== f.Text && this.baseState !== f.InSpecialTag ? (this.sectionStart < this.entityStart && this.cbs.onattribdata(this.sectionStart, this.entityStart), this.sectionStart = this.entityStart + t, this.index = this.sectionStart - 1, this.cbs.onattribentity(e)) : (this.sectionStart < this.entityStart && this.cbs.ontext(this.sectionStart, this.entityStart), this.sectionStart = this.entityStart + t, this.index = this.sectionStart - 1, this.cbs.ontextentity(e, this.sectionStart));
|
|
1157
1194
|
}
|
|
1158
1195
|
}
|
|
1159
1196
|
const z = /* @__PURE__ */ new Set([
|
|
@@ -1164,7 +1201,7 @@ const z = /* @__PURE__ */ new Set([
|
|
|
1164
1201
|
"button",
|
|
1165
1202
|
"datalist",
|
|
1166
1203
|
"textarea"
|
|
1167
|
-
]), T = /* @__PURE__ */ new Set(["p"]),
|
|
1204
|
+
]), T = /* @__PURE__ */ new Set(["p"]), Te = /* @__PURE__ */ new Set(["thead", "tbody"]), Ne = /* @__PURE__ */ new Set(["dd", "dt"]), je = /* @__PURE__ */ new Set(["rt", "rp"]), ut = /* @__PURE__ */ new Map([
|
|
1168
1205
|
["tr", /* @__PURE__ */ new Set(["tr", "th", "td"])],
|
|
1169
1206
|
["th", /* @__PURE__ */ new Set(["th"])],
|
|
1170
1207
|
["td", /* @__PURE__ */ new Set(["thead", "th", "td"])],
|
|
@@ -1185,8 +1222,8 @@ const z = /* @__PURE__ */ new Set([
|
|
|
1185
1222
|
["textarea", z],
|
|
1186
1223
|
["option", /* @__PURE__ */ new Set(["option"])],
|
|
1187
1224
|
["optgroup", /* @__PURE__ */ new Set(["optgroup", "option"])],
|
|
1188
|
-
["dd",
|
|
1189
|
-
["dt",
|
|
1225
|
+
["dd", Ne],
|
|
1226
|
+
["dt", Ne],
|
|
1190
1227
|
["address", T],
|
|
1191
1228
|
["article", T],
|
|
1192
1229
|
["aside", T],
|
|
@@ -1208,11 +1245,11 @@ const z = /* @__PURE__ */ new Set([
|
|
|
1208
1245
|
["section", T],
|
|
1209
1246
|
["table", T],
|
|
1210
1247
|
["ul", T],
|
|
1211
|
-
["rt",
|
|
1212
|
-
["rp",
|
|
1213
|
-
["tbody",
|
|
1214
|
-
["tfoot",
|
|
1215
|
-
]),
|
|
1248
|
+
["rt", je],
|
|
1249
|
+
["rp", je],
|
|
1250
|
+
["tbody", Te],
|
|
1251
|
+
["tfoot", Te]
|
|
1252
|
+
]), tt = /* @__PURE__ */ new Set([
|
|
1216
1253
|
"area",
|
|
1217
1254
|
"base",
|
|
1218
1255
|
"basefont",
|
|
@@ -1232,7 +1269,7 @@ const z = /* @__PURE__ */ new Set([
|
|
|
1232
1269
|
"source",
|
|
1233
1270
|
"track",
|
|
1234
1271
|
"wbr"
|
|
1235
|
-
]),
|
|
1272
|
+
]), Ve = /* @__PURE__ */ new Set(["math", "svg"]), qe = /* @__PURE__ */ new Set([
|
|
1236
1273
|
"mi",
|
|
1237
1274
|
"mo",
|
|
1238
1275
|
"mn",
|
|
@@ -1242,62 +1279,62 @@ const z = /* @__PURE__ */ new Set([
|
|
|
1242
1279
|
"foreignobject",
|
|
1243
1280
|
"desc",
|
|
1244
1281
|
"title"
|
|
1245
|
-
]),
|
|
1246
|
-
class
|
|
1247
|
-
constructor(
|
|
1282
|
+
]), at = /\s|\//;
|
|
1283
|
+
class rt {
|
|
1284
|
+
constructor(e, t = {}) {
|
|
1248
1285
|
var a, r, n, s, i, o;
|
|
1249
|
-
this.options = t, this.startIndex = 0, this.endIndex = 0, this.openTagStart = 0, this.tagname = "", this.attribname = "", this.attribvalue = "", this.attribs = null, this.stack = [], this.buffers = [], this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1, this.cbs =
|
|
1286
|
+
this.options = t, this.startIndex = 0, this.endIndex = 0, this.openTagStart = 0, this.tagname = "", this.attribname = "", this.attribvalue = "", this.attribs = null, this.stack = [], this.buffers = [], this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1, this.cbs = e ?? {}, this.htmlMode = !this.options.xmlMode, this.lowerCaseTagNames = (a = t.lowerCaseTags) !== null && a !== void 0 ? a : this.htmlMode, this.lowerCaseAttributeNames = (r = t.lowerCaseAttributeNames) !== null && r !== void 0 ? r : this.htmlMode, this.recognizeSelfClosing = (n = t.recognizeSelfClosing) !== null && n !== void 0 ? n : !this.htmlMode, this.tokenizer = new ((s = t.Tokenizer) !== null && s !== void 0 ? s : et)(this.options, this), this.foreignContext = [!this.htmlMode], (o = (i = this.cbs).onparserinit) === null || o === void 0 || o.call(i, this);
|
|
1250
1287
|
}
|
|
1251
1288
|
// Tokenizer event handlers
|
|
1252
1289
|
/** @internal */
|
|
1253
|
-
ontext(
|
|
1290
|
+
ontext(e, t) {
|
|
1254
1291
|
var a, r;
|
|
1255
|
-
const n = this.getSlice(
|
|
1292
|
+
const n = this.getSlice(e, t);
|
|
1256
1293
|
this.endIndex = t - 1, (r = (a = this.cbs).ontext) === null || r === void 0 || r.call(a, n), this.startIndex = t;
|
|
1257
1294
|
}
|
|
1258
1295
|
/** @internal */
|
|
1259
|
-
ontextentity(
|
|
1296
|
+
ontextentity(e, t) {
|
|
1260
1297
|
var a, r;
|
|
1261
|
-
this.endIndex = t - 1, (r = (a = this.cbs).ontext) === null || r === void 0 || r.call(a,
|
|
1298
|
+
this.endIndex = t - 1, (r = (a = this.cbs).ontext) === null || r === void 0 || r.call(a, ke(e)), this.startIndex = t;
|
|
1262
1299
|
}
|
|
1263
1300
|
/**
|
|
1264
1301
|
* Checks if the current tag is a void element. Override this if you want
|
|
1265
1302
|
* to specify your own additional void elements.
|
|
1266
1303
|
*/
|
|
1267
|
-
isVoidElement(
|
|
1268
|
-
return this.htmlMode &&
|
|
1304
|
+
isVoidElement(e) {
|
|
1305
|
+
return this.htmlMode && tt.has(e);
|
|
1269
1306
|
}
|
|
1270
1307
|
/** @internal */
|
|
1271
|
-
onopentagname(
|
|
1308
|
+
onopentagname(e, t) {
|
|
1272
1309
|
this.endIndex = t;
|
|
1273
|
-
let a = this.getSlice(
|
|
1310
|
+
let a = this.getSlice(e, t);
|
|
1274
1311
|
this.lowerCaseTagNames && (a = a.toLowerCase()), this.emitOpenTag(a);
|
|
1275
1312
|
}
|
|
1276
|
-
emitOpenTag(
|
|
1313
|
+
emitOpenTag(e) {
|
|
1277
1314
|
var t, a, r, n;
|
|
1278
|
-
this.openTagStart = this.startIndex, this.tagname =
|
|
1279
|
-
const s = this.htmlMode &&
|
|
1315
|
+
this.openTagStart = this.startIndex, this.tagname = e;
|
|
1316
|
+
const s = this.htmlMode && ut.get(e);
|
|
1280
1317
|
if (s)
|
|
1281
1318
|
for (; this.stack.length > 0 && s.has(this.stack[0]); ) {
|
|
1282
1319
|
const i = this.stack.shift();
|
|
1283
1320
|
(a = (t = this.cbs).onclosetag) === null || a === void 0 || a.call(t, i, !0);
|
|
1284
1321
|
}
|
|
1285
|
-
this.isVoidElement(
|
|
1322
|
+
this.isVoidElement(e) || (this.stack.unshift(e), this.htmlMode && (Ve.has(e) ? this.foreignContext.unshift(!0) : qe.has(e) && this.foreignContext.unshift(!1))), (n = (r = this.cbs).onopentagname) === null || n === void 0 || n.call(r, e), this.cbs.onopentag && (this.attribs = {});
|
|
1286
1323
|
}
|
|
1287
|
-
endOpenTag(
|
|
1324
|
+
endOpenTag(e) {
|
|
1288
1325
|
var t, a;
|
|
1289
|
-
this.startIndex = this.openTagStart, this.attribs && ((a = (t = this.cbs).onopentag) === null || a === void 0 || a.call(t, this.tagname, this.attribs,
|
|
1326
|
+
this.startIndex = this.openTagStart, this.attribs && ((a = (t = this.cbs).onopentag) === null || a === void 0 || a.call(t, this.tagname, this.attribs, e), this.attribs = null), this.cbs.onclosetag && this.isVoidElement(this.tagname) && this.cbs.onclosetag(this.tagname, !0), this.tagname = "";
|
|
1290
1327
|
}
|
|
1291
1328
|
/** @internal */
|
|
1292
|
-
onopentagend(
|
|
1293
|
-
this.endIndex =
|
|
1329
|
+
onopentagend(e) {
|
|
1330
|
+
this.endIndex = e, this.endOpenTag(!1), this.startIndex = e + 1;
|
|
1294
1331
|
}
|
|
1295
1332
|
/** @internal */
|
|
1296
|
-
onclosetag(
|
|
1333
|
+
onclosetag(e, t) {
|
|
1297
1334
|
var a, r, n, s, i, o, c, d;
|
|
1298
1335
|
this.endIndex = t;
|
|
1299
|
-
let l = this.getSlice(
|
|
1300
|
-
if (this.lowerCaseTagNames && (l = l.toLowerCase()), this.htmlMode && (
|
|
1336
|
+
let l = this.getSlice(e, t);
|
|
1337
|
+
if (this.lowerCaseTagNames && (l = l.toLowerCase()), this.htmlMode && (Ve.has(l) || qe.has(l)) && this.foreignContext.shift(), this.isVoidElement(l))
|
|
1301
1338
|
this.htmlMode && l === "br" && ((s = (n = this.cbs).onopentagname) === null || s === void 0 || s.call(n, "br"), (o = (i = this.cbs).onopentag) === null || o === void 0 || o.call(i, "br", {}, !0), (d = (c = this.cbs).onclosetag) === null || d === void 0 || d.call(c, "br", !1));
|
|
1302
1339
|
else {
|
|
1303
1340
|
const p = this.stack.indexOf(l);
|
|
@@ -1311,42 +1348,42 @@ class et {
|
|
|
1311
1348
|
this.startIndex = t + 1;
|
|
1312
1349
|
}
|
|
1313
1350
|
/** @internal */
|
|
1314
|
-
onselfclosingtag(
|
|
1315
|
-
this.endIndex =
|
|
1351
|
+
onselfclosingtag(e) {
|
|
1352
|
+
this.endIndex = e, this.recognizeSelfClosing || this.foreignContext[0] ? (this.closeCurrentTag(!1), this.startIndex = e + 1) : this.onopentagend(e);
|
|
1316
1353
|
}
|
|
1317
|
-
closeCurrentTag(
|
|
1354
|
+
closeCurrentTag(e) {
|
|
1318
1355
|
var t, a;
|
|
1319
1356
|
const r = this.tagname;
|
|
1320
|
-
this.endOpenTag(
|
|
1357
|
+
this.endOpenTag(e), this.stack[0] === r && ((a = (t = this.cbs).onclosetag) === null || a === void 0 || a.call(t, r, !e), this.stack.shift());
|
|
1321
1358
|
}
|
|
1322
1359
|
/** @internal */
|
|
1323
|
-
onattribname(
|
|
1324
|
-
this.startIndex =
|
|
1325
|
-
const a = this.getSlice(
|
|
1360
|
+
onattribname(e, t) {
|
|
1361
|
+
this.startIndex = e;
|
|
1362
|
+
const a = this.getSlice(e, t);
|
|
1326
1363
|
this.attribname = this.lowerCaseAttributeNames ? a.toLowerCase() : a;
|
|
1327
1364
|
}
|
|
1328
1365
|
/** @internal */
|
|
1329
|
-
onattribdata(
|
|
1330
|
-
this.attribvalue += this.getSlice(
|
|
1366
|
+
onattribdata(e, t) {
|
|
1367
|
+
this.attribvalue += this.getSlice(e, t);
|
|
1331
1368
|
}
|
|
1332
1369
|
/** @internal */
|
|
1333
|
-
onattribentity(
|
|
1334
|
-
this.attribvalue +=
|
|
1370
|
+
onattribentity(e) {
|
|
1371
|
+
this.attribvalue += ke(e);
|
|
1335
1372
|
}
|
|
1336
1373
|
/** @internal */
|
|
1337
|
-
onattribend(
|
|
1374
|
+
onattribend(e, t) {
|
|
1338
1375
|
var a, r;
|
|
1339
|
-
this.endIndex = t, (r = (a = this.cbs).onattribute) === null || r === void 0 || r.call(a, this.attribname, this.attribvalue,
|
|
1376
|
+
this.endIndex = t, (r = (a = this.cbs).onattribute) === null || r === void 0 || r.call(a, this.attribname, this.attribvalue, e === B.Double ? '"' : e === B.Single ? "'" : e === B.NoValue ? void 0 : null), this.attribs && !Object.prototype.hasOwnProperty.call(this.attribs, this.attribname) && (this.attribs[this.attribname] = this.attribvalue), this.attribvalue = "";
|
|
1340
1377
|
}
|
|
1341
|
-
getInstructionName(
|
|
1342
|
-
const t =
|
|
1343
|
-
let a = t < 0 ?
|
|
1378
|
+
getInstructionName(e) {
|
|
1379
|
+
const t = e.search(at);
|
|
1380
|
+
let a = t < 0 ? e : e.substr(0, t);
|
|
1344
1381
|
return this.lowerCaseTagNames && (a = a.toLowerCase()), a;
|
|
1345
1382
|
}
|
|
1346
1383
|
/** @internal */
|
|
1347
|
-
ondeclaration(
|
|
1384
|
+
ondeclaration(e, t) {
|
|
1348
1385
|
this.endIndex = t;
|
|
1349
|
-
const a = this.getSlice(
|
|
1386
|
+
const a = this.getSlice(e, t);
|
|
1350
1387
|
if (this.cbs.onprocessinginstruction) {
|
|
1351
1388
|
const r = this.getInstructionName(a);
|
|
1352
1389
|
this.cbs.onprocessinginstruction(`!${r}`, `!${a}`);
|
|
@@ -1354,9 +1391,9 @@ class et {
|
|
|
1354
1391
|
this.startIndex = t + 1;
|
|
1355
1392
|
}
|
|
1356
1393
|
/** @internal */
|
|
1357
|
-
onprocessinginstruction(
|
|
1394
|
+
onprocessinginstruction(e, t) {
|
|
1358
1395
|
this.endIndex = t;
|
|
1359
|
-
const a = this.getSlice(
|
|
1396
|
+
const a = this.getSlice(e, t);
|
|
1360
1397
|
if (this.cbs.onprocessinginstruction) {
|
|
1361
1398
|
const r = this.getInstructionName(a);
|
|
1362
1399
|
this.cbs.onprocessinginstruction(`?${r}`, `?${a}`);
|
|
@@ -1364,33 +1401,33 @@ class et {
|
|
|
1364
1401
|
this.startIndex = t + 1;
|
|
1365
1402
|
}
|
|
1366
1403
|
/** @internal */
|
|
1367
|
-
oncomment(
|
|
1404
|
+
oncomment(e, t, a) {
|
|
1368
1405
|
var r, n, s, i;
|
|
1369
|
-
this.endIndex = t, (n = (r = this.cbs).oncomment) === null || n === void 0 || n.call(r, this.getSlice(
|
|
1406
|
+
this.endIndex = t, (n = (r = this.cbs).oncomment) === null || n === void 0 || n.call(r, this.getSlice(e, t - a)), (i = (s = this.cbs).oncommentend) === null || i === void 0 || i.call(s), this.startIndex = t + 1;
|
|
1370
1407
|
}
|
|
1371
1408
|
/** @internal */
|
|
1372
|
-
oncdata(
|
|
1409
|
+
oncdata(e, t, a) {
|
|
1373
1410
|
var r, n, s, i, o, c, d, l, p, b;
|
|
1374
1411
|
this.endIndex = t;
|
|
1375
|
-
const m = this.getSlice(
|
|
1412
|
+
const m = this.getSlice(e, t - a);
|
|
1376
1413
|
!this.htmlMode || this.options.recognizeCDATA ? ((n = (r = this.cbs).oncdatastart) === null || n === void 0 || n.call(r), (i = (s = this.cbs).ontext) === null || i === void 0 || i.call(s, m), (c = (o = this.cbs).oncdataend) === null || c === void 0 || c.call(o)) : ((l = (d = this.cbs).oncomment) === null || l === void 0 || l.call(d, `[CDATA[${m}]]`), (b = (p = this.cbs).oncommentend) === null || b === void 0 || b.call(p)), this.startIndex = t + 1;
|
|
1377
1414
|
}
|
|
1378
1415
|
/** @internal */
|
|
1379
1416
|
onend() {
|
|
1380
|
-
var
|
|
1417
|
+
var e, t;
|
|
1381
1418
|
if (this.cbs.onclosetag) {
|
|
1382
1419
|
this.endIndex = this.startIndex;
|
|
1383
1420
|
for (let a = 0; a < this.stack.length; a++)
|
|
1384
1421
|
this.cbs.onclosetag(this.stack[a], !0);
|
|
1385
1422
|
}
|
|
1386
|
-
(t = (
|
|
1423
|
+
(t = (e = this.cbs).onend) === null || t === void 0 || t.call(e);
|
|
1387
1424
|
}
|
|
1388
1425
|
/**
|
|
1389
1426
|
* Resets the parser to a blank state, ready to parse a new HTML document
|
|
1390
1427
|
*/
|
|
1391
1428
|
reset() {
|
|
1392
|
-
var
|
|
1393
|
-
(t = (
|
|
1429
|
+
var e, t, a, r;
|
|
1430
|
+
(t = (e = this.cbs).onreset) === null || t === void 0 || t.call(e), this.tokenizer.reset(), this.tagname = "", this.attribname = "", this.attribs = null, this.stack.length = 0, this.startIndex = 0, this.endIndex = 0, (r = (a = this.cbs).onparserinit) === null || r === void 0 || r.call(a, this), this.buffers.length = 0, this.foreignContext.length = 0, this.foreignContext.unshift(!this.htmlMode), this.bufferOffset = 0, this.writeIndex = 0, this.ended = !1;
|
|
1394
1431
|
}
|
|
1395
1432
|
/**
|
|
1396
1433
|
* Resets the parser, then parses a complete document and
|
|
@@ -1398,13 +1435,13 @@ class et {
|
|
|
1398
1435
|
*
|
|
1399
1436
|
* @param data Document to parse.
|
|
1400
1437
|
*/
|
|
1401
|
-
parseComplete(
|
|
1402
|
-
this.reset(), this.end(
|
|
1438
|
+
parseComplete(e) {
|
|
1439
|
+
this.reset(), this.end(e);
|
|
1403
1440
|
}
|
|
1404
|
-
getSlice(
|
|
1405
|
-
for (;
|
|
1441
|
+
getSlice(e, t) {
|
|
1442
|
+
for (; e - this.bufferOffset >= this.buffers[0].length; )
|
|
1406
1443
|
this.shiftBuffer();
|
|
1407
|
-
let a = this.buffers[0].slice(
|
|
1444
|
+
let a = this.buffers[0].slice(e - this.bufferOffset, t - this.bufferOffset);
|
|
1408
1445
|
for (; t - this.bufferOffset > this.buffers[0].length; )
|
|
1409
1446
|
this.shiftBuffer(), a += this.buffers[0].slice(0, t - this.bufferOffset);
|
|
1410
1447
|
return a;
|
|
@@ -1417,26 +1454,26 @@ class et {
|
|
|
1417
1454
|
*
|
|
1418
1455
|
* @param chunk Chunk to parse.
|
|
1419
1456
|
*/
|
|
1420
|
-
write(
|
|
1457
|
+
write(e) {
|
|
1421
1458
|
var t, a;
|
|
1422
1459
|
if (this.ended) {
|
|
1423
1460
|
(a = (t = this.cbs).onerror) === null || a === void 0 || a.call(t, new Error(".write() after done!"));
|
|
1424
1461
|
return;
|
|
1425
1462
|
}
|
|
1426
|
-
this.buffers.push(
|
|
1463
|
+
this.buffers.push(e), this.tokenizer.running && (this.tokenizer.write(e), this.writeIndex++);
|
|
1427
1464
|
}
|
|
1428
1465
|
/**
|
|
1429
1466
|
* Parses the end of the buffer and clears the stack, calls onend.
|
|
1430
1467
|
*
|
|
1431
1468
|
* @param chunk Optional final chunk to parse.
|
|
1432
1469
|
*/
|
|
1433
|
-
end(
|
|
1470
|
+
end(e) {
|
|
1434
1471
|
var t, a;
|
|
1435
1472
|
if (this.ended) {
|
|
1436
1473
|
(a = (t = this.cbs).onerror) === null || a === void 0 || a.call(t, new Error(".end() after done!"));
|
|
1437
1474
|
return;
|
|
1438
1475
|
}
|
|
1439
|
-
|
|
1476
|
+
e && this.write(e), this.ended = !0, this.tokenizer.end();
|
|
1440
1477
|
}
|
|
1441
1478
|
/**
|
|
1442
1479
|
* Pauses parsing. The parser won't emit events until `resume` is called.
|
|
@@ -1458,8 +1495,8 @@ class et {
|
|
|
1458
1495
|
* @param chunk Chunk to parse.
|
|
1459
1496
|
* @deprecated
|
|
1460
1497
|
*/
|
|
1461
|
-
parseChunk(
|
|
1462
|
-
this.write(
|
|
1498
|
+
parseChunk(e) {
|
|
1499
|
+
this.write(e);
|
|
1463
1500
|
}
|
|
1464
1501
|
/**
|
|
1465
1502
|
* Alias of `end`, for backwards compatibility.
|
|
@@ -1467,14 +1504,14 @@ class et {
|
|
|
1467
1504
|
* @param chunk Optional final chunk to parse.
|
|
1468
1505
|
* @deprecated
|
|
1469
1506
|
*/
|
|
1470
|
-
done(
|
|
1471
|
-
this.end(
|
|
1507
|
+
done(e) {
|
|
1508
|
+
this.end(e);
|
|
1472
1509
|
}
|
|
1473
1510
|
}
|
|
1474
|
-
function
|
|
1511
|
+
function De(u, e = "web") {
|
|
1475
1512
|
const t = { name: "", children: [] }, a = [t];
|
|
1476
1513
|
let r = "";
|
|
1477
|
-
const n = new
|
|
1514
|
+
const n = new rt(
|
|
1478
1515
|
{
|
|
1479
1516
|
onopentag: (s, i, o) => {
|
|
1480
1517
|
const c = a[a.length - 1];
|
|
@@ -1484,14 +1521,14 @@ function qu(e, u = "web") {
|
|
|
1484
1521
|
}) : c.children = r.trim(), r = "");
|
|
1485
1522
|
const d = Object.entries(i || {}).reduce(
|
|
1486
1523
|
(p, b) => {
|
|
1487
|
-
let [m = "",
|
|
1488
|
-
return m && (p[m] =
|
|
1524
|
+
let [m = "", y = ""] = b;
|
|
1525
|
+
return m && (p[m] = y), p;
|
|
1489
1526
|
},
|
|
1490
1527
|
{}
|
|
1491
1528
|
);
|
|
1492
|
-
d.style && (d.style =
|
|
1529
|
+
d.style && (d.style = Qe(d.style));
|
|
1493
1530
|
const l = {
|
|
1494
|
-
name:
|
|
1531
|
+
name: Ze(s, e),
|
|
1495
1532
|
props: d
|
|
1496
1533
|
};
|
|
1497
1534
|
Array.isArray(c.children) ? c.children.push(l) : c.children ? c.children = [
|
|
@@ -1516,14 +1553,14 @@ function qu(e, u = "web") {
|
|
|
1516
1553
|
},
|
|
1517
1554
|
{ decodeEntities: !0 }
|
|
1518
1555
|
);
|
|
1519
|
-
return n.write(
|
|
1556
|
+
return n.write(u.replace(/\\"/g, '"')), n.end(), t.children || [];
|
|
1520
1557
|
}
|
|
1521
|
-
function
|
|
1558
|
+
function nt(u, e) {
|
|
1522
1559
|
const a = {
|
|
1523
|
-
imports:
|
|
1560
|
+
imports: st(u),
|
|
1524
1561
|
emits: [],
|
|
1525
1562
|
errors: []
|
|
1526
|
-
}, r = _(
|
|
1563
|
+
}, r = _(u);
|
|
1527
1564
|
return J(r, {
|
|
1528
1565
|
ExportDefaultDeclaration(n) {
|
|
1529
1566
|
const s = n.node.declaration;
|
|
@@ -1537,61 +1574,61 @@ function tt(e, u) {
|
|
|
1537
1574
|
), d = o.find(
|
|
1538
1575
|
(l) => l.key.name === "computed"
|
|
1539
1576
|
);
|
|
1540
|
-
d && (a.computed =
|
|
1577
|
+
d && (a.computed = eu(d.value), a.watchers = ft(d.value));
|
|
1541
1578
|
for (const l of o)
|
|
1542
1579
|
switch (l.key.name) {
|
|
1543
1580
|
case "name":
|
|
1544
1581
|
a.name = l.value.value;
|
|
1545
1582
|
break;
|
|
1546
1583
|
case "methods":
|
|
1547
|
-
a.handlers =
|
|
1584
|
+
a.handlers = lt(l.value), a.methods = dt(l.value), a.dataSources = ot(
|
|
1548
1585
|
l.value,
|
|
1549
|
-
|
|
1586
|
+
e
|
|
1550
1587
|
);
|
|
1551
1588
|
break;
|
|
1552
1589
|
case "watch":
|
|
1553
|
-
a.watch =
|
|
1590
|
+
a.watch = bt(
|
|
1554
1591
|
l.value,
|
|
1555
1592
|
a.watchers
|
|
1556
1593
|
);
|
|
1557
1594
|
break;
|
|
1558
1595
|
case "props":
|
|
1559
|
-
a.props =
|
|
1596
|
+
a.props = ht(l.value);
|
|
1560
1597
|
break;
|
|
1561
1598
|
case "inject":
|
|
1562
|
-
a.inject =
|
|
1599
|
+
a.inject = gt(l.value);
|
|
1563
1600
|
break;
|
|
1564
1601
|
case "expose":
|
|
1565
|
-
a.expose =
|
|
1602
|
+
a.expose = yt(l.value);
|
|
1566
1603
|
break;
|
|
1567
1604
|
case "emits":
|
|
1568
|
-
a.emits =
|
|
1605
|
+
a.emits = St(l.value);
|
|
1569
1606
|
break;
|
|
1570
1607
|
case "directives":
|
|
1571
|
-
a.directives =
|
|
1608
|
+
a.directives = Et(l.value);
|
|
1572
1609
|
break;
|
|
1573
1610
|
}
|
|
1574
1611
|
for (const l of c)
|
|
1575
1612
|
switch (l.key.name) {
|
|
1576
1613
|
case "setup":
|
|
1577
|
-
a.state =
|
|
1614
|
+
a.state = ct(l.body);
|
|
1578
1615
|
break;
|
|
1579
1616
|
}
|
|
1580
|
-
a.lifeCycles =
|
|
1617
|
+
a.lifeCycles = pt(c);
|
|
1581
1618
|
},
|
|
1582
1619
|
CallExpression(n) {
|
|
1583
|
-
const s =
|
|
1620
|
+
const s = xt(n.node);
|
|
1584
1621
|
if (s.length)
|
|
1585
1622
|
for (let i of s)
|
|
1586
1623
|
a.emits?.find((c) => c.name === i.name) || a.emits?.push(i);
|
|
1587
1624
|
}
|
|
1588
1625
|
}), a;
|
|
1589
1626
|
}
|
|
1590
|
-
function
|
|
1591
|
-
const
|
|
1627
|
+
function st(u) {
|
|
1628
|
+
const e = /import\s+{(.+?)}\s+from\s+['"](.+?)['"]/g, t = /import\s+(.+?)\s+from\s+['"](.+?)['"]/g, a = /^{(.+?)}$/, r = [];
|
|
1592
1629
|
let n;
|
|
1593
|
-
const s =
|
|
1594
|
-
for (; (n =
|
|
1630
|
+
const s = u.replace(/\n/g, " ");
|
|
1631
|
+
for (; (n = e.exec(s)) !== null; ) {
|
|
1595
1632
|
const i = n[2] === "@element-plus/icons-vue" ? "@vtj/icons" : n[2];
|
|
1596
1633
|
r.push({
|
|
1597
1634
|
from: i,
|
|
@@ -1607,20 +1644,20 @@ function at(e) {
|
|
|
1607
1644
|
}
|
|
1608
1645
|
return r;
|
|
1609
1646
|
}
|
|
1610
|
-
function
|
|
1611
|
-
for (const
|
|
1612
|
-
if (
|
|
1613
|
-
const { id: t, init: a } =
|
|
1647
|
+
function it(u) {
|
|
1648
|
+
for (const e of u.body)
|
|
1649
|
+
if (e.type === "VariableDeclaration" && e.kind == "const") {
|
|
1650
|
+
const { id: t, init: a } = e.declarations[0];
|
|
1614
1651
|
if (t.loc?.identifierName === "state" && a?.type === "CallExpression" && a.callee.loc?.identifierName === "reactive")
|
|
1615
1652
|
return a.arguments[0];
|
|
1616
1653
|
}
|
|
1617
1654
|
return null;
|
|
1618
1655
|
}
|
|
1619
|
-
function
|
|
1620
|
-
const
|
|
1621
|
-
if (!
|
|
1656
|
+
function ct(u) {
|
|
1657
|
+
const e = it(u);
|
|
1658
|
+
if (!e) return {};
|
|
1622
1659
|
const t = {};
|
|
1623
|
-
for (const a of
|
|
1660
|
+
for (const a of e.properties)
|
|
1624
1661
|
if (a.type === "ObjectProperty") {
|
|
1625
1662
|
const { key: r, value: n } = a;
|
|
1626
1663
|
if (r.type === "Identifier") {
|
|
@@ -1636,10 +1673,10 @@ function nt(e) {
|
|
|
1636
1673
|
}
|
|
1637
1674
|
return t;
|
|
1638
1675
|
}
|
|
1639
|
-
function X(
|
|
1640
|
-
const { key:
|
|
1641
|
-
if (
|
|
1642
|
-
const s =
|
|
1676
|
+
function X(u) {
|
|
1677
|
+
const { key: e, async: t, params: a, body: r } = u, n = a?.map((s) => s.type === "ObjectPattern" ? `{${s.properties.map((o) => o.key?.name || o.name).join(",")}}` : s.type === "AssignmentPattern" ? s.left.name + "=" + (s.right?.extra?.raw || "null") : s.name).join(", ");
|
|
1678
|
+
if (e.type === "Identifier") {
|
|
1679
|
+
const s = e.name, i = u.value;
|
|
1643
1680
|
if (i && i.type === "ObjectExpression") {
|
|
1644
1681
|
const b = A(i), m = s.startsWith("watcher_");
|
|
1645
1682
|
return {
|
|
@@ -1663,20 +1700,20 @@ function X(e) {
|
|
|
1663
1700
|
};
|
|
1664
1701
|
}
|
|
1665
1702
|
}
|
|
1666
|
-
function
|
|
1667
|
-
return /return\s+await\s+this\.provider\.apis\['[\w]*'\]\s*\.apply/.test(
|
|
1703
|
+
function Ye(u) {
|
|
1704
|
+
return /return\s+await\s+this\.provider\.apis\['[\w]*'\]\s*\.apply/.test(u) || /return\s+await\s+this\.provider\.createMock/.test(u);
|
|
1668
1705
|
}
|
|
1669
|
-
function
|
|
1670
|
-
if (!
|
|
1671
|
-
const
|
|
1672
|
-
for (const t of
|
|
1706
|
+
function eu(u) {
|
|
1707
|
+
if (!u) return {};
|
|
1708
|
+
const e = {};
|
|
1709
|
+
for (const t of u.properties) {
|
|
1673
1710
|
const a = X(t);
|
|
1674
|
-
a && !a.watcher && !
|
|
1711
|
+
a && !a.watcher && !Ye(a.exp.value) && (e[a.name] = a.exp);
|
|
1675
1712
|
}
|
|
1676
|
-
return
|
|
1713
|
+
return e;
|
|
1677
1714
|
}
|
|
1678
|
-
function
|
|
1679
|
-
if (!
|
|
1715
|
+
function ot(u, e) {
|
|
1716
|
+
if (!u) return {};
|
|
1680
1717
|
const t = {}, a = /apis\['([\w]*)'\]/, r = (n) => {
|
|
1681
1718
|
const s = n.indexOf(".then(");
|
|
1682
1719
|
if (s === -1) return null;
|
|
@@ -1687,13 +1724,13 @@ function st(e, u) {
|
|
|
1687
1724
|
}
|
|
1688
1725
|
return n.substring(s + 6, o - 1).trim();
|
|
1689
1726
|
};
|
|
1690
|
-
for (const n of
|
|
1691
|
-
const s = X(n), i = n.body.body?.[0], o = (i?.leadingComments?.[0].value || "").trim(), c =
|
|
1692
|
-
if (s &&
|
|
1727
|
+
for (const n of u.properties) {
|
|
1728
|
+
const s = X(n), i = n.body.body?.[0], o = (i?.leadingComments?.[0].value || "").trim(), c = Ke(o);
|
|
1729
|
+
if (s && Ye(s.exp.value)) {
|
|
1693
1730
|
if (s.exp.value.includes("this.provider.apis")) {
|
|
1694
1731
|
const l = (s.exp.value.match(a) || [])[1];
|
|
1695
1732
|
if (!l) continue;
|
|
1696
|
-
const p =
|
|
1733
|
+
const p = vt(e, l), b = r(s.exp.value);
|
|
1697
1734
|
t[s.name] = {
|
|
1698
1735
|
ref: l,
|
|
1699
1736
|
name: s.name,
|
|
@@ -1743,19 +1780,19 @@ function st(e, u) {
|
|
|
1743
1780
|
}
|
|
1744
1781
|
return t;
|
|
1745
1782
|
}
|
|
1746
|
-
function
|
|
1747
|
-
const
|
|
1748
|
-
for (const r of Object.keys(
|
|
1783
|
+
function dt(u) {
|
|
1784
|
+
const e = eu(u), t = /\_([\w]{5,})$/, a = {};
|
|
1785
|
+
for (const r of Object.keys(e))
|
|
1749
1786
|
if (!t.test(r)) {
|
|
1750
|
-
const n =
|
|
1787
|
+
const n = e[r];
|
|
1751
1788
|
n && (a[r] = n);
|
|
1752
1789
|
}
|
|
1753
1790
|
return a;
|
|
1754
1791
|
}
|
|
1755
|
-
function
|
|
1756
|
-
if (!
|
|
1757
|
-
const
|
|
1758
|
-
for (const a of
|
|
1792
|
+
function lt(u) {
|
|
1793
|
+
if (!u) return {};
|
|
1794
|
+
const e = {}, t = /\_([\w]{5,})$/;
|
|
1795
|
+
for (const a of u.properties) {
|
|
1759
1796
|
const r = a.key.name;
|
|
1760
1797
|
if (t.test(r))
|
|
1761
1798
|
try {
|
|
@@ -1763,54 +1800,54 @@ function ct(e) {
|
|
|
1763
1800
|
const n = A(
|
|
1764
1801
|
a.body.body[0].argument.callee.object
|
|
1765
1802
|
);
|
|
1766
|
-
|
|
1803
|
+
e[r] = C(n);
|
|
1767
1804
|
} else
|
|
1768
|
-
|
|
1805
|
+
e[r] = X(a)?.exp;
|
|
1769
1806
|
} catch (n) {
|
|
1770
1807
|
console.warn(n);
|
|
1771
1808
|
}
|
|
1772
1809
|
}
|
|
1773
|
-
return
|
|
1810
|
+
return e;
|
|
1774
1811
|
}
|
|
1775
|
-
function
|
|
1776
|
-
if (!
|
|
1777
|
-
const
|
|
1778
|
-
for (const t of
|
|
1812
|
+
function ft(u) {
|
|
1813
|
+
if (!u) return {};
|
|
1814
|
+
const e = {};
|
|
1815
|
+
for (const t of u.properties) {
|
|
1779
1816
|
const a = X(t);
|
|
1780
|
-
a && a.watcher && (
|
|
1817
|
+
a && a.watcher && (e[a.name] = a.exp);
|
|
1781
1818
|
}
|
|
1782
|
-
return
|
|
1819
|
+
return e;
|
|
1783
1820
|
}
|
|
1784
|
-
function
|
|
1785
|
-
return !!
|
|
1821
|
+
function Y(u, e) {
|
|
1822
|
+
return !!uu(u, e);
|
|
1786
1823
|
}
|
|
1787
|
-
function
|
|
1788
|
-
return
|
|
1789
|
-
(a) => a.key?.name ===
|
|
1824
|
+
function uu(u, e) {
|
|
1825
|
+
return u?.find(
|
|
1826
|
+
(a) => a.key?.name === e
|
|
1790
1827
|
)?.value?.value;
|
|
1791
1828
|
}
|
|
1792
|
-
function
|
|
1793
|
-
const t =
|
|
1794
|
-
(a) => a.key?.name ===
|
|
1829
|
+
function Re(u, e) {
|
|
1830
|
+
const t = u?.find(
|
|
1831
|
+
(a) => a.key?.name === e
|
|
1795
1832
|
);
|
|
1796
1833
|
if (t)
|
|
1797
1834
|
return X(t)?.exp;
|
|
1798
1835
|
}
|
|
1799
|
-
function
|
|
1836
|
+
function bt(u, e = {}) {
|
|
1800
1837
|
const t = [];
|
|
1801
|
-
for (const a of
|
|
1838
|
+
for (const a of u.properties) {
|
|
1802
1839
|
const { key: r, value: n } = a, s = r.value || r.name || "";
|
|
1803
|
-
if (
|
|
1840
|
+
if (e[s]) {
|
|
1804
1841
|
const i = n.properties;
|
|
1805
1842
|
t.push({
|
|
1806
1843
|
id: s.replace("watcher_", ""),
|
|
1807
|
-
source:
|
|
1808
|
-
deep:
|
|
1809
|
-
immediate:
|
|
1810
|
-
handler:
|
|
1844
|
+
source: e[s],
|
|
1845
|
+
deep: Y(i, "deep"),
|
|
1846
|
+
immediate: Y(i, "immediate"),
|
|
1847
|
+
handler: Re(i, "handler")
|
|
1811
1848
|
});
|
|
1812
1849
|
} else if (a.type === "ObjectMethod" && t.push({
|
|
1813
|
-
id:
|
|
1850
|
+
id: re(),
|
|
1814
1851
|
source: {
|
|
1815
1852
|
type: "JSFunction",
|
|
1816
1853
|
value: `() => { return this.${s}; }`
|
|
@@ -1821,108 +1858,108 @@ function dt(e, u = {}) {
|
|
|
1821
1858
|
}), a.type === "ObjectProperty") {
|
|
1822
1859
|
const i = n.properties;
|
|
1823
1860
|
t.push({
|
|
1824
|
-
id:
|
|
1861
|
+
id: re(),
|
|
1825
1862
|
source: {
|
|
1826
1863
|
type: "JSFunction",
|
|
1827
1864
|
value: `() => { return this.${s}; }`
|
|
1828
1865
|
},
|
|
1829
|
-
deep:
|
|
1830
|
-
immediate:
|
|
1831
|
-
handler:
|
|
1866
|
+
deep: Y(i, "deep"),
|
|
1867
|
+
immediate: Y(i, "immediate"),
|
|
1868
|
+
handler: Re(i, "handler")
|
|
1832
1869
|
});
|
|
1833
1870
|
}
|
|
1834
1871
|
}
|
|
1835
1872
|
return t;
|
|
1836
1873
|
}
|
|
1837
|
-
function
|
|
1838
|
-
const
|
|
1839
|
-
for (const t of
|
|
1874
|
+
function pt(u) {
|
|
1875
|
+
const e = {};
|
|
1876
|
+
for (const t of u) {
|
|
1840
1877
|
const a = t.key.name;
|
|
1841
|
-
if (
|
|
1878
|
+
if (Mu.includes(a)) {
|
|
1842
1879
|
const r = X(t);
|
|
1843
|
-
r && (
|
|
1880
|
+
r && (e[r.name] = r.exp);
|
|
1844
1881
|
}
|
|
1845
1882
|
}
|
|
1846
|
-
return
|
|
1883
|
+
return e;
|
|
1847
1884
|
}
|
|
1848
|
-
function
|
|
1849
|
-
const
|
|
1885
|
+
function mt(u) {
|
|
1886
|
+
const e = u?.find(
|
|
1850
1887
|
(t) => t.key?.name === "type"
|
|
1851
1888
|
);
|
|
1852
|
-
if (
|
|
1853
|
-
return
|
|
1889
|
+
if (e)
|
|
1890
|
+
return e.value.type === "ArrayExpression" ? e.value.elements.map((t) => t.name) : e.value.name;
|
|
1854
1891
|
}
|
|
1855
|
-
function
|
|
1856
|
-
const
|
|
1892
|
+
function tu(u) {
|
|
1893
|
+
const e = u?.find(
|
|
1857
1894
|
(t) => t.key?.name === "default"
|
|
1858
1895
|
);
|
|
1859
|
-
if (
|
|
1860
|
-
return k(A(
|
|
1896
|
+
if (e)
|
|
1897
|
+
return k(A(e.value));
|
|
1861
1898
|
}
|
|
1862
|
-
function
|
|
1863
|
-
if (!
|
|
1864
|
-
let
|
|
1865
|
-
return
|
|
1899
|
+
function ht(u) {
|
|
1900
|
+
if (!u) return [];
|
|
1901
|
+
let e = [];
|
|
1902
|
+
return u.type === "ArrayExpression" ? e = u.elements.map((t) => t.value) : u.type === "ObjectExpression" && (e = u.properties?.map((t) => {
|
|
1866
1903
|
const { key: a, value: r } = t, n = r.properties || [];
|
|
1867
1904
|
return {
|
|
1868
1905
|
name: a.name,
|
|
1869
|
-
required:
|
|
1870
|
-
type:
|
|
1871
|
-
default:
|
|
1906
|
+
required: Y(n, "required"),
|
|
1907
|
+
type: mt(n),
|
|
1908
|
+
default: tu(n)
|
|
1872
1909
|
};
|
|
1873
|
-
})),
|
|
1910
|
+
})), e;
|
|
1874
1911
|
}
|
|
1875
|
-
function
|
|
1876
|
-
const
|
|
1877
|
-
if (
|
|
1878
|
-
const [a, ...r] = (
|
|
1912
|
+
function xt(u) {
|
|
1913
|
+
const e = [];
|
|
1914
|
+
if (u.callee.type === "MemberExpression" && u.callee.property?.name === "$emit") {
|
|
1915
|
+
const [a, ...r] = (u.arguments || []).map(
|
|
1879
1916
|
(n) => n.value || n.name
|
|
1880
1917
|
);
|
|
1881
|
-
a &&
|
|
1918
|
+
a && e.push({
|
|
1882
1919
|
name: a,
|
|
1883
1920
|
params: r.filter((n) => !!n)
|
|
1884
1921
|
});
|
|
1885
1922
|
}
|
|
1886
|
-
return
|
|
1923
|
+
return e;
|
|
1887
1924
|
}
|
|
1888
|
-
function
|
|
1889
|
-
let
|
|
1890
|
-
return
|
|
1891
|
-
const { key: a, value: r } = t, n = r.properties, s = a.name, i =
|
|
1925
|
+
function gt(u) {
|
|
1926
|
+
let e = [];
|
|
1927
|
+
return u.type === "ObjectExpression" && (e = u.properties?.map((t) => {
|
|
1928
|
+
const { key: a, value: r } = t, n = r.properties, s = a.name, i = uu(n, "from"), o = tu(n);
|
|
1892
1929
|
return {
|
|
1893
1930
|
name: s,
|
|
1894
1931
|
from: i || s,
|
|
1895
1932
|
default: o
|
|
1896
1933
|
};
|
|
1897
|
-
})),
|
|
1934
|
+
})), e;
|
|
1898
1935
|
}
|
|
1899
|
-
function
|
|
1900
|
-
return
|
|
1936
|
+
function yt(u) {
|
|
1937
|
+
return u && u.elements ? u.elements.map((e) => e?.type === "StringLiteral" ? e.value : "").filter((e) => !!e) : [];
|
|
1901
1938
|
}
|
|
1902
|
-
function
|
|
1903
|
-
return
|
|
1939
|
+
function St(u) {
|
|
1940
|
+
return u && u.elements ? u.elements.map((e) => e?.type === "StringLiteral" && e.value ? { name: e.value, params: [] } : null).filter((e) => !!e) : [];
|
|
1904
1941
|
}
|
|
1905
|
-
function
|
|
1906
|
-
return (
|
|
1942
|
+
function vt(u, e) {
|
|
1943
|
+
return (u.apis || []).find((t) => t.id === e || t.name === e);
|
|
1907
1944
|
}
|
|
1908
|
-
function
|
|
1909
|
-
if (!
|
|
1910
|
-
const
|
|
1911
|
-
for (const t of
|
|
1945
|
+
function Et(u) {
|
|
1946
|
+
if (!u?.properties) return {};
|
|
1947
|
+
const e = {};
|
|
1948
|
+
for (const t of u.properties) {
|
|
1912
1949
|
const { key: a, value: r } = t;
|
|
1913
|
-
a?.name && r?.name && (
|
|
1950
|
+
a?.name && r?.name && (e[a.name] = e[a.name.toLowerCase()] = {
|
|
1914
1951
|
type: "JSExpression",
|
|
1915
1952
|
value: r.name
|
|
1916
1953
|
});
|
|
1917
1954
|
}
|
|
1918
|
-
return
|
|
1955
|
+
return e;
|
|
1919
1956
|
}
|
|
1920
|
-
let
|
|
1921
|
-
function
|
|
1922
|
-
|
|
1923
|
-
const n =
|
|
1924
|
-
id:
|
|
1925
|
-
filename:
|
|
1957
|
+
let pe = [], se = {}, au = {}, ru = {}, nu = {}, ie = "web", su = [];
|
|
1958
|
+
function iu(u, e, t = "", a) {
|
|
1959
|
+
pe = [], se = {}, au = a?.handlers || {}, nu = a?.styles || {}, ie = a?.platform || "web", su = a?.imports || [], ru = a?.directives || {};
|
|
1960
|
+
const n = He({
|
|
1961
|
+
id: u,
|
|
1962
|
+
filename: e,
|
|
1926
1963
|
source: t,
|
|
1927
1964
|
isProd: !0,
|
|
1928
1965
|
slotted: !0
|
|
@@ -1933,58 +1970,58 @@ function ne(e, u, t = "", a) {
|
|
|
1933
1970
|
}
|
|
1934
1971
|
return {
|
|
1935
1972
|
nodes: s.filter((i) => !!i),
|
|
1936
|
-
slots:
|
|
1937
|
-
context:
|
|
1973
|
+
slots: pe,
|
|
1974
|
+
context: se
|
|
1938
1975
|
};
|
|
1939
1976
|
}
|
|
1940
|
-
function
|
|
1941
|
-
if (
|
|
1942
|
-
let
|
|
1977
|
+
function wt(u) {
|
|
1978
|
+
if (u.name === "slot") {
|
|
1979
|
+
let e = "default";
|
|
1943
1980
|
const t = [];
|
|
1944
|
-
for (const [a, r] of Object.entries(
|
|
1945
|
-
a === "name" ?
|
|
1946
|
-
|
|
1947
|
-
name:
|
|
1981
|
+
for (const [a, r] of Object.entries(u.props || {}))
|
|
1982
|
+
a === "name" ? e = r : t.push(a);
|
|
1983
|
+
pe.push({
|
|
1984
|
+
name: e,
|
|
1948
1985
|
params: t
|
|
1949
1986
|
});
|
|
1950
1987
|
}
|
|
1951
1988
|
}
|
|
1952
|
-
function
|
|
1953
|
-
const
|
|
1954
|
-
for (const t of
|
|
1989
|
+
function It(u) {
|
|
1990
|
+
const e = {};
|
|
1991
|
+
for (const t of u) {
|
|
1955
1992
|
if (t.type === w.ATTRIBUTE)
|
|
1956
1993
|
if (t.name === "class") {
|
|
1957
|
-
const a = t.value?.content || "", r = /[\w]+_[\w]{5,}/, n = a.match(r)?.[0] || "", s = a.split(" ").filter((o) => o !== n), i =
|
|
1958
|
-
i && (
|
|
1994
|
+
const a = t.value?.content || "", r = /[\w]+_[\w]{5,}/, n = a.match(r)?.[0] || "", s = a.split(" ").filter((o) => o !== n), i = nu[`.${n}`];
|
|
1995
|
+
i && (e.style = i), s.length && (e.class = s.join(" "));
|
|
1959
1996
|
} else if (t.name === "style") {
|
|
1960
1997
|
const a = t.value?.content || "";
|
|
1961
|
-
a && (
|
|
1998
|
+
a && (e.style = Qe(a));
|
|
1962
1999
|
} else
|
|
1963
|
-
|
|
1964
|
-
if (t.type === w.DIRECTIVE && t.name === "bind" && (t.exp?.type === w.SIMPLE_EXPRESSION && t.arg?.type === w.SIMPLE_EXPRESSION && (
|
|
1965
|
-
if (t.arg.content === "class" &&
|
|
1966
|
-
const a = t.exp.ast.type, r =
|
|
1967
|
-
|
|
2000
|
+
e[t.name] = t.value?.content || "";
|
|
2001
|
+
if (t.type === w.DIRECTIVE && t.name === "bind" && (t.exp?.type === w.SIMPLE_EXPRESSION && t.arg?.type === w.SIMPLE_EXPRESSION && (e[t.arg.content] = k(`(${t.exp.content})`)), t.exp?.type === w.COMPOUND_EXPRESSION && t.arg?.type === w.SIMPLE_EXPRESSION))
|
|
2002
|
+
if (t.arg.content === "class" && e.class) {
|
|
2003
|
+
const a = t.exp.ast.type, r = $u(
|
|
2004
|
+
e.class,
|
|
1968
2005
|
t.exp.loc.source,
|
|
1969
2006
|
a
|
|
1970
2007
|
);
|
|
1971
|
-
r && (
|
|
2008
|
+
r && (e[t.arg.content] = k(r));
|
|
1972
2009
|
} else
|
|
1973
|
-
|
|
2010
|
+
e[t.arg.content] = k(
|
|
1974
2011
|
`(${t.exp.loc.source})`
|
|
1975
2012
|
);
|
|
1976
2013
|
}
|
|
1977
|
-
return
|
|
2014
|
+
return e;
|
|
1978
2015
|
}
|
|
1979
|
-
function
|
|
1980
|
-
const
|
|
1981
|
-
for (const [t, a] of Object.entries(
|
|
1982
|
-
|
|
1983
|
-
return
|
|
2016
|
+
function At(u = {}) {
|
|
2017
|
+
const e = {};
|
|
2018
|
+
for (const [t, a] of Object.entries(u))
|
|
2019
|
+
e[t === "tap" ? "click" : t] = a;
|
|
2020
|
+
return e;
|
|
1984
2021
|
}
|
|
1985
|
-
function
|
|
2022
|
+
function kt(u, e = {}) {
|
|
1986
2023
|
const t = {};
|
|
1987
|
-
for (const a of
|
|
2024
|
+
for (const a of u)
|
|
1988
2025
|
if (a.type === w.DIRECTIVE && a.name === "on" && a.arg?.type === w.SIMPLE_EXPRESSION) {
|
|
1989
2026
|
const r = a.modifiers.reduce(
|
|
1990
2027
|
(c, d) => (d.content && (c[d.content] = !0), c),
|
|
@@ -1992,7 +2029,7 @@ function wt(e, u = {}) {
|
|
|
1992
2029
|
);
|
|
1993
2030
|
let n = a.exp?.loc.source || "";
|
|
1994
2031
|
n || (n = "() => {}");
|
|
1995
|
-
const s = new RegExp(`${a.arg.content}_[\\w]{5,}`), i = n.match(s)?.[0] || "", o =
|
|
2032
|
+
const s = new RegExp(`${a.arg.content}_[\\w]{5,}`), i = n.match(s)?.[0] || "", o = e[i];
|
|
1996
2033
|
if (i && o)
|
|
1997
2034
|
t[a.arg.content] = {
|
|
1998
2035
|
name: a.arg.content,
|
|
@@ -2000,11 +2037,11 @@ function wt(e, u = {}) {
|
|
|
2000
2037
|
modifiers: r
|
|
2001
2038
|
};
|
|
2002
2039
|
else {
|
|
2003
|
-
const c = a.exp?.ast, d = c?.type, l = d === "CallExpression", p = d === "ArrowFunctionExpression", b = d === "FunctionExpression", m = d === "Identifier",
|
|
2040
|
+
const c = a.exp?.ast, d = c?.type, l = d === "CallExpression", p = d === "ArrowFunctionExpression", b = d === "FunctionExpression", m = d === "Identifier", y = d === "MemberExpression", v = !c && /^[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*$/.test(n);
|
|
2004
2041
|
let h;
|
|
2005
2042
|
if (l)
|
|
2006
2043
|
h = k(n);
|
|
2007
|
-
else if (m ||
|
|
2044
|
+
else if (m || y || v)
|
|
2008
2045
|
h = C(n);
|
|
2009
2046
|
else if (p || b) {
|
|
2010
2047
|
const g = c?.body, x = c?.params;
|
|
@@ -2033,32 +2070,32 @@ function wt(e, u = {}) {
|
|
|
2033
2070
|
};
|
|
2034
2071
|
}
|
|
2035
2072
|
}
|
|
2036
|
-
return
|
|
2073
|
+
return At(t);
|
|
2037
2074
|
}
|
|
2038
|
-
function
|
|
2075
|
+
function Q(u, e) {
|
|
2039
2076
|
const t = [], a = ["if", "for", "model", "show", "bind", "html"];
|
|
2040
|
-
if (
|
|
2041
|
-
if (
|
|
2077
|
+
if (e && (u.type === w.IF_BRANCH || u.type === w.IF) && e.forEach((r, n) => {
|
|
2078
|
+
if (u === r) {
|
|
2042
2079
|
const s = n === 0 ? "vIf" : r.condition ? "vElseIf" : "vElse", i = r.condition?.loc.source || "";
|
|
2043
2080
|
t.push({
|
|
2044
2081
|
name: s,
|
|
2045
2082
|
value: s === "vElse" ? !0 : k(i)
|
|
2046
2083
|
});
|
|
2047
|
-
const o =
|
|
2084
|
+
const o = u.children?.[0];
|
|
2048
2085
|
if (o && o.type !== w.FOR) {
|
|
2049
|
-
const c =
|
|
2086
|
+
const c = Q(o);
|
|
2050
2087
|
t.push(...c);
|
|
2051
2088
|
}
|
|
2052
2089
|
}
|
|
2053
|
-
}),
|
|
2090
|
+
}), u.type === w.FOR && t.push({
|
|
2054
2091
|
name: "vFor",
|
|
2055
|
-
value: k(
|
|
2092
|
+
value: k(u.source.loc.source),
|
|
2056
2093
|
iterator: {
|
|
2057
|
-
item:
|
|
2058
|
-
index:
|
|
2094
|
+
item: u.valueAlias?.loc.source || "item",
|
|
2095
|
+
index: u.keyAlias?.loc.source || "index"
|
|
2059
2096
|
}
|
|
2060
|
-
}),
|
|
2061
|
-
const r =
|
|
2097
|
+
}), u.type === w.ELEMENT) {
|
|
2098
|
+
const r = u.props.filter(
|
|
2062
2099
|
(d) => d.type === w.DIRECTIVE
|
|
2063
2100
|
), n = r.filter((d) => d.name === "model");
|
|
2064
2101
|
n.length && n.forEach((d) => {
|
|
@@ -2086,9 +2123,9 @@ function K(e, u) {
|
|
|
2086
2123
|
const c = r.filter((d) => !a.includes(d.name));
|
|
2087
2124
|
for (const d of c) {
|
|
2088
2125
|
const l = (d.modifiers || []).reduce(
|
|
2089
|
-
(m,
|
|
2126
|
+
(m, y) => (m[y.content] = !0, m),
|
|
2090
2127
|
{}
|
|
2091
|
-
), p = d.arg?.content || void 0, b =
|
|
2128
|
+
), p = d.arg?.content || void 0, b = ru[d.name];
|
|
2092
2129
|
b && t.push({
|
|
2093
2130
|
name: b,
|
|
2094
2131
|
value: k(d.exp?.loc.source || ""),
|
|
@@ -2099,28 +2136,28 @@ function K(e, u) {
|
|
|
2099
2136
|
}
|
|
2100
2137
|
return t;
|
|
2101
2138
|
}
|
|
2102
|
-
function
|
|
2103
|
-
let
|
|
2104
|
-
if (
|
|
2105
|
-
const { props: t = [], tag: a } =
|
|
2139
|
+
function cu(u) {
|
|
2140
|
+
let e = "";
|
|
2141
|
+
if (u.type === w.ELEMENT) {
|
|
2142
|
+
const { props: t = [], tag: a } = u;
|
|
2106
2143
|
for (const r of t)
|
|
2107
2144
|
if (r.name === "class") {
|
|
2108
2145
|
const n = r.value?.content || "", s = new RegExp(`${a}_([\\w]+)`);
|
|
2109
|
-
|
|
2146
|
+
e = n.match(s)?.[1] || "";
|
|
2110
2147
|
} else if (r.type === w.DIRECTIVE && r.name === "on") {
|
|
2111
2148
|
const n = r.arg?.loc?.source || "", s = r.exp?.loc?.source || "", i = new RegExp(`${n}_([\\w]+)`);
|
|
2112
|
-
|
|
2149
|
+
e = s.match(i)?.[1] || "";
|
|
2113
2150
|
}
|
|
2114
2151
|
}
|
|
2115
|
-
return
|
|
2152
|
+
return e || re();
|
|
2116
2153
|
}
|
|
2117
|
-
function
|
|
2118
|
-
const
|
|
2119
|
-
for (const { from: t, imports: a } of
|
|
2120
|
-
if (Array.isArray(a) && a.includes(
|
|
2154
|
+
function Tt(u) {
|
|
2155
|
+
const e = /\.\/(.+?)\.vue/;
|
|
2156
|
+
for (const { from: t, imports: a } of su) {
|
|
2157
|
+
if (Array.isArray(a) && a.includes(u))
|
|
2121
2158
|
return t;
|
|
2122
|
-
if (a ===
|
|
2123
|
-
const r = t.match(
|
|
2159
|
+
if (a === u) {
|
|
2160
|
+
const r = t.match(e)?.[1];
|
|
2124
2161
|
if (r)
|
|
2125
2162
|
return {
|
|
2126
2163
|
type: "Schema",
|
|
@@ -2129,79 +2166,79 @@ function It(e) {
|
|
|
2129
2166
|
}
|
|
2130
2167
|
}
|
|
2131
2168
|
}
|
|
2132
|
-
function
|
|
2133
|
-
const t = new Set(
|
|
2169
|
+
function me(u, e) {
|
|
2170
|
+
const t = new Set(e?.id ? se[e.id] : []), a = (u.directives || []).find((s) => s.name === "vFor");
|
|
2134
2171
|
let r = new Set(Array.from(t));
|
|
2135
2172
|
if (a) {
|
|
2136
2173
|
const { item: s = "item", index: i = "index" } = a.iterator || {};
|
|
2137
2174
|
r = /* @__PURE__ */ new Set([s, i, ...Array.from(r)]);
|
|
2138
2175
|
}
|
|
2139
|
-
const n =
|
|
2176
|
+
const n = u.slot;
|
|
2140
2177
|
if (n) {
|
|
2141
|
-
const s = typeof n == "string" ? [] : n.params || [], i = s.length ? s : [`scope_${
|
|
2178
|
+
const s = typeof n == "string" ? [] : n.params || [], i = s.length ? s : [`scope_${e?.id}`];
|
|
2142
2179
|
r = /* @__PURE__ */ new Set([...i, ...Array.from(r)]);
|
|
2143
2180
|
}
|
|
2144
|
-
|
|
2181
|
+
se[u.id] = r;
|
|
2145
2182
|
}
|
|
2146
|
-
function
|
|
2183
|
+
function fe(u, e, t, a) {
|
|
2147
2184
|
const r = {
|
|
2148
|
-
name:
|
|
2149
|
-
from:
|
|
2150
|
-
props:
|
|
2151
|
-
events:
|
|
2152
|
-
directives:
|
|
2185
|
+
name: Ze(u.tag, ie),
|
|
2186
|
+
from: Tt(u.tag),
|
|
2187
|
+
props: It(u.props),
|
|
2188
|
+
events: kt(u.props, au),
|
|
2189
|
+
directives: Q(t || u, a)
|
|
2153
2190
|
};
|
|
2154
|
-
r.id =
|
|
2155
|
-
const n =
|
|
2156
|
-
return
|
|
2157
|
-
}
|
|
2158
|
-
function
|
|
2159
|
-
return
|
|
2160
|
-
}
|
|
2161
|
-
function Z(
|
|
2162
|
-
if (
|
|
2163
|
-
return
|
|
2164
|
-
if (
|
|
2165
|
-
return
|
|
2166
|
-
if (t &&
|
|
2167
|
-
const a =
|
|
2191
|
+
r.id = cu(u), me(r, e);
|
|
2192
|
+
const n = ee(r, u.children);
|
|
2193
|
+
return me(r, e), wt(n), n;
|
|
2194
|
+
}
|
|
2195
|
+
function Nt(u = [], e) {
|
|
2196
|
+
return u.map((t) => Z(t, e, u));
|
|
2197
|
+
}
|
|
2198
|
+
function Z(u, e, t) {
|
|
2199
|
+
if (u.type === w.ELEMENT)
|
|
2200
|
+
return fe(u, e);
|
|
2201
|
+
if (u.type === w.IF)
|
|
2202
|
+
return jt(u);
|
|
2203
|
+
if (t && u.type === w.IF_BRANCH) {
|
|
2204
|
+
const a = u.children.find(
|
|
2168
2205
|
(r) => r.type === w.ELEMENT || r.type === w.FOR
|
|
2169
2206
|
);
|
|
2170
2207
|
if (a) {
|
|
2171
2208
|
if (a.type === w.ELEMENT)
|
|
2172
|
-
return
|
|
2209
|
+
return fe(a, e, u, t);
|
|
2173
2210
|
if (a.type === w.FOR) {
|
|
2174
|
-
const n = { name: "div", directives:
|
|
2175
|
-
return
|
|
2211
|
+
const n = { name: "div", directives: Q(u) };
|
|
2212
|
+
return ee(n, u.children || []);
|
|
2176
2213
|
}
|
|
2177
2214
|
}
|
|
2178
2215
|
return "";
|
|
2179
2216
|
}
|
|
2180
|
-
if (
|
|
2181
|
-
const a =
|
|
2182
|
-
if (
|
|
2183
|
-
const n = { name: "span", directives:
|
|
2184
|
-
return
|
|
2217
|
+
if (u.type === w.FOR) {
|
|
2218
|
+
const a = u.children[0];
|
|
2219
|
+
if (u.children.length > 1 || a.type !== w.ELEMENT) {
|
|
2220
|
+
const n = { name: "span", directives: Q(u) };
|
|
2221
|
+
return ee(n, u.children);
|
|
2185
2222
|
} else
|
|
2186
|
-
return
|
|
2223
|
+
return fe(a, e, u);
|
|
2187
2224
|
}
|
|
2188
|
-
if (
|
|
2189
|
-
return
|
|
2190
|
-
|
|
2225
|
+
if (u.type === w.TEXT_CALL)
|
|
2226
|
+
return u.content.type == w.TEXT ? u.content.content : u.content.type === w.INTERPOLATION ? k(u.content.content.loc.source) : u.content.type === w.COMPOUND_EXPRESSION ? Ce(
|
|
2227
|
+
u.content.children
|
|
2191
2228
|
) : "";
|
|
2192
|
-
if (
|
|
2193
|
-
return
|
|
2194
|
-
if (
|
|
2195
|
-
return k(
|
|
2196
|
-
if (
|
|
2197
|
-
return
|
|
2198
|
-
|
|
2229
|
+
if (u.type === w.TEXT)
|
|
2230
|
+
return u.content;
|
|
2231
|
+
if (u.type === w.INTERPOLATION && (u.content.type === w.SIMPLE_EXPRESSION || u.content.type === w.COMPOUND_EXPRESSION))
|
|
2232
|
+
return k(u.content.loc.source);
|
|
2233
|
+
if (u.type === w.COMPOUND_EXPRESSION)
|
|
2234
|
+
return Ce(
|
|
2235
|
+
u.children
|
|
2199
2236
|
);
|
|
2200
|
-
|
|
2237
|
+
u.type !== w.COMMENT && console.warn("未处理", u.type);
|
|
2201
2238
|
}
|
|
2202
|
-
function
|
|
2203
|
-
const
|
|
2204
|
-
for (const a of
|
|
2239
|
+
function Ce(u = []) {
|
|
2240
|
+
const e = u.filter((a) => typeof a != "string"), t = [];
|
|
2241
|
+
for (const a of e)
|
|
2205
2242
|
t.push({
|
|
2206
2243
|
name: "span",
|
|
2207
2244
|
children: a.type === w.TEXT ? a.loc.source : k(a.content?.loc.source)
|
|
@@ -2211,13 +2248,13 @@ function Ru(e = []) {
|
|
|
2211
2248
|
children: t
|
|
2212
2249
|
};
|
|
2213
2250
|
}
|
|
2214
|
-
function
|
|
2251
|
+
function ee(u, e = []) {
|
|
2215
2252
|
const t = [];
|
|
2216
|
-
for (const a of
|
|
2253
|
+
for (const a of e)
|
|
2217
2254
|
if (a.type === w.ELEMENT && a.codegenNode?.value?.arguments) {
|
|
2218
2255
|
const r = a.codegenNode.value.arguments[0];
|
|
2219
2256
|
if (r) {
|
|
2220
|
-
const n =
|
|
2257
|
+
const n = De(r, ie);
|
|
2221
2258
|
t.push(...n);
|
|
2222
2259
|
}
|
|
2223
2260
|
} else if (a.type === w.ELEMENT && a.tag === "template") {
|
|
@@ -2225,50 +2262,50 @@ function tu(e, u = []) {
|
|
|
2225
2262
|
for (const n of a.children) {
|
|
2226
2263
|
const s = n.type === w.TEXT || n.type === w.TEXT_CALL ? {
|
|
2227
2264
|
name: "span",
|
|
2228
|
-
children: Z(n,
|
|
2229
|
-
} : Z(n,
|
|
2265
|
+
children: Z(n, u)
|
|
2266
|
+
} : Z(n, u);
|
|
2230
2267
|
s && (Array.isArray(s) ? s : [s]).forEach((o) => {
|
|
2231
|
-
|
|
2268
|
+
Tu(o) && r?.type === w.DIRECTIVE && (o.id = cu(n), o.slot = {
|
|
2232
2269
|
name: r.arg?.content || "default",
|
|
2233
2270
|
params: r.exp?.identifiers || [],
|
|
2234
2271
|
scope: r.exp?.type === w.SIMPLE_EXPRESSION ? r.exp.content : ""
|
|
2235
|
-
},
|
|
2272
|
+
}, me(o, u)), t.push(o);
|
|
2236
2273
|
});
|
|
2237
2274
|
}
|
|
2238
2275
|
} else if (a.type === w.JS_CALL_EXPRESSION) {
|
|
2239
2276
|
const r = a.arguments?.[0];
|
|
2240
2277
|
if (r) {
|
|
2241
|
-
const n =
|
|
2278
|
+
const n = De(r, ie);
|
|
2242
2279
|
t.push(...n);
|
|
2243
2280
|
}
|
|
2244
2281
|
} else if (a.type === w.TEXT_CALL) {
|
|
2245
|
-
const r = Z(a,
|
|
2282
|
+
const r = Z(a, u);
|
|
2246
2283
|
r && (Array.isArray(r) ? t.push(...r) : t.push(r));
|
|
2247
2284
|
} else {
|
|
2248
|
-
const r = Z(a,
|
|
2285
|
+
const r = Z(a, u);
|
|
2249
2286
|
r && (Array.isArray(r) ? t.push(...r) : t.push(r));
|
|
2250
2287
|
}
|
|
2251
2288
|
if (t.length === 1) {
|
|
2252
2289
|
const a = t[0];
|
|
2253
|
-
|
|
2290
|
+
u.children = typeof a == "string" || ne(a) ? a : [a];
|
|
2254
2291
|
} else
|
|
2255
|
-
|
|
2256
|
-
return
|
|
2292
|
+
u.children = t.map((a) => typeof a == "string" || ne(a) ? { name: "span", children: a } : a);
|
|
2293
|
+
return u;
|
|
2257
2294
|
}
|
|
2258
|
-
function
|
|
2259
|
-
const
|
|
2295
|
+
function jt(u) {
|
|
2296
|
+
const e = u.branches || [], t = e[0], a = t?.children || [];
|
|
2260
2297
|
if (t?.isTemplateIf)
|
|
2261
|
-
return
|
|
2262
|
-
const s = { name: "div", directives:
|
|
2263
|
-
return
|
|
2298
|
+
return e.map((r) => {
|
|
2299
|
+
const s = { name: "div", directives: Q(r, e) };
|
|
2300
|
+
return ee(s, r.children || []);
|
|
2264
2301
|
});
|
|
2265
2302
|
if (a.length > 1 || a[0] && a[0].type !== w.ELEMENT) {
|
|
2266
|
-
const n = { name: "div", directives:
|
|
2267
|
-
return
|
|
2303
|
+
const n = { name: "div", directives: Q(t, e) };
|
|
2304
|
+
return ee(n, t.children);
|
|
2268
2305
|
}
|
|
2269
|
-
return
|
|
2306
|
+
return Nt(e);
|
|
2270
2307
|
}
|
|
2271
|
-
const
|
|
2308
|
+
const Vt = {
|
|
2272
2309
|
onBeforeMount: "beforeMount",
|
|
2273
2310
|
onMounted: "mounted",
|
|
2274
2311
|
onBeforeUpdate: "beforeUpdate",
|
|
@@ -2299,16 +2336,16 @@ const Tt = {
|
|
|
2299
2336
|
onNavigationBarSearchInputClicked: "onNavigationBarSearchInputClicked",
|
|
2300
2337
|
onShareTimeline: "onShareTimeline",
|
|
2301
2338
|
onAddToFavorites: "onAddToFavorites"
|
|
2302
|
-
},
|
|
2339
|
+
}, qt = /* @__PURE__ */ new Set([
|
|
2303
2340
|
"vue-router",
|
|
2304
2341
|
"pinia",
|
|
2305
2342
|
"vue-i18n",
|
|
2306
2343
|
"@vtj/renderer"
|
|
2307
|
-
]),
|
|
2308
|
-
Object.values(
|
|
2344
|
+
]), Dt = new Set(
|
|
2345
|
+
Object.values(ge).map((u) => u.composable).filter((u) => !!u)
|
|
2309
2346
|
);
|
|
2310
|
-
function
|
|
2311
|
-
const t =
|
|
2347
|
+
function Rt(u, e) {
|
|
2348
|
+
const t = Ct(u), a = _t(t), { dependencies: r = [] } = e || {}, n = r.reduce(
|
|
2312
2349
|
(c, d) => (c[d.package] = d.library, c),
|
|
2313
2350
|
{}
|
|
2314
2351
|
), s = {
|
|
@@ -2330,7 +2367,7 @@ function Vt(e, u) {
|
|
|
2330
2367
|
handlers: {},
|
|
2331
2368
|
dataSources: {},
|
|
2332
2369
|
directives: {}
|
|
2333
|
-
}, i = [], o = _(
|
|
2370
|
+
}, i = [], o = _(u);
|
|
2334
2371
|
if (J(o, {
|
|
2335
2372
|
// 顶层变量声明
|
|
2336
2373
|
VariableDeclaration(c) {
|
|
@@ -2340,7 +2377,7 @@ function Vt(e, u) {
|
|
|
2340
2377
|
if (!p.init) continue;
|
|
2341
2378
|
const b = p.init;
|
|
2342
2379
|
if (b.type === "CallExpression") {
|
|
2343
|
-
const m =
|
|
2380
|
+
const m = _e(b);
|
|
2344
2381
|
if (m === "ref") {
|
|
2345
2382
|
const v = L(p.id);
|
|
2346
2383
|
if (v) {
|
|
@@ -2353,7 +2390,7 @@ function Vt(e, u) {
|
|
|
2353
2390
|
const v = L(p.id);
|
|
2354
2391
|
if (v)
|
|
2355
2392
|
if (v === "__state")
|
|
2356
|
-
s.state =
|
|
2393
|
+
s.state = Mt(b.arguments[0]);
|
|
2357
2394
|
else {
|
|
2358
2395
|
const h = b.arguments[0] ? A(b.arguments[0]) : "{}";
|
|
2359
2396
|
s.reactives[v] = k(h);
|
|
@@ -2371,7 +2408,7 @@ function Vt(e, u) {
|
|
|
2371
2408
|
if (m === "inject") {
|
|
2372
2409
|
const v = L(p.id);
|
|
2373
2410
|
if (v) {
|
|
2374
|
-
const h = b.arguments[0], g = b.arguments[1], x = h ?
|
|
2411
|
+
const h = b.arguments[0], g = b.arguments[1], x = h ? Me(h) : v;
|
|
2375
2412
|
s.inject.push({
|
|
2376
2413
|
name: v,
|
|
2377
2414
|
from: x || v,
|
|
@@ -2381,24 +2418,24 @@ function Vt(e, u) {
|
|
|
2381
2418
|
return;
|
|
2382
2419
|
}
|
|
2383
2420
|
if (m === "defineProps" || m === "withDefaults") {
|
|
2384
|
-
s.props =
|
|
2421
|
+
s.props = Pe(b);
|
|
2385
2422
|
return;
|
|
2386
2423
|
}
|
|
2387
2424
|
if (m === "defineEmits") {
|
|
2388
|
-
s.emits =
|
|
2425
|
+
s.emits = Be(b);
|
|
2389
2426
|
return;
|
|
2390
2427
|
}
|
|
2391
2428
|
if (m && /^use[A-Z]/.test(m)) {
|
|
2392
2429
|
const v = a.get(m);
|
|
2393
|
-
if (
|
|
2394
|
-
const x =
|
|
2430
|
+
if (Lt(m, v)) {
|
|
2431
|
+
const x = Le(p.id);
|
|
2395
2432
|
x.length > 0 && (s.globalApiDestructured ??= [], s.globalApiDestructured.push({ callee: m, destructure: x }));
|
|
2396
2433
|
return;
|
|
2397
2434
|
}
|
|
2398
2435
|
if (m === "useProvider") return;
|
|
2399
2436
|
if (!v)
|
|
2400
2437
|
continue;
|
|
2401
|
-
const h = L(p.id), g =
|
|
2438
|
+
const h = L(p.id), g = Le(p.id);
|
|
2402
2439
|
if (h || g.length) {
|
|
2403
2440
|
if (h && s.composables.some((D) => D.name === h))
|
|
2404
2441
|
return;
|
|
@@ -2418,28 +2455,28 @@ function Vt(e, u) {
|
|
|
2418
2455
|
}
|
|
2419
2456
|
return;
|
|
2420
2457
|
}
|
|
2421
|
-
const
|
|
2422
|
-
if (
|
|
2458
|
+
const y = L(p.id);
|
|
2459
|
+
if (y && y.startsWith("__") || m === "getCurrentInstance")
|
|
2423
2460
|
return;
|
|
2424
2461
|
}
|
|
2425
2462
|
if (b.type === "ArrowFunctionExpression" || b.type === "FunctionExpression") {
|
|
2426
2463
|
const m = L(p.id);
|
|
2427
2464
|
if (m) {
|
|
2428
|
-
const
|
|
2429
|
-
if (
|
|
2430
|
-
const v =
|
|
2465
|
+
const y = A(b);
|
|
2466
|
+
if (Fe(y)) {
|
|
2467
|
+
const v = $e(m, y, e);
|
|
2431
2468
|
if (v) {
|
|
2432
2469
|
s.dataSources[m] = v;
|
|
2433
2470
|
return;
|
|
2434
2471
|
}
|
|
2435
2472
|
}
|
|
2436
|
-
s.methods[m] = C(
|
|
2473
|
+
s.methods[m] = C(y);
|
|
2437
2474
|
}
|
|
2438
2475
|
return;
|
|
2439
2476
|
}
|
|
2440
2477
|
if (b.type === "MemberExpression") {
|
|
2441
|
-
const m = b.object,
|
|
2442
|
-
if (
|
|
2478
|
+
const m = b.object, y = m.type === "Identifier" ? m.name : m.type === "MemberExpression" && m.object.type === "Identifier" ? m.object.name : null;
|
|
2479
|
+
if (y && a.has(y))
|
|
2443
2480
|
return;
|
|
2444
2481
|
}
|
|
2445
2482
|
}
|
|
@@ -2461,9 +2498,9 @@ function Vt(e, u) {
|
|
|
2461
2498
|
for (const p of d.declarations) {
|
|
2462
2499
|
const b = p.init;
|
|
2463
2500
|
if (b) {
|
|
2464
|
-
const m = L(p.id) || "(unknown)",
|
|
2501
|
+
const m = L(p.id) || "(unknown)", y = A(b), v = b.type;
|
|
2465
2502
|
throw new Error(
|
|
2466
|
-
`[vtj/parser] 无法处理顶层变量声明 "const ${m} = ${
|
|
2503
|
+
`[vtj/parser] 无法处理顶层变量声明 "const ${m} = ${y}":不支持的类型 "${v}"。仅支持 ObjectExpression / ArrayExpression 兜底自动转换为 reactive()。请改用 ref()、reactive()、computed() 或函数声明。`
|
|
2467
2504
|
);
|
|
2468
2505
|
}
|
|
2469
2506
|
}
|
|
@@ -2476,9 +2513,9 @@ function Vt(e, u) {
|
|
|
2476
2513
|
if (c.parent.type !== "Program") return;
|
|
2477
2514
|
const d = c.node;
|
|
2478
2515
|
if (!d.id) return;
|
|
2479
|
-
const l = d.id.name, p =
|
|
2480
|
-
if (
|
|
2481
|
-
const b =
|
|
2516
|
+
const l = d.id.name, p = Ft(d);
|
|
2517
|
+
if (Fe(p)) {
|
|
2518
|
+
const b = $e(l, p, e);
|
|
2482
2519
|
if (b) {
|
|
2483
2520
|
s.dataSources[l] = b;
|
|
2484
2521
|
return;
|
|
@@ -2504,38 +2541,38 @@ function Vt(e, u) {
|
|
|
2504
2541
|
`[vtj/parser] 无法处理顶层表达式语句 "${m}":DSL 不支持游离的顶层表达式,请改用生命周期钩子(如 onMounted)或声明确赋值。`
|
|
2505
2542
|
);
|
|
2506
2543
|
}
|
|
2507
|
-
const p =
|
|
2544
|
+
const p = _e(l);
|
|
2508
2545
|
if (p === "watch") {
|
|
2509
|
-
const m =
|
|
2546
|
+
const m = Bt(l);
|
|
2510
2547
|
m && s.watch.push(m);
|
|
2511
2548
|
return;
|
|
2512
2549
|
}
|
|
2513
|
-
if (p && p in
|
|
2550
|
+
if (p && p in Vt) {
|
|
2514
2551
|
const m = l.arguments[0];
|
|
2515
2552
|
m && (s.lifeCycles[p] = C(A(m)));
|
|
2516
2553
|
return;
|
|
2517
2554
|
}
|
|
2518
2555
|
if (p === "provide") {
|
|
2519
|
-
const m = l.arguments[0],
|
|
2520
|
-
if (m &&
|
|
2521
|
-
const v =
|
|
2556
|
+
const m = l.arguments[0], y = l.arguments[1];
|
|
2557
|
+
if (m && y) {
|
|
2558
|
+
const v = Me(m);
|
|
2522
2559
|
if (v) {
|
|
2523
|
-
const h = A(
|
|
2524
|
-
|
|
2560
|
+
const h = A(y);
|
|
2561
|
+
y.type === "ArrowFunctionExpression" || y.type === "FunctionExpression" ? s.provide[v] = C(h) : s.provide[v] = k(h);
|
|
2525
2562
|
}
|
|
2526
2563
|
}
|
|
2527
2564
|
return;
|
|
2528
2565
|
}
|
|
2529
2566
|
if (p === "defineExpose") {
|
|
2530
|
-
s.expose =
|
|
2567
|
+
s.expose = Ot(l);
|
|
2531
2568
|
return;
|
|
2532
2569
|
}
|
|
2533
2570
|
if (p === "defineProps" || p === "withDefaults") {
|
|
2534
|
-
s.props =
|
|
2571
|
+
s.props = Pe(l);
|
|
2535
2572
|
return;
|
|
2536
2573
|
}
|
|
2537
2574
|
if (p === "defineEmits") {
|
|
2538
|
-
s.emits =
|
|
2575
|
+
s.emits = Be(l);
|
|
2539
2576
|
return;
|
|
2540
2577
|
}
|
|
2541
2578
|
const b = A(d);
|
|
@@ -2554,11 +2591,11 @@ ${i.join(`
|
|
|
2554
2591
|
}
|
|
2555
2592
|
return s;
|
|
2556
2593
|
}
|
|
2557
|
-
function
|
|
2558
|
-
const
|
|
2594
|
+
function Ct(u) {
|
|
2595
|
+
const e = /import\s+{(.+?)}\s+from\s+['"](.+?)['"]/g, t = /import\s+(.+?)\s+from\s+['"](.+?)['"]/g, a = /^{(.+?)}$/, r = [];
|
|
2559
2596
|
let n;
|
|
2560
|
-
const s =
|
|
2561
|
-
for (; (n =
|
|
2597
|
+
const s = u.replace(/\n/g, " ");
|
|
2598
|
+
for (; (n = e.exec(s)) !== null; ) {
|
|
2562
2599
|
const i = n[2] === "@element-plus/icons-vue" ? "@vtj/icons" : n[2];
|
|
2563
2600
|
r.push({
|
|
2564
2601
|
from: i,
|
|
@@ -2574,62 +2611,62 @@ function qt(e) {
|
|
|
2574
2611
|
}
|
|
2575
2612
|
return r;
|
|
2576
2613
|
}
|
|
2577
|
-
function
|
|
2578
|
-
const
|
|
2579
|
-
for (const t of
|
|
2614
|
+
function _t(u) {
|
|
2615
|
+
const e = /* @__PURE__ */ new Map();
|
|
2616
|
+
for (const t of u)
|
|
2580
2617
|
if (Array.isArray(t.imports))
|
|
2581
2618
|
for (const a of t.imports) {
|
|
2582
2619
|
const r = a.match(/^\S+\s+as\s+(\S+)$/), n = r ? r[1] : a;
|
|
2583
|
-
|
|
2620
|
+
e.set(n, t.from);
|
|
2584
2621
|
}
|
|
2585
2622
|
else
|
|
2586
|
-
|
|
2587
|
-
return
|
|
2623
|
+
e.set(t.imports, t.from);
|
|
2624
|
+
return e;
|
|
2588
2625
|
}
|
|
2589
|
-
function
|
|
2590
|
-
return
|
|
2626
|
+
function Lt(u, e) {
|
|
2627
|
+
return e && qt.has(e) ? !0 : Dt.has(u);
|
|
2591
2628
|
}
|
|
2592
|
-
function
|
|
2593
|
-
return
|
|
2629
|
+
function _e(u) {
|
|
2630
|
+
return u.callee.type === "Identifier" ? u.callee.name : null;
|
|
2594
2631
|
}
|
|
2595
|
-
function L(
|
|
2596
|
-
return
|
|
2632
|
+
function L(u) {
|
|
2633
|
+
return u?.type === "Identifier" ? u.name : null;
|
|
2597
2634
|
}
|
|
2598
|
-
function
|
|
2599
|
-
return
|
|
2635
|
+
function Le(u) {
|
|
2636
|
+
return u?.type === "ObjectPattern" ? u.properties.map((e) => e.type === "ObjectProperty" && e.key?.type === "Identifier" ? e.key.name : e.type === "RestElement" && e.argument?.type === "Identifier" ? e.argument.name : null).filter(Boolean) : u?.type === "ArrayPattern" ? u.elements.map((e) => e?.type === "Identifier" ? e.name : null).filter(Boolean) : [];
|
|
2600
2637
|
}
|
|
2601
|
-
function
|
|
2602
|
-
return
|
|
2638
|
+
function Me(u) {
|
|
2639
|
+
return u.type === "StringLiteral" ? u.value : null;
|
|
2603
2640
|
}
|
|
2604
|
-
function
|
|
2605
|
-
if (!
|
|
2606
|
-
const
|
|
2607
|
-
for (const t of
|
|
2641
|
+
function Mt(u) {
|
|
2642
|
+
if (!u || u.type !== "ObjectExpression") return {};
|
|
2643
|
+
const e = {};
|
|
2644
|
+
for (const t of u.properties)
|
|
2608
2645
|
if (t.type === "ObjectProperty") {
|
|
2609
2646
|
const a = t.key?.name;
|
|
2610
|
-
a && (
|
|
2647
|
+
a && (e[a] = k(A(t.value)));
|
|
2611
2648
|
} else if (t.type === "ObjectMethod") {
|
|
2612
2649
|
const a = t.key?.name;
|
|
2613
2650
|
if (a) {
|
|
2614
2651
|
const r = A(t.body), n = t.params.map((s) => s.name || "none").join(",");
|
|
2615
|
-
|
|
2652
|
+
e[a] = k(`(${n}) => ${r}`);
|
|
2616
2653
|
}
|
|
2617
2654
|
}
|
|
2618
|
-
return
|
|
2655
|
+
return e;
|
|
2619
2656
|
}
|
|
2620
|
-
function
|
|
2621
|
-
if (
|
|
2622
|
-
const
|
|
2623
|
-
if (
|
|
2624
|
-
const t =
|
|
2625
|
-
return a?.type === "ObjectExpression" &&
|
|
2657
|
+
function Pe(u) {
|
|
2658
|
+
if (u.callee.type === "Identifier" && u.callee.name === "withDefaults") {
|
|
2659
|
+
const e = u.arguments[0];
|
|
2660
|
+
if (e?.type === "CallExpression") {
|
|
2661
|
+
const t = Oe(e), a = u.arguments[1];
|
|
2662
|
+
return a?.type === "ObjectExpression" && Pt(t, a), t;
|
|
2626
2663
|
}
|
|
2627
2664
|
}
|
|
2628
|
-
return
|
|
2665
|
+
return Oe(u);
|
|
2629
2666
|
}
|
|
2630
|
-
function
|
|
2631
|
-
const
|
|
2632
|
-
return
|
|
2667
|
+
function Oe(u) {
|
|
2668
|
+
const e = u.arguments[0];
|
|
2669
|
+
return e ? e.type === "ArrayExpression" ? e.elements.map((t) => t?.type === "StringLiteral" ? t.value : "").filter(Boolean) : e.type === "ObjectExpression" ? e.properties.map((t) => {
|
|
2633
2670
|
if (t.type !== "ObjectProperty") return null;
|
|
2634
2671
|
const a = t.key?.name;
|
|
2635
2672
|
if (!a) return null;
|
|
@@ -2639,67 +2676,67 @@ function Mu(e) {
|
|
|
2639
2676
|
const r = t.value.properties;
|
|
2640
2677
|
return {
|
|
2641
2678
|
name: a,
|
|
2642
|
-
type:
|
|
2643
|
-
required:
|
|
2644
|
-
default:
|
|
2679
|
+
type: $t(r),
|
|
2680
|
+
required: he(r, "required"),
|
|
2681
|
+
default: Ut(r)
|
|
2645
2682
|
};
|
|
2646
2683
|
}
|
|
2647
2684
|
return a;
|
|
2648
2685
|
}).filter(Boolean) : [] : [];
|
|
2649
2686
|
}
|
|
2650
|
-
function
|
|
2651
|
-
for (const t of
|
|
2687
|
+
function Pt(u, e) {
|
|
2688
|
+
for (const t of e.properties) {
|
|
2652
2689
|
if (t.type !== "ObjectProperty") continue;
|
|
2653
2690
|
const a = t.key?.name;
|
|
2654
2691
|
if (!a) continue;
|
|
2655
|
-
const r =
|
|
2692
|
+
const r = u.findIndex(
|
|
2656
2693
|
(n) => typeof n == "string" ? n === a : n.name === a
|
|
2657
2694
|
);
|
|
2658
2695
|
if (r >= 0) {
|
|
2659
|
-
const n =
|
|
2660
|
-
typeof n == "string" ?
|
|
2696
|
+
const n = u[r];
|
|
2697
|
+
typeof n == "string" ? u[r] = {
|
|
2661
2698
|
name: a,
|
|
2662
2699
|
default: k(A(t.value))
|
|
2663
2700
|
} : n.default = k(A(t.value));
|
|
2664
2701
|
}
|
|
2665
2702
|
}
|
|
2666
2703
|
}
|
|
2667
|
-
function
|
|
2668
|
-
const
|
|
2669
|
-
return
|
|
2704
|
+
function Be(u) {
|
|
2705
|
+
const e = u.arguments[0];
|
|
2706
|
+
return e ? e.type === "ArrayExpression" ? e.elements.map((t) => t?.type === "StringLiteral" ? { name: t.value, params: [] } : null).filter(Boolean) : [] : [];
|
|
2670
2707
|
}
|
|
2671
|
-
function
|
|
2672
|
-
const
|
|
2673
|
-
return !
|
|
2708
|
+
function Ot(u) {
|
|
2709
|
+
const e = u.arguments[0];
|
|
2710
|
+
return !e || e.type !== "ObjectExpression" ? [] : e.properties.map((t) => (t.type === "ObjectProperty" || t.type === "ObjectMethod") && t.key?.name || "").filter(Boolean);
|
|
2674
2711
|
}
|
|
2675
|
-
function
|
|
2676
|
-
const [
|
|
2677
|
-
if (!
|
|
2678
|
-
const r = A(
|
|
2712
|
+
function Bt(u) {
|
|
2713
|
+
const [e, t, a] = u.arguments;
|
|
2714
|
+
if (!e || !t) return null;
|
|
2715
|
+
const r = A(e), n = A(t);
|
|
2679
2716
|
let s = !1, i = !1;
|
|
2680
2717
|
if (a?.type === "ObjectExpression") {
|
|
2681
2718
|
const o = a.properties;
|
|
2682
|
-
s =
|
|
2719
|
+
s = he(o, "deep"), i = he(o, "immediate");
|
|
2683
2720
|
}
|
|
2684
2721
|
return {
|
|
2685
|
-
id:
|
|
2722
|
+
id: re(),
|
|
2686
2723
|
source: C(
|
|
2687
|
-
|
|
2724
|
+
e.type === "ArrowFunctionExpression" || e.type === "FunctionExpression" ? r : `() => { return ${r}; }`
|
|
2688
2725
|
),
|
|
2689
2726
|
handler: C(n),
|
|
2690
2727
|
deep: s,
|
|
2691
2728
|
immediate: i
|
|
2692
2729
|
};
|
|
2693
2730
|
}
|
|
2694
|
-
function
|
|
2695
|
-
const
|
|
2696
|
-
return `${
|
|
2731
|
+
function Ft(u) {
|
|
2732
|
+
const e = u.async ? "async " : "", t = u.params.map((r) => r.type === "ObjectPattern" ? `{${r.properties.map((s) => s.key?.name || s.name).join(",")}}` : r.type === "AssignmentPattern" ? r.left.name + "=" + (r.right?.extra?.raw || "null") : r.name).join(", "), a = A(u.body) || "{}";
|
|
2733
|
+
return `${e}(${t}) => ${a}`;
|
|
2697
2734
|
}
|
|
2698
|
-
function
|
|
2699
|
-
return /return\s+await\s+__provider\.apis\['[\w]*'\]\s*\.apply/.test(
|
|
2735
|
+
function Fe(u) {
|
|
2736
|
+
return /return\s+await\s+__provider\.apis\['[\w]*'\]\s*\.apply/.test(u) || /return\s+await\s+__provider\.createMock/.test(u);
|
|
2700
2737
|
}
|
|
2701
|
-
function
|
|
2702
|
-
const a = /apis\['([\w]*)'\]/, n =
|
|
2738
|
+
function $e(u, e, t) {
|
|
2739
|
+
const a = /apis\['([\w]*)'\]/, n = Ke(""), s = (i) => {
|
|
2703
2740
|
const o = i.indexOf(".then(");
|
|
2704
2741
|
if (o === -1) return null;
|
|
2705
2742
|
let c = 1, d = o + 6;
|
|
@@ -2709,13 +2746,13 @@ function Fu(e, u, t) {
|
|
|
2709
2746
|
}
|
|
2710
2747
|
return i.substring(o + 6, d - 1).trim();
|
|
2711
2748
|
};
|
|
2712
|
-
if (
|
|
2713
|
-
const o = (
|
|
2749
|
+
if (e.includes("__provider.apis")) {
|
|
2750
|
+
const o = (e.match(a) || [])[1];
|
|
2714
2751
|
if (!o) return null;
|
|
2715
|
-
const c = (t.apis || []).find((l) => l.id === o || l.name === o), d = s(
|
|
2752
|
+
const c = (t.apis || []).find((l) => l.id === o || l.name === o), d = s(e);
|
|
2716
2753
|
return {
|
|
2717
2754
|
ref: o,
|
|
2718
|
-
name:
|
|
2755
|
+
name: u,
|
|
2719
2756
|
test: n?.test || {
|
|
2720
2757
|
type: "JSFunction",
|
|
2721
2758
|
value: `() => this.runApi({
|
|
@@ -2733,11 +2770,11 @@ function Fu(e, u, t) {
|
|
|
2733
2770
|
mockTemplate: c?.mockTemplate
|
|
2734
2771
|
};
|
|
2735
2772
|
}
|
|
2736
|
-
if (
|
|
2737
|
-
const i = s(
|
|
2773
|
+
if (e.includes("__provider.createMock")) {
|
|
2774
|
+
const i = s(e);
|
|
2738
2775
|
return {
|
|
2739
2776
|
ref: "",
|
|
2740
|
-
name:
|
|
2777
|
+
name: u,
|
|
2741
2778
|
test: n?.test || {
|
|
2742
2779
|
type: "JSFunction",
|
|
2743
2780
|
value: `() => this.runApi({
|
|
@@ -2760,29 +2797,29 @@ function Fu(e, u, t) {
|
|
|
2760
2797
|
}
|
|
2761
2798
|
return null;
|
|
2762
2799
|
}
|
|
2763
|
-
function
|
|
2764
|
-
return !!
|
|
2765
|
-
(a) => a.key?.name ===
|
|
2800
|
+
function he(u, e) {
|
|
2801
|
+
return !!u?.find(
|
|
2802
|
+
(a) => a.key?.name === e
|
|
2766
2803
|
)?.value?.value;
|
|
2767
2804
|
}
|
|
2768
|
-
function
|
|
2769
|
-
const
|
|
2805
|
+
function $t(u) {
|
|
2806
|
+
const e = u?.find(
|
|
2770
2807
|
(t) => t.key?.name === "type"
|
|
2771
2808
|
);
|
|
2772
|
-
if (
|
|
2773
|
-
return
|
|
2809
|
+
if (e)
|
|
2810
|
+
return e.value.type === "ArrayExpression" ? e.value.elements.map((t) => t.name) : e.value.name;
|
|
2774
2811
|
}
|
|
2775
|
-
function
|
|
2776
|
-
const
|
|
2812
|
+
function Ut(u) {
|
|
2813
|
+
const e = u?.find(
|
|
2777
2814
|
(t) => t.key?.name === "default"
|
|
2778
2815
|
);
|
|
2779
|
-
if (
|
|
2780
|
-
return k(A(
|
|
2816
|
+
if (e)
|
|
2817
|
+
return k(A(e.value));
|
|
2781
2818
|
}
|
|
2782
|
-
function
|
|
2783
|
-
const
|
|
2819
|
+
function Gt(u) {
|
|
2820
|
+
const e = [], t = {}, a = [];
|
|
2784
2821
|
try {
|
|
2785
|
-
const r =
|
|
2822
|
+
const r = Iu.compileString(u, { charset: !1 })?.css || "", n = wu.parse(r), s = /^.[\w]+_[\w]{5,}/;
|
|
2786
2823
|
for (const i of n.nodes)
|
|
2787
2824
|
if (i.type === "rule") {
|
|
2788
2825
|
const o = {};
|
|
@@ -2792,171 +2829,158 @@ function Ft(e) {
|
|
|
2792
2829
|
} else
|
|
2793
2830
|
a.push(i.toString());
|
|
2794
2831
|
} catch (r) {
|
|
2795
|
-
|
|
2832
|
+
e.push(`css解析出错了,错误信息:[ ${r.message} ]
|
|
2796
2833
|
`);
|
|
2797
2834
|
}
|
|
2798
2835
|
return {
|
|
2799
|
-
errors:
|
|
2836
|
+
errors: e,
|
|
2800
2837
|
styles: t,
|
|
2801
2838
|
css: a.join(`
|
|
2802
2839
|
`)
|
|
2803
2840
|
};
|
|
2804
2841
|
}
|
|
2805
|
-
function
|
|
2842
|
+
function xe(u, e, t) {
|
|
2806
2843
|
let a = "", r = 0;
|
|
2807
2844
|
const n = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*`/g;
|
|
2808
2845
|
let s;
|
|
2809
|
-
for (; (s = n.exec(
|
|
2810
|
-
const i =
|
|
2811
|
-
a += i.replace(
|
|
2846
|
+
for (; (s = n.exec(u)) !== null; ) {
|
|
2847
|
+
const i = u.slice(r, s.index);
|
|
2848
|
+
a += i.replace(e, t);
|
|
2812
2849
|
const o = s[0];
|
|
2813
|
-
o.startsWith("`") ? a +=
|
|
2850
|
+
o.startsWith("`") ? a += Ht(o, e, t) : a += o, r = s.index + s[0].length;
|
|
2814
2851
|
}
|
|
2815
|
-
return a +=
|
|
2852
|
+
return a += u.slice(r).replace(e, t), a;
|
|
2816
2853
|
}
|
|
2817
|
-
function
|
|
2854
|
+
function Ht(u, e, t) {
|
|
2818
2855
|
let a = "", r = 0;
|
|
2819
2856
|
const n = /\$\{([^}]*)\}/g;
|
|
2820
2857
|
let s;
|
|
2821
|
-
for (; (s = n.exec(
|
|
2822
|
-
a +=
|
|
2823
|
-
const o = s[1].replace(
|
|
2858
|
+
for (; (s = n.exec(u)) !== null; ) {
|
|
2859
|
+
a += u.slice(r, s.index);
|
|
2860
|
+
const o = s[1].replace(e, t);
|
|
2824
2861
|
a += "${" + o + "}", r = s.index + s[0].length;
|
|
2825
2862
|
}
|
|
2826
|
-
return a +=
|
|
2863
|
+
return a += u.slice(r), a;
|
|
2827
2864
|
}
|
|
2828
|
-
function
|
|
2829
|
-
if (!
|
|
2830
|
-
let t =
|
|
2831
|
-
const a = [...
|
|
2832
|
-
for (const r of a)
|
|
2833
|
-
t = eu(
|
|
2834
|
-
t,
|
|
2835
|
-
new RegExp(`(?<!\\.)\\b${Q(r)}\\.value\\b`, "g"),
|
|
2836
|
-
`this.${r}.value`
|
|
2837
|
-
);
|
|
2865
|
+
function Wt(u, e) {
|
|
2866
|
+
if (!u) return u;
|
|
2867
|
+
let t = u;
|
|
2868
|
+
const a = [...e.refs, ...e.computed];
|
|
2838
2869
|
for (const r of a)
|
|
2839
|
-
t =
|
|
2840
|
-
|
|
2841
|
-
new RegExp(
|
|
2842
|
-
`(?<!this\\.)(?:(?<=_ctx\\.)|(?<!\\.))\\b${Q(r)}\\b(?!\\.value)`,
|
|
2843
|
-
"g"
|
|
2844
|
-
),
|
|
2845
|
-
`this.${r}.value`
|
|
2846
|
-
);
|
|
2847
|
-
t = eu(
|
|
2870
|
+
t = Vu(t, r);
|
|
2871
|
+
t = xe(
|
|
2848
2872
|
t,
|
|
2849
2873
|
/__instance\.proxy\.\$forceUpdate\./g,
|
|
2850
2874
|
"__instance.proxy."
|
|
2851
2875
|
);
|
|
2852
2876
|
for (const [r, n] of Object.entries(
|
|
2853
|
-
|
|
2877
|
+
e.reverseMemberApiMap || {}
|
|
2854
2878
|
))
|
|
2855
2879
|
for (const [s, i] of Object.entries(n)) {
|
|
2856
2880
|
const o = new RegExp(
|
|
2857
|
-
`\\b${
|
|
2881
|
+
`\\b${ce(r)}\\.${ce(s)}\\b`,
|
|
2858
2882
|
"g"
|
|
2859
2883
|
);
|
|
2860
|
-
t =
|
|
2884
|
+
t = xe(t, o, `this.${i}`);
|
|
2861
2885
|
}
|
|
2862
|
-
for (const r of
|
|
2863
|
-
t =
|
|
2864
|
-
for (const r of
|
|
2886
|
+
for (const r of e.props)
|
|
2887
|
+
t = Jt(t, "__props", r, `this.${r}`);
|
|
2888
|
+
for (const r of e.props)
|
|
2865
2889
|
t = R(t, r, `this.${r}`);
|
|
2866
|
-
for (const [r, n] of Object.entries(
|
|
2890
|
+
for (const [r, n] of Object.entries(e.reverseApiMap))
|
|
2867
2891
|
t = R(t, r, `this.${n}`);
|
|
2868
|
-
|
|
2869
|
-
for (const r of
|
|
2892
|
+
e.hasState && (t = R(t, "__state", "this.state"));
|
|
2893
|
+
for (const r of e.reactives)
|
|
2870
2894
|
t = R(t, r, `this.${r}`);
|
|
2871
|
-
for (const r of
|
|
2895
|
+
for (const r of e.methods)
|
|
2872
2896
|
t = R(t, r, `this.${r}`);
|
|
2873
|
-
for (const r of
|
|
2897
|
+
for (const r of e.composables)
|
|
2874
2898
|
t = R(t, r, `this.${r}`);
|
|
2875
|
-
for (const r of
|
|
2899
|
+
for (const r of e.injects)
|
|
2876
2900
|
t = R(t, r, `this.${r}`);
|
|
2877
|
-
for (const r of
|
|
2901
|
+
for (const r of e.dataSources)
|
|
2878
2902
|
t = R(t, r, `this.${r}`);
|
|
2879
2903
|
return t = t.replace(/this\.this\./g, "this."), t;
|
|
2880
2904
|
}
|
|
2881
|
-
function
|
|
2882
|
-
return
|
|
2905
|
+
function ce(u) {
|
|
2906
|
+
return u.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2883
2907
|
}
|
|
2884
|
-
function
|
|
2908
|
+
function Jt(u, e, t, a) {
|
|
2885
2909
|
const r = new RegExp(
|
|
2886
|
-
`\\b${
|
|
2910
|
+
`\\b${ce(e)}\\.${ce(t)}\\b`,
|
|
2887
2911
|
"g"
|
|
2888
2912
|
);
|
|
2889
|
-
return
|
|
2913
|
+
return xe(u, r, a);
|
|
2890
2914
|
}
|
|
2891
|
-
function
|
|
2892
|
-
const
|
|
2893
|
-
for (const [a, r] of Object.entries(
|
|
2915
|
+
function ou(u) {
|
|
2916
|
+
const e = {}, t = {};
|
|
2917
|
+
for (const [a, r] of Object.entries(ge))
|
|
2894
2918
|
if (r.replace)
|
|
2895
2919
|
if (r.replace.includes(".")) {
|
|
2896
2920
|
const n = r.replace.lastIndexOf("."), s = r.replace.substring(0, n), i = r.replace.substring(n + 1);
|
|
2897
|
-
t[s] || (t[s] = {}), t[s][i] = a,
|
|
2921
|
+
t[s] || (t[s] = {}), t[s][i] = a, e[a] = a;
|
|
2898
2922
|
} else
|
|
2899
|
-
|
|
2900
|
-
if (
|
|
2901
|
-
const a =
|
|
2923
|
+
e[r.replace] = a;
|
|
2924
|
+
if (u) {
|
|
2925
|
+
const a = Je[u];
|
|
2902
2926
|
if (a) {
|
|
2903
2927
|
for (const [r, n] of Object.entries(a))
|
|
2904
2928
|
if (n.replace)
|
|
2905
2929
|
if (n.replace.includes(".")) {
|
|
2906
2930
|
const s = n.replace.lastIndexOf("."), i = n.replace.substring(0, s), o = n.replace.substring(s + 1);
|
|
2907
|
-
t[i] || (t[i] = {}), t[i][o] = r,
|
|
2931
|
+
t[i] || (t[i] = {}), t[i][o] = r, e[r] = r;
|
|
2908
2932
|
} else
|
|
2909
|
-
|
|
2933
|
+
e[n.replace] = r;
|
|
2910
2934
|
}
|
|
2911
2935
|
}
|
|
2912
|
-
return { simple:
|
|
2936
|
+
return { simple: e, member: t };
|
|
2913
2937
|
}
|
|
2914
|
-
function
|
|
2915
|
-
for (const
|
|
2916
|
-
if (
|
|
2938
|
+
function Xt(u) {
|
|
2939
|
+
for (const e of u)
|
|
2940
|
+
if (Su.includes(e.from)) return e.from;
|
|
2917
2941
|
}
|
|
2918
|
-
function
|
|
2919
|
-
const
|
|
2942
|
+
function zt(u) {
|
|
2943
|
+
const e = {}, t = (a) => {
|
|
2920
2944
|
for (const [r, n] of Object.entries(a)) {
|
|
2921
2945
|
if (!n.composable || !n.replace || !n.replace.includes("."))
|
|
2922
2946
|
continue;
|
|
2923
|
-
|
|
2947
|
+
e[n.composable] || (e[n.composable] = {});
|
|
2924
2948
|
const s = n.replace.substring(n.replace.lastIndexOf(".") + 1);
|
|
2925
|
-
|
|
2949
|
+
e[n.composable][s] = r;
|
|
2926
2950
|
}
|
|
2927
2951
|
};
|
|
2928
|
-
if (t(
|
|
2929
|
-
const a =
|
|
2952
|
+
if (t(ge), u) {
|
|
2953
|
+
const a = Je[u];
|
|
2930
2954
|
a && t(a);
|
|
2931
2955
|
}
|
|
2932
|
-
return
|
|
2956
|
+
return e;
|
|
2933
2957
|
}
|
|
2934
|
-
function
|
|
2935
|
-
if (!
|
|
2958
|
+
function Ue(u, e) {
|
|
2959
|
+
if (!u) return u;
|
|
2936
2960
|
const t = {
|
|
2937
|
-
refs: new Set(
|
|
2938
|
-
reactives: new Set(
|
|
2939
|
-
computed: new Set(
|
|
2940
|
-
methods: new Set(
|
|
2941
|
-
props: new Set(
|
|
2942
|
-
composables: new Set(
|
|
2943
|
-
injects: new Set(
|
|
2944
|
-
dataSources: new Set(
|
|
2945
|
-
hasState:
|
|
2946
|
-
reverseApiMap:
|
|
2947
|
-
reverseMemberApiMap:
|
|
2961
|
+
refs: new Set(e.refs),
|
|
2962
|
+
reactives: new Set(e.reactives),
|
|
2963
|
+
computed: new Set(e.computed),
|
|
2964
|
+
methods: new Set(e.methods),
|
|
2965
|
+
props: new Set(e.props),
|
|
2966
|
+
composables: new Set(e.composables),
|
|
2967
|
+
injects: new Set(e.injects),
|
|
2968
|
+
dataSources: new Set(e.dataSources),
|
|
2969
|
+
hasState: e.hasState,
|
|
2970
|
+
reverseApiMap: e.globalApiVars,
|
|
2971
|
+
reverseMemberApiMap: e.reverseMemberApiMap || ou().member
|
|
2948
2972
|
};
|
|
2949
|
-
let a =
|
|
2973
|
+
let a = Wt(u, t);
|
|
2950
2974
|
a = a.replace(/_ctx\./g, "this."), a = a.replace(/this\.this\./g, "this.");
|
|
2951
|
-
for (const [r, n] of Object.entries(
|
|
2975
|
+
for (const [r, n] of Object.entries(e.libs || {}))
|
|
2952
2976
|
a = R(a, r, `this.$libs.${n}.${r}`);
|
|
2953
2977
|
return a;
|
|
2954
2978
|
}
|
|
2955
|
-
function
|
|
2956
|
-
const
|
|
2957
|
-
if (
|
|
2958
|
-
const n =
|
|
2959
|
-
for (const { callee: s, destructure: i } of
|
|
2979
|
+
function Zt(u) {
|
|
2980
|
+
const e = Xt(u.imports || []), { simple: t, member: a } = ou(e);
|
|
2981
|
+
if (u.globalApiDestructured && u.globalApiDestructured.length > 0) {
|
|
2982
|
+
const n = zt(e);
|
|
2983
|
+
for (const { callee: s, destructure: i } of u.globalApiDestructured) {
|
|
2960
2984
|
const o = n[s];
|
|
2961
2985
|
if (o)
|
|
2962
2986
|
for (const c of i)
|
|
@@ -2964,67 +2988,67 @@ function Jt(e) {
|
|
|
2964
2988
|
}
|
|
2965
2989
|
}
|
|
2966
2990
|
const r = /* @__PURE__ */ new Set();
|
|
2967
|
-
for (const n of
|
|
2991
|
+
for (const n of u.composables || [])
|
|
2968
2992
|
if (n.destructure && n.destructure.length > 0)
|
|
2969
2993
|
for (const s of n.destructure) r.add(s);
|
|
2970
2994
|
else n.name && r.add(n.name);
|
|
2971
2995
|
return {
|
|
2972
|
-
refs: new Set(Object.keys(
|
|
2973
|
-
reactives: new Set(Object.keys(
|
|
2974
|
-
computed: new Set(Object.keys(
|
|
2975
|
-
methods: new Set(Object.keys(
|
|
2996
|
+
refs: new Set(Object.keys(u.refs || {})),
|
|
2997
|
+
reactives: new Set(Object.keys(u.reactives || {})),
|
|
2998
|
+
computed: new Set(Object.keys(u.computed || {})),
|
|
2999
|
+
methods: new Set(Object.keys(u.methods || {})),
|
|
2976
3000
|
props: new Set(
|
|
2977
|
-
(
|
|
3001
|
+
(u.props || []).map((n) => typeof n == "string" ? n : n.name)
|
|
2978
3002
|
),
|
|
2979
3003
|
composables: r,
|
|
2980
|
-
injects: new Set((
|
|
2981
|
-
dataSources: new Set(Object.keys(
|
|
2982
|
-
hasState: Object.keys(
|
|
3004
|
+
injects: new Set((u.inject || []).map((n) => n.name)),
|
|
3005
|
+
dataSources: new Set(Object.keys(u.dataSources || {})),
|
|
3006
|
+
hasState: Object.keys(u.state || {}).length > 0,
|
|
2983
3007
|
reverseApiMap: t,
|
|
2984
3008
|
reverseMemberApiMap: a
|
|
2985
3009
|
};
|
|
2986
3010
|
}
|
|
2987
|
-
const
|
|
3011
|
+
const du = "arrow-double-left, arrow-double-right, contact, notes, records, cash-back-record, newspaper, discount, completed, user, description, list-switch, list-switching, link-o, miniprogram-o, qq, wechat-moments, weibo, cash-o, guide-o, invitation, shield-o, exchange, eye, enlarge, expand-o, eye-o, expand, filter-o, fire, fail, failure, fire-o, flag-o, font, font-o, gem-o, flower-o, gem, gift-card, friends, friends-o, gold-coin, gold-coin-o, good-job-o, gift, gift-o, gift-card-o, good-job, home-o, goods-collect, graphic, goods-collect-o, hot-o, info, hotel-o, info-o, hot-sale-o, hot, like, idcard, like-o, hot-sale, location-o, location, label, lock, label-o, map-marked, logistics, manager, more, live, manager-o, medal, more-o, music-o, music, new-arrival-o, medal-o, new-o, free-postage, newspaper-o, new-arrival, minus, orders-o, new, paid, notes-o, other-pay, pause-circle, pause, pause-circle-o, peer-pay, pending-payment, passed, plus, phone-circle-o, phone-o, printer, photo-fail, phone, photo-o, play-circle, play, phone-circle, point-gift-o, point-gift, play-circle-o, shrink, photo, qr, qr-invalid, question-o, revoke, replay, service, question, search, refund-o, service-o, scan, share, send-gift-o, share-o, setting, points, photograph, shop, shop-o, shop-collect-o, shop-collect, smile, shopping-cart-o, sign, sort, star-o, smile-comment-o, stop, stop-circle-o, smile-o, star, success, stop-circle, records-o, shopping-cart, tosend, todo-list, thumb-circle-o, thumb-circle, umbrella-circle, underway, upgrade, todo-list-o, tv-o, underway-o, user-o, vip-card-o, vip-card, send-gift, wap-home, wap-nav, volume-o, video, wap-home-o, volume, warning, weapp-nav, wechat-pay, wechat, setting-o, youzan-shield, warn-o, smile-comment, user-circle-o, video-o, add-square, add, arrow-down, arrow-up, arrow, after-sale, add-o, alipay, ascending, apps-o, aim, award, arrow-left, award-o, audio, bag-o, balance-list, back-top, bag, balance-pay, balance-o, bar-chart-o, bars, balance-list-o, birthday-cake-o, bookmark, bill, bell, browsing-history-o, browsing-history, bookmark-o, bulb-o, bullhorn-o, bill-o, calendar-o, brush-o, card, cart-o, cart-circle, cart-circle-o, cart, cash-on-deliver, cash-back-record-o, cashier-o, chart-trending-o, certificate, chat, clear, chat-o, checked, clock, clock-o, close, closed-eye, circle, cluster-o, column, comment-circle-o, cluster, comment, comment-o, comment-circle, completed-o, credit-pay, coupon, debit-pay, coupon-o, contact-o, descending, desktop-o, diamond-o, description-o, delete, diamond, delete-o, cross, edit, ellipsis, down, discount-o, ecard-pay, envelop-o".split(
|
|
2988
3012
|
", "
|
|
2989
|
-
),
|
|
3013
|
+
), Qt = "AddLocation, Aim, AlarmClock, Apple, ArrowDownBold, ArrowDown, ArrowLeftBold, ArrowLeft, ArrowRightBold, ArrowRight, ArrowUpBold, ArrowUp, Avatar, Back, Baseball, Basketball, BellFilled, Bell, Bicycle, BottomLeft, BottomRight, Bottom, Bowl, Box, Briefcase, BrushFilled, Brush, Burger, Calendar, CameraFilled, Camera, CaretBottom, CaretLeft, CaretRight, CaretTop, Cellphone, ChatDotRound, ChatDotSquare, ChatLineRound, ChatLineSquare, ChatRound, ChatSquare, Check, Checked, Cherry, Chicken, ChromeFilled, CircleCheckFilled, CircleCheck, CircleCloseFilled, CircleClose, CirclePlusFilled, CirclePlus, Clock, CloseBold, Close, Cloudy, CoffeeCup, Coffee, Coin, ColdDrink, CollectionTag, Collection, Comment, Compass, Connection, Coordinate, CopyDocument, Cpu, CreditCard, Crop, DArrowLeft, DArrowRight, DCaret, DataAnalysis, DataBoard, DataLine, DeleteFilled, DeleteLocation, Delete, Dessert, Discount, DishDot, Dish, DocumentAdd, DocumentChecked, DocumentCopy, DocumentDelete, DocumentRemove, Document, Download, Drizzling, EditPen, Edit, ElemeFilled, Eleme, ElementPlus, Expand, Failed, Female, Files, Film, Filter, Finished, FirstAidKit, Flag, Fold, FolderAdd, FolderChecked, FolderDelete, FolderOpened, FolderRemove, Folder, Food, Football, ForkSpoon, Fries, FullScreen, GobletFull, GobletSquareFull, GobletSquare, Goblet, GoldMedal, GoodsFilled, Goods, Grape, Grid, Guide, Handbag, Headset, HelpFilled, Help, Hide, Histogram, HomeFilled, HotWater, House, IceCreamRound, IceCreamSquare, IceCream, IceDrink, IceTea, InfoFilled, Iphone, Key, KnifeFork, Lightning, Link, List, Loading, LocationFilled, LocationInformation, Location, Lock, Lollipop, MagicStick, Magnet, Male, Management, MapLocation, Medal, Memo, Menu, MessageBox, Message, Mic, Microphone, MilkTea, Minus, Money, Monitor, MoonNight, Moon, MoreFilled, More, MostlyCloudy, Mouse, Mug, MuteNotification, Mute, NoSmoking, Notebook, Notification, Odometer, OfficeBuilding, Open, Operation, Opportunity, Orange, Paperclip, PartlyCloudy, Pear, PhoneFilled, Phone, PictureFilled, PictureRounded, Picture, PieChart, Place, Platform, Plus, Pointer, Position, Postcard, Pouring, Present, PriceTag, Printer, Promotion, QuartzWatch, QuestionFilled, Rank, ReadingLamp, Reading, RefreshLeft, RefreshRight, Refresh, Refrigerator, RemoveFilled, Remove, Right, ScaleToOriginal, School, Scissor, Search, Select, Sell, SemiSelect, Service, SetUp, Setting, Share, Ship, Shop, ShoppingBag, ShoppingCartFull, ShoppingCart, ShoppingTrolley, Smoking, Soccer, SoldOut, SortDown, SortUp, Sort, Stamp, StarFilled, Star, Stopwatch, SuccessFilled, Sugar, SuitcaseLine, Suitcase, Sunny, Sunrise, Sunset, SwitchButton, SwitchFilled, Switch, TakeawayBox, Ticket, Tickets, Timer, ToiletPaper, Tools, TopLeft, TopRight, Top, TrendCharts, TrophyBase, Trophy, TurnOff, Umbrella, Unlock, UploadFilled, Upload, UserFilled, User, Van, VideoCameraFilled, VideoCamera, VideoPause, VideoPlay, View, WalletFilled, Wallet, WarnTriangleFilled, WarningFilled, Warning, Watch, Watermelon, WindPower, ZoomIn, ZoomOut, VtjIconChatRecord, VtjIconNewChat, VtjIconAi, VtjIconUniapp, VtjIconWindowMax, VtjIconWindowMin, VtjIconWindowClose, VtjIconWindowNormal, VtjIconWindowDown, VtjIconWindowUp, VtjIconNpSave, VtjIconNpFile, VtjIconNpEdit, VtjIconNpShare, VtjIconNpSearch, VtjIconNpExport, VtjIconNpImport, VtjIconNpList, VtjIconNpPrint, VtjIconNpCancel, VtjIconNpConfirm, VtjIconNpReset, VtjIconNpReturnAll, VtjIconNpReturn, VtjIconNpRemove, VtjIconNpRemoveRow, VtjIconNpDelete, VtjIconNpExit, VtjIconNpRefresh, VtjIconNpAdd, VtjIconNpSelect, VtjIconNpAddRow, VtjIconNpExtend, VtjIconNpClose, VtjIconNpSubmit, VtjIconDeps, VtjIconBack, VtjIconHome, VtjIconApi, VtjIconExport, VtjIconImport, VtjIconGreater, VtjIconSmaller, VtjIconCheck, VtjIconSwitch, VtjIconCopy, VtjIconLock, VtjIconUnlock, VtjIconLayers, VtjIconConsole, VtjIconTeam, VtjIconPublish, VtjIconPreview, VtjIconSave, VtjIconPc, VtjIconPhone, VtjIconPad, VtjIconRedo, VtjIconRefresh, VtjIconUndo, VtjIconCategory, VtjIconProject, VtjIconNotice, VtjIconFav, VtjIconBug, VtjIconFile, VtjIconFolder, VtjIconUpload, VtjIconDownload, VtjIconUser, VtjIconSetting, VtjIconArrowRight, VtjIconArrowLeft, VtjIconArrowDown, VtjIconArrowUp, VtjIconShare, VtjIconData, VtjIconTemplate, VtjIconExitFullscreen, VtjIconFullscreen, VtjIconEdit, VtjIconRemove, VtjIconJs, VtjIconDatabase, VtjIconInfo, VtjIconPlus, VtjIconMinus, VtjIconHelp, VtjIconVars, VtjIconOutline, VtjIconVisible, VtjIconInvisible, VtjIconDocument, VtjIconHistory, VtjIconFixed, VtjIconUnfixed, VtjIconSearch, VtjIconMore, VtjIconClose, VtjIconComponents, VtjIconBlock".split(
|
|
2990
3014
|
", "
|
|
2991
|
-
),
|
|
2992
|
-
class
|
|
2993
|
-
validate(
|
|
3015
|
+
), Kt = "user", M = "User";
|
|
3016
|
+
class Yt {
|
|
3017
|
+
validate(e) {
|
|
2994
3018
|
const t = {
|
|
2995
3019
|
valid: !0,
|
|
2996
3020
|
errors: [],
|
|
2997
3021
|
illegalVantIcons: [],
|
|
2998
3022
|
illegalVtjIcons: []
|
|
2999
3023
|
};
|
|
3000
|
-
this.isCompleteSFC(
|
|
3001
|
-
const a = this.checkSyntax(
|
|
3002
|
-
return a ? (t.errors.push(`代码语法错误: ${a}`), t.valid = !1, t) : (this.checkSetup(
|
|
3024
|
+
this.isCompleteSFC(e) || (t.errors.push("代码不符合Vue3单文件组件规范"), t.valid = !1);
|
|
3025
|
+
const a = this.checkSyntax(e);
|
|
3026
|
+
return a ? (t.errors.push(`代码语法错误: ${a}`), t.valid = !1, t) : (this.checkSetup(e) || (t.errors.push("setup不符合低代码模版要求"), t.valid = !1), this.hasUnchangedComment(e) && (t.errors.push("代码不完整,需要输出完整代码,不能有任何省略"), t.valid = !1), t.illegalVantIcons = this.checkVantIcons(e), t.illegalVtjIcons = this.checkVtjIcons(e), t);
|
|
3003
3027
|
}
|
|
3004
|
-
isCompleteSFC(
|
|
3028
|
+
isCompleteSFC(e) {
|
|
3005
3029
|
try {
|
|
3006
|
-
const t =
|
|
3030
|
+
const t = P(e);
|
|
3007
3031
|
return !!(t.template && t.script && t.styles);
|
|
3008
3032
|
} catch {
|
|
3009
3033
|
return !1;
|
|
3010
3034
|
}
|
|
3011
3035
|
}
|
|
3012
|
-
checkSyntax(
|
|
3036
|
+
checkSyntax(e) {
|
|
3013
3037
|
let t = "";
|
|
3014
3038
|
try {
|
|
3015
|
-
const a =
|
|
3039
|
+
const a = P(e);
|
|
3016
3040
|
_(a.script);
|
|
3017
3041
|
} catch (a) {
|
|
3018
3042
|
a instanceof SyntaxError && (t = a.message);
|
|
3019
3043
|
}
|
|
3020
3044
|
return t;
|
|
3021
3045
|
}
|
|
3022
|
-
checkSetup(
|
|
3023
|
-
const t =
|
|
3046
|
+
checkSetup(e) {
|
|
3047
|
+
const t = P(e);
|
|
3024
3048
|
if (t.isScriptSetup)
|
|
3025
3049
|
return !0;
|
|
3026
3050
|
let a = 0;
|
|
3027
|
-
return
|
|
3051
|
+
return Xe(t.script, {
|
|
3028
3052
|
ObjectMethod(r) {
|
|
3029
3053
|
r.node.key.name === "setup" && (a = r.node.body.body.filter(
|
|
3030
3054
|
(s) => !q.isEmptyStatement(s)
|
|
@@ -3032,53 +3056,53 @@ class Zt {
|
|
|
3032
3056
|
}
|
|
3033
3057
|
}), a === 3;
|
|
3034
3058
|
}
|
|
3035
|
-
findVantIcons(
|
|
3036
|
-
const t =
|
|
3059
|
+
findVantIcons(e) {
|
|
3060
|
+
const t = P(e), a = /<(?:VanIcon|van-icon)\b[^>]*>/g, r = t.template.match(a) || [], n = [];
|
|
3037
3061
|
return r.forEach((s) => {
|
|
3038
3062
|
const i = s.match(/\bname="([^"]+)"/);
|
|
3039
3063
|
i && n.push(i[1]);
|
|
3040
3064
|
}), [...new Set(n)];
|
|
3041
3065
|
}
|
|
3042
|
-
checkVantIcons(
|
|
3043
|
-
const t = this.findVantIcons(
|
|
3066
|
+
checkVantIcons(e) {
|
|
3067
|
+
const t = this.findVantIcons(e), a = [];
|
|
3044
3068
|
for (const r of t)
|
|
3045
|
-
|
|
3069
|
+
du.includes(r) || a.push(r);
|
|
3046
3070
|
return a;
|
|
3047
3071
|
}
|
|
3048
|
-
findVtjIcons(
|
|
3049
|
-
const t =
|
|
3072
|
+
findVtjIcons(e) {
|
|
3073
|
+
const t = P(e), a = /import\s*{([^}]+)}\s*from\s*['"]\@vtj\/icons['"]/, r = t.script.match(a);
|
|
3050
3074
|
return !r || !r[1] ? [] : r[1].split(",").map((n) => n.trim()).filter(Boolean);
|
|
3051
3075
|
}
|
|
3052
|
-
checkVtjIcons(
|
|
3053
|
-
const t = this.findVtjIcons(
|
|
3076
|
+
checkVtjIcons(e) {
|
|
3077
|
+
const t = this.findVtjIcons(e), a = [];
|
|
3054
3078
|
for (const r of t)
|
|
3055
|
-
|
|
3079
|
+
Qt.includes(r) || a.push(r);
|
|
3056
3080
|
return a;
|
|
3057
3081
|
}
|
|
3058
|
-
hasUnchangedComment(
|
|
3082
|
+
hasUnchangedComment(e) {
|
|
3059
3083
|
const t = /<!--([\s\S]*?)-->/g, a = /\/\*([\s\S]*?)\*\//g, r = /\/\/(.*)/g;
|
|
3060
3084
|
return [
|
|
3061
|
-
...
|
|
3062
|
-
...
|
|
3063
|
-
...
|
|
3085
|
+
...e.match(t) || [],
|
|
3086
|
+
...e.match(a) || [],
|
|
3087
|
+
...e.match(r) || []
|
|
3064
3088
|
].some(
|
|
3065
3089
|
(s) => /不变/.test(s.replace(/\*/g, ""))
|
|
3066
3090
|
// 移除多行注释的星号避免干扰
|
|
3067
3091
|
);
|
|
3068
3092
|
}
|
|
3069
3093
|
}
|
|
3070
|
-
function
|
|
3071
|
-
const
|
|
3072
|
-
let t =
|
|
3073
|
-
const a =
|
|
3094
|
+
function e0(u) {
|
|
3095
|
+
const e = [];
|
|
3096
|
+
let t = u;
|
|
3097
|
+
const a = P(u);
|
|
3074
3098
|
if (!a.template || !a.script)
|
|
3075
3099
|
return {
|
|
3076
3100
|
fixed: !1,
|
|
3077
|
-
originalCode:
|
|
3078
|
-
fixedCode:
|
|
3101
|
+
originalCode: u,
|
|
3102
|
+
fixedCode: u,
|
|
3079
3103
|
changes: []
|
|
3080
3104
|
};
|
|
3081
|
-
const r =
|
|
3105
|
+
const r = u0(a.script), n = a.template;
|
|
3082
3106
|
let s = n;
|
|
3083
3107
|
const i = [], o = /\{\{([^}]+)\}\}/g;
|
|
3084
3108
|
let c;
|
|
@@ -3093,7 +3117,7 @@ function Qt(e) {
|
|
|
3093
3117
|
replacement: `{{${x}}}`,
|
|
3094
3118
|
line: E.line,
|
|
3095
3119
|
column: E.column
|
|
3096
|
-
}),
|
|
3120
|
+
}), e.push({
|
|
3097
3121
|
line: E.line + 1,
|
|
3098
3122
|
column: E.column,
|
|
3099
3123
|
original: g.trim(),
|
|
@@ -3114,7 +3138,7 @@ function Qt(e) {
|
|
|
3114
3138
|
replacement: `:${g}="${E}"`,
|
|
3115
3139
|
line: I.line,
|
|
3116
3140
|
column: I.column
|
|
3117
|
-
}),
|
|
3141
|
+
}), e.push({
|
|
3118
3142
|
line: I.line + 1,
|
|
3119
3143
|
column: I.column,
|
|
3120
3144
|
original: x,
|
|
@@ -3135,7 +3159,7 @@ function Qt(e) {
|
|
|
3135
3159
|
replacement: `v-${g}="${E}"`,
|
|
3136
3160
|
line: I.line,
|
|
3137
3161
|
column: I.column
|
|
3138
|
-
}),
|
|
3162
|
+
}), e.push({
|
|
3139
3163
|
line: I.line + 1,
|
|
3140
3164
|
column: I.column,
|
|
3141
3165
|
original: x,
|
|
@@ -3153,15 +3177,15 @@ function Qt(e) {
|
|
|
3153
3177
|
r
|
|
3154
3178
|
);
|
|
3155
3179
|
if (D !== I) {
|
|
3156
|
-
const F = G(n, c.index),
|
|
3180
|
+
const F = G(n, c.index), de = `v-for="${E} in ${D}"`;
|
|
3157
3181
|
i.push({
|
|
3158
3182
|
start: c.index,
|
|
3159
3183
|
end: c.index + h.length,
|
|
3160
3184
|
original: h,
|
|
3161
|
-
replacement:
|
|
3185
|
+
replacement: de,
|
|
3162
3186
|
line: F.line,
|
|
3163
3187
|
column: F.column
|
|
3164
|
-
}),
|
|
3188
|
+
}), e.push({
|
|
3165
3189
|
line: F.line + 1,
|
|
3166
3190
|
column: F.column,
|
|
3167
3191
|
original: I,
|
|
@@ -3183,7 +3207,7 @@ function Qt(e) {
|
|
|
3183
3207
|
replacement: `v-model="${x}"`,
|
|
3184
3208
|
line: E.line,
|
|
3185
3209
|
column: E.column
|
|
3186
|
-
}),
|
|
3210
|
+
}), e.push({
|
|
3187
3211
|
line: E.line + 1,
|
|
3188
3212
|
column: E.column,
|
|
3189
3213
|
original: g,
|
|
@@ -3204,7 +3228,7 @@ function Qt(e) {
|
|
|
3204
3228
|
replacement: `v-bind="${x}"`,
|
|
3205
3229
|
line: E.line,
|
|
3206
3230
|
column: E.column
|
|
3207
|
-
}),
|
|
3231
|
+
}), e.push({
|
|
3208
3232
|
line: E.line + 1,
|
|
3209
3233
|
column: E.column,
|
|
3210
3234
|
original: g,
|
|
@@ -3213,8 +3237,8 @@ function Qt(e) {
|
|
|
3213
3237
|
});
|
|
3214
3238
|
}
|
|
3215
3239
|
}
|
|
3216
|
-
const
|
|
3217
|
-
for (; (c =
|
|
3240
|
+
const y = /v-(text|html)="([^"]+)"/g;
|
|
3241
|
+
for (; (c = y.exec(n)) !== null; ) {
|
|
3218
3242
|
const h = c[0], g = c[1], x = c[2], E = H(x, r);
|
|
3219
3243
|
if (E !== x) {
|
|
3220
3244
|
const I = G(n, c.index);
|
|
@@ -3225,7 +3249,7 @@ function Qt(e) {
|
|
|
3225
3249
|
replacement: `v-${g}="${E}"`,
|
|
3226
3250
|
line: I.line,
|
|
3227
3251
|
column: I.column
|
|
3228
|
-
}),
|
|
3252
|
+
}), e.push({
|
|
3229
3253
|
line: I.line + 1,
|
|
3230
3254
|
column: I.column,
|
|
3231
3255
|
original: x,
|
|
@@ -3236,7 +3260,7 @@ function Qt(e) {
|
|
|
3236
3260
|
}
|
|
3237
3261
|
const v = /(@|v-on:)(\w+)="([^"]+)"/g;
|
|
3238
3262
|
for (; (c = v.exec(n)) !== null; ) {
|
|
3239
|
-
const h = c[0], g = c[1], x = c[2], E = c[3], I =
|
|
3263
|
+
const h = c[0], g = c[1], x = c[2], E = c[3], I = t0(E, r);
|
|
3240
3264
|
if (I !== E) {
|
|
3241
3265
|
const D = G(n, c.index);
|
|
3242
3266
|
i.push({
|
|
@@ -3246,7 +3270,7 @@ function Qt(e) {
|
|
|
3246
3270
|
replacement: `${g}${x}="${I}"`,
|
|
3247
3271
|
line: D.line,
|
|
3248
3272
|
column: D.column
|
|
3249
|
-
}),
|
|
3273
|
+
}), e.push({
|
|
3250
3274
|
line: D.line + 1,
|
|
3251
3275
|
column: D.column,
|
|
3252
3276
|
original: E,
|
|
@@ -3258,28 +3282,28 @@ function Qt(e) {
|
|
|
3258
3282
|
if (i.sort((h, g) => g.start - h.start), i.forEach((h) => {
|
|
3259
3283
|
s = s.substring(0, h.start) + h.replacement + s.substring(h.end);
|
|
3260
3284
|
}), i.length > 0) {
|
|
3261
|
-
const h =
|
|
3262
|
-
t =
|
|
3285
|
+
const h = u.indexOf("<template>"), g = u.lastIndexOf("</template>") + 11;
|
|
3286
|
+
t = u.substring(0, h) + `<template>
|
|
3263
3287
|
` + s + `
|
|
3264
|
-
</template>` +
|
|
3288
|
+
</template>` + u.substring(g);
|
|
3265
3289
|
}
|
|
3266
3290
|
return {
|
|
3267
3291
|
fixed: i.length > 0,
|
|
3268
|
-
originalCode:
|
|
3292
|
+
originalCode: u,
|
|
3269
3293
|
fixedCode: t,
|
|
3270
|
-
changes:
|
|
3294
|
+
changes: e
|
|
3271
3295
|
};
|
|
3272
3296
|
}
|
|
3273
|
-
function
|
|
3274
|
-
const
|
|
3297
|
+
function u0(u) {
|
|
3298
|
+
const e = /* @__PURE__ */ new Set();
|
|
3275
3299
|
try {
|
|
3276
|
-
const t = _(
|
|
3300
|
+
const t = _(u);
|
|
3277
3301
|
J(t, {
|
|
3278
3302
|
CallExpression(a) {
|
|
3279
3303
|
if (a.node.callee.type === "Identifier" && a.node.callee.name === "reactive" && a.node.arguments.length > 0 && a.node.arguments[0].type === "ObjectExpression") {
|
|
3280
3304
|
const r = a.parent;
|
|
3281
3305
|
r.type === "VariableDeclarator" && r.id.type === "Identifier" && r.id.name === "state" && a.node.arguments[0].properties.forEach((s) => {
|
|
3282
|
-
s.type === "ObjectProperty" && s.key.type === "Identifier" &&
|
|
3306
|
+
s.type === "ObjectProperty" && s.key.type === "Identifier" && e.add(s.key.name);
|
|
3283
3307
|
});
|
|
3284
3308
|
}
|
|
3285
3309
|
}
|
|
@@ -3287,18 +3311,18 @@ function Kt(e) {
|
|
|
3287
3311
|
} catch (t) {
|
|
3288
3312
|
console.error("Failed to parse script:", t);
|
|
3289
3313
|
}
|
|
3290
|
-
return
|
|
3314
|
+
return e;
|
|
3291
3315
|
}
|
|
3292
|
-
function H(
|
|
3293
|
-
let t =
|
|
3294
|
-
return
|
|
3316
|
+
function H(u, e) {
|
|
3317
|
+
let t = u.trim();
|
|
3318
|
+
return e.forEach((a) => {
|
|
3295
3319
|
const r = new RegExp(`(?<![\\w.])${a}(?![\\w])`, "g");
|
|
3296
3320
|
r.test(t) && !t.includes(`state.${a}`) && (t = t.replace(r, `state.${a}`));
|
|
3297
3321
|
}), t;
|
|
3298
3322
|
}
|
|
3299
|
-
function
|
|
3300
|
-
let t =
|
|
3301
|
-
return
|
|
3323
|
+
function t0(u, e) {
|
|
3324
|
+
let t = u.trim();
|
|
3325
|
+
return e.forEach((a) => {
|
|
3302
3326
|
const r = new RegExp(
|
|
3303
3327
|
`(?<![\\w.])${a}(\\+\\+|--|\\s*[+\\-*/]=)`,
|
|
3304
3328
|
"g"
|
|
@@ -3307,46 +3331,46 @@ function Yt(e, u) {
|
|
|
3307
3331
|
"g"
|
|
3308
3332
|
);
|
|
3309
3333
|
t.includes(`state.${a}`) || (t = t.replace(r, `state.${a}$1`), t = t.replace(n, (s, i) => i ? `${i}state.${a}` : s.includes(a) && !s.includes("state.") ? `state.${a}` : s));
|
|
3310
|
-
}), H(t,
|
|
3334
|
+
}), H(t, e);
|
|
3311
3335
|
}
|
|
3312
|
-
function G(
|
|
3313
|
-
const t =
|
|
3336
|
+
function G(u, e) {
|
|
3337
|
+
const t = u.substring(0, e).split(`
|
|
3314
3338
|
`);
|
|
3315
3339
|
return {
|
|
3316
3340
|
line: t.length,
|
|
3317
3341
|
column: t[t.length - 1].length
|
|
3318
3342
|
};
|
|
3319
3343
|
}
|
|
3320
|
-
class
|
|
3321
|
-
fixBasedOnValidation(
|
|
3322
|
-
let a =
|
|
3323
|
-
return t.illegalVantIcons.length && (a = this.fixVantIcons(a)), t.illegalVtjIcons.length && (a = this.fixVtjIcons(a, t.illegalVtjIcons)),
|
|
3344
|
+
class a0 {
|
|
3345
|
+
fixBasedOnValidation(e, t) {
|
|
3346
|
+
let a = e;
|
|
3347
|
+
return t.illegalVantIcons.length && (a = this.fixVantIcons(a)), t.illegalVtjIcons.length && (a = this.fixVtjIcons(a, t.illegalVtjIcons)), e0(a).fixedCode;
|
|
3324
3348
|
}
|
|
3325
|
-
fixVantIcons(
|
|
3326
|
-
const t =
|
|
3349
|
+
fixVantIcons(e) {
|
|
3350
|
+
const t = P(e), a = t.template.replace(
|
|
3327
3351
|
/<(?:VanIcon|van-icon)\s+[^>]*name="([^"]+)"[^>]*>/g,
|
|
3328
|
-
(r, n) => r.includes(":name=") || r.includes("v-bind:name=") ||
|
|
3352
|
+
(r, n) => r.includes(":name=") || r.includes("v-bind:name=") || du.includes(n) ? r : r.replace(n, Kt)
|
|
3329
3353
|
);
|
|
3330
3354
|
return this.reconstructSFC(t, a, t.script);
|
|
3331
3355
|
}
|
|
3332
|
-
fixVtjIcons(
|
|
3333
|
-
const a =
|
|
3356
|
+
fixVtjIcons(e, t = []) {
|
|
3357
|
+
const a = P(e);
|
|
3334
3358
|
let r = !1;
|
|
3335
|
-
a.script =
|
|
3359
|
+
a.script = Xe(a.script, {
|
|
3336
3360
|
ImportDeclaration(i) {
|
|
3337
3361
|
if (i.node.source.value === "@vtj/icons") {
|
|
3338
3362
|
const o = i.node.specifiers, c = [];
|
|
3339
3363
|
let d = !1;
|
|
3340
3364
|
for (const l of o) {
|
|
3341
3365
|
const p = l.imported?.name;
|
|
3342
|
-
p ===
|
|
3366
|
+
p === M && (d = !0, r = !0), t.includes(p) || c.push(
|
|
3343
3367
|
q.importSpecifier(l.local, l.imported)
|
|
3344
3368
|
);
|
|
3345
3369
|
}
|
|
3346
3370
|
!d && !r && (r = !0, c.push(
|
|
3347
3371
|
q.importSpecifier(
|
|
3348
|
-
q.identifier(
|
|
3349
|
-
q.identifier(
|
|
3372
|
+
q.identifier(M),
|
|
3373
|
+
q.identifier(M)
|
|
3350
3374
|
)
|
|
3351
3375
|
)), i.node.specifiers = c;
|
|
3352
3376
|
}
|
|
@@ -3361,8 +3385,8 @@ class u0 {
|
|
|
3361
3385
|
(l) => !t.includes(l.key.name)
|
|
3362
3386
|
), c.argument.properties.push(
|
|
3363
3387
|
q.objectProperty(
|
|
3364
|
-
q.identifier(
|
|
3365
|
-
q.identifier(
|
|
3388
|
+
q.identifier(M),
|
|
3389
|
+
q.identifier(M),
|
|
3366
3390
|
!1,
|
|
3367
3391
|
!0
|
|
3368
3392
|
)
|
|
@@ -3371,13 +3395,13 @@ class u0 {
|
|
|
3371
3395
|
}
|
|
3372
3396
|
},
|
|
3373
3397
|
ObjectProperty(i) {
|
|
3374
|
-
if (q.isIdentifier(i.node.value) && t.includes(i.node.value.name) && (i.node.value = q.identifier(
|
|
3398
|
+
if (q.isIdentifier(i.node.value) && t.includes(i.node.value.name) && (i.node.value = q.identifier(M)), q.isArrayExpression(i.node.value)) {
|
|
3375
3399
|
const o = i.node.value.elements;
|
|
3376
|
-
i.node.value.elements = o.map((c) => q.isIdentifier(c) && t.includes(c.name) ? q.identifier(
|
|
3400
|
+
i.node.value.elements = o.map((c) => q.isIdentifier(c) && t.includes(c.name) ? q.identifier(M) : c);
|
|
3377
3401
|
}
|
|
3378
3402
|
},
|
|
3379
3403
|
AssignmentExpression(i) {
|
|
3380
|
-
q.isIdentifier(i.node.right) && t.includes(i.node.right.name) && (i.node.right = q.identifier(
|
|
3404
|
+
q.isIdentifier(i.node.right) && t.includes(i.node.right.name) && (i.node.right = q.identifier(M));
|
|
3381
3405
|
}
|
|
3382
3406
|
});
|
|
3383
3407
|
const n = /:icon\s*=\s*["']([^"']+)["']/g, s = a.template.match(n);
|
|
@@ -3385,31 +3409,31 @@ class u0 {
|
|
|
3385
3409
|
for (const i of s) {
|
|
3386
3410
|
let o = i;
|
|
3387
3411
|
for (const c of t)
|
|
3388
|
-
o = o.replace(new RegExp(c, "g"),
|
|
3412
|
+
o = o.replace(new RegExp(c, "g"), M);
|
|
3389
3413
|
a.template = a.template.replace(i, o);
|
|
3390
3414
|
}
|
|
3391
3415
|
for (const i of t)
|
|
3392
3416
|
a.template = a.template.replace(
|
|
3393
3417
|
new RegExp(`:icon="${i}"`, "g"),
|
|
3394
|
-
`:icon="${
|
|
3418
|
+
`:icon="${M}"`
|
|
3395
3419
|
);
|
|
3396
3420
|
return this.reconstructSFC(a, a.template, a.script);
|
|
3397
3421
|
}
|
|
3398
|
-
reconstructSFC(
|
|
3422
|
+
reconstructSFC(e, t, a) {
|
|
3399
3423
|
let r = "";
|
|
3400
|
-
if (t &&
|
|
3424
|
+
if (t && e.template && (r += `<template>
|
|
3401
3425
|
${t}
|
|
3402
3426
|
</template>
|
|
3403
3427
|
|
|
3404
|
-
`), a &&
|
|
3405
|
-
const n =
|
|
3428
|
+
`), a && e.script) {
|
|
3429
|
+
const n = e.isScriptSetup ? " setup" : "";
|
|
3406
3430
|
r += `<script${n}>
|
|
3407
3431
|
${a}
|
|
3408
3432
|
<\/script>
|
|
3409
3433
|
|
|
3410
3434
|
`;
|
|
3411
3435
|
}
|
|
3412
|
-
return
|
|
3436
|
+
return e.styles.forEach((n) => {
|
|
3413
3437
|
r += `<style lang="scss" scoped>
|
|
3414
3438
|
`, r += `${n}
|
|
3415
3439
|
`, r += `</style>
|
|
@@ -3418,62 +3442,62 @@ ${a}
|
|
|
3418
3442
|
}), r;
|
|
3419
3443
|
}
|
|
3420
3444
|
}
|
|
3421
|
-
async function
|
|
3422
|
-
const { id:
|
|
3445
|
+
async function g0(u) {
|
|
3446
|
+
const { id: e, name: t, source: a, project: r } = u, n = ju(a, t);
|
|
3423
3447
|
if (n)
|
|
3424
3448
|
return Promise.reject(n);
|
|
3425
|
-
const { dependencies: s = [], platform: i = "web" } = r || {}, o = new
|
|
3449
|
+
const { dependencies: s = [], platform: i = "web" } = r || {}, o = new Yt(), c = new a0(), d = o.validate(a);
|
|
3426
3450
|
let l = [];
|
|
3427
3451
|
if (!d.valid)
|
|
3428
3452
|
return l = d.errors, Promise.reject(l);
|
|
3429
|
-
const p = c.fixBasedOnValidation(a, d), b =
|
|
3430
|
-
b.script =
|
|
3453
|
+
const p = c.fixBasedOnValidation(a, d), b = P(p);
|
|
3454
|
+
b.script = Nu(b.script);
|
|
3431
3455
|
const {
|
|
3432
3456
|
styles: m,
|
|
3433
|
-
css:
|
|
3457
|
+
css: y,
|
|
3434
3458
|
errors: v
|
|
3435
|
-
} =
|
|
3459
|
+
} = Gt(b.styles.join(`
|
|
3436
3460
|
`));
|
|
3437
|
-
return l.push(...v), l.length ? Promise.reject(l) : b.isScriptSetup ?
|
|
3438
|
-
id:
|
|
3461
|
+
return l.push(...v), l.length ? Promise.reject(l) : b.isScriptSetup ? n0(b, {
|
|
3462
|
+
id: e,
|
|
3439
3463
|
name: t,
|
|
3440
3464
|
project: r,
|
|
3441
3465
|
platform: i,
|
|
3442
3466
|
dependencies: s,
|
|
3443
3467
|
styles: m,
|
|
3444
|
-
css:
|
|
3445
|
-
}) :
|
|
3446
|
-
id:
|
|
3468
|
+
css: y
|
|
3469
|
+
}) : r0(b, {
|
|
3470
|
+
id: e,
|
|
3447
3471
|
name: t,
|
|
3448
3472
|
project: r,
|
|
3449
3473
|
platform: i,
|
|
3450
3474
|
dependencies: s,
|
|
3451
3475
|
styles: m,
|
|
3452
|
-
css:
|
|
3476
|
+
css: y
|
|
3453
3477
|
});
|
|
3454
3478
|
}
|
|
3455
|
-
async function
|
|
3456
|
-
const { id: t, name: a, project: r, platform: n, dependencies: s, styles: i, css: o } =
|
|
3479
|
+
async function r0(u, e) {
|
|
3480
|
+
const { id: t, name: a, project: r, platform: n, dependencies: s, styles: i, css: o } = e, {
|
|
3457
3481
|
state: c,
|
|
3458
3482
|
watch: d,
|
|
3459
3483
|
lifeCycles: l,
|
|
3460
3484
|
computed: p,
|
|
3461
3485
|
methods: b,
|
|
3462
3486
|
props: m,
|
|
3463
|
-
emits:
|
|
3487
|
+
emits: y,
|
|
3464
3488
|
expose: v,
|
|
3465
3489
|
inject: h,
|
|
3466
3490
|
handlers: g,
|
|
3467
3491
|
imports: x,
|
|
3468
3492
|
dataSources: E,
|
|
3469
3493
|
directives: I
|
|
3470
|
-
} =
|
|
3494
|
+
} = nt(u.script, r), { nodes: D, slots: F, context: de } = iu(t, a, u.template, {
|
|
3471
3495
|
platform: n,
|
|
3472
3496
|
handlers: g,
|
|
3473
3497
|
styles: i,
|
|
3474
3498
|
imports: x,
|
|
3475
3499
|
directives: I
|
|
3476
|
-
}),
|
|
3500
|
+
}), ye = {
|
|
3477
3501
|
id: t,
|
|
3478
3502
|
name: a,
|
|
3479
3503
|
inject: h,
|
|
@@ -3485,13 +3509,13 @@ async function e0(e, u) {
|
|
|
3485
3509
|
methods: b,
|
|
3486
3510
|
dataSources: E,
|
|
3487
3511
|
slots: F,
|
|
3488
|
-
emits:
|
|
3512
|
+
emits: y,
|
|
3489
3513
|
expose: v,
|
|
3490
3514
|
nodes: D,
|
|
3491
3515
|
css: o
|
|
3492
|
-
},
|
|
3516
|
+
}, pu = Object.keys(p || {}), mu = (m || []).map(
|
|
3493
3517
|
($) => typeof $ == "string" ? $ : $.name
|
|
3494
|
-
),
|
|
3518
|
+
), hu = [
|
|
3495
3519
|
"$el",
|
|
3496
3520
|
"$emit",
|
|
3497
3521
|
"$nextTick",
|
|
@@ -3508,32 +3532,32 @@ async function e0(e, u) {
|
|
|
3508
3532
|
"$props",
|
|
3509
3533
|
"props",
|
|
3510
3534
|
...Object.keys(b || {})
|
|
3511
|
-
], { libs:
|
|
3535
|
+
], { libs: xu } = bu(x, s), Se = {
|
|
3512
3536
|
platform: n,
|
|
3513
|
-
context:
|
|
3514
|
-
computed:
|
|
3515
|
-
libs:
|
|
3516
|
-
members:
|
|
3517
|
-
props:
|
|
3537
|
+
context: de,
|
|
3538
|
+
computed: pu,
|
|
3539
|
+
libs: xu,
|
|
3540
|
+
members: hu,
|
|
3541
|
+
props: mu
|
|
3518
3542
|
};
|
|
3519
|
-
return await
|
|
3520
|
-
|
|
3543
|
+
return await lu(
|
|
3544
|
+
ye,
|
|
3521
3545
|
async ($) => {
|
|
3522
|
-
await
|
|
3523
|
-
if (
|
|
3524
|
-
const
|
|
3525
|
-
|
|
3546
|
+
await fu($, async (K) => {
|
|
3547
|
+
if (oe(K)) {
|
|
3548
|
+
const gu = await ae(K.value);
|
|
3549
|
+
K.value = Ae(gu, $.id, Se);
|
|
3526
3550
|
}
|
|
3527
3551
|
});
|
|
3528
3552
|
},
|
|
3529
3553
|
async ($) => {
|
|
3530
|
-
const
|
|
3531
|
-
$.value =
|
|
3554
|
+
const K = await ae($.value);
|
|
3555
|
+
$.value = Ae(K, "", Se);
|
|
3532
3556
|
}
|
|
3533
|
-
), new
|
|
3557
|
+
), new We(ye).toDsl();
|
|
3534
3558
|
}
|
|
3535
|
-
async function
|
|
3536
|
-
const { id: t, name: a, project: r, platform: n, styles: s, css: i, dependencies: o } =
|
|
3559
|
+
async function n0(u, e) {
|
|
3560
|
+
const { id: t, name: a, project: r, platform: n, styles: s, css: i, dependencies: o } = e, c = Rt(u.script, r), { nodes: d, slots: l, context: p } = iu(t, a, u.template, {
|
|
3537
3561
|
platform: n,
|
|
3538
3562
|
handlers: c.handlers,
|
|
3539
3563
|
styles: s,
|
|
@@ -3561,27 +3585,27 @@ async function t0(e, u) {
|
|
|
3561
3585
|
expose: c.expose,
|
|
3562
3586
|
nodes: d,
|
|
3563
3587
|
css: i
|
|
3564
|
-
}, { libs: m } =
|
|
3565
|
-
refs: Array.from(
|
|
3566
|
-
reactives: Array.from(
|
|
3567
|
-
hasState:
|
|
3568
|
-
computed: Array.from(
|
|
3569
|
-
methods: Array.from(
|
|
3570
|
-
props: Array.from(
|
|
3571
|
-
composables: Array.from(
|
|
3572
|
-
injects: Array.from(
|
|
3573
|
-
dataSources: Array.from(
|
|
3574
|
-
globalApiVars:
|
|
3575
|
-
reverseMemberApiMap:
|
|
3588
|
+
}, { libs: m } = bu(c.imports, o), y = Zt(c), v = {
|
|
3589
|
+
refs: Array.from(y.refs),
|
|
3590
|
+
reactives: Array.from(y.reactives),
|
|
3591
|
+
hasState: y.hasState,
|
|
3592
|
+
computed: Array.from(y.computed),
|
|
3593
|
+
methods: Array.from(y.methods),
|
|
3594
|
+
props: Array.from(y.props),
|
|
3595
|
+
composables: Array.from(y.composables),
|
|
3596
|
+
injects: Array.from(y.injects),
|
|
3597
|
+
dataSources: Array.from(y.dataSources),
|
|
3598
|
+
globalApiVars: y.reverseApiMap,
|
|
3599
|
+
reverseMemberApiMap: y.reverseMemberApiMap,
|
|
3576
3600
|
libs: m
|
|
3577
3601
|
};
|
|
3578
|
-
return await
|
|
3602
|
+
return await lu(
|
|
3579
3603
|
b,
|
|
3580
3604
|
async (g) => {
|
|
3581
|
-
await
|
|
3582
|
-
if (
|
|
3583
|
-
const E = await
|
|
3584
|
-
let I =
|
|
3605
|
+
await fu(g, async (x) => {
|
|
3606
|
+
if (oe(x)) {
|
|
3607
|
+
const E = await ae(x.value);
|
|
3608
|
+
let I = Ue(E, v);
|
|
3585
3609
|
const D = Array.from(
|
|
3586
3610
|
p[g.id] || /* @__PURE__ */ new Set()
|
|
3587
3611
|
);
|
|
@@ -3592,14 +3616,14 @@ async function t0(e, u) {
|
|
|
3592
3616
|
});
|
|
3593
3617
|
},
|
|
3594
3618
|
async (g) => {
|
|
3595
|
-
const x = await
|
|
3596
|
-
g.value =
|
|
3619
|
+
const x = await ae(g.value);
|
|
3620
|
+
g.value = Ue(x, v);
|
|
3597
3621
|
}
|
|
3598
|
-
), new
|
|
3622
|
+
), new We(b).toDsl();
|
|
3599
3623
|
}
|
|
3600
|
-
async function
|
|
3624
|
+
async function lu(u, e, t) {
|
|
3601
3625
|
const a = async (h, g) => {
|
|
3602
|
-
if (await
|
|
3626
|
+
if (await e(h, g), Array.isArray(h?.children))
|
|
3603
3627
|
for (const x of h?.children || [])
|
|
3604
3628
|
await a(x, h);
|
|
3605
3629
|
}, r = async (h) => {
|
|
@@ -3611,7 +3635,7 @@ async function oe(e, u, t) {
|
|
|
3611
3635
|
}
|
|
3612
3636
|
const g = Object.values(h);
|
|
3613
3637
|
for (const x of g)
|
|
3614
|
-
|
|
3638
|
+
oe(x) ? await t(x) : await r(x);
|
|
3615
3639
|
}, {
|
|
3616
3640
|
state: n,
|
|
3617
3641
|
watch: s,
|
|
@@ -3623,9 +3647,9 @@ async function oe(e, u, t) {
|
|
|
3623
3647
|
inject: p,
|
|
3624
3648
|
setup: b,
|
|
3625
3649
|
provide: m,
|
|
3626
|
-
refs:
|
|
3650
|
+
refs: y,
|
|
3627
3651
|
reactives: v
|
|
3628
|
-
} =
|
|
3652
|
+
} = u;
|
|
3629
3653
|
if (await r({
|
|
3630
3654
|
state: n,
|
|
3631
3655
|
watch: s,
|
|
@@ -3637,36 +3661,36 @@ async function oe(e, u, t) {
|
|
|
3637
3661
|
inject: p,
|
|
3638
3662
|
setup: b,
|
|
3639
3663
|
provide: m,
|
|
3640
|
-
refs:
|
|
3664
|
+
refs: y,
|
|
3641
3665
|
reactives: v
|
|
3642
|
-
}), Array.isArray(
|
|
3643
|
-
for (const h of
|
|
3666
|
+
}), Array.isArray(u.nodes))
|
|
3667
|
+
for (const h of u.nodes)
|
|
3644
3668
|
await a(h);
|
|
3645
3669
|
}
|
|
3646
|
-
async function
|
|
3670
|
+
async function fu(u, e) {
|
|
3647
3671
|
const t = async (a) => {
|
|
3648
3672
|
if (!a || typeof a != "object") return;
|
|
3649
3673
|
if (Array.isArray(a)) {
|
|
3650
3674
|
for (let n of a)
|
|
3651
|
-
await
|
|
3675
|
+
await e(n), await t(n);
|
|
3652
3676
|
return;
|
|
3653
3677
|
}
|
|
3654
|
-
if (
|
|
3655
|
-
await
|
|
3678
|
+
if (oe(a)) {
|
|
3679
|
+
await e(a);
|
|
3656
3680
|
return;
|
|
3657
3681
|
}
|
|
3658
3682
|
const r = Object.values(a);
|
|
3659
3683
|
for (const n of r)
|
|
3660
|
-
await
|
|
3684
|
+
await e(n), await t(n);
|
|
3661
3685
|
};
|
|
3662
|
-
await t(
|
|
3686
|
+
await t(u);
|
|
3663
3687
|
}
|
|
3664
|
-
function
|
|
3665
|
-
const t = {}, a =
|
|
3688
|
+
function bu(u = [], e = []) {
|
|
3689
|
+
const t = {}, a = e.reduce(
|
|
3666
3690
|
(r, n) => (r[n.package] = n.library, r),
|
|
3667
3691
|
{}
|
|
3668
3692
|
);
|
|
3669
|
-
for (const { from: r, imports: n } of
|
|
3693
|
+
for (const { from: r, imports: n } of u)
|
|
3670
3694
|
if (Array.isArray(n))
|
|
3671
3695
|
n.forEach((s) => {
|
|
3672
3696
|
const i = a[r];
|
|
@@ -3681,12 +3705,12 @@ function le(e = [], u = []) {
|
|
|
3681
3705
|
};
|
|
3682
3706
|
}
|
|
3683
3707
|
export {
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3708
|
+
a0 as AutoFixer,
|
|
3709
|
+
Yt as ComponentValidator,
|
|
3710
|
+
h0 as VTJ_PARSER_VERSION,
|
|
3711
|
+
De as htmlToNodes,
|
|
3712
|
+
x0 as parseUniApp,
|
|
3713
|
+
g0 as parseVue,
|
|
3714
|
+
Ae as patchCode,
|
|
3691
3715
|
R as replacer
|
|
3692
3716
|
};
|