@builder.io/sdk-react 0.7.3 → 0.7.5
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 +115 -23
- package/lib/browser/index.mjs +828 -763
- package/lib/edge/index.cjs +121 -29
- package/lib/edge/index.mjs +1098 -1033
- package/lib/node/index.cjs +104 -12
- package/lib/node/index.mjs +499 -434
- package/package.json +8 -1
- package/types/blocks/video/video.d.ts +4 -0
- package/types/components/content/content.helpers.d.ts +1 -1
- package/types/components/content/content.types.d.ts +0 -4
- package/types/components/content-variants/helpers.d.ts +3 -3
- package/types/components/content-variants/inlined-fns.d.ts +14 -0
- package/types/constants/sdk-version.d.ts +1 -1
package/lib/edge/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as Z, Fragment as
|
|
3
|
-
import { createContext as cr, useState as
|
|
4
|
-
import { i as
|
|
5
|
-
import { _ as Uo, h as Bo, f as _o, g as
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */ Z(
|
|
8
|
-
e.link ? /* @__PURE__ */
|
|
2
|
+
import { jsxs as Z, Fragment as N, jsx as p } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as cr, useState as $, useContext as Hn, createElement as ur, useRef as Jt, useEffect as ee } from "react";
|
|
4
|
+
import { i as Ee, j as Ie, k as Wr, l as Fe, m as qt, n as Ht, T as tt, r as Hr, o as dt, p as Kn, a as Kr, c as Gr, b as dr, q as zr, u as Gn, v as zn, w as Xr } from "./server-entry-0aebe4be.mjs";
|
|
5
|
+
import { _ as Uo, h as Bo, f as _o, g as Do, e as Vo, d as Lo, s as $o, t as Wo } from "./server-entry-0aebe4be.mjs";
|
|
6
|
+
function Yr(e) {
|
|
7
|
+
return /* @__PURE__ */ Z(N, { children: [
|
|
8
|
+
e.link ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
9
9
|
"a",
|
|
10
10
|
{
|
|
11
11
|
...e.attributes,
|
|
@@ -14,7 +14,7 @@ function Jr(e) {
|
|
|
14
14
|
role: "button",
|
|
15
15
|
children: e.text
|
|
16
16
|
}
|
|
17
|
-
) }) : /* @__PURE__ */
|
|
17
|
+
) }) : /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
18
18
|
"button",
|
|
19
19
|
{
|
|
20
20
|
...e.attributes,
|
|
@@ -23,7 +23,7 @@ function Jr(e) {
|
|
|
23
23
|
children: e.text
|
|
24
24
|
}
|
|
25
25
|
) }),
|
|
26
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ p("style", { children: `.button-5294b10c {
|
|
27
27
|
all: unset;
|
|
28
28
|
}` })
|
|
29
29
|
] });
|
|
@@ -40,7 +40,7 @@ const Zt = cr({
|
|
|
40
40
|
componentInfos: {},
|
|
41
41
|
inheritedStyles: {}
|
|
42
42
|
}), fr = cr({ registeredComponents: {} });
|
|
43
|
-
function
|
|
43
|
+
function Jr(e) {
|
|
44
44
|
var t;
|
|
45
45
|
return {
|
|
46
46
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -64,9 +64,9 @@ const hr = ({
|
|
|
64
64
|
context: t,
|
|
65
65
|
event: r
|
|
66
66
|
}), qr = () => ({
|
|
67
|
-
isEditing:
|
|
68
|
-
isBrowser:
|
|
69
|
-
isServer: !
|
|
67
|
+
isEditing: Ee(),
|
|
68
|
+
isBrowser: Ie(),
|
|
69
|
+
isServer: !Ie(),
|
|
70
70
|
getUserAttributes: () => Wr()
|
|
71
71
|
}), Zr = (e, {
|
|
72
72
|
isExpression: t = !0
|
|
@@ -105,19 +105,19 @@ const pr = (e, t, r) => {
|
|
|
105
105
|
const n = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
106
106
|
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;
|
|
107
107
|
};
|
|
108
|
-
var
|
|
108
|
+
var B, ti = function(e) {
|
|
109
109
|
function t(o) {
|
|
110
|
-
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
110
|
+
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Lr.test(String.fromCharCode(o));
|
|
111
111
|
}
|
|
112
112
|
function r(o) {
|
|
113
113
|
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Wn.test(String.fromCharCode(o));
|
|
114
114
|
}
|
|
115
115
|
function n(o, l) {
|
|
116
|
-
for (var c =
|
|
116
|
+
for (var c = x, h = 1, R = 0; ; ) {
|
|
117
117
|
ct.lastIndex = R;
|
|
118
|
-
var
|
|
119
|
-
if (
|
|
120
|
-
++h, R =
|
|
118
|
+
var Y = ct.exec(c);
|
|
119
|
+
if (Y && Y.index < o)
|
|
120
|
+
++h, R = Y.index + Y[0].length;
|
|
121
121
|
else
|
|
122
122
|
break;
|
|
123
123
|
}
|
|
@@ -135,51 +135,51 @@ var $, ti = function(e) {
|
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
function a() {
|
|
138
|
-
this.line =
|
|
138
|
+
this.line = ke, this.ab = d - de;
|
|
139
139
|
}
|
|
140
140
|
function s(o, l) {
|
|
141
|
-
|
|
141
|
+
Ae = d, O.C && (It = new a()), A = o, f(), le = l, Ve = o.m;
|
|
142
142
|
}
|
|
143
143
|
function u() {
|
|
144
|
-
for (var o = d, l =
|
|
145
|
-
++d, c =
|
|
146
|
-
|
|
144
|
+
for (var o = d, l = O.va && O.C && new a(), c = x.charCodeAt(d += 2); d < je && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
145
|
+
++d, c = x.charCodeAt(d);
|
|
146
|
+
O.va && O.va(!1, x.slice(o + 2, d), o, d, l, O.C && new a());
|
|
147
147
|
}
|
|
148
148
|
function f() {
|
|
149
|
-
for (; d <
|
|
150
|
-
var o =
|
|
149
|
+
for (; d < je; ) {
|
|
150
|
+
var o = x.charCodeAt(d);
|
|
151
151
|
if (o === 32)
|
|
152
152
|
++d;
|
|
153
153
|
else if (o === 13)
|
|
154
|
-
++d, o =
|
|
154
|
+
++d, o = x.charCodeAt(d), o === 10 && ++d, O.C && (++ke, de = d);
|
|
155
155
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
156
|
-
++d,
|
|
156
|
+
++d, O.C && (++ke, de = d);
|
|
157
157
|
else if (8 < o && 14 > o)
|
|
158
158
|
++d;
|
|
159
159
|
else if (o === 47)
|
|
160
|
-
if (o =
|
|
160
|
+
if (o = x.charCodeAt(d + 1), o === 42) {
|
|
161
161
|
o = void 0;
|
|
162
|
-
var l =
|
|
163
|
-
if (h === -1 && n(d - 2, "Unterminated comment"), d = h + 2,
|
|
164
|
-
for (ct.lastIndex = c; (o = ct.exec(
|
|
165
|
-
++
|
|
166
|
-
|
|
162
|
+
var l = O.va && O.C && new a(), c = d, h = x.indexOf("*/", d += 2);
|
|
163
|
+
if (h === -1 && n(d - 2, "Unterminated comment"), d = h + 2, O.C)
|
|
164
|
+
for (ct.lastIndex = c; (o = ct.exec(x)) && o.index < d; )
|
|
165
|
+
++ke, de = o.index + o[0].length;
|
|
166
|
+
O.va && O.va(!0, x.slice(c + 2, h), c, d, l, O.C && new a());
|
|
167
167
|
} else if (o === 47)
|
|
168
168
|
u();
|
|
169
169
|
else
|
|
170
170
|
break;
|
|
171
171
|
else if (o === 160)
|
|
172
172
|
++d;
|
|
173
|
-
else if (5760 <= o &&
|
|
173
|
+
else if (5760 <= o && Vr.test(String.fromCharCode(o)))
|
|
174
174
|
++d;
|
|
175
175
|
else
|
|
176
176
|
break;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function g(o) {
|
|
180
180
|
switch (o) {
|
|
181
181
|
case 46:
|
|
182
|
-
o =
|
|
182
|
+
o = x.charCodeAt(d + 1), 48 <= o && 57 >= o ? E(!0) : (++d, s(Fn));
|
|
183
183
|
return;
|
|
184
184
|
case 40:
|
|
185
185
|
return ++d, s(fe);
|
|
@@ -188,7 +188,7 @@ var $, ti = function(e) {
|
|
|
188
188
|
case 59:
|
|
189
189
|
return ++d, s(he);
|
|
190
190
|
case 44:
|
|
191
|
-
return ++d, s(
|
|
191
|
+
return ++d, s(be);
|
|
192
192
|
case 91:
|
|
193
193
|
return ++d, s(Ut);
|
|
194
194
|
case 93:
|
|
@@ -196,14 +196,14 @@ var $, ti = function(e) {
|
|
|
196
196
|
case 123:
|
|
197
197
|
return ++d, s(We);
|
|
198
198
|
case 125:
|
|
199
|
-
return ++d, s(
|
|
199
|
+
return ++d, s(Oe);
|
|
200
200
|
case 58:
|
|
201
201
|
return ++d, s(He);
|
|
202
202
|
case 63:
|
|
203
203
|
return ++d, s(Un);
|
|
204
204
|
case 48:
|
|
205
|
-
if (o =
|
|
206
|
-
d += 2, o =
|
|
205
|
+
if (o = x.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
206
|
+
d += 2, o = W(16), o === null && n(X + 2, "Expected hexadecimal number"), r(x.charCodeAt(d)) && n(d, "Identifier directly after number"), s($e, o);
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
209
|
case 49:
|
|
@@ -215,20 +215,20 @@ var $, ti = function(e) {
|
|
|
215
215
|
case 55:
|
|
216
216
|
case 56:
|
|
217
217
|
case 57:
|
|
218
|
-
return
|
|
218
|
+
return E(!1);
|
|
219
219
|
case 34:
|
|
220
220
|
case 39:
|
|
221
221
|
d++;
|
|
222
222
|
for (var l = ""; ; ) {
|
|
223
|
-
d >=
|
|
224
|
-
var c =
|
|
223
|
+
d >= je && n(X, "Unterminated string constant");
|
|
224
|
+
var c = x.charCodeAt(d);
|
|
225
225
|
if (c === o) {
|
|
226
226
|
++d, s(ot, l);
|
|
227
227
|
break;
|
|
228
228
|
}
|
|
229
229
|
if (c === 92) {
|
|
230
|
-
c =
|
|
231
|
-
var h = /^[0-7]+/.exec(
|
|
230
|
+
c = x.charCodeAt(++d);
|
|
231
|
+
var h = /^[0-7]+/.exec(x.slice(d, d + 3));
|
|
232
232
|
for (h && (h = h[0]); h && 255 < parseInt(h, 8); )
|
|
233
233
|
h = h.slice(0, -1);
|
|
234
234
|
if (h === "0" && (h = null), ++d, h)
|
|
@@ -243,13 +243,13 @@ var $, ti = function(e) {
|
|
|
243
243
|
l += "\r";
|
|
244
244
|
break;
|
|
245
245
|
case 120:
|
|
246
|
-
l += String.fromCharCode(
|
|
246
|
+
l += String.fromCharCode(P(2));
|
|
247
247
|
break;
|
|
248
248
|
case 117:
|
|
249
|
-
l += String.fromCharCode(
|
|
249
|
+
l += String.fromCharCode(P(4));
|
|
250
250
|
break;
|
|
251
251
|
case 85:
|
|
252
|
-
l += String.fromCharCode(
|
|
252
|
+
l += String.fromCharCode(P(8));
|
|
253
253
|
break;
|
|
254
254
|
case 116:
|
|
255
255
|
l += " ";
|
|
@@ -267,69 +267,69 @@ var $, ti = function(e) {
|
|
|
267
267
|
l += "\0";
|
|
268
268
|
break;
|
|
269
269
|
case 13:
|
|
270
|
-
|
|
270
|
+
x.charCodeAt(d) === 10 && ++d;
|
|
271
271
|
case 10:
|
|
272
|
-
|
|
272
|
+
O.C && (de = d, ++ke);
|
|
273
273
|
break;
|
|
274
274
|
default:
|
|
275
275
|
l += String.fromCharCode(c);
|
|
276
276
|
}
|
|
277
277
|
} else
|
|
278
|
-
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || n(
|
|
278
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || n(X, "Unterminated string constant"), l += String.fromCharCode(c), ++d;
|
|
279
279
|
}
|
|
280
280
|
return;
|
|
281
281
|
case 47:
|
|
282
|
-
o =
|
|
282
|
+
o = x.charCodeAt(d + 1), Ve ? (++d, _()) : o === 61 ? b(Ce, 2) : b(Bn, 1);
|
|
283
283
|
return;
|
|
284
284
|
case 37:
|
|
285
285
|
case 42:
|
|
286
|
-
|
|
286
|
+
x.charCodeAt(d + 1) === 61 ? b(Ce, 2) : b(Br, 1);
|
|
287
287
|
return;
|
|
288
288
|
case 124:
|
|
289
289
|
case 38:
|
|
290
|
-
l =
|
|
290
|
+
l = x.charCodeAt(d + 1), l === o ? b(o === 124 ? Vn : Ln, 2) : l === 61 ? b(Ce, 2) : b(o === 124 ? Rr : Pr, 1);
|
|
291
291
|
return;
|
|
292
292
|
case 94:
|
|
293
|
-
|
|
293
|
+
x.charCodeAt(d + 1) === 61 ? b(Ce, 2) : b(Or, 1);
|
|
294
294
|
return;
|
|
295
295
|
case 43:
|
|
296
296
|
case 45:
|
|
297
|
-
l =
|
|
297
|
+
l = x.charCodeAt(d + 1), l === o ? l === 45 && x.charCodeAt(d + 2) === 62 && lt.test(x.slice(xe, d)) ? (d += 3, u(), f(), v()) : b(Ar, 2) : l === 61 ? b(Ce, 2) : b(Ur, 1);
|
|
298
298
|
return;
|
|
299
299
|
case 60:
|
|
300
300
|
case 62:
|
|
301
|
-
l =
|
|
301
|
+
l = x.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && x.charCodeAt(d + 2) === 62 ? 3 : 2, x.charCodeAt(d + c) === 61 ? b(Ce, c + 1) : b(Fr, 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), b(Mr, c));
|
|
302
302
|
return;
|
|
303
303
|
case 61:
|
|
304
304
|
case 33:
|
|
305
|
-
|
|
305
|
+
x.charCodeAt(d + 1) === 61 ? b(Nr, x.charCodeAt(d + 2) === 61 ? 3 : 2) : b(o === 61 ? _n : Dn, 1);
|
|
306
306
|
return;
|
|
307
307
|
case 126:
|
|
308
|
-
return
|
|
308
|
+
return b(Dn, 1);
|
|
309
309
|
}
|
|
310
310
|
return !1;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
313
|
-
if (o ? d =
|
|
314
|
-
return
|
|
315
|
-
if (d >=
|
|
312
|
+
function v(o) {
|
|
313
|
+
if (o ? d = X + 1 : X = d, O.C && (Et = new a()), o)
|
|
314
|
+
return _();
|
|
315
|
+
if (d >= je)
|
|
316
316
|
return s(At);
|
|
317
|
-
if (o =
|
|
318
|
-
return
|
|
319
|
-
if (
|
|
317
|
+
if (o = x.charCodeAt(d), r(o) || o === 92)
|
|
318
|
+
return G();
|
|
319
|
+
if (g(o) === !1) {
|
|
320
320
|
if (o = String.fromCharCode(o), o === "\\" || Wn.test(o))
|
|
321
|
-
return
|
|
321
|
+
return G();
|
|
322
322
|
n(d, "Unexpected character '" + o + "'");
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
function
|
|
326
|
-
var c =
|
|
325
|
+
function b(o, l) {
|
|
326
|
+
var c = x.slice(d, d + l);
|
|
327
327
|
d += l, s(o, c);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function _() {
|
|
330
330
|
for (var o, l, c = d; ; ) {
|
|
331
|
-
d >=
|
|
332
|
-
var h =
|
|
331
|
+
d >= je && n(c, "Unterminated regexp");
|
|
332
|
+
var h = x.charAt(d);
|
|
333
333
|
if (lt.test(h) && n(c, "Unterminated regexp"), o)
|
|
334
334
|
o = !1;
|
|
335
335
|
else {
|
|
@@ -343,321 +343,321 @@ var $, ti = function(e) {
|
|
|
343
343
|
}
|
|
344
344
|
++d;
|
|
345
345
|
}
|
|
346
|
-
o =
|
|
346
|
+
o = x.slice(c, d), ++d, (l = H()) && !/^[gmi]*$/.test(l) && n(c, "Invalid regexp flag");
|
|
347
347
|
try {
|
|
348
348
|
var R = new RegExp(o, l);
|
|
349
|
-
} catch (
|
|
350
|
-
throw
|
|
349
|
+
} catch (Y) {
|
|
350
|
+
throw Y instanceof SyntaxError && n(c, Y.message), Y;
|
|
351
351
|
}
|
|
352
352
|
s(gn, R);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
for (var c = d, h = 0, R = l === void 0 ? 1 / 0 : l,
|
|
356
|
-
var
|
|
357
|
-
if (
|
|
354
|
+
function W(o, l) {
|
|
355
|
+
for (var c = d, h = 0, R = l === void 0 ? 1 / 0 : l, Y = 0; Y < R; ++Y) {
|
|
356
|
+
var ne = x.charCodeAt(d);
|
|
357
|
+
if (ne = 97 <= ne ? ne - 97 + 10 : 65 <= ne ? ne - 65 + 10 : 48 <= ne && 57 >= ne ? ne - 48 : 1 / 0, ne >= o)
|
|
358
358
|
break;
|
|
359
|
-
++d, h = h * o +
|
|
359
|
+
++d, h = h * o + ne;
|
|
360
360
|
}
|
|
361
361
|
return d === c || l !== void 0 && d - c !== l ? null : h;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
var l = d, c = !1, h =
|
|
365
|
-
o ||
|
|
363
|
+
function E(o) {
|
|
364
|
+
var l = d, c = !1, h = x.charCodeAt(d) === 48;
|
|
365
|
+
o || W(10) !== null || n(l, "Invalid number"), x.charCodeAt(d) === 46 && (++d, W(10), c = !0), o = x.charCodeAt(d), (o === 69 || o === 101) && (o = x.charCodeAt(++d), o !== 43 && o !== 45 || ++d, W(10) === null && n(l, "Invalid number"), c = !0), r(x.charCodeAt(d)) && n(d, "Identifier directly after number"), o = x.slice(l, d);
|
|
366
366
|
var R;
|
|
367
|
-
c ? R = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || oe ? n(l, "Invalid number") : R = parseInt(o, 8) : R = parseInt(o, 10), s(
|
|
367
|
+
c ? R = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || oe ? n(l, "Invalid number") : R = parseInt(o, 8) : R = parseInt(o, 10), s($e, R);
|
|
368
368
|
}
|
|
369
|
-
function
|
|
370
|
-
return o =
|
|
369
|
+
function P(o) {
|
|
370
|
+
return o = W(16, o), o === null && n(X, "Bad character escape sequence"), o;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
373
|
-
|
|
372
|
+
function H() {
|
|
373
|
+
Pe = !1;
|
|
374
374
|
for (var o, l = !0, c = d; ; ) {
|
|
375
|
-
var h =
|
|
375
|
+
var h = x.charCodeAt(d);
|
|
376
376
|
if (t(h))
|
|
377
|
-
|
|
377
|
+
Pe && (o += x.charAt(d)), ++d;
|
|
378
378
|
else if (h === 92) {
|
|
379
|
-
|
|
379
|
+
Pe || (o = x.slice(c, d)), Pe = !0, x.charCodeAt(++d) !== 117 && n(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = P(4);
|
|
380
380
|
var R = String.fromCharCode(h);
|
|
381
381
|
R || n(d - 1, "Invalid Unicode escape"), (l ? r(h) : t(h)) || n(d - 4, "Invalid Unicode escape"), o += R;
|
|
382
382
|
} else
|
|
383
383
|
break;
|
|
384
384
|
l = !1;
|
|
385
385
|
}
|
|
386
|
-
return
|
|
386
|
+
return Pe ? o : x.slice(c, d);
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
var o =
|
|
390
|
-
!
|
|
388
|
+
function G() {
|
|
389
|
+
var o = H(), l = Re;
|
|
390
|
+
!Pe && Dr(o) && (l = jr[o]), s(l, o);
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
Tt =
|
|
392
|
+
function y() {
|
|
393
|
+
Tt = X, xe = Ae, jt = It, v();
|
|
394
394
|
}
|
|
395
395
|
function K(o) {
|
|
396
|
-
if (oe = o, d =
|
|
396
|
+
if (oe = o, d = X, O.C)
|
|
397
397
|
for (; d < de; )
|
|
398
|
-
de =
|
|
399
|
-
`, de - 2) + 1, --
|
|
400
|
-
f(),
|
|
398
|
+
de = x.lastIndexOf(`
|
|
399
|
+
`, de - 2) + 1, --ke;
|
|
400
|
+
f(), v();
|
|
401
401
|
}
|
|
402
402
|
function ae() {
|
|
403
|
-
this.type = null, this.start =
|
|
403
|
+
this.type = null, this.start = X, this.end = null;
|
|
404
404
|
}
|
|
405
405
|
function se() {
|
|
406
406
|
this.start = Et, this.end = null, Ct && (this.source = Ct);
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function L() {
|
|
409
409
|
var o = new ae();
|
|
410
|
-
return
|
|
410
|
+
return O.C && (o.X = new se()), O.vb && (o.sourceFile = O.vb), O.Xa && (o.j = [X, 0]), o;
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function te(o) {
|
|
413
413
|
var l = new ae();
|
|
414
|
-
return l.start = o.start,
|
|
414
|
+
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;
|
|
415
415
|
}
|
|
416
|
-
function
|
|
417
|
-
return o.type = l, o.end =
|
|
416
|
+
function I(o, l) {
|
|
417
|
+
return o.type = l, o.end = xe, O.C && (o.X.end = jt), O.Xa && (o.j[1] = xe), o;
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function Te(o) {
|
|
420
420
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
421
421
|
}
|
|
422
|
-
function
|
|
423
|
-
return A === o ? (
|
|
422
|
+
function D(o) {
|
|
423
|
+
return A === o ? (y(), !0) : !1;
|
|
424
424
|
}
|
|
425
|
-
function
|
|
426
|
-
return !
|
|
425
|
+
function j() {
|
|
426
|
+
return !O.fc && (A === At || A === Oe || lt.test(x.slice(xe, X)));
|
|
427
427
|
}
|
|
428
|
-
function
|
|
429
|
-
|
|
428
|
+
function T() {
|
|
429
|
+
D(he) || j() || M();
|
|
430
430
|
}
|
|
431
|
-
function
|
|
432
|
-
A === o ?
|
|
431
|
+
function C(o) {
|
|
432
|
+
A === o ? y() : M();
|
|
433
433
|
}
|
|
434
|
-
function
|
|
435
|
-
n(
|
|
434
|
+
function M() {
|
|
435
|
+
n(X, "Unexpected token");
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function V(o) {
|
|
438
438
|
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"), oe && o.type === "Identifier" && st(o.name) && n(o.start, "Assigning to " + o.name + " in strict mode");
|
|
439
439
|
}
|
|
440
|
-
function
|
|
441
|
-
(A === Bn || A ===
|
|
442
|
-
var o = A, l =
|
|
440
|
+
function U() {
|
|
441
|
+
(A === Bn || A === Ce && le === "/=") && v(!0);
|
|
442
|
+
var o = A, l = L();
|
|
443
443
|
switch (o) {
|
|
444
444
|
case Rt:
|
|
445
|
-
case
|
|
446
|
-
|
|
445
|
+
case yn:
|
|
446
|
+
y();
|
|
447
447
|
var c = o === Rt;
|
|
448
|
-
|
|
449
|
-
for (var h = 0; h <
|
|
450
|
-
var R =
|
|
448
|
+
D(he) || j() ? l.label = null : A !== Re ? M() : (l.label = ue(), T());
|
|
449
|
+
for (var h = 0; h < z.length; ++h) {
|
|
450
|
+
var R = z[h];
|
|
451
451
|
if ((l.label === null || R.name === l.label.name) && (R.kind !== null && (c || R.kind === "loop") || l.label && c))
|
|
452
452
|
break;
|
|
453
453
|
}
|
|
454
|
-
return h ===
|
|
454
|
+
return h === z.length && n(l.start, "Unsyntactic " + o.l), I(l, c ? "BreakStatement" : "ContinueStatement");
|
|
455
455
|
case xn:
|
|
456
|
-
return
|
|
456
|
+
return y(), T(), I(l, "DebuggerStatement");
|
|
457
457
|
case Sn:
|
|
458
|
-
return
|
|
458
|
+
return y(), z.push(_t), l.body = U(), z.pop(), C(Ft), l.test = ye(), T(), I(l, "DoWhileStatement");
|
|
459
459
|
case Cn:
|
|
460
|
-
return
|
|
460
|
+
return y(), z.push(_t), C(fe), A === he ? yt(l, null) : A === Mt ? (o = L(), y(), pn(o, !0), I(o, "VariableDeclaration"), o.fa.length === 1 && D(at) ? hn(l, o) : yt(l, o)) : (o = Q(!1, !0), D(at) ? (V(o), hn(l, o)) : yt(l, o));
|
|
461
461
|
case Pt:
|
|
462
|
-
return
|
|
462
|
+
return y(), wt(l, !0);
|
|
463
463
|
case En:
|
|
464
|
-
return
|
|
464
|
+
return y(), l.test = ye(), l.da = U(), l.alternate = D(wn) ? U() : null, I(l, "IfStatement");
|
|
465
465
|
case In:
|
|
466
|
-
return
|
|
466
|
+
return Le || O.Ib || n(X, "'return' outside of function"), y(), D(he) || j() ? l.K = null : (l.K = Q(), T()), I(l, "ReturnStatement");
|
|
467
467
|
case Nt:
|
|
468
|
-
for (
|
|
469
|
-
A === Ot || A === bn ? (o = A === Ot, h &&
|
|
470
|
-
return h &&
|
|
468
|
+
for (y(), l.Qb = ye(), l.tb = [], C(We), z.push($r); A !== Oe; )
|
|
469
|
+
A === Ot || A === bn ? (o = A === Ot, h && I(h, "SwitchCase"), l.tb.push(h = L()), h.da = [], y(), o ? h.test = Q() : (c && n(Tt, "Multiple default clauses"), c = !0, h.test = null), C(He)) : (h || M(), h.da.push(U()));
|
|
470
|
+
return h && I(h, "SwitchCase"), y(), z.pop(), I(l, "SwitchStatement");
|
|
471
471
|
case Tn:
|
|
472
|
-
return
|
|
472
|
+
return y(), lt.test(x.slice(xe, X)) && n(xe, "Illegal newline after throw"), l.K = Q(), T(), I(l, "ThrowStatement");
|
|
473
473
|
case jn:
|
|
474
|
-
return
|
|
474
|
+
return y(), l.block = we(), l.Ea = null, A === vn && (o = L(), y(), C(fe), o.Ua = ue(), oe && st(o.Ua.name) && n(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), C(ce), o.body = we(), l.Ea = I(o, "CatchClause")), l.fb = D(kn) ? we() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), I(l, "TryStatement");
|
|
475
475
|
case Mt:
|
|
476
|
-
return
|
|
476
|
+
return y(), pn(l), T(), I(l, "VariableDeclaration");
|
|
477
477
|
case Ft:
|
|
478
|
-
return
|
|
478
|
+
return y(), l.test = ye(), z.push(_t), l.body = U(), z.pop(), I(l, "WhileStatement");
|
|
479
479
|
case An:
|
|
480
|
-
return oe && n(
|
|
480
|
+
return oe && n(X, "'with' in strict mode"), y(), l.object = ye(), l.body = U(), I(l, "WithStatement");
|
|
481
481
|
case We:
|
|
482
|
-
return
|
|
482
|
+
return we();
|
|
483
483
|
case he:
|
|
484
|
-
return
|
|
484
|
+
return y(), I(l, "EmptyStatement");
|
|
485
485
|
default:
|
|
486
|
-
if (c = le, R =
|
|
487
|
-
for (h = 0; h <
|
|
488
|
-
|
|
489
|
-
return
|
|
486
|
+
if (c = le, R = Q(), o === Re && R.type === "Identifier" && D(He)) {
|
|
487
|
+
for (h = 0; h < z.length; ++h)
|
|
488
|
+
z[h].name === c && n(R.start, "Label '" + c + "' is already declared");
|
|
489
|
+
return z.push({
|
|
490
490
|
name: c,
|
|
491
491
|
kind: A.W ? "loop" : A === Nt ? "switch" : null
|
|
492
|
-
}), l.body =
|
|
492
|
+
}), l.body = U(), z.pop(), l.label = R, I(l, "LabeledStatement");
|
|
493
493
|
}
|
|
494
|
-
return l.la = R,
|
|
494
|
+
return l.la = R, T(), I(l, "ExpressionStatement");
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
498
|
-
|
|
499
|
-
var o =
|
|
500
|
-
return
|
|
501
|
-
}
|
|
502
|
-
function
|
|
503
|
-
var l =
|
|
504
|
-
for (l.body = [],
|
|
505
|
-
var R =
|
|
506
|
-
if (l.body.push(R), c && o &&
|
|
507
|
-
var
|
|
497
|
+
function ye() {
|
|
498
|
+
C(fe);
|
|
499
|
+
var o = Q();
|
|
500
|
+
return C(ce), o;
|
|
501
|
+
}
|
|
502
|
+
function we(o) {
|
|
503
|
+
var l = L(), c = !0, h = !1;
|
|
504
|
+
for (l.body = [], C(We); !D(Oe); ) {
|
|
505
|
+
var R = U();
|
|
506
|
+
if (l.body.push(R), c && o && Te(R)) {
|
|
507
|
+
var Y = h;
|
|
508
508
|
K(h = !0);
|
|
509
509
|
}
|
|
510
510
|
c = !1;
|
|
511
511
|
}
|
|
512
|
-
return h && !
|
|
512
|
+
return h && !Y && K(!1), I(l, "BlockStatement");
|
|
513
513
|
}
|
|
514
|
-
function
|
|
515
|
-
return o.ua = l,
|
|
514
|
+
function yt(o, l) {
|
|
515
|
+
return o.ua = l, C(he), o.test = A === he ? null : Q(), C(he), o.update = A === ce ? null : Q(), C(ce), o.body = U(), z.pop(), I(o, "ForStatement");
|
|
516
516
|
}
|
|
517
517
|
function hn(o, l) {
|
|
518
|
-
return o.left = l, o.right =
|
|
518
|
+
return o.left = l, o.right = Q(), C(ce), o.body = U(), z.pop(), I(o, "ForInStatement");
|
|
519
519
|
}
|
|
520
520
|
function pn(o, l) {
|
|
521
521
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
522
|
-
var c =
|
|
523
|
-
if (c.id = ue(), oe && st(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua =
|
|
522
|
+
var c = L();
|
|
523
|
+
if (c.id = ue(), oe && st(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = D(_n) ? Q(!0, l) : null, o.fa.push(I(c, "VariableDeclarator")), !D(be))
|
|
524
524
|
break;
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function Q(o, l) {
|
|
528
528
|
var c = xt(l);
|
|
529
|
-
if (!o && A ===
|
|
530
|
-
for (o =
|
|
529
|
+
if (!o && A === be) {
|
|
530
|
+
for (o = te(c), o.xb = [c]; D(be); )
|
|
531
531
|
o.xb.push(xt(l));
|
|
532
|
-
return
|
|
532
|
+
return I(o, "SequenceExpression");
|
|
533
533
|
}
|
|
534
534
|
return c;
|
|
535
535
|
}
|
|
536
536
|
function xt(o) {
|
|
537
537
|
var l = bt(St(), -1, o);
|
|
538
|
-
if (
|
|
539
|
-
var c =
|
|
540
|
-
c.test = l, c.da =
|
|
538
|
+
if (D(Un)) {
|
|
539
|
+
var c = te(l);
|
|
540
|
+
c.test = l, c.da = Q(!0), C(He), c.alternate = Q(!0, o), l = I(c, "ConditionalExpression");
|
|
541
541
|
}
|
|
542
|
-
return A.Cb ? (c =
|
|
542
|
+
return A.Cb ? (c = te(l), c.operator = le, c.left = l, y(), c.right = xt(o), V(l), I(c, "AssignmentExpression")) : l;
|
|
543
543
|
}
|
|
544
544
|
function bt(o, l, c) {
|
|
545
545
|
var h = A.L;
|
|
546
546
|
if (h !== null && (!c || A !== at) && h > l) {
|
|
547
|
-
var R =
|
|
548
|
-
return R.left = o, R.operator = le, o = A,
|
|
547
|
+
var R = te(o);
|
|
548
|
+
return R.left = o, R.operator = le, o = A, y(), R.right = bt(St(), h, c), h = I(R, o === Vn || o === Ln ? "LogicalExpression" : "BinaryExpression"), bt(h, l, c);
|
|
549
549
|
}
|
|
550
550
|
return o;
|
|
551
551
|
}
|
|
552
552
|
function St() {
|
|
553
553
|
if (A.prefix) {
|
|
554
|
-
var o =
|
|
555
|
-
return o.operator = le,
|
|
554
|
+
var o = L(), l = A.$b;
|
|
555
|
+
return o.operator = le, Ve = o.prefix = !0, y(), o.K = St(), l ? V(o.K) : oe && o.operator === "delete" && o.K.type === "Identifier" && n(o.start, "Deleting local variable in strict mode"), I(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
556
556
|
}
|
|
557
|
-
for (l =
|
|
558
|
-
o =
|
|
557
|
+
for (l = De(it()); A.cc && !j(); )
|
|
558
|
+
o = te(l), o.operator = le, o.prefix = !1, o.K = l, V(l), y(), l = I(o, "UpdateExpression");
|
|
559
559
|
return l;
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
if (
|
|
563
|
-
var c =
|
|
564
|
-
return c.object = o, c.Wa = ue(!0), c.bb = !1,
|
|
561
|
+
function De(o, l) {
|
|
562
|
+
if (D(Fn)) {
|
|
563
|
+
var c = te(o);
|
|
564
|
+
return c.object = o, c.Wa = ue(!0), c.bb = !1, De(I(c, "MemberExpression"), l);
|
|
565
565
|
}
|
|
566
|
-
return
|
|
566
|
+
return D(Ut) ? (c = te(o), c.object = o, c.Wa = Q(), c.bb = !0, C(Bt), De(I(c, "MemberExpression"), l)) : !l && D(fe) ? (c = te(o), c.callee = o, c.arguments = kt(ce, !1), De(I(c, "CallExpression"), l)) : o;
|
|
567
567
|
}
|
|
568
568
|
function it() {
|
|
569
569
|
switch (A) {
|
|
570
570
|
case On:
|
|
571
|
-
var o =
|
|
572
|
-
return
|
|
573
|
-
case
|
|
571
|
+
var o = L();
|
|
572
|
+
return y(), I(o, "ThisExpression");
|
|
573
|
+
case Re:
|
|
574
574
|
return ue();
|
|
575
|
-
case
|
|
575
|
+
case $e:
|
|
576
576
|
case ot:
|
|
577
577
|
case gn:
|
|
578
|
-
return o =
|
|
578
|
+
return o = L(), o.value = le, o.raw = x.slice(X, Ae), y(), I(o, "Literal");
|
|
579
579
|
case Pn:
|
|
580
580
|
case Nn:
|
|
581
581
|
case Mn:
|
|
582
|
-
return o =
|
|
582
|
+
return o = L(), o.value = A.$a, o.raw = A.l, y(), I(o, "Literal");
|
|
583
583
|
case fe:
|
|
584
584
|
o = Et;
|
|
585
|
-
var l =
|
|
586
|
-
|
|
587
|
-
var c =
|
|
588
|
-
return c.start = l, c.end =
|
|
585
|
+
var l = X;
|
|
586
|
+
y();
|
|
587
|
+
var c = Q();
|
|
588
|
+
return c.start = l, c.end = Ae, O.C && (c.X.start = o, c.X.end = It), O.Xa && (c.j = [l, Ae]), C(ce), c;
|
|
589
589
|
case Ut:
|
|
590
|
-
return o =
|
|
590
|
+
return o = L(), y(), o.elements = kt(Bt, !0, !0), I(o, "ArrayExpression");
|
|
591
591
|
case We:
|
|
592
|
-
for (o =
|
|
592
|
+
for (o = L(), l = !0, c = !1, o.h = [], y(); !D(Oe); ) {
|
|
593
593
|
if (l)
|
|
594
594
|
l = !1;
|
|
595
|
-
else if (
|
|
595
|
+
else if (C(be), O.sb && D(Oe))
|
|
596
596
|
break;
|
|
597
597
|
var h = {
|
|
598
|
-
key: A ===
|
|
598
|
+
key: A === $e || A === ot ? it() : ue(!0)
|
|
599
599
|
}, R = !1;
|
|
600
|
-
if (
|
|
601
|
-
h.value =
|
|
602
|
-
var
|
|
600
|
+
if (D(He)) {
|
|
601
|
+
h.value = Q(!0);
|
|
602
|
+
var Y = h.kind = "init";
|
|
603
603
|
} else
|
|
604
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ?
|
|
604
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? M() : (R = c = !0, Y = h.kind = h.key.name, h.key = A === $e || A === ot ? it() : ue(!0), A !== fe && M(), h.value = wt(L(), !1));
|
|
605
605
|
if (h.key.type === "Identifier" && (oe || c))
|
|
606
|
-
for (var
|
|
607
|
-
var
|
|
608
|
-
if (
|
|
609
|
-
var
|
|
610
|
-
|
|
606
|
+
for (var ne = 0; ne < o.h.length; ++ne) {
|
|
607
|
+
var Ne = o.h[ne];
|
|
608
|
+
if (Ne.key.name === h.key.name) {
|
|
609
|
+
var Dt = Y === Ne.kind || R && Ne.kind === "init" || Y === "init" && (Ne.kind === "get" || Ne.kind === "set");
|
|
610
|
+
Dt && !oe && Y === "init" && Ne.kind === "init" && (Dt = !1), Dt && n(h.key.start, "Redefinition of property");
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
o.h.push(h);
|
|
614
614
|
}
|
|
615
|
-
return
|
|
615
|
+
return I(o, "ObjectExpression");
|
|
616
616
|
case Pt:
|
|
617
|
-
return o =
|
|
617
|
+
return o = L(), y(), wt(o, !1);
|
|
618
618
|
case Rn:
|
|
619
|
-
return o =
|
|
619
|
+
return o = L(), y(), o.callee = De(it(), !0), o.arguments = D(fe) ? kt(ce, !1) : Tr, I(o, "NewExpression");
|
|
620
620
|
}
|
|
621
|
-
|
|
621
|
+
M();
|
|
622
622
|
}
|
|
623
623
|
function wt(o, l) {
|
|
624
|
-
A ===
|
|
624
|
+
A === Re ? o.id = ue() : l ? M() : o.id = null, o.oa = [];
|
|
625
625
|
var c = !0;
|
|
626
|
-
for (
|
|
627
|
-
c ? c = !1 :
|
|
628
|
-
c =
|
|
629
|
-
var h =
|
|
630
|
-
if (
|
|
626
|
+
for (C(fe); !D(ce); )
|
|
627
|
+
c ? c = !1 : C(be), o.oa.push(ue());
|
|
628
|
+
c = Le;
|
|
629
|
+
var h = z;
|
|
630
|
+
if (Le = !0, z = [], o.body = we(!0), Le = c, z = h, oe || o.body.body.length && Te(o.body.body[0])) {
|
|
631
631
|
for (c = o.id ? -1 : 0; c < o.oa.length; ++c)
|
|
632
|
-
if (h = 0 > c ? o.id : o.oa[c], (
|
|
632
|
+
if (h = 0 > c ? o.id : o.oa[c], ($n(h.name) || st(h.name)) && n(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
633
633
|
for (var R = 0; R < c; ++R)
|
|
634
634
|
h.name === o.oa[R].name && n(h.start, "Argument name clash in strict mode");
|
|
635
635
|
}
|
|
636
|
-
return
|
|
636
|
+
return I(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
637
637
|
}
|
|
638
638
|
function kt(o, l, c) {
|
|
639
|
-
for (var h = [], R = !0; !
|
|
639
|
+
for (var h = [], R = !0; !D(o); ) {
|
|
640
640
|
if (R)
|
|
641
641
|
R = !1;
|
|
642
|
-
else if (
|
|
642
|
+
else if (C(be), l && O.sb && D(o))
|
|
643
643
|
break;
|
|
644
|
-
h.push(c && A ===
|
|
644
|
+
h.push(c && A === be ? null : Q(!0));
|
|
645
645
|
}
|
|
646
646
|
return h;
|
|
647
647
|
}
|
|
648
648
|
function ue(o) {
|
|
649
|
-
var l =
|
|
650
|
-
return o &&
|
|
649
|
+
var l = L();
|
|
650
|
+
return o && O.yb === "everywhere" && (o = !1), A === Re ? (!o && (O.yb && _r(le) || oe && $n(le)) && x.slice(X, Ae).indexOf("\\") === -1 && n(X, "The keyword '" + le + "' is reserved"), l.name = le) : o && A.l ? l.name = A.l : M(), Ve = !1, y(), I(l, "Identifier");
|
|
651
651
|
}
|
|
652
652
|
e.version = "0.5.0";
|
|
653
|
-
var
|
|
653
|
+
var O, x = "", je, Ct;
|
|
654
654
|
e.parse = function(o, l) {
|
|
655
|
-
|
|
655
|
+
x = String(o), je = x.length, O = l || {};
|
|
656
656
|
for (var c in mn)
|
|
657
|
-
Object.prototype.hasOwnProperty.call(
|
|
658
|
-
for (Ct =
|
|
659
|
-
c =
|
|
660
|
-
return
|
|
657
|
+
Object.prototype.hasOwnProperty.call(O, c) || (O[c] = mn[c]);
|
|
658
|
+
for (Ct = O.sourceFile, ke = 1, d = de = 0, Ve = !0, f(), c = O.dc, Tt = xe = d, O.C && (jt = new a()), Le = oe = !1, z = [], v(), o = c || L(), l = !0, c || (o.body = []); A !== At; )
|
|
659
|
+
c = U(), o.body.push(c), l && Te(c) && K(!0), l = !1;
|
|
660
|
+
return I(o, "Program");
|
|
661
661
|
};
|
|
662
662
|
var mn = {
|
|
663
663
|
fc: !1,
|
|
@@ -670,13 +670,13 @@ var $, ti = function(e) {
|
|
|
670
670
|
dc: null,
|
|
671
671
|
sourceFile: null,
|
|
672
672
|
vb: null
|
|
673
|
-
}, d = 0,
|
|
673
|
+
}, d = 0, X = 0, Ae = 0, Et, It, A, le, Ve, ke, de, Tt = 0, xe = 0, jt, Le, z, oe, Tr = [], $e = {
|
|
674
674
|
type: "num"
|
|
675
675
|
}, gn = {
|
|
676
676
|
type: "regexp"
|
|
677
677
|
}, ot = {
|
|
678
678
|
type: "string"
|
|
679
|
-
},
|
|
679
|
+
}, Re = {
|
|
680
680
|
type: "name"
|
|
681
681
|
}, At = {
|
|
682
682
|
type: "eof"
|
|
@@ -685,9 +685,9 @@ var $, ti = function(e) {
|
|
|
685
685
|
}, Ot = {
|
|
686
686
|
l: "case",
|
|
687
687
|
m: !0
|
|
688
|
-
}, yn = {
|
|
689
|
-
l: "catch"
|
|
690
688
|
}, vn = {
|
|
689
|
+
l: "catch"
|
|
690
|
+
}, yn = {
|
|
691
691
|
l: "continue"
|
|
692
692
|
}, xn = {
|
|
693
693
|
l: "debugger"
|
|
@@ -746,8 +746,8 @@ var $, ti = function(e) {
|
|
|
746
746
|
}, jr = {
|
|
747
747
|
break: Rt,
|
|
748
748
|
case: Ot,
|
|
749
|
-
catch:
|
|
750
|
-
continue:
|
|
749
|
+
catch: vn,
|
|
750
|
+
continue: yn,
|
|
751
751
|
debugger: xn,
|
|
752
752
|
default: bn,
|
|
753
753
|
do: Sn,
|
|
@@ -797,14 +797,14 @@ var $, ti = function(e) {
|
|
|
797
797
|
}, We = {
|
|
798
798
|
type: "{",
|
|
799
799
|
m: !0
|
|
800
|
-
},
|
|
800
|
+
}, Oe = {
|
|
801
801
|
type: "}"
|
|
802
802
|
}, fe = {
|
|
803
803
|
type: "(",
|
|
804
804
|
m: !0
|
|
805
805
|
}, ce = {
|
|
806
806
|
type: ")"
|
|
807
|
-
},
|
|
807
|
+
}, be = {
|
|
808
808
|
type: ",",
|
|
809
809
|
m: !0
|
|
810
810
|
}, he = {
|
|
@@ -824,20 +824,20 @@ var $, ti = function(e) {
|
|
|
824
824
|
}, _n = {
|
|
825
825
|
Cb: !0,
|
|
826
826
|
m: !0
|
|
827
|
-
},
|
|
827
|
+
}, Ce = {
|
|
828
828
|
Cb: !0,
|
|
829
829
|
m: !0
|
|
830
830
|
}, Ar = {
|
|
831
831
|
cc: !0,
|
|
832
832
|
prefix: !0,
|
|
833
833
|
$b: !0
|
|
834
|
-
},
|
|
834
|
+
}, Dn = {
|
|
835
835
|
prefix: !0,
|
|
836
836
|
m: !0
|
|
837
|
-
},
|
|
837
|
+
}, Vn = {
|
|
838
838
|
L: 1,
|
|
839
839
|
m: !0
|
|
840
|
-
},
|
|
840
|
+
}, Ln = {
|
|
841
841
|
L: 2,
|
|
842
842
|
m: !0
|
|
843
843
|
}, Rr = {
|
|
@@ -865,15 +865,15 @@ var $, ti = function(e) {
|
|
|
865
865
|
}, Br = {
|
|
866
866
|
L: 10,
|
|
867
867
|
m: !0
|
|
868
|
-
}, _r = i("class enum extends super const export import"),
|
|
868
|
+
}, _r = i("class enum extends super const export import"), $n = i("implements interface let package private protected public static yield"), st = i("eval arguments"), Dr = i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Vr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Wn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Lr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), lt = /[\n\r\u2028\u2029]/, ct = /\r\n|[\n\r\u2028\u2029]/g, Pe, _t = {
|
|
869
869
|
kind: "loop"
|
|
870
|
-
},
|
|
870
|
+
}, $r = {
|
|
871
871
|
kind: "switch"
|
|
872
872
|
};
|
|
873
873
|
}, Kt = Kt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
874
874
|
ti(Kt.j || (Kt.j = {}));
|
|
875
875
|
function m(e, t) {
|
|
876
|
-
typeof e == "string" && (e =
|
|
876
|
+
typeof e == "string" && (e = Ue(e, "code"));
|
|
877
877
|
var r = e.constructor;
|
|
878
878
|
this.ya = function() {
|
|
879
879
|
return new r({
|
|
@@ -887,8 +887,8 @@ function m(e, t) {
|
|
|
887
887
|
var a, s;
|
|
888
888
|
for (s in this)
|
|
889
889
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
890
|
-
this.N = zt(this, this.ra, null), this.Na = this.N.object, this.ra =
|
|
891
|
-
`), "polyfills"), this.ba = void 0, pt(this.ra), a = new
|
|
890
|
+
this.N = zt(this, this.ra, null), this.Na = this.N.object, this.ra = Ue(this.ba.join(`
|
|
891
|
+
`), "polyfills"), this.ba = void 0, pt(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;
|
|
892
892
|
}
|
|
893
893
|
var Xn = {
|
|
894
894
|
C: !0,
|
|
@@ -897,11 +897,11 @@ var Xn = {
|
|
|
897
897
|
configurable: !0,
|
|
898
898
|
enumerable: !0,
|
|
899
899
|
writable: !1
|
|
900
|
-
},
|
|
900
|
+
}, S = {
|
|
901
901
|
configurable: !0,
|
|
902
902
|
enumerable: !1,
|
|
903
903
|
writable: !0
|
|
904
|
-
},
|
|
904
|
+
}, ie = {
|
|
905
905
|
configurable: !0,
|
|
906
906
|
enumerable: !1,
|
|
907
907
|
writable: !1
|
|
@@ -909,19 +909,19 @@ var Xn = {
|
|
|
909
909
|
configurable: !1,
|
|
910
910
|
enumerable: !1,
|
|
911
911
|
writable: !1
|
|
912
|
-
},
|
|
912
|
+
}, Yn = {
|
|
913
913
|
configurable: !1,
|
|
914
914
|
enumerable: !0,
|
|
915
915
|
writable: !0
|
|
916
916
|
}, mr = {
|
|
917
917
|
STEP_ERROR: !0
|
|
918
|
-
},
|
|
918
|
+
}, _e = {
|
|
919
919
|
SCOPE_REFERENCE: !0
|
|
920
920
|
}, Ze = {
|
|
921
921
|
VALUE_IN_DESCRIPTOR: !0
|
|
922
|
-
},
|
|
922
|
+
}, Me = {
|
|
923
923
|
REGEXP_TIMEOUT: !0
|
|
924
|
-
},
|
|
924
|
+
}, Jn = [], me = null, Je = null, Se = typeof globalThis > "u" ? void 0 : globalThis, ni = ["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();", "};"];
|
|
925
925
|
function en(e) {
|
|
926
926
|
var t = e >>> 0;
|
|
927
927
|
return t === Number(e) ? t : NaN;
|
|
@@ -941,26 +941,26 @@ function pt(e, t, r) {
|
|
|
941
941
|
m.prototype.REGEXP_MODE = 2;
|
|
942
942
|
m.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
943
943
|
m.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
function
|
|
944
|
+
B = m.prototype;
|
|
945
|
+
B.P = !1;
|
|
946
|
+
B.Ka = !1;
|
|
947
|
+
B.Kb = 0;
|
|
948
|
+
B.ic = 0;
|
|
949
|
+
function Ue(e, t) {
|
|
950
950
|
var r = {}, n;
|
|
951
951
|
for (n in Xn)
|
|
952
952
|
r[n] = Xn[n];
|
|
953
|
-
return r.sourceFile = t,
|
|
953
|
+
return r.sourceFile = t, Se.j.parse(e, r);
|
|
954
954
|
}
|
|
955
|
-
|
|
955
|
+
B.Jb = function(e) {
|
|
956
956
|
var t = this.o[0];
|
|
957
957
|
if (!t || t.node.type !== "Program")
|
|
958
958
|
throw Error("Expecting original AST to start with a Program node");
|
|
959
|
-
if (typeof e == "string" && (e =
|
|
959
|
+
if (typeof e == "string" && (e = Ue(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
960
960
|
throw Error("Expecting new AST to start with a Program node");
|
|
961
961
|
Qe(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
962
962
|
};
|
|
963
|
-
|
|
963
|
+
B.lb = function() {
|
|
964
964
|
var e = this.o, t;
|
|
965
965
|
do {
|
|
966
966
|
var r = e[e.length - 1];
|
|
@@ -972,23 +972,23 @@ $.lb = function() {
|
|
|
972
972
|
if (r = this.ca[0], !r || r.time > Date.now())
|
|
973
973
|
r = null;
|
|
974
974
|
else {
|
|
975
|
-
this.ca.shift(), 0 <= r.interval &&
|
|
976
|
-
var n = new
|
|
975
|
+
this.ca.shift(), 0 <= r.interval && yr(this, r, r.interval);
|
|
976
|
+
var n = new w(r.node, r.scope);
|
|
977
977
|
r.zb && (n.ia = 2, n.B = this.Na, n.U = r.zb, n.Qa = !0, n.F = r.Lb), r = n;
|
|
978
978
|
}
|
|
979
979
|
if (!r)
|
|
980
980
|
break;
|
|
981
981
|
}
|
|
982
982
|
n = r.node;
|
|
983
|
-
var i =
|
|
984
|
-
|
|
983
|
+
var i = Je;
|
|
984
|
+
Je = this;
|
|
985
985
|
try {
|
|
986
986
|
var a = this.rb[n.type](e, r, n);
|
|
987
987
|
} catch (s) {
|
|
988
988
|
if (s !== mr)
|
|
989
989
|
throw this.value !== s && (this.value = void 0), s;
|
|
990
990
|
} finally {
|
|
991
|
-
|
|
991
|
+
Je = i;
|
|
992
992
|
}
|
|
993
993
|
if (a && e.push(a), this.P)
|
|
994
994
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -998,38 +998,38 @@ $.lb = function() {
|
|
|
998
998
|
} while (!n.end && t > Date.now());
|
|
999
999
|
return !0;
|
|
1000
1000
|
};
|
|
1001
|
-
|
|
1001
|
+
B.Eb = function() {
|
|
1002
1002
|
for (; !this.za && this.lb(); )
|
|
1003
1003
|
;
|
|
1004
1004
|
return this.za;
|
|
1005
1005
|
};
|
|
1006
1006
|
function ri(e, t) {
|
|
1007
|
-
e.g(t, "NaN", NaN, Ke), e.g(t, "Infinity", 1 / 0, Ke), e.g(t, "undefined", void 0, Ke), e.g(t, "window", t, Qt), e.g(t, "this", t, Ke), e.g(t, "self", t), e.M = new F(null), e.Z = new F(e.M), ii(e, t), oi(e, t), t.xa = e.M, e.g(t, "constructor", e.v,
|
|
1007
|
+
e.g(t, "NaN", NaN, Ke), e.g(t, "Infinity", 1 / 0, Ke), e.g(t, "undefined", void 0, Ke), e.g(t, "window", t, Qt), e.g(t, "this", t, Ke), e.g(t, "self", t), e.M = new F(null), e.Z = new F(e.M), ii(e, t), oi(e, t), t.xa = e.M, e.g(t, "constructor", e.v, S), ai(e, t), si(e, t), li(e, t), ci(e, t), ui(e, t), di(e, t), fi(e, t), hi(e, t), pi(e, t);
|
|
1008
1008
|
var r = e.i(function() {
|
|
1009
1009
|
throw EvalError("Can't happen");
|
|
1010
1010
|
}, !1);
|
|
1011
|
-
r.eval = !0, e.g(t, "eval", r,
|
|
1011
|
+
r.eval = !0, e.g(t, "eval", r, S), e.g(t, "parseInt", e.i(parseInt, !1), S), e.g(t, "parseFloat", e.i(parseFloat, !1), S), e.g(t, "isNaN", e.i(isNaN, !1), S), e.g(t, "isFinite", e.i(isFinite, !1), S);
|
|
1012
1012
|
for (var n = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], i = 0; i < n.length; i++)
|
|
1013
1013
|
r = function(a) {
|
|
1014
1014
|
return function(s) {
|
|
1015
1015
|
try {
|
|
1016
1016
|
return a(s);
|
|
1017
1017
|
} catch (u) {
|
|
1018
|
-
|
|
1018
|
+
k(e, e.Gb, u.message);
|
|
1019
1019
|
}
|
|
1020
1020
|
};
|
|
1021
|
-
}(n[i][0]), e.g(t, n[i][1], e.i(r, !1),
|
|
1021
|
+
}(n[i][0]), e.g(t, n[i][1], e.i(r, !1), S);
|
|
1022
1022
|
r = function(a) {
|
|
1023
1023
|
return qn(e, !1, arguments);
|
|
1024
|
-
}, e.g(t, "setTimeout", e.i(r, !1),
|
|
1024
|
+
}, e.g(t, "setTimeout", e.i(r, !1), S), r = function(a) {
|
|
1025
1025
|
return qn(e, !0, arguments);
|
|
1026
|
-
}, e.g(t, "setInterval", e.i(r, !1),
|
|
1026
|
+
}, e.g(t, "setInterval", e.i(r, !1), S), r = function(a) {
|
|
1027
1027
|
Zn(e, a);
|
|
1028
|
-
}, e.g(t, "clearTimeout", e.i(r, !1),
|
|
1028
|
+
}, e.g(t, "clearTimeout", e.i(r, !1), S), r = function(a) {
|
|
1029
1029
|
Zn(e, a);
|
|
1030
|
-
}, e.g(t, "clearInterval", e.i(r, !1),
|
|
1030
|
+
}, 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);
|
|
1031
1031
|
}
|
|
1032
|
-
|
|
1032
|
+
B.Wb = 0;
|
|
1033
1033
|
function ii(e, t) {
|
|
1034
1034
|
var r = /^[A-Za-z_$][\w$]*$/, n = function(i) {
|
|
1035
1035
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
@@ -1037,21 +1037,21 @@ function ii(e, t) {
|
|
|
1037
1037
|
s = s.split(/\s*,\s*/);
|
|
1038
1038
|
for (var u = 0; u < s.length; u++) {
|
|
1039
1039
|
var f = s[u];
|
|
1040
|
-
r.test(f) ||
|
|
1040
|
+
r.test(f) || k(e, e.T, "Invalid function argument: " + f);
|
|
1041
1041
|
}
|
|
1042
1042
|
s = s.join(", ");
|
|
1043
1043
|
}
|
|
1044
1044
|
try {
|
|
1045
|
-
var
|
|
1046
|
-
} catch (
|
|
1047
|
-
|
|
1045
|
+
var g = Ue("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1046
|
+
} catch (v) {
|
|
1047
|
+
k(e, e.T, "Invalid code: " + v.message);
|
|
1048
1048
|
}
|
|
1049
|
-
return
|
|
1049
|
+
return g.body.length !== 1 && k(e, e.T, "Invalid code in function body"), rn(e, g.body[0].la, e.N, "anonymous");
|
|
1050
1050
|
};
|
|
1051
|
-
e.O = e.i(n, !0), e.g(t, "Function", e.O,
|
|
1052
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0,
|
|
1051
|
+
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() {
|
|
1052
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ie), e.Z.H = "Function", n = function(i, a) {
|
|
1053
1053
|
var s = e.o[e.o.length - 1];
|
|
1054
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof F ? s.F = gr(e, a) :
|
|
1054
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof F ? s.F = gr(e, a) : k(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1055
1055
|
}, J(e, e.O, "apply", n), n = function(i) {
|
|
1056
1056
|
var a = e.o[e.o.length - 1];
|
|
1057
1057
|
a.U = this, a.B = i, a.F = [];
|
|
@@ -1060,43 +1060,43 @@ function ii(e, t) {
|
|
|
1060
1060
|
a.eb = !1;
|
|
1061
1061
|
}, J(e, e.O, "call", n), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), n = function() {
|
|
1062
1062
|
return String(this);
|
|
1063
|
-
}, J(e, e.O, "toString", n), e.g(e.O, "toString", e.i(n, !1),
|
|
1063
|
+
}, J(e, e.O, "toString", n), e.g(e.O, "toString", e.i(n, !1), S), n = function() {
|
|
1064
1064
|
return this.valueOf();
|
|
1065
|
-
}, J(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1),
|
|
1065
|
+
}, J(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1), S);
|
|
1066
1066
|
}
|
|
1067
1067
|
function oi(e, t) {
|
|
1068
1068
|
function r(i) {
|
|
1069
|
-
i != null ||
|
|
1069
|
+
i != null || k(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1070
1070
|
}
|
|
1071
1071
|
var n = function(i) {
|
|
1072
1072
|
if (i == null)
|
|
1073
|
-
return
|
|
1073
|
+
return ve(e) ? this : e.s(e.M);
|
|
1074
1074
|
if (!(i instanceof F)) {
|
|
1075
1075
|
var a = e.s(ge(e, i));
|
|
1076
1076
|
return a.data = i, a;
|
|
1077
1077
|
}
|
|
1078
1078
|
return i;
|
|
1079
1079
|
};
|
|
1080
|
-
e.v = e.i(n, !0), e.g(e.v, "prototype", e.M,
|
|
1080
|
+
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) {
|
|
1081
1081
|
return r(i), pe(e, Object.getOwnPropertyNames(i instanceof F ? i.h : i));
|
|
1082
|
-
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1),
|
|
1082
|
+
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1), S), n = function(i) {
|
|
1083
1083
|
return r(i), i instanceof F && (i = i.h), pe(e, Object.keys(i));
|
|
1084
|
-
}, e.g(e.v, "keys", e.i(n, !1),
|
|
1085
|
-
return i === null ? e.s(null) : (i instanceof F ||
|
|
1086
|
-
}, e.g(e.v, "create", e.i(n, !1),
|
|
1087
|
-
return a = String(a), i instanceof F ||
|
|
1088
|
-
}, e.g(e.v, "defineProperty", e.i(n, !1),
|
|
1089
|
-
if (i instanceof F ||
|
|
1084
|
+
}, e.g(e.v, "keys", e.i(n, !1), S), n = function(i) {
|
|
1085
|
+
return i === null ? e.s(null) : (i instanceof F || k(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1086
|
+
}, 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) {
|
|
1087
|
+
return a = String(a), i instanceof F || k(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof F || k(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || k(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a, Ze, s.h), i;
|
|
1088
|
+
}, 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) {
|
|
1089
|
+
if (i instanceof F || k(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1090
1090
|
var s = Object.getOwnPropertyDescriptor(i.h, a), u = i.V[a];
|
|
1091
1091
|
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;
|
|
1092
1092
|
}
|
|
1093
|
-
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(n, !1),
|
|
1093
|
+
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(n, !1), S), n = function(i) {
|
|
1094
1094
|
return r(i), ge(e, i);
|
|
1095
|
-
}, e.g(e.v, "getPrototypeOf", e.i(n, !1),
|
|
1095
|
+
}, e.g(e.v, "getPrototypeOf", e.i(n, !1), S), n = function(i) {
|
|
1096
1096
|
return !!i && !i.preventExtensions;
|
|
1097
|
-
}, e.g(e.v, "isExtensible", e.i(n, !1),
|
|
1097
|
+
}, e.g(e.v, "isExtensible", e.i(n, !1), S), n = function(i) {
|
|
1098
1098
|
return i instanceof F && (i.preventExtensions = !0), i;
|
|
1099
|
-
}, e.g(e.v, "preventExtensions", e.i(n, !1),
|
|
1099
|
+
}, e.g(e.v, "preventExtensions", e.i(n, !1), S), J(e, e.v, "toString", F.prototype.toString), J(e, e.v, "toLocaleString", F.prototype.toString), J(e, e.v, "valueOf", F.prototype.valueOf), n = function(i) {
|
|
1100
1100
|
return r(this), this instanceof F ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1101
1101
|
}, J(e, e.v, "hasOwnProperty", n), n = function(i) {
|
|
1102
1102
|
return r(this), this instanceof F ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
@@ -1111,9 +1111,9 @@ function oi(e, t) {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
function ai(e, t) {
|
|
1113
1113
|
var r = function(n) {
|
|
1114
|
-
var i =
|
|
1114
|
+
var i = ve(e) ? this : Be(e), a = arguments[0];
|
|
1115
1115
|
if (arguments.length === 1 && typeof a == "number")
|
|
1116
|
-
isNaN(en(a)) &&
|
|
1116
|
+
isNaN(en(a)) && k(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1117
1117
|
else {
|
|
1118
1118
|
for (a = 0; a < arguments.length; a++)
|
|
1119
1119
|
i.h[a] = arguments[a];
|
|
@@ -1121,9 +1121,9 @@ function ai(e, t) {
|
|
|
1121
1121
|
}
|
|
1122
1122
|
return i;
|
|
1123
1123
|
};
|
|
1124
|
-
e.qa = e.i(r, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa,
|
|
1124
|
+
e.qa = e.i(r, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, S), r = function(n) {
|
|
1125
1125
|
return n && n.H === "Array";
|
|
1126
|
-
}, e.g(e.qa, "isArray", e.i(r, !1),
|
|
1126
|
+
}, e.g(e.qa, "isArray", e.i(r, !1), S), e.g(e.La, "length", 0, {
|
|
1127
1127
|
configurable: !1,
|
|
1128
1128
|
enumerable: !1,
|
|
1129
1129
|
writable: !0
|
|
@@ -1131,43 +1131,43 @@ function ai(e, t) {
|
|
|
1131
1131
|
}
|
|
1132
1132
|
function si(e, t) {
|
|
1133
1133
|
var r = function(n) {
|
|
1134
|
-
return n = arguments.length ?
|
|
1134
|
+
return n = arguments.length ? Se.String(n) : "", ve(e) ? (this.data = n, this) : n;
|
|
1135
1135
|
};
|
|
1136
|
-
for (e.J = e.i(r, !0), e.g(t, "String", e.J,
|
|
1136
|
+
for (e.J = e.i(r, !0), e.g(t, "String", e.J, S), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), S), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), r = 0; r < t.length; r++)
|
|
1137
1137
|
J(e, e.J, t[r], String.prototype[t[r]]);
|
|
1138
1138
|
r = function(n, i, a) {
|
|
1139
1139
|
i = e.R(i), a = e.R(a);
|
|
1140
1140
|
try {
|
|
1141
1141
|
return String(this).localeCompare(n, i, a);
|
|
1142
1142
|
} catch (s) {
|
|
1143
|
-
|
|
1143
|
+
k(e, e.D, "localeCompare: " + s.message);
|
|
1144
1144
|
}
|
|
1145
1145
|
}, J(e, e.J, "localeCompare", r), r = function(n, i, a) {
|
|
1146
1146
|
var s = String(this);
|
|
1147
|
-
if (i = i ? Number(i) : void 0,
|
|
1147
|
+
if (i = i ? Number(i) : void 0, q(e, n, e.I) && (n = n.data, ze(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1148
1148
|
if (me)
|
|
1149
1149
|
n = Ge(e, "string.split(separator, limit)", {
|
|
1150
1150
|
string: s,
|
|
1151
1151
|
separator: n,
|
|
1152
1152
|
limit: i
|
|
1153
|
-
}, n, a), n !==
|
|
1153
|
+
}, n, a), n !== Me && a(pe(e, n));
|
|
1154
1154
|
else {
|
|
1155
1155
|
var u = e.ha(), f = Xe(e, n, u, a);
|
|
1156
|
-
u.onmessage = function(
|
|
1157
|
-
clearTimeout(f), a(pe(e,
|
|
1156
|
+
u.onmessage = function(g) {
|
|
1157
|
+
clearTimeout(f), a(pe(e, g.data));
|
|
1158
1158
|
}, u.postMessage(["split", s, n, i]);
|
|
1159
1159
|
}
|
|
1160
1160
|
return;
|
|
1161
1161
|
}
|
|
1162
1162
|
n = s.split(n, i), a(pe(e, n));
|
|
1163
|
-
},
|
|
1163
|
+
}, Ye(e, e.J, "split", r), r = function(n, i) {
|
|
1164
1164
|
var a = String(this);
|
|
1165
|
-
if (n =
|
|
1165
|
+
if (n = q(e, n, e.I) ? n.data : new RegExp(n), ze(e, n, i), e.REGEXP_MODE === 2)
|
|
1166
1166
|
if (me)
|
|
1167
1167
|
n = Ge(e, "string.match(regexp)", {
|
|
1168
1168
|
string: a,
|
|
1169
1169
|
regexp: n
|
|
1170
|
-
}, n, i), n !==
|
|
1170
|
+
}, n, i), n !== Me && i(n && pe(e, n));
|
|
1171
1171
|
else {
|
|
1172
1172
|
var s = e.ha(), u = Xe(e, n, s, i);
|
|
1173
1173
|
s.onmessage = function(f) {
|
|
@@ -1176,14 +1176,14 @@ function si(e, t) {
|
|
|
1176
1176
|
}
|
|
1177
1177
|
else
|
|
1178
1178
|
n = a.match(n), i(n && pe(e, n));
|
|
1179
|
-
},
|
|
1179
|
+
}, Ye(e, e.J, "match", r), r = function(n, i) {
|
|
1180
1180
|
var a = String(this);
|
|
1181
|
-
if (
|
|
1181
|
+
if (q(e, n, e.I) ? n = n.data : n = new RegExp(n), ze(e, n, i), e.REGEXP_MODE === 2)
|
|
1182
1182
|
if (me)
|
|
1183
1183
|
n = Ge(e, "string.search(regexp)", {
|
|
1184
1184
|
string: a,
|
|
1185
1185
|
regexp: n
|
|
1186
|
-
}, n, i), n !==
|
|
1186
|
+
}, n, i), n !== Me && i(n);
|
|
1187
1187
|
else {
|
|
1188
1188
|
var s = e.ha(), u = Xe(e, n, s, i);
|
|
1189
1189
|
s.onmessage = function(f) {
|
|
@@ -1192,83 +1192,83 @@ function si(e, t) {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
else
|
|
1194
1194
|
i(a.search(n));
|
|
1195
|
-
},
|
|
1195
|
+
}, Ye(e, e.J, "search", r), r = function(n, i, a) {
|
|
1196
1196
|
var s = String(this);
|
|
1197
|
-
if (i = String(i),
|
|
1197
|
+
if (i = String(i), q(e, n, e.I) && (n = n.data, ze(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1198
1198
|
if (me)
|
|
1199
1199
|
n = Ge(e, "string.replace(substr, newSubstr)", {
|
|
1200
1200
|
string: s,
|
|
1201
1201
|
substr: n,
|
|
1202
1202
|
newSubstr: i
|
|
1203
|
-
}, n, a), n !==
|
|
1203
|
+
}, n, a), n !== Me && a(n);
|
|
1204
1204
|
else {
|
|
1205
1205
|
var u = e.ha(), f = Xe(e, n, u, a);
|
|
1206
|
-
u.onmessage = function(
|
|
1207
|
-
clearTimeout(f), a(
|
|
1206
|
+
u.onmessage = function(g) {
|
|
1207
|
+
clearTimeout(f), a(g.data);
|
|
1208
1208
|
}, u.postMessage(["replace", s, n, i]);
|
|
1209
1209
|
}
|
|
1210
1210
|
return;
|
|
1211
1211
|
}
|
|
1212
1212
|
a(s.replace(n, i));
|
|
1213
|
-
},
|
|
1213
|
+
}, Ye(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;", "};", "})();", "");
|
|
1214
1214
|
}
|
|
1215
1215
|
function li(e, t) {
|
|
1216
1216
|
e.mb = e.i(function(r) {
|
|
1217
|
-
return r =
|
|
1218
|
-
}, !0), e.g(t, "Boolean", e.mb,
|
|
1217
|
+
return r = Se.Boolean(r), ve(e) ? (this.data = r, this) : r;
|
|
1218
|
+
}, !0), e.g(t, "Boolean", e.mb, S);
|
|
1219
1219
|
}
|
|
1220
1220
|
function ci(e, t) {
|
|
1221
1221
|
var r = function(n) {
|
|
1222
|
-
return n = arguments.length ?
|
|
1222
|
+
return n = arguments.length ? Se.Number(n) : 0, ve(e) ? (this.data = n, this) : n;
|
|
1223
1223
|
};
|
|
1224
|
-
for (e.aa = e.i(r, !0), e.g(t, "Number", e.aa,
|
|
1224
|
+
for (e.aa = e.i(r, !0), e.g(t, "Number", e.aa, S), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], r = 0; r < t.length; r++)
|
|
1225
1225
|
e.g(e.aa, t[r], Number[t[r]], Ke);
|
|
1226
1226
|
r = function(n) {
|
|
1227
1227
|
try {
|
|
1228
1228
|
return Number(this).toExponential(n);
|
|
1229
1229
|
} catch (i) {
|
|
1230
|
-
|
|
1230
|
+
k(e, e.D, i.message);
|
|
1231
1231
|
}
|
|
1232
1232
|
}, J(e, e.aa, "toExponential", r), r = function(n) {
|
|
1233
1233
|
try {
|
|
1234
1234
|
return Number(this).toFixed(n);
|
|
1235
1235
|
} catch (i) {
|
|
1236
|
-
|
|
1236
|
+
k(e, e.D, i.message);
|
|
1237
1237
|
}
|
|
1238
1238
|
}, J(e, e.aa, "toFixed", r), r = function(n) {
|
|
1239
1239
|
try {
|
|
1240
1240
|
return Number(this).toPrecision(n);
|
|
1241
1241
|
} catch (i) {
|
|
1242
|
-
|
|
1242
|
+
k(e, e.D, i.message);
|
|
1243
1243
|
}
|
|
1244
1244
|
}, J(e, e.aa, "toPrecision", r), r = function(n) {
|
|
1245
1245
|
try {
|
|
1246
1246
|
return Number(this).toString(n);
|
|
1247
1247
|
} catch (i) {
|
|
1248
|
-
|
|
1248
|
+
k(e, e.D, i.message);
|
|
1249
1249
|
}
|
|
1250
1250
|
}, J(e, e.aa, "toString", r), r = function(n, i) {
|
|
1251
1251
|
n = n ? e.R(n) : void 0, i = i ? e.R(i) : void 0;
|
|
1252
1252
|
try {
|
|
1253
1253
|
return Number(this).toLocaleString(n, i);
|
|
1254
1254
|
} catch (a) {
|
|
1255
|
-
|
|
1255
|
+
k(e, e.D, "toLocaleString: " + a.message);
|
|
1256
1256
|
}
|
|
1257
1257
|
}, J(e, e.aa, "toLocaleString", r);
|
|
1258
1258
|
}
|
|
1259
1259
|
function ui(e, t) {
|
|
1260
1260
|
var r = function(i, a) {
|
|
1261
|
-
if (!
|
|
1262
|
-
return
|
|
1261
|
+
if (!ve(e))
|
|
1262
|
+
return Se.Date();
|
|
1263
1263
|
var s = [null].concat(Array.from(arguments));
|
|
1264
|
-
return this.data = new (Function.prototype.bind.apply(
|
|
1264
|
+
return this.data = new (Function.prototype.bind.apply(Se.Date, s))(), this;
|
|
1265
1265
|
};
|
|
1266
|
-
e.$ = e.i(r, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$,
|
|
1266
|
+
e.$ = e.i(r, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, S), e.g(e.$, "now", e.i(Date.now, !1), S), e.g(e.$, "parse", e.i(Date.parse, !1), S), e.g(e.$, "UTC", e.i(Date.UTC, !1), S), t = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
|
|
1267
1267
|
for (var n = 0; n < t.length; n++)
|
|
1268
1268
|
r = function(i) {
|
|
1269
1269
|
return function(a) {
|
|
1270
1270
|
var s = this.data;
|
|
1271
|
-
s instanceof Date ||
|
|
1271
|
+
s instanceof Date || k(e, e.j, i + " not called on a Date");
|
|
1272
1272
|
for (var u = [], f = 0; f < arguments.length; f++)
|
|
1273
1273
|
u[f] = e.R(arguments[f]);
|
|
1274
1274
|
return s[i].apply(s, u);
|
|
@@ -1277,26 +1277,26 @@ function ui(e, t) {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
function di(e, t) {
|
|
1279
1279
|
var r = function(n, i) {
|
|
1280
|
-
if (
|
|
1280
|
+
if (ve(e))
|
|
1281
1281
|
var a = this;
|
|
1282
1282
|
else {
|
|
1283
|
-
if (i === void 0 &&
|
|
1283
|
+
if (i === void 0 && q(e, n, e.I))
|
|
1284
1284
|
return n;
|
|
1285
1285
|
a = e.s(e.Ma);
|
|
1286
1286
|
}
|
|
1287
|
-
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) ||
|
|
1287
|
+
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) || k(e, e.T, "Invalid regexp flag: " + i);
|
|
1288
1288
|
try {
|
|
1289
|
-
var s = new
|
|
1289
|
+
var s = new Se.RegExp(n, i);
|
|
1290
1290
|
} catch (u) {
|
|
1291
|
-
|
|
1291
|
+
k(e, e.T, u.message);
|
|
1292
1292
|
}
|
|
1293
1293
|
return tn(e, a, s), a;
|
|
1294
1294
|
};
|
|
1295
|
-
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I,
|
|
1296
|
-
function a(
|
|
1297
|
-
if (
|
|
1298
|
-
var
|
|
1299
|
-
return e.g(
|
|
1295
|
+
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, ie), e.g(e.I.h.prototype, "ignoreCase", void 0, ie), e.g(e.I.h.prototype, "multiline", void 0, ie), e.g(e.I.h.prototype, "source", "(?:)", ie), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), r = function(n, i) {
|
|
1296
|
+
function a(v) {
|
|
1297
|
+
if (v) {
|
|
1298
|
+
var b = pe(e, v);
|
|
1299
|
+
return e.g(b, "index", v.index), e.g(b, "input", v.input), b;
|
|
1300
1300
|
}
|
|
1301
1301
|
return null;
|
|
1302
1302
|
}
|
|
@@ -1306,61 +1306,61 @@ function di(e, t) {
|
|
|
1306
1306
|
n = Ge(e, "regexp.exec(string)", {
|
|
1307
1307
|
string: n,
|
|
1308
1308
|
regexp: s
|
|
1309
|
-
}, s, i), n !==
|
|
1309
|
+
}, s, i), n !== Me && (e.g(this, "lastIndex", s.lastIndex), i(a(n)));
|
|
1310
1310
|
else {
|
|
1311
|
-
var u = e.ha(), f = Xe(e, s, u, i),
|
|
1312
|
-
u.onmessage = function(
|
|
1313
|
-
clearTimeout(f), e.g(
|
|
1311
|
+
var u = e.ha(), f = Xe(e, s, u, i), g = this;
|
|
1312
|
+
u.onmessage = function(v) {
|
|
1313
|
+
clearTimeout(f), e.g(g, "lastIndex", v.data[1]), i(a(v.data[0]));
|
|
1314
1314
|
}, u.postMessage(["exec", s, s.lastIndex, n]);
|
|
1315
1315
|
}
|
|
1316
1316
|
else
|
|
1317
1317
|
n = s.exec(n), e.g(this, "lastIndex", s.lastIndex), i(a(n));
|
|
1318
|
-
},
|
|
1318
|
+
}, Ye(e, e.I, "exec", r);
|
|
1319
1319
|
}
|
|
1320
1320
|
function fi(e, t) {
|
|
1321
1321
|
function r(n) {
|
|
1322
1322
|
var i = e.i(function(a) {
|
|
1323
|
-
var s =
|
|
1323
|
+
var s = ve(e) ? this : e.Aa(i);
|
|
1324
1324
|
return Gt(e, s, a), s;
|
|
1325
1325
|
}, !0);
|
|
1326
|
-
return e.g(i, "prototype", e.Aa(e.D),
|
|
1326
|
+
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;
|
|
1327
1327
|
}
|
|
1328
1328
|
e.D = e.i(function(n) {
|
|
1329
|
-
var i =
|
|
1329
|
+
var i = ve(e) ? this : e.Aa(e.D);
|
|
1330
1330
|
return Gt(e, i, n), i;
|
|
1331
|
-
}, !0), e.g(t, "Error", e.D,
|
|
1331
|
+
}, !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");
|
|
1332
1332
|
}
|
|
1333
1333
|
function hi(e, t) {
|
|
1334
1334
|
var r = e.s(e.M);
|
|
1335
|
-
e.g(t, "Math", r,
|
|
1335
|
+
e.g(t, "Math", r, S);
|
|
1336
1336
|
var n = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1337
1337
|
for (t = 0; t < n.length; t++)
|
|
1338
|
-
e.g(r, n[t], Math[n[t]],
|
|
1338
|
+
e.g(r, n[t], Math[n[t]], ie);
|
|
1339
1339
|
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++)
|
|
1340
|
-
e.g(r, n[t], e.i(Math[n[t]], !1),
|
|
1340
|
+
e.g(r, n[t], e.i(Math[n[t]], !1), S);
|
|
1341
1341
|
}
|
|
1342
1342
|
function pi(e, t) {
|
|
1343
1343
|
var r = e.s(e.M);
|
|
1344
|
-
e.g(t, "JSON", r,
|
|
1344
|
+
e.g(t, "JSON", r, S), t = function(n) {
|
|
1345
1345
|
try {
|
|
1346
1346
|
var i = JSON.parse(String(n));
|
|
1347
1347
|
} catch (a) {
|
|
1348
|
-
|
|
1348
|
+
k(e, e.T, a.message);
|
|
1349
1349
|
}
|
|
1350
1350
|
return e.Ia(i);
|
|
1351
1351
|
}, e.g(r, "parse", e.i(t, !1)), t = function(n, i, a) {
|
|
1352
|
-
i && i.H === "Function" ?
|
|
1352
|
+
i && i.H === "Function" ? k(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = gr(e, i), i = i.filter(function(u) {
|
|
1353
1353
|
return typeof u == "string" || typeof u == "number";
|
|
1354
1354
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), n = e.R(n);
|
|
1355
1355
|
try {
|
|
1356
1356
|
var s = JSON.stringify(n, i, a);
|
|
1357
1357
|
} catch (u) {
|
|
1358
|
-
|
|
1358
|
+
k(e, e.j, u.message);
|
|
1359
1359
|
}
|
|
1360
1360
|
return s;
|
|
1361
1361
|
}, e.g(r, "stringify", e.i(t, !1));
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function q(e, t, r) {
|
|
1364
1364
|
if (t == null || !r)
|
|
1365
1365
|
return !1;
|
|
1366
1366
|
if (r = r.h.prototype, t === r)
|
|
@@ -1373,10 +1373,10 @@ function Y(e, t, r) {
|
|
|
1373
1373
|
return !1;
|
|
1374
1374
|
}
|
|
1375
1375
|
function tn(e, t, r) {
|
|
1376
|
-
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex,
|
|
1376
|
+
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex, S), e.g(t, "source", r.source, ie), e.g(t, "global", r.global, ie), e.g(t, "ignoreCase", r.ignoreCase, ie), e.g(t, "multiline", r.multiline, ie);
|
|
1377
1377
|
}
|
|
1378
1378
|
function Gt(e, t, r) {
|
|
1379
|
-
r && e.g(t, "message", String(r),
|
|
1379
|
+
r && e.g(t, "message", String(r), S), r = [];
|
|
1380
1380
|
for (var n = e.o.length - 1; 0 <= n; n--) {
|
|
1381
1381
|
var i = e.o[n], a = i.node;
|
|
1382
1382
|
a.type === "CallExpression" && (i = i.U) && r.length && (r[r.length - 1].Ob = e.G(i, "name")), !a.X || r.length && a.type !== "CallExpression" || r.push({
|
|
@@ -1390,9 +1390,9 @@ function Gt(e, t, r) {
|
|
|
1390
1390
|
`) : a + (" at " + s + `
|
|
1391
1391
|
`);
|
|
1392
1392
|
}
|
|
1393
|
-
e.g(t, "stack", a.trim(),
|
|
1393
|
+
e.g(t, "stack", a.trim(), S);
|
|
1394
1394
|
}
|
|
1395
|
-
|
|
1395
|
+
B.ha = function() {
|
|
1396
1396
|
var e = this.ha.Mb;
|
|
1397
1397
|
return e || (e = new Blob([ni.join(`
|
|
1398
1398
|
`)], {
|
|
@@ -1406,9 +1406,9 @@ function Ge(e, t, r, n, i) {
|
|
|
1406
1406
|
try {
|
|
1407
1407
|
return me.runInNewContext(t, r, a);
|
|
1408
1408
|
} catch {
|
|
1409
|
-
i(null),
|
|
1409
|
+
i(null), k(e, e.D, "RegExp Timeout: " + n);
|
|
1410
1410
|
}
|
|
1411
|
-
return
|
|
1411
|
+
return Me;
|
|
1412
1412
|
}
|
|
1413
1413
|
function ze(e, t, r) {
|
|
1414
1414
|
if (e.REGEXP_MODE === 0)
|
|
@@ -1427,26 +1427,26 @@ function ze(e, t, r) {
|
|
|
1427
1427
|
n = !!me;
|
|
1428
1428
|
} else
|
|
1429
1429
|
n = !1;
|
|
1430
|
-
n || (r(null),
|
|
1430
|
+
n || (r(null), k(e, e.D, "Regular expressions not supported: " + t));
|
|
1431
1431
|
}
|
|
1432
1432
|
function Xe(e, t, r, n) {
|
|
1433
1433
|
return setTimeout(function() {
|
|
1434
1434
|
r.terminate(), n(null);
|
|
1435
1435
|
try {
|
|
1436
|
-
|
|
1436
|
+
k(e, e.D, "RegExp Timeout: " + t);
|
|
1437
1437
|
} catch {
|
|
1438
1438
|
}
|
|
1439
1439
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1440
1440
|
}
|
|
1441
|
-
|
|
1441
|
+
B.Aa = function(e) {
|
|
1442
1442
|
return this.s(e && e.h.prototype);
|
|
1443
1443
|
};
|
|
1444
|
-
|
|
1444
|
+
B.s = function(e) {
|
|
1445
1445
|
if (typeof e != "object")
|
|
1446
1446
|
throw Error("Non object prototype");
|
|
1447
|
-
return e = new F(e),
|
|
1447
|
+
return e = new F(e), q(this, e, this.D) && (e.H = "Error"), e;
|
|
1448
1448
|
};
|
|
1449
|
-
function
|
|
1449
|
+
function Be(e) {
|
|
1450
1450
|
var t = e.s(e.La);
|
|
1451
1451
|
return e.g(t, "length", 0, {
|
|
1452
1452
|
configurable: !1,
|
|
@@ -1456,20 +1456,20 @@ function Fe(e) {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
function nn(e, t, r) {
|
|
1458
1458
|
var n = e.s(e.Z);
|
|
1459
|
-
return r ? (r = e.s(e.M), e.g(n, "prototype", r,
|
|
1459
|
+
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, ie), n.H = "Function", n;
|
|
1460
1460
|
}
|
|
1461
1461
|
function rn(e, t, r, n) {
|
|
1462
1462
|
var i = nn(e, t.oa.length, !0);
|
|
1463
|
-
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "",
|
|
1463
|
+
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "", ie), i;
|
|
1464
1464
|
}
|
|
1465
|
-
|
|
1466
|
-
return t = nn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1465
|
+
B.i = function(e, t) {
|
|
1466
|
+
return t = nn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, ie), t;
|
|
1467
1467
|
};
|
|
1468
|
-
|
|
1468
|
+
B.ub = function(e) {
|
|
1469
1469
|
var t = nn(this, e.length, !0);
|
|
1470
|
-
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1470
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, ie), t;
|
|
1471
1471
|
};
|
|
1472
|
-
|
|
1472
|
+
B.Ia = function(e) {
|
|
1473
1473
|
if (e instanceof F)
|
|
1474
1474
|
throw Error("Object is already pseudo");
|
|
1475
1475
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
@@ -1490,7 +1490,7 @@ $.Ia = function(e) {
|
|
|
1490
1490
|
}, !!t);
|
|
1491
1491
|
}
|
|
1492
1492
|
if (Array.isArray(e)) {
|
|
1493
|
-
t =
|
|
1493
|
+
t = Be(this);
|
|
1494
1494
|
for (var n = 0; n < e.length; n++)
|
|
1495
1495
|
n in e && this.g(t, n, this.Ia(e[n]));
|
|
1496
1496
|
return t;
|
|
@@ -1500,14 +1500,14 @@ $.Ia = function(e) {
|
|
|
1500
1500
|
this.g(t, n, this.Ia(e[n]));
|
|
1501
1501
|
return t;
|
|
1502
1502
|
};
|
|
1503
|
-
|
|
1503
|
+
B.R = function(e, t) {
|
|
1504
1504
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1505
1505
|
return e;
|
|
1506
1506
|
if (!(e instanceof F))
|
|
1507
1507
|
throw Error("Object is not pseudo");
|
|
1508
|
-
if (
|
|
1508
|
+
if (q(this, e, this.I))
|
|
1509
1509
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
1510
|
-
if (
|
|
1510
|
+
if (q(this, e, this.$))
|
|
1511
1511
|
return new Date(e.data.valueOf());
|
|
1512
1512
|
t = t || {
|
|
1513
1513
|
hb: [],
|
|
@@ -1516,7 +1516,7 @@ $.R = function(e, t) {
|
|
|
1516
1516
|
var r = t.hb.indexOf(e);
|
|
1517
1517
|
if (r !== -1)
|
|
1518
1518
|
return t.Sa[r];
|
|
1519
|
-
if (t.hb.push(e),
|
|
1519
|
+
if (t.hb.push(e), q(this, e, this.qa)) {
|
|
1520
1520
|
r = [], t.Sa.push(r);
|
|
1521
1521
|
for (var n = this.G(e, "length"), i = 0; i < n; i++)
|
|
1522
1522
|
mt(this, e, i) && (r[i] = this.R(this.G(e, i), t));
|
|
@@ -1531,7 +1531,7 @@ $.R = function(e, t) {
|
|
|
1531
1531
|
return t.hb.pop(), t.Sa.pop(), r;
|
|
1532
1532
|
};
|
|
1533
1533
|
function pe(e, t) {
|
|
1534
|
-
for (var r =
|
|
1534
|
+
for (var r = Be(e), n = Object.getOwnPropertyNames(t), i = 0; i < n.length; i++)
|
|
1535
1535
|
e.g(r, n[i], t[n[i]]);
|
|
1536
1536
|
return r;
|
|
1537
1537
|
}
|
|
@@ -1552,15 +1552,15 @@ function ge(e, t) {
|
|
|
1552
1552
|
}
|
|
1553
1553
|
return t ? t.xa : null;
|
|
1554
1554
|
}
|
|
1555
|
-
|
|
1555
|
+
B.G = function(e, t) {
|
|
1556
1556
|
if (this.P)
|
|
1557
1557
|
throw Error("Getter not supported in that context");
|
|
1558
|
-
if (t = String(t), e != null ||
|
|
1558
|
+
if (t = String(t), e != null || k(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof F))
|
|
1559
1559
|
throw TypeError("Expecting native value or pseudo object");
|
|
1560
1560
|
if (t === "length") {
|
|
1561
|
-
if (
|
|
1561
|
+
if (q(this, e, this.J))
|
|
1562
1562
|
return String(e).length;
|
|
1563
|
-
} else if (64 > t.charCodeAt(0) &&
|
|
1563
|
+
} else if (64 > t.charCodeAt(0) && q(this, e, this.J)) {
|
|
1564
1564
|
var r = qe(t);
|
|
1565
1565
|
if (!isNaN(r) && r < String(e).length)
|
|
1566
1566
|
return String(e)[r];
|
|
@@ -1573,9 +1573,9 @@ $.G = function(e, t) {
|
|
|
1573
1573
|
function mt(e, t, r) {
|
|
1574
1574
|
if (!(t instanceof F))
|
|
1575
1575
|
throw TypeError("Primitive data type has no properties");
|
|
1576
|
-
if (r = String(r), r === "length" &&
|
|
1576
|
+
if (r = String(r), r === "length" && q(e, t, e.J))
|
|
1577
1577
|
return !0;
|
|
1578
|
-
if (
|
|
1578
|
+
if (q(e, t, e.J)) {
|
|
1579
1579
|
var n = qe(r);
|
|
1580
1580
|
if (!isNaN(n) && n < String(t).length)
|
|
1581
1581
|
return !0;
|
|
@@ -1586,18 +1586,18 @@ function mt(e, t, r) {
|
|
|
1586
1586
|
while (t = ge(e, t));
|
|
1587
1587
|
return !1;
|
|
1588
1588
|
}
|
|
1589
|
-
|
|
1589
|
+
B.g = function(e, t, r, n) {
|
|
1590
1590
|
if (this.Ka)
|
|
1591
1591
|
throw Error("Setter not supported in that context");
|
|
1592
|
-
if (t = String(t), e != null ||
|
|
1592
|
+
if (t = String(t), e != null || k(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof F))
|
|
1593
1593
|
throw TypeError("Expecting native value or pseudo object");
|
|
1594
|
-
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) &&
|
|
1594
|
+
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) && k(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1595
1595
|
var i = !this.o || on(this).S;
|
|
1596
1596
|
if (e instanceof F) {
|
|
1597
|
-
if (
|
|
1597
|
+
if (q(this, e, this.J)) {
|
|
1598
1598
|
var a = qe(t);
|
|
1599
1599
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
1600
|
-
i &&
|
|
1600
|
+
i && k(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1601
1601
|
return;
|
|
1602
1602
|
}
|
|
1603
1603
|
}
|
|
@@ -1608,7 +1608,7 @@ $.g = function(e, t, r, n) {
|
|
|
1608
1608
|
return;
|
|
1609
1609
|
r = n.value;
|
|
1610
1610
|
}
|
|
1611
|
-
if (r = en(r), isNaN(r) &&
|
|
1611
|
+
if (r = en(r), isNaN(r) && k(this, this.ob, "Invalid array length"), r < a)
|
|
1612
1612
|
for (s in e.h) {
|
|
1613
1613
|
var s = qe(s);
|
|
1614
1614
|
!isNaN(s) && r <= s && delete e.h[s];
|
|
@@ -1621,7 +1621,7 @@ $.g = function(e, t, r, n) {
|
|
|
1621
1621
|
try {
|
|
1622
1622
|
Object.defineProperty(e.h, t, i);
|
|
1623
1623
|
} catch {
|
|
1624
|
-
|
|
1624
|
+
k(this, this.j, "Cannot redefine property: " + t);
|
|
1625
1625
|
}
|
|
1626
1626
|
"get" in n && !n.get && delete e.V[t], "set" in n && !n.set && delete e.Y[t];
|
|
1627
1627
|
} else {
|
|
@@ -1635,30 +1635,30 @@ $.g = function(e, t, r, n) {
|
|
|
1635
1635
|
if (n.Y && n.Y[t])
|
|
1636
1636
|
return this.Ka = !0, n.Y[t];
|
|
1637
1637
|
if (n.V && n.V[t])
|
|
1638
|
-
i &&
|
|
1638
|
+
i && k(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1639
1639
|
else
|
|
1640
1640
|
try {
|
|
1641
1641
|
e.h[t] = r;
|
|
1642
1642
|
} catch {
|
|
1643
|
-
i &&
|
|
1643
|
+
i && k(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1644
1644
|
}
|
|
1645
1645
|
}
|
|
1646
1646
|
else
|
|
1647
|
-
i &&
|
|
1647
|
+
i && k(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1648
1648
|
} else
|
|
1649
|
-
i &&
|
|
1649
|
+
i && k(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1650
1650
|
};
|
|
1651
|
-
|
|
1651
|
+
B.g.ac = function() {
|
|
1652
1652
|
throw Error("Placeholder getter");
|
|
1653
1653
|
};
|
|
1654
|
-
|
|
1654
|
+
B.g.bc = function() {
|
|
1655
1655
|
throw Error("Placeholder setter");
|
|
1656
1656
|
};
|
|
1657
1657
|
function J(e, t, r, n) {
|
|
1658
|
-
e.g(t.h.prototype, r, e.i(n, !1),
|
|
1658
|
+
e.g(t.h.prototype, r, e.i(n, !1), S);
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1661
|
-
e.g(t.h.prototype, r, e.ub(n),
|
|
1660
|
+
function Ye(e, t, r, n) {
|
|
1661
|
+
e.g(t.h.prototype, r, e.ub(n), S);
|
|
1662
1662
|
}
|
|
1663
1663
|
function on(e) {
|
|
1664
1664
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
@@ -1688,15 +1688,15 @@ function sn(e, t) {
|
|
|
1688
1688
|
}
|
|
1689
1689
|
if (r === e.N && mt(e, r.object, t))
|
|
1690
1690
|
return e.G(r.object, t);
|
|
1691
|
-
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" ||
|
|
1691
|
+
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || k(e, e.pb, t + " is not defined");
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1693
|
+
function vr(e, t, r) {
|
|
1694
1694
|
for (var n = on(e), i = n.S; n && n !== e.N; ) {
|
|
1695
1695
|
if (t in n.object.h) {
|
|
1696
1696
|
try {
|
|
1697
1697
|
n.object.h[t] = r;
|
|
1698
1698
|
} catch {
|
|
1699
|
-
i &&
|
|
1699
|
+
i && k(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1700
1700
|
}
|
|
1701
1701
|
return;
|
|
1702
1702
|
}
|
|
@@ -1704,7 +1704,7 @@ function yr(e, t, r) {
|
|
|
1704
1704
|
}
|
|
1705
1705
|
if (n === e.N && (!i || mt(e, n.object, t)))
|
|
1706
1706
|
return e.g(n.object, t, r);
|
|
1707
|
-
|
|
1707
|
+
k(e, e.pb, t + " is not defined");
|
|
1708
1708
|
}
|
|
1709
1709
|
function Qe(e, t, r) {
|
|
1710
1710
|
if (t.jb)
|
|
@@ -1752,19 +1752,19 @@ function Qe(e, t, r) {
|
|
|
1752
1752
|
t.jb = n;
|
|
1753
1753
|
}
|
|
1754
1754
|
for (s in n)
|
|
1755
|
-
n[s] === !0 ? e.g(r.object, s, void 0,
|
|
1755
|
+
n[s] === !0 ? e.g(r.object, s, void 0, Yn) : e.g(r.object, s, rn(e, n[s], r), Yn);
|
|
1756
1756
|
return n;
|
|
1757
1757
|
}
|
|
1758
|
-
function
|
|
1758
|
+
function ve(e) {
|
|
1759
1759
|
return e.o[e.o.length - 1].isConstructor;
|
|
1760
1760
|
}
|
|
1761
1761
|
function ln(e, t) {
|
|
1762
|
-
return t[0] ===
|
|
1762
|
+
return t[0] === _e ? sn(e, t[1]) : e.G(t[0], t[1]);
|
|
1763
1763
|
}
|
|
1764
1764
|
function cn(e, t, r) {
|
|
1765
|
-
return t[0] ===
|
|
1765
|
+
return t[0] === _e ? vr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1766
1766
|
}
|
|
1767
|
-
function
|
|
1767
|
+
function k(e, t, r) {
|
|
1768
1768
|
throw e.N ? (r !== void 0 && t instanceof F && (t = e.Aa(t), Gt(e, t, r)), nt(e, 4, t), mr) : r === void 0 ? t : r;
|
|
1769
1769
|
}
|
|
1770
1770
|
function nt(e, t, r, n) {
|
|
@@ -1803,7 +1803,7 @@ function nt(e, t, r, n) {
|
|
|
1803
1803
|
} else if (t === 2 && (n ? a.labels && a.labels.indexOf(n) !== -1 : a.W))
|
|
1804
1804
|
return;
|
|
1805
1805
|
}
|
|
1806
|
-
throw
|
|
1806
|
+
throw q(e, r, e.D) ? (t = {
|
|
1807
1807
|
EvalError,
|
|
1808
1808
|
RangeError,
|
|
1809
1809
|
ReferenceError,
|
|
@@ -1812,34 +1812,34 @@ function nt(e, t, r, n) {
|
|
|
1812
1812
|
URIError
|
|
1813
1813
|
}, 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;
|
|
1814
1814
|
}
|
|
1815
|
-
function
|
|
1815
|
+
function re(e, t) {
|
|
1816
1816
|
switch (t.type) {
|
|
1817
1817
|
case "ArrayExpression":
|
|
1818
1818
|
return "[...]";
|
|
1819
1819
|
case "BinaryExpression":
|
|
1820
1820
|
case "LogicalExpression":
|
|
1821
|
-
return
|
|
1821
|
+
return re(e, t.left) + " " + t.operator + " " + re(e, t.right);
|
|
1822
1822
|
case "CallExpression":
|
|
1823
|
-
return
|
|
1823
|
+
return re(e, t.callee) + "(...)";
|
|
1824
1824
|
case "ConditionalExpression":
|
|
1825
|
-
return
|
|
1825
|
+
return re(e, t.test) + " ? " + re(e, t.da) + " : " + re(e, t.alternate);
|
|
1826
1826
|
case "Identifier":
|
|
1827
1827
|
return t.name;
|
|
1828
1828
|
case "Literal":
|
|
1829
1829
|
return t.raw;
|
|
1830
1830
|
case "MemberExpression":
|
|
1831
|
-
var r =
|
|
1832
|
-
return e =
|
|
1831
|
+
var r = re(e, t.object);
|
|
1832
|
+
return e = re(e, t.Wa), t.bb ? r + "[" + e + "]" : r + "." + e;
|
|
1833
1833
|
case "NewExpression":
|
|
1834
|
-
return "new " +
|
|
1834
|
+
return "new " + re(e, t.callee) + "(...)";
|
|
1835
1835
|
case "ObjectExpression":
|
|
1836
1836
|
return "{...}";
|
|
1837
1837
|
case "ThisExpression":
|
|
1838
1838
|
return "this";
|
|
1839
1839
|
case "UnaryExpression":
|
|
1840
|
-
return t.operator + " " +
|
|
1840
|
+
return t.operator + " " + re(e, t.K);
|
|
1841
1841
|
case "UpdateExpression":
|
|
1842
|
-
return r =
|
|
1842
|
+
return r = re(e, t.K), t.prefix ? t.operator + r : r + t.operator;
|
|
1843
1843
|
}
|
|
1844
1844
|
return "???";
|
|
1845
1845
|
}
|
|
@@ -1852,15 +1852,15 @@ function qn(e, t, r) {
|
|
|
1852
1852
|
s.type = "CallExpression", n = n.scope;
|
|
1853
1853
|
} else {
|
|
1854
1854
|
try {
|
|
1855
|
-
var f =
|
|
1856
|
-
} catch (
|
|
1857
|
-
|
|
1855
|
+
var f = Ue(String(a), "taskCode" + e.ic++);
|
|
1856
|
+
} catch (g) {
|
|
1857
|
+
k(e, e.T, "Invalid code: " + g.message);
|
|
1858
1858
|
}
|
|
1859
1859
|
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0], pt(s, n ? n.start : void 0, n ? n.end : void 0), n = e.N, i.length = 0;
|
|
1860
1860
|
}
|
|
1861
|
-
return t = new mi(u, i, n, s, t ? r : -1),
|
|
1861
|
+
return t = new mi(u, i, n, s, t ? r : -1), yr(e, t, r), t.Db;
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1863
|
+
function yr(e, t, r) {
|
|
1864
1864
|
t.time = Date.now() + r, e.ca.push(t), e.ca.sort(function(n, i) {
|
|
1865
1865
|
return n.time - i.time;
|
|
1866
1866
|
});
|
|
@@ -1877,28 +1877,28 @@ function rt(e, t, r) {
|
|
|
1877
1877
|
throw Error("Unexpected call to createGetter");
|
|
1878
1878
|
e.P = !1, r = Array.isArray(r) ? r[0] : r;
|
|
1879
1879
|
var n = e.ya();
|
|
1880
|
-
return n.type = "CallExpression", e = new
|
|
1880
|
+
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;
|
|
1881
1881
|
}
|
|
1882
1882
|
function un(e, t, r, n) {
|
|
1883
1883
|
if (!e.Ka)
|
|
1884
1884
|
throw Error("Unexpected call to createSetter");
|
|
1885
1885
|
e.Ka = !1, r = Array.isArray(r) ? r[0] : e.Na;
|
|
1886
1886
|
var i = e.ya();
|
|
1887
|
-
return i.type = "CallExpression", e = new
|
|
1887
|
+
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;
|
|
1888
1888
|
}
|
|
1889
|
-
function
|
|
1889
|
+
function Vt(e, t) {
|
|
1890
1890
|
return t == null ? e.Na : t instanceof F ? t : (e = e.s(ge(e, t)), e.data = t, e);
|
|
1891
1891
|
}
|
|
1892
|
-
|
|
1892
|
+
B.Xb = function() {
|
|
1893
1893
|
return this.N;
|
|
1894
1894
|
};
|
|
1895
|
-
|
|
1895
|
+
B.Yb = function() {
|
|
1896
1896
|
return this.o;
|
|
1897
1897
|
};
|
|
1898
|
-
|
|
1898
|
+
B.ec = function(e) {
|
|
1899
1899
|
this.o = e;
|
|
1900
1900
|
};
|
|
1901
|
-
function
|
|
1901
|
+
function w(e, t) {
|
|
1902
1902
|
this.node = e, this.scope = t;
|
|
1903
1903
|
}
|
|
1904
1904
|
function xr(e, t, r) {
|
|
@@ -1907,17 +1907,17 @@ function xr(e, t, r) {
|
|
|
1907
1907
|
function F(e) {
|
|
1908
1908
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1909
1909
|
}
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
if (!
|
|
1910
|
+
B = F.prototype;
|
|
1911
|
+
B.xa = null;
|
|
1912
|
+
B.H = "Object";
|
|
1913
|
+
B.data = null;
|
|
1914
|
+
B.toString = function() {
|
|
1915
|
+
if (!Je)
|
|
1916
1916
|
return "[object Interpreter.Object]";
|
|
1917
1917
|
if (!(this instanceof F))
|
|
1918
1918
|
return String(this);
|
|
1919
1919
|
if (this.H === "Array") {
|
|
1920
|
-
var e =
|
|
1920
|
+
var e = Jn;
|
|
1921
1921
|
e.push(this);
|
|
1922
1922
|
try {
|
|
1923
1923
|
var t = [], r = this.h.length, n = !1;
|
|
@@ -1933,7 +1933,7 @@ $.toString = function() {
|
|
|
1933
1933
|
return t.join(",");
|
|
1934
1934
|
}
|
|
1935
1935
|
if (this.H === "Error") {
|
|
1936
|
-
if (e =
|
|
1936
|
+
if (e = Jn, e.indexOf(this) !== -1)
|
|
1937
1937
|
return "[object Error]";
|
|
1938
1938
|
r = this;
|
|
1939
1939
|
do
|
|
@@ -1959,8 +1959,8 @@ $.toString = function() {
|
|
|
1959
1959
|
}
|
|
1960
1960
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1961
1961
|
};
|
|
1962
|
-
|
|
1963
|
-
return !
|
|
1962
|
+
B.valueOf = function() {
|
|
1963
|
+
return !Je || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1964
1964
|
};
|
|
1965
1965
|
function mi(e, t, r, n, i) {
|
|
1966
1966
|
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++gi, this.time = 0;
|
|
@@ -1969,18 +1969,18 @@ var gi = 0;
|
|
|
1969
1969
|
m.prototype.stepArrayExpression = function(e, t, r) {
|
|
1970
1970
|
r = r.elements;
|
|
1971
1971
|
var n = t.A || 0;
|
|
1972
|
-
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa =
|
|
1972
|
+
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa = Be(this), t.Oa.h.length = r.length); n < r.length; ) {
|
|
1973
1973
|
if (r[n])
|
|
1974
|
-
return t.A = n, new
|
|
1974
|
+
return t.A = n, new w(r[n], t.scope);
|
|
1975
1975
|
n++;
|
|
1976
1976
|
}
|
|
1977
1977
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
1978
1978
|
};
|
|
1979
1979
|
m.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
1980
1980
|
if (!t.ja)
|
|
1981
|
-
return t.ja = !0, t = new
|
|
1981
|
+
return t.ja = !0, t = new w(r.left, t.scope), t.sa = !0, t;
|
|
1982
1982
|
if (!t.Da)
|
|
1983
|
-
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, rt(this, e, t.Fa)) : (t.Da = !0, r.operator === "=" && r.left.type === "Identifier" && (t.Pa = r.left.name), new
|
|
1983
|
+
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, rt(this, e, t.Fa)) : (t.Da = !0, r.operator === "=" && r.left.type === "Identifier" && (t.Pa = r.left.name), new w(r.right, t.scope));
|
|
1984
1984
|
if (t.ta)
|
|
1985
1985
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1986
1986
|
else {
|
|
@@ -2032,9 +2032,9 @@ m.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
|
2032
2032
|
};
|
|
2033
2033
|
m.prototype.stepBinaryExpression = function(e, t, r) {
|
|
2034
2034
|
if (!t.ja)
|
|
2035
|
-
return t.ja = !0, new
|
|
2035
|
+
return t.ja = !0, new w(r.left, t.scope);
|
|
2036
2036
|
if (!t.Da)
|
|
2037
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2037
|
+
return t.Da = !0, t.ma = t.value, new w(r.right, t.scope);
|
|
2038
2038
|
e.pop();
|
|
2039
2039
|
var n = t.ma;
|
|
2040
2040
|
switch (t = t.value, r.operator) {
|
|
@@ -2096,10 +2096,10 @@ m.prototype.stepBinaryExpression = function(e, t, r) {
|
|
|
2096
2096
|
r = n >>> t;
|
|
2097
2097
|
break;
|
|
2098
2098
|
case "in":
|
|
2099
|
-
t instanceof F ||
|
|
2099
|
+
t instanceof F || k(this, this.j, "'in' expects an object, not '" + t + "'"), r = mt(this, t, n);
|
|
2100
2100
|
break;
|
|
2101
2101
|
case "instanceof":
|
|
2102
|
-
|
|
2102
|
+
q(this, t, this.O) || k(this, this.j, "'instanceof' expects an object, not '" + t + "'"), r = n instanceof F ? q(this, n, t) : !1;
|
|
2103
2103
|
break;
|
|
2104
2104
|
default:
|
|
2105
2105
|
throw SyntaxError("Unknown binary operator: " + r.operator);
|
|
@@ -2109,7 +2109,7 @@ m.prototype.stepBinaryExpression = function(e, t, r) {
|
|
|
2109
2109
|
m.prototype.stepBlockStatement = function(e, t, r) {
|
|
2110
2110
|
var n = t.A || 0;
|
|
2111
2111
|
if (r = r.body[n])
|
|
2112
|
-
return t.A = n + 1, new
|
|
2112
|
+
return t.A = n + 1, new w(r, t.scope);
|
|
2113
2113
|
e.pop();
|
|
2114
2114
|
};
|
|
2115
2115
|
m.prototype.stepBreakStatement = function(e, t, r) {
|
|
@@ -2119,14 +2119,14 @@ m.prototype.Hb = 0;
|
|
|
2119
2119
|
m.prototype.stepCallExpression = function(e, t, r) {
|
|
2120
2120
|
if (!t.ia) {
|
|
2121
2121
|
t.ia = 1;
|
|
2122
|
-
var n = new
|
|
2122
|
+
var n = new w(r.callee, t.scope);
|
|
2123
2123
|
return n.sa = !0, n;
|
|
2124
2124
|
}
|
|
2125
2125
|
if (t.ia === 1) {
|
|
2126
2126
|
t.ia = 2;
|
|
2127
2127
|
var i = t.value;
|
|
2128
2128
|
if (Array.isArray(i)) {
|
|
2129
|
-
if (t.U = ln(this, i), i[0] ===
|
|
2129
|
+
if (t.U = ln(this, i), i[0] === _e ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2130
2130
|
return t.ia = 1, rt(this, i, t.value);
|
|
2131
2131
|
} else
|
|
2132
2132
|
t.U = i;
|
|
@@ -2134,10 +2134,10 @@ m.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2134
2134
|
}
|
|
2135
2135
|
if (i = t.U, !t.Qa) {
|
|
2136
2136
|
if (t.A !== 0 && t.F.push(t.value), r.arguments[t.A])
|
|
2137
|
-
return new
|
|
2137
|
+
return new w(r.arguments[t.A++], t.scope);
|
|
2138
2138
|
if (r.type === "NewExpression") {
|
|
2139
|
-
if (i instanceof F && !i.Ab ||
|
|
2140
|
-
t.B =
|
|
2139
|
+
if (i instanceof F && !i.Ab || k(this, this.j, re(this, r.callee) + " is not a constructor"), i === this.qa)
|
|
2140
|
+
t.B = Be(this);
|
|
2141
2141
|
else {
|
|
2142
2142
|
var a = i.h.prototype;
|
|
2143
2143
|
(typeof a != "object" || a === null) && (a = this.M), t.B = this.s(a);
|
|
@@ -2149,44 +2149,44 @@ m.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2149
2149
|
if (t.eb)
|
|
2150
2150
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2151
2151
|
else {
|
|
2152
|
-
if (t.eb = !0, i instanceof F ||
|
|
2153
|
-
for (r = zt(this, e.body, i.Va), n =
|
|
2152
|
+
if (t.eb = !0, i instanceof F || k(this, this.j, re(this, r.callee) + " is not a function"), e = i.node) {
|
|
2153
|
+
for (r = zt(this, e.body, i.Va), n = Be(this), i = 0; i < t.F.length; i++)
|
|
2154
2154
|
this.g(n, i, t.F[i]);
|
|
2155
2155
|
for (this.g(r.object, "arguments", n), i = 0; i < e.oa.length; i++)
|
|
2156
2156
|
this.g(r.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2157
|
-
return r.S || (t.B =
|
|
2157
|
+
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);
|
|
2158
2158
|
}
|
|
2159
2159
|
if (i.eval)
|
|
2160
2160
|
if (i = t.F[0], typeof i != "string")
|
|
2161
2161
|
t.value = i;
|
|
2162
2162
|
else {
|
|
2163
2163
|
try {
|
|
2164
|
-
n =
|
|
2164
|
+
n = Ue(String(i), "eval" + this.Hb++);
|
|
2165
2165
|
} catch (u) {
|
|
2166
|
-
|
|
2166
|
+
k(this, this.T, "Invalid code: " + u.message);
|
|
2167
2167
|
}
|
|
2168
|
-
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body, pt(i, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r = zt(this, n, r) : Qe(this, n, r), this.value = void 0, new
|
|
2168
|
+
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body, pt(i, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r = zt(this, n, r) : Qe(this, n, r), this.value = void 0, new w(i, r);
|
|
2169
2169
|
}
|
|
2170
2170
|
else if (i.Ta)
|
|
2171
|
-
t.scope.S || (t.B =
|
|
2171
|
+
t.scope.S || (t.B = Vt(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
2172
2172
|
else if (i.Za) {
|
|
2173
2173
|
var s = this;
|
|
2174
2174
|
n = i.Za.length - 1, n = t.F.concat(Array(n)).slice(0, n), n.push(function(u) {
|
|
2175
2175
|
t.value = u, s.za = !1;
|
|
2176
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2176
|
+
}), this.za = !0, t.scope.S || (t.B = Vt(this, t.B)), i.Za.apply(t.B, n);
|
|
2177
2177
|
} else
|
|
2178
|
-
|
|
2178
|
+
k(this, this.j, re(this, r.callee) + " is not callable");
|
|
2179
2179
|
}
|
|
2180
2180
|
};
|
|
2181
2181
|
m.prototype.stepConditionalExpression = function(e, t, r) {
|
|
2182
2182
|
var n = t.na || 0;
|
|
2183
2183
|
if (n === 0)
|
|
2184
|
-
return t.na = 1, new
|
|
2184
|
+
return t.na = 1, new w(r.test, t.scope);
|
|
2185
2185
|
if (n === 1) {
|
|
2186
2186
|
if (t.na = 2, (n = !!t.value) && r.da)
|
|
2187
|
-
return new
|
|
2187
|
+
return new w(r.da, t.scope);
|
|
2188
2188
|
if (!n && r.alternate)
|
|
2189
|
-
return new
|
|
2189
|
+
return new w(r.alternate, t.scope);
|
|
2190
2190
|
this.value = void 0;
|
|
2191
2191
|
}
|
|
2192
2192
|
e.pop(), r.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
@@ -2199,11 +2199,11 @@ m.prototype.stepDebuggerStatement = function(e) {
|
|
|
2199
2199
|
};
|
|
2200
2200
|
m.prototype.stepDoWhileStatement = function(e, t, r) {
|
|
2201
2201
|
if (r.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2202
|
-
return t.ga = !0, new
|
|
2202
|
+
return t.ga = !0, new w(r.test, t.scope);
|
|
2203
2203
|
if (!t.value)
|
|
2204
2204
|
e.pop();
|
|
2205
2205
|
else if (r.body)
|
|
2206
|
-
return t.ga = !1, t.W = !0, new
|
|
2206
|
+
return t.ga = !1, t.W = !0, new w(r.body, t.scope);
|
|
2207
2207
|
};
|
|
2208
2208
|
m.prototype.stepEmptyStatement = function(e) {
|
|
2209
2209
|
e.pop();
|
|
@@ -2211,19 +2211,19 @@ m.prototype.stepEmptyStatement = function(e) {
|
|
|
2211
2211
|
m.prototype.stepEvalProgram_ = function(e, t, r) {
|
|
2212
2212
|
var n = t.A || 0;
|
|
2213
2213
|
if (r = r.body[n])
|
|
2214
|
-
return t.A = n + 1, new
|
|
2214
|
+
return t.A = n + 1, new w(r, t.scope);
|
|
2215
2215
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2216
2216
|
};
|
|
2217
2217
|
m.prototype.stepExpressionStatement = function(e, t, r) {
|
|
2218
2218
|
if (!t.ka)
|
|
2219
|
-
return this.value = void 0, t.ka = !0, new
|
|
2219
|
+
return this.value = void 0, t.ka = !0, new w(r.la, t.scope);
|
|
2220
2220
|
e.pop(), this.value = t.value;
|
|
2221
2221
|
};
|
|
2222
2222
|
m.prototype.stepForInStatement = function(e, t, r) {
|
|
2223
2223
|
if (!t.Ub && (t.Ub = !0, r.left.fa && r.left.fa[0].ua))
|
|
2224
|
-
return t.scope.S &&
|
|
2224
|
+
return t.scope.S && k(this, this.T, "for-in loop variable declaration may not have an initializer"), new w(r.left, t.scope);
|
|
2225
2225
|
if (!t.Ca)
|
|
2226
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2226
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new w(r.right, t.scope);
|
|
2227
2227
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2228
2228
|
e:
|
|
2229
2229
|
for (; ; ) {
|
|
@@ -2251,33 +2251,33 @@ m.prototype.stepForInStatement = function(e, t, r) {
|
|
|
2251
2251
|
}
|
|
2252
2252
|
if (!t.wb)
|
|
2253
2253
|
if (t.wb = !0, e = r.left, e.type === "VariableDeclaration")
|
|
2254
|
-
t.pa = [
|
|
2254
|
+
t.pa = [_e, e.fa[0].id.name];
|
|
2255
2255
|
else
|
|
2256
|
-
return t.pa = null, t = new
|
|
2256
|
+
return t.pa = null, t = new w(e, t.scope), t.sa = !0, t;
|
|
2257
2257
|
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n = cn(this, t.pa, e)))
|
|
2258
2258
|
return un(this, n, t.pa, e);
|
|
2259
2259
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, r.body)
|
|
2260
|
-
return new
|
|
2260
|
+
return new w(r.body, t.scope);
|
|
2261
2261
|
};
|
|
2262
2262
|
m.prototype.stepForStatement = function(e, t, r) {
|
|
2263
2263
|
switch (t.na) {
|
|
2264
2264
|
default:
|
|
2265
2265
|
if (t.na = 1, r.ua)
|
|
2266
|
-
return new
|
|
2266
|
+
return new w(r.ua, t.scope);
|
|
2267
2267
|
break;
|
|
2268
2268
|
case 1:
|
|
2269
2269
|
if (t.na = 2, r.test)
|
|
2270
|
-
return new
|
|
2270
|
+
return new w(r.test, t.scope);
|
|
2271
2271
|
break;
|
|
2272
2272
|
case 2:
|
|
2273
2273
|
if (t.na = 3, r.test && !t.value)
|
|
2274
2274
|
e.pop();
|
|
2275
2275
|
else
|
|
2276
|
-
return t.W = !0, new
|
|
2276
|
+
return t.W = !0, new w(r.body, t.scope);
|
|
2277
2277
|
break;
|
|
2278
2278
|
case 3:
|
|
2279
2279
|
if (t.na = 1, r.update)
|
|
2280
|
-
return new
|
|
2280
|
+
return new w(r.update, t.scope);
|
|
2281
2281
|
}
|
|
2282
2282
|
};
|
|
2283
2283
|
m.prototype.stepFunctionDeclaration = function(e) {
|
|
@@ -2288,7 +2288,7 @@ m.prototype.stepFunctionExpression = function(e, t, r) {
|
|
|
2288
2288
|
};
|
|
2289
2289
|
m.prototype.stepIdentifier = function(e, t, r) {
|
|
2290
2290
|
if (e.pop(), t.sa)
|
|
2291
|
-
e[e.length - 1].value = [
|
|
2291
|
+
e[e.length - 1].value = [_e, r.name];
|
|
2292
2292
|
else {
|
|
2293
2293
|
if (t = sn(this, r.name), this.P)
|
|
2294
2294
|
return rt(this, t, this.Na);
|
|
@@ -2297,7 +2297,7 @@ m.prototype.stepIdentifier = function(e, t, r) {
|
|
|
2297
2297
|
};
|
|
2298
2298
|
m.prototype.stepIfStatement = m.prototype.stepConditionalExpression;
|
|
2299
2299
|
m.prototype.stepLabeledStatement = function(e, t, r) {
|
|
2300
|
-
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new
|
|
2300
|
+
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new w(r.body, t.scope), t.labels = e, t;
|
|
2301
2301
|
};
|
|
2302
2302
|
m.prototype.stepLiteral = function(e, t, r) {
|
|
2303
2303
|
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,22 +2306,22 @@ m.prototype.stepLogicalExpression = function(e, t, r) {
|
|
|
2306
2306
|
if (r.operator !== "&&" && r.operator !== "||")
|
|
2307
2307
|
throw SyntaxError("Unknown logical operator: " + r.operator);
|
|
2308
2308
|
if (!t.ja)
|
|
2309
|
-
return t.ja = !0, new
|
|
2309
|
+
return t.ja = !0, new w(r.left, t.scope);
|
|
2310
2310
|
if (t.Da)
|
|
2311
2311
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2312
2312
|
else if (r.operator === "&&" && !t.value || r.operator === "||" && t.value)
|
|
2313
2313
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2314
2314
|
else
|
|
2315
|
-
return t.Da = !0, new
|
|
2315
|
+
return t.Da = !0, new w(r.right, t.scope);
|
|
2316
2316
|
};
|
|
2317
2317
|
m.prototype.stepMemberExpression = function(e, t, r) {
|
|
2318
2318
|
if (!t.Ca)
|
|
2319
|
-
return t.Ca = !0, new
|
|
2319
|
+
return t.Ca = !0, new w(r.object, t.scope);
|
|
2320
2320
|
if (r.bb)
|
|
2321
2321
|
if (t.Vb)
|
|
2322
2322
|
r = t.value;
|
|
2323
2323
|
else
|
|
2324
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2324
|
+
return t.u = t.value, t.Vb = !0, new w(r.Wa, t.scope);
|
|
2325
2325
|
else
|
|
2326
2326
|
t.u = t.value, r = r.Wa.name;
|
|
2327
2327
|
if (e.pop(), t.sa)
|
|
@@ -2348,7 +2348,7 @@ m.prototype.stepObjectExpression = function(e, t, r) {
|
|
|
2348
2348
|
a = s.value;
|
|
2349
2349
|
else
|
|
2350
2350
|
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2351
|
-
return t.Pa = a, new
|
|
2351
|
+
return t.Pa = a, new w(i.value, t.scope);
|
|
2352
2352
|
}
|
|
2353
2353
|
for (s in t.Ja)
|
|
2354
2354
|
r = t.Ja[s], "get" in r || "set" in r ? this.g(t.u, s, Ze, {
|
|
@@ -2361,35 +2361,35 @@ m.prototype.stepObjectExpression = function(e, t, r) {
|
|
|
2361
2361
|
};
|
|
2362
2362
|
m.prototype.stepProgram = function(e, t, r) {
|
|
2363
2363
|
if (e = r.body.shift())
|
|
2364
|
-
return t.done = !1, new
|
|
2364
|
+
return t.done = !1, new w(e, t.scope);
|
|
2365
2365
|
t.done = !0;
|
|
2366
2366
|
};
|
|
2367
2367
|
m.prototype.stepReturnStatement = function(e, t, r) {
|
|
2368
2368
|
if (r.K && !t.ka)
|
|
2369
|
-
return t.ka = !0, new
|
|
2369
|
+
return t.ka = !0, new w(r.K, t.scope);
|
|
2370
2370
|
nt(this, 3, t.value);
|
|
2371
2371
|
};
|
|
2372
2372
|
m.prototype.stepSequenceExpression = function(e, t, r) {
|
|
2373
2373
|
var n = t.A || 0;
|
|
2374
2374
|
if (r = r.xb[n])
|
|
2375
|
-
return t.A = n + 1, new
|
|
2375
|
+
return t.A = n + 1, new w(r, t.scope);
|
|
2376
2376
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2377
2377
|
};
|
|
2378
2378
|
m.prototype.stepSwitchStatement = function(e, t, r) {
|
|
2379
2379
|
if (!t.ga)
|
|
2380
|
-
return t.ga = 1, new
|
|
2380
|
+
return t.ga = 1, new w(r.Qb, t.scope);
|
|
2381
2381
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2382
2382
|
var n = t.gb || 0, i = r.tb[n];
|
|
2383
2383
|
if (t.Ha || !i || i.test)
|
|
2384
2384
|
if (i || t.Ha || t.cb === -1)
|
|
2385
2385
|
if (i) {
|
|
2386
2386
|
if (!t.Ha && !t.Fb && i.test)
|
|
2387
|
-
return t.Fb = !0, new
|
|
2387
|
+
return t.Fb = !0, new w(i.test, t.scope);
|
|
2388
2388
|
if (t.Ha || t.value === t.hc) {
|
|
2389
2389
|
t.Ha = !0;
|
|
2390
2390
|
var a = t.A || 0;
|
|
2391
2391
|
if (i.da[a])
|
|
2392
|
-
return t.Zb = !0, t.A = a + 1, new
|
|
2392
|
+
return t.Zb = !0, t.A = a + 1, new w(i.da[a], t.scope);
|
|
2393
2393
|
}
|
|
2394
2394
|
t.Fb = !1, t.A = 0, t.gb = n + 1;
|
|
2395
2395
|
} else {
|
|
@@ -2407,22 +2407,22 @@ m.prototype.stepThisExpression = function(e) {
|
|
|
2407
2407
|
};
|
|
2408
2408
|
m.prototype.stepThrowStatement = function(e, t, r) {
|
|
2409
2409
|
if (t.ka)
|
|
2410
|
-
|
|
2410
|
+
k(this, t.value);
|
|
2411
2411
|
else
|
|
2412
|
-
return t.ka = !0, new
|
|
2412
|
+
return t.ka = !0, new w(r.K, t.scope);
|
|
2413
2413
|
};
|
|
2414
2414
|
m.prototype.stepTryStatement = function(e, t, r) {
|
|
2415
2415
|
if (!t.Rb)
|
|
2416
|
-
return t.Rb = !0, new
|
|
2416
|
+
return t.Rb = !0, new w(r.block, t.scope);
|
|
2417
2417
|
if (t.ea && t.ea.type === 4 && !t.Tb && r.Ea)
|
|
2418
|
-
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
|
|
2418
|
+
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);
|
|
2419
2419
|
if (!t.Sb && r.fb)
|
|
2420
|
-
return t.Sb = !0, new
|
|
2420
|
+
return t.Sb = !0, new w(r.fb, t.scope);
|
|
2421
2421
|
e.pop(), t.ea && nt(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2422
2422
|
};
|
|
2423
2423
|
m.prototype.stepUnaryExpression = function(e, t, r) {
|
|
2424
2424
|
if (!t.ka)
|
|
2425
|
-
return t.ka = !0, e = new
|
|
2425
|
+
return t.ka = !0, e = new w(r.K, t.scope), e.sa = r.operator === "delete", e;
|
|
2426
2426
|
e.pop();
|
|
2427
2427
|
var n = t.value;
|
|
2428
2428
|
switch (r.operator) {
|
|
@@ -2441,11 +2441,11 @@ m.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2441
2441
|
case "delete":
|
|
2442
2442
|
if (r = !0, Array.isArray(n)) {
|
|
2443
2443
|
var i = n[0];
|
|
2444
|
-
i ===
|
|
2444
|
+
i === _e && (i = t.scope), n = String(n[1]);
|
|
2445
2445
|
try {
|
|
2446
2446
|
delete i.h[n];
|
|
2447
2447
|
} catch {
|
|
2448
|
-
t.scope.S ?
|
|
2448
|
+
t.scope.S ? k(this, this.j, "Cannot delete property '" + n + "' of '" + i + "'") : r = !1;
|
|
2449
2449
|
}
|
|
2450
2450
|
}
|
|
2451
2451
|
n = r;
|
|
@@ -2463,7 +2463,7 @@ m.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2463
2463
|
};
|
|
2464
2464
|
m.prototype.stepUpdateExpression = function(e, t, r) {
|
|
2465
2465
|
if (!t.ja)
|
|
2466
|
-
return t.ja = !0, e = new
|
|
2466
|
+
return t.ja = !0, e = new w(r.K, t.scope), e.sa = !0, e;
|
|
2467
2467
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2468
2468
|
var n = ln(this, t.Ga);
|
|
2469
2469
|
if (t.ma = n, this.P)
|
|
@@ -2486,18 +2486,18 @@ m.prototype.stepUpdateExpression = function(e, t, r) {
|
|
|
2486
2486
|
m.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
2487
2487
|
r = r.fa;
|
|
2488
2488
|
var n = t.A || 0, i = r[n];
|
|
2489
|
-
for (t.Bb && i && (
|
|
2489
|
+
for (t.Bb && i && (vr(this, i.id.name, t.value), t.Bb = !1, i = r[++n]); i; ) {
|
|
2490
2490
|
if (i.ua)
|
|
2491
|
-
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new
|
|
2491
|
+
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new w(i.ua, t.scope);
|
|
2492
2492
|
i = r[++n];
|
|
2493
2493
|
}
|
|
2494
2494
|
e.pop();
|
|
2495
2495
|
};
|
|
2496
2496
|
m.prototype.stepWithStatement = function(e, t, r) {
|
|
2497
|
-
return t.Ca ? (e.pop(), e = an(this, t.scope, t.value), new
|
|
2497
|
+
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));
|
|
2498
2498
|
};
|
|
2499
2499
|
m.prototype.stepWhileStatement = m.prototype.stepDoWhileStatement;
|
|
2500
|
-
|
|
2500
|
+
Se.Interpreter = m;
|
|
2501
2501
|
m.prototype.step = m.prototype.lb;
|
|
2502
2502
|
m.prototype.run = m.prototype.Eb;
|
|
2503
2503
|
m.prototype.appendCode = m.prototype.Jb;
|
|
@@ -2513,7 +2513,7 @@ m.prototype.getGlobalScope = m.prototype.Xb;
|
|
|
2513
2513
|
m.prototype.getStateStack = m.prototype.Yb;
|
|
2514
2514
|
m.prototype.setStateStack = m.prototype.ec;
|
|
2515
2515
|
m.VALUE_IN_DESCRIPTOR = Ze;
|
|
2516
|
-
const
|
|
2516
|
+
const vi = (e) => e.split(`
|
|
2517
2517
|
`).map((t) => {
|
|
2518
2518
|
const r = t.trim();
|
|
2519
2519
|
if (t.includes("__awaiter"))
|
|
@@ -2526,7 +2526,7 @@ const yi = (e) => e.split(`
|
|
|
2526
2526
|
${u}
|
|
2527
2527
|
`;
|
|
2528
2528
|
}).filter(Boolean).join(`
|
|
2529
|
-
`), Qn = (e) => e + "JSON",
|
|
2529
|
+
`), Qn = (e) => e + "JSON", yi = ({
|
|
2530
2530
|
builder: e,
|
|
2531
2531
|
context: t,
|
|
2532
2532
|
event: r,
|
|
@@ -2543,41 +2543,41 @@ const yi = (e) => e.split(`
|
|
|
2543
2543
|
context: t,
|
|
2544
2544
|
event: r,
|
|
2545
2545
|
state: u
|
|
2546
|
-
}),
|
|
2547
|
-
const
|
|
2548
|
-
return `var ${
|
|
2546
|
+
}), g = f.map(([E]) => {
|
|
2547
|
+
const P = Qn(E);
|
|
2548
|
+
return `var ${E} = ${P} === undefined ? undefined : JSON.parse(${P});`;
|
|
2549
2549
|
}).join(`
|
|
2550
|
-
`),
|
|
2551
|
-
if (
|
|
2552
|
-
|
|
2550
|
+
`), v = vi(s);
|
|
2551
|
+
if (v === "") {
|
|
2552
|
+
Fe.warn("Skipping evaluation of empty code block.");
|
|
2553
2553
|
return;
|
|
2554
2554
|
}
|
|
2555
|
-
const
|
|
2555
|
+
const b = `
|
|
2556
2556
|
function theFunction() {
|
|
2557
|
-
${
|
|
2557
|
+
${g}
|
|
2558
2558
|
|
|
2559
|
-
${
|
|
2559
|
+
${v}
|
|
2560
2560
|
}
|
|
2561
2561
|
theFunction();
|
|
2562
|
-
`,
|
|
2563
|
-
const
|
|
2564
|
-
a == null || a(
|
|
2565
|
-
},
|
|
2566
|
-
f.forEach(([
|
|
2567
|
-
const
|
|
2568
|
-
|
|
2569
|
-
}),
|
|
2562
|
+
`, _ = (E, P) => {
|
|
2563
|
+
const H = pr(u, E, P);
|
|
2564
|
+
a == null || a(H);
|
|
2565
|
+
}, W = function(E, P) {
|
|
2566
|
+
f.forEach(([H, G]) => {
|
|
2567
|
+
const y = JSON.stringify(G);
|
|
2568
|
+
E.setProperty(P, Qn(H), y);
|
|
2569
|
+
}), E.setProperty(P, "setRootState", E.createNativeFunction(_));
|
|
2570
2570
|
};
|
|
2571
2571
|
try {
|
|
2572
|
-
const
|
|
2573
|
-
return
|
|
2574
|
-
} catch (
|
|
2575
|
-
|
|
2576
|
-
e:
|
|
2572
|
+
const E = new m(b, W);
|
|
2573
|
+
return E.run(), E.pseudoToNative(E.value);
|
|
2574
|
+
} catch (E) {
|
|
2575
|
+
Fe.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2576
|
+
e: E
|
|
2577
2577
|
});
|
|
2578
2578
|
return;
|
|
2579
2579
|
}
|
|
2580
|
-
}, xi = (e) =>
|
|
2580
|
+
}, xi = (e) => Ie() ? Qr(e) : yi(e);
|
|
2581
2581
|
function et({
|
|
2582
2582
|
code: e,
|
|
2583
2583
|
context: t,
|
|
@@ -2588,7 +2588,7 @@ function et({
|
|
|
2588
2588
|
isExpression: s = !0
|
|
2589
2589
|
}) {
|
|
2590
2590
|
if (e === "") {
|
|
2591
|
-
|
|
2591
|
+
Fe.warn("Skipping evaluation of empty code block.");
|
|
2592
2592
|
return;
|
|
2593
2593
|
}
|
|
2594
2594
|
const u = {
|
|
@@ -2605,7 +2605,7 @@ function et({
|
|
|
2605
2605
|
try {
|
|
2606
2606
|
return xi(u);
|
|
2607
2607
|
} catch (f) {
|
|
2608
|
-
|
|
2608
|
+
Fe.error("Failed code evaluation: " + f.message, {
|
|
2609
2609
|
code: e
|
|
2610
2610
|
});
|
|
2611
2611
|
return;
|
|
@@ -2630,14 +2630,14 @@ const bi = ({
|
|
|
2630
2630
|
}
|
|
2631
2631
|
};
|
|
2632
2632
|
for (const u in e.bindings) {
|
|
2633
|
-
const f = e.bindings[u],
|
|
2633
|
+
const f = e.bindings[u], g = et({
|
|
2634
2634
|
code: f,
|
|
2635
2635
|
localState: r,
|
|
2636
2636
|
rootState: n,
|
|
2637
2637
|
rootSetState: i,
|
|
2638
2638
|
context: t
|
|
2639
2639
|
});
|
|
2640
|
-
pr(s, u,
|
|
2640
|
+
pr(s, u, g);
|
|
2641
2641
|
}
|
|
2642
2642
|
return s;
|
|
2643
2643
|
};
|
|
@@ -2658,7 +2658,7 @@ function ft({
|
|
|
2658
2658
|
context: t
|
|
2659
2659
|
}) : s;
|
|
2660
2660
|
}
|
|
2661
|
-
const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"],
|
|
2661
|
+
const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], Lt = (e) => typeof e == "string" && Si.includes(e.toLowerCase()), wi = ({
|
|
2662
2662
|
block: e,
|
|
2663
2663
|
context: t,
|
|
2664
2664
|
registeredComponents: r
|
|
@@ -2700,15 +2700,15 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2700
2700
|
if (!Array.isArray(i))
|
|
2701
2701
|
return;
|
|
2702
2702
|
const a = r.collection.split(".").pop(), s = r.itemName || (a ? a + "Item" : "item");
|
|
2703
|
-
return i.map((f,
|
|
2703
|
+
return i.map((f, g) => ({
|
|
2704
2704
|
context: {
|
|
2705
2705
|
...t,
|
|
2706
2706
|
localState: {
|
|
2707
2707
|
...t.localState,
|
|
2708
|
-
$index:
|
|
2708
|
+
$index: g,
|
|
2709
2709
|
$item: f,
|
|
2710
2710
|
[s]: f,
|
|
2711
|
-
[`$${s}Index`]:
|
|
2711
|
+
[`$${s}Index`]: g
|
|
2712
2712
|
}
|
|
2713
2713
|
},
|
|
2714
2714
|
block: n
|
|
@@ -2759,7 +2759,7 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2759
2759
|
if (typeof n == "string")
|
|
2760
2760
|
return `${Ci(r)}: ${n};`;
|
|
2761
2761
|
}).filter(Ht), Ei = (e) => wr(e).join(`
|
|
2762
|
-
`),
|
|
2762
|
+
`), $t = ({
|
|
2763
2763
|
mediaQuery: e,
|
|
2764
2764
|
className: t,
|
|
2765
2765
|
styles: r
|
|
@@ -2772,7 +2772,7 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2772
2772
|
}` : n;
|
|
2773
2773
|
};
|
|
2774
2774
|
function gt(e) {
|
|
2775
|
-
return /* @__PURE__ */
|
|
2775
|
+
return /* @__PURE__ */ p("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2776
2776
|
}
|
|
2777
2777
|
function dn(e) {
|
|
2778
2778
|
function t() {
|
|
@@ -2787,7 +2787,7 @@ function dn(e) {
|
|
|
2787
2787
|
return Ht(n.hide) ? !n.hide : Ht(n.show) ? n.show : !0;
|
|
2788
2788
|
}
|
|
2789
2789
|
function r() {
|
|
2790
|
-
var
|
|
2790
|
+
var E;
|
|
2791
2791
|
const n = ft({
|
|
2792
2792
|
block: e.block,
|
|
2793
2793
|
localState: e.context.localState,
|
|
@@ -2796,31 +2796,31 @@ function dn(e) {
|
|
|
2796
2796
|
context: e.context.context,
|
|
2797
2797
|
shouldEvaluateBindings: !0
|
|
2798
2798
|
}), i = n.responsiveStyles, a = e.context.content, s = Sr(
|
|
2799
|
-
((
|
|
2800
|
-
), u = i == null ? void 0 : i.large, f = i == null ? void 0 : i.medium,
|
|
2801
|
-
if (!
|
|
2799
|
+
((E = a == null ? void 0 : a.meta) == null ? void 0 : E.breakpoints) || {}
|
|
2800
|
+
), u = i == null ? void 0 : i.large, f = i == null ? void 0 : i.medium, g = i == null ? void 0 : i.small, v = n.id;
|
|
2801
|
+
if (!v)
|
|
2802
2802
|
return "";
|
|
2803
|
-
const
|
|
2804
|
-
className:
|
|
2803
|
+
const b = u ? $t({
|
|
2804
|
+
className: v,
|
|
2805
2805
|
styles: u
|
|
2806
|
-
}) : "",
|
|
2807
|
-
className:
|
|
2806
|
+
}) : "", _ = f ? $t({
|
|
2807
|
+
className: v,
|
|
2808
2808
|
styles: f,
|
|
2809
2809
|
mediaQuery: er(
|
|
2810
2810
|
"medium",
|
|
2811
2811
|
s
|
|
2812
2812
|
)
|
|
2813
|
-
}) : "",
|
|
2814
|
-
className:
|
|
2815
|
-
styles:
|
|
2813
|
+
}) : "", W = g ? $t({
|
|
2814
|
+
className: v,
|
|
2815
|
+
styles: g,
|
|
2816
2816
|
mediaQuery: er(
|
|
2817
2817
|
"small",
|
|
2818
2818
|
s
|
|
2819
2819
|
)
|
|
2820
2820
|
}) : "";
|
|
2821
|
-
return [
|
|
2821
|
+
return [b, _, W].join(" ");
|
|
2822
2822
|
}
|
|
2823
|
-
return /* @__PURE__ */
|
|
2823
|
+
return /* @__PURE__ */ p(N, { children: r() && t() ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(gt, { styles: r() }) }) : null });
|
|
2824
2824
|
}
|
|
2825
2825
|
function Ii(e) {
|
|
2826
2826
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -2890,9 +2890,9 @@ function Oi(e) {
|
|
|
2890
2890
|
}
|
|
2891
2891
|
}
|
|
2892
2892
|
function tr(e) {
|
|
2893
|
-
return /* @__PURE__ */ Z(
|
|
2893
|
+
return /* @__PURE__ */ Z(N, { children: [
|
|
2894
2894
|
" ",
|
|
2895
|
-
e.hasChildren ? /* @__PURE__ */
|
|
2895
|
+
e.hasChildren ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ Z(
|
|
2896
2896
|
e.Wrapper,
|
|
2897
2897
|
{
|
|
2898
2898
|
...ht({
|
|
@@ -2913,7 +2913,7 @@ function tr(e) {
|
|
|
2913
2913
|
" "
|
|
2914
2914
|
]
|
|
2915
2915
|
}
|
|
2916
|
-
) }) : /* @__PURE__ */
|
|
2916
|
+
) }) : /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
2917
2917
|
e.Wrapper,
|
|
2918
2918
|
{
|
|
2919
2919
|
...ht({
|
|
@@ -2934,7 +2934,7 @@ function tr(e) {
|
|
|
2934
2934
|
] });
|
|
2935
2935
|
}
|
|
2936
2936
|
function Pi(e) {
|
|
2937
|
-
return /* @__PURE__ */
|
|
2937
|
+
return /* @__PURE__ */ p(
|
|
2938
2938
|
e.Wrapper,
|
|
2939
2939
|
{
|
|
2940
2940
|
...e.wrapperProps,
|
|
@@ -2983,10 +2983,10 @@ const Ni = ({
|
|
|
2983
2983
|
};
|
|
2984
2984
|
function nr(e) {
|
|
2985
2985
|
var n, i;
|
|
2986
|
-
const [t, r] =
|
|
2986
|
+
const [t, r] = $(
|
|
2987
2987
|
() => e.isInteractive ? Pi : e.componentRef
|
|
2988
2988
|
);
|
|
2989
|
-
return /* @__PURE__ */
|
|
2989
|
+
return /* @__PURE__ */ p(N, { children: e.componentRef ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ Z(
|
|
2990
2990
|
t,
|
|
2991
2991
|
{
|
|
2992
2992
|
...Ni({
|
|
@@ -2999,8 +2999,8 @@ function nr(e) {
|
|
|
2999
2999
|
contextValue: e.context
|
|
3000
3000
|
}),
|
|
3001
3001
|
children: [
|
|
3002
|
-
(n = e.blockChildren) == null ? void 0 : n.map((a) => /* @__PURE__ */
|
|
3003
|
-
|
|
3002
|
+
(n = e.blockChildren) == null ? void 0 : n.map((a) => /* @__PURE__ */ p(
|
|
3003
|
+
vt,
|
|
3004
3004
|
{
|
|
3005
3005
|
block: a,
|
|
3006
3006
|
context: e.context,
|
|
@@ -3008,7 +3008,7 @@ function nr(e) {
|
|
|
3008
3008
|
},
|
|
3009
3009
|
"block-" + a.id
|
|
3010
3010
|
)),
|
|
3011
|
-
(i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */
|
|
3011
|
+
(i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ p(
|
|
3012
3012
|
dn,
|
|
3013
3013
|
{
|
|
3014
3014
|
block: a,
|
|
@@ -3021,9 +3021,9 @@ function nr(e) {
|
|
|
3021
3021
|
) }) : null });
|
|
3022
3022
|
}
|
|
3023
3023
|
function Mi(e) {
|
|
3024
|
-
const [t, r] =
|
|
3025
|
-
return /* @__PURE__ */
|
|
3026
|
-
|
|
3024
|
+
const [t, r] = $(() => e.repeatContext);
|
|
3025
|
+
return /* @__PURE__ */ p(Zt.Provider, { value: t, children: /* @__PURE__ */ p(
|
|
3026
|
+
vt,
|
|
3027
3027
|
{
|
|
3028
3028
|
block: e.block,
|
|
3029
3029
|
context: t,
|
|
@@ -3031,8 +3031,8 @@ function Mi(e) {
|
|
|
3031
3031
|
}
|
|
3032
3032
|
) });
|
|
3033
3033
|
}
|
|
3034
|
-
function
|
|
3035
|
-
var
|
|
3034
|
+
function vt(e) {
|
|
3035
|
+
var v, b, _, W;
|
|
3036
3036
|
function t() {
|
|
3037
3037
|
return wi({
|
|
3038
3038
|
block: e.block,
|
|
@@ -3047,7 +3047,8 @@ function yt(e) {
|
|
|
3047
3047
|
});
|
|
3048
3048
|
}
|
|
3049
3049
|
function n() {
|
|
3050
|
-
|
|
3050
|
+
var E;
|
|
3051
|
+
return (E = e.block.repeat) != null && E.collection ? e.block : ft({
|
|
3051
3052
|
block: e.block,
|
|
3052
3053
|
localState: e.context.localState,
|
|
3053
3054
|
rootState: e.context.rootState,
|
|
@@ -3060,33 +3061,34 @@ function yt(e) {
|
|
|
3060
3061
|
return e.block.tagName || "div";
|
|
3061
3062
|
}
|
|
3062
3063
|
function a() {
|
|
3063
|
-
|
|
3064
|
+
var E, P;
|
|
3065
|
+
return "hide" in n() ? !n().hide : "show" in n() ? n().show : !((E = e.block.repeat) != null && E.collection && !((P = r == null ? void 0 : r()) != null && P.length));
|
|
3064
3066
|
}
|
|
3065
3067
|
function s() {
|
|
3066
|
-
var
|
|
3067
|
-
return !((
|
|
3068
|
+
var P;
|
|
3069
|
+
return !((P = t == null ? void 0 : t()) != null && P.component) && !r() ? n().children ?? [] : [];
|
|
3068
3070
|
}
|
|
3069
3071
|
function u() {
|
|
3070
|
-
var
|
|
3072
|
+
var E, P, H, G, y;
|
|
3071
3073
|
return {
|
|
3072
3074
|
blockChildren: n().children ?? [],
|
|
3073
|
-
componentRef: (
|
|
3075
|
+
componentRef: (E = t == null ? void 0 : t()) == null ? void 0 : E.component,
|
|
3074
3076
|
componentOptions: {
|
|
3075
|
-
...
|
|
3077
|
+
...Jr(n()),
|
|
3076
3078
|
builderContext: e.context,
|
|
3077
|
-
...((
|
|
3079
|
+
...((P = t == null ? void 0 : t()) == null ? void 0 : P.name) === "Symbol" || ((H = t == null ? void 0 : t()) == null ? void 0 : H.name) === "Columns" ? {
|
|
3078
3080
|
builderComponents: e.registeredComponents
|
|
3079
3081
|
} : {}
|
|
3080
3082
|
},
|
|
3081
3083
|
context: f,
|
|
3082
3084
|
registeredComponents: e.registeredComponents,
|
|
3083
3085
|
builderBlock: n(),
|
|
3084
|
-
includeBlockProps: ((
|
|
3085
|
-
isInteractive: !((
|
|
3086
|
+
includeBlockProps: ((G = t == null ? void 0 : t()) == null ? void 0 : G.noWrap) === !0,
|
|
3087
|
+
isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC)
|
|
3086
3088
|
};
|
|
3087
3089
|
}
|
|
3088
|
-
const [f,
|
|
3089
|
-
return /* @__PURE__ */
|
|
3090
|
+
const [f, g] = $(() => e.context);
|
|
3091
|
+
return /* @__PURE__ */ p(N, { children: a() ? /* @__PURE__ */ p(N, { children: (v = t == null ? void 0 : t()) != null && v.noWrap ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
3090
3092
|
nr,
|
|
3091
3093
|
{
|
|
3092
3094
|
componentRef: u().componentRef,
|
|
@@ -3098,8 +3100,8 @@ function yt(e) {
|
|
|
3098
3100
|
includeBlockProps: u().includeBlockProps,
|
|
3099
3101
|
isInteractive: u().isInteractive
|
|
3100
3102
|
}
|
|
3101
|
-
) }) : /* @__PURE__ */ Z(
|
|
3102
|
-
|
|
3103
|
+
) }) : /* @__PURE__ */ Z(N, { children: [
|
|
3104
|
+
Lt(i()) ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
3103
3105
|
tr,
|
|
3104
3106
|
{
|
|
3105
3107
|
Wrapper: i(),
|
|
@@ -3108,16 +3110,16 @@ function yt(e) {
|
|
|
3108
3110
|
hasChildren: !1
|
|
3109
3111
|
}
|
|
3110
3112
|
) }) : null,
|
|
3111
|
-
!
|
|
3113
|
+
!Lt(i()) && r() ? /* @__PURE__ */ p(N, { children: (b = r()) == null ? void 0 : b.map((E, P) => /* @__PURE__ */ p(
|
|
3112
3114
|
Mi,
|
|
3113
3115
|
{
|
|
3114
|
-
repeatContext:
|
|
3115
|
-
block:
|
|
3116
|
+
repeatContext: E.context,
|
|
3117
|
+
block: E.block,
|
|
3116
3118
|
registeredComponents: e.registeredComponents
|
|
3117
3119
|
},
|
|
3118
|
-
|
|
3120
|
+
P
|
|
3119
3121
|
)) }) : null,
|
|
3120
|
-
!
|
|
3122
|
+
!Lt(i()) && !r() ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ Z(
|
|
3121
3123
|
tr,
|
|
3122
3124
|
{
|
|
3123
3125
|
Wrapper: i(),
|
|
@@ -3125,7 +3127,7 @@ function yt(e) {
|
|
|
3125
3127
|
context: e.context,
|
|
3126
3128
|
hasChildren: !0,
|
|
3127
3129
|
children: [
|
|
3128
|
-
/* @__PURE__ */
|
|
3130
|
+
/* @__PURE__ */ p(
|
|
3129
3131
|
nr,
|
|
3130
3132
|
{
|
|
3131
3133
|
componentRef: u().componentRef,
|
|
@@ -3138,22 +3140,22 @@ function yt(e) {
|
|
|
3138
3140
|
isInteractive: u().isInteractive
|
|
3139
3141
|
}
|
|
3140
3142
|
),
|
|
3141
|
-
(
|
|
3142
|
-
|
|
3143
|
+
(_ = s()) == null ? void 0 : _.map((E) => /* @__PURE__ */ p(
|
|
3144
|
+
vt,
|
|
3143
3145
|
{
|
|
3144
|
-
block:
|
|
3146
|
+
block: E,
|
|
3145
3147
|
context: f,
|
|
3146
3148
|
registeredComponents: e.registeredComponents
|
|
3147
3149
|
},
|
|
3148
|
-
"block-" +
|
|
3150
|
+
"block-" + E.id
|
|
3149
3151
|
)),
|
|
3150
|
-
(
|
|
3152
|
+
(W = s()) == null ? void 0 : W.map((E) => /* @__PURE__ */ p(
|
|
3151
3153
|
dn,
|
|
3152
3154
|
{
|
|
3153
|
-
block:
|
|
3155
|
+
block: E,
|
|
3154
3156
|
context: f
|
|
3155
3157
|
},
|
|
3156
|
-
"block-style-" +
|
|
3158
|
+
"block-style-" + E.id
|
|
3157
3159
|
))
|
|
3158
3160
|
]
|
|
3159
3161
|
}
|
|
@@ -3167,7 +3169,7 @@ function Fi(e) {
|
|
|
3167
3169
|
}
|
|
3168
3170
|
function r() {
|
|
3169
3171
|
var i, a;
|
|
3170
|
-
|
|
3172
|
+
Ee() && !((i = e.blocks) != null && i.length) && ((a = window.parent) == null || a.postMessage(
|
|
3171
3173
|
{
|
|
3172
3174
|
type: "builder.clickEmptyBlocks",
|
|
3173
3175
|
data: {
|
|
@@ -3180,7 +3182,7 @@ function Fi(e) {
|
|
|
3180
3182
|
}
|
|
3181
3183
|
function n() {
|
|
3182
3184
|
var i, a;
|
|
3183
|
-
|
|
3185
|
+
Ee() && !((i = e.blocks) != null && i.length) && ((a = window.parent) == null || a.postMessage(
|
|
3184
3186
|
{
|
|
3185
3187
|
type: "builder.hoverEmptyBlocks",
|
|
3186
3188
|
data: {
|
|
@@ -3191,8 +3193,8 @@ function Fi(e) {
|
|
|
3191
3193
|
"*"
|
|
3192
3194
|
));
|
|
3193
3195
|
}
|
|
3194
|
-
return /* @__PURE__ */ Z(
|
|
3195
|
-
/* @__PURE__ */
|
|
3196
|
+
return /* @__PURE__ */ Z(N, { children: [
|
|
3197
|
+
/* @__PURE__ */ p(
|
|
3196
3198
|
"div",
|
|
3197
3199
|
{
|
|
3198
3200
|
className: t() + " div-02c7a115",
|
|
@@ -3205,7 +3207,7 @@ function Fi(e) {
|
|
|
3205
3207
|
children: e.children
|
|
3206
3208
|
}
|
|
3207
3209
|
),
|
|
3208
|
-
/* @__PURE__ */
|
|
3210
|
+
/* @__PURE__ */ p("style", { children: `.div-02c7a115 {
|
|
3209
3211
|
display: flex;
|
|
3210
3212
|
flex-direction: column;
|
|
3211
3213
|
align-items: stretch;
|
|
@@ -3223,8 +3225,8 @@ function fn(e) {
|
|
|
3223
3225
|
path: e.path,
|
|
3224
3226
|
styleProp: e.styleProp,
|
|
3225
3227
|
children: [
|
|
3226
|
-
e.blocks ? /* @__PURE__ */
|
|
3227
|
-
|
|
3228
|
+
e.blocks ? /* @__PURE__ */ p(N, { children: (n = e.blocks) == null ? void 0 : n.map((a) => /* @__PURE__ */ p(
|
|
3229
|
+
vt,
|
|
3228
3230
|
{
|
|
3229
3231
|
block: a,
|
|
3230
3232
|
context: e.context || t,
|
|
@@ -3232,7 +3234,7 @@ function fn(e) {
|
|
|
3232
3234
|
},
|
|
3233
3235
|
"render-block-" + a.id
|
|
3234
3236
|
)) }) : null,
|
|
3235
|
-
e.blocks ? /* @__PURE__ */
|
|
3237
|
+
e.blocks ? /* @__PURE__ */ p(N, { children: (i = e.blocks) == null ? void 0 : i.map((a) => /* @__PURE__ */ p(
|
|
3236
3238
|
dn,
|
|
3237
3239
|
{
|
|
3238
3240
|
block: a,
|
|
@@ -3245,76 +3247,76 @@ function fn(e) {
|
|
|
3245
3247
|
);
|
|
3246
3248
|
}
|
|
3247
3249
|
function Ui(e) {
|
|
3248
|
-
var
|
|
3249
|
-
const [t, r] =
|
|
3250
|
+
var G;
|
|
3251
|
+
const [t, r] = $(
|
|
3250
3252
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
3251
|
-
), [n, i] =
|
|
3253
|
+
), [n, i] = $(() => e.columns || []), [a, s] = $(
|
|
3252
3254
|
() => e.stackColumnsAt || "tablet"
|
|
3253
3255
|
);
|
|
3254
|
-
function u(
|
|
3256
|
+
function u(y) {
|
|
3255
3257
|
var K;
|
|
3256
|
-
return ((K = n[
|
|
3258
|
+
return ((K = n[y]) == null ? void 0 : K.width) || 100 / n.length;
|
|
3257
3259
|
}
|
|
3258
|
-
function f(
|
|
3260
|
+
function f(y) {
|
|
3259
3261
|
const K = t * (n.length - 1) / n.length;
|
|
3260
|
-
return `calc(${u(
|
|
3262
|
+
return `calc(${u(y)}% - ${K}px)`;
|
|
3261
3263
|
}
|
|
3262
|
-
function
|
|
3263
|
-
stackedStyle:
|
|
3264
|
+
function g({
|
|
3265
|
+
stackedStyle: y,
|
|
3264
3266
|
desktopStyle: K
|
|
3265
3267
|
}) {
|
|
3266
|
-
return a === "tablet" ?
|
|
3268
|
+
return a === "tablet" ? y : K;
|
|
3267
3269
|
}
|
|
3268
|
-
function
|
|
3269
|
-
stackedStyle:
|
|
3270
|
+
function v({
|
|
3271
|
+
stackedStyle: y,
|
|
3270
3272
|
desktopStyle: K
|
|
3271
3273
|
}) {
|
|
3272
|
-
return a === "never" ? K :
|
|
3274
|
+
return a === "never" ? K : y;
|
|
3273
3275
|
}
|
|
3274
|
-
const [
|
|
3276
|
+
const [b, _] = $(
|
|
3275
3277
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
3276
3278
|
);
|
|
3277
|
-
function
|
|
3279
|
+
function W() {
|
|
3278
3280
|
return {
|
|
3279
|
-
"--flex-dir":
|
|
3280
|
-
"--flex-dir-tablet":
|
|
3281
|
-
stackedStyle:
|
|
3281
|
+
"--flex-dir": b,
|
|
3282
|
+
"--flex-dir-tablet": g({
|
|
3283
|
+
stackedStyle: b,
|
|
3282
3284
|
desktopStyle: "row"
|
|
3283
3285
|
})
|
|
3284
3286
|
};
|
|
3285
3287
|
}
|
|
3286
|
-
function
|
|
3287
|
-
const K =
|
|
3288
|
+
function E(y) {
|
|
3289
|
+
const K = y === 0 ? 0 : t, ae = f(y), se = `${K}px`, L = "100%", te = 0;
|
|
3288
3290
|
return {
|
|
3289
3291
|
width: ae,
|
|
3290
3292
|
["marginLeft"]: se,
|
|
3291
|
-
"--column-width-mobile":
|
|
3292
|
-
stackedStyle:
|
|
3293
|
+
"--column-width-mobile": v({
|
|
3294
|
+
stackedStyle: L,
|
|
3293
3295
|
desktopStyle: ae
|
|
3294
3296
|
}),
|
|
3295
|
-
"--column-margin-left-mobile":
|
|
3296
|
-
stackedStyle:
|
|
3297
|
+
"--column-margin-left-mobile": v({
|
|
3298
|
+
stackedStyle: te,
|
|
3297
3299
|
desktopStyle: se
|
|
3298
3300
|
}),
|
|
3299
|
-
"--column-width-tablet":
|
|
3300
|
-
stackedStyle:
|
|
3301
|
+
"--column-width-tablet": g({
|
|
3302
|
+
stackedStyle: L,
|
|
3301
3303
|
desktopStyle: ae
|
|
3302
3304
|
}),
|
|
3303
|
-
"--column-margin-left-tablet":
|
|
3304
|
-
stackedStyle:
|
|
3305
|
+
"--column-margin-left-tablet": g({
|
|
3306
|
+
stackedStyle: te,
|
|
3305
3307
|
desktopStyle: se
|
|
3306
3308
|
})
|
|
3307
3309
|
};
|
|
3308
3310
|
}
|
|
3309
|
-
function
|
|
3311
|
+
function P(y) {
|
|
3310
3312
|
var ae, se;
|
|
3311
3313
|
return Sr(
|
|
3312
3314
|
((se = (ae = e.builderContext.content) == null ? void 0 : ae.meta) == null ? void 0 : se.breakpoints) || {}
|
|
3313
|
-
)[
|
|
3315
|
+
)[y].max;
|
|
3314
3316
|
}
|
|
3315
|
-
function
|
|
3317
|
+
function H() {
|
|
3316
3318
|
return `
|
|
3317
|
-
@media (max-width: ${
|
|
3319
|
+
@media (max-width: ${P("medium")}px) {
|
|
3318
3320
|
.${e.builderBlock.id}-breakpoints {
|
|
3319
3321
|
flex-direction: var(--flex-dir-tablet);
|
|
3320
3322
|
align-items: stretch;
|
|
@@ -3326,7 +3328,7 @@ function Ui(e) {
|
|
|
3326
3328
|
}
|
|
3327
3329
|
}
|
|
3328
3330
|
|
|
3329
|
-
@media (max-width: ${
|
|
3331
|
+
@media (max-width: ${P("small")}px) {
|
|
3330
3332
|
.${e.builderBlock.id}-breakpoints {
|
|
3331
3333
|
flex-direction: var(--flex-dir);
|
|
3332
3334
|
align-items: stretch;
|
|
@@ -3339,22 +3341,22 @@ function Ui(e) {
|
|
|
3339
3341
|
},
|
|
3340
3342
|
`;
|
|
3341
3343
|
}
|
|
3342
|
-
return /* @__PURE__ */ Z(
|
|
3344
|
+
return /* @__PURE__ */ Z(N, { children: [
|
|
3343
3345
|
/* @__PURE__ */ Z(
|
|
3344
3346
|
"div",
|
|
3345
3347
|
{
|
|
3346
3348
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-53636e90`,
|
|
3347
|
-
style:
|
|
3349
|
+
style: W(),
|
|
3348
3350
|
children: [
|
|
3349
|
-
/* @__PURE__ */
|
|
3350
|
-
(
|
|
3351
|
+
/* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(gt, { styles: H() }) }),
|
|
3352
|
+
(G = e.columns) == null ? void 0 : G.map((y, K) => /* @__PURE__ */ ur(
|
|
3351
3353
|
"div",
|
|
3352
3354
|
{
|
|
3353
3355
|
className: "builder-column div-53636e90-2",
|
|
3354
|
-
style:
|
|
3356
|
+
style: E(K),
|
|
3355
3357
|
key: K
|
|
3356
3358
|
},
|
|
3357
|
-
/* @__PURE__ */
|
|
3359
|
+
/* @__PURE__ */ p(
|
|
3358
3360
|
fn,
|
|
3359
3361
|
{
|
|
3360
3362
|
path: `component.options.columns.${K}.blocks`,
|
|
@@ -3364,14 +3366,14 @@ function Ui(e) {
|
|
|
3364
3366
|
},
|
|
3365
3367
|
context: e.builderContext,
|
|
3366
3368
|
registeredComponents: e.builderComponents,
|
|
3367
|
-
blocks:
|
|
3369
|
+
blocks: y.blocks
|
|
3368
3370
|
}
|
|
3369
3371
|
)
|
|
3370
3372
|
))
|
|
3371
3373
|
]
|
|
3372
3374
|
}
|
|
3373
3375
|
),
|
|
3374
|
-
/* @__PURE__ */
|
|
3376
|
+
/* @__PURE__ */ p("style", { children: `.div-53636e90 {
|
|
3375
3377
|
display: flex;
|
|
3376
3378
|
line-height: normal;
|
|
3377
3379
|
}.div-53636e90-2 {
|
|
@@ -3382,7 +3384,7 @@ function Ui(e) {
|
|
|
3382
3384
|
] });
|
|
3383
3385
|
}
|
|
3384
3386
|
function Bi(e) {
|
|
3385
|
-
return /* @__PURE__ */
|
|
3387
|
+
return /* @__PURE__ */ p("span", { children: e.children });
|
|
3386
3388
|
}
|
|
3387
3389
|
function rr(e) {
|
|
3388
3390
|
return e.replace(/http(s)?:/, "");
|
|
@@ -3391,7 +3393,7 @@ function _i(e = "", t, r) {
|
|
|
3391
3393
|
const n = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3392
3394
|
return e.match(n) ? e.replace(n, "$1" + t + "=" + encodeURIComponent(r) + "$2") : e + i + t + "=" + encodeURIComponent(r);
|
|
3393
3395
|
}
|
|
3394
|
-
function
|
|
3396
|
+
function Di(e, t) {
|
|
3395
3397
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3396
3398
|
return e;
|
|
3397
3399
|
if (t === "master")
|
|
@@ -3412,23 +3414,23 @@ function Wt(e) {
|
|
|
3412
3414
|
const n = Number(e.split("?width=")[1]);
|
|
3413
3415
|
return isNaN(n) || (r = `${r} ${n}w`), t.filter((i) => i !== n).map((i) => `${_i(e, "width", i)} ${i}w`).concat([r]).join(", ");
|
|
3414
3416
|
}
|
|
3415
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((r) => [
|
|
3417
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((r) => [Di(e, `${r}x${r}`), r]).filter(([r]) => !!r).map(([r, n]) => `${r} ${n}w`).concat([e]).join(", ") : e;
|
|
3416
3418
|
}
|
|
3417
|
-
function
|
|
3419
|
+
function Vi(e) {
|
|
3418
3420
|
var i, a, s, u;
|
|
3419
3421
|
function t() {
|
|
3420
|
-
var
|
|
3421
|
-
const
|
|
3422
|
-
if (!
|
|
3422
|
+
var v;
|
|
3423
|
+
const g = e.image || e.src;
|
|
3424
|
+
if (!g || // We can auto add srcset for cdn.builder.io and shopify
|
|
3423
3425
|
// images, otherwise you can supply this prop manually
|
|
3424
|
-
!(
|
|
3426
|
+
!(g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/)))
|
|
3425
3427
|
return e.srcset;
|
|
3426
|
-
if (e.srcset && ((
|
|
3428
|
+
if (e.srcset && ((v = e.image) != null && v.includes("builder.io/api/v1/image"))) {
|
|
3427
3429
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3428
|
-
return console.debug("Removed given srcset"), Wt(
|
|
3430
|
+
return console.debug("Removed given srcset"), Wt(g);
|
|
3429
3431
|
} else if (e.image && !e.srcset)
|
|
3430
|
-
return Wt(
|
|
3431
|
-
return Wt(
|
|
3432
|
+
return Wt(g);
|
|
3433
|
+
return Wt(g);
|
|
3432
3434
|
}
|
|
3433
3435
|
function r() {
|
|
3434
3436
|
var f;
|
|
@@ -3444,11 +3446,11 @@ function $i(e) {
|
|
|
3444
3446
|
};
|
|
3445
3447
|
return e.aspectRatio ? f : void 0;
|
|
3446
3448
|
}
|
|
3447
|
-
return /* @__PURE__ */ Z(
|
|
3448
|
-
/* @__PURE__ */ Z(
|
|
3449
|
+
return /* @__PURE__ */ Z(N, { children: [
|
|
3450
|
+
/* @__PURE__ */ Z(N, { children: [
|
|
3449
3451
|
/* @__PURE__ */ Z("picture", { children: [
|
|
3450
|
-
r() ? /* @__PURE__ */
|
|
3451
|
-
/* @__PURE__ */
|
|
3452
|
+
r() ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p("source", { type: "image/webp", srcSet: r() }) }) : null,
|
|
3453
|
+
/* @__PURE__ */ p(
|
|
3452
3454
|
"img",
|
|
3453
3455
|
{
|
|
3454
3456
|
loading: "lazy",
|
|
@@ -3466,7 +3468,7 @@ function $i(e) {
|
|
|
3466
3468
|
}
|
|
3467
3469
|
)
|
|
3468
3470
|
] }),
|
|
3469
|
-
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */
|
|
3471
|
+
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
3470
3472
|
"div",
|
|
3471
3473
|
{
|
|
3472
3474
|
className: "builder-image-sizer div-dbab4030",
|
|
@@ -3475,10 +3477,10 @@ function $i(e) {
|
|
|
3475
3477
|
}
|
|
3476
3478
|
}
|
|
3477
3479
|
) }) : null,
|
|
3478
|
-
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */
|
|
3479
|
-
!e.fitContent && e.children ? /* @__PURE__ */
|
|
3480
|
+
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ p(N, { children: e.children }) : null,
|
|
3481
|
+
!e.fitContent && e.children ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p("div", { className: "div-dbab4030-2", children: e.children }) }) : null
|
|
3480
3482
|
] }),
|
|
3481
|
-
/* @__PURE__ */
|
|
3483
|
+
/* @__PURE__ */ p("style", { children: `.img-dbab4030 {
|
|
3482
3484
|
opacity: 1;
|
|
3483
3485
|
transition: opacity 0.2s ease-in-out;
|
|
3484
3486
|
}.div-dbab4030 {
|
|
@@ -3497,8 +3499,8 @@ function $i(e) {
|
|
|
3497
3499
|
}` })
|
|
3498
3500
|
] });
|
|
3499
3501
|
}
|
|
3500
|
-
function
|
|
3501
|
-
return /* @__PURE__ */
|
|
3502
|
+
function Li(e) {
|
|
3503
|
+
return /* @__PURE__ */ p(
|
|
3502
3504
|
"section",
|
|
3503
3505
|
{
|
|
3504
3506
|
...e.attributes,
|
|
@@ -3518,7 +3520,7 @@ function Vi(e) {
|
|
|
3518
3520
|
}
|
|
3519
3521
|
);
|
|
3520
3522
|
}
|
|
3521
|
-
const
|
|
3523
|
+
const $i = {
|
|
3522
3524
|
name: "Core:Button",
|
|
3523
3525
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3524
3526
|
defaultStyles: {
|
|
@@ -3776,35 +3778,35 @@ const Di = {
|
|
|
3776
3778
|
}]
|
|
3777
3779
|
};
|
|
3778
3780
|
function Ki(e) {
|
|
3779
|
-
const t =
|
|
3780
|
-
return
|
|
3781
|
+
const t = Jt(null), [r, n] = $(() => []), [i, a] = $(() => []);
|
|
3782
|
+
return ee(() => {
|
|
3781
3783
|
var u;
|
|
3782
3784
|
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window > "u")
|
|
3783
3785
|
return;
|
|
3784
3786
|
const s = t.current.getElementsByTagName("script");
|
|
3785
3787
|
for (let f = 0; f < s.length; f++) {
|
|
3786
|
-
const
|
|
3787
|
-
if (
|
|
3788
|
-
if (r.includes(
|
|
3788
|
+
const g = s[f];
|
|
3789
|
+
if (g.src) {
|
|
3790
|
+
if (r.includes(g.src))
|
|
3789
3791
|
continue;
|
|
3790
|
-
r.push(
|
|
3791
|
-
const
|
|
3792
|
-
|
|
3793
|
-
} else if (!
|
|
3792
|
+
r.push(g.src);
|
|
3793
|
+
const v = document.createElement("script");
|
|
3794
|
+
v.async = !0, v.src = g.src, document.head.appendChild(v);
|
|
3795
|
+
} else if (!g.type || [
|
|
3794
3796
|
"text/javascript",
|
|
3795
3797
|
"application/javascript",
|
|
3796
3798
|
"application/ecmascript"
|
|
3797
|
-
].includes(
|
|
3798
|
-
if (i.includes(
|
|
3799
|
+
].includes(g.type)) {
|
|
3800
|
+
if (i.includes(g.innerText))
|
|
3799
3801
|
continue;
|
|
3800
3802
|
try {
|
|
3801
|
-
i.push(
|
|
3802
|
-
} catch (
|
|
3803
|
-
console.warn("`CustomCode`: Error running script:",
|
|
3803
|
+
i.push(g.innerText), new Function(g.innerText)();
|
|
3804
|
+
} catch (v) {
|
|
3805
|
+
console.warn("`CustomCode`: Error running script:", v);
|
|
3804
3806
|
}
|
|
3805
3807
|
}
|
|
3806
3808
|
}
|
|
3807
|
-
}, []), /* @__PURE__ */
|
|
3809
|
+
}, []), /* @__PURE__ */ p(
|
|
3808
3810
|
"div",
|
|
3809
3811
|
{
|
|
3810
3812
|
ref: t,
|
|
@@ -3839,29 +3841,29 @@ const Gi = {
|
|
|
3839
3841
|
hideFromUI: !0
|
|
3840
3842
|
}]
|
|
3841
3843
|
}, zi = ["text/javascript", "application/javascript", "application/ecmascript"], Xi = (e) => zi.includes(e.type);
|
|
3842
|
-
function
|
|
3843
|
-
const t =
|
|
3844
|
+
function Yi(e) {
|
|
3845
|
+
const t = Jt(null), [r, n] = $(() => []), [i, a] = $(() => []), [s, u] = $(() => !1);
|
|
3844
3846
|
function f() {
|
|
3845
3847
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3846
3848
|
return;
|
|
3847
|
-
const
|
|
3848
|
-
for (let
|
|
3849
|
-
const
|
|
3850
|
-
if (
|
|
3851
|
-
r.push(
|
|
3852
|
-
const
|
|
3853
|
-
|
|
3854
|
-
} else if (Xi(
|
|
3849
|
+
const g = t.current.getElementsByTagName("script");
|
|
3850
|
+
for (let v = 0; v < g.length; v++) {
|
|
3851
|
+
const b = g[v];
|
|
3852
|
+
if (b.src && !r.includes(b.src)) {
|
|
3853
|
+
r.push(b.src);
|
|
3854
|
+
const _ = document.createElement("script");
|
|
3855
|
+
_.async = !0, _.src = b.src, document.head.appendChild(_);
|
|
3856
|
+
} else if (Xi(b) && !i.includes(b.innerText))
|
|
3855
3857
|
try {
|
|
3856
|
-
i.push(
|
|
3857
|
-
} catch (
|
|
3858
|
-
console.warn("`Embed`: Error running script:",
|
|
3858
|
+
i.push(b.innerText), new Function(b.innerText)();
|
|
3859
|
+
} catch (_) {
|
|
3860
|
+
console.warn("`Embed`: Error running script:", _);
|
|
3859
3861
|
}
|
|
3860
3862
|
}
|
|
3861
3863
|
}
|
|
3862
|
-
return
|
|
3864
|
+
return ee(() => {
|
|
3863
3865
|
t.current && !s && (u(!0), f());
|
|
3864
|
-
}, [t.current, s]), /* @__PURE__ */
|
|
3866
|
+
}, [t.current, s]), /* @__PURE__ */ p(
|
|
3865
3867
|
"div",
|
|
3866
3868
|
{
|
|
3867
3869
|
className: "builder-embed",
|
|
@@ -3870,7 +3872,7 @@ function Ji(e) {
|
|
|
3870
3872
|
}
|
|
3871
3873
|
);
|
|
3872
3874
|
}
|
|
3873
|
-
const
|
|
3875
|
+
const Ji = {
|
|
3874
3876
|
name: "Fragment",
|
|
3875
3877
|
static: !0,
|
|
3876
3878
|
hidden: !0,
|
|
@@ -3897,15 +3899,15 @@ const Yi = {
|
|
|
3897
3899
|
onChange: (e) => {
|
|
3898
3900
|
e.delete("srcset"), e.delete("noWebp");
|
|
3899
3901
|
function r(s, u = 6e4) {
|
|
3900
|
-
return new Promise((f,
|
|
3901
|
-
const
|
|
3902
|
-
let
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
},
|
|
3906
|
-
console.warn("Image load failed",
|
|
3907
|
-
}),
|
|
3908
|
-
|
|
3902
|
+
return new Promise((f, g) => {
|
|
3903
|
+
const v = document.createElement("img");
|
|
3904
|
+
let b = !1;
|
|
3905
|
+
v.onload = () => {
|
|
3906
|
+
b = !0, f(v);
|
|
3907
|
+
}, v.addEventListener("error", (_) => {
|
|
3908
|
+
console.warn("Image load failed", _.error), g(_.error);
|
|
3909
|
+
}), v.src = s, setTimeout(() => {
|
|
3910
|
+
b || g(new Error("Image load timed out"));
|
|
3909
3911
|
}, u);
|
|
3910
3912
|
});
|
|
3911
3913
|
}
|
|
@@ -3992,7 +3994,7 @@ const Yi = {
|
|
|
3992
3994
|
static: !0
|
|
3993
3995
|
};
|
|
3994
3996
|
function Qi(e) {
|
|
3995
|
-
return /* @__PURE__ */
|
|
3997
|
+
return /* @__PURE__ */ p(
|
|
3996
3998
|
"img",
|
|
3997
3999
|
{
|
|
3998
4000
|
style: {
|
|
@@ -4003,7 +4005,7 @@ function Qi(e) {
|
|
|
4003
4005
|
src: e.imgSrc || e.image,
|
|
4004
4006
|
...e.attributes
|
|
4005
4007
|
},
|
|
4006
|
-
|
|
4008
|
+
Ee() && e.imgSrc || "default-key"
|
|
4007
4009
|
);
|
|
4008
4010
|
}
|
|
4009
4011
|
const eo = {
|
|
@@ -4099,7 +4101,7 @@ const eo = {
|
|
|
4099
4101
|
};
|
|
4100
4102
|
function ro(e) {
|
|
4101
4103
|
var t;
|
|
4102
|
-
return /* @__PURE__ */
|
|
4104
|
+
return /* @__PURE__ */ p(
|
|
4103
4105
|
"div",
|
|
4104
4106
|
{
|
|
4105
4107
|
className: "builder-text",
|
|
@@ -4193,7 +4195,7 @@ const io = {
|
|
|
4193
4195
|
}]
|
|
4194
4196
|
};
|
|
4195
4197
|
function oo(e) {
|
|
4196
|
-
var n;
|
|
4198
|
+
var n, i, a, s, u, f, g;
|
|
4197
4199
|
function t() {
|
|
4198
4200
|
return {
|
|
4199
4201
|
...e.autoPlay === !0 ? {
|
|
@@ -4215,33 +4217,87 @@ function oo(e) {
|
|
|
4215
4217
|
}
|
|
4216
4218
|
function r() {
|
|
4217
4219
|
return {
|
|
4218
|
-
...e.attributes,
|
|
4219
4220
|
...t()
|
|
4220
4221
|
};
|
|
4221
4222
|
}
|
|
4222
|
-
return /* @__PURE__ */
|
|
4223
|
-
"
|
|
4223
|
+
return /* @__PURE__ */ Z(
|
|
4224
|
+
"div",
|
|
4224
4225
|
{
|
|
4225
|
-
...r(),
|
|
4226
|
-
preload: e.preload || "metadata",
|
|
4227
4226
|
style: {
|
|
4228
|
-
|
|
4229
|
-
height: "100%",
|
|
4230
|
-
...(n = e.attributes) == null ? void 0 : n.style,
|
|
4231
|
-
objectFit: e.fit,
|
|
4232
|
-
objectPosition: e.position,
|
|
4233
|
-
// Hack to get object fit to work as expected and
|
|
4234
|
-
// not have the video overflow
|
|
4235
|
-
borderRadius: 1
|
|
4227
|
+
position: "relative"
|
|
4236
4228
|
},
|
|
4237
|
-
|
|
4238
|
-
|
|
4229
|
+
children: [
|
|
4230
|
+
/* @__PURE__ */ p(
|
|
4231
|
+
"video",
|
|
4232
|
+
{
|
|
4233
|
+
className: "builder-video",
|
|
4234
|
+
...r(),
|
|
4235
|
+
preload: e.preload || "metadata",
|
|
4236
|
+
style: {
|
|
4237
|
+
width: "100%",
|
|
4238
|
+
height: "100%",
|
|
4239
|
+
...(n = e.attributes) == null ? void 0 : n.style,
|
|
4240
|
+
objectFit: e.fit,
|
|
4241
|
+
objectPosition: e.position,
|
|
4242
|
+
// Hack to get object fit to work as expected and
|
|
4243
|
+
// not have the video overflow
|
|
4244
|
+
zIndex: 2,
|
|
4245
|
+
borderRadius: "1px",
|
|
4246
|
+
...e.aspectRatio ? {
|
|
4247
|
+
position: "absolute"
|
|
4248
|
+
} : null
|
|
4249
|
+
},
|
|
4250
|
+
src: e.video || "no-src",
|
|
4251
|
+
poster: e.posterImage,
|
|
4252
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ p("source", { type: "video/mp4", src: e.video })
|
|
4253
|
+
}
|
|
4254
|
+
),
|
|
4255
|
+
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
4256
|
+
"div",
|
|
4257
|
+
{
|
|
4258
|
+
style: {
|
|
4259
|
+
width: "100%",
|
|
4260
|
+
paddingTop: e.aspectRatio * 100 + "%",
|
|
4261
|
+
pointerEvents: "none",
|
|
4262
|
+
fontSize: "0px"
|
|
4263
|
+
}
|
|
4264
|
+
}
|
|
4265
|
+
) }) : null,
|
|
4266
|
+
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
4267
|
+
"div",
|
|
4268
|
+
{
|
|
4269
|
+
style: {
|
|
4270
|
+
display: "flex",
|
|
4271
|
+
flexDirection: "column",
|
|
4272
|
+
alignItems: "stretch"
|
|
4273
|
+
},
|
|
4274
|
+
children: e.children
|
|
4275
|
+
}
|
|
4276
|
+
) }) : null,
|
|
4277
|
+
(g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length && !e.fitContent ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
4278
|
+
"div",
|
|
4279
|
+
{
|
|
4280
|
+
style: {
|
|
4281
|
+
pointerEvents: "none",
|
|
4282
|
+
display: "flex",
|
|
4283
|
+
flexDirection: "column",
|
|
4284
|
+
alignItems: "stretch",
|
|
4285
|
+
position: "absolute",
|
|
4286
|
+
top: "0",
|
|
4287
|
+
left: "0",
|
|
4288
|
+
width: "100%",
|
|
4289
|
+
height: "100%"
|
|
4290
|
+
},
|
|
4291
|
+
children: e.children
|
|
4292
|
+
}
|
|
4293
|
+
) }) : null
|
|
4294
|
+
]
|
|
4239
4295
|
}
|
|
4240
4296
|
);
|
|
4241
4297
|
}
|
|
4242
4298
|
const ir = () => [{
|
|
4243
|
-
component:
|
|
4244
|
-
|
|
4299
|
+
component: Yr,
|
|
4300
|
+
...$i
|
|
4245
4301
|
}, {
|
|
4246
4302
|
component: Ui,
|
|
4247
4303
|
...Wi
|
|
@@ -4249,19 +4305,19 @@ const ir = () => [{
|
|
|
4249
4305
|
component: Ki,
|
|
4250
4306
|
...Hi
|
|
4251
4307
|
}, {
|
|
4252
|
-
component:
|
|
4308
|
+
component: Yi,
|
|
4253
4309
|
...Gi
|
|
4254
4310
|
}, {
|
|
4255
4311
|
component: Bi,
|
|
4256
|
-
...
|
|
4312
|
+
...Ji
|
|
4257
4313
|
}, {
|
|
4258
|
-
component:
|
|
4314
|
+
component: Vi,
|
|
4259
4315
|
...qi
|
|
4260
4316
|
}, {
|
|
4261
4317
|
component: Qi,
|
|
4262
4318
|
...Zi
|
|
4263
4319
|
}, {
|
|
4264
|
-
component:
|
|
4320
|
+
component: Li,
|
|
4265
4321
|
...eo
|
|
4266
4322
|
}, {
|
|
4267
4323
|
component: jo,
|
|
@@ -4272,104 +4328,121 @@ const ir = () => [{
|
|
|
4272
4328
|
}, {
|
|
4273
4329
|
component: oo,
|
|
4274
4330
|
...io
|
|
4275
|
-
}],
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
function so(e, t, r) {
|
|
4284
|
-
var s;
|
|
4285
|
-
function n() {
|
|
4286
|
-
function u(C, I, L) {
|
|
4287
|
-
let V = "";
|
|
4288
|
-
if (L) {
|
|
4289
|
-
const v = /* @__PURE__ */ new Date();
|
|
4290
|
-
v.setTime(v.getTime() + L * 24 * 60 * 60 * 1e3), V = "; expires=" + v.toUTCString();
|
|
4331
|
+
}], ao = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4332
|
+
function getAndSetVariantId() {
|
|
4333
|
+
function setCookie(name, value, days) {
|
|
4334
|
+
let expires = '';
|
|
4335
|
+
if (days) {
|
|
4336
|
+
const date = new Date();
|
|
4337
|
+
date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
|
|
4338
|
+
expires = '; expires=' + date.toUTCString();
|
|
4291
4339
|
}
|
|
4292
|
-
document.cookie =
|
|
4340
|
+
document.cookie = name + '=' + (value || '') + expires + '; path=/' + '; Secure; SameSite=None';
|
|
4293
4341
|
}
|
|
4294
|
-
function
|
|
4295
|
-
const
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
if (
|
|
4301
|
-
return v.substring(I.length, v.length);
|
|
4342
|
+
function getCookie(name) {
|
|
4343
|
+
const nameEQ = name + '=';
|
|
4344
|
+
const ca = document.cookie.split(';');
|
|
4345
|
+
for (let i = 0; i < ca.length; i++) {
|
|
4346
|
+
let c = ca[i];
|
|
4347
|
+
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
|
|
4348
|
+
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
|
|
4302
4349
|
}
|
|
4303
4350
|
return null;
|
|
4304
4351
|
}
|
|
4305
|
-
const
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
for (let C = 0; C < t.length; C++) {
|
|
4311
|
-
const I = t[C], L = I.testRatio;
|
|
4312
|
-
if (N += L, _ < N)
|
|
4313
|
-
return u(p, I.id), I.id;
|
|
4352
|
+
const cookieName = \`builder.tests.\${contentId}\`;
|
|
4353
|
+
const variantInCookie = getCookie(cookieName);
|
|
4354
|
+
const availableIDs = variants.map(vr => vr.id).concat(contentId);
|
|
4355
|
+
if (variantInCookie && availableIDs.includes(variantInCookie)) {
|
|
4356
|
+
return variantInCookie;
|
|
4314
4357
|
}
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4358
|
+
let n = 0;
|
|
4359
|
+
const random = Math.random();
|
|
4360
|
+
for (let i = 0; i < variants.length; i++) {
|
|
4361
|
+
const variant = variants[i];
|
|
4362
|
+
const testRatio = variant.testRatio;
|
|
4363
|
+
n += testRatio;
|
|
4364
|
+
if (random < n) {
|
|
4365
|
+
setCookie(cookieName, variant.id);
|
|
4366
|
+
return variant.id;
|
|
4367
|
+
}
|
|
4368
|
+
}
|
|
4369
|
+
setCookie(cookieName, contentId);
|
|
4370
|
+
return contentId;
|
|
4371
|
+
}
|
|
4372
|
+
const winningVariantId = getAndSetVariantId();
|
|
4373
|
+
const styleEl = document.currentScript?.previousElementSibling;
|
|
4374
|
+
if (isHydrationTarget) {
|
|
4375
|
+
styleEl.remove();
|
|
4376
|
+
const thisScriptEl = document.currentScript;
|
|
4377
|
+
thisScriptEl?.remove();
|
|
4322
4378
|
} else {
|
|
4323
|
-
const
|
|
4324
|
-
id:
|
|
4325
|
-
}).filter(
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
if (!navigator.cookieEnabled)
|
|
4379
|
+
const newStyleStr = variants.concat({
|
|
4380
|
+
id: contentId
|
|
4381
|
+
}).filter(variant => variant.id !== winningVariantId).map(value => {
|
|
4382
|
+
return \`.variant-\${value.id} { display: none; }
|
|
4383
|
+
\`;
|
|
4384
|
+
}).join('');
|
|
4385
|
+
styleEl.innerHTML = newStyleStr;
|
|
4386
|
+
}
|
|
4387
|
+
}`, so = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4388
|
+
if (!navigator.cookieEnabled) {
|
|
4333
4389
|
return;
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4390
|
+
}
|
|
4391
|
+
function getCookie(name) {
|
|
4392
|
+
const nameEQ = name + '=';
|
|
4393
|
+
const ca = document.cookie.split(';');
|
|
4394
|
+
for (let i = 0; i < ca.length; i++) {
|
|
4395
|
+
let c = ca[i];
|
|
4396
|
+
while (c.charAt(0) === ' ') c = c.substring(1, c.length);
|
|
4397
|
+
if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);
|
|
4342
4398
|
}
|
|
4343
4399
|
return null;
|
|
4344
4400
|
}
|
|
4345
|
-
const
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4401
|
+
const cookieName = \`builder.tests.\${defaultContentId}\`;
|
|
4402
|
+
const winningVariant = getCookie(cookieName);
|
|
4403
|
+
const parentDiv = document.currentScript?.parentElement;
|
|
4404
|
+
const isDefaultContent = variantContentId === defaultContentId;
|
|
4405
|
+
const isWinningVariant = winningVariant === variantContentId;
|
|
4406
|
+
if (isWinningVariant && !isDefaultContent) {
|
|
4407
|
+
parentDiv?.removeAttribute('hidden');
|
|
4408
|
+
parentDiv?.removeAttribute('aria-hidden');
|
|
4409
|
+
} else if (!isWinningVariant && isDefaultContent) {
|
|
4410
|
+
parentDiv?.setAttribute('hidden', 'true');
|
|
4411
|
+
parentDiv?.setAttribute('aria-hidden', 'true');
|
|
4412
|
+
}
|
|
4413
|
+
if (isHydrationTarget) {
|
|
4414
|
+
if (!isWinningVariant) {
|
|
4415
|
+
parentDiv?.remove();
|
|
4416
|
+
}
|
|
4417
|
+
const thisScriptEl = document.currentScript;
|
|
4418
|
+
thisScriptEl?.remove();
|
|
4353
4419
|
}
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4420
|
+
return;
|
|
4421
|
+
}`, kr = "builderIoAbTest", Cr = "builderIoRenderContent", ut = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4422
|
+
...t,
|
|
4423
|
+
testVariationId: t.id,
|
|
4424
|
+
id: e == null ? void 0 : e.id
|
|
4425
|
+
})), lo = ({
|
|
4426
|
+
canTrack: e,
|
|
4427
|
+
content: t
|
|
4428
|
+
}) => !(!(ut(t).length > 0) || !e || Ie()), co = (e) => e === "react" || e === "reactNative", Er = co(tt), uo = () => `
|
|
4429
|
+
window.${kr} = ${ao}
|
|
4430
|
+
window.${Cr} = ${so}
|
|
4431
|
+
`, fo = (e, t) => `
|
|
4432
|
+
window.${kr}(
|
|
4433
|
+
"${t}",${JSON.stringify(e)}, ${Er}
|
|
4434
|
+
)`, ho = ({
|
|
4363
4435
|
contentId: e,
|
|
4364
4436
|
variationId: t
|
|
4365
|
-
}) => `
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4437
|
+
}) => `window.${Cr}(
|
|
4438
|
+
"${t}", "${e}", ${Er}
|
|
4439
|
+
)`;
|
|
4440
|
+
function Yt(e) {
|
|
4441
|
+
return /* @__PURE__ */ p(
|
|
4369
4442
|
"script",
|
|
4370
4443
|
{
|
|
4371
4444
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
4372
|
-
id: e.id
|
|
4445
|
+
id: e.id || ""
|
|
4373
4446
|
}
|
|
4374
4447
|
);
|
|
4375
4448
|
}
|
|
@@ -4415,7 +4488,7 @@ const po = (e, t, r = !0) => {
|
|
|
4415
4488
|
builderElementIndex: r && n ? [].slice.call(document.getElementsByClassName(n)).indexOf(r) : void 0
|
|
4416
4489
|
}
|
|
4417
4490
|
};
|
|
4418
|
-
},
|
|
4491
|
+
}, vo = "0.7.5", yo = () => {
|
|
4419
4492
|
Hr("insertMenu", {
|
|
4420
4493
|
name: "_default",
|
|
4421
4494
|
default: !0,
|
|
@@ -4441,11 +4514,11 @@ const po = (e, t, r = !0) => {
|
|
|
4441
4514
|
let sr = !1;
|
|
4442
4515
|
const xo = (e = {}) => {
|
|
4443
4516
|
var t, r;
|
|
4444
|
-
sr || (sr = !0,
|
|
4517
|
+
sr || (sr = !0, Ie() && ((t = window.parent) == null || t.postMessage({
|
|
4445
4518
|
type: "builder.sdkInfo",
|
|
4446
4519
|
data: {
|
|
4447
4520
|
target: tt,
|
|
4448
|
-
version:
|
|
4521
|
+
version: vo,
|
|
4449
4522
|
supportsPatchUpdates: !1,
|
|
4450
4523
|
// Supports builder-model="..." attribute which is needed to
|
|
4451
4524
|
// scope our '+ add block' button styling
|
|
@@ -4464,32 +4537,32 @@ const xo = (e = {}) => {
|
|
|
4464
4537
|
if (n != null && n.type)
|
|
4465
4538
|
switch (n.type) {
|
|
4466
4539
|
case "builder.evaluate": {
|
|
4467
|
-
const s = n.data.text, u = n.data.arguments || [], f = n.data.id,
|
|
4468
|
-
let
|
|
4540
|
+
const s = n.data.text, u = n.data.arguments || [], f = n.data.id, g = new Function(s);
|
|
4541
|
+
let v, b = null;
|
|
4469
4542
|
try {
|
|
4470
|
-
|
|
4471
|
-
} catch (
|
|
4472
|
-
|
|
4543
|
+
v = g.apply(null, u);
|
|
4544
|
+
} catch (_) {
|
|
4545
|
+
b = _;
|
|
4473
4546
|
}
|
|
4474
|
-
|
|
4547
|
+
b ? (i = window.parent) == null || i.postMessage({
|
|
4475
4548
|
type: "builder.evaluateError",
|
|
4476
4549
|
data: {
|
|
4477
4550
|
id: f,
|
|
4478
|
-
error:
|
|
4551
|
+
error: b.message
|
|
4479
4552
|
}
|
|
4480
|
-
}, "*") :
|
|
4481
|
-
var
|
|
4482
|
-
(
|
|
4553
|
+
}, "*") : v && typeof v.then == "function" ? v.then((_) => {
|
|
4554
|
+
var W;
|
|
4555
|
+
(W = window.parent) == null || W.postMessage({
|
|
4483
4556
|
type: "builder.evaluateResult",
|
|
4484
4557
|
data: {
|
|
4485
4558
|
id: f,
|
|
4486
|
-
result:
|
|
4559
|
+
result: _
|
|
4487
4560
|
}
|
|
4488
4561
|
}, "*");
|
|
4489
4562
|
}).catch(console.error) : (a = window.parent) == null || a.postMessage({
|
|
4490
4563
|
type: "builder.evaluateResult",
|
|
4491
4564
|
data: {
|
|
4492
|
-
result:
|
|
4565
|
+
result: v,
|
|
4493
4566
|
id: f
|
|
4494
4567
|
}
|
|
4495
4568
|
}, "*");
|
|
@@ -4499,88 +4572,88 @@ const xo = (e = {}) => {
|
|
|
4499
4572
|
})));
|
|
4500
4573
|
};
|
|
4501
4574
|
function bo(e) {
|
|
4502
|
-
var ae, se,
|
|
4503
|
-
const t =
|
|
4504
|
-
function i(
|
|
4505
|
-
var
|
|
4506
|
-
const
|
|
4575
|
+
var ae, se, L, te, I, Te, D;
|
|
4576
|
+
const t = Jt(null), [r, n] = $(() => 0);
|
|
4577
|
+
function i(j) {
|
|
4578
|
+
var C, M, V, U, ye;
|
|
4579
|
+
const T = {
|
|
4507
4580
|
...e.builderContextSignal.content,
|
|
4508
|
-
...
|
|
4581
|
+
...j,
|
|
4509
4582
|
data: {
|
|
4510
|
-
...(
|
|
4511
|
-
...
|
|
4583
|
+
...(C = e.builderContextSignal.content) == null ? void 0 : C.data,
|
|
4584
|
+
...j == null ? void 0 : j.data
|
|
4512
4585
|
},
|
|
4513
4586
|
meta: {
|
|
4514
4587
|
...(M = e.builderContextSignal.content) == null ? void 0 : M.meta,
|
|
4515
|
-
...
|
|
4516
|
-
breakpoints: ((
|
|
4588
|
+
...j == null ? void 0 : j.meta,
|
|
4589
|
+
breakpoints: ((V = j == null ? void 0 : j.meta) == null ? void 0 : V.breakpoints) || ((ye = (U = e.builderContextSignal.content) == null ? void 0 : U.meta) == null ? void 0 : ye.breakpoints)
|
|
4517
4590
|
}
|
|
4518
4591
|
};
|
|
4519
|
-
e.setBuilderContextSignal((
|
|
4520
|
-
...
|
|
4521
|
-
content:
|
|
4592
|
+
e.setBuilderContextSignal((we) => ({
|
|
4593
|
+
...we,
|
|
4594
|
+
content: T
|
|
4522
4595
|
}));
|
|
4523
4596
|
}
|
|
4524
|
-
|
|
4525
|
-
const [a, s] =
|
|
4597
|
+
$(() => 0);
|
|
4598
|
+
const [a, s] = $(
|
|
4526
4599
|
() => !1
|
|
4527
4600
|
);
|
|
4528
|
-
function u(
|
|
4529
|
-
var
|
|
4530
|
-
const { data:
|
|
4531
|
-
if (
|
|
4532
|
-
switch (
|
|
4601
|
+
function u(j) {
|
|
4602
|
+
var C;
|
|
4603
|
+
const { data: T } = j;
|
|
4604
|
+
if (T)
|
|
4605
|
+
switch (T.type) {
|
|
4533
4606
|
case "builder.configureSdk": {
|
|
4534
|
-
const M =
|
|
4535
|
-
if (!
|
|
4607
|
+
const M = T.data, { breakpoints: V, contentId: U } = M;
|
|
4608
|
+
if (!U || U !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id))
|
|
4536
4609
|
return;
|
|
4537
|
-
|
|
4610
|
+
V && i({
|
|
4538
4611
|
meta: {
|
|
4539
|
-
breakpoints:
|
|
4612
|
+
breakpoints: V
|
|
4540
4613
|
}
|
|
4541
4614
|
}), n(r + 1);
|
|
4542
4615
|
break;
|
|
4543
4616
|
}
|
|
4544
4617
|
case "builder.contentUpdate": {
|
|
4545
|
-
const M =
|
|
4546
|
-
|
|
4618
|
+
const M = T.data, V = M.key || M.alias || M.entry || M.modelName, U = M.data;
|
|
4619
|
+
V === e.model && (i(U), n(r + 1));
|
|
4547
4620
|
break;
|
|
4548
4621
|
}
|
|
4549
4622
|
}
|
|
4550
4623
|
}
|
|
4551
4624
|
function f() {
|
|
4552
|
-
var
|
|
4553
|
-
const
|
|
4554
|
-
|
|
4555
|
-
code:
|
|
4625
|
+
var T, C;
|
|
4626
|
+
const j = (C = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : C.jsCode;
|
|
4627
|
+
j && et({
|
|
4628
|
+
code: j,
|
|
4556
4629
|
context: e.context || {},
|
|
4557
4630
|
localState: void 0,
|
|
4558
4631
|
rootState: e.builderContextSignal.rootState,
|
|
4559
4632
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4560
4633
|
});
|
|
4561
4634
|
}
|
|
4562
|
-
const [
|
|
4563
|
-
function
|
|
4564
|
-
var
|
|
4635
|
+
const [g, v] = $(() => ({})), [b, _] = $(() => !1);
|
|
4636
|
+
function W(j) {
|
|
4637
|
+
var T, C;
|
|
4565
4638
|
if (e.builderContextSignal.content) {
|
|
4566
|
-
const M = (
|
|
4639
|
+
const M = (T = e.builderContextSignal.content) == null ? void 0 : T.testVariationId, V = (C = e.builderContextSignal.content) == null ? void 0 : C.id;
|
|
4567
4640
|
Kn({
|
|
4568
4641
|
type: "click",
|
|
4569
4642
|
canTrack: dt(e.canTrack),
|
|
4570
|
-
contentId:
|
|
4643
|
+
contentId: V,
|
|
4571
4644
|
apiKey: e.apiKey,
|
|
4572
|
-
variationId: M !==
|
|
4573
|
-
...go(
|
|
4574
|
-
unique: !
|
|
4645
|
+
variationId: M !== V ? M : void 0,
|
|
4646
|
+
...go(j),
|
|
4647
|
+
unique: !b
|
|
4575
4648
|
});
|
|
4576
4649
|
}
|
|
4577
|
-
|
|
4650
|
+
b || _(!0);
|
|
4578
4651
|
}
|
|
4579
|
-
function
|
|
4580
|
-
return
|
|
4652
|
+
function E(j) {
|
|
4653
|
+
return j.replace(
|
|
4581
4654
|
/{{([^}]+)}}/g,
|
|
4582
|
-
(
|
|
4583
|
-
code:
|
|
4655
|
+
(T, C) => et({
|
|
4656
|
+
code: C,
|
|
4584
4657
|
context: e.context || {},
|
|
4585
4658
|
localState: void 0,
|
|
4586
4659
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4588,33 +4661,33 @@ function bo(e) {
|
|
|
4588
4661
|
})
|
|
4589
4662
|
);
|
|
4590
4663
|
}
|
|
4591
|
-
function
|
|
4592
|
-
zr(
|
|
4593
|
-
var
|
|
4664
|
+
function P({ url: j, key: T }) {
|
|
4665
|
+
zr(j).then((C) => C.json()).then((C) => {
|
|
4666
|
+
var V, U;
|
|
4594
4667
|
const M = {
|
|
4595
4668
|
...e.builderContextSignal.rootState,
|
|
4596
|
-
[
|
|
4669
|
+
[T]: C
|
|
4597
4670
|
};
|
|
4598
|
-
(
|
|
4599
|
-
}).catch((
|
|
4600
|
-
console.error("error fetching dynamic data",
|
|
4671
|
+
(U = (V = e.builderContextSignal).rootSetState) == null || U.call(V, M), g[T] = !0;
|
|
4672
|
+
}).catch((C) => {
|
|
4673
|
+
console.error("error fetching dynamic data", j, C);
|
|
4601
4674
|
});
|
|
4602
4675
|
}
|
|
4603
|
-
function
|
|
4604
|
-
var
|
|
4605
|
-
const
|
|
4606
|
-
Object.entries(
|
|
4607
|
-
if (
|
|
4608
|
-
const
|
|
4609
|
-
|
|
4610
|
-
url:
|
|
4676
|
+
function H() {
|
|
4677
|
+
var T, C;
|
|
4678
|
+
const j = ((C = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : C.httpRequests) ?? {};
|
|
4679
|
+
Object.entries(j).forEach(([M, V]) => {
|
|
4680
|
+
if (V && (!g[M] || Ee())) {
|
|
4681
|
+
const U = E(V);
|
|
4682
|
+
P({
|
|
4683
|
+
url: U,
|
|
4611
4684
|
key: M
|
|
4612
4685
|
});
|
|
4613
4686
|
}
|
|
4614
4687
|
});
|
|
4615
4688
|
}
|
|
4616
|
-
function
|
|
4617
|
-
|
|
4689
|
+
function G() {
|
|
4690
|
+
Ee() && window.dispatchEvent(
|
|
4618
4691
|
new CustomEvent(
|
|
4619
4692
|
"builder:component:stateChange",
|
|
4620
4693
|
{
|
|
@@ -4628,8 +4701,8 @@ function bo(e) {
|
|
|
4628
4701
|
)
|
|
4629
4702
|
);
|
|
4630
4703
|
}
|
|
4631
|
-
function
|
|
4632
|
-
n(r + 1), window.addEventListener("message", u),
|
|
4704
|
+
function y(j) {
|
|
4705
|
+
n(r + 1), window.addEventListener("message", u), yo(), xo({
|
|
4633
4706
|
...e.locale ? {
|
|
4634
4707
|
locale: e.locale
|
|
4635
4708
|
} : {},
|
|
@@ -4641,100 +4714,100 @@ function bo(e) {
|
|
|
4641
4714
|
} : {}
|
|
4642
4715
|
}), Object.values(
|
|
4643
4716
|
e.builderContextSignal.componentInfos
|
|
4644
|
-
).forEach((
|
|
4717
|
+
).forEach((T) => {
|
|
4645
4718
|
var M;
|
|
4646
|
-
const
|
|
4647
|
-
(M = window.parent) == null || M.postMessage(
|
|
4719
|
+
const C = Gr(T);
|
|
4720
|
+
(M = window.parent) == null || M.postMessage(C, "*");
|
|
4648
4721
|
}), window.addEventListener(
|
|
4649
4722
|
"builder:component:stateChangeListenerActivated",
|
|
4650
|
-
|
|
4723
|
+
G
|
|
4651
4724
|
);
|
|
4652
4725
|
}
|
|
4653
|
-
function K(
|
|
4654
|
-
const
|
|
4655
|
-
`builder.preview.${
|
|
4656
|
-
),
|
|
4657
|
-
|
|
4726
|
+
function K(j) {
|
|
4727
|
+
const T = new URL(location.href).searchParams, C = T.get("builder.preview"), M = T.get(
|
|
4728
|
+
`builder.preview.${C}`
|
|
4729
|
+
), V = T.get("apiKey") || T.get("builder.space");
|
|
4730
|
+
C === e.model && V === e.apiKey && (!e.content || M === e.content.id) && dr({
|
|
4658
4731
|
model: e.model,
|
|
4659
4732
|
apiKey: e.apiKey,
|
|
4660
4733
|
apiVersion: e.builderContextSignal.apiVersion
|
|
4661
|
-
}).then((
|
|
4662
|
-
|
|
4734
|
+
}).then((U) => {
|
|
4735
|
+
U && i(U);
|
|
4663
4736
|
});
|
|
4664
4737
|
}
|
|
4665
|
-
return
|
|
4666
|
-
var
|
|
4667
|
-
return (
|
|
4738
|
+
return ee(() => {
|
|
4739
|
+
var j;
|
|
4740
|
+
return (j = t.current) == null || j.addEventListener(
|
|
4668
4741
|
"initeditingbldr",
|
|
4669
|
-
|
|
4742
|
+
y
|
|
4670
4743
|
), () => {
|
|
4671
|
-
var
|
|
4672
|
-
return (
|
|
4744
|
+
var T;
|
|
4745
|
+
return (T = t.current) == null ? void 0 : T.removeEventListener(
|
|
4673
4746
|
"initeditingbldr",
|
|
4674
|
-
|
|
4747
|
+
y
|
|
4675
4748
|
);
|
|
4676
4749
|
};
|
|
4677
|
-
}, []),
|
|
4678
|
-
var
|
|
4679
|
-
return (
|
|
4750
|
+
}, []), ee(() => {
|
|
4751
|
+
var j;
|
|
4752
|
+
return (j = t.current) == null || j.addEventListener(
|
|
4680
4753
|
"initpreviewingbldr",
|
|
4681
4754
|
K
|
|
4682
4755
|
), () => {
|
|
4683
|
-
var
|
|
4684
|
-
return (
|
|
4756
|
+
var T;
|
|
4757
|
+
return (T = t.current) == null ? void 0 : T.removeEventListener(
|
|
4685
4758
|
"initpreviewingbldr",
|
|
4686
4759
|
K
|
|
4687
4760
|
);
|
|
4688
4761
|
};
|
|
4689
|
-
}, []),
|
|
4690
|
-
var
|
|
4691
|
-
if (
|
|
4692
|
-
if (
|
|
4693
|
-
const M = (
|
|
4762
|
+
}, []), ee(() => {
|
|
4763
|
+
var j, T;
|
|
4764
|
+
if (Ie()) {
|
|
4765
|
+
if (Ee() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && dt(e.canTrack)) {
|
|
4766
|
+
const M = (j = e.builderContextSignal.content) == null ? void 0 : j.testVariationId, V = (T = e.builderContextSignal.content) == null ? void 0 : T.id, U = e.apiKey;
|
|
4694
4767
|
Kn({
|
|
4695
4768
|
type: "impression",
|
|
4696
4769
|
canTrack: !0,
|
|
4697
|
-
contentId:
|
|
4698
|
-
apiKey:
|
|
4699
|
-
variationId: M !==
|
|
4770
|
+
contentId: V,
|
|
4771
|
+
apiKey: U,
|
|
4772
|
+
variationId: M !== V ? M : void 0
|
|
4700
4773
|
});
|
|
4701
4774
|
}
|
|
4702
4775
|
Kr() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
4703
4776
|
}
|
|
4704
|
-
}, []),
|
|
4705
|
-
e.apiKey ||
|
|
4777
|
+
}, []), ee(() => {
|
|
4778
|
+
e.apiKey || Fe.error(
|
|
4706
4779
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4707
|
-
), f(),
|
|
4708
|
-
}, []),
|
|
4780
|
+
), f(), H(), G();
|
|
4781
|
+
}, []), ee(() => {
|
|
4709
4782
|
e.content && i(e.content);
|
|
4710
|
-
}, [e.content]),
|
|
4711
|
-
}, [a]),
|
|
4783
|
+
}, [e.content]), ee(() => {
|
|
4784
|
+
}, [a]), ee(() => {
|
|
4712
4785
|
f();
|
|
4713
4786
|
}, [
|
|
4714
4787
|
(se = (ae = e.builderContextSignal.content) == null ? void 0 : ae.data) == null ? void 0 : se.jsCode,
|
|
4715
4788
|
e.builderContextSignal.rootState
|
|
4716
|
-
]),
|
|
4717
|
-
|
|
4718
|
-
}, [(
|
|
4719
|
-
|
|
4720
|
-
}, [e.builderContextSignal.rootState]),
|
|
4721
|
-
|
|
4789
|
+
]), ee(() => {
|
|
4790
|
+
H();
|
|
4791
|
+
}, [(te = (L = e.builderContextSignal.content) == null ? void 0 : L.data) == null ? void 0 : te.httpRequests]), ee(() => {
|
|
4792
|
+
G();
|
|
4793
|
+
}, [e.builderContextSignal.rootState]), ee(() => () => {
|
|
4794
|
+
Ie() && (window.removeEventListener("message", u), window.removeEventListener(
|
|
4722
4795
|
"builder:component:stateChangeListenerActivated",
|
|
4723
|
-
|
|
4796
|
+
G
|
|
4724
4797
|
));
|
|
4725
|
-
}, []), /* @__PURE__ */
|
|
4798
|
+
}, []), /* @__PURE__ */ p(Zt.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ ur(
|
|
4726
4799
|
"div",
|
|
4727
4800
|
{
|
|
4728
4801
|
key: r,
|
|
4729
4802
|
ref: t,
|
|
4730
|
-
onClick: (
|
|
4731
|
-
"builder-content-id": (
|
|
4803
|
+
onClick: (j) => W(j),
|
|
4804
|
+
"builder-content-id": (I = e.builderContextSignal.content) == null ? void 0 : I.id,
|
|
4732
4805
|
"builder-model": e.model,
|
|
4733
4806
|
...e.showContent ? {} : {
|
|
4734
4807
|
hidden: !0,
|
|
4735
4808
|
"aria-hidden": !0
|
|
4736
4809
|
},
|
|
4737
|
-
className: e.
|
|
4810
|
+
className: `variant-${((Te = e.content) == null ? void 0 : Te.testVariationId) || ((D = e.content) == null ? void 0 : D.id)}`
|
|
4738
4811
|
},
|
|
4739
4812
|
e.children
|
|
4740
4813
|
) }) : null });
|
|
@@ -4775,7 +4848,7 @@ font-weight: ${s};
|
|
|
4775
4848
|
contentId: t
|
|
4776
4849
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4777
4850
|
function Co(e) {
|
|
4778
|
-
const [t, r] =
|
|
4851
|
+
const [t, r] = $(
|
|
4779
4852
|
() => `
|
|
4780
4853
|
${ko({
|
|
4781
4854
|
cssCode: e.cssCode,
|
|
@@ -4799,7 +4872,7 @@ ${wo({
|
|
|
4799
4872
|
}
|
|
4800
4873
|
`.trim()
|
|
4801
4874
|
);
|
|
4802
|
-
return /* @__PURE__ */
|
|
4875
|
+
return /* @__PURE__ */ p(gt, { styles: t });
|
|
4803
4876
|
}
|
|
4804
4877
|
const Eo = ({
|
|
4805
4878
|
content: e,
|
|
@@ -4807,22 +4880,17 @@ const Eo = ({
|
|
|
4807
4880
|
locale: r
|
|
4808
4881
|
}) => {
|
|
4809
4882
|
var a, s, u;
|
|
4810
|
-
const n = {};
|
|
4811
|
-
(
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
...(u = e == null ? void 0 : e.data) == null ? void 0 : u.state,
|
|
4883
|
+
const n = {}, i = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
4884
|
+
return (u = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || u.forEach((f) => {
|
|
4885
|
+
f.name && f.defaultValue !== void 0 && (n[f.name] = f.defaultValue);
|
|
4886
|
+
}), {
|
|
4887
|
+
...n,
|
|
4888
|
+
...i,
|
|
4817
4889
|
...t,
|
|
4818
4890
|
...r ? {
|
|
4819
4891
|
locale: r
|
|
4820
4892
|
} : {}
|
|
4821
4893
|
};
|
|
4822
|
-
return {
|
|
4823
|
-
...n,
|
|
4824
|
-
...i
|
|
4825
|
-
};
|
|
4826
4894
|
}, Io = ({
|
|
4827
4895
|
content: e,
|
|
4828
4896
|
data: t
|
|
@@ -4835,25 +4903,25 @@ const Eo = ({
|
|
|
4835
4903
|
meta: e == null ? void 0 : e.meta
|
|
4836
4904
|
} : void 0;
|
|
4837
4905
|
function lr(e) {
|
|
4838
|
-
var f,
|
|
4839
|
-
const [t, r] =
|
|
4906
|
+
var f, g, v, b, _, W, E;
|
|
4907
|
+
const [t, r] = $(
|
|
4840
4908
|
() => {
|
|
4841
|
-
var
|
|
4909
|
+
var P, H;
|
|
4842
4910
|
return ho({
|
|
4843
4911
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4844
|
-
variationId: (
|
|
4912
|
+
variationId: (P = e.content) == null ? void 0 : P.testVariationId,
|
|
4845
4913
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4846
|
-
contentId: (
|
|
4914
|
+
contentId: (H = e.content) == null ? void 0 : H.id
|
|
4847
4915
|
});
|
|
4848
4916
|
}
|
|
4849
4917
|
);
|
|
4850
|
-
function n(
|
|
4851
|
-
u((
|
|
4852
|
-
...
|
|
4853
|
-
rootState:
|
|
4918
|
+
function n(P) {
|
|
4919
|
+
u((H) => ({
|
|
4920
|
+
...H,
|
|
4921
|
+
rootState: P
|
|
4854
4922
|
}));
|
|
4855
4923
|
}
|
|
4856
|
-
const [i, a] =
|
|
4924
|
+
const [i, a] = $(
|
|
4857
4925
|
() => [
|
|
4858
4926
|
...ir(),
|
|
4859
4927
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
@@ -4864,16 +4932,16 @@ function lr(e) {
|
|
|
4864
4932
|
...Gn,
|
|
4865
4933
|
...e.customComponents || []
|
|
4866
4934
|
].reduce(
|
|
4867
|
-
(
|
|
4868
|
-
...
|
|
4869
|
-
[
|
|
4870
|
-
component:
|
|
4871
|
-
...zn(
|
|
4935
|
+
(P, { component: H, ...G }) => ({
|
|
4936
|
+
...P,
|
|
4937
|
+
[G.name]: {
|
|
4938
|
+
component: H,
|
|
4939
|
+
...zn(G)
|
|
4872
4940
|
}
|
|
4873
4941
|
}),
|
|
4874
4942
|
{}
|
|
4875
4943
|
)
|
|
4876
|
-
), [s, u] =
|
|
4944
|
+
), [s, u] = $(() => ({
|
|
4877
4945
|
content: Io({
|
|
4878
4946
|
content: e.content,
|
|
4879
4947
|
data: e.data
|
|
@@ -4898,15 +4966,15 @@ function lr(e) {
|
|
|
4898
4966
|
...Gn,
|
|
4899
4967
|
...e.customComponents || []
|
|
4900
4968
|
].reduce(
|
|
4901
|
-
(
|
|
4902
|
-
...
|
|
4903
|
-
[
|
|
4969
|
+
(P, { component: H, ...G }) => ({
|
|
4970
|
+
...P,
|
|
4971
|
+
[G.name]: zn(G)
|
|
4904
4972
|
}),
|
|
4905
4973
|
{}
|
|
4906
4974
|
),
|
|
4907
4975
|
inheritedStyles: {}
|
|
4908
4976
|
}));
|
|
4909
|
-
return /* @__PURE__ */
|
|
4977
|
+
return /* @__PURE__ */ p(
|
|
4910
4978
|
fr.Provider,
|
|
4911
4979
|
{
|
|
4912
4980
|
value: {
|
|
@@ -4923,24 +4991,23 @@ function lr(e) {
|
|
|
4923
4991
|
locale: e.locale,
|
|
4924
4992
|
includeRefs: e.includeRefs,
|
|
4925
4993
|
enrich: e.enrich,
|
|
4926
|
-
classNameProp: e.classNameProp,
|
|
4927
4994
|
showContent: e.showContent,
|
|
4928
4995
|
builderContextSignal: s,
|
|
4929
4996
|
setBuilderContextSignal: u,
|
|
4930
4997
|
children: [
|
|
4931
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
4932
|
-
/* @__PURE__ */
|
|
4998
|
+
e.isSsrAbTest ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(Yt, { scriptStr: t }) }) : null,
|
|
4999
|
+
/* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
4933
5000
|
Co,
|
|
4934
5001
|
{
|
|
4935
5002
|
contentId: (f = s.content) == null ? void 0 : f.id,
|
|
4936
|
-
cssCode: (
|
|
4937
|
-
customFonts: (
|
|
5003
|
+
cssCode: (v = (g = s.content) == null ? void 0 : g.data) == null ? void 0 : v.cssCode,
|
|
5004
|
+
customFonts: (_ = (b = s.content) == null ? void 0 : b.data) == null ? void 0 : _.customFonts
|
|
4938
5005
|
}
|
|
4939
5006
|
) }),
|
|
4940
|
-
/* @__PURE__ */
|
|
5007
|
+
/* @__PURE__ */ p(
|
|
4941
5008
|
fn,
|
|
4942
5009
|
{
|
|
4943
|
-
blocks: (
|
|
5010
|
+
blocks: (E = (W = s.content) == null ? void 0 : W.data) == null ? void 0 : E.blocks,
|
|
4944
5011
|
context: s,
|
|
4945
5012
|
registeredComponents: i
|
|
4946
5013
|
}
|
|
@@ -4952,54 +5019,53 @@ function lr(e) {
|
|
|
4952
5019
|
);
|
|
4953
5020
|
}
|
|
4954
5021
|
function Ir(e) {
|
|
4955
|
-
var s, u
|
|
4956
|
-
const [t, r] =
|
|
4957
|
-
() =>
|
|
5022
|
+
var s, u;
|
|
5023
|
+
const [t, r] = $(
|
|
5024
|
+
() => lo({
|
|
4958
5025
|
canTrack: dt(e.canTrack),
|
|
4959
5026
|
content: e.content
|
|
4960
5027
|
})
|
|
4961
5028
|
);
|
|
4962
5029
|
function n() {
|
|
4963
|
-
var
|
|
5030
|
+
var f;
|
|
4964
5031
|
return fo(
|
|
4965
|
-
ut(e.content).map((
|
|
4966
|
-
id:
|
|
4967
|
-
testRatio:
|
|
5032
|
+
ut(e.content).map((g) => ({
|
|
5033
|
+
id: g.testVariationId,
|
|
5034
|
+
testRatio: g.testRatio
|
|
4968
5035
|
})),
|
|
4969
|
-
((
|
|
5036
|
+
((f = e.content) == null ? void 0 : f.id) || ""
|
|
4970
5037
|
);
|
|
4971
5038
|
}
|
|
4972
5039
|
function i() {
|
|
4973
|
-
return ut(e.content).map((
|
|
5040
|
+
return ut(e.content).map((f) => `.variant-${f.testVariationId} { display: none; } `).join("");
|
|
4974
5041
|
}
|
|
4975
5042
|
function a() {
|
|
4976
|
-
var
|
|
5043
|
+
var f;
|
|
4977
5044
|
return t ? {
|
|
4978
5045
|
...e.content,
|
|
4979
|
-
testVariationId: (
|
|
5046
|
+
testVariationId: (f = e.content) == null ? void 0 : f.id
|
|
4980
5047
|
} : Xr({
|
|
4981
5048
|
item: e.content,
|
|
4982
5049
|
canTrack: dt(e.canTrack)
|
|
4983
5050
|
});
|
|
4984
5051
|
}
|
|
4985
|
-
return
|
|
4986
|
-
}, []), /* @__PURE__ */ Z(
|
|
4987
|
-
!e.__isNestedRender && tt !== "reactNative" ? /* @__PURE__ */
|
|
4988
|
-
t ? /* @__PURE__ */ Z(
|
|
4989
|
-
/* @__PURE__ */
|
|
5052
|
+
return ee(() => {
|
|
5053
|
+
}, []), /* @__PURE__ */ Z(N, { children: [
|
|
5054
|
+
!e.__isNestedRender && tt !== "reactNative" ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(Yt, { scriptStr: uo() }) }) : null,
|
|
5055
|
+
t ? /* @__PURE__ */ Z(N, { children: [
|
|
5056
|
+
/* @__PURE__ */ p(
|
|
4990
5057
|
gt,
|
|
4991
5058
|
{
|
|
4992
5059
|
id: `variants-styles-${(s = e.content) == null ? void 0 : s.id}`,
|
|
4993
5060
|
styles: i()
|
|
4994
5061
|
}
|
|
4995
5062
|
),
|
|
4996
|
-
/* @__PURE__ */
|
|
4997
|
-
(u = ut(e.content)) == null ? void 0 : u.map((
|
|
5063
|
+
/* @__PURE__ */ p(Yt, { scriptStr: n() }),
|
|
5064
|
+
(u = ut(e.content)) == null ? void 0 : u.map((f) => /* @__PURE__ */ p(
|
|
4998
5065
|
lr,
|
|
4999
5066
|
{
|
|
5000
|
-
content:
|
|
5067
|
+
content: f,
|
|
5001
5068
|
showContent: !1,
|
|
5002
|
-
classNameProp: void 0,
|
|
5003
5069
|
model: e.model,
|
|
5004
5070
|
data: e.data,
|
|
5005
5071
|
context: e.context,
|
|
@@ -5012,14 +5078,13 @@ function Ir(e) {
|
|
|
5012
5078
|
enrich: e.enrich,
|
|
5013
5079
|
isSsrAbTest: t
|
|
5014
5080
|
},
|
|
5015
|
-
|
|
5081
|
+
f.testVariationId
|
|
5016
5082
|
))
|
|
5017
5083
|
] }) : null,
|
|
5018
|
-
/* @__PURE__ */
|
|
5084
|
+
/* @__PURE__ */ p(
|
|
5019
5085
|
lr,
|
|
5020
5086
|
{
|
|
5021
5087
|
content: a(),
|
|
5022
|
-
classNameProp: `variant-${(f = e.content) == null ? void 0 : f.id}`,
|
|
5023
5088
|
showContent: !0,
|
|
5024
5089
|
model: e.model,
|
|
5025
5090
|
data: e.data,
|
|
@@ -5052,21 +5117,21 @@ const To = async ({
|
|
|
5052
5117
|
}
|
|
5053
5118
|
}
|
|
5054
5119
|
}).catch((r) => {
|
|
5055
|
-
|
|
5120
|
+
Fe.error("Could not fetch symbol content: ", r);
|
|
5056
5121
|
});
|
|
5057
5122
|
};
|
|
5058
5123
|
function jo(e) {
|
|
5059
5124
|
var a, s, u;
|
|
5060
5125
|
function t() {
|
|
5061
|
-
var f,
|
|
5126
|
+
var f, g;
|
|
5062
5127
|
return [
|
|
5063
5128
|
e.attributes.className,
|
|
5064
5129
|
"builder-symbol",
|
|
5065
5130
|
(f = e.symbol) != null && f.inline ? "builder-inline-symbol" : void 0,
|
|
5066
|
-
(
|
|
5131
|
+
(g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5067
5132
|
].filter(Boolean).join(" ");
|
|
5068
5133
|
}
|
|
5069
|
-
const [r, n] =
|
|
5134
|
+
const [r, n] = $(() => {
|
|
5070
5135
|
var f;
|
|
5071
5136
|
return (f = e.symbol) == null ? void 0 : f.content;
|
|
5072
5137
|
});
|
|
@@ -5078,10 +5143,10 @@ function jo(e) {
|
|
|
5078
5143
|
f && n(f);
|
|
5079
5144
|
});
|
|
5080
5145
|
}
|
|
5081
|
-
return
|
|
5082
|
-
}, []),
|
|
5146
|
+
return ee(() => {
|
|
5147
|
+
}, []), ee(() => {
|
|
5083
5148
|
i();
|
|
5084
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
5149
|
+
}, [e.symbol]), /* @__PURE__ */ p("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ p(
|
|
5085
5150
|
Ir,
|
|
5086
5151
|
{
|
|
5087
5152
|
__isNestedRender: !0,
|
|
@@ -5102,14 +5167,14 @@ function jo(e) {
|
|
|
5102
5167
|
const Po = fn, No = Ir;
|
|
5103
5168
|
export {
|
|
5104
5169
|
fn as Blocks,
|
|
5105
|
-
|
|
5170
|
+
Yr as Button,
|
|
5106
5171
|
Ui as Columns,
|
|
5107
5172
|
Ir as Content,
|
|
5108
5173
|
Bi as Fragment,
|
|
5109
|
-
|
|
5174
|
+
Vi as Image,
|
|
5110
5175
|
Po as RenderBlocks,
|
|
5111
5176
|
No as RenderContent,
|
|
5112
|
-
|
|
5177
|
+
Li as Section,
|
|
5113
5178
|
jo as Symbol,
|
|
5114
5179
|
ro as Text,
|
|
5115
5180
|
oo as Video,
|
|
@@ -5118,12 +5183,12 @@ export {
|
|
|
5118
5183
|
Bo as fetchBuilderProps,
|
|
5119
5184
|
_o as fetchEntries,
|
|
5120
5185
|
dr as fetchOneEntry,
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5186
|
+
Do as getAllContent,
|
|
5187
|
+
Vo as getBuilderSearchParams,
|
|
5188
|
+
Lo as getContent,
|
|
5189
|
+
Ee as isEditing,
|
|
5125
5190
|
Kr as isPreviewing,
|
|
5126
5191
|
Hr as register,
|
|
5127
|
-
|
|
5192
|
+
$o as setEditorSettings,
|
|
5128
5193
|
Wo as track
|
|
5129
5194
|
};
|