@builder.io/sdk-qwik 0.7.1-4 → 0.7.1-5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.qwik.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { componentQrl, inlinedQrl, useStylesScopedQrl, _jsxC, _jsxS, _fnSignal, createContextId, _jsxQ, _jsxBranch, useComputedQrl, useLexicalScope, _IMMUTABLE, Slot, useStore, useContextProvider, _wrapProp, useContext, createElement, Fragment as Fragment$1, useSignal, useTaskQrl, useOn } from '@builder.io/qwik';
2
2
  import { Fragment } from '@builder.io/qwik/jsx-runtime';
3
- import ivm from 'isolated-vm';
4
3
  import { isServer } from '@builder.io/qwik/build';
5
4
 
6
5
  const Button = /* @__PURE__ */ componentQrl(/* @__PURE__ */ inlinedQrl((props) => {
@@ -120,6 +119,3187 @@ const getUserAttributes = () => {
120
119
  };
121
120
  };
122
121
 
122
+ const checkIsDefined = (maybeT) => maybeT !== null && maybeT !== void 0;
123
+
124
+ function isNodeRuntime() {
125
+ return typeof process !== "undefined" && checkIsDefined(process?.versions?.node);
126
+ }
127
+
128
+ function isEdgeRuntime() {
129
+ return !isBrowser() && !isNodeRuntime();
130
+ }
131
+
132
+ const set = (obj, _path, value) => {
133
+ if (Object(obj) !== obj)
134
+ return obj;
135
+ const path = Array.isArray(_path) ? _path : _path.toString().match(/[^.[\]]+/g);
136
+ path.slice(0, -1).reduce((a, c, i) => Object(a[c]) === a[c] ? a[c] : a[c] = Math.abs(Number(path[i + 1])) >> 0 === +path[i + 1] ? [] : {}, obj)[path[path.length - 1]] = value;
137
+ return obj;
138
+ };
139
+
140
+ var p;
141
+ var ca = function(a) {
142
+ function b(f) {
143
+ return 48 > f ? 36 === f : 58 > f ? true : 65 > f ? false : 91 > f ? true : 97 > f ? 95 === f : 123 > f ? true : 170 <= f && Jc.test(String.fromCharCode(f));
144
+ }
145
+ function d(f) {
146
+ return 65 > f ? 36 === f : 91 > f ? true : 97 > f ? 95 === f : 123 > f ? true : 170 <= f && Pb.test(String.fromCharCode(f));
147
+ }
148
+ function c(f, g) {
149
+ var l = r;
150
+ for (var n = 1, w = 0; ; ) {
151
+ Sa.lastIndex = w;
152
+ var J = Sa.exec(l);
153
+ if (J && J.index < f)
154
+ ++n, w = J.index + J[0].length;
155
+ else
156
+ break;
157
+ }
158
+ l = {
159
+ line: n,
160
+ ab: f - w
161
+ };
162
+ g += " (" + l.line + ":" + l.ab + ")";
163
+ g = new SyntaxError(g);
164
+ g.j = f;
165
+ g.X = l;
166
+ g.o = m;
167
+ throw g;
168
+ }
169
+ function e(f) {
170
+ f = f.split(" ");
171
+ for (var g = /* @__PURE__ */ Object.create(null), l = 0; l < f.length; l++)
172
+ g[f[l]] = true;
173
+ return function(n) {
174
+ return g[n] || false;
175
+ };
176
+ }
177
+ function h() {
178
+ this.line = la;
179
+ this.ab = m - X;
180
+ }
181
+ function k(f, g) {
182
+ oa = m;
183
+ z.C && (cb = new h());
184
+ x = f;
185
+ C();
186
+ T = g;
187
+ ya = f.m;
188
+ }
189
+ function q() {
190
+ for (var f = m, g = z.va && z.C && new h(), l = r.charCodeAt(m += 2); m < pa && 10 !== l && 13 !== l && 8232 !== l && 8233 !== l; )
191
+ ++m, l = r.charCodeAt(m);
192
+ z.va && z.va(false, r.slice(f + 2, m), f, m, g, z.C && new h());
193
+ }
194
+ function C() {
195
+ for (; m < pa; ) {
196
+ var f = r.charCodeAt(m);
197
+ if (32 === f)
198
+ ++m;
199
+ else if (13 === f)
200
+ ++m, f = r.charCodeAt(m), 10 === f && ++m, z.C && (++la, X = m);
201
+ else if (10 === f || 8232 === f || 8233 === f)
202
+ ++m, z.C && (++la, X = m);
203
+ else if (8 < f && 14 > f)
204
+ ++m;
205
+ else if (47 === f) {
206
+ if (f = r.charCodeAt(m + 1), 42 === f) {
207
+ f = void 0;
208
+ var g = z.va && z.C && new h(), l = m, n = r.indexOf("*/", m += 2);
209
+ -1 === n && c(m - 2, "Unterminated comment");
210
+ m = n + 2;
211
+ if (z.C)
212
+ for (Sa.lastIndex = l; (f = Sa.exec(r)) && f.index < m; )
213
+ ++la, X = f.index + f[0].length;
214
+ z.va && z.va(true, r.slice(l + 2, n), l, m, g, z.C && new h());
215
+ } else if (47 === f)
216
+ q();
217
+ else
218
+ break;
219
+ } else if (160 === f)
220
+ ++m;
221
+ else if (5760 <= f && Kc.test(String.fromCharCode(f)))
222
+ ++m;
223
+ else
224
+ break;
225
+ }
226
+ }
227
+ function U(f) {
228
+ switch (f) {
229
+ case 46:
230
+ f = r.charCodeAt(m + 1);
231
+ 48 <= f && 57 >= f ? Qb(true) : (++m, k(Rb));
232
+ return;
233
+ case 40:
234
+ return ++m, k(Y);
235
+ case 41:
236
+ return ++m, k(W);
237
+ case 59:
238
+ return ++m, k(Z);
239
+ case 44:
240
+ return ++m, k(ha);
241
+ case 91:
242
+ return ++m, k(db);
243
+ case 93:
244
+ return ++m, k(eb);
245
+ case 123:
246
+ return ++m, k(za);
247
+ case 125:
248
+ return ++m, k(qa);
249
+ case 58:
250
+ return ++m, k(Aa);
251
+ case 63:
252
+ return ++m, k(Sb);
253
+ case 48:
254
+ if (f = r.charCodeAt(m + 1), 120 === f || 88 === f) {
255
+ m += 2;
256
+ f = Ba(16);
257
+ null === f && c(I + 2, "Expected hexadecimal number");
258
+ d(r.charCodeAt(m)) && c(m, "Identifier directly after number");
259
+ k(Ca, f);
260
+ return;
261
+ }
262
+ case 49:
263
+ case 50:
264
+ case 51:
265
+ case 52:
266
+ case 53:
267
+ case 54:
268
+ case 55:
269
+ case 56:
270
+ case 57:
271
+ return Qb(false);
272
+ case 34:
273
+ case 39:
274
+ m++;
275
+ for (var g = ""; ; ) {
276
+ m >= pa && c(I, "Unterminated string constant");
277
+ var l = r.charCodeAt(m);
278
+ if (l === f) {
279
+ ++m;
280
+ k(Ta, g);
281
+ break;
282
+ }
283
+ if (92 === l) {
284
+ l = r.charCodeAt(++m);
285
+ var n = /^[0-7]+/.exec(r.slice(m, m + 3));
286
+ for (n && (n = n[0]); n && 255 < parseInt(n, 8); )
287
+ n = n.slice(0, -1);
288
+ "0" === n && (n = null);
289
+ ++m;
290
+ if (n)
291
+ S && c(m - 2, "Octal literal in strict mode"), g += String.fromCharCode(parseInt(n, 8)), m += n.length - 1;
292
+ else
293
+ switch (l) {
294
+ case 110:
295
+ g += "\n";
296
+ break;
297
+ case 114:
298
+ g += "\r";
299
+ break;
300
+ case 120:
301
+ g += String.fromCharCode(Ua(2));
302
+ break;
303
+ case 117:
304
+ g += String.fromCharCode(Ua(4));
305
+ break;
306
+ case 85:
307
+ g += String.fromCharCode(Ua(8));
308
+ break;
309
+ case 116:
310
+ g += " ";
311
+ break;
312
+ case 98:
313
+ g += "\b";
314
+ break;
315
+ case 118:
316
+ g += "\v";
317
+ break;
318
+ case 102:
319
+ g += "\f";
320
+ break;
321
+ case 48:
322
+ g += "\0";
323
+ break;
324
+ case 13:
325
+ 10 === r.charCodeAt(m) && ++m;
326
+ case 10:
327
+ z.C && (X = m, ++la);
328
+ break;
329
+ default:
330
+ g += String.fromCharCode(l);
331
+ }
332
+ } else
333
+ 13 !== l && 10 !== l && 8232 !== l && 8233 !== l || c(I, "Unterminated string constant"), g += String.fromCharCode(l), ++m;
334
+ }
335
+ return;
336
+ case 47:
337
+ f = r.charCodeAt(m + 1);
338
+ ya ? (++m, Tb()) : 61 === f ? F(ma, 2) : F(Ub, 1);
339
+ return;
340
+ case 37:
341
+ case 42:
342
+ 61 === r.charCodeAt(m + 1) ? F(ma, 2) : F(Lc, 1);
343
+ return;
344
+ case 124:
345
+ case 38:
346
+ g = r.charCodeAt(m + 1);
347
+ g === f ? F(124 === f ? Vb : Wb, 2) : 61 === g ? F(ma, 2) : F(124 === f ? Mc : Nc, 1);
348
+ return;
349
+ case 94:
350
+ 61 === r.charCodeAt(m + 1) ? F(ma, 2) : F(Oc, 1);
351
+ return;
352
+ case 43:
353
+ case 45:
354
+ g = r.charCodeAt(m + 1);
355
+ g === f ? 45 === g && 62 === r.charCodeAt(m + 2) && Va.test(r.slice(ia, m)) ? (m += 3, q(), C(), N()) : F(Pc, 2) : 61 === g ? F(ma, 2) : F(Qc, 1);
356
+ return;
357
+ case 60:
358
+ case 62:
359
+ g = r.charCodeAt(m + 1);
360
+ l = 1;
361
+ g === f ? (l = 62 === f && 62 === r.charCodeAt(m + 2) ? 3 : 2, 61 === r.charCodeAt(m + l) ? F(ma, l + 1) : F(Rc, l)) : 33 === g && 60 === f && 45 === r.charCodeAt(m + 2) && 45 === r.charCodeAt(m + 3) ? (m += 4, q(), C(), N()) : (61 === g && (l = 61 === r.charCodeAt(m + 2) ? 3 : 2), F(Sc, l));
362
+ return;
363
+ case 61:
364
+ case 33:
365
+ 61 === r.charCodeAt(m + 1) ? F(Tc, 61 === r.charCodeAt(m + 2) ? 3 : 2) : F(61 === f ? Xb : Yb, 1);
366
+ return;
367
+ case 126:
368
+ return F(Yb, 1);
369
+ }
370
+ return false;
371
+ }
372
+ function N(f) {
373
+ f ? m = I + 1 : I = m;
374
+ z.C && (fb = new h());
375
+ if (f)
376
+ return Tb();
377
+ if (m >= pa)
378
+ return k(gb);
379
+ f = r.charCodeAt(m);
380
+ if (d(f) || 92 === f)
381
+ return Zb();
382
+ if (false === U(f)) {
383
+ f = String.fromCharCode(f);
384
+ if ("\\" === f || Pb.test(f))
385
+ return Zb();
386
+ c(m, "Unexpected character '" + f + "'");
387
+ }
388
+ }
389
+ function F(f, g) {
390
+ var l = r.slice(m, m + g);
391
+ m += g;
392
+ k(f, l);
393
+ }
394
+ function Tb() {
395
+ for (var f, g, l = m; ; ) {
396
+ m >= pa && c(l, "Unterminated regexp");
397
+ var n = r.charAt(m);
398
+ Va.test(n) && c(l, "Unterminated regexp");
399
+ if (f)
400
+ f = false;
401
+ else {
402
+ if ("[" === n)
403
+ g = true;
404
+ else if ("]" === n && g)
405
+ g = false;
406
+ else if ("/" === n && !g)
407
+ break;
408
+ f = "\\" === n;
409
+ }
410
+ ++m;
411
+ }
412
+ f = r.slice(l, m);
413
+ ++m;
414
+ (g = $b()) && !/^[gmi]*$/.test(g) && c(l, "Invalid regexp flag");
415
+ try {
416
+ var w = new RegExp(f, g);
417
+ } catch (J) {
418
+ throw J instanceof SyntaxError && c(l, J.message), J;
419
+ }
420
+ k(ac, w);
421
+ }
422
+ function Ba(f, g) {
423
+ for (var l = m, n = 0, w = void 0 === g ? Infinity : g, J = 0; J < w; ++J) {
424
+ var P = r.charCodeAt(m);
425
+ P = 97 <= P ? P - 97 + 10 : 65 <= P ? P - 65 + 10 : 48 <= P && 57 >= P ? P - 48 : Infinity;
426
+ if (P >= f)
427
+ break;
428
+ ++m;
429
+ n = n * f + P;
430
+ }
431
+ return m === l || void 0 !== g && m - l !== g ? null : n;
432
+ }
433
+ function Qb(f) {
434
+ var g = m, l = false, n = 48 === r.charCodeAt(m);
435
+ f || null !== Ba(10) || c(g, "Invalid number");
436
+ 46 === r.charCodeAt(m) && (++m, Ba(10), l = true);
437
+ f = r.charCodeAt(m);
438
+ if (69 === f || 101 === f)
439
+ f = r.charCodeAt(++m), 43 !== f && 45 !== f || ++m, null === Ba(10) && c(g, "Invalid number"), l = true;
440
+ d(r.charCodeAt(m)) && c(m, "Identifier directly after number");
441
+ f = r.slice(g, m);
442
+ var w;
443
+ l ? w = parseFloat(f) : n && 1 !== f.length ? /[89]/.test(f) || S ? c(g, "Invalid number") : w = parseInt(f, 8) : w = parseInt(f, 10);
444
+ k(Ca, w);
445
+ }
446
+ function Ua(f) {
447
+ f = Ba(16, f);
448
+ null === f && c(I, "Bad character escape sequence");
449
+ return f;
450
+ }
451
+ function $b() {
452
+ ra = false;
453
+ for (var f, g = true, l = m; ; ) {
454
+ var n = r.charCodeAt(m);
455
+ if (b(n))
456
+ ra && (f += r.charAt(m)), ++m;
457
+ else if (92 === n) {
458
+ ra || (f = r.slice(l, m));
459
+ ra = true;
460
+ 117 !== r.charCodeAt(++m) && c(m, "Expecting Unicode escape sequence \\uXXXX");
461
+ ++m;
462
+ n = Ua(4);
463
+ var w = String.fromCharCode(n);
464
+ w || c(m - 1, "Invalid Unicode escape");
465
+ (g ? d(n) : b(n)) || c(m - 4, "Invalid Unicode escape");
466
+ f += w;
467
+ } else
468
+ break;
469
+ g = false;
470
+ }
471
+ return ra ? f : r.slice(l, m);
472
+ }
473
+ function Zb() {
474
+ var f = $b(), g = sa;
475
+ !ra && Uc(f) && (g = Vc[f]);
476
+ k(g, f);
477
+ }
478
+ function B() {
479
+ hb = I;
480
+ ia = oa;
481
+ ib = cb;
482
+ N();
483
+ }
484
+ function jb(f) {
485
+ S = f;
486
+ m = I;
487
+ if (z.C)
488
+ for (; m < X; )
489
+ X = r.lastIndexOf("\n", X - 2) + 1, --la;
490
+ C();
491
+ N();
492
+ }
493
+ function bc() {
494
+ this.type = null;
495
+ this.start = I;
496
+ this.end = null;
497
+ }
498
+ function cc() {
499
+ this.start = fb;
500
+ this.end = null;
501
+ kb && (this.source = kb);
502
+ }
503
+ function L() {
504
+ var f = new bc();
505
+ z.C && (f.X = new cc());
506
+ z.vb && (f.sourceFile = z.vb);
507
+ z.Xa && (f.j = [
508
+ I,
509
+ 0
510
+ ]);
511
+ return f;
512
+ }
513
+ function ja(f) {
514
+ var g = new bc();
515
+ g.start = f.start;
516
+ z.C && (g.X = new cc(), g.X.start = f.X.start);
517
+ z.Xa && (g.j = [
518
+ f.j[0],
519
+ 0
520
+ ]);
521
+ return g;
522
+ }
523
+ function y(f, g) {
524
+ f.type = g;
525
+ f.end = ia;
526
+ z.C && (f.X.end = ib);
527
+ z.Xa && (f.j[1] = ia);
528
+ return f;
529
+ }
530
+ function lb(f) {
531
+ return "ExpressionStatement" === f.type && "Literal" === f.la.type && "use strict" === f.la.value;
532
+ }
533
+ function E(f) {
534
+ return x === f ? (B(), true) : false;
535
+ }
536
+ function Wa() {
537
+ return !z.fc && (x === gb || x === qa || Va.test(r.slice(ia, I)));
538
+ }
539
+ function na() {
540
+ E(Z) || Wa() || aa();
541
+ }
542
+ function G(f) {
543
+ x === f ? B() : aa();
544
+ }
545
+ function aa() {
546
+ c(I, "Unexpected token");
547
+ }
548
+ function Xa(f) {
549
+ "Identifier" !== f.type && "MemberExpression" !== f.type && c(f.start, "Assigning to rvalue");
550
+ S && "Identifier" === f.type && Ya(f.name) && c(f.start, "Assigning to " + f.name + " in strict mode");
551
+ }
552
+ function V() {
553
+ (x === Ub || x === ma && "/=" === T) && N(true);
554
+ var f = x, g = L();
555
+ switch (f) {
556
+ case mb:
557
+ case dc:
558
+ B();
559
+ var l = f === mb;
560
+ E(Z) || Wa() ? g.label = null : x !== sa ? aa() : (g.label = ba(), na());
561
+ for (var n = 0; n < H.length; ++n) {
562
+ var w = H[n];
563
+ if (null === g.label || w.name === g.label.name) {
564
+ if (null !== w.kind && (l || "loop" === w.kind))
565
+ break;
566
+ if (g.label && l)
567
+ break;
568
+ }
569
+ }
570
+ n === H.length && c(g.start, "Unsyntactic " + f.l);
571
+ return y(g, l ? "BreakStatement" : "ContinueStatement");
572
+ case ec:
573
+ return B(), na(), y(g, "DebuggerStatement");
574
+ case fc:
575
+ return B(), H.push(nb), g.body = V(), H.pop(), G(ob), g.test = Da(), na(), y(g, "DoWhileStatement");
576
+ case gc:
577
+ B();
578
+ H.push(nb);
579
+ G(Y);
580
+ if (x === Z)
581
+ return pb(g, null);
582
+ if (x === qb)
583
+ return f = L(), B(), hc(f, true), y(f, "VariableDeclaration"), 1 === f.fa.length && E(Za) ? ic(g, f) : pb(g, f);
584
+ f = O(false, true);
585
+ return E(Za) ? (Xa(f), ic(g, f)) : pb(g, f);
586
+ case rb:
587
+ return B(), sb(g, true);
588
+ case jc:
589
+ return B(), g.test = Da(), g.da = V(), g.alternate = E(kc) ? V() : null, y(g, "IfStatement");
590
+ case lc:
591
+ return Ea || z.Ib || c(I, "'return' outside of function"), B(), E(Z) || Wa() ? g.K = null : (g.K = O(), na()), y(g, "ReturnStatement");
592
+ case tb:
593
+ B();
594
+ g.Qb = Da();
595
+ g.tb = [];
596
+ G(za);
597
+ for (H.push(Wc); x !== qa; )
598
+ x === ub || x === mc ? (f = x === ub, n && y(n, "SwitchCase"), g.tb.push(n = L()), n.da = [], B(), f ? n.test = O() : (l && c(hb, "Multiple default clauses"), l = true, n.test = null), G(Aa)) : (n || aa(), n.da.push(V()));
599
+ n && y(n, "SwitchCase");
600
+ B();
601
+ H.pop();
602
+ return y(g, "SwitchStatement");
603
+ case nc:
604
+ return B(), Va.test(r.slice(ia, I)) && c(ia, "Illegal newline after throw"), g.K = O(), na(), y(g, "ThrowStatement");
605
+ case oc:
606
+ return B(), g.block = Fa(), g.Ea = null, x === pc && (f = L(), B(), G(Y), f.Ua = ba(), S && Ya(f.Ua.name) && c(f.Ua.start, "Binding " + f.Ua.name + " in strict mode"), G(W), f.body = Fa(), g.Ea = y(f, "CatchClause")), g.fb = E(qc) ? Fa() : null, g.Ea || g.fb || c(g.start, "Missing catch or finally clause"), y(g, "TryStatement");
607
+ case qb:
608
+ return B(), hc(g), na(), y(g, "VariableDeclaration");
609
+ case ob:
610
+ return B(), g.test = Da(), H.push(nb), g.body = V(), H.pop(), y(g, "WhileStatement");
611
+ case rc:
612
+ return S && c(I, "'with' in strict mode"), B(), g.object = Da(), g.body = V(), y(g, "WithStatement");
613
+ case za:
614
+ return Fa();
615
+ case Z:
616
+ return B(), y(g, "EmptyStatement");
617
+ default:
618
+ l = T;
619
+ w = O();
620
+ if (f === sa && "Identifier" === w.type && E(Aa)) {
621
+ for (n = 0; n < H.length; ++n)
622
+ H[n].name === l && c(w.start, "Label '" + l + "' is already declared");
623
+ H.push({
624
+ name: l,
625
+ kind: x.W ? "loop" : x === tb ? "switch" : null
626
+ });
627
+ g.body = V();
628
+ H.pop();
629
+ g.label = w;
630
+ return y(g, "LabeledStatement");
631
+ }
632
+ g.la = w;
633
+ na();
634
+ return y(g, "ExpressionStatement");
635
+ }
636
+ }
637
+ function Da() {
638
+ G(Y);
639
+ var f = O();
640
+ G(W);
641
+ return f;
642
+ }
643
+ function Fa(f) {
644
+ var g = L(), l = true, n = false;
645
+ g.body = [];
646
+ for (G(za); !E(qa); ) {
647
+ var w = V();
648
+ g.body.push(w);
649
+ if (l && f && lb(w)) {
650
+ var J = n;
651
+ jb(n = true);
652
+ }
653
+ l = false;
654
+ }
655
+ n && !J && jb(false);
656
+ return y(g, "BlockStatement");
657
+ }
658
+ function pb(f, g) {
659
+ f.ua = g;
660
+ G(Z);
661
+ f.test = x === Z ? null : O();
662
+ G(Z);
663
+ f.update = x === W ? null : O();
664
+ G(W);
665
+ f.body = V();
666
+ H.pop();
667
+ return y(f, "ForStatement");
668
+ }
669
+ function ic(f, g) {
670
+ f.left = g;
671
+ f.right = O();
672
+ G(W);
673
+ f.body = V();
674
+ H.pop();
675
+ return y(f, "ForInStatement");
676
+ }
677
+ function hc(f, g) {
678
+ f.fa = [];
679
+ for (f.kind = "var"; ; ) {
680
+ var l = L();
681
+ l.id = ba();
682
+ S && Ya(l.id.name) && c(l.id.start, "Binding " + l.id.name + " in strict mode");
683
+ l.ua = E(Xb) ? O(true, g) : null;
684
+ f.fa.push(y(l, "VariableDeclarator"));
685
+ if (!E(ha))
686
+ break;
687
+ }
688
+ }
689
+ function O(f, g) {
690
+ var l = vb(g);
691
+ if (!f && x === ha) {
692
+ f = ja(l);
693
+ for (f.xb = [
694
+ l
695
+ ]; E(ha); )
696
+ f.xb.push(vb(g));
697
+ return y(f, "SequenceExpression");
698
+ }
699
+ return l;
700
+ }
701
+ function vb(f) {
702
+ var g = wb(xb(), -1, f);
703
+ if (E(Sb)) {
704
+ var l = ja(g);
705
+ l.test = g;
706
+ l.da = O(true);
707
+ G(Aa);
708
+ l.alternate = O(true, f);
709
+ g = y(l, "ConditionalExpression");
710
+ }
711
+ return x.Cb ? (l = ja(g), l.operator = T, l.left = g, B(), l.right = vb(f), Xa(g), y(l, "AssignmentExpression")) : g;
712
+ }
713
+ function wb(f, g, l) {
714
+ var n = x.L;
715
+ if (null !== n && (!l || x !== Za) && n > g) {
716
+ var w = ja(f);
717
+ w.left = f;
718
+ w.operator = T;
719
+ f = x;
720
+ B();
721
+ w.right = wb(xb(), n, l);
722
+ n = y(w, f === Vb || f === Wb ? "LogicalExpression" : "BinaryExpression");
723
+ return wb(n, g, l);
724
+ }
725
+ return f;
726
+ }
727
+ function xb() {
728
+ if (x.prefix) {
729
+ var f = L(), g = x.$b;
730
+ f.operator = T;
731
+ ya = f.prefix = true;
732
+ B();
733
+ f.K = xb();
734
+ g ? Xa(f.K) : S && "delete" === f.operator && "Identifier" === f.K.type && c(f.start, "Deleting local variable in strict mode");
735
+ return y(f, g ? "UpdateExpression" : "UnaryExpression");
736
+ }
737
+ for (g = Ga($a()); x.cc && !Wa(); )
738
+ f = ja(g), f.operator = T, f.prefix = false, f.K = g, Xa(g), B(), g = y(f, "UpdateExpression");
739
+ return g;
740
+ }
741
+ function Ga(f, g) {
742
+ if (E(Rb)) {
743
+ var l = ja(f);
744
+ l.object = f;
745
+ l.Wa = ba(true);
746
+ l.bb = false;
747
+ return Ga(y(l, "MemberExpression"), g);
748
+ }
749
+ return E(db) ? (l = ja(f), l.object = f, l.Wa = O(), l.bb = true, G(eb), Ga(y(l, "MemberExpression"), g)) : !g && E(Y) ? (l = ja(f), l.callee = f, l.arguments = yb(W, false), Ga(y(l, "CallExpression"), g)) : f;
750
+ }
751
+ function $a() {
752
+ switch (x) {
753
+ case sc:
754
+ var f = L();
755
+ B();
756
+ return y(f, "ThisExpression");
757
+ case sa:
758
+ return ba();
759
+ case Ca:
760
+ case Ta:
761
+ case ac:
762
+ return f = L(), f.value = T, f.raw = r.slice(I, oa), B(), y(f, "Literal");
763
+ case tc:
764
+ case uc:
765
+ case vc:
766
+ return f = L(), f.value = x.$a, f.raw = x.l, B(), y(f, "Literal");
767
+ case Y:
768
+ f = fb;
769
+ var g = I;
770
+ B();
771
+ var l = O();
772
+ l.start = g;
773
+ l.end = oa;
774
+ z.C && (l.X.start = f, l.X.end = cb);
775
+ z.Xa && (l.j = [
776
+ g,
777
+ oa
778
+ ]);
779
+ G(W);
780
+ return l;
781
+ case db:
782
+ return f = L(), B(), f.elements = yb(eb, true, true), y(f, "ArrayExpression");
783
+ case za:
784
+ f = L();
785
+ g = true;
786
+ l = false;
787
+ f.h = [];
788
+ for (B(); !E(qa); ) {
789
+ if (g)
790
+ g = false;
791
+ else if (G(ha), z.sb && E(qa))
792
+ break;
793
+ var n = {
794
+ key: x === Ca || x === Ta ? $a() : ba(true)
795
+ }, w = false;
796
+ if (E(Aa)) {
797
+ n.value = O(true);
798
+ var J = n.kind = "init";
799
+ } else
800
+ "Identifier" !== n.key.type || "get" !== n.key.name && "set" !== n.key.name ? aa() : (w = l = true, J = n.kind = n.key.name, n.key = x === Ca || x === Ta ? $a() : ba(true), x !== Y && aa(), n.value = sb(L(), false));
801
+ if ("Identifier" === n.key.type && (S || l))
802
+ for (var P = 0; P < f.h.length; ++P) {
803
+ var ta = f.h[P];
804
+ if (ta.key.name === n.key.name) {
805
+ var zb = J === ta.kind || w && "init" === ta.kind || "init" === J && ("get" === ta.kind || "set" === ta.kind);
806
+ zb && !S && "init" === J && "init" === ta.kind && (zb = false);
807
+ zb && c(n.key.start, "Redefinition of property");
808
+ }
809
+ }
810
+ f.h.push(n);
811
+ }
812
+ return y(f, "ObjectExpression");
813
+ case rb:
814
+ return f = L(), B(), sb(f, false);
815
+ case wc:
816
+ return f = L(), B(), f.callee = Ga($a(), true), f.arguments = E(Y) ? yb(W, false) : Xc, y(f, "NewExpression");
817
+ }
818
+ aa();
819
+ }
820
+ function sb(f, g) {
821
+ x === sa ? f.id = ba() : g ? aa() : f.id = null;
822
+ f.oa = [];
823
+ var l = true;
824
+ for (G(Y); !E(W); )
825
+ l ? l = false : G(ha), f.oa.push(ba());
826
+ l = Ea;
827
+ var n = H;
828
+ Ea = true;
829
+ H = [];
830
+ f.body = Fa(true);
831
+ Ea = l;
832
+ H = n;
833
+ if (S || f.body.body.length && lb(f.body.body[0])) {
834
+ for (l = f.id ? -1 : 0; l < f.oa.length; ++l)
835
+ if (n = 0 > l ? f.id : f.oa[l], (xc(n.name) || Ya(n.name)) && c(n.start, "Defining '" + n.name + "' in strict mode"), 0 <= l)
836
+ for (var w = 0; w < l; ++w)
837
+ n.name === f.oa[w].name && c(n.start, "Argument name clash in strict mode");
838
+ }
839
+ return y(f, g ? "FunctionDeclaration" : "FunctionExpression");
840
+ }
841
+ function yb(f, g, l) {
842
+ for (var n = [], w = true; !E(f); ) {
843
+ if (w)
844
+ w = false;
845
+ else if (G(ha), g && z.sb && E(f))
846
+ break;
847
+ n.push(l && x === ha ? null : O(true));
848
+ }
849
+ return n;
850
+ }
851
+ function ba(f) {
852
+ var g = L();
853
+ f && "everywhere" === z.yb && (f = false);
854
+ x === sa ? (!f && (z.yb && Yc(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();
855
+ ya = false;
856
+ B();
857
+ return y(g, "Identifier");
858
+ }
859
+ a.version = "0.5.0";
860
+ var z, r = "", pa, kb;
861
+ a.parse = function(f, g) {
862
+ r = String(f);
863
+ pa = r.length;
864
+ z = g || {};
865
+ for (var l in yc)
866
+ Object.prototype.hasOwnProperty.call(z, l) || (z[l] = yc[l]);
867
+ kb = z.sourceFile;
868
+ la = 1;
869
+ m = X = 0;
870
+ ya = true;
871
+ C();
872
+ l = z.dc;
873
+ hb = ia = m;
874
+ z.C && (ib = new h());
875
+ Ea = S = false;
876
+ H = [];
877
+ N();
878
+ f = l || L();
879
+ g = true;
880
+ l || (f.body = []);
881
+ for (; x !== gb; )
882
+ l = V(), f.body.push(l), g && lb(l) && jb(true), g = false;
883
+ return y(f, "Program");
884
+ };
885
+ var yc = {
886
+ fc: false,
887
+ sb: true,
888
+ yb: false,
889
+ Ib: false,
890
+ C: false,
891
+ va: null,
892
+ Xa: false,
893
+ dc: null,
894
+ sourceFile: null,
895
+ vb: null
896
+ }, m = 0, I = 0, oa = 0, fb, cb, x, T, ya, la, X, hb = 0, ia = 0, ib, Ea, H, S, Xc = [], Ca = {
897
+ type: "num"
898
+ }, ac = {
899
+ type: "regexp"
900
+ }, Ta = {
901
+ type: "string"
902
+ }, sa = {
903
+ type: "name"
904
+ }, gb = {
905
+ type: "eof"
906
+ }, mb = {
907
+ l: "break"
908
+ }, ub = {
909
+ l: "case",
910
+ m: true
911
+ }, pc = {
912
+ l: "catch"
913
+ }, dc = {
914
+ l: "continue"
915
+ }, ec = {
916
+ l: "debugger"
917
+ }, mc = {
918
+ l: "default"
919
+ }, fc = {
920
+ l: "do",
921
+ W: true
922
+ }, kc = {
923
+ l: "else",
924
+ m: true
925
+ }, qc = {
926
+ l: "finally"
927
+ }, gc = {
928
+ l: "for",
929
+ W: true
930
+ }, rb = {
931
+ l: "function"
932
+ }, jc = {
933
+ l: "if"
934
+ }, lc = {
935
+ l: "return",
936
+ m: true
937
+ }, tb = {
938
+ l: "switch"
939
+ }, nc = {
940
+ l: "throw",
941
+ m: true
942
+ }, oc = {
943
+ l: "try"
944
+ }, qb = {
945
+ l: "var"
946
+ }, ob = {
947
+ l: "while",
948
+ W: true
949
+ }, rc = {
950
+ l: "with"
951
+ }, wc = {
952
+ l: "new",
953
+ m: true
954
+ }, sc = {
955
+ l: "this"
956
+ }, tc = {
957
+ l: "null",
958
+ $a: null
959
+ }, uc = {
960
+ l: "true",
961
+ $a: true
962
+ }, vc = {
963
+ l: "false",
964
+ $a: false
965
+ }, Za = {
966
+ l: "in",
967
+ L: 7,
968
+ m: true
969
+ }, Vc = {
970
+ "break": mb,
971
+ "case": ub,
972
+ "catch": pc,
973
+ "continue": dc,
974
+ "debugger": ec,
975
+ "default": mc,
976
+ "do": fc,
977
+ "else": kc,
978
+ "finally": qc,
979
+ "for": gc,
980
+ "function": rb,
981
+ "if": jc,
982
+ "return": lc,
983
+ "switch": tb,
984
+ "throw": nc,
985
+ "try": oc,
986
+ "var": qb,
987
+ "while": ob,
988
+ "with": rc,
989
+ "null": tc,
990
+ "true": uc,
991
+ "false": vc,
992
+ "new": wc,
993
+ "in": Za,
994
+ "instanceof": {
995
+ l: "instanceof",
996
+ L: 7,
997
+ m: true
998
+ },
999
+ "this": sc,
1000
+ "typeof": {
1001
+ l: "typeof",
1002
+ prefix: true,
1003
+ m: true
1004
+ },
1005
+ "void": {
1006
+ l: "void",
1007
+ prefix: true,
1008
+ m: true
1009
+ },
1010
+ "delete": {
1011
+ l: "delete",
1012
+ prefix: true,
1013
+ m: true
1014
+ }
1015
+ }, db = {
1016
+ type: "[",
1017
+ m: true
1018
+ }, eb = {
1019
+ type: "]"
1020
+ }, za = {
1021
+ type: "{",
1022
+ m: true
1023
+ }, qa = {
1024
+ type: "}"
1025
+ }, Y = {
1026
+ type: "(",
1027
+ m: true
1028
+ }, W = {
1029
+ type: ")"
1030
+ }, ha = {
1031
+ type: ",",
1032
+ m: true
1033
+ }, Z = {
1034
+ type: ";",
1035
+ m: true
1036
+ }, Aa = {
1037
+ type: ":",
1038
+ m: true
1039
+ }, Rb = {
1040
+ type: "."
1041
+ }, Sb = {
1042
+ type: "?",
1043
+ m: true
1044
+ }, Ub = {
1045
+ L: 10,
1046
+ m: true
1047
+ }, Xb = {
1048
+ Cb: true,
1049
+ m: true
1050
+ }, ma = {
1051
+ Cb: true,
1052
+ m: true
1053
+ }, Pc = {
1054
+ cc: true,
1055
+ prefix: true,
1056
+ $b: true
1057
+ }, Yb = {
1058
+ prefix: true,
1059
+ m: true
1060
+ }, Vb = {
1061
+ L: 1,
1062
+ m: true
1063
+ }, Wb = {
1064
+ L: 2,
1065
+ m: true
1066
+ }, Mc = {
1067
+ L: 3,
1068
+ m: true
1069
+ }, Oc = {
1070
+ L: 4,
1071
+ m: true
1072
+ }, Nc = {
1073
+ L: 5,
1074
+ m: true
1075
+ }, Tc = {
1076
+ L: 6,
1077
+ m: true
1078
+ }, Sc = {
1079
+ L: 7,
1080
+ m: true
1081
+ }, Rc = {
1082
+ L: 8,
1083
+ m: true
1084
+ }, Qc = {
1085
+ L: 9,
1086
+ prefix: true,
1087
+ m: true
1088
+ }, Lc = {
1089
+ L: 10,
1090
+ m: true
1091
+ }, Yc = e("class enum extends super const export import"), xc = e("implements interface let package private protected public static yield"), Ya = e("eval arguments"), Uc = e("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Kc = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Pb = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Jc = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), Va = /[\n\r\u2028\u2029]/, Sa = /\r\n|[\n\r\u2028\u2029]/g, ra, nb = {
1092
+ kind: "loop"
1093
+ }, Wc = {
1094
+ kind: "switch"
1095
+ };
1096
+ };
1097
+ var __this = __this = "undefined" === typeof globalThis ? void 0 : globalThis;
1098
+ ca(__this.j || (__this.j = {}));
1099
+ function t(a, b) {
1100
+ "string" === typeof a && (a = da(a, "code"));
1101
+ var d = a.constructor;
1102
+ this.ya = function() {
1103
+ return new d({
1104
+ options: {}
1105
+ });
1106
+ };
1107
+ var c = this.ya(), e;
1108
+ for (e in a)
1109
+ c[e] = "body" === e ? a[e].slice() : a[e];
1110
+ this.ra = c;
1111
+ this.ca = [];
1112
+ this.qb = b;
1113
+ this.za = false;
1114
+ this.ba = [];
1115
+ this.Ya = 0;
1116
+ this.rb = /* @__PURE__ */ Object.create(null);
1117
+ a = /^step([A-Z]\w*)$/;
1118
+ var h, k;
1119
+ for (k in this)
1120
+ "function" === typeof this[k] && (h = k.match(a)) && (this.rb[h[1]] = this[k].bind(this));
1121
+ this.N = ea(this, this.ra, null);
1122
+ this.Na = this.N.object;
1123
+ this.ra = da(this.ba.join("\n"), "polyfills");
1124
+ this.ba = void 0;
1125
+ fa(this.ra);
1126
+ h = new u(this.ra, this.N);
1127
+ h.done = false;
1128
+ this.o = [
1129
+ h
1130
+ ];
1131
+ this.Eb();
1132
+ this.value = void 0;
1133
+ this.ra = c;
1134
+ h = new u(this.ra, this.N);
1135
+ h.done = false;
1136
+ this.o.length = 0;
1137
+ this.o[0] = h;
1138
+ }
1139
+ var ka = {
1140
+ C: true,
1141
+ kc: 5
1142
+ }, ua = {
1143
+ configurable: true,
1144
+ enumerable: true,
1145
+ writable: false
1146
+ }, v = {
1147
+ configurable: true,
1148
+ enumerable: false,
1149
+ writable: true
1150
+ }, A = {
1151
+ configurable: true,
1152
+ enumerable: false,
1153
+ writable: false
1154
+ }, va = {
1155
+ configurable: false,
1156
+ enumerable: false,
1157
+ writable: false
1158
+ }, wa = {
1159
+ configurable: false,
1160
+ enumerable: true,
1161
+ writable: true
1162
+ }, xa = {
1163
+ STEP_ERROR: true
1164
+ }, Ha = {
1165
+ SCOPE_REFERENCE: true
1166
+ }, Ia = {
1167
+ VALUE_IN_DESCRIPTOR: true
1168
+ }, Ja = {
1169
+ REGEXP_TIMEOUT: true
1170
+ }, Ka = [], La = null, Ma = null, Na = "undefined" === typeof globalThis ? void 0 : globalThis, Oa = [
1171
+ "onmessage = function(e) {",
1172
+ "var result;",
1173
+ "var data = e.data;",
1174
+ "switch (data[0]) {",
1175
+ "case 'split':",
1176
+ "result = data[1].split(data[2], data[3]);",
1177
+ "break;",
1178
+ "case 'match':",
1179
+ "result = data[1].match(data[2]);",
1180
+ "break;",
1181
+ "case 'search':",
1182
+ "result = data[1].search(data[2]);",
1183
+ "break;",
1184
+ "case 'replace':",
1185
+ "result = data[1].replace(data[2], data[3]);",
1186
+ "break;",
1187
+ "case 'exec':",
1188
+ "var regexp = data[1];",
1189
+ "regexp.lastIndex = data[2];",
1190
+ "result = [regexp.exec(data[3]), data[1].lastIndex];",
1191
+ "break;",
1192
+ "default:",
1193
+ "throw Error('Unknown RegExp operation: ' + data[0]);",
1194
+ "}",
1195
+ "postMessage(result);",
1196
+ "close();",
1197
+ "};"
1198
+ ];
1199
+ function Pa(a) {
1200
+ var b = a >>> 0;
1201
+ return b === Number(a) ? b : NaN;
1202
+ }
1203
+ function Qa(a) {
1204
+ var b = a >>> 0;
1205
+ return String(b) === String(a) && 4294967295 !== b ? b : NaN;
1206
+ }
1207
+ function fa(a, b, d) {
1208
+ b ? a.start = b : delete a.start;
1209
+ d ? a.end = d : delete a.end;
1210
+ for (var c in a)
1211
+ if ("loc" !== c && a.hasOwnProperty(c)) {
1212
+ var e = a[c];
1213
+ e && "object" === typeof e && fa(e, b, d);
1214
+ }
1215
+ }
1216
+ t.prototype.REGEXP_MODE = 2;
1217
+ t.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
1218
+ t.prototype.POLYFILL_TIMEOUT = 1e3;
1219
+ p = t.prototype;
1220
+ p.P = false;
1221
+ p.Ka = false;
1222
+ p.Kb = 0;
1223
+ p.ic = 0;
1224
+ function da(a, b) {
1225
+ var d = {}, c;
1226
+ for (c in ka)
1227
+ d[c] = ka[c];
1228
+ d.sourceFile = b;
1229
+ return Na.j.parse(a, d);
1230
+ }
1231
+ p.Jb = function(a) {
1232
+ var b = this.o[0];
1233
+ if (!b || "Program" !== b.node.type)
1234
+ throw Error("Expecting original AST to start with a Program node");
1235
+ "string" === typeof a && (a = da(a, "appendCode" + this.Kb++));
1236
+ if (!a || "Program" !== a.type)
1237
+ throw Error("Expecting new AST to start with a Program node");
1238
+ Ra(this, a, b.scope);
1239
+ Array.prototype.push.apply(b.node.body, a.body);
1240
+ b.node.body.jb = null;
1241
+ b.done = false;
1242
+ };
1243
+ p.lb = function() {
1244
+ var a = this.o, b;
1245
+ do {
1246
+ var d = a[a.length - 1];
1247
+ if (this.za)
1248
+ break;
1249
+ else if (!d || "Program" === d.node.type && d.done) {
1250
+ if (!this.ca.length)
1251
+ return false;
1252
+ d = this.ca[0];
1253
+ if (!d || d.time > Date.now())
1254
+ d = null;
1255
+ else {
1256
+ this.ca.shift();
1257
+ 0 <= d.interval && ab(this, d, d.interval);
1258
+ var c = new u(d.node, d.scope);
1259
+ d.zb && (c.ia = 2, c.B = this.Na, c.U = d.zb, c.Qa = true, c.F = d.Lb);
1260
+ d = c;
1261
+ }
1262
+ if (!d)
1263
+ break;
1264
+ }
1265
+ c = d.node;
1266
+ var e = Ma;
1267
+ Ma = this;
1268
+ try {
1269
+ var h = this.rb[c.type](a, d, c);
1270
+ } catch (k) {
1271
+ if (k !== xa)
1272
+ throw this.value !== k && (this.value = void 0), k;
1273
+ } finally {
1274
+ Ma = e;
1275
+ }
1276
+ h && a.push(h);
1277
+ if (this.P)
1278
+ throw this.value = void 0, Error("Getter not supported in this context");
1279
+ if (this.Ka)
1280
+ throw this.value = void 0, Error("Setter not supported in this context");
1281
+ b || c.end || (b = Date.now() + this.POLYFILL_TIMEOUT);
1282
+ } while (!c.end && b > Date.now());
1283
+ return true;
1284
+ };
1285
+ p.Eb = function() {
1286
+ for (; !this.za && this.lb(); )
1287
+ ;
1288
+ return this.za;
1289
+ };
1290
+ function bb(a, b) {
1291
+ a.g(b, "NaN", NaN, va);
1292
+ a.g(b, "Infinity", Infinity, va);
1293
+ a.g(b, "undefined", void 0, va);
1294
+ a.g(b, "window", b, ua);
1295
+ a.g(b, "this", b, va);
1296
+ a.g(b, "self", b);
1297
+ a.M = new D(null);
1298
+ a.Z = new D(a.M);
1299
+ Ab(a, b);
1300
+ Bb(a, b);
1301
+ b.xa = a.M;
1302
+ a.g(b, "constructor", a.v, v);
1303
+ Cb(a, b);
1304
+ Db(a, b);
1305
+ Eb(a, b);
1306
+ Fb(a, b);
1307
+ Gb(a, b);
1308
+ Hb(a, b);
1309
+ Ib(a, b);
1310
+ Jb(a, b);
1311
+ Kb(a, b);
1312
+ var d = a.i(function() {
1313
+ throw EvalError("Can't happen");
1314
+ }, false);
1315
+ d.eval = true;
1316
+ a.g(b, "eval", d, v);
1317
+ a.g(b, "parseInt", a.i(parseInt, false), v);
1318
+ a.g(b, "parseFloat", a.i(parseFloat, false), v);
1319
+ a.g(b, "isNaN", a.i(isNaN, false), v);
1320
+ a.g(b, "isFinite", a.i(isFinite, false), v);
1321
+ for (var c = [
1322
+ [
1323
+ escape,
1324
+ "escape"
1325
+ ],
1326
+ [
1327
+ unescape,
1328
+ "unescape"
1329
+ ],
1330
+ [
1331
+ decodeURI,
1332
+ "decodeURI"
1333
+ ],
1334
+ [
1335
+ decodeURIComponent,
1336
+ "decodeURIComponent"
1337
+ ],
1338
+ [
1339
+ encodeURI,
1340
+ "encodeURI"
1341
+ ],
1342
+ [
1343
+ encodeURIComponent,
1344
+ "encodeURIComponent"
1345
+ ]
1346
+ ], e = 0; e < c.length; e++)
1347
+ d = function(h) {
1348
+ return function(k) {
1349
+ try {
1350
+ return h(k);
1351
+ } catch (q) {
1352
+ K(a, a.Gb, q.message);
1353
+ }
1354
+ };
1355
+ }(c[e][0]), a.g(b, c[e][1], a.i(d, false), v);
1356
+ d = function(h) {
1357
+ return Lb(a, false, arguments);
1358
+ };
1359
+ a.g(b, "setTimeout", a.i(d, false), v);
1360
+ d = function(h) {
1361
+ return Lb(a, true, arguments);
1362
+ };
1363
+ a.g(b, "setInterval", a.i(d, false), v);
1364
+ d = function(h) {
1365
+ Mb(a, h);
1366
+ };
1367
+ a.g(b, "clearTimeout", a.i(d, false), v);
1368
+ d = function(h) {
1369
+ Mb(a, h);
1370
+ };
1371
+ a.g(b, "clearInterval", a.i(d, false), v);
1372
+ a.OBJECT = a.v;
1373
+ a.OBJECT_PROTO = a.M;
1374
+ a.FUNCTION = a.O;
1375
+ a.FUNCTION_PROTO = a.Z;
1376
+ a.ARRAY = a.qa;
1377
+ a.ARRAY_PROTO = a.La;
1378
+ a.REGEXP = a.I;
1379
+ a.REGEXP_PROTO = a.Ma;
1380
+ a.DATE = a.$;
1381
+ a.DATE_PROTO = a.nb;
1382
+ a.qb && a.qb(a, b);
1383
+ }
1384
+ p.Wb = 0;
1385
+ function Ab(a, b) {
1386
+ var d = /^[A-Za-z_$][\w$]*$/;
1387
+ var c = function(e) {
1388
+ var h = arguments.length ? String(arguments[arguments.length - 1]) : "", k = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
1389
+ if (k) {
1390
+ k = k.split(/\s*,\s*/);
1391
+ for (var q = 0; q < k.length; q++) {
1392
+ var C = k[q];
1393
+ d.test(C) || K(a, a.T, "Invalid function argument: " + C);
1394
+ }
1395
+ k = k.join(", ");
1396
+ }
1397
+ try {
1398
+ var U = da("(function(" + k + ") {" + h + "})", "function" + a.Wb++);
1399
+ } catch (N) {
1400
+ K(a, a.T, "Invalid code: " + N.message);
1401
+ }
1402
+ 1 !== U.body.length && K(a, a.T, "Invalid code in function body");
1403
+ return Nb(a, U.body[0].la, a.N, "anonymous");
1404
+ };
1405
+ a.O = a.i(c, true);
1406
+ a.g(b, "Function", a.O, v);
1407
+ a.g(a.O, "prototype", a.Z, v);
1408
+ a.g(a.Z, "constructor", a.O, v);
1409
+ a.Z.Ta = function() {
1410
+ };
1411
+ a.Z.Ta.id = a.Ya++;
1412
+ a.Z.Ab = true;
1413
+ a.g(a.Z, "length", 0, A);
1414
+ a.Z.H = "Function";
1415
+ c = function(e, h) {
1416
+ var k = a.o[a.o.length - 1];
1417
+ k.U = this;
1418
+ k.B = e;
1419
+ k.F = [];
1420
+ null !== h && void 0 !== h && (h instanceof D ? k.F = Ob(a, h) : K(a, a.j, "CreateListFromArrayLike called on non-object"));
1421
+ k.eb = false;
1422
+ };
1423
+ M(a, a.O, "apply", c);
1424
+ c = function(e) {
1425
+ var h = a.o[a.o.length - 1];
1426
+ h.U = this;
1427
+ h.B = e;
1428
+ h.F = [];
1429
+ for (var k = 1; k < arguments.length; k++)
1430
+ h.F.push(arguments[k]);
1431
+ h.eb = false;
1432
+ };
1433
+ M(a, a.O, "call", c);
1434
+ a.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", "");
1435
+ c = function() {
1436
+ return String(this);
1437
+ };
1438
+ M(a, a.O, "toString", c);
1439
+ a.g(a.O, "toString", a.i(c, false), v);
1440
+ c = function() {
1441
+ return this.valueOf();
1442
+ };
1443
+ M(a, a.O, "valueOf", c);
1444
+ a.g(a.O, "valueOf", a.i(c, false), v);
1445
+ }
1446
+ function Bb(a, b) {
1447
+ function d(e) {
1448
+ void 0 !== e && null !== e || K(a, a.j, "Cannot convert '" + e + "' to object");
1449
+ }
1450
+ var c = function(e) {
1451
+ if (void 0 === e || null === e)
1452
+ return zc(a) ? this : a.s(a.M);
1453
+ if (!(e instanceof D)) {
1454
+ var h = a.s(Ac(a, e));
1455
+ h.data = e;
1456
+ return h;
1457
+ }
1458
+ return e;
1459
+ };
1460
+ a.v = a.i(c, true);
1461
+ a.g(a.v, "prototype", a.M, v);
1462
+ a.g(a.M, "constructor", a.v, v);
1463
+ a.g(b, "Object", a.v, v);
1464
+ c = function(e) {
1465
+ d(e);
1466
+ return Bc(a, Object.getOwnPropertyNames(e instanceof D ? e.h : e));
1467
+ };
1468
+ a.g(a.v, "getOwnPropertyNames", a.i(c, false), v);
1469
+ c = function(e) {
1470
+ d(e);
1471
+ e instanceof D && (e = e.h);
1472
+ return Bc(a, Object.keys(e));
1473
+ };
1474
+ a.g(a.v, "keys", a.i(c, false), v);
1475
+ c = function(e) {
1476
+ if (null === e)
1477
+ return a.s(null);
1478
+ e instanceof D || K(a, a.j, "Object prototype may only be an Object or null, not " + e);
1479
+ return a.s(e);
1480
+ };
1481
+ a.g(a.v, "create", a.i(c, false), v);
1482
+ a.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", "");
1483
+ c = function(e, h, k) {
1484
+ h = String(h);
1485
+ e instanceof D || K(a, a.j, "Object.defineProperty called on non-object: " + e);
1486
+ k instanceof D || K(a, a.j, "Property description must be an object");
1487
+ !e.preventExtensions || h in e.h || K(a, a.j, "Can't define property '" + h + "', object is not extensible");
1488
+ a.g(e, h, Ia, k.h);
1489
+ return e;
1490
+ };
1491
+ a.g(a.v, "defineProperty", a.i(c, false), v);
1492
+ a.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", "");
1493
+ c = function(e, h) {
1494
+ e instanceof D || K(a, a.j, "Object.getOwnPropertyDescriptor called on non-object: " + e);
1495
+ h = String(h);
1496
+ if (h in e.h) {
1497
+ var k = Object.getOwnPropertyDescriptor(e.h, h), q = e.V[h];
1498
+ e = e.Y[h];
1499
+ h = a.s(a.M);
1500
+ q || e ? (a.g(h, "get", q), a.g(h, "set", e)) : (a.g(h, "value", k.value), a.g(h, "writable", k.writable));
1501
+ a.g(h, "configurable", k.configurable);
1502
+ a.g(h, "enumerable", k.enumerable);
1503
+ return h;
1504
+ }
1505
+ };
1506
+ a.g(a.v, "getOwnPropertyDescriptor", a.i(c, false), v);
1507
+ c = function(e) {
1508
+ d(e);
1509
+ return Ac(a, e);
1510
+ };
1511
+ a.g(a.v, "getPrototypeOf", a.i(c, false), v);
1512
+ c = function(e) {
1513
+ return !!e && !e.preventExtensions;
1514
+ };
1515
+ a.g(a.v, "isExtensible", a.i(c, false), v);
1516
+ c = function(e) {
1517
+ e instanceof D && (e.preventExtensions = true);
1518
+ return e;
1519
+ };
1520
+ a.g(a.v, "preventExtensions", a.i(c, false), v);
1521
+ M(a, a.v, "toString", D.prototype.toString);
1522
+ M(a, a.v, "toLocaleString", D.prototype.toString);
1523
+ M(a, a.v, "valueOf", D.prototype.valueOf);
1524
+ c = function(e) {
1525
+ d(this);
1526
+ return this instanceof D ? String(e) in this.h : this.hasOwnProperty(e);
1527
+ };
1528
+ M(a, a.v, "hasOwnProperty", c);
1529
+ c = function(e) {
1530
+ d(this);
1531
+ return this instanceof D ? Object.prototype.propertyIsEnumerable.call(this.h, e) : this.propertyIsEnumerable(e);
1532
+ };
1533
+ M(a, a.v, "propertyIsEnumerable", c);
1534
+ c = function(e) {
1535
+ for (; ; ) {
1536
+ e = Ac(a, e);
1537
+ if (!e)
1538
+ return false;
1539
+ if (e === this)
1540
+ return true;
1541
+ }
1542
+ };
1543
+ M(a, a.v, "isPrototypeOf", c);
1544
+ }
1545
+ function Cb(a, b) {
1546
+ var d = function(c) {
1547
+ var e = zc(a) ? this : Cc(a), h = arguments[0];
1548
+ if (1 === arguments.length && "number" === typeof h)
1549
+ isNaN(Pa(h)) && K(a, a.ob, "Invalid array length: " + h), e.h.length = h;
1550
+ else {
1551
+ for (h = 0; h < arguments.length; h++)
1552
+ e.h[h] = arguments[h];
1553
+ e.h.length = h;
1554
+ }
1555
+ return e;
1556
+ };
1557
+ a.qa = a.i(d, true);
1558
+ a.La = a.qa.h.prototype;
1559
+ a.g(b, "Array", a.qa, v);
1560
+ d = function(c) {
1561
+ return c && "Array" === c.H;
1562
+ };
1563
+ a.g(a.qa, "isArray", a.i(d, false), v);
1564
+ a.g(a.La, "length", 0, {
1565
+ configurable: false,
1566
+ enumerable: false,
1567
+ writable: true
1568
+ });
1569
+ a.La.H = "Array";
1570
+ a.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
1571
+ }
1572
+ function Db(a, b) {
1573
+ var d = function(c) {
1574
+ c = arguments.length ? Na.String(c) : "";
1575
+ return zc(a) ? (this.data = c, this) : c;
1576
+ };
1577
+ a.J = a.i(d, true);
1578
+ a.g(b, "String", a.J, v);
1579
+ a.g(a.J, "fromCharCode", a.i(String.fromCharCode, false), v);
1580
+ b = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" ");
1581
+ for (d = 0; d < b.length; d++)
1582
+ M(a, a.J, b[d], String.prototype[b[d]]);
1583
+ d = function(c, e, h) {
1584
+ e = a.R(e);
1585
+ h = a.R(h);
1586
+ try {
1587
+ return String(this).localeCompare(c, e, h);
1588
+ } catch (k) {
1589
+ K(a, a.D, "localeCompare: " + k.message);
1590
+ }
1591
+ };
1592
+ M(a, a.J, "localeCompare", d);
1593
+ d = function(c, e, h) {
1594
+ var k = String(this);
1595
+ e = e ? Number(e) : void 0;
1596
+ if (Q(a, c, a.I) && (c = c.data, Dc(a, c, h), 2 === a.REGEXP_MODE)) {
1597
+ if (La)
1598
+ c = Ec(a, "string.split(separator, limit)", {
1599
+ string: k,
1600
+ separator: c,
1601
+ limit: e
1602
+ }, c, h), c !== Ja && h(Bc(a, c));
1603
+ else {
1604
+ var q = a.ha(), C = Fc(a, c, q, h);
1605
+ q.onmessage = function(U) {
1606
+ clearTimeout(C);
1607
+ h(Bc(a, U.data));
1608
+ };
1609
+ q.postMessage([
1610
+ "split",
1611
+ k,
1612
+ c,
1613
+ e
1614
+ ]);
1615
+ }
1616
+ return;
1617
+ }
1618
+ c = k.split(c, e);
1619
+ h(Bc(a, c));
1620
+ };
1621
+ Gc(a, a.J, "split", d);
1622
+ d = function(c, e) {
1623
+ var h = String(this);
1624
+ c = Q(a, c, a.I) ? c.data : new RegExp(c);
1625
+ Dc(a, c, e);
1626
+ if (2 === a.REGEXP_MODE) {
1627
+ if (La)
1628
+ c = Ec(a, "string.match(regexp)", {
1629
+ string: h,
1630
+ regexp: c
1631
+ }, c, e), c !== Ja && e(c && Bc(a, c));
1632
+ else {
1633
+ var k = a.ha(), q = Fc(a, c, k, e);
1634
+ k.onmessage = function(C) {
1635
+ clearTimeout(q);
1636
+ e(C.data && Bc(a, C.data));
1637
+ };
1638
+ k.postMessage([
1639
+ "match",
1640
+ h,
1641
+ c
1642
+ ]);
1643
+ }
1644
+ } else
1645
+ c = h.match(c), e(c && Bc(a, c));
1646
+ };
1647
+ Gc(a, a.J, "match", d);
1648
+ d = function(c, e) {
1649
+ var h = String(this);
1650
+ Q(a, c, a.I) ? c = c.data : c = new RegExp(c);
1651
+ Dc(a, c, e);
1652
+ if (2 === a.REGEXP_MODE) {
1653
+ if (La)
1654
+ c = Ec(a, "string.search(regexp)", {
1655
+ string: h,
1656
+ regexp: c
1657
+ }, c, e), c !== Ja && e(c);
1658
+ else {
1659
+ var k = a.ha(), q = Fc(a, c, k, e);
1660
+ k.onmessage = function(C) {
1661
+ clearTimeout(q);
1662
+ e(C.data);
1663
+ };
1664
+ k.postMessage([
1665
+ "search",
1666
+ h,
1667
+ c
1668
+ ]);
1669
+ }
1670
+ } else
1671
+ e(h.search(c));
1672
+ };
1673
+ Gc(a, a.J, "search", d);
1674
+ d = function(c, e, h) {
1675
+ var k = String(this);
1676
+ e = String(e);
1677
+ if (Q(a, c, a.I) && (c = c.data, Dc(a, c, h), 2 === a.REGEXP_MODE)) {
1678
+ if (La)
1679
+ c = Ec(a, "string.replace(substr, newSubstr)", {
1680
+ string: k,
1681
+ substr: c,
1682
+ newSubstr: e
1683
+ }, c, h), c !== Ja && h(c);
1684
+ else {
1685
+ var q = a.ha(), C = Fc(a, c, q, h);
1686
+ q.onmessage = function(U) {
1687
+ clearTimeout(C);
1688
+ h(U.data);
1689
+ };
1690
+ q.postMessage([
1691
+ "replace",
1692
+ k,
1693
+ c,
1694
+ e
1695
+ ]);
1696
+ }
1697
+ return;
1698
+ }
1699
+ h(k.replace(c, e));
1700
+ };
1701
+ Gc(a, a.J, "replace", d);
1702
+ a.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
1703
+ }
1704
+ function Eb(a, b) {
1705
+ a.mb = a.i(function(d) {
1706
+ d = Na.Boolean(d);
1707
+ return zc(a) ? (this.data = d, this) : d;
1708
+ }, true);
1709
+ a.g(b, "Boolean", a.mb, v);
1710
+ }
1711
+ function Fb(a, b) {
1712
+ var d = function(c) {
1713
+ c = arguments.length ? Na.Number(c) : 0;
1714
+ return zc(a) ? (this.data = c, this) : c;
1715
+ };
1716
+ a.aa = a.i(d, true);
1717
+ a.g(b, "Number", a.aa, v);
1718
+ b = [
1719
+ "MAX_VALUE",
1720
+ "MIN_VALUE",
1721
+ "NaN",
1722
+ "NEGATIVE_INFINITY",
1723
+ "POSITIVE_INFINITY"
1724
+ ];
1725
+ for (d = 0; d < b.length; d++)
1726
+ a.g(a.aa, b[d], Number[b[d]], va);
1727
+ d = function(c) {
1728
+ try {
1729
+ return Number(this).toExponential(c);
1730
+ } catch (e) {
1731
+ K(a, a.D, e.message);
1732
+ }
1733
+ };
1734
+ M(a, a.aa, "toExponential", d);
1735
+ d = function(c) {
1736
+ try {
1737
+ return Number(this).toFixed(c);
1738
+ } catch (e) {
1739
+ K(a, a.D, e.message);
1740
+ }
1741
+ };
1742
+ M(a, a.aa, "toFixed", d);
1743
+ d = function(c) {
1744
+ try {
1745
+ return Number(this).toPrecision(c);
1746
+ } catch (e) {
1747
+ K(a, a.D, e.message);
1748
+ }
1749
+ };
1750
+ M(a, a.aa, "toPrecision", d);
1751
+ d = function(c) {
1752
+ try {
1753
+ return Number(this).toString(c);
1754
+ } catch (e) {
1755
+ K(a, a.D, e.message);
1756
+ }
1757
+ };
1758
+ M(a, a.aa, "toString", d);
1759
+ d = function(c, e) {
1760
+ c = c ? a.R(c) : void 0;
1761
+ e = e ? a.R(e) : void 0;
1762
+ try {
1763
+ return Number(this).toLocaleString(c, e);
1764
+ } catch (h) {
1765
+ K(a, a.D, "toLocaleString: " + h.message);
1766
+ }
1767
+ };
1768
+ M(a, a.aa, "toLocaleString", d);
1769
+ }
1770
+ function Gb(a, b) {
1771
+ var d = function(e, h) {
1772
+ if (!zc(a))
1773
+ return Na.Date();
1774
+ var k = [
1775
+ null
1776
+ ].concat(Array.from(arguments));
1777
+ this.data = new (Function.prototype.bind.apply(Na.Date, k))();
1778
+ return this;
1779
+ };
1780
+ a.$ = a.i(d, true);
1781
+ a.nb = a.$.h.prototype;
1782
+ a.g(b, "Date", a.$, v);
1783
+ a.g(a.$, "now", a.i(Date.now, false), v);
1784
+ a.g(a.$, "parse", a.i(Date.parse, false), v);
1785
+ a.g(a.$, "UTC", a.i(Date.UTC, false), v);
1786
+ 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(" ");
1787
+ for (var c = 0; c < b.length; c++)
1788
+ d = function(e) {
1789
+ return function(h) {
1790
+ var k = this.data;
1791
+ k instanceof Date || K(a, a.j, e + " not called on a Date");
1792
+ for (var q = [], C = 0; C < arguments.length; C++)
1793
+ q[C] = a.R(arguments[C]);
1794
+ return k[e].apply(k, q);
1795
+ };
1796
+ }(b[c]), M(a, a.$, b[c], d);
1797
+ }
1798
+ function Hb(a, b) {
1799
+ var d = function(c, e) {
1800
+ if (zc(a))
1801
+ var h = this;
1802
+ else {
1803
+ if (void 0 === e && Q(a, c, a.I))
1804
+ return c;
1805
+ h = a.s(a.Ma);
1806
+ }
1807
+ c = void 0 === c ? "" : String(c);
1808
+ e = e ? String(e) : "";
1809
+ /^[gmi]*$/.test(e) || K(a, a.T, "Invalid regexp flag: " + e);
1810
+ try {
1811
+ var k = new Na.RegExp(c, e);
1812
+ } catch (q) {
1813
+ K(a, a.T, q.message);
1814
+ }
1815
+ Hc(a, h, k);
1816
+ return h;
1817
+ };
1818
+ a.I = a.i(d, true);
1819
+ a.Ma = a.I.h.prototype;
1820
+ a.g(b, "RegExp", a.I, v);
1821
+ a.g(a.I.h.prototype, "global", void 0, A);
1822
+ a.g(a.I.h.prototype, "ignoreCase", void 0, A);
1823
+ a.g(a.I.h.prototype, "multiline", void 0, A);
1824
+ a.g(a.I.h.prototype, "source", "(?:)", A);
1825
+ a.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});");
1826
+ d = function(c, e) {
1827
+ function h(N) {
1828
+ if (N) {
1829
+ var F = Bc(a, N);
1830
+ a.g(F, "index", N.index);
1831
+ a.g(F, "input", N.input);
1832
+ return F;
1833
+ }
1834
+ return null;
1835
+ }
1836
+ var k = this.data;
1837
+ c = String(c);
1838
+ k.lastIndex = Number(a.G(this, "lastIndex"));
1839
+ Dc(a, k, e);
1840
+ if (2 === a.REGEXP_MODE) {
1841
+ if (La)
1842
+ c = Ec(a, "regexp.exec(string)", {
1843
+ string: c,
1844
+ regexp: k
1845
+ }, k, e), c !== Ja && (a.g(this, "lastIndex", k.lastIndex), e(h(c)));
1846
+ else {
1847
+ var q = a.ha(), C = Fc(a, k, q, e), U = this;
1848
+ q.onmessage = function(N) {
1849
+ clearTimeout(C);
1850
+ a.g(U, "lastIndex", N.data[1]);
1851
+ e(h(N.data[0]));
1852
+ };
1853
+ q.postMessage([
1854
+ "exec",
1855
+ k,
1856
+ k.lastIndex,
1857
+ c
1858
+ ]);
1859
+ }
1860
+ } else
1861
+ c = k.exec(c), a.g(this, "lastIndex", k.lastIndex), e(h(c));
1862
+ };
1863
+ Gc(a, a.I, "exec", d);
1864
+ }
1865
+ function Ib(a, b) {
1866
+ function d(c) {
1867
+ var e = a.i(function(h) {
1868
+ var k = zc(a) ? this : a.Aa(e);
1869
+ Ic(a, k, h);
1870
+ return k;
1871
+ }, true);
1872
+ a.g(e, "prototype", a.Aa(a.D), v);
1873
+ a.g(e.h.prototype, "name", c, v);
1874
+ a.g(b, c, e, v);
1875
+ return e;
1876
+ }
1877
+ a.D = a.i(function(c) {
1878
+ var e = zc(a) ? this : a.Aa(a.D);
1879
+ Ic(a, e, c);
1880
+ return e;
1881
+ }, true);
1882
+ a.g(b, "Error", a.D, v);
1883
+ a.g(a.D.h.prototype, "message", "", v);
1884
+ a.g(a.D.h.prototype, "name", "Error", v);
1885
+ d("EvalError");
1886
+ a.ob = d("RangeError");
1887
+ a.pb = d("ReferenceError");
1888
+ a.T = d("SyntaxError");
1889
+ a.j = d("TypeError");
1890
+ a.Gb = d("URIError");
1891
+ }
1892
+ function Jb(a, b) {
1893
+ var d = a.s(a.M);
1894
+ a.g(b, "Math", d, v);
1895
+ var c = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
1896
+ for (b = 0; b < c.length; b++)
1897
+ a.g(d, c[b], Math[c[b]], A);
1898
+ c = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" ");
1899
+ for (b = 0; b < c.length; b++)
1900
+ a.g(d, c[b], a.i(Math[c[b]], false), v);
1901
+ }
1902
+ function Kb(a, b) {
1903
+ var d = a.s(a.M);
1904
+ a.g(b, "JSON", d, v);
1905
+ b = function(c) {
1906
+ try {
1907
+ var e = JSON.parse(String(c));
1908
+ } catch (h) {
1909
+ K(a, a.T, h.message);
1910
+ }
1911
+ return a.Ia(e);
1912
+ };
1913
+ a.g(d, "parse", a.i(b, false));
1914
+ b = function(c, e, h) {
1915
+ e && "Function" === e.H ? K(a, a.j, "Function replacer on JSON.stringify not supported") : e && "Array" === e.H ? (e = Ob(a, e), e = e.filter(function(q) {
1916
+ return "string" === typeof q || "number" === typeof q;
1917
+ })) : e = null;
1918
+ "string" !== typeof h && "number" !== typeof h && (h = void 0);
1919
+ c = a.R(c);
1920
+ try {
1921
+ var k = JSON.stringify(c, e, h);
1922
+ } catch (q) {
1923
+ K(a, a.j, q.message);
1924
+ }
1925
+ return k;
1926
+ };
1927
+ a.g(d, "stringify", a.i(b, false));
1928
+ }
1929
+ function Q(a, b, d) {
1930
+ if (null === b || void 0 === b || !d)
1931
+ return false;
1932
+ d = d.h.prototype;
1933
+ if (b === d)
1934
+ return true;
1935
+ for (b = Ac(a, b); b; ) {
1936
+ if (b === d)
1937
+ return true;
1938
+ b = b.xa;
1939
+ }
1940
+ return false;
1941
+ }
1942
+ function Hc(a, b, d) {
1943
+ b.data = new RegExp(d.source, d.flags);
1944
+ a.g(b, "lastIndex", d.lastIndex, v);
1945
+ a.g(b, "source", d.source, A);
1946
+ a.g(b, "global", d.global, A);
1947
+ a.g(b, "ignoreCase", d.ignoreCase, A);
1948
+ a.g(b, "multiline", d.multiline, A);
1949
+ }
1950
+ function Ic(a, b, d) {
1951
+ d && a.g(b, "message", String(d), v);
1952
+ d = [];
1953
+ for (var c = a.o.length - 1; 0 <= c; c--) {
1954
+ var e = a.o[c], h = e.node;
1955
+ "CallExpression" === h.type && (e = e.U) && d.length && (d[d.length - 1].Ob = a.G(e, "name"));
1956
+ !h.X || d.length && "CallExpression" !== h.type || d.push({
1957
+ Nb: h.X
1958
+ });
1959
+ }
1960
+ c = String(a.G(b, "name"));
1961
+ h = String(a.G(b, "message"));
1962
+ h = c + ": " + h + "\n";
1963
+ for (c = 0; c < d.length; c++) {
1964
+ var k = d[c].Nb;
1965
+ e = d[c].Ob;
1966
+ k = k.source + ":" + k.start.line + ":" + k.start.ab;
1967
+ h = e ? h + (" at " + e + " (" + k + ")\n") : h + (" at " + k + "\n");
1968
+ }
1969
+ a.g(b, "stack", h.trim(), v);
1970
+ }
1971
+ p.ha = function() {
1972
+ var a = this.ha.Mb;
1973
+ a || (a = new Blob([
1974
+ Oa.join("\n")
1975
+ ], {
1976
+ type: "application/javascript"
1977
+ }), this.ha.Mb = a);
1978
+ return new Worker(URL.createObjectURL(a));
1979
+ };
1980
+ function Ec(a, b, d, c, e) {
1981
+ var h = {
1982
+ timeout: a.REGEXP_THREAD_TIMEOUT
1983
+ };
1984
+ try {
1985
+ return La.runInNewContext(b, d, h);
1986
+ } catch (k) {
1987
+ e(null), K(a, a.D, "RegExp Timeout: " + c);
1988
+ }
1989
+ return Ja;
1990
+ }
1991
+ function Dc(a, b, d) {
1992
+ if (0 === a.REGEXP_MODE)
1993
+ var c = false;
1994
+ else if (1 === a.REGEXP_MODE)
1995
+ c = true;
1996
+ else if (La)
1997
+ c = true;
1998
+ else if ("function" === typeof Worker && "function" === typeof URL)
1999
+ c = true;
2000
+ else if ("function" === typeof require) {
2001
+ try {
2002
+ La = require("vm");
2003
+ } catch (e) {
2004
+ }
2005
+ c = !!La;
2006
+ } else
2007
+ c = false;
2008
+ c || (d(null), K(a, a.D, "Regular expressions not supported: " + b));
2009
+ }
2010
+ function Fc(a, b, d, c) {
2011
+ return setTimeout(function() {
2012
+ d.terminate();
2013
+ c(null);
2014
+ try {
2015
+ K(a, a.D, "RegExp Timeout: " + b);
2016
+ } catch (e) {
2017
+ }
2018
+ }, a.REGEXP_THREAD_TIMEOUT);
2019
+ }
2020
+ p.Aa = function(a) {
2021
+ return this.s(a && a.h.prototype);
2022
+ };
2023
+ p.s = function(a) {
2024
+ if ("object" !== typeof a)
2025
+ throw Error("Non object prototype");
2026
+ a = new D(a);
2027
+ Q(this, a, this.D) && (a.H = "Error");
2028
+ return a;
2029
+ };
2030
+ function Cc(a) {
2031
+ var b = a.s(a.La);
2032
+ a.g(b, "length", 0, {
2033
+ configurable: false,
2034
+ enumerable: false,
2035
+ writable: true
2036
+ });
2037
+ b.H = "Array";
2038
+ return b;
2039
+ }
2040
+ function Zc(a, b, d) {
2041
+ var c = a.s(a.Z);
2042
+ d ? (d = a.s(a.M), a.g(c, "prototype", d, v), a.g(d, "constructor", c, v)) : c.Ab = true;
2043
+ a.g(c, "length", b, A);
2044
+ c.H = "Function";
2045
+ return c;
2046
+ }
2047
+ function Nb(a, b, d, c) {
2048
+ var e = Zc(a, b.oa.length, true);
2049
+ e.Va = d;
2050
+ e.node = b;
2051
+ a.g(e, "name", b.id ? String(b.id.name) : c || "", A);
2052
+ return e;
2053
+ }
2054
+ p.i = function(a, b) {
2055
+ b = Zc(this, a.length, b);
2056
+ b.Ta = a;
2057
+ a.id = this.Ya++;
2058
+ this.g(b, "name", a.name, A);
2059
+ return b;
2060
+ };
2061
+ p.ub = function(a) {
2062
+ var b = Zc(this, a.length, true);
2063
+ b.Za = a;
2064
+ a.id = this.Ya++;
2065
+ this.g(b, "name", a.name, A);
2066
+ return b;
2067
+ };
2068
+ p.Ia = function(a) {
2069
+ if (a instanceof D)
2070
+ throw Error("Object is already pseudo");
2071
+ if (null === a || void 0 === a || true === a || false === a || "string" === typeof a || "number" === typeof a)
2072
+ return a;
2073
+ if (a instanceof RegExp) {
2074
+ var b = this.s(this.Ma);
2075
+ Hc(this, b, a);
2076
+ return b;
2077
+ }
2078
+ if (a instanceof Date)
2079
+ return b = this.s(this.nb), b.data = new Date(a.valueOf()), b;
2080
+ if ("function" === typeof a) {
2081
+ var d = this;
2082
+ b = Object.getOwnPropertyDescriptor(a, "prototype");
2083
+ return this.i(function() {
2084
+ var e = Array.prototype.slice.call(arguments).map(function(h) {
2085
+ return d.R(h);
2086
+ });
2087
+ e = a.apply(d, e);
2088
+ return d.Ia(e);
2089
+ }, !!b);
2090
+ }
2091
+ if (Array.isArray(a)) {
2092
+ b = Cc(this);
2093
+ for (var c = 0; c < a.length; c++)
2094
+ c in a && this.g(b, c, this.Ia(a[c]));
2095
+ return b;
2096
+ }
2097
+ b = this.s(this.M);
2098
+ for (c in a)
2099
+ this.g(b, c, this.Ia(a[c]));
2100
+ return b;
2101
+ };
2102
+ p.R = function(a, b) {
2103
+ if ("object" !== typeof a && "function" !== typeof a || null === a)
2104
+ return a;
2105
+ if (!(a instanceof D))
2106
+ throw Error("Object is not pseudo");
2107
+ if (Q(this, a, this.I))
2108
+ return b = new RegExp(a.data.source, a.data.flags), b.lastIndex = a.data.lastIndex, b;
2109
+ if (Q(this, a, this.$))
2110
+ return new Date(a.data.valueOf());
2111
+ b = b || {
2112
+ hb: [],
2113
+ Sa: []
2114
+ };
2115
+ var d = b.hb.indexOf(a);
2116
+ if (-1 !== d)
2117
+ return b.Sa[d];
2118
+ b.hb.push(a);
2119
+ if (Q(this, a, this.qa)) {
2120
+ d = [];
2121
+ b.Sa.push(d);
2122
+ for (var c = this.G(a, "length"), e = 0; e < c; e++)
2123
+ $c(this, a, e) && (d[e] = this.R(this.G(a, e), b));
2124
+ } else
2125
+ for (c in d = {}, b.Sa.push(d), a.h)
2126
+ e = this.R(a.h[c], b), Object.defineProperty(d, c, {
2127
+ value: e,
2128
+ writable: true,
2129
+ enumerable: true,
2130
+ configurable: true
2131
+ });
2132
+ b.hb.pop();
2133
+ b.Sa.pop();
2134
+ return d;
2135
+ };
2136
+ function Bc(a, b) {
2137
+ for (var d = Cc(a), c = Object.getOwnPropertyNames(b), e = 0; e < c.length; e++)
2138
+ a.g(d, c[e], b[c[e]]);
2139
+ return d;
2140
+ }
2141
+ function Ob(a, b) {
2142
+ var d = [], c;
2143
+ for (c in b.h)
2144
+ d[c] = a.G(b, c);
2145
+ d.length = Pa(a.G(b, "length")) || 0;
2146
+ return d;
2147
+ }
2148
+ function Ac(a, b) {
2149
+ switch (typeof b) {
2150
+ case "number":
2151
+ return a.aa.h.prototype;
2152
+ case "boolean":
2153
+ return a.mb.h.prototype;
2154
+ case "string":
2155
+ return a.J.h.prototype;
2156
+ }
2157
+ return b ? b.xa : null;
2158
+ }
2159
+ p.G = function(a, b) {
2160
+ if (this.P)
2161
+ throw Error("Getter not supported in that context");
2162
+ b = String(b);
2163
+ void 0 !== a && null !== a || K(this, this.j, "Cannot read property '" + b + "' of " + a);
2164
+ if ("object" === typeof a && !(a instanceof D))
2165
+ throw TypeError("Expecting native value or pseudo object");
2166
+ if ("length" === b) {
2167
+ if (Q(this, a, this.J))
2168
+ return String(a).length;
2169
+ } else if (64 > b.charCodeAt(0) && Q(this, a, this.J)) {
2170
+ var d = Qa(b);
2171
+ if (!isNaN(d) && d < String(a).length)
2172
+ return String(a)[d];
2173
+ }
2174
+ do
2175
+ if (a.h && b in a.h)
2176
+ return (d = a.V[b]) ? (this.P = true, d) : a.h[b];
2177
+ while (a = Ac(this, a));
2178
+ };
2179
+ function $c(a, b, d) {
2180
+ if (!(b instanceof D))
2181
+ throw TypeError("Primitive data type has no properties");
2182
+ d = String(d);
2183
+ if ("length" === d && Q(a, b, a.J))
2184
+ return true;
2185
+ if (Q(a, b, a.J)) {
2186
+ var c = Qa(d);
2187
+ if (!isNaN(c) && c < String(b).length)
2188
+ return true;
2189
+ }
2190
+ do
2191
+ if (b.h && d in b.h)
2192
+ return true;
2193
+ while (b = Ac(a, b));
2194
+ return false;
2195
+ }
2196
+ p.g = function(a, b, d, c) {
2197
+ if (this.Ka)
2198
+ throw Error("Setter not supported in that context");
2199
+ b = String(b);
2200
+ void 0 !== a && null !== a || K(this, this.j, "Cannot set property '" + b + "' of " + a);
2201
+ if ("object" === typeof a && !(a instanceof D))
2202
+ throw TypeError("Expecting native value or pseudo object");
2203
+ 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");
2204
+ var e = !this.o || ad(this).S;
2205
+ if (a instanceof D) {
2206
+ if (Q(this, a, this.J)) {
2207
+ var h = Qa(b);
2208
+ if ("length" === b || !isNaN(h) && h < String(a).length) {
2209
+ e && K(this, this.j, "Cannot assign to read only property '" + b + "' of String '" + a.data + "'");
2210
+ return;
2211
+ }
2212
+ }
2213
+ if ("Array" === a.H) {
2214
+ if (h = a.h.length, "length" === b) {
2215
+ if (c) {
2216
+ if (!("value" in c))
2217
+ return;
2218
+ d = c.value;
2219
+ }
2220
+ d = Pa(d);
2221
+ isNaN(d) && K(this, this.ob, "Invalid array length");
2222
+ if (d < h)
2223
+ for (k in a.h) {
2224
+ var k = Qa(k);
2225
+ !isNaN(k) && d <= k && delete a.h[k];
2226
+ }
2227
+ } else
2228
+ isNaN(k = Qa(b)) || (a.h.length = Math.max(h, k + 1));
2229
+ }
2230
+ if (!a.preventExtensions || b in a.h) {
2231
+ if (c) {
2232
+ e = {};
2233
+ "get" in c && c.get && (a.V[b] = c.get, e.get = this.g.ac);
2234
+ "set" in c && c.set && (a.Y[b] = c.set, e.set = this.g.bc);
2235
+ "configurable" in c && (e.configurable = c.configurable);
2236
+ "enumerable" in c && (e.enumerable = c.enumerable);
2237
+ "writable" in c && (e.writable = c.writable, delete a.V[b], delete a.Y[b]);
2238
+ "value" in c ? (e.value = c.value, delete a.V[b], delete a.Y[b]) : d !== Ia && (e.value = d, delete a.V[b], delete a.Y[b]);
2239
+ try {
2240
+ Object.defineProperty(a.h, b, e);
2241
+ } catch (q) {
2242
+ K(this, this.j, "Cannot redefine property: " + b);
2243
+ }
2244
+ "get" in c && !c.get && delete a.V[b];
2245
+ "set" in c && !c.set && delete a.Y[b];
2246
+ } else {
2247
+ if (d === Ia)
2248
+ throw ReferenceError("Value not specified");
2249
+ for (c = a; !(b in c.h); )
2250
+ if (c = Ac(this, c), !c) {
2251
+ c = a;
2252
+ break;
2253
+ }
2254
+ if (c.Y && c.Y[b])
2255
+ return this.Ka = true, c.Y[b];
2256
+ if (c.V && c.V[b])
2257
+ e && K(this, this.j, "Cannot set property '" + b + "' of object '" + a + "' which only has a getter");
2258
+ else
2259
+ try {
2260
+ a.h[b] = d;
2261
+ } catch (q) {
2262
+ e && K(this, this.j, "Cannot assign to read only property '" + b + "' of object '" + a + "'");
2263
+ }
2264
+ }
2265
+ } else
2266
+ e && K(this, this.j, "Can't add property '" + b + "', object is not extensible");
2267
+ } else
2268
+ e && K(this, this.j, "Can't create property '" + b + "' on '" + a + "'");
2269
+ };
2270
+ p.g.ac = function() {
2271
+ throw Error("Placeholder getter");
2272
+ };
2273
+ p.g.bc = function() {
2274
+ throw Error("Placeholder setter");
2275
+ };
2276
+ function M(a, b, d, c) {
2277
+ a.g(b.h.prototype, d, a.i(c, false), v);
2278
+ }
2279
+ function Gc(a, b, d, c) {
2280
+ a.g(b.h.prototype, d, a.ub(c), v);
2281
+ }
2282
+ function ad(a) {
2283
+ a = a.o[a.o.length - 1].scope;
2284
+ if (!a)
2285
+ throw Error("No scope found");
2286
+ return a;
2287
+ }
2288
+ function ea(a, b, d) {
2289
+ var c = false;
2290
+ if (d && d.S)
2291
+ c = true;
2292
+ else {
2293
+ var e = b.body && b.body[0];
2294
+ e && e.la && "Literal" === e.la.type && "use strict" === e.la.value && (c = true);
2295
+ }
2296
+ e = a.s(null);
2297
+ c = new bd(d, c, e);
2298
+ d || bb(a, c.object);
2299
+ Ra(a, b, c);
2300
+ return c;
2301
+ }
2302
+ function cd(a, b, d) {
2303
+ if (!b)
2304
+ throw Error("parentScope required");
2305
+ a = d || a.s(null);
2306
+ return new bd(b, b.S, a);
2307
+ }
2308
+ function dd(a, b) {
2309
+ for (var d = ad(a); d && d !== a.N; ) {
2310
+ if (b in d.object.h)
2311
+ return d.object.h[b];
2312
+ d = d.Va;
2313
+ }
2314
+ if (d === a.N && $c(a, d.object, b))
2315
+ return a.G(d.object, b);
2316
+ d = a.o[a.o.length - 1].node;
2317
+ "UnaryExpression" === d.type && "typeof" === d.operator || K(a, a.pb, b + " is not defined");
2318
+ }
2319
+ function ed(a, b, d) {
2320
+ for (var c = ad(a), e = c.S; c && c !== a.N; ) {
2321
+ if (b in c.object.h) {
2322
+ try {
2323
+ c.object.h[b] = d;
2324
+ } catch (h) {
2325
+ e && K(a, a.j, "Cannot assign to read only variable '" + b + "'");
2326
+ }
2327
+ return;
2328
+ }
2329
+ c = c.Va;
2330
+ }
2331
+ if (c === a.N && (!e || $c(a, c.object, b)))
2332
+ return a.g(c.object, b, d);
2333
+ K(a, a.pb, b + " is not defined");
2334
+ }
2335
+ function Ra(a, b, d) {
2336
+ if (b.jb)
2337
+ var c = b.jb;
2338
+ else {
2339
+ c = /* @__PURE__ */ Object.create(null);
2340
+ switch (b.type) {
2341
+ case "VariableDeclaration":
2342
+ for (var e = 0; e < b.fa.length; e++)
2343
+ c[b.fa[e].id.name] = true;
2344
+ break;
2345
+ case "FunctionDeclaration":
2346
+ c[b.id.name] = b;
2347
+ break;
2348
+ case "BlockStatement":
2349
+ case "CatchClause":
2350
+ case "DoWhileStatement":
2351
+ case "ForInStatement":
2352
+ case "ForStatement":
2353
+ case "IfStatement":
2354
+ case "LabeledStatement":
2355
+ case "Program":
2356
+ case "SwitchCase":
2357
+ case "SwitchStatement":
2358
+ case "TryStatement":
2359
+ case "WithStatement":
2360
+ case "WhileStatement":
2361
+ var h = b.constructor, k;
2362
+ for (k in b)
2363
+ if ("loc" !== k) {
2364
+ var q = b[k];
2365
+ if (q && "object" === typeof q) {
2366
+ if (Array.isArray(q)) {
2367
+ for (e = 0; e < q.length; e++)
2368
+ if (q[e] && q[e].constructor === h) {
2369
+ var C = Ra(a, q[e], d);
2370
+ for (k in C)
2371
+ c[k] = C[k];
2372
+ }
2373
+ } else if (q.constructor === h)
2374
+ for (k in C = Ra(a, q, d), C)
2375
+ c[k] = C[k];
2376
+ }
2377
+ }
2378
+ }
2379
+ b.jb = c;
2380
+ }
2381
+ for (k in c)
2382
+ true === c[k] ? a.g(d.object, k, void 0, wa) : a.g(d.object, k, Nb(a, c[k], d), wa);
2383
+ return c;
2384
+ }
2385
+ function zc(a) {
2386
+ return a.o[a.o.length - 1].isConstructor;
2387
+ }
2388
+ function fd(a, b) {
2389
+ return b[0] === Ha ? dd(a, b[1]) : a.G(b[0], b[1]);
2390
+ }
2391
+ function gd(a, b, d) {
2392
+ return b[0] === Ha ? ed(a, b[1], d) : a.g(b[0], b[1], d);
2393
+ }
2394
+ function K(a, b, d) {
2395
+ if (!a.N)
2396
+ throw void 0 === d ? b : d;
2397
+ void 0 !== d && b instanceof D && (b = a.Aa(b), Ic(a, b, d));
2398
+ hd(a, 4, b);
2399
+ throw xa;
2400
+ }
2401
+ function hd(a, b, d, c) {
2402
+ if (0 === b)
2403
+ throw TypeError("Should not unwind for NORMAL completions");
2404
+ var e = a.o;
2405
+ a:
2406
+ for (; 0 < e.length; e.pop()) {
2407
+ var h = e[e.length - 1];
2408
+ switch (h.node.type) {
2409
+ case "TryStatement":
2410
+ h.ea = {
2411
+ type: b,
2412
+ value: d,
2413
+ label: c
2414
+ };
2415
+ return;
2416
+ case "CallExpression":
2417
+ case "NewExpression":
2418
+ if (3 === b) {
2419
+ h.value = d;
2420
+ return;
2421
+ }
2422
+ if (4 !== b)
2423
+ throw Error("Unsynatctic break/continue not rejected by Acorn");
2424
+ break;
2425
+ case "Program":
2426
+ h.done = true;
2427
+ break a;
2428
+ }
2429
+ if (1 === b) {
2430
+ if (c ? h.labels && -1 !== h.labels.indexOf(c) : h.W || h.Zb) {
2431
+ e.pop();
2432
+ return;
2433
+ }
2434
+ } else if (2 === b && (c ? h.labels && -1 !== h.labels.indexOf(c) : h.W))
2435
+ return;
2436
+ }
2437
+ Q(a, d, a.D) ? (b = {
2438
+ EvalError,
2439
+ RangeError,
2440
+ ReferenceError,
2441
+ SyntaxError,
2442
+ TypeError,
2443
+ URIError
2444
+ }, c = String(a.G(d, "name")), e = a.G(d, "message").valueOf(), b = (b[c] || Error)(e), b.stack = String(a.G(d, "stack"))) : b = String(d);
2445
+ a.value = b;
2446
+ throw b;
2447
+ }
2448
+ function R(a, b) {
2449
+ switch (b.type) {
2450
+ case "ArrayExpression":
2451
+ return "[...]";
2452
+ case "BinaryExpression":
2453
+ case "LogicalExpression":
2454
+ return R(a, b.left) + " " + b.operator + " " + R(a, b.right);
2455
+ case "CallExpression":
2456
+ return R(a, b.callee) + "(...)";
2457
+ case "ConditionalExpression":
2458
+ return R(a, b.test) + " ? " + R(a, b.da) + " : " + R(a, b.alternate);
2459
+ case "Identifier":
2460
+ return b.name;
2461
+ case "Literal":
2462
+ return b.raw;
2463
+ case "MemberExpression":
2464
+ var d = R(a, b.object);
2465
+ a = R(a, b.Wa);
2466
+ return b.bb ? d + "[" + a + "]" : d + "." + a;
2467
+ case "NewExpression":
2468
+ return "new " + R(a, b.callee) + "(...)";
2469
+ case "ObjectExpression":
2470
+ return "{...}";
2471
+ case "ThisExpression":
2472
+ return "this";
2473
+ case "UnaryExpression":
2474
+ return b.operator + " " + R(a, b.K);
2475
+ case "UpdateExpression":
2476
+ return d = R(a, b.K), b.prefix ? b.operator + d : d + b.operator;
2477
+ }
2478
+ return "???";
2479
+ }
2480
+ function Lb(a, b, d) {
2481
+ var c = a.o[a.o.length - 1], e = Array.from(d), h = e.shift();
2482
+ d = Math.max(Number(e.shift() || 0), 0);
2483
+ var k = a.ya();
2484
+ if (h instanceof D && "Function" === h.H) {
2485
+ var q = h;
2486
+ k.type = "CallExpression";
2487
+ c = c.scope;
2488
+ } else {
2489
+ try {
2490
+ var C = da(String(h), "taskCode" + a.ic++);
2491
+ } catch (U) {
2492
+ K(a, a.T, "Invalid code: " + U.message);
2493
+ }
2494
+ k.type = "EvalProgram_";
2495
+ k.body = C.body;
2496
+ c = c.node.arguments[0];
2497
+ fa(k, c ? c.start : void 0, c ? c.end : void 0);
2498
+ c = a.N;
2499
+ e.length = 0;
2500
+ }
2501
+ b = new id(q, e, c, k, b ? d : -1);
2502
+ ab(a, b, d);
2503
+ return b.Db;
2504
+ }
2505
+ function ab(a, b, d) {
2506
+ b.time = Date.now() + d;
2507
+ a.ca.push(b);
2508
+ a.ca.sort(function(c, e) {
2509
+ return c.time - e.time;
2510
+ });
2511
+ }
2512
+ function Mb(a, b) {
2513
+ for (var d = 0; d < a.ca.length; d++)
2514
+ if (a.ca[d].Db == b) {
2515
+ a.ca.splice(d, 1);
2516
+ break;
2517
+ }
2518
+ }
2519
+ function jd(a, b, d) {
2520
+ if (!a.P)
2521
+ throw Error("Unexpected call to createGetter");
2522
+ a.P = false;
2523
+ d = Array.isArray(d) ? d[0] : d;
2524
+ var c = a.ya();
2525
+ c.type = "CallExpression";
2526
+ a = new u(c, a.o[a.o.length - 1].scope);
2527
+ a.ia = 2;
2528
+ a.B = d;
2529
+ a.U = b;
2530
+ a.Qa = true;
2531
+ a.F = [];
2532
+ return a;
2533
+ }
2534
+ function kd(a, b, d, c) {
2535
+ if (!a.Ka)
2536
+ throw Error("Unexpected call to createSetter");
2537
+ a.Ka = false;
2538
+ d = Array.isArray(d) ? d[0] : a.Na;
2539
+ var e = a.ya();
2540
+ e.type = "CallExpression";
2541
+ a = new u(e, a.o[a.o.length - 1].scope);
2542
+ a.ia = 2;
2543
+ a.B = d;
2544
+ a.U = b;
2545
+ a.Qa = true;
2546
+ a.F = [
2547
+ c
2548
+ ];
2549
+ return a;
2550
+ }
2551
+ function ld(a, b) {
2552
+ return void 0 === b || null === b ? a.Na : b instanceof D ? b : (a = a.s(Ac(a, b)), a.data = b, a);
2553
+ }
2554
+ p.Xb = function() {
2555
+ return this.N;
2556
+ };
2557
+ p.Yb = function() {
2558
+ return this.o;
2559
+ };
2560
+ p.ec = function(a) {
2561
+ this.o = a;
2562
+ };
2563
+ function u(a, b) {
2564
+ this.node = a;
2565
+ this.scope = b;
2566
+ }
2567
+ function bd(a, b, d) {
2568
+ this.Va = a;
2569
+ this.S = b;
2570
+ this.object = d;
2571
+ }
2572
+ function D(a) {
2573
+ this.V = /* @__PURE__ */ Object.create(null);
2574
+ this.Y = /* @__PURE__ */ Object.create(null);
2575
+ this.h = /* @__PURE__ */ Object.create(null);
2576
+ this.xa = a;
2577
+ }
2578
+ p = D.prototype;
2579
+ p.xa = null;
2580
+ p.H = "Object";
2581
+ p.data = null;
2582
+ p.toString = function() {
2583
+ if (!Ma)
2584
+ return "[object Interpreter.Object]";
2585
+ if (!(this instanceof D))
2586
+ return String(this);
2587
+ if ("Array" === this.H) {
2588
+ var a = Ka;
2589
+ a.push(this);
2590
+ try {
2591
+ var b = [], d = this.h.length, c = false;
2592
+ 1024 < d && (d = 1e3, c = true);
2593
+ for (var e = 0; e < d; e++) {
2594
+ var h = this.h[e];
2595
+ b[e] = h instanceof D && -1 !== a.indexOf(h) ? "..." : h;
2596
+ }
2597
+ c && b.push("...");
2598
+ } finally {
2599
+ a.pop();
2600
+ }
2601
+ return b.join(",");
2602
+ }
2603
+ if ("Error" === this.H) {
2604
+ a = Ka;
2605
+ if (-1 !== a.indexOf(this))
2606
+ return "[object Error]";
2607
+ d = this;
2608
+ do
2609
+ if ("name" in d.h) {
2610
+ b = d.h.name;
2611
+ break;
2612
+ }
2613
+ while (d = d.xa);
2614
+ d = this;
2615
+ do
2616
+ if ("message" in d.h) {
2617
+ c = d.h.message;
2618
+ break;
2619
+ }
2620
+ while (d = d.xa);
2621
+ a.push(this);
2622
+ try {
2623
+ b = b && String(b), c = c && String(c);
2624
+ } finally {
2625
+ a.pop();
2626
+ }
2627
+ return c ? b + ": " + c : String(b);
2628
+ }
2629
+ return null !== this.data ? String(this.data) : "[object " + this.H + "]";
2630
+ };
2631
+ p.valueOf = function() {
2632
+ return !Ma || void 0 === this.data || null === this.data || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
2633
+ };
2634
+ function id(a, b, d, c, e) {
2635
+ this.zb = a;
2636
+ this.Lb = b;
2637
+ this.scope = d;
2638
+ this.node = c;
2639
+ this.interval = e;
2640
+ this.Db = ++md;
2641
+ this.time = 0;
2642
+ }
2643
+ var md = 0;
2644
+ t.prototype.stepArrayExpression = function(a, b, d) {
2645
+ d = d.elements;
2646
+ var c = b.A || 0;
2647
+ b.Oa ? (this.g(b.Oa, c, b.value), c++) : (b.Oa = Cc(this), b.Oa.h.length = d.length);
2648
+ for (; c < d.length; ) {
2649
+ if (d[c])
2650
+ return b.A = c, new u(d[c], b.scope);
2651
+ c++;
2652
+ }
2653
+ a.pop();
2654
+ a[a.length - 1].value = b.Oa;
2655
+ };
2656
+ t.prototype.stepAssignmentExpression = function(a, b, d) {
2657
+ if (!b.ja)
2658
+ return b.ja = true, b = new u(d.left, b.scope), b.sa = true, b;
2659
+ if (!b.Da) {
2660
+ b.Fa || (b.Fa = b.value);
2661
+ b.Ba && (b.ma = b.value);
2662
+ if (!b.Ba && "=" !== d.operator && (a = fd(this, b.Fa), b.ma = a, this.P))
2663
+ return b.Ba = true, jd(this, a, b.Fa);
2664
+ b.Da = true;
2665
+ "=" === d.operator && "Identifier" === d.left.type && (b.Pa = d.left.name);
2666
+ return new u(d.right, b.scope);
2667
+ }
2668
+ if (b.ta)
2669
+ a.pop(), a[a.length - 1].value = b.ib;
2670
+ else {
2671
+ var c = b.ma, e = b.value;
2672
+ switch (d.operator) {
2673
+ case "=":
2674
+ c = e;
2675
+ break;
2676
+ case "+=":
2677
+ c += e;
2678
+ break;
2679
+ case "-=":
2680
+ c -= e;
2681
+ break;
2682
+ case "*=":
2683
+ c *= e;
2684
+ break;
2685
+ case "/=":
2686
+ c /= e;
2687
+ break;
2688
+ case "%=":
2689
+ c %= e;
2690
+ break;
2691
+ case "<<=":
2692
+ c <<= e;
2693
+ break;
2694
+ case ">>=":
2695
+ c >>= e;
2696
+ break;
2697
+ case ">>>=":
2698
+ c >>>= e;
2699
+ break;
2700
+ case "&=":
2701
+ c &= e;
2702
+ break;
2703
+ case "^=":
2704
+ c ^= e;
2705
+ break;
2706
+ case "|=":
2707
+ c |= e;
2708
+ break;
2709
+ default:
2710
+ throw SyntaxError("Unknown assignment expression: " + d.operator);
2711
+ }
2712
+ if (d = gd(this, b.Fa, c))
2713
+ return b.ta = true, b.ib = c, kd(this, d, b.Fa, c);
2714
+ a.pop();
2715
+ a[a.length - 1].value = c;
2716
+ }
2717
+ };
2718
+ t.prototype.stepBinaryExpression = function(a, b, d) {
2719
+ if (!b.ja)
2720
+ return b.ja = true, new u(d.left, b.scope);
2721
+ if (!b.Da)
2722
+ return b.Da = true, b.ma = b.value, new u(d.right, b.scope);
2723
+ a.pop();
2724
+ var c = b.ma;
2725
+ b = b.value;
2726
+ switch (d.operator) {
2727
+ case "==":
2728
+ d = c == b;
2729
+ break;
2730
+ case "!=":
2731
+ d = c != b;
2732
+ break;
2733
+ case "===":
2734
+ d = c === b;
2735
+ break;
2736
+ case "!==":
2737
+ d = c !== b;
2738
+ break;
2739
+ case ">":
2740
+ d = c > b;
2741
+ break;
2742
+ case ">=":
2743
+ d = c >= b;
2744
+ break;
2745
+ case "<":
2746
+ d = c < b;
2747
+ break;
2748
+ case "<=":
2749
+ d = c <= b;
2750
+ break;
2751
+ case "+":
2752
+ d = c + b;
2753
+ break;
2754
+ case "-":
2755
+ d = c - b;
2756
+ break;
2757
+ case "*":
2758
+ d = c * b;
2759
+ break;
2760
+ case "/":
2761
+ d = c / b;
2762
+ break;
2763
+ case "%":
2764
+ d = c % b;
2765
+ break;
2766
+ case "&":
2767
+ d = c & b;
2768
+ break;
2769
+ case "|":
2770
+ d = c | b;
2771
+ break;
2772
+ case "^":
2773
+ d = c ^ b;
2774
+ break;
2775
+ case "<<":
2776
+ d = c << b;
2777
+ break;
2778
+ case ">>":
2779
+ d = c >> b;
2780
+ break;
2781
+ case ">>>":
2782
+ d = c >>> b;
2783
+ break;
2784
+ case "in":
2785
+ b instanceof D || K(this, this.j, "'in' expects an object, not '" + b + "'");
2786
+ d = $c(this, b, c);
2787
+ break;
2788
+ case "instanceof":
2789
+ Q(this, b, this.O) || K(this, this.j, "'instanceof' expects an object, not '" + b + "'");
2790
+ d = c instanceof D ? Q(this, c, b) : false;
2791
+ break;
2792
+ default:
2793
+ throw SyntaxError("Unknown binary operator: " + d.operator);
2794
+ }
2795
+ a[a.length - 1].value = d;
2796
+ };
2797
+ t.prototype.stepBlockStatement = function(a, b, d) {
2798
+ var c = b.A || 0;
2799
+ if (d = d.body[c])
2800
+ return b.A = c + 1, new u(d, b.scope);
2801
+ a.pop();
2802
+ };
2803
+ t.prototype.stepBreakStatement = function(a, b, d) {
2804
+ hd(this, 1, void 0, d.label && d.label.name);
2805
+ };
2806
+ t.prototype.Hb = 0;
2807
+ t.prototype.stepCallExpression = function(a, b, d) {
2808
+ if (!b.ia) {
2809
+ b.ia = 1;
2810
+ var c = new u(d.callee, b.scope);
2811
+ c.sa = true;
2812
+ return c;
2813
+ }
2814
+ if (1 === b.ia) {
2815
+ b.ia = 2;
2816
+ var e = b.value;
2817
+ if (Array.isArray(e)) {
2818
+ if (b.U = fd(this, e), e[0] === Ha ? b.Pb = "eval" === e[1] : b.B = e[0], e = b.U, this.P)
2819
+ return b.ia = 1, jd(this, e, b.value);
2820
+ } else
2821
+ b.U = e;
2822
+ b.F = [];
2823
+ b.A = 0;
2824
+ }
2825
+ e = b.U;
2826
+ if (!b.Qa) {
2827
+ 0 !== b.A && b.F.push(b.value);
2828
+ if (d.arguments[b.A])
2829
+ return new u(d.arguments[b.A++], b.scope);
2830
+ if ("NewExpression" === d.type) {
2831
+ e instanceof D && !e.Ab || K(this, this.j, R(this, d.callee) + " is not a constructor");
2832
+ if (e === this.qa)
2833
+ b.B = Cc(this);
2834
+ else {
2835
+ var h = e.h.prototype;
2836
+ if ("object" !== typeof h || null === h)
2837
+ h = this.M;
2838
+ b.B = this.s(h);
2839
+ }
2840
+ b.isConstructor = true;
2841
+ }
2842
+ b.Qa = true;
2843
+ }
2844
+ if (b.eb)
2845
+ a.pop(), a[a.length - 1].value = b.isConstructor && "object" !== typeof b.value ? b.B : b.value;
2846
+ else {
2847
+ b.eb = true;
2848
+ e instanceof D || K(this, this.j, R(this, d.callee) + " is not a function");
2849
+ if (a = e.node) {
2850
+ d = ea(this, a.body, e.Va);
2851
+ c = Cc(this);
2852
+ for (e = 0; e < b.F.length; e++)
2853
+ this.g(c, e, b.F[e]);
2854
+ this.g(d.object, "arguments", c);
2855
+ for (e = 0; e < a.oa.length; e++)
2856
+ this.g(d.object, a.oa[e].name, b.F.length > e ? b.F[e] : void 0);
2857
+ d.S || (b.B = ld(this, b.B));
2858
+ this.g(d.object, "this", b.B, ua);
2859
+ b.value = void 0;
2860
+ return new u(a.body, d);
2861
+ }
2862
+ if (e.eval) {
2863
+ if (e = b.F[0], "string" !== typeof e)
2864
+ b.value = e;
2865
+ else {
2866
+ try {
2867
+ c = da(String(e), "eval" + this.Hb++);
2868
+ } catch (q) {
2869
+ K(this, this.T, "Invalid code: " + q.message);
2870
+ }
2871
+ e = this.ya();
2872
+ e.type = "EvalProgram_";
2873
+ e.body = c.body;
2874
+ fa(e, d.start, d.end);
2875
+ d = b.Pb ? b.scope : this.N;
2876
+ d.S ? d = ea(this, c, d) : Ra(this, c, d);
2877
+ this.value = void 0;
2878
+ return new u(e, d);
2879
+ }
2880
+ } else if (e.Ta)
2881
+ b.scope.S || (b.B = ld(this, b.B)), b.value = e.Ta.apply(b.B, b.F);
2882
+ else if (e.Za) {
2883
+ var k = this;
2884
+ c = e.Za.length - 1;
2885
+ c = b.F.concat(Array(c)).slice(0, c);
2886
+ c.push(function(q) {
2887
+ b.value = q;
2888
+ k.za = false;
2889
+ });
2890
+ this.za = true;
2891
+ b.scope.S || (b.B = ld(this, b.B));
2892
+ e.Za.apply(b.B, c);
2893
+ } else
2894
+ K(this, this.j, R(this, d.callee) + " is not callable");
2895
+ }
2896
+ };
2897
+ t.prototype.stepConditionalExpression = function(a, b, d) {
2898
+ var c = b.na || 0;
2899
+ if (0 === c)
2900
+ return b.na = 1, new u(d.test, b.scope);
2901
+ if (1 === c) {
2902
+ b.na = 2;
2903
+ if ((c = !!b.value) && d.da)
2904
+ return new u(d.da, b.scope);
2905
+ if (!c && d.alternate)
2906
+ return new u(d.alternate, b.scope);
2907
+ this.value = void 0;
2908
+ }
2909
+ a.pop();
2910
+ "ConditionalExpression" === d.type && (a[a.length - 1].value = b.value);
2911
+ };
2912
+ t.prototype.stepContinueStatement = function(a, b, d) {
2913
+ hd(this, 2, void 0, d.label && d.label.name);
2914
+ };
2915
+ t.prototype.stepDebuggerStatement = function(a) {
2916
+ a.pop();
2917
+ };
2918
+ t.prototype.stepDoWhileStatement = function(a, b, d) {
2919
+ "DoWhileStatement" === d.type && void 0 === b.ga && (b.value = true, b.ga = true);
2920
+ if (!b.ga)
2921
+ return b.ga = true, new u(d.test, b.scope);
2922
+ if (!b.value)
2923
+ a.pop();
2924
+ else if (d.body)
2925
+ return b.ga = false, b.W = true, new u(d.body, b.scope);
2926
+ };
2927
+ t.prototype.stepEmptyStatement = function(a) {
2928
+ a.pop();
2929
+ };
2930
+ t.prototype.stepEvalProgram_ = function(a, b, d) {
2931
+ var c = b.A || 0;
2932
+ if (d = d.body[c])
2933
+ return b.A = c + 1, new u(d, b.scope);
2934
+ a.pop();
2935
+ a[a.length - 1].value = this.value;
2936
+ };
2937
+ t.prototype.stepExpressionStatement = function(a, b, d) {
2938
+ if (!b.ka)
2939
+ return this.value = void 0, b.ka = true, new u(d.la, b.scope);
2940
+ a.pop();
2941
+ this.value = b.value;
2942
+ };
2943
+ t.prototype.stepForInStatement = function(a, b, d) {
2944
+ if (!b.Ub && (b.Ub = true, d.left.fa && d.left.fa[0].ua))
2945
+ return b.scope.S && K(this, this.T, "for-in loop variable declaration may not have an initializer"), new u(d.left, b.scope);
2946
+ if (!b.Ca)
2947
+ return b.Ca = true, b.pa || (b.pa = b.value), new u(d.right, b.scope);
2948
+ b.W || (b.W = true, b.u = b.value, b.kb = /* @__PURE__ */ Object.create(null));
2949
+ if (void 0 === b.Ra)
2950
+ a:
2951
+ for (; ; ) {
2952
+ if (b.u instanceof D)
2953
+ for (b.wa || (b.wa = Object.getOwnPropertyNames(b.u.h)); ; ) {
2954
+ var c = b.wa.shift();
2955
+ if (void 0 === c)
2956
+ break;
2957
+ if (Object.prototype.hasOwnProperty.call(b.u.h, c) && !b.kb[c] && (b.kb[c] = true, Object.prototype.propertyIsEnumerable.call(b.u.h, c))) {
2958
+ b.Ra = c;
2959
+ break a;
2960
+ }
2961
+ }
2962
+ else if (null !== b.u && void 0 !== b.u)
2963
+ for (b.wa || (b.wa = Object.getOwnPropertyNames(b.u)); ; ) {
2964
+ c = b.wa.shift();
2965
+ if (void 0 === c)
2966
+ break;
2967
+ b.kb[c] = true;
2968
+ if (Object.prototype.propertyIsEnumerable.call(b.u, c)) {
2969
+ b.Ra = c;
2970
+ break a;
2971
+ }
2972
+ }
2973
+ b.u = Ac(this, b.u);
2974
+ b.wa = null;
2975
+ if (null === b.u) {
2976
+ a.pop();
2977
+ return;
2978
+ }
2979
+ }
2980
+ if (!b.wb) {
2981
+ if (b.wb = true, a = d.left, "VariableDeclaration" === a.type)
2982
+ b.pa = [
2983
+ Ha,
2984
+ a.fa[0].id.name
2985
+ ];
2986
+ else
2987
+ return b.pa = null, b = new u(a, b.scope), b.sa = true, b;
2988
+ }
2989
+ b.pa || (b.pa = b.value);
2990
+ if (!b.ta && (b.ta = true, a = b.Ra, c = gd(this, b.pa, a)))
2991
+ return kd(this, c, b.pa, a);
2992
+ b.Ra = void 0;
2993
+ b.wb = false;
2994
+ b.ta = false;
2995
+ if (d.body)
2996
+ return new u(d.body, b.scope);
2997
+ };
2998
+ t.prototype.stepForStatement = function(a, b, d) {
2999
+ switch (b.na) {
3000
+ default:
3001
+ b.na = 1;
3002
+ if (d.ua)
3003
+ return new u(d.ua, b.scope);
3004
+ break;
3005
+ case 1:
3006
+ b.na = 2;
3007
+ if (d.test)
3008
+ return new u(d.test, b.scope);
3009
+ break;
3010
+ case 2:
3011
+ b.na = 3;
3012
+ if (d.test && !b.value)
3013
+ a.pop();
3014
+ else
3015
+ return b.W = true, new u(d.body, b.scope);
3016
+ break;
3017
+ case 3:
3018
+ if (b.na = 1, d.update)
3019
+ return new u(d.update, b.scope);
3020
+ }
3021
+ };
3022
+ t.prototype.stepFunctionDeclaration = function(a) {
3023
+ a.pop();
3024
+ };
3025
+ t.prototype.stepFunctionExpression = function(a, b, d) {
3026
+ a.pop();
3027
+ b = a[a.length - 1];
3028
+ a = b.scope;
3029
+ d.id && (a = cd(this, a));
3030
+ b.value = Nb(this, d, a, b.Pa);
3031
+ d.id && this.g(a.object, d.id.name, b.value, ua);
3032
+ };
3033
+ t.prototype.stepIdentifier = function(a, b, d) {
3034
+ a.pop();
3035
+ if (b.sa)
3036
+ a[a.length - 1].value = [
3037
+ Ha,
3038
+ d.name
3039
+ ];
3040
+ else {
3041
+ b = dd(this, d.name);
3042
+ if (this.P)
3043
+ return jd(this, b, this.Na);
3044
+ a[a.length - 1].value = b;
3045
+ }
3046
+ };
3047
+ t.prototype.stepIfStatement = t.prototype.stepConditionalExpression;
3048
+ t.prototype.stepLabeledStatement = function(a, b, d) {
3049
+ a.pop();
3050
+ a = b.labels || [];
3051
+ a.push(d.label.name);
3052
+ b = new u(d.body, b.scope);
3053
+ b.labels = a;
3054
+ return b;
3055
+ };
3056
+ t.prototype.stepLiteral = function(a, b, d) {
3057
+ a.pop();
3058
+ b = d.value;
3059
+ b instanceof RegExp && (d = this.s(this.Ma), Hc(this, d, b), b = d);
3060
+ a[a.length - 1].value = b;
3061
+ };
3062
+ t.prototype.stepLogicalExpression = function(a, b, d) {
3063
+ if ("&&" !== d.operator && "||" !== d.operator)
3064
+ throw SyntaxError("Unknown logical operator: " + d.operator);
3065
+ if (!b.ja)
3066
+ return b.ja = true, new u(d.left, b.scope);
3067
+ if (b.Da)
3068
+ a.pop(), a[a.length - 1].value = b.value;
3069
+ else if ("&&" === d.operator && !b.value || "||" === d.operator && b.value)
3070
+ a.pop(), a[a.length - 1].value = b.value;
3071
+ else
3072
+ return b.Da = true, new u(d.right, b.scope);
3073
+ };
3074
+ t.prototype.stepMemberExpression = function(a, b, d) {
3075
+ if (!b.Ca)
3076
+ return b.Ca = true, new u(d.object, b.scope);
3077
+ if (d.bb) {
3078
+ if (b.Vb)
3079
+ d = b.value;
3080
+ else
3081
+ return b.u = b.value, b.Vb = true, new u(d.Wa, b.scope);
3082
+ } else
3083
+ b.u = b.value, d = d.Wa.name;
3084
+ a.pop();
3085
+ if (b.sa)
3086
+ a[a.length - 1].value = [
3087
+ b.u,
3088
+ d
3089
+ ];
3090
+ else {
3091
+ d = this.G(b.u, d);
3092
+ if (this.P)
3093
+ return jd(this, d, b.u);
3094
+ a[a.length - 1].value = d;
3095
+ }
3096
+ };
3097
+ t.prototype.stepNewExpression = t.prototype.stepCallExpression;
3098
+ t.prototype.stepObjectExpression = function(a, b, d) {
3099
+ var c = b.A || 0, e = d.h[c];
3100
+ if (b.u) {
3101
+ var h = b.Pa;
3102
+ b.Ja[h] || (b.Ja[h] = {});
3103
+ b.Ja[h][e.kind] = b.value;
3104
+ b.A = ++c;
3105
+ e = d.h[c];
3106
+ } else
3107
+ b.u = this.s(this.M), b.Ja = /* @__PURE__ */ Object.create(null);
3108
+ if (e) {
3109
+ var k = e.key;
3110
+ if ("Identifier" === k.type)
3111
+ h = k.name;
3112
+ else if ("Literal" === k.type)
3113
+ h = k.value;
3114
+ else
3115
+ throw SyntaxError("Unknown object structure: " + k.type);
3116
+ b.Pa = h;
3117
+ return new u(e.value, b.scope);
3118
+ }
3119
+ for (k in b.Ja)
3120
+ d = b.Ja[k], "get" in d || "set" in d ? this.g(b.u, k, Ia, {
3121
+ configurable: true,
3122
+ enumerable: true,
3123
+ get: d.get,
3124
+ set: d.set
3125
+ }) : this.g(b.u, k, d.init);
3126
+ a.pop();
3127
+ a[a.length - 1].value = b.u;
3128
+ };
3129
+ t.prototype.stepProgram = function(a, b, d) {
3130
+ if (a = d.body.shift())
3131
+ return b.done = false, new u(a, b.scope);
3132
+ b.done = true;
3133
+ };
3134
+ t.prototype.stepReturnStatement = function(a, b, d) {
3135
+ if (d.K && !b.ka)
3136
+ return b.ka = true, new u(d.K, b.scope);
3137
+ hd(this, 3, b.value);
3138
+ };
3139
+ t.prototype.stepSequenceExpression = function(a, b, d) {
3140
+ var c = b.A || 0;
3141
+ if (d = d.xb[c])
3142
+ return b.A = c + 1, new u(d, b.scope);
3143
+ a.pop();
3144
+ a[a.length - 1].value = b.value;
3145
+ };
3146
+ t.prototype.stepSwitchStatement = function(a, b, d) {
3147
+ if (!b.ga)
3148
+ return b.ga = 1, new u(d.Qb, b.scope);
3149
+ 1 === b.ga && (b.ga = 2, b.hc = b.value, b.cb = -1);
3150
+ for (; ; ) {
3151
+ var c = b.gb || 0, e = d.tb[c];
3152
+ if (b.Ha || !e || e.test) {
3153
+ if (e || b.Ha || -1 === b.cb) {
3154
+ if (e) {
3155
+ if (!b.Ha && !b.Fb && e.test)
3156
+ return b.Fb = true, new u(e.test, b.scope);
3157
+ if (b.Ha || b.value === b.hc) {
3158
+ b.Ha = true;
3159
+ var h = b.A || 0;
3160
+ if (e.da[h])
3161
+ return b.Zb = true, b.A = h + 1, new u(e.da[h], b.scope);
3162
+ }
3163
+ b.Fb = false;
3164
+ b.A = 0;
3165
+ b.gb = c + 1;
3166
+ } else {
3167
+ a.pop();
3168
+ break;
3169
+ }
3170
+ } else
3171
+ b.Ha = true, b.gb = b.cb;
3172
+ } else
3173
+ b.cb = c, b.gb = c + 1;
3174
+ }
3175
+ };
3176
+ t.prototype.stepThisExpression = function(a) {
3177
+ a.pop();
3178
+ a[a.length - 1].value = dd(this, "this");
3179
+ };
3180
+ t.prototype.stepThrowStatement = function(a, b, d) {
3181
+ if (b.ka)
3182
+ K(this, b.value);
3183
+ else
3184
+ return b.ka = true, new u(d.K, b.scope);
3185
+ };
3186
+ t.prototype.stepTryStatement = function(a, b, d) {
3187
+ if (!b.Rb)
3188
+ return b.Rb = true, new u(d.block, b.scope);
3189
+ if (b.ea && 4 === b.ea.type && !b.Tb && d.Ea)
3190
+ return b.Tb = true, a = cd(this, b.scope), this.g(a.object, d.Ea.Ua.name, b.ea.value), b.ea = void 0, new u(d.Ea.body, a);
3191
+ if (!b.Sb && d.fb)
3192
+ return b.Sb = true, new u(d.fb, b.scope);
3193
+ a.pop();
3194
+ b.ea && hd(this, b.ea.type, b.ea.value, b.ea.label);
3195
+ };
3196
+ t.prototype.stepUnaryExpression = function(a, b, d) {
3197
+ if (!b.ka)
3198
+ return b.ka = true, a = new u(d.K, b.scope), a.sa = "delete" === d.operator, a;
3199
+ a.pop();
3200
+ var c = b.value;
3201
+ switch (d.operator) {
3202
+ case "-":
3203
+ c = -c;
3204
+ break;
3205
+ case "+":
3206
+ c = +c;
3207
+ break;
3208
+ case "!":
3209
+ c = !c;
3210
+ break;
3211
+ case "~":
3212
+ c = ~c;
3213
+ break;
3214
+ case "delete":
3215
+ d = true;
3216
+ if (Array.isArray(c)) {
3217
+ var e = c[0];
3218
+ e === Ha && (e = b.scope);
3219
+ c = String(c[1]);
3220
+ try {
3221
+ delete e.h[c];
3222
+ } catch (h) {
3223
+ b.scope.S ? K(this, this.j, "Cannot delete property '" + c + "' of '" + e + "'") : d = false;
3224
+ }
3225
+ }
3226
+ c = d;
3227
+ break;
3228
+ case "typeof":
3229
+ c = c && "Function" === c.H ? "function" : typeof c;
3230
+ break;
3231
+ case "void":
3232
+ c = void 0;
3233
+ break;
3234
+ default:
3235
+ throw SyntaxError("Unknown unary operator: " + d.operator);
3236
+ }
3237
+ a[a.length - 1].value = c;
3238
+ };
3239
+ t.prototype.stepUpdateExpression = function(a, b, d) {
3240
+ if (!b.ja)
3241
+ return b.ja = true, a = new u(d.K, b.scope), a.sa = true, a;
3242
+ b.Ga || (b.Ga = b.value);
3243
+ b.Ba && (b.ma = b.value);
3244
+ if (!b.Ba) {
3245
+ var c = fd(this, b.Ga);
3246
+ b.ma = c;
3247
+ if (this.P)
3248
+ return b.Ba = true, jd(this, c, b.Ga);
3249
+ }
3250
+ if (b.ta)
3251
+ a.pop(), a[a.length - 1].value = b.ib;
3252
+ else {
3253
+ c = Number(b.ma);
3254
+ if ("++" === d.operator)
3255
+ var e = c + 1;
3256
+ else if ("--" === d.operator)
3257
+ e = c - 1;
3258
+ else
3259
+ throw SyntaxError("Unknown update expression: " + d.operator);
3260
+ d = d.prefix ? e : c;
3261
+ if (c = gd(this, b.Ga, e))
3262
+ return b.ta = true, b.ib = d, kd(this, c, b.Ga, e);
3263
+ a.pop();
3264
+ a[a.length - 1].value = d;
3265
+ }
3266
+ };
3267
+ t.prototype.stepVariableDeclaration = function(a, b, d) {
3268
+ d = d.fa;
3269
+ var c = b.A || 0, e = d[c];
3270
+ b.Bb && e && (ed(this, e.id.name, b.value), b.Bb = false, e = d[++c]);
3271
+ for (; e; ) {
3272
+ if (e.ua)
3273
+ return b.A = c, b.Bb = true, b.Pa = e.id.name, new u(e.ua, b.scope);
3274
+ e = d[++c];
3275
+ }
3276
+ a.pop();
3277
+ };
3278
+ t.prototype.stepWithStatement = function(a, b, d) {
3279
+ if (!b.Ca)
3280
+ return b.Ca = true, new u(d.object, b.scope);
3281
+ a.pop();
3282
+ a = cd(this, b.scope, b.value);
3283
+ return new u(d.body, a);
3284
+ };
3285
+ t.prototype.stepWhileStatement = t.prototype.stepDoWhileStatement;
3286
+ Na.Interpreter = t;
3287
+ t.prototype.step = t.prototype.lb;
3288
+ t.prototype.run = t.prototype.Eb;
3289
+ t.prototype.appendCode = t.prototype.Jb;
3290
+ t.prototype.createObject = t.prototype.Aa;
3291
+ t.prototype.createObjectProto = t.prototype.s;
3292
+ t.prototype.createAsyncFunction = t.prototype.ub;
3293
+ t.prototype.createNativeFunction = t.prototype.i;
3294
+ t.prototype.getProperty = t.prototype.G;
3295
+ t.prototype.setProperty = t.prototype.g;
3296
+ t.prototype.nativeToPseudo = t.prototype.Ia;
3297
+ t.prototype.pseudoToNative = t.prototype.R;
3298
+ t.prototype.getGlobalScope = t.prototype.Xb;
3299
+ t.prototype.getStateStack = t.prototype.Yb;
3300
+ t.prototype.setStateStack = t.prototype.ec;
3301
+ t.VALUE_IN_DESCRIPTOR = Ia;
3302
+
123
3303
  const getFunctionArguments = ({ builder, context, event, state }) => {
124
3304
  return Object.entries({
125
3305
  state,
@@ -131,6 +3311,84 @@ const getFunctionArguments = ({ builder, context, event, state }) => {
131
3311
  });
132
3312
  };
133
3313
 
3314
+ const processCode$1 = (code) => {
3315
+ return code.split("\n").map((line) => {
3316
+ const trimmed = line.trim();
3317
+ if (line.includes("__awaiter"))
3318
+ return void 0;
3319
+ const isStateSetter = trimmed.startsWith("state.");
3320
+ if (!isStateSetter)
3321
+ return line;
3322
+ const [lhs, rhs] = trimmed.split("=");
3323
+ const setStr = lhs.replace("state.", "").trim();
3324
+ const setExpr = `setRootState('${setStr}', ${rhs.trim()})`;
3325
+ return `
3326
+ ${line}
3327
+ ${setExpr}
3328
+ `;
3329
+ }).filter(Boolean).join("\n");
3330
+ };
3331
+ const getJSONValName = (val) => val + "JSON";
3332
+ const runInEdge = ({ builder, context, event, rootState, localState, rootSetState, code }) => {
3333
+ const state = {
3334
+ ...rootState,
3335
+ ...localState
3336
+ };
3337
+ const properties = getFunctionArguments({
3338
+ builder,
3339
+ context,
3340
+ event,
3341
+ state
3342
+ });
3343
+ const prependedCode = properties.map(([key]) => {
3344
+ const jsonValName = getJSONValName(key);
3345
+ return `var ${key} = ${jsonValName} === undefined ? undefined : JSON.parse(${jsonValName});`;
3346
+ }).join("\n");
3347
+ const cleanedCode = processCode$1(code);
3348
+ if (cleanedCode === "") {
3349
+ logger.warn("Skipping evaluation of empty code block.");
3350
+ return;
3351
+ }
3352
+ const transformed = `
3353
+ function theFunction() {
3354
+ ${prependedCode}
3355
+
3356
+ ${cleanedCode}
3357
+ }
3358
+ theFunction();
3359
+ `;
3360
+ const setRootState = (prop, value) => {
3361
+ const newState = set(state, prop, value);
3362
+ rootSetState?.(newState);
3363
+ };
3364
+ const initFunc = function(interpreter, globalObject) {
3365
+ properties.forEach(([key, val]) => {
3366
+ const jsonVal = JSON.stringify(val);
3367
+ interpreter.setProperty(globalObject, getJSONValName(key), jsonVal);
3368
+ });
3369
+ interpreter.setProperty(globalObject, "setRootState", interpreter.createNativeFunction(setRootState));
3370
+ };
3371
+ try {
3372
+ const myInterpreter = new t(transformed, initFunc);
3373
+ myInterpreter.run();
3374
+ const output = myInterpreter.pseudoToNative(myInterpreter.value);
3375
+ return output;
3376
+ } catch (e) {
3377
+ logger.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
3378
+ e
3379
+ });
3380
+ return;
3381
+ }
3382
+ };
3383
+
3384
+ const noop = () => null;
3385
+ let safeDynamicRequire = noop;
3386
+ try {
3387
+ safeDynamicRequire = eval("require");
3388
+ } catch (error) {
3389
+ }
3390
+
3391
+ const ivm = safeDynamicRequire("isolated-vm");
134
3392
  const getSyncValName = (key) => `bldr_${key}_sync`;
