@builder.io/sdk-react 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3027 +0,0 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
- // @ts-ignore
3
- /* eslint-disable */
4
- /**
5
- * Copied from source: https://github.com/NeilFraser/JS-Interpreter/blob/master/acorn_interpreter.js
6
- */
7
- /*
8
-
9
- Copyright 2012 Marijn Haverbeke
10
- SPDX-License-Identifier: MIT
11
- */
12
- var p;
13
- var ca = function (a) {
14
- function b(f) {
15
- return 48 > f ? 36 === f : 58 > f ? !0 : 65 > f ? !1 : 91 > f ? !0 : 97 > f ? 95 === f : 123 > f ? !0 : 170 <= f && Gc.test(String.fromCharCode(f));
16
- }
17
- function d(f) {
18
- return 65 > f ? 36 === f : 91 > f ? !0 : 97 > f ? 95 === f : 123 > f ? !0 : 170 <= f && Pb.test(String.fromCharCode(f));
19
- }
20
- function c(f, g) {
21
- var k = r;
22
- for (var n = 1, w = 0;;) {
23
- Sa.lastIndex = w;
24
- var J = Sa.exec(k);
25
- if (J && J.index < f)
26
- ++n, w = J.index + J[0].length;
27
- else
28
- break;
29
- }
30
- k = {
31
- line: n,
32
- Za: f - w
33
- };
34
- g += " (" + k.line + ":" + k.Za + ")";
35
- g = new SyntaxError(g);
36
- g.j = f;
37
- g.V = k;
38
- g.o = m;
39
- throw g;
40
- }
41
- function e(f) {
42
- f = f.split(" ");
43
- for (var g = Object.create(null), k = 0; k < f.length; k++)
44
- g[f[k]] = !0;
45
- return function (n) {
46
- return g[n] || !1;
47
- };
48
- }
49
- function h() {
50
- this.line = la;
51
- this.Za = m - X;
52
- }
53
- function l(f, g) {
54
- oa = m;
55
- z.B && (bb = new h());
56
- x = f;
57
- C();
58
- T = g;
59
- xa = f.m;
60
- }
61
- function q() {
62
- for (var f = m, g = z.ua && z.B && new h(), k = r.charCodeAt(m += 2); m < pa && 10 !== k && 13 !== k && 8232 !== k && 8233 !== k;)
63
- ++m, k = r.charCodeAt(m);
64
- z.ua && z.ua(!1, r.slice(f + 2, m), f, m, g, z.B && new h());
65
- }
66
- function C() {
67
- for (; m < pa;) {
68
- var f = r.charCodeAt(m);
69
- if (32 === f)
70
- ++m;
71
- else if (13 === f)
72
- ++m, f = r.charCodeAt(m), 10 === f && ++m, z.B && (++la, X = m);
73
- else if (10 === f || 8232 === f || 8233 === f)
74
- ++m, z.B && (++la, X = m);
75
- else if (8 < f && 14 > f)
76
- ++m;
77
- else if (47 === f) {
78
- if (f = r.charCodeAt(m + 1), 42 === f) {
79
- f = void 0;
80
- var g = z.ua && z.B && new h(), k = m, n = r.indexOf("*/", m += 2);
81
- -1 === n && c(m - 2, "Unterminated comment");
82
- m = n + 2;
83
- if (z.B)
84
- for (Sa.lastIndex = k; (f = Sa.exec(r)) && f.index < m;)
85
- ++la, X = f.index + f[0].length;
86
- z.ua && z.ua(!0, r.slice(k + 2, n), k, m, g, z.B && new h());
87
- }
88
- else if (47 === f)
89
- q();
90
- else
91
- break;
92
- }
93
- else if (160 === f)
94
- ++m;
95
- else if (5760 <= f && Hc.test(String.fromCharCode(f)))
96
- ++m;
97
- else
98
- break;
99
- }
100
- }
101
- function V(f) {
102
- switch (f) {
103
- case 46:
104
- f = r.charCodeAt(m + 1);
105
- 48 <= f && 57 >= f ? Qb(!0) : (++m, l(Rb));
106
- return;
107
- case 40:
108
- return ++m, l(Y);
109
- case 41:
110
- return ++m, l(W);
111
- case 59:
112
- return ++m, l(Z);
113
- case 44:
114
- return ++m, l(ha);
115
- case 91:
116
- return ++m, l(cb);
117
- case 93:
118
- return ++m, l(db);
119
- case 123:
120
- return ++m, l(ya);
121
- case 125:
122
- return ++m, l(qa);
123
- case 58:
124
- return ++m, l(za);
125
- case 63:
126
- return ++m, l(Sb);
127
- case 48:
128
- if (f = r.charCodeAt(m + 1), 120 === f || 88 === f) {
129
- m += 2;
130
- f = Aa(16);
131
- null === f && c(I + 2, "Expected hexadecimal number");
132
- d(r.charCodeAt(m)) && c(m, "Identifier directly after number");
133
- l(Ba, f);
134
- return;
135
- }
136
- case 49:
137
- case 50:
138
- case 51:
139
- case 52:
140
- case 53:
141
- case 54:
142
- case 55:
143
- case 56:
144
- case 57:
145
- return Qb(!1);
146
- case 34:
147
- case 39:
148
- m++;
149
- for (var g = "";;) {
150
- m >= pa && c(I, "Unterminated string constant");
151
- var k = r.charCodeAt(m);
152
- if (k === f) {
153
- ++m;
154
- l(Ta, g);
155
- break;
156
- }
157
- if (92 === k) {
158
- k = r.charCodeAt(++m);
159
- var n = /^[0-7]+/.exec(r.slice(m, m + 3));
160
- for (n && (n = n[0]); n && 255 < parseInt(n, 8);)
161
- n = n.slice(0, -1);
162
- "0" === n && (n = null);
163
- ++m;
164
- if (n)
165
- S && c(m - 2, "Octal literal in strict mode"), g += String.fromCharCode(parseInt(n, 8)), m += n.length - 1;
166
- else
167
- switch (k) {
168
- case 110:
169
- g += "\n";
170
- break;
171
- case 114:
172
- g += "\r";
173
- break;
174
- case 120:
175
- g += String.fromCharCode(Ua(2));
176
- break;
177
- case 117:
178
- g += String.fromCharCode(Ua(4));
179
- break;
180
- case 85:
181
- g += String.fromCharCode(Ua(8));
182
- break;
183
- case 116:
184
- g += "\t";
185
- break;
186
- case 98:
187
- g += "\b";
188
- break;
189
- case 118:
190
- g += "\v";
191
- break;
192
- case 102:
193
- g += "\f";
194
- break;
195
- case 48:
196
- g += "\x00";
197
- break;
198
- case 13:
199
- 10 === r.charCodeAt(m) && ++m;
200
- case 10:
201
- z.B && (X = m, ++la);
202
- break;
203
- default:
204
- g += String.fromCharCode(k);
205
- }
206
- }
207
- else
208
- 13 !== k && 10 !== k && 8232 !== k && 8233 !== k || c(I, "Unterminated string constant"), g += String.fromCharCode(k), ++m;
209
- }
210
- return;
211
- case 47:
212
- f = r.charCodeAt(m + 1);
213
- xa ? (++m, Tb()) : 61 === f ? F(ma, 2) : F(Ub, 1);
214
- return;
215
- case 37:
216
- case 42:
217
- 61 === r.charCodeAt(m + 1) ? F(ma, 2) : F(Ic, 1);
218
- return;
219
- case 124:
220
- case 38:
221
- g = r.charCodeAt(m + 1);
222
- g === f ? F(124 === f ? Vb : Wb, 2) : 61 === g ? F(ma, 2) : F(124 === f ? Jc : Kc, 1);
223
- return;
224
- case 94:
225
- 61 === r.charCodeAt(m + 1) ? F(ma, 2) : F(Lc, 1);
226
- return;
227
- case 43:
228
- case 45:
229
- g = r.charCodeAt(m + 1);
230
- g === f ? 45 === g && 62 === r.charCodeAt(m + 2) && Va.test(r.slice(ia, m)) ? (m += 3, q(), C(), N()) : F(Mc, 2) : 61 === g ? F(ma, 2) : F(Nc, 1);
231
- return;
232
- case 60:
233
- case 62:
234
- g = r.charCodeAt(m + 1);
235
- k = 1;
236
- g === f ? (k = 62 === f && 62 === r.charCodeAt(m + 2) ? 3 : 2, 61 === r.charCodeAt(m + k) ? F(ma, k + 1) : F(Oc, k)) : 33 === g && 60 === f && 45 === r.charCodeAt(m + 2) && 45 === r.charCodeAt(m + 3) ? (m += 4, q(), C(), N()) : (61 === g && (k = 61 === r.charCodeAt(m + 2) ? 3 : 2), F(Pc, k));
237
- return;
238
- case 61:
239
- case 33:
240
- 61 === r.charCodeAt(m + 1) ? F(Qc, 61 === r.charCodeAt(m + 2) ? 3 : 2) : F(61 === f ? Xb : Yb, 1);
241
- return;
242
- case 126:
243
- return F(Yb, 1);
244
- }
245
- return !1;
246
- }
247
- function N(f) {
248
- f ? m = I + 1 : I = m;
249
- z.B && (eb = new h());
250
- if (f)
251
- return Tb();
252
- if (m >= pa)
253
- return l(fb);
254
- f = r.charCodeAt(m);
255
- if (d(f) || 92 === f)
256
- return Zb();
257
- if (!1 === V(f)) {
258
- f = String.fromCharCode(f);
259
- if ("\\" === f || Pb.test(f))
260
- return Zb();
261
- c(m, "Unexpected character '" + f + "'");
262
- }
263
- }
264
- function F(f, g) {
265
- var k = r.slice(m, m + g);
266
- m += g;
267
- l(f, k);
268
- }
269
- function Tb() {
270
- for (var f, g, k = m;;) {
271
- m >= pa && c(k, "Unterminated regexp");
272
- var n = r.charAt(m);
273
- Va.test(n) && c(k, "Unterminated regexp");
274
- if (f)
275
- f = !1;
276
- else {
277
- if ("[" === n)
278
- g = !0;
279
- else if ("]" === n && g)
280
- g = !1;
281
- else if ("/" === n && !g)
282
- break;
283
- f = "\\" === n;
284
- }
285
- ++m;
286
- }
287
- f = r.slice(k, m);
288
- ++m;
289
- (g = $b()) && !/^[gmi]*$/.test(g) && c(k, "Invalid regexp flag");
290
- try {
291
- var w = new RegExp(f, g);
292
- }
293
- catch (J) {
294
- throw J instanceof SyntaxError && c(k, J.message), J;
295
- }
296
- l(ac, w);
297
- }
298
- function Aa(f, g) {
299
- for (var k = m, n = 0, w = void 0 === g ? Infinity : g, J = 0; J < w; ++J) {
300
- var P = r.charCodeAt(m);
301
- P = 97 <= P ? P - 97 + 10 : 65 <= P ? P - 65 + 10 : 48 <= P && 57 >= P ? P - 48 : Infinity;
302
- if (P >= f)
303
- break;
304
- ++m;
305
- n = n * f + P;
306
- }
307
- return m === k || void 0 !== g && m - k !== g ? null : n;
308
- }
309
- function Qb(f) {
310
- var g = m, k = !1, n = 48 === r.charCodeAt(m);
311
- f || null !== Aa(10) || c(g, "Invalid number");
312
- 46 === r.charCodeAt(m) && (++m, Aa(10), k = !0);
313
- f = r.charCodeAt(m);
314
- if (69 === f || 101 === f)
315
- f = r.charCodeAt(++m), 43 !== f && 45 !== f || ++m, null === Aa(10) && c(g, "Invalid number"), k = !0;
316
- d(r.charCodeAt(m)) && c(m, "Identifier directly after number");
317
- f = r.slice(g, m);
318
- var w;
319
- k ? w = parseFloat(f) : n && 1 !== f.length ? /[89]/.test(f) || S ? c(g, "Invalid number") : w = parseInt(f, 8) : w = parseInt(f, 10);
320
- l(Ba, w);
321
- }
322
- function Ua(f) {
323
- f = Aa(16, f);
324
- null === f && c(I, "Bad character escape sequence");
325
- return f;
326
- }
327
- function $b() {
328
- ra = !1;
329
- for (var f, g = !0, k = m;;) {
330
- var n = r.charCodeAt(m);
331
- if (b(n))
332
- ra && (f += r.charAt(m)), ++m;
333
- else if (92 === n) {
334
- ra || (f = r.slice(k, m));
335
- ra = !0;
336
- 117 !== r.charCodeAt(++m) && c(m, "Expecting Unicode escape sequence \\uXXXX");
337
- ++m;
338
- n = Ua(4);
339
- var w = String.fromCharCode(n);
340
- w || c(m - 1, "Invalid Unicode escape");
341
- (g ? d(n) : b(n)) || c(m - 4, "Invalid Unicode escape");
342
- f += w;
343
- }
344
- else
345
- break;
346
- g = !1;
347
- }
348
- return ra ? f : r.slice(k, m);
349
- }
350
- function Zb() {
351
- var f = $b(), g = sa;
352
- !ra && Rc(f) && (g = Sc[f]);
353
- l(g, f);
354
- }
355
- function A() {
356
- gb = I;
357
- ia = oa;
358
- hb = bb;
359
- N();
360
- }
361
- function ib(f) {
362
- S = f;
363
- m = I;
364
- if (z.B)
365
- for (; m < X;)
366
- X = r.lastIndexOf("\n", X - 2) + 1, --la;
367
- C();
368
- N();
369
- }
370
- function bc() {
371
- this.type = null;
372
- this.start = I;
373
- this.end = null;
374
- }
375
- function cc() {
376
- this.start = eb;
377
- this.end = null;
378
- jb && (this.source = jb);
379
- }
380
- function L() {
381
- var f = new bc();
382
- z.B && (f.V = new cc());
383
- z.ub && (f.sourceFile = z.ub);
384
- z.Ua && (f.j = [I, 0]);
385
- return f;
386
- }
387
- function ja(f) {
388
- var g = new bc();
389
- g.start = f.start;
390
- z.B && (g.V = new cc(), g.V.start = f.V.start);
391
- z.Ua && (g.j = [f.j[0], 0]);
392
- return g;
393
- }
394
- function y(f, g) {
395
- f.type = g;
396
- f.end = ia;
397
- z.B && (f.V.end = hb);
398
- z.Ua && (f.j[1] = ia);
399
- return f;
400
- }
401
- function kb(f) {
402
- return "ExpressionStatement" === f.type && "Literal" === f.ja.type && "use strict" === f.ja.value;
403
- }
404
- function E(f) {
405
- return x === f ? (A(), !0) : !1;
406
- }
407
- function Wa() {
408
- return !z.bc && (x === fb || x === qa || Va.test(r.slice(ia, I)));
409
- }
410
- function na() {
411
- E(Z) || Wa() || aa();
412
- }
413
- function G(f) {
414
- x === f ? A() : aa();
415
- }
416
- function aa() {
417
- c(I, "Unexpected token");
418
- }
419
- function Xa(f) {
420
- "Identifier" !== f.type && "MemberExpression" !== f.type && c(f.start, "Assigning to rvalue");
421
- S && "Identifier" === f.type && Ya(f.name) && c(f.start, "Assigning to " + f.name + " in strict mode");
422
- }
423
- function U() {
424
- (x === Ub || x === ma && "/=" === T) && N(!0);
425
- var f = x, g = L();
426
- switch (f) {
427
- case lb:
428
- case dc:
429
- A();
430
- var k = f === lb;
431
- E(Z) || Wa() ? g.label = null : x !== sa ? aa() : (g.label = ba(), na());
432
- for (var n = 0; n < H.length; ++n) {
433
- var w = H[n];
434
- if (null === g.label || w.name === g.label.name) {
435
- if (null !== w.kind && (k || "loop" === w.kind))
436
- break;
437
- if (g.label && k)
438
- break;
439
- }
440
- }
441
- n === H.length && c(g.start, "Unsyntactic " + f.l);
442
- return y(g, k ? "BreakStatement" : "ContinueStatement");
443
- case ec:
444
- return A(), na(), y(g, "DebuggerStatement");
445
- case fc:
446
- return A(), H.push(mb), g.body = U(), H.pop(), G(nb), g.test = Ca(), na(), y(g, "DoWhileStatement");
447
- case gc:
448
- A();
449
- H.push(mb);
450
- G(Y);
451
- if (x === Z)
452
- return ob(g, null);
453
- if (x === pb)
454
- return f = L(), A(), hc(f, !0), y(f, "VariableDeclaration"), 1 === f.da.length && E(Za) ? ic(g, f) : ob(g, f);
455
- f = O(!1, !0);
456
- return E(Za) ? (Xa(f), ic(g, f)) : ob(g, f);
457
- case qb:
458
- return A(), rb(g, !0);
459
- case jc:
460
- return A(), g.test = Ca(), g.ba = U(), g.alternate = E(kc) ? U() : null, y(g, "IfStatement");
461
- case lc:
462
- return Da || z.Fb || c(I, "'return' outside of function"), A(), E(Z) || Wa() ? g.J = null : (g.J = O(), na()), y(g, "ReturnStatement");
463
- case sb:
464
- A();
465
- g.Mb = Ca();
466
- g.sb = [];
467
- G(ya);
468
- for (H.push(Tc); x !== qa;)
469
- x === tb || x === mc ? (f = x === tb, n && y(n, "SwitchCase"), g.sb.push(n = L()), n.ba = [], A(), f ? n.test = O() : (k && c(gb, "Multiple default clauses"), k = !0, n.test = null), G(za)) : (n || aa(), n.ba.push(U()));
470
- n && y(n, "SwitchCase");
471
- A();
472
- H.pop();
473
- return y(g, "SwitchStatement");
474
- case nc:
475
- return A(), Va.test(r.slice(ia, I)) && c(ia, "Illegal newline after throw"), g.J = O(), na(), y(g, "ThrowStatement");
476
- case oc:
477
- return A(), g.block = Ea(), g.Ca = null, x === pc && (f = L(), A(), G(Y), f.Ra = ba(), S && Ya(f.Ra.name) && c(f.Ra.start, "Binding " + f.Ra.name + " in strict mode"), G(W), f.body = Ea(), g.Ca = y(f, "CatchClause")), g.eb = E(qc) ? Ea() : null, g.Ca || g.eb || c(g.start, "Missing catch or finally clause"), y(g, "TryStatement");
478
- case pb:
479
- return A(), hc(g), na(), y(g, "VariableDeclaration");
480
- case nb:
481
- return A(), g.test = Ca(), H.push(mb), g.body = U(), H.pop(), y(g, "WhileStatement");
482
- case rc:
483
- return S && c(I, "'with' in strict mode"), A(), g.object = Ca(), g.body = U(), y(g, "WithStatement");
484
- case ya:
485
- return Ea();
486
- case Z:
487
- return A(), y(g, "EmptyStatement");
488
- default:
489
- k = T;
490
- w = O();
491
- if (f === sa && "Identifier" === w.type && E(za)) {
492
- for (n = 0; n < H.length; ++n)
493
- H[n].name === k && c(w.start, "Label '" + k + "' is already declared");
494
- H.push({
495
- name: k,
496
- kind: x.U ? "loop" : x === sb ? "switch" : null
497
- });
498
- g.body = U();
499
- H.pop();
500
- g.label = w;
501
- return y(g, "LabeledStatement");
502
- }
503
- g.ja = w;
504
- na();
505
- return y(g, "ExpressionStatement");
506
- }
507
- }
508
- function Ca() {
509
- G(Y);
510
- var f = O();
511
- G(W);
512
- return f;
513
- }
514
- function Ea(f) {
515
- var g = L(), k = !0, n = !1;
516
- g.body = [];
517
- for (G(ya); !E(qa);) {
518
- var w = U();
519
- g.body.push(w);
520
- if (k && f && kb(w)) {
521
- var J = n;
522
- ib(n = !0);
523
- }
524
- k = !1;
525
- }
526
- n && !J && ib(!1);
527
- return y(g, "BlockStatement");
528
- }
529
- function ob(f, g) {
530
- f.ta = g;
531
- G(Z);
532
- f.test = x === Z ? null : O();
533
- G(Z);
534
- f.update = x === W ? null : O();
535
- G(W);
536
- f.body = U();
537
- H.pop();
538
- return y(f, "ForStatement");
539
- }
540
- function ic(f, g) {
541
- f.left = g;
542
- f.right = O();
543
- G(W);
544
- f.body = U();
545
- H.pop();
546
- return y(f, "ForInStatement");
547
- }
548
- function hc(f, g) {
549
- f.da = [];
550
- for (f.kind = "var";;) {
551
- var k = L();
552
- k.id = ba();
553
- S && Ya(k.id.name) && c(k.id.start, "Binding " + k.id.name + " in strict mode");
554
- k.ta = E(Xb) ? O(!0, g) : null;
555
- f.da.push(y(k, "VariableDeclarator"));
556
- if (!E(ha))
557
- break;
558
- }
559
- }
560
- function O(f, g) {
561
- var k = ub(g);
562
- if (!f && x === ha) {
563
- f = ja(k);
564
- for (f.wb = [k]; E(ha);)
565
- f.wb.push(ub(g));
566
- return y(f, "SequenceExpression");
567
- }
568
- return k;
569
- }
570
- function ub(f) {
571
- var g = vb(wb(), -1, f);
572
- if (E(Sb)) {
573
- var k = ja(g);
574
- k.test = g;
575
- k.ba = O(!0);
576
- G(za);
577
- k.alternate = O(!0, f);
578
- g = y(k, "ConditionalExpression");
579
- }
580
- return x.Ab ? (k = ja(g), k.operator = T, k.left = g, A(), k.right = ub(f), Xa(g), y(k, "AssignmentExpression")) : g;
581
- }
582
- function vb(f, g, k) {
583
- var n = x.K;
584
- if (null !== n && (!k || x !== Za) && n > g) {
585
- var w = ja(f);
586
- w.left = f;
587
- w.operator = T;
588
- f = x;
589
- A();
590
- w.right = vb(wb(), n, k);
591
- n = y(w, f === Vb || f === Wb ? "LogicalExpression" : "BinaryExpression");
592
- return vb(n, g, k);
593
- }
594
- return f;
595
- }
596
- function wb() {
597
- if (x.prefix) {
598
- var f = L(), g = x.Wb;
599
- f.operator = T;
600
- xa = f.prefix = !0;
601
- A();
602
- f.J = wb();
603
- g ? Xa(f.J) : S && "delete" === f.operator && "Identifier" === f.J.type && c(f.start, "Deleting local variable in strict mode");
604
- return y(f, g ? "UpdateExpression" : "UnaryExpression");
605
- }
606
- for (g = Fa($a()); x.Zb && !Wa();)
607
- f = ja(g), f.operator = T, f.prefix = !1, f.J = g, Xa(g), A(), g = y(f, "UpdateExpression");
608
- return g;
609
- }
610
- function Fa(f, g) {
611
- if (E(Rb)) {
612
- var k = ja(f);
613
- k.object = f;
614
- k.Ta = ba(!0);
615
- k.$a = !1;
616
- return Fa(y(k, "MemberExpression"), g);
617
- }
618
- return E(cb) ? (k = ja(f), k.object = f, k.Ta = O(), k.$a = !0, G(db), Fa(y(k, "MemberExpression"), g)) : !g && E(Y) ? (k = ja(f), k.callee = f, k.arguments = xb(W, !1), Fa(y(k, "CallExpression"), g)) : f;
619
- }
620
- function $a() {
621
- switch (x) {
622
- case sc:
623
- var f = L();
624
- A();
625
- return y(f, "ThisExpression");
626
- case sa:
627
- return ba();
628
- case Ba:
629
- case Ta:
630
- case ac:
631
- return f = L(), f.value = T, f.raw = r.slice(I, oa), A(), y(f, "Literal");
632
- case tc:
633
- case uc:
634
- case vc:
635
- return f = L(), f.value = x.Ya, f.raw = x.l, A(), y(f, "Literal");
636
- case Y:
637
- f = eb;
638
- var g = I;
639
- A();
640
- var k = O();
641
- k.start = g;
642
- k.end = oa;
643
- z.B && (k.V.start = f, k.V.end = bb);
644
- z.Ua && (k.j = [g, oa]);
645
- G(W);
646
- return k;
647
- case cb:
648
- return f = L(), A(), f.elements = xb(db, !0, !0), y(f, "ArrayExpression");
649
- case ya:
650
- f = L();
651
- g = !0;
652
- k = !1;
653
- f.h = [];
654
- for (A(); !E(qa);) {
655
- if (g)
656
- g = !1;
657
- else if (G(ha), z.rb && E(qa))
658
- break;
659
- var n = {
660
- key: x === Ba || x === Ta ? $a() : ba(!0)
661
- }, w = !1;
662
- if (E(za)) {
663
- n.value = O(!0);
664
- var J = n.kind = "init";
665
- }
666
- else
667
- "Identifier" !== n.key.type || "get" !== n.key.name && "set" !== n.key.name ? aa() : (w = k = !0, J = n.kind = n.key.name, n.key = x === Ba || x === Ta ? $a() : ba(!0), x !== Y && aa(), n.value = rb(L(), !1));
668
- if ("Identifier" === n.key.type && (S || k))
669
- for (var P = 0; P < f.h.length; ++P) {
670
- var ta = f.h[P];
671
- if (ta.key.name === n.key.name) {
672
- var yb = J === ta.kind || w && "init" === ta.kind || "init" === J && ("get" === ta.kind || "set" === ta.kind);
673
- yb && !S && "init" === J && "init" === ta.kind && (yb = !1);
674
- yb && c(n.key.start, "Redefinition of property");
675
- }
676
- }
677
- f.h.push(n);
678
- }
679
- return y(f, "ObjectExpression");
680
- case qb:
681
- return f = L(), A(), rb(f, !1);
682
- case wc:
683
- return f = L(), A(), f.callee = Fa($a(), !0), f.arguments = E(Y) ? xb(W, !1) : Uc, y(f, "NewExpression");
684
- }
685
- aa();
686
- }
687
- function rb(f, g) {
688
- x === sa ? f.id = ba() : g ? aa() : f.id = null;
689
- f.ma = [];
690
- var k = !0;
691
- for (G(Y); !E(W);)
692
- k ? k = !1 : G(ha), f.ma.push(ba());
693
- k = Da;
694
- var n = H;
695
- Da = !0;
696
- H = [];
697
- f.body = Ea(!0);
698
- Da = k;
699
- H = n;
700
- if (S || f.body.body.length && kb(f.body.body[0]))
701
- for (k = f.id ? -1 : 0; k < f.ma.length; ++k)
702
- if (n = 0 > k ? f.id : f.ma[k], (xc(n.name) || Ya(n.name)) && c(n.start, "Defining '" + n.name + "' in strict mode"), 0 <= k)
703
- for (var w = 0; w < k; ++w)
704
- n.name === f.ma[w].name && c(n.start, "Argument name clash in strict mode");
705
- return y(f, g ? "FunctionDeclaration" : "FunctionExpression");
706
- }
707
- function xb(f, g, k) {
708
- for (var n = [], w = !0; !E(f);) {
709
- if (w)
710
- w = !1;
711
- else if (G(ha), g && z.rb && E(f))
712
- break;
713
- n.push(k && x === ha ? null : O(!0));
714
- }
715
- return n;
716
- }
717
- function ba(f) {
718
- var g = L();
719
- f && "everywhere" === z.xb && (f = !1);
720
- x === sa ? (!f && (z.xb && Vc(T) || S && xc(T)) && -1 === r.slice(I, oa).indexOf("\\") && c(I, "The keyword '" + T + "' is reserved"), g.name = T) : f && x.l ? g.name = x.l : aa();
721
- xa = !1;
722
- A();
723
- return y(g, "Identifier");
724
- }
725
- a.version = "0.5.0";
726
- var z, r = "", pa, jb;
727
- a.parse = function (f, g) {
728
- r = String(f);
729
- pa = r.length;
730
- z = g || {};
731
- for (var k in yc)
732
- Object.prototype.hasOwnProperty.call(z, k) || (z[k] = yc[k]);
733
- jb = z.sourceFile;
734
- la = 1;
735
- m = X = 0;
736
- xa = !0;
737
- C();
738
- k = z.$b;
739
- gb = ia = m;
740
- z.B && (hb = new h());
741
- Da = S = !1;
742
- H = [];
743
- N();
744
- f = k || L();
745
- g = !0;
746
- k || (f.body = []);
747
- for (; x !== fb;)
748
- k = U(), f.body.push(k), g && kb(k) && ib(!0), g = !1;
749
- return y(f, "Program");
750
- };
751
- var yc = {
752
- bc: !1,
753
- rb: !0,
754
- xb: !1,
755
- Fb: !1,
756
- B: !1,
757
- ua: null,
758
- Ua: !1,
759
- $b: null,
760
- sourceFile: null,
761
- ub: null
762
- }, m = 0, I = 0, oa = 0, eb, bb, x, T, xa, la, X, gb = 0, ia = 0, hb, Da, H, S, Uc = [], Ba = {
763
- type: "num"
764
- }, ac = {
765
- type: "regexp"
766
- }, Ta = {
767
- type: "string"
768
- }, sa = {
769
- type: "name"
770
- }, fb = {
771
- type: "eof"
772
- }, lb = {
773
- l: "break"
774
- }, tb = {
775
- l: "case",
776
- m: !0
777
- }, pc = {
778
- l: "catch"
779
- }, dc = {
780
- l: "continue"
781
- }, ec = {
782
- l: "debugger"
783
- }, mc = {
784
- l: "default"
785
- }, fc = {
786
- l: "do",
787
- U: !0
788
- }, kc = {
789
- l: "else",
790
- m: !0
791
- }, qc = {
792
- l: "finally"
793
- }, gc = {
794
- l: "for",
795
- U: !0
796
- }, qb = {
797
- l: "function"
798
- }, jc = {
799
- l: "if"
800
- }, lc = {
801
- l: "return",
802
- m: !0
803
- }, sb = {
804
- l: "switch"
805
- }, nc = {
806
- l: "throw",
807
- m: !0
808
- }, oc = {
809
- l: "try"
810
- }, pb = {
811
- l: "var"
812
- }, nb = {
813
- l: "while",
814
- U: !0
815
- }, rc = {
816
- l: "with"
817
- }, wc = {
818
- l: "new",
819
- m: !0
820
- }, sc = {
821
- l: "this"
822
- }, tc = {
823
- l: "null",
824
- Ya: null
825
- }, uc = {
826
- l: "true",
827
- Ya: !0
828
- }, vc = {
829
- l: "false",
830
- Ya: !1
831
- }, Za = {
832
- l: "in",
833
- K: 7,
834
- m: !0
835
- }, Sc = {
836
- "break": lb,
837
- "case": tb,
838
- "catch": pc,
839
- "continue": dc,
840
- "debugger": ec,
841
- "default": mc,
842
- "do": fc,
843
- "else": kc,
844
- "finally": qc,
845
- "for": gc,
846
- "function": qb,
847
- "if": jc,
848
- "return": lc,
849
- "switch": sb,
850
- "throw": nc,
851
- "try": oc,
852
- "var": pb,
853
- "while": nb,
854
- "with": rc,
855
- "null": tc,
856
- "true": uc,
857
- "false": vc,
858
- "new": wc,
859
- "in": Za,
860
- "instanceof": {
861
- l: "instanceof",
862
- K: 7,
863
- m: !0
864
- },
865
- "this": sc,
866
- "typeof": {
867
- l: "typeof",
868
- prefix: !0,
869
- m: !0
870
- },
871
- "void": {
872
- l: "void",
873
- prefix: !0,
874
- m: !0
875
- },
876
- "delete": {
877
- l: "delete",
878
- prefix: !0,
879
- m: !0
880
- }
881
- }, cb = {
882
- type: "[",
883
- m: !0
884
- }, db = {
885
- type: "]"
886
- }, ya = {
887
- type: "{",
888
- m: !0
889
- }, qa = {
890
- type: "}"
891
- }, Y = {
892
- type: "(",
893
- m: !0
894
- }, W = {
895
- type: ")"
896
- }, ha = {
897
- type: ",",
898
- m: !0
899
- }, Z = {
900
- type: ";",
901
- m: !0
902
- }, za = {
903
- type: ":",
904
- m: !0
905
- }, Rb = {
906
- type: "."
907
- }, Sb = {
908
- type: "?",
909
- m: !0
910
- }, Ub = {
911
- K: 10,
912
- m: !0
913
- }, Xb = {
914
- Ab: !0,
915
- m: !0
916
- }, ma = {
917
- Ab: !0,
918
- m: !0
919
- }, Mc = {
920
- Zb: !0,
921
- prefix: !0,
922
- Wb: !0
923
- }, Yb = {
924
- prefix: !0,
925
- m: !0
926
- }, Vb = {
927
- K: 1,
928
- m: !0
929
- }, Wb = {
930
- K: 2,
931
- m: !0
932
- }, Jc = {
933
- K: 3,
934
- m: !0
935
- }, Lc = {
936
- K: 4,
937
- m: !0
938
- }, Kc = {
939
- K: 5,
940
- m: !0
941
- }, Qc = {
942
- K: 6,
943
- m: !0
944
- }, Pc = {
945
- K: 7,
946
- m: !0
947
- }, Oc = {
948
- K: 8,
949
- m: !0
950
- }, Nc = {
951
- K: 9,
952
- prefix: !0,
953
- m: !0
954
- }, Ic = {
955
- K: 10,
956
- m: !0
957
- }, Vc = e("class enum extends super const export import"), xc = e("implements interface let package private protected public static yield"), Ya = e("eval arguments"), Rc = 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"), Hc = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Pb = RegExp("[\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\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]"), Gc = RegExp("[\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\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]"), Va = /[\n\r\u2028\u2029]/, Sa = /\r\n|[\n\r\u2028\u2029]/g, ra, mb = {
958
- kind: "loop"
959
- }, Tc = {
960
- kind: "switch"
961
- };
962
- };
963
- "object" === typeof exports && "object" === typeof module ? ca(exports) : "function" === typeof define && define.dc ? define(["exports"], ca) : ca(this.j || (this.j = {})); /*
964
- Copyright 2013 Google LLC
965
- SPDX-License-Identifier: Apache-2.0
966
- */
967
- function t(a, b) {
968
- "string" === typeof a && (a = da(a, "code"));
969
- var d = a.constructor;
970
- this.La = function () {
971
- return new d({
972
- options: {}
973
- });
974
- };
975
- var c = this.La(), e;
976
- for (e in a)
977
- c[e] = "body" === e ? a[e].slice() : a[e];
978
- this.pa = c;
979
- this.pb = b;
980
- this.xa = !1;
981
- this.aa = [];
982
- this.Va = 0;
983
- this.qb = Object.create(null);
984
- a = /^step([A-Z]\w*)$/;
985
- var h, l;
986
- for (l in this)
987
- "function" === typeof this[l] && (h = l.match(a)) && (this.qb[h[1]] = this[l].bind(this));
988
- this.O = ea(this, this.pa, null);
989
- this.Wa = this.O.object;
990
- this.pa = da(this.aa.join("\n"), "polyfills");
991
- this.aa = void 0;
992
- fa(this.pa);
993
- h = new u(this.pa, this.O);
994
- h.done = !1;
995
- this.o = [h];
996
- this.Bb();
997
- this.value = void 0;
998
- this.pa = c;
999
- h = new u(this.pa, this.O);
1000
- h.done = !1;
1001
- this.o.length = 0;
1002
- this.o[0] = h;
1003
- }
1004
- var ka = {
1005
- B: !0,
1006
- ec: 5
1007
- }, ua = {
1008
- configurable: !0,
1009
- enumerable: !0,
1010
- writable: !1
1011
- }, v = {
1012
- configurable: !0,
1013
- enumerable: !1,
1014
- writable: !0
1015
- }, B = {
1016
- configurable: !0,
1017
- enumerable: !1,
1018
- writable: !1
1019
- }, va = {
1020
- configurable: !1,
1021
- enumerable: !1,
1022
- writable: !1
1023
- }, wa = {
1024
- configurable: !1,
1025
- enumerable: !0,
1026
- writable: !0
1027
- }, Ga = {
1028
- STEP_ERROR: !0
1029
- }, Ha = {
1030
- SCOPE_REFERENCE: !0
1031
- }, Ia = {
1032
- VALUE_IN_DESCRIPTOR: !0
1033
- }, Ja = {
1034
- REGEXP_TIMEOUT: !0
1035
- }, Ka = [], La = null, Ma = null, Na = "undefined" === typeof globalThis ? this : globalThis, 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();", "};"];
1036
- function Pa(a) {
1037
- var b = a >>> 0;
1038
- return b === Number(a) ? b : NaN;
1039
- }
1040
- function Qa(a) {
1041
- var b = a >>> 0;
1042
- return String(b) === String(a) && 4294967295 !== b ? b : NaN;
1043
- }
1044
- function fa(a, b, d) {
1045
- b ? a.start = b : delete a.start;
1046
- d ? a.end = d : delete a.end;
1047
- for (var c in a)
1048
- if ("loc" !== c && a.hasOwnProperty(c)) {
1049
- var e = a[c];
1050
- e && "object" === typeof e && fa(e, b, d);
1051
- }
1052
- }
1053
- t.prototype.REGEXP_MODE = 2;
1054
- t.prototype.REGEXP_THREAD_TIMEOUT = 1E3;
1055
- t.prototype.POLYFILL_TIMEOUT = 1E3;
1056
- p = t.prototype;
1057
- p.P = !1;
1058
- p.Ia = !1;
1059
- p.Hb = 0;
1060
- function da(a, b) {
1061
- var d = {}, c;
1062
- for (c in ka)
1063
- d[c] = ka[c];
1064
- d.sourceFile = b;
1065
- return Na.j.parse(a, d);
1066
- }
1067
- p.Gb = function (a) {
1068
- var b = this.o[0];
1069
- if (!b || "Program" !== b.node.type)
1070
- throw Error("Expecting original AST to start with a Program node");
1071
- "string" === typeof a && (a = da(a, "appendCode" + this.Hb++));
1072
- if (!a || "Program" !== a.type)
1073
- throw Error("Expecting new AST to start with a Program node");
1074
- Ra(this, a, b.scope);
1075
- Array.prototype.push.apply(b.node.body, a.body);
1076
- b.node.body.ib = null;
1077
- b.done = !1;
1078
- };
1079
- p.kb = function () {
1080
- var a = this.o, b;
1081
- do {
1082
- var d = a[a.length - 1];
1083
- if (!d)
1084
- return !1;
1085
- var c = d.node, e = c.type;
1086
- if ("Program" === e && d.done)
1087
- return !1;
1088
- if (this.xa)
1089
- break;
1090
- var h = Ma;
1091
- Ma = this;
1092
- try {
1093
- var l = this.qb[e](a, d, c);
1094
- }
1095
- catch (q) {
1096
- if (q !== Ga)
1097
- throw this.value !== q && (this.value = void 0), q;
1098
- }
1099
- finally {
1100
- Ma = h;
1101
- }
1102
- l && a.push(l);
1103
- if (this.P)
1104
- throw this.value = void 0, Error("Getter not supported in this context");
1105
- if (this.Ia)
1106
- throw this.value = void 0, Error("Setter not supported in this context");
1107
- b || c.end || (b = Date.now() + this.POLYFILL_TIMEOUT);
1108
- } while (!c.end && b > Date.now());
1109
- return !0;
1110
- };
1111
- p.Bb = function () {
1112
- for (; !this.xa && this.kb();)
1113
- ;
1114
- return this.xa;
1115
- };
1116
- function ab(a, b) {
1117
- a.g(b, "NaN", NaN, va);
1118
- a.g(b, "Infinity", Infinity, va);
1119
- a.g(b, "undefined", void 0, va);
1120
- a.g(b, "window", b, ua);
1121
- a.g(b, "this", b, va);
1122
- a.g(b, "self", b);
1123
- a.M = new D(null);
1124
- a.X = new D(a.M);
1125
- zb(a, b);
1126
- Ab(a, b);
1127
- b.wa = a.M;
1128
- a.g(b, "constructor", a.v, v);
1129
- Bb(a, b);
1130
- Cb(a, b);
1131
- Db(a, b);
1132
- Eb(a, b);
1133
- Fb(a, b);
1134
- Gb(a, b);
1135
- Hb(a, b);
1136
- Ib(a, b);
1137
- Jb(a, b);
1138
- var d = a.i(function () {
1139
- throw EvalError("Can't happen");
1140
- }, !1);
1141
- d.eval = !0;
1142
- a.g(b, "eval", d, v);
1143
- a.g(b, "parseInt", a.i(parseInt, !1), v);
1144
- a.g(b, "parseFloat", a.i(parseFloat, !1), v);
1145
- a.g(b, "isNaN", a.i(isNaN, !1), v);
1146
- a.g(b, "isFinite", a.i(isFinite, !1), v);
1147
- d = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]];
1148
- for (var c = 0; c < d.length; c++)
1149
- a.g(b, d[c][1], a.i(function (e) {
1150
- return function (h) {
1151
- try {
1152
- return e(h);
1153
- }
1154
- catch (l) {
1155
- K(a, a.Db, l.message);
1156
- }
1157
- };
1158
- }(d[c][0]), !1), v);
1159
- a.OBJECT = a.v;
1160
- a.OBJECT_PROTO = a.M;
1161
- a.FUNCTION = a.N;
1162
- a.FUNCTION_PROTO = a.X;
1163
- a.ARRAY = a.oa;
1164
- a.ARRAY_PROTO = a.Ja;
1165
- a.REGEXP = a.H;
1166
- a.REGEXP_PROTO = a.Ka;
1167
- a.DATE = a.Y;
1168
- a.DATE_PROTO = a.mb;
1169
- a.pb && a.pb(a, b);
1170
- }
1171
- p.Sb = 0;
1172
- function zb(a, b) {
1173
- var d = /^[A-Za-z_$][\w$]*$/;
1174
- var c = function (e) {
1175
- var h = arguments.length ? String(arguments[arguments.length - 1]) : "", l = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
1176
- if (l) {
1177
- l = l.split(/\s*,\s*/);
1178
- for (var q = 0; q < l.length; q++) {
1179
- var C = l[q];
1180
- d.test(C) || K(a, a.$, "Invalid function argument: " + C);
1181
- }
1182
- l = l.join(", ");
1183
- }
1184
- try {
1185
- var V = da("(function(" + l + ") {" + h + "})", "function" + a.Sb++);
1186
- }
1187
- catch (N) {
1188
- K(a, a.$, "Invalid code: " + N.message);
1189
- }
1190
- 1 !== V.body.length && K(a, a.$, "Invalid code in function body");
1191
- return Kb(a, V.body[0].ja, a.O, "anonymous");
1192
- };
1193
- a.N = a.i(c, !0);
1194
- a.g(b, "Function", a.N, v);
1195
- a.g(a.N, "prototype", a.X, v);
1196
- a.g(a.X, "constructor", a.N, v);
1197
- a.X.Qa = function () { };
1198
- a.X.Qa.id = a.Va++;
1199
- a.X.yb = !0;
1200
- a.g(a.X, "length", 0, B);
1201
- a.X.L = "Function";
1202
- c = function (e, h) {
1203
- var l = a.o[a.o.length - 1];
1204
- l.ea = this;
1205
- l.C = e;
1206
- l.G = [];
1207
- null !== h && void 0 !== h && (h instanceof D ? l.G = Lb(a, h) : K(a, a.j, "CreateListFromArrayLike called on non-object"));
1208
- l.cb = !1;
1209
- };
1210
- M(a, a.N, "apply", c);
1211
- c = function (e) {
1212
- var h = a.o[a.o.length - 1];
1213
- h.ea = this;
1214
- h.C = e;
1215
- h.G = [];
1216
- for (var l = 1; l < arguments.length; l++)
1217
- h.G.push(arguments[l]);
1218
- h.cb = !1;
1219
- };
1220
- M(a, a.N, "call", c);
1221
- a.aa.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;", "}", "});", "");
1222
- c = function () {
1223
- return String(this);
1224
- };
1225
- M(a, a.N, "toString", c);
1226
- a.g(a.N, "toString", a.i(c, !1), v);
1227
- c = function () {
1228
- return this.valueOf();
1229
- };
1230
- M(a, a.N, "valueOf", c);
1231
- a.g(a.N, "valueOf", a.i(c, !1), v);
1232
- }
1233
- function Ab(a, b) {
1234
- function d(e) {
1235
- void 0 !== e && null !== e || K(a, a.j, "Cannot convert '" + e + "' to object");
1236
- }
1237
- var c = function (e) {
1238
- if (void 0 === e || null === e)
1239
- return Mb(a) ? this : a.s(a.M);
1240
- if (!(e instanceof D)) {
1241
- var h = a.s(Nb(a, e));
1242
- h.data = e;
1243
- return h;
1244
- }
1245
- return e;
1246
- };
1247
- a.v = a.i(c, !0);
1248
- a.g(a.v, "prototype", a.M, v);
1249
- a.g(a.M, "constructor", a.v, v);
1250
- a.g(b, "Object", a.v, v);
1251
- c = function (e) {
1252
- d(e);
1253
- return Ob(a, Object.getOwnPropertyNames(e instanceof D ? e.h : e));
1254
- };
1255
- a.g(a.v, "getOwnPropertyNames", a.i(c, !1), v);
1256
- c = function (e) {
1257
- d(e);
1258
- e instanceof D && (e = e.h);
1259
- return Ob(a, Object.keys(e));
1260
- };
1261
- a.g(a.v, "keys", a.i(c, !1), v);
1262
- c = function (e) {
1263
- if (null === e)
1264
- return a.s(null);
1265
- e instanceof D || K(a, a.j, "Object prototype may only be an Object or null, not " + e);
1266
- return a.s(e);
1267
- };
1268
- a.g(a.v, "create", a.i(c, !1), v);
1269
- a.aa.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", "");
1270
- c = function (e, h, l) {
1271
- h = String(h);
1272
- e instanceof D || K(a, a.j, "Object.defineProperty called on non-object: " + e);
1273
- l instanceof D || K(a, a.j, "Property description must be an object");
1274
- !e.preventExtensions || h in e.h || K(a, a.j, "Can't define property '" + h + "', object is not extensible");
1275
- a.g(e, h, Ia, l.h);
1276
- return e;
1277
- };
1278
- a.g(a.v, "defineProperty", a.i(c, !1), v);
1279
- a.aa.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;", "}", "});", "");
1280
- c = function (e, h) {
1281
- e instanceof D || K(a, a.j, "Object.getOwnPropertyDescriptor called on non-object: " + e);
1282
- h = String(h);
1283
- if (h in e.h) {
1284
- var l = Object.getOwnPropertyDescriptor(e.h, h), q = e.T[h];
1285
- e = e.W[h];
1286
- h = a.s(a.M);
1287
- q || e ? (a.g(h, "get", q), a.g(h, "set", e)) : (a.g(h, "value", l.value), a.g(h, "writable", l.writable));
1288
- a.g(h, "configurable", l.configurable);
1289
- a.g(h, "enumerable", l.enumerable);
1290
- return h;
1291
- }
1292
- };
1293
- a.g(a.v, "getOwnPropertyDescriptor", a.i(c, !1), v);
1294
- c = function (e) {
1295
- d(e);
1296
- return Nb(a, e);
1297
- };
1298
- a.g(a.v, "getPrototypeOf", a.i(c, !1), v);
1299
- c = function (e) {
1300
- return !!e && !e.preventExtensions;
1301
- };
1302
- a.g(a.v, "isExtensible", a.i(c, !1), v);
1303
- c = function (e) {
1304
- e instanceof D && (e.preventExtensions = !0);
1305
- return e;
1306
- };
1307
- a.g(a.v, "preventExtensions", a.i(c, !1), v);
1308
- M(a, a.v, "toString", D.prototype.toString);
1309
- M(a, a.v, "toLocaleString", D.prototype.toString);
1310
- M(a, a.v, "valueOf", D.prototype.valueOf);
1311
- c = function (e) {
1312
- d(this);
1313
- return this instanceof D ? String(e) in this.h : this.hasOwnProperty(e);
1314
- };
1315
- M(a, a.v, "hasOwnProperty", c);
1316
- c = function (e) {
1317
- d(this);
1318
- return this instanceof D ? Object.prototype.propertyIsEnumerable.call(this.h, e) : this.propertyIsEnumerable(e);
1319
- };
1320
- M(a, a.v, "propertyIsEnumerable", c);
1321
- c = function (e) {
1322
- for (;;) {
1323
- e = Nb(a, e);
1324
- if (!e)
1325
- return !1;
1326
- if (e === this)
1327
- return !0;
1328
- }
1329
- };
1330
- M(a, a.v, "isPrototypeOf", c);
1331
- }
1332
- function Bb(a, b) {
1333
- var d = function (c) {
1334
- var e = Mb(a) ? this : zc(a), h = arguments[0];
1335
- if (1 === arguments.length && "number" === typeof h)
1336
- isNaN(Pa(h)) && K(a, a.nb, "Invalid array length: " + h), e.h.length = h;
1337
- else {
1338
- for (h = 0; h < arguments.length; h++)
1339
- e.h[h] = arguments[h];
1340
- e.h.length = h;
1341
- }
1342
- return e;
1343
- };
1344
- a.oa = a.i(d, !0);
1345
- a.Ja = a.oa.h.prototype;
1346
- a.g(b, "Array", a.oa, v);
1347
- d = function (c) {
1348
- return c && "Array" === c.L;
1349
- };
1350
- a.g(a.oa, "isArray", a.i(d, !1), v);
1351
- a.g(a.Ja, "length", 0, {
1352
- configurable: !1,
1353
- enumerable: !1,
1354
- writable: !0
1355
- });
1356
- a.Ja.L = "Array";
1357
- a.aa.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(',');", "}", ");", "})();", "");
1358
- }
1359
- function Cb(a, b) {
1360
- var d = function (c) {
1361
- c = arguments.length ? Na.String(c) : "";
1362
- return Mb(a) ? (this.data = c, this) : c;
1363
- };
1364
- a.I = a.i(d, !0);
1365
- a.g(b, "String", a.I, v);
1366
- a.g(a.I, "fromCharCode", a.i(String.fromCharCode, !1), v);
1367
- b = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" ");
1368
- for (d = 0; d < b.length; d++)
1369
- M(a, a.I, b[d], String.prototype[b[d]]);
1370
- d = function (c, e, h) {
1371
- e = a.R(e);
1372
- h = a.R(h);
1373
- try {
1374
- return String(this).localeCompare(c, e, h);
1375
- }
1376
- catch (l) {
1377
- K(a, a.D, "localeCompare: " + l.message);
1378
- }
1379
- };
1380
- M(a, a.I, "localeCompare", d);
1381
- d = function (c, e, h) {
1382
- var l = String(this);
1383
- e = e ? Number(e) : void 0;
1384
- if (Q(a, c, a.H) && (c = c.data, Ac(a, c, h), 2 === a.REGEXP_MODE)) {
1385
- if (La)
1386
- c = Bc(a, "string.split(separator, limit)", {
1387
- string: l,
1388
- separator: c,
1389
- limit: e
1390
- }, c, h), c !== Ja && h(Ob(a, c));
1391
- else {
1392
- var q = a.ga(), C = Cc(a, c, q, h);
1393
- q.onmessage = function (V) {
1394
- clearTimeout(C);
1395
- h(Ob(a, V.data));
1396
- };
1397
- q.postMessage(["split", l, c, e]);
1398
- }
1399
- return;
1400
- }
1401
- c = l.split(c, e);
1402
- h(Ob(a, c));
1403
- };
1404
- Dc(a, a.I, "split", d);
1405
- d = function (c, e) {
1406
- var h = String(this);
1407
- c = Q(a, c, a.H) ? c.data : new RegExp(c);
1408
- Ac(a, c, e);
1409
- if (2 === a.REGEXP_MODE) {
1410
- if (La)
1411
- c = Bc(a, "string.match(regexp)", {
1412
- string: h,
1413
- regexp: c
1414
- }, c, e), c !== Ja && e(c && Ob(a, c));
1415
- else {
1416
- var l = a.ga(), q = Cc(a, c, l, e);
1417
- l.onmessage = function (C) {
1418
- clearTimeout(q);
1419
- e(C.data && Ob(a, C.data));
1420
- };
1421
- l.postMessage(["match", h, c]);
1422
- }
1423
- }
1424
- else
1425
- c = h.match(c), e(c && Ob(a, c));
1426
- };
1427
- Dc(a, a.I, "match", d);
1428
- d = function (c, e) {
1429
- var h = String(this);
1430
- Q(a, c, a.H) ? c = c.data : c = new RegExp(c);
1431
- Ac(a, c, e);
1432
- if (2 === a.REGEXP_MODE) {
1433
- if (La)
1434
- c = Bc(a, "string.search(regexp)", {
1435
- string: h,
1436
- regexp: c
1437
- }, c, e), c !== Ja && e(c);
1438
- else {
1439
- var l = a.ga(), q = Cc(a, c, l, e);
1440
- l.onmessage = function (C) {
1441
- clearTimeout(q);
1442
- e(C.data);
1443
- };
1444
- l.postMessage(["search", h, c]);
1445
- }
1446
- }
1447
- else
1448
- e(h.search(c));
1449
- };
1450
- Dc(a, a.I, "search", d);
1451
- d = function (c, e, h) {
1452
- var l = String(this);
1453
- e = String(e);
1454
- if (Q(a, c, a.H) && (c = c.data, Ac(a, c, h), 2 === a.REGEXP_MODE)) {
1455
- if (La)
1456
- c = Bc(a, "string.replace(substr, newSubstr)", {
1457
- string: l,
1458
- substr: c,
1459
- newSubstr: e
1460
- }, c, h), c !== Ja && h(c);
1461
- else {
1462
- var q = a.ga(), C = Cc(a, c, q, h);
1463
- q.onmessage = function (V) {
1464
- clearTimeout(C);
1465
- h(V.data);
1466
- };
1467
- q.postMessage(["replace", l, c, e]);
1468
- }
1469
- return;
1470
- }
1471
- h(l.replace(c, e));
1472
- };
1473
- Dc(a, a.I, "replace", d);
1474
- a.aa.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;", "};", "})();", "");
1475
- }
1476
- function Db(a, b) {
1477
- a.lb = a.i(function (d) {
1478
- d = Na.Boolean(d);
1479
- return Mb(a) ? (this.data = d, this) : d;
1480
- }, !0);
1481
- a.g(b, "Boolean", a.lb, v);
1482
- }
1483
- function Eb(a, b) {
1484
- var d = function (c) {
1485
- c = arguments.length ? Na.Number(c) : 0;
1486
- return Mb(a) ? (this.data = c, this) : c;
1487
- };
1488
- a.Z = a.i(d, !0);
1489
- a.g(b, "Number", a.Z, v);
1490
- b = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"];
1491
- for (d = 0; d < b.length; d++)
1492
- a.g(a.Z, b[d], Number[b[d]], va);
1493
- d = function (c) {
1494
- try {
1495
- return Number(this).toExponential(c);
1496
- }
1497
- catch (e) {
1498
- K(a, a.D, e.message);
1499
- }
1500
- };
1501
- M(a, a.Z, "toExponential", d);
1502
- d = function (c) {
1503
- try {
1504
- return Number(this).toFixed(c);
1505
- }
1506
- catch (e) {
1507
- K(a, a.D, e.message);
1508
- }
1509
- };
1510
- M(a, a.Z, "toFixed", d);
1511
- d = function (c) {
1512
- try {
1513
- return Number(this).toPrecision(c);
1514
- }
1515
- catch (e) {
1516
- K(a, a.D, e.message);
1517
- }
1518
- };
1519
- M(a, a.Z, "toPrecision", d);
1520
- d = function (c) {
1521
- try {
1522
- return Number(this).toString(c);
1523
- }
1524
- catch (e) {
1525
- K(a, a.D, e.message);
1526
- }
1527
- };
1528
- M(a, a.Z, "toString", d);
1529
- d = function (c, e) {
1530
- c = c ? a.R(c) : void 0;
1531
- e = e ? a.R(e) : void 0;
1532
- try {
1533
- return Number(this).toLocaleString(c, e);
1534
- }
1535
- catch (h) {
1536
- K(a, a.D, "toLocaleString: " + h.message);
1537
- }
1538
- };
1539
- M(a, a.Z, "toLocaleString", d);
1540
- }
1541
- function Fb(a, b) {
1542
- var d = function (e, h) {
1543
- if (!Mb(a))
1544
- return Na.Date();
1545
- var l = [null].concat(Array.from(arguments));
1546
- this.data = new (Function.prototype.bind.apply(Na.Date, l))();
1547
- return this;
1548
- };
1549
- a.Y = a.i(d, !0);
1550
- a.mb = a.Y.h.prototype;
1551
- a.g(b, "Date", a.Y, v);
1552
- a.g(a.Y, "now", a.i(Date.now, !1), v);
1553
- a.g(a.Y, "parse", a.i(Date.parse, !1), v);
1554
- a.g(a.Y, "UTC", a.i(Date.UTC, !1), v);
1555
- 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(" ");
1556
- for (var c = 0; c < b.length; c++)
1557
- d = function (e) {
1558
- return function (h) {
1559
- var l = this.data;
1560
- l instanceof Date || K(a, a.j, e + " not called on a Date");
1561
- for (var q = [], C = 0; C < arguments.length; C++)
1562
- q[C] = a.R(arguments[C]);
1563
- return l[e].apply(l, q);
1564
- };
1565
- }(b[c]), M(a, a.Y, b[c], d);
1566
- }
1567
- function Gb(a, b) {
1568
- var d = function (c, e) {
1569
- if (Mb(a))
1570
- var h = this;
1571
- else {
1572
- if (void 0 === e && Q(a, c, a.H))
1573
- return c;
1574
- h = a.s(a.Ka);
1575
- }
1576
- c = void 0 === c ? "" : String(c);
1577
- e = e ? String(e) : "";
1578
- /^[gmi]*$/.test(e) || K(a, a.$, "Invalid regexp flag: " + e);
1579
- try {
1580
- var l = new Na.RegExp(c, e);
1581
- }
1582
- catch (q) {
1583
- K(a, a.$, q.message);
1584
- }
1585
- Ec(a, h, l);
1586
- return h;
1587
- };
1588
- a.H = a.i(d, !0);
1589
- a.Ka = a.H.h.prototype;
1590
- a.g(b, "RegExp", a.H, v);
1591
- a.g(a.H.h.prototype, "global", void 0, B);
1592
- a.g(a.H.h.prototype, "ignoreCase", void 0, B);
1593
- a.g(a.H.h.prototype, "multiline", void 0, B);
1594
- a.g(a.H.h.prototype, "source", "(?:)", B);
1595
- a.aa.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});");
1596
- d = function (c, e) {
1597
- function h(N) {
1598
- if (N) {
1599
- var F = Ob(a, N);
1600
- a.g(F, "index", N.index);
1601
- a.g(F, "input", N.input);
1602
- return F;
1603
- }
1604
- return null;
1605
- }
1606
- var l = this.data;
1607
- c = String(c);
1608
- l.lastIndex = Number(a.F(this, "lastIndex"));
1609
- Ac(a, l, e);
1610
- if (2 === a.REGEXP_MODE) {
1611
- if (La)
1612
- c = Bc(a, "regexp.exec(string)", {
1613
- string: c,
1614
- regexp: l
1615
- }, l, e), c !== Ja && (a.g(this, "lastIndex", l.lastIndex), e(h(c)));
1616
- else {
1617
- var q = a.ga(), C = Cc(a, l, q, e), V = this;
1618
- q.onmessage = function (N) {
1619
- clearTimeout(C);
1620
- a.g(V, "lastIndex", N.data[1]);
1621
- e(h(N.data[0]));
1622
- };
1623
- q.postMessage(["exec", l, l.lastIndex, c]);
1624
- }
1625
- }
1626
- else
1627
- c = l.exec(c), a.g(this, "lastIndex", l.lastIndex), e(h(c));
1628
- };
1629
- Dc(a, a.H, "exec", d);
1630
- }
1631
- function Hb(a, b) {
1632
- function d(c) {
1633
- var e = a.i(function (h) {
1634
- var l = Mb(a) ? this : a.ya(e);
1635
- Fc(a, l, h);
1636
- return l;
1637
- }, !0);
1638
- a.g(e, "prototype", a.ya(a.D), v);
1639
- a.g(e.h.prototype, "name", c, v);
1640
- a.g(b, c, e, v);
1641
- return e;
1642
- }
1643
- a.D = a.i(function (c) {
1644
- var e = Mb(a) ? this : a.ya(a.D);
1645
- Fc(a, e, c);
1646
- return e;
1647
- }, !0);
1648
- a.g(b, "Error", a.D, v);
1649
- a.g(a.D.h.prototype, "message", "", v);
1650
- a.g(a.D.h.prototype, "name", "Error", v);
1651
- d("EvalError");
1652
- a.nb = d("RangeError");
1653
- a.ob = d("ReferenceError");
1654
- a.$ = d("SyntaxError");
1655
- a.j = d("TypeError");
1656
- a.Db = d("URIError");
1657
- }
1658
- function Ib(a, b) {
1659
- var d = a.s(a.M);
1660
- a.g(b, "Math", d, v);
1661
- var c = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
1662
- for (b = 0; b < c.length; b++)
1663
- a.g(d, c[b], Math[c[b]], B);
1664
- c = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" ");
1665
- for (b = 0; b < c.length; b++)
1666
- a.g(d, c[b], a.i(Math[c[b]], !1), v);
1667
- }
1668
- function Jb(a, b) {
1669
- var d = a.s(a.M);
1670
- a.g(b, "JSON", d, v);
1671
- b = function (c) {
1672
- try {
1673
- var e = JSON.parse(String(c));
1674
- }
1675
- catch (h) {
1676
- K(a, a.$, h.message);
1677
- }
1678
- return a.Ga(e);
1679
- };
1680
- a.g(d, "parse", a.i(b, !1));
1681
- b = function (c, e, h) {
1682
- e && "Function" === e.L ? K(a, a.j, "Function replacer on JSON.stringify not supported") : e && "Array" === e.L ? (e = Lb(a, e), e = e.filter(function (q) {
1683
- return "string" === typeof q || "number" === typeof q;
1684
- })) : e = null;
1685
- "string" !== typeof h && "number" !== typeof h && (h = void 0);
1686
- c = a.R(c);
1687
- try {
1688
- var l = JSON.stringify(c, e, h);
1689
- }
1690
- catch (q) {
1691
- K(a, a.j, q.message);
1692
- }
1693
- return l;
1694
- };
1695
- a.g(d, "stringify", a.i(b, !1));
1696
- }
1697
- function Q(a, b, d) {
1698
- if (null === b || void 0 === b || !d)
1699
- return !1;
1700
- d = d.h.prototype;
1701
- if (b === d)
1702
- return !0;
1703
- for (b = Nb(a, b); b;) {
1704
- if (b === d)
1705
- return !0;
1706
- b = b.wa;
1707
- }
1708
- return !1;
1709
- }
1710
- function Ec(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, B);
1714
- a.g(b, "global", d.global, B);
1715
- a.g(b, "ignoreCase", d.ignoreCase, B);
1716
- a.g(b, "multiline", d.multiline, B);
1717
- }
1718
- function Fc(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], h = e.node;
1723
- "CallExpression" === h.type && (e = e.ea) && d.length && (d[d.length - 1].Kb = a.F(e, "name"));
1724
- !h.V || d.length && "CallExpression" !== h.type || d.push({
1725
- Jb: h.V
1726
- });
1727
- }
1728
- c = String(a.F(b, "name"));
1729
- h = String(a.F(b, "message"));
1730
- h = c + ": " + h + "\n";
1731
- for (c = 0; c < d.length; c++) {
1732
- var l = d[c].Jb;
1733
- e = d[c].Kb;
1734
- l = l.source + ":" + l.start.line + ":" + l.start.Za;
1735
- h = e ? h + (" at " + e + " (" + l + ")\n") : h + (" at " + l + "\n");
1736
- }
1737
- a.g(b, "stack", h.trim(), v);
1738
- }
1739
- p.ga = function () {
1740
- var a = this.ga.Ib;
1741
- a || (a = new Blob([Oa.join("\n")], {
1742
- type: "application/javascript"
1743
- }), this.ga.Ib = a);
1744
- return new Worker(URL.createObjectURL(a));
1745
- };
1746
- function Bc(a, b, d, c, e) {
1747
- var h = {
1748
- timeout: a.REGEXP_THREAD_TIMEOUT
1749
- };
1750
- try {
1751
- return La.runInNewContext(b, d, h);
1752
- }
1753
- catch (l) {
1754
- e(null), K(a, a.D, "RegExp Timeout: " + c);
1755
- }
1756
- return Ja;
1757
- }
1758
- function Ac(a, b, d) {
1759
- if (0 === a.REGEXP_MODE)
1760
- var c = !1;
1761
- else if (1 === a.REGEXP_MODE)
1762
- c = !0;
1763
- else if (La)
1764
- c = !0;
1765
- else if ("function" === typeof Worker && "function" === typeof URL)
1766
- c = !0;
1767
- else if ("function" === typeof require) {
1768
- try {
1769
- La = require("vm");
1770
- }
1771
- catch (e) { }
1772
- c = !!La;
1773
- }
1774
- else
1775
- c = !1;
1776
- c || (d(null), K(a, a.D, "Regular expressions not supported: " + b));
1777
- }
1778
- function Cc(a, b, d, c) {
1779
- return setTimeout(function () {
1780
- d.terminate();
1781
- c(null);
1782
- try {
1783
- K(a, a.D, "RegExp Timeout: " + b);
1784
- }
1785
- catch (e) { }
1786
- }, a.REGEXP_THREAD_TIMEOUT);
1787
- }
1788
- p.ya = function (a) {
1789
- return this.s(a && a.h.prototype);
1790
- };
1791
- p.s = function (a) {
1792
- if ("object" !== typeof a)
1793
- throw Error("Non object prototype");
1794
- a = new D(a);
1795
- Q(this, a, this.D) && (a.L = "Error");
1796
- return a;
1797
- };
1798
- function zc(a) {
1799
- var b = a.s(a.Ja);
1800
- a.g(b, "length", 0, {
1801
- configurable: !1,
1802
- enumerable: !1,
1803
- writable: !0
1804
- });
1805
- b.L = "Array";
1806
- return b;
1807
- }
1808
- function Wc(a, b, d) {
1809
- var c = a.s(a.X);
1810
- d ? (d = a.s(a.M), a.g(c, "prototype", d, v), a.g(d, "constructor", c, v)) : c.yb = !0;
1811
- a.g(c, "length", b, B);
1812
- c.L = "Function";
1813
- return c;
1814
- }
1815
- function Kb(a, b, d, c) {
1816
- var e = Wc(a, b.ma.length, !0);
1817
- e.Sa = d;
1818
- e.node = b;
1819
- a.g(e, "name", b.id ? String(b.id.name) : c || "", B);
1820
- return e;
1821
- }
1822
- p.i = function (a, b) {
1823
- b = Wc(this, a.length, b);
1824
- b.Qa = a;
1825
- a.id = this.Va++;
1826
- this.g(b, "name", a.name, B);
1827
- return b;
1828
- };
1829
- p.tb = function (a) {
1830
- var b = Wc(this, a.length, !0);
1831
- b.Xa = a;
1832
- a.id = this.Va++;
1833
- this.g(b, "name", a.name, B);
1834
- return b;
1835
- };
1836
- p.Ga = function (a) {
1837
- if (a instanceof D)
1838
- throw Error("Object is already pseudo");
1839
- if (null === a || void 0 === a || !0 === a || !1 === a || "string" === typeof a || "number" === typeof a)
1840
- return a;
1841
- if (a instanceof RegExp) {
1842
- var b = this.s(this.Ka);
1843
- Ec(this, b, a);
1844
- return b;
1845
- }
1846
- if (a instanceof Date)
1847
- return b = this.s(this.mb), b.data = new Date(a.valueOf()), b;
1848
- if ("function" === typeof a) {
1849
- var d = this;
1850
- b = Object.getOwnPropertyDescriptor(a, "prototype");
1851
- return this.i(function () {
1852
- var e = Array.prototype.slice.call(arguments).map(function (h) {
1853
- return d.R(h);
1854
- });
1855
- e = a.apply(d, e);
1856
- return d.Ga(e);
1857
- }, !!b);
1858
- }
1859
- if (Array.isArray(a)) {
1860
- b = zc(this);
1861
- for (var c = 0; c < a.length; c++)
1862
- c in a && this.g(b, c, this.Ga(a[c]));
1863
- return b;
1864
- }
1865
- b = this.s(this.M);
1866
- for (c in a)
1867
- this.g(b, c, this.Ga(a[c]));
1868
- return b;
1869
- };
1870
- p.R = function (a, b) {
1871
- if ("object" !== typeof a && "function" !== typeof a || null === a)
1872
- return a;
1873
- if (!(a instanceof D))
1874
- throw Error("Object is not pseudo");
1875
- if (Q(this, a, this.H))
1876
- return b = new RegExp(a.data.source, a.data.flags), b.lastIndex = a.data.lastIndex, b;
1877
- if (Q(this, a, this.Y))
1878
- return new Date(a.data.valueOf());
1879
- b = b || {
1880
- gb: [],
1881
- Pa: []
1882
- };
1883
- var d = b.gb.indexOf(a);
1884
- if (-1 !== d)
1885
- return b.Pa[d];
1886
- b.gb.push(a);
1887
- if (Q(this, a, this.oa)) {
1888
- d = [];
1889
- b.Pa.push(d);
1890
- for (var c = this.F(a, "length"), e = 0; e < c; e++)
1891
- Xc(this, a, e) && (d[e] = this.R(this.F(a, e), b));
1892
- }
1893
- else
1894
- for (c in d = {}, b.Pa.push(d), a.h)
1895
- e = this.R(a.h[c], b), Object.defineProperty(d, c, {
1896
- value: e,
1897
- writable: !0,
1898
- enumerable: !0,
1899
- configurable: !0
1900
- });
1901
- b.gb.pop();
1902
- b.Pa.pop();
1903
- return d;
1904
- };
1905
- function Ob(a, b) {
1906
- for (var d = zc(a), c = Object.getOwnPropertyNames(b), e = 0; e < c.length; e++)
1907
- a.g(d, c[e], b[c[e]]);
1908
- return d;
1909
- }
1910
- function Lb(a, b) {
1911
- var d = [], c;
1912
- for (c in b.h)
1913
- d[c] = a.F(b, c);
1914
- d.length = Pa(a.F(b, "length")) || 0;
1915
- return d;
1916
- }
1917
- function Nb(a, b) {
1918
- switch (typeof b) {
1919
- case "number":
1920
- return a.Z.h.prototype;
1921
- case "boolean":
1922
- return a.lb.h.prototype;
1923
- case "string":
1924
- return a.I.h.prototype;
1925
- }
1926
- return b ? b.wa : null;
1927
- }
1928
- p.F = function (a, b) {
1929
- if (this.P)
1930
- throw Error("Getter not supported in that context");
1931
- b = String(b);
1932
- void 0 !== a && null !== a || K(this, this.j, "Cannot read property '" + b + "' of " + a);
1933
- if ("object" === typeof a && !(a instanceof D))
1934
- throw TypeError("Expecting native value or pseudo object");
1935
- if ("length" === b) {
1936
- if (Q(this, a, this.I))
1937
- return String(a).length;
1938
- }
1939
- else if (64 > b.charCodeAt(0) && Q(this, a, this.I)) {
1940
- var d = Qa(b);
1941
- if (!isNaN(d) && d < String(a).length)
1942
- return String(a)[d];
1943
- }
1944
- do
1945
- if (a.h && b in a.h)
1946
- return (d = a.T[b]) ? (this.P = !0, d) : a.h[b];
1947
- while (a = Nb(this, a));
1948
- };
1949
- function Xc(a, b, d) {
1950
- if (!(b instanceof D))
1951
- throw TypeError("Primitive data type has no properties");
1952
- d = String(d);
1953
- if ("length" === d && Q(a, b, a.I))
1954
- return !0;
1955
- if (Q(a, b, a.I)) {
1956
- var c = Qa(d);
1957
- if (!isNaN(c) && c < String(b).length)
1958
- return !0;
1959
- }
1960
- do
1961
- if (b.h && d in b.h)
1962
- return !0;
1963
- while (b = Nb(a, b));
1964
- return !1;
1965
- }
1966
- p.g = function (a, b, d, c) {
1967
- if (this.Ia)
1968
- throw Error("Setter not supported in that context");
1969
- b = String(b);
1970
- void 0 !== a && null !== a || K(this, this.j, "Cannot set property '" + b + "' of " + a);
1971
- if ("object" === typeof a && !(a instanceof D))
1972
- throw TypeError("Expecting native value or pseudo object");
1973
- 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");
1974
- var e = !this.o || Yc(this).S;
1975
- if (a instanceof D) {
1976
- if (Q(this, a, this.I)) {
1977
- var h = Qa(b);
1978
- if ("length" === b || !isNaN(h) && h < String(a).length) {
1979
- e && K(this, this.j, "Cannot assign to read only property '" + b + "' of String '" + a.data + "'");
1980
- return;
1981
- }
1982
- }
1983
- if ("Array" === a.L)
1984
- if (h = a.h.length, "length" === b) {
1985
- if (c) {
1986
- if (!("value" in c))
1987
- return;
1988
- d = c.value;
1989
- }
1990
- d = Pa(d);
1991
- isNaN(d) && K(this, this.nb, "Invalid array length");
1992
- if (d < h)
1993
- for (l in a.h) {
1994
- var l = Qa(l);
1995
- !isNaN(l) && d <= l && delete a.h[l];
1996
- }
1997
- }
1998
- else
1999
- isNaN(l = Qa(b)) || (a.h.length = Math.max(h, l + 1));
2000
- if (!a.preventExtensions || b in a.h) {
2001
- if (c) {
2002
- e = {};
2003
- "get" in c && c.get && (a.T[b] = c.get, e.get = this.g.Xb);
2004
- "set" in c && c.set && (a.W[b] = c.set, e.set = this.g.Yb);
2005
- "configurable" in c && (e.configurable = c.configurable);
2006
- "enumerable" in c && (e.enumerable = c.enumerable);
2007
- "writable" in c && (e.writable = c.writable, delete a.T[b], delete a.W[b]);
2008
- "value" in c ? (e.value = c.value, delete a.T[b], delete a.W[b]) : d !== Ia && (e.value = d, delete a.T[b], delete a.W[b]);
2009
- try {
2010
- Object.defineProperty(a.h, b, e);
2011
- }
2012
- catch (q) {
2013
- K(this, this.j, "Cannot redefine property: " + b);
2014
- }
2015
- "get" in c && !c.get && delete a.T[b];
2016
- "set" in c && !c.set && delete a.W[b];
2017
- }
2018
- else {
2019
- if (d === Ia)
2020
- throw ReferenceError("Value not specified");
2021
- for (c = a; !(b in c.h);)
2022
- if (c = Nb(this, c), !c) {
2023
- c = a;
2024
- break;
2025
- }
2026
- if (c.W && c.W[b])
2027
- return this.Ia = !0, c.W[b];
2028
- if (c.T && c.T[b])
2029
- e && K(this, this.j, "Cannot set property '" + b + "' of object '" + a + "' which only has a getter");
2030
- else
2031
- try {
2032
- a.h[b] = d;
2033
- }
2034
- catch (q) {
2035
- e && K(this, this.j, "Cannot assign to read only property '" + b + "' of object '" + a + "'");
2036
- }
2037
- }
2038
- }
2039
- else
2040
- e && K(this, this.j, "Can't add property '" + b + "', object is not extensible");
2041
- }
2042
- else
2043
- e && K(this, this.j, "Can't create property '" + b + "' on '" + a + "'");
2044
- };
2045
- p.g.Xb = function () {
2046
- throw Error("Placeholder getter");
2047
- };
2048
- p.g.Yb = function () {
2049
- throw Error("Placeholder setter");
2050
- };
2051
- function M(a, b, d, c) {
2052
- a.g(b.h.prototype, d, a.i(c, !1), v);
2053
- }
2054
- function Dc(a, b, d, c) {
2055
- a.g(b.h.prototype, d, a.tb(c), v);
2056
- }
2057
- function Yc(a) {
2058
- a = a.o[a.o.length - 1].scope;
2059
- if (!a)
2060
- throw Error("No scope found");
2061
- return a;
2062
- }
2063
- function ea(a, b, d) {
2064
- var c = !1;
2065
- if (d && d.S)
2066
- c = !0;
2067
- else {
2068
- var e = b.body && b.body[0];
2069
- e && e.ja && "Literal" === e.ja.type && "use strict" === e.ja.value && (c = !0);
2070
- }
2071
- e = a.s(null);
2072
- c = new Zc(d, c, e);
2073
- d || ab(a, c.object);
2074
- Ra(a, b, c);
2075
- return c;
2076
- }
2077
- function $c(a, b, d) {
2078
- if (!b)
2079
- throw Error("parentScope required");
2080
- a = d || a.s(null);
2081
- return new Zc(b, b.S, a);
2082
- }
2083
- function ad(a, b) {
2084
- for (var d = Yc(a); d && d !== a.O;) {
2085
- if (b in d.object.h)
2086
- return d.object.h[b];
2087
- d = d.Sa;
2088
- }
2089
- if (d === a.O && Xc(a, d.object, b))
2090
- return a.F(d.object, b);
2091
- d = a.o[a.o.length - 1].node;
2092
- "UnaryExpression" === d.type && "typeof" === d.operator || K(a, a.ob, b + " is not defined");
2093
- }
2094
- function bd(a, b, d) {
2095
- for (var c = Yc(a), e = c.S; c && c !== a.O;) {
2096
- if (b in c.object.h) {
2097
- try {
2098
- c.object.h[b] = d;
2099
- }
2100
- catch (h) {
2101
- e && K(a, a.j, "Cannot assign to read only variable '" + b + "'");
2102
- }
2103
- return;
2104
- }
2105
- c = c.Sa;
2106
- }
2107
- if (c === a.O && (!e || Xc(a, c.object, b)))
2108
- return a.g(c.object, b, d);
2109
- K(a, a.ob, b + " is not defined");
2110
- }
2111
- function Ra(a, b, d) {
2112
- if (b.ib)
2113
- var c = b.ib;
2114
- else {
2115
- c = Object.create(null);
2116
- switch (b.type) {
2117
- case "VariableDeclaration":
2118
- for (var e = 0; e < b.da.length; e++)
2119
- c[b.da[e].id.name] = !0;
2120
- break;
2121
- case "FunctionDeclaration":
2122
- c[b.id.name] = b;
2123
- break;
2124
- case "BlockStatement":
2125
- case "CatchClause":
2126
- case "DoWhileStatement":
2127
- case "ForInStatement":
2128
- case "ForStatement":
2129
- case "IfStatement":
2130
- case "LabeledStatement":
2131
- case "Program":
2132
- case "SwitchCase":
2133
- case "SwitchStatement":
2134
- case "TryStatement":
2135
- case "WithStatement":
2136
- case "WhileStatement":
2137
- var h = b.constructor, l;
2138
- for (l in b)
2139
- if ("loc" !== l) {
2140
- var q = b[l];
2141
- if (q && "object" === typeof q)
2142
- if (Array.isArray(q))
2143
- for (e = 0; e < q.length; e++) {
2144
- if (q[e] && q[e].constructor === h) {
2145
- var C = Ra(a, q[e], d);
2146
- for (l in C)
2147
- c[l] = C[l];
2148
- }
2149
- }
2150
- else if (q.constructor === h)
2151
- for (l in C = Ra(a, q, d), C)
2152
- c[l] = C[l];
2153
- }
2154
- }
2155
- b.ib = c;
2156
- }
2157
- for (l in c)
2158
- !0 === c[l] ? a.g(d.object, l, void 0, wa) : a.g(d.object, l, Kb(a, c[l], d), wa);
2159
- return c;
2160
- }
2161
- function Mb(a) {
2162
- return a.o[a.o.length - 1].isConstructor;
2163
- }
2164
- function cd(a, b) {
2165
- return b[0] === Ha ? ad(a, b[1]) : a.F(b[0], b[1]);
2166
- }
2167
- function dd(a, b, d) {
2168
- return b[0] === Ha ? bd(a, b[1], d) : a.g(b[0], b[1], d);
2169
- }
2170
- function K(a, b, d) {
2171
- if (!a.O)
2172
- throw void 0 === d ? b : d;
2173
- void 0 !== d && b instanceof D && (b = a.ya(b), Fc(a, b, d));
2174
- ed(a, 4, b);
2175
- throw Ga;
2176
- }
2177
- function ed(a, b, d, c) {
2178
- if (0 === b)
2179
- throw TypeError("Should not unwind for NORMAL completions");
2180
- var e = a.o;
2181
- a: for (; 0 < e.length; e.pop()) {
2182
- var h = e[e.length - 1];
2183
- switch (h.node.type) {
2184
- case "TryStatement":
2185
- h.ca = {
2186
- type: b,
2187
- value: d,
2188
- label: c
2189
- };
2190
- return;
2191
- case "CallExpression":
2192
- case "NewExpression":
2193
- if (3 === b) {
2194
- h.value = d;
2195
- return;
2196
- }
2197
- if (4 !== b)
2198
- throw Error("Unsynatctic break/continue not rejected by Acorn");
2199
- break;
2200
- case "Program":
2201
- h.done = !0;
2202
- break a;
2203
- }
2204
- if (1 === b) {
2205
- if (c ? h.labels && -1 !== h.labels.indexOf(c) : h.U || h.Vb) {
2206
- e.pop();
2207
- return;
2208
- }
2209
- }
2210
- else if (2 === b && (c ? h.labels && -1 !== h.labels.indexOf(c) : h.U))
2211
- return;
2212
- }
2213
- Q(a, d, a.D) ? (b = {
2214
- EvalError: EvalError,
2215
- RangeError: RangeError,
2216
- ReferenceError: ReferenceError,
2217
- SyntaxError: SyntaxError,
2218
- TypeError: TypeError,
2219
- URIError: URIError
2220
- }, c = String(a.F(d, "name")), e = a.F(d, "message").valueOf(), b = (b[c] || Error)(e), b.stack = String(a.F(d, "stack"))) : b = String(d);
2221
- a.value = b;
2222
- throw b;
2223
- }
2224
- function R(a, b) {
2225
- switch (b.type) {
2226
- case "ArrayExpression":
2227
- return "[...]";
2228
- case "BinaryExpression":
2229
- case "LogicalExpression":
2230
- return R(a, b.left) + " " + b.operator + " " + R(a, b.right);
2231
- case "CallExpression":
2232
- return R(a, b.callee) + "(...)";
2233
- case "ConditionalExpression":
2234
- return R(a, b.test) + " ? " + R(a, b.ba) + " : " + R(a, b.alternate);
2235
- case "Identifier":
2236
- return b.name;
2237
- case "Literal":
2238
- return b.raw;
2239
- case "MemberExpression":
2240
- var d = R(a, b.object);
2241
- a = R(a, b.Ta);
2242
- return b.$a ? d + "[" + a + "]" : d + "." + a;
2243
- case "NewExpression":
2244
- return "new " + R(a, b.callee) + "(...)";
2245
- case "ObjectExpression":
2246
- return "{...}";
2247
- case "ThisExpression":
2248
- return "this";
2249
- case "UnaryExpression":
2250
- return b.operator + " " + R(a, b.J);
2251
- case "UpdateExpression":
2252
- return d = R(a, b.J), b.prefix ? b.operator + d : d + b.operator;
2253
- }
2254
- return "???";
2255
- }
2256
- function fd(a, b, d) {
2257
- if (!a.P)
2258
- throw Error("Unexpected call to createGetter");
2259
- a.P = !1;
2260
- d = Array.isArray(d) ? d[0] : d;
2261
- var c = a.La();
2262
- c.type = "CallExpression";
2263
- a = new u(c, a.o[a.o.length - 1].scope);
2264
- a.ra = 2;
2265
- a.C = d;
2266
- a.ea = b;
2267
- a.bb = !0;
2268
- a.G = [];
2269
- return a;
2270
- }
2271
- function gd(a, b, d, c) {
2272
- if (!a.Ia)
2273
- throw Error("Unexpected call to createSetter");
2274
- a.Ia = !1;
2275
- d = Array.isArray(d) ? d[0] : a.Wa;
2276
- var e = a.La();
2277
- e.type = "CallExpression";
2278
- a = new u(e, a.o[a.o.length - 1].scope);
2279
- a.ra = 2;
2280
- a.C = d;
2281
- a.ea = b;
2282
- a.bb = !0;
2283
- a.G = [c];
2284
- return a;
2285
- }
2286
- function hd(a, b) {
2287
- return void 0 === b || null === b ? a.Wa : b instanceof D ? b : (a = a.s(Nb(a, b)), a.data = b, a);
2288
- }
2289
- p.Tb = function () {
2290
- return this.O;
2291
- };
2292
- p.Ub = function () {
2293
- return this.o;
2294
- };
2295
- p.ac = function (a) {
2296
- this.o = a;
2297
- };
2298
- function u(a, b) {
2299
- this.node = a;
2300
- this.scope = b;
2301
- }
2302
- function Zc(a, b, d) {
2303
- this.Sa = a;
2304
- this.S = b;
2305
- this.object = d;
2306
- }
2307
- function D(a) {
2308
- this.T = Object.create(null);
2309
- this.W = Object.create(null);
2310
- this.h = Object.create(null);
2311
- this.wa = a;
2312
- }
2313
- p = D.prototype;
2314
- p.wa = null;
2315
- p.L = "Object";
2316
- p.data = null;
2317
- p.toString = function () {
2318
- if (!Ma)
2319
- return "[object Interpreter.Object]";
2320
- if (!(this instanceof D))
2321
- return String(this);
2322
- if ("Array" === this.L) {
2323
- var a = Ka;
2324
- a.push(this);
2325
- try {
2326
- var b = [], d = this.h.length, c = !1;
2327
- 1024 < d && (d = 1E3, c = !0);
2328
- for (var e = 0; e < d; e++) {
2329
- var h = this.h[e];
2330
- b[e] = h instanceof D && -1 !== a.indexOf(h) ? "..." : h;
2331
- }
2332
- c && b.push("...");
2333
- }
2334
- finally {
2335
- a.pop();
2336
- }
2337
- return b.join(",");
2338
- }
2339
- if ("Error" === this.L) {
2340
- a = Ka;
2341
- if (-1 !== a.indexOf(this))
2342
- return "[object Error]";
2343
- d = this;
2344
- do
2345
- if ("name" in d.h) {
2346
- b = d.h.name;
2347
- break;
2348
- }
2349
- while (d = d.wa);
2350
- d = this;
2351
- do
2352
- if ("message" in d.h) {
2353
- c = d.h.message;
2354
- break;
2355
- }
2356
- while (d = d.wa);
2357
- a.push(this);
2358
- try {
2359
- b = b && String(b), c = c && String(c);
2360
- }
2361
- finally {
2362
- a.pop();
2363
- }
2364
- return c ? b + ": " + c : String(b);
2365
- }
2366
- return null !== this.data ? String(this.data) : "[object " + this.L + "]";
2367
- };
2368
- p.valueOf = function () {
2369
- return !Ma || void 0 === this.data || null === this.data || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
2370
- };
2371
- t.prototype.stepArrayExpression = function (a, b, d) {
2372
- d = d.elements;
2373
- var c = b.A || 0;
2374
- b.Ma ? (this.g(b.Ma, c, b.value), c++) : (b.Ma = zc(this), b.Ma.h.length = d.length);
2375
- for (; c < d.length;) {
2376
- if (d[c])
2377
- return b.A = c, new u(d[c], b.scope);
2378
- c++;
2379
- }
2380
- a.pop();
2381
- a[a.length - 1].value = b.Ma;
2382
- };
2383
- t.prototype.stepAssignmentExpression = function (a, b, d) {
2384
- if (!b.ha)
2385
- return b.ha = !0, b = new u(d.left, b.scope), b.qa = !0, b;
2386
- if (!b.Ba) {
2387
- b.Da || (b.Da = b.value);
2388
- b.za && (b.ka = b.value);
2389
- if (!b.za && "=" !== d.operator && (a = cd(this, b.Da), b.ka = a, this.P))
2390
- return b.za = !0, fd(this, a, b.Da);
2391
- b.Ba = !0;
2392
- "=" === d.operator && "Identifier" === d.left.type && (b.Na = d.left.name);
2393
- return new u(d.right, b.scope);
2394
- }
2395
- if (b.sa)
2396
- a.pop(), a[a.length - 1].value = b.hb;
2397
- else {
2398
- var c = b.ka, e = b.value;
2399
- switch (d.operator) {
2400
- case "=":
2401
- c = e;
2402
- break;
2403
- case "+=":
2404
- c += e;
2405
- break;
2406
- case "-=":
2407
- c -= e;
2408
- break;
2409
- case "*=":
2410
- c *= e;
2411
- break;
2412
- case "/=":
2413
- c /= e;
2414
- break;
2415
- case "%=":
2416
- c %= e;
2417
- break;
2418
- case "<<=":
2419
- c <<= e;
2420
- break;
2421
- case ">>=":
2422
- c >>= e;
2423
- break;
2424
- case ">>>=":
2425
- c >>>= e;
2426
- break;
2427
- case "&=":
2428
- c &= e;
2429
- break;
2430
- case "^=":
2431
- c ^= e;
2432
- break;
2433
- case "|=":
2434
- c |= e;
2435
- break;
2436
- default:
2437
- throw SyntaxError("Unknown assignment expression: " + d.operator);
2438
- }
2439
- if (d = dd(this, b.Da, c))
2440
- return b.sa = !0, b.hb = c, gd(this, d, b.Da, c);
2441
- a.pop();
2442
- a[a.length - 1].value = c;
2443
- }
2444
- };
2445
- t.prototype.stepBinaryExpression = function (a, b, d) {
2446
- if (!b.ha)
2447
- return b.ha = !0, new u(d.left, b.scope);
2448
- if (!b.Ba)
2449
- return b.Ba = !0, b.ka = b.value, new u(d.right, b.scope);
2450
- a.pop();
2451
- var c = b.ka;
2452
- b = b.value;
2453
- switch (d.operator) {
2454
- case "==":
2455
- d = c == b;
2456
- break;
2457
- case "!=":
2458
- d = c != b;
2459
- break;
2460
- case "===":
2461
- d = c === b;
2462
- break;
2463
- case "!==":
2464
- d = c !== b;
2465
- break;
2466
- case ">":
2467
- d = c > b;
2468
- break;
2469
- case ">=":
2470
- d = c >= b;
2471
- break;
2472
- case "<":
2473
- d = c < b;
2474
- break;
2475
- case "<=":
2476
- d = c <= b;
2477
- break;
2478
- case "+":
2479
- d = c + b;
2480
- break;
2481
- case "-":
2482
- d = c - b;
2483
- break;
2484
- case "*":
2485
- d = c * b;
2486
- break;
2487
- case "/":
2488
- d = c / b;
2489
- break;
2490
- case "%":
2491
- d = c % b;
2492
- break;
2493
- case "&":
2494
- d = c & b;
2495
- break;
2496
- case "|":
2497
- d = c | b;
2498
- break;
2499
- case "^":
2500
- d = c ^ b;
2501
- break;
2502
- case "<<":
2503
- d = c << b;
2504
- break;
2505
- case ">>":
2506
- d = c >> b;
2507
- break;
2508
- case ">>>":
2509
- d = c >>> b;
2510
- break;
2511
- case "in":
2512
- b instanceof D || K(this, this.j, "'in' expects an object, not '" + b + "'");
2513
- d = Xc(this, b, c);
2514
- break;
2515
- case "instanceof":
2516
- Q(this, b, this.N) || K(this, this.j, "'instanceof' expects an object, not '" + b + "'");
2517
- d = c instanceof D ? Q(this, c, b) : !1;
2518
- break;
2519
- default:
2520
- throw SyntaxError("Unknown binary operator: " + d.operator);
2521
- }
2522
- a[a.length - 1].value = d;
2523
- };
2524
- t.prototype.stepBlockStatement = function (a, b, d) {
2525
- var c = b.A || 0;
2526
- if (d = d.body[c])
2527
- return b.A = c + 1, new u(d, b.scope);
2528
- a.pop();
2529
- };
2530
- t.prototype.stepBreakStatement = function (a, b, d) {
2531
- ed(this, 1, void 0, d.label && d.label.name);
2532
- };
2533
- t.prototype.Eb = 0;
2534
- t.prototype.stepCallExpression = function (a, b, d) {
2535
- if (!b.ra) {
2536
- b.ra = 1;
2537
- var c = new u(d.callee, b.scope);
2538
- c.qa = !0;
2539
- return c;
2540
- }
2541
- if (1 === b.ra) {
2542
- b.ra = 2;
2543
- var e = b.value;
2544
- if (Array.isArray(e)) {
2545
- if (b.ea = cd(this, e), e[0] === Ha ? b.Lb = "eval" === e[1] : b.C = e[0], e = b.ea, this.P)
2546
- return b.ra = 1, fd(this, e, b.value);
2547
- }
2548
- else
2549
- b.ea = e;
2550
- b.G = [];
2551
- b.A = 0;
2552
- }
2553
- e = b.ea;
2554
- if (!b.bb) {
2555
- 0 !== b.A && b.G.push(b.value);
2556
- if (d.arguments[b.A])
2557
- return new u(d.arguments[b.A++], b.scope);
2558
- if ("NewExpression" === d.type) {
2559
- e instanceof D && !e.yb || K(this, this.j, R(this, d.callee) + " is not a constructor");
2560
- if (e === this.oa)
2561
- b.C = zc(this);
2562
- else {
2563
- var h = e.h.prototype;
2564
- if ("object" !== typeof h || null === h)
2565
- h = this.M;
2566
- b.C = this.s(h);
2567
- }
2568
- b.isConstructor = !0;
2569
- }
2570
- b.bb = !0;
2571
- }
2572
- if (b.cb)
2573
- a.pop(), a[a.length - 1].value = b.isConstructor && "object" !== typeof b.value ? b.C : b.value;
2574
- else {
2575
- b.cb = !0;
2576
- e instanceof D || K(this, this.j, R(this, d.callee) + " is not a function");
2577
- if (a = e.node) {
2578
- d = ea(this, a.body, e.Sa);
2579
- c = zc(this);
2580
- for (e = 0; e < b.G.length; e++)
2581
- this.g(c, e, b.G[e]);
2582
- this.g(d.object, "arguments", c);
2583
- for (e = 0; e < a.ma.length; e++)
2584
- this.g(d.object, a.ma[e].name, b.G.length > e ? b.G[e] : void 0);
2585
- d.S || (b.C = hd(this, b.C));
2586
- this.g(d.object, "this", b.C, ua);
2587
- b.value = void 0;
2588
- return new u(a.body, d);
2589
- }
2590
- if (e.eval) {
2591
- if (e = b.G[0], "string" !== typeof e)
2592
- b.value = e;
2593
- else {
2594
- try {
2595
- c = da(String(e), "eval" + this.Eb++);
2596
- }
2597
- catch (q) {
2598
- K(this, this.$, "Invalid code: " + q.message);
2599
- }
2600
- e = this.La();
2601
- e.type = "EvalProgram_";
2602
- e.body = c.body;
2603
- fa(e, d.start, d.end);
2604
- d = b.Lb ? b.scope : this.O;
2605
- d.S ? d = ea(this, c, d) : Ra(this, c, d);
2606
- this.value = void 0;
2607
- return new u(e, d);
2608
- }
2609
- }
2610
- else if (e.Qa)
2611
- b.scope.S || (b.C = hd(this, b.C)), b.value = e.Qa.apply(b.C, b.G);
2612
- else if (e.Xa) {
2613
- var l = this;
2614
- c = e.Xa.length - 1;
2615
- c = b.G.concat(Array(c)).slice(0, c);
2616
- c.push(function (q) {
2617
- b.value = q;
2618
- l.xa = !1;
2619
- });
2620
- this.xa = !0;
2621
- b.scope.S || (b.C = hd(this, b.C));
2622
- e.Xa.apply(b.C, c);
2623
- }
2624
- else
2625
- K(this, this.j, R(this, d.callee) + " is not callable");
2626
- }
2627
- };
2628
- t.prototype.stepConditionalExpression = function (a, b, d) {
2629
- var c = b.la || 0;
2630
- if (0 === c)
2631
- return b.la = 1, new u(d.test, b.scope);
2632
- if (1 === c) {
2633
- b.la = 2;
2634
- if ((c = !!b.value) && d.ba)
2635
- return new u(d.ba, b.scope);
2636
- if (!c && d.alternate)
2637
- return new u(d.alternate, b.scope);
2638
- this.value = void 0;
2639
- }
2640
- a.pop();
2641
- "ConditionalExpression" === d.type && (a[a.length - 1].value = b.value);
2642
- };
2643
- t.prototype.stepContinueStatement = function (a, b, d) {
2644
- ed(this, 2, void 0, d.label && d.label.name);
2645
- };
2646
- t.prototype.stepDebuggerStatement = function (a) {
2647
- a.pop();
2648
- };
2649
- t.prototype.stepDoWhileStatement = function (a, b, d) {
2650
- "DoWhileStatement" === d.type && void 0 === b.fa && (b.value = !0, b.fa = !0);
2651
- if (!b.fa)
2652
- return b.fa = !0, new u(d.test, b.scope);
2653
- if (!b.value)
2654
- a.pop();
2655
- else if (d.body)
2656
- return b.fa = !1, b.U = !0, new u(d.body, b.scope);
2657
- };
2658
- t.prototype.stepEmptyStatement = function (a) {
2659
- a.pop();
2660
- };
2661
- t.prototype.stepEvalProgram_ = function (a, b, d) {
2662
- var c = b.A || 0;
2663
- if (d = d.body[c])
2664
- return b.A = c + 1, new u(d, b.scope);
2665
- a.pop();
2666
- a[a.length - 1].value = this.value;
2667
- };
2668
- t.prototype.stepExpressionStatement = function (a, b, d) {
2669
- if (!b.ia)
2670
- return this.value = void 0, b.ia = !0, new u(d.ja, b.scope);
2671
- a.pop();
2672
- this.value = b.value;
2673
- };
2674
- t.prototype.stepForInStatement = function (a, b, d) {
2675
- if (!b.Qb && (b.Qb = !0, d.left.da && d.left.da[0].ta))
2676
- return b.scope.S && K(this, this.$, "for-in loop variable declaration may not have an initializer"), new u(d.left, b.scope);
2677
- if (!b.Aa)
2678
- return b.Aa = !0, b.na || (b.na = b.value), new u(d.right, b.scope);
2679
- b.U || (b.U = !0, b.u = b.value, b.jb = Object.create(null));
2680
- if (void 0 === b.Oa)
2681
- a: for (;;) {
2682
- if (b.u instanceof D)
2683
- for (b.va || (b.va = Object.getOwnPropertyNames(b.u.h));;) {
2684
- var c = b.va.shift();
2685
- if (void 0 === c)
2686
- break;
2687
- if (Object.prototype.hasOwnProperty.call(b.u.h, c) && !b.jb[c] && (b.jb[c] = !0, Object.prototype.propertyIsEnumerable.call(b.u.h, c))) {
2688
- b.Oa = c;
2689
- break a;
2690
- }
2691
- }
2692
- else if (null !== b.u && void 0 !== b.u)
2693
- for (b.va || (b.va = Object.getOwnPropertyNames(b.u));;) {
2694
- c = b.va.shift();
2695
- if (void 0 === c)
2696
- break;
2697
- b.jb[c] = !0;
2698
- if (Object.prototype.propertyIsEnumerable.call(b.u, c)) {
2699
- b.Oa = c;
2700
- break a;
2701
- }
2702
- }
2703
- b.u = Nb(this, b.u);
2704
- b.va = null;
2705
- if (null === b.u) {
2706
- a.pop();
2707
- return;
2708
- }
2709
- }
2710
- if (!b.vb)
2711
- if (b.vb = !0, a = d.left, "VariableDeclaration" === a.type)
2712
- b.na = [Ha, a.da[0].id.name];
2713
- else
2714
- return b.na = null, b = new u(a, b.scope), b.qa = !0, b;
2715
- b.na || (b.na = b.value);
2716
- if (!b.sa && (b.sa = !0, a = b.Oa, c = dd(this, b.na, a)))
2717
- return gd(this, c, b.na, a);
2718
- b.Oa = void 0;
2719
- b.vb = !1;
2720
- b.sa = !1;
2721
- if (d.body)
2722
- return new u(d.body, b.scope);
2723
- };
2724
- t.prototype.stepForStatement = function (a, b, d) {
2725
- switch (b.la) {
2726
- default:
2727
- b.la = 1;
2728
- if (d.ta)
2729
- return new u(d.ta, b.scope);
2730
- break;
2731
- case 1:
2732
- b.la = 2;
2733
- if (d.test)
2734
- return new u(d.test, b.scope);
2735
- break;
2736
- case 2:
2737
- b.la = 3;
2738
- if (d.test && !b.value)
2739
- a.pop();
2740
- else
2741
- return b.U = !0, new u(d.body, b.scope);
2742
- break;
2743
- case 3:
2744
- if (b.la = 1, d.update)
2745
- return new u(d.update, b.scope);
2746
- }
2747
- };
2748
- t.prototype.stepFunctionDeclaration = function (a) {
2749
- a.pop();
2750
- };
2751
- t.prototype.stepFunctionExpression = function (a, b, d) {
2752
- a.pop();
2753
- b = a[a.length - 1];
2754
- a = b.scope;
2755
- d.id && (a = $c(this, a));
2756
- b.value = Kb(this, d, a, b.Na);
2757
- d.id && this.g(a.object, d.id.name, b.value, ua);
2758
- };
2759
- t.prototype.stepIdentifier = function (a, b, d) {
2760
- a.pop();
2761
- if (b.qa)
2762
- a[a.length - 1].value = [Ha, d.name];
2763
- else {
2764
- b = ad(this, d.name);
2765
- if (this.P)
2766
- return fd(this, b, this.Wa);
2767
- a[a.length - 1].value = b;
2768
- }
2769
- };
2770
- t.prototype.stepIfStatement = t.prototype.stepConditionalExpression;
2771
- t.prototype.stepLabeledStatement = function (a, b, d) {
2772
- a.pop();
2773
- a = b.labels || [];
2774
- a.push(d.label.name);
2775
- b = new u(d.body, b.scope);
2776
- b.labels = a;
2777
- return b;
2778
- };
2779
- t.prototype.stepLiteral = function (a, b, d) {
2780
- a.pop();
2781
- b = d.value;
2782
- b instanceof RegExp && (d = this.s(this.Ka), Ec(this, d, b), b = d);
2783
- a[a.length - 1].value = b;
2784
- };
2785
- t.prototype.stepLogicalExpression = function (a, b, d) {
2786
- if ("&&" !== d.operator && "||" !== d.operator)
2787
- throw SyntaxError("Unknown logical operator: " + d.operator);
2788
- if (!b.ha)
2789
- return b.ha = !0, new u(d.left, b.scope);
2790
- if (b.Ba)
2791
- a.pop(), a[a.length - 1].value = b.value;
2792
- else if ("&&" === d.operator && !b.value || "||" === d.operator && b.value)
2793
- a.pop(), a[a.length - 1].value = b.value;
2794
- else
2795
- return b.Ba = !0, new u(d.right, b.scope);
2796
- };
2797
- t.prototype.stepMemberExpression = function (a, b, d) {
2798
- if (!b.Aa)
2799
- return b.Aa = !0, new u(d.object, b.scope);
2800
- if (d.$a) {
2801
- if (b.Rb)
2802
- d = b.value;
2803
- else
2804
- return b.u = b.value, b.Rb = !0, new u(d.Ta, b.scope);
2805
- }
2806
- else
2807
- b.u = b.value, d = d.Ta.name;
2808
- a.pop();
2809
- if (b.qa)
2810
- a[a.length - 1].value = [b.u, d];
2811
- else {
2812
- d = this.F(b.u, d);
2813
- if (this.P)
2814
- return fd(this, d, b.u);
2815
- a[a.length - 1].value = d;
2816
- }
2817
- };
2818
- t.prototype.stepNewExpression = t.prototype.stepCallExpression;
2819
- t.prototype.stepObjectExpression = function (a, b, d) {
2820
- var c = b.A || 0, e = d.h[c];
2821
- if (b.u) {
2822
- var h = b.Na;
2823
- b.Ha[h] || (b.Ha[h] = {});
2824
- b.Ha[h][e.kind] = b.value;
2825
- b.A = ++c;
2826
- e = d.h[c];
2827
- }
2828
- else
2829
- b.u = this.s(this.M), b.Ha = Object.create(null);
2830
- if (e) {
2831
- var l = e.key;
2832
- if ("Identifier" === l.type)
2833
- h = l.name;
2834
- else if ("Literal" === l.type)
2835
- h = l.value;
2836
- else
2837
- throw SyntaxError("Unknown object structure: " + l.type);
2838
- b.Na = h;
2839
- return new u(e.value, b.scope);
2840
- }
2841
- for (l in b.Ha)
2842
- d = b.Ha[l], "get" in d || "set" in d ? this.g(b.u, l, Ia, {
2843
- configurable: !0,
2844
- enumerable: !0,
2845
- get: d.get,
2846
- set: d.set
2847
- }) : this.g(b.u, l, d.init);
2848
- a.pop();
2849
- a[a.length - 1].value = b.u;
2850
- };
2851
- t.prototype.stepProgram = function (a, b, d) {
2852
- if (a = d.body.shift())
2853
- return b.done = !1, new u(a, b.scope);
2854
- b.done = !0;
2855
- };
2856
- t.prototype.stepReturnStatement = function (a, b, d) {
2857
- if (d.J && !b.ia)
2858
- return b.ia = !0, new u(d.J, b.scope);
2859
- ed(this, 3, b.value);
2860
- };
2861
- t.prototype.stepSequenceExpression = function (a, b, d) {
2862
- var c = b.A || 0;
2863
- if (d = d.wb[c])
2864
- return b.A = c + 1, new u(d, b.scope);
2865
- a.pop();
2866
- a[a.length - 1].value = b.value;
2867
- };
2868
- t.prototype.stepSwitchStatement = function (a, b, d) {
2869
- if (!b.fa)
2870
- return b.fa = 1, new u(d.Mb, b.scope);
2871
- 1 === b.fa && (b.fa = 2, b.cc = b.value, b.ab = -1);
2872
- for (;;) {
2873
- var c = b.fb || 0, e = d.sb[c];
2874
- if (b.Fa || !e || e.test) {
2875
- if (e || b.Fa || -1 === b.ab) {
2876
- if (e) {
2877
- if (!b.Fa && !b.Cb && e.test)
2878
- return b.Cb = !0, new u(e.test, b.scope);
2879
- if (b.Fa || b.value === b.cc) {
2880
- b.Fa = !0;
2881
- var h = b.A || 0;
2882
- if (e.ba[h])
2883
- return b.Vb = !0, b.A = h + 1, new u(e.ba[h], b.scope);
2884
- }
2885
- b.Cb = !1;
2886
- b.A = 0;
2887
- b.fb = c + 1;
2888
- }
2889
- else {
2890
- a.pop();
2891
- break;
2892
- }
2893
- }
2894
- else
2895
- b.Fa = !0, b.fb = b.ab;
2896
- }
2897
- else
2898
- b.ab = c, b.fb = c + 1;
2899
- }
2900
- };
2901
- t.prototype.stepThisExpression = function (a) {
2902
- a.pop();
2903
- a[a.length - 1].value = ad(this, "this");
2904
- };
2905
- t.prototype.stepThrowStatement = function (a, b, d) {
2906
- if (b.ia)
2907
- K(this, b.value);
2908
- else
2909
- return b.ia = !0, new u(d.J, b.scope);
2910
- };
2911
- t.prototype.stepTryStatement = function (a, b, d) {
2912
- if (!b.Nb)
2913
- return b.Nb = !0, new u(d.block, b.scope);
2914
- if (b.ca && 4 === b.ca.type && !b.Pb && d.Ca)
2915
- return b.Pb = !0, a = $c(this, b.scope), this.g(a.object, d.Ca.Ra.name, b.ca.value), b.ca = void 0, new u(d.Ca.body, a);
2916
- if (!b.Ob && d.eb)
2917
- return b.Ob = !0, new u(d.eb, b.scope);
2918
- a.pop();
2919
- b.ca && ed(this, b.ca.type, b.ca.value, b.ca.label);
2920
- };
2921
- t.prototype.stepUnaryExpression = function (a, b, d) {
2922
- if (!b.ia)
2923
- return b.ia = !0, a = new u(d.J, b.scope), a.qa = "delete" === d.operator, a;
2924
- a.pop();
2925
- var c = b.value;
2926
- switch (d.operator) {
2927
- case "-":
2928
- c = -c;
2929
- break;
2930
- case "+":
2931
- c = +c;
2932
- break;
2933
- case "!":
2934
- c = !c;
2935
- break;
2936
- case "~":
2937
- c = ~c;
2938
- break;
2939
- case "delete":
2940
- d = !0;
2941
- if (Array.isArray(c)) {
2942
- var e = c[0];
2943
- e === Ha && (e = b.scope);
2944
- c = String(c[1]);
2945
- try {
2946
- delete e.h[c];
2947
- }
2948
- catch (h) {
2949
- b.scope.S ? K(this, this.j, "Cannot delete property '" + c + "' of '" + e + "'") : d = !1;
2950
- }
2951
- }
2952
- c = d;
2953
- break;
2954
- case "typeof":
2955
- c = c && "Function" === c.L ? "function" : typeof c;
2956
- break;
2957
- case "void":
2958
- c = void 0;
2959
- break;
2960
- default:
2961
- throw SyntaxError("Unknown unary operator: " + d.operator);
2962
- }
2963
- a[a.length - 1].value = c;
2964
- };
2965
- t.prototype.stepUpdateExpression = function (a, b, d) {
2966
- if (!b.ha)
2967
- return b.ha = !0, a = new u(d.J, b.scope), a.qa = !0, a;
2968
- b.Ea || (b.Ea = b.value);
2969
- b.za && (b.ka = b.value);
2970
- if (!b.za) {
2971
- var c = cd(this, b.Ea);
2972
- b.ka = c;
2973
- if (this.P)
2974
- return b.za = !0, fd(this, c, b.Ea);
2975
- }
2976
- if (b.sa)
2977
- a.pop(), a[a.length - 1].value = b.hb;
2978
- else {
2979
- c = Number(b.ka);
2980
- if ("++" === d.operator)
2981
- var e = c + 1;
2982
- else if ("--" === d.operator)
2983
- e = c - 1;
2984
- else
2985
- throw SyntaxError("Unknown update expression: " + d.operator);
2986
- d = d.prefix ? e : c;
2987
- if (c = dd(this, b.Ea, e))
2988
- return b.sa = !0, b.hb = d, gd(this, c, b.Ea, e);
2989
- a.pop();
2990
- a[a.length - 1].value = d;
2991
- }
2992
- };
2993
- t.prototype.stepVariableDeclaration = function (a, b, d) {
2994
- d = d.da;
2995
- var c = b.A || 0, e = d[c];
2996
- b.zb && e && (bd(this, e.id.name, b.value), b.zb = !1, e = d[++c]);
2997
- for (; e;) {
2998
- if (e.ta)
2999
- return b.A = c, b.zb = !0, b.Na = e.id.name, new u(e.ta, b.scope);
3000
- e = d[++c];
3001
- }
3002
- a.pop();
3003
- };
3004
- t.prototype.stepWithStatement = function (a, b, d) {
3005
- if (!b.Aa)
3006
- return b.Aa = !0, new u(d.object, b.scope);
3007
- a.pop();
3008
- a = $c(this, b.scope, b.value);
3009
- return new u(d.body, a);
3010
- };
3011
- t.prototype.stepWhileStatement = t.prototype.stepDoWhileStatement;
3012
- Na.Interpreter = t;
3013
- t.prototype.step = t.prototype.kb;
3014
- t.prototype.run = t.prototype.Bb;
3015
- t.prototype.appendCode = t.prototype.Gb;
3016
- t.prototype.createObject = t.prototype.ya;
3017
- t.prototype.createObjectProto = t.prototype.s;
3018
- t.prototype.createAsyncFunction = t.prototype.tb;
3019
- t.prototype.createNativeFunction = t.prototype.i;
3020
- t.prototype.getProperty = t.prototype.F;
3021
- t.prototype.setProperty = t.prototype.g;
3022
- t.prototype.nativeToPseudo = t.prototype.Ga;
3023
- t.prototype.pseudoToNative = t.prototype.R;
3024
- t.prototype.getGlobalScope = t.prototype.Tb;
3025
- t.prototype.getStateStack = t.prototype.Ub;
3026
- t.prototype.setStateStack = t.prototype.ac;
3027
- t.VALUE_IN_DESCRIPTOR = Ia;