@builder.io/sdk-solid 0.5.9 → 0.6.1
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/README.md +0 -4
- package/dist/index.d.ts +51 -0
- package/lib/browser/dev.js +4790 -0
- package/lib/browser/dev.jsx +4392 -0
- package/lib/browser/index.js +4767 -0
- package/lib/browser/index.jsx +4374 -0
- package/lib/edge/dev.js +7921 -0
- package/lib/edge/dev.jsx +7525 -0
- package/lib/edge/index.js +7898 -0
- package/lib/edge/index.jsx +7507 -0
- package/lib/node/dev.js +4790 -0
- package/lib/node/dev.jsx +4392 -0
- package/lib/node/index.js +4767 -0
- package/lib/node/index.jsx +4374 -0
- package/package.json +86 -14
- package/CHANGELOG.md +0 -102
- package/solid-index.jsx +0 -5
- package/src/blocks/BaseText.jsx +0 -11
- package/src/blocks/button/button.jsx +0 -41
- package/src/blocks/button/component-info.js +0 -34
- package/src/blocks/columns/columns.jsx +0 -174
- package/src/blocks/columns/component-info.js +0 -218
- package/src/blocks/custom-code/component-info.js +0 -24
- package/src/blocks/custom-code/custom-code.jsx +0 -62
- package/src/blocks/embed/component-info.js +0 -37
- package/src/blocks/embed/embed.jsx +0 -50
- package/src/blocks/embed/helpers.js +0 -3
- package/src/blocks/form/component-info.js +0 -223
- package/src/blocks/form/form.jsx +0 -5
- package/src/blocks/fragment/component-info.js +0 -8
- package/src/blocks/fragment/fragment.jsx +0 -5
- package/src/blocks/helpers.js +0 -27
- package/src/blocks/image/component-info.js +0 -122
- package/src/blocks/image/image.helpers.js +0 -46
- package/src/blocks/image/image.jsx +0 -122
- package/src/blocks/img/component-info.js +0 -15
- package/src/blocks/img/img.jsx +0 -20
- package/src/blocks/input/component-info.js +0 -45
- package/src/blocks/input/input.jsx +0 -22
- package/src/blocks/raw-text/component-info.js +0 -11
- package/src/blocks/raw-text/raw-text.jsx +0 -10
- package/src/blocks/section/component-info.js +0 -41
- package/src/blocks/section/section.jsx +0 -26
- package/src/blocks/select/component-info.js +0 -44
- package/src/blocks/select/select.jsx +0 -30
- package/src/blocks/submit-button/component-info.js +0 -23
- package/src/blocks/submit-button/submit-button.jsx +0 -11
- package/src/blocks/symbol/component-info.js +0 -35
- package/src/blocks/symbol/symbol.helpers.js +0 -60
- package/src/blocks/symbol/symbol.jsx +0 -64
- package/src/blocks/text/component-info.js +0 -20
- package/src/blocks/text/text.jsx +0 -14
- package/src/blocks/textarea/component-info.js +0 -38
- package/src/blocks/textarea/textarea.jsx +0 -16
- package/src/blocks/video/component-info.js +0 -83
- package/src/blocks/video/video.jsx +0 -61
- package/src/components/block/block.helpers.js +0 -99
- package/src/components/block/block.jsx +0 -167
- package/src/components/block/components/block-styles.jsx +0 -85
- package/src/components/block/components/block-wrapper.jsx +0 -50
- package/src/components/block/components/component-ref/component-ref.helpers.js +0 -41
- package/src/components/block/components/component-ref/component-ref.jsx +0 -59
- package/src/components/block/components/interactive-element.jsx +0 -30
- package/src/components/block/components/repeated-block.jsx +0 -20
- package/src/components/block/types.js +0 -0
- package/src/components/blocks/blocks-wrapper.jsx +0 -66
- package/src/components/blocks/blocks.jsx +0 -57
- package/src/components/content/components/enable-editor.jsx +0 -347
- package/src/components/content/components/styles.helpers.js +0 -56
- package/src/components/content/components/styles.jsx +0 -36
- package/src/components/content/content.helpers.js +0 -48
- package/src/components/content/content.jsx +0 -136
- package/src/components/content/content.types.js +0 -0
- package/src/components/content/index.js +0 -2
- package/src/components/content/wrap-component-ref.js +0 -2
- package/src/components/content-variants/content-variants.jsx +0 -115
- package/src/components/content-variants/content-variants.types.js +0 -0
- package/src/components/content-variants/helpers.js +0 -158
- package/src/components/inlined-script.jsx +0 -5
- package/src/components/inlined-styles.jsx +0 -5
- package/src/constants/builder-registered-components.js +0 -63
- package/src/constants/device-sizes.js +0 -48
- package/src/constants/sdk-version.js +0 -1
- package/src/constants/target.js +0 -4
- package/src/context/builder.context.js +0 -16
- package/src/context/components.context.js +0 -5
- package/src/context/types.js +0 -0
- package/src/functions/apply-patch-with-mutation.js +0 -66
- package/src/functions/camel-to-kebab-case.js +0 -2
- package/src/functions/evaluate/browser-runtime/browser.js +0 -40
- package/src/functions/evaluate/browser-runtime/index.js +0 -2
- package/src/functions/evaluate/evaluate.js +0 -49
- package/src/functions/evaluate/helpers.js +0 -15
- package/src/functions/evaluate/index.js +0 -2
- package/src/functions/evaluate/node-runtime/index.js +0 -2
- package/src/functions/evaluate/non-node-runtime/acorn-interpreter.js +0 -2876
- package/src/functions/evaluate/non-node-runtime/index.js +0 -18
- package/src/functions/evaluate/non-node-runtime/non-node-runtime.js +0 -91
- package/src/functions/event-handler-name.js +0 -5
- package/src/functions/extract-text-styles.js +0 -14
- package/src/functions/fast-clone.js +0 -2
- package/src/functions/fetch-builder-props.js +0 -60
- package/src/functions/get-block-actions-handler.js +0 -11
- package/src/functions/get-block-actions.js +0 -29
- package/src/functions/get-block-component-options.js +0 -27
- package/src/functions/get-block-properties.js +0 -63
- package/src/functions/get-builder-search-params/index.js +0 -33
- package/src/functions/get-content/generate-content-url.js +0 -59
- package/src/functions/get-content/index.js +0 -116
- package/src/functions/get-content/types.js +0 -0
- package/src/functions/get-fetch.js +0 -12
- package/src/functions/get-global-this.js +0 -16
- package/src/functions/get-processed-block.js +0 -74
- package/src/functions/get-react-native-block-styles.js +0 -32
- package/src/functions/is-browser.js +0 -4
- package/src/functions/is-editing.js +0 -6
- package/src/functions/is-iframe.js +0 -5
- package/src/functions/is-non-node-server.js +0 -9
- package/src/functions/is-previewing.js +0 -12
- package/src/functions/on-change.js +0 -24
- package/src/functions/register-component.js +0 -60
- package/src/functions/register.js +0 -27
- package/src/functions/sanitize-react-native-block-styles.js +0 -71
- package/src/functions/set-editor-settings.js +0 -13
- package/src/functions/set.js +0 -9
- package/src/functions/track/helpers.js +0 -48
- package/src/functions/track/index.js +0 -131
- package/src/functions/track/interaction.js +0 -57
- package/src/functions/transform-block-properties.js +0 -4
- package/src/functions/transform-block.js +0 -4
- package/src/helpers/ab-tests.js +0 -158
- package/src/helpers/canTrack.js +0 -3
- package/src/helpers/cookie.js +0 -77
- package/src/helpers/css.js +0 -30
- package/src/helpers/flatten.js +0 -31
- package/src/helpers/localStorage.js +0 -32
- package/src/helpers/logger.js +0 -8
- package/src/helpers/nullable.js +0 -2
- package/src/helpers/preview-lru-cache/get.js +0 -4
- package/src/helpers/preview-lru-cache/helpers.js +0 -0
- package/src/helpers/preview-lru-cache/init.js +0 -2
- package/src/helpers/preview-lru-cache/set.js +0 -31
- package/src/helpers/preview-lru-cache/types.js +0 -0
- package/src/helpers/sessionId.js +0 -55
- package/src/helpers/time.js +0 -3
- package/src/helpers/url.js +0 -11
- package/src/helpers/uuid.js +0 -11
- package/src/helpers/visitorId.js +0 -35
- package/src/index-helpers/blocks-exports.js +0 -13
- package/src/index-helpers/top-of-file.js +0 -2
- package/src/index.js +0 -3
- package/src/scripts/init-editing.js +0 -109
- package/src/server-index.js +0 -11
- package/src/types/api-version.js +0 -2
- package/src/types/builder-block.js +0 -0
- package/src/types/builder-content.js +0 -0
- package/src/types/builder-props.js +0 -0
- package/src/types/can-track.js +0 -0
- package/src/types/components.js +0 -0
- package/src/types/deep-partial.js +0 -0
- package/src/types/element.js +0 -0
- package/src/types/enforced-partials.js +0 -0
- package/src/types/input.js +0 -0
- package/src/types/targets.js +0 -0
- package/src/types/typescript.js +0 -0
- package/vite.config.ts +0 -18
|
@@ -1,2876 +0,0 @@
|
|
|
1
|
-
var p;
|
|
2
|
-
var ca = function (a) {
|
|
3
|
-
function b(f) {
|
|
4
|
-
return 48 > f ? f === 36 : 58 > f ? true : 65 > f ? false : 91 > f ? true : 97 > f ? f === 95 : 123 > f ? true : 170 <= f && Jc.test(String.fromCharCode(f));
|
|
5
|
-
}
|
|
6
|
-
function d(f) {
|
|
7
|
-
return 65 > f ? f === 36 : 91 > f ? true : 97 > f ? f === 95 : 123 > f ? true : 170 <= f && Pb.test(String.fromCharCode(f));
|
|
8
|
-
}
|
|
9
|
-
function c(f, g) {
|
|
10
|
-
var l = r;
|
|
11
|
-
for (var n = 1, w = 0;;) {
|
|
12
|
-
Sa.lastIndex = w;
|
|
13
|
-
var J = Sa.exec(l);
|
|
14
|
-
if (J && J.index < f) ++n, w = J.index + J[0].length;else break;
|
|
15
|
-
}
|
|
16
|
-
l = {
|
|
17
|
-
line: n,
|
|
18
|
-
ab: f - w
|
|
19
|
-
};
|
|
20
|
-
g += " (" + l.line + ":" + l.ab + ")";
|
|
21
|
-
g = new SyntaxError(g);
|
|
22
|
-
g.j = f;
|
|
23
|
-
g.X = l;
|
|
24
|
-
g.o = m;
|
|
25
|
-
throw g;
|
|
26
|
-
}
|
|
27
|
-
function e(f) {
|
|
28
|
-
f = f.split(" ");
|
|
29
|
-
for (var g = Object.create(null), l = 0; l < f.length; l++) g[f[l]] = true;
|
|
30
|
-
return function (n) {
|
|
31
|
-
return g[n] || false;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
function h() {
|
|
35
|
-
this.line = la;
|
|
36
|
-
this.ab = m - X;
|
|
37
|
-
}
|
|
38
|
-
function k(f, g) {
|
|
39
|
-
oa = m;
|
|
40
|
-
z.C && (cb = new h());
|
|
41
|
-
x = f;
|
|
42
|
-
C();
|
|
43
|
-
T = g;
|
|
44
|
-
ya = f.m;
|
|
45
|
-
}
|
|
46
|
-
function q() {
|
|
47
|
-
for (var f = m, g = z.va && z.C && new h(), l = r.charCodeAt(m += 2); m < pa && l !== 10 && l !== 13 && l !== 8232 && l !== 8233;) ++m, l = r.charCodeAt(m);
|
|
48
|
-
z.va && z.va(false, r.slice(f + 2, m), f, m, g, z.C && new h());
|
|
49
|
-
}
|
|
50
|
-
function C() {
|
|
51
|
-
for (; m < pa;) {
|
|
52
|
-
var f = r.charCodeAt(m);
|
|
53
|
-
if (f === 32) ++m;else if (f === 13) ++m, f = r.charCodeAt(m), f === 10 && ++m, z.C && (++la, X = m);else if (f === 10 || f === 8232 || f === 8233) ++m, z.C && (++la, X = m);else if (8 < f && 14 > f) ++m;else if (f === 47) {
|
|
54
|
-
if (f = r.charCodeAt(m + 1), f === 42) {
|
|
55
|
-
f = void 0;
|
|
56
|
-
var g = z.va && z.C && new h(),
|
|
57
|
-
l = m,
|
|
58
|
-
n = r.indexOf("*/", m += 2);
|
|
59
|
-
n === -1 && c(m - 2, "Unterminated comment");
|
|
60
|
-
m = n + 2;
|
|
61
|
-
if (z.C) for (Sa.lastIndex = l; (f = Sa.exec(r)) && f.index < m;) ++la, X = f.index + f[0].length;
|
|
62
|
-
z.va && z.va(true, r.slice(l + 2, n), l, m, g, z.C && new h());
|
|
63
|
-
} else if (f === 47) q();else break;
|
|
64
|
-
} else if (f === 160) ++m;else if (5760 <= f && Kc.test(String.fromCharCode(f))) ++m;else break;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
function U(f) {
|
|
68
|
-
switch (f) {
|
|
69
|
-
case 46:
|
|
70
|
-
f = r.charCodeAt(m + 1);
|
|
71
|
-
48 <= f && 57 >= f ? Qb(true) : (++m, k(Rb));
|
|
72
|
-
return;
|
|
73
|
-
case 40:
|
|
74
|
-
return ++m, k(Y);
|
|
75
|
-
case 41:
|
|
76
|
-
return ++m, k(W);
|
|
77
|
-
case 59:
|
|
78
|
-
return ++m, k(Z);
|
|
79
|
-
case 44:
|
|
80
|
-
return ++m, k(ha);
|
|
81
|
-
case 91:
|
|
82
|
-
return ++m, k(db);
|
|
83
|
-
case 93:
|
|
84
|
-
return ++m, k(eb);
|
|
85
|
-
case 123:
|
|
86
|
-
return ++m, k(za);
|
|
87
|
-
case 125:
|
|
88
|
-
return ++m, k(qa);
|
|
89
|
-
case 58:
|
|
90
|
-
return ++m, k(Aa);
|
|
91
|
-
case 63:
|
|
92
|
-
return ++m, k(Sb);
|
|
93
|
-
case 48:
|
|
94
|
-
if (f = r.charCodeAt(m + 1), f === 120 || f === 88) {
|
|
95
|
-
m += 2;
|
|
96
|
-
f = Ba(16);
|
|
97
|
-
f === null && c(I + 2, "Expected hexadecimal number");
|
|
98
|
-
d(r.charCodeAt(m)) && c(m, "Identifier directly after number");
|
|
99
|
-
k(Ca, f);
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
case 49:
|
|
103
|
-
case 50:
|
|
104
|
-
case 51:
|
|
105
|
-
case 52:
|
|
106
|
-
case 53:
|
|
107
|
-
case 54:
|
|
108
|
-
case 55:
|
|
109
|
-
case 56:
|
|
110
|
-
case 57:
|
|
111
|
-
return Qb(false);
|
|
112
|
-
case 34:
|
|
113
|
-
case 39:
|
|
114
|
-
m++;
|
|
115
|
-
for (var g = "";;) {
|
|
116
|
-
m >= pa && c(I, "Unterminated string constant");
|
|
117
|
-
var l = r.charCodeAt(m);
|
|
118
|
-
if (l === f) {
|
|
119
|
-
++m;
|
|
120
|
-
k(Ta, g);
|
|
121
|
-
break;
|
|
122
|
-
}
|
|
123
|
-
if (l === 92) {
|
|
124
|
-
l = r.charCodeAt(++m);
|
|
125
|
-
var n = /^[0-7]+/.exec(r.slice(m, m + 3));
|
|
126
|
-
for (n && (n = n[0]); n && 255 < parseInt(n, 8);) n = n.slice(0, -1);
|
|
127
|
-
n === "0" && (n = null);
|
|
128
|
-
++m;
|
|
129
|
-
if (n) S && c(m - 2, "Octal literal in strict mode"), g += String.fromCharCode(parseInt(n, 8)), m += n.length - 1;else switch (l) {
|
|
130
|
-
case 110:
|
|
131
|
-
g += "\n";
|
|
132
|
-
break;
|
|
133
|
-
case 114:
|
|
134
|
-
g += "\r";
|
|
135
|
-
break;
|
|
136
|
-
case 120:
|
|
137
|
-
g += String.fromCharCode(Ua(2));
|
|
138
|
-
break;
|
|
139
|
-
case 117:
|
|
140
|
-
g += String.fromCharCode(Ua(4));
|
|
141
|
-
break;
|
|
142
|
-
case 85:
|
|
143
|
-
g += String.fromCharCode(Ua(8));
|
|
144
|
-
break;
|
|
145
|
-
case 116:
|
|
146
|
-
g += " ";
|
|
147
|
-
break;
|
|
148
|
-
case 98:
|
|
149
|
-
g += "\b";
|
|
150
|
-
break;
|
|
151
|
-
case 118:
|
|
152
|
-
g += "\v";
|
|
153
|
-
break;
|
|
154
|
-
case 102:
|
|
155
|
-
g += "\f";
|
|
156
|
-
break;
|
|
157
|
-
case 48:
|
|
158
|
-
g += "\0";
|
|
159
|
-
break;
|
|
160
|
-
case 13:
|
|
161
|
-
r.charCodeAt(m) === 10 && ++m;
|
|
162
|
-
case 10:
|
|
163
|
-
z.C && (X = m, ++la);
|
|
164
|
-
break;
|
|
165
|
-
default:
|
|
166
|
-
g += String.fromCharCode(l);
|
|
167
|
-
}
|
|
168
|
-
} else l !== 13 && l !== 10 && l !== 8232 && l !== 8233 || c(I, "Unterminated string constant"), g += String.fromCharCode(l), ++m;
|
|
169
|
-
}
|
|
170
|
-
return;
|
|
171
|
-
case 47:
|
|
172
|
-
f = r.charCodeAt(m + 1);
|
|
173
|
-
ya ? (++m, Tb()) : f === 61 ? F(ma, 2) : F(Ub, 1);
|
|
174
|
-
return;
|
|
175
|
-
case 37:
|
|
176
|
-
case 42:
|
|
177
|
-
r.charCodeAt(m + 1) === 61 ? F(ma, 2) : F(Lc, 1);
|
|
178
|
-
return;
|
|
179
|
-
case 124:
|
|
180
|
-
case 38:
|
|
181
|
-
g = r.charCodeAt(m + 1);
|
|
182
|
-
g === f ? F(f === 124 ? Vb : Wb, 2) : g === 61 ? F(ma, 2) : F(f === 124 ? Mc : Nc, 1);
|
|
183
|
-
return;
|
|
184
|
-
case 94:
|
|
185
|
-
r.charCodeAt(m + 1) === 61 ? F(ma, 2) : F(Oc, 1);
|
|
186
|
-
return;
|
|
187
|
-
case 43:
|
|
188
|
-
case 45:
|
|
189
|
-
g = r.charCodeAt(m + 1);
|
|
190
|
-
g === f ? g === 45 && r.charCodeAt(m + 2) === 62 && Va.test(r.slice(ia, m)) ? (m += 3, q(), C(), N()) : F(Pc, 2) : g === 61 ? F(ma, 2) : F(Qc, 1);
|
|
191
|
-
return;
|
|
192
|
-
case 60:
|
|
193
|
-
case 62:
|
|
194
|
-
g = r.charCodeAt(m + 1);
|
|
195
|
-
l = 1;
|
|
196
|
-
g === f ? (l = f === 62 && r.charCodeAt(m + 2) === 62 ? 3 : 2, r.charCodeAt(m + l) === 61 ? F(ma, l + 1) : F(Rc, l)) : g === 33 && f === 60 && r.charCodeAt(m + 2) === 45 && r.charCodeAt(m + 3) === 45 ? (m += 4, q(), C(), N()) : (g === 61 && (l = r.charCodeAt(m + 2) === 61 ? 3 : 2), F(Sc, l));
|
|
197
|
-
return;
|
|
198
|
-
case 61:
|
|
199
|
-
case 33:
|
|
200
|
-
r.charCodeAt(m + 1) === 61 ? F(Tc, r.charCodeAt(m + 2) === 61 ? 3 : 2) : F(f === 61 ? Xb : Yb, 1);
|
|
201
|
-
return;
|
|
202
|
-
case 126:
|
|
203
|
-
return F(Yb, 1);
|
|
204
|
-
}
|
|
205
|
-
return false;
|
|
206
|
-
}
|
|
207
|
-
function N(f) {
|
|
208
|
-
f ? m = I + 1 : I = m;
|
|
209
|
-
z.C && (fb = new h());
|
|
210
|
-
if (f) return Tb();
|
|
211
|
-
if (m >= pa) return k(gb);
|
|
212
|
-
f = r.charCodeAt(m);
|
|
213
|
-
if (d(f) || f === 92) return Zb();
|
|
214
|
-
if (U(f) === false) {
|
|
215
|
-
f = String.fromCharCode(f);
|
|
216
|
-
if (f === "\\" || Pb.test(f)) return Zb();
|
|
217
|
-
c(m, "Unexpected character '" + f + "'");
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
function F(f, g) {
|
|
221
|
-
var l = r.slice(m, m + g);
|
|
222
|
-
m += g;
|
|
223
|
-
k(f, l);
|
|
224
|
-
}
|
|
225
|
-
function Tb() {
|
|
226
|
-
for (var f, g, l = m;;) {
|
|
227
|
-
m >= pa && c(l, "Unterminated regexp");
|
|
228
|
-
var n = r.charAt(m);
|
|
229
|
-
Va.test(n) && c(l, "Unterminated regexp");
|
|
230
|
-
if (f) f = false;else {
|
|
231
|
-
if (n === "[") g = true;else if (n === "]" && g) g = false;else if (n === "/" && !g) break;
|
|
232
|
-
f = n === "\\";
|
|
233
|
-
}
|
|
234
|
-
++m;
|
|
235
|
-
}
|
|
236
|
-
f = r.slice(l, m);
|
|
237
|
-
++m;
|
|
238
|
-
(g = $b()) && !/^[gmi]*$/.test(g) && c(l, "Invalid regexp flag");
|
|
239
|
-
try {
|
|
240
|
-
var w = new RegExp(f, g);
|
|
241
|
-
} catch (J) {
|
|
242
|
-
throw J instanceof SyntaxError && c(l, J.message), J;
|
|
243
|
-
}
|
|
244
|
-
k(ac, w);
|
|
245
|
-
}
|
|
246
|
-
function Ba(f, g) {
|
|
247
|
-
for (var l = m, n = 0, w = g === void 0 ? Infinity : g, J = 0; J < w; ++J) {
|
|
248
|
-
var P = r.charCodeAt(m);
|
|
249
|
-
P = 97 <= P ? P - 97 + 10 : 65 <= P ? P - 65 + 10 : 48 <= P && 57 >= P ? P - 48 : Infinity;
|
|
250
|
-
if (P >= f) break;
|
|
251
|
-
++m;
|
|
252
|
-
n = n * f + P;
|
|
253
|
-
}
|
|
254
|
-
return m === l || g !== void 0 && m - l !== g ? null : n;
|
|
255
|
-
}
|
|
256
|
-
function Qb(f) {
|
|
257
|
-
var g = m,
|
|
258
|
-
l = false,
|
|
259
|
-
n = r.charCodeAt(m) === 48;
|
|
260
|
-
f || Ba(10) !== null || c(g, "Invalid number");
|
|
261
|
-
r.charCodeAt(m) === 46 && (++m, Ba(10), l = true);
|
|
262
|
-
f = r.charCodeAt(m);
|
|
263
|
-
if (f === 69 || f === 101) f = r.charCodeAt(++m), f !== 43 && f !== 45 || ++m, Ba(10) === null && c(g, "Invalid number"), l = true;
|
|
264
|
-
d(r.charCodeAt(m)) && c(m, "Identifier directly after number");
|
|
265
|
-
f = r.slice(g, m);
|
|
266
|
-
var w;
|
|
267
|
-
l ? w = parseFloat(f) : n && f.length !== 1 ? /[89]/.test(f) || S ? c(g, "Invalid number") : w = parseInt(f, 8) : w = parseInt(f, 10);
|
|
268
|
-
k(Ca, w);
|
|
269
|
-
}
|
|
270
|
-
function Ua(f) {
|
|
271
|
-
f = Ba(16, f);
|
|
272
|
-
f === null && c(I, "Bad character escape sequence");
|
|
273
|
-
return f;
|
|
274
|
-
}
|
|
275
|
-
function $b() {
|
|
276
|
-
ra = false;
|
|
277
|
-
for (var f, g = true, l = m;;) {
|
|
278
|
-
var n = r.charCodeAt(m);
|
|
279
|
-
if (b(n)) ra && (f += r.charAt(m)), ++m;else if (n === 92) {
|
|
280
|
-
ra || (f = r.slice(l, m));
|
|
281
|
-
ra = true;
|
|
282
|
-
r.charCodeAt(++m) !== 117 && c(m, "Expecting Unicode escape sequence \\uXXXX");
|
|
283
|
-
++m;
|
|
284
|
-
n = Ua(4);
|
|
285
|
-
var w = String.fromCharCode(n);
|
|
286
|
-
w || c(m - 1, "Invalid Unicode escape");
|
|
287
|
-
(g ? d(n) : b(n)) || c(m - 4, "Invalid Unicode escape");
|
|
288
|
-
f += w;
|
|
289
|
-
} else break;
|
|
290
|
-
g = false;
|
|
291
|
-
}
|
|
292
|
-
return ra ? f : r.slice(l, m);
|
|
293
|
-
}
|
|
294
|
-
function Zb() {
|
|
295
|
-
var f = $b(),
|
|
296
|
-
g = sa;
|
|
297
|
-
!ra && Uc(f) && (g = Vc[f]);
|
|
298
|
-
k(g, f);
|
|
299
|
-
}
|
|
300
|
-
function B() {
|
|
301
|
-
hb = I;
|
|
302
|
-
ia = oa;
|
|
303
|
-
ib = cb;
|
|
304
|
-
N();
|
|
305
|
-
}
|
|
306
|
-
function jb(f) {
|
|
307
|
-
S = f;
|
|
308
|
-
m = I;
|
|
309
|
-
if (z.C) for (; m < X;) X = r.lastIndexOf("\n", X - 2) + 1, --la;
|
|
310
|
-
C();
|
|
311
|
-
N();
|
|
312
|
-
}
|
|
313
|
-
function bc() {
|
|
314
|
-
this.type = null;
|
|
315
|
-
this.start = I;
|
|
316
|
-
this.end = null;
|
|
317
|
-
}
|
|
318
|
-
function cc() {
|
|
319
|
-
this.start = fb;
|
|
320
|
-
this.end = null;
|
|
321
|
-
kb && (this.source = kb);
|
|
322
|
-
}
|
|
323
|
-
function L() {
|
|
324
|
-
var f = new bc();
|
|
325
|
-
z.C && (f.X = new cc());
|
|
326
|
-
z.vb && (f.sourceFile = z.vb);
|
|
327
|
-
z.Xa && (f.j = [I, 0]);
|
|
328
|
-
return f;
|
|
329
|
-
}
|
|
330
|
-
function ja(f) {
|
|
331
|
-
var g = new bc();
|
|
332
|
-
g.start = f.start;
|
|
333
|
-
z.C && (g.X = new cc(), g.X.start = f.X.start);
|
|
334
|
-
z.Xa && (g.j = [f.j[0], 0]);
|
|
335
|
-
return g;
|
|
336
|
-
}
|
|
337
|
-
function y(f, g) {
|
|
338
|
-
f.type = g;
|
|
339
|
-
f.end = ia;
|
|
340
|
-
z.C && (f.X.end = ib);
|
|
341
|
-
z.Xa && (f.j[1] = ia);
|
|
342
|
-
return f;
|
|
343
|
-
}
|
|
344
|
-
function lb(f) {
|
|
345
|
-
return f.type === "ExpressionStatement" && f.la.type === "Literal" && f.la.value === "use strict";
|
|
346
|
-
}
|
|
347
|
-
function E(f) {
|
|
348
|
-
return x === f ? (B(), true) : false;
|
|
349
|
-
}
|
|
350
|
-
function Wa() {
|
|
351
|
-
return !z.fc && (x === gb || x === qa || Va.test(r.slice(ia, I)));
|
|
352
|
-
}
|
|
353
|
-
function na() {
|
|
354
|
-
E(Z) || Wa() || aa();
|
|
355
|
-
}
|
|
356
|
-
function G(f) {
|
|
357
|
-
x === f ? B() : aa();
|
|
358
|
-
}
|
|
359
|
-
function aa() {
|
|
360
|
-
c(I, "Unexpected token");
|
|
361
|
-
}
|
|
362
|
-
function Xa(f) {
|
|
363
|
-
f.type !== "Identifier" && f.type !== "MemberExpression" && c(f.start, "Assigning to rvalue");
|
|
364
|
-
S && f.type === "Identifier" && Ya(f.name) && c(f.start, "Assigning to " + f.name + " in strict mode");
|
|
365
|
-
}
|
|
366
|
-
function V() {
|
|
367
|
-
(x === Ub || x === ma && T === "/=") && N(true);
|
|
368
|
-
var f = x,
|
|
369
|
-
g = L();
|
|
370
|
-
switch (f) {
|
|
371
|
-
case mb:
|
|
372
|
-
case dc:
|
|
373
|
-
B();
|
|
374
|
-
var l = f === mb;
|
|
375
|
-
E(Z) || Wa() ? g.label = null : x !== sa ? aa() : (g.label = ba(), na());
|
|
376
|
-
for (var n = 0; n < H.length; ++n) {
|
|
377
|
-
var w = H[n];
|
|
378
|
-
if (g.label === null || w.name === g.label.name) {
|
|
379
|
-
if (w.kind !== null && (l || w.kind === "loop")) break;
|
|
380
|
-
if (g.label && l) break;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
n === H.length && c(g.start, "Unsyntactic " + f.l);
|
|
384
|
-
return y(g, l ? "BreakStatement" : "ContinueStatement");
|
|
385
|
-
case ec:
|
|
386
|
-
return B(), na(), y(g, "DebuggerStatement");
|
|
387
|
-
case fc:
|
|
388
|
-
return B(), H.push(nb), g.body = V(), H.pop(), G(ob), g.test = Da(), na(), y(g, "DoWhileStatement");
|
|
389
|
-
case gc:
|
|
390
|
-
B();
|
|
391
|
-
H.push(nb);
|
|
392
|
-
G(Y);
|
|
393
|
-
if (x === Z) return pb(g, null);
|
|
394
|
-
if (x === qb) return f = L(), B(), hc(f, true), y(f, "VariableDeclaration"), f.fa.length === 1 && E(Za) ? ic(g, f) : pb(g, f);
|
|
395
|
-
f = O(false, true);
|
|
396
|
-
return E(Za) ? (Xa(f), ic(g, f)) : pb(g, f);
|
|
397
|
-
case rb:
|
|
398
|
-
return B(), sb(g, true);
|
|
399
|
-
case jc:
|
|
400
|
-
return B(), g.test = Da(), g.da = V(), g.alternate = E(kc) ? V() : null, y(g, "IfStatement");
|
|
401
|
-
case lc:
|
|
402
|
-
return Ea || z.Ib || c(I, "'return' outside of function"), B(), E(Z) || Wa() ? g.K = null : (g.K = O(), na()), y(g, "ReturnStatement");
|
|
403
|
-
case tb:
|
|
404
|
-
B();
|
|
405
|
-
g.Qb = Da();
|
|
406
|
-
g.tb = [];
|
|
407
|
-
G(za);
|
|
408
|
-
for (H.push(Wc); x !== qa;) x === ub || x === mc ? (f = x === ub, n && y(n, "SwitchCase"), g.tb.push(n = L()), n.da = [], B(), f ? n.test = O() : (l && c(hb, "Multiple default clauses"), l = true, n.test = null), G(Aa)) : (n || aa(), n.da.push(V()));
|
|
409
|
-
n && y(n, "SwitchCase");
|
|
410
|
-
B();
|
|
411
|
-
H.pop();
|
|
412
|
-
return y(g, "SwitchStatement");
|
|
413
|
-
case nc:
|
|
414
|
-
return B(), Va.test(r.slice(ia, I)) && c(ia, "Illegal newline after throw"), g.K = O(), na(), y(g, "ThrowStatement");
|
|
415
|
-
case oc:
|
|
416
|
-
return B(), g.block = Fa(), g.Ea = null, x === pc && (f = L(), B(), G(Y), f.Ua = ba(), S && Ya(f.Ua.name) && c(f.Ua.start, "Binding " + f.Ua.name + " in strict mode"), G(W), f.body = Fa(), g.Ea = y(f, "CatchClause")), g.fb = E(qc) ? Fa() : null, g.Ea || g.fb || c(g.start, "Missing catch or finally clause"), y(g, "TryStatement");
|
|
417
|
-
case qb:
|
|
418
|
-
return B(), hc(g), na(), y(g, "VariableDeclaration");
|
|
419
|
-
case ob:
|
|
420
|
-
return B(), g.test = Da(), H.push(nb), g.body = V(), H.pop(), y(g, "WhileStatement");
|
|
421
|
-
case rc:
|
|
422
|
-
return S && c(I, "'with' in strict mode"), B(), g.object = Da(), g.body = V(), y(g, "WithStatement");
|
|
423
|
-
case za:
|
|
424
|
-
return Fa();
|
|
425
|
-
case Z:
|
|
426
|
-
return B(), y(g, "EmptyStatement");
|
|
427
|
-
default:
|
|
428
|
-
l = T;
|
|
429
|
-
w = O();
|
|
430
|
-
if (f === sa && w.type === "Identifier" && E(Aa)) {
|
|
431
|
-
for (n = 0; n < H.length; ++n) H[n].name === l && c(w.start, "Label '" + l + "' is already declared");
|
|
432
|
-
H.push({
|
|
433
|
-
name: l,
|
|
434
|
-
kind: x.W ? "loop" : x === tb ? "switch" : null
|
|
435
|
-
});
|
|
436
|
-
g.body = V();
|
|
437
|
-
H.pop();
|
|
438
|
-
g.label = w;
|
|
439
|
-
return y(g, "LabeledStatement");
|
|
440
|
-
}
|
|
441
|
-
g.la = w;
|
|
442
|
-
na();
|
|
443
|
-
return y(g, "ExpressionStatement");
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
function Da() {
|
|
447
|
-
G(Y);
|
|
448
|
-
var f = O();
|
|
449
|
-
G(W);
|
|
450
|
-
return f;
|
|
451
|
-
}
|
|
452
|
-
function Fa(f) {
|
|
453
|
-
var g = L(),
|
|
454
|
-
l = true,
|
|
455
|
-
n = false;
|
|
456
|
-
g.body = [];
|
|
457
|
-
for (G(za); !E(qa);) {
|
|
458
|
-
var w = V();
|
|
459
|
-
g.body.push(w);
|
|
460
|
-
if (l && f && lb(w)) {
|
|
461
|
-
var J = n;
|
|
462
|
-
jb(n = true);
|
|
463
|
-
}
|
|
464
|
-
l = false;
|
|
465
|
-
}
|
|
466
|
-
n && !J && jb(false);
|
|
467
|
-
return y(g, "BlockStatement");
|
|
468
|
-
}
|
|
469
|
-
function pb(f, g) {
|
|
470
|
-
f.ua = g;
|
|
471
|
-
G(Z);
|
|
472
|
-
f.test = x === Z ? null : O();
|
|
473
|
-
G(Z);
|
|
474
|
-
f.update = x === W ? null : O();
|
|
475
|
-
G(W);
|
|
476
|
-
f.body = V();
|
|
477
|
-
H.pop();
|
|
478
|
-
return y(f, "ForStatement");
|
|
479
|
-
}
|
|
480
|
-
function ic(f, g) {
|
|
481
|
-
f.left = g;
|
|
482
|
-
f.right = O();
|
|
483
|
-
G(W);
|
|
484
|
-
f.body = V();
|
|
485
|
-
H.pop();
|
|
486
|
-
return y(f, "ForInStatement");
|
|
487
|
-
}
|
|
488
|
-
function hc(f, g) {
|
|
489
|
-
f.fa = [];
|
|
490
|
-
for (f.kind = "var";;) {
|
|
491
|
-
var l = L();
|
|
492
|
-
l.id = ba();
|
|
493
|
-
S && Ya(l.id.name) && c(l.id.start, "Binding " + l.id.name + " in strict mode");
|
|
494
|
-
l.ua = E(Xb) ? O(true, g) : null;
|
|
495
|
-
f.fa.push(y(l, "VariableDeclarator"));
|
|
496
|
-
if (!E(ha)) break;
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
function O(f, g) {
|
|
500
|
-
var l = vb(g);
|
|
501
|
-
if (!f && x === ha) {
|
|
502
|
-
f = ja(l);
|
|
503
|
-
for (f.xb = [l]; E(ha);) f.xb.push(vb(g));
|
|
504
|
-
return y(f, "SequenceExpression");
|
|
505
|
-
}
|
|
506
|
-
return l;
|
|
507
|
-
}
|
|
508
|
-
function vb(f) {
|
|
509
|
-
var g = wb(xb(), -1, f);
|
|
510
|
-
if (E(Sb)) {
|
|
511
|
-
var l = ja(g);
|
|
512
|
-
l.test = g;
|
|
513
|
-
l.da = O(true);
|
|
514
|
-
G(Aa);
|
|
515
|
-
l.alternate = O(true, f);
|
|
516
|
-
g = y(l, "ConditionalExpression");
|
|
517
|
-
}
|
|
518
|
-
return x.Cb ? (l = ja(g), l.operator = T, l.left = g, B(), l.right = vb(f), Xa(g), y(l, "AssignmentExpression")) : g;
|
|
519
|
-
}
|
|
520
|
-
function wb(f, g, l) {
|
|
521
|
-
var n = x.L;
|
|
522
|
-
if (n !== null && (!l || x !== Za) && n > g) {
|
|
523
|
-
var w = ja(f);
|
|
524
|
-
w.left = f;
|
|
525
|
-
w.operator = T;
|
|
526
|
-
f = x;
|
|
527
|
-
B();
|
|
528
|
-
w.right = wb(xb(), n, l);
|
|
529
|
-
n = y(w, f === Vb || f === Wb ? "LogicalExpression" : "BinaryExpression");
|
|
530
|
-
return wb(n, g, l);
|
|
531
|
-
}
|
|
532
|
-
return f;
|
|
533
|
-
}
|
|
534
|
-
function xb() {
|
|
535
|
-
if (x.prefix) {
|
|
536
|
-
var f = L(),
|
|
537
|
-
g = x.$b;
|
|
538
|
-
f.operator = T;
|
|
539
|
-
ya = f.prefix = true;
|
|
540
|
-
B();
|
|
541
|
-
f.K = xb();
|
|
542
|
-
g ? Xa(f.K) : S && f.operator === "delete" && f.K.type === "Identifier" && c(f.start, "Deleting local variable in strict mode");
|
|
543
|
-
return y(f, g ? "UpdateExpression" : "UnaryExpression");
|
|
544
|
-
}
|
|
545
|
-
for (g = Ga($a()); x.cc && !Wa();) f = ja(g), f.operator = T, f.prefix = false, f.K = g, Xa(g), B(), g = y(f, "UpdateExpression");
|
|
546
|
-
return g;
|
|
547
|
-
}
|
|
548
|
-
function Ga(f, g) {
|
|
549
|
-
if (E(Rb)) {
|
|
550
|
-
var l = ja(f);
|
|
551
|
-
l.object = f;
|
|
552
|
-
l.Wa = ba(true);
|
|
553
|
-
l.bb = false;
|
|
554
|
-
return Ga(y(l, "MemberExpression"), g);
|
|
555
|
-
}
|
|
556
|
-
return E(db) ? (l = ja(f), l.object = f, l.Wa = O(), l.bb = true, G(eb), Ga(y(l, "MemberExpression"), g)) : !g && E(Y) ? (l = ja(f), l.callee = f, l.arguments = yb(W, false), Ga(y(l, "CallExpression"), g)) : f;
|
|
557
|
-
}
|
|
558
|
-
function $a() {
|
|
559
|
-
switch (x) {
|
|
560
|
-
case sc:
|
|
561
|
-
var f = L();
|
|
562
|
-
B();
|
|
563
|
-
return y(f, "ThisExpression");
|
|
564
|
-
case sa:
|
|
565
|
-
return ba();
|
|
566
|
-
case Ca:
|
|
567
|
-
case Ta:
|
|
568
|
-
case ac:
|
|
569
|
-
return f = L(), f.value = T, f.raw = r.slice(I, oa), B(), y(f, "Literal");
|
|
570
|
-
case tc:
|
|
571
|
-
case uc:
|
|
572
|
-
case vc:
|
|
573
|
-
return f = L(), f.value = x.$a, f.raw = x.l, B(), y(f, "Literal");
|
|
574
|
-
case Y:
|
|
575
|
-
f = fb;
|
|
576
|
-
var g = I;
|
|
577
|
-
B();
|
|
578
|
-
var l = O();
|
|
579
|
-
l.start = g;
|
|
580
|
-
l.end = oa;
|
|
581
|
-
z.C && (l.X.start = f, l.X.end = cb);
|
|
582
|
-
z.Xa && (l.j = [g, oa]);
|
|
583
|
-
G(W);
|
|
584
|
-
return l;
|
|
585
|
-
case db:
|
|
586
|
-
return f = L(), B(), f.elements = yb(eb, true, true), y(f, "ArrayExpression");
|
|
587
|
-
case za:
|
|
588
|
-
f = L();
|
|
589
|
-
g = true;
|
|
590
|
-
l = false;
|
|
591
|
-
f.h = [];
|
|
592
|
-
for (B(); !E(qa);) {
|
|
593
|
-
if (g) g = false;else if (G(ha), z.sb && E(qa)) break;
|
|
594
|
-
var n = {
|
|
595
|
-
key: x === Ca || x === Ta ? $a() : ba(true)
|
|
596
|
-
},
|
|
597
|
-
w = false;
|
|
598
|
-
if (E(Aa)) {
|
|
599
|
-
n.value = O(true);
|
|
600
|
-
var J = n.kind = "init";
|
|
601
|
-
} else n.key.type !== "Identifier" || n.key.name !== "get" && n.key.name !== "set" ? aa() : (w = l = true, J = n.kind = n.key.name, n.key = x === Ca || x === Ta ? $a() : ba(true), x !== Y && aa(), n.value = sb(L(), false));
|
|
602
|
-
if (n.key.type === "Identifier" && (S || l)) for (var P = 0; P < f.h.length; ++P) {
|
|
603
|
-
var ta = f.h[P];
|
|
604
|
-
if (ta.key.name === n.key.name) {
|
|
605
|
-
var zb = J === ta.kind || w && ta.kind === "init" || J === "init" && (ta.kind === "get" || ta.kind === "set");
|
|
606
|
-
zb && !S && J === "init" && ta.kind === "init" && (zb = false);
|
|
607
|
-
zb && c(n.key.start, "Redefinition of property");
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
f.h.push(n);
|
|
611
|
-
}
|
|
612
|
-
return y(f, "ObjectExpression");
|
|
613
|
-
case rb:
|
|
614
|
-
return f = L(), B(), sb(f, false);
|
|
615
|
-
case wc:
|
|
616
|
-
return f = L(), B(), f.callee = Ga($a(), true), f.arguments = E(Y) ? yb(W, false) : Xc, y(f, "NewExpression");
|
|
617
|
-
}
|
|
618
|
-
aa();
|
|
619
|
-
}
|
|
620
|
-
function sb(f, g) {
|
|
621
|
-
x === sa ? f.id = ba() : g ? aa() : f.id = null;
|
|
622
|
-
f.oa = [];
|
|
623
|
-
var l = true;
|
|
624
|
-
for (G(Y); !E(W);) l ? l = false : G(ha), f.oa.push(ba());
|
|
625
|
-
l = Ea;
|
|
626
|
-
var n = H;
|
|
627
|
-
Ea = true;
|
|
628
|
-
H = [];
|
|
629
|
-
f.body = Fa(true);
|
|
630
|
-
Ea = l;
|
|
631
|
-
H = n;
|
|
632
|
-
if (S || f.body.body.length && lb(f.body.body[0])) {
|
|
633
|
-
for (l = f.id ? -1 : 0; l < f.oa.length; ++l) if (n = 0 > l ? f.id : f.oa[l], (xc(n.name) || Ya(n.name)) && c(n.start, "Defining '" + n.name + "' in strict mode"), 0 <= l) for (var w = 0; w < l; ++w) n.name === f.oa[w].name && c(n.start, "Argument name clash in strict mode");
|
|
634
|
-
}
|
|
635
|
-
return y(f, g ? "FunctionDeclaration" : "FunctionExpression");
|
|
636
|
-
}
|
|
637
|
-
function yb(f, g, l) {
|
|
638
|
-
for (var n = [], w = true; !E(f);) {
|
|
639
|
-
if (w) w = false;else if (G(ha), g && z.sb && E(f)) break;
|
|
640
|
-
n.push(l && x === ha ? null : O(true));
|
|
641
|
-
}
|
|
642
|
-
return n;
|
|
643
|
-
}
|
|
644
|
-
function ba(f) {
|
|
645
|
-
var g = L();
|
|
646
|
-
f && z.yb === "everywhere" && (f = false);
|
|
647
|
-
x === sa ? (!f && (z.yb && Yc(T) || S && xc(T)) && r.slice(I, oa).indexOf("\\") === -1 && c(I, "The keyword '" + T + "' is reserved"), g.name = T) : f && x.l ? g.name = x.l : aa();
|
|
648
|
-
ya = false;
|
|
649
|
-
B();
|
|
650
|
-
return y(g, "Identifier");
|
|
651
|
-
}
|
|
652
|
-
a.version = "0.5.0";
|
|
653
|
-
var z,
|
|
654
|
-
r = "",
|
|
655
|
-
pa,
|
|
656
|
-
kb;
|
|
657
|
-
a.parse = function (f, g) {
|
|
658
|
-
r = String(f);
|
|
659
|
-
pa = r.length;
|
|
660
|
-
z = g || {};
|
|
661
|
-
for (var l in yc) Object.prototype.hasOwnProperty.call(z, l) || (z[l] = yc[l]);
|
|
662
|
-
kb = z.sourceFile;
|
|
663
|
-
la = 1;
|
|
664
|
-
m = X = 0;
|
|
665
|
-
ya = true;
|
|
666
|
-
C();
|
|
667
|
-
l = z.dc;
|
|
668
|
-
hb = ia = m;
|
|
669
|
-
z.C && (ib = new h());
|
|
670
|
-
Ea = S = false;
|
|
671
|
-
H = [];
|
|
672
|
-
N();
|
|
673
|
-
f = l || L();
|
|
674
|
-
g = true;
|
|
675
|
-
l || (f.body = []);
|
|
676
|
-
for (; x !== gb;) l = V(), f.body.push(l), g && lb(l) && jb(true), g = false;
|
|
677
|
-
return y(f, "Program");
|
|
678
|
-
};
|
|
679
|
-
var yc = {
|
|
680
|
-
fc: false,
|
|
681
|
-
sb: true,
|
|
682
|
-
yb: false,
|
|
683
|
-
Ib: false,
|
|
684
|
-
C: false,
|
|
685
|
-
va: null,
|
|
686
|
-
Xa: false,
|
|
687
|
-
dc: null,
|
|
688
|
-
sourceFile: null,
|
|
689
|
-
vb: null
|
|
690
|
-
},
|
|
691
|
-
m = 0,
|
|
692
|
-
I = 0,
|
|
693
|
-
oa = 0,
|
|
694
|
-
fb,
|
|
695
|
-
cb,
|
|
696
|
-
x,
|
|
697
|
-
T,
|
|
698
|
-
ya,
|
|
699
|
-
la,
|
|
700
|
-
X,
|
|
701
|
-
hb = 0,
|
|
702
|
-
ia = 0,
|
|
703
|
-
ib,
|
|
704
|
-
Ea,
|
|
705
|
-
H,
|
|
706
|
-
S,
|
|
707
|
-
Xc = [],
|
|
708
|
-
Ca = {
|
|
709
|
-
type: "num"
|
|
710
|
-
},
|
|
711
|
-
ac = {
|
|
712
|
-
type: "regexp"
|
|
713
|
-
},
|
|
714
|
-
Ta = {
|
|
715
|
-
type: "string"
|
|
716
|
-
},
|
|
717
|
-
sa = {
|
|
718
|
-
type: "name"
|
|
719
|
-
},
|
|
720
|
-
gb = {
|
|
721
|
-
type: "eof"
|
|
722
|
-
},
|
|
723
|
-
mb = {
|
|
724
|
-
l: "break"
|
|
725
|
-
},
|
|
726
|
-
ub = {
|
|
727
|
-
l: "case",
|
|
728
|
-
m: true
|
|
729
|
-
},
|
|
730
|
-
pc = {
|
|
731
|
-
l: "catch"
|
|
732
|
-
},
|
|
733
|
-
dc = {
|
|
734
|
-
l: "continue"
|
|
735
|
-
},
|
|
736
|
-
ec = {
|
|
737
|
-
l: "debugger"
|
|
738
|
-
},
|
|
739
|
-
mc = {
|
|
740
|
-
l: "default"
|
|
741
|
-
},
|
|
742
|
-
fc = {
|
|
743
|
-
l: "do",
|
|
744
|
-
W: true
|
|
745
|
-
},
|
|
746
|
-
kc = {
|
|
747
|
-
l: "else",
|
|
748
|
-
m: true
|
|
749
|
-
},
|
|
750
|
-
qc = {
|
|
751
|
-
l: "finally"
|
|
752
|
-
},
|
|
753
|
-
gc = {
|
|
754
|
-
l: "for",
|
|
755
|
-
W: true
|
|
756
|
-
},
|
|
757
|
-
rb = {
|
|
758
|
-
l: "function"
|
|
759
|
-
},
|
|
760
|
-
jc = {
|
|
761
|
-
l: "if"
|
|
762
|
-
},
|
|
763
|
-
lc = {
|
|
764
|
-
l: "return",
|
|
765
|
-
m: true
|
|
766
|
-
},
|
|
767
|
-
tb = {
|
|
768
|
-
l: "switch"
|
|
769
|
-
},
|
|
770
|
-
nc = {
|
|
771
|
-
l: "throw",
|
|
772
|
-
m: true
|
|
773
|
-
},
|
|
774
|
-
oc = {
|
|
775
|
-
l: "try"
|
|
776
|
-
},
|
|
777
|
-
qb = {
|
|
778
|
-
l: "var"
|
|
779
|
-
},
|
|
780
|
-
ob = {
|
|
781
|
-
l: "while",
|
|
782
|
-
W: true
|
|
783
|
-
},
|
|
784
|
-
rc = {
|
|
785
|
-
l: "with"
|
|
786
|
-
},
|
|
787
|
-
wc = {
|
|
788
|
-
l: "new",
|
|
789
|
-
m: true
|
|
790
|
-
},
|
|
791
|
-
sc = {
|
|
792
|
-
l: "this"
|
|
793
|
-
},
|
|
794
|
-
tc = {
|
|
795
|
-
l: "null",
|
|
796
|
-
$a: null
|
|
797
|
-
},
|
|
798
|
-
uc = {
|
|
799
|
-
l: "true",
|
|
800
|
-
$a: true
|
|
801
|
-
},
|
|
802
|
-
vc = {
|
|
803
|
-
l: "false",
|
|
804
|
-
$a: false
|
|
805
|
-
},
|
|
806
|
-
Za = {
|
|
807
|
-
l: "in",
|
|
808
|
-
L: 7,
|
|
809
|
-
m: true
|
|
810
|
-
},
|
|
811
|
-
Vc = {
|
|
812
|
-
"break": mb,
|
|
813
|
-
"case": ub,
|
|
814
|
-
"catch": pc,
|
|
815
|
-
"continue": dc,
|
|
816
|
-
"debugger": ec,
|
|
817
|
-
"default": mc,
|
|
818
|
-
"do": fc,
|
|
819
|
-
"else": kc,
|
|
820
|
-
"finally": qc,
|
|
821
|
-
"for": gc,
|
|
822
|
-
"function": rb,
|
|
823
|
-
"if": jc,
|
|
824
|
-
"return": lc,
|
|
825
|
-
"switch": tb,
|
|
826
|
-
"throw": nc,
|
|
827
|
-
"try": oc,
|
|
828
|
-
"var": qb,
|
|
829
|
-
"while": ob,
|
|
830
|
-
"with": rc,
|
|
831
|
-
"null": tc,
|
|
832
|
-
"true": uc,
|
|
833
|
-
"false": vc,
|
|
834
|
-
"new": wc,
|
|
835
|
-
"in": Za,
|
|
836
|
-
"instanceof": {
|
|
837
|
-
l: "instanceof",
|
|
838
|
-
L: 7,
|
|
839
|
-
m: true
|
|
840
|
-
},
|
|
841
|
-
"this": sc,
|
|
842
|
-
"typeof": {
|
|
843
|
-
l: "typeof",
|
|
844
|
-
prefix: true,
|
|
845
|
-
m: true
|
|
846
|
-
},
|
|
847
|
-
"void": {
|
|
848
|
-
l: "void",
|
|
849
|
-
prefix: true,
|
|
850
|
-
m: true
|
|
851
|
-
},
|
|
852
|
-
"delete": {
|
|
853
|
-
l: "delete",
|
|
854
|
-
prefix: true,
|
|
855
|
-
m: true
|
|
856
|
-
}
|
|
857
|
-
},
|
|
858
|
-
db = {
|
|
859
|
-
type: "[",
|
|
860
|
-
m: true
|
|
861
|
-
},
|
|
862
|
-
eb = {
|
|
863
|
-
type: "]"
|
|
864
|
-
},
|
|
865
|
-
za = {
|
|
866
|
-
type: "{",
|
|
867
|
-
m: true
|
|
868
|
-
},
|
|
869
|
-
qa = {
|
|
870
|
-
type: "}"
|
|
871
|
-
},
|
|
872
|
-
Y = {
|
|
873
|
-
type: "(",
|
|
874
|
-
m: true
|
|
875
|
-
},
|
|
876
|
-
W = {
|
|
877
|
-
type: ")"
|
|
878
|
-
},
|
|
879
|
-
ha = {
|
|
880
|
-
type: ",",
|
|
881
|
-
m: true
|
|
882
|
-
},
|
|
883
|
-
Z = {
|
|
884
|
-
type: ";",
|
|
885
|
-
m: true
|
|
886
|
-
},
|
|
887
|
-
Aa = {
|
|
888
|
-
type: ":",
|
|
889
|
-
m: true
|
|
890
|
-
},
|
|
891
|
-
Rb = {
|
|
892
|
-
type: "."
|
|
893
|
-
},
|
|
894
|
-
Sb = {
|
|
895
|
-
type: "?",
|
|
896
|
-
m: true
|
|
897
|
-
},
|
|
898
|
-
Ub = {
|
|
899
|
-
L: 10,
|
|
900
|
-
m: true
|
|
901
|
-
},
|
|
902
|
-
Xb = {
|
|
903
|
-
Cb: true,
|
|
904
|
-
m: true
|
|
905
|
-
},
|
|
906
|
-
ma = {
|
|
907
|
-
Cb: true,
|
|
908
|
-
m: true
|
|
909
|
-
},
|
|
910
|
-
Pc = {
|
|
911
|
-
cc: true,
|
|
912
|
-
prefix: true,
|
|
913
|
-
$b: true
|
|
914
|
-
},
|
|
915
|
-
Yb = {
|
|
916
|
-
prefix: true,
|
|
917
|
-
m: true
|
|
918
|
-
},
|
|
919
|
-
Vb = {
|
|
920
|
-
L: 1,
|
|
921
|
-
m: true
|
|
922
|
-
},
|
|
923
|
-
Wb = {
|
|
924
|
-
L: 2,
|
|
925
|
-
m: true
|
|
926
|
-
},
|
|
927
|
-
Mc = {
|
|
928
|
-
L: 3,
|
|
929
|
-
m: true
|
|
930
|
-
},
|
|
931
|
-
Oc = {
|
|
932
|
-
L: 4,
|
|
933
|
-
m: true
|
|
934
|
-
},
|
|
935
|
-
Nc = {
|
|
936
|
-
L: 5,
|
|
937
|
-
m: true
|
|
938
|
-
},
|
|
939
|
-
Tc = {
|
|
940
|
-
L: 6,
|
|
941
|
-
m: true
|
|
942
|
-
},
|
|
943
|
-
Sc = {
|
|
944
|
-
L: 7,
|
|
945
|
-
m: true
|
|
946
|
-
},
|
|
947
|
-
Rc = {
|
|
948
|
-
L: 8,
|
|
949
|
-
m: true
|
|
950
|
-
},
|
|
951
|
-
Qc = {
|
|
952
|
-
L: 9,
|
|
953
|
-
prefix: true,
|
|
954
|
-
m: true
|
|
955
|
-
},
|
|
956
|
-
Lc = {
|
|
957
|
-
L: 10,
|
|
958
|
-
m: true
|
|
959
|
-
},
|
|
960
|
-
Yc = e("class enum extends super const export import"),
|
|
961
|
-
xc = e("implements interface let package private protected public static yield"),
|
|
962
|
-
Ya = e("eval arguments"),
|
|
963
|
-
Uc = e("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"),
|
|
964
|
-
Kc = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,
|
|
965
|
-
Pb = RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]"),
|
|
966
|
-
Jc = RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u0620-\u0649\u0672-\u06D3\u06E7-\u06E8\u06FB-\u06FC\u0730-\u074A\u0800-\u0814\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0840-\u0857\u08E4-\u08FE\u0900-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09D7\u09DF-\u09E0\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5F-\u0B60\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2-\u0CE3\u0CE6-\u0CEF\u0D02\u0D03\u0D46-\u0D48\u0D57\u0D62-\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E34-\u0E3A\u0E40-\u0E45\u0E50-\u0E59\u0EB4-\u0EB9\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F41-\u0F47\u0F71-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1029\u1040-\u1049\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u170E-\u1710\u1720-\u1730\u1740-\u1750\u1772\u1773\u1780-\u17B2\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1920-\u192B\u1930-\u193B\u1951-\u196D\u19B0-\u19C0\u19C8-\u19C9\u19D0-\u19D9\u1A00-\u1A15\u1A20-\u1A53\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1B46-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C00-\u1C22\u1C40-\u1C49\u1C5B-\u1C7D\u1CD0-\u1CD2\u1D00-\u1DBE\u1E01-\u1F15\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2D81-\u2D96\u2DE0-\u2DFF\u3021-\u3028\u3099\u309A\uA640-\uA66D\uA674-\uA67D\uA69F\uA6F0-\uA6F1\uA7F8-\uA800\uA806\uA80B\uA823-\uA827\uA880-\uA881\uA8B4-\uA8C4\uA8D0-\uA8D9\uA8F3-\uA8F7\uA900-\uA909\uA926-\uA92D\uA930-\uA945\uA980-\uA983\uA9B3-\uA9C0\uAA00-\uAA27\uAA40-\uAA41\uAA4C-\uAA4D\uAA50-\uAA59\uAA7B\uAAE0-\uAAE9\uAAF2-\uAAF3\uABC0-\uABE1\uABEC\uABED\uABF0-\uABF9\uFB20-\uFB28\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]"),
|
|
967
|
-
Va = /[\n\r\u2028\u2029]/,
|
|
968
|
-
Sa = /\r\n|[\n\r\u2028\u2029]/g,
|
|
969
|
-
ra,
|
|
970
|
-
nb = {
|
|
971
|
-
kind: "loop"
|
|
972
|
-
},
|
|
973
|
-
Wc = {
|
|
974
|
-
kind: "switch"
|
|
975
|
-
};
|
|
976
|
-
};
|
|
977
|
-
var __this = __this = typeof globalThis === "undefined" ? void 0 : globalThis;
|
|
978
|
-
ca(__this.j || (__this.j = {}));
|
|
979
|
-
function t(a, b) {
|
|
980
|
-
typeof a === "string" && (a = da(a, "code"));
|
|
981
|
-
var d = a.constructor;
|
|
982
|
-
this.ya = function () {
|
|
983
|
-
return new d({
|
|
984
|
-
options: {}
|
|
985
|
-
});
|
|
986
|
-
};
|
|
987
|
-
var c = this.ya(),
|
|
988
|
-
e;
|
|
989
|
-
for (e in a) c[e] = e === "body" ? a[e].slice() : a[e];
|
|
990
|
-
this.ra = c;
|
|
991
|
-
this.ca = [];
|
|
992
|
-
this.qb = b;
|
|
993
|
-
this.za = false;
|
|
994
|
-
this.ba = [];
|
|
995
|
-
this.Ya = 0;
|
|
996
|
-
this.rb = Object.create(null);
|
|
997
|
-
a = /^step([A-Z]\w*)$/;
|
|
998
|
-
var h, k;
|
|
999
|
-
for (k in this) typeof this[k] === "function" && (h = k.match(a)) && (this.rb[h[1]] = this[k].bind(this));
|
|
1000
|
-
this.N = ea(this, this.ra, null);
|
|
1001
|
-
this.Na = this.N.object;
|
|
1002
|
-
this.ra = da(this.ba.join("\n"), "polyfills");
|
|
1003
|
-
this.ba = void 0;
|
|
1004
|
-
fa(this.ra);
|
|
1005
|
-
h = new u(this.ra, this.N);
|
|
1006
|
-
h.done = false;
|
|
1007
|
-
this.o = [h];
|
|
1008
|
-
this.Eb();
|
|
1009
|
-
this.value = void 0;
|
|
1010
|
-
this.ra = c;
|
|
1011
|
-
h = new u(this.ra, this.N);
|
|
1012
|
-
h.done = false;
|
|
1013
|
-
this.o.length = 0;
|
|
1014
|
-
this.o[0] = h;
|
|
1015
|
-
}
|
|
1016
|
-
var ka = {
|
|
1017
|
-
C: true,
|
|
1018
|
-
kc: 5
|
|
1019
|
-
},
|
|
1020
|
-
ua = {
|
|
1021
|
-
configurable: true,
|
|
1022
|
-
enumerable: true,
|
|
1023
|
-
writable: false
|
|
1024
|
-
},
|
|
1025
|
-
v = {
|
|
1026
|
-
configurable: true,
|
|
1027
|
-
enumerable: false,
|
|
1028
|
-
writable: true
|
|
1029
|
-
},
|
|
1030
|
-
A = {
|
|
1031
|
-
configurable: true,
|
|
1032
|
-
enumerable: false,
|
|
1033
|
-
writable: false
|
|
1034
|
-
},
|
|
1035
|
-
va = {
|
|
1036
|
-
configurable: false,
|
|
1037
|
-
enumerable: false,
|
|
1038
|
-
writable: false
|
|
1039
|
-
},
|
|
1040
|
-
wa = {
|
|
1041
|
-
configurable: false,
|
|
1042
|
-
enumerable: true,
|
|
1043
|
-
writable: true
|
|
1044
|
-
},
|
|
1045
|
-
xa = {
|
|
1046
|
-
STEP_ERROR: true
|
|
1047
|
-
},
|
|
1048
|
-
Ha = {
|
|
1049
|
-
SCOPE_REFERENCE: true
|
|
1050
|
-
},
|
|
1051
|
-
Ia = {
|
|
1052
|
-
VALUE_IN_DESCRIPTOR: true
|
|
1053
|
-
},
|
|
1054
|
-
Ja = {
|
|
1055
|
-
REGEXP_TIMEOUT: true
|
|
1056
|
-
},
|
|
1057
|
-
Ka = [],
|
|
1058
|
-
La = null,
|
|
1059
|
-
Ma = null,
|
|
1060
|
-
Na = typeof globalThis === "undefined" ? void 0 : globalThis,
|
|
1061
|
-
Oa = ["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();", "};"];
|
|
1062
|
-
function Pa(a) {
|
|
1063
|
-
var b = a >>> 0;
|
|
1064
|
-
return b === Number(a) ? b : NaN;
|
|
1065
|
-
}
|
|
1066
|
-
function Qa(a) {
|
|
1067
|
-
var b = a >>> 0;
|
|
1068
|
-
return String(b) === String(a) && b !== 4294967295 ? b : NaN;
|
|
1069
|
-
}
|
|
1070
|
-
function fa(a, b, d) {
|
|
1071
|
-
b ? a.start = b : delete a.start;
|
|
1072
|
-
d ? a.end = d : delete a.end;
|
|
1073
|
-
for (var c in a) if (c !== "loc" && a.hasOwnProperty(c)) {
|
|
1074
|
-
var e = a[c];
|
|
1075
|
-
e && typeof e === "object" && fa(e, b, d);
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
t.prototype.REGEXP_MODE = 2;
|
|
1079
|
-
t.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
1080
|
-
t.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
1081
|
-
p = t.prototype;
|
|
1082
|
-
p.P = false;
|
|
1083
|
-
p.Ka = false;
|
|
1084
|
-
p.Kb = 0;
|
|
1085
|
-
p.ic = 0;
|
|
1086
|
-
function da(a, b) {
|
|
1087
|
-
var d = {},
|
|
1088
|
-
c;
|
|
1089
|
-
for (c in ka) d[c] = ka[c];
|
|
1090
|
-
d.sourceFile = b;
|
|
1091
|
-
return Na.j.parse(a, d);
|
|
1092
|
-
}
|
|
1093
|
-
p.Jb = function (a) {
|
|
1094
|
-
var b = this.o[0];
|
|
1095
|
-
if (!b || b.node.type !== "Program") throw Error("Expecting original AST to start with a Program node");
|
|
1096
|
-
typeof a === "string" && (a = da(a, "appendCode" + this.Kb++));
|
|
1097
|
-
if (!a || a.type !== "Program") throw Error("Expecting new AST to start with a Program node");
|
|
1098
|
-
Ra(this, a, b.scope);
|
|
1099
|
-
Array.prototype.push.apply(b.node.body, a.body);
|
|
1100
|
-
b.node.body.jb = null;
|
|
1101
|
-
b.done = false;
|
|
1102
|
-
};
|
|
1103
|
-
p.lb = function () {
|
|
1104
|
-
var a = this.o,
|
|
1105
|
-
b;
|
|
1106
|
-
do {
|
|
1107
|
-
var d = a[a.length - 1];
|
|
1108
|
-
if (this.za) break;else if (!d || d.node.type === "Program" && d.done) {
|
|
1109
|
-
if (!this.ca.length) return false;
|
|
1110
|
-
d = this.ca[0];
|
|
1111
|
-
if (!d || d.time > Date.now()) d = null;else {
|
|
1112
|
-
this.ca.shift();
|
|
1113
|
-
0 <= d.interval && ab(this, d, d.interval);
|
|
1114
|
-
var c = new u(d.node, d.scope);
|
|
1115
|
-
d.zb && (c.ia = 2, c.B = this.Na, c.U = d.zb, c.Qa = true, c.F = d.Lb);
|
|
1116
|
-
d = c;
|
|
1117
|
-
}
|
|
1118
|
-
if (!d) break;
|
|
1119
|
-
}
|
|
1120
|
-
c = d.node;
|
|
1121
|
-
var e = Ma;
|
|
1122
|
-
Ma = this;
|
|
1123
|
-
try {
|
|
1124
|
-
var h = this.rb[c.type](a, d, c);
|
|
1125
|
-
} catch (k) {
|
|
1126
|
-
if (k !== xa) throw this.value !== k && (this.value = void 0), k;
|
|
1127
|
-
} finally {
|
|
1128
|
-
Ma = e;
|
|
1129
|
-
}
|
|
1130
|
-
h && a.push(h);
|
|
1131
|
-
if (this.P) throw this.value = void 0, Error("Getter not supported in this context");
|
|
1132
|
-
if (this.Ka) throw this.value = void 0, Error("Setter not supported in this context");
|
|
1133
|
-
b || c.end || (b = Date.now() + this.POLYFILL_TIMEOUT);
|
|
1134
|
-
} while (!c.end && b > Date.now());
|
|
1135
|
-
return true;
|
|
1136
|
-
};
|
|
1137
|
-
p.Eb = function () {
|
|
1138
|
-
for (; !this.za && this.lb(););
|
|
1139
|
-
return this.za;
|
|
1140
|
-
};
|
|
1141
|
-
function bb(a, b) {
|
|
1142
|
-
a.g(b, "NaN", NaN, va);
|
|
1143
|
-
a.g(b, "Infinity", Infinity, va);
|
|
1144
|
-
a.g(b, "undefined", void 0, va);
|
|
1145
|
-
a.g(b, "window", b, ua);
|
|
1146
|
-
a.g(b, "this", b, va);
|
|
1147
|
-
a.g(b, "self", b);
|
|
1148
|
-
a.M = new D(null);
|
|
1149
|
-
a.Z = new D(a.M);
|
|
1150
|
-
Ab(a, b);
|
|
1151
|
-
Bb(a, b);
|
|
1152
|
-
b.xa = a.M;
|
|
1153
|
-
a.g(b, "constructor", a.v, v);
|
|
1154
|
-
Cb(a, b);
|
|
1155
|
-
Db(a, b);
|
|
1156
|
-
Eb(a, b);
|
|
1157
|
-
Fb(a, b);
|
|
1158
|
-
Gb(a, b);
|
|
1159
|
-
Hb(a, b);
|
|
1160
|
-
Ib(a, b);
|
|
1161
|
-
Jb(a, b);
|
|
1162
|
-
Kb(a, b);
|
|
1163
|
-
var d = a.i(function () {
|
|
1164
|
-
throw EvalError("Can't happen");
|
|
1165
|
-
}, false);
|
|
1166
|
-
d.eval = true;
|
|
1167
|
-
a.g(b, "eval", d, v);
|
|
1168
|
-
a.g(b, "parseInt", a.i(parseInt, false), v);
|
|
1169
|
-
a.g(b, "parseFloat", a.i(parseFloat, false), v);
|
|
1170
|
-
a.g(b, "isNaN", a.i(isNaN, false), v);
|
|
1171
|
-
a.g(b, "isFinite", a.i(isFinite, false), v);
|
|
1172
|
-
for (var c = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], e = 0; e < c.length; e++) d = function (h) {
|
|
1173
|
-
return function (k) {
|
|
1174
|
-
try {
|
|
1175
|
-
return h(k);
|
|
1176
|
-
} catch (q) {
|
|
1177
|
-
K(a, a.Gb, q.message);
|
|
1178
|
-
}
|
|
1179
|
-
};
|
|
1180
|
-
}(c[e][0]), a.g(b, c[e][1], a.i(d, false), v);
|
|
1181
|
-
d = function (h) {
|
|
1182
|
-
return Lb(a, false, arguments);
|
|
1183
|
-
};
|
|
1184
|
-
a.g(b, "setTimeout", a.i(d, false), v);
|
|
1185
|
-
d = function (h) {
|
|
1186
|
-
return Lb(a, true, arguments);
|
|
1187
|
-
};
|
|
1188
|
-
a.g(b, "setInterval", a.i(d, false), v);
|
|
1189
|
-
d = function (h) {
|
|
1190
|
-
Mb(a, h);
|
|
1191
|
-
};
|
|
1192
|
-
a.g(b, "clearTimeout", a.i(d, false), v);
|
|
1193
|
-
d = function (h) {
|
|
1194
|
-
Mb(a, h);
|
|
1195
|
-
};
|
|
1196
|
-
a.g(b, "clearInterval", a.i(d, false), v);
|
|
1197
|
-
a.OBJECT = a.v;
|
|
1198
|
-
a.OBJECT_PROTO = a.M;
|
|
1199
|
-
a.FUNCTION = a.O;
|
|
1200
|
-
a.FUNCTION_PROTO = a.Z;
|
|
1201
|
-
a.ARRAY = a.qa;
|
|
1202
|
-
a.ARRAY_PROTO = a.La;
|
|
1203
|
-
a.REGEXP = a.I;
|
|
1204
|
-
a.REGEXP_PROTO = a.Ma;
|
|
1205
|
-
a.DATE = a.$;
|
|
1206
|
-
a.DATE_PROTO = a.nb;
|
|
1207
|
-
a.qb && a.qb(a, b);
|
|
1208
|
-
}
|
|
1209
|
-
p.Wb = 0;
|
|
1210
|
-
function Ab(a, b) {
|
|
1211
|
-
var d = /^[A-Za-z_$][\w$]*$/;
|
|
1212
|
-
var c = function (e) {
|
|
1213
|
-
var h = arguments.length ? String(arguments[arguments.length - 1]) : "",
|
|
1214
|
-
k = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1215
|
-
if (k) {
|
|
1216
|
-
k = k.split(/\s*,\s*/);
|
|
1217
|
-
for (var q = 0; q < k.length; q++) {
|
|
1218
|
-
var C = k[q];
|
|
1219
|
-
d.test(C) || K(a, a.T, "Invalid function argument: " + C);
|
|
1220
|
-
}
|
|
1221
|
-
k = k.join(", ");
|
|
1222
|
-
}
|
|
1223
|
-
try {
|
|
1224
|
-
var U = da("(function(" + k + ") {" + h + "})", "function" + a.Wb++);
|
|
1225
|
-
} catch (N) {
|
|
1226
|
-
K(a, a.T, "Invalid code: " + N.message);
|
|
1227
|
-
}
|
|
1228
|
-
U.body.length !== 1 && K(a, a.T, "Invalid code in function body");
|
|
1229
|
-
return Nb(a, U.body[0].la, a.N, "anonymous");
|
|
1230
|
-
};
|
|
1231
|
-
a.O = a.i(c, true);
|
|
1232
|
-
a.g(b, "Function", a.O, v);
|
|
1233
|
-
a.g(a.O, "prototype", a.Z, v);
|
|
1234
|
-
a.g(a.Z, "constructor", a.O, v);
|
|
1235
|
-
a.Z.Ta = function () {};
|
|
1236
|
-
a.Z.Ta.id = a.Ya++;
|
|
1237
|
-
a.Z.Ab = true;
|
|
1238
|
-
a.g(a.Z, "length", 0, A);
|
|
1239
|
-
a.Z.H = "Function";
|
|
1240
|
-
c = function (e, h) {
|
|
1241
|
-
var k = a.o[a.o.length - 1];
|
|
1242
|
-
k.U = this;
|
|
1243
|
-
k.B = e;
|
|
1244
|
-
k.F = [];
|
|
1245
|
-
h !== null && h !== void 0 && (h instanceof D ? k.F = Ob(a, h) : K(a, a.j, "CreateListFromArrayLike called on non-object"));
|
|
1246
|
-
k.eb = false;
|
|
1247
|
-
};
|
|
1248
|
-
M(a, a.O, "apply", c);
|
|
1249
|
-
c = function (e) {
|
|
1250
|
-
var h = a.o[a.o.length - 1];
|
|
1251
|
-
h.U = this;
|
|
1252
|
-
h.B = e;
|
|
1253
|
-
h.F = [];
|
|
1254
|
-
for (var k = 1; k < arguments.length; k++) h.F.push(arguments[k]);
|
|
1255
|
-
h.eb = false;
|
|
1256
|
-
};
|
|
1257
|
-
M(a, a.O, "call", c);
|
|
1258
|
-
a.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;", "}", "});", "");
|
|
1259
|
-
c = function () {
|
|
1260
|
-
return String(this);
|
|
1261
|
-
};
|
|
1262
|
-
M(a, a.O, "toString", c);
|
|
1263
|
-
a.g(a.O, "toString", a.i(c, false), v);
|
|
1264
|
-
c = function () {
|
|
1265
|
-
return this.valueOf();
|
|
1266
|
-
};
|
|
1267
|
-
M(a, a.O, "valueOf", c);
|
|
1268
|
-
a.g(a.O, "valueOf", a.i(c, false), v);
|
|
1269
|
-
}
|
|
1270
|
-
function Bb(a, b) {
|
|
1271
|
-
function d(e) {
|
|
1272
|
-
e !== void 0 && e !== null || K(a, a.j, "Cannot convert '" + e + "' to object");
|
|
1273
|
-
}
|
|
1274
|
-
var c = function (e) {
|
|
1275
|
-
if (e === void 0 || e === null) return zc(a) ? this : a.s(a.M);
|
|
1276
|
-
if (!(e instanceof D)) {
|
|
1277
|
-
var h = a.s(Ac(a, e));
|
|
1278
|
-
h.data = e;
|
|
1279
|
-
return h;
|
|
1280
|
-
}
|
|
1281
|
-
return e;
|
|
1282
|
-
};
|
|
1283
|
-
a.v = a.i(c, true);
|
|
1284
|
-
a.g(a.v, "prototype", a.M, v);
|
|
1285
|
-
a.g(a.M, "constructor", a.v, v);
|
|
1286
|
-
a.g(b, "Object", a.v, v);
|
|
1287
|
-
c = function (e) {
|
|
1288
|
-
d(e);
|
|
1289
|
-
return Bc(a, Object.getOwnPropertyNames(e instanceof D ? e.h : e));
|
|
1290
|
-
};
|
|
1291
|
-
a.g(a.v, "getOwnPropertyNames", a.i(c, false), v);
|
|
1292
|
-
c = function (e) {
|
|
1293
|
-
d(e);
|
|
1294
|
-
e instanceof D && (e = e.h);
|
|
1295
|
-
return Bc(a, Object.keys(e));
|
|
1296
|
-
};
|
|
1297
|
-
a.g(a.v, "keys", a.i(c, false), v);
|
|
1298
|
-
c = function (e) {
|
|
1299
|
-
if (e === null) return a.s(null);
|
|
1300
|
-
e instanceof D || K(a, a.j, "Object prototype may only be an Object or null, not " + e);
|
|
1301
|
-
return a.s(e);
|
|
1302
|
-
};
|
|
1303
|
-
a.g(a.v, "create", a.i(c, false), v);
|
|
1304
|
-
a.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", "");
|
|
1305
|
-
c = function (e, h, k) {
|
|
1306
|
-
h = String(h);
|
|
1307
|
-
e instanceof D || K(a, a.j, "Object.defineProperty called on non-object: " + e);
|
|
1308
|
-
k instanceof D || K(a, a.j, "Property description must be an object");
|
|
1309
|
-
!e.preventExtensions || h in e.h || K(a, a.j, "Can't define property '" + h + "', object is not extensible");
|
|
1310
|
-
a.g(e, h, Ia, k.h);
|
|
1311
|
-
return e;
|
|
1312
|
-
};
|
|
1313
|
-
a.g(a.v, "defineProperty", a.i(c, false), v);
|
|
1314
|
-
a.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;", "}", "});", "");
|
|
1315
|
-
c = function (e, h) {
|
|
1316
|
-
e instanceof D || K(a, a.j, "Object.getOwnPropertyDescriptor called on non-object: " + e);
|
|
1317
|
-
h = String(h);
|
|
1318
|
-
if (h in e.h) {
|
|
1319
|
-
var k = Object.getOwnPropertyDescriptor(e.h, h),
|
|
1320
|
-
q = e.V[h];
|
|
1321
|
-
e = e.Y[h];
|
|
1322
|
-
h = a.s(a.M);
|
|
1323
|
-
q || e ? (a.g(h, "get", q), a.g(h, "set", e)) : (a.g(h, "value", k.value), a.g(h, "writable", k.writable));
|
|
1324
|
-
a.g(h, "configurable", k.configurable);
|
|
1325
|
-
a.g(h, "enumerable", k.enumerable);
|
|
1326
|
-
return h;
|
|
1327
|
-
}
|
|
1328
|
-
};
|
|
1329
|
-
a.g(a.v, "getOwnPropertyDescriptor", a.i(c, false), v);
|
|
1330
|
-
c = function (e) {
|
|
1331
|
-
d(e);
|
|
1332
|
-
return Ac(a, e);
|
|
1333
|
-
};
|
|
1334
|
-
a.g(a.v, "getPrototypeOf", a.i(c, false), v);
|
|
1335
|
-
c = function (e) {
|
|
1336
|
-
return !!e && !e.preventExtensions;
|
|
1337
|
-
};
|
|
1338
|
-
a.g(a.v, "isExtensible", a.i(c, false), v);
|
|
1339
|
-
c = function (e) {
|
|
1340
|
-
e instanceof D && (e.preventExtensions = true);
|
|
1341
|
-
return e;
|
|
1342
|
-
};
|
|
1343
|
-
a.g(a.v, "preventExtensions", a.i(c, false), v);
|
|
1344
|
-
M(a, a.v, "toString", D.prototype.toString);
|
|
1345
|
-
M(a, a.v, "toLocaleString", D.prototype.toString);
|
|
1346
|
-
M(a, a.v, "valueOf", D.prototype.valueOf);
|
|
1347
|
-
c = function (e) {
|
|
1348
|
-
d(this);
|
|
1349
|
-
return this instanceof D ? String(e) in this.h : this.hasOwnProperty(e);
|
|
1350
|
-
};
|
|
1351
|
-
M(a, a.v, "hasOwnProperty", c);
|
|
1352
|
-
c = function (e) {
|
|
1353
|
-
d(this);
|
|
1354
|
-
return this instanceof D ? Object.prototype.propertyIsEnumerable.call(this.h, e) : this.propertyIsEnumerable(e);
|
|
1355
|
-
};
|
|
1356
|
-
M(a, a.v, "propertyIsEnumerable", c);
|
|
1357
|
-
c = function (e) {
|
|
1358
|
-
for (;;) {
|
|
1359
|
-
e = Ac(a, e);
|
|
1360
|
-
if (!e) return false;
|
|
1361
|
-
if (e === this) return true;
|
|
1362
|
-
}
|
|
1363
|
-
};
|
|
1364
|
-
M(a, a.v, "isPrototypeOf", c);
|
|
1365
|
-
}
|
|
1366
|
-
function Cb(a, b) {
|
|
1367
|
-
var d = function (c) {
|
|
1368
|
-
var e = zc(a) ? this : Cc(a),
|
|
1369
|
-
h = arguments[0];
|
|
1370
|
-
if (arguments.length === 1 && typeof h === "number") isNaN(Pa(h)) && K(a, a.ob, "Invalid array length: " + h), e.h.length = h;else {
|
|
1371
|
-
for (h = 0; h < arguments.length; h++) e.h[h] = arguments[h];
|
|
1372
|
-
e.h.length = h;
|
|
1373
|
-
}
|
|
1374
|
-
return e;
|
|
1375
|
-
};
|
|
1376
|
-
a.qa = a.i(d, true);
|
|
1377
|
-
a.La = a.qa.h.prototype;
|
|
1378
|
-
a.g(b, "Array", a.qa, v);
|
|
1379
|
-
d = function (c) {
|
|
1380
|
-
return c && c.H === "Array";
|
|
1381
|
-
};
|
|
1382
|
-
a.g(a.qa, "isArray", a.i(d, false), v);
|
|
1383
|
-
a.g(a.La, "length", 0, {
|
|
1384
|
-
configurable: false,
|
|
1385
|
-
enumerable: false,
|
|
1386
|
-
writable: true
|
|
1387
|
-
});
|
|
1388
|
-
a.La.H = "Array";
|
|
1389
|
-
a.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(',');", "}", ");", "})();", "");
|
|
1390
|
-
}
|
|
1391
|
-
function Db(a, b) {
|
|
1392
|
-
var d = function (c) {
|
|
1393
|
-
c = arguments.length ? Na.String(c) : "";
|
|
1394
|
-
return zc(a) ? (this.data = c, this) : c;
|
|
1395
|
-
};
|
|
1396
|
-
a.J = a.i(d, true);
|
|
1397
|
-
a.g(b, "String", a.J, v);
|
|
1398
|
-
a.g(a.J, "fromCharCode", a.i(String.fromCharCode, false), v);
|
|
1399
|
-
b = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" ");
|
|
1400
|
-
for (d = 0; d < b.length; d++) M(a, a.J, b[d], String.prototype[b[d]]);
|
|
1401
|
-
d = function (c, e, h) {
|
|
1402
|
-
e = a.R(e);
|
|
1403
|
-
h = a.R(h);
|
|
1404
|
-
try {
|
|
1405
|
-
return String(this).localeCompare(c, e, h);
|
|
1406
|
-
} catch (k) {
|
|
1407
|
-
K(a, a.D, "localeCompare: " + k.message);
|
|
1408
|
-
}
|
|
1409
|
-
};
|
|
1410
|
-
M(a, a.J, "localeCompare", d);
|
|
1411
|
-
d = function (c, e, h) {
|
|
1412
|
-
var k = String(this);
|
|
1413
|
-
e = e ? Number(e) : void 0;
|
|
1414
|
-
if (Q(a, c, a.I) && (c = c.data, Dc(a, c, h), a.REGEXP_MODE === 2)) {
|
|
1415
|
-
if (La) c = Ec(a, "string.split(separator, limit)", {
|
|
1416
|
-
string: k,
|
|
1417
|
-
separator: c,
|
|
1418
|
-
limit: e
|
|
1419
|
-
}, c, h), c !== Ja && h(Bc(a, c));else {
|
|
1420
|
-
var q = a.ha(),
|
|
1421
|
-
C = Fc(a, c, q, h);
|
|
1422
|
-
q.onmessage = function (U) {
|
|
1423
|
-
clearTimeout(C);
|
|
1424
|
-
h(Bc(a, U.data));
|
|
1425
|
-
};
|
|
1426
|
-
q.postMessage(["split", k, c, e]);
|
|
1427
|
-
}
|
|
1428
|
-
return;
|
|
1429
|
-
}
|
|
1430
|
-
c = k.split(c, e);
|
|
1431
|
-
h(Bc(a, c));
|
|
1432
|
-
};
|
|
1433
|
-
Gc(a, a.J, "split", d);
|
|
1434
|
-
d = function (c, e) {
|
|
1435
|
-
var h = String(this);
|
|
1436
|
-
c = Q(a, c, a.I) ? c.data : new RegExp(c);
|
|
1437
|
-
Dc(a, c, e);
|
|
1438
|
-
if (a.REGEXP_MODE === 2) {
|
|
1439
|
-
if (La) c = Ec(a, "string.match(regexp)", {
|
|
1440
|
-
string: h,
|
|
1441
|
-
regexp: c
|
|
1442
|
-
}, c, e), c !== Ja && e(c && Bc(a, c));else {
|
|
1443
|
-
var k = a.ha(),
|
|
1444
|
-
q = Fc(a, c, k, e);
|
|
1445
|
-
k.onmessage = function (C) {
|
|
1446
|
-
clearTimeout(q);
|
|
1447
|
-
e(C.data && Bc(a, C.data));
|
|
1448
|
-
};
|
|
1449
|
-
k.postMessage(["match", h, c]);
|
|
1450
|
-
}
|
|
1451
|
-
} else c = h.match(c), e(c && Bc(a, c));
|
|
1452
|
-
};
|
|
1453
|
-
Gc(a, a.J, "match", d);
|
|
1454
|
-
d = function (c, e) {
|
|
1455
|
-
var h = String(this);
|
|
1456
|
-
Q(a, c, a.I) ? c = c.data : c = new RegExp(c);
|
|
1457
|
-
Dc(a, c, e);
|
|
1458
|
-
if (a.REGEXP_MODE === 2) {
|
|
1459
|
-
if (La) c = Ec(a, "string.search(regexp)", {
|
|
1460
|
-
string: h,
|
|
1461
|
-
regexp: c
|
|
1462
|
-
}, c, e), c !== Ja && e(c);else {
|
|
1463
|
-
var k = a.ha(),
|
|
1464
|
-
q = Fc(a, c, k, e);
|
|
1465
|
-
k.onmessage = function (C) {
|
|
1466
|
-
clearTimeout(q);
|
|
1467
|
-
e(C.data);
|
|
1468
|
-
};
|
|
1469
|
-
k.postMessage(["search", h, c]);
|
|
1470
|
-
}
|
|
1471
|
-
} else e(h.search(c));
|
|
1472
|
-
};
|
|
1473
|
-
Gc(a, a.J, "search", d);
|
|
1474
|
-
d = function (c, e, h) {
|
|
1475
|
-
var k = String(this);
|
|
1476
|
-
e = String(e);
|
|
1477
|
-
if (Q(a, c, a.I) && (c = c.data, Dc(a, c, h), a.REGEXP_MODE === 2)) {
|
|
1478
|
-
if (La) c = Ec(a, "string.replace(substr, newSubstr)", {
|
|
1479
|
-
string: k,
|
|
1480
|
-
substr: c,
|
|
1481
|
-
newSubstr: e
|
|
1482
|
-
}, c, h), c !== Ja && h(c);else {
|
|
1483
|
-
var q = a.ha(),
|
|
1484
|
-
C = Fc(a, c, q, h);
|
|
1485
|
-
q.onmessage = function (U) {
|
|
1486
|
-
clearTimeout(C);
|
|
1487
|
-
h(U.data);
|
|
1488
|
-
};
|
|
1489
|
-
q.postMessage(["replace", k, c, e]);
|
|
1490
|
-
}
|
|
1491
|
-
return;
|
|
1492
|
-
}
|
|
1493
|
-
h(k.replace(c, e));
|
|
1494
|
-
};
|
|
1495
|
-
Gc(a, a.J, "replace", d);
|
|
1496
|
-
a.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;", "};", "})();", "");
|
|
1497
|
-
}
|
|
1498
|
-
function Eb(a, b) {
|
|
1499
|
-
a.mb = a.i(function (d) {
|
|
1500
|
-
d = Na.Boolean(d);
|
|
1501
|
-
return zc(a) ? (this.data = d, this) : d;
|
|
1502
|
-
}, true);
|
|
1503
|
-
a.g(b, "Boolean", a.mb, v);
|
|
1504
|
-
}
|
|
1505
|
-
function Fb(a, b) {
|
|
1506
|
-
var d = function (c) {
|
|
1507
|
-
c = arguments.length ? Na.Number(c) : 0;
|
|
1508
|
-
return zc(a) ? (this.data = c, this) : c;
|
|
1509
|
-
};
|
|
1510
|
-
a.aa = a.i(d, true);
|
|
1511
|
-
a.g(b, "Number", a.aa, v);
|
|
1512
|
-
b = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"];
|
|
1513
|
-
for (d = 0; d < b.length; d++) a.g(a.aa, b[d], Number[b[d]], va);
|
|
1514
|
-
d = function (c) {
|
|
1515
|
-
try {
|
|
1516
|
-
return Number(this).toExponential(c);
|
|
1517
|
-
} catch (e) {
|
|
1518
|
-
K(a, a.D, e.message);
|
|
1519
|
-
}
|
|
1520
|
-
};
|
|
1521
|
-
M(a, a.aa, "toExponential", d);
|
|
1522
|
-
d = function (c) {
|
|
1523
|
-
try {
|
|
1524
|
-
return Number(this).toFixed(c);
|
|
1525
|
-
} catch (e) {
|
|
1526
|
-
K(a, a.D, e.message);
|
|
1527
|
-
}
|
|
1528
|
-
};
|
|
1529
|
-
M(a, a.aa, "toFixed", d);
|
|
1530
|
-
d = function (c) {
|
|
1531
|
-
try {
|
|
1532
|
-
return Number(this).toPrecision(c);
|
|
1533
|
-
} catch (e) {
|
|
1534
|
-
K(a, a.D, e.message);
|
|
1535
|
-
}
|
|
1536
|
-
};
|
|
1537
|
-
M(a, a.aa, "toPrecision", d);
|
|
1538
|
-
d = function (c) {
|
|
1539
|
-
try {
|
|
1540
|
-
return Number(this).toString(c);
|
|
1541
|
-
} catch (e) {
|
|
1542
|
-
K(a, a.D, e.message);
|
|
1543
|
-
}
|
|
1544
|
-
};
|
|
1545
|
-
M(a, a.aa, "toString", d);
|
|
1546
|
-
d = function (c, e) {
|
|
1547
|
-
c = c ? a.R(c) : void 0;
|
|
1548
|
-
e = e ? a.R(e) : void 0;
|
|
1549
|
-
try {
|
|
1550
|
-
return Number(this).toLocaleString(c, e);
|
|
1551
|
-
} catch (h) {
|
|
1552
|
-
K(a, a.D, "toLocaleString: " + h.message);
|
|
1553
|
-
}
|
|
1554
|
-
};
|
|
1555
|
-
M(a, a.aa, "toLocaleString", d);
|
|
1556
|
-
}
|
|
1557
|
-
function Gb(a, b) {
|
|
1558
|
-
var d = function (e, h) {
|
|
1559
|
-
if (!zc(a)) return Na.Date();
|
|
1560
|
-
var k = [null].concat(Array.from(arguments));
|
|
1561
|
-
this.data = new (Function.prototype.bind.apply(Na.Date, k))();
|
|
1562
|
-
return this;
|
|
1563
|
-
};
|
|
1564
|
-
a.$ = a.i(d, true);
|
|
1565
|
-
a.nb = a.$.h.prototype;
|
|
1566
|
-
a.g(b, "Date", a.$, v);
|
|
1567
|
-
a.g(a.$, "now", a.i(Date.now, false), v);
|
|
1568
|
-
a.g(a.$, "parse", a.i(Date.parse, false), v);
|
|
1569
|
-
a.g(a.$, "UTC", a.i(Date.UTC, false), v);
|
|
1570
|
-
b = "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(" ");
|
|
1571
|
-
for (var c = 0; c < b.length; c++) d = function (e) {
|
|
1572
|
-
return function (h) {
|
|
1573
|
-
var k = this.data;
|
|
1574
|
-
k instanceof Date || K(a, a.j, e + " not called on a Date");
|
|
1575
|
-
for (var q = [], C = 0; C < arguments.length; C++) q[C] = a.R(arguments[C]);
|
|
1576
|
-
return k[e].apply(k, q);
|
|
1577
|
-
};
|
|
1578
|
-
}(b[c]), M(a, a.$, b[c], d);
|
|
1579
|
-
}
|
|
1580
|
-
function Hb(a, b) {
|
|
1581
|
-
var d = function (c, e) {
|
|
1582
|
-
if (zc(a)) var h = this;else {
|
|
1583
|
-
if (e === void 0 && Q(a, c, a.I)) return c;
|
|
1584
|
-
h = a.s(a.Ma);
|
|
1585
|
-
}
|
|
1586
|
-
c = c === void 0 ? "" : String(c);
|
|
1587
|
-
e = e ? String(e) : "";
|
|
1588
|
-
/^[gmi]*$/.test(e) || K(a, a.T, "Invalid regexp flag: " + e);
|
|
1589
|
-
try {
|
|
1590
|
-
var k = new Na.RegExp(c, e);
|
|
1591
|
-
} catch (q) {
|
|
1592
|
-
K(a, a.T, q.message);
|
|
1593
|
-
}
|
|
1594
|
-
Hc(a, h, k);
|
|
1595
|
-
return h;
|
|
1596
|
-
};
|
|
1597
|
-
a.I = a.i(d, true);
|
|
1598
|
-
a.Ma = a.I.h.prototype;
|
|
1599
|
-
a.g(b, "RegExp", a.I, v);
|
|
1600
|
-
a.g(a.I.h.prototype, "global", void 0, A);
|
|
1601
|
-
a.g(a.I.h.prototype, "ignoreCase", void 0, A);
|
|
1602
|
-
a.g(a.I.h.prototype, "multiline", void 0, A);
|
|
1603
|
-
a.g(a.I.h.prototype, "source", "(?:)", A);
|
|
1604
|
-
a.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});");
|
|
1605
|
-
d = function (c, e) {
|
|
1606
|
-
function h(N) {
|
|
1607
|
-
if (N) {
|
|
1608
|
-
var F = Bc(a, N);
|
|
1609
|
-
a.g(F, "index", N.index);
|
|
1610
|
-
a.g(F, "input", N.input);
|
|
1611
|
-
return F;
|
|
1612
|
-
}
|
|
1613
|
-
return null;
|
|
1614
|
-
}
|
|
1615
|
-
var k = this.data;
|
|
1616
|
-
c = String(c);
|
|
1617
|
-
k.lastIndex = Number(a.G(this, "lastIndex"));
|
|
1618
|
-
Dc(a, k, e);
|
|
1619
|
-
if (a.REGEXP_MODE === 2) {
|
|
1620
|
-
if (La) c = Ec(a, "regexp.exec(string)", {
|
|
1621
|
-
string: c,
|
|
1622
|
-
regexp: k
|
|
1623
|
-
}, k, e), c !== Ja && (a.g(this, "lastIndex", k.lastIndex), e(h(c)));else {
|
|
1624
|
-
var q = a.ha(),
|
|
1625
|
-
C = Fc(a, k, q, e),
|
|
1626
|
-
U = this;
|
|
1627
|
-
q.onmessage = function (N) {
|
|
1628
|
-
clearTimeout(C);
|
|
1629
|
-
a.g(U, "lastIndex", N.data[1]);
|
|
1630
|
-
e(h(N.data[0]));
|
|
1631
|
-
};
|
|
1632
|
-
q.postMessage(["exec", k, k.lastIndex, c]);
|
|
1633
|
-
}
|
|
1634
|
-
} else c = k.exec(c), a.g(this, "lastIndex", k.lastIndex), e(h(c));
|
|
1635
|
-
};
|
|
1636
|
-
Gc(a, a.I, "exec", d);
|
|
1637
|
-
}
|
|
1638
|
-
function Ib(a, b) {
|
|
1639
|
-
function d(c) {
|
|
1640
|
-
var e = a.i(function (h) {
|
|
1641
|
-
var k = zc(a) ? this : a.Aa(e);
|
|
1642
|
-
Ic(a, k, h);
|
|
1643
|
-
return k;
|
|
1644
|
-
}, true);
|
|
1645
|
-
a.g(e, "prototype", a.Aa(a.D), v);
|
|
1646
|
-
a.g(e.h.prototype, "name", c, v);
|
|
1647
|
-
a.g(b, c, e, v);
|
|
1648
|
-
return e;
|
|
1649
|
-
}
|
|
1650
|
-
a.D = a.i(function (c) {
|
|
1651
|
-
var e = zc(a) ? this : a.Aa(a.D);
|
|
1652
|
-
Ic(a, e, c);
|
|
1653
|
-
return e;
|
|
1654
|
-
}, true);
|
|
1655
|
-
a.g(b, "Error", a.D, v);
|
|
1656
|
-
a.g(a.D.h.prototype, "message", "", v);
|
|
1657
|
-
a.g(a.D.h.prototype, "name", "Error", v);
|
|
1658
|
-
d("EvalError");
|
|
1659
|
-
a.ob = d("RangeError");
|
|
1660
|
-
a.pb = d("ReferenceError");
|
|
1661
|
-
a.T = d("SyntaxError");
|
|
1662
|
-
a.j = d("TypeError");
|
|
1663
|
-
a.Gb = d("URIError");
|
|
1664
|
-
}
|
|
1665
|
-
function Jb(a, b) {
|
|
1666
|
-
var d = a.s(a.M);
|
|
1667
|
-
a.g(b, "Math", d, v);
|
|
1668
|
-
var c = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1669
|
-
for (b = 0; b < c.length; b++) a.g(d, c[b], Math[c[b]], A);
|
|
1670
|
-
c = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" ");
|
|
1671
|
-
for (b = 0; b < c.length; b++) a.g(d, c[b], a.i(Math[c[b]], false), v);
|
|
1672
|
-
}
|
|
1673
|
-
function Kb(a, b) {
|
|
1674
|
-
var d = a.s(a.M);
|
|
1675
|
-
a.g(b, "JSON", d, v);
|
|
1676
|
-
b = function (c) {
|
|
1677
|
-
try {
|
|
1678
|
-
var e = JSON.parse(String(c));
|
|
1679
|
-
} catch (h) {
|
|
1680
|
-
K(a, a.T, h.message);
|
|
1681
|
-
}
|
|
1682
|
-
return a.Ia(e);
|
|
1683
|
-
};
|
|
1684
|
-
a.g(d, "parse", a.i(b, false));
|
|
1685
|
-
b = function (c, e, h) {
|
|
1686
|
-
e && e.H === "Function" ? K(a, a.j, "Function replacer on JSON.stringify not supported") : e && e.H === "Array" ? (e = Ob(a, e), e = e.filter(function (q) {
|
|
1687
|
-
return typeof q === "string" || typeof q === "number";
|
|
1688
|
-
})) : e = null;
|
|
1689
|
-
typeof h !== "string" && typeof h !== "number" && (h = void 0);
|
|
1690
|
-
c = a.R(c);
|
|
1691
|
-
try {
|
|
1692
|
-
var k = JSON.stringify(c, e, h);
|
|
1693
|
-
} catch (q) {
|
|
1694
|
-
K(a, a.j, q.message);
|
|
1695
|
-
}
|
|
1696
|
-
return k;
|
|
1697
|
-
};
|
|
1698
|
-
a.g(d, "stringify", a.i(b, false));
|
|
1699
|
-
}
|
|
1700
|
-
function Q(a, b, d) {
|
|
1701
|
-
if (b === null || b === void 0 || !d) return false;
|
|
1702
|
-
d = d.h.prototype;
|
|
1703
|
-
if (b === d) return true;
|
|
1704
|
-
for (b = Ac(a, b); b;) {
|
|
1705
|
-
if (b === d) return true;
|
|
1706
|
-
b = b.xa;
|
|
1707
|
-
}
|
|
1708
|
-
return false;
|
|
1709
|
-
}
|
|
1710
|
-
function Hc(a, b, d) {
|
|
1711
|
-
b.data = new RegExp(d.source, d.flags);
|
|
1712
|
-
a.g(b, "lastIndex", d.lastIndex, v);
|
|
1713
|
-
a.g(b, "source", d.source, A);
|
|
1714
|
-
a.g(b, "global", d.global, A);
|
|
1715
|
-
a.g(b, "ignoreCase", d.ignoreCase, A);
|
|
1716
|
-
a.g(b, "multiline", d.multiline, A);
|
|
1717
|
-
}
|
|
1718
|
-
function Ic(a, b, d) {
|
|
1719
|
-
d && a.g(b, "message", String(d), v);
|
|
1720
|
-
d = [];
|
|
1721
|
-
for (var c = a.o.length - 1; 0 <= c; c--) {
|
|
1722
|
-
var e = a.o[c],
|
|
1723
|
-
h = e.node;
|
|
1724
|
-
h.type === "CallExpression" && (e = e.U) && d.length && (d[d.length - 1].Ob = a.G(e, "name"));
|
|
1725
|
-
!h.X || d.length && h.type !== "CallExpression" || d.push({
|
|
1726
|
-
Nb: h.X
|
|
1727
|
-
});
|
|
1728
|
-
}
|
|
1729
|
-
c = String(a.G(b, "name"));
|
|
1730
|
-
h = String(a.G(b, "message"));
|
|
1731
|
-
h = c + ": " + h + "\n";
|
|
1732
|
-
for (c = 0; c < d.length; c++) {
|
|
1733
|
-
var k = d[c].Nb;
|
|
1734
|
-
e = d[c].Ob;
|
|
1735
|
-
k = k.source + ":" + k.start.line + ":" + k.start.ab;
|
|
1736
|
-
h = e ? h + (" at " + e + " (" + k + ")\n") : h + (" at " + k + "\n");
|
|
1737
|
-
}
|
|
1738
|
-
a.g(b, "stack", h.trim(), v);
|
|
1739
|
-
}
|
|
1740
|
-
p.ha = function () {
|
|
1741
|
-
var a = this.ha.Mb;
|
|
1742
|
-
a || (a = new Blob([Oa.join("\n")], {
|
|
1743
|
-
type: "application/javascript"
|
|
1744
|
-
}), this.ha.Mb = a);
|
|
1745
|
-
return new Worker(URL.createObjectURL(a));
|
|
1746
|
-
};
|
|
1747
|
-
function Ec(a, b, d, c, e) {
|
|
1748
|
-
var h = {
|
|
1749
|
-
timeout: a.REGEXP_THREAD_TIMEOUT
|
|
1750
|
-
};
|
|
1751
|
-
try {
|
|
1752
|
-
return La.runInNewContext(b, d, h);
|
|
1753
|
-
} catch (k) {
|
|
1754
|
-
e(null), K(a, a.D, "RegExp Timeout: " + c);
|
|
1755
|
-
}
|
|
1756
|
-
return Ja;
|
|
1757
|
-
}
|
|
1758
|
-
function Dc(a, b, d) {
|
|
1759
|
-
if (a.REGEXP_MODE === 0) var c = false;else if (a.REGEXP_MODE === 1) c = true;else if (La) c = true;else if (typeof Worker === "function" && typeof URL === "function") c = true;else if (typeof require === "function") {
|
|
1760
|
-
try {
|
|
1761
|
-
La = require("vm");
|
|
1762
|
-
} catch (e) {}
|
|
1763
|
-
c = !!La;
|
|
1764
|
-
} else c = false;
|
|
1765
|
-
c || (d(null), K(a, a.D, "Regular expressions not supported: " + b));
|
|
1766
|
-
}
|
|
1767
|
-
function Fc(a, b, d, c) {
|
|
1768
|
-
return setTimeout(function () {
|
|
1769
|
-
d.terminate();
|
|
1770
|
-
c(null);
|
|
1771
|
-
try {
|
|
1772
|
-
K(a, a.D, "RegExp Timeout: " + b);
|
|
1773
|
-
} catch (e) {}
|
|
1774
|
-
}, a.REGEXP_THREAD_TIMEOUT);
|
|
1775
|
-
}
|
|
1776
|
-
p.Aa = function (a) {
|
|
1777
|
-
return this.s(a && a.h.prototype);
|
|
1778
|
-
};
|
|
1779
|
-
p.s = function (a) {
|
|
1780
|
-
if (typeof a !== "object") throw Error("Non object prototype");
|
|
1781
|
-
a = new D(a);
|
|
1782
|
-
Q(this, a, this.D) && (a.H = "Error");
|
|
1783
|
-
return a;
|
|
1784
|
-
};
|
|
1785
|
-
function Cc(a) {
|
|
1786
|
-
var b = a.s(a.La);
|
|
1787
|
-
a.g(b, "length", 0, {
|
|
1788
|
-
configurable: false,
|
|
1789
|
-
enumerable: false,
|
|
1790
|
-
writable: true
|
|
1791
|
-
});
|
|
1792
|
-
b.H = "Array";
|
|
1793
|
-
return b;
|
|
1794
|
-
}
|
|
1795
|
-
function Zc(a, b, d) {
|
|
1796
|
-
var c = a.s(a.Z);
|
|
1797
|
-
d ? (d = a.s(a.M), a.g(c, "prototype", d, v), a.g(d, "constructor", c, v)) : c.Ab = true;
|
|
1798
|
-
a.g(c, "length", b, A);
|
|
1799
|
-
c.H = "Function";
|
|
1800
|
-
return c;
|
|
1801
|
-
}
|
|
1802
|
-
function Nb(a, b, d, c) {
|
|
1803
|
-
var e = Zc(a, b.oa.length, true);
|
|
1804
|
-
e.Va = d;
|
|
1805
|
-
e.node = b;
|
|
1806
|
-
a.g(e, "name", b.id ? String(b.id.name) : c || "", A);
|
|
1807
|
-
return e;
|
|
1808
|
-
}
|
|
1809
|
-
p.i = function (a, b) {
|
|
1810
|
-
b = Zc(this, a.length, b);
|
|
1811
|
-
b.Ta = a;
|
|
1812
|
-
a.id = this.Ya++;
|
|
1813
|
-
this.g(b, "name", a.name, A);
|
|
1814
|
-
return b;
|
|
1815
|
-
};
|
|
1816
|
-
p.ub = function (a) {
|
|
1817
|
-
var b = Zc(this, a.length, true);
|
|
1818
|
-
b.Za = a;
|
|
1819
|
-
a.id = this.Ya++;
|
|
1820
|
-
this.g(b, "name", a.name, A);
|
|
1821
|
-
return b;
|
|
1822
|
-
};
|
|
1823
|
-
p.Ia = function (a) {
|
|
1824
|
-
if (a instanceof D) throw Error("Object is already pseudo");
|
|
1825
|
-
if (a === null || a === void 0 || a === true || a === false || typeof a === "string" || typeof a === "number") return a;
|
|
1826
|
-
if (a instanceof RegExp) {
|
|
1827
|
-
var b = this.s(this.Ma);
|
|
1828
|
-
Hc(this, b, a);
|
|
1829
|
-
return b;
|
|
1830
|
-
}
|
|
1831
|
-
if (a instanceof Date) return b = this.s(this.nb), b.data = new Date(a.valueOf()), b;
|
|
1832
|
-
if (typeof a === "function") {
|
|
1833
|
-
var d = this;
|
|
1834
|
-
b = Object.getOwnPropertyDescriptor(a, "prototype");
|
|
1835
|
-
return this.i(function () {
|
|
1836
|
-
var e = Array.prototype.slice.call(arguments).map(function (h) {
|
|
1837
|
-
return d.R(h);
|
|
1838
|
-
});
|
|
1839
|
-
e = a.apply(d, e);
|
|
1840
|
-
return d.Ia(e);
|
|
1841
|
-
}, !!b);
|
|
1842
|
-
}
|
|
1843
|
-
if (Array.isArray(a)) {
|
|
1844
|
-
b = Cc(this);
|
|
1845
|
-
for (var c = 0; c < a.length; c++) c in a && this.g(b, c, this.Ia(a[c]));
|
|
1846
|
-
return b;
|
|
1847
|
-
}
|
|
1848
|
-
b = this.s(this.M);
|
|
1849
|
-
for (c in a) this.g(b, c, this.Ia(a[c]));
|
|
1850
|
-
return b;
|
|
1851
|
-
};
|
|
1852
|
-
p.R = function (a, b) {
|
|
1853
|
-
if (typeof a !== "object" && typeof a !== "function" || a === null) return a;
|
|
1854
|
-
if (!(a instanceof D)) throw Error("Object is not pseudo");
|
|
1855
|
-
if (Q(this, a, this.I)) return b = new RegExp(a.data.source, a.data.flags), b.lastIndex = a.data.lastIndex, b;
|
|
1856
|
-
if (Q(this, a, this.$)) return new Date(a.data.valueOf());
|
|
1857
|
-
b = b || {
|
|
1858
|
-
hb: [],
|
|
1859
|
-
Sa: []
|
|
1860
|
-
};
|
|
1861
|
-
var d = b.hb.indexOf(a);
|
|
1862
|
-
if (d !== -1) return b.Sa[d];
|
|
1863
|
-
b.hb.push(a);
|
|
1864
|
-
if (Q(this, a, this.qa)) {
|
|
1865
|
-
d = [];
|
|
1866
|
-
b.Sa.push(d);
|
|
1867
|
-
for (var c = this.G(a, "length"), e = 0; e < c; e++) $c(this, a, e) && (d[e] = this.R(this.G(a, e), b));
|
|
1868
|
-
} else for (c in d = {}, b.Sa.push(d), a.h) e = this.R(a.h[c], b), Object.defineProperty(d, c, {
|
|
1869
|
-
value: e,
|
|
1870
|
-
writable: true,
|
|
1871
|
-
enumerable: true,
|
|
1872
|
-
configurable: true
|
|
1873
|
-
});
|
|
1874
|
-
b.hb.pop();
|
|
1875
|
-
b.Sa.pop();
|
|
1876
|
-
return d;
|
|
1877
|
-
};
|
|
1878
|
-
function Bc(a, b) {
|
|
1879
|
-
for (var d = Cc(a), c = Object.getOwnPropertyNames(b), e = 0; e < c.length; e++) a.g(d, c[e], b[c[e]]);
|
|
1880
|
-
return d;
|
|
1881
|
-
}
|
|
1882
|
-
function Ob(a, b) {
|
|
1883
|
-
var d = [],
|
|
1884
|
-
c;
|
|
1885
|
-
for (c in b.h) d[c] = a.G(b, c);
|
|
1886
|
-
d.length = Pa(a.G(b, "length")) || 0;
|
|
1887
|
-
return d;
|
|
1888
|
-
}
|
|
1889
|
-
function Ac(a, b) {
|
|
1890
|
-
switch (typeof b) {
|
|
1891
|
-
case "number":
|
|
1892
|
-
return a.aa.h.prototype;
|
|
1893
|
-
case "boolean":
|
|
1894
|
-
return a.mb.h.prototype;
|
|
1895
|
-
case "string":
|
|
1896
|
-
return a.J.h.prototype;
|
|
1897
|
-
}
|
|
1898
|
-
return b ? b.xa : null;
|
|
1899
|
-
}
|
|
1900
|
-
p.G = function (a, b) {
|
|
1901
|
-
if (this.P) throw Error("Getter not supported in that context");
|
|
1902
|
-
b = String(b);
|
|
1903
|
-
a !== void 0 && a !== null || K(this, this.j, "Cannot read property '" + b + "' of " + a);
|
|
1904
|
-
if (typeof a === "object" && !(a instanceof D)) throw TypeError("Expecting native value or pseudo object");
|
|
1905
|
-
if (b === "length") {
|
|
1906
|
-
if (Q(this, a, this.J)) return String(a).length;
|
|
1907
|
-
} else if (64 > b.charCodeAt(0) && Q(this, a, this.J)) {
|
|
1908
|
-
var d = Qa(b);
|
|
1909
|
-
if (!isNaN(d) && d < String(a).length) return String(a)[d];
|
|
1910
|
-
}
|
|
1911
|
-
do if (a.h && b in a.h) return (d = a.V[b]) ? (this.P = true, d) : a.h[b]; while (a = Ac(this, a));
|
|
1912
|
-
};
|
|
1913
|
-
function $c(a, b, d) {
|
|
1914
|
-
if (!(b instanceof D)) throw TypeError("Primitive data type has no properties");
|
|
1915
|
-
d = String(d);
|
|
1916
|
-
if (d === "length" && Q(a, b, a.J)) return true;
|
|
1917
|
-
if (Q(a, b, a.J)) {
|
|
1918
|
-
var c = Qa(d);
|
|
1919
|
-
if (!isNaN(c) && c < String(b).length) return true;
|
|
1920
|
-
}
|
|
1921
|
-
do if (b.h && d in b.h) return true; while (b = Ac(a, b));
|
|
1922
|
-
return false;
|
|
1923
|
-
}
|
|
1924
|
-
p.g = function (a, b, d, c) {
|
|
1925
|
-
if (this.Ka) throw Error("Setter not supported in that context");
|
|
1926
|
-
b = String(b);
|
|
1927
|
-
a !== void 0 && a !== null || K(this, this.j, "Cannot set property '" + b + "' of " + a);
|
|
1928
|
-
if (typeof a === "object" && !(a instanceof D)) throw TypeError("Expecting native value or pseudo object");
|
|
1929
|
-
c && ("get" in c || "set" in c) && ("value" in c || "writable" in c) && K(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1930
|
-
var e = !this.o || ad(this).S;
|
|
1931
|
-
if (a instanceof D) {
|
|
1932
|
-
if (Q(this, a, this.J)) {
|
|
1933
|
-
var h = Qa(b);
|
|
1934
|
-
if (b === "length" || !isNaN(h) && h < String(a).length) {
|
|
1935
|
-
e && K(this, this.j, "Cannot assign to read only property '" + b + "' of String '" + a.data + "'");
|
|
1936
|
-
return;
|
|
1937
|
-
}
|
|
1938
|
-
}
|
|
1939
|
-
if (a.H === "Array") if (h = a.h.length, b === "length") {
|
|
1940
|
-
if (c) {
|
|
1941
|
-
if (!("value" in c)) return;
|
|
1942
|
-
d = c.value;
|
|
1943
|
-
}
|
|
1944
|
-
d = Pa(d);
|
|
1945
|
-
isNaN(d) && K(this, this.ob, "Invalid array length");
|
|
1946
|
-
if (d < h) for (k in a.h) {
|
|
1947
|
-
var k = Qa(k);
|
|
1948
|
-
!isNaN(k) && d <= k && delete a.h[k];
|
|
1949
|
-
}
|
|
1950
|
-
} else isNaN(k = Qa(b)) || (a.h.length = Math.max(h, k + 1));
|
|
1951
|
-
if (!a.preventExtensions || b in a.h) {
|
|
1952
|
-
if (c) {
|
|
1953
|
-
e = {};
|
|
1954
|
-
"get" in c && c.get && (a.V[b] = c.get, e.get = this.g.ac);
|
|
1955
|
-
"set" in c && c.set && (a.Y[b] = c.set, e.set = this.g.bc);
|
|
1956
|
-
"configurable" in c && (e.configurable = c.configurable);
|
|
1957
|
-
"enumerable" in c && (e.enumerable = c.enumerable);
|
|
1958
|
-
"writable" in c && (e.writable = c.writable, delete a.V[b], delete a.Y[b]);
|
|
1959
|
-
"value" in c ? (e.value = c.value, delete a.V[b], delete a.Y[b]) : d !== Ia && (e.value = d, delete a.V[b], delete a.Y[b]);
|
|
1960
|
-
try {
|
|
1961
|
-
Object.defineProperty(a.h, b, e);
|
|
1962
|
-
} catch (q) {
|
|
1963
|
-
K(this, this.j, "Cannot redefine property: " + b);
|
|
1964
|
-
}
|
|
1965
|
-
"get" in c && !c.get && delete a.V[b];
|
|
1966
|
-
"set" in c && !c.set && delete a.Y[b];
|
|
1967
|
-
} else {
|
|
1968
|
-
if (d === Ia) throw ReferenceError("Value not specified");
|
|
1969
|
-
for (c = a; !(b in c.h);) if (c = Ac(this, c), !c) {
|
|
1970
|
-
c = a;
|
|
1971
|
-
break;
|
|
1972
|
-
}
|
|
1973
|
-
if (c.Y && c.Y[b]) return this.Ka = true, c.Y[b];
|
|
1974
|
-
if (c.V && c.V[b]) e && K(this, this.j, "Cannot set property '" + b + "' of object '" + a + "' which only has a getter");else try {
|
|
1975
|
-
a.h[b] = d;
|
|
1976
|
-
} catch (q) {
|
|
1977
|
-
e && K(this, this.j, "Cannot assign to read only property '" + b + "' of object '" + a + "'");
|
|
1978
|
-
}
|
|
1979
|
-
}
|
|
1980
|
-
} else e && K(this, this.j, "Can't add property '" + b + "', object is not extensible");
|
|
1981
|
-
} else e && K(this, this.j, "Can't create property '" + b + "' on '" + a + "'");
|
|
1982
|
-
};
|
|
1983
|
-
p.g.ac = function () {
|
|
1984
|
-
throw Error("Placeholder getter");
|
|
1985
|
-
};
|
|
1986
|
-
p.g.bc = function () {
|
|
1987
|
-
throw Error("Placeholder setter");
|
|
1988
|
-
};
|
|
1989
|
-
function M(a, b, d, c) {
|
|
1990
|
-
a.g(b.h.prototype, d, a.i(c, false), v);
|
|
1991
|
-
}
|
|
1992
|
-
function Gc(a, b, d, c) {
|
|
1993
|
-
a.g(b.h.prototype, d, a.ub(c), v);
|
|
1994
|
-
}
|
|
1995
|
-
function ad(a) {
|
|
1996
|
-
a = a.o[a.o.length - 1].scope;
|
|
1997
|
-
if (!a) throw Error("No scope found");
|
|
1998
|
-
return a;
|
|
1999
|
-
}
|
|
2000
|
-
function ea(a, b, d) {
|
|
2001
|
-
var c = false;
|
|
2002
|
-
if (d && d.S) c = true;else {
|
|
2003
|
-
var e = b.body && b.body[0];
|
|
2004
|
-
e && e.la && e.la.type === "Literal" && e.la.value === "use strict" && (c = true);
|
|
2005
|
-
}
|
|
2006
|
-
e = a.s(null);
|
|
2007
|
-
c = new bd(d, c, e);
|
|
2008
|
-
d || bb(a, c.object);
|
|
2009
|
-
Ra(a, b, c);
|
|
2010
|
-
return c;
|
|
2011
|
-
}
|
|
2012
|
-
function cd(a, b, d) {
|
|
2013
|
-
if (!b) throw Error("parentScope required");
|
|
2014
|
-
a = d || a.s(null);
|
|
2015
|
-
return new bd(b, b.S, a);
|
|
2016
|
-
}
|
|
2017
|
-
function dd(a, b) {
|
|
2018
|
-
for (var d = ad(a); d && d !== a.N;) {
|
|
2019
|
-
if (b in d.object.h) return d.object.h[b];
|
|
2020
|
-
d = d.Va;
|
|
2021
|
-
}
|
|
2022
|
-
if (d === a.N && $c(a, d.object, b)) return a.G(d.object, b);
|
|
2023
|
-
d = a.o[a.o.length - 1].node;
|
|
2024
|
-
d.type === "UnaryExpression" && d.operator === "typeof" || K(a, a.pb, b + " is not defined");
|
|
2025
|
-
}
|
|
2026
|
-
function ed(a, b, d) {
|
|
2027
|
-
for (var c = ad(a), e = c.S; c && c !== a.N;) {
|
|
2028
|
-
if (b in c.object.h) {
|
|
2029
|
-
try {
|
|
2030
|
-
c.object.h[b] = d;
|
|
2031
|
-
} catch (h) {
|
|
2032
|
-
e && K(a, a.j, "Cannot assign to read only variable '" + b + "'");
|
|
2033
|
-
}
|
|
2034
|
-
return;
|
|
2035
|
-
}
|
|
2036
|
-
c = c.Va;
|
|
2037
|
-
}
|
|
2038
|
-
if (c === a.N && (!e || $c(a, c.object, b))) return a.g(c.object, b, d);
|
|
2039
|
-
K(a, a.pb, b + " is not defined");
|
|
2040
|
-
}
|
|
2041
|
-
function Ra(a, b, d) {
|
|
2042
|
-
if (b.jb) var c = b.jb;else {
|
|
2043
|
-
c = Object.create(null);
|
|
2044
|
-
switch (b.type) {
|
|
2045
|
-
case "VariableDeclaration":
|
|
2046
|
-
for (var e = 0; e < b.fa.length; e++) c[b.fa[e].id.name] = true;
|
|
2047
|
-
break;
|
|
2048
|
-
case "FunctionDeclaration":
|
|
2049
|
-
c[b.id.name] = b;
|
|
2050
|
-
break;
|
|
2051
|
-
case "BlockStatement":
|
|
2052
|
-
case "CatchClause":
|
|
2053
|
-
case "DoWhileStatement":
|
|
2054
|
-
case "ForInStatement":
|
|
2055
|
-
case "ForStatement":
|
|
2056
|
-
case "IfStatement":
|
|
2057
|
-
case "LabeledStatement":
|
|
2058
|
-
case "Program":
|
|
2059
|
-
case "SwitchCase":
|
|
2060
|
-
case "SwitchStatement":
|
|
2061
|
-
case "TryStatement":
|
|
2062
|
-
case "WithStatement":
|
|
2063
|
-
case "WhileStatement":
|
|
2064
|
-
var h = b.constructor,
|
|
2065
|
-
k;
|
|
2066
|
-
for (k in b) if (k !== "loc") {
|
|
2067
|
-
var q = b[k];
|
|
2068
|
-
if (q && typeof q === "object") {
|
|
2069
|
-
if (Array.isArray(q)) for (e = 0; e < q.length; e++) {
|
|
2070
|
-
if (q[e] && q[e].constructor === h) {
|
|
2071
|
-
var C = Ra(a, q[e], d);
|
|
2072
|
-
for (k in C) c[k] = C[k];
|
|
2073
|
-
}
|
|
2074
|
-
} else if (q.constructor === h) for (k in C = Ra(a, q, d), C) c[k] = C[k];
|
|
2075
|
-
}
|
|
2076
|
-
}
|
|
2077
|
-
}
|
|
2078
|
-
b.jb = c;
|
|
2079
|
-
}
|
|
2080
|
-
for (k in c) c[k] === true ? a.g(d.object, k, void 0, wa) : a.g(d.object, k, Nb(a, c[k], d), wa);
|
|
2081
|
-
return c;
|
|
2082
|
-
}
|
|
2083
|
-
function zc(a) {
|
|
2084
|
-
return a.o[a.o.length - 1].isConstructor;
|
|
2085
|
-
}
|
|
2086
|
-
function fd(a, b) {
|
|
2087
|
-
return b[0] === Ha ? dd(a, b[1]) : a.G(b[0], b[1]);
|
|
2088
|
-
}
|
|
2089
|
-
function gd(a, b, d) {
|
|
2090
|
-
return b[0] === Ha ? ed(a, b[1], d) : a.g(b[0], b[1], d);
|
|
2091
|
-
}
|
|
2092
|
-
function K(a, b, d) {
|
|
2093
|
-
if (!a.N) throw d === void 0 ? b : d;
|
|
2094
|
-
d !== void 0 && b instanceof D && (b = a.Aa(b), Ic(a, b, d));
|
|
2095
|
-
hd(a, 4, b);
|
|
2096
|
-
throw xa;
|
|
2097
|
-
}
|
|
2098
|
-
function hd(a, b, d, c) {
|
|
2099
|
-
if (b === 0) throw TypeError("Should not unwind for NORMAL completions");
|
|
2100
|
-
var e = a.o;
|
|
2101
|
-
a: for (; 0 < e.length; e.pop()) {
|
|
2102
|
-
var h = e[e.length - 1];
|
|
2103
|
-
switch (h.node.type) {
|
|
2104
|
-
case "TryStatement":
|
|
2105
|
-
h.ea = {
|
|
2106
|
-
type: b,
|
|
2107
|
-
value: d,
|
|
2108
|
-
label: c
|
|
2109
|
-
};
|
|
2110
|
-
return;
|
|
2111
|
-
case "CallExpression":
|
|
2112
|
-
case "NewExpression":
|
|
2113
|
-
if (b === 3) {
|
|
2114
|
-
h.value = d;
|
|
2115
|
-
return;
|
|
2116
|
-
}
|
|
2117
|
-
if (b !== 4) throw Error("Unsynatctic break/continue not rejected by Acorn");
|
|
2118
|
-
break;
|
|
2119
|
-
case "Program":
|
|
2120
|
-
h.done = true;
|
|
2121
|
-
break a;
|
|
2122
|
-
}
|
|
2123
|
-
if (b === 1) {
|
|
2124
|
-
if (c ? h.labels && h.labels.indexOf(c) !== -1 : h.W || h.Zb) {
|
|
2125
|
-
e.pop();
|
|
2126
|
-
return;
|
|
2127
|
-
}
|
|
2128
|
-
} else if (b === 2 && (c ? h.labels && h.labels.indexOf(c) !== -1 : h.W)) return;
|
|
2129
|
-
}
|
|
2130
|
-
Q(a, d, a.D) ? (b = {
|
|
2131
|
-
EvalError,
|
|
2132
|
-
RangeError,
|
|
2133
|
-
ReferenceError,
|
|
2134
|
-
SyntaxError,
|
|
2135
|
-
TypeError,
|
|
2136
|
-
URIError
|
|
2137
|
-
}, c = String(a.G(d, "name")), e = a.G(d, "message").valueOf(), b = (b[c] || Error)(e), b.stack = String(a.G(d, "stack"))) : b = String(d);
|
|
2138
|
-
a.value = b;
|
|
2139
|
-
throw b;
|
|
2140
|
-
}
|
|
2141
|
-
function R(a, b) {
|
|
2142
|
-
switch (b.type) {
|
|
2143
|
-
case "ArrayExpression":
|
|
2144
|
-
return "[...]";
|
|
2145
|
-
case "BinaryExpression":
|
|
2146
|
-
case "LogicalExpression":
|
|
2147
|
-
return R(a, b.left) + " " + b.operator + " " + R(a, b.right);
|
|
2148
|
-
case "CallExpression":
|
|
2149
|
-
return R(a, b.callee) + "(...)";
|
|
2150
|
-
case "ConditionalExpression":
|
|
2151
|
-
return R(a, b.test) + " ? " + R(a, b.da) + " : " + R(a, b.alternate);
|
|
2152
|
-
case "Identifier":
|
|
2153
|
-
return b.name;
|
|
2154
|
-
case "Literal":
|
|
2155
|
-
return b.raw;
|
|
2156
|
-
case "MemberExpression":
|
|
2157
|
-
var d = R(a, b.object);
|
|
2158
|
-
a = R(a, b.Wa);
|
|
2159
|
-
return b.bb ? d + "[" + a + "]" : d + "." + a;
|
|
2160
|
-
case "NewExpression":
|
|
2161
|
-
return "new " + R(a, b.callee) + "(...)";
|
|
2162
|
-
case "ObjectExpression":
|
|
2163
|
-
return "{...}";
|
|
2164
|
-
case "ThisExpression":
|
|
2165
|
-
return "this";
|
|
2166
|
-
case "UnaryExpression":
|
|
2167
|
-
return b.operator + " " + R(a, b.K);
|
|
2168
|
-
case "UpdateExpression":
|
|
2169
|
-
return d = R(a, b.K), b.prefix ? b.operator + d : d + b.operator;
|
|
2170
|
-
}
|
|
2171
|
-
return "???";
|
|
2172
|
-
}
|
|
2173
|
-
function Lb(a, b, d) {
|
|
2174
|
-
var c = a.o[a.o.length - 1],
|
|
2175
|
-
e = Array.from(d),
|
|
2176
|
-
h = e.shift();
|
|
2177
|
-
d = Math.max(Number(e.shift() || 0), 0);
|
|
2178
|
-
var k = a.ya();
|
|
2179
|
-
if (h instanceof D && h.H === "Function") {
|
|
2180
|
-
var q = h;
|
|
2181
|
-
k.type = "CallExpression";
|
|
2182
|
-
c = c.scope;
|
|
2183
|
-
} else {
|
|
2184
|
-
try {
|
|
2185
|
-
var C = da(String(h), "taskCode" + a.ic++);
|
|
2186
|
-
} catch (U) {
|
|
2187
|
-
K(a, a.T, "Invalid code: " + U.message);
|
|
2188
|
-
}
|
|
2189
|
-
k.type = "EvalProgram_";
|
|
2190
|
-
k.body = C.body;
|
|
2191
|
-
c = c.node.arguments[0];
|
|
2192
|
-
fa(k, c ? c.start : void 0, c ? c.end : void 0);
|
|
2193
|
-
c = a.N;
|
|
2194
|
-
e.length = 0;
|
|
2195
|
-
}
|
|
2196
|
-
b = new id(q, e, c, k, b ? d : -1);
|
|
2197
|
-
ab(a, b, d);
|
|
2198
|
-
return b.Db;
|
|
2199
|
-
}
|
|
2200
|
-
function ab(a, b, d) {
|
|
2201
|
-
b.time = Date.now() + d;
|
|
2202
|
-
a.ca.push(b);
|
|
2203
|
-
a.ca.sort(function (c, e) {
|
|
2204
|
-
return c.time - e.time;
|
|
2205
|
-
});
|
|
2206
|
-
}
|
|
2207
|
-
function Mb(a, b) {
|
|
2208
|
-
for (var d = 0; d < a.ca.length; d++) if (a.ca[d].Db == b) {
|
|
2209
|
-
a.ca.splice(d, 1);
|
|
2210
|
-
break;
|
|
2211
|
-
}
|
|
2212
|
-
}
|
|
2213
|
-
function jd(a, b, d) {
|
|
2214
|
-
if (!a.P) throw Error("Unexpected call to createGetter");
|
|
2215
|
-
a.P = false;
|
|
2216
|
-
d = Array.isArray(d) ? d[0] : d;
|
|
2217
|
-
var c = a.ya();
|
|
2218
|
-
c.type = "CallExpression";
|
|
2219
|
-
a = new u(c, a.o[a.o.length - 1].scope);
|
|
2220
|
-
a.ia = 2;
|
|
2221
|
-
a.B = d;
|
|
2222
|
-
a.U = b;
|
|
2223
|
-
a.Qa = true;
|
|
2224
|
-
a.F = [];
|
|
2225
|
-
return a;
|
|
2226
|
-
}
|
|
2227
|
-
function kd(a, b, d, c) {
|
|
2228
|
-
if (!a.Ka) throw Error("Unexpected call to createSetter");
|
|
2229
|
-
a.Ka = false;
|
|
2230
|
-
d = Array.isArray(d) ? d[0] : a.Na;
|
|
2231
|
-
var e = a.ya();
|
|
2232
|
-
e.type = "CallExpression";
|
|
2233
|
-
a = new u(e, a.o[a.o.length - 1].scope);
|
|
2234
|
-
a.ia = 2;
|
|
2235
|
-
a.B = d;
|
|
2236
|
-
a.U = b;
|
|
2237
|
-
a.Qa = true;
|
|
2238
|
-
a.F = [c];
|
|
2239
|
-
return a;
|
|
2240
|
-
}
|
|
2241
|
-
function ld(a, b) {
|
|
2242
|
-
return b === void 0 || b === null ? a.Na : b instanceof D ? b : (a = a.s(Ac(a, b)), a.data = b, a);
|
|
2243
|
-
}
|
|
2244
|
-
p.Xb = function () {
|
|
2245
|
-
return this.N;
|
|
2246
|
-
};
|
|
2247
|
-
p.Yb = function () {
|
|
2248
|
-
return this.o;
|
|
2249
|
-
};
|
|
2250
|
-
p.ec = function (a) {
|
|
2251
|
-
this.o = a;
|
|
2252
|
-
};
|
|
2253
|
-
function u(a, b) {
|
|
2254
|
-
this.node = a;
|
|
2255
|
-
this.scope = b;
|
|
2256
|
-
}
|
|
2257
|
-
function bd(a, b, d) {
|
|
2258
|
-
this.Va = a;
|
|
2259
|
-
this.S = b;
|
|
2260
|
-
this.object = d;
|
|
2261
|
-
}
|
|
2262
|
-
function D(a) {
|
|
2263
|
-
this.V = Object.create(null);
|
|
2264
|
-
this.Y = Object.create(null);
|
|
2265
|
-
this.h = Object.create(null);
|
|
2266
|
-
this.xa = a;
|
|
2267
|
-
}
|
|
2268
|
-
p = D.prototype;
|
|
2269
|
-
p.xa = null;
|
|
2270
|
-
p.H = "Object";
|
|
2271
|
-
p.data = null;
|
|
2272
|
-
p.toString = function () {
|
|
2273
|
-
if (!Ma) return "[object Interpreter.Object]";
|
|
2274
|
-
if (!(this instanceof D)) return String(this);
|
|
2275
|
-
if (this.H === "Array") {
|
|
2276
|
-
var a = Ka;
|
|
2277
|
-
a.push(this);
|
|
2278
|
-
try {
|
|
2279
|
-
var b = [],
|
|
2280
|
-
d = this.h.length,
|
|
2281
|
-
c = false;
|
|
2282
|
-
1024 < d && (d = 1e3, c = true);
|
|
2283
|
-
for (var e = 0; e < d; e++) {
|
|
2284
|
-
var h = this.h[e];
|
|
2285
|
-
b[e] = h instanceof D && a.indexOf(h) !== -1 ? "..." : h;
|
|
2286
|
-
}
|
|
2287
|
-
c && b.push("...");
|
|
2288
|
-
} finally {
|
|
2289
|
-
a.pop();
|
|
2290
|
-
}
|
|
2291
|
-
return b.join(",");
|
|
2292
|
-
}
|
|
2293
|
-
if (this.H === "Error") {
|
|
2294
|
-
a = Ka;
|
|
2295
|
-
if (a.indexOf(this) !== -1) return "[object Error]";
|
|
2296
|
-
d = this;
|
|
2297
|
-
do if ("name" in d.h) {
|
|
2298
|
-
b = d.h.name;
|
|
2299
|
-
break;
|
|
2300
|
-
} while (d = d.xa);
|
|
2301
|
-
d = this;
|
|
2302
|
-
do if ("message" in d.h) {
|
|
2303
|
-
c = d.h.message;
|
|
2304
|
-
break;
|
|
2305
|
-
} while (d = d.xa);
|
|
2306
|
-
a.push(this);
|
|
2307
|
-
try {
|
|
2308
|
-
b = b && String(b), c = c && String(c);
|
|
2309
|
-
} finally {
|
|
2310
|
-
a.pop();
|
|
2311
|
-
}
|
|
2312
|
-
return c ? b + ": " + c : String(b);
|
|
2313
|
-
}
|
|
2314
|
-
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
2315
|
-
};
|
|
2316
|
-
p.valueOf = function () {
|
|
2317
|
-
return !Ma || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2318
|
-
};
|
|
2319
|
-
function id(a, b, d, c, e) {
|
|
2320
|
-
this.zb = a;
|
|
2321
|
-
this.Lb = b;
|
|
2322
|
-
this.scope = d;
|
|
2323
|
-
this.node = c;
|
|
2324
|
-
this.interval = e;
|
|
2325
|
-
this.Db = ++md;
|
|
2326
|
-
this.time = 0;
|
|
2327
|
-
}
|
|
2328
|
-
var md = 0;
|
|
2329
|
-
t.prototype.stepArrayExpression = function (a, b, d) {
|
|
2330
|
-
d = d.elements;
|
|
2331
|
-
var c = b.A || 0;
|
|
2332
|
-
b.Oa ? (this.g(b.Oa, c, b.value), c++) : (b.Oa = Cc(this), b.Oa.h.length = d.length);
|
|
2333
|
-
for (; c < d.length;) {
|
|
2334
|
-
if (d[c]) return b.A = c, new u(d[c], b.scope);
|
|
2335
|
-
c++;
|
|
2336
|
-
}
|
|
2337
|
-
a.pop();
|
|
2338
|
-
a[a.length - 1].value = b.Oa;
|
|
2339
|
-
};
|
|
2340
|
-
t.prototype.stepAssignmentExpression = function (a, b, d) {
|
|
2341
|
-
if (!b.ja) return b.ja = true, b = new u(d.left, b.scope), b.sa = true, b;
|
|
2342
|
-
if (!b.Da) {
|
|
2343
|
-
b.Fa || (b.Fa = b.value);
|
|
2344
|
-
b.Ba && (b.ma = b.value);
|
|
2345
|
-
if (!b.Ba && d.operator !== "=" && (a = fd(this, b.Fa), b.ma = a, this.P)) return b.Ba = true, jd(this, a, b.Fa);
|
|
2346
|
-
b.Da = true;
|
|
2347
|
-
d.operator === "=" && d.left.type === "Identifier" && (b.Pa = d.left.name);
|
|
2348
|
-
return new u(d.right, b.scope);
|
|
2349
|
-
}
|
|
2350
|
-
if (b.ta) a.pop(), a[a.length - 1].value = b.ib;else {
|
|
2351
|
-
var c = b.ma,
|
|
2352
|
-
e = b.value;
|
|
2353
|
-
switch (d.operator) {
|
|
2354
|
-
case "=":
|
|
2355
|
-
c = e;
|
|
2356
|
-
break;
|
|
2357
|
-
case "+=":
|
|
2358
|
-
c += e;
|
|
2359
|
-
break;
|
|
2360
|
-
case "-=":
|
|
2361
|
-
c -= e;
|
|
2362
|
-
break;
|
|
2363
|
-
case "*=":
|
|
2364
|
-
c *= e;
|
|
2365
|
-
break;
|
|
2366
|
-
case "/=":
|
|
2367
|
-
c /= e;
|
|
2368
|
-
break;
|
|
2369
|
-
case "%=":
|
|
2370
|
-
c %= e;
|
|
2371
|
-
break;
|
|
2372
|
-
case "<<=":
|
|
2373
|
-
c <<= e;
|
|
2374
|
-
break;
|
|
2375
|
-
case ">>=":
|
|
2376
|
-
c >>= e;
|
|
2377
|
-
break;
|
|
2378
|
-
case ">>>=":
|
|
2379
|
-
c >>>= e;
|
|
2380
|
-
break;
|
|
2381
|
-
case "&=":
|
|
2382
|
-
c &= e;
|
|
2383
|
-
break;
|
|
2384
|
-
case "^=":
|
|
2385
|
-
c ^= e;
|
|
2386
|
-
break;
|
|
2387
|
-
case "|=":
|
|
2388
|
-
c |= e;
|
|
2389
|
-
break;
|
|
2390
|
-
default:
|
|
2391
|
-
throw SyntaxError("Unknown assignment expression: " + d.operator);
|
|
2392
|
-
}
|
|
2393
|
-
if (d = gd(this, b.Fa, c)) return b.ta = true, b.ib = c, kd(this, d, b.Fa, c);
|
|
2394
|
-
a.pop();
|
|
2395
|
-
a[a.length - 1].value = c;
|
|
2396
|
-
}
|
|
2397
|
-
};
|
|
2398
|
-
t.prototype.stepBinaryExpression = function (a, b, d) {
|
|
2399
|
-
if (!b.ja) return b.ja = true, new u(d.left, b.scope);
|
|
2400
|
-
if (!b.Da) return b.Da = true, b.ma = b.value, new u(d.right, b.scope);
|
|
2401
|
-
a.pop();
|
|
2402
|
-
var c = b.ma;
|
|
2403
|
-
b = b.value;
|
|
2404
|
-
switch (d.operator) {
|
|
2405
|
-
case "==":
|
|
2406
|
-
d = c == b;
|
|
2407
|
-
break;
|
|
2408
|
-
case "!=":
|
|
2409
|
-
d = c != b;
|
|
2410
|
-
break;
|
|
2411
|
-
case "===":
|
|
2412
|
-
d = c === b;
|
|
2413
|
-
break;
|
|
2414
|
-
case "!==":
|
|
2415
|
-
d = c !== b;
|
|
2416
|
-
break;
|
|
2417
|
-
case ">":
|
|
2418
|
-
d = c > b;
|
|
2419
|
-
break;
|
|
2420
|
-
case ">=":
|
|
2421
|
-
d = c >= b;
|
|
2422
|
-
break;
|
|
2423
|
-
case "<":
|
|
2424
|
-
d = c < b;
|
|
2425
|
-
break;
|
|
2426
|
-
case "<=":
|
|
2427
|
-
d = c <= b;
|
|
2428
|
-
break;
|
|
2429
|
-
case "+":
|
|
2430
|
-
d = c + b;
|
|
2431
|
-
break;
|
|
2432
|
-
case "-":
|
|
2433
|
-
d = c - b;
|
|
2434
|
-
break;
|
|
2435
|
-
case "*":
|
|
2436
|
-
d = c * b;
|
|
2437
|
-
break;
|
|
2438
|
-
case "/":
|
|
2439
|
-
d = c / b;
|
|
2440
|
-
break;
|
|
2441
|
-
case "%":
|
|
2442
|
-
d = c % b;
|
|
2443
|
-
break;
|
|
2444
|
-
case "&":
|
|
2445
|
-
d = c & b;
|
|
2446
|
-
break;
|
|
2447
|
-
case "|":
|
|
2448
|
-
d = c | b;
|
|
2449
|
-
break;
|
|
2450
|
-
case "^":
|
|
2451
|
-
d = c ^ b;
|
|
2452
|
-
break;
|
|
2453
|
-
case "<<":
|
|
2454
|
-
d = c << b;
|
|
2455
|
-
break;
|
|
2456
|
-
case ">>":
|
|
2457
|
-
d = c >> b;
|
|
2458
|
-
break;
|
|
2459
|
-
case ">>>":
|
|
2460
|
-
d = c >>> b;
|
|
2461
|
-
break;
|
|
2462
|
-
case "in":
|
|
2463
|
-
b instanceof D || K(this, this.j, "'in' expects an object, not '" + b + "'");
|
|
2464
|
-
d = $c(this, b, c);
|
|
2465
|
-
break;
|
|
2466
|
-
case "instanceof":
|
|
2467
|
-
Q(this, b, this.O) || K(this, this.j, "'instanceof' expects an object, not '" + b + "'");
|
|
2468
|
-
d = c instanceof D ? Q(this, c, b) : false;
|
|
2469
|
-
break;
|
|
2470
|
-
default:
|
|
2471
|
-
throw SyntaxError("Unknown binary operator: " + d.operator);
|
|
2472
|
-
}
|
|
2473
|
-
a[a.length - 1].value = d;
|
|
2474
|
-
};
|
|
2475
|
-
t.prototype.stepBlockStatement = function (a, b, d) {
|
|
2476
|
-
var c = b.A || 0;
|
|
2477
|
-
if (d = d.body[c]) return b.A = c + 1, new u(d, b.scope);
|
|
2478
|
-
a.pop();
|
|
2479
|
-
};
|
|
2480
|
-
t.prototype.stepBreakStatement = function (a, b, d) {
|
|
2481
|
-
hd(this, 1, void 0, d.label && d.label.name);
|
|
2482
|
-
};
|
|
2483
|
-
t.prototype.Hb = 0;
|
|
2484
|
-
t.prototype.stepCallExpression = function (a, b, d) {
|
|
2485
|
-
if (!b.ia) {
|
|
2486
|
-
b.ia = 1;
|
|
2487
|
-
var c = new u(d.callee, b.scope);
|
|
2488
|
-
c.sa = true;
|
|
2489
|
-
return c;
|
|
2490
|
-
}
|
|
2491
|
-
if (b.ia === 1) {
|
|
2492
|
-
b.ia = 2;
|
|
2493
|
-
var e = b.value;
|
|
2494
|
-
if (Array.isArray(e)) {
|
|
2495
|
-
if (b.U = fd(this, e), e[0] === Ha ? b.Pb = e[1] === "eval" : b.B = e[0], e = b.U, this.P) return b.ia = 1, jd(this, e, b.value);
|
|
2496
|
-
} else b.U = e;
|
|
2497
|
-
b.F = [];
|
|
2498
|
-
b.A = 0;
|
|
2499
|
-
}
|
|
2500
|
-
e = b.U;
|
|
2501
|
-
if (!b.Qa) {
|
|
2502
|
-
b.A !== 0 && b.F.push(b.value);
|
|
2503
|
-
if (d.arguments[b.A]) return new u(d.arguments[b.A++], b.scope);
|
|
2504
|
-
if (d.type === "NewExpression") {
|
|
2505
|
-
e instanceof D && !e.Ab || K(this, this.j, R(this, d.callee) + " is not a constructor");
|
|
2506
|
-
if (e === this.qa) b.B = Cc(this);else {
|
|
2507
|
-
var h = e.h.prototype;
|
|
2508
|
-
if (typeof h !== "object" || h === null) h = this.M;
|
|
2509
|
-
b.B = this.s(h);
|
|
2510
|
-
}
|
|
2511
|
-
b.isConstructor = true;
|
|
2512
|
-
}
|
|
2513
|
-
b.Qa = true;
|
|
2514
|
-
}
|
|
2515
|
-
if (b.eb) a.pop(), a[a.length - 1].value = b.isConstructor && typeof b.value !== "object" ? b.B : b.value;else {
|
|
2516
|
-
b.eb = true;
|
|
2517
|
-
e instanceof D || K(this, this.j, R(this, d.callee) + " is not a function");
|
|
2518
|
-
if (a = e.node) {
|
|
2519
|
-
d = ea(this, a.body, e.Va);
|
|
2520
|
-
c = Cc(this);
|
|
2521
|
-
for (e = 0; e < b.F.length; e++) this.g(c, e, b.F[e]);
|
|
2522
|
-
this.g(d.object, "arguments", c);
|
|
2523
|
-
for (e = 0; e < a.oa.length; e++) this.g(d.object, a.oa[e].name, b.F.length > e ? b.F[e] : void 0);
|
|
2524
|
-
d.S || (b.B = ld(this, b.B));
|
|
2525
|
-
this.g(d.object, "this", b.B, ua);
|
|
2526
|
-
b.value = void 0;
|
|
2527
|
-
return new u(a.body, d);
|
|
2528
|
-
}
|
|
2529
|
-
if (e.eval) {
|
|
2530
|
-
if (e = b.F[0], typeof e !== "string") b.value = e;else {
|
|
2531
|
-
try {
|
|
2532
|
-
c = da(String(e), "eval" + this.Hb++);
|
|
2533
|
-
} catch (q) {
|
|
2534
|
-
K(this, this.T, "Invalid code: " + q.message);
|
|
2535
|
-
}
|
|
2536
|
-
e = this.ya();
|
|
2537
|
-
e.type = "EvalProgram_";
|
|
2538
|
-
e.body = c.body;
|
|
2539
|
-
fa(e, d.start, d.end);
|
|
2540
|
-
d = b.Pb ? b.scope : this.N;
|
|
2541
|
-
d.S ? d = ea(this, c, d) : Ra(this, c, d);
|
|
2542
|
-
this.value = void 0;
|
|
2543
|
-
return new u(e, d);
|
|
2544
|
-
}
|
|
2545
|
-
} else if (e.Ta) b.scope.S || (b.B = ld(this, b.B)), b.value = e.Ta.apply(b.B, b.F);else if (e.Za) {
|
|
2546
|
-
var k = this;
|
|
2547
|
-
c = e.Za.length - 1;
|
|
2548
|
-
c = b.F.concat(Array(c)).slice(0, c);
|
|
2549
|
-
c.push(function (q) {
|
|
2550
|
-
b.value = q;
|
|
2551
|
-
k.za = false;
|
|
2552
|
-
});
|
|
2553
|
-
this.za = true;
|
|
2554
|
-
b.scope.S || (b.B = ld(this, b.B));
|
|
2555
|
-
e.Za.apply(b.B, c);
|
|
2556
|
-
} else K(this, this.j, R(this, d.callee) + " is not callable");
|
|
2557
|
-
}
|
|
2558
|
-
};
|
|
2559
|
-
t.prototype.stepConditionalExpression = function (a, b, d) {
|
|
2560
|
-
var c = b.na || 0;
|
|
2561
|
-
if (c === 0) return b.na = 1, new u(d.test, b.scope);
|
|
2562
|
-
if (c === 1) {
|
|
2563
|
-
b.na = 2;
|
|
2564
|
-
if ((c = !!b.value) && d.da) return new u(d.da, b.scope);
|
|
2565
|
-
if (!c && d.alternate) return new u(d.alternate, b.scope);
|
|
2566
|
-
this.value = void 0;
|
|
2567
|
-
}
|
|
2568
|
-
a.pop();
|
|
2569
|
-
d.type === "ConditionalExpression" && (a[a.length - 1].value = b.value);
|
|
2570
|
-
};
|
|
2571
|
-
t.prototype.stepContinueStatement = function (a, b, d) {
|
|
2572
|
-
hd(this, 2, void 0, d.label && d.label.name);
|
|
2573
|
-
};
|
|
2574
|
-
t.prototype.stepDebuggerStatement = function (a) {
|
|
2575
|
-
a.pop();
|
|
2576
|
-
};
|
|
2577
|
-
t.prototype.stepDoWhileStatement = function (a, b, d) {
|
|
2578
|
-
d.type === "DoWhileStatement" && b.ga === void 0 && (b.value = true, b.ga = true);
|
|
2579
|
-
if (!b.ga) return b.ga = true, new u(d.test, b.scope);
|
|
2580
|
-
if (!b.value) a.pop();else if (d.body) return b.ga = false, b.W = true, new u(d.body, b.scope);
|
|
2581
|
-
};
|
|
2582
|
-
t.prototype.stepEmptyStatement = function (a) {
|
|
2583
|
-
a.pop();
|
|
2584
|
-
};
|
|
2585
|
-
t.prototype.stepEvalProgram_ = function (a, b, d) {
|
|
2586
|
-
var c = b.A || 0;
|
|
2587
|
-
if (d = d.body[c]) return b.A = c + 1, new u(d, b.scope);
|
|
2588
|
-
a.pop();
|
|
2589
|
-
a[a.length - 1].value = this.value;
|
|
2590
|
-
};
|
|
2591
|
-
t.prototype.stepExpressionStatement = function (a, b, d) {
|
|
2592
|
-
if (!b.ka) return this.value = void 0, b.ka = true, new u(d.la, b.scope);
|
|
2593
|
-
a.pop();
|
|
2594
|
-
this.value = b.value;
|
|
2595
|
-
};
|
|
2596
|
-
t.prototype.stepForInStatement = function (a, b, d) {
|
|
2597
|
-
if (!b.Ub && (b.Ub = true, d.left.fa && d.left.fa[0].ua)) return b.scope.S && K(this, this.T, "for-in loop variable declaration may not have an initializer"), new u(d.left, b.scope);
|
|
2598
|
-
if (!b.Ca) return b.Ca = true, b.pa || (b.pa = b.value), new u(d.right, b.scope);
|
|
2599
|
-
b.W || (b.W = true, b.u = b.value, b.kb = Object.create(null));
|
|
2600
|
-
if (b.Ra === void 0) a: for (;;) {
|
|
2601
|
-
if (b.u instanceof D) for (b.wa || (b.wa = Object.getOwnPropertyNames(b.u.h));;) {
|
|
2602
|
-
var c = b.wa.shift();
|
|
2603
|
-
if (c === void 0) break;
|
|
2604
|
-
if (Object.prototype.hasOwnProperty.call(b.u.h, c) && !b.kb[c] && (b.kb[c] = true, Object.prototype.propertyIsEnumerable.call(b.u.h, c))) {
|
|
2605
|
-
b.Ra = c;
|
|
2606
|
-
break a;
|
|
2607
|
-
}
|
|
2608
|
-
} else if (b.u !== null && b.u !== void 0) for (b.wa || (b.wa = Object.getOwnPropertyNames(b.u));;) {
|
|
2609
|
-
c = b.wa.shift();
|
|
2610
|
-
if (c === void 0) break;
|
|
2611
|
-
b.kb[c] = true;
|
|
2612
|
-
if (Object.prototype.propertyIsEnumerable.call(b.u, c)) {
|
|
2613
|
-
b.Ra = c;
|
|
2614
|
-
break a;
|
|
2615
|
-
}
|
|
2616
|
-
}
|
|
2617
|
-
b.u = Ac(this, b.u);
|
|
2618
|
-
b.wa = null;
|
|
2619
|
-
if (b.u === null) {
|
|
2620
|
-
a.pop();
|
|
2621
|
-
return;
|
|
2622
|
-
}
|
|
2623
|
-
}
|
|
2624
|
-
if (!b.wb) if (b.wb = true, a = d.left, a.type === "VariableDeclaration") b.pa = [Ha, a.fa[0].id.name];else return b.pa = null, b = new u(a, b.scope), b.sa = true, b;
|
|
2625
|
-
b.pa || (b.pa = b.value);
|
|
2626
|
-
if (!b.ta && (b.ta = true, a = b.Ra, c = gd(this, b.pa, a))) return kd(this, c, b.pa, a);
|
|
2627
|
-
b.Ra = void 0;
|
|
2628
|
-
b.wb = false;
|
|
2629
|
-
b.ta = false;
|
|
2630
|
-
if (d.body) return new u(d.body, b.scope);
|
|
2631
|
-
};
|
|
2632
|
-
t.prototype.stepForStatement = function (a, b, d) {
|
|
2633
|
-
switch (b.na) {
|
|
2634
|
-
default:
|
|
2635
|
-
b.na = 1;
|
|
2636
|
-
if (d.ua) return new u(d.ua, b.scope);
|
|
2637
|
-
break;
|
|
2638
|
-
case 1:
|
|
2639
|
-
b.na = 2;
|
|
2640
|
-
if (d.test) return new u(d.test, b.scope);
|
|
2641
|
-
break;
|
|
2642
|
-
case 2:
|
|
2643
|
-
b.na = 3;
|
|
2644
|
-
if (d.test && !b.value) a.pop();else return b.W = true, new u(d.body, b.scope);
|
|
2645
|
-
break;
|
|
2646
|
-
case 3:
|
|
2647
|
-
if (b.na = 1, d.update) return new u(d.update, b.scope);
|
|
2648
|
-
}
|
|
2649
|
-
};
|
|
2650
|
-
t.prototype.stepFunctionDeclaration = function (a) {
|
|
2651
|
-
a.pop();
|
|
2652
|
-
};
|
|
2653
|
-
t.prototype.stepFunctionExpression = function (a, b, d) {
|
|
2654
|
-
a.pop();
|
|
2655
|
-
b = a[a.length - 1];
|
|
2656
|
-
a = b.scope;
|
|
2657
|
-
d.id && (a = cd(this, a));
|
|
2658
|
-
b.value = Nb(this, d, a, b.Pa);
|
|
2659
|
-
d.id && this.g(a.object, d.id.name, b.value, ua);
|
|
2660
|
-
};
|
|
2661
|
-
t.prototype.stepIdentifier = function (a, b, d) {
|
|
2662
|
-
a.pop();
|
|
2663
|
-
if (b.sa) a[a.length - 1].value = [Ha, d.name];else {
|
|
2664
|
-
b = dd(this, d.name);
|
|
2665
|
-
if (this.P) return jd(this, b, this.Na);
|
|
2666
|
-
a[a.length - 1].value = b;
|
|
2667
|
-
}
|
|
2668
|
-
};
|
|
2669
|
-
t.prototype.stepIfStatement = t.prototype.stepConditionalExpression;
|
|
2670
|
-
t.prototype.stepLabeledStatement = function (a, b, d) {
|
|
2671
|
-
a.pop();
|
|
2672
|
-
a = b.labels || [];
|
|
2673
|
-
a.push(d.label.name);
|
|
2674
|
-
b = new u(d.body, b.scope);
|
|
2675
|
-
b.labels = a;
|
|
2676
|
-
return b;
|
|
2677
|
-
};
|
|
2678
|
-
t.prototype.stepLiteral = function (a, b, d) {
|
|
2679
|
-
a.pop();
|
|
2680
|
-
b = d.value;
|
|
2681
|
-
b instanceof RegExp && (d = this.s(this.Ma), Hc(this, d, b), b = d);
|
|
2682
|
-
a[a.length - 1].value = b;
|
|
2683
|
-
};
|
|
2684
|
-
t.prototype.stepLogicalExpression = function (a, b, d) {
|
|
2685
|
-
if (d.operator !== "&&" && d.operator !== "||") throw SyntaxError("Unknown logical operator: " + d.operator);
|
|
2686
|
-
if (!b.ja) return b.ja = true, new u(d.left, b.scope);
|
|
2687
|
-
if (b.Da) a.pop(), a[a.length - 1].value = b.value;else if (d.operator === "&&" && !b.value || d.operator === "||" && b.value) a.pop(), a[a.length - 1].value = b.value;else return b.Da = true, new u(d.right, b.scope);
|
|
2688
|
-
};
|
|
2689
|
-
t.prototype.stepMemberExpression = function (a, b, d) {
|
|
2690
|
-
if (!b.Ca) return b.Ca = true, new u(d.object, b.scope);
|
|
2691
|
-
if (d.bb) {
|
|
2692
|
-
if (b.Vb) d = b.value;else return b.u = b.value, b.Vb = true, new u(d.Wa, b.scope);
|
|
2693
|
-
} else b.u = b.value, d = d.Wa.name;
|
|
2694
|
-
a.pop();
|
|
2695
|
-
if (b.sa) a[a.length - 1].value = [b.u, d];else {
|
|
2696
|
-
d = this.G(b.u, d);
|
|
2697
|
-
if (this.P) return jd(this, d, b.u);
|
|
2698
|
-
a[a.length - 1].value = d;
|
|
2699
|
-
}
|
|
2700
|
-
};
|
|
2701
|
-
t.prototype.stepNewExpression = t.prototype.stepCallExpression;
|
|
2702
|
-
t.prototype.stepObjectExpression = function (a, b, d) {
|
|
2703
|
-
var c = b.A || 0,
|
|
2704
|
-
e = d.h[c];
|
|
2705
|
-
if (b.u) {
|
|
2706
|
-
var h = b.Pa;
|
|
2707
|
-
b.Ja[h] || (b.Ja[h] = {});
|
|
2708
|
-
b.Ja[h][e.kind] = b.value;
|
|
2709
|
-
b.A = ++c;
|
|
2710
|
-
e = d.h[c];
|
|
2711
|
-
} else b.u = this.s(this.M), b.Ja = Object.create(null);
|
|
2712
|
-
if (e) {
|
|
2713
|
-
var k = e.key;
|
|
2714
|
-
if (k.type === "Identifier") h = k.name;else if (k.type === "Literal") h = k.value;else throw SyntaxError("Unknown object structure: " + k.type);
|
|
2715
|
-
b.Pa = h;
|
|
2716
|
-
return new u(e.value, b.scope);
|
|
2717
|
-
}
|
|
2718
|
-
for (k in b.Ja) d = b.Ja[k], "get" in d || "set" in d ? this.g(b.u, k, Ia, {
|
|
2719
|
-
configurable: true,
|
|
2720
|
-
enumerable: true,
|
|
2721
|
-
get: d.get,
|
|
2722
|
-
set: d.set
|
|
2723
|
-
}) : this.g(b.u, k, d.init);
|
|
2724
|
-
a.pop();
|
|
2725
|
-
a[a.length - 1].value = b.u;
|
|
2726
|
-
};
|
|
2727
|
-
t.prototype.stepProgram = function (a, b, d) {
|
|
2728
|
-
if (a = d.body.shift()) return b.done = false, new u(a, b.scope);
|
|
2729
|
-
b.done = true;
|
|
2730
|
-
};
|
|
2731
|
-
t.prototype.stepReturnStatement = function (a, b, d) {
|
|
2732
|
-
if (d.K && !b.ka) return b.ka = true, new u(d.K, b.scope);
|
|
2733
|
-
hd(this, 3, b.value);
|
|
2734
|
-
};
|
|
2735
|
-
t.prototype.stepSequenceExpression = function (a, b, d) {
|
|
2736
|
-
var c = b.A || 0;
|
|
2737
|
-
if (d = d.xb[c]) return b.A = c + 1, new u(d, b.scope);
|
|
2738
|
-
a.pop();
|
|
2739
|
-
a[a.length - 1].value = b.value;
|
|
2740
|
-
};
|
|
2741
|
-
t.prototype.stepSwitchStatement = function (a, b, d) {
|
|
2742
|
-
if (!b.ga) return b.ga = 1, new u(d.Qb, b.scope);
|
|
2743
|
-
b.ga === 1 && (b.ga = 2, b.hc = b.value, b.cb = -1);
|
|
2744
|
-
for (;;) {
|
|
2745
|
-
var c = b.gb || 0,
|
|
2746
|
-
e = d.tb[c];
|
|
2747
|
-
if (b.Ha || !e || e.test) {
|
|
2748
|
-
if (e || b.Ha || b.cb === -1) {
|
|
2749
|
-
if (e) {
|
|
2750
|
-
if (!b.Ha && !b.Fb && e.test) return b.Fb = true, new u(e.test, b.scope);
|
|
2751
|
-
if (b.Ha || b.value === b.hc) {
|
|
2752
|
-
b.Ha = true;
|
|
2753
|
-
var h = b.A || 0;
|
|
2754
|
-
if (e.da[h]) return b.Zb = true, b.A = h + 1, new u(e.da[h], b.scope);
|
|
2755
|
-
}
|
|
2756
|
-
b.Fb = false;
|
|
2757
|
-
b.A = 0;
|
|
2758
|
-
b.gb = c + 1;
|
|
2759
|
-
} else {
|
|
2760
|
-
a.pop();
|
|
2761
|
-
break;
|
|
2762
|
-
}
|
|
2763
|
-
} else b.Ha = true, b.gb = b.cb;
|
|
2764
|
-
} else b.cb = c, b.gb = c + 1;
|
|
2765
|
-
}
|
|
2766
|
-
};
|
|
2767
|
-
t.prototype.stepThisExpression = function (a) {
|
|
2768
|
-
a.pop();
|
|
2769
|
-
a[a.length - 1].value = dd(this, "this");
|
|
2770
|
-
};
|
|
2771
|
-
t.prototype.stepThrowStatement = function (a, b, d) {
|
|
2772
|
-
if (b.ka) K(this, b.value);else return b.ka = true, new u(d.K, b.scope);
|
|
2773
|
-
};
|
|
2774
|
-
t.prototype.stepTryStatement = function (a, b, d) {
|
|
2775
|
-
if (!b.Rb) return b.Rb = true, new u(d.block, b.scope);
|
|
2776
|
-
if (b.ea && b.ea.type === 4 && !b.Tb && d.Ea) return b.Tb = true, a = cd(this, b.scope), this.g(a.object, d.Ea.Ua.name, b.ea.value), b.ea = void 0, new u(d.Ea.body, a);
|
|
2777
|
-
if (!b.Sb && d.fb) return b.Sb = true, new u(d.fb, b.scope);
|
|
2778
|
-
a.pop();
|
|
2779
|
-
b.ea && hd(this, b.ea.type, b.ea.value, b.ea.label);
|
|
2780
|
-
};
|
|
2781
|
-
t.prototype.stepUnaryExpression = function (a, b, d) {
|
|
2782
|
-
if (!b.ka) return b.ka = true, a = new u(d.K, b.scope), a.sa = d.operator === "delete", a;
|
|
2783
|
-
a.pop();
|
|
2784
|
-
var c = b.value;
|
|
2785
|
-
switch (d.operator) {
|
|
2786
|
-
case "-":
|
|
2787
|
-
c = -c;
|
|
2788
|
-
break;
|
|
2789
|
-
case "+":
|
|
2790
|
-
c = +c;
|
|
2791
|
-
break;
|
|
2792
|
-
case "!":
|
|
2793
|
-
c = !c;
|
|
2794
|
-
break;
|
|
2795
|
-
case "~":
|
|
2796
|
-
c = ~c;
|
|
2797
|
-
break;
|
|
2798
|
-
case "delete":
|
|
2799
|
-
d = true;
|
|
2800
|
-
if (Array.isArray(c)) {
|
|
2801
|
-
var e = c[0];
|
|
2802
|
-
e === Ha && (e = b.scope);
|
|
2803
|
-
c = String(c[1]);
|
|
2804
|
-
try {
|
|
2805
|
-
delete e.h[c];
|
|
2806
|
-
} catch (h) {
|
|
2807
|
-
b.scope.S ? K(this, this.j, "Cannot delete property '" + c + "' of '" + e + "'") : d = false;
|
|
2808
|
-
}
|
|
2809
|
-
}
|
|
2810
|
-
c = d;
|
|
2811
|
-
break;
|
|
2812
|
-
case "typeof":
|
|
2813
|
-
c = c && c.H === "Function" ? "function" : typeof c;
|
|
2814
|
-
break;
|
|
2815
|
-
case "void":
|
|
2816
|
-
c = void 0;
|
|
2817
|
-
break;
|
|
2818
|
-
default:
|
|
2819
|
-
throw SyntaxError("Unknown unary operator: " + d.operator);
|
|
2820
|
-
}
|
|
2821
|
-
a[a.length - 1].value = c;
|
|
2822
|
-
};
|
|
2823
|
-
t.prototype.stepUpdateExpression = function (a, b, d) {
|
|
2824
|
-
if (!b.ja) return b.ja = true, a = new u(d.K, b.scope), a.sa = true, a;
|
|
2825
|
-
b.Ga || (b.Ga = b.value);
|
|
2826
|
-
b.Ba && (b.ma = b.value);
|
|
2827
|
-
if (!b.Ba) {
|
|
2828
|
-
var c = fd(this, b.Ga);
|
|
2829
|
-
b.ma = c;
|
|
2830
|
-
if (this.P) return b.Ba = true, jd(this, c, b.Ga);
|
|
2831
|
-
}
|
|
2832
|
-
if (b.ta) a.pop(), a[a.length - 1].value = b.ib;else {
|
|
2833
|
-
c = Number(b.ma);
|
|
2834
|
-
if (d.operator === "++") var e = c + 1;else if (d.operator === "--") e = c - 1;else throw SyntaxError("Unknown update expression: " + d.operator);
|
|
2835
|
-
d = d.prefix ? e : c;
|
|
2836
|
-
if (c = gd(this, b.Ga, e)) return b.ta = true, b.ib = d, kd(this, c, b.Ga, e);
|
|
2837
|
-
a.pop();
|
|
2838
|
-
a[a.length - 1].value = d;
|
|
2839
|
-
}
|
|
2840
|
-
};
|
|
2841
|
-
t.prototype.stepVariableDeclaration = function (a, b, d) {
|
|
2842
|
-
d = d.fa;
|
|
2843
|
-
var c = b.A || 0,
|
|
2844
|
-
e = d[c];
|
|
2845
|
-
b.Bb && e && (ed(this, e.id.name, b.value), b.Bb = false, e = d[++c]);
|
|
2846
|
-
for (; e;) {
|
|
2847
|
-
if (e.ua) return b.A = c, b.Bb = true, b.Pa = e.id.name, new u(e.ua, b.scope);
|
|
2848
|
-
e = d[++c];
|
|
2849
|
-
}
|
|
2850
|
-
a.pop();
|
|
2851
|
-
};
|
|
2852
|
-
t.prototype.stepWithStatement = function (a, b, d) {
|
|
2853
|
-
if (!b.Ca) return b.Ca = true, new u(d.object, b.scope);
|
|
2854
|
-
a.pop();
|
|
2855
|
-
a = cd(this, b.scope, b.value);
|
|
2856
|
-
return new u(d.body, a);
|
|
2857
|
-
};
|
|
2858
|
-
t.prototype.stepWhileStatement = t.prototype.stepDoWhileStatement;
|
|
2859
|
-
Na.Interpreter = t;
|
|
2860
|
-
t.prototype.step = t.prototype.lb;
|
|
2861
|
-
t.prototype.run = t.prototype.Eb;
|
|
2862
|
-
t.prototype.appendCode = t.prototype.Jb;
|
|
2863
|
-
t.prototype.createObject = t.prototype.Aa;
|
|
2864
|
-
t.prototype.createObjectProto = t.prototype.s;
|
|
2865
|
-
t.prototype.createAsyncFunction = t.prototype.ub;
|
|
2866
|
-
t.prototype.createNativeFunction = t.prototype.i;
|
|
2867
|
-
t.prototype.getProperty = t.prototype.G;
|
|
2868
|
-
t.prototype.setProperty = t.prototype.g;
|
|
2869
|
-
t.prototype.nativeToPseudo = t.prototype.Ia;
|
|
2870
|
-
t.prototype.pseudoToNative = t.prototype.R;
|
|
2871
|
-
t.prototype.getGlobalScope = t.prototype.Xb;
|
|
2872
|
-
t.prototype.getStateStack = t.prototype.Yb;
|
|
2873
|
-
t.prototype.setStateStack = t.prototype.ec;
|
|
2874
|
-
t.VALUE_IN_DESCRIPTOR = Ia;
|
|
2875
|
-
var stdin_default = t;
|
|
2876
|
-
export { stdin_default as default }
|