@builder.io/sdk-react 1.0.24 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +9 -9
- package/lib/browser/blocks-exports.mjs +75 -75
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +8 -1
- package/lib/browser/init.mjs +38 -2
- package/lib/browser/{server-entry-a540d463.cjs → server-entry-298501b1.cjs} +2 -2
- package/lib/browser/{server-entry-85d7f359.js → server-entry-c522a38f.js} +2 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{blocks-e6873db2.js → blocks-612eb41b.js} +140 -140
- package/lib/edge/{blocks-59950370.cjs → blocks-77e27834.cjs} +11 -11
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-8a6ae666.js → button-70b2e3a9.js} +2 -2
- package/lib/edge/{button-aff4f652.cjs → button-956ab5bc.cjs} +1 -1
- package/lib/edge/{columns-0768e506.js → columns-623de7ba.js} +3 -3
- package/lib/edge/{columns-8dca796d.cjs → columns-9ed7dfeb.cjs} +1 -1
- package/lib/edge/{content-variants-c8061bc0.js → content-variants-059e455f.js} +9 -9
- package/lib/edge/{content-variants-e79859ac.cjs → content-variants-eca40007.cjs} +1 -1
- package/lib/edge/{form-e6847833.cjs → form-5c01a94c.cjs} +1 -1
- package/lib/edge/{form-c3d12c27.js → form-a1e588d6.js} +3 -3
- package/lib/edge/{get-class-prop-name-a966a097.cjs → get-class-prop-name-65450a8e.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-a023381f.js → get-class-prop-name-bee742f6.js} +1 -1
- package/lib/edge/{img-03949fec.js → img-79534c61.js} +1 -1
- package/lib/edge/{img-1431a6ab.cjs → img-d8259a3f.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +8 -1
- package/lib/edge/init.mjs +38 -2
- package/lib/edge/{input-f611f26d.js → input-5b9458cd.js} +1 -1
- package/lib/edge/{input-f420d17a.cjs → input-d9a6232c.cjs} +1 -1
- package/lib/edge/{select-e056d1d3.js → select-1b1b666f.js} +1 -1
- package/lib/edge/{select-aadf10db.cjs → select-fd3daca2.cjs} +1 -1
- package/lib/edge/{server-entry-95f97e05.cjs → server-entry-2f25c4ff.cjs} +2 -2
- package/lib/edge/{server-entry-bbf65248.js → server-entry-5a6eeaf9.js} +2 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-3ed45869.cjs → slot-0f591294.cjs} +1 -1
- package/lib/edge/{slot-2f6f1817.js → slot-7cd830aa.js} +3 -3
- package/lib/edge/{symbol-c9d45cc8.cjs → symbol-0eff91f7.cjs} +1 -1
- package/lib/edge/{symbol-853c210f.js → symbol-1bd5d636.js} +2 -2
- package/lib/edge/{tabs-34a12e52.cjs → tabs-784ddfd3.cjs} +1 -1
- package/lib/edge/{tabs-28d0f021.js → tabs-fd103011.js} +3 -3
- package/lib/node/blocks-exports.cjs +9 -9
- package/lib/node/blocks-exports.mjs +167 -167
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +9 -6
- package/lib/node/node-runtime-72de67f1.cjs +48 -0
- package/lib/node/{node-runtime-071b85f9.js → node-runtime-8a7cc42d.js} +49 -47
- package/lib/node/{server-entry-fd29e8b4.js → server-entry-262852ac.js} +1 -1
- package/lib/node/{server-entry-b5031981.cjs → server-entry-e9d5a539.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/components/block/block.helpers.d.ts +4 -4
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/node-runtime/init.d.ts +4 -1
- package/types/functions/evaluate/node-runtime/node-runtime.d.ts +4 -1
- package/lib/node/node-runtime-41e3da8e.cjs +0 -48
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var kn = Object.defineProperty;
|
|
2
2
|
var En = (e, t, n) => t in e ? kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Nt = (e, t, n) => (En(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { jsx as T, Fragment as
|
|
4
|
+
import { jsx as T, Fragment as Y, jsxs as Mt } from "react/jsx-runtime";
|
|
5
5
|
import { createContext as Cn, useState as $r, useEffect as jn, useContext as Rr } from "react";
|
|
6
6
|
import { BuilderContext as Gr } from "./blocks-exports.mjs";
|
|
7
|
-
import { isEditing as Bt, isBrowser as Dt, getUserAttributes as On, logger as nt, checkIsDefined as ot, fastClone as Vr, TARGET as Xr } from "./server-entry-
|
|
8
|
-
import { getClassPropName as An } from "./get-class-prop-name-
|
|
7
|
+
import { isEditing as Bt, isBrowser as Dt, getUserAttributes as On, logger as nt, checkIsDefined as ot, fastClone as Vr, TARGET as Xr } from "./server-entry-5a6eeaf9.js";
|
|
8
|
+
import { getClassPropName as An } from "./get-class-prop-name-bee742f6.js";
|
|
9
9
|
import { DynamicRenderer as bn } from "./dynamic-renderer-8b343325.js";
|
|
10
10
|
const Hr = (e, t, n) => {
|
|
11
11
|
if (Object(e) !== e)
|
|
@@ -99,9 +99,9 @@ var I, Mn = function(e) {
|
|
|
99
99
|
function r(i, l) {
|
|
100
100
|
for (var u = d, p = 1, x = 0; ; ) {
|
|
101
101
|
tt.lastIndex = x;
|
|
102
|
-
var
|
|
103
|
-
if (
|
|
104
|
-
++p, x =
|
|
102
|
+
var U = tt.exec(u);
|
|
103
|
+
if (U && U.index < i)
|
|
104
|
+
++p, x = U.index + U[0].length;
|
|
105
105
|
else
|
|
106
106
|
break;
|
|
107
107
|
}
|
|
@@ -122,7 +122,7 @@ var I, Mn = function(e) {
|
|
|
122
122
|
this.line = de, this.ab = c - ee;
|
|
123
123
|
}
|
|
124
124
|
function a(i, l) {
|
|
125
|
-
me = c, C.C && (mt = new s()), S = i, g(),
|
|
125
|
+
me = c, C.C && (mt = new s()), S = i, g(), K = l, Pe = i.m;
|
|
126
126
|
}
|
|
127
127
|
function f() {
|
|
128
128
|
for (var i = c, l = C.va && C.C && new s(), u = d.charCodeAt(c += 2); c < ve && u !== 10 && u !== 13 && u !== 8232 && u !== 8233; )
|
|
@@ -168,7 +168,7 @@ var I, Mn = function(e) {
|
|
|
168
168
|
case 40:
|
|
169
169
|
return ++c, a(te);
|
|
170
170
|
case 41:
|
|
171
|
-
return ++c, a(
|
|
171
|
+
return ++c, a(Z);
|
|
172
172
|
case 59:
|
|
173
173
|
return ++c, a(re);
|
|
174
174
|
case 44:
|
|
@@ -187,7 +187,7 @@ var I, Mn = function(e) {
|
|
|
187
187
|
return ++c, a(jr);
|
|
188
188
|
case 48:
|
|
189
189
|
if (i = d.charCodeAt(c + 1), i === 120 || i === 88) {
|
|
190
|
-
c += 2, i = R(16), i === null && r(
|
|
190
|
+
c += 2, i = R(16), i === null && r(D + 2, "Expected hexadecimal number"), n(d.charCodeAt(c)) && r(c, "Identifier directly after number"), a(Re, i);
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
193
|
case 49:
|
|
@@ -204,7 +204,7 @@ var I, Mn = function(e) {
|
|
|
204
204
|
case 39:
|
|
205
205
|
c++;
|
|
206
206
|
for (var l = ""; ; ) {
|
|
207
|
-
c >= ve && r(
|
|
207
|
+
c >= ve && r(D, "Unterminated string constant");
|
|
208
208
|
var u = d.charCodeAt(c);
|
|
209
209
|
if (u === i) {
|
|
210
210
|
++c, a(ze, l);
|
|
@@ -227,13 +227,13 @@ var I, Mn = function(e) {
|
|
|
227
227
|
l += "\r";
|
|
228
228
|
break;
|
|
229
229
|
case 120:
|
|
230
|
-
l += String.fromCharCode(
|
|
230
|
+
l += String.fromCharCode(W(2));
|
|
231
231
|
break;
|
|
232
232
|
case 117:
|
|
233
|
-
l += String.fromCharCode(
|
|
233
|
+
l += String.fromCharCode(W(4));
|
|
234
234
|
break;
|
|
235
235
|
case 85:
|
|
236
|
-
l += String.fromCharCode(
|
|
236
|
+
l += String.fromCharCode(W(8));
|
|
237
237
|
break;
|
|
238
238
|
case 116:
|
|
239
239
|
l += " ";
|
|
@@ -259,7 +259,7 @@ var I, Mn = function(e) {
|
|
|
259
259
|
l += String.fromCharCode(u);
|
|
260
260
|
}
|
|
261
261
|
} else
|
|
262
|
-
u !== 13 && u !== 10 && u !== 8232 && u !== 8233 || r(
|
|
262
|
+
u !== 13 && u !== 10 && u !== 8232 && u !== 8233 || r(D, "Unterminated string constant"), l += String.fromCharCode(u), ++c;
|
|
263
263
|
}
|
|
264
264
|
return;
|
|
265
265
|
case 47:
|
|
@@ -294,7 +294,7 @@ var I, Mn = function(e) {
|
|
|
294
294
|
return !1;
|
|
295
295
|
}
|
|
296
296
|
function E(i) {
|
|
297
|
-
if (i ? c =
|
|
297
|
+
if (i ? c = D + 1 : D = c, C.C && (vt = new s()), i)
|
|
298
298
|
return P();
|
|
299
299
|
if (c >= ve)
|
|
300
300
|
return a(xt);
|
|
@@ -327,16 +327,16 @@ var I, Mn = function(e) {
|
|
|
327
327
|
}
|
|
328
328
|
++c;
|
|
329
329
|
}
|
|
330
|
-
i = d.slice(u, c), ++c, (l =
|
|
330
|
+
i = d.slice(u, c), ++c, (l = z()) && !/^[gmi]*$/.test(l) && r(u, "Invalid regexp flag");
|
|
331
331
|
try {
|
|
332
332
|
var x = new RegExp(i, l);
|
|
333
|
-
} catch (
|
|
334
|
-
throw
|
|
333
|
+
} catch (U) {
|
|
334
|
+
throw U instanceof SyntaxError && r(u, U.message), U;
|
|
335
335
|
}
|
|
336
336
|
a(ir, x);
|
|
337
337
|
}
|
|
338
338
|
function R(i, l) {
|
|
339
|
-
for (var u = c, p = 0, x = l === void 0 ? 1 / 0 : l,
|
|
339
|
+
for (var u = c, p = 0, x = l === void 0 ? 1 / 0 : l, U = 0; U < x; ++U) {
|
|
340
340
|
var G = d.charCodeAt(c);
|
|
341
341
|
if (G = 97 <= G ? G - 97 + 10 : 65 <= G ? G - 65 + 10 : 48 <= G && 57 >= G ? G - 48 : 1 / 0, G >= i)
|
|
342
342
|
break;
|
|
@@ -350,17 +350,17 @@ var I, Mn = function(e) {
|
|
|
350
350
|
var x;
|
|
351
351
|
u ? x = parseFloat(i) : p && i.length !== 1 ? /[89]/.test(i) || H ? r(l, "Invalid number") : x = parseInt(i, 8) : x = parseInt(i, 10), a(Re, x);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
354
|
-
return i = R(16, i), i === null && r(
|
|
353
|
+
function W(i) {
|
|
354
|
+
return i = R(16, i), i === null && r(D, "Bad character escape sequence"), i;
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function z() {
|
|
357
357
|
xe = !1;
|
|
358
358
|
for (var i, l = !0, u = c; ; ) {
|
|
359
359
|
var p = d.charCodeAt(c);
|
|
360
360
|
if (t(p))
|
|
361
361
|
xe && (i += d.charAt(c)), ++c;
|
|
362
362
|
else if (p === 92) {
|
|
363
|
-
xe || (i = d.slice(u, c)), xe = !0, d.charCodeAt(++c) !== 117 && r(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, p =
|
|
363
|
+
xe || (i = d.slice(u, c)), xe = !0, d.charCodeAt(++c) !== 117 && r(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, p = W(4);
|
|
364
364
|
var x = String.fromCharCode(p);
|
|
365
365
|
x || r(c - 1, "Invalid Unicode escape"), (l ? n(p) : t(p)) || r(c - 4, "Invalid Unicode escape"), i += x;
|
|
366
366
|
} else
|
|
@@ -370,28 +370,28 @@ var I, Mn = function(e) {
|
|
|
370
370
|
return xe ? i : d.slice(u, c);
|
|
371
371
|
}
|
|
372
372
|
function pe() {
|
|
373
|
-
var i =
|
|
373
|
+
var i = z(), l = we;
|
|
374
374
|
!xe && mn(i) && (l = an[i]), a(l, i);
|
|
375
375
|
}
|
|
376
376
|
function O() {
|
|
377
|
-
wt =
|
|
377
|
+
wt = D, ue = me, St = mt, E();
|
|
378
378
|
}
|
|
379
379
|
function he(i) {
|
|
380
|
-
if (H = i, c =
|
|
380
|
+
if (H = i, c = D, C.C)
|
|
381
381
|
for (; c < ee; )
|
|
382
382
|
ee = d.lastIndexOf(`
|
|
383
383
|
`, ee - 2) + 1, --de;
|
|
384
384
|
g(), E();
|
|
385
385
|
}
|
|
386
386
|
function er() {
|
|
387
|
-
this.type = null, this.start =
|
|
387
|
+
this.type = null, this.start = D, this.end = null;
|
|
388
388
|
}
|
|
389
389
|
function tr() {
|
|
390
390
|
this.start = vt, this.end = null, yt && (this.source = yt);
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function L() {
|
|
393
393
|
var i = new er();
|
|
394
|
-
return C.C && (i.X = new tr()), C.vb && (i.sourceFile = C.vb), C.Xa && (i.j = [
|
|
394
|
+
return C.C && (i.X = new tr()), C.vb && (i.sourceFile = C.vb), C.Xa && (i.j = [D, 0]), i;
|
|
395
395
|
}
|
|
396
396
|
function le(i) {
|
|
397
397
|
var l = new er();
|
|
@@ -407,7 +407,7 @@ var I, Mn = function(e) {
|
|
|
407
407
|
return S === i ? (O(), !0) : !1;
|
|
408
408
|
}
|
|
409
409
|
function Je() {
|
|
410
|
-
return !C.fc && (S === xt || S === Se || et.test(d.slice(ue,
|
|
410
|
+
return !C.fc && (S === xt || S === Se || et.test(d.slice(ue, D)));
|
|
411
411
|
}
|
|
412
412
|
function ge() {
|
|
413
413
|
N(re) || Je() || Q();
|
|
@@ -416,14 +416,14 @@ var I, Mn = function(e) {
|
|
|
416
416
|
S === i ? O() : Q();
|
|
417
417
|
}
|
|
418
418
|
function Q() {
|
|
419
|
-
r(
|
|
419
|
+
r(D, "Unexpected token");
|
|
420
420
|
}
|
|
421
421
|
function Ye(i) {
|
|
422
422
|
i.type !== "Identifier" && i.type !== "MemberExpression" && r(i.start, "Assigning to rvalue"), H && i.type === "Identifier" && qe(i.name) && r(i.start, "Assigning to " + i.name + " in strict mode");
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
(S === Or || S === ye &&
|
|
426
|
-
var i = S, l =
|
|
424
|
+
function J() {
|
|
425
|
+
(S === Or || S === ye && K === "/=") && E(!0);
|
|
426
|
+
var i = S, l = L();
|
|
427
427
|
switch (i) {
|
|
428
428
|
case kt:
|
|
429
429
|
case ar:
|
|
@@ -439,41 +439,41 @@ var I, Mn = function(e) {
|
|
|
439
439
|
case lr:
|
|
440
440
|
return O(), ge(), k(l, "DebuggerStatement");
|
|
441
441
|
case cr:
|
|
442
|
-
return O(), B.push(Tt), l.body =
|
|
442
|
+
return O(), B.push(Tt), l.body = J(), B.pop(), M(At), l.test = be(), ge(), k(l, "DoWhileStatement");
|
|
443
443
|
case hr:
|
|
444
|
-
return O(), B.push(Tt), M(te), S === re ? ct(l, null) : S === Ot ? (i =
|
|
444
|
+
return O(), B.push(Tt), M(te), S === re ? ct(l, null) : S === Ot ? (i = L(), O(), nr(i, !0), k(i, "VariableDeclaration"), i.fa.length === 1 && N(Qe) ? rr(l, i) : ct(l, i)) : (i = $(!1, !0), N(Qe) ? (Ye(i), rr(l, i)) : ct(l, i));
|
|
445
445
|
case Ct:
|
|
446
446
|
return O(), gt(l, !0);
|
|
447
447
|
case gr:
|
|
448
|
-
return O(), l.test = be(), l.da =
|
|
448
|
+
return O(), l.test = be(), l.da = J(), l.alternate = N(fr) ? J() : null, k(l, "IfStatement");
|
|
449
449
|
case dr:
|
|
450
|
-
return Ne || C.Ib || r(
|
|
450
|
+
return Ne || C.Ib || r(D, "'return' outside of function"), O(), N(re) || Je() ? l.K = null : (l.K = $(), ge()), k(l, "ReturnStatement");
|
|
451
451
|
case jt:
|
|
452
452
|
for (O(), l.Qb = be(), l.tb = [], M(Me), B.push(xn); S !== Se; )
|
|
453
|
-
S === Et || S === ur ? (i = S === Et, p && k(p, "SwitchCase"), l.tb.push(p =
|
|
453
|
+
S === Et || S === ur ? (i = S === Et, p && k(p, "SwitchCase"), l.tb.push(p = L()), p.da = [], O(), i ? p.test = $() : (u && r(wt, "Multiple default clauses"), u = !0, p.test = null), M(Be)) : (p || Q(), p.da.push(J()));
|
|
454
454
|
return p && k(p, "SwitchCase"), O(), B.pop(), k(l, "SwitchStatement");
|
|
455
455
|
case yr:
|
|
456
|
-
return O(), et.test(d.slice(ue,
|
|
456
|
+
return O(), et.test(d.slice(ue, D)) && r(ue, "Illegal newline after throw"), l.K = $(), ge(), k(l, "ThrowStatement");
|
|
457
457
|
case vr:
|
|
458
|
-
return O(), l.block = Ie(), l.Ea = null, S === sr && (i =
|
|
458
|
+
return O(), l.block = Ie(), l.Ea = null, S === sr && (i = L(), O(), M(te), i.Ua = q(), H && qe(i.Ua.name) && r(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), M(Z), i.body = Ie(), l.Ea = k(i, "CatchClause")), l.fb = N(pr) ? Ie() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), k(l, "TryStatement");
|
|
459
459
|
case Ot:
|
|
460
460
|
return O(), nr(l), ge(), k(l, "VariableDeclaration");
|
|
461
461
|
case At:
|
|
462
|
-
return O(), l.test = be(), B.push(Tt), l.body =
|
|
462
|
+
return O(), l.test = be(), B.push(Tt), l.body = J(), B.pop(), k(l, "WhileStatement");
|
|
463
463
|
case mr:
|
|
464
|
-
return H && r(
|
|
464
|
+
return H && r(D, "'with' in strict mode"), O(), l.object = be(), l.body = J(), k(l, "WithStatement");
|
|
465
465
|
case Me:
|
|
466
466
|
return Ie();
|
|
467
467
|
case re:
|
|
468
468
|
return O(), k(l, "EmptyStatement");
|
|
469
469
|
default:
|
|
470
|
-
if (u =
|
|
470
|
+
if (u = K, x = $(), i === we && x.type === "Identifier" && N(Be)) {
|
|
471
471
|
for (p = 0; p < B.length; ++p)
|
|
472
472
|
B[p].name === u && r(x.start, "Label '" + u + "' is already declared");
|
|
473
473
|
return B.push({
|
|
474
474
|
name: u,
|
|
475
475
|
kind: S.W ? "loop" : S === jt ? "switch" : null
|
|
476
|
-
}), l.body =
|
|
476
|
+
}), l.body = J(), B.pop(), l.label = x, k(l, "LabeledStatement");
|
|
477
477
|
}
|
|
478
478
|
return l.la = x, ge(), k(l, "ExpressionStatement");
|
|
479
479
|
}
|
|
@@ -481,29 +481,29 @@ var I, Mn = function(e) {
|
|
|
481
481
|
function be() {
|
|
482
482
|
M(te);
|
|
483
483
|
var i = $();
|
|
484
|
-
return M(
|
|
484
|
+
return M(Z), i;
|
|
485
485
|
}
|
|
486
486
|
function Ie(i) {
|
|
487
|
-
var l =
|
|
487
|
+
var l = L(), u = !0, p = !1;
|
|
488
488
|
for (l.body = [], M(Me); !N(Se); ) {
|
|
489
|
-
var x =
|
|
489
|
+
var x = J();
|
|
490
490
|
if (l.body.push(x), u && i && ut(x)) {
|
|
491
|
-
var
|
|
491
|
+
var U = p;
|
|
492
492
|
he(p = !0);
|
|
493
493
|
}
|
|
494
494
|
u = !1;
|
|
495
495
|
}
|
|
496
|
-
return p && !
|
|
496
|
+
return p && !U && he(!1), k(l, "BlockStatement");
|
|
497
497
|
}
|
|
498
498
|
function ct(i, l) {
|
|
499
|
-
return i.ua = l, M(re), i.test = S === re ? null : $(), M(re), i.update = S ===
|
|
499
|
+
return i.ua = l, M(re), i.test = S === re ? null : $(), M(re), i.update = S === Z ? null : $(), M(Z), i.body = J(), B.pop(), k(i, "ForStatement");
|
|
500
500
|
}
|
|
501
501
|
function rr(i, l) {
|
|
502
|
-
return i.left = l, i.right = $(), M(
|
|
502
|
+
return i.left = l, i.right = $(), M(Z), i.body = J(), B.pop(), k(i, "ForInStatement");
|
|
503
503
|
}
|
|
504
504
|
function nr(i, l) {
|
|
505
505
|
for (i.fa = [], i.kind = "var"; ; ) {
|
|
506
|
-
var u =
|
|
506
|
+
var u = L();
|
|
507
507
|
if (u.id = q(), H && qe(u.id.name) && r(u.id.start, "Binding " + u.id.name + " in strict mode"), u.ua = N(Ar) ? $(!0, l) : null, i.fa.push(k(u, "VariableDeclarator")), !N(ce))
|
|
508
508
|
break;
|
|
509
509
|
}
|
|
@@ -523,23 +523,23 @@ var I, Mn = function(e) {
|
|
|
523
523
|
var u = le(l);
|
|
524
524
|
u.test = l, u.da = $(!0), M(Be), u.alternate = $(!0, i), l = k(u, "ConditionalExpression");
|
|
525
525
|
}
|
|
526
|
-
return S.Cb ? (u = le(l), u.operator =
|
|
526
|
+
return S.Cb ? (u = le(l), u.operator = K, u.left = l, O(), u.right = ft(i), Ye(l), k(u, "AssignmentExpression")) : l;
|
|
527
527
|
}
|
|
528
528
|
function pt(i, l, u) {
|
|
529
529
|
var p = S.L;
|
|
530
530
|
if (p !== null && (!u || S !== Qe) && p > l) {
|
|
531
531
|
var x = le(i);
|
|
532
|
-
return x.left = i, x.operator =
|
|
532
|
+
return x.left = i, x.operator = K, i = S, O(), x.right = pt(ht(), p, u), p = k(x, i === Ir || i === Tr ? "LogicalExpression" : "BinaryExpression"), pt(p, l, u);
|
|
533
533
|
}
|
|
534
534
|
return i;
|
|
535
535
|
}
|
|
536
536
|
function ht() {
|
|
537
537
|
if (S.prefix) {
|
|
538
|
-
var i =
|
|
539
|
-
return i.operator =
|
|
538
|
+
var i = L(), l = S.$b;
|
|
539
|
+
return i.operator = K, Pe = i.prefix = !0, O(), i.K = ht(), l ? Ye(i.K) : H && i.operator === "delete" && i.K.type === "Identifier" && r(i.start, "Deleting local variable in strict mode"), k(i, l ? "UpdateExpression" : "UnaryExpression");
|
|
540
540
|
}
|
|
541
541
|
for (l = Te(Ze()); S.cc && !Je(); )
|
|
542
|
-
i = le(l), i.operator =
|
|
542
|
+
i = le(l), i.operator = K, i.prefix = !1, i.K = l, Ye(l), O(), l = k(i, "UpdateExpression");
|
|
543
543
|
return l;
|
|
544
544
|
}
|
|
545
545
|
function Te(i, l) {
|
|
@@ -547,33 +547,33 @@ var I, Mn = function(e) {
|
|
|
547
547
|
var u = le(i);
|
|
548
548
|
return u.object = i, u.Wa = q(!0), u.bb = !1, Te(k(u, "MemberExpression"), l);
|
|
549
549
|
}
|
|
550
|
-
return N(bt) ? (u = le(i), u.object = i, u.Wa = $(), u.bb = !0, M(It), Te(k(u, "MemberExpression"), l)) : !l && N(te) ? (u = le(i), u.callee = i, u.arguments = dt(
|
|
550
|
+
return N(bt) ? (u = le(i), u.object = i, u.Wa = $(), u.bb = !0, M(It), Te(k(u, "MemberExpression"), l)) : !l && N(te) ? (u = le(i), u.callee = i, u.arguments = dt(Z, !1), Te(k(u, "CallExpression"), l)) : i;
|
|
551
551
|
}
|
|
552
552
|
function Ze() {
|
|
553
553
|
switch (S) {
|
|
554
554
|
case Sr:
|
|
555
|
-
var i =
|
|
555
|
+
var i = L();
|
|
556
556
|
return O(), k(i, "ThisExpression");
|
|
557
557
|
case we:
|
|
558
558
|
return q();
|
|
559
559
|
case Re:
|
|
560
560
|
case ze:
|
|
561
561
|
case ir:
|
|
562
|
-
return i =
|
|
562
|
+
return i = L(), i.value = K, i.raw = d.slice(D, me), O(), k(i, "Literal");
|
|
563
563
|
case xr:
|
|
564
564
|
case kr:
|
|
565
565
|
case Er:
|
|
566
|
-
return i =
|
|
566
|
+
return i = L(), i.value = S.$a, i.raw = S.l, O(), k(i, "Literal");
|
|
567
567
|
case te:
|
|
568
568
|
i = vt;
|
|
569
|
-
var l =
|
|
569
|
+
var l = D;
|
|
570
570
|
O();
|
|
571
571
|
var u = $();
|
|
572
|
-
return u.start = l, u.end = me, C.C && (u.X.start = i, u.X.end = mt), C.Xa && (u.j = [l, me]), M(
|
|
572
|
+
return u.start = l, u.end = me, C.C && (u.X.start = i, u.X.end = mt), C.Xa && (u.j = [l, me]), M(Z), u;
|
|
573
573
|
case bt:
|
|
574
|
-
return i =
|
|
574
|
+
return i = L(), O(), i.elements = dt(It, !0, !0), k(i, "ArrayExpression");
|
|
575
575
|
case Me:
|
|
576
|
-
for (i =
|
|
576
|
+
for (i = L(), l = !0, u = !1, i.h = [], O(); !N(Se); ) {
|
|
577
577
|
if (l)
|
|
578
578
|
l = !1;
|
|
579
579
|
else if (M(ce), C.sb && N(Se))
|
|
@@ -583,31 +583,31 @@ var I, Mn = function(e) {
|
|
|
583
583
|
}, x = !1;
|
|
584
584
|
if (N(Be)) {
|
|
585
585
|
p.value = $(!0);
|
|
586
|
-
var
|
|
586
|
+
var U = p.kind = "init";
|
|
587
587
|
} else
|
|
588
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? Q() : (x = u = !0,
|
|
588
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? Q() : (x = u = !0, U = p.kind = p.key.name, p.key = S === Re || S === ze ? Ze() : q(!0), S !== te && Q(), p.value = gt(L(), !1));
|
|
589
589
|
if (p.key.type === "Identifier" && (H || u))
|
|
590
590
|
for (var G = 0; G < i.h.length; ++G) {
|
|
591
591
|
var ke = i.h[G];
|
|
592
592
|
if (ke.key.name === p.key.name) {
|
|
593
|
-
var Pt =
|
|
594
|
-
Pt && !H &&
|
|
593
|
+
var Pt = U === ke.kind || x && ke.kind === "init" || U === "init" && (ke.kind === "get" || ke.kind === "set");
|
|
594
|
+
Pt && !H && U === "init" && ke.kind === "init" && (Pt = !1), Pt && r(p.key.start, "Redefinition of property");
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
i.h.push(p);
|
|
598
598
|
}
|
|
599
599
|
return k(i, "ObjectExpression");
|
|
600
600
|
case Ct:
|
|
601
|
-
return i =
|
|
601
|
+
return i = L(), O(), gt(i, !1);
|
|
602
602
|
case wr:
|
|
603
|
-
return i =
|
|
603
|
+
return i = L(), O(), i.callee = Te(Ze(), !0), i.arguments = N(te) ? dt(Z, !1) : sn, k(i, "NewExpression");
|
|
604
604
|
}
|
|
605
605
|
Q();
|
|
606
606
|
}
|
|
607
607
|
function gt(i, l) {
|
|
608
608
|
S === we ? i.id = q() : l ? Q() : i.id = null, i.oa = [];
|
|
609
609
|
var u = !0;
|
|
610
|
-
for (M(te); !N(
|
|
610
|
+
for (M(te); !N(Z); )
|
|
611
611
|
u ? u = !1 : M(ce), i.oa.push(q());
|
|
612
612
|
u = Ne;
|
|
613
613
|
var p = B;
|
|
@@ -630,8 +630,8 @@ var I, Mn = function(e) {
|
|
|
630
630
|
return p;
|
|
631
631
|
}
|
|
632
632
|
function q(i) {
|
|
633
|
-
var l =
|
|
634
|
-
return i && C.yb === "everywhere" && (i = !1), S === we ? (!i && (C.yb && vn(
|
|
633
|
+
var l = L();
|
|
634
|
+
return i && C.yb === "everywhere" && (i = !1), S === we ? (!i && (C.yb && vn(K) || H && Pr(K)) && d.slice(D, me).indexOf("\\") === -1 && r(D, "The keyword '" + K + "' is reserved"), l.name = K) : i && S.l ? l.name = S.l : Q(), Pe = !1, O(), k(l, "Identifier");
|
|
635
635
|
}
|
|
636
636
|
e.version = "0.5.0";
|
|
637
637
|
var C, d = "", ve, yt;
|
|
@@ -639,8 +639,8 @@ var I, Mn = function(e) {
|
|
|
639
639
|
d = String(i), ve = d.length, C = l || {};
|
|
640
640
|
for (var u in or)
|
|
641
641
|
Object.prototype.hasOwnProperty.call(C, u) || (C[u] = or[u]);
|
|
642
|
-
for (yt = C.sourceFile, de = 1, c = ee = 0, Pe = !0, g(), u = C.dc, wt = ue = c, C.C && (St = new s()), Ne = H = !1, B = [], E(), i = u ||
|
|
643
|
-
u =
|
|
642
|
+
for (yt = C.sourceFile, de = 1, c = ee = 0, Pe = !0, g(), u = C.dc, wt = ue = c, C.C && (St = new s()), Ne = H = !1, B = [], E(), i = u || L(), l = !0, u || (i.body = []); S !== xt; )
|
|
643
|
+
u = J(), i.body.push(u), l && ut(u) && he(!0), l = !1;
|
|
644
644
|
return k(i, "Program");
|
|
645
645
|
};
|
|
646
646
|
var or = {
|
|
@@ -654,7 +654,7 @@ var I, Mn = function(e) {
|
|
|
654
654
|
dc: null,
|
|
655
655
|
sourceFile: null,
|
|
656
656
|
vb: null
|
|
657
|
-
}, c = 0,
|
|
657
|
+
}, c = 0, D = 0, me = 0, vt, mt, S, K, Pe, de, ee, wt = 0, ue = 0, St, Ne, B, H, sn = [], Re = {
|
|
658
658
|
type: "num"
|
|
659
659
|
}, ir = {
|
|
660
660
|
type: "regexp"
|
|
@@ -786,7 +786,7 @@ var I, Mn = function(e) {
|
|
|
786
786
|
}, te = {
|
|
787
787
|
type: "(",
|
|
788
788
|
m: !0
|
|
789
|
-
},
|
|
789
|
+
}, Z = {
|
|
790
790
|
type: ")"
|
|
791
791
|
}, ce = {
|
|
792
792
|
type: ",",
|
|
@@ -1036,17 +1036,17 @@ function Un(e, t) {
|
|
|
1036
1036
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, X), e.Z.H = "Function", r = function(o, s) {
|
|
1037
1037
|
var a = e.o[e.o.length - 1];
|
|
1038
1038
|
a.U = this, a.B = o, a.F = [], s != null && (s instanceof A ? a.F = Zr(e, s) : m(e, e.j, "CreateListFromArrayLike called on non-object")), a.eb = !1;
|
|
1039
|
-
},
|
|
1039
|
+
}, F(e, e.O, "apply", r), r = function(o) {
|
|
1040
1040
|
var s = e.o[e.o.length - 1];
|
|
1041
1041
|
s.U = this, s.B = o, s.F = [];
|
|
1042
1042
|
for (var a = 1; a < arguments.length; a++)
|
|
1043
1043
|
s.F.push(arguments[a]);
|
|
1044
1044
|
s.eb = !1;
|
|
1045
|
-
},
|
|
1045
|
+
}, F(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() {
|
|
1046
1046
|
return String(this);
|
|
1047
|
-
},
|
|
1047
|
+
}, F(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), y), r = function() {
|
|
1048
1048
|
return this.valueOf();
|
|
1049
|
-
},
|
|
1049
|
+
}, F(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), y);
|
|
1050
1050
|
}
|
|
1051
1051
|
function Fn(e, t) {
|
|
1052
1052
|
function n(o) {
|
|
@@ -1080,18 +1080,18 @@ function Fn(e, t) {
|
|
|
1080
1080
|
return !!o && !o.preventExtensions;
|
|
1081
1081
|
}, e.g(e.v, "isExtensible", e.i(r, !1), y), r = function(o) {
|
|
1082
1082
|
return o instanceof A && (o.preventExtensions = !0), o;
|
|
1083
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), y),
|
|
1083
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), y), F(e, e.v, "toString", A.prototype.toString), F(e, e.v, "toLocaleString", A.prototype.toString), F(e, e.v, "valueOf", A.prototype.valueOf), r = function(o) {
|
|
1084
1084
|
return n(this), this instanceof A ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1085
|
-
},
|
|
1085
|
+
}, F(e, e.v, "hasOwnProperty", r), r = function(o) {
|
|
1086
1086
|
return n(this), this instanceof A ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1087
|
-
},
|
|
1087
|
+
}, F(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1088
1088
|
for (; ; ) {
|
|
1089
1089
|
if (o = se(e, o), !o)
|
|
1090
1090
|
return !1;
|
|
1091
1091
|
if (o === this)
|
|
1092
1092
|
return !0;
|
|
1093
1093
|
}
|
|
1094
|
-
},
|
|
1094
|
+
}, F(e, e.v, "isPrototypeOf", r);
|
|
1095
1095
|
}
|
|
1096
1096
|
function Ln(e, t) {
|
|
1097
1097
|
var n = function(r) {
|
|
@@ -1118,7 +1118,7 @@ function _n(e, t) {
|
|
|
1118
1118
|
return r = arguments.length ? fe.String(r) : "", ae(e) ? (this.data = r, this) : r;
|
|
1119
1119
|
};
|
|
1120
1120
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, y), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), y), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1121
|
-
|
|
1121
|
+
F(e, e.J, t[n], String.prototype[t[n]]);
|
|
1122
1122
|
n = function(r, o, s) {
|
|
1123
1123
|
o = e.R(o), s = e.R(s);
|
|
1124
1124
|
try {
|
|
@@ -1126,9 +1126,9 @@ function _n(e, t) {
|
|
|
1126
1126
|
} catch (a) {
|
|
1127
1127
|
m(e, e.D, "localeCompare: " + a.message);
|
|
1128
1128
|
}
|
|
1129
|
-
},
|
|
1129
|
+
}, F(e, e.J, "localeCompare", n), n = function(r, o, s) {
|
|
1130
1130
|
var a = String(this);
|
|
1131
|
-
if (o = o ? Number(o) : void 0,
|
|
1131
|
+
if (o = o ? Number(o) : void 0, _(e, r, e.I) && (r = r.data, Fe(e, r, s), e.REGEXP_MODE === 2)) {
|
|
1132
1132
|
if (ie)
|
|
1133
1133
|
r = Ue(e, "string.split(separator, limit)", {
|
|
1134
1134
|
string: a,
|
|
@@ -1146,7 +1146,7 @@ function _n(e, t) {
|
|
|
1146
1146
|
r = a.split(r, o), s(oe(e, r));
|
|
1147
1147
|
}, _e(e, e.J, "split", n), n = function(r, o) {
|
|
1148
1148
|
var s = String(this);
|
|
1149
|
-
if (r =
|
|
1149
|
+
if (r = _(e, r, e.I) ? r.data : new RegExp(r), Fe(e, r, o), e.REGEXP_MODE === 2)
|
|
1150
1150
|
if (ie)
|
|
1151
1151
|
r = Ue(e, "string.match(regexp)", {
|
|
1152
1152
|
string: s,
|
|
@@ -1162,7 +1162,7 @@ function _n(e, t) {
|
|
|
1162
1162
|
r = s.match(r), o(r && oe(e, r));
|
|
1163
1163
|
}, _e(e, e.J, "match", n), n = function(r, o) {
|
|
1164
1164
|
var s = String(this);
|
|
1165
|
-
if (
|
|
1165
|
+
if (_(e, r, e.I) ? r = r.data : r = new RegExp(r), Fe(e, r, o), e.REGEXP_MODE === 2)
|
|
1166
1166
|
if (ie)
|
|
1167
1167
|
r = Ue(e, "string.search(regexp)", {
|
|
1168
1168
|
string: s,
|
|
@@ -1178,7 +1178,7 @@ function _n(e, t) {
|
|
|
1178
1178
|
o(s.search(r));
|
|
1179
1179
|
}, _e(e, e.J, "search", n), n = function(r, o, s) {
|
|
1180
1180
|
var a = String(this);
|
|
1181
|
-
if (o = String(o),
|
|
1181
|
+
if (o = String(o), _(e, r, e.I) && (r = r.data, Fe(e, r, s), e.REGEXP_MODE === 2)) {
|
|
1182
1182
|
if (ie)
|
|
1183
1183
|
r = Ue(e, "string.replace(substr, newSubstr)", {
|
|
1184
1184
|
string: a,
|
|
@@ -1213,32 +1213,32 @@ function $n(e, t) {
|
|
|
1213
1213
|
} catch (o) {
|
|
1214
1214
|
m(e, e.D, o.message);
|
|
1215
1215
|
}
|
|
1216
|
-
},
|
|
1216
|
+
}, F(e, e.aa, "toExponential", n), n = function(r) {
|
|
1217
1217
|
try {
|
|
1218
1218
|
return Number(this).toFixed(r);
|
|
1219
1219
|
} catch (o) {
|
|
1220
1220
|
m(e, e.D, o.message);
|
|
1221
1221
|
}
|
|
1222
|
-
},
|
|
1222
|
+
}, F(e, e.aa, "toFixed", n), n = function(r) {
|
|
1223
1223
|
try {
|
|
1224
1224
|
return Number(this).toPrecision(r);
|
|
1225
1225
|
} catch (o) {
|
|
1226
1226
|
m(e, e.D, o.message);
|
|
1227
1227
|
}
|
|
1228
|
-
},
|
|
1228
|
+
}, F(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1229
1229
|
try {
|
|
1230
1230
|
return Number(this).toString(r);
|
|
1231
1231
|
} catch (o) {
|
|
1232
1232
|
m(e, e.D, o.message);
|
|
1233
1233
|
}
|
|
1234
|
-
},
|
|
1234
|
+
}, F(e, e.aa, "toString", n), n = function(r, o) {
|
|
1235
1235
|
r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
|
|
1236
1236
|
try {
|
|
1237
1237
|
return Number(this).toLocaleString(r, o);
|
|
1238
1238
|
} catch (s) {
|
|
1239
1239
|
m(e, e.D, "toLocaleString: " + s.message);
|
|
1240
1240
|
}
|
|
1241
|
-
},
|
|
1241
|
+
}, F(e, e.aa, "toLocaleString", n);
|
|
1242
1242
|
}
|
|
1243
1243
|
function Gn(e, t) {
|
|
1244
1244
|
var n = function(o, s) {
|
|
@@ -1257,14 +1257,14 @@ function Gn(e, t) {
|
|
|
1257
1257
|
f[g] = e.R(arguments[g]);
|
|
1258
1258
|
return a[o].apply(a, f);
|
|
1259
1259
|
};
|
|
1260
|
-
}(t[r]),
|
|
1260
|
+
}(t[r]), F(e, e.$, t[r], n);
|
|
1261
1261
|
}
|
|
1262
1262
|
function Vn(e, t) {
|
|
1263
1263
|
var n = function(r, o) {
|
|
1264
1264
|
if (ae(e))
|
|
1265
1265
|
var s = this;
|
|
1266
1266
|
else {
|
|
1267
|
-
if (o === void 0 &&
|
|
1267
|
+
if (o === void 0 && _(e, r, e.I))
|
|
1268
1268
|
return r;
|
|
1269
1269
|
s = e.s(e.Ma);
|
|
1270
1270
|
}
|
|
@@ -1344,7 +1344,7 @@ function Kn(e, t) {
|
|
|
1344
1344
|
return a;
|
|
1345
1345
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function _(e, t, n) {
|
|
1348
1348
|
if (t == null || !n)
|
|
1349
1349
|
return !1;
|
|
1350
1350
|
if (n = n.h.prototype, t === n)
|
|
@@ -1428,7 +1428,7 @@ I.Aa = function(e) {
|
|
|
1428
1428
|
I.s = function(e) {
|
|
1429
1429
|
if (typeof e != "object")
|
|
1430
1430
|
throw Error("Non object prototype");
|
|
1431
|
-
return e = new A(e),
|
|
1431
|
+
return e = new A(e), _(this, e, this.D) && (e.H = "Error"), e;
|
|
1432
1432
|
};
|
|
1433
1433
|
function Oe(e) {
|
|
1434
1434
|
var t = e.s(e.La);
|
|
@@ -1489,9 +1489,9 @@ I.R = function(e, t) {
|
|
|
1489
1489
|
return e;
|
|
1490
1490
|
if (!(e instanceof A))
|
|
1491
1491
|
throw Error("Object is not pseudo");
|
|
1492
|
-
if (
|
|
1492
|
+
if (_(this, e, this.I))
|
|
1493
1493
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
1494
|
-
if (
|
|
1494
|
+
if (_(this, e, this.$))
|
|
1495
1495
|
return new Date(e.data.valueOf());
|
|
1496
1496
|
t = t || {
|
|
1497
1497
|
hb: [],
|
|
@@ -1500,7 +1500,7 @@ I.R = function(e, t) {
|
|
|
1500
1500
|
var n = t.hb.indexOf(e);
|
|
1501
1501
|
if (n !== -1)
|
|
1502
1502
|
return t.Sa[n];
|
|
1503
|
-
if (t.hb.push(e),
|
|
1503
|
+
if (t.hb.push(e), _(this, e, this.qa)) {
|
|
1504
1504
|
n = [], t.Sa.push(n);
|
|
1505
1505
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1506
1506
|
at(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
@@ -1542,9 +1542,9 @@ I.G = function(e, t) {
|
|
|
1542
1542
|
if (t = String(t), e != null || m(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof A))
|
|
1543
1543
|
throw TypeError("Expecting native value or pseudo object");
|
|
1544
1544
|
if (t === "length") {
|
|
1545
|
-
if (
|
|
1545
|
+
if (_(this, e, this.J))
|
|
1546
1546
|
return String(e).length;
|
|
1547
|
-
} else if (64 > t.charCodeAt(0) &&
|
|
1547
|
+
} else if (64 > t.charCodeAt(0) && _(this, e, this.J)) {
|
|
1548
1548
|
var n = $e(t);
|
|
1549
1549
|
if (!isNaN(n) && n < String(e).length)
|
|
1550
1550
|
return String(e)[n];
|
|
@@ -1557,9 +1557,9 @@ I.G = function(e, t) {
|
|
|
1557
1557
|
function at(e, t, n) {
|
|
1558
1558
|
if (!(t instanceof A))
|
|
1559
1559
|
throw TypeError("Primitive data type has no properties");
|
|
1560
|
-
if (n = String(n), n === "length" &&
|
|
1560
|
+
if (n = String(n), n === "length" && _(e, t, e.J))
|
|
1561
1561
|
return !0;
|
|
1562
|
-
if (
|
|
1562
|
+
if (_(e, t, e.J)) {
|
|
1563
1563
|
var r = $e(n);
|
|
1564
1564
|
if (!isNaN(r) && r < String(t).length)
|
|
1565
1565
|
return !0;
|
|
@@ -1578,7 +1578,7 @@ I.g = function(e, t, n, r) {
|
|
|
1578
1578
|
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && m(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1579
1579
|
var o = !this.o || Xt(this).S;
|
|
1580
1580
|
if (e instanceof A) {
|
|
1581
|
-
if (
|
|
1581
|
+
if (_(this, e, this.J)) {
|
|
1582
1582
|
var s = $e(t);
|
|
1583
1583
|
if (t === "length" || !isNaN(s) && s < String(e).length) {
|
|
1584
1584
|
o && m(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
@@ -1638,7 +1638,7 @@ I.g.ac = function() {
|
|
|
1638
1638
|
I.g.bc = function() {
|
|
1639
1639
|
throw Error("Placeholder setter");
|
|
1640
1640
|
};
|
|
1641
|
-
function
|
|
1641
|
+
function F(e, t, n, r) {
|
|
1642
1642
|
e.g(t.h.prototype, n, e.i(r, !1), y);
|
|
1643
1643
|
}
|
|
1644
1644
|
function _e(e, t, n, r) {
|
|
@@ -1787,7 +1787,7 @@ function He(e, t, n, r) {
|
|
|
1787
1787
|
} else if (t === 2 && (r ? s.labels && s.labels.indexOf(r) !== -1 : s.W))
|
|
1788
1788
|
return;
|
|
1789
1789
|
}
|
|
1790
|
-
throw
|
|
1790
|
+
throw _(e, n, e.D) ? (t = {
|
|
1791
1791
|
EvalError,
|
|
1792
1792
|
RangeError,
|
|
1793
1793
|
ReferenceError,
|
|
@@ -2083,7 +2083,7 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2083
2083
|
t instanceof A || m(this, this.j, "'in' expects an object, not '" + t + "'"), n = at(this, t, r);
|
|
2084
2084
|
break;
|
|
2085
2085
|
case "instanceof":
|
|
2086
|
-
|
|
2086
|
+
_(this, t, this.O) || m(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof A ? _(this, r, t) : !1;
|
|
2087
2087
|
break;
|
|
2088
2088
|
default:
|
|
2089
2089
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2528,8 +2528,8 @@ const Zn = (e) => e.split(`
|
|
|
2528
2528
|
event: n,
|
|
2529
2529
|
state: f
|
|
2530
2530
|
}), j = g.map(([b]) => {
|
|
2531
|
-
const
|
|
2532
|
-
return `var ${b} = ${
|
|
2531
|
+
const W = Lr(b);
|
|
2532
|
+
return `var ${b} = ${W} === undefined ? undefined : JSON.parse(${W});`;
|
|
2533
2533
|
}).join(`
|
|
2534
2534
|
`), E = Zn(a);
|
|
2535
2535
|
if (E === "") {
|
|
@@ -2543,14 +2543,14 @@ function theFunction() {
|
|
|
2543
2543
|
${E}
|
|
2544
2544
|
}
|
|
2545
2545
|
theFunction();
|
|
2546
|
-
`, P = (b,
|
|
2547
|
-
const
|
|
2548
|
-
s == null || s(
|
|
2549
|
-
}, R = function(b,
|
|
2550
|
-
g.forEach(([
|
|
2546
|
+
`, P = (b, W) => {
|
|
2547
|
+
const z = Hr(f, b, W);
|
|
2548
|
+
s == null || s(z);
|
|
2549
|
+
}, R = function(b, W) {
|
|
2550
|
+
g.forEach(([z, pe]) => {
|
|
2551
2551
|
const O = JSON.stringify(pe);
|
|
2552
|
-
b.setProperty(
|
|
2553
|
-
}), b.setProperty(
|
|
2552
|
+
b.setProperty(W, Lr(z), O);
|
|
2553
|
+
}), b.setProperty(W, "setRootState", b.createNativeFunction(P));
|
|
2554
2554
|
};
|
|
2555
2555
|
try {
|
|
2556
2556
|
const b = new h(w, R);
|
|
@@ -2880,7 +2880,7 @@ const po = ({
|
|
|
2880
2880
|
},
|
|
2881
2881
|
block: r
|
|
2882
2882
|
}));
|
|
2883
|
-
}, go = (e) => e && ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e), yo = (e) => e && ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e), nn = {
|
|
2883
|
+
}, go = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), yo = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), nn = {
|
|
2884
2884
|
small: {
|
|
2885
2885
|
min: 320,
|
|
2886
2886
|
default: 321,
|
|
@@ -2945,7 +2945,7 @@ function wo(e) {
|
|
|
2945
2945
|
return ot(r.hide) ? !r.hide : ot(r.show) ? r.show : !0;
|
|
2946
2946
|
}
|
|
2947
2947
|
function n() {
|
|
2948
|
-
var
|
|
2948
|
+
var z, pe, O;
|
|
2949
2949
|
const r = it({
|
|
2950
2950
|
block: e.block,
|
|
2951
2951
|
localState: e.context.localState,
|
|
@@ -2954,7 +2954,7 @@ function wo(e) {
|
|
|
2954
2954
|
context: e.context.context,
|
|
2955
2955
|
shouldEvaluateBindings: !0
|
|
2956
2956
|
}), o = r.responsiveStyles, s = e.context.content, a = vo(
|
|
2957
|
-
((
|
|
2957
|
+
((z = s == null ? void 0 : s.meta) == null ? void 0 : z.breakpoints) || {}
|
|
2958
2958
|
), f = o == null ? void 0 : o.large, g = o == null ? void 0 : o.medium, j = o == null ? void 0 : o.small, E = r.id;
|
|
2959
2959
|
if (!E)
|
|
2960
2960
|
return "";
|
|
@@ -2976,10 +2976,10 @@ function wo(e) {
|
|
|
2976
2976
|
a
|
|
2977
2977
|
)
|
|
2978
2978
|
}) : "", b = r.animations && r.animations.find((he) => he.trigger === "hover");
|
|
2979
|
-
let
|
|
2979
|
+
let W = "";
|
|
2980
2980
|
if (b) {
|
|
2981
2981
|
const he = ((O = (pe = b.steps) == null ? void 0 : pe[1]) == null ? void 0 : O.styles) || {};
|
|
2982
|
-
|
|
2982
|
+
W = rt({
|
|
2983
2983
|
className: `${E}:hover`,
|
|
2984
2984
|
styles: {
|
|
2985
2985
|
...he,
|
|
@@ -2994,10 +2994,10 @@ function wo(e) {
|
|
|
2994
2994
|
w,
|
|
2995
2995
|
P,
|
|
2996
2996
|
R,
|
|
2997
|
-
|
|
2997
|
+
W
|
|
2998
2998
|
].join(" ");
|
|
2999
2999
|
}
|
|
3000
|
-
return /* @__PURE__ */ T(
|
|
3000
|
+
return /* @__PURE__ */ T(Y, { children: n() && t() ? /* @__PURE__ */ T(Y, { children: /* @__PURE__ */ T(mo, { id: "builderio-block", styles: n() }) }) : null });
|
|
3001
3001
|
}
|
|
3002
3002
|
function So(e) {
|
|
3003
3003
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -3136,7 +3136,7 @@ function Wr(e) {
|
|
|
3136
3136
|
const [t, n] = $r(
|
|
3137
3137
|
() => e.isInteractive ? Oo : e.componentRef
|
|
3138
3138
|
);
|
|
3139
|
-
return /* @__PURE__ */ T(
|
|
3139
|
+
return /* @__PURE__ */ T(Y, { children: e.componentRef ? /* @__PURE__ */ T(Y, { children: /* @__PURE__ */ T(
|
|
3140
3140
|
t,
|
|
3141
3141
|
{
|
|
3142
3142
|
...Ao({
|
|
@@ -3216,17 +3216,17 @@ function lt(e) {
|
|
|
3216
3216
|
return !((P = t == null ? void 0 : t()) != null && P.component) && !n() ? (R = r().children) != null ? R : [] : [];
|
|
3217
3217
|
}
|
|
3218
3218
|
function f() {
|
|
3219
|
-
var w, P, R, b
|
|
3219
|
+
var w, P, R, b;
|
|
3220
3220
|
return {
|
|
3221
3221
|
blockChildren: (w = r().children) != null ? w : [],
|
|
3222
3222
|
componentRef: (P = t == null ? void 0 : t()) == null ? void 0 : P.component,
|
|
3223
3223
|
componentOptions: {
|
|
3224
3224
|
...Nn(r()),
|
|
3225
3225
|
builderContext: e.context,
|
|
3226
|
-
...go(
|
|
3226
|
+
...go(t()) ? {
|
|
3227
3227
|
builderLinkComponent: e.linkComponent
|
|
3228
3228
|
} : {},
|
|
3229
|
-
...yo(
|
|
3229
|
+
...yo(t()) ? {
|
|
3230
3230
|
builderComponents: e.registeredComponents
|
|
3231
3231
|
} : {}
|
|
3232
3232
|
},
|
|
@@ -3234,8 +3234,8 @@ function lt(e) {
|
|
|
3234
3234
|
linkComponent: e.linkComponent,
|
|
3235
3235
|
registeredComponents: e.registeredComponents,
|
|
3236
3236
|
builderBlock: r(),
|
|
3237
|
-
includeBlockProps: ((
|
|
3238
|
-
isInteractive: !((
|
|
3237
|
+
includeBlockProps: ((R = t == null ? void 0 : t()) == null ? void 0 : R.noWrap) === !0,
|
|
3238
|
+
isInteractive: !((b = t == null ? void 0 : t()) != null && b.isRSC)
|
|
3239
3239
|
};
|
|
3240
3240
|
}
|
|
3241
3241
|
return jn(() => {
|
|
@@ -3246,9 +3246,9 @@ function lt(e) {
|
|
|
3246
3246
|
elementId: w
|
|
3247
3247
|
}))
|
|
3248
3248
|
);
|
|
3249
|
-
}, []), /* @__PURE__ */ T(
|
|
3249
|
+
}, []), /* @__PURE__ */ T(Y, { children: s() ? /* @__PURE__ */ Mt(Y, { children: [
|
|
3250
3250
|
/* @__PURE__ */ T(wo, { block: e.block, context: e.context }),
|
|
3251
|
-
(g = t == null ? void 0 : t()) != null && g.noWrap ? /* @__PURE__ */ T(
|
|
3251
|
+
(g = t == null ? void 0 : t()) != null && g.noWrap ? /* @__PURE__ */ T(Y, { children: /* @__PURE__ */ T(
|
|
3252
3252
|
Wr,
|
|
3253
3253
|
{
|
|
3254
3254
|
componentRef: f().componentRef,
|
|
@@ -3261,7 +3261,7 @@ function lt(e) {
|
|
|
3261
3261
|
includeBlockProps: f().includeBlockProps,
|
|
3262
3262
|
isInteractive: f().isInteractive
|
|
3263
3263
|
}
|
|
3264
|
-
) }) : /* @__PURE__ */ T(
|
|
3264
|
+
) }) : /* @__PURE__ */ T(Y, { children: n() ? /* @__PURE__ */ T(Y, { children: (E = n()) == null ? void 0 : E.map((w, P) => /* @__PURE__ */ T(
|
|
3265
3265
|
bo,
|
|
3266
3266
|
{
|
|
3267
3267
|
repeatContext: w.context,
|
|
@@ -3338,7 +3338,7 @@ function Io(e) {
|
|
|
3338
3338
|
"*"
|
|
3339
3339
|
));
|
|
3340
3340
|
}
|
|
3341
|
-
return /* @__PURE__ */ Mt(
|
|
3341
|
+
return /* @__PURE__ */ Mt(Y, { children: [
|
|
3342
3342
|
/* @__PURE__ */ T(
|
|
3343
3343
|
e.BlocksWrapper,
|
|
3344
3344
|
{
|
|
@@ -3372,7 +3372,7 @@ function To(e) {
|
|
|
3372
3372
|
styleProp: e.styleProp,
|
|
3373
3373
|
BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || t.BlocksWrapper,
|
|
3374
3374
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
3375
|
-
children: e.blocks ? /* @__PURE__ */ T(
|
|
3375
|
+
children: e.blocks ? /* @__PURE__ */ T(Y, { children: (s = e.blocks) == null ? void 0 : s.map((a) => /* @__PURE__ */ T(
|
|
3376
3376
|
lt,
|
|
3377
3377
|
{
|
|
3378
3378
|
block: a,
|