@builder.io/sdk-react-nextjs 0.16.1 → 0.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +26 -26
- package/lib/browser/blocks-exports.mjs +240 -237
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/server-entry-8a47b9f9.cjs +2 -0
- package/lib/{node/server-entry-e47775d7.js → browser/server-entry-b8ecec52.js} +152 -158
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-exports.cjs +35 -35
- package/lib/edge/blocks-exports.mjs +300 -296
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/server-entry-8a47b9f9.cjs +2 -0
- package/lib/{browser/server-entry-8a4d2728.js → edge/server-entry-b8ecec52.js} +152 -158
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +13 -13
- package/lib/node/blocks-exports.mjs +189 -186
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-1e70fe16.cjs → node-runtime-e2a21ba1.cjs} +2 -2
- package/lib/node/{node-runtime-753c71f6.js → node-runtime-ffe74dec.js} +3 -2
- package/lib/node/server-entry-8a47b9f9.cjs +2 -0
- package/lib/{edge/server-entry-8a4d2728.js → node/server-entry-b8ecec52.js} +152 -158
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/register-component.d.ts +2 -2
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/register-component.d.ts +2 -2
- package/lib/browser/server-entry-555ce264.cjs +0 -2
- package/lib/edge/server-entry-555ce264.cjs +0 -2
- package/lib/node/server-entry-61a8c25a.cjs +0 -2
|
@@ -3,12 +3,12 @@ var Vr = Object.defineProperty;
|
|
|
3
3
|
var _r = (e, t, n) => t in e ? Vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
4
|
var Kt = (e, t, n) => (_r(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
5
|
import { jsx as y, Fragment as K, jsxs as se } from "react/jsx-runtime";
|
|
6
|
-
import { TARGET as it, isEditing as Ce, isBrowser as De, getUserAttributes as $r, logger as ot, checkIsDefined as yt,
|
|
7
|
-
import { useRef as
|
|
6
|
+
import { TARGET as it, isEditing as Ce, isBrowser as De, getUserAttributes as $r, logger as ot, checkIsDefined as yt, init as Hr, getDefaultCanTrack as vt, _track as Gn, isPreviewing as Kr, createEditorListener as Gr, fetch as zr, registerInsertMenu as Yr, setupBrowserForEditing as Xr, createRegisterComponentMessage as Jr, fetchOneEntry as lr, serializeComponentInfo as zn, handleABTestingSync as qr } from "./server-entry-b8ecec52.js";
|
|
7
|
+
import { useRef as Zt, useState as ye, useEffect as ie, createContext as Zr } from "react";
|
|
8
8
|
import { useRouter as Qr } from "next/navigation";
|
|
9
9
|
import "lru-cache";
|
|
10
10
|
const ei = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ti = (e) => typeof e == "string" && ei.has(e.toLowerCase());
|
|
11
|
-
function
|
|
11
|
+
function Qt(e) {
|
|
12
12
|
return /* @__PURE__ */ y(K, { children: ti(e.TagName) ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ y(K, { children: typeof e.TagName == "string" ? /* @__PURE__ */ y(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ y(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
13
13
|
}
|
|
14
14
|
const et = () => {
|
|
@@ -40,7 +40,7 @@ function ni(e) {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
return /* @__PURE__ */ y(
|
|
43
|
-
|
|
43
|
+
Qt,
|
|
44
44
|
{
|
|
45
45
|
attributes: t(),
|
|
46
46
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -129,7 +129,7 @@ const dr = (e, t, n) => {
|
|
|
129
129
|
};
|
|
130
130
|
var F, si = function(e) {
|
|
131
131
|
function t(o) {
|
|
132
|
-
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
132
|
+
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Ur.test(String.fromCharCode(o));
|
|
133
133
|
}
|
|
134
134
|
function n(o) {
|
|
135
135
|
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Kn.test(String.fromCharCode(o));
|
|
@@ -192,7 +192,7 @@ var F, si = function(e) {
|
|
|
192
192
|
break;
|
|
193
193
|
else if (o === 160)
|
|
194
194
|
++d;
|
|
195
|
-
else if (5760 <= o &&
|
|
195
|
+
else if (5760 <= o && Wr.test(String.fromCharCode(o)))
|
|
196
196
|
++d;
|
|
197
197
|
else
|
|
198
198
|
break;
|
|
@@ -222,7 +222,7 @@ var F, si = function(e) {
|
|
|
222
222
|
case 58:
|
|
223
223
|
return ++d, s(Ge);
|
|
224
224
|
case 63:
|
|
225
|
-
return ++d, s(
|
|
225
|
+
return ++d, s(Wn);
|
|
226
226
|
case 48:
|
|
227
227
|
if (o = S.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
228
228
|
d += 2, o = D(16), o === null && r(z + 2, "Expected hexadecimal number"), n(S.charCodeAt(d)) && r(d, "Identifier directly after number"), s(He, o);
|
|
@@ -265,13 +265,13 @@ var F, si = function(e) {
|
|
|
265
265
|
l += "\r";
|
|
266
266
|
break;
|
|
267
267
|
case 120:
|
|
268
|
-
l += String.fromCharCode(
|
|
268
|
+
l += String.fromCharCode(P(2));
|
|
269
269
|
break;
|
|
270
270
|
case 117:
|
|
271
|
-
l += String.fromCharCode(
|
|
271
|
+
l += String.fromCharCode(P(4));
|
|
272
272
|
break;
|
|
273
273
|
case 85:
|
|
274
|
-
l += String.fromCharCode(
|
|
274
|
+
l += String.fromCharCode(P(8));
|
|
275
275
|
break;
|
|
276
276
|
case 116:
|
|
277
277
|
l += " ";
|
|
@@ -301,7 +301,7 @@ var F, si = function(e) {
|
|
|
301
301
|
}
|
|
302
302
|
return;
|
|
303
303
|
case 47:
|
|
304
|
-
o = S.charCodeAt(d + 1), _e ? (++d, j()) : o === 61 ? m(Ae, 2) : m(
|
|
304
|
+
o = S.charCodeAt(d + 1), _e ? (++d, j()) : o === 61 ? m(Ae, 2) : m(Un, 1);
|
|
305
305
|
return;
|
|
306
306
|
case 37:
|
|
307
307
|
case 42:
|
|
@@ -337,10 +337,10 @@ var F, si = function(e) {
|
|
|
337
337
|
if (d >= je)
|
|
338
338
|
return s(Bt);
|
|
339
339
|
if (o = S.charCodeAt(d), n(o) || o === 92)
|
|
340
|
-
return
|
|
340
|
+
return O();
|
|
341
341
|
if (g(o) === !1) {
|
|
342
342
|
if (o = String.fromCharCode(o), o === "\\" || Kn.test(o))
|
|
343
|
-
return
|
|
343
|
+
return O();
|
|
344
344
|
r(d, "Unexpected character '" + o + "'");
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -365,7 +365,7 @@ var F, si = function(e) {
|
|
|
365
365
|
}
|
|
366
366
|
++d;
|
|
367
367
|
}
|
|
368
|
-
o = S.slice(u, d), ++d, (l =
|
|
368
|
+
o = S.slice(u, d), ++d, (l = _()) && !/^[gmi]*$/.test(l) && r(u, "Invalid regexp flag");
|
|
369
369
|
try {
|
|
370
370
|
var A = new RegExp(o, l);
|
|
371
371
|
} catch (Y) {
|
|
@@ -388,17 +388,17 @@ var F, si = function(e) {
|
|
|
388
388
|
var A;
|
|
389
389
|
u ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || re ? r(l, "Invalid number") : A = parseInt(o, 8) : A = parseInt(o, 10), s(He, A);
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function P(o) {
|
|
392
392
|
return o = D(16, o), o === null && r(z, "Bad character escape sequence"), o;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function _() {
|
|
395
395
|
Ne = !1;
|
|
396
396
|
for (var o, l = !0, u = d; ; ) {
|
|
397
397
|
var h = S.charCodeAt(d);
|
|
398
398
|
if (t(h))
|
|
399
399
|
Ne && (o += S.charAt(d)), ++d;
|
|
400
400
|
else if (h === 92) {
|
|
401
|
-
Ne || (o = S.slice(u, d)), Ne = !0, S.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h =
|
|
401
|
+
Ne || (o = S.slice(u, d)), Ne = !0, S.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = P(4);
|
|
402
402
|
var A = String.fromCharCode(h);
|
|
403
403
|
A || r(d - 1, "Invalid Unicode escape"), (l ? n(h) : t(h)) || r(d - 4, "Invalid Unicode escape"), o += A;
|
|
404
404
|
} else
|
|
@@ -407,14 +407,14 @@ var F, si = function(e) {
|
|
|
407
407
|
}
|
|
408
408
|
return Ne ? o : S.slice(u, d);
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
var o =
|
|
410
|
+
function O() {
|
|
411
|
+
var o = _(), l = Oe;
|
|
412
412
|
!Ne && Dr(o) && (l = Ir[o]), s(l, o);
|
|
413
413
|
}
|
|
414
414
|
function v() {
|
|
415
415
|
Pt = z, Se = Re, Nt = Ot, b();
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function U(o) {
|
|
418
418
|
if (re = o, d = z, R.C)
|
|
419
419
|
for (; d < fe; )
|
|
420
420
|
fe = S.lastIndexOf(`
|
|
@@ -427,7 +427,7 @@ var F, si = function(e) {
|
|
|
427
427
|
function oe() {
|
|
428
428
|
this.start = Rt, this.end = null, jt && (this.source = jt);
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function $() {
|
|
431
431
|
var o = new G();
|
|
432
432
|
return R.C && (o.X = new oe()), R.vb && (o.sourceFile = R.vb), R.Xa && (o.j = [z, 0]), o;
|
|
433
433
|
}
|
|
@@ -448,26 +448,26 @@ var F, si = function(e) {
|
|
|
448
448
|
return !R.fc && (T === Bt || T === Pe || ht.test(S.slice(Se, z)));
|
|
449
449
|
}
|
|
450
450
|
function I() {
|
|
451
|
-
L(pe) || Ie() ||
|
|
451
|
+
L(pe) || Ie() || B();
|
|
452
452
|
}
|
|
453
453
|
function x(o) {
|
|
454
|
-
T === o ? v() :
|
|
454
|
+
T === o ? v() : B();
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function B() {
|
|
457
457
|
r(z, "Unexpected token");
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function W(o) {
|
|
460
460
|
o.type !== "Identifier" && o.type !== "MemberExpression" && r(o.start, "Assigning to rvalue"), re && o.type === "Identifier" && ft(o.name) && r(o.start, "Assigning to " + o.name + " in strict mode");
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
(T ===
|
|
464
|
-
var o = T, l =
|
|
462
|
+
function M() {
|
|
463
|
+
(T === Un || T === Ae && ae === "/=") && b(!0);
|
|
464
|
+
var o = T, l = $();
|
|
465
465
|
switch (o) {
|
|
466
466
|
case Mt:
|
|
467
467
|
case xn:
|
|
468
468
|
v();
|
|
469
469
|
var u = o === Mt;
|
|
470
|
-
L(pe) || Ie() ? l.label = null : T !== Oe ?
|
|
470
|
+
L(pe) || Ie() ? l.label = null : T !== Oe ? B() : (l.label = de(), I());
|
|
471
471
|
for (var h = 0; h < H.length; ++h) {
|
|
472
472
|
var A = H[h];
|
|
473
473
|
if ((l.label === null || A.name === l.label.name) && (A.kind !== null && (u || A.kind === "loop") || l.label && u))
|
|
@@ -477,29 +477,29 @@ var F, si = function(e) {
|
|
|
477
477
|
case Sn:
|
|
478
478
|
return v(), I(), E(l, "DebuggerStatement");
|
|
479
479
|
case Cn:
|
|
480
|
-
return v(), H.push($t), l.body =
|
|
480
|
+
return v(), H.push($t), l.body = M(), H.pop(), x(Lt), l.test = J(), I(), E(l, "DoWhileStatement");
|
|
481
481
|
case In:
|
|
482
|
-
return v(), H.push($t), x(he), T === pe ? ce(l, null) : T ===
|
|
482
|
+
return v(), H.push($t), x(he), T === pe ? ce(l, null) : T === Ut ? (o = $(), v(), gn(o, !0), E(o, "VariableDeclaration"), o.fa.length === 1 && L(dt) ? lt(l, o) : ce(l, o)) : (o = Z(!1, !0), L(dt) ? (W(o), lt(l, o)) : ce(l, o));
|
|
483
483
|
case Dt:
|
|
484
484
|
return v(), Tt(l, !0);
|
|
485
485
|
case Tn:
|
|
486
|
-
return v(), l.test = J(), l.da =
|
|
486
|
+
return v(), l.test = J(), l.da = M(), l.alternate = L(wn) ? M() : null, E(l, "IfStatement");
|
|
487
487
|
case An:
|
|
488
488
|
return $e || R.Ib || r(z, "'return' outside of function"), v(), L(pe) || Ie() ? l.K = null : (l.K = Z(), I()), E(l, "ReturnStatement");
|
|
489
|
-
case
|
|
489
|
+
case Wt:
|
|
490
490
|
for (v(), l.Qb = J(), l.tb = [], x(Ke), H.push(Lr); T !== Pe; )
|
|
491
|
-
T === Ft || T === kn ? (o = T === Ft, h && E(h, "SwitchCase"), l.tb.push(h =
|
|
491
|
+
T === Ft || T === kn ? (o = T === Ft, h && E(h, "SwitchCase"), l.tb.push(h = $()), h.da = [], v(), o ? h.test = Z() : (u && r(Pt, "Multiple default clauses"), u = !0, h.test = null), x(Ge)) : (h || B(), h.da.push(M()));
|
|
492
492
|
return h && E(h, "SwitchCase"), v(), H.pop(), E(l, "SwitchStatement");
|
|
493
493
|
case jn:
|
|
494
494
|
return v(), ht.test(S.slice(Se, z)) && r(Se, "Illegal newline after throw"), l.K = Z(), I(), E(l, "ThrowStatement");
|
|
495
495
|
case Rn:
|
|
496
|
-
return v(), l.block = le(), l.Ea = null, T === bn && (o =
|
|
497
|
-
case
|
|
496
|
+
return v(), l.block = le(), l.Ea = null, T === bn && (o = $(), v(), x(he), o.Ua = de(), re && ft(o.Ua.name) && r(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), x(ue), o.body = le(), l.Ea = E(o, "CatchClause")), l.fb = L(En) ? le() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
497
|
+
case Ut:
|
|
498
498
|
return v(), gn(l), I(), E(l, "VariableDeclaration");
|
|
499
499
|
case Lt:
|
|
500
|
-
return v(), l.test = J(), H.push($t), l.body =
|
|
500
|
+
return v(), l.test = J(), H.push($t), l.body = M(), H.pop(), E(l, "WhileStatement");
|
|
501
501
|
case On:
|
|
502
|
-
return re && r(z, "'with' in strict mode"), v(), l.object = J(), l.body =
|
|
502
|
+
return re && r(z, "'with' in strict mode"), v(), l.object = J(), l.body = M(), E(l, "WithStatement");
|
|
503
503
|
case Ke:
|
|
504
504
|
return le();
|
|
505
505
|
case pe:
|
|
@@ -510,8 +510,8 @@ var F, si = function(e) {
|
|
|
510
510
|
H[h].name === u && r(A.start, "Label '" + u + "' is already declared");
|
|
511
511
|
return H.push({
|
|
512
512
|
name: u,
|
|
513
|
-
kind: T.W ? "loop" : T ===
|
|
514
|
-
}), l.body =
|
|
513
|
+
kind: T.W ? "loop" : T === Wt ? "switch" : null
|
|
514
|
+
}), l.body = M(), H.pop(), l.label = A, E(l, "LabeledStatement");
|
|
515
515
|
}
|
|
516
516
|
return l.la = A, I(), E(l, "ExpressionStatement");
|
|
517
517
|
}
|
|
@@ -522,26 +522,26 @@ var F, si = function(e) {
|
|
|
522
522
|
return x(ue), o;
|
|
523
523
|
}
|
|
524
524
|
function le(o) {
|
|
525
|
-
var l =
|
|
525
|
+
var l = $(), u = !0, h = !1;
|
|
526
526
|
for (l.body = [], x(Ke); !L(Pe); ) {
|
|
527
|
-
var A =
|
|
527
|
+
var A = M();
|
|
528
528
|
if (l.body.push(A), u && o && Ee(A)) {
|
|
529
529
|
var Y = h;
|
|
530
|
-
|
|
530
|
+
U(h = !0);
|
|
531
531
|
}
|
|
532
532
|
u = !1;
|
|
533
533
|
}
|
|
534
|
-
return h && !Y &&
|
|
534
|
+
return h && !Y && U(!1), E(l, "BlockStatement");
|
|
535
535
|
}
|
|
536
536
|
function ce(o, l) {
|
|
537
|
-
return o.ua = l, x(pe), o.test = T === pe ? null : Z(), x(pe), o.update = T === ue ? null : Z(), x(ue), o.body =
|
|
537
|
+
return o.ua = l, x(pe), o.test = T === pe ? null : Z(), x(pe), o.update = T === ue ? null : Z(), x(ue), o.body = M(), H.pop(), E(o, "ForStatement");
|
|
538
538
|
}
|
|
539
539
|
function lt(o, l) {
|
|
540
|
-
return o.left = l, o.right = Z(), x(ue), o.body =
|
|
540
|
+
return o.left = l, o.right = Z(), x(ue), o.body = M(), H.pop(), E(o, "ForInStatement");
|
|
541
541
|
}
|
|
542
542
|
function gn(o, l) {
|
|
543
543
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
544
|
-
var u =
|
|
544
|
+
var u = $();
|
|
545
545
|
if (u.id = de(), re && ft(u.id.name) && r(u.id.start, "Binding " + u.id.name + " in strict mode"), u.ua = L(Ln) ? Z(!0, l) : null, o.fa.push(E(u, "VariableDeclarator")), !L(ke))
|
|
546
546
|
break;
|
|
547
547
|
}
|
|
@@ -557,11 +557,11 @@ var F, si = function(e) {
|
|
|
557
557
|
}
|
|
558
558
|
function wt(o) {
|
|
559
559
|
var l = Et(It(), -1, o);
|
|
560
|
-
if (L(
|
|
560
|
+
if (L(Wn)) {
|
|
561
561
|
var u = Q(l);
|
|
562
562
|
u.test = l, u.da = Z(!0), x(Ge), u.alternate = Z(!0, o), l = E(u, "ConditionalExpression");
|
|
563
563
|
}
|
|
564
|
-
return T.Cb ? (u = Q(l), u.operator = ae, u.left = l, v(), u.right = wt(o),
|
|
564
|
+
return T.Cb ? (u = Q(l), u.operator = ae, u.left = l, v(), u.right = wt(o), W(l), E(u, "AssignmentExpression")) : l;
|
|
565
565
|
}
|
|
566
566
|
function Et(o, l, u) {
|
|
567
567
|
var h = T.L;
|
|
@@ -573,11 +573,11 @@ var F, si = function(e) {
|
|
|
573
573
|
}
|
|
574
574
|
function It() {
|
|
575
575
|
if (T.prefix) {
|
|
576
|
-
var o =
|
|
577
|
-
return o.operator = ae, _e = o.prefix = !0, v(), o.K = It(), l ?
|
|
576
|
+
var o = $(), l = T.$b;
|
|
577
|
+
return o.operator = ae, _e = o.prefix = !0, v(), o.K = It(), l ? W(o.K) : re && o.operator === "delete" && o.K.type === "Identifier" && r(o.start, "Deleting local variable in strict mode"), E(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
578
578
|
}
|
|
579
579
|
for (l = Ve(ct()); T.cc && !Ie(); )
|
|
580
|
-
o = Q(l), o.operator = ae, o.prefix = !1, o.K = l,
|
|
580
|
+
o = Q(l), o.operator = ae, o.prefix = !1, o.K = l, W(l), v(), l = E(o, "UpdateExpression");
|
|
581
581
|
return l;
|
|
582
582
|
}
|
|
583
583
|
function Ve(o, l) {
|
|
@@ -590,18 +590,18 @@ var F, si = function(e) {
|
|
|
590
590
|
function ct() {
|
|
591
591
|
switch (T) {
|
|
592
592
|
case Nn:
|
|
593
|
-
var o =
|
|
593
|
+
var o = $();
|
|
594
594
|
return v(), E(o, "ThisExpression");
|
|
595
595
|
case Oe:
|
|
596
596
|
return de();
|
|
597
597
|
case He:
|
|
598
598
|
case ut:
|
|
599
599
|
case vn:
|
|
600
|
-
return o =
|
|
600
|
+
return o = $(), o.value = ae, o.raw = S.slice(z, Re), v(), E(o, "Literal");
|
|
601
601
|
case Bn:
|
|
602
602
|
case Mn:
|
|
603
603
|
case Fn:
|
|
604
|
-
return o =
|
|
604
|
+
return o = $(), o.value = T.$a, o.raw = T.l, v(), E(o, "Literal");
|
|
605
605
|
case he:
|
|
606
606
|
o = Rt;
|
|
607
607
|
var l = z;
|
|
@@ -609,9 +609,9 @@ var F, si = function(e) {
|
|
|
609
609
|
var u = Z();
|
|
610
610
|
return u.start = l, u.end = Re, R.C && (u.X.start = o, u.X.end = Ot), R.Xa && (u.j = [l, Re]), x(ue), u;
|
|
611
611
|
case Vt:
|
|
612
|
-
return o =
|
|
612
|
+
return o = $(), v(), o.elements = At(_t, !0, !0), E(o, "ArrayExpression");
|
|
613
613
|
case Ke:
|
|
614
|
-
for (o =
|
|
614
|
+
for (o = $(), l = !0, u = !1, o.h = [], v(); !L(Pe); ) {
|
|
615
615
|
if (l)
|
|
616
616
|
l = !1;
|
|
617
617
|
else if (x(ke), R.sb && L(Pe))
|
|
@@ -623,7 +623,7 @@ var F, si = function(e) {
|
|
|
623
623
|
h.value = Z(!0);
|
|
624
624
|
var Y = h.kind = "init";
|
|
625
625
|
} else
|
|
626
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ?
|
|
626
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? B() : (A = u = !0, Y = h.kind = h.key.name, h.key = T === He || T === ut ? ct() : de(!0), T !== he && B(), h.value = Tt($(), !1));
|
|
627
627
|
if (h.key.type === "Identifier" && (re || u))
|
|
628
628
|
for (var ee = 0; ee < o.h.length; ++ee) {
|
|
629
629
|
var Be = o.h[ee];
|
|
@@ -636,14 +636,14 @@ var F, si = function(e) {
|
|
|
636
636
|
}
|
|
637
637
|
return E(o, "ObjectExpression");
|
|
638
638
|
case Dt:
|
|
639
|
-
return o =
|
|
639
|
+
return o = $(), v(), Tt(o, !1);
|
|
640
640
|
case Pn:
|
|
641
|
-
return o =
|
|
641
|
+
return o = $(), v(), o.callee = Ve(ct(), !0), o.arguments = L(he) ? At(ue, !1) : Er, E(o, "NewExpression");
|
|
642
642
|
}
|
|
643
|
-
|
|
643
|
+
B();
|
|
644
644
|
}
|
|
645
645
|
function Tt(o, l) {
|
|
646
|
-
T === Oe ? o.id = de() : l ?
|
|
646
|
+
T === Oe ? o.id = de() : l ? B() : o.id = null, o.oa = [];
|
|
647
647
|
var u = !0;
|
|
648
648
|
for (x(he); !L(ue); )
|
|
649
649
|
u ? u = !1 : x(ke), o.oa.push(de());
|
|
@@ -668,8 +668,8 @@ var F, si = function(e) {
|
|
|
668
668
|
return h;
|
|
669
669
|
}
|
|
670
670
|
function de(o) {
|
|
671
|
-
var l =
|
|
672
|
-
return o && R.yb === "everywhere" && (o = !1), T === Oe ? (!o && (R.yb && Fr(ae) || re && Hn(ae)) && S.slice(z, Re).indexOf("\\") === -1 && r(z, "The keyword '" + ae + "' is reserved"), l.name = ae) : o && T.l ? l.name = T.l :
|
|
671
|
+
var l = $();
|
|
672
|
+
return o && R.yb === "everywhere" && (o = !1), T === Oe ? (!o && (R.yb && Fr(ae) || re && Hn(ae)) && S.slice(z, Re).indexOf("\\") === -1 && r(z, "The keyword '" + ae + "' is reserved"), l.name = ae) : o && T.l ? l.name = T.l : B(), _e = !1, v(), E(l, "Identifier");
|
|
673
673
|
}
|
|
674
674
|
e.version = "0.5.0";
|
|
675
675
|
var R, S = "", je, jt;
|
|
@@ -677,8 +677,8 @@ var F, si = function(e) {
|
|
|
677
677
|
S = String(o), je = S.length, R = l || {};
|
|
678
678
|
for (var u in yn)
|
|
679
679
|
Object.prototype.hasOwnProperty.call(R, u) || (R[u] = yn[u]);
|
|
680
|
-
for (jt = R.sourceFile, Te = 1, d = fe = 0, _e = !0, f(), u = R.dc, Pt = Se = d, R.C && (Nt = new a()), $e = re = !1, H = [], b(), o = u ||
|
|
681
|
-
u =
|
|
680
|
+
for (jt = R.sourceFile, Te = 1, d = fe = 0, _e = !0, f(), u = R.dc, Pt = Se = d, R.C && (Nt = new a()), $e = re = !1, H = [], b(), o = u || $(), l = !0, u || (o.body = []); T !== Bt; )
|
|
681
|
+
u = M(), o.body.push(u), l && Ee(u) && U(!0), l = !1;
|
|
682
682
|
return E(o, "Program");
|
|
683
683
|
};
|
|
684
684
|
var yn = {
|
|
@@ -733,14 +733,14 @@ var F, si = function(e) {
|
|
|
733
733
|
}, An = {
|
|
734
734
|
l: "return",
|
|
735
735
|
m: !0
|
|
736
|
-
},
|
|
736
|
+
}, Wt = {
|
|
737
737
|
l: "switch"
|
|
738
738
|
}, jn = {
|
|
739
739
|
l: "throw",
|
|
740
740
|
m: !0
|
|
741
741
|
}, Rn = {
|
|
742
742
|
l: "try"
|
|
743
|
-
},
|
|
743
|
+
}, Ut = {
|
|
744
744
|
l: "var"
|
|
745
745
|
}, Lt = {
|
|
746
746
|
l: "while",
|
|
@@ -779,10 +779,10 @@ var F, si = function(e) {
|
|
|
779
779
|
function: Dt,
|
|
780
780
|
if: Tn,
|
|
781
781
|
return: An,
|
|
782
|
-
switch:
|
|
782
|
+
switch: Wt,
|
|
783
783
|
throw: jn,
|
|
784
784
|
try: Rn,
|
|
785
|
-
var:
|
|
785
|
+
var: Ut,
|
|
786
786
|
while: Lt,
|
|
787
787
|
with: On,
|
|
788
788
|
null: Bn,
|
|
@@ -837,10 +837,10 @@ var F, si = function(e) {
|
|
|
837
837
|
m: !0
|
|
838
838
|
}, Dn = {
|
|
839
839
|
type: "."
|
|
840
|
-
},
|
|
840
|
+
}, Wn = {
|
|
841
841
|
type: "?",
|
|
842
842
|
m: !0
|
|
843
|
-
},
|
|
843
|
+
}, Un = {
|
|
844
844
|
L: 10,
|
|
845
845
|
m: !0
|
|
846
846
|
}, Ln = {
|
|
@@ -887,7 +887,7 @@ var F, si = function(e) {
|
|
|
887
887
|
}, Mr = {
|
|
888
888
|
L: 10,
|
|
889
889
|
m: !0
|
|
890
|
-
}, Fr = i("class enum extends super const export import"), Hn = i("implements interface let package private protected public static yield"), ft = i("eval arguments"), Dr = i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"),
|
|
890
|
+
}, Fr = i("class enum extends super const export import"), Hn = i("implements interface let package private protected public static yield"), ft = i("eval arguments"), Dr = i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Wr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Kn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Ur = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ht = /[\n\r\u2028\u2029]/, pt = /\r\n|[\n\r\u2028\u2029]/g, Ne, $t = {
|
|
891
891
|
kind: "loop"
|
|
892
892
|
}, Lr = {
|
|
893
893
|
kind: "switch"
|
|
@@ -895,7 +895,7 @@ var F, si = function(e) {
|
|
|
895
895
|
}, Yt = Yt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
896
896
|
si(Yt.j || (Yt.j = {}));
|
|
897
897
|
function p(e, t) {
|
|
898
|
-
typeof e == "string" && (e =
|
|
898
|
+
typeof e == "string" && (e = We(e, "code"));
|
|
899
899
|
var n = e.constructor;
|
|
900
900
|
this.ya = function() {
|
|
901
901
|
return new n({
|
|
@@ -909,13 +909,13 @@ function p(e, t) {
|
|
|
909
909
|
var a, s;
|
|
910
910
|
for (s in this)
|
|
911
911
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
912
|
-
this.N = Jt(this, this.ra, null), this.Na = this.N.object, this.ra =
|
|
912
|
+
this.N = Jt(this, this.ra, null), this.Na = this.N.object, this.ra = We(this.ba.join(`
|
|
913
913
|
`), "polyfills"), this.ba = void 0, xt(this.ra), a = new C(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = r, a = new C(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
914
914
|
}
|
|
915
915
|
var Yn = {
|
|
916
916
|
C: !0,
|
|
917
917
|
kc: 5
|
|
918
|
-
},
|
|
918
|
+
}, en = {
|
|
919
919
|
configurable: !0,
|
|
920
920
|
enumerable: !0,
|
|
921
921
|
writable: !1
|
|
@@ -944,7 +944,7 @@ var Yn = {
|
|
|
944
944
|
}, Me = {
|
|
945
945
|
REGEXP_TIMEOUT: !0
|
|
946
946
|
}, Jn = [], ve = null, Ze = null, we = typeof globalThis == "undefined" ? void 0 : globalThis, li = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
|
|
947
|
-
function
|
|
947
|
+
function tn(e) {
|
|
948
948
|
var t = e >>> 0;
|
|
949
949
|
return t === Number(e) ? t : NaN;
|
|
950
950
|
}
|
|
@@ -968,7 +968,7 @@ F.P = !1;
|
|
|
968
968
|
F.Ka = !1;
|
|
969
969
|
F.Kb = 0;
|
|
970
970
|
F.ic = 0;
|
|
971
|
-
function
|
|
971
|
+
function We(e, t) {
|
|
972
972
|
var n = {}, r;
|
|
973
973
|
for (r in Yn)
|
|
974
974
|
n[r] = Yn[r];
|
|
@@ -978,7 +978,7 @@ F.Jb = function(e) {
|
|
|
978
978
|
var t = this.o[0];
|
|
979
979
|
if (!t || t.node.type !== "Program")
|
|
980
980
|
throw Error("Expecting original AST to start with a Program node");
|
|
981
|
-
if (typeof e == "string" && (e =
|
|
981
|
+
if (typeof e == "string" && (e = We(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
982
982
|
throw Error("Expecting new AST to start with a Program node");
|
|
983
983
|
nt(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
984
984
|
};
|
|
@@ -1026,7 +1026,7 @@ F.Eb = function() {
|
|
|
1026
1026
|
return this.za;
|
|
1027
1027
|
};
|
|
1028
1028
|
function ci(e, t) {
|
|
1029
|
-
e.g(t, "NaN", NaN, ze), e.g(t, "Infinity", 1 / 0, ze), e.g(t, "undefined", void 0, ze), e.g(t, "window", t,
|
|
1029
|
+
e.g(t, "NaN", NaN, ze), e.g(t, "Infinity", 1 / 0, ze), e.g(t, "undefined", void 0, ze), e.g(t, "window", t, en), e.g(t, "this", t, ze), e.g(t, "self", t), e.M = new N(null), e.Z = new N(e.M), ui(e, t), di(e, t), t.xa = e.M, e.g(t, "constructor", e.v, k), fi(e, t), hi(e, t), pi(e, t), mi(e, t), gi(e, t), yi(e, t), vi(e, t), bi(e, t), xi(e, t);
|
|
1030
1030
|
var n = e.i(function() {
|
|
1031
1031
|
throw EvalError("Can't happen");
|
|
1032
1032
|
}, !1);
|
|
@@ -1064,16 +1064,16 @@ function ui(e, t) {
|
|
|
1064
1064
|
s = s.join(", ");
|
|
1065
1065
|
}
|
|
1066
1066
|
try {
|
|
1067
|
-
var g =
|
|
1067
|
+
var g = We("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1068
1068
|
} catch (b) {
|
|
1069
1069
|
w(e, e.T, "Invalid code: " + b.message);
|
|
1070
1070
|
}
|
|
1071
|
-
return g.body.length !== 1 && w(e, e.T, "Invalid code in function body"),
|
|
1071
|
+
return g.body.length !== 1 && w(e, e.T, "Invalid code in function body"), on(e, g.body[0].la, e.N, "anonymous");
|
|
1072
1072
|
};
|
|
1073
1073
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, k), e.g(e.O, "prototype", e.Z, k), e.g(e.Z, "constructor", e.O, k), e.Z.Ta = function() {
|
|
1074
1074
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ne), e.Z.H = "Function", r = function(i, a) {
|
|
1075
1075
|
var s = e.o[e.o.length - 1];
|
|
1076
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof
|
|
1076
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof N ? s.F = hr(e, a) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1077
1077
|
}, X(e, e.O, "apply", r), r = function(i) {
|
|
1078
1078
|
var a = e.o[e.o.length - 1];
|
|
1079
1079
|
a.U = this, a.B = i, a.F = [];
|
|
@@ -1093,22 +1093,22 @@ function di(e, t) {
|
|
|
1093
1093
|
var r = function(i) {
|
|
1094
1094
|
if (i == null)
|
|
1095
1095
|
return xe(e) ? this : e.s(e.M);
|
|
1096
|
-
if (!(i instanceof
|
|
1096
|
+
if (!(i instanceof N)) {
|
|
1097
1097
|
var a = e.s(be(e, i));
|
|
1098
1098
|
return a.data = i, a;
|
|
1099
1099
|
}
|
|
1100
1100
|
return i;
|
|
1101
1101
|
};
|
|
1102
1102
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, k), e.g(e.M, "constructor", e.v, k), e.g(t, "Object", e.v, k), r = function(i) {
|
|
1103
|
-
return n(i), ge(e, Object.getOwnPropertyNames(i instanceof
|
|
1103
|
+
return n(i), ge(e, Object.getOwnPropertyNames(i instanceof N ? i.h : i));
|
|
1104
1104
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), k), r = function(i) {
|
|
1105
|
-
return n(i), i instanceof
|
|
1105
|
+
return n(i), i instanceof N && (i = i.h), ge(e, Object.keys(i));
|
|
1106
1106
|
}, e.g(e.v, "keys", e.i(r, !1), k), r = function(i) {
|
|
1107
|
-
return i === null ? e.s(null) : (i instanceof
|
|
1107
|
+
return i === null ? e.s(null) : (i instanceof N || w(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1108
1108
|
}, e.g(e.v, "create", e.i(r, !1), k), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(i, a, s) {
|
|
1109
|
-
return a = String(a), i instanceof
|
|
1109
|
+
return a = String(a), i instanceof N || w(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof N || w(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || w(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a, tt, s.h), i;
|
|
1110
1110
|
}, e.g(e.v, "defineProperty", e.i(r, !1), k), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(i, a) {
|
|
1111
|
-
if (i instanceof
|
|
1111
|
+
if (i instanceof N || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1112
1112
|
var s = Object.getOwnPropertyDescriptor(i.h, a), c = i.V[a];
|
|
1113
1113
|
return i = i.Y[a], a = e.s(e.M), c || i ? (e.g(a, "get", c), e.g(a, "set", i)) : (e.g(a, "value", s.value), e.g(a, "writable", s.writable)), e.g(a, "configurable", s.configurable), e.g(a, "enumerable", s.enumerable), a;
|
|
1114
1114
|
}
|
|
@@ -1117,11 +1117,11 @@ function di(e, t) {
|
|
|
1117
1117
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), k), r = function(i) {
|
|
1118
1118
|
return !!i && !i.preventExtensions;
|
|
1119
1119
|
}, e.g(e.v, "isExtensible", e.i(r, !1), k), r = function(i) {
|
|
1120
|
-
return i instanceof
|
|
1121
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), k), X(e, e.v, "toString",
|
|
1122
|
-
return n(this), this instanceof
|
|
1120
|
+
return i instanceof N && (i.preventExtensions = !0), i;
|
|
1121
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), k), X(e, e.v, "toString", N.prototype.toString), X(e, e.v, "toLocaleString", N.prototype.toString), X(e, e.v, "valueOf", N.prototype.valueOf), r = function(i) {
|
|
1122
|
+
return n(this), this instanceof N ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1123
1123
|
}, X(e, e.v, "hasOwnProperty", r), r = function(i) {
|
|
1124
|
-
return n(this), this instanceof
|
|
1124
|
+
return n(this), this instanceof N ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1125
1125
|
}, X(e, e.v, "propertyIsEnumerable", r), r = function(i) {
|
|
1126
1126
|
for (; ; ) {
|
|
1127
1127
|
if (i = be(e, i), !i)
|
|
@@ -1133,9 +1133,9 @@ function di(e, t) {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
function fi(e, t) {
|
|
1135
1135
|
var n = function(r) {
|
|
1136
|
-
var i = xe(e) ? this :
|
|
1136
|
+
var i = xe(e) ? this : Ue(e), a = arguments[0];
|
|
1137
1137
|
if (arguments.length === 1 && typeof a == "number")
|
|
1138
|
-
isNaN(
|
|
1138
|
+
isNaN(tn(a)) && w(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1139
1139
|
else {
|
|
1140
1140
|
for (a = 0; a < arguments.length; a++)
|
|
1141
1141
|
i.h[a] = arguments[a];
|
|
@@ -1312,7 +1312,7 @@ function yi(e, t) {
|
|
|
1312
1312
|
} catch (c) {
|
|
1313
1313
|
w(e, e.T, c.message);
|
|
1314
1314
|
}
|
|
1315
|
-
return
|
|
1315
|
+
return nn(e, a, s), a;
|
|
1316
1316
|
};
|
|
1317
1317
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, k), e.g(e.I.h.prototype, "global", void 0, ne), e.g(e.I.h.prototype, "ignoreCase", void 0, ne), e.g(e.I.h.prototype, "multiline", void 0, ne), e.g(e.I.h.prototype, "source", "(?:)", ne), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, i) {
|
|
1318
1318
|
function a(b) {
|
|
@@ -1394,7 +1394,7 @@ function q(e, t, n) {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
return !1;
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function nn(e, t, n) {
|
|
1398
1398
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, k), e.g(t, "source", n.source, ne), e.g(t, "global", n.global, ne), e.g(t, "ignoreCase", n.ignoreCase, ne), e.g(t, "multiline", n.multiline, ne);
|
|
1399
1399
|
}
|
|
1400
1400
|
function Xt(e, t, n) {
|
|
@@ -1466,9 +1466,9 @@ F.Aa = function(e) {
|
|
|
1466
1466
|
F.s = function(e) {
|
|
1467
1467
|
if (typeof e != "object")
|
|
1468
1468
|
throw Error("Non object prototype");
|
|
1469
|
-
return e = new
|
|
1469
|
+
return e = new N(e), q(this, e, this.D) && (e.H = "Error"), e;
|
|
1470
1470
|
};
|
|
1471
|
-
function
|
|
1471
|
+
function Ue(e) {
|
|
1472
1472
|
var t = e.s(e.La);
|
|
1473
1473
|
return e.g(t, "length", 0, {
|
|
1474
1474
|
configurable: !1,
|
|
@@ -1476,29 +1476,29 @@ function We(e) {
|
|
|
1476
1476
|
writable: !0
|
|
1477
1477
|
}), t.H = "Array", t;
|
|
1478
1478
|
}
|
|
1479
|
-
function
|
|
1479
|
+
function rn(e, t, n) {
|
|
1480
1480
|
var r = e.s(e.Z);
|
|
1481
1481
|
return n ? (n = e.s(e.M), e.g(r, "prototype", n, k), e.g(n, "constructor", r, k)) : r.Ab = !0, e.g(r, "length", t, ne), r.H = "Function", r;
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1484
|
-
var i =
|
|
1483
|
+
function on(e, t, n, r) {
|
|
1484
|
+
var i = rn(e, t.oa.length, !0);
|
|
1485
1485
|
return i.Va = n, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : r || "", ne), i;
|
|
1486
1486
|
}
|
|
1487
1487
|
F.i = function(e, t) {
|
|
1488
|
-
return t =
|
|
1488
|
+
return t = rn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, ne), t;
|
|
1489
1489
|
};
|
|
1490
1490
|
F.ub = function(e) {
|
|
1491
|
-
var t =
|
|
1491
|
+
var t = rn(this, e.length, !0);
|
|
1492
1492
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, ne), t;
|
|
1493
1493
|
};
|
|
1494
1494
|
F.Ia = function(e) {
|
|
1495
|
-
if (e instanceof
|
|
1495
|
+
if (e instanceof N)
|
|
1496
1496
|
throw Error("Object is already pseudo");
|
|
1497
1497
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1498
1498
|
return e;
|
|
1499
1499
|
if (e instanceof RegExp) {
|
|
1500
1500
|
var t = this.s(this.Ma);
|
|
1501
|
-
return
|
|
1501
|
+
return nn(this, t, e), t;
|
|
1502
1502
|
}
|
|
1503
1503
|
if (e instanceof Date)
|
|
1504
1504
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1512,7 +1512,7 @@ F.Ia = function(e) {
|
|
|
1512
1512
|
}, !!t);
|
|
1513
1513
|
}
|
|
1514
1514
|
if (Array.isArray(e)) {
|
|
1515
|
-
t =
|
|
1515
|
+
t = Ue(this);
|
|
1516
1516
|
for (var r = 0; r < e.length; r++)
|
|
1517
1517
|
r in e && this.g(t, r, this.Ia(e[r]));
|
|
1518
1518
|
return t;
|
|
@@ -1525,7 +1525,7 @@ F.Ia = function(e) {
|
|
|
1525
1525
|
F.R = function(e, t) {
|
|
1526
1526
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1527
1527
|
return e;
|
|
1528
|
-
if (!(e instanceof
|
|
1528
|
+
if (!(e instanceof N))
|
|
1529
1529
|
throw Error("Object is not pseudo");
|
|
1530
1530
|
if (q(this, e, this.I))
|
|
1531
1531
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
@@ -1553,7 +1553,7 @@ F.R = function(e, t) {
|
|
|
1553
1553
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1554
1554
|
};
|
|
1555
1555
|
function ge(e, t) {
|
|
1556
|
-
for (var n =
|
|
1556
|
+
for (var n = Ue(e), r = Object.getOwnPropertyNames(t), i = 0; i < r.length; i++)
|
|
1557
1557
|
e.g(n, r[i], t[r[i]]);
|
|
1558
1558
|
return n;
|
|
1559
1559
|
}
|
|
@@ -1561,7 +1561,7 @@ function hr(e, t) {
|
|
|
1561
1561
|
var n = [], r;
|
|
1562
1562
|
for (r in t.h)
|
|
1563
1563
|
n[r] = e.G(t, r);
|
|
1564
|
-
return n.length =
|
|
1564
|
+
return n.length = tn(e.G(t, "length")) || 0, n;
|
|
1565
1565
|
}
|
|
1566
1566
|
function be(e, t) {
|
|
1567
1567
|
switch (typeof t) {
|
|
@@ -1577,7 +1577,7 @@ function be(e, t) {
|
|
|
1577
1577
|
F.G = function(e, t) {
|
|
1578
1578
|
if (this.P)
|
|
1579
1579
|
throw Error("Getter not supported in that context");
|
|
1580
|
-
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof
|
|
1580
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof N))
|
|
1581
1581
|
throw TypeError("Expecting native value or pseudo object");
|
|
1582
1582
|
if (t === "length") {
|
|
1583
1583
|
if (q(this, e, this.J))
|
|
@@ -1593,7 +1593,7 @@ F.G = function(e, t) {
|
|
|
1593
1593
|
while (e = be(this, e));
|
|
1594
1594
|
};
|
|
1595
1595
|
function St(e, t, n) {
|
|
1596
|
-
if (!(t instanceof
|
|
1596
|
+
if (!(t instanceof N))
|
|
1597
1597
|
throw TypeError("Primitive data type has no properties");
|
|
1598
1598
|
if (n = String(n), n === "length" && q(e, t, e.J))
|
|
1599
1599
|
return !0;
|
|
@@ -1611,11 +1611,11 @@ function St(e, t, n) {
|
|
|
1611
1611
|
F.g = function(e, t, n, r) {
|
|
1612
1612
|
if (this.Ka)
|
|
1613
1613
|
throw Error("Setter not supported in that context");
|
|
1614
|
-
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof
|
|
1614
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof N))
|
|
1615
1615
|
throw TypeError("Expecting native value or pseudo object");
|
|
1616
1616
|
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && w(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1617
|
-
var i = !this.o ||
|
|
1618
|
-
if (e instanceof
|
|
1617
|
+
var i = !this.o || an(this).S;
|
|
1618
|
+
if (e instanceof N) {
|
|
1619
1619
|
if (q(this, e, this.J)) {
|
|
1620
1620
|
var a = Qe(t);
|
|
1621
1621
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
@@ -1630,7 +1630,7 @@ F.g = function(e, t, n, r) {
|
|
|
1630
1630
|
return;
|
|
1631
1631
|
n = r.value;
|
|
1632
1632
|
}
|
|
1633
|
-
if (n =
|
|
1633
|
+
if (n = tn(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < a)
|
|
1634
1634
|
for (s in e.h) {
|
|
1635
1635
|
var s = Qe(s);
|
|
1636
1636
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
@@ -1682,7 +1682,7 @@ function X(e, t, n, r) {
|
|
|
1682
1682
|
function qe(e, t, n, r) {
|
|
1683
1683
|
e.g(t.h.prototype, n, e.ub(r), k);
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1685
|
+
function an(e) {
|
|
1686
1686
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1687
1687
|
throw Error("No scope found");
|
|
1688
1688
|
return e;
|
|
@@ -1697,13 +1697,13 @@ function Jt(e, t, n) {
|
|
|
1697
1697
|
}
|
|
1698
1698
|
return i = e.s(null), r = new gr(n, r, i), n || ci(e, r.object), nt(e, t, r), r;
|
|
1699
1699
|
}
|
|
1700
|
-
function
|
|
1700
|
+
function sn(e, t, n) {
|
|
1701
1701
|
if (!t)
|
|
1702
1702
|
throw Error("parentScope required");
|
|
1703
1703
|
return e = n || e.s(null), new gr(t, t.S, e);
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1706
|
-
for (var n =
|
|
1705
|
+
function ln(e, t) {
|
|
1706
|
+
for (var n = an(e); n && n !== e.N; ) {
|
|
1707
1707
|
if (t in n.object.h)
|
|
1708
1708
|
return n.object.h[t];
|
|
1709
1709
|
n = n.Va;
|
|
@@ -1713,7 +1713,7 @@ function cn(e, t) {
|
|
|
1713
1713
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1714
1714
|
}
|
|
1715
1715
|
function pr(e, t, n) {
|
|
1716
|
-
for (var r =
|
|
1716
|
+
for (var r = an(e), i = r.S; r && r !== e.N; ) {
|
|
1717
1717
|
if (t in r.object.h) {
|
|
1718
1718
|
try {
|
|
1719
1719
|
r.object.h[t] = n;
|
|
@@ -1774,20 +1774,20 @@ function nt(e, t, n) {
|
|
|
1774
1774
|
t.jb = r;
|
|
1775
1775
|
}
|
|
1776
1776
|
for (s in r)
|
|
1777
|
-
r[s] === !0 ? e.g(n.object, s, void 0, Xn) : e.g(n.object, s,
|
|
1777
|
+
r[s] === !0 ? e.g(n.object, s, void 0, Xn) : e.g(n.object, s, on(e, r[s], n), Xn);
|
|
1778
1778
|
return r;
|
|
1779
1779
|
}
|
|
1780
1780
|
function xe(e) {
|
|
1781
1781
|
return e.o[e.o.length - 1].isConstructor;
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1784
|
-
return t[0] === Le ?
|
|
1783
|
+
function cn(e, t) {
|
|
1784
|
+
return t[0] === Le ? ln(e, t[1]) : e.G(t[0], t[1]);
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function un(e, t, n) {
|
|
1787
1787
|
return t[0] === Le ? pr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1788
1788
|
}
|
|
1789
1789
|
function w(e, t, n) {
|
|
1790
|
-
throw e.N ? (n !== void 0 && t instanceof
|
|
1790
|
+
throw e.N ? (n !== void 0 && t instanceof N && (t = e.Aa(t), Xt(e, t, n)), at(e, 4, t), fr) : n === void 0 ? t : n;
|
|
1791
1791
|
}
|
|
1792
1792
|
function at(e, t, n, r) {
|
|
1793
1793
|
if (t === 0)
|
|
@@ -1869,12 +1869,12 @@ function qn(e, t, n) {
|
|
|
1869
1869
|
var r = e.o[e.o.length - 1], i = Array.from(n), a = i.shift();
|
|
1870
1870
|
n = Math.max(Number(i.shift() || 0), 0);
|
|
1871
1871
|
var s = e.ya();
|
|
1872
|
-
if (a instanceof
|
|
1872
|
+
if (a instanceof N && a.H === "Function") {
|
|
1873
1873
|
var c = a;
|
|
1874
1874
|
s.type = "CallExpression", r = r.scope;
|
|
1875
1875
|
} else {
|
|
1876
1876
|
try {
|
|
1877
|
-
var f =
|
|
1877
|
+
var f = We(String(a), "taskCode" + e.ic++);
|
|
1878
1878
|
} catch (g) {
|
|
1879
1879
|
w(e, e.T, "Invalid code: " + g.message);
|
|
1880
1880
|
}
|
|
@@ -1901,7 +1901,7 @@ function st(e, t, n) {
|
|
|
1901
1901
|
var r = e.ya();
|
|
1902
1902
|
return r.type = "CallExpression", e = new C(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1903
1903
|
}
|
|
1904
|
-
function
|
|
1904
|
+
function dn(e, t, n, r) {
|
|
1905
1905
|
if (!e.Ka)
|
|
1906
1906
|
throw Error("Unexpected call to createSetter");
|
|
1907
1907
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
@@ -1909,7 +1909,7 @@ function fn(e, t, n, r) {
|
|
|
1909
1909
|
return i.type = "CallExpression", e = new C(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1910
1910
|
}
|
|
1911
1911
|
function Gt(e, t) {
|
|
1912
|
-
return t == null ? e.Na : t instanceof
|
|
1912
|
+
return t == null ? e.Na : t instanceof N ? t : (e = e.s(be(e, t)), e.data = t, e);
|
|
1913
1913
|
}
|
|
1914
1914
|
F.Xb = function() {
|
|
1915
1915
|
return this.N;
|
|
@@ -1926,17 +1926,17 @@ function C(e, t) {
|
|
|
1926
1926
|
function gr(e, t, n) {
|
|
1927
1927
|
this.Va = e, this.S = t, this.object = n;
|
|
1928
1928
|
}
|
|
1929
|
-
function
|
|
1929
|
+
function N(e) {
|
|
1930
1930
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1931
1931
|
}
|
|
1932
|
-
F =
|
|
1932
|
+
F = N.prototype;
|
|
1933
1933
|
F.xa = null;
|
|
1934
1934
|
F.H = "Object";
|
|
1935
1935
|
F.data = null;
|
|
1936
1936
|
F.toString = function() {
|
|
1937
1937
|
if (!Ze)
|
|
1938
1938
|
return "[object Interpreter.Object]";
|
|
1939
|
-
if (!(this instanceof
|
|
1939
|
+
if (!(this instanceof N))
|
|
1940
1940
|
return String(this);
|
|
1941
1941
|
if (this.H === "Array") {
|
|
1942
1942
|
var e = Jn;
|
|
@@ -1946,7 +1946,7 @@ F.toString = function() {
|
|
|
1946
1946
|
1024 < n && (n = 1e3, r = !0);
|
|
1947
1947
|
for (var i = 0; i < n; i++) {
|
|
1948
1948
|
var a = this.h[i];
|
|
1949
|
-
t[i] = a instanceof
|
|
1949
|
+
t[i] = a instanceof N && e.indexOf(a) !== -1 ? "..." : a;
|
|
1950
1950
|
}
|
|
1951
1951
|
r && t.push("...");
|
|
1952
1952
|
} finally {
|
|
@@ -1991,7 +1991,7 @@ var ki = 0;
|
|
|
1991
1991
|
p.prototype.stepArrayExpression = function(e, t, n) {
|
|
1992
1992
|
n = n.elements;
|
|
1993
1993
|
var r = t.A || 0;
|
|
1994
|
-
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa =
|
|
1994
|
+
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Ue(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
1995
1995
|
if (n[r])
|
|
1996
1996
|
return t.A = r, new C(n[r], t.scope);
|
|
1997
1997
|
r++;
|
|
@@ -2002,7 +2002,7 @@ p.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2002
2002
|
if (!t.ja)
|
|
2003
2003
|
return t.ja = !0, t = new C(n.left, t.scope), t.sa = !0, t;
|
|
2004
2004
|
if (!t.Da)
|
|
2005
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e =
|
|
2005
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = cn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, st(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new C(n.right, t.scope));
|
|
2006
2006
|
if (t.ta)
|
|
2007
2007
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2008
2008
|
else {
|
|
@@ -2047,8 +2047,8 @@ p.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2047
2047
|
default:
|
|
2048
2048
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
2049
2049
|
}
|
|
2050
|
-
if (n =
|
|
2051
|
-
return t.ta = !0, t.ib = r,
|
|
2050
|
+
if (n = un(this, t.Fa, r))
|
|
2051
|
+
return t.ta = !0, t.ib = r, dn(this, n, t.Fa, r);
|
|
2052
2052
|
e.pop(), e[e.length - 1].value = r;
|
|
2053
2053
|
}
|
|
2054
2054
|
};
|
|
@@ -2118,10 +2118,10 @@ p.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2118
2118
|
n = r >>> t;
|
|
2119
2119
|
break;
|
|
2120
2120
|
case "in":
|
|
2121
|
-
t instanceof
|
|
2121
|
+
t instanceof N || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = St(this, t, r);
|
|
2122
2122
|
break;
|
|
2123
2123
|
case "instanceof":
|
|
2124
|
-
q(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof
|
|
2124
|
+
q(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof N ? q(this, r, t) : !1;
|
|
2125
2125
|
break;
|
|
2126
2126
|
default:
|
|
2127
2127
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2148,7 +2148,7 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2148
2148
|
t.ia = 2;
|
|
2149
2149
|
var i = t.value;
|
|
2150
2150
|
if (Array.isArray(i)) {
|
|
2151
|
-
if (t.U =
|
|
2151
|
+
if (t.U = cn(this, i), i[0] === Le ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2152
2152
|
return t.ia = 1, st(this, i, t.value);
|
|
2153
2153
|
} else
|
|
2154
2154
|
t.U = i;
|
|
@@ -2158,8 +2158,8 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2158
2158
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2159
2159
|
return new C(n.arguments[t.A++], t.scope);
|
|
2160
2160
|
if (n.type === "NewExpression") {
|
|
2161
|
-
if (i instanceof
|
|
2162
|
-
t.B =
|
|
2161
|
+
if (i instanceof N && !i.Ab || w(this, this.j, te(this, n.callee) + " is not a constructor"), i === this.qa)
|
|
2162
|
+
t.B = Ue(this);
|
|
2163
2163
|
else {
|
|
2164
2164
|
var a = i.h.prototype;
|
|
2165
2165
|
(typeof a != "object" || a === null) && (a = this.M), t.B = this.s(a);
|
|
@@ -2171,19 +2171,19 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2171
2171
|
if (t.eb)
|
|
2172
2172
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2173
2173
|
else {
|
|
2174
|
-
if (t.eb = !0, i instanceof
|
|
2175
|
-
for (n = Jt(this, e.body, i.Va), r =
|
|
2174
|
+
if (t.eb = !0, i instanceof N || w(this, this.j, te(this, n.callee) + " is not a function"), e = i.node) {
|
|
2175
|
+
for (n = Jt(this, e.body, i.Va), r = Ue(this), i = 0; i < t.F.length; i++)
|
|
2176
2176
|
this.g(r, i, t.F[i]);
|
|
2177
2177
|
for (this.g(n.object, "arguments", r), i = 0; i < e.oa.length; i++)
|
|
2178
2178
|
this.g(n.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2179
|
-
return n.S || (t.B = Gt(this, t.B)), this.g(n.object, "this", t.B,
|
|
2179
|
+
return n.S || (t.B = Gt(this, t.B)), this.g(n.object, "this", t.B, en), t.value = void 0, new C(e.body, n);
|
|
2180
2180
|
}
|
|
2181
2181
|
if (i.eval)
|
|
2182
2182
|
if (i = t.F[0], typeof i != "string")
|
|
2183
2183
|
t.value = i;
|
|
2184
2184
|
else {
|
|
2185
2185
|
try {
|
|
2186
|
-
r =
|
|
2186
|
+
r = We(String(i), "eval" + this.Hb++);
|
|
2187
2187
|
} catch (c) {
|
|
2188
2188
|
w(this, this.T, "Invalid code: " + c.message);
|
|
2189
2189
|
}
|
|
@@ -2249,7 +2249,7 @@ p.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2249
2249
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2250
2250
|
e:
|
|
2251
2251
|
for (; ; ) {
|
|
2252
|
-
if (t.u instanceof
|
|
2252
|
+
if (t.u instanceof N)
|
|
2253
2253
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2254
2254
|
var r = t.wa.shift();
|
|
2255
2255
|
if (r === void 0)
|
|
@@ -2276,8 +2276,8 @@ p.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2276
2276
|
t.pa = [Le, e.fa[0].id.name];
|
|
2277
2277
|
else
|
|
2278
2278
|
return t.pa = null, t = new C(e, t.scope), t.sa = !0, t;
|
|
2279
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r =
|
|
2280
|
-
return
|
|
2279
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = un(this, t.pa, e)))
|
|
2280
|
+
return dn(this, r, t.pa, e);
|
|
2281
2281
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2282
2282
|
return new C(n.body, t.scope);
|
|
2283
2283
|
};
|
|
@@ -2306,13 +2306,13 @@ p.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2306
2306
|
e.pop();
|
|
2307
2307
|
};
|
|
2308
2308
|
p.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2309
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e =
|
|
2309
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = sn(this, e)), t.value = on(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, en);
|
|
2310
2310
|
};
|
|
2311
2311
|
p.prototype.stepIdentifier = function(e, t, n) {
|
|
2312
2312
|
if (e.pop(), t.sa)
|
|
2313
2313
|
e[e.length - 1].value = [Le, n.name];
|
|
2314
2314
|
else {
|
|
2315
|
-
if (t =
|
|
2315
|
+
if (t = ln(this, n.name), this.P)
|
|
2316
2316
|
return st(this, t, this.Na);
|
|
2317
2317
|
e[e.length - 1].value = t;
|
|
2318
2318
|
}
|
|
@@ -2322,7 +2322,7 @@ p.prototype.stepLabeledStatement = function(e, t, n) {
|
|
|
2322
2322
|
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new C(n.body, t.scope), t.labels = e, t;
|
|
2323
2323
|
};
|
|
2324
2324
|
p.prototype.stepLiteral = function(e, t, n) {
|
|
2325
|
-
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma),
|
|
2325
|
+
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), nn(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2326
2326
|
};
|
|
2327
2327
|
p.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2328
2328
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
@@ -2425,7 +2425,7 @@ p.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2425
2425
|
}
|
|
2426
2426
|
};
|
|
2427
2427
|
p.prototype.stepThisExpression = function(e) {
|
|
2428
|
-
e.pop(), e[e.length - 1].value =
|
|
2428
|
+
e.pop(), e[e.length - 1].value = ln(this, "this");
|
|
2429
2429
|
};
|
|
2430
2430
|
p.prototype.stepThrowStatement = function(e, t, n) {
|
|
2431
2431
|
if (t.ka)
|
|
@@ -2437,7 +2437,7 @@ p.prototype.stepTryStatement = function(e, t, n) {
|
|
|
2437
2437
|
if (!t.Rb)
|
|
2438
2438
|
return t.Rb = !0, new C(n.block, t.scope);
|
|
2439
2439
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2440
|
-
return t.Tb = !0, e =
|
|
2440
|
+
return t.Tb = !0, e = sn(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new C(n.Ea.body, e);
|
|
2441
2441
|
if (!t.Sb && n.fb)
|
|
2442
2442
|
return t.Sb = !0, new C(n.fb, t.scope);
|
|
2443
2443
|
e.pop(), t.ea && at(this, t.ea.type, t.ea.value, t.ea.label);
|
|
@@ -2487,7 +2487,7 @@ p.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2487
2487
|
if (!t.ja)
|
|
2488
2488
|
return t.ja = !0, e = new C(n.K, t.scope), e.sa = !0, e;
|
|
2489
2489
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2490
|
-
var r =
|
|
2490
|
+
var r = cn(this, t.Ga);
|
|
2491
2491
|
if (t.ma = r, this.P)
|
|
2492
2492
|
return t.Ba = !0, st(this, r, t.Ga);
|
|
2493
2493
|
}
|
|
@@ -2500,8 +2500,8 @@ p.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2500
2500
|
i = r - 1;
|
|
2501
2501
|
else
|
|
2502
2502
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2503
|
-
if (n = n.prefix ? i : r, r =
|
|
2504
|
-
return t.ta = !0, t.ib = n,
|
|
2503
|
+
if (n = n.prefix ? i : r, r = un(this, t.Ga, i))
|
|
2504
|
+
return t.ta = !0, t.ib = n, dn(this, r, t.Ga, i);
|
|
2505
2505
|
e.pop(), e[e.length - 1].value = n;
|
|
2506
2506
|
}
|
|
2507
2507
|
};
|
|
@@ -2516,7 +2516,7 @@ p.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2516
2516
|
e.pop();
|
|
2517
2517
|
};
|
|
2518
2518
|
p.prototype.stepWithStatement = function(e, t, n) {
|
|
2519
|
-
return t.Ca ? (e.pop(), e =
|
|
2519
|
+
return t.Ca ? (e.pop(), e = sn(this, t.scope, t.value), new C(n.body, e)) : (t.Ca = !0, new C(n.object, t.scope));
|
|
2520
2520
|
};
|
|
2521
2521
|
p.prototype.stepWhileStatement = p.prototype.stepDoWhileStatement;
|
|
2522
2522
|
we.Interpreter = p;
|
|
@@ -2565,9 +2565,9 @@ const Ci = (e) => e.split(`
|
|
|
2565
2565
|
context: t,
|
|
2566
2566
|
event: n,
|
|
2567
2567
|
state: c
|
|
2568
|
-
}), g = f.map(([
|
|
2569
|
-
const
|
|
2570
|
-
return `var ${
|
|
2568
|
+
}), g = f.map(([_]) => {
|
|
2569
|
+
const O = Qn(_);
|
|
2570
|
+
return `var ${_} = ${O} === undefined ? undefined : JSON.parse(${O});`;
|
|
2571
2571
|
}).join(`
|
|
2572
2572
|
`), b = Ci(s);
|
|
2573
2573
|
if (b === "") {
|
|
@@ -2581,14 +2581,14 @@ function theFunction() {
|
|
|
2581
2581
|
${b}
|
|
2582
2582
|
}
|
|
2583
2583
|
theFunction();
|
|
2584
|
-
`, j = (
|
|
2585
|
-
const v = dr(c,
|
|
2584
|
+
`, j = (_, O) => {
|
|
2585
|
+
const v = dr(c, _, O);
|
|
2586
2586
|
a == null || a(v);
|
|
2587
|
-
}, D = function(
|
|
2588
|
-
f.forEach(([v,
|
|
2589
|
-
const G = JSON.stringify(
|
|
2590
|
-
|
|
2591
|
-
}),
|
|
2587
|
+
}, D = function(_, O) {
|
|
2588
|
+
f.forEach(([v, U]) => {
|
|
2589
|
+
const G = JSON.stringify(U);
|
|
2590
|
+
_.setProperty(O, Qn(v), G);
|
|
2591
|
+
}), _.setProperty(O, "setRootState", _.createNativeFunction(j));
|
|
2592
2592
|
}, V = new p(m, D);
|
|
2593
2593
|
return V.run(), V.pseudoToNative(V.value);
|
|
2594
2594
|
};
|
|
@@ -2664,6 +2664,7 @@ function rt({
|
|
|
2664
2664
|
return;
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
|
+
const fn = (e) => JSON.parse(JSON.stringify(e));
|
|
2667
2668
|
const Ai = ({
|
|
2668
2669
|
block: e,
|
|
2669
2670
|
context: t,
|
|
@@ -2673,7 +2674,7 @@ const Ai = ({
|
|
|
2673
2674
|
}) => {
|
|
2674
2675
|
if (!e.bindings)
|
|
2675
2676
|
return e;
|
|
2676
|
-
const a =
|
|
2677
|
+
const a = fn(e), s = {
|
|
2677
2678
|
...a,
|
|
2678
2679
|
properties: {
|
|
2679
2680
|
...a.properties
|
|
@@ -2851,7 +2852,7 @@ const Pi = ({
|
|
|
2851
2852
|
small: e,
|
|
2852
2853
|
medium: t
|
|
2853
2854
|
}) => {
|
|
2854
|
-
const n =
|
|
2855
|
+
const n = fn(br);
|
|
2855
2856
|
if (!e || !t)
|
|
2856
2857
|
return n;
|
|
2857
2858
|
const r = Math.floor(e / 2);
|
|
@@ -2884,7 +2885,7 @@ function kt(e) {
|
|
|
2884
2885
|
}
|
|
2885
2886
|
);
|
|
2886
2887
|
}
|
|
2887
|
-
function
|
|
2888
|
+
function Wi(e) {
|
|
2888
2889
|
const t = function() {
|
|
2889
2890
|
const i = bt({
|
|
2890
2891
|
block: e.block,
|
|
@@ -2896,7 +2897,7 @@ function Ui(e) {
|
|
|
2896
2897
|
});
|
|
2897
2898
|
return yt(i.hide) ? !i.hide : yt(i.show) ? i.show : !0;
|
|
2898
2899
|
}, n = function() {
|
|
2899
|
-
var
|
|
2900
|
+
var O, v, U;
|
|
2900
2901
|
const i = bt({
|
|
2901
2902
|
block: e.block,
|
|
2902
2903
|
localState: e.context.localState,
|
|
@@ -2905,7 +2906,7 @@ function Ui(e) {
|
|
|
2905
2906
|
context: e.context.context,
|
|
2906
2907
|
shouldEvaluateBindings: !0
|
|
2907
2908
|
}), a = i.responsiveStyles, s = e.context.content, c = xr(
|
|
2908
|
-
((
|
|
2909
|
+
((O = s == null ? void 0 : s.meta) == null ? void 0 : O.breakpoints) || {}
|
|
2909
2910
|
), f = a == null ? void 0 : a.large, g = a == null ? void 0 : a.medium, b = a == null ? void 0 : a.small, m = i.id;
|
|
2910
2911
|
if (!m)
|
|
2911
2912
|
return "";
|
|
@@ -2926,18 +2927,18 @@ function Ui(e) {
|
|
|
2926
2927
|
"small",
|
|
2927
2928
|
c
|
|
2928
2929
|
)
|
|
2929
|
-
}) : "",
|
|
2930
|
-
let
|
|
2931
|
-
if (
|
|
2932
|
-
const G = ((
|
|
2933
|
-
|
|
2930
|
+
}) : "", P = i.animations && i.animations.find((G) => G.trigger === "hover");
|
|
2931
|
+
let _ = "";
|
|
2932
|
+
if (P) {
|
|
2933
|
+
const G = ((U = (v = P.steps) == null ? void 0 : v[1]) == null ? void 0 : U.styles) || {};
|
|
2934
|
+
_ = mt({
|
|
2934
2935
|
className: `${m}:hover`,
|
|
2935
2936
|
styles: {
|
|
2936
2937
|
...G,
|
|
2937
|
-
transition: `all ${
|
|
2938
|
-
|
|
2938
|
+
transition: `all ${P.duration}s ${hn(
|
|
2939
|
+
P.easing
|
|
2939
2940
|
)}`,
|
|
2940
|
-
transitionDelay:
|
|
2941
|
+
transitionDelay: P.delay ? `${P.delay}s` : "0s"
|
|
2941
2942
|
}
|
|
2942
2943
|
}) || "";
|
|
2943
2944
|
}
|
|
@@ -2945,7 +2946,7 @@ function Ui(e) {
|
|
|
2945
2946
|
j,
|
|
2946
2947
|
D,
|
|
2947
2948
|
V,
|
|
2948
|
-
|
|
2949
|
+
_
|
|
2949
2950
|
].join(" ");
|
|
2950
2951
|
};
|
|
2951
2952
|
return /* @__PURE__ */ y(K, { children: n() && t() ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(
|
|
@@ -2957,10 +2958,10 @@ function Ui(e) {
|
|
|
2957
2958
|
}
|
|
2958
2959
|
) }) : null });
|
|
2959
2960
|
}
|
|
2960
|
-
function
|
|
2961
|
+
function Ui(e) {
|
|
2961
2962
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2962
2963
|
}
|
|
2963
|
-
const Li = (e) => `on${
|
|
2964
|
+
const Li = (e) => `on${Ui(e)}`, Vi = (e, t) => (n) => rt({
|
|
2964
2965
|
code: e,
|
|
2965
2966
|
context: t.context,
|
|
2966
2967
|
localState: t.localState,
|
|
@@ -3022,7 +3023,7 @@ function pn({
|
|
|
3022
3023
|
}
|
|
3023
3024
|
function Hi(e) {
|
|
3024
3025
|
return /* @__PURE__ */ y(
|
|
3025
|
-
|
|
3026
|
+
Qt,
|
|
3026
3027
|
{
|
|
3027
3028
|
TagName: e.Wrapper,
|
|
3028
3029
|
attributes: pn({
|
|
@@ -3157,16 +3158,16 @@ function Ct(e) {
|
|
|
3157
3158
|
var D;
|
|
3158
3159
|
return e.block.tagName === "a" || ((D = r().properties) == null ? void 0 : D.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
3159
3160
|
}, a = function() {
|
|
3160
|
-
var V,
|
|
3161
|
+
var V, P;
|
|
3161
3162
|
if ((V = e.block.repeat) != null && V.collection)
|
|
3162
|
-
return !!((
|
|
3163
|
+
return !!((P = n()) != null && P.length);
|
|
3163
3164
|
const j = "hide" in r() ? r().hide : !1;
|
|
3164
3165
|
return ("show" in r() ? r().show : !0) && !j;
|
|
3165
3166
|
}, s = function() {
|
|
3166
3167
|
var D, V;
|
|
3167
3168
|
return !((D = t()) != null && D.component) && !n() ? (V = r().children) != null ? V : [] : [];
|
|
3168
3169
|
}, c = function() {
|
|
3169
|
-
var j, D, V,
|
|
3170
|
+
var j, D, V, P;
|
|
3170
3171
|
return {
|
|
3171
3172
|
blockChildren: (j = r().children) != null ? j : [],
|
|
3172
3173
|
componentRef: (D = t()) == null ? void 0 : D.component,
|
|
@@ -3185,11 +3186,11 @@ function Ct(e) {
|
|
|
3185
3186
|
registeredComponents: e.registeredComponents,
|
|
3186
3187
|
builderBlock: r(),
|
|
3187
3188
|
includeBlockProps: ((V = t()) == null ? void 0 : V.noWrap) === !0,
|
|
3188
|
-
isInteractive: !((
|
|
3189
|
+
isInteractive: !((P = t()) != null && P.isRSC)
|
|
3189
3190
|
};
|
|
3190
3191
|
};
|
|
3191
3192
|
return /* @__PURE__ */ y(K, { children: a() ? /* @__PURE__ */ se(K, { children: [
|
|
3192
|
-
/* @__PURE__ */ y(
|
|
3193
|
+
/* @__PURE__ */ y(Wi, { block: e.block, context: e.context }),
|
|
3193
3194
|
(f = t()) != null && f.noWrap ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(
|
|
3194
3195
|
tr,
|
|
3195
3196
|
{
|
|
@@ -3327,25 +3328,25 @@ function mn(e) {
|
|
|
3327
3328
|
}
|
|
3328
3329
|
const Xi = (e) => `builder-columns ${e}-breakpoints`;
|
|
3329
3330
|
function Ji(e) {
|
|
3330
|
-
var
|
|
3331
|
+
var P, _;
|
|
3331
3332
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", i = function(v) {
|
|
3332
3333
|
return v.link ? e.builderLinkComponent || "a" : "div";
|
|
3333
3334
|
}, a = function(v) {
|
|
3334
|
-
var
|
|
3335
|
-
return ((
|
|
3335
|
+
var U;
|
|
3336
|
+
return ((U = n[v]) == null ? void 0 : U.width) || 100 / n.length;
|
|
3336
3337
|
}, s = function(v) {
|
|
3337
|
-
const
|
|
3338
|
-
return `calc(${
|
|
3338
|
+
const U = a(v), G = t * (n.length - 1) * (U / 100);
|
|
3339
|
+
return `calc(${U}% - ${G}px)`;
|
|
3339
3340
|
}, c = function({
|
|
3340
3341
|
stackedStyle: v,
|
|
3341
|
-
desktopStyle:
|
|
3342
|
+
desktopStyle: U
|
|
3342
3343
|
}) {
|
|
3343
|
-
return r === "tablet" ? v :
|
|
3344
|
+
return r === "tablet" ? v : U;
|
|
3344
3345
|
}, f = function({
|
|
3345
3346
|
stackedStyle: v,
|
|
3346
|
-
desktopStyle:
|
|
3347
|
+
desktopStyle: U
|
|
3347
3348
|
}) {
|
|
3348
|
-
return r === "never" ?
|
|
3349
|
+
return r === "never" ? U : v;
|
|
3349
3350
|
}, g = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", b = function() {
|
|
3350
3351
|
return {
|
|
3351
3352
|
"--flex-dir": g,
|
|
@@ -3355,7 +3356,7 @@ function Ji(e) {
|
|
|
3355
3356
|
})
|
|
3356
3357
|
};
|
|
3357
3358
|
}, m = function(v) {
|
|
3358
|
-
const
|
|
3359
|
+
const U = v === 0 ? 0 : t, G = s(v), oe = `${U}px`, $ = "100%", Q = 0;
|
|
3359
3360
|
return {
|
|
3360
3361
|
...{
|
|
3361
3362
|
display: "flex",
|
|
@@ -3365,7 +3366,7 @@ function Ji(e) {
|
|
|
3365
3366
|
width: G,
|
|
3366
3367
|
["marginLeft"]: oe,
|
|
3367
3368
|
"--column-width-mobile": f({
|
|
3368
|
-
stackedStyle:
|
|
3369
|
+
stackedStyle: $,
|
|
3369
3370
|
desktopStyle: G
|
|
3370
3371
|
}),
|
|
3371
3372
|
"--column-margin-left-mobile": f({
|
|
@@ -3373,7 +3374,7 @@ function Ji(e) {
|
|
|
3373
3374
|
desktopStyle: oe
|
|
3374
3375
|
}),
|
|
3375
3376
|
"--column-width-tablet": c({
|
|
3376
|
-
stackedStyle:
|
|
3377
|
+
stackedStyle: $,
|
|
3377
3378
|
desktopStyle: G
|
|
3378
3379
|
}),
|
|
3379
3380
|
"--column-margin-left-tablet": c({
|
|
@@ -3387,6 +3388,7 @@ function Ji(e) {
|
|
|
3387
3388
|
((oe = (G = e.builderContext.content) == null ? void 0 : G.meta) == null ? void 0 : oe.breakpoints) || {}
|
|
3388
3389
|
)[v].max;
|
|
3389
3390
|
}, D = function() {
|
|
3391
|
+
const v = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
3390
3392
|
return `
|
|
3391
3393
|
@media (max-width: ${j("medium")}px) {
|
|
3392
3394
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -3394,7 +3396,7 @@ function Ji(e) {
|
|
|
3394
3396
|
align-items: stretch;
|
|
3395
3397
|
}
|
|
3396
3398
|
|
|
3397
|
-
|
|
3399
|
+
${v} {
|
|
3398
3400
|
width: var(--column-width-tablet) !important;
|
|
3399
3401
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
3400
3402
|
}
|
|
@@ -3406,26 +3408,26 @@ function Ji(e) {
|
|
|
3406
3408
|
align-items: stretch;
|
|
3407
3409
|
}
|
|
3408
3410
|
|
|
3409
|
-
|
|
3411
|
+
${v} {
|
|
3410
3412
|
width: var(--column-width-mobile) !important;
|
|
3411
3413
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
3412
3414
|
}
|
|
3413
3415
|
},
|
|
3414
3416
|
`;
|
|
3415
|
-
}, V = function(v,
|
|
3417
|
+
}, V = function(v, U) {
|
|
3416
3418
|
return {
|
|
3417
3419
|
...v.link ? {
|
|
3418
3420
|
href: v.link
|
|
3419
3421
|
} : {},
|
|
3420
3422
|
[et()]: "builder-column",
|
|
3421
|
-
style: vr(m(
|
|
3423
|
+
style: vr(m(U))
|
|
3422
3424
|
};
|
|
3423
3425
|
};
|
|
3424
3426
|
return /* @__PURE__ */ se(K, { children: [
|
|
3425
3427
|
/* @__PURE__ */ se(
|
|
3426
3428
|
"div",
|
|
3427
3429
|
{
|
|
3428
|
-
className: Xi((
|
|
3430
|
+
className: Xi((P = e.builderBlock) == null ? void 0 : P.id) + " div-2cd13691",
|
|
3429
3431
|
style: b(),
|
|
3430
3432
|
children: [
|
|
3431
3433
|
/* @__PURE__ */ y(
|
|
@@ -3436,12 +3438,12 @@ function Ji(e) {
|
|
|
3436
3438
|
nonce: e.builderContext.nonce
|
|
3437
3439
|
}
|
|
3438
3440
|
),
|
|
3439
|
-
(
|
|
3440
|
-
|
|
3441
|
+
(_ = e.columns) == null ? void 0 : _.map((O, v) => /* @__PURE__ */ y(
|
|
3442
|
+
Qt,
|
|
3441
3443
|
{
|
|
3442
|
-
TagName: i(
|
|
3444
|
+
TagName: i(O),
|
|
3443
3445
|
actionAttributes: {},
|
|
3444
|
-
attributes: V(
|
|
3446
|
+
attributes: V(O, v),
|
|
3445
3447
|
children: /* @__PURE__ */ y(
|
|
3446
3448
|
mn,
|
|
3447
3449
|
{
|
|
@@ -3453,7 +3455,7 @@ function Ji(e) {
|
|
|
3453
3455
|
context: e.builderContext,
|
|
3454
3456
|
registeredComponents: e.builderComponents,
|
|
3455
3457
|
linkComponent: e.builderLinkComponent,
|
|
3456
|
-
blocks:
|
|
3458
|
+
blocks: O.blocks
|
|
3457
3459
|
}
|
|
3458
3460
|
)
|
|
3459
3461
|
},
|
|
@@ -3462,7 +3464,7 @@ function Ji(e) {
|
|
|
3462
3464
|
]
|
|
3463
3465
|
}
|
|
3464
3466
|
),
|
|
3465
|
-
/* @__PURE__ */ y("style", { children: `.div-
|
|
3467
|
+
/* @__PURE__ */ y("style", { children: `.div-2cd13691 {
|
|
3466
3468
|
display: flex;
|
|
3467
3469
|
line-height: normal;
|
|
3468
3470
|
}` })
|
|
@@ -3510,12 +3512,14 @@ function eo(e) {
|
|
|
3510
3512
|
// images, otherwise you can supply this prop manually
|
|
3511
3513
|
!(m.match(/builder\.io/) || m.match(/cdn\.shopify\.com/)))
|
|
3512
3514
|
return e.srcset;
|
|
3513
|
-
if (e.
|
|
3514
|
-
if (
|
|
3515
|
-
|
|
3516
|
-
|
|
3515
|
+
if (!e.noWebp) {
|
|
3516
|
+
if (e.srcset && ((j = e.image) != null && j.includes("builder.io/api/v1/image"))) {
|
|
3517
|
+
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3518
|
+
return console.debug("Removed given srcset"), zt(m);
|
|
3519
|
+
} else if (e.image && !e.srcset)
|
|
3520
|
+
return zt(m);
|
|
3517
3521
|
return zt(m);
|
|
3518
|
-
|
|
3522
|
+
}
|
|
3519
3523
|
}
|
|
3520
3524
|
function n() {
|
|
3521
3525
|
var b;
|
|
@@ -3547,7 +3551,7 @@ function eo(e) {
|
|
|
3547
3551
|
objectFit: e.backgroundSize || "cover",
|
|
3548
3552
|
...r()
|
|
3549
3553
|
},
|
|
3550
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
3554
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-56bbd606",
|
|
3551
3555
|
src: e.image,
|
|
3552
3556
|
srcSet: t(),
|
|
3553
3557
|
sizes: e.sizes
|
|
@@ -3557,23 +3561,23 @@ function eo(e) {
|
|
|
3557
3561
|
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ y(
|
|
3558
3562
|
"div",
|
|
3559
3563
|
{
|
|
3560
|
-
className: "builder-image-sizer div-
|
|
3564
|
+
className: "builder-image-sizer div-56bbd606",
|
|
3561
3565
|
style: {
|
|
3562
3566
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
3563
3567
|
}
|
|
3564
3568
|
}
|
|
3565
3569
|
) : null,
|
|
3566
3570
|
(c = (s = e.builderBlock) == null ? void 0 : s.children) != null && c.length && e.fitContent ? /* @__PURE__ */ y(K, { children: e.children }) : null,
|
|
3567
|
-
!e.fitContent && ((g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length) ? /* @__PURE__ */ y("div", { className: "div-
|
|
3571
|
+
!e.fitContent && ((g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length) ? /* @__PURE__ */ y("div", { className: "div-56bbd606-2", children: e.children }) : null
|
|
3568
3572
|
] }),
|
|
3569
|
-
/* @__PURE__ */ y("style", { children: `.img-
|
|
3573
|
+
/* @__PURE__ */ y("style", { children: `.img-56bbd606 {
|
|
3570
3574
|
opacity: 1;
|
|
3571
3575
|
transition: opacity 0.2s ease-in-out;
|
|
3572
|
-
}.div-
|
|
3576
|
+
}.div-56bbd606 {
|
|
3573
3577
|
width: 100%;
|
|
3574
3578
|
pointer-events: none;
|
|
3575
3579
|
font-size: 0;
|
|
3576
|
-
}.div-
|
|
3580
|
+
}.div-56bbd606-2 {
|
|
3577
3581
|
display: flex;
|
|
3578
3582
|
flex-direction: column;
|
|
3579
3583
|
align-items: stretch;
|
|
@@ -4140,7 +4144,7 @@ const ho = {
|
|
|
4140
4144
|
}]
|
|
4141
4145
|
};
|
|
4142
4146
|
function po(e) {
|
|
4143
|
-
const t =
|
|
4147
|
+
const t = Zt(null), [n, r] = ye(() => []), [i, a] = ye(() => []);
|
|
4144
4148
|
return ie(() => {
|
|
4145
4149
|
var c;
|
|
4146
4150
|
if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
@@ -4194,7 +4198,7 @@ const mo = {
|
|
|
4194
4198
|
}]
|
|
4195
4199
|
}, go = ["text/javascript", "application/javascript", "application/ecmascript"], yo = (e) => go.includes(e.type);
|
|
4196
4200
|
function vo(e) {
|
|
4197
|
-
const t =
|
|
4201
|
+
const t = Zt(null), [n, r] = ye(() => []), [i, a] = ye(() => []), [s, c] = ye(() => !1);
|
|
4198
4202
|
function f() {
|
|
4199
4203
|
if (!t.current || !t.current.getElementsByTagName)
|
|
4200
4204
|
return;
|
|
@@ -4673,19 +4677,19 @@ function Fo(e) {
|
|
|
4673
4677
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
4674
4678
|
}
|
|
4675
4679
|
function Do(e, t) {
|
|
4676
|
-
const n =
|
|
4680
|
+
const n = Wo(e), r = getComputedStyle(t), i = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, s = [i, a];
|
|
4677
4681
|
for (const c of s)
|
|
4678
4682
|
for (const f of n)
|
|
4679
4683
|
f in c || (c[f] = r[f]);
|
|
4680
4684
|
}
|
|
4681
|
-
function
|
|
4685
|
+
function Wo(e) {
|
|
4682
4686
|
const t = [];
|
|
4683
4687
|
for (const n of e.steps)
|
|
4684
4688
|
for (const r in n.styles)
|
|
4685
4689
|
t.indexOf(r) === -1 && t.push(r);
|
|
4686
4690
|
return t;
|
|
4687
4691
|
}
|
|
4688
|
-
function
|
|
4692
|
+
function Uo(e) {
|
|
4689
4693
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
4690
4694
|
if (!t.length) {
|
|
4691
4695
|
Fo(e.elementId || e.id || "");
|
|
@@ -4752,29 +4756,29 @@ font-weight: ${c};
|
|
|
4752
4756
|
}
|
|
4753
4757
|
`, Ho = (e) => e ? "" : $o, Ko = (e) => `variant-${e}`;
|
|
4754
4758
|
function Go(e) {
|
|
4755
|
-
var oe,
|
|
4756
|
-
const t =
|
|
4759
|
+
var oe, $, Q, E, Ee, L, Ie;
|
|
4760
|
+
const t = Zt(null);
|
|
4757
4761
|
function n(I) {
|
|
4758
|
-
var
|
|
4762
|
+
var B, W;
|
|
4759
4763
|
const x = {
|
|
4760
4764
|
...e.builderContextSignal.rootState,
|
|
4761
4765
|
...I
|
|
4762
4766
|
};
|
|
4763
|
-
e.builderContextSignal.rootSetState ? (
|
|
4767
|
+
e.builderContextSignal.rootSetState ? (W = (B = e.builderContextSignal).rootSetState) == null || W.call(B, x) : e.builderContextSignal.rootState = x;
|
|
4764
4768
|
}
|
|
4765
4769
|
function r(I) {
|
|
4766
|
-
var
|
|
4770
|
+
var B, W, M, J, le;
|
|
4767
4771
|
const x = {
|
|
4768
4772
|
...e.builderContextSignal.content,
|
|
4769
4773
|
...I,
|
|
4770
4774
|
data: {
|
|
4771
|
-
...(
|
|
4775
|
+
...(B = e.builderContextSignal.content) == null ? void 0 : B.data,
|
|
4772
4776
|
...I == null ? void 0 : I.data
|
|
4773
4777
|
},
|
|
4774
4778
|
meta: {
|
|
4775
|
-
...(
|
|
4779
|
+
...(W = e.builderContextSignal.content) == null ? void 0 : W.meta,
|
|
4776
4780
|
...I == null ? void 0 : I.meta,
|
|
4777
|
-
breakpoints: ((
|
|
4781
|
+
breakpoints: ((M = I == null ? void 0 : I.meta) == null ? void 0 : M.breakpoints) || ((le = (J = e.builderContextSignal.content) == null ? void 0 : J.meta) == null ? void 0 : le.breakpoints)
|
|
4778
4782
|
}
|
|
4779
4783
|
};
|
|
4780
4784
|
Mo({
|
|
@@ -4799,16 +4803,16 @@ function Go(e) {
|
|
|
4799
4803
|
trustedHosts: e.trustedHosts,
|
|
4800
4804
|
callbacks: {
|
|
4801
4805
|
configureSdk: (x) => {
|
|
4802
|
-
var
|
|
4803
|
-
const { breakpoints:
|
|
4804
|
-
!
|
|
4806
|
+
var M;
|
|
4807
|
+
const { breakpoints: B, contentId: W } = x;
|
|
4808
|
+
!W || W !== ((M = e.builderContextSignal.content) == null ? void 0 : M.id) || B && r({
|
|
4805
4809
|
meta: {
|
|
4806
|
-
breakpoints:
|
|
4810
|
+
breakpoints: B
|
|
4807
4811
|
}
|
|
4808
4812
|
});
|
|
4809
4813
|
},
|
|
4810
4814
|
animation: (x) => {
|
|
4811
|
-
|
|
4815
|
+
Uo(x);
|
|
4812
4816
|
},
|
|
4813
4817
|
contentUpdate: (x) => {
|
|
4814
4818
|
r(x);
|
|
@@ -4817,8 +4821,8 @@ function Go(e) {
|
|
|
4817
4821
|
})(I);
|
|
4818
4822
|
}
|
|
4819
4823
|
function f() {
|
|
4820
|
-
var x,
|
|
4821
|
-
const I = (
|
|
4824
|
+
var x, B;
|
|
4825
|
+
const I = (B = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : B.jsCode;
|
|
4822
4826
|
I && rt({
|
|
4823
4827
|
code: I,
|
|
4824
4828
|
context: e.context || {},
|
|
@@ -4832,29 +4836,29 @@ function Go(e) {
|
|
|
4832
4836
|
});
|
|
4833
4837
|
}
|
|
4834
4838
|
const [g, b] = ye(() => ({})), [m, j] = ye(() => ({})), [D, V] = ye(() => !1);
|
|
4835
|
-
function
|
|
4836
|
-
var x,
|
|
4839
|
+
function P(I) {
|
|
4840
|
+
var x, B;
|
|
4837
4841
|
if (e.builderContextSignal.content) {
|
|
4838
|
-
const
|
|
4842
|
+
const W = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, M = (B = e.builderContextSignal.content) == null ? void 0 : B.id;
|
|
4839
4843
|
Gn({
|
|
4840
4844
|
type: "click",
|
|
4841
4845
|
canTrack: vt(e.canTrack),
|
|
4842
|
-
contentId:
|
|
4846
|
+
contentId: M,
|
|
4843
4847
|
apiKey: e.apiKey,
|
|
4844
|
-
variationId:
|
|
4848
|
+
variationId: W !== M ? W : void 0,
|
|
4845
4849
|
...Bo(I),
|
|
4846
4850
|
unique: !D
|
|
4847
4851
|
});
|
|
4848
4852
|
}
|
|
4849
4853
|
D || V(!0);
|
|
4850
4854
|
}
|
|
4851
|
-
function
|
|
4852
|
-
var x,
|
|
4853
|
-
const I = (
|
|
4854
|
-
Object.entries(I).forEach(([
|
|
4855
|
-
if (!J || m[
|
|
4855
|
+
function _() {
|
|
4856
|
+
var x, B, W;
|
|
4857
|
+
const I = (W = (B = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : B.httpRequests) != null ? W : {};
|
|
4858
|
+
Object.entries(I).forEach(([M, J]) => {
|
|
4859
|
+
if (!J || m[M] || g[M] && !Ce())
|
|
4856
4860
|
return;
|
|
4857
|
-
m[
|
|
4861
|
+
m[M] = !0;
|
|
4858
4862
|
const le = J.replace(
|
|
4859
4863
|
/{{([^}]+)}}/g,
|
|
4860
4864
|
(ce, lt) => String(
|
|
@@ -4870,22 +4874,22 @@ function Go(e) {
|
|
|
4870
4874
|
);
|
|
4871
4875
|
zr(le).then((ce) => ce.json()).then((ce) => {
|
|
4872
4876
|
n({
|
|
4873
|
-
[
|
|
4874
|
-
}), g[
|
|
4877
|
+
[M]: ce
|
|
4878
|
+
}), g[M] = !0;
|
|
4875
4879
|
}).catch((ce) => {
|
|
4876
4880
|
console.error("error fetching dynamic data", J, ce);
|
|
4877
4881
|
}).finally(() => {
|
|
4878
|
-
m[
|
|
4882
|
+
m[M] = !1;
|
|
4879
4883
|
});
|
|
4880
4884
|
});
|
|
4881
4885
|
}
|
|
4882
|
-
function
|
|
4886
|
+
function O() {
|
|
4883
4887
|
Ce() && window.dispatchEvent(
|
|
4884
4888
|
new CustomEvent(
|
|
4885
4889
|
"builder:component:stateChange",
|
|
4886
4890
|
{
|
|
4887
4891
|
detail: {
|
|
4888
|
-
state:
|
|
4892
|
+
state: fn(e.builderContextSignal.rootState),
|
|
4889
4893
|
ref: {
|
|
4890
4894
|
name: e.model
|
|
4891
4895
|
}
|
|
@@ -4908,19 +4912,19 @@ function Go(e) {
|
|
|
4908
4912
|
}), Object.values(
|
|
4909
4913
|
e.builderContextSignal.componentInfos
|
|
4910
4914
|
).forEach((x) => {
|
|
4911
|
-
var
|
|
4912
|
-
const
|
|
4913
|
-
(
|
|
4915
|
+
var W;
|
|
4916
|
+
const B = Jr(x);
|
|
4917
|
+
(W = window.parent) == null || W.postMessage(B, "*");
|
|
4914
4918
|
}), window.addEventListener(
|
|
4915
4919
|
"builder:component:stateChangeListenerActivated",
|
|
4916
|
-
|
|
4920
|
+
O
|
|
4917
4921
|
);
|
|
4918
4922
|
}
|
|
4919
|
-
function
|
|
4920
|
-
const x = new URL(location.href).searchParams,
|
|
4921
|
-
`builder.overrides.${
|
|
4922
|
-
),
|
|
4923
|
-
|
|
4923
|
+
function U(I) {
|
|
4924
|
+
const x = new URL(location.href).searchParams, B = x.get("builder.preview"), W = x.get(
|
|
4925
|
+
`builder.overrides.${B}`
|
|
4926
|
+
), M = x.get("apiKey") || x.get("builder.space");
|
|
4927
|
+
B === e.model && M === e.apiKey && (!e.content || W === e.content.id) && lr({
|
|
4924
4928
|
model: e.model,
|
|
4925
4929
|
apiKey: e.apiKey,
|
|
4926
4930
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -4945,25 +4949,25 @@ function Go(e) {
|
|
|
4945
4949
|
var I;
|
|
4946
4950
|
return (I = t.current) == null || I.addEventListener(
|
|
4947
4951
|
"initpreviewingbldr",
|
|
4948
|
-
|
|
4952
|
+
U
|
|
4949
4953
|
), () => {
|
|
4950
4954
|
var x;
|
|
4951
4955
|
return (x = t.current) == null ? void 0 : x.removeEventListener(
|
|
4952
4956
|
"initpreviewingbldr",
|
|
4953
|
-
|
|
4957
|
+
U
|
|
4954
4958
|
);
|
|
4955
4959
|
};
|
|
4956
4960
|
}, []), ie(() => {
|
|
4957
4961
|
var I, x;
|
|
4958
4962
|
if (De()) {
|
|
4959
4963
|
if (Ce() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && vt(e.canTrack)) {
|
|
4960
|
-
const
|
|
4964
|
+
const W = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, M = (x = e.builderContextSignal.content) == null ? void 0 : x.id, J = e.apiKey;
|
|
4961
4965
|
Gn({
|
|
4962
4966
|
type: "impression",
|
|
4963
4967
|
canTrack: !0,
|
|
4964
|
-
contentId:
|
|
4968
|
+
contentId: M,
|
|
4965
4969
|
apiKey: J,
|
|
4966
|
-
variationId:
|
|
4970
|
+
variationId: W !== M ? W : void 0
|
|
4967
4971
|
});
|
|
4968
4972
|
}
|
|
4969
4973
|
Kr() && Ce();
|
|
@@ -4971,14 +4975,14 @@ function Go(e) {
|
|
|
4971
4975
|
}, []), ie(() => {
|
|
4972
4976
|
e.apiKey || ot.error(
|
|
4973
4977
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4974
|
-
), f(),
|
|
4978
|
+
), f(), _(), O();
|
|
4975
4979
|
}, []), ie(() => {
|
|
4976
4980
|
}, [e.content]), ie(() => {
|
|
4977
4981
|
f();
|
|
4978
|
-
}, [(
|
|
4979
|
-
|
|
4982
|
+
}, [($ = (oe = e.builderContextSignal.content) == null ? void 0 : oe.data) == null ? void 0 : $.jsCode]), ie(() => {
|
|
4983
|
+
_();
|
|
4980
4984
|
}, [(E = (Q = e.builderContextSignal.content) == null ? void 0 : Q.data) == null ? void 0 : E.httpRequests]), ie(() => {
|
|
4981
|
-
|
|
4985
|
+
O();
|
|
4982
4986
|
}, [e.builderContextSignal.rootState]), ie(() => {
|
|
4983
4987
|
e.data && n(e.data);
|
|
4984
4988
|
}, [e.data]), ie(() => {
|
|
@@ -4988,13 +4992,13 @@ function Go(e) {
|
|
|
4988
4992
|
}, [e.locale]), ie(() => () => {
|
|
4989
4993
|
De() && (window.removeEventListener("message", c), window.removeEventListener(
|
|
4990
4994
|
"builder:component:stateChangeListenerActivated",
|
|
4991
|
-
|
|
4995
|
+
O
|
|
4992
4996
|
));
|
|
4993
4997
|
}, []), /* @__PURE__ */ y(Oo.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ y(
|
|
4994
4998
|
a,
|
|
4995
4999
|
{
|
|
4996
5000
|
ref: t,
|
|
4997
|
-
onClick: (I) =>
|
|
5001
|
+
onClick: (I) => P(I),
|
|
4998
5002
|
"builder-content-id": (Ee = e.builderContextSignal.content) == null ? void 0 : Ee.id,
|
|
4999
5003
|
"builder-model": e.model,
|
|
5000
5004
|
...i(),
|
|
@@ -5055,7 +5059,7 @@ const Yo = ({
|
|
|
5055
5059
|
meta: e == null ? void 0 : e.meta
|
|
5056
5060
|
} : void 0;
|
|
5057
5061
|
function sr(e) {
|
|
5058
|
-
var i, a, s, c, f, g, b, m, j;
|
|
5062
|
+
var i, a, s, c, f, g, b, m, j, D, V;
|
|
5059
5063
|
const t = Ro({
|
|
5060
5064
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5061
5065
|
variationId: (i = e.content) == null ? void 0 : i.testVariationId,
|
|
@@ -5063,13 +5067,13 @@ function sr(e) {
|
|
|
5063
5067
|
contentId: (a = e.content) == null ? void 0 : a.id
|
|
5064
5068
|
}), n = [
|
|
5065
5069
|
...rr(),
|
|
5066
|
-
...e.customComponents || []
|
|
5070
|
+
...((s = e.customComponents) == null ? void 0 : s.filter(({ models: P }) => !(P != null && P.length) || !e.model ? !0 : P.includes(e.model))) || []
|
|
5067
5071
|
].reduce(
|
|
5068
|
-
(
|
|
5069
|
-
...
|
|
5070
|
-
[
|
|
5071
|
-
component:
|
|
5072
|
-
...zn(
|
|
5072
|
+
(P, { component: _, ...O }) => ({
|
|
5073
|
+
...P,
|
|
5074
|
+
[O.name]: {
|
|
5075
|
+
component: _,
|
|
5076
|
+
...zn(O)
|
|
5073
5077
|
}
|
|
5074
5078
|
}),
|
|
5075
5079
|
{}
|
|
@@ -5091,11 +5095,11 @@ function sr(e) {
|
|
|
5091
5095
|
apiVersion: e.apiVersion,
|
|
5092
5096
|
componentInfos: [
|
|
5093
5097
|
...rr(),
|
|
5094
|
-
...e.customComponents || []
|
|
5098
|
+
...((c = e.customComponents) == null ? void 0 : c.filter(({ models: P }) => !(P != null && P.length) || !e.model ? !0 : P.includes(e.model))) || []
|
|
5095
5099
|
].reduce(
|
|
5096
|
-
(
|
|
5097
|
-
...
|
|
5098
|
-
[
|
|
5100
|
+
(P, { component: _, ...O }) => ({
|
|
5101
|
+
...P,
|
|
5102
|
+
[O.name]: zn(O)
|
|
5099
5103
|
}),
|
|
5100
5104
|
{}
|
|
5101
5105
|
),
|
|
@@ -5135,15 +5139,15 @@ function sr(e) {
|
|
|
5135
5139
|
{
|
|
5136
5140
|
nonce: e.nonce || "",
|
|
5137
5141
|
isNestedRender: e.isNestedRender,
|
|
5138
|
-
contentId: (
|
|
5139
|
-
cssCode: (
|
|
5140
|
-
customFonts: (
|
|
5142
|
+
contentId: (f = r.content) == null ? void 0 : f.id,
|
|
5143
|
+
cssCode: (b = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : b.cssCode,
|
|
5144
|
+
customFonts: (j = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : j.customFonts
|
|
5141
5145
|
}
|
|
5142
5146
|
),
|
|
5143
5147
|
/* @__PURE__ */ y(
|
|
5144
5148
|
mn,
|
|
5145
5149
|
{
|
|
5146
|
-
blocks: (
|
|
5150
|
+
blocks: (V = (D = r.content) == null ? void 0 : D.data) == null ? void 0 : V.blocks,
|
|
5147
5151
|
context: r,
|
|
5148
5152
|
registeredComponents: n,
|
|
5149
5153
|
linkComponent: e.linkComponent
|