135
3393
  const BUILDER_SET_STATE_NAME = "BUILDER_SET_STATE";
136
3394
  const REF_TO_PROXY_FN = `
@@ -182,7 +3440,7 @@ const getIsolateContext = () => {
182
3440
  });
183
3441
  return isolate.createContextSync();
184
3442
  };
185
- const evaluator$1 = ({ code, builder, context, event, localState, rootSetState, rootState }) => {
3443
+ const runInNode = ({ code, builder, context, event, localState, rootSetState, rootState }) => {
186
3444
  const state = {
187
3445
  ...rootState,
188
3446
  ...localState
@@ -255,7 +3513,7 @@ function flattenState(rootState, localState, rootSetState) {
255
3513
  }
256
3514
 
257
3515
  console.log("inside placeholder-runtime.ts");
258
- const evaluator = isServer ? evaluator$1 : runInBrowser;
3516
+ const evaluator = isServer ? isEdgeRuntime() ? runInEdge : runInNode : runInBrowser;
259
3517
  console.log("chose runtime");
260
3518
 
261
3519
  function evaluate({ code, context, localState, rootState, rootSetState, event, isExpression = true }) {
@@ -284,7 +3542,7 @@ function evaluate({ code, context, localState, rootState, rootSetState, event, i
284
3542
  localState
285
3543
  };
286
3544
  try {
287
- return evaluator(args);
3545
+ return isBrowser() ? runInBrowser(args) : evaluator(args);
288
3546
  } catch (e) {
289
3547
  logger.error("Failed code evaluation: " + e.message, {
290
3548
  code
@@ -295,14 +3553,6 @@ function evaluate({ code, context, localState, rootState, rootSetState, event, i
295
3553
 
296
3554
  const fastClone = (obj) => JSON.parse(JSON.stringify(obj));
297
3555
 
298
- const set = (obj, _path, value) => {
299
- if (Object(obj) !== obj)
300
- return obj;
301
- const path = Array.isArray(_path) ? _path : _path.toString().match(/[^.[\]]+/g);
302
- path.slice(0, -1).reduce((a, c, i) => Object(a[c]) === a[c] ? a[c] : a[c] = Math.abs(Number(path[i + 1])) >> 0 === +path[i + 1] ? [] : {}, obj)[path[path.length - 1]] = value;
303
- return obj;
304
- };
305
-
306
3556
  function transformBlock(block) {
307
3557
  return block;
308
3558
  }
@@ -464,8 +3714,6 @@ const getSizesForBreakpoints = ({ small, medium }) => {
464
3714
 
465
3715
  const camelToKebabCase = (string) => string.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase();
466
3716
 
467
- const checkIsDefined = (maybeT) => maybeT !== null && maybeT !== void 0;
468
-
469
3717
  const convertStyleMapToCSSArray = (style) => {
470
3718
  const cssProps = Object.entries(style).map(([key, value]) => {
471
3719
  if (typeof value === "string")
@@ -3250,7 +6498,7 @@ const getInteractionPropertiesForEvent = (event) => {
3250
6498
  };
3251
6499
  };
3252
6500
 
3253
- const SDK_VERSION = "0.7.1-3";
6501
+ const SDK_VERSION = "0.7.1-4";
3254
6502
 
3255
6503
  const registry = {};
3256
6504
  function register(type, info) {