@builder.io/sdk-react 0.12.1 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/index.cjs +29 -27
- package/lib/browser/index.mjs +603 -619
- package/lib/edge/index.cjs +35 -33
- package/lib/edge/index.mjs +1036 -1052
- package/lib/node/index.cjs +14 -12
- package/lib/node/index.mjs +385 -401
- package/package.json +1 -1
- package/types/components/block/block.helpers.d.ts +0 -1
- package/types/components/block/components/block-wrapper.d.ts +2 -6
- package/types/components/content-variants/content-variants.types.d.ts +4 -0
- package/types/components/dynamic-renderer/dynamic-renderer.d.ts +8 -0
- package/types/components/dynamic-renderer/dynamic-renderer.helpers.d.ts +1 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/is-from-trusted-host.d.ts +3 -0
- package/types/scripts/init-editing.d.ts +1 -0
package/lib/edge/index.mjs
CHANGED
|
@@ -1,34 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { i as Te, j as je, k as Lr, l as Ue, m as
|
|
5
|
-
import { _ as
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/* @__PURE__ */ p("style", { children: `.button-fdf49de0 {
|
|
27
|
-
all: unset;
|
|
28
|
-
}` })
|
|
29
|
-
] });
|
|
2
|
+
import { jsx as p, Fragment as P, jsxs as ce } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as or, useState as L, useContext as Ln, createElement as ar, useRef as Jt, useEffect as Z } from "react";
|
|
4
|
+
import { i as Te, j as je, k as Lr, l as Ue, m as qt, n as Kt, T as rt, r as Vr, o as pt, p as Vn, a as $r, c as Hr, b as sr, q as Kr, u as $n, v as Hn, w as Gr } from "./server-entry-f978b3a5.js";
|
|
5
|
+
import { _ as Lo, h as Vo, f as $o, g as Ho, e as Ko, d as Go, s as zo, t as Xo } from "./server-entry-f978b3a5.js";
|
|
6
|
+
function zr(e) {
|
|
7
|
+
return /* @__PURE__ */ p(P, { children: e.link ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
8
|
+
"a",
|
|
9
|
+
{
|
|
10
|
+
...e.attributes,
|
|
11
|
+
href: e.link,
|
|
12
|
+
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
13
|
+
role: "button",
|
|
14
|
+
children: e.text
|
|
15
|
+
}
|
|
16
|
+
) }) : /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
17
|
+
"button",
|
|
18
|
+
{
|
|
19
|
+
role: "button",
|
|
20
|
+
...e.attributes,
|
|
21
|
+
className: `builder-button ${e.attributes.className}`,
|
|
22
|
+
style: e.attributes.style,
|
|
23
|
+
children: e.text
|
|
24
|
+
}
|
|
25
|
+
) }) });
|
|
30
26
|
}
|
|
31
|
-
const
|
|
27
|
+
const Zt = or({
|
|
32
28
|
content: null,
|
|
33
29
|
context: {},
|
|
34
30
|
localState: void 0,
|
|
@@ -41,8 +37,8 @@ const tn = lr({
|
|
|
41
37
|
inheritedStyles: {},
|
|
42
38
|
BlocksWrapper: "div",
|
|
43
39
|
BlocksWrapperProps: {}
|
|
44
|
-
}),
|
|
45
|
-
function
|
|
40
|
+
}), lr = or({ registeredComponents: {} });
|
|
41
|
+
function Xr(e) {
|
|
46
42
|
var t;
|
|
47
43
|
return {
|
|
48
44
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -53,7 +49,7 @@ function Yr(e) {
|
|
|
53
49
|
builderBlock: e
|
|
54
50
|
};
|
|
55
51
|
}
|
|
56
|
-
const
|
|
52
|
+
const cr = ({
|
|
57
53
|
builder: e,
|
|
58
54
|
context: t,
|
|
59
55
|
event: r,
|
|
@@ -65,14 +61,14 @@ const fr = ({
|
|
|
65
61
|
builder: e,
|
|
66
62
|
context: t,
|
|
67
63
|
event: r
|
|
68
|
-
}),
|
|
64
|
+
}), Yr = () => ({
|
|
69
65
|
isEditing: Te(),
|
|
70
66
|
isBrowser: je(),
|
|
71
67
|
isServer: !je(),
|
|
72
68
|
getUserAttributes: () => Lr()
|
|
73
|
-
}),
|
|
69
|
+
}), Jr = (e, {
|
|
74
70
|
isExpression: t = !0
|
|
75
|
-
}) => /* 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,
|
|
71
|
+
}) => /* 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, qr = ({
|
|
76
72
|
code: e,
|
|
77
73
|
builder: t,
|
|
78
74
|
context: r,
|
|
@@ -81,15 +77,15 @@ const fr = ({
|
|
|
81
77
|
rootSetState: a,
|
|
82
78
|
rootState: s
|
|
83
79
|
}) => {
|
|
84
|
-
const u =
|
|
80
|
+
const u = cr({
|
|
85
81
|
builder: t,
|
|
86
82
|
context: r,
|
|
87
83
|
event: n,
|
|
88
|
-
state:
|
|
84
|
+
state: Zr(s, i, a)
|
|
89
85
|
});
|
|
90
86
|
return new Function(...u.map(([f]) => f), e)(...u.map(([, f]) => f));
|
|
91
87
|
};
|
|
92
|
-
function
|
|
88
|
+
function Zr(e, t, r) {
|
|
93
89
|
if (e === t)
|
|
94
90
|
throw new Error("rootState === localState");
|
|
95
91
|
return new Proxy(e, {
|
|
@@ -101,21 +97,21 @@ function Qr(e, t, r) {
|
|
|
101
97
|
}
|
|
102
98
|
});
|
|
103
99
|
}
|
|
104
|
-
const
|
|
100
|
+
const ur = (e, t, r) => {
|
|
105
101
|
if (Object(e) !== e)
|
|
106
102
|
return e;
|
|
107
103
|
const n = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
108
104
|
return n.slice(0, -1).reduce((i, a, s) => Object(i[a]) === i[a] ? i[a] : i[a] = Math.abs(Number(n[s + 1])) >> 0 === +n[s + 1] ? [] : {}, e)[n[n.length - 1]] = r, e;
|
|
109
105
|
};
|
|
110
|
-
var
|
|
106
|
+
var _, Qr = function(e) {
|
|
111
107
|
function t(o) {
|
|
112
|
-
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
108
|
+
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && _r.test(String.fromCharCode(o));
|
|
113
109
|
}
|
|
114
110
|
function r(o) {
|
|
115
|
-
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
111
|
+
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Wn.test(String.fromCharCode(o));
|
|
116
112
|
}
|
|
117
113
|
function n(o, l) {
|
|
118
|
-
for (var c =
|
|
114
|
+
for (var c = x, h = 1, A = 0; ; ) {
|
|
119
115
|
ft.lastIndex = A;
|
|
120
116
|
var J = ft.exec(c);
|
|
121
117
|
if (J && J.index < o)
|
|
@@ -140,32 +136,32 @@ var D, ei = function(e) {
|
|
|
140
136
|
this.line = Ee, this.ab = d - he;
|
|
141
137
|
}
|
|
142
138
|
function s(o, l) {
|
|
143
|
-
Oe = d,
|
|
139
|
+
Oe = d, O.C && (jt = new a()), j = o, f(), le = l, Ve = o.m;
|
|
144
140
|
}
|
|
145
141
|
function u() {
|
|
146
|
-
for (var o = d, l =
|
|
147
|
-
++d, c =
|
|
148
|
-
|
|
142
|
+
for (var o = d, l = O.va && O.C && new a(), c = x.charCodeAt(d += 2); d < Re && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
143
|
+
++d, c = x.charCodeAt(d);
|
|
144
|
+
O.va && O.va(!1, x.slice(o + 2, d), o, d, l, O.C && new a());
|
|
149
145
|
}
|
|
150
146
|
function f() {
|
|
151
147
|
for (; d < Re; ) {
|
|
152
|
-
var o =
|
|
148
|
+
var o = x.charCodeAt(d);
|
|
153
149
|
if (o === 32)
|
|
154
150
|
++d;
|
|
155
151
|
else if (o === 13)
|
|
156
|
-
++d, o =
|
|
152
|
+
++d, o = x.charCodeAt(d), o === 10 && ++d, O.C && (++Ee, he = d);
|
|
157
153
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
158
|
-
++d,
|
|
154
|
+
++d, O.C && (++Ee, he = d);
|
|
159
155
|
else if (8 < o && 14 > o)
|
|
160
156
|
++d;
|
|
161
157
|
else if (o === 47)
|
|
162
|
-
if (o =
|
|
158
|
+
if (o = x.charCodeAt(d + 1), o === 42) {
|
|
163
159
|
o = void 0;
|
|
164
|
-
var l =
|
|
165
|
-
if (h === -1 && n(d - 2, "Unterminated comment"), d = h + 2,
|
|
166
|
-
for (ft.lastIndex = c; (o = ft.exec(
|
|
160
|
+
var l = O.va && O.C && new a(), c = d, h = x.indexOf("*/", d += 2);
|
|
161
|
+
if (h === -1 && n(d - 2, "Unterminated comment"), d = h + 2, O.C)
|
|
162
|
+
for (ft.lastIndex = c; (o = ft.exec(x)) && o.index < d; )
|
|
167
163
|
++Ee, he = o.index + o[0].length;
|
|
168
|
-
|
|
164
|
+
O.va && O.va(!0, x.slice(c + 2, h), c, d, l, O.C && new a());
|
|
169
165
|
} else if (o === 47)
|
|
170
166
|
u();
|
|
171
167
|
else
|
|
@@ -181,7 +177,7 @@ var D, ei = function(e) {
|
|
|
181
177
|
function m(o) {
|
|
182
178
|
switch (o) {
|
|
183
179
|
case 46:
|
|
184
|
-
o =
|
|
180
|
+
o = x.charCodeAt(d + 1), 48 <= o && 57 >= o ? R(!0) : (++d, s(Pn));
|
|
185
181
|
return;
|
|
186
182
|
case 40:
|
|
187
183
|
return ++d, s(pe);
|
|
@@ -194,7 +190,7 @@ var D, ei = function(e) {
|
|
|
194
190
|
case 91:
|
|
195
191
|
return ++d, s(Dt);
|
|
196
192
|
case 93:
|
|
197
|
-
return ++d, s(
|
|
193
|
+
return ++d, s(_t);
|
|
198
194
|
case 123:
|
|
199
195
|
return ++d, s(Ke);
|
|
200
196
|
case 125:
|
|
@@ -202,10 +198,10 @@ var D, ei = function(e) {
|
|
|
202
198
|
case 58:
|
|
203
199
|
return ++d, s(Ge);
|
|
204
200
|
case 63:
|
|
205
|
-
return ++d, s(
|
|
201
|
+
return ++d, s(Nn);
|
|
206
202
|
case 48:
|
|
207
|
-
if (o =
|
|
208
|
-
d += 2, o =
|
|
203
|
+
if (o = x.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
204
|
+
d += 2, o = B(16), o === null && n(X + 2, "Expected hexadecimal number"), r(x.charCodeAt(d)) && n(d, "Identifier directly after number"), s(He, o);
|
|
209
205
|
return;
|
|
210
206
|
}
|
|
211
207
|
case 49:
|
|
@@ -217,24 +213,24 @@ var D, ei = function(e) {
|
|
|
217
213
|
case 55:
|
|
218
214
|
case 56:
|
|
219
215
|
case 57:
|
|
220
|
-
return
|
|
216
|
+
return R(!1);
|
|
221
217
|
case 34:
|
|
222
218
|
case 39:
|
|
223
219
|
d++;
|
|
224
220
|
for (var l = ""; ; ) {
|
|
225
221
|
d >= Re && n(X, "Unterminated string constant");
|
|
226
|
-
var c =
|
|
222
|
+
var c = x.charCodeAt(d);
|
|
227
223
|
if (c === o) {
|
|
228
224
|
++d, s(lt, l);
|
|
229
225
|
break;
|
|
230
226
|
}
|
|
231
227
|
if (c === 92) {
|
|
232
|
-
c =
|
|
233
|
-
var h = /^[0-7]+/.exec(
|
|
228
|
+
c = x.charCodeAt(++d);
|
|
229
|
+
var h = /^[0-7]+/.exec(x.slice(d, d + 3));
|
|
234
230
|
for (h && (h = h[0]); h && 255 < parseInt(h, 8); )
|
|
235
231
|
h = h.slice(0, -1);
|
|
236
232
|
if (h === "0" && (h = null), ++d, h)
|
|
237
|
-
|
|
233
|
+
ae && n(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(h, 8)), d += h.length - 1;
|
|
238
234
|
else
|
|
239
235
|
switch (c) {
|
|
240
236
|
case 110:
|
|
@@ -245,13 +241,13 @@ var D, ei = function(e) {
|
|
|
245
241
|
l += "\r";
|
|
246
242
|
break;
|
|
247
243
|
case 120:
|
|
248
|
-
l += String.fromCharCode(
|
|
244
|
+
l += String.fromCharCode(N(2));
|
|
249
245
|
break;
|
|
250
246
|
case 117:
|
|
251
|
-
l += String.fromCharCode(
|
|
247
|
+
l += String.fromCharCode(N(4));
|
|
252
248
|
break;
|
|
253
249
|
case 85:
|
|
254
|
-
l += String.fromCharCode(
|
|
250
|
+
l += String.fromCharCode(N(8));
|
|
255
251
|
break;
|
|
256
252
|
case 116:
|
|
257
253
|
l += " ";
|
|
@@ -269,9 +265,9 @@ var D, ei = function(e) {
|
|
|
269
265
|
l += "\0";
|
|
270
266
|
break;
|
|
271
267
|
case 13:
|
|
272
|
-
|
|
268
|
+
x.charCodeAt(d) === 10 && ++d;
|
|
273
269
|
case 10:
|
|
274
|
-
|
|
270
|
+
O.C && (he = d, ++Ee);
|
|
275
271
|
break;
|
|
276
272
|
default:
|
|
277
273
|
l += String.fromCharCode(c);
|
|
@@ -281,57 +277,57 @@ var D, ei = function(e) {
|
|
|
281
277
|
}
|
|
282
278
|
return;
|
|
283
279
|
case 47:
|
|
284
|
-
o =
|
|
280
|
+
o = x.charCodeAt(d + 1), Ve ? (++d, U()) : o === 61 ? y(Ie, 2) : y(Mn, 1);
|
|
285
281
|
return;
|
|
286
282
|
case 37:
|
|
287
283
|
case 42:
|
|
288
|
-
|
|
284
|
+
x.charCodeAt(d + 1) === 61 ? y(Ie, 2) : y(Br, 1);
|
|
289
285
|
return;
|
|
290
286
|
case 124:
|
|
291
287
|
case 38:
|
|
292
|
-
l =
|
|
288
|
+
l = x.charCodeAt(d + 1), l === o ? y(o === 124 ? Un : Dn, 2) : l === 61 ? y(Ie, 2) : y(o === 124 ? jr : Rr, 1);
|
|
293
289
|
return;
|
|
294
290
|
case 94:
|
|
295
|
-
|
|
291
|
+
x.charCodeAt(d + 1) === 61 ? y(Ie, 2) : y(Ar, 1);
|
|
296
292
|
return;
|
|
297
293
|
case 43:
|
|
298
294
|
case 45:
|
|
299
|
-
l =
|
|
295
|
+
l = x.charCodeAt(d + 1), l === o ? l === 45 && x.charCodeAt(d + 2) === 62 && dt.test(x.slice(xe, d)) ? (d += 3, u(), f(), v()) : y(Tr, 2) : l === 61 ? y(Ie, 2) : y(Mr, 1);
|
|
300
296
|
return;
|
|
301
297
|
case 60:
|
|
302
298
|
case 62:
|
|
303
|
-
l =
|
|
299
|
+
l = x.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && x.charCodeAt(d + 2) === 62 ? 3 : 2, x.charCodeAt(d + c) === 61 ? y(Ie, c + 1) : y(Nr, c)) : l === 33 && o === 60 && x.charCodeAt(d + 2) === 45 && x.charCodeAt(d + 3) === 45 ? (d += 4, u(), f(), v()) : (l === 61 && (c = x.charCodeAt(d + 2) === 61 ? 3 : 2), y(Pr, c));
|
|
304
300
|
return;
|
|
305
301
|
case 61:
|
|
306
302
|
case 33:
|
|
307
|
-
|
|
303
|
+
x.charCodeAt(d + 1) === 61 ? y(Or, x.charCodeAt(d + 2) === 61 ? 3 : 2) : y(o === 61 ? Bn : Fn, 1);
|
|
308
304
|
return;
|
|
309
305
|
case 126:
|
|
310
|
-
return
|
|
306
|
+
return y(Fn, 1);
|
|
311
307
|
}
|
|
312
308
|
return !1;
|
|
313
309
|
}
|
|
314
310
|
function v(o) {
|
|
315
|
-
if (o ? d = X + 1 : X = d,
|
|
311
|
+
if (o ? d = X + 1 : X = d, O.C && (Tt = new a()), o)
|
|
316
312
|
return U();
|
|
317
313
|
if (d >= Re)
|
|
318
|
-
return s(
|
|
319
|
-
if (o =
|
|
314
|
+
return s(Ot);
|
|
315
|
+
if (o = x.charCodeAt(d), r(o) || o === 92)
|
|
320
316
|
return Y();
|
|
321
317
|
if (m(o) === !1) {
|
|
322
|
-
if (o = String.fromCharCode(o), o === "\\" ||
|
|
318
|
+
if (o = String.fromCharCode(o), o === "\\" || Wn.test(o))
|
|
323
319
|
return Y();
|
|
324
320
|
n(d, "Unexpected character '" + o + "'");
|
|
325
321
|
}
|
|
326
322
|
}
|
|
327
|
-
function
|
|
328
|
-
var c =
|
|
323
|
+
function y(o, l) {
|
|
324
|
+
var c = x.slice(d, d + l);
|
|
329
325
|
d += l, s(o, c);
|
|
330
326
|
}
|
|
331
327
|
function U() {
|
|
332
328
|
for (var o, l, c = d; ; ) {
|
|
333
329
|
d >= Re && n(c, "Unterminated regexp");
|
|
334
|
-
var h =
|
|
330
|
+
var h = x.charAt(d);
|
|
335
331
|
if (dt.test(h) && n(c, "Unterminated regexp"), o)
|
|
336
332
|
o = !1;
|
|
337
333
|
else {
|
|
@@ -345,152 +341,152 @@ var D, ei = function(e) {
|
|
|
345
341
|
}
|
|
346
342
|
++d;
|
|
347
343
|
}
|
|
348
|
-
o =
|
|
344
|
+
o = x.slice(c, d), ++d, (l = V()) && !/^[gmi]*$/.test(l) && n(c, "Invalid regexp flag");
|
|
349
345
|
try {
|
|
350
346
|
var A = new RegExp(o, l);
|
|
351
347
|
} catch (J) {
|
|
352
348
|
throw J instanceof SyntaxError && n(c, J.message), J;
|
|
353
349
|
}
|
|
354
|
-
s(
|
|
350
|
+
s(hn, A);
|
|
355
351
|
}
|
|
356
|
-
function
|
|
352
|
+
function B(o, l) {
|
|
357
353
|
for (var c = d, h = 0, A = l === void 0 ? 1 / 0 : l, J = 0; J < A; ++J) {
|
|
358
|
-
var
|
|
359
|
-
if (
|
|
354
|
+
var re = x.charCodeAt(d);
|
|
355
|
+
if (re = 97 <= re ? re - 97 + 10 : 65 <= re ? re - 65 + 10 : 48 <= re && 57 >= re ? re - 48 : 1 / 0, re >= o)
|
|
360
356
|
break;
|
|
361
|
-
++d, h = h * o +
|
|
357
|
+
++d, h = h * o + re;
|
|
362
358
|
}
|
|
363
359
|
return d === c || l !== void 0 && d - c !== l ? null : h;
|
|
364
360
|
}
|
|
365
|
-
function
|
|
366
|
-
var l = d, c = !1, h =
|
|
367
|
-
o ||
|
|
361
|
+
function R(o) {
|
|
362
|
+
var l = d, c = !1, h = x.charCodeAt(d) === 48;
|
|
363
|
+
o || B(10) !== null || n(l, "Invalid number"), x.charCodeAt(d) === 46 && (++d, B(10), c = !0), o = x.charCodeAt(d), (o === 69 || o === 101) && (o = x.charCodeAt(++d), o !== 43 && o !== 45 || ++d, B(10) === null && n(l, "Invalid number"), c = !0), r(x.charCodeAt(d)) && n(d, "Identifier directly after number"), o = x.slice(l, d);
|
|
368
364
|
var A;
|
|
369
|
-
c ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) ||
|
|
365
|
+
c ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || ae ? n(l, "Invalid number") : A = parseInt(o, 8) : A = parseInt(o, 10), s(He, A);
|
|
370
366
|
}
|
|
371
|
-
function
|
|
372
|
-
return o =
|
|
367
|
+
function N(o) {
|
|
368
|
+
return o = B(16, o), o === null && n(X, "Bad character escape sequence"), o;
|
|
373
369
|
}
|
|
374
|
-
function
|
|
370
|
+
function V() {
|
|
375
371
|
Me = !1;
|
|
376
372
|
for (var o, l = !0, c = d; ; ) {
|
|
377
|
-
var h =
|
|
373
|
+
var h = x.charCodeAt(d);
|
|
378
374
|
if (t(h))
|
|
379
|
-
Me && (o +=
|
|
375
|
+
Me && (o += x.charAt(d)), ++d;
|
|
380
376
|
else if (h === 92) {
|
|
381
|
-
Me || (o =
|
|
377
|
+
Me || (o = x.slice(c, d)), Me = !0, x.charCodeAt(++d) !== 117 && n(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = N(4);
|
|
382
378
|
var A = String.fromCharCode(h);
|
|
383
379
|
A || n(d - 1, "Invalid Unicode escape"), (l ? r(h) : t(h)) || n(d - 4, "Invalid Unicode escape"), o += A;
|
|
384
380
|
} else
|
|
385
381
|
break;
|
|
386
382
|
l = !1;
|
|
387
383
|
}
|
|
388
|
-
return Me ? o :
|
|
384
|
+
return Me ? o : x.slice(c, d);
|
|
389
385
|
}
|
|
390
386
|
function Y() {
|
|
391
|
-
var o =
|
|
392
|
-
!Me &&
|
|
387
|
+
var o = V(), l = Pe;
|
|
388
|
+
!Me && Ur(o) && (l = Ir[o]), s(l, o);
|
|
393
389
|
}
|
|
394
|
-
function
|
|
395
|
-
|
|
390
|
+
function b() {
|
|
391
|
+
At = X, xe = Oe, Rt = jt, v();
|
|
396
392
|
}
|
|
397
393
|
function K(o) {
|
|
398
|
-
if (
|
|
394
|
+
if (ae = o, d = X, O.C)
|
|
399
395
|
for (; d < he; )
|
|
400
|
-
he =
|
|
396
|
+
he = x.lastIndexOf(`
|
|
401
397
|
`, he - 2) + 1, --Ee;
|
|
402
398
|
f(), v();
|
|
403
399
|
}
|
|
404
|
-
function
|
|
400
|
+
function te() {
|
|
405
401
|
this.type = null, this.start = X, this.end = null;
|
|
406
402
|
}
|
|
407
|
-
function
|
|
408
|
-
this.start =
|
|
403
|
+
function se() {
|
|
404
|
+
this.start = Tt, this.end = null, It && (this.source = It);
|
|
409
405
|
}
|
|
410
406
|
function $() {
|
|
411
|
-
var o = new
|
|
412
|
-
return
|
|
407
|
+
var o = new te();
|
|
408
|
+
return O.C && (o.X = new se()), O.vb && (o.sourceFile = O.vb), O.Xa && (o.j = [X, 0]), o;
|
|
413
409
|
}
|
|
414
|
-
function
|
|
415
|
-
var l = new
|
|
416
|
-
return l.start = o.start,
|
|
410
|
+
function ne(o) {
|
|
411
|
+
var l = new te();
|
|
412
|
+
return l.start = o.start, O.C && (l.X = new se(), l.X.start = o.X.start), O.Xa && (l.j = [o.j[0], 0]), l;
|
|
417
413
|
}
|
|
418
414
|
function E(o, l) {
|
|
419
|
-
return o.type = l, o.end = xe,
|
|
415
|
+
return o.type = l, o.end = xe, O.C && (o.X.end = Rt), O.Xa && (o.j[1] = xe), o;
|
|
420
416
|
}
|
|
421
417
|
function Ae(o) {
|
|
422
418
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
423
419
|
}
|
|
424
420
|
function W(o) {
|
|
425
|
-
return j === o ? (
|
|
421
|
+
return j === o ? (b(), !0) : !1;
|
|
426
422
|
}
|
|
427
423
|
function ke() {
|
|
428
|
-
return !
|
|
424
|
+
return !O.fc && (j === Ot || j === Ne || dt.test(x.slice(xe, X)));
|
|
429
425
|
}
|
|
430
426
|
function ue() {
|
|
431
|
-
W(me) || ke() ||
|
|
427
|
+
W(me) || ke() || k();
|
|
432
428
|
}
|
|
433
429
|
function H(o) {
|
|
434
|
-
j === o ?
|
|
430
|
+
j === o ? b() : k();
|
|
435
431
|
}
|
|
436
|
-
function
|
|
432
|
+
function k() {
|
|
437
433
|
n(X, "Unexpected token");
|
|
438
434
|
}
|
|
439
435
|
function I(o) {
|
|
440
|
-
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"),
|
|
436
|
+
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"), ae && o.type === "Identifier" && ut(o.name) && n(o.start, "Assigning to " + o.name + " in strict mode");
|
|
441
437
|
}
|
|
442
438
|
function T() {
|
|
443
|
-
(j ===
|
|
439
|
+
(j === Mn || j === Ie && le === "/=") && v(!0);
|
|
444
440
|
var o = j, l = $();
|
|
445
441
|
switch (o) {
|
|
446
|
-
case
|
|
447
|
-
case
|
|
448
|
-
|
|
449
|
-
var c = o ===
|
|
450
|
-
W(me) || ke() ? l.label = null : j !== Pe ?
|
|
442
|
+
case Pt:
|
|
443
|
+
case mn:
|
|
444
|
+
b();
|
|
445
|
+
var c = o === Pt;
|
|
446
|
+
W(me) || ke() ? l.label = null : j !== Pe ? k() : (l.label = fe(), ue());
|
|
451
447
|
for (var h = 0; h < z.length; ++h) {
|
|
452
448
|
var A = z[h];
|
|
453
449
|
if ((l.label === null || A.name === l.label.name) && (A.kind !== null && (c || A.kind === "loop") || l.label && c))
|
|
454
450
|
break;
|
|
455
451
|
}
|
|
456
452
|
return h === z.length && n(l.start, "Unsyntactic " + o.l), E(l, c ? "BreakStatement" : "ContinueStatement");
|
|
453
|
+
case gn:
|
|
454
|
+
return b(), ue(), E(l, "DebuggerStatement");
|
|
457
455
|
case yn:
|
|
458
|
-
return
|
|
459
|
-
case
|
|
460
|
-
return
|
|
456
|
+
return b(), z.push(Wt), l.body = T(), z.pop(), H(Ut), l.test = M(), ue(), E(l, "DoWhileStatement");
|
|
457
|
+
case Sn:
|
|
458
|
+
return b(), z.push(Wt), H(pe), j === me ? G(l, null) : j === Ft ? (o = $(), b(), at(o, !0), E(o, "VariableDeclaration"), o.fa.length === 1 && W(ct) ? Ce(l, o) : G(l, o)) : (o = ee(!1, !0), W(ct) ? (I(o), Ce(l, o)) : G(l, o));
|
|
459
|
+
case Mt:
|
|
460
|
+
return b(), Ct(l, !0);
|
|
461
|
+
case wn:
|
|
462
|
+
return b(), l.test = M(), l.da = T(), l.alternate = W(bn) ? T() : null, E(l, "IfStatement");
|
|
461
463
|
case kn:
|
|
462
|
-
return
|
|
464
|
+
return $e || O.Ib || n(X, "'return' outside of function"), b(), W(me) || ke() ? l.K = null : (l.K = ee(), ue()), E(l, "ReturnStatement");
|
|
463
465
|
case Bt:
|
|
464
|
-
|
|
466
|
+
for (b(), l.Qb = M(), l.tb = [], H(Ke), z.push(Wr); j !== Ne; )
|
|
467
|
+
j === Nt || j === vn ? (o = j === Nt, h && E(h, "SwitchCase"), l.tb.push(h = $()), h.da = [], b(), o ? h.test = ee() : (c && n(At, "Multiple default clauses"), c = !0, h.test = null), H(Ge)) : (h || k(), h.da.push(T()));
|
|
468
|
+
return h && E(h, "SwitchCase"), b(), z.pop(), E(l, "SwitchStatement");
|
|
465
469
|
case Cn:
|
|
466
|
-
return
|
|
470
|
+
return b(), dt.test(x.slice(xe, X)) && n(xe, "Illegal newline after throw"), l.K = ee(), ue(), E(l, "ThrowStatement");
|
|
467
471
|
case En:
|
|
468
|
-
return $
|
|
472
|
+
return b(), l.block = D(), l.Ea = null, j === pn && (o = $(), b(), H(pe), o.Ua = fe(), ae && ut(o.Ua.name) && n(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), H(de), o.body = D(), l.Ea = E(o, "CatchClause")), l.fb = W(xn) ? D() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
469
473
|
case Ft:
|
|
470
|
-
|
|
471
|
-
j === Mt || j === bn ? (o = j === Mt, h && E(h, "SwitchCase"), l.tb.push(h = $()), h.da = [], y(), o ? h.test = ee() : (c && n(Rt, "Multiple default clauses"), c = !0, h.test = null), H(Ge)) : (h || C(), h.da.push(T()));
|
|
472
|
-
return h && E(h, "SwitchCase"), y(), z.pop(), E(l, "SwitchStatement");
|
|
473
|
-
case In:
|
|
474
|
-
return y(), dt.test(b.slice(xe, X)) && n(xe, "Illegal newline after throw"), l.K = ee(), ue(), E(l, "ThrowStatement");
|
|
475
|
-
case Tn:
|
|
476
|
-
return y(), l.block = _(), l.Ea = null, j === gn && (o = $(), y(), H(pe), o.Ua = fe(), se && ut(o.Ua.name) && n(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), H(de), o.body = _(), l.Ea = E(o, "CatchClause")), l.fb = W(wn) ? _() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
474
|
+
return b(), at(l), ue(), E(l, "VariableDeclaration");
|
|
477
475
|
case Ut:
|
|
478
|
-
return
|
|
479
|
-
case
|
|
480
|
-
return
|
|
481
|
-
case jn:
|
|
482
|
-
return se && n(X, "'with' in strict mode"), y(), l.object = M(), l.body = T(), E(l, "WithStatement");
|
|
476
|
+
return b(), l.test = M(), z.push(Wt), l.body = T(), z.pop(), E(l, "WhileStatement");
|
|
477
|
+
case In:
|
|
478
|
+
return ae && n(X, "'with' in strict mode"), b(), l.object = M(), l.body = T(), E(l, "WithStatement");
|
|
483
479
|
case Ke:
|
|
484
|
-
return
|
|
480
|
+
return D();
|
|
485
481
|
case me:
|
|
486
|
-
return
|
|
482
|
+
return b(), E(l, "EmptyStatement");
|
|
487
483
|
default:
|
|
488
|
-
if (c =
|
|
484
|
+
if (c = le, A = ee(), o === Pe && A.type === "Identifier" && W(Ge)) {
|
|
489
485
|
for (h = 0; h < z.length; ++h)
|
|
490
486
|
z[h].name === c && n(A.start, "Label '" + c + "' is already declared");
|
|
491
487
|
return z.push({
|
|
492
488
|
name: c,
|
|
493
|
-
kind: j.W ? "loop" : j ===
|
|
489
|
+
kind: j.W ? "loop" : j === Bt ? "switch" : null
|
|
494
490
|
}), l.body = T(), z.pop(), l.label = A, E(l, "LabeledStatement");
|
|
495
491
|
}
|
|
496
492
|
return l.la = A, ue(), E(l, "ExpressionStatement");
|
|
@@ -501,7 +497,7 @@ var D, ei = function(e) {
|
|
|
501
497
|
var o = ee();
|
|
502
498
|
return H(de), o;
|
|
503
499
|
}
|
|
504
|
-
function
|
|
500
|
+
function D(o) {
|
|
505
501
|
var l = $(), c = !0, h = !1;
|
|
506
502
|
for (l.body = [], H(Ke); !W(Ne); ) {
|
|
507
503
|
var A = T();
|
|
@@ -522,79 +518,79 @@ var D, ei = function(e) {
|
|
|
522
518
|
function at(o, l) {
|
|
523
519
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
524
520
|
var c = $();
|
|
525
|
-
if (c.id = fe(),
|
|
521
|
+
if (c.id = fe(), ae && ut(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = W(Bn) ? ee(!0, l) : null, o.fa.push(E(c, "VariableDeclarator")), !W(Se))
|
|
526
522
|
break;
|
|
527
523
|
}
|
|
528
524
|
}
|
|
529
525
|
function ee(o, l) {
|
|
530
|
-
var c =
|
|
526
|
+
var c = St(l);
|
|
531
527
|
if (!o && j === Se) {
|
|
532
|
-
for (o =
|
|
533
|
-
o.xb.push(
|
|
528
|
+
for (o = ne(c), o.xb = [c]; W(Se); )
|
|
529
|
+
o.xb.push(St(l));
|
|
534
530
|
return E(o, "SequenceExpression");
|
|
535
531
|
}
|
|
536
532
|
return c;
|
|
537
533
|
}
|
|
538
|
-
function
|
|
539
|
-
var l = kt(
|
|
540
|
-
if (W(
|
|
541
|
-
var c =
|
|
534
|
+
function St(o) {
|
|
535
|
+
var l = wt(kt(), -1, o);
|
|
536
|
+
if (W(Nn)) {
|
|
537
|
+
var c = ne(l);
|
|
542
538
|
c.test = l, c.da = ee(!0), H(Ge), c.alternate = ee(!0, o), l = E(c, "ConditionalExpression");
|
|
543
539
|
}
|
|
544
|
-
return j.Cb ? (c =
|
|
540
|
+
return j.Cb ? (c = ne(l), c.operator = le, c.left = l, b(), c.right = St(o), I(l), E(c, "AssignmentExpression")) : l;
|
|
545
541
|
}
|
|
546
|
-
function
|
|
542
|
+
function wt(o, l, c) {
|
|
547
543
|
var h = j.L;
|
|
548
544
|
if (h !== null && (!c || j !== ct) && h > l) {
|
|
549
|
-
var A =
|
|
550
|
-
return A.left = o, A.operator =
|
|
545
|
+
var A = ne(o);
|
|
546
|
+
return A.left = o, A.operator = le, o = j, b(), A.right = wt(kt(), h, c), h = E(A, o === Un || o === Dn ? "LogicalExpression" : "BinaryExpression"), wt(h, l, c);
|
|
551
547
|
}
|
|
552
548
|
return o;
|
|
553
549
|
}
|
|
554
|
-
function
|
|
550
|
+
function kt() {
|
|
555
551
|
if (j.prefix) {
|
|
556
552
|
var o = $(), l = j.$b;
|
|
557
|
-
return o.operator =
|
|
553
|
+
return o.operator = le, Ve = o.prefix = !0, b(), o.K = kt(), l ? I(o.K) : ae && o.operator === "delete" && o.K.type === "Identifier" && n(o.start, "Deleting local variable in strict mode"), E(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
558
554
|
}
|
|
559
|
-
for (l =
|
|
560
|
-
o =
|
|
555
|
+
for (l = Le(st()); j.cc && !ke(); )
|
|
556
|
+
o = ne(l), o.operator = le, o.prefix = !1, o.K = l, I(l), b(), l = E(o, "UpdateExpression");
|
|
561
557
|
return l;
|
|
562
558
|
}
|
|
563
|
-
function
|
|
564
|
-
if (W(
|
|
565
|
-
var c =
|
|
566
|
-
return c.object = o, c.Wa = fe(!0), c.bb = !1,
|
|
559
|
+
function Le(o, l) {
|
|
560
|
+
if (W(Pn)) {
|
|
561
|
+
var c = ne(o);
|
|
562
|
+
return c.object = o, c.Wa = fe(!0), c.bb = !1, Le(E(c, "MemberExpression"), l);
|
|
567
563
|
}
|
|
568
|
-
return W(Dt) ? (c =
|
|
564
|
+
return W(Dt) ? (c = ne(o), c.object = o, c.Wa = ee(), c.bb = !0, H(_t), Le(E(c, "MemberExpression"), l)) : !l && W(pe) ? (c = ne(o), c.callee = o, c.arguments = Et(de, !1), Le(E(c, "CallExpression"), l)) : o;
|
|
569
565
|
}
|
|
570
566
|
function st() {
|
|
571
567
|
switch (j) {
|
|
572
|
-
case
|
|
568
|
+
case jn:
|
|
573
569
|
var o = $();
|
|
574
|
-
return
|
|
570
|
+
return b(), E(o, "ThisExpression");
|
|
575
571
|
case Pe:
|
|
576
572
|
return fe();
|
|
577
573
|
case He:
|
|
578
574
|
case lt:
|
|
579
|
-
case
|
|
580
|
-
return o = $(), o.value =
|
|
575
|
+
case hn:
|
|
576
|
+
return o = $(), o.value = le, o.raw = x.slice(X, Oe), b(), E(o, "Literal");
|
|
577
|
+
case An:
|
|
578
|
+
case Rn:
|
|
581
579
|
case On:
|
|
582
|
-
|
|
583
|
-
case Nn:
|
|
584
|
-
return o = $(), o.value = j.$a, o.raw = j.l, y(), E(o, "Literal");
|
|
580
|
+
return o = $(), o.value = j.$a, o.raw = j.l, b(), E(o, "Literal");
|
|
585
581
|
case pe:
|
|
586
|
-
o =
|
|
582
|
+
o = Tt;
|
|
587
583
|
var l = X;
|
|
588
|
-
|
|
584
|
+
b();
|
|
589
585
|
var c = ee();
|
|
590
|
-
return c.start = l, c.end = Oe,
|
|
586
|
+
return c.start = l, c.end = Oe, O.C && (c.X.start = o, c.X.end = jt), O.Xa && (c.j = [l, Oe]), H(de), c;
|
|
591
587
|
case Dt:
|
|
592
|
-
return o = $(),
|
|
588
|
+
return o = $(), b(), o.elements = Et(_t, !0, !0), E(o, "ArrayExpression");
|
|
593
589
|
case Ke:
|
|
594
|
-
for (o = $(), l = !0, c = !1, o.h = [],
|
|
590
|
+
for (o = $(), l = !0, c = !1, o.h = [], b(); !W(Ne); ) {
|
|
595
591
|
if (l)
|
|
596
592
|
l = !1;
|
|
597
|
-
else if (H(Se),
|
|
593
|
+
else if (H(Se), O.sb && W(Ne))
|
|
598
594
|
break;
|
|
599
595
|
var h = {
|
|
600
596
|
key: j === He || j === lt ? st() : fe(!0)
|
|
@@ -603,45 +599,45 @@ var D, ei = function(e) {
|
|
|
603
599
|
h.value = ee(!0);
|
|
604
600
|
var J = h.kind = "init";
|
|
605
601
|
} else
|
|
606
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ?
|
|
607
|
-
if (h.key.type === "Identifier" && (
|
|
608
|
-
for (var
|
|
609
|
-
var Be = o.h[
|
|
602
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? k() : (A = c = !0, J = h.kind = h.key.name, h.key = j === He || j === lt ? st() : fe(!0), j !== pe && k(), h.value = Ct($(), !1));
|
|
603
|
+
if (h.key.type === "Identifier" && (ae || c))
|
|
604
|
+
for (var re = 0; re < o.h.length; ++re) {
|
|
605
|
+
var Be = o.h[re];
|
|
610
606
|
if (Be.key.name === h.key.name) {
|
|
611
607
|
var Lt = J === Be.kind || A && Be.kind === "init" || J === "init" && (Be.kind === "get" || Be.kind === "set");
|
|
612
|
-
Lt && !
|
|
608
|
+
Lt && !ae && J === "init" && Be.kind === "init" && (Lt = !1), Lt && n(h.key.start, "Redefinition of property");
|
|
613
609
|
}
|
|
614
610
|
}
|
|
615
611
|
o.h.push(h);
|
|
616
612
|
}
|
|
617
613
|
return E(o, "ObjectExpression");
|
|
618
|
-
case
|
|
619
|
-
return o = $(),
|
|
620
|
-
case
|
|
621
|
-
return o = $(),
|
|
614
|
+
case Mt:
|
|
615
|
+
return o = $(), b(), Ct(o, !1);
|
|
616
|
+
case Tn:
|
|
617
|
+
return o = $(), b(), o.callee = Le(st(), !0), o.arguments = W(pe) ? Et(de, !1) : Er, E(o, "NewExpression");
|
|
622
618
|
}
|
|
623
|
-
|
|
619
|
+
k();
|
|
624
620
|
}
|
|
625
|
-
function
|
|
626
|
-
j === Pe ? o.id = fe() : l ?
|
|
621
|
+
function Ct(o, l) {
|
|
622
|
+
j === Pe ? o.id = fe() : l ? k() : o.id = null, o.oa = [];
|
|
627
623
|
var c = !0;
|
|
628
624
|
for (H(pe); !W(de); )
|
|
629
625
|
c ? c = !1 : H(Se), o.oa.push(fe());
|
|
630
626
|
c = $e;
|
|
631
627
|
var h = z;
|
|
632
|
-
if ($e = !0, z = [], o.body =
|
|
628
|
+
if ($e = !0, z = [], o.body = D(!0), $e = c, z = h, ae || o.body.body.length && Ae(o.body.body[0])) {
|
|
633
629
|
for (c = o.id ? -1 : 0; c < o.oa.length; ++c)
|
|
634
|
-
if (h = 0 > c ? o.id : o.oa[c], (
|
|
630
|
+
if (h = 0 > c ? o.id : o.oa[c], (_n(h.name) || ut(h.name)) && n(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
635
631
|
for (var A = 0; A < c; ++A)
|
|
636
632
|
h.name === o.oa[A].name && n(h.start, "Argument name clash in strict mode");
|
|
637
633
|
}
|
|
638
634
|
return E(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
639
635
|
}
|
|
640
|
-
function
|
|
636
|
+
function Et(o, l, c) {
|
|
641
637
|
for (var h = [], A = !0; !W(o); ) {
|
|
642
638
|
if (A)
|
|
643
639
|
A = !1;
|
|
644
|
-
else if (H(Se), l &&
|
|
640
|
+
else if (H(Se), l && O.sb && W(o))
|
|
645
641
|
break;
|
|
646
642
|
h.push(c && j === Se ? null : ee(!0));
|
|
647
643
|
}
|
|
@@ -649,19 +645,19 @@ var D, ei = function(e) {
|
|
|
649
645
|
}
|
|
650
646
|
function fe(o) {
|
|
651
647
|
var l = $();
|
|
652
|
-
return o &&
|
|
648
|
+
return o && O.yb === "everywhere" && (o = !1), j === Pe ? (!o && (O.yb && Fr(le) || ae && _n(le)) && x.slice(X, Oe).indexOf("\\") === -1 && n(X, "The keyword '" + le + "' is reserved"), l.name = le) : o && j.l ? l.name = j.l : k(), Ve = !1, b(), E(l, "Identifier");
|
|
653
649
|
}
|
|
654
650
|
e.version = "0.5.0";
|
|
655
|
-
var
|
|
651
|
+
var O, x = "", Re, It;
|
|
656
652
|
e.parse = function(o, l) {
|
|
657
|
-
|
|
658
|
-
for (var c in
|
|
659
|
-
Object.prototype.hasOwnProperty.call(
|
|
660
|
-
for (
|
|
653
|
+
x = String(o), Re = x.length, O = l || {};
|
|
654
|
+
for (var c in fn)
|
|
655
|
+
Object.prototype.hasOwnProperty.call(O, c) || (O[c] = fn[c]);
|
|
656
|
+
for (It = O.sourceFile, Ee = 1, d = he = 0, Ve = !0, f(), c = O.dc, At = xe = d, O.C && (Rt = new a()), $e = ae = !1, z = [], v(), o = c || $(), l = !0, c || (o.body = []); j !== Ot; )
|
|
661
657
|
c = T(), o.body.push(c), l && Ae(c) && K(!0), l = !1;
|
|
662
658
|
return E(o, "Program");
|
|
663
659
|
};
|
|
664
|
-
var
|
|
660
|
+
var fn = {
|
|
665
661
|
fc: !1,
|
|
666
662
|
sb: !0,
|
|
667
663
|
yb: !1,
|
|
@@ -672,110 +668,110 @@ var D, ei = function(e) {
|
|
|
672
668
|
dc: null,
|
|
673
669
|
sourceFile: null,
|
|
674
670
|
vb: null
|
|
675
|
-
}, d = 0, X = 0, Oe = 0,
|
|
671
|
+
}, d = 0, X = 0, Oe = 0, Tt, jt, j, le, Ve, Ee, he, At = 0, xe = 0, Rt, $e, z, ae, Er = [], He = {
|
|
676
672
|
type: "num"
|
|
677
|
-
},
|
|
673
|
+
}, hn = {
|
|
678
674
|
type: "regexp"
|
|
679
675
|
}, lt = {
|
|
680
676
|
type: "string"
|
|
681
677
|
}, Pe = {
|
|
682
678
|
type: "name"
|
|
683
|
-
},
|
|
679
|
+
}, Ot = {
|
|
684
680
|
type: "eof"
|
|
685
|
-
},
|
|
681
|
+
}, Pt = {
|
|
686
682
|
l: "break"
|
|
687
|
-
},
|
|
683
|
+
}, Nt = {
|
|
688
684
|
l: "case",
|
|
689
685
|
m: !0
|
|
690
|
-
},
|
|
686
|
+
}, pn = {
|
|
691
687
|
l: "catch"
|
|
692
|
-
},
|
|
688
|
+
}, mn = {
|
|
693
689
|
l: "continue"
|
|
694
|
-
},
|
|
690
|
+
}, gn = {
|
|
695
691
|
l: "debugger"
|
|
696
|
-
},
|
|
692
|
+
}, vn = {
|
|
697
693
|
l: "default"
|
|
698
|
-
},
|
|
694
|
+
}, yn = {
|
|
699
695
|
l: "do",
|
|
700
696
|
W: !0
|
|
701
|
-
},
|
|
697
|
+
}, bn = {
|
|
702
698
|
l: "else",
|
|
703
699
|
m: !0
|
|
704
|
-
},
|
|
700
|
+
}, xn = {
|
|
705
701
|
l: "finally"
|
|
706
|
-
},
|
|
702
|
+
}, Sn = {
|
|
707
703
|
l: "for",
|
|
708
704
|
W: !0
|
|
709
|
-
},
|
|
705
|
+
}, Mt = {
|
|
710
706
|
l: "function"
|
|
711
|
-
},
|
|
707
|
+
}, wn = {
|
|
712
708
|
l: "if"
|
|
713
|
-
},
|
|
709
|
+
}, kn = {
|
|
714
710
|
l: "return",
|
|
715
711
|
m: !0
|
|
716
|
-
},
|
|
712
|
+
}, Bt = {
|
|
717
713
|
l: "switch"
|
|
718
|
-
},
|
|
714
|
+
}, Cn = {
|
|
719
715
|
l: "throw",
|
|
720
716
|
m: !0
|
|
721
|
-
},
|
|
717
|
+
}, En = {
|
|
722
718
|
l: "try"
|
|
723
|
-
},
|
|
719
|
+
}, Ft = {
|
|
724
720
|
l: "var"
|
|
725
|
-
},
|
|
721
|
+
}, Ut = {
|
|
726
722
|
l: "while",
|
|
727
723
|
W: !0
|
|
728
|
-
},
|
|
724
|
+
}, In = {
|
|
729
725
|
l: "with"
|
|
730
|
-
},
|
|
726
|
+
}, Tn = {
|
|
731
727
|
l: "new",
|
|
732
728
|
m: !0
|
|
733
|
-
},
|
|
729
|
+
}, jn = {
|
|
734
730
|
l: "this"
|
|
735
|
-
},
|
|
731
|
+
}, An = {
|
|
736
732
|
l: "null",
|
|
737
733
|
$a: null
|
|
738
|
-
},
|
|
734
|
+
}, Rn = {
|
|
739
735
|
l: "true",
|
|
740
736
|
$a: !0
|
|
741
|
-
},
|
|
737
|
+
}, On = {
|
|
742
738
|
l: "false",
|
|
743
739
|
$a: !1
|
|
744
740
|
}, ct = {
|
|
745
741
|
l: "in",
|
|
746
742
|
L: 7,
|
|
747
743
|
m: !0
|
|
748
|
-
},
|
|
749
|
-
break:
|
|
750
|
-
case:
|
|
751
|
-
catch:
|
|
752
|
-
continue:
|
|
753
|
-
debugger:
|
|
754
|
-
default:
|
|
755
|
-
do:
|
|
756
|
-
else:
|
|
757
|
-
finally:
|
|
758
|
-
for:
|
|
759
|
-
function:
|
|
760
|
-
if:
|
|
761
|
-
return:
|
|
762
|
-
switch:
|
|
763
|
-
throw:
|
|
764
|
-
try:
|
|
765
|
-
var:
|
|
766
|
-
while:
|
|
767
|
-
with:
|
|
768
|
-
null:
|
|
769
|
-
true:
|
|
770
|
-
false:
|
|
771
|
-
new:
|
|
744
|
+
}, Ir = {
|
|
745
|
+
break: Pt,
|
|
746
|
+
case: Nt,
|
|
747
|
+
catch: pn,
|
|
748
|
+
continue: mn,
|
|
749
|
+
debugger: gn,
|
|
750
|
+
default: vn,
|
|
751
|
+
do: yn,
|
|
752
|
+
else: bn,
|
|
753
|
+
finally: xn,
|
|
754
|
+
for: Sn,
|
|
755
|
+
function: Mt,
|
|
756
|
+
if: wn,
|
|
757
|
+
return: kn,
|
|
758
|
+
switch: Bt,
|
|
759
|
+
throw: Cn,
|
|
760
|
+
try: En,
|
|
761
|
+
var: Ft,
|
|
762
|
+
while: Ut,
|
|
763
|
+
with: In,
|
|
764
|
+
null: An,
|
|
765
|
+
true: Rn,
|
|
766
|
+
false: On,
|
|
767
|
+
new: Tn,
|
|
772
768
|
in: ct,
|
|
773
769
|
instanceof: {
|
|
774
770
|
l: "instanceof",
|
|
775
771
|
L: 7,
|
|
776
772
|
m: !0
|
|
777
773
|
},
|
|
778
|
-
this:
|
|
774
|
+
this: jn,
|
|
779
775
|
typeof: {
|
|
780
776
|
l: "typeof",
|
|
781
777
|
prefix: !0,
|
|
@@ -794,7 +790,7 @@ var D, ei = function(e) {
|
|
|
794
790
|
}, Dt = {
|
|
795
791
|
type: "[",
|
|
796
792
|
m: !0
|
|
797
|
-
},
|
|
793
|
+
}, _t = {
|
|
798
794
|
type: "]"
|
|
799
795
|
}, Ke = {
|
|
800
796
|
type: "{",
|
|
@@ -815,67 +811,67 @@ var D, ei = function(e) {
|
|
|
815
811
|
}, Ge = {
|
|
816
812
|
type: ":",
|
|
817
813
|
m: !0
|
|
818
|
-
},
|
|
814
|
+
}, Pn = {
|
|
819
815
|
type: "."
|
|
820
|
-
},
|
|
816
|
+
}, Nn = {
|
|
821
817
|
type: "?",
|
|
822
818
|
m: !0
|
|
823
|
-
},
|
|
819
|
+
}, Mn = {
|
|
824
820
|
L: 10,
|
|
825
821
|
m: !0
|
|
826
|
-
},
|
|
822
|
+
}, Bn = {
|
|
827
823
|
Cb: !0,
|
|
828
824
|
m: !0
|
|
829
825
|
}, Ie = {
|
|
830
826
|
Cb: !0,
|
|
831
827
|
m: !0
|
|
832
|
-
},
|
|
828
|
+
}, Tr = {
|
|
833
829
|
cc: !0,
|
|
834
830
|
prefix: !0,
|
|
835
831
|
$b: !0
|
|
836
|
-
},
|
|
832
|
+
}, Fn = {
|
|
837
833
|
prefix: !0,
|
|
838
834
|
m: !0
|
|
839
|
-
},
|
|
835
|
+
}, Un = {
|
|
840
836
|
L: 1,
|
|
841
837
|
m: !0
|
|
842
|
-
},
|
|
838
|
+
}, Dn = {
|
|
843
839
|
L: 2,
|
|
844
840
|
m: !0
|
|
845
|
-
},
|
|
841
|
+
}, jr = {
|
|
846
842
|
L: 3,
|
|
847
843
|
m: !0
|
|
848
|
-
},
|
|
844
|
+
}, Ar = {
|
|
849
845
|
L: 4,
|
|
850
846
|
m: !0
|
|
851
|
-
},
|
|
847
|
+
}, Rr = {
|
|
852
848
|
L: 5,
|
|
853
849
|
m: !0
|
|
854
|
-
},
|
|
850
|
+
}, Or = {
|
|
855
851
|
L: 6,
|
|
856
852
|
m: !0
|
|
857
|
-
},
|
|
853
|
+
}, Pr = {
|
|
858
854
|
L: 7,
|
|
859
855
|
m: !0
|
|
860
|
-
},
|
|
856
|
+
}, Nr = {
|
|
861
857
|
L: 8,
|
|
862
858
|
m: !0
|
|
863
|
-
},
|
|
859
|
+
}, Mr = {
|
|
864
860
|
L: 9,
|
|
865
861
|
prefix: !0,
|
|
866
862
|
m: !0
|
|
867
|
-
},
|
|
863
|
+
}, Br = {
|
|
868
864
|
L: 10,
|
|
869
865
|
m: !0
|
|
870
|
-
},
|
|
866
|
+
}, Fr = i("class enum extends super const export import"), _n = i("implements interface let package private protected public static yield"), ut = i("eval arguments"), Ur = i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Dr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Wn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), _r = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), dt = /[\n\r\u2028\u2029]/, ft = /\r\n|[\n\r\u2028\u2029]/g, Me, Wt = {
|
|
871
867
|
kind: "loop"
|
|
872
|
-
},
|
|
868
|
+
}, Wr = {
|
|
873
869
|
kind: "switch"
|
|
874
870
|
};
|
|
875
|
-
},
|
|
876
|
-
|
|
871
|
+
}, Gt = Gt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
872
|
+
Qr(Gt.j || (Gt.j = {}));
|
|
877
873
|
function g(e, t) {
|
|
878
|
-
typeof e == "string" && (e =
|
|
874
|
+
typeof e == "string" && (e = De(e, "code"));
|
|
879
875
|
var r = e.constructor;
|
|
880
876
|
this.ya = function() {
|
|
881
877
|
return new r({
|
|
@@ -889,13 +885,13 @@ function g(e, t) {
|
|
|
889
885
|
var a, s;
|
|
890
886
|
for (s in this)
|
|
891
887
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
892
|
-
this.N =
|
|
893
|
-
`), "polyfills"), this.ba = void 0,
|
|
888
|
+
this.N = Xt(this, this.ra, null), this.Na = this.N.object, this.ra = De(this.ba.join(`
|
|
889
|
+
`), "polyfills"), this.ba = void 0, gt(this.ra), a = new w(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = n, a = new w(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
894
890
|
}
|
|
895
|
-
var
|
|
891
|
+
var Kn = {
|
|
896
892
|
C: !0,
|
|
897
893
|
kc: 5
|
|
898
|
-
},
|
|
894
|
+
}, Qt = {
|
|
899
895
|
configurable: !0,
|
|
900
896
|
enumerable: !0,
|
|
901
897
|
writable: !1
|
|
@@ -903,7 +899,7 @@ var zn = {
|
|
|
903
899
|
configurable: !0,
|
|
904
900
|
enumerable: !1,
|
|
905
901
|
writable: !0
|
|
906
|
-
},
|
|
902
|
+
}, oe = {
|
|
907
903
|
configurable: !0,
|
|
908
904
|
enumerable: !1,
|
|
909
905
|
writable: !1
|
|
@@ -911,11 +907,11 @@ var zn = {
|
|
|
911
907
|
configurable: !1,
|
|
912
908
|
enumerable: !1,
|
|
913
909
|
writable: !1
|
|
914
|
-
},
|
|
910
|
+
}, Gn = {
|
|
915
911
|
configurable: !1,
|
|
916
912
|
enumerable: !0,
|
|
917
913
|
writable: !0
|
|
918
|
-
},
|
|
914
|
+
}, dr = {
|
|
919
915
|
STEP_ERROR: !0
|
|
920
916
|
}, We = {
|
|
921
917
|
SCOPE_REFERENCE: !0
|
|
@@ -923,8 +919,8 @@ var zn = {
|
|
|
923
919
|
VALUE_IN_DESCRIPTOR: !0
|
|
924
920
|
}, Fe = {
|
|
925
921
|
REGEXP_TIMEOUT: !0
|
|
926
|
-
},
|
|
927
|
-
function
|
|
922
|
+
}, zn = [], ve = null, Ze = null, we = typeof globalThis == "undefined" ? void 0 : globalThis, ei = ["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();", "};"];
|
|
923
|
+
function en(e) {
|
|
928
924
|
var t = e >>> 0;
|
|
929
925
|
return t === Number(e) ? t : NaN;
|
|
930
926
|
}
|
|
@@ -932,37 +928,37 @@ function Qe(e) {
|
|
|
932
928
|
var t = e >>> 0;
|
|
933
929
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
934
930
|
}
|
|
935
|
-
function
|
|
931
|
+
function gt(e, t, r) {
|
|
936
932
|
t ? e.start = t : delete e.start, r ? e.end = r : delete e.end;
|
|
937
933
|
for (var n in e)
|
|
938
934
|
if (n !== "loc" && e.hasOwnProperty(n)) {
|
|
939
935
|
var i = e[n];
|
|
940
|
-
i && typeof i == "object" &&
|
|
936
|
+
i && typeof i == "object" && gt(i, t, r);
|
|
941
937
|
}
|
|
942
938
|
}
|
|
943
939
|
g.prototype.REGEXP_MODE = 2;
|
|
944
940
|
g.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
945
941
|
g.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
function
|
|
942
|
+
_ = g.prototype;
|
|
943
|
+
_.P = !1;
|
|
944
|
+
_.Ka = !1;
|
|
945
|
+
_.Kb = 0;
|
|
946
|
+
_.ic = 0;
|
|
947
|
+
function De(e, t) {
|
|
952
948
|
var r = {}, n;
|
|
953
|
-
for (n in
|
|
954
|
-
r[n] =
|
|
949
|
+
for (n in Kn)
|
|
950
|
+
r[n] = Kn[n];
|
|
955
951
|
return r.sourceFile = t, we.j.parse(e, r);
|
|
956
952
|
}
|
|
957
|
-
|
|
953
|
+
_.Jb = function(e) {
|
|
958
954
|
var t = this.o[0];
|
|
959
955
|
if (!t || t.node.type !== "Program")
|
|
960
956
|
throw Error("Expecting original AST to start with a Program node");
|
|
961
|
-
if (typeof e == "string" && (e =
|
|
957
|
+
if (typeof e == "string" && (e = De(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
962
958
|
throw Error("Expecting new AST to start with a Program node");
|
|
963
959
|
tt(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
964
960
|
};
|
|
965
|
-
|
|
961
|
+
_.lb = function() {
|
|
966
962
|
var e = this.o, t;
|
|
967
963
|
do {
|
|
968
964
|
var r = e[e.length - 1];
|
|
@@ -974,7 +970,7 @@ D.lb = function() {
|
|
|
974
970
|
if (r = this.ca[0], !r || r.time > Date.now())
|
|
975
971
|
r = null;
|
|
976
972
|
else {
|
|
977
|
-
this.ca.shift(), 0 <= r.interval &&
|
|
973
|
+
this.ca.shift(), 0 <= r.interval && pr(this, r, r.interval);
|
|
978
974
|
var n = new w(r.node, r.scope);
|
|
979
975
|
r.zb && (n.ia = 2, n.B = this.Na, n.U = r.zb, n.Qa = !0, n.F = r.Lb), r = n;
|
|
980
976
|
}
|
|
@@ -987,7 +983,7 @@ D.lb = function() {
|
|
|
987
983
|
try {
|
|
988
984
|
var a = this.rb[n.type](e, r, n);
|
|
989
985
|
} catch (s) {
|
|
990
|
-
if (s !==
|
|
986
|
+
if (s !== dr)
|
|
991
987
|
throw this.value !== s && (this.value = void 0), s;
|
|
992
988
|
} finally {
|
|
993
989
|
Ze = i;
|
|
@@ -1000,13 +996,13 @@ D.lb = function() {
|
|
|
1000
996
|
} while (!n.end && t > Date.now());
|
|
1001
997
|
return !0;
|
|
1002
998
|
};
|
|
1003
|
-
|
|
999
|
+
_.Eb = function() {
|
|
1004
1000
|
for (; !this.za && this.lb(); )
|
|
1005
1001
|
;
|
|
1006
1002
|
return this.za;
|
|
1007
1003
|
};
|
|
1008
|
-
function
|
|
1009
|
-
e.g(t, "NaN", NaN, ze), e.g(t, "Infinity", 1 / 0, ze), e.g(t, "undefined", void 0, ze), e.g(t, "window", t,
|
|
1004
|
+
function ti(e, t) {
|
|
1005
|
+
e.g(t, "NaN", NaN, ze), e.g(t, "Infinity", 1 / 0, ze), e.g(t, "undefined", void 0, ze), e.g(t, "window", t, Qt), e.g(t, "this", t, ze), e.g(t, "self", t), e.M = new F(null), e.Z = new F(e.M), ni(e, t), ri(e, t), t.xa = e.M, e.g(t, "constructor", e.v, S), ii(e, t), oi(e, t), ai(e, t), si(e, t), li(e, t), ci(e, t), ui(e, t), di(e, t), fi(e, t);
|
|
1010
1006
|
var r = e.i(function() {
|
|
1011
1007
|
throw EvalError("Can't happen");
|
|
1012
1008
|
}, !1);
|
|
@@ -1017,43 +1013,43 @@ function ni(e, t) {
|
|
|
1017
1013
|
try {
|
|
1018
1014
|
return a(s);
|
|
1019
1015
|
} catch (u) {
|
|
1020
|
-
|
|
1016
|
+
C(e, e.Gb, u.message);
|
|
1021
1017
|
}
|
|
1022
1018
|
};
|
|
1023
1019
|
}(n[i][0]), e.g(t, n[i][1], e.i(r, !1), S);
|
|
1024
1020
|
r = function(a) {
|
|
1025
|
-
return
|
|
1021
|
+
return Xn(e, !1, arguments);
|
|
1026
1022
|
}, e.g(t, "setTimeout", e.i(r, !1), S), r = function(a) {
|
|
1027
|
-
return
|
|
1023
|
+
return Xn(e, !0, arguments);
|
|
1028
1024
|
}, e.g(t, "setInterval", e.i(r, !1), S), r = function(a) {
|
|
1029
|
-
|
|
1025
|
+
Yn(e, a);
|
|
1030
1026
|
}, e.g(t, "clearTimeout", e.i(r, !1), S), r = function(a) {
|
|
1031
|
-
|
|
1027
|
+
Yn(e, a);
|
|
1032
1028
|
}, e.g(t, "clearInterval", e.i(r, !1), S), 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);
|
|
1033
1029
|
}
|
|
1034
|
-
|
|
1035
|
-
function
|
|
1030
|
+
_.Wb = 0;
|
|
1031
|
+
function ni(e, t) {
|
|
1036
1032
|
var r = /^[A-Za-z_$][\w$]*$/, n = function(i) {
|
|
1037
1033
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1038
1034
|
if (s) {
|
|
1039
1035
|
s = s.split(/\s*,\s*/);
|
|
1040
1036
|
for (var u = 0; u < s.length; u++) {
|
|
1041
1037
|
var f = s[u];
|
|
1042
|
-
r.test(f) ||
|
|
1038
|
+
r.test(f) || C(e, e.T, "Invalid function argument: " + f);
|
|
1043
1039
|
}
|
|
1044
1040
|
s = s.join(", ");
|
|
1045
1041
|
}
|
|
1046
1042
|
try {
|
|
1047
|
-
var m =
|
|
1043
|
+
var m = De("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1048
1044
|
} catch (v) {
|
|
1049
|
-
|
|
1045
|
+
C(e, e.T, "Invalid code: " + v.message);
|
|
1050
1046
|
}
|
|
1051
|
-
return m.body.length !== 1 &&
|
|
1047
|
+
return m.body.length !== 1 && C(e, e.T, "Invalid code in function body"), rn(e, m.body[0].la, e.N, "anonymous");
|
|
1052
1048
|
};
|
|
1053
1049
|
e.O = e.i(n, !0), e.g(t, "Function", e.O, S), e.g(e.O, "prototype", e.Z, S), e.g(e.Z, "constructor", e.O, S), e.Z.Ta = function() {
|
|
1054
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0,
|
|
1050
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, oe), e.Z.H = "Function", n = function(i, a) {
|
|
1055
1051
|
var s = e.o[e.o.length - 1];
|
|
1056
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof
|
|
1052
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof F ? s.F = fr(e, a) : C(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1057
1053
|
}, q(e, e.O, "apply", n), n = function(i) {
|
|
1058
1054
|
var a = e.o[e.o.length - 1];
|
|
1059
1055
|
a.U = this, a.B = i, a.F = [];
|
|
@@ -1066,29 +1062,29 @@ function ri(e, t) {
|
|
|
1066
1062
|
return this.valueOf();
|
|
1067
1063
|
}, q(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1), S);
|
|
1068
1064
|
}
|
|
1069
|
-
function
|
|
1065
|
+
function ri(e, t) {
|
|
1070
1066
|
function r(i) {
|
|
1071
|
-
i != null ||
|
|
1067
|
+
i != null || C(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1072
1068
|
}
|
|
1073
1069
|
var n = function(i) {
|
|
1074
1070
|
if (i == null)
|
|
1075
1071
|
return be(e) ? this : e.s(e.M);
|
|
1076
|
-
if (!(i instanceof
|
|
1072
|
+
if (!(i instanceof F)) {
|
|
1077
1073
|
var a = e.s(ye(e, i));
|
|
1078
1074
|
return a.data = i, a;
|
|
1079
1075
|
}
|
|
1080
1076
|
return i;
|
|
1081
1077
|
};
|
|
1082
1078
|
e.v = e.i(n, !0), e.g(e.v, "prototype", e.M, S), e.g(e.M, "constructor", e.v, S), e.g(t, "Object", e.v, S), n = function(i) {
|
|
1083
|
-
return r(i), ge(e, Object.getOwnPropertyNames(i instanceof
|
|
1079
|
+
return r(i), ge(e, Object.getOwnPropertyNames(i instanceof F ? i.h : i));
|
|
1084
1080
|
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1), S), n = function(i) {
|
|
1085
|
-
return r(i), i instanceof
|
|
1081
|
+
return r(i), i instanceof F && (i = i.h), ge(e, Object.keys(i));
|
|
1086
1082
|
}, e.g(e.v, "keys", e.i(n, !1), S), n = function(i) {
|
|
1087
|
-
return i === null ? e.s(null) : (i instanceof
|
|
1083
|
+
return i === null ? e.s(null) : (i instanceof F || C(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1088
1084
|
}, e.g(e.v, "create", e.i(n, !1), S), 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;", "};", "})();", ""), n = function(i, a, s) {
|
|
1089
|
-
return a = String(a), i instanceof
|
|
1085
|
+
return a = String(a), i instanceof F || C(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof F || C(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || C(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a, et, s.h), i;
|
|
1090
1086
|
}, e.g(e.v, "defineProperty", e.i(n, !1), S), 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;", "}", "});", ""), n = function(i, a) {
|
|
1091
|
-
if (i instanceof
|
|
1087
|
+
if (i instanceof F || C(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1092
1088
|
var s = Object.getOwnPropertyDescriptor(i.h, a), u = i.V[a];
|
|
1093
1089
|
return i = i.Y[a], a = e.s(e.M), u || i ? (e.g(a, "get", u), e.g(a, "set", i)) : (e.g(a, "value", s.value), e.g(a, "writable", s.writable)), e.g(a, "configurable", s.configurable), e.g(a, "enumerable", s.enumerable), a;
|
|
1094
1090
|
}
|
|
@@ -1097,11 +1093,11 @@ function ii(e, t) {
|
|
|
1097
1093
|
}, e.g(e.v, "getPrototypeOf", e.i(n, !1), S), n = function(i) {
|
|
1098
1094
|
return !!i && !i.preventExtensions;
|
|
1099
1095
|
}, e.g(e.v, "isExtensible", e.i(n, !1), S), n = function(i) {
|
|
1100
|
-
return i instanceof
|
|
1101
|
-
}, e.g(e.v, "preventExtensions", e.i(n, !1), S), q(e, e.v, "toString",
|
|
1102
|
-
return r(this), this instanceof
|
|
1096
|
+
return i instanceof F && (i.preventExtensions = !0), i;
|
|
1097
|
+
}, e.g(e.v, "preventExtensions", e.i(n, !1), S), q(e, e.v, "toString", F.prototype.toString), q(e, e.v, "toLocaleString", F.prototype.toString), q(e, e.v, "valueOf", F.prototype.valueOf), n = function(i) {
|
|
1098
|
+
return r(this), this instanceof F ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1103
1099
|
}, q(e, e.v, "hasOwnProperty", n), n = function(i) {
|
|
1104
|
-
return r(this), this instanceof
|
|
1100
|
+
return r(this), this instanceof F ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1105
1101
|
}, q(e, e.v, "propertyIsEnumerable", n), n = function(i) {
|
|
1106
1102
|
for (; ; ) {
|
|
1107
1103
|
if (i = ye(e, i), !i)
|
|
@@ -1111,11 +1107,11 @@ function ii(e, t) {
|
|
|
1111
1107
|
}
|
|
1112
1108
|
}, q(e, e.v, "isPrototypeOf", n);
|
|
1113
1109
|
}
|
|
1114
|
-
function
|
|
1110
|
+
function ii(e, t) {
|
|
1115
1111
|
var r = function(n) {
|
|
1116
|
-
var i = be(e) ? this :
|
|
1112
|
+
var i = be(e) ? this : _e(e), a = arguments[0];
|
|
1117
1113
|
if (arguments.length === 1 && typeof a == "number")
|
|
1118
|
-
isNaN(
|
|
1114
|
+
isNaN(en(a)) && C(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1119
1115
|
else {
|
|
1120
1116
|
for (a = 0; a < arguments.length; a++)
|
|
1121
1117
|
i.h[a] = arguments[a];
|
|
@@ -1131,7 +1127,7 @@ function oi(e, t) {
|
|
|
1131
1127
|
writable: !0
|
|
1132
1128
|
}), 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(',');", "}", ");", "})();", "");
|
|
1133
1129
|
}
|
|
1134
|
-
function
|
|
1130
|
+
function oi(e, t) {
|
|
1135
1131
|
var r = function(n) {
|
|
1136
1132
|
return n = arguments.length ? we.String(n) : "", be(e) ? (this.data = n, this) : n;
|
|
1137
1133
|
};
|
|
@@ -1142,7 +1138,7 @@ function ai(e, t) {
|
|
|
1142
1138
|
try {
|
|
1143
1139
|
return String(this).localeCompare(n, i, a);
|
|
1144
1140
|
} catch (s) {
|
|
1145
|
-
|
|
1141
|
+
C(e, e.D, "localeCompare: " + s.message);
|
|
1146
1142
|
}
|
|
1147
1143
|
}, q(e, e.J, "localeCompare", r), r = function(n, i, a) {
|
|
1148
1144
|
var s = String(this);
|
|
@@ -1214,12 +1210,12 @@ function ai(e, t) {
|
|
|
1214
1210
|
a(s.replace(n, i));
|
|
1215
1211
|
}, qe(e, e.J, "replace", r), 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;", "};", "})();", "");
|
|
1216
1212
|
}
|
|
1217
|
-
function
|
|
1213
|
+
function ai(e, t) {
|
|
1218
1214
|
e.mb = e.i(function(r) {
|
|
1219
1215
|
return r = we.Boolean(r), be(e) ? (this.data = r, this) : r;
|
|
1220
1216
|
}, !0), e.g(t, "Boolean", e.mb, S);
|
|
1221
1217
|
}
|
|
1222
|
-
function
|
|
1218
|
+
function si(e, t) {
|
|
1223
1219
|
var r = function(n) {
|
|
1224
1220
|
return n = arguments.length ? we.Number(n) : 0, be(e) ? (this.data = n, this) : n;
|
|
1225
1221
|
};
|
|
@@ -1229,36 +1225,36 @@ function li(e, t) {
|
|
|
1229
1225
|
try {
|
|
1230
1226
|
return Number(this).toExponential(n);
|
|
1231
1227
|
} catch (i) {
|
|
1232
|
-
|
|
1228
|
+
C(e, e.D, i.message);
|
|
1233
1229
|
}
|
|
1234
1230
|
}, q(e, e.aa, "toExponential", r), r = function(n) {
|
|
1235
1231
|
try {
|
|
1236
1232
|
return Number(this).toFixed(n);
|
|
1237
1233
|
} catch (i) {
|
|
1238
|
-
|
|
1234
|
+
C(e, e.D, i.message);
|
|
1239
1235
|
}
|
|
1240
1236
|
}, q(e, e.aa, "toFixed", r), r = function(n) {
|
|
1241
1237
|
try {
|
|
1242
1238
|
return Number(this).toPrecision(n);
|
|
1243
1239
|
} catch (i) {
|
|
1244
|
-
|
|
1240
|
+
C(e, e.D, i.message);
|
|
1245
1241
|
}
|
|
1246
1242
|
}, q(e, e.aa, "toPrecision", r), r = function(n) {
|
|
1247
1243
|
try {
|
|
1248
1244
|
return Number(this).toString(n);
|
|
1249
1245
|
} catch (i) {
|
|
1250
|
-
|
|
1246
|
+
C(e, e.D, i.message);
|
|
1251
1247
|
}
|
|
1252
1248
|
}, q(e, e.aa, "toString", r), r = function(n, i) {
|
|
1253
1249
|
n = n ? e.R(n) : void 0, i = i ? e.R(i) : void 0;
|
|
1254
1250
|
try {
|
|
1255
1251
|
return Number(this).toLocaleString(n, i);
|
|
1256
1252
|
} catch (a) {
|
|
1257
|
-
|
|
1253
|
+
C(e, e.D, "toLocaleString: " + a.message);
|
|
1258
1254
|
}
|
|
1259
1255
|
}, q(e, e.aa, "toLocaleString", r);
|
|
1260
1256
|
}
|
|
1261
|
-
function
|
|
1257
|
+
function li(e, t) {
|
|
1262
1258
|
var r = function(i, a) {
|
|
1263
1259
|
if (!be(e))
|
|
1264
1260
|
return we.Date();
|
|
@@ -1270,14 +1266,14 @@ function ci(e, t) {
|
|
|
1270
1266
|
r = function(i) {
|
|
1271
1267
|
return function(a) {
|
|
1272
1268
|
var s = this.data;
|
|
1273
|
-
s instanceof Date ||
|
|
1269
|
+
s instanceof Date || C(e, e.j, i + " not called on a Date");
|
|
1274
1270
|
for (var u = [], f = 0; f < arguments.length; f++)
|
|
1275
1271
|
u[f] = e.R(arguments[f]);
|
|
1276
1272
|
return s[i].apply(s, u);
|
|
1277
1273
|
};
|
|
1278
1274
|
}(t[n]), q(e, e.$, t[n], r);
|
|
1279
1275
|
}
|
|
1280
|
-
function
|
|
1276
|
+
function ci(e, t) {
|
|
1281
1277
|
var r = function(n, i) {
|
|
1282
1278
|
if (be(e))
|
|
1283
1279
|
var a = this;
|
|
@@ -1286,19 +1282,19 @@ function ui(e, t) {
|
|
|
1286
1282
|
return n;
|
|
1287
1283
|
a = e.s(e.Ma);
|
|
1288
1284
|
}
|
|
1289
|
-
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) ||
|
|
1285
|
+
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) || C(e, e.T, "Invalid regexp flag: " + i);
|
|
1290
1286
|
try {
|
|
1291
1287
|
var s = new we.RegExp(n, i);
|
|
1292
1288
|
} catch (u) {
|
|
1293
|
-
|
|
1289
|
+
C(e, e.T, u.message);
|
|
1294
1290
|
}
|
|
1295
|
-
return
|
|
1291
|
+
return tn(e, a, s), a;
|
|
1296
1292
|
};
|
|
1297
|
-
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, S), e.g(e.I.h.prototype, "global", void 0,
|
|
1293
|
+
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, S), e.g(e.I.h.prototype, "global", void 0, oe), e.g(e.I.h.prototype, "ignoreCase", void 0, oe), e.g(e.I.h.prototype, "multiline", void 0, oe), e.g(e.I.h.prototype, "source", "(?:)", oe), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), r = function(n, i) {
|
|
1298
1294
|
function a(v) {
|
|
1299
1295
|
if (v) {
|
|
1300
|
-
var
|
|
1301
|
-
return e.g(
|
|
1296
|
+
var y = ge(e, v);
|
|
1297
|
+
return e.g(y, "index", v.index), e.g(y, "input", v.input), y;
|
|
1302
1298
|
}
|
|
1303
1299
|
return null;
|
|
1304
1300
|
}
|
|
@@ -1319,45 +1315,45 @@ function ui(e, t) {
|
|
|
1319
1315
|
n = s.exec(n), e.g(this, "lastIndex", s.lastIndex), i(a(n));
|
|
1320
1316
|
}, qe(e, e.I, "exec", r);
|
|
1321
1317
|
}
|
|
1322
|
-
function
|
|
1318
|
+
function ui(e, t) {
|
|
1323
1319
|
function r(n) {
|
|
1324
1320
|
var i = e.i(function(a) {
|
|
1325
1321
|
var s = be(e) ? this : e.Aa(i);
|
|
1326
|
-
return
|
|
1322
|
+
return zt(e, s, a), s;
|
|
1327
1323
|
}, !0);
|
|
1328
1324
|
return e.g(i, "prototype", e.Aa(e.D), S), e.g(i.h.prototype, "name", n, S), e.g(t, n, i, S), i;
|
|
1329
1325
|
}
|
|
1330
1326
|
e.D = e.i(function(n) {
|
|
1331
1327
|
var i = be(e) ? this : e.Aa(e.D);
|
|
1332
|
-
return
|
|
1328
|
+
return zt(e, i, n), i;
|
|
1333
1329
|
}, !0), e.g(t, "Error", e.D, S), e.g(e.D.h.prototype, "message", "", S), e.g(e.D.h.prototype, "name", "Error", S), r("EvalError"), e.ob = r("RangeError"), e.pb = r("ReferenceError"), e.T = r("SyntaxError"), e.j = r("TypeError"), e.Gb = r("URIError");
|
|
1334
1330
|
}
|
|
1335
|
-
function
|
|
1331
|
+
function di(e, t) {
|
|
1336
1332
|
var r = e.s(e.M);
|
|
1337
1333
|
e.g(t, "Math", r, S);
|
|
1338
1334
|
var n = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1339
1335
|
for (t = 0; t < n.length; t++)
|
|
1340
|
-
e.g(r, n[t], Math[n[t]],
|
|
1336
|
+
e.g(r, n[t], Math[n[t]], oe);
|
|
1341
1337
|
for (n = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < n.length; t++)
|
|
1342
1338
|
e.g(r, n[t], e.i(Math[n[t]], !1), S);
|
|
1343
1339
|
}
|
|
1344
|
-
function
|
|
1340
|
+
function fi(e, t) {
|
|
1345
1341
|
var r = e.s(e.M);
|
|
1346
1342
|
e.g(t, "JSON", r, S), t = function(n) {
|
|
1347
1343
|
try {
|
|
1348
1344
|
var i = JSON.parse(String(n));
|
|
1349
1345
|
} catch (a) {
|
|
1350
|
-
|
|
1346
|
+
C(e, e.T, a.message);
|
|
1351
1347
|
}
|
|
1352
1348
|
return e.Ia(i);
|
|
1353
1349
|
}, e.g(r, "parse", e.i(t, !1)), t = function(n, i, a) {
|
|
1354
|
-
i && i.H === "Function" ?
|
|
1350
|
+
i && i.H === "Function" ? C(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = fr(e, i), i = i.filter(function(u) {
|
|
1355
1351
|
return typeof u == "string" || typeof u == "number";
|
|
1356
1352
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), n = e.R(n);
|
|
1357
1353
|
try {
|
|
1358
1354
|
var s = JSON.stringify(n, i, a);
|
|
1359
1355
|
} catch (u) {
|
|
1360
|
-
|
|
1356
|
+
C(e, e.j, u.message);
|
|
1361
1357
|
}
|
|
1362
1358
|
return s;
|
|
1363
1359
|
}, e.g(r, "stringify", e.i(t, !1));
|
|
@@ -1374,10 +1370,10 @@ function Q(e, t, r) {
|
|
|
1374
1370
|
}
|
|
1375
1371
|
return !1;
|
|
1376
1372
|
}
|
|
1377
|
-
function
|
|
1378
|
-
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex, S), e.g(t, "source", r.source,
|
|
1373
|
+
function tn(e, t, r) {
|
|
1374
|
+
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex, S), e.g(t, "source", r.source, oe), e.g(t, "global", r.global, oe), e.g(t, "ignoreCase", r.ignoreCase, oe), e.g(t, "multiline", r.multiline, oe);
|
|
1379
1375
|
}
|
|
1380
|
-
function
|
|
1376
|
+
function zt(e, t, r) {
|
|
1381
1377
|
r && e.g(t, "message", String(r), S), r = [];
|
|
1382
1378
|
for (var n = e.o.length - 1; 0 <= n; n--) {
|
|
1383
1379
|
var i = e.o[n], a = i.node;
|
|
@@ -1394,9 +1390,9 @@ function Yt(e, t, r) {
|
|
|
1394
1390
|
}
|
|
1395
1391
|
e.g(t, "stack", a.trim(), S);
|
|
1396
1392
|
}
|
|
1397
|
-
|
|
1393
|
+
_.ha = function() {
|
|
1398
1394
|
var e = this.ha.Mb;
|
|
1399
|
-
return e || (e = new Blob([
|
|
1395
|
+
return e || (e = new Blob([ei.join(`
|
|
1400
1396
|
`)], {
|
|
1401
1397
|
type: "application/javascript"
|
|
1402
1398
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1408,7 +1404,7 @@ function Xe(e, t, r, n, i) {
|
|
|
1408
1404
|
try {
|
|
1409
1405
|
return ve.runInNewContext(t, r, a);
|
|
1410
1406
|
} catch {
|
|
1411
|
-
i(null),
|
|
1407
|
+
i(null), C(e, e.D, "RegExp Timeout: " + n);
|
|
1412
1408
|
}
|
|
1413
1409
|
return Fe;
|
|
1414
1410
|
}
|
|
@@ -1429,26 +1425,26 @@ function Ye(e, t, r) {
|
|
|
1429
1425
|
n = !!ve;
|
|
1430
1426
|
} else
|
|
1431
1427
|
n = !1;
|
|
1432
|
-
n || (r(null),
|
|
1428
|
+
n || (r(null), C(e, e.D, "Regular expressions not supported: " + t));
|
|
1433
1429
|
}
|
|
1434
1430
|
function Je(e, t, r, n) {
|
|
1435
1431
|
return setTimeout(function() {
|
|
1436
1432
|
r.terminate(), n(null);
|
|
1437
1433
|
try {
|
|
1438
|
-
|
|
1434
|
+
C(e, e.D, "RegExp Timeout: " + t);
|
|
1439
1435
|
} catch {
|
|
1440
1436
|
}
|
|
1441
1437
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1442
1438
|
}
|
|
1443
|
-
|
|
1439
|
+
_.Aa = function(e) {
|
|
1444
1440
|
return this.s(e && e.h.prototype);
|
|
1445
1441
|
};
|
|
1446
|
-
|
|
1442
|
+
_.s = function(e) {
|
|
1447
1443
|
if (typeof e != "object")
|
|
1448
1444
|
throw Error("Non object prototype");
|
|
1449
|
-
return e = new
|
|
1445
|
+
return e = new F(e), Q(this, e, this.D) && (e.H = "Error"), e;
|
|
1450
1446
|
};
|
|
1451
|
-
function
|
|
1447
|
+
function _e(e) {
|
|
1452
1448
|
var t = e.s(e.La);
|
|
1453
1449
|
return e.g(t, "length", 0, {
|
|
1454
1450
|
configurable: !1,
|
|
@@ -1456,29 +1452,29 @@ function De(e) {
|
|
|
1456
1452
|
writable: !0
|
|
1457
1453
|
}), t.H = "Array", t;
|
|
1458
1454
|
}
|
|
1459
|
-
function
|
|
1455
|
+
function nn(e, t, r) {
|
|
1460
1456
|
var n = e.s(e.Z);
|
|
1461
|
-
return r ? (r = e.s(e.M), e.g(n, "prototype", r, S), e.g(r, "constructor", n, S)) : n.Ab = !0, e.g(n, "length", t,
|
|
1457
|
+
return r ? (r = e.s(e.M), e.g(n, "prototype", r, S), e.g(r, "constructor", n, S)) : n.Ab = !0, e.g(n, "length", t, oe), n.H = "Function", n;
|
|
1462
1458
|
}
|
|
1463
|
-
function
|
|
1464
|
-
var i =
|
|
1465
|
-
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "",
|
|
1459
|
+
function rn(e, t, r, n) {
|
|
1460
|
+
var i = nn(e, t.oa.length, !0);
|
|
1461
|
+
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "", oe), i;
|
|
1466
1462
|
}
|
|
1467
|
-
|
|
1468
|
-
return t =
|
|
1463
|
+
_.i = function(e, t) {
|
|
1464
|
+
return t = nn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, oe), t;
|
|
1469
1465
|
};
|
|
1470
|
-
|
|
1471
|
-
var t =
|
|
1472
|
-
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1466
|
+
_.ub = function(e) {
|
|
1467
|
+
var t = nn(this, e.length, !0);
|
|
1468
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, oe), t;
|
|
1473
1469
|
};
|
|
1474
|
-
|
|
1475
|
-
if (e instanceof
|
|
1470
|
+
_.Ia = function(e) {
|
|
1471
|
+
if (e instanceof F)
|
|
1476
1472
|
throw Error("Object is already pseudo");
|
|
1477
1473
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1478
1474
|
return e;
|
|
1479
1475
|
if (e instanceof RegExp) {
|
|
1480
1476
|
var t = this.s(this.Ma);
|
|
1481
|
-
return
|
|
1477
|
+
return tn(this, t, e), t;
|
|
1482
1478
|
}
|
|
1483
1479
|
if (e instanceof Date)
|
|
1484
1480
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1492,7 +1488,7 @@ D.Ia = function(e) {
|
|
|
1492
1488
|
}, !!t);
|
|
1493
1489
|
}
|
|
1494
1490
|
if (Array.isArray(e)) {
|
|
1495
|
-
t =
|
|
1491
|
+
t = _e(this);
|
|
1496
1492
|
for (var n = 0; n < e.length; n++)
|
|
1497
1493
|
n in e && this.g(t, n, this.Ia(e[n]));
|
|
1498
1494
|
return t;
|
|
@@ -1502,10 +1498,10 @@ D.Ia = function(e) {
|
|
|
1502
1498
|
this.g(t, n, this.Ia(e[n]));
|
|
1503
1499
|
return t;
|
|
1504
1500
|
};
|
|
1505
|
-
|
|
1501
|
+
_.R = function(e, t) {
|
|
1506
1502
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1507
1503
|
return e;
|
|
1508
|
-
if (!(e instanceof
|
|
1504
|
+
if (!(e instanceof F))
|
|
1509
1505
|
throw Error("Object is not pseudo");
|
|
1510
1506
|
if (Q(this, e, this.I))
|
|
1511
1507
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
@@ -1521,7 +1517,7 @@ D.R = function(e, t) {
|
|
|
1521
1517
|
if (t.hb.push(e), Q(this, e, this.qa)) {
|
|
1522
1518
|
r = [], t.Sa.push(r);
|
|
1523
1519
|
for (var n = this.G(e, "length"), i = 0; i < n; i++)
|
|
1524
|
-
|
|
1520
|
+
vt(this, e, i) && (r[i] = this.R(this.G(e, i), t));
|
|
1525
1521
|
} else
|
|
1526
1522
|
for (n in r = {}, t.Sa.push(r), e.h)
|
|
1527
1523
|
i = this.R(e.h[n], t), Object.defineProperty(r, n, {
|
|
@@ -1533,15 +1529,15 @@ D.R = function(e, t) {
|
|
|
1533
1529
|
return t.hb.pop(), t.Sa.pop(), r;
|
|
1534
1530
|
};
|
|
1535
1531
|
function ge(e, t) {
|
|
1536
|
-
for (var r =
|
|
1532
|
+
for (var r = _e(e), n = Object.getOwnPropertyNames(t), i = 0; i < n.length; i++)
|
|
1537
1533
|
e.g(r, n[i], t[n[i]]);
|
|
1538
1534
|
return r;
|
|
1539
1535
|
}
|
|
1540
|
-
function
|
|
1536
|
+
function fr(e, t) {
|
|
1541
1537
|
var r = [], n;
|
|
1542
1538
|
for (n in t.h)
|
|
1543
1539
|
r[n] = e.G(t, n);
|
|
1544
|
-
return r.length =
|
|
1540
|
+
return r.length = en(e.G(t, "length")) || 0, r;
|
|
1545
1541
|
}
|
|
1546
1542
|
function ye(e, t) {
|
|
1547
1543
|
switch (typeof t) {
|
|
@@ -1554,10 +1550,10 @@ function ye(e, t) {
|
|
|
1554
1550
|
}
|
|
1555
1551
|
return t ? t.xa : null;
|
|
1556
1552
|
}
|
|
1557
|
-
|
|
1553
|
+
_.G = function(e, t) {
|
|
1558
1554
|
if (this.P)
|
|
1559
1555
|
throw Error("Getter not supported in that context");
|
|
1560
|
-
if (t = String(t), e != null ||
|
|
1556
|
+
if (t = String(t), e != null || C(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof F))
|
|
1561
1557
|
throw TypeError("Expecting native value or pseudo object");
|
|
1562
1558
|
if (t === "length") {
|
|
1563
1559
|
if (Q(this, e, this.J))
|
|
@@ -1572,8 +1568,8 @@ D.G = function(e, t) {
|
|
|
1572
1568
|
return (r = e.V[t]) ? (this.P = !0, r) : e.h[t];
|
|
1573
1569
|
while (e = ye(this, e));
|
|
1574
1570
|
};
|
|
1575
|
-
function
|
|
1576
|
-
if (!(t instanceof
|
|
1571
|
+
function vt(e, t, r) {
|
|
1572
|
+
if (!(t instanceof F))
|
|
1577
1573
|
throw TypeError("Primitive data type has no properties");
|
|
1578
1574
|
if (r = String(r), r === "length" && Q(e, t, e.J))
|
|
1579
1575
|
return !0;
|
|
@@ -1588,18 +1584,18 @@ function yt(e, t, r) {
|
|
|
1588
1584
|
while (t = ye(e, t));
|
|
1589
1585
|
return !1;
|
|
1590
1586
|
}
|
|
1591
|
-
|
|
1587
|
+
_.g = function(e, t, r, n) {
|
|
1592
1588
|
if (this.Ka)
|
|
1593
1589
|
throw Error("Setter not supported in that context");
|
|
1594
|
-
if (t = String(t), e != null ||
|
|
1590
|
+
if (t = String(t), e != null || C(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof F))
|
|
1595
1591
|
throw TypeError("Expecting native value or pseudo object");
|
|
1596
|
-
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) &&
|
|
1597
|
-
var i = !this.o ||
|
|
1598
|
-
if (e instanceof
|
|
1592
|
+
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) && C(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1593
|
+
var i = !this.o || on(this).S;
|
|
1594
|
+
if (e instanceof F) {
|
|
1599
1595
|
if (Q(this, e, this.J)) {
|
|
1600
1596
|
var a = Qe(t);
|
|
1601
1597
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
1602
|
-
i &&
|
|
1598
|
+
i && C(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1603
1599
|
return;
|
|
1604
1600
|
}
|
|
1605
1601
|
}
|
|
@@ -1610,7 +1606,7 @@ D.g = function(e, t, r, n) {
|
|
|
1610
1606
|
return;
|
|
1611
1607
|
r = n.value;
|
|
1612
1608
|
}
|
|
1613
|
-
if (r =
|
|
1609
|
+
if (r = en(r), isNaN(r) && C(this, this.ob, "Invalid array length"), r < a)
|
|
1614
1610
|
for (s in e.h) {
|
|
1615
1611
|
var s = Qe(s);
|
|
1616
1612
|
!isNaN(s) && r <= s && delete e.h[s];
|
|
@@ -1623,7 +1619,7 @@ D.g = function(e, t, r, n) {
|
|
|
1623
1619
|
try {
|
|
1624
1620
|
Object.defineProperty(e.h, t, i);
|
|
1625
1621
|
} catch {
|
|
1626
|
-
|
|
1622
|
+
C(this, this.j, "Cannot redefine property: " + t);
|
|
1627
1623
|
}
|
|
1628
1624
|
"get" in n && !n.get && delete e.V[t], "set" in n && !n.set && delete e.Y[t];
|
|
1629
1625
|
} else {
|
|
@@ -1637,23 +1633,23 @@ D.g = function(e, t, r, n) {
|
|
|
1637
1633
|
if (n.Y && n.Y[t])
|
|
1638
1634
|
return this.Ka = !0, n.Y[t];
|
|
1639
1635
|
if (n.V && n.V[t])
|
|
1640
|
-
i &&
|
|
1636
|
+
i && C(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1641
1637
|
else
|
|
1642
1638
|
try {
|
|
1643
1639
|
e.h[t] = r;
|
|
1644
1640
|
} catch {
|
|
1645
|
-
i &&
|
|
1641
|
+
i && C(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1646
1642
|
}
|
|
1647
1643
|
}
|
|
1648
1644
|
else
|
|
1649
|
-
i &&
|
|
1645
|
+
i && C(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1650
1646
|
} else
|
|
1651
|
-
i &&
|
|
1647
|
+
i && C(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1652
1648
|
};
|
|
1653
|
-
|
|
1649
|
+
_.g.ac = function() {
|
|
1654
1650
|
throw Error("Placeholder getter");
|
|
1655
1651
|
};
|
|
1656
|
-
|
|
1652
|
+
_.g.bc = function() {
|
|
1657
1653
|
throw Error("Placeholder setter");
|
|
1658
1654
|
};
|
|
1659
1655
|
function q(e, t, r, n) {
|
|
@@ -1662,12 +1658,12 @@ function q(e, t, r, n) {
|
|
|
1662
1658
|
function qe(e, t, r, n) {
|
|
1663
1659
|
e.g(t.h.prototype, r, e.ub(n), S);
|
|
1664
1660
|
}
|
|
1665
|
-
function
|
|
1661
|
+
function on(e) {
|
|
1666
1662
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1667
1663
|
throw Error("No scope found");
|
|
1668
1664
|
return e;
|
|
1669
1665
|
}
|
|
1670
|
-
function
|
|
1666
|
+
function Xt(e, t, r) {
|
|
1671
1667
|
var n = !1;
|
|
1672
1668
|
if (r && r.S)
|
|
1673
1669
|
n = !0;
|
|
@@ -1675,38 +1671,38 @@ function Jt(e, t, r) {
|
|
|
1675
1671
|
var i = t.body && t.body[0];
|
|
1676
1672
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (n = !0);
|
|
1677
1673
|
}
|
|
1678
|
-
return i = e.s(null), n = new
|
|
1674
|
+
return i = e.s(null), n = new mr(r, n, i), r || ti(e, n.object), tt(e, t, n), n;
|
|
1679
1675
|
}
|
|
1680
|
-
function
|
|
1676
|
+
function an(e, t, r) {
|
|
1681
1677
|
if (!t)
|
|
1682
1678
|
throw Error("parentScope required");
|
|
1683
|
-
return e = r || e.s(null), new
|
|
1679
|
+
return e = r || e.s(null), new mr(t, t.S, e);
|
|
1684
1680
|
}
|
|
1685
|
-
function
|
|
1686
|
-
for (var r =
|
|
1681
|
+
function sn(e, t) {
|
|
1682
|
+
for (var r = on(e); r && r !== e.N; ) {
|
|
1687
1683
|
if (t in r.object.h)
|
|
1688
1684
|
return r.object.h[t];
|
|
1689
1685
|
r = r.Va;
|
|
1690
1686
|
}
|
|
1691
|
-
if (r === e.N &&
|
|
1687
|
+
if (r === e.N && vt(e, r.object, t))
|
|
1692
1688
|
return e.G(r.object, t);
|
|
1693
|
-
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" ||
|
|
1689
|
+
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || C(e, e.pb, t + " is not defined");
|
|
1694
1690
|
}
|
|
1695
|
-
function
|
|
1696
|
-
for (var n =
|
|
1691
|
+
function hr(e, t, r) {
|
|
1692
|
+
for (var n = on(e), i = n.S; n && n !== e.N; ) {
|
|
1697
1693
|
if (t in n.object.h) {
|
|
1698
1694
|
try {
|
|
1699
1695
|
n.object.h[t] = r;
|
|
1700
1696
|
} catch {
|
|
1701
|
-
i &&
|
|
1697
|
+
i && C(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1702
1698
|
}
|
|
1703
1699
|
return;
|
|
1704
1700
|
}
|
|
1705
1701
|
n = n.Va;
|
|
1706
1702
|
}
|
|
1707
|
-
if (n === e.N && (!i ||
|
|
1703
|
+
if (n === e.N && (!i || vt(e, n.object, t)))
|
|
1708
1704
|
return e.g(n.object, t, r);
|
|
1709
|
-
|
|
1705
|
+
C(e, e.pb, t + " is not defined");
|
|
1710
1706
|
}
|
|
1711
1707
|
function tt(e, t, r) {
|
|
1712
1708
|
if (t.jb)
|
|
@@ -1754,20 +1750,20 @@ function tt(e, t, r) {
|
|
|
1754
1750
|
t.jb = n;
|
|
1755
1751
|
}
|
|
1756
1752
|
for (s in n)
|
|
1757
|
-
n[s] === !0 ? e.g(r.object, s, void 0,
|
|
1753
|
+
n[s] === !0 ? e.g(r.object, s, void 0, Gn) : e.g(r.object, s, rn(e, n[s], r), Gn);
|
|
1758
1754
|
return n;
|
|
1759
1755
|
}
|
|
1760
1756
|
function be(e) {
|
|
1761
1757
|
return e.o[e.o.length - 1].isConstructor;
|
|
1762
1758
|
}
|
|
1763
|
-
function
|
|
1764
|
-
return t[0] === We ?
|
|
1759
|
+
function ln(e, t) {
|
|
1760
|
+
return t[0] === We ? sn(e, t[1]) : e.G(t[0], t[1]);
|
|
1765
1761
|
}
|
|
1766
|
-
function
|
|
1767
|
-
return t[0] === We ?
|
|
1762
|
+
function cn(e, t, r) {
|
|
1763
|
+
return t[0] === We ? hr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1768
1764
|
}
|
|
1769
|
-
function
|
|
1770
|
-
throw e.N ? (r !== void 0 && t instanceof
|
|
1765
|
+
function C(e, t, r) {
|
|
1766
|
+
throw e.N ? (r !== void 0 && t instanceof F && (t = e.Aa(t), zt(e, t, r)), it(e, 4, t), dr) : r === void 0 ? t : r;
|
|
1771
1767
|
}
|
|
1772
1768
|
function it(e, t, r, n) {
|
|
1773
1769
|
if (t === 0)
|
|
@@ -1814,60 +1810,60 @@ function it(e, t, r, n) {
|
|
|
1814
1810
|
URIError
|
|
1815
1811
|
}, n = String(e.G(r, "name")), i = e.G(r, "message").valueOf(), t = (t[n] || Error)(i), t.stack = String(e.G(r, "stack"))) : t = String(r), e.value = t, t;
|
|
1816
1812
|
}
|
|
1817
|
-
function
|
|
1813
|
+
function ie(e, t) {
|
|
1818
1814
|
switch (t.type) {
|
|
1819
1815
|
case "ArrayExpression":
|
|
1820
1816
|
return "[...]";
|
|
1821
1817
|
case "BinaryExpression":
|
|
1822
1818
|
case "LogicalExpression":
|
|
1823
|
-
return
|
|
1819
|
+
return ie(e, t.left) + " " + t.operator + " " + ie(e, t.right);
|
|
1824
1820
|
case "CallExpression":
|
|
1825
|
-
return
|
|
1821
|
+
return ie(e, t.callee) + "(...)";
|
|
1826
1822
|
case "ConditionalExpression":
|
|
1827
|
-
return
|
|
1823
|
+
return ie(e, t.test) + " ? " + ie(e, t.da) + " : " + ie(e, t.alternate);
|
|
1828
1824
|
case "Identifier":
|
|
1829
1825
|
return t.name;
|
|
1830
1826
|
case "Literal":
|
|
1831
1827
|
return t.raw;
|
|
1832
1828
|
case "MemberExpression":
|
|
1833
|
-
var r =
|
|
1834
|
-
return e =
|
|
1829
|
+
var r = ie(e, t.object);
|
|
1830
|
+
return e = ie(e, t.Wa), t.bb ? r + "[" + e + "]" : r + "." + e;
|
|
1835
1831
|
case "NewExpression":
|
|
1836
|
-
return "new " +
|
|
1832
|
+
return "new " + ie(e, t.callee) + "(...)";
|
|
1837
1833
|
case "ObjectExpression":
|
|
1838
1834
|
return "{...}";
|
|
1839
1835
|
case "ThisExpression":
|
|
1840
1836
|
return "this";
|
|
1841
1837
|
case "UnaryExpression":
|
|
1842
|
-
return t.operator + " " +
|
|
1838
|
+
return t.operator + " " + ie(e, t.K);
|
|
1843
1839
|
case "UpdateExpression":
|
|
1844
|
-
return r =
|
|
1840
|
+
return r = ie(e, t.K), t.prefix ? t.operator + r : r + t.operator;
|
|
1845
1841
|
}
|
|
1846
1842
|
return "???";
|
|
1847
1843
|
}
|
|
1848
|
-
function
|
|
1844
|
+
function Xn(e, t, r) {
|
|
1849
1845
|
var n = e.o[e.o.length - 1], i = Array.from(r), a = i.shift();
|
|
1850
1846
|
r = Math.max(Number(i.shift() || 0), 0);
|
|
1851
1847
|
var s = e.ya();
|
|
1852
|
-
if (a instanceof
|
|
1848
|
+
if (a instanceof F && a.H === "Function") {
|
|
1853
1849
|
var u = a;
|
|
1854
1850
|
s.type = "CallExpression", n = n.scope;
|
|
1855
1851
|
} else {
|
|
1856
1852
|
try {
|
|
1857
|
-
var f =
|
|
1853
|
+
var f = De(String(a), "taskCode" + e.ic++);
|
|
1858
1854
|
} catch (m) {
|
|
1859
|
-
|
|
1855
|
+
C(e, e.T, "Invalid code: " + m.message);
|
|
1860
1856
|
}
|
|
1861
|
-
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0],
|
|
1857
|
+
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0], gt(s, n ? n.start : void 0, n ? n.end : void 0), n = e.N, i.length = 0;
|
|
1862
1858
|
}
|
|
1863
|
-
return t = new
|
|
1859
|
+
return t = new hi(u, i, n, s, t ? r : -1), pr(e, t, r), t.Db;
|
|
1864
1860
|
}
|
|
1865
|
-
function
|
|
1861
|
+
function pr(e, t, r) {
|
|
1866
1862
|
t.time = Date.now() + r, e.ca.push(t), e.ca.sort(function(n, i) {
|
|
1867
1863
|
return n.time - i.time;
|
|
1868
1864
|
});
|
|
1869
1865
|
}
|
|
1870
|
-
function
|
|
1866
|
+
function Yn(e, t) {
|
|
1871
1867
|
for (var r = 0; r < e.ca.length; r++)
|
|
1872
1868
|
if (e.ca[r].Db == t) {
|
|
1873
1869
|
e.ca.splice(r, 1);
|
|
@@ -1881,52 +1877,52 @@ function ot(e, t, r) {
|
|
|
1881
1877
|
var n = e.ya();
|
|
1882
1878
|
return n.type = "CallExpression", e = new w(n, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1883
1879
|
}
|
|
1884
|
-
function
|
|
1880
|
+
function un(e, t, r, n) {
|
|
1885
1881
|
if (!e.Ka)
|
|
1886
1882
|
throw Error("Unexpected call to createSetter");
|
|
1887
1883
|
e.Ka = !1, r = Array.isArray(r) ? r[0] : e.Na;
|
|
1888
1884
|
var i = e.ya();
|
|
1889
1885
|
return i.type = "CallExpression", e = new w(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [n], e;
|
|
1890
1886
|
}
|
|
1891
|
-
function
|
|
1892
|
-
return t == null ? e.Na : t instanceof
|
|
1887
|
+
function Vt(e, t) {
|
|
1888
|
+
return t == null ? e.Na : t instanceof F ? t : (e = e.s(ye(e, t)), e.data = t, e);
|
|
1893
1889
|
}
|
|
1894
|
-
|
|
1890
|
+
_.Xb = function() {
|
|
1895
1891
|
return this.N;
|
|
1896
1892
|
};
|
|
1897
|
-
|
|
1893
|
+
_.Yb = function() {
|
|
1898
1894
|
return this.o;
|
|
1899
1895
|
};
|
|
1900
|
-
|
|
1896
|
+
_.ec = function(e) {
|
|
1901
1897
|
this.o = e;
|
|
1902
1898
|
};
|
|
1903
1899
|
function w(e, t) {
|
|
1904
1900
|
this.node = e, this.scope = t;
|
|
1905
1901
|
}
|
|
1906
|
-
function
|
|
1902
|
+
function mr(e, t, r) {
|
|
1907
1903
|
this.Va = e, this.S = t, this.object = r;
|
|
1908
1904
|
}
|
|
1909
|
-
function
|
|
1905
|
+
function F(e) {
|
|
1910
1906
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1911
1907
|
}
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1908
|
+
_ = F.prototype;
|
|
1909
|
+
_.xa = null;
|
|
1910
|
+
_.H = "Object";
|
|
1911
|
+
_.data = null;
|
|
1912
|
+
_.toString = function() {
|
|
1917
1913
|
if (!Ze)
|
|
1918
1914
|
return "[object Interpreter.Object]";
|
|
1919
|
-
if (!(this instanceof
|
|
1915
|
+
if (!(this instanceof F))
|
|
1920
1916
|
return String(this);
|
|
1921
1917
|
if (this.H === "Array") {
|
|
1922
|
-
var e =
|
|
1918
|
+
var e = zn;
|
|
1923
1919
|
e.push(this);
|
|
1924
1920
|
try {
|
|
1925
1921
|
var t = [], r = this.h.length, n = !1;
|
|
1926
1922
|
1024 < r && (r = 1e3, n = !0);
|
|
1927
1923
|
for (var i = 0; i < r; i++) {
|
|
1928
1924
|
var a = this.h[i];
|
|
1929
|
-
t[i] = a instanceof
|
|
1925
|
+
t[i] = a instanceof F && e.indexOf(a) !== -1 ? "..." : a;
|
|
1930
1926
|
}
|
|
1931
1927
|
n && t.push("...");
|
|
1932
1928
|
} finally {
|
|
@@ -1935,7 +1931,7 @@ D.toString = function() {
|
|
|
1935
1931
|
return t.join(",");
|
|
1936
1932
|
}
|
|
1937
1933
|
if (this.H === "Error") {
|
|
1938
|
-
if (e =
|
|
1934
|
+
if (e = zn, e.indexOf(this) !== -1)
|
|
1939
1935
|
return "[object Error]";
|
|
1940
1936
|
r = this;
|
|
1941
1937
|
do
|
|
@@ -1961,17 +1957,17 @@ D.toString = function() {
|
|
|
1961
1957
|
}
|
|
1962
1958
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1963
1959
|
};
|
|
1964
|
-
|
|
1960
|
+
_.valueOf = function() {
|
|
1965
1961
|
return !Ze || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1966
1962
|
};
|
|
1967
|
-
function
|
|
1968
|
-
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++
|
|
1963
|
+
function hi(e, t, r, n, i) {
|
|
1964
|
+
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++pi, this.time = 0;
|
|
1969
1965
|
}
|
|
1970
|
-
var
|
|
1966
|
+
var pi = 0;
|
|
1971
1967
|
g.prototype.stepArrayExpression = function(e, t, r) {
|
|
1972
1968
|
r = r.elements;
|
|
1973
1969
|
var n = t.A || 0;
|
|
1974
|
-
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa =
|
|
1970
|
+
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa = _e(this), t.Oa.h.length = r.length); n < r.length; ) {
|
|
1975
1971
|
if (r[n])
|
|
1976
1972
|
return t.A = n, new w(r[n], t.scope);
|
|
1977
1973
|
n++;
|
|
@@ -1982,7 +1978,7 @@ g.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
|
1982
1978
|
if (!t.ja)
|
|
1983
1979
|
return t.ja = !0, t = new w(r.left, t.scope), t.sa = !0, t;
|
|
1984
1980
|
if (!t.Da)
|
|
1985
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e =
|
|
1981
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e = ln(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, ot(this, e, t.Fa)) : (t.Da = !0, r.operator === "=" && r.left.type === "Identifier" && (t.Pa = r.left.name), new w(r.right, t.scope));
|
|
1986
1982
|
if (t.ta)
|
|
1987
1983
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1988
1984
|
else {
|
|
@@ -2027,8 +2023,8 @@ g.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
|
2027
2023
|
default:
|
|
2028
2024
|
throw SyntaxError("Unknown assignment expression: " + r.operator);
|
|
2029
2025
|
}
|
|
2030
|
-
if (r =
|
|
2031
|
-
return t.ta = !0, t.ib = n,
|
|
2026
|
+
if (r = cn(this, t.Fa, n))
|
|
2027
|
+
return t.ta = !0, t.ib = n, un(this, r, t.Fa, n);
|
|
2032
2028
|
e.pop(), e[e.length - 1].value = n;
|
|
2033
2029
|
}
|
|
2034
2030
|
};
|
|
@@ -2098,10 +2094,10 @@ g.prototype.stepBinaryExpression = function(e, t, r) {
|
|
|
2098
2094
|
r = n >>> t;
|
|
2099
2095
|
break;
|
|
2100
2096
|
case "in":
|
|
2101
|
-
t instanceof
|
|
2097
|
+
t instanceof F || C(this, this.j, "'in' expects an object, not '" + t + "'"), r = vt(this, t, n);
|
|
2102
2098
|
break;
|
|
2103
2099
|
case "instanceof":
|
|
2104
|
-
Q(this, t, this.O) ||
|
|
2100
|
+
Q(this, t, this.O) || C(this, this.j, "'instanceof' expects an object, not '" + t + "'"), r = n instanceof F ? Q(this, n, t) : !1;
|
|
2105
2101
|
break;
|
|
2106
2102
|
default:
|
|
2107
2103
|
throw SyntaxError("Unknown binary operator: " + r.operator);
|
|
@@ -2128,7 +2124,7 @@ g.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2128
2124
|
t.ia = 2;
|
|
2129
2125
|
var i = t.value;
|
|
2130
2126
|
if (Array.isArray(i)) {
|
|
2131
|
-
if (t.U =
|
|
2127
|
+
if (t.U = ln(this, i), i[0] === We ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2132
2128
|
return t.ia = 1, ot(this, i, t.value);
|
|
2133
2129
|
} else
|
|
2134
2130
|
t.U = i;
|
|
@@ -2138,8 +2134,8 @@ g.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2138
2134
|
if (t.A !== 0 && t.F.push(t.value), r.arguments[t.A])
|
|
2139
2135
|
return new w(r.arguments[t.A++], t.scope);
|
|
2140
2136
|
if (r.type === "NewExpression") {
|
|
2141
|
-
if (i instanceof
|
|
2142
|
-
t.B =
|
|
2137
|
+
if (i instanceof F && !i.Ab || C(this, this.j, ie(this, r.callee) + " is not a constructor"), i === this.qa)
|
|
2138
|
+
t.B = _e(this);
|
|
2143
2139
|
else {
|
|
2144
2140
|
var a = i.h.prototype;
|
|
2145
2141
|
(typeof a != "object" || a === null) && (a = this.M), t.B = this.s(a);
|
|
@@ -2151,33 +2147,33 @@ g.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2151
2147
|
if (t.eb)
|
|
2152
2148
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2153
2149
|
else {
|
|
2154
|
-
if (t.eb = !0, i instanceof
|
|
2155
|
-
for (r =
|
|
2150
|
+
if (t.eb = !0, i instanceof F || C(this, this.j, ie(this, r.callee) + " is not a function"), e = i.node) {
|
|
2151
|
+
for (r = Xt(this, e.body, i.Va), n = _e(this), i = 0; i < t.F.length; i++)
|
|
2156
2152
|
this.g(n, i, t.F[i]);
|
|
2157
2153
|
for (this.g(r.object, "arguments", n), i = 0; i < e.oa.length; i++)
|
|
2158
2154
|
this.g(r.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2159
|
-
return r.S || (t.B =
|
|
2155
|
+
return r.S || (t.B = Vt(this, t.B)), this.g(r.object, "this", t.B, Qt), t.value = void 0, new w(e.body, r);
|
|
2160
2156
|
}
|
|
2161
2157
|
if (i.eval)
|
|
2162
2158
|
if (i = t.F[0], typeof i != "string")
|
|
2163
2159
|
t.value = i;
|
|
2164
2160
|
else {
|
|
2165
2161
|
try {
|
|
2166
|
-
n =
|
|
2162
|
+
n = De(String(i), "eval" + this.Hb++);
|
|
2167
2163
|
} catch (u) {
|
|
2168
|
-
|
|
2164
|
+
C(this, this.T, "Invalid code: " + u.message);
|
|
2169
2165
|
}
|
|
2170
|
-
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body,
|
|
2166
|
+
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body, gt(i, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r = Xt(this, n, r) : tt(this, n, r), this.value = void 0, new w(i, r);
|
|
2171
2167
|
}
|
|
2172
2168
|
else if (i.Ta)
|
|
2173
|
-
t.scope.S || (t.B =
|
|
2169
|
+
t.scope.S || (t.B = Vt(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
2174
2170
|
else if (i.Za) {
|
|
2175
2171
|
var s = this;
|
|
2176
2172
|
n = i.Za.length - 1, n = t.F.concat(Array(n)).slice(0, n), n.push(function(u) {
|
|
2177
2173
|
t.value = u, s.za = !1;
|
|
2178
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2174
|
+
}), this.za = !0, t.scope.S || (t.B = Vt(this, t.B)), i.Za.apply(t.B, n);
|
|
2179
2175
|
} else
|
|
2180
|
-
|
|
2176
|
+
C(this, this.j, ie(this, r.callee) + " is not callable");
|
|
2181
2177
|
}
|
|
2182
2178
|
};
|
|
2183
2179
|
g.prototype.stepConditionalExpression = function(e, t, r) {
|
|
@@ -2223,13 +2219,13 @@ g.prototype.stepExpressionStatement = function(e, t, r) {
|
|
|
2223
2219
|
};
|
|
2224
2220
|
g.prototype.stepForInStatement = function(e, t, r) {
|
|
2225
2221
|
if (!t.Ub && (t.Ub = !0, r.left.fa && r.left.fa[0].ua))
|
|
2226
|
-
return t.scope.S &&
|
|
2222
|
+
return t.scope.S && C(this, this.T, "for-in loop variable declaration may not have an initializer"), new w(r.left, t.scope);
|
|
2227
2223
|
if (!t.Ca)
|
|
2228
2224
|
return t.Ca = !0, t.pa || (t.pa = t.value), new w(r.right, t.scope);
|
|
2229
2225
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2230
2226
|
e:
|
|
2231
2227
|
for (; ; ) {
|
|
2232
|
-
if (t.u instanceof
|
|
2228
|
+
if (t.u instanceof F)
|
|
2233
2229
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2234
2230
|
var n = t.wa.shift();
|
|
2235
2231
|
if (n === void 0)
|
|
@@ -2256,8 +2252,8 @@ g.prototype.stepForInStatement = function(e, t, r) {
|
|
|
2256
2252
|
t.pa = [We, e.fa[0].id.name];
|
|
2257
2253
|
else
|
|
2258
2254
|
return t.pa = null, t = new w(e, t.scope), t.sa = !0, t;
|
|
2259
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n =
|
|
2260
|
-
return
|
|
2255
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n = cn(this, t.pa, e)))
|
|
2256
|
+
return un(this, n, t.pa, e);
|
|
2261
2257
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, r.body)
|
|
2262
2258
|
return new w(r.body, t.scope);
|
|
2263
2259
|
};
|
|
@@ -2286,13 +2282,13 @@ g.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2286
2282
|
e.pop();
|
|
2287
2283
|
};
|
|
2288
2284
|
g.prototype.stepFunctionExpression = function(e, t, r) {
|
|
2289
|
-
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e =
|
|
2285
|
+
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e = an(this, e)), t.value = rn(this, r, e, t.Pa), r.id && this.g(e.object, r.id.name, t.value, Qt);
|
|
2290
2286
|
};
|
|
2291
2287
|
g.prototype.stepIdentifier = function(e, t, r) {
|
|
2292
2288
|
if (e.pop(), t.sa)
|
|
2293
2289
|
e[e.length - 1].value = [We, r.name];
|
|
2294
2290
|
else {
|
|
2295
|
-
if (t =
|
|
2291
|
+
if (t = sn(this, r.name), this.P)
|
|
2296
2292
|
return ot(this, t, this.Na);
|
|
2297
2293
|
e[e.length - 1].value = t;
|
|
2298
2294
|
}
|
|
@@ -2302,7 +2298,7 @@ g.prototype.stepLabeledStatement = function(e, t, r) {
|
|
|
2302
2298
|
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new w(r.body, t.scope), t.labels = e, t;
|
|
2303
2299
|
};
|
|
2304
2300
|
g.prototype.stepLiteral = function(e, t, r) {
|
|
2305
|
-
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma),
|
|
2301
|
+
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma), tn(this, r, t), t = r), e[e.length - 1].value = t;
|
|
2306
2302
|
};
|
|
2307
2303
|
g.prototype.stepLogicalExpression = function(e, t, r) {
|
|
2308
2304
|
if (r.operator !== "&&" && r.operator !== "||")
|
|
@@ -2405,11 +2401,11 @@ g.prototype.stepSwitchStatement = function(e, t, r) {
|
|
|
2405
2401
|
}
|
|
2406
2402
|
};
|
|
2407
2403
|
g.prototype.stepThisExpression = function(e) {
|
|
2408
|
-
e.pop(), e[e.length - 1].value =
|
|
2404
|
+
e.pop(), e[e.length - 1].value = sn(this, "this");
|
|
2409
2405
|
};
|
|
2410
2406
|
g.prototype.stepThrowStatement = function(e, t, r) {
|
|
2411
2407
|
if (t.ka)
|
|
2412
|
-
|
|
2408
|
+
C(this, t.value);
|
|
2413
2409
|
else
|
|
2414
2410
|
return t.ka = !0, new w(r.K, t.scope);
|
|
2415
2411
|
};
|
|
@@ -2417,7 +2413,7 @@ g.prototype.stepTryStatement = function(e, t, r) {
|
|
|
2417
2413
|
if (!t.Rb)
|
|
2418
2414
|
return t.Rb = !0, new w(r.block, t.scope);
|
|
2419
2415
|
if (t.ea && t.ea.type === 4 && !t.Tb && r.Ea)
|
|
2420
|
-
return t.Tb = !0, e =
|
|
2416
|
+
return t.Tb = !0, e = an(this, t.scope), this.g(e.object, r.Ea.Ua.name, t.ea.value), t.ea = void 0, new w(r.Ea.body, e);
|
|
2421
2417
|
if (!t.Sb && r.fb)
|
|
2422
2418
|
return t.Sb = !0, new w(r.fb, t.scope);
|
|
2423
2419
|
e.pop(), t.ea && it(this, t.ea.type, t.ea.value, t.ea.label);
|
|
@@ -2447,7 +2443,7 @@ g.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2447
2443
|
try {
|
|
2448
2444
|
delete i.h[n];
|
|
2449
2445
|
} catch {
|
|
2450
|
-
t.scope.S ?
|
|
2446
|
+
t.scope.S ? C(this, this.j, "Cannot delete property '" + n + "' of '" + i + "'") : r = !1;
|
|
2451
2447
|
}
|
|
2452
2448
|
}
|
|
2453
2449
|
n = r;
|
|
@@ -2467,7 +2463,7 @@ g.prototype.stepUpdateExpression = function(e, t, r) {
|
|
|
2467
2463
|
if (!t.ja)
|
|
2468
2464
|
return t.ja = !0, e = new w(r.K, t.scope), e.sa = !0, e;
|
|
2469
2465
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2470
|
-
var n =
|
|
2466
|
+
var n = ln(this, t.Ga);
|
|
2471
2467
|
if (t.ma = n, this.P)
|
|
2472
2468
|
return t.Ba = !0, ot(this, n, t.Ga);
|
|
2473
2469
|
}
|
|
@@ -2480,15 +2476,15 @@ g.prototype.stepUpdateExpression = function(e, t, r) {
|
|
|
2480
2476
|
i = n - 1;
|
|
2481
2477
|
else
|
|
2482
2478
|
throw SyntaxError("Unknown update expression: " + r.operator);
|
|
2483
|
-
if (r = r.prefix ? i : n, n =
|
|
2484
|
-
return t.ta = !0, t.ib = r,
|
|
2479
|
+
if (r = r.prefix ? i : n, n = cn(this, t.Ga, i))
|
|
2480
|
+
return t.ta = !0, t.ib = r, un(this, n, t.Ga, i);
|
|
2485
2481
|
e.pop(), e[e.length - 1].value = r;
|
|
2486
2482
|
}
|
|
2487
2483
|
};
|
|
2488
2484
|
g.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
2489
2485
|
r = r.fa;
|
|
2490
2486
|
var n = t.A || 0, i = r[n];
|
|
2491
|
-
for (t.Bb && i && (
|
|
2487
|
+
for (t.Bb && i && (hr(this, i.id.name, t.value), t.Bb = !1, i = r[++n]); i; ) {
|
|
2492
2488
|
if (i.ua)
|
|
2493
2489
|
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new w(i.ua, t.scope);
|
|
2494
2490
|
i = r[++n];
|
|
@@ -2496,7 +2492,7 @@ g.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
|
2496
2492
|
e.pop();
|
|
2497
2493
|
};
|
|
2498
2494
|
g.prototype.stepWithStatement = function(e, t, r) {
|
|
2499
|
-
return t.Ca ? (e.pop(), e =
|
|
2495
|
+
return t.Ca ? (e.pop(), e = an(this, t.scope, t.value), new w(r.body, e)) : (t.Ca = !0, new w(r.object, t.scope));
|
|
2500
2496
|
};
|
|
2501
2497
|
g.prototype.stepWhileStatement = g.prototype.stepDoWhileStatement;
|
|
2502
2498
|
we.Interpreter = g;
|
|
@@ -2515,7 +2511,7 @@ g.prototype.getGlobalScope = g.prototype.Xb;
|
|
|
2515
2511
|
g.prototype.getStateStack = g.prototype.Yb;
|
|
2516
2512
|
g.prototype.setStateStack = g.prototype.ec;
|
|
2517
2513
|
g.VALUE_IN_DESCRIPTOR = et;
|
|
2518
|
-
const
|
|
2514
|
+
const mi = (e) => e.split(`
|
|
2519
2515
|
`).map((t) => {
|
|
2520
2516
|
const r = t.trim();
|
|
2521
2517
|
if (t.includes("__awaiter"))
|
|
@@ -2528,7 +2524,7 @@ const gi = (e) => e.split(`
|
|
|
2528
2524
|
${u}
|
|
2529
2525
|
`;
|
|
2530
2526
|
}).filter(Boolean).join(`
|
|
2531
|
-
`),
|
|
2527
|
+
`), Jn = (e) => e + "JSON", gi = ({
|
|
2532
2528
|
builder: e,
|
|
2533
2529
|
context: t,
|
|
2534
2530
|
event: r,
|
|
@@ -2540,46 +2536,46 @@ const gi = (e) => e.split(`
|
|
|
2540
2536
|
const u = {
|
|
2541
2537
|
...n,
|
|
2542
2538
|
...i
|
|
2543
|
-
}, f =
|
|
2539
|
+
}, f = cr({
|
|
2544
2540
|
builder: e,
|
|
2545
2541
|
context: t,
|
|
2546
2542
|
event: r,
|
|
2547
2543
|
state: u
|
|
2548
|
-
}), m = f.map(([
|
|
2549
|
-
const
|
|
2550
|
-
return `var ${
|
|
2544
|
+
}), m = f.map(([R]) => {
|
|
2545
|
+
const N = Jn(R);
|
|
2546
|
+
return `var ${R} = ${N} === undefined ? undefined : JSON.parse(${N});`;
|
|
2551
2547
|
}).join(`
|
|
2552
|
-
`), v =
|
|
2548
|
+
`), v = mi(s);
|
|
2553
2549
|
if (v === "") {
|
|
2554
2550
|
Ue.warn("Skipping evaluation of empty code block.");
|
|
2555
2551
|
return;
|
|
2556
2552
|
}
|
|
2557
|
-
const
|
|
2553
|
+
const y = `
|
|
2558
2554
|
function theFunction() {
|
|
2559
2555
|
${m}
|
|
2560
2556
|
|
|
2561
2557
|
${v}
|
|
2562
2558
|
}
|
|
2563
2559
|
theFunction();
|
|
2564
|
-
`, U = (
|
|
2565
|
-
const
|
|
2566
|
-
a == null || a(
|
|
2567
|
-
},
|
|
2568
|
-
f.forEach(([
|
|
2569
|
-
const
|
|
2570
|
-
|
|
2571
|
-
}),
|
|
2560
|
+
`, U = (R, N) => {
|
|
2561
|
+
const V = ur(u, R, N);
|
|
2562
|
+
a == null || a(V);
|
|
2563
|
+
}, B = function(R, N) {
|
|
2564
|
+
f.forEach(([V, Y]) => {
|
|
2565
|
+
const b = JSON.stringify(Y);
|
|
2566
|
+
R.setProperty(N, Jn(V), b);
|
|
2567
|
+
}), R.setProperty(N, "setRootState", R.createNativeFunction(U));
|
|
2572
2568
|
};
|
|
2573
2569
|
try {
|
|
2574
|
-
const
|
|
2575
|
-
return
|
|
2576
|
-
} catch (
|
|
2570
|
+
const R = new g(y, B);
|
|
2571
|
+
return R.run(), R.pseudoToNative(R.value);
|
|
2572
|
+
} catch (R) {
|
|
2577
2573
|
Ue.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2578
|
-
e:
|
|
2574
|
+
e: R
|
|
2579
2575
|
});
|
|
2580
2576
|
return;
|
|
2581
2577
|
}
|
|
2582
|
-
},
|
|
2578
|
+
}, vi = (e) => je() ? qr(e) : gi(e);
|
|
2583
2579
|
function nt({
|
|
2584
2580
|
code: e,
|
|
2585
2581
|
context: t,
|
|
@@ -2594,10 +2590,10 @@ function nt({
|
|
|
2594
2590
|
return;
|
|
2595
2591
|
}
|
|
2596
2592
|
const u = {
|
|
2597
|
-
code:
|
|
2593
|
+
code: Jr(e, {
|
|
2598
2594
|
isExpression: s
|
|
2599
2595
|
}),
|
|
2600
|
-
builder:
|
|
2596
|
+
builder: Yr(),
|
|
2601
2597
|
context: t,
|
|
2602
2598
|
event: a,
|
|
2603
2599
|
rootSetState: i,
|
|
@@ -2605,7 +2601,7 @@ function nt({
|
|
|
2605
2601
|
localState: r
|
|
2606
2602
|
};
|
|
2607
2603
|
try {
|
|
2608
|
-
return
|
|
2604
|
+
return vi(u);
|
|
2609
2605
|
} catch (f) {
|
|
2610
2606
|
Ue.error("Failed code evaluation: " + f.message, {
|
|
2611
2607
|
code: e
|
|
@@ -2613,7 +2609,7 @@ function nt({
|
|
|
2613
2609
|
return;
|
|
2614
2610
|
}
|
|
2615
2611
|
}
|
|
2616
|
-
const
|
|
2612
|
+
const yi = ({
|
|
2617
2613
|
block: e,
|
|
2618
2614
|
context: t,
|
|
2619
2615
|
localState: r,
|
|
@@ -2622,7 +2618,7 @@ const bi = ({
|
|
|
2622
2618
|
}) => {
|
|
2623
2619
|
if (!e.bindings)
|
|
2624
2620
|
return e;
|
|
2625
|
-
const a =
|
|
2621
|
+
const a = qt(e), s = {
|
|
2626
2622
|
...a,
|
|
2627
2623
|
properties: {
|
|
2628
2624
|
...a.properties
|
|
@@ -2639,7 +2635,7 @@ const bi = ({
|
|
|
2639
2635
|
rootSetState: i,
|
|
2640
2636
|
context: t
|
|
2641
2637
|
});
|
|
2642
|
-
|
|
2638
|
+
ur(s, u, m);
|
|
2643
2639
|
}
|
|
2644
2640
|
return s;
|
|
2645
2641
|
};
|
|
@@ -2652,7 +2648,7 @@ function mt({
|
|
|
2652
2648
|
rootSetState: a
|
|
2653
2649
|
}) {
|
|
2654
2650
|
const s = e;
|
|
2655
|
-
return r ?
|
|
2651
|
+
return r ? yi({
|
|
2656
2652
|
block: s,
|
|
2657
2653
|
localState: n,
|
|
2658
2654
|
rootState: i,
|
|
@@ -2660,7 +2656,7 @@ function mt({
|
|
|
2660
2656
|
context: t
|
|
2661
2657
|
}) : s;
|
|
2662
2658
|
}
|
|
2663
|
-
const
|
|
2659
|
+
const bi = ({
|
|
2664
2660
|
block: e,
|
|
2665
2661
|
context: t,
|
|
2666
2662
|
registeredComponents: r
|
|
@@ -2682,7 +2678,7 @@ const xi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2682
2678
|
console.warn(`
|
|
2683
2679
|
Could not find a registered component named "${n}".
|
|
2684
2680
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2685
|
-
},
|
|
2681
|
+
}, xi = ({
|
|
2686
2682
|
block: e,
|
|
2687
2683
|
context: t
|
|
2688
2684
|
}) => {
|
|
@@ -2715,7 +2711,7 @@ const xi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2715
2711
|
},
|
|
2716
2712
|
block: n
|
|
2717
2713
|
}));
|
|
2718
|
-
},
|
|
2714
|
+
}, gr = {
|
|
2719
2715
|
small: {
|
|
2720
2716
|
min: 320,
|
|
2721
2717
|
default: 321,
|
|
@@ -2731,11 +2727,11 @@ const xi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2731
2727
|
default: 991,
|
|
2732
2728
|
max: 1200
|
|
2733
2729
|
}
|
|
2734
|
-
},
|
|
2730
|
+
}, qn = (e, t = gr) => `@media (max-width: ${t[e].max}px)`, vr = ({
|
|
2735
2731
|
small: e,
|
|
2736
2732
|
medium: t
|
|
2737
2733
|
}) => {
|
|
2738
|
-
const r =
|
|
2734
|
+
const r = qt(gr);
|
|
2739
2735
|
if (!e || !t)
|
|
2740
2736
|
return r;
|
|
2741
2737
|
const n = Math.floor(e / 2);
|
|
@@ -2757,26 +2753,26 @@ const xi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2757
2753
|
min: a,
|
|
2758
2754
|
default: a + 1
|
|
2759
2755
|
}, r;
|
|
2760
|
-
},
|
|
2756
|
+
}, Si = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), yr = (e) => Object.entries(e).map(([r, n]) => {
|
|
2761
2757
|
if (typeof n == "string")
|
|
2762
|
-
return `${
|
|
2763
|
-
}).filter(
|
|
2764
|
-
`),
|
|
2758
|
+
return `${Si(r)}: ${n};`;
|
|
2759
|
+
}).filter(Kt), wi = (e) => yr(e).join(`
|
|
2760
|
+
`), $t = ({
|
|
2765
2761
|
mediaQuery: e,
|
|
2766
2762
|
className: t,
|
|
2767
2763
|
styles: r
|
|
2768
2764
|
}) => {
|
|
2769
2765
|
const n = `.${t} {
|
|
2770
|
-
${
|
|
2766
|
+
${wi(r)}
|
|
2771
2767
|
}`;
|
|
2772
2768
|
return e ? `${e} {
|
|
2773
2769
|
${n}
|
|
2774
2770
|
}` : n;
|
|
2775
2771
|
};
|
|
2776
|
-
function
|
|
2772
|
+
function yt(e) {
|
|
2777
2773
|
return /* @__PURE__ */ p("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2778
2774
|
}
|
|
2779
|
-
function
|
|
2775
|
+
function ki(e) {
|
|
2780
2776
|
function t() {
|
|
2781
2777
|
const n = mt({
|
|
2782
2778
|
block: e.block,
|
|
@@ -2786,10 +2782,10 @@ function Ei(e) {
|
|
|
2786
2782
|
context: e.context.context,
|
|
2787
2783
|
shouldEvaluateBindings: !0
|
|
2788
2784
|
});
|
|
2789
|
-
return
|
|
2785
|
+
return Kt(n.hide) ? !n.hide : Kt(n.show) ? n.show : !0;
|
|
2790
2786
|
}
|
|
2791
2787
|
function r() {
|
|
2792
|
-
var
|
|
2788
|
+
var R;
|
|
2793
2789
|
const n = mt({
|
|
2794
2790
|
block: e.block,
|
|
2795
2791
|
localState: e.context.localState,
|
|
@@ -2797,37 +2793,37 @@ function Ei(e) {
|
|
|
2797
2793
|
rootSetState: e.context.rootSetState,
|
|
2798
2794
|
context: e.context.context,
|
|
2799
2795
|
shouldEvaluateBindings: !0
|
|
2800
|
-
}), i = n.responsiveStyles, a = e.context.content, s =
|
|
2801
|
-
((
|
|
2796
|
+
}), i = n.responsiveStyles, a = e.context.content, s = vr(
|
|
2797
|
+
((R = a == null ? void 0 : a.meta) == null ? void 0 : R.breakpoints) || {}
|
|
2802
2798
|
), u = i == null ? void 0 : i.large, f = i == null ? void 0 : i.medium, m = i == null ? void 0 : i.small, v = n.id;
|
|
2803
2799
|
if (!v)
|
|
2804
2800
|
return "";
|
|
2805
|
-
const
|
|
2801
|
+
const y = u ? $t({
|
|
2806
2802
|
className: v,
|
|
2807
2803
|
styles: u
|
|
2808
|
-
}) : "", U = f ?
|
|
2804
|
+
}) : "", U = f ? $t({
|
|
2809
2805
|
className: v,
|
|
2810
2806
|
styles: f,
|
|
2811
|
-
mediaQuery:
|
|
2807
|
+
mediaQuery: qn(
|
|
2812
2808
|
"medium",
|
|
2813
2809
|
s
|
|
2814
2810
|
)
|
|
2815
|
-
}) : "",
|
|
2811
|
+
}) : "", B = m ? $t({
|
|
2816
2812
|
className: v,
|
|
2817
2813
|
styles: m,
|
|
2818
|
-
mediaQuery:
|
|
2814
|
+
mediaQuery: qn(
|
|
2819
2815
|
"small",
|
|
2820
2816
|
s
|
|
2821
2817
|
)
|
|
2822
2818
|
}) : "";
|
|
2823
|
-
return [
|
|
2819
|
+
return [y, U, B].join(" ");
|
|
2824
2820
|
}
|
|
2825
|
-
return /* @__PURE__ */ p(
|
|
2821
|
+
return /* @__PURE__ */ p(P, { children: r() && t() ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(yt, { styles: r() }) }) : null });
|
|
2826
2822
|
}
|
|
2827
|
-
function
|
|
2823
|
+
function Ci(e) {
|
|
2828
2824
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2829
2825
|
}
|
|
2830
|
-
const
|
|
2826
|
+
const Ei = (e) => `on${Ci(e)}`, Ii = (e, t) => (r) => nt({
|
|
2831
2827
|
code: e,
|
|
2832
2828
|
context: t.context,
|
|
2833
2829
|
localState: t.localState,
|
|
@@ -2836,14 +2832,14 @@ const Ti = (e) => `on${Ii(e)}`, ji = (e, t) => (r) => nt({
|
|
|
2836
2832
|
event: r,
|
|
2837
2833
|
isExpression: !1
|
|
2838
2834
|
});
|
|
2839
|
-
function
|
|
2835
|
+
function br(e) {
|
|
2840
2836
|
var n;
|
|
2841
2837
|
const t = {}, r = (n = e.block.actions) != null ? n : {};
|
|
2842
2838
|
for (const i in r) {
|
|
2843
2839
|
if (!r.hasOwnProperty(i))
|
|
2844
2840
|
continue;
|
|
2845
2841
|
const a = r[i];
|
|
2846
|
-
let s =
|
|
2842
|
+
let s = Ei(i);
|
|
2847
2843
|
if (e.stripPrefix)
|
|
2848
2844
|
switch (rt) {
|
|
2849
2845
|
case "vue":
|
|
@@ -2853,42 +2849,42 @@ function qt(e) {
|
|
|
2853
2849
|
s = s.replace("on:", "");
|
|
2854
2850
|
break;
|
|
2855
2851
|
}
|
|
2856
|
-
t[s] =
|
|
2852
|
+
t[s] = Ii(a, e);
|
|
2857
2853
|
}
|
|
2858
2854
|
return t;
|
|
2859
2855
|
}
|
|
2860
|
-
function
|
|
2856
|
+
function Ti({
|
|
2861
2857
|
properties: e
|
|
2862
2858
|
}) {
|
|
2863
2859
|
return e.className = e.class, delete e.class, e;
|
|
2864
2860
|
}
|
|
2865
|
-
const
|
|
2861
|
+
const ji = (e) => ({
|
|
2866
2862
|
href: e.href
|
|
2867
2863
|
});
|
|
2868
|
-
function
|
|
2864
|
+
function dn({
|
|
2869
2865
|
block: e,
|
|
2870
2866
|
context: t
|
|
2871
2867
|
}) {
|
|
2872
2868
|
var n;
|
|
2873
2869
|
const r = {
|
|
2874
|
-
...
|
|
2870
|
+
...ji(e),
|
|
2875
2871
|
...e.properties,
|
|
2876
2872
|
"builder-id": e.id,
|
|
2877
|
-
style: e.style ?
|
|
2873
|
+
style: e.style ? Ai(e.style) : void 0,
|
|
2878
2874
|
class: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
|
|
2879
2875
|
};
|
|
2880
|
-
return
|
|
2876
|
+
return Ti({
|
|
2881
2877
|
properties: r,
|
|
2882
2878
|
context: t,
|
|
2883
2879
|
block: e
|
|
2884
2880
|
});
|
|
2885
2881
|
}
|
|
2886
|
-
function
|
|
2882
|
+
function Ai(e) {
|
|
2887
2883
|
switch (rt) {
|
|
2888
2884
|
case "svelte":
|
|
2889
2885
|
case "vue":
|
|
2890
2886
|
case "solid":
|
|
2891
|
-
return
|
|
2887
|
+
return yr(e).join(" ");
|
|
2892
2888
|
case "qwik":
|
|
2893
2889
|
case "reactNative":
|
|
2894
2890
|
case "react":
|
|
@@ -2896,61 +2892,42 @@ function Oi(e) {
|
|
|
2896
2892
|
return e;
|
|
2897
2893
|
}
|
|
2898
2894
|
}
|
|
2899
|
-
|
|
2900
|
-
return /* @__PURE__ */ te(N, { children: [
|
|
2901
|
-
" ",
|
|
2902
|
-
e.hasChildren ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ te(
|
|
2903
|
-
e.Wrapper,
|
|
2904
|
-
{
|
|
2905
|
-
...gt({
|
|
2906
|
-
block: e.block,
|
|
2907
|
-
context: e.context
|
|
2908
|
-
}),
|
|
2909
|
-
...qt({
|
|
2910
|
-
block: e.block,
|
|
2911
|
-
rootState: e.context.rootState,
|
|
2912
|
-
rootSetState: e.context.rootSetState,
|
|
2913
|
-
localState: e.context.localState,
|
|
2914
|
-
context: e.context.context,
|
|
2915
|
-
stripPrefix: !0
|
|
2916
|
-
}),
|
|
2917
|
-
children: [
|
|
2918
|
-
" ",
|
|
2919
|
-
e.children,
|
|
2920
|
-
" "
|
|
2921
|
-
]
|
|
2922
|
-
}
|
|
2923
|
-
) }) : /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
2924
|
-
e.Wrapper,
|
|
2925
|
-
{
|
|
2926
|
-
...gt({
|
|
2927
|
-
block: e.block,
|
|
2928
|
-
context: e.context
|
|
2929
|
-
}),
|
|
2930
|
-
...qt({
|
|
2931
|
-
block: e.block,
|
|
2932
|
-
rootState: e.context.rootState,
|
|
2933
|
-
rootSetState: e.context.rootSetState,
|
|
2934
|
-
localState: e.context.localState,
|
|
2935
|
-
context: e.context.context,
|
|
2936
|
-
stripPrefix: !0
|
|
2937
|
-
})
|
|
2938
|
-
}
|
|
2939
|
-
) }),
|
|
2940
|
-
" "
|
|
2941
|
-
] });
|
|
2942
|
-
}
|
|
2895
|
+
const Ri = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Oi = (e) => typeof e == "string" && Ri.has(e.toLowerCase());
|
|
2943
2896
|
function Pi(e) {
|
|
2897
|
+
return /* @__PURE__ */ p(P, { children: Oi(e.TagName) ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ p(P, { children: typeof e.TagName == "string" ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
|
|
2898
|
+
}
|
|
2899
|
+
function Ni(e) {
|
|
2900
|
+
return /* @__PURE__ */ p(
|
|
2901
|
+
Pi,
|
|
2902
|
+
{
|
|
2903
|
+
TagName: e.Wrapper,
|
|
2904
|
+
attributes: dn({
|
|
2905
|
+
block: e.block,
|
|
2906
|
+
context: e.context
|
|
2907
|
+
}),
|
|
2908
|
+
actionAttributes: br({
|
|
2909
|
+
block: e.block,
|
|
2910
|
+
rootState: e.context.rootState,
|
|
2911
|
+
rootSetState: e.context.rootSetState,
|
|
2912
|
+
localState: e.context.localState,
|
|
2913
|
+
context: e.context.context,
|
|
2914
|
+
stripPrefix: !0
|
|
2915
|
+
}),
|
|
2916
|
+
children: e.children
|
|
2917
|
+
}
|
|
2918
|
+
);
|
|
2919
|
+
}
|
|
2920
|
+
function Mi(e) {
|
|
2944
2921
|
return /* @__PURE__ */ p(
|
|
2945
2922
|
e.Wrapper,
|
|
2946
2923
|
{
|
|
2947
2924
|
...e.wrapperProps,
|
|
2948
2925
|
attributes: e.includeBlockProps ? {
|
|
2949
|
-
...
|
|
2926
|
+
...dn({
|
|
2950
2927
|
block: e.block,
|
|
2951
2928
|
context: e.context
|
|
2952
2929
|
}),
|
|
2953
|
-
...
|
|
2930
|
+
...br({
|
|
2954
2931
|
block: e.block,
|
|
2955
2932
|
rootState: e.context.rootState,
|
|
2956
2933
|
rootSetState: e.context.rootSetState,
|
|
@@ -2962,7 +2939,7 @@ function Pi(e) {
|
|
|
2962
2939
|
}
|
|
2963
2940
|
);
|
|
2964
2941
|
}
|
|
2965
|
-
const
|
|
2942
|
+
const Bi = ({
|
|
2966
2943
|
componentOptions: e,
|
|
2967
2944
|
builderBlock: t,
|
|
2968
2945
|
context: r,
|
|
@@ -2978,7 +2955,7 @@ const Ni = ({
|
|
|
2978
2955
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
2979
2956
|
*/
|
|
2980
2957
|
...i ? {
|
|
2981
|
-
attributes:
|
|
2958
|
+
attributes: dn({
|
|
2982
2959
|
block: t,
|
|
2983
2960
|
context: s
|
|
2984
2961
|
})
|
|
@@ -2992,15 +2969,15 @@ const Ni = ({
|
|
|
2992
2969
|
includeBlockProps: i
|
|
2993
2970
|
} : u;
|
|
2994
2971
|
};
|
|
2995
|
-
function
|
|
2972
|
+
function Zn(e) {
|
|
2996
2973
|
var n;
|
|
2997
|
-
const [t, r] =
|
|
2998
|
-
() => e.isInteractive ?
|
|
2974
|
+
const [t, r] = L(
|
|
2975
|
+
() => e.isInteractive ? Mi : e.componentRef
|
|
2999
2976
|
);
|
|
3000
|
-
return /* @__PURE__ */ p(
|
|
2977
|
+
return /* @__PURE__ */ p(P, { children: e.componentRef ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
3001
2978
|
t,
|
|
3002
2979
|
{
|
|
3003
|
-
...
|
|
2980
|
+
...Bi({
|
|
3004
2981
|
componentOptions: e.componentOptions,
|
|
3005
2982
|
builderBlock: e.builderBlock,
|
|
3006
2983
|
context: e.context,
|
|
@@ -3010,7 +2987,7 @@ function tr(e) {
|
|
|
3010
2987
|
contextValue: e.context
|
|
3011
2988
|
}),
|
|
3012
2989
|
children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ p(
|
|
3013
|
-
|
|
2990
|
+
bt,
|
|
3014
2991
|
{
|
|
3015
2992
|
block: i,
|
|
3016
2993
|
context: e.context,
|
|
@@ -3021,10 +2998,10 @@ function tr(e) {
|
|
|
3021
2998
|
}
|
|
3022
2999
|
) }) : null });
|
|
3023
3000
|
}
|
|
3024
|
-
function
|
|
3025
|
-
const [t, r] =
|
|
3026
|
-
return /* @__PURE__ */ p(
|
|
3027
|
-
|
|
3001
|
+
function Fi(e) {
|
|
3002
|
+
const [t, r] = L(() => e.repeatContext);
|
|
3003
|
+
return /* @__PURE__ */ p(Zt.Provider, { value: t, children: /* @__PURE__ */ p(
|
|
3004
|
+
bt,
|
|
3028
3005
|
{
|
|
3029
3006
|
block: e.block,
|
|
3030
3007
|
context: t,
|
|
@@ -3032,24 +3009,24 @@ function Mi(e) {
|
|
|
3032
3009
|
}
|
|
3033
3010
|
) });
|
|
3034
3011
|
}
|
|
3035
|
-
function
|
|
3036
|
-
var v,
|
|
3012
|
+
function bt(e) {
|
|
3013
|
+
var v, y, U;
|
|
3037
3014
|
function t() {
|
|
3038
|
-
return
|
|
3015
|
+
return bi({
|
|
3039
3016
|
block: e.block,
|
|
3040
3017
|
context: e.context,
|
|
3041
3018
|
registeredComponents: e.registeredComponents
|
|
3042
3019
|
});
|
|
3043
3020
|
}
|
|
3044
3021
|
function r() {
|
|
3045
|
-
return
|
|
3022
|
+
return xi({
|
|
3046
3023
|
block: e.block,
|
|
3047
3024
|
context: e.context
|
|
3048
3025
|
});
|
|
3049
3026
|
}
|
|
3050
3027
|
function n() {
|
|
3051
|
-
var
|
|
3052
|
-
return (
|
|
3028
|
+
var B;
|
|
3029
|
+
return (B = e.block.repeat) != null && B.collection ? e.block : mt({
|
|
3053
3030
|
block: e.block,
|
|
3054
3031
|
localState: e.context.localState,
|
|
3055
3032
|
rootState: e.context.rootState,
|
|
@@ -3062,25 +3039,25 @@ function xt(e) {
|
|
|
3062
3039
|
return e.block.tagName || "div";
|
|
3063
3040
|
}
|
|
3064
3041
|
function a() {
|
|
3065
|
-
var
|
|
3066
|
-
if ((
|
|
3067
|
-
return !!((
|
|
3068
|
-
const
|
|
3069
|
-
return ("show" in n() ? n().show : !0) && !
|
|
3042
|
+
var N, V;
|
|
3043
|
+
if ((N = e.block.repeat) != null && N.collection)
|
|
3044
|
+
return !!((V = r == null ? void 0 : r()) != null && V.length);
|
|
3045
|
+
const B = "hide" in n() ? n().hide : !1;
|
|
3046
|
+
return ("show" in n() ? n().show : !0) && !B;
|
|
3070
3047
|
}
|
|
3071
3048
|
function s() {
|
|
3072
|
-
var
|
|
3073
|
-
return !((
|
|
3049
|
+
var R, N;
|
|
3050
|
+
return !((R = t == null ? void 0 : t()) != null && R.component) && !r() ? (N = n().children) != null ? N : [] : [];
|
|
3074
3051
|
}
|
|
3075
3052
|
function u() {
|
|
3076
|
-
var
|
|
3053
|
+
var B, R, N, V, Y, b;
|
|
3077
3054
|
return {
|
|
3078
|
-
blockChildren: (
|
|
3079
|
-
componentRef: (
|
|
3055
|
+
blockChildren: (B = n().children) != null ? B : [],
|
|
3056
|
+
componentRef: (R = t == null ? void 0 : t()) == null ? void 0 : R.component,
|
|
3080
3057
|
componentOptions: {
|
|
3081
|
-
...
|
|
3058
|
+
...Xr(n()),
|
|
3082
3059
|
builderContext: e.context,
|
|
3083
|
-
...((
|
|
3060
|
+
...((N = t == null ? void 0 : t()) == null ? void 0 : N.name) === "Symbol" || ((V = t == null ? void 0 : t()) == null ? void 0 : V.name) === "Columns" ? {
|
|
3084
3061
|
builderComponents: e.registeredComponents
|
|
3085
3062
|
} : {}
|
|
3086
3063
|
},
|
|
@@ -3088,14 +3065,14 @@ function xt(e) {
|
|
|
3088
3065
|
registeredComponents: e.registeredComponents,
|
|
3089
3066
|
builderBlock: n(),
|
|
3090
3067
|
includeBlockProps: ((Y = t == null ? void 0 : t()) == null ? void 0 : Y.noWrap) === !0,
|
|
3091
|
-
isInteractive: !((
|
|
3068
|
+
isInteractive: !((b = t == null ? void 0 : t()) != null && b.isRSC)
|
|
3092
3069
|
};
|
|
3093
3070
|
}
|
|
3094
|
-
const [f, m] =
|
|
3095
|
-
return /* @__PURE__ */ p(
|
|
3096
|
-
/* @__PURE__ */ p(
|
|
3097
|
-
(v = t == null ? void 0 : t()) != null && v.noWrap ? /* @__PURE__ */ p(
|
|
3098
|
-
|
|
3071
|
+
const [f, m] = L(() => e.context);
|
|
3072
|
+
return /* @__PURE__ */ p(P, { children: a() ? /* @__PURE__ */ ce(P, { children: [
|
|
3073
|
+
/* @__PURE__ */ p(ki, { block: e.block, context: e.context }),
|
|
3074
|
+
(v = t == null ? void 0 : t()) != null && v.noWrap ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
3075
|
+
Zn,
|
|
3099
3076
|
{
|
|
3100
3077
|
componentRef: u().componentRef,
|
|
3101
3078
|
componentOptions: u().componentOptions,
|
|
@@ -3106,62 +3083,49 @@ function xt(e) {
|
|
|
3106
3083
|
includeBlockProps: u().includeBlockProps,
|
|
3107
3084
|
isInteractive: u().isInteractive
|
|
3108
3085
|
}
|
|
3109
|
-
) }) : /* @__PURE__ */
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
(U = s()) == null ? void 0 : U.map((F) => /* @__PURE__ */ p(
|
|
3150
|
-
xt,
|
|
3151
|
-
{
|
|
3152
|
-
block: F,
|
|
3153
|
-
context: f,
|
|
3154
|
-
registeredComponents: e.registeredComponents
|
|
3155
|
-
},
|
|
3156
|
-
F.id
|
|
3157
|
-
))
|
|
3158
|
-
]
|
|
3159
|
-
}
|
|
3160
|
-
) }) : null
|
|
3161
|
-
] })
|
|
3086
|
+
) }) : /* @__PURE__ */ p(P, { children: r() ? /* @__PURE__ */ p(P, { children: (U = r()) == null ? void 0 : U.map((B, R) => /* @__PURE__ */ p(
|
|
3087
|
+
Fi,
|
|
3088
|
+
{
|
|
3089
|
+
repeatContext: B.context,
|
|
3090
|
+
block: B.block,
|
|
3091
|
+
registeredComponents: e.registeredComponents
|
|
3092
|
+
},
|
|
3093
|
+
R
|
|
3094
|
+
)) }) : /* @__PURE__ */ p(P, { children: /* @__PURE__ */ ce(
|
|
3095
|
+
Ni,
|
|
3096
|
+
{
|
|
3097
|
+
Wrapper: i(),
|
|
3098
|
+
block: n(),
|
|
3099
|
+
context: e.context,
|
|
3100
|
+
children: [
|
|
3101
|
+
/* @__PURE__ */ p(
|
|
3102
|
+
Zn,
|
|
3103
|
+
{
|
|
3104
|
+
componentRef: u().componentRef,
|
|
3105
|
+
componentOptions: u().componentOptions,
|
|
3106
|
+
blockChildren: u().blockChildren,
|
|
3107
|
+
context: u().context,
|
|
3108
|
+
registeredComponents: u().registeredComponents,
|
|
3109
|
+
builderBlock: u().builderBlock,
|
|
3110
|
+
includeBlockProps: u().includeBlockProps,
|
|
3111
|
+
isInteractive: u().isInteractive
|
|
3112
|
+
}
|
|
3113
|
+
),
|
|
3114
|
+
(y = s()) == null ? void 0 : y.map((B) => /* @__PURE__ */ p(
|
|
3115
|
+
bt,
|
|
3116
|
+
{
|
|
3117
|
+
block: B,
|
|
3118
|
+
context: f,
|
|
3119
|
+
registeredComponents: e.registeredComponents
|
|
3120
|
+
},
|
|
3121
|
+
B.id
|
|
3122
|
+
))
|
|
3123
|
+
]
|
|
3124
|
+
}
|
|
3125
|
+
) }) })
|
|
3162
3126
|
] }) : null });
|
|
3163
3127
|
}
|
|
3164
|
-
function
|
|
3128
|
+
function Ui(e) {
|
|
3165
3129
|
function t() {
|
|
3166
3130
|
var i;
|
|
3167
3131
|
return "builder-blocks" + ((i = e.blocks) != null && i.length ? "" : " no-blocks");
|
|
@@ -3192,7 +3156,7 @@ function Bi(e) {
|
|
|
3192
3156
|
"*"
|
|
3193
3157
|
));
|
|
3194
3158
|
}
|
|
3195
|
-
return /* @__PURE__ */
|
|
3159
|
+
return /* @__PURE__ */ ce(P, { children: [
|
|
3196
3160
|
/* @__PURE__ */ p(
|
|
3197
3161
|
e.BlocksWrapper,
|
|
3198
3162
|
{
|
|
@@ -3214,11 +3178,11 @@ function Bi(e) {
|
|
|
3214
3178
|
}` })
|
|
3215
3179
|
] });
|
|
3216
3180
|
}
|
|
3217
|
-
function
|
|
3181
|
+
function xt(e) {
|
|
3218
3182
|
var n, i, a;
|
|
3219
|
-
const t =
|
|
3183
|
+
const t = Ln(Zt), r = Ln(lr);
|
|
3220
3184
|
return /* @__PURE__ */ p(
|
|
3221
|
-
|
|
3185
|
+
Ui,
|
|
3222
3186
|
{
|
|
3223
3187
|
blocks: e.blocks,
|
|
3224
3188
|
parent: e.parent,
|
|
@@ -3226,8 +3190,8 @@ function St(e) {
|
|
|
3226
3190
|
styleProp: e.styleProp,
|
|
3227
3191
|
BlocksWrapper: (n = e.context) == null ? void 0 : n.BlocksWrapper,
|
|
3228
3192
|
BlocksWrapperProps: (i = e.context) == null ? void 0 : i.BlocksWrapperProps,
|
|
3229
|
-
children: e.blocks ? /* @__PURE__ */ p(
|
|
3230
|
-
|
|
3193
|
+
children: e.blocks ? /* @__PURE__ */ p(P, { children: (a = e.blocks) == null ? void 0 : a.map((s) => /* @__PURE__ */ p(
|
|
3194
|
+
bt,
|
|
3231
3195
|
{
|
|
3232
3196
|
block: s,
|
|
3233
3197
|
context: e.context || t,
|
|
@@ -3238,77 +3202,77 @@ function St(e) {
|
|
|
3238
3202
|
}
|
|
3239
3203
|
);
|
|
3240
3204
|
}
|
|
3241
|
-
function
|
|
3205
|
+
function Di(e) {
|
|
3242
3206
|
var Y;
|
|
3243
|
-
const [t, r] =
|
|
3207
|
+
const [t, r] = L(
|
|
3244
3208
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
3245
|
-
), [n, i] =
|
|
3209
|
+
), [n, i] = L(() => e.columns || []), [a, s] = L(
|
|
3246
3210
|
() => e.stackColumnsAt || "tablet"
|
|
3247
3211
|
);
|
|
3248
|
-
function u(
|
|
3212
|
+
function u(b) {
|
|
3249
3213
|
var K;
|
|
3250
|
-
return ((K = n[
|
|
3214
|
+
return ((K = n[b]) == null ? void 0 : K.width) || 100 / n.length;
|
|
3251
3215
|
}
|
|
3252
|
-
function f(
|
|
3216
|
+
function f(b) {
|
|
3253
3217
|
const K = t * (n.length - 1) / n.length;
|
|
3254
|
-
return `calc(${u(
|
|
3218
|
+
return `calc(${u(b)}% - ${K}px)`;
|
|
3255
3219
|
}
|
|
3256
3220
|
function m({
|
|
3257
|
-
stackedStyle:
|
|
3221
|
+
stackedStyle: b,
|
|
3258
3222
|
desktopStyle: K
|
|
3259
3223
|
}) {
|
|
3260
|
-
return a === "tablet" ?
|
|
3224
|
+
return a === "tablet" ? b : K;
|
|
3261
3225
|
}
|
|
3262
3226
|
function v({
|
|
3263
|
-
stackedStyle:
|
|
3227
|
+
stackedStyle: b,
|
|
3264
3228
|
desktopStyle: K
|
|
3265
3229
|
}) {
|
|
3266
|
-
return a === "never" ? K :
|
|
3230
|
+
return a === "never" ? K : b;
|
|
3267
3231
|
}
|
|
3268
|
-
const [
|
|
3232
|
+
const [y, U] = L(
|
|
3269
3233
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
3270
3234
|
);
|
|
3271
|
-
function
|
|
3235
|
+
function B() {
|
|
3272
3236
|
return {
|
|
3273
|
-
"--flex-dir":
|
|
3237
|
+
"--flex-dir": y,
|
|
3274
3238
|
"--flex-dir-tablet": m({
|
|
3275
|
-
stackedStyle:
|
|
3239
|
+
stackedStyle: y,
|
|
3276
3240
|
desktopStyle: "row"
|
|
3277
3241
|
})
|
|
3278
3242
|
};
|
|
3279
3243
|
}
|
|
3280
|
-
function
|
|
3281
|
-
const K =
|
|
3244
|
+
function R(b) {
|
|
3245
|
+
const K = b === 0 ? 0 : t, te = f(b), se = `${K}px`, $ = "100%", ne = 0;
|
|
3282
3246
|
return {
|
|
3283
|
-
width:
|
|
3284
|
-
["marginLeft"]:
|
|
3247
|
+
width: te,
|
|
3248
|
+
["marginLeft"]: se,
|
|
3285
3249
|
"--column-width-mobile": v({
|
|
3286
3250
|
stackedStyle: $,
|
|
3287
|
-
desktopStyle:
|
|
3251
|
+
desktopStyle: te
|
|
3288
3252
|
}),
|
|
3289
3253
|
"--column-margin-left-mobile": v({
|
|
3290
|
-
stackedStyle:
|
|
3291
|
-
desktopStyle:
|
|
3254
|
+
stackedStyle: ne,
|
|
3255
|
+
desktopStyle: se
|
|
3292
3256
|
}),
|
|
3293
3257
|
"--column-width-tablet": m({
|
|
3294
3258
|
stackedStyle: $,
|
|
3295
|
-
desktopStyle:
|
|
3259
|
+
desktopStyle: te
|
|
3296
3260
|
}),
|
|
3297
3261
|
"--column-margin-left-tablet": m({
|
|
3298
|
-
stackedStyle:
|
|
3299
|
-
desktopStyle:
|
|
3262
|
+
stackedStyle: ne,
|
|
3263
|
+
desktopStyle: se
|
|
3300
3264
|
})
|
|
3301
3265
|
};
|
|
3302
3266
|
}
|
|
3303
|
-
function
|
|
3304
|
-
var
|
|
3305
|
-
return
|
|
3306
|
-
((
|
|
3307
|
-
)[
|
|
3267
|
+
function N(b) {
|
|
3268
|
+
var te, se;
|
|
3269
|
+
return vr(
|
|
3270
|
+
((se = (te = e.builderContext.content) == null ? void 0 : te.meta) == null ? void 0 : se.breakpoints) || {}
|
|
3271
|
+
)[b].max;
|
|
3308
3272
|
}
|
|
3309
|
-
function
|
|
3273
|
+
function V() {
|
|
3310
3274
|
return `
|
|
3311
|
-
@media (max-width: ${
|
|
3275
|
+
@media (max-width: ${N("medium")}px) {
|
|
3312
3276
|
.${e.builderBlock.id}-breakpoints {
|
|
3313
3277
|
flex-direction: var(--flex-dir-tablet);
|
|
3314
3278
|
align-items: stretch;
|
|
@@ -3320,7 +3284,7 @@ function Fi(e) {
|
|
|
3320
3284
|
}
|
|
3321
3285
|
}
|
|
3322
3286
|
|
|
3323
|
-
@media (max-width: ${
|
|
3287
|
+
@media (max-width: ${N("small")}px) {
|
|
3324
3288
|
.${e.builderBlock.id}-breakpoints {
|
|
3325
3289
|
flex-direction: var(--flex-dir);
|
|
3326
3290
|
align-items: stretch;
|
|
@@ -3333,23 +3297,23 @@ function Fi(e) {
|
|
|
3333
3297
|
},
|
|
3334
3298
|
`;
|
|
3335
3299
|
}
|
|
3336
|
-
return /* @__PURE__ */
|
|
3337
|
-
/* @__PURE__ */
|
|
3300
|
+
return /* @__PURE__ */ ce(P, { children: [
|
|
3301
|
+
/* @__PURE__ */ ce(
|
|
3338
3302
|
"div",
|
|
3339
3303
|
{
|
|
3340
3304
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-3c01d6ec`,
|
|
3341
|
-
style:
|
|
3305
|
+
style: B(),
|
|
3342
3306
|
children: [
|
|
3343
|
-
/* @__PURE__ */ p(
|
|
3344
|
-
(Y = e.columns) == null ? void 0 : Y.map((
|
|
3307
|
+
/* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(yt, { styles: V() }) }),
|
|
3308
|
+
(Y = e.columns) == null ? void 0 : Y.map((b, K) => /* @__PURE__ */ ar(
|
|
3345
3309
|
"div",
|
|
3346
3310
|
{
|
|
3347
3311
|
className: "builder-column div-3c01d6ec-2",
|
|
3348
|
-
style:
|
|
3312
|
+
style: R(K),
|
|
3349
3313
|
key: K
|
|
3350
3314
|
},
|
|
3351
3315
|
/* @__PURE__ */ p(
|
|
3352
|
-
|
|
3316
|
+
xt,
|
|
3353
3317
|
{
|
|
3354
3318
|
path: `component.options.columns.${K}.blocks`,
|
|
3355
3319
|
parent: e.builderBlock.id,
|
|
@@ -3358,7 +3322,7 @@ function Fi(e) {
|
|
|
3358
3322
|
},
|
|
3359
3323
|
context: e.builderContext,
|
|
3360
3324
|
registeredComponents: e.builderComponents,
|
|
3361
|
-
blocks:
|
|
3325
|
+
blocks: b.blocks
|
|
3362
3326
|
}
|
|
3363
3327
|
)
|
|
3364
3328
|
))
|
|
@@ -3375,40 +3339,40 @@ function Fi(e) {
|
|
|
3375
3339
|
}` })
|
|
3376
3340
|
] });
|
|
3377
3341
|
}
|
|
3378
|
-
function
|
|
3342
|
+
function _i(e) {
|
|
3379
3343
|
return /* @__PURE__ */ p("span", { children: e.children });
|
|
3380
3344
|
}
|
|
3381
|
-
function
|
|
3345
|
+
function Qn(e) {
|
|
3382
3346
|
return e.replace(/http(s)?:/, "");
|
|
3383
3347
|
}
|
|
3384
|
-
function
|
|
3348
|
+
function Wi(e = "", t, r) {
|
|
3385
3349
|
const n = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3386
3350
|
return e.match(n) ? e.replace(n, "$1" + t + "=" + encodeURIComponent(r) + "$2") : e + i + t + "=" + encodeURIComponent(r);
|
|
3387
3351
|
}
|
|
3388
|
-
function
|
|
3352
|
+
function Li(e, t) {
|
|
3389
3353
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3390
3354
|
return e;
|
|
3391
3355
|
if (t === "master")
|
|
3392
|
-
return
|
|
3356
|
+
return Qn(e);
|
|
3393
3357
|
const r = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
3394
3358
|
if (r) {
|
|
3395
3359
|
const n = e.split(r[0]), i = r[3], a = t.match("x") ? t : `${t}x`;
|
|
3396
|
-
return
|
|
3360
|
+
return Qn(`${n[0]}_${a}${i}`);
|
|
3397
3361
|
}
|
|
3398
3362
|
return null;
|
|
3399
3363
|
}
|
|
3400
|
-
function
|
|
3364
|
+
function Ht(e) {
|
|
3401
3365
|
if (!e)
|
|
3402
3366
|
return e;
|
|
3403
3367
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3404
3368
|
if (e.match(/builder\.io/)) {
|
|
3405
3369
|
let r = e;
|
|
3406
3370
|
const n = Number(e.split("?width=")[1]);
|
|
3407
|
-
return isNaN(n) || (r = `${r} ${n}w`), t.filter((i) => i !== n).map((i) => `${
|
|
3371
|
+
return isNaN(n) || (r = `${r} ${n}w`), t.filter((i) => i !== n).map((i) => `${Wi(e, "width", i)} ${i}w`).concat([r]).join(", ");
|
|
3408
3372
|
}
|
|
3409
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((r) => [
|
|
3373
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((r) => [Li(e, `${r}x${r}`), r]).filter(([r]) => !!r).map(([r, n]) => `${r} ${n}w`).concat([e]).join(", ") : e;
|
|
3410
3374
|
}
|
|
3411
|
-
function
|
|
3375
|
+
function Vi(e) {
|
|
3412
3376
|
var i, a, s, u;
|
|
3413
3377
|
function t() {
|
|
3414
3378
|
var v;
|
|
@@ -3419,10 +3383,10 @@ function Wi(e) {
|
|
|
3419
3383
|
return e.srcset;
|
|
3420
3384
|
if (e.srcset && ((v = e.image) != null && v.includes("builder.io/api/v1/image"))) {
|
|
3421
3385
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3422
|
-
return console.debug("Removed given srcset"),
|
|
3386
|
+
return console.debug("Removed given srcset"), Ht(m);
|
|
3423
3387
|
} else if (e.image && !e.srcset)
|
|
3424
|
-
return
|
|
3425
|
-
return
|
|
3388
|
+
return Ht(m);
|
|
3389
|
+
return Ht(m);
|
|
3426
3390
|
}
|
|
3427
3391
|
function r() {
|
|
3428
3392
|
var f;
|
|
@@ -3438,10 +3402,10 @@ function Wi(e) {
|
|
|
3438
3402
|
};
|
|
3439
3403
|
return e.aspectRatio ? f : void 0;
|
|
3440
3404
|
}
|
|
3441
|
-
return /* @__PURE__ */
|
|
3442
|
-
/* @__PURE__ */
|
|
3443
|
-
/* @__PURE__ */
|
|
3444
|
-
r() ? /* @__PURE__ */ p(
|
|
3405
|
+
return /* @__PURE__ */ ce(P, { children: [
|
|
3406
|
+
/* @__PURE__ */ ce(P, { children: [
|
|
3407
|
+
/* @__PURE__ */ ce("picture", { children: [
|
|
3408
|
+
r() ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p("source", { type: "image/webp", srcSet: r() }) }) : null,
|
|
3445
3409
|
/* @__PURE__ */ p(
|
|
3446
3410
|
"img",
|
|
3447
3411
|
{
|
|
@@ -3460,7 +3424,7 @@ function Wi(e) {
|
|
|
3460
3424
|
}
|
|
3461
3425
|
)
|
|
3462
3426
|
] }),
|
|
3463
|
-
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ p(
|
|
3427
|
+
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
3464
3428
|
"div",
|
|
3465
3429
|
{
|
|
3466
3430
|
className: "builder-image-sizer div-40c70c9b",
|
|
@@ -3469,8 +3433,8 @@ function Wi(e) {
|
|
|
3469
3433
|
}
|
|
3470
3434
|
}
|
|
3471
3435
|
) }) : null,
|
|
3472
|
-
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ p(
|
|
3473
|
-
!e.fitContent && e.children ? /* @__PURE__ */ p(
|
|
3436
|
+
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ p(P, { children: e.children }) : null,
|
|
3437
|
+
!e.fitContent && e.children ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p("div", { className: "div-40c70c9b-2", children: e.children }) }) : null
|
|
3474
3438
|
] }),
|
|
3475
3439
|
/* @__PURE__ */ p("style", { children: `.img-40c70c9b {
|
|
3476
3440
|
opacity: 1;
|
|
@@ -3491,7 +3455,7 @@ function Wi(e) {
|
|
|
3491
3455
|
}` })
|
|
3492
3456
|
] });
|
|
3493
3457
|
}
|
|
3494
|
-
function
|
|
3458
|
+
function $i(e) {
|
|
3495
3459
|
return /* @__PURE__ */ p(
|
|
3496
3460
|
"section",
|
|
3497
3461
|
{
|
|
@@ -3512,7 +3476,7 @@ function Vi(e) {
|
|
|
3512
3476
|
}
|
|
3513
3477
|
);
|
|
3514
3478
|
}
|
|
3515
|
-
const
|
|
3479
|
+
const Hi = {
|
|
3516
3480
|
name: "Core:Button",
|
|
3517
3481
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3518
3482
|
defaultStyles: {
|
|
@@ -3545,7 +3509,7 @@ const Li = {
|
|
|
3545
3509
|
}],
|
|
3546
3510
|
static: !0,
|
|
3547
3511
|
noWrap: !0
|
|
3548
|
-
},
|
|
3512
|
+
}, Ki = {
|
|
3549
3513
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3550
3514
|
name: "Columns",
|
|
3551
3515
|
isRSC: !0,
|
|
@@ -3746,7 +3710,7 @@ const Li = {
|
|
|
3746
3710
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3747
3711
|
advanced: !0
|
|
3748
3712
|
}]
|
|
3749
|
-
},
|
|
3713
|
+
}, Gi = {
|
|
3750
3714
|
name: "Custom Code",
|
|
3751
3715
|
static: !0,
|
|
3752
3716
|
requiredPermissions: ["editCode"],
|
|
@@ -3769,8 +3733,8 @@ const Li = {
|
|
|
3769
3733
|
advanced: !0
|
|
3770
3734
|
}]
|
|
3771
3735
|
};
|
|
3772
|
-
function
|
|
3773
|
-
const t =
|
|
3736
|
+
function zi(e) {
|
|
3737
|
+
const t = Jt(null), [r, n] = L(() => []), [i, a] = L(() => []);
|
|
3774
3738
|
return Z(() => {
|
|
3775
3739
|
var u;
|
|
3776
3740
|
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window == "undefined")
|
|
@@ -3807,7 +3771,7 @@ function Ki(e) {
|
|
|
3807
3771
|
}
|
|
3808
3772
|
);
|
|
3809
3773
|
}
|
|
3810
|
-
const
|
|
3774
|
+
const Xi = {
|
|
3811
3775
|
name: "Embed",
|
|
3812
3776
|
static: !0,
|
|
3813
3777
|
inputs: [{
|
|
@@ -3832,22 +3796,22 @@ const Gi = {
|
|
|
3832
3796
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3833
3797
|
hideFromUI: !0
|
|
3834
3798
|
}]
|
|
3835
|
-
},
|
|
3836
|
-
function
|
|
3837
|
-
const t =
|
|
3799
|
+
}, Yi = ["text/javascript", "application/javascript", "application/ecmascript"], Ji = (e) => Yi.includes(e.type);
|
|
3800
|
+
function qi(e) {
|
|
3801
|
+
const t = Jt(null), [r, n] = L(() => []), [i, a] = L(() => []), [s, u] = L(() => !1);
|
|
3838
3802
|
function f() {
|
|
3839
3803
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3840
3804
|
return;
|
|
3841
3805
|
const m = t.current.getElementsByTagName("script");
|
|
3842
3806
|
for (let v = 0; v < m.length; v++) {
|
|
3843
|
-
const
|
|
3844
|
-
if (
|
|
3845
|
-
r.push(
|
|
3807
|
+
const y = m[v];
|
|
3808
|
+
if (y.src && !r.includes(y.src)) {
|
|
3809
|
+
r.push(y.src);
|
|
3846
3810
|
const U = document.createElement("script");
|
|
3847
|
-
U.async = !0, U.src =
|
|
3848
|
-
} else if (
|
|
3811
|
+
U.async = !0, U.src = y.src, document.head.appendChild(U);
|
|
3812
|
+
} else if (Ji(y) && !i.includes(y.innerText))
|
|
3849
3813
|
try {
|
|
3850
|
-
i.push(
|
|
3814
|
+
i.push(y.innerText), new Function(y.innerText)();
|
|
3851
3815
|
} catch (U) {
|
|
3852
3816
|
console.warn("`Embed`: Error running script:", U);
|
|
3853
3817
|
}
|
|
@@ -3864,13 +3828,13 @@ function Yi(e) {
|
|
|
3864
3828
|
}
|
|
3865
3829
|
);
|
|
3866
3830
|
}
|
|
3867
|
-
const
|
|
3831
|
+
const Zi = {
|
|
3868
3832
|
name: "Fragment",
|
|
3869
3833
|
static: !0,
|
|
3870
3834
|
hidden: !0,
|
|
3871
3835
|
canHaveChildren: !0,
|
|
3872
3836
|
noWrap: !0
|
|
3873
|
-
},
|
|
3837
|
+
}, Qi = {
|
|
3874
3838
|
name: "Image",
|
|
3875
3839
|
static: !0,
|
|
3876
3840
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -3893,13 +3857,13 @@ const Ji = {
|
|
|
3893
3857
|
function r(s, u = 6e4) {
|
|
3894
3858
|
return new Promise((f, m) => {
|
|
3895
3859
|
const v = document.createElement("img");
|
|
3896
|
-
let
|
|
3860
|
+
let y = !1;
|
|
3897
3861
|
v.onload = () => {
|
|
3898
|
-
|
|
3862
|
+
y = !0, f(v);
|
|
3899
3863
|
}, v.addEventListener("error", (U) => {
|
|
3900
3864
|
console.warn("Image load failed", U.error), m(U.error);
|
|
3901
3865
|
}), v.src = s, setTimeout(() => {
|
|
3902
|
-
|
|
3866
|
+
y || m(new Error("Image load timed out"));
|
|
3903
3867
|
}, u);
|
|
3904
3868
|
});
|
|
3905
3869
|
}
|
|
@@ -3970,7 +3934,7 @@ const Ji = {
|
|
|
3970
3934
|
advanced: !0,
|
|
3971
3935
|
defaultValue: 0.7041
|
|
3972
3936
|
}]
|
|
3973
|
-
},
|
|
3937
|
+
}, eo = {
|
|
3974
3938
|
// friendlyName?
|
|
3975
3939
|
name: "Raw:Img",
|
|
3976
3940
|
hideFromInsertMenu: !0,
|
|
@@ -3985,7 +3949,7 @@ const Ji = {
|
|
|
3985
3949
|
noWrap: !0,
|
|
3986
3950
|
static: !0
|
|
3987
3951
|
};
|
|
3988
|
-
function
|
|
3952
|
+
function to(e) {
|
|
3989
3953
|
return /* @__PURE__ */ p(
|
|
3990
3954
|
"img",
|
|
3991
3955
|
{
|
|
@@ -4000,7 +3964,7 @@ function Qi(e) {
|
|
|
4000
3964
|
Te() && e.imgSrc || "default-key"
|
|
4001
3965
|
);
|
|
4002
3966
|
}
|
|
4003
|
-
const
|
|
3967
|
+
const no = {
|
|
4004
3968
|
name: "Core:Section",
|
|
4005
3969
|
static: !0,
|
|
4006
3970
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -4039,7 +4003,7 @@ const eo = {
|
|
|
4039
4003
|
}
|
|
4040
4004
|
}
|
|
4041
4005
|
}]
|
|
4042
|
-
},
|
|
4006
|
+
}, ro = {
|
|
4043
4007
|
name: "Slot",
|
|
4044
4008
|
isRSC: !0,
|
|
4045
4009
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -4053,7 +4017,7 @@ const eo = {
|
|
|
4053
4017
|
defaultValue: "children"
|
|
4054
4018
|
}]
|
|
4055
4019
|
};
|
|
4056
|
-
function
|
|
4020
|
+
function io(e) {
|
|
4057
4021
|
var t, r, n;
|
|
4058
4022
|
return /* @__PURE__ */ p(
|
|
4059
4023
|
"div",
|
|
@@ -4065,7 +4029,7 @@ function no(e) {
|
|
|
4065
4029
|
"builder-slot": e.name
|
|
4066
4030
|
},
|
|
4067
4031
|
children: /* @__PURE__ */ p(
|
|
4068
|
-
|
|
4032
|
+
xt,
|
|
4069
4033
|
{
|
|
4070
4034
|
parent: (r = e.builderContext.context) == null ? void 0 : r.symbolId,
|
|
4071
4035
|
path: `symbol.data.${e.name}`,
|
|
@@ -4076,7 +4040,7 @@ function no(e) {
|
|
|
4076
4040
|
}
|
|
4077
4041
|
);
|
|
4078
4042
|
}
|
|
4079
|
-
const
|
|
4043
|
+
const oo = {
|
|
4080
4044
|
name: "Symbol",
|
|
4081
4045
|
noWrap: !0,
|
|
4082
4046
|
static: !0,
|
|
@@ -4109,7 +4073,7 @@ const ro = {
|
|
|
4109
4073
|
hideFromUI: !0,
|
|
4110
4074
|
type: "boolean"
|
|
4111
4075
|
}]
|
|
4112
|
-
},
|
|
4076
|
+
}, ao = {
|
|
4113
4077
|
name: "Text",
|
|
4114
4078
|
static: !0,
|
|
4115
4079
|
isRSC: !0,
|
|
@@ -4128,7 +4092,7 @@ const ro = {
|
|
|
4128
4092
|
textAlign: "center"
|
|
4129
4093
|
}
|
|
4130
4094
|
};
|
|
4131
|
-
function
|
|
4095
|
+
function so(e) {
|
|
4132
4096
|
var t;
|
|
4133
4097
|
return /* @__PURE__ */ p(
|
|
4134
4098
|
"div",
|
|
@@ -4141,7 +4105,7 @@ function oo(e) {
|
|
|
4141
4105
|
}
|
|
4142
4106
|
);
|
|
4143
4107
|
}
|
|
4144
|
-
const
|
|
4108
|
+
const lo = {
|
|
4145
4109
|
name: "Video",
|
|
4146
4110
|
canHaveChildren: !0,
|
|
4147
4111
|
defaultStyles: {
|
|
@@ -4223,7 +4187,7 @@ const ao = {
|
|
|
4223
4187
|
advanced: !0
|
|
4224
4188
|
}]
|
|
4225
4189
|
};
|
|
4226
|
-
function
|
|
4190
|
+
function co(e) {
|
|
4227
4191
|
var n, i, a, s, u, f, m;
|
|
4228
4192
|
function t() {
|
|
4229
4193
|
return {
|
|
@@ -4249,7 +4213,7 @@ function so(e) {
|
|
|
4249
4213
|
...t()
|
|
4250
4214
|
};
|
|
4251
4215
|
}
|
|
4252
|
-
return /* @__PURE__ */
|
|
4216
|
+
return /* @__PURE__ */ ce(
|
|
4253
4217
|
"div",
|
|
4254
4218
|
{
|
|
4255
4219
|
style: {
|
|
@@ -4281,7 +4245,7 @@ function so(e) {
|
|
|
4281
4245
|
children: e.lazyLoad ? null : /* @__PURE__ */ p("source", { type: "video/mp4", src: e.video })
|
|
4282
4246
|
}
|
|
4283
4247
|
),
|
|
4284
|
-
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */ p(
|
|
4248
|
+
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
4285
4249
|
"div",
|
|
4286
4250
|
{
|
|
4287
4251
|
style: {
|
|
@@ -4292,7 +4256,7 @@ function so(e) {
|
|
|
4292
4256
|
}
|
|
4293
4257
|
}
|
|
4294
4258
|
) }) : null,
|
|
4295
|
-
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ p(
|
|
4259
|
+
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
4296
4260
|
"div",
|
|
4297
4261
|
{
|
|
4298
4262
|
style: {
|
|
@@ -4303,7 +4267,7 @@ function so(e) {
|
|
|
4303
4267
|
children: e.children
|
|
4304
4268
|
}
|
|
4305
4269
|
) }) : null,
|
|
4306
|
-
(m = (f = e.builderBlock) == null ? void 0 : f.children) != null && m.length && !e.fitContent ? /* @__PURE__ */ p(
|
|
4270
|
+
(m = (f = e.builderBlock) == null ? void 0 : f.children) != null && m.length && !e.fitContent ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
4307
4271
|
"div",
|
|
4308
4272
|
{
|
|
4309
4273
|
style: {
|
|
@@ -4324,43 +4288,43 @@ function so(e) {
|
|
|
4324
4288
|
}
|
|
4325
4289
|
);
|
|
4326
4290
|
}
|
|
4327
|
-
const
|
|
4328
|
-
component:
|
|
4329
|
-
...Li
|
|
4330
|
-
}, {
|
|
4331
|
-
component: Fi,
|
|
4332
|
-
...$i
|
|
4333
|
-
}, {
|
|
4334
|
-
component: Ki,
|
|
4291
|
+
const er = () => [{
|
|
4292
|
+
component: zr,
|
|
4335
4293
|
...Hi
|
|
4336
4294
|
}, {
|
|
4337
|
-
component:
|
|
4338
|
-
...
|
|
4295
|
+
component: Di,
|
|
4296
|
+
...Ki
|
|
4339
4297
|
}, {
|
|
4340
|
-
component:
|
|
4341
|
-
...
|
|
4298
|
+
component: zi,
|
|
4299
|
+
...Gi
|
|
4342
4300
|
}, {
|
|
4343
|
-
component:
|
|
4344
|
-
...
|
|
4301
|
+
component: qi,
|
|
4302
|
+
...Xi
|
|
4345
4303
|
}, {
|
|
4346
|
-
component:
|
|
4304
|
+
component: _i,
|
|
4347
4305
|
...Zi
|
|
4348
4306
|
}, {
|
|
4349
4307
|
component: Vi,
|
|
4308
|
+
...Qi
|
|
4309
|
+
}, {
|
|
4310
|
+
component: to,
|
|
4350
4311
|
...eo
|
|
4351
4312
|
}, {
|
|
4352
|
-
component:
|
|
4353
|
-
...
|
|
4313
|
+
component: $i,
|
|
4314
|
+
...no
|
|
4354
4315
|
}, {
|
|
4355
|
-
component:
|
|
4356
|
-
...
|
|
4316
|
+
component: No,
|
|
4317
|
+
...oo
|
|
4357
4318
|
}, {
|
|
4358
4319
|
component: so,
|
|
4359
4320
|
...ao
|
|
4360
4321
|
}, {
|
|
4361
|
-
component:
|
|
4362
|
-
...
|
|
4363
|
-
}
|
|
4322
|
+
component: co,
|
|
4323
|
+
...lo
|
|
4324
|
+
}, {
|
|
4325
|
+
component: io,
|
|
4326
|
+
...ro
|
|
4327
|
+
}], uo = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4364
4328
|
function getAndSetVariantId() {
|
|
4365
4329
|
function setCookie(name, value, days) {
|
|
4366
4330
|
let expires = '';
|
|
@@ -4416,7 +4380,7 @@ const rr = () => [{
|
|
|
4416
4380
|
}).join('');
|
|
4417
4381
|
styleEl.innerHTML = newStyleStr;
|
|
4418
4382
|
}
|
|
4419
|
-
}`,
|
|
4383
|
+
}`, fo = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4420
4384
|
if (!navigator.cookieEnabled) {
|
|
4421
4385
|
return;
|
|
4422
4386
|
}
|
|
@@ -4450,26 +4414,26 @@ const rr = () => [{
|
|
|
4450
4414
|
thisScriptEl?.remove();
|
|
4451
4415
|
}
|
|
4452
4416
|
return;
|
|
4453
|
-
}`,
|
|
4417
|
+
}`, xr = "builderIoAbTest", Sr = "builderIoRenderContent", ht = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4454
4418
|
...t,
|
|
4455
4419
|
testVariationId: t.id,
|
|
4456
4420
|
id: e == null ? void 0 : e.id
|
|
4457
|
-
})),
|
|
4421
|
+
})), ho = ({
|
|
4458
4422
|
canTrack: e,
|
|
4459
4423
|
content: t
|
|
4460
|
-
}) => !(!(ht(t).length > 0) || !e || je()),
|
|
4461
|
-
window.${
|
|
4462
|
-
window.${
|
|
4463
|
-
`,
|
|
4464
|
-
window.${
|
|
4465
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4466
|
-
)`,
|
|
4424
|
+
}) => !(!(ht(t).length > 0) || !e || je()), po = (e) => e === "react" || e === "reactNative", wr = po(rt), mo = () => `
|
|
4425
|
+
window.${xr} = ${uo}
|
|
4426
|
+
window.${Sr} = ${fo}
|
|
4427
|
+
`, go = (e, t) => `
|
|
4428
|
+
window.${xr}(
|
|
4429
|
+
"${t}",${JSON.stringify(e)}, ${wr}
|
|
4430
|
+
)`, vo = ({
|
|
4467
4431
|
contentId: e,
|
|
4468
4432
|
variationId: t
|
|
4469
|
-
}) => `window.${
|
|
4470
|
-
"${t}", "${e}", ${
|
|
4433
|
+
}) => `window.${Sr}(
|
|
4434
|
+
"${t}", "${e}", ${wr}
|
|
4471
4435
|
)`;
|
|
4472
|
-
function
|
|
4436
|
+
function Yt(e) {
|
|
4473
4437
|
return /* @__PURE__ */ p(
|
|
4474
4438
|
"script",
|
|
4475
4439
|
{
|
|
@@ -4478,10 +4442,15 @@ function Zt(e) {
|
|
|
4478
4442
|
}
|
|
4479
4443
|
);
|
|
4480
4444
|
}
|
|
4481
|
-
|
|
4445
|
+
const yo = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4446
|
+
function kr(e, t) {
|
|
4447
|
+
const r = new URL(t.origin), n = r.hostname;
|
|
4448
|
+
return (e || yo).findIndex((i) => i.startsWith("*.") ? n.endsWith(i.slice(1)) : i === n) > -1;
|
|
4449
|
+
}
|
|
4450
|
+
function tr(e) {
|
|
4482
4451
|
return Math.round(e * 1e3) / 1e3;
|
|
4483
4452
|
}
|
|
4484
|
-
const
|
|
4453
|
+
const bo = (e, t, r = !0) => {
|
|
4485
4454
|
if (!(e instanceof HTMLElement))
|
|
4486
4455
|
return null;
|
|
4487
4456
|
let n = r ? e : e.parentElement;
|
|
@@ -4492,36 +4461,36 @@ const go = (e, t, r = !0) => {
|
|
|
4492
4461
|
return n;
|
|
4493
4462
|
} while (n = n.parentElement);
|
|
4494
4463
|
return null;
|
|
4495
|
-
},
|
|
4464
|
+
}, xo = (e) => bo(e, (t) => {
|
|
4496
4465
|
const r = t.getAttribute("builder-id") || t.id;
|
|
4497
4466
|
return (r == null ? void 0 : r.indexOf("builder-")) === 0;
|
|
4498
|
-
}),
|
|
4467
|
+
}), nr = ({
|
|
4499
4468
|
event: e,
|
|
4500
4469
|
target: t
|
|
4501
4470
|
}) => {
|
|
4502
|
-
const r = t.getBoundingClientRect(), n = e.clientX - r.left, i = e.clientY - r.top, a =
|
|
4471
|
+
const r = t.getBoundingClientRect(), n = e.clientX - r.left, i = e.clientY - r.top, a = tr(n / r.width), s = tr(i / r.height);
|
|
4503
4472
|
return {
|
|
4504
4473
|
x: a,
|
|
4505
4474
|
y: s
|
|
4506
4475
|
};
|
|
4507
|
-
},
|
|
4508
|
-
const t = e.target, r = t &&
|
|
4476
|
+
}, So = (e) => {
|
|
4477
|
+
const t = e.target, r = t && xo(t), n = (r == null ? void 0 : r.getAttribute("builder-id")) || (r == null ? void 0 : r.id);
|
|
4509
4478
|
return {
|
|
4510
4479
|
targetBuilderElement: n || void 0,
|
|
4511
4480
|
metadata: {
|
|
4512
|
-
targetOffset: t ?
|
|
4481
|
+
targetOffset: t ? nr({
|
|
4513
4482
|
event: e,
|
|
4514
4483
|
target: t
|
|
4515
4484
|
}) : void 0,
|
|
4516
|
-
builderTargetOffset: r ?
|
|
4485
|
+
builderTargetOffset: r ? nr({
|
|
4517
4486
|
event: e,
|
|
4518
4487
|
target: r
|
|
4519
4488
|
}) : void 0,
|
|
4520
4489
|
builderElementIndex: r && n ? [].slice.call(document.getElementsByClassName(n)).indexOf(r) : void 0
|
|
4521
4490
|
}
|
|
4522
4491
|
};
|
|
4523
|
-
},
|
|
4524
|
-
|
|
4492
|
+
}, wo = "0.12.3", ko = () => {
|
|
4493
|
+
Vr("insertMenu", {
|
|
4525
4494
|
name: "_default",
|
|
4526
4495
|
default: !0,
|
|
4527
4496
|
items: [{
|
|
@@ -4543,14 +4512,14 @@ const go = (e, t, r = !0) => {
|
|
|
4543
4512
|
}]
|
|
4544
4513
|
});
|
|
4545
4514
|
};
|
|
4546
|
-
let
|
|
4547
|
-
const
|
|
4515
|
+
let rr = !1;
|
|
4516
|
+
const Co = (e = {}) => {
|
|
4548
4517
|
var t, r;
|
|
4549
|
-
|
|
4518
|
+
rr || (rr = !0, je() && ((t = window.parent) == null || t.postMessage({
|
|
4550
4519
|
type: "builder.sdkInfo",
|
|
4551
4520
|
data: {
|
|
4552
4521
|
target: rt,
|
|
4553
|
-
version:
|
|
4522
|
+
version: wo,
|
|
4554
4523
|
supportsPatchUpdates: !1,
|
|
4555
4524
|
// Supports builder-model="..." attribute which is needed to
|
|
4556
4525
|
// scope our '+ add block' button styling
|
|
@@ -4562,40 +4531,43 @@ const So = (e = {}) => {
|
|
|
4562
4531
|
data: {
|
|
4563
4532
|
options: e
|
|
4564
4533
|
}
|
|
4565
|
-
}, "*"), window.addEventListener("message", ({
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4534
|
+
}, "*"), window.addEventListener("message", (n) => {
|
|
4535
|
+
var a, s;
|
|
4536
|
+
if (!kr(e.trustedHosts, n))
|
|
4537
|
+
return;
|
|
4538
|
+
const {
|
|
4539
|
+
data: i
|
|
4540
|
+
} = n;
|
|
4541
|
+
if (i != null && i.type)
|
|
4542
|
+
switch (i.type) {
|
|
4571
4543
|
case "builder.evaluate": {
|
|
4572
|
-
const
|
|
4573
|
-
let
|
|
4544
|
+
const u = i.data.text, f = i.data.arguments || [], m = i.data.id, v = new Function(u);
|
|
4545
|
+
let y, U = null;
|
|
4574
4546
|
try {
|
|
4575
|
-
|
|
4576
|
-
} catch (
|
|
4577
|
-
|
|
4547
|
+
y = v.apply(null, f);
|
|
4548
|
+
} catch (B) {
|
|
4549
|
+
U = B;
|
|
4578
4550
|
}
|
|
4579
|
-
|
|
4551
|
+
U ? (a = window.parent) == null || a.postMessage({
|
|
4580
4552
|
type: "builder.evaluateError",
|
|
4581
4553
|
data: {
|
|
4582
|
-
id:
|
|
4583
|
-
error:
|
|
4554
|
+
id: m,
|
|
4555
|
+
error: U.message
|
|
4584
4556
|
}
|
|
4585
|
-
}, "*") :
|
|
4586
|
-
var
|
|
4587
|
-
(
|
|
4557
|
+
}, "*") : y && typeof y.then == "function" ? y.then((B) => {
|
|
4558
|
+
var R;
|
|
4559
|
+
(R = window.parent) == null || R.postMessage({
|
|
4588
4560
|
type: "builder.evaluateResult",
|
|
4589
4561
|
data: {
|
|
4590
|
-
id:
|
|
4591
|
-
result:
|
|
4562
|
+
id: m,
|
|
4563
|
+
result: B
|
|
4592
4564
|
}
|
|
4593
4565
|
}, "*");
|
|
4594
|
-
}).catch(console.error) : (
|
|
4566
|
+
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
4595
4567
|
type: "builder.evaluateResult",
|
|
4596
4568
|
data: {
|
|
4597
|
-
result:
|
|
4598
|
-
id:
|
|
4569
|
+
result: y,
|
|
4570
|
+
id: m
|
|
4599
4571
|
}
|
|
4600
4572
|
}, "*");
|
|
4601
4573
|
break;
|
|
@@ -4603,34 +4575,34 @@ const So = (e = {}) => {
|
|
|
4603
4575
|
}
|
|
4604
4576
|
})));
|
|
4605
4577
|
};
|
|
4606
|
-
function
|
|
4607
|
-
var
|
|
4608
|
-
const t =
|
|
4609
|
-
|
|
4610
|
-
function i(
|
|
4578
|
+
function Eo(e) {
|
|
4579
|
+
var ne, E, Ae, W, ke, ue, H;
|
|
4580
|
+
const t = Jt(null), [r, n] = L(() => 0);
|
|
4581
|
+
L(() => !0);
|
|
4582
|
+
function i(k) {
|
|
4611
4583
|
var T, M;
|
|
4612
4584
|
const I = {
|
|
4613
4585
|
...e.builderContextSignal.rootState,
|
|
4614
|
-
...
|
|
4586
|
+
...k
|
|
4615
4587
|
};
|
|
4616
|
-
e.builderContextSignal.rootSetState ? (M = (T = e.builderContextSignal).rootSetState) == null || M.call(T, I) : e.setBuilderContextSignal((
|
|
4617
|
-
...
|
|
4588
|
+
e.builderContextSignal.rootSetState ? (M = (T = e.builderContextSignal).rootSetState) == null || M.call(T, I) : e.setBuilderContextSignal((D) => ({
|
|
4589
|
+
...D,
|
|
4618
4590
|
rootState: I
|
|
4619
4591
|
}));
|
|
4620
4592
|
}
|
|
4621
|
-
function a(
|
|
4622
|
-
var T, M,
|
|
4593
|
+
function a(k) {
|
|
4594
|
+
var T, M, D, G, Ce;
|
|
4623
4595
|
const I = {
|
|
4624
4596
|
...e.builderContextSignal.content,
|
|
4625
|
-
...
|
|
4597
|
+
...k,
|
|
4626
4598
|
data: {
|
|
4627
4599
|
...(T = e.builderContextSignal.content) == null ? void 0 : T.data,
|
|
4628
|
-
...
|
|
4600
|
+
...k == null ? void 0 : k.data
|
|
4629
4601
|
},
|
|
4630
4602
|
meta: {
|
|
4631
4603
|
...(M = e.builderContextSignal.content) == null ? void 0 : M.meta,
|
|
4632
|
-
...
|
|
4633
|
-
breakpoints: ((
|
|
4604
|
+
...k == null ? void 0 : k.meta,
|
|
4605
|
+
breakpoints: ((D = k == null ? void 0 : k.meta) == null ? void 0 : D.breakpoints) || ((Ce = (G = e.builderContextSignal.content) == null ? void 0 : G.meta) == null ? void 0 : Ce.breakpoints)
|
|
4634
4606
|
}
|
|
4635
4607
|
};
|
|
4636
4608
|
e.setBuilderContextSignal((at) => ({
|
|
@@ -4638,65 +4610,67 @@ function wo(e) {
|
|
|
4638
4610
|
content: I
|
|
4639
4611
|
}));
|
|
4640
4612
|
}
|
|
4641
|
-
|
|
4642
|
-
const [s, u] =
|
|
4613
|
+
L(() => 0);
|
|
4614
|
+
const [s, u] = L(
|
|
4643
4615
|
() => !1
|
|
4644
|
-
), [f, m] =
|
|
4616
|
+
), [f, m] = L(
|
|
4645
4617
|
() => e.contentWrapper || "div"
|
|
4646
4618
|
);
|
|
4647
|
-
function v(
|
|
4619
|
+
function v(k) {
|
|
4648
4620
|
var T;
|
|
4649
|
-
|
|
4621
|
+
if (!kr(e.trustedHosts, k))
|
|
4622
|
+
return;
|
|
4623
|
+
const { data: I } = k;
|
|
4650
4624
|
if (I)
|
|
4651
4625
|
switch (I.type) {
|
|
4652
4626
|
case "builder.configureSdk": {
|
|
4653
|
-
const M = I.data, { breakpoints:
|
|
4627
|
+
const M = I.data, { breakpoints: D, contentId: G } = M;
|
|
4654
4628
|
if (!G || G !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id))
|
|
4655
4629
|
return;
|
|
4656
|
-
|
|
4630
|
+
D && a({
|
|
4657
4631
|
meta: {
|
|
4658
|
-
breakpoints:
|
|
4632
|
+
breakpoints: D
|
|
4659
4633
|
}
|
|
4660
4634
|
}), n(r + 1);
|
|
4661
4635
|
break;
|
|
4662
4636
|
}
|
|
4663
4637
|
case "builder.contentUpdate": {
|
|
4664
|
-
const M = I.data,
|
|
4665
|
-
|
|
4638
|
+
const M = I.data, D = M.key || M.alias || M.entry || M.modelName, G = M.data;
|
|
4639
|
+
D === e.model && (a(G), n(r + 1));
|
|
4666
4640
|
break;
|
|
4667
4641
|
}
|
|
4668
4642
|
}
|
|
4669
4643
|
}
|
|
4670
|
-
function
|
|
4644
|
+
function y() {
|
|
4671
4645
|
var I, T;
|
|
4672
|
-
const
|
|
4673
|
-
|
|
4674
|
-
code:
|
|
4646
|
+
const k = (T = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : T.jsCode;
|
|
4647
|
+
k && nt({
|
|
4648
|
+
code: k,
|
|
4675
4649
|
context: e.context || {},
|
|
4676
4650
|
localState: void 0,
|
|
4677
4651
|
rootState: e.builderContextSignal.rootState,
|
|
4678
4652
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4679
4653
|
});
|
|
4680
4654
|
}
|
|
4681
|
-
const [U,
|
|
4682
|
-
function
|
|
4655
|
+
const [U, B] = L(() => ({})), [R, N] = L(() => !1);
|
|
4656
|
+
function V(k) {
|
|
4683
4657
|
var I, T;
|
|
4684
4658
|
if (e.builderContextSignal.content) {
|
|
4685
|
-
const M = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId,
|
|
4686
|
-
|
|
4659
|
+
const M = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, D = (T = e.builderContextSignal.content) == null ? void 0 : T.id;
|
|
4660
|
+
Vn({
|
|
4687
4661
|
type: "click",
|
|
4688
4662
|
canTrack: pt(e.canTrack),
|
|
4689
|
-
contentId:
|
|
4663
|
+
contentId: D,
|
|
4690
4664
|
apiKey: e.apiKey,
|
|
4691
|
-
variationId: M !==
|
|
4692
|
-
...
|
|
4693
|
-
unique: !
|
|
4665
|
+
variationId: M !== D ? M : void 0,
|
|
4666
|
+
...So(k),
|
|
4667
|
+
unique: !R
|
|
4694
4668
|
});
|
|
4695
4669
|
}
|
|
4696
|
-
|
|
4670
|
+
R || N(!0);
|
|
4697
4671
|
}
|
|
4698
|
-
function Y(
|
|
4699
|
-
return
|
|
4672
|
+
function Y(k) {
|
|
4673
|
+
return k.replace(
|
|
4700
4674
|
/{{([^}]+)}}/g,
|
|
4701
4675
|
(I, T) => nt({
|
|
4702
4676
|
code: T,
|
|
@@ -4707,38 +4681,38 @@ function wo(e) {
|
|
|
4707
4681
|
})
|
|
4708
4682
|
);
|
|
4709
4683
|
}
|
|
4710
|
-
function
|
|
4711
|
-
|
|
4712
|
-
var
|
|
4684
|
+
function b({ url: k, key: I }) {
|
|
4685
|
+
Kr(k).then((T) => T.json()).then((T) => {
|
|
4686
|
+
var D, G;
|
|
4713
4687
|
const M = {
|
|
4714
4688
|
...e.builderContextSignal.rootState,
|
|
4715
4689
|
[I]: T
|
|
4716
4690
|
};
|
|
4717
|
-
(G = (
|
|
4691
|
+
(G = (D = e.builderContextSignal).rootSetState) == null || G.call(D, M), U[I] = !0;
|
|
4718
4692
|
}).catch((T) => {
|
|
4719
|
-
console.error("error fetching dynamic data",
|
|
4693
|
+
console.error("error fetching dynamic data", k, T);
|
|
4720
4694
|
});
|
|
4721
4695
|
}
|
|
4722
4696
|
function K() {
|
|
4723
4697
|
var I, T, M;
|
|
4724
|
-
const
|
|
4725
|
-
Object.entries(
|
|
4726
|
-
if (G && (!U[
|
|
4698
|
+
const k = (M = (T = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : T.httpRequests) != null ? M : {};
|
|
4699
|
+
Object.entries(k).forEach(([D, G]) => {
|
|
4700
|
+
if (G && (!U[D] || Te())) {
|
|
4727
4701
|
const Ce = Y(G);
|
|
4728
|
-
|
|
4702
|
+
b({
|
|
4729
4703
|
url: Ce,
|
|
4730
|
-
key:
|
|
4704
|
+
key: D
|
|
4731
4705
|
});
|
|
4732
4706
|
}
|
|
4733
4707
|
});
|
|
4734
4708
|
}
|
|
4735
|
-
function
|
|
4709
|
+
function te() {
|
|
4736
4710
|
Te() && window.dispatchEvent(
|
|
4737
4711
|
new CustomEvent(
|
|
4738
4712
|
"builder:component:stateChange",
|
|
4739
4713
|
{
|
|
4740
4714
|
detail: {
|
|
4741
|
-
state:
|
|
4715
|
+
state: qt(e.builderContextSignal.rootState),
|
|
4742
4716
|
ref: {
|
|
4743
4717
|
name: e.model
|
|
4744
4718
|
}
|
|
@@ -4747,8 +4721,8 @@ function wo(e) {
|
|
|
4747
4721
|
)
|
|
4748
4722
|
);
|
|
4749
4723
|
}
|
|
4750
|
-
function
|
|
4751
|
-
n(r + 1), window.addEventListener("message", v),
|
|
4724
|
+
function se(k) {
|
|
4725
|
+
n(r + 1), window.addEventListener("message", v), ko(), Co({
|
|
4752
4726
|
...e.locale ? {
|
|
4753
4727
|
locale: e.locale
|
|
4754
4728
|
} : {},
|
|
@@ -4757,23 +4731,26 @@ function wo(e) {
|
|
|
4757
4731
|
} : {},
|
|
4758
4732
|
...e.enrich ? {
|
|
4759
4733
|
enrich: e.enrich
|
|
4734
|
+
} : {},
|
|
4735
|
+
...e.trustedHosts ? {
|
|
4736
|
+
trustedHosts: e.trustedHosts
|
|
4760
4737
|
} : {}
|
|
4761
4738
|
}), Object.values(
|
|
4762
4739
|
e.builderContextSignal.componentInfos
|
|
4763
4740
|
).forEach((I) => {
|
|
4764
4741
|
var M;
|
|
4765
|
-
const T =
|
|
4742
|
+
const T = Hr(I);
|
|
4766
4743
|
(M = window.parent) == null || M.postMessage(T, "*");
|
|
4767
4744
|
}), window.addEventListener(
|
|
4768
4745
|
"builder:component:stateChangeListenerActivated",
|
|
4769
|
-
|
|
4746
|
+
te
|
|
4770
4747
|
);
|
|
4771
4748
|
}
|
|
4772
|
-
function $(
|
|
4749
|
+
function $(k) {
|
|
4773
4750
|
const I = new URL(location.href).searchParams, T = I.get("builder.preview"), M = I.get(
|
|
4774
4751
|
`builder.preview.${T}`
|
|
4775
|
-
),
|
|
4776
|
-
T === e.model &&
|
|
4752
|
+
), D = I.get("apiKey") || I.get("builder.space");
|
|
4753
|
+
T === e.model && D === e.apiKey && (!e.content || M === e.content.id) && sr({
|
|
4777
4754
|
model: e.model,
|
|
4778
4755
|
apiKey: e.apiKey,
|
|
4779
4756
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -4782,20 +4759,20 @@ function wo(e) {
|
|
|
4782
4759
|
});
|
|
4783
4760
|
}
|
|
4784
4761
|
return Z(() => {
|
|
4785
|
-
var
|
|
4786
|
-
return (
|
|
4762
|
+
var k;
|
|
4763
|
+
return (k = t.current) == null || k.addEventListener(
|
|
4787
4764
|
"initeditingbldr",
|
|
4788
|
-
|
|
4765
|
+
se
|
|
4789
4766
|
), () => {
|
|
4790
4767
|
var I;
|
|
4791
4768
|
return (I = t.current) == null ? void 0 : I.removeEventListener(
|
|
4792
4769
|
"initeditingbldr",
|
|
4793
|
-
|
|
4770
|
+
se
|
|
4794
4771
|
);
|
|
4795
4772
|
};
|
|
4796
4773
|
}, []), Z(() => {
|
|
4797
|
-
var
|
|
4798
|
-
return (
|
|
4774
|
+
var k;
|
|
4775
|
+
return (k = t.current) == null || k.addEventListener(
|
|
4799
4776
|
"initpreviewingbldr",
|
|
4800
4777
|
$
|
|
4801
4778
|
), () => {
|
|
@@ -4806,36 +4783,36 @@ function wo(e) {
|
|
|
4806
4783
|
);
|
|
4807
4784
|
};
|
|
4808
4785
|
}, []), Z(() => {
|
|
4809
|
-
var
|
|
4786
|
+
var k, I;
|
|
4810
4787
|
if (je()) {
|
|
4811
4788
|
if (Te() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && pt(e.canTrack)) {
|
|
4812
|
-
const M = (
|
|
4813
|
-
|
|
4789
|
+
const M = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, D = (I = e.builderContextSignal.content) == null ? void 0 : I.id, G = e.apiKey;
|
|
4790
|
+
Vn({
|
|
4814
4791
|
type: "impression",
|
|
4815
4792
|
canTrack: !0,
|
|
4816
|
-
contentId:
|
|
4793
|
+
contentId: D,
|
|
4817
4794
|
apiKey: G,
|
|
4818
|
-
variationId: M !==
|
|
4795
|
+
variationId: M !== D ? M : void 0
|
|
4819
4796
|
});
|
|
4820
4797
|
}
|
|
4821
|
-
|
|
4798
|
+
$r() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
4822
4799
|
}
|
|
4823
4800
|
}, []), Z(() => {
|
|
4824
4801
|
e.apiKey || Ue.error(
|
|
4825
4802
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4826
|
-
),
|
|
4803
|
+
), y(), K(), te();
|
|
4827
4804
|
}, []), Z(() => {
|
|
4828
4805
|
e.content && a(e.content);
|
|
4829
4806
|
}, [e.content]), Z(() => {
|
|
4830
4807
|
}, [s]), Z(() => {
|
|
4831
|
-
|
|
4808
|
+
y();
|
|
4832
4809
|
}, [
|
|
4833
|
-
(E = (
|
|
4810
|
+
(E = (ne = e.builderContextSignal.content) == null ? void 0 : ne.data) == null ? void 0 : E.jsCode,
|
|
4834
4811
|
e.builderContextSignal.rootState
|
|
4835
4812
|
]), Z(() => {
|
|
4836
4813
|
K();
|
|
4837
4814
|
}, [(W = (Ae = e.builderContextSignal.content) == null ? void 0 : Ae.data) == null ? void 0 : W.httpRequests]), Z(() => {
|
|
4838
|
-
|
|
4815
|
+
te();
|
|
4839
4816
|
}, [e.builderContextSignal.rootState]), Z(() => {
|
|
4840
4817
|
e.data && i(e.data);
|
|
4841
4818
|
}, [e.data]), Z(() => {
|
|
@@ -4845,14 +4822,14 @@ function wo(e) {
|
|
|
4845
4822
|
}, [e.locale]), Z(() => () => {
|
|
4846
4823
|
je() && (window.removeEventListener("message", v), window.removeEventListener(
|
|
4847
4824
|
"builder:component:stateChangeListenerActivated",
|
|
4848
|
-
|
|
4825
|
+
te
|
|
4849
4826
|
));
|
|
4850
|
-
}, []), /* @__PURE__ */ p(
|
|
4827
|
+
}, []), /* @__PURE__ */ p(Zt.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ ar(
|
|
4851
4828
|
f,
|
|
4852
4829
|
{
|
|
4853
4830
|
key: r,
|
|
4854
4831
|
ref: t,
|
|
4855
|
-
onClick: (
|
|
4832
|
+
onClick: (k) => V(k),
|
|
4856
4833
|
"builder-content-id": (ke = e.builderContextSignal.content) == null ? void 0 : ke.id,
|
|
4857
4834
|
"builder-model": e.model,
|
|
4858
4835
|
...e.showContent ? {} : {
|
|
@@ -4865,7 +4842,7 @@ function wo(e) {
|
|
|
4865
4842
|
e.children
|
|
4866
4843
|
) }) : null });
|
|
4867
4844
|
}
|
|
4868
|
-
const
|
|
4845
|
+
const Io = (e) => {
|
|
4869
4846
|
var a, s;
|
|
4870
4847
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), r = t.split(",")[0], n = (s = e.fileUrl) != null ? s : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
4871
4848
|
let i = "";
|
|
@@ -4891,26 +4868,30 @@ font-weight: ${u};
|
|
|
4891
4868
|
`.trim());
|
|
4892
4869
|
}
|
|
4893
4870
|
return i;
|
|
4894
|
-
},
|
|
4871
|
+
}, To = ({
|
|
4895
4872
|
customFonts: e
|
|
4896
4873
|
}) => {
|
|
4897
4874
|
var t;
|
|
4898
|
-
return ((t = e == null ? void 0 : e.map((r) =>
|
|
4899
|
-
},
|
|
4875
|
+
return ((t = e == null ? void 0 : e.map((r) => Io(r))) == null ? void 0 : t.join(" ")) || "";
|
|
4876
|
+
}, jo = ({
|
|
4900
4877
|
cssCode: e,
|
|
4901
4878
|
contentId: t
|
|
4902
4879
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4903
|
-
function
|
|
4904
|
-
const [t, r] =
|
|
4880
|
+
function Ao(e) {
|
|
4881
|
+
const [t, r] = L(
|
|
4905
4882
|
() => `
|
|
4906
|
-
${
|
|
4883
|
+
${jo({
|
|
4907
4884
|
cssCode: e.cssCode,
|
|
4908
4885
|
contentId: e.contentId
|
|
4909
4886
|
})}
|
|
4910
|
-
${
|
|
4887
|
+
${To({
|
|
4911
4888
|
customFonts: e.customFonts
|
|
4912
4889
|
})}
|
|
4913
4890
|
|
|
4891
|
+
.builder-button {
|
|
4892
|
+
all: unset;
|
|
4893
|
+
}
|
|
4894
|
+
|
|
4914
4895
|
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
4915
4896
|
margin: 0;
|
|
4916
4897
|
}
|
|
@@ -4925,9 +4906,9 @@ ${Co({
|
|
|
4925
4906
|
}
|
|
4926
4907
|
`.trim()
|
|
4927
4908
|
);
|
|
4928
|
-
return /* @__PURE__ */ p(
|
|
4909
|
+
return /* @__PURE__ */ p(yt, { styles: t });
|
|
4929
4910
|
}
|
|
4930
|
-
const
|
|
4911
|
+
const Ro = ({
|
|
4931
4912
|
content: e,
|
|
4932
4913
|
data: t,
|
|
4933
4914
|
locale: r
|
|
@@ -4944,7 +4925,7 @@ const To = ({
|
|
|
4944
4925
|
locale: r
|
|
4945
4926
|
} : {}
|
|
4946
4927
|
};
|
|
4947
|
-
},
|
|
4928
|
+
}, Oo = ({
|
|
4948
4929
|
content: e,
|
|
4949
4930
|
data: t
|
|
4950
4931
|
}) => e ? {
|
|
@@ -4955,52 +4936,52 @@ const To = ({
|
|
|
4955
4936
|
},
|
|
4956
4937
|
meta: e == null ? void 0 : e.meta
|
|
4957
4938
|
} : void 0;
|
|
4958
|
-
function
|
|
4959
|
-
var f, m, v,
|
|
4960
|
-
const [t, r] =
|
|
4939
|
+
function ir(e) {
|
|
4940
|
+
var f, m, v, y, U, B, R;
|
|
4941
|
+
const [t, r] = L(
|
|
4961
4942
|
() => {
|
|
4962
|
-
var
|
|
4963
|
-
return
|
|
4943
|
+
var N, V;
|
|
4944
|
+
return vo({
|
|
4964
4945
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4965
|
-
variationId: (
|
|
4946
|
+
variationId: (N = e.content) == null ? void 0 : N.testVariationId,
|
|
4966
4947
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4967
|
-
contentId: (
|
|
4948
|
+
contentId: (V = e.content) == null ? void 0 : V.id
|
|
4968
4949
|
});
|
|
4969
4950
|
}
|
|
4970
4951
|
);
|
|
4971
|
-
function n(
|
|
4972
|
-
u((
|
|
4973
|
-
...
|
|
4974
|
-
rootState:
|
|
4952
|
+
function n(N) {
|
|
4953
|
+
u((V) => ({
|
|
4954
|
+
...V,
|
|
4955
|
+
rootState: N
|
|
4975
4956
|
}));
|
|
4976
4957
|
}
|
|
4977
|
-
const [i, a] =
|
|
4958
|
+
const [i, a] = L(
|
|
4978
4959
|
() => [
|
|
4979
|
-
...
|
|
4960
|
+
...er(),
|
|
4980
4961
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
4981
4962
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
4982
4963
|
// existing usage.
|
|
4983
4964
|
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
4984
4965
|
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
4985
|
-
|
|
4966
|
+
...$n,
|
|
4986
4967
|
...e.customComponents || []
|
|
4987
4968
|
].reduce(
|
|
4988
|
-
(
|
|
4989
|
-
...
|
|
4969
|
+
(N, { component: V, ...Y }) => ({
|
|
4970
|
+
...N,
|
|
4990
4971
|
[Y.name]: {
|
|
4991
|
-
component:
|
|
4992
|
-
...
|
|
4972
|
+
component: V,
|
|
4973
|
+
...Hn(Y)
|
|
4993
4974
|
}
|
|
4994
4975
|
}),
|
|
4995
4976
|
{}
|
|
4996
4977
|
)
|
|
4997
|
-
), [s, u] =
|
|
4998
|
-
content:
|
|
4978
|
+
), [s, u] = L(() => ({
|
|
4979
|
+
content: Oo({
|
|
4999
4980
|
content: e.content,
|
|
5000
4981
|
data: e.data
|
|
5001
4982
|
}),
|
|
5002
4983
|
localState: void 0,
|
|
5003
|
-
rootState:
|
|
4984
|
+
rootState: Ro({
|
|
5004
4985
|
content: e.content,
|
|
5005
4986
|
data: e.data,
|
|
5006
4987
|
locale: e.locale
|
|
@@ -5010,18 +4991,18 @@ function sr(e) {
|
|
|
5010
4991
|
apiKey: e.apiKey,
|
|
5011
4992
|
apiVersion: e.apiVersion,
|
|
5012
4993
|
componentInfos: [
|
|
5013
|
-
...
|
|
4994
|
+
...er(),
|
|
5014
4995
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
5015
4996
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
5016
4997
|
// existing usage.
|
|
5017
4998
|
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
5018
4999
|
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
5019
|
-
|
|
5000
|
+
...$n,
|
|
5020
5001
|
...e.customComponents || []
|
|
5021
5002
|
].reduce(
|
|
5022
|
-
(
|
|
5023
|
-
...
|
|
5024
|
-
[Y.name]:
|
|
5003
|
+
(N, { component: V, ...Y }) => ({
|
|
5004
|
+
...N,
|
|
5005
|
+
[Y.name]: Hn(Y)
|
|
5025
5006
|
}),
|
|
5026
5007
|
{}
|
|
5027
5008
|
),
|
|
@@ -5030,13 +5011,13 @@ function sr(e) {
|
|
|
5030
5011
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
5031
5012
|
}));
|
|
5032
5013
|
return /* @__PURE__ */ p(
|
|
5033
|
-
|
|
5014
|
+
lr.Provider,
|
|
5034
5015
|
{
|
|
5035
5016
|
value: {
|
|
5036
5017
|
registeredComponents: i
|
|
5037
5018
|
},
|
|
5038
|
-
children: /* @__PURE__ */
|
|
5039
|
-
|
|
5019
|
+
children: /* @__PURE__ */ ce(
|
|
5020
|
+
Eo,
|
|
5040
5021
|
{
|
|
5041
5022
|
content: e.content,
|
|
5042
5023
|
data: e.data,
|
|
@@ -5051,21 +5032,22 @@ function sr(e) {
|
|
|
5051
5032
|
builderContextSignal: s,
|
|
5052
5033
|
contentWrapper: e.contentWrapper,
|
|
5053
5034
|
contentWrapperProps: e.contentWrapperProps,
|
|
5035
|
+
trustedHosts: e.trustedHosts,
|
|
5054
5036
|
setBuilderContextSignal: u,
|
|
5055
5037
|
children: [
|
|
5056
|
-
e.isSsrAbTest ? /* @__PURE__ */ p(
|
|
5057
|
-
/* @__PURE__ */ p(
|
|
5058
|
-
|
|
5038
|
+
e.isSsrAbTest ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(Yt, { scriptStr: t }) }) : null,
|
|
5039
|
+
/* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
5040
|
+
Ao,
|
|
5059
5041
|
{
|
|
5060
5042
|
contentId: (f = s.content) == null ? void 0 : f.id,
|
|
5061
5043
|
cssCode: (v = (m = s.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
|
|
5062
|
-
customFonts: (U = (
|
|
5044
|
+
customFonts: (U = (y = s.content) == null ? void 0 : y.data) == null ? void 0 : U.customFonts
|
|
5063
5045
|
}
|
|
5064
5046
|
) }),
|
|
5065
5047
|
/* @__PURE__ */ p(
|
|
5066
|
-
|
|
5048
|
+
xt,
|
|
5067
5049
|
{
|
|
5068
|
-
blocks: (
|
|
5050
|
+
blocks: (R = (B = s.content) == null ? void 0 : B.data) == null ? void 0 : R.blocks,
|
|
5069
5051
|
context: s,
|
|
5070
5052
|
registeredComponents: i
|
|
5071
5053
|
}
|
|
@@ -5076,17 +5058,17 @@ function sr(e) {
|
|
|
5076
5058
|
}
|
|
5077
5059
|
);
|
|
5078
5060
|
}
|
|
5079
|
-
function
|
|
5061
|
+
function Cr(e) {
|
|
5080
5062
|
var s, u;
|
|
5081
|
-
const [t, r] =
|
|
5082
|
-
() =>
|
|
5063
|
+
const [t, r] = L(
|
|
5064
|
+
() => ho({
|
|
5083
5065
|
canTrack: pt(e.canTrack),
|
|
5084
5066
|
content: e.content
|
|
5085
5067
|
})
|
|
5086
5068
|
);
|
|
5087
5069
|
function n() {
|
|
5088
5070
|
var f;
|
|
5089
|
-
return
|
|
5071
|
+
return go(
|
|
5090
5072
|
ht(e.content).map((m) => ({
|
|
5091
5073
|
id: m.testVariationId,
|
|
5092
5074
|
testRatio: m.testRatio
|
|
@@ -5102,25 +5084,25 @@ function Er(e) {
|
|
|
5102
5084
|
return t ? {
|
|
5103
5085
|
...e.content,
|
|
5104
5086
|
testVariationId: (f = e.content) == null ? void 0 : f.id
|
|
5105
|
-
} :
|
|
5087
|
+
} : Gr({
|
|
5106
5088
|
item: e.content,
|
|
5107
5089
|
canTrack: pt(e.canTrack)
|
|
5108
5090
|
});
|
|
5109
5091
|
}
|
|
5110
5092
|
return Z(() => {
|
|
5111
|
-
}, []), /* @__PURE__ */
|
|
5112
|
-
!e.__isNestedRender && rt !== "reactNative" ? /* @__PURE__ */ p(
|
|
5113
|
-
t ? /* @__PURE__ */
|
|
5093
|
+
}, []), /* @__PURE__ */ ce(P, { children: [
|
|
5094
|
+
!e.__isNestedRender && rt !== "reactNative" ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(Yt, { scriptStr: mo() }) }) : null,
|
|
5095
|
+
t ? /* @__PURE__ */ ce(P, { children: [
|
|
5114
5096
|
/* @__PURE__ */ p(
|
|
5115
|
-
|
|
5097
|
+
yt,
|
|
5116
5098
|
{
|
|
5117
5099
|
id: `variants-styles-${(s = e.content) == null ? void 0 : s.id}`,
|
|
5118
5100
|
styles: i()
|
|
5119
5101
|
}
|
|
5120
5102
|
),
|
|
5121
|
-
/* @__PURE__ */ p(
|
|
5103
|
+
/* @__PURE__ */ p(Yt, { scriptStr: n() }),
|
|
5122
5104
|
(u = ht(e.content)) == null ? void 0 : u.map((f) => /* @__PURE__ */ p(
|
|
5123
|
-
|
|
5105
|
+
ir,
|
|
5124
5106
|
{
|
|
5125
5107
|
content: f,
|
|
5126
5108
|
showContent: !1,
|
|
@@ -5138,13 +5120,14 @@ function Er(e) {
|
|
|
5138
5120
|
blocksWrapper: e.blocksWrapper,
|
|
5139
5121
|
blocksWrapperProps: e.blocksWrapperProps,
|
|
5140
5122
|
contentWrapper: e.contentWrapper,
|
|
5141
|
-
contentWrapperProps: e.contentWrapperProps
|
|
5123
|
+
contentWrapperProps: e.contentWrapperProps,
|
|
5124
|
+
trustedHosts: e.trustedHosts
|
|
5142
5125
|
},
|
|
5143
5126
|
f.testVariationId
|
|
5144
5127
|
))
|
|
5145
5128
|
] }) : null,
|
|
5146
5129
|
/* @__PURE__ */ p(
|
|
5147
|
-
|
|
5130
|
+
ir,
|
|
5148
5131
|
{
|
|
5149
5132
|
content: a(),
|
|
5150
5133
|
showContent: !0,
|
|
@@ -5162,18 +5145,19 @@ function Er(e) {
|
|
|
5162
5145
|
blocksWrapper: e.blocksWrapper,
|
|
5163
5146
|
blocksWrapperProps: e.blocksWrapperProps,
|
|
5164
5147
|
contentWrapper: e.contentWrapper,
|
|
5165
|
-
contentWrapperProps: e.contentWrapperProps
|
|
5148
|
+
contentWrapperProps: e.contentWrapperProps,
|
|
5149
|
+
trustedHosts: e.trustedHosts
|
|
5166
5150
|
}
|
|
5167
5151
|
)
|
|
5168
5152
|
] });
|
|
5169
5153
|
}
|
|
5170
|
-
const
|
|
5154
|
+
const Po = async ({
|
|
5171
5155
|
builderContextValue: e,
|
|
5172
5156
|
symbol: t
|
|
5173
5157
|
}) => {
|
|
5174
5158
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5175
5159
|
(e != null && e.apiKey))
|
|
5176
|
-
return
|
|
5160
|
+
return sr({
|
|
5177
5161
|
model: t.model,
|
|
5178
5162
|
apiKey: e.apiKey,
|
|
5179
5163
|
apiVersion: e.apiVersion,
|
|
@@ -5186,7 +5170,7 @@ const Ao = async ({
|
|
|
5186
5170
|
Ue.error("Could not fetch symbol content: ", r);
|
|
5187
5171
|
});
|
|
5188
5172
|
};
|
|
5189
|
-
function
|
|
5173
|
+
function No(e) {
|
|
5190
5174
|
var a, s, u, f;
|
|
5191
5175
|
function t() {
|
|
5192
5176
|
var m, v;
|
|
@@ -5197,12 +5181,12 @@ function Ro(e) {
|
|
|
5197
5181
|
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5198
5182
|
].filter(Boolean).join(" ");
|
|
5199
5183
|
}
|
|
5200
|
-
const [r, n] =
|
|
5184
|
+
const [r, n] = L(() => {
|
|
5201
5185
|
var m;
|
|
5202
5186
|
return (m = e.symbol) == null ? void 0 : m.content;
|
|
5203
5187
|
});
|
|
5204
5188
|
function i() {
|
|
5205
|
-
r ||
|
|
5189
|
+
r || Po({
|
|
5206
5190
|
symbol: e.symbol,
|
|
5207
5191
|
builderContextValue: e.builderContext
|
|
5208
5192
|
}).then((m) => {
|
|
@@ -5213,7 +5197,7 @@ function Ro(e) {
|
|
|
5213
5197
|
}, []), Z(() => {
|
|
5214
5198
|
i();
|
|
5215
5199
|
}, [e.symbol]), /* @__PURE__ */ p("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ p(
|
|
5216
|
-
|
|
5200
|
+
Cr,
|
|
5217
5201
|
{
|
|
5218
5202
|
__isNestedRender: !0,
|
|
5219
5203
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5233,31 +5217,31 @@ function Ro(e) {
|
|
|
5233
5217
|
}
|
|
5234
5218
|
) });
|
|
5235
5219
|
}
|
|
5236
|
-
const
|
|
5220
|
+
const Uo = xt, Do = Cr;
|
|
5237
5221
|
export {
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5222
|
+
xt as Blocks,
|
|
5223
|
+
zr as Button,
|
|
5224
|
+
Di as Columns,
|
|
5225
|
+
Cr as Content,
|
|
5226
|
+
_i as Fragment,
|
|
5227
|
+
Vi as Image,
|
|
5228
|
+
Uo as RenderBlocks,
|
|
5229
|
+
Do as RenderContent,
|
|
5230
|
+
$i as Section,
|
|
5231
|
+
No as Symbol,
|
|
5232
|
+
so as Text,
|
|
5233
|
+
co as Video,
|
|
5234
|
+
Lo as _processContentResult,
|
|
5235
|
+
Hr as createRegisterComponentMessage,
|
|
5236
|
+
Vo as fetchBuilderProps,
|
|
5237
|
+
$o as fetchEntries,
|
|
5238
|
+
sr as fetchOneEntry,
|
|
5239
|
+
Ho as getAllContent,
|
|
5240
|
+
Ko as getBuilderSearchParams,
|
|
5241
|
+
Go as getContent,
|
|
5258
5242
|
Te as isEditing,
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5243
|
+
$r as isPreviewing,
|
|
5244
|
+
Vr as register,
|
|
5245
|
+
zo as setEditorSettings,
|
|
5246
|
+
Xo as track
|
|
5263
5247
|
};
|