@builder.io/sdk-react 2.0.16 → 2.0.21
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/lib/browser/blocks-exports.cjs +31 -31
- package/lib/browser/blocks-exports.mjs +852 -829
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +22 -23
- package/lib/browser/{server-entry-c1666709.cjs → server-entry-6e52be8e.cjs} +2 -2
- package/lib/browser/{server-entry-1db0d96b.js → server-entry-8f273525.js} +1 -3
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-7c1c7c56.js → accordion-0fa0cd9f.js} +1 -1
- package/lib/edge/{accordion-09162a27.cjs → accordion-98e5d925.cjs} +1 -1
- package/lib/edge/blocks-4dac2e8c.cjs +12 -0
- package/lib/edge/{blocks-46c07b56.js → blocks-805edb5d.js} +296 -276
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-f2daea13.cjs → button-04692c59.cjs} +1 -1
- package/lib/edge/{button-a923f8ff.js → button-8c912189.js} +2 -2
- package/lib/edge/columns-4d8db53c.cjs +28 -0
- package/lib/edge/{columns-eee4f51c.js → columns-70a13cfe.js} +8 -9
- package/lib/edge/content-variants-7570438f.cjs +134 -0
- package/lib/edge/{content-variants-1368cab1.js → content-variants-d11198bc.js} +306 -309
- package/lib/edge/{evaluate-93701356.js → evaluate-29e9d055.js} +736 -711
- package/lib/edge/{evaluate-4c9b2e86.cjs → evaluate-826010e9.cjs} +13 -15
- package/lib/edge/form-13c77d47.cjs +1 -0
- package/lib/edge/{form-d0eb0af4.js → form-28c6dcde.js} +16 -17
- package/lib/edge/{get-class-prop-name-7cd1376f.cjs → get-class-prop-name-182b0edb.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-1c373615.js → get-class-prop-name-c9e11804.js} +1 -1
- package/lib/edge/{image-eebfcbac.cjs → image-54d2f755.cjs} +3 -3
- package/lib/edge/{image-6a074aab.js → image-6970c193.js} +24 -24
- package/lib/edge/{img-6c8139db.cjs → img-8f2d03d2.cjs} +1 -1
- package/lib/edge/{img-6e16ade6.js → img-ca1be569.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-c78fef2b.cjs → input-0456a323.cjs} +1 -1
- package/lib/edge/{input-a7e9c157.js → input-3db08208.js} +1 -1
- package/lib/edge/{select-3cf593bd.js → select-251dfaa4.js} +1 -1
- package/lib/edge/{select-bd1e231b.cjs → select-b851ff58.cjs} +1 -1
- package/lib/edge/{server-entry-6b3ad048.js → server-entry-05e6ebef.js} +1 -3
- package/lib/edge/{server-entry-d09af943.cjs → server-entry-75427eb3.cjs} +2 -2
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/slot-279f992e.cjs +1 -0
- package/lib/edge/{slot-a5a9a30f.js → slot-76c2cebc.js} +6 -7
- package/lib/edge/{symbol-9de15518.cjs → symbol-020487c5.cjs} +1 -1
- package/lib/edge/{symbol-77d331c6.js → symbol-47130603.js} +2 -2
- package/lib/edge/{tabs-63d6ea85.js → tabs-3cc397e4.js} +13 -14
- package/lib/edge/tabs-c6053c2d.cjs +1 -0
- package/lib/edge/{text-4d508bbc.js → text-29ef4fd5.js} +8 -9
- package/lib/edge/text-c9d83141.cjs +1 -0
- package/lib/node/blocks-exports.cjs +31 -31
- package/lib/node/blocks-exports.mjs +807 -822
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{server-entry-1db0d96b.js → server-entry-83392238.js} +1 -2
- package/lib/node/{server-entry-c1666709.cjs → server-entry-b5908591.cjs} +2 -2
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-1188ea7b.js → should-force-browser-runtime-in-node-31b1e2f2.js} +57 -30
- package/lib/node/should-force-browser-runtime-in-node-391032cf.cjs +48 -0
- package/package.json +1 -1
- package/types/components/awaiter.d.ts +14 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/context/component-reference-types.d.ts +4 -0
- package/types/context/types.d.ts +2 -1
- package/types/functions/evaluate/browser-runtime/browser.d.ts +0 -6
- package/types/functions/evaluate/helpers.d.ts +5 -0
- package/lib/browser/init.cjs +0 -8
- package/lib/browser/init.mjs +0 -64
- package/lib/browser/should-force-browser-runtime-in-node-00f3cfef.js +0 -17
- package/lib/browser/should-force-browser-runtime-in-node-f768fb5d.cjs +0 -1
- package/lib/edge/blocks-273f24cc.cjs +0 -12
- package/lib/edge/columns-0b8c2260.cjs +0 -28
- package/lib/edge/content-variants-575b5dbf.cjs +0 -134
- package/lib/edge/form-bd184008.cjs +0 -1
- package/lib/edge/init.cjs +0 -8
- package/lib/edge/init.mjs +0 -64
- package/lib/edge/should-force-browser-runtime-in-node-2b14e4a8.cjs +0 -1
- package/lib/edge/should-force-browser-runtime-in-node-560bddfb.js +0 -17
- package/lib/edge/slot-ab7fc875.cjs +0 -1
- package/lib/edge/tabs-e6fa664e.cjs +0 -1
- package/lib/edge/text-ab5d2747.cjs +0 -1
- package/lib/node/should-force-browser-runtime-in-node-37010e2f.cjs +0 -48
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
var Zr = Object.defineProperty;
|
|
2
2
|
var zr = (e, t, n) => t in e ? Zr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
4
|
-
import { isEditing as Qr, isBrowser as
|
|
5
|
-
|
|
6
|
-
const tn = (e, t, n) => {
|
|
7
|
-
if (Object(e) !== e)
|
|
8
|
-
return e;
|
|
9
|
-
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
10
|
-
return r.slice(0, -1).reduce((i, s, u) => Object(i[s]) === i[s] ? i[s] : i[s] = Math.abs(Number(r[u + 1])) >> 0 === +r[u + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
11
|
-
}, Ar = ({
|
|
3
|
+
var kt = (e, t, n) => (zr(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
+
import { isEditing as Qr, isBrowser as Ct, getUserAttributes as qr, logger as Nt, checkIsDefined as en } from "./server-entry-05e6ebef.js";
|
|
5
|
+
const Ir = ({
|
|
12
6
|
builder: e,
|
|
13
7
|
context: t,
|
|
14
8
|
event: n,
|
|
@@ -20,35 +14,15 @@ const tn = (e, t, n) => {
|
|
|
20
14
|
builder: e,
|
|
21
15
|
context: t,
|
|
22
16
|
event: n
|
|
23
|
-
}),
|
|
17
|
+
}), tn = () => ({
|
|
24
18
|
isEditing: Qr(),
|
|
25
|
-
isBrowser:
|
|
26
|
-
isServer: !
|
|
19
|
+
isBrowser: Ct(),
|
|
20
|
+
isServer: !Ct(),
|
|
27
21
|
getUserAttributes: () => qr()
|
|
28
|
-
}),
|
|
22
|
+
}), rn = (e, {
|
|
29
23
|
isExpression: t = !0
|
|
30
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e
|
|
31
|
-
|
|
32
|
-
builder: t,
|
|
33
|
-
context: n,
|
|
34
|
-
event: r,
|
|
35
|
-
localState: i,
|
|
36
|
-
rootSetState: s,
|
|
37
|
-
rootState: u
|
|
38
|
-
}) => {
|
|
39
|
-
const h = Ar({
|
|
40
|
-
builder: t,
|
|
41
|
-
context: n,
|
|
42
|
-
event: r,
|
|
43
|
-
state: Ir({
|
|
44
|
-
rootState: u,
|
|
45
|
-
localState: i,
|
|
46
|
-
rootSetState: s
|
|
47
|
-
})
|
|
48
|
-
});
|
|
49
|
-
return new Function(...h.map(([m]) => m), e)(...h.map(([, m]) => m));
|
|
50
|
-
};
|
|
51
|
-
function Ir({
|
|
24
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
25
|
+
function Rt({
|
|
52
26
|
rootState: e,
|
|
53
27
|
localState: t,
|
|
54
28
|
rootSetState: n
|
|
@@ -58,7 +32,7 @@ function Ir({
|
|
|
58
32
|
if (t && i in t)
|
|
59
33
|
return t[i];
|
|
60
34
|
const s = r[i];
|
|
61
|
-
return typeof s == "object" && s !== null ?
|
|
35
|
+
return typeof s == "object" && s !== null ? Rt({
|
|
62
36
|
rootState: s,
|
|
63
37
|
localState: void 0,
|
|
64
38
|
rootSetState: n ? (u) => {
|
|
@@ -73,17 +47,38 @@ function Ir({
|
|
|
73
47
|
}
|
|
74
48
|
});
|
|
75
49
|
}
|
|
76
|
-
|
|
50
|
+
const nn = ({
|
|
51
|
+
code: e,
|
|
52
|
+
builder: t,
|
|
53
|
+
context: n,
|
|
54
|
+
event: r,
|
|
55
|
+
localState: i,
|
|
56
|
+
rootSetState: s,
|
|
57
|
+
rootState: u
|
|
58
|
+
}) => {
|
|
59
|
+
const h = Ir({
|
|
60
|
+
builder: t,
|
|
61
|
+
context: n,
|
|
62
|
+
event: r,
|
|
63
|
+
state: Rt({
|
|
64
|
+
rootState: u,
|
|
65
|
+
localState: i,
|
|
66
|
+
rootSetState: s
|
|
67
|
+
})
|
|
68
|
+
});
|
|
69
|
+
return new Function(...h.map(([y]) => y), e)(...h.map(([, y]) => y));
|
|
70
|
+
};
|
|
71
|
+
var O, on = function(e) {
|
|
77
72
|
function t(o) {
|
|
78
73
|
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Yr.test(String.fromCharCode(o));
|
|
79
74
|
}
|
|
80
75
|
function n(o) {
|
|
81
|
-
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
76
|
+
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && xr.test(String.fromCharCode(o));
|
|
82
77
|
}
|
|
83
78
|
function r(o, a) {
|
|
84
79
|
for (var l = g, p = 1, E = 0; ; ) {
|
|
85
|
-
|
|
86
|
-
var P =
|
|
80
|
+
ze.lastIndex = E;
|
|
81
|
+
var P = ze.exec(l);
|
|
87
82
|
if (P && P.index < o)
|
|
88
83
|
++p, E = P.index + P[0].length;
|
|
89
84
|
else
|
|
@@ -103,25 +98,25 @@ var C, sn = function(e) {
|
|
|
103
98
|
};
|
|
104
99
|
}
|
|
105
100
|
function s() {
|
|
106
|
-
this.line = le, this.ab = c -
|
|
101
|
+
this.line = le, this.ab = c - $;
|
|
107
102
|
}
|
|
108
103
|
function u(o, a) {
|
|
109
|
-
he = c, j.C && (
|
|
104
|
+
he = c, j.C && (ct = new s()), w = o, y(), X = a, Ae = o.m;
|
|
110
105
|
}
|
|
111
106
|
function h() {
|
|
112
107
|
for (var o = c, a = j.va && j.C && new s(), l = g.charCodeAt(c += 2); c < fe && l !== 10 && l !== 13 && l !== 8232 && l !== 8233; )
|
|
113
108
|
++c, l = g.charCodeAt(c);
|
|
114
109
|
j.va && j.va(!1, g.slice(o + 2, c), o, c, a, j.C && new s());
|
|
115
110
|
}
|
|
116
|
-
function
|
|
111
|
+
function y() {
|
|
117
112
|
for (; c < fe; ) {
|
|
118
113
|
var o = g.charCodeAt(c);
|
|
119
114
|
if (o === 32)
|
|
120
115
|
++c;
|
|
121
116
|
else if (o === 13)
|
|
122
|
-
++c, o = g.charCodeAt(c), o === 10 && ++c, j.C && (++le,
|
|
117
|
+
++c, o = g.charCodeAt(c), o === 10 && ++c, j.C && (++le, $ = c);
|
|
123
118
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
124
|
-
++c, j.C && (++le,
|
|
119
|
+
++c, j.C && (++le, $ = c);
|
|
125
120
|
else if (8 < o && 14 > o)
|
|
126
121
|
++c;
|
|
127
122
|
else if (o === 47)
|
|
@@ -129,8 +124,8 @@ var C, sn = function(e) {
|
|
|
129
124
|
o = void 0;
|
|
130
125
|
var a = j.va && j.C && new s(), l = c, p = g.indexOf("*/", c += 2);
|
|
131
126
|
if (p === -1 && r(c - 2, "Unterminated comment"), c = p + 2, j.C)
|
|
132
|
-
for (
|
|
133
|
-
++le,
|
|
127
|
+
for (ze.lastIndex = l; (o = ze.exec(g)) && o.index < c; )
|
|
128
|
+
++le, $ = o.index + o[0].length;
|
|
134
129
|
j.va && j.va(!0, g.slice(l + 2, p), l, c, a, j.C && new s());
|
|
135
130
|
} else if (o === 47)
|
|
136
131
|
h();
|
|
@@ -138,40 +133,40 @@ var C, sn = function(e) {
|
|
|
138
133
|
break;
|
|
139
134
|
else if (o === 160)
|
|
140
135
|
++c;
|
|
141
|
-
else if (5760 <= o &&
|
|
136
|
+
else if (5760 <= o && Kr.test(String.fromCharCode(o)))
|
|
142
137
|
++c;
|
|
143
138
|
else
|
|
144
139
|
break;
|
|
145
140
|
}
|
|
146
141
|
}
|
|
147
|
-
function
|
|
142
|
+
function I(o) {
|
|
148
143
|
switch (o) {
|
|
149
144
|
case 46:
|
|
150
|
-
o = g.charCodeAt(c + 1), 48 <= o && 57 >= o ?
|
|
145
|
+
o = g.charCodeAt(c + 1), 48 <= o && 57 >= o ? et(!0) : (++c, u(hr));
|
|
151
146
|
return;
|
|
152
147
|
case 40:
|
|
153
148
|
return ++c, u(Z);
|
|
154
149
|
case 41:
|
|
155
|
-
return ++c, u(
|
|
150
|
+
return ++c, u(H);
|
|
156
151
|
case 59:
|
|
157
152
|
return ++c, u(z);
|
|
158
153
|
case 44:
|
|
159
|
-
return ++c, u(
|
|
154
|
+
return ++c, u(se);
|
|
160
155
|
case 91:
|
|
161
|
-
return ++c, u(
|
|
156
|
+
return ++c, u(Et);
|
|
162
157
|
case 93:
|
|
163
|
-
return ++c, u(
|
|
158
|
+
return ++c, u(xt);
|
|
164
159
|
case 123:
|
|
165
|
-
return ++c, u(
|
|
160
|
+
return ++c, u(Ne);
|
|
166
161
|
case 125:
|
|
167
162
|
return ++c, u(ve);
|
|
168
163
|
case 58:
|
|
169
164
|
return ++c, u(Re);
|
|
170
165
|
case 63:
|
|
171
|
-
return ++c, u(
|
|
166
|
+
return ++c, u(gr);
|
|
172
167
|
case 48:
|
|
173
168
|
if (o = g.charCodeAt(c + 1), o === 120 || o === 88) {
|
|
174
|
-
c += 2, o =
|
|
169
|
+
c += 2, o = J(16), o === null && r(M + 2, "Expected hexadecimal number"), n(g.charCodeAt(c)) && r(c, "Identifier directly after number"), u(Te, o);
|
|
175
170
|
return;
|
|
176
171
|
}
|
|
177
172
|
case 49:
|
|
@@ -183,12 +178,12 @@ var C, sn = function(e) {
|
|
|
183
178
|
case 55:
|
|
184
179
|
case 56:
|
|
185
180
|
case 57:
|
|
186
|
-
return
|
|
181
|
+
return et(!1);
|
|
187
182
|
case 34:
|
|
188
183
|
case 39:
|
|
189
184
|
c++;
|
|
190
185
|
for (var a = ""; ; ) {
|
|
191
|
-
c >= fe && r(
|
|
186
|
+
c >= fe && r(M, "Unterminated string constant");
|
|
192
187
|
var l = g.charCodeAt(c);
|
|
193
188
|
if (l === o) {
|
|
194
189
|
++c, u(Ke, a);
|
|
@@ -200,7 +195,7 @@ var C, sn = function(e) {
|
|
|
200
195
|
for (p && (p = p[0]); p && 255 < parseInt(p, 8); )
|
|
201
196
|
p = p.slice(0, -1);
|
|
202
197
|
if (p === "0" && (p = null), ++c, p)
|
|
203
|
-
|
|
198
|
+
V && r(c - 2, "Octal literal in strict mode"), a += String.fromCharCode(parseInt(p, 8)), c += p.length - 1;
|
|
204
199
|
else
|
|
205
200
|
switch (l) {
|
|
206
201
|
case 110:
|
|
@@ -211,13 +206,13 @@ var C, sn = function(e) {
|
|
|
211
206
|
a += "\r";
|
|
212
207
|
break;
|
|
213
208
|
case 120:
|
|
214
|
-
a += String.fromCharCode(
|
|
209
|
+
a += String.fromCharCode(G(2));
|
|
215
210
|
break;
|
|
216
211
|
case 117:
|
|
217
|
-
a += String.fromCharCode(
|
|
212
|
+
a += String.fromCharCode(G(4));
|
|
218
213
|
break;
|
|
219
214
|
case 85:
|
|
220
|
-
a += String.fromCharCode(
|
|
215
|
+
a += String.fromCharCode(G(8));
|
|
221
216
|
break;
|
|
222
217
|
case 116:
|
|
223
218
|
a += " ";
|
|
@@ -237,17 +232,17 @@ var C, sn = function(e) {
|
|
|
237
232
|
case 13:
|
|
238
233
|
g.charCodeAt(c) === 10 && ++c;
|
|
239
234
|
case 10:
|
|
240
|
-
j.C && (
|
|
235
|
+
j.C && ($ = c, ++le);
|
|
241
236
|
break;
|
|
242
237
|
default:
|
|
243
238
|
a += String.fromCharCode(l);
|
|
244
239
|
}
|
|
245
240
|
} else
|
|
246
|
-
l !== 13 && l !== 10 && l !== 8232 && l !== 8233 || r(
|
|
241
|
+
l !== 13 && l !== 10 && l !== 8232 && l !== 8233 || r(M, "Unterminated string constant"), a += String.fromCharCode(l), ++c;
|
|
247
242
|
}
|
|
248
243
|
return;
|
|
249
244
|
case 47:
|
|
250
|
-
o = g.charCodeAt(c + 1),
|
|
245
|
+
o = g.charCodeAt(c + 1), Ae ? (++c, Xe()) : o === 61 ? A(ce, 2) : A(vr, 1);
|
|
251
246
|
return;
|
|
252
247
|
case 37:
|
|
253
248
|
case 42:
|
|
@@ -255,38 +250,38 @@ var C, sn = function(e) {
|
|
|
255
250
|
return;
|
|
256
251
|
case 124:
|
|
257
252
|
case 38:
|
|
258
|
-
a = g.charCodeAt(c + 1), a === o ? A(o === 124 ?
|
|
253
|
+
a = g.charCodeAt(c + 1), a === o ? A(o === 124 ? mr : wr, 2) : a === 61 ? A(ce, 2) : A(o === 124 ? _r : Lr, 1);
|
|
259
254
|
return;
|
|
260
255
|
case 94:
|
|
261
|
-
g.charCodeAt(c + 1) === 61 ? A(ce, 2) : A(
|
|
256
|
+
g.charCodeAt(c + 1) === 61 ? A(ce, 2) : A(Fr, 1);
|
|
262
257
|
return;
|
|
263
258
|
case 43:
|
|
264
259
|
case 45:
|
|
265
|
-
a = g.charCodeAt(c + 1), a === o ? a === 45 && g.charCodeAt(c + 2) === 62 &&
|
|
260
|
+
a = g.charCodeAt(c + 1), a === o ? a === 45 && g.charCodeAt(c + 2) === 62 && Ze.test(g.slice(oe, c)) ? (c += 3, h(), y(), C()) : A(Ur, 2) : a === 61 ? A(ce, 2) : A(Xr, 1);
|
|
266
261
|
return;
|
|
267
262
|
case 60:
|
|
268
263
|
case 62:
|
|
269
|
-
a = g.charCodeAt(c + 1), l = 1, a === o ? (l = o === 62 && g.charCodeAt(c + 2) === 62 ? 3 : 2, g.charCodeAt(c + l) === 61 ? A(ce, l + 1) : A(Vr, l)) : a === 33 && o === 60 && g.charCodeAt(c + 2) === 45 && g.charCodeAt(c + 3) === 45 ? (c += 4, h(),
|
|
264
|
+
a = g.charCodeAt(c + 1), l = 1, a === o ? (l = o === 62 && g.charCodeAt(c + 2) === 62 ? 3 : 2, g.charCodeAt(c + l) === 61 ? A(ce, l + 1) : A(Vr, l)) : a === 33 && o === 60 && g.charCodeAt(c + 2) === 45 && g.charCodeAt(c + 3) === 45 ? (c += 4, h(), y(), C()) : (a === 61 && (l = g.charCodeAt(c + 2) === 61 ? 3 : 2), A(Gr, l));
|
|
270
265
|
return;
|
|
271
266
|
case 61:
|
|
272
267
|
case 33:
|
|
273
|
-
g.charCodeAt(c + 1) === 61 ? A(Br, g.charCodeAt(c + 2) === 61 ? 3 : 2) : A(o === 61 ?
|
|
268
|
+
g.charCodeAt(c + 1) === 61 ? A(Br, g.charCodeAt(c + 2) === 61 ? 3 : 2) : A(o === 61 ? yr : dr, 1);
|
|
274
269
|
return;
|
|
275
270
|
case 126:
|
|
276
|
-
return A(
|
|
271
|
+
return A(dr, 1);
|
|
277
272
|
}
|
|
278
273
|
return !1;
|
|
279
274
|
}
|
|
280
|
-
function
|
|
281
|
-
if (o ? c =
|
|
282
|
-
return
|
|
275
|
+
function C(o) {
|
|
276
|
+
if (o ? c = M + 1 : M = c, j.C && (lt = new s()), o)
|
|
277
|
+
return Xe();
|
|
283
278
|
if (c >= fe)
|
|
284
|
-
return u(
|
|
279
|
+
return u(ht);
|
|
285
280
|
if (o = g.charCodeAt(c), n(o) || o === 92)
|
|
286
|
-
return
|
|
287
|
-
if (
|
|
288
|
-
if (o = String.fromCharCode(o), o === "\\" ||
|
|
289
|
-
return
|
|
281
|
+
return pe();
|
|
282
|
+
if (I(o) === !1) {
|
|
283
|
+
if (o = String.fromCharCode(o), o === "\\" || xr.test(o))
|
|
284
|
+
return pe();
|
|
290
285
|
r(c, "Unexpected character '" + o + "'");
|
|
291
286
|
}
|
|
292
287
|
}
|
|
@@ -294,11 +289,11 @@ var C, sn = function(e) {
|
|
|
294
289
|
var l = g.slice(c, c + a);
|
|
295
290
|
c += a, u(o, l);
|
|
296
291
|
}
|
|
297
|
-
function
|
|
292
|
+
function Xe() {
|
|
298
293
|
for (var o, a, l = c; ; ) {
|
|
299
294
|
c >= fe && r(l, "Unterminated regexp");
|
|
300
295
|
var p = g.charAt(c);
|
|
301
|
-
if (
|
|
296
|
+
if (Ze.test(p) && r(l, "Unterminated regexp"), o)
|
|
302
297
|
o = !1;
|
|
303
298
|
else {
|
|
304
299
|
if (p === "[")
|
|
@@ -311,40 +306,40 @@ var C, sn = function(e) {
|
|
|
311
306
|
}
|
|
312
307
|
++c;
|
|
313
308
|
}
|
|
314
|
-
o = g.slice(l, c), ++c, (a =
|
|
309
|
+
o = g.slice(l, c), ++c, (a = ne()) && !/^[gmi]*$/.test(a) && r(l, "Invalid regexp flag");
|
|
315
310
|
try {
|
|
316
311
|
var E = new RegExp(o, a);
|
|
317
312
|
} catch (P) {
|
|
318
313
|
throw P instanceof SyntaxError && r(l, P.message), P;
|
|
319
314
|
}
|
|
320
|
-
u(
|
|
315
|
+
u(Yt, E);
|
|
321
316
|
}
|
|
322
|
-
function
|
|
317
|
+
function J(o, a) {
|
|
323
318
|
for (var l = c, p = 0, E = a === void 0 ? 1 / 0 : a, P = 0; P < E; ++P) {
|
|
324
|
-
var
|
|
325
|
-
if (
|
|
319
|
+
var F = g.charCodeAt(c);
|
|
320
|
+
if (F = 97 <= F ? F - 97 + 10 : 65 <= F ? F - 65 + 10 : 48 <= F && 57 >= F ? F - 48 : 1 / 0, F >= o)
|
|
326
321
|
break;
|
|
327
|
-
++c, p = p * o +
|
|
322
|
+
++c, p = p * o + F;
|
|
328
323
|
}
|
|
329
324
|
return c === l || a !== void 0 && c - l !== a ? null : p;
|
|
330
325
|
}
|
|
331
|
-
function
|
|
326
|
+
function et(o) {
|
|
332
327
|
var a = c, l = !1, p = g.charCodeAt(c) === 48;
|
|
333
|
-
o ||
|
|
328
|
+
o || J(10) !== null || r(a, "Invalid number"), g.charCodeAt(c) === 46 && (++c, J(10), l = !0), o = g.charCodeAt(c), (o === 69 || o === 101) && (o = g.charCodeAt(++c), o !== 43 && o !== 45 || ++c, J(10) === null && r(a, "Invalid number"), l = !0), n(g.charCodeAt(c)) && r(c, "Identifier directly after number"), o = g.slice(a, c);
|
|
334
329
|
var E;
|
|
335
|
-
l ? E = parseFloat(o) : p && o.length !== 1 ? /[89]/.test(o) ||
|
|
330
|
+
l ? E = parseFloat(o) : p && o.length !== 1 ? /[89]/.test(o) || V ? r(a, "Invalid number") : E = parseInt(o, 8) : E = parseInt(o, 10), u(Te, E);
|
|
336
331
|
}
|
|
337
|
-
function
|
|
338
|
-
return o =
|
|
332
|
+
function G(o) {
|
|
333
|
+
return o = J(16, o), o === null && r(M, "Bad character escape sequence"), o;
|
|
339
334
|
}
|
|
340
|
-
function
|
|
335
|
+
function ne() {
|
|
341
336
|
ye = !1;
|
|
342
337
|
for (var o, a = !0, l = c; ; ) {
|
|
343
338
|
var p = g.charCodeAt(c);
|
|
344
339
|
if (t(p))
|
|
345
340
|
ye && (o += g.charAt(c)), ++c;
|
|
346
341
|
else if (p === 92) {
|
|
347
|
-
ye || (o = g.slice(l, c)), ye = !0, g.charCodeAt(++c) !== 117 && r(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, p =
|
|
342
|
+
ye || (o = g.slice(l, c)), ye = !0, g.charCodeAt(++c) !== 117 && r(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, p = G(4);
|
|
348
343
|
var E = String.fromCharCode(p);
|
|
349
344
|
E || r(c - 1, "Invalid Unicode escape"), (a ? n(p) : t(p)) || r(c - 4, "Invalid Unicode escape"), o += E;
|
|
350
345
|
} else
|
|
@@ -353,281 +348,281 @@ var C, sn = function(e) {
|
|
|
353
348
|
}
|
|
354
349
|
return ye ? o : g.slice(l, c);
|
|
355
350
|
}
|
|
356
|
-
function
|
|
357
|
-
var o =
|
|
358
|
-
!ye &&
|
|
351
|
+
function pe() {
|
|
352
|
+
var o = ne(), a = ge;
|
|
353
|
+
!ye && Jr(o) && (a = Dr[o]), u(a, o);
|
|
359
354
|
}
|
|
360
355
|
function S() {
|
|
361
|
-
|
|
356
|
+
pt = M, oe = he, ft = ct, C();
|
|
362
357
|
}
|
|
363
|
-
function
|
|
364
|
-
if (
|
|
365
|
-
for (; c <
|
|
366
|
-
|
|
367
|
-
`,
|
|
368
|
-
|
|
358
|
+
function Se(o) {
|
|
359
|
+
if (V = o, c = M, j.C)
|
|
360
|
+
for (; c < $; )
|
|
361
|
+
$ = g.lastIndexOf(`
|
|
362
|
+
`, $ - 2) + 1, --le;
|
|
363
|
+
y(), C();
|
|
369
364
|
}
|
|
370
|
-
function
|
|
371
|
-
this.type = null, this.start =
|
|
365
|
+
function Xt() {
|
|
366
|
+
this.type = null, this.start = M, this.end = null;
|
|
372
367
|
}
|
|
373
|
-
function
|
|
374
|
-
this.start =
|
|
368
|
+
function Wt() {
|
|
369
|
+
this.start = lt, this.end = null, ut && (this.source = ut);
|
|
375
370
|
}
|
|
376
|
-
function
|
|
377
|
-
var o = new
|
|
378
|
-
return j.C && (o.X = new
|
|
371
|
+
function D() {
|
|
372
|
+
var o = new Xt();
|
|
373
|
+
return j.C && (o.X = new Wt()), j.vb && (o.sourceFile = j.vb), j.Xa && (o.j = [M, 0]), o;
|
|
379
374
|
}
|
|
380
|
-
function
|
|
381
|
-
var a = new
|
|
382
|
-
return a.start = o.start, j.C && (a.X = new
|
|
375
|
+
function ie(o) {
|
|
376
|
+
var a = new Xt();
|
|
377
|
+
return a.start = o.start, j.C && (a.X = new Wt(), a.X.start = o.X.start), j.Xa && (a.j = [o.j[0], 0]), a;
|
|
383
378
|
}
|
|
384
379
|
function x(o, a) {
|
|
385
|
-
return o.type = a, o.end =
|
|
380
|
+
return o.type = a, o.end = oe, j.C && (o.X.end = ft), j.Xa && (o.j[1] = oe), o;
|
|
386
381
|
}
|
|
387
|
-
function
|
|
382
|
+
function tt(o) {
|
|
388
383
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
389
384
|
}
|
|
390
|
-
function
|
|
385
|
+
function T(o) {
|
|
391
386
|
return w === o ? (S(), !0) : !1;
|
|
392
387
|
}
|
|
393
|
-
function
|
|
394
|
-
return !j.fc && (w ===
|
|
388
|
+
function We() {
|
|
389
|
+
return !j.fc && (w === ht || w === ve || Ze.test(g.slice(oe, M)));
|
|
395
390
|
}
|
|
396
391
|
function ue() {
|
|
397
|
-
|
|
392
|
+
T(z) || We() || K();
|
|
398
393
|
}
|
|
399
394
|
function N(o) {
|
|
400
|
-
w === o ? S() :
|
|
395
|
+
w === o ? S() : K();
|
|
401
396
|
}
|
|
402
|
-
function
|
|
403
|
-
r(
|
|
397
|
+
function K() {
|
|
398
|
+
r(M, "Unexpected token");
|
|
404
399
|
}
|
|
405
|
-
function
|
|
406
|
-
o.type !== "Identifier" && o.type !== "MemberExpression" && r(o.start, "Assigning to rvalue"),
|
|
400
|
+
function He(o) {
|
|
401
|
+
o.type !== "Identifier" && o.type !== "MemberExpression" && r(o.start, "Assigning to rvalue"), V && o.type === "Identifier" && $e(o.name) && r(o.start, "Assigning to " + o.name + " in strict mode");
|
|
407
402
|
}
|
|
408
403
|
function W() {
|
|
409
|
-
(w ===
|
|
410
|
-
var o = w, a =
|
|
404
|
+
(w === vr || w === ce && X === "/=") && C(!0);
|
|
405
|
+
var o = w, a = D();
|
|
411
406
|
switch (o) {
|
|
412
|
-
case
|
|
413
|
-
case
|
|
407
|
+
case gt:
|
|
408
|
+
case Zt:
|
|
414
409
|
S();
|
|
415
|
-
var l = o ===
|
|
416
|
-
|
|
417
|
-
for (var p = 0; p <
|
|
418
|
-
var E =
|
|
410
|
+
var l = o === gt;
|
|
411
|
+
T(z) || We() ? a.label = null : w !== ge ? K() : (a.label = Y(), ue());
|
|
412
|
+
for (var p = 0; p < R.length; ++p) {
|
|
413
|
+
var E = R[p];
|
|
419
414
|
if ((a.label === null || E.name === a.label.name) && (E.kind !== null && (l || E.kind === "loop") || a.label && l))
|
|
420
415
|
break;
|
|
421
416
|
}
|
|
422
|
-
return p ===
|
|
423
|
-
case Kt:
|
|
424
|
-
return S(), ue(), x(a, "DebuggerStatement");
|
|
417
|
+
return p === R.length && r(a.start, "Unsyntactic " + o.l), x(a, l ? "BreakStatement" : "ContinueStatement");
|
|
425
418
|
case zt:
|
|
426
|
-
return S(),
|
|
427
|
-
case
|
|
428
|
-
return S(),
|
|
429
|
-
case dt:
|
|
430
|
-
return S(), at(a, !0);
|
|
431
|
-
case tr:
|
|
432
|
-
return S(), a.test = Ce(), a.da = W(), a.alternate = I(Qt) ? W() : null, x(a, "IfStatement");
|
|
419
|
+
return S(), ue(), x(a, "DebuggerStatement");
|
|
420
|
+
case qt:
|
|
421
|
+
return S(), R.push(jt), a.body = W(), R.pop(), N(wt), a.test = ke(), ue(), x(a, "DoWhileStatement");
|
|
433
422
|
case rr:
|
|
434
|
-
return
|
|
435
|
-
case
|
|
436
|
-
|
|
437
|
-
w === yt || w === Zt ? (o = w === yt, p && x(p, "SwitchCase"), a.tb.push(p = b()), p.da = [], S(), o ? p.test = F() : (l && r(ft, "Multiple default clauses"), l = !0, p.test = null), N(Re)) : (p || J(), p.da.push(W()));
|
|
438
|
-
return p && x(p, "SwitchCase"), S(), M.pop(), x(a, "SwitchStatement");
|
|
423
|
+
return S(), R.push(jt), N(Z), w === z ? rt(a, null) : w === mt ? (o = D(), S(), Jt(o, !0), x(o, "VariableDeclaration"), o.fa.length === 1 && T(Ye) ? Ht(a, o) : rt(a, o)) : (o = _(!1, !0), T(Ye) ? (He(o), Ht(a, o)) : rt(a, o));
|
|
424
|
+
case yt:
|
|
425
|
+
return S(), st(a, !0);
|
|
439
426
|
case nr:
|
|
440
|
-
return S(),
|
|
427
|
+
return S(), a.test = ke(), a.da = W(), a.alternate = T(er) ? W() : null, x(a, "IfStatement");
|
|
441
428
|
case ir:
|
|
442
|
-
return
|
|
443
|
-
case
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
return
|
|
429
|
+
return Ie || j.Ib || r(M, "'return' outside of function"), S(), T(z) || We() ? a.K = null : (a.K = _(), ue()), x(a, "ReturnStatement");
|
|
430
|
+
case dt:
|
|
431
|
+
for (S(), a.Qb = ke(), a.tb = [], N(Ne), R.push($r); w !== ve; )
|
|
432
|
+
w === vt || w === Qt ? (o = w === vt, p && x(p, "SwitchCase"), a.tb.push(p = D()), p.da = [], S(), o ? p.test = _() : (l && r(pt, "Multiple default clauses"), l = !0, p.test = null), N(Re)) : (p || K(), p.da.push(W()));
|
|
433
|
+
return p && x(p, "SwitchCase"), S(), R.pop(), x(a, "SwitchStatement");
|
|
447
434
|
case or:
|
|
448
|
-
return
|
|
449
|
-
case
|
|
435
|
+
return S(), Ze.test(g.slice(oe, M)) && r(oe, "Illegal newline after throw"), a.K = _(), ue(), x(a, "ThrowStatement");
|
|
436
|
+
case sr:
|
|
437
|
+
return S(), a.block = Oe(), a.Ea = null, w === $t && (o = D(), S(), N(Z), o.Ua = Y(), V && $e(o.Ua.name) && r(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), N(H), o.body = Oe(), a.Ea = x(o, "CatchClause")), a.fb = T(tr) ? Oe() : null, a.Ea || a.fb || r(a.start, "Missing catch or finally clause"), x(a, "TryStatement");
|
|
438
|
+
case mt:
|
|
439
|
+
return S(), Jt(a), ue(), x(a, "VariableDeclaration");
|
|
440
|
+
case wt:
|
|
441
|
+
return S(), a.test = ke(), R.push(jt), a.body = W(), R.pop(), x(a, "WhileStatement");
|
|
442
|
+
case ar:
|
|
443
|
+
return V && r(M, "'with' in strict mode"), S(), a.object = ke(), a.body = W(), x(a, "WithStatement");
|
|
444
|
+
case Ne:
|
|
450
445
|
return Oe();
|
|
451
446
|
case z:
|
|
452
447
|
return S(), x(a, "EmptyStatement");
|
|
453
448
|
default:
|
|
454
|
-
if (l =
|
|
455
|
-
for (p = 0; p <
|
|
456
|
-
|
|
457
|
-
return
|
|
449
|
+
if (l = X, E = _(), o === ge && E.type === "Identifier" && T(Re)) {
|
|
450
|
+
for (p = 0; p < R.length; ++p)
|
|
451
|
+
R[p].name === l && r(E.start, "Label '" + l + "' is already declared");
|
|
452
|
+
return R.push({
|
|
458
453
|
name: l,
|
|
459
|
-
kind: w.W ? "loop" : w ===
|
|
460
|
-
}), a.body = W(),
|
|
454
|
+
kind: w.W ? "loop" : w === dt ? "switch" : null
|
|
455
|
+
}), a.body = W(), R.pop(), a.label = E, x(a, "LabeledStatement");
|
|
461
456
|
}
|
|
462
457
|
return a.la = E, ue(), x(a, "ExpressionStatement");
|
|
463
458
|
}
|
|
464
459
|
}
|
|
465
|
-
function
|
|
460
|
+
function ke() {
|
|
466
461
|
N(Z);
|
|
467
|
-
var o =
|
|
468
|
-
return N(
|
|
462
|
+
var o = _();
|
|
463
|
+
return N(H), o;
|
|
469
464
|
}
|
|
470
465
|
function Oe(o) {
|
|
471
|
-
var a =
|
|
472
|
-
for (a.body = [], N(
|
|
466
|
+
var a = D(), l = !0, p = !1;
|
|
467
|
+
for (a.body = [], N(Ne); !T(ve); ) {
|
|
473
468
|
var E = W();
|
|
474
|
-
if (a.body.push(E), l && o &&
|
|
469
|
+
if (a.body.push(E), l && o && tt(E)) {
|
|
475
470
|
var P = p;
|
|
476
|
-
|
|
471
|
+
Se(p = !0);
|
|
477
472
|
}
|
|
478
473
|
l = !1;
|
|
479
474
|
}
|
|
480
|
-
return p && !P &&
|
|
475
|
+
return p && !P && Se(!1), x(a, "BlockStatement");
|
|
481
476
|
}
|
|
482
|
-
function
|
|
483
|
-
return o.ua = a, N(z), o.test = w === z ? null :
|
|
477
|
+
function rt(o, a) {
|
|
478
|
+
return o.ua = a, N(z), o.test = w === z ? null : _(), N(z), o.update = w === H ? null : _(), N(H), o.body = W(), R.pop(), x(o, "ForStatement");
|
|
484
479
|
}
|
|
485
|
-
function
|
|
486
|
-
return o.left = a, o.right =
|
|
480
|
+
function Ht(o, a) {
|
|
481
|
+
return o.left = a, o.right = _(), N(H), o.body = W(), R.pop(), x(o, "ForInStatement");
|
|
487
482
|
}
|
|
488
|
-
function
|
|
483
|
+
function Jt(o, a) {
|
|
489
484
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
490
|
-
var l =
|
|
491
|
-
if (l.id = Y(),
|
|
485
|
+
var l = D();
|
|
486
|
+
if (l.id = Y(), V && $e(l.id.name) && r(l.id.start, "Binding " + l.id.name + " in strict mode"), l.ua = T(yr) ? _(!0, a) : null, o.fa.push(x(l, "VariableDeclarator")), !T(se))
|
|
492
487
|
break;
|
|
493
488
|
}
|
|
494
489
|
}
|
|
495
|
-
function
|
|
496
|
-
var l =
|
|
497
|
-
if (!o && w ===
|
|
498
|
-
for (o =
|
|
499
|
-
o.xb.push(
|
|
490
|
+
function _(o, a) {
|
|
491
|
+
var l = nt(a);
|
|
492
|
+
if (!o && w === se) {
|
|
493
|
+
for (o = ie(l), o.xb = [l]; T(se); )
|
|
494
|
+
o.xb.push(nt(a));
|
|
500
495
|
return x(o, "SequenceExpression");
|
|
501
496
|
}
|
|
502
497
|
return l;
|
|
503
498
|
}
|
|
504
|
-
function
|
|
505
|
-
var a = ot(
|
|
506
|
-
if (
|
|
507
|
-
var l =
|
|
508
|
-
l.test = a, l.da =
|
|
499
|
+
function nt(o) {
|
|
500
|
+
var a = it(ot(), -1, o);
|
|
501
|
+
if (T(gr)) {
|
|
502
|
+
var l = ie(a);
|
|
503
|
+
l.test = a, l.da = _(!0), N(Re), l.alternate = _(!0, o), a = x(l, "ConditionalExpression");
|
|
509
504
|
}
|
|
510
|
-
return w.Cb ? (l =
|
|
505
|
+
return w.Cb ? (l = ie(a), l.operator = X, l.left = a, S(), l.right = nt(o), He(a), x(l, "AssignmentExpression")) : a;
|
|
511
506
|
}
|
|
512
|
-
function
|
|
507
|
+
function it(o, a, l) {
|
|
513
508
|
var p = w.L;
|
|
514
|
-
if (p !== null && (!l || w !==
|
|
515
|
-
var E =
|
|
516
|
-
return E.left = o, E.operator =
|
|
509
|
+
if (p !== null && (!l || w !== Ye) && p > a) {
|
|
510
|
+
var E = ie(o);
|
|
511
|
+
return E.left = o, E.operator = X, o = w, S(), E.right = it(ot(), p, l), p = x(E, o === mr || o === wr ? "LogicalExpression" : "BinaryExpression"), it(p, a, l);
|
|
517
512
|
}
|
|
518
513
|
return o;
|
|
519
514
|
}
|
|
520
|
-
function
|
|
515
|
+
function ot() {
|
|
521
516
|
if (w.prefix) {
|
|
522
|
-
var o =
|
|
523
|
-
return o.operator =
|
|
517
|
+
var o = D(), a = w.$b;
|
|
518
|
+
return o.operator = X, Ae = o.prefix = !0, S(), o.K = ot(), a ? He(o.K) : V && o.operator === "delete" && o.K.type === "Identifier" && r(o.start, "Deleting local variable in strict mode"), x(o, a ? "UpdateExpression" : "UnaryExpression");
|
|
524
519
|
}
|
|
525
|
-
for (a =
|
|
526
|
-
o =
|
|
520
|
+
for (a = Ce(Je()); w.cc && !We(); )
|
|
521
|
+
o = ie(a), o.operator = X, o.prefix = !1, o.K = a, He(a), S(), a = x(o, "UpdateExpression");
|
|
527
522
|
return a;
|
|
528
523
|
}
|
|
529
|
-
function
|
|
530
|
-
if (
|
|
531
|
-
var l =
|
|
532
|
-
return l.object = o, l.Wa = Y(!0), l.bb = !1,
|
|
524
|
+
function Ce(o, a) {
|
|
525
|
+
if (T(hr)) {
|
|
526
|
+
var l = ie(o);
|
|
527
|
+
return l.object = o, l.Wa = Y(!0), l.bb = !1, Ce(x(l, "MemberExpression"), a);
|
|
533
528
|
}
|
|
534
|
-
return
|
|
529
|
+
return T(Et) ? (l = ie(o), l.object = o, l.Wa = _(), l.bb = !0, N(xt), Ce(x(l, "MemberExpression"), a)) : !a && T(Z) ? (l = ie(o), l.callee = o, l.arguments = at(H, !1), Ce(x(l, "CallExpression"), a)) : o;
|
|
535
530
|
}
|
|
536
|
-
function
|
|
531
|
+
function Je() {
|
|
537
532
|
switch (w) {
|
|
538
|
-
case
|
|
539
|
-
var o =
|
|
533
|
+
case lr:
|
|
534
|
+
var o = D();
|
|
540
535
|
return S(), x(o, "ThisExpression");
|
|
541
536
|
case ge:
|
|
542
537
|
return Y();
|
|
543
|
-
case
|
|
538
|
+
case Te:
|
|
544
539
|
case Ke:
|
|
545
|
-
case
|
|
546
|
-
return o =
|
|
547
|
-
case ur:
|
|
548
|
-
case lr:
|
|
540
|
+
case Yt:
|
|
541
|
+
return o = D(), o.value = X, o.raw = g.slice(M, he), S(), x(o, "Literal");
|
|
549
542
|
case cr:
|
|
550
|
-
|
|
543
|
+
case pr:
|
|
544
|
+
case fr:
|
|
545
|
+
return o = D(), o.value = w.$a, o.raw = w.l, S(), x(o, "Literal");
|
|
551
546
|
case Z:
|
|
552
|
-
o =
|
|
553
|
-
var a =
|
|
547
|
+
o = lt;
|
|
548
|
+
var a = M;
|
|
554
549
|
S();
|
|
555
|
-
var l =
|
|
556
|
-
return l.start = a, l.end = he, j.C && (l.X.start = o, l.X.end =
|
|
557
|
-
case
|
|
558
|
-
return o =
|
|
559
|
-
case
|
|
560
|
-
for (o =
|
|
550
|
+
var l = _();
|
|
551
|
+
return l.start = a, l.end = he, j.C && (l.X.start = o, l.X.end = ct), j.Xa && (l.j = [a, he]), N(H), l;
|
|
552
|
+
case Et:
|
|
553
|
+
return o = D(), S(), o.elements = at(xt, !0, !0), x(o, "ArrayExpression");
|
|
554
|
+
case Ne:
|
|
555
|
+
for (o = D(), a = !0, l = !1, o.h = [], S(); !T(ve); ) {
|
|
561
556
|
if (a)
|
|
562
557
|
a = !1;
|
|
563
|
-
else if (N(
|
|
558
|
+
else if (N(se), j.sb && T(ve))
|
|
564
559
|
break;
|
|
565
560
|
var p = {
|
|
566
|
-
key: w ===
|
|
561
|
+
key: w === Te || w === Ke ? Je() : Y(!0)
|
|
567
562
|
}, E = !1;
|
|
568
|
-
if (
|
|
569
|
-
p.value =
|
|
563
|
+
if (T(Re)) {
|
|
564
|
+
p.value = _(!0);
|
|
570
565
|
var P = p.kind = "init";
|
|
571
566
|
} else
|
|
572
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ?
|
|
573
|
-
if (p.key.type === "Identifier" && (
|
|
574
|
-
for (var
|
|
575
|
-
var de = o.h[
|
|
567
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? K() : (E = l = !0, P = p.kind = p.key.name, p.key = w === Te || w === Ke ? Je() : Y(!0), w !== Z && K(), p.value = st(D(), !1));
|
|
568
|
+
if (p.key.type === "Identifier" && (V || l))
|
|
569
|
+
for (var F = 0; F < o.h.length; ++F) {
|
|
570
|
+
var de = o.h[F];
|
|
576
571
|
if (de.key.name === p.key.name) {
|
|
577
|
-
var
|
|
578
|
-
|
|
572
|
+
var St = P === de.kind || E && de.kind === "init" || P === "init" && (de.kind === "get" || de.kind === "set");
|
|
573
|
+
St && !V && P === "init" && de.kind === "init" && (St = !1), St && r(p.key.start, "Redefinition of property");
|
|
579
574
|
}
|
|
580
575
|
}
|
|
581
576
|
o.h.push(p);
|
|
582
577
|
}
|
|
583
578
|
return x(o, "ObjectExpression");
|
|
584
|
-
case
|
|
585
|
-
return o =
|
|
586
|
-
case
|
|
587
|
-
return o =
|
|
579
|
+
case yt:
|
|
580
|
+
return o = D(), S(), st(o, !1);
|
|
581
|
+
case ur:
|
|
582
|
+
return o = D(), S(), o.callee = Ce(Je(), !0), o.arguments = T(Z) ? at(H, !1) : br, x(o, "NewExpression");
|
|
588
583
|
}
|
|
589
|
-
|
|
584
|
+
K();
|
|
590
585
|
}
|
|
591
|
-
function
|
|
592
|
-
w === ge ? o.id = Y() : a ?
|
|
586
|
+
function st(o, a) {
|
|
587
|
+
w === ge ? o.id = Y() : a ? K() : o.id = null, o.oa = [];
|
|
593
588
|
var l = !0;
|
|
594
|
-
for (N(Z); !
|
|
595
|
-
l ? l = !1 : N(
|
|
596
|
-
l =
|
|
597
|
-
var p =
|
|
598
|
-
if (
|
|
589
|
+
for (N(Z); !T(H); )
|
|
590
|
+
l ? l = !1 : N(se), o.oa.push(Y());
|
|
591
|
+
l = Ie;
|
|
592
|
+
var p = R;
|
|
593
|
+
if (Ie = !0, R = [], o.body = Oe(!0), Ie = l, R = p, V || o.body.body.length && tt(o.body.body[0])) {
|
|
599
594
|
for (l = o.id ? -1 : 0; l < o.oa.length; ++l)
|
|
600
|
-
if (p = 0 > l ? o.id : o.oa[l], (
|
|
595
|
+
if (p = 0 > l ? o.id : o.oa[l], (Er(p.name) || $e(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= l)
|
|
601
596
|
for (var E = 0; E < l; ++E)
|
|
602
597
|
p.name === o.oa[E].name && r(p.start, "Argument name clash in strict mode");
|
|
603
598
|
}
|
|
604
599
|
return x(o, a ? "FunctionDeclaration" : "FunctionExpression");
|
|
605
600
|
}
|
|
606
|
-
function
|
|
607
|
-
for (var p = [], E = !0; !
|
|
601
|
+
function at(o, a, l) {
|
|
602
|
+
for (var p = [], E = !0; !T(o); ) {
|
|
608
603
|
if (E)
|
|
609
604
|
E = !1;
|
|
610
|
-
else if (N(
|
|
605
|
+
else if (N(se), a && j.sb && T(o))
|
|
611
606
|
break;
|
|
612
|
-
p.push(l && w ===
|
|
607
|
+
p.push(l && w === se ? null : _(!0));
|
|
613
608
|
}
|
|
614
609
|
return p;
|
|
615
610
|
}
|
|
616
611
|
function Y(o) {
|
|
617
|
-
var a =
|
|
618
|
-
return o && j.yb === "everywhere" && (o = !1), w === ge ? (!o && (j.yb && Hr(
|
|
612
|
+
var a = D();
|
|
613
|
+
return o && j.yb === "everywhere" && (o = !1), w === ge ? (!o && (j.yb && Hr(X) || V && Er(X)) && g.slice(M, he).indexOf("\\") === -1 && r(M, "The keyword '" + X + "' is reserved"), a.name = X) : o && w.l ? a.name = w.l : K(), Ae = !1, S(), x(a, "Identifier");
|
|
619
614
|
}
|
|
620
615
|
e.version = "0.5.0";
|
|
621
|
-
var j, g = "", fe,
|
|
616
|
+
var j, g = "", fe, ut;
|
|
622
617
|
e.parse = function(o, a) {
|
|
623
618
|
g = String(o), fe = g.length, j = a || {};
|
|
624
|
-
for (var l in
|
|
625
|
-
Object.prototype.hasOwnProperty.call(j, l) || (j[l] =
|
|
626
|
-
for (
|
|
627
|
-
l = W(), o.body.push(l), a &&
|
|
619
|
+
for (var l in Kt)
|
|
620
|
+
Object.prototype.hasOwnProperty.call(j, l) || (j[l] = Kt[l]);
|
|
621
|
+
for (ut = j.sourceFile, le = 1, c = $ = 0, Ae = !0, y(), l = j.dc, pt = oe = c, j.C && (ft = new s()), Ie = V = !1, R = [], C(), o = l || D(), a = !0, l || (o.body = []); w !== ht; )
|
|
622
|
+
l = W(), o.body.push(l), a && tt(l) && Se(!0), a = !1;
|
|
628
623
|
return x(o, "Program");
|
|
629
624
|
};
|
|
630
|
-
var
|
|
625
|
+
var Kt = {
|
|
631
626
|
fc: !1,
|
|
632
627
|
sb: !0,
|
|
633
628
|
yb: !1,
|
|
@@ -638,110 +633,110 @@ var C, sn = function(e) {
|
|
|
638
633
|
dc: null,
|
|
639
634
|
sourceFile: null,
|
|
640
635
|
vb: null
|
|
641
|
-
}, c = 0,
|
|
636
|
+
}, c = 0, M = 0, he = 0, lt, ct, w, X, Ae, le, $, pt = 0, oe = 0, ft, Ie, R, V, br = [], Te = {
|
|
642
637
|
type: "num"
|
|
643
|
-
},
|
|
638
|
+
}, Yt = {
|
|
644
639
|
type: "regexp"
|
|
645
640
|
}, Ke = {
|
|
646
641
|
type: "string"
|
|
647
642
|
}, ge = {
|
|
648
643
|
type: "name"
|
|
649
|
-
},
|
|
644
|
+
}, ht = {
|
|
650
645
|
type: "eof"
|
|
651
|
-
},
|
|
646
|
+
}, gt = {
|
|
652
647
|
l: "break"
|
|
653
|
-
},
|
|
648
|
+
}, vt = {
|
|
654
649
|
l: "case",
|
|
655
650
|
m: !0
|
|
656
|
-
},
|
|
651
|
+
}, $t = {
|
|
657
652
|
l: "catch"
|
|
658
|
-
},
|
|
653
|
+
}, Zt = {
|
|
659
654
|
l: "continue"
|
|
660
|
-
},
|
|
655
|
+
}, zt = {
|
|
661
656
|
l: "debugger"
|
|
662
|
-
},
|
|
657
|
+
}, Qt = {
|
|
663
658
|
l: "default"
|
|
664
|
-
},
|
|
659
|
+
}, qt = {
|
|
665
660
|
l: "do",
|
|
666
661
|
W: !0
|
|
667
|
-
},
|
|
662
|
+
}, er = {
|
|
668
663
|
l: "else",
|
|
669
664
|
m: !0
|
|
670
|
-
},
|
|
665
|
+
}, tr = {
|
|
671
666
|
l: "finally"
|
|
672
|
-
},
|
|
667
|
+
}, rr = {
|
|
673
668
|
l: "for",
|
|
674
669
|
W: !0
|
|
675
|
-
},
|
|
670
|
+
}, yt = {
|
|
676
671
|
l: "function"
|
|
677
|
-
},
|
|
672
|
+
}, nr = {
|
|
678
673
|
l: "if"
|
|
679
|
-
},
|
|
674
|
+
}, ir = {
|
|
680
675
|
l: "return",
|
|
681
676
|
m: !0
|
|
682
|
-
},
|
|
677
|
+
}, dt = {
|
|
683
678
|
l: "switch"
|
|
684
|
-
},
|
|
679
|
+
}, or = {
|
|
685
680
|
l: "throw",
|
|
686
681
|
m: !0
|
|
687
|
-
},
|
|
682
|
+
}, sr = {
|
|
688
683
|
l: "try"
|
|
689
|
-
},
|
|
684
|
+
}, mt = {
|
|
690
685
|
l: "var"
|
|
691
|
-
},
|
|
686
|
+
}, wt = {
|
|
692
687
|
l: "while",
|
|
693
688
|
W: !0
|
|
694
|
-
},
|
|
689
|
+
}, ar = {
|
|
695
690
|
l: "with"
|
|
696
|
-
},
|
|
691
|
+
}, ur = {
|
|
697
692
|
l: "new",
|
|
698
693
|
m: !0
|
|
699
|
-
},
|
|
694
|
+
}, lr = {
|
|
700
695
|
l: "this"
|
|
701
|
-
},
|
|
696
|
+
}, cr = {
|
|
702
697
|
l: "null",
|
|
703
698
|
$a: null
|
|
704
|
-
},
|
|
699
|
+
}, pr = {
|
|
705
700
|
l: "true",
|
|
706
701
|
$a: !0
|
|
707
|
-
},
|
|
702
|
+
}, fr = {
|
|
708
703
|
l: "false",
|
|
709
704
|
$a: !1
|
|
710
|
-
},
|
|
705
|
+
}, Ye = {
|
|
711
706
|
l: "in",
|
|
712
707
|
L: 7,
|
|
713
708
|
m: !0
|
|
714
|
-
},
|
|
715
|
-
break:
|
|
716
|
-
case:
|
|
717
|
-
catch:
|
|
718
|
-
continue:
|
|
719
|
-
debugger:
|
|
720
|
-
default:
|
|
721
|
-
do:
|
|
722
|
-
else:
|
|
723
|
-
finally:
|
|
724
|
-
for:
|
|
725
|
-
function:
|
|
726
|
-
if:
|
|
727
|
-
return:
|
|
728
|
-
switch:
|
|
729
|
-
throw:
|
|
730
|
-
try:
|
|
731
|
-
var:
|
|
732
|
-
while:
|
|
733
|
-
with:
|
|
734
|
-
null:
|
|
735
|
-
true:
|
|
736
|
-
false:
|
|
737
|
-
new:
|
|
738
|
-
in:
|
|
709
|
+
}, Dr = {
|
|
710
|
+
break: gt,
|
|
711
|
+
case: vt,
|
|
712
|
+
catch: $t,
|
|
713
|
+
continue: Zt,
|
|
714
|
+
debugger: zt,
|
|
715
|
+
default: Qt,
|
|
716
|
+
do: qt,
|
|
717
|
+
else: er,
|
|
718
|
+
finally: tr,
|
|
719
|
+
for: rr,
|
|
720
|
+
function: yt,
|
|
721
|
+
if: nr,
|
|
722
|
+
return: ir,
|
|
723
|
+
switch: dt,
|
|
724
|
+
throw: or,
|
|
725
|
+
try: sr,
|
|
726
|
+
var: mt,
|
|
727
|
+
while: wt,
|
|
728
|
+
with: ar,
|
|
729
|
+
null: cr,
|
|
730
|
+
true: pr,
|
|
731
|
+
false: fr,
|
|
732
|
+
new: ur,
|
|
733
|
+
in: Ye,
|
|
739
734
|
instanceof: {
|
|
740
735
|
l: "instanceof",
|
|
741
736
|
L: 7,
|
|
742
737
|
m: !0
|
|
743
738
|
},
|
|
744
|
-
this:
|
|
739
|
+
this: lr,
|
|
745
740
|
typeof: {
|
|
746
741
|
l: "typeof",
|
|
747
742
|
prefix: !0,
|
|
@@ -757,12 +752,12 @@ var C, sn = function(e) {
|
|
|
757
752
|
prefix: !0,
|
|
758
753
|
m: !0
|
|
759
754
|
}
|
|
760
|
-
},
|
|
755
|
+
}, Et = {
|
|
761
756
|
type: "[",
|
|
762
757
|
m: !0
|
|
763
|
-
},
|
|
758
|
+
}, xt = {
|
|
764
759
|
type: "]"
|
|
765
|
-
},
|
|
760
|
+
}, Ne = {
|
|
766
761
|
type: "{",
|
|
767
762
|
m: !0
|
|
768
763
|
}, ve = {
|
|
@@ -770,9 +765,9 @@ var C, sn = function(e) {
|
|
|
770
765
|
}, Z = {
|
|
771
766
|
type: "(",
|
|
772
767
|
m: !0
|
|
773
|
-
},
|
|
768
|
+
}, H = {
|
|
774
769
|
type: ")"
|
|
775
|
-
},
|
|
770
|
+
}, se = {
|
|
776
771
|
type: ",",
|
|
777
772
|
m: !0
|
|
778
773
|
}, z = {
|
|
@@ -781,40 +776,40 @@ var C, sn = function(e) {
|
|
|
781
776
|
}, Re = {
|
|
782
777
|
type: ":",
|
|
783
778
|
m: !0
|
|
784
|
-
},
|
|
779
|
+
}, hr = {
|
|
785
780
|
type: "."
|
|
786
|
-
},
|
|
781
|
+
}, gr = {
|
|
787
782
|
type: "?",
|
|
788
783
|
m: !0
|
|
789
|
-
},
|
|
784
|
+
}, vr = {
|
|
790
785
|
L: 10,
|
|
791
786
|
m: !0
|
|
792
|
-
},
|
|
787
|
+
}, yr = {
|
|
793
788
|
Cb: !0,
|
|
794
789
|
m: !0
|
|
795
790
|
}, ce = {
|
|
796
791
|
Cb: !0,
|
|
797
792
|
m: !0
|
|
798
|
-
},
|
|
793
|
+
}, Ur = {
|
|
799
794
|
cc: !0,
|
|
800
795
|
prefix: !0,
|
|
801
796
|
$b: !0
|
|
802
|
-
},
|
|
797
|
+
}, dr = {
|
|
803
798
|
prefix: !0,
|
|
804
799
|
m: !0
|
|
805
|
-
},
|
|
800
|
+
}, mr = {
|
|
806
801
|
L: 1,
|
|
807
802
|
m: !0
|
|
808
|
-
},
|
|
803
|
+
}, wr = {
|
|
809
804
|
L: 2,
|
|
810
805
|
m: !0
|
|
811
|
-
},
|
|
806
|
+
}, _r = {
|
|
812
807
|
L: 3,
|
|
813
808
|
m: !0
|
|
814
|
-
},
|
|
809
|
+
}, Fr = {
|
|
815
810
|
L: 4,
|
|
816
811
|
m: !0
|
|
817
|
-
},
|
|
812
|
+
}, Lr = {
|
|
818
813
|
L: 5,
|
|
819
814
|
m: !0
|
|
820
815
|
}, Br = {
|
|
@@ -833,13 +828,13 @@ var C, sn = function(e) {
|
|
|
833
828
|
}, Wr = {
|
|
834
829
|
L: 10,
|
|
835
830
|
m: !0
|
|
836
|
-
}, Hr = i("class enum extends super const export import"),
|
|
831
|
+
}, Hr = i("class enum extends super const export import"), Er = i("implements interface let package private protected public static yield"), $e = i("eval arguments"), Jr = i("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"), Kr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, xr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Yr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), Ze = /[\n\r\u2028\u2029]/, ze = /\r\n|[\n\r\u2028\u2029]/g, ye, jt = {
|
|
837
832
|
kind: "loop"
|
|
838
|
-
},
|
|
833
|
+
}, $r = {
|
|
839
834
|
kind: "switch"
|
|
840
835
|
};
|
|
841
|
-
},
|
|
842
|
-
|
|
836
|
+
}, At = At = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
837
|
+
on(At.j || (At.j = {}));
|
|
843
838
|
function f(e, t) {
|
|
844
839
|
typeof e == "string" && (e = Ee(e, "code"));
|
|
845
840
|
var n = e.constructor;
|
|
@@ -855,10 +850,10 @@ function f(e, t) {
|
|
|
855
850
|
var s, u;
|
|
856
851
|
for (u in this)
|
|
857
852
|
typeof this[u] == "function" && (s = u.match(e)) && (this.rb[s[1]] = this[u].bind(this));
|
|
858
|
-
this.N =
|
|
859
|
-
`), "polyfills"), this.ba = void 0,
|
|
853
|
+
this.N = Tt(this, this.ra, null), this.Na = this.N.object, this.ra = Ee(this.ba.join(`
|
|
854
|
+
`), "polyfills"), this.ba = void 0, Qe(this.ra), s = new d(this.ra, this.N), s.done = !1, this.o = [s], this.Eb(), this.value = void 0, this.ra = r, s = new d(this.ra, this.N), s.done = !1, this.o.length = 0, this.o[0] = s;
|
|
860
855
|
}
|
|
861
|
-
var
|
|
856
|
+
var jr = {
|
|
862
857
|
C: !0,
|
|
863
858
|
kc: 5
|
|
864
859
|
}, Mt = {
|
|
@@ -873,11 +868,11 @@ var Er = {
|
|
|
873
868
|
configurable: !0,
|
|
874
869
|
enumerable: !1,
|
|
875
870
|
writable: !1
|
|
876
|
-
},
|
|
871
|
+
}, Me = {
|
|
877
872
|
configurable: !1,
|
|
878
873
|
enumerable: !1,
|
|
879
874
|
writable: !1
|
|
880
|
-
},
|
|
875
|
+
}, Sr = {
|
|
881
876
|
configurable: !1,
|
|
882
877
|
enumerable: !0,
|
|
883
878
|
writable: !0
|
|
@@ -885,50 +880,50 @@ var Er = {
|
|
|
885
880
|
STEP_ERROR: !0
|
|
886
881
|
}, je = {
|
|
887
882
|
SCOPE_REFERENCE: !0
|
|
888
|
-
},
|
|
883
|
+
}, Le = {
|
|
889
884
|
VALUE_IN_DESCRIPTOR: !0
|
|
890
885
|
}, me = {
|
|
891
886
|
REGEXP_TIMEOUT: !0
|
|
892
|
-
},
|
|
893
|
-
function
|
|
887
|
+
}, kr = [], ee = null, _e = null, ae = typeof globalThis == "undefined" ? void 0 : globalThis, sn = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
|
|
888
|
+
function Pt(e) {
|
|
894
889
|
var t = e >>> 0;
|
|
895
890
|
return t === Number(e) ? t : NaN;
|
|
896
891
|
}
|
|
897
|
-
function
|
|
892
|
+
function Fe(e) {
|
|
898
893
|
var t = e >>> 0;
|
|
899
894
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
900
895
|
}
|
|
901
|
-
function
|
|
896
|
+
function Qe(e, t, n) {
|
|
902
897
|
t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
|
|
903
898
|
for (var r in e)
|
|
904
899
|
if (r !== "loc" && e.hasOwnProperty(r)) {
|
|
905
900
|
var i = e[r];
|
|
906
|
-
i && typeof i == "object" &&
|
|
901
|
+
i && typeof i == "object" && Qe(i, t, n);
|
|
907
902
|
}
|
|
908
903
|
}
|
|
909
904
|
f.prototype.REGEXP_MODE = 2;
|
|
910
905
|
f.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
911
906
|
f.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
907
|
+
O = f.prototype;
|
|
908
|
+
O.P = !1;
|
|
909
|
+
O.Ka = !1;
|
|
910
|
+
O.Kb = 0;
|
|
911
|
+
O.ic = 0;
|
|
917
912
|
function Ee(e, t) {
|
|
918
913
|
var n = {}, r;
|
|
919
|
-
for (r in
|
|
920
|
-
n[r] =
|
|
921
|
-
return n.sourceFile = t,
|
|
914
|
+
for (r in jr)
|
|
915
|
+
n[r] = jr[r];
|
|
916
|
+
return n.sourceFile = t, ae.j.parse(e, n);
|
|
922
917
|
}
|
|
923
|
-
|
|
918
|
+
O.Jb = function(e) {
|
|
924
919
|
var t = this.o[0];
|
|
925
920
|
if (!t || t.node.type !== "Program")
|
|
926
921
|
throw Error("Expecting original AST to start with a Program node");
|
|
927
922
|
if (typeof e == "string" && (e = Ee(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
928
923
|
throw Error("Expecting new AST to start with a Program node");
|
|
929
|
-
|
|
924
|
+
Be(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
930
925
|
};
|
|
931
|
-
|
|
926
|
+
O.lb = function() {
|
|
932
927
|
var e = this.o, t;
|
|
933
928
|
do {
|
|
934
929
|
var n = e[e.length - 1];
|
|
@@ -940,23 +935,23 @@ C.lb = function() {
|
|
|
940
935
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
941
936
|
n = null;
|
|
942
937
|
else {
|
|
943
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
944
|
-
var r = new
|
|
938
|
+
this.ca.shift(), 0 <= n.interval && Mr(this, n, n.interval);
|
|
939
|
+
var r = new d(n.node, n.scope);
|
|
945
940
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
946
941
|
}
|
|
947
942
|
if (!n)
|
|
948
943
|
break;
|
|
949
944
|
}
|
|
950
945
|
r = n.node;
|
|
951
|
-
var i =
|
|
952
|
-
|
|
946
|
+
var i = _e;
|
|
947
|
+
_e = this;
|
|
953
948
|
try {
|
|
954
949
|
var s = this.rb[r.type](e, n, r);
|
|
955
950
|
} catch (u) {
|
|
956
951
|
if (u !== Tr)
|
|
957
952
|
throw this.value !== u && (this.value = void 0), u;
|
|
958
953
|
} finally {
|
|
959
|
-
|
|
954
|
+
_e = i;
|
|
960
955
|
}
|
|
961
956
|
if (s && e.push(s), this.P)
|
|
962
957
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -966,13 +961,13 @@ C.lb = function() {
|
|
|
966
961
|
} while (!r.end && t > Date.now());
|
|
967
962
|
return !0;
|
|
968
963
|
};
|
|
969
|
-
|
|
964
|
+
O.Eb = function() {
|
|
970
965
|
for (; !this.za && this.lb(); )
|
|
971
966
|
;
|
|
972
967
|
return this.za;
|
|
973
968
|
};
|
|
974
|
-
function
|
|
975
|
-
e.g(t, "NaN", NaN,
|
|
969
|
+
function an(e, t) {
|
|
970
|
+
e.g(t, "NaN", NaN, Me), e.g(t, "Infinity", 1 / 0, Me), e.g(t, "undefined", void 0, Me), e.g(t, "window", t, Mt), e.g(t, "this", t, Me), e.g(t, "self", t), e.M = new k(null), e.Z = new k(e.M), un(e, t), ln(e, t), t.xa = e.M, e.g(t, "constructor", e.v, v), cn(e, t), pn(e, t), fn(e, t), hn(e, t), gn(e, t), vn(e, t), yn(e, t), dn(e, t), mn(e, t);
|
|
976
971
|
var n = e.i(function() {
|
|
977
972
|
throw EvalError("Can't happen");
|
|
978
973
|
}, !1);
|
|
@@ -983,58 +978,58 @@ function un(e, t) {
|
|
|
983
978
|
try {
|
|
984
979
|
return s(u);
|
|
985
980
|
} catch (h) {
|
|
986
|
-
|
|
981
|
+
m(e, e.Gb, h.message);
|
|
987
982
|
}
|
|
988
983
|
};
|
|
989
984
|
}(r[i][0]), e.g(t, r[i][1], e.i(n, !1), v);
|
|
990
985
|
n = function(s) {
|
|
991
|
-
return
|
|
986
|
+
return Or(e, !1, arguments);
|
|
992
987
|
}, e.g(t, "setTimeout", e.i(n, !1), v), n = function(s) {
|
|
993
|
-
return
|
|
988
|
+
return Or(e, !0, arguments);
|
|
994
989
|
}, e.g(t, "setInterval", e.i(n, !1), v), n = function(s) {
|
|
995
|
-
|
|
990
|
+
Cr(e, s);
|
|
996
991
|
}, e.g(t, "clearTimeout", e.i(n, !1), v), n = function(s) {
|
|
997
|
-
|
|
992
|
+
Cr(e, s);
|
|
998
993
|
}, e.g(t, "clearInterval", e.i(n, !1), v), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
999
994
|
}
|
|
1000
|
-
|
|
1001
|
-
function
|
|
995
|
+
O.Wb = 0;
|
|
996
|
+
function un(e, t) {
|
|
1002
997
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(i) {
|
|
1003
998
|
var s = arguments.length ? String(arguments[arguments.length - 1]) : "", u = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1004
999
|
if (u) {
|
|
1005
1000
|
u = u.split(/\s*,\s*/);
|
|
1006
1001
|
for (var h = 0; h < u.length; h++) {
|
|
1007
|
-
var
|
|
1008
|
-
n.test(
|
|
1002
|
+
var y = u[h];
|
|
1003
|
+
n.test(y) || m(e, e.T, "Invalid function argument: " + y);
|
|
1009
1004
|
}
|
|
1010
1005
|
u = u.join(", ");
|
|
1011
1006
|
}
|
|
1012
1007
|
try {
|
|
1013
|
-
var
|
|
1014
|
-
} catch (
|
|
1015
|
-
|
|
1008
|
+
var I = Ee("(function(" + u + ") {" + s + "})", "function" + e.Wb++);
|
|
1009
|
+
} catch (C) {
|
|
1010
|
+
m(e, e.T, "Invalid code: " + C.message);
|
|
1016
1011
|
}
|
|
1017
|
-
return
|
|
1012
|
+
return I.body.length !== 1 && m(e, e.T, "Invalid code in function body"), Ut(e, I.body[0].la, e.N, "anonymous");
|
|
1018
1013
|
};
|
|
1019
1014
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, v), e.g(e.O, "prototype", e.Z, v), e.g(e.Z, "constructor", e.O, v), e.Z.Ta = function() {
|
|
1020
1015
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, B), e.Z.H = "Function", r = function(i, s) {
|
|
1021
1016
|
var u = e.o[e.o.length - 1];
|
|
1022
|
-
u.U = this, u.B = i, u.F = [], s != null && (s instanceof k ? u.F = Nr(e, s) :
|
|
1023
|
-
},
|
|
1017
|
+
u.U = this, u.B = i, u.F = [], s != null && (s instanceof k ? u.F = Nr(e, s) : m(e, e.j, "CreateListFromArrayLike called on non-object")), u.eb = !1;
|
|
1018
|
+
}, b(e, e.O, "apply", r), r = function(i) {
|
|
1024
1019
|
var s = e.o[e.o.length - 1];
|
|
1025
1020
|
s.U = this, s.B = i, s.F = [];
|
|
1026
1021
|
for (var u = 1; u < arguments.length; u++)
|
|
1027
1022
|
s.F.push(arguments[u]);
|
|
1028
1023
|
s.eb = !1;
|
|
1029
|
-
},
|
|
1024
|
+
}, b(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
|
|
1030
1025
|
return String(this);
|
|
1031
|
-
},
|
|
1026
|
+
}, b(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), v), r = function() {
|
|
1032
1027
|
return this.valueOf();
|
|
1033
|
-
},
|
|
1028
|
+
}, b(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), v);
|
|
1034
1029
|
}
|
|
1035
|
-
function
|
|
1030
|
+
function ln(e, t) {
|
|
1036
1031
|
function n(i) {
|
|
1037
|
-
i != null ||
|
|
1032
|
+
i != null || m(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1038
1033
|
}
|
|
1039
1034
|
var r = function(i) {
|
|
1040
1035
|
if (i == null)
|
|
@@ -1050,11 +1045,11 @@ function cn(e, t) {
|
|
|
1050
1045
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), v), r = function(i) {
|
|
1051
1046
|
return n(i), i instanceof k && (i = i.h), q(e, Object.keys(i));
|
|
1052
1047
|
}, e.g(e.v, "keys", e.i(r, !1), v), r = function(i) {
|
|
1053
|
-
return i === null ? e.s(null) : (i instanceof k ||
|
|
1048
|
+
return i === null ? e.s(null) : (i instanceof k || m(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1054
1049
|
}, e.g(e.v, "create", e.i(r, !1), v), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(i, s, u) {
|
|
1055
|
-
return s = String(s), i instanceof k ||
|
|
1050
|
+
return s = String(s), i instanceof k || m(e, e.j, "Object.defineProperty called on non-object: " + i), u instanceof k || m(e, e.j, "Property description must be an object"), !i.preventExtensions || s in i.h || m(e, e.j, "Can't define property '" + s + "', object is not extensible"), e.g(i, s, Le, u.h), i;
|
|
1056
1051
|
}, e.g(e.v, "defineProperty", e.i(r, !1), v), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(i, s) {
|
|
1057
|
-
if (i instanceof k ||
|
|
1052
|
+
if (i instanceof k || m(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), s = String(s), s in i.h) {
|
|
1058
1053
|
var u = Object.getOwnPropertyDescriptor(i.h, s), h = i.V[s];
|
|
1059
1054
|
return i = i.Y[s], s = e.s(e.M), h || i ? (e.g(s, "get", h), e.g(s, "set", i)) : (e.g(s, "value", u.value), e.g(s, "writable", u.writable)), e.g(s, "configurable", u.configurable), e.g(s, "enumerable", u.enumerable), s;
|
|
1060
1055
|
}
|
|
@@ -1064,24 +1059,24 @@ function cn(e, t) {
|
|
|
1064
1059
|
return !!i && !i.preventExtensions;
|
|
1065
1060
|
}, e.g(e.v, "isExtensible", e.i(r, !1), v), r = function(i) {
|
|
1066
1061
|
return i instanceof k && (i.preventExtensions = !0), i;
|
|
1067
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), v),
|
|
1062
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), v), b(e, e.v, "toString", k.prototype.toString), b(e, e.v, "toLocaleString", k.prototype.toString), b(e, e.v, "valueOf", k.prototype.valueOf), r = function(i) {
|
|
1068
1063
|
return n(this), this instanceof k ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1069
|
-
},
|
|
1064
|
+
}, b(e, e.v, "hasOwnProperty", r), r = function(i) {
|
|
1070
1065
|
return n(this), this instanceof k ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1071
|
-
},
|
|
1066
|
+
}, b(e, e.v, "propertyIsEnumerable", r), r = function(i) {
|
|
1072
1067
|
for (; ; ) {
|
|
1073
1068
|
if (i = te(e, i), !i)
|
|
1074
1069
|
return !1;
|
|
1075
1070
|
if (i === this)
|
|
1076
1071
|
return !0;
|
|
1077
1072
|
}
|
|
1078
|
-
},
|
|
1073
|
+
}, b(e, e.v, "isPrototypeOf", r);
|
|
1079
1074
|
}
|
|
1080
|
-
function
|
|
1075
|
+
function cn(e, t) {
|
|
1081
1076
|
var n = function(r) {
|
|
1082
1077
|
var i = re(e) ? this : xe(e), s = arguments[0];
|
|
1083
1078
|
if (arguments.length === 1 && typeof s == "number")
|
|
1084
|
-
isNaN(
|
|
1079
|
+
isNaN(Pt(s)) && m(e, e.ob, "Invalid array length: " + s), i.h.length = s;
|
|
1085
1080
|
else {
|
|
1086
1081
|
for (s = 0; s < arguments.length; s++)
|
|
1087
1082
|
i.h[s] = arguments[s];
|
|
@@ -1097,208 +1092,208 @@ function pn(e, t) {
|
|
|
1097
1092
|
writable: !0
|
|
1098
1093
|
}), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
|
|
1099
1094
|
}
|
|
1100
|
-
function
|
|
1095
|
+
function pn(e, t) {
|
|
1101
1096
|
var n = function(r) {
|
|
1102
|
-
return r = arguments.length ?
|
|
1097
|
+
return r = arguments.length ? ae.String(r) : "", re(e) ? (this.data = r, this) : r;
|
|
1103
1098
|
};
|
|
1104
1099
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, v), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), v), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1105
|
-
|
|
1100
|
+
b(e, e.J, t[n], String.prototype[t[n]]);
|
|
1106
1101
|
n = function(r, i, s) {
|
|
1107
1102
|
i = e.R(i), s = e.R(s);
|
|
1108
1103
|
try {
|
|
1109
1104
|
return String(this).localeCompare(r, i, s);
|
|
1110
1105
|
} catch (u) {
|
|
1111
|
-
|
|
1106
|
+
m(e, e.D, "localeCompare: " + u.message);
|
|
1112
1107
|
}
|
|
1113
|
-
},
|
|
1108
|
+
}, b(e, e.J, "localeCompare", n), n = function(r, i, s) {
|
|
1114
1109
|
var u = String(this);
|
|
1115
|
-
if (i = i ? Number(i) : void 0,
|
|
1110
|
+
if (i = i ? Number(i) : void 0, U(e, r, e.I) && (r = r.data, be(e, r, s), e.REGEXP_MODE === 2)) {
|
|
1116
1111
|
if (ee)
|
|
1117
|
-
r =
|
|
1112
|
+
r = Pe(e, "string.split(separator, limit)", {
|
|
1118
1113
|
string: u,
|
|
1119
1114
|
separator: r,
|
|
1120
1115
|
limit: i
|
|
1121
1116
|
}, r, s), r !== me && s(q(e, r));
|
|
1122
1117
|
else {
|
|
1123
|
-
var h = e.ha(),
|
|
1124
|
-
h.onmessage = function(
|
|
1125
|
-
clearTimeout(
|
|
1118
|
+
var h = e.ha(), y = De(e, r, h, s);
|
|
1119
|
+
h.onmessage = function(I) {
|
|
1120
|
+
clearTimeout(y), s(q(e, I.data));
|
|
1126
1121
|
}, h.postMessage(["split", u, r, i]);
|
|
1127
1122
|
}
|
|
1128
1123
|
return;
|
|
1129
1124
|
}
|
|
1130
1125
|
r = u.split(r, i), s(q(e, r));
|
|
1131
|
-
},
|
|
1126
|
+
}, Ue(e, e.J, "split", n), n = function(r, i) {
|
|
1132
1127
|
var s = String(this);
|
|
1133
|
-
if (r =
|
|
1128
|
+
if (r = U(e, r, e.I) ? r.data : new RegExp(r), be(e, r, i), e.REGEXP_MODE === 2)
|
|
1134
1129
|
if (ee)
|
|
1135
|
-
r =
|
|
1130
|
+
r = Pe(e, "string.match(regexp)", {
|
|
1136
1131
|
string: s,
|
|
1137
1132
|
regexp: r
|
|
1138
1133
|
}, r, i), r !== me && i(r && q(e, r));
|
|
1139
1134
|
else {
|
|
1140
1135
|
var u = e.ha(), h = De(e, r, u, i);
|
|
1141
|
-
u.onmessage = function(
|
|
1142
|
-
clearTimeout(h), i(
|
|
1136
|
+
u.onmessage = function(y) {
|
|
1137
|
+
clearTimeout(h), i(y.data && q(e, y.data));
|
|
1143
1138
|
}, u.postMessage(["match", s, r]);
|
|
1144
1139
|
}
|
|
1145
1140
|
else
|
|
1146
1141
|
r = s.match(r), i(r && q(e, r));
|
|
1147
|
-
},
|
|
1142
|
+
}, Ue(e, e.J, "match", n), n = function(r, i) {
|
|
1148
1143
|
var s = String(this);
|
|
1149
|
-
if (
|
|
1144
|
+
if (U(e, r, e.I) ? r = r.data : r = new RegExp(r), be(e, r, i), e.REGEXP_MODE === 2)
|
|
1150
1145
|
if (ee)
|
|
1151
|
-
r =
|
|
1146
|
+
r = Pe(e, "string.search(regexp)", {
|
|
1152
1147
|
string: s,
|
|
1153
1148
|
regexp: r
|
|
1154
1149
|
}, r, i), r !== me && i(r);
|
|
1155
1150
|
else {
|
|
1156
1151
|
var u = e.ha(), h = De(e, r, u, i);
|
|
1157
|
-
u.onmessage = function(
|
|
1158
|
-
clearTimeout(h), i(
|
|
1152
|
+
u.onmessage = function(y) {
|
|
1153
|
+
clearTimeout(h), i(y.data);
|
|
1159
1154
|
}, u.postMessage(["search", s, r]);
|
|
1160
1155
|
}
|
|
1161
1156
|
else
|
|
1162
1157
|
i(s.search(r));
|
|
1163
|
-
},
|
|
1158
|
+
}, Ue(e, e.J, "search", n), n = function(r, i, s) {
|
|
1164
1159
|
var u = String(this);
|
|
1165
|
-
if (i = String(i),
|
|
1160
|
+
if (i = String(i), U(e, r, e.I) && (r = r.data, be(e, r, s), e.REGEXP_MODE === 2)) {
|
|
1166
1161
|
if (ee)
|
|
1167
|
-
r =
|
|
1162
|
+
r = Pe(e, "string.replace(substr, newSubstr)", {
|
|
1168
1163
|
string: u,
|
|
1169
1164
|
substr: r,
|
|
1170
1165
|
newSubstr: i
|
|
1171
1166
|
}, r, s), r !== me && s(r);
|
|
1172
1167
|
else {
|
|
1173
|
-
var h = e.ha(),
|
|
1174
|
-
h.onmessage = function(
|
|
1175
|
-
clearTimeout(
|
|
1168
|
+
var h = e.ha(), y = De(e, r, h, s);
|
|
1169
|
+
h.onmessage = function(I) {
|
|
1170
|
+
clearTimeout(y), s(I.data);
|
|
1176
1171
|
}, h.postMessage(["replace", u, r, i]);
|
|
1177
1172
|
}
|
|
1178
1173
|
return;
|
|
1179
1174
|
}
|
|
1180
1175
|
s(u.replace(r, i));
|
|
1181
|
-
},
|
|
1176
|
+
}, Ue(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1182
1177
|
}
|
|
1183
|
-
function
|
|
1178
|
+
function fn(e, t) {
|
|
1184
1179
|
e.mb = e.i(function(n) {
|
|
1185
|
-
return n =
|
|
1180
|
+
return n = ae.Boolean(n), re(e) ? (this.data = n, this) : n;
|
|
1186
1181
|
}, !0), e.g(t, "Boolean", e.mb, v);
|
|
1187
1182
|
}
|
|
1188
|
-
function
|
|
1183
|
+
function hn(e, t) {
|
|
1189
1184
|
var n = function(r) {
|
|
1190
|
-
return r = arguments.length ?
|
|
1185
|
+
return r = arguments.length ? ae.Number(r) : 0, re(e) ? (this.data = r, this) : r;
|
|
1191
1186
|
};
|
|
1192
1187
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, v), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1193
|
-
e.g(e.aa, t[n], Number[t[n]],
|
|
1188
|
+
e.g(e.aa, t[n], Number[t[n]], Me);
|
|
1194
1189
|
n = function(r) {
|
|
1195
1190
|
try {
|
|
1196
1191
|
return Number(this).toExponential(r);
|
|
1197
1192
|
} catch (i) {
|
|
1198
|
-
|
|
1193
|
+
m(e, e.D, i.message);
|
|
1199
1194
|
}
|
|
1200
|
-
},
|
|
1195
|
+
}, b(e, e.aa, "toExponential", n), n = function(r) {
|
|
1201
1196
|
try {
|
|
1202
1197
|
return Number(this).toFixed(r);
|
|
1203
1198
|
} catch (i) {
|
|
1204
|
-
|
|
1199
|
+
m(e, e.D, i.message);
|
|
1205
1200
|
}
|
|
1206
|
-
},
|
|
1201
|
+
}, b(e, e.aa, "toFixed", n), n = function(r) {
|
|
1207
1202
|
try {
|
|
1208
1203
|
return Number(this).toPrecision(r);
|
|
1209
1204
|
} catch (i) {
|
|
1210
|
-
|
|
1205
|
+
m(e, e.D, i.message);
|
|
1211
1206
|
}
|
|
1212
|
-
},
|
|
1207
|
+
}, b(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1213
1208
|
try {
|
|
1214
1209
|
return Number(this).toString(r);
|
|
1215
1210
|
} catch (i) {
|
|
1216
|
-
|
|
1211
|
+
m(e, e.D, i.message);
|
|
1217
1212
|
}
|
|
1218
|
-
},
|
|
1213
|
+
}, b(e, e.aa, "toString", n), n = function(r, i) {
|
|
1219
1214
|
r = r ? e.R(r) : void 0, i = i ? e.R(i) : void 0;
|
|
1220
1215
|
try {
|
|
1221
1216
|
return Number(this).toLocaleString(r, i);
|
|
1222
1217
|
} catch (s) {
|
|
1223
|
-
|
|
1218
|
+
m(e, e.D, "toLocaleString: " + s.message);
|
|
1224
1219
|
}
|
|
1225
|
-
},
|
|
1220
|
+
}, b(e, e.aa, "toLocaleString", n);
|
|
1226
1221
|
}
|
|
1227
|
-
function
|
|
1222
|
+
function gn(e, t) {
|
|
1228
1223
|
var n = function(i, s) {
|
|
1229
1224
|
if (!re(e))
|
|
1230
|
-
return
|
|
1225
|
+
return ae.Date();
|
|
1231
1226
|
var u = [null].concat(Array.from(arguments));
|
|
1232
|
-
return this.data = new (Function.prototype.bind.apply(
|
|
1227
|
+
return this.data = new (Function.prototype.bind.apply(ae.Date, u))(), this;
|
|
1233
1228
|
};
|
|
1234
1229
|
e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, v), e.g(e.$, "now", e.i(Date.now, !1), v), e.g(e.$, "parse", e.i(Date.parse, !1), v), e.g(e.$, "UTC", e.i(Date.UTC, !1), v), t = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
|
|
1235
1230
|
for (var r = 0; r < t.length; r++)
|
|
1236
1231
|
n = function(i) {
|
|
1237
1232
|
return function(s) {
|
|
1238
1233
|
var u = this.data;
|
|
1239
|
-
u instanceof Date ||
|
|
1240
|
-
for (var h = [],
|
|
1241
|
-
h[
|
|
1234
|
+
u instanceof Date || m(e, e.j, i + " not called on a Date");
|
|
1235
|
+
for (var h = [], y = 0; y < arguments.length; y++)
|
|
1236
|
+
h[y] = e.R(arguments[y]);
|
|
1242
1237
|
return u[i].apply(u, h);
|
|
1243
1238
|
};
|
|
1244
|
-
}(t[r]),
|
|
1239
|
+
}(t[r]), b(e, e.$, t[r], n);
|
|
1245
1240
|
}
|
|
1246
|
-
function
|
|
1241
|
+
function vn(e, t) {
|
|
1247
1242
|
var n = function(r, i) {
|
|
1248
1243
|
if (re(e))
|
|
1249
1244
|
var s = this;
|
|
1250
1245
|
else {
|
|
1251
|
-
if (i === void 0 &&
|
|
1246
|
+
if (i === void 0 && U(e, r, e.I))
|
|
1252
1247
|
return r;
|
|
1253
1248
|
s = e.s(e.Ma);
|
|
1254
1249
|
}
|
|
1255
|
-
r = r === void 0 ? "" : String(r), i = i ? String(i) : "", /^[gmi]*$/.test(i) ||
|
|
1250
|
+
r = r === void 0 ? "" : String(r), i = i ? String(i) : "", /^[gmi]*$/.test(i) || m(e, e.T, "Invalid regexp flag: " + i);
|
|
1256
1251
|
try {
|
|
1257
|
-
var u = new
|
|
1252
|
+
var u = new ae.RegExp(r, i);
|
|
1258
1253
|
} catch (h) {
|
|
1259
|
-
|
|
1254
|
+
m(e, e.T, h.message);
|
|
1260
1255
|
}
|
|
1261
|
-
return
|
|
1256
|
+
return bt(e, s, u), s;
|
|
1262
1257
|
};
|
|
1263
1258
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, v), e.g(e.I.h.prototype, "global", void 0, B), e.g(e.I.h.prototype, "ignoreCase", void 0, B), e.g(e.I.h.prototype, "multiline", void 0, B), e.g(e.I.h.prototype, "source", "(?:)", B), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, i) {
|
|
1264
|
-
function s(
|
|
1265
|
-
if (
|
|
1266
|
-
var A = q(e,
|
|
1267
|
-
return e.g(A, "index",
|
|
1259
|
+
function s(C) {
|
|
1260
|
+
if (C) {
|
|
1261
|
+
var A = q(e, C);
|
|
1262
|
+
return e.g(A, "index", C.index), e.g(A, "input", C.input), A;
|
|
1268
1263
|
}
|
|
1269
1264
|
return null;
|
|
1270
1265
|
}
|
|
1271
1266
|
var u = this.data;
|
|
1272
1267
|
if (r = String(r), u.lastIndex = Number(e.G(this, "lastIndex")), be(e, u, i), e.REGEXP_MODE === 2)
|
|
1273
1268
|
if (ee)
|
|
1274
|
-
r =
|
|
1269
|
+
r = Pe(e, "regexp.exec(string)", {
|
|
1275
1270
|
string: r,
|
|
1276
1271
|
regexp: u
|
|
1277
1272
|
}, u, i), r !== me && (e.g(this, "lastIndex", u.lastIndex), i(s(r)));
|
|
1278
1273
|
else {
|
|
1279
|
-
var h = e.ha(),
|
|
1280
|
-
h.onmessage = function(
|
|
1281
|
-
clearTimeout(
|
|
1274
|
+
var h = e.ha(), y = De(e, u, h, i), I = this;
|
|
1275
|
+
h.onmessage = function(C) {
|
|
1276
|
+
clearTimeout(y), e.g(I, "lastIndex", C.data[1]), i(s(C.data[0]));
|
|
1282
1277
|
}, h.postMessage(["exec", u, u.lastIndex, r]);
|
|
1283
1278
|
}
|
|
1284
1279
|
else
|
|
1285
1280
|
r = u.exec(r), e.g(this, "lastIndex", u.lastIndex), i(s(r));
|
|
1286
|
-
},
|
|
1281
|
+
}, Ue(e, e.I, "exec", n);
|
|
1287
1282
|
}
|
|
1288
|
-
function
|
|
1283
|
+
function yn(e, t) {
|
|
1289
1284
|
function n(r) {
|
|
1290
1285
|
var i = e.i(function(s) {
|
|
1291
1286
|
var u = re(e) ? this : e.Aa(i);
|
|
1292
|
-
return
|
|
1287
|
+
return It(e, u, s), u;
|
|
1293
1288
|
}, !0);
|
|
1294
1289
|
return e.g(i, "prototype", e.Aa(e.D), v), e.g(i.h.prototype, "name", r, v), e.g(t, r, i, v), i;
|
|
1295
1290
|
}
|
|
1296
1291
|
e.D = e.i(function(r) {
|
|
1297
1292
|
var i = re(e) ? this : e.Aa(e.D);
|
|
1298
|
-
return
|
|
1293
|
+
return It(e, i, r), i;
|
|
1299
1294
|
}, !0), e.g(t, "Error", e.D, v), e.g(e.D.h.prototype, "message", "", v), e.g(e.D.h.prototype, "name", "Error", v), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1300
1295
|
}
|
|
1301
|
-
function
|
|
1296
|
+
function dn(e, t) {
|
|
1302
1297
|
var n = e.s(e.M);
|
|
1303
1298
|
e.g(t, "Math", n, v);
|
|
1304
1299
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1307,28 +1302,28 @@ function mn(e, t) {
|
|
|
1307
1302
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1308
1303
|
e.g(n, r[t], e.i(Math[r[t]], !1), v);
|
|
1309
1304
|
}
|
|
1310
|
-
function
|
|
1305
|
+
function mn(e, t) {
|
|
1311
1306
|
var n = e.s(e.M);
|
|
1312
1307
|
e.g(t, "JSON", n, v), t = function(r) {
|
|
1313
1308
|
try {
|
|
1314
1309
|
var i = JSON.parse(String(r));
|
|
1315
1310
|
} catch (s) {
|
|
1316
|
-
|
|
1311
|
+
m(e, e.T, s.message);
|
|
1317
1312
|
}
|
|
1318
1313
|
return e.Ia(i);
|
|
1319
1314
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, i, s) {
|
|
1320
|
-
i && i.H === "Function" ?
|
|
1315
|
+
i && i.H === "Function" ? m(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = Nr(e, i), i = i.filter(function(h) {
|
|
1321
1316
|
return typeof h == "string" || typeof h == "number";
|
|
1322
1317
|
})) : i = null, typeof s != "string" && typeof s != "number" && (s = void 0), r = e.R(r);
|
|
1323
1318
|
try {
|
|
1324
1319
|
var u = JSON.stringify(r, i, s);
|
|
1325
1320
|
} catch (h) {
|
|
1326
|
-
|
|
1321
|
+
m(e, e.j, h.message);
|
|
1327
1322
|
}
|
|
1328
1323
|
return u;
|
|
1329
1324
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
1330
1325
|
}
|
|
1331
|
-
function
|
|
1326
|
+
function U(e, t, n) {
|
|
1332
1327
|
if (t == null || !n)
|
|
1333
1328
|
return !1;
|
|
1334
1329
|
if (n = n.h.prototype, t === n)
|
|
@@ -1340,10 +1335,10 @@ function D(e, t, n) {
|
|
|
1340
1335
|
}
|
|
1341
1336
|
return !1;
|
|
1342
1337
|
}
|
|
1343
|
-
function
|
|
1338
|
+
function bt(e, t, n) {
|
|
1344
1339
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, v), e.g(t, "source", n.source, B), e.g(t, "global", n.global, B), e.g(t, "ignoreCase", n.ignoreCase, B), e.g(t, "multiline", n.multiline, B);
|
|
1345
1340
|
}
|
|
1346
|
-
function
|
|
1341
|
+
function It(e, t, n) {
|
|
1347
1342
|
n && e.g(t, "message", String(n), v), n = [];
|
|
1348
1343
|
for (var r = e.o.length - 1; 0 <= r; r--) {
|
|
1349
1344
|
var i = e.o[r], s = i.node;
|
|
@@ -1360,21 +1355,21 @@ function Tt(e, t, n) {
|
|
|
1360
1355
|
}
|
|
1361
1356
|
e.g(t, "stack", s.trim(), v);
|
|
1362
1357
|
}
|
|
1363
|
-
|
|
1358
|
+
O.ha = function() {
|
|
1364
1359
|
var e = this.ha.Mb;
|
|
1365
|
-
return e || (e = new Blob([
|
|
1360
|
+
return e || (e = new Blob([sn.join(`
|
|
1366
1361
|
`)], {
|
|
1367
1362
|
type: "application/javascript"
|
|
1368
1363
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1369
1364
|
};
|
|
1370
|
-
function
|
|
1365
|
+
function Pe(e, t, n, r, i) {
|
|
1371
1366
|
var s = {
|
|
1372
1367
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1373
1368
|
};
|
|
1374
1369
|
try {
|
|
1375
1370
|
return ee.runInNewContext(t, n, s);
|
|
1376
1371
|
} catch {
|
|
1377
|
-
i(null),
|
|
1372
|
+
i(null), m(e, e.D, "RegExp Timeout: " + r);
|
|
1378
1373
|
}
|
|
1379
1374
|
return me;
|
|
1380
1375
|
}
|
|
@@ -1395,24 +1390,24 @@ function be(e, t, n) {
|
|
|
1395
1390
|
r = !!ee;
|
|
1396
1391
|
} else
|
|
1397
1392
|
r = !1;
|
|
1398
|
-
r || (n(null),
|
|
1393
|
+
r || (n(null), m(e, e.D, "Regular expressions not supported: " + t));
|
|
1399
1394
|
}
|
|
1400
1395
|
function De(e, t, n, r) {
|
|
1401
1396
|
return setTimeout(function() {
|
|
1402
1397
|
n.terminate(), r(null);
|
|
1403
1398
|
try {
|
|
1404
|
-
|
|
1399
|
+
m(e, e.D, "RegExp Timeout: " + t);
|
|
1405
1400
|
} catch {
|
|
1406
1401
|
}
|
|
1407
1402
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1408
1403
|
}
|
|
1409
|
-
|
|
1404
|
+
O.Aa = function(e) {
|
|
1410
1405
|
return this.s(e && e.h.prototype);
|
|
1411
1406
|
};
|
|
1412
|
-
|
|
1407
|
+
O.s = function(e) {
|
|
1413
1408
|
if (typeof e != "object")
|
|
1414
1409
|
throw Error("Non object prototype");
|
|
1415
|
-
return e = new k(e),
|
|
1410
|
+
return e = new k(e), U(this, e, this.D) && (e.H = "Error"), e;
|
|
1416
1411
|
};
|
|
1417
1412
|
function xe(e) {
|
|
1418
1413
|
var t = e.s(e.La);
|
|
@@ -1422,29 +1417,29 @@ function xe(e) {
|
|
|
1422
1417
|
writable: !0
|
|
1423
1418
|
}), t.H = "Array", t;
|
|
1424
1419
|
}
|
|
1425
|
-
function
|
|
1420
|
+
function Dt(e, t, n) {
|
|
1426
1421
|
var r = e.s(e.Z);
|
|
1427
1422
|
return n ? (n = e.s(e.M), e.g(r, "prototype", n, v), e.g(n, "constructor", r, v)) : r.Ab = !0, e.g(r, "length", t, B), r.H = "Function", r;
|
|
1428
1423
|
}
|
|
1429
|
-
function
|
|
1430
|
-
var i =
|
|
1424
|
+
function Ut(e, t, n, r) {
|
|
1425
|
+
var i = Dt(e, t.oa.length, !0);
|
|
1431
1426
|
return i.Va = n, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : r || "", B), i;
|
|
1432
1427
|
}
|
|
1433
|
-
|
|
1434
|
-
return t =
|
|
1428
|
+
O.i = function(e, t) {
|
|
1429
|
+
return t = Dt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, B), t;
|
|
1435
1430
|
};
|
|
1436
|
-
|
|
1437
|
-
var t =
|
|
1431
|
+
O.ub = function(e) {
|
|
1432
|
+
var t = Dt(this, e.length, !0);
|
|
1438
1433
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, B), t;
|
|
1439
1434
|
};
|
|
1440
|
-
|
|
1435
|
+
O.Ia = function(e) {
|
|
1441
1436
|
if (e instanceof k)
|
|
1442
1437
|
throw Error("Object is already pseudo");
|
|
1443
1438
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1444
1439
|
return e;
|
|
1445
1440
|
if (e instanceof RegExp) {
|
|
1446
1441
|
var t = this.s(this.Ma);
|
|
1447
|
-
return
|
|
1442
|
+
return bt(this, t, e), t;
|
|
1448
1443
|
}
|
|
1449
1444
|
if (e instanceof Date)
|
|
1450
1445
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1468,14 +1463,14 @@ C.Ia = function(e) {
|
|
|
1468
1463
|
this.g(t, r, this.Ia(e[r]));
|
|
1469
1464
|
return t;
|
|
1470
1465
|
};
|
|
1471
|
-
|
|
1466
|
+
O.R = function(e, t) {
|
|
1472
1467
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1473
1468
|
return e;
|
|
1474
1469
|
if (!(e instanceof k))
|
|
1475
1470
|
throw Error("Object is not pseudo");
|
|
1476
|
-
if (
|
|
1471
|
+
if (U(this, e, this.I))
|
|
1477
1472
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
1478
|
-
if (
|
|
1473
|
+
if (U(this, e, this.$))
|
|
1479
1474
|
return new Date(e.data.valueOf());
|
|
1480
1475
|
t = t || {
|
|
1481
1476
|
hb: [],
|
|
@@ -1484,10 +1479,10 @@ C.R = function(e, t) {
|
|
|
1484
1479
|
var n = t.hb.indexOf(e);
|
|
1485
1480
|
if (n !== -1)
|
|
1486
1481
|
return t.Sa[n];
|
|
1487
|
-
if (t.hb.push(e),
|
|
1482
|
+
if (t.hb.push(e), U(this, e, this.qa)) {
|
|
1488
1483
|
n = [], t.Sa.push(n);
|
|
1489
1484
|
for (var r = this.G(e, "length"), i = 0; i < r; i++)
|
|
1490
|
-
|
|
1485
|
+
qe(this, e, i) && (n[i] = this.R(this.G(e, i), t));
|
|
1491
1486
|
} else
|
|
1492
1487
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1493
1488
|
i = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
@@ -1507,7 +1502,7 @@ function Nr(e, t) {
|
|
|
1507
1502
|
var n = [], r;
|
|
1508
1503
|
for (r in t.h)
|
|
1509
1504
|
n[r] = e.G(t, r);
|
|
1510
|
-
return n.length =
|
|
1505
|
+
return n.length = Pt(e.G(t, "length")) || 0, n;
|
|
1511
1506
|
}
|
|
1512
1507
|
function te(e, t) {
|
|
1513
1508
|
switch (typeof t) {
|
|
@@ -1520,16 +1515,16 @@ function te(e, t) {
|
|
|
1520
1515
|
}
|
|
1521
1516
|
return t ? t.xa : null;
|
|
1522
1517
|
}
|
|
1523
|
-
|
|
1518
|
+
O.G = function(e, t) {
|
|
1524
1519
|
if (this.P)
|
|
1525
1520
|
throw Error("Getter not supported in that context");
|
|
1526
|
-
if (t = String(t), e != null ||
|
|
1521
|
+
if (t = String(t), e != null || m(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof k))
|
|
1527
1522
|
throw TypeError("Expecting native value or pseudo object");
|
|
1528
1523
|
if (t === "length") {
|
|
1529
|
-
if (
|
|
1524
|
+
if (U(this, e, this.J))
|
|
1530
1525
|
return String(e).length;
|
|
1531
|
-
} else if (64 > t.charCodeAt(0) &&
|
|
1532
|
-
var n =
|
|
1526
|
+
} else if (64 > t.charCodeAt(0) && U(this, e, this.J)) {
|
|
1527
|
+
var n = Fe(t);
|
|
1533
1528
|
if (!isNaN(n) && n < String(e).length)
|
|
1534
1529
|
return String(e)[n];
|
|
1535
1530
|
}
|
|
@@ -1538,13 +1533,13 @@ C.G = function(e, t) {
|
|
|
1538
1533
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1539
1534
|
while (e = te(this, e));
|
|
1540
1535
|
};
|
|
1541
|
-
function
|
|
1536
|
+
function qe(e, t, n) {
|
|
1542
1537
|
if (!(t instanceof k))
|
|
1543
1538
|
throw TypeError("Primitive data type has no properties");
|
|
1544
|
-
if (n = String(n), n === "length" &&
|
|
1539
|
+
if (n = String(n), n === "length" && U(e, t, e.J))
|
|
1545
1540
|
return !0;
|
|
1546
|
-
if (
|
|
1547
|
-
var r =
|
|
1541
|
+
if (U(e, t, e.J)) {
|
|
1542
|
+
var r = Fe(n);
|
|
1548
1543
|
if (!isNaN(r) && r < String(t).length)
|
|
1549
1544
|
return !0;
|
|
1550
1545
|
}
|
|
@@ -1554,18 +1549,18 @@ function tt(e, t, n) {
|
|
|
1554
1549
|
while (t = te(e, t));
|
|
1555
1550
|
return !1;
|
|
1556
1551
|
}
|
|
1557
|
-
|
|
1552
|
+
O.g = function(e, t, n, r) {
|
|
1558
1553
|
if (this.Ka)
|
|
1559
1554
|
throw Error("Setter not supported in that context");
|
|
1560
|
-
if (t = String(t), e != null ||
|
|
1555
|
+
if (t = String(t), e != null || m(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof k))
|
|
1561
1556
|
throw TypeError("Expecting native value or pseudo object");
|
|
1562
|
-
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) &&
|
|
1563
|
-
var i = !this.o ||
|
|
1557
|
+
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && m(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1558
|
+
var i = !this.o || _t(this).S;
|
|
1564
1559
|
if (e instanceof k) {
|
|
1565
|
-
if (
|
|
1566
|
-
var s =
|
|
1560
|
+
if (U(this, e, this.J)) {
|
|
1561
|
+
var s = Fe(t);
|
|
1567
1562
|
if (t === "length" || !isNaN(s) && s < String(e).length) {
|
|
1568
|
-
i &&
|
|
1563
|
+
i && m(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1569
1564
|
return;
|
|
1570
1565
|
}
|
|
1571
1566
|
}
|
|
@@ -1576,24 +1571,24 @@ C.g = function(e, t, n, r) {
|
|
|
1576
1571
|
return;
|
|
1577
1572
|
n = r.value;
|
|
1578
1573
|
}
|
|
1579
|
-
if (n =
|
|
1574
|
+
if (n = Pt(n), isNaN(n) && m(this, this.ob, "Invalid array length"), n < s)
|
|
1580
1575
|
for (u in e.h) {
|
|
1581
|
-
var u =
|
|
1576
|
+
var u = Fe(u);
|
|
1582
1577
|
!isNaN(u) && n <= u && delete e.h[u];
|
|
1583
1578
|
}
|
|
1584
1579
|
} else
|
|
1585
|
-
isNaN(u =
|
|
1580
|
+
isNaN(u = Fe(t)) || (e.h.length = Math.max(s, u + 1));
|
|
1586
1581
|
if (!e.preventExtensions || t in e.h)
|
|
1587
1582
|
if (r) {
|
|
1588
|
-
i = {}, "get" in r && r.get && (e.V[t] = r.get, i.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, i.set = this.g.bc), "configurable" in r && (i.configurable = r.configurable), "enumerable" in r && (i.enumerable = r.enumerable), "writable" in r && (i.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (i.value = r.value, delete e.V[t], delete e.Y[t]) : n !==
|
|
1583
|
+
i = {}, "get" in r && r.get && (e.V[t] = r.get, i.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, i.set = this.g.bc), "configurable" in r && (i.configurable = r.configurable), "enumerable" in r && (i.enumerable = r.enumerable), "writable" in r && (i.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (i.value = r.value, delete e.V[t], delete e.Y[t]) : n !== Le && (i.value = n, delete e.V[t], delete e.Y[t]);
|
|
1589
1584
|
try {
|
|
1590
1585
|
Object.defineProperty(e.h, t, i);
|
|
1591
1586
|
} catch {
|
|
1592
|
-
|
|
1587
|
+
m(this, this.j, "Cannot redefine property: " + t);
|
|
1593
1588
|
}
|
|
1594
1589
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1595
1590
|
} else {
|
|
1596
|
-
if (n ===
|
|
1591
|
+
if (n === Le)
|
|
1597
1592
|
throw ReferenceError("Value not specified");
|
|
1598
1593
|
for (r = e; !(t in r.h); )
|
|
1599
1594
|
if (r = te(this, r), !r) {
|
|
@@ -1603,37 +1598,37 @@ C.g = function(e, t, n, r) {
|
|
|
1603
1598
|
if (r.Y && r.Y[t])
|
|
1604
1599
|
return this.Ka = !0, r.Y[t];
|
|
1605
1600
|
if (r.V && r.V[t])
|
|
1606
|
-
i &&
|
|
1601
|
+
i && m(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1607
1602
|
else
|
|
1608
1603
|
try {
|
|
1609
1604
|
e.h[t] = n;
|
|
1610
1605
|
} catch {
|
|
1611
|
-
i &&
|
|
1606
|
+
i && m(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1612
1607
|
}
|
|
1613
1608
|
}
|
|
1614
1609
|
else
|
|
1615
|
-
i &&
|
|
1610
|
+
i && m(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1616
1611
|
} else
|
|
1617
|
-
i &&
|
|
1612
|
+
i && m(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1618
1613
|
};
|
|
1619
|
-
|
|
1614
|
+
O.g.ac = function() {
|
|
1620
1615
|
throw Error("Placeholder getter");
|
|
1621
1616
|
};
|
|
1622
|
-
|
|
1617
|
+
O.g.bc = function() {
|
|
1623
1618
|
throw Error("Placeholder setter");
|
|
1624
1619
|
};
|
|
1625
|
-
function
|
|
1620
|
+
function b(e, t, n, r) {
|
|
1626
1621
|
e.g(t.h.prototype, n, e.i(r, !1), v);
|
|
1627
1622
|
}
|
|
1628
|
-
function
|
|
1623
|
+
function Ue(e, t, n, r) {
|
|
1629
1624
|
e.g(t.h.prototype, n, e.ub(r), v);
|
|
1630
1625
|
}
|
|
1631
|
-
function
|
|
1626
|
+
function _t(e) {
|
|
1632
1627
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1633
1628
|
throw Error("No scope found");
|
|
1634
1629
|
return e;
|
|
1635
1630
|
}
|
|
1636
|
-
function
|
|
1631
|
+
function Tt(e, t, n) {
|
|
1637
1632
|
var r = !1;
|
|
1638
1633
|
if (n && n.S)
|
|
1639
1634
|
r = !0;
|
|
@@ -1641,7 +1636,7 @@ function Nt(e, t, n) {
|
|
|
1641
1636
|
var i = t.body && t.body[0];
|
|
1642
1637
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (r = !0);
|
|
1643
1638
|
}
|
|
1644
|
-
return i = e.s(null), r = new Pr(n, r, i), n ||
|
|
1639
|
+
return i = e.s(null), r = new Pr(n, r, i), n || an(e, r.object), Be(e, t, r), r;
|
|
1645
1640
|
}
|
|
1646
1641
|
function Ft(e, t, n) {
|
|
1647
1642
|
if (!t)
|
|
@@ -1649,32 +1644,32 @@ function Ft(e, t, n) {
|
|
|
1649
1644
|
return e = n || e.s(null), new Pr(t, t.S, e);
|
|
1650
1645
|
}
|
|
1651
1646
|
function Lt(e, t) {
|
|
1652
|
-
for (var n =
|
|
1647
|
+
for (var n = _t(e); n && n !== e.N; ) {
|
|
1653
1648
|
if (t in n.object.h)
|
|
1654
1649
|
return n.object.h[t];
|
|
1655
1650
|
n = n.Va;
|
|
1656
1651
|
}
|
|
1657
|
-
if (n === e.N &&
|
|
1652
|
+
if (n === e.N && qe(e, n.object, t))
|
|
1658
1653
|
return e.G(n.object, t);
|
|
1659
|
-
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" ||
|
|
1654
|
+
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || m(e, e.pb, t + " is not defined");
|
|
1660
1655
|
}
|
|
1661
|
-
function
|
|
1662
|
-
for (var r =
|
|
1656
|
+
function Rr(e, t, n) {
|
|
1657
|
+
for (var r = _t(e), i = r.S; r && r !== e.N; ) {
|
|
1663
1658
|
if (t in r.object.h) {
|
|
1664
1659
|
try {
|
|
1665
1660
|
r.object.h[t] = n;
|
|
1666
1661
|
} catch {
|
|
1667
|
-
i &&
|
|
1662
|
+
i && m(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1668
1663
|
}
|
|
1669
1664
|
return;
|
|
1670
1665
|
}
|
|
1671
1666
|
r = r.Va;
|
|
1672
1667
|
}
|
|
1673
|
-
if (r === e.N && (!i ||
|
|
1668
|
+
if (r === e.N && (!i || qe(e, r.object, t)))
|
|
1674
1669
|
return e.g(r.object, t, n);
|
|
1675
|
-
|
|
1670
|
+
m(e, e.pb, t + " is not defined");
|
|
1676
1671
|
}
|
|
1677
|
-
function
|
|
1672
|
+
function Be(e, t, n) {
|
|
1678
1673
|
if (t.jb)
|
|
1679
1674
|
var r = t.jb;
|
|
1680
1675
|
else {
|
|
@@ -1707,35 +1702,35 @@ function Ge(e, t, n) {
|
|
|
1707
1702
|
if (Array.isArray(h)) {
|
|
1708
1703
|
for (i = 0; i < h.length; i++)
|
|
1709
1704
|
if (h[i] && h[i].constructor === s) {
|
|
1710
|
-
var
|
|
1711
|
-
for (u in
|
|
1712
|
-
r[u] =
|
|
1705
|
+
var y = Be(e, h[i], n);
|
|
1706
|
+
for (u in y)
|
|
1707
|
+
r[u] = y[u];
|
|
1713
1708
|
}
|
|
1714
1709
|
} else if (h.constructor === s)
|
|
1715
|
-
for (u in
|
|
1716
|
-
r[u] =
|
|
1710
|
+
for (u in y = Be(e, h, n), y)
|
|
1711
|
+
r[u] = y[u];
|
|
1717
1712
|
}
|
|
1718
1713
|
}
|
|
1719
1714
|
}
|
|
1720
1715
|
t.jb = r;
|
|
1721
1716
|
}
|
|
1722
1717
|
for (u in r)
|
|
1723
|
-
r[u] === !0 ? e.g(n.object, u, void 0,
|
|
1718
|
+
r[u] === !0 ? e.g(n.object, u, void 0, Sr) : e.g(n.object, u, Ut(e, r[u], n), Sr);
|
|
1724
1719
|
return r;
|
|
1725
1720
|
}
|
|
1726
1721
|
function re(e) {
|
|
1727
1722
|
return e.o[e.o.length - 1].isConstructor;
|
|
1728
1723
|
}
|
|
1729
|
-
function
|
|
1724
|
+
function Bt(e, t) {
|
|
1730
1725
|
return t[0] === je ? Lt(e, t[1]) : e.G(t[0], t[1]);
|
|
1731
1726
|
}
|
|
1732
|
-
function
|
|
1733
|
-
return t[0] === je ?
|
|
1727
|
+
function Gt(e, t, n) {
|
|
1728
|
+
return t[0] === je ? Rr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1734
1729
|
}
|
|
1735
|
-
function
|
|
1736
|
-
throw e.N ? (n !== void 0 && t instanceof k && (t = e.Aa(t),
|
|
1730
|
+
function m(e, t, n) {
|
|
1731
|
+
throw e.N ? (n !== void 0 && t instanceof k && (t = e.Aa(t), It(e, t, n)), Ge(e, 4, t), Tr) : n === void 0 ? t : n;
|
|
1737
1732
|
}
|
|
1738
|
-
function
|
|
1733
|
+
function Ge(e, t, n, r) {
|
|
1739
1734
|
if (t === 0)
|
|
1740
1735
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
1741
1736
|
var i = e.o;
|
|
@@ -1771,7 +1766,7 @@ function Ve(e, t, n, r) {
|
|
|
1771
1766
|
} else if (t === 2 && (r ? s.labels && s.labels.indexOf(r) !== -1 : s.W))
|
|
1772
1767
|
return;
|
|
1773
1768
|
}
|
|
1774
|
-
throw
|
|
1769
|
+
throw U(e, n, e.D) ? (t = {
|
|
1775
1770
|
EvalError,
|
|
1776
1771
|
RangeError,
|
|
1777
1772
|
ReferenceError,
|
|
@@ -1780,38 +1775,38 @@ function Ve(e, t, n, r) {
|
|
|
1780
1775
|
URIError
|
|
1781
1776
|
}, r = String(e.G(n, "name")), i = e.G(n, "message").valueOf(), t = (t[r] || Error)(i), t.stack = String(e.G(n, "stack"))) : t = String(n), e.value = t, t;
|
|
1782
1777
|
}
|
|
1783
|
-
function
|
|
1778
|
+
function L(e, t) {
|
|
1784
1779
|
switch (t.type) {
|
|
1785
1780
|
case "ArrayExpression":
|
|
1786
1781
|
return "[...]";
|
|
1787
1782
|
case "BinaryExpression":
|
|
1788
1783
|
case "LogicalExpression":
|
|
1789
|
-
return
|
|
1784
|
+
return L(e, t.left) + " " + t.operator + " " + L(e, t.right);
|
|
1790
1785
|
case "CallExpression":
|
|
1791
|
-
return
|
|
1786
|
+
return L(e, t.callee) + "(...)";
|
|
1792
1787
|
case "ConditionalExpression":
|
|
1793
|
-
return
|
|
1788
|
+
return L(e, t.test) + " ? " + L(e, t.da) + " : " + L(e, t.alternate);
|
|
1794
1789
|
case "Identifier":
|
|
1795
1790
|
return t.name;
|
|
1796
1791
|
case "Literal":
|
|
1797
1792
|
return t.raw;
|
|
1798
1793
|
case "MemberExpression":
|
|
1799
|
-
var n =
|
|
1800
|
-
return e =
|
|
1794
|
+
var n = L(e, t.object);
|
|
1795
|
+
return e = L(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
|
|
1801
1796
|
case "NewExpression":
|
|
1802
|
-
return "new " +
|
|
1797
|
+
return "new " + L(e, t.callee) + "(...)";
|
|
1803
1798
|
case "ObjectExpression":
|
|
1804
1799
|
return "{...}";
|
|
1805
1800
|
case "ThisExpression":
|
|
1806
1801
|
return "this";
|
|
1807
1802
|
case "UnaryExpression":
|
|
1808
|
-
return t.operator + " " +
|
|
1803
|
+
return t.operator + " " + L(e, t.K);
|
|
1809
1804
|
case "UpdateExpression":
|
|
1810
|
-
return n =
|
|
1805
|
+
return n = L(e, t.K), t.prefix ? t.operator + n : n + t.operator;
|
|
1811
1806
|
}
|
|
1812
1807
|
return "???";
|
|
1813
1808
|
}
|
|
1814
|
-
function
|
|
1809
|
+
function Or(e, t, n) {
|
|
1815
1810
|
var r = e.o[e.o.length - 1], i = Array.from(n), s = i.shift();
|
|
1816
1811
|
n = Math.max(Number(i.shift() || 0), 0);
|
|
1817
1812
|
var u = e.ya();
|
|
@@ -1820,53 +1815,53 @@ function Sr(e, t, n) {
|
|
|
1820
1815
|
u.type = "CallExpression", r = r.scope;
|
|
1821
1816
|
} else {
|
|
1822
1817
|
try {
|
|
1823
|
-
var
|
|
1824
|
-
} catch (
|
|
1825
|
-
|
|
1818
|
+
var y = Ee(String(s), "taskCode" + e.ic++);
|
|
1819
|
+
} catch (I) {
|
|
1820
|
+
m(e, e.T, "Invalid code: " + I.message);
|
|
1826
1821
|
}
|
|
1827
|
-
u.type = "EvalProgram_", u.body =
|
|
1822
|
+
u.type = "EvalProgram_", u.body = y.body, r = r.node.arguments[0], Qe(u, r ? r.start : void 0, r ? r.end : void 0), r = e.N, i.length = 0;
|
|
1828
1823
|
}
|
|
1829
|
-
return t = new
|
|
1824
|
+
return t = new wn(h, i, r, u, t ? n : -1), Mr(e, t, n), t.Db;
|
|
1830
1825
|
}
|
|
1831
|
-
function
|
|
1826
|
+
function Mr(e, t, n) {
|
|
1832
1827
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, i) {
|
|
1833
1828
|
return r.time - i.time;
|
|
1834
1829
|
});
|
|
1835
1830
|
}
|
|
1836
|
-
function
|
|
1831
|
+
function Cr(e, t) {
|
|
1837
1832
|
for (var n = 0; n < e.ca.length; n++)
|
|
1838
1833
|
if (e.ca[n].Db == t) {
|
|
1839
1834
|
e.ca.splice(n, 1);
|
|
1840
1835
|
break;
|
|
1841
1836
|
}
|
|
1842
1837
|
}
|
|
1843
|
-
function
|
|
1838
|
+
function Ve(e, t, n) {
|
|
1844
1839
|
if (!e.P)
|
|
1845
1840
|
throw Error("Unexpected call to createGetter");
|
|
1846
1841
|
e.P = !1, n = Array.isArray(n) ? n[0] : n;
|
|
1847
1842
|
var r = e.ya();
|
|
1848
|
-
return r.type = "CallExpression", e = new
|
|
1843
|
+
return r.type = "CallExpression", e = new d(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1849
1844
|
}
|
|
1850
|
-
function
|
|
1845
|
+
function Vt(e, t, n, r) {
|
|
1851
1846
|
if (!e.Ka)
|
|
1852
1847
|
throw Error("Unexpected call to createSetter");
|
|
1853
1848
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1854
1849
|
var i = e.ya();
|
|
1855
|
-
return i.type = "CallExpression", e = new
|
|
1850
|
+
return i.type = "CallExpression", e = new d(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1856
1851
|
}
|
|
1857
1852
|
function Ot(e, t) {
|
|
1858
1853
|
return t == null ? e.Na : t instanceof k ? t : (e = e.s(te(e, t)), e.data = t, e);
|
|
1859
1854
|
}
|
|
1860
|
-
|
|
1855
|
+
O.Xb = function() {
|
|
1861
1856
|
return this.N;
|
|
1862
1857
|
};
|
|
1863
|
-
|
|
1858
|
+
O.Yb = function() {
|
|
1864
1859
|
return this.o;
|
|
1865
1860
|
};
|
|
1866
|
-
|
|
1861
|
+
O.ec = function(e) {
|
|
1867
1862
|
this.o = e;
|
|
1868
1863
|
};
|
|
1869
|
-
function
|
|
1864
|
+
function d(e, t) {
|
|
1870
1865
|
this.node = e, this.scope = t;
|
|
1871
1866
|
}
|
|
1872
1867
|
function Pr(e, t, n) {
|
|
@@ -1875,17 +1870,17 @@ function Pr(e, t, n) {
|
|
|
1875
1870
|
function k(e) {
|
|
1876
1871
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1877
1872
|
}
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
if (!
|
|
1873
|
+
O = k.prototype;
|
|
1874
|
+
O.xa = null;
|
|
1875
|
+
O.H = "Object";
|
|
1876
|
+
O.data = null;
|
|
1877
|
+
O.toString = function() {
|
|
1878
|
+
if (!_e)
|
|
1884
1879
|
return "[object Interpreter.Object]";
|
|
1885
1880
|
if (!(this instanceof k))
|
|
1886
1881
|
return String(this);
|
|
1887
1882
|
if (this.H === "Array") {
|
|
1888
|
-
var e =
|
|
1883
|
+
var e = kr;
|
|
1889
1884
|
e.push(this);
|
|
1890
1885
|
try {
|
|
1891
1886
|
var t = [], n = this.h.length, r = !1;
|
|
@@ -1901,7 +1896,7 @@ C.toString = function() {
|
|
|
1901
1896
|
return t.join(",");
|
|
1902
1897
|
}
|
|
1903
1898
|
if (this.H === "Error") {
|
|
1904
|
-
if (e =
|
|
1899
|
+
if (e = kr, e.indexOf(this) !== -1)
|
|
1905
1900
|
return "[object Error]";
|
|
1906
1901
|
n = this;
|
|
1907
1902
|
do
|
|
@@ -1927,28 +1922,28 @@ C.toString = function() {
|
|
|
1927
1922
|
}
|
|
1928
1923
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1929
1924
|
};
|
|
1930
|
-
|
|
1931
|
-
return !
|
|
1925
|
+
O.valueOf = function() {
|
|
1926
|
+
return !_e || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1932
1927
|
};
|
|
1933
|
-
function
|
|
1934
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = i, this.Db = ++
|
|
1928
|
+
function wn(e, t, n, r, i) {
|
|
1929
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = i, this.Db = ++En, this.time = 0;
|
|
1935
1930
|
}
|
|
1936
|
-
var
|
|
1931
|
+
var En = 0;
|
|
1937
1932
|
f.prototype.stepArrayExpression = function(e, t, n) {
|
|
1938
1933
|
n = n.elements;
|
|
1939
1934
|
var r = t.A || 0;
|
|
1940
1935
|
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = xe(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
1941
1936
|
if (n[r])
|
|
1942
|
-
return t.A = r, new
|
|
1937
|
+
return t.A = r, new d(n[r], t.scope);
|
|
1943
1938
|
r++;
|
|
1944
1939
|
}
|
|
1945
1940
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
1946
1941
|
};
|
|
1947
1942
|
f.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
1948
1943
|
if (!t.ja)
|
|
1949
|
-
return t.ja = !0, t = new
|
|
1944
|
+
return t.ja = !0, t = new d(n.left, t.scope), t.sa = !0, t;
|
|
1950
1945
|
if (!t.Da)
|
|
1951
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e =
|
|
1946
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = Bt(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Ve(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new d(n.right, t.scope));
|
|
1952
1947
|
if (t.ta)
|
|
1953
1948
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1954
1949
|
else {
|
|
@@ -1993,16 +1988,16 @@ f.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
1993
1988
|
default:
|
|
1994
1989
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
1995
1990
|
}
|
|
1996
|
-
if (n =
|
|
1997
|
-
return t.ta = !0, t.ib = r,
|
|
1991
|
+
if (n = Gt(this, t.Fa, r))
|
|
1992
|
+
return t.ta = !0, t.ib = r, Vt(this, n, t.Fa, r);
|
|
1998
1993
|
e.pop(), e[e.length - 1].value = r;
|
|
1999
1994
|
}
|
|
2000
1995
|
};
|
|
2001
1996
|
f.prototype.stepBinaryExpression = function(e, t, n) {
|
|
2002
1997
|
if (!t.ja)
|
|
2003
|
-
return t.ja = !0, new
|
|
1998
|
+
return t.ja = !0, new d(n.left, t.scope);
|
|
2004
1999
|
if (!t.Da)
|
|
2005
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2000
|
+
return t.Da = !0, t.ma = t.value, new d(n.right, t.scope);
|
|
2006
2001
|
e.pop();
|
|
2007
2002
|
var r = t.ma;
|
|
2008
2003
|
switch (t = t.value, n.operator) {
|
|
@@ -2064,10 +2059,10 @@ f.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2064
2059
|
n = r >>> t;
|
|
2065
2060
|
break;
|
|
2066
2061
|
case "in":
|
|
2067
|
-
t instanceof k ||
|
|
2062
|
+
t instanceof k || m(this, this.j, "'in' expects an object, not '" + t + "'"), n = qe(this, t, r);
|
|
2068
2063
|
break;
|
|
2069
2064
|
case "instanceof":
|
|
2070
|
-
|
|
2065
|
+
U(this, t, this.O) || m(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof k ? U(this, r, t) : !1;
|
|
2071
2066
|
break;
|
|
2072
2067
|
default:
|
|
2073
2068
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2077,34 +2072,34 @@ f.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2077
2072
|
f.prototype.stepBlockStatement = function(e, t, n) {
|
|
2078
2073
|
var r = t.A || 0;
|
|
2079
2074
|
if (n = n.body[r])
|
|
2080
|
-
return t.A = r + 1, new
|
|
2075
|
+
return t.A = r + 1, new d(n, t.scope);
|
|
2081
2076
|
e.pop();
|
|
2082
2077
|
};
|
|
2083
2078
|
f.prototype.stepBreakStatement = function(e, t, n) {
|
|
2084
|
-
|
|
2079
|
+
Ge(this, 1, void 0, n.label && n.label.name);
|
|
2085
2080
|
};
|
|
2086
2081
|
f.prototype.Hb = 0;
|
|
2087
2082
|
f.prototype.stepCallExpression = function(e, t, n) {
|
|
2088
2083
|
if (!t.ia) {
|
|
2089
2084
|
t.ia = 1;
|
|
2090
|
-
var r = new
|
|
2085
|
+
var r = new d(n.callee, t.scope);
|
|
2091
2086
|
return r.sa = !0, r;
|
|
2092
2087
|
}
|
|
2093
2088
|
if (t.ia === 1) {
|
|
2094
2089
|
t.ia = 2;
|
|
2095
2090
|
var i = t.value;
|
|
2096
2091
|
if (Array.isArray(i)) {
|
|
2097
|
-
if (t.U =
|
|
2098
|
-
return t.ia = 1,
|
|
2092
|
+
if (t.U = Bt(this, i), i[0] === je ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2093
|
+
return t.ia = 1, Ve(this, i, t.value);
|
|
2099
2094
|
} else
|
|
2100
2095
|
t.U = i;
|
|
2101
2096
|
t.F = [], t.A = 0;
|
|
2102
2097
|
}
|
|
2103
2098
|
if (i = t.U, !t.Qa) {
|
|
2104
2099
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2105
|
-
return new
|
|
2100
|
+
return new d(n.arguments[t.A++], t.scope);
|
|
2106
2101
|
if (n.type === "NewExpression") {
|
|
2107
|
-
if (i instanceof k && !i.Ab ||
|
|
2102
|
+
if (i instanceof k && !i.Ab || m(this, this.j, L(this, n.callee) + " is not a constructor"), i === this.qa)
|
|
2108
2103
|
t.B = xe(this);
|
|
2109
2104
|
else {
|
|
2110
2105
|
var s = i.h.prototype;
|
|
@@ -2117,12 +2112,12 @@ f.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2117
2112
|
if (t.eb)
|
|
2118
2113
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2119
2114
|
else {
|
|
2120
|
-
if (t.eb = !0, i instanceof k ||
|
|
2121
|
-
for (n =
|
|
2115
|
+
if (t.eb = !0, i instanceof k || m(this, this.j, L(this, n.callee) + " is not a function"), e = i.node) {
|
|
2116
|
+
for (n = Tt(this, e.body, i.Va), r = xe(this), i = 0; i < t.F.length; i++)
|
|
2122
2117
|
this.g(r, i, t.F[i]);
|
|
2123
2118
|
for (this.g(n.object, "arguments", r), i = 0; i < e.oa.length; i++)
|
|
2124
2119
|
this.g(n.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2125
|
-
return n.S || (t.B = Ot(this, t.B)), this.g(n.object, "this", t.B, Mt), t.value = void 0, new
|
|
2120
|
+
return n.S || (t.B = Ot(this, t.B)), this.g(n.object, "this", t.B, Mt), t.value = void 0, new d(e.body, n);
|
|
2126
2121
|
}
|
|
2127
2122
|
if (i.eval)
|
|
2128
2123
|
if (i = t.F[0], typeof i != "string")
|
|
@@ -2131,9 +2126,9 @@ f.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2131
2126
|
try {
|
|
2132
2127
|
r = Ee(String(i), "eval" + this.Hb++);
|
|
2133
2128
|
} catch (h) {
|
|
2134
|
-
|
|
2129
|
+
m(this, this.T, "Invalid code: " + h.message);
|
|
2135
2130
|
}
|
|
2136
|
-
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body,
|
|
2131
|
+
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body, Qe(i, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Tt(this, r, n) : Be(this, r, n), this.value = void 0, new d(i, n);
|
|
2137
2132
|
}
|
|
2138
2133
|
else if (i.Ta)
|
|
2139
2134
|
t.scope.S || (t.B = Ot(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
@@ -2143,35 +2138,35 @@ f.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2143
2138
|
t.value = h, u.za = !1;
|
|
2144
2139
|
}), this.za = !0, t.scope.S || (t.B = Ot(this, t.B)), i.Za.apply(t.B, r);
|
|
2145
2140
|
} else
|
|
2146
|
-
|
|
2141
|
+
m(this, this.j, L(this, n.callee) + " is not callable");
|
|
2147
2142
|
}
|
|
2148
2143
|
};
|
|
2149
2144
|
f.prototype.stepConditionalExpression = function(e, t, n) {
|
|
2150
2145
|
var r = t.na || 0;
|
|
2151
2146
|
if (r === 0)
|
|
2152
|
-
return t.na = 1, new
|
|
2147
|
+
return t.na = 1, new d(n.test, t.scope);
|
|
2153
2148
|
if (r === 1) {
|
|
2154
2149
|
if (t.na = 2, (r = !!t.value) && n.da)
|
|
2155
|
-
return new
|
|
2150
|
+
return new d(n.da, t.scope);
|
|
2156
2151
|
if (!r && n.alternate)
|
|
2157
|
-
return new
|
|
2152
|
+
return new d(n.alternate, t.scope);
|
|
2158
2153
|
this.value = void 0;
|
|
2159
2154
|
}
|
|
2160
2155
|
e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
2161
2156
|
};
|
|
2162
2157
|
f.prototype.stepContinueStatement = function(e, t, n) {
|
|
2163
|
-
|
|
2158
|
+
Ge(this, 2, void 0, n.label && n.label.name);
|
|
2164
2159
|
};
|
|
2165
2160
|
f.prototype.stepDebuggerStatement = function(e) {
|
|
2166
2161
|
e.pop();
|
|
2167
2162
|
};
|
|
2168
2163
|
f.prototype.stepDoWhileStatement = function(e, t, n) {
|
|
2169
2164
|
if (n.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2170
|
-
return t.ga = !0, new
|
|
2165
|
+
return t.ga = !0, new d(n.test, t.scope);
|
|
2171
2166
|
if (!t.value)
|
|
2172
2167
|
e.pop();
|
|
2173
2168
|
else if (n.body)
|
|
2174
|
-
return t.ga = !1, t.W = !0, new
|
|
2169
|
+
return t.ga = !1, t.W = !0, new d(n.body, t.scope);
|
|
2175
2170
|
};
|
|
2176
2171
|
f.prototype.stepEmptyStatement = function(e) {
|
|
2177
2172
|
e.pop();
|
|
@@ -2179,19 +2174,19 @@ f.prototype.stepEmptyStatement = function(e) {
|
|
|
2179
2174
|
f.prototype.stepEvalProgram_ = function(e, t, n) {
|
|
2180
2175
|
var r = t.A || 0;
|
|
2181
2176
|
if (n = n.body[r])
|
|
2182
|
-
return t.A = r + 1, new
|
|
2177
|
+
return t.A = r + 1, new d(n, t.scope);
|
|
2183
2178
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2184
2179
|
};
|
|
2185
2180
|
f.prototype.stepExpressionStatement = function(e, t, n) {
|
|
2186
2181
|
if (!t.ka)
|
|
2187
|
-
return this.value = void 0, t.ka = !0, new
|
|
2182
|
+
return this.value = void 0, t.ka = !0, new d(n.la, t.scope);
|
|
2188
2183
|
e.pop(), this.value = t.value;
|
|
2189
2184
|
};
|
|
2190
2185
|
f.prototype.stepForInStatement = function(e, t, n) {
|
|
2191
2186
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2192
|
-
return t.scope.S &&
|
|
2187
|
+
return t.scope.S && m(this, this.T, "for-in loop variable declaration may not have an initializer"), new d(n.left, t.scope);
|
|
2193
2188
|
if (!t.Ca)
|
|
2194
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2189
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new d(n.right, t.scope);
|
|
2195
2190
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2196
2191
|
e:
|
|
2197
2192
|
for (; ; ) {
|
|
@@ -2221,82 +2216,82 @@ f.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2221
2216
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2222
2217
|
t.pa = [je, e.fa[0].id.name];
|
|
2223
2218
|
else
|
|
2224
|
-
return t.pa = null, t = new
|
|
2225
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r =
|
|
2226
|
-
return
|
|
2219
|
+
return t.pa = null, t = new d(e, t.scope), t.sa = !0, t;
|
|
2220
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = Gt(this, t.pa, e)))
|
|
2221
|
+
return Vt(this, r, t.pa, e);
|
|
2227
2222
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2228
|
-
return new
|
|
2223
|
+
return new d(n.body, t.scope);
|
|
2229
2224
|
};
|
|
2230
2225
|
f.prototype.stepForStatement = function(e, t, n) {
|
|
2231
2226
|
switch (t.na) {
|
|
2232
2227
|
default:
|
|
2233
2228
|
if (t.na = 1, n.ua)
|
|
2234
|
-
return new
|
|
2229
|
+
return new d(n.ua, t.scope);
|
|
2235
2230
|
break;
|
|
2236
2231
|
case 1:
|
|
2237
2232
|
if (t.na = 2, n.test)
|
|
2238
|
-
return new
|
|
2233
|
+
return new d(n.test, t.scope);
|
|
2239
2234
|
break;
|
|
2240
2235
|
case 2:
|
|
2241
2236
|
if (t.na = 3, n.test && !t.value)
|
|
2242
2237
|
e.pop();
|
|
2243
2238
|
else
|
|
2244
|
-
return t.W = !0, new
|
|
2239
|
+
return t.W = !0, new d(n.body, t.scope);
|
|
2245
2240
|
break;
|
|
2246
2241
|
case 3:
|
|
2247
2242
|
if (t.na = 1, n.update)
|
|
2248
|
-
return new
|
|
2243
|
+
return new d(n.update, t.scope);
|
|
2249
2244
|
}
|
|
2250
2245
|
};
|
|
2251
2246
|
f.prototype.stepFunctionDeclaration = function(e) {
|
|
2252
2247
|
e.pop();
|
|
2253
2248
|
};
|
|
2254
2249
|
f.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2255
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = Ft(this, e)), t.value =
|
|
2250
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = Ft(this, e)), t.value = Ut(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Mt);
|
|
2256
2251
|
};
|
|
2257
2252
|
f.prototype.stepIdentifier = function(e, t, n) {
|
|
2258
2253
|
if (e.pop(), t.sa)
|
|
2259
2254
|
e[e.length - 1].value = [je, n.name];
|
|
2260
2255
|
else {
|
|
2261
2256
|
if (t = Lt(this, n.name), this.P)
|
|
2262
|
-
return
|
|
2257
|
+
return Ve(this, t, this.Na);
|
|
2263
2258
|
e[e.length - 1].value = t;
|
|
2264
2259
|
}
|
|
2265
2260
|
};
|
|
2266
2261
|
f.prototype.stepIfStatement = f.prototype.stepConditionalExpression;
|
|
2267
2262
|
f.prototype.stepLabeledStatement = function(e, t, n) {
|
|
2268
|
-
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new
|
|
2263
|
+
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new d(n.body, t.scope), t.labels = e, t;
|
|
2269
2264
|
};
|
|
2270
2265
|
f.prototype.stepLiteral = function(e, t, n) {
|
|
2271
|
-
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma),
|
|
2266
|
+
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), bt(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2272
2267
|
};
|
|
2273
2268
|
f.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2274
2269
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
2275
2270
|
throw SyntaxError("Unknown logical operator: " + n.operator);
|
|
2276
2271
|
if (!t.ja)
|
|
2277
|
-
return t.ja = !0, new
|
|
2272
|
+
return t.ja = !0, new d(n.left, t.scope);
|
|
2278
2273
|
if (t.Da)
|
|
2279
2274
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2280
2275
|
else if (n.operator === "&&" && !t.value || n.operator === "||" && t.value)
|
|
2281
2276
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2282
2277
|
else
|
|
2283
|
-
return t.Da = !0, new
|
|
2278
|
+
return t.Da = !0, new d(n.right, t.scope);
|
|
2284
2279
|
};
|
|
2285
2280
|
f.prototype.stepMemberExpression = function(e, t, n) {
|
|
2286
2281
|
if (!t.Ca)
|
|
2287
|
-
return t.Ca = !0, new
|
|
2282
|
+
return t.Ca = !0, new d(n.object, t.scope);
|
|
2288
2283
|
if (n.bb)
|
|
2289
2284
|
if (t.Vb)
|
|
2290
2285
|
n = t.value;
|
|
2291
2286
|
else
|
|
2292
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2287
|
+
return t.u = t.value, t.Vb = !0, new d(n.Wa, t.scope);
|
|
2293
2288
|
else
|
|
2294
2289
|
t.u = t.value, n = n.Wa.name;
|
|
2295
2290
|
if (e.pop(), t.sa)
|
|
2296
2291
|
e[e.length - 1].value = [t.u, n];
|
|
2297
2292
|
else {
|
|
2298
2293
|
if (n = this.G(t.u, n), this.P)
|
|
2299
|
-
return
|
|
2294
|
+
return Ve(this, n, t.u);
|
|
2300
2295
|
e[e.length - 1].value = n;
|
|
2301
2296
|
}
|
|
2302
2297
|
};
|
|
@@ -2316,10 +2311,10 @@ f.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2316
2311
|
s = u.value;
|
|
2317
2312
|
else
|
|
2318
2313
|
throw SyntaxError("Unknown object structure: " + u.type);
|
|
2319
|
-
return t.Pa = s, new
|
|
2314
|
+
return t.Pa = s, new d(i.value, t.scope);
|
|
2320
2315
|
}
|
|
2321
2316
|
for (u in t.Ja)
|
|
2322
|
-
n = t.Ja[u], "get" in n || "set" in n ? this.g(t.u, u,
|
|
2317
|
+
n = t.Ja[u], "get" in n || "set" in n ? this.g(t.u, u, Le, {
|
|
2323
2318
|
configurable: !0,
|
|
2324
2319
|
enumerable: !0,
|
|
2325
2320
|
get: n.get,
|
|
@@ -2329,35 +2324,35 @@ f.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2329
2324
|
};
|
|
2330
2325
|
f.prototype.stepProgram = function(e, t, n) {
|
|
2331
2326
|
if (e = n.body.shift())
|
|
2332
|
-
return t.done = !1, new
|
|
2327
|
+
return t.done = !1, new d(e, t.scope);
|
|
2333
2328
|
t.done = !0;
|
|
2334
2329
|
};
|
|
2335
2330
|
f.prototype.stepReturnStatement = function(e, t, n) {
|
|
2336
2331
|
if (n.K && !t.ka)
|
|
2337
|
-
return t.ka = !0, new
|
|
2338
|
-
|
|
2332
|
+
return t.ka = !0, new d(n.K, t.scope);
|
|
2333
|
+
Ge(this, 3, t.value);
|
|
2339
2334
|
};
|
|
2340
2335
|
f.prototype.stepSequenceExpression = function(e, t, n) {
|
|
2341
2336
|
var r = t.A || 0;
|
|
2342
2337
|
if (n = n.xb[r])
|
|
2343
|
-
return t.A = r + 1, new
|
|
2338
|
+
return t.A = r + 1, new d(n, t.scope);
|
|
2344
2339
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2345
2340
|
};
|
|
2346
2341
|
f.prototype.stepSwitchStatement = function(e, t, n) {
|
|
2347
2342
|
if (!t.ga)
|
|
2348
|
-
return t.ga = 1, new
|
|
2343
|
+
return t.ga = 1, new d(n.Qb, t.scope);
|
|
2349
2344
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2350
2345
|
var r = t.gb || 0, i = n.tb[r];
|
|
2351
2346
|
if (t.Ha || !i || i.test)
|
|
2352
2347
|
if (i || t.Ha || t.cb === -1)
|
|
2353
2348
|
if (i) {
|
|
2354
2349
|
if (!t.Ha && !t.Fb && i.test)
|
|
2355
|
-
return t.Fb = !0, new
|
|
2350
|
+
return t.Fb = !0, new d(i.test, t.scope);
|
|
2356
2351
|
if (t.Ha || t.value === t.hc) {
|
|
2357
2352
|
t.Ha = !0;
|
|
2358
2353
|
var s = t.A || 0;
|
|
2359
2354
|
if (i.da[s])
|
|
2360
|
-
return t.Zb = !0, t.A = s + 1, new
|
|
2355
|
+
return t.Zb = !0, t.A = s + 1, new d(i.da[s], t.scope);
|
|
2361
2356
|
}
|
|
2362
2357
|
t.Fb = !1, t.A = 0, t.gb = r + 1;
|
|
2363
2358
|
} else {
|
|
@@ -2375,22 +2370,22 @@ f.prototype.stepThisExpression = function(e) {
|
|
|
2375
2370
|
};
|
|
2376
2371
|
f.prototype.stepThrowStatement = function(e, t, n) {
|
|
2377
2372
|
if (t.ka)
|
|
2378
|
-
|
|
2373
|
+
m(this, t.value);
|
|
2379
2374
|
else
|
|
2380
|
-
return t.ka = !0, new
|
|
2375
|
+
return t.ka = !0, new d(n.K, t.scope);
|
|
2381
2376
|
};
|
|
2382
2377
|
f.prototype.stepTryStatement = function(e, t, n) {
|
|
2383
2378
|
if (!t.Rb)
|
|
2384
|
-
return t.Rb = !0, new
|
|
2379
|
+
return t.Rb = !0, new d(n.block, t.scope);
|
|
2385
2380
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2386
|
-
return t.Tb = !0, e = Ft(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new
|
|
2381
|
+
return t.Tb = !0, e = Ft(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new d(n.Ea.body, e);
|
|
2387
2382
|
if (!t.Sb && n.fb)
|
|
2388
|
-
return t.Sb = !0, new
|
|
2389
|
-
e.pop(), t.ea &&
|
|
2383
|
+
return t.Sb = !0, new d(n.fb, t.scope);
|
|
2384
|
+
e.pop(), t.ea && Ge(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2390
2385
|
};
|
|
2391
2386
|
f.prototype.stepUnaryExpression = function(e, t, n) {
|
|
2392
2387
|
if (!t.ka)
|
|
2393
|
-
return t.ka = !0, e = new
|
|
2388
|
+
return t.ka = !0, e = new d(n.K, t.scope), e.sa = n.operator === "delete", e;
|
|
2394
2389
|
e.pop();
|
|
2395
2390
|
var r = t.value;
|
|
2396
2391
|
switch (n.operator) {
|
|
@@ -2413,7 +2408,7 @@ f.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2413
2408
|
try {
|
|
2414
2409
|
delete i.h[r];
|
|
2415
2410
|
} catch {
|
|
2416
|
-
t.scope.S ?
|
|
2411
|
+
t.scope.S ? m(this, this.j, "Cannot delete property '" + r + "' of '" + i + "'") : n = !1;
|
|
2417
2412
|
}
|
|
2418
2413
|
}
|
|
2419
2414
|
r = n;
|
|
@@ -2431,11 +2426,11 @@ f.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2431
2426
|
};
|
|
2432
2427
|
f.prototype.stepUpdateExpression = function(e, t, n) {
|
|
2433
2428
|
if (!t.ja)
|
|
2434
|
-
return t.ja = !0, e = new
|
|
2429
|
+
return t.ja = !0, e = new d(n.K, t.scope), e.sa = !0, e;
|
|
2435
2430
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2436
|
-
var r =
|
|
2431
|
+
var r = Bt(this, t.Ga);
|
|
2437
2432
|
if (t.ma = r, this.P)
|
|
2438
|
-
return t.Ba = !0,
|
|
2433
|
+
return t.Ba = !0, Ve(this, r, t.Ga);
|
|
2439
2434
|
}
|
|
2440
2435
|
if (t.ta)
|
|
2441
2436
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
@@ -2446,26 +2441,26 @@ f.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2446
2441
|
i = r - 1;
|
|
2447
2442
|
else
|
|
2448
2443
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2449
|
-
if (n = n.prefix ? i : r, r =
|
|
2450
|
-
return t.ta = !0, t.ib = n,
|
|
2444
|
+
if (n = n.prefix ? i : r, r = Gt(this, t.Ga, i))
|
|
2445
|
+
return t.ta = !0, t.ib = n, Vt(this, r, t.Ga, i);
|
|
2451
2446
|
e.pop(), e[e.length - 1].value = n;
|
|
2452
2447
|
}
|
|
2453
2448
|
};
|
|
2454
2449
|
f.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2455
2450
|
n = n.fa;
|
|
2456
2451
|
var r = t.A || 0, i = n[r];
|
|
2457
|
-
for (t.Bb && i && (
|
|
2452
|
+
for (t.Bb && i && (Rr(this, i.id.name, t.value), t.Bb = !1, i = n[++r]); i; ) {
|
|
2458
2453
|
if (i.ua)
|
|
2459
|
-
return t.A = r, t.Bb = !0, t.Pa = i.id.name, new
|
|
2454
|
+
return t.A = r, t.Bb = !0, t.Pa = i.id.name, new d(i.ua, t.scope);
|
|
2460
2455
|
i = n[++r];
|
|
2461
2456
|
}
|
|
2462
2457
|
e.pop();
|
|
2463
2458
|
};
|
|
2464
2459
|
f.prototype.stepWithStatement = function(e, t, n) {
|
|
2465
|
-
return t.Ca ? (e.pop(), e = Ft(this, t.scope, t.value), new
|
|
2460
|
+
return t.Ca ? (e.pop(), e = Ft(this, t.scope, t.value), new d(n.body, e)) : (t.Ca = !0, new d(n.object, t.scope));
|
|
2466
2461
|
};
|
|
2467
2462
|
f.prototype.stepWhileStatement = f.prototype.stepDoWhileStatement;
|
|
2468
|
-
|
|
2463
|
+
ae.Interpreter = f;
|
|
2469
2464
|
f.prototype.step = f.prototype.lb;
|
|
2470
2465
|
f.prototype.run = f.prototype.Eb;
|
|
2471
2466
|
f.prototype.appendCode = f.prototype.Jb;
|
|
@@ -2480,21 +2475,37 @@ f.prototype.pseudoToNative = f.prototype.R;
|
|
|
2480
2475
|
f.prototype.getGlobalScope = f.prototype.Xb;
|
|
2481
2476
|
f.prototype.getStateStack = f.prototype.Yb;
|
|
2482
2477
|
f.prototype.setStateStack = f.prototype.ec;
|
|
2483
|
-
f.VALUE_IN_DESCRIPTOR =
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
return
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
}
|
|
2497
|
-
|
|
2478
|
+
f.VALUE_IN_DESCRIPTOR = Le;
|
|
2479
|
+
function xn() {
|
|
2480
|
+
const e = f.prototype.getProperty, t = f.prototype.setProperty;
|
|
2481
|
+
function n(u, h) {
|
|
2482
|
+
if (u == null || !u._connected)
|
|
2483
|
+
return e.call(this, u, h);
|
|
2484
|
+
const y = u._connected[h];
|
|
2485
|
+
return Array.isArray(y) ? this.nativeToPseudo(y) : typeof y == "object" ? this.createConnectedObject(y) : y;
|
|
2486
|
+
}
|
|
2487
|
+
function r(u, h, y, I) {
|
|
2488
|
+
if (u == null || !u._connected)
|
|
2489
|
+
return t.call(this, u, h, y, I);
|
|
2490
|
+
u._connected[h] = this.pseudoToNative(y);
|
|
2491
|
+
}
|
|
2492
|
+
const i = [], s = [];
|
|
2493
|
+
for (const u of Object.keys(f.prototype))
|
|
2494
|
+
f.prototype[u] === e && i.push(u), f.prototype[u] === t && s.push(u);
|
|
2495
|
+
for (const u of i)
|
|
2496
|
+
f.prototype[u] = n;
|
|
2497
|
+
for (const u of s)
|
|
2498
|
+
f.prototype[u] = r;
|
|
2499
|
+
f.prototype.createConnectedObject = function(u) {
|
|
2500
|
+
const h = this.createObject(this.OBJECT);
|
|
2501
|
+
return h._connected = u, h;
|
|
2502
|
+
};
|
|
2503
|
+
}
|
|
2504
|
+
xn();
|
|
2505
|
+
const jn = (e) => e.replace(/^.*?function main\(\)/, `
|
|
2506
|
+
var __awaiter = function (e, t, n, r) {return r()},
|
|
2507
|
+
__generator = function (e, t) { return t() };
|
|
2508
|
+
function main()`).replace(/\?\./g, "."), Ar = (e) => e + "JSON", Sn = ({
|
|
2498
2509
|
builder: e,
|
|
2499
2510
|
context: t,
|
|
2500
2511
|
event: n,
|
|
@@ -2503,43 +2514,58 @@ const jn = (e) => e.split(`
|
|
|
2503
2514
|
rootSetState: s,
|
|
2504
2515
|
code: u
|
|
2505
2516
|
}) => {
|
|
2506
|
-
const h = {
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2517
|
+
const h = Rt({
|
|
2518
|
+
rootState: r,
|
|
2519
|
+
localState: i,
|
|
2520
|
+
rootSetState: s
|
|
2521
|
+
}), y = Ir({
|
|
2510
2522
|
builder: e,
|
|
2511
2523
|
context: t,
|
|
2512
2524
|
event: n,
|
|
2513
2525
|
state: h
|
|
2514
|
-
}),
|
|
2515
|
-
const
|
|
2516
|
-
return `var ${
|
|
2526
|
+
}), I = y.map(([G]) => {
|
|
2527
|
+
const ne = Ar(G);
|
|
2528
|
+
return G === "state" ? "" : `var ${G} = ${ne} === undefined ? undefined : JSON.parse(${ne});`;
|
|
2517
2529
|
}).join(`
|
|
2518
|
-
`),
|
|
2519
|
-
if (
|
|
2520
|
-
|
|
2530
|
+
`), C = jn(u);
|
|
2531
|
+
if (C === "") {
|
|
2532
|
+
Nt.warn("Skipping evaluation of empty code block.");
|
|
2521
2533
|
return;
|
|
2522
2534
|
}
|
|
2523
2535
|
const A = `
|
|
2524
2536
|
function theFunction() {
|
|
2525
|
-
${
|
|
2537
|
+
${I}
|
|
2526
2538
|
|
|
2527
|
-
${
|
|
2539
|
+
${C}
|
|
2528
2540
|
}
|
|
2529
2541
|
theFunction();
|
|
2530
|
-
`,
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2542
|
+
`, Xe = function(G, ne) {
|
|
2543
|
+
y.forEach(([pe, S]) => {
|
|
2544
|
+
if (pe === "state")
|
|
2545
|
+
G.setProperty(ne, pe, G.createConnectedObject(S), G.READONLY_DESCRIPTOR);
|
|
2546
|
+
else {
|
|
2547
|
+
const Se = JSON.stringify(S);
|
|
2548
|
+
G.setProperty(ne, Ar(pe), Se);
|
|
2549
|
+
}
|
|
2550
|
+
});
|
|
2551
|
+
}, J = new f(A, Xe);
|
|
2552
|
+
return J.run(), J.pseudoToNative(J.value);
|
|
2553
|
+
};
|
|
2554
|
+
function kn() {
|
|
2555
|
+
var e;
|
|
2556
|
+
return typeof process != "undefined" && en((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2557
|
+
}
|
|
2558
|
+
const On = ({
|
|
2559
|
+
shouldLogWarning: e
|
|
2560
|
+
}) => {
|
|
2561
|
+
var i;
|
|
2562
|
+
if (!kn())
|
|
2563
|
+
return !1;
|
|
2564
|
+
const t = process.arch === "arm64", n = process.version.startsWith("v20"), r = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
2565
|
+
return t && n && !r ? (e && Nt.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2566
|
+
}, Cn = (e) => Ct() || On({
|
|
2541
2567
|
shouldLogWarning: !0
|
|
2542
|
-
}) ?
|
|
2568
|
+
}) ? nn(e) : Sn(e), An = !0, Q = class Q {
|
|
2543
2569
|
static getCacheKey(t) {
|
|
2544
2570
|
return JSON.stringify({
|
|
2545
2571
|
...t,
|
|
@@ -2557,9 +2583,9 @@ theFunction();
|
|
|
2557
2583
|
});
|
|
2558
2584
|
}
|
|
2559
2585
|
};
|
|
2560
|
-
|
|
2586
|
+
kt(Q, "cacheLimit", 20), kt(Q, "cache", /* @__PURE__ */ new Map());
|
|
2561
2587
|
let we = Q;
|
|
2562
|
-
function
|
|
2588
|
+
function Nn({
|
|
2563
2589
|
code: e,
|
|
2564
2590
|
context: t,
|
|
2565
2591
|
localState: n,
|
|
@@ -2571,37 +2597,36 @@ function Tn({
|
|
|
2571
2597
|
}) {
|
|
2572
2598
|
if (e === "")
|
|
2573
2599
|
return;
|
|
2574
|
-
const
|
|
2575
|
-
code:
|
|
2600
|
+
const y = {
|
|
2601
|
+
code: rn(e, {
|
|
2576
2602
|
isExpression: u
|
|
2577
2603
|
}),
|
|
2578
|
-
builder:
|
|
2604
|
+
builder: tn(),
|
|
2579
2605
|
context: t,
|
|
2580
2606
|
event: s,
|
|
2581
2607
|
rootSetState: i,
|
|
2582
2608
|
rootState: r,
|
|
2583
2609
|
localState: n
|
|
2584
2610
|
};
|
|
2585
|
-
if (h && !
|
|
2586
|
-
const
|
|
2587
|
-
if (
|
|
2588
|
-
return
|
|
2611
|
+
if (h && !An) {
|
|
2612
|
+
const I = we.getCacheKey(y), C = we.getCachedValue(I);
|
|
2613
|
+
if (C)
|
|
2614
|
+
return C.value;
|
|
2589
2615
|
}
|
|
2590
2616
|
try {
|
|
2591
|
-
const
|
|
2617
|
+
const I = Cn(y);
|
|
2592
2618
|
if (h) {
|
|
2593
|
-
const
|
|
2594
|
-
we.setCachedValue(
|
|
2619
|
+
const C = we.getCacheKey(y);
|
|
2620
|
+
we.setCachedValue(C, I);
|
|
2595
2621
|
}
|
|
2596
|
-
return
|
|
2597
|
-
} catch (
|
|
2598
|
-
|
|
2622
|
+
return I;
|
|
2623
|
+
} catch (I) {
|
|
2624
|
+
Nt.error("Failed code evaluation: " + I.message, {
|
|
2599
2625
|
code: e
|
|
2600
2626
|
});
|
|
2601
2627
|
return;
|
|
2602
2628
|
}
|
|
2603
2629
|
}
|
|
2604
2630
|
export {
|
|
2605
|
-
|
|
2606
|
-
tn as set
|
|
2631
|
+
Nn as evaluate
|
|
2607
2632
|
};
|