@builder.io/sdk-react 5.1.0 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +15 -15
- package/lib/browser/blocks-exports.mjs +400 -368
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-7b82deab.cjs → server-entry-85aa99e6.cjs} +2 -2
- package/lib/browser/{server-entry-1df58bc2.js → server-entry-a3b5302c.js} +126 -126
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-ac489baa.cjs → accordion-1e467b30.cjs} +1 -1
- package/lib/edge/{accordion-a57423b4.js → accordion-83f68de4.js} +1 -1
- package/lib/edge/{blocks-612edfa7.cjs → blocks-4d57d38f.cjs} +12 -12
- package/lib/edge/{blocks-966052b8.js → blocks-6b821501.js} +359 -327
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-da479943.js → button-52af8a54.js} +2 -2
- package/lib/edge/{button-33b8e000.cjs → button-b2eb1d64.cjs} +1 -1
- package/lib/edge/{columns-476f3763.cjs → columns-8eb66fad.cjs} +1 -1
- package/lib/edge/{columns-384a8553.js → columns-e0489b50.js} +3 -3
- package/lib/edge/{content-variants-b281c0c9.js → content-variants-5003144d.js} +12 -12
- package/lib/edge/{content-variants-21daab2e.cjs → content-variants-6c1ee307.cjs} +2 -2
- package/lib/edge/{custom-code-8f1a8bf6.js → custom-code-4e76fc0d.js} +1 -1
- package/lib/edge/{custom-code-d420a6d1.cjs → custom-code-bc787526.cjs} +1 -1
- package/lib/edge/{embed-36d96f7c.cjs → embed-8ef248c5.cjs} +1 -1
- package/lib/edge/{embed-4baabd44.js → embed-fd344d6d.js} +1 -1
- package/lib/edge/{form-597542fa.cjs → form-107c9eae.cjs} +1 -1
- package/lib/edge/{form-7b4ce85e.js → form-4efa40a5.js} +3 -3
- package/lib/edge/{get-class-prop-name-0e04739a.cjs → get-class-prop-name-2c2513e9.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-71cc2ebb.js → get-class-prop-name-e6f7321f.js} +1 -1
- package/lib/edge/{img-f7f612f5.js → img-a32b0723.js} +2 -2
- package/lib/edge/{img-ac7c30e0.cjs → img-ab241f22.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-b6bd8bd9.cjs → input-ada30ffb.cjs} +1 -1
- package/lib/edge/{input-eb1cbd99.js → input-c48fe23a.js} +1 -1
- package/lib/edge/{personalization-container-c5a53dee.cjs → personalization-container-375a1501.cjs} +1 -1
- package/lib/edge/{personalization-container-5fd328ca.js → personalization-container-ad7cf89c.js} +4 -4
- package/lib/edge/{select-e0f16408.cjs → select-879c52dd.cjs} +1 -1
- package/lib/edge/{select-3f4a8f91.js → select-a49d819c.js} +1 -1
- package/lib/edge/{server-entry-00719c56.cjs → server-entry-560732da.cjs} +1 -1
- package/lib/edge/{server-entry-2d0b2a53.js → server-entry-68d59577.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-38a6fa40.js → slot-005d6258.js} +3 -3
- package/lib/edge/{slot-bf1f3ed7.cjs → slot-5da991d1.cjs} +1 -1
- package/lib/edge/{symbol-54dc2d3c.js → symbol-155906ed.js} +2 -2
- package/lib/edge/{symbol-3a09c0c2.cjs → symbol-7e6ac72e.cjs} +1 -1
- package/lib/edge/{tabs-312a6e0a.js → tabs-69a36a5c.js} +3 -3
- package/lib/edge/{tabs-c4a1844c.cjs → tabs-96367bf5.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +5 -5
- package/lib/node/blocks-exports.mjs +143 -127
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/{server-entry-6fc232c7.cjs → server-entry-2529c06e.cjs} +2 -2
- package/lib/node/{server-entry-4228cc2b.js → server-entry-fc7f08d8.js} +126 -126
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-29867fb3.js → setIvm-41d8b067.js} +60 -44
- package/lib/node/setIvm-b97cfb8b.cjs +48 -0
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-eab67c2a.cjs → should-force-browser-runtime-in-node-1d85a066.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-7c48ac04.js → should-force-browser-runtime-in-node-fc5c3a06.js} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/evaluate.d.ts +1 -1
- package/types/functions/evaluate/helpers.d.ts +9 -1
- package/types/functions/get-block-actions-handler.d.ts +2 -0
- package/types/functions/get-block-actions.d.ts +2 -0
- package/lib/node/setIvm-5abc9e0c.cjs +0 -48
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as O, Fragment as L, jsxs as it } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as On, useEffect as pe, useState as he, useContext as Lt, useRef as jn } from "react";
|
|
3
3
|
import { BuilderContext as Xt } from "./blocks-exports.mjs";
|
|
4
|
-
import { isEditing as Ft, isBrowser as Wt, getUserAttributes as An, checkIsDefined as st, logger as
|
|
5
|
-
import { getClassPropName as
|
|
6
|
-
import { DynamicRenderer as
|
|
7
|
-
const
|
|
4
|
+
import { isEditing as Ft, isBrowser as Wt, getUserAttributes as An, _track as In, checkIsDefined as st, logger as Kr, TARGET as lt, isPreviewing as Tn } from "./server-entry-68d59577.js";
|
|
5
|
+
import { getClassPropName as Pn } from "./get-class-prop-name-e6f7321f.js";
|
|
6
|
+
import { DynamicRenderer as bn } from "./dynamic-renderer-8b343325.js";
|
|
7
|
+
const Nn = On({ registeredComponents: {} }), Rn = (e, t, n) => {
|
|
8
8
|
const r = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, s) => o != null ? o[s] : o, e);
|
|
9
9
|
return r === void 0 || r === e ? n : r;
|
|
10
|
-
},
|
|
10
|
+
}, Jr = ({
|
|
11
11
|
builder: e,
|
|
12
12
|
context: t,
|
|
13
13
|
event: n,
|
|
@@ -19,15 +19,31 @@ const bn = On({ registeredComponents: {} }), Nn = (e, t, n) => {
|
|
|
19
19
|
builder: e,
|
|
20
20
|
context: t,
|
|
21
21
|
event: n
|
|
22
|
-
}),
|
|
22
|
+
}), Bn = (e) => ({
|
|
23
23
|
isEditing: Ft(),
|
|
24
24
|
isBrowser: Wt(),
|
|
25
25
|
isServer: !Wt(),
|
|
26
|
-
getUserAttributes: () => An()
|
|
27
|
-
|
|
26
|
+
getUserAttributes: () => An(),
|
|
27
|
+
trackConversion: (t, n) => {
|
|
28
|
+
var r;
|
|
29
|
+
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || In({
|
|
30
|
+
type: "conversion",
|
|
31
|
+
apiKey: e.apiKey,
|
|
32
|
+
canTrack: (r = e.canTrack) != null ? r : !0,
|
|
33
|
+
contentId: e.contentId,
|
|
34
|
+
variationId: e.variationId !== e.contentId ? e.variationId : void 0,
|
|
35
|
+
metadata: {
|
|
36
|
+
...n || {},
|
|
37
|
+
...t !== void 0 ? {
|
|
38
|
+
amount: t
|
|
39
|
+
} : {}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}), Mn = (e, {
|
|
28
44
|
isExpression: t = !0
|
|
29
45
|
}) => /* 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;
|
|
30
|
-
function
|
|
46
|
+
function Kt({
|
|
31
47
|
rootState: e,
|
|
32
48
|
localState: t,
|
|
33
49
|
rootSetState: n
|
|
@@ -37,7 +53,7 @@ function Jt({
|
|
|
37
53
|
if (t && o in t)
|
|
38
54
|
return t[o];
|
|
39
55
|
const s = r[o];
|
|
40
|
-
return typeof s == "object" && s !== null ?
|
|
56
|
+
return typeof s == "object" && s !== null ? Kt({
|
|
41
57
|
rootState: s,
|
|
42
58
|
localState: void 0,
|
|
43
59
|
rootSetState: n ? (a) => {
|
|
@@ -52,7 +68,7 @@ function Jt({
|
|
|
52
68
|
}
|
|
53
69
|
});
|
|
54
70
|
}
|
|
55
|
-
const
|
|
71
|
+
const Dn = ({
|
|
56
72
|
code: e,
|
|
57
73
|
builder: t,
|
|
58
74
|
context: n,
|
|
@@ -61,11 +77,11 @@ const Mn = ({
|
|
|
61
77
|
rootSetState: s,
|
|
62
78
|
rootState: a
|
|
63
79
|
}) => {
|
|
64
|
-
const f =
|
|
80
|
+
const f = Jr({
|
|
65
81
|
builder: t,
|
|
66
82
|
context: n,
|
|
67
83
|
event: r,
|
|
68
|
-
state:
|
|
84
|
+
state: Kt({
|
|
69
85
|
rootState: a,
|
|
70
86
|
localState: o,
|
|
71
87
|
rootSetState: s
|
|
@@ -73,7 +89,7 @@ const Mn = ({
|
|
|
73
89
|
});
|
|
74
90
|
return new Function(...f.map(([d]) => d), e)(...f.map(([, d]) => d));
|
|
75
91
|
};
|
|
76
|
-
var b,
|
|
92
|
+
var b, _n = function(e) {
|
|
77
93
|
function t(i) {
|
|
78
94
|
return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && kn.test(String.fromCharCode(i));
|
|
79
95
|
}
|
|
@@ -144,7 +160,7 @@ var b, Dn = function(e) {
|
|
|
144
160
|
break;
|
|
145
161
|
}
|
|
146
162
|
}
|
|
147
|
-
function
|
|
163
|
+
function w(i) {
|
|
148
164
|
switch (i) {
|
|
149
165
|
case 46:
|
|
150
166
|
i = g.charCodeAt(c + 1), 48 <= i && 57 >= i ? P(!0) : (++c, a(Ir));
|
|
@@ -247,50 +263,50 @@ var b, Dn = function(e) {
|
|
|
247
263
|
}
|
|
248
264
|
return;
|
|
249
265
|
case 47:
|
|
250
|
-
i = g.charCodeAt(c + 1), Re ? (++c, G()) : i === 61 ?
|
|
266
|
+
i = g.charCodeAt(c + 1), Re ? (++c, G()) : i === 61 ? T(me, 2) : T(Pr, 1);
|
|
251
267
|
return;
|
|
252
268
|
case 37:
|
|
253
269
|
case 42:
|
|
254
|
-
g.charCodeAt(c + 1) === 61 ?
|
|
270
|
+
g.charCodeAt(c + 1) === 61 ? T(me, 2) : T(wn, 1);
|
|
255
271
|
return;
|
|
256
272
|
case 124:
|
|
257
273
|
case 38:
|
|
258
|
-
l = g.charCodeAt(c + 1), l === i ?
|
|
274
|
+
l = g.charCodeAt(c + 1), l === i ? T(i === 124 ? Rr : Br, 2) : l === 61 ? T(me, 2) : T(i === 124 ? pn : dn, 1);
|
|
259
275
|
return;
|
|
260
276
|
case 94:
|
|
261
|
-
g.charCodeAt(c + 1) === 61 ?
|
|
277
|
+
g.charCodeAt(c + 1) === 61 ? T(me, 2) : T(hn, 1);
|
|
262
278
|
return;
|
|
263
279
|
case 43:
|
|
264
280
|
case 45:
|
|
265
|
-
l = g.charCodeAt(c + 1), l === i ? l === 45 && g.charCodeAt(c + 2) === 62 && nt.test(g.slice(ce, c)) ? (c += 3, f(), d(),
|
|
281
|
+
l = g.charCodeAt(c + 1), l === i ? l === 45 && g.charCodeAt(c + 2) === 62 && nt.test(g.slice(ce, c)) ? (c += 3, f(), d(), A()) : T(fn, 2) : l === 61 ? T(me, 2) : T(vn, 1);
|
|
266
282
|
return;
|
|
267
283
|
case 60:
|
|
268
284
|
case 62:
|
|
269
|
-
l = g.charCodeAt(c + 1), u = 1, l === i ? (u = i === 62 && g.charCodeAt(c + 2) === 62 ? 3 : 2, g.charCodeAt(c + u) === 61 ?
|
|
285
|
+
l = g.charCodeAt(c + 1), u = 1, l === i ? (u = i === 62 && g.charCodeAt(c + 2) === 62 ? 3 : 2, g.charCodeAt(c + u) === 61 ? T(me, u + 1) : T(mn, u)) : l === 33 && i === 60 && g.charCodeAt(c + 2) === 45 && g.charCodeAt(c + 3) === 45 ? (c += 4, f(), d(), A()) : (l === 61 && (u = g.charCodeAt(c + 2) === 61 ? 3 : 2), T(yn, u));
|
|
270
286
|
return;
|
|
271
287
|
case 61:
|
|
272
288
|
case 33:
|
|
273
|
-
g.charCodeAt(c + 1) === 61 ?
|
|
289
|
+
g.charCodeAt(c + 1) === 61 ? T(gn, g.charCodeAt(c + 2) === 61 ? 3 : 2) : T(i === 61 ? br : Nr, 1);
|
|
274
290
|
return;
|
|
275
291
|
case 126:
|
|
276
|
-
return
|
|
292
|
+
return T(Nr, 1);
|
|
277
293
|
}
|
|
278
294
|
return !1;
|
|
279
295
|
}
|
|
280
|
-
function
|
|
296
|
+
function A(i) {
|
|
281
297
|
if (i ? c = U + 1 : U = c, C.C && (Et = new s()), i)
|
|
282
298
|
return G();
|
|
283
299
|
if (c >= ve)
|
|
284
300
|
return a(jt);
|
|
285
301
|
if (i = g.charCodeAt(c), n(i) || i === 92)
|
|
286
302
|
return _();
|
|
287
|
-
if (
|
|
303
|
+
if (w(i) === !1) {
|
|
288
304
|
if (i = String.fromCharCode(i), i === "\\" || Dr.test(i))
|
|
289
305
|
return _();
|
|
290
306
|
r(c, "Unexpected character '" + i + "'");
|
|
291
307
|
}
|
|
292
308
|
}
|
|
293
|
-
function
|
|
309
|
+
function T(i, l) {
|
|
294
310
|
var u = g.slice(c, c + l);
|
|
295
311
|
c += l, a(i, u);
|
|
296
312
|
}
|
|
@@ -358,14 +374,14 @@ var b, Dn = function(e) {
|
|
|
358
374
|
!Ee && Sn(i) && (l = cn[i]), a(l, i);
|
|
359
375
|
}
|
|
360
376
|
function k() {
|
|
361
|
-
Ct = U, ce = we, Ot = kt,
|
|
377
|
+
Ct = U, ce = we, Ot = kt, A();
|
|
362
378
|
}
|
|
363
379
|
function ue(i) {
|
|
364
380
|
if (z = i, c = U, C.C)
|
|
365
381
|
for (; c < re; )
|
|
366
382
|
re = g.lastIndexOf(`
|
|
367
383
|
`, re - 2) + 1, --ye;
|
|
368
|
-
d(),
|
|
384
|
+
d(), A();
|
|
369
385
|
}
|
|
370
386
|
function Ie() {
|
|
371
387
|
this.type = null, this.start = U, this.end = null;
|
|
@@ -406,7 +422,7 @@ var b, Dn = function(e) {
|
|
|
406
422
|
i.type !== "Identifier" && i.type !== "MemberExpression" && r(i.start, "Assigning to rvalue"), z && i.type === "Identifier" && rt(i.name) && r(i.start, "Assigning to " + i.name + " in strict mode");
|
|
407
423
|
}
|
|
408
424
|
function Q() {
|
|
409
|
-
(S === Pr || S === me && Y === "/=") &&
|
|
425
|
+
(S === Pr || S === me && Y === "/=") && A(!0);
|
|
410
426
|
var i = S, l = B();
|
|
411
427
|
switch (i) {
|
|
412
428
|
case At:
|
|
@@ -623,7 +639,7 @@ var b, Dn = function(e) {
|
|
|
623
639
|
g = String(i), ve = g.length, C = l || {};
|
|
624
640
|
for (var u in lr)
|
|
625
641
|
Object.prototype.hasOwnProperty.call(C, u) || (C[u] = lr[u]);
|
|
626
|
-
for (St = C.sourceFile, ye = 1, c = re = 0, Re = !0, d(), u = C.dc, Ct = ce = c, C.C && (Ot = new s()), Be = z = !1, D = [],
|
|
642
|
+
for (St = C.sourceFile, ye = 1, c = re = 0, Re = !0, d(), u = C.dc, Ct = ce = c, C.C && (Ot = new s()), Be = z = !1, D = [], A(), i = u || B(), l = !0, u || (i.body = []); S !== jt; )
|
|
627
643
|
u = Q(), i.body.push(u), l && dt(u) && ue(!0), l = !1;
|
|
628
644
|
return x(i, "Program");
|
|
629
645
|
};
|
|
@@ -839,7 +855,7 @@ var b, Dn = function(e) {
|
|
|
839
855
|
kind: "switch"
|
|
840
856
|
};
|
|
841
857
|
}, Gt = Gt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
842
|
-
|
|
858
|
+
_n(Gt.j || (Gt.j = {}));
|
|
843
859
|
function h(e, t) {
|
|
844
860
|
typeof e == "string" && (e = Oe(e, "code"));
|
|
845
861
|
var n = e.constructor;
|
|
@@ -861,7 +877,7 @@ function h(e, t) {
|
|
|
861
877
|
var _r = {
|
|
862
878
|
C: !0,
|
|
863
879
|
kc: 5
|
|
864
|
-
},
|
|
880
|
+
}, Jt = {
|
|
865
881
|
configurable: !0,
|
|
866
882
|
enumerable: !0,
|
|
867
883
|
writable: !1
|
|
@@ -869,7 +885,7 @@ var _r = {
|
|
|
869
885
|
configurable: !0,
|
|
870
886
|
enumerable: !1,
|
|
871
887
|
writable: !0
|
|
872
|
-
},
|
|
888
|
+
}, J = {
|
|
873
889
|
configurable: !0,
|
|
874
890
|
enumerable: !1,
|
|
875
891
|
writable: !1
|
|
@@ -885,11 +901,11 @@ var _r = {
|
|
|
885
901
|
STEP_ERROR: !0
|
|
886
902
|
}, Ae = {
|
|
887
903
|
SCOPE_REFERENCE: !0
|
|
888
|
-
},
|
|
904
|
+
}, Ke = {
|
|
889
905
|
VALUE_IN_DESCRIPTOR: !0
|
|
890
906
|
}, Ce = {
|
|
891
907
|
REGEXP_TIMEOUT: !0
|
|
892
|
-
}, Lr = [], se = null, Ve = null, de = typeof globalThis == "undefined" ? void 0 : globalThis,
|
|
908
|
+
}, Lr = [], se = null, Ve = null, de = typeof globalThis == "undefined" ? void 0 : globalThis, Un = ["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();", "};"];
|
|
893
909
|
function zt(e) {
|
|
894
910
|
var t = e >>> 0;
|
|
895
911
|
return t === Number(e) ? t : NaN;
|
|
@@ -926,7 +942,7 @@ b.Jb = function(e) {
|
|
|
926
942
|
throw Error("Expecting original AST to start with a Program node");
|
|
927
943
|
if (typeof e == "string" && (e = Oe(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
928
944
|
throw Error("Expecting new AST to start with a Program node");
|
|
929
|
-
|
|
945
|
+
Je(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
930
946
|
};
|
|
931
947
|
b.lb = function() {
|
|
932
948
|
var e = this.o, t;
|
|
@@ -971,8 +987,8 @@ b.Eb = function() {
|
|
|
971
987
|
;
|
|
972
988
|
return this.za;
|
|
973
989
|
};
|
|
974
|
-
function
|
|
975
|
-
e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t,
|
|
990
|
+
function Ln(e, t) {
|
|
991
|
+
e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t, Jt), e.g(t, "this", t, Le), e.g(t, "self", t), e.M = new I(null), e.Z = new I(e.M), Fn(e, t), Wn(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Gn(e, t), $n(e, t), Vn(e, t), Hn(e, t), Xn(e, t), Kn(e, t), Jn(e, t), zn(e, t), Yn(e, t);
|
|
976
992
|
var n = e.i(function() {
|
|
977
993
|
throw EvalError("Can't happen");
|
|
978
994
|
}, !1);
|
|
@@ -983,7 +999,7 @@ function Un(e, t) {
|
|
|
983
999
|
try {
|
|
984
1000
|
return s(a);
|
|
985
1001
|
} catch (f) {
|
|
986
|
-
|
|
1002
|
+
v(e, e.Gb, f.message);
|
|
987
1003
|
}
|
|
988
1004
|
};
|
|
989
1005
|
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), y);
|
|
@@ -998,28 +1014,28 @@ function Un(e, t) {
|
|
|
998
1014
|
}, e.g(t, "clearInterval", e.i(n, !1), y), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
999
1015
|
}
|
|
1000
1016
|
b.Wb = 0;
|
|
1001
|
-
function
|
|
1017
|
+
function Fn(e, t) {
|
|
1002
1018
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1003
1019
|
var s = arguments.length ? String(arguments[arguments.length - 1]) : "", a = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1004
1020
|
if (a) {
|
|
1005
1021
|
a = a.split(/\s*,\s*/);
|
|
1006
1022
|
for (var f = 0; f < a.length; f++) {
|
|
1007
1023
|
var d = a[f];
|
|
1008
|
-
n.test(d) ||
|
|
1024
|
+
n.test(d) || v(e, e.T, "Invalid function argument: " + d);
|
|
1009
1025
|
}
|
|
1010
1026
|
a = a.join(", ");
|
|
1011
1027
|
}
|
|
1012
1028
|
try {
|
|
1013
|
-
var
|
|
1014
|
-
} catch (
|
|
1015
|
-
|
|
1029
|
+
var w = Oe("(function(" + a + ") {" + s + "})", "function" + e.Wb++);
|
|
1030
|
+
} catch (A) {
|
|
1031
|
+
v(e, e.T, "Invalid code: " + A.message);
|
|
1016
1032
|
}
|
|
1017
|
-
return
|
|
1033
|
+
return w.body.length !== 1 && v(e, e.T, "Invalid code in function body"), Qt(e, w.body[0].la, e.N, "anonymous");
|
|
1018
1034
|
};
|
|
1019
1035
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, y), e.g(e.O, "prototype", e.Z, y), e.g(e.Z, "constructor", e.O, y), e.Z.Ta = function() {
|
|
1020
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0,
|
|
1036
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, J), e.Z.H = "Function", r = function(o, s) {
|
|
1021
1037
|
var a = e.o[e.o.length - 1];
|
|
1022
|
-
a.U = this, a.B = o, a.F = [], s != null && (s instanceof
|
|
1038
|
+
a.U = this, a.B = o, a.F = [], s != null && (s instanceof I ? a.F = Yr(e, s) : v(e, e.j, "CreateListFromArrayLike called on non-object")), a.eb = !1;
|
|
1023
1039
|
}, W(e, e.O, "apply", r), r = function(o) {
|
|
1024
1040
|
var s = e.o[e.o.length - 1];
|
|
1025
1041
|
s.U = this, s.B = o, s.F = [];
|
|
@@ -1032,29 +1048,29 @@ function Ln(e, t) {
|
|
|
1032
1048
|
return this.valueOf();
|
|
1033
1049
|
}, W(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), y);
|
|
1034
1050
|
}
|
|
1035
|
-
function
|
|
1051
|
+
function Wn(e, t) {
|
|
1036
1052
|
function n(o) {
|
|
1037
|
-
o != null ||
|
|
1053
|
+
o != null || v(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1038
1054
|
}
|
|
1039
1055
|
var r = function(o) {
|
|
1040
1056
|
if (o == null)
|
|
1041
1057
|
return le(e) ? this : e.s(e.M);
|
|
1042
|
-
if (!(o instanceof
|
|
1058
|
+
if (!(o instanceof I)) {
|
|
1043
1059
|
var s = e.s(ae(e, o));
|
|
1044
1060
|
return s.data = o, s;
|
|
1045
1061
|
}
|
|
1046
1062
|
return o;
|
|
1047
1063
|
};
|
|
1048
1064
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, y), e.g(e.M, "constructor", e.v, y), e.g(t, "Object", e.v, y), r = function(o) {
|
|
1049
|
-
return n(o), ie(e, Object.getOwnPropertyNames(o instanceof
|
|
1065
|
+
return n(o), ie(e, Object.getOwnPropertyNames(o instanceof I ? o.h : o));
|
|
1050
1066
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), y), r = function(o) {
|
|
1051
|
-
return n(o), o instanceof
|
|
1067
|
+
return n(o), o instanceof I && (o = o.h), ie(e, Object.keys(o));
|
|
1052
1068
|
}, e.g(e.v, "keys", e.i(r, !1), y), r = function(o) {
|
|
1053
|
-
return o === null ? e.s(null) : (o instanceof
|
|
1069
|
+
return o === null ? e.s(null) : (o instanceof I || v(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1054
1070
|
}, e.g(e.v, "create", e.i(r, !1), y), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, s, a) {
|
|
1055
|
-
return s = String(s), o instanceof
|
|
1071
|
+
return s = String(s), o instanceof I || v(e, e.j, "Object.defineProperty called on non-object: " + o), a instanceof I || v(e, e.j, "Property description must be an object"), !o.preventExtensions || s in o.h || v(e, e.j, "Can't define property '" + s + "', object is not extensible"), e.g(o, s, Ke, a.h), o;
|
|
1056
1072
|
}, e.g(e.v, "defineProperty", e.i(r, !1), y), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, s) {
|
|
1057
|
-
if (o instanceof
|
|
1073
|
+
if (o instanceof I || v(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), s = String(s), s in o.h) {
|
|
1058
1074
|
var a = Object.getOwnPropertyDescriptor(o.h, s), f = o.V[s];
|
|
1059
1075
|
return o = o.Y[s], s = e.s(e.M), f || o ? (e.g(s, "get", f), e.g(s, "set", o)) : (e.g(s, "value", a.value), e.g(s, "writable", a.writable)), e.g(s, "configurable", a.configurable), e.g(s, "enumerable", a.enumerable), s;
|
|
1060
1076
|
}
|
|
@@ -1063,11 +1079,11 @@ function Fn(e, t) {
|
|
|
1063
1079
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), y), r = function(o) {
|
|
1064
1080
|
return !!o && !o.preventExtensions;
|
|
1065
1081
|
}, e.g(e.v, "isExtensible", e.i(r, !1), y), r = function(o) {
|
|
1066
|
-
return o instanceof
|
|
1067
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), y), W(e, e.v, "toString",
|
|
1068
|
-
return n(this), this instanceof
|
|
1082
|
+
return o instanceof I && (o.preventExtensions = !0), o;
|
|
1083
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), y), W(e, e.v, "toString", I.prototype.toString), W(e, e.v, "toLocaleString", I.prototype.toString), W(e, e.v, "valueOf", I.prototype.valueOf), r = function(o) {
|
|
1084
|
+
return n(this), this instanceof I ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1069
1085
|
}, W(e, e.v, "hasOwnProperty", r), r = function(o) {
|
|
1070
|
-
return n(this), this instanceof
|
|
1086
|
+
return n(this), this instanceof I ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1071
1087
|
}, W(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1072
1088
|
for (; ; ) {
|
|
1073
1089
|
if (o = ae(e, o), !o)
|
|
@@ -1077,11 +1093,11 @@ function Fn(e, t) {
|
|
|
1077
1093
|
}
|
|
1078
1094
|
}, W(e, e.v, "isPrototypeOf", r);
|
|
1079
1095
|
}
|
|
1080
|
-
function
|
|
1096
|
+
function Gn(e, t) {
|
|
1081
1097
|
var n = function(r) {
|
|
1082
1098
|
var o = le(e) ? this : je(e), s = arguments[0];
|
|
1083
1099
|
if (arguments.length === 1 && typeof s == "number")
|
|
1084
|
-
isNaN(zt(s)) &&
|
|
1100
|
+
isNaN(zt(s)) && v(e, e.ob, "Invalid array length: " + s), o.h.length = s;
|
|
1085
1101
|
else {
|
|
1086
1102
|
for (s = 0; s < arguments.length; s++)
|
|
1087
1103
|
o.h[s] = arguments[s];
|
|
@@ -1097,7 +1113,7 @@ function Wn(e, t) {
|
|
|
1097
1113
|
writable: !0
|
|
1098
1114
|
}), 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(',');", "}", ");", "})();", "");
|
|
1099
1115
|
}
|
|
1100
|
-
function
|
|
1116
|
+
function $n(e, t) {
|
|
1101
1117
|
var n = function(r) {
|
|
1102
1118
|
return r = arguments.length ? de.String(r) : "", le(e) ? (this.data = r, this) : r;
|
|
1103
1119
|
};
|
|
@@ -1108,7 +1124,7 @@ function Gn(e, t) {
|
|
|
1108
1124
|
try {
|
|
1109
1125
|
return String(this).localeCompare(r, o, s);
|
|
1110
1126
|
} catch (a) {
|
|
1111
|
-
|
|
1127
|
+
v(e, e.D, "localeCompare: " + a.message);
|
|
1112
1128
|
}
|
|
1113
1129
|
}, W(e, e.J, "localeCompare", n), n = function(r, o, s) {
|
|
1114
1130
|
var a = String(this);
|
|
@@ -1121,8 +1137,8 @@ function Gn(e, t) {
|
|
|
1121
1137
|
}, r, s), r !== Ce && s(ie(e, r));
|
|
1122
1138
|
else {
|
|
1123
1139
|
var f = e.ha(), d = Ge(e, r, f, s);
|
|
1124
|
-
f.onmessage = function(
|
|
1125
|
-
clearTimeout(d), s(ie(e,
|
|
1140
|
+
f.onmessage = function(w) {
|
|
1141
|
+
clearTimeout(d), s(ie(e, w.data));
|
|
1126
1142
|
}, f.postMessage(["split", a, r, o]);
|
|
1127
1143
|
}
|
|
1128
1144
|
return;
|
|
@@ -1171,8 +1187,8 @@ function Gn(e, t) {
|
|
|
1171
1187
|
}, r, s), r !== Ce && s(r);
|
|
1172
1188
|
else {
|
|
1173
1189
|
var f = e.ha(), d = Ge(e, r, f, s);
|
|
1174
|
-
f.onmessage = function(
|
|
1175
|
-
clearTimeout(d), s(
|
|
1190
|
+
f.onmessage = function(w) {
|
|
1191
|
+
clearTimeout(d), s(w.data);
|
|
1176
1192
|
}, f.postMessage(["replace", a, r, o]);
|
|
1177
1193
|
}
|
|
1178
1194
|
return;
|
|
@@ -1180,12 +1196,12 @@ function Gn(e, t) {
|
|
|
1180
1196
|
s(a.replace(r, o));
|
|
1181
1197
|
}, $e(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;", "};", "})();", "");
|
|
1182
1198
|
}
|
|
1183
|
-
function
|
|
1199
|
+
function Vn(e, t) {
|
|
1184
1200
|
e.mb = e.i(function(n) {
|
|
1185
1201
|
return n = de.Boolean(n), le(e) ? (this.data = n, this) : n;
|
|
1186
1202
|
}, !0), e.g(t, "Boolean", e.mb, y);
|
|
1187
1203
|
}
|
|
1188
|
-
function
|
|
1204
|
+
function Hn(e, t) {
|
|
1189
1205
|
var n = function(r) {
|
|
1190
1206
|
return r = arguments.length ? de.Number(r) : 0, le(e) ? (this.data = r, this) : r;
|
|
1191
1207
|
};
|
|
@@ -1195,36 +1211,36 @@ function Vn(e, t) {
|
|
|
1195
1211
|
try {
|
|
1196
1212
|
return Number(this).toExponential(r);
|
|
1197
1213
|
} catch (o) {
|
|
1198
|
-
|
|
1214
|
+
v(e, e.D, o.message);
|
|
1199
1215
|
}
|
|
1200
1216
|
}, W(e, e.aa, "toExponential", n), n = function(r) {
|
|
1201
1217
|
try {
|
|
1202
1218
|
return Number(this).toFixed(r);
|
|
1203
1219
|
} catch (o) {
|
|
1204
|
-
|
|
1220
|
+
v(e, e.D, o.message);
|
|
1205
1221
|
}
|
|
1206
1222
|
}, W(e, e.aa, "toFixed", n), n = function(r) {
|
|
1207
1223
|
try {
|
|
1208
1224
|
return Number(this).toPrecision(r);
|
|
1209
1225
|
} catch (o) {
|
|
1210
|
-
|
|
1226
|
+
v(e, e.D, o.message);
|
|
1211
1227
|
}
|
|
1212
1228
|
}, W(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1213
1229
|
try {
|
|
1214
1230
|
return Number(this).toString(r);
|
|
1215
1231
|
} catch (o) {
|
|
1216
|
-
|
|
1232
|
+
v(e, e.D, o.message);
|
|
1217
1233
|
}
|
|
1218
1234
|
}, W(e, e.aa, "toString", n), n = function(r, o) {
|
|
1219
1235
|
r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
|
|
1220
1236
|
try {
|
|
1221
1237
|
return Number(this).toLocaleString(r, o);
|
|
1222
1238
|
} catch (s) {
|
|
1223
|
-
|
|
1239
|
+
v(e, e.D, "toLocaleString: " + s.message);
|
|
1224
1240
|
}
|
|
1225
1241
|
}, W(e, e.aa, "toLocaleString", n);
|
|
1226
1242
|
}
|
|
1227
|
-
function
|
|
1243
|
+
function Xn(e, t) {
|
|
1228
1244
|
var n = function(o, s) {
|
|
1229
1245
|
if (!le(e))
|
|
1230
1246
|
return de.Date();
|
|
@@ -1236,14 +1252,14 @@ function Hn(e, t) {
|
|
|
1236
1252
|
n = function(o) {
|
|
1237
1253
|
return function(s) {
|
|
1238
1254
|
var a = this.data;
|
|
1239
|
-
a instanceof Date ||
|
|
1255
|
+
a instanceof Date || v(e, e.j, o + " not called on a Date");
|
|
1240
1256
|
for (var f = [], d = 0; d < arguments.length; d++)
|
|
1241
1257
|
f[d] = e.R(arguments[d]);
|
|
1242
1258
|
return a[o].apply(a, f);
|
|
1243
1259
|
};
|
|
1244
1260
|
}(t[r]), W(e, e.$, t[r], n);
|
|
1245
1261
|
}
|
|
1246
|
-
function
|
|
1262
|
+
function Kn(e, t) {
|
|
1247
1263
|
var n = function(r, o) {
|
|
1248
1264
|
if (le(e))
|
|
1249
1265
|
var s = this;
|
|
@@ -1252,19 +1268,19 @@ function Xn(e, t) {
|
|
|
1252
1268
|
return r;
|
|
1253
1269
|
s = e.s(e.Ma);
|
|
1254
1270
|
}
|
|
1255
|
-
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) ||
|
|
1271
|
+
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || v(e, e.T, "Invalid regexp flag: " + o);
|
|
1256
1272
|
try {
|
|
1257
1273
|
var a = new de.RegExp(r, o);
|
|
1258
1274
|
} catch (f) {
|
|
1259
|
-
|
|
1275
|
+
v(e, e.T, f.message);
|
|
1260
1276
|
}
|
|
1261
1277
|
return Yt(e, s, a), s;
|
|
1262
1278
|
};
|
|
1263
|
-
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0,
|
|
1264
|
-
function s(
|
|
1265
|
-
if (
|
|
1266
|
-
var
|
|
1267
|
-
return e.g(
|
|
1279
|
+
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, J), e.g(e.I.h.prototype, "ignoreCase", void 0, J), e.g(e.I.h.prototype, "multiline", void 0, J), e.g(e.I.h.prototype, "source", "(?:)", J), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1280
|
+
function s(A) {
|
|
1281
|
+
if (A) {
|
|
1282
|
+
var T = ie(e, A);
|
|
1283
|
+
return e.g(T, "index", A.index), e.g(T, "input", A.input), T;
|
|
1268
1284
|
}
|
|
1269
1285
|
return null;
|
|
1270
1286
|
}
|
|
@@ -1276,9 +1292,9 @@ function Xn(e, t) {
|
|
|
1276
1292
|
regexp: a
|
|
1277
1293
|
}, a, o), r !== Ce && (e.g(this, "lastIndex", a.lastIndex), o(s(r)));
|
|
1278
1294
|
else {
|
|
1279
|
-
var f = e.ha(), d = Ge(e, a, f, o),
|
|
1280
|
-
f.onmessage = function(
|
|
1281
|
-
clearTimeout(d), e.g(
|
|
1295
|
+
var f = e.ha(), d = Ge(e, a, f, o), w = this;
|
|
1296
|
+
f.onmessage = function(A) {
|
|
1297
|
+
clearTimeout(d), e.g(w, "lastIndex", A.data[1]), o(s(A.data[0]));
|
|
1282
1298
|
}, f.postMessage(["exec", a, a.lastIndex, r]);
|
|
1283
1299
|
}
|
|
1284
1300
|
else
|
|
@@ -1298,32 +1314,32 @@ function Jn(e, t) {
|
|
|
1298
1314
|
return $t(e, o, r), o;
|
|
1299
1315
|
}, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1300
1316
|
}
|
|
1301
|
-
function
|
|
1317
|
+
function zn(e, t) {
|
|
1302
1318
|
var n = e.s(e.M);
|
|
1303
1319
|
e.g(t, "Math", n, y);
|
|
1304
1320
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1305
1321
|
for (t = 0; t < r.length; t++)
|
|
1306
|
-
e.g(n, r[t], Math[r[t]],
|
|
1322
|
+
e.g(n, r[t], Math[r[t]], J);
|
|
1307
1323
|
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++)
|
|
1308
1324
|
e.g(n, r[t], e.i(Math[r[t]], !1), y);
|
|
1309
1325
|
}
|
|
1310
|
-
function
|
|
1326
|
+
function Yn(e, t) {
|
|
1311
1327
|
var n = e.s(e.M);
|
|
1312
1328
|
e.g(t, "JSON", n, y), t = function(r) {
|
|
1313
1329
|
try {
|
|
1314
1330
|
var o = JSON.parse(String(r));
|
|
1315
1331
|
} catch (s) {
|
|
1316
|
-
|
|
1332
|
+
v(e, e.T, s.message);
|
|
1317
1333
|
}
|
|
1318
1334
|
return e.Ia(o);
|
|
1319
1335
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, s) {
|
|
1320
|
-
o && o.H === "Function" ?
|
|
1336
|
+
o && o.H === "Function" ? v(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = Yr(e, o), o = o.filter(function(f) {
|
|
1321
1337
|
return typeof f == "string" || typeof f == "number";
|
|
1322
1338
|
})) : o = null, typeof s != "string" && typeof s != "number" && (s = void 0), r = e.R(r);
|
|
1323
1339
|
try {
|
|
1324
1340
|
var a = JSON.stringify(r, o, s);
|
|
1325
1341
|
} catch (f) {
|
|
1326
|
-
|
|
1342
|
+
v(e, e.j, f.message);
|
|
1327
1343
|
}
|
|
1328
1344
|
return a;
|
|
1329
1345
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
@@ -1341,7 +1357,7 @@ function $(e, t, n) {
|
|
|
1341
1357
|
return !1;
|
|
1342
1358
|
}
|
|
1343
1359
|
function Yt(e, t, n) {
|
|
1344
|
-
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source,
|
|
1360
|
+
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source, J), e.g(t, "global", n.global, J), e.g(t, "ignoreCase", n.ignoreCase, J), e.g(t, "multiline", n.multiline, J);
|
|
1345
1361
|
}
|
|
1346
1362
|
function $t(e, t, n) {
|
|
1347
1363
|
n && e.g(t, "message", String(n), y), n = [];
|
|
@@ -1362,7 +1378,7 @@ function $t(e, t, n) {
|
|
|
1362
1378
|
}
|
|
1363
1379
|
b.ha = function() {
|
|
1364
1380
|
var e = this.ha.Mb;
|
|
1365
|
-
return e || (e = new Blob([
|
|
1381
|
+
return e || (e = new Blob([Un.join(`
|
|
1366
1382
|
`)], {
|
|
1367
1383
|
type: "application/javascript"
|
|
1368
1384
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1374,7 +1390,7 @@ function Fe(e, t, n, r, o) {
|
|
|
1374
1390
|
try {
|
|
1375
1391
|
return se.runInNewContext(t, n, s);
|
|
1376
1392
|
} catch {
|
|
1377
|
-
o(null),
|
|
1393
|
+
o(null), v(e, e.D, "RegExp Timeout: " + r);
|
|
1378
1394
|
}
|
|
1379
1395
|
return Ce;
|
|
1380
1396
|
}
|
|
@@ -1395,13 +1411,13 @@ function We(e, t, n) {
|
|
|
1395
1411
|
r = !!se;
|
|
1396
1412
|
} else
|
|
1397
1413
|
r = !1;
|
|
1398
|
-
r || (n(null),
|
|
1414
|
+
r || (n(null), v(e, e.D, "Regular expressions not supported: " + t));
|
|
1399
1415
|
}
|
|
1400
1416
|
function Ge(e, t, n, r) {
|
|
1401
1417
|
return setTimeout(function() {
|
|
1402
1418
|
n.terminate(), r(null);
|
|
1403
1419
|
try {
|
|
1404
|
-
|
|
1420
|
+
v(e, e.D, "RegExp Timeout: " + t);
|
|
1405
1421
|
} catch {
|
|
1406
1422
|
}
|
|
1407
1423
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
@@ -1412,7 +1428,7 @@ b.Aa = function(e) {
|
|
|
1412
1428
|
b.s = function(e) {
|
|
1413
1429
|
if (typeof e != "object")
|
|
1414
1430
|
throw Error("Non object prototype");
|
|
1415
|
-
return e = new
|
|
1431
|
+
return e = new I(e), $(this, e, this.D) && (e.H = "Error"), e;
|
|
1416
1432
|
};
|
|
1417
1433
|
function je(e) {
|
|
1418
1434
|
var t = e.s(e.La);
|
|
@@ -1424,21 +1440,21 @@ function je(e) {
|
|
|
1424
1440
|
}
|
|
1425
1441
|
function Zt(e, t, n) {
|
|
1426
1442
|
var r = e.s(e.Z);
|
|
1427
|
-
return n ? (n = e.s(e.M), e.g(r, "prototype", n, y), e.g(n, "constructor", r, y)) : r.Ab = !0, e.g(r, "length", t,
|
|
1443
|
+
return n ? (n = e.s(e.M), e.g(r, "prototype", n, y), e.g(n, "constructor", r, y)) : r.Ab = !0, e.g(r, "length", t, J), r.H = "Function", r;
|
|
1428
1444
|
}
|
|
1429
1445
|
function Qt(e, t, n, r) {
|
|
1430
1446
|
var o = Zt(e, t.oa.length, !0);
|
|
1431
|
-
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "",
|
|
1447
|
+
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", J), o;
|
|
1432
1448
|
}
|
|
1433
1449
|
b.i = function(e, t) {
|
|
1434
|
-
return t = Zt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1450
|
+
return t = Zt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, J), t;
|
|
1435
1451
|
};
|
|
1436
1452
|
b.ub = function(e) {
|
|
1437
1453
|
var t = Zt(this, e.length, !0);
|
|
1438
|
-
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1454
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, J), t;
|
|
1439
1455
|
};
|
|
1440
1456
|
b.Ia = function(e) {
|
|
1441
|
-
if (e instanceof
|
|
1457
|
+
if (e instanceof I)
|
|
1442
1458
|
throw Error("Object is already pseudo");
|
|
1443
1459
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1444
1460
|
return e;
|
|
@@ -1471,7 +1487,7 @@ b.Ia = function(e) {
|
|
|
1471
1487
|
b.R = function(e, t) {
|
|
1472
1488
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1473
1489
|
return e;
|
|
1474
|
-
if (!(e instanceof
|
|
1490
|
+
if (!(e instanceof I))
|
|
1475
1491
|
throw Error("Object is not pseudo");
|
|
1476
1492
|
if ($(this, e, this.I))
|
|
1477
1493
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
@@ -1523,7 +1539,7 @@ function ae(e, t) {
|
|
|
1523
1539
|
b.G = function(e, t) {
|
|
1524
1540
|
if (this.P)
|
|
1525
1541
|
throw Error("Getter not supported in that context");
|
|
1526
|
-
if (t = String(t), e != null ||
|
|
1542
|
+
if (t = String(t), e != null || v(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof I))
|
|
1527
1543
|
throw TypeError("Expecting native value or pseudo object");
|
|
1528
1544
|
if (t === "length") {
|
|
1529
1545
|
if ($(this, e, this.J))
|
|
@@ -1539,7 +1555,7 @@ b.G = function(e, t) {
|
|
|
1539
1555
|
while (e = ae(this, e));
|
|
1540
1556
|
};
|
|
1541
1557
|
function ct(e, t, n) {
|
|
1542
|
-
if (!(t instanceof
|
|
1558
|
+
if (!(t instanceof I))
|
|
1543
1559
|
throw TypeError("Primitive data type has no properties");
|
|
1544
1560
|
if (n = String(n), n === "length" && $(e, t, e.J))
|
|
1545
1561
|
return !0;
|
|
@@ -1557,15 +1573,15 @@ function ct(e, t, n) {
|
|
|
1557
1573
|
b.g = function(e, t, n, r) {
|
|
1558
1574
|
if (this.Ka)
|
|
1559
1575
|
throw Error("Setter not supported in that context");
|
|
1560
|
-
if (t = String(t), e != null ||
|
|
1576
|
+
if (t = String(t), e != null || v(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof I))
|
|
1561
1577
|
throw TypeError("Expecting native value or pseudo object");
|
|
1562
|
-
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) &&
|
|
1578
|
+
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && v(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1563
1579
|
var o = !this.o || qt(this).S;
|
|
1564
|
-
if (e instanceof
|
|
1580
|
+
if (e instanceof I) {
|
|
1565
1581
|
if ($(this, e, this.J)) {
|
|
1566
1582
|
var s = He(t);
|
|
1567
1583
|
if (t === "length" || !isNaN(s) && s < String(e).length) {
|
|
1568
|
-
o &&
|
|
1584
|
+
o && v(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1569
1585
|
return;
|
|
1570
1586
|
}
|
|
1571
1587
|
}
|
|
@@ -1576,7 +1592,7 @@ b.g = function(e, t, n, r) {
|
|
|
1576
1592
|
return;
|
|
1577
1593
|
n = r.value;
|
|
1578
1594
|
}
|
|
1579
|
-
if (n = zt(n), isNaN(n) &&
|
|
1595
|
+
if (n = zt(n), isNaN(n) && v(this, this.ob, "Invalid array length"), n < s)
|
|
1580
1596
|
for (a in e.h) {
|
|
1581
1597
|
var a = He(a);
|
|
1582
1598
|
!isNaN(a) && n <= a && delete e.h[a];
|
|
@@ -1585,15 +1601,15 @@ b.g = function(e, t, n, r) {
|
|
|
1585
1601
|
isNaN(a = He(t)) || (e.h.length = Math.max(s, a + 1));
|
|
1586
1602
|
if (!e.preventExtensions || t in e.h)
|
|
1587
1603
|
if (r) {
|
|
1588
|
-
o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !==
|
|
1604
|
+
o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== Ke && (o.value = n, delete e.V[t], delete e.Y[t]);
|
|
1589
1605
|
try {
|
|
1590
1606
|
Object.defineProperty(e.h, t, o);
|
|
1591
1607
|
} catch {
|
|
1592
|
-
|
|
1608
|
+
v(this, this.j, "Cannot redefine property: " + t);
|
|
1593
1609
|
}
|
|
1594
1610
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1595
1611
|
} else {
|
|
1596
|
-
if (n ===
|
|
1612
|
+
if (n === Ke)
|
|
1597
1613
|
throw ReferenceError("Value not specified");
|
|
1598
1614
|
for (r = e; !(t in r.h); )
|
|
1599
1615
|
if (r = ae(this, r), !r) {
|
|
@@ -1603,18 +1619,18 @@ b.g = function(e, t, n, r) {
|
|
|
1603
1619
|
if (r.Y && r.Y[t])
|
|
1604
1620
|
return this.Ka = !0, r.Y[t];
|
|
1605
1621
|
if (r.V && r.V[t])
|
|
1606
|
-
o &&
|
|
1622
|
+
o && v(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1607
1623
|
else
|
|
1608
1624
|
try {
|
|
1609
1625
|
e.h[t] = n;
|
|
1610
1626
|
} catch {
|
|
1611
|
-
o &&
|
|
1627
|
+
o && v(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1612
1628
|
}
|
|
1613
1629
|
}
|
|
1614
1630
|
else
|
|
1615
|
-
o &&
|
|
1631
|
+
o && v(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1616
1632
|
} else
|
|
1617
|
-
o &&
|
|
1633
|
+
o && v(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1618
1634
|
};
|
|
1619
1635
|
b.g.ac = function() {
|
|
1620
1636
|
throw Error("Placeholder getter");
|
|
@@ -1641,7 +1657,7 @@ function Vt(e, t, n) {
|
|
|
1641
1657
|
var o = t.body && t.body[0];
|
|
1642
1658
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1643
1659
|
}
|
|
1644
|
-
return o = e.s(null), r = new qr(n, r, o), n ||
|
|
1660
|
+
return o = e.s(null), r = new qr(n, r, o), n || Ln(e, r.object), Je(e, t, r), r;
|
|
1645
1661
|
}
|
|
1646
1662
|
function er(e, t, n) {
|
|
1647
1663
|
if (!t)
|
|
@@ -1656,7 +1672,7 @@ function tr(e, t) {
|
|
|
1656
1672
|
}
|
|
1657
1673
|
if (n === e.N && ct(e, n.object, t))
|
|
1658
1674
|
return e.G(n.object, t);
|
|
1659
|
-
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" ||
|
|
1675
|
+
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || v(e, e.pb, t + " is not defined");
|
|
1660
1676
|
}
|
|
1661
1677
|
function Zr(e, t, n) {
|
|
1662
1678
|
for (var r = qt(e), o = r.S; r && r !== e.N; ) {
|
|
@@ -1664,7 +1680,7 @@ function Zr(e, t, n) {
|
|
|
1664
1680
|
try {
|
|
1665
1681
|
r.object.h[t] = n;
|
|
1666
1682
|
} catch {
|
|
1667
|
-
o &&
|
|
1683
|
+
o && v(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1668
1684
|
}
|
|
1669
1685
|
return;
|
|
1670
1686
|
}
|
|
@@ -1672,9 +1688,9 @@ function Zr(e, t, n) {
|
|
|
1672
1688
|
}
|
|
1673
1689
|
if (r === e.N && (!o || ct(e, r.object, t)))
|
|
1674
1690
|
return e.g(r.object, t, n);
|
|
1675
|
-
|
|
1691
|
+
v(e, e.pb, t + " is not defined");
|
|
1676
1692
|
}
|
|
1677
|
-
function
|
|
1693
|
+
function Je(e, t, n) {
|
|
1678
1694
|
if (t.jb)
|
|
1679
1695
|
var r = t.jb;
|
|
1680
1696
|
else {
|
|
@@ -1707,12 +1723,12 @@ function Ke(e, t, n) {
|
|
|
1707
1723
|
if (Array.isArray(f)) {
|
|
1708
1724
|
for (o = 0; o < f.length; o++)
|
|
1709
1725
|
if (f[o] && f[o].constructor === s) {
|
|
1710
|
-
var d =
|
|
1726
|
+
var d = Je(e, f[o], n);
|
|
1711
1727
|
for (a in d)
|
|
1712
1728
|
r[a] = d[a];
|
|
1713
1729
|
}
|
|
1714
1730
|
} else if (f.constructor === s)
|
|
1715
|
-
for (a in d =
|
|
1731
|
+
for (a in d = Je(e, f, n), d)
|
|
1716
1732
|
r[a] = d[a];
|
|
1717
1733
|
}
|
|
1718
1734
|
}
|
|
@@ -1732,8 +1748,8 @@ function rr(e, t) {
|
|
|
1732
1748
|
function nr(e, t, n) {
|
|
1733
1749
|
return t[0] === Ae ? Zr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1734
1750
|
}
|
|
1735
|
-
function
|
|
1736
|
-
throw e.N ? (n !== void 0 && t instanceof
|
|
1751
|
+
function v(e, t, n) {
|
|
1752
|
+
throw e.N ? (n !== void 0 && t instanceof I && (t = e.Aa(t), $t(e, t, n)), ze(e, 4, t), zr) : n === void 0 ? t : n;
|
|
1737
1753
|
}
|
|
1738
1754
|
function ze(e, t, n, r) {
|
|
1739
1755
|
if (t === 0)
|
|
@@ -1780,34 +1796,34 @@ function ze(e, t, n, r) {
|
|
|
1780
1796
|
URIError
|
|
1781
1797
|
}, r = String(e.G(n, "name")), o = e.G(n, "message").valueOf(), t = (t[r] || Error)(o), t.stack = String(e.G(n, "stack"))) : t = String(n), e.value = t, t;
|
|
1782
1798
|
}
|
|
1783
|
-
function
|
|
1799
|
+
function K(e, t) {
|
|
1784
1800
|
switch (t.type) {
|
|
1785
1801
|
case "ArrayExpression":
|
|
1786
1802
|
return "[...]";
|
|
1787
1803
|
case "BinaryExpression":
|
|
1788
1804
|
case "LogicalExpression":
|
|
1789
|
-
return
|
|
1805
|
+
return K(e, t.left) + " " + t.operator + " " + K(e, t.right);
|
|
1790
1806
|
case "CallExpression":
|
|
1791
|
-
return
|
|
1807
|
+
return K(e, t.callee) + "(...)";
|
|
1792
1808
|
case "ConditionalExpression":
|
|
1793
|
-
return
|
|
1809
|
+
return K(e, t.test) + " ? " + K(e, t.da) + " : " + K(e, t.alternate);
|
|
1794
1810
|
case "Identifier":
|
|
1795
1811
|
return t.name;
|
|
1796
1812
|
case "Literal":
|
|
1797
1813
|
return t.raw;
|
|
1798
1814
|
case "MemberExpression":
|
|
1799
|
-
var n =
|
|
1800
|
-
return e =
|
|
1815
|
+
var n = K(e, t.object);
|
|
1816
|
+
return e = K(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
|
|
1801
1817
|
case "NewExpression":
|
|
1802
|
-
return "new " +
|
|
1818
|
+
return "new " + K(e, t.callee) + "(...)";
|
|
1803
1819
|
case "ObjectExpression":
|
|
1804
1820
|
return "{...}";
|
|
1805
1821
|
case "ThisExpression":
|
|
1806
1822
|
return "this";
|
|
1807
1823
|
case "UnaryExpression":
|
|
1808
|
-
return t.operator + " " +
|
|
1824
|
+
return t.operator + " " + K(e, t.K);
|
|
1809
1825
|
case "UpdateExpression":
|
|
1810
|
-
return n =
|
|
1826
|
+
return n = K(e, t.K), t.prefix ? t.operator + n : n + t.operator;
|
|
1811
1827
|
}
|
|
1812
1828
|
return "???";
|
|
1813
1829
|
}
|
|
@@ -1815,18 +1831,18 @@ function Fr(e, t, n) {
|
|
|
1815
1831
|
var r = e.o[e.o.length - 1], o = Array.from(n), s = o.shift();
|
|
1816
1832
|
n = Math.max(Number(o.shift() || 0), 0);
|
|
1817
1833
|
var a = e.ya();
|
|
1818
|
-
if (s instanceof
|
|
1834
|
+
if (s instanceof I && s.H === "Function") {
|
|
1819
1835
|
var f = s;
|
|
1820
1836
|
a.type = "CallExpression", r = r.scope;
|
|
1821
1837
|
} else {
|
|
1822
1838
|
try {
|
|
1823
1839
|
var d = Oe(String(s), "taskCode" + e.ic++);
|
|
1824
|
-
} catch (
|
|
1825
|
-
|
|
1840
|
+
} catch (w) {
|
|
1841
|
+
v(e, e.T, "Invalid code: " + w.message);
|
|
1826
1842
|
}
|
|
1827
1843
|
a.type = "EvalProgram_", a.body = d.body, r = r.node.arguments[0], ut(a, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1828
1844
|
}
|
|
1829
|
-
return t = new
|
|
1845
|
+
return t = new Zn(f, o, r, a, t ? n : -1), Qr(e, t, n), t.Db;
|
|
1830
1846
|
}
|
|
1831
1847
|
function Qr(e, t, n) {
|
|
1832
1848
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
@@ -1855,7 +1871,7 @@ function or(e, t, n, r) {
|
|
|
1855
1871
|
return o.type = "CallExpression", e = new m(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1856
1872
|
}
|
|
1857
1873
|
function _t(e, t) {
|
|
1858
|
-
return t == null ? e.Na : t instanceof
|
|
1874
|
+
return t == null ? e.Na : t instanceof I ? t : (e = e.s(ae(e, t)), e.data = t, e);
|
|
1859
1875
|
}
|
|
1860
1876
|
b.Xb = function() {
|
|
1861
1877
|
return this.N;
|
|
@@ -1872,17 +1888,17 @@ function m(e, t) {
|
|
|
1872
1888
|
function qr(e, t, n) {
|
|
1873
1889
|
this.Va = e, this.S = t, this.object = n;
|
|
1874
1890
|
}
|
|
1875
|
-
function
|
|
1891
|
+
function I(e) {
|
|
1876
1892
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1877
1893
|
}
|
|
1878
|
-
b =
|
|
1894
|
+
b = I.prototype;
|
|
1879
1895
|
b.xa = null;
|
|
1880
1896
|
b.H = "Object";
|
|
1881
1897
|
b.data = null;
|
|
1882
1898
|
b.toString = function() {
|
|
1883
1899
|
if (!Ve)
|
|
1884
1900
|
return "[object Interpreter.Object]";
|
|
1885
|
-
if (!(this instanceof
|
|
1901
|
+
if (!(this instanceof I))
|
|
1886
1902
|
return String(this);
|
|
1887
1903
|
if (this.H === "Array") {
|
|
1888
1904
|
var e = Lr;
|
|
@@ -1892,7 +1908,7 @@ b.toString = function() {
|
|
|
1892
1908
|
1024 < n && (n = 1e3, r = !0);
|
|
1893
1909
|
for (var o = 0; o < n; o++) {
|
|
1894
1910
|
var s = this.h[o];
|
|
1895
|
-
t[o] = s instanceof
|
|
1911
|
+
t[o] = s instanceof I && e.indexOf(s) !== -1 ? "..." : s;
|
|
1896
1912
|
}
|
|
1897
1913
|
r && t.push("...");
|
|
1898
1914
|
} finally {
|
|
@@ -1930,10 +1946,10 @@ b.toString = function() {
|
|
|
1930
1946
|
b.valueOf = function() {
|
|
1931
1947
|
return !Ve || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1932
1948
|
};
|
|
1933
|
-
function
|
|
1934
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++
|
|
1949
|
+
function Zn(e, t, n, r, o) {
|
|
1950
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Qn, this.time = 0;
|
|
1935
1951
|
}
|
|
1936
|
-
var
|
|
1952
|
+
var Qn = 0;
|
|
1937
1953
|
h.prototype.stepArrayExpression = function(e, t, n) {
|
|
1938
1954
|
n = n.elements;
|
|
1939
1955
|
var r = t.A || 0;
|
|
@@ -2064,10 +2080,10 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2064
2080
|
n = r >>> t;
|
|
2065
2081
|
break;
|
|
2066
2082
|
case "in":
|
|
2067
|
-
t instanceof
|
|
2083
|
+
t instanceof I || v(this, this.j, "'in' expects an object, not '" + t + "'"), n = ct(this, t, r);
|
|
2068
2084
|
break;
|
|
2069
2085
|
case "instanceof":
|
|
2070
|
-
$(this, t, this.O) ||
|
|
2086
|
+
$(this, t, this.O) || v(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof I ? $(this, r, t) : !1;
|
|
2071
2087
|
break;
|
|
2072
2088
|
default:
|
|
2073
2089
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2104,7 +2120,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2104
2120
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2105
2121
|
return new m(n.arguments[t.A++], t.scope);
|
|
2106
2122
|
if (n.type === "NewExpression") {
|
|
2107
|
-
if (o instanceof
|
|
2123
|
+
if (o instanceof I && !o.Ab || v(this, this.j, K(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2108
2124
|
t.B = je(this);
|
|
2109
2125
|
else {
|
|
2110
2126
|
var s = o.h.prototype;
|
|
@@ -2117,12 +2133,12 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2117
2133
|
if (t.eb)
|
|
2118
2134
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2119
2135
|
else {
|
|
2120
|
-
if (t.eb = !0, o instanceof
|
|
2136
|
+
if (t.eb = !0, o instanceof I || v(this, this.j, K(this, n.callee) + " is not a function"), e = o.node) {
|
|
2121
2137
|
for (n = Vt(this, e.body, o.Va), r = je(this), o = 0; o < t.F.length; o++)
|
|
2122
2138
|
this.g(r, o, t.F[o]);
|
|
2123
2139
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2124
2140
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2125
|
-
return n.S || (t.B = _t(this, t.B)), this.g(n.object, "this", t.B,
|
|
2141
|
+
return n.S || (t.B = _t(this, t.B)), this.g(n.object, "this", t.B, Jt), t.value = void 0, new m(e.body, n);
|
|
2126
2142
|
}
|
|
2127
2143
|
if (o.eval)
|
|
2128
2144
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2131,9 +2147,9 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2131
2147
|
try {
|
|
2132
2148
|
r = Oe(String(o), "eval" + this.Hb++);
|
|
2133
2149
|
} catch (f) {
|
|
2134
|
-
|
|
2150
|
+
v(this, this.T, "Invalid code: " + f.message);
|
|
2135
2151
|
}
|
|
2136
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, ut(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Vt(this, r, n) :
|
|
2152
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, ut(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Vt(this, r, n) : Je(this, r, n), this.value = void 0, new m(o, n);
|
|
2137
2153
|
}
|
|
2138
2154
|
else if (o.Ta)
|
|
2139
2155
|
t.scope.S || (t.B = _t(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
@@ -2143,7 +2159,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2143
2159
|
t.value = f, a.za = !1;
|
|
2144
2160
|
}), this.za = !0, t.scope.S || (t.B = _t(this, t.B)), o.Za.apply(t.B, r);
|
|
2145
2161
|
} else
|
|
2146
|
-
|
|
2162
|
+
v(this, this.j, K(this, n.callee) + " is not callable");
|
|
2147
2163
|
}
|
|
2148
2164
|
};
|
|
2149
2165
|
h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
@@ -2189,13 +2205,13 @@ h.prototype.stepExpressionStatement = function(e, t, n) {
|
|
|
2189
2205
|
};
|
|
2190
2206
|
h.prototype.stepForInStatement = function(e, t, n) {
|
|
2191
2207
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2192
|
-
return t.scope.S &&
|
|
2208
|
+
return t.scope.S && v(this, this.T, "for-in loop variable declaration may not have an initializer"), new m(n.left, t.scope);
|
|
2193
2209
|
if (!t.Ca)
|
|
2194
2210
|
return t.Ca = !0, t.pa || (t.pa = t.value), new m(n.right, t.scope);
|
|
2195
2211
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2196
2212
|
e:
|
|
2197
2213
|
for (; ; ) {
|
|
2198
|
-
if (t.u instanceof
|
|
2214
|
+
if (t.u instanceof I)
|
|
2199
2215
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2200
2216
|
var r = t.wa.shift();
|
|
2201
2217
|
if (r === void 0)
|
|
@@ -2252,7 +2268,7 @@ h.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2252
2268
|
e.pop();
|
|
2253
2269
|
};
|
|
2254
2270
|
h.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2255
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = er(this, e)), t.value = Qt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value,
|
|
2271
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = er(this, e)), t.value = Qt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Jt);
|
|
2256
2272
|
};
|
|
2257
2273
|
h.prototype.stepIdentifier = function(e, t, n) {
|
|
2258
2274
|
if (e.pop(), t.sa)
|
|
@@ -2319,7 +2335,7 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2319
2335
|
return t.Pa = s, new m(o.value, t.scope);
|
|
2320
2336
|
}
|
|
2321
2337
|
for (a in t.Ja)
|
|
2322
|
-
n = t.Ja[a], "get" in n || "set" in n ? this.g(t.u, a,
|
|
2338
|
+
n = t.Ja[a], "get" in n || "set" in n ? this.g(t.u, a, Ke, {
|
|
2323
2339
|
configurable: !0,
|
|
2324
2340
|
enumerable: !0,
|
|
2325
2341
|
get: n.get,
|
|
@@ -2375,7 +2391,7 @@ h.prototype.stepThisExpression = function(e) {
|
|
|
2375
2391
|
};
|
|
2376
2392
|
h.prototype.stepThrowStatement = function(e, t, n) {
|
|
2377
2393
|
if (t.ka)
|
|
2378
|
-
|
|
2394
|
+
v(this, t.value);
|
|
2379
2395
|
else
|
|
2380
2396
|
return t.ka = !0, new m(n.K, t.scope);
|
|
2381
2397
|
};
|
|
@@ -2413,7 +2429,7 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2413
2429
|
try {
|
|
2414
2430
|
delete o.h[r];
|
|
2415
2431
|
} catch {
|
|
2416
|
-
t.scope.S ?
|
|
2432
|
+
t.scope.S ? v(this, this.j, "Cannot delete property '" + r + "' of '" + o + "'") : n = !1;
|
|
2417
2433
|
}
|
|
2418
2434
|
}
|
|
2419
2435
|
r = n;
|
|
@@ -2480,8 +2496,8 @@ h.prototype.pseudoToNative = h.prototype.R;
|
|
|
2480
2496
|
h.prototype.getGlobalScope = h.prototype.Xb;
|
|
2481
2497
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2482
2498
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2483
|
-
h.VALUE_IN_DESCRIPTOR =
|
|
2484
|
-
function
|
|
2499
|
+
h.VALUE_IN_DESCRIPTOR = Ke;
|
|
2500
|
+
function qn() {
|
|
2485
2501
|
const e = h.prototype.getProperty, t = h.prototype.setProperty;
|
|
2486
2502
|
function n(a, f) {
|
|
2487
2503
|
if (a == null || !a._connected)
|
|
@@ -2489,9 +2505,9 @@ function Qn() {
|
|
|
2489
2505
|
const d = a._connected[f];
|
|
2490
2506
|
return Array.isArray(d) ? this.nativeToPseudo(d) : typeof d == "object" ? this.createConnectedObject(d) : d;
|
|
2491
2507
|
}
|
|
2492
|
-
function r(a, f, d,
|
|
2508
|
+
function r(a, f, d, w) {
|
|
2493
2509
|
if (a == null || !a._connected)
|
|
2494
|
-
return t.call(this, a, f, d,
|
|
2510
|
+
return t.call(this, a, f, d, w);
|
|
2495
2511
|
a._connected[f] = this.pseudoToNative(d);
|
|
2496
2512
|
}
|
|
2497
2513
|
const o = [], s = [];
|
|
@@ -2506,11 +2522,11 @@ function Qn() {
|
|
|
2506
2522
|
return f._connected = a, f;
|
|
2507
2523
|
};
|
|
2508
2524
|
}
|
|
2509
|
-
|
|
2510
|
-
const
|
|
2525
|
+
qn();
|
|
2526
|
+
const eo = (e) => e.replace(/^.*?function main\(\)/, `
|
|
2511
2527
|
var __awaiter = function (e, t, n, r) {return r()},
|
|
2512
2528
|
__generator = function (e, t) { return t() };
|
|
2513
|
-
function main()`).replace(/\?\./g, "."), Gr = (e) => e + "JSON",
|
|
2529
|
+
function main()`).replace(/\?\./g, "."), Gr = (e) => e + "JSON", to = ({
|
|
2514
2530
|
builder: e,
|
|
2515
2531
|
context: t,
|
|
2516
2532
|
event: n,
|
|
@@ -2519,27 +2535,27 @@ function main()`).replace(/\?\./g, "."), Gr = (e) => e + "JSON", eo = ({
|
|
|
2519
2535
|
rootSetState: s,
|
|
2520
2536
|
code: a
|
|
2521
2537
|
}) => {
|
|
2522
|
-
const f =
|
|
2538
|
+
const f = Kt({
|
|
2523
2539
|
rootState: r,
|
|
2524
2540
|
localState: o,
|
|
2525
2541
|
rootSetState: s
|
|
2526
|
-
}), d =
|
|
2542
|
+
}), d = Jr({
|
|
2527
2543
|
builder: e,
|
|
2528
2544
|
context: t,
|
|
2529
2545
|
event: n,
|
|
2530
2546
|
state: f
|
|
2531
|
-
}),
|
|
2547
|
+
}), w = d.map(([j]) => {
|
|
2532
2548
|
const R = Gr(j);
|
|
2533
2549
|
return j === "state" ? "" : `var ${j} = ${R} === undefined ? undefined : JSON.parse(${R});`;
|
|
2534
2550
|
}).join(`
|
|
2535
|
-
`),
|
|
2536
|
-
if (
|
|
2551
|
+
`), A = eo(a);
|
|
2552
|
+
if (A === "")
|
|
2537
2553
|
return;
|
|
2538
|
-
const
|
|
2554
|
+
const T = `
|
|
2539
2555
|
function theFunction() {
|
|
2540
|
-
${
|
|
2556
|
+
${w}
|
|
2541
2557
|
|
|
2542
|
-
${
|
|
2558
|
+
${A}
|
|
2543
2559
|
}
|
|
2544
2560
|
theFunction();
|
|
2545
2561
|
`, G = function(j, R) {
|
|
@@ -2551,26 +2567,26 @@ theFunction();
|
|
|
2551
2567
|
j.setProperty(R, Gr(_), ue);
|
|
2552
2568
|
}
|
|
2553
2569
|
});
|
|
2554
|
-
}, H = new h(
|
|
2570
|
+
}, H = new h(T, G);
|
|
2555
2571
|
return H.run(), H.pseudoToNative(H.value);
|
|
2556
2572
|
};
|
|
2557
|
-
function
|
|
2573
|
+
function ro() {
|
|
2558
2574
|
var e;
|
|
2559
2575
|
return typeof process != "undefined" && st((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2560
2576
|
}
|
|
2561
|
-
const
|
|
2577
|
+
const no = ({
|
|
2562
2578
|
shouldLogWarning: e
|
|
2563
2579
|
}) => {
|
|
2564
2580
|
var o;
|
|
2565
|
-
if (!
|
|
2581
|
+
if (!ro())
|
|
2566
2582
|
return !1;
|
|
2567
2583
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), r = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
2568
|
-
return t && n && !r ? (e &&
|
|
2569
|
-
},
|
|
2584
|
+
return t && n && !r ? (e && Kr.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;
|
|
2585
|
+
}, oo = (e) => Wt() || no({
|
|
2570
2586
|
shouldLogWarning: !0
|
|
2571
|
-
}) ?
|
|
2587
|
+
}) ? Dn(e) : to(e), io = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, so = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, ao = (e) => {
|
|
2572
2588
|
var t, n, r, o, s, a;
|
|
2573
|
-
return ((r = (n = (t =
|
|
2589
|
+
return ((r = (n = (t = io.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : r.slice(1)) || ((a = (s = (o = so.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : s.getPath) == null ? void 0 : a.slice(1));
|
|
2574
2590
|
};
|
|
2575
2591
|
function ft({
|
|
2576
2592
|
code: e,
|
|
@@ -2579,21 +2595,22 @@ function ft({
|
|
|
2579
2595
|
rootState: r,
|
|
2580
2596
|
rootSetState: o,
|
|
2581
2597
|
event: s,
|
|
2582
|
-
isExpression: a = !0
|
|
2598
|
+
isExpression: a = !0,
|
|
2599
|
+
trackingContext: f
|
|
2583
2600
|
}) {
|
|
2584
2601
|
if (e.trim() === "")
|
|
2585
2602
|
return;
|
|
2586
|
-
const
|
|
2587
|
-
if (
|
|
2588
|
-
return
|
|
2603
|
+
const d = ao(e.trim());
|
|
2604
|
+
if (d)
|
|
2605
|
+
return Rn({
|
|
2589
2606
|
...r,
|
|
2590
2607
|
...n
|
|
2591
|
-
},
|
|
2592
|
-
const
|
|
2593
|
-
code:
|
|
2608
|
+
}, d);
|
|
2609
|
+
const w = {
|
|
2610
|
+
code: Mn(e, {
|
|
2594
2611
|
isExpression: a
|
|
2595
2612
|
}),
|
|
2596
|
-
builder:
|
|
2613
|
+
builder: Bn(f),
|
|
2597
2614
|
context: t,
|
|
2598
2615
|
event: s,
|
|
2599
2616
|
rootSetState: o,
|
|
@@ -2601,23 +2618,23 @@ function ft({
|
|
|
2601
2618
|
localState: n
|
|
2602
2619
|
};
|
|
2603
2620
|
try {
|
|
2604
|
-
return
|
|
2605
|
-
} catch (
|
|
2606
|
-
|
|
2621
|
+
return oo(w);
|
|
2622
|
+
} catch (A) {
|
|
2623
|
+
Kr.error("Failed code evaluation: " + A.message, {
|
|
2607
2624
|
code: e
|
|
2608
2625
|
});
|
|
2609
2626
|
return;
|
|
2610
2627
|
}
|
|
2611
2628
|
}
|
|
2612
|
-
function
|
|
2629
|
+
function lo(e, t) {
|
|
2613
2630
|
var n;
|
|
2614
2631
|
return {
|
|
2615
2632
|
...(n = e.component) == null ? void 0 : n.options,
|
|
2616
2633
|
...e.options,
|
|
2617
|
-
...
|
|
2634
|
+
...uo(e, t)
|
|
2618
2635
|
};
|
|
2619
2636
|
}
|
|
2620
|
-
const
|
|
2637
|
+
const uo = (e, t) => {
|
|
2621
2638
|
var n, r;
|
|
2622
2639
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((r = e.component.options) != null && r.text) && typeof e.component.options.text == "string")
|
|
2623
2640
|
return {
|
|
@@ -2631,7 +2648,7 @@ const lo = (e, t) => {
|
|
|
2631
2648
|
}))
|
|
2632
2649
|
};
|
|
2633
2650
|
};
|
|
2634
|
-
function
|
|
2651
|
+
function co(e, ...t) {
|
|
2635
2652
|
const n = Object.assign({}, e);
|
|
2636
2653
|
for (const r of t)
|
|
2637
2654
|
delete n[r];
|
|
@@ -2657,7 +2674,7 @@ function at(e, t, n = null, r = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
|
2657
2674
|
function en(e) {
|
|
2658
2675
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
2659
2676
|
}
|
|
2660
|
-
function
|
|
2677
|
+
function fo(e) {
|
|
2661
2678
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
2662
2679
|
return !1;
|
|
2663
2680
|
let t = !1;
|
|
@@ -2668,17 +2685,17 @@ function co(e) {
|
|
|
2668
2685
|
}
|
|
2669
2686
|
}), t;
|
|
2670
2687
|
}
|
|
2671
|
-
function
|
|
2688
|
+
function po(e, t) {
|
|
2672
2689
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (at(e, (n, r) => {
|
|
2673
2690
|
var o;
|
|
2674
2691
|
en(n) && r((o = n[t]) != null ? o : void 0);
|
|
2675
2692
|
}), e);
|
|
2676
2693
|
}
|
|
2677
|
-
function
|
|
2694
|
+
function ho(e, t) {
|
|
2678
2695
|
var n, r;
|
|
2679
|
-
return (n = e.component) != null && n.options &&
|
|
2696
|
+
return (n = e.component) != null && n.options && fo((r = e.component) == null ? void 0 : r.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = po(e.component.options, t != null ? t : "Default")), e;
|
|
2680
2697
|
}
|
|
2681
|
-
const tn = (e) => JSON.parse(JSON.stringify(e)),
|
|
2698
|
+
const tn = (e) => JSON.parse(JSON.stringify(e)), go = (e, t, n) => {
|
|
2682
2699
|
if (Object(e) !== e)
|
|
2683
2700
|
return e;
|
|
2684
2701
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
@@ -2696,8 +2713,8 @@ function Ht(e) {
|
|
|
2696
2713
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Ht(e[n]));
|
|
2697
2714
|
return t;
|
|
2698
2715
|
}
|
|
2699
|
-
const
|
|
2700
|
-
if (
|
|
2716
|
+
const yo = ["svelte", "vue", "angular", "qwik", "solid"].includes(lt), mo = (e) => {
|
|
2717
|
+
if (yo) {
|
|
2701
2718
|
const t = tn(e);
|
|
2702
2719
|
return {
|
|
2703
2720
|
...t,
|
|
@@ -2709,7 +2726,7 @@ const go = ["svelte", "vue", "angular", "qwik", "solid"].includes(lt), yo = (e)
|
|
|
2709
2726
|
}
|
|
2710
2727
|
};
|
|
2711
2728
|
} else {
|
|
2712
|
-
const t = Ht(
|
|
2729
|
+
const t = Ht(co(e, "children", "meta"));
|
|
2713
2730
|
return {
|
|
2714
2731
|
...t,
|
|
2715
2732
|
properties: {
|
|
@@ -2722,7 +2739,7 @@ const go = ["svelte", "vue", "angular", "qwik", "solid"].includes(lt), yo = (e)
|
|
|
2722
2739
|
meta: e.meta
|
|
2723
2740
|
};
|
|
2724
2741
|
}
|
|
2725
|
-
},
|
|
2742
|
+
}, vo = ({
|
|
2726
2743
|
block: e,
|
|
2727
2744
|
context: t,
|
|
2728
2745
|
localState: n,
|
|
@@ -2731,7 +2748,7 @@ const go = ["svelte", "vue", "angular", "qwik", "solid"].includes(lt), yo = (e)
|
|
|
2731
2748
|
}) => {
|
|
2732
2749
|
if (!e.bindings)
|
|
2733
2750
|
return e;
|
|
2734
|
-
const s =
|
|
2751
|
+
const s = mo(e);
|
|
2735
2752
|
for (const a in e.bindings) {
|
|
2736
2753
|
const f = e.bindings[a], d = ft({
|
|
2737
2754
|
code: f,
|
|
@@ -2740,11 +2757,11 @@ const go = ["svelte", "vue", "angular", "qwik", "solid"].includes(lt), yo = (e)
|
|
|
2740
2757
|
rootSetState: o,
|
|
2741
2758
|
context: t
|
|
2742
2759
|
});
|
|
2743
|
-
|
|
2760
|
+
go(s, a, d);
|
|
2744
2761
|
}
|
|
2745
2762
|
return s;
|
|
2746
2763
|
};
|
|
2747
|
-
function
|
|
2764
|
+
function wo({
|
|
2748
2765
|
block: e,
|
|
2749
2766
|
context: t,
|
|
2750
2767
|
localState: n,
|
|
@@ -2752,25 +2769,25 @@ function vo({
|
|
|
2752
2769
|
rootSetState: o
|
|
2753
2770
|
}) {
|
|
2754
2771
|
let s = e;
|
|
2755
|
-
return s =
|
|
2772
|
+
return s = vo({
|
|
2756
2773
|
block: s,
|
|
2757
2774
|
localState: n,
|
|
2758
2775
|
rootState: r,
|
|
2759
2776
|
rootSetState: o,
|
|
2760
2777
|
context: t
|
|
2761
|
-
}), s =
|
|
2778
|
+
}), s = ho(s, r.locale), s;
|
|
2762
2779
|
}
|
|
2763
2780
|
const pt = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
2764
|
-
function
|
|
2781
|
+
function xo(e, t, n = {}) {
|
|
2765
2782
|
let r, o, s, a = null, f = 0;
|
|
2766
2783
|
const d = function() {
|
|
2767
2784
|
f = n.leading === !1 ? 0 : Date.now(), a = null, s = e.apply(r, o), a || (r = o = null);
|
|
2768
2785
|
};
|
|
2769
2786
|
return function() {
|
|
2770
|
-
const
|
|
2771
|
-
!f && n.leading === !1 && (f =
|
|
2772
|
-
const
|
|
2773
|
-
return r = this, o = arguments,
|
|
2787
|
+
const w = Date.now();
|
|
2788
|
+
!f && n.leading === !1 && (f = w);
|
|
2789
|
+
const A = t - (w - f);
|
|
2790
|
+
return r = this, o = arguments, A <= 0 || A > t ? (a && (clearTimeout(a), a = null), f = w, s = e.apply(r, o), a || (r = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, A)), s;
|
|
2774
2791
|
};
|
|
2775
2792
|
}
|
|
2776
2793
|
function Xe(e, ...t) {
|
|
@@ -2783,14 +2800,14 @@ function Xe(e, ...t) {
|
|
|
2783
2800
|
}
|
|
2784
2801
|
return n;
|
|
2785
2802
|
}
|
|
2786
|
-
function
|
|
2803
|
+
function So(e) {
|
|
2787
2804
|
for (const t of e)
|
|
2788
2805
|
switch (t.trigger) {
|
|
2789
2806
|
case "pageLoad":
|
|
2790
|
-
|
|
2807
|
+
ko(t);
|
|
2791
2808
|
break;
|
|
2792
2809
|
case "scrollInView":
|
|
2793
|
-
|
|
2810
|
+
Co(t);
|
|
2794
2811
|
break;
|
|
2795
2812
|
}
|
|
2796
2813
|
}
|
|
@@ -2798,19 +2815,19 @@ function rn(e) {
|
|
|
2798
2815
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2799
2816
|
}
|
|
2800
2817
|
function nn(e, t) {
|
|
2801
|
-
const n =
|
|
2818
|
+
const n = Eo(e), r = getComputedStyle(t), o = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, a = [o, s];
|
|
2802
2819
|
for (const f of a)
|
|
2803
2820
|
for (const d of n)
|
|
2804
2821
|
d in f || (f[d] = r[d]);
|
|
2805
2822
|
}
|
|
2806
|
-
function
|
|
2823
|
+
function Eo(e) {
|
|
2807
2824
|
const t = [];
|
|
2808
2825
|
for (const n of e.steps)
|
|
2809
2826
|
for (const r in n.styles)
|
|
2810
2827
|
t.indexOf(r) === -1 && t.push(r);
|
|
2811
2828
|
return t;
|
|
2812
2829
|
}
|
|
2813
|
-
function
|
|
2830
|
+
function ko(e) {
|
|
2814
2831
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2815
2832
|
if (!t.length) {
|
|
2816
2833
|
rn(e.elementId || e.id || "");
|
|
@@ -2824,7 +2841,7 @@ function Eo(e) {
|
|
|
2824
2841
|
});
|
|
2825
2842
|
});
|
|
2826
2843
|
}
|
|
2827
|
-
function
|
|
2844
|
+
function Co(e) {
|
|
2828
2845
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2829
2846
|
if (!t.length) {
|
|
2830
2847
|
rn(e.elementId || e.id || "");
|
|
@@ -2840,18 +2857,18 @@ function ko(e) {
|
|
|
2840
2857
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
2841
2858
|
})) : e.repeat && r && !o && !f(n) && (r = !1, Xe(n.style, e.steps[0].styles));
|
|
2842
2859
|
}
|
|
2843
|
-
const a =
|
|
2860
|
+
const a = xo(s, 200, {
|
|
2844
2861
|
leading: !1
|
|
2845
2862
|
});
|
|
2846
|
-
function f(
|
|
2847
|
-
const
|
|
2848
|
-
return
|
|
2863
|
+
function f(A) {
|
|
2864
|
+
const T = A.getBoundingClientRect(), G = window.innerHeight, P = (e.thresholdPercent || 0) / 100 * G;
|
|
2865
|
+
return T.bottom > P && T.top < G - P;
|
|
2849
2866
|
}
|
|
2850
2867
|
const d = e.steps[0].styles;
|
|
2851
|
-
function
|
|
2868
|
+
function w() {
|
|
2852
2869
|
Xe(n.style, d);
|
|
2853
2870
|
}
|
|
2854
|
-
|
|
2871
|
+
w(), setTimeout(() => {
|
|
2855
2872
|
n.style.transition = `all ${e.duration}s ${pt(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
2856
2873
|
}), document.addEventListener("scroll", a, {
|
|
2857
2874
|
capture: !0,
|
|
@@ -2862,33 +2879,33 @@ function ko(e) {
|
|
|
2862
2879
|
const on = (e) => Object.entries(e).map(([n, r]) => {
|
|
2863
2880
|
if (typeof r == "string")
|
|
2864
2881
|
return `${pt(n)}: ${r};`;
|
|
2865
|
-
}).filter(st),
|
|
2882
|
+
}).filter(st), Oo = (e) => on(e).join(`
|
|
2866
2883
|
`), Ue = ({
|
|
2867
2884
|
mediaQuery: e,
|
|
2868
2885
|
className: t,
|
|
2869
2886
|
styles: n
|
|
2870
2887
|
}) => {
|
|
2871
2888
|
const r = `.${t} {
|
|
2872
|
-
${
|
|
2889
|
+
${Oo(n)}
|
|
2873
2890
|
}`;
|
|
2874
2891
|
return e ? `${e} {
|
|
2875
2892
|
${r}
|
|
2876
2893
|
}` : r;
|
|
2877
2894
|
};
|
|
2878
|
-
function
|
|
2895
|
+
function jo({
|
|
2879
2896
|
style: e
|
|
2880
2897
|
}) {
|
|
2881
2898
|
return e;
|
|
2882
2899
|
}
|
|
2883
|
-
const
|
|
2900
|
+
const Ao = ({
|
|
2884
2901
|
block: e,
|
|
2885
2902
|
context: t
|
|
2886
|
-
}) =>
|
|
2903
|
+
}) => Io(jo({
|
|
2887
2904
|
style: e.style || {},
|
|
2888
2905
|
context: t,
|
|
2889
2906
|
block: e
|
|
2890
2907
|
}));
|
|
2891
|
-
function
|
|
2908
|
+
function Io(e) {
|
|
2892
2909
|
switch (lt) {
|
|
2893
2910
|
case "svelte":
|
|
2894
2911
|
case "vue":
|
|
@@ -2902,7 +2919,7 @@ function Ao(e) {
|
|
|
2902
2919
|
return e;
|
|
2903
2920
|
}
|
|
2904
2921
|
}
|
|
2905
|
-
const sn = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0,
|
|
2922
|
+
const sn = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, To = ({
|
|
2906
2923
|
block: e,
|
|
2907
2924
|
registeredComponents: t,
|
|
2908
2925
|
model: n
|
|
@@ -2919,7 +2936,7 @@ const sn = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
2919
2936
|
return;
|
|
2920
2937
|
} else
|
|
2921
2938
|
return o;
|
|
2922
|
-
},
|
|
2939
|
+
}, Po = ({
|
|
2923
2940
|
block: e,
|
|
2924
2941
|
context: t
|
|
2925
2942
|
}) => {
|
|
@@ -2939,51 +2956,52 @@ const sn = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
2939
2956
|
if (!Array.isArray(o))
|
|
2940
2957
|
return;
|
|
2941
2958
|
const s = n.collection.split(".").pop(), a = n.itemName || (s ? s + "Item" : "item");
|
|
2942
|
-
return o.map((d,
|
|
2959
|
+
return o.map((d, w) => ({
|
|
2943
2960
|
context: {
|
|
2944
2961
|
...t,
|
|
2945
2962
|
localState: {
|
|
2946
2963
|
...t.localState,
|
|
2947
|
-
$index:
|
|
2964
|
+
$index: w,
|
|
2948
2965
|
$item: d,
|
|
2949
2966
|
[a]: d,
|
|
2950
|
-
[`$${a}Index`]:
|
|
2967
|
+
[`$${a}Index`]: w
|
|
2951
2968
|
}
|
|
2952
2969
|
},
|
|
2953
2970
|
block: r
|
|
2954
2971
|
}));
|
|
2955
|
-
},
|
|
2972
|
+
}, bo = (e, t) => {
|
|
2956
2973
|
var n;
|
|
2957
2974
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
2958
2975
|
builderLinkComponent: t
|
|
2959
2976
|
} : {};
|
|
2960
|
-
},
|
|
2977
|
+
}, No = (e, t, n) => {
|
|
2961
2978
|
var r;
|
|
2962
2979
|
return (r = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && r.builderComponents ? {
|
|
2963
2980
|
builderComponents: Object.fromEntries(Object.entries(t).filter(([s, a]) => !sn(a, n)))
|
|
2964
2981
|
} : {};
|
|
2965
|
-
},
|
|
2982
|
+
}, Ro = (e, t) => {
|
|
2966
2983
|
var n;
|
|
2967
2984
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
2968
2985
|
builderBlock: t
|
|
2969
2986
|
} : {};
|
|
2970
|
-
},
|
|
2987
|
+
}, Bo = (e, t) => {
|
|
2971
2988
|
var n;
|
|
2972
2989
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
2973
2990
|
builderContext: t
|
|
2974
2991
|
} : {};
|
|
2975
2992
|
}, $r = (e) => e.toString();
|
|
2976
|
-
function
|
|
2993
|
+
function Mo(e) {
|
|
2977
2994
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2978
2995
|
}
|
|
2979
|
-
const
|
|
2996
|
+
const Do = (e) => `on${Mo(e)}`, _o = (e, t) => (n) => ft({
|
|
2980
2997
|
code: e,
|
|
2981
2998
|
context: t.context,
|
|
2982
2999
|
localState: t.localState,
|
|
2983
3000
|
rootState: t.rootState,
|
|
2984
3001
|
rootSetState: t.rootSetState,
|
|
2985
3002
|
event: n,
|
|
2986
|
-
isExpression: !1
|
|
3003
|
+
isExpression: !1,
|
|
3004
|
+
trackingContext: t.trackingContext
|
|
2987
3005
|
});
|
|
2988
3006
|
function an(e) {
|
|
2989
3007
|
var r;
|
|
@@ -2992,7 +3010,7 @@ function an(e) {
|
|
|
2992
3010
|
if (!n.hasOwnProperty(o))
|
|
2993
3011
|
continue;
|
|
2994
3012
|
const s = n[o];
|
|
2995
|
-
let a =
|
|
3013
|
+
let a = Do(o);
|
|
2996
3014
|
if (e.stripPrefix)
|
|
2997
3015
|
switch (lt) {
|
|
2998
3016
|
case "vue":
|
|
@@ -3002,16 +3020,16 @@ function an(e) {
|
|
|
3002
3020
|
a = a.replace("on:", "");
|
|
3003
3021
|
break;
|
|
3004
3022
|
}
|
|
3005
|
-
t[a] =
|
|
3023
|
+
t[a] = _o(s, e);
|
|
3006
3024
|
}
|
|
3007
3025
|
return t;
|
|
3008
3026
|
}
|
|
3009
|
-
function
|
|
3027
|
+
function Uo({
|
|
3010
3028
|
properties: e
|
|
3011
3029
|
}) {
|
|
3012
3030
|
return e;
|
|
3013
3031
|
}
|
|
3014
|
-
const
|
|
3032
|
+
const Lo = (e) => ({
|
|
3015
3033
|
href: e.href
|
|
3016
3034
|
});
|
|
3017
3035
|
function ir({
|
|
@@ -3020,24 +3038,25 @@ function ir({
|
|
|
3020
3038
|
}) {
|
|
3021
3039
|
var r;
|
|
3022
3040
|
const n = {
|
|
3023
|
-
...
|
|
3041
|
+
...Lo(e),
|
|
3024
3042
|
...e.properties,
|
|
3025
3043
|
"builder-id": e.id,
|
|
3026
|
-
style:
|
|
3044
|
+
style: Ao({
|
|
3027
3045
|
block: e,
|
|
3028
3046
|
context: t
|
|
3029
3047
|
}),
|
|
3030
|
-
[
|
|
3048
|
+
[Pn()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3031
3049
|
};
|
|
3032
|
-
return
|
|
3050
|
+
return Uo({
|
|
3033
3051
|
properties: n,
|
|
3034
3052
|
context: t,
|
|
3035
3053
|
block: e
|
|
3036
3054
|
});
|
|
3037
3055
|
}
|
|
3038
|
-
function
|
|
3056
|
+
function Fo(e) {
|
|
3057
|
+
var t, n, r;
|
|
3039
3058
|
return /* @__PURE__ */ O(
|
|
3040
|
-
|
|
3059
|
+
bn,
|
|
3041
3060
|
{
|
|
3042
3061
|
TagName: e.Wrapper,
|
|
3043
3062
|
attributes: ir({
|
|
@@ -3050,20 +3069,27 @@ function Lo(e) {
|
|
|
3050
3069
|
rootSetState: e.context.rootSetState,
|
|
3051
3070
|
localState: e.context.localState,
|
|
3052
3071
|
context: e.context.context,
|
|
3053
|
-
stripPrefix: !0
|
|
3072
|
+
stripPrefix: !0,
|
|
3073
|
+
trackingContext: {
|
|
3074
|
+
apiKey: e.context.apiKey,
|
|
3075
|
+
canTrack: (t = e.context.canTrack) != null ? t : !0,
|
|
3076
|
+
contentId: (n = e.context.content) == null ? void 0 : n.id,
|
|
3077
|
+
variationId: (r = e.context.content) == null ? void 0 : r.testVariationId
|
|
3078
|
+
}
|
|
3054
3079
|
}),
|
|
3055
3080
|
children: e.children
|
|
3056
3081
|
}
|
|
3057
3082
|
);
|
|
3058
3083
|
}
|
|
3059
|
-
function
|
|
3084
|
+
function Wo(e) {
|
|
3060
3085
|
return pe(() => {
|
|
3061
3086
|
}, []), /* @__PURE__ */ O(L, { children: e.children });
|
|
3062
3087
|
}
|
|
3063
|
-
function
|
|
3088
|
+
function Go(e) {
|
|
3064
3089
|
var r, o;
|
|
3065
3090
|
he(() => 0);
|
|
3066
3091
|
function t() {
|
|
3092
|
+
var s, a, f;
|
|
3067
3093
|
return e.includeBlockProps ? {
|
|
3068
3094
|
...ir({
|
|
3069
3095
|
block: e.block,
|
|
@@ -3074,7 +3100,13 @@ function Wo(e) {
|
|
|
3074
3100
|
rootState: e.context.rootState,
|
|
3075
3101
|
rootSetState: e.context.rootSetState,
|
|
3076
3102
|
localState: e.context.localState,
|
|
3077
|
-
context: e.context.context
|
|
3103
|
+
context: e.context.context,
|
|
3104
|
+
trackingContext: {
|
|
3105
|
+
apiKey: e.context.apiKey,
|
|
3106
|
+
canTrack: (s = e.context.canTrack) != null ? s : !0,
|
|
3107
|
+
contentId: (a = e.context.content) == null ? void 0 : a.id,
|
|
3108
|
+
variationId: (f = e.context.content) == null ? void 0 : f.testVariationId
|
|
3109
|
+
}
|
|
3078
3110
|
})
|
|
3079
3111
|
} : {};
|
|
3080
3112
|
}
|
|
@@ -3083,7 +3115,7 @@ function Wo(e) {
|
|
|
3083
3115
|
}
|
|
3084
3116
|
return pe(() => {
|
|
3085
3117
|
}, [e.wrapperProps, (o = (r = e.block) == null ? void 0 : r.component) == null ? void 0 : o.options]), /* @__PURE__ */ O(L, { children: e.Wrapper.load ? /* @__PURE__ */ O(L, { children: /* @__PURE__ */ O(
|
|
3086
|
-
|
|
3118
|
+
Wo,
|
|
3087
3119
|
{
|
|
3088
3120
|
load: e.Wrapper.load,
|
|
3089
3121
|
fallback: e.Wrapper.fallback,
|
|
@@ -3093,7 +3125,7 @@ function Wo(e) {
|
|
|
3093
3125
|
}
|
|
3094
3126
|
) }) : /* @__PURE__ */ O(e.Wrapper, { ...n(), attributes: t(), children: e.children }) });
|
|
3095
3127
|
}
|
|
3096
|
-
const
|
|
3128
|
+
const $o = ({
|
|
3097
3129
|
componentOptions: e,
|
|
3098
3130
|
builderBlock: t,
|
|
3099
3131
|
context: n,
|
|
@@ -3127,12 +3159,12 @@ function Vr(e) {
|
|
|
3127
3159
|
var r;
|
|
3128
3160
|
he(() => !1);
|
|
3129
3161
|
const [t, n] = he(
|
|
3130
|
-
() => e.isInteractive ?
|
|
3162
|
+
() => e.isInteractive ? Go : e.componentRef
|
|
3131
3163
|
);
|
|
3132
3164
|
return /* @__PURE__ */ O(L, { children: e.componentRef ? /* @__PURE__ */ O(L, { children: /* @__PURE__ */ O(
|
|
3133
3165
|
t,
|
|
3134
3166
|
{
|
|
3135
|
-
|
|
3167
|
+
...$o({
|
|
3136
3168
|
componentOptions: e.componentOptions,
|
|
3137
3169
|
builderBlock: e.builderBlock,
|
|
3138
3170
|
context: e.context,
|
|
@@ -3190,7 +3222,7 @@ const ln = {
|
|
|
3190
3222
|
default: 991,
|
|
3191
3223
|
max: 1200
|
|
3192
3224
|
}
|
|
3193
|
-
}, Ut = (e, t = ln) => `@media (max-width: ${t[e].max}px)`,
|
|
3225
|
+
}, Ut = (e, t = ln) => `@media (max-width: ${t[e].max}px)`, Vo = (e) => {
|
|
3194
3226
|
const t = tn(ln);
|
|
3195
3227
|
if (!e)
|
|
3196
3228
|
return t;
|
|
@@ -3229,7 +3261,7 @@ const ln = {
|
|
|
3229
3261
|
default: f + 1
|
|
3230
3262
|
}, t;
|
|
3231
3263
|
};
|
|
3232
|
-
function
|
|
3264
|
+
function Ho(e) {
|
|
3233
3265
|
return /* @__PURE__ */ O(
|
|
3234
3266
|
"style",
|
|
3235
3267
|
{
|
|
@@ -3246,31 +3278,31 @@ function Xr(e) {
|
|
|
3246
3278
|
}
|
|
3247
3279
|
function n() {
|
|
3248
3280
|
var ue, Ie, Te, B, Z;
|
|
3249
|
-
const r = e.block, o = r.responsiveStyles, s = e.context.content, a =
|
|
3281
|
+
const r = e.block, o = r.responsiveStyles, s = e.context.content, a = Vo(
|
|
3250
3282
|
((ue = s == null ? void 0 : s.meta) == null ? void 0 : ue.breakpoints) || {}
|
|
3251
|
-
), f = !!((Te = (Ie = s == null ? void 0 : s.meta) == null ? void 0 : Ie.breakpoints) != null && Te.xsmall), d = o == null ? void 0 : o.large,
|
|
3283
|
+
), f = !!((Te = (Ie = s == null ? void 0 : s.meta) == null ? void 0 : Ie.breakpoints) != null && Te.xsmall), d = o == null ? void 0 : o.large, w = o == null ? void 0 : o.medium, A = o == null ? void 0 : o.small, T = o == null ? void 0 : o.xsmall, G = r.id;
|
|
3252
3284
|
if (!G)
|
|
3253
3285
|
return "";
|
|
3254
3286
|
const H = d ? Ue({
|
|
3255
3287
|
className: G,
|
|
3256
3288
|
styles: d
|
|
3257
|
-
}) : "", P =
|
|
3289
|
+
}) : "", P = w ? Ue({
|
|
3258
3290
|
className: G,
|
|
3259
|
-
styles:
|
|
3291
|
+
styles: w,
|
|
3260
3292
|
mediaQuery: Ut(
|
|
3261
3293
|
"medium",
|
|
3262
3294
|
a
|
|
3263
3295
|
)
|
|
3264
|
-
}) : "", j =
|
|
3296
|
+
}) : "", j = A ? Ue({
|
|
3265
3297
|
className: G,
|
|
3266
|
-
styles:
|
|
3298
|
+
styles: A,
|
|
3267
3299
|
mediaQuery: Ut(
|
|
3268
3300
|
"small",
|
|
3269
3301
|
a
|
|
3270
3302
|
)
|
|
3271
|
-
}) : "", R =
|
|
3303
|
+
}) : "", R = T && f ? Ue({
|
|
3272
3304
|
className: G,
|
|
3273
|
-
styles:
|
|
3305
|
+
styles: T,
|
|
3274
3306
|
mediaQuery: Ut(
|
|
3275
3307
|
"xsmall",
|
|
3276
3308
|
a
|
|
@@ -3299,7 +3331,7 @@ function Xr(e) {
|
|
|
3299
3331
|
].join(" ");
|
|
3300
3332
|
}
|
|
3301
3333
|
return /* @__PURE__ */ O(L, { children: n() && t() ? /* @__PURE__ */ O(L, { children: /* @__PURE__ */ O(
|
|
3302
|
-
|
|
3334
|
+
Ho,
|
|
3303
3335
|
{
|
|
3304
3336
|
id: "builderio-block",
|
|
3305
3337
|
styles: n(),
|
|
@@ -3307,16 +3339,16 @@ function Xr(e) {
|
|
|
3307
3339
|
}
|
|
3308
3340
|
) }) : null });
|
|
3309
3341
|
}
|
|
3310
|
-
function
|
|
3342
|
+
function Xo(e) {
|
|
3311
3343
|
he(() => !1);
|
|
3312
3344
|
const [t, n] = he(() => !1);
|
|
3313
3345
|
return Lt(Xt), pe(() => {
|
|
3314
3346
|
}, []), /* @__PURE__ */ O(L, { children: t ? /* @__PURE__ */ O(L, { children: /* @__PURE__ */ O(L, { children: /* @__PURE__ */ O(Xr, { block: e.block, context: e.context }) }) }) : /* @__PURE__ */ O(L, { children: /* @__PURE__ */ O(Xr, { block: e.block, context: e.context }) }) });
|
|
3315
3347
|
}
|
|
3316
3348
|
function ht(e) {
|
|
3317
|
-
var
|
|
3349
|
+
var A, T, G, H;
|
|
3318
3350
|
function t() {
|
|
3319
|
-
return
|
|
3351
|
+
return Po({
|
|
3320
3352
|
block: e.block,
|
|
3321
3353
|
context: e.context
|
|
3322
3354
|
});
|
|
@@ -3327,9 +3359,9 @@ function ht(e) {
|
|
|
3327
3359
|
}));
|
|
3328
3360
|
function o() {
|
|
3329
3361
|
var j;
|
|
3330
|
-
if (n.value && !n.update && !
|
|
3362
|
+
if (n.value && !n.update && !Tn())
|
|
3331
3363
|
return n.value;
|
|
3332
|
-
const P = (j = e.block.repeat) != null && j.collection ? e.block :
|
|
3364
|
+
const P = (j = e.block.repeat) != null && j.collection ? e.block : wo({
|
|
3333
3365
|
block: e.block,
|
|
3334
3366
|
localState: e.context.localState,
|
|
3335
3367
|
rootState: e.context.rootState,
|
|
@@ -3339,7 +3371,7 @@ function ht(e) {
|
|
|
3339
3371
|
return n.value = P, n.update = !1, P;
|
|
3340
3372
|
}
|
|
3341
3373
|
function s() {
|
|
3342
|
-
return
|
|
3374
|
+
return To({
|
|
3343
3375
|
block: o(),
|
|
3344
3376
|
registeredComponents: e.registeredComponents,
|
|
3345
3377
|
model: e.context.model
|
|
@@ -3360,17 +3392,17 @@ function ht(e) {
|
|
|
3360
3392
|
var j, R;
|
|
3361
3393
|
return !((j = s == null ? void 0 : s()) != null && j.component) && !t() ? (R = o().children) != null ? R : [] : [];
|
|
3362
3394
|
}
|
|
3363
|
-
function
|
|
3395
|
+
function w() {
|
|
3364
3396
|
var P, j, R, _;
|
|
3365
3397
|
return {
|
|
3366
3398
|
blockChildren: (P = o().children) != null ? P : [],
|
|
3367
3399
|
componentRef: (j = s == null ? void 0 : s()) == null ? void 0 : j.component,
|
|
3368
3400
|
componentOptions: {
|
|
3369
|
-
...
|
|
3370
|
-
...
|
|
3371
|
-
...
|
|
3372
|
-
...
|
|
3373
|
-
...
|
|
3401
|
+
...lo(o(), e.context),
|
|
3402
|
+
...Ro(s(), o()),
|
|
3403
|
+
...Bo(s(), e.context),
|
|
3404
|
+
...bo(s(), e.linkComponent),
|
|
3405
|
+
...No(
|
|
3374
3406
|
s(),
|
|
3375
3407
|
e.registeredComponents,
|
|
3376
3408
|
e.context.model
|
|
@@ -3386,7 +3418,7 @@ function ht(e) {
|
|
|
3386
3418
|
}
|
|
3387
3419
|
return pe(() => {
|
|
3388
3420
|
const P = o().id, j = o().animations;
|
|
3389
|
-
j && P &&
|
|
3421
|
+
j && P && So(
|
|
3390
3422
|
j.map((R) => ({
|
|
3391
3423
|
...R,
|
|
3392
3424
|
elementId: P
|
|
@@ -3396,14 +3428,14 @@ function ht(e) {
|
|
|
3396
3428
|
n.update = !0;
|
|
3397
3429
|
}), /* @__PURE__ */ O(L, { children: f() ? /* @__PURE__ */ it(L, { children: [
|
|
3398
3430
|
/* @__PURE__ */ O(
|
|
3399
|
-
|
|
3431
|
+
Xo,
|
|
3400
3432
|
{
|
|
3401
3433
|
block: o(),
|
|
3402
3434
|
context: e.context,
|
|
3403
3435
|
id: e.block.id
|
|
3404
3436
|
}
|
|
3405
3437
|
),
|
|
3406
|
-
(
|
|
3438
|
+
(A = s == null ? void 0 : s()) != null && A.noWrap ? t() ? /* @__PURE__ */ O(L, { children: (H = t()) == null ? void 0 : H.map((P, j) => /* @__PURE__ */ O(
|
|
3407
3439
|
Hr,
|
|
3408
3440
|
{
|
|
3409
3441
|
repeatContext: P.context,
|
|
@@ -3415,15 +3447,15 @@ function ht(e) {
|
|
|
3415
3447
|
)) }) : /* @__PURE__ */ O(
|
|
3416
3448
|
Vr,
|
|
3417
3449
|
{
|
|
3418
|
-
componentRef:
|
|
3419
|
-
componentOptions:
|
|
3420
|
-
blockChildren:
|
|
3421
|
-
context:
|
|
3422
|
-
registeredComponents:
|
|
3423
|
-
linkComponent:
|
|
3424
|
-
builderBlock:
|
|
3425
|
-
includeBlockProps:
|
|
3426
|
-
isInteractive:
|
|
3450
|
+
componentRef: w().componentRef,
|
|
3451
|
+
componentOptions: w().componentOptions,
|
|
3452
|
+
blockChildren: w().blockChildren,
|
|
3453
|
+
context: w().context,
|
|
3454
|
+
registeredComponents: w().registeredComponents,
|
|
3455
|
+
linkComponent: w().linkComponent,
|
|
3456
|
+
builderBlock: w().builderBlock,
|
|
3457
|
+
includeBlockProps: w().includeBlockProps,
|
|
3458
|
+
isInteractive: w().isInteractive
|
|
3427
3459
|
}
|
|
3428
3460
|
) : /* @__PURE__ */ O(L, { children: t() ? /* @__PURE__ */ O(L, { children: (G = t()) == null ? void 0 : G.map((P, j) => /* @__PURE__ */ O(
|
|
3429
3461
|
Hr,
|
|
@@ -3435,7 +3467,7 @@ function ht(e) {
|
|
|
3435
3467
|
},
|
|
3436
3468
|
$r(j)
|
|
3437
3469
|
)) }) : /* @__PURE__ */ it(
|
|
3438
|
-
|
|
3470
|
+
Fo,
|
|
3439
3471
|
{
|
|
3440
3472
|
Wrapper: a(),
|
|
3441
3473
|
block: o(),
|
|
@@ -3444,18 +3476,18 @@ function ht(e) {
|
|
|
3444
3476
|
/* @__PURE__ */ O(
|
|
3445
3477
|
Vr,
|
|
3446
3478
|
{
|
|
3447
|
-
componentRef:
|
|
3448
|
-
componentOptions:
|
|
3449
|
-
blockChildren:
|
|
3450
|
-
context:
|
|
3451
|
-
registeredComponents:
|
|
3452
|
-
linkComponent:
|
|
3453
|
-
builderBlock:
|
|
3454
|
-
includeBlockProps:
|
|
3455
|
-
isInteractive:
|
|
3479
|
+
componentRef: w().componentRef,
|
|
3480
|
+
componentOptions: w().componentOptions,
|
|
3481
|
+
blockChildren: w().blockChildren,
|
|
3482
|
+
context: w().context,
|
|
3483
|
+
registeredComponents: w().registeredComponents,
|
|
3484
|
+
linkComponent: w().linkComponent,
|
|
3485
|
+
builderBlock: w().builderBlock,
|
|
3486
|
+
includeBlockProps: w().includeBlockProps,
|
|
3487
|
+
isInteractive: w().isInteractive
|
|
3456
3488
|
}
|
|
3457
3489
|
),
|
|
3458
|
-
(
|
|
3490
|
+
(T = d()) == null ? void 0 : T.map((P) => /* @__PURE__ */ O(
|
|
3459
3491
|
ht,
|
|
3460
3492
|
{
|
|
3461
3493
|
block: P,
|
|
@@ -3470,7 +3502,7 @@ function ht(e) {
|
|
|
3470
3502
|
) })
|
|
3471
3503
|
] }) : null });
|
|
3472
3504
|
}
|
|
3473
|
-
function
|
|
3505
|
+
function Ko(e) {
|
|
3474
3506
|
const t = jn(null);
|
|
3475
3507
|
he(() => !1);
|
|
3476
3508
|
function n() {
|
|
@@ -3540,9 +3572,9 @@ function Xo(e) {
|
|
|
3540
3572
|
}
|
|
3541
3573
|
function Jo(e) {
|
|
3542
3574
|
var r, o, s;
|
|
3543
|
-
const t = Lt(Xt), n = Lt(
|
|
3575
|
+
const t = Lt(Xt), n = Lt(Nn);
|
|
3544
3576
|
return /* @__PURE__ */ it(
|
|
3545
|
-
|
|
3577
|
+
Ko,
|
|
3546
3578
|
{
|
|
3547
3579
|
blocks: e.blocks,
|
|
3548
3580
|
parent: e.parent,
|
|
@@ -3567,20 +3599,20 @@ function Jo(e) {
|
|
|
3567
3599
|
}
|
|
3568
3600
|
);
|
|
3569
3601
|
}
|
|
3570
|
-
const
|
|
3602
|
+
const ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3571
3603
|
__proto__: null,
|
|
3572
3604
|
default: Jo
|
|
3573
3605
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3574
3606
|
export {
|
|
3575
3607
|
Jo as Blocks,
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3608
|
+
Nn as ComponentsContext,
|
|
3609
|
+
Ho as InlinedStyles,
|
|
3610
|
+
ti as blocks,
|
|
3579
3611
|
ft as evaluate,
|
|
3580
3612
|
tn as fastClone,
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3613
|
+
Rn as get,
|
|
3614
|
+
Vo as getSizesForBreakpoints,
|
|
3615
|
+
Io as mapStyleObjToStrIfNeeded,
|
|
3616
|
+
go as set,
|
|
3617
|
+
ko as triggerAnimation
|
|
3586
3618
|
};
|