@builder.io/sdk-react-nextjs 0.14.19 → 0.14.21
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-a0af5379.cjs → USE_CLIENT_BUNDLE-421209ac.cjs} +1 -1
- package/lib/{node/USE_CLIENT_BUNDLE-e4c15aa7.js → browser/USE_CLIENT_BUNDLE-85cd491c.js} +2 -2
- package/lib/{edge/USE_SERVER_BUNDLE-7acc7eaf.cjs → browser/USE_SERVER_BUNDLE-7f959896.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-90c6ce15.js → browser/USE_SERVER_BUNDLE-c44b1000.js} +1 -1
- package/lib/browser/{bundle-9732e1d3.cjs → bundle-1e8b30d0.cjs} +20 -20
- package/lib/browser/{bundle-edd2e835.js → bundle-8e752d91.js} +302 -295
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{node/USE_CLIENT_BUNDLE-8a32af0d.cjs → edge/USE_CLIENT_BUNDLE-1d5cd7a9.cjs} +1 -1
- package/lib/{browser/USE_CLIENT_BUNDLE-b63f19ab.js → edge/USE_CLIENT_BUNDLE-e965200b.js} +2 -2
- package/lib/{node/USE_SERVER_BUNDLE-d6552b77.cjs → edge/USE_SERVER_BUNDLE-53f11a34.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-4fd50e3b.js → edge/USE_SERVER_BUNDLE-81678d13.js} +1 -1
- package/lib/edge/{bundle-af88805d.cjs → bundle-4d349481.cjs} +28 -28
- package/lib/edge/{bundle-e86f8464.js → bundle-ad170624.js} +500 -493
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-8bf08d5b.js → node/USE_CLIENT_BUNDLE-14685e18.js} +2 -2
- package/lib/{edge/USE_CLIENT_BUNDLE-0a51f6af.cjs → node/USE_CLIENT_BUNDLE-80d049f9.cjs} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-c0e4ee23.cjs → node/USE_SERVER_BUNDLE-c11df0b0.cjs} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-60e66f1c.js → node/USE_SERVER_BUNDLE-c93447b3.js} +1 -1
- package/lib/node/{bundle-1280dc1a.js → bundle-5c7927a4.js} +46 -39
- package/lib/node/{bundle-23855e1a.cjs → bundle-8a453488.cjs} +6 -6
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/helpers/flatten.d.ts +10 -0
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/helpers/flatten.d.ts +10 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as I, Fragment as ee, jsxs as xe } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { LRUCache as
|
|
4
|
-
import { I as
|
|
3
|
+
import { LRUCache as oo } from "lru-cache";
|
|
4
|
+
import { I as io, B as ao, a as so, D as lo, C as co, E as uo, b as fo, V as po, c as ho, F as mo, d as go, S as yo, e as vo } from "./USE_CLIENT_BUNDLE-e965200b.js";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
const
|
|
6
|
+
const bo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), za = (e) => typeof e == "string" && bo.has(e.toLowerCase()), me = "rsc", Yt = () => {
|
|
7
7
|
switch (me) {
|
|
8
8
|
case "react":
|
|
9
9
|
case "reactNative":
|
|
@@ -17,7 +17,7 @@ const vo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr",
|
|
|
17
17
|
return "class";
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
function
|
|
20
|
+
function So(e) {
|
|
21
21
|
var t;
|
|
22
22
|
return {
|
|
23
23
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -37,27 +37,27 @@ const lt = "[Builder.io]: ", Z = {
|
|
|
37
37
|
function G() {
|
|
38
38
|
return typeof window < "u" && typeof document < "u";
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const wo = (e) => {
|
|
41
41
|
const t = {};
|
|
42
42
|
return e.forEach((n, r) => {
|
|
43
43
|
t[r] = n;
|
|
44
44
|
}), t;
|
|
45
|
-
}, lr = (e) => e instanceof URLSearchParams ?
|
|
46
|
-
function
|
|
45
|
+
}, lr = (e) => e instanceof URLSearchParams ? wo(e) : e, cr = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
46
|
+
function xo() {
|
|
47
47
|
return G() && window.self !== window.top;
|
|
48
48
|
}
|
|
49
49
|
function ur(e) {
|
|
50
|
-
return
|
|
50
|
+
return xo() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
51
51
|
cr(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
52
52
|
}
|
|
53
|
-
const
|
|
53
|
+
const ko = () => {
|
|
54
54
|
if (G()) {
|
|
55
55
|
const e = new URL(location.href);
|
|
56
56
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
57
57
|
} else
|
|
58
58
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
59
|
-
},
|
|
60
|
-
const e =
|
|
59
|
+
}, Co = () => typeof navigator == "object" && navigator.userAgent || "", fr = () => {
|
|
60
|
+
const e = Co(), t = {
|
|
61
61
|
Android() {
|
|
62
62
|
return e.match(/Android/i);
|
|
63
63
|
},
|
|
@@ -76,7 +76,7 @@ const xo = () => {
|
|
|
76
76
|
any() {
|
|
77
77
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || me === "reactNative";
|
|
78
78
|
}
|
|
79
|
-
}, n = e.match(/Tablet|iPad/i), r =
|
|
79
|
+
}, n = e.match(/Tablet|iPad/i), r = ko();
|
|
80
80
|
return {
|
|
81
81
|
urlPath: r == null ? void 0 : r.pathname,
|
|
82
82
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
@@ -94,14 +94,14 @@ const xo = () => {
|
|
|
94
94
|
builder: e,
|
|
95
95
|
context: t,
|
|
96
96
|
event: n
|
|
97
|
-
}),
|
|
97
|
+
}), Eo = () => ({
|
|
98
98
|
isEditing: ur(),
|
|
99
99
|
isBrowser: G(),
|
|
100
100
|
isServer: !G(),
|
|
101
101
|
getUserAttributes: () => fr()
|
|
102
|
-
}),
|
|
102
|
+
}), Io = (e, {
|
|
103
103
|
isExpression: t = !0
|
|
104
|
-
}) => /* 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,
|
|
104
|
+
}) => /* 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, To = ({
|
|
105
105
|
code: e,
|
|
106
106
|
builder: t,
|
|
107
107
|
context: n,
|
|
@@ -153,19 +153,19 @@ const hr = (e, t, n) => {
|
|
|
153
153
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
154
154
|
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;
|
|
155
155
|
};
|
|
156
|
-
var B,
|
|
156
|
+
var B, Ao = function(e) {
|
|
157
157
|
function t(a) {
|
|
158
|
-
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a &&
|
|
158
|
+
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && no.test(String.fromCharCode(a));
|
|
159
159
|
}
|
|
160
160
|
function n(a) {
|
|
161
|
-
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a &&
|
|
161
|
+
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && _n.test(String.fromCharCode(a));
|
|
162
162
|
}
|
|
163
163
|
function r(a, l) {
|
|
164
164
|
for (var c = y, d = 1, C = 0; ; ) {
|
|
165
165
|
st.lastIndex = C;
|
|
166
|
-
var
|
|
167
|
-
if (
|
|
168
|
-
++d, C =
|
|
166
|
+
var _ = st.exec(c);
|
|
167
|
+
if (_ && _.index < a)
|
|
168
|
+
++d, C = _.index + _[0].length;
|
|
169
169
|
else
|
|
170
170
|
break;
|
|
171
171
|
}
|
|
@@ -186,7 +186,7 @@ var B, To = function(e) {
|
|
|
186
186
|
this.line = Se, this.ab = f - le;
|
|
187
187
|
}
|
|
188
188
|
function s(a, l) {
|
|
189
|
-
Ce = f, A.C && (
|
|
189
|
+
Ce = f, A.C && (It = new i()), k = a, p(), te = l, Fe = a.m;
|
|
190
190
|
}
|
|
191
191
|
function u() {
|
|
192
192
|
for (var a = f, l = A.va && A.C && new i(), c = y.charCodeAt(f += 2); f < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
@@ -218,7 +218,7 @@ var B, To = function(e) {
|
|
|
218
218
|
break;
|
|
219
219
|
else if (a === 160)
|
|
220
220
|
++f;
|
|
221
|
-
else if (5760 <= a &&
|
|
221
|
+
else if (5760 <= a && to.test(String.fromCharCode(a)))
|
|
222
222
|
++f;
|
|
223
223
|
else
|
|
224
224
|
break;
|
|
@@ -240,18 +240,18 @@ var B, To = function(e) {
|
|
|
240
240
|
case 91:
|
|
241
241
|
return ++f, s(Mt);
|
|
242
242
|
case 93:
|
|
243
|
-
return ++f, s(
|
|
243
|
+
return ++f, s(Ft);
|
|
244
244
|
case 123:
|
|
245
245
|
return ++f, s(Le);
|
|
246
246
|
case 125:
|
|
247
247
|
return ++f, s(Ie);
|
|
248
248
|
case 58:
|
|
249
|
-
return ++f, s(
|
|
249
|
+
return ++f, s(We);
|
|
250
250
|
case 63:
|
|
251
251
|
return ++f, s(Un);
|
|
252
252
|
case 48:
|
|
253
253
|
if (a = y.charCodeAt(f + 1), a === 120 || a === 88) {
|
|
254
|
-
f += 2, a = N(16), a === null && r(
|
|
254
|
+
f += 2, a = N(16), a === null && r(W + 2, "Expected hexadecimal number"), n(y.charCodeAt(f)) && r(f, "Identifier directly after number"), s(De, a);
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
257
|
case 49:
|
|
@@ -268,7 +268,7 @@ var B, To = function(e) {
|
|
|
268
268
|
case 39:
|
|
269
269
|
f++;
|
|
270
270
|
for (var l = ""; ; ) {
|
|
271
|
-
f >= ke && r(
|
|
271
|
+
f >= ke && r(W, "Unterminated string constant");
|
|
272
272
|
var c = y.charCodeAt(f);
|
|
273
273
|
if (c === a) {
|
|
274
274
|
++f, s(rt, l);
|
|
@@ -323,34 +323,34 @@ var B, To = function(e) {
|
|
|
323
323
|
l += String.fromCharCode(c);
|
|
324
324
|
}
|
|
325
325
|
} else
|
|
326
|
-
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(
|
|
326
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(W, "Unterminated string constant"), l += String.fromCharCode(c), ++f;
|
|
327
327
|
}
|
|
328
328
|
return;
|
|
329
329
|
case 47:
|
|
330
|
-
a = y.charCodeAt(f + 1),
|
|
330
|
+
a = y.charCodeAt(f + 1), Fe ? (++f, O()) : a === 61 ? m(we, 2) : m(Mn, 1);
|
|
331
331
|
return;
|
|
332
332
|
case 37:
|
|
333
333
|
case 42:
|
|
334
|
-
y.charCodeAt(f + 1) === 61 ? m(we, 2) : m(
|
|
334
|
+
y.charCodeAt(f + 1) === 61 ? m(we, 2) : m(Zr, 1);
|
|
335
335
|
return;
|
|
336
336
|
case 124:
|
|
337
337
|
case 38:
|
|
338
|
-
l = y.charCodeAt(f + 1), l === a ? m(a === 124 ? Dn : Ln, 2) : l === 61 ? m(we, 2) : m(a === 124 ?
|
|
338
|
+
l = y.charCodeAt(f + 1), l === a ? m(a === 124 ? Dn : Ln, 2) : l === 61 ? m(we, 2) : m(a === 124 ? Kr : Xr, 1);
|
|
339
339
|
return;
|
|
340
340
|
case 94:
|
|
341
|
-
y.charCodeAt(f + 1) === 61 ? m(we, 2) : m(
|
|
341
|
+
y.charCodeAt(f + 1) === 61 ? m(we, 2) : m(Gr, 1);
|
|
342
342
|
return;
|
|
343
343
|
case 43:
|
|
344
344
|
case 45:
|
|
345
|
-
l = y.charCodeAt(f + 1), l === a ? l === 45 && y.charCodeAt(f + 2) === 62 && at.test(y.slice(ge, f)) ? (f += 3, u(), p(), x()) : m(
|
|
345
|
+
l = y.charCodeAt(f + 1), l === a ? l === 45 && y.charCodeAt(f + 2) === 62 && at.test(y.slice(ge, f)) ? (f += 3, u(), p(), x()) : m(Hr, 2) : l === 61 ? m(we, 2) : m(qr, 1);
|
|
346
346
|
return;
|
|
347
347
|
case 60:
|
|
348
348
|
case 62:
|
|
349
|
-
l = y.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && y.charCodeAt(f + 2) === 62 ? 3 : 2, y.charCodeAt(f + c) === 61 ? m(we, c + 1) : m(
|
|
349
|
+
l = y.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && y.charCodeAt(f + 2) === 62 ? 3 : 2, y.charCodeAt(f + c) === 61 ? m(we, c + 1) : m(zr, c)) : l === 33 && a === 60 && y.charCodeAt(f + 2) === 45 && y.charCodeAt(f + 3) === 45 ? (f += 4, u(), p(), x()) : (l === 61 && (c = y.charCodeAt(f + 2) === 61 ? 3 : 2), m(Jr, c));
|
|
350
350
|
return;
|
|
351
351
|
case 61:
|
|
352
352
|
case 33:
|
|
353
|
-
y.charCodeAt(f + 1) === 61 ? m(
|
|
353
|
+
y.charCodeAt(f + 1) === 61 ? m(Yr, y.charCodeAt(f + 2) === 61 ? 3 : 2) : m(a === 61 ? Fn : Vn, 1);
|
|
354
354
|
return;
|
|
355
355
|
case 126:
|
|
356
356
|
return m(Vn, 1);
|
|
@@ -358,14 +358,14 @@ var B, To = function(e) {
|
|
|
358
358
|
return !1;
|
|
359
359
|
}
|
|
360
360
|
function x(a) {
|
|
361
|
-
if (a ? f =
|
|
361
|
+
if (a ? f = W + 1 : W = f, A.C && (Et = new i()), a)
|
|
362
362
|
return O();
|
|
363
363
|
if (f >= ke)
|
|
364
|
-
return s(
|
|
364
|
+
return s(Ot);
|
|
365
365
|
if (a = y.charCodeAt(f), n(a) || a === 92)
|
|
366
366
|
return T();
|
|
367
367
|
if (b(a) === !1) {
|
|
368
|
-
if (a = String.fromCharCode(a), a === "\\" ||
|
|
368
|
+
if (a = String.fromCharCode(a), a === "\\" || _n.test(a))
|
|
369
369
|
return T();
|
|
370
370
|
r(f, "Unexpected character '" + a + "'");
|
|
371
371
|
}
|
|
@@ -394,13 +394,13 @@ var B, To = function(e) {
|
|
|
394
394
|
a = y.slice(c, f), ++f, (l = Y()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
395
395
|
try {
|
|
396
396
|
var C = new RegExp(a, l);
|
|
397
|
-
} catch (
|
|
398
|
-
throw
|
|
397
|
+
} catch (_) {
|
|
398
|
+
throw _ instanceof SyntaxError && r(c, _.message), _;
|
|
399
399
|
}
|
|
400
400
|
s(mn, C);
|
|
401
401
|
}
|
|
402
402
|
function N(a, l) {
|
|
403
|
-
for (var c = f, d = 0, C = l === void 0 ? 1 / 0 : l,
|
|
403
|
+
for (var c = f, d = 0, C = l === void 0 ? 1 / 0 : l, _ = 0; _ < C; ++_) {
|
|
404
404
|
var J = y.charCodeAt(f);
|
|
405
405
|
if (J = 97 <= J ? J - 97 + 10 : 65 <= J ? J - 65 + 10 : 48 <= J && 57 >= J ? J - 48 : 1 / 0, J >= a)
|
|
406
406
|
break;
|
|
@@ -415,7 +415,7 @@ var B, To = function(e) {
|
|
|
415
415
|
c ? C = parseFloat(a) : d && a.length !== 1 ? /[89]/.test(a) || Q ? r(l, "Invalid number") : C = parseInt(a, 8) : C = parseInt(a, 10), s(De, C);
|
|
416
416
|
}
|
|
417
417
|
function R(a) {
|
|
418
|
-
return a = N(16, a), a === null && r(
|
|
418
|
+
return a = N(16, a), a === null && r(W, "Bad character escape sequence"), a;
|
|
419
419
|
}
|
|
420
420
|
function Y() {
|
|
421
421
|
Te = !1;
|
|
@@ -435,65 +435,65 @@ var B, To = function(e) {
|
|
|
435
435
|
}
|
|
436
436
|
function T() {
|
|
437
437
|
var a = Y(), l = Ee;
|
|
438
|
-
!Te &&
|
|
438
|
+
!Te && eo(a) && (l = $r[a]), s(l, a);
|
|
439
439
|
}
|
|
440
440
|
function g() {
|
|
441
|
-
|
|
441
|
+
Tt = W, ge = Ce, At = It, x();
|
|
442
442
|
}
|
|
443
443
|
function U(a) {
|
|
444
|
-
if (Q = a, f =
|
|
444
|
+
if (Q = a, f = W, A.C)
|
|
445
445
|
for (; f < le; )
|
|
446
446
|
le = y.lastIndexOf(`
|
|
447
447
|
`, le - 2) + 1, --Se;
|
|
448
448
|
p(), x();
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
this.type = null, this.start =
|
|
450
|
+
function F() {
|
|
451
|
+
this.type = null, this.start = W, this.end = null;
|
|
452
452
|
}
|
|
453
453
|
function X() {
|
|
454
|
-
this.start =
|
|
454
|
+
this.start = Et, this.end = null, Ct && (this.source = Ct);
|
|
455
455
|
}
|
|
456
456
|
function V() {
|
|
457
|
-
var a = new
|
|
458
|
-
return A.C && (a.X = new X()), A.vb && (a.sourceFile = A.vb), A.Xa && (a.j = [
|
|
457
|
+
var a = new F();
|
|
458
|
+
return A.C && (a.X = new X()), A.vb && (a.sourceFile = A.vb), A.Xa && (a.j = [W, 0]), a;
|
|
459
459
|
}
|
|
460
460
|
function ne(a) {
|
|
461
|
-
var l = new
|
|
461
|
+
var l = new F();
|
|
462
462
|
return l.start = a.start, A.C && (l.X = new X(), l.X.start = a.X.start), A.Xa && (l.j = [a.j[0], 0]), l;
|
|
463
463
|
}
|
|
464
464
|
function E(a, l) {
|
|
465
|
-
return a.type = l, a.end = ge, A.C && (a.X.end =
|
|
465
|
+
return a.type = l, a.end = ge, A.C && (a.X.end = At), A.Xa && (a.j[1] = ge), a;
|
|
466
466
|
}
|
|
467
467
|
function Qe(a) {
|
|
468
468
|
return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function M(a) {
|
|
471
471
|
return k === a ? (g(), !0) : !1;
|
|
472
472
|
}
|
|
473
473
|
function et() {
|
|
474
|
-
return !A.fc && (k ===
|
|
474
|
+
return !A.fc && (k === Ot || k === Ie || at.test(y.slice(ge, W)));
|
|
475
475
|
}
|
|
476
476
|
function be() {
|
|
477
|
-
|
|
477
|
+
M(ue) || et() || ae();
|
|
478
478
|
}
|
|
479
479
|
function D(a) {
|
|
480
480
|
k === a ? g() : ae();
|
|
481
481
|
}
|
|
482
482
|
function ae() {
|
|
483
|
-
r(
|
|
483
|
+
r(W, "Unexpected token");
|
|
484
484
|
}
|
|
485
485
|
function tt(a) {
|
|
486
486
|
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), Q && a.type === "Identifier" && it(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
487
487
|
}
|
|
488
488
|
function re() {
|
|
489
|
-
(k ===
|
|
489
|
+
(k === Mn || k === we && te === "/=") && x(!0);
|
|
490
490
|
var a = k, l = V();
|
|
491
491
|
switch (a) {
|
|
492
|
-
case
|
|
492
|
+
case jt:
|
|
493
493
|
case yn:
|
|
494
494
|
g();
|
|
495
|
-
var c = a ===
|
|
496
|
-
|
|
495
|
+
var c = a === jt;
|
|
496
|
+
M(ue) || et() ? l.label = null : k !== Ee ? ae() : (l.label = se(), be());
|
|
497
497
|
for (var d = 0; d < L.length; ++d) {
|
|
498
498
|
var C = L[d];
|
|
499
499
|
if ((l.label === null || C.name === l.label.name) && (C.kind !== null && (c || C.kind === "loop") || l.label && c))
|
|
@@ -503,40 +503,40 @@ var B, To = function(e) {
|
|
|
503
503
|
case vn:
|
|
504
504
|
return g(), be(), E(l, "DebuggerStatement");
|
|
505
505
|
case Sn:
|
|
506
|
-
return g(), L.push(
|
|
506
|
+
return g(), L.push(Vt), l.body = re(), L.pop(), D(Ut), l.test = Be(), be(), E(l, "DoWhileStatement");
|
|
507
507
|
case kn:
|
|
508
|
-
return g(), L.push(
|
|
509
|
-
case
|
|
510
|
-
return g(),
|
|
508
|
+
return g(), L.push(Vt), D(ce), k === ue ? vt(l, null) : k === Bt ? (a = V(), g(), pn(a, !0), E(a, "VariableDeclaration"), a.fa.length === 1 && M(ot) ? dn(l, a) : vt(l, a)) : (a = K(!1, !0), M(ot) ? (tt(a), dn(l, a)) : vt(l, a));
|
|
509
|
+
case Pt:
|
|
510
|
+
return g(), xt(l, !0);
|
|
511
511
|
case Cn:
|
|
512
|
-
return g(), l.test = Be(), l.da = re(), l.alternate =
|
|
512
|
+
return g(), l.test = Be(), l.da = re(), l.alternate = M(wn) ? re() : null, E(l, "IfStatement");
|
|
513
513
|
case En:
|
|
514
|
-
return Ve || A.Ib || r(
|
|
515
|
-
case
|
|
516
|
-
for (g(), l.Qb = Be(), l.tb = [], D(Le), L.push(
|
|
517
|
-
k ===
|
|
514
|
+
return Ve || A.Ib || r(W, "'return' outside of function"), g(), M(ue) || et() ? l.K = null : (l.K = K(), be()), E(l, "ReturnStatement");
|
|
515
|
+
case Nt:
|
|
516
|
+
for (g(), l.Qb = Be(), l.tb = [], D(Le), L.push(ro); k !== Ie; )
|
|
517
|
+
k === Rt || k === bn ? (a = k === Rt, d && E(d, "SwitchCase"), l.tb.push(d = V()), d.da = [], g(), a ? d.test = K() : (c && r(Tt, "Multiple default clauses"), c = !0, d.test = null), D(We)) : (d || ae(), d.da.push(re()));
|
|
518
518
|
return d && E(d, "SwitchCase"), g(), L.pop(), E(l, "SwitchStatement");
|
|
519
519
|
case In:
|
|
520
|
-
return g(), at.test(y.slice(ge,
|
|
520
|
+
return g(), at.test(y.slice(ge, W)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), E(l, "ThrowStatement");
|
|
521
521
|
case Tn:
|
|
522
|
-
return g(), l.block = Ue(), l.Ea = null, k === gn && (a = V(), g(), D(ce), a.Ua = se(), Q && it(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), D(oe), a.body = Ue(), l.Ea = E(a, "CatchClause")), l.fb =
|
|
523
|
-
case
|
|
522
|
+
return g(), l.block = Ue(), l.Ea = null, k === gn && (a = V(), g(), D(ce), a.Ua = se(), Q && it(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), D(oe), a.body = Ue(), l.Ea = E(a, "CatchClause")), l.fb = M(xn) ? Ue() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
523
|
+
case Bt:
|
|
524
524
|
return g(), pn(l), be(), E(l, "VariableDeclaration");
|
|
525
|
-
case
|
|
526
|
-
return g(), l.test = Be(), L.push(
|
|
525
|
+
case Ut:
|
|
526
|
+
return g(), l.test = Be(), L.push(Vt), l.body = re(), L.pop(), E(l, "WhileStatement");
|
|
527
527
|
case An:
|
|
528
|
-
return Q && r(
|
|
528
|
+
return Q && r(W, "'with' in strict mode"), g(), l.object = Be(), l.body = re(), E(l, "WithStatement");
|
|
529
529
|
case Le:
|
|
530
530
|
return Ue();
|
|
531
531
|
case ue:
|
|
532
532
|
return g(), E(l, "EmptyStatement");
|
|
533
533
|
default:
|
|
534
|
-
if (c = te, C = K(), a === Ee && C.type === "Identifier" &&
|
|
534
|
+
if (c = te, C = K(), a === Ee && C.type === "Identifier" && M(We)) {
|
|
535
535
|
for (d = 0; d < L.length; ++d)
|
|
536
536
|
L[d].name === c && r(C.start, "Label '" + c + "' is already declared");
|
|
537
537
|
return L.push({
|
|
538
538
|
name: c,
|
|
539
|
-
kind: k.W ? "loop" : k ===
|
|
539
|
+
kind: k.W ? "loop" : k === Nt ? "switch" : null
|
|
540
540
|
}), l.body = re(), L.pop(), l.label = C, E(l, "LabeledStatement");
|
|
541
541
|
}
|
|
542
542
|
return l.la = C, be(), E(l, "ExpressionStatement");
|
|
@@ -549,17 +549,17 @@ var B, To = function(e) {
|
|
|
549
549
|
}
|
|
550
550
|
function Ue(a) {
|
|
551
551
|
var l = V(), c = !0, d = !1;
|
|
552
|
-
for (l.body = [], D(Le); !
|
|
552
|
+
for (l.body = [], D(Le); !M(Ie); ) {
|
|
553
553
|
var C = re();
|
|
554
554
|
if (l.body.push(C), c && a && Qe(C)) {
|
|
555
|
-
var
|
|
555
|
+
var _ = d;
|
|
556
556
|
U(d = !0);
|
|
557
557
|
}
|
|
558
558
|
c = !1;
|
|
559
559
|
}
|
|
560
|
-
return d && !
|
|
560
|
+
return d && !_ && U(!1), E(l, "BlockStatement");
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function vt(a, l) {
|
|
563
563
|
return a.ua = l, D(ue), a.test = k === ue ? null : K(), D(ue), a.update = k === oe ? null : K(), D(oe), a.body = re(), L.pop(), E(a, "ForStatement");
|
|
564
564
|
}
|
|
565
565
|
function dn(a, l) {
|
|
@@ -568,50 +568,50 @@ var B, To = function(e) {
|
|
|
568
568
|
function pn(a, l) {
|
|
569
569
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
570
570
|
var c = V();
|
|
571
|
-
if (c.id = se(), Q && it(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua =
|
|
571
|
+
if (c.id = se(), Q && it(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = M(Fn) ? K(!0, l) : null, a.fa.push(E(c, "VariableDeclarator")), !M(ye))
|
|
572
572
|
break;
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
function K(a, l) {
|
|
576
|
-
var c =
|
|
576
|
+
var c = bt(l);
|
|
577
577
|
if (!a && k === ye) {
|
|
578
|
-
for (a = ne(c), a.xb = [c];
|
|
579
|
-
a.xb.push(
|
|
578
|
+
for (a = ne(c), a.xb = [c]; M(ye); )
|
|
579
|
+
a.xb.push(bt(l));
|
|
580
580
|
return E(a, "SequenceExpression");
|
|
581
581
|
}
|
|
582
582
|
return c;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
585
|
-
var l = wt(
|
|
586
|
-
if (
|
|
584
|
+
function bt(a) {
|
|
585
|
+
var l = St(wt(), -1, a);
|
|
586
|
+
if (M(Un)) {
|
|
587
587
|
var c = ne(l);
|
|
588
|
-
c.test = l, c.da = K(!0), D(
|
|
588
|
+
c.test = l, c.da = K(!0), D(We), c.alternate = K(!0, a), l = E(c, "ConditionalExpression");
|
|
589
589
|
}
|
|
590
|
-
return k.Cb ? (c = ne(l), c.operator = te, c.left = l, g(), c.right =
|
|
590
|
+
return k.Cb ? (c = ne(l), c.operator = te, c.left = l, g(), c.right = bt(a), tt(l), E(c, "AssignmentExpression")) : l;
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function St(a, l, c) {
|
|
593
593
|
var d = k.L;
|
|
594
594
|
if (d !== null && (!c || k !== ot) && d > l) {
|
|
595
595
|
var C = ne(a);
|
|
596
|
-
return C.left = a, C.operator = te, a = k, g(), C.right = wt(
|
|
596
|
+
return C.left = a, C.operator = te, a = k, g(), C.right = St(wt(), d, c), d = E(C, a === Dn || a === Ln ? "LogicalExpression" : "BinaryExpression"), St(d, l, c);
|
|
597
597
|
}
|
|
598
598
|
return a;
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function wt() {
|
|
601
601
|
if (k.prefix) {
|
|
602
602
|
var a = V(), l = k.$b;
|
|
603
|
-
return a.operator = te,
|
|
603
|
+
return a.operator = te, Fe = a.prefix = !0, g(), a.K = wt(), l ? tt(a.K) : Q && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), E(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
604
604
|
}
|
|
605
|
-
for (l =
|
|
605
|
+
for (l = Me(nt()); k.cc && !et(); )
|
|
606
606
|
a = ne(l), a.operator = te, a.prefix = !1, a.K = l, tt(l), g(), l = E(a, "UpdateExpression");
|
|
607
607
|
return l;
|
|
608
608
|
}
|
|
609
|
-
function
|
|
610
|
-
if (
|
|
609
|
+
function Me(a, l) {
|
|
610
|
+
if (M(Bn)) {
|
|
611
611
|
var c = ne(a);
|
|
612
|
-
return c.object = a, c.Wa = se(!0), c.bb = !1,
|
|
612
|
+
return c.object = a, c.Wa = se(!0), c.bb = !1, Me(E(c, "MemberExpression"), l);
|
|
613
613
|
}
|
|
614
|
-
return
|
|
614
|
+
return M(Mt) ? (c = ne(a), c.object = a, c.Wa = K(), c.bb = !0, D(Ft), Me(E(c, "MemberExpression"), l)) : !l && M(ce) ? (c = ne(a), c.callee = a, c.arguments = kt(oe, !1), Me(E(c, "CallExpression"), l)) : a;
|
|
615
615
|
}
|
|
616
616
|
function nt() {
|
|
617
617
|
switch (k) {
|
|
@@ -623,71 +623,71 @@ var B, To = function(e) {
|
|
|
623
623
|
case De:
|
|
624
624
|
case rt:
|
|
625
625
|
case mn:
|
|
626
|
-
return a = V(), a.value = te, a.raw = y.slice(
|
|
626
|
+
return a = V(), a.value = te, a.raw = y.slice(W, Ce), g(), E(a, "Literal");
|
|
627
627
|
case Rn:
|
|
628
628
|
case Pn:
|
|
629
629
|
case Nn:
|
|
630
630
|
return a = V(), a.value = k.$a, a.raw = k.l, g(), E(a, "Literal");
|
|
631
631
|
case ce:
|
|
632
|
-
a =
|
|
633
|
-
var l =
|
|
632
|
+
a = Et;
|
|
633
|
+
var l = W;
|
|
634
634
|
g();
|
|
635
635
|
var c = K();
|
|
636
|
-
return c.start = l, c.end = Ce, A.C && (c.X.start = a, c.X.end =
|
|
636
|
+
return c.start = l, c.end = Ce, A.C && (c.X.start = a, c.X.end = It), A.Xa && (c.j = [l, Ce]), D(oe), c;
|
|
637
637
|
case Mt:
|
|
638
|
-
return a = V(), g(), a.elements =
|
|
638
|
+
return a = V(), g(), a.elements = kt(Ft, !0, !0), E(a, "ArrayExpression");
|
|
639
639
|
case Le:
|
|
640
|
-
for (a = V(), l = !0, c = !1, a.h = [], g(); !
|
|
640
|
+
for (a = V(), l = !0, c = !1, a.h = [], g(); !M(Ie); ) {
|
|
641
641
|
if (l)
|
|
642
642
|
l = !1;
|
|
643
|
-
else if (D(ye), A.sb &&
|
|
643
|
+
else if (D(ye), A.sb && M(Ie))
|
|
644
644
|
break;
|
|
645
645
|
var d = {
|
|
646
646
|
key: k === De || k === rt ? nt() : se(!0)
|
|
647
647
|
}, C = !1;
|
|
648
|
-
if (
|
|
648
|
+
if (M(We)) {
|
|
649
649
|
d.value = K(!0);
|
|
650
|
-
var
|
|
650
|
+
var _ = d.kind = "init";
|
|
651
651
|
} else
|
|
652
|
-
d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ? ae() : (C = c = !0,
|
|
652
|
+
d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ? ae() : (C = c = !0, _ = d.kind = d.key.name, d.key = k === De || k === rt ? nt() : se(!0), k !== ce && ae(), d.value = xt(V(), !1));
|
|
653
653
|
if (d.key.type === "Identifier" && (Q || c))
|
|
654
654
|
for (var J = 0; J < a.h.length; ++J) {
|
|
655
655
|
var Ae = a.h[J];
|
|
656
656
|
if (Ae.key.name === d.key.name) {
|
|
657
|
-
var
|
|
658
|
-
|
|
657
|
+
var Dt = _ === Ae.kind || C && Ae.kind === "init" || _ === "init" && (Ae.kind === "get" || Ae.kind === "set");
|
|
658
|
+
Dt && !Q && _ === "init" && Ae.kind === "init" && (Dt = !1), Dt && r(d.key.start, "Redefinition of property");
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
a.h.push(d);
|
|
662
662
|
}
|
|
663
663
|
return E(a, "ObjectExpression");
|
|
664
|
-
case
|
|
665
|
-
return a = V(), g(),
|
|
664
|
+
case Pt:
|
|
665
|
+
return a = V(), g(), xt(a, !1);
|
|
666
666
|
case On:
|
|
667
|
-
return a = V(), g(), a.callee =
|
|
667
|
+
return a = V(), g(), a.callee = Me(nt(), !0), a.arguments = M(ce) ? kt(oe, !1) : _r, E(a, "NewExpression");
|
|
668
668
|
}
|
|
669
669
|
ae();
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function xt(a, l) {
|
|
672
672
|
k === Ee ? a.id = se() : l ? ae() : a.id = null, a.oa = [];
|
|
673
673
|
var c = !0;
|
|
674
|
-
for (D(ce); !
|
|
674
|
+
for (D(ce); !M(oe); )
|
|
675
675
|
c ? c = !1 : D(ye), a.oa.push(se());
|
|
676
676
|
c = Ve;
|
|
677
677
|
var d = L;
|
|
678
678
|
if (Ve = !0, L = [], a.body = Ue(!0), Ve = c, L = d, Q || a.body.body.length && Qe(a.body.body[0])) {
|
|
679
679
|
for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
|
|
680
|
-
if (d = 0 > c ? a.id : a.oa[c], (
|
|
680
|
+
if (d = 0 > c ? a.id : a.oa[c], (Wn(d.name) || it(d.name)) && r(d.start, "Defining '" + d.name + "' in strict mode"), 0 <= c)
|
|
681
681
|
for (var C = 0; C < c; ++C)
|
|
682
682
|
d.name === a.oa[C].name && r(d.start, "Argument name clash in strict mode");
|
|
683
683
|
}
|
|
684
684
|
return E(a, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
685
685
|
}
|
|
686
|
-
function
|
|
687
|
-
for (var d = [], C = !0; !
|
|
686
|
+
function kt(a, l, c) {
|
|
687
|
+
for (var d = [], C = !0; !M(a); ) {
|
|
688
688
|
if (C)
|
|
689
689
|
C = !1;
|
|
690
|
-
else if (D(ye), l && A.sb &&
|
|
690
|
+
else if (D(ye), l && A.sb && M(a))
|
|
691
691
|
break;
|
|
692
692
|
d.push(c && k === ye ? null : K(!0));
|
|
693
693
|
}
|
|
@@ -695,15 +695,15 @@ var B, To = function(e) {
|
|
|
695
695
|
}
|
|
696
696
|
function se(a) {
|
|
697
697
|
var l = V();
|
|
698
|
-
return a && A.yb === "everywhere" && (a = !1), k === Ee ? (!a && (A.yb &&
|
|
698
|
+
return a && A.yb === "everywhere" && (a = !1), k === Ee ? (!a && (A.yb && Qr(te) || Q && Wn(te)) && y.slice(W, Ce).indexOf("\\") === -1 && r(W, "The keyword '" + te + "' is reserved"), l.name = te) : a && k.l ? l.name = k.l : ae(), Fe = !1, g(), E(l, "Identifier");
|
|
699
699
|
}
|
|
700
700
|
e.version = "0.5.0";
|
|
701
|
-
var A, y = "", ke,
|
|
701
|
+
var A, y = "", ke, Ct;
|
|
702
702
|
e.parse = function(a, l) {
|
|
703
703
|
y = String(a), ke = y.length, A = l || {};
|
|
704
704
|
for (var c in hn)
|
|
705
705
|
Object.prototype.hasOwnProperty.call(A, c) || (A[c] = hn[c]);
|
|
706
|
-
for (
|
|
706
|
+
for (Ct = A.sourceFile, Se = 1, f = le = 0, Fe = !0, p(), c = A.dc, Tt = ge = f, A.C && (At = new i()), Ve = Q = !1, L = [], x(), a = c || V(), l = !0, c || (a.body = []); k !== Ot; )
|
|
707
707
|
c = re(), a.body.push(c), l && Qe(c) && U(!0), l = !1;
|
|
708
708
|
return E(a, "Program");
|
|
709
709
|
};
|
|
@@ -718,7 +718,7 @@ var B, To = function(e) {
|
|
|
718
718
|
dc: null,
|
|
719
719
|
sourceFile: null,
|
|
720
720
|
vb: null
|
|
721
|
-
}, f = 0,
|
|
721
|
+
}, f = 0, W = 0, Ce = 0, Et, It, k, te, Fe, Se, le, Tt = 0, ge = 0, At, Ve, L, Q, _r = [], De = {
|
|
722
722
|
type: "num"
|
|
723
723
|
}, mn = {
|
|
724
724
|
type: "regexp"
|
|
@@ -726,11 +726,11 @@ var B, To = function(e) {
|
|
|
726
726
|
type: "string"
|
|
727
727
|
}, Ee = {
|
|
728
728
|
type: "name"
|
|
729
|
-
},
|
|
729
|
+
}, Ot = {
|
|
730
730
|
type: "eof"
|
|
731
|
-
},
|
|
731
|
+
}, jt = {
|
|
732
732
|
l: "break"
|
|
733
|
-
},
|
|
733
|
+
}, Rt = {
|
|
734
734
|
l: "case",
|
|
735
735
|
m: !0
|
|
736
736
|
}, gn = {
|
|
@@ -752,23 +752,23 @@ var B, To = function(e) {
|
|
|
752
752
|
}, kn = {
|
|
753
753
|
l: "for",
|
|
754
754
|
W: !0
|
|
755
|
-
},
|
|
755
|
+
}, Pt = {
|
|
756
756
|
l: "function"
|
|
757
757
|
}, Cn = {
|
|
758
758
|
l: "if"
|
|
759
759
|
}, En = {
|
|
760
760
|
l: "return",
|
|
761
761
|
m: !0
|
|
762
|
-
},
|
|
762
|
+
}, Nt = {
|
|
763
763
|
l: "switch"
|
|
764
764
|
}, In = {
|
|
765
765
|
l: "throw",
|
|
766
766
|
m: !0
|
|
767
767
|
}, Tn = {
|
|
768
768
|
l: "try"
|
|
769
|
-
},
|
|
769
|
+
}, Bt = {
|
|
770
770
|
l: "var"
|
|
771
|
-
},
|
|
771
|
+
}, Ut = {
|
|
772
772
|
l: "while",
|
|
773
773
|
W: !0
|
|
774
774
|
}, An = {
|
|
@@ -791,9 +791,9 @@ var B, To = function(e) {
|
|
|
791
791
|
l: "in",
|
|
792
792
|
L: 7,
|
|
793
793
|
m: !0
|
|
794
|
-
},
|
|
795
|
-
break:
|
|
796
|
-
case:
|
|
794
|
+
}, $r = {
|
|
795
|
+
break: jt,
|
|
796
|
+
case: Rt,
|
|
797
797
|
catch: gn,
|
|
798
798
|
continue: yn,
|
|
799
799
|
debugger: vn,
|
|
@@ -802,14 +802,14 @@ var B, To = function(e) {
|
|
|
802
802
|
else: wn,
|
|
803
803
|
finally: xn,
|
|
804
804
|
for: kn,
|
|
805
|
-
function:
|
|
805
|
+
function: Pt,
|
|
806
806
|
if: Cn,
|
|
807
807
|
return: En,
|
|
808
|
-
switch:
|
|
808
|
+
switch: Nt,
|
|
809
809
|
throw: In,
|
|
810
810
|
try: Tn,
|
|
811
|
-
var:
|
|
812
|
-
while:
|
|
811
|
+
var: Bt,
|
|
812
|
+
while: Ut,
|
|
813
813
|
with: An,
|
|
814
814
|
null: Rn,
|
|
815
815
|
true: Pn,
|
|
@@ -840,7 +840,7 @@ var B, To = function(e) {
|
|
|
840
840
|
}, Mt = {
|
|
841
841
|
type: "[",
|
|
842
842
|
m: !0
|
|
843
|
-
},
|
|
843
|
+
}, Ft = {
|
|
844
844
|
type: "]"
|
|
845
845
|
}, Le = {
|
|
846
846
|
type: "{",
|
|
@@ -858,7 +858,7 @@ var B, To = function(e) {
|
|
|
858
858
|
}, ue = {
|
|
859
859
|
type: ";",
|
|
860
860
|
m: !0
|
|
861
|
-
},
|
|
861
|
+
}, We = {
|
|
862
862
|
type: ":",
|
|
863
863
|
m: !0
|
|
864
864
|
}, Bn = {
|
|
@@ -866,16 +866,16 @@ var B, To = function(e) {
|
|
|
866
866
|
}, Un = {
|
|
867
867
|
type: "?",
|
|
868
868
|
m: !0
|
|
869
|
-
},
|
|
869
|
+
}, Mn = {
|
|
870
870
|
L: 10,
|
|
871
871
|
m: !0
|
|
872
|
-
},
|
|
872
|
+
}, Fn = {
|
|
873
873
|
Cb: !0,
|
|
874
874
|
m: !0
|
|
875
875
|
}, we = {
|
|
876
876
|
Cb: !0,
|
|
877
877
|
m: !0
|
|
878
|
-
},
|
|
878
|
+
}, Hr = {
|
|
879
879
|
cc: !0,
|
|
880
880
|
prefix: !0,
|
|
881
881
|
$b: !0
|
|
@@ -888,38 +888,38 @@ var B, To = function(e) {
|
|
|
888
888
|
}, Ln = {
|
|
889
889
|
L: 2,
|
|
890
890
|
m: !0
|
|
891
|
-
},
|
|
891
|
+
}, Kr = {
|
|
892
892
|
L: 3,
|
|
893
893
|
m: !0
|
|
894
|
-
},
|
|
894
|
+
}, Gr = {
|
|
895
895
|
L: 4,
|
|
896
896
|
m: !0
|
|
897
|
-
},
|
|
897
|
+
}, Xr = {
|
|
898
898
|
L: 5,
|
|
899
899
|
m: !0
|
|
900
|
-
},
|
|
900
|
+
}, Yr = {
|
|
901
901
|
L: 6,
|
|
902
902
|
m: !0
|
|
903
|
-
},
|
|
903
|
+
}, Jr = {
|
|
904
904
|
L: 7,
|
|
905
905
|
m: !0
|
|
906
|
-
},
|
|
906
|
+
}, zr = {
|
|
907
907
|
L: 8,
|
|
908
908
|
m: !0
|
|
909
|
-
},
|
|
909
|
+
}, qr = {
|
|
910
910
|
L: 9,
|
|
911
911
|
prefix: !0,
|
|
912
912
|
m: !0
|
|
913
|
-
},
|
|
913
|
+
}, Zr = {
|
|
914
914
|
L: 10,
|
|
915
915
|
m: !0
|
|
916
|
-
},
|
|
916
|
+
}, Qr = o("class enum extends super const export import"), Wn = o("implements interface let package private protected public static yield"), it = o("eval arguments"), eo = 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"), to = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, _n = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), no = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), at = /[\n\r\u2028\u2029]/, st = /\r\n|[\n\r\u2028\u2029]/g, Te, Vt = {
|
|
917
917
|
kind: "loop"
|
|
918
|
-
},
|
|
918
|
+
}, ro = {
|
|
919
919
|
kind: "switch"
|
|
920
920
|
};
|
|
921
921
|
}, Wt = Wt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
922
|
-
|
|
922
|
+
Ao(Wt.j || (Wt.j = {}));
|
|
923
923
|
function h(e, t) {
|
|
924
924
|
typeof e == "string" && (e = Re(e, "code"));
|
|
925
925
|
var n = e.constructor;
|
|
@@ -935,8 +935,8 @@ function h(e, t) {
|
|
|
935
935
|
var i, s;
|
|
936
936
|
for (s in this)
|
|
937
937
|
typeof this[s] == "function" && (i = s.match(e)) && (this.rb[i[1]] = this[s].bind(this));
|
|
938
|
-
this.N =
|
|
939
|
-
`), "polyfills"), this.ba = void 0,
|
|
938
|
+
this.N = $t(this, this.ra, null), this.Na = this.N.object, this.ra = Re(this.ba.join(`
|
|
939
|
+
`), "polyfills"), this.ba = void 0, pt(this.ra), i = new S(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new S(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
940
940
|
}
|
|
941
941
|
var $n = {
|
|
942
942
|
C: !0,
|
|
@@ -953,7 +953,7 @@ var $n = {
|
|
|
953
953
|
configurable: !0,
|
|
954
954
|
enumerable: !1,
|
|
955
955
|
writable: !1
|
|
956
|
-
},
|
|
956
|
+
}, _e = {
|
|
957
957
|
configurable: !1,
|
|
958
958
|
enumerable: !1,
|
|
959
959
|
writable: !1
|
|
@@ -969,7 +969,7 @@ var $n = {
|
|
|
969
969
|
VALUE_IN_DESCRIPTOR: !0
|
|
970
970
|
}, je = {
|
|
971
971
|
REGEXP_TIMEOUT: !0
|
|
972
|
-
}, Kn = [], de = null, Xe = null, ve = typeof globalThis > "u" ? void 0 : globalThis,
|
|
972
|
+
}, Kn = [], de = null, Xe = null, ve = typeof globalThis > "u" ? void 0 : globalThis, Oo = ["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();", "};"];
|
|
973
973
|
function zt(e) {
|
|
974
974
|
var t = e >>> 0;
|
|
975
975
|
return t === Number(e) ? t : NaN;
|
|
@@ -978,12 +978,12 @@ function Ye(e) {
|
|
|
978
978
|
var t = e >>> 0;
|
|
979
979
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function pt(e, t, n) {
|
|
982
982
|
t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
|
|
983
983
|
for (var r in e)
|
|
984
984
|
if (r !== "loc" && e.hasOwnProperty(r)) {
|
|
985
985
|
var o = e[r];
|
|
986
|
-
o && typeof o == "object" &&
|
|
986
|
+
o && typeof o == "object" && pt(o, t, n);
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
989
|
h.prototype.REGEXP_MODE = 2;
|
|
@@ -1051,8 +1051,8 @@ B.Eb = function() {
|
|
|
1051
1051
|
;
|
|
1052
1052
|
return this.za;
|
|
1053
1053
|
};
|
|
1054
|
-
function
|
|
1055
|
-
e.g(t, "NaN", NaN,
|
|
1054
|
+
function jo(e, t) {
|
|
1055
|
+
e.g(t, "NaN", NaN, _e), e.g(t, "Infinity", 1 / 0, _e), e.g(t, "undefined", void 0, _e), e.g(t, "window", t, Jt), e.g(t, "this", t, _e), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), Ro(e, t), Po(e, t), t.xa = e.M, e.g(t, "constructor", e.v, v), No(e, t), Bo(e, t), Uo(e, t), Mo(e, t), Fo(e, t), Vo(e, t), Do(e, t), Lo(e, t), Wo(e, t);
|
|
1056
1056
|
var n = e.i(function() {
|
|
1057
1057
|
throw EvalError("Can't happen");
|
|
1058
1058
|
}, !1);
|
|
@@ -1078,7 +1078,7 @@ function Oo(e, t) {
|
|
|
1078
1078
|
}, e.g(t, "clearInterval", e.i(n, !1), v), 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);
|
|
1079
1079
|
}
|
|
1080
1080
|
B.Wb = 0;
|
|
1081
|
-
function
|
|
1081
|
+
function Ro(e, t) {
|
|
1082
1082
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1083
1083
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1084
1084
|
if (s) {
|
|
@@ -1112,7 +1112,7 @@ function jo(e, t) {
|
|
|
1112
1112
|
return this.valueOf();
|
|
1113
1113
|
}, $(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), v);
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function Po(e, t) {
|
|
1116
1116
|
function n(o) {
|
|
1117
1117
|
o != null || w(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1118
1118
|
}
|
|
@@ -1157,7 +1157,7 @@ function Ro(e, t) {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
}, $(e, e.v, "isPrototypeOf", r);
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function No(e, t) {
|
|
1161
1161
|
var n = function(r) {
|
|
1162
1162
|
var o = he(e) ? this : Pe(e), i = arguments[0];
|
|
1163
1163
|
if (arguments.length === 1 && typeof i == "number")
|
|
@@ -1177,7 +1177,7 @@ function Po(e, t) {
|
|
|
1177
1177
|
writable: !0
|
|
1178
1178
|
}), 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(',');", "}", ");", "})();", "");
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1180
|
+
function Bo(e, t) {
|
|
1181
1181
|
var n = function(r) {
|
|
1182
1182
|
return r = arguments.length ? ve.String(r) : "", he(e) ? (this.data = r, this) : r;
|
|
1183
1183
|
};
|
|
@@ -1260,17 +1260,17 @@ function No(e, t) {
|
|
|
1260
1260
|
i(s.replace(r, o));
|
|
1261
1261
|
}, Ge(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;", "};", "})();", "");
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1263
|
+
function Uo(e, t) {
|
|
1264
1264
|
e.mb = e.i(function(n) {
|
|
1265
1265
|
return n = ve.Boolean(n), he(e) ? (this.data = n, this) : n;
|
|
1266
1266
|
}, !0), e.g(t, "Boolean", e.mb, v);
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1268
|
+
function Mo(e, t) {
|
|
1269
1269
|
var n = function(r) {
|
|
1270
1270
|
return r = arguments.length ? ve.Number(r) : 0, he(e) ? (this.data = r, this) : r;
|
|
1271
1271
|
};
|
|
1272
1272
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, v), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1273
|
-
e.g(e.aa, t[n], Number[t[n]],
|
|
1273
|
+
e.g(e.aa, t[n], Number[t[n]], _e);
|
|
1274
1274
|
n = function(r) {
|
|
1275
1275
|
try {
|
|
1276
1276
|
return Number(this).toExponential(r);
|
|
@@ -1323,7 +1323,7 @@ function Fo(e, t) {
|
|
|
1323
1323
|
};
|
|
1324
1324
|
}(t[r]), $(e, e.$, t[r], n);
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1326
|
+
function Vo(e, t) {
|
|
1327
1327
|
var n = function(r, o) {
|
|
1328
1328
|
if (he(e))
|
|
1329
1329
|
var i = this;
|
|
@@ -1365,20 +1365,20 @@ function Mo(e, t) {
|
|
|
1365
1365
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(i(r));
|
|
1366
1366
|
}, Ge(e, e.I, "exec", n);
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function Do(e, t) {
|
|
1369
1369
|
function n(r) {
|
|
1370
1370
|
var o = e.i(function(i) {
|
|
1371
1371
|
var s = he(e) ? this : e.Aa(o);
|
|
1372
|
-
return
|
|
1372
|
+
return _t(e, s, i), s;
|
|
1373
1373
|
}, !0);
|
|
1374
1374
|
return e.g(o, "prototype", e.Aa(e.D), v), e.g(o.h.prototype, "name", r, v), e.g(t, r, o, v), o;
|
|
1375
1375
|
}
|
|
1376
1376
|
e.D = e.i(function(r) {
|
|
1377
1377
|
var o = he(e) ? this : e.Aa(e.D);
|
|
1378
|
-
return
|
|
1378
|
+
return _t(e, o, r), o;
|
|
1379
1379
|
}, !0), e.g(t, "Error", e.D, v), e.g(e.D.h.prototype, "message", "", v), e.g(e.D.h.prototype, "name", "Error", v), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function Lo(e, t) {
|
|
1382
1382
|
var n = e.s(e.M);
|
|
1383
1383
|
e.g(t, "Math", n, v);
|
|
1384
1384
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1387,7 +1387,7 @@ function Do(e, t) {
|
|
|
1387
1387
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1388
1388
|
e.g(n, r[t], e.i(Math[r[t]], !1), v);
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1390
|
+
function Wo(e, t) {
|
|
1391
1391
|
var n = e.s(e.M);
|
|
1392
1392
|
e.g(t, "JSON", n, v), t = function(r) {
|
|
1393
1393
|
try {
|
|
@@ -1423,7 +1423,7 @@ function H(e, t, n) {
|
|
|
1423
1423
|
function qt(e, t, n) {
|
|
1424
1424
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, v), e.g(t, "source", n.source, q), e.g(t, "global", n.global, q), e.g(t, "ignoreCase", n.ignoreCase, q), e.g(t, "multiline", n.multiline, q);
|
|
1425
1425
|
}
|
|
1426
|
-
function
|
|
1426
|
+
function _t(e, t, n) {
|
|
1427
1427
|
n && e.g(t, "message", String(n), v), n = [];
|
|
1428
1428
|
for (var r = e.o.length - 1; 0 <= r; r--) {
|
|
1429
1429
|
var o = e.o[r], i = o.node;
|
|
@@ -1442,7 +1442,7 @@ function $t(e, t, n) {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
B.ha = function() {
|
|
1444
1444
|
var e = this.ha.Mb;
|
|
1445
|
-
return e || (e = new Blob([
|
|
1445
|
+
return e || (e = new Blob([Oo.join(`
|
|
1446
1446
|
`)], {
|
|
1447
1447
|
type: "application/javascript"
|
|
1448
1448
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1567,7 +1567,7 @@ B.R = function(e, t) {
|
|
|
1567
1567
|
if (t.hb.push(e), H(this, e, this.qa)) {
|
|
1568
1568
|
n = [], t.Sa.push(n);
|
|
1569
1569
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1570
|
-
|
|
1570
|
+
ht(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
1571
1571
|
} else
|
|
1572
1572
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1573
1573
|
o = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
@@ -1618,7 +1618,7 @@ B.G = function(e, t) {
|
|
|
1618
1618
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1619
1619
|
while (e = pe(this, e));
|
|
1620
1620
|
};
|
|
1621
|
-
function
|
|
1621
|
+
function ht(e, t, n) {
|
|
1622
1622
|
if (!(t instanceof P))
|
|
1623
1623
|
throw TypeError("Primitive data type has no properties");
|
|
1624
1624
|
if (n = String(n), n === "length" && H(e, t, e.J))
|
|
@@ -1713,7 +1713,7 @@ function en(e) {
|
|
|
1713
1713
|
throw Error("No scope found");
|
|
1714
1714
|
return e;
|
|
1715
1715
|
}
|
|
1716
|
-
function
|
|
1716
|
+
function $t(e, t, n) {
|
|
1717
1717
|
var r = !1;
|
|
1718
1718
|
if (n && n.S)
|
|
1719
1719
|
r = !0;
|
|
@@ -1721,7 +1721,7 @@ function Ht(e, t, n) {
|
|
|
1721
1721
|
var o = t.body && t.body[0];
|
|
1722
1722
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1723
1723
|
}
|
|
1724
|
-
return o = e.s(null), r = new br(n, r, o), n ||
|
|
1724
|
+
return o = e.s(null), r = new br(n, r, o), n || jo(e, r.object), ze(e, t, r), r;
|
|
1725
1725
|
}
|
|
1726
1726
|
function tn(e, t, n) {
|
|
1727
1727
|
if (!t)
|
|
@@ -1734,7 +1734,7 @@ function nn(e, t) {
|
|
|
1734
1734
|
return n.object.h[t];
|
|
1735
1735
|
n = n.Va;
|
|
1736
1736
|
}
|
|
1737
|
-
if (n === e.N &&
|
|
1737
|
+
if (n === e.N && ht(e, n.object, t))
|
|
1738
1738
|
return e.G(n.object, t);
|
|
1739
1739
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1740
1740
|
}
|
|
@@ -1750,7 +1750,7 @@ function yr(e, t, n) {
|
|
|
1750
1750
|
}
|
|
1751
1751
|
r = r.Va;
|
|
1752
1752
|
}
|
|
1753
|
-
if (r === e.N && (!o ||
|
|
1753
|
+
if (r === e.N && (!o || ht(e, r.object, t)))
|
|
1754
1754
|
return e.g(r.object, t, n);
|
|
1755
1755
|
w(e, e.pb, t + " is not defined");
|
|
1756
1756
|
}
|
|
@@ -1813,7 +1813,7 @@ function on(e, t, n) {
|
|
|
1813
1813
|
return t[0] === Ne ? yr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1814
1814
|
}
|
|
1815
1815
|
function w(e, t, n) {
|
|
1816
|
-
throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t),
|
|
1816
|
+
throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t), _t(e, t, n)), qe(e, 4, t), mr) : n === void 0 ? t : n;
|
|
1817
1817
|
}
|
|
1818
1818
|
function qe(e, t, n, r) {
|
|
1819
1819
|
if (t === 0)
|
|
@@ -1904,7 +1904,7 @@ function Gn(e, t, n) {
|
|
|
1904
1904
|
} catch (b) {
|
|
1905
1905
|
w(e, e.T, "Invalid code: " + b.message);
|
|
1906
1906
|
}
|
|
1907
|
-
s.type = "EvalProgram_", s.body = p.body, r = r.node.arguments[0],
|
|
1907
|
+
s.type = "EvalProgram_", s.body = p.body, r = r.node.arguments[0], pt(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1908
1908
|
}
|
|
1909
1909
|
return t = new _o(u, o, r, s, t ? n : -1), vr(e, t, n), t.Db;
|
|
1910
1910
|
}
|
|
@@ -1934,7 +1934,7 @@ function an(e, t, n, r) {
|
|
|
1934
1934
|
var o = e.ya();
|
|
1935
1935
|
return o.type = "CallExpression", e = new S(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1936
1936
|
}
|
|
1937
|
-
function
|
|
1937
|
+
function Lt(e, t) {
|
|
1938
1938
|
return t == null ? e.Na : t instanceof P ? t : (e = e.s(pe(e, t)), e.data = t, e);
|
|
1939
1939
|
}
|
|
1940
1940
|
B.Xb = function() {
|
|
@@ -2011,9 +2011,9 @@ B.valueOf = function() {
|
|
|
2011
2011
|
return !Xe || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2012
2012
|
};
|
|
2013
2013
|
function _o(e, t, n, r, o) {
|
|
2014
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db =
|
|
2014
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++$o, this.time = 0;
|
|
2015
2015
|
}
|
|
2016
|
-
var
|
|
2016
|
+
var $o = 0;
|
|
2017
2017
|
h.prototype.stepArrayExpression = function(e, t, n) {
|
|
2018
2018
|
n = n.elements;
|
|
2019
2019
|
var r = t.A || 0;
|
|
@@ -2144,7 +2144,7 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2144
2144
|
n = r >>> t;
|
|
2145
2145
|
break;
|
|
2146
2146
|
case "in":
|
|
2147
|
-
t instanceof P || w(this, this.j, "'in' expects an object, not '" + t + "'"), n =
|
|
2147
|
+
t instanceof P || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = ht(this, t, r);
|
|
2148
2148
|
break;
|
|
2149
2149
|
case "instanceof":
|
|
2150
2150
|
H(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof P ? H(this, r, t) : !1;
|
|
@@ -2198,11 +2198,11 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2198
2198
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2199
2199
|
else {
|
|
2200
2200
|
if (t.eb = !0, o instanceof P || w(this, this.j, z(this, n.callee) + " is not a function"), e = o.node) {
|
|
2201
|
-
for (n =
|
|
2201
|
+
for (n = $t(this, e.body, o.Va), r = Pe(this), o = 0; o < t.F.length; o++)
|
|
2202
2202
|
this.g(r, o, t.F[o]);
|
|
2203
2203
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2204
2204
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2205
|
-
return n.S || (t.B =
|
|
2205
|
+
return n.S || (t.B = Lt(this, t.B)), this.g(n.object, "this", t.B, Jt), t.value = void 0, new S(e.body, n);
|
|
2206
2206
|
}
|
|
2207
2207
|
if (o.eval)
|
|
2208
2208
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2213,15 +2213,15 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2213
2213
|
} catch (u) {
|
|
2214
2214
|
w(this, this.T, "Invalid code: " + u.message);
|
|
2215
2215
|
}
|
|
2216
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body,
|
|
2216
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, pt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = $t(this, r, n) : ze(this, r, n), this.value = void 0, new S(o, n);
|
|
2217
2217
|
}
|
|
2218
2218
|
else if (o.Ta)
|
|
2219
|
-
t.scope.S || (t.B =
|
|
2219
|
+
t.scope.S || (t.B = Lt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2220
2220
|
else if (o.Za) {
|
|
2221
2221
|
var s = this;
|
|
2222
2222
|
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
|
|
2223
2223
|
t.value = u, s.za = !1;
|
|
2224
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2224
|
+
}), this.za = !0, t.scope.S || (t.B = Lt(this, t.B)), o.Za.apply(t.B, r);
|
|
2225
2225
|
} else
|
|
2226
2226
|
w(this, this.j, z(this, n.callee) + " is not callable");
|
|
2227
2227
|
}
|
|
@@ -2561,7 +2561,7 @@ h.prototype.getGlobalScope = h.prototype.Xb;
|
|
|
2561
2561
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2562
2562
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2563
2563
|
h.VALUE_IN_DESCRIPTOR = Je;
|
|
2564
|
-
const
|
|
2564
|
+
const Ho = (e) => e.split(`
|
|
2565
2565
|
`).map((t) => {
|
|
2566
2566
|
const n = t.trim();
|
|
2567
2567
|
if (t.includes("__awaiter"))
|
|
@@ -2574,7 +2574,7 @@ const $o = (e) => e.split(`
|
|
|
2574
2574
|
${u}
|
|
2575
2575
|
`;
|
|
2576
2576
|
}).filter(Boolean).join(`
|
|
2577
|
-
`), Yn = (e) => e + "JSON",
|
|
2577
|
+
`), Yn = (e) => e + "JSON", Ko = ({
|
|
2578
2578
|
builder: e,
|
|
2579
2579
|
context: t,
|
|
2580
2580
|
event: n,
|
|
@@ -2595,7 +2595,7 @@ const $o = (e) => e.split(`
|
|
|
2595
2595
|
const R = Yn(j);
|
|
2596
2596
|
return `var ${j} = ${R} === undefined ? undefined : JSON.parse(${R});`;
|
|
2597
2597
|
}).join(`
|
|
2598
|
-
`), x =
|
|
2598
|
+
`), x = Ho(s);
|
|
2599
2599
|
if (x === "") {
|
|
2600
2600
|
Z.warn("Skipping evaluation of empty code block.");
|
|
2601
2601
|
return;
|
|
@@ -2626,17 +2626,17 @@ theFunction();
|
|
|
2626
2626
|
return;
|
|
2627
2627
|
}
|
|
2628
2628
|
}, ie = (e) => e != null;
|
|
2629
|
-
function
|
|
2629
|
+
function Go() {
|
|
2630
2630
|
var e;
|
|
2631
2631
|
return typeof process < "u" && ie((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2632
2632
|
}
|
|
2633
|
-
const
|
|
2633
|
+
const Xo = () => {
|
|
2634
2634
|
var r;
|
|
2635
|
-
if (!
|
|
2635
|
+
if (!Go())
|
|
2636
2636
|
return !1;
|
|
2637
2637
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2638
2638
|
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;
|
|
2639
|
-
},
|
|
2639
|
+
}, Yo = (e) => G() || Xo() ? To(e) : Ko(e), sn = class Oe {
|
|
2640
2640
|
static getCacheKey(t) {
|
|
2641
2641
|
return JSON.stringify({
|
|
2642
2642
|
...t,
|
|
@@ -2670,10 +2670,10 @@ function ln({
|
|
|
2670
2670
|
if (e === "")
|
|
2671
2671
|
return;
|
|
2672
2672
|
const p = {
|
|
2673
|
-
code:
|
|
2673
|
+
code: Io(e, {
|
|
2674
2674
|
isExpression: s
|
|
2675
2675
|
}),
|
|
2676
|
-
builder:
|
|
2676
|
+
builder: Eo(),
|
|
2677
2677
|
context: t,
|
|
2678
2678
|
event: i,
|
|
2679
2679
|
rootSetState: o,
|
|
@@ -2686,7 +2686,7 @@ function ln({
|
|
|
2686
2686
|
return x.value;
|
|
2687
2687
|
}
|
|
2688
2688
|
try {
|
|
2689
|
-
const b =
|
|
2689
|
+
const b = Yo(p);
|
|
2690
2690
|
if (u) {
|
|
2691
2691
|
const x = ct.getCacheKey(p);
|
|
2692
2692
|
ct.setCachedValue(x, b);
|
|
@@ -2699,8 +2699,8 @@ function ln({
|
|
|
2699
2699
|
return;
|
|
2700
2700
|
}
|
|
2701
2701
|
}
|
|
2702
|
-
const
|
|
2703
|
-
const
|
|
2702
|
+
const mt = (e) => JSON.parse(JSON.stringify(e));
|
|
2703
|
+
const Jo = ({
|
|
2704
2704
|
block: e,
|
|
2705
2705
|
context: t,
|
|
2706
2706
|
localState: n,
|
|
@@ -2709,7 +2709,7 @@ const Yo = ({
|
|
|
2709
2709
|
}) => {
|
|
2710
2710
|
if (!e.bindings)
|
|
2711
2711
|
return e;
|
|
2712
|
-
const i =
|
|
2712
|
+
const i = mt(e), s = {
|
|
2713
2713
|
...i,
|
|
2714
2714
|
properties: {
|
|
2715
2715
|
...i.properties
|
|
@@ -2731,7 +2731,7 @@ const Yo = ({
|
|
|
2731
2731
|
}
|
|
2732
2732
|
return s;
|
|
2733
2733
|
};
|
|
2734
|
-
function
|
|
2734
|
+
function dt({
|
|
2735
2735
|
block: e,
|
|
2736
2736
|
context: t,
|
|
2737
2737
|
shouldEvaluateBindings: n,
|
|
@@ -2740,7 +2740,7 @@ function pt({
|
|
|
2740
2740
|
rootSetState: i
|
|
2741
2741
|
}) {
|
|
2742
2742
|
const s = e;
|
|
2743
|
-
return n ?
|
|
2743
|
+
return n ? Jo({
|
|
2744
2744
|
block: s,
|
|
2745
2745
|
localState: r,
|
|
2746
2746
|
rootState: o,
|
|
@@ -2748,31 +2748,31 @@ function pt({
|
|
|
2748
2748
|
context: t
|
|
2749
2749
|
}) : s;
|
|
2750
2750
|
}
|
|
2751
|
-
const
|
|
2751
|
+
const zo = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Sr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2752
2752
|
if (typeof r == "string")
|
|
2753
|
-
return `${
|
|
2754
|
-
}).filter(ie),
|
|
2753
|
+
return `${zo(n)}: ${r};`;
|
|
2754
|
+
}).filter(ie), qo = (e) => Sr(e).join(`
|
|
2755
2755
|
`), ut = ({
|
|
2756
2756
|
mediaQuery: e,
|
|
2757
2757
|
className: t,
|
|
2758
2758
|
styles: n
|
|
2759
2759
|
}) => {
|
|
2760
2760
|
const r = `.${t} {
|
|
2761
|
-
${
|
|
2761
|
+
${qo(n)}
|
|
2762
2762
|
}`;
|
|
2763
2763
|
return e ? `${e} {
|
|
2764
2764
|
${r}
|
|
2765
2765
|
}` : r;
|
|
2766
2766
|
};
|
|
2767
|
-
function
|
|
2767
|
+
function Zo({
|
|
2768
2768
|
style: e
|
|
2769
2769
|
}) {
|
|
2770
2770
|
return e;
|
|
2771
2771
|
}
|
|
2772
|
-
const
|
|
2772
|
+
const Qo = ({
|
|
2773
2773
|
block: e,
|
|
2774
2774
|
context: t
|
|
2775
|
-
}) => wr(
|
|
2775
|
+
}) => wr(Zo({
|
|
2776
2776
|
style: e.style || {},
|
|
2777
2777
|
context: t,
|
|
2778
2778
|
block: e
|
|
@@ -2791,13 +2791,13 @@ function wr(e) {
|
|
|
2791
2791
|
return e;
|
|
2792
2792
|
}
|
|
2793
2793
|
}
|
|
2794
|
-
const
|
|
2794
|
+
const ei = ({
|
|
2795
2795
|
block: e,
|
|
2796
2796
|
context: t,
|
|
2797
2797
|
registeredComponents: n
|
|
2798
2798
|
}) => {
|
|
2799
2799
|
var i;
|
|
2800
|
-
const r = (i =
|
|
2800
|
+
const r = (i = dt({
|
|
2801
2801
|
block: e,
|
|
2802
2802
|
localState: t.localState,
|
|
2803
2803
|
rootState: t.rootState,
|
|
@@ -2813,7 +2813,7 @@ const Qo = ({
|
|
|
2813
2813
|
console.warn(`
|
|
2814
2814
|
Could not find a registered component named "${r}".
|
|
2815
2815
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2816
|
-
},
|
|
2816
|
+
}, ti = ({
|
|
2817
2817
|
block: e,
|
|
2818
2818
|
context: t
|
|
2819
2819
|
}) => {
|
|
@@ -2847,7 +2847,7 @@ const Qo = ({
|
|
|
2847
2847
|
},
|
|
2848
2848
|
block: r
|
|
2849
2849
|
}));
|
|
2850
|
-
},
|
|
2850
|
+
}, ni = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), ri = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), xr = {
|
|
2851
2851
|
small: {
|
|
2852
2852
|
min: 320,
|
|
2853
2853
|
default: 321,
|
|
@@ -2867,7 +2867,7 @@ const Qo = ({
|
|
|
2867
2867
|
small: e,
|
|
2868
2868
|
medium: t
|
|
2869
2869
|
}) => {
|
|
2870
|
-
const n =
|
|
2870
|
+
const n = mt(xr);
|
|
2871
2871
|
if (!e || !t)
|
|
2872
2872
|
return n;
|
|
2873
2873
|
const r = Math.floor(e / 2);
|
|
@@ -2890,7 +2890,7 @@ const Qo = ({
|
|
|
2890
2890
|
default: i + 1
|
|
2891
2891
|
}, n;
|
|
2892
2892
|
};
|
|
2893
|
-
function
|
|
2893
|
+
function gt(e) {
|
|
2894
2894
|
return /* @__PURE__ */ I(
|
|
2895
2895
|
"style",
|
|
2896
2896
|
{
|
|
@@ -2910,39 +2910,39 @@ function zn(e, ...t) {
|
|
|
2910
2910
|
return n;
|
|
2911
2911
|
}
|
|
2912
2912
|
const Cr = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
2913
|
-
function
|
|
2913
|
+
function oi(e) {
|
|
2914
2914
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2915
2915
|
}
|
|
2916
|
-
function
|
|
2917
|
-
const n =
|
|
2916
|
+
function ii(e, t) {
|
|
2917
|
+
const n = ai(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
2918
2918
|
for (const u of s)
|
|
2919
2919
|
for (const p of n)
|
|
2920
2920
|
p in u || (u[p] = r[p]);
|
|
2921
2921
|
}
|
|
2922
|
-
function
|
|
2922
|
+
function ai(e) {
|
|
2923
2923
|
const t = [];
|
|
2924
2924
|
for (const n of e.steps)
|
|
2925
2925
|
for (const r in n.styles)
|
|
2926
2926
|
t.indexOf(r) === -1 && t.push(r);
|
|
2927
2927
|
return t;
|
|
2928
2928
|
}
|
|
2929
|
-
function
|
|
2929
|
+
function qa(e) {
|
|
2930
2930
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2931
2931
|
if (!t.length) {
|
|
2932
|
-
|
|
2932
|
+
oi(e.elementId || e.id || "");
|
|
2933
2933
|
return;
|
|
2934
2934
|
}
|
|
2935
2935
|
Array.from(t).forEach((n) => {
|
|
2936
|
-
|
|
2936
|
+
ii(e, n), n.style.transition = "none", n.style.transitionDelay = "0", zn(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2937
2937
|
n.style.transition = `all ${e.duration}s ${Cr(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), zn(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2938
2938
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
2939
2939
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2940
2940
|
});
|
|
2941
2941
|
});
|
|
2942
2942
|
}
|
|
2943
|
-
function
|
|
2943
|
+
function si(e) {
|
|
2944
2944
|
const t = function() {
|
|
2945
|
-
const o =
|
|
2945
|
+
const o = dt({
|
|
2946
2946
|
block: e.block,
|
|
2947
2947
|
localState: e.context.localState,
|
|
2948
2948
|
rootState: e.context.rootState,
|
|
@@ -2953,7 +2953,7 @@ function ai(e) {
|
|
|
2953
2953
|
return ie(o.hide) ? !o.hide : ie(o.show) ? o.show : !0;
|
|
2954
2954
|
}, n = function() {
|
|
2955
2955
|
var T, g, U;
|
|
2956
|
-
const o =
|
|
2956
|
+
const o = dt({
|
|
2957
2957
|
block: e.block,
|
|
2958
2958
|
localState: e.context.localState,
|
|
2959
2959
|
rootState: e.context.rootState,
|
|
@@ -2982,14 +2982,14 @@ function ai(e) {
|
|
|
2982
2982
|
"small",
|
|
2983
2983
|
u
|
|
2984
2984
|
)
|
|
2985
|
-
}) : "", R = o.animations && o.animations.find((
|
|
2985
|
+
}) : "", R = o.animations && o.animations.find((F) => F.trigger === "hover");
|
|
2986
2986
|
let Y = "";
|
|
2987
2987
|
if (R) {
|
|
2988
|
-
const
|
|
2988
|
+
const F = ((U = (g = R.steps) == null ? void 0 : g[1]) == null ? void 0 : U.styles) || {};
|
|
2989
2989
|
Y = ut({
|
|
2990
2990
|
className: `${m}:hover`,
|
|
2991
2991
|
styles: {
|
|
2992
|
-
...
|
|
2992
|
+
...F,
|
|
2993
2993
|
transition: `all ${R.duration}s ${Cr(
|
|
2994
2994
|
R.easing
|
|
2995
2995
|
)}`,
|
|
@@ -3004,12 +3004,12 @@ function ai(e) {
|
|
|
3004
3004
|
Y
|
|
3005
3005
|
].join(" ");
|
|
3006
3006
|
};
|
|
3007
|
-
return /* @__PURE__ */ I(ee, { children: n() && t() ? /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(
|
|
3007
|
+
return /* @__PURE__ */ I(ee, { children: n() && t() ? /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(gt, { id: "builderio-block", styles: n() }) }) : null });
|
|
3008
3008
|
}
|
|
3009
|
-
function
|
|
3009
|
+
function li(e) {
|
|
3010
3010
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
3011
3011
|
}
|
|
3012
|
-
const
|
|
3012
|
+
const ci = (e) => `on${li(e)}`, ui = (e, t) => (n) => ln({
|
|
3013
3013
|
code: e,
|
|
3014
3014
|
context: t.context,
|
|
3015
3015
|
localState: t.localState,
|
|
@@ -3019,13 +3019,13 @@ const li = (e) => `on${si(e)}`, ci = (e, t) => (n) => ln({
|
|
|
3019
3019
|
isExpression: !1,
|
|
3020
3020
|
enableCache: !0
|
|
3021
3021
|
});
|
|
3022
|
-
function
|
|
3022
|
+
function Za(e) {
|
|
3023
3023
|
const t = {}, n = e.block.actions ?? {};
|
|
3024
3024
|
for (const r in n) {
|
|
3025
3025
|
if (!n.hasOwnProperty(r))
|
|
3026
3026
|
continue;
|
|
3027
3027
|
const o = n[r];
|
|
3028
|
-
let i =
|
|
3028
|
+
let i = ci(r);
|
|
3029
3029
|
if (e.stripPrefix)
|
|
3030
3030
|
switch (me) {
|
|
3031
3031
|
case "vue":
|
|
@@ -3035,40 +3035,40 @@ function qa(e) {
|
|
|
3035
3035
|
i = i.replace("on:", "");
|
|
3036
3036
|
break;
|
|
3037
3037
|
}
|
|
3038
|
-
t[i] =
|
|
3038
|
+
t[i] = ui(o, e);
|
|
3039
3039
|
}
|
|
3040
3040
|
return t;
|
|
3041
3041
|
}
|
|
3042
|
-
function
|
|
3042
|
+
function fi({
|
|
3043
3043
|
properties: e
|
|
3044
3044
|
}) {
|
|
3045
3045
|
return e;
|
|
3046
3046
|
}
|
|
3047
|
-
const
|
|
3047
|
+
const di = (e) => ({
|
|
3048
3048
|
href: e.href
|
|
3049
3049
|
});
|
|
3050
|
-
function
|
|
3050
|
+
function pi({
|
|
3051
3051
|
block: e,
|
|
3052
3052
|
context: t
|
|
3053
3053
|
}) {
|
|
3054
3054
|
var r;
|
|
3055
3055
|
const n = {
|
|
3056
|
-
...
|
|
3056
|
+
...di(e),
|
|
3057
3057
|
...e.properties,
|
|
3058
3058
|
"builder-id": e.id,
|
|
3059
|
-
style:
|
|
3059
|
+
style: Qo({
|
|
3060
3060
|
block: e,
|
|
3061
3061
|
context: t
|
|
3062
3062
|
}),
|
|
3063
3063
|
[Yt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3064
3064
|
};
|
|
3065
|
-
return
|
|
3065
|
+
return fi({
|
|
3066
3066
|
properties: n,
|
|
3067
3067
|
context: t,
|
|
3068
3068
|
block: e
|
|
3069
3069
|
});
|
|
3070
3070
|
}
|
|
3071
|
-
const
|
|
3071
|
+
const hi = ({
|
|
3072
3072
|
componentOptions: e,
|
|
3073
3073
|
builderBlock: t,
|
|
3074
3074
|
context: n,
|
|
@@ -3084,7 +3084,7 @@ const pi = ({
|
|
|
3084
3084
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
3085
3085
|
*/
|
|
3086
3086
|
...o ? {
|
|
3087
|
-
attributes:
|
|
3087
|
+
attributes: pi({
|
|
3088
3088
|
block: t,
|
|
3089
3089
|
context: s
|
|
3090
3090
|
})
|
|
@@ -3100,11 +3100,11 @@ const pi = ({
|
|
|
3100
3100
|
};
|
|
3101
3101
|
function qn(e) {
|
|
3102
3102
|
var n;
|
|
3103
|
-
const t = e.isInteractive ?
|
|
3103
|
+
const t = e.isInteractive ? io : e.componentRef;
|
|
3104
3104
|
return /* @__PURE__ */ I(ee, { children: e.componentRef ? /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(
|
|
3105
3105
|
t,
|
|
3106
3106
|
{
|
|
3107
|
-
...
|
|
3107
|
+
...hi({
|
|
3108
3108
|
componentOptions: e.componentOptions,
|
|
3109
3109
|
builderBlock: e.builderBlock,
|
|
3110
3110
|
context: e.context,
|
|
@@ -3115,7 +3115,7 @@ function qn(e) {
|
|
|
3115
3115
|
contextValue: e.context
|
|
3116
3116
|
}),
|
|
3117
3117
|
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */ I(
|
|
3118
|
-
|
|
3118
|
+
yt,
|
|
3119
3119
|
{
|
|
3120
3120
|
block: r,
|
|
3121
3121
|
context: e.context,
|
|
@@ -3127,10 +3127,10 @@ function qn(e) {
|
|
|
3127
3127
|
}
|
|
3128
3128
|
) }) : null });
|
|
3129
3129
|
}
|
|
3130
|
-
function
|
|
3130
|
+
function mi(e) {
|
|
3131
3131
|
const t = e.repeatContext;
|
|
3132
3132
|
return /* @__PURE__ */ I(
|
|
3133
|
-
|
|
3133
|
+
yt,
|
|
3134
3134
|
{
|
|
3135
3135
|
block: e.block,
|
|
3136
3136
|
context: t,
|
|
@@ -3139,22 +3139,22 @@ function hi(e) {
|
|
|
3139
3139
|
}
|
|
3140
3140
|
);
|
|
3141
3141
|
}
|
|
3142
|
-
function
|
|
3142
|
+
function yt(e) {
|
|
3143
3143
|
var p, b, x;
|
|
3144
3144
|
const t = function() {
|
|
3145
|
-
return
|
|
3145
|
+
return ei({
|
|
3146
3146
|
block: e.block,
|
|
3147
3147
|
context: e.context,
|
|
3148
3148
|
registeredComponents: e.registeredComponents
|
|
3149
3149
|
});
|
|
3150
3150
|
}, n = function() {
|
|
3151
|
-
return
|
|
3151
|
+
return ti({
|
|
3152
3152
|
block: e.block,
|
|
3153
3153
|
context: e.context
|
|
3154
3154
|
});
|
|
3155
3155
|
}, r = function() {
|
|
3156
3156
|
var O;
|
|
3157
|
-
return (O = e.block.repeat) != null && O.collection ? e.block :
|
|
3157
|
+
return (O = e.block.repeat) != null && O.collection ? e.block : dt({
|
|
3158
3158
|
block: e.block,
|
|
3159
3159
|
localState: e.context.localState,
|
|
3160
3160
|
rootState: e.context.rootState,
|
|
@@ -3180,12 +3180,12 @@ function vt(e) {
|
|
|
3180
3180
|
blockChildren: r().children ?? [],
|
|
3181
3181
|
componentRef: (O = t()) == null ? void 0 : O.component,
|
|
3182
3182
|
componentOptions: {
|
|
3183
|
-
...
|
|
3183
|
+
...So(r()),
|
|
3184
3184
|
builderContext: e.context,
|
|
3185
|
-
...
|
|
3185
|
+
...ni(t()) ? {
|
|
3186
3186
|
builderLinkComponent: e.linkComponent
|
|
3187
3187
|
} : {},
|
|
3188
|
-
...
|
|
3188
|
+
...ri(t()) ? {
|
|
3189
3189
|
builderComponents: e.registeredComponents
|
|
3190
3190
|
} : {}
|
|
3191
3191
|
},
|
|
@@ -3198,7 +3198,7 @@ function vt(e) {
|
|
|
3198
3198
|
};
|
|
3199
3199
|
};
|
|
3200
3200
|
return /* @__PURE__ */ I(ee, { children: i() ? /* @__PURE__ */ xe(ee, { children: [
|
|
3201
|
-
/* @__PURE__ */ I(
|
|
3201
|
+
/* @__PURE__ */ I(si, { block: e.block, context: e.context }),
|
|
3202
3202
|
(p = t()) != null && p.noWrap ? /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(
|
|
3203
3203
|
qn,
|
|
3204
3204
|
{
|
|
@@ -3213,7 +3213,7 @@ function vt(e) {
|
|
|
3213
3213
|
isInteractive: u().isInteractive
|
|
3214
3214
|
}
|
|
3215
3215
|
) }) : /* @__PURE__ */ I(ee, { children: n() ? /* @__PURE__ */ I(ee, { children: (x = n()) == null ? void 0 : x.map((m, O) => /* @__PURE__ */ I(
|
|
3216
|
-
|
|
3216
|
+
mi,
|
|
3217
3217
|
{
|
|
3218
3218
|
repeatContext: m.context,
|
|
3219
3219
|
block: m.block,
|
|
@@ -3222,7 +3222,7 @@ function vt(e) {
|
|
|
3222
3222
|
},
|
|
3223
3223
|
O
|
|
3224
3224
|
)) }) : /* @__PURE__ */ xe(
|
|
3225
|
-
|
|
3225
|
+
ao,
|
|
3226
3226
|
{
|
|
3227
3227
|
Wrapper: o(),
|
|
3228
3228
|
block: r(),
|
|
@@ -3244,7 +3244,7 @@ function vt(e) {
|
|
|
3244
3244
|
}
|
|
3245
3245
|
),
|
|
3246
3246
|
(b = s()) == null ? void 0 : b.map((m) => /* @__PURE__ */ I(
|
|
3247
|
-
|
|
3247
|
+
yt,
|
|
3248
3248
|
{
|
|
3249
3249
|
block: m,
|
|
3250
3250
|
registeredComponents: e.registeredComponents,
|
|
@@ -3261,7 +3261,7 @@ function vt(e) {
|
|
|
3261
3261
|
function cn(e) {
|
|
3262
3262
|
var t, n, r;
|
|
3263
3263
|
return /* @__PURE__ */ I(
|
|
3264
|
-
|
|
3264
|
+
so,
|
|
3265
3265
|
{
|
|
3266
3266
|
blocks: e.blocks,
|
|
3267
3267
|
parent: e.parent,
|
|
@@ -3270,7 +3270,7 @@ function cn(e) {
|
|
|
3270
3270
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
3271
3271
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
3272
3272
|
children: e.blocks ? /* @__PURE__ */ I(ee, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ I(
|
|
3273
|
-
|
|
3273
|
+
yt,
|
|
3274
3274
|
{
|
|
3275
3275
|
block: o,
|
|
3276
3276
|
linkComponent: e.linkComponent,
|
|
@@ -3282,8 +3282,8 @@ function cn(e) {
|
|
|
3282
3282
|
}
|
|
3283
3283
|
);
|
|
3284
3284
|
}
|
|
3285
|
-
const
|
|
3286
|
-
function
|
|
3285
|
+
const gi = (e) => `builder-columns ${e}-breakpoints`;
|
|
3286
|
+
function yi(e) {
|
|
3287
3287
|
var R, Y;
|
|
3288
3288
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(g) {
|
|
3289
3289
|
return g.link ? e.builderLinkComponent || "a" : "div";
|
|
@@ -3312,18 +3312,18 @@ function gi(e) {
|
|
|
3312
3312
|
})
|
|
3313
3313
|
};
|
|
3314
3314
|
}, m = function(g) {
|
|
3315
|
-
const U = g === 0 ? 0 : t,
|
|
3315
|
+
const U = g === 0 ? 0 : t, F = s(g), X = `${U}px`, V = "100%", ne = 0;
|
|
3316
3316
|
return {
|
|
3317
3317
|
...{
|
|
3318
3318
|
display: "flex",
|
|
3319
3319
|
flexDirection: "column",
|
|
3320
3320
|
alignItems: "stretch"
|
|
3321
3321
|
},
|
|
3322
|
-
width:
|
|
3322
|
+
width: F,
|
|
3323
3323
|
["marginLeft"]: X,
|
|
3324
3324
|
"--column-width-mobile": p({
|
|
3325
3325
|
stackedStyle: V,
|
|
3326
|
-
desktopStyle:
|
|
3326
|
+
desktopStyle: F
|
|
3327
3327
|
}),
|
|
3328
3328
|
"--column-margin-left-mobile": p({
|
|
3329
3329
|
stackedStyle: ne,
|
|
@@ -3331,7 +3331,7 @@ function gi(e) {
|
|
|
3331
3331
|
}),
|
|
3332
3332
|
"--column-width-tablet": u({
|
|
3333
3333
|
stackedStyle: V,
|
|
3334
|
-
desktopStyle:
|
|
3334
|
+
desktopStyle: F
|
|
3335
3335
|
}),
|
|
3336
3336
|
"--column-margin-left-tablet": u({
|
|
3337
3337
|
stackedStyle: ne,
|
|
@@ -3339,9 +3339,9 @@ function gi(e) {
|
|
|
3339
3339
|
})
|
|
3340
3340
|
};
|
|
3341
3341
|
}, O = function(g) {
|
|
3342
|
-
var
|
|
3342
|
+
var F, X;
|
|
3343
3343
|
return kr(
|
|
3344
|
-
((X = (
|
|
3344
|
+
((X = (F = e.builderContext.content) == null ? void 0 : F.meta) == null ? void 0 : X.breakpoints) || {}
|
|
3345
3345
|
)[g].max;
|
|
3346
3346
|
}, N = function() {
|
|
3347
3347
|
return `
|
|
@@ -3382,12 +3382,12 @@ function gi(e) {
|
|
|
3382
3382
|
/* @__PURE__ */ xe(
|
|
3383
3383
|
"div",
|
|
3384
3384
|
{
|
|
3385
|
-
className:
|
|
3385
|
+
className: gi((R = e.builderBlock) == null ? void 0 : R.id) + " div-2651dce4",
|
|
3386
3386
|
style: x(),
|
|
3387
3387
|
children: [
|
|
3388
|
-
/* @__PURE__ */ I(
|
|
3388
|
+
/* @__PURE__ */ I(gt, { id: "builderio-columns", styles: N() }),
|
|
3389
3389
|
(Y = e.columns) == null ? void 0 : Y.map((T, g) => /* @__PURE__ */ I(
|
|
3390
|
-
|
|
3390
|
+
lo,
|
|
3391
3391
|
{
|
|
3392
3392
|
TagName: o(T),
|
|
3393
3393
|
actionAttributes: {},
|
|
@@ -3421,11 +3421,11 @@ function gi(e) {
|
|
|
3421
3421
|
function Zn(e) {
|
|
3422
3422
|
return e.replace(/http(s)?:/, "");
|
|
3423
3423
|
}
|
|
3424
|
-
function
|
|
3424
|
+
function vi(e = "", t, n) {
|
|
3425
3425
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3426
3426
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
3427
3427
|
}
|
|
3428
|
-
function
|
|
3428
|
+
function bi(e, t) {
|
|
3429
3429
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3430
3430
|
return e;
|
|
3431
3431
|
if (t === "master")
|
|
@@ -3437,18 +3437,18 @@ function vi(e, t) {
|
|
|
3437
3437
|
}
|
|
3438
3438
|
return null;
|
|
3439
3439
|
}
|
|
3440
|
-
function
|
|
3440
|
+
function Qa(e) {
|
|
3441
3441
|
if (!e)
|
|
3442
3442
|
return e;
|
|
3443
3443
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3444
3444
|
if (e.match(/builder\.io/)) {
|
|
3445
3445
|
let n = e;
|
|
3446
3446
|
const r = Number(e.split("?width=")[1]);
|
|
3447
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
3447
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${vi(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
3448
3448
|
}
|
|
3449
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3449
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [bi(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3450
3450
|
}
|
|
3451
|
-
const
|
|
3451
|
+
const Si = (e) => {
|
|
3452
3452
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3453
3453
|
return e;
|
|
3454
3454
|
const t = e.split(".");
|
|
@@ -3464,13 +3464,13 @@ const bi = (e) => {
|
|
|
3464
3464
|
Z.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3465
3465
|
return;
|
|
3466
3466
|
}
|
|
3467
|
-
}, Ir = async (e) => Er(e),
|
|
3467
|
+
}, Ir = async (e) => Er(e), wi = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(ie).join("; "), xi = [["secure", ""], ["SameSite", "None"]], ki = ({
|
|
3468
3468
|
name: e,
|
|
3469
3469
|
value: t,
|
|
3470
3470
|
expires: n
|
|
3471
3471
|
}) => {
|
|
3472
|
-
const o = (G() ? location.protocol === "https:" : !0) ?
|
|
3473
|
-
return
|
|
3472
|
+
const o = (G() ? location.protocol === "https:" : !0) ? xi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Si(window.location.hostname)], ...o];
|
|
3473
|
+
return wi(s);
|
|
3474
3474
|
}, Tr = async ({
|
|
3475
3475
|
name: e,
|
|
3476
3476
|
value: t,
|
|
@@ -3480,7 +3480,7 @@ const bi = (e) => {
|
|
|
3480
3480
|
try {
|
|
3481
3481
|
if (!r)
|
|
3482
3482
|
return;
|
|
3483
|
-
const o =
|
|
3483
|
+
const o = ki({
|
|
3484
3484
|
name: e,
|
|
3485
3485
|
value: t,
|
|
3486
3486
|
expires: n
|
|
@@ -3489,24 +3489,24 @@ const bi = (e) => {
|
|
|
3489
3489
|
} catch (o) {
|
|
3490
3490
|
Z.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3491
3491
|
}
|
|
3492
|
-
},
|
|
3492
|
+
}, Ci = "builder.tests", un = (e) => `${Ci}.${e}`, Ei = ({
|
|
3493
3493
|
contentId: e
|
|
3494
3494
|
}) => Ir({
|
|
3495
3495
|
name: un(e),
|
|
3496
3496
|
canTrack: !0
|
|
3497
|
-
}),
|
|
3497
|
+
}), Ii = ({
|
|
3498
3498
|
contentId: e
|
|
3499
3499
|
}) => Er({
|
|
3500
3500
|
name: un(e),
|
|
3501
3501
|
canTrack: !0
|
|
3502
|
-
}),
|
|
3502
|
+
}), Ti = ({
|
|
3503
3503
|
contentId: e,
|
|
3504
3504
|
value: t
|
|
3505
3505
|
}) => Tr({
|
|
3506
3506
|
name: un(e),
|
|
3507
3507
|
value: t,
|
|
3508
3508
|
canTrack: !0
|
|
3509
|
-
}), Ar = (e) => ie(e.id) && ie(e.variations) && Object.keys(e.variations).length > 0,
|
|
3509
|
+
}), Ar = (e) => ie(e.id) && ie(e.variations) && Object.keys(e.variations).length > 0, Ai = ({
|
|
3510
3510
|
id: e,
|
|
3511
3511
|
variations: t
|
|
3512
3512
|
}) => {
|
|
@@ -3520,8 +3520,8 @@ const bi = (e) => {
|
|
|
3520
3520
|
}
|
|
3521
3521
|
return e;
|
|
3522
3522
|
}, Or = (e) => {
|
|
3523
|
-
const t =
|
|
3524
|
-
return
|
|
3523
|
+
const t = Ai(e);
|
|
3524
|
+
return Ti({
|
|
3525
3525
|
contentId: e.id,
|
|
3526
3526
|
value: t
|
|
3527
3527
|
}).catch((n) => {
|
|
@@ -3541,7 +3541,7 @@ const bi = (e) => {
|
|
|
3541
3541
|
testVariationId: n.id,
|
|
3542
3542
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3543
3543
|
};
|
|
3544
|
-
},
|
|
3544
|
+
}, Oi = ({
|
|
3545
3545
|
item: e,
|
|
3546
3546
|
canTrack: t
|
|
3547
3547
|
}) => {
|
|
@@ -3551,7 +3551,7 @@ const bi = (e) => {
|
|
|
3551
3551
|
return;
|
|
3552
3552
|
if (!Ar(e))
|
|
3553
3553
|
return e;
|
|
3554
|
-
const n =
|
|
3554
|
+
const n = Ii({
|
|
3555
3555
|
contentId: e.id
|
|
3556
3556
|
}) || Or({
|
|
3557
3557
|
variations: e.variations,
|
|
@@ -3564,13 +3564,13 @@ const bi = (e) => {
|
|
|
3564
3564
|
...e,
|
|
3565
3565
|
...r
|
|
3566
3566
|
};
|
|
3567
|
-
},
|
|
3567
|
+
}, ji = async ({
|
|
3568
3568
|
item: e,
|
|
3569
3569
|
canTrack: t
|
|
3570
3570
|
}) => {
|
|
3571
3571
|
if (!t || !Ar(e))
|
|
3572
3572
|
return e;
|
|
3573
|
-
const r = await
|
|
3573
|
+
const r = await Ei({
|
|
3574
3574
|
contentId: e.id
|
|
3575
3575
|
}) || Or({
|
|
3576
3576
|
variations: e.variations,
|
|
@@ -3583,7 +3583,7 @@ const bi = (e) => {
|
|
|
3583
3583
|
...e,
|
|
3584
3584
|
...o
|
|
3585
3585
|
};
|
|
3586
|
-
},
|
|
3586
|
+
}, Ht = (e) => ie(e) ? e : !0, Ri = {
|
|
3587
3587
|
name: "Core:Button",
|
|
3588
3588
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3589
3589
|
defaultStyles: {
|
|
@@ -3616,7 +3616,7 @@ const bi = (e) => {
|
|
|
3616
3616
|
}],
|
|
3617
3617
|
static: !0,
|
|
3618
3618
|
noWrap: !0
|
|
3619
|
-
},
|
|
3619
|
+
}, Pi = {
|
|
3620
3620
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3621
3621
|
name: "Columns",
|
|
3622
3622
|
isRSC: !0,
|
|
@@ -3817,13 +3817,13 @@ const bi = (e) => {
|
|
|
3817
3817
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3818
3818
|
advanced: !0
|
|
3819
3819
|
}]
|
|
3820
|
-
},
|
|
3820
|
+
}, Ni = {
|
|
3821
3821
|
name: "Fragment",
|
|
3822
3822
|
static: !0,
|
|
3823
3823
|
hidden: !0,
|
|
3824
3824
|
canHaveChildren: !0,
|
|
3825
3825
|
noWrap: !0
|
|
3826
|
-
},
|
|
3826
|
+
}, Bi = {
|
|
3827
3827
|
name: "Image",
|
|
3828
3828
|
static: !0,
|
|
3829
3829
|
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",
|
|
@@ -3923,7 +3923,7 @@ const bi = (e) => {
|
|
|
3923
3923
|
advanced: !0,
|
|
3924
3924
|
defaultValue: 0.7041
|
|
3925
3925
|
}]
|
|
3926
|
-
},
|
|
3926
|
+
}, Ui = {
|
|
3927
3927
|
name: "Core:Section",
|
|
3928
3928
|
static: !0,
|
|
3929
3929
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3962,7 +3962,7 @@ const bi = (e) => {
|
|
|
3962
3962
|
}
|
|
3963
3963
|
}
|
|
3964
3964
|
}]
|
|
3965
|
-
},
|
|
3965
|
+
}, Mi = {
|
|
3966
3966
|
name: "Slot",
|
|
3967
3967
|
isRSC: !0,
|
|
3968
3968
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3999,7 +3999,7 @@ function Fi(e) {
|
|
|
3999
3999
|
}
|
|
4000
4000
|
);
|
|
4001
4001
|
}
|
|
4002
|
-
const
|
|
4002
|
+
const Vi = {
|
|
4003
4003
|
name: "Symbol",
|
|
4004
4004
|
noWrap: !0,
|
|
4005
4005
|
static: !0,
|
|
@@ -4032,7 +4032,7 @@ const Mi = {
|
|
|
4032
4032
|
hideFromUI: !0,
|
|
4033
4033
|
type: "boolean"
|
|
4034
4034
|
}]
|
|
4035
|
-
},
|
|
4035
|
+
}, Di = {
|
|
4036
4036
|
name: "Text",
|
|
4037
4037
|
static: !0,
|
|
4038
4038
|
isRSC: !0,
|
|
@@ -4051,7 +4051,7 @@ const Mi = {
|
|
|
4051
4051
|
textAlign: "center"
|
|
4052
4052
|
}
|
|
4053
4053
|
};
|
|
4054
|
-
function
|
|
4054
|
+
function Li(e) {
|
|
4055
4055
|
var t;
|
|
4056
4056
|
return /* @__PURE__ */ I(
|
|
4057
4057
|
"div",
|
|
@@ -4064,7 +4064,7 @@ function Di(e) {
|
|
|
4064
4064
|
}
|
|
4065
4065
|
);
|
|
4066
4066
|
}
|
|
4067
|
-
const
|
|
4067
|
+
const Wi = {
|
|
4068
4068
|
name: "Custom Code",
|
|
4069
4069
|
static: !0,
|
|
4070
4070
|
requiredPermissions: ["editCode"],
|
|
@@ -4111,7 +4111,7 @@ const Li = {
|
|
|
4111
4111
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4112
4112
|
hideFromUI: !0
|
|
4113
4113
|
}]
|
|
4114
|
-
},
|
|
4114
|
+
}, $i = ["text/javascript", "application/javascript", "application/ecmascript"], es = (e) => $i.includes(e.type), Hi = {
|
|
4115
4115
|
// friendlyName?
|
|
4116
4116
|
name: "Raw:Img",
|
|
4117
4117
|
hideFromInsertMenu: !0,
|
|
@@ -4125,7 +4125,7 @@ const Li = {
|
|
|
4125
4125
|
}],
|
|
4126
4126
|
noWrap: !0,
|
|
4127
4127
|
static: !0
|
|
4128
|
-
},
|
|
4128
|
+
}, Ki = {
|
|
4129
4129
|
name: "Video",
|
|
4130
4130
|
canHaveChildren: !0,
|
|
4131
4131
|
defaultStyles: {
|
|
@@ -4206,26 +4206,23 @@ const Li = {
|
|
|
4206
4206
|
defaultValue: !0,
|
|
4207
4207
|
advanced: !0
|
|
4208
4208
|
}]
|
|
4209
|
-
},
|
|
4210
|
-
component: lo,
|
|
4211
|
-
...Li
|
|
4212
|
-
}, {
|
|
4209
|
+
}, Gi = () => [{
|
|
4213
4210
|
component: co,
|
|
4214
|
-
...
|
|
4211
|
+
...Wi
|
|
4215
4212
|
}, {
|
|
4216
4213
|
component: uo,
|
|
4217
|
-
|
|
4214
|
+
..._i
|
|
4218
4215
|
}, {
|
|
4219
4216
|
component: fo,
|
|
4220
4217
|
...Hi
|
|
4221
|
-
}], Qn = () => [{
|
|
4222
|
-
component: po,
|
|
4223
|
-
...ji
|
|
4224
4218
|
}, {
|
|
4225
|
-
component:
|
|
4219
|
+
component: po,
|
|
4220
|
+
...Ki
|
|
4221
|
+
}], Qn = () => [{
|
|
4222
|
+
component: ho,
|
|
4226
4223
|
...Ri
|
|
4227
4224
|
}, {
|
|
4228
|
-
component:
|
|
4225
|
+
component: yi,
|
|
4229
4226
|
...Pi
|
|
4230
4227
|
}, {
|
|
4231
4228
|
component: mo,
|
|
@@ -4234,30 +4231,33 @@ const Li = {
|
|
|
4234
4231
|
component: go,
|
|
4235
4232
|
...Bi
|
|
4236
4233
|
}, {
|
|
4237
|
-
component:
|
|
4234
|
+
component: yo,
|
|
4238
4235
|
...Ui
|
|
4239
4236
|
}, {
|
|
4240
|
-
component:
|
|
4237
|
+
component: Fi,
|
|
4241
4238
|
...Mi
|
|
4242
4239
|
}, {
|
|
4243
|
-
component:
|
|
4240
|
+
component: Ha,
|
|
4244
4241
|
...Vi
|
|
4245
|
-
},
|
|
4242
|
+
}, {
|
|
4243
|
+
component: Li,
|
|
4244
|
+
...Di
|
|
4245
|
+
}, ...Gi()], ts = (e) => ({
|
|
4246
4246
|
type: "builder.registerComponent",
|
|
4247
|
-
data:
|
|
4248
|
-
}),
|
|
4247
|
+
data: Kt(e)
|
|
4248
|
+
}), Xi = (e) => {
|
|
4249
4249
|
const t = e.toString().trim();
|
|
4250
4250
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
4251
|
-
},
|
|
4251
|
+
}, Yi = (e) => typeof e == "function" ? Xi(e) : mt(e), Kt = ({
|
|
4252
4252
|
inputs: e,
|
|
4253
4253
|
...t
|
|
4254
4254
|
}) => ({
|
|
4255
|
-
...
|
|
4255
|
+
...mt(t),
|
|
4256
4256
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
|
|
4257
4257
|
...r,
|
|
4258
|
-
[o]:
|
|
4258
|
+
[o]: Yi(i)
|
|
4259
4259
|
}), {}))
|
|
4260
|
-
}),
|
|
4260
|
+
}), Ji = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4261
4261
|
function getAndSetVariantId() {
|
|
4262
4262
|
function setCookie(name, value, days) {
|
|
4263
4263
|
let expires = '';
|
|
@@ -4313,7 +4313,7 @@ const Li = {
|
|
|
4313
4313
|
}).join('');
|
|
4314
4314
|
styleEl.innerHTML = newStyleStr;
|
|
4315
4315
|
}
|
|
4316
|
-
}`,
|
|
4316
|
+
}`, zi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4317
4317
|
if (!navigator.cookieEnabled) {
|
|
4318
4318
|
return;
|
|
4319
4319
|
}
|
|
@@ -4351,22 +4351,22 @@ const Li = {
|
|
|
4351
4351
|
...t,
|
|
4352
4352
|
testVariationId: t.id,
|
|
4353
4353
|
id: e == null ? void 0 : e.id
|
|
4354
|
-
})),
|
|
4354
|
+
})), qi = ({
|
|
4355
4355
|
canTrack: e,
|
|
4356
4356
|
content: t
|
|
4357
|
-
}) => !(!(ft(t).length > 0) || !e || G()),
|
|
4358
|
-
window.${Rr} = ${
|
|
4359
|
-
window.${Pr} = ${
|
|
4360
|
-
`,
|
|
4357
|
+
}) => !(!(ft(t).length > 0) || !e || G()), Zi = (e) => e === "react" || e === "reactNative", Nr = Zi(me), Qi = () => `
|
|
4358
|
+
window.${Rr} = ${Ji}
|
|
4359
|
+
window.${Pr} = ${zi}
|
|
4360
|
+
`, ea = (e, t) => `
|
|
4361
4361
|
window.${Rr}(
|
|
4362
4362
|
"${t}",${JSON.stringify(e)}, ${Nr}
|
|
4363
|
-
)`,
|
|
4363
|
+
)`, ta = ({
|
|
4364
4364
|
contentId: e,
|
|
4365
4365
|
variationId: t
|
|
4366
4366
|
}) => `window.${Pr}(
|
|
4367
4367
|
"${t}", "${e}", ${Nr}
|
|
4368
4368
|
)`;
|
|
4369
|
-
function
|
|
4369
|
+
function Gt(e) {
|
|
4370
4370
|
return /* @__PURE__ */ I(
|
|
4371
4371
|
"script",
|
|
4372
4372
|
{
|
|
@@ -4375,60 +4375,67 @@ function Xt(e) {
|
|
|
4375
4375
|
}
|
|
4376
4376
|
);
|
|
4377
4377
|
}
|
|
4378
|
-
const
|
|
4378
|
+
const na = (e) => {
|
|
4379
4379
|
const t = e.get("preview"), n = e.get("overrides." + t);
|
|
4380
4380
|
return n || Z.warn("No previewed ID found in search params."), n;
|
|
4381
4381
|
};
|
|
4382
|
-
function
|
|
4383
|
-
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new
|
|
4382
|
+
function ra() {
|
|
4383
|
+
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new oo({
|
|
4384
4384
|
max: 500,
|
|
4385
4385
|
// how long to live in ms
|
|
4386
4386
|
ttl: 1e3 * 60 * 5
|
|
4387
4387
|
}));
|
|
4388
4388
|
}
|
|
4389
|
-
function
|
|
4390
|
-
|
|
4391
|
-
const t =
|
|
4389
|
+
function oa(e) {
|
|
4390
|
+
ra();
|
|
4391
|
+
const t = na(e);
|
|
4392
4392
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
4393
4393
|
}
|
|
4394
|
-
function
|
|
4394
|
+
function ia() {
|
|
4395
4395
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
4396
4396
|
}
|
|
4397
|
-
function
|
|
4398
|
-
const e =
|
|
4397
|
+
function aa() {
|
|
4398
|
+
const e = ia().fetch;
|
|
4399
4399
|
if (typeof e > "u")
|
|
4400
4400
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
4401
4401
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
4402
4402
|
return e;
|
|
4403
4403
|
}
|
|
4404
|
-
const
|
|
4405
|
-
function
|
|
4404
|
+
const sa = aa();
|
|
4405
|
+
function Xt(e, t = null, n = ".") {
|
|
4406
4406
|
return Object.keys(e).reduce((r, o) => {
|
|
4407
4407
|
const i = e[o], s = [t, o].filter(Boolean).join(n);
|
|
4408
4408
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
4409
4409
|
...r,
|
|
4410
|
-
...
|
|
4410
|
+
...Xt(i, s, n)
|
|
4411
4411
|
} : {
|
|
4412
4412
|
...r,
|
|
4413
4413
|
[s]: i
|
|
4414
4414
|
};
|
|
4415
4415
|
}, {});
|
|
4416
4416
|
}
|
|
4417
|
-
|
|
4417
|
+
function Br(e, t, n = {}) {
|
|
4418
|
+
for (const r in e) {
|
|
4419
|
+
const o = e[r], i = t ? t + "." + r : r;
|
|
4420
|
+
o && typeof o == "object" && !Array.isArray(o) && !Object.keys(o).find((s) => s.startsWith("$")) ? Br(o, i, n) : n[i] = o;
|
|
4421
|
+
}
|
|
4422
|
+
return n;
|
|
4423
|
+
}
|
|
4424
|
+
const la = "v3", er = "builder.", ca = "options.", Ur = (e) => {
|
|
4418
4425
|
if (!e)
|
|
4419
4426
|
return {};
|
|
4420
4427
|
const t = lr(e), n = {};
|
|
4421
4428
|
return Object.keys(t).forEach((r) => {
|
|
4422
4429
|
if (r.startsWith(er)) {
|
|
4423
|
-
const o = r.replace(er, "").replace(
|
|
4430
|
+
const o = r.replace(er, "").replace(ca, "");
|
|
4424
4431
|
n[o] = t[r];
|
|
4425
4432
|
}
|
|
4426
4433
|
}), n;
|
|
4427
|
-
},
|
|
4434
|
+
}, ua = () => {
|
|
4428
4435
|
if (!G())
|
|
4429
4436
|
return {};
|
|
4430
4437
|
const e = new URLSearchParams(window.location.search);
|
|
4431
|
-
return
|
|
4438
|
+
return Ur(e);
|
|
4432
4439
|
}, tr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fn = (e) => {
|
|
4433
4440
|
const {
|
|
4434
4441
|
limit: t = 30,
|
|
@@ -4438,7 +4445,7 @@ const sa = "v3", er = "builder.", la = "options.", Br = (e) => {
|
|
|
4438
4445
|
apiKey: i,
|
|
4439
4446
|
enrich: s,
|
|
4440
4447
|
locale: u,
|
|
4441
|
-
apiVersion: p =
|
|
4448
|
+
apiVersion: p = la,
|
|
4442
4449
|
fields: b,
|
|
4443
4450
|
omit: x,
|
|
4444
4451
|
offset: m,
|
|
@@ -4453,43 +4460,43 @@ const sa = "v3", er = "builder.", la = "options.", Br = (e) => {
|
|
|
4453
4460
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);
|
|
4454
4461
|
const Y = t !== 1, T = new URL(`https://cdn.builder.io/api/${p}/content/${o}`);
|
|
4455
4462
|
if (T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(Y)), T.searchParams.set("includeRefs", String(!0)), u && T.searchParams.set("locale", u), s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", x || "meta.componentsUsed"), b && T.searchParams.set("fields", b), Number.isFinite(m) && m > -1 && T.searchParams.set("offset", String(Math.floor(m))), typeof R == "boolean" && T.searchParams.set("includeUnpublished", String(R)), O && tr(O) && T.searchParams.set("cacheSeconds", String(O)), N && tr(N) && T.searchParams.set("staleCacheSeconds", String(N)), j) {
|
|
4456
|
-
const
|
|
4463
|
+
const F = Xt({
|
|
4457
4464
|
sort: j
|
|
4458
4465
|
});
|
|
4459
|
-
for (const X in
|
|
4460
|
-
T.searchParams.set(X, JSON.stringify(
|
|
4466
|
+
for (const X in F)
|
|
4467
|
+
T.searchParams.set(X, JSON.stringify(F[X]));
|
|
4461
4468
|
}
|
|
4462
4469
|
const g = {
|
|
4463
|
-
...
|
|
4470
|
+
...ua(),
|
|
4464
4471
|
...lr(e.options || {})
|
|
4465
|
-
}, U =
|
|
4466
|
-
for (const
|
|
4467
|
-
T.searchParams.set(
|
|
4472
|
+
}, U = Xt(g);
|
|
4473
|
+
for (const F in U)
|
|
4474
|
+
T.searchParams.set(F, String(U[F]));
|
|
4468
4475
|
if (n && T.searchParams.set("userAttributes", JSON.stringify(n)), r) {
|
|
4469
|
-
const
|
|
4476
|
+
const F = Br({
|
|
4470
4477
|
query: r
|
|
4471
4478
|
});
|
|
4472
|
-
for (const X in
|
|
4473
|
-
T.searchParams.set(X, JSON.stringify(
|
|
4479
|
+
for (const X in F)
|
|
4480
|
+
T.searchParams.set(X, JSON.stringify(F[X]));
|
|
4474
4481
|
}
|
|
4475
4482
|
return T;
|
|
4476
|
-
},
|
|
4477
|
-
async function
|
|
4478
|
-
const t = await
|
|
4483
|
+
}, fa = (e) => "results" in e;
|
|
4484
|
+
async function Mr(e) {
|
|
4485
|
+
const t = await ha({
|
|
4479
4486
|
...e,
|
|
4480
4487
|
limit: 1
|
|
4481
4488
|
});
|
|
4482
4489
|
return t && t[0] || null;
|
|
4483
4490
|
}
|
|
4484
|
-
const
|
|
4491
|
+
const da = async (e) => {
|
|
4485
4492
|
const t = fn(e);
|
|
4486
|
-
return await (await (e.fetch ??
|
|
4487
|
-
},
|
|
4488
|
-
const r =
|
|
4493
|
+
return await (await (e.fetch ?? sa)(t.href, e.fetchOptions)).json();
|
|
4494
|
+
}, pa = async (e, t, n = fn(e)) => {
|
|
4495
|
+
const r = Ht(e.canTrack);
|
|
4489
4496
|
if (n.search.includes("preview=")) {
|
|
4490
4497
|
const i = [];
|
|
4491
4498
|
for (const s of t.results) {
|
|
4492
|
-
const u =
|
|
4499
|
+
const u = oa(n.searchParams);
|
|
4493
4500
|
i.push(u || s);
|
|
4494
4501
|
}
|
|
4495
4502
|
t.results = i;
|
|
@@ -4499,7 +4506,7 @@ const fa = async (e) => {
|
|
|
4499
4506
|
try {
|
|
4500
4507
|
const i = [];
|
|
4501
4508
|
for (const s of t.results)
|
|
4502
|
-
i.push(await
|
|
4509
|
+
i.push(await ji({
|
|
4503
4510
|
item: s,
|
|
4504
4511
|
canTrack: r
|
|
4505
4512
|
}));
|
|
@@ -4509,10 +4516,10 @@ const fa = async (e) => {
|
|
|
4509
4516
|
}
|
|
4510
4517
|
return t.results;
|
|
4511
4518
|
};
|
|
4512
|
-
async function
|
|
4519
|
+
async function ha(e) {
|
|
4513
4520
|
try {
|
|
4514
|
-
const t = fn(e), n = await
|
|
4515
|
-
return
|
|
4521
|
+
const t = fn(e), n = await da(e);
|
|
4522
|
+
return fa(n) ? pa(e, n) : (Z.error("Error fetching data. ", {
|
|
4516
4523
|
url: t,
|
|
4517
4524
|
content: n,
|
|
4518
4525
|
options: e
|
|
@@ -4521,92 +4528,92 @@ async function pa(e) {
|
|
|
4521
4528
|
return Z.error("Error fetching data. ", t), null;
|
|
4522
4529
|
}
|
|
4523
4530
|
}
|
|
4524
|
-
function
|
|
4531
|
+
function ns(e) {
|
|
4525
4532
|
const t = e || (G() ? window.location.search : void 0);
|
|
4526
4533
|
return t ? cr(t).indexOf("builder.preview=") !== -1 : !1;
|
|
4527
4534
|
}
|
|
4528
|
-
function
|
|
4535
|
+
function ma() {
|
|
4529
4536
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
4530
4537
|
const t = Math.random() * 16 | 0;
|
|
4531
4538
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4532
4539
|
});
|
|
4533
4540
|
}
|
|
4534
4541
|
function Fr() {
|
|
4535
|
-
return
|
|
4542
|
+
return ma().replace(/-/g, "");
|
|
4536
4543
|
}
|
|
4537
|
-
const
|
|
4544
|
+
const Vr = "builderSessionId", ga = async ({
|
|
4538
4545
|
canTrack: e
|
|
4539
4546
|
}) => {
|
|
4540
4547
|
if (!e)
|
|
4541
4548
|
return;
|
|
4542
4549
|
const t = await Ir({
|
|
4543
|
-
name:
|
|
4550
|
+
name: Vr,
|
|
4544
4551
|
canTrack: e
|
|
4545
4552
|
});
|
|
4546
4553
|
if (ie(t))
|
|
4547
4554
|
return t;
|
|
4548
4555
|
{
|
|
4549
|
-
const n =
|
|
4550
|
-
return
|
|
4556
|
+
const n = ya();
|
|
4557
|
+
return va({
|
|
4551
4558
|
id: n,
|
|
4552
4559
|
canTrack: e
|
|
4553
4560
|
}), n;
|
|
4554
4561
|
}
|
|
4555
|
-
},
|
|
4562
|
+
}, ya = () => Fr(), va = ({
|
|
4556
4563
|
id: e,
|
|
4557
4564
|
canTrack: t
|
|
4558
4565
|
}) => Tr({
|
|
4559
|
-
name:
|
|
4566
|
+
name: Vr,
|
|
4560
4567
|
value: e,
|
|
4561
4568
|
canTrack: t
|
|
4562
|
-
}),
|
|
4569
|
+
}), Dr = () => G() && typeof localStorage < "u" ? localStorage : void 0, ba = ({
|
|
4563
4570
|
key: e,
|
|
4564
4571
|
canTrack: t
|
|
4565
4572
|
}) => {
|
|
4566
4573
|
var n;
|
|
4567
4574
|
try {
|
|
4568
|
-
return t ? (n =
|
|
4575
|
+
return t ? (n = Dr()) == null ? void 0 : n.getItem(e) : void 0;
|
|
4569
4576
|
} catch (r) {
|
|
4570
4577
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4571
4578
|
return;
|
|
4572
4579
|
}
|
|
4573
|
-
},
|
|
4580
|
+
}, Sa = ({
|
|
4574
4581
|
key: e,
|
|
4575
4582
|
canTrack: t,
|
|
4576
4583
|
value: n
|
|
4577
4584
|
}) => {
|
|
4578
4585
|
var r;
|
|
4579
4586
|
try {
|
|
4580
|
-
t && ((r =
|
|
4587
|
+
t && ((r = Dr()) == null || r.setItem(e, n));
|
|
4581
4588
|
} catch (o) {
|
|
4582
4589
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4583
4590
|
}
|
|
4584
|
-
},
|
|
4591
|
+
}, Lr = "builderVisitorId", wa = ({
|
|
4585
4592
|
canTrack: e
|
|
4586
4593
|
}) => {
|
|
4587
4594
|
if (!e)
|
|
4588
4595
|
return;
|
|
4589
|
-
const t =
|
|
4590
|
-
key:
|
|
4596
|
+
const t = ba({
|
|
4597
|
+
key: Lr,
|
|
4591
4598
|
canTrack: e
|
|
4592
4599
|
});
|
|
4593
4600
|
if (ie(t))
|
|
4594
4601
|
return t;
|
|
4595
4602
|
{
|
|
4596
|
-
const n =
|
|
4597
|
-
return
|
|
4603
|
+
const n = xa();
|
|
4604
|
+
return ka({
|
|
4598
4605
|
id: n,
|
|
4599
4606
|
canTrack: e
|
|
4600
4607
|
}), n;
|
|
4601
4608
|
}
|
|
4602
|
-
},
|
|
4609
|
+
}, xa = () => Fr(), ka = ({
|
|
4603
4610
|
id: e,
|
|
4604
4611
|
canTrack: t
|
|
4605
|
-
}) =>
|
|
4606
|
-
key:
|
|
4612
|
+
}) => Sa({
|
|
4613
|
+
key: Lr,
|
|
4607
4614
|
value: e,
|
|
4608
4615
|
canTrack: t
|
|
4609
|
-
}),
|
|
4616
|
+
}), Ca = async ({
|
|
4610
4617
|
canTrack: e
|
|
4611
4618
|
}) => {
|
|
4612
4619
|
if (!e)
|
|
@@ -4614,16 +4621,16 @@ const Mr = "builderSessionId", ma = async ({
|
|
|
4614
4621
|
visitorId: void 0,
|
|
4615
4622
|
sessionId: void 0
|
|
4616
4623
|
};
|
|
4617
|
-
const t = await
|
|
4624
|
+
const t = await ga({
|
|
4618
4625
|
canTrack: e
|
|
4619
|
-
}), n =
|
|
4626
|
+
}), n = wa({
|
|
4620
4627
|
canTrack: e
|
|
4621
4628
|
});
|
|
4622
4629
|
return {
|
|
4623
4630
|
sessionId: t,
|
|
4624
4631
|
visitorId: n
|
|
4625
4632
|
};
|
|
4626
|
-
},
|
|
4633
|
+
}, Ea = async ({
|
|
4627
4634
|
type: e,
|
|
4628
4635
|
canTrack: t,
|
|
4629
4636
|
apiKey: n,
|
|
@@ -4637,14 +4644,14 @@ const Mr = "builderSessionId", ma = async ({
|
|
|
4637
4644
|
url: location.href,
|
|
4638
4645
|
...r
|
|
4639
4646
|
},
|
|
4640
|
-
...await
|
|
4647
|
+
...await Ca({
|
|
4641
4648
|
canTrack: t
|
|
4642
4649
|
}),
|
|
4643
4650
|
userAttributes: fr(),
|
|
4644
4651
|
ownerId: n
|
|
4645
4652
|
}
|
|
4646
4653
|
});
|
|
4647
|
-
async function
|
|
4654
|
+
async function Ia(e) {
|
|
4648
4655
|
if (!e.apiKey) {
|
|
4649
4656
|
Z.error("Missing API key for track call. Please provide your API key.");
|
|
4650
4657
|
return;
|
|
@@ -4653,7 +4660,7 @@ async function Ea(e) {
|
|
|
4653
4660
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
4654
4661
|
method: "POST",
|
|
4655
4662
|
body: JSON.stringify({
|
|
4656
|
-
events: [await
|
|
4663
|
+
events: [await Ea(e)]
|
|
4657
4664
|
}),
|
|
4658
4665
|
headers: {
|
|
4659
4666
|
"content-type": "application/json"
|
|
@@ -4663,14 +4670,14 @@ async function Ea(e) {
|
|
|
4663
4670
|
console.error("Failed to track: ", t);
|
|
4664
4671
|
});
|
|
4665
4672
|
}
|
|
4666
|
-
const
|
|
4673
|
+
const rs = (e) => Ia({
|
|
4667
4674
|
...e,
|
|
4668
4675
|
canTrack: !0
|
|
4669
4676
|
});
|
|
4670
4677
|
function nr(e) {
|
|
4671
4678
|
return Math.round(e * 1e3) / 1e3;
|
|
4672
4679
|
}
|
|
4673
|
-
const
|
|
4680
|
+
const Ta = (e, t, n = !0) => {
|
|
4674
4681
|
if (!(e instanceof HTMLElement))
|
|
4675
4682
|
return null;
|
|
4676
4683
|
let r = n ? e : e.parentElement;
|
|
@@ -4681,7 +4688,7 @@ const Ia = (e, t, n = !0) => {
|
|
|
4681
4688
|
return r;
|
|
4682
4689
|
} while (r = r.parentElement);
|
|
4683
4690
|
return null;
|
|
4684
|
-
},
|
|
4691
|
+
}, Aa = (e) => Ta(e, (t) => {
|
|
4685
4692
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4686
4693
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4687
4694
|
}), rr = ({
|
|
@@ -4693,8 +4700,8 @@ const Ia = (e, t, n = !0) => {
|
|
|
4693
4700
|
x: i,
|
|
4694
4701
|
y: s
|
|
4695
4702
|
};
|
|
4696
|
-
},
|
|
4697
|
-
const t = e.target, n = t &&
|
|
4703
|
+
}, os = (e) => {
|
|
4704
|
+
const t = e.target, n = t && Aa(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4698
4705
|
return {
|
|
4699
4706
|
targetBuilderElement: r || void 0,
|
|
4700
4707
|
metadata: {
|
|
@@ -4709,13 +4716,13 @@ const Ia = (e, t, n = !0) => {
|
|
|
4709
4716
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4710
4717
|
}
|
|
4711
4718
|
};
|
|
4712
|
-
},
|
|
4713
|
-
function
|
|
4719
|
+
}, Oa = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4720
|
+
function Wr(e, t) {
|
|
4714
4721
|
const n = new URL(t.origin), r = n.hostname;
|
|
4715
|
-
return (e ||
|
|
4722
|
+
return (e || Oa).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
4716
4723
|
}
|
|
4717
|
-
const
|
|
4718
|
-
function
|
|
4724
|
+
const ja = "0.14.21", or = {};
|
|
4725
|
+
function Ra(e, t) {
|
|
4719
4726
|
let n = or[e];
|
|
4720
4727
|
if (n || (n = or[e] = []), n.push(t), G()) {
|
|
4721
4728
|
const r = {
|
|
@@ -4732,8 +4739,8 @@ function ja(e, t) {
|
|
|
4732
4739
|
}
|
|
4733
4740
|
}
|
|
4734
4741
|
}
|
|
4735
|
-
const
|
|
4736
|
-
|
|
4742
|
+
const is = () => {
|
|
4743
|
+
Ra("insertMenu", {
|
|
4737
4744
|
name: "_default",
|
|
4738
4745
|
default: !0,
|
|
4739
4746
|
items: [{
|
|
@@ -4756,13 +4763,13 @@ const os = () => {
|
|
|
4756
4763
|
});
|
|
4757
4764
|
};
|
|
4758
4765
|
let ir = !1;
|
|
4759
|
-
const
|
|
4766
|
+
const Pa = (e = {}) => {
|
|
4760
4767
|
var t, n;
|
|
4761
4768
|
ir || (ir = !0, G() && ((t = window.parent) == null || t.postMessage({
|
|
4762
4769
|
type: "builder.sdkInfo",
|
|
4763
4770
|
data: {
|
|
4764
4771
|
target: me,
|
|
4765
|
-
version:
|
|
4772
|
+
version: ja,
|
|
4766
4773
|
supportsPatchUpdates: !1,
|
|
4767
4774
|
// Supports builder-model="..." attribute which is needed to
|
|
4768
4775
|
// scope our '+ add block' button styling
|
|
@@ -4776,7 +4783,7 @@ const Ra = (e = {}) => {
|
|
|
4776
4783
|
}
|
|
4777
4784
|
}, "*"), window.addEventListener("message", (r) => {
|
|
4778
4785
|
var i, s;
|
|
4779
|
-
if (!
|
|
4786
|
+
if (!Wr(e.trustedHosts, r))
|
|
4780
4787
|
return;
|
|
4781
4788
|
const {
|
|
4782
4789
|
data: o
|
|
@@ -4817,12 +4824,12 @@ const Ra = (e = {}) => {
|
|
|
4817
4824
|
}
|
|
4818
4825
|
}
|
|
4819
4826
|
})));
|
|
4820
|
-
},
|
|
4827
|
+
}, Na = ({
|
|
4821
4828
|
model: e,
|
|
4822
4829
|
trustedHosts: t,
|
|
4823
4830
|
callbacks: n
|
|
4824
4831
|
}) => (r) => {
|
|
4825
|
-
if (!
|
|
4832
|
+
if (!Wr(t, r))
|
|
4826
4833
|
return;
|
|
4827
4834
|
const {
|
|
4828
4835
|
data: o
|
|
@@ -4843,12 +4850,12 @@ const Ra = (e = {}) => {
|
|
|
4843
4850
|
break;
|
|
4844
4851
|
}
|
|
4845
4852
|
}
|
|
4846
|
-
},
|
|
4853
|
+
}, as = (e, t, n) => {
|
|
4847
4854
|
if (!G)
|
|
4848
4855
|
return Z.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
4849
4856
|
};
|
|
4850
|
-
|
|
4851
|
-
const r =
|
|
4857
|
+
Pa();
|
|
4858
|
+
const r = Na({
|
|
4852
4859
|
callbacks: {
|
|
4853
4860
|
contentUpdate: t,
|
|
4854
4861
|
animation: () => {
|
|
@@ -4862,7 +4869,7 @@ const Ra = (e = {}) => {
|
|
|
4862
4869
|
return window.addEventListener("message", r), () => {
|
|
4863
4870
|
window.removeEventListener("message", r);
|
|
4864
4871
|
};
|
|
4865
|
-
},
|
|
4872
|
+
}, Ba = (e) => {
|
|
4866
4873
|
var i;
|
|
4867
4874
|
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);
|
|
4868
4875
|
let o = "";
|
|
@@ -4888,12 +4895,12 @@ font-weight: ${s};
|
|
|
4888
4895
|
`.trim());
|
|
4889
4896
|
}
|
|
4890
4897
|
return o;
|
|
4891
|
-
},
|
|
4898
|
+
}, Ua = ({
|
|
4892
4899
|
customFonts: e
|
|
4893
4900
|
}) => {
|
|
4894
4901
|
var t;
|
|
4895
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4896
|
-
},
|
|
4902
|
+
return ((t = e == null ? void 0 : e.map((n) => Ba(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4903
|
+
}, Ma = ({
|
|
4897
4904
|
cssCode: e,
|
|
4898
4905
|
contentId: t
|
|
4899
4906
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Fa = `
|
|
@@ -4913,21 +4920,21 @@ font-weight: ${s};
|
|
|
4913
4920
|
text-align: inherit;
|
|
4914
4921
|
font-family: inherit;
|
|
4915
4922
|
}
|
|
4916
|
-
`,
|
|
4917
|
-
function
|
|
4923
|
+
`, Va = (e) => e ? "" : Fa, ss = (e) => `variant-${e}`;
|
|
4924
|
+
function Da(e) {
|
|
4918
4925
|
const t = `
|
|
4919
|
-
${
|
|
4926
|
+
${Ma({
|
|
4920
4927
|
cssCode: e.cssCode,
|
|
4921
4928
|
contentId: e.contentId
|
|
4922
4929
|
})}
|
|
4923
|
-
${
|
|
4930
|
+
${Ua({
|
|
4924
4931
|
customFonts: e.customFonts
|
|
4925
4932
|
})}
|
|
4926
|
-
${
|
|
4933
|
+
${Va(e.isNestedRender)}
|
|
4927
4934
|
`.trim();
|
|
4928
|
-
return /* @__PURE__ */ I(
|
|
4935
|
+
return /* @__PURE__ */ I(gt, { id: "builderio-content", styles: t });
|
|
4929
4936
|
}
|
|
4930
|
-
const
|
|
4937
|
+
const La = ({
|
|
4931
4938
|
content: e,
|
|
4932
4939
|
data: t,
|
|
4933
4940
|
locale: n
|
|
@@ -4944,7 +4951,7 @@ const Da = ({
|
|
|
4944
4951
|
locale: n
|
|
4945
4952
|
} : {}
|
|
4946
4953
|
};
|
|
4947
|
-
},
|
|
4954
|
+
}, Wa = ({
|
|
4948
4955
|
content: e,
|
|
4949
4956
|
data: t
|
|
4950
4957
|
}) => e ? {
|
|
@@ -4957,7 +4964,7 @@ const Da = ({
|
|
|
4957
4964
|
} : void 0;
|
|
4958
4965
|
function ar(e) {
|
|
4959
4966
|
var o, i, s, u, p, b, x, m, O;
|
|
4960
|
-
const t =
|
|
4967
|
+
const t = ta({
|
|
4961
4968
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4962
4969
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
4963
4970
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4970,17 +4977,17 @@ function ar(e) {
|
|
|
4970
4977
|
...N,
|
|
4971
4978
|
[R.name]: {
|
|
4972
4979
|
component: j,
|
|
4973
|
-
...
|
|
4980
|
+
...Kt(R)
|
|
4974
4981
|
}
|
|
4975
4982
|
}),
|
|
4976
4983
|
{}
|
|
4977
4984
|
), r = {
|
|
4978
|
-
content:
|
|
4985
|
+
content: Wa({
|
|
4979
4986
|
content: e.content,
|
|
4980
4987
|
data: e.data
|
|
4981
4988
|
}),
|
|
4982
4989
|
localState: void 0,
|
|
4983
|
-
rootState:
|
|
4990
|
+
rootState: La({
|
|
4984
4991
|
content: e.content,
|
|
4985
4992
|
data: e.data,
|
|
4986
4993
|
locale: e.locale
|
|
@@ -4995,7 +5002,7 @@ function ar(e) {
|
|
|
4995
5002
|
].reduce(
|
|
4996
5003
|
(N, { component: j, ...R }) => ({
|
|
4997
5004
|
...N,
|
|
4998
|
-
[R.name]:
|
|
5005
|
+
[R.name]: Kt(R)
|
|
4999
5006
|
}),
|
|
5000
5007
|
{}
|
|
5001
5008
|
),
|
|
@@ -5004,7 +5011,7 @@ function ar(e) {
|
|
|
5004
5011
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
5005
5012
|
};
|
|
5006
5013
|
return /* @__PURE__ */ xe(
|
|
5007
|
-
|
|
5014
|
+
vo,
|
|
5008
5015
|
{
|
|
5009
5016
|
content: e.content,
|
|
5010
5017
|
data: e.data,
|
|
@@ -5022,14 +5029,14 @@ function ar(e) {
|
|
|
5022
5029
|
trustedHosts: e.trustedHosts,
|
|
5023
5030
|
children: [
|
|
5024
5031
|
e.isSsrAbTest ? /* @__PURE__ */ I(
|
|
5025
|
-
|
|
5032
|
+
Gt,
|
|
5026
5033
|
{
|
|
5027
5034
|
id: "builderio-variant-visibility",
|
|
5028
5035
|
scriptStr: t
|
|
5029
5036
|
}
|
|
5030
5037
|
) : null,
|
|
5031
5038
|
/* @__PURE__ */ I(
|
|
5032
|
-
|
|
5039
|
+
Da,
|
|
5033
5040
|
{
|
|
5034
5041
|
isNestedRender: e.isNestedRender,
|
|
5035
5042
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
@@ -5052,12 +5059,12 @@ function ar(e) {
|
|
|
5052
5059
|
}
|
|
5053
5060
|
function _a(e) {
|
|
5054
5061
|
var i;
|
|
5055
|
-
const t =
|
|
5056
|
-
canTrack:
|
|
5062
|
+
const t = qi({
|
|
5063
|
+
canTrack: Ht(e.canTrack),
|
|
5057
5064
|
content: e.content
|
|
5058
5065
|
}), n = function() {
|
|
5059
5066
|
var u;
|
|
5060
|
-
return
|
|
5067
|
+
return ea(
|
|
5061
5068
|
ft(e.content).map((p) => ({
|
|
5062
5069
|
id: p.testVariationId,
|
|
5063
5070
|
testRatio: p.testRatio
|
|
@@ -5071,29 +5078,29 @@ function _a(e) {
|
|
|
5071
5078
|
return t ? {
|
|
5072
5079
|
...e.content,
|
|
5073
5080
|
testVariationId: (u = e.content) == null ? void 0 : u.id
|
|
5074
|
-
} :
|
|
5081
|
+
} : Oi({
|
|
5075
5082
|
item: e.content,
|
|
5076
|
-
canTrack:
|
|
5083
|
+
canTrack: Ht(e.canTrack)
|
|
5077
5084
|
});
|
|
5078
5085
|
};
|
|
5079
5086
|
return /* @__PURE__ */ xe(ee, { children: [
|
|
5080
5087
|
!e.isNestedRender && me !== "reactNative" ? /* @__PURE__ */ I(
|
|
5081
|
-
|
|
5088
|
+
Gt,
|
|
5082
5089
|
{
|
|
5083
5090
|
id: "builderio-init-variants-fns",
|
|
5084
|
-
scriptStr:
|
|
5091
|
+
scriptStr: Qi()
|
|
5085
5092
|
}
|
|
5086
5093
|
) : null,
|
|
5087
5094
|
t ? /* @__PURE__ */ xe(ee, { children: [
|
|
5088
5095
|
/* @__PURE__ */ I(
|
|
5089
|
-
|
|
5096
|
+
gt,
|
|
5090
5097
|
{
|
|
5091
5098
|
id: "builderio-variants",
|
|
5092
5099
|
styles: r()
|
|
5093
5100
|
}
|
|
5094
5101
|
),
|
|
5095
5102
|
/* @__PURE__ */ I(
|
|
5096
|
-
|
|
5103
|
+
Gt,
|
|
5097
5104
|
{
|
|
5098
5105
|
id: "builderio-variants-visibility",
|
|
5099
5106
|
scriptStr: n()
|
|
@@ -5151,13 +5158,13 @@ function _a(e) {
|
|
|
5151
5158
|
)
|
|
5152
5159
|
] });
|
|
5153
5160
|
}
|
|
5154
|
-
const
|
|
5161
|
+
const $a = async ({
|
|
5155
5162
|
builderContextValue: e,
|
|
5156
5163
|
symbol: t
|
|
5157
5164
|
}) => {
|
|
5158
5165
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5159
5166
|
(e != null && e.apiKey))
|
|
5160
|
-
return
|
|
5167
|
+
return Mr({
|
|
5161
5168
|
model: t.model,
|
|
5162
5169
|
apiKey: e.apiKey,
|
|
5163
5170
|
apiVersion: e.apiVersion,
|
|
@@ -5170,7 +5177,7 @@ const Wa = async ({
|
|
|
5170
5177
|
Z.error("Could not fetch symbol content: ", n);
|
|
5171
5178
|
});
|
|
5172
5179
|
};
|
|
5173
|
-
async function
|
|
5180
|
+
async function Ha(e) {
|
|
5174
5181
|
var i, s, u, p, b;
|
|
5175
5182
|
const t = function() {
|
|
5176
5183
|
return "div";
|
|
@@ -5184,7 +5191,7 @@ async function $a(e) {
|
|
|
5184
5191
|
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
5185
5192
|
(O = e.symbol) != null && O.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5186
5193
|
].filter(Boolean).join(" ");
|
|
5187
|
-
}, o = ((i = e.symbol) == null ? void 0 : i.content) || await
|
|
5194
|
+
}, o = ((i = e.symbol) == null ? void 0 : i.content) || await $a({
|
|
5188
5195
|
symbol: e.symbol,
|
|
5189
5196
|
builderContextValue: e.builderContext
|
|
5190
5197
|
});
|
|
@@ -5213,7 +5220,7 @@ async function $a(e) {
|
|
|
5213
5220
|
) });
|
|
5214
5221
|
}
|
|
5215
5222
|
const sr = {};
|
|
5216
|
-
function
|
|
5223
|
+
function ls(e) {
|
|
5217
5224
|
if (G()) {
|
|
5218
5225
|
Object.assign(sr, e);
|
|
5219
5226
|
const t = {
|
|
@@ -5223,7 +5230,7 @@ function ss(e) {
|
|
|
5223
5230
|
parent.postMessage(t, "*");
|
|
5224
5231
|
}
|
|
5225
5232
|
}
|
|
5226
|
-
const
|
|
5233
|
+
const cs = async (e) => {
|
|
5227
5234
|
var r, o, i;
|
|
5228
5235
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
5229
5236
|
...e,
|
|
@@ -5235,50 +5242,50 @@ const ls = async (e) => {
|
|
|
5235
5242
|
urlPath: t
|
|
5236
5243
|
} : {}
|
|
5237
5244
|
},
|
|
5238
|
-
options:
|
|
5245
|
+
options: Ur(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
5239
5246
|
};
|
|
5240
5247
|
return {
|
|
5241
5248
|
apiKey: n.apiKey,
|
|
5242
5249
|
model: n.model,
|
|
5243
|
-
content: await
|
|
5250
|
+
content: await Mr(n)
|
|
5244
5251
|
};
|
|
5245
5252
|
};
|
|
5246
5253
|
export {
|
|
5247
|
-
|
|
5254
|
+
Ur as A,
|
|
5248
5255
|
cn as B,
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5256
|
+
yi as C,
|
|
5257
|
+
rs as D,
|
|
5258
|
+
as as E,
|
|
5259
|
+
cs as F,
|
|
5260
|
+
pa as G,
|
|
5261
|
+
ha as H,
|
|
5262
|
+
Ha as S,
|
|
5263
|
+
Li as T,
|
|
5264
|
+
Ia as _,
|
|
5265
|
+
pi as a,
|
|
5266
|
+
Za as b,
|
|
5260
5267
|
ur as c,
|
|
5261
|
-
|
|
5262
|
-
|
|
5268
|
+
Qa as d,
|
|
5269
|
+
es as e,
|
|
5263
5270
|
G as f,
|
|
5264
5271
|
Yt as g,
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5272
|
+
Ht as h,
|
|
5273
|
+
za as i,
|
|
5274
|
+
ns as j,
|
|
5275
|
+
ss as k,
|
|
5269
5276
|
Z as l,
|
|
5270
|
-
|
|
5277
|
+
Na as m,
|
|
5271
5278
|
ln as n,
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5279
|
+
os as o,
|
|
5280
|
+
sa as p,
|
|
5281
|
+
mt as q,
|
|
5282
|
+
is as r,
|
|
5283
|
+
Pa as s,
|
|
5284
|
+
qa as t,
|
|
5285
|
+
ts as u,
|
|
5286
|
+
Mr as v,
|
|
5287
|
+
ra as w,
|
|
5281
5288
|
_a as x,
|
|
5282
|
-
|
|
5283
|
-
|
|
5289
|
+
Ra as y,
|
|
5290
|
+
ls as z
|
|
5284
5291
|
};
|