@builder.io/sdk-react-nextjs 0.14.17 → 0.14.20
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/{node/USE_CLIENT_BUNDLE-8dadab11.js → browser/USE_CLIENT_BUNDLE-b0af90c6.js} +251 -247
- package/lib/browser/USE_CLIENT_BUNDLE-eb52194d.cjs +21 -0
- package/lib/{edge/USE_SERVER_BUNDLE-4035cf43.cjs → browser/USE_SERVER_BUNDLE-719f53b1.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-6b33cfd7.js → browser/USE_SERVER_BUNDLE-d83b7d23.js} +1 -1
- package/lib/browser/bundle-12d2c3ee.cjs +169 -0
- package/lib/browser/{bundle-974bbd75.js → bundle-83df769b.js} +590 -578
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +4 -4
- package/lib/{browser/USE_CLIENT_BUNDLE-f685a480.js → edge/USE_CLIENT_BUNDLE-2d9b453e.js} +251 -247
- package/lib/edge/USE_CLIENT_BUNDLE-47285217.cjs +21 -0
- package/lib/{node/USE_SERVER_BUNDLE-d847a064.cjs → edge/USE_SERVER_BUNDLE-9e66cbc6.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-d7d118c1.js → edge/USE_SERVER_BUNDLE-c879ad04.js} +1 -1
- package/lib/edge/{bundle-0e4ba4de.js → bundle-73367f5c.js} +1016 -1004
- package/lib/edge/bundle-8a8fdc14.cjs +189 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +4 -4
- package/lib/{edge/USE_CLIENT_BUNDLE-bf35f13e.js → node/USE_CLIENT_BUNDLE-68277019.js} +251 -247
- package/lib/node/USE_CLIENT_BUNDLE-8d2c6823.cjs +21 -0
- package/lib/{browser/USE_SERVER_BUNDLE-fbe70d66.js → node/USE_SERVER_BUNDLE-84ab22ef.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-1ee4e92a.cjs → node/USE_SERVER_BUNDLE-a4d10e9b.cjs} +1 -1
- package/lib/node/{bundle-a8217ddb.js → bundle-08369562.js} +256 -242
- package/lib/node/{bundle-39fe7680.cjs → bundle-832f5a95.cjs} +18 -18
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +4 -4
- package/package.json +1 -1
- package/types/cjs/blocks/columns/columns.types.d.ts +1 -1
- package/types/cjs/blocks/columns/helpers.d.ts +1 -0
- package/types/cjs/blocks/tabs/component-info.d.ts +2 -0
- package/types/cjs/blocks/tabs/index.d.ts +1 -0
- package/types/cjs/blocks/tabs/tabs.d.ts +4 -0
- package/types/cjs/blocks/tabs/tabs.types.d.ts +13 -0
- package/types/cjs/blocks/text/text.types.d.ts +2 -1
- package/types/cjs/components/block/block.helpers.d.ts +4 -2
- package/types/cjs/components/content/components/styles.helpers.d.ts +1 -0
- package/types/cjs/components/dynamic-div.d.ts +15 -0
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/types/targets.d.ts +1 -1
- package/types/esm/blocks/columns/columns.types.d.ts +1 -1
- package/types/esm/blocks/columns/helpers.d.ts +1 -0
- package/types/esm/blocks/tabs/component-info.d.ts +2 -0
- package/types/esm/blocks/tabs/index.d.ts +1 -0
- package/types/esm/blocks/tabs/tabs.d.ts +4 -0
- package/types/esm/blocks/tabs/tabs.types.d.ts +13 -0
- package/types/esm/blocks/text/text.types.d.ts +2 -1
- package/types/esm/components/block/block.helpers.d.ts +4 -2
- package/types/esm/components/content/components/styles.helpers.d.ts +1 -0
- package/types/esm/components/dynamic-div.d.ts +15 -0
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/types/targets.d.ts +1 -1
- package/lib/browser/USE_CLIENT_BUNDLE-f11159f6.cjs +0 -21
- package/lib/browser/bundle-e5f3c905.cjs +0 -169
- package/lib/edge/USE_CLIENT_BUNDLE-22f09854.cjs +0 -21
- package/lib/edge/bundle-15a88622.cjs +0 -189
- package/lib/node/USE_CLIENT_BUNDLE-e62d9c72.cjs +0 -21
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as I, Fragment as ee, jsxs as xe } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { LRUCache as ro } from "lru-cache";
|
|
4
|
+
import { I as oo, B as io, a as ao, D as so, C as lo, E as co, b as uo, V as fo, c as po, F as ho, d as mo, S as go, e as yo } from "./USE_CLIENT_BUNDLE-2d9b453e.js";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
const vo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]),
|
|
7
|
-
switch (
|
|
6
|
+
const vo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ja = (e) => typeof e == "string" && vo.has(e.toLowerCase()), me = "rsc", Yt = () => {
|
|
7
|
+
switch (me) {
|
|
8
8
|
case "react":
|
|
9
9
|
case "reactNative":
|
|
10
10
|
case "rsc":
|
|
@@ -13,6 +13,7 @@ const vo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr",
|
|
|
13
13
|
case "vue":
|
|
14
14
|
case "solid":
|
|
15
15
|
case "qwik":
|
|
16
|
+
case "angular":
|
|
16
17
|
return "class";
|
|
17
18
|
}
|
|
18
19
|
};
|
|
@@ -27,11 +28,11 @@ function bo(e) {
|
|
|
27
28
|
builderBlock: e
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
|
-
const
|
|
31
|
-
log: (...e) => console.log(
|
|
32
|
-
error: (...e) => console.error(
|
|
33
|
-
warn: (...e) => console.warn(
|
|
34
|
-
debug: (...e) => console.debug(
|
|
31
|
+
const lt = "[Builder.io]: ", Z = {
|
|
32
|
+
log: (...e) => console.log(lt, ...e),
|
|
33
|
+
error: (...e) => console.error(lt, ...e),
|
|
34
|
+
warn: (...e) => console.warn(lt, ...e),
|
|
35
|
+
debug: (...e) => console.debug(lt, ...e)
|
|
35
36
|
};
|
|
36
37
|
function G() {
|
|
37
38
|
return typeof window < "u" && typeof document < "u";
|
|
@@ -73,7 +74,7 @@ const xo = () => {
|
|
|
73
74
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
74
75
|
},
|
|
75
76
|
any() {
|
|
76
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
77
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || me === "reactNative";
|
|
77
78
|
}
|
|
78
79
|
}, n = e.match(/Tablet|iPad/i), r = xo();
|
|
79
80
|
return {
|
|
@@ -152,7 +153,7 @@ const hr = (e, t, n) => {
|
|
|
152
153
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
153
154
|
return r.slice(0, -1).reduce((o, i, s) => Object(o[i]) === o[i] ? o[i] : o[i] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
154
155
|
};
|
|
155
|
-
var
|
|
156
|
+
var B, To = function(e) {
|
|
156
157
|
function t(a) {
|
|
157
158
|
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && to.test(String.fromCharCode(a));
|
|
158
159
|
}
|
|
@@ -160,17 +161,17 @@ var U, To = function(e) {
|
|
|
160
161
|
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Wn.test(String.fromCharCode(a));
|
|
161
162
|
}
|
|
162
163
|
function r(a, l) {
|
|
163
|
-
for (var c =
|
|
164
|
-
|
|
165
|
-
var W =
|
|
164
|
+
for (var c = y, d = 1, C = 0; ; ) {
|
|
165
|
+
st.lastIndex = C;
|
|
166
|
+
var W = st.exec(c);
|
|
166
167
|
if (W && W.index < a)
|
|
167
|
-
++d,
|
|
168
|
+
++d, C = W.index + W[0].length;
|
|
168
169
|
else
|
|
169
170
|
break;
|
|
170
171
|
}
|
|
171
172
|
throw c = {
|
|
172
173
|
line: d,
|
|
173
|
-
ab: a -
|
|
174
|
+
ab: a - C
|
|
174
175
|
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = a, l.X = c, l.o = f, l;
|
|
175
176
|
}
|
|
176
177
|
function o(a) {
|
|
@@ -182,35 +183,35 @@ var U, To = function(e) {
|
|
|
182
183
|
};
|
|
183
184
|
}
|
|
184
185
|
function i() {
|
|
185
|
-
this.line = Se, this.ab = f -
|
|
186
|
+
this.line = Se, this.ab = f - le;
|
|
186
187
|
}
|
|
187
188
|
function s(a, l) {
|
|
188
|
-
Ce = f,
|
|
189
|
+
Ce = f, A.C && (Tt = new i()), k = a, p(), te = l, Me = a.m;
|
|
189
190
|
}
|
|
190
191
|
function u() {
|
|
191
|
-
for (var a = f, l =
|
|
192
|
-
++f, c =
|
|
193
|
-
|
|
192
|
+
for (var a = f, l = A.va && A.C && new i(), c = y.charCodeAt(f += 2); f < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
193
|
+
++f, c = y.charCodeAt(f);
|
|
194
|
+
A.va && A.va(!1, y.slice(a + 2, f), a, f, l, A.C && new i());
|
|
194
195
|
}
|
|
195
196
|
function p() {
|
|
196
197
|
for (; f < ke; ) {
|
|
197
|
-
var a =
|
|
198
|
+
var a = y.charCodeAt(f);
|
|
198
199
|
if (a === 32)
|
|
199
200
|
++f;
|
|
200
201
|
else if (a === 13)
|
|
201
|
-
++f, a =
|
|
202
|
+
++f, a = y.charCodeAt(f), a === 10 && ++f, A.C && (++Se, le = f);
|
|
202
203
|
else if (a === 10 || a === 8232 || a === 8233)
|
|
203
|
-
++f,
|
|
204
|
+
++f, A.C && (++Se, le = f);
|
|
204
205
|
else if (8 < a && 14 > a)
|
|
205
206
|
++f;
|
|
206
207
|
else if (a === 47)
|
|
207
|
-
if (a =
|
|
208
|
+
if (a = y.charCodeAt(f + 1), a === 42) {
|
|
208
209
|
a = void 0;
|
|
209
|
-
var l =
|
|
210
|
-
if (d === -1 && r(f - 2, "Unterminated comment"), f = d + 2,
|
|
211
|
-
for (
|
|
212
|
-
++Se,
|
|
213
|
-
|
|
210
|
+
var l = A.va && A.C && new i(), c = f, d = y.indexOf("*/", f += 2);
|
|
211
|
+
if (d === -1 && r(f - 2, "Unterminated comment"), f = d + 2, A.C)
|
|
212
|
+
for (st.lastIndex = c; (a = st.exec(y)) && a.index < f; )
|
|
213
|
+
++Se, le = a.index + a[0].length;
|
|
214
|
+
A.va && A.va(!0, y.slice(c + 2, d), c, f, l, A.C && new i());
|
|
214
215
|
} else if (a === 47)
|
|
215
216
|
u();
|
|
216
217
|
else
|
|
@@ -223,17 +224,17 @@ var U, To = function(e) {
|
|
|
223
224
|
break;
|
|
224
225
|
}
|
|
225
226
|
}
|
|
226
|
-
function
|
|
227
|
+
function b(a) {
|
|
227
228
|
switch (a) {
|
|
228
229
|
case 46:
|
|
229
|
-
a =
|
|
230
|
+
a = y.charCodeAt(f + 1), 48 <= a && 57 >= a ? j(!0) : (++f, s(Bn));
|
|
230
231
|
return;
|
|
231
232
|
case 40:
|
|
232
|
-
return ++f, s(
|
|
233
|
+
return ++f, s(ce);
|
|
233
234
|
case 41:
|
|
234
|
-
return ++f, s(
|
|
235
|
+
return ++f, s(oe);
|
|
235
236
|
case 59:
|
|
236
|
-
return ++f, s(
|
|
237
|
+
return ++f, s(ue);
|
|
237
238
|
case 44:
|
|
238
239
|
return ++f, s(ye);
|
|
239
240
|
case 91:
|
|
@@ -247,10 +248,10 @@ var U, To = function(e) {
|
|
|
247
248
|
case 58:
|
|
248
249
|
return ++f, s(_e);
|
|
249
250
|
case 63:
|
|
250
|
-
return ++f, s(
|
|
251
|
+
return ++f, s(Un);
|
|
251
252
|
case 48:
|
|
252
|
-
if (a =
|
|
253
|
-
f += 2, a =
|
|
253
|
+
if (a = y.charCodeAt(f + 1), a === 120 || a === 88) {
|
|
254
|
+
f += 2, a = N(16), a === null && r(_ + 2, "Expected hexadecimal number"), n(y.charCodeAt(f)) && r(f, "Identifier directly after number"), s(De, a);
|
|
254
255
|
return;
|
|
255
256
|
}
|
|
256
257
|
case 49:
|
|
@@ -262,24 +263,24 @@ var U, To = function(e) {
|
|
|
262
263
|
case 55:
|
|
263
264
|
case 56:
|
|
264
265
|
case 57:
|
|
265
|
-
return
|
|
266
|
+
return j(!1);
|
|
266
267
|
case 34:
|
|
267
268
|
case 39:
|
|
268
269
|
f++;
|
|
269
270
|
for (var l = ""; ; ) {
|
|
270
|
-
f >= ke && r(
|
|
271
|
-
var c =
|
|
271
|
+
f >= ke && r(_, "Unterminated string constant");
|
|
272
|
+
var c = y.charCodeAt(f);
|
|
272
273
|
if (c === a) {
|
|
273
|
-
++f, s(
|
|
274
|
+
++f, s(rt, l);
|
|
274
275
|
break;
|
|
275
276
|
}
|
|
276
277
|
if (c === 92) {
|
|
277
|
-
c =
|
|
278
|
-
var d = /^[0-7]+/.exec(
|
|
278
|
+
c = y.charCodeAt(++f);
|
|
279
|
+
var d = /^[0-7]+/.exec(y.slice(f, f + 3));
|
|
279
280
|
for (d && (d = d[0]); d && 255 < parseInt(d, 8); )
|
|
280
281
|
d = d.slice(0, -1);
|
|
281
282
|
if (d === "0" && (d = null), ++f, d)
|
|
282
|
-
|
|
283
|
+
Q && r(f - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(d, 8)), f += d.length - 1;
|
|
283
284
|
else
|
|
284
285
|
switch (c) {
|
|
285
286
|
case 110:
|
|
@@ -290,13 +291,13 @@ var U, To = function(e) {
|
|
|
290
291
|
l += "\r";
|
|
291
292
|
break;
|
|
292
293
|
case 120:
|
|
293
|
-
l += String.fromCharCode(
|
|
294
|
+
l += String.fromCharCode(R(2));
|
|
294
295
|
break;
|
|
295
296
|
case 117:
|
|
296
|
-
l += String.fromCharCode(
|
|
297
|
+
l += String.fromCharCode(R(4));
|
|
297
298
|
break;
|
|
298
299
|
case 85:
|
|
299
|
-
l += String.fromCharCode(
|
|
300
|
+
l += String.fromCharCode(R(8));
|
|
300
301
|
break;
|
|
301
302
|
case 116:
|
|
302
303
|
l += " ";
|
|
@@ -314,70 +315,70 @@ var U, To = function(e) {
|
|
|
314
315
|
l += "\0";
|
|
315
316
|
break;
|
|
316
317
|
case 13:
|
|
317
|
-
|
|
318
|
+
y.charCodeAt(f) === 10 && ++f;
|
|
318
319
|
case 10:
|
|
319
|
-
|
|
320
|
+
A.C && (le = f, ++Se);
|
|
320
321
|
break;
|
|
321
322
|
default:
|
|
322
323
|
l += String.fromCharCode(c);
|
|
323
324
|
}
|
|
324
325
|
} else
|
|
325
|
-
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(
|
|
326
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(_, "Unterminated string constant"), l += String.fromCharCode(c), ++f;
|
|
326
327
|
}
|
|
327
328
|
return;
|
|
328
329
|
case 47:
|
|
329
|
-
a =
|
|
330
|
+
a = y.charCodeAt(f + 1), Me ? (++f, O()) : a === 61 ? m(we, 2) : m(Fn, 1);
|
|
330
331
|
return;
|
|
331
332
|
case 37:
|
|
332
333
|
case 42:
|
|
333
|
-
|
|
334
|
+
y.charCodeAt(f + 1) === 61 ? m(we, 2) : m(qr, 1);
|
|
334
335
|
return;
|
|
335
336
|
case 124:
|
|
336
337
|
case 38:
|
|
337
|
-
l =
|
|
338
|
+
l = y.charCodeAt(f + 1), l === a ? m(a === 124 ? Dn : Ln, 2) : l === 61 ? m(we, 2) : m(a === 124 ? Hr : Gr, 1);
|
|
338
339
|
return;
|
|
339
340
|
case 94:
|
|
340
|
-
|
|
341
|
+
y.charCodeAt(f + 1) === 61 ? m(we, 2) : m(Kr, 1);
|
|
341
342
|
return;
|
|
342
343
|
case 43:
|
|
343
344
|
case 45:
|
|
344
|
-
l =
|
|
345
|
+
l = y.charCodeAt(f + 1), l === a ? l === 45 && y.charCodeAt(f + 2) === 62 && at.test(y.slice(ge, f)) ? (f += 3, u(), p(), x()) : m($r, 2) : l === 61 ? m(we, 2) : m(zr, 1);
|
|
345
346
|
return;
|
|
346
347
|
case 60:
|
|
347
348
|
case 62:
|
|
348
|
-
l =
|
|
349
|
+
l = y.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && y.charCodeAt(f + 2) === 62 ? 3 : 2, y.charCodeAt(f + c) === 61 ? m(we, c + 1) : m(Jr, c)) : l === 33 && a === 60 && y.charCodeAt(f + 2) === 45 && y.charCodeAt(f + 3) === 45 ? (f += 4, u(), p(), x()) : (l === 61 && (c = y.charCodeAt(f + 2) === 61 ? 3 : 2), m(Yr, c));
|
|
349
350
|
return;
|
|
350
351
|
case 61:
|
|
351
352
|
case 33:
|
|
352
|
-
|
|
353
|
+
y.charCodeAt(f + 1) === 61 ? m(Xr, y.charCodeAt(f + 2) === 61 ? 3 : 2) : m(a === 61 ? Mn : Vn, 1);
|
|
353
354
|
return;
|
|
354
355
|
case 126:
|
|
355
356
|
return m(Vn, 1);
|
|
356
357
|
}
|
|
357
358
|
return !1;
|
|
358
359
|
}
|
|
359
|
-
function
|
|
360
|
-
if (a ? f =
|
|
361
|
-
return
|
|
360
|
+
function x(a) {
|
|
361
|
+
if (a ? f = _ + 1 : _ = f, A.C && (It = new i()), a)
|
|
362
|
+
return O();
|
|
362
363
|
if (f >= ke)
|
|
363
364
|
return s(jt);
|
|
364
|
-
if (a =
|
|
365
|
-
return
|
|
366
|
-
if (
|
|
365
|
+
if (a = y.charCodeAt(f), n(a) || a === 92)
|
|
366
|
+
return T();
|
|
367
|
+
if (b(a) === !1) {
|
|
367
368
|
if (a = String.fromCharCode(a), a === "\\" || Wn.test(a))
|
|
368
|
-
return
|
|
369
|
+
return T();
|
|
369
370
|
r(f, "Unexpected character '" + a + "'");
|
|
370
371
|
}
|
|
371
372
|
}
|
|
372
373
|
function m(a, l) {
|
|
373
|
-
var c =
|
|
374
|
+
var c = y.slice(f, f + l);
|
|
374
375
|
f += l, s(a, c);
|
|
375
376
|
}
|
|
376
|
-
function
|
|
377
|
+
function O() {
|
|
377
378
|
for (var a, l, c = f; ; ) {
|
|
378
379
|
f >= ke && r(c, "Unterminated regexp");
|
|
379
|
-
var d =
|
|
380
|
-
if (
|
|
380
|
+
var d = y.charAt(f);
|
|
381
|
+
if (at.test(d) && r(c, "Unterminated regexp"), a)
|
|
381
382
|
a = !1;
|
|
382
383
|
else {
|
|
383
384
|
if (d === "[")
|
|
@@ -390,321 +391,321 @@ var U, To = function(e) {
|
|
|
390
391
|
}
|
|
391
392
|
++f;
|
|
392
393
|
}
|
|
393
|
-
a =
|
|
394
|
+
a = y.slice(c, f), ++f, (l = Y()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
394
395
|
try {
|
|
395
|
-
var
|
|
396
|
+
var C = new RegExp(a, l);
|
|
396
397
|
} catch (W) {
|
|
397
398
|
throw W instanceof SyntaxError && r(c, W.message), W;
|
|
398
399
|
}
|
|
399
|
-
s(mn,
|
|
400
|
+
s(mn, C);
|
|
400
401
|
}
|
|
401
|
-
function
|
|
402
|
-
for (var c = f, d = 0,
|
|
403
|
-
var
|
|
404
|
-
if (
|
|
402
|
+
function N(a, l) {
|
|
403
|
+
for (var c = f, d = 0, C = l === void 0 ? 1 / 0 : l, W = 0; W < C; ++W) {
|
|
404
|
+
var J = y.charCodeAt(f);
|
|
405
|
+
if (J = 97 <= J ? J - 97 + 10 : 65 <= J ? J - 65 + 10 : 48 <= J && 57 >= J ? J - 48 : 1 / 0, J >= a)
|
|
405
406
|
break;
|
|
406
|
-
++f, d = d * a +
|
|
407
|
+
++f, d = d * a + J;
|
|
407
408
|
}
|
|
408
409
|
return f === c || l !== void 0 && f - c !== l ? null : d;
|
|
409
410
|
}
|
|
410
|
-
function
|
|
411
|
-
var l = f, c = !1, d =
|
|
412
|
-
a ||
|
|
413
|
-
var
|
|
414
|
-
c ?
|
|
411
|
+
function j(a) {
|
|
412
|
+
var l = f, c = !1, d = y.charCodeAt(f) === 48;
|
|
413
|
+
a || N(10) !== null || r(l, "Invalid number"), y.charCodeAt(f) === 46 && (++f, N(10), c = !0), a = y.charCodeAt(f), (a === 69 || a === 101) && (a = y.charCodeAt(++f), a !== 43 && a !== 45 || ++f, N(10) === null && r(l, "Invalid number"), c = !0), n(y.charCodeAt(f)) && r(f, "Identifier directly after number"), a = y.slice(l, f);
|
|
414
|
+
var C;
|
|
415
|
+
c ? C = parseFloat(a) : d && a.length !== 1 ? /[89]/.test(a) || Q ? r(l, "Invalid number") : C = parseInt(a, 8) : C = parseInt(a, 10), s(De, C);
|
|
415
416
|
}
|
|
416
|
-
function
|
|
417
|
-
return a =
|
|
417
|
+
function R(a) {
|
|
418
|
+
return a = N(16, a), a === null && r(_, "Bad character escape sequence"), a;
|
|
418
419
|
}
|
|
419
|
-
function
|
|
420
|
+
function Y() {
|
|
420
421
|
Te = !1;
|
|
421
422
|
for (var a, l = !0, c = f; ; ) {
|
|
422
|
-
var d =
|
|
423
|
+
var d = y.charCodeAt(f);
|
|
423
424
|
if (t(d))
|
|
424
|
-
Te && (a +=
|
|
425
|
+
Te && (a += y.charAt(f)), ++f;
|
|
425
426
|
else if (d === 92) {
|
|
426
|
-
Te || (a =
|
|
427
|
-
var
|
|
428
|
-
|
|
427
|
+
Te || (a = y.slice(c, f)), Te = !0, y.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, d = R(4);
|
|
428
|
+
var C = String.fromCharCode(d);
|
|
429
|
+
C || r(f - 1, "Invalid Unicode escape"), (l ? n(d) : t(d)) || r(f - 4, "Invalid Unicode escape"), a += C;
|
|
429
430
|
} else
|
|
430
431
|
break;
|
|
431
432
|
l = !1;
|
|
432
433
|
}
|
|
433
|
-
return Te ? a :
|
|
434
|
+
return Te ? a : y.slice(c, f);
|
|
434
435
|
}
|
|
435
|
-
function
|
|
436
|
-
var a =
|
|
436
|
+
function T() {
|
|
437
|
+
var a = Y(), l = Ee;
|
|
437
438
|
!Te && Qr(a) && (l = Wr[a]), s(l, a);
|
|
438
439
|
}
|
|
439
|
-
function
|
|
440
|
-
At =
|
|
440
|
+
function g() {
|
|
441
|
+
At = _, ge = Ce, Ot = Tt, x();
|
|
441
442
|
}
|
|
442
|
-
function
|
|
443
|
-
if (
|
|
444
|
-
for (; f <
|
|
445
|
-
|
|
446
|
-
`,
|
|
447
|
-
p(),
|
|
443
|
+
function U(a) {
|
|
444
|
+
if (Q = a, f = _, A.C)
|
|
445
|
+
for (; f < le; )
|
|
446
|
+
le = y.lastIndexOf(`
|
|
447
|
+
`, le - 2) + 1, --Se;
|
|
448
|
+
p(), x();
|
|
448
449
|
}
|
|
449
450
|
function M() {
|
|
450
|
-
this.type = null, this.start =
|
|
451
|
+
this.type = null, this.start = _, this.end = null;
|
|
451
452
|
}
|
|
452
|
-
function
|
|
453
|
+
function X() {
|
|
453
454
|
this.start = It, this.end = null, Et && (this.source = Et);
|
|
454
455
|
}
|
|
455
|
-
function
|
|
456
|
+
function V() {
|
|
456
457
|
var a = new M();
|
|
457
|
-
return
|
|
458
|
+
return A.C && (a.X = new X()), A.vb && (a.sourceFile = A.vb), A.Xa && (a.j = [_, 0]), a;
|
|
458
459
|
}
|
|
459
|
-
function
|
|
460
|
+
function ne(a) {
|
|
460
461
|
var l = new M();
|
|
461
|
-
return l.start = a.start,
|
|
462
|
+
return l.start = a.start, A.C && (l.X = new X(), l.X.start = a.X.start), A.Xa && (l.j = [a.j[0], 0]), l;
|
|
462
463
|
}
|
|
463
|
-
function
|
|
464
|
-
return a.type = l, a.end = ge,
|
|
464
|
+
function E(a, l) {
|
|
465
|
+
return a.type = l, a.end = ge, A.C && (a.X.end = Ot), A.Xa && (a.j[1] = ge), a;
|
|
465
466
|
}
|
|
466
|
-
function
|
|
467
|
+
function Qe(a) {
|
|
467
468
|
return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
|
|
468
469
|
}
|
|
469
470
|
function F(a) {
|
|
470
|
-
return
|
|
471
|
+
return k === a ? (g(), !0) : !1;
|
|
471
472
|
}
|
|
472
|
-
function
|
|
473
|
-
return !
|
|
473
|
+
function et() {
|
|
474
|
+
return !A.fc && (k === jt || k === Ie || at.test(y.slice(ge, _)));
|
|
474
475
|
}
|
|
475
476
|
function be() {
|
|
476
|
-
F(
|
|
477
|
+
F(ue) || et() || ae();
|
|
477
478
|
}
|
|
478
|
-
function
|
|
479
|
-
|
|
479
|
+
function D(a) {
|
|
480
|
+
k === a ? g() : ae();
|
|
480
481
|
}
|
|
481
|
-
function
|
|
482
|
-
r(
|
|
482
|
+
function ae() {
|
|
483
|
+
r(_, "Unexpected token");
|
|
483
484
|
}
|
|
484
|
-
function
|
|
485
|
-
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"),
|
|
485
|
+
function tt(a) {
|
|
486
|
+
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), Q && a.type === "Identifier" && it(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
486
487
|
}
|
|
487
|
-
function
|
|
488
|
-
(
|
|
489
|
-
var a =
|
|
488
|
+
function re() {
|
|
489
|
+
(k === Fn || k === we && te === "/=") && x(!0);
|
|
490
|
+
var a = k, l = V();
|
|
490
491
|
switch (a) {
|
|
491
492
|
case Rt:
|
|
492
493
|
case yn:
|
|
493
|
-
|
|
494
|
+
g();
|
|
494
495
|
var c = a === Rt;
|
|
495
|
-
F(
|
|
496
|
-
for (var d = 0; d <
|
|
497
|
-
var
|
|
498
|
-
if ((l.label === null ||
|
|
496
|
+
F(ue) || et() ? l.label = null : k !== Ee ? ae() : (l.label = se(), be());
|
|
497
|
+
for (var d = 0; d < L.length; ++d) {
|
|
498
|
+
var C = L[d];
|
|
499
|
+
if ((l.label === null || C.name === l.label.name) && (C.kind !== null && (c || C.kind === "loop") || l.label && c))
|
|
499
500
|
break;
|
|
500
501
|
}
|
|
501
|
-
return d ===
|
|
502
|
+
return d === L.length && r(l.start, "Unsyntactic " + a.l), E(l, c ? "BreakStatement" : "ContinueStatement");
|
|
502
503
|
case vn:
|
|
503
|
-
return
|
|
504
|
+
return g(), be(), E(l, "DebuggerStatement");
|
|
504
505
|
case Sn:
|
|
505
|
-
return
|
|
506
|
+
return g(), L.push(Dt), l.body = re(), L.pop(), D(Ft), l.test = Be(), be(), E(l, "DoWhileStatement");
|
|
506
507
|
case kn:
|
|
507
|
-
return
|
|
508
|
+
return g(), L.push(Dt), D(ce), k === ue ? bt(l, null) : k === Ut ? (a = V(), g(), pn(a, !0), E(a, "VariableDeclaration"), a.fa.length === 1 && F(ot) ? dn(l, a) : bt(l, a)) : (a = K(!1, !0), F(ot) ? (tt(a), dn(l, a)) : bt(l, a));
|
|
508
509
|
case Nt:
|
|
509
|
-
return
|
|
510
|
+
return g(), kt(l, !0);
|
|
510
511
|
case Cn:
|
|
511
|
-
return
|
|
512
|
+
return g(), l.test = Be(), l.da = re(), l.alternate = F(wn) ? re() : null, E(l, "IfStatement");
|
|
512
513
|
case En:
|
|
513
|
-
return Ve ||
|
|
514
|
-
case
|
|
515
|
-
for (
|
|
516
|
-
|
|
517
|
-
return d &&
|
|
514
|
+
return Ve || A.Ib || r(_, "'return' outside of function"), g(), F(ue) || et() ? l.K = null : (l.K = K(), be()), E(l, "ReturnStatement");
|
|
515
|
+
case Bt:
|
|
516
|
+
for (g(), l.Qb = Be(), l.tb = [], D(Le), L.push(no); k !== Ie; )
|
|
517
|
+
k === Pt || k === bn ? (a = k === Pt, d && E(d, "SwitchCase"), l.tb.push(d = V()), d.da = [], g(), a ? d.test = K() : (c && r(At, "Multiple default clauses"), c = !0, d.test = null), D(_e)) : (d || ae(), d.da.push(re()));
|
|
518
|
+
return d && E(d, "SwitchCase"), g(), L.pop(), E(l, "SwitchStatement");
|
|
518
519
|
case In:
|
|
519
|
-
return
|
|
520
|
+
return g(), at.test(y.slice(ge, _)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), E(l, "ThrowStatement");
|
|
520
521
|
case Tn:
|
|
521
|
-
return
|
|
522
|
-
case
|
|
523
|
-
return
|
|
522
|
+
return g(), l.block = Ue(), l.Ea = null, k === gn && (a = V(), g(), D(ce), a.Ua = se(), Q && it(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), D(oe), a.body = Ue(), l.Ea = E(a, "CatchClause")), l.fb = F(xn) ? Ue() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
523
|
+
case Ut:
|
|
524
|
+
return g(), pn(l), be(), E(l, "VariableDeclaration");
|
|
524
525
|
case Ft:
|
|
525
|
-
return
|
|
526
|
+
return g(), l.test = Be(), L.push(Dt), l.body = re(), L.pop(), E(l, "WhileStatement");
|
|
526
527
|
case An:
|
|
527
|
-
return
|
|
528
|
+
return Q && r(_, "'with' in strict mode"), g(), l.object = Be(), l.body = re(), E(l, "WithStatement");
|
|
528
529
|
case Le:
|
|
529
|
-
return
|
|
530
|
-
case
|
|
531
|
-
return
|
|
530
|
+
return Ue();
|
|
531
|
+
case ue:
|
|
532
|
+
return g(), E(l, "EmptyStatement");
|
|
532
533
|
default:
|
|
533
|
-
if (c = te,
|
|
534
|
-
for (d = 0; d <
|
|
535
|
-
|
|
536
|
-
return
|
|
534
|
+
if (c = te, C = K(), a === Ee && C.type === "Identifier" && F(_e)) {
|
|
535
|
+
for (d = 0; d < L.length; ++d)
|
|
536
|
+
L[d].name === c && r(C.start, "Label '" + c + "' is already declared");
|
|
537
|
+
return L.push({
|
|
537
538
|
name: c,
|
|
538
|
-
kind:
|
|
539
|
-
}), l.body =
|
|
539
|
+
kind: k.W ? "loop" : k === Bt ? "switch" : null
|
|
540
|
+
}), l.body = re(), L.pop(), l.label = C, E(l, "LabeledStatement");
|
|
540
541
|
}
|
|
541
|
-
return l.la =
|
|
542
|
+
return l.la = C, be(), E(l, "ExpressionStatement");
|
|
542
543
|
}
|
|
543
544
|
}
|
|
544
|
-
function
|
|
545
|
-
|
|
545
|
+
function Be() {
|
|
546
|
+
D(ce);
|
|
546
547
|
var a = K();
|
|
547
|
-
return
|
|
548
|
+
return D(oe), a;
|
|
548
549
|
}
|
|
549
|
-
function
|
|
550
|
-
var l =
|
|
551
|
-
for (l.body = [],
|
|
552
|
-
var
|
|
553
|
-
if (l.body.push(
|
|
550
|
+
function Ue(a) {
|
|
551
|
+
var l = V(), c = !0, d = !1;
|
|
552
|
+
for (l.body = [], D(Le); !F(Ie); ) {
|
|
553
|
+
var C = re();
|
|
554
|
+
if (l.body.push(C), c && a && Qe(C)) {
|
|
554
555
|
var W = d;
|
|
555
|
-
|
|
556
|
+
U(d = !0);
|
|
556
557
|
}
|
|
557
558
|
c = !1;
|
|
558
559
|
}
|
|
559
|
-
return d && !W &&
|
|
560
|
+
return d && !W && U(!1), E(l, "BlockStatement");
|
|
560
561
|
}
|
|
561
562
|
function bt(a, l) {
|
|
562
|
-
return a.ua = l,
|
|
563
|
+
return a.ua = l, D(ue), a.test = k === ue ? null : K(), D(ue), a.update = k === oe ? null : K(), D(oe), a.body = re(), L.pop(), E(a, "ForStatement");
|
|
563
564
|
}
|
|
564
565
|
function dn(a, l) {
|
|
565
|
-
return a.left = l, a.right = K(),
|
|
566
|
+
return a.left = l, a.right = K(), D(oe), a.body = re(), L.pop(), E(a, "ForInStatement");
|
|
566
567
|
}
|
|
567
568
|
function pn(a, l) {
|
|
568
569
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
569
|
-
var c =
|
|
570
|
-
if (c.id =
|
|
570
|
+
var c = V();
|
|
571
|
+
if (c.id = se(), Q && it(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = F(Mn) ? K(!0, l) : null, a.fa.push(E(c, "VariableDeclarator")), !F(ye))
|
|
571
572
|
break;
|
|
572
573
|
}
|
|
573
574
|
}
|
|
574
575
|
function K(a, l) {
|
|
575
576
|
var c = St(l);
|
|
576
|
-
if (!a &&
|
|
577
|
-
for (a =
|
|
577
|
+
if (!a && k === ye) {
|
|
578
|
+
for (a = ne(c), a.xb = [c]; F(ye); )
|
|
578
579
|
a.xb.push(St(l));
|
|
579
|
-
return
|
|
580
|
+
return E(a, "SequenceExpression");
|
|
580
581
|
}
|
|
581
582
|
return c;
|
|
582
583
|
}
|
|
583
584
|
function St(a) {
|
|
584
585
|
var l = wt(xt(), -1, a);
|
|
585
|
-
if (F(
|
|
586
|
-
var c =
|
|
587
|
-
c.test = l, c.da = K(!0),
|
|
586
|
+
if (F(Un)) {
|
|
587
|
+
var c = ne(l);
|
|
588
|
+
c.test = l, c.da = K(!0), D(_e), c.alternate = K(!0, a), l = E(c, "ConditionalExpression");
|
|
588
589
|
}
|
|
589
|
-
return
|
|
590
|
+
return k.Cb ? (c = ne(l), c.operator = te, c.left = l, g(), c.right = St(a), tt(l), E(c, "AssignmentExpression")) : l;
|
|
590
591
|
}
|
|
591
592
|
function wt(a, l, c) {
|
|
592
|
-
var d =
|
|
593
|
-
if (d !== null && (!c ||
|
|
594
|
-
var
|
|
595
|
-
return
|
|
593
|
+
var d = k.L;
|
|
594
|
+
if (d !== null && (!c || k !== ot) && d > l) {
|
|
595
|
+
var C = ne(a);
|
|
596
|
+
return C.left = a, C.operator = te, a = k, g(), C.right = wt(xt(), d, c), d = E(C, a === Dn || a === Ln ? "LogicalExpression" : "BinaryExpression"), wt(d, l, c);
|
|
596
597
|
}
|
|
597
598
|
return a;
|
|
598
599
|
}
|
|
599
600
|
function xt() {
|
|
600
|
-
if (
|
|
601
|
-
var a =
|
|
602
|
-
return a.operator = te, Me = a.prefix = !0,
|
|
601
|
+
if (k.prefix) {
|
|
602
|
+
var a = V(), l = k.$b;
|
|
603
|
+
return a.operator = te, Me = a.prefix = !0, g(), a.K = xt(), l ? tt(a.K) : Q && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), E(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
603
604
|
}
|
|
604
|
-
for (l = Fe(
|
|
605
|
-
a =
|
|
605
|
+
for (l = Fe(nt()); k.cc && !et(); )
|
|
606
|
+
a = ne(l), a.operator = te, a.prefix = !1, a.K = l, tt(l), g(), l = E(a, "UpdateExpression");
|
|
606
607
|
return l;
|
|
607
608
|
}
|
|
608
609
|
function Fe(a, l) {
|
|
609
|
-
if (F(
|
|
610
|
-
var c =
|
|
611
|
-
return c.object = a, c.Wa =
|
|
610
|
+
if (F(Bn)) {
|
|
611
|
+
var c = ne(a);
|
|
612
|
+
return c.object = a, c.Wa = se(!0), c.bb = !1, Fe(E(c, "MemberExpression"), l);
|
|
612
613
|
}
|
|
613
|
-
return F(Mt) ? (c =
|
|
614
|
+
return F(Mt) ? (c = ne(a), c.object = a, c.Wa = K(), c.bb = !0, D(Vt), Fe(E(c, "MemberExpression"), l)) : !l && F(ce) ? (c = ne(a), c.callee = a, c.arguments = Ct(oe, !1), Fe(E(c, "CallExpression"), l)) : a;
|
|
614
615
|
}
|
|
615
|
-
function
|
|
616
|
-
switch (
|
|
616
|
+
function nt() {
|
|
617
|
+
switch (k) {
|
|
617
618
|
case jn:
|
|
618
|
-
var a =
|
|
619
|
-
return
|
|
619
|
+
var a = V();
|
|
620
|
+
return g(), E(a, "ThisExpression");
|
|
620
621
|
case Ee:
|
|
621
|
-
return
|
|
622
|
+
return se();
|
|
622
623
|
case De:
|
|
623
|
-
case
|
|
624
|
+
case rt:
|
|
624
625
|
case mn:
|
|
625
|
-
return a =
|
|
626
|
+
return a = V(), a.value = te, a.raw = y.slice(_, Ce), g(), E(a, "Literal");
|
|
626
627
|
case Rn:
|
|
627
628
|
case Pn:
|
|
628
629
|
case Nn:
|
|
629
|
-
return a =
|
|
630
|
-
case
|
|
630
|
+
return a = V(), a.value = k.$a, a.raw = k.l, g(), E(a, "Literal");
|
|
631
|
+
case ce:
|
|
631
632
|
a = It;
|
|
632
|
-
var l =
|
|
633
|
-
|
|
633
|
+
var l = _;
|
|
634
|
+
g();
|
|
634
635
|
var c = K();
|
|
635
|
-
return c.start = l, c.end = Ce,
|
|
636
|
+
return c.start = l, c.end = Ce, A.C && (c.X.start = a, c.X.end = Tt), A.Xa && (c.j = [l, Ce]), D(oe), c;
|
|
636
637
|
case Mt:
|
|
637
|
-
return a =
|
|
638
|
+
return a = V(), g(), a.elements = Ct(Vt, !0, !0), E(a, "ArrayExpression");
|
|
638
639
|
case Le:
|
|
639
|
-
for (a =
|
|
640
|
+
for (a = V(), l = !0, c = !1, a.h = [], g(); !F(Ie); ) {
|
|
640
641
|
if (l)
|
|
641
642
|
l = !1;
|
|
642
|
-
else if (
|
|
643
|
+
else if (D(ye), A.sb && F(Ie))
|
|
643
644
|
break;
|
|
644
645
|
var d = {
|
|
645
|
-
key:
|
|
646
|
-
},
|
|
646
|
+
key: k === De || k === rt ? nt() : se(!0)
|
|
647
|
+
}, C = !1;
|
|
647
648
|
if (F(_e)) {
|
|
648
649
|
d.value = K(!0);
|
|
649
650
|
var W = d.kind = "init";
|
|
650
651
|
} else
|
|
651
|
-
d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ?
|
|
652
|
-
if (d.key.type === "Identifier" && (
|
|
653
|
-
for (var
|
|
654
|
-
var Ae = a.h[
|
|
652
|
+
d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ? ae() : (C = c = !0, W = d.kind = d.key.name, d.key = k === De || k === rt ? nt() : se(!0), k !== ce && ae(), d.value = kt(V(), !1));
|
|
653
|
+
if (d.key.type === "Identifier" && (Q || c))
|
|
654
|
+
for (var J = 0; J < a.h.length; ++J) {
|
|
655
|
+
var Ae = a.h[J];
|
|
655
656
|
if (Ae.key.name === d.key.name) {
|
|
656
|
-
var Lt = W === Ae.kind ||
|
|
657
|
-
Lt && !
|
|
657
|
+
var Lt = W === Ae.kind || C && Ae.kind === "init" || W === "init" && (Ae.kind === "get" || Ae.kind === "set");
|
|
658
|
+
Lt && !Q && W === "init" && Ae.kind === "init" && (Lt = !1), Lt && r(d.key.start, "Redefinition of property");
|
|
658
659
|
}
|
|
659
660
|
}
|
|
660
661
|
a.h.push(d);
|
|
661
662
|
}
|
|
662
|
-
return
|
|
663
|
+
return E(a, "ObjectExpression");
|
|
663
664
|
case Nt:
|
|
664
|
-
return a =
|
|
665
|
+
return a = V(), g(), kt(a, !1);
|
|
665
666
|
case On:
|
|
666
|
-
return a =
|
|
667
|
+
return a = V(), g(), a.callee = Fe(nt(), !0), a.arguments = F(ce) ? Ct(oe, !1) : _r, E(a, "NewExpression");
|
|
667
668
|
}
|
|
668
|
-
|
|
669
|
+
ae();
|
|
669
670
|
}
|
|
670
671
|
function kt(a, l) {
|
|
671
|
-
|
|
672
|
+
k === Ee ? a.id = se() : l ? ae() : a.id = null, a.oa = [];
|
|
672
673
|
var c = !0;
|
|
673
|
-
for (
|
|
674
|
-
c ? c = !1 :
|
|
674
|
+
for (D(ce); !F(oe); )
|
|
675
|
+
c ? c = !1 : D(ye), a.oa.push(se());
|
|
675
676
|
c = Ve;
|
|
676
|
-
var d =
|
|
677
|
-
if (Ve = !0,
|
|
677
|
+
var d = L;
|
|
678
|
+
if (Ve = !0, L = [], a.body = Ue(!0), Ve = c, L = d, Q || a.body.body.length && Qe(a.body.body[0])) {
|
|
678
679
|
for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
|
|
679
|
-
if (d = 0 > c ? a.id : a.oa[c], (_n(d.name) ||
|
|
680
|
-
for (var
|
|
681
|
-
d.name === a.oa[
|
|
680
|
+
if (d = 0 > c ? a.id : a.oa[c], (_n(d.name) || it(d.name)) && r(d.start, "Defining '" + d.name + "' in strict mode"), 0 <= c)
|
|
681
|
+
for (var C = 0; C < c; ++C)
|
|
682
|
+
d.name === a.oa[C].name && r(d.start, "Argument name clash in strict mode");
|
|
682
683
|
}
|
|
683
|
-
return
|
|
684
|
+
return E(a, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
684
685
|
}
|
|
685
686
|
function Ct(a, l, c) {
|
|
686
|
-
for (var d = [],
|
|
687
|
-
if (
|
|
688
|
-
|
|
689
|
-
else if (
|
|
687
|
+
for (var d = [], C = !0; !F(a); ) {
|
|
688
|
+
if (C)
|
|
689
|
+
C = !1;
|
|
690
|
+
else if (D(ye), l && A.sb && F(a))
|
|
690
691
|
break;
|
|
691
|
-
d.push(c &&
|
|
692
|
+
d.push(c && k === ye ? null : K(!0));
|
|
692
693
|
}
|
|
693
694
|
return d;
|
|
694
695
|
}
|
|
695
|
-
function
|
|
696
|
-
var l =
|
|
697
|
-
return a &&
|
|
696
|
+
function se(a) {
|
|
697
|
+
var l = V();
|
|
698
|
+
return a && A.yb === "everywhere" && (a = !1), k === Ee ? (!a && (A.yb && Zr(te) || Q && _n(te)) && y.slice(_, Ce).indexOf("\\") === -1 && r(_, "The keyword '" + te + "' is reserved"), l.name = te) : a && k.l ? l.name = k.l : ae(), Me = !1, g(), E(l, "Identifier");
|
|
698
699
|
}
|
|
699
700
|
e.version = "0.5.0";
|
|
700
|
-
var
|
|
701
|
+
var A, y = "", ke, Et;
|
|
701
702
|
e.parse = function(a, l) {
|
|
702
|
-
|
|
703
|
+
y = String(a), ke = y.length, A = l || {};
|
|
703
704
|
for (var c in hn)
|
|
704
|
-
Object.prototype.hasOwnProperty.call(
|
|
705
|
-
for (Et =
|
|
706
|
-
c =
|
|
707
|
-
return
|
|
705
|
+
Object.prototype.hasOwnProperty.call(A, c) || (A[c] = hn[c]);
|
|
706
|
+
for (Et = A.sourceFile, Se = 1, f = le = 0, Me = !0, p(), c = A.dc, At = ge = f, A.C && (Ot = new i()), Ve = Q = !1, L = [], x(), a = c || V(), l = !0, c || (a.body = []); k !== jt; )
|
|
707
|
+
c = re(), a.body.push(c), l && Qe(c) && U(!0), l = !1;
|
|
708
|
+
return E(a, "Program");
|
|
708
709
|
};
|
|
709
710
|
var hn = {
|
|
710
711
|
fc: !1,
|
|
@@ -717,11 +718,11 @@ var U, To = function(e) {
|
|
|
717
718
|
dc: null,
|
|
718
719
|
sourceFile: null,
|
|
719
720
|
vb: null
|
|
720
|
-
}, f = 0,
|
|
721
|
+
}, f = 0, _ = 0, Ce = 0, It, Tt, k, te, Me, Se, le, At = 0, ge = 0, Ot, Ve, L, Q, _r = [], De = {
|
|
721
722
|
type: "num"
|
|
722
723
|
}, mn = {
|
|
723
724
|
type: "regexp"
|
|
724
|
-
},
|
|
725
|
+
}, rt = {
|
|
725
726
|
type: "string"
|
|
726
727
|
}, Ee = {
|
|
727
728
|
type: "name"
|
|
@@ -758,14 +759,14 @@ var U, To = function(e) {
|
|
|
758
759
|
}, En = {
|
|
759
760
|
l: "return",
|
|
760
761
|
m: !0
|
|
761
|
-
},
|
|
762
|
+
}, Bt = {
|
|
762
763
|
l: "switch"
|
|
763
764
|
}, In = {
|
|
764
765
|
l: "throw",
|
|
765
766
|
m: !0
|
|
766
767
|
}, Tn = {
|
|
767
768
|
l: "try"
|
|
768
|
-
},
|
|
769
|
+
}, Ut = {
|
|
769
770
|
l: "var"
|
|
770
771
|
}, Ft = {
|
|
771
772
|
l: "while",
|
|
@@ -786,7 +787,7 @@ var U, To = function(e) {
|
|
|
786
787
|
}, Nn = {
|
|
787
788
|
l: "false",
|
|
788
789
|
$a: !1
|
|
789
|
-
},
|
|
790
|
+
}, ot = {
|
|
790
791
|
l: "in",
|
|
791
792
|
L: 7,
|
|
792
793
|
m: !0
|
|
@@ -804,17 +805,17 @@ var U, To = function(e) {
|
|
|
804
805
|
function: Nt,
|
|
805
806
|
if: Cn,
|
|
806
807
|
return: En,
|
|
807
|
-
switch:
|
|
808
|
+
switch: Bt,
|
|
808
809
|
throw: In,
|
|
809
810
|
try: Tn,
|
|
810
|
-
var:
|
|
811
|
+
var: Ut,
|
|
811
812
|
while: Ft,
|
|
812
813
|
with: An,
|
|
813
814
|
null: Rn,
|
|
814
815
|
true: Pn,
|
|
815
816
|
false: Nn,
|
|
816
817
|
new: On,
|
|
817
|
-
in:
|
|
818
|
+
in: ot,
|
|
818
819
|
instanceof: {
|
|
819
820
|
l: "instanceof",
|
|
820
821
|
L: 7,
|
|
@@ -846,23 +847,23 @@ var U, To = function(e) {
|
|
|
846
847
|
m: !0
|
|
847
848
|
}, Ie = {
|
|
848
849
|
type: "}"
|
|
849
|
-
},
|
|
850
|
+
}, ce = {
|
|
850
851
|
type: "(",
|
|
851
852
|
m: !0
|
|
852
|
-
},
|
|
853
|
+
}, oe = {
|
|
853
854
|
type: ")"
|
|
854
855
|
}, ye = {
|
|
855
856
|
type: ",",
|
|
856
857
|
m: !0
|
|
857
|
-
},
|
|
858
|
+
}, ue = {
|
|
858
859
|
type: ";",
|
|
859
860
|
m: !0
|
|
860
861
|
}, _e = {
|
|
861
862
|
type: ":",
|
|
862
863
|
m: !0
|
|
863
|
-
}, Un = {
|
|
864
|
-
type: "."
|
|
865
864
|
}, Bn = {
|
|
865
|
+
type: "."
|
|
866
|
+
}, Un = {
|
|
866
867
|
type: "?",
|
|
867
868
|
m: !0
|
|
868
869
|
}, Fn = {
|
|
@@ -912,7 +913,7 @@ var U, To = function(e) {
|
|
|
912
913
|
}, qr = {
|
|
913
914
|
L: 10,
|
|
914
915
|
m: !0
|
|
915
|
-
}, Zr = o("class enum extends super const export import"), _n = o("implements interface let package private protected public static yield"),
|
|
916
|
+
}, Zr = o("class enum extends super const export import"), _n = o("implements interface let package private protected public static yield"), it = o("eval arguments"), Qr = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), eo = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Wn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), to = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), at = /[\n\r\u2028\u2029]/, st = /\r\n|[\n\r\u2028\u2029]/g, Te, Dt = {
|
|
916
917
|
kind: "loop"
|
|
917
918
|
}, no = {
|
|
918
919
|
kind: "switch"
|
|
@@ -935,7 +936,7 @@ function h(e, t) {
|
|
|
935
936
|
for (s in this)
|
|
936
937
|
typeof this[s] == "function" && (i = s.match(e)) && (this.rb[i[1]] = this[s].bind(this));
|
|
937
938
|
this.N = Ht(this, this.ra, null), this.Na = this.N.object, this.ra = Re(this.ba.join(`
|
|
938
|
-
`), "polyfills"), this.ba = void 0,
|
|
939
|
+
`), "polyfills"), this.ba = void 0, ht(this.ra), i = new S(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new S(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
939
940
|
}
|
|
940
941
|
var $n = {
|
|
941
942
|
C: !0,
|
|
@@ -944,11 +945,11 @@ var $n = {
|
|
|
944
945
|
configurable: !0,
|
|
945
946
|
enumerable: !0,
|
|
946
947
|
writable: !1
|
|
947
|
-
},
|
|
948
|
+
}, v = {
|
|
948
949
|
configurable: !0,
|
|
949
950
|
enumerable: !1,
|
|
950
951
|
writable: !0
|
|
951
|
-
},
|
|
952
|
+
}, q = {
|
|
952
953
|
configurable: !0,
|
|
953
954
|
enumerable: !1,
|
|
954
955
|
writable: !1
|
|
@@ -968,7 +969,7 @@ var $n = {
|
|
|
968
969
|
VALUE_IN_DESCRIPTOR: !0
|
|
969
970
|
}, je = {
|
|
970
971
|
REGEXP_TIMEOUT: !0
|
|
971
|
-
}, Kn = [],
|
|
972
|
+
}, Kn = [], de = null, Xe = null, ve = typeof globalThis > "u" ? void 0 : globalThis, Ao = ["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();", "};"];
|
|
972
973
|
function zt(e) {
|
|
973
974
|
var t = e >>> 0;
|
|
974
975
|
return t === Number(e) ? t : NaN;
|
|
@@ -977,29 +978,29 @@ function Ye(e) {
|
|
|
977
978
|
var t = e >>> 0;
|
|
978
979
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
979
980
|
}
|
|
980
|
-
function
|
|
981
|
+
function ht(e, t, n) {
|
|
981
982
|
t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
|
|
982
983
|
for (var r in e)
|
|
983
984
|
if (r !== "loc" && e.hasOwnProperty(r)) {
|
|
984
985
|
var o = e[r];
|
|
985
|
-
o && typeof o == "object" &&
|
|
986
|
+
o && typeof o == "object" && ht(o, t, n);
|
|
986
987
|
}
|
|
987
988
|
}
|
|
988
989
|
h.prototype.REGEXP_MODE = 2;
|
|
989
990
|
h.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
990
991
|
h.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
992
|
+
B = h.prototype;
|
|
993
|
+
B.P = !1;
|
|
994
|
+
B.Ka = !1;
|
|
995
|
+
B.Kb = 0;
|
|
996
|
+
B.ic = 0;
|
|
996
997
|
function Re(e, t) {
|
|
997
998
|
var n = {}, r;
|
|
998
999
|
for (r in $n)
|
|
999
1000
|
n[r] = $n[r];
|
|
1000
1001
|
return n.sourceFile = t, ve.j.parse(e, n);
|
|
1001
1002
|
}
|
|
1002
|
-
|
|
1003
|
+
B.Jb = function(e) {
|
|
1003
1004
|
var t = this.o[0];
|
|
1004
1005
|
if (!t || t.node.type !== "Program")
|
|
1005
1006
|
throw Error("Expecting original AST to start with a Program node");
|
|
@@ -1007,7 +1008,7 @@ U.Jb = function(e) {
|
|
|
1007
1008
|
throw Error("Expecting new AST to start with a Program node");
|
|
1008
1009
|
ze(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
1009
1010
|
};
|
|
1010
|
-
|
|
1011
|
+
B.lb = function() {
|
|
1011
1012
|
var e = this.o, t;
|
|
1012
1013
|
do {
|
|
1013
1014
|
var n = e[e.length - 1];
|
|
@@ -1020,7 +1021,7 @@ U.lb = function() {
|
|
|
1020
1021
|
n = null;
|
|
1021
1022
|
else {
|
|
1022
1023
|
this.ca.shift(), 0 <= n.interval && vr(this, n, n.interval);
|
|
1023
|
-
var r = new
|
|
1024
|
+
var r = new S(n.node, n.scope);
|
|
1024
1025
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1025
1026
|
}
|
|
1026
1027
|
if (!n)
|
|
@@ -1045,38 +1046,38 @@ U.lb = function() {
|
|
|
1045
1046
|
} while (!r.end && t > Date.now());
|
|
1046
1047
|
return !0;
|
|
1047
1048
|
};
|
|
1048
|
-
|
|
1049
|
+
B.Eb = function() {
|
|
1049
1050
|
for (; !this.za && this.lb(); )
|
|
1050
1051
|
;
|
|
1051
1052
|
return this.za;
|
|
1052
1053
|
};
|
|
1053
1054
|
function Oo(e, t) {
|
|
1054
|
-
e.g(t, "NaN", NaN, We), e.g(t, "Infinity", 1 / 0, We), e.g(t, "undefined", void 0, We), e.g(t, "window", t, Jt), e.g(t, "this", t, We), e.g(t, "self", t), e.M = new
|
|
1055
|
+
e.g(t, "NaN", NaN, We), e.g(t, "Infinity", 1 / 0, We), e.g(t, "undefined", void 0, We), e.g(t, "window", t, Jt), e.g(t, "this", t, We), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), jo(e, t), Ro(e, t), t.xa = e.M, e.g(t, "constructor", e.v, v), Po(e, t), No(e, t), Bo(e, t), Uo(e, t), Fo(e, t), Mo(e, t), Vo(e, t), Do(e, t), Lo(e, t);
|
|
1055
1056
|
var n = e.i(function() {
|
|
1056
1057
|
throw EvalError("Can't happen");
|
|
1057
1058
|
}, !1);
|
|
1058
|
-
n.eval = !0, e.g(t, "eval", n,
|
|
1059
|
+
n.eval = !0, e.g(t, "eval", n, v), e.g(t, "parseInt", e.i(parseInt, !1), v), e.g(t, "parseFloat", e.i(parseFloat, !1), v), e.g(t, "isNaN", e.i(isNaN, !1), v), e.g(t, "isFinite", e.i(isFinite, !1), v);
|
|
1059
1060
|
for (var r = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], o = 0; o < r.length; o++)
|
|
1060
1061
|
n = function(i) {
|
|
1061
1062
|
return function(s) {
|
|
1062
1063
|
try {
|
|
1063
1064
|
return i(s);
|
|
1064
1065
|
} catch (u) {
|
|
1065
|
-
|
|
1066
|
+
w(e, e.Gb, u.message);
|
|
1066
1067
|
}
|
|
1067
1068
|
};
|
|
1068
|
-
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1),
|
|
1069
|
+
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), v);
|
|
1069
1070
|
n = function(i) {
|
|
1070
1071
|
return Gn(e, !1, arguments);
|
|
1071
|
-
}, e.g(t, "setTimeout", e.i(n, !1),
|
|
1072
|
+
}, e.g(t, "setTimeout", e.i(n, !1), v), n = function(i) {
|
|
1072
1073
|
return Gn(e, !0, arguments);
|
|
1073
|
-
}, e.g(t, "setInterval", e.i(n, !1),
|
|
1074
|
+
}, e.g(t, "setInterval", e.i(n, !1), v), n = function(i) {
|
|
1074
1075
|
Xn(e, i);
|
|
1075
|
-
}, e.g(t, "clearTimeout", e.i(n, !1),
|
|
1076
|
+
}, e.g(t, "clearTimeout", e.i(n, !1), v), n = function(i) {
|
|
1076
1077
|
Xn(e, i);
|
|
1077
|
-
}, e.g(t, "clearInterval", e.i(n, !1),
|
|
1078
|
+
}, e.g(t, "clearInterval", e.i(n, !1), v), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
1078
1079
|
}
|
|
1079
|
-
|
|
1080
|
+
B.Wb = 0;
|
|
1080
1081
|
function jo(e, t) {
|
|
1081
1082
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1082
1083
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
@@ -1084,21 +1085,21 @@ function jo(e, t) {
|
|
|
1084
1085
|
s = s.split(/\s*,\s*/);
|
|
1085
1086
|
for (var u = 0; u < s.length; u++) {
|
|
1086
1087
|
var p = s[u];
|
|
1087
|
-
n.test(p) ||
|
|
1088
|
+
n.test(p) || w(e, e.T, "Invalid function argument: " + p);
|
|
1088
1089
|
}
|
|
1089
1090
|
s = s.join(", ");
|
|
1090
1091
|
}
|
|
1091
1092
|
try {
|
|
1092
|
-
var
|
|
1093
|
-
} catch (
|
|
1094
|
-
|
|
1093
|
+
var b = Re("(function(" + s + ") {" + i + "})", "function" + e.Wb++);
|
|
1094
|
+
} catch (x) {
|
|
1095
|
+
w(e, e.T, "Invalid code: " + x.message);
|
|
1095
1096
|
}
|
|
1096
|
-
return
|
|
1097
|
+
return b.body.length !== 1 && w(e, e.T, "Invalid code in function body"), Qt(e, b.body[0].la, e.N, "anonymous");
|
|
1097
1098
|
};
|
|
1098
|
-
e.O = e.i(r, !0), e.g(t, "Function", e.O,
|
|
1099
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0,
|
|
1099
|
+
e.O = e.i(r, !0), e.g(t, "Function", e.O, v), e.g(e.O, "prototype", e.Z, v), e.g(e.Z, "constructor", e.O, v), e.Z.Ta = function() {
|
|
1100
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, q), e.Z.H = "Function", r = function(o, i) {
|
|
1100
1101
|
var s = e.o[e.o.length - 1];
|
|
1101
|
-
s.U = this, s.B = o, s.F = [], i != null && (i instanceof
|
|
1102
|
+
s.U = this, s.B = o, s.F = [], i != null && (i instanceof P ? s.F = gr(e, i) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1102
1103
|
}, $(e, e.O, "apply", r), r = function(o) {
|
|
1103
1104
|
var i = e.o[e.o.length - 1];
|
|
1104
1105
|
i.U = this, i.B = o, i.F = [];
|
|
@@ -1107,49 +1108,49 @@ function jo(e, t) {
|
|
|
1107
1108
|
i.eb = !1;
|
|
1108
1109
|
}, $(e, e.O, "call", r), 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;", "}", "});", ""), r = function() {
|
|
1109
1110
|
return String(this);
|
|
1110
|
-
}, $(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1),
|
|
1111
|
+
}, $(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), v), r = function() {
|
|
1111
1112
|
return this.valueOf();
|
|
1112
|
-
}, $(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1),
|
|
1113
|
+
}, $(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), v);
|
|
1113
1114
|
}
|
|
1114
1115
|
function Ro(e, t) {
|
|
1115
1116
|
function n(o) {
|
|
1116
|
-
o != null ||
|
|
1117
|
+
o != null || w(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1117
1118
|
}
|
|
1118
1119
|
var r = function(o) {
|
|
1119
1120
|
if (o == null)
|
|
1120
|
-
return
|
|
1121
|
-
if (!(o instanceof
|
|
1122
|
-
var i = e.s(
|
|
1121
|
+
return he(e) ? this : e.s(e.M);
|
|
1122
|
+
if (!(o instanceof P)) {
|
|
1123
|
+
var i = e.s(pe(e, o));
|
|
1123
1124
|
return i.data = o, i;
|
|
1124
1125
|
}
|
|
1125
1126
|
return o;
|
|
1126
1127
|
};
|
|
1127
|
-
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M,
|
|
1128
|
-
return n(o),
|
|
1129
|
-
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1),
|
|
1130
|
-
return n(o), o instanceof
|
|
1131
|
-
}, e.g(e.v, "keys", e.i(r, !1),
|
|
1132
|
-
return o === null ? e.s(null) : (o instanceof
|
|
1133
|
-
}, e.g(e.v, "create", e.i(r, !1),
|
|
1134
|
-
return i = String(i), o instanceof
|
|
1135
|
-
}, e.g(e.v, "defineProperty", e.i(r, !1),
|
|
1136
|
-
if (o instanceof
|
|
1128
|
+
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, v), e.g(e.M, "constructor", e.v, v), e.g(t, "Object", e.v, v), r = function(o) {
|
|
1129
|
+
return n(o), fe(e, Object.getOwnPropertyNames(o instanceof P ? o.h : o));
|
|
1130
|
+
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), v), r = function(o) {
|
|
1131
|
+
return n(o), o instanceof P && (o = o.h), fe(e, Object.keys(o));
|
|
1132
|
+
}, e.g(e.v, "keys", e.i(r, !1), v), r = function(o) {
|
|
1133
|
+
return o === null ? e.s(null) : (o instanceof P || w(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1134
|
+
}, e.g(e.v, "create", e.i(r, !1), v), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, i, s) {
|
|
1135
|
+
return i = String(i), o instanceof P || w(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof P || w(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || w(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, Je, s.h), o;
|
|
1136
|
+
}, e.g(e.v, "defineProperty", e.i(r, !1), v), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, i) {
|
|
1137
|
+
if (o instanceof P || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
|
|
1137
1138
|
var s = Object.getOwnPropertyDescriptor(o.h, i), u = o.V[i];
|
|
1138
1139
|
return o = o.Y[i], i = e.s(e.M), u || o ? (e.g(i, "get", u), e.g(i, "set", o)) : (e.g(i, "value", s.value), e.g(i, "writable", s.writable)), e.g(i, "configurable", s.configurable), e.g(i, "enumerable", s.enumerable), i;
|
|
1139
1140
|
}
|
|
1140
|
-
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1),
|
|
1141
|
-
return n(o),
|
|
1142
|
-
}, e.g(e.v, "getPrototypeOf", e.i(r, !1),
|
|
1141
|
+
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), v), r = function(o) {
|
|
1142
|
+
return n(o), pe(e, o);
|
|
1143
|
+
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), v), r = function(o) {
|
|
1143
1144
|
return !!o && !o.preventExtensions;
|
|
1144
|
-
}, e.g(e.v, "isExtensible", e.i(r, !1),
|
|
1145
|
-
return o instanceof
|
|
1146
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1),
|
|
1147
|
-
return n(this), this instanceof
|
|
1145
|
+
}, e.g(e.v, "isExtensible", e.i(r, !1), v), r = function(o) {
|
|
1146
|
+
return o instanceof P && (o.preventExtensions = !0), o;
|
|
1147
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), v), $(e, e.v, "toString", P.prototype.toString), $(e, e.v, "toLocaleString", P.prototype.toString), $(e, e.v, "valueOf", P.prototype.valueOf), r = function(o) {
|
|
1148
|
+
return n(this), this instanceof P ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1148
1149
|
}, $(e, e.v, "hasOwnProperty", r), r = function(o) {
|
|
1149
|
-
return n(this), this instanceof
|
|
1150
|
+
return n(this), this instanceof P ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1150
1151
|
}, $(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1151
1152
|
for (; ; ) {
|
|
1152
|
-
if (o =
|
|
1153
|
+
if (o = pe(e, o), !o)
|
|
1153
1154
|
return !1;
|
|
1154
1155
|
if (o === this)
|
|
1155
1156
|
return !0;
|
|
@@ -1158,9 +1159,9 @@ function Ro(e, t) {
|
|
|
1158
1159
|
}
|
|
1159
1160
|
function Po(e, t) {
|
|
1160
1161
|
var n = function(r) {
|
|
1161
|
-
var o =
|
|
1162
|
+
var o = he(e) ? this : Pe(e), i = arguments[0];
|
|
1162
1163
|
if (arguments.length === 1 && typeof i == "number")
|
|
1163
|
-
isNaN(zt(i)) &&
|
|
1164
|
+
isNaN(zt(i)) && w(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1164
1165
|
else {
|
|
1165
1166
|
for (i = 0; i < arguments.length; i++)
|
|
1166
1167
|
o.h[i] = arguments[i];
|
|
@@ -1168,9 +1169,9 @@ function Po(e, t) {
|
|
|
1168
1169
|
}
|
|
1169
1170
|
return o;
|
|
1170
1171
|
};
|
|
1171
|
-
e.qa = e.i(n, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa,
|
|
1172
|
+
e.qa = e.i(n, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, v), n = function(r) {
|
|
1172
1173
|
return r && r.H === "Array";
|
|
1173
|
-
}, e.g(e.qa, "isArray", e.i(n, !1),
|
|
1174
|
+
}, e.g(e.qa, "isArray", e.i(n, !1), v), e.g(e.La, "length", 0, {
|
|
1174
1175
|
configurable: !1,
|
|
1175
1176
|
enumerable: !1,
|
|
1176
1177
|
writable: !0
|
|
@@ -1178,55 +1179,55 @@ function Po(e, t) {
|
|
|
1178
1179
|
}
|
|
1179
1180
|
function No(e, t) {
|
|
1180
1181
|
var n = function(r) {
|
|
1181
|
-
return r = arguments.length ? ve.String(r) : "",
|
|
1182
|
+
return r = arguments.length ? ve.String(r) : "", he(e) ? (this.data = r, this) : r;
|
|
1182
1183
|
};
|
|
1183
|
-
for (e.J = e.i(n, !0), e.g(t, "String", e.J,
|
|
1184
|
+
for (e.J = e.i(n, !0), e.g(t, "String", e.J, v), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), v), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1184
1185
|
$(e, e.J, t[n], String.prototype[t[n]]);
|
|
1185
1186
|
n = function(r, o, i) {
|
|
1186
1187
|
o = e.R(o), i = e.R(i);
|
|
1187
1188
|
try {
|
|
1188
1189
|
return String(this).localeCompare(r, o, i);
|
|
1189
1190
|
} catch (s) {
|
|
1190
|
-
|
|
1191
|
+
w(e, e.D, "localeCompare: " + s.message);
|
|
1191
1192
|
}
|
|
1192
1193
|
}, $(e, e.J, "localeCompare", n), n = function(r, o, i) {
|
|
1193
1194
|
var s = String(this);
|
|
1194
1195
|
if (o = o ? Number(o) : void 0, H(e, r, e.I) && (r = r.data, He(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1195
|
-
if (
|
|
1196
|
+
if (de)
|
|
1196
1197
|
r = $e(e, "string.split(separator, limit)", {
|
|
1197
1198
|
string: s,
|
|
1198
1199
|
separator: r,
|
|
1199
1200
|
limit: o
|
|
1200
|
-
}, r, i), r !== je && i(
|
|
1201
|
+
}, r, i), r !== je && i(fe(e, r));
|
|
1201
1202
|
else {
|
|
1202
1203
|
var u = e.ha(), p = Ke(e, r, u, i);
|
|
1203
|
-
u.onmessage = function(
|
|
1204
|
-
clearTimeout(p), i(
|
|
1204
|
+
u.onmessage = function(b) {
|
|
1205
|
+
clearTimeout(p), i(fe(e, b.data));
|
|
1205
1206
|
}, u.postMessage(["split", s, r, o]);
|
|
1206
1207
|
}
|
|
1207
1208
|
return;
|
|
1208
1209
|
}
|
|
1209
|
-
r = s.split(r, o), i(
|
|
1210
|
+
r = s.split(r, o), i(fe(e, r));
|
|
1210
1211
|
}, Ge(e, e.J, "split", n), n = function(r, o) {
|
|
1211
1212
|
var i = String(this);
|
|
1212
1213
|
if (r = H(e, r, e.I) ? r.data : new RegExp(r), He(e, r, o), e.REGEXP_MODE === 2)
|
|
1213
|
-
if (
|
|
1214
|
+
if (de)
|
|
1214
1215
|
r = $e(e, "string.match(regexp)", {
|
|
1215
1216
|
string: i,
|
|
1216
1217
|
regexp: r
|
|
1217
|
-
}, r, o), r !== je && o(r &&
|
|
1218
|
+
}, r, o), r !== je && o(r && fe(e, r));
|
|
1218
1219
|
else {
|
|
1219
1220
|
var s = e.ha(), u = Ke(e, r, s, o);
|
|
1220
1221
|
s.onmessage = function(p) {
|
|
1221
|
-
clearTimeout(u), o(p.data &&
|
|
1222
|
+
clearTimeout(u), o(p.data && fe(e, p.data));
|
|
1222
1223
|
}, s.postMessage(["match", i, r]);
|
|
1223
1224
|
}
|
|
1224
1225
|
else
|
|
1225
|
-
r = i.match(r), o(r &&
|
|
1226
|
+
r = i.match(r), o(r && fe(e, r));
|
|
1226
1227
|
}, Ge(e, e.J, "match", n), n = function(r, o) {
|
|
1227
1228
|
var i = String(this);
|
|
1228
1229
|
if (H(e, r, e.I) ? r = r.data : r = new RegExp(r), He(e, r, o), e.REGEXP_MODE === 2)
|
|
1229
|
-
if (
|
|
1230
|
+
if (de)
|
|
1230
1231
|
r = $e(e, "string.search(regexp)", {
|
|
1231
1232
|
string: i,
|
|
1232
1233
|
regexp: r
|
|
@@ -1242,7 +1243,7 @@ function No(e, t) {
|
|
|
1242
1243
|
}, Ge(e, e.J, "search", n), n = function(r, o, i) {
|
|
1243
1244
|
var s = String(this);
|
|
1244
1245
|
if (o = String(o), H(e, r, e.I) && (r = r.data, He(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1245
|
-
if (
|
|
1246
|
+
if (de)
|
|
1246
1247
|
r = $e(e, "string.replace(substr, newSubstr)", {
|
|
1247
1248
|
string: s,
|
|
1248
1249
|
substr: r,
|
|
@@ -1250,8 +1251,8 @@ function No(e, t) {
|
|
|
1250
1251
|
}, r, i), r !== je && i(r);
|
|
1251
1252
|
else {
|
|
1252
1253
|
var u = e.ha(), p = Ke(e, r, u, i);
|
|
1253
|
-
u.onmessage = function(
|
|
1254
|
-
clearTimeout(p), i(
|
|
1254
|
+
u.onmessage = function(b) {
|
|
1255
|
+
clearTimeout(p), i(b.data);
|
|
1255
1256
|
}, u.postMessage(["replace", s, r, o]);
|
|
1256
1257
|
}
|
|
1257
1258
|
return;
|
|
@@ -1259,63 +1260,63 @@ function No(e, t) {
|
|
|
1259
1260
|
i(s.replace(r, o));
|
|
1260
1261
|
}, Ge(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1261
1262
|
}
|
|
1262
|
-
function
|
|
1263
|
+
function Bo(e, t) {
|
|
1263
1264
|
e.mb = e.i(function(n) {
|
|
1264
|
-
return n = ve.Boolean(n),
|
|
1265
|
-
}, !0), e.g(t, "Boolean", e.mb,
|
|
1265
|
+
return n = ve.Boolean(n), he(e) ? (this.data = n, this) : n;
|
|
1266
|
+
}, !0), e.g(t, "Boolean", e.mb, v);
|
|
1266
1267
|
}
|
|
1267
|
-
function
|
|
1268
|
+
function Uo(e, t) {
|
|
1268
1269
|
var n = function(r) {
|
|
1269
|
-
return r = arguments.length ? ve.Number(r) : 0,
|
|
1270
|
+
return r = arguments.length ? ve.Number(r) : 0, he(e) ? (this.data = r, this) : r;
|
|
1270
1271
|
};
|
|
1271
|
-
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa,
|
|
1272
|
+
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, v), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1272
1273
|
e.g(e.aa, t[n], Number[t[n]], We);
|
|
1273
1274
|
n = function(r) {
|
|
1274
1275
|
try {
|
|
1275
1276
|
return Number(this).toExponential(r);
|
|
1276
1277
|
} catch (o) {
|
|
1277
|
-
|
|
1278
|
+
w(e, e.D, o.message);
|
|
1278
1279
|
}
|
|
1279
1280
|
}, $(e, e.aa, "toExponential", n), n = function(r) {
|
|
1280
1281
|
try {
|
|
1281
1282
|
return Number(this).toFixed(r);
|
|
1282
1283
|
} catch (o) {
|
|
1283
|
-
|
|
1284
|
+
w(e, e.D, o.message);
|
|
1284
1285
|
}
|
|
1285
1286
|
}, $(e, e.aa, "toFixed", n), n = function(r) {
|
|
1286
1287
|
try {
|
|
1287
1288
|
return Number(this).toPrecision(r);
|
|
1288
1289
|
} catch (o) {
|
|
1289
|
-
|
|
1290
|
+
w(e, e.D, o.message);
|
|
1290
1291
|
}
|
|
1291
1292
|
}, $(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1292
1293
|
try {
|
|
1293
1294
|
return Number(this).toString(r);
|
|
1294
1295
|
} catch (o) {
|
|
1295
|
-
|
|
1296
|
+
w(e, e.D, o.message);
|
|
1296
1297
|
}
|
|
1297
1298
|
}, $(e, e.aa, "toString", n), n = function(r, o) {
|
|
1298
1299
|
r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
|
|
1299
1300
|
try {
|
|
1300
1301
|
return Number(this).toLocaleString(r, o);
|
|
1301
1302
|
} catch (i) {
|
|
1302
|
-
|
|
1303
|
+
w(e, e.D, "toLocaleString: " + i.message);
|
|
1303
1304
|
}
|
|
1304
1305
|
}, $(e, e.aa, "toLocaleString", n);
|
|
1305
1306
|
}
|
|
1306
1307
|
function Fo(e, t) {
|
|
1307
1308
|
var n = function(o, i) {
|
|
1308
|
-
if (!
|
|
1309
|
+
if (!he(e))
|
|
1309
1310
|
return ve.Date();
|
|
1310
1311
|
var s = [null].concat(Array.from(arguments));
|
|
1311
1312
|
return this.data = new (Function.prototype.bind.apply(ve.Date, s))(), this;
|
|
1312
1313
|
};
|
|
1313
|
-
e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$,
|
|
1314
|
+
e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, v), e.g(e.$, "now", e.i(Date.now, !1), v), e.g(e.$, "parse", e.i(Date.parse, !1), v), e.g(e.$, "UTC", e.i(Date.UTC, !1), v), 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(" ");
|
|
1314
1315
|
for (var r = 0; r < t.length; r++)
|
|
1315
1316
|
n = function(o) {
|
|
1316
1317
|
return function(i) {
|
|
1317
1318
|
var s = this.data;
|
|
1318
|
-
s instanceof Date ||
|
|
1319
|
+
s instanceof Date || w(e, e.j, o + " not called on a Date");
|
|
1319
1320
|
for (var u = [], p = 0; p < arguments.length; p++)
|
|
1320
1321
|
u[p] = e.R(arguments[p]);
|
|
1321
1322
|
return s[o].apply(s, u);
|
|
@@ -1324,40 +1325,40 @@ function Fo(e, t) {
|
|
|
1324
1325
|
}
|
|
1325
1326
|
function Mo(e, t) {
|
|
1326
1327
|
var n = function(r, o) {
|
|
1327
|
-
if (
|
|
1328
|
+
if (he(e))
|
|
1328
1329
|
var i = this;
|
|
1329
1330
|
else {
|
|
1330
1331
|
if (o === void 0 && H(e, r, e.I))
|
|
1331
1332
|
return r;
|
|
1332
1333
|
i = e.s(e.Ma);
|
|
1333
1334
|
}
|
|
1334
|
-
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) ||
|
|
1335
|
+
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || w(e, e.T, "Invalid regexp flag: " + o);
|
|
1335
1336
|
try {
|
|
1336
1337
|
var s = new ve.RegExp(r, o);
|
|
1337
1338
|
} catch (u) {
|
|
1338
|
-
|
|
1339
|
+
w(e, e.T, u.message);
|
|
1339
1340
|
}
|
|
1340
1341
|
return qt(e, i, s), i;
|
|
1341
1342
|
};
|
|
1342
|
-
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I,
|
|
1343
|
-
function i(
|
|
1344
|
-
if (
|
|
1345
|
-
var m =
|
|
1346
|
-
return e.g(m, "index",
|
|
1343
|
+
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, v), e.g(e.I.h.prototype, "global", void 0, q), e.g(e.I.h.prototype, "ignoreCase", void 0, q), e.g(e.I.h.prototype, "multiline", void 0, q), e.g(e.I.h.prototype, "source", "(?:)", q), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1344
|
+
function i(x) {
|
|
1345
|
+
if (x) {
|
|
1346
|
+
var m = fe(e, x);
|
|
1347
|
+
return e.g(m, "index", x.index), e.g(m, "input", x.input), m;
|
|
1347
1348
|
}
|
|
1348
1349
|
return null;
|
|
1349
1350
|
}
|
|
1350
1351
|
var s = this.data;
|
|
1351
1352
|
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")), He(e, s, o), e.REGEXP_MODE === 2)
|
|
1352
|
-
if (
|
|
1353
|
+
if (de)
|
|
1353
1354
|
r = $e(e, "regexp.exec(string)", {
|
|
1354
1355
|
string: r,
|
|
1355
1356
|
regexp: s
|
|
1356
1357
|
}, s, o), r !== je && (e.g(this, "lastIndex", s.lastIndex), o(i(r)));
|
|
1357
1358
|
else {
|
|
1358
|
-
var u = e.ha(), p = Ke(e, s, u, o),
|
|
1359
|
-
u.onmessage = function(
|
|
1360
|
-
clearTimeout(p), e.g(
|
|
1359
|
+
var u = e.ha(), p = Ke(e, s, u, o), b = this;
|
|
1360
|
+
u.onmessage = function(x) {
|
|
1361
|
+
clearTimeout(p), e.g(b, "lastIndex", x.data[1]), o(i(x.data[0]));
|
|
1361
1362
|
}, u.postMessage(["exec", s, s.lastIndex, r]);
|
|
1362
1363
|
}
|
|
1363
1364
|
else
|
|
@@ -1367,42 +1368,42 @@ function Mo(e, t) {
|
|
|
1367
1368
|
function Vo(e, t) {
|
|
1368
1369
|
function n(r) {
|
|
1369
1370
|
var o = e.i(function(i) {
|
|
1370
|
-
var s =
|
|
1371
|
+
var s = he(e) ? this : e.Aa(o);
|
|
1371
1372
|
return $t(e, s, i), s;
|
|
1372
1373
|
}, !0);
|
|
1373
|
-
return e.g(o, "prototype", e.Aa(e.D),
|
|
1374
|
+
return e.g(o, "prototype", e.Aa(e.D), v), e.g(o.h.prototype, "name", r, v), e.g(t, r, o, v), o;
|
|
1374
1375
|
}
|
|
1375
1376
|
e.D = e.i(function(r) {
|
|
1376
|
-
var o =
|
|
1377
|
+
var o = he(e) ? this : e.Aa(e.D);
|
|
1377
1378
|
return $t(e, o, r), o;
|
|
1378
|
-
}, !0), e.g(t, "Error", e.D,
|
|
1379
|
+
}, !0), e.g(t, "Error", e.D, v), e.g(e.D.h.prototype, "message", "", v), e.g(e.D.h.prototype, "name", "Error", v), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1379
1380
|
}
|
|
1380
1381
|
function Do(e, t) {
|
|
1381
1382
|
var n = e.s(e.M);
|
|
1382
|
-
e.g(t, "Math", n,
|
|
1383
|
+
e.g(t, "Math", n, v);
|
|
1383
1384
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1384
1385
|
for (t = 0; t < r.length; t++)
|
|
1385
|
-
e.g(n, r[t], Math[r[t]],
|
|
1386
|
+
e.g(n, r[t], Math[r[t]], q);
|
|
1386
1387
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1387
|
-
e.g(n, r[t], e.i(Math[r[t]], !1),
|
|
1388
|
+
e.g(n, r[t], e.i(Math[r[t]], !1), v);
|
|
1388
1389
|
}
|
|
1389
1390
|
function Lo(e, t) {
|
|
1390
1391
|
var n = e.s(e.M);
|
|
1391
|
-
e.g(t, "JSON", n,
|
|
1392
|
+
e.g(t, "JSON", n, v), t = function(r) {
|
|
1392
1393
|
try {
|
|
1393
1394
|
var o = JSON.parse(String(r));
|
|
1394
1395
|
} catch (i) {
|
|
1395
|
-
|
|
1396
|
+
w(e, e.T, i.message);
|
|
1396
1397
|
}
|
|
1397
1398
|
return e.Ia(o);
|
|
1398
1399
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
|
|
1399
|
-
o && o.H === "Function" ?
|
|
1400
|
+
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = gr(e, o), o = o.filter(function(u) {
|
|
1400
1401
|
return typeof u == "string" || typeof u == "number";
|
|
1401
1402
|
})) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
|
|
1402
1403
|
try {
|
|
1403
1404
|
var s = JSON.stringify(r, o, i);
|
|
1404
1405
|
} catch (u) {
|
|
1405
|
-
|
|
1406
|
+
w(e, e.j, u.message);
|
|
1406
1407
|
}
|
|
1407
1408
|
return s;
|
|
1408
1409
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
@@ -1412,7 +1413,7 @@ function H(e, t, n) {
|
|
|
1412
1413
|
return !1;
|
|
1413
1414
|
if (n = n.h.prototype, t === n)
|
|
1414
1415
|
return !0;
|
|
1415
|
-
for (t =
|
|
1416
|
+
for (t = pe(e, t); t; ) {
|
|
1416
1417
|
if (t === n)
|
|
1417
1418
|
return !0;
|
|
1418
1419
|
t = t.xa;
|
|
@@ -1420,10 +1421,10 @@ function H(e, t, n) {
|
|
|
1420
1421
|
return !1;
|
|
1421
1422
|
}
|
|
1422
1423
|
function qt(e, t, n) {
|
|
1423
|
-
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex,
|
|
1424
|
+
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, v), e.g(t, "source", n.source, q), e.g(t, "global", n.global, q), e.g(t, "ignoreCase", n.ignoreCase, q), e.g(t, "multiline", n.multiline, q);
|
|
1424
1425
|
}
|
|
1425
1426
|
function $t(e, t, n) {
|
|
1426
|
-
n && e.g(t, "message", String(n),
|
|
1427
|
+
n && e.g(t, "message", String(n), v), n = [];
|
|
1427
1428
|
for (var r = e.o.length - 1; 0 <= r; r--) {
|
|
1428
1429
|
var o = e.o[r], i = o.node;
|
|
1429
1430
|
i.type === "CallExpression" && (o = o.U) && n.length && (n[n.length - 1].Ob = e.G(o, "name")), !i.X || n.length && i.type !== "CallExpression" || n.push({
|
|
@@ -1437,9 +1438,9 @@ function $t(e, t, n) {
|
|
|
1437
1438
|
`) : i + (" at " + s + `
|
|
1438
1439
|
`);
|
|
1439
1440
|
}
|
|
1440
|
-
e.g(t, "stack", i.trim(),
|
|
1441
|
+
e.g(t, "stack", i.trim(), v);
|
|
1441
1442
|
}
|
|
1442
|
-
|
|
1443
|
+
B.ha = function() {
|
|
1443
1444
|
var e = this.ha.Mb;
|
|
1444
1445
|
return e || (e = new Blob([Ao.join(`
|
|
1445
1446
|
`)], {
|
|
@@ -1451,9 +1452,9 @@ function $e(e, t, n, r, o) {
|
|
|
1451
1452
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1452
1453
|
};
|
|
1453
1454
|
try {
|
|
1454
|
-
return
|
|
1455
|
+
return de.runInNewContext(t, n, i);
|
|
1455
1456
|
} catch {
|
|
1456
|
-
o(null),
|
|
1457
|
+
o(null), w(e, e.D, "RegExp Timeout: " + r);
|
|
1457
1458
|
}
|
|
1458
1459
|
return je;
|
|
1459
1460
|
}
|
|
@@ -1462,36 +1463,36 @@ function He(e, t, n) {
|
|
|
1462
1463
|
var r = !1;
|
|
1463
1464
|
else if (e.REGEXP_MODE === 1)
|
|
1464
1465
|
r = !0;
|
|
1465
|
-
else if (
|
|
1466
|
+
else if (de)
|
|
1466
1467
|
r = !0;
|
|
1467
1468
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1468
1469
|
r = !0;
|
|
1469
1470
|
else if (typeof require == "function") {
|
|
1470
1471
|
try {
|
|
1471
|
-
|
|
1472
|
+
de = require("vm");
|
|
1472
1473
|
} catch {
|
|
1473
1474
|
}
|
|
1474
|
-
r = !!
|
|
1475
|
+
r = !!de;
|
|
1475
1476
|
} else
|
|
1476
1477
|
r = !1;
|
|
1477
|
-
r || (n(null),
|
|
1478
|
+
r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
1478
1479
|
}
|
|
1479
1480
|
function Ke(e, t, n, r) {
|
|
1480
1481
|
return setTimeout(function() {
|
|
1481
1482
|
n.terminate(), r(null);
|
|
1482
1483
|
try {
|
|
1483
|
-
|
|
1484
|
+
w(e, e.D, "RegExp Timeout: " + t);
|
|
1484
1485
|
} catch {
|
|
1485
1486
|
}
|
|
1486
1487
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1487
1488
|
}
|
|
1488
|
-
|
|
1489
|
+
B.Aa = function(e) {
|
|
1489
1490
|
return this.s(e && e.h.prototype);
|
|
1490
1491
|
};
|
|
1491
|
-
|
|
1492
|
+
B.s = function(e) {
|
|
1492
1493
|
if (typeof e != "object")
|
|
1493
1494
|
throw Error("Non object prototype");
|
|
1494
|
-
return e = new
|
|
1495
|
+
return e = new P(e), H(this, e, this.D) && (e.H = "Error"), e;
|
|
1495
1496
|
};
|
|
1496
1497
|
function Pe(e) {
|
|
1497
1498
|
var t = e.s(e.La);
|
|
@@ -1503,21 +1504,21 @@ function Pe(e) {
|
|
|
1503
1504
|
}
|
|
1504
1505
|
function Zt(e, t, n) {
|
|
1505
1506
|
var r = e.s(e.Z);
|
|
1506
|
-
return n ? (n = e.s(e.M), e.g(r, "prototype", n,
|
|
1507
|
+
return n ? (n = e.s(e.M), e.g(r, "prototype", n, v), e.g(n, "constructor", r, v)) : r.Ab = !0, e.g(r, "length", t, q), r.H = "Function", r;
|
|
1507
1508
|
}
|
|
1508
1509
|
function Qt(e, t, n, r) {
|
|
1509
1510
|
var o = Zt(e, t.oa.length, !0);
|
|
1510
|
-
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "",
|
|
1511
|
+
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", q), o;
|
|
1511
1512
|
}
|
|
1512
|
-
|
|
1513
|
-
return t = Zt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1513
|
+
B.i = function(e, t) {
|
|
1514
|
+
return t = Zt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, q), t;
|
|
1514
1515
|
};
|
|
1515
|
-
|
|
1516
|
+
B.ub = function(e) {
|
|
1516
1517
|
var t = Zt(this, e.length, !0);
|
|
1517
|
-
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1518
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, q), t;
|
|
1518
1519
|
};
|
|
1519
|
-
|
|
1520
|
-
if (e instanceof
|
|
1520
|
+
B.Ia = function(e) {
|
|
1521
|
+
if (e instanceof P)
|
|
1521
1522
|
throw Error("Object is already pseudo");
|
|
1522
1523
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1523
1524
|
return e;
|
|
@@ -1547,10 +1548,10 @@ U.Ia = function(e) {
|
|
|
1547
1548
|
this.g(t, r, this.Ia(e[r]));
|
|
1548
1549
|
return t;
|
|
1549
1550
|
};
|
|
1550
|
-
|
|
1551
|
+
B.R = function(e, t) {
|
|
1551
1552
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1552
1553
|
return e;
|
|
1553
|
-
if (!(e instanceof
|
|
1554
|
+
if (!(e instanceof P))
|
|
1554
1555
|
throw Error("Object is not pseudo");
|
|
1555
1556
|
if (H(this, e, this.I))
|
|
1556
1557
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
@@ -1566,7 +1567,7 @@ U.R = function(e, t) {
|
|
|
1566
1567
|
if (t.hb.push(e), H(this, e, this.qa)) {
|
|
1567
1568
|
n = [], t.Sa.push(n);
|
|
1568
1569
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1569
|
-
|
|
1570
|
+
mt(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
1570
1571
|
} else
|
|
1571
1572
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1572
1573
|
o = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
@@ -1577,7 +1578,7 @@ U.R = function(e, t) {
|
|
|
1577
1578
|
});
|
|
1578
1579
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1579
1580
|
};
|
|
1580
|
-
function
|
|
1581
|
+
function fe(e, t) {
|
|
1581
1582
|
for (var n = Pe(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
|
|
1582
1583
|
e.g(n, r[o], t[r[o]]);
|
|
1583
1584
|
return n;
|
|
@@ -1588,7 +1589,7 @@ function gr(e, t) {
|
|
|
1588
1589
|
n[r] = e.G(t, r);
|
|
1589
1590
|
return n.length = zt(e.G(t, "length")) || 0, n;
|
|
1590
1591
|
}
|
|
1591
|
-
function
|
|
1592
|
+
function pe(e, t) {
|
|
1592
1593
|
switch (typeof t) {
|
|
1593
1594
|
case "number":
|
|
1594
1595
|
return e.aa.h.prototype;
|
|
@@ -1599,10 +1600,10 @@ function de(e, t) {
|
|
|
1599
1600
|
}
|
|
1600
1601
|
return t ? t.xa : null;
|
|
1601
1602
|
}
|
|
1602
|
-
|
|
1603
|
+
B.G = function(e, t) {
|
|
1603
1604
|
if (this.P)
|
|
1604
1605
|
throw Error("Getter not supported in that context");
|
|
1605
|
-
if (t = String(t), e != null ||
|
|
1606
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
|
|
1606
1607
|
throw TypeError("Expecting native value or pseudo object");
|
|
1607
1608
|
if (t === "length") {
|
|
1608
1609
|
if (H(this, e, this.J))
|
|
@@ -1615,10 +1616,10 @@ U.G = function(e, t) {
|
|
|
1615
1616
|
do
|
|
1616
1617
|
if (e.h && t in e.h)
|
|
1617
1618
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1618
|
-
while (e =
|
|
1619
|
+
while (e = pe(this, e));
|
|
1619
1620
|
};
|
|
1620
|
-
function
|
|
1621
|
-
if (!(t instanceof
|
|
1621
|
+
function mt(e, t, n) {
|
|
1622
|
+
if (!(t instanceof P))
|
|
1622
1623
|
throw TypeError("Primitive data type has no properties");
|
|
1623
1624
|
if (n = String(n), n === "length" && H(e, t, e.J))
|
|
1624
1625
|
return !0;
|
|
@@ -1630,21 +1631,21 @@ function ht(e, t, n) {
|
|
|
1630
1631
|
do
|
|
1631
1632
|
if (t.h && n in t.h)
|
|
1632
1633
|
return !0;
|
|
1633
|
-
while (t =
|
|
1634
|
+
while (t = pe(e, t));
|
|
1634
1635
|
return !1;
|
|
1635
1636
|
}
|
|
1636
|
-
|
|
1637
|
+
B.g = function(e, t, n, r) {
|
|
1637
1638
|
if (this.Ka)
|
|
1638
1639
|
throw Error("Setter not supported in that context");
|
|
1639
|
-
if (t = String(t), e != null ||
|
|
1640
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
|
|
1640
1641
|
throw TypeError("Expecting native value or pseudo object");
|
|
1641
|
-
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) &&
|
|
1642
|
+
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && w(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1642
1643
|
var o = !this.o || en(this).S;
|
|
1643
|
-
if (e instanceof
|
|
1644
|
+
if (e instanceof P) {
|
|
1644
1645
|
if (H(this, e, this.J)) {
|
|
1645
1646
|
var i = Ye(t);
|
|
1646
1647
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1647
|
-
o &&
|
|
1648
|
+
o && w(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1648
1649
|
return;
|
|
1649
1650
|
}
|
|
1650
1651
|
}
|
|
@@ -1655,7 +1656,7 @@ U.g = function(e, t, n, r) {
|
|
|
1655
1656
|
return;
|
|
1656
1657
|
n = r.value;
|
|
1657
1658
|
}
|
|
1658
|
-
if (n = zt(n), isNaN(n) &&
|
|
1659
|
+
if (n = zt(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < i)
|
|
1659
1660
|
for (s in e.h) {
|
|
1660
1661
|
var s = Ye(s);
|
|
1661
1662
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
@@ -1668,44 +1669,44 @@ U.g = function(e, t, n, r) {
|
|
|
1668
1669
|
try {
|
|
1669
1670
|
Object.defineProperty(e.h, t, o);
|
|
1670
1671
|
} catch {
|
|
1671
|
-
|
|
1672
|
+
w(this, this.j, "Cannot redefine property: " + t);
|
|
1672
1673
|
}
|
|
1673
1674
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1674
1675
|
} else {
|
|
1675
1676
|
if (n === Je)
|
|
1676
1677
|
throw ReferenceError("Value not specified");
|
|
1677
1678
|
for (r = e; !(t in r.h); )
|
|
1678
|
-
if (r =
|
|
1679
|
+
if (r = pe(this, r), !r) {
|
|
1679
1680
|
r = e;
|
|
1680
1681
|
break;
|
|
1681
1682
|
}
|
|
1682
1683
|
if (r.Y && r.Y[t])
|
|
1683
1684
|
return this.Ka = !0, r.Y[t];
|
|
1684
1685
|
if (r.V && r.V[t])
|
|
1685
|
-
o &&
|
|
1686
|
+
o && w(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1686
1687
|
else
|
|
1687
1688
|
try {
|
|
1688
1689
|
e.h[t] = n;
|
|
1689
1690
|
} catch {
|
|
1690
|
-
o &&
|
|
1691
|
+
o && w(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1691
1692
|
}
|
|
1692
1693
|
}
|
|
1693
1694
|
else
|
|
1694
|
-
o &&
|
|
1695
|
+
o && w(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1695
1696
|
} else
|
|
1696
|
-
o &&
|
|
1697
|
+
o && w(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1697
1698
|
};
|
|
1698
|
-
|
|
1699
|
+
B.g.ac = function() {
|
|
1699
1700
|
throw Error("Placeholder getter");
|
|
1700
1701
|
};
|
|
1701
|
-
|
|
1702
|
+
B.g.bc = function() {
|
|
1702
1703
|
throw Error("Placeholder setter");
|
|
1703
1704
|
};
|
|
1704
1705
|
function $(e, t, n, r) {
|
|
1705
|
-
e.g(t.h.prototype, n, e.i(r, !1),
|
|
1706
|
+
e.g(t.h.prototype, n, e.i(r, !1), v);
|
|
1706
1707
|
}
|
|
1707
1708
|
function Ge(e, t, n, r) {
|
|
1708
|
-
e.g(t.h.prototype, n, e.ub(r),
|
|
1709
|
+
e.g(t.h.prototype, n, e.ub(r), v);
|
|
1709
1710
|
}
|
|
1710
1711
|
function en(e) {
|
|
1711
1712
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
@@ -1733,9 +1734,9 @@ function nn(e, t) {
|
|
|
1733
1734
|
return n.object.h[t];
|
|
1734
1735
|
n = n.Va;
|
|
1735
1736
|
}
|
|
1736
|
-
if (n === e.N &&
|
|
1737
|
+
if (n === e.N && mt(e, n.object, t))
|
|
1737
1738
|
return e.G(n.object, t);
|
|
1738
|
-
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" ||
|
|
1739
|
+
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1739
1740
|
}
|
|
1740
1741
|
function yr(e, t, n) {
|
|
1741
1742
|
for (var r = en(e), o = r.S; r && r !== e.N; ) {
|
|
@@ -1743,15 +1744,15 @@ function yr(e, t, n) {
|
|
|
1743
1744
|
try {
|
|
1744
1745
|
r.object.h[t] = n;
|
|
1745
1746
|
} catch {
|
|
1746
|
-
o &&
|
|
1747
|
+
o && w(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1747
1748
|
}
|
|
1748
1749
|
return;
|
|
1749
1750
|
}
|
|
1750
1751
|
r = r.Va;
|
|
1751
1752
|
}
|
|
1752
|
-
if (r === e.N && (!o ||
|
|
1753
|
+
if (r === e.N && (!o || mt(e, r.object, t)))
|
|
1753
1754
|
return e.g(r.object, t, n);
|
|
1754
|
-
|
|
1755
|
+
w(e, e.pb, t + " is not defined");
|
|
1755
1756
|
}
|
|
1756
1757
|
function ze(e, t, n) {
|
|
1757
1758
|
if (t.jb)
|
|
@@ -1802,7 +1803,7 @@ function ze(e, t, n) {
|
|
|
1802
1803
|
r[s] === !0 ? e.g(n.object, s, void 0, Hn) : e.g(n.object, s, Qt(e, r[s], n), Hn);
|
|
1803
1804
|
return r;
|
|
1804
1805
|
}
|
|
1805
|
-
function
|
|
1806
|
+
function he(e) {
|
|
1806
1807
|
return e.o[e.o.length - 1].isConstructor;
|
|
1807
1808
|
}
|
|
1808
1809
|
function rn(e, t) {
|
|
@@ -1811,8 +1812,8 @@ function rn(e, t) {
|
|
|
1811
1812
|
function on(e, t, n) {
|
|
1812
1813
|
return t[0] === Ne ? yr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1813
1814
|
}
|
|
1814
|
-
function
|
|
1815
|
-
throw e.N ? (n !== void 0 && t instanceof
|
|
1815
|
+
function w(e, t, n) {
|
|
1816
|
+
throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t), $t(e, t, n)), qe(e, 4, t), mr) : n === void 0 ? t : n;
|
|
1816
1817
|
}
|
|
1817
1818
|
function qe(e, t, n, r) {
|
|
1818
1819
|
if (t === 0)
|
|
@@ -1859,34 +1860,34 @@ function qe(e, t, n, r) {
|
|
|
1859
1860
|
URIError
|
|
1860
1861
|
}, r = String(e.G(n, "name")), o = e.G(n, "message").valueOf(), t = (t[r] || Error)(o), t.stack = String(e.G(n, "stack"))) : t = String(n), e.value = t, t;
|
|
1861
1862
|
}
|
|
1862
|
-
function
|
|
1863
|
+
function z(e, t) {
|
|
1863
1864
|
switch (t.type) {
|
|
1864
1865
|
case "ArrayExpression":
|
|
1865
1866
|
return "[...]";
|
|
1866
1867
|
case "BinaryExpression":
|
|
1867
1868
|
case "LogicalExpression":
|
|
1868
|
-
return
|
|
1869
|
+
return z(e, t.left) + " " + t.operator + " " + z(e, t.right);
|
|
1869
1870
|
case "CallExpression":
|
|
1870
|
-
return
|
|
1871
|
+
return z(e, t.callee) + "(...)";
|
|
1871
1872
|
case "ConditionalExpression":
|
|
1872
|
-
return
|
|
1873
|
+
return z(e, t.test) + " ? " + z(e, t.da) + " : " + z(e, t.alternate);
|
|
1873
1874
|
case "Identifier":
|
|
1874
1875
|
return t.name;
|
|
1875
1876
|
case "Literal":
|
|
1876
1877
|
return t.raw;
|
|
1877
1878
|
case "MemberExpression":
|
|
1878
|
-
var n =
|
|
1879
|
-
return e =
|
|
1879
|
+
var n = z(e, t.object);
|
|
1880
|
+
return e = z(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
|
|
1880
1881
|
case "NewExpression":
|
|
1881
|
-
return "new " +
|
|
1882
|
+
return "new " + z(e, t.callee) + "(...)";
|
|
1882
1883
|
case "ObjectExpression":
|
|
1883
1884
|
return "{...}";
|
|
1884
1885
|
case "ThisExpression":
|
|
1885
1886
|
return "this";
|
|
1886
1887
|
case "UnaryExpression":
|
|
1887
|
-
return t.operator + " " +
|
|
1888
|
+
return t.operator + " " + z(e, t.K);
|
|
1888
1889
|
case "UpdateExpression":
|
|
1889
|
-
return n =
|
|
1890
|
+
return n = z(e, t.K), t.prefix ? t.operator + n : n + t.operator;
|
|
1890
1891
|
}
|
|
1891
1892
|
return "???";
|
|
1892
1893
|
}
|
|
@@ -1894,16 +1895,16 @@ function Gn(e, t, n) {
|
|
|
1894
1895
|
var r = e.o[e.o.length - 1], o = Array.from(n), i = o.shift();
|
|
1895
1896
|
n = Math.max(Number(o.shift() || 0), 0);
|
|
1896
1897
|
var s = e.ya();
|
|
1897
|
-
if (i instanceof
|
|
1898
|
+
if (i instanceof P && i.H === "Function") {
|
|
1898
1899
|
var u = i;
|
|
1899
1900
|
s.type = "CallExpression", r = r.scope;
|
|
1900
1901
|
} else {
|
|
1901
1902
|
try {
|
|
1902
1903
|
var p = Re(String(i), "taskCode" + e.ic++);
|
|
1903
|
-
} catch (
|
|
1904
|
-
|
|
1904
|
+
} catch (b) {
|
|
1905
|
+
w(e, e.T, "Invalid code: " + b.message);
|
|
1905
1906
|
}
|
|
1906
|
-
s.type = "EvalProgram_", s.body = p.body, r = r.node.arguments[0],
|
|
1907
|
+
s.type = "EvalProgram_", s.body = p.body, r = r.node.arguments[0], ht(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1907
1908
|
}
|
|
1908
1909
|
return t = new _o(u, o, r, s, t ? n : -1), vr(e, t, n), t.Db;
|
|
1909
1910
|
}
|
|
@@ -1924,44 +1925,44 @@ function Ze(e, t, n) {
|
|
|
1924
1925
|
throw Error("Unexpected call to createGetter");
|
|
1925
1926
|
e.P = !1, n = Array.isArray(n) ? n[0] : n;
|
|
1926
1927
|
var r = e.ya();
|
|
1927
|
-
return r.type = "CallExpression", e = new
|
|
1928
|
+
return r.type = "CallExpression", e = new S(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1928
1929
|
}
|
|
1929
1930
|
function an(e, t, n, r) {
|
|
1930
1931
|
if (!e.Ka)
|
|
1931
1932
|
throw Error("Unexpected call to createSetter");
|
|
1932
1933
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1933
1934
|
var o = e.ya();
|
|
1934
|
-
return o.type = "CallExpression", e = new
|
|
1935
|
+
return o.type = "CallExpression", e = new S(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1935
1936
|
}
|
|
1936
1937
|
function _t(e, t) {
|
|
1937
|
-
return t == null ? e.Na : t instanceof
|
|
1938
|
+
return t == null ? e.Na : t instanceof P ? t : (e = e.s(pe(e, t)), e.data = t, e);
|
|
1938
1939
|
}
|
|
1939
|
-
|
|
1940
|
+
B.Xb = function() {
|
|
1940
1941
|
return this.N;
|
|
1941
1942
|
};
|
|
1942
|
-
|
|
1943
|
+
B.Yb = function() {
|
|
1943
1944
|
return this.o;
|
|
1944
1945
|
};
|
|
1945
|
-
|
|
1946
|
+
B.ec = function(e) {
|
|
1946
1947
|
this.o = e;
|
|
1947
1948
|
};
|
|
1948
|
-
function
|
|
1949
|
+
function S(e, t) {
|
|
1949
1950
|
this.node = e, this.scope = t;
|
|
1950
1951
|
}
|
|
1951
1952
|
function br(e, t, n) {
|
|
1952
1953
|
this.Va = e, this.S = t, this.object = n;
|
|
1953
1954
|
}
|
|
1954
|
-
function
|
|
1955
|
+
function P(e) {
|
|
1955
1956
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1956
1957
|
}
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1958
|
+
B = P.prototype;
|
|
1959
|
+
B.xa = null;
|
|
1960
|
+
B.H = "Object";
|
|
1961
|
+
B.data = null;
|
|
1962
|
+
B.toString = function() {
|
|
1962
1963
|
if (!Xe)
|
|
1963
1964
|
return "[object Interpreter.Object]";
|
|
1964
|
-
if (!(this instanceof
|
|
1965
|
+
if (!(this instanceof P))
|
|
1965
1966
|
return String(this);
|
|
1966
1967
|
if (this.H === "Array") {
|
|
1967
1968
|
var e = Kn;
|
|
@@ -1971,7 +1972,7 @@ U.toString = function() {
|
|
|
1971
1972
|
1024 < n && (n = 1e3, r = !0);
|
|
1972
1973
|
for (var o = 0; o < n; o++) {
|
|
1973
1974
|
var i = this.h[o];
|
|
1974
|
-
t[o] = i instanceof
|
|
1975
|
+
t[o] = i instanceof P && e.indexOf(i) !== -1 ? "..." : i;
|
|
1975
1976
|
}
|
|
1976
1977
|
r && t.push("...");
|
|
1977
1978
|
} finally {
|
|
@@ -2006,7 +2007,7 @@ U.toString = function() {
|
|
|
2006
2007
|
}
|
|
2007
2008
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
2008
2009
|
};
|
|
2009
|
-
|
|
2010
|
+
B.valueOf = function() {
|
|
2010
2011
|
return !Xe || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2011
2012
|
};
|
|
2012
2013
|
function _o(e, t, n, r, o) {
|
|
@@ -2018,16 +2019,16 @@ h.prototype.stepArrayExpression = function(e, t, n) {
|
|
|
2018
2019
|
var r = t.A || 0;
|
|
2019
2020
|
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Pe(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
2020
2021
|
if (n[r])
|
|
2021
|
-
return t.A = r, new
|
|
2022
|
+
return t.A = r, new S(n[r], t.scope);
|
|
2022
2023
|
r++;
|
|
2023
2024
|
}
|
|
2024
2025
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
2025
2026
|
};
|
|
2026
2027
|
h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
2027
2028
|
if (!t.ja)
|
|
2028
|
-
return t.ja = !0, t = new
|
|
2029
|
+
return t.ja = !0, t = new S(n.left, t.scope), t.sa = !0, t;
|
|
2029
2030
|
if (!t.Da)
|
|
2030
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = rn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Ze(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new
|
|
2031
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = rn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Ze(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new S(n.right, t.scope));
|
|
2031
2032
|
if (t.ta)
|
|
2032
2033
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2033
2034
|
else {
|
|
@@ -2079,9 +2080,9 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2079
2080
|
};
|
|
2080
2081
|
h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
2081
2082
|
if (!t.ja)
|
|
2082
|
-
return t.ja = !0, new
|
|
2083
|
+
return t.ja = !0, new S(n.left, t.scope);
|
|
2083
2084
|
if (!t.Da)
|
|
2084
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2085
|
+
return t.Da = !0, t.ma = t.value, new S(n.right, t.scope);
|
|
2085
2086
|
e.pop();
|
|
2086
2087
|
var r = t.ma;
|
|
2087
2088
|
switch (t = t.value, n.operator) {
|
|
@@ -2143,10 +2144,10 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2143
2144
|
n = r >>> t;
|
|
2144
2145
|
break;
|
|
2145
2146
|
case "in":
|
|
2146
|
-
t instanceof
|
|
2147
|
+
t instanceof P || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = mt(this, t, r);
|
|
2147
2148
|
break;
|
|
2148
2149
|
case "instanceof":
|
|
2149
|
-
H(this, t, this.O) ||
|
|
2150
|
+
H(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof P ? H(this, r, t) : !1;
|
|
2150
2151
|
break;
|
|
2151
2152
|
default:
|
|
2152
2153
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2156,7 +2157,7 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2156
2157
|
h.prototype.stepBlockStatement = function(e, t, n) {
|
|
2157
2158
|
var r = t.A || 0;
|
|
2158
2159
|
if (n = n.body[r])
|
|
2159
|
-
return t.A = r + 1, new
|
|
2160
|
+
return t.A = r + 1, new S(n, t.scope);
|
|
2160
2161
|
e.pop();
|
|
2161
2162
|
};
|
|
2162
2163
|
h.prototype.stepBreakStatement = function(e, t, n) {
|
|
@@ -2166,7 +2167,7 @@ h.prototype.Hb = 0;
|
|
|
2166
2167
|
h.prototype.stepCallExpression = function(e, t, n) {
|
|
2167
2168
|
if (!t.ia) {
|
|
2168
2169
|
t.ia = 1;
|
|
2169
|
-
var r = new
|
|
2170
|
+
var r = new S(n.callee, t.scope);
|
|
2170
2171
|
return r.sa = !0, r;
|
|
2171
2172
|
}
|
|
2172
2173
|
if (t.ia === 1) {
|
|
@@ -2181,9 +2182,9 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2181
2182
|
}
|
|
2182
2183
|
if (o = t.U, !t.Qa) {
|
|
2183
2184
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2184
|
-
return new
|
|
2185
|
+
return new S(n.arguments[t.A++], t.scope);
|
|
2185
2186
|
if (n.type === "NewExpression") {
|
|
2186
|
-
if (o instanceof
|
|
2187
|
+
if (o instanceof P && !o.Ab || w(this, this.j, z(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2187
2188
|
t.B = Pe(this);
|
|
2188
2189
|
else {
|
|
2189
2190
|
var i = o.h.prototype;
|
|
@@ -2196,12 +2197,12 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2196
2197
|
if (t.eb)
|
|
2197
2198
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2198
2199
|
else {
|
|
2199
|
-
if (t.eb = !0, o instanceof
|
|
2200
|
+
if (t.eb = !0, o instanceof P || w(this, this.j, z(this, n.callee) + " is not a function"), e = o.node) {
|
|
2200
2201
|
for (n = Ht(this, e.body, o.Va), r = Pe(this), o = 0; o < t.F.length; o++)
|
|
2201
2202
|
this.g(r, o, t.F[o]);
|
|
2202
2203
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2203
2204
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2204
|
-
return n.S || (t.B = _t(this, t.B)), this.g(n.object, "this", t.B, Jt), t.value = void 0, new
|
|
2205
|
+
return n.S || (t.B = _t(this, t.B)), this.g(n.object, "this", t.B, Jt), t.value = void 0, new S(e.body, n);
|
|
2205
2206
|
}
|
|
2206
2207
|
if (o.eval)
|
|
2207
2208
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2210,9 +2211,9 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2210
2211
|
try {
|
|
2211
2212
|
r = Re(String(o), "eval" + this.Hb++);
|
|
2212
2213
|
} catch (u) {
|
|
2213
|
-
|
|
2214
|
+
w(this, this.T, "Invalid code: " + u.message);
|
|
2214
2215
|
}
|
|
2215
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body,
|
|
2216
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, ht(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Ht(this, r, n) : ze(this, r, n), this.value = void 0, new S(o, n);
|
|
2216
2217
|
}
|
|
2217
2218
|
else if (o.Ta)
|
|
2218
2219
|
t.scope.S || (t.B = _t(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
@@ -2222,18 +2223,18 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2222
2223
|
t.value = u, s.za = !1;
|
|
2223
2224
|
}), this.za = !0, t.scope.S || (t.B = _t(this, t.B)), o.Za.apply(t.B, r);
|
|
2224
2225
|
} else
|
|
2225
|
-
|
|
2226
|
+
w(this, this.j, z(this, n.callee) + " is not callable");
|
|
2226
2227
|
}
|
|
2227
2228
|
};
|
|
2228
2229
|
h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
2229
2230
|
var r = t.na || 0;
|
|
2230
2231
|
if (r === 0)
|
|
2231
|
-
return t.na = 1, new
|
|
2232
|
+
return t.na = 1, new S(n.test, t.scope);
|
|
2232
2233
|
if (r === 1) {
|
|
2233
2234
|
if (t.na = 2, (r = !!t.value) && n.da)
|
|
2234
|
-
return new
|
|
2235
|
+
return new S(n.da, t.scope);
|
|
2235
2236
|
if (!r && n.alternate)
|
|
2236
|
-
return new
|
|
2237
|
+
return new S(n.alternate, t.scope);
|
|
2237
2238
|
this.value = void 0;
|
|
2238
2239
|
}
|
|
2239
2240
|
e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
@@ -2246,11 +2247,11 @@ h.prototype.stepDebuggerStatement = function(e) {
|
|
|
2246
2247
|
};
|
|
2247
2248
|
h.prototype.stepDoWhileStatement = function(e, t, n) {
|
|
2248
2249
|
if (n.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2249
|
-
return t.ga = !0, new
|
|
2250
|
+
return t.ga = !0, new S(n.test, t.scope);
|
|
2250
2251
|
if (!t.value)
|
|
2251
2252
|
e.pop();
|
|
2252
2253
|
else if (n.body)
|
|
2253
|
-
return t.ga = !1, t.W = !0, new
|
|
2254
|
+
return t.ga = !1, t.W = !0, new S(n.body, t.scope);
|
|
2254
2255
|
};
|
|
2255
2256
|
h.prototype.stepEmptyStatement = function(e) {
|
|
2256
2257
|
e.pop();
|
|
@@ -2258,23 +2259,23 @@ h.prototype.stepEmptyStatement = function(e) {
|
|
|
2258
2259
|
h.prototype.stepEvalProgram_ = function(e, t, n) {
|
|
2259
2260
|
var r = t.A || 0;
|
|
2260
2261
|
if (n = n.body[r])
|
|
2261
|
-
return t.A = r + 1, new
|
|
2262
|
+
return t.A = r + 1, new S(n, t.scope);
|
|
2262
2263
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2263
2264
|
};
|
|
2264
2265
|
h.prototype.stepExpressionStatement = function(e, t, n) {
|
|
2265
2266
|
if (!t.ka)
|
|
2266
|
-
return this.value = void 0, t.ka = !0, new
|
|
2267
|
+
return this.value = void 0, t.ka = !0, new S(n.la, t.scope);
|
|
2267
2268
|
e.pop(), this.value = t.value;
|
|
2268
2269
|
};
|
|
2269
2270
|
h.prototype.stepForInStatement = function(e, t, n) {
|
|
2270
2271
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2271
|
-
return t.scope.S &&
|
|
2272
|
+
return t.scope.S && w(this, this.T, "for-in loop variable declaration may not have an initializer"), new S(n.left, t.scope);
|
|
2272
2273
|
if (!t.Ca)
|
|
2273
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2274
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new S(n.right, t.scope);
|
|
2274
2275
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2275
2276
|
e:
|
|
2276
2277
|
for (; ; ) {
|
|
2277
|
-
if (t.u instanceof
|
|
2278
|
+
if (t.u instanceof P)
|
|
2278
2279
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2279
2280
|
var r = t.wa.shift();
|
|
2280
2281
|
if (r === void 0)
|
|
@@ -2291,7 +2292,7 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2291
2292
|
break e;
|
|
2292
2293
|
}
|
|
2293
2294
|
}
|
|
2294
|
-
if (t.u =
|
|
2295
|
+
if (t.u = pe(this, t.u), t.wa = null, t.u === null) {
|
|
2295
2296
|
e.pop();
|
|
2296
2297
|
return;
|
|
2297
2298
|
}
|
|
@@ -2300,31 +2301,31 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2300
2301
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2301
2302
|
t.pa = [Ne, e.fa[0].id.name];
|
|
2302
2303
|
else
|
|
2303
|
-
return t.pa = null, t = new
|
|
2304
|
+
return t.pa = null, t = new S(e, t.scope), t.sa = !0, t;
|
|
2304
2305
|
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = on(this, t.pa, e)))
|
|
2305
2306
|
return an(this, r, t.pa, e);
|
|
2306
2307
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2307
|
-
return new
|
|
2308
|
+
return new S(n.body, t.scope);
|
|
2308
2309
|
};
|
|
2309
2310
|
h.prototype.stepForStatement = function(e, t, n) {
|
|
2310
2311
|
switch (t.na) {
|
|
2311
2312
|
default:
|
|
2312
2313
|
if (t.na = 1, n.ua)
|
|
2313
|
-
return new
|
|
2314
|
+
return new S(n.ua, t.scope);
|
|
2314
2315
|
break;
|
|
2315
2316
|
case 1:
|
|
2316
2317
|
if (t.na = 2, n.test)
|
|
2317
|
-
return new
|
|
2318
|
+
return new S(n.test, t.scope);
|
|
2318
2319
|
break;
|
|
2319
2320
|
case 2:
|
|
2320
2321
|
if (t.na = 3, n.test && !t.value)
|
|
2321
2322
|
e.pop();
|
|
2322
2323
|
else
|
|
2323
|
-
return t.W = !0, new
|
|
2324
|
+
return t.W = !0, new S(n.body, t.scope);
|
|
2324
2325
|
break;
|
|
2325
2326
|
case 3:
|
|
2326
2327
|
if (t.na = 1, n.update)
|
|
2327
|
-
return new
|
|
2328
|
+
return new S(n.update, t.scope);
|
|
2328
2329
|
}
|
|
2329
2330
|
};
|
|
2330
2331
|
h.prototype.stepFunctionDeclaration = function(e) {
|
|
@@ -2344,7 +2345,7 @@ h.prototype.stepIdentifier = function(e, t, n) {
|
|
|
2344
2345
|
};
|
|
2345
2346
|
h.prototype.stepIfStatement = h.prototype.stepConditionalExpression;
|
|
2346
2347
|
h.prototype.stepLabeledStatement = function(e, t, n) {
|
|
2347
|
-
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new
|
|
2348
|
+
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new S(n.body, t.scope), t.labels = e, t;
|
|
2348
2349
|
};
|
|
2349
2350
|
h.prototype.stepLiteral = function(e, t, n) {
|
|
2350
2351
|
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), qt(this, n, t), t = n), e[e.length - 1].value = t;
|
|
@@ -2353,22 +2354,22 @@ h.prototype.stepLogicalExpression = function(e, t, n) {
|
|
|
2353
2354
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
2354
2355
|
throw SyntaxError("Unknown logical operator: " + n.operator);
|
|
2355
2356
|
if (!t.ja)
|
|
2356
|
-
return t.ja = !0, new
|
|
2357
|
+
return t.ja = !0, new S(n.left, t.scope);
|
|
2357
2358
|
if (t.Da)
|
|
2358
2359
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2359
2360
|
else if (n.operator === "&&" && !t.value || n.operator === "||" && t.value)
|
|
2360
2361
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2361
2362
|
else
|
|
2362
|
-
return t.Da = !0, new
|
|
2363
|
+
return t.Da = !0, new S(n.right, t.scope);
|
|
2363
2364
|
};
|
|
2364
2365
|
h.prototype.stepMemberExpression = function(e, t, n) {
|
|
2365
2366
|
if (!t.Ca)
|
|
2366
|
-
return t.Ca = !0, new
|
|
2367
|
+
return t.Ca = !0, new S(n.object, t.scope);
|
|
2367
2368
|
if (n.bb)
|
|
2368
2369
|
if (t.Vb)
|
|
2369
2370
|
n = t.value;
|
|
2370
2371
|
else
|
|
2371
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2372
|
+
return t.u = t.value, t.Vb = !0, new S(n.Wa, t.scope);
|
|
2372
2373
|
else
|
|
2373
2374
|
t.u = t.value, n = n.Wa.name;
|
|
2374
2375
|
if (e.pop(), t.sa)
|
|
@@ -2395,7 +2396,7 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2395
2396
|
i = s.value;
|
|
2396
2397
|
else
|
|
2397
2398
|
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2398
|
-
return t.Pa = i, new
|
|
2399
|
+
return t.Pa = i, new S(o.value, t.scope);
|
|
2399
2400
|
}
|
|
2400
2401
|
for (s in t.Ja)
|
|
2401
2402
|
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, Je, {
|
|
@@ -2408,35 +2409,35 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2408
2409
|
};
|
|
2409
2410
|
h.prototype.stepProgram = function(e, t, n) {
|
|
2410
2411
|
if (e = n.body.shift())
|
|
2411
|
-
return t.done = !1, new
|
|
2412
|
+
return t.done = !1, new S(e, t.scope);
|
|
2412
2413
|
t.done = !0;
|
|
2413
2414
|
};
|
|
2414
2415
|
h.prototype.stepReturnStatement = function(e, t, n) {
|
|
2415
2416
|
if (n.K && !t.ka)
|
|
2416
|
-
return t.ka = !0, new
|
|
2417
|
+
return t.ka = !0, new S(n.K, t.scope);
|
|
2417
2418
|
qe(this, 3, t.value);
|
|
2418
2419
|
};
|
|
2419
2420
|
h.prototype.stepSequenceExpression = function(e, t, n) {
|
|
2420
2421
|
var r = t.A || 0;
|
|
2421
2422
|
if (n = n.xb[r])
|
|
2422
|
-
return t.A = r + 1, new
|
|
2423
|
+
return t.A = r + 1, new S(n, t.scope);
|
|
2423
2424
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2424
2425
|
};
|
|
2425
2426
|
h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
2426
2427
|
if (!t.ga)
|
|
2427
|
-
return t.ga = 1, new
|
|
2428
|
+
return t.ga = 1, new S(n.Qb, t.scope);
|
|
2428
2429
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2429
2430
|
var r = t.gb || 0, o = n.tb[r];
|
|
2430
2431
|
if (t.Ha || !o || o.test)
|
|
2431
2432
|
if (o || t.Ha || t.cb === -1)
|
|
2432
2433
|
if (o) {
|
|
2433
2434
|
if (!t.Ha && !t.Fb && o.test)
|
|
2434
|
-
return t.Fb = !0, new
|
|
2435
|
+
return t.Fb = !0, new S(o.test, t.scope);
|
|
2435
2436
|
if (t.Ha || t.value === t.hc) {
|
|
2436
2437
|
t.Ha = !0;
|
|
2437
2438
|
var i = t.A || 0;
|
|
2438
2439
|
if (o.da[i])
|
|
2439
|
-
return t.Zb = !0, t.A = i + 1, new
|
|
2440
|
+
return t.Zb = !0, t.A = i + 1, new S(o.da[i], t.scope);
|
|
2440
2441
|
}
|
|
2441
2442
|
t.Fb = !1, t.A = 0, t.gb = r + 1;
|
|
2442
2443
|
} else {
|
|
@@ -2454,22 +2455,22 @@ h.prototype.stepThisExpression = function(e) {
|
|
|
2454
2455
|
};
|
|
2455
2456
|
h.prototype.stepThrowStatement = function(e, t, n) {
|
|
2456
2457
|
if (t.ka)
|
|
2457
|
-
|
|
2458
|
+
w(this, t.value);
|
|
2458
2459
|
else
|
|
2459
|
-
return t.ka = !0, new
|
|
2460
|
+
return t.ka = !0, new S(n.K, t.scope);
|
|
2460
2461
|
};
|
|
2461
2462
|
h.prototype.stepTryStatement = function(e, t, n) {
|
|
2462
2463
|
if (!t.Rb)
|
|
2463
|
-
return t.Rb = !0, new
|
|
2464
|
+
return t.Rb = !0, new S(n.block, t.scope);
|
|
2464
2465
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2465
|
-
return t.Tb = !0, e = tn(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new
|
|
2466
|
+
return t.Tb = !0, e = tn(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new S(n.Ea.body, e);
|
|
2466
2467
|
if (!t.Sb && n.fb)
|
|
2467
|
-
return t.Sb = !0, new
|
|
2468
|
+
return t.Sb = !0, new S(n.fb, t.scope);
|
|
2468
2469
|
e.pop(), t.ea && qe(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2469
2470
|
};
|
|
2470
2471
|
h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
2471
2472
|
if (!t.ka)
|
|
2472
|
-
return t.ka = !0, e = new
|
|
2473
|
+
return t.ka = !0, e = new S(n.K, t.scope), e.sa = n.operator === "delete", e;
|
|
2473
2474
|
e.pop();
|
|
2474
2475
|
var r = t.value;
|
|
2475
2476
|
switch (n.operator) {
|
|
@@ -2492,7 +2493,7 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2492
2493
|
try {
|
|
2493
2494
|
delete o.h[r];
|
|
2494
2495
|
} catch {
|
|
2495
|
-
t.scope.S ?
|
|
2496
|
+
t.scope.S ? w(this, this.j, "Cannot delete property '" + r + "' of '" + o + "'") : n = !1;
|
|
2496
2497
|
}
|
|
2497
2498
|
}
|
|
2498
2499
|
r = n;
|
|
@@ -2510,7 +2511,7 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2510
2511
|
};
|
|
2511
2512
|
h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
2512
2513
|
if (!t.ja)
|
|
2513
|
-
return t.ja = !0, e = new
|
|
2514
|
+
return t.ja = !0, e = new S(n.K, t.scope), e.sa = !0, e;
|
|
2514
2515
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2515
2516
|
var r = rn(this, t.Ga);
|
|
2516
2517
|
if (t.ma = r, this.P)
|
|
@@ -2535,13 +2536,13 @@ h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2535
2536
|
var r = t.A || 0, o = n[r];
|
|
2536
2537
|
for (t.Bb && o && (yr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2537
2538
|
if (o.ua)
|
|
2538
|
-
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new
|
|
2539
|
+
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new S(o.ua, t.scope);
|
|
2539
2540
|
o = n[++r];
|
|
2540
2541
|
}
|
|
2541
2542
|
e.pop();
|
|
2542
2543
|
};
|
|
2543
2544
|
h.prototype.stepWithStatement = function(e, t, n) {
|
|
2544
|
-
return t.Ca ? (e.pop(), e = tn(this, t.scope, t.value), new
|
|
2545
|
+
return t.Ca ? (e.pop(), e = tn(this, t.scope, t.value), new S(n.body, e)) : (t.Ca = !0, new S(n.object, t.scope));
|
|
2545
2546
|
};
|
|
2546
2547
|
h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
|
|
2547
2548
|
ve.Interpreter = h;
|
|
@@ -2590,51 +2591,51 @@ const $o = (e) => e.split(`
|
|
|
2590
2591
|
context: t,
|
|
2591
2592
|
event: n,
|
|
2592
2593
|
state: u
|
|
2593
|
-
}),
|
|
2594
|
-
const
|
|
2595
|
-
return `var ${
|
|
2594
|
+
}), b = p.map(([j]) => {
|
|
2595
|
+
const R = Yn(j);
|
|
2596
|
+
return `var ${j} = ${R} === undefined ? undefined : JSON.parse(${R});`;
|
|
2596
2597
|
}).join(`
|
|
2597
|
-
`),
|
|
2598
|
-
if (
|
|
2599
|
-
|
|
2598
|
+
`), x = $o(s);
|
|
2599
|
+
if (x === "") {
|
|
2600
|
+
Z.warn("Skipping evaluation of empty code block.");
|
|
2600
2601
|
return;
|
|
2601
2602
|
}
|
|
2602
2603
|
const m = `
|
|
2603
2604
|
function theFunction() {
|
|
2604
|
-
${
|
|
2605
|
+
${b}
|
|
2605
2606
|
|
|
2606
|
-
${
|
|
2607
|
+
${x}
|
|
2607
2608
|
}
|
|
2608
2609
|
theFunction();
|
|
2609
|
-
`,
|
|
2610
|
-
const
|
|
2611
|
-
i == null || i(
|
|
2612
|
-
},
|
|
2613
|
-
p.forEach(([
|
|
2614
|
-
const
|
|
2615
|
-
|
|
2616
|
-
}),
|
|
2610
|
+
`, O = (j, R) => {
|
|
2611
|
+
const Y = hr(u, j, R);
|
|
2612
|
+
i == null || i(Y);
|
|
2613
|
+
}, N = function(j, R) {
|
|
2614
|
+
p.forEach(([Y, T]) => {
|
|
2615
|
+
const g = JSON.stringify(T);
|
|
2616
|
+
j.setProperty(R, Yn(Y), g);
|
|
2617
|
+
}), j.setProperty(R, "setRootState", j.createNativeFunction(O));
|
|
2617
2618
|
};
|
|
2618
2619
|
try {
|
|
2619
|
-
const
|
|
2620
|
-
return
|
|
2621
|
-
} catch (
|
|
2622
|
-
|
|
2623
|
-
e:
|
|
2620
|
+
const j = new h(m, N);
|
|
2621
|
+
return j.run(), j.pseudoToNative(j.value);
|
|
2622
|
+
} catch (j) {
|
|
2623
|
+
Z.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2624
|
+
e: j
|
|
2624
2625
|
});
|
|
2625
2626
|
return;
|
|
2626
2627
|
}
|
|
2627
|
-
},
|
|
2628
|
+
}, ie = (e) => e != null;
|
|
2628
2629
|
function Ko() {
|
|
2629
2630
|
var e;
|
|
2630
|
-
return typeof process < "u" &&
|
|
2631
|
+
return typeof process < "u" && ie((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2631
2632
|
}
|
|
2632
2633
|
const Go = () => {
|
|
2633
2634
|
var r;
|
|
2634
2635
|
if (!Ko())
|
|
2635
2636
|
return !1;
|
|
2636
2637
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2637
|
-
return e && t && !n ? (
|
|
2638
|
+
return e && t && !n ? (Z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2638
2639
|
}, Xo = (e) => G() || Go() ? Io(e) : Ho(e), sn = class Oe {
|
|
2639
2640
|
static getCacheKey(t) {
|
|
2640
2641
|
return JSON.stringify({
|
|
@@ -2655,7 +2656,7 @@ const Go = () => {
|
|
|
2655
2656
|
};
|
|
2656
2657
|
sn.cacheLimit = 20;
|
|
2657
2658
|
sn.cache = /* @__PURE__ */ new Map();
|
|
2658
|
-
let
|
|
2659
|
+
let ct = sn;
|
|
2659
2660
|
function ln({
|
|
2660
2661
|
code: e,
|
|
2661
2662
|
context: t,
|
|
@@ -2680,25 +2681,25 @@ function ln({
|
|
|
2680
2681
|
localState: n
|
|
2681
2682
|
};
|
|
2682
2683
|
if (u) {
|
|
2683
|
-
const
|
|
2684
|
-
if (
|
|
2685
|
-
return
|
|
2684
|
+
const b = ct.getCacheKey(p), x = ct.getCachedValue(b);
|
|
2685
|
+
if (x)
|
|
2686
|
+
return x.value;
|
|
2686
2687
|
}
|
|
2687
2688
|
try {
|
|
2688
|
-
const
|
|
2689
|
+
const b = Xo(p);
|
|
2689
2690
|
if (u) {
|
|
2690
|
-
const
|
|
2691
|
-
|
|
2691
|
+
const x = ct.getCacheKey(p);
|
|
2692
|
+
ct.setCachedValue(x, b);
|
|
2692
2693
|
}
|
|
2693
|
-
return
|
|
2694
|
-
} catch (
|
|
2695
|
-
|
|
2694
|
+
return b;
|
|
2695
|
+
} catch (b) {
|
|
2696
|
+
Z.error("Failed code evaluation: " + b.message, {
|
|
2696
2697
|
code: e
|
|
2697
2698
|
});
|
|
2698
2699
|
return;
|
|
2699
2700
|
}
|
|
2700
2701
|
}
|
|
2701
|
-
const
|
|
2702
|
+
const gt = (e) => JSON.parse(JSON.stringify(e));
|
|
2702
2703
|
const Yo = ({
|
|
2703
2704
|
block: e,
|
|
2704
2705
|
context: t,
|
|
@@ -2708,7 +2709,7 @@ const Yo = ({
|
|
|
2708
2709
|
}) => {
|
|
2709
2710
|
if (!e.bindings)
|
|
2710
2711
|
return e;
|
|
2711
|
-
const i =
|
|
2712
|
+
const i = gt(e), s = {
|
|
2712
2713
|
...i,
|
|
2713
2714
|
properties: {
|
|
2714
2715
|
...i.properties
|
|
@@ -2718,7 +2719,7 @@ const Yo = ({
|
|
|
2718
2719
|
}
|
|
2719
2720
|
};
|
|
2720
2721
|
for (const u in e.bindings) {
|
|
2721
|
-
const p = e.bindings[u],
|
|
2722
|
+
const p = e.bindings[u], b = ln({
|
|
2722
2723
|
code: p,
|
|
2723
2724
|
localState: n,
|
|
2724
2725
|
rootState: r,
|
|
@@ -2726,11 +2727,11 @@ const Yo = ({
|
|
|
2726
2727
|
context: t,
|
|
2727
2728
|
enableCache: !0
|
|
2728
2729
|
});
|
|
2729
|
-
hr(s, u,
|
|
2730
|
+
hr(s, u, b);
|
|
2730
2731
|
}
|
|
2731
2732
|
return s;
|
|
2732
2733
|
};
|
|
2733
|
-
function
|
|
2734
|
+
function pt({
|
|
2734
2735
|
block: e,
|
|
2735
2736
|
context: t,
|
|
2736
2737
|
shouldEvaluateBindings: n,
|
|
@@ -2750,8 +2751,8 @@ function dt({
|
|
|
2750
2751
|
const Jo = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Sr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2751
2752
|
if (typeof r == "string")
|
|
2752
2753
|
return `${Jo(n)}: ${r};`;
|
|
2753
|
-
}).filter(
|
|
2754
|
-
`),
|
|
2754
|
+
}).filter(ie), zo = (e) => Sr(e).join(`
|
|
2755
|
+
`), ut = ({
|
|
2755
2756
|
mediaQuery: e,
|
|
2756
2757
|
className: t,
|
|
2757
2758
|
styles: n
|
|
@@ -2777,10 +2778,11 @@ const Zo = ({
|
|
|
2777
2778
|
block: e
|
|
2778
2779
|
}));
|
|
2779
2780
|
function wr(e) {
|
|
2780
|
-
switch (
|
|
2781
|
+
switch (me) {
|
|
2781
2782
|
case "svelte":
|
|
2782
2783
|
case "vue":
|
|
2783
2784
|
case "solid":
|
|
2785
|
+
case "angular":
|
|
2784
2786
|
return Sr(e).join(" ");
|
|
2785
2787
|
case "qwik":
|
|
2786
2788
|
case "reactNative":
|
|
@@ -2795,7 +2797,7 @@ const Qo = ({
|
|
|
2795
2797
|
registeredComponents: n
|
|
2796
2798
|
}) => {
|
|
2797
2799
|
var i;
|
|
2798
|
-
const r = (i =
|
|
2800
|
+
const r = (i = pt({
|
|
2799
2801
|
block: e,
|
|
2800
2802
|
localState: t.localState,
|
|
2801
2803
|
rootState: t.rootState,
|
|
@@ -2832,20 +2834,20 @@ const Qo = ({
|
|
|
2832
2834
|
if (!Array.isArray(o))
|
|
2833
2835
|
return;
|
|
2834
2836
|
const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
|
|
2835
|
-
return o.map((p,
|
|
2837
|
+
return o.map((p, b) => ({
|
|
2836
2838
|
context: {
|
|
2837
2839
|
...t,
|
|
2838
2840
|
localState: {
|
|
2839
2841
|
...t.localState,
|
|
2840
|
-
$index:
|
|
2842
|
+
$index: b,
|
|
2841
2843
|
$item: p,
|
|
2842
2844
|
[s]: p,
|
|
2843
|
-
[`$${s}Index`]:
|
|
2845
|
+
[`$${s}Index`]: b
|
|
2844
2846
|
}
|
|
2845
2847
|
},
|
|
2846
2848
|
block: r
|
|
2847
2849
|
}));
|
|
2848
|
-
}, xr = {
|
|
2850
|
+
}, ti = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), ni = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), xr = {
|
|
2849
2851
|
small: {
|
|
2850
2852
|
min: 320,
|
|
2851
2853
|
default: 321,
|
|
@@ -2865,7 +2867,7 @@ const Qo = ({
|
|
|
2865
2867
|
small: e,
|
|
2866
2868
|
medium: t
|
|
2867
2869
|
}) => {
|
|
2868
|
-
const n =
|
|
2870
|
+
const n = gt(xr);
|
|
2869
2871
|
if (!e || !t)
|
|
2870
2872
|
return n;
|
|
2871
2873
|
const r = Math.floor(e / 2);
|
|
@@ -2888,8 +2890,8 @@ const Qo = ({
|
|
|
2888
2890
|
default: i + 1
|
|
2889
2891
|
}, n;
|
|
2890
2892
|
};
|
|
2891
|
-
function
|
|
2892
|
-
return /* @__PURE__ */
|
|
2893
|
+
function yt(e) {
|
|
2894
|
+
return /* @__PURE__ */ I(
|
|
2893
2895
|
"style",
|
|
2894
2896
|
{
|
|
2895
2897
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -2908,39 +2910,39 @@ function zn(e, ...t) {
|
|
|
2908
2910
|
return n;
|
|
2909
2911
|
}
|
|
2910
2912
|
const Cr = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
2911
|
-
function
|
|
2913
|
+
function ri(e) {
|
|
2912
2914
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2913
2915
|
}
|
|
2914
|
-
function
|
|
2915
|
-
const n =
|
|
2916
|
+
function oi(e, t) {
|
|
2917
|
+
const n = ii(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
2916
2918
|
for (const u of s)
|
|
2917
2919
|
for (const p of n)
|
|
2918
2920
|
p in u || (u[p] = r[p]);
|
|
2919
2921
|
}
|
|
2920
|
-
function
|
|
2922
|
+
function ii(e) {
|
|
2921
2923
|
const t = [];
|
|
2922
2924
|
for (const n of e.steps)
|
|
2923
2925
|
for (const r in n.styles)
|
|
2924
2926
|
t.indexOf(r) === -1 && t.push(r);
|
|
2925
2927
|
return t;
|
|
2926
2928
|
}
|
|
2927
|
-
function
|
|
2929
|
+
function za(e) {
|
|
2928
2930
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2929
2931
|
if (!t.length) {
|
|
2930
|
-
|
|
2932
|
+
ri(e.elementId || e.id || "");
|
|
2931
2933
|
return;
|
|
2932
2934
|
}
|
|
2933
2935
|
Array.from(t).forEach((n) => {
|
|
2934
|
-
|
|
2936
|
+
oi(e, n), n.style.transition = "none", n.style.transitionDelay = "0", zn(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2935
2937
|
n.style.transition = `all ${e.duration}s ${Cr(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), zn(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2936
2938
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
2937
2939
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2938
2940
|
});
|
|
2939
2941
|
});
|
|
2940
2942
|
}
|
|
2941
|
-
function
|
|
2943
|
+
function ai(e) {
|
|
2942
2944
|
const t = function() {
|
|
2943
|
-
const o =
|
|
2945
|
+
const o = pt({
|
|
2944
2946
|
block: e.block,
|
|
2945
2947
|
localState: e.context.localState,
|
|
2946
2948
|
rootState: e.context.rootState,
|
|
@@ -2948,10 +2950,10 @@ function oi(e) {
|
|
|
2948
2950
|
context: e.context.context,
|
|
2949
2951
|
shouldEvaluateBindings: !0
|
|
2950
2952
|
});
|
|
2951
|
-
return
|
|
2953
|
+
return ie(o.hide) ? !o.hide : ie(o.show) ? o.show : !0;
|
|
2952
2954
|
}, n = function() {
|
|
2953
|
-
var
|
|
2954
|
-
const o =
|
|
2955
|
+
var T, g, U;
|
|
2956
|
+
const o = pt({
|
|
2955
2957
|
block: e.block,
|
|
2956
2958
|
localState: e.context.localState,
|
|
2957
2959
|
rootState: e.context.rootState,
|
|
@@ -2959,55 +2961,55 @@ function oi(e) {
|
|
|
2959
2961
|
context: e.context.context,
|
|
2960
2962
|
shouldEvaluateBindings: !0
|
|
2961
2963
|
}), i = o.responsiveStyles, s = e.context.content, u = kr(
|
|
2962
|
-
((
|
|
2963
|
-
), p = i == null ? void 0 : i.large,
|
|
2964
|
+
((T = s == null ? void 0 : s.meta) == null ? void 0 : T.breakpoints) || {}
|
|
2965
|
+
), p = i == null ? void 0 : i.large, b = i == null ? void 0 : i.medium, x = i == null ? void 0 : i.small, m = o.id;
|
|
2964
2966
|
if (!m)
|
|
2965
2967
|
return "";
|
|
2966
|
-
const
|
|
2968
|
+
const O = p ? ut({
|
|
2967
2969
|
className: m,
|
|
2968
2970
|
styles: p
|
|
2969
|
-
}) : "",
|
|
2971
|
+
}) : "", N = b ? ut({
|
|
2970
2972
|
className: m,
|
|
2971
|
-
styles:
|
|
2973
|
+
styles: b,
|
|
2972
2974
|
mediaQuery: Jn(
|
|
2973
2975
|
"medium",
|
|
2974
2976
|
u
|
|
2975
2977
|
)
|
|
2976
|
-
}) : "",
|
|
2978
|
+
}) : "", j = x ? ut({
|
|
2977
2979
|
className: m,
|
|
2978
|
-
styles:
|
|
2980
|
+
styles: x,
|
|
2979
2981
|
mediaQuery: Jn(
|
|
2980
2982
|
"small",
|
|
2981
2983
|
u
|
|
2982
2984
|
)
|
|
2983
|
-
}) : "",
|
|
2984
|
-
let
|
|
2985
|
-
if (
|
|
2986
|
-
const M = ((
|
|
2987
|
-
|
|
2985
|
+
}) : "", R = o.animations && o.animations.find((M) => M.trigger === "hover");
|
|
2986
|
+
let Y = "";
|
|
2987
|
+
if (R) {
|
|
2988
|
+
const M = ((U = (g = R.steps) == null ? void 0 : g[1]) == null ? void 0 : U.styles) || {};
|
|
2989
|
+
Y = ut({
|
|
2988
2990
|
className: `${m}:hover`,
|
|
2989
2991
|
styles: {
|
|
2990
2992
|
...M,
|
|
2991
|
-
transition: `all ${
|
|
2992
|
-
|
|
2993
|
+
transition: `all ${R.duration}s ${Cr(
|
|
2994
|
+
R.easing
|
|
2993
2995
|
)}`,
|
|
2994
|
-
transitionDelay:
|
|
2996
|
+
transitionDelay: R.delay ? `${R.delay}s` : "0s"
|
|
2995
2997
|
}
|
|
2996
2998
|
}) || "";
|
|
2997
2999
|
}
|
|
2998
3000
|
return [
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3001
|
+
O,
|
|
3002
|
+
N,
|
|
3003
|
+
j,
|
|
3004
|
+
Y
|
|
3003
3005
|
].join(" ");
|
|
3004
3006
|
};
|
|
3005
|
-
return /* @__PURE__ */
|
|
3007
|
+
return /* @__PURE__ */ I(ee, { children: n() && t() ? /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(yt, { id: "builderio-block", styles: n() }) }) : null });
|
|
3006
3008
|
}
|
|
3007
|
-
function
|
|
3009
|
+
function si(e) {
|
|
3008
3010
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
3009
3011
|
}
|
|
3010
|
-
const
|
|
3012
|
+
const li = (e) => `on${si(e)}`, ci = (e, t) => (n) => ln({
|
|
3011
3013
|
code: e,
|
|
3012
3014
|
context: t.context,
|
|
3013
3015
|
localState: t.localState,
|
|
@@ -3017,15 +3019,15 @@ const ai = (e) => `on${ii(e)}`, si = (e, t) => (n) => ln({
|
|
|
3017
3019
|
isExpression: !1,
|
|
3018
3020
|
enableCache: !0
|
|
3019
3021
|
});
|
|
3020
|
-
function
|
|
3022
|
+
function qa(e) {
|
|
3021
3023
|
const t = {}, n = e.block.actions ?? {};
|
|
3022
3024
|
for (const r in n) {
|
|
3023
3025
|
if (!n.hasOwnProperty(r))
|
|
3024
3026
|
continue;
|
|
3025
3027
|
const o = n[r];
|
|
3026
|
-
let i =
|
|
3028
|
+
let i = li(r);
|
|
3027
3029
|
if (e.stripPrefix)
|
|
3028
|
-
switch (
|
|
3030
|
+
switch (me) {
|
|
3029
3031
|
case "vue":
|
|
3030
3032
|
i = i.replace("v-on:", "");
|
|
3031
3033
|
break;
|
|
@@ -3033,25 +3035,25 @@ function Ya(e) {
|
|
|
3033
3035
|
i = i.replace("on:", "");
|
|
3034
3036
|
break;
|
|
3035
3037
|
}
|
|
3036
|
-
t[i] =
|
|
3038
|
+
t[i] = ci(o, e);
|
|
3037
3039
|
}
|
|
3038
3040
|
return t;
|
|
3039
3041
|
}
|
|
3040
|
-
function
|
|
3042
|
+
function ui({
|
|
3041
3043
|
properties: e
|
|
3042
3044
|
}) {
|
|
3043
3045
|
return e;
|
|
3044
3046
|
}
|
|
3045
|
-
const
|
|
3047
|
+
const fi = (e) => ({
|
|
3046
3048
|
href: e.href
|
|
3047
3049
|
});
|
|
3048
|
-
function
|
|
3050
|
+
function di({
|
|
3049
3051
|
block: e,
|
|
3050
3052
|
context: t
|
|
3051
3053
|
}) {
|
|
3052
3054
|
var r;
|
|
3053
3055
|
const n = {
|
|
3054
|
-
...
|
|
3056
|
+
...fi(e),
|
|
3055
3057
|
...e.properties,
|
|
3056
3058
|
"builder-id": e.id,
|
|
3057
3059
|
style: Zo({
|
|
@@ -3060,13 +3062,13 @@ function ui({
|
|
|
3060
3062
|
}),
|
|
3061
3063
|
[Yt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3062
3064
|
};
|
|
3063
|
-
return
|
|
3065
|
+
return ui({
|
|
3064
3066
|
properties: n,
|
|
3065
3067
|
context: t,
|
|
3066
3068
|
block: e
|
|
3067
3069
|
});
|
|
3068
3070
|
}
|
|
3069
|
-
const
|
|
3071
|
+
const pi = ({
|
|
3070
3072
|
componentOptions: e,
|
|
3071
3073
|
builderBlock: t,
|
|
3072
3074
|
context: n,
|
|
@@ -3082,7 +3084,7 @@ const fi = ({
|
|
|
3082
3084
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
3083
3085
|
*/
|
|
3084
3086
|
...o ? {
|
|
3085
|
-
attributes:
|
|
3087
|
+
attributes: di({
|
|
3086
3088
|
block: t,
|
|
3087
3089
|
context: s
|
|
3088
3090
|
})
|
|
@@ -3098,11 +3100,11 @@ const fi = ({
|
|
|
3098
3100
|
};
|
|
3099
3101
|
function qn(e) {
|
|
3100
3102
|
var n;
|
|
3101
|
-
const t = e.isInteractive ?
|
|
3102
|
-
return /* @__PURE__ */
|
|
3103
|
+
const t = e.isInteractive ? oo : e.componentRef;
|
|
3104
|
+
return /* @__PURE__ */ I(ee, { children: e.componentRef ? /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(
|
|
3103
3105
|
t,
|
|
3104
3106
|
{
|
|
3105
|
-
...
|
|
3107
|
+
...pi({
|
|
3106
3108
|
componentOptions: e.componentOptions,
|
|
3107
3109
|
builderBlock: e.builderBlock,
|
|
3108
3110
|
context: e.context,
|
|
@@ -3112,8 +3114,8 @@ function qn(e) {
|
|
|
3112
3114
|
isInteractive: e.isInteractive,
|
|
3113
3115
|
contextValue: e.context
|
|
3114
3116
|
}),
|
|
3115
|
-
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */
|
|
3116
|
-
|
|
3117
|
+
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */ I(
|
|
3118
|
+
vt,
|
|
3117
3119
|
{
|
|
3118
3120
|
block: r,
|
|
3119
3121
|
context: e.context,
|
|
@@ -3125,10 +3127,10 @@ function qn(e) {
|
|
|
3125
3127
|
}
|
|
3126
3128
|
) }) : null });
|
|
3127
3129
|
}
|
|
3128
|
-
function
|
|
3130
|
+
function hi(e) {
|
|
3129
3131
|
const t = e.repeatContext;
|
|
3130
|
-
return /* @__PURE__ */
|
|
3131
|
-
|
|
3132
|
+
return /* @__PURE__ */ I(
|
|
3133
|
+
vt,
|
|
3132
3134
|
{
|
|
3133
3135
|
block: e.block,
|
|
3134
3136
|
context: t,
|
|
@@ -3137,8 +3139,8 @@ function di(e) {
|
|
|
3137
3139
|
}
|
|
3138
3140
|
);
|
|
3139
3141
|
}
|
|
3140
|
-
function
|
|
3141
|
-
var p,
|
|
3142
|
+
function vt(e) {
|
|
3143
|
+
var p, b, x;
|
|
3142
3144
|
const t = function() {
|
|
3143
3145
|
return Qo({
|
|
3144
3146
|
block: e.block,
|
|
@@ -3151,8 +3153,8 @@ function yt(e) {
|
|
|
3151
3153
|
context: e.context
|
|
3152
3154
|
});
|
|
3153
3155
|
}, r = function() {
|
|
3154
|
-
var
|
|
3155
|
-
return (
|
|
3156
|
+
var O;
|
|
3157
|
+
return (O = e.block.repeat) != null && O.collection ? e.block : pt({
|
|
3156
3158
|
block: e.block,
|
|
3157
3159
|
localState: e.context.localState,
|
|
3158
3160
|
rootState: e.context.rootState,
|
|
@@ -3161,29 +3163,29 @@ function yt(e) {
|
|
|
3161
3163
|
shouldEvaluateBindings: !0
|
|
3162
3164
|
});
|
|
3163
3165
|
}, o = function() {
|
|
3164
|
-
var
|
|
3165
|
-
return e.block.tagName === "a" || ((
|
|
3166
|
+
var N;
|
|
3167
|
+
return e.block.tagName === "a" || ((N = r().properties) == null ? void 0 : N.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
3166
3168
|
}, i = function() {
|
|
3167
|
-
var
|
|
3168
|
-
if ((
|
|
3169
|
-
return !!((
|
|
3170
|
-
const
|
|
3171
|
-
return ("show" in r() ? r().show : !0) && !
|
|
3169
|
+
var j, R;
|
|
3170
|
+
if ((j = e.block.repeat) != null && j.collection)
|
|
3171
|
+
return !!((R = n()) != null && R.length);
|
|
3172
|
+
const O = "hide" in r() ? r().hide : !1;
|
|
3173
|
+
return ("show" in r() ? r().show : !0) && !O;
|
|
3172
3174
|
}, s = function() {
|
|
3173
|
-
var
|
|
3174
|
-
return !((
|
|
3175
|
+
var N;
|
|
3176
|
+
return !((N = t()) != null && N.component) && !n() ? r().children ?? [] : [];
|
|
3175
3177
|
}, u = function() {
|
|
3176
|
-
var
|
|
3178
|
+
var O, N, j;
|
|
3177
3179
|
return {
|
|
3178
3180
|
blockChildren: r().children ?? [],
|
|
3179
|
-
componentRef: (
|
|
3181
|
+
componentRef: (O = t()) == null ? void 0 : O.component,
|
|
3180
3182
|
componentOptions: {
|
|
3181
3183
|
...bo(r()),
|
|
3182
3184
|
builderContext: e.context,
|
|
3183
|
-
...(
|
|
3185
|
+
...ti(t()) ? {
|
|
3184
3186
|
builderLinkComponent: e.linkComponent
|
|
3185
3187
|
} : {},
|
|
3186
|
-
...(
|
|
3188
|
+
...ni(t()) ? {
|
|
3187
3189
|
builderComponents: e.registeredComponents
|
|
3188
3190
|
} : {}
|
|
3189
3191
|
},
|
|
@@ -3191,13 +3193,13 @@ function yt(e) {
|
|
|
3191
3193
|
linkComponent: e.linkComponent,
|
|
3192
3194
|
registeredComponents: e.registeredComponents,
|
|
3193
3195
|
builderBlock: r(),
|
|
3194
|
-
includeBlockProps: ((
|
|
3195
|
-
isInteractive: !((
|
|
3196
|
+
includeBlockProps: ((N = t()) == null ? void 0 : N.noWrap) === !0,
|
|
3197
|
+
isInteractive: !((j = t()) != null && j.isRSC)
|
|
3196
3198
|
};
|
|
3197
3199
|
};
|
|
3198
|
-
return /* @__PURE__ */
|
|
3199
|
-
/* @__PURE__ */
|
|
3200
|
-
(p = t()) != null && p.noWrap ? /* @__PURE__ */
|
|
3200
|
+
return /* @__PURE__ */ I(ee, { children: i() ? /* @__PURE__ */ xe(ee, { children: [
|
|
3201
|
+
/* @__PURE__ */ I(ai, { block: e.block, context: e.context }),
|
|
3202
|
+
(p = t()) != null && p.noWrap ? /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(
|
|
3201
3203
|
qn,
|
|
3202
3204
|
{
|
|
3203
3205
|
componentRef: u().componentRef,
|
|
@@ -3210,24 +3212,24 @@ function yt(e) {
|
|
|
3210
3212
|
includeBlockProps: u().includeBlockProps,
|
|
3211
3213
|
isInteractive: u().isInteractive
|
|
3212
3214
|
}
|
|
3213
|
-
) }) : /* @__PURE__ */
|
|
3214
|
-
|
|
3215
|
+
) }) : /* @__PURE__ */ I(ee, { children: n() ? /* @__PURE__ */ I(ee, { children: (x = n()) == null ? void 0 : x.map((m, O) => /* @__PURE__ */ I(
|
|
3216
|
+
hi,
|
|
3215
3217
|
{
|
|
3216
3218
|
repeatContext: m.context,
|
|
3217
3219
|
block: m.block,
|
|
3218
3220
|
registeredComponents: e.registeredComponents,
|
|
3219
3221
|
linkComponent: e.linkComponent
|
|
3220
3222
|
},
|
|
3221
|
-
|
|
3223
|
+
O
|
|
3222
3224
|
)) }) : /* @__PURE__ */ xe(
|
|
3223
|
-
|
|
3225
|
+
io,
|
|
3224
3226
|
{
|
|
3225
3227
|
Wrapper: o(),
|
|
3226
3228
|
block: r(),
|
|
3227
3229
|
context: e.context,
|
|
3228
3230
|
linkComponent: e.linkComponent,
|
|
3229
3231
|
children: [
|
|
3230
|
-
/* @__PURE__ */
|
|
3232
|
+
/* @__PURE__ */ I(
|
|
3231
3233
|
qn,
|
|
3232
3234
|
{
|
|
3233
3235
|
componentRef: u().componentRef,
|
|
@@ -3241,8 +3243,8 @@ function yt(e) {
|
|
|
3241
3243
|
isInteractive: u().isInteractive
|
|
3242
3244
|
}
|
|
3243
3245
|
),
|
|
3244
|
-
(
|
|
3245
|
-
|
|
3246
|
+
(b = s()) == null ? void 0 : b.map((m) => /* @__PURE__ */ I(
|
|
3247
|
+
vt,
|
|
3246
3248
|
{
|
|
3247
3249
|
block: m,
|
|
3248
3250
|
registeredComponents: e.registeredComponents,
|
|
@@ -3258,8 +3260,8 @@ function yt(e) {
|
|
|
3258
3260
|
}
|
|
3259
3261
|
function cn(e) {
|
|
3260
3262
|
var t, n, r;
|
|
3261
|
-
return /* @__PURE__ */
|
|
3262
|
-
|
|
3263
|
+
return /* @__PURE__ */ I(
|
|
3264
|
+
ao,
|
|
3263
3265
|
{
|
|
3264
3266
|
blocks: e.blocks,
|
|
3265
3267
|
parent: e.parent,
|
|
@@ -3267,8 +3269,8 @@ function cn(e) {
|
|
|
3267
3269
|
styleProp: e.styleProp,
|
|
3268
3270
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
3269
3271
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
3270
|
-
children: e.blocks ? /* @__PURE__ */
|
|
3271
|
-
|
|
3272
|
+
children: e.blocks ? /* @__PURE__ */ I(ee, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ I(
|
|
3273
|
+
vt,
|
|
3272
3274
|
{
|
|
3273
3275
|
block: o,
|
|
3274
3276
|
linkComponent: e.linkComponent,
|
|
@@ -3280,67 +3282,70 @@ function cn(e) {
|
|
|
3280
3282
|
}
|
|
3281
3283
|
);
|
|
3282
3284
|
}
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
return
|
|
3288
|
-
}, i = function(
|
|
3289
|
-
|
|
3290
|
-
return
|
|
3291
|
-
}, s = function({
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
}) {
|
|
3295
|
-
return r === "tablet" ? v : B;
|
|
3285
|
+
const mi = (e) => `builder-columns ${e}-breakpoints`;
|
|
3286
|
+
function gi(e) {
|
|
3287
|
+
var R, Y;
|
|
3288
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(g) {
|
|
3289
|
+
return g.link ? e.builderLinkComponent || "a" : "div";
|
|
3290
|
+
}, i = function(g) {
|
|
3291
|
+
var U;
|
|
3292
|
+
return ((U = n[g]) == null ? void 0 : U.width) || 100 / n.length;
|
|
3293
|
+
}, s = function(g) {
|
|
3294
|
+
const U = t * (n.length - 1) / n.length;
|
|
3295
|
+
return `calc(${i(g)}% - ${U}px)`;
|
|
3296
3296
|
}, u = function({
|
|
3297
|
-
stackedStyle:
|
|
3298
|
-
desktopStyle:
|
|
3297
|
+
stackedStyle: g,
|
|
3298
|
+
desktopStyle: U
|
|
3299
|
+
}) {
|
|
3300
|
+
return r === "tablet" ? g : U;
|
|
3301
|
+
}, p = function({
|
|
3302
|
+
stackedStyle: g,
|
|
3303
|
+
desktopStyle: U
|
|
3299
3304
|
}) {
|
|
3300
|
-
return r === "never" ?
|
|
3301
|
-
},
|
|
3305
|
+
return r === "never" ? U : g;
|
|
3306
|
+
}, b = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", x = function() {
|
|
3302
3307
|
return {
|
|
3303
|
-
"--flex-dir":
|
|
3304
|
-
"--flex-dir-tablet":
|
|
3305
|
-
stackedStyle:
|
|
3308
|
+
"--flex-dir": b,
|
|
3309
|
+
"--flex-dir-tablet": u({
|
|
3310
|
+
stackedStyle: b,
|
|
3306
3311
|
desktopStyle: "row"
|
|
3307
3312
|
})
|
|
3308
3313
|
};
|
|
3309
|
-
},
|
|
3310
|
-
const
|
|
3314
|
+
}, m = function(g) {
|
|
3315
|
+
const U = g === 0 ? 0 : t, M = s(g), X = `${U}px`, V = "100%", ne = 0;
|
|
3311
3316
|
return {
|
|
3312
3317
|
...{
|
|
3313
3318
|
display: "flex",
|
|
3314
3319
|
flexDirection: "column",
|
|
3315
3320
|
alignItems: "stretch"
|
|
3316
3321
|
},
|
|
3317
|
-
width:
|
|
3318
|
-
["marginLeft"]:
|
|
3319
|
-
"--column-width-mobile":
|
|
3320
|
-
stackedStyle:
|
|
3321
|
-
desktopStyle:
|
|
3322
|
+
width: M,
|
|
3323
|
+
["marginLeft"]: X,
|
|
3324
|
+
"--column-width-mobile": p({
|
|
3325
|
+
stackedStyle: V,
|
|
3326
|
+
desktopStyle: M
|
|
3322
3327
|
}),
|
|
3323
|
-
"--column-margin-left-mobile":
|
|
3324
|
-
stackedStyle:
|
|
3325
|
-
desktopStyle:
|
|
3328
|
+
"--column-margin-left-mobile": p({
|
|
3329
|
+
stackedStyle: ne,
|
|
3330
|
+
desktopStyle: X
|
|
3326
3331
|
}),
|
|
3327
|
-
"--column-width-tablet":
|
|
3328
|
-
stackedStyle:
|
|
3329
|
-
desktopStyle:
|
|
3332
|
+
"--column-width-tablet": u({
|
|
3333
|
+
stackedStyle: V,
|
|
3334
|
+
desktopStyle: M
|
|
3330
3335
|
}),
|
|
3331
|
-
"--column-margin-left-tablet":
|
|
3332
|
-
stackedStyle:
|
|
3333
|
-
desktopStyle:
|
|
3336
|
+
"--column-margin-left-tablet": u({
|
|
3337
|
+
stackedStyle: ne,
|
|
3338
|
+
desktopStyle: X
|
|
3334
3339
|
})
|
|
3335
3340
|
};
|
|
3336
|
-
},
|
|
3337
|
-
var
|
|
3341
|
+
}, O = function(g) {
|
|
3342
|
+
var M, X;
|
|
3338
3343
|
return kr(
|
|
3339
|
-
((
|
|
3340
|
-
)[
|
|
3341
|
-
},
|
|
3344
|
+
((X = (M = e.builderContext.content) == null ? void 0 : M.meta) == null ? void 0 : X.breakpoints) || {}
|
|
3345
|
+
)[g].max;
|
|
3346
|
+
}, N = function() {
|
|
3342
3347
|
return `
|
|
3343
|
-
@media (max-width: ${
|
|
3348
|
+
@media (max-width: ${O("medium")}px) {
|
|
3344
3349
|
.${e.builderBlock.id}-breakpoints {
|
|
3345
3350
|
flex-direction: var(--flex-dir-tablet);
|
|
3346
3351
|
align-items: stretch;
|
|
@@ -3352,7 +3357,7 @@ function pi(e) {
|
|
|
3352
3357
|
}
|
|
3353
3358
|
}
|
|
3354
3359
|
|
|
3355
|
-
@media (max-width: ${
|
|
3360
|
+
@media (max-width: ${O("small")}px) {
|
|
3356
3361
|
.${e.builderBlock.id}-breakpoints {
|
|
3357
3362
|
flex-direction: var(--flex-dir);
|
|
3358
3363
|
align-items: stretch;
|
|
@@ -3364,31 +3369,33 @@ function pi(e) {
|
|
|
3364
3369
|
}
|
|
3365
3370
|
},
|
|
3366
3371
|
`;
|
|
3372
|
+
}, j = function(g, U) {
|
|
3373
|
+
return {
|
|
3374
|
+
...g.link ? {
|
|
3375
|
+
href: g.link
|
|
3376
|
+
} : {},
|
|
3377
|
+
[Yt()]: "builder-column",
|
|
3378
|
+
style: wr(m(U))
|
|
3379
|
+
};
|
|
3367
3380
|
};
|
|
3368
|
-
return /* @__PURE__ */ xe(
|
|
3381
|
+
return /* @__PURE__ */ xe(ee, { children: [
|
|
3369
3382
|
/* @__PURE__ */ xe(
|
|
3370
3383
|
"div",
|
|
3371
3384
|
{
|
|
3372
|
-
className:
|
|
3373
|
-
style:
|
|
3385
|
+
className: mi((R = e.builderBlock) == null ? void 0 : R.id) + " div-2651dce4",
|
|
3386
|
+
style: x(),
|
|
3374
3387
|
children: [
|
|
3375
|
-
/* @__PURE__ */
|
|
3376
|
-
(
|
|
3377
|
-
|
|
3388
|
+
/* @__PURE__ */ I(yt, { id: "builderio-columns", styles: N() }),
|
|
3389
|
+
(Y = e.columns) == null ? void 0 : Y.map((T, g) => /* @__PURE__ */ I(
|
|
3390
|
+
so,
|
|
3378
3391
|
{
|
|
3379
|
-
TagName:
|
|
3392
|
+
TagName: o(T),
|
|
3380
3393
|
actionAttributes: {},
|
|
3381
|
-
attributes:
|
|
3382
|
-
|
|
3383
|
-
href: C.link
|
|
3384
|
-
} : {},
|
|
3385
|
-
[Yt()]: "builder-column",
|
|
3386
|
-
style: wr(k(v))
|
|
3387
|
-
},
|
|
3388
|
-
children: /* @__PURE__ */ A(
|
|
3394
|
+
attributes: j(T, g),
|
|
3395
|
+
children: /* @__PURE__ */ I(
|
|
3389
3396
|
cn,
|
|
3390
3397
|
{
|
|
3391
|
-
path: `component.options.columns.${
|
|
3398
|
+
path: `component.options.columns.${g}.blocks`,
|
|
3392
3399
|
parent: e.builderBlock.id,
|
|
3393
3400
|
styleProp: {
|
|
3394
3401
|
flexGrow: "1"
|
|
@@ -3396,16 +3403,16 @@ function pi(e) {
|
|
|
3396
3403
|
context: e.builderContext,
|
|
3397
3404
|
registeredComponents: e.builderComponents,
|
|
3398
3405
|
linkComponent: e.builderLinkComponent,
|
|
3399
|
-
blocks:
|
|
3406
|
+
blocks: T.blocks
|
|
3400
3407
|
}
|
|
3401
3408
|
)
|
|
3402
3409
|
},
|
|
3403
|
-
|
|
3410
|
+
g
|
|
3404
3411
|
))
|
|
3405
3412
|
]
|
|
3406
3413
|
}
|
|
3407
3414
|
),
|
|
3408
|
-
/* @__PURE__ */
|
|
3415
|
+
/* @__PURE__ */ I("style", { children: `.div-2651dce4 {
|
|
3409
3416
|
display: flex;
|
|
3410
3417
|
line-height: normal;
|
|
3411
3418
|
}` })
|
|
@@ -3414,11 +3421,11 @@ function pi(e) {
|
|
|
3414
3421
|
function Zn(e) {
|
|
3415
3422
|
return e.replace(/http(s)?:/, "");
|
|
3416
3423
|
}
|
|
3417
|
-
function
|
|
3424
|
+
function yi(e = "", t, n) {
|
|
3418
3425
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3419
3426
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
3420
3427
|
}
|
|
3421
|
-
function
|
|
3428
|
+
function vi(e, t) {
|
|
3422
3429
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3423
3430
|
return e;
|
|
3424
3431
|
if (t === "master")
|
|
@@ -3430,18 +3437,18 @@ function mi(e, t) {
|
|
|
3430
3437
|
}
|
|
3431
3438
|
return null;
|
|
3432
3439
|
}
|
|
3433
|
-
function
|
|
3440
|
+
function Za(e) {
|
|
3434
3441
|
if (!e)
|
|
3435
3442
|
return e;
|
|
3436
3443
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3437
3444
|
if (e.match(/builder\.io/)) {
|
|
3438
3445
|
let n = e;
|
|
3439
3446
|
const r = Number(e.split("?width=")[1]);
|
|
3440
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
3447
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${yi(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
3441
3448
|
}
|
|
3442
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3449
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [vi(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3443
3450
|
}
|
|
3444
|
-
const
|
|
3451
|
+
const bi = (e) => {
|
|
3445
3452
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3446
3453
|
return e;
|
|
3447
3454
|
const t = e.split(".");
|
|
@@ -3454,16 +3461,16 @@ const gi = (e) => {
|
|
|
3454
3461
|
try {
|
|
3455
3462
|
return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
3456
3463
|
} catch (r) {
|
|
3457
|
-
|
|
3464
|
+
Z.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3458
3465
|
return;
|
|
3459
3466
|
}
|
|
3460
|
-
}, Ir = async (e) => Er(e),
|
|
3467
|
+
}, Ir = async (e) => Er(e), Si = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(ie).join("; "), wi = [["secure", ""], ["SameSite", "None"]], xi = ({
|
|
3461
3468
|
name: e,
|
|
3462
3469
|
value: t,
|
|
3463
3470
|
expires: n
|
|
3464
3471
|
}) => {
|
|
3465
|
-
const o = (G() ? location.protocol === "https:" : !0) ?
|
|
3466
|
-
return
|
|
3472
|
+
const o = (G() ? location.protocol === "https:" : !0) ? wi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", bi(window.location.hostname)], ...o];
|
|
3473
|
+
return Si(s);
|
|
3467
3474
|
}, Tr = async ({
|
|
3468
3475
|
name: e,
|
|
3469
3476
|
value: t,
|
|
@@ -3473,33 +3480,33 @@ const gi = (e) => {
|
|
|
3473
3480
|
try {
|
|
3474
3481
|
if (!r)
|
|
3475
3482
|
return;
|
|
3476
|
-
const o =
|
|
3483
|
+
const o = xi({
|
|
3477
3484
|
name: e,
|
|
3478
3485
|
value: t,
|
|
3479
3486
|
expires: n
|
|
3480
3487
|
});
|
|
3481
3488
|
document.cookie = o;
|
|
3482
3489
|
} catch (o) {
|
|
3483
|
-
|
|
3490
|
+
Z.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3484
3491
|
}
|
|
3485
|
-
},
|
|
3492
|
+
}, ki = "builder.tests", un = (e) => `${ki}.${e}`, Ci = ({
|
|
3486
3493
|
contentId: e
|
|
3487
3494
|
}) => Ir({
|
|
3488
3495
|
name: un(e),
|
|
3489
3496
|
canTrack: !0
|
|
3490
|
-
}),
|
|
3497
|
+
}), Ei = ({
|
|
3491
3498
|
contentId: e
|
|
3492
3499
|
}) => Er({
|
|
3493
3500
|
name: un(e),
|
|
3494
3501
|
canTrack: !0
|
|
3495
|
-
}),
|
|
3502
|
+
}), Ii = ({
|
|
3496
3503
|
contentId: e,
|
|
3497
3504
|
value: t
|
|
3498
3505
|
}) => Tr({
|
|
3499
3506
|
name: un(e),
|
|
3500
3507
|
value: t,
|
|
3501
3508
|
canTrack: !0
|
|
3502
|
-
}), Ar = (e) =>
|
|
3509
|
+
}), Ar = (e) => ie(e.id) && ie(e.variations) && Object.keys(e.variations).length > 0, Ti = ({
|
|
3503
3510
|
id: e,
|
|
3504
3511
|
variations: t
|
|
3505
3512
|
}) => {
|
|
@@ -3513,12 +3520,12 @@ const gi = (e) => {
|
|
|
3513
3520
|
}
|
|
3514
3521
|
return e;
|
|
3515
3522
|
}, Or = (e) => {
|
|
3516
|
-
const t =
|
|
3517
|
-
return
|
|
3523
|
+
const t = Ti(e);
|
|
3524
|
+
return Ii({
|
|
3518
3525
|
contentId: e.id,
|
|
3519
3526
|
value: t
|
|
3520
3527
|
}).catch((n) => {
|
|
3521
|
-
|
|
3528
|
+
Z.error("could not store A/B test variation: ", n);
|
|
3522
3529
|
}), t;
|
|
3523
3530
|
}, jr = ({
|
|
3524
3531
|
item: e,
|
|
@@ -3534,7 +3541,7 @@ const gi = (e) => {
|
|
|
3534
3541
|
testVariationId: n.id,
|
|
3535
3542
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3536
3543
|
};
|
|
3537
|
-
},
|
|
3544
|
+
}, Ai = ({
|
|
3538
3545
|
item: e,
|
|
3539
3546
|
canTrack: t
|
|
3540
3547
|
}) => {
|
|
@@ -3544,7 +3551,7 @@ const gi = (e) => {
|
|
|
3544
3551
|
return;
|
|
3545
3552
|
if (!Ar(e))
|
|
3546
3553
|
return e;
|
|
3547
|
-
const n =
|
|
3554
|
+
const n = Ei({
|
|
3548
3555
|
contentId: e.id
|
|
3549
3556
|
}) || Or({
|
|
3550
3557
|
variations: e.variations,
|
|
@@ -3557,13 +3564,13 @@ const gi = (e) => {
|
|
|
3557
3564
|
...e,
|
|
3558
3565
|
...r
|
|
3559
3566
|
};
|
|
3560
|
-
},
|
|
3567
|
+
}, Oi = async ({
|
|
3561
3568
|
item: e,
|
|
3562
3569
|
canTrack: t
|
|
3563
3570
|
}) => {
|
|
3564
3571
|
if (!t || !Ar(e))
|
|
3565
3572
|
return e;
|
|
3566
|
-
const r = await
|
|
3573
|
+
const r = await Ci({
|
|
3567
3574
|
contentId: e.id
|
|
3568
3575
|
}) || Or({
|
|
3569
3576
|
variations: e.variations,
|
|
@@ -3576,7 +3583,7 @@ const gi = (e) => {
|
|
|
3576
3583
|
...e,
|
|
3577
3584
|
...o
|
|
3578
3585
|
};
|
|
3579
|
-
}, Kt = (e) =>
|
|
3586
|
+
}, Kt = (e) => ie(e) ? e : !0, ji = {
|
|
3580
3587
|
name: "Core:Button",
|
|
3581
3588
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3582
3589
|
defaultStyles: {
|
|
@@ -3609,7 +3616,7 @@ const gi = (e) => {
|
|
|
3609
3616
|
}],
|
|
3610
3617
|
static: !0,
|
|
3611
3618
|
noWrap: !0
|
|
3612
|
-
},
|
|
3619
|
+
}, Ri = {
|
|
3613
3620
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3614
3621
|
name: "Columns",
|
|
3615
3622
|
isRSC: !0,
|
|
@@ -3810,13 +3817,13 @@ const gi = (e) => {
|
|
|
3810
3817
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3811
3818
|
advanced: !0
|
|
3812
3819
|
}]
|
|
3813
|
-
},
|
|
3820
|
+
}, Pi = {
|
|
3814
3821
|
name: "Fragment",
|
|
3815
3822
|
static: !0,
|
|
3816
3823
|
hidden: !0,
|
|
3817
3824
|
canHaveChildren: !0,
|
|
3818
3825
|
noWrap: !0
|
|
3819
|
-
},
|
|
3826
|
+
}, Ni = {
|
|
3820
3827
|
name: "Image",
|
|
3821
3828
|
static: !0,
|
|
3822
3829
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -3837,15 +3844,15 @@ const gi = (e) => {
|
|
|
3837
3844
|
onChange: (e) => {
|
|
3838
3845
|
e.delete("srcset"), e.delete("noWebp");
|
|
3839
3846
|
function n(s, u = 6e4) {
|
|
3840
|
-
return new Promise((p,
|
|
3841
|
-
const
|
|
3847
|
+
return new Promise((p, b) => {
|
|
3848
|
+
const x = document.createElement("img");
|
|
3842
3849
|
let m = !1;
|
|
3843
|
-
|
|
3844
|
-
m = !0, p(
|
|
3845
|
-
},
|
|
3846
|
-
console.warn("Image load failed",
|
|
3847
|
-
}),
|
|
3848
|
-
m ||
|
|
3850
|
+
x.onload = () => {
|
|
3851
|
+
m = !0, p(x);
|
|
3852
|
+
}, x.addEventListener("error", (O) => {
|
|
3853
|
+
console.warn("Image load failed", O.error), b(O.error);
|
|
3854
|
+
}), x.src = s, setTimeout(() => {
|
|
3855
|
+
m || b(new Error("Image load timed out"));
|
|
3849
3856
|
}, u);
|
|
3850
3857
|
});
|
|
3851
3858
|
}
|
|
@@ -3916,7 +3923,7 @@ const gi = (e) => {
|
|
|
3916
3923
|
advanced: !0,
|
|
3917
3924
|
defaultValue: 0.7041
|
|
3918
3925
|
}]
|
|
3919
|
-
},
|
|
3926
|
+
}, Bi = {
|
|
3920
3927
|
name: "Core:Section",
|
|
3921
3928
|
static: !0,
|
|
3922
3929
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3955,7 +3962,7 @@ const gi = (e) => {
|
|
|
3955
3962
|
}
|
|
3956
3963
|
}
|
|
3957
3964
|
}]
|
|
3958
|
-
},
|
|
3965
|
+
}, Ui = {
|
|
3959
3966
|
name: "Slot",
|
|
3960
3967
|
isRSC: !0,
|
|
3961
3968
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3969,9 +3976,9 @@ const gi = (e) => {
|
|
|
3969
3976
|
defaultValue: "children"
|
|
3970
3977
|
}]
|
|
3971
3978
|
};
|
|
3972
|
-
function
|
|
3979
|
+
function Fi(e) {
|
|
3973
3980
|
var t, n, r;
|
|
3974
|
-
return /* @__PURE__ */
|
|
3981
|
+
return /* @__PURE__ */ I(
|
|
3975
3982
|
"div",
|
|
3976
3983
|
{
|
|
3977
3984
|
style: {
|
|
@@ -3980,7 +3987,7 @@ function Ni(e) {
|
|
|
3980
3987
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
3981
3988
|
"builder-slot": e.name
|
|
3982
3989
|
},
|
|
3983
|
-
children: /* @__PURE__ */
|
|
3990
|
+
children: /* @__PURE__ */ I(
|
|
3984
3991
|
cn,
|
|
3985
3992
|
{
|
|
3986
3993
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -3992,7 +3999,7 @@ function Ni(e) {
|
|
|
3992
3999
|
}
|
|
3993
4000
|
);
|
|
3994
4001
|
}
|
|
3995
|
-
const
|
|
4002
|
+
const Mi = {
|
|
3996
4003
|
name: "Symbol",
|
|
3997
4004
|
noWrap: !0,
|
|
3998
4005
|
static: !0,
|
|
@@ -4025,7 +4032,7 @@ const Ui = {
|
|
|
4025
4032
|
hideFromUI: !0,
|
|
4026
4033
|
type: "boolean"
|
|
4027
4034
|
}]
|
|
4028
|
-
},
|
|
4035
|
+
}, Vi = {
|
|
4029
4036
|
name: "Text",
|
|
4030
4037
|
static: !0,
|
|
4031
4038
|
isRSC: !0,
|
|
@@ -4044,9 +4051,9 @@ const Ui = {
|
|
|
4044
4051
|
textAlign: "center"
|
|
4045
4052
|
}
|
|
4046
4053
|
};
|
|
4047
|
-
function
|
|
4054
|
+
function Di(e) {
|
|
4048
4055
|
var t;
|
|
4049
|
-
return /* @__PURE__ */
|
|
4056
|
+
return /* @__PURE__ */ I(
|
|
4050
4057
|
"div",
|
|
4051
4058
|
{
|
|
4052
4059
|
className: "builder-text",
|
|
@@ -4057,7 +4064,7 @@ function Fi(e) {
|
|
|
4057
4064
|
}
|
|
4058
4065
|
);
|
|
4059
4066
|
}
|
|
4060
|
-
const
|
|
4067
|
+
const Li = {
|
|
4061
4068
|
name: "Custom Code",
|
|
4062
4069
|
static: !0,
|
|
4063
4070
|
requiredPermissions: ["editCode"],
|
|
@@ -4079,7 +4086,7 @@ const Mi = {
|
|
|
4079
4086
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
4080
4087
|
advanced: !0
|
|
4081
4088
|
}]
|
|
4082
|
-
},
|
|
4089
|
+
}, _i = {
|
|
4083
4090
|
name: "Embed",
|
|
4084
4091
|
static: !0,
|
|
4085
4092
|
inputs: [{
|
|
@@ -4104,7 +4111,7 @@ const Mi = {
|
|
|
4104
4111
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4105
4112
|
hideFromUI: !0
|
|
4106
4113
|
}]
|
|
4107
|
-
},
|
|
4114
|
+
}, Wi = ["text/javascript", "application/javascript", "application/ecmascript"], Qa = (e) => Wi.includes(e.type), $i = {
|
|
4108
4115
|
// friendlyName?
|
|
4109
4116
|
name: "Raw:Img",
|
|
4110
4117
|
hideFromInsertMenu: !0,
|
|
@@ -4118,7 +4125,7 @@ const Mi = {
|
|
|
4118
4125
|
}],
|
|
4119
4126
|
noWrap: !0,
|
|
4120
4127
|
static: !0
|
|
4121
|
-
},
|
|
4128
|
+
}, Hi = {
|
|
4122
4129
|
name: "Video",
|
|
4123
4130
|
canHaveChildren: !0,
|
|
4124
4131
|
defaultStyles: {
|
|
@@ -4199,58 +4206,58 @@ const Mi = {
|
|
|
4199
4206
|
defaultValue: !0,
|
|
4200
4207
|
advanced: !0
|
|
4201
4208
|
}]
|
|
4202
|
-
},
|
|
4203
|
-
component: so,
|
|
4204
|
-
...Mi
|
|
4205
|
-
}, {
|
|
4209
|
+
}, Ki = () => [{
|
|
4206
4210
|
component: lo,
|
|
4207
|
-
...Vi
|
|
4208
|
-
}, {
|
|
4209
|
-
component: co,
|
|
4210
4211
|
...Li
|
|
4211
4212
|
}, {
|
|
4212
|
-
component:
|
|
4213
|
+
component: co,
|
|
4213
4214
|
..._i
|
|
4214
|
-
}], Qn = () => [{
|
|
4215
|
-
component: fo,
|
|
4216
|
-
...Ti
|
|
4217
4215
|
}, {
|
|
4218
|
-
component:
|
|
4219
|
-
|
|
4216
|
+
component: uo,
|
|
4217
|
+
...$i
|
|
4220
4218
|
}, {
|
|
4219
|
+
component: fo,
|
|
4220
|
+
...Hi
|
|
4221
|
+
}], Qn = () => [{
|
|
4221
4222
|
component: po,
|
|
4222
|
-
...Oi
|
|
4223
|
-
}, {
|
|
4224
|
-
component: ho,
|
|
4225
4223
|
...ji
|
|
4226
4224
|
}, {
|
|
4227
|
-
component:
|
|
4225
|
+
component: gi,
|
|
4228
4226
|
...Ri
|
|
4229
4227
|
}, {
|
|
4230
|
-
component:
|
|
4228
|
+
component: ho,
|
|
4231
4229
|
...Pi
|
|
4232
4230
|
}, {
|
|
4233
|
-
component:
|
|
4234
|
-
...
|
|
4231
|
+
component: mo,
|
|
4232
|
+
...Ni
|
|
4235
4233
|
}, {
|
|
4236
|
-
component:
|
|
4234
|
+
component: go,
|
|
4237
4235
|
...Bi
|
|
4238
|
-
},
|
|
4236
|
+
}, {
|
|
4237
|
+
component: Fi,
|
|
4238
|
+
...Ui
|
|
4239
|
+
}, {
|
|
4240
|
+
component: $a,
|
|
4241
|
+
...Mi
|
|
4242
|
+
}, {
|
|
4243
|
+
component: Di,
|
|
4244
|
+
...Vi
|
|
4245
|
+
}, ...Ki()], es = (e) => ({
|
|
4239
4246
|
type: "builder.registerComponent",
|
|
4240
4247
|
data: Gt(e)
|
|
4241
|
-
}),
|
|
4248
|
+
}), Gi = (e) => {
|
|
4242
4249
|
const t = e.toString().trim();
|
|
4243
4250
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
4244
|
-
},
|
|
4251
|
+
}, Xi = (e) => typeof e == "function" ? Gi(e) : gt(e), Gt = ({
|
|
4245
4252
|
inputs: e,
|
|
4246
4253
|
...t
|
|
4247
4254
|
}) => ({
|
|
4248
|
-
...
|
|
4255
|
+
...gt(t),
|
|
4249
4256
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
|
|
4250
4257
|
...r,
|
|
4251
|
-
[o]:
|
|
4258
|
+
[o]: Xi(i)
|
|
4252
4259
|
}), {}))
|
|
4253
|
-
}),
|
|
4260
|
+
}), Yi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4254
4261
|
function getAndSetVariantId() {
|
|
4255
4262
|
function setCookie(name, value, days) {
|
|
4256
4263
|
let expires = '';
|
|
@@ -4306,7 +4313,7 @@ const Mi = {
|
|
|
4306
4313
|
}).join('');
|
|
4307
4314
|
styleEl.innerHTML = newStyleStr;
|
|
4308
4315
|
}
|
|
4309
|
-
}`,
|
|
4316
|
+
}`, Ji = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4310
4317
|
if (!navigator.cookieEnabled) {
|
|
4311
4318
|
return;
|
|
4312
4319
|
}
|
|
@@ -4340,27 +4347,27 @@ const Mi = {
|
|
|
4340
4347
|
thisScriptEl?.remove();
|
|
4341
4348
|
}
|
|
4342
4349
|
return;
|
|
4343
|
-
}`, Rr = "builderIoAbTest", Pr = "builderIoRenderContent",
|
|
4350
|
+
}`, Rr = "builderIoAbTest", Pr = "builderIoRenderContent", ft = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4344
4351
|
...t,
|
|
4345
4352
|
testVariationId: t.id,
|
|
4346
4353
|
id: e == null ? void 0 : e.id
|
|
4347
|
-
})),
|
|
4354
|
+
})), zi = ({
|
|
4348
4355
|
canTrack: e,
|
|
4349
4356
|
content: t
|
|
4350
|
-
}) => !(!(
|
|
4351
|
-
window.${Rr} = ${
|
|
4352
|
-
window.${Pr} = ${
|
|
4353
|
-
`,
|
|
4357
|
+
}) => !(!(ft(t).length > 0) || !e || G()), qi = (e) => e === "react" || e === "reactNative", Nr = qi(me), Zi = () => `
|
|
4358
|
+
window.${Rr} = ${Yi}
|
|
4359
|
+
window.${Pr} = ${Ji}
|
|
4360
|
+
`, Qi = (e, t) => `
|
|
4354
4361
|
window.${Rr}(
|
|
4355
4362
|
"${t}",${JSON.stringify(e)}, ${Nr}
|
|
4356
|
-
)`,
|
|
4363
|
+
)`, ea = ({
|
|
4357
4364
|
contentId: e,
|
|
4358
4365
|
variationId: t
|
|
4359
4366
|
}) => `window.${Pr}(
|
|
4360
4367
|
"${t}", "${e}", ${Nr}
|
|
4361
4368
|
)`;
|
|
4362
4369
|
function Xt(e) {
|
|
4363
|
-
return /* @__PURE__ */
|
|
4370
|
+
return /* @__PURE__ */ I(
|
|
4364
4371
|
"script",
|
|
4365
4372
|
{
|
|
4366
4373
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -4368,60 +4375,60 @@ function Xt(e) {
|
|
|
4368
4375
|
}
|
|
4369
4376
|
);
|
|
4370
4377
|
}
|
|
4371
|
-
const
|
|
4378
|
+
const ta = (e) => {
|
|
4372
4379
|
const t = e.get("preview"), n = e.get("overrides." + t);
|
|
4373
|
-
return n ||
|
|
4380
|
+
return n || Z.warn("No previewed ID found in search params."), n;
|
|
4374
4381
|
};
|
|
4375
|
-
function
|
|
4376
|
-
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new
|
|
4382
|
+
function na() {
|
|
4383
|
+
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new ro({
|
|
4377
4384
|
max: 500,
|
|
4378
4385
|
// how long to live in ms
|
|
4379
4386
|
ttl: 1e3 * 60 * 5
|
|
4380
4387
|
}));
|
|
4381
4388
|
}
|
|
4382
|
-
function
|
|
4383
|
-
|
|
4384
|
-
const t =
|
|
4389
|
+
function ra(e) {
|
|
4390
|
+
na();
|
|
4391
|
+
const t = ta(e);
|
|
4385
4392
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
4386
4393
|
}
|
|
4387
|
-
function
|
|
4394
|
+
function oa() {
|
|
4388
4395
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
4389
4396
|
}
|
|
4390
|
-
function
|
|
4391
|
-
const e =
|
|
4397
|
+
function ia() {
|
|
4398
|
+
const e = oa().fetch;
|
|
4392
4399
|
if (typeof e > "u")
|
|
4393
4400
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
4394
4401
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
4395
4402
|
return e;
|
|
4396
4403
|
}
|
|
4397
|
-
const
|
|
4398
|
-
function
|
|
4404
|
+
const aa = ia();
|
|
4405
|
+
function dt(e, t = null, n = ".") {
|
|
4399
4406
|
return Object.keys(e).reduce((r, o) => {
|
|
4400
4407
|
const i = e[o], s = [t, o].filter(Boolean).join(n);
|
|
4401
4408
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
4402
4409
|
...r,
|
|
4403
|
-
...
|
|
4410
|
+
...dt(i, s, n)
|
|
4404
4411
|
} : {
|
|
4405
4412
|
...r,
|
|
4406
4413
|
[s]: i
|
|
4407
4414
|
};
|
|
4408
4415
|
}, {});
|
|
4409
4416
|
}
|
|
4410
|
-
const
|
|
4417
|
+
const sa = "v3", er = "builder.", la = "options.", Br = (e) => {
|
|
4411
4418
|
if (!e)
|
|
4412
4419
|
return {};
|
|
4413
4420
|
const t = lr(e), n = {};
|
|
4414
4421
|
return Object.keys(t).forEach((r) => {
|
|
4415
4422
|
if (r.startsWith(er)) {
|
|
4416
|
-
const o = r.replace(er, "").replace(
|
|
4423
|
+
const o = r.replace(er, "").replace(la, "");
|
|
4417
4424
|
n[o] = t[r];
|
|
4418
4425
|
}
|
|
4419
4426
|
}), n;
|
|
4420
|
-
},
|
|
4427
|
+
}, ca = () => {
|
|
4421
4428
|
if (!G())
|
|
4422
4429
|
return {};
|
|
4423
4430
|
const e = new URLSearchParams(window.location.search);
|
|
4424
|
-
return
|
|
4431
|
+
return Br(e);
|
|
4425
4432
|
}, tr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fn = (e) => {
|
|
4426
4433
|
const {
|
|
4427
4434
|
limit: t = 30,
|
|
@@ -4431,103 +4438,103 @@ const oa = "v3", er = "builder.", ia = "options.", Ur = (e) => {
|
|
|
4431
4438
|
apiKey: i,
|
|
4432
4439
|
enrich: s,
|
|
4433
4440
|
locale: u,
|
|
4434
|
-
apiVersion: p =
|
|
4435
|
-
fields:
|
|
4436
|
-
omit:
|
|
4441
|
+
apiVersion: p = sa,
|
|
4442
|
+
fields: b,
|
|
4443
|
+
omit: x,
|
|
4437
4444
|
offset: m,
|
|
4438
|
-
cacheSeconds:
|
|
4439
|
-
staleCacheSeconds:
|
|
4440
|
-
sort:
|
|
4441
|
-
includeUnpublished:
|
|
4445
|
+
cacheSeconds: O,
|
|
4446
|
+
staleCacheSeconds: N,
|
|
4447
|
+
sort: j,
|
|
4448
|
+
includeUnpublished: R
|
|
4442
4449
|
} = e;
|
|
4443
4450
|
if (!i)
|
|
4444
4451
|
throw new Error("Missing API key");
|
|
4445
4452
|
if (!["v3"].includes(p))
|
|
4446
4453
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);
|
|
4447
|
-
const
|
|
4448
|
-
if (
|
|
4449
|
-
const M =
|
|
4450
|
-
sort:
|
|
4454
|
+
const Y = t !== 1, T = new URL(`https://cdn.builder.io/api/${p}/content/${o}`);
|
|
4455
|
+
if (T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(Y)), T.searchParams.set("includeRefs", String(!0)), u && T.searchParams.set("locale", u), s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", x || "meta.componentsUsed"), b && T.searchParams.set("fields", b), Number.isFinite(m) && m > -1 && T.searchParams.set("offset", String(Math.floor(m))), typeof R == "boolean" && T.searchParams.set("includeUnpublished", String(R)), O && tr(O) && T.searchParams.set("cacheSeconds", String(O)), N && tr(N) && T.searchParams.set("staleCacheSeconds", String(N)), j) {
|
|
4456
|
+
const M = dt({
|
|
4457
|
+
sort: j
|
|
4451
4458
|
});
|
|
4452
|
-
for (const
|
|
4453
|
-
|
|
4459
|
+
for (const X in M)
|
|
4460
|
+
T.searchParams.set(X, JSON.stringify(M[X]));
|
|
4454
4461
|
}
|
|
4455
|
-
const
|
|
4456
|
-
...
|
|
4462
|
+
const g = {
|
|
4463
|
+
...ca(),
|
|
4457
4464
|
...lr(e.options || {})
|
|
4458
|
-
},
|
|
4459
|
-
for (const M in
|
|
4460
|
-
|
|
4461
|
-
if (n &&
|
|
4462
|
-
const M =
|
|
4465
|
+
}, U = dt(g);
|
|
4466
|
+
for (const M in U)
|
|
4467
|
+
T.searchParams.set(M, String(U[M]));
|
|
4468
|
+
if (n && T.searchParams.set("userAttributes", JSON.stringify(n)), r) {
|
|
4469
|
+
const M = dt({
|
|
4463
4470
|
query: r
|
|
4464
4471
|
});
|
|
4465
|
-
for (const
|
|
4466
|
-
|
|
4472
|
+
for (const X in M)
|
|
4473
|
+
T.searchParams.set(X, JSON.stringify(M[X]));
|
|
4467
4474
|
}
|
|
4468
|
-
return
|
|
4469
|
-
},
|
|
4470
|
-
async function
|
|
4471
|
-
const t = await
|
|
4475
|
+
return T;
|
|
4476
|
+
}, ua = (e) => "results" in e;
|
|
4477
|
+
async function Ur(e) {
|
|
4478
|
+
const t = await pa({
|
|
4472
4479
|
...e,
|
|
4473
4480
|
limit: 1
|
|
4474
4481
|
});
|
|
4475
4482
|
return t && t[0] || null;
|
|
4476
4483
|
}
|
|
4477
|
-
const
|
|
4484
|
+
const fa = async (e) => {
|
|
4478
4485
|
const t = fn(e);
|
|
4479
|
-
return await (await (e.fetch ??
|
|
4480
|
-
},
|
|
4486
|
+
return await (await (e.fetch ?? aa)(t.href, e.fetchOptions)).json();
|
|
4487
|
+
}, da = async (e, t, n = fn(e)) => {
|
|
4481
4488
|
const r = Kt(e.canTrack);
|
|
4482
4489
|
if (n.search.includes("preview=")) {
|
|
4483
4490
|
const i = [];
|
|
4484
4491
|
for (const s of t.results) {
|
|
4485
|
-
const u =
|
|
4492
|
+
const u = ra(n.searchParams);
|
|
4486
4493
|
i.push(u || s);
|
|
4487
4494
|
}
|
|
4488
4495
|
t.results = i;
|
|
4489
4496
|
}
|
|
4490
|
-
if (!r || !(G() ||
|
|
4497
|
+
if (!r || !(G() || me === "reactNative"))
|
|
4491
4498
|
return t.results;
|
|
4492
4499
|
try {
|
|
4493
4500
|
const i = [];
|
|
4494
4501
|
for (const s of t.results)
|
|
4495
|
-
i.push(await
|
|
4502
|
+
i.push(await Oi({
|
|
4496
4503
|
item: s,
|
|
4497
4504
|
canTrack: r
|
|
4498
4505
|
}));
|
|
4499
4506
|
t.results = i;
|
|
4500
4507
|
} catch (i) {
|
|
4501
|
-
|
|
4508
|
+
Z.error("Could not process A/B tests. ", i);
|
|
4502
4509
|
}
|
|
4503
4510
|
return t.results;
|
|
4504
4511
|
};
|
|
4505
|
-
async function
|
|
4512
|
+
async function pa(e) {
|
|
4506
4513
|
try {
|
|
4507
|
-
const t = fn(e), n = await
|
|
4508
|
-
return
|
|
4514
|
+
const t = fn(e), n = await fa(e);
|
|
4515
|
+
return ua(n) ? da(e, n) : (Z.error("Error fetching data. ", {
|
|
4509
4516
|
url: t,
|
|
4510
4517
|
content: n,
|
|
4511
4518
|
options: e
|
|
4512
4519
|
}), null);
|
|
4513
4520
|
} catch (t) {
|
|
4514
|
-
return
|
|
4521
|
+
return Z.error("Error fetching data. ", t), null;
|
|
4515
4522
|
}
|
|
4516
4523
|
}
|
|
4517
|
-
function
|
|
4524
|
+
function ts(e) {
|
|
4518
4525
|
const t = e || (G() ? window.location.search : void 0);
|
|
4519
4526
|
return t ? cr(t).indexOf("builder.preview=") !== -1 : !1;
|
|
4520
4527
|
}
|
|
4521
|
-
function
|
|
4528
|
+
function ha() {
|
|
4522
4529
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
4523
4530
|
const t = Math.random() * 16 | 0;
|
|
4524
4531
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4525
4532
|
});
|
|
4526
4533
|
}
|
|
4527
4534
|
function Fr() {
|
|
4528
|
-
return
|
|
4535
|
+
return ha().replace(/-/g, "");
|
|
4529
4536
|
}
|
|
4530
|
-
const Mr = "builderSessionId",
|
|
4537
|
+
const Mr = "builderSessionId", ma = async ({
|
|
4531
4538
|
canTrack: e
|
|
4532
4539
|
}) => {
|
|
4533
4540
|
if (!e)
|
|
@@ -4536,23 +4543,23 @@ const Mr = "builderSessionId", da = async ({
|
|
|
4536
4543
|
name: Mr,
|
|
4537
4544
|
canTrack: e
|
|
4538
4545
|
});
|
|
4539
|
-
if (
|
|
4546
|
+
if (ie(t))
|
|
4540
4547
|
return t;
|
|
4541
4548
|
{
|
|
4542
|
-
const n =
|
|
4543
|
-
return
|
|
4549
|
+
const n = ga();
|
|
4550
|
+
return ya({
|
|
4544
4551
|
id: n,
|
|
4545
4552
|
canTrack: e
|
|
4546
4553
|
}), n;
|
|
4547
4554
|
}
|
|
4548
|
-
},
|
|
4555
|
+
}, ga = () => Fr(), ya = ({
|
|
4549
4556
|
id: e,
|
|
4550
4557
|
canTrack: t
|
|
4551
4558
|
}) => Tr({
|
|
4552
4559
|
name: Mr,
|
|
4553
4560
|
value: e,
|
|
4554
4561
|
canTrack: t
|
|
4555
|
-
}), Vr = () => G() && typeof localStorage < "u" ? localStorage : void 0,
|
|
4562
|
+
}), Vr = () => G() && typeof localStorage < "u" ? localStorage : void 0, va = ({
|
|
4556
4563
|
key: e,
|
|
4557
4564
|
canTrack: t
|
|
4558
4565
|
}) => {
|
|
@@ -4563,7 +4570,7 @@ const Mr = "builderSessionId", da = async ({
|
|
|
4563
4570
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4564
4571
|
return;
|
|
4565
4572
|
}
|
|
4566
|
-
},
|
|
4573
|
+
}, ba = ({
|
|
4567
4574
|
key: e,
|
|
4568
4575
|
canTrack: t,
|
|
4569
4576
|
value: n
|
|
@@ -4574,32 +4581,32 @@ const Mr = "builderSessionId", da = async ({
|
|
|
4574
4581
|
} catch (o) {
|
|
4575
4582
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4576
4583
|
}
|
|
4577
|
-
}, Dr = "builderVisitorId",
|
|
4584
|
+
}, Dr = "builderVisitorId", Sa = ({
|
|
4578
4585
|
canTrack: e
|
|
4579
4586
|
}) => {
|
|
4580
4587
|
if (!e)
|
|
4581
4588
|
return;
|
|
4582
|
-
const t =
|
|
4589
|
+
const t = va({
|
|
4583
4590
|
key: Dr,
|
|
4584
4591
|
canTrack: e
|
|
4585
4592
|
});
|
|
4586
|
-
if (
|
|
4593
|
+
if (ie(t))
|
|
4587
4594
|
return t;
|
|
4588
4595
|
{
|
|
4589
|
-
const n =
|
|
4590
|
-
return
|
|
4596
|
+
const n = wa();
|
|
4597
|
+
return xa({
|
|
4591
4598
|
id: n,
|
|
4592
4599
|
canTrack: e
|
|
4593
4600
|
}), n;
|
|
4594
4601
|
}
|
|
4595
|
-
},
|
|
4602
|
+
}, wa = () => Fr(), xa = ({
|
|
4596
4603
|
id: e,
|
|
4597
4604
|
canTrack: t
|
|
4598
|
-
}) =>
|
|
4605
|
+
}) => ba({
|
|
4599
4606
|
key: Dr,
|
|
4600
4607
|
value: e,
|
|
4601
4608
|
canTrack: t
|
|
4602
|
-
}),
|
|
4609
|
+
}), ka = async ({
|
|
4603
4610
|
canTrack: e
|
|
4604
4611
|
}) => {
|
|
4605
4612
|
if (!e)
|
|
@@ -4607,16 +4614,16 @@ const Mr = "builderSessionId", da = async ({
|
|
|
4607
4614
|
visitorId: void 0,
|
|
4608
4615
|
sessionId: void 0
|
|
4609
4616
|
};
|
|
4610
|
-
const t = await
|
|
4617
|
+
const t = await ma({
|
|
4611
4618
|
canTrack: e
|
|
4612
|
-
}), n =
|
|
4619
|
+
}), n = Sa({
|
|
4613
4620
|
canTrack: e
|
|
4614
4621
|
});
|
|
4615
4622
|
return {
|
|
4616
4623
|
sessionId: t,
|
|
4617
4624
|
visitorId: n
|
|
4618
4625
|
};
|
|
4619
|
-
},
|
|
4626
|
+
}, Ca = async ({
|
|
4620
4627
|
type: e,
|
|
4621
4628
|
canTrack: t,
|
|
4622
4629
|
apiKey: n,
|
|
@@ -4630,23 +4637,23 @@ const Mr = "builderSessionId", da = async ({
|
|
|
4630
4637
|
url: location.href,
|
|
4631
4638
|
...r
|
|
4632
4639
|
},
|
|
4633
|
-
...await
|
|
4640
|
+
...await ka({
|
|
4634
4641
|
canTrack: t
|
|
4635
4642
|
}),
|
|
4636
4643
|
userAttributes: fr(),
|
|
4637
4644
|
ownerId: n
|
|
4638
4645
|
}
|
|
4639
4646
|
});
|
|
4640
|
-
async function
|
|
4647
|
+
async function Ea(e) {
|
|
4641
4648
|
if (!e.apiKey) {
|
|
4642
|
-
|
|
4649
|
+
Z.error("Missing API key for track call. Please provide your API key.");
|
|
4643
4650
|
return;
|
|
4644
4651
|
}
|
|
4645
|
-
if (e.canTrack && !ur() && (G() ||
|
|
4652
|
+
if (e.canTrack && !ur() && (G() || me === "reactNative"))
|
|
4646
4653
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
4647
4654
|
method: "POST",
|
|
4648
4655
|
body: JSON.stringify({
|
|
4649
|
-
events: [await
|
|
4656
|
+
events: [await Ca(e)]
|
|
4650
4657
|
}),
|
|
4651
4658
|
headers: {
|
|
4652
4659
|
"content-type": "application/json"
|
|
@@ -4656,14 +4663,14 @@ async function xa(e) {
|
|
|
4656
4663
|
console.error("Failed to track: ", t);
|
|
4657
4664
|
});
|
|
4658
4665
|
}
|
|
4659
|
-
const
|
|
4666
|
+
const ns = (e) => Ea({
|
|
4660
4667
|
...e,
|
|
4661
4668
|
canTrack: !0
|
|
4662
4669
|
});
|
|
4663
4670
|
function nr(e) {
|
|
4664
4671
|
return Math.round(e * 1e3) / 1e3;
|
|
4665
4672
|
}
|
|
4666
|
-
const
|
|
4673
|
+
const Ia = (e, t, n = !0) => {
|
|
4667
4674
|
if (!(e instanceof HTMLElement))
|
|
4668
4675
|
return null;
|
|
4669
4676
|
let r = n ? e : e.parentElement;
|
|
@@ -4674,7 +4681,7 @@ const ka = (e, t, n = !0) => {
|
|
|
4674
4681
|
return r;
|
|
4675
4682
|
} while (r = r.parentElement);
|
|
4676
4683
|
return null;
|
|
4677
|
-
},
|
|
4684
|
+
}, Ta = (e) => Ia(e, (t) => {
|
|
4678
4685
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4679
4686
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4680
4687
|
}), rr = ({
|
|
@@ -4686,8 +4693,8 @@ const ka = (e, t, n = !0) => {
|
|
|
4686
4693
|
x: i,
|
|
4687
4694
|
y: s
|
|
4688
4695
|
};
|
|
4689
|
-
},
|
|
4690
|
-
const t = e.target, n = t &&
|
|
4696
|
+
}, rs = (e) => {
|
|
4697
|
+
const t = e.target, n = t && Ta(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4691
4698
|
return {
|
|
4692
4699
|
targetBuilderElement: r || void 0,
|
|
4693
4700
|
metadata: {
|
|
@@ -4702,13 +4709,13 @@ const ka = (e, t, n = !0) => {
|
|
|
4702
4709
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4703
4710
|
}
|
|
4704
4711
|
};
|
|
4705
|
-
},
|
|
4712
|
+
}, Aa = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4706
4713
|
function Lr(e, t) {
|
|
4707
4714
|
const n = new URL(t.origin), r = n.hostname;
|
|
4708
|
-
return (e ||
|
|
4715
|
+
return (e || Aa).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
4709
4716
|
}
|
|
4710
|
-
const
|
|
4711
|
-
function
|
|
4717
|
+
const Oa = "0.14.20", or = {};
|
|
4718
|
+
function ja(e, t) {
|
|
4712
4719
|
let n = or[e];
|
|
4713
4720
|
if (n || (n = or[e] = []), n.push(t), G()) {
|
|
4714
4721
|
const r = {
|
|
@@ -4725,8 +4732,8 @@ function Ta(e, t) {
|
|
|
4725
4732
|
}
|
|
4726
4733
|
}
|
|
4727
4734
|
}
|
|
4728
|
-
const
|
|
4729
|
-
|
|
4735
|
+
const os = () => {
|
|
4736
|
+
ja("insertMenu", {
|
|
4730
4737
|
name: "_default",
|
|
4731
4738
|
default: !0,
|
|
4732
4739
|
items: [{
|
|
@@ -4749,13 +4756,13 @@ const ts = () => {
|
|
|
4749
4756
|
});
|
|
4750
4757
|
};
|
|
4751
4758
|
let ir = !1;
|
|
4752
|
-
const
|
|
4759
|
+
const Ra = (e = {}) => {
|
|
4753
4760
|
var t, n;
|
|
4754
4761
|
ir || (ir = !0, G() && ((t = window.parent) == null || t.postMessage({
|
|
4755
4762
|
type: "builder.sdkInfo",
|
|
4756
4763
|
data: {
|
|
4757
|
-
target:
|
|
4758
|
-
version:
|
|
4764
|
+
target: me,
|
|
4765
|
+
version: Oa,
|
|
4759
4766
|
supportsPatchUpdates: !1,
|
|
4760
4767
|
// Supports builder-model="..." attribute which is needed to
|
|
4761
4768
|
// scope our '+ add block' button styling
|
|
@@ -4777,40 +4784,40 @@ const Aa = (e = {}) => {
|
|
|
4777
4784
|
if (o != null && o.type)
|
|
4778
4785
|
switch (o.type) {
|
|
4779
4786
|
case "builder.evaluate": {
|
|
4780
|
-
const u = o.data.text, p = o.data.arguments || [],
|
|
4781
|
-
let m,
|
|
4787
|
+
const u = o.data.text, p = o.data.arguments || [], b = o.data.id, x = new Function(u);
|
|
4788
|
+
let m, O = null;
|
|
4782
4789
|
try {
|
|
4783
|
-
m =
|
|
4784
|
-
} catch (
|
|
4785
|
-
|
|
4790
|
+
m = x.apply(null, p);
|
|
4791
|
+
} catch (N) {
|
|
4792
|
+
O = N;
|
|
4786
4793
|
}
|
|
4787
|
-
|
|
4794
|
+
O ? (i = window.parent) == null || i.postMessage({
|
|
4788
4795
|
type: "builder.evaluateError",
|
|
4789
4796
|
data: {
|
|
4790
|
-
id:
|
|
4791
|
-
error:
|
|
4797
|
+
id: b,
|
|
4798
|
+
error: O.message
|
|
4792
4799
|
}
|
|
4793
|
-
}, "*") : m && typeof m.then == "function" ? m.then((
|
|
4794
|
-
var
|
|
4795
|
-
(
|
|
4800
|
+
}, "*") : m && typeof m.then == "function" ? m.then((N) => {
|
|
4801
|
+
var j;
|
|
4802
|
+
(j = window.parent) == null || j.postMessage({
|
|
4796
4803
|
type: "builder.evaluateResult",
|
|
4797
4804
|
data: {
|
|
4798
|
-
id:
|
|
4799
|
-
result:
|
|
4805
|
+
id: b,
|
|
4806
|
+
result: N
|
|
4800
4807
|
}
|
|
4801
4808
|
}, "*");
|
|
4802
4809
|
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
4803
4810
|
type: "builder.evaluateResult",
|
|
4804
4811
|
data: {
|
|
4805
4812
|
result: m,
|
|
4806
|
-
id:
|
|
4813
|
+
id: b
|
|
4807
4814
|
}
|
|
4808
4815
|
}, "*");
|
|
4809
4816
|
break;
|
|
4810
4817
|
}
|
|
4811
4818
|
}
|
|
4812
4819
|
})));
|
|
4813
|
-
},
|
|
4820
|
+
}, Pa = ({
|
|
4814
4821
|
model: e,
|
|
4815
4822
|
trustedHosts: t,
|
|
4816
4823
|
callbacks: n
|
|
@@ -4836,12 +4843,12 @@ const Aa = (e = {}) => {
|
|
|
4836
4843
|
break;
|
|
4837
4844
|
}
|
|
4838
4845
|
}
|
|
4839
|
-
},
|
|
4846
|
+
}, is = (e, t, n) => {
|
|
4840
4847
|
if (!G)
|
|
4841
|
-
return
|
|
4848
|
+
return Z.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
4842
4849
|
};
|
|
4843
|
-
|
|
4844
|
-
const r =
|
|
4850
|
+
Ra();
|
|
4851
|
+
const r = Pa({
|
|
4845
4852
|
callbacks: {
|
|
4846
4853
|
contentUpdate: t,
|
|
4847
4854
|
animation: () => {
|
|
@@ -4855,7 +4862,7 @@ const Aa = (e = {}) => {
|
|
|
4855
4862
|
return window.addEventListener("message", r), () => {
|
|
4856
4863
|
window.removeEventListener("message", r);
|
|
4857
4864
|
};
|
|
4858
|
-
},
|
|
4865
|
+
}, Na = (e) => {
|
|
4859
4866
|
var i;
|
|
4860
4867
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
4861
4868
|
let o = "";
|
|
@@ -4881,15 +4888,15 @@ font-weight: ${s};
|
|
|
4881
4888
|
`.trim());
|
|
4882
4889
|
}
|
|
4883
4890
|
return o;
|
|
4884
|
-
},
|
|
4891
|
+
}, Ba = ({
|
|
4885
4892
|
customFonts: e
|
|
4886
4893
|
}) => {
|
|
4887
4894
|
var t;
|
|
4888
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4889
|
-
},
|
|
4895
|
+
return ((t = e == null ? void 0 : e.map((n) => Na(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4896
|
+
}, Ua = ({
|
|
4890
4897
|
cssCode: e,
|
|
4891
4898
|
contentId: t
|
|
4892
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4899
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Fa = `
|
|
4893
4900
|
.builder-button {
|
|
4894
4901
|
all: unset;
|
|
4895
4902
|
}
|
|
@@ -4906,21 +4913,21 @@ font-weight: ${s};
|
|
|
4906
4913
|
text-align: inherit;
|
|
4907
4914
|
font-family: inherit;
|
|
4908
4915
|
}
|
|
4909
|
-
`,
|
|
4910
|
-
function
|
|
4916
|
+
`, Ma = (e) => e ? "" : Fa, as = (e) => `variant-${e}`;
|
|
4917
|
+
function Va(e) {
|
|
4911
4918
|
const t = `
|
|
4912
|
-
${
|
|
4919
|
+
${Ua({
|
|
4913
4920
|
cssCode: e.cssCode,
|
|
4914
4921
|
contentId: e.contentId
|
|
4915
4922
|
})}
|
|
4916
|
-
${
|
|
4923
|
+
${Ba({
|
|
4917
4924
|
customFonts: e.customFonts
|
|
4918
4925
|
})}
|
|
4919
|
-
${
|
|
4926
|
+
${Ma(e.isNestedRender)}
|
|
4920
4927
|
`.trim();
|
|
4921
|
-
return /* @__PURE__ */
|
|
4928
|
+
return /* @__PURE__ */ I(yt, { id: "builderio-content", styles: t });
|
|
4922
4929
|
}
|
|
4923
|
-
const
|
|
4930
|
+
const Da = ({
|
|
4924
4931
|
content: e,
|
|
4925
4932
|
data: t,
|
|
4926
4933
|
locale: n
|
|
@@ -4937,7 +4944,7 @@ const Fa = ({
|
|
|
4937
4944
|
locale: n
|
|
4938
4945
|
} : {}
|
|
4939
4946
|
};
|
|
4940
|
-
},
|
|
4947
|
+
}, La = ({
|
|
4941
4948
|
content: e,
|
|
4942
4949
|
data: t
|
|
4943
4950
|
}) => e ? {
|
|
@@ -4949,8 +4956,8 @@ const Fa = ({
|
|
|
4949
4956
|
meta: e == null ? void 0 : e.meta
|
|
4950
4957
|
} : void 0;
|
|
4951
4958
|
function ar(e) {
|
|
4952
|
-
var o, i, s, u, p,
|
|
4953
|
-
const t =
|
|
4959
|
+
var o, i, s, u, p, b, x, m, O;
|
|
4960
|
+
const t = ea({
|
|
4954
4961
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4955
4962
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
4956
4963
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4959,21 +4966,21 @@ function ar(e) {
|
|
|
4959
4966
|
...Qn(),
|
|
4960
4967
|
...e.customComponents || []
|
|
4961
4968
|
].reduce(
|
|
4962
|
-
(
|
|
4963
|
-
...
|
|
4964
|
-
[
|
|
4965
|
-
component:
|
|
4966
|
-
...Gt(
|
|
4969
|
+
(N, { component: j, ...R }) => ({
|
|
4970
|
+
...N,
|
|
4971
|
+
[R.name]: {
|
|
4972
|
+
component: j,
|
|
4973
|
+
...Gt(R)
|
|
4967
4974
|
}
|
|
4968
4975
|
}),
|
|
4969
4976
|
{}
|
|
4970
4977
|
), r = {
|
|
4971
|
-
content:
|
|
4978
|
+
content: La({
|
|
4972
4979
|
content: e.content,
|
|
4973
4980
|
data: e.data
|
|
4974
4981
|
}),
|
|
4975
4982
|
localState: void 0,
|
|
4976
|
-
rootState:
|
|
4983
|
+
rootState: Da({
|
|
4977
4984
|
content: e.content,
|
|
4978
4985
|
data: e.data,
|
|
4979
4986
|
locale: e.locale
|
|
@@ -4986,9 +4993,9 @@ function ar(e) {
|
|
|
4986
4993
|
...Qn(),
|
|
4987
4994
|
...e.customComponents || []
|
|
4988
4995
|
].reduce(
|
|
4989
|
-
(
|
|
4990
|
-
...
|
|
4991
|
-
[
|
|
4996
|
+
(N, { component: j, ...R }) => ({
|
|
4997
|
+
...N,
|
|
4998
|
+
[R.name]: Gt(R)
|
|
4992
4999
|
}),
|
|
4993
5000
|
{}
|
|
4994
5001
|
),
|
|
@@ -4997,7 +5004,7 @@ function ar(e) {
|
|
|
4997
5004
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
4998
5005
|
};
|
|
4999
5006
|
return /* @__PURE__ */ xe(
|
|
5000
|
-
|
|
5007
|
+
yo,
|
|
5001
5008
|
{
|
|
5002
5009
|
content: e.content,
|
|
5003
5010
|
data: e.data,
|
|
@@ -5014,26 +5021,26 @@ function ar(e) {
|
|
|
5014
5021
|
linkComponent: e.linkComponent,
|
|
5015
5022
|
trustedHosts: e.trustedHosts,
|
|
5016
5023
|
children: [
|
|
5017
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
5024
|
+
e.isSsrAbTest ? /* @__PURE__ */ I(
|
|
5018
5025
|
Xt,
|
|
5019
5026
|
{
|
|
5020
5027
|
id: "builderio-variant-visibility",
|
|
5021
5028
|
scriptStr: t
|
|
5022
5029
|
}
|
|
5023
5030
|
) : null,
|
|
5024
|
-
/* @__PURE__ */
|
|
5025
|
-
|
|
5031
|
+
/* @__PURE__ */ I(
|
|
5032
|
+
Va,
|
|
5026
5033
|
{
|
|
5027
5034
|
isNestedRender: e.isNestedRender,
|
|
5028
5035
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
5029
5036
|
cssCode: (p = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : p.cssCode,
|
|
5030
|
-
customFonts: (
|
|
5037
|
+
customFonts: (x = (b = r.content) == null ? void 0 : b.data) == null ? void 0 : x.customFonts
|
|
5031
5038
|
}
|
|
5032
5039
|
),
|
|
5033
|
-
/* @__PURE__ */
|
|
5040
|
+
/* @__PURE__ */ I(
|
|
5034
5041
|
cn,
|
|
5035
5042
|
{
|
|
5036
|
-
blocks: (
|
|
5043
|
+
blocks: (O = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : O.blocks,
|
|
5037
5044
|
context: r,
|
|
5038
5045
|
registeredComponents: n,
|
|
5039
5046
|
linkComponent: e.linkComponent
|
|
@@ -5043,56 +5050,56 @@ function ar(e) {
|
|
|
5043
5050
|
}
|
|
5044
5051
|
);
|
|
5045
5052
|
}
|
|
5046
|
-
function
|
|
5053
|
+
function _a(e) {
|
|
5047
5054
|
var i;
|
|
5048
|
-
const t =
|
|
5055
|
+
const t = zi({
|
|
5049
5056
|
canTrack: Kt(e.canTrack),
|
|
5050
5057
|
content: e.content
|
|
5051
5058
|
}), n = function() {
|
|
5052
5059
|
var u;
|
|
5053
|
-
return
|
|
5054
|
-
|
|
5060
|
+
return Qi(
|
|
5061
|
+
ft(e.content).map((p) => ({
|
|
5055
5062
|
id: p.testVariationId,
|
|
5056
5063
|
testRatio: p.testRatio
|
|
5057
5064
|
})),
|
|
5058
5065
|
((u = e.content) == null ? void 0 : u.id) || ""
|
|
5059
5066
|
);
|
|
5060
5067
|
}, r = function() {
|
|
5061
|
-
return
|
|
5068
|
+
return ft(e.content).map((u) => `.variant-${u.testVariationId} { display: none; } `).join("");
|
|
5062
5069
|
}, o = function() {
|
|
5063
5070
|
var u;
|
|
5064
5071
|
return t ? {
|
|
5065
5072
|
...e.content,
|
|
5066
5073
|
testVariationId: (u = e.content) == null ? void 0 : u.id
|
|
5067
|
-
} :
|
|
5074
|
+
} : Ai({
|
|
5068
5075
|
item: e.content,
|
|
5069
5076
|
canTrack: Kt(e.canTrack)
|
|
5070
5077
|
});
|
|
5071
5078
|
};
|
|
5072
|
-
return /* @__PURE__ */ xe(
|
|
5073
|
-
!e.isNestedRender &&
|
|
5079
|
+
return /* @__PURE__ */ xe(ee, { children: [
|
|
5080
|
+
!e.isNestedRender && me !== "reactNative" ? /* @__PURE__ */ I(
|
|
5074
5081
|
Xt,
|
|
5075
5082
|
{
|
|
5076
5083
|
id: "builderio-init-variants-fns",
|
|
5077
|
-
scriptStr:
|
|
5084
|
+
scriptStr: Zi()
|
|
5078
5085
|
}
|
|
5079
5086
|
) : null,
|
|
5080
|
-
t ? /* @__PURE__ */ xe(
|
|
5081
|
-
/* @__PURE__ */
|
|
5082
|
-
|
|
5087
|
+
t ? /* @__PURE__ */ xe(ee, { children: [
|
|
5088
|
+
/* @__PURE__ */ I(
|
|
5089
|
+
yt,
|
|
5083
5090
|
{
|
|
5084
5091
|
id: "builderio-variants",
|
|
5085
5092
|
styles: r()
|
|
5086
5093
|
}
|
|
5087
5094
|
),
|
|
5088
|
-
/* @__PURE__ */
|
|
5095
|
+
/* @__PURE__ */ I(
|
|
5089
5096
|
Xt,
|
|
5090
5097
|
{
|
|
5091
5098
|
id: "builderio-variants-visibility",
|
|
5092
5099
|
scriptStr: n()
|
|
5093
5100
|
}
|
|
5094
5101
|
),
|
|
5095
|
-
(i =
|
|
5102
|
+
(i = ft(e.content)) == null ? void 0 : i.map((s) => /* @__PURE__ */ I(
|
|
5096
5103
|
ar,
|
|
5097
5104
|
{
|
|
5098
5105
|
isNestedRender: e.isNestedRender,
|
|
@@ -5118,7 +5125,7 @@ function Va(e) {
|
|
|
5118
5125
|
s.testVariationId
|
|
5119
5126
|
))
|
|
5120
5127
|
] }) : null,
|
|
5121
|
-
/* @__PURE__ */
|
|
5128
|
+
/* @__PURE__ */ I(
|
|
5122
5129
|
ar,
|
|
5123
5130
|
{
|
|
5124
5131
|
isNestedRender: e.isNestedRender,
|
|
@@ -5144,13 +5151,13 @@ function Va(e) {
|
|
|
5144
5151
|
)
|
|
5145
5152
|
] });
|
|
5146
5153
|
}
|
|
5147
|
-
const
|
|
5154
|
+
const Wa = async ({
|
|
5148
5155
|
builderContextValue: e,
|
|
5149
5156
|
symbol: t
|
|
5150
5157
|
}) => {
|
|
5151
5158
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5152
5159
|
(e != null && e.apiKey))
|
|
5153
|
-
return
|
|
5160
|
+
return Ur({
|
|
5154
5161
|
model: t.model,
|
|
5155
5162
|
apiKey: e.apiKey,
|
|
5156
5163
|
apiVersion: e.apiVersion,
|
|
@@ -5160,49 +5167,53 @@ const Da = async ({
|
|
|
5160
5167
|
}
|
|
5161
5168
|
}
|
|
5162
5169
|
}).catch((n) => {
|
|
5163
|
-
|
|
5170
|
+
Z.error("Could not fetch symbol content: ", n);
|
|
5164
5171
|
});
|
|
5165
5172
|
};
|
|
5166
|
-
async function
|
|
5167
|
-
var
|
|
5173
|
+
async function $a(e) {
|
|
5174
|
+
var i, s, u, p, b;
|
|
5168
5175
|
const t = function() {
|
|
5169
|
-
|
|
5176
|
+
return "div";
|
|
5177
|
+
}, n = function() {
|
|
5178
|
+
return "div";
|
|
5179
|
+
}, r = function() {
|
|
5180
|
+
var m, O;
|
|
5170
5181
|
return [
|
|
5171
5182
|
e.attributes[Yt()],
|
|
5172
5183
|
"builder-symbol",
|
|
5173
|
-
(
|
|
5174
|
-
(
|
|
5184
|
+
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
5185
|
+
(O = e.symbol) != null && O.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5175
5186
|
].filter(Boolean).join(" ");
|
|
5176
|
-
},
|
|
5187
|
+
}, o = ((i = e.symbol) == null ? void 0 : i.content) || await Wa({
|
|
5177
5188
|
symbol: e.symbol,
|
|
5178
5189
|
builderContextValue: e.builderContext
|
|
5179
5190
|
});
|
|
5180
|
-
return /* @__PURE__ */
|
|
5181
|
-
|
|
5191
|
+
return /* @__PURE__ */ I("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ I(
|
|
5192
|
+
_a,
|
|
5182
5193
|
{
|
|
5183
5194
|
isNestedRender: !0,
|
|
5184
5195
|
apiVersion: e.builderContext.apiVersion,
|
|
5185
5196
|
apiKey: e.builderContext.apiKey,
|
|
5186
5197
|
context: {
|
|
5187
5198
|
...e.builderContext.context,
|
|
5188
|
-
symbolId: (
|
|
5199
|
+
symbolId: (s = e.builderBlock) == null ? void 0 : s.id
|
|
5189
5200
|
},
|
|
5190
5201
|
customComponents: Object.values(e.builderComponents),
|
|
5191
5202
|
data: {
|
|
5192
|
-
...(
|
|
5203
|
+
...(u = e.symbol) == null ? void 0 : u.data,
|
|
5193
5204
|
...e.builderContext.localState,
|
|
5194
|
-
...(
|
|
5205
|
+
...(p = o == null ? void 0 : o.data) == null ? void 0 : p.state
|
|
5195
5206
|
},
|
|
5196
|
-
model: (
|
|
5197
|
-
content:
|
|
5207
|
+
model: (b = e.symbol) == null ? void 0 : b.model,
|
|
5208
|
+
content: o,
|
|
5198
5209
|
linkComponent: e.builderLinkComponent,
|
|
5199
|
-
blocksWrapper:
|
|
5200
|
-
contentWrapper:
|
|
5210
|
+
blocksWrapper: t(),
|
|
5211
|
+
contentWrapper: n()
|
|
5201
5212
|
}
|
|
5202
5213
|
) });
|
|
5203
5214
|
}
|
|
5204
5215
|
const sr = {};
|
|
5205
|
-
function
|
|
5216
|
+
function ss(e) {
|
|
5206
5217
|
if (G()) {
|
|
5207
5218
|
Object.assign(sr, e);
|
|
5208
5219
|
const t = {
|
|
@@ -5212,7 +5223,7 @@ function rs(e) {
|
|
|
5212
5223
|
parent.postMessage(t, "*");
|
|
5213
5224
|
}
|
|
5214
5225
|
}
|
|
5215
|
-
const
|
|
5226
|
+
const ls = async (e) => {
|
|
5216
5227
|
var r, o, i;
|
|
5217
5228
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
5218
5229
|
...e,
|
|
@@ -5224,49 +5235,50 @@ const os = async (e) => {
|
|
|
5224
5235
|
urlPath: t
|
|
5225
5236
|
} : {}
|
|
5226
5237
|
},
|
|
5227
|
-
options:
|
|
5238
|
+
options: Br(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
5228
5239
|
};
|
|
5229
5240
|
return {
|
|
5230
5241
|
apiKey: n.apiKey,
|
|
5231
5242
|
model: n.model,
|
|
5232
|
-
content: await
|
|
5243
|
+
content: await Ur(n)
|
|
5233
5244
|
};
|
|
5234
5245
|
};
|
|
5235
5246
|
export {
|
|
5236
|
-
|
|
5247
|
+
Br as A,
|
|
5237
5248
|
cn as B,
|
|
5238
|
-
|
|
5249
|
+
gi as C,
|
|
5239
5250
|
ns as D,
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5251
|
+
is as E,
|
|
5252
|
+
ls as F,
|
|
5253
|
+
da as G,
|
|
5254
|
+
pa as H,
|
|
5255
|
+
$a as S,
|
|
5256
|
+
Di as T,
|
|
5257
|
+
Ea as _,
|
|
5258
|
+
di as a,
|
|
5259
|
+
qa as b,
|
|
5248
5260
|
ur as c,
|
|
5249
|
-
|
|
5250
|
-
|
|
5261
|
+
Za as d,
|
|
5262
|
+
Qa as e,
|
|
5251
5263
|
G as f,
|
|
5252
5264
|
Yt as g,
|
|
5253
5265
|
Kt as h,
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5266
|
+
Ja as i,
|
|
5267
|
+
ts as j,
|
|
5268
|
+
as as k,
|
|
5269
|
+
Z as l,
|
|
5270
|
+
Pa as m,
|
|
5271
|
+
ln as n,
|
|
5272
|
+
rs as o,
|
|
5273
|
+
aa as p,
|
|
5274
|
+
gt as q,
|
|
5275
|
+
os as r,
|
|
5276
|
+
Ra as s,
|
|
5277
|
+
za as t,
|
|
5278
|
+
es as u,
|
|
5279
|
+
Ur as v,
|
|
5280
|
+
na as w,
|
|
5281
|
+
_a as x,
|
|
5282
|
+
ja as y,
|
|
5283
|
+
ss as z
|
|
5272
5284
|
};
|