@builder.io/sdk-react-nextjs 0.16.0 → 0.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +13 -13
- package/lib/browser/blocks-exports.mjs +395 -359
- 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-86458005.js → server-entry-242f596f.js} +1 -1
- package/lib/browser/{server-entry-d8d62ced.cjs → server-entry-494604dc.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-exports.cjs +17 -17
- package/lib/edge/blocks-exports.mjs +289 -253
- 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-86458005.js → server-entry-242f596f.js} +1 -1
- package/lib/edge/{server-entry-d8d62ced.cjs → server-entry-494604dc.cjs} +1 -1
- 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 +336 -300
- 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-423addf8.js → node-runtime-42e494ca.js} +1 -1
- package/lib/node/{node-runtime-6421aefe.cjs → node-runtime-e1243cd6.cjs} +1 -1
- package/lib/node/{server-entry-6f84d0f2.cjs → server-entry-db7b41aa.cjs} +1 -1
- package/lib/node/{server-entry-1644208f.js → server-entry-fbf4e3a9.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/cjs/components/content/components/styles.d.ts +2 -1
- package/types/cjs/components/content-variants/content-variants.types.d.ts +4 -0
- package/types/cjs/components/inlined-script.d.ts +2 -1
- package/types/cjs/components/inlined-styles.d.ts +2 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/context/types.d.ts +1 -0
- package/types/cjs/types/builder-props.d.ts +3 -0
- package/types/esm/components/content/components/styles.d.ts +2 -1
- package/types/esm/components/content-variants/content-variants.types.d.ts +4 -0
- package/types/esm/components/inlined-script.d.ts +2 -1
- package/types/esm/components/inlined-styles.d.ts +2 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/context/types.d.ts +1 -0
- package/types/esm/types/builder-props.d.ts +3 -0
|
@@ -3,7 +3,7 @@ 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, fastClone as Zt, 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-
|
|
6
|
+
import { TARGET as it, isEditing as Ce, isBrowser as De, getUserAttributes as $r, logger as ot, checkIsDefined as yt, fastClone as Zt, 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-242f596f.js";
|
|
7
7
|
import { useRef as Qt, 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";
|
|
@@ -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,7 +909,7 @@ 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 = {
|
|
@@ -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, tn), e.g(t, "this", t, ze), e.g(t, "self", t), e.M = new
|
|
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, tn), 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,7 +1064,7 @@ 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
|
}
|
|
@@ -1073,7 +1073,7 @@ function ui(e, t) {
|
|
|
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,7 +1133,7 @@ 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
1138
|
isNaN(nn(a)) && w(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1139
1139
|
else {
|
|
@@ -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,
|
|
@@ -1492,7 +1492,7 @@ F.ub = function(e) {
|
|
|
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;
|
|
@@ -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
|
}
|
|
@@ -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
1617
|
var i = !this.o || sn(this).S;
|
|
1618
|
-
if (e instanceof
|
|
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) {
|
|
@@ -1787,7 +1787,7 @@ function dn(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
|
}
|
|
@@ -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++;
|
|
@@ -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);
|
|
@@ -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,8 +2171,8 @@ 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);
|
|
@@ -2183,7 +2183,7 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
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)
|
|
@@ -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
|
};
|
|
@@ -2879,11 +2879,12 @@ function kt(e) {
|
|
|
2879
2879
|
"style",
|
|
2880
2880
|
{
|
|
2881
2881
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
2882
|
-
"data-id": e.id
|
|
2882
|
+
"data-id": e.id,
|
|
2883
|
+
nonce: e.nonce
|
|
2883
2884
|
}
|
|
2884
2885
|
);
|
|
2885
2886
|
}
|
|
2886
|
-
function
|
|
2887
|
+
function Wi(e) {
|
|
2887
2888
|
const t = function() {
|
|
2888
2889
|
const i = bt({
|
|
2889
2890
|
block: e.block,
|
|
@@ -2895,7 +2896,7 @@ function Ui(e) {
|
|
|
2895
2896
|
});
|
|
2896
2897
|
return yt(i.hide) ? !i.hide : yt(i.show) ? i.show : !0;
|
|
2897
2898
|
}, n = function() {
|
|
2898
|
-
var
|
|
2899
|
+
var O, v, U;
|
|
2899
2900
|
const i = bt({
|
|
2900
2901
|
block: e.block,
|
|
2901
2902
|
localState: e.context.localState,
|
|
@@ -2904,7 +2905,7 @@ function Ui(e) {
|
|
|
2904
2905
|
context: e.context.context,
|
|
2905
2906
|
shouldEvaluateBindings: !0
|
|
2906
2907
|
}), a = i.responsiveStyles, s = e.context.content, c = xr(
|
|
2907
|
-
((
|
|
2908
|
+
((O = s == null ? void 0 : s.meta) == null ? void 0 : O.breakpoints) || {}
|
|
2908
2909
|
), f = a == null ? void 0 : a.large, g = a == null ? void 0 : a.medium, b = a == null ? void 0 : a.small, m = i.id;
|
|
2909
2910
|
if (!m)
|
|
2910
2911
|
return "";
|
|
@@ -2925,18 +2926,18 @@ function Ui(e) {
|
|
|
2925
2926
|
"small",
|
|
2926
2927
|
c
|
|
2927
2928
|
)
|
|
2928
|
-
}) : "",
|
|
2929
|
-
let
|
|
2930
|
-
if (
|
|
2931
|
-
const G = ((
|
|
2932
|
-
|
|
2929
|
+
}) : "", P = i.animations && i.animations.find((G) => G.trigger === "hover");
|
|
2930
|
+
let _ = "";
|
|
2931
|
+
if (P) {
|
|
2932
|
+
const G = ((U = (v = P.steps) == null ? void 0 : v[1]) == null ? void 0 : U.styles) || {};
|
|
2933
|
+
_ = mt({
|
|
2933
2934
|
className: `${m}:hover`,
|
|
2934
2935
|
styles: {
|
|
2935
2936
|
...G,
|
|
2936
|
-
transition: `all ${
|
|
2937
|
-
|
|
2937
|
+
transition: `all ${P.duration}s ${hn(
|
|
2938
|
+
P.easing
|
|
2938
2939
|
)}`,
|
|
2939
|
-
transitionDelay:
|
|
2940
|
+
transitionDelay: P.delay ? `${P.delay}s` : "0s"
|
|
2940
2941
|
}
|
|
2941
2942
|
}) || "";
|
|
2942
2943
|
}
|
|
@@ -2944,15 +2945,22 @@ function Ui(e) {
|
|
|
2944
2945
|
j,
|
|
2945
2946
|
D,
|
|
2946
2947
|
V,
|
|
2947
|
-
|
|
2948
|
+
_
|
|
2948
2949
|
].join(" ");
|
|
2949
2950
|
};
|
|
2950
|
-
return /* @__PURE__ */ y(K, { children: n() && t() ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(
|
|
2951
|
+
return /* @__PURE__ */ y(K, { children: n() && t() ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(
|
|
2952
|
+
kt,
|
|
2953
|
+
{
|
|
2954
|
+
id: "builderio-block",
|
|
2955
|
+
styles: n(),
|
|
2956
|
+
nonce: e.context.nonce
|
|
2957
|
+
}
|
|
2958
|
+
) }) : null });
|
|
2951
2959
|
}
|
|
2952
|
-
function
|
|
2960
|
+
function Ui(e) {
|
|
2953
2961
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2954
2962
|
}
|
|
2955
|
-
const Li = (e) => `on${
|
|
2963
|
+
const Li = (e) => `on${Ui(e)}`, Vi = (e, t) => (n) => rt({
|
|
2956
2964
|
code: e,
|
|
2957
2965
|
context: t.context,
|
|
2958
2966
|
localState: t.localState,
|
|
@@ -3149,16 +3157,16 @@ function Ct(e) {
|
|
|
3149
3157
|
var D;
|
|
3150
3158
|
return e.block.tagName === "a" || ((D = r().properties) == null ? void 0 : D.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
3151
3159
|
}, a = function() {
|
|
3152
|
-
var V,
|
|
3160
|
+
var V, P;
|
|
3153
3161
|
if ((V = e.block.repeat) != null && V.collection)
|
|
3154
|
-
return !!((
|
|
3162
|
+
return !!((P = n()) != null && P.length);
|
|
3155
3163
|
const j = "hide" in r() ? r().hide : !1;
|
|
3156
3164
|
return ("show" in r() ? r().show : !0) && !j;
|
|
3157
3165
|
}, s = function() {
|
|
3158
3166
|
var D, V;
|
|
3159
3167
|
return !((D = t()) != null && D.component) && !n() ? (V = r().children) != null ? V : [] : [];
|
|
3160
3168
|
}, c = function() {
|
|
3161
|
-
var j, D, V,
|
|
3169
|
+
var j, D, V, P;
|
|
3162
3170
|
return {
|
|
3163
3171
|
blockChildren: (j = r().children) != null ? j : [],
|
|
3164
3172
|
componentRef: (D = t()) == null ? void 0 : D.component,
|
|
@@ -3177,11 +3185,11 @@ function Ct(e) {
|
|
|
3177
3185
|
registeredComponents: e.registeredComponents,
|
|
3178
3186
|
builderBlock: r(),
|
|
3179
3187
|
includeBlockProps: ((V = t()) == null ? void 0 : V.noWrap) === !0,
|
|
3180
|
-
isInteractive: !((
|
|
3188
|
+
isInteractive: !((P = t()) != null && P.isRSC)
|
|
3181
3189
|
};
|
|
3182
3190
|
};
|
|
3183
3191
|
return /* @__PURE__ */ y(K, { children: a() ? /* @__PURE__ */ se(K, { children: [
|
|
3184
|
-
/* @__PURE__ */ y(
|
|
3192
|
+
/* @__PURE__ */ y(Wi, { block: e.block, context: e.context }),
|
|
3185
3193
|
(f = t()) != null && f.noWrap ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(
|
|
3186
3194
|
tr,
|
|
3187
3195
|
{
|
|
@@ -3319,25 +3327,25 @@ function mn(e) {
|
|
|
3319
3327
|
}
|
|
3320
3328
|
const Xi = (e) => `builder-columns ${e}-breakpoints`;
|
|
3321
3329
|
function Ji(e) {
|
|
3322
|
-
var
|
|
3330
|
+
var P, _;
|
|
3323
3331
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", i = function(v) {
|
|
3324
3332
|
return v.link ? e.builderLinkComponent || "a" : "div";
|
|
3325
3333
|
}, a = function(v) {
|
|
3326
|
-
var
|
|
3327
|
-
return ((
|
|
3334
|
+
var U;
|
|
3335
|
+
return ((U = n[v]) == null ? void 0 : U.width) || 100 / n.length;
|
|
3328
3336
|
}, s = function(v) {
|
|
3329
|
-
const
|
|
3330
|
-
return `calc(${
|
|
3337
|
+
const U = a(v), G = t * (n.length - 1) * (U / 100);
|
|
3338
|
+
return `calc(${U}% - ${G}px)`;
|
|
3331
3339
|
}, c = function({
|
|
3332
3340
|
stackedStyle: v,
|
|
3333
|
-
desktopStyle:
|
|
3341
|
+
desktopStyle: U
|
|
3334
3342
|
}) {
|
|
3335
|
-
return r === "tablet" ? v :
|
|
3343
|
+
return r === "tablet" ? v : U;
|
|
3336
3344
|
}, f = function({
|
|
3337
3345
|
stackedStyle: v,
|
|
3338
|
-
desktopStyle:
|
|
3346
|
+
desktopStyle: U
|
|
3339
3347
|
}) {
|
|
3340
|
-
return r === "never" ?
|
|
3348
|
+
return r === "never" ? U : v;
|
|
3341
3349
|
}, g = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", b = function() {
|
|
3342
3350
|
return {
|
|
3343
3351
|
"--flex-dir": g,
|
|
@@ -3347,7 +3355,7 @@ function Ji(e) {
|
|
|
3347
3355
|
})
|
|
3348
3356
|
};
|
|
3349
3357
|
}, m = function(v) {
|
|
3350
|
-
const
|
|
3358
|
+
const U = v === 0 ? 0 : t, G = s(v), oe = `${U}px`, $ = "100%", Q = 0;
|
|
3351
3359
|
return {
|
|
3352
3360
|
...{
|
|
3353
3361
|
display: "flex",
|
|
@@ -3357,7 +3365,7 @@ function Ji(e) {
|
|
|
3357
3365
|
width: G,
|
|
3358
3366
|
["marginLeft"]: oe,
|
|
3359
3367
|
"--column-width-mobile": f({
|
|
3360
|
-
stackedStyle:
|
|
3368
|
+
stackedStyle: $,
|
|
3361
3369
|
desktopStyle: G
|
|
3362
3370
|
}),
|
|
3363
3371
|
"--column-margin-left-mobile": f({
|
|
@@ -3365,7 +3373,7 @@ function Ji(e) {
|
|
|
3365
3373
|
desktopStyle: oe
|
|
3366
3374
|
}),
|
|
3367
3375
|
"--column-width-tablet": c({
|
|
3368
|
-
stackedStyle:
|
|
3376
|
+
stackedStyle: $,
|
|
3369
3377
|
desktopStyle: G
|
|
3370
3378
|
}),
|
|
3371
3379
|
"--column-margin-left-tablet": c({
|
|
@@ -3404,29 +3412,36 @@ function Ji(e) {
|
|
|
3404
3412
|
}
|
|
3405
3413
|
},
|
|
3406
3414
|
`;
|
|
3407
|
-
}, V = function(v,
|
|
3415
|
+
}, V = function(v, U) {
|
|
3408
3416
|
return {
|
|
3409
3417
|
...v.link ? {
|
|
3410
3418
|
href: v.link
|
|
3411
3419
|
} : {},
|
|
3412
3420
|
[et()]: "builder-column",
|
|
3413
|
-
style: vr(m(
|
|
3421
|
+
style: vr(m(U))
|
|
3414
3422
|
};
|
|
3415
3423
|
};
|
|
3416
3424
|
return /* @__PURE__ */ se(K, { children: [
|
|
3417
3425
|
/* @__PURE__ */ se(
|
|
3418
3426
|
"div",
|
|
3419
3427
|
{
|
|
3420
|
-
className: Xi((
|
|
3428
|
+
className: Xi((P = e.builderBlock) == null ? void 0 : P.id) + " div-c89348d2",
|
|
3421
3429
|
style: b(),
|
|
3422
3430
|
children: [
|
|
3423
|
-
/* @__PURE__ */ y(
|
|
3424
|
-
|
|
3431
|
+
/* @__PURE__ */ y(
|
|
3432
|
+
kt,
|
|
3433
|
+
{
|
|
3434
|
+
id: "builderio-columns",
|
|
3435
|
+
styles: D(),
|
|
3436
|
+
nonce: e.builderContext.nonce
|
|
3437
|
+
}
|
|
3438
|
+
),
|
|
3439
|
+
(_ = e.columns) == null ? void 0 : _.map((O, v) => /* @__PURE__ */ y(
|
|
3425
3440
|
en,
|
|
3426
3441
|
{
|
|
3427
|
-
TagName: i(
|
|
3442
|
+
TagName: i(O),
|
|
3428
3443
|
actionAttributes: {},
|
|
3429
|
-
attributes: V(
|
|
3444
|
+
attributes: V(O, v),
|
|
3430
3445
|
children: /* @__PURE__ */ y(
|
|
3431
3446
|
mn,
|
|
3432
3447
|
{
|
|
@@ -3438,7 +3453,7 @@ function Ji(e) {
|
|
|
3438
3453
|
context: e.builderContext,
|
|
3439
3454
|
registeredComponents: e.builderComponents,
|
|
3440
3455
|
linkComponent: e.builderLinkComponent,
|
|
3441
|
-
blocks:
|
|
3456
|
+
blocks: O.blocks
|
|
3442
3457
|
}
|
|
3443
3458
|
)
|
|
3444
3459
|
},
|
|
@@ -3447,7 +3462,7 @@ function Ji(e) {
|
|
|
3447
3462
|
]
|
|
3448
3463
|
}
|
|
3449
3464
|
),
|
|
3450
|
-
/* @__PURE__ */ y("style", { children: `.div-
|
|
3465
|
+
/* @__PURE__ */ y("style", { children: `.div-c89348d2 {
|
|
3451
3466
|
display: flex;
|
|
3452
3467
|
line-height: normal;
|
|
3453
3468
|
}` })
|
|
@@ -3495,12 +3510,14 @@ function eo(e) {
|
|
|
3495
3510
|
// images, otherwise you can supply this prop manually
|
|
3496
3511
|
!(m.match(/builder\.io/) || m.match(/cdn\.shopify\.com/)))
|
|
3497
3512
|
return e.srcset;
|
|
3498
|
-
if (e.
|
|
3499
|
-
if (
|
|
3500
|
-
|
|
3501
|
-
|
|
3513
|
+
if (!e.noWebp) {
|
|
3514
|
+
if (e.srcset && ((j = e.image) != null && j.includes("builder.io/api/v1/image"))) {
|
|
3515
|
+
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3516
|
+
return console.debug("Removed given srcset"), zt(m);
|
|
3517
|
+
} else if (e.image && !e.srcset)
|
|
3518
|
+
return zt(m);
|
|
3502
3519
|
return zt(m);
|
|
3503
|
-
|
|
3520
|
+
}
|
|
3504
3521
|
}
|
|
3505
3522
|
function n() {
|
|
3506
3523
|
var b;
|
|
@@ -3532,7 +3549,7 @@ function eo(e) {
|
|
|
3532
3549
|
objectFit: e.backgroundSize || "cover",
|
|
3533
3550
|
...r()
|
|
3534
3551
|
},
|
|
3535
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
3552
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-56bbd606",
|
|
3536
3553
|
src: e.image,
|
|
3537
3554
|
srcSet: t(),
|
|
3538
3555
|
sizes: e.sizes
|
|
@@ -3542,23 +3559,23 @@ function eo(e) {
|
|
|
3542
3559
|
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ y(
|
|
3543
3560
|
"div",
|
|
3544
3561
|
{
|
|
3545
|
-
className: "builder-image-sizer div-
|
|
3562
|
+
className: "builder-image-sizer div-56bbd606",
|
|
3546
3563
|
style: {
|
|
3547
3564
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
3548
3565
|
}
|
|
3549
3566
|
}
|
|
3550
3567
|
) : null,
|
|
3551
3568
|
(c = (s = e.builderBlock) == null ? void 0 : s.children) != null && c.length && e.fitContent ? /* @__PURE__ */ y(K, { children: e.children }) : null,
|
|
3552
|
-
!e.fitContent && ((g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length) ? /* @__PURE__ */ y("div", { className: "div-
|
|
3569
|
+
!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
|
|
3553
3570
|
] }),
|
|
3554
|
-
/* @__PURE__ */ y("style", { children: `.img-
|
|
3571
|
+
/* @__PURE__ */ y("style", { children: `.img-56bbd606 {
|
|
3555
3572
|
opacity: 1;
|
|
3556
3573
|
transition: opacity 0.2s ease-in-out;
|
|
3557
|
-
}.div-
|
|
3574
|
+
}.div-56bbd606 {
|
|
3558
3575
|
width: 100%;
|
|
3559
3576
|
pointer-events: none;
|
|
3560
3577
|
font-size: 0;
|
|
3561
|
-
}.div-
|
|
3578
|
+
}.div-56bbd606-2 {
|
|
3562
3579
|
display: flex;
|
|
3563
3580
|
flex-direction: column;
|
|
3564
3581
|
align-items: stretch;
|
|
@@ -4575,7 +4592,8 @@ function qt(e) {
|
|
|
4575
4592
|
"script",
|
|
4576
4593
|
{
|
|
4577
4594
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
4578
|
-
"data-id": e.id
|
|
4595
|
+
"data-id": e.id,
|
|
4596
|
+
nonce: e.nonce || ""
|
|
4579
4597
|
}
|
|
4580
4598
|
);
|
|
4581
4599
|
}
|
|
@@ -4591,7 +4609,8 @@ const Oo = Zr({
|
|
|
4591
4609
|
componentInfos: {},
|
|
4592
4610
|
inheritedStyles: {},
|
|
4593
4611
|
BlocksWrapper: "div",
|
|
4594
|
-
BlocksWrapperProps: {}
|
|
4612
|
+
BlocksWrapperProps: {},
|
|
4613
|
+
nonce: ""
|
|
4595
4614
|
});
|
|
4596
4615
|
function ir(e) {
|
|
4597
4616
|
return Math.round(e * 1e3) / 1e3;
|
|
@@ -4656,19 +4675,19 @@ function Fo(e) {
|
|
|
4656
4675
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
4657
4676
|
}
|
|
4658
4677
|
function Do(e, t) {
|
|
4659
|
-
const n =
|
|
4678
|
+
const n = Wo(e), r = getComputedStyle(t), i = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, s = [i, a];
|
|
4660
4679
|
for (const c of s)
|
|
4661
4680
|
for (const f of n)
|
|
4662
4681
|
f in c || (c[f] = r[f]);
|
|
4663
4682
|
}
|
|
4664
|
-
function
|
|
4683
|
+
function Wo(e) {
|
|
4665
4684
|
const t = [];
|
|
4666
4685
|
for (const n of e.steps)
|
|
4667
4686
|
for (const r in n.styles)
|
|
4668
4687
|
t.indexOf(r) === -1 && t.push(r);
|
|
4669
4688
|
return t;
|
|
4670
4689
|
}
|
|
4671
|
-
function
|
|
4690
|
+
function Uo(e) {
|
|
4672
4691
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
4673
4692
|
if (!t.length) {
|
|
4674
4693
|
Fo(e.elementId || e.id || "");
|
|
@@ -4735,29 +4754,29 @@ font-weight: ${c};
|
|
|
4735
4754
|
}
|
|
4736
4755
|
`, Ho = (e) => e ? "" : $o, Ko = (e) => `variant-${e}`;
|
|
4737
4756
|
function Go(e) {
|
|
4738
|
-
var oe,
|
|
4757
|
+
var oe, $, Q, E, Ee, L, Ie;
|
|
4739
4758
|
const t = Qt(null);
|
|
4740
4759
|
function n(I) {
|
|
4741
|
-
var
|
|
4760
|
+
var B, W;
|
|
4742
4761
|
const x = {
|
|
4743
4762
|
...e.builderContextSignal.rootState,
|
|
4744
4763
|
...I
|
|
4745
4764
|
};
|
|
4746
|
-
e.builderContextSignal.rootSetState ? (
|
|
4765
|
+
e.builderContextSignal.rootSetState ? (W = (B = e.builderContextSignal).rootSetState) == null || W.call(B, x) : e.builderContextSignal.rootState = x;
|
|
4747
4766
|
}
|
|
4748
4767
|
function r(I) {
|
|
4749
|
-
var
|
|
4768
|
+
var B, W, M, J, le;
|
|
4750
4769
|
const x = {
|
|
4751
4770
|
...e.builderContextSignal.content,
|
|
4752
4771
|
...I,
|
|
4753
4772
|
data: {
|
|
4754
|
-
...(
|
|
4773
|
+
...(B = e.builderContextSignal.content) == null ? void 0 : B.data,
|
|
4755
4774
|
...I == null ? void 0 : I.data
|
|
4756
4775
|
},
|
|
4757
4776
|
meta: {
|
|
4758
|
-
...(
|
|
4777
|
+
...(W = e.builderContextSignal.content) == null ? void 0 : W.meta,
|
|
4759
4778
|
...I == null ? void 0 : I.meta,
|
|
4760
|
-
breakpoints: ((
|
|
4779
|
+
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)
|
|
4761
4780
|
}
|
|
4762
4781
|
};
|
|
4763
4782
|
Mo({
|
|
@@ -4782,16 +4801,16 @@ function Go(e) {
|
|
|
4782
4801
|
trustedHosts: e.trustedHosts,
|
|
4783
4802
|
callbacks: {
|
|
4784
4803
|
configureSdk: (x) => {
|
|
4785
|
-
var
|
|
4786
|
-
const { breakpoints:
|
|
4787
|
-
!
|
|
4804
|
+
var M;
|
|
4805
|
+
const { breakpoints: B, contentId: W } = x;
|
|
4806
|
+
!W || W !== ((M = e.builderContextSignal.content) == null ? void 0 : M.id) || B && r({
|
|
4788
4807
|
meta: {
|
|
4789
|
-
breakpoints:
|
|
4808
|
+
breakpoints: B
|
|
4790
4809
|
}
|
|
4791
4810
|
});
|
|
4792
4811
|
},
|
|
4793
4812
|
animation: (x) => {
|
|
4794
|
-
|
|
4813
|
+
Uo(x);
|
|
4795
4814
|
},
|
|
4796
4815
|
contentUpdate: (x) => {
|
|
4797
4816
|
r(x);
|
|
@@ -4800,8 +4819,8 @@ function Go(e) {
|
|
|
4800
4819
|
})(I);
|
|
4801
4820
|
}
|
|
4802
4821
|
function f() {
|
|
4803
|
-
var x,
|
|
4804
|
-
const I = (
|
|
4822
|
+
var x, B;
|
|
4823
|
+
const I = (B = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : B.jsCode;
|
|
4805
4824
|
I && rt({
|
|
4806
4825
|
code: I,
|
|
4807
4826
|
context: e.context || {},
|
|
@@ -4815,29 +4834,29 @@ function Go(e) {
|
|
|
4815
4834
|
});
|
|
4816
4835
|
}
|
|
4817
4836
|
const [g, b] = ye(() => ({})), [m, j] = ye(() => ({})), [D, V] = ye(() => !1);
|
|
4818
|
-
function
|
|
4819
|
-
var x,
|
|
4837
|
+
function P(I) {
|
|
4838
|
+
var x, B;
|
|
4820
4839
|
if (e.builderContextSignal.content) {
|
|
4821
|
-
const
|
|
4840
|
+
const W = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, M = (B = e.builderContextSignal.content) == null ? void 0 : B.id;
|
|
4822
4841
|
Gn({
|
|
4823
4842
|
type: "click",
|
|
4824
4843
|
canTrack: vt(e.canTrack),
|
|
4825
|
-
contentId:
|
|
4844
|
+
contentId: M,
|
|
4826
4845
|
apiKey: e.apiKey,
|
|
4827
|
-
variationId:
|
|
4846
|
+
variationId: W !== M ? W : void 0,
|
|
4828
4847
|
...Bo(I),
|
|
4829
4848
|
unique: !D
|
|
4830
4849
|
});
|
|
4831
4850
|
}
|
|
4832
4851
|
D || V(!0);
|
|
4833
4852
|
}
|
|
4834
|
-
function
|
|
4835
|
-
var x,
|
|
4836
|
-
const I = (
|
|
4837
|
-
Object.entries(I).forEach(([
|
|
4838
|
-
if (!J || m[
|
|
4853
|
+
function _() {
|
|
4854
|
+
var x, B, W;
|
|
4855
|
+
const I = (W = (B = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : B.httpRequests) != null ? W : {};
|
|
4856
|
+
Object.entries(I).forEach(([M, J]) => {
|
|
4857
|
+
if (!J || m[M] || g[M] && !Ce())
|
|
4839
4858
|
return;
|
|
4840
|
-
m[
|
|
4859
|
+
m[M] = !0;
|
|
4841
4860
|
const le = J.replace(
|
|
4842
4861
|
/{{([^}]+)}}/g,
|
|
4843
4862
|
(ce, lt) => String(
|
|
@@ -4853,16 +4872,16 @@ function Go(e) {
|
|
|
4853
4872
|
);
|
|
4854
4873
|
zr(le).then((ce) => ce.json()).then((ce) => {
|
|
4855
4874
|
n({
|
|
4856
|
-
[
|
|
4857
|
-
}), g[
|
|
4875
|
+
[M]: ce
|
|
4876
|
+
}), g[M] = !0;
|
|
4858
4877
|
}).catch((ce) => {
|
|
4859
4878
|
console.error("error fetching dynamic data", J, ce);
|
|
4860
4879
|
}).finally(() => {
|
|
4861
|
-
m[
|
|
4880
|
+
m[M] = !1;
|
|
4862
4881
|
});
|
|
4863
4882
|
});
|
|
4864
4883
|
}
|
|
4865
|
-
function
|
|
4884
|
+
function O() {
|
|
4866
4885
|
Ce() && window.dispatchEvent(
|
|
4867
4886
|
new CustomEvent(
|
|
4868
4887
|
"builder:component:stateChange",
|
|
@@ -4891,19 +4910,19 @@ function Go(e) {
|
|
|
4891
4910
|
}), Object.values(
|
|
4892
4911
|
e.builderContextSignal.componentInfos
|
|
4893
4912
|
).forEach((x) => {
|
|
4894
|
-
var
|
|
4895
|
-
const
|
|
4896
|
-
(
|
|
4913
|
+
var W;
|
|
4914
|
+
const B = Jr(x);
|
|
4915
|
+
(W = window.parent) == null || W.postMessage(B, "*");
|
|
4897
4916
|
}), window.addEventListener(
|
|
4898
4917
|
"builder:component:stateChangeListenerActivated",
|
|
4899
|
-
|
|
4918
|
+
O
|
|
4900
4919
|
);
|
|
4901
4920
|
}
|
|
4902
|
-
function
|
|
4903
|
-
const x = new URL(location.href).searchParams,
|
|
4904
|
-
`builder.overrides.${
|
|
4905
|
-
),
|
|
4906
|
-
|
|
4921
|
+
function U(I) {
|
|
4922
|
+
const x = new URL(location.href).searchParams, B = x.get("builder.preview"), W = x.get(
|
|
4923
|
+
`builder.overrides.${B}`
|
|
4924
|
+
), M = x.get("apiKey") || x.get("builder.space");
|
|
4925
|
+
B === e.model && M === e.apiKey && (!e.content || W === e.content.id) && lr({
|
|
4907
4926
|
model: e.model,
|
|
4908
4927
|
apiKey: e.apiKey,
|
|
4909
4928
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -4928,25 +4947,25 @@ function Go(e) {
|
|
|
4928
4947
|
var I;
|
|
4929
4948
|
return (I = t.current) == null || I.addEventListener(
|
|
4930
4949
|
"initpreviewingbldr",
|
|
4931
|
-
|
|
4950
|
+
U
|
|
4932
4951
|
), () => {
|
|
4933
4952
|
var x;
|
|
4934
4953
|
return (x = t.current) == null ? void 0 : x.removeEventListener(
|
|
4935
4954
|
"initpreviewingbldr",
|
|
4936
|
-
|
|
4955
|
+
U
|
|
4937
4956
|
);
|
|
4938
4957
|
};
|
|
4939
4958
|
}, []), ie(() => {
|
|
4940
4959
|
var I, x;
|
|
4941
4960
|
if (De()) {
|
|
4942
4961
|
if (Ce() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && vt(e.canTrack)) {
|
|
4943
|
-
const
|
|
4962
|
+
const W = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, M = (x = e.builderContextSignal.content) == null ? void 0 : x.id, J = e.apiKey;
|
|
4944
4963
|
Gn({
|
|
4945
4964
|
type: "impression",
|
|
4946
4965
|
canTrack: !0,
|
|
4947
|
-
contentId:
|
|
4966
|
+
contentId: M,
|
|
4948
4967
|
apiKey: J,
|
|
4949
|
-
variationId:
|
|
4968
|
+
variationId: W !== M ? W : void 0
|
|
4950
4969
|
});
|
|
4951
4970
|
}
|
|
4952
4971
|
Kr() && Ce();
|
|
@@ -4954,14 +4973,14 @@ function Go(e) {
|
|
|
4954
4973
|
}, []), ie(() => {
|
|
4955
4974
|
e.apiKey || ot.error(
|
|
4956
4975
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4957
|
-
), f(),
|
|
4976
|
+
), f(), _(), O();
|
|
4958
4977
|
}, []), ie(() => {
|
|
4959
4978
|
}, [e.content]), ie(() => {
|
|
4960
4979
|
f();
|
|
4961
|
-
}, [(
|
|
4962
|
-
|
|
4980
|
+
}, [($ = (oe = e.builderContextSignal.content) == null ? void 0 : oe.data) == null ? void 0 : $.jsCode]), ie(() => {
|
|
4981
|
+
_();
|
|
4963
4982
|
}, [(E = (Q = e.builderContextSignal.content) == null ? void 0 : Q.data) == null ? void 0 : E.httpRequests]), ie(() => {
|
|
4964
|
-
|
|
4983
|
+
O();
|
|
4965
4984
|
}, [e.builderContextSignal.rootState]), ie(() => {
|
|
4966
4985
|
e.data && n(e.data);
|
|
4967
4986
|
}, [e.data]), ie(() => {
|
|
@@ -4971,13 +4990,13 @@ function Go(e) {
|
|
|
4971
4990
|
}, [e.locale]), ie(() => () => {
|
|
4972
4991
|
De() && (window.removeEventListener("message", c), window.removeEventListener(
|
|
4973
4992
|
"builder:component:stateChangeListenerActivated",
|
|
4974
|
-
|
|
4993
|
+
O
|
|
4975
4994
|
));
|
|
4976
4995
|
}, []), /* @__PURE__ */ y(Oo.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ y(
|
|
4977
4996
|
a,
|
|
4978
4997
|
{
|
|
4979
4998
|
ref: t,
|
|
4980
|
-
onClick: (I) =>
|
|
4999
|
+
onClick: (I) => P(I),
|
|
4981
5000
|
"builder-content-id": (Ee = e.builderContextSignal.content) == null ? void 0 : Ee.id,
|
|
4982
5001
|
"builder-model": e.model,
|
|
4983
5002
|
...i(),
|
|
@@ -5000,7 +5019,14 @@ ${Vo({
|
|
|
5000
5019
|
})}
|
|
5001
5020
|
${Ho(e.isNestedRender)}
|
|
5002
5021
|
`.trim();
|
|
5003
|
-
return /* @__PURE__ */ y(
|
|
5022
|
+
return /* @__PURE__ */ y(
|
|
5023
|
+
kt,
|
|
5024
|
+
{
|
|
5025
|
+
id: "builderio-content",
|
|
5026
|
+
styles: t,
|
|
5027
|
+
nonce: e.nonce
|
|
5028
|
+
}
|
|
5029
|
+
);
|
|
5004
5030
|
}
|
|
5005
5031
|
const Yo = ({
|
|
5006
5032
|
content: e,
|
|
@@ -5031,7 +5057,7 @@ const Yo = ({
|
|
|
5031
5057
|
meta: e == null ? void 0 : e.meta
|
|
5032
5058
|
} : void 0;
|
|
5033
5059
|
function sr(e) {
|
|
5034
|
-
var i, a, s, c, f, g, b, m, j;
|
|
5060
|
+
var i, a, s, c, f, g, b, m, j, D, V;
|
|
5035
5061
|
const t = Ro({
|
|
5036
5062
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5037
5063
|
variationId: (i = e.content) == null ? void 0 : i.testVariationId,
|
|
@@ -5039,13 +5065,13 @@ function sr(e) {
|
|
|
5039
5065
|
contentId: (a = e.content) == null ? void 0 : a.id
|
|
5040
5066
|
}), n = [
|
|
5041
5067
|
...rr(),
|
|
5042
|
-
...e.customComponents || []
|
|
5068
|
+
...((s = e.customComponents) == null ? void 0 : s.filter(({ models: P }) => !(P != null && P.length) || !e.model ? !0 : P.includes(e.model))) || []
|
|
5043
5069
|
].reduce(
|
|
5044
|
-
(
|
|
5045
|
-
...
|
|
5046
|
-
[
|
|
5047
|
-
component:
|
|
5048
|
-
...zn(
|
|
5070
|
+
(P, { component: _, ...O }) => ({
|
|
5071
|
+
...P,
|
|
5072
|
+
[O.name]: {
|
|
5073
|
+
component: _,
|
|
5074
|
+
...zn(O)
|
|
5049
5075
|
}
|
|
5050
5076
|
}),
|
|
5051
5077
|
{}
|
|
@@ -5067,21 +5093,23 @@ function sr(e) {
|
|
|
5067
5093
|
apiVersion: e.apiVersion,
|
|
5068
5094
|
componentInfos: [
|
|
5069
5095
|
...rr(),
|
|
5070
|
-
...e.customComponents || []
|
|
5096
|
+
...((c = e.customComponents) == null ? void 0 : c.filter(({ models: P }) => !(P != null && P.length) || !e.model ? !0 : P.includes(e.model))) || []
|
|
5071
5097
|
].reduce(
|
|
5072
|
-
(
|
|
5073
|
-
...
|
|
5074
|
-
[
|
|
5098
|
+
(P, { component: _, ...O }) => ({
|
|
5099
|
+
...P,
|
|
5100
|
+
[O.name]: zn(O)
|
|
5075
5101
|
}),
|
|
5076
5102
|
{}
|
|
5077
5103
|
),
|
|
5078
5104
|
inheritedStyles: {},
|
|
5079
5105
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
5080
|
-
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
5106
|
+
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
5107
|
+
nonce: e.nonce || ""
|
|
5081
5108
|
};
|
|
5082
5109
|
return /* @__PURE__ */ se(
|
|
5083
5110
|
Go,
|
|
5084
5111
|
{
|
|
5112
|
+
nonce: e.nonce,
|
|
5085
5113
|
content: e.content,
|
|
5086
5114
|
data: e.data,
|
|
5087
5115
|
model: e.model,
|
|
@@ -5100,22 +5128,24 @@ function sr(e) {
|
|
|
5100
5128
|
qt,
|
|
5101
5129
|
{
|
|
5102
5130
|
id: "builderio-variant-visibility",
|
|
5103
|
-
scriptStr: t
|
|
5131
|
+
scriptStr: t,
|
|
5132
|
+
nonce: e.nonce || ""
|
|
5104
5133
|
}
|
|
5105
5134
|
) : null,
|
|
5106
5135
|
/* @__PURE__ */ y(
|
|
5107
5136
|
zo,
|
|
5108
5137
|
{
|
|
5138
|
+
nonce: e.nonce || "",
|
|
5109
5139
|
isNestedRender: e.isNestedRender,
|
|
5110
|
-
contentId: (
|
|
5111
|
-
cssCode: (
|
|
5112
|
-
customFonts: (
|
|
5140
|
+
contentId: (f = r.content) == null ? void 0 : f.id,
|
|
5141
|
+
cssCode: (b = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : b.cssCode,
|
|
5142
|
+
customFonts: (j = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : j.customFonts
|
|
5113
5143
|
}
|
|
5114
5144
|
),
|
|
5115
5145
|
/* @__PURE__ */ y(
|
|
5116
5146
|
mn,
|
|
5117
5147
|
{
|
|
5118
|
-
blocks: (
|
|
5148
|
+
blocks: (V = (D = r.content) == null ? void 0 : D.data) == null ? void 0 : V.blocks,
|
|
5119
5149
|
context: r,
|
|
5120
5150
|
registeredComponents: n,
|
|
5121
5151
|
linkComponent: e.linkComponent
|
|
@@ -5156,7 +5186,8 @@ function Jo(e) {
|
|
|
5156
5186
|
qt,
|
|
5157
5187
|
{
|
|
5158
5188
|
id: "builderio-init-variants-fns",
|
|
5159
|
-
scriptStr: Ao()
|
|
5189
|
+
scriptStr: Ao(),
|
|
5190
|
+
nonce: e.nonce || ""
|
|
5160
5191
|
}
|
|
5161
5192
|
) : null,
|
|
5162
5193
|
t ? /* @__PURE__ */ se(K, { children: [
|
|
@@ -5164,20 +5195,23 @@ function Jo(e) {
|
|
|
5164
5195
|
kt,
|
|
5165
5196
|
{
|
|
5166
5197
|
id: "builderio-variants",
|
|
5167
|
-
styles: r()
|
|
5198
|
+
styles: r(),
|
|
5199
|
+
nonce: e.nonce || ""
|
|
5168
5200
|
}
|
|
5169
5201
|
),
|
|
5170
5202
|
/* @__PURE__ */ y(
|
|
5171
5203
|
qt,
|
|
5172
5204
|
{
|
|
5173
5205
|
id: "builderio-variants-visibility",
|
|
5174
|
-
scriptStr: n()
|
|
5206
|
+
scriptStr: n(),
|
|
5207
|
+
nonce: e.nonce || ""
|
|
5175
5208
|
}
|
|
5176
5209
|
),
|
|
5177
5210
|
(a = gt(e.content)) == null ? void 0 : a.map((s) => /* @__PURE__ */ y(
|
|
5178
5211
|
sr,
|
|
5179
5212
|
{
|
|
5180
5213
|
isNestedRender: e.isNestedRender,
|
|
5214
|
+
nonce: e.nonce,
|
|
5181
5215
|
content: s,
|
|
5182
5216
|
showContent: !1,
|
|
5183
5217
|
model: e.model,
|
|
@@ -5203,6 +5237,7 @@ function Jo(e) {
|
|
|
5203
5237
|
/* @__PURE__ */ y(
|
|
5204
5238
|
sr,
|
|
5205
5239
|
{
|
|
5240
|
+
nonce: e.nonce,
|
|
5206
5241
|
isNestedRender: e.isNestedRender,
|
|
5207
5242
|
content: i(),
|
|
5208
5243
|
showContent: !0,
|
|
@@ -5266,6 +5301,7 @@ async function Zo(e) {
|
|
|
5266
5301
|
return /* @__PURE__ */ y("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ y(
|
|
5267
5302
|
Jo,
|
|
5268
5303
|
{
|
|
5304
|
+
nonce: e.builderContext.nonce,
|
|
5269
5305
|
isNestedRender: !0,
|
|
5270
5306
|
apiVersion: e.builderContext.apiVersion,
|
|
5271
5307
|
apiKey: e.builderContext.apiKey,
|