sval 0.6.9 → 0.6.10
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/.claude/settings.local.json +10 -0
- package/README.md +24 -24
- package/dist/src/share/const.d.ts +1 -0
- package/dist/sval.js +612 -606
- package/dist/sval.min.js +1 -1
- package/dist/sval.umd.cjs +5 -5
- package/package.json +1 -1
package/dist/sval.js
CHANGED
|
@@ -1,233 +1,233 @@
|
|
|
1
|
-
const
|
|
1
|
+
const xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2
2
|
__proto__: null,
|
|
3
3
|
get BlockStatement() {
|
|
4
4
|
return ne;
|
|
5
5
|
},
|
|
6
6
|
get BreakStatement() {
|
|
7
|
-
return
|
|
7
|
+
return Ka;
|
|
8
8
|
},
|
|
9
9
|
get CatchClause() {
|
|
10
|
-
return
|
|
10
|
+
return Ui;
|
|
11
11
|
},
|
|
12
12
|
get ContinueStatement() {
|
|
13
|
-
return
|
|
13
|
+
return Qa;
|
|
14
14
|
},
|
|
15
15
|
get DebuggerStatement() {
|
|
16
|
-
return
|
|
16
|
+
return Ga;
|
|
17
17
|
},
|
|
18
18
|
get DoWhileStatement() {
|
|
19
|
-
return
|
|
19
|
+
return qi;
|
|
20
20
|
},
|
|
21
21
|
get EmptyStatement() {
|
|
22
|
-
return
|
|
22
|
+
return za;
|
|
23
23
|
},
|
|
24
24
|
get ExpressionStatement() {
|
|
25
|
-
return
|
|
25
|
+
return Wa;
|
|
26
26
|
},
|
|
27
27
|
get ForInStatement() {
|
|
28
|
-
return
|
|
28
|
+
return zi;
|
|
29
29
|
},
|
|
30
30
|
get ForOfStatement() {
|
|
31
|
-
return
|
|
31
|
+
return Gi;
|
|
32
32
|
},
|
|
33
33
|
get ForStatement() {
|
|
34
|
-
return
|
|
34
|
+
return Wi;
|
|
35
35
|
},
|
|
36
36
|
get IfStatement() {
|
|
37
|
-
return
|
|
37
|
+
return Fi;
|
|
38
38
|
},
|
|
39
39
|
get LabeledStatement() {
|
|
40
|
-
return
|
|
40
|
+
return Xa;
|
|
41
41
|
},
|
|
42
42
|
get ReturnStatement() {
|
|
43
|
-
return
|
|
43
|
+
return Ha;
|
|
44
44
|
},
|
|
45
45
|
get SwitchCase() {
|
|
46
46
|
return xt;
|
|
47
47
|
},
|
|
48
48
|
get SwitchStatement() {
|
|
49
|
-
return
|
|
49
|
+
return Mi;
|
|
50
50
|
},
|
|
51
51
|
get ThrowStatement() {
|
|
52
|
-
return
|
|
52
|
+
return Ya;
|
|
53
53
|
},
|
|
54
54
|
get TryStatement() {
|
|
55
|
-
return
|
|
55
|
+
return ji;
|
|
56
56
|
},
|
|
57
57
|
get WhileStatement() {
|
|
58
|
-
return
|
|
58
|
+
return $i;
|
|
59
59
|
},
|
|
60
60
|
get WithStatement() {
|
|
61
|
-
return
|
|
61
|
+
return Di;
|
|
62
62
|
}
|
|
63
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
63
|
+
}, Symbol.toStringTag, { value: "Module" })), br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
64
64
|
__proto__: null,
|
|
65
65
|
get ClassBody() {
|
|
66
|
-
return
|
|
66
|
+
return Ki;
|
|
67
67
|
},
|
|
68
68
|
get ClassDeclaration() {
|
|
69
|
-
return
|
|
69
|
+
return Ja;
|
|
70
70
|
},
|
|
71
71
|
get ExportAllDeclaration() {
|
|
72
|
-
return
|
|
72
|
+
return rs;
|
|
73
73
|
},
|
|
74
74
|
get ExportDefaultDeclaration() {
|
|
75
|
-
return
|
|
75
|
+
return ts;
|
|
76
76
|
},
|
|
77
77
|
get ExportNamedDeclaration() {
|
|
78
|
-
return
|
|
78
|
+
return is;
|
|
79
79
|
},
|
|
80
80
|
get FunctionDeclaration() {
|
|
81
|
-
return
|
|
81
|
+
return Za;
|
|
82
82
|
},
|
|
83
83
|
get ImportDeclaration() {
|
|
84
|
-
return
|
|
84
|
+
return es;
|
|
85
85
|
},
|
|
86
86
|
get MethodDefinition() {
|
|
87
|
-
return
|
|
87
|
+
return Qi;
|
|
88
88
|
},
|
|
89
89
|
get PropertyDefinition() {
|
|
90
|
-
return
|
|
90
|
+
return Tt;
|
|
91
91
|
},
|
|
92
92
|
get StaticBlock() {
|
|
93
|
-
return
|
|
93
|
+
return Xi;
|
|
94
94
|
},
|
|
95
95
|
get VariableDeclaration() {
|
|
96
96
|
return ge;
|
|
97
97
|
},
|
|
98
98
|
get VariableDeclarator() {
|
|
99
|
-
return
|
|
99
|
+
return Hi;
|
|
100
100
|
}
|
|
101
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
101
|
+
}, Symbol.toStringTag, { value: "Module" })), vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
102
102
|
__proto__: null,
|
|
103
103
|
get BlockStatement() {
|
|
104
104
|
return oe;
|
|
105
105
|
},
|
|
106
106
|
get BreakStatement() {
|
|
107
|
-
return
|
|
107
|
+
return Rs;
|
|
108
108
|
},
|
|
109
109
|
get CatchClause() {
|
|
110
|
-
return
|
|
110
|
+
return or;
|
|
111
111
|
},
|
|
112
112
|
get ContinueStatement() {
|
|
113
|
-
return
|
|
113
|
+
return Bs;
|
|
114
114
|
},
|
|
115
115
|
get DebuggerStatement() {
|
|
116
116
|
return Vs;
|
|
117
117
|
},
|
|
118
118
|
get DoWhileStatement() {
|
|
119
|
-
return
|
|
119
|
+
return lr;
|
|
120
120
|
},
|
|
121
121
|
get EmptyStatement() {
|
|
122
|
-
return
|
|
122
|
+
return Ts;
|
|
123
123
|
},
|
|
124
124
|
get ExpressionStatement() {
|
|
125
|
-
return
|
|
125
|
+
return Ls;
|
|
126
126
|
},
|
|
127
127
|
get ForInStatement() {
|
|
128
|
-
return
|
|
128
|
+
return fr;
|
|
129
129
|
},
|
|
130
130
|
get ForOfStatement() {
|
|
131
131
|
return hr;
|
|
132
132
|
},
|
|
133
133
|
get ForStatement() {
|
|
134
|
-
return
|
|
134
|
+
return cr;
|
|
135
135
|
},
|
|
136
136
|
get IfStatement() {
|
|
137
|
-
return
|
|
137
|
+
return ar;
|
|
138
138
|
},
|
|
139
139
|
get LabeledStatement() {
|
|
140
|
-
return
|
|
140
|
+
return Os;
|
|
141
141
|
},
|
|
142
142
|
get ReturnStatement() {
|
|
143
|
-
return
|
|
143
|
+
return Ns;
|
|
144
144
|
},
|
|
145
145
|
get SwitchCase() {
|
|
146
146
|
return bt;
|
|
147
147
|
},
|
|
148
148
|
get SwitchStatement() {
|
|
149
|
-
return
|
|
149
|
+
return sr;
|
|
150
150
|
},
|
|
151
151
|
get ThrowStatement() {
|
|
152
|
-
return
|
|
152
|
+
return Ds;
|
|
153
153
|
},
|
|
154
154
|
get TryStatement() {
|
|
155
|
-
return
|
|
155
|
+
return nr;
|
|
156
156
|
},
|
|
157
157
|
get WhileStatement() {
|
|
158
|
-
return
|
|
158
|
+
return ur;
|
|
159
159
|
},
|
|
160
160
|
get WithStatement() {
|
|
161
|
-
return
|
|
161
|
+
return rr;
|
|
162
162
|
}
|
|
163
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
163
|
+
}, Symbol.toStringTag, { value: "Module" })), Sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
164
164
|
__proto__: null,
|
|
165
165
|
get ClassBody() {
|
|
166
|
-
return
|
|
166
|
+
return dr;
|
|
167
167
|
},
|
|
168
168
|
get ClassDeclaration() {
|
|
169
|
-
return
|
|
169
|
+
return Ms;
|
|
170
170
|
},
|
|
171
171
|
get ExportAllDeclaration() {
|
|
172
|
-
return
|
|
172
|
+
return qs;
|
|
173
173
|
},
|
|
174
174
|
get ExportDefaultDeclaration() {
|
|
175
|
-
return
|
|
175
|
+
return Us;
|
|
176
176
|
},
|
|
177
177
|
get ExportNamedDeclaration() {
|
|
178
|
-
return
|
|
178
|
+
return $s;
|
|
179
179
|
},
|
|
180
180
|
get FunctionDeclaration() {
|
|
181
|
-
return
|
|
181
|
+
return Fs;
|
|
182
182
|
},
|
|
183
183
|
get ImportDeclaration() {
|
|
184
|
-
return
|
|
184
|
+
return js;
|
|
185
185
|
},
|
|
186
186
|
get MethodDefinition() {
|
|
187
|
-
return
|
|
187
|
+
return yr;
|
|
188
188
|
},
|
|
189
189
|
get PropertyDefinition() {
|
|
190
190
|
return Vt;
|
|
191
191
|
},
|
|
192
192
|
get StaticBlock() {
|
|
193
|
-
return
|
|
193
|
+
return mr;
|
|
194
194
|
},
|
|
195
195
|
get VariableDeclaration() {
|
|
196
196
|
return xe;
|
|
197
197
|
},
|
|
198
198
|
get VariableDeclarator() {
|
|
199
|
-
return
|
|
199
|
+
return pr;
|
|
200
200
|
}
|
|
201
|
-
}, Symbol.toStringTag, { value: "Module" })), Ge = Object.freeze, E = Object.defineProperty,
|
|
201
|
+
}, Symbol.toStringTag, { value: "Module" })), Ge = Object.freeze, E = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, wr = Object.prototype.hasOwnProperty;
|
|
202
202
|
function St(e, t) {
|
|
203
|
-
return
|
|
203
|
+
return wr.call(e, t);
|
|
204
204
|
}
|
|
205
|
-
const wt = Object.getOwnPropertyNames,
|
|
206
|
-
function
|
|
207
|
-
|
|
205
|
+
const wt = Object.getOwnPropertyNames, Ot = Object.setPrototypeOf;
|
|
206
|
+
function kr(e, t) {
|
|
207
|
+
Ot ? Ot(e, t) : e.__proto__ = t;
|
|
208
208
|
}
|
|
209
|
-
const
|
|
210
|
-
function
|
|
211
|
-
return
|
|
209
|
+
const Dt = Object.getPrototypeOf;
|
|
210
|
+
function Wt(e) {
|
|
211
|
+
return Dt ? Dt(e) : e.__proto__;
|
|
212
212
|
}
|
|
213
|
-
const
|
|
214
|
-
function
|
|
213
|
+
const Er = Object.getOwnPropertyDescriptor;
|
|
214
|
+
function zt(e, t, r) {
|
|
215
215
|
for (; t; ) {
|
|
216
|
-
const i =
|
|
216
|
+
const i = Er(t, r), a = typeof i < "u" && typeof i.writable > "u" && typeof i[e] == "function" && i[e];
|
|
217
217
|
if (a)
|
|
218
218
|
return a;
|
|
219
|
-
t =
|
|
219
|
+
t = Wt(t);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
function zt(e, t) {
|
|
223
|
-
return Wt("get", e, t);
|
|
224
|
-
}
|
|
225
222
|
function Gt(e, t) {
|
|
226
|
-
return
|
|
223
|
+
return zt("get", e, t);
|
|
227
224
|
}
|
|
228
|
-
const we = Object.create;
|
|
229
225
|
function Ht(e, t) {
|
|
230
|
-
|
|
226
|
+
return zt("set", e, t);
|
|
227
|
+
}
|
|
228
|
+
const we = Object.create;
|
|
229
|
+
function Kt(e, t) {
|
|
230
|
+
kr(e, t), e.prototype = we(t.prototype, {
|
|
231
231
|
constructor: {
|
|
232
232
|
value: e,
|
|
233
233
|
writable: !0
|
|
@@ -243,9 +243,9 @@ function Ze(e, t, r = []) {
|
|
|
243
243
|
);
|
|
244
244
|
} catch {
|
|
245
245
|
}
|
|
246
|
-
return i ? Reflect.construct(t, r,
|
|
246
|
+
return i ? Reflect.construct(t, r, Wt(e).constructor) : t.apply(e, r);
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function Cr(e) {
|
|
249
249
|
for (let t = 1; t < arguments.length; ++t) {
|
|
250
250
|
const r = arguments[t];
|
|
251
251
|
for (const i in r)
|
|
@@ -253,7 +253,7 @@ function Er(e) {
|
|
|
253
253
|
}
|
|
254
254
|
return e;
|
|
255
255
|
}
|
|
256
|
-
const U = Object.assign ||
|
|
256
|
+
const U = Object.assign || Cr;
|
|
257
257
|
let He = [], p = we(null);
|
|
258
258
|
const We = (e) => {
|
|
259
259
|
if (!e.Object) throw 0;
|
|
@@ -525,22 +525,22 @@ try {
|
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
p.Symbol && (!p.Symbol.iterator && (p.Symbol.iterator = R("iterator")), !p.Symbol.asyncIterator && (p.Symbol.asyncIterator = R("asynciterator")));
|
|
528
|
-
const
|
|
528
|
+
const Qt = we({});
|
|
529
529
|
for (let e = 0; e < He.length; e++) {
|
|
530
530
|
const t = He[e];
|
|
531
531
|
try {
|
|
532
|
-
|
|
532
|
+
Qt[t] = p[t];
|
|
533
533
|
} catch {
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
const Ne = R("window");
|
|
537
|
-
function
|
|
538
|
-
return U(we({ [Ne]: p }),
|
|
537
|
+
function _r() {
|
|
538
|
+
return U(we({ [Ne]: p }), Qt);
|
|
539
539
|
}
|
|
540
540
|
function R(e) {
|
|
541
541
|
return e + Math.random().toString(36).substring(2);
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Ir(e) {
|
|
544
544
|
let t;
|
|
545
545
|
if (typeof Symbol == "function" && (t = e[Symbol.asyncIterator], !t && (t = e[Symbol.iterator])), t)
|
|
546
546
|
return t.call(e);
|
|
@@ -555,17 +555,17 @@ function _r(e) {
|
|
|
555
555
|
};
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
var
|
|
558
|
+
var Ar = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], Xt = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], Pr = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Yt = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ut = {
|
|
559
559
|
3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
|
|
560
560
|
5: "class enum extends super const export import",
|
|
561
561
|
6: "enum",
|
|
562
562
|
strict: "implements interface let package private protected public static yield",
|
|
563
563
|
strictBind: "eval arguments"
|
|
564
|
-
}, lt = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",
|
|
564
|
+
}, lt = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", Lr = {
|
|
565
565
|
5: lt,
|
|
566
566
|
"5module": lt + " export import",
|
|
567
567
|
6: lt + " const class extends export import super"
|
|
568
|
-
},
|
|
568
|
+
}, Tr = /^in(stanceof)?$/, Vr = new RegExp("[" + Yt + "]"), Nr = new RegExp("[" + Yt + Pr + "]");
|
|
569
569
|
function pt(e, t) {
|
|
570
570
|
for (var r = 65536, i = 0; i < t.length; i += 2) {
|
|
571
571
|
if (r += t[i], r > e)
|
|
@@ -576,10 +576,10 @@ function pt(e, t) {
|
|
|
576
576
|
return !1;
|
|
577
577
|
}
|
|
578
578
|
function re(e, t) {
|
|
579
|
-
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Vr.test(String.fromCharCode(e)) : t === !1 ? !1 : pt(e,
|
|
579
|
+
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Vr.test(String.fromCharCode(e)) : t === !1 ? !1 : pt(e, Xt);
|
|
580
580
|
}
|
|
581
581
|
function ke(e, t) {
|
|
582
|
-
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 &&
|
|
582
|
+
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Nr.test(String.fromCharCode(e)) : t === !1 ? !1 : pt(e, Xt) || pt(e, Ar);
|
|
583
583
|
}
|
|
584
584
|
var k = function(t, r) {
|
|
585
585
|
r === void 0 && (r = {}), this.label = t, this.keyword = r.keyword, this.beforeExpr = !!r.beforeExpr, this.startsExpr = !!r.startsExpr, this.isLoop = !!r.isLoop, this.isAssign = !!r.isAssign, this.prefix = !!r.prefix, this.postfix = !!r.postfix, this.binop = r.binop || null, this.updateContext = null;
|
|
@@ -684,11 +684,11 @@ var o = {
|
|
|
684
684
|
_typeof: S("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
685
685
|
_void: S("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
686
686
|
_delete: S("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
|
|
687
|
-
}, K = /\r\n?|\n|\u2028|\u2029/,
|
|
687
|
+
}, K = /\r\n?|\n|\u2028|\u2029/, Rr = new RegExp(K.source, "g");
|
|
688
688
|
function Ie(e) {
|
|
689
689
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function Zt(e, t, r) {
|
|
692
692
|
r === void 0 && (r = e.length);
|
|
693
693
|
for (var i = t; i < r; i++) {
|
|
694
694
|
var a = e.charCodeAt(i);
|
|
@@ -697,18 +697,18 @@ function Yt(e, t, r) {
|
|
|
697
697
|
}
|
|
698
698
|
return -1;
|
|
699
699
|
}
|
|
700
|
-
var
|
|
701
|
-
return
|
|
702
|
-
},
|
|
703
|
-
return
|
|
704
|
-
},
|
|
700
|
+
var Jt = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, G = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, ei = Object.prototype, Br = ei.hasOwnProperty, Or = ei.toString, Ae = Object.hasOwn || function(e, t) {
|
|
701
|
+
return Br.call(e, t);
|
|
702
|
+
}, Ft = Array.isArray || function(e) {
|
|
703
|
+
return Or.call(e) === "[object Array]";
|
|
704
|
+
}, Mt = /* @__PURE__ */ Object.create(null);
|
|
705
705
|
function ce(e) {
|
|
706
|
-
return
|
|
706
|
+
return Mt[e] || (Mt[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
707
707
|
}
|
|
708
708
|
function ae(e) {
|
|
709
709
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
710
710
|
}
|
|
711
|
-
var
|
|
711
|
+
var Dr = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, Re = function(t, r) {
|
|
712
712
|
this.line = t, this.column = r;
|
|
713
713
|
};
|
|
714
714
|
Re.prototype.offset = function(t) {
|
|
@@ -717,9 +717,9 @@ Re.prototype.offset = function(t) {
|
|
|
717
717
|
var Je = function(t, r, i) {
|
|
718
718
|
this.start = r, this.end = i, t.sourceFile !== null && (this.source = t.sourceFile);
|
|
719
719
|
};
|
|
720
|
-
function
|
|
720
|
+
function ti(e, t) {
|
|
721
721
|
for (var r = 1, i = 0; ; ) {
|
|
722
|
-
var a =
|
|
722
|
+
var a = Zt(e, i, t);
|
|
723
723
|
if (a < 0)
|
|
724
724
|
return new Re(r, t - i);
|
|
725
725
|
++r, i = a;
|
|
@@ -821,21 +821,21 @@ var dt = {
|
|
|
821
821
|
// When enabled, parenthesized expressions are represented by
|
|
822
822
|
// (non-standard) ParenthesizedExpression nodes
|
|
823
823
|
preserveParens: !1
|
|
824
|
-
},
|
|
825
|
-
function
|
|
824
|
+
}, jt = !1;
|
|
825
|
+
function Fr(e) {
|
|
826
826
|
var t = {};
|
|
827
827
|
for (var r in dt)
|
|
828
828
|
t[r] = e && Ae(e, r) ? e[r] : dt[r];
|
|
829
|
-
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!
|
|
830
|
-
Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14),
|
|
829
|
+
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!jt && typeof console == "object" && console.warn && (jt = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
830
|
+
Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14), Ft(t.onToken)) {
|
|
831
831
|
var i = t.onToken;
|
|
832
832
|
t.onToken = function(a) {
|
|
833
833
|
return i.push(a);
|
|
834
834
|
};
|
|
835
835
|
}
|
|
836
|
-
return
|
|
836
|
+
return Ft(t.onComment) && (t.onComment = Mr(t, t.onComment)), t;
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function Mr(e, t) {
|
|
839
839
|
return function(r, i, a, s, n, u) {
|
|
840
840
|
var l = {
|
|
841
841
|
type: r ? "Block" : "Line",
|
|
@@ -846,19 +846,19 @@ function Fr(e, t) {
|
|
|
846
846
|
e.locations && (l.loc = new Je(this, n, u)), e.ranges && (l.range = [a, s]), t.push(l);
|
|
847
847
|
};
|
|
848
848
|
}
|
|
849
|
-
var Be = 1, Pe = 2, Et = 4,
|
|
849
|
+
var Be = 1, Pe = 2, Et = 4, ii = 8, Ct = 16, ri = 32, et = 64, ai = 128, be = 256, Fe = 512, tt = Be | Pe | be;
|
|
850
850
|
function _t(e, t) {
|
|
851
|
-
return Pe | (e ? Et : 0) | (t ?
|
|
851
|
+
return Pe | (e ? Et : 0) | (t ? ii : 0);
|
|
852
852
|
}
|
|
853
|
-
var Ke = 0, It = 1, ue = 2,
|
|
854
|
-
this.options = t =
|
|
853
|
+
var Ke = 0, It = 1, ue = 2, si = 3, ni = 4, oi = 5, V = function(t, r, i) {
|
|
854
|
+
this.options = t = Fr(t), this.sourceFile = t.sourceFile, this.keywords = ce(Lr[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
|
|
855
855
|
var a = "";
|
|
856
856
|
t.allowReserved !== !0 && (a = ut[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (a += " await")), this.reservedWords = ce(a);
|
|
857
857
|
var s = (a ? a + " " : "") + ut.strict;
|
|
858
858
|
this.reservedWordsStrict = ce(s), this.reservedWordsStrictBind = ce(s + " " + ut.strictBind), this.input = String(r), this.containsEsc = !1, i ? (this.pos = i, this.lineStart = this.input.lastIndexOf(`
|
|
859
859
|
`, i - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(K).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = o.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(Be), this.regexpState = null, this.privateNameStack = [];
|
|
860
860
|
}, J = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
|
|
861
|
-
|
|
861
|
+
V.prototype.parse = function() {
|
|
862
862
|
var t = this.options.program || this.startNode();
|
|
863
863
|
return this.nextToken(), this.parseTopLevel(t);
|
|
864
864
|
};
|
|
@@ -866,7 +866,7 @@ J.inFunction.get = function() {
|
|
|
866
866
|
return (this.currentVarScope().flags & Pe) > 0;
|
|
867
867
|
};
|
|
868
868
|
J.inGenerator.get = function() {
|
|
869
|
-
return (this.currentVarScope().flags &
|
|
869
|
+
return (this.currentVarScope().flags & ii) > 0;
|
|
870
870
|
};
|
|
871
871
|
J.inAsync.get = function() {
|
|
872
872
|
return (this.currentVarScope().flags & Et) > 0;
|
|
@@ -886,7 +886,7 @@ J.allowSuper.get = function() {
|
|
|
886
886
|
return (t & et) > 0 || this.options.allowSuperOutsideMethod;
|
|
887
887
|
};
|
|
888
888
|
J.allowDirectSuper.get = function() {
|
|
889
|
-
return (this.currentThisScope().flags &
|
|
889
|
+
return (this.currentThisScope().flags & ai) > 0;
|
|
890
890
|
};
|
|
891
891
|
J.treatFunctionsAsVar.get = function() {
|
|
892
892
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
@@ -902,30 +902,30 @@ J.allowNewDotTarget.get = function() {
|
|
|
902
902
|
J.inClassStaticBlock.get = function() {
|
|
903
903
|
return (this.currentVarScope().flags & be) > 0;
|
|
904
904
|
};
|
|
905
|
-
|
|
905
|
+
V.extend = function() {
|
|
906
906
|
for (var t = [], r = arguments.length; r--; ) t[r] = arguments[r];
|
|
907
907
|
for (var i = this, a = 0; a < t.length; a++)
|
|
908
908
|
i = t[a](i);
|
|
909
909
|
return i;
|
|
910
910
|
};
|
|
911
|
-
|
|
911
|
+
V.parse = function(t, r) {
|
|
912
912
|
return new this(r, t).parse();
|
|
913
913
|
};
|
|
914
|
-
|
|
914
|
+
V.parseExpressionAt = function(t, r, i) {
|
|
915
915
|
var a = new this(i, t, r);
|
|
916
916
|
return a.nextToken(), a.parseExpression();
|
|
917
917
|
};
|
|
918
|
-
|
|
918
|
+
V.tokenizer = function(t, r) {
|
|
919
919
|
return new this(r, t);
|
|
920
920
|
};
|
|
921
|
-
Object.defineProperties(
|
|
922
|
-
var O =
|
|
921
|
+
Object.defineProperties(V.prototype, J);
|
|
922
|
+
var O = V.prototype, jr = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
|
|
923
923
|
O.strictDirective = function(e) {
|
|
924
924
|
if (this.options.ecmaVersion < 5)
|
|
925
925
|
return !1;
|
|
926
926
|
for (; ; ) {
|
|
927
927
|
G.lastIndex = e, e += G.exec(this.input)[0].length;
|
|
928
|
-
var t =
|
|
928
|
+
var t = jr.exec(this.input.slice(e));
|
|
929
929
|
if (!t)
|
|
930
930
|
return !1;
|
|
931
931
|
if ((t[1] || t[2]) === "use strict") {
|
|
@@ -992,7 +992,7 @@ O.checkYieldAwaitInDefaultParams = function() {
|
|
|
992
992
|
O.isSimpleAssignTarget = function(e) {
|
|
993
993
|
return e.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(e.expression) : e.type === "Identifier" || e.type === "MemberExpression";
|
|
994
994
|
};
|
|
995
|
-
var g =
|
|
995
|
+
var g = V.prototype;
|
|
996
996
|
g.parseTopLevel = function(e) {
|
|
997
997
|
var t = /* @__PURE__ */ Object.create(null);
|
|
998
998
|
for (e.body || (e.body = []); this.type !== o.eof; ) {
|
|
@@ -1006,7 +1006,7 @@ g.parseTopLevel = function(e) {
|
|
|
1006
1006
|
}
|
|
1007
1007
|
return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
|
|
1008
1008
|
};
|
|
1009
|
-
var At = { kind: "loop" },
|
|
1009
|
+
var At = { kind: "loop" }, Ur = { kind: "switch" };
|
|
1010
1010
|
g.isLet = function(e) {
|
|
1011
1011
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
1012
1012
|
return !1;
|
|
@@ -1024,7 +1024,7 @@ g.isLet = function(e) {
|
|
|
1024
1024
|
if (i === 92 || i > 55295 && i < 56320)
|
|
1025
1025
|
return !0;
|
|
1026
1026
|
var s = this.input.slice(r, a);
|
|
1027
|
-
if (!
|
|
1027
|
+
if (!Tr.test(s))
|
|
1028
1028
|
return !0;
|
|
1029
1029
|
}
|
|
1030
1030
|
return !1;
|
|
@@ -1090,8 +1090,8 @@ g.parseStatement = function(e, t, r) {
|
|
|
1090
1090
|
default:
|
|
1091
1091
|
if (this.isAsyncFunction())
|
|
1092
1092
|
return e && this.unexpected(), this.next(), this.parseFunctionStatement(a, !0, !e);
|
|
1093
|
-
var c = this.value,
|
|
1094
|
-
return i === o.name &&
|
|
1093
|
+
var c = this.value, f = this.parseExpression();
|
|
1094
|
+
return i === o.name && f.type === "Identifier" && this.eat(o.colon) ? this.parseLabeledStatement(a, c, f, e) : this.parseExpressionStatement(a, f);
|
|
1095
1095
|
}
|
|
1096
1096
|
};
|
|
1097
1097
|
g.parseBreakContinueStatement = function(e, t) {
|
|
@@ -1120,11 +1120,11 @@ g.parseForStatement = function(e) {
|
|
|
1120
1120
|
var i = this.startNode(), a = r ? "let" : this.value;
|
|
1121
1121
|
return this.next(), this.parseVar(i, !0, a), this.finishNode(i, "VariableDeclaration"), (this.type === o._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && i.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === o._in ? t > -1 && this.unexpected(t) : e.await = t > -1), this.parseForIn(e, i)) : (t > -1 && this.unexpected(t), this.parseFor(e, i));
|
|
1122
1122
|
}
|
|
1123
|
-
var s = this.isContextual("let"), n = !1, u = this.containsEsc, l = new it(), c = this.start,
|
|
1124
|
-
return this.type === o._in || (n = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === o._in && this.unexpected(t), e.await = !0) : n && this.options.ecmaVersion >= 8 && (
|
|
1123
|
+
var s = this.isContextual("let"), n = !1, u = this.containsEsc, l = new it(), c = this.start, f = t > -1 ? this.parseExprSubscripts(l, "await") : this.parseExpression(!0, l);
|
|
1124
|
+
return this.type === o._in || (n = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === o._in && this.unexpected(t), e.await = !0) : n && this.options.ecmaVersion >= 8 && (f.start === c && !u && f.type === "Identifier" && f.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), s && n && this.raise(f.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(f, !1, l), this.checkLValPattern(f), this.parseForIn(e, f)) : (this.checkExpressionErrors(l, !0), t > -1 && this.unexpected(t), this.parseFor(e, f));
|
|
1125
1125
|
};
|
|
1126
1126
|
g.parseFunctionStatement = function(e, t, r) {
|
|
1127
|
-
return this.next(), this.parseFunction(e,
|
|
1127
|
+
return this.next(), this.parseFunction(e, Ve | (r ? 0 : yt), !1, t);
|
|
1128
1128
|
};
|
|
1129
1129
|
g.parseIfStatement = function(e) {
|
|
1130
1130
|
return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(o._else) ? this.parseStatement("if") : null, this.finishNode(e, "IfStatement");
|
|
@@ -1133,7 +1133,7 @@ g.parseReturnStatement = function(e) {
|
|
|
1133
1133
|
return !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(), this.eat(o.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(e, "ReturnStatement");
|
|
1134
1134
|
};
|
|
1135
1135
|
g.parseSwitchStatement = function(e) {
|
|
1136
|
-
this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(o.braceL), this.labels.push(
|
|
1136
|
+
this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(o.braceL), this.labels.push(Ur), this.enterScope(0);
|
|
1137
1137
|
for (var t, r = !1; this.type !== o.braceR; )
|
|
1138
1138
|
if (this.type === o._case || this.type === o._default) {
|
|
1139
1139
|
var i = this.type === o._case;
|
|
@@ -1145,10 +1145,10 @@ g.parseSwitchStatement = function(e) {
|
|
|
1145
1145
|
g.parseThrowStatement = function(e) {
|
|
1146
1146
|
return this.next(), K.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
|
|
1147
1147
|
};
|
|
1148
|
-
var
|
|
1148
|
+
var $r = [];
|
|
1149
1149
|
g.parseCatchClauseParam = function() {
|
|
1150
1150
|
var e = this.parseBindingAtom(), t = e.type === "Identifier";
|
|
1151
|
-
return this.enterScope(t ?
|
|
1151
|
+
return this.enterScope(t ? ri : 0), this.checkLValPattern(e, t ? ni : ue), this.expect(o.parenR), e;
|
|
1152
1152
|
};
|
|
1153
1153
|
g.parseTryStatement = function(e) {
|
|
1154
1154
|
if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === o._catch) {
|
|
@@ -1214,11 +1214,11 @@ g.parseVar = function(e, t, r, i) {
|
|
|
1214
1214
|
g.parseVarId = function(e, t) {
|
|
1215
1215
|
e.id = this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? It : ue, !1);
|
|
1216
1216
|
};
|
|
1217
|
-
var
|
|
1217
|
+
var Ve = 1, yt = 2, ui = 4;
|
|
1218
1218
|
g.parseFunction = function(e, t, r, i, a) {
|
|
1219
|
-
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !i) && (this.type === o.star && t & yt && this.unexpected(), e.generator = this.eat(o.star)), this.options.ecmaVersion >= 8 && (e.async = !!i), t &
|
|
1219
|
+
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !i) && (this.type === o.star && t & yt && this.unexpected(), e.generator = this.eat(o.star)), this.options.ecmaVersion >= 8 && (e.async = !!i), t & Ve && (e.id = t & ui && this.type !== o.name ? null : this.parseIdent(), e.id && !(t & yt) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? It : ue : si));
|
|
1220
1220
|
var s = this.yieldPos, n = this.awaitPos, u = this.awaitIdentPos;
|
|
1221
|
-
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(_t(e.async, e.generator)), t &
|
|
1221
|
+
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(_t(e.async, e.generator)), t & Ve || (e.id = this.type === o.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, r, !1, a), this.yieldPos = s, this.awaitPos = n, this.awaitIdentPos = u, this.finishNode(e, t & Ve ? "FunctionDeclaration" : "FunctionExpression");
|
|
1222
1222
|
};
|
|
1223
1223
|
g.parseFunctionParams = function(e) {
|
|
1224
1224
|
this.expect(o.parenL), e.params = this.parseBindingList(o.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
|
|
@@ -1230,7 +1230,7 @@ g.parseClass = function(e, t) {
|
|
|
1230
1230
|
var i = this.enterClassBody(), a = this.startNode(), s = !1;
|
|
1231
1231
|
for (a.body = [], this.expect(o.braceL); this.type !== o.braceR; ) {
|
|
1232
1232
|
var n = this.parseClassElement(e.superClass !== null);
|
|
1233
|
-
n && (a.body.push(n), n.type === "MethodDefinition" && n.kind === "constructor" ? (s && this.raiseRecoverable(n.start, "Duplicate constructor in the same class"), s = !0) : n.key && n.key.type === "PrivateIdentifier" &&
|
|
1233
|
+
n && (a.body.push(n), n.type === "MethodDefinition" && n.kind === "constructor" ? (s && this.raiseRecoverable(n.start, "Duplicate constructor in the same class"), s = !0) : n.key && n.key.type === "PrivateIdentifier" && qr(i, n) && this.raiseRecoverable(n.key.start, "Identifier '#" + n.key.name + "' has already been declared"));
|
|
1234
1234
|
}
|
|
1235
1235
|
return this.strict = r, this.next(), e.body = this.finishNode(a, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
|
|
1236
1236
|
};
|
|
@@ -1248,8 +1248,8 @@ g.parseClassElement = function(e) {
|
|
|
1248
1248
|
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? n = l : i = l);
|
|
1249
1249
|
}
|
|
1250
1250
|
if (i ? (r.computed = !1, r.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), r.key.name = i, this.finishNode(r.key, "Identifier")) : this.parseClassElementName(r), t < 13 || this.type === o.parenL || n !== "method" || a || s) {
|
|
1251
|
-
var c = !r.static && Qe(r, "constructor"),
|
|
1252
|
-
c && n !== "method" && this.raise(r.key.start, "Constructor can't have get/set modifier"), r.kind = c ? "constructor" : n, this.parseClassMethod(r, a, s,
|
|
1251
|
+
var c = !r.static && Qe(r, "constructor"), f = c && e;
|
|
1252
|
+
c && n !== "method" && this.raise(r.key.start, "Constructor can't have get/set modifier"), r.kind = c ? "constructor" : n, this.parseClassMethod(r, a, s, f);
|
|
1253
1253
|
} else
|
|
1254
1254
|
this.parseClassField(r);
|
|
1255
1255
|
return r;
|
|
@@ -1296,7 +1296,7 @@ g.exitClassBody = function() {
|
|
|
1296
1296
|
Ae(t, n.name) || (a ? a.used.push(n) : this.raiseRecoverable(n.start, "Private field '#" + n.name + "' must be declared in an enclosing class"));
|
|
1297
1297
|
}
|
|
1298
1298
|
};
|
|
1299
|
-
function
|
|
1299
|
+
function qr(e, t) {
|
|
1300
1300
|
var r = t.key.name, i = e[r], a = "true";
|
|
1301
1301
|
return t.type === "MethodDefinition" && (t.kind === "get" || t.kind === "set") && (a = (t.static ? "s" : "i") + t.kind), i === "iget" && a === "iset" || i === "iset" && a === "iget" || i === "sget" && a === "sset" || i === "sset" && a === "sget" ? (e[r] = "true", !1) : i ? !0 : (e[r] = a, !1);
|
|
1302
1302
|
}
|
|
@@ -1335,7 +1335,7 @@ g.parseExportDefaultDeclaration = function() {
|
|
|
1335
1335
|
var e;
|
|
1336
1336
|
if (this.type === o._function || (e = this.isAsyncFunction())) {
|
|
1337
1337
|
var t = this.startNode();
|
|
1338
|
-
return this.next(), e && this.next(), this.parseFunction(t,
|
|
1338
|
+
return this.next(), e && this.next(), this.parseFunction(t, Ve | ui, !1, e);
|
|
1339
1339
|
} else if (this.type === o._class) {
|
|
1340
1340
|
var r = this.startNode();
|
|
1341
1341
|
return this.parseClass(r, "nullableID");
|
|
@@ -1393,7 +1393,7 @@ g.parseExportSpecifiers = function(e) {
|
|
|
1393
1393
|
return t;
|
|
1394
1394
|
};
|
|
1395
1395
|
g.parseImport = function(e) {
|
|
1396
|
-
return this.next(), this.type === o.string ? (e.specifiers =
|
|
1396
|
+
return this.next(), this.type === o.string ? (e.specifiers = $r, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === o.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
|
|
1397
1397
|
};
|
|
1398
1398
|
g.parseImportSpecifier = function() {
|
|
1399
1399
|
var e = this.startNode();
|
|
@@ -1444,7 +1444,7 @@ g.parseImportAttribute = function() {
|
|
|
1444
1444
|
g.parseModuleExportName = function() {
|
|
1445
1445
|
if (this.options.ecmaVersion >= 13 && this.type === o.string) {
|
|
1446
1446
|
var e = this.parseLiteral(this.value);
|
|
1447
|
-
return
|
|
1447
|
+
return Dr.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
|
|
1448
1448
|
}
|
|
1449
1449
|
return this.parseIdent(!0);
|
|
1450
1450
|
};
|
|
@@ -1456,7 +1456,7 @@ g.isDirectiveCandidate = function(e) {
|
|
|
1456
1456
|
return this.options.ecmaVersion >= 5 && e.type === "ExpressionStatement" && e.expression.type === "Literal" && typeof e.expression.value == "string" && // Reject parenthesized strings.
|
|
1457
1457
|
(this.input[e.start] === '"' || this.input[e.start] === "'");
|
|
1458
1458
|
};
|
|
1459
|
-
var Q =
|
|
1459
|
+
var Q = V.prototype;
|
|
1460
1460
|
Q.toAssignable = function(e, t, r) {
|
|
1461
1461
|
if (this.options.ecmaVersion >= 6 && e)
|
|
1462
1462
|
switch (e.type) {
|
|
@@ -1566,7 +1566,7 @@ Q.checkLValSimple = function(e, t, r) {
|
|
|
1566
1566
|
var i = t !== Ke;
|
|
1567
1567
|
switch (e.type) {
|
|
1568
1568
|
case "Identifier":
|
|
1569
|
-
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (i ? "Binding " : "Assigning to ") + e.name + " in strict mode"), i && (t === ue && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), r && (Ae(r, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), r[e.name] = !0), t !==
|
|
1569
|
+
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (i ? "Binding " : "Assigning to ") + e.name + " in strict mode"), i && (t === ue && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), r && (Ae(r, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), r[e.name] = !0), t !== oi && this.declareName(e.name, t, e.start));
|
|
1570
1570
|
break;
|
|
1571
1571
|
case "ChainExpression":
|
|
1572
1572
|
this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
|
|
@@ -1628,7 +1628,7 @@ var X = function(t, r, i, a, s) {
|
|
|
1628
1628
|
f_expr: new X("function", !0),
|
|
1629
1629
|
f_expr_gen: new X("function", !0, !1, null, !0),
|
|
1630
1630
|
f_gen: new X("function", !1, !1, null, !0)
|
|
1631
|
-
}, Le =
|
|
1631
|
+
}, Le = V.prototype;
|
|
1632
1632
|
Le.initialContext = function() {
|
|
1633
1633
|
return [P.b_stat];
|
|
1634
1634
|
};
|
|
@@ -1694,7 +1694,7 @@ o.name.updateContext = function(e) {
|
|
|
1694
1694
|
var t = !1;
|
|
1695
1695
|
this.options.ecmaVersion >= 6 && e !== o.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (t = !0), this.exprAllowed = t;
|
|
1696
1696
|
};
|
|
1697
|
-
var x =
|
|
1697
|
+
var x = V.prototype;
|
|
1698
1698
|
x.checkPropClash = function(e, t, r) {
|
|
1699
1699
|
if (!(this.options.ecmaVersion >= 9 && e.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (e.computed || e.method || e.shorthand))) {
|
|
1700
1700
|
var i = e.key, a;
|
|
@@ -1749,8 +1749,8 @@ x.parseMaybeAssign = function(e, t, r) {
|
|
|
1749
1749
|
(this.type === o.parenL || this.type === o.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
|
|
1750
1750
|
var c = this.parseMaybeConditional(e, t);
|
|
1751
1751
|
if (r && (c = r.call(this, c, u, l)), this.type.isAssign) {
|
|
1752
|
-
var
|
|
1753
|
-
return
|
|
1752
|
+
var f = this.startNodeAt(u, l);
|
|
1753
|
+
return f.operator = this.value, this.type === o.eq && (c = this.toAssignable(c, !1, t)), i || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= c.start && (t.shorthandAssign = -1), this.type === o.eq ? this.checkLValPattern(c) : this.checkLValSimple(c), f.left = c, this.next(), f.right = this.parseMaybeAssign(e), n > -1 && (t.doubleProto = n), this.finishNode(f, "AssignmentExpression");
|
|
1754
1754
|
} else
|
|
1755
1755
|
i && this.checkExpressionErrors(t, !0);
|
|
1756
1756
|
return a > -1 && (t.parenthesizedAssign = a), s > -1 && (t.trailingComma = s), c;
|
|
@@ -1776,7 +1776,7 @@ x.parseExprOp = function(e, t, r, i, a) {
|
|
|
1776
1776
|
u && (s = o.logicalAND.binop);
|
|
1777
1777
|
var l = this.value;
|
|
1778
1778
|
this.next();
|
|
1779
|
-
var c = this.start,
|
|
1779
|
+
var c = this.start, f = this.startLoc, h = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, a), c, f, s, a), v = this.buildBinary(t, r, e, h, l, n || u);
|
|
1780
1780
|
return (n && this.type === o.coalesce || u && (this.type === o.logicalOR || this.type === o.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(v, t, r, i, a);
|
|
1781
1781
|
}
|
|
1782
1782
|
return e;
|
|
@@ -1792,7 +1792,7 @@ x.parseMaybeUnary = function(e, t, r, i) {
|
|
|
1792
1792
|
n = this.parseAwait(i), t = !0;
|
|
1793
1793
|
else if (this.type.prefix) {
|
|
1794
1794
|
var u = this.startNode(), l = this.type === o.incDec;
|
|
1795
|
-
u.operator = this.value, u.prefix = !0, this.next(), u.argument = this.parseMaybeUnary(null, !0, l, i), this.checkExpressionErrors(e, !0), l ? this.checkLValSimple(u.argument) : this.strict && u.operator === "delete" &&
|
|
1795
|
+
u.operator = this.value, u.prefix = !0, this.next(), u.argument = this.parseMaybeUnary(null, !0, l, i), this.checkExpressionErrors(e, !0), l ? this.checkLValSimple(u.argument) : this.strict && u.operator === "delete" && li(u.argument) ? this.raiseRecoverable(u.start, "Deleting local variable in strict mode") : u.operator === "delete" && mt(u.argument) ? this.raiseRecoverable(u.start, "Private fields can not be deleted") : t = !0, n = this.finishNode(u, l ? "UpdateExpression" : "UnaryExpression");
|
|
1796
1796
|
} else if (!t && this.type === o.privateId)
|
|
1797
1797
|
(i || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), n = this.parsePrivateIdent(), this.type !== o._in && this.unexpected();
|
|
1798
1798
|
else {
|
|
@@ -1811,8 +1811,8 @@ x.parseMaybeUnary = function(e, t, r, i) {
|
|
|
1811
1811
|
else
|
|
1812
1812
|
return n;
|
|
1813
1813
|
};
|
|
1814
|
-
function
|
|
1815
|
-
return e.type === "Identifier" || e.type === "ParenthesizedExpression" &&
|
|
1814
|
+
function li(e) {
|
|
1815
|
+
return e.type === "Identifier" || e.type === "ParenthesizedExpression" && li(e.expression);
|
|
1816
1816
|
}
|
|
1817
1817
|
function mt(e) {
|
|
1818
1818
|
return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && mt(e.expression) || e.type === "ParenthesizedExpression" && mt(e.expression);
|
|
@@ -1848,15 +1848,15 @@ x.parseSubscript = function(e, t, r, i, a, s, n) {
|
|
|
1848
1848
|
i && l && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
|
|
1849
1849
|
var c = this.eat(o.bracketL);
|
|
1850
1850
|
if (c || l && this.type !== o.parenL && this.type !== o.backQuote || this.eat(o.dot)) {
|
|
1851
|
-
var
|
|
1852
|
-
|
|
1851
|
+
var f = this.startNodeAt(t, r);
|
|
1852
|
+
f.object = e, c ? (f.property = this.parseExpression(), this.expect(o.bracketR)) : this.type === o.privateId && e.type !== "Super" ? f.property = this.parsePrivateIdent() : f.property = this.parseIdent(this.options.allowReserved !== "never"), f.computed = !!c, u && (f.optional = l), e = this.finishNode(f, "MemberExpression");
|
|
1853
1853
|
} else if (!i && this.eat(o.parenL)) {
|
|
1854
|
-
var
|
|
1854
|
+
var h = new it(), v = this.yieldPos, I = this.awaitPos, T = this.awaitIdentPos;
|
|
1855
1855
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
1856
|
-
var q = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1,
|
|
1856
|
+
var q = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1, h);
|
|
1857
1857
|
if (a && !l && this.shouldParseAsyncArrow())
|
|
1858
|
-
return this.checkPatternErrors(
|
|
1859
|
-
this.checkExpressionErrors(
|
|
1858
|
+
return this.checkPatternErrors(h, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = v, this.awaitPos = I, this.awaitIdentPos = T, this.parseSubscriptAsyncArrow(t, r, q, n);
|
|
1859
|
+
this.checkExpressionErrors(h, !0), this.yieldPos = v || this.yieldPos, this.awaitPos = I || this.awaitPos, this.awaitIdentPos = T || this.awaitIdentPos;
|
|
1860
1860
|
var le = this.startNodeAt(t, r);
|
|
1861
1861
|
le.callee = e, le.arguments = q, u && (le.optional = l), e = this.finishNode(le, "CallExpression");
|
|
1862
1862
|
} else if (this.type === o.backQuote) {
|
|
@@ -1896,8 +1896,8 @@ x.parseExprAtom = function(e, t, r) {
|
|
|
1896
1896
|
case o._false:
|
|
1897
1897
|
return i = this.startNode(), i.value = this.type === o._null ? null : this.type === o._true, i.raw = this.type.keyword, this.next(), this.finishNode(i, "Literal");
|
|
1898
1898
|
case o.parenL:
|
|
1899
|
-
var
|
|
1900
|
-
return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(
|
|
1899
|
+
var f = this.start, h = this.parseParenAndDistinguishExpression(a, t);
|
|
1900
|
+
return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(h) && (e.parenthesizedAssign = f), e.parenthesizedBind < 0 && (e.parenthesizedBind = f)), h;
|
|
1901
1901
|
case o.bracketL:
|
|
1902
1902
|
return i = this.startNode(), this.next(), i.elements = this.parseExprList(o.bracketR, !0, !0, e), this.finishNode(i, "ArrayExpression");
|
|
1903
1903
|
case o.braceL:
|
|
@@ -1959,23 +1959,23 @@ x.parseParenAndDistinguishExpression = function(e, t) {
|
|
|
1959
1959
|
var r = this.start, i = this.startLoc, a, s = this.options.ecmaVersion >= 8;
|
|
1960
1960
|
if (this.options.ecmaVersion >= 6) {
|
|
1961
1961
|
this.next();
|
|
1962
|
-
var n = this.start, u = this.startLoc, l = [], c = !0,
|
|
1962
|
+
var n = this.start, u = this.startLoc, l = [], c = !0, f = !1, h = new it(), v = this.yieldPos, I = this.awaitPos, T;
|
|
1963
1963
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== o.parenR; )
|
|
1964
1964
|
if (c ? c = !1 : this.expect(o.comma), s && this.afterTrailingComma(o.parenR, !0)) {
|
|
1965
|
-
|
|
1965
|
+
f = !0;
|
|
1966
1966
|
break;
|
|
1967
1967
|
} else if (this.type === o.ellipsis) {
|
|
1968
|
-
|
|
1968
|
+
T = this.start, l.push(this.parseParenItem(this.parseRestBinding())), this.type === o.comma && this.raiseRecoverable(
|
|
1969
1969
|
this.start,
|
|
1970
1970
|
"Comma is not permitted after the rest element"
|
|
1971
1971
|
);
|
|
1972
1972
|
break;
|
|
1973
1973
|
} else
|
|
1974
|
-
l.push(this.parseMaybeAssign(!1,
|
|
1974
|
+
l.push(this.parseMaybeAssign(!1, h, this.parseParenItem));
|
|
1975
1975
|
var q = this.lastTokEnd, le = this.lastTokEndLoc;
|
|
1976
1976
|
if (this.expect(o.parenR), e && this.shouldParseArrow(l) && this.eat(o.arrow))
|
|
1977
|
-
return this.checkPatternErrors(
|
|
1978
|
-
(!l.length ||
|
|
1977
|
+
return this.checkPatternErrors(h, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = v, this.awaitPos = I, this.parseParenArrowList(r, i, l, t);
|
|
1978
|
+
(!l.length || f) && this.unexpected(this.lastTokStart), T && this.unexpected(T), this.checkExpressionErrors(h, !0), this.yieldPos = v || this.yieldPos, this.awaitPos = I || this.awaitPos, l.length > 1 ? (a = this.startNodeAt(n, u), a.expressions = l, this.finishNodeAt(a, "SequenceExpression", q, le)) : a = l[0];
|
|
1979
1979
|
} else
|
|
1980
1980
|
a = this.parseParenExpression();
|
|
1981
1981
|
if (this.options.preserveParens) {
|
|
@@ -1990,7 +1990,7 @@ x.parseParenItem = function(e) {
|
|
|
1990
1990
|
x.parseParenArrowList = function(e, t, r, i) {
|
|
1991
1991
|
return this.parseArrowExpression(this.startNodeAt(e, t), r, !1, i);
|
|
1992
1992
|
};
|
|
1993
|
-
var
|
|
1993
|
+
var Wr = [];
|
|
1994
1994
|
x.parseNew = function() {
|
|
1995
1995
|
this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
|
|
1996
1996
|
var e = this.startNode();
|
|
@@ -2001,7 +2001,7 @@ x.parseNew = function() {
|
|
|
2001
2001
|
return e.property = this.parseIdent(!0), e.property.name !== "target" && this.raiseRecoverable(e.property.start, "The only valid meta property for new is 'new.target'"), r && this.raiseRecoverable(e.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(e.start, "'new.target' can only be used in functions and class static block"), this.finishNode(e, "MetaProperty");
|
|
2002
2002
|
}
|
|
2003
2003
|
var i = this.start, a = this.startLoc;
|
|
2004
|
-
return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), i, a, !0, !1), this.eat(o.parenL) ? e.arguments = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments =
|
|
2004
|
+
return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), i, a, !0, !1), this.eat(o.parenL) ? e.arguments = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments = Wr, this.finishNode(e, "NewExpression");
|
|
2005
2005
|
};
|
|
2006
2006
|
x.parseTemplateElement = function(e) {
|
|
2007
2007
|
var t = e.isTagged, r = this.startNode();
|
|
@@ -2075,7 +2075,7 @@ x.initFunction = function(e) {
|
|
|
2075
2075
|
};
|
|
2076
2076
|
x.parseMethod = function(e, t, r) {
|
|
2077
2077
|
var i = this.startNode(), a = this.yieldPos, s = this.awaitPos, n = this.awaitIdentPos;
|
|
2078
|
-
return this.initFunction(i), this.options.ecmaVersion >= 6 && (i.generator = e), this.options.ecmaVersion >= 8 && (i.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(_t(t, i.generator) | et | (r ?
|
|
2078
|
+
return this.initFunction(i), this.options.ecmaVersion >= 6 && (i.generator = e), this.options.ecmaVersion >= 8 && (i.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(_t(t, i.generator) | et | (r ? ai : 0)), this.expect(o.parenL), i.params = this.parseBindingList(o.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(i, !1, !0, !1), this.yieldPos = a, this.awaitPos = s, this.awaitIdentPos = n, this.finishNode(i, "FunctionExpression");
|
|
2079
2079
|
};
|
|
2080
2080
|
x.parseArrowExpression = function(e, t, r, i) {
|
|
2081
2081
|
var a = this.yieldPos, s = this.awaitPos, n = this.awaitIdentPos;
|
|
@@ -2089,7 +2089,7 @@ x.parseFunctionBody = function(e, t, r, i) {
|
|
|
2089
2089
|
var u = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
|
|
2090
2090
|
(!s || u) && (n = this.strictDirective(this.end), n && u && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
|
|
2091
2091
|
var l = this.labels;
|
|
2092
|
-
this.labels = [], n && (this.strict = !0), this.checkParams(e, !s && !n && !t && !r && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id,
|
|
2092
|
+
this.labels = [], n && (this.strict = !0), this.checkParams(e, !s && !n && !t && !r && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, oi), e.body = this.parseBlock(!1, void 0, n && !s), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = l;
|
|
2093
2093
|
}
|
|
2094
2094
|
this.exitScope();
|
|
2095
2095
|
};
|
|
@@ -2147,9 +2147,9 @@ x.parseAwait = function(e) {
|
|
|
2147
2147
|
var t = this.startNode();
|
|
2148
2148
|
return this.next(), t.argument = this.parseMaybeUnary(null, !0, !1, e), this.finishNode(t, "AwaitExpression");
|
|
2149
2149
|
};
|
|
2150
|
-
var Xe =
|
|
2150
|
+
var Xe = V.prototype;
|
|
2151
2151
|
Xe.raise = function(e, t) {
|
|
2152
|
-
var r =
|
|
2152
|
+
var r = ti(this.input, e);
|
|
2153
2153
|
t += " (" + r.line + ":" + r.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
|
|
2154
2154
|
var i = new SyntaxError(t);
|
|
2155
2155
|
throw i.pos = e, i.loc = r, i.raisedAt = this.pos, i;
|
|
@@ -2159,11 +2159,11 @@ Xe.curPosition = function() {
|
|
|
2159
2159
|
if (this.options.locations)
|
|
2160
2160
|
return new Re(this.curLine, this.pos - this.lineStart);
|
|
2161
2161
|
};
|
|
2162
|
-
var de =
|
|
2162
|
+
var de = V.prototype, zr = function(t) {
|
|
2163
2163
|
this.flags = t, this.var = [], this.lexical = [], this.functions = [];
|
|
2164
2164
|
};
|
|
2165
2165
|
de.enterScope = function(e) {
|
|
2166
|
-
this.scopeStack.push(new
|
|
2166
|
+
this.scopeStack.push(new zr(e));
|
|
2167
2167
|
};
|
|
2168
2168
|
de.exitScope = function() {
|
|
2169
2169
|
this.scopeStack.pop();
|
|
@@ -2176,16 +2176,16 @@ de.declareName = function(e, t, r) {
|
|
|
2176
2176
|
if (t === ue) {
|
|
2177
2177
|
var a = this.currentScope();
|
|
2178
2178
|
i = a.lexical.indexOf(e) > -1 || a.functions.indexOf(e) > -1 || a.var.indexOf(e) > -1, a.lexical.push(e), this.inModule && a.flags & Be && delete this.undefinedExports[e];
|
|
2179
|
-
} else if (t ===
|
|
2179
|
+
} else if (t === ni) {
|
|
2180
2180
|
var s = this.currentScope();
|
|
2181
2181
|
s.lexical.push(e);
|
|
2182
|
-
} else if (t ===
|
|
2182
|
+
} else if (t === si) {
|
|
2183
2183
|
var n = this.currentScope();
|
|
2184
2184
|
this.treatFunctionsAsVar ? i = n.lexical.indexOf(e) > -1 : i = n.lexical.indexOf(e) > -1 || n.var.indexOf(e) > -1, n.functions.push(e);
|
|
2185
2185
|
} else
|
|
2186
2186
|
for (var u = this.scopeStack.length - 1; u >= 0; --u) {
|
|
2187
2187
|
var l = this.scopeStack[u];
|
|
2188
|
-
if (l.lexical.indexOf(e) > -1 && !(l.flags &
|
|
2188
|
+
if (l.lexical.indexOf(e) > -1 && !(l.flags & ri && l.lexical[0] === e) || !this.treatFunctionsAsVarInScope(l) && l.functions.indexOf(e) > -1) {
|
|
2189
2189
|
i = !0;
|
|
2190
2190
|
break;
|
|
2191
2191
|
}
|
|
@@ -2216,21 +2216,21 @@ de.currentThisScope = function() {
|
|
|
2216
2216
|
};
|
|
2217
2217
|
var rt = function(t, r, i) {
|
|
2218
2218
|
this.type = "", this.start = r, this.end = 0, t.options.locations && (this.loc = new Je(t, i)), t.options.directSourceFile && (this.sourceFile = t.options.directSourceFile), t.options.ranges && (this.range = [r, 0]);
|
|
2219
|
-
}, Me =
|
|
2219
|
+
}, Me = V.prototype;
|
|
2220
2220
|
Me.startNode = function() {
|
|
2221
2221
|
return new rt(this, this.start, this.startLoc);
|
|
2222
2222
|
};
|
|
2223
2223
|
Me.startNodeAt = function(e, t) {
|
|
2224
2224
|
return new rt(this, e, t);
|
|
2225
2225
|
};
|
|
2226
|
-
function
|
|
2226
|
+
function ci(e, t, r, i) {
|
|
2227
2227
|
return e.type = t, e.end = r, this.options.locations && (e.loc.end = i), this.options.ranges && (e.range[1] = r), e;
|
|
2228
2228
|
}
|
|
2229
2229
|
Me.finishNode = function(e, t) {
|
|
2230
|
-
return
|
|
2230
|
+
return ci.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
|
|
2231
2231
|
};
|
|
2232
2232
|
Me.finishNodeAt = function(e, t, r, i) {
|
|
2233
|
-
return
|
|
2233
|
+
return ci.call(this, e, t, r, i);
|
|
2234
2234
|
};
|
|
2235
2235
|
Me.copyNode = function(e) {
|
|
2236
2236
|
var t = new rt(this, e.start, this.startLoc);
|
|
@@ -2238,44 +2238,44 @@ Me.copyNode = function(e) {
|
|
|
2238
2238
|
t[r] = e[r];
|
|
2239
2239
|
return t;
|
|
2240
2240
|
};
|
|
2241
|
-
var
|
|
2242
|
-
9:
|
|
2241
|
+
var Gr = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz", fi = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", hi = fi + " Extended_Pictographic", pi = hi, di = pi + " EBase EComp EMod EPres ExtPict", yi = di, Hr = yi, Kr = {
|
|
2242
|
+
9: fi,
|
|
2243
2243
|
10: hi,
|
|
2244
|
-
11:
|
|
2245
|
-
12:
|
|
2246
|
-
13:
|
|
2247
|
-
14:
|
|
2248
|
-
},
|
|
2244
|
+
11: pi,
|
|
2245
|
+
12: di,
|
|
2246
|
+
13: yi,
|
|
2247
|
+
14: Hr
|
|
2248
|
+
}, Qr = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", Xr = {
|
|
2249
2249
|
9: "",
|
|
2250
2250
|
10: "",
|
|
2251
2251
|
11: "",
|
|
2252
2252
|
12: "",
|
|
2253
2253
|
13: "",
|
|
2254
|
-
14:
|
|
2255
|
-
},
|
|
2256
|
-
9:
|
|
2257
|
-
10:
|
|
2258
|
-
11:
|
|
2259
|
-
12:
|
|
2260
|
-
13:
|
|
2261
|
-
14:
|
|
2262
|
-
},
|
|
2263
|
-
function
|
|
2264
|
-
var t =
|
|
2265
|
-
binary: ce(
|
|
2266
|
-
binaryOfStrings: ce(
|
|
2254
|
+
14: Qr
|
|
2255
|
+
}, Ut = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", mi = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", gi = mi + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", xi = gi + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", bi = xi + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", vi = bi + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", Yr = vi + " " + Gr, Zr = {
|
|
2256
|
+
9: mi,
|
|
2257
|
+
10: gi,
|
|
2258
|
+
11: xi,
|
|
2259
|
+
12: bi,
|
|
2260
|
+
13: vi,
|
|
2261
|
+
14: Yr
|
|
2262
|
+
}, Si = {};
|
|
2263
|
+
function Jr(e) {
|
|
2264
|
+
var t = Si[e] = {
|
|
2265
|
+
binary: ce(Kr[e] + " " + Ut),
|
|
2266
|
+
binaryOfStrings: ce(Xr[e]),
|
|
2267
2267
|
nonBinary: {
|
|
2268
|
-
General_Category: ce(
|
|
2269
|
-
Script: ce(
|
|
2268
|
+
General_Category: ce(Ut),
|
|
2269
|
+
Script: ce(Zr[e])
|
|
2270
2270
|
}
|
|
2271
2271
|
};
|
|
2272
2272
|
t.nonBinary.Script_Extensions = t.nonBinary.Script, t.nonBinary.gc = t.nonBinary.General_Category, t.nonBinary.sc = t.nonBinary.Script, t.nonBinary.scx = t.nonBinary.Script_Extensions;
|
|
2273
2273
|
}
|
|
2274
|
-
for (var ct = 0,
|
|
2275
|
-
var
|
|
2276
|
-
|
|
2274
|
+
for (var ct = 0, $t = [9, 10, 11, 12, 13, 14]; ct < $t.length; ct += 1) {
|
|
2275
|
+
var ea = $t[ct];
|
|
2276
|
+
Jr(ea);
|
|
2277
2277
|
}
|
|
2278
|
-
var m =
|
|
2278
|
+
var m = V.prototype, Ye = function(t, r) {
|
|
2279
2279
|
this.parent = t, this.base = r || this;
|
|
2280
2280
|
};
|
|
2281
2281
|
Ye.prototype.separatedFrom = function(t) {
|
|
@@ -2289,7 +2289,7 @@ Ye.prototype.sibling = function() {
|
|
|
2289
2289
|
return new Ye(this.parent, this.base);
|
|
2290
2290
|
};
|
|
2291
2291
|
var ee = function(t) {
|
|
2292
|
-
this.parser = t, this.validFlags = "gim" + (t.options.ecmaVersion >= 6 ? "uy" : "") + (t.options.ecmaVersion >= 9 ? "s" : "") + (t.options.ecmaVersion >= 13 ? "d" : "") + (t.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties =
|
|
2292
|
+
this.parser = t, this.validFlags = "gim" + (t.options.ecmaVersion >= 6 ? "uy" : "") + (t.options.ecmaVersion >= 9 ? "s" : "") + (t.options.ecmaVersion >= 13 ? "d" : "") + (t.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = Si[t.options.ecmaVersion >= 14 ? 14 : t.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
|
|
2293
2293
|
};
|
|
2294
2294
|
ee.prototype.reset = function(t, r, i) {
|
|
2295
2295
|
var a = i.indexOf("v") !== -1, s = i.indexOf("u") !== -1;
|
|
@@ -2346,13 +2346,13 @@ m.validateRegExpFlags = function(e) {
|
|
|
2346
2346
|
}
|
|
2347
2347
|
this.options.ecmaVersion >= 15 && i && a && this.raise(e.start, "Invalid regular expression flag");
|
|
2348
2348
|
};
|
|
2349
|
-
function
|
|
2349
|
+
function ta(e) {
|
|
2350
2350
|
for (var t in e)
|
|
2351
2351
|
return !0;
|
|
2352
2352
|
return !1;
|
|
2353
2353
|
}
|
|
2354
2354
|
m.validateRegExpPattern = function(e) {
|
|
2355
|
-
this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 &&
|
|
2355
|
+
this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && ta(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
|
|
2356
2356
|
};
|
|
2357
2357
|
m.regexp_pattern = function(e) {
|
|
2358
2358
|
e.pos = 0, e.lastIntValue = 0, e.lastStringValue = "", e.lastAssertionIsQuantifiable = !1, e.numCapturingParens = 0, e.maxBackReference = 0, e.groupNames = /* @__PURE__ */ Object.create(null), e.backReferenceNames.length = 0, e.branchID = null, this.regexp_disjunction(e), e.pos !== e.source.length && (e.eat(
|
|
@@ -2554,11 +2554,11 @@ m.regexp_eatCapturingGroup = function(e) {
|
|
|
2554
2554
|
return !1;
|
|
2555
2555
|
};
|
|
2556
2556
|
m.regexp_eatModifiers = function(e) {
|
|
2557
|
-
for (var t = "", r = 0; (r = e.current()) !== -1 &&
|
|
2557
|
+
for (var t = "", r = 0; (r = e.current()) !== -1 && ia(r); )
|
|
2558
2558
|
t += ae(r), e.advance();
|
|
2559
2559
|
return t;
|
|
2560
2560
|
};
|
|
2561
|
-
function
|
|
2561
|
+
function ia(e) {
|
|
2562
2562
|
return e === 105 || e === 109 || e === 115;
|
|
2563
2563
|
}
|
|
2564
2564
|
m.regexp_eatExtendedAtom = function(e) {
|
|
@@ -2572,13 +2572,13 @@ m.regexp_eatInvalidBracedQuantifier = function(e) {
|
|
|
2572
2572
|
};
|
|
2573
2573
|
m.regexp_eatSyntaxCharacter = function(e) {
|
|
2574
2574
|
var t = e.current();
|
|
2575
|
-
return
|
|
2575
|
+
return wi(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
2576
2576
|
};
|
|
2577
|
-
function
|
|
2577
|
+
function wi(e) {
|
|
2578
2578
|
return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
|
|
2579
2579
|
}
|
|
2580
2580
|
m.regexp_eatPatternCharacters = function(e) {
|
|
2581
|
-
for (var t = e.pos, r = 0; (r = e.current()) !== -1 && !
|
|
2581
|
+
for (var t = e.pos, r = 0; (r = e.current()) !== -1 && !wi(r); )
|
|
2582
2582
|
e.advance();
|
|
2583
2583
|
return e.pos !== t;
|
|
2584
2584
|
};
|
|
@@ -2628,16 +2628,16 @@ m.regexp_eatRegExpIdentifierName = function(e) {
|
|
|
2628
2628
|
};
|
|
2629
2629
|
m.regexp_eatRegExpIdentifierStart = function(e) {
|
|
2630
2630
|
var t = e.pos, r = this.options.ecmaVersion >= 11, i = e.current(r);
|
|
2631
|
-
return e.advance(r), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, r) && (i = e.lastIntValue),
|
|
2631
|
+
return e.advance(r), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, r) && (i = e.lastIntValue), ra(i) ? (e.lastIntValue = i, !0) : (e.pos = t, !1);
|
|
2632
2632
|
};
|
|
2633
|
-
function
|
|
2633
|
+
function ra(e) {
|
|
2634
2634
|
return re(e, !0) || e === 36 || e === 95;
|
|
2635
2635
|
}
|
|
2636
2636
|
m.regexp_eatRegExpIdentifierPart = function(e) {
|
|
2637
2637
|
var t = e.pos, r = this.options.ecmaVersion >= 11, i = e.current(r);
|
|
2638
|
-
return e.advance(r), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, r) && (i = e.lastIntValue),
|
|
2638
|
+
return e.advance(r), i === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, r) && (i = e.lastIntValue), aa(i) ? (e.lastIntValue = i, !0) : (e.pos = t, !1);
|
|
2639
2639
|
};
|
|
2640
|
-
function
|
|
2640
|
+
function aa(e) {
|
|
2641
2641
|
return ke(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
|
|
2642
2642
|
}
|
|
2643
2643
|
m.regexp_eatAtomEscape = function(e) {
|
|
@@ -2690,9 +2690,9 @@ m.regexp_eatControlEscape = function(e) {
|
|
|
2690
2690
|
};
|
|
2691
2691
|
m.regexp_eatControlLetter = function(e) {
|
|
2692
2692
|
var t = e.current();
|
|
2693
|
-
return
|
|
2693
|
+
return ki(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
|
|
2694
2694
|
};
|
|
2695
|
-
function
|
|
2695
|
+
function ki(e) {
|
|
2696
2696
|
return e >= 65 && e <= 90 || e >= 97 && e <= 122;
|
|
2697
2697
|
}
|
|
2698
2698
|
m.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
@@ -2727,13 +2727,13 @@ m.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
|
2727
2727
|
) && this.regexp_eatHexDigits(e) && e.eat(
|
|
2728
2728
|
125
|
|
2729
2729
|
/* } */
|
|
2730
|
-
) &&
|
|
2730
|
+
) && sa(e.lastIntValue))
|
|
2731
2731
|
return !0;
|
|
2732
2732
|
i && e.raise("Invalid unicode escape"), e.pos = r;
|
|
2733
2733
|
}
|
|
2734
2734
|
return !1;
|
|
2735
2735
|
};
|
|
2736
|
-
function
|
|
2736
|
+
function sa(e) {
|
|
2737
2737
|
return e >= 0 && e <= 1114111;
|
|
2738
2738
|
}
|
|
2739
2739
|
m.regexp_eatIdentityEscape = function(e) {
|
|
@@ -2756,10 +2756,10 @@ m.regexp_eatDecimalEscape = function(e) {
|
|
|
2756
2756
|
}
|
|
2757
2757
|
return !1;
|
|
2758
2758
|
};
|
|
2759
|
-
var
|
|
2759
|
+
var Ei = 0, se = 1, H = 2;
|
|
2760
2760
|
m.regexp_eatCharacterClassEscape = function(e) {
|
|
2761
2761
|
var t = e.current();
|
|
2762
|
-
if (
|
|
2762
|
+
if (na(t))
|
|
2763
2763
|
return e.lastIntValue = -1, e.advance(), se;
|
|
2764
2764
|
var r = !1;
|
|
2765
2765
|
if (e.switchU && this.options.ecmaVersion >= 9 && ((r = t === 80) || t === 112)) {
|
|
@@ -2775,9 +2775,9 @@ m.regexp_eatCharacterClassEscape = function(e) {
|
|
|
2775
2775
|
return r && i === H && e.raise("Invalid property name"), i;
|
|
2776
2776
|
e.raise("Invalid property name");
|
|
2777
2777
|
}
|
|
2778
|
-
return
|
|
2778
|
+
return Ei;
|
|
2779
2779
|
};
|
|
2780
|
-
function
|
|
2780
|
+
function na(e) {
|
|
2781
2781
|
return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
|
|
2782
2782
|
}
|
|
2783
2783
|
m.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
@@ -2796,7 +2796,7 @@ m.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
|
2796
2796
|
var a = e.lastStringValue;
|
|
2797
2797
|
return this.regexp_validateUnicodePropertyNameOrValue(e, a);
|
|
2798
2798
|
}
|
|
2799
|
-
return
|
|
2799
|
+
return Ei;
|
|
2800
2800
|
};
|
|
2801
2801
|
m.regexp_validateUnicodePropertyNameAndValue = function(e, t, r) {
|
|
2802
2802
|
Ae(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(r) || e.raise("Invalid property value");
|
|
@@ -2810,21 +2810,21 @@ m.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
|
2810
2810
|
};
|
|
2811
2811
|
m.regexp_eatUnicodePropertyName = function(e) {
|
|
2812
2812
|
var t = 0;
|
|
2813
|
-
for (e.lastStringValue = "";
|
|
2813
|
+
for (e.lastStringValue = ""; Ci(t = e.current()); )
|
|
2814
2814
|
e.lastStringValue += ae(t), e.advance();
|
|
2815
2815
|
return e.lastStringValue !== "";
|
|
2816
2816
|
};
|
|
2817
|
-
function
|
|
2818
|
-
return
|
|
2817
|
+
function Ci(e) {
|
|
2818
|
+
return ki(e) || e === 95;
|
|
2819
2819
|
}
|
|
2820
2820
|
m.regexp_eatUnicodePropertyValue = function(e) {
|
|
2821
2821
|
var t = 0;
|
|
2822
|
-
for (e.lastStringValue = "";
|
|
2822
|
+
for (e.lastStringValue = ""; oa(t = e.current()); )
|
|
2823
2823
|
e.lastStringValue += ae(t), e.advance();
|
|
2824
2824
|
return e.lastStringValue !== "";
|
|
2825
2825
|
};
|
|
2826
|
-
function
|
|
2827
|
-
return
|
|
2826
|
+
function oa(e) {
|
|
2827
|
+
return Ci(e) || at(e);
|
|
2828
2828
|
}
|
|
2829
2829
|
m.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
2830
2830
|
return this.regexp_eatUnicodePropertyValue(e);
|
|
@@ -2870,7 +2870,7 @@ m.regexp_eatClassAtom = function(e) {
|
|
|
2870
2870
|
return !0;
|
|
2871
2871
|
if (e.switchU) {
|
|
2872
2872
|
var r = e.current();
|
|
2873
|
-
(r === 99 ||
|
|
2873
|
+
(r === 99 || Ai(r)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
|
|
2874
2874
|
}
|
|
2875
2875
|
e.pos = t;
|
|
2876
2876
|
}
|
|
@@ -3023,19 +3023,19 @@ m.regexp_eatClassSetCharacter = function(e) {
|
|
|
3023
3023
|
/* b */
|
|
3024
3024
|
) ? (e.lastIntValue = 8, !0) : (e.pos = t, !1);
|
|
3025
3025
|
var r = e.current();
|
|
3026
|
-
return r < 0 || r === e.lookahead() &&
|
|
3026
|
+
return r < 0 || r === e.lookahead() && ua(r) || la(r) ? !1 : (e.advance(), e.lastIntValue = r, !0);
|
|
3027
3027
|
};
|
|
3028
|
-
function
|
|
3028
|
+
function ua(e) {
|
|
3029
3029
|
return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
|
|
3030
3030
|
}
|
|
3031
|
-
function
|
|
3031
|
+
function la(e) {
|
|
3032
3032
|
return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
|
|
3033
3033
|
}
|
|
3034
3034
|
m.regexp_eatClassSetReservedPunctuator = function(e) {
|
|
3035
3035
|
var t = e.current();
|
|
3036
|
-
return
|
|
3036
|
+
return ca(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
3037
3037
|
};
|
|
3038
|
-
function
|
|
3038
|
+
function ca(e) {
|
|
3039
3039
|
return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
|
|
3040
3040
|
}
|
|
3041
3041
|
m.regexp_eatClassControlLetter = function(e) {
|
|
@@ -3065,14 +3065,14 @@ function at(e) {
|
|
|
3065
3065
|
}
|
|
3066
3066
|
m.regexp_eatHexDigits = function(e) {
|
|
3067
3067
|
var t = e.pos, r = 0;
|
|
3068
|
-
for (e.lastIntValue = 0;
|
|
3069
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
3068
|
+
for (e.lastIntValue = 0; _i(r = e.current()); )
|
|
3069
|
+
e.lastIntValue = 16 * e.lastIntValue + Ii(r), e.advance();
|
|
3070
3070
|
return e.pos !== t;
|
|
3071
3071
|
};
|
|
3072
|
-
function
|
|
3072
|
+
function _i(e) {
|
|
3073
3073
|
return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
3074
3074
|
}
|
|
3075
|
-
function
|
|
3075
|
+
function Ii(e) {
|
|
3076
3076
|
return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
|
|
3077
3077
|
}
|
|
3078
3078
|
m.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
@@ -3089,9 +3089,9 @@ m.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
|
3089
3089
|
};
|
|
3090
3090
|
m.regexp_eatOctalDigit = function(e) {
|
|
3091
3091
|
var t = e.current();
|
|
3092
|
-
return
|
|
3092
|
+
return Ai(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
|
|
3093
3093
|
};
|
|
3094
|
-
function
|
|
3094
|
+
function Ai(e) {
|
|
3095
3095
|
return e >= 48 && e <= 55;
|
|
3096
3096
|
}
|
|
3097
3097
|
m.regexp_eatFixedHexDigits = function(e, t) {
|
|
@@ -3099,15 +3099,15 @@ m.regexp_eatFixedHexDigits = function(e, t) {
|
|
|
3099
3099
|
e.lastIntValue = 0;
|
|
3100
3100
|
for (var i = 0; i < t; ++i) {
|
|
3101
3101
|
var a = e.current();
|
|
3102
|
-
if (!
|
|
3102
|
+
if (!_i(a))
|
|
3103
3103
|
return e.pos = r, !1;
|
|
3104
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
3104
|
+
e.lastIntValue = 16 * e.lastIntValue + Ii(a), e.advance();
|
|
3105
3105
|
}
|
|
3106
3106
|
return !0;
|
|
3107
3107
|
};
|
|
3108
3108
|
var Pt = function(t) {
|
|
3109
3109
|
this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new Je(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
|
|
3110
|
-
}, b =
|
|
3110
|
+
}, b = V.prototype;
|
|
3111
3111
|
b.next = function(e) {
|
|
3112
3112
|
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Pt(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
|
|
3113
3113
|
};
|
|
@@ -3147,7 +3147,7 @@ b.fullCharCodeAtPos = function() {
|
|
|
3147
3147
|
b.skipBlockComment = function() {
|
|
3148
3148
|
var e = this.options.onComment && this.curPosition(), t = this.pos, r = this.input.indexOf("*/", this.pos += 2);
|
|
3149
3149
|
if (r === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = r + 2, this.options.locations)
|
|
3150
|
-
for (var i = void 0, a = t; (i =
|
|
3150
|
+
for (var i = void 0, a = t; (i = Zt(this.input, a, this.pos)) > -1; )
|
|
3151
3151
|
++this.curLine, a = this.lineStart = i;
|
|
3152
3152
|
this.options.onComment && this.options.onComment(
|
|
3153
3153
|
!0,
|
|
@@ -3198,7 +3198,7 @@ b.skipSpace = function() {
|
|
|
3198
3198
|
}
|
|
3199
3199
|
break;
|
|
3200
3200
|
default:
|
|
3201
|
-
if (e > 8 && e < 14 || e >= 5760 &&
|
|
3201
|
+
if (e > 8 && e < 14 || e >= 5760 && Jt.test(String.fromCharCode(e)))
|
|
3202
3202
|
++this.pos;
|
|
3203
3203
|
else
|
|
3204
3204
|
break e;
|
|
@@ -3402,28 +3402,28 @@ b.readRegexp = function() {
|
|
|
3402
3402
|
};
|
|
3403
3403
|
b.readInt = function(e, t, r) {
|
|
3404
3404
|
for (var i = this.options.ecmaVersion >= 12 && t === void 0, a = r && this.input.charCodeAt(this.pos) === 48, s = this.pos, n = 0, u = 0, l = 0, c = t ?? 1 / 0; l < c; ++l, ++this.pos) {
|
|
3405
|
-
var
|
|
3406
|
-
if (i &&
|
|
3407
|
-
a && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), u === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), l === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), u =
|
|
3405
|
+
var f = this.input.charCodeAt(this.pos), h = void 0;
|
|
3406
|
+
if (i && f === 95) {
|
|
3407
|
+
a && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), u === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), l === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), u = f;
|
|
3408
3408
|
continue;
|
|
3409
3409
|
}
|
|
3410
|
-
if (
|
|
3410
|
+
if (f >= 97 ? h = f - 97 + 10 : f >= 65 ? h = f - 65 + 10 : f >= 48 && f <= 57 ? h = f - 48 : h = 1 / 0, h >= e)
|
|
3411
3411
|
break;
|
|
3412
|
-
u =
|
|
3412
|
+
u = f, n = n * e + h;
|
|
3413
3413
|
}
|
|
3414
3414
|
return i && u === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === s || t != null && this.pos - s !== t ? null : n;
|
|
3415
3415
|
};
|
|
3416
|
-
function
|
|
3416
|
+
function fa(e, t) {
|
|
3417
3417
|
return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
|
|
3418
3418
|
}
|
|
3419
|
-
function
|
|
3419
|
+
function Pi(e) {
|
|
3420
3420
|
return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
|
|
3421
3421
|
}
|
|
3422
3422
|
b.readRadixNumber = function(e) {
|
|
3423
3423
|
var t = this.pos;
|
|
3424
3424
|
this.pos += 2;
|
|
3425
3425
|
var r = this.readInt(e);
|
|
3426
|
-
return r == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (r =
|
|
3426
|
+
return r == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (r = Pi(this.input.slice(t, this.pos)), ++this.pos) : re(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(o.num, r);
|
|
3427
3427
|
};
|
|
3428
3428
|
b.readNumber = function(e) {
|
|
3429
3429
|
var t = this.pos;
|
|
@@ -3432,11 +3432,11 @@ b.readNumber = function(e) {
|
|
|
3432
3432
|
r && this.strict && this.raise(t, "Invalid number");
|
|
3433
3433
|
var i = this.input.charCodeAt(this.pos);
|
|
3434
3434
|
if (!r && !e && this.options.ecmaVersion >= 11 && i === 110) {
|
|
3435
|
-
var a =
|
|
3435
|
+
var a = Pi(this.input.slice(t, this.pos));
|
|
3436
3436
|
return ++this.pos, re(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(o.num, a);
|
|
3437
3437
|
}
|
|
3438
3438
|
r && /[89]/.test(this.input.slice(t, this.pos)) && (r = !1), i === 46 && !r && (++this.pos, this.readInt(10), i = this.input.charCodeAt(this.pos)), (i === 69 || i === 101) && !r && (i = this.input.charCodeAt(++this.pos), (i === 43 || i === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), re(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
3439
|
-
var s =
|
|
3439
|
+
var s = fa(this.input.slice(t, this.pos), r);
|
|
3440
3440
|
return this.finishToken(o.num, s);
|
|
3441
3441
|
};
|
|
3442
3442
|
b.readCodePoint = function() {
|
|
@@ -3459,13 +3459,13 @@ b.readString = function(e) {
|
|
|
3459
3459
|
}
|
|
3460
3460
|
return t += this.input.slice(r, this.pos++), this.finishToken(o.string, t);
|
|
3461
3461
|
};
|
|
3462
|
-
var
|
|
3462
|
+
var Li = {};
|
|
3463
3463
|
b.tryReadTemplateToken = function() {
|
|
3464
3464
|
this.inTemplateElement = !0;
|
|
3465
3465
|
try {
|
|
3466
3466
|
this.readTmplToken();
|
|
3467
3467
|
} catch (e) {
|
|
3468
|
-
if (e ===
|
|
3468
|
+
if (e === Li)
|
|
3469
3469
|
this.readInvalidTemplateToken();
|
|
3470
3470
|
else
|
|
3471
3471
|
throw e;
|
|
@@ -3474,7 +3474,7 @@ b.tryReadTemplateToken = function() {
|
|
|
3474
3474
|
};
|
|
3475
3475
|
b.invalidStringToken = function(e, t) {
|
|
3476
3476
|
if (this.inTemplateElement && this.options.ecmaVersion >= 9)
|
|
3477
|
-
throw
|
|
3477
|
+
throw Li;
|
|
3478
3478
|
this.raise(e, t);
|
|
3479
3479
|
};
|
|
3480
3480
|
b.readTmplToken = function() {
|
|
@@ -3610,13 +3610,13 @@ b.readWord = function() {
|
|
|
3610
3610
|
return this.keywords.test(e) && (t = kt[e]), this.finishToken(t, e);
|
|
3611
3611
|
};
|
|
3612
3612
|
var ha = "8.14.1";
|
|
3613
|
-
|
|
3614
|
-
Parser:
|
|
3613
|
+
V.acorn = {
|
|
3614
|
+
Parser: V,
|
|
3615
3615
|
version: ha,
|
|
3616
3616
|
defaultOptions: dt,
|
|
3617
3617
|
Position: Re,
|
|
3618
3618
|
SourceLocation: Je,
|
|
3619
|
-
getLineInfo:
|
|
3619
|
+
getLineInfo: ti,
|
|
3620
3620
|
Node: rt,
|
|
3621
3621
|
TokenType: k,
|
|
3622
3622
|
tokTypes: o,
|
|
@@ -3628,13 +3628,13 @@ T.acorn = {
|
|
|
3628
3628
|
Token: Pt,
|
|
3629
3629
|
isNewLine: Ie,
|
|
3630
3630
|
lineBreak: K,
|
|
3631
|
-
lineBreakG:
|
|
3632
|
-
nonASCIIwhitespace:
|
|
3631
|
+
lineBreakG: Rr,
|
|
3632
|
+
nonASCIIwhitespace: Jt
|
|
3633
3633
|
};
|
|
3634
|
-
function
|
|
3635
|
-
return
|
|
3634
|
+
function pa(e, t) {
|
|
3635
|
+
return V.parse(e, t);
|
|
3636
3636
|
}
|
|
3637
|
-
const me = { RES: void 0 }, w = { RES: void 0 }, C = { LABEL: void 0 }, _ = { LABEL: void 0 }, st = R("super"),
|
|
3637
|
+
const me = { RES: void 0 }, w = { RES: void 0 }, C = { LABEL: void 0 }, _ = { LABEL: void 0 }, st = R("super"), he = R("supercall"), nt = R("noctor"), Ee = R("clsctor"), ot = R("newtarget"), N = R("private"), B = R("noinit"), F = R("deadzone"), A = R("optchain"), ve = R("import"), $ = R("exports"), Lt = R("strict");
|
|
3638
3638
|
class ze {
|
|
3639
3639
|
constructor(t, r) {
|
|
3640
3640
|
this.kind = t, this.value = r;
|
|
@@ -3761,8 +3761,8 @@ class L {
|
|
|
3761
3761
|
Object.keys(t) && (this.withContext = t);
|
|
3762
3762
|
}
|
|
3763
3763
|
}
|
|
3764
|
-
const
|
|
3765
|
-
version:
|
|
3764
|
+
const da = "0.6.10", ya = {
|
|
3765
|
+
version: da
|
|
3766
3766
|
};
|
|
3767
3767
|
function gt(e, t = {}) {
|
|
3768
3768
|
const { res: r, err: i, ret: a, fullRet: s } = t;
|
|
@@ -3770,33 +3770,33 @@ function gt(e, t = {}) {
|
|
|
3770
3770
|
if ("ret" in t)
|
|
3771
3771
|
return n(e.return(a));
|
|
3772
3772
|
"err" in t ? c(i) : l(r);
|
|
3773
|
-
function l(
|
|
3773
|
+
function l(h) {
|
|
3774
3774
|
let v;
|
|
3775
3775
|
try {
|
|
3776
|
-
v = e.next(
|
|
3776
|
+
v = e.next(h);
|
|
3777
3777
|
} catch (I) {
|
|
3778
3778
|
return u(I);
|
|
3779
3779
|
}
|
|
3780
|
-
return
|
|
3780
|
+
return f(v), null;
|
|
3781
3781
|
}
|
|
3782
|
-
function c(
|
|
3782
|
+
function c(h) {
|
|
3783
3783
|
let v;
|
|
3784
3784
|
try {
|
|
3785
|
-
v = e.throw(
|
|
3785
|
+
v = e.throw(h);
|
|
3786
3786
|
} catch (I) {
|
|
3787
3787
|
return u(I);
|
|
3788
3788
|
}
|
|
3789
|
-
|
|
3789
|
+
f(v);
|
|
3790
3790
|
}
|
|
3791
|
-
function h
|
|
3792
|
-
if (
|
|
3793
|
-
if (
|
|
3794
|
-
const v =
|
|
3791
|
+
function f(h) {
|
|
3792
|
+
if (h.done) return n(s ? h : h.value);
|
|
3793
|
+
if (h.value !== me) return n(h);
|
|
3794
|
+
const v = h.value.RES;
|
|
3795
3795
|
return (v && v.then === "function" ? v : Promise.resolve(v)).then(l, c);
|
|
3796
3796
|
}
|
|
3797
3797
|
});
|
|
3798
3798
|
}
|
|
3799
|
-
function*
|
|
3799
|
+
function* Te(e, t, r = {}) {
|
|
3800
3800
|
const { getVar: i = !1, throwErr: a = !0 } = r;
|
|
3801
3801
|
if (e.name === "undefined")
|
|
3802
3802
|
return;
|
|
@@ -3816,24 +3816,24 @@ function* Ve(e, t, r = {}) {
|
|
|
3816
3816
|
return;
|
|
3817
3817
|
}
|
|
3818
3818
|
}
|
|
3819
|
-
const
|
|
3819
|
+
const ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3820
3820
|
__proto__: null,
|
|
3821
|
-
Identifier:
|
|
3821
|
+
Identifier: Te
|
|
3822
3822
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3823
|
-
function*
|
|
3823
|
+
function* Ti(e, t) {
|
|
3824
3824
|
return e.regex ? new RegExp(e.regex.pattern, e.regex.flags) : e.value;
|
|
3825
3825
|
}
|
|
3826
|
-
const
|
|
3826
|
+
const ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3827
3827
|
__proto__: null,
|
|
3828
|
-
Literal:
|
|
3828
|
+
Literal: Ti
|
|
3829
3829
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3830
|
-
function*
|
|
3831
|
-
const r = t.find(
|
|
3830
|
+
function* xa(e, t) {
|
|
3831
|
+
const r = t.find(he);
|
|
3832
3832
|
if (r && r.get() !== !0)
|
|
3833
3833
|
throw new ReferenceError("Must call super constructor in derived class before accessing 'this' or returning from derived constructor");
|
|
3834
3834
|
return t.find("this").get();
|
|
3835
3835
|
}
|
|
3836
|
-
function*
|
|
3836
|
+
function* ba(e, t) {
|
|
3837
3837
|
let r = [];
|
|
3838
3838
|
for (let i = 0; i < e.elements.length; i++) {
|
|
3839
3839
|
const a = e.elements[i];
|
|
@@ -3841,7 +3841,7 @@ function* xa(e, t) {
|
|
|
3841
3841
|
}
|
|
3842
3842
|
return r;
|
|
3843
3843
|
}
|
|
3844
|
-
function*
|
|
3844
|
+
function* va(e, t) {
|
|
3845
3845
|
const r = {};
|
|
3846
3846
|
for (let i = 0; i < e.properties.length; i++) {
|
|
3847
3847
|
const a = e.properties[i];
|
|
@@ -3850,12 +3850,12 @@ function* ba(e, t) {
|
|
|
3850
3850
|
else {
|
|
3851
3851
|
let s;
|
|
3852
3852
|
const n = a.key;
|
|
3853
|
-
a.computed ? s = yield* d(n, t) : n.type === "Identifier" ? s = n.name : s = "" + (yield*
|
|
3853
|
+
a.computed ? s = yield* d(n, t) : n.type === "Identifier" ? s = n.name : s = "" + (yield* Ti(n));
|
|
3854
3854
|
const u = yield* d(a.value, t), l = a.kind;
|
|
3855
3855
|
if (l === "init")
|
|
3856
3856
|
r[s] = u;
|
|
3857
3857
|
else if (l === "get") {
|
|
3858
|
-
const c =
|
|
3858
|
+
const c = fe(r, s);
|
|
3859
3859
|
E(r, s, {
|
|
3860
3860
|
get: u,
|
|
3861
3861
|
set: c && c.set,
|
|
@@ -3863,7 +3863,7 @@ function* ba(e, t) {
|
|
|
3863
3863
|
configurable: !0
|
|
3864
3864
|
});
|
|
3865
3865
|
} else {
|
|
3866
|
-
const c =
|
|
3866
|
+
const c = fe(r, s);
|
|
3867
3867
|
E(r, s, {
|
|
3868
3868
|
get: c && c.get,
|
|
3869
3869
|
set: u,
|
|
@@ -3875,14 +3875,14 @@ function* ba(e, t) {
|
|
|
3875
3875
|
}
|
|
3876
3876
|
return r;
|
|
3877
3877
|
}
|
|
3878
|
-
function*
|
|
3878
|
+
function* Sa(e, t) {
|
|
3879
3879
|
if (e.id && e.id.name) {
|
|
3880
3880
|
const r = new L(t), i = Z(e, r);
|
|
3881
3881
|
return r.const(e.id.name, i), i;
|
|
3882
3882
|
} else
|
|
3883
3883
|
return Z(e, t);
|
|
3884
3884
|
}
|
|
3885
|
-
function*
|
|
3885
|
+
function* wa(e, t) {
|
|
3886
3886
|
const r = e.argument;
|
|
3887
3887
|
switch (e.operator) {
|
|
3888
3888
|
case "+":
|
|
@@ -3896,7 +3896,7 @@ function* Sa(e, t) {
|
|
|
3896
3896
|
case "void":
|
|
3897
3897
|
return void (yield* d(r, t));
|
|
3898
3898
|
case "typeof":
|
|
3899
|
-
return r.type === "Identifier" ? typeof (yield*
|
|
3899
|
+
return r.type === "Identifier" ? typeof (yield* Te(r, t, { throwErr: !1 })) : typeof (yield* d(r, t));
|
|
3900
3900
|
case "delete":
|
|
3901
3901
|
if (r.type === "MemberExpression")
|
|
3902
3902
|
return (yield* je(r, t, { getVar: !0 })).del();
|
|
@@ -3908,11 +3908,11 @@ function* Sa(e, t) {
|
|
|
3908
3908
|
throw new SyntaxError(`Unexpected token ${e.operator}`);
|
|
3909
3909
|
}
|
|
3910
3910
|
}
|
|
3911
|
-
function*
|
|
3911
|
+
function* ka(e, t) {
|
|
3912
3912
|
const r = e.argument;
|
|
3913
3913
|
let i;
|
|
3914
3914
|
if (r.type === "Identifier")
|
|
3915
|
-
i = yield*
|
|
3915
|
+
i = yield* Te(r, t, { getVar: !0 });
|
|
3916
3916
|
else if (r.type === "MemberExpression")
|
|
3917
3917
|
i = yield* je(r, t, { getVar: !0 });
|
|
3918
3918
|
else
|
|
@@ -3924,7 +3924,7 @@ function* wa(e, t) {
|
|
|
3924
3924
|
return i.set(a - 1), e.prefix ? i.get() : a;
|
|
3925
3925
|
throw new SyntaxError(`Unexpected token ${e.operator}`);
|
|
3926
3926
|
}
|
|
3927
|
-
function*
|
|
3927
|
+
function* Ea(e, t) {
|
|
3928
3928
|
let r, i;
|
|
3929
3929
|
switch (e.left.type === "PrivateIdentifier" ? (r = e.left.name, i = yield* d(e.right, t), i = i[N] || {}) : (r = yield* d(e.left, t), i = yield* d(e.right, t)), e.operator) {
|
|
3930
3930
|
case "==":
|
|
@@ -3976,13 +3976,16 @@ function* ka(e, t) {
|
|
|
3976
3976
|
throw new SyntaxError(`Unexpected token ${e.operator}`);
|
|
3977
3977
|
}
|
|
3978
3978
|
}
|
|
3979
|
-
function*
|
|
3979
|
+
function* Ca(e, t) {
|
|
3980
3980
|
const r = e.left;
|
|
3981
3981
|
let i;
|
|
3982
3982
|
if (r.type === "Identifier") {
|
|
3983
|
-
if (i = yield*
|
|
3984
|
-
const s = t.
|
|
3985
|
-
|
|
3983
|
+
if (i = yield* Te(r, t, { getVar: !0, throwErr: !1 }), !i) {
|
|
3984
|
+
const s = t.find(Lt);
|
|
3985
|
+
if (s && s.get())
|
|
3986
|
+
throw new ReferenceError(`${r.name} is not defined`);
|
|
3987
|
+
const n = t.global().find("window").get();
|
|
3988
|
+
i = new pe(n, r.name);
|
|
3986
3989
|
}
|
|
3987
3990
|
} else if (r.type === "MemberExpression")
|
|
3988
3991
|
i = yield* je(r, t, { getVar: !0 });
|
|
@@ -4029,7 +4032,7 @@ function* Ea(e, t) {
|
|
|
4029
4032
|
throw new SyntaxError(`Unexpected token ${e.operator}`);
|
|
4030
4033
|
}
|
|
4031
4034
|
}
|
|
4032
|
-
function*
|
|
4035
|
+
function* _a(e, t) {
|
|
4033
4036
|
switch (e.operator) {
|
|
4034
4037
|
case "||":
|
|
4035
4038
|
return (yield* d(e.left, t)) || (yield* d(e.right, t));
|
|
@@ -4044,18 +4047,18 @@ function* Ca(e, t) {
|
|
|
4044
4047
|
function* je(e, t, r = {}) {
|
|
4045
4048
|
const { getObj: i = !1, getVar: a = !1 } = r;
|
|
4046
4049
|
let s;
|
|
4047
|
-
if (e.object.type === "Super" ? s = yield*
|
|
4050
|
+
if (e.object.type === "Super" ? s = yield* Ni(e.object, t, { getProto: !0 }) : s = yield* d(e.object, t), s === A) return A;
|
|
4048
4051
|
if (i) return s;
|
|
4049
4052
|
let n, u = !1;
|
|
4050
4053
|
if (e.computed ? n = yield* d(e.property, t) : e.property.type === "PrivateIdentifier" ? (n = e.property.name, u = !0) : n = e.property.name, u && (s = s[N]), a) {
|
|
4051
|
-
const l =
|
|
4054
|
+
const l = Ht(s, n);
|
|
4052
4055
|
if (e.object.type === "Super" && l) {
|
|
4053
|
-
const c = t.find("this").get(),
|
|
4054
|
-
return E(c,
|
|
4056
|
+
const c = t.find("this").get(), f = R(n);
|
|
4057
|
+
return E(c, f, { set: l }), new pe(c, f);
|
|
4055
4058
|
} else
|
|
4056
4059
|
return new pe(s, n);
|
|
4057
4060
|
} else {
|
|
4058
|
-
const l =
|
|
4061
|
+
const l = Gt(s, n);
|
|
4059
4062
|
if (e.object.type === "Super" && l) {
|
|
4060
4063
|
const c = t.find("this").get();
|
|
4061
4064
|
return e.optional && c == null ? A : l.call(c);
|
|
@@ -4063,10 +4066,10 @@ function* je(e, t, r = {}) {
|
|
|
4063
4066
|
return e.optional && s == null ? A : s[n];
|
|
4064
4067
|
}
|
|
4065
4068
|
}
|
|
4066
|
-
function*
|
|
4069
|
+
function* Ia(e, t) {
|
|
4067
4070
|
return (yield* d(e.test, t)) ? yield* d(e.consequent, t) : yield* d(e.alternate, t);
|
|
4068
4071
|
}
|
|
4069
|
-
function*
|
|
4072
|
+
function* Aa(e, t) {
|
|
4070
4073
|
let r, i;
|
|
4071
4074
|
if (e.callee.type === "MemberExpression") {
|
|
4072
4075
|
if (i = yield* je(e.callee, t, { getObj: !0 }), i === A || e.callee.optional && i == null)
|
|
@@ -4107,11 +4110,11 @@ function* Ia(e, t) {
|
|
|
4107
4110
|
n.type === "SpreadElement" ? a = a.concat(yield* Ue(n, t)) : a.push(yield* d(n, t));
|
|
4108
4111
|
}
|
|
4109
4112
|
if (e.callee.type === "Super") {
|
|
4110
|
-
const n = t.find(
|
|
4113
|
+
const n = t.find(he).get();
|
|
4111
4114
|
if (n === !0)
|
|
4112
4115
|
throw new ReferenceError("Super constructor may only be called once");
|
|
4113
4116
|
const u = Ze(i, r, a);
|
|
4114
|
-
return yield* n(u), t.find("this").set(u), t.find(
|
|
4117
|
+
return yield* n(u), t.find("this").set(u), t.find(he).set(!0), u;
|
|
4115
4118
|
}
|
|
4116
4119
|
try {
|
|
4117
4120
|
return r.apply(i, a);
|
|
@@ -4124,7 +4127,7 @@ function* Ia(e, t) {
|
|
|
4124
4127
|
throw s;
|
|
4125
4128
|
}
|
|
4126
4129
|
}
|
|
4127
|
-
function*
|
|
4130
|
+
function* Pa(e, t) {
|
|
4128
4131
|
const r = yield* d(e.callee, t);
|
|
4129
4132
|
if (typeof r != "function") {
|
|
4130
4133
|
let a;
|
|
@@ -4146,13 +4149,13 @@ function* Aa(e, t) {
|
|
|
4146
4149
|
}
|
|
4147
4150
|
return new r(...i);
|
|
4148
4151
|
}
|
|
4149
|
-
function*
|
|
4152
|
+
function* La(e, t) {
|
|
4150
4153
|
if (e.meta.name === "new" && e.property.name === "target")
|
|
4151
4154
|
return t.find(ot).get();
|
|
4152
4155
|
if (e.meta.name === "import" && e.property.name === "meta")
|
|
4153
4156
|
return { url: "" };
|
|
4154
4157
|
}
|
|
4155
|
-
function*
|
|
4158
|
+
function* Ta(e, t) {
|
|
4156
4159
|
let r;
|
|
4157
4160
|
for (let i = 0; i < e.expressions.length; i++)
|
|
4158
4161
|
r = yield* d(e.expressions[i], t);
|
|
@@ -4161,14 +4164,14 @@ function* La(e, t) {
|
|
|
4161
4164
|
function* Va(e, t) {
|
|
4162
4165
|
return Z(e, t);
|
|
4163
4166
|
}
|
|
4164
|
-
function*
|
|
4167
|
+
function* Na(e, t) {
|
|
4165
4168
|
const r = e.quasis.slice(), i = e.expressions.slice();
|
|
4166
4169
|
let a = "", s, n;
|
|
4167
4170
|
for (; s = r.shift(); )
|
|
4168
4171
|
a += yield* Vi(s), n = i.shift(), n && (a += yield* d(n, t));
|
|
4169
4172
|
return a;
|
|
4170
4173
|
}
|
|
4171
|
-
function*
|
|
4174
|
+
function* Ra(e, t) {
|
|
4172
4175
|
const r = yield* d(e.tag, t), i = e.quasi.quasis, a = i.map((l) => l.value.cooked), s = i.map((l) => l.value.raw);
|
|
4173
4176
|
E(a, "raw", {
|
|
4174
4177
|
value: Ge(s)
|
|
@@ -4182,14 +4185,14 @@ function* Na(e, t) {
|
|
|
4182
4185
|
function* Vi(e, t) {
|
|
4183
4186
|
return e.value.raw;
|
|
4184
4187
|
}
|
|
4185
|
-
function*
|
|
4188
|
+
function* Ba(e, t) {
|
|
4186
4189
|
if (e.id && e.id.name) {
|
|
4187
4190
|
const r = new L(t), i = yield* De(e, r);
|
|
4188
4191
|
return r.const(e.id.name, i), i;
|
|
4189
4192
|
} else
|
|
4190
4193
|
return yield* De(e, t);
|
|
4191
4194
|
}
|
|
4192
|
-
function*
|
|
4195
|
+
function* Ni(e, t, r = {}) {
|
|
4193
4196
|
const { getProto: i = !1 } = r, a = t.find(st).get();
|
|
4194
4197
|
return i ? a.prototype : a;
|
|
4195
4198
|
}
|
|
@@ -4201,11 +4204,11 @@ function* Ue(e, t, r = {}) {
|
|
|
4201
4204
|
throw new TypeError("Spread syntax requires ...iterable[Symbol.iterator] to be a function");
|
|
4202
4205
|
return [...i];
|
|
4203
4206
|
}
|
|
4204
|
-
function*
|
|
4207
|
+
function* Oa(e, t) {
|
|
4205
4208
|
const r = yield* d(e.expression, t);
|
|
4206
4209
|
return r === A ? void 0 : r;
|
|
4207
4210
|
}
|
|
4208
|
-
function*
|
|
4211
|
+
function* Da(e, t) {
|
|
4209
4212
|
const r = t.global(), i = yield* d(e.source, t), a = r.find(ve + i);
|
|
4210
4213
|
let s;
|
|
4211
4214
|
if (a) {
|
|
@@ -4214,66 +4217,66 @@ function* Oa(e, t) {
|
|
|
4214
4217
|
}
|
|
4215
4218
|
return !s || typeof s != "object" ? Promise.reject(new TypeError(`Failed to resolve module specifier "${i}"`)) : Promise.resolve(s);
|
|
4216
4219
|
}
|
|
4217
|
-
function*
|
|
4220
|
+
function* Fa(e, t) {
|
|
4218
4221
|
const r = yield* d(e.argument, t);
|
|
4219
4222
|
return e.delegate ? yield* r : yield r;
|
|
4220
4223
|
}
|
|
4221
|
-
function*
|
|
4224
|
+
function* Ma(e, t) {
|
|
4222
4225
|
return me.RES = yield* d(e.argument, t), yield me;
|
|
4223
4226
|
}
|
|
4224
|
-
const
|
|
4227
|
+
const ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4225
4228
|
__proto__: null,
|
|
4226
|
-
ArrayExpression:
|
|
4229
|
+
ArrayExpression: ba,
|
|
4227
4230
|
ArrowFunctionExpression: Va,
|
|
4228
|
-
AssignmentExpression:
|
|
4229
|
-
AwaitExpression:
|
|
4230
|
-
BinaryExpression:
|
|
4231
|
-
CallExpression:
|
|
4232
|
-
ChainExpression:
|
|
4233
|
-
ClassExpression:
|
|
4234
|
-
ConditionalExpression:
|
|
4235
|
-
FunctionExpression:
|
|
4236
|
-
ImportExpression:
|
|
4237
|
-
LogicalExpression:
|
|
4231
|
+
AssignmentExpression: Ca,
|
|
4232
|
+
AwaitExpression: Ma,
|
|
4233
|
+
BinaryExpression: Ea,
|
|
4234
|
+
CallExpression: Aa,
|
|
4235
|
+
ChainExpression: Oa,
|
|
4236
|
+
ClassExpression: Ba,
|
|
4237
|
+
ConditionalExpression: Ia,
|
|
4238
|
+
FunctionExpression: Sa,
|
|
4239
|
+
ImportExpression: Da,
|
|
4240
|
+
LogicalExpression: _a,
|
|
4238
4241
|
MemberExpression: je,
|
|
4239
|
-
MetaProperty:
|
|
4240
|
-
NewExpression:
|
|
4241
|
-
ObjectExpression:
|
|
4242
|
-
SequenceExpression:
|
|
4242
|
+
MetaProperty: La,
|
|
4243
|
+
NewExpression: Pa,
|
|
4244
|
+
ObjectExpression: va,
|
|
4245
|
+
SequenceExpression: Ta,
|
|
4243
4246
|
SpreadElement: Ue,
|
|
4244
|
-
Super:
|
|
4245
|
-
TaggedTemplateExpression:
|
|
4247
|
+
Super: Ni,
|
|
4248
|
+
TaggedTemplateExpression: Ra,
|
|
4246
4249
|
TemplateElement: Vi,
|
|
4247
|
-
TemplateLiteral:
|
|
4248
|
-
ThisExpression:
|
|
4249
|
-
UnaryExpression:
|
|
4250
|
-
UpdateExpression:
|
|
4251
|
-
YieldExpression:
|
|
4250
|
+
TemplateLiteral: Na,
|
|
4251
|
+
ThisExpression: xa,
|
|
4252
|
+
UnaryExpression: wa,
|
|
4253
|
+
UpdateExpression: ka,
|
|
4254
|
+
YieldExpression: Fa
|
|
4252
4255
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4253
|
-
function*
|
|
4256
|
+
function* Ri(e, t, r = {}) {
|
|
4254
4257
|
const { kind: i = "var", hoist: a = !1, onlyBlock: s = !1, feed: n = {} } = r, u = [];
|
|
4255
4258
|
for (let l = 0; l < e.properties.length; l++) {
|
|
4256
4259
|
const c = e.properties[l];
|
|
4257
4260
|
if (a) {
|
|
4258
4261
|
if (s || i === "var")
|
|
4259
4262
|
if (c.type === "Property") {
|
|
4260
|
-
const
|
|
4261
|
-
|
|
4263
|
+
const f = c.value;
|
|
4264
|
+
f.type === "Identifier" ? t[i](f.name, s ? F : i === "var" ? B : void 0) : yield* j(f, t, { kind: i, hoist: a, onlyBlock: s });
|
|
4262
4265
|
} else
|
|
4263
4266
|
yield* Ce(c, t, { kind: i, hoist: a, onlyBlock: s });
|
|
4264
4267
|
} else if (c.type === "Property") {
|
|
4265
|
-
let
|
|
4266
|
-
c.computed ?
|
|
4267
|
-
const
|
|
4268
|
-
|
|
4268
|
+
let f;
|
|
4269
|
+
c.computed ? f = yield* d(c.key, t) : f = c.key.name, u.push(f);
|
|
4270
|
+
const h = c.value;
|
|
4271
|
+
h.type === "Identifier" ? t[i](h.name, n[f]) : yield* j(h, t, { kind: i, feed: n[f] });
|
|
4269
4272
|
} else {
|
|
4270
|
-
const
|
|
4271
|
-
for (let
|
|
4272
|
-
yield* Ce(c, t, { kind: i, feed:
|
|
4273
|
+
const f = U({}, n);
|
|
4274
|
+
for (let h = 0; h < u.length; h++) delete f[u[h]];
|
|
4275
|
+
yield* Ce(c, t, { kind: i, feed: f });
|
|
4273
4276
|
}
|
|
4274
4277
|
}
|
|
4275
4278
|
}
|
|
4276
|
-
function*
|
|
4279
|
+
function* Bi(e, t, r = {}) {
|
|
4277
4280
|
const { kind: i, hoist: a = !1, onlyBlock: s = !1, feed: n = [] } = r, u = [];
|
|
4278
4281
|
for (let l = 0; l < e.elements.length; l++) {
|
|
4279
4282
|
const c = e.elements[l];
|
|
@@ -4284,8 +4287,8 @@ function* Ri(e, t, r = {}) {
|
|
|
4284
4287
|
if (i)
|
|
4285
4288
|
t[i](c.name, n[l]);
|
|
4286
4289
|
else {
|
|
4287
|
-
const
|
|
4288
|
-
|
|
4290
|
+
const f = yield* Te(c, t, { getVar: !0 });
|
|
4291
|
+
f.set(n[l]), u.push(f.get());
|
|
4289
4292
|
}
|
|
4290
4293
|
else c.type === "RestElement" ? yield* Ce(c, t, { kind: i, feed: n.slice(l) }) : yield* j(c, t, { kind: i, feed: n[l] });
|
|
4291
4294
|
}
|
|
@@ -4294,46 +4297,46 @@ function* Ri(e, t, r = {}) {
|
|
|
4294
4297
|
}
|
|
4295
4298
|
function* Ce(e, t, r = {}) {
|
|
4296
4299
|
const { kind: i, hoist: a = !1, onlyBlock: s = !1, feed: n = [] } = r, u = e.argument;
|
|
4297
|
-
a ? (s || i === "var") && (u.type === "Identifier" ? t[i](u.name, s ? F : i === "var" ? B : void 0) : yield* j(u, t, { kind: i, hoist: a, onlyBlock: s })) : u.type === "Identifier" ? i ? t[i](u.name, n) : (yield*
|
|
4300
|
+
a ? (s || i === "var") && (u.type === "Identifier" ? t[i](u.name, s ? F : i === "var" ? B : void 0) : yield* j(u, t, { kind: i, hoist: a, onlyBlock: s })) : u.type === "Identifier" ? i ? t[i](u.name, n) : (yield* Te(u, t, { getVar: !0 })).set(n) : yield* j(u, t, { kind: i, feed: n });
|
|
4298
4301
|
}
|
|
4299
|
-
function*
|
|
4302
|
+
function* Oi(e, t, r = {}) {
|
|
4300
4303
|
const { kind: i = "var", hoist: a = !1, onlyBlock: s = !1, feed: n = yield* d(e.right, t) } = r, u = e.left;
|
|
4301
4304
|
a ? (s || i === "var") && (u.type === "Identifier" ? t[i](u.name, s ? F : i === "var" ? B : void 0) : yield* j(u, t, { kind: i, hoist: a, onlyBlock: s })) : u.type === "Identifier" ? t[i](u.name, n) : yield* j(u, t, { kind: i, feed: n });
|
|
4302
4305
|
}
|
|
4303
|
-
const
|
|
4306
|
+
const Ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4304
4307
|
__proto__: null,
|
|
4305
|
-
ArrayPattern:
|
|
4306
|
-
AssignmentPattern:
|
|
4307
|
-
ObjectPattern:
|
|
4308
|
+
ArrayPattern: Bi,
|
|
4309
|
+
AssignmentPattern: Oi,
|
|
4310
|
+
ObjectPattern: Ri,
|
|
4308
4311
|
RestElement: Ce
|
|
4309
4312
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4310
|
-
function*
|
|
4313
|
+
function* $a(e, t) {
|
|
4311
4314
|
for (let r = 0; r < e.body.length; r++)
|
|
4312
4315
|
yield* d(e.body[r], t);
|
|
4313
4316
|
}
|
|
4314
|
-
const
|
|
4317
|
+
const qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4315
4318
|
__proto__: null,
|
|
4316
|
-
Program:
|
|
4319
|
+
Program: $a
|
|
4317
4320
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4318
|
-
let
|
|
4321
|
+
let ft;
|
|
4319
4322
|
function* d(e, t) {
|
|
4320
4323
|
if (!e) return;
|
|
4321
|
-
|
|
4324
|
+
ft || (ft = U(
|
|
4322
4325
|
{},
|
|
4323
|
-
|
|
4324
|
-
Ma,
|
|
4325
|
-
ya,
|
|
4326
|
-
gr,
|
|
4327
|
-
ma,
|
|
4326
|
+
br,
|
|
4328
4327
|
ja,
|
|
4329
|
-
|
|
4328
|
+
ma,
|
|
4329
|
+
xr,
|
|
4330
|
+
ga,
|
|
4331
|
+
Ua,
|
|
4332
|
+
qa
|
|
4330
4333
|
));
|
|
4331
|
-
const r =
|
|
4334
|
+
const r = ft[e.type];
|
|
4332
4335
|
if (r)
|
|
4333
4336
|
return yield* r(e, t);
|
|
4334
4337
|
throw new Error(`${e.type} isn't implemented`);
|
|
4335
4338
|
}
|
|
4336
|
-
function*
|
|
4339
|
+
function* Wa(e, t) {
|
|
4337
4340
|
yield* d(e.expression, t);
|
|
4338
4341
|
}
|
|
4339
4342
|
function* ne(e, t, r = {}) {
|
|
@@ -4341,7 +4344,7 @@ function* ne(e, t, r = {}) {
|
|
|
4341
4344
|
invasived: i = !1,
|
|
4342
4345
|
hoisted: a = !1
|
|
4343
4346
|
} = r, s = i ? t : new L(t);
|
|
4344
|
-
a || (yield*
|
|
4347
|
+
a || (yield* Rt(e, s, { onlyBlock: !0 }));
|
|
4345
4348
|
for (let n = 0; n < e.body.length; n++) {
|
|
4346
4349
|
const u = yield* d(e.body[n], s);
|
|
4347
4350
|
if (u === _) {
|
|
@@ -4353,47 +4356,47 @@ function* ne(e, t, r = {}) {
|
|
|
4353
4356
|
return u;
|
|
4354
4357
|
}
|
|
4355
4358
|
}
|
|
4356
|
-
function* Wa() {
|
|
4357
|
-
}
|
|
4358
4359
|
function* za() {
|
|
4360
|
+
}
|
|
4361
|
+
function* Ga() {
|
|
4359
4362
|
debugger;
|
|
4360
4363
|
}
|
|
4361
|
-
function*
|
|
4364
|
+
function* Ha(e, t) {
|
|
4362
4365
|
return w.RES = e.argument ? yield* d(e.argument, t) : void 0, w;
|
|
4363
4366
|
}
|
|
4364
|
-
function*
|
|
4367
|
+
function* Ka(e) {
|
|
4365
4368
|
var t;
|
|
4366
4369
|
return _.LABEL = (t = e.label) == null ? void 0 : t.name, _;
|
|
4367
4370
|
}
|
|
4368
|
-
function*
|
|
4371
|
+
function* Qa(e) {
|
|
4369
4372
|
var t;
|
|
4370
4373
|
return C.LABEL = (t = e.label) == null ? void 0 : t.name, C;
|
|
4371
4374
|
}
|
|
4372
|
-
function*
|
|
4375
|
+
function* Xa(e, t) {
|
|
4373
4376
|
const r = e.label.name;
|
|
4374
4377
|
if (e.body.type === "WhileStatement")
|
|
4375
|
-
return yield* Ui(e.body, t, { label: r });
|
|
4376
|
-
if (e.body.type === "DoWhileStatement")
|
|
4377
4378
|
return yield* $i(e.body, t, { label: r });
|
|
4378
|
-
if (e.body.type === "
|
|
4379
|
+
if (e.body.type === "DoWhileStatement")
|
|
4379
4380
|
return yield* qi(e.body, t, { label: r });
|
|
4380
|
-
if (e.body.type === "
|
|
4381
|
+
if (e.body.type === "ForStatement")
|
|
4381
4382
|
return yield* Wi(e.body, t, { label: r });
|
|
4382
|
-
if (e.body.type === "
|
|
4383
|
+
if (e.body.type === "ForInStatement")
|
|
4383
4384
|
return yield* zi(e.body, t, { label: r });
|
|
4385
|
+
if (e.body.type === "ForOfStatement")
|
|
4386
|
+
return yield* Gi(e.body, t, { label: r });
|
|
4384
4387
|
if (e.body.type === "BlockStatement")
|
|
4385
4388
|
return yield* ne(e.body, t, { label: r });
|
|
4386
4389
|
if (e.body.type === "WithStatement")
|
|
4387
|
-
return yield* Oi(e.body, t, { label: r });
|
|
4388
|
-
if (e.body.type === "IfStatement")
|
|
4389
4390
|
return yield* Di(e.body, t, { label: r });
|
|
4390
|
-
if (e.body.type === "
|
|
4391
|
+
if (e.body.type === "IfStatement")
|
|
4391
4392
|
return yield* Fi(e.body, t, { label: r });
|
|
4392
|
-
if (e.body.type === "
|
|
4393
|
+
if (e.body.type === "SwitchStatement")
|
|
4393
4394
|
return yield* Mi(e.body, t, { label: r });
|
|
4395
|
+
if (e.body.type === "TryStatement")
|
|
4396
|
+
return yield* ji(e.body, t, { label: r });
|
|
4394
4397
|
throw new SyntaxError(`${e.body.type} cannot be labeled`);
|
|
4395
4398
|
}
|
|
4396
|
-
function*
|
|
4399
|
+
function* Di(e, t, r = {}) {
|
|
4397
4400
|
const i = new L(t);
|
|
4398
4401
|
i.with(yield* d(e.object, t));
|
|
4399
4402
|
const a = yield* d(e.body, i);
|
|
@@ -4402,14 +4405,14 @@ function* Oi(e, t, r = {}) {
|
|
|
4402
4405
|
if (a === C || a === w)
|
|
4403
4406
|
return a;
|
|
4404
4407
|
}
|
|
4405
|
-
function*
|
|
4408
|
+
function* Fi(e, t, r = {}) {
|
|
4406
4409
|
let i;
|
|
4407
4410
|
if ((yield* d(e.test, t)) ? i = yield* d(e.consequent, t) : i = yield* d(e.alternate, t), i === _)
|
|
4408
4411
|
return i.LABEL && i.LABEL === r.label ? void 0 : i;
|
|
4409
4412
|
if (i === C || i === w)
|
|
4410
4413
|
return i;
|
|
4411
4414
|
}
|
|
4412
|
-
function*
|
|
4415
|
+
function* Mi(e, t, r = {}) {
|
|
4413
4416
|
const i = yield* d(e.discriminant, t);
|
|
4414
4417
|
let a = !1, s = -1;
|
|
4415
4418
|
for (let n = 0; n < e.cases.length; n++) {
|
|
@@ -4444,10 +4447,10 @@ function* xt(e, t) {
|
|
|
4444
4447
|
return i;
|
|
4445
4448
|
}
|
|
4446
4449
|
}
|
|
4447
|
-
function*
|
|
4450
|
+
function* Ya(e, t) {
|
|
4448
4451
|
throw yield* d(e.argument, t);
|
|
4449
4452
|
}
|
|
4450
|
-
function*
|
|
4453
|
+
function* ji(e, t, r = {}) {
|
|
4451
4454
|
let i;
|
|
4452
4455
|
try {
|
|
4453
4456
|
i = yield* ne(e.block, t);
|
|
@@ -4460,7 +4463,7 @@ function* Mi(e, t, r = {}) {
|
|
|
4460
4463
|
s.var(u, a);
|
|
4461
4464
|
} else
|
|
4462
4465
|
yield* j(n, t, { feed: a });
|
|
4463
|
-
i = yield*
|
|
4466
|
+
i = yield* Ui(e.handler, s);
|
|
4464
4467
|
} else
|
|
4465
4468
|
throw a;
|
|
4466
4469
|
} finally {
|
|
@@ -4471,10 +4474,10 @@ function* Mi(e, t, r = {}) {
|
|
|
4471
4474
|
if (i === C || i === w)
|
|
4472
4475
|
return i;
|
|
4473
4476
|
}
|
|
4474
|
-
function*
|
|
4477
|
+
function* Ui(e, t) {
|
|
4475
4478
|
return yield* ne(e.body, t, { invasived: !0 });
|
|
4476
4479
|
}
|
|
4477
|
-
function*
|
|
4480
|
+
function* $i(e, t, r = {}) {
|
|
4478
4481
|
for (; yield* d(e.test, t); ) {
|
|
4479
4482
|
const i = yield* d(e.body, t);
|
|
4480
4483
|
if (i === _) {
|
|
@@ -4489,7 +4492,7 @@ function* Ui(e, t, r = {}) {
|
|
|
4489
4492
|
return i;
|
|
4490
4493
|
}
|
|
4491
4494
|
}
|
|
4492
|
-
function*
|
|
4495
|
+
function* qi(e, t, r = {}) {
|
|
4493
4496
|
do {
|
|
4494
4497
|
const i = yield* d(e.body, t);
|
|
4495
4498
|
if (i === _) {
|
|
@@ -4504,7 +4507,7 @@ function* $i(e, t, r = {}) {
|
|
|
4504
4507
|
return i;
|
|
4505
4508
|
} while (yield* d(e.test, t));
|
|
4506
4509
|
}
|
|
4507
|
-
function*
|
|
4510
|
+
function* Wi(e, t, r = {}) {
|
|
4508
4511
|
const i = new L(t);
|
|
4509
4512
|
for (e.init ? yield* d(e.init, i) : void 0; !e.test || (yield* d(e.test, i)); e.update ? yield* d(e.update, i) : void 0) {
|
|
4510
4513
|
const a = new L(i);
|
|
@@ -4521,7 +4524,7 @@ function* qi(e, t, r = {}) {
|
|
|
4521
4524
|
return s;
|
|
4522
4525
|
}
|
|
4523
4526
|
}
|
|
4524
|
-
function*
|
|
4527
|
+
function* zi(e, t, r = {}) {
|
|
4525
4528
|
for (const i in yield* d(e.right, t)) {
|
|
4526
4529
|
const a = yield* vt(e, t, { value: i });
|
|
4527
4530
|
if (a === _) {
|
|
@@ -4536,10 +4539,10 @@ function* Wi(e, t, r = {}) {
|
|
|
4536
4539
|
return a;
|
|
4537
4540
|
}
|
|
4538
4541
|
}
|
|
4539
|
-
function*
|
|
4542
|
+
function* Gi(e, t, r = {}) {
|
|
4540
4543
|
const i = yield* d(e.right, t);
|
|
4541
4544
|
if (e.await) {
|
|
4542
|
-
const a =
|
|
4545
|
+
const a = Ir(i);
|
|
4543
4546
|
let s;
|
|
4544
4547
|
for (me.RES = a.next(), s = yield me; !s.done; me.RES = a.next(), s = yield me) {
|
|
4545
4548
|
const n = yield* vt(e, t, { value: s.value });
|
|
@@ -4569,14 +4572,14 @@ function* zi(e, t, r = {}) {
|
|
|
4569
4572
|
return s;
|
|
4570
4573
|
}
|
|
4571
4574
|
}
|
|
4572
|
-
function*
|
|
4575
|
+
function* Za(e, t) {
|
|
4573
4576
|
t.func(e.id.name, Z(e, t));
|
|
4574
4577
|
}
|
|
4575
4578
|
function* ge(e, t, r = {}) {
|
|
4576
4579
|
for (let i = 0; i < e.declarations.length; i++)
|
|
4577
|
-
yield*
|
|
4580
|
+
yield* Hi(e.declarations[i], t, U({ kind: e.kind }, r));
|
|
4578
4581
|
}
|
|
4579
|
-
function*
|
|
4582
|
+
function* Hi(e, t, r = {}) {
|
|
4580
4583
|
const { kind: i = "var", hoist: a = !1, onlyBlock: s = !1, feed: n } = r;
|
|
4581
4584
|
if (a)
|
|
4582
4585
|
(s || i === "var") && (e.id.type === "Identifier" ? t[i](e.id.name, s ? F : i === "var" ? B : void 0) : yield* j(e.id, t, { kind: i, hoist: a, onlyBlock: s }));
|
|
@@ -4592,17 +4595,17 @@ function* Gi(e, t, r = {}) {
|
|
|
4592
4595
|
yield* j(e.id, t, { kind: i, feed: l });
|
|
4593
4596
|
}
|
|
4594
4597
|
}
|
|
4595
|
-
function*
|
|
4598
|
+
function* Ja(e, t) {
|
|
4596
4599
|
t.func(e.id.name, yield* De(e, t));
|
|
4597
4600
|
}
|
|
4598
|
-
function*
|
|
4601
|
+
function* Ki(e, t, r = {}) {
|
|
4599
4602
|
const { klass: i, superClass: a } = r;
|
|
4600
4603
|
for (let s = 0; s < e.body.length; s++) {
|
|
4601
4604
|
const n = e.body[s];
|
|
4602
|
-
n.type === "MethodDefinition" ? yield*
|
|
4605
|
+
n.type === "MethodDefinition" ? yield* Qi(n, t, { klass: i, superClass: a }) : n.type === "PropertyDefinition" && n.static ? yield* Tt(n, t, { klass: i, superClass: a }) : n.type === "StaticBlock" && (yield* Xi(n, t, { klass: i }));
|
|
4603
4606
|
}
|
|
4604
4607
|
}
|
|
4605
|
-
function*
|
|
4608
|
+
function* Qi(e, t, r = {}) {
|
|
4606
4609
|
const { klass: i, superClass: a } = r;
|
|
4607
4610
|
let s, n = !1;
|
|
4608
4611
|
if (e.computed)
|
|
@@ -4627,7 +4630,7 @@ function* Ki(e, t, r = {}) {
|
|
|
4627
4630
|
});
|
|
4628
4631
|
break;
|
|
4629
4632
|
case "get": {
|
|
4630
|
-
const c =
|
|
4633
|
+
const c = fe(u, s);
|
|
4631
4634
|
E(u, s, {
|
|
4632
4635
|
get: l,
|
|
4633
4636
|
set: c && c.set,
|
|
@@ -4636,7 +4639,7 @@ function* Ki(e, t, r = {}) {
|
|
|
4636
4639
|
break;
|
|
4637
4640
|
}
|
|
4638
4641
|
case "set": {
|
|
4639
|
-
const c =
|
|
4642
|
+
const c = fe(u, s);
|
|
4640
4643
|
E(u, s, {
|
|
4641
4644
|
get: c && c.get,
|
|
4642
4645
|
set: l,
|
|
@@ -4648,7 +4651,7 @@ function* Ki(e, t, r = {}) {
|
|
|
4648
4651
|
throw new SyntaxError("Unexpected token");
|
|
4649
4652
|
}
|
|
4650
4653
|
}
|
|
4651
|
-
function*
|
|
4654
|
+
function* Tt(e, t, r = {}) {
|
|
4652
4655
|
const { klass: i, superClass: a } = r;
|
|
4653
4656
|
let s, n = !1;
|
|
4654
4657
|
if (e.computed)
|
|
@@ -4664,11 +4667,11 @@ function* Lt(e, t, r = {}) {
|
|
|
4664
4667
|
let l = i;
|
|
4665
4668
|
n && (l[N] || E(l, N, { value: {} }), l = l[N]), e.value ? e.value.type === "FunctionExpression" || e.value.type === "ArrowFunctionExpression" ? l[s] = Z(e.value, u, { superClass: a }) : l[s] = yield* d(e.value, u) : l[s] = void 0;
|
|
4666
4669
|
}
|
|
4667
|
-
function*
|
|
4670
|
+
function* Xi(e, t, r = {}) {
|
|
4668
4671
|
const { klass: i } = r, a = new L(t, !0);
|
|
4669
4672
|
return a.const("this", i), yield* ne(e, a, { invasived: !0 });
|
|
4670
4673
|
}
|
|
4671
|
-
function*
|
|
4674
|
+
function* es(e, t) {
|
|
4672
4675
|
const i = t.global().find(ve + e.source.value);
|
|
4673
4676
|
let a;
|
|
4674
4677
|
if (i) {
|
|
@@ -4685,7 +4688,7 @@ function* Ja(e, t) {
|
|
|
4685
4688
|
t.var(n.local.name, u === "*" ? U({}, a) : a[u]);
|
|
4686
4689
|
}
|
|
4687
4690
|
}
|
|
4688
|
-
function*
|
|
4691
|
+
function* ts(e, t) {
|
|
4689
4692
|
const r = t.global();
|
|
4690
4693
|
let i;
|
|
4691
4694
|
e.declaration.type === "FunctionDeclaration" ? (i = Z(e.declaration, t), t.func(e.declaration.id.name, i)) : e.declaration.type === "ClassDeclaration" ? (i = yield* De(e.declaration, t), t.func(e.declaration.id.name, i)) : i = yield* d(e.declaration, t);
|
|
@@ -4695,7 +4698,7 @@ function* es(e, t) {
|
|
|
4695
4698
|
s && typeof s == "object" && (s.default = i);
|
|
4696
4699
|
}
|
|
4697
4700
|
}
|
|
4698
|
-
function*
|
|
4701
|
+
function* is(e, t) {
|
|
4699
4702
|
const r = t.global();
|
|
4700
4703
|
if (e.declaration) {
|
|
4701
4704
|
if (e.declaration.type === "FunctionDeclaration") {
|
|
@@ -4738,7 +4741,7 @@ function* ts(e, t) {
|
|
|
4738
4741
|
}
|
|
4739
4742
|
}
|
|
4740
4743
|
}
|
|
4741
|
-
function*
|
|
4744
|
+
function* rs(e, t) {
|
|
4742
4745
|
const r = t.global(), i = r.find(ve + e.source.value);
|
|
4743
4746
|
let a;
|
|
4744
4747
|
if (i) {
|
|
@@ -4773,24 +4776,24 @@ function ye(e, t, r = {}) {
|
|
|
4773
4776
|
return;
|
|
4774
4777
|
}
|
|
4775
4778
|
}
|
|
4776
|
-
const
|
|
4779
|
+
const as = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4777
4780
|
__proto__: null,
|
|
4778
4781
|
Identifier: ye
|
|
4779
4782
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4780
|
-
function
|
|
4783
|
+
function Yi(e, t) {
|
|
4781
4784
|
return e.regex ? new RegExp(e.regex.pattern, e.regex.flags) : e.value;
|
|
4782
4785
|
}
|
|
4783
|
-
const
|
|
4786
|
+
const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4784
4787
|
__proto__: null,
|
|
4785
|
-
Literal:
|
|
4788
|
+
Literal: Yi
|
|
4786
4789
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4787
|
-
function
|
|
4788
|
-
const r = t.find(
|
|
4790
|
+
function ns(e, t) {
|
|
4791
|
+
const r = t.find(he);
|
|
4789
4792
|
if (r && r.get() !== !0)
|
|
4790
4793
|
throw new ReferenceError("Must call super constructor in derived class before accessing 'this' or returning from derived constructor");
|
|
4791
4794
|
return t.find("this").get();
|
|
4792
4795
|
}
|
|
4793
|
-
function
|
|
4796
|
+
function os(e, t) {
|
|
4794
4797
|
let r = [];
|
|
4795
4798
|
for (let i = 0; i < e.elements.length; i++) {
|
|
4796
4799
|
const a = e.elements[i];
|
|
@@ -4798,7 +4801,7 @@ function ns(e, t) {
|
|
|
4798
4801
|
}
|
|
4799
4802
|
return r;
|
|
4800
4803
|
}
|
|
4801
|
-
function
|
|
4804
|
+
function us(e, t) {
|
|
4802
4805
|
const r = {};
|
|
4803
4806
|
for (let i = 0; i < e.properties.length; i++) {
|
|
4804
4807
|
const a = e.properties[i];
|
|
@@ -4807,12 +4810,12 @@ function os(e, t) {
|
|
|
4807
4810
|
else {
|
|
4808
4811
|
let s;
|
|
4809
4812
|
const n = a.key;
|
|
4810
|
-
a.computed ? s = y(n, t) : n.type === "Identifier" ? s = n.name : s = "" +
|
|
4813
|
+
a.computed ? s = y(n, t) : n.type === "Identifier" ? s = n.name : s = "" + Yi(n);
|
|
4811
4814
|
const u = y(a.value, t), l = a.kind;
|
|
4812
4815
|
if (l === "init")
|
|
4813
4816
|
r[s] = u;
|
|
4814
4817
|
else if (l === "get") {
|
|
4815
|
-
const c =
|
|
4818
|
+
const c = fe(r, s);
|
|
4816
4819
|
E(r, s, {
|
|
4817
4820
|
get: u,
|
|
4818
4821
|
set: c && c.set,
|
|
@@ -4820,7 +4823,7 @@ function os(e, t) {
|
|
|
4820
4823
|
configurable: !0
|
|
4821
4824
|
});
|
|
4822
4825
|
} else {
|
|
4823
|
-
const c =
|
|
4826
|
+
const c = fe(r, s);
|
|
4824
4827
|
E(r, s, {
|
|
4825
4828
|
get: c && c.get,
|
|
4826
4829
|
set: u,
|
|
@@ -4832,14 +4835,14 @@ function os(e, t) {
|
|
|
4832
4835
|
}
|
|
4833
4836
|
return r;
|
|
4834
4837
|
}
|
|
4835
|
-
function
|
|
4838
|
+
function ls(e, t) {
|
|
4836
4839
|
if (e.id && e.id.name) {
|
|
4837
4840
|
const r = new L(t), i = Y(e, r);
|
|
4838
4841
|
return r.const(e.id.name, i), i;
|
|
4839
4842
|
} else
|
|
4840
4843
|
return Y(e, t);
|
|
4841
4844
|
}
|
|
4842
|
-
function
|
|
4845
|
+
function cs(e, t) {
|
|
4843
4846
|
const r = e.argument;
|
|
4844
4847
|
switch (e.operator) {
|
|
4845
4848
|
case "+":
|
|
@@ -4865,7 +4868,7 @@ function ls(e, t) {
|
|
|
4865
4868
|
throw new SyntaxError(`Unexpected token ${e.operator}`);
|
|
4866
4869
|
}
|
|
4867
4870
|
}
|
|
4868
|
-
function
|
|
4871
|
+
function fs(e, t) {
|
|
4869
4872
|
const r = e.argument;
|
|
4870
4873
|
let i;
|
|
4871
4874
|
if (r.type === "Identifier")
|
|
@@ -4933,13 +4936,16 @@ function hs(e, t) {
|
|
|
4933
4936
|
throw new SyntaxError(`Unexpected token ${e.operator}`);
|
|
4934
4937
|
}
|
|
4935
4938
|
}
|
|
4936
|
-
function
|
|
4939
|
+
function ps(e, t) {
|
|
4937
4940
|
const r = e.left;
|
|
4938
4941
|
let i;
|
|
4939
4942
|
if (r.type === "Identifier") {
|
|
4940
4943
|
if (i = ye(r, t, { getVar: !0, throwErr: !1 }), !i) {
|
|
4941
|
-
const s = t.
|
|
4942
|
-
|
|
4944
|
+
const s = t.find(Lt);
|
|
4945
|
+
if (s && s.get())
|
|
4946
|
+
throw new ReferenceError(`${r.name} is not defined`);
|
|
4947
|
+
const n = t.global().find("window").get();
|
|
4948
|
+
i = new pe(n, r.name);
|
|
4943
4949
|
}
|
|
4944
4950
|
} else if (r.type === "MemberExpression")
|
|
4945
4951
|
i = $e(r, t, { getVar: !0 });
|
|
@@ -4986,7 +4992,7 @@ function fs(e, t) {
|
|
|
4986
4992
|
throw new SyntaxError(`Unexpected token ${e.operator}`);
|
|
4987
4993
|
}
|
|
4988
4994
|
}
|
|
4989
|
-
function
|
|
4995
|
+
function ds(e, t) {
|
|
4990
4996
|
switch (e.operator) {
|
|
4991
4997
|
case "||":
|
|
4992
4998
|
return y(e.left, t) || y(e.right, t);
|
|
@@ -5001,18 +5007,18 @@ function ps(e, t) {
|
|
|
5001
5007
|
function $e(e, t, r = {}) {
|
|
5002
5008
|
const { getObj: i = !1, getVar: a = !1 } = r;
|
|
5003
5009
|
let s;
|
|
5004
|
-
if (e.object.type === "Super" ? s =
|
|
5010
|
+
if (e.object.type === "Super" ? s = Ji(e.object, t, { getProto: !0 }) : s = y(e.object, t), s === A) return A;
|
|
5005
5011
|
if (i) return s;
|
|
5006
5012
|
let n, u = !1;
|
|
5007
5013
|
if (e.computed ? n = y(e.property, t) : e.property.type === "PrivateIdentifier" ? (n = e.property.name, u = !0) : n = e.property.name, u && (s = s[N]), a) {
|
|
5008
|
-
const l =
|
|
5014
|
+
const l = Ht(s, n);
|
|
5009
5015
|
if (e.object.type === "Super" && l) {
|
|
5010
|
-
const c = t.find("this").get(),
|
|
5011
|
-
return E(c,
|
|
5016
|
+
const c = t.find("this").get(), f = R(n);
|
|
5017
|
+
return E(c, f, { set: l }), new pe(c, f);
|
|
5012
5018
|
} else
|
|
5013
5019
|
return new pe(s, n);
|
|
5014
5020
|
} else {
|
|
5015
|
-
const l =
|
|
5021
|
+
const l = Gt(s, n);
|
|
5016
5022
|
if (e.object.type === "Super" && l) {
|
|
5017
5023
|
const c = t.find("this").get();
|
|
5018
5024
|
return e.optional && c == null ? A : l.call(c);
|
|
@@ -5020,10 +5026,10 @@ function $e(e, t, r = {}) {
|
|
|
5020
5026
|
return e.optional && s == null ? A : s[n];
|
|
5021
5027
|
}
|
|
5022
5028
|
}
|
|
5023
|
-
function
|
|
5029
|
+
function ys(e, t) {
|
|
5024
5030
|
return y(e.test, t) ? y(e.consequent, t) : y(e.alternate, t);
|
|
5025
5031
|
}
|
|
5026
|
-
function
|
|
5032
|
+
function ms(e, t) {
|
|
5027
5033
|
let r, i;
|
|
5028
5034
|
if (e.callee.type === "MemberExpression") {
|
|
5029
5035
|
if (i = $e(e.callee, t, { getObj: !0 }), i === A || e.callee.optional && i == null)
|
|
@@ -5064,11 +5070,11 @@ function ys(e, t) {
|
|
|
5064
5070
|
n.type === "SpreadElement" ? a = a.concat(qe(n, t)) : a.push(y(n, t));
|
|
5065
5071
|
}
|
|
5066
5072
|
if (e.callee.type === "Super") {
|
|
5067
|
-
const n = t.find(
|
|
5073
|
+
const n = t.find(he).get();
|
|
5068
5074
|
if (n === !0)
|
|
5069
5075
|
throw new ReferenceError("Super constructor may only be called once");
|
|
5070
5076
|
const u = Ze(i, r, a);
|
|
5071
|
-
return n(u), t.find("this").set(u), t.find(
|
|
5077
|
+
return n(u), t.find("this").set(u), t.find(he).set(!0), u;
|
|
5072
5078
|
}
|
|
5073
5079
|
try {
|
|
5074
5080
|
return r.apply(i, a);
|
|
@@ -5081,7 +5087,7 @@ function ys(e, t) {
|
|
|
5081
5087
|
throw s;
|
|
5082
5088
|
}
|
|
5083
5089
|
}
|
|
5084
|
-
function
|
|
5090
|
+
function gs(e, t) {
|
|
5085
5091
|
const r = y(e.callee, t);
|
|
5086
5092
|
if (typeof r != "function") {
|
|
5087
5093
|
let a;
|
|
@@ -5103,29 +5109,29 @@ function ms(e, t) {
|
|
|
5103
5109
|
}
|
|
5104
5110
|
return new r(...i);
|
|
5105
5111
|
}
|
|
5106
|
-
function
|
|
5112
|
+
function xs(e, t) {
|
|
5107
5113
|
if (e.meta.name === "new" && e.property.name === "target")
|
|
5108
5114
|
return t.find(ot).get();
|
|
5109
5115
|
if (e.meta.name === "import" && e.property.name === "meta")
|
|
5110
5116
|
return { url: "" };
|
|
5111
5117
|
}
|
|
5112
|
-
function
|
|
5118
|
+
function bs(e, t) {
|
|
5113
5119
|
let r;
|
|
5114
5120
|
for (let i = 0; i < e.expressions.length; i++)
|
|
5115
5121
|
r = y(e.expressions[i], t);
|
|
5116
5122
|
return r;
|
|
5117
5123
|
}
|
|
5118
|
-
function
|
|
5124
|
+
function vs(e, t) {
|
|
5119
5125
|
return Y(e, t);
|
|
5120
5126
|
}
|
|
5121
|
-
function
|
|
5127
|
+
function Ss(e, t) {
|
|
5122
5128
|
const r = e.quasis.slice(), i = e.expressions.slice();
|
|
5123
5129
|
let a = "", s, n;
|
|
5124
5130
|
for (; s = r.shift(); )
|
|
5125
|
-
a +=
|
|
5131
|
+
a += Zi(s), n = i.shift(), n && (a += y(n, t));
|
|
5126
5132
|
return a;
|
|
5127
5133
|
}
|
|
5128
|
-
function
|
|
5134
|
+
function ws(e, t) {
|
|
5129
5135
|
const r = y(e.tag, t), i = e.quasi.quasis, a = i.map((l) => l.value.cooked), s = i.map((l) => l.value.raw);
|
|
5130
5136
|
E(a, "raw", {
|
|
5131
5137
|
value: Ge(s)
|
|
@@ -5136,17 +5142,17 @@ function Ss(e, t) {
|
|
|
5136
5142
|
u.push(y(n[l], t));
|
|
5137
5143
|
return r(Ge(a), ...u);
|
|
5138
5144
|
}
|
|
5139
|
-
function
|
|
5145
|
+
function Zi(e, t) {
|
|
5140
5146
|
return e.value.raw;
|
|
5141
5147
|
}
|
|
5142
|
-
function
|
|
5148
|
+
function ks(e, t) {
|
|
5143
5149
|
if (e.id && e.id.name) {
|
|
5144
5150
|
const r = new L(t), i = Oe(e, r);
|
|
5145
5151
|
return r.const(e.id.name, i), i;
|
|
5146
5152
|
} else
|
|
5147
5153
|
return Oe(e, t);
|
|
5148
5154
|
}
|
|
5149
|
-
function
|
|
5155
|
+
function Ji(e, t, r = {}) {
|
|
5150
5156
|
const { getProto: i = !1 } = r, a = t.find(st).get();
|
|
5151
5157
|
return i ? a.prototype : a;
|
|
5152
5158
|
}
|
|
@@ -5158,11 +5164,11 @@ function qe(e, t, r = {}) {
|
|
|
5158
5164
|
throw new TypeError("Spread syntax requires ...iterable[Symbol.iterator] to be a function");
|
|
5159
5165
|
return [...i];
|
|
5160
5166
|
}
|
|
5161
|
-
function
|
|
5167
|
+
function Es(e, t) {
|
|
5162
5168
|
const r = y(e.expression, t);
|
|
5163
5169
|
return r === A ? void 0 : r;
|
|
5164
5170
|
}
|
|
5165
|
-
function
|
|
5171
|
+
function Cs(e, t) {
|
|
5166
5172
|
const r = t.global(), i = y(e.source, t), a = r.find(ve + i);
|
|
5167
5173
|
let s;
|
|
5168
5174
|
if (a) {
|
|
@@ -5171,57 +5177,57 @@ function Es(e, t) {
|
|
|
5171
5177
|
}
|
|
5172
5178
|
return !s || typeof s != "object" ? Promise.reject(new TypeError(`Failed to resolve module specifier "${i}"`)) : Promise.resolve(s);
|
|
5173
5179
|
}
|
|
5174
|
-
const
|
|
5180
|
+
const _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5175
5181
|
__proto__: null,
|
|
5176
|
-
ArrayExpression:
|
|
5177
|
-
ArrowFunctionExpression:
|
|
5178
|
-
AssignmentExpression:
|
|
5182
|
+
ArrayExpression: os,
|
|
5183
|
+
ArrowFunctionExpression: vs,
|
|
5184
|
+
AssignmentExpression: ps,
|
|
5179
5185
|
BinaryExpression: hs,
|
|
5180
|
-
CallExpression:
|
|
5181
|
-
ChainExpression:
|
|
5182
|
-
ClassExpression:
|
|
5183
|
-
ConditionalExpression:
|
|
5184
|
-
FunctionExpression:
|
|
5185
|
-
ImportExpression:
|
|
5186
|
-
LogicalExpression:
|
|
5186
|
+
CallExpression: ms,
|
|
5187
|
+
ChainExpression: Es,
|
|
5188
|
+
ClassExpression: ks,
|
|
5189
|
+
ConditionalExpression: ys,
|
|
5190
|
+
FunctionExpression: ls,
|
|
5191
|
+
ImportExpression: Cs,
|
|
5192
|
+
LogicalExpression: ds,
|
|
5187
5193
|
MemberExpression: $e,
|
|
5188
|
-
MetaProperty:
|
|
5189
|
-
NewExpression:
|
|
5190
|
-
ObjectExpression:
|
|
5191
|
-
SequenceExpression:
|
|
5194
|
+
MetaProperty: xs,
|
|
5195
|
+
NewExpression: gs,
|
|
5196
|
+
ObjectExpression: us,
|
|
5197
|
+
SequenceExpression: bs,
|
|
5192
5198
|
SpreadElement: qe,
|
|
5193
|
-
Super:
|
|
5194
|
-
TaggedTemplateExpression:
|
|
5195
|
-
TemplateElement:
|
|
5196
|
-
TemplateLiteral:
|
|
5197
|
-
ThisExpression:
|
|
5198
|
-
UnaryExpression:
|
|
5199
|
-
UpdateExpression:
|
|
5199
|
+
Super: Ji,
|
|
5200
|
+
TaggedTemplateExpression: ws,
|
|
5201
|
+
TemplateElement: Zi,
|
|
5202
|
+
TemplateLiteral: Ss,
|
|
5203
|
+
ThisExpression: ns,
|
|
5204
|
+
UnaryExpression: cs,
|
|
5205
|
+
UpdateExpression: fs
|
|
5200
5206
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5201
|
-
function
|
|
5207
|
+
function er(e, t, r = {}) {
|
|
5202
5208
|
const { kind: i = "var", hoist: a = !1, onlyBlock: s = !1, feed: n = {} } = r, u = [];
|
|
5203
5209
|
for (let l = 0; l < e.properties.length; l++) {
|
|
5204
5210
|
const c = e.properties[l];
|
|
5205
5211
|
if (a) {
|
|
5206
5212
|
if (s || i === "var")
|
|
5207
5213
|
if (c.type === "Property") {
|
|
5208
|
-
const
|
|
5209
|
-
|
|
5214
|
+
const f = c.value;
|
|
5215
|
+
f.type === "Identifier" ? t[i](f.name, s ? F : i === "var" ? B : void 0) : M(f, t, { kind: i, hoist: a, onlyBlock: s });
|
|
5210
5216
|
} else
|
|
5211
5217
|
_e(c, t, { kind: i, hoist: a, onlyBlock: s });
|
|
5212
5218
|
} else if (c.type === "Property") {
|
|
5213
|
-
let
|
|
5214
|
-
c.computed ?
|
|
5215
|
-
const
|
|
5216
|
-
|
|
5219
|
+
let f;
|
|
5220
|
+
c.computed ? f = y(c.key, t) : f = c.key.name, u.push(f);
|
|
5221
|
+
const h = c.value;
|
|
5222
|
+
h.type === "Identifier" ? t[i](h.name, n[f]) : M(h, t, { kind: i, feed: n[f] });
|
|
5217
5223
|
} else {
|
|
5218
|
-
const
|
|
5219
|
-
for (let
|
|
5220
|
-
_e(c, t, { kind: i, feed:
|
|
5224
|
+
const f = U({}, n);
|
|
5225
|
+
for (let h = 0; h < u.length; h++) delete f[u[h]];
|
|
5226
|
+
_e(c, t, { kind: i, feed: f });
|
|
5221
5227
|
}
|
|
5222
5228
|
}
|
|
5223
5229
|
}
|
|
5224
|
-
function
|
|
5230
|
+
function tr(e, t, r = {}) {
|
|
5225
5231
|
const { kind: i, hoist: a = !1, onlyBlock: s = !1, feed: n = [] } = r, u = [];
|
|
5226
5232
|
for (let l = 0; l < e.elements.length; l++) {
|
|
5227
5233
|
const c = e.elements[l];
|
|
@@ -5232,8 +5238,8 @@ function er(e, t, r = {}) {
|
|
|
5232
5238
|
if (i)
|
|
5233
5239
|
t[i](c.name, n[l]);
|
|
5234
5240
|
else {
|
|
5235
|
-
const
|
|
5236
|
-
|
|
5241
|
+
const f = ye(c, t, { getVar: !0 });
|
|
5242
|
+
f.set(n[l]), u.push(f.get());
|
|
5237
5243
|
}
|
|
5238
5244
|
else c.type === "RestElement" ? _e(c, t, { kind: i, feed: n.slice(l) }) : M(c, t, { kind: i, feed: n[l] });
|
|
5239
5245
|
}
|
|
@@ -5244,44 +5250,44 @@ function _e(e, t, r = {}) {
|
|
|
5244
5250
|
const { kind: i, hoist: a = !1, onlyBlock: s = !1, feed: n = [] } = r, u = e.argument;
|
|
5245
5251
|
a ? (s || i === "var") && (u.type === "Identifier" ? t[i](u.name, s ? F : i === "var" ? B : void 0) : M(u, t, { kind: i, hoist: a, onlyBlock: s })) : u.type === "Identifier" ? i ? t[i](u.name, n) : ye(u, t, { getVar: !0 }).set(n) : M(u, t, { kind: i, feed: n });
|
|
5246
5252
|
}
|
|
5247
|
-
function
|
|
5253
|
+
function ir(e, t, r = {}) {
|
|
5248
5254
|
const { kind: i = "var", hoist: a = !1, onlyBlock: s = !1, feed: n = y(e.right, t) } = r, u = e.left;
|
|
5249
5255
|
a ? (s || i === "var") && (u.type === "Identifier" ? t[i](u.name, s ? F : i === "var" ? B : void 0) : M(u, t, { kind: i, hoist: a, onlyBlock: s })) : u.type === "Identifier" ? t[i](u.name, n) : M(u, t, { kind: i, feed: n });
|
|
5250
5256
|
}
|
|
5251
|
-
const
|
|
5257
|
+
const Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5252
5258
|
__proto__: null,
|
|
5253
|
-
ArrayPattern:
|
|
5254
|
-
AssignmentPattern:
|
|
5255
|
-
ObjectPattern:
|
|
5259
|
+
ArrayPattern: tr,
|
|
5260
|
+
AssignmentPattern: ir,
|
|
5261
|
+
ObjectPattern: er,
|
|
5256
5262
|
RestElement: _e
|
|
5257
5263
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5258
|
-
function
|
|
5264
|
+
function As(e, t) {
|
|
5259
5265
|
for (let r = 0; r < e.body.length; r++)
|
|
5260
5266
|
y(e.body[r], t);
|
|
5261
5267
|
}
|
|
5262
|
-
const
|
|
5268
|
+
const Ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5263
5269
|
__proto__: null,
|
|
5264
|
-
Program:
|
|
5270
|
+
Program: As
|
|
5265
5271
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5266
|
-
let
|
|
5272
|
+
let ht;
|
|
5267
5273
|
function y(e, t) {
|
|
5268
5274
|
if (!e) return;
|
|
5269
|
-
|
|
5275
|
+
ht || (ht = U(
|
|
5270
5276
|
{},
|
|
5271
|
-
|
|
5272
|
-
Cs,
|
|
5273
|
-
rs,
|
|
5274
|
-
br,
|
|
5275
|
-
as,
|
|
5277
|
+
Sr,
|
|
5276
5278
|
_s,
|
|
5277
|
-
|
|
5279
|
+
as,
|
|
5280
|
+
vr,
|
|
5281
|
+
ss,
|
|
5282
|
+
Is,
|
|
5283
|
+
Ps
|
|
5278
5284
|
));
|
|
5279
|
-
const r =
|
|
5285
|
+
const r = ht[e.type];
|
|
5280
5286
|
if (r)
|
|
5281
5287
|
return r(e, t);
|
|
5282
5288
|
throw new Error(`${e.type} isn't implemented`);
|
|
5283
5289
|
}
|
|
5284
|
-
function
|
|
5290
|
+
function Ls(e, t) {
|
|
5285
5291
|
y(e.expression, t);
|
|
5286
5292
|
}
|
|
5287
5293
|
function oe(e, t, r = {}) {
|
|
@@ -5289,7 +5295,7 @@ function oe(e, t, r = {}) {
|
|
|
5289
5295
|
invasived: i = !1,
|
|
5290
5296
|
hoisted: a = !1
|
|
5291
5297
|
} = r, s = i ? t : new L(t);
|
|
5292
|
-
a ||
|
|
5298
|
+
a || Nt(e, s, { onlyBlock: !0 });
|
|
5293
5299
|
for (let n = 0; n < e.body.length; n++) {
|
|
5294
5300
|
const u = y(e.body[n], s);
|
|
5295
5301
|
if (u === _) {
|
|
@@ -5301,47 +5307,47 @@ function oe(e, t, r = {}) {
|
|
|
5301
5307
|
return u;
|
|
5302
5308
|
}
|
|
5303
5309
|
}
|
|
5304
|
-
function
|
|
5310
|
+
function Ts() {
|
|
5305
5311
|
}
|
|
5306
5312
|
function Vs() {
|
|
5307
5313
|
debugger;
|
|
5308
5314
|
}
|
|
5309
|
-
function
|
|
5315
|
+
function Ns(e, t) {
|
|
5310
5316
|
return w.RES = e.argument ? y(e.argument, t) : void 0, w;
|
|
5311
5317
|
}
|
|
5312
|
-
function
|
|
5318
|
+
function Rs(e) {
|
|
5313
5319
|
var t;
|
|
5314
5320
|
return _.LABEL = (t = e.label) == null ? void 0 : t.name, _;
|
|
5315
5321
|
}
|
|
5316
|
-
function
|
|
5322
|
+
function Bs(e) {
|
|
5317
5323
|
var t;
|
|
5318
5324
|
return C.LABEL = (t = e.label) == null ? void 0 : t.name, C;
|
|
5319
5325
|
}
|
|
5320
|
-
function
|
|
5326
|
+
function Os(e, t) {
|
|
5321
5327
|
const r = e.label.name;
|
|
5322
5328
|
if (e.body.type === "WhileStatement")
|
|
5323
|
-
return or(e.body, t, { label: r });
|
|
5324
|
-
if (e.body.type === "DoWhileStatement")
|
|
5325
5329
|
return ur(e.body, t, { label: r });
|
|
5326
|
-
if (e.body.type === "
|
|
5330
|
+
if (e.body.type === "DoWhileStatement")
|
|
5327
5331
|
return lr(e.body, t, { label: r });
|
|
5328
|
-
if (e.body.type === "
|
|
5332
|
+
if (e.body.type === "ForStatement")
|
|
5329
5333
|
return cr(e.body, t, { label: r });
|
|
5334
|
+
if (e.body.type === "ForInStatement")
|
|
5335
|
+
return fr(e.body, t, { label: r });
|
|
5330
5336
|
if (e.body.type === "ForOfStatement")
|
|
5331
5337
|
return hr(e.body, t, { label: r });
|
|
5332
5338
|
if (e.body.type === "BlockStatement")
|
|
5333
5339
|
return oe(e.body, t, { label: r });
|
|
5334
5340
|
if (e.body.type === "WithStatement")
|
|
5335
|
-
return ir(e.body, t, { label: r });
|
|
5336
|
-
if (e.body.type === "IfStatement")
|
|
5337
5341
|
return rr(e.body, t, { label: r });
|
|
5338
|
-
if (e.body.type === "
|
|
5342
|
+
if (e.body.type === "IfStatement")
|
|
5339
5343
|
return ar(e.body, t, { label: r });
|
|
5340
|
-
if (e.body.type === "
|
|
5344
|
+
if (e.body.type === "SwitchStatement")
|
|
5341
5345
|
return sr(e.body, t, { label: r });
|
|
5346
|
+
if (e.body.type === "TryStatement")
|
|
5347
|
+
return nr(e.body, t, { label: r });
|
|
5342
5348
|
throw new SyntaxError(`${e.body.type} cannot be labeled`);
|
|
5343
5349
|
}
|
|
5344
|
-
function
|
|
5350
|
+
function rr(e, t, r = {}) {
|
|
5345
5351
|
const i = new L(t);
|
|
5346
5352
|
i.with(y(e.object, t));
|
|
5347
5353
|
const a = y(e.body, i);
|
|
@@ -5350,14 +5356,14 @@ function ir(e, t, r = {}) {
|
|
|
5350
5356
|
if (a === C || a === w)
|
|
5351
5357
|
return a;
|
|
5352
5358
|
}
|
|
5353
|
-
function
|
|
5359
|
+
function ar(e, t, r = {}) {
|
|
5354
5360
|
let i;
|
|
5355
5361
|
if (y(e.test, t) ? i = y(e.consequent, t) : i = y(e.alternate, t), i === _)
|
|
5356
5362
|
return i.LABEL && i.LABEL === r.label ? void 0 : i;
|
|
5357
5363
|
if (i === C || i === w)
|
|
5358
5364
|
return i;
|
|
5359
5365
|
}
|
|
5360
|
-
function
|
|
5366
|
+
function sr(e, t, r = {}) {
|
|
5361
5367
|
const i = y(e.discriminant, t);
|
|
5362
5368
|
let a = !1, s = -1;
|
|
5363
5369
|
for (let n = 0; n < e.cases.length; n++) {
|
|
@@ -5392,10 +5398,10 @@ function bt(e, t) {
|
|
|
5392
5398
|
return i;
|
|
5393
5399
|
}
|
|
5394
5400
|
}
|
|
5395
|
-
function
|
|
5401
|
+
function Ds(e, t) {
|
|
5396
5402
|
throw y(e.argument, t);
|
|
5397
5403
|
}
|
|
5398
|
-
function
|
|
5404
|
+
function nr(e, t, r = {}) {
|
|
5399
5405
|
let i;
|
|
5400
5406
|
try {
|
|
5401
5407
|
i = oe(e.block, t);
|
|
@@ -5408,7 +5414,7 @@ function sr(e, t, r = {}) {
|
|
|
5408
5414
|
s.var(u, a);
|
|
5409
5415
|
} else
|
|
5410
5416
|
M(n, t, { feed: a });
|
|
5411
|
-
i =
|
|
5417
|
+
i = or(e.handler, s);
|
|
5412
5418
|
} else
|
|
5413
5419
|
throw a;
|
|
5414
5420
|
} finally {
|
|
@@ -5419,10 +5425,10 @@ function sr(e, t, r = {}) {
|
|
|
5419
5425
|
if (i === C || i === w)
|
|
5420
5426
|
return i;
|
|
5421
5427
|
}
|
|
5422
|
-
function
|
|
5428
|
+
function or(e, t) {
|
|
5423
5429
|
return oe(e.body, t, { invasived: !0 });
|
|
5424
5430
|
}
|
|
5425
|
-
function
|
|
5431
|
+
function ur(e, t, r = {}) {
|
|
5426
5432
|
for (; y(e.test, t); ) {
|
|
5427
5433
|
const i = y(e.body, t);
|
|
5428
5434
|
if (i === _) {
|
|
@@ -5437,7 +5443,7 @@ function or(e, t, r = {}) {
|
|
|
5437
5443
|
return i;
|
|
5438
5444
|
}
|
|
5439
5445
|
}
|
|
5440
|
-
function
|
|
5446
|
+
function lr(e, t, r = {}) {
|
|
5441
5447
|
do {
|
|
5442
5448
|
const i = y(e.body, t);
|
|
5443
5449
|
if (i === _) {
|
|
@@ -5452,7 +5458,7 @@ function ur(e, t, r = {}) {
|
|
|
5452
5458
|
return i;
|
|
5453
5459
|
} while (y(e.test, t));
|
|
5454
5460
|
}
|
|
5455
|
-
function
|
|
5461
|
+
function cr(e, t, r = {}) {
|
|
5456
5462
|
const i = new L(t);
|
|
5457
5463
|
for (e.init ? y(e.init, i) : void 0; !e.test || y(e.test, i); e.update ? y(e.update, i) : void 0) {
|
|
5458
5464
|
const a = new L(i);
|
|
@@ -5469,9 +5475,9 @@ function lr(e, t, r = {}) {
|
|
|
5469
5475
|
return s;
|
|
5470
5476
|
}
|
|
5471
5477
|
}
|
|
5472
|
-
function
|
|
5478
|
+
function fr(e, t, r = {}) {
|
|
5473
5479
|
for (const i in y(e.right, t)) {
|
|
5474
|
-
const a =
|
|
5480
|
+
const a = gr(e, t, { value: i });
|
|
5475
5481
|
if (a === _) {
|
|
5476
5482
|
if (a.LABEL === r.label)
|
|
5477
5483
|
break;
|
|
@@ -5487,7 +5493,7 @@ function cr(e, t, r = {}) {
|
|
|
5487
5493
|
function hr(e, t, r = {}) {
|
|
5488
5494
|
const i = y(e.right, t);
|
|
5489
5495
|
for (const a of i) {
|
|
5490
|
-
const s =
|
|
5496
|
+
const s = gr(e, t, { value: a });
|
|
5491
5497
|
if (s === _) {
|
|
5492
5498
|
if (s.LABEL === r.label)
|
|
5493
5499
|
break;
|
|
@@ -5500,14 +5506,14 @@ function hr(e, t, r = {}) {
|
|
|
5500
5506
|
return s;
|
|
5501
5507
|
}
|
|
5502
5508
|
}
|
|
5503
|
-
function
|
|
5509
|
+
function Fs(e, t) {
|
|
5504
5510
|
t.func(e.id.name, Y(e, t));
|
|
5505
5511
|
}
|
|
5506
5512
|
function xe(e, t, r = {}) {
|
|
5507
5513
|
for (let i = 0; i < e.declarations.length; i++)
|
|
5508
|
-
|
|
5514
|
+
pr(e.declarations[i], t, U({ kind: e.kind }, r));
|
|
5509
5515
|
}
|
|
5510
|
-
function
|
|
5516
|
+
function pr(e, t, r = {}) {
|
|
5511
5517
|
const { kind: i = "var", hoist: a = !1, onlyBlock: s = !1, feed: n } = r;
|
|
5512
5518
|
if (a)
|
|
5513
5519
|
(s || i === "var") && (e.id.type === "Identifier" ? t[i](e.id.name, s ? F : i === "var" ? B : void 0) : M(e.id, t, { kind: i, hoist: a, onlyBlock: s }));
|
|
@@ -5523,17 +5529,17 @@ function fr(e, t, r = {}) {
|
|
|
5523
5529
|
M(e.id, t, { kind: i, feed: l });
|
|
5524
5530
|
}
|
|
5525
5531
|
}
|
|
5526
|
-
function
|
|
5532
|
+
function Ms(e, t) {
|
|
5527
5533
|
t.func(e.id.name, Oe(e, t));
|
|
5528
5534
|
}
|
|
5529
|
-
function
|
|
5535
|
+
function dr(e, t, r = {}) {
|
|
5530
5536
|
const { klass: i, superClass: a } = r;
|
|
5531
5537
|
for (let s = 0; s < e.body.length; s++) {
|
|
5532
5538
|
const n = e.body[s];
|
|
5533
|
-
n.type === "MethodDefinition" ?
|
|
5539
|
+
n.type === "MethodDefinition" ? yr(n, t, { klass: i, superClass: a }) : n.type === "PropertyDefinition" && n.static ? Vt(n, t, { klass: i, superClass: a }) : n.type === "StaticBlock" && mr(n, t, { klass: i });
|
|
5534
5540
|
}
|
|
5535
5541
|
}
|
|
5536
|
-
function
|
|
5542
|
+
function yr(e, t, r = {}) {
|
|
5537
5543
|
const { klass: i, superClass: a } = r;
|
|
5538
5544
|
let s, n = !1;
|
|
5539
5545
|
if (e.computed)
|
|
@@ -5558,7 +5564,7 @@ function dr(e, t, r = {}) {
|
|
|
5558
5564
|
});
|
|
5559
5565
|
break;
|
|
5560
5566
|
case "get": {
|
|
5561
|
-
const c =
|
|
5567
|
+
const c = fe(u, s);
|
|
5562
5568
|
E(u, s, {
|
|
5563
5569
|
get: l,
|
|
5564
5570
|
set: c && c.set,
|
|
@@ -5567,7 +5573,7 @@ function dr(e, t, r = {}) {
|
|
|
5567
5573
|
break;
|
|
5568
5574
|
}
|
|
5569
5575
|
case "set": {
|
|
5570
|
-
const c =
|
|
5576
|
+
const c = fe(u, s);
|
|
5571
5577
|
E(u, s, {
|
|
5572
5578
|
get: c && c.get,
|
|
5573
5579
|
set: l,
|
|
@@ -5595,11 +5601,11 @@ function Vt(e, t, r = {}) {
|
|
|
5595
5601
|
let l = i;
|
|
5596
5602
|
n && (l[N] || E(l, N, { value: {} }), l = l[N]), e.value ? e.value.type === "FunctionExpression" || e.value.type === "ArrowFunctionExpression" ? l[s] = Y(e.value, u, { superClass: a }) : l[s] = y(e.value, u) : l[s] = void 0;
|
|
5597
5603
|
}
|
|
5598
|
-
function
|
|
5604
|
+
function mr(e, t, r = {}) {
|
|
5599
5605
|
const { klass: i } = r, a = new L(t, !0);
|
|
5600
5606
|
return a.const("this", i), oe(e, a, { invasived: !0 });
|
|
5601
5607
|
}
|
|
5602
|
-
function
|
|
5608
|
+
function js(e, t) {
|
|
5603
5609
|
const i = t.global().find(ve + e.source.value);
|
|
5604
5610
|
let a;
|
|
5605
5611
|
if (i) {
|
|
@@ -5616,7 +5622,7 @@ function Ms(e, t) {
|
|
|
5616
5622
|
t.var(n.local.name, u === "*" ? U({}, a) : a[u]);
|
|
5617
5623
|
}
|
|
5618
5624
|
}
|
|
5619
|
-
function
|
|
5625
|
+
function Us(e, t) {
|
|
5620
5626
|
const r = t.global();
|
|
5621
5627
|
let i;
|
|
5622
5628
|
e.declaration.type === "FunctionDeclaration" ? (i = Y(e.declaration, t), t.func(e.declaration.id.name, i)) : e.declaration.type === "ClassDeclaration" ? (i = Oe(e.declaration, t), t.func(e.declaration.id.name, i)) : i = y(e.declaration, t);
|
|
@@ -5626,7 +5632,7 @@ function js(e, t) {
|
|
|
5626
5632
|
s && typeof s == "object" && (s.default = i);
|
|
5627
5633
|
}
|
|
5628
5634
|
}
|
|
5629
|
-
function
|
|
5635
|
+
function $s(e, t) {
|
|
5630
5636
|
const r = t.global();
|
|
5631
5637
|
if (e.declaration) {
|
|
5632
5638
|
if (e.declaration.type === "FunctionDeclaration") {
|
|
@@ -5669,7 +5675,7 @@ function Us(e, t) {
|
|
|
5669
5675
|
}
|
|
5670
5676
|
}
|
|
5671
5677
|
}
|
|
5672
|
-
function
|
|
5678
|
+
function qs(e, t) {
|
|
5673
5679
|
const r = t.global(), i = r.find(ve + e.source.value);
|
|
5674
5680
|
let a;
|
|
5675
5681
|
if (i) {
|
|
@@ -5684,7 +5690,7 @@ function $s(e, t) {
|
|
|
5684
5690
|
n && typeof n == "object" && U(n, a);
|
|
5685
5691
|
}
|
|
5686
5692
|
}
|
|
5687
|
-
function
|
|
5693
|
+
function Nt(e, t, r = {}) {
|
|
5688
5694
|
const { onlyBlock: i = !1 } = r, a = [], s = [];
|
|
5689
5695
|
for (let n = 0; n < e.body.length; n++) {
|
|
5690
5696
|
const u = e.body[n];
|
|
@@ -5741,13 +5747,13 @@ function te(e, t) {
|
|
|
5741
5747
|
function M(e, t, r = {}) {
|
|
5742
5748
|
switch (e.type) {
|
|
5743
5749
|
case "ObjectPattern":
|
|
5744
|
-
return Ji(e, t, r);
|
|
5745
|
-
case "ArrayPattern":
|
|
5746
5750
|
return er(e, t, r);
|
|
5751
|
+
case "ArrayPattern":
|
|
5752
|
+
return tr(e, t, r);
|
|
5747
5753
|
case "RestElement":
|
|
5748
5754
|
return _e(e, t, r);
|
|
5749
5755
|
case "AssignmentPattern":
|
|
5750
|
-
return
|
|
5756
|
+
return ir(e, t, r);
|
|
5751
5757
|
default:
|
|
5752
5758
|
throw new SyntaxError("Unexpected token");
|
|
5753
5759
|
}
|
|
@@ -5757,21 +5763,21 @@ function Y(e, t, r = {}) {
|
|
|
5757
5763
|
if (e.generator || e.async)
|
|
5758
5764
|
return Z(e, t, r);
|
|
5759
5765
|
const { superClass: i, construct: a } = r, s = e.params;
|
|
5760
|
-
let u = function(...
|
|
5761
|
-
const
|
|
5762
|
-
e.type !== "ArrowFunctionExpression" && (
|
|
5766
|
+
let u = function(...f) {
|
|
5767
|
+
const h = new L(t, !0);
|
|
5768
|
+
e.type !== "ArrowFunctionExpression" && (h.let("this", this), h.let("arguments", arguments), h.const(ot, new.target), i ? (h.const(st, i), a && h.let(he, a)) : a && a(this));
|
|
5763
5769
|
for (let I = 0; I < s.length; I++) {
|
|
5764
|
-
const
|
|
5765
|
-
|
|
5770
|
+
const T = s[I];
|
|
5771
|
+
T.type === "Identifier" ? h.var(T.name, f[I]) : T.type === "RestElement" ? _e(T, h, { kind: "var", feed: f.slice(I) }) : M(T, h, { kind: "var", feed: f[I] });
|
|
5766
5772
|
}
|
|
5767
5773
|
let v;
|
|
5768
|
-
if (e.body.type === "BlockStatement" ? (
|
|
5774
|
+
if (e.body.type === "BlockStatement" ? (Nt(e.body, h), v = oe(e.body, h, {
|
|
5769
5775
|
invasived: !0,
|
|
5770
5776
|
hoisted: !0
|
|
5771
|
-
})) : (v = y(e.body,
|
|
5777
|
+
})) : (v = y(e.body, h), e.type === "ArrowFunctionExpression" && (w.RES = v, v = w)), v === w)
|
|
5772
5778
|
return v.RES;
|
|
5773
5779
|
if (new.target)
|
|
5774
|
-
return
|
|
5780
|
+
return h.find("this").get();
|
|
5775
5781
|
};
|
|
5776
5782
|
e.type === "ArrowFunctionExpression" && E(u, nt, { value: !0 }), E(u, "name", {
|
|
5777
5783
|
value: e.id && e.id.name || "",
|
|
@@ -5804,18 +5810,18 @@ function Oe(e, t) {
|
|
|
5804
5810
|
break;
|
|
5805
5811
|
}
|
|
5806
5812
|
}
|
|
5807
|
-
return r &&
|
|
5813
|
+
return r && Kt(s, r), dr(e.body, t, { klass: s, superClass: r }), E(s, Ee, { value: !0 }), E(s, "name", {
|
|
5808
5814
|
value: e.id && e.id.name || "",
|
|
5809
5815
|
configurable: !0
|
|
5810
5816
|
}), s;
|
|
5811
5817
|
}
|
|
5812
|
-
function
|
|
5818
|
+
function gr(e, t, r) {
|
|
5813
5819
|
const { value: i } = r, a = e.left, s = new L(t);
|
|
5814
5820
|
a.type === "VariableDeclaration" ? xe(a, s, { feed: i }) : a.type === "Identifier" ? ye(a, t, { getVar: !0 }).set(i) : M(a, t, { feed: i });
|
|
5815
5821
|
let n;
|
|
5816
5822
|
return e.body.type === "BlockStatement" ? n = oe(e.body, s, { invasived: !0 }) : n = y(e.body, s), n;
|
|
5817
5823
|
}
|
|
5818
|
-
function*
|
|
5824
|
+
function* Rt(e, t, r = {}) {
|
|
5819
5825
|
const { onlyBlock: i = !1 } = r, a = [], s = [];
|
|
5820
5826
|
for (let n = 0; n < e.body.length; n++) {
|
|
5821
5827
|
const u = e.body[n];
|
|
@@ -5872,13 +5878,13 @@ function* ie(e, t) {
|
|
|
5872
5878
|
function* j(e, t, r = {}) {
|
|
5873
5879
|
switch (e.type) {
|
|
5874
5880
|
case "ObjectPattern":
|
|
5875
|
-
return yield* Ni(e, t, r);
|
|
5876
|
-
case "ArrayPattern":
|
|
5877
5881
|
return yield* Ri(e, t, r);
|
|
5882
|
+
case "ArrayPattern":
|
|
5883
|
+
return yield* Bi(e, t, r);
|
|
5878
5884
|
case "RestElement":
|
|
5879
5885
|
return yield* Ce(e, t, r);
|
|
5880
5886
|
case "AssignmentPattern":
|
|
5881
|
-
return yield*
|
|
5887
|
+
return yield* Oi(e, t, r);
|
|
5882
5888
|
default:
|
|
5883
5889
|
throw new SyntaxError("Unexpected token");
|
|
5884
5890
|
}
|
|
@@ -5890,37 +5896,37 @@ function Z(e, t, r = {}) {
|
|
|
5890
5896
|
!e.generator && !e.async
|
|
5891
5897
|
)
|
|
5892
5898
|
return Y(e, t, r);
|
|
5893
|
-
const { superClass: i, construct: a } = r, s = e.params, n = function* (...
|
|
5894
|
-
const
|
|
5895
|
-
e.type !== "ArrowFunctionExpression" && (
|
|
5899
|
+
const { superClass: i, construct: a } = r, s = e.params, n = function* (...f) {
|
|
5900
|
+
const h = new L(t, !0);
|
|
5901
|
+
e.type !== "ArrowFunctionExpression" && (h.let("this", this), h.let("arguments", arguments), h.const(ot, new.target), i ? (h.const(st, i), a && h.let(he, a)) : a && (yield* a(this)));
|
|
5896
5902
|
for (let I = 0; I < s.length; I++) {
|
|
5897
|
-
const
|
|
5898
|
-
|
|
5903
|
+
const T = s[I];
|
|
5904
|
+
T.type === "Identifier" ? h.var(T.name, f[I]) : T.type === "RestElement" ? yield* Ce(T, h, { kind: "var", feed: f.slice(I) }) : yield* j(T, h, { kind: "var", feed: f[I] });
|
|
5899
5905
|
}
|
|
5900
5906
|
let v;
|
|
5901
|
-
if (e.body.type === "BlockStatement" ? (yield*
|
|
5907
|
+
if (e.body.type === "BlockStatement" ? (yield* Rt(e.body, h), v = yield* ne(e.body, h, {
|
|
5902
5908
|
invasived: !0,
|
|
5903
5909
|
hoisted: !0
|
|
5904
|
-
})) : (v = yield* d(e.body,
|
|
5910
|
+
})) : (v = yield* d(e.body, h), e.type === "ArrowFunctionExpression" && (w.RES = v, v = w)), v === w)
|
|
5905
5911
|
return v.RES;
|
|
5906
5912
|
if (new.target)
|
|
5907
|
-
return
|
|
5913
|
+
return h.find("this").get();
|
|
5908
5914
|
};
|
|
5909
5915
|
let u;
|
|
5910
5916
|
e.async && e.generator ? u = function() {
|
|
5911
|
-
const
|
|
5912
|
-
let
|
|
5913
|
-
const I = (q) =>
|
|
5917
|
+
const f = n.apply(this, arguments);
|
|
5918
|
+
let h = Promise.resolve(), v = !1;
|
|
5919
|
+
const I = (q) => h = h.then(() => gt(f, U({ fullRet: !0 }, q))).catch((le) => {
|
|
5914
5920
|
if (!v)
|
|
5915
5921
|
return v = !0, Promise.reject(le);
|
|
5916
|
-
}),
|
|
5922
|
+
}), T = {
|
|
5917
5923
|
next: (q) => I({ res: q }),
|
|
5918
5924
|
throw: (q) => I({ err: q }),
|
|
5919
5925
|
return: (q) => I({ ret: q })
|
|
5920
5926
|
};
|
|
5921
|
-
return typeof Symbol == "function" && (
|
|
5927
|
+
return typeof Symbol == "function" && (T[Symbol.iterator] = function() {
|
|
5922
5928
|
return this;
|
|
5923
|
-
}),
|
|
5929
|
+
}), T;
|
|
5924
5930
|
} : e.async ? u = function() {
|
|
5925
5931
|
return gt(n.apply(this, arguments));
|
|
5926
5932
|
} : u = n, E(u, nt, { value: !0 }), E(u, "name", {
|
|
@@ -5940,7 +5946,7 @@ function* De(e, t) {
|
|
|
5940
5946
|
const r = yield* d(e.superClass, t), i = e.body.body, a = function* (n) {
|
|
5941
5947
|
for (let u = 0; u < i.length; u++) {
|
|
5942
5948
|
const l = i[u];
|
|
5943
|
-
l.type === "PropertyDefinition" && !l.static && (yield*
|
|
5949
|
+
l.type === "PropertyDefinition" && !l.static && (yield* Tt(l, t, { klass: n, superClass: r }));
|
|
5944
5950
|
}
|
|
5945
5951
|
};
|
|
5946
5952
|
let s = function* () {
|
|
@@ -5954,7 +5960,7 @@ function* De(e, t) {
|
|
|
5954
5960
|
break;
|
|
5955
5961
|
}
|
|
5956
5962
|
}
|
|
5957
|
-
return r &&
|
|
5963
|
+
return r && Kt(s, r), yield* Ki(e.body, t, { klass: s, superClass: r }), E(s, Ee, { value: !0 }), E(s, "name", {
|
|
5958
5964
|
value: e.id && e.id.name || "",
|
|
5959
5965
|
configurable: !0
|
|
5960
5966
|
}), s;
|
|
@@ -5965,18 +5971,18 @@ function* vt(e, t, r) {
|
|
|
5965
5971
|
let n;
|
|
5966
5972
|
return e.body.type === "BlockStatement" ? n = yield* ne(e.body, s, { invasived: !0 }) : n = yield* d(e.body, s), n;
|
|
5967
5973
|
}
|
|
5968
|
-
const
|
|
5974
|
+
const Ws = 15, Bt = class Bt {
|
|
5969
5975
|
constructor(t = {}) {
|
|
5970
5976
|
this.options = { ecmaVersion: "latest" }, this.scope = new L(null, !0), this.exports = {};
|
|
5971
5977
|
let { ecmaVer: r = "latest", sandBox: i = !0, sourceType: a = "script" } = t;
|
|
5972
|
-
if (typeof r == "number" && (r -= r < 2015 ? 0 : 2009), r !== "latest" && r !== 3 && (r < 5 || r >
|
|
5978
|
+
if (typeof r == "number" && (r -= r < 2015 ? 0 : 2009), r !== "latest" && r !== 3 && (r < 5 || r > Ws))
|
|
5973
5979
|
throw new Error("unsupported ecmaVer");
|
|
5974
5980
|
if (this.options.ecmaVersion = r, this.options.sourceType = a, i) {
|
|
5975
|
-
const s =
|
|
5976
|
-
this.scope.let("globalThis", s), this.scope.let("window", s), this.scope.let("self", s), this.scope.let("this", s);
|
|
5981
|
+
const s = _r();
|
|
5982
|
+
this.scope.let("globalThis", s), this.scope.let("window", s), this.scope.let("self", s), this.scope.let("this", a === "module" ? void 0 : s);
|
|
5977
5983
|
} else
|
|
5978
|
-
this.scope.let("globalThis", p), this.scope.let("window", p), this.scope.let("self", p), this.scope.let("this", p);
|
|
5979
|
-
this.scope.const(a === "module" ? $ : "exports", this.exports = {});
|
|
5984
|
+
this.scope.let("globalThis", p), this.scope.let("window", p), this.scope.let("self", p), this.scope.let("this", a === "module" ? void 0 : p);
|
|
5985
|
+
this.scope.const(a === "module" ? $ : "exports", this.exports = {}), a === "module" && this.scope.const(Lt, !0);
|
|
5980
5986
|
}
|
|
5981
5987
|
import(t, r) {
|
|
5982
5988
|
if (typeof t == "string" && (t = { [t]: r }), typeof t != "object") return;
|
|
@@ -5987,17 +5993,17 @@ const qs = 15, Rt = class Rt {
|
|
|
5987
5993
|
}
|
|
5988
5994
|
}
|
|
5989
5995
|
parse(t, r) {
|
|
5990
|
-
return typeof r == "function" ? r(t, this.options) :
|
|
5996
|
+
return typeof r == "function" ? r(t, this.options) : pa(t, this.options);
|
|
5991
5997
|
}
|
|
5992
5998
|
run(t) {
|
|
5993
5999
|
const r = typeof t == "string" ? this.parse(t) : t, i = this.scope;
|
|
5994
6000
|
this.options.sourceType === "module" && (this.options.ecmaVersion === "latest" || this.options.ecmaVersion >= 13) ? gt(function* () {
|
|
5995
|
-
yield*
|
|
5996
|
-
}()) : (
|
|
6001
|
+
yield* Rt(r, i), yield* d(r, i);
|
|
6002
|
+
}()) : (Nt(r, i), y(r, i));
|
|
5997
6003
|
}
|
|
5998
6004
|
};
|
|
5999
|
-
|
|
6000
|
-
let
|
|
6005
|
+
Bt.version = ya.version;
|
|
6006
|
+
let qt = Bt;
|
|
6001
6007
|
export {
|
|
6002
|
-
|
|
6008
|
+
qt as default
|
|
6003
6009
|
};
|