@vtj/parser 0.18.0 → 0.18.2
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 +15 -15
- package/dist/index.mjs +768 -738
- package/package.json +3 -3
- package/types/version.d.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3,9 +3,9 @@ import { parse as me } from "@babel/parser";
|
|
|
3
3
|
import vu from "@babel/traverse";
|
|
4
4
|
import Eu from "@babel/generator";
|
|
5
5
|
import { BlockModel as Hu } from "@vtj/core";
|
|
6
|
-
import { GLOBAL_API_MAP as gu, UI_PACKAGES as xe, UI_GLOBAL_API_MAPS as Wu, tsFormatter as
|
|
6
|
+
import { GLOBAL_API_MAP as gu, UI_PACKAGES as xe, UI_GLOBAL_API_MAPS as Wu, tsFormatter as ru } from "@vtj/coder";
|
|
7
7
|
import { NodeTypes as v } from "@vue/compiler-core";
|
|
8
|
-
import { upperFirstCamelCase as ge, unBase64 as ye, uid as
|
|
8
|
+
import { upperFirstCamelCase as ge, unBase64 as ye, uid as nu } from "@vtj/base";
|
|
9
9
|
import Se from "postcss";
|
|
10
10
|
import * as ve from "sass";
|
|
11
11
|
import * as q from "@babel/types";
|
|
@@ -13,16 +13,16 @@ import * as q from "@babel/types";
|
|
|
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.18.
|
|
16
|
+
* @version 0.18.2
|
|
17
17
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
18
18
|
*/
|
|
19
|
-
const
|
|
19
|
+
const l0 = "0.18.2";
|
|
20
20
|
function M(e) {
|
|
21
|
-
const { descriptor: u, errors: t } = Uu(e), a = u.template?.content || "", r = !!u.scriptSetup, n = (u.scriptSetup || u.script)?.content || "",
|
|
21
|
+
const { descriptor: u, errors: t } = Uu(e), a = u.template?.content || "", r = !!u.scriptSetup, n = (u.scriptSetup || u.script)?.content || "", s = u.styles.map((i) => i.content);
|
|
22
22
|
return {
|
|
23
23
|
template: a,
|
|
24
24
|
script: n,
|
|
25
|
-
styles:
|
|
25
|
+
styles: s,
|
|
26
26
|
errors: t,
|
|
27
27
|
isScriptSetup: r
|
|
28
28
|
};
|
|
@@ -36,7 +36,7 @@ function J(e, u) {
|
|
|
36
36
|
function A(e) {
|
|
37
37
|
if (!e) return "";
|
|
38
38
|
try {
|
|
39
|
-
return
|
|
39
|
+
return au(e), (Eu.default || Eu)(e, {
|
|
40
40
|
comments: !1,
|
|
41
41
|
concise: !0,
|
|
42
42
|
retainLines: !1,
|
|
@@ -48,28 +48,46 @@ function A(e) {
|
|
|
48
48
|
return console.error("代码生成错误", u), "";
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
const Ee = /* @__PURE__ */ new Set([
|
|
52
|
+
"TSAsExpression",
|
|
53
|
+
"TSTypeAssertion",
|
|
54
|
+
"TSNonNullExpression"
|
|
55
|
+
]);
|
|
56
|
+
function au(e) {
|
|
52
57
|
if (!(!e || typeof e != "object")) {
|
|
53
58
|
if (Array.isArray(e)) {
|
|
54
|
-
for (const u of e)
|
|
59
|
+
for (const u of e) au(u);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (Ee.has(e.type) && e.expression) {
|
|
63
|
+
const u = e.expression;
|
|
64
|
+
au(u);
|
|
65
|
+
const t = {
|
|
66
|
+
start: e.start,
|
|
67
|
+
end: e.end,
|
|
68
|
+
loc: e.loc
|
|
69
|
+
};
|
|
70
|
+
for (const a of Object.keys(u))
|
|
71
|
+
a === "type" || a === "loc" || a === "start" || a === "end" || a === "extra" || a === "leadingComments" || a === "trailingComments" || a === "innerComments" || (e[a] = u[a]);
|
|
72
|
+
e.type = u.type, e.start = t.start, e.end = t.end, e.loc = t.loc, delete e.typeAnnotation, delete e.typeParameters;
|
|
55
73
|
return;
|
|
56
74
|
}
|
|
57
75
|
delete e.typeAnnotation, delete e.returnType, delete e.typeParameters, e.type === "Identifier" && delete e.optional;
|
|
58
76
|
for (const u of Object.keys(e))
|
|
59
|
-
u === "type" || u === "loc" || u === "start" || u === "end" || u === "extra" || u === "leadingComments" || u === "trailingComments" || u === "innerComments" || u === "errors" ||
|
|
77
|
+
u === "type" || u === "loc" || u === "start" || u === "end" || u === "extra" || u === "leadingComments" || u === "trailingComments" || u === "innerComments" || u === "errors" || au(e[u]);
|
|
60
78
|
}
|
|
61
79
|
}
|
|
62
|
-
function
|
|
80
|
+
function su(e) {
|
|
63
81
|
return !!e && e.type === "JSExpression";
|
|
64
82
|
}
|
|
65
|
-
function
|
|
83
|
+
function we(e) {
|
|
66
84
|
return typeof e == "object" && !!e && e.type === "JSFunction";
|
|
67
85
|
}
|
|
68
|
-
function
|
|
69
|
-
return !!
|
|
86
|
+
function du(e) {
|
|
87
|
+
return !!su(e) || !!we(e);
|
|
70
88
|
}
|
|
71
|
-
function
|
|
72
|
-
return !!e && !
|
|
89
|
+
function Ie(e) {
|
|
90
|
+
return !!e && !su(e) && typeof e != "string";
|
|
73
91
|
}
|
|
74
92
|
function Ju(e, u) {
|
|
75
93
|
try {
|
|
@@ -79,7 +97,7 @@ function Ju(e, u) {
|
|
|
79
97
|
return "";
|
|
80
98
|
}
|
|
81
99
|
}
|
|
82
|
-
function
|
|
100
|
+
function Ae(e) {
|
|
83
101
|
if (!e) return "";
|
|
84
102
|
try {
|
|
85
103
|
const u = B(e);
|
|
@@ -117,38 +135,38 @@ function Ie(e) {
|
|
|
117
135
|
return e;
|
|
118
136
|
}
|
|
119
137
|
}
|
|
120
|
-
function
|
|
138
|
+
function ke(e, u) {
|
|
121
139
|
const t = [];
|
|
122
140
|
try {
|
|
123
141
|
const { descriptor: a, errors: r } = Uu(e);
|
|
124
|
-
if (r && r.length > 0 && r.forEach((
|
|
125
|
-
const
|
|
142
|
+
if (r && r.length > 0 && r.forEach((s) => {
|
|
143
|
+
const i = s.message || String(s), o = s.loc;
|
|
126
144
|
o && o.start ? t.push(
|
|
127
|
-
`Vue SFC 错误: ${
|
|
128
|
-
) : t.push(`Vue SFC 错误: ${
|
|
145
|
+
`Vue SFC 错误: ${i} (位置: ${o.start.line}:${o.start.column})`
|
|
146
|
+
) : t.push(`Vue SFC 错误: ${i}`);
|
|
129
147
|
}), a.template)
|
|
130
148
|
try {
|
|
131
|
-
const
|
|
149
|
+
const s = Gu({
|
|
132
150
|
id: "validation",
|
|
133
151
|
filename: u,
|
|
134
152
|
source: a.template.content,
|
|
135
153
|
isProd: !1
|
|
136
154
|
});
|
|
137
|
-
|
|
138
|
-
const o = typeof
|
|
155
|
+
s.errors && s.errors.length > 0 && s.errors.forEach((i) => {
|
|
156
|
+
const o = typeof i == "string" ? i : i.message, c = typeof i == "string" ? null : i.loc;
|
|
139
157
|
c && c.start ? t.push(
|
|
140
158
|
`模板编译错误: ${o} (位置: ${c.start.line}:${c.start.column})`
|
|
141
159
|
) : t.push(`模板编译错误: ${o}`);
|
|
142
160
|
});
|
|
143
|
-
} catch (
|
|
144
|
-
t.push(`模板编译错误: ${
|
|
161
|
+
} catch (s) {
|
|
162
|
+
t.push(`模板编译错误: ${s.message}`);
|
|
145
163
|
}
|
|
146
164
|
const n = (a.scriptSetup || a.script)?.content;
|
|
147
165
|
if (n)
|
|
148
166
|
try {
|
|
149
167
|
B(n);
|
|
150
|
-
} catch (
|
|
151
|
-
t.push(`脚本语法错误: ${
|
|
168
|
+
} catch (s) {
|
|
169
|
+
t.push(`脚本语法错误: ${s.message}`);
|
|
152
170
|
}
|
|
153
171
|
} catch (a) {
|
|
154
172
|
t.push(`Vue SFC 解析错误: ${a.message}`);
|
|
@@ -161,10 +179,10 @@ function f0(e) {
|
|
|
161
179
|
CallExpression(r) {
|
|
162
180
|
const n = r.node.callee?.name;
|
|
163
181
|
if (n) {
|
|
164
|
-
const
|
|
165
|
-
|
|
182
|
+
const s = A(r.node.arguments[0]);
|
|
183
|
+
s && (a[n] = {
|
|
166
184
|
type: "JSFunction",
|
|
167
|
-
value:
|
|
185
|
+
value: s
|
|
168
186
|
});
|
|
169
187
|
}
|
|
170
188
|
}
|
|
@@ -173,92 +191,92 @@ function f0(e) {
|
|
|
173
191
|
function R(e, u, t) {
|
|
174
192
|
if (!e.includes(u)) return e;
|
|
175
193
|
try {
|
|
176
|
-
return
|
|
194
|
+
return Te(e, u, t);
|
|
177
195
|
} catch {
|
|
178
196
|
return e;
|
|
179
197
|
}
|
|
180
198
|
}
|
|
181
|
-
function
|
|
199
|
+
function Te(e, u, t) {
|
|
182
200
|
let a, r = 0;
|
|
183
201
|
try {
|
|
184
202
|
a = B(e);
|
|
185
203
|
} catch {
|
|
186
|
-
const
|
|
187
|
-
a = B(c), r =
|
|
204
|
+
const i = "(()=>{", c = i + e + "})";
|
|
205
|
+
a = B(c), r = i.length;
|
|
188
206
|
}
|
|
189
207
|
const n = [];
|
|
190
208
|
if (J(a, {
|
|
191
|
-
Identifier(
|
|
192
|
-
const o =
|
|
209
|
+
Identifier(i) {
|
|
210
|
+
const o = i.node;
|
|
193
211
|
if (o.name !== u) return;
|
|
194
|
-
const c =
|
|
212
|
+
const c = Ve(i);
|
|
195
213
|
if (c === "skip") return;
|
|
196
|
-
const d = (o.start ?? 0) - r,
|
|
197
|
-
if (d < 0 ||
|
|
214
|
+
const d = (o.start ?? 0) - r, l = (o.end ?? 0) - r;
|
|
215
|
+
if (d < 0 || l > e.length) return;
|
|
198
216
|
const p = c === "expand" ? `${u}: ${t}` : t;
|
|
199
|
-
n.some((b) => b.start === d && b.end ===
|
|
217
|
+
n.some((b) => b.start === d && b.end === l) || n.push({ start: d, end: l, text: p });
|
|
200
218
|
},
|
|
201
|
-
StringLiteral(
|
|
202
|
-
|
|
219
|
+
StringLiteral(i) {
|
|
220
|
+
Ne(i, u, t, r, e, n);
|
|
203
221
|
},
|
|
204
|
-
TemplateLiteral(
|
|
205
|
-
|
|
222
|
+
TemplateLiteral(i) {
|
|
223
|
+
je(i, u, t, r, e, n);
|
|
206
224
|
},
|
|
207
|
-
MemberExpression(
|
|
208
|
-
wu(
|
|
225
|
+
MemberExpression(i) {
|
|
226
|
+
wu(i, u, t, r, e, n);
|
|
209
227
|
},
|
|
210
|
-
OptionalMemberExpression(
|
|
211
|
-
wu(
|
|
228
|
+
OptionalMemberExpression(i) {
|
|
229
|
+
wu(i, u, t, r, e, n);
|
|
212
230
|
}
|
|
213
231
|
}), n.length === 0) return e;
|
|
214
|
-
n.sort((
|
|
215
|
-
let
|
|
216
|
-
for (const { start:
|
|
217
|
-
|
|
218
|
-
return
|
|
219
|
-
}
|
|
220
|
-
function
|
|
221
|
-
const
|
|
222
|
-
if (!
|
|
223
|
-
const
|
|
224
|
-
if (
|
|
232
|
+
n.sort((i, o) => o.start - i.start);
|
|
233
|
+
let s = e;
|
|
234
|
+
for (const { start: i, end: o, text: c } of n)
|
|
235
|
+
s = s.slice(0, i) + c + s.slice(o);
|
|
236
|
+
return s;
|
|
237
|
+
}
|
|
238
|
+
function Ne(e, u, t, a, r, n) {
|
|
239
|
+
const s = e.node;
|
|
240
|
+
if (!s.value.includes(u)) return;
|
|
241
|
+
const i = e.parent;
|
|
242
|
+
if (i?.type !== "NewExpression" || i?.callee?.name !== "RegExp")
|
|
225
243
|
return;
|
|
226
|
-
const o =
|
|
244
|
+
const o = s.value;
|
|
227
245
|
let c = 0;
|
|
228
246
|
for (; c < o.length; ) {
|
|
229
247
|
const d = o.indexOf(u, c);
|
|
230
248
|
if (d === -1) break;
|
|
231
|
-
const
|
|
249
|
+
const l = 1 + d, p = (s.start ?? 0) - a + l, b = p + u.length;
|
|
232
250
|
p >= 0 && b <= r.length && !n.some((h) => h.start === p && h.end === b) && n.push({ start: p, end: b, text: t }), c = d + u.length;
|
|
233
251
|
}
|
|
234
252
|
}
|
|
235
|
-
function
|
|
236
|
-
const
|
|
237
|
-
if (
|
|
253
|
+
function je(e, u, t, a, r, n) {
|
|
254
|
+
const s = e.parent;
|
|
255
|
+
if (s?.type !== "NewExpression" || s?.callee?.name !== "RegExp")
|
|
238
256
|
return;
|
|
239
257
|
const o = e.node.quasis ?? [];
|
|
240
258
|
for (const c of o) {
|
|
241
259
|
const d = c.value?.raw ?? "";
|
|
242
260
|
if (!d.includes(u)) continue;
|
|
243
|
-
let
|
|
244
|
-
for (;
|
|
245
|
-
const p = d.indexOf(u,
|
|
261
|
+
let l = 0;
|
|
262
|
+
for (; l < d.length; ) {
|
|
263
|
+
const p = d.indexOf(u, l);
|
|
246
264
|
if (p === -1) break;
|
|
247
265
|
const b = (c.start ?? 0) - a;
|
|
248
266
|
if (b < 0 || b > r.length) break;
|
|
249
267
|
const h = b + p, S = h + u.length;
|
|
250
|
-
h >= 0 && S <= r.length && !n.some((E) => E.start === h && E.end === S) && n.push({ start: h, end: S, text: t }),
|
|
268
|
+
h >= 0 && S <= r.length && !n.some((E) => E.start === h && E.end === S) && n.push({ start: h, end: S, text: t }), l = p + u.length;
|
|
251
269
|
}
|
|
252
270
|
}
|
|
253
271
|
}
|
|
254
272
|
function wu(e, u, t, a, r, n) {
|
|
255
|
-
const
|
|
256
|
-
if (
|
|
273
|
+
const s = e.node;
|
|
274
|
+
if (s.object?.type !== "ThisExpression" || s.computed || s.property?.type !== "Identifier" || s.property.name !== u)
|
|
257
275
|
return;
|
|
258
|
-
const
|
|
259
|
-
|
|
276
|
+
const i = (s.start ?? 0) - a, o = (s.end ?? 0) - a;
|
|
277
|
+
i < 0 || o > r.length || n.some((c) => c.start === i && c.end === o) || n.push({ start: i, end: o, text: t });
|
|
260
278
|
}
|
|
261
|
-
function
|
|
279
|
+
function Ve(e, u) {
|
|
262
280
|
const t = e.parent, a = t?.type ?? "", r = e.parentPath?.parent;
|
|
263
281
|
switch (a) {
|
|
264
282
|
// 成员访问 obj.key / obj[key] / obj?.key / obj?.[key]
|
|
@@ -365,9 +383,9 @@ function je(e, u) {
|
|
|
365
383
|
break;
|
|
366
384
|
}
|
|
367
385
|
}
|
|
368
|
-
return
|
|
386
|
+
return qe(e) || De(e) ? "skip" : "replace";
|
|
369
387
|
}
|
|
370
|
-
function
|
|
388
|
+
function qe(e) {
|
|
371
389
|
let u = e.parentPath;
|
|
372
390
|
for (; u; ) {
|
|
373
391
|
const t = u.node, a = t?.type ?? "";
|
|
@@ -379,7 +397,7 @@ function Ve(e) {
|
|
|
379
397
|
}
|
|
380
398
|
return !1;
|
|
381
399
|
}
|
|
382
|
-
function
|
|
400
|
+
function De(e) {
|
|
383
401
|
let u = e.parentPath;
|
|
384
402
|
for (; u; ) {
|
|
385
403
|
const t = u.node?.type ?? "";
|
|
@@ -395,8 +413,8 @@ function Iu(e, u, t) {
|
|
|
395
413
|
context: a = {},
|
|
396
414
|
computed: r = [],
|
|
397
415
|
libs: n = {},
|
|
398
|
-
members:
|
|
399
|
-
props:
|
|
416
|
+
members: s = [],
|
|
417
|
+
props: i = [],
|
|
400
418
|
platform: o
|
|
401
419
|
} = t || {}, c = Array.from(a[u || ""] || /* @__PURE__ */ new Set());
|
|
402
420
|
if (c)
|
|
@@ -404,12 +422,12 @@ function Iu(e, u, t) {
|
|
|
404
422
|
e = R(e, d, `this.context.${d}`);
|
|
405
423
|
for (const d of r)
|
|
406
424
|
e.includes(`this.${d}.value`) || (e = R(e, d, `this.${d}.value`));
|
|
407
|
-
for (const d of s)
|
|
408
|
-
e = R(e, d, `this.${d}`);
|
|
409
|
-
for (const [d, f] of Object.entries(n))
|
|
410
|
-
e = R(e, d, `this.$libs.${f}.${d}`), e = R(e, `this.${d}`, `this.$libs.${f}.${d}`);
|
|
411
425
|
for (const d of i)
|
|
412
426
|
e = R(e, d, `this.${d}`);
|
|
427
|
+
for (const [d, l] of Object.entries(n))
|
|
428
|
+
e = R(e, d, `this.$libs.${l}.${d}`), e = R(e, `this.${d}`, `this.$libs.${l}.${d}`);
|
|
429
|
+
for (const d of s)
|
|
430
|
+
e = R(e, d, `this.${d}`);
|
|
413
431
|
if (o === "uniapp") {
|
|
414
432
|
const d = /\suni\./g;
|
|
415
433
|
e = e.replace(d, "this.$libs.UniH5.uni.");
|
|
@@ -428,7 +446,7 @@ function C(e) {
|
|
|
428
446
|
value: e
|
|
429
447
|
};
|
|
430
448
|
}
|
|
431
|
-
const
|
|
449
|
+
const Re = [
|
|
432
450
|
"beforeCreate",
|
|
433
451
|
"created",
|
|
434
452
|
"beforeMount",
|
|
@@ -442,30 +460,30 @@ const De = [
|
|
|
442
460
|
"renderTriggered",
|
|
443
461
|
"activated",
|
|
444
462
|
"deactivated"
|
|
445
|
-
],
|
|
463
|
+
], Ce = "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(
|
|
446
464
|
","
|
|
447
|
-
),
|
|
465
|
+
), _e = "component,slot,template".split(","), Le = "view,swiper,progress,icon,text,button,checkbox,editor,form,input,label,picker,radio,slider,switch,textarea,audio,camera,image,video,map,canvas".split(
|
|
448
466
|
","
|
|
449
467
|
);
|
|
450
|
-
function
|
|
468
|
+
function Me(e, u = "web") {
|
|
451
469
|
return u === "uniapp" && Le.includes(e);
|
|
452
470
|
}
|
|
453
471
|
function zu(e, u = "web") {
|
|
454
|
-
return (
|
|
472
|
+
return (Ce.includes(e) || _e.includes(e)) && !Me(e, u) ? e : ge(e);
|
|
455
473
|
}
|
|
456
474
|
function Xu(e) {
|
|
457
475
|
return e.replace(/\s+/g, " ").split(";").reduce((t, a) => {
|
|
458
|
-
const [r, n] = a.split(":").map((
|
|
476
|
+
const [r, n] = a.split(":").map((s) => s.trim());
|
|
459
477
|
return r && n && (t[r] = n), t;
|
|
460
478
|
}, {});
|
|
461
479
|
}
|
|
462
|
-
function
|
|
480
|
+
function Pe(e, u, t) {
|
|
463
481
|
if (t === "ObjectExpression")
|
|
464
482
|
return `(Object.assign({${e.split(" ").map((r) => `'${r}': true`).join(",")}}, ${u}))`;
|
|
465
483
|
if (t === "ArrayExpression")
|
|
466
484
|
return `([${e.split(" ").map((r) => `'${r}'`).join(",")}].concat(${u}))`;
|
|
467
485
|
}
|
|
468
|
-
function
|
|
486
|
+
function Zu(e = "") {
|
|
469
487
|
const t = e.trim().match(/DataSource:\s*([^\n=]+={0,2})/)?.[1] || "";
|
|
470
488
|
try {
|
|
471
489
|
return t ? JSON.parse(ye(t)) : null;
|
|
@@ -476,12 +494,12 @@ function Qu(e = "") {
|
|
|
476
494
|
const Oe = /* @__PURE__ */ new Uint16Array(
|
|
477
495
|
// prettier-ignore
|
|
478
496
|
/* @__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))
|
|
479
|
-
),
|
|
497
|
+
), Be = /* @__PURE__ */ new Uint16Array(
|
|
480
498
|
// prettier-ignore
|
|
481
499
|
/* @__PURE__ */ "Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e) => e.charCodeAt(0))
|
|
482
500
|
);
|
|
483
501
|
var fu;
|
|
484
|
-
const
|
|
502
|
+
const $e = /* @__PURE__ */ new Map([
|
|
485
503
|
[0, 65533],
|
|
486
504
|
// C1 Unicode control character reference replacements
|
|
487
505
|
[128, 8364],
|
|
@@ -520,13 +538,13 @@ const Be = /* @__PURE__ */ new Map([
|
|
|
520
538
|
);
|
|
521
539
|
function Fe(e) {
|
|
522
540
|
var u;
|
|
523
|
-
return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (u =
|
|
541
|
+
return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (u = $e.get(e)) !== null && u !== void 0 ? u : e;
|
|
524
542
|
}
|
|
525
543
|
var V;
|
|
526
544
|
(function(e) {
|
|
527
545
|
e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
|
|
528
546
|
})(V || (V = {}));
|
|
529
|
-
const
|
|
547
|
+
const Ue = 32;
|
|
530
548
|
var W;
|
|
531
549
|
(function(e) {
|
|
532
550
|
e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
@@ -534,26 +552,26 @@ var W;
|
|
|
534
552
|
function pu(e) {
|
|
535
553
|
return e >= V.ZERO && e <= V.NINE;
|
|
536
554
|
}
|
|
537
|
-
function
|
|
555
|
+
function Ge(e) {
|
|
538
556
|
return e >= V.UPPER_A && e <= V.UPPER_F || e >= V.LOWER_A && e <= V.LOWER_F;
|
|
539
557
|
}
|
|
540
|
-
function
|
|
558
|
+
function He(e) {
|
|
541
559
|
return e >= V.UPPER_A && e <= V.UPPER_Z || e >= V.LOWER_A && e <= V.LOWER_Z || pu(e);
|
|
542
560
|
}
|
|
543
|
-
function
|
|
544
|
-
return e === V.EQUALS ||
|
|
561
|
+
function We(e) {
|
|
562
|
+
return e === V.EQUALS || He(e);
|
|
545
563
|
}
|
|
546
564
|
var j;
|
|
547
565
|
(function(e) {
|
|
548
566
|
e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
|
|
549
567
|
})(j || (j = {}));
|
|
550
|
-
var
|
|
568
|
+
var P;
|
|
551
569
|
(function(e) {
|
|
552
570
|
e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
|
|
553
|
-
})(
|
|
554
|
-
class
|
|
571
|
+
})(P || (P = {}));
|
|
572
|
+
class Je {
|
|
555
573
|
constructor(u, t, a) {
|
|
556
|
-
this.decodeTree = u, this.emitCodePoint = t, this.errors = a, this.state = j.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode =
|
|
574
|
+
this.decodeTree = u, this.emitCodePoint = t, this.errors = a, this.state = j.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = P.Strict;
|
|
557
575
|
}
|
|
558
576
|
/** Resets the instance to make it reusable. */
|
|
559
577
|
startEntity(u) {
|
|
@@ -594,7 +612,7 @@ class We {
|
|
|
594
612
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
595
613
|
*/
|
|
596
614
|
stateNumericStart(u, t) {
|
|
597
|
-
return t >= u.length ? -1 : (u.charCodeAt(t) |
|
|
615
|
+
return t >= u.length ? -1 : (u.charCodeAt(t) | Ue) === V.LOWER_X ? (this.state = j.NumericHex, this.consumed += 1, this.stateNumericHex(u, t + 1)) : (this.state = j.NumericDecimal, this.stateNumericDecimal(u, t));
|
|
598
616
|
}
|
|
599
617
|
addToNumericResult(u, t, a, r) {
|
|
600
618
|
if (t !== a) {
|
|
@@ -615,7 +633,7 @@ class We {
|
|
|
615
633
|
const a = t;
|
|
616
634
|
for (; t < u.length; ) {
|
|
617
635
|
const r = u.charCodeAt(t);
|
|
618
|
-
if (pu(r) ||
|
|
636
|
+
if (pu(r) || Ge(r))
|
|
619
637
|
t += 1;
|
|
620
638
|
else
|
|
621
639
|
return this.addToNumericResult(u, a, t, 16), this.emitNumericEntity(r, 3);
|
|
@@ -661,7 +679,7 @@ class We {
|
|
|
661
679
|
return (a = this.errors) === null || a === void 0 || a.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
662
680
|
if (u === V.SEMI)
|
|
663
681
|
this.consumed += 1;
|
|
664
|
-
else if (this.decodeMode ===
|
|
682
|
+
else if (this.decodeMode === P.Strict)
|
|
665
683
|
return 0;
|
|
666
684
|
return this.emitCodePoint(Fe(this.result), this.consumed), this.errors && (u !== V.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
667
685
|
}
|
|
@@ -678,16 +696,16 @@ class We {
|
|
|
678
696
|
const { decodeTree: a } = this;
|
|
679
697
|
let r = a[this.treeIndex], n = (r & W.VALUE_LENGTH) >> 14;
|
|
680
698
|
for (; t < u.length; t++, this.excess++) {
|
|
681
|
-
const
|
|
682
|
-
if (this.treeIndex =
|
|
699
|
+
const s = u.charCodeAt(t);
|
|
700
|
+
if (this.treeIndex = ze(a, r, this.treeIndex + Math.max(1, n), s), this.treeIndex < 0)
|
|
683
701
|
return this.result === 0 || // If we are parsing an attribute
|
|
684
|
-
this.decodeMode ===
|
|
702
|
+
this.decodeMode === P.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
685
703
|
(n === 0 || // And there should be no invalid characters.
|
|
686
|
-
|
|
704
|
+
We(s)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
687
705
|
if (r = a[this.treeIndex], n = (r & W.VALUE_LENGTH) >> 14, n !== 0) {
|
|
688
|
-
if (
|
|
706
|
+
if (s === V.SEMI)
|
|
689
707
|
return this.emitNamedEntityData(this.treeIndex, n, this.consumed + this.excess);
|
|
690
|
-
this.decodeMode !==
|
|
708
|
+
this.decodeMode !== P.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
691
709
|
}
|
|
692
710
|
}
|
|
693
711
|
return -1;
|
|
@@ -726,7 +744,7 @@ class We {
|
|
|
726
744
|
var u;
|
|
727
745
|
switch (this.state) {
|
|
728
746
|
case j.NamedEntity:
|
|
729
|
-
return this.result !== 0 && (this.decodeMode !==
|
|
747
|
+
return this.result !== 0 && (this.decodeMode !== P.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
730
748
|
// Otherwise, emit a numeric entity if we have one.
|
|
731
749
|
case j.NumericDecimal:
|
|
732
750
|
return this.emitNumericEntity(0, 2);
|
|
@@ -739,7 +757,7 @@ class We {
|
|
|
739
757
|
}
|
|
740
758
|
}
|
|
741
759
|
}
|
|
742
|
-
function
|
|
760
|
+
function ze(e, u, t, a) {
|
|
743
761
|
const r = (u & W.BRANCH_LENGTH) >> 7, n = u & W.JUMP_TABLE;
|
|
744
762
|
if (r === 0)
|
|
745
763
|
return n !== 0 && a === n ? t : -1;
|
|
@@ -747,39 +765,39 @@ function Je(e, u, t, a) {
|
|
|
747
765
|
const o = a - n;
|
|
748
766
|
return o < 0 || o >= r ? -1 : e[t + o] - 1;
|
|
749
767
|
}
|
|
750
|
-
let
|
|
751
|
-
for (;
|
|
752
|
-
const o =
|
|
768
|
+
let s = t, i = s + r - 1;
|
|
769
|
+
for (; s <= i; ) {
|
|
770
|
+
const o = s + i >>> 1, c = e[o];
|
|
753
771
|
if (c < a)
|
|
754
|
-
|
|
772
|
+
s = o + 1;
|
|
755
773
|
else if (c > a)
|
|
756
|
-
|
|
774
|
+
i = o - 1;
|
|
757
775
|
else
|
|
758
776
|
return e[o + r];
|
|
759
777
|
}
|
|
760
778
|
return -1;
|
|
761
779
|
}
|
|
762
|
-
var
|
|
780
|
+
var y;
|
|
763
781
|
(function(e) {
|
|
764
782
|
e[e.Tab = 9] = "Tab", e[e.NewLine = 10] = "NewLine", e[e.FormFeed = 12] = "FormFeed", e[e.CarriageReturn = 13] = "CarriageReturn", e[e.Space = 32] = "Space", e[e.ExclamationMark = 33] = "ExclamationMark", e[e.Number = 35] = "Number", e[e.Amp = 38] = "Amp", e[e.SingleQuote = 39] = "SingleQuote", e[e.DoubleQuote = 34] = "DoubleQuote", e[e.Dash = 45] = "Dash", e[e.Slash = 47] = "Slash", e[e.Zero = 48] = "Zero", e[e.Nine = 57] = "Nine", e[e.Semi = 59] = "Semi", e[e.Lt = 60] = "Lt", e[e.Eq = 61] = "Eq", e[e.Gt = 62] = "Gt", e[e.Questionmark = 63] = "Questionmark", e[e.UpperA = 65] = "UpperA", e[e.LowerA = 97] = "LowerA", e[e.UpperF = 70] = "UpperF", e[e.LowerF = 102] = "LowerF", e[e.UpperZ = 90] = "UpperZ", e[e.LowerZ = 122] = "LowerZ", e[e.LowerX = 120] = "LowerX", e[e.OpeningSquareBracket = 91] = "OpeningSquareBracket";
|
|
765
|
-
})(
|
|
766
|
-
var
|
|
783
|
+
})(y || (y = {}));
|
|
784
|
+
var f;
|
|
767
785
|
(function(e) {
|
|
768
786
|
e[e.Text = 1] = "Text", e[e.BeforeTagName = 2] = "BeforeTagName", e[e.InTagName = 3] = "InTagName", e[e.InSelfClosingTag = 4] = "InSelfClosingTag", e[e.BeforeClosingTagName = 5] = "BeforeClosingTagName", e[e.InClosingTagName = 6] = "InClosingTagName", e[e.AfterClosingTagName = 7] = "AfterClosingTagName", e[e.BeforeAttributeName = 8] = "BeforeAttributeName", e[e.InAttributeName = 9] = "InAttributeName", e[e.AfterAttributeName = 10] = "AfterAttributeName", e[e.BeforeAttributeValue = 11] = "BeforeAttributeValue", e[e.InAttributeValueDq = 12] = "InAttributeValueDq", e[e.InAttributeValueSq = 13] = "InAttributeValueSq", e[e.InAttributeValueNq = 14] = "InAttributeValueNq", e[e.BeforeDeclaration = 15] = "BeforeDeclaration", e[e.InDeclaration = 16] = "InDeclaration", e[e.InProcessingInstruction = 17] = "InProcessingInstruction", e[e.BeforeComment = 18] = "BeforeComment", e[e.CDATASequence = 19] = "CDATASequence", e[e.InSpecialComment = 20] = "InSpecialComment", e[e.InCommentLike = 21] = "InCommentLike", e[e.BeforeSpecialS = 22] = "BeforeSpecialS", e[e.BeforeSpecialT = 23] = "BeforeSpecialT", e[e.SpecialStartSequence = 24] = "SpecialStartSequence", e[e.InSpecialTag = 25] = "InSpecialTag", e[e.InEntity = 26] = "InEntity";
|
|
769
|
-
})(
|
|
787
|
+
})(f || (f = {}));
|
|
770
788
|
function U(e) {
|
|
771
|
-
return e ===
|
|
789
|
+
return e === y.Space || e === y.NewLine || e === y.Tab || e === y.FormFeed || e === y.CarriageReturn;
|
|
772
790
|
}
|
|
773
791
|
function tu(e) {
|
|
774
|
-
return e ===
|
|
792
|
+
return e === y.Slash || e === y.Gt || U(e);
|
|
775
793
|
}
|
|
776
|
-
function
|
|
777
|
-
return e >=
|
|
794
|
+
function Xe(e) {
|
|
795
|
+
return e >= y.LowerA && e <= y.LowerZ || e >= y.UpperA && e <= y.UpperZ;
|
|
778
796
|
}
|
|
779
|
-
var
|
|
797
|
+
var O;
|
|
780
798
|
(function(e) {
|
|
781
799
|
e[e.NoValue = 0] = "NoValue", e[e.Unquoted = 1] = "Unquoted", e[e.Single = 2] = "Single", e[e.Double = 3] = "Double";
|
|
782
|
-
})(
|
|
800
|
+
})(O || (O = {}));
|
|
783
801
|
const N = {
|
|
784
802
|
Cdata: new Uint8Array([67, 68, 65, 84, 65, 91]),
|
|
785
803
|
// CDATA[
|
|
@@ -809,12 +827,12 @@ const N = {
|
|
|
809
827
|
XmpEnd: new Uint8Array([60, 47, 120, 109, 112])
|
|
810
828
|
// `</xmp`
|
|
811
829
|
};
|
|
812
|
-
class
|
|
830
|
+
class Ze {
|
|
813
831
|
constructor({ xmlMode: u = !1, decodeEntities: t = !0 }, a) {
|
|
814
|
-
this.cbs = a, this.state =
|
|
832
|
+
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 = u, this.decodeEntities = t, this.entityDecoder = new Je(u ? Be : Oe, (r, n) => this.emitCodePoint(r, n));
|
|
815
833
|
}
|
|
816
834
|
reset() {
|
|
817
|
-
this.state =
|
|
835
|
+
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;
|
|
818
836
|
}
|
|
819
837
|
write(u) {
|
|
820
838
|
this.offset += this.buffer.length, this.buffer = u, this.parse();
|
|
@@ -829,7 +847,7 @@ class Xe {
|
|
|
829
847
|
this.running = !0, this.index < this.buffer.length + this.offset && this.parse();
|
|
830
848
|
}
|
|
831
849
|
stateText(u) {
|
|
832
|
-
u ===
|
|
850
|
+
u === y.Lt || !this.decodeEntities && this.fastForwardTo(y.Lt) ? (this.index > this.sectionStart && this.cbs.ontext(this.sectionStart, this.index), this.state = f.BeforeTagName, this.sectionStart = this.index) : this.decodeEntities && u === y.Amp && this.startEntity();
|
|
833
851
|
}
|
|
834
852
|
stateSpecialStartSequence(u) {
|
|
835
853
|
const t = this.sequenceIndex === this.currentSequence.length;
|
|
@@ -845,12 +863,12 @@ class Xe {
|
|
|
845
863
|
this.sequenceIndex++;
|
|
846
864
|
return;
|
|
847
865
|
}
|
|
848
|
-
this.sequenceIndex = 0, this.state =
|
|
866
|
+
this.sequenceIndex = 0, this.state = f.InTagName, this.stateInTagName(u);
|
|
849
867
|
}
|
|
850
868
|
/** Look for an end tag. For <title> tags, also decode entities. */
|
|
851
869
|
stateInSpecialTag(u) {
|
|
852
870
|
if (this.sequenceIndex === this.currentSequence.length) {
|
|
853
|
-
if (u ===
|
|
871
|
+
if (u === y.Gt || U(u)) {
|
|
854
872
|
const t = this.index - this.currentSequence.length;
|
|
855
873
|
if (this.sectionStart < t) {
|
|
856
874
|
const a = this.index;
|
|
@@ -861,10 +879,10 @@ class Xe {
|
|
|
861
879
|
}
|
|
862
880
|
this.sequenceIndex = 0;
|
|
863
881
|
}
|
|
864
|
-
(u | 32) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : this.sequenceIndex === 0 ? this.currentSequence === N.TitleEnd ? this.decodeEntities && u ===
|
|
882
|
+
(u | 32) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : this.sequenceIndex === 0 ? this.currentSequence === N.TitleEnd ? this.decodeEntities && u === y.Amp && this.startEntity() : this.fastForwardTo(y.Lt) && (this.sequenceIndex = 1) : this.sequenceIndex = +(u === y.Lt);
|
|
865
883
|
}
|
|
866
884
|
stateCDATASequence(u) {
|
|
867
|
-
u === N.Cdata[this.sequenceIndex] ? ++this.sequenceIndex === N.Cdata.length && (this.state =
|
|
885
|
+
u === 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(u));
|
|
868
886
|
}
|
|
869
887
|
/**
|
|
870
888
|
* When we wait for one specific character, we can speed things up
|
|
@@ -887,7 +905,7 @@ class Xe {
|
|
|
887
905
|
* - All characters but the start character of the sequence can be skipped.
|
|
888
906
|
*/
|
|
889
907
|
stateInCommentLike(u) {
|
|
890
|
-
u === 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 =
|
|
908
|
+
u === 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) : u !== this.currentSequence[this.sequenceIndex - 1] && (this.sequenceIndex = 0);
|
|
891
909
|
}
|
|
892
910
|
/**
|
|
893
911
|
* HTML only allows ASCII alpha characters (a-z and A-Z) at the beginning of a tag name.
|
|
@@ -896,78 +914,78 @@ class Xe {
|
|
|
896
914
|
* We allow anything that wouldn't end the tag.
|
|
897
915
|
*/
|
|
898
916
|
isTagStartChar(u) {
|
|
899
|
-
return this.xmlMode ? !tu(u) :
|
|
917
|
+
return this.xmlMode ? !tu(u) : Xe(u);
|
|
900
918
|
}
|
|
901
919
|
startSpecial(u, t) {
|
|
902
|
-
this.isSpecial = !0, this.currentSequence = u, this.sequenceIndex = t, this.state =
|
|
920
|
+
this.isSpecial = !0, this.currentSequence = u, this.sequenceIndex = t, this.state = f.SpecialStartSequence;
|
|
903
921
|
}
|
|
904
922
|
stateBeforeTagName(u) {
|
|
905
|
-
if (u ===
|
|
906
|
-
this.state =
|
|
907
|
-
else if (u ===
|
|
908
|
-
this.state =
|
|
923
|
+
if (u === y.ExclamationMark)
|
|
924
|
+
this.state = f.BeforeDeclaration, this.sectionStart = this.index + 1;
|
|
925
|
+
else if (u === y.Questionmark)
|
|
926
|
+
this.state = f.InProcessingInstruction, this.sectionStart = this.index + 1;
|
|
909
927
|
else if (this.isTagStartChar(u)) {
|
|
910
928
|
const t = u | 32;
|
|
911
|
-
this.sectionStart = this.index, this.xmlMode ? this.state =
|
|
912
|
-
} else u ===
|
|
929
|
+
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;
|
|
930
|
+
} else u === y.Slash ? this.state = f.BeforeClosingTagName : (this.state = f.Text, this.stateText(u));
|
|
913
931
|
}
|
|
914
932
|
stateInTagName(u) {
|
|
915
|
-
tu(u) && (this.cbs.onopentagname(this.sectionStart, this.index), this.sectionStart = -1, this.state =
|
|
933
|
+
tu(u) && (this.cbs.onopentagname(this.sectionStart, this.index), this.sectionStart = -1, this.state = f.BeforeAttributeName, this.stateBeforeAttributeName(u));
|
|
916
934
|
}
|
|
917
935
|
stateBeforeClosingTagName(u) {
|
|
918
|
-
U(u) || (u ===
|
|
936
|
+
U(u) || (u === y.Gt ? this.state = f.Text : (this.state = this.isTagStartChar(u) ? f.InClosingTagName : f.InSpecialComment, this.sectionStart = this.index));
|
|
919
937
|
}
|
|
920
938
|
stateInClosingTagName(u) {
|
|
921
|
-
(u ===
|
|
939
|
+
(u === y.Gt || U(u)) && (this.cbs.onclosetag(this.sectionStart, this.index), this.sectionStart = -1, this.state = f.AfterClosingTagName, this.stateAfterClosingTagName(u));
|
|
922
940
|
}
|
|
923
941
|
stateAfterClosingTagName(u) {
|
|
924
|
-
(u ===
|
|
942
|
+
(u === y.Gt || this.fastForwardTo(y.Gt)) && (this.state = f.Text, this.sectionStart = this.index + 1);
|
|
925
943
|
}
|
|
926
944
|
stateBeforeAttributeName(u) {
|
|
927
|
-
u ===
|
|
945
|
+
u === y.Gt ? (this.cbs.onopentagend(this.index), this.isSpecial ? (this.state = f.InSpecialTag, this.sequenceIndex = 0) : this.state = f.Text, this.sectionStart = this.index + 1) : u === y.Slash ? this.state = f.InSelfClosingTag : U(u) || (this.state = f.InAttributeName, this.sectionStart = this.index);
|
|
928
946
|
}
|
|
929
947
|
stateInSelfClosingTag(u) {
|
|
930
|
-
u ===
|
|
948
|
+
u === y.Gt ? (this.cbs.onselfclosingtag(this.index), this.state = f.Text, this.sectionStart = this.index + 1, this.isSpecial = !1) : U(u) || (this.state = f.BeforeAttributeName, this.stateBeforeAttributeName(u));
|
|
931
949
|
}
|
|
932
950
|
stateInAttributeName(u) {
|
|
933
|
-
(u ===
|
|
951
|
+
(u === y.Eq || tu(u)) && (this.cbs.onattribname(this.sectionStart, this.index), this.sectionStart = this.index, this.state = f.AfterAttributeName, this.stateAfterAttributeName(u));
|
|
934
952
|
}
|
|
935
953
|
stateAfterAttributeName(u) {
|
|
936
|
-
u ===
|
|
954
|
+
u === y.Eq ? this.state = f.BeforeAttributeValue : u === y.Slash || u === y.Gt ? (this.cbs.onattribend(O.NoValue, this.sectionStart), this.sectionStart = -1, this.state = f.BeforeAttributeName, this.stateBeforeAttributeName(u)) : U(u) || (this.cbs.onattribend(O.NoValue, this.sectionStart), this.state = f.InAttributeName, this.sectionStart = this.index);
|
|
937
955
|
}
|
|
938
956
|
stateBeforeAttributeValue(u) {
|
|
939
|
-
u ===
|
|
957
|
+
u === y.DoubleQuote ? (this.state = f.InAttributeValueDq, this.sectionStart = this.index + 1) : u === y.SingleQuote ? (this.state = f.InAttributeValueSq, this.sectionStart = this.index + 1) : U(u) || (this.sectionStart = this.index, this.state = f.InAttributeValueNq, this.stateInAttributeValueNoQuotes(u));
|
|
940
958
|
}
|
|
941
959
|
handleInAttributeValue(u, t) {
|
|
942
|
-
u === t || !this.decodeEntities && this.fastForwardTo(t) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(t ===
|
|
960
|
+
u === t || !this.decodeEntities && this.fastForwardTo(t) ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(t === y.DoubleQuote ? O.Double : O.Single, this.index + 1), this.state = f.BeforeAttributeName) : this.decodeEntities && u === y.Amp && this.startEntity();
|
|
943
961
|
}
|
|
944
962
|
stateInAttributeValueDoubleQuotes(u) {
|
|
945
|
-
this.handleInAttributeValue(u,
|
|
963
|
+
this.handleInAttributeValue(u, y.DoubleQuote);
|
|
946
964
|
}
|
|
947
965
|
stateInAttributeValueSingleQuotes(u) {
|
|
948
|
-
this.handleInAttributeValue(u,
|
|
966
|
+
this.handleInAttributeValue(u, y.SingleQuote);
|
|
949
967
|
}
|
|
950
968
|
stateInAttributeValueNoQuotes(u) {
|
|
951
|
-
U(u) || u ===
|
|
969
|
+
U(u) || u === y.Gt ? (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = -1, this.cbs.onattribend(O.Unquoted, this.index), this.state = f.BeforeAttributeName, this.stateBeforeAttributeName(u)) : this.decodeEntities && u === y.Amp && this.startEntity();
|
|
952
970
|
}
|
|
953
971
|
stateBeforeDeclaration(u) {
|
|
954
|
-
u ===
|
|
972
|
+
u === y.OpeningSquareBracket ? (this.state = f.CDATASequence, this.sequenceIndex = 0) : this.state = u === y.Dash ? f.BeforeComment : f.InDeclaration;
|
|
955
973
|
}
|
|
956
974
|
stateInDeclaration(u) {
|
|
957
|
-
(u ===
|
|
975
|
+
(u === y.Gt || this.fastForwardTo(y.Gt)) && (this.cbs.ondeclaration(this.sectionStart, this.index), this.state = f.Text, this.sectionStart = this.index + 1);
|
|
958
976
|
}
|
|
959
977
|
stateInProcessingInstruction(u) {
|
|
960
|
-
(u ===
|
|
978
|
+
(u === y.Gt || this.fastForwardTo(y.Gt)) && (this.cbs.onprocessinginstruction(this.sectionStart, this.index), this.state = f.Text, this.sectionStart = this.index + 1);
|
|
961
979
|
}
|
|
962
980
|
stateBeforeComment(u) {
|
|
963
|
-
u ===
|
|
981
|
+
u === y.Dash ? (this.state = f.InCommentLike, this.currentSequence = N.CommentEnd, this.sequenceIndex = 2, this.sectionStart = this.index + 1) : this.state = f.InDeclaration;
|
|
964
982
|
}
|
|
965
983
|
stateInSpecialComment(u) {
|
|
966
|
-
(u ===
|
|
984
|
+
(u === y.Gt || this.fastForwardTo(y.Gt)) && (this.cbs.oncomment(this.sectionStart, this.index, 0), this.state = f.Text, this.sectionStart = this.index + 1);
|
|
967
985
|
}
|
|
968
986
|
stateBeforeSpecialS(u) {
|
|
969
987
|
const t = u | 32;
|
|
970
|
-
t === N.ScriptEnd[3] ? this.startSpecial(N.ScriptEnd, 4) : t === N.StyleEnd[3] ? this.startSpecial(N.StyleEnd, 4) : (this.state =
|
|
988
|
+
t === N.ScriptEnd[3] ? this.startSpecial(N.ScriptEnd, 4) : t === N.StyleEnd[3] ? this.startSpecial(N.StyleEnd, 4) : (this.state = f.InTagName, this.stateInTagName(u));
|
|
971
989
|
}
|
|
972
990
|
stateBeforeSpecialT(u) {
|
|
973
991
|
switch (u | 32) {
|
|
@@ -984,11 +1002,11 @@ class Xe {
|
|
|
984
1002
|
break;
|
|
985
1003
|
}
|
|
986
1004
|
default:
|
|
987
|
-
this.state =
|
|
1005
|
+
this.state = f.InTagName, this.stateInTagName(u);
|
|
988
1006
|
}
|
|
989
1007
|
}
|
|
990
1008
|
startEntity() {
|
|
991
|
-
this.baseState = this.state, this.state =
|
|
1009
|
+
this.baseState = this.state, this.state = f.InEntity, this.entityStart = this.index, this.entityDecoder.startEntity(this.xmlMode ? P.Strict : this.baseState === f.Text || this.baseState === f.InSpecialTag ? P.Legacy : P.Attribute);
|
|
992
1010
|
}
|
|
993
1011
|
stateInEntity() {
|
|
994
1012
|
const u = this.entityDecoder.write(this.buffer, this.index - this.offset);
|
|
@@ -998,7 +1016,7 @@ class Xe {
|
|
|
998
1016
|
* Remove data that has already been consumed from the buffer.
|
|
999
1017
|
*/
|
|
1000
1018
|
cleanup() {
|
|
1001
|
-
this.running && this.sectionStart !== this.index && (this.state ===
|
|
1019
|
+
this.running && this.sectionStart !== this.index && (this.state === f.Text || this.state === f.InSpecialTag && this.sequenceIndex === 0 ? (this.cbs.ontext(this.sectionStart, this.index), this.sectionStart = this.index) : (this.state === f.InAttributeValueDq || this.state === f.InAttributeValueSq || this.state === f.InAttributeValueNq) && (this.cbs.onattribdata(this.sectionStart, this.index), this.sectionStart = this.index));
|
|
1002
1020
|
}
|
|
1003
1021
|
shouldContinue() {
|
|
1004
1022
|
return this.index < this.buffer.length + this.offset && this.running;
|
|
@@ -1012,107 +1030,107 @@ class Xe {
|
|
|
1012
1030
|
for (; this.shouldContinue(); ) {
|
|
1013
1031
|
const u = this.buffer.charCodeAt(this.index - this.offset);
|
|
1014
1032
|
switch (this.state) {
|
|
1015
|
-
case
|
|
1033
|
+
case f.Text: {
|
|
1016
1034
|
this.stateText(u);
|
|
1017
1035
|
break;
|
|
1018
1036
|
}
|
|
1019
|
-
case
|
|
1037
|
+
case f.SpecialStartSequence: {
|
|
1020
1038
|
this.stateSpecialStartSequence(u);
|
|
1021
1039
|
break;
|
|
1022
1040
|
}
|
|
1023
|
-
case
|
|
1041
|
+
case f.InSpecialTag: {
|
|
1024
1042
|
this.stateInSpecialTag(u);
|
|
1025
1043
|
break;
|
|
1026
1044
|
}
|
|
1027
|
-
case
|
|
1045
|
+
case f.CDATASequence: {
|
|
1028
1046
|
this.stateCDATASequence(u);
|
|
1029
1047
|
break;
|
|
1030
1048
|
}
|
|
1031
|
-
case
|
|
1049
|
+
case f.InAttributeValueDq: {
|
|
1032
1050
|
this.stateInAttributeValueDoubleQuotes(u);
|
|
1033
1051
|
break;
|
|
1034
1052
|
}
|
|
1035
|
-
case
|
|
1053
|
+
case f.InAttributeName: {
|
|
1036
1054
|
this.stateInAttributeName(u);
|
|
1037
1055
|
break;
|
|
1038
1056
|
}
|
|
1039
|
-
case
|
|
1057
|
+
case f.InCommentLike: {
|
|
1040
1058
|
this.stateInCommentLike(u);
|
|
1041
1059
|
break;
|
|
1042
1060
|
}
|
|
1043
|
-
case
|
|
1061
|
+
case f.InSpecialComment: {
|
|
1044
1062
|
this.stateInSpecialComment(u);
|
|
1045
1063
|
break;
|
|
1046
1064
|
}
|
|
1047
|
-
case
|
|
1065
|
+
case f.BeforeAttributeName: {
|
|
1048
1066
|
this.stateBeforeAttributeName(u);
|
|
1049
1067
|
break;
|
|
1050
1068
|
}
|
|
1051
|
-
case
|
|
1069
|
+
case f.InTagName: {
|
|
1052
1070
|
this.stateInTagName(u);
|
|
1053
1071
|
break;
|
|
1054
1072
|
}
|
|
1055
|
-
case
|
|
1073
|
+
case f.InClosingTagName: {
|
|
1056
1074
|
this.stateInClosingTagName(u);
|
|
1057
1075
|
break;
|
|
1058
1076
|
}
|
|
1059
|
-
case
|
|
1077
|
+
case f.BeforeTagName: {
|
|
1060
1078
|
this.stateBeforeTagName(u);
|
|
1061
1079
|
break;
|
|
1062
1080
|
}
|
|
1063
|
-
case
|
|
1081
|
+
case f.AfterAttributeName: {
|
|
1064
1082
|
this.stateAfterAttributeName(u);
|
|
1065
1083
|
break;
|
|
1066
1084
|
}
|
|
1067
|
-
case
|
|
1085
|
+
case f.InAttributeValueSq: {
|
|
1068
1086
|
this.stateInAttributeValueSingleQuotes(u);
|
|
1069
1087
|
break;
|
|
1070
1088
|
}
|
|
1071
|
-
case
|
|
1089
|
+
case f.BeforeAttributeValue: {
|
|
1072
1090
|
this.stateBeforeAttributeValue(u);
|
|
1073
1091
|
break;
|
|
1074
1092
|
}
|
|
1075
|
-
case
|
|
1093
|
+
case f.BeforeClosingTagName: {
|
|
1076
1094
|
this.stateBeforeClosingTagName(u);
|
|
1077
1095
|
break;
|
|
1078
1096
|
}
|
|
1079
|
-
case
|
|
1097
|
+
case f.AfterClosingTagName: {
|
|
1080
1098
|
this.stateAfterClosingTagName(u);
|
|
1081
1099
|
break;
|
|
1082
1100
|
}
|
|
1083
|
-
case
|
|
1101
|
+
case f.BeforeSpecialS: {
|
|
1084
1102
|
this.stateBeforeSpecialS(u);
|
|
1085
1103
|
break;
|
|
1086
1104
|
}
|
|
1087
|
-
case
|
|
1105
|
+
case f.BeforeSpecialT: {
|
|
1088
1106
|
this.stateBeforeSpecialT(u);
|
|
1089
1107
|
break;
|
|
1090
1108
|
}
|
|
1091
|
-
case
|
|
1109
|
+
case f.InAttributeValueNq: {
|
|
1092
1110
|
this.stateInAttributeValueNoQuotes(u);
|
|
1093
1111
|
break;
|
|
1094
1112
|
}
|
|
1095
|
-
case
|
|
1113
|
+
case f.InSelfClosingTag: {
|
|
1096
1114
|
this.stateInSelfClosingTag(u);
|
|
1097
1115
|
break;
|
|
1098
1116
|
}
|
|
1099
|
-
case
|
|
1117
|
+
case f.InDeclaration: {
|
|
1100
1118
|
this.stateInDeclaration(u);
|
|
1101
1119
|
break;
|
|
1102
1120
|
}
|
|
1103
|
-
case
|
|
1121
|
+
case f.BeforeDeclaration: {
|
|
1104
1122
|
this.stateBeforeDeclaration(u);
|
|
1105
1123
|
break;
|
|
1106
1124
|
}
|
|
1107
|
-
case
|
|
1125
|
+
case f.BeforeComment: {
|
|
1108
1126
|
this.stateBeforeComment(u);
|
|
1109
1127
|
break;
|
|
1110
1128
|
}
|
|
1111
|
-
case
|
|
1129
|
+
case f.InProcessingInstruction: {
|
|
1112
1130
|
this.stateInProcessingInstruction(u);
|
|
1113
1131
|
break;
|
|
1114
1132
|
}
|
|
1115
|
-
case
|
|
1133
|
+
case f.InEntity: {
|
|
1116
1134
|
this.stateInEntity();
|
|
1117
1135
|
break;
|
|
1118
1136
|
}
|
|
@@ -1122,15 +1140,15 @@ class Xe {
|
|
|
1122
1140
|
this.cleanup();
|
|
1123
1141
|
}
|
|
1124
1142
|
finish() {
|
|
1125
|
-
this.state ===
|
|
1143
|
+
this.state === f.InEntity && (this.entityDecoder.end(), this.state = this.baseState), this.handleTrailingData(), this.cbs.onend();
|
|
1126
1144
|
}
|
|
1127
1145
|
/** Handle any trailing data. */
|
|
1128
1146
|
handleTrailingData() {
|
|
1129
1147
|
const u = this.buffer.length + this.offset;
|
|
1130
|
-
this.sectionStart >= u || (this.state ===
|
|
1148
|
+
this.sectionStart >= u || (this.state === f.InCommentLike ? this.currentSequence === N.CdataEnd ? this.cbs.oncdata(this.sectionStart, u, 0) : this.cbs.oncomment(this.sectionStart, u, 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, u));
|
|
1131
1149
|
}
|
|
1132
1150
|
emitCodePoint(u, t) {
|
|
1133
|
-
this.baseState !==
|
|
1151
|
+
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(u)) : (this.sectionStart < this.entityStart && this.cbs.ontext(this.sectionStart, this.entityStart), this.sectionStart = this.entityStart + t, this.index = this.sectionStart - 1, this.cbs.ontextentity(u, this.sectionStart));
|
|
1134
1152
|
}
|
|
1135
1153
|
}
|
|
1136
1154
|
const X = /* @__PURE__ */ new Set([
|
|
@@ -1189,7 +1207,7 @@ const X = /* @__PURE__ */ new Set([
|
|
|
1189
1207
|
["rp", Nu],
|
|
1190
1208
|
["tbody", ku],
|
|
1191
1209
|
["tfoot", ku]
|
|
1192
|
-
]),
|
|
1210
|
+
]), Ke = /* @__PURE__ */ new Set([
|
|
1193
1211
|
"area",
|
|
1194
1212
|
"base",
|
|
1195
1213
|
"basefont",
|
|
@@ -1219,11 +1237,11 @@ const X = /* @__PURE__ */ new Set([
|
|
|
1219
1237
|
"foreignobject",
|
|
1220
1238
|
"desc",
|
|
1221
1239
|
"title"
|
|
1222
|
-
]),
|
|
1223
|
-
class
|
|
1240
|
+
]), Ye = /\s|\//;
|
|
1241
|
+
class ut {
|
|
1224
1242
|
constructor(u, t = {}) {
|
|
1225
|
-
var a, r, n,
|
|
1226
|
-
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 = u ?? {}, 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 ((
|
|
1243
|
+
var a, r, n, s, i, o;
|
|
1244
|
+
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 = u ?? {}, 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 : Ze)(this.options, this), this.foreignContext = [!this.htmlMode], (o = (i = this.cbs).onparserinit) === null || o === void 0 || o.call(i, this);
|
|
1227
1245
|
}
|
|
1228
1246
|
// Tokenizer event handlers
|
|
1229
1247
|
/** @internal */
|
|
@@ -1242,7 +1260,7 @@ class Ye {
|
|
|
1242
1260
|
* to specify your own additional void elements.
|
|
1243
1261
|
*/
|
|
1244
1262
|
isVoidElement(u) {
|
|
1245
|
-
return this.htmlMode &&
|
|
1263
|
+
return this.htmlMode && Ke.has(u);
|
|
1246
1264
|
}
|
|
1247
1265
|
/** @internal */
|
|
1248
1266
|
onopentagname(u, t) {
|
|
@@ -1253,11 +1271,11 @@ class Ye {
|
|
|
1253
1271
|
emitOpenTag(u) {
|
|
1254
1272
|
var t, a, r, n;
|
|
1255
1273
|
this.openTagStart = this.startIndex, this.tagname = u;
|
|
1256
|
-
const
|
|
1257
|
-
if (
|
|
1258
|
-
for (; this.stack.length > 0 &&
|
|
1259
|
-
const
|
|
1260
|
-
(a = (t = this.cbs).onclosetag) === null || a === void 0 || a.call(t,
|
|
1274
|
+
const s = this.htmlMode && Qe.get(u);
|
|
1275
|
+
if (s)
|
|
1276
|
+
for (; this.stack.length > 0 && s.has(this.stack[0]); ) {
|
|
1277
|
+
const i = this.stack.shift();
|
|
1278
|
+
(a = (t = this.cbs).onclosetag) === null || a === void 0 || a.call(t, i, !0);
|
|
1261
1279
|
}
|
|
1262
1280
|
this.isVoidElement(u) || (this.stack.unshift(u), this.htmlMode && (ju.has(u) ? this.foreignContext.unshift(!0) : Vu.has(u) && this.foreignContext.unshift(!1))), (n = (r = this.cbs).onopentagname) === null || n === void 0 || n.call(r, u), this.cbs.onopentag && (this.attribs = {});
|
|
1263
1281
|
}
|
|
@@ -1271,19 +1289,19 @@ class Ye {
|
|
|
1271
1289
|
}
|
|
1272
1290
|
/** @internal */
|
|
1273
1291
|
onclosetag(u, t) {
|
|
1274
|
-
var a, r, n,
|
|
1292
|
+
var a, r, n, s, i, o, c, d;
|
|
1275
1293
|
this.endIndex = t;
|
|
1276
|
-
let
|
|
1277
|
-
if (this.lowerCaseTagNames && (
|
|
1278
|
-
this.htmlMode &&
|
|
1294
|
+
let l = this.getSlice(u, t);
|
|
1295
|
+
if (this.lowerCaseTagNames && (l = l.toLowerCase()), this.htmlMode && (ju.has(l) || Vu.has(l)) && this.foreignContext.shift(), this.isVoidElement(l))
|
|
1296
|
+
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));
|
|
1279
1297
|
else {
|
|
1280
|
-
const p = this.stack.indexOf(
|
|
1298
|
+
const p = this.stack.indexOf(l);
|
|
1281
1299
|
if (p !== -1)
|
|
1282
1300
|
for (let b = 0; b <= p; b++) {
|
|
1283
1301
|
const h = this.stack.shift();
|
|
1284
1302
|
(r = (a = this.cbs).onclosetag) === null || r === void 0 || r.call(a, h, b !== p);
|
|
1285
1303
|
}
|
|
1286
|
-
else this.htmlMode &&
|
|
1304
|
+
else this.htmlMode && l === "p" && (this.emitOpenTag("p"), this.closeCurrentTag(!0));
|
|
1287
1305
|
}
|
|
1288
1306
|
this.startIndex = t + 1;
|
|
1289
1307
|
}
|
|
@@ -1313,10 +1331,10 @@ class Ye {
|
|
|
1313
1331
|
/** @internal */
|
|
1314
1332
|
onattribend(u, t) {
|
|
1315
1333
|
var a, r;
|
|
1316
|
-
this.endIndex = t, (r = (a = this.cbs).onattribute) === null || r === void 0 || r.call(a, this.attribname, this.attribvalue, u ===
|
|
1334
|
+
this.endIndex = t, (r = (a = this.cbs).onattribute) === null || r === void 0 || r.call(a, this.attribname, this.attribvalue, u === O.Double ? '"' : u === O.Single ? "'" : u === O.NoValue ? void 0 : null), this.attribs && !Object.prototype.hasOwnProperty.call(this.attribs, this.attribname) && (this.attribs[this.attribname] = this.attribvalue), this.attribvalue = "";
|
|
1317
1335
|
}
|
|
1318
1336
|
getInstructionName(u) {
|
|
1319
|
-
const t = u.search(
|
|
1337
|
+
const t = u.search(Ye);
|
|
1320
1338
|
let a = t < 0 ? u : u.substr(0, t);
|
|
1321
1339
|
return this.lowerCaseTagNames && (a = a.toLowerCase()), a;
|
|
1322
1340
|
}
|
|
@@ -1342,15 +1360,15 @@ class Ye {
|
|
|
1342
1360
|
}
|
|
1343
1361
|
/** @internal */
|
|
1344
1362
|
oncomment(u, t, a) {
|
|
1345
|
-
var r, n,
|
|
1346
|
-
this.endIndex = t, (n = (r = this.cbs).oncomment) === null || n === void 0 || n.call(r, this.getSlice(u, t - a)), (
|
|
1363
|
+
var r, n, s, i;
|
|
1364
|
+
this.endIndex = t, (n = (r = this.cbs).oncomment) === null || n === void 0 || n.call(r, this.getSlice(u, t - a)), (i = (s = this.cbs).oncommentend) === null || i === void 0 || i.call(s), this.startIndex = t + 1;
|
|
1347
1365
|
}
|
|
1348
1366
|
/** @internal */
|
|
1349
1367
|
oncdata(u, t, a) {
|
|
1350
|
-
var r, n,
|
|
1368
|
+
var r, n, s, i, o, c, d, l, p, b;
|
|
1351
1369
|
this.endIndex = t;
|
|
1352
1370
|
const h = this.getSlice(u, t - a);
|
|
1353
|
-
!this.htmlMode || this.options.recognizeCDATA ? ((n = (r = this.cbs).oncdatastart) === null || n === void 0 || n.call(r), (
|
|
1371
|
+
!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, h), (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[${h}]]`), (b = (p = this.cbs).oncommentend) === null || b === void 0 || b.call(p)), this.startIndex = t + 1;
|
|
1354
1372
|
}
|
|
1355
1373
|
/** @internal */
|
|
1356
1374
|
onend() {
|
|
@@ -1451,15 +1469,15 @@ class Ye {
|
|
|
1451
1469
|
function qu(e, u = "web") {
|
|
1452
1470
|
const t = { name: "", children: [] }, a = [t];
|
|
1453
1471
|
let r = "";
|
|
1454
|
-
const n = new
|
|
1472
|
+
const n = new ut(
|
|
1455
1473
|
{
|
|
1456
|
-
onopentag: (
|
|
1474
|
+
onopentag: (s, i, o) => {
|
|
1457
1475
|
const c = a[a.length - 1];
|
|
1458
1476
|
r.trim() && (Array.isArray(c.children) ? c.children.push({
|
|
1459
1477
|
name: "span",
|
|
1460
1478
|
children: r.trim()
|
|
1461
1479
|
}) : c.children = r.trim(), r = "");
|
|
1462
|
-
const d = Object.entries(
|
|
1480
|
+
const d = Object.entries(i || {}).reduce(
|
|
1463
1481
|
(p, b) => {
|
|
1464
1482
|
let [h = "", S = ""] = b;
|
|
1465
1483
|
return h && (p[h] = S), p;
|
|
@@ -1467,121 +1485,121 @@ function qu(e, u = "web") {
|
|
|
1467
1485
|
{}
|
|
1468
1486
|
);
|
|
1469
1487
|
d.style && (d.style = Xu(d.style));
|
|
1470
|
-
const
|
|
1471
|
-
name: zu(
|
|
1488
|
+
const l = {
|
|
1489
|
+
name: zu(s, u),
|
|
1472
1490
|
props: d
|
|
1473
1491
|
};
|
|
1474
|
-
Array.isArray(c.children) ? c.children.push(
|
|
1492
|
+
Array.isArray(c.children) ? c.children.push(l) : c.children ? c.children = [
|
|
1475
1493
|
{
|
|
1476
1494
|
name: "span",
|
|
1477
1495
|
children: c.children
|
|
1478
1496
|
},
|
|
1479
|
-
|
|
1480
|
-
] : c.children = [
|
|
1497
|
+
l
|
|
1498
|
+
] : c.children = [l], o || a.push(l);
|
|
1481
1499
|
},
|
|
1482
|
-
ontext: (
|
|
1483
|
-
const
|
|
1484
|
-
|
|
1500
|
+
ontext: (s) => {
|
|
1501
|
+
const i = s.trim();
|
|
1502
|
+
i && i !== '"' && (r += i);
|
|
1485
1503
|
},
|
|
1486
1504
|
onclosetag: () => {
|
|
1487
|
-
const
|
|
1488
|
-
r.trim() && (Array.isArray(
|
|
1505
|
+
const s = a.pop();
|
|
1506
|
+
r.trim() && (Array.isArray(s?.children) ? s.children.push({
|
|
1489
1507
|
name: "span",
|
|
1490
1508
|
children: r.trim()
|
|
1491
|
-
}) :
|
|
1509
|
+
}) : s && (s.children = r.trim()), r = "");
|
|
1492
1510
|
}
|
|
1493
1511
|
},
|
|
1494
1512
|
{ decodeEntities: !0 }
|
|
1495
1513
|
);
|
|
1496
1514
|
return n.write(e.replace(/\\"/g, '"')), n.end(), t.children || [];
|
|
1497
1515
|
}
|
|
1498
|
-
function
|
|
1516
|
+
function et(e, u) {
|
|
1499
1517
|
const a = {
|
|
1500
|
-
imports:
|
|
1518
|
+
imports: tt(e),
|
|
1501
1519
|
emits: [],
|
|
1502
1520
|
errors: []
|
|
1503
1521
|
}, r = B(e);
|
|
1504
1522
|
return J(r, {
|
|
1505
1523
|
ExportDefaultDeclaration(n) {
|
|
1506
|
-
const
|
|
1507
|
-
if (
|
|
1508
|
-
const
|
|
1509
|
-
if (
|
|
1510
|
-
const o =
|
|
1511
|
-
(
|
|
1512
|
-
), c =
|
|
1513
|
-
(
|
|
1524
|
+
const s = n.node.declaration;
|
|
1525
|
+
if (s.type !== "CallExpression") return;
|
|
1526
|
+
const i = s.arguments[0];
|
|
1527
|
+
if (i?.type !== "ObjectExpression") return;
|
|
1528
|
+
const o = i.properties.filter(
|
|
1529
|
+
(l) => l.type === "ObjectProperty"
|
|
1530
|
+
), c = i.properties.filter(
|
|
1531
|
+
(l) => l.type == "ObjectMethod"
|
|
1514
1532
|
), d = o.find(
|
|
1515
|
-
(
|
|
1533
|
+
(l) => l.key.name === "computed"
|
|
1516
1534
|
);
|
|
1517
|
-
d && (a.computed =
|
|
1518
|
-
for (const
|
|
1519
|
-
switch (
|
|
1535
|
+
d && (a.computed = Qu(d.value), a.watchers = ct(d.value));
|
|
1536
|
+
for (const l of o)
|
|
1537
|
+
switch (l.key.name) {
|
|
1520
1538
|
case "name":
|
|
1521
|
-
a.name =
|
|
1539
|
+
a.name = l.value.value;
|
|
1522
1540
|
break;
|
|
1523
1541
|
case "methods":
|
|
1524
|
-
a.handlers = it(
|
|
1525
|
-
|
|
1542
|
+
a.handlers = it(l.value), a.methods = st(l.value), a.dataSources = nt(
|
|
1543
|
+
l.value,
|
|
1526
1544
|
u
|
|
1527
1545
|
);
|
|
1528
1546
|
break;
|
|
1529
1547
|
case "watch":
|
|
1530
|
-
a.watch =
|
|
1531
|
-
|
|
1548
|
+
a.watch = ot(
|
|
1549
|
+
l.value,
|
|
1532
1550
|
a.watchers
|
|
1533
1551
|
);
|
|
1534
1552
|
break;
|
|
1535
1553
|
case "props":
|
|
1536
|
-
a.props = ft(
|
|
1554
|
+
a.props = ft(l.value);
|
|
1537
1555
|
break;
|
|
1538
1556
|
case "inject":
|
|
1539
|
-
a.inject =
|
|
1557
|
+
a.inject = pt(l.value);
|
|
1540
1558
|
break;
|
|
1541
1559
|
case "expose":
|
|
1542
|
-
a.expose =
|
|
1560
|
+
a.expose = ht(l.value);
|
|
1543
1561
|
break;
|
|
1544
1562
|
case "directives":
|
|
1545
|
-
a.directives =
|
|
1563
|
+
a.directives = xt(l.value);
|
|
1546
1564
|
break;
|
|
1547
1565
|
}
|
|
1548
|
-
for (const
|
|
1549
|
-
switch (
|
|
1566
|
+
for (const l of c)
|
|
1567
|
+
switch (l.key.name) {
|
|
1550
1568
|
case "setup":
|
|
1551
|
-
a.state =
|
|
1569
|
+
a.state = rt(l.body);
|
|
1552
1570
|
break;
|
|
1553
1571
|
}
|
|
1554
|
-
a.lifeCycles =
|
|
1572
|
+
a.lifeCycles = dt(c);
|
|
1555
1573
|
},
|
|
1556
1574
|
CallExpression(n) {
|
|
1557
|
-
const
|
|
1558
|
-
if (
|
|
1559
|
-
for (let
|
|
1560
|
-
a.emits?.find((c) => c.name ===
|
|
1575
|
+
const s = bt(n.node);
|
|
1576
|
+
if (s.length)
|
|
1577
|
+
for (let i of s)
|
|
1578
|
+
a.emits?.find((c) => c.name === i.name) || a.emits?.push(i);
|
|
1561
1579
|
}
|
|
1562
1580
|
}), a;
|
|
1563
1581
|
}
|
|
1564
|
-
function
|
|
1582
|
+
function tt(e) {
|
|
1565
1583
|
const u = /import\s+{(.+?)}\s+from\s+['"](.+?)['"]/g, t = /import\s+(.+?)\s+from\s+['"](.+?)['"]/g, a = /^{(.+?)}$/, r = [];
|
|
1566
1584
|
let n;
|
|
1567
|
-
const
|
|
1568
|
-
for (; (n = u.exec(
|
|
1569
|
-
const
|
|
1585
|
+
const s = e.replace(/\n/g, " ");
|
|
1586
|
+
for (; (n = u.exec(s)) !== null; ) {
|
|
1587
|
+
const i = n[2] === "@element-plus/icons-vue" ? "@vtj/icons" : n[2];
|
|
1570
1588
|
r.push({
|
|
1571
|
-
from:
|
|
1589
|
+
from: i,
|
|
1572
1590
|
imports: n[1].split(",").map((o) => o.trim())
|
|
1573
1591
|
});
|
|
1574
1592
|
}
|
|
1575
|
-
for (; (n = t.exec(
|
|
1576
|
-
const
|
|
1577
|
-
|
|
1593
|
+
for (; (n = t.exec(s)) !== null; ) {
|
|
1594
|
+
const i = n[1], o = n[2];
|
|
1595
|
+
i && !a.test(i) && r.push({
|
|
1578
1596
|
from: o,
|
|
1579
|
-
imports:
|
|
1597
|
+
imports: i
|
|
1580
1598
|
});
|
|
1581
1599
|
}
|
|
1582
1600
|
return r;
|
|
1583
1601
|
}
|
|
1584
|
-
function
|
|
1602
|
+
function at(e) {
|
|
1585
1603
|
for (const u of e.body)
|
|
1586
1604
|
if (u.type === "VariableDeclaration" && u.kind == "const") {
|
|
1587
1605
|
const { id: t, init: a } = u.declarations[0];
|
|
@@ -1590,47 +1608,47 @@ function tt(e) {
|
|
|
1590
1608
|
}
|
|
1591
1609
|
return null;
|
|
1592
1610
|
}
|
|
1593
|
-
function
|
|
1594
|
-
const u =
|
|
1611
|
+
function rt(e) {
|
|
1612
|
+
const u = at(e);
|
|
1595
1613
|
if (!u) return {};
|
|
1596
1614
|
const t = {};
|
|
1597
1615
|
for (const a of u.properties)
|
|
1598
1616
|
if (a.type === "ObjectProperty") {
|
|
1599
1617
|
const { key: r, value: n } = a;
|
|
1600
1618
|
if (r.type === "Identifier") {
|
|
1601
|
-
const
|
|
1602
|
-
t[r.name] = T(
|
|
1619
|
+
const s = A(n);
|
|
1620
|
+
t[r.name] = T(s);
|
|
1603
1621
|
}
|
|
1604
1622
|
} else if (a.type === "ObjectMethod") {
|
|
1605
|
-
const { key: r, params: n, body:
|
|
1623
|
+
const { key: r, params: n, body: s } = a;
|
|
1606
1624
|
if (r.type === "Identifier") {
|
|
1607
|
-
const
|
|
1625
|
+
const i = A(s), c = `(${n.map((d) => d.name || "none").join(",")}) => ${i}`;
|
|
1608
1626
|
t[r.name] = T(c);
|
|
1609
1627
|
}
|
|
1610
1628
|
}
|
|
1611
1629
|
return t;
|
|
1612
1630
|
}
|
|
1613
1631
|
function z(e) {
|
|
1614
|
-
const { key: u, async: t, params: a, body: r } = e, n = a?.map((
|
|
1632
|
+
const { key: u, async: t, params: a, body: r } = e, 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(", ");
|
|
1615
1633
|
if (u.type === "Identifier") {
|
|
1616
|
-
const
|
|
1617
|
-
let
|
|
1618
|
-
r && (
|
|
1634
|
+
const s = u.name;
|
|
1635
|
+
let i = "{}";
|
|
1636
|
+
r && (i = A(r) || "{}");
|
|
1619
1637
|
const o = e.value;
|
|
1620
1638
|
if (o && o.type === "CallExpression") {
|
|
1621
1639
|
let b = A(o) || "";
|
|
1622
|
-
b = b.replace("function () {", "() => {"),
|
|
1640
|
+
b = b.replace("function () {", "() => {"), i = `{ return (${b})}`;
|
|
1623
1641
|
}
|
|
1624
|
-
const d = `${t ? "async " : ""}(${n}) => ${
|
|
1642
|
+
const d = `${t ? "async " : ""}(${n}) => ${i}`, l = s.startsWith("watcher_");
|
|
1625
1643
|
return {
|
|
1626
|
-
id:
|
|
1627
|
-
name:
|
|
1628
|
-
watcher:
|
|
1644
|
+
id: l ? s.replace("watcher_", "") : "",
|
|
1645
|
+
name: s,
|
|
1646
|
+
watcher: l,
|
|
1629
1647
|
exp: C(d)
|
|
1630
1648
|
};
|
|
1631
1649
|
}
|
|
1632
1650
|
}
|
|
1633
|
-
function
|
|
1651
|
+
function Qu(e) {
|
|
1634
1652
|
if (!e) return {};
|
|
1635
1653
|
const u = {};
|
|
1636
1654
|
for (const t of e.properties) {
|
|
@@ -1639,29 +1657,29 @@ function Zu(e) {
|
|
|
1639
1657
|
}
|
|
1640
1658
|
return u;
|
|
1641
1659
|
}
|
|
1642
|
-
function
|
|
1660
|
+
function nt(e, u) {
|
|
1643
1661
|
if (!e) return {};
|
|
1644
1662
|
const t = {}, a = /apis\['([\w]*)'\]/, r = (n) => {
|
|
1645
|
-
const
|
|
1646
|
-
if (
|
|
1647
|
-
let
|
|
1648
|
-
for (; o < n.length &&
|
|
1663
|
+
const s = n.indexOf(".then(");
|
|
1664
|
+
if (s === -1) return null;
|
|
1665
|
+
let i = 1, o = s + 6;
|
|
1666
|
+
for (; o < n.length && i > 0; ) {
|
|
1649
1667
|
const c = n[o];
|
|
1650
|
-
c === "(" ?
|
|
1668
|
+
c === "(" ? i++ : c === ")" && i--, o++;
|
|
1651
1669
|
}
|
|
1652
|
-
return n.substring(
|
|
1670
|
+
return n.substring(s + 6, o - 1).trim();
|
|
1653
1671
|
};
|
|
1654
1672
|
for (const n of e.properties) {
|
|
1655
|
-
const
|
|
1656
|
-
if (
|
|
1657
|
-
const
|
|
1658
|
-
if (!
|
|
1659
|
-
const p =
|
|
1673
|
+
const s = z(n), i = n.body.body?.[0], o = (i?.leadingComments?.[0].value || "").trim(), c = Zu(o);
|
|
1674
|
+
if (s && s.exp.value.includes("this.provider.apis")) {
|
|
1675
|
+
const l = (s.exp.value.match(a) || [])[1];
|
|
1676
|
+
if (!l) continue;
|
|
1677
|
+
const p = mt(u, l);
|
|
1660
1678
|
if (!p) continue;
|
|
1661
|
-
const b = r(
|
|
1662
|
-
t[
|
|
1663
|
-
ref:
|
|
1664
|
-
name:
|
|
1679
|
+
const b = r(s.exp.value);
|
|
1680
|
+
t[s.name] = {
|
|
1681
|
+
ref: l,
|
|
1682
|
+
name: s.name,
|
|
1665
1683
|
test: c?.test || {
|
|
1666
1684
|
type: "JSFunction",
|
|
1667
1685
|
value: `() => this.runApi({
|
|
@@ -1679,11 +1697,11 @@ function rt(e, u) {
|
|
|
1679
1697
|
mockTemplate: p.mockTemplate
|
|
1680
1698
|
};
|
|
1681
1699
|
}
|
|
1682
|
-
if (
|
|
1683
|
-
const d =
|
|
1684
|
-
t[
|
|
1700
|
+
if (s && s.exp.value.includes("this.provider.createMock")) {
|
|
1701
|
+
const d = i?.declarations?.[0]?.init?.arguments?.[0], l = r(s.exp.value);
|
|
1702
|
+
t[s.name] = {
|
|
1685
1703
|
ref: "",
|
|
1686
|
-
name:
|
|
1704
|
+
name: s.name,
|
|
1687
1705
|
test: c?.test || {
|
|
1688
1706
|
type: "JSFunction",
|
|
1689
1707
|
value: `() => this.runApi({
|
|
@@ -1694,7 +1712,7 @@ function rt(e, u) {
|
|
|
1694
1712
|
label: c?.label || "",
|
|
1695
1713
|
transform: c?.transform || {
|
|
1696
1714
|
type: "JSFunction",
|
|
1697
|
-
value:
|
|
1715
|
+
value: l || `(res) => {
|
|
1698
1716
|
return res;
|
|
1699
1717
|
}`
|
|
1700
1718
|
},
|
|
@@ -1707,8 +1725,8 @@ function rt(e, u) {
|
|
|
1707
1725
|
}
|
|
1708
1726
|
return t;
|
|
1709
1727
|
}
|
|
1710
|
-
function
|
|
1711
|
-
const u =
|
|
1728
|
+
function st(e) {
|
|
1729
|
+
const u = Qu(e), t = /\_([\w]{5,})$/, a = {};
|
|
1712
1730
|
for (const r of Object.keys(u))
|
|
1713
1731
|
t.test(r) || (a[r] = u[r]);
|
|
1714
1732
|
return a;
|
|
@@ -1733,7 +1751,7 @@ function it(e) {
|
|
|
1733
1751
|
}
|
|
1734
1752
|
return u;
|
|
1735
1753
|
}
|
|
1736
|
-
function
|
|
1754
|
+
function ct(e) {
|
|
1737
1755
|
if (!e) return {};
|
|
1738
1756
|
const u = {};
|
|
1739
1757
|
for (const t of e.properties) {
|
|
@@ -1757,56 +1775,56 @@ function Du(e, u) {
|
|
|
1757
1775
|
if (t)
|
|
1758
1776
|
return z(t)?.exp;
|
|
1759
1777
|
}
|
|
1760
|
-
function
|
|
1778
|
+
function ot(e, u = {}) {
|
|
1761
1779
|
const t = [];
|
|
1762
1780
|
for (const a of e.properties) {
|
|
1763
|
-
const { key: r, value: n } = a,
|
|
1764
|
-
if (u[
|
|
1765
|
-
const
|
|
1781
|
+
const { key: r, value: n } = a, s = r.value || r.name || "";
|
|
1782
|
+
if (u[s]) {
|
|
1783
|
+
const i = n.properties;
|
|
1766
1784
|
t.push({
|
|
1767
|
-
id:
|
|
1768
|
-
source: u[
|
|
1769
|
-
deep: Y(
|
|
1770
|
-
immediate: Y(
|
|
1771
|
-
handler: Du(
|
|
1785
|
+
id: s.replace("watcher_", ""),
|
|
1786
|
+
source: u[s],
|
|
1787
|
+
deep: Y(i, "deep"),
|
|
1788
|
+
immediate: Y(i, "immediate"),
|
|
1789
|
+
handler: Du(i, "handler")
|
|
1772
1790
|
});
|
|
1773
1791
|
} else if (a.type === "ObjectMethod" && t.push({
|
|
1774
|
-
id:
|
|
1792
|
+
id: nu(),
|
|
1775
1793
|
source: {
|
|
1776
1794
|
type: "JSFunction",
|
|
1777
|
-
value: `() => { return this.${
|
|
1795
|
+
value: `() => { return this.${s}; }`
|
|
1778
1796
|
},
|
|
1779
1797
|
deep: !1,
|
|
1780
1798
|
immediate: !1,
|
|
1781
1799
|
handler: z(a)?.exp
|
|
1782
1800
|
}), a.type === "ObjectProperty") {
|
|
1783
|
-
const
|
|
1801
|
+
const i = n.properties;
|
|
1784
1802
|
t.push({
|
|
1785
|
-
id:
|
|
1803
|
+
id: nu(),
|
|
1786
1804
|
source: {
|
|
1787
1805
|
type: "JSFunction",
|
|
1788
|
-
value: `() => { return this.${
|
|
1806
|
+
value: `() => { return this.${s}; }`
|
|
1789
1807
|
},
|
|
1790
|
-
deep: Y(
|
|
1791
|
-
immediate: Y(
|
|
1792
|
-
handler: Du(
|
|
1808
|
+
deep: Y(i, "deep"),
|
|
1809
|
+
immediate: Y(i, "immediate"),
|
|
1810
|
+
handler: Du(i, "handler")
|
|
1793
1811
|
});
|
|
1794
1812
|
}
|
|
1795
1813
|
}
|
|
1796
1814
|
return t;
|
|
1797
1815
|
}
|
|
1798
|
-
function
|
|
1816
|
+
function dt(e) {
|
|
1799
1817
|
const u = {};
|
|
1800
1818
|
for (const t of e) {
|
|
1801
1819
|
const a = t.key.name;
|
|
1802
|
-
if (
|
|
1820
|
+
if (Re.includes(a)) {
|
|
1803
1821
|
const r = z(t);
|
|
1804
1822
|
r && (u[r.name] = r.exp);
|
|
1805
1823
|
}
|
|
1806
1824
|
}
|
|
1807
1825
|
return u;
|
|
1808
1826
|
}
|
|
1809
|
-
function
|
|
1827
|
+
function lt(e) {
|
|
1810
1828
|
const u = e?.find(
|
|
1811
1829
|
(t) => t.key?.name === "type"
|
|
1812
1830
|
);
|
|
@@ -1828,12 +1846,12 @@ function ft(e) {
|
|
|
1828
1846
|
return {
|
|
1829
1847
|
name: a.name,
|
|
1830
1848
|
required: Y(n, "required"),
|
|
1831
|
-
type:
|
|
1849
|
+
type: lt(n),
|
|
1832
1850
|
default: Yu(n)
|
|
1833
1851
|
};
|
|
1834
1852
|
})), u;
|
|
1835
1853
|
}
|
|
1836
|
-
function
|
|
1854
|
+
function bt(e) {
|
|
1837
1855
|
const u = [];
|
|
1838
1856
|
if (e.callee.type === "MemberExpression" && e.callee.property?.name === "$emit") {
|
|
1839
1857
|
const [a, ...r] = (e.arguments || []).map(
|
|
@@ -1846,24 +1864,24 @@ function lt(e) {
|
|
|
1846
1864
|
}
|
|
1847
1865
|
return u;
|
|
1848
1866
|
}
|
|
1849
|
-
function
|
|
1867
|
+
function pt(e) {
|
|
1850
1868
|
let u = [];
|
|
1851
1869
|
return e.type === "ObjectExpression" && (u = e.properties?.map((t) => {
|
|
1852
|
-
const { key: a, value: r } = t, n = r.properties,
|
|
1870
|
+
const { key: a, value: r } = t, n = r.properties, s = a.name, i = Ku(n, "from"), o = Yu(n);
|
|
1853
1871
|
return {
|
|
1854
|
-
name:
|
|
1855
|
-
from:
|
|
1872
|
+
name: s,
|
|
1873
|
+
from: i || s,
|
|
1856
1874
|
default: o
|
|
1857
1875
|
};
|
|
1858
1876
|
})), u;
|
|
1859
1877
|
}
|
|
1860
|
-
function
|
|
1878
|
+
function ht(e) {
|
|
1861
1879
|
return e && e.elements ? e.elements.map((u) => u?.type === "StringLiteral" ? u.value : "").filter((u) => !!u) : [];
|
|
1862
1880
|
}
|
|
1863
|
-
function
|
|
1881
|
+
function mt(e, u) {
|
|
1864
1882
|
return (e.apis || []).find((t) => t.id === u || t.name === u);
|
|
1865
1883
|
}
|
|
1866
|
-
function
|
|
1884
|
+
function xt(e) {
|
|
1867
1885
|
if (!e?.properties) return {};
|
|
1868
1886
|
const u = {};
|
|
1869
1887
|
for (const t of e.properties) {
|
|
@@ -1875,27 +1893,27 @@ function mt(e) {
|
|
|
1875
1893
|
}
|
|
1876
1894
|
return u;
|
|
1877
1895
|
}
|
|
1878
|
-
let hu = [], iu = {}, ue = {}, ee = {}, te = {},
|
|
1896
|
+
let hu = [], iu = {}, ue = {}, ee = {}, te = {}, cu = "web", ae = [];
|
|
1879
1897
|
function re(e, u, t = "", a) {
|
|
1880
|
-
hu = [], iu = {}, ue = a?.handlers || {}, te = a?.styles || {},
|
|
1898
|
+
hu = [], iu = {}, ue = a?.handlers || {}, te = a?.styles || {}, cu = a?.platform || "web", ae = a?.imports || [], ee = a?.directives || {};
|
|
1881
1899
|
const n = Gu({
|
|
1882
1900
|
id: e,
|
|
1883
1901
|
filename: u,
|
|
1884
1902
|
source: t,
|
|
1885
1903
|
isProd: !0,
|
|
1886
1904
|
slotted: !0
|
|
1887
|
-
}).ast?.children || [],
|
|
1888
|
-
for (const
|
|
1889
|
-
const o =
|
|
1890
|
-
Array.isArray(o) ?
|
|
1905
|
+
}).ast?.children || [], s = [];
|
|
1906
|
+
for (const i of n) {
|
|
1907
|
+
const o = Z(i);
|
|
1908
|
+
Array.isArray(o) ? s.push(...o) : s.push(o);
|
|
1891
1909
|
}
|
|
1892
1910
|
return {
|
|
1893
|
-
nodes:
|
|
1911
|
+
nodes: s.filter((i) => !!i),
|
|
1894
1912
|
slots: hu,
|
|
1895
1913
|
context: iu
|
|
1896
1914
|
};
|
|
1897
1915
|
}
|
|
1898
|
-
function
|
|
1916
|
+
function gt(e) {
|
|
1899
1917
|
if (e.name === "slot") {
|
|
1900
1918
|
let u = "default";
|
|
1901
1919
|
const t = [];
|
|
@@ -1907,13 +1925,13 @@ function xt(e) {
|
|
|
1907
1925
|
});
|
|
1908
1926
|
}
|
|
1909
1927
|
}
|
|
1910
|
-
function
|
|
1928
|
+
function yt(e) {
|
|
1911
1929
|
const u = {};
|
|
1912
1930
|
for (const t of e) {
|
|
1913
1931
|
if (t.type === v.ATTRIBUTE)
|
|
1914
1932
|
if (t.name === "class") {
|
|
1915
|
-
const a = t.value?.content || "", r = /[\w]+_[\w]{5,}/, n = a.match(r)?.[0] || "",
|
|
1916
|
-
|
|
1933
|
+
const a = t.value?.content || "", r = /[\w]+_[\w]{5,}/, n = a.match(r)?.[0] || "", s = a.split(" ").filter((o) => o !== n), i = te[`.${n}`];
|
|
1934
|
+
i && (u.style = i), s.length && (u.class = s.join(" "));
|
|
1917
1935
|
} else if (t.name === "style") {
|
|
1918
1936
|
const a = t.value?.content || "";
|
|
1919
1937
|
a && (u.style = Xu(a));
|
|
@@ -1921,7 +1939,7 @@ function gt(e) {
|
|
|
1921
1939
|
u[t.name] = t.value?.content || "";
|
|
1922
1940
|
if (t.type === v.DIRECTIVE && t.name === "bind" && (t.exp?.type === v.SIMPLE_EXPRESSION && t.arg?.type === v.SIMPLE_EXPRESSION && (u[t.arg.content] = T(`(${t.exp.content})`)), t.exp?.type === v.COMPOUND_EXPRESSION && t.arg?.type === v.SIMPLE_EXPRESSION))
|
|
1923
1941
|
if (t.arg.content === "class" && u.class) {
|
|
1924
|
-
const a = t.exp.ast.type, r =
|
|
1942
|
+
const a = t.exp.ast.type, r = Pe(
|
|
1925
1943
|
u.class,
|
|
1926
1944
|
t.exp.loc.source,
|
|
1927
1945
|
a
|
|
@@ -1934,13 +1952,13 @@ function gt(e) {
|
|
|
1934
1952
|
}
|
|
1935
1953
|
return u;
|
|
1936
1954
|
}
|
|
1937
|
-
function
|
|
1955
|
+
function St(e = {}) {
|
|
1938
1956
|
const u = {};
|
|
1939
1957
|
for (const [t, a] of Object.entries(e))
|
|
1940
1958
|
u[t === "tap" ? "click" : t] = a;
|
|
1941
1959
|
return u;
|
|
1942
1960
|
}
|
|
1943
|
-
function
|
|
1961
|
+
function vt(e, u = {}) {
|
|
1944
1962
|
const t = {};
|
|
1945
1963
|
for (const a of e)
|
|
1946
1964
|
if (a.type === v.DIRECTIVE && a.name === "on" && a.arg?.type === v.SIMPLE_EXPRESSION) {
|
|
@@ -1950,32 +1968,44 @@ function St(e, u = {}) {
|
|
|
1950
1968
|
);
|
|
1951
1969
|
let n = a.exp?.loc.source || "";
|
|
1952
1970
|
n || (n = "() => {}");
|
|
1953
|
-
const
|
|
1954
|
-
if (
|
|
1971
|
+
const s = new RegExp(`${a.arg.content}_[\\w]{5,}`), i = n.match(s)?.[0] || "", o = u[i];
|
|
1972
|
+
if (i && o)
|
|
1955
1973
|
t[a.arg.content] = {
|
|
1956
1974
|
name: a.arg.content,
|
|
1957
1975
|
handler: o,
|
|
1958
1976
|
modifiers: r
|
|
1959
1977
|
};
|
|
1960
1978
|
else {
|
|
1961
|
-
const c = a.exp?.ast?.type === "CallExpression";
|
|
1979
|
+
const c = a.exp?.ast, d = c?.type, l = d === "CallExpression", p = d === "ArrowFunctionExpression", b = d === "FunctionExpression", h = d === "Identifier", S = d === "MemberExpression", E = !c && /^[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*$/.test(n);
|
|
1980
|
+
let m;
|
|
1981
|
+
if (l)
|
|
1982
|
+
m = T(n);
|
|
1983
|
+
else if (h || S || E)
|
|
1984
|
+
m = C(n);
|
|
1985
|
+
else if (p || b) {
|
|
1986
|
+
const g = c?.body, x = c?.params;
|
|
1987
|
+
g && g.type === "Identifier" && (!x || x.length === 0) ? m = C(g.name) : m = C(n);
|
|
1988
|
+
} else {
|
|
1989
|
+
const x = /\$event\b/.test(n) ? "($event) => " : "() => ";
|
|
1990
|
+
m = C(`${x}${n}`);
|
|
1991
|
+
}
|
|
1962
1992
|
t[a.arg.content] = {
|
|
1963
1993
|
name: a.arg.content,
|
|
1964
|
-
handler:
|
|
1994
|
+
handler: m,
|
|
1965
1995
|
modifiers: r
|
|
1966
1996
|
};
|
|
1967
1997
|
}
|
|
1968
1998
|
}
|
|
1969
|
-
return
|
|
1999
|
+
return St(t);
|
|
1970
2000
|
}
|
|
1971
2001
|
function eu(e, u) {
|
|
1972
2002
|
const t = [], a = ["if", "for", "model", "show", "bind", "html"];
|
|
1973
2003
|
if (u && (e.type === v.IF_BRANCH || e.type === v.IF) && u.forEach((r, n) => {
|
|
1974
2004
|
if (e === r) {
|
|
1975
|
-
const
|
|
2005
|
+
const s = n === 0 ? "vIf" : r.condition ? "vElseIf" : "vElse", i = r.condition?.loc.source || "";
|
|
1976
2006
|
t.push({
|
|
1977
|
-
name:
|
|
1978
|
-
value:
|
|
2007
|
+
name: s,
|
|
2008
|
+
value: s === "vElse" ? !0 : T(i)
|
|
1979
2009
|
});
|
|
1980
2010
|
const o = e.children?.[0];
|
|
1981
2011
|
if (o) {
|
|
@@ -2001,15 +2031,15 @@ function eu(e, u) {
|
|
|
2001
2031
|
value: T(d.exp?.loc.source || "")
|
|
2002
2032
|
});
|
|
2003
2033
|
});
|
|
2004
|
-
const
|
|
2005
|
-
|
|
2034
|
+
const s = r.find((d) => d.name === "show");
|
|
2035
|
+
s && t.push({
|
|
2006
2036
|
name: "vShow",
|
|
2007
|
-
value: T(
|
|
2037
|
+
value: T(s.exp?.loc.source || "")
|
|
2008
2038
|
});
|
|
2009
|
-
const
|
|
2010
|
-
|
|
2039
|
+
const i = r.find((d) => d.name === "bind" && !d.arg);
|
|
2040
|
+
i && t.push({
|
|
2011
2041
|
name: "vBind",
|
|
2012
|
-
value: T(
|
|
2042
|
+
value: T(i.exp?.loc.source || "")
|
|
2013
2043
|
});
|
|
2014
2044
|
const o = r.find((d) => d.name === "html");
|
|
2015
2045
|
o && t.push({
|
|
@@ -2018,7 +2048,7 @@ function eu(e, u) {
|
|
|
2018
2048
|
});
|
|
2019
2049
|
const c = r.filter((d) => !a.includes(d.name));
|
|
2020
2050
|
for (const d of c) {
|
|
2021
|
-
const
|
|
2051
|
+
const l = (d.modifiers || []).reduce(
|
|
2022
2052
|
(h, S) => (h[S.content] = !0, h),
|
|
2023
2053
|
{}
|
|
2024
2054
|
), p = d.arg?.content || void 0, b = ee[d.name];
|
|
@@ -2026,7 +2056,7 @@ function eu(e, u) {
|
|
|
2026
2056
|
name: b,
|
|
2027
2057
|
value: T(d.exp?.loc.source || ""),
|
|
2028
2058
|
arg: p,
|
|
2029
|
-
modifiers:
|
|
2059
|
+
modifiers: l
|
|
2030
2060
|
});
|
|
2031
2061
|
}
|
|
2032
2062
|
}
|
|
@@ -2038,16 +2068,16 @@ function ne(e) {
|
|
|
2038
2068
|
const { props: t = [], tag: a } = e;
|
|
2039
2069
|
for (const r of t)
|
|
2040
2070
|
if (r.name === "class") {
|
|
2041
|
-
const n = r.value?.content || "",
|
|
2042
|
-
u = n.match(
|
|
2071
|
+
const n = r.value?.content || "", s = new RegExp(`${a}_([\\w]+)`);
|
|
2072
|
+
u = n.match(s)?.[1] || "";
|
|
2043
2073
|
} else if (r.type === v.DIRECTIVE && r.name === "on") {
|
|
2044
|
-
const n = r.arg?.loc?.source || "",
|
|
2045
|
-
u =
|
|
2074
|
+
const n = r.arg?.loc?.source || "", s = r.exp?.loc?.source || "", i = new RegExp(`${n}_([\\w]+)`);
|
|
2075
|
+
u = s.match(i)?.[1] || "";
|
|
2046
2076
|
}
|
|
2047
2077
|
}
|
|
2048
|
-
return u ||
|
|
2078
|
+
return u || nu();
|
|
2049
2079
|
}
|
|
2050
|
-
function
|
|
2080
|
+
function Et(e) {
|
|
2051
2081
|
const u = /\.\/(.+?)\.vue/;
|
|
2052
2082
|
for (const { from: t, imports: a } of ae) {
|
|
2053
2083
|
if (Array.isArray(a) && a.includes(e))
|
|
@@ -2063,49 +2093,49 @@ function vt(e) {
|
|
|
2063
2093
|
}
|
|
2064
2094
|
}
|
|
2065
2095
|
function mu(e, u) {
|
|
2066
|
-
const t = new Set(u?.id ? iu[u.id] : []), a = (e.directives || []).find((
|
|
2096
|
+
const t = new Set(u?.id ? iu[u.id] : []), a = (e.directives || []).find((s) => s.name === "vFor");
|
|
2067
2097
|
let r = new Set(Array.from(t));
|
|
2068
2098
|
if (a) {
|
|
2069
|
-
const { item:
|
|
2070
|
-
r = /* @__PURE__ */ new Set([
|
|
2099
|
+
const { item: s = "item", index: i = "index" } = a.iterator || {};
|
|
2100
|
+
r = /* @__PURE__ */ new Set([s, i, ...Array.from(r)]);
|
|
2071
2101
|
}
|
|
2072
2102
|
const n = e.slot;
|
|
2073
2103
|
if (n) {
|
|
2074
|
-
const
|
|
2075
|
-
r = /* @__PURE__ */ new Set([...
|
|
2104
|
+
const s = typeof n == "string" ? [] : n.params || [], i = s.length ? s : [`scope_${u?.id}`];
|
|
2105
|
+
r = /* @__PURE__ */ new Set([...i, ...Array.from(r)]);
|
|
2076
2106
|
}
|
|
2077
2107
|
iu[e.id] = r;
|
|
2078
2108
|
}
|
|
2079
|
-
function
|
|
2109
|
+
function bu(e, u, t, a) {
|
|
2080
2110
|
const r = {
|
|
2081
|
-
name: zu(e.tag,
|
|
2082
|
-
from:
|
|
2083
|
-
props:
|
|
2084
|
-
events:
|
|
2111
|
+
name: zu(e.tag, cu),
|
|
2112
|
+
from: Et(e.tag),
|
|
2113
|
+
props: yt(e.props),
|
|
2114
|
+
events: vt(e.props, ue),
|
|
2085
2115
|
directives: eu(t || e, a)
|
|
2086
2116
|
};
|
|
2087
2117
|
r.id = ne(e), mu(r, u);
|
|
2088
|
-
const n =
|
|
2089
|
-
return mu(r, u),
|
|
2118
|
+
const n = ou(r, e.children);
|
|
2119
|
+
return mu(r, u), gt(n), n;
|
|
2090
2120
|
}
|
|
2091
|
-
function
|
|
2092
|
-
return e.map((t) =>
|
|
2121
|
+
function wt(e = [], u) {
|
|
2122
|
+
return e.map((t) => Z(t, u, e));
|
|
2093
2123
|
}
|
|
2094
|
-
function
|
|
2124
|
+
function Z(e, u, t) {
|
|
2095
2125
|
if (e.type === v.ELEMENT)
|
|
2096
|
-
return
|
|
2126
|
+
return bu(e, u);
|
|
2097
2127
|
if (e.type === v.IF)
|
|
2098
|
-
return
|
|
2128
|
+
return It(e);
|
|
2099
2129
|
if (t && e.type === v.IF_BRANCH) {
|
|
2100
2130
|
const a = e.children.find(
|
|
2101
2131
|
(r) => r.type === v.ELEMENT || r.type === v.FOR
|
|
2102
2132
|
);
|
|
2103
2133
|
if (a) {
|
|
2104
2134
|
if (a.type === v.ELEMENT)
|
|
2105
|
-
return
|
|
2135
|
+
return bu(a, u, e, t);
|
|
2106
2136
|
if (a.type === v.FOR) {
|
|
2107
2137
|
const n = { name: "div", directives: eu(e) };
|
|
2108
|
-
return
|
|
2138
|
+
return ou(n, e.children || []);
|
|
2109
2139
|
}
|
|
2110
2140
|
}
|
|
2111
2141
|
return "";
|
|
@@ -2114,9 +2144,9 @@ function Q(e, u, t) {
|
|
|
2114
2144
|
const a = e.children[0];
|
|
2115
2145
|
if (e.children.length > 1 || a.type !== v.ELEMENT) {
|
|
2116
2146
|
const n = { name: "span", directives: eu(e) };
|
|
2117
|
-
return
|
|
2147
|
+
return ou(n, e.children);
|
|
2118
2148
|
} else
|
|
2119
|
-
return
|
|
2149
|
+
return bu(a, u, e);
|
|
2120
2150
|
}
|
|
2121
2151
|
if (e.type === v.TEXT_CALL)
|
|
2122
2152
|
return e.content.type == v.TEXT ? e.content.content : e.content.type === v.INTERPOLATION ? T(e.content.content.loc.source) : e.content.type === v.COMPOUND_EXPRESSION ? Ru(
|
|
@@ -2144,24 +2174,24 @@ function Ru(e = []) {
|
|
|
2144
2174
|
children: t
|
|
2145
2175
|
};
|
|
2146
2176
|
}
|
|
2147
|
-
function
|
|
2177
|
+
function ou(e, u = []) {
|
|
2148
2178
|
const t = [];
|
|
2149
2179
|
for (const a of u)
|
|
2150
2180
|
if (a.type === v.ELEMENT && a.codegenNode?.value?.arguments) {
|
|
2151
2181
|
const r = a.codegenNode.value.arguments[0];
|
|
2152
2182
|
if (r) {
|
|
2153
|
-
const n = qu(r,
|
|
2183
|
+
const n = qu(r, cu);
|
|
2154
2184
|
t.push(...n);
|
|
2155
2185
|
}
|
|
2156
2186
|
} else if (a.type === v.ELEMENT && a.tag === "template") {
|
|
2157
2187
|
const r = a.props.find((n) => n.name === "slot");
|
|
2158
2188
|
for (const n of a.children) {
|
|
2159
|
-
const
|
|
2189
|
+
const s = n.type === v.TEXT || n.type === v.TEXT_CALL ? {
|
|
2160
2190
|
name: "span",
|
|
2161
|
-
children:
|
|
2162
|
-
} :
|
|
2163
|
-
|
|
2164
|
-
|
|
2191
|
+
children: Z(n, e)
|
|
2192
|
+
} : Z(n, e);
|
|
2193
|
+
s && (Array.isArray(s) ? s : [s]).forEach((o) => {
|
|
2194
|
+
Ie(o) && r?.type === v.DIRECTIVE && (o.id = ne(n), o.slot = {
|
|
2165
2195
|
name: r.arg?.content || "default",
|
|
2166
2196
|
params: r.exp?.identifiers || [],
|
|
2167
2197
|
scope: r.exp?.type === v.SIMPLE_EXPRESSION ? r.exp.content : ""
|
|
@@ -2171,32 +2201,32 @@ function cu(e, u = []) {
|
|
|
2171
2201
|
} else if (a.type === v.JS_CALL_EXPRESSION) {
|
|
2172
2202
|
const r = a.arguments?.[0];
|
|
2173
2203
|
if (r) {
|
|
2174
|
-
const n = qu(r,
|
|
2204
|
+
const n = qu(r, cu);
|
|
2175
2205
|
t.push(...n);
|
|
2176
2206
|
}
|
|
2177
2207
|
} else if (a.type === v.TEXT_CALL) {
|
|
2178
|
-
const r =
|
|
2208
|
+
const r = Z(a, e);
|
|
2179
2209
|
r && (Array.isArray(r) ? t.push(...r) : t.push(r));
|
|
2180
2210
|
} else {
|
|
2181
|
-
const r =
|
|
2211
|
+
const r = Z(a, e);
|
|
2182
2212
|
r && (Array.isArray(r) ? t.push(...r) : t.push(r));
|
|
2183
2213
|
}
|
|
2184
2214
|
if (t.length === 1) {
|
|
2185
2215
|
const a = t[0];
|
|
2186
|
-
e.children = typeof a == "string" ||
|
|
2216
|
+
e.children = typeof a == "string" || su(a) ? a : [a];
|
|
2187
2217
|
} else
|
|
2188
|
-
e.children = t.map((a) => typeof a == "string" ||
|
|
2218
|
+
e.children = t.map((a) => typeof a == "string" || su(a) ? { name: "span", children: a } : a);
|
|
2189
2219
|
return e;
|
|
2190
2220
|
}
|
|
2191
|
-
function
|
|
2221
|
+
function It(e) {
|
|
2192
2222
|
const u = e.branches || [], t = u[0], a = t.children || [];
|
|
2193
2223
|
if (t?.isTemplateIf || a.length > 1 || a[0].type !== v.ELEMENT) {
|
|
2194
2224
|
const n = { name: "span", directives: eu(t, u) };
|
|
2195
|
-
return
|
|
2225
|
+
return ou(n, t.children);
|
|
2196
2226
|
} else
|
|
2197
|
-
return
|
|
2227
|
+
return wt(u);
|
|
2198
2228
|
}
|
|
2199
|
-
const
|
|
2229
|
+
const At = {
|
|
2200
2230
|
onBeforeMount: "beforeMount",
|
|
2201
2231
|
onMounted: "mounted",
|
|
2202
2232
|
onBeforeUpdate: "beforeUpdate",
|
|
@@ -2227,19 +2257,19 @@ const It = {
|
|
|
2227
2257
|
onNavigationBarSearchInputClicked: "onNavigationBarSearchInputClicked",
|
|
2228
2258
|
onShareTimeline: "onShareTimeline",
|
|
2229
2259
|
onAddToFavorites: "onAddToFavorites"
|
|
2230
|
-
},
|
|
2260
|
+
}, kt = /* @__PURE__ */ new Set([
|
|
2231
2261
|
"vue-router",
|
|
2232
2262
|
"pinia",
|
|
2233
2263
|
"vue-i18n",
|
|
2234
2264
|
"@vtj/renderer"
|
|
2235
|
-
]),
|
|
2265
|
+
]), Tt = new Set(
|
|
2236
2266
|
Object.values(gu).map((e) => e.composable).filter((e) => !!e)
|
|
2237
2267
|
);
|
|
2238
|
-
function
|
|
2239
|
-
const t =
|
|
2268
|
+
function Nt(e, u) {
|
|
2269
|
+
const t = jt(e), a = Vt(t), { dependencies: r = [] } = u || {}, n = r.reduce(
|
|
2240
2270
|
(c, d) => (c[d.package] = d.library, c),
|
|
2241
2271
|
{}
|
|
2242
|
-
),
|
|
2272
|
+
), s = {
|
|
2243
2273
|
imports: t,
|
|
2244
2274
|
refs: {},
|
|
2245
2275
|
reactives: {},
|
|
@@ -2258,7 +2288,7 @@ function Tt(e, u) {
|
|
|
2258
2288
|
handlers: {},
|
|
2259
2289
|
dataSources: {},
|
|
2260
2290
|
directives: {}
|
|
2261
|
-
},
|
|
2291
|
+
}, i = [], o = B(e);
|
|
2262
2292
|
if (J(o, {
|
|
2263
2293
|
// 顶层变量声明
|
|
2264
2294
|
VariableDeclaration(c) {
|
|
@@ -2270,71 +2300,71 @@ function Tt(e, u) {
|
|
|
2270
2300
|
if (b.type === "CallExpression") {
|
|
2271
2301
|
const h = Cu(b);
|
|
2272
2302
|
if (h === "ref") {
|
|
2273
|
-
const E =
|
|
2303
|
+
const E = _(p.id);
|
|
2274
2304
|
if (E) {
|
|
2275
2305
|
const m = b.arguments[0] ? A(b.arguments[0]) : "undefined";
|
|
2276
|
-
|
|
2306
|
+
s.refs[E] = T(m);
|
|
2277
2307
|
}
|
|
2278
2308
|
return;
|
|
2279
2309
|
}
|
|
2280
2310
|
if (h === "reactive") {
|
|
2281
|
-
const E =
|
|
2311
|
+
const E = _(p.id);
|
|
2282
2312
|
if (E)
|
|
2283
2313
|
if (E === "__state")
|
|
2284
|
-
|
|
2314
|
+
s.state = Dt(b.arguments[0]);
|
|
2285
2315
|
else {
|
|
2286
2316
|
const m = b.arguments[0] ? A(b.arguments[0]) : "{}";
|
|
2287
|
-
|
|
2317
|
+
s.reactives[E] = T(m);
|
|
2288
2318
|
}
|
|
2289
2319
|
return;
|
|
2290
2320
|
}
|
|
2291
2321
|
if (h === "computed") {
|
|
2292
|
-
const E =
|
|
2322
|
+
const E = _(p.id);
|
|
2293
2323
|
if (E) {
|
|
2294
2324
|
const m = b.arguments[0] ? A(b.arguments[0]) : "() => {}";
|
|
2295
|
-
|
|
2325
|
+
s.computed[E] = C(m);
|
|
2296
2326
|
}
|
|
2297
2327
|
return;
|
|
2298
2328
|
}
|
|
2299
2329
|
if (h === "inject") {
|
|
2300
|
-
const E =
|
|
2330
|
+
const E = _(p.id);
|
|
2301
2331
|
if (E) {
|
|
2302
|
-
const m = b.arguments[0],
|
|
2303
|
-
|
|
2332
|
+
const m = b.arguments[0], g = b.arguments[1], x = m ? Lu(m) : E;
|
|
2333
|
+
s.inject.push({
|
|
2304
2334
|
name: E,
|
|
2305
2335
|
from: x || E,
|
|
2306
|
-
default:
|
|
2336
|
+
default: g ? T(A(g)) : void 0
|
|
2307
2337
|
});
|
|
2308
2338
|
}
|
|
2309
2339
|
return;
|
|
2310
2340
|
}
|
|
2311
2341
|
if (h === "defineProps" || h === "withDefaults") {
|
|
2312
|
-
|
|
2342
|
+
s.props = Mu(b);
|
|
2313
2343
|
return;
|
|
2314
2344
|
}
|
|
2315
2345
|
if (h === "defineEmits") {
|
|
2316
|
-
|
|
2346
|
+
s.emits = Ou(b);
|
|
2317
2347
|
return;
|
|
2318
2348
|
}
|
|
2319
2349
|
if (h && /^use[A-Z]/.test(h)) {
|
|
2320
2350
|
const E = a.get(h);
|
|
2321
|
-
if (
|
|
2322
|
-
const x =
|
|
2323
|
-
x.length > 0 && (
|
|
2351
|
+
if (qt(h, E)) {
|
|
2352
|
+
const x = _u(p.id);
|
|
2353
|
+
x.length > 0 && (s.globalApiDestructured ??= [], s.globalApiDestructured.push({ callee: h, destructure: x }));
|
|
2324
2354
|
return;
|
|
2325
2355
|
}
|
|
2326
2356
|
if (h === "useProvider") return;
|
|
2327
2357
|
if (!E)
|
|
2328
2358
|
continue;
|
|
2329
|
-
const m =
|
|
2330
|
-
if (m ||
|
|
2331
|
-
if (m &&
|
|
2359
|
+
const m = _(p.id), g = _u(p.id);
|
|
2360
|
+
if (m || g.length) {
|
|
2361
|
+
if (m && s.composables.some((D) => D.name === m))
|
|
2332
2362
|
return;
|
|
2333
2363
|
let x;
|
|
2334
2364
|
const w = n[E];
|
|
2335
2365
|
w ? x = `this.$libs.${w}.${h}` : x = h;
|
|
2336
2366
|
const I = {
|
|
2337
|
-
name: m ||
|
|
2367
|
+
name: m || g[0] || h,
|
|
2338
2368
|
composable: {
|
|
2339
2369
|
type: "JSExpression",
|
|
2340
2370
|
value: x
|
|
@@ -2342,26 +2372,26 @@ function Tt(e, u) {
|
|
|
2342
2372
|
};
|
|
2343
2373
|
b.arguments.length > 0 && (I.args = b.arguments.map(
|
|
2344
2374
|
(D) => T(A(D))
|
|
2345
|
-
)),
|
|
2375
|
+
)), g.length > 0 && (I.destructure = g), s.composables.push(I);
|
|
2346
2376
|
}
|
|
2347
2377
|
return;
|
|
2348
2378
|
}
|
|
2349
|
-
const S =
|
|
2379
|
+
const S = _(p.id);
|
|
2350
2380
|
if (S && S.startsWith("__") || h === "getCurrentInstance")
|
|
2351
2381
|
return;
|
|
2352
2382
|
}
|
|
2353
2383
|
if (b.type === "ArrowFunctionExpression" || b.type === "FunctionExpression") {
|
|
2354
|
-
const h =
|
|
2384
|
+
const h = _(p.id);
|
|
2355
2385
|
if (h) {
|
|
2356
2386
|
const S = A(b);
|
|
2357
2387
|
if (Bu(S)) {
|
|
2358
|
-
const E =
|
|
2388
|
+
const E = $u(h, S, u);
|
|
2359
2389
|
if (E) {
|
|
2360
|
-
|
|
2390
|
+
s.dataSources[h] = E;
|
|
2361
2391
|
return;
|
|
2362
2392
|
}
|
|
2363
2393
|
}
|
|
2364
|
-
|
|
2394
|
+
s.methods[h] = C(S);
|
|
2365
2395
|
}
|
|
2366
2396
|
return;
|
|
2367
2397
|
}
|
|
@@ -2372,7 +2402,7 @@ function Tt(e, u) {
|
|
|
2372
2402
|
}
|
|
2373
2403
|
}
|
|
2374
2404
|
if (d.declarations.some((p) => {
|
|
2375
|
-
const b =
|
|
2405
|
+
const b = _(p.id);
|
|
2376
2406
|
return b && b.startsWith("__");
|
|
2377
2407
|
}))
|
|
2378
2408
|
return;
|
|
@@ -2381,15 +2411,15 @@ function Tt(e, u) {
|
|
|
2381
2411
|
return b && (b.type === "ObjectExpression" || b.type === "ArrayExpression");
|
|
2382
2412
|
}) && d.declarations.length > 0) {
|
|
2383
2413
|
for (const p of d.declarations) {
|
|
2384
|
-
const b =
|
|
2385
|
-
b && p.init && (
|
|
2414
|
+
const b = _(p.id);
|
|
2415
|
+
b && p.init && (s.reactives[b] = T(A(p.init)));
|
|
2386
2416
|
}
|
|
2387
2417
|
return;
|
|
2388
2418
|
}
|
|
2389
2419
|
for (const p of d.declarations) {
|
|
2390
2420
|
const b = p.init;
|
|
2391
2421
|
if (b) {
|
|
2392
|
-
const h =
|
|
2422
|
+
const h = _(p.id) || "(unknown)", S = A(b), E = b.type;
|
|
2393
2423
|
throw new Error(
|
|
2394
2424
|
`[vtj/parser] 无法处理顶层变量声明 "const ${h} = ${S}":不支持的类型 "${E}"。仅支持 ObjectExpression / ArrayExpression 兜底自动转换为 reactive()。请改用 ref()、reactive()、computed() 或函数声明。`
|
|
2395
2425
|
);
|
|
@@ -2404,66 +2434,66 @@ function Tt(e, u) {
|
|
|
2404
2434
|
if (c.parent.type !== "Program") return;
|
|
2405
2435
|
const d = c.node;
|
|
2406
2436
|
if (!d.id) return;
|
|
2407
|
-
const
|
|
2437
|
+
const l = d.id.name, p = Lt(d);
|
|
2408
2438
|
if (Bu(p)) {
|
|
2409
|
-
const b =
|
|
2439
|
+
const b = $u(l, p, u);
|
|
2410
2440
|
if (b) {
|
|
2411
|
-
|
|
2441
|
+
s.dataSources[l] = b;
|
|
2412
2442
|
return;
|
|
2413
2443
|
}
|
|
2414
2444
|
}
|
|
2415
|
-
|
|
2445
|
+
s.methods[l] = C(p);
|
|
2416
2446
|
},
|
|
2417
2447
|
// 顶层类声明 → 禁止,抛出异常
|
|
2418
2448
|
ClassDeclaration(c) {
|
|
2419
2449
|
if (c.parent.type !== "Program") return;
|
|
2420
|
-
const
|
|
2450
|
+
const l = c.node.id?.name || "(anonymous)";
|
|
2421
2451
|
throw new Error(
|
|
2422
|
-
`[vtj/parser] 无法处理顶层类声明 "class ${
|
|
2452
|
+
`[vtj/parser] 无法处理顶层类声明 "class ${l}":DSL 不支持顶层 class 声明,请改用 ref()、reactive() 或函数声明。`
|
|
2423
2453
|
);
|
|
2424
2454
|
},
|
|
2425
2455
|
// 顶层表达式语句
|
|
2426
2456
|
ExpressionStatement(c) {
|
|
2427
2457
|
if (c.parent.type !== "Program") return;
|
|
2428
|
-
const d = c.node,
|
|
2429
|
-
if (
|
|
2458
|
+
const d = c.node, l = d.expression;
|
|
2459
|
+
if (l.type !== "CallExpression") {
|
|
2430
2460
|
const h = A(d);
|
|
2431
2461
|
throw new Error(
|
|
2432
2462
|
`[vtj/parser] 无法处理顶层表达式语句 "${h}":DSL 不支持游离的顶层表达式,请改用生命周期钩子(如 onMounted)或声明确赋值。`
|
|
2433
2463
|
);
|
|
2434
2464
|
}
|
|
2435
|
-
const p = Cu(
|
|
2465
|
+
const p = Cu(l);
|
|
2436
2466
|
if (p === "watch") {
|
|
2437
|
-
const h =
|
|
2438
|
-
h &&
|
|
2467
|
+
const h = _t(l);
|
|
2468
|
+
h && s.watch.push(h);
|
|
2439
2469
|
return;
|
|
2440
2470
|
}
|
|
2441
|
-
if (p && p in
|
|
2442
|
-
const h =
|
|
2443
|
-
h && (
|
|
2471
|
+
if (p && p in At) {
|
|
2472
|
+
const h = l.arguments[0];
|
|
2473
|
+
h && (s.lifeCycles[p] = C(A(h)));
|
|
2444
2474
|
return;
|
|
2445
2475
|
}
|
|
2446
2476
|
if (p === "provide") {
|
|
2447
|
-
const h =
|
|
2477
|
+
const h = l.arguments[0], S = l.arguments[1];
|
|
2448
2478
|
if (h && S) {
|
|
2449
|
-
const E =
|
|
2479
|
+
const E = Lu(h);
|
|
2450
2480
|
if (E) {
|
|
2451
2481
|
const m = A(S);
|
|
2452
|
-
S.type === "ArrowFunctionExpression" || S.type === "FunctionExpression" ?
|
|
2482
|
+
S.type === "ArrowFunctionExpression" || S.type === "FunctionExpression" ? s.provide[E] = C(m) : s.provide[E] = T(m);
|
|
2453
2483
|
}
|
|
2454
2484
|
}
|
|
2455
2485
|
return;
|
|
2456
2486
|
}
|
|
2457
2487
|
if (p === "defineExpose") {
|
|
2458
|
-
|
|
2488
|
+
s.expose = Ct(l);
|
|
2459
2489
|
return;
|
|
2460
2490
|
}
|
|
2461
2491
|
if (p === "defineProps" || p === "withDefaults") {
|
|
2462
|
-
|
|
2492
|
+
s.props = Mu(l);
|
|
2463
2493
|
return;
|
|
2464
2494
|
}
|
|
2465
2495
|
if (p === "defineEmits") {
|
|
2466
|
-
|
|
2496
|
+
s.emits = Ou(l);
|
|
2467
2497
|
return;
|
|
2468
2498
|
}
|
|
2469
2499
|
const b = A(d);
|
|
@@ -2471,38 +2501,38 @@ function Tt(e, u) {
|
|
|
2471
2501
|
`[vtj/parser] 无法处理顶层调用语句 "${b}":DSL 不支持游离的顶层函数调用,请改用生命周期钩子(如 onMounted)或归类到方法声明中。`
|
|
2472
2502
|
);
|
|
2473
2503
|
}
|
|
2474
|
-
}),
|
|
2475
|
-
const d =
|
|
2476
|
-
|
|
2504
|
+
}), i.length > 0) {
|
|
2505
|
+
const d = i.some((l) => /\bawait\b/.test(l)) ? "async () =>" : "() =>";
|
|
2506
|
+
s.setup = C(
|
|
2477
2507
|
`${d} {
|
|
2478
|
-
${
|
|
2508
|
+
${i.join(`
|
|
2479
2509
|
`)}
|
|
2480
2510
|
}`
|
|
2481
2511
|
);
|
|
2482
2512
|
}
|
|
2483
|
-
return
|
|
2513
|
+
return s;
|
|
2484
2514
|
}
|
|
2485
|
-
function
|
|
2515
|
+
function jt(e) {
|
|
2486
2516
|
const u = /import\s+{(.+?)}\s+from\s+['"](.+?)['"]/g, t = /import\s+(.+?)\s+from\s+['"](.+?)['"]/g, a = /^{(.+?)}$/, r = [];
|
|
2487
2517
|
let n;
|
|
2488
|
-
const
|
|
2489
|
-
for (; (n = u.exec(
|
|
2490
|
-
const
|
|
2518
|
+
const s = e.replace(/\n/g, " ");
|
|
2519
|
+
for (; (n = u.exec(s)) !== null; ) {
|
|
2520
|
+
const i = n[2] === "@element-plus/icons-vue" ? "@vtj/icons" : n[2];
|
|
2491
2521
|
r.push({
|
|
2492
|
-
from:
|
|
2522
|
+
from: i,
|
|
2493
2523
|
imports: n[1].split(",").map((o) => o.trim())
|
|
2494
2524
|
});
|
|
2495
2525
|
}
|
|
2496
|
-
for (; (n = t.exec(
|
|
2497
|
-
const
|
|
2498
|
-
|
|
2526
|
+
for (; (n = t.exec(s)) !== null; ) {
|
|
2527
|
+
const i = n[1], o = n[2];
|
|
2528
|
+
i && !a.test(i) && r.push({
|
|
2499
2529
|
from: o,
|
|
2500
|
-
imports:
|
|
2530
|
+
imports: i
|
|
2501
2531
|
});
|
|
2502
2532
|
}
|
|
2503
2533
|
return r;
|
|
2504
2534
|
}
|
|
2505
|
-
function
|
|
2535
|
+
function Vt(e) {
|
|
2506
2536
|
const u = /* @__PURE__ */ new Map();
|
|
2507
2537
|
for (const t of e)
|
|
2508
2538
|
if (Array.isArray(t.imports))
|
|
@@ -2514,22 +2544,22 @@ function jt(e) {
|
|
|
2514
2544
|
u.set(t.imports, t.from);
|
|
2515
2545
|
return u;
|
|
2516
2546
|
}
|
|
2517
|
-
function
|
|
2518
|
-
return u &&
|
|
2547
|
+
function qt(e, u) {
|
|
2548
|
+
return u && kt.has(u) ? !0 : Tt.has(e);
|
|
2519
2549
|
}
|
|
2520
2550
|
function Cu(e) {
|
|
2521
2551
|
return e.callee.type === "Identifier" ? e.callee.name : null;
|
|
2522
2552
|
}
|
|
2523
|
-
function
|
|
2553
|
+
function _(e) {
|
|
2524
2554
|
return e?.type === "Identifier" ? e.name : null;
|
|
2525
2555
|
}
|
|
2526
|
-
function
|
|
2556
|
+
function _u(e) {
|
|
2527
2557
|
return e?.type === "ObjectPattern" ? e.properties.map((u) => u.type === "ObjectProperty" && u.key?.type === "Identifier" ? u.key.name : u.type === "RestElement" && u.argument?.type === "Identifier" ? u.argument.name : null).filter(Boolean) : e?.type === "ArrayPattern" ? e.elements.map((u) => u?.type === "Identifier" ? u.name : null).filter(Boolean) : [];
|
|
2528
2558
|
}
|
|
2529
|
-
function
|
|
2559
|
+
function Lu(e) {
|
|
2530
2560
|
return e.type === "StringLiteral" ? e.value : null;
|
|
2531
2561
|
}
|
|
2532
|
-
function
|
|
2562
|
+
function Dt(e) {
|
|
2533
2563
|
if (!e || e.type !== "ObjectExpression") return {};
|
|
2534
2564
|
const u = {};
|
|
2535
2565
|
for (const t of e.properties)
|
|
@@ -2539,7 +2569,7 @@ function qt(e) {
|
|
|
2539
2569
|
} else if (t.type === "ObjectMethod") {
|
|
2540
2570
|
const a = t.key?.name;
|
|
2541
2571
|
if (a) {
|
|
2542
|
-
const r = A(t.body), n = t.params.map((
|
|
2572
|
+
const r = A(t.body), n = t.params.map((s) => s.name || "none").join(",");
|
|
2543
2573
|
u[a] = T(`(${n}) => ${r}`);
|
|
2544
2574
|
}
|
|
2545
2575
|
}
|
|
@@ -2549,13 +2579,13 @@ function Mu(e) {
|
|
|
2549
2579
|
if (e.callee.type === "Identifier" && e.callee.name === "withDefaults") {
|
|
2550
2580
|
const u = e.arguments[0];
|
|
2551
2581
|
if (u?.type === "CallExpression") {
|
|
2552
|
-
const t =
|
|
2553
|
-
return a?.type === "ObjectExpression" &&
|
|
2582
|
+
const t = Pu(u), a = e.arguments[1];
|
|
2583
|
+
return a?.type === "ObjectExpression" && Rt(t, a), t;
|
|
2554
2584
|
}
|
|
2555
2585
|
}
|
|
2556
|
-
return
|
|
2586
|
+
return Pu(e);
|
|
2557
2587
|
}
|
|
2558
|
-
function
|
|
2588
|
+
function Pu(e) {
|
|
2559
2589
|
const u = e.arguments[0];
|
|
2560
2590
|
return u ? u.type === "ArrayExpression" ? u.elements.map((t) => t?.type === "StringLiteral" ? t.value : "").filter(Boolean) : u.type === "ObjectExpression" ? u.properties.map((t) => {
|
|
2561
2591
|
if (t.type !== "ObjectProperty") return null;
|
|
@@ -2567,15 +2597,15 @@ function Ou(e) {
|
|
|
2567
2597
|
const r = t.value.properties;
|
|
2568
2598
|
return {
|
|
2569
2599
|
name: a,
|
|
2570
|
-
type:
|
|
2600
|
+
type: Mt(r),
|
|
2571
2601
|
required: xu(r, "required"),
|
|
2572
|
-
default:
|
|
2602
|
+
default: Pt(r)
|
|
2573
2603
|
};
|
|
2574
2604
|
}
|
|
2575
2605
|
return a;
|
|
2576
2606
|
}).filter(Boolean) : [] : [];
|
|
2577
2607
|
}
|
|
2578
|
-
function
|
|
2608
|
+
function Rt(e, u) {
|
|
2579
2609
|
for (const t of u.properties) {
|
|
2580
2610
|
if (t.type !== "ObjectProperty") continue;
|
|
2581
2611
|
const a = t.key?.name;
|
|
@@ -2592,57 +2622,57 @@ function Dt(e, u) {
|
|
|
2592
2622
|
}
|
|
2593
2623
|
}
|
|
2594
2624
|
}
|
|
2595
|
-
function
|
|
2625
|
+
function Ou(e) {
|
|
2596
2626
|
const u = e.arguments[0];
|
|
2597
2627
|
return u ? u.type === "ArrayExpression" ? u.elements.map((t) => t?.type === "StringLiteral" ? { name: t.value, params: [] } : null).filter(Boolean) : [] : [];
|
|
2598
2628
|
}
|
|
2599
|
-
function
|
|
2629
|
+
function Ct(e) {
|
|
2600
2630
|
const u = e.arguments[0];
|
|
2601
2631
|
return !u || u.type !== "ObjectExpression" ? [] : u.properties.map((t) => (t.type === "ObjectProperty" || t.type === "ObjectMethod") && t.key?.name || "").filter(Boolean);
|
|
2602
2632
|
}
|
|
2603
|
-
function
|
|
2633
|
+
function _t(e) {
|
|
2604
2634
|
const [u, t, a] = e.arguments;
|
|
2605
2635
|
if (!u || !t) return null;
|
|
2606
2636
|
const r = A(u), n = A(t);
|
|
2607
|
-
let
|
|
2637
|
+
let s = !1, i = !1;
|
|
2608
2638
|
if (a?.type === "ObjectExpression") {
|
|
2609
2639
|
const o = a.properties;
|
|
2610
|
-
|
|
2640
|
+
s = xu(o, "deep"), i = xu(o, "immediate");
|
|
2611
2641
|
}
|
|
2612
2642
|
return {
|
|
2613
|
-
id:
|
|
2643
|
+
id: nu(),
|
|
2614
2644
|
source: C(
|
|
2615
2645
|
u.type === "ArrowFunctionExpression" || u.type === "FunctionExpression" ? r : `() => { return ${r}; }`
|
|
2616
2646
|
),
|
|
2617
2647
|
handler: C(n),
|
|
2618
|
-
deep:
|
|
2619
|
-
immediate:
|
|
2648
|
+
deep: s,
|
|
2649
|
+
immediate: i
|
|
2620
2650
|
};
|
|
2621
2651
|
}
|
|
2622
2652
|
function Lt(e) {
|
|
2623
|
-
const u = e.async ? "async " : "", t = e.params.map((r) => r.type === "ObjectPattern" ? `{${r.properties.map((
|
|
2653
|
+
const u = e.async ? "async " : "", t = e.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(e.body) || "{}";
|
|
2624
2654
|
return `${u}(${t}) => ${a}`;
|
|
2625
2655
|
}
|
|
2626
2656
|
function Bu(e) {
|
|
2627
2657
|
return e.includes("__provider.apis") || e.includes("__provider.createMock");
|
|
2628
2658
|
}
|
|
2629
|
-
function
|
|
2630
|
-
const a = /apis\['([\w]*)'\]/, n =
|
|
2631
|
-
const o =
|
|
2659
|
+
function $u(e, u, t) {
|
|
2660
|
+
const a = /apis\['([\w]*)'\]/, n = Zu(""), s = (i) => {
|
|
2661
|
+
const o = i.indexOf(".then(");
|
|
2632
2662
|
if (o === -1) return null;
|
|
2633
2663
|
let c = 1, d = o + 6;
|
|
2634
|
-
for (; d <
|
|
2635
|
-
const
|
|
2636
|
-
|
|
2664
|
+
for (; d < i.length && c > 0; ) {
|
|
2665
|
+
const l = i[d];
|
|
2666
|
+
l === "(" ? c++ : l === ")" && c--, d++;
|
|
2637
2667
|
}
|
|
2638
|
-
return
|
|
2668
|
+
return i.substring(o + 6, d - 1).trim();
|
|
2639
2669
|
};
|
|
2640
2670
|
if (u.includes("__provider.apis")) {
|
|
2641
2671
|
const o = (u.match(a) || [])[1];
|
|
2642
2672
|
if (!o) return null;
|
|
2643
|
-
const c = (t.apis || []).find((
|
|
2673
|
+
const c = (t.apis || []).find((l) => l.id === o || l.name === o);
|
|
2644
2674
|
if (!c) return null;
|
|
2645
|
-
const d =
|
|
2675
|
+
const d = s(u);
|
|
2646
2676
|
return {
|
|
2647
2677
|
ref: o,
|
|
2648
2678
|
name: e,
|
|
@@ -2664,7 +2694,7 @@ function Fu(e, u, t) {
|
|
|
2664
2694
|
};
|
|
2665
2695
|
}
|
|
2666
2696
|
if (u.includes("__provider.createMock")) {
|
|
2667
|
-
const
|
|
2697
|
+
const i = s(u);
|
|
2668
2698
|
return {
|
|
2669
2699
|
ref: "",
|
|
2670
2700
|
name: e,
|
|
@@ -2678,7 +2708,7 @@ function Fu(e, u, t) {
|
|
|
2678
2708
|
label: n?.label || "",
|
|
2679
2709
|
transform: n?.transform || {
|
|
2680
2710
|
type: "JSFunction",
|
|
2681
|
-
value:
|
|
2711
|
+
value: i || `(res) => {
|
|
2682
2712
|
return res;
|
|
2683
2713
|
}`
|
|
2684
2714
|
},
|
|
@@ -2695,14 +2725,14 @@ function xu(e, u) {
|
|
|
2695
2725
|
(a) => a.key?.name === u
|
|
2696
2726
|
)?.value?.value;
|
|
2697
2727
|
}
|
|
2698
|
-
function
|
|
2728
|
+
function Mt(e) {
|
|
2699
2729
|
const u = e?.find(
|
|
2700
2730
|
(t) => t.key?.name === "type"
|
|
2701
2731
|
);
|
|
2702
2732
|
if (u)
|
|
2703
2733
|
return u.value.type === "ArrayExpression" ? u.value.elements.map((t) => t.name) : u.value.name;
|
|
2704
2734
|
}
|
|
2705
|
-
function
|
|
2735
|
+
function Pt(e) {
|
|
2706
2736
|
const u = e?.find(
|
|
2707
2737
|
(t) => t.key?.name === "default"
|
|
2708
2738
|
);
|
|
@@ -2712,15 +2742,15 @@ function Mt(e) {
|
|
|
2712
2742
|
function Ot(e) {
|
|
2713
2743
|
const u = [], t = {}, a = [];
|
|
2714
2744
|
try {
|
|
2715
|
-
const r = ve.compileString(e, { charset: !1 })?.css || "", n = Se.parse(r),
|
|
2716
|
-
for (const
|
|
2717
|
-
if (
|
|
2745
|
+
const r = ve.compileString(e, { charset: !1 })?.css || "", n = Se.parse(r), s = /^.[\w]+_[\w]{5,}/;
|
|
2746
|
+
for (const i of n.nodes)
|
|
2747
|
+
if (i.type === "rule") {
|
|
2718
2748
|
const o = {};
|
|
2719
|
-
|
|
2749
|
+
s.test(i.selector) ? (i.nodes.forEach((c) => {
|
|
2720
2750
|
c.type === "decl" && (o[c.prop] = c.value);
|
|
2721
|
-
}), t[
|
|
2751
|
+
}), t[i.selector] = o) : a.push(i.toString());
|
|
2722
2752
|
} else
|
|
2723
|
-
a.push(
|
|
2753
|
+
a.push(i.toString());
|
|
2724
2754
|
} catch (r) {
|
|
2725
2755
|
u.push(`css解析出错了,错误信息:[ ${r.message} ]
|
|
2726
2756
|
`);
|
|
@@ -2735,41 +2765,41 @@ function Ot(e) {
|
|
|
2735
2765
|
function uu(e, u, t) {
|
|
2736
2766
|
let a = "", r = 0;
|
|
2737
2767
|
const n = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*`/g;
|
|
2738
|
-
let
|
|
2739
|
-
for (; (
|
|
2740
|
-
const
|
|
2741
|
-
a +=
|
|
2742
|
-
const o =
|
|
2743
|
-
o.startsWith("`") ? a +=
|
|
2768
|
+
let s;
|
|
2769
|
+
for (; (s = n.exec(e)) !== null; ) {
|
|
2770
|
+
const i = e.slice(r, s.index);
|
|
2771
|
+
a += i.replace(u, t);
|
|
2772
|
+
const o = s[0];
|
|
2773
|
+
o.startsWith("`") ? a += Bt(o, u, t) : a += o, r = s.index + s[0].length;
|
|
2744
2774
|
}
|
|
2745
2775
|
return a += e.slice(r).replace(u, t), a;
|
|
2746
2776
|
}
|
|
2747
|
-
function
|
|
2777
|
+
function Bt(e, u, t) {
|
|
2748
2778
|
let a = "", r = 0;
|
|
2749
2779
|
const n = /\$\{([^}]*)\}/g;
|
|
2750
|
-
let
|
|
2751
|
-
for (; (
|
|
2752
|
-
a += e.slice(r,
|
|
2753
|
-
const o =
|
|
2754
|
-
a += "${" + o + "}", r =
|
|
2780
|
+
let s;
|
|
2781
|
+
for (; (s = n.exec(e)) !== null; ) {
|
|
2782
|
+
a += e.slice(r, s.index);
|
|
2783
|
+
const o = s[1].replace(u, t);
|
|
2784
|
+
a += "${" + o + "}", r = s.index + s[0].length;
|
|
2755
2785
|
}
|
|
2756
2786
|
return a += e.slice(r), a;
|
|
2757
2787
|
}
|
|
2758
|
-
function
|
|
2788
|
+
function $t(e, u) {
|
|
2759
2789
|
if (!e) return e;
|
|
2760
2790
|
let t = e;
|
|
2761
2791
|
const a = [...u.refs, ...u.computed];
|
|
2762
2792
|
for (const r of a)
|
|
2763
2793
|
t = uu(
|
|
2764
2794
|
t,
|
|
2765
|
-
new RegExp(`(?<!\\.)\\b${
|
|
2795
|
+
new RegExp(`(?<!\\.)\\b${Q(r)}\\.value\\b`, "g"),
|
|
2766
2796
|
`this.${r}.value`
|
|
2767
2797
|
);
|
|
2768
2798
|
for (const r of a)
|
|
2769
2799
|
t = uu(
|
|
2770
2800
|
t,
|
|
2771
2801
|
new RegExp(
|
|
2772
|
-
`(?<!this\\.)(?:(?<=_ctx\\.)|(?<!\\.))\\b${
|
|
2802
|
+
`(?<!this\\.)(?:(?<=_ctx\\.)|(?<!\\.))\\b${Q(r)}\\b(?!\\.value)`,
|
|
2773
2803
|
"g"
|
|
2774
2804
|
),
|
|
2775
2805
|
`this.${r}.value`
|
|
@@ -2782,12 +2812,12 @@ function Bt(e, u) {
|
|
|
2782
2812
|
for (const [r, n] of Object.entries(
|
|
2783
2813
|
u.reverseMemberApiMap || {}
|
|
2784
2814
|
))
|
|
2785
|
-
for (const [
|
|
2815
|
+
for (const [s, i] of Object.entries(n)) {
|
|
2786
2816
|
const o = new RegExp(
|
|
2787
|
-
`\\b${
|
|
2817
|
+
`\\b${Q(r)}\\.${Q(s)}\\b`,
|
|
2788
2818
|
"g"
|
|
2789
2819
|
);
|
|
2790
|
-
t = uu(t, o, `this.${
|
|
2820
|
+
t = uu(t, o, `this.${i}`);
|
|
2791
2821
|
}
|
|
2792
2822
|
for (const r of u.props)
|
|
2793
2823
|
t = Ft(t, "__props", r, `this.${r}`);
|
|
@@ -2808,23 +2838,23 @@ function Bt(e, u) {
|
|
|
2808
2838
|
t = R(t, r, `this.${r}`);
|
|
2809
2839
|
return t = t.replace(/this\.this\./g, "this."), t;
|
|
2810
2840
|
}
|
|
2811
|
-
function
|
|
2841
|
+
function Q(e) {
|
|
2812
2842
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2813
2843
|
}
|
|
2814
2844
|
function Ft(e, u, t, a) {
|
|
2815
2845
|
const r = new RegExp(
|
|
2816
|
-
`\\b${
|
|
2846
|
+
`\\b${Q(u)}\\.${Q(t)}\\b`,
|
|
2817
2847
|
"g"
|
|
2818
2848
|
);
|
|
2819
2849
|
return uu(e, r, a);
|
|
2820
2850
|
}
|
|
2821
|
-
function
|
|
2851
|
+
function se(e) {
|
|
2822
2852
|
const u = {}, t = {};
|
|
2823
2853
|
for (const [a, r] of Object.entries(gu))
|
|
2824
2854
|
if (r.replace)
|
|
2825
2855
|
if (r.replace.includes(".")) {
|
|
2826
|
-
const n = r.replace.lastIndexOf("."),
|
|
2827
|
-
t[
|
|
2856
|
+
const n = r.replace.lastIndexOf("."), s = r.replace.substring(0, n), i = r.replace.substring(n + 1);
|
|
2857
|
+
t[s] || (t[s] = {}), t[s][i] = a, u[a] = a;
|
|
2828
2858
|
} else
|
|
2829
2859
|
u[r.replace] = a;
|
|
2830
2860
|
if (e) {
|
|
@@ -2833,26 +2863,26 @@ function ie(e) {
|
|
|
2833
2863
|
for (const [r, n] of Object.entries(a))
|
|
2834
2864
|
if (n.replace)
|
|
2835
2865
|
if (n.replace.includes(".")) {
|
|
2836
|
-
const
|
|
2837
|
-
t[
|
|
2866
|
+
const s = n.replace.lastIndexOf("."), i = n.replace.substring(0, s), o = n.replace.substring(s + 1);
|
|
2867
|
+
t[i] || (t[i] = {}), t[i][o] = r, u[r] = r;
|
|
2838
2868
|
} else
|
|
2839
2869
|
u[n.replace] = r;
|
|
2840
2870
|
}
|
|
2841
2871
|
}
|
|
2842
2872
|
return { simple: u, member: t };
|
|
2843
2873
|
}
|
|
2844
|
-
function
|
|
2874
|
+
function Ut(e) {
|
|
2845
2875
|
for (const u of e)
|
|
2846
2876
|
if (xe.includes(u.from)) return u.from;
|
|
2847
2877
|
}
|
|
2848
|
-
function
|
|
2878
|
+
function Gt(e) {
|
|
2849
2879
|
const u = {}, t = (a) => {
|
|
2850
2880
|
for (const [r, n] of Object.entries(a)) {
|
|
2851
2881
|
if (!n.composable || !n.replace || !n.replace.includes("."))
|
|
2852
2882
|
continue;
|
|
2853
2883
|
u[n.composable] || (u[n.composable] = {});
|
|
2854
|
-
const
|
|
2855
|
-
u[n.composable][
|
|
2884
|
+
const s = n.replace.substring(n.replace.lastIndexOf(".") + 1);
|
|
2885
|
+
u[n.composable][s] = r;
|
|
2856
2886
|
}
|
|
2857
2887
|
};
|
|
2858
2888
|
if (t(gu), e) {
|
|
@@ -2861,7 +2891,7 @@ function Ut(e) {
|
|
|
2861
2891
|
}
|
|
2862
2892
|
return u;
|
|
2863
2893
|
}
|
|
2864
|
-
function
|
|
2894
|
+
function Fu(e, u) {
|
|
2865
2895
|
if (!e) return e;
|
|
2866
2896
|
const t = {
|
|
2867
2897
|
refs: new Set(u.refs),
|
|
@@ -2874,29 +2904,29 @@ function $u(e, u) {
|
|
|
2874
2904
|
dataSources: new Set(u.dataSources),
|
|
2875
2905
|
hasState: u.hasState,
|
|
2876
2906
|
reverseApiMap: u.globalApiVars,
|
|
2877
|
-
reverseMemberApiMap: u.reverseMemberApiMap ||
|
|
2907
|
+
reverseMemberApiMap: u.reverseMemberApiMap || se().member
|
|
2878
2908
|
};
|
|
2879
|
-
let a =
|
|
2909
|
+
let a = $t(e, t);
|
|
2880
2910
|
a = a.replace(/_ctx\./g, "this."), a = a.replace(/this\.this\./g, "this.");
|
|
2881
2911
|
for (const [r, n] of Object.entries(u.libs || {}))
|
|
2882
2912
|
a = R(a, r, `this.$libs.${n}.${r}`);
|
|
2883
2913
|
return a;
|
|
2884
2914
|
}
|
|
2885
|
-
function
|
|
2886
|
-
const u =
|
|
2915
|
+
function Ht(e) {
|
|
2916
|
+
const u = Ut(e.imports || []), { simple: t, member: a } = se(u);
|
|
2887
2917
|
if (e.globalApiDestructured && e.globalApiDestructured.length > 0) {
|
|
2888
|
-
const n =
|
|
2889
|
-
for (const { callee:
|
|
2890
|
-
const o = n[
|
|
2918
|
+
const n = Gt(u);
|
|
2919
|
+
for (const { callee: s, destructure: i } of e.globalApiDestructured) {
|
|
2920
|
+
const o = n[s];
|
|
2891
2921
|
if (o)
|
|
2892
|
-
for (const c of
|
|
2922
|
+
for (const c of i)
|
|
2893
2923
|
o[c] && (t[c] = o[c]);
|
|
2894
2924
|
}
|
|
2895
2925
|
}
|
|
2896
2926
|
const r = /* @__PURE__ */ new Set();
|
|
2897
2927
|
for (const n of e.composables || [])
|
|
2898
2928
|
if (n.destructure && n.destructure.length > 0)
|
|
2899
|
-
for (const
|
|
2929
|
+
for (const s of n.destructure) r.add(s);
|
|
2900
2930
|
else n.name && r.add(n.name);
|
|
2901
2931
|
return {
|
|
2902
2932
|
refs: new Set(Object.keys(e.refs || {})),
|
|
@@ -2914,12 +2944,12 @@ function Gt(e) {
|
|
|
2914
2944
|
reverseMemberApiMap: a
|
|
2915
2945
|
};
|
|
2916
2946
|
}
|
|
2917
|
-
const
|
|
2947
|
+
const ie = "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(
|
|
2918
2948
|
", "
|
|
2919
|
-
),
|
|
2949
|
+
), Wt = "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(
|
|
2920
2950
|
", "
|
|
2921
|
-
),
|
|
2922
|
-
class
|
|
2951
|
+
), Jt = "user", L = "User";
|
|
2952
|
+
class zt {
|
|
2923
2953
|
validate(u) {
|
|
2924
2954
|
const t = {
|
|
2925
2955
|
valid: !0,
|
|
@@ -2957,22 +2987,22 @@ class Jt {
|
|
|
2957
2987
|
return Ju(t.script, {
|
|
2958
2988
|
ObjectMethod(r) {
|
|
2959
2989
|
r.node.key.name === "setup" && (a = r.node.body.body.filter(
|
|
2960
|
-
(
|
|
2990
|
+
(s) => !q.isEmptyStatement(s)
|
|
2961
2991
|
).length);
|
|
2962
2992
|
}
|
|
2963
2993
|
}), a === 3;
|
|
2964
2994
|
}
|
|
2965
2995
|
findVantIcons(u) {
|
|
2966
2996
|
const t = M(u), a = /<(?:VanIcon|van-icon)\b[^>]*>/g, r = t.template.match(a) || [], n = [];
|
|
2967
|
-
return r.forEach((
|
|
2968
|
-
const
|
|
2969
|
-
|
|
2997
|
+
return r.forEach((s) => {
|
|
2998
|
+
const i = s.match(/\bname="([^"]+)"/);
|
|
2999
|
+
i && n.push(i[1]);
|
|
2970
3000
|
}), [...new Set(n)];
|
|
2971
3001
|
}
|
|
2972
3002
|
checkVantIcons(u) {
|
|
2973
3003
|
const t = this.findVantIcons(u), a = [];
|
|
2974
3004
|
for (const r of t)
|
|
2975
|
-
|
|
3005
|
+
ie.includes(r) || a.push(r);
|
|
2976
3006
|
return a;
|
|
2977
3007
|
}
|
|
2978
3008
|
findVtjIcons(u) {
|
|
@@ -2982,7 +3012,7 @@ class Jt {
|
|
|
2982
3012
|
checkVtjIcons(u) {
|
|
2983
3013
|
const t = this.findVtjIcons(u), a = [];
|
|
2984
3014
|
for (const r of t)
|
|
2985
|
-
|
|
3015
|
+
Wt.includes(r) || a.push(r);
|
|
2986
3016
|
return a;
|
|
2987
3017
|
}
|
|
2988
3018
|
hasUnchangedComment(u) {
|
|
@@ -2992,12 +3022,12 @@ class Jt {
|
|
|
2992
3022
|
...u.match(a) || [],
|
|
2993
3023
|
...u.match(r) || []
|
|
2994
3024
|
].some(
|
|
2995
|
-
(
|
|
3025
|
+
(s) => /不变/.test(s.replace(/\*/g, ""))
|
|
2996
3026
|
// 移除多行注释的星号避免干扰
|
|
2997
3027
|
);
|
|
2998
3028
|
}
|
|
2999
3029
|
}
|
|
3000
|
-
function
|
|
3030
|
+
function Xt(e) {
|
|
3001
3031
|
const u = [];
|
|
3002
3032
|
let t = e;
|
|
3003
3033
|
const a = M(e);
|
|
@@ -3008,15 +3038,15 @@ function zt(e) {
|
|
|
3008
3038
|
fixedCode: e,
|
|
3009
3039
|
changes: []
|
|
3010
3040
|
};
|
|
3011
|
-
const r =
|
|
3012
|
-
let
|
|
3013
|
-
const
|
|
3041
|
+
const r = Zt(a.script), n = a.template;
|
|
3042
|
+
let s = n;
|
|
3043
|
+
const i = [], o = /\{\{([^}]+)\}\}/g;
|
|
3014
3044
|
let c;
|
|
3015
3045
|
for (; (c = o.exec(n)) !== null; ) {
|
|
3016
|
-
const m = c[0],
|
|
3017
|
-
if (x !==
|
|
3046
|
+
const m = c[0], g = c[1], x = H(g, r);
|
|
3047
|
+
if (x !== g) {
|
|
3018
3048
|
const w = G(n, c.index);
|
|
3019
|
-
|
|
3049
|
+
i.push({
|
|
3020
3050
|
start: c.index,
|
|
3021
3051
|
end: c.index + m.length,
|
|
3022
3052
|
original: m,
|
|
@@ -3026,7 +3056,7 @@ function zt(e) {
|
|
|
3026
3056
|
}), u.push({
|
|
3027
3057
|
line: w.line + 1,
|
|
3028
3058
|
column: w.column,
|
|
3029
|
-
original:
|
|
3059
|
+
original: g.trim(),
|
|
3030
3060
|
fixed: x.trim(),
|
|
3031
3061
|
message: "修复插值表达式:添加 state. 前缀"
|
|
3032
3062
|
});
|
|
@@ -3034,14 +3064,14 @@ function zt(e) {
|
|
|
3034
3064
|
}
|
|
3035
3065
|
const d = /:(\w+)="([^"]+)"/g;
|
|
3036
3066
|
for (; (c = d.exec(n)) !== null; ) {
|
|
3037
|
-
const m = c[0],
|
|
3067
|
+
const m = c[0], g = c[1], x = c[2], w = H(x, r);
|
|
3038
3068
|
if (w !== x) {
|
|
3039
3069
|
const I = G(n, c.index);
|
|
3040
|
-
|
|
3070
|
+
i.push({
|
|
3041
3071
|
start: c.index,
|
|
3042
3072
|
end: c.index + m.length,
|
|
3043
3073
|
original: m,
|
|
3044
|
-
replacement: `:${
|
|
3074
|
+
replacement: `:${g}="${w}"`,
|
|
3045
3075
|
line: I.line,
|
|
3046
3076
|
column: I.column
|
|
3047
3077
|
}), u.push({
|
|
@@ -3053,16 +3083,16 @@ function zt(e) {
|
|
|
3053
3083
|
});
|
|
3054
3084
|
}
|
|
3055
3085
|
}
|
|
3056
|
-
const
|
|
3057
|
-
for (; (c =
|
|
3058
|
-
const m = c[0],
|
|
3086
|
+
const l = /v-(if|else-if|show)="([^"]+)"/g;
|
|
3087
|
+
for (; (c = l.exec(n)) !== null; ) {
|
|
3088
|
+
const m = c[0], g = c[1], x = c[2], w = H(x, r);
|
|
3059
3089
|
if (w !== x) {
|
|
3060
3090
|
const I = G(n, c.index);
|
|
3061
|
-
|
|
3091
|
+
i.push({
|
|
3062
3092
|
start: c.index,
|
|
3063
3093
|
end: c.index + m.length,
|
|
3064
3094
|
original: m,
|
|
3065
|
-
replacement: `v-${
|
|
3095
|
+
replacement: `v-${g}="${w}"`,
|
|
3066
3096
|
line: I.line,
|
|
3067
3097
|
column: I.column
|
|
3068
3098
|
}), u.push({
|
|
@@ -3070,7 +3100,7 @@ function zt(e) {
|
|
|
3070
3100
|
column: I.column,
|
|
3071
3101
|
original: x,
|
|
3072
3102
|
fixed: w,
|
|
3073
|
-
message: `修复 v-${
|
|
3103
|
+
message: `修复 v-${g} 指令:添加 state. 前缀`
|
|
3074
3104
|
});
|
|
3075
3105
|
}
|
|
3076
3106
|
}
|
|
@@ -3083,17 +3113,17 @@ function zt(e) {
|
|
|
3083
3113
|
r
|
|
3084
3114
|
);
|
|
3085
3115
|
if (D !== I) {
|
|
3086
|
-
const
|
|
3087
|
-
|
|
3116
|
+
const $ = G(n, c.index), lu = `v-for="${w} in ${D}"`;
|
|
3117
|
+
i.push({
|
|
3088
3118
|
start: c.index,
|
|
3089
3119
|
end: c.index + m.length,
|
|
3090
3120
|
original: m,
|
|
3091
|
-
replacement:
|
|
3092
|
-
line:
|
|
3093
|
-
column:
|
|
3121
|
+
replacement: lu,
|
|
3122
|
+
line: $.line,
|
|
3123
|
+
column: $.column
|
|
3094
3124
|
}), u.push({
|
|
3095
|
-
line:
|
|
3096
|
-
column:
|
|
3125
|
+
line: $.line + 1,
|
|
3126
|
+
column: $.column,
|
|
3097
3127
|
original: I,
|
|
3098
3128
|
fixed: D,
|
|
3099
3129
|
message: "修复 v-for 指令:添加 state. 前缀"
|
|
@@ -3103,10 +3133,10 @@ function zt(e) {
|
|
|
3103
3133
|
}
|
|
3104
3134
|
const b = /v-model="([^"]+)"/g;
|
|
3105
3135
|
for (; (c = b.exec(n)) !== null; ) {
|
|
3106
|
-
const m = c[0],
|
|
3107
|
-
if (x !==
|
|
3136
|
+
const m = c[0], g = c[1], x = H(g, r);
|
|
3137
|
+
if (x !== g) {
|
|
3108
3138
|
const w = G(n, c.index);
|
|
3109
|
-
|
|
3139
|
+
i.push({
|
|
3110
3140
|
start: c.index,
|
|
3111
3141
|
end: c.index + m.length,
|
|
3112
3142
|
original: m,
|
|
@@ -3116,7 +3146,7 @@ function zt(e) {
|
|
|
3116
3146
|
}), u.push({
|
|
3117
3147
|
line: w.line + 1,
|
|
3118
3148
|
column: w.column,
|
|
3119
|
-
original:
|
|
3149
|
+
original: g,
|
|
3120
3150
|
fixed: x,
|
|
3121
3151
|
message: "修复 v-model 指令:添加 state. 前缀"
|
|
3122
3152
|
});
|
|
@@ -3124,10 +3154,10 @@ function zt(e) {
|
|
|
3124
3154
|
}
|
|
3125
3155
|
const h = /v-bind="([^"]+)"/g;
|
|
3126
3156
|
for (; (c = h.exec(n)) !== null; ) {
|
|
3127
|
-
const m = c[0],
|
|
3128
|
-
if (x !==
|
|
3157
|
+
const m = c[0], g = c[1], x = H(g, r);
|
|
3158
|
+
if (x !== g) {
|
|
3129
3159
|
const w = G(n, c.index);
|
|
3130
|
-
|
|
3160
|
+
i.push({
|
|
3131
3161
|
start: c.index,
|
|
3132
3162
|
end: c.index + m.length,
|
|
3133
3163
|
original: m,
|
|
@@ -3137,7 +3167,7 @@ function zt(e) {
|
|
|
3137
3167
|
}), u.push({
|
|
3138
3168
|
line: w.line + 1,
|
|
3139
3169
|
column: w.column,
|
|
3140
|
-
original:
|
|
3170
|
+
original: g,
|
|
3141
3171
|
fixed: x,
|
|
3142
3172
|
message: "修复 v-bind 指令:添加 state. 前缀"
|
|
3143
3173
|
});
|
|
@@ -3145,14 +3175,14 @@ function zt(e) {
|
|
|
3145
3175
|
}
|
|
3146
3176
|
const S = /v-(text|html)="([^"]+)"/g;
|
|
3147
3177
|
for (; (c = S.exec(n)) !== null; ) {
|
|
3148
|
-
const m = c[0],
|
|
3178
|
+
const m = c[0], g = c[1], x = c[2], w = H(x, r);
|
|
3149
3179
|
if (w !== x) {
|
|
3150
3180
|
const I = G(n, c.index);
|
|
3151
|
-
|
|
3181
|
+
i.push({
|
|
3152
3182
|
start: c.index,
|
|
3153
3183
|
end: c.index + m.length,
|
|
3154
3184
|
original: m,
|
|
3155
|
-
replacement: `v-${
|
|
3185
|
+
replacement: `v-${g}="${w}"`,
|
|
3156
3186
|
line: I.line,
|
|
3157
3187
|
column: I.column
|
|
3158
3188
|
}), u.push({
|
|
@@ -3160,20 +3190,20 @@ function zt(e) {
|
|
|
3160
3190
|
column: I.column,
|
|
3161
3191
|
original: x,
|
|
3162
3192
|
fixed: w,
|
|
3163
|
-
message: `修复 v-${
|
|
3193
|
+
message: `修复 v-${g} 指令:添加 state. 前缀`
|
|
3164
3194
|
});
|
|
3165
3195
|
}
|
|
3166
3196
|
}
|
|
3167
3197
|
const E = /(@|v-on:)(\w+)="([^"]+)"/g;
|
|
3168
3198
|
for (; (c = E.exec(n)) !== null; ) {
|
|
3169
|
-
const m = c[0],
|
|
3199
|
+
const m = c[0], g = c[1], x = c[2], w = c[3], I = Qt(w, r);
|
|
3170
3200
|
if (I !== w) {
|
|
3171
3201
|
const D = G(n, c.index);
|
|
3172
|
-
|
|
3202
|
+
i.push({
|
|
3173
3203
|
start: c.index,
|
|
3174
3204
|
end: c.index + m.length,
|
|
3175
3205
|
original: m,
|
|
3176
|
-
replacement: `${
|
|
3206
|
+
replacement: `${g}${x}="${I}"`,
|
|
3177
3207
|
line: D.line,
|
|
3178
3208
|
column: D.column
|
|
3179
3209
|
}), u.push({
|
|
@@ -3185,22 +3215,22 @@ function zt(e) {
|
|
|
3185
3215
|
});
|
|
3186
3216
|
}
|
|
3187
3217
|
}
|
|
3188
|
-
if (
|
|
3189
|
-
|
|
3190
|
-
}),
|
|
3191
|
-
const m = e.indexOf("<template>"),
|
|
3218
|
+
if (i.sort((m, g) => g.start - m.start), i.forEach((m) => {
|
|
3219
|
+
s = s.substring(0, m.start) + m.replacement + s.substring(m.end);
|
|
3220
|
+
}), i.length > 0) {
|
|
3221
|
+
const m = e.indexOf("<template>"), g = e.lastIndexOf("</template>") + 11;
|
|
3192
3222
|
t = e.substring(0, m) + `<template>
|
|
3193
|
-
` +
|
|
3194
|
-
</template>` + e.substring(
|
|
3223
|
+
` + s + `
|
|
3224
|
+
</template>` + e.substring(g);
|
|
3195
3225
|
}
|
|
3196
3226
|
return {
|
|
3197
|
-
fixed:
|
|
3227
|
+
fixed: i.length > 0,
|
|
3198
3228
|
originalCode: e,
|
|
3199
3229
|
fixedCode: t,
|
|
3200
3230
|
changes: u
|
|
3201
3231
|
};
|
|
3202
3232
|
}
|
|
3203
|
-
function
|
|
3233
|
+
function Zt(e) {
|
|
3204
3234
|
const u = /* @__PURE__ */ new Set();
|
|
3205
3235
|
try {
|
|
3206
3236
|
const t = B(e);
|
|
@@ -3208,8 +3238,8 @@ function Xt(e) {
|
|
|
3208
3238
|
CallExpression(a) {
|
|
3209
3239
|
if (a.node.callee.type === "Identifier" && a.node.callee.name === "reactive" && a.node.arguments.length > 0 && a.node.arguments[0].type === "ObjectExpression") {
|
|
3210
3240
|
const r = a.parent;
|
|
3211
|
-
r.type === "VariableDeclarator" && r.id.type === "Identifier" && r.id.name === "state" && a.node.arguments[0].properties.forEach((
|
|
3212
|
-
|
|
3241
|
+
r.type === "VariableDeclarator" && r.id.type === "Identifier" && r.id.name === "state" && a.node.arguments[0].properties.forEach((s) => {
|
|
3242
|
+
s.type === "ObjectProperty" && s.key.type === "Identifier" && u.add(s.key.name);
|
|
3213
3243
|
});
|
|
3214
3244
|
}
|
|
3215
3245
|
}
|
|
@@ -3236,7 +3266,7 @@ function Qt(e, u) {
|
|
|
3236
3266
|
`(\\+\\+|--)?(?<![\\w.])${a}(?![\\w])`,
|
|
3237
3267
|
"g"
|
|
3238
3268
|
);
|
|
3239
|
-
t.includes(`state.${a}`) || (t = t.replace(r, `state.${a}$1`), t = t.replace(n, (
|
|
3269
|
+
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));
|
|
3240
3270
|
}), H(t, u);
|
|
3241
3271
|
}
|
|
3242
3272
|
function G(e, u) {
|
|
@@ -3247,15 +3277,15 @@ function G(e, u) {
|
|
|
3247
3277
|
column: t[t.length - 1].length
|
|
3248
3278
|
};
|
|
3249
3279
|
}
|
|
3250
|
-
class
|
|
3280
|
+
class Kt {
|
|
3251
3281
|
fixBasedOnValidation(u, t) {
|
|
3252
3282
|
let a = u;
|
|
3253
|
-
return t.illegalVantIcons.length && (a = this.fixVantIcons(a)), t.illegalVtjIcons.length && (a = this.fixVtjIcons(a, t.illegalVtjIcons)),
|
|
3283
|
+
return t.illegalVantIcons.length && (a = this.fixVantIcons(a)), t.illegalVtjIcons.length && (a = this.fixVtjIcons(a, t.illegalVtjIcons)), Xt(a).fixedCode;
|
|
3254
3284
|
}
|
|
3255
3285
|
fixVantIcons(u) {
|
|
3256
3286
|
const t = M(u), a = t.template.replace(
|
|
3257
3287
|
/<(?:VanIcon|van-icon)\s+[^>]*name="([^"]+)"[^>]*>/g,
|
|
3258
|
-
(r, n) => r.includes(":name=") || r.includes("v-bind:name=") ||
|
|
3288
|
+
(r, n) => r.includes(":name=") || r.includes("v-bind:name=") || ie.includes(n) ? r : r.replace(n, Jt)
|
|
3259
3289
|
);
|
|
3260
3290
|
return this.reconstructSFC(t, a, t.script);
|
|
3261
3291
|
}
|
|
@@ -3263,36 +3293,36 @@ class Zt {
|
|
|
3263
3293
|
const a = M(u);
|
|
3264
3294
|
let r = !1;
|
|
3265
3295
|
a.script = Ju(a.script, {
|
|
3266
|
-
ImportDeclaration(
|
|
3267
|
-
if (
|
|
3268
|
-
const o =
|
|
3296
|
+
ImportDeclaration(i) {
|
|
3297
|
+
if (i.node.source.value === "@vtj/icons") {
|
|
3298
|
+
const o = i.node.specifiers, c = [];
|
|
3269
3299
|
let d = !1;
|
|
3270
|
-
for (const
|
|
3271
|
-
const p =
|
|
3272
|
-
p ===
|
|
3273
|
-
q.importSpecifier(
|
|
3300
|
+
for (const l of o) {
|
|
3301
|
+
const p = l.imported?.name;
|
|
3302
|
+
p === L && (d = !0, r = !0), t.includes(p) || c.push(
|
|
3303
|
+
q.importSpecifier(l.local, l.imported)
|
|
3274
3304
|
);
|
|
3275
3305
|
}
|
|
3276
3306
|
!d && !r && (r = !0, c.push(
|
|
3277
3307
|
q.importSpecifier(
|
|
3278
|
-
q.identifier(
|
|
3279
|
-
q.identifier(
|
|
3308
|
+
q.identifier(L),
|
|
3309
|
+
q.identifier(L)
|
|
3280
3310
|
)
|
|
3281
|
-
)),
|
|
3311
|
+
)), i.node.specifiers = c;
|
|
3282
3312
|
}
|
|
3283
3313
|
},
|
|
3284
|
-
ObjectMethod(
|
|
3285
|
-
if (
|
|
3286
|
-
const o =
|
|
3314
|
+
ObjectMethod(i) {
|
|
3315
|
+
if (i.node.key.name === "setup") {
|
|
3316
|
+
const o = i.node.body.body;
|
|
3287
3317
|
for (const c of o)
|
|
3288
3318
|
if (q.isReturnStatement(c) && q.isObjectExpression(c.argument)) {
|
|
3289
3319
|
const d = c.argument.properties || [];
|
|
3290
3320
|
c.argument.properties = d.filter(
|
|
3291
|
-
(
|
|
3321
|
+
(l) => !t.includes(l.key.name)
|
|
3292
3322
|
), c.argument.properties.push(
|
|
3293
3323
|
q.objectProperty(
|
|
3294
|
-
q.identifier(
|
|
3295
|
-
q.identifier(
|
|
3324
|
+
q.identifier(L),
|
|
3325
|
+
q.identifier(L),
|
|
3296
3326
|
!1,
|
|
3297
3327
|
!0
|
|
3298
3328
|
)
|
|
@@ -3300,28 +3330,28 @@ class Zt {
|
|
|
3300
3330
|
}
|
|
3301
3331
|
}
|
|
3302
3332
|
},
|
|
3303
|
-
ObjectProperty(
|
|
3304
|
-
if (q.isIdentifier(
|
|
3305
|
-
const o =
|
|
3306
|
-
|
|
3333
|
+
ObjectProperty(i) {
|
|
3334
|
+
if (q.isIdentifier(i.node.value) && t.includes(i.node.value.name) && (i.node.value = q.identifier(L)), q.isArrayExpression(i.node.value)) {
|
|
3335
|
+
const o = i.node.value.elements;
|
|
3336
|
+
i.node.value.elements = o.map((c) => q.isIdentifier(c) && t.includes(c.name) ? q.identifier(L) : c);
|
|
3307
3337
|
}
|
|
3308
3338
|
},
|
|
3309
|
-
AssignmentExpression(
|
|
3310
|
-
q.isIdentifier(
|
|
3339
|
+
AssignmentExpression(i) {
|
|
3340
|
+
q.isIdentifier(i.node.right) && t.includes(i.node.right.name) && (i.node.right = q.identifier(L));
|
|
3311
3341
|
}
|
|
3312
3342
|
});
|
|
3313
|
-
const n = /:icon\s*=\s*["']([^"']+)["']/g,
|
|
3314
|
-
if (
|
|
3315
|
-
for (const
|
|
3316
|
-
let o =
|
|
3343
|
+
const n = /:icon\s*=\s*["']([^"']+)["']/g, s = a.template.match(n);
|
|
3344
|
+
if (s)
|
|
3345
|
+
for (const i of s) {
|
|
3346
|
+
let o = i;
|
|
3317
3347
|
for (const c of t)
|
|
3318
|
-
o = o.replace(new RegExp(c, "g"),
|
|
3319
|
-
a.template = a.template.replace(
|
|
3348
|
+
o = o.replace(new RegExp(c, "g"), L);
|
|
3349
|
+
a.template = a.template.replace(i, o);
|
|
3320
3350
|
}
|
|
3321
|
-
for (const
|
|
3351
|
+
for (const i of t)
|
|
3322
3352
|
a.template = a.template.replace(
|
|
3323
|
-
new RegExp(`:icon="${
|
|
3324
|
-
`:icon="${
|
|
3353
|
+
new RegExp(`:icon="${i}"`, "g"),
|
|
3354
|
+
`:icon="${L}"`
|
|
3325
3355
|
);
|
|
3326
3356
|
return this.reconstructSFC(a, a.template, a.script);
|
|
3327
3357
|
}
|
|
@@ -3348,59 +3378,59 @@ ${a}
|
|
|
3348
3378
|
}), r;
|
|
3349
3379
|
}
|
|
3350
3380
|
}
|
|
3351
|
-
async function
|
|
3352
|
-
const { id: u, name: t, source: a, project: r } = e, n =
|
|
3381
|
+
async function b0(e) {
|
|
3382
|
+
const { id: u, name: t, source: a, project: r } = e, n = ke(a, t);
|
|
3353
3383
|
if (n)
|
|
3354
3384
|
return Promise.reject(n);
|
|
3355
|
-
const { dependencies:
|
|
3356
|
-
let
|
|
3385
|
+
const { dependencies: s = [], platform: i = "web" } = r || {}, o = new zt(), c = new Kt(), d = o.validate(a);
|
|
3386
|
+
let l = [];
|
|
3357
3387
|
if (!d.valid)
|
|
3358
|
-
return
|
|
3388
|
+
return l = d.errors, Promise.reject(l);
|
|
3359
3389
|
const p = c.fixBasedOnValidation(a, d), b = M(p);
|
|
3360
|
-
b.script =
|
|
3390
|
+
b.script = Ae(b.script);
|
|
3361
3391
|
const {
|
|
3362
3392
|
styles: h,
|
|
3363
3393
|
css: S,
|
|
3364
3394
|
errors: E
|
|
3365
3395
|
} = Ot(b.styles.join(`
|
|
3366
3396
|
`));
|
|
3367
|
-
return
|
|
3397
|
+
return l.push(...E), l.length ? Promise.reject(l) : b.isScriptSetup ? u0(b, {
|
|
3368
3398
|
id: u,
|
|
3369
3399
|
name: t,
|
|
3370
3400
|
project: r,
|
|
3371
|
-
platform:
|
|
3372
|
-
dependencies:
|
|
3401
|
+
platform: i,
|
|
3402
|
+
dependencies: s,
|
|
3373
3403
|
styles: h,
|
|
3374
3404
|
css: S
|
|
3375
|
-
}) :
|
|
3405
|
+
}) : Yt(b, {
|
|
3376
3406
|
id: u,
|
|
3377
3407
|
name: t,
|
|
3378
3408
|
project: r,
|
|
3379
|
-
platform:
|
|
3380
|
-
dependencies:
|
|
3409
|
+
platform: i,
|
|
3410
|
+
dependencies: s,
|
|
3381
3411
|
styles: h,
|
|
3382
3412
|
css: S
|
|
3383
3413
|
});
|
|
3384
3414
|
}
|
|
3385
|
-
async function
|
|
3386
|
-
const { id: t, name: a, project: r, platform: n, dependencies:
|
|
3415
|
+
async function Yt(e, u) {
|
|
3416
|
+
const { id: t, name: a, project: r, platform: n, dependencies: s, styles: i, css: o } = u, {
|
|
3387
3417
|
state: c,
|
|
3388
3418
|
watch: d,
|
|
3389
|
-
lifeCycles:
|
|
3419
|
+
lifeCycles: l,
|
|
3390
3420
|
computed: p,
|
|
3391
3421
|
methods: b,
|
|
3392
3422
|
props: h,
|
|
3393
3423
|
emits: S,
|
|
3394
3424
|
expose: E,
|
|
3395
3425
|
inject: m,
|
|
3396
|
-
handlers:
|
|
3426
|
+
handlers: g,
|
|
3397
3427
|
imports: x,
|
|
3398
3428
|
dataSources: w,
|
|
3399
3429
|
directives: I
|
|
3400
|
-
} =
|
|
3430
|
+
} = et(e.script, r), { nodes: D, slots: $, context: lu } = re(t, a, e.template, {
|
|
3401
3431
|
platform: n,
|
|
3402
|
-
handlers:
|
|
3403
|
-
styles:
|
|
3432
|
+
handlers: g,
|
|
3433
|
+
styles: i,
|
|
3404
3434
|
imports: x,
|
|
3405
3435
|
directives: I
|
|
3406
3436
|
}), yu = {
|
|
@@ -3410,17 +3440,17 @@ async function Kt(e, u) {
|
|
|
3410
3440
|
props: h,
|
|
3411
3441
|
state: c,
|
|
3412
3442
|
watch: d,
|
|
3413
|
-
lifeCycles:
|
|
3443
|
+
lifeCycles: l,
|
|
3414
3444
|
computed: p,
|
|
3415
3445
|
methods: b,
|
|
3416
3446
|
dataSources: w,
|
|
3417
|
-
slots:
|
|
3447
|
+
slots: $,
|
|
3418
3448
|
emits: S,
|
|
3419
3449
|
expose: E,
|
|
3420
3450
|
nodes: D,
|
|
3421
3451
|
css: o
|
|
3422
|
-
},
|
|
3423
|
-
(
|
|
3452
|
+
}, le = Object.keys(p || {}), fe = (h || []).map(
|
|
3453
|
+
(F) => typeof F == "string" ? F : F.name
|
|
3424
3454
|
), be = [
|
|
3425
3455
|
"$el",
|
|
3426
3456
|
"$emit",
|
|
@@ -3438,35 +3468,35 @@ async function Kt(e, u) {
|
|
|
3438
3468
|
"$props",
|
|
3439
3469
|
"props",
|
|
3440
3470
|
...Object.keys(b || {})
|
|
3441
|
-
], { libs: pe } = de(x,
|
|
3471
|
+
], { libs: pe } = de(x, s), Su = {
|
|
3442
3472
|
platform: n,
|
|
3443
|
-
context:
|
|
3444
|
-
computed:
|
|
3473
|
+
context: lu,
|
|
3474
|
+
computed: le,
|
|
3445
3475
|
libs: pe,
|
|
3446
3476
|
members: be,
|
|
3447
|
-
props:
|
|
3477
|
+
props: fe
|
|
3448
3478
|
};
|
|
3449
3479
|
return await ce(
|
|
3450
3480
|
yu,
|
|
3451
|
-
async (
|
|
3452
|
-
await oe(
|
|
3453
|
-
if (
|
|
3454
|
-
const he = await
|
|
3455
|
-
K.value = Iu(he,
|
|
3481
|
+
async (F) => {
|
|
3482
|
+
await oe(F, async (K) => {
|
|
3483
|
+
if (du(K)) {
|
|
3484
|
+
const he = await ru(K.value);
|
|
3485
|
+
K.value = Iu(he, F.id, Su);
|
|
3456
3486
|
}
|
|
3457
3487
|
});
|
|
3458
3488
|
},
|
|
3459
|
-
async (
|
|
3460
|
-
const K = await
|
|
3461
|
-
|
|
3489
|
+
async (F) => {
|
|
3490
|
+
const K = await ru(F.value);
|
|
3491
|
+
F.value = Iu(K, "", Su);
|
|
3462
3492
|
}
|
|
3463
3493
|
), new Hu(yu).toDsl();
|
|
3464
3494
|
}
|
|
3465
|
-
async function
|
|
3466
|
-
const { id: t, name: a, project: r, platform: n, styles:
|
|
3495
|
+
async function u0(e, u) {
|
|
3496
|
+
const { id: t, name: a, project: r, platform: n, styles: s, css: i, dependencies: o } = u, c = Nt(e.script, r), { nodes: d, slots: l, context: p } = re(t, a, e.template, {
|
|
3467
3497
|
platform: n,
|
|
3468
3498
|
handlers: c.handlers,
|
|
3469
|
-
styles:
|
|
3499
|
+
styles: s,
|
|
3470
3500
|
imports: c.imports,
|
|
3471
3501
|
directives: c.directives
|
|
3472
3502
|
}), b = {
|
|
@@ -3486,12 +3516,12 @@ async function Yt(e, u) {
|
|
|
3486
3516
|
computed: c.computed,
|
|
3487
3517
|
methods: c.methods,
|
|
3488
3518
|
dataSources: c.dataSources,
|
|
3489
|
-
slots:
|
|
3519
|
+
slots: l,
|
|
3490
3520
|
emits: c.emits,
|
|
3491
3521
|
expose: c.expose,
|
|
3492
3522
|
nodes: d,
|
|
3493
|
-
css:
|
|
3494
|
-
}, { libs: h } = de(c.imports, o), S =
|
|
3523
|
+
css: i
|
|
3524
|
+
}, { libs: h } = de(c.imports, o), S = Ht(c), E = {
|
|
3495
3525
|
refs: Array.from(S.refs),
|
|
3496
3526
|
reactives: Array.from(S.reactives),
|
|
3497
3527
|
hasState: S.hasState,
|
|
@@ -3507,29 +3537,29 @@ async function Yt(e, u) {
|
|
|
3507
3537
|
};
|
|
3508
3538
|
return await ce(
|
|
3509
3539
|
b,
|
|
3510
|
-
async (
|
|
3511
|
-
await oe(
|
|
3512
|
-
if (
|
|
3513
|
-
const w = await
|
|
3514
|
-
let I =
|
|
3540
|
+
async (g) => {
|
|
3541
|
+
await oe(g, async (x) => {
|
|
3542
|
+
if (du(x)) {
|
|
3543
|
+
const w = await ru(x.value);
|
|
3544
|
+
let I = Fu(w, E);
|
|
3515
3545
|
const D = Array.from(
|
|
3516
|
-
p[
|
|
3546
|
+
p[g.id] || /* @__PURE__ */ new Set()
|
|
3517
3547
|
);
|
|
3518
|
-
for (const
|
|
3519
|
-
I = R(I,
|
|
3548
|
+
for (const $ of D)
|
|
3549
|
+
I = R(I, $, `this.context.${$}`);
|
|
3520
3550
|
x.value = I;
|
|
3521
3551
|
}
|
|
3522
3552
|
});
|
|
3523
3553
|
},
|
|
3524
|
-
async (
|
|
3525
|
-
const x = await
|
|
3526
|
-
|
|
3554
|
+
async (g) => {
|
|
3555
|
+
const x = await ru(g.value);
|
|
3556
|
+
g.value = Fu(x, E);
|
|
3527
3557
|
}
|
|
3528
3558
|
), new Hu(b).toDsl();
|
|
3529
3559
|
}
|
|
3530
3560
|
async function ce(e, u, t) {
|
|
3531
|
-
const a = async (m,
|
|
3532
|
-
if (await u(m,
|
|
3561
|
+
const a = async (m, g) => {
|
|
3562
|
+
if (await u(m, g), Array.isArray(m?.children))
|
|
3533
3563
|
for (const x of m?.children || [])
|
|
3534
3564
|
await a(x, m);
|
|
3535
3565
|
}, r = async (m) => {
|
|
@@ -3539,17 +3569,17 @@ async function ce(e, u, t) {
|
|
|
3539
3569
|
await r(x);
|
|
3540
3570
|
return;
|
|
3541
3571
|
}
|
|
3542
|
-
const
|
|
3543
|
-
for (const x of
|
|
3544
|
-
|
|
3572
|
+
const g = Object.values(m);
|
|
3573
|
+
for (const x of g)
|
|
3574
|
+
du(x) ? await t(x) : await r(x);
|
|
3545
3575
|
}, {
|
|
3546
3576
|
state: n,
|
|
3547
|
-
watch:
|
|
3548
|
-
computed:
|
|
3577
|
+
watch: s,
|
|
3578
|
+
computed: i,
|
|
3549
3579
|
props: o,
|
|
3550
3580
|
dataSources: c,
|
|
3551
3581
|
methods: d,
|
|
3552
|
-
lifeCycles:
|
|
3582
|
+
lifeCycles: l,
|
|
3553
3583
|
inject: p,
|
|
3554
3584
|
setup: b,
|
|
3555
3585
|
provide: h,
|
|
@@ -3558,12 +3588,12 @@ async function ce(e, u, t) {
|
|
|
3558
3588
|
} = e;
|
|
3559
3589
|
if (await r({
|
|
3560
3590
|
state: n,
|
|
3561
|
-
watch:
|
|
3562
|
-
computed:
|
|
3591
|
+
watch: s,
|
|
3592
|
+
computed: i,
|
|
3563
3593
|
props: o,
|
|
3564
3594
|
dataSources: c,
|
|
3565
3595
|
methods: d,
|
|
3566
|
-
lifeCycles:
|
|
3596
|
+
lifeCycles: l,
|
|
3567
3597
|
inject: p,
|
|
3568
3598
|
setup: b,
|
|
3569
3599
|
provide: h,
|
|
@@ -3581,7 +3611,7 @@ async function oe(e, u) {
|
|
|
3581
3611
|
await u(n), await t(n);
|
|
3582
3612
|
return;
|
|
3583
3613
|
}
|
|
3584
|
-
if (
|
|
3614
|
+
if (du(a)) {
|
|
3585
3615
|
await u(a);
|
|
3586
3616
|
return;
|
|
3587
3617
|
}
|
|
@@ -3598,25 +3628,25 @@ function de(e = [], u = []) {
|
|
|
3598
3628
|
);
|
|
3599
3629
|
for (const { from: r, imports: n } of e)
|
|
3600
3630
|
if (Array.isArray(n))
|
|
3601
|
-
n.forEach((
|
|
3602
|
-
const
|
|
3603
|
-
|
|
3631
|
+
n.forEach((s) => {
|
|
3632
|
+
const i = a[r];
|
|
3633
|
+
i && (t[s] = i);
|
|
3604
3634
|
});
|
|
3605
3635
|
else {
|
|
3606
|
-
const
|
|
3607
|
-
|
|
3636
|
+
const s = a[r];
|
|
3637
|
+
s && (t[n] = s);
|
|
3608
3638
|
}
|
|
3609
3639
|
return {
|
|
3610
3640
|
libs: t
|
|
3611
3641
|
};
|
|
3612
3642
|
}
|
|
3613
3643
|
export {
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3644
|
+
Kt as AutoFixer,
|
|
3645
|
+
zt as ComponentValidator,
|
|
3646
|
+
l0 as VTJ_PARSER_VERSION,
|
|
3617
3647
|
qu as htmlToNodes,
|
|
3618
3648
|
f0 as parseUniApp,
|
|
3619
|
-
|
|
3649
|
+
b0 as parseVue,
|
|
3620
3650
|
Iu as patchCode,
|
|
3621
3651
|
R as replacer
|
|
3622
3652
|
};
|