@builder.io/sdk-react-nextjs 0.12.6 → 0.12.7
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/{USE_CLIENT_BUNDLE-4d4e23b4.js → USE_CLIENT_BUNDLE-456ca2b5.js} +46 -42
- package/lib/{node/USE_CLIENT_BUNDLE-343cb348.cjs → browser/USE_CLIENT_BUNDLE-9d2b983d.cjs} +2 -2
- package/lib/{edge/USE_SERVER_BUNDLE-fda604b6.js → browser/USE_SERVER_BUNDLE-e0f1c15b.js} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-19879780.cjs → browser/USE_SERVER_BUNDLE-ee4a5d19.cjs} +1 -1
- package/lib/browser/{bundle-b3104268.js → bundle-56e0b400.js} +477 -434
- package/lib/browser/{bundle-6e21e129.cjs → bundle-a408994f.cjs} +20 -20
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +6 -6
- package/lib/{node/USE_CLIENT_BUNDLE-aa8ab44a.js → edge/USE_CLIENT_BUNDLE-789e694f.js} +46 -42
- package/lib/{browser/USE_CLIENT_BUNDLE-e5d64246.cjs → edge/USE_CLIENT_BUNDLE-a6a0becc.cjs} +2 -2
- package/lib/{node/USE_SERVER_BUNDLE-cbcb1baf.cjs → edge/USE_SERVER_BUNDLE-dbf92938.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-2fdc522e.js → edge/USE_SERVER_BUNDLE-dffaa191.js} +1 -1
- package/lib/edge/{bundle-ee1ebe27.js → bundle-4bf88f38.js} +482 -439
- package/lib/edge/{bundle-f2d4a6db.cjs → bundle-97ad81d1.cjs} +28 -28
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +6 -6
- package/lib/{edge/USE_CLIENT_BUNDLE-41ee32e4.js → node/USE_CLIENT_BUNDLE-499aeaa2.js} +46 -42
- package/lib/{edge/USE_CLIENT_BUNDLE-cc55e91d.cjs → node/USE_CLIENT_BUNDLE-b2f9be29.cjs} +2 -2
- package/lib/{browser/USE_SERVER_BUNDLE-ccca985e.cjs → node/USE_SERVER_BUNDLE-b3ad9a89.cjs} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-2bf0dc28.js → node/USE_SERVER_BUNDLE-e3da6caa.js} +1 -1
- package/lib/node/{bundle-c799b7fc.cjs → bundle-97b4832a.cjs} +4 -4
- package/lib/node/{bundle-99e5b33f.js → bundle-d3f89e99.js} +216 -173
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +6 -6
- package/package.json +1 -1
- package/types/cjs/components/block/animator.d.ts +5 -0
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/types/builder-block.d.ts +18 -1
- package/types/esm/components/block/animator.d.ts +5 -0
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/types/builder-block.d.ts +18 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { LRUCache as
|
|
1
|
+
import { LRUCache as eo } from "lru-cache";
|
|
2
2
|
import { jsx as C, Fragment as L, jsxs as xe } from "react/jsx-runtime";
|
|
3
|
-
import { I as
|
|
3
|
+
import { I as to, B as no, a as ro, D as oo, b as io, C as ao, E as so, F as lo, c as co, d as uo, S as fo, V as po, e as ho } from "./USE_CLIENT_BUNDLE-789e694f.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
const
|
|
6
|
+
const mo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Da = (e) => typeof e == "string" && mo.has(e.toLowerCase()), he = "rsc", Xt = () => {
|
|
7
7
|
switch (he) {
|
|
8
8
|
case "react":
|
|
9
9
|
case "reactNative":
|
|
@@ -16,7 +16,7 @@ const ho = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr",
|
|
|
16
16
|
return "class";
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
function
|
|
19
|
+
function go(e) {
|
|
20
20
|
var t;
|
|
21
21
|
return {
|
|
22
22
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -36,20 +36,20 @@ const at = "[Builder.io]: ", z = {
|
|
|
36
36
|
function G() {
|
|
37
37
|
return typeof window < "u" && typeof document < "u";
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function yo() {
|
|
40
40
|
return G() && window.self !== window.top;
|
|
41
41
|
}
|
|
42
42
|
function Yt() {
|
|
43
|
-
return
|
|
43
|
+
return yo() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const vo = () => {
|
|
46
46
|
if (G()) {
|
|
47
47
|
const e = new URL(location.href);
|
|
48
48
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
49
49
|
} else
|
|
50
50
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
51
|
-
},
|
|
52
|
-
const e =
|
|
51
|
+
}, bo = () => typeof navigator == "object" && navigator.userAgent || "", lr = () => {
|
|
52
|
+
const e = bo(), t = {
|
|
53
53
|
Android() {
|
|
54
54
|
return e.match(/Android/i);
|
|
55
55
|
},
|
|
@@ -68,13 +68,13 @@ const yo = () => {
|
|
|
68
68
|
any() {
|
|
69
69
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || he === "reactNative";
|
|
70
70
|
}
|
|
71
|
-
}, n = e.match(/Tablet|iPad/i), r =
|
|
71
|
+
}, n = e.match(/Tablet|iPad/i), r = vo();
|
|
72
72
|
return {
|
|
73
73
|
urlPath: r == null ? void 0 : r.pathname,
|
|
74
74
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
75
75
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
76
76
|
};
|
|
77
|
-
},
|
|
77
|
+
}, cr = ({
|
|
78
78
|
builder: e,
|
|
79
79
|
context: t,
|
|
80
80
|
event: n,
|
|
@@ -86,14 +86,14 @@ const yo = () => {
|
|
|
86
86
|
builder: e,
|
|
87
87
|
context: t,
|
|
88
88
|
event: n
|
|
89
|
-
}),
|
|
89
|
+
}), So = () => ({
|
|
90
90
|
isEditing: Yt(),
|
|
91
91
|
isBrowser: G(),
|
|
92
92
|
isServer: !G(),
|
|
93
|
-
getUserAttributes: () =>
|
|
94
|
-
}),
|
|
93
|
+
getUserAttributes: () => lr()
|
|
94
|
+
}), wo = (e, {
|
|
95
95
|
isExpression: t = !0
|
|
96
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
96
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, xo = ({
|
|
97
97
|
code: e,
|
|
98
98
|
builder: t,
|
|
99
99
|
context: n,
|
|
@@ -102,11 +102,11 @@ const yo = () => {
|
|
|
102
102
|
rootSetState: i,
|
|
103
103
|
rootState: s
|
|
104
104
|
}) => {
|
|
105
|
-
const u =
|
|
105
|
+
const u = cr({
|
|
106
106
|
builder: t,
|
|
107
107
|
context: n,
|
|
108
108
|
event: r,
|
|
109
|
-
state:
|
|
109
|
+
state: ur({
|
|
110
110
|
rootState: s,
|
|
111
111
|
localState: o,
|
|
112
112
|
rootSetState: i
|
|
@@ -114,7 +114,7 @@ const yo = () => {
|
|
|
114
114
|
});
|
|
115
115
|
return new Function(...u.map(([d]) => d), e)(...u.map(([, d]) => d));
|
|
116
116
|
};
|
|
117
|
-
function
|
|
117
|
+
function ur({
|
|
118
118
|
rootState: e,
|
|
119
119
|
localState: t,
|
|
120
120
|
rootSetState: n
|
|
@@ -124,7 +124,7 @@ function cr({
|
|
|
124
124
|
if (t && o in t)
|
|
125
125
|
return t[o];
|
|
126
126
|
const i = r[o];
|
|
127
|
-
return typeof i == "object" ?
|
|
127
|
+
return typeof i == "object" ? ur({
|
|
128
128
|
rootState: i,
|
|
129
129
|
localState: void 0,
|
|
130
130
|
rootSetState: n ? (s) => {
|
|
@@ -139,15 +139,15 @@ function cr({
|
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
|
-
const
|
|
142
|
+
const fr = (e, t, n) => {
|
|
143
143
|
if (Object(e) !== e)
|
|
144
144
|
return e;
|
|
145
145
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
146
146
|
return r.slice(0, -1).reduce((o, i, s) => Object(o[i]) === o[i] ? o[i] : o[i] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
147
147
|
};
|
|
148
|
-
var N,
|
|
148
|
+
var N, ko = function(e) {
|
|
149
149
|
function t(a) {
|
|
150
|
-
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a &&
|
|
150
|
+
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Zr.test(String.fromCharCode(a));
|
|
151
151
|
}
|
|
152
152
|
function n(a) {
|
|
153
153
|
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Ln.test(String.fromCharCode(a));
|
|
@@ -178,7 +178,7 @@ var N, xo = function(e) {
|
|
|
178
178
|
this.line = Se, this.ab = f - se;
|
|
179
179
|
}
|
|
180
180
|
function s(a, l) {
|
|
181
|
-
Ce = f, O.C && (Et = new i()), I = a, d(), Q = l,
|
|
181
|
+
Ce = f, O.C && (Et = new i()), I = a, d(), Q = l, Me = a.m;
|
|
182
182
|
}
|
|
183
183
|
function u() {
|
|
184
184
|
for (var a = f, l = O.va && O.C && new i(), c = g.charCodeAt(f += 2); f < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
@@ -210,7 +210,7 @@ var N, xo = function(e) {
|
|
|
210
210
|
break;
|
|
211
211
|
else if (a === 160)
|
|
212
212
|
++f;
|
|
213
|
-
else if (5760 <= a &&
|
|
213
|
+
else if (5760 <= a && qr.test(String.fromCharCode(a)))
|
|
214
214
|
++f;
|
|
215
215
|
else
|
|
216
216
|
break;
|
|
@@ -230,11 +230,11 @@ var N, xo = function(e) {
|
|
|
230
230
|
case 44:
|
|
231
231
|
return ++f, s(ye);
|
|
232
232
|
case 91:
|
|
233
|
-
return ++f, s(Mt);
|
|
234
|
-
case 93:
|
|
235
233
|
return ++f, s(Ut);
|
|
234
|
+
case 93:
|
|
235
|
+
return ++f, s(Mt);
|
|
236
236
|
case 123:
|
|
237
|
-
return ++f, s(
|
|
237
|
+
return ++f, s(Ve);
|
|
238
238
|
case 125:
|
|
239
239
|
return ++f, s(Ie);
|
|
240
240
|
case 58:
|
|
@@ -243,7 +243,7 @@ var N, xo = function(e) {
|
|
|
243
243
|
return ++f, s(Bn);
|
|
244
244
|
case 48:
|
|
245
245
|
if (a = g.charCodeAt(f + 1), a === 120 || a === 88) {
|
|
246
|
-
f += 2, a = j(16), a === null && r(
|
|
246
|
+
f += 2, a = j(16), a === null && r(V + 2, "Expected hexadecimal number"), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), s(De, a);
|
|
247
247
|
return;
|
|
248
248
|
}
|
|
249
249
|
case 49:
|
|
@@ -260,7 +260,7 @@ var N, xo = function(e) {
|
|
|
260
260
|
case 39:
|
|
261
261
|
f++;
|
|
262
262
|
for (var l = ""; ; ) {
|
|
263
|
-
f >= ke && r(
|
|
263
|
+
f >= ke && r(V, "Unterminated string constant");
|
|
264
264
|
var c = g.charCodeAt(f);
|
|
265
265
|
if (c === a) {
|
|
266
266
|
++f, s(tt, l);
|
|
@@ -315,34 +315,34 @@ var N, xo = function(e) {
|
|
|
315
315
|
l += String.fromCharCode(c);
|
|
316
316
|
}
|
|
317
317
|
} else
|
|
318
|
-
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(
|
|
318
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(V, "Unterminated string constant"), l += String.fromCharCode(c), ++f;
|
|
319
319
|
}
|
|
320
320
|
return;
|
|
321
321
|
case 47:
|
|
322
|
-
a = g.charCodeAt(f + 1),
|
|
322
|
+
a = g.charCodeAt(f + 1), Me ? (++f, P()) : a === 61 ? S(we, 2) : S(Un, 1);
|
|
323
323
|
return;
|
|
324
324
|
case 37:
|
|
325
325
|
case 42:
|
|
326
|
-
g.charCodeAt(f + 1) === 61 ? S(we, 2) : S(
|
|
326
|
+
g.charCodeAt(f + 1) === 61 ? S(we, 2) : S(Yr, 1);
|
|
327
327
|
return;
|
|
328
328
|
case 124:
|
|
329
329
|
case 38:
|
|
330
|
-
l = g.charCodeAt(f + 1), l === a ? S(a === 124 ?
|
|
330
|
+
l = g.charCodeAt(f + 1), l === a ? S(a === 124 ? Dn : Vn, 2) : l === 61 ? S(we, 2) : S(a === 124 ? Lr : $r, 1);
|
|
331
331
|
return;
|
|
332
332
|
case 94:
|
|
333
|
-
g.charCodeAt(f + 1) === 61 ? S(we, 2) : S(
|
|
333
|
+
g.charCodeAt(f + 1) === 61 ? S(we, 2) : S(Wr, 1);
|
|
334
334
|
return;
|
|
335
335
|
case 43:
|
|
336
336
|
case 45:
|
|
337
|
-
l = g.charCodeAt(f + 1), l === a ? l === 45 && g.charCodeAt(f + 2) === 62 && ot.test(g.slice(ge, f)) ? (f += 3, u(), d(), E()) : S(
|
|
337
|
+
l = g.charCodeAt(f + 1), l === a ? l === 45 && g.charCodeAt(f + 2) === 62 && ot.test(g.slice(ge, f)) ? (f += 3, u(), d(), E()) : S(_r, 2) : l === 61 ? S(we, 2) : S(Xr, 1);
|
|
338
338
|
return;
|
|
339
339
|
case 60:
|
|
340
340
|
case 62:
|
|
341
|
-
l = g.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && g.charCodeAt(f + 2) === 62 ? 3 : 2, g.charCodeAt(f + c) === 61 ? S(we, c + 1) : S(
|
|
341
|
+
l = g.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && g.charCodeAt(f + 2) === 62 ? 3 : 2, g.charCodeAt(f + c) === 61 ? S(we, c + 1) : S(Gr, c)) : l === 33 && a === 60 && g.charCodeAt(f + 2) === 45 && g.charCodeAt(f + 3) === 45 ? (f += 4, u(), d(), E()) : (l === 61 && (c = g.charCodeAt(f + 2) === 61 ? 3 : 2), S(Kr, c));
|
|
342
342
|
return;
|
|
343
343
|
case 61:
|
|
344
344
|
case 33:
|
|
345
|
-
g.charCodeAt(f + 1) === 61 ? S(
|
|
345
|
+
g.charCodeAt(f + 1) === 61 ? S(Hr, g.charCodeAt(f + 2) === 61 ? 3 : 2) : S(a === 61 ? Mn : Fn, 1);
|
|
346
346
|
return;
|
|
347
347
|
case 126:
|
|
348
348
|
return S(Fn, 1);
|
|
@@ -350,7 +350,7 @@ var N, xo = function(e) {
|
|
|
350
350
|
return !1;
|
|
351
351
|
}
|
|
352
352
|
function E(a) {
|
|
353
|
-
if (a ? f =
|
|
353
|
+
if (a ? f = V + 1 : V = f, O.C && (Ct = new i()), a)
|
|
354
354
|
return P();
|
|
355
355
|
if (f >= ke)
|
|
356
356
|
return s(At);
|
|
@@ -404,10 +404,10 @@ var N, xo = function(e) {
|
|
|
404
404
|
var l = f, c = !1, p = g.charCodeAt(f) === 48;
|
|
405
405
|
a || j(10) !== null || r(l, "Invalid number"), g.charCodeAt(f) === 46 && (++f, j(10), c = !0), a = g.charCodeAt(f), (a === 69 || a === 101) && (a = g.charCodeAt(++f), a !== 43 && a !== 45 || ++f, j(10) === null && r(l, "Invalid number"), c = !0), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), a = g.slice(l, f);
|
|
406
406
|
var T;
|
|
407
|
-
c ? T = parseFloat(a) : p && a.length !== 1 ? /[89]/.test(a) || q ? r(l, "Invalid number") : T = parseInt(a, 8) : T = parseInt(a, 10), s(
|
|
407
|
+
c ? T = parseFloat(a) : p && a.length !== 1 ? /[89]/.test(a) || q ? r(l, "Invalid number") : T = parseInt(a, 8) : T = parseInt(a, 10), s(De, T);
|
|
408
408
|
}
|
|
409
409
|
function x(a) {
|
|
410
|
-
return a = j(16, a), a === null && r(
|
|
410
|
+
return a = j(16, a), a === null && r(V, "Bad character escape sequence"), a;
|
|
411
411
|
}
|
|
412
412
|
function B() {
|
|
413
413
|
Te = !1;
|
|
@@ -427,27 +427,27 @@ var N, xo = function(e) {
|
|
|
427
427
|
}
|
|
428
428
|
function $() {
|
|
429
429
|
var a = B(), l = Ee;
|
|
430
|
-
!Te &&
|
|
430
|
+
!Te && zr(a) && (l = Vr[a]), s(l, a);
|
|
431
431
|
}
|
|
432
432
|
function m() {
|
|
433
|
-
It =
|
|
433
|
+
It = V, ge = Ce, Tt = Et, E();
|
|
434
434
|
}
|
|
435
435
|
function ee(a) {
|
|
436
|
-
if (q = a, f =
|
|
436
|
+
if (q = a, f = V, O.C)
|
|
437
437
|
for (; f < se; )
|
|
438
438
|
se = g.lastIndexOf(`
|
|
439
439
|
`, se - 2) + 1, --Se;
|
|
440
440
|
d(), E();
|
|
441
441
|
}
|
|
442
442
|
function te() {
|
|
443
|
-
this.type = null, this.start =
|
|
443
|
+
this.type = null, this.start = V, this.end = null;
|
|
444
444
|
}
|
|
445
445
|
function Z() {
|
|
446
446
|
this.start = Ct, this.end = null, kt && (this.source = kt);
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function U() {
|
|
449
449
|
var a = new te();
|
|
450
|
-
return O.C && (a.X = new Z()), O.vb && (a.sourceFile = O.vb), O.Xa && (a.j = [
|
|
450
|
+
return O.C && (a.X = new Z()), O.vb && (a.sourceFile = O.vb), O.Xa && (a.j = [V, 0]), a;
|
|
451
451
|
}
|
|
452
452
|
function me(a) {
|
|
453
453
|
var l = new te();
|
|
@@ -459,77 +459,77 @@ var N, xo = function(e) {
|
|
|
459
459
|
function gt(a) {
|
|
460
460
|
return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function M(a) {
|
|
463
463
|
return I === a ? (m(), !0) : !1;
|
|
464
464
|
}
|
|
465
465
|
function Ze() {
|
|
466
|
-
return !O.fc && (I === At || I === Ie || ot.test(g.slice(ge,
|
|
466
|
+
return !O.fc && (I === At || I === Ie || ot.test(g.slice(ge, V)));
|
|
467
467
|
}
|
|
468
468
|
function be() {
|
|
469
|
-
|
|
469
|
+
M(ce) || Ze() || ie();
|
|
470
470
|
}
|
|
471
471
|
function F(a) {
|
|
472
472
|
I === a ? m() : ie();
|
|
473
473
|
}
|
|
474
474
|
function ie() {
|
|
475
|
-
r(
|
|
475
|
+
r(V, "Unexpected token");
|
|
476
476
|
}
|
|
477
477
|
function Qe(a) {
|
|
478
478
|
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), q && a.type === "Identifier" && rt(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
479
479
|
}
|
|
480
480
|
function ne() {
|
|
481
|
-
(I ===
|
|
482
|
-
var a = I, l =
|
|
481
|
+
(I === Un || I === we && Q === "/=") && E(!0);
|
|
482
|
+
var a = I, l = U();
|
|
483
483
|
switch (a) {
|
|
484
484
|
case Ot:
|
|
485
485
|
case gn:
|
|
486
486
|
m();
|
|
487
487
|
var c = a === Ot;
|
|
488
|
-
|
|
489
|
-
for (var p = 0; p <
|
|
490
|
-
var T =
|
|
488
|
+
M(ce) || Ze() ? l.label = null : I !== Ee ? ie() : (l.label = ae(), be());
|
|
489
|
+
for (var p = 0; p < D.length; ++p) {
|
|
490
|
+
var T = D[p];
|
|
491
491
|
if ((l.label === null || T.name === l.label.name) && (T.kind !== null && (c || T.kind === "loop") || l.label && c))
|
|
492
492
|
break;
|
|
493
493
|
}
|
|
494
|
-
return p ===
|
|
494
|
+
return p === D.length && r(l.start, "Unsyntactic " + a.l), A(l, c ? "BreakStatement" : "ContinueStatement");
|
|
495
495
|
case yn:
|
|
496
496
|
return m(), be(), A(l, "DebuggerStatement");
|
|
497
497
|
case bn:
|
|
498
|
-
return m(),
|
|
498
|
+
return m(), D.push(Ft), l.body = ne(), D.pop(), F(Bt), l.test = Ne(), be(), A(l, "DoWhileStatement");
|
|
499
499
|
case xn:
|
|
500
|
-
return m(),
|
|
500
|
+
return m(), D.push(Ft), F(le), I === ce ? yt(l, null) : I === Nt ? (a = U(), m(), pn(a, !0), A(a, "VariableDeclaration"), a.fa.length === 1 && M(nt) ? fn(l, a) : yt(l, a)) : (a = K(!1, !0), M(nt) ? (Qe(a), fn(l, a)) : yt(l, a));
|
|
501
501
|
case Rt:
|
|
502
502
|
return m(), wt(l, !0);
|
|
503
503
|
case kn:
|
|
504
|
-
return m(), l.test = Ne(), l.da = ne(), l.alternate =
|
|
504
|
+
return m(), l.test = Ne(), l.da = ne(), l.alternate = M(Sn) ? ne() : null, A(l, "IfStatement");
|
|
505
505
|
case Cn:
|
|
506
|
-
return Fe || O.Ib || r(
|
|
506
|
+
return Fe || O.Ib || r(V, "'return' outside of function"), m(), M(ce) || Ze() ? l.K = null : (l.K = K(), be()), A(l, "ReturnStatement");
|
|
507
507
|
case Pt:
|
|
508
|
-
for (m(), l.Qb = Ne(), l.tb = [], F(
|
|
509
|
-
I === jt || I === vn ? (a = I === jt, p && A(p, "SwitchCase"), l.tb.push(p =
|
|
510
|
-
return p && A(p, "SwitchCase"), m(),
|
|
508
|
+
for (m(), l.Qb = Ne(), l.tb = [], F(Ve), D.push(Qr); I !== Ie; )
|
|
509
|
+
I === jt || I === vn ? (a = I === jt, p && A(p, "SwitchCase"), l.tb.push(p = U()), p.da = [], m(), a ? p.test = K() : (c && r(It, "Multiple default clauses"), c = !0, p.test = null), F(_e)) : (p || ie(), p.da.push(ne()));
|
|
510
|
+
return p && A(p, "SwitchCase"), m(), D.pop(), A(l, "SwitchStatement");
|
|
511
511
|
case En:
|
|
512
|
-
return m(), ot.test(g.slice(ge,
|
|
512
|
+
return m(), ot.test(g.slice(ge, V)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), A(l, "ThrowStatement");
|
|
513
513
|
case In:
|
|
514
|
-
return m(), l.block = Be(), l.Ea = null, I === mn && (a =
|
|
514
|
+
return m(), l.block = Be(), l.Ea = null, I === mn && (a = U(), m(), F(le), a.Ua = ae(), q && rt(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), F(re), a.body = Be(), l.Ea = A(a, "CatchClause")), l.fb = M(wn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), A(l, "TryStatement");
|
|
515
515
|
case Nt:
|
|
516
516
|
return m(), pn(l), be(), A(l, "VariableDeclaration");
|
|
517
517
|
case Bt:
|
|
518
|
-
return m(), l.test = Ne(),
|
|
518
|
+
return m(), l.test = Ne(), D.push(Ft), l.body = ne(), D.pop(), A(l, "WhileStatement");
|
|
519
519
|
case Tn:
|
|
520
|
-
return q && r(
|
|
521
|
-
case
|
|
520
|
+
return q && r(V, "'with' in strict mode"), m(), l.object = Ne(), l.body = ne(), A(l, "WithStatement");
|
|
521
|
+
case Ve:
|
|
522
522
|
return Be();
|
|
523
523
|
case ce:
|
|
524
524
|
return m(), A(l, "EmptyStatement");
|
|
525
525
|
default:
|
|
526
|
-
if (c = Q, T = K(), a === Ee && T.type === "Identifier" &&
|
|
527
|
-
for (p = 0; p <
|
|
528
|
-
|
|
529
|
-
return
|
|
526
|
+
if (c = Q, T = K(), a === Ee && T.type === "Identifier" && M(_e)) {
|
|
527
|
+
for (p = 0; p < D.length; ++p)
|
|
528
|
+
D[p].name === c && r(T.start, "Label '" + c + "' is already declared");
|
|
529
|
+
return D.push({
|
|
530
530
|
name: c,
|
|
531
531
|
kind: I.W ? "loop" : I === Pt ? "switch" : null
|
|
532
|
-
}), l.body = ne(),
|
|
532
|
+
}), l.body = ne(), D.pop(), l.label = T, A(l, "LabeledStatement");
|
|
533
533
|
}
|
|
534
534
|
return l.la = T, be(), A(l, "ExpressionStatement");
|
|
535
535
|
}
|
|
@@ -540,8 +540,8 @@ var N, xo = function(e) {
|
|
|
540
540
|
return F(re), a;
|
|
541
541
|
}
|
|
542
542
|
function Be(a) {
|
|
543
|
-
var l =
|
|
544
|
-
for (l.body = [], F(
|
|
543
|
+
var l = U(), c = !0, p = !1;
|
|
544
|
+
for (l.body = [], F(Ve); !M(Ie); ) {
|
|
545
545
|
var T = ne();
|
|
546
546
|
if (l.body.push(T), c && a && gt(T)) {
|
|
547
547
|
var _ = p;
|
|
@@ -552,22 +552,22 @@ var N, xo = function(e) {
|
|
|
552
552
|
return p && !_ && ee(!1), A(l, "BlockStatement");
|
|
553
553
|
}
|
|
554
554
|
function yt(a, l) {
|
|
555
|
-
return a.ua = l, F(ce), a.test = I === ce ? null : K(), F(ce), a.update = I === re ? null : K(), F(re), a.body = ne(),
|
|
555
|
+
return a.ua = l, F(ce), a.test = I === ce ? null : K(), F(ce), a.update = I === re ? null : K(), F(re), a.body = ne(), D.pop(), A(a, "ForStatement");
|
|
556
556
|
}
|
|
557
557
|
function fn(a, l) {
|
|
558
|
-
return a.left = l, a.right = K(), F(re), a.body = ne(),
|
|
558
|
+
return a.left = l, a.right = K(), F(re), a.body = ne(), D.pop(), A(a, "ForInStatement");
|
|
559
559
|
}
|
|
560
560
|
function pn(a, l) {
|
|
561
561
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
562
|
-
var c =
|
|
563
|
-
if (c.id = ae(), q && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua =
|
|
562
|
+
var c = U();
|
|
563
|
+
if (c.id = ae(), q && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = M(Mn) ? K(!0, l) : null, a.fa.push(A(c, "VariableDeclarator")), !M(ye))
|
|
564
564
|
break;
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
function K(a, l) {
|
|
568
568
|
var c = vt(l);
|
|
569
569
|
if (!a && I === ye) {
|
|
570
|
-
for (a = me(c), a.xb = [c];
|
|
570
|
+
for (a = me(c), a.xb = [c]; M(ye); )
|
|
571
571
|
a.xb.push(vt(l));
|
|
572
572
|
return A(a, "SequenceExpression");
|
|
573
573
|
}
|
|
@@ -575,7 +575,7 @@ var N, xo = function(e) {
|
|
|
575
575
|
}
|
|
576
576
|
function vt(a) {
|
|
577
577
|
var l = bt(St(), -1, a);
|
|
578
|
-
if (
|
|
578
|
+
if (M(Bn)) {
|
|
579
579
|
var c = me(l);
|
|
580
580
|
c.test = l, c.da = K(!0), F(_e), c.alternate = K(!0, a), l = A(c, "ConditionalExpression");
|
|
581
581
|
}
|
|
@@ -585,89 +585,89 @@ var N, xo = function(e) {
|
|
|
585
585
|
var p = I.L;
|
|
586
586
|
if (p !== null && (!c || I !== nt) && p > l) {
|
|
587
587
|
var T = me(a);
|
|
588
|
-
return T.left = a, T.operator = Q, a = I, m(), T.right = bt(St(), p, c), p = A(T, a ===
|
|
588
|
+
return T.left = a, T.operator = Q, a = I, m(), T.right = bt(St(), p, c), p = A(T, a === Dn || a === Vn ? "LogicalExpression" : "BinaryExpression"), bt(p, l, c);
|
|
589
589
|
}
|
|
590
590
|
return a;
|
|
591
591
|
}
|
|
592
592
|
function St() {
|
|
593
593
|
if (I.prefix) {
|
|
594
|
-
var a =
|
|
595
|
-
return a.operator = Q,
|
|
594
|
+
var a = U(), l = I.$b;
|
|
595
|
+
return a.operator = Q, Me = a.prefix = !0, m(), a.K = St(), l ? Qe(a.K) : q && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), A(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
596
596
|
}
|
|
597
|
-
for (l =
|
|
597
|
+
for (l = Ue(et()); I.cc && !Ze(); )
|
|
598
598
|
a = me(l), a.operator = Q, a.prefix = !1, a.K = l, Qe(l), m(), l = A(a, "UpdateExpression");
|
|
599
599
|
return l;
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
if (
|
|
601
|
+
function Ue(a, l) {
|
|
602
|
+
if (M(Nn)) {
|
|
603
603
|
var c = me(a);
|
|
604
|
-
return c.object = a, c.Wa = ae(!0), c.bb = !1,
|
|
604
|
+
return c.object = a, c.Wa = ae(!0), c.bb = !1, Ue(A(c, "MemberExpression"), l);
|
|
605
605
|
}
|
|
606
|
-
return
|
|
606
|
+
return M(Ut) ? (c = me(a), c.object = a, c.Wa = K(), c.bb = !0, F(Mt), Ue(A(c, "MemberExpression"), l)) : !l && M(le) ? (c = me(a), c.callee = a, c.arguments = xt(re, !1), Ue(A(c, "CallExpression"), l)) : a;
|
|
607
607
|
}
|
|
608
608
|
function et() {
|
|
609
609
|
switch (I) {
|
|
610
610
|
case On:
|
|
611
|
-
var a =
|
|
611
|
+
var a = U();
|
|
612
612
|
return m(), A(a, "ThisExpression");
|
|
613
613
|
case Ee:
|
|
614
614
|
return ae();
|
|
615
|
-
case
|
|
615
|
+
case De:
|
|
616
616
|
case tt:
|
|
617
617
|
case hn:
|
|
618
|
-
return a =
|
|
618
|
+
return a = U(), a.value = Q, a.raw = g.slice(V, Ce), m(), A(a, "Literal");
|
|
619
619
|
case jn:
|
|
620
620
|
case Rn:
|
|
621
621
|
case Pn:
|
|
622
|
-
return a =
|
|
622
|
+
return a = U(), a.value = I.$a, a.raw = I.l, m(), A(a, "Literal");
|
|
623
623
|
case le:
|
|
624
624
|
a = Ct;
|
|
625
|
-
var l =
|
|
625
|
+
var l = V;
|
|
626
626
|
m();
|
|
627
627
|
var c = K();
|
|
628
628
|
return c.start = l, c.end = Ce, O.C && (c.X.start = a, c.X.end = Et), O.Xa && (c.j = [l, Ce]), F(re), c;
|
|
629
|
-
case
|
|
630
|
-
return a =
|
|
631
|
-
case
|
|
632
|
-
for (a =
|
|
629
|
+
case Ut:
|
|
630
|
+
return a = U(), m(), a.elements = xt(Mt, !0, !0), A(a, "ArrayExpression");
|
|
631
|
+
case Ve:
|
|
632
|
+
for (a = U(), l = !0, c = !1, a.h = [], m(); !M(Ie); ) {
|
|
633
633
|
if (l)
|
|
634
634
|
l = !1;
|
|
635
|
-
else if (F(ye), O.sb &&
|
|
635
|
+
else if (F(ye), O.sb && M(Ie))
|
|
636
636
|
break;
|
|
637
637
|
var p = {
|
|
638
|
-
key: I ===
|
|
638
|
+
key: I === De || I === tt ? et() : ae(!0)
|
|
639
639
|
}, T = !1;
|
|
640
|
-
if (
|
|
640
|
+
if (M(_e)) {
|
|
641
641
|
p.value = K(!0);
|
|
642
642
|
var _ = p.kind = "init";
|
|
643
643
|
} else
|
|
644
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ie() : (T = c = !0, _ = p.kind = p.key.name, p.key = I ===
|
|
644
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ie() : (T = c = !0, _ = p.kind = p.key.name, p.key = I === De || I === tt ? et() : ae(!0), I !== le && ie(), p.value = wt(U(), !1));
|
|
645
645
|
if (p.key.type === "Identifier" && (q || c))
|
|
646
646
|
for (var X = 0; X < a.h.length; ++X) {
|
|
647
647
|
var Ae = a.h[X];
|
|
648
648
|
if (Ae.key.name === p.key.name) {
|
|
649
|
-
var
|
|
650
|
-
|
|
649
|
+
var Dt = _ === Ae.kind || T && Ae.kind === "init" || _ === "init" && (Ae.kind === "get" || Ae.kind === "set");
|
|
650
|
+
Dt && !q && _ === "init" && Ae.kind === "init" && (Dt = !1), Dt && r(p.key.start, "Redefinition of property");
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
653
|
a.h.push(p);
|
|
654
654
|
}
|
|
655
655
|
return A(a, "ObjectExpression");
|
|
656
656
|
case Rt:
|
|
657
|
-
return a =
|
|
657
|
+
return a = U(), m(), wt(a, !1);
|
|
658
658
|
case An:
|
|
659
|
-
return a =
|
|
659
|
+
return a = U(), m(), a.callee = Ue(et(), !0), a.arguments = M(le) ? xt(re, !1) : Dr, A(a, "NewExpression");
|
|
660
660
|
}
|
|
661
661
|
ie();
|
|
662
662
|
}
|
|
663
663
|
function wt(a, l) {
|
|
664
664
|
I === Ee ? a.id = ae() : l ? ie() : a.id = null, a.oa = [];
|
|
665
665
|
var c = !0;
|
|
666
|
-
for (F(le); !
|
|
666
|
+
for (F(le); !M(re); )
|
|
667
667
|
c ? c = !1 : F(ye), a.oa.push(ae());
|
|
668
668
|
c = Fe;
|
|
669
|
-
var p =
|
|
670
|
-
if (Fe = !0,
|
|
669
|
+
var p = D;
|
|
670
|
+
if (Fe = !0, D = [], a.body = Be(!0), Fe = c, D = p, q || a.body.body.length && gt(a.body.body[0])) {
|
|
671
671
|
for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
|
|
672
672
|
if (p = 0 > c ? a.id : a.oa[c], (_n(p.name) || rt(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= c)
|
|
673
673
|
for (var T = 0; T < c; ++T)
|
|
@@ -676,18 +676,18 @@ var N, xo = function(e) {
|
|
|
676
676
|
return A(a, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
677
677
|
}
|
|
678
678
|
function xt(a, l, c) {
|
|
679
|
-
for (var p = [], T = !0; !
|
|
679
|
+
for (var p = [], T = !0; !M(a); ) {
|
|
680
680
|
if (T)
|
|
681
681
|
T = !1;
|
|
682
|
-
else if (F(ye), l && O.sb &&
|
|
682
|
+
else if (F(ye), l && O.sb && M(a))
|
|
683
683
|
break;
|
|
684
684
|
p.push(c && I === ye ? null : K(!0));
|
|
685
685
|
}
|
|
686
686
|
return p;
|
|
687
687
|
}
|
|
688
688
|
function ae(a) {
|
|
689
|
-
var l =
|
|
690
|
-
return a && O.yb === "everywhere" && (a = !1), I === Ee ? (!a && (O.yb &&
|
|
689
|
+
var l = U();
|
|
690
|
+
return a && O.yb === "everywhere" && (a = !1), I === Ee ? (!a && (O.yb && Jr(Q) || q && _n(Q)) && g.slice(V, Ce).indexOf("\\") === -1 && r(V, "The keyword '" + Q + "' is reserved"), l.name = Q) : a && I.l ? l.name = I.l : ie(), Me = !1, m(), A(l, "Identifier");
|
|
691
691
|
}
|
|
692
692
|
e.version = "0.5.0";
|
|
693
693
|
var O, g = "", ke, kt;
|
|
@@ -695,7 +695,7 @@ var N, xo = function(e) {
|
|
|
695
695
|
g = String(a), ke = g.length, O = l || {};
|
|
696
696
|
for (var c in dn)
|
|
697
697
|
Object.prototype.hasOwnProperty.call(O, c) || (O[c] = dn[c]);
|
|
698
|
-
for (kt = O.sourceFile, Se = 1, f = se = 0,
|
|
698
|
+
for (kt = O.sourceFile, Se = 1, f = se = 0, Me = !0, d(), c = O.dc, It = ge = f, O.C && (Tt = new i()), Fe = q = !1, D = [], E(), a = c || U(), l = !0, c || (a.body = []); I !== At; )
|
|
699
699
|
c = ne(), a.body.push(c), l && gt(c) && ee(!0), l = !1;
|
|
700
700
|
return A(a, "Program");
|
|
701
701
|
};
|
|
@@ -710,7 +710,7 @@ var N, xo = function(e) {
|
|
|
710
710
|
dc: null,
|
|
711
711
|
sourceFile: null,
|
|
712
712
|
vb: null
|
|
713
|
-
}, f = 0,
|
|
713
|
+
}, f = 0, V = 0, Ce = 0, Ct, Et, I, Q, Me, Se, se, It = 0, ge = 0, Tt, Fe, D, q, Dr = [], De = {
|
|
714
714
|
type: "num"
|
|
715
715
|
}, hn = {
|
|
716
716
|
type: "regexp"
|
|
@@ -829,12 +829,12 @@ var N, xo = function(e) {
|
|
|
829
829
|
prefix: !0,
|
|
830
830
|
m: !0
|
|
831
831
|
}
|
|
832
|
-
},
|
|
832
|
+
}, Ut = {
|
|
833
833
|
type: "[",
|
|
834
834
|
m: !0
|
|
835
|
-
},
|
|
835
|
+
}, Mt = {
|
|
836
836
|
type: "]"
|
|
837
|
-
},
|
|
837
|
+
}, Ve = {
|
|
838
838
|
type: "{",
|
|
839
839
|
m: !0
|
|
840
840
|
}, Ie = {
|
|
@@ -858,60 +858,60 @@ var N, xo = function(e) {
|
|
|
858
858
|
}, Bn = {
|
|
859
859
|
type: "?",
|
|
860
860
|
m: !0
|
|
861
|
-
},
|
|
861
|
+
}, Un = {
|
|
862
862
|
L: 10,
|
|
863
863
|
m: !0
|
|
864
|
-
},
|
|
864
|
+
}, Mn = {
|
|
865
865
|
Cb: !0,
|
|
866
866
|
m: !0
|
|
867
867
|
}, we = {
|
|
868
868
|
Cb: !0,
|
|
869
869
|
m: !0
|
|
870
|
-
},
|
|
870
|
+
}, _r = {
|
|
871
871
|
cc: !0,
|
|
872
872
|
prefix: !0,
|
|
873
873
|
$b: !0
|
|
874
874
|
}, Fn = {
|
|
875
875
|
prefix: !0,
|
|
876
876
|
m: !0
|
|
877
|
-
},
|
|
877
|
+
}, Dn = {
|
|
878
878
|
L: 1,
|
|
879
879
|
m: !0
|
|
880
|
-
},
|
|
880
|
+
}, Vn = {
|
|
881
881
|
L: 2,
|
|
882
882
|
m: !0
|
|
883
|
-
},
|
|
883
|
+
}, Lr = {
|
|
884
884
|
L: 3,
|
|
885
885
|
m: !0
|
|
886
|
-
},
|
|
886
|
+
}, Wr = {
|
|
887
887
|
L: 4,
|
|
888
888
|
m: !0
|
|
889
|
-
},
|
|
889
|
+
}, $r = {
|
|
890
890
|
L: 5,
|
|
891
891
|
m: !0
|
|
892
|
-
},
|
|
892
|
+
}, Hr = {
|
|
893
893
|
L: 6,
|
|
894
894
|
m: !0
|
|
895
|
-
},
|
|
895
|
+
}, Kr = {
|
|
896
896
|
L: 7,
|
|
897
897
|
m: !0
|
|
898
|
-
},
|
|
898
|
+
}, Gr = {
|
|
899
899
|
L: 8,
|
|
900
900
|
m: !0
|
|
901
|
-
},
|
|
901
|
+
}, Xr = {
|
|
902
902
|
L: 9,
|
|
903
903
|
prefix: !0,
|
|
904
904
|
m: !0
|
|
905
|
-
},
|
|
905
|
+
}, Yr = {
|
|
906
906
|
L: 10,
|
|
907
907
|
m: !0
|
|
908
|
-
},
|
|
908
|
+
}, Jr = o("class enum extends super const export import"), _n = o("implements interface let package private protected public static yield"), rt = o("eval arguments"), zr = o("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"), qr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ln = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Zr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ot = /[\n\r\u2028\u2029]/, it = /\r\n|[\n\r\u2028\u2029]/g, Te, Ft = {
|
|
909
909
|
kind: "loop"
|
|
910
|
-
},
|
|
910
|
+
}, Qr = {
|
|
911
911
|
kind: "switch"
|
|
912
912
|
};
|
|
913
913
|
}, Lt = Lt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
914
|
-
|
|
914
|
+
ko(Lt.j || (Lt.j = {}));
|
|
915
915
|
function h(e, t) {
|
|
916
916
|
typeof e == "string" && (e = je(e, "code"));
|
|
917
917
|
var n = e.constructor;
|
|
@@ -953,7 +953,7 @@ var Wn = {
|
|
|
953
953
|
configurable: !1,
|
|
954
954
|
enumerable: !0,
|
|
955
955
|
writable: !0
|
|
956
|
-
},
|
|
956
|
+
}, pr = {
|
|
957
957
|
STEP_ERROR: !0
|
|
958
958
|
}, Pe = {
|
|
959
959
|
SCOPE_REFERENCE: !0
|
|
@@ -961,7 +961,7 @@ var Wn = {
|
|
|
961
961
|
VALUE_IN_DESCRIPTOR: !0
|
|
962
962
|
}, Oe = {
|
|
963
963
|
REGEXP_TIMEOUT: !0
|
|
964
|
-
}, Hn = [], fe = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis,
|
|
964
|
+
}, Hn = [], fe = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis, Co = ["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();", "};"];
|
|
965
965
|
function zt(e) {
|
|
966
966
|
var t = e >>> 0;
|
|
967
967
|
return t === Number(e) ? t : NaN;
|
|
@@ -1012,7 +1012,7 @@ N.lb = function() {
|
|
|
1012
1012
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
1013
1013
|
n = null;
|
|
1014
1014
|
else {
|
|
1015
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
1015
|
+
this.ca.shift(), 0 <= n.interval && mr(this, n, n.interval);
|
|
1016
1016
|
var r = new b(n.node, n.scope);
|
|
1017
1017
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1018
1018
|
}
|
|
@@ -1025,7 +1025,7 @@ N.lb = function() {
|
|
|
1025
1025
|
try {
|
|
1026
1026
|
var i = this.rb[r.type](e, n, r);
|
|
1027
1027
|
} catch (s) {
|
|
1028
|
-
if (s !==
|
|
1028
|
+
if (s !== pr)
|
|
1029
1029
|
throw this.value !== s && (this.value = void 0), s;
|
|
1030
1030
|
} finally {
|
|
1031
1031
|
Ge = o;
|
|
@@ -1043,8 +1043,8 @@ N.Eb = function() {
|
|
|
1043
1043
|
;
|
|
1044
1044
|
return this.za;
|
|
1045
1045
|
};
|
|
1046
|
-
function
|
|
1047
|
-
e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t, Jt), e.g(t, "this", t, Le), e.g(t, "self", t), e.M = new R(null), e.Z = new R(e.M),
|
|
1046
|
+
function Eo(e, t) {
|
|
1047
|
+
e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t, Jt), e.g(t, "this", t, Le), e.g(t, "self", t), e.M = new R(null), e.Z = new R(e.M), Io(e, t), To(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Ao(e, t), Oo(e, t), jo(e, t), Ro(e, t), Po(e, t), No(e, t), Bo(e, t), Uo(e, t), Mo(e, t);
|
|
1048
1048
|
var n = e.i(function() {
|
|
1049
1049
|
throw EvalError("Can't happen");
|
|
1050
1050
|
}, !1);
|
|
@@ -1070,7 +1070,7 @@ function Co(e, t) {
|
|
|
1070
1070
|
}, e.g(t, "clearInterval", e.i(n, !1), y), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
1071
1071
|
}
|
|
1072
1072
|
N.Wb = 0;
|
|
1073
|
-
function
|
|
1073
|
+
function Io(e, t) {
|
|
1074
1074
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1075
1075
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1076
1076
|
if (s) {
|
|
@@ -1091,7 +1091,7 @@ function Eo(e, t) {
|
|
|
1091
1091
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, y), e.g(e.O, "prototype", e.Z, y), e.g(e.Z, "constructor", e.O, y), e.Z.Ta = function() {
|
|
1092
1092
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, J), e.Z.H = "Function", r = function(o, i) {
|
|
1093
1093
|
var s = e.o[e.o.length - 1];
|
|
1094
|
-
s.U = this, s.B = o, s.F = [], i != null && (i instanceof R ? s.F =
|
|
1094
|
+
s.U = this, s.B = o, s.F = [], i != null && (i instanceof R ? s.F = dr(e, i) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1095
1095
|
}, W(e, e.O, "apply", r), r = function(o) {
|
|
1096
1096
|
var i = e.o[e.o.length - 1];
|
|
1097
1097
|
i.U = this, i.B = o, i.F = [];
|
|
@@ -1104,7 +1104,7 @@ function Eo(e, t) {
|
|
|
1104
1104
|
return this.valueOf();
|
|
1105
1105
|
}, W(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), y);
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function To(e, t) {
|
|
1108
1108
|
function n(o) {
|
|
1109
1109
|
o != null || w(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1110
1110
|
}
|
|
@@ -1149,7 +1149,7 @@ function Io(e, t) {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
}, W(e, e.v, "isPrototypeOf", r);
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function Ao(e, t) {
|
|
1153
1153
|
var n = function(r) {
|
|
1154
1154
|
var o = de(e) ? this : Re(e), i = arguments[0];
|
|
1155
1155
|
if (arguments.length === 1 && typeof i == "number")
|
|
@@ -1169,7 +1169,7 @@ function To(e, t) {
|
|
|
1169
1169
|
writable: !0
|
|
1170
1170
|
}), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function Oo(e, t) {
|
|
1173
1173
|
var n = function(r) {
|
|
1174
1174
|
return r = arguments.length ? ve.String(r) : "", de(e) ? (this.data = r, this) : r;
|
|
1175
1175
|
};
|
|
@@ -1252,12 +1252,12 @@ function Ao(e, t) {
|
|
|
1252
1252
|
i(s.replace(r, o));
|
|
1253
1253
|
}, Ke(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1254
1254
|
}
|
|
1255
|
-
function
|
|
1255
|
+
function jo(e, t) {
|
|
1256
1256
|
e.mb = e.i(function(n) {
|
|
1257
1257
|
return n = ve.Boolean(n), de(e) ? (this.data = n, this) : n;
|
|
1258
1258
|
}, !0), e.g(t, "Boolean", e.mb, y);
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1260
|
+
function Ro(e, t) {
|
|
1261
1261
|
var n = function(r) {
|
|
1262
1262
|
return r = arguments.length ? ve.Number(r) : 0, de(e) ? (this.data = r, this) : r;
|
|
1263
1263
|
};
|
|
@@ -1296,7 +1296,7 @@ function jo(e, t) {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
}, W(e, e.aa, "toLocaleString", n);
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1299
|
+
function Po(e, t) {
|
|
1300
1300
|
var n = function(o, i) {
|
|
1301
1301
|
if (!de(e))
|
|
1302
1302
|
return ve.Date();
|
|
@@ -1315,7 +1315,7 @@ function Ro(e, t) {
|
|
|
1315
1315
|
};
|
|
1316
1316
|
}(t[r]), W(e, e.$, t[r], n);
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function No(e, t) {
|
|
1319
1319
|
var n = function(r, o) {
|
|
1320
1320
|
if (de(e))
|
|
1321
1321
|
var i = this;
|
|
@@ -1357,7 +1357,7 @@ function Po(e, t) {
|
|
|
1357
1357
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(i(r));
|
|
1358
1358
|
}, Ke(e, e.I, "exec", n);
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1360
|
+
function Bo(e, t) {
|
|
1361
1361
|
function n(r) {
|
|
1362
1362
|
var o = e.i(function(i) {
|
|
1363
1363
|
var s = de(e) ? this : e.Aa(o);
|
|
@@ -1370,7 +1370,7 @@ function No(e, t) {
|
|
|
1370
1370
|
return Wt(e, o, r), o;
|
|
1371
1371
|
}, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Uo(e, t) {
|
|
1374
1374
|
var n = e.s(e.M);
|
|
1375
1375
|
e.g(t, "Math", n, y);
|
|
1376
1376
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1389,7 +1389,7 @@ function Mo(e, t) {
|
|
|
1389
1389
|
}
|
|
1390
1390
|
return e.Ia(o);
|
|
1391
1391
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
|
|
1392
|
-
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o =
|
|
1392
|
+
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = dr(e, o), o = o.filter(function(u) {
|
|
1393
1393
|
return typeof u == "string" || typeof u == "number";
|
|
1394
1394
|
})) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
|
|
1395
1395
|
try {
|
|
@@ -1434,7 +1434,7 @@ function Wt(e, t, n) {
|
|
|
1434
1434
|
}
|
|
1435
1435
|
N.ha = function() {
|
|
1436
1436
|
var e = this.ha.Mb;
|
|
1437
|
-
return e || (e = new Blob([
|
|
1437
|
+
return e || (e = new Blob([Co.join(`
|
|
1438
1438
|
`)], {
|
|
1439
1439
|
type: "application/javascript"
|
|
1440
1440
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1575,7 +1575,7 @@ function ue(e, t) {
|
|
|
1575
1575
|
e.g(n, r[o], t[r[o]]);
|
|
1576
1576
|
return n;
|
|
1577
1577
|
}
|
|
1578
|
-
function
|
|
1578
|
+
function dr(e, t) {
|
|
1579
1579
|
var n = [], r;
|
|
1580
1580
|
for (r in t.h)
|
|
1581
1581
|
n[r] = e.G(t, r);
|
|
@@ -1713,12 +1713,12 @@ function $t(e, t, n) {
|
|
|
1713
1713
|
var o = t.body && t.body[0];
|
|
1714
1714
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1715
1715
|
}
|
|
1716
|
-
return o = e.s(null), r = new
|
|
1716
|
+
return o = e.s(null), r = new gr(n, r, o), n || Eo(e, r.object), Je(e, t, r), r;
|
|
1717
1717
|
}
|
|
1718
1718
|
function tn(e, t, n) {
|
|
1719
1719
|
if (!t)
|
|
1720
1720
|
throw Error("parentScope required");
|
|
1721
|
-
return e = n || e.s(null), new
|
|
1721
|
+
return e = n || e.s(null), new gr(t, t.S, e);
|
|
1722
1722
|
}
|
|
1723
1723
|
function nn(e, t) {
|
|
1724
1724
|
for (var n = en(e); n && n !== e.N; ) {
|
|
@@ -1730,7 +1730,7 @@ function nn(e, t) {
|
|
|
1730
1730
|
return e.G(n.object, t);
|
|
1731
1731
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1732
1732
|
}
|
|
1733
|
-
function
|
|
1733
|
+
function hr(e, t, n) {
|
|
1734
1734
|
for (var r = en(e), o = r.S; r && r !== e.N; ) {
|
|
1735
1735
|
if (t in r.object.h) {
|
|
1736
1736
|
try {
|
|
@@ -1802,10 +1802,10 @@ function rn(e, t) {
|
|
|
1802
1802
|
return t[0] === Pe ? nn(e, t[1]) : e.G(t[0], t[1]);
|
|
1803
1803
|
}
|
|
1804
1804
|
function on(e, t, n) {
|
|
1805
|
-
return t[0] === Pe ?
|
|
1805
|
+
return t[0] === Pe ? hr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1806
1806
|
}
|
|
1807
1807
|
function w(e, t, n) {
|
|
1808
|
-
throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t), Wt(e, t, n)), ze(e, 4, t),
|
|
1808
|
+
throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t), Wt(e, t, n)), ze(e, 4, t), pr) : n === void 0 ? t : n;
|
|
1809
1809
|
}
|
|
1810
1810
|
function ze(e, t, n, r) {
|
|
1811
1811
|
if (t === 0)
|
|
@@ -1898,9 +1898,9 @@ function Kn(e, t, n) {
|
|
|
1898
1898
|
}
|
|
1899
1899
|
s.type = "EvalProgram_", s.body = d.body, r = r.node.arguments[0], ut(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1900
1900
|
}
|
|
1901
|
-
return t = new
|
|
1901
|
+
return t = new Fo(u, o, r, s, t ? n : -1), mr(e, t, n), t.Db;
|
|
1902
1902
|
}
|
|
1903
|
-
function
|
|
1903
|
+
function mr(e, t, n) {
|
|
1904
1904
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
1905
1905
|
return r.time - o.time;
|
|
1906
1906
|
});
|
|
@@ -1926,7 +1926,7 @@ function an(e, t, n, r) {
|
|
|
1926
1926
|
var o = e.ya();
|
|
1927
1927
|
return o.type = "CallExpression", e = new b(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1928
1928
|
}
|
|
1929
|
-
function
|
|
1929
|
+
function Vt(e, t) {
|
|
1930
1930
|
return t == null ? e.Na : t instanceof R ? t : (e = e.s(pe(e, t)), e.data = t, e);
|
|
1931
1931
|
}
|
|
1932
1932
|
N.Xb = function() {
|
|
@@ -1941,7 +1941,7 @@ N.ec = function(e) {
|
|
|
1941
1941
|
function b(e, t) {
|
|
1942
1942
|
this.node = e, this.scope = t;
|
|
1943
1943
|
}
|
|
1944
|
-
function
|
|
1944
|
+
function gr(e, t, n) {
|
|
1945
1945
|
this.Va = e, this.S = t, this.object = n;
|
|
1946
1946
|
}
|
|
1947
1947
|
function R(e) {
|
|
@@ -2002,10 +2002,10 @@ N.toString = function() {
|
|
|
2002
2002
|
N.valueOf = function() {
|
|
2003
2003
|
return !Ge || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2004
2004
|
};
|
|
2005
|
-
function
|
|
2006
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++
|
|
2005
|
+
function Fo(e, t, n, r, o) {
|
|
2006
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Do, this.time = 0;
|
|
2007
2007
|
}
|
|
2008
|
-
var
|
|
2008
|
+
var Do = 0;
|
|
2009
2009
|
h.prototype.stepArrayExpression = function(e, t, n) {
|
|
2010
2010
|
n = n.elements;
|
|
2011
2011
|
var r = t.A || 0;
|
|
@@ -2194,7 +2194,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2194
2194
|
this.g(r, o, t.F[o]);
|
|
2195
2195
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2196
2196
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2197
|
-
return n.S || (t.B =
|
|
2197
|
+
return n.S || (t.B = Vt(this, t.B)), this.g(n.object, "this", t.B, Jt), t.value = void 0, new b(e.body, n);
|
|
2198
2198
|
}
|
|
2199
2199
|
if (o.eval)
|
|
2200
2200
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2208,12 +2208,12 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2208
2208
|
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, ut(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = $t(this, r, n) : Je(this, r, n), this.value = void 0, new b(o, n);
|
|
2209
2209
|
}
|
|
2210
2210
|
else if (o.Ta)
|
|
2211
|
-
t.scope.S || (t.B =
|
|
2211
|
+
t.scope.S || (t.B = Vt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2212
2212
|
else if (o.Za) {
|
|
2213
2213
|
var s = this;
|
|
2214
2214
|
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
|
|
2215
2215
|
t.value = u, s.za = !1;
|
|
2216
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2216
|
+
}), this.za = !0, t.scope.S || (t.B = Vt(this, t.B)), o.Za.apply(t.B, r);
|
|
2217
2217
|
} else
|
|
2218
2218
|
w(this, this.j, Y(this, n.callee) + " is not callable");
|
|
2219
2219
|
}
|
|
@@ -2526,7 +2526,7 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2526
2526
|
h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2527
2527
|
n = n.fa;
|
|
2528
2528
|
var r = t.A || 0, o = n[r];
|
|
2529
|
-
for (t.Bb && o && (
|
|
2529
|
+
for (t.Bb && o && (hr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2530
2530
|
if (o.ua)
|
|
2531
2531
|
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new b(o.ua, t.scope);
|
|
2532
2532
|
o = n[++r];
|
|
@@ -2566,7 +2566,7 @@ const Vo = (e) => e.split(`
|
|
|
2566
2566
|
${u}
|
|
2567
2567
|
`;
|
|
2568
2568
|
}).filter(Boolean).join(`
|
|
2569
|
-
`), Xn = (e) => e + "JSON",
|
|
2569
|
+
`), Xn = (e) => e + "JSON", _o = ({
|
|
2570
2570
|
builder: e,
|
|
2571
2571
|
context: t,
|
|
2572
2572
|
event: n,
|
|
@@ -2578,7 +2578,7 @@ const Vo = (e) => e.split(`
|
|
|
2578
2578
|
const u = {
|
|
2579
2579
|
...r,
|
|
2580
2580
|
...o
|
|
2581
|
-
}, d =
|
|
2581
|
+
}, d = cr({
|
|
2582
2582
|
builder: e,
|
|
2583
2583
|
context: t,
|
|
2584
2584
|
event: n,
|
|
@@ -2600,7 +2600,7 @@ function theFunction() {
|
|
|
2600
2600
|
}
|
|
2601
2601
|
theFunction();
|
|
2602
2602
|
`, P = (v, x) => {
|
|
2603
|
-
const B =
|
|
2603
|
+
const B = fr(u, v, x);
|
|
2604
2604
|
i == null || i(B);
|
|
2605
2605
|
}, j = function(v, x) {
|
|
2606
2606
|
d.forEach(([B, $]) => {
|
|
@@ -2618,17 +2618,17 @@ theFunction();
|
|
|
2618
2618
|
return;
|
|
2619
2619
|
}
|
|
2620
2620
|
}, oe = (e) => e != null;
|
|
2621
|
-
function
|
|
2621
|
+
function Lo() {
|
|
2622
2622
|
var e;
|
|
2623
2623
|
return typeof process < "u" && oe((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2624
2624
|
}
|
|
2625
|
-
const
|
|
2625
|
+
const Wo = () => {
|
|
2626
2626
|
var r;
|
|
2627
|
-
if (!
|
|
2627
|
+
if (!Lo())
|
|
2628
2628
|
return !1;
|
|
2629
2629
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2630
2630
|
return e && t && !n ? (z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2631
|
-
},
|
|
2631
|
+
}, $o = (e) => G() || Wo() ? xo(e) : _o(e);
|
|
2632
2632
|
function sn({
|
|
2633
2633
|
code: e,
|
|
2634
2634
|
context: t,
|
|
@@ -2643,10 +2643,10 @@ function sn({
|
|
|
2643
2643
|
return;
|
|
2644
2644
|
}
|
|
2645
2645
|
const u = {
|
|
2646
|
-
code:
|
|
2646
|
+
code: wo(e, {
|
|
2647
2647
|
isExpression: s
|
|
2648
2648
|
}),
|
|
2649
|
-
builder:
|
|
2649
|
+
builder: So(),
|
|
2650
2650
|
context: t,
|
|
2651
2651
|
event: i,
|
|
2652
2652
|
rootSetState: o,
|
|
@@ -2654,7 +2654,7 @@ function sn({
|
|
|
2654
2654
|
localState: n
|
|
2655
2655
|
};
|
|
2656
2656
|
try {
|
|
2657
|
-
return
|
|
2657
|
+
return $o(u);
|
|
2658
2658
|
} catch (d) {
|
|
2659
2659
|
z.error("Failed code evaluation: " + d.message, {
|
|
2660
2660
|
code: e
|
|
@@ -2663,7 +2663,7 @@ function sn({
|
|
|
2663
2663
|
}
|
|
2664
2664
|
}
|
|
2665
2665
|
const pt = (e) => JSON.parse(JSON.stringify(e));
|
|
2666
|
-
const
|
|
2666
|
+
const Ho = ({
|
|
2667
2667
|
block: e,
|
|
2668
2668
|
context: t,
|
|
2669
2669
|
localState: n,
|
|
@@ -2689,7 +2689,7 @@ const $o = ({
|
|
|
2689
2689
|
rootSetState: o,
|
|
2690
2690
|
context: t
|
|
2691
2691
|
});
|
|
2692
|
-
|
|
2692
|
+
fr(s, u, k);
|
|
2693
2693
|
}
|
|
2694
2694
|
return s;
|
|
2695
2695
|
};
|
|
@@ -2702,7 +2702,7 @@ function ct({
|
|
|
2702
2702
|
rootSetState: i
|
|
2703
2703
|
}) {
|
|
2704
2704
|
const s = e;
|
|
2705
|
-
return n ?
|
|
2705
|
+
return n ? Ho({
|
|
2706
2706
|
block: s,
|
|
2707
2707
|
localState: r,
|
|
2708
2708
|
rootState: o,
|
|
@@ -2710,7 +2710,7 @@ function ct({
|
|
|
2710
2710
|
context: t
|
|
2711
2711
|
}) : s;
|
|
2712
2712
|
}
|
|
2713
|
-
const
|
|
2713
|
+
const Ko = ({
|
|
2714
2714
|
block: e,
|
|
2715
2715
|
context: t,
|
|
2716
2716
|
registeredComponents: n
|
|
@@ -2732,7 +2732,7 @@ const Ho = ({
|
|
|
2732
2732
|
console.warn(`
|
|
2733
2733
|
Could not find a registered component named "${r}".
|
|
2734
2734
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2735
|
-
},
|
|
2735
|
+
}, Go = ({
|
|
2736
2736
|
block: e,
|
|
2737
2737
|
context: t
|
|
2738
2738
|
}) => {
|
|
@@ -2765,7 +2765,7 @@ const Ho = ({
|
|
|
2765
2765
|
},
|
|
2766
2766
|
block: r
|
|
2767
2767
|
}));
|
|
2768
|
-
},
|
|
2768
|
+
}, yr = {
|
|
2769
2769
|
small: {
|
|
2770
2770
|
min: 320,
|
|
2771
2771
|
default: 321,
|
|
@@ -2781,11 +2781,11 @@ const Ho = ({
|
|
|
2781
2781
|
default: 991,
|
|
2782
2782
|
max: 1200
|
|
2783
2783
|
}
|
|
2784
|
-
}, Yn = (e, t =
|
|
2784
|
+
}, Yn = (e, t = yr) => `@media (max-width: ${t[e].max}px)`, vr = ({
|
|
2785
2785
|
small: e,
|
|
2786
2786
|
medium: t
|
|
2787
2787
|
}) => {
|
|
2788
|
-
const n = pt(
|
|
2788
|
+
const n = pt(yr);
|
|
2789
2789
|
if (!e || !t)
|
|
2790
2790
|
return n;
|
|
2791
2791
|
const r = Math.floor(e / 2);
|
|
@@ -2807,17 +2807,17 @@ const Ho = ({
|
|
|
2807
2807
|
min: i,
|
|
2808
2808
|
default: i + 1
|
|
2809
2809
|
}, n;
|
|
2810
|
-
},
|
|
2810
|
+
}, Xo = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), br = (e) => Object.entries(e).map(([n, r]) => {
|
|
2811
2811
|
if (typeof r == "string")
|
|
2812
|
-
return `${
|
|
2813
|
-
}).filter(oe),
|
|
2812
|
+
return `${Xo(n)}: ${r};`;
|
|
2813
|
+
}).filter(oe), Yo = (e) => br(e).join(`
|
|
2814
2814
|
`), _t = ({
|
|
2815
2815
|
mediaQuery: e,
|
|
2816
2816
|
className: t,
|
|
2817
2817
|
styles: n
|
|
2818
2818
|
}) => {
|
|
2819
2819
|
const r = `.${t} {
|
|
2820
|
-
${
|
|
2820
|
+
${Yo(n)}
|
|
2821
2821
|
}`;
|
|
2822
2822
|
return e ? `${e} {
|
|
2823
2823
|
${r}
|
|
@@ -2826,7 +2826,7 @@ const Ho = ({
|
|
|
2826
2826
|
function dt(e) {
|
|
2827
2827
|
return /* @__PURE__ */ C("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2828
2828
|
}
|
|
2829
|
-
function
|
|
2829
|
+
function Jo(e) {
|
|
2830
2830
|
const t = function() {
|
|
2831
2831
|
const o = ct({
|
|
2832
2832
|
block: e.block,
|
|
@@ -2846,7 +2846,7 @@ function Yo(e) {
|
|
|
2846
2846
|
rootSetState: e.context.rootSetState,
|
|
2847
2847
|
context: e.context.context,
|
|
2848
2848
|
shouldEvaluateBindings: !0
|
|
2849
|
-
}), i = o.responsiveStyles, s = e.context.content, u =
|
|
2849
|
+
}), i = o.responsiveStyles, s = e.context.content, u = vr(
|
|
2850
2850
|
((x = s == null ? void 0 : s.meta) == null ? void 0 : x.breakpoints) || {}
|
|
2851
2851
|
), d = i == null ? void 0 : i.large, k = i == null ? void 0 : i.medium, E = i == null ? void 0 : i.small, S = o.id;
|
|
2852
2852
|
if (!S)
|
|
@@ -2873,10 +2873,10 @@ function Yo(e) {
|
|
|
2873
2873
|
};
|
|
2874
2874
|
return /* @__PURE__ */ C(L, { children: n() && t() ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(dt, { styles: n() }) }) : null });
|
|
2875
2875
|
}
|
|
2876
|
-
function
|
|
2876
|
+
function zo(e) {
|
|
2877
2877
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2878
2878
|
}
|
|
2879
|
-
const
|
|
2879
|
+
const qo = (e) => `on${zo(e)}`, Zo = (e, t) => (n) => sn({
|
|
2880
2880
|
code: e,
|
|
2881
2881
|
context: t.context,
|
|
2882
2882
|
localState: t.localState,
|
|
@@ -2885,13 +2885,13 @@ const zo = (e) => `on${Jo(e)}`, qo = (e, t) => (n) => sn({
|
|
|
2885
2885
|
event: n,
|
|
2886
2886
|
isExpression: !1
|
|
2887
2887
|
});
|
|
2888
|
-
function
|
|
2888
|
+
function Va(e) {
|
|
2889
2889
|
const t = {}, n = e.block.actions ?? {};
|
|
2890
2890
|
for (const r in n) {
|
|
2891
2891
|
if (!n.hasOwnProperty(r))
|
|
2892
2892
|
continue;
|
|
2893
2893
|
const o = n[r];
|
|
2894
|
-
let i =
|
|
2894
|
+
let i = qo(r);
|
|
2895
2895
|
if (e.stripPrefix)
|
|
2896
2896
|
switch (he) {
|
|
2897
2897
|
case "vue":
|
|
@@ -2901,29 +2901,29 @@ function Ba(e) {
|
|
|
2901
2901
|
i = i.replace("on:", "");
|
|
2902
2902
|
break;
|
|
2903
2903
|
}
|
|
2904
|
-
t[i] =
|
|
2904
|
+
t[i] = Zo(o, e);
|
|
2905
2905
|
}
|
|
2906
2906
|
return t;
|
|
2907
2907
|
}
|
|
2908
|
-
function
|
|
2908
|
+
function Qo({
|
|
2909
2909
|
style: e
|
|
2910
2910
|
}) {
|
|
2911
2911
|
return e;
|
|
2912
2912
|
}
|
|
2913
|
-
const
|
|
2913
|
+
const ei = ({
|
|
2914
2914
|
block: e,
|
|
2915
2915
|
context: t
|
|
2916
|
-
}) =>
|
|
2916
|
+
}) => Sr(Qo({
|
|
2917
2917
|
style: e.style || {},
|
|
2918
2918
|
context: t,
|
|
2919
2919
|
block: e
|
|
2920
2920
|
}));
|
|
2921
|
-
function
|
|
2921
|
+
function Sr(e) {
|
|
2922
2922
|
switch (he) {
|
|
2923
2923
|
case "svelte":
|
|
2924
2924
|
case "vue":
|
|
2925
2925
|
case "solid":
|
|
2926
|
-
return
|
|
2926
|
+
return br(e).join(" ");
|
|
2927
2927
|
case "qwik":
|
|
2928
2928
|
case "reactNative":
|
|
2929
2929
|
case "react":
|
|
@@ -2931,36 +2931,36 @@ function br(e) {
|
|
|
2931
2931
|
return e;
|
|
2932
2932
|
}
|
|
2933
2933
|
}
|
|
2934
|
-
function
|
|
2934
|
+
function ti({
|
|
2935
2935
|
properties: e
|
|
2936
2936
|
}) {
|
|
2937
2937
|
return e;
|
|
2938
2938
|
}
|
|
2939
|
-
const
|
|
2939
|
+
const ni = (e) => ({
|
|
2940
2940
|
href: e.href
|
|
2941
2941
|
});
|
|
2942
|
-
function
|
|
2942
|
+
function ri({
|
|
2943
2943
|
block: e,
|
|
2944
2944
|
context: t
|
|
2945
2945
|
}) {
|
|
2946
2946
|
var r;
|
|
2947
2947
|
const n = {
|
|
2948
|
-
...
|
|
2948
|
+
...ni(e),
|
|
2949
2949
|
...e.properties,
|
|
2950
2950
|
"builder-id": e.id,
|
|
2951
|
-
style:
|
|
2951
|
+
style: ei({
|
|
2952
2952
|
block: e,
|
|
2953
2953
|
context: t
|
|
2954
2954
|
}),
|
|
2955
2955
|
[Xt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
2956
2956
|
};
|
|
2957
|
-
return
|
|
2957
|
+
return ti({
|
|
2958
2958
|
properties: n,
|
|
2959
2959
|
context: t,
|
|
2960
2960
|
block: e
|
|
2961
2961
|
});
|
|
2962
2962
|
}
|
|
2963
|
-
const
|
|
2963
|
+
const oi = ({
|
|
2964
2964
|
componentOptions: e,
|
|
2965
2965
|
builderBlock: t,
|
|
2966
2966
|
context: n,
|
|
@@ -2976,7 +2976,7 @@ const ri = ({
|
|
|
2976
2976
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
2977
2977
|
*/
|
|
2978
2978
|
...o ? {
|
|
2979
|
-
attributes:
|
|
2979
|
+
attributes: ri({
|
|
2980
2980
|
block: t,
|
|
2981
2981
|
context: s
|
|
2982
2982
|
})
|
|
@@ -2992,11 +2992,11 @@ const ri = ({
|
|
|
2992
2992
|
};
|
|
2993
2993
|
function Jn(e) {
|
|
2994
2994
|
var n;
|
|
2995
|
-
const t = e.isInteractive ?
|
|
2995
|
+
const t = e.isInteractive ? to : e.componentRef;
|
|
2996
2996
|
return /* @__PURE__ */ C(L, { children: e.componentRef ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
|
|
2997
2997
|
t,
|
|
2998
2998
|
{
|
|
2999
|
-
...
|
|
2999
|
+
...oi({
|
|
3000
3000
|
componentOptions: e.componentOptions,
|
|
3001
3001
|
builderBlock: e.builderBlock,
|
|
3002
3002
|
context: e.context,
|
|
@@ -3019,7 +3019,7 @@ function Jn(e) {
|
|
|
3019
3019
|
}
|
|
3020
3020
|
) }) : null });
|
|
3021
3021
|
}
|
|
3022
|
-
function
|
|
3022
|
+
function ii(e) {
|
|
3023
3023
|
const t = e.repeatContext;
|
|
3024
3024
|
return /* @__PURE__ */ C(
|
|
3025
3025
|
ht,
|
|
@@ -3034,13 +3034,13 @@ function oi(e) {
|
|
|
3034
3034
|
function ht(e) {
|
|
3035
3035
|
var k, E, S;
|
|
3036
3036
|
const t = function() {
|
|
3037
|
-
return
|
|
3037
|
+
return Ko({
|
|
3038
3038
|
block: e.block,
|
|
3039
3039
|
context: e.context,
|
|
3040
3040
|
registeredComponents: e.registeredComponents
|
|
3041
3041
|
});
|
|
3042
3042
|
}, n = function() {
|
|
3043
|
-
return
|
|
3043
|
+
return Go({
|
|
3044
3044
|
block: e.block,
|
|
3045
3045
|
context: e.context
|
|
3046
3046
|
});
|
|
@@ -3072,7 +3072,7 @@ function ht(e) {
|
|
|
3072
3072
|
blockChildren: r().children ?? [],
|
|
3073
3073
|
componentRef: (j = t()) == null ? void 0 : j.component,
|
|
3074
3074
|
componentOptions: {
|
|
3075
|
-
...
|
|
3075
|
+
...go(r()),
|
|
3076
3076
|
builderContext: e.context,
|
|
3077
3077
|
...((v = t()) == null ? void 0 : v.name) === "Core:Button" || ((x = t()) == null ? void 0 : x.name) === "Symbol" || ((B = t()) == null ? void 0 : B.name) === "Columns" ? {
|
|
3078
3078
|
builderLinkComponent: e.linkComponent
|
|
@@ -3090,7 +3090,7 @@ function ht(e) {
|
|
|
3090
3090
|
};
|
|
3091
3091
|
}, d = e.context;
|
|
3092
3092
|
return /* @__PURE__ */ C(L, { children: i() ? /* @__PURE__ */ xe(L, { children: [
|
|
3093
|
-
/* @__PURE__ */ C(
|
|
3093
|
+
/* @__PURE__ */ C(Jo, { block: e.block, context: e.context }),
|
|
3094
3094
|
(k = t()) != null && k.noWrap ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
|
|
3095
3095
|
Jn,
|
|
3096
3096
|
{
|
|
@@ -3105,7 +3105,7 @@ function ht(e) {
|
|
|
3105
3105
|
isInteractive: u().isInteractive
|
|
3106
3106
|
}
|
|
3107
3107
|
) }) : /* @__PURE__ */ C(L, { children: n() ? /* @__PURE__ */ C(L, { children: (S = n()) == null ? void 0 : S.map((P, j) => /* @__PURE__ */ C(
|
|
3108
|
-
|
|
3108
|
+
ii,
|
|
3109
3109
|
{
|
|
3110
3110
|
repeatContext: P.context,
|
|
3111
3111
|
block: P.block,
|
|
@@ -3114,7 +3114,7 @@ function ht(e) {
|
|
|
3114
3114
|
},
|
|
3115
3115
|
j
|
|
3116
3116
|
)) }) : /* @__PURE__ */ C(L, { children: /* @__PURE__ */ xe(
|
|
3117
|
-
|
|
3117
|
+
no,
|
|
3118
3118
|
{
|
|
3119
3119
|
Wrapper: o(),
|
|
3120
3120
|
block: r(),
|
|
@@ -3153,7 +3153,7 @@ function ht(e) {
|
|
|
3153
3153
|
function mt(e) {
|
|
3154
3154
|
var t, n, r;
|
|
3155
3155
|
return /* @__PURE__ */ C(
|
|
3156
|
-
|
|
3156
|
+
ro,
|
|
3157
3157
|
{
|
|
3158
3158
|
blocks: e.blocks,
|
|
3159
3159
|
parent: e.parent,
|
|
@@ -3174,7 +3174,7 @@ function mt(e) {
|
|
|
3174
3174
|
}
|
|
3175
3175
|
);
|
|
3176
3176
|
}
|
|
3177
|
-
function
|
|
3177
|
+
function ai(e) {
|
|
3178
3178
|
var j;
|
|
3179
3179
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(x) {
|
|
3180
3180
|
var B;
|
|
@@ -3229,7 +3229,7 @@ function ii(e) {
|
|
|
3229
3229
|
};
|
|
3230
3230
|
}, S = function(x) {
|
|
3231
3231
|
var $, m;
|
|
3232
|
-
return
|
|
3232
|
+
return vr(
|
|
3233
3233
|
((m = ($ = e.builderContext.content) == null ? void 0 : $.meta) == null ? void 0 : m.breakpoints) || {}
|
|
3234
3234
|
)[x].max;
|
|
3235
3235
|
}, P = function() {
|
|
@@ -3268,7 +3268,7 @@ function ii(e) {
|
|
|
3268
3268
|
children: [
|
|
3269
3269
|
/* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(dt, { styles: P() }) }),
|
|
3270
3270
|
(j = e.columns) == null ? void 0 : j.map((v, x) => /* @__PURE__ */ C(
|
|
3271
|
-
|
|
3271
|
+
oo,
|
|
3272
3272
|
{
|
|
3273
3273
|
TagName: v.link ? e.builderLinkComponent || "a" : "div",
|
|
3274
3274
|
actionAttributes: {},
|
|
@@ -3277,7 +3277,7 @@ function ii(e) {
|
|
|
3277
3277
|
href: v.link
|
|
3278
3278
|
} : {},
|
|
3279
3279
|
[Xt()]: "builder-column",
|
|
3280
|
-
style:
|
|
3280
|
+
style: Sr(E(x))
|
|
3281
3281
|
},
|
|
3282
3282
|
children: /* @__PURE__ */ C(
|
|
3283
3283
|
mt,
|
|
@@ -3308,11 +3308,11 @@ function ii(e) {
|
|
|
3308
3308
|
function zn(e) {
|
|
3309
3309
|
return e.replace(/http(s)?:/, "");
|
|
3310
3310
|
}
|
|
3311
|
-
function
|
|
3311
|
+
function si(e = "", t, n) {
|
|
3312
3312
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3313
3313
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
3314
3314
|
}
|
|
3315
|
-
function
|
|
3315
|
+
function li(e, t) {
|
|
3316
3316
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3317
3317
|
return e;
|
|
3318
3318
|
if (t === "master")
|
|
@@ -3324,23 +3324,23 @@ function si(e, t) {
|
|
|
3324
3324
|
}
|
|
3325
3325
|
return null;
|
|
3326
3326
|
}
|
|
3327
|
-
function
|
|
3327
|
+
function _a(e) {
|
|
3328
3328
|
if (!e)
|
|
3329
3329
|
return e;
|
|
3330
3330
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3331
3331
|
if (e.match(/builder\.io/)) {
|
|
3332
3332
|
let n = e;
|
|
3333
3333
|
const r = Number(e.split("?width=")[1]);
|
|
3334
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
3334
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${si(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
3335
3335
|
}
|
|
3336
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3336
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [li(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3337
3337
|
}
|
|
3338
|
-
const
|
|
3338
|
+
const ci = (e) => {
|
|
3339
3339
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3340
3340
|
return e;
|
|
3341
3341
|
const t = e.split(".");
|
|
3342
3342
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
3343
|
-
},
|
|
3343
|
+
}, wr = ({
|
|
3344
3344
|
name: e,
|
|
3345
3345
|
canTrack: t
|
|
3346
3346
|
}) => {
|
|
@@ -3351,14 +3351,14 @@ const li = (e) => {
|
|
|
3351
3351
|
z.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3352
3352
|
return;
|
|
3353
3353
|
}
|
|
3354
|
-
},
|
|
3354
|
+
}, xr = async (e) => wr(e), ui = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(oe).join("; "), fi = [["secure", ""], ["SameSite", "None"]], pi = ({
|
|
3355
3355
|
name: e,
|
|
3356
3356
|
value: t,
|
|
3357
3357
|
expires: n
|
|
3358
3358
|
}) => {
|
|
3359
|
-
const o = (G() ? location.protocol === "https:" : !0) ?
|
|
3360
|
-
return
|
|
3361
|
-
},
|
|
3359
|
+
const o = (G() ? location.protocol === "https:" : !0) ? fi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", ci(window.location.hostname)], ...o];
|
|
3360
|
+
return ui(s);
|
|
3361
|
+
}, kr = async ({
|
|
3362
3362
|
name: e,
|
|
3363
3363
|
value: t,
|
|
3364
3364
|
expires: n,
|
|
@@ -3367,7 +3367,7 @@ const li = (e) => {
|
|
|
3367
3367
|
try {
|
|
3368
3368
|
if (!r)
|
|
3369
3369
|
return;
|
|
3370
|
-
const o =
|
|
3370
|
+
const o = pi({
|
|
3371
3371
|
name: e,
|
|
3372
3372
|
value: t,
|
|
3373
3373
|
expires: n
|
|
@@ -3376,24 +3376,24 @@ const li = (e) => {
|
|
|
3376
3376
|
} catch (o) {
|
|
3377
3377
|
z.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3378
3378
|
}
|
|
3379
|
-
},
|
|
3379
|
+
}, di = "builder.tests", ln = (e) => `${di}.${e}`, hi = ({
|
|
3380
3380
|
contentId: e
|
|
3381
|
-
}) =>
|
|
3381
|
+
}) => xr({
|
|
3382
3382
|
name: ln(e),
|
|
3383
3383
|
canTrack: !0
|
|
3384
|
-
}),
|
|
3384
|
+
}), mi = ({
|
|
3385
3385
|
contentId: e
|
|
3386
|
-
}) =>
|
|
3386
|
+
}) => wr({
|
|
3387
3387
|
name: ln(e),
|
|
3388
3388
|
canTrack: !0
|
|
3389
|
-
}),
|
|
3389
|
+
}), gi = ({
|
|
3390
3390
|
contentId: e,
|
|
3391
3391
|
value: t
|
|
3392
|
-
}) =>
|
|
3392
|
+
}) => kr({
|
|
3393
3393
|
name: ln(e),
|
|
3394
3394
|
value: t,
|
|
3395
3395
|
canTrack: !0
|
|
3396
|
-
}),
|
|
3396
|
+
}), Cr = (e) => oe(e.id) && oe(e.variations) && Object.keys(e.variations).length > 0, yi = ({
|
|
3397
3397
|
id: e,
|
|
3398
3398
|
variations: t
|
|
3399
3399
|
}) => {
|
|
@@ -3406,15 +3406,15 @@ const li = (e) => {
|
|
|
3406
3406
|
return i;
|
|
3407
3407
|
}
|
|
3408
3408
|
return e;
|
|
3409
|
-
},
|
|
3410
|
-
const t =
|
|
3411
|
-
return
|
|
3409
|
+
}, Er = (e) => {
|
|
3410
|
+
const t = yi(e);
|
|
3411
|
+
return gi({
|
|
3412
3412
|
contentId: e.id,
|
|
3413
3413
|
value: t
|
|
3414
3414
|
}).catch((n) => {
|
|
3415
3415
|
z.error("could not store A/B test variation: ", n);
|
|
3416
3416
|
}), t;
|
|
3417
|
-
},
|
|
3417
|
+
}, Ir = ({
|
|
3418
3418
|
item: e,
|
|
3419
3419
|
testGroupId: t
|
|
3420
3420
|
}) => {
|
|
@@ -3428,7 +3428,7 @@ const li = (e) => {
|
|
|
3428
3428
|
testVariationId: n.id,
|
|
3429
3429
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3430
3430
|
};
|
|
3431
|
-
},
|
|
3431
|
+
}, vi = ({
|
|
3432
3432
|
item: e,
|
|
3433
3433
|
canTrack: t
|
|
3434
3434
|
}) => {
|
|
@@ -3436,14 +3436,14 @@ const li = (e) => {
|
|
|
3436
3436
|
return e;
|
|
3437
3437
|
if (!e)
|
|
3438
3438
|
return;
|
|
3439
|
-
if (!
|
|
3439
|
+
if (!Cr(e))
|
|
3440
3440
|
return e;
|
|
3441
|
-
const n =
|
|
3441
|
+
const n = mi({
|
|
3442
3442
|
contentId: e.id
|
|
3443
|
-
}) ||
|
|
3443
|
+
}) || Er({
|
|
3444
3444
|
variations: e.variations,
|
|
3445
3445
|
id: e.id
|
|
3446
|
-
}), r =
|
|
3446
|
+
}), r = Ir({
|
|
3447
3447
|
item: e,
|
|
3448
3448
|
testGroupId: n
|
|
3449
3449
|
});
|
|
@@ -3451,18 +3451,18 @@ const li = (e) => {
|
|
|
3451
3451
|
...e,
|
|
3452
3452
|
...r
|
|
3453
3453
|
};
|
|
3454
|
-
},
|
|
3454
|
+
}, bi = async ({
|
|
3455
3455
|
item: e,
|
|
3456
3456
|
canTrack: t
|
|
3457
3457
|
}) => {
|
|
3458
|
-
if (!t || !
|
|
3458
|
+
if (!t || !Cr(e))
|
|
3459
3459
|
return e;
|
|
3460
|
-
const r = await
|
|
3460
|
+
const r = await hi({
|
|
3461
3461
|
contentId: e.id
|
|
3462
|
-
}) ||
|
|
3462
|
+
}) || Er({
|
|
3463
3463
|
variations: e.variations,
|
|
3464
3464
|
id: e.id
|
|
3465
|
-
}), o =
|
|
3465
|
+
}), o = Ir({
|
|
3466
3466
|
item: e,
|
|
3467
3467
|
testGroupId: r
|
|
3468
3468
|
});
|
|
@@ -3470,7 +3470,7 @@ const li = (e) => {
|
|
|
3470
3470
|
...e,
|
|
3471
3471
|
...o
|
|
3472
3472
|
};
|
|
3473
|
-
}, Ht = (e) => oe(e) ? e : !0,
|
|
3473
|
+
}, Ht = (e) => oe(e) ? e : !0, Si = {
|
|
3474
3474
|
name: "Core:Button",
|
|
3475
3475
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3476
3476
|
defaultStyles: {
|
|
@@ -3503,7 +3503,7 @@ const li = (e) => {
|
|
|
3503
3503
|
}],
|
|
3504
3504
|
static: !0,
|
|
3505
3505
|
noWrap: !0
|
|
3506
|
-
},
|
|
3506
|
+
}, wi = {
|
|
3507
3507
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3508
3508
|
name: "Columns",
|
|
3509
3509
|
isRSC: !0,
|
|
@@ -3704,7 +3704,7 @@ const li = (e) => {
|
|
|
3704
3704
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3705
3705
|
advanced: !0
|
|
3706
3706
|
}]
|
|
3707
|
-
},
|
|
3707
|
+
}, xi = {
|
|
3708
3708
|
name: "Custom Code",
|
|
3709
3709
|
static: !0,
|
|
3710
3710
|
requiredPermissions: ["editCode"],
|
|
@@ -3726,7 +3726,7 @@ const li = (e) => {
|
|
|
3726
3726
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3727
3727
|
advanced: !0
|
|
3728
3728
|
}]
|
|
3729
|
-
},
|
|
3729
|
+
}, ki = {
|
|
3730
3730
|
name: "Embed",
|
|
3731
3731
|
static: !0,
|
|
3732
3732
|
inputs: [{
|
|
@@ -3751,13 +3751,13 @@ const li = (e) => {
|
|
|
3751
3751
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3752
3752
|
hideFromUI: !0
|
|
3753
3753
|
}]
|
|
3754
|
-
},
|
|
3754
|
+
}, Ci = ["text/javascript", "application/javascript", "application/ecmascript"], La = (e) => Ci.includes(e.type), Ei = {
|
|
3755
3755
|
name: "Fragment",
|
|
3756
3756
|
static: !0,
|
|
3757
3757
|
hidden: !0,
|
|
3758
3758
|
canHaveChildren: !0,
|
|
3759
3759
|
noWrap: !0
|
|
3760
|
-
},
|
|
3760
|
+
}, Ii = {
|
|
3761
3761
|
name: "Image",
|
|
3762
3762
|
static: !0,
|
|
3763
3763
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -3857,7 +3857,7 @@ const li = (e) => {
|
|
|
3857
3857
|
advanced: !0,
|
|
3858
3858
|
defaultValue: 0.7041
|
|
3859
3859
|
}]
|
|
3860
|
-
},
|
|
3860
|
+
}, Ti = {
|
|
3861
3861
|
// friendlyName?
|
|
3862
3862
|
name: "Raw:Img",
|
|
3863
3863
|
hideFromInsertMenu: !0,
|
|
@@ -3871,7 +3871,7 @@ const li = (e) => {
|
|
|
3871
3871
|
}],
|
|
3872
3872
|
noWrap: !0,
|
|
3873
3873
|
static: !0
|
|
3874
|
-
},
|
|
3874
|
+
}, Ai = {
|
|
3875
3875
|
name: "Core:Section",
|
|
3876
3876
|
static: !0,
|
|
3877
3877
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3910,7 +3910,7 @@ const li = (e) => {
|
|
|
3910
3910
|
}
|
|
3911
3911
|
}
|
|
3912
3912
|
}]
|
|
3913
|
-
},
|
|
3913
|
+
}, Oi = {
|
|
3914
3914
|
name: "Slot",
|
|
3915
3915
|
isRSC: !0,
|
|
3916
3916
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3924,7 +3924,7 @@ const li = (e) => {
|
|
|
3924
3924
|
defaultValue: "children"
|
|
3925
3925
|
}]
|
|
3926
3926
|
};
|
|
3927
|
-
function
|
|
3927
|
+
function ji(e) {
|
|
3928
3928
|
var t, n, r;
|
|
3929
3929
|
return /* @__PURE__ */ C(
|
|
3930
3930
|
"div",
|
|
@@ -3947,7 +3947,7 @@ function Oi(e) {
|
|
|
3947
3947
|
}
|
|
3948
3948
|
);
|
|
3949
3949
|
}
|
|
3950
|
-
const
|
|
3950
|
+
const Ri = {
|
|
3951
3951
|
name: "Symbol",
|
|
3952
3952
|
noWrap: !0,
|
|
3953
3953
|
static: !0,
|
|
@@ -3980,7 +3980,7 @@ const ji = {
|
|
|
3980
3980
|
hideFromUI: !0,
|
|
3981
3981
|
type: "boolean"
|
|
3982
3982
|
}]
|
|
3983
|
-
},
|
|
3983
|
+
}, Pi = {
|
|
3984
3984
|
name: "Text",
|
|
3985
3985
|
static: !0,
|
|
3986
3986
|
isRSC: !0,
|
|
@@ -3999,7 +3999,7 @@ const ji = {
|
|
|
3999
3999
|
textAlign: "center"
|
|
4000
4000
|
}
|
|
4001
4001
|
};
|
|
4002
|
-
function
|
|
4002
|
+
function Ni(e) {
|
|
4003
4003
|
var t;
|
|
4004
4004
|
return /* @__PURE__ */ C(
|
|
4005
4005
|
"div",
|
|
@@ -4012,7 +4012,7 @@ function Pi(e) {
|
|
|
4012
4012
|
}
|
|
4013
4013
|
);
|
|
4014
4014
|
}
|
|
4015
|
-
const
|
|
4015
|
+
const Bi = {
|
|
4016
4016
|
name: "Video",
|
|
4017
4017
|
canHaveChildren: !0,
|
|
4018
4018
|
defaultStyles: {
|
|
@@ -4094,20 +4094,17 @@ const Ni = {
|
|
|
4094
4094
|
advanced: !0
|
|
4095
4095
|
}]
|
|
4096
4096
|
}, qn = () => [{
|
|
4097
|
-
component:
|
|
4098
|
-
...bi
|
|
4099
|
-
}, {
|
|
4100
|
-
component: ii,
|
|
4097
|
+
component: io,
|
|
4101
4098
|
...Si
|
|
4102
4099
|
}, {
|
|
4103
|
-
component:
|
|
4100
|
+
component: ai,
|
|
4104
4101
|
...wi
|
|
4105
4102
|
}, {
|
|
4106
4103
|
component: ao,
|
|
4107
4104
|
...xi
|
|
4108
4105
|
}, {
|
|
4109
4106
|
component: so,
|
|
4110
|
-
...
|
|
4107
|
+
...ki
|
|
4111
4108
|
}, {
|
|
4112
4109
|
component: lo,
|
|
4113
4110
|
...Ei
|
|
@@ -4118,24 +4115,27 @@ const Ni = {
|
|
|
4118
4115
|
component: uo,
|
|
4119
4116
|
...Ti
|
|
4120
4117
|
}, {
|
|
4121
|
-
component:
|
|
4122
|
-
...
|
|
4118
|
+
component: fo,
|
|
4119
|
+
...Ai
|
|
4123
4120
|
}, {
|
|
4124
|
-
component:
|
|
4121
|
+
component: Pa,
|
|
4125
4122
|
...Ri
|
|
4126
4123
|
}, {
|
|
4127
|
-
component:
|
|
4128
|
-
...
|
|
4124
|
+
component: Ni,
|
|
4125
|
+
...Pi
|
|
4129
4126
|
}, {
|
|
4130
|
-
component:
|
|
4131
|
-
...
|
|
4132
|
-
}
|
|
4127
|
+
component: po,
|
|
4128
|
+
...Bi
|
|
4129
|
+
}, {
|
|
4130
|
+
component: ji,
|
|
4131
|
+
...Oi
|
|
4132
|
+
}], Zn = [], Wa = (e) => ({
|
|
4133
4133
|
type: "builder.registerComponent",
|
|
4134
4134
|
data: Kt(e)
|
|
4135
|
-
}),
|
|
4135
|
+
}), Ui = (e) => {
|
|
4136
4136
|
const t = e.toString().trim();
|
|
4137
4137
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
4138
|
-
}, Mi = (e) => typeof e == "function" ?
|
|
4138
|
+
}, Mi = (e) => typeof e == "function" ? Ui(e) : pt(e), Kt = ({
|
|
4139
4139
|
inputs: e,
|
|
4140
4140
|
...t
|
|
4141
4141
|
}) => ({
|
|
@@ -4144,7 +4144,7 @@ const Ni = {
|
|
|
4144
4144
|
...r,
|
|
4145
4145
|
[o]: Mi(i)
|
|
4146
4146
|
}), {}))
|
|
4147
|
-
}),
|
|
4147
|
+
}), Fi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4148
4148
|
function getAndSetVariantId() {
|
|
4149
4149
|
function setCookie(name, value, days) {
|
|
4150
4150
|
let expires = '';
|
|
@@ -4200,7 +4200,7 @@ const Ni = {
|
|
|
4200
4200
|
}).join('');
|
|
4201
4201
|
styleEl.innerHTML = newStyleStr;
|
|
4202
4202
|
}
|
|
4203
|
-
}`,
|
|
4203
|
+
}`, Di = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4204
4204
|
if (!navigator.cookieEnabled) {
|
|
4205
4205
|
return;
|
|
4206
4206
|
}
|
|
@@ -4234,24 +4234,24 @@ const Ni = {
|
|
|
4234
4234
|
thisScriptEl?.remove();
|
|
4235
4235
|
}
|
|
4236
4236
|
return;
|
|
4237
|
-
}`,
|
|
4237
|
+
}`, Tr = "builderIoAbTest", Ar = "builderIoRenderContent", st = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4238
4238
|
...t,
|
|
4239
4239
|
testVariationId: t.id,
|
|
4240
4240
|
id: e == null ? void 0 : e.id
|
|
4241
4241
|
})), Vi = ({
|
|
4242
4242
|
canTrack: e,
|
|
4243
4243
|
content: t
|
|
4244
|
-
}) => !(!(st(t).length > 0) || !e || G()),
|
|
4245
|
-
window.${Ir} = ${Ui}
|
|
4244
|
+
}) => !(!(st(t).length > 0) || !e || G()), _i = (e) => e === "react" || e === "reactNative", Or = _i(he), Li = () => `
|
|
4246
4245
|
window.${Tr} = ${Fi}
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4246
|
+
window.${Ar} = ${Di}
|
|
4247
|
+
`, Wi = (e, t) => `
|
|
4248
|
+
window.${Tr}(
|
|
4249
|
+
"${t}",${JSON.stringify(e)}, ${Or}
|
|
4250
|
+
)`, $i = ({
|
|
4251
4251
|
contentId: e,
|
|
4252
4252
|
variationId: t
|
|
4253
|
-
}) => `window.${
|
|
4254
|
-
"${t}", "${e}", ${
|
|
4253
|
+
}) => `window.${Ar}(
|
|
4254
|
+
"${t}", "${e}", ${Or}
|
|
4255
4255
|
)`;
|
|
4256
4256
|
function Gt(e) {
|
|
4257
4257
|
return /* @__PURE__ */ C(
|
|
@@ -4262,33 +4262,33 @@ function Gt(e) {
|
|
|
4262
4262
|
}
|
|
4263
4263
|
);
|
|
4264
4264
|
}
|
|
4265
|
-
const
|
|
4265
|
+
const Hi = (e) => {
|
|
4266
4266
|
const t = e.get("preview"), n = e.get("overrides." + t);
|
|
4267
4267
|
return n || z.warn("No previewed ID found in search params."), n;
|
|
4268
4268
|
};
|
|
4269
|
-
function
|
|
4270
|
-
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new
|
|
4269
|
+
function Ki() {
|
|
4270
|
+
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new eo({
|
|
4271
4271
|
max: 500,
|
|
4272
4272
|
// how long to live in ms
|
|
4273
4273
|
ttl: 1e3 * 60 * 5
|
|
4274
4274
|
}));
|
|
4275
4275
|
}
|
|
4276
|
-
function
|
|
4277
|
-
|
|
4278
|
-
const t =
|
|
4276
|
+
function Gi(e) {
|
|
4277
|
+
Ki();
|
|
4278
|
+
const t = Hi(e);
|
|
4279
4279
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
4280
4280
|
}
|
|
4281
|
-
function
|
|
4281
|
+
function Xi() {
|
|
4282
4282
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
4283
4283
|
}
|
|
4284
|
-
function
|
|
4285
|
-
const e =
|
|
4284
|
+
function Yi() {
|
|
4285
|
+
const e = Xi().fetch;
|
|
4286
4286
|
if (typeof e > "u")
|
|
4287
4287
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
4288
4288
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
4289
4289
|
return e;
|
|
4290
4290
|
}
|
|
4291
|
-
const
|
|
4291
|
+
const Ji = Yi();
|
|
4292
4292
|
function lt(e, t = null, n = ".") {
|
|
4293
4293
|
return Object.keys(e).reduce((r, o) => {
|
|
4294
4294
|
const i = e[o], s = [t, o].filter(Boolean).join(n);
|
|
@@ -4301,27 +4301,27 @@ function lt(e, t = null, n = ".") {
|
|
|
4301
4301
|
};
|
|
4302
4302
|
}, {});
|
|
4303
4303
|
}
|
|
4304
|
-
const
|
|
4304
|
+
const zi = "v3", Qn = "builder.", qi = "options.", Zi = (e) => {
|
|
4305
4305
|
const t = {};
|
|
4306
4306
|
return e.forEach((n, r) => {
|
|
4307
4307
|
t[r] = n;
|
|
4308
4308
|
}), t;
|
|
4309
|
-
},
|
|
4309
|
+
}, jr = (e) => {
|
|
4310
4310
|
if (!e)
|
|
4311
4311
|
return {};
|
|
4312
|
-
const t =
|
|
4312
|
+
const t = Rr(e), n = {};
|
|
4313
4313
|
return Object.keys(t).forEach((r) => {
|
|
4314
4314
|
if (r.startsWith(Qn)) {
|
|
4315
|
-
const o = r.replace(Qn, "").replace(
|
|
4315
|
+
const o = r.replace(Qn, "").replace(qi, "");
|
|
4316
4316
|
n[o] = t[r];
|
|
4317
4317
|
}
|
|
4318
4318
|
}), n;
|
|
4319
|
-
},
|
|
4319
|
+
}, Qi = () => {
|
|
4320
4320
|
if (!G())
|
|
4321
4321
|
return {};
|
|
4322
4322
|
const e = new URLSearchParams(window.location.search);
|
|
4323
|
-
return
|
|
4324
|
-
},
|
|
4323
|
+
return jr(e);
|
|
4324
|
+
}, Rr = (e) => e instanceof URLSearchParams ? Zi(e) : e, er = (e) => typeof e == "number" && !isNaN(e) && e >= 0, cn = (e) => {
|
|
4325
4325
|
let {
|
|
4326
4326
|
noTraverse: t = !1
|
|
4327
4327
|
} = e;
|
|
@@ -4334,7 +4334,7 @@ const Ji = "v3", Qn = "builder.", zi = "options.", qi = (e) => {
|
|
|
4334
4334
|
includeRefs: u = !0,
|
|
4335
4335
|
enrich: d,
|
|
4336
4336
|
locale: k,
|
|
4337
|
-
apiVersion: E =
|
|
4337
|
+
apiVersion: E = zi,
|
|
4338
4338
|
fields: S,
|
|
4339
4339
|
omit: P,
|
|
4340
4340
|
offset: j,
|
|
@@ -4353,12 +4353,12 @@ const Ji = "v3", Qn = "builder.", zi = "options.", qi = (e) => {
|
|
|
4353
4353
|
const Z = lt({
|
|
4354
4354
|
sort: B
|
|
4355
4355
|
});
|
|
4356
|
-
for (const
|
|
4357
|
-
m.searchParams.set(
|
|
4356
|
+
for (const U in Z)
|
|
4357
|
+
m.searchParams.set(U, JSON.stringify(Z[U]));
|
|
4358
4358
|
}
|
|
4359
4359
|
const ee = {
|
|
4360
|
-
...
|
|
4361
|
-
...
|
|
4360
|
+
...Qi(),
|
|
4361
|
+
...Rr(e.options || {})
|
|
4362
4362
|
}, te = lt(ee);
|
|
4363
4363
|
for (const Z in te)
|
|
4364
4364
|
m.searchParams.set(Z, String(te[Z]));
|
|
@@ -4366,27 +4366,27 @@ const Ji = "v3", Qn = "builder.", zi = "options.", qi = (e) => {
|
|
|
4366
4366
|
const Z = lt({
|
|
4367
4367
|
query: o
|
|
4368
4368
|
});
|
|
4369
|
-
for (const
|
|
4370
|
-
m.searchParams.set(
|
|
4369
|
+
for (const U in Z)
|
|
4370
|
+
m.searchParams.set(U, JSON.stringify(Z[U]));
|
|
4371
4371
|
}
|
|
4372
4372
|
return m;
|
|
4373
|
-
},
|
|
4373
|
+
}, ea = (e) => "results" in e;
|
|
4374
4374
|
async function un(e) {
|
|
4375
|
-
const t = await
|
|
4375
|
+
const t = await Pr({
|
|
4376
4376
|
...e,
|
|
4377
4377
|
limit: 1
|
|
4378
4378
|
});
|
|
4379
4379
|
return t && t[0] || null;
|
|
4380
4380
|
}
|
|
4381
|
-
const
|
|
4381
|
+
const $a = un, ta = async (e) => {
|
|
4382
4382
|
const t = cn(e);
|
|
4383
|
-
return await (await
|
|
4384
|
-
},
|
|
4383
|
+
return await (await Ji(t.href)).json();
|
|
4384
|
+
}, na = async (e, t, n = cn(e)) => {
|
|
4385
4385
|
const r = Ht(e.canTrack);
|
|
4386
4386
|
if (n.search.includes("preview=")) {
|
|
4387
4387
|
const i = [];
|
|
4388
4388
|
for (const s of t.results) {
|
|
4389
|
-
const u =
|
|
4389
|
+
const u = Gi(n.searchParams);
|
|
4390
4390
|
i.push(u || s);
|
|
4391
4391
|
}
|
|
4392
4392
|
t.results = i;
|
|
@@ -4396,7 +4396,7 @@ const Va = un, ea = async (e) => {
|
|
|
4396
4396
|
try {
|
|
4397
4397
|
const i = [];
|
|
4398
4398
|
for (const s of t.results)
|
|
4399
|
-
i.push(await
|
|
4399
|
+
i.push(await bi({
|
|
4400
4400
|
item: s,
|
|
4401
4401
|
canTrack: r
|
|
4402
4402
|
}));
|
|
@@ -4406,10 +4406,10 @@ const Va = un, ea = async (e) => {
|
|
|
4406
4406
|
}
|
|
4407
4407
|
return t.results;
|
|
4408
4408
|
};
|
|
4409
|
-
async function
|
|
4409
|
+
async function Pr(e) {
|
|
4410
4410
|
try {
|
|
4411
|
-
const t = cn(e), n = await
|
|
4412
|
-
return
|
|
4411
|
+
const t = cn(e), n = await ta(e);
|
|
4412
|
+
return ea(n) ? na(e, n) : (z.error("Error fetching data. ", {
|
|
4413
4413
|
url: t,
|
|
4414
4414
|
content: n,
|
|
4415
4415
|
options: e
|
|
@@ -4418,96 +4418,96 @@ async function Rr(e) {
|
|
|
4418
4418
|
return z.error("Error fetching data. ", t), null;
|
|
4419
4419
|
}
|
|
4420
4420
|
}
|
|
4421
|
-
const
|
|
4422
|
-
function
|
|
4421
|
+
const Ha = Pr, ra = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4422
|
+
function oa(e, t) {
|
|
4423
4423
|
const n = new URL(t.origin), r = n.hostname;
|
|
4424
|
-
return (e ||
|
|
4424
|
+
return (e || ra).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
4425
4425
|
}
|
|
4426
|
-
function
|
|
4426
|
+
function Ka() {
|
|
4427
4427
|
return !G() || Yt() ? !1 : location.search.indexOf("builder.preview=") !== -1;
|
|
4428
4428
|
}
|
|
4429
|
-
function
|
|
4429
|
+
function ia() {
|
|
4430
4430
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
4431
4431
|
const t = Math.random() * 16 | 0;
|
|
4432
4432
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4433
4433
|
});
|
|
4434
4434
|
}
|
|
4435
|
-
function
|
|
4436
|
-
return
|
|
4435
|
+
function Nr() {
|
|
4436
|
+
return ia().replace(/-/g, "");
|
|
4437
4437
|
}
|
|
4438
|
-
const
|
|
4438
|
+
const Br = "builderSessionId", aa = async ({
|
|
4439
4439
|
canTrack: e
|
|
4440
4440
|
}) => {
|
|
4441
4441
|
if (!e)
|
|
4442
4442
|
return;
|
|
4443
|
-
const t = await
|
|
4444
|
-
name:
|
|
4443
|
+
const t = await xr({
|
|
4444
|
+
name: Br,
|
|
4445
4445
|
canTrack: e
|
|
4446
4446
|
});
|
|
4447
4447
|
if (oe(t))
|
|
4448
4448
|
return t;
|
|
4449
4449
|
{
|
|
4450
|
-
const n =
|
|
4451
|
-
return
|
|
4450
|
+
const n = sa();
|
|
4451
|
+
return la({
|
|
4452
4452
|
id: n,
|
|
4453
4453
|
canTrack: e
|
|
4454
4454
|
}), n;
|
|
4455
4455
|
}
|
|
4456
|
-
},
|
|
4456
|
+
}, sa = () => Nr(), la = ({
|
|
4457
4457
|
id: e,
|
|
4458
4458
|
canTrack: t
|
|
4459
|
-
}) =>
|
|
4460
|
-
name:
|
|
4459
|
+
}) => kr({
|
|
4460
|
+
name: Br,
|
|
4461
4461
|
value: e,
|
|
4462
4462
|
canTrack: t
|
|
4463
|
-
}),
|
|
4463
|
+
}), Ur = () => G() && typeof localStorage < "u" ? localStorage : void 0, ca = ({
|
|
4464
4464
|
key: e,
|
|
4465
4465
|
canTrack: t
|
|
4466
4466
|
}) => {
|
|
4467
4467
|
var n;
|
|
4468
4468
|
try {
|
|
4469
|
-
return t ? (n =
|
|
4469
|
+
return t ? (n = Ur()) == null ? void 0 : n.getItem(e) : void 0;
|
|
4470
4470
|
} catch (r) {
|
|
4471
4471
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4472
4472
|
return;
|
|
4473
4473
|
}
|
|
4474
|
-
},
|
|
4474
|
+
}, ua = ({
|
|
4475
4475
|
key: e,
|
|
4476
4476
|
canTrack: t,
|
|
4477
4477
|
value: n
|
|
4478
4478
|
}) => {
|
|
4479
4479
|
var r;
|
|
4480
4480
|
try {
|
|
4481
|
-
t && ((r =
|
|
4481
|
+
t && ((r = Ur()) == null || r.setItem(e, n));
|
|
4482
4482
|
} catch (o) {
|
|
4483
4483
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4484
4484
|
}
|
|
4485
|
-
}, Mr = "builderVisitorId",
|
|
4485
|
+
}, Mr = "builderVisitorId", fa = ({
|
|
4486
4486
|
canTrack: e
|
|
4487
4487
|
}) => {
|
|
4488
4488
|
if (!e)
|
|
4489
4489
|
return;
|
|
4490
|
-
const t =
|
|
4490
|
+
const t = ca({
|
|
4491
4491
|
key: Mr,
|
|
4492
4492
|
canTrack: e
|
|
4493
4493
|
});
|
|
4494
4494
|
if (oe(t))
|
|
4495
4495
|
return t;
|
|
4496
4496
|
{
|
|
4497
|
-
const n =
|
|
4498
|
-
return
|
|
4497
|
+
const n = pa();
|
|
4498
|
+
return da({
|
|
4499
4499
|
id: n,
|
|
4500
4500
|
canTrack: e
|
|
4501
4501
|
}), n;
|
|
4502
4502
|
}
|
|
4503
|
-
},
|
|
4503
|
+
}, pa = () => Nr(), da = ({
|
|
4504
4504
|
id: e,
|
|
4505
4505
|
canTrack: t
|
|
4506
|
-
}) =>
|
|
4506
|
+
}) => ua({
|
|
4507
4507
|
key: Mr,
|
|
4508
4508
|
value: e,
|
|
4509
4509
|
canTrack: t
|
|
4510
|
-
}),
|
|
4510
|
+
}), ha = async ({
|
|
4511
4511
|
canTrack: e
|
|
4512
4512
|
}) => {
|
|
4513
4513
|
if (!e)
|
|
@@ -4515,16 +4515,16 @@ const Nr = "builderSessionId", ia = async ({
|
|
|
4515
4515
|
visitorId: void 0,
|
|
4516
4516
|
sessionId: void 0
|
|
4517
4517
|
};
|
|
4518
|
-
const t = await
|
|
4518
|
+
const t = await aa({
|
|
4519
4519
|
canTrack: e
|
|
4520
|
-
}), n =
|
|
4520
|
+
}), n = fa({
|
|
4521
4521
|
canTrack: e
|
|
4522
4522
|
});
|
|
4523
4523
|
return {
|
|
4524
4524
|
sessionId: t,
|
|
4525
4525
|
visitorId: n
|
|
4526
4526
|
};
|
|
4527
|
-
},
|
|
4527
|
+
}, ma = async ({
|
|
4528
4528
|
type: e,
|
|
4529
4529
|
canTrack: t,
|
|
4530
4530
|
apiKey: n,
|
|
@@ -4538,14 +4538,14 @@ const Nr = "builderSessionId", ia = async ({
|
|
|
4538
4538
|
url: location.href,
|
|
4539
4539
|
...r
|
|
4540
4540
|
},
|
|
4541
|
-
...await
|
|
4541
|
+
...await ha({
|
|
4542
4542
|
canTrack: t
|
|
4543
4543
|
}),
|
|
4544
|
-
userAttributes:
|
|
4544
|
+
userAttributes: lr(),
|
|
4545
4545
|
ownerId: n
|
|
4546
4546
|
}
|
|
4547
4547
|
});
|
|
4548
|
-
async function
|
|
4548
|
+
async function ga(e) {
|
|
4549
4549
|
if (!e.apiKey) {
|
|
4550
4550
|
z.error("Missing API key for track call. Please provide your API key.");
|
|
4551
4551
|
return;
|
|
@@ -4554,7 +4554,7 @@ async function ma(e) {
|
|
|
4554
4554
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
4555
4555
|
method: "POST",
|
|
4556
4556
|
body: JSON.stringify({
|
|
4557
|
-
events: [await
|
|
4557
|
+
events: [await ma(e)]
|
|
4558
4558
|
}),
|
|
4559
4559
|
headers: {
|
|
4560
4560
|
"content-type": "application/json"
|
|
@@ -4564,14 +4564,14 @@ async function ma(e) {
|
|
|
4564
4564
|
console.error("Failed to track: ", t);
|
|
4565
4565
|
});
|
|
4566
4566
|
}
|
|
4567
|
-
const
|
|
4567
|
+
const Ga = (e) => ga({
|
|
4568
4568
|
...e,
|
|
4569
4569
|
canTrack: !0
|
|
4570
4570
|
});
|
|
4571
4571
|
function tr(e) {
|
|
4572
4572
|
return Math.round(e * 1e3) / 1e3;
|
|
4573
4573
|
}
|
|
4574
|
-
const
|
|
4574
|
+
const ya = (e, t, n = !0) => {
|
|
4575
4575
|
if (!(e instanceof HTMLElement))
|
|
4576
4576
|
return null;
|
|
4577
4577
|
let r = n ? e : e.parentElement;
|
|
@@ -4582,7 +4582,7 @@ const ga = (e, t, n = !0) => {
|
|
|
4582
4582
|
return r;
|
|
4583
4583
|
} while (r = r.parentElement);
|
|
4584
4584
|
return null;
|
|
4585
|
-
},
|
|
4585
|
+
}, va = (e) => ya(e, (t) => {
|
|
4586
4586
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4587
4587
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4588
4588
|
}), nr = ({
|
|
@@ -4594,8 +4594,8 @@ const ga = (e, t, n = !0) => {
|
|
|
4594
4594
|
x: i,
|
|
4595
4595
|
y: s
|
|
4596
4596
|
};
|
|
4597
|
-
},
|
|
4598
|
-
const t = e.target, n = t &&
|
|
4597
|
+
}, Xa = (e) => {
|
|
4598
|
+
const t = e.target, n = t && va(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4599
4599
|
return {
|
|
4600
4600
|
targetBuilderElement: r || void 0,
|
|
4601
4601
|
metadata: {
|
|
@@ -4610,8 +4610,8 @@ const ga = (e, t, n = !0) => {
|
|
|
4610
4610
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4611
4611
|
}
|
|
4612
4612
|
};
|
|
4613
|
-
},
|
|
4614
|
-
function
|
|
4613
|
+
}, ba = "0.12.7", rr = {};
|
|
4614
|
+
function Sa(e, t) {
|
|
4615
4615
|
let n = rr[e];
|
|
4616
4616
|
if (n || (n = rr[e] = []), n.push(t), G()) {
|
|
4617
4617
|
const r = {
|
|
@@ -4628,8 +4628,8 @@ function ba(e, t) {
|
|
|
4628
4628
|
}
|
|
4629
4629
|
}
|
|
4630
4630
|
}
|
|
4631
|
-
const
|
|
4632
|
-
|
|
4631
|
+
const Ya = () => {
|
|
4632
|
+
Sa("insertMenu", {
|
|
4633
4633
|
name: "_default",
|
|
4634
4634
|
default: !0,
|
|
4635
4635
|
items: [{
|
|
@@ -4652,13 +4652,13 @@ const $a = () => {
|
|
|
4652
4652
|
});
|
|
4653
4653
|
};
|
|
4654
4654
|
let or = !1;
|
|
4655
|
-
const
|
|
4655
|
+
const Ja = (e = {}) => {
|
|
4656
4656
|
var t, n;
|
|
4657
4657
|
or || (or = !0, G() && ((t = window.parent) == null || t.postMessage({
|
|
4658
4658
|
type: "builder.sdkInfo",
|
|
4659
4659
|
data: {
|
|
4660
4660
|
target: he,
|
|
4661
|
-
version:
|
|
4661
|
+
version: ba,
|
|
4662
4662
|
supportsPatchUpdates: !1,
|
|
4663
4663
|
// Supports builder-model="..." attribute which is needed to
|
|
4664
4664
|
// scope our '+ add block' button styling
|
|
@@ -4672,7 +4672,7 @@ const Ha = (e = {}) => {
|
|
|
4672
4672
|
}
|
|
4673
4673
|
}, "*"), window.addEventListener("message", (r) => {
|
|
4674
4674
|
var i, s;
|
|
4675
|
-
if (!
|
|
4675
|
+
if (!oa(e.trustedHosts, r))
|
|
4676
4676
|
return;
|
|
4677
4677
|
const {
|
|
4678
4678
|
data: o
|
|
@@ -4713,7 +4713,49 @@ const Ha = (e = {}) => {
|
|
|
4713
4713
|
}
|
|
4714
4714
|
}
|
|
4715
4715
|
})));
|
|
4716
|
-
}
|
|
4716
|
+
};
|
|
4717
|
+
function ir(e, ...t) {
|
|
4718
|
+
const n = Object(e);
|
|
4719
|
+
for (let r = 1; r < arguments.length; r++) {
|
|
4720
|
+
const o = arguments[r];
|
|
4721
|
+
if (o != null)
|
|
4722
|
+
for (const i in o)
|
|
4723
|
+
Object.prototype.hasOwnProperty.call(o, i) && (n[i] = o[i]);
|
|
4724
|
+
}
|
|
4725
|
+
return n;
|
|
4726
|
+
}
|
|
4727
|
+
const wa = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
4728
|
+
function xa(e) {
|
|
4729
|
+
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
4730
|
+
}
|
|
4731
|
+
function ka(e, t) {
|
|
4732
|
+
const n = Ca(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
4733
|
+
for (const u of s)
|
|
4734
|
+
for (const d of n)
|
|
4735
|
+
d in u || (u[d] = r[d]);
|
|
4736
|
+
}
|
|
4737
|
+
function Ca(e) {
|
|
4738
|
+
const t = [];
|
|
4739
|
+
for (const n of e.steps)
|
|
4740
|
+
for (const r in n.styles)
|
|
4741
|
+
t.indexOf(r) === -1 && t.push(r);
|
|
4742
|
+
return t;
|
|
4743
|
+
}
|
|
4744
|
+
function za(e) {
|
|
4745
|
+
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
4746
|
+
if (!t.length) {
|
|
4747
|
+
xa(e.elementId || e.id || "");
|
|
4748
|
+
return;
|
|
4749
|
+
}
|
|
4750
|
+
Array.from(t).forEach((n) => {
|
|
4751
|
+
ka(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ir(n.style, e.steps[0].styles), setTimeout(() => {
|
|
4752
|
+
n.style.transition = `all ${e.duration}s ${wa(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ir(n.style, e.steps[1].styles), setTimeout(() => {
|
|
4753
|
+
n.style.transition = "", n.style.transitionDelay = "";
|
|
4754
|
+
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
4755
|
+
});
|
|
4756
|
+
});
|
|
4757
|
+
}
|
|
4758
|
+
const Ea = (e) => {
|
|
4717
4759
|
var i;
|
|
4718
4760
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
4719
4761
|
let o = "";
|
|
@@ -4739,22 +4781,22 @@ font-weight: ${s};
|
|
|
4739
4781
|
`.trim());
|
|
4740
4782
|
}
|
|
4741
4783
|
return o;
|
|
4742
|
-
},
|
|
4784
|
+
}, Ia = ({
|
|
4743
4785
|
customFonts: e
|
|
4744
4786
|
}) => {
|
|
4745
4787
|
var t;
|
|
4746
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4747
|
-
},
|
|
4788
|
+
return ((t = e == null ? void 0 : e.map((n) => Ea(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4789
|
+
}, Ta = ({
|
|
4748
4790
|
cssCode: e,
|
|
4749
4791
|
contentId: t
|
|
4750
4792
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4751
|
-
function
|
|
4793
|
+
function Aa(e) {
|
|
4752
4794
|
const t = `
|
|
4753
|
-
${
|
|
4795
|
+
${Ta({
|
|
4754
4796
|
cssCode: e.cssCode,
|
|
4755
4797
|
contentId: e.contentId
|
|
4756
4798
|
})}
|
|
4757
|
-
${
|
|
4799
|
+
${Ia({
|
|
4758
4800
|
customFonts: e.customFonts
|
|
4759
4801
|
})}
|
|
4760
4802
|
|
|
@@ -4777,7 +4819,7 @@ ${wa({
|
|
|
4777
4819
|
`.trim();
|
|
4778
4820
|
return /* @__PURE__ */ C(dt, { styles: t });
|
|
4779
4821
|
}
|
|
4780
|
-
const
|
|
4822
|
+
const Oa = ({
|
|
4781
4823
|
content: e,
|
|
4782
4824
|
data: t,
|
|
4783
4825
|
locale: n
|
|
@@ -4794,7 +4836,7 @@ const Ca = ({
|
|
|
4794
4836
|
locale: n
|
|
4795
4837
|
} : {}
|
|
4796
4838
|
};
|
|
4797
|
-
},
|
|
4839
|
+
}, ja = ({
|
|
4798
4840
|
content: e,
|
|
4799
4841
|
data: t
|
|
4800
4842
|
}) => e ? {
|
|
@@ -4805,9 +4847,9 @@ const Ca = ({
|
|
|
4805
4847
|
},
|
|
4806
4848
|
meta: e == null ? void 0 : e.meta
|
|
4807
4849
|
} : void 0;
|
|
4808
|
-
function
|
|
4850
|
+
function ar(e) {
|
|
4809
4851
|
var o, i, s, u, d, k, E, S, P;
|
|
4810
|
-
const t =
|
|
4852
|
+
const t = $i({
|
|
4811
4853
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4812
4854
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
4813
4855
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4831,12 +4873,12 @@ function ir(e) {
|
|
|
4831
4873
|
}),
|
|
4832
4874
|
{}
|
|
4833
4875
|
), r = {
|
|
4834
|
-
content:
|
|
4876
|
+
content: ja({
|
|
4835
4877
|
content: e.content,
|
|
4836
4878
|
data: e.data
|
|
4837
4879
|
}),
|
|
4838
4880
|
localState: void 0,
|
|
4839
|
-
rootState:
|
|
4881
|
+
rootState: Oa({
|
|
4840
4882
|
content: e.content,
|
|
4841
4883
|
data: e.data,
|
|
4842
4884
|
locale: e.locale
|
|
@@ -4866,7 +4908,7 @@ function ir(e) {
|
|
|
4866
4908
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
4867
4909
|
};
|
|
4868
4910
|
return /* @__PURE__ */ xe(
|
|
4869
|
-
|
|
4911
|
+
ho,
|
|
4870
4912
|
{
|
|
4871
4913
|
content: e.content,
|
|
4872
4914
|
data: e.data,
|
|
@@ -4886,7 +4928,7 @@ function ir(e) {
|
|
|
4886
4928
|
children: [
|
|
4887
4929
|
e.isSsrAbTest ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr: t }) }) : null,
|
|
4888
4930
|
/* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
|
|
4889
|
-
|
|
4931
|
+
Aa,
|
|
4890
4932
|
{
|
|
4891
4933
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
4892
4934
|
cssCode: (d = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : d.cssCode,
|
|
@@ -4906,14 +4948,14 @@ function ir(e) {
|
|
|
4906
4948
|
}
|
|
4907
4949
|
);
|
|
4908
4950
|
}
|
|
4909
|
-
function
|
|
4951
|
+
function Fr(e) {
|
|
4910
4952
|
var i, s;
|
|
4911
4953
|
const t = Vi({
|
|
4912
4954
|
canTrack: Ht(e.canTrack),
|
|
4913
4955
|
content: e.content
|
|
4914
4956
|
}), n = function() {
|
|
4915
4957
|
var d;
|
|
4916
|
-
return
|
|
4958
|
+
return Wi(
|
|
4917
4959
|
st(e.content).map((k) => ({
|
|
4918
4960
|
id: k.testVariationId,
|
|
4919
4961
|
testRatio: k.testRatio
|
|
@@ -4927,13 +4969,13 @@ function Ur(e) {
|
|
|
4927
4969
|
return t ? {
|
|
4928
4970
|
...e.content,
|
|
4929
4971
|
testVariationId: (d = e.content) == null ? void 0 : d.id
|
|
4930
|
-
} :
|
|
4972
|
+
} : vi({
|
|
4931
4973
|
item: e.content,
|
|
4932
4974
|
canTrack: Ht(e.canTrack)
|
|
4933
4975
|
});
|
|
4934
4976
|
};
|
|
4935
4977
|
return /* @__PURE__ */ xe(L, { children: [
|
|
4936
|
-
!e.__isNestedRender && he !== "reactNative" ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr:
|
|
4978
|
+
!e.__isNestedRender && he !== "reactNative" ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr: Li() }) }) : null,
|
|
4937
4979
|
t ? /* @__PURE__ */ xe(L, { children: [
|
|
4938
4980
|
/* @__PURE__ */ C(
|
|
4939
4981
|
dt,
|
|
@@ -4944,7 +4986,7 @@ function Ur(e) {
|
|
|
4944
4986
|
),
|
|
4945
4987
|
/* @__PURE__ */ C(Gt, { scriptStr: n() }),
|
|
4946
4988
|
(s = st(e.content)) == null ? void 0 : s.map((u) => /* @__PURE__ */ C(
|
|
4947
|
-
|
|
4989
|
+
ar,
|
|
4948
4990
|
{
|
|
4949
4991
|
content: u,
|
|
4950
4992
|
showContent: !1,
|
|
@@ -4970,7 +5012,7 @@ function Ur(e) {
|
|
|
4970
5012
|
))
|
|
4971
5013
|
] }) : null,
|
|
4972
5014
|
/* @__PURE__ */ C(
|
|
4973
|
-
|
|
5015
|
+
ar,
|
|
4974
5016
|
{
|
|
4975
5017
|
content: o(),
|
|
4976
5018
|
showContent: !0,
|
|
@@ -4995,7 +5037,7 @@ function Ur(e) {
|
|
|
4995
5037
|
)
|
|
4996
5038
|
] });
|
|
4997
5039
|
}
|
|
4998
|
-
const
|
|
5040
|
+
const Ra = async ({
|
|
4999
5041
|
builderContextValue: e,
|
|
5000
5042
|
symbol: t
|
|
5001
5043
|
}) => {
|
|
@@ -5014,7 +5056,7 @@ const Ia = async ({
|
|
|
5014
5056
|
z.error("Could not fetch symbol content: ", n);
|
|
5015
5057
|
});
|
|
5016
5058
|
};
|
|
5017
|
-
async function
|
|
5059
|
+
async function Pa(e) {
|
|
5018
5060
|
var r, o, i, s, u;
|
|
5019
5061
|
const t = function() {
|
|
5020
5062
|
var k, E;
|
|
@@ -5024,12 +5066,12 @@ async function Ta(e) {
|
|
|
5024
5066
|
(k = e.symbol) != null && k.inline ? "builder-inline-symbol" : void 0,
|
|
5025
5067
|
(E = e.symbol) != null && E.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5026
5068
|
].filter(Boolean).join(" ");
|
|
5027
|
-
}, n = ((r = e.symbol) == null ? void 0 : r.content) || await
|
|
5069
|
+
}, n = ((r = e.symbol) == null ? void 0 : r.content) || await Ra({
|
|
5028
5070
|
symbol: e.symbol,
|
|
5029
5071
|
builderContextValue: e.builderContext
|
|
5030
5072
|
});
|
|
5031
5073
|
return /* @__PURE__ */ C("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ C(
|
|
5032
|
-
|
|
5074
|
+
Fr,
|
|
5033
5075
|
{
|
|
5034
5076
|
__isNestedRender: !0,
|
|
5035
5077
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5050,18 +5092,18 @@ async function Ta(e) {
|
|
|
5050
5092
|
}
|
|
5051
5093
|
) });
|
|
5052
5094
|
}
|
|
5053
|
-
const
|
|
5054
|
-
function
|
|
5095
|
+
const qa = mt, Za = Fr, sr = {};
|
|
5096
|
+
function Qa(e) {
|
|
5055
5097
|
if (G()) {
|
|
5056
|
-
Object.assign(
|
|
5098
|
+
Object.assign(sr, e);
|
|
5057
5099
|
const t = {
|
|
5058
5100
|
type: "builder.settingsChange",
|
|
5059
|
-
data:
|
|
5101
|
+
data: sr
|
|
5060
5102
|
};
|
|
5061
5103
|
parent.postMessage(t, "*");
|
|
5062
5104
|
}
|
|
5063
5105
|
}
|
|
5064
|
-
const
|
|
5106
|
+
const es = async (e) => {
|
|
5065
5107
|
var r, o, i;
|
|
5066
5108
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
5067
5109
|
...e,
|
|
@@ -5073,7 +5115,7 @@ const Ya = async (e) => {
|
|
|
5073
5115
|
urlPath: t
|
|
5074
5116
|
} : {}
|
|
5075
5117
|
},
|
|
5076
|
-
options:
|
|
5118
|
+
options: jr(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
5077
5119
|
};
|
|
5078
5120
|
return {
|
|
5079
5121
|
apiKey: n.apiKey,
|
|
@@ -5082,42 +5124,43 @@ const Ya = async (e) => {
|
|
|
5082
5124
|
};
|
|
5083
5125
|
};
|
|
5084
5126
|
export {
|
|
5085
|
-
|
|
5127
|
+
na as A,
|
|
5086
5128
|
mt as B,
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5129
|
+
Fr as C,
|
|
5130
|
+
Pr as D,
|
|
5131
|
+
Ha as E,
|
|
5132
|
+
$a as F,
|
|
5133
|
+
jr as G,
|
|
5134
|
+
Ga as H,
|
|
5135
|
+
es as I,
|
|
5136
|
+
qa as R,
|
|
5137
|
+
Pa as S,
|
|
5138
|
+
Ni as T,
|
|
5139
|
+
ga as _,
|
|
5140
|
+
ri as a,
|
|
5141
|
+
Va as b,
|
|
5099
5142
|
Yt as c,
|
|
5100
|
-
|
|
5101
|
-
|
|
5143
|
+
_a as d,
|
|
5144
|
+
La as e,
|
|
5102
5145
|
G as f,
|
|
5103
5146
|
Xt as g,
|
|
5104
5147
|
Ht as h,
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5148
|
+
Da as i,
|
|
5149
|
+
Ka as j,
|
|
5150
|
+
oa as k,
|
|
5108
5151
|
z as l,
|
|
5109
5152
|
sn as m,
|
|
5110
|
-
|
|
5153
|
+
Xa as n,
|
|
5111
5154
|
pt as o,
|
|
5112
|
-
|
|
5155
|
+
Wa as p,
|
|
5113
5156
|
un as q,
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5157
|
+
Ya as r,
|
|
5158
|
+
Ja as s,
|
|
5159
|
+
za as t,
|
|
5160
|
+
Ji as u,
|
|
5161
|
+
Ki as v,
|
|
5162
|
+
Za as w,
|
|
5163
|
+
ai as x,
|
|
5164
|
+
Sa as y,
|
|
5165
|
+
Qa as z
|
|
5123
5166
|
};
|