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