@builder.io/sdk-react-nextjs 0.14.30 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +24 -24
- package/lib/browser/blocks-exports.mjs +508 -428
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/{server-entry-24a8bb57.js → server-entry-34aed7a8.js} +1 -1
- package/lib/browser/{server-entry-6927b611.cjs → server-entry-3ae58f1b.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-exports.cjs +32 -32
- package/lib/edge/blocks-exports.mjs +950 -870
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{server-entry-24a8bb57.js → server-entry-34aed7a8.js} +1 -1
- package/lib/edge/{server-entry-6927b611.cjs → server-entry-3ae58f1b.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +25 -25
- package/lib/node/blocks-exports.mjs +504 -424
- 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 +2 -2
- package/lib/node/{node-runtime-39bc20c5.cjs → node-runtime-54f0fc0a.cjs} +1 -1
- package/lib/node/{node-runtime-bf50fca0.js → node-runtime-ca94f96b.js} +1 -1
- package/lib/node/{server-entry-3cc55723.js → server-entry-4f9f76d3.js} +1 -1
- package/lib/node/{server-entry-8112afc1.cjs → server-entry-d0dda572.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/cjs/blocks/form/select/select.d.ts +1 -0
- package/types/cjs/blocks/form/textarea/component-info.d.ts +2 -0
- package/types/cjs/blocks/{textarea → form/textarea}/textarea.d.ts +1 -0
- package/types/cjs/components/block/block.helpers.d.ts +8 -8
- package/types/cjs/components/content-variants/inlined-fns.d.ts +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/types/components.d.ts +41 -0
- package/types/esm/blocks/form/select/select.d.ts +1 -0
- package/types/esm/blocks/form/textarea/component-info.d.ts +2 -0
- package/types/esm/blocks/{textarea → form/textarea}/textarea.d.ts +1 -0
- package/types/esm/components/block/block.helpers.d.ts +8 -8
- package/types/esm/components/content-variants/inlined-fns.d.ts +1 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/types/components.d.ts +41 -0
- package/types/cjs/blocks/textarea/component-info.d.ts +0 -2
- package/types/esm/blocks/textarea/component-info.d.ts +0 -2
- /package/types/cjs/blocks/{textarea → form/textarea}/index.d.ts +0 -0
- /package/types/esm/blocks/{textarea → form/textarea}/index.d.ts +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
2
|
+
var _r = Object.defineProperty;
|
|
3
|
+
var $r = (e, t, n) => t in e ? _r(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var Gt = (e, t, n) => ($r(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
5
|
import { jsx as y, Fragment as K, jsxs as se } from "react/jsx-runtime";
|
|
6
|
-
import { TARGET as
|
|
7
|
-
import { useRef as
|
|
8
|
-
import { useRouter as
|
|
6
|
+
import { TARGET as it, isEditing as Ce, isBrowser as Fe, getUserAttributes as Hr, logger as ot, checkIsDefined as yt, fastClone as Qt, init as Kr, getDefaultCanTrack as vt, _track as zn, isPreviewing as Gr, createEditorListener as zr, fetch as Yr, registerInsertMenu as Xr, setupBrowserForEditing as Jr, createRegisterComponentMessage as qr, fetchOneEntry as cr, serializeComponentInfo as Yn, handleABTestingSync as Zr } from "./server-entry-34aed7a8.js";
|
|
7
|
+
import { useRef as en, useState as ye, useEffect as ie, createContext as Qr } from "react";
|
|
8
|
+
import { useRouter as ei } from "next/navigation";
|
|
9
9
|
import "lru-cache";
|
|
10
|
-
const
|
|
11
|
-
function
|
|
12
|
-
return /* @__PURE__ */ y(K, { children:
|
|
10
|
+
const ti = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ni = (e) => typeof e == "string" && ti.has(e.toLowerCase());
|
|
11
|
+
function tn(e) {
|
|
12
|
+
return /* @__PURE__ */ y(K, { children: ni(e.TagName) ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ y(K, { children: typeof e.TagName == "string" ? /* @__PURE__ */ y(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ y(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
13
13
|
}
|
|
14
|
-
const
|
|
15
|
-
switch (
|
|
14
|
+
const et = () => {
|
|
15
|
+
switch (it) {
|
|
16
16
|
case "react":
|
|
17
17
|
case "reactNative":
|
|
18
18
|
case "rsc":
|
|
@@ -25,11 +25,11 @@ const tt = () => {
|
|
|
25
25
|
return "class";
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
function
|
|
28
|
+
function ri(e) {
|
|
29
29
|
function t() {
|
|
30
30
|
return {
|
|
31
31
|
...e.attributes,
|
|
32
|
-
[
|
|
32
|
+
[et()]: `${e.link ? "" : "builder-button"} ${e.attributes[et()] || ""}`,
|
|
33
33
|
...e.link ? {
|
|
34
34
|
href: e.link,
|
|
35
35
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -40,7 +40,7 @@ function ni(e) {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
return /* @__PURE__ */ y(
|
|
43
|
-
|
|
43
|
+
tn,
|
|
44
44
|
{
|
|
45
45
|
attributes: t(),
|
|
46
46
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -49,14 +49,14 @@ function ni(e) {
|
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function ii(e) {
|
|
53
53
|
var t;
|
|
54
54
|
return {
|
|
55
55
|
...(t = e.component) == null ? void 0 : t.options,
|
|
56
56
|
...e.options
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
const
|
|
59
|
+
const ur = ({
|
|
60
60
|
builder: e,
|
|
61
61
|
context: t,
|
|
62
62
|
event: n,
|
|
@@ -68,14 +68,14 @@ const cr = ({
|
|
|
68
68
|
builder: e,
|
|
69
69
|
context: t,
|
|
70
70
|
event: n
|
|
71
|
-
}),
|
|
72
|
-
isEditing:
|
|
73
|
-
isBrowser:
|
|
74
|
-
isServer: !
|
|
75
|
-
getUserAttributes: () =>
|
|
76
|
-
}),
|
|
71
|
+
}), oi = () => ({
|
|
72
|
+
isEditing: Ce(),
|
|
73
|
+
isBrowser: Fe(),
|
|
74
|
+
isServer: !Fe(),
|
|
75
|
+
getUserAttributes: () => Hr()
|
|
76
|
+
}), ai = (e, {
|
|
77
77
|
isExpression: t = !0
|
|
78
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
78
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, si = ({
|
|
79
79
|
code: e,
|
|
80
80
|
builder: t,
|
|
81
81
|
context: n,
|
|
@@ -84,11 +84,11 @@ const cr = ({
|
|
|
84
84
|
rootSetState: a,
|
|
85
85
|
rootState: s
|
|
86
86
|
}) => {
|
|
87
|
-
const c =
|
|
87
|
+
const c = ur({
|
|
88
88
|
builder: t,
|
|
89
89
|
context: n,
|
|
90
90
|
event: r,
|
|
91
|
-
state:
|
|
91
|
+
state: dr({
|
|
92
92
|
rootState: s,
|
|
93
93
|
localState: i,
|
|
94
94
|
rootSetState: a
|
|
@@ -96,7 +96,7 @@ const cr = ({
|
|
|
96
96
|
});
|
|
97
97
|
return new Function(...c.map(([f]) => f), e)(...c.map(([, f]) => f));
|
|
98
98
|
};
|
|
99
|
-
function
|
|
99
|
+
function dr({
|
|
100
100
|
rootState: e,
|
|
101
101
|
localState: t,
|
|
102
102
|
rootSetState: n
|
|
@@ -106,7 +106,7 @@ function ur({
|
|
|
106
106
|
if (t && i in t)
|
|
107
107
|
return t[i];
|
|
108
108
|
const a = r[i];
|
|
109
|
-
return typeof a == "object" && a !== null ?
|
|
109
|
+
return typeof a == "object" && a !== null ? dr({
|
|
110
110
|
rootState: a,
|
|
111
111
|
localState: void 0,
|
|
112
112
|
rootSetState: n ? (s) => {
|
|
@@ -121,21 +121,21 @@ function ur({
|
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
-
const
|
|
124
|
+
const fr = (e, t, n) => {
|
|
125
125
|
if (Object(e) !== e)
|
|
126
126
|
return e;
|
|
127
127
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
128
128
|
return r.slice(0, -1).reduce((i, a, s) => Object(i[a]) === i[a] ? i[a] : i[a] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
129
129
|
};
|
|
130
|
-
var M,
|
|
130
|
+
var M, li = function(e) {
|
|
131
131
|
function t(o) {
|
|
132
132
|
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Wr.test(String.fromCharCode(o));
|
|
133
133
|
}
|
|
134
134
|
function n(o) {
|
|
135
|
-
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
135
|
+
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Gn.test(String.fromCharCode(o));
|
|
136
136
|
}
|
|
137
137
|
function r(o, l) {
|
|
138
|
-
for (var u =
|
|
138
|
+
for (var u = S, h = 1, A = 0; ; ) {
|
|
139
139
|
pt.lastIndex = A;
|
|
140
140
|
var z = pt.exec(u);
|
|
141
141
|
if (z && z.index < o)
|
|
@@ -157,42 +157,42 @@ var M, si = function(e) {
|
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
function a() {
|
|
160
|
-
this.line =
|
|
160
|
+
this.line = Te, this.ab = d - fe;
|
|
161
161
|
}
|
|
162
162
|
function s(o, l) {
|
|
163
|
-
|
|
163
|
+
Re = d, R.C && (Pt = new a()), T = o, f(), ae = l, _e = o.m;
|
|
164
164
|
}
|
|
165
165
|
function c() {
|
|
166
|
-
for (var o = d, l = R.va && R.C && new a(), u =
|
|
167
|
-
++d, u =
|
|
168
|
-
R.va && R.va(!1,
|
|
166
|
+
for (var o = d, l = R.va && R.C && new a(), u = S.charCodeAt(d += 2); d < je && u !== 10 && u !== 13 && u !== 8232 && u !== 8233; )
|
|
167
|
+
++d, u = S.charCodeAt(d);
|
|
168
|
+
R.va && R.va(!1, S.slice(o + 2, d), o, d, l, R.C && new a());
|
|
169
169
|
}
|
|
170
170
|
function f() {
|
|
171
|
-
for (; d <
|
|
172
|
-
var o =
|
|
171
|
+
for (; d < je; ) {
|
|
172
|
+
var o = S.charCodeAt(d);
|
|
173
173
|
if (o === 32)
|
|
174
174
|
++d;
|
|
175
175
|
else if (o === 13)
|
|
176
|
-
++d, o =
|
|
176
|
+
++d, o = S.charCodeAt(d), o === 10 && ++d, R.C && (++Te, fe = d);
|
|
177
177
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
178
|
-
++d, R.C && (++
|
|
178
|
+
++d, R.C && (++Te, fe = d);
|
|
179
179
|
else if (8 < o && 14 > o)
|
|
180
180
|
++d;
|
|
181
181
|
else if (o === 47)
|
|
182
|
-
if (o =
|
|
182
|
+
if (o = S.charCodeAt(d + 1), o === 42) {
|
|
183
183
|
o = void 0;
|
|
184
|
-
var l = R.va && R.C && new a(), u = d, h =
|
|
184
|
+
var l = R.va && R.C && new a(), u = d, h = S.indexOf("*/", d += 2);
|
|
185
185
|
if (h === -1 && r(d - 2, "Unterminated comment"), d = h + 2, R.C)
|
|
186
|
-
for (pt.lastIndex = u; (o = pt.exec(
|
|
187
|
-
++
|
|
188
|
-
R.va && R.va(!0,
|
|
186
|
+
for (pt.lastIndex = u; (o = pt.exec(S)) && o.index < d; )
|
|
187
|
+
++Te, fe = o.index + o[0].length;
|
|
188
|
+
R.va && R.va(!0, S.slice(u + 2, h), u, d, l, R.C && new a());
|
|
189
189
|
} else if (o === 47)
|
|
190
190
|
c();
|
|
191
191
|
else
|
|
192
192
|
break;
|
|
193
193
|
else if (o === 160)
|
|
194
194
|
++d;
|
|
195
|
-
else if (5760 <= o &&
|
|
195
|
+
else if (5760 <= o && Ur.test(String.fromCharCode(o)))
|
|
196
196
|
++d;
|
|
197
197
|
else
|
|
198
198
|
break;
|
|
@@ -201,31 +201,31 @@ var M, si = function(e) {
|
|
|
201
201
|
function g(o) {
|
|
202
202
|
switch (o) {
|
|
203
203
|
case 46:
|
|
204
|
-
o =
|
|
204
|
+
o = S.charCodeAt(d + 1), 48 <= o && 57 >= o ? V(!0) : (++d, s(Dn));
|
|
205
205
|
return;
|
|
206
206
|
case 40:
|
|
207
|
-
return ++d, s(
|
|
207
|
+
return ++d, s(he);
|
|
208
208
|
case 41:
|
|
209
209
|
return ++d, s(ue);
|
|
210
210
|
case 59:
|
|
211
|
-
return ++d, s(
|
|
211
|
+
return ++d, s(pe);
|
|
212
212
|
case 44:
|
|
213
|
-
return ++d, s(
|
|
213
|
+
return ++d, s(ke);
|
|
214
214
|
case 91:
|
|
215
|
-
return ++d, s(Vt);
|
|
216
|
-
case 93:
|
|
217
215
|
return ++d, s(_t);
|
|
216
|
+
case 93:
|
|
217
|
+
return ++d, s($t);
|
|
218
218
|
case 123:
|
|
219
|
-
return ++d, s(
|
|
219
|
+
return ++d, s(Ke);
|
|
220
220
|
case 125:
|
|
221
221
|
return ++d, s(Pe);
|
|
222
222
|
case 58:
|
|
223
|
-
return ++d, s(
|
|
223
|
+
return ++d, s(Ge);
|
|
224
224
|
case 63:
|
|
225
|
-
return ++d, s(
|
|
225
|
+
return ++d, s(Un);
|
|
226
226
|
case 48:
|
|
227
|
-
if (o =
|
|
228
|
-
d += 2, o =
|
|
227
|
+
if (o = S.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
228
|
+
d += 2, o = F(16), o === null && r(G + 2, "Expected hexadecimal number"), n(S.charCodeAt(d)) && r(d, "Identifier directly after number"), s(He, o);
|
|
229
229
|
return;
|
|
230
230
|
}
|
|
231
231
|
case 49:
|
|
@@ -242,15 +242,15 @@ var M, si = function(e) {
|
|
|
242
242
|
case 39:
|
|
243
243
|
d++;
|
|
244
244
|
for (var l = ""; ; ) {
|
|
245
|
-
d >=
|
|
246
|
-
var u =
|
|
245
|
+
d >= je && r(G, "Unterminated string constant");
|
|
246
|
+
var u = S.charCodeAt(d);
|
|
247
247
|
if (u === o) {
|
|
248
248
|
++d, s(ut, l);
|
|
249
249
|
break;
|
|
250
250
|
}
|
|
251
251
|
if (u === 92) {
|
|
252
|
-
u =
|
|
253
|
-
var h = /^[0-7]+/.exec(
|
|
252
|
+
u = S.charCodeAt(++d);
|
|
253
|
+
var h = /^[0-7]+/.exec(S.slice(d, d + 3));
|
|
254
254
|
for (h && (h = h[0]); h && 255 < parseInt(h, 8); )
|
|
255
255
|
h = h.slice(0, -1);
|
|
256
256
|
if (h === "0" && (h = null), ++d, h)
|
|
@@ -265,13 +265,13 @@ var M, si = function(e) {
|
|
|
265
265
|
l += "\r";
|
|
266
266
|
break;
|
|
267
267
|
case 120:
|
|
268
|
-
l += String.fromCharCode(
|
|
268
|
+
l += String.fromCharCode(L(2));
|
|
269
269
|
break;
|
|
270
270
|
case 117:
|
|
271
|
-
l += String.fromCharCode(
|
|
271
|
+
l += String.fromCharCode(L(4));
|
|
272
272
|
break;
|
|
273
273
|
case 85:
|
|
274
|
-
l += String.fromCharCode(
|
|
274
|
+
l += String.fromCharCode(L(8));
|
|
275
275
|
break;
|
|
276
276
|
case 116:
|
|
277
277
|
l += " ";
|
|
@@ -289,9 +289,9 @@ var M, si = function(e) {
|
|
|
289
289
|
l += "\0";
|
|
290
290
|
break;
|
|
291
291
|
case 13:
|
|
292
|
-
|
|
292
|
+
S.charCodeAt(d) === 10 && ++d;
|
|
293
293
|
case 10:
|
|
294
|
-
R.C && (
|
|
294
|
+
R.C && (fe = d, ++Te);
|
|
295
295
|
break;
|
|
296
296
|
default:
|
|
297
297
|
l += String.fromCharCode(u);
|
|
@@ -301,57 +301,57 @@ var M, si = function(e) {
|
|
|
301
301
|
}
|
|
302
302
|
return;
|
|
303
303
|
case 47:
|
|
304
|
-
o =
|
|
304
|
+
o = S.charCodeAt(d + 1), _e ? (++d, j()) : o === 61 ? m(Ae, 2) : m(Wn, 1);
|
|
305
305
|
return;
|
|
306
306
|
case 37:
|
|
307
307
|
case 42:
|
|
308
|
-
|
|
308
|
+
S.charCodeAt(d + 1) === 61 ? m(Ae, 2) : m(Mr, 1);
|
|
309
309
|
return;
|
|
310
310
|
case 124:
|
|
311
311
|
case 38:
|
|
312
|
-
l =
|
|
312
|
+
l = S.charCodeAt(d + 1), l === o ? m(o === 124 ? $n : Hn, 2) : l === 61 ? m(Ae, 2) : m(o === 124 ? jr : Or, 1);
|
|
313
313
|
return;
|
|
314
314
|
case 94:
|
|
315
|
-
|
|
315
|
+
S.charCodeAt(d + 1) === 61 ? m(Ae, 2) : m(Rr, 1);
|
|
316
316
|
return;
|
|
317
317
|
case 43:
|
|
318
318
|
case 45:
|
|
319
|
-
l =
|
|
319
|
+
l = S.charCodeAt(d + 1), l === o ? l === 45 && S.charCodeAt(d + 2) === 62 && ht.test(S.slice(Se, d)) ? (d += 3, c(), f(), b()) : m(Ar, 2) : l === 61 ? m(Ae, 2) : m(Lr, 1);
|
|
320
320
|
return;
|
|
321
321
|
case 60:
|
|
322
322
|
case 62:
|
|
323
|
-
l =
|
|
323
|
+
l = S.charCodeAt(d + 1), u = 1, l === o ? (u = o === 62 && S.charCodeAt(d + 2) === 62 ? 3 : 2, S.charCodeAt(d + u) === 61 ? m(Ae, u + 1) : m(Br, u)) : l === 33 && o === 60 && S.charCodeAt(d + 2) === 45 && S.charCodeAt(d + 3) === 45 ? (d += 4, c(), f(), b()) : (l === 61 && (u = S.charCodeAt(d + 2) === 61 ? 3 : 2), m(Nr, u));
|
|
324
324
|
return;
|
|
325
325
|
case 61:
|
|
326
326
|
case 33:
|
|
327
|
-
|
|
327
|
+
S.charCodeAt(d + 1) === 61 ? m(Pr, S.charCodeAt(d + 2) === 61 ? 3 : 2) : m(o === 61 ? Vn : _n, 1);
|
|
328
328
|
return;
|
|
329
329
|
case 126:
|
|
330
|
-
return m(
|
|
330
|
+
return m(_n, 1);
|
|
331
331
|
}
|
|
332
332
|
return !1;
|
|
333
333
|
}
|
|
334
334
|
function b(o) {
|
|
335
|
-
if (o ? d = G + 1 : G = d, R.C && (
|
|
335
|
+
if (o ? d = G + 1 : G = d, R.C && (Ot = new a()), o)
|
|
336
336
|
return j();
|
|
337
|
-
if (d >=
|
|
338
|
-
return s(
|
|
339
|
-
if (o =
|
|
340
|
-
return
|
|
337
|
+
if (d >= je)
|
|
338
|
+
return s(Lt);
|
|
339
|
+
if (o = S.charCodeAt(d), n(o) || o === 92)
|
|
340
|
+
return N();
|
|
341
341
|
if (g(o) === !1) {
|
|
342
|
-
if (o = String.fromCharCode(o), o === "\\" ||
|
|
343
|
-
return
|
|
342
|
+
if (o = String.fromCharCode(o), o === "\\" || Gn.test(o))
|
|
343
|
+
return N();
|
|
344
344
|
r(d, "Unexpected character '" + o + "'");
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
function m(o, l) {
|
|
348
|
-
var u =
|
|
348
|
+
var u = S.slice(d, d + l);
|
|
349
349
|
d += l, s(o, u);
|
|
350
350
|
}
|
|
351
351
|
function j() {
|
|
352
352
|
for (var o, l, u = d; ; ) {
|
|
353
|
-
d >=
|
|
354
|
-
var h =
|
|
353
|
+
d >= je && r(u, "Unterminated regexp");
|
|
354
|
+
var h = S.charAt(d);
|
|
355
355
|
if (ht.test(h) && r(u, "Unterminated regexp"), o)
|
|
356
356
|
o = !1;
|
|
357
357
|
else {
|
|
@@ -365,17 +365,17 @@ var M, si = function(e) {
|
|
|
365
365
|
}
|
|
366
366
|
++d;
|
|
367
367
|
}
|
|
368
|
-
o =
|
|
368
|
+
o = S.slice(u, d), ++d, (l = $()) && !/^[gmi]*$/.test(l) && r(u, "Invalid regexp flag");
|
|
369
369
|
try {
|
|
370
370
|
var A = new RegExp(o, l);
|
|
371
371
|
} catch (z) {
|
|
372
372
|
throw z instanceof SyntaxError && r(u, z.message), z;
|
|
373
373
|
}
|
|
374
|
-
s(
|
|
374
|
+
s(bn, A);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function F(o, l) {
|
|
377
377
|
for (var u = d, h = 0, A = l === void 0 ? 1 / 0 : l, z = 0; z < A; ++z) {
|
|
378
|
-
var ee =
|
|
378
|
+
var ee = S.charCodeAt(d);
|
|
379
379
|
if (ee = 97 <= ee ? ee - 97 + 10 : 65 <= ee ? ee - 65 + 10 : 48 <= ee && 57 >= ee ? ee - 48 : 1 / 0, ee >= o)
|
|
380
380
|
break;
|
|
381
381
|
++d, h = h * o + ee;
|
|
@@ -383,49 +383,49 @@ var M, si = function(e) {
|
|
|
383
383
|
return d === u || l !== void 0 && d - u !== l ? null : h;
|
|
384
384
|
}
|
|
385
385
|
function V(o) {
|
|
386
|
-
var l = d, u = !1, h =
|
|
387
|
-
o ||
|
|
386
|
+
var l = d, u = !1, h = S.charCodeAt(d) === 48;
|
|
387
|
+
o || F(10) !== null || r(l, "Invalid number"), S.charCodeAt(d) === 46 && (++d, F(10), u = !0), o = S.charCodeAt(d), (o === 69 || o === 101) && (o = S.charCodeAt(++d), o !== 43 && o !== 45 || ++d, F(10) === null && r(l, "Invalid number"), u = !0), n(S.charCodeAt(d)) && r(d, "Identifier directly after number"), o = S.slice(l, d);
|
|
388
388
|
var A;
|
|
389
|
-
u ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || re ? r(l, "Invalid number") : A = parseInt(o, 8) : A = parseInt(o, 10), s(
|
|
389
|
+
u ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || re ? r(l, "Invalid number") : A = parseInt(o, 8) : A = parseInt(o, 10), s(He, A);
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
return o =
|
|
391
|
+
function L(o) {
|
|
392
|
+
return o = F(16, o), o === null && r(G, "Bad character escape sequence"), o;
|
|
393
393
|
}
|
|
394
394
|
function $() {
|
|
395
|
-
|
|
395
|
+
Ne = !1;
|
|
396
396
|
for (var o, l = !0, u = d; ; ) {
|
|
397
|
-
var h =
|
|
397
|
+
var h = S.charCodeAt(d);
|
|
398
398
|
if (t(h))
|
|
399
|
-
|
|
399
|
+
Ne && (o += S.charAt(d)), ++d;
|
|
400
400
|
else if (h === 92) {
|
|
401
|
-
|
|
401
|
+
Ne || (o = S.slice(u, d)), Ne = !0, S.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = L(4);
|
|
402
402
|
var A = String.fromCharCode(h);
|
|
403
403
|
A || r(d - 1, "Invalid Unicode escape"), (l ? n(h) : t(h)) || r(d - 4, "Invalid Unicode escape"), o += A;
|
|
404
404
|
} else
|
|
405
405
|
break;
|
|
406
406
|
l = !1;
|
|
407
407
|
}
|
|
408
|
-
return
|
|
408
|
+
return Ne ? o : S.slice(u, d);
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
var o = $(), l =
|
|
412
|
-
!
|
|
410
|
+
function N() {
|
|
411
|
+
var o = $(), l = Oe;
|
|
412
|
+
!Ne && Dr(o) && (l = Tr[o]), s(l, o);
|
|
413
413
|
}
|
|
414
414
|
function v() {
|
|
415
|
-
Nt = G,
|
|
415
|
+
Nt = G, Se = Re, Bt = Pt, b();
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function W(o) {
|
|
418
418
|
if (re = o, d = G, R.C)
|
|
419
|
-
for (; d <
|
|
420
|
-
|
|
421
|
-
`,
|
|
419
|
+
for (; d < fe; )
|
|
420
|
+
fe = S.lastIndexOf(`
|
|
421
|
+
`, fe - 2) + 1, --Te;
|
|
422
422
|
f(), b();
|
|
423
423
|
}
|
|
424
424
|
function X() {
|
|
425
425
|
this.type = null, this.start = G, this.end = null;
|
|
426
426
|
}
|
|
427
427
|
function oe() {
|
|
428
|
-
this.start =
|
|
428
|
+
this.start = Ot, this.end = null, Rt && (this.source = Rt);
|
|
429
429
|
}
|
|
430
430
|
function _() {
|
|
431
431
|
var o = new X();
|
|
@@ -436,252 +436,252 @@ var M, si = function(e) {
|
|
|
436
436
|
return l.start = o.start, R.C && (l.X = new oe(), l.X.start = o.X.start), R.Xa && (l.j = [o.j[0], 0]), l;
|
|
437
437
|
}
|
|
438
438
|
function E(o, l) {
|
|
439
|
-
return o.type = l, o.end =
|
|
439
|
+
return o.type = l, o.end = Se, R.C && (o.X.end = Bt), R.Xa && (o.j[1] = Se), o;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function Ee(o) {
|
|
442
442
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function U(o) {
|
|
445
445
|
return T === o ? (v(), !0) : !1;
|
|
446
446
|
}
|
|
447
|
-
function
|
|
448
|
-
return !R.fc && (T ===
|
|
447
|
+
function Ie() {
|
|
448
|
+
return !R.fc && (T === Lt || T === Pe || ht.test(S.slice(Se, G)));
|
|
449
449
|
}
|
|
450
450
|
function I() {
|
|
451
|
-
|
|
451
|
+
U(pe) || Ie() || P();
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
T === o ? v() :
|
|
453
|
+
function x(o) {
|
|
454
|
+
T === o ? v() : P();
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function P() {
|
|
457
457
|
r(G, "Unexpected token");
|
|
458
458
|
}
|
|
459
459
|
function D(o) {
|
|
460
460
|
o.type !== "Identifier" && o.type !== "MemberExpression" && r(o.start, "Assigning to rvalue"), re && o.type === "Identifier" && ft(o.name) && r(o.start, "Assigning to " + o.name + " in strict mode");
|
|
461
461
|
}
|
|
462
462
|
function B() {
|
|
463
|
-
(T === Wn || T ===
|
|
463
|
+
(T === Wn || T === Ae && ae === "/=") && b(!0);
|
|
464
464
|
var o = T, l = _();
|
|
465
465
|
switch (o) {
|
|
466
|
-
case
|
|
466
|
+
case Mt:
|
|
467
467
|
case Sn:
|
|
468
468
|
v();
|
|
469
|
-
var u = o ===
|
|
470
|
-
|
|
469
|
+
var u = o === Mt;
|
|
470
|
+
U(pe) || Ie() ? l.label = null : T !== Oe ? P() : (l.label = de(), I());
|
|
471
471
|
for (var h = 0; h < H.length; ++h) {
|
|
472
472
|
var A = H[h];
|
|
473
473
|
if ((l.label === null || A.name === l.label.name) && (A.kind !== null && (u || A.kind === "loop") || l.label && u))
|
|
474
474
|
break;
|
|
475
475
|
}
|
|
476
476
|
return h === H.length && r(l.start, "Unsyntactic " + o.l), E(l, u ? "BreakStatement" : "ContinueStatement");
|
|
477
|
-
case
|
|
477
|
+
case kn:
|
|
478
478
|
return v(), I(), E(l, "DebuggerStatement");
|
|
479
|
-
case
|
|
480
|
-
return v(), H.push(
|
|
481
|
-
case In:
|
|
482
|
-
return v(), H.push($t), S(pe), T === me ? ce(l, null) : T === Wt ? (o = _(), v(), gn(o, !0), E(o, "VariableDeclaration"), o.fa.length === 1 && W(dt) ? lt(l, o) : ce(l, o)) : (o = Z(!1, !0), W(dt) ? (D(o), lt(l, o)) : ce(l, o));
|
|
483
|
-
case Ut:
|
|
484
|
-
return v(), Tt(l, !0);
|
|
479
|
+
case wn:
|
|
480
|
+
return v(), H.push(Ht), l.body = B(), H.pop(), x(Vt), l.test = J(), I(), E(l, "DoWhileStatement");
|
|
485
481
|
case Tn:
|
|
486
|
-
return v(),
|
|
487
|
-
case An:
|
|
488
|
-
return He || R.Ib || r(G, "'return' outside of function"), v(), W(me) || Te() ? l.K = null : (l.K = Z(), I()), E(l, "ReturnStatement");
|
|
482
|
+
return v(), H.push(Ht), x(he), T === pe ? ce(l, null) : T === Wt ? (o = _(), v(), yn(o, !0), E(o, "VariableDeclaration"), o.fa.length === 1 && U(dt) ? lt(l, o) : ce(l, o)) : (o = Z(!1, !0), U(dt) ? (D(o), lt(l, o)) : ce(l, o));
|
|
489
483
|
case Dt:
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
return
|
|
484
|
+
return v(), At(l, !0);
|
|
485
|
+
case An:
|
|
486
|
+
return v(), l.test = J(), l.da = B(), l.alternate = U(En) ? B() : null, E(l, "IfStatement");
|
|
493
487
|
case jn:
|
|
494
|
-
return
|
|
488
|
+
return $e || R.Ib || r(G, "'return' outside of function"), v(), U(pe) || Ie() ? l.K = null : (l.K = Z(), I()), E(l, "ReturnStatement");
|
|
489
|
+
case Ut:
|
|
490
|
+
for (v(), l.Qb = J(), l.tb = [], x(Ke), H.push(Vr); T !== Pe; )
|
|
491
|
+
T === Ft || T === Cn ? (o = T === Ft, h && E(h, "SwitchCase"), l.tb.push(h = _()), h.da = [], v(), o ? h.test = Z() : (u && r(Nt, "Multiple default clauses"), u = !0, h.test = null), x(Ge)) : (h || P(), h.da.push(B()));
|
|
492
|
+
return h && E(h, "SwitchCase"), v(), H.pop(), E(l, "SwitchStatement");
|
|
495
493
|
case Rn:
|
|
496
|
-
return v(),
|
|
497
|
-
case Wt:
|
|
498
|
-
return v(), gn(l), I(), E(l, "VariableDeclaration");
|
|
499
|
-
case Lt:
|
|
500
|
-
return v(), l.test = J(), H.push($t), l.body = B(), H.pop(), E(l, "WhileStatement");
|
|
494
|
+
return v(), ht.test(S.slice(Se, G)) && r(Se, "Illegal newline after throw"), l.K = Z(), I(), E(l, "ThrowStatement");
|
|
501
495
|
case On:
|
|
496
|
+
return v(), l.block = le(), l.Ea = null, T === xn && (o = _(), v(), x(he), o.Ua = de(), re && ft(o.Ua.name) && r(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), x(ue), o.body = le(), l.Ea = E(o, "CatchClause")), l.fb = U(In) ? le() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
497
|
+
case Wt:
|
|
498
|
+
return v(), yn(l), I(), E(l, "VariableDeclaration");
|
|
499
|
+
case Vt:
|
|
500
|
+
return v(), l.test = J(), H.push(Ht), l.body = B(), H.pop(), E(l, "WhileStatement");
|
|
501
|
+
case Pn:
|
|
502
502
|
return re && r(G, "'with' in strict mode"), v(), l.object = J(), l.body = B(), E(l, "WithStatement");
|
|
503
|
-
case
|
|
503
|
+
case Ke:
|
|
504
504
|
return le();
|
|
505
|
-
case
|
|
505
|
+
case pe:
|
|
506
506
|
return v(), E(l, "EmptyStatement");
|
|
507
507
|
default:
|
|
508
|
-
if (u = ae, A = Z(), o ===
|
|
508
|
+
if (u = ae, A = Z(), o === Oe && A.type === "Identifier" && U(Ge)) {
|
|
509
509
|
for (h = 0; h < H.length; ++h)
|
|
510
510
|
H[h].name === u && r(A.start, "Label '" + u + "' is already declared");
|
|
511
511
|
return H.push({
|
|
512
512
|
name: u,
|
|
513
|
-
kind: T.W ? "loop" : T ===
|
|
513
|
+
kind: T.W ? "loop" : T === Ut ? "switch" : null
|
|
514
514
|
}), l.body = B(), H.pop(), l.label = A, E(l, "LabeledStatement");
|
|
515
515
|
}
|
|
516
516
|
return l.la = A, I(), E(l, "ExpressionStatement");
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
function J() {
|
|
520
|
-
|
|
520
|
+
x(he);
|
|
521
521
|
var o = Z();
|
|
522
|
-
return
|
|
522
|
+
return x(ue), o;
|
|
523
523
|
}
|
|
524
524
|
function le(o) {
|
|
525
525
|
var l = _(), u = !0, h = !1;
|
|
526
|
-
for (l.body = [],
|
|
526
|
+
for (l.body = [], x(Ke); !U(Pe); ) {
|
|
527
527
|
var A = B();
|
|
528
|
-
if (l.body.push(A), u && o &&
|
|
528
|
+
if (l.body.push(A), u && o && Ee(A)) {
|
|
529
529
|
var z = h;
|
|
530
|
-
|
|
530
|
+
W(h = !0);
|
|
531
531
|
}
|
|
532
532
|
u = !1;
|
|
533
533
|
}
|
|
534
|
-
return h && !z &&
|
|
534
|
+
return h && !z && W(!1), E(l, "BlockStatement");
|
|
535
535
|
}
|
|
536
536
|
function ce(o, l) {
|
|
537
|
-
return o.ua = l,
|
|
537
|
+
return o.ua = l, x(pe), o.test = T === pe ? null : Z(), x(pe), o.update = T === ue ? null : Z(), x(ue), o.body = B(), H.pop(), E(o, "ForStatement");
|
|
538
538
|
}
|
|
539
539
|
function lt(o, l) {
|
|
540
|
-
return o.left = l, o.right = Z(),
|
|
540
|
+
return o.left = l, o.right = Z(), x(ue), o.body = B(), H.pop(), E(o, "ForInStatement");
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function yn(o, l) {
|
|
543
543
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
544
544
|
var u = _();
|
|
545
|
-
if (u.id =
|
|
545
|
+
if (u.id = de(), re && ft(u.id.name) && r(u.id.start, "Binding " + u.id.name + " in strict mode"), u.ua = U(Vn) ? Z(!0, l) : null, o.fa.push(E(u, "VariableDeclarator")), !U(ke))
|
|
546
546
|
break;
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
function Z(o, l) {
|
|
550
|
-
var u =
|
|
551
|
-
if (!o && T ===
|
|
552
|
-
for (o = Q(u), o.xb = [u];
|
|
553
|
-
o.xb.push(
|
|
550
|
+
var u = Et(l);
|
|
551
|
+
if (!o && T === ke) {
|
|
552
|
+
for (o = Q(u), o.xb = [u]; U(ke); )
|
|
553
|
+
o.xb.push(Et(l));
|
|
554
554
|
return E(o, "SequenceExpression");
|
|
555
555
|
}
|
|
556
556
|
return u;
|
|
557
557
|
}
|
|
558
|
-
function
|
|
559
|
-
var l =
|
|
560
|
-
if (
|
|
558
|
+
function Et(o) {
|
|
559
|
+
var l = It(Tt(), -1, o);
|
|
560
|
+
if (U(Un)) {
|
|
561
561
|
var u = Q(l);
|
|
562
|
-
u.test = l, u.da = Z(!0),
|
|
562
|
+
u.test = l, u.da = Z(!0), x(Ge), u.alternate = Z(!0, o), l = E(u, "ConditionalExpression");
|
|
563
563
|
}
|
|
564
|
-
return T.Cb ? (u = Q(l), u.operator = ae, u.left = l, v(), u.right =
|
|
564
|
+
return T.Cb ? (u = Q(l), u.operator = ae, u.left = l, v(), u.right = Et(o), D(l), E(u, "AssignmentExpression")) : l;
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function It(o, l, u) {
|
|
567
567
|
var h = T.L;
|
|
568
568
|
if (h !== null && (!u || T !== dt) && h > l) {
|
|
569
569
|
var A = Q(o);
|
|
570
|
-
return A.left = o, A.operator = ae, o = T, v(), A.right =
|
|
570
|
+
return A.left = o, A.operator = ae, o = T, v(), A.right = It(Tt(), h, u), h = E(A, o === $n || o === Hn ? "LogicalExpression" : "BinaryExpression"), It(h, l, u);
|
|
571
571
|
}
|
|
572
572
|
return o;
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function Tt() {
|
|
575
575
|
if (T.prefix) {
|
|
576
576
|
var o = _(), l = T.$b;
|
|
577
|
-
return o.operator = ae,
|
|
577
|
+
return o.operator = ae, _e = o.prefix = !0, v(), o.K = Tt(), l ? D(o.K) : re && o.operator === "delete" && o.K.type === "Identifier" && r(o.start, "Deleting local variable in strict mode"), E(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
578
578
|
}
|
|
579
|
-
for (l =
|
|
579
|
+
for (l = Ve(ct()); T.cc && !Ie(); )
|
|
580
580
|
o = Q(l), o.operator = ae, o.prefix = !1, o.K = l, D(l), v(), l = E(o, "UpdateExpression");
|
|
581
581
|
return l;
|
|
582
582
|
}
|
|
583
|
-
function
|
|
584
|
-
if (
|
|
583
|
+
function Ve(o, l) {
|
|
584
|
+
if (U(Dn)) {
|
|
585
585
|
var u = Q(o);
|
|
586
|
-
return u.object = o, u.Wa =
|
|
586
|
+
return u.object = o, u.Wa = de(!0), u.bb = !1, Ve(E(u, "MemberExpression"), l);
|
|
587
587
|
}
|
|
588
|
-
return
|
|
588
|
+
return U(_t) ? (u = Q(o), u.object = o, u.Wa = Z(), u.bb = !0, x($t), Ve(E(u, "MemberExpression"), l)) : !l && U(he) ? (u = Q(o), u.callee = o, u.arguments = jt(ue, !1), Ve(E(u, "CallExpression"), l)) : o;
|
|
589
589
|
}
|
|
590
590
|
function ct() {
|
|
591
591
|
switch (T) {
|
|
592
|
-
case
|
|
592
|
+
case Bn:
|
|
593
593
|
var o = _();
|
|
594
594
|
return v(), E(o, "ThisExpression");
|
|
595
|
-
case
|
|
596
|
-
return
|
|
597
|
-
case
|
|
595
|
+
case Oe:
|
|
596
|
+
return de();
|
|
597
|
+
case He:
|
|
598
598
|
case ut:
|
|
599
|
-
case
|
|
600
|
-
return o = _(), o.value = ae, o.raw =
|
|
601
|
-
case
|
|
602
|
-
case Fn:
|
|
599
|
+
case bn:
|
|
600
|
+
return o = _(), o.value = ae, o.raw = S.slice(G, Re), v(), E(o, "Literal");
|
|
601
|
+
case Ln:
|
|
603
602
|
case Mn:
|
|
603
|
+
case Fn:
|
|
604
604
|
return o = _(), o.value = T.$a, o.raw = T.l, v(), E(o, "Literal");
|
|
605
|
-
case
|
|
606
|
-
o =
|
|
605
|
+
case he:
|
|
606
|
+
o = Ot;
|
|
607
607
|
var l = G;
|
|
608
608
|
v();
|
|
609
609
|
var u = Z();
|
|
610
|
-
return u.start = l, u.end =
|
|
611
|
-
case
|
|
612
|
-
return o = _(), v(), o.elements =
|
|
613
|
-
case
|
|
614
|
-
for (o = _(), l = !0, u = !1, o.h = [], v(); !
|
|
610
|
+
return u.start = l, u.end = Re, R.C && (u.X.start = o, u.X.end = Pt), R.Xa && (u.j = [l, Re]), x(ue), u;
|
|
611
|
+
case _t:
|
|
612
|
+
return o = _(), v(), o.elements = jt($t, !0, !0), E(o, "ArrayExpression");
|
|
613
|
+
case Ke:
|
|
614
|
+
for (o = _(), l = !0, u = !1, o.h = [], v(); !U(Pe); ) {
|
|
615
615
|
if (l)
|
|
616
616
|
l = !1;
|
|
617
|
-
else if (
|
|
617
|
+
else if (x(ke), R.sb && U(Pe))
|
|
618
618
|
break;
|
|
619
619
|
var h = {
|
|
620
|
-
key: T ===
|
|
620
|
+
key: T === He || T === ut ? ct() : de(!0)
|
|
621
621
|
}, A = !1;
|
|
622
|
-
if (
|
|
622
|
+
if (U(Ge)) {
|
|
623
623
|
h.value = Z(!0);
|
|
624
624
|
var z = h.kind = "init";
|
|
625
625
|
} else
|
|
626
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ?
|
|
626
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? P() : (A = u = !0, z = h.kind = h.key.name, h.key = T === He || T === ut ? ct() : de(!0), T !== he && P(), h.value = At(_(), !1));
|
|
627
627
|
if (h.key.type === "Identifier" && (re || u))
|
|
628
628
|
for (var ee = 0; ee < o.h.length; ++ee) {
|
|
629
|
-
var
|
|
630
|
-
if (
|
|
631
|
-
var
|
|
632
|
-
|
|
629
|
+
var Be = o.h[ee];
|
|
630
|
+
if (Be.key.name === h.key.name) {
|
|
631
|
+
var Kt = z === Be.kind || A && Be.kind === "init" || z === "init" && (Be.kind === "get" || Be.kind === "set");
|
|
632
|
+
Kt && !re && z === "init" && Be.kind === "init" && (Kt = !1), Kt && r(h.key.start, "Redefinition of property");
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
635
|
o.h.push(h);
|
|
636
636
|
}
|
|
637
637
|
return E(o, "ObjectExpression");
|
|
638
|
-
case
|
|
639
|
-
return o = _(), v(),
|
|
638
|
+
case Dt:
|
|
639
|
+
return o = _(), v(), At(o, !1);
|
|
640
640
|
case Nn:
|
|
641
|
-
return o = _(), v(), o.callee =
|
|
641
|
+
return o = _(), v(), o.callee = Ve(ct(), !0), o.arguments = U(he) ? jt(ue, !1) : Ir, E(o, "NewExpression");
|
|
642
642
|
}
|
|
643
|
-
|
|
643
|
+
P();
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
T ===
|
|
645
|
+
function At(o, l) {
|
|
646
|
+
T === Oe ? o.id = de() : l ? P() : o.id = null, o.oa = [];
|
|
647
647
|
var u = !0;
|
|
648
|
-
for (
|
|
649
|
-
u ? u = !1 :
|
|
650
|
-
u =
|
|
648
|
+
for (x(he); !U(ue); )
|
|
649
|
+
u ? u = !1 : x(ke), o.oa.push(de());
|
|
650
|
+
u = $e;
|
|
651
651
|
var h = H;
|
|
652
|
-
if (
|
|
652
|
+
if ($e = !0, H = [], o.body = le(!0), $e = u, H = h, re || o.body.body.length && Ee(o.body.body[0])) {
|
|
653
653
|
for (u = o.id ? -1 : 0; u < o.oa.length; ++u)
|
|
654
|
-
if (h = 0 > u ? o.id : o.oa[u], (
|
|
654
|
+
if (h = 0 > u ? o.id : o.oa[u], (Kn(h.name) || ft(h.name)) && r(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= u)
|
|
655
655
|
for (var A = 0; A < u; ++A)
|
|
656
656
|
h.name === o.oa[A].name && r(h.start, "Argument name clash in strict mode");
|
|
657
657
|
}
|
|
658
658
|
return E(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
659
659
|
}
|
|
660
|
-
function
|
|
661
|
-
for (var h = [], A = !0; !
|
|
660
|
+
function jt(o, l, u) {
|
|
661
|
+
for (var h = [], A = !0; !U(o); ) {
|
|
662
662
|
if (A)
|
|
663
663
|
A = !1;
|
|
664
|
-
else if (
|
|
664
|
+
else if (x(ke), l && R.sb && U(o))
|
|
665
665
|
break;
|
|
666
|
-
h.push(u && T ===
|
|
666
|
+
h.push(u && T === ke ? null : Z(!0));
|
|
667
667
|
}
|
|
668
668
|
return h;
|
|
669
669
|
}
|
|
670
|
-
function
|
|
670
|
+
function de(o) {
|
|
671
671
|
var l = _();
|
|
672
|
-
return o && R.yb === "everywhere" && (o = !1), T ===
|
|
672
|
+
return o && R.yb === "everywhere" && (o = !1), T === Oe ? (!o && (R.yb && Fr(ae) || re && Kn(ae)) && S.slice(G, Re).indexOf("\\") === -1 && r(G, "The keyword '" + ae + "' is reserved"), l.name = ae) : o && T.l ? l.name = T.l : P(), _e = !1, v(), E(l, "Identifier");
|
|
673
673
|
}
|
|
674
674
|
e.version = "0.5.0";
|
|
675
|
-
var R,
|
|
675
|
+
var R, S = "", je, Rt;
|
|
676
676
|
e.parse = function(o, l) {
|
|
677
|
-
|
|
678
|
-
for (var u in
|
|
679
|
-
Object.prototype.hasOwnProperty.call(R, u) || (R[u] =
|
|
680
|
-
for (
|
|
681
|
-
u = B(), o.body.push(u), l &&
|
|
677
|
+
S = String(o), je = S.length, R = l || {};
|
|
678
|
+
for (var u in vn)
|
|
679
|
+
Object.prototype.hasOwnProperty.call(R, u) || (R[u] = vn[u]);
|
|
680
|
+
for (Rt = R.sourceFile, Te = 1, d = fe = 0, _e = !0, f(), u = R.dc, Nt = Se = d, R.C && (Bt = new a()), $e = re = !1, H = [], b(), o = u || _(), l = !0, u || (o.body = []); T !== Lt; )
|
|
681
|
+
u = B(), o.body.push(u), l && Ee(u) && W(!0), l = !1;
|
|
682
682
|
return E(o, "Program");
|
|
683
683
|
};
|
|
684
|
-
var
|
|
684
|
+
var vn = {
|
|
685
685
|
fc: !1,
|
|
686
686
|
sb: !0,
|
|
687
687
|
yb: !1,
|
|
@@ -692,102 +692,102 @@ var M, si = function(e) {
|
|
|
692
692
|
dc: null,
|
|
693
693
|
sourceFile: null,
|
|
694
694
|
vb: null
|
|
695
|
-
}, d = 0, G = 0,
|
|
695
|
+
}, d = 0, G = 0, Re = 0, Ot, Pt, T, ae, _e, Te, fe, Nt = 0, Se = 0, Bt, $e, H, re, Ir = [], He = {
|
|
696
696
|
type: "num"
|
|
697
|
-
},
|
|
697
|
+
}, bn = {
|
|
698
698
|
type: "regexp"
|
|
699
699
|
}, ut = {
|
|
700
700
|
type: "string"
|
|
701
|
-
},
|
|
701
|
+
}, Oe = {
|
|
702
702
|
type: "name"
|
|
703
|
-
},
|
|
703
|
+
}, Lt = {
|
|
704
704
|
type: "eof"
|
|
705
|
-
}, Ft = {
|
|
706
|
-
l: "break"
|
|
707
705
|
}, Mt = {
|
|
706
|
+
l: "break"
|
|
707
|
+
}, Ft = {
|
|
708
708
|
l: "case",
|
|
709
709
|
m: !0
|
|
710
|
-
},
|
|
710
|
+
}, xn = {
|
|
711
711
|
l: "catch"
|
|
712
712
|
}, Sn = {
|
|
713
713
|
l: "continue"
|
|
714
|
-
}, xn = {
|
|
715
|
-
l: "debugger"
|
|
716
714
|
}, kn = {
|
|
717
|
-
l: "
|
|
715
|
+
l: "debugger"
|
|
718
716
|
}, Cn = {
|
|
717
|
+
l: "default"
|
|
718
|
+
}, wn = {
|
|
719
719
|
l: "do",
|
|
720
720
|
W: !0
|
|
721
|
-
},
|
|
721
|
+
}, En = {
|
|
722
722
|
l: "else",
|
|
723
723
|
m: !0
|
|
724
|
-
}, En = {
|
|
725
|
-
l: "finally"
|
|
726
724
|
}, In = {
|
|
725
|
+
l: "finally"
|
|
726
|
+
}, Tn = {
|
|
727
727
|
l: "for",
|
|
728
728
|
W: !0
|
|
729
|
-
},
|
|
729
|
+
}, Dt = {
|
|
730
730
|
l: "function"
|
|
731
|
-
}, Tn = {
|
|
732
|
-
l: "if"
|
|
733
731
|
}, An = {
|
|
732
|
+
l: "if"
|
|
733
|
+
}, jn = {
|
|
734
734
|
l: "return",
|
|
735
735
|
m: !0
|
|
736
|
-
},
|
|
736
|
+
}, Ut = {
|
|
737
737
|
l: "switch"
|
|
738
|
-
},
|
|
738
|
+
}, Rn = {
|
|
739
739
|
l: "throw",
|
|
740
740
|
m: !0
|
|
741
|
-
},
|
|
741
|
+
}, On = {
|
|
742
742
|
l: "try"
|
|
743
743
|
}, Wt = {
|
|
744
744
|
l: "var"
|
|
745
|
-
},
|
|
745
|
+
}, Vt = {
|
|
746
746
|
l: "while",
|
|
747
747
|
W: !0
|
|
748
|
-
},
|
|
748
|
+
}, Pn = {
|
|
749
749
|
l: "with"
|
|
750
750
|
}, Nn = {
|
|
751
751
|
l: "new",
|
|
752
752
|
m: !0
|
|
753
|
-
}, Pn = {
|
|
754
|
-
l: "this"
|
|
755
753
|
}, Bn = {
|
|
754
|
+
l: "this"
|
|
755
|
+
}, Ln = {
|
|
756
756
|
l: "null",
|
|
757
757
|
$a: null
|
|
758
|
-
},
|
|
758
|
+
}, Mn = {
|
|
759
759
|
l: "true",
|
|
760
760
|
$a: !0
|
|
761
|
-
},
|
|
761
|
+
}, Fn = {
|
|
762
762
|
l: "false",
|
|
763
763
|
$a: !1
|
|
764
764
|
}, dt = {
|
|
765
765
|
l: "in",
|
|
766
766
|
L: 7,
|
|
767
767
|
m: !0
|
|
768
|
-
},
|
|
769
|
-
break:
|
|
770
|
-
case:
|
|
771
|
-
catch:
|
|
768
|
+
}, Tr = {
|
|
769
|
+
break: Mt,
|
|
770
|
+
case: Ft,
|
|
771
|
+
catch: xn,
|
|
772
772
|
continue: Sn,
|
|
773
|
-
debugger:
|
|
774
|
-
default:
|
|
775
|
-
do:
|
|
776
|
-
else:
|
|
777
|
-
finally:
|
|
778
|
-
for:
|
|
779
|
-
function:
|
|
780
|
-
if:
|
|
781
|
-
return:
|
|
782
|
-
switch:
|
|
783
|
-
throw:
|
|
784
|
-
try:
|
|
773
|
+
debugger: kn,
|
|
774
|
+
default: Cn,
|
|
775
|
+
do: wn,
|
|
776
|
+
else: En,
|
|
777
|
+
finally: In,
|
|
778
|
+
for: Tn,
|
|
779
|
+
function: Dt,
|
|
780
|
+
if: An,
|
|
781
|
+
return: jn,
|
|
782
|
+
switch: Ut,
|
|
783
|
+
throw: Rn,
|
|
784
|
+
try: On,
|
|
785
785
|
var: Wt,
|
|
786
|
-
while:
|
|
787
|
-
with:
|
|
788
|
-
null:
|
|
789
|
-
true:
|
|
790
|
-
false:
|
|
786
|
+
while: Vt,
|
|
787
|
+
with: Pn,
|
|
788
|
+
null: Ln,
|
|
789
|
+
true: Mn,
|
|
790
|
+
false: Fn,
|
|
791
791
|
new: Nn,
|
|
792
792
|
in: dt,
|
|
793
793
|
instanceof: {
|
|
@@ -795,7 +795,7 @@ var M, si = function(e) {
|
|
|
795
795
|
L: 7,
|
|
796
796
|
m: !0
|
|
797
797
|
},
|
|
798
|
-
this:
|
|
798
|
+
this: Bn,
|
|
799
799
|
typeof: {
|
|
800
800
|
l: "typeof",
|
|
801
801
|
prefix: !0,
|
|
@@ -811,91 +811,91 @@ var M, si = function(e) {
|
|
|
811
811
|
prefix: !0,
|
|
812
812
|
m: !0
|
|
813
813
|
}
|
|
814
|
-
},
|
|
814
|
+
}, _t = {
|
|
815
815
|
type: "[",
|
|
816
816
|
m: !0
|
|
817
|
-
},
|
|
817
|
+
}, $t = {
|
|
818
818
|
type: "]"
|
|
819
|
-
},
|
|
819
|
+
}, Ke = {
|
|
820
820
|
type: "{",
|
|
821
821
|
m: !0
|
|
822
822
|
}, Pe = {
|
|
823
823
|
type: "}"
|
|
824
|
-
},
|
|
824
|
+
}, he = {
|
|
825
825
|
type: "(",
|
|
826
826
|
m: !0
|
|
827
827
|
}, ue = {
|
|
828
828
|
type: ")"
|
|
829
|
-
},
|
|
829
|
+
}, ke = {
|
|
830
830
|
type: ",",
|
|
831
831
|
m: !0
|
|
832
|
-
},
|
|
832
|
+
}, pe = {
|
|
833
833
|
type: ";",
|
|
834
834
|
m: !0
|
|
835
|
-
},
|
|
835
|
+
}, Ge = {
|
|
836
836
|
type: ":",
|
|
837
837
|
m: !0
|
|
838
|
-
}, Un = {
|
|
839
|
-
type: "."
|
|
840
838
|
}, Dn = {
|
|
839
|
+
type: "."
|
|
840
|
+
}, Un = {
|
|
841
841
|
type: "?",
|
|
842
842
|
m: !0
|
|
843
843
|
}, Wn = {
|
|
844
844
|
L: 10,
|
|
845
845
|
m: !0
|
|
846
|
-
},
|
|
846
|
+
}, Vn = {
|
|
847
847
|
Cb: !0,
|
|
848
848
|
m: !0
|
|
849
|
-
},
|
|
849
|
+
}, Ae = {
|
|
850
850
|
Cb: !0,
|
|
851
851
|
m: !0
|
|
852
|
-
},
|
|
852
|
+
}, Ar = {
|
|
853
853
|
cc: !0,
|
|
854
854
|
prefix: !0,
|
|
855
855
|
$b: !0
|
|
856
|
-
},
|
|
856
|
+
}, _n = {
|
|
857
857
|
prefix: !0,
|
|
858
858
|
m: !0
|
|
859
|
-
},
|
|
859
|
+
}, $n = {
|
|
860
860
|
L: 1,
|
|
861
861
|
m: !0
|
|
862
|
-
},
|
|
862
|
+
}, Hn = {
|
|
863
863
|
L: 2,
|
|
864
864
|
m: !0
|
|
865
|
-
},
|
|
865
|
+
}, jr = {
|
|
866
866
|
L: 3,
|
|
867
867
|
m: !0
|
|
868
|
-
},
|
|
868
|
+
}, Rr = {
|
|
869
869
|
L: 4,
|
|
870
870
|
m: !0
|
|
871
|
-
},
|
|
871
|
+
}, Or = {
|
|
872
872
|
L: 5,
|
|
873
873
|
m: !0
|
|
874
|
-
},
|
|
874
|
+
}, Pr = {
|
|
875
875
|
L: 6,
|
|
876
876
|
m: !0
|
|
877
877
|
}, Nr = {
|
|
878
878
|
L: 7,
|
|
879
879
|
m: !0
|
|
880
|
-
},
|
|
880
|
+
}, Br = {
|
|
881
881
|
L: 8,
|
|
882
882
|
m: !0
|
|
883
|
-
},
|
|
883
|
+
}, Lr = {
|
|
884
884
|
L: 9,
|
|
885
885
|
prefix: !0,
|
|
886
886
|
m: !0
|
|
887
|
-
},
|
|
887
|
+
}, Mr = {
|
|
888
888
|
L: 10,
|
|
889
889
|
m: !0
|
|
890
|
-
},
|
|
890
|
+
}, Fr = i("class enum extends super const export import"), Kn = i("implements interface let package private protected public static yield"), ft = i("eval arguments"), Dr = i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Ur = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Gn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Wr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ht = /[\n\r\u2028\u2029]/, pt = /\r\n|[\n\r\u2028\u2029]/g, Ne, Ht = {
|
|
891
891
|
kind: "loop"
|
|
892
|
-
},
|
|
892
|
+
}, Vr = {
|
|
893
893
|
kind: "switch"
|
|
894
894
|
};
|
|
895
|
-
},
|
|
896
|
-
|
|
895
|
+
}, Xt = Xt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
896
|
+
li(Xt.j || (Xt.j = {}));
|
|
897
897
|
function p(e, t) {
|
|
898
|
-
typeof e == "string" && (e =
|
|
898
|
+
typeof e == "string" && (e = De(e, "code"));
|
|
899
899
|
var n = e.constructor;
|
|
900
900
|
this.ya = function() {
|
|
901
901
|
return new n({
|
|
@@ -909,13 +909,13 @@ function p(e, t) {
|
|
|
909
909
|
var a, s;
|
|
910
910
|
for (s in this)
|
|
911
911
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
912
|
-
this.N =
|
|
913
|
-
`), "polyfills"), this.ba = void 0,
|
|
912
|
+
this.N = qt(this, this.ra, null), this.Na = this.N.object, this.ra = De(this.ba.join(`
|
|
913
|
+
`), "polyfills"), this.ba = void 0, xt(this.ra), a = new C(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = r, a = new C(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
914
914
|
}
|
|
915
|
-
var
|
|
915
|
+
var Xn = {
|
|
916
916
|
C: !0,
|
|
917
917
|
kc: 5
|
|
918
|
-
},
|
|
918
|
+
}, nn = {
|
|
919
919
|
configurable: !0,
|
|
920
920
|
enumerable: !0,
|
|
921
921
|
writable: !1
|
|
@@ -927,37 +927,37 @@ var Yn = {
|
|
|
927
927
|
configurable: !0,
|
|
928
928
|
enumerable: !1,
|
|
929
929
|
writable: !1
|
|
930
|
-
},
|
|
930
|
+
}, ze = {
|
|
931
931
|
configurable: !1,
|
|
932
932
|
enumerable: !1,
|
|
933
933
|
writable: !1
|
|
934
|
-
},
|
|
934
|
+
}, Jn = {
|
|
935
935
|
configurable: !1,
|
|
936
936
|
enumerable: !0,
|
|
937
937
|
writable: !0
|
|
938
|
-
},
|
|
938
|
+
}, hr = {
|
|
939
939
|
STEP_ERROR: !0
|
|
940
|
-
},
|
|
940
|
+
}, We = {
|
|
941
941
|
SCOPE_REFERENCE: !0
|
|
942
|
-
},
|
|
942
|
+
}, tt = {
|
|
943
943
|
VALUE_IN_DESCRIPTOR: !0
|
|
944
|
-
},
|
|
944
|
+
}, Le = {
|
|
945
945
|
REGEXP_TIMEOUT: !0
|
|
946
|
-
},
|
|
947
|
-
function
|
|
946
|
+
}, qn = [], ve = null, Ze = null, we = typeof globalThis == "undefined" ? void 0 : globalThis, ci = ["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();", "};"];
|
|
947
|
+
function rn(e) {
|
|
948
948
|
var t = e >>> 0;
|
|
949
949
|
return t === Number(e) ? t : NaN;
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function Qe(e) {
|
|
952
952
|
var t = e >>> 0;
|
|
953
953
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function xt(e, t, n) {
|
|
956
956
|
t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
|
|
957
957
|
for (var r in e)
|
|
958
958
|
if (r !== "loc" && e.hasOwnProperty(r)) {
|
|
959
959
|
var i = e[r];
|
|
960
|
-
i && typeof i == "object" &&
|
|
960
|
+
i && typeof i == "object" && xt(i, t, n);
|
|
961
961
|
}
|
|
962
962
|
}
|
|
963
963
|
p.prototype.REGEXP_MODE = 2;
|
|
@@ -968,19 +968,19 @@ M.P = !1;
|
|
|
968
968
|
M.Ka = !1;
|
|
969
969
|
M.Kb = 0;
|
|
970
970
|
M.ic = 0;
|
|
971
|
-
function
|
|
971
|
+
function De(e, t) {
|
|
972
972
|
var n = {}, r;
|
|
973
|
-
for (r in
|
|
974
|
-
n[r] =
|
|
975
|
-
return n.sourceFile = t,
|
|
973
|
+
for (r in Xn)
|
|
974
|
+
n[r] = Xn[r];
|
|
975
|
+
return n.sourceFile = t, we.j.parse(e, n);
|
|
976
976
|
}
|
|
977
977
|
M.Jb = function(e) {
|
|
978
978
|
var t = this.o[0];
|
|
979
979
|
if (!t || t.node.type !== "Program")
|
|
980
980
|
throw Error("Expecting original AST to start with a Program node");
|
|
981
|
-
if (typeof e == "string" && (e =
|
|
981
|
+
if (typeof e == "string" && (e = De(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
982
982
|
throw Error("Expecting new AST to start with a Program node");
|
|
983
|
-
|
|
983
|
+
nt(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
984
984
|
};
|
|
985
985
|
M.lb = function() {
|
|
986
986
|
var e = this.o, t;
|
|
@@ -994,7 +994,7 @@ M.lb = function() {
|
|
|
994
994
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
995
995
|
n = null;
|
|
996
996
|
else {
|
|
997
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
997
|
+
this.ca.shift(), 0 <= n.interval && gr(this, n, n.interval);
|
|
998
998
|
var r = new C(n.node, n.scope);
|
|
999
999
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1000
1000
|
}
|
|
@@ -1002,15 +1002,15 @@ M.lb = function() {
|
|
|
1002
1002
|
break;
|
|
1003
1003
|
}
|
|
1004
1004
|
r = n.node;
|
|
1005
|
-
var i =
|
|
1006
|
-
|
|
1005
|
+
var i = Ze;
|
|
1006
|
+
Ze = this;
|
|
1007
1007
|
try {
|
|
1008
1008
|
var a = this.rb[r.type](e, n, r);
|
|
1009
1009
|
} catch (s) {
|
|
1010
|
-
if (s !==
|
|
1010
|
+
if (s !== hr)
|
|
1011
1011
|
throw this.value !== s && (this.value = void 0), s;
|
|
1012
1012
|
} finally {
|
|
1013
|
-
|
|
1013
|
+
Ze = i;
|
|
1014
1014
|
}
|
|
1015
1015
|
if (a && e.push(a), this.P)
|
|
1016
1016
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -1025,8 +1025,8 @@ M.Eb = function() {
|
|
|
1025
1025
|
;
|
|
1026
1026
|
return this.za;
|
|
1027
1027
|
};
|
|
1028
|
-
function
|
|
1029
|
-
e.g(t, "NaN", NaN,
|
|
1028
|
+
function ui(e, t) {
|
|
1029
|
+
e.g(t, "NaN", NaN, ze), e.g(t, "Infinity", 1 / 0, ze), e.g(t, "undefined", void 0, ze), e.g(t, "window", t, nn), e.g(t, "this", t, ze), e.g(t, "self", t), e.M = new O(null), e.Z = new O(e.M), di(e, t), fi(e, t), t.xa = e.M, e.g(t, "constructor", e.v, k), hi(e, t), pi(e, t), mi(e, t), gi(e, t), yi(e, t), vi(e, t), bi(e, t), xi(e, t), Si(e, t);
|
|
1030
1030
|
var n = e.i(function() {
|
|
1031
1031
|
throw EvalError("Can't happen");
|
|
1032
1032
|
}, !1);
|
|
@@ -1042,17 +1042,17 @@ function ci(e, t) {
|
|
|
1042
1042
|
};
|
|
1043
1043
|
}(r[i][0]), e.g(t, r[i][1], e.i(n, !1), k);
|
|
1044
1044
|
n = function(a) {
|
|
1045
|
-
return
|
|
1045
|
+
return Zn(e, !1, arguments);
|
|
1046
1046
|
}, e.g(t, "setTimeout", e.i(n, !1), k), n = function(a) {
|
|
1047
|
-
return
|
|
1047
|
+
return Zn(e, !0, arguments);
|
|
1048
1048
|
}, e.g(t, "setInterval", e.i(n, !1), k), n = function(a) {
|
|
1049
|
-
|
|
1049
|
+
Qn(e, a);
|
|
1050
1050
|
}, e.g(t, "clearTimeout", e.i(n, !1), k), n = function(a) {
|
|
1051
|
-
|
|
1051
|
+
Qn(e, a);
|
|
1052
1052
|
}, e.g(t, "clearInterval", e.i(n, !1), k), 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);
|
|
1053
1053
|
}
|
|
1054
1054
|
M.Wb = 0;
|
|
1055
|
-
function
|
|
1055
|
+
function di(e, t) {
|
|
1056
1056
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(i) {
|
|
1057
1057
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1058
1058
|
if (s) {
|
|
@@ -1064,16 +1064,16 @@ function ui(e, t) {
|
|
|
1064
1064
|
s = s.join(", ");
|
|
1065
1065
|
}
|
|
1066
1066
|
try {
|
|
1067
|
-
var g =
|
|
1067
|
+
var g = De("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1068
1068
|
} catch (b) {
|
|
1069
1069
|
w(e, e.T, "Invalid code: " + b.message);
|
|
1070
1070
|
}
|
|
1071
|
-
return g.body.length !== 1 && w(e, e.T, "Invalid code in function body"),
|
|
1071
|
+
return g.body.length !== 1 && w(e, e.T, "Invalid code in function body"), sn(e, g.body[0].la, e.N, "anonymous");
|
|
1072
1072
|
};
|
|
1073
1073
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, k), e.g(e.O, "prototype", e.Z, k), e.g(e.Z, "constructor", e.O, k), e.Z.Ta = function() {
|
|
1074
1074
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ne), e.Z.H = "Function", r = function(i, a) {
|
|
1075
1075
|
var s = e.o[e.o.length - 1];
|
|
1076
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof O ? s.F =
|
|
1076
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof O ? s.F = pr(e, a) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1077
1077
|
}, Y(e, e.O, "apply", r), r = function(i) {
|
|
1078
1078
|
var a = e.o[e.o.length - 1];
|
|
1079
1079
|
a.U = this, a.B = i, a.F = [];
|
|
@@ -1086,7 +1086,7 @@ function ui(e, t) {
|
|
|
1086
1086
|
return this.valueOf();
|
|
1087
1087
|
}, Y(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), k);
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1089
|
+
function fi(e, t) {
|
|
1090
1090
|
function n(i) {
|
|
1091
1091
|
i != null || w(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1092
1092
|
}
|
|
@@ -1094,26 +1094,26 @@ function di(e, t) {
|
|
|
1094
1094
|
if (i == null)
|
|
1095
1095
|
return xe(e) ? this : e.s(e.M);
|
|
1096
1096
|
if (!(i instanceof O)) {
|
|
1097
|
-
var a = e.s(
|
|
1097
|
+
var a = e.s(be(e, i));
|
|
1098
1098
|
return a.data = i, a;
|
|
1099
1099
|
}
|
|
1100
1100
|
return i;
|
|
1101
1101
|
};
|
|
1102
1102
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, k), e.g(e.M, "constructor", e.v, k), e.g(t, "Object", e.v, k), r = function(i) {
|
|
1103
|
-
return n(i),
|
|
1103
|
+
return n(i), ge(e, Object.getOwnPropertyNames(i instanceof O ? i.h : i));
|
|
1104
1104
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), k), r = function(i) {
|
|
1105
|
-
return n(i), i instanceof O && (i = i.h),
|
|
1105
|
+
return n(i), i instanceof O && (i = i.h), ge(e, Object.keys(i));
|
|
1106
1106
|
}, e.g(e.v, "keys", e.i(r, !1), k), r = function(i) {
|
|
1107
1107
|
return i === null ? e.s(null) : (i instanceof O || w(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1108
1108
|
}, e.g(e.v, "create", e.i(r, !1), k), 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(i, a, s) {
|
|
1109
|
-
return a = String(a), i instanceof O || w(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof O || w(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || w(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a,
|
|
1109
|
+
return a = String(a), i instanceof O || w(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof O || w(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || w(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a, tt, s.h), i;
|
|
1110
1110
|
}, e.g(e.v, "defineProperty", e.i(r, !1), k), 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(i, a) {
|
|
1111
1111
|
if (i instanceof O || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1112
1112
|
var s = Object.getOwnPropertyDescriptor(i.h, a), c = i.V[a];
|
|
1113
1113
|
return i = i.Y[a], a = e.s(e.M), c || i ? (e.g(a, "get", c), e.g(a, "set", i)) : (e.g(a, "value", s.value), e.g(a, "writable", s.writable)), e.g(a, "configurable", s.configurable), e.g(a, "enumerable", s.enumerable), a;
|
|
1114
1114
|
}
|
|
1115
1115
|
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), k), r = function(i) {
|
|
1116
|
-
return n(i),
|
|
1116
|
+
return n(i), be(e, i);
|
|
1117
1117
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), k), r = function(i) {
|
|
1118
1118
|
return !!i && !i.preventExtensions;
|
|
1119
1119
|
}, e.g(e.v, "isExtensible", e.i(r, !1), k), r = function(i) {
|
|
@@ -1124,18 +1124,18 @@ function di(e, t) {
|
|
|
1124
1124
|
return n(this), this instanceof O ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1125
1125
|
}, Y(e, e.v, "propertyIsEnumerable", r), r = function(i) {
|
|
1126
1126
|
for (; ; ) {
|
|
1127
|
-
if (i =
|
|
1127
|
+
if (i = be(e, i), !i)
|
|
1128
1128
|
return !1;
|
|
1129
1129
|
if (i === this)
|
|
1130
1130
|
return !0;
|
|
1131
1131
|
}
|
|
1132
1132
|
}, Y(e, e.v, "isPrototypeOf", r);
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function hi(e, t) {
|
|
1135
1135
|
var n = function(r) {
|
|
1136
|
-
var i = xe(e) ? this :
|
|
1136
|
+
var i = xe(e) ? this : Ue(e), a = arguments[0];
|
|
1137
1137
|
if (arguments.length === 1 && typeof a == "number")
|
|
1138
|
-
isNaN(
|
|
1138
|
+
isNaN(rn(a)) && w(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1139
1139
|
else {
|
|
1140
1140
|
for (a = 0; a < arguments.length; a++)
|
|
1141
1141
|
i.h[a] = arguments[a];
|
|
@@ -1151,9 +1151,9 @@ function fi(e, t) {
|
|
|
1151
1151
|
writable: !0
|
|
1152
1152
|
}), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function pi(e, t) {
|
|
1155
1155
|
var n = function(r) {
|
|
1156
|
-
return r = arguments.length ?
|
|
1156
|
+
return r = arguments.length ? we.String(r) : "", xe(e) ? (this.data = r, this) : r;
|
|
1157
1157
|
};
|
|
1158
1158
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, k), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), k), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1159
1159
|
Y(e, e.J, t[n], String.prototype[t[n]]);
|
|
@@ -1166,65 +1166,65 @@ function hi(e, t) {
|
|
|
1166
1166
|
}
|
|
1167
1167
|
}, Y(e, e.J, "localeCompare", n), n = function(r, i, a) {
|
|
1168
1168
|
var s = String(this);
|
|
1169
|
-
if (i = i ? Number(i) : void 0, q(e, r, e.I) && (r = r.data,
|
|
1170
|
-
if (
|
|
1171
|
-
r =
|
|
1169
|
+
if (i = i ? Number(i) : void 0, q(e, r, e.I) && (r = r.data, Xe(e, r, a), e.REGEXP_MODE === 2)) {
|
|
1170
|
+
if (ve)
|
|
1171
|
+
r = Ye(e, "string.split(separator, limit)", {
|
|
1172
1172
|
string: s,
|
|
1173
1173
|
separator: r,
|
|
1174
1174
|
limit: i
|
|
1175
|
-
}, r, a), r !==
|
|
1175
|
+
}, r, a), r !== Le && a(ge(e, r));
|
|
1176
1176
|
else {
|
|
1177
|
-
var c = e.ha(), f =
|
|
1177
|
+
var c = e.ha(), f = Je(e, r, c, a);
|
|
1178
1178
|
c.onmessage = function(g) {
|
|
1179
|
-
clearTimeout(f), a(
|
|
1179
|
+
clearTimeout(f), a(ge(e, g.data));
|
|
1180
1180
|
}, c.postMessage(["split", s, r, i]);
|
|
1181
1181
|
}
|
|
1182
1182
|
return;
|
|
1183
1183
|
}
|
|
1184
|
-
r = s.split(r, i), a(
|
|
1185
|
-
},
|
|
1184
|
+
r = s.split(r, i), a(ge(e, r));
|
|
1185
|
+
}, qe(e, e.J, "split", n), n = function(r, i) {
|
|
1186
1186
|
var a = String(this);
|
|
1187
|
-
if (r = q(e, r, e.I) ? r.data : new RegExp(r),
|
|
1188
|
-
if (
|
|
1189
|
-
r =
|
|
1187
|
+
if (r = q(e, r, e.I) ? r.data : new RegExp(r), Xe(e, r, i), e.REGEXP_MODE === 2)
|
|
1188
|
+
if (ve)
|
|
1189
|
+
r = Ye(e, "string.match(regexp)", {
|
|
1190
1190
|
string: a,
|
|
1191
1191
|
regexp: r
|
|
1192
|
-
}, r, i), r !==
|
|
1192
|
+
}, r, i), r !== Le && i(r && ge(e, r));
|
|
1193
1193
|
else {
|
|
1194
|
-
var s = e.ha(), c =
|
|
1194
|
+
var s = e.ha(), c = Je(e, r, s, i);
|
|
1195
1195
|
s.onmessage = function(f) {
|
|
1196
|
-
clearTimeout(c), i(f.data &&
|
|
1196
|
+
clearTimeout(c), i(f.data && ge(e, f.data));
|
|
1197
1197
|
}, s.postMessage(["match", a, r]);
|
|
1198
1198
|
}
|
|
1199
1199
|
else
|
|
1200
|
-
r = a.match(r), i(r &&
|
|
1201
|
-
},
|
|
1200
|
+
r = a.match(r), i(r && ge(e, r));
|
|
1201
|
+
}, qe(e, e.J, "match", n), n = function(r, i) {
|
|
1202
1202
|
var a = String(this);
|
|
1203
|
-
if (q(e, r, e.I) ? r = r.data : r = new RegExp(r),
|
|
1204
|
-
if (
|
|
1205
|
-
r =
|
|
1203
|
+
if (q(e, r, e.I) ? r = r.data : r = new RegExp(r), Xe(e, r, i), e.REGEXP_MODE === 2)
|
|
1204
|
+
if (ve)
|
|
1205
|
+
r = Ye(e, "string.search(regexp)", {
|
|
1206
1206
|
string: a,
|
|
1207
1207
|
regexp: r
|
|
1208
|
-
}, r, i), r !==
|
|
1208
|
+
}, r, i), r !== Le && i(r);
|
|
1209
1209
|
else {
|
|
1210
|
-
var s = e.ha(), c =
|
|
1210
|
+
var s = e.ha(), c = Je(e, r, s, i);
|
|
1211
1211
|
s.onmessage = function(f) {
|
|
1212
1212
|
clearTimeout(c), i(f.data);
|
|
1213
1213
|
}, s.postMessage(["search", a, r]);
|
|
1214
1214
|
}
|
|
1215
1215
|
else
|
|
1216
1216
|
i(a.search(r));
|
|
1217
|
-
},
|
|
1217
|
+
}, qe(e, e.J, "search", n), n = function(r, i, a) {
|
|
1218
1218
|
var s = String(this);
|
|
1219
|
-
if (i = String(i), q(e, r, e.I) && (r = r.data,
|
|
1220
|
-
if (
|
|
1221
|
-
r =
|
|
1219
|
+
if (i = String(i), q(e, r, e.I) && (r = r.data, Xe(e, r, a), e.REGEXP_MODE === 2)) {
|
|
1220
|
+
if (ve)
|
|
1221
|
+
r = Ye(e, "string.replace(substr, newSubstr)", {
|
|
1222
1222
|
string: s,
|
|
1223
1223
|
substr: r,
|
|
1224
1224
|
newSubstr: i
|
|
1225
|
-
}, r, a), r !==
|
|
1225
|
+
}, r, a), r !== Le && a(r);
|
|
1226
1226
|
else {
|
|
1227
|
-
var c = e.ha(), f =
|
|
1227
|
+
var c = e.ha(), f = Je(e, r, c, a);
|
|
1228
1228
|
c.onmessage = function(g) {
|
|
1229
1229
|
clearTimeout(f), a(g.data);
|
|
1230
1230
|
}, c.postMessage(["replace", s, r, i]);
|
|
@@ -1232,19 +1232,19 @@ function hi(e, t) {
|
|
|
1232
1232
|
return;
|
|
1233
1233
|
}
|
|
1234
1234
|
a(s.replace(r, i));
|
|
1235
|
-
},
|
|
1235
|
+
}, qe(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;", "};", "})();", "");
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function mi(e, t) {
|
|
1238
1238
|
e.mb = e.i(function(n) {
|
|
1239
|
-
return n =
|
|
1239
|
+
return n = we.Boolean(n), xe(e) ? (this.data = n, this) : n;
|
|
1240
1240
|
}, !0), e.g(t, "Boolean", e.mb, k);
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function gi(e, t) {
|
|
1243
1243
|
var n = function(r) {
|
|
1244
|
-
return r = arguments.length ?
|
|
1244
|
+
return r = arguments.length ? we.Number(r) : 0, xe(e) ? (this.data = r, this) : r;
|
|
1245
1245
|
};
|
|
1246
1246
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, k), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1247
|
-
e.g(e.aa, t[n], Number[t[n]],
|
|
1247
|
+
e.g(e.aa, t[n], Number[t[n]], ze);
|
|
1248
1248
|
n = function(r) {
|
|
1249
1249
|
try {
|
|
1250
1250
|
return Number(this).toExponential(r);
|
|
@@ -1278,12 +1278,12 @@ function mi(e, t) {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
}, Y(e, e.aa, "toLocaleString", n);
|
|
1280
1280
|
}
|
|
1281
|
-
function
|
|
1281
|
+
function yi(e, t) {
|
|
1282
1282
|
var n = function(i, a) {
|
|
1283
1283
|
if (!xe(e))
|
|
1284
|
-
return
|
|
1284
|
+
return we.Date();
|
|
1285
1285
|
var s = [null].concat(Array.from(arguments));
|
|
1286
|
-
return this.data = new (Function.prototype.bind.apply(
|
|
1286
|
+
return this.data = new (Function.prototype.bind.apply(we.Date, s))(), this;
|
|
1287
1287
|
};
|
|
1288
1288
|
e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, k), e.g(e.$, "now", e.i(Date.now, !1), k), e.g(e.$, "parse", e.i(Date.parse, !1), k), e.g(e.$, "UTC", e.i(Date.UTC, !1), k), 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(" ");
|
|
1289
1289
|
for (var r = 0; r < t.length; r++)
|
|
@@ -1297,7 +1297,7 @@ function gi(e, t) {
|
|
|
1297
1297
|
};
|
|
1298
1298
|
}(t[r]), Y(e, e.$, t[r], n);
|
|
1299
1299
|
}
|
|
1300
|
-
function
|
|
1300
|
+
function vi(e, t) {
|
|
1301
1301
|
var n = function(r, i) {
|
|
1302
1302
|
if (xe(e))
|
|
1303
1303
|
var a = this;
|
|
@@ -1308,51 +1308,51 @@ function yi(e, t) {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
r = r === void 0 ? "" : String(r), i = i ? String(i) : "", /^[gmi]*$/.test(i) || w(e, e.T, "Invalid regexp flag: " + i);
|
|
1310
1310
|
try {
|
|
1311
|
-
var s = new
|
|
1311
|
+
var s = new we.RegExp(r, i);
|
|
1312
1312
|
} catch (c) {
|
|
1313
1313
|
w(e, e.T, c.message);
|
|
1314
1314
|
}
|
|
1315
|
-
return
|
|
1315
|
+
return on(e, a, s), a;
|
|
1316
1316
|
};
|
|
1317
1317
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, k), e.g(e.I.h.prototype, "global", void 0, ne), e.g(e.I.h.prototype, "ignoreCase", void 0, ne), e.g(e.I.h.prototype, "multiline", void 0, ne), e.g(e.I.h.prototype, "source", "(?:)", ne), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, i) {
|
|
1318
1318
|
function a(b) {
|
|
1319
1319
|
if (b) {
|
|
1320
|
-
var m =
|
|
1320
|
+
var m = ge(e, b);
|
|
1321
1321
|
return e.g(m, "index", b.index), e.g(m, "input", b.input), m;
|
|
1322
1322
|
}
|
|
1323
1323
|
return null;
|
|
1324
1324
|
}
|
|
1325
1325
|
var s = this.data;
|
|
1326
|
-
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")),
|
|
1327
|
-
if (
|
|
1328
|
-
r =
|
|
1326
|
+
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")), Xe(e, s, i), e.REGEXP_MODE === 2)
|
|
1327
|
+
if (ve)
|
|
1328
|
+
r = Ye(e, "regexp.exec(string)", {
|
|
1329
1329
|
string: r,
|
|
1330
1330
|
regexp: s
|
|
1331
|
-
}, s, i), r !==
|
|
1331
|
+
}, s, i), r !== Le && (e.g(this, "lastIndex", s.lastIndex), i(a(r)));
|
|
1332
1332
|
else {
|
|
1333
|
-
var c = e.ha(), f =
|
|
1333
|
+
var c = e.ha(), f = Je(e, s, c, i), g = this;
|
|
1334
1334
|
c.onmessage = function(b) {
|
|
1335
1335
|
clearTimeout(f), e.g(g, "lastIndex", b.data[1]), i(a(b.data[0]));
|
|
1336
1336
|
}, c.postMessage(["exec", s, s.lastIndex, r]);
|
|
1337
1337
|
}
|
|
1338
1338
|
else
|
|
1339
1339
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), i(a(r));
|
|
1340
|
-
},
|
|
1340
|
+
}, qe(e, e.I, "exec", n);
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function bi(e, t) {
|
|
1343
1343
|
function n(r) {
|
|
1344
1344
|
var i = e.i(function(a) {
|
|
1345
1345
|
var s = xe(e) ? this : e.Aa(i);
|
|
1346
|
-
return
|
|
1346
|
+
return Jt(e, s, a), s;
|
|
1347
1347
|
}, !0);
|
|
1348
1348
|
return e.g(i, "prototype", e.Aa(e.D), k), e.g(i.h.prototype, "name", r, k), e.g(t, r, i, k), i;
|
|
1349
1349
|
}
|
|
1350
1350
|
e.D = e.i(function(r) {
|
|
1351
1351
|
var i = xe(e) ? this : e.Aa(e.D);
|
|
1352
|
-
return
|
|
1352
|
+
return Jt(e, i, r), i;
|
|
1353
1353
|
}, !0), e.g(t, "Error", e.D, k), e.g(e.D.h.prototype, "message", "", k), e.g(e.D.h.prototype, "name", "Error", k), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function xi(e, t) {
|
|
1356
1356
|
var n = e.s(e.M);
|
|
1357
1357
|
e.g(t, "Math", n, k);
|
|
1358
1358
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1371,7 +1371,7 @@ function Si(e, t) {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
return e.Ia(i);
|
|
1373
1373
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, i, a) {
|
|
1374
|
-
i && i.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i =
|
|
1374
|
+
i && i.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = pr(e, i), i = i.filter(function(c) {
|
|
1375
1375
|
return typeof c == "string" || typeof c == "number";
|
|
1376
1376
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), r = e.R(r);
|
|
1377
1377
|
try {
|
|
@@ -1387,17 +1387,17 @@ function q(e, t, n) {
|
|
|
1387
1387
|
return !1;
|
|
1388
1388
|
if (n = n.h.prototype, t === n)
|
|
1389
1389
|
return !0;
|
|
1390
|
-
for (t =
|
|
1390
|
+
for (t = be(e, t); t; ) {
|
|
1391
1391
|
if (t === n)
|
|
1392
1392
|
return !0;
|
|
1393
1393
|
t = t.xa;
|
|
1394
1394
|
}
|
|
1395
1395
|
return !1;
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function on(e, t, n) {
|
|
1398
1398
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, k), e.g(t, "source", n.source, ne), e.g(t, "global", n.global, ne), e.g(t, "ignoreCase", n.ignoreCase, ne), e.g(t, "multiline", n.multiline, ne);
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1400
|
+
function Jt(e, t, n) {
|
|
1401
1401
|
n && e.g(t, "message", String(n), k), n = [];
|
|
1402
1402
|
for (var r = e.o.length - 1; 0 <= r; r--) {
|
|
1403
1403
|
var i = e.o[r], a = i.node;
|
|
@@ -1416,42 +1416,42 @@ function Xt(e, t, n) {
|
|
|
1416
1416
|
}
|
|
1417
1417
|
M.ha = function() {
|
|
1418
1418
|
var e = this.ha.Mb;
|
|
1419
|
-
return e || (e = new Blob([
|
|
1419
|
+
return e || (e = new Blob([ci.join(`
|
|
1420
1420
|
`)], {
|
|
1421
1421
|
type: "application/javascript"
|
|
1422
1422
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1423
1423
|
};
|
|
1424
|
-
function
|
|
1424
|
+
function Ye(e, t, n, r, i) {
|
|
1425
1425
|
var a = {
|
|
1426
1426
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1427
1427
|
};
|
|
1428
1428
|
try {
|
|
1429
|
-
return
|
|
1429
|
+
return ve.runInNewContext(t, n, a);
|
|
1430
1430
|
} catch {
|
|
1431
1431
|
i(null), w(e, e.D, "RegExp Timeout: " + r);
|
|
1432
1432
|
}
|
|
1433
|
-
return
|
|
1433
|
+
return Le;
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function Xe(e, t, n) {
|
|
1436
1436
|
if (e.REGEXP_MODE === 0)
|
|
1437
1437
|
var r = !1;
|
|
1438
1438
|
else if (e.REGEXP_MODE === 1)
|
|
1439
1439
|
r = !0;
|
|
1440
|
-
else if (
|
|
1440
|
+
else if (ve)
|
|
1441
1441
|
r = !0;
|
|
1442
1442
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1443
1443
|
r = !0;
|
|
1444
1444
|
else if (typeof require == "function") {
|
|
1445
1445
|
try {
|
|
1446
|
-
|
|
1446
|
+
ve = require("vm");
|
|
1447
1447
|
} catch {
|
|
1448
1448
|
}
|
|
1449
|
-
r = !!
|
|
1449
|
+
r = !!ve;
|
|
1450
1450
|
} else
|
|
1451
1451
|
r = !1;
|
|
1452
1452
|
r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function Je(e, t, n, r) {
|
|
1455
1455
|
return setTimeout(function() {
|
|
1456
1456
|
n.terminate(), r(null);
|
|
1457
1457
|
try {
|
|
@@ -1468,7 +1468,7 @@ M.s = function(e) {
|
|
|
1468
1468
|
throw Error("Non object prototype");
|
|
1469
1469
|
return e = new O(e), q(this, e, this.D) && (e.H = "Error"), e;
|
|
1470
1470
|
};
|
|
1471
|
-
function
|
|
1471
|
+
function Ue(e) {
|
|
1472
1472
|
var t = e.s(e.La);
|
|
1473
1473
|
return e.g(t, "length", 0, {
|
|
1474
1474
|
configurable: !1,
|
|
@@ -1476,19 +1476,19 @@ function Le(e) {
|
|
|
1476
1476
|
writable: !0
|
|
1477
1477
|
}), t.H = "Array", t;
|
|
1478
1478
|
}
|
|
1479
|
-
function
|
|
1479
|
+
function an(e, t, n) {
|
|
1480
1480
|
var r = e.s(e.Z);
|
|
1481
1481
|
return n ? (n = e.s(e.M), e.g(r, "prototype", n, k), e.g(n, "constructor", r, k)) : r.Ab = !0, e.g(r, "length", t, ne), r.H = "Function", r;
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1484
|
-
var i =
|
|
1483
|
+
function sn(e, t, n, r) {
|
|
1484
|
+
var i = an(e, t.oa.length, !0);
|
|
1485
1485
|
return i.Va = n, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : r || "", ne), i;
|
|
1486
1486
|
}
|
|
1487
1487
|
M.i = function(e, t) {
|
|
1488
|
-
return t =
|
|
1488
|
+
return t = an(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, ne), t;
|
|
1489
1489
|
};
|
|
1490
1490
|
M.ub = function(e) {
|
|
1491
|
-
var t =
|
|
1491
|
+
var t = an(this, e.length, !0);
|
|
1492
1492
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, ne), t;
|
|
1493
1493
|
};
|
|
1494
1494
|
M.Ia = function(e) {
|
|
@@ -1498,7 +1498,7 @@ M.Ia = function(e) {
|
|
|
1498
1498
|
return e;
|
|
1499
1499
|
if (e instanceof RegExp) {
|
|
1500
1500
|
var t = this.s(this.Ma);
|
|
1501
|
-
return
|
|
1501
|
+
return on(this, t, e), t;
|
|
1502
1502
|
}
|
|
1503
1503
|
if (e instanceof Date)
|
|
1504
1504
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1512,7 +1512,7 @@ M.Ia = function(e) {
|
|
|
1512
1512
|
}, !!t);
|
|
1513
1513
|
}
|
|
1514
1514
|
if (Array.isArray(e)) {
|
|
1515
|
-
t =
|
|
1515
|
+
t = Ue(this);
|
|
1516
1516
|
for (var r = 0; r < e.length; r++)
|
|
1517
1517
|
r in e && this.g(t, r, this.Ia(e[r]));
|
|
1518
1518
|
return t;
|
|
@@ -1541,7 +1541,7 @@ M.R = function(e, t) {
|
|
|
1541
1541
|
if (t.hb.push(e), q(this, e, this.qa)) {
|
|
1542
1542
|
n = [], t.Sa.push(n);
|
|
1543
1543
|
for (var r = this.G(e, "length"), i = 0; i < r; i++)
|
|
1544
|
-
|
|
1544
|
+
St(this, e, i) && (n[i] = this.R(this.G(e, i), t));
|
|
1545
1545
|
} else
|
|
1546
1546
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1547
1547
|
i = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
@@ -1552,18 +1552,18 @@ M.R = function(e, t) {
|
|
|
1552
1552
|
});
|
|
1553
1553
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1554
1554
|
};
|
|
1555
|
-
function
|
|
1556
|
-
for (var n =
|
|
1555
|
+
function ge(e, t) {
|
|
1556
|
+
for (var n = Ue(e), r = Object.getOwnPropertyNames(t), i = 0; i < r.length; i++)
|
|
1557
1557
|
e.g(n, r[i], t[r[i]]);
|
|
1558
1558
|
return n;
|
|
1559
1559
|
}
|
|
1560
|
-
function
|
|
1560
|
+
function pr(e, t) {
|
|
1561
1561
|
var n = [], r;
|
|
1562
1562
|
for (r in t.h)
|
|
1563
1563
|
n[r] = e.G(t, r);
|
|
1564
|
-
return n.length =
|
|
1564
|
+
return n.length = rn(e.G(t, "length")) || 0, n;
|
|
1565
1565
|
}
|
|
1566
|
-
function
|
|
1566
|
+
function be(e, t) {
|
|
1567
1567
|
switch (typeof t) {
|
|
1568
1568
|
case "number":
|
|
1569
1569
|
return e.aa.h.prototype;
|
|
@@ -1583,29 +1583,29 @@ M.G = function(e, t) {
|
|
|
1583
1583
|
if (q(this, e, this.J))
|
|
1584
1584
|
return String(e).length;
|
|
1585
1585
|
} else if (64 > t.charCodeAt(0) && q(this, e, this.J)) {
|
|
1586
|
-
var n =
|
|
1586
|
+
var n = Qe(t);
|
|
1587
1587
|
if (!isNaN(n) && n < String(e).length)
|
|
1588
1588
|
return String(e)[n];
|
|
1589
1589
|
}
|
|
1590
1590
|
do
|
|
1591
1591
|
if (e.h && t in e.h)
|
|
1592
1592
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1593
|
-
while (e =
|
|
1593
|
+
while (e = be(this, e));
|
|
1594
1594
|
};
|
|
1595
|
-
function
|
|
1595
|
+
function St(e, t, n) {
|
|
1596
1596
|
if (!(t instanceof O))
|
|
1597
1597
|
throw TypeError("Primitive data type has no properties");
|
|
1598
1598
|
if (n = String(n), n === "length" && q(e, t, e.J))
|
|
1599
1599
|
return !0;
|
|
1600
1600
|
if (q(e, t, e.J)) {
|
|
1601
|
-
var r =
|
|
1601
|
+
var r = Qe(n);
|
|
1602
1602
|
if (!isNaN(r) && r < String(t).length)
|
|
1603
1603
|
return !0;
|
|
1604
1604
|
}
|
|
1605
1605
|
do
|
|
1606
1606
|
if (t.h && n in t.h)
|
|
1607
1607
|
return !0;
|
|
1608
|
-
while (t =
|
|
1608
|
+
while (t = be(e, t));
|
|
1609
1609
|
return !1;
|
|
1610
1610
|
}
|
|
1611
1611
|
M.g = function(e, t, n, r) {
|
|
@@ -1614,10 +1614,10 @@ M.g = function(e, t, n, r) {
|
|
|
1614
1614
|
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof O))
|
|
1615
1615
|
throw TypeError("Expecting native value or pseudo object");
|
|
1616
1616
|
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");
|
|
1617
|
-
var i = !this.o ||
|
|
1617
|
+
var i = !this.o || ln(this).S;
|
|
1618
1618
|
if (e instanceof O) {
|
|
1619
1619
|
if (q(this, e, this.J)) {
|
|
1620
|
-
var a =
|
|
1620
|
+
var a = Qe(t);
|
|
1621
1621
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
1622
1622
|
i && w(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1623
1623
|
return;
|
|
@@ -1630,16 +1630,16 @@ M.g = function(e, t, n, r) {
|
|
|
1630
1630
|
return;
|
|
1631
1631
|
n = r.value;
|
|
1632
1632
|
}
|
|
1633
|
-
if (n =
|
|
1633
|
+
if (n = rn(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < a)
|
|
1634
1634
|
for (s in e.h) {
|
|
1635
|
-
var s =
|
|
1635
|
+
var s = Qe(s);
|
|
1636
1636
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
1637
1637
|
}
|
|
1638
1638
|
} else
|
|
1639
|
-
isNaN(s =
|
|
1639
|
+
isNaN(s = Qe(t)) || (e.h.length = Math.max(a, s + 1));
|
|
1640
1640
|
if (!e.preventExtensions || t in e.h)
|
|
1641
1641
|
if (r) {
|
|
1642
|
-
i = {}, "get" in r && r.get && (e.V[t] = r.get, i.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, i.set = this.g.bc), "configurable" in r && (i.configurable = r.configurable), "enumerable" in r && (i.enumerable = r.enumerable), "writable" in r && (i.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (i.value = r.value, delete e.V[t], delete e.Y[t]) : n !==
|
|
1642
|
+
i = {}, "get" in r && r.get && (e.V[t] = r.get, i.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, i.set = this.g.bc), "configurable" in r && (i.configurable = r.configurable), "enumerable" in r && (i.enumerable = r.enumerable), "writable" in r && (i.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (i.value = r.value, delete e.V[t], delete e.Y[t]) : n !== tt && (i.value = n, delete e.V[t], delete e.Y[t]);
|
|
1643
1643
|
try {
|
|
1644
1644
|
Object.defineProperty(e.h, t, i);
|
|
1645
1645
|
} catch {
|
|
@@ -1647,10 +1647,10 @@ M.g = function(e, t, n, r) {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1649
1649
|
} else {
|
|
1650
|
-
if (n ===
|
|
1650
|
+
if (n === tt)
|
|
1651
1651
|
throw ReferenceError("Value not specified");
|
|
1652
1652
|
for (r = e; !(t in r.h); )
|
|
1653
|
-
if (r =
|
|
1653
|
+
if (r = be(this, r), !r) {
|
|
1654
1654
|
r = e;
|
|
1655
1655
|
break;
|
|
1656
1656
|
}
|
|
@@ -1679,15 +1679,15 @@ M.g.bc = function() {
|
|
|
1679
1679
|
function Y(e, t, n, r) {
|
|
1680
1680
|
e.g(t.h.prototype, n, e.i(r, !1), k);
|
|
1681
1681
|
}
|
|
1682
|
-
function
|
|
1682
|
+
function qe(e, t, n, r) {
|
|
1683
1683
|
e.g(t.h.prototype, n, e.ub(r), k);
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1685
|
+
function ln(e) {
|
|
1686
1686
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1687
1687
|
throw Error("No scope found");
|
|
1688
1688
|
return e;
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1690
|
+
function qt(e, t, n) {
|
|
1691
1691
|
var r = !1;
|
|
1692
1692
|
if (n && n.S)
|
|
1693
1693
|
r = !0;
|
|
@@ -1695,25 +1695,25 @@ function Jt(e, t, n) {
|
|
|
1695
1695
|
var i = t.body && t.body[0];
|
|
1696
1696
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (r = !0);
|
|
1697
1697
|
}
|
|
1698
|
-
return i = e.s(null), r = new
|
|
1698
|
+
return i = e.s(null), r = new yr(n, r, i), n || ui(e, r.object), nt(e, t, r), r;
|
|
1699
1699
|
}
|
|
1700
|
-
function
|
|
1700
|
+
function cn(e, t, n) {
|
|
1701
1701
|
if (!t)
|
|
1702
1702
|
throw Error("parentScope required");
|
|
1703
|
-
return e = n || e.s(null), new
|
|
1703
|
+
return e = n || e.s(null), new yr(t, t.S, e);
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1706
|
-
for (var n =
|
|
1705
|
+
function un(e, t) {
|
|
1706
|
+
for (var n = ln(e); n && n !== e.N; ) {
|
|
1707
1707
|
if (t in n.object.h)
|
|
1708
1708
|
return n.object.h[t];
|
|
1709
1709
|
n = n.Va;
|
|
1710
1710
|
}
|
|
1711
|
-
if (n === e.N &&
|
|
1711
|
+
if (n === e.N && St(e, n.object, t))
|
|
1712
1712
|
return e.G(n.object, t);
|
|
1713
1713
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1716
|
-
for (var r =
|
|
1715
|
+
function mr(e, t, n) {
|
|
1716
|
+
for (var r = ln(e), i = r.S; r && r !== e.N; ) {
|
|
1717
1717
|
if (t in r.object.h) {
|
|
1718
1718
|
try {
|
|
1719
1719
|
r.object.h[t] = n;
|
|
@@ -1724,11 +1724,11 @@ function pr(e, t, n) {
|
|
|
1724
1724
|
}
|
|
1725
1725
|
r = r.Va;
|
|
1726
1726
|
}
|
|
1727
|
-
if (r === e.N && (!i ||
|
|
1727
|
+
if (r === e.N && (!i || St(e, r.object, t)))
|
|
1728
1728
|
return e.g(r.object, t, n);
|
|
1729
1729
|
w(e, e.pb, t + " is not defined");
|
|
1730
1730
|
}
|
|
1731
|
-
function
|
|
1731
|
+
function nt(e, t, n) {
|
|
1732
1732
|
if (t.jb)
|
|
1733
1733
|
var r = t.jb;
|
|
1734
1734
|
else {
|
|
@@ -1761,12 +1761,12 @@ function rt(e, t, n) {
|
|
|
1761
1761
|
if (Array.isArray(c)) {
|
|
1762
1762
|
for (i = 0; i < c.length; i++)
|
|
1763
1763
|
if (c[i] && c[i].constructor === a) {
|
|
1764
|
-
var f =
|
|
1764
|
+
var f = nt(e, c[i], n);
|
|
1765
1765
|
for (s in f)
|
|
1766
1766
|
r[s] = f[s];
|
|
1767
1767
|
}
|
|
1768
1768
|
} else if (c.constructor === a)
|
|
1769
|
-
for (s in f =
|
|
1769
|
+
for (s in f = nt(e, c, n), f)
|
|
1770
1770
|
r[s] = f[s];
|
|
1771
1771
|
}
|
|
1772
1772
|
}
|
|
@@ -1774,20 +1774,20 @@ function rt(e, t, n) {
|
|
|
1774
1774
|
t.jb = r;
|
|
1775
1775
|
}
|
|
1776
1776
|
for (s in r)
|
|
1777
|
-
r[s] === !0 ? e.g(n.object, s, void 0,
|
|
1777
|
+
r[s] === !0 ? e.g(n.object, s, void 0, Jn) : e.g(n.object, s, sn(e, r[s], n), Jn);
|
|
1778
1778
|
return r;
|
|
1779
1779
|
}
|
|
1780
1780
|
function xe(e) {
|
|
1781
1781
|
return e.o[e.o.length - 1].isConstructor;
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1784
|
-
return t[0] ===
|
|
1783
|
+
function dn(e, t) {
|
|
1784
|
+
return t[0] === We ? un(e, t[1]) : e.G(t[0], t[1]);
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1787
|
-
return t[0] ===
|
|
1786
|
+
function fn(e, t, n) {
|
|
1787
|
+
return t[0] === We ? mr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1788
1788
|
}
|
|
1789
1789
|
function w(e, t, n) {
|
|
1790
|
-
throw e.N ? (n !== void 0 && t instanceof O && (t = e.Aa(t),
|
|
1790
|
+
throw e.N ? (n !== void 0 && t instanceof O && (t = e.Aa(t), Jt(e, t, n)), at(e, 4, t), hr) : n === void 0 ? t : n;
|
|
1791
1791
|
}
|
|
1792
1792
|
function at(e, t, n, r) {
|
|
1793
1793
|
if (t === 0)
|
|
@@ -1865,7 +1865,7 @@ function te(e, t) {
|
|
|
1865
1865
|
}
|
|
1866
1866
|
return "???";
|
|
1867
1867
|
}
|
|
1868
|
-
function
|
|
1868
|
+
function Zn(e, t, n) {
|
|
1869
1869
|
var r = e.o[e.o.length - 1], i = Array.from(n), a = i.shift();
|
|
1870
1870
|
n = Math.max(Number(i.shift() || 0), 0);
|
|
1871
1871
|
var s = e.ya();
|
|
@@ -1874,20 +1874,20 @@ function qn(e, t, n) {
|
|
|
1874
1874
|
s.type = "CallExpression", r = r.scope;
|
|
1875
1875
|
} else {
|
|
1876
1876
|
try {
|
|
1877
|
-
var f =
|
|
1877
|
+
var f = De(String(a), "taskCode" + e.ic++);
|
|
1878
1878
|
} catch (g) {
|
|
1879
1879
|
w(e, e.T, "Invalid code: " + g.message);
|
|
1880
1880
|
}
|
|
1881
|
-
s.type = "EvalProgram_", s.body = f.body, r = r.node.arguments[0],
|
|
1881
|
+
s.type = "EvalProgram_", s.body = f.body, r = r.node.arguments[0], xt(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, i.length = 0;
|
|
1882
1882
|
}
|
|
1883
|
-
return t = new
|
|
1883
|
+
return t = new ki(c, i, r, s, t ? n : -1), gr(e, t, n), t.Db;
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function gr(e, t, n) {
|
|
1886
1886
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, i) {
|
|
1887
1887
|
return r.time - i.time;
|
|
1888
1888
|
});
|
|
1889
1889
|
}
|
|
1890
|
-
function
|
|
1890
|
+
function Qn(e, t) {
|
|
1891
1891
|
for (var n = 0; n < e.ca.length; n++)
|
|
1892
1892
|
if (e.ca[n].Db == t) {
|
|
1893
1893
|
e.ca.splice(n, 1);
|
|
@@ -1901,15 +1901,15 @@ function st(e, t, n) {
|
|
|
1901
1901
|
var r = e.ya();
|
|
1902
1902
|
return r.type = "CallExpression", e = new C(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1903
1903
|
}
|
|
1904
|
-
function
|
|
1904
|
+
function hn(e, t, n, r) {
|
|
1905
1905
|
if (!e.Ka)
|
|
1906
1906
|
throw Error("Unexpected call to createSetter");
|
|
1907
1907
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1908
1908
|
var i = e.ya();
|
|
1909
1909
|
return i.type = "CallExpression", e = new C(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1910
1910
|
}
|
|
1911
|
-
function
|
|
1912
|
-
return t == null ? e.Na : t instanceof O ? t : (e = e.s(
|
|
1911
|
+
function zt(e, t) {
|
|
1912
|
+
return t == null ? e.Na : t instanceof O ? t : (e = e.s(be(e, t)), e.data = t, e);
|
|
1913
1913
|
}
|
|
1914
1914
|
M.Xb = function() {
|
|
1915
1915
|
return this.N;
|
|
@@ -1923,7 +1923,7 @@ M.ec = function(e) {
|
|
|
1923
1923
|
function C(e, t) {
|
|
1924
1924
|
this.node = e, this.scope = t;
|
|
1925
1925
|
}
|
|
1926
|
-
function
|
|
1926
|
+
function yr(e, t, n) {
|
|
1927
1927
|
this.Va = e, this.S = t, this.object = n;
|
|
1928
1928
|
}
|
|
1929
1929
|
function O(e) {
|
|
@@ -1934,12 +1934,12 @@ M.xa = null;
|
|
|
1934
1934
|
M.H = "Object";
|
|
1935
1935
|
M.data = null;
|
|
1936
1936
|
M.toString = function() {
|
|
1937
|
-
if (!
|
|
1937
|
+
if (!Ze)
|
|
1938
1938
|
return "[object Interpreter.Object]";
|
|
1939
1939
|
if (!(this instanceof O))
|
|
1940
1940
|
return String(this);
|
|
1941
1941
|
if (this.H === "Array") {
|
|
1942
|
-
var e =
|
|
1942
|
+
var e = qn;
|
|
1943
1943
|
e.push(this);
|
|
1944
1944
|
try {
|
|
1945
1945
|
var t = [], n = this.h.length, r = !1;
|
|
@@ -1955,7 +1955,7 @@ M.toString = function() {
|
|
|
1955
1955
|
return t.join(",");
|
|
1956
1956
|
}
|
|
1957
1957
|
if (this.H === "Error") {
|
|
1958
|
-
if (e =
|
|
1958
|
+
if (e = qn, e.indexOf(this) !== -1)
|
|
1959
1959
|
return "[object Error]";
|
|
1960
1960
|
n = this;
|
|
1961
1961
|
do
|
|
@@ -1982,16 +1982,16 @@ M.toString = function() {
|
|
|
1982
1982
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1983
1983
|
};
|
|
1984
1984
|
M.valueOf = function() {
|
|
1985
|
-
return !
|
|
1985
|
+
return !Ze || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1986
1986
|
};
|
|
1987
|
-
function
|
|
1988
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = i, this.Db = ++
|
|
1987
|
+
function ki(e, t, n, r, i) {
|
|
1988
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = i, this.Db = ++Ci, this.time = 0;
|
|
1989
1989
|
}
|
|
1990
|
-
var
|
|
1990
|
+
var Ci = 0;
|
|
1991
1991
|
p.prototype.stepArrayExpression = function(e, t, n) {
|
|
1992
1992
|
n = n.elements;
|
|
1993
1993
|
var r = t.A || 0;
|
|
1994
|
-
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa =
|
|
1994
|
+
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Ue(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
1995
1995
|
if (n[r])
|
|
1996
1996
|
return t.A = r, new C(n[r], t.scope);
|
|
1997
1997
|
r++;
|
|
@@ -2002,7 +2002,7 @@ p.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2002
2002
|
if (!t.ja)
|
|
2003
2003
|
return t.ja = !0, t = new C(n.left, t.scope), t.sa = !0, t;
|
|
2004
2004
|
if (!t.Da)
|
|
2005
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e =
|
|
2005
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = dn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, st(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new C(n.right, t.scope));
|
|
2006
2006
|
if (t.ta)
|
|
2007
2007
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2008
2008
|
else {
|
|
@@ -2047,8 +2047,8 @@ p.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2047
2047
|
default:
|
|
2048
2048
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
2049
2049
|
}
|
|
2050
|
-
if (n =
|
|
2051
|
-
return t.ta = !0, t.ib = r,
|
|
2050
|
+
if (n = fn(this, t.Fa, r))
|
|
2051
|
+
return t.ta = !0, t.ib = r, hn(this, n, t.Fa, r);
|
|
2052
2052
|
e.pop(), e[e.length - 1].value = r;
|
|
2053
2053
|
}
|
|
2054
2054
|
};
|
|
@@ -2118,7 +2118,7 @@ p.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2118
2118
|
n = r >>> t;
|
|
2119
2119
|
break;
|
|
2120
2120
|
case "in":
|
|
2121
|
-
t instanceof O || w(this, this.j, "'in' expects an object, not '" + t + "'"), n =
|
|
2121
|
+
t instanceof O || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = St(this, t, r);
|
|
2122
2122
|
break;
|
|
2123
2123
|
case "instanceof":
|
|
2124
2124
|
q(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof O ? q(this, r, t) : !1;
|
|
@@ -2148,7 +2148,7 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2148
2148
|
t.ia = 2;
|
|
2149
2149
|
var i = t.value;
|
|
2150
2150
|
if (Array.isArray(i)) {
|
|
2151
|
-
if (t.U =
|
|
2151
|
+
if (t.U = dn(this, i), i[0] === We ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2152
2152
|
return t.ia = 1, st(this, i, t.value);
|
|
2153
2153
|
} else
|
|
2154
2154
|
t.U = i;
|
|
@@ -2159,7 +2159,7 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2159
2159
|
return new C(n.arguments[t.A++], t.scope);
|
|
2160
2160
|
if (n.type === "NewExpression") {
|
|
2161
2161
|
if (i instanceof O && !i.Ab || w(this, this.j, te(this, n.callee) + " is not a constructor"), i === this.qa)
|
|
2162
|
-
t.B =
|
|
2162
|
+
t.B = Ue(this);
|
|
2163
2163
|
else {
|
|
2164
2164
|
var a = i.h.prototype;
|
|
2165
2165
|
(typeof a != "object" || a === null) && (a = this.M), t.B = this.s(a);
|
|
@@ -2172,30 +2172,30 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2172
2172
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2173
2173
|
else {
|
|
2174
2174
|
if (t.eb = !0, i instanceof O || w(this, this.j, te(this, n.callee) + " is not a function"), e = i.node) {
|
|
2175
|
-
for (n =
|
|
2175
|
+
for (n = qt(this, e.body, i.Va), r = Ue(this), i = 0; i < t.F.length; i++)
|
|
2176
2176
|
this.g(r, i, t.F[i]);
|
|
2177
2177
|
for (this.g(n.object, "arguments", r), i = 0; i < e.oa.length; i++)
|
|
2178
2178
|
this.g(n.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2179
|
-
return n.S || (t.B =
|
|
2179
|
+
return n.S || (t.B = zt(this, t.B)), this.g(n.object, "this", t.B, nn), t.value = void 0, new C(e.body, n);
|
|
2180
2180
|
}
|
|
2181
2181
|
if (i.eval)
|
|
2182
2182
|
if (i = t.F[0], typeof i != "string")
|
|
2183
2183
|
t.value = i;
|
|
2184
2184
|
else {
|
|
2185
2185
|
try {
|
|
2186
|
-
r =
|
|
2186
|
+
r = De(String(i), "eval" + this.Hb++);
|
|
2187
2187
|
} catch (c) {
|
|
2188
2188
|
w(this, this.T, "Invalid code: " + c.message);
|
|
2189
2189
|
}
|
|
2190
|
-
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body,
|
|
2190
|
+
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body, xt(i, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = qt(this, r, n) : nt(this, r, n), this.value = void 0, new C(i, n);
|
|
2191
2191
|
}
|
|
2192
2192
|
else if (i.Ta)
|
|
2193
|
-
t.scope.S || (t.B =
|
|
2193
|
+
t.scope.S || (t.B = zt(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
2194
2194
|
else if (i.Za) {
|
|
2195
2195
|
var s = this;
|
|
2196
2196
|
r = i.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(c) {
|
|
2197
2197
|
t.value = c, s.za = !1;
|
|
2198
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2198
|
+
}), this.za = !0, t.scope.S || (t.B = zt(this, t.B)), i.Za.apply(t.B, r);
|
|
2199
2199
|
} else
|
|
2200
2200
|
w(this, this.j, te(this, n.callee) + " is not callable");
|
|
2201
2201
|
}
|
|
@@ -2266,18 +2266,18 @@ p.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2266
2266
|
break e;
|
|
2267
2267
|
}
|
|
2268
2268
|
}
|
|
2269
|
-
if (t.u =
|
|
2269
|
+
if (t.u = be(this, t.u), t.wa = null, t.u === null) {
|
|
2270
2270
|
e.pop();
|
|
2271
2271
|
return;
|
|
2272
2272
|
}
|
|
2273
2273
|
}
|
|
2274
2274
|
if (!t.wb)
|
|
2275
2275
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2276
|
-
t.pa = [
|
|
2276
|
+
t.pa = [We, e.fa[0].id.name];
|
|
2277
2277
|
else
|
|
2278
2278
|
return t.pa = null, t = new C(e, t.scope), t.sa = !0, t;
|
|
2279
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r =
|
|
2280
|
-
return
|
|
2279
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = fn(this, t.pa, e)))
|
|
2280
|
+
return hn(this, r, t.pa, e);
|
|
2281
2281
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2282
2282
|
return new C(n.body, t.scope);
|
|
2283
2283
|
};
|
|
@@ -2306,13 +2306,13 @@ p.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2306
2306
|
e.pop();
|
|
2307
2307
|
};
|
|
2308
2308
|
p.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2309
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e =
|
|
2309
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = cn(this, e)), t.value = sn(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, nn);
|
|
2310
2310
|
};
|
|
2311
2311
|
p.prototype.stepIdentifier = function(e, t, n) {
|
|
2312
2312
|
if (e.pop(), t.sa)
|
|
2313
|
-
e[e.length - 1].value = [
|
|
2313
|
+
e[e.length - 1].value = [We, n.name];
|
|
2314
2314
|
else {
|
|
2315
|
-
if (t =
|
|
2315
|
+
if (t = un(this, n.name), this.P)
|
|
2316
2316
|
return st(this, t, this.Na);
|
|
2317
2317
|
e[e.length - 1].value = t;
|
|
2318
2318
|
}
|
|
@@ -2322,7 +2322,7 @@ p.prototype.stepLabeledStatement = function(e, t, n) {
|
|
|
2322
2322
|
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new C(n.body, t.scope), t.labels = e, t;
|
|
2323
2323
|
};
|
|
2324
2324
|
p.prototype.stepLiteral = function(e, t, n) {
|
|
2325
|
-
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma),
|
|
2325
|
+
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), on(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2326
2326
|
};
|
|
2327
2327
|
p.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2328
2328
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
@@ -2373,7 +2373,7 @@ p.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2373
2373
|
return t.Pa = a, new C(i.value, t.scope);
|
|
2374
2374
|
}
|
|
2375
2375
|
for (s in t.Ja)
|
|
2376
|
-
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s,
|
|
2376
|
+
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, tt, {
|
|
2377
2377
|
configurable: !0,
|
|
2378
2378
|
enumerable: !0,
|
|
2379
2379
|
get: n.get,
|
|
@@ -2425,7 +2425,7 @@ p.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2425
2425
|
}
|
|
2426
2426
|
};
|
|
2427
2427
|
p.prototype.stepThisExpression = function(e) {
|
|
2428
|
-
e.pop(), e[e.length - 1].value =
|
|
2428
|
+
e.pop(), e[e.length - 1].value = un(this, "this");
|
|
2429
2429
|
};
|
|
2430
2430
|
p.prototype.stepThrowStatement = function(e, t, n) {
|
|
2431
2431
|
if (t.ka)
|
|
@@ -2437,7 +2437,7 @@ p.prototype.stepTryStatement = function(e, t, n) {
|
|
|
2437
2437
|
if (!t.Rb)
|
|
2438
2438
|
return t.Rb = !0, new C(n.block, t.scope);
|
|
2439
2439
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2440
|
-
return t.Tb = !0, e =
|
|
2440
|
+
return t.Tb = !0, e = cn(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new C(n.Ea.body, e);
|
|
2441
2441
|
if (!t.Sb && n.fb)
|
|
2442
2442
|
return t.Sb = !0, new C(n.fb, t.scope);
|
|
2443
2443
|
e.pop(), t.ea && at(this, t.ea.type, t.ea.value, t.ea.label);
|
|
@@ -2463,7 +2463,7 @@ p.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2463
2463
|
case "delete":
|
|
2464
2464
|
if (n = !0, Array.isArray(r)) {
|
|
2465
2465
|
var i = r[0];
|
|
2466
|
-
i ===
|
|
2466
|
+
i === We && (i = t.scope), r = String(r[1]);
|
|
2467
2467
|
try {
|
|
2468
2468
|
delete i.h[r];
|
|
2469
2469
|
} catch {
|
|
@@ -2487,7 +2487,7 @@ p.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2487
2487
|
if (!t.ja)
|
|
2488
2488
|
return t.ja = !0, e = new C(n.K, t.scope), e.sa = !0, e;
|
|
2489
2489
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2490
|
-
var r =
|
|
2490
|
+
var r = dn(this, t.Ga);
|
|
2491
2491
|
if (t.ma = r, this.P)
|
|
2492
2492
|
return t.Ba = !0, st(this, r, t.Ga);
|
|
2493
2493
|
}
|
|
@@ -2500,15 +2500,15 @@ p.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2500
2500
|
i = r - 1;
|
|
2501
2501
|
else
|
|
2502
2502
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2503
|
-
if (n = n.prefix ? i : r, r =
|
|
2504
|
-
return t.ta = !0, t.ib = n,
|
|
2503
|
+
if (n = n.prefix ? i : r, r = fn(this, t.Ga, i))
|
|
2504
|
+
return t.ta = !0, t.ib = n, hn(this, r, t.Ga, i);
|
|
2505
2505
|
e.pop(), e[e.length - 1].value = n;
|
|
2506
2506
|
}
|
|
2507
2507
|
};
|
|
2508
2508
|
p.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2509
2509
|
n = n.fa;
|
|
2510
2510
|
var r = t.A || 0, i = n[r];
|
|
2511
|
-
for (t.Bb && i && (
|
|
2511
|
+
for (t.Bb && i && (mr(this, i.id.name, t.value), t.Bb = !1, i = n[++r]); i; ) {
|
|
2512
2512
|
if (i.ua)
|
|
2513
2513
|
return t.A = r, t.Bb = !0, t.Pa = i.id.name, new C(i.ua, t.scope);
|
|
2514
2514
|
i = n[++r];
|
|
@@ -2516,10 +2516,10 @@ p.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2516
2516
|
e.pop();
|
|
2517
2517
|
};
|
|
2518
2518
|
p.prototype.stepWithStatement = function(e, t, n) {
|
|
2519
|
-
return t.Ca ? (e.pop(), e =
|
|
2519
|
+
return t.Ca ? (e.pop(), e = cn(this, t.scope, t.value), new C(n.body, e)) : (t.Ca = !0, new C(n.object, t.scope));
|
|
2520
2520
|
};
|
|
2521
2521
|
p.prototype.stepWhileStatement = p.prototype.stepDoWhileStatement;
|
|
2522
|
-
|
|
2522
|
+
we.Interpreter = p;
|
|
2523
2523
|
p.prototype.step = p.prototype.lb;
|
|
2524
2524
|
p.prototype.run = p.prototype.Eb;
|
|
2525
2525
|
p.prototype.appendCode = p.prototype.Jb;
|
|
@@ -2534,8 +2534,8 @@ p.prototype.pseudoToNative = p.prototype.R;
|
|
|
2534
2534
|
p.prototype.getGlobalScope = p.prototype.Xb;
|
|
2535
2535
|
p.prototype.getStateStack = p.prototype.Yb;
|
|
2536
2536
|
p.prototype.setStateStack = p.prototype.ec;
|
|
2537
|
-
p.VALUE_IN_DESCRIPTOR =
|
|
2538
|
-
const
|
|
2537
|
+
p.VALUE_IN_DESCRIPTOR = tt;
|
|
2538
|
+
const wi = (e) => e.split(`
|
|
2539
2539
|
`).map((t) => {
|
|
2540
2540
|
const n = t.trim();
|
|
2541
2541
|
if (t.includes("__awaiter"))
|
|
@@ -2548,7 +2548,7 @@ const Ci = (e) => e.split(`
|
|
|
2548
2548
|
${c}
|
|
2549
2549
|
`;
|
|
2550
2550
|
}).filter(Boolean).join(`
|
|
2551
|
-
`),
|
|
2551
|
+
`), er = (e) => e + "JSON", Ei = ({
|
|
2552
2552
|
builder: e,
|
|
2553
2553
|
context: t,
|
|
2554
2554
|
event: n,
|
|
@@ -2560,16 +2560,16 @@ const Ci = (e) => e.split(`
|
|
|
2560
2560
|
const c = {
|
|
2561
2561
|
...r,
|
|
2562
2562
|
...i
|
|
2563
|
-
}, f =
|
|
2563
|
+
}, f = ur({
|
|
2564
2564
|
builder: e,
|
|
2565
2565
|
context: t,
|
|
2566
2566
|
event: n,
|
|
2567
2567
|
state: c
|
|
2568
2568
|
}), g = f.map(([$]) => {
|
|
2569
|
-
const
|
|
2570
|
-
return `var ${$} = ${
|
|
2569
|
+
const N = er($);
|
|
2570
|
+
return `var ${$} = ${N} === undefined ? undefined : JSON.parse(${N});`;
|
|
2571
2571
|
}).join(`
|
|
2572
|
-
`), b =
|
|
2572
|
+
`), b = wi(s);
|
|
2573
2573
|
if (b === "") {
|
|
2574
2574
|
ot.warn("Skipping evaluation of empty code block.");
|
|
2575
2575
|
return;
|
|
@@ -2581,28 +2581,28 @@ function theFunction() {
|
|
|
2581
2581
|
${b}
|
|
2582
2582
|
}
|
|
2583
2583
|
theFunction();
|
|
2584
|
-
`, j = ($,
|
|
2585
|
-
const v =
|
|
2584
|
+
`, j = ($, N) => {
|
|
2585
|
+
const v = fr(c, $, N);
|
|
2586
2586
|
a == null || a(v);
|
|
2587
|
-
},
|
|
2588
|
-
f.forEach(([v,
|
|
2589
|
-
const X = JSON.stringify(
|
|
2590
|
-
$.setProperty(
|
|
2591
|
-
}), $.setProperty(
|
|
2592
|
-
}, V = new p(m,
|
|
2587
|
+
}, F = function($, N) {
|
|
2588
|
+
f.forEach(([v, W]) => {
|
|
2589
|
+
const X = JSON.stringify(W);
|
|
2590
|
+
$.setProperty(N, er(v), X);
|
|
2591
|
+
}), $.setProperty(N, "setRootState", $.createNativeFunction(j));
|
|
2592
|
+
}, V = new p(m, F);
|
|
2593
2593
|
return V.run(), V.pseudoToNative(V.value);
|
|
2594
2594
|
};
|
|
2595
|
-
function
|
|
2595
|
+
function Ii() {
|
|
2596
2596
|
var e;
|
|
2597
2597
|
return typeof process != "undefined" && yt((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2598
2598
|
}
|
|
2599
|
-
const
|
|
2599
|
+
const Ti = () => {
|
|
2600
2600
|
var r;
|
|
2601
|
-
if (!
|
|
2601
|
+
if (!Ii())
|
|
2602
2602
|
return !1;
|
|
2603
2603
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2604
2604
|
return e && t && !n ? (ot.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;
|
|
2605
|
-
},
|
|
2605
|
+
}, Ai = (e) => Fe() || Ti() ? si(e) : Ei(e), me = class me {
|
|
2606
2606
|
static getCacheKey(t) {
|
|
2607
2607
|
return JSON.stringify({
|
|
2608
2608
|
...t,
|
|
@@ -2612,17 +2612,17 @@ const Ii = () => {
|
|
|
2612
2612
|
});
|
|
2613
2613
|
}
|
|
2614
2614
|
static getCachedValue(t) {
|
|
2615
|
-
return
|
|
2615
|
+
return me.cache.get(t);
|
|
2616
2616
|
}
|
|
2617
2617
|
static setCachedValue(t, n) {
|
|
2618
|
-
|
|
2618
|
+
me.cache.size > 20 && me.cache.delete(me.cache.keys().next().value), me.cache.set(t, {
|
|
2619
2619
|
value: n
|
|
2620
2620
|
});
|
|
2621
2621
|
}
|
|
2622
2622
|
};
|
|
2623
|
-
|
|
2624
|
-
let
|
|
2625
|
-
function
|
|
2623
|
+
Gt(me, "cacheLimit", 20), Gt(me, "cache", /* @__PURE__ */ new Map());
|
|
2624
|
+
let Me = me;
|
|
2625
|
+
function rt({
|
|
2626
2626
|
code: e,
|
|
2627
2627
|
context: t,
|
|
2628
2628
|
localState: n,
|
|
@@ -2635,10 +2635,10 @@ function it({
|
|
|
2635
2635
|
if (e === "")
|
|
2636
2636
|
return;
|
|
2637
2637
|
const f = {
|
|
2638
|
-
code:
|
|
2638
|
+
code: ai(e, {
|
|
2639
2639
|
isExpression: s
|
|
2640
2640
|
}),
|
|
2641
|
-
builder:
|
|
2641
|
+
builder: oi(),
|
|
2642
2642
|
context: t,
|
|
2643
2643
|
event: a,
|
|
2644
2644
|
rootSetState: i,
|
|
@@ -2646,15 +2646,15 @@ function it({
|
|
|
2646
2646
|
localState: n
|
|
2647
2647
|
};
|
|
2648
2648
|
if (c) {
|
|
2649
|
-
const g =
|
|
2649
|
+
const g = Me.getCacheKey(f), b = Me.getCachedValue(g);
|
|
2650
2650
|
if (b)
|
|
2651
2651
|
return b.value;
|
|
2652
2652
|
}
|
|
2653
2653
|
try {
|
|
2654
|
-
const g =
|
|
2654
|
+
const g = Ai(f);
|
|
2655
2655
|
if (c) {
|
|
2656
|
-
const b =
|
|
2657
|
-
|
|
2656
|
+
const b = Me.getCacheKey(f);
|
|
2657
|
+
Me.setCachedValue(b, g);
|
|
2658
2658
|
}
|
|
2659
2659
|
return g;
|
|
2660
2660
|
} catch (g) {
|
|
@@ -2664,7 +2664,7 @@ function it({
|
|
|
2664
2664
|
return;
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
|
-
const
|
|
2667
|
+
const ji = ({
|
|
2668
2668
|
block: e,
|
|
2669
2669
|
context: t,
|
|
2670
2670
|
localState: n,
|
|
@@ -2673,7 +2673,7 @@ const Ai = ({
|
|
|
2673
2673
|
}) => {
|
|
2674
2674
|
if (!e.bindings)
|
|
2675
2675
|
return e;
|
|
2676
|
-
const a =
|
|
2676
|
+
const a = Qt(e), s = {
|
|
2677
2677
|
...a,
|
|
2678
2678
|
properties: {
|
|
2679
2679
|
...a.properties
|
|
@@ -2683,7 +2683,7 @@ const Ai = ({
|
|
|
2683
2683
|
}
|
|
2684
2684
|
};
|
|
2685
2685
|
for (const c in e.bindings) {
|
|
2686
|
-
const f = e.bindings[c], g =
|
|
2686
|
+
const f = e.bindings[c], g = rt({
|
|
2687
2687
|
code: f,
|
|
2688
2688
|
localState: n,
|
|
2689
2689
|
rootState: r,
|
|
@@ -2691,7 +2691,7 @@ const Ai = ({
|
|
|
2691
2691
|
context: t,
|
|
2692
2692
|
enableCache: !0
|
|
2693
2693
|
});
|
|
2694
|
-
|
|
2694
|
+
fr(s, c, g);
|
|
2695
2695
|
}
|
|
2696
2696
|
return s;
|
|
2697
2697
|
};
|
|
@@ -2704,7 +2704,7 @@ function bt({
|
|
|
2704
2704
|
rootSetState: a
|
|
2705
2705
|
}) {
|
|
2706
2706
|
const s = e;
|
|
2707
|
-
return n ?
|
|
2707
|
+
return n ? ji({
|
|
2708
2708
|
block: s,
|
|
2709
2709
|
localState: r,
|
|
2710
2710
|
rootState: i,
|
|
@@ -2712,42 +2712,42 @@ function bt({
|
|
|
2712
2712
|
context: t
|
|
2713
2713
|
}) : s;
|
|
2714
2714
|
}
|
|
2715
|
-
const
|
|
2715
|
+
const pn = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", vr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2716
2716
|
if (typeof r == "string")
|
|
2717
|
-
return `${
|
|
2718
|
-
}).filter(yt),
|
|
2717
|
+
return `${pn(n)}: ${r};`;
|
|
2718
|
+
}).filter(yt), Ri = (e) => vr(e).join(`
|
|
2719
2719
|
`), mt = ({
|
|
2720
2720
|
mediaQuery: e,
|
|
2721
2721
|
className: t,
|
|
2722
2722
|
styles: n
|
|
2723
2723
|
}) => {
|
|
2724
2724
|
const r = `.${t} {
|
|
2725
|
-
${
|
|
2725
|
+
${Ri(n)}
|
|
2726
2726
|
}`;
|
|
2727
2727
|
return e ? `${e} {
|
|
2728
2728
|
${r}
|
|
2729
2729
|
}` : r;
|
|
2730
2730
|
};
|
|
2731
|
-
function
|
|
2731
|
+
function Oi({
|
|
2732
2732
|
style: e
|
|
2733
2733
|
}) {
|
|
2734
2734
|
return e;
|
|
2735
2735
|
}
|
|
2736
|
-
const
|
|
2736
|
+
const Pi = ({
|
|
2737
2737
|
block: e,
|
|
2738
2738
|
context: t
|
|
2739
|
-
}) =>
|
|
2739
|
+
}) => br(Oi({
|
|
2740
2740
|
style: e.style || {},
|
|
2741
2741
|
context: t,
|
|
2742
2742
|
block: e
|
|
2743
2743
|
}));
|
|
2744
|
-
function
|
|
2745
|
-
switch (
|
|
2744
|
+
function br(e) {
|
|
2745
|
+
switch (it) {
|
|
2746
2746
|
case "svelte":
|
|
2747
2747
|
case "vue":
|
|
2748
2748
|
case "solid":
|
|
2749
2749
|
case "angular":
|
|
2750
|
-
return
|
|
2750
|
+
return vr(e).join(" ");
|
|
2751
2751
|
case "qwik":
|
|
2752
2752
|
case "reactNative":
|
|
2753
2753
|
case "react":
|
|
@@ -2777,7 +2777,7 @@ const Ni = ({
|
|
|
2777
2777
|
console.warn(`
|
|
2778
2778
|
Could not find a registered component named "${r}".
|
|
2779
2779
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2780
|
-
},
|
|
2780
|
+
}, Bi = ({
|
|
2781
2781
|
block: e,
|
|
2782
2782
|
context: t
|
|
2783
2783
|
}) => {
|
|
@@ -2787,7 +2787,7 @@ const Ni = ({
|
|
|
2787
2787
|
} = e;
|
|
2788
2788
|
if (!(n != null && n.collection))
|
|
2789
2789
|
return;
|
|
2790
|
-
const i =
|
|
2790
|
+
const i = rt({
|
|
2791
2791
|
code: n.collection,
|
|
2792
2792
|
localState: t.localState,
|
|
2793
2793
|
rootState: t.rootState,
|
|
@@ -2811,15 +2811,23 @@ const Ni = ({
|
|
|
2811
2811
|
},
|
|
2812
2812
|
block: r
|
|
2813
2813
|
}));
|
|
2814
|
-
},
|
|
2814
|
+
}, kt = (e) => ({
|
|
2815
|
+
// once we bump to a major version, toggle this to `false`.
|
|
2816
|
+
builderBlock: !0,
|
|
2817
|
+
// once we bump to a major version, toggle this to `false`.
|
|
2818
|
+
builderContext: !0,
|
|
2819
|
+
builderComponents: !1,
|
|
2820
|
+
builderLinkComponent: !1,
|
|
2821
|
+
...e
|
|
2822
|
+
}), Li = (e, t) => e ? kt(e.shouldReceiveBuilderProps).builderLinkComponent ? {
|
|
2815
2823
|
builderLinkComponent: t
|
|
2816
|
-
} : {},
|
|
2824
|
+
} : {} : {}, Mi = (e, t) => e ? kt(e.shouldReceiveBuilderProps).builderComponents ? {
|
|
2817
2825
|
builderComponents: t
|
|
2818
|
-
} : {},
|
|
2826
|
+
} : {} : {}, Fi = (e, t) => e ? kt(e.shouldReceiveBuilderProps).builderBlock ? {
|
|
2819
2827
|
builderBlock: t
|
|
2820
|
-
} : {},
|
|
2828
|
+
} : {} : {}, Di = (e, t) => e ? kt(e.shouldReceiveBuilderProps).builderContext ? {
|
|
2821
2829
|
builderContext: t
|
|
2822
|
-
} : {},
|
|
2830
|
+
} : {} : {}, xr = {
|
|
2823
2831
|
small: {
|
|
2824
2832
|
min: 320,
|
|
2825
2833
|
default: 321,
|
|
@@ -2835,11 +2843,11 @@ const Ni = ({
|
|
|
2835
2843
|
default: 991,
|
|
2836
2844
|
max: 1200
|
|
2837
2845
|
}
|
|
2838
|
-
},
|
|
2846
|
+
}, tr = (e, t = xr) => `@media (max-width: ${t[e].max}px)`, Sr = ({
|
|
2839
2847
|
small: e,
|
|
2840
2848
|
medium: t
|
|
2841
2849
|
}) => {
|
|
2842
|
-
const n =
|
|
2850
|
+
const n = Qt(xr);
|
|
2843
2851
|
if (!e || !t)
|
|
2844
2852
|
return n;
|
|
2845
2853
|
const r = Math.floor(e / 2);
|
|
@@ -2862,7 +2870,7 @@ const Ni = ({
|
|
|
2862
2870
|
default: a + 1
|
|
2863
2871
|
}, n;
|
|
2864
2872
|
};
|
|
2865
|
-
function
|
|
2873
|
+
function Ct(e) {
|
|
2866
2874
|
return /* @__PURE__ */ y(
|
|
2867
2875
|
"style",
|
|
2868
2876
|
{
|
|
@@ -2871,7 +2879,7 @@ function kt(e) {
|
|
|
2871
2879
|
}
|
|
2872
2880
|
);
|
|
2873
2881
|
}
|
|
2874
|
-
function
|
|
2882
|
+
function Ui(e) {
|
|
2875
2883
|
const t = function() {
|
|
2876
2884
|
const i = bt({
|
|
2877
2885
|
block: e.block,
|
|
@@ -2883,7 +2891,7 @@ function Di(e) {
|
|
|
2883
2891
|
});
|
|
2884
2892
|
return yt(i.hide) ? !i.hide : yt(i.show) ? i.show : !0;
|
|
2885
2893
|
}, n = function() {
|
|
2886
|
-
var
|
|
2894
|
+
var N, v, W;
|
|
2887
2895
|
const i = bt({
|
|
2888
2896
|
block: e.block,
|
|
2889
2897
|
localState: e.context.localState,
|
|
@@ -2892,55 +2900,55 @@ function Di(e) {
|
|
|
2892
2900
|
context: e.context.context,
|
|
2893
2901
|
shouldEvaluateBindings: !0
|
|
2894
2902
|
}), a = i.responsiveStyles, s = e.context.content, c = Sr(
|
|
2895
|
-
((
|
|
2903
|
+
((N = s == null ? void 0 : s.meta) == null ? void 0 : N.breakpoints) || {}
|
|
2896
2904
|
), f = a == null ? void 0 : a.large, g = a == null ? void 0 : a.medium, b = a == null ? void 0 : a.small, m = i.id;
|
|
2897
2905
|
if (!m)
|
|
2898
2906
|
return "";
|
|
2899
2907
|
const j = f ? mt({
|
|
2900
2908
|
className: m,
|
|
2901
2909
|
styles: f
|
|
2902
|
-
}) : "",
|
|
2910
|
+
}) : "", F = g ? mt({
|
|
2903
2911
|
className: m,
|
|
2904
2912
|
styles: g,
|
|
2905
|
-
mediaQuery:
|
|
2913
|
+
mediaQuery: tr(
|
|
2906
2914
|
"medium",
|
|
2907
2915
|
c
|
|
2908
2916
|
)
|
|
2909
2917
|
}) : "", V = b ? mt({
|
|
2910
2918
|
className: m,
|
|
2911
2919
|
styles: b,
|
|
2912
|
-
mediaQuery:
|
|
2920
|
+
mediaQuery: tr(
|
|
2913
2921
|
"small",
|
|
2914
2922
|
c
|
|
2915
2923
|
)
|
|
2916
|
-
}) : "",
|
|
2924
|
+
}) : "", L = i.animations && i.animations.find((X) => X.trigger === "hover");
|
|
2917
2925
|
let $ = "";
|
|
2918
|
-
if (
|
|
2919
|
-
const X = ((
|
|
2926
|
+
if (L) {
|
|
2927
|
+
const X = ((W = (v = L.steps) == null ? void 0 : v[1]) == null ? void 0 : W.styles) || {};
|
|
2920
2928
|
$ = mt({
|
|
2921
2929
|
className: `${m}:hover`,
|
|
2922
2930
|
styles: {
|
|
2923
2931
|
...X,
|
|
2924
|
-
transition: `all ${
|
|
2925
|
-
|
|
2932
|
+
transition: `all ${L.duration}s ${pn(
|
|
2933
|
+
L.easing
|
|
2926
2934
|
)}`,
|
|
2927
|
-
transitionDelay:
|
|
2935
|
+
transitionDelay: L.delay ? `${L.delay}s` : "0s"
|
|
2928
2936
|
}
|
|
2929
2937
|
}) || "";
|
|
2930
2938
|
}
|
|
2931
2939
|
return [
|
|
2932
2940
|
j,
|
|
2933
|
-
|
|
2941
|
+
F,
|
|
2934
2942
|
V,
|
|
2935
2943
|
$
|
|
2936
2944
|
].join(" ");
|
|
2937
2945
|
};
|
|
2938
|
-
return /* @__PURE__ */ y(K, { children: n() && t() ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(
|
|
2946
|
+
return /* @__PURE__ */ y(K, { children: n() && t() ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(Ct, { id: "builderio-block", styles: n() }) }) : null });
|
|
2939
2947
|
}
|
|
2940
2948
|
function Wi(e) {
|
|
2941
2949
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2942
2950
|
}
|
|
2943
|
-
const
|
|
2951
|
+
const Vi = (e) => `on${Wi(e)}`, _i = (e, t) => (n) => rt({
|
|
2944
2952
|
code: e,
|
|
2945
2953
|
context: t.context,
|
|
2946
2954
|
localState: t.localState,
|
|
@@ -2950,16 +2958,16 @@ const Li = (e) => `on${Wi(e)}`, Vi = (e, t) => (n) => it({
|
|
|
2950
2958
|
isExpression: !1,
|
|
2951
2959
|
enableCache: !0
|
|
2952
2960
|
});
|
|
2953
|
-
function
|
|
2961
|
+
function kr(e) {
|
|
2954
2962
|
var r;
|
|
2955
2963
|
const t = {}, n = (r = e.block.actions) != null ? r : {};
|
|
2956
2964
|
for (const i in n) {
|
|
2957
2965
|
if (!n.hasOwnProperty(i))
|
|
2958
2966
|
continue;
|
|
2959
2967
|
const a = n[i];
|
|
2960
|
-
let s =
|
|
2968
|
+
let s = Vi(i);
|
|
2961
2969
|
if (e.stripPrefix)
|
|
2962
|
-
switch (
|
|
2970
|
+
switch (it) {
|
|
2963
2971
|
case "vue":
|
|
2964
2972
|
s = s.replace("v-on:", "");
|
|
2965
2973
|
break;
|
|
@@ -2967,49 +2975,49 @@ function xr(e) {
|
|
|
2967
2975
|
s = s.replace("on:", "");
|
|
2968
2976
|
break;
|
|
2969
2977
|
}
|
|
2970
|
-
t[s] =
|
|
2978
|
+
t[s] = _i(a, e);
|
|
2971
2979
|
}
|
|
2972
2980
|
return t;
|
|
2973
2981
|
}
|
|
2974
|
-
function
|
|
2982
|
+
function $i({
|
|
2975
2983
|
properties: e
|
|
2976
2984
|
}) {
|
|
2977
2985
|
return e;
|
|
2978
2986
|
}
|
|
2979
|
-
const
|
|
2987
|
+
const Hi = (e) => ({
|
|
2980
2988
|
href: e.href
|
|
2981
2989
|
});
|
|
2982
|
-
function
|
|
2990
|
+
function mn({
|
|
2983
2991
|
block: e,
|
|
2984
2992
|
context: t
|
|
2985
2993
|
}) {
|
|
2986
2994
|
var r;
|
|
2987
2995
|
const n = {
|
|
2988
|
-
|
|
2996
|
+
...Hi(e),
|
|
2989
2997
|
...e.properties,
|
|
2990
2998
|
"builder-id": e.id,
|
|
2991
|
-
style:
|
|
2999
|
+
style: Pi({
|
|
2992
3000
|
block: e,
|
|
2993
3001
|
context: t
|
|
2994
3002
|
}),
|
|
2995
|
-
[
|
|
3003
|
+
[et()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
2996
3004
|
};
|
|
2997
|
-
return
|
|
3005
|
+
return $i({
|
|
2998
3006
|
properties: n,
|
|
2999
3007
|
context: t,
|
|
3000
3008
|
block: e
|
|
3001
3009
|
});
|
|
3002
3010
|
}
|
|
3003
|
-
function
|
|
3011
|
+
function Ki(e) {
|
|
3004
3012
|
return /* @__PURE__ */ y(
|
|
3005
|
-
|
|
3013
|
+
tn,
|
|
3006
3014
|
{
|
|
3007
3015
|
TagName: e.Wrapper,
|
|
3008
|
-
attributes:
|
|
3016
|
+
attributes: mn({
|
|
3009
3017
|
block: e.block,
|
|
3010
3018
|
context: e.context
|
|
3011
3019
|
}),
|
|
3012
|
-
actionAttributes:
|
|
3020
|
+
actionAttributes: kr({
|
|
3013
3021
|
block: e.block,
|
|
3014
3022
|
rootState: e.context.rootState,
|
|
3015
3023
|
rootSetState: e.context.rootSetState,
|
|
@@ -3021,14 +3029,14 @@ function Hi(e) {
|
|
|
3021
3029
|
}
|
|
3022
3030
|
);
|
|
3023
3031
|
}
|
|
3024
|
-
function
|
|
3032
|
+
function Gi(e) {
|
|
3025
3033
|
function t() {
|
|
3026
3034
|
return e.includeBlockProps ? {
|
|
3027
|
-
...
|
|
3035
|
+
...mn({
|
|
3028
3036
|
block: e.block,
|
|
3029
3037
|
context: e.context
|
|
3030
3038
|
}),
|
|
3031
|
-
...
|
|
3039
|
+
...kr({
|
|
3032
3040
|
block: e.block,
|
|
3033
3041
|
rootState: e.context.rootState,
|
|
3034
3042
|
rootSetState: e.context.rootSetState,
|
|
@@ -3039,7 +3047,7 @@ function Ki(e) {
|
|
|
3039
3047
|
}
|
|
3040
3048
|
return /* @__PURE__ */ y(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
3041
3049
|
}
|
|
3042
|
-
const
|
|
3050
|
+
const zi = ({
|
|
3043
3051
|
componentOptions: e,
|
|
3044
3052
|
builderBlock: t,
|
|
3045
3053
|
context: n,
|
|
@@ -3055,7 +3063,7 @@ const Gi = ({
|
|
|
3055
3063
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
3056
3064
|
*/
|
|
3057
3065
|
...i ? {
|
|
3058
|
-
attributes:
|
|
3066
|
+
attributes: mn({
|
|
3059
3067
|
block: t,
|
|
3060
3068
|
context: s
|
|
3061
3069
|
})
|
|
@@ -3069,13 +3077,13 @@ const Gi = ({
|
|
|
3069
3077
|
includeBlockProps: i
|
|
3070
3078
|
} : c;
|
|
3071
3079
|
};
|
|
3072
|
-
function
|
|
3080
|
+
function nr(e) {
|
|
3073
3081
|
var n;
|
|
3074
|
-
const t = e.isInteractive ?
|
|
3082
|
+
const t = e.isInteractive ? Gi : e.componentRef;
|
|
3075
3083
|
return /* @__PURE__ */ y(K, { children: e.componentRef ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(
|
|
3076
3084
|
t,
|
|
3077
3085
|
{
|
|
3078
|
-
...
|
|
3086
|
+
...zi({
|
|
3079
3087
|
componentOptions: e.componentOptions,
|
|
3080
3088
|
builderBlock: e.builderBlock,
|
|
3081
3089
|
context: e.context,
|
|
@@ -3086,7 +3094,7 @@ function tr(e) {
|
|
|
3086
3094
|
contextValue: e.context
|
|
3087
3095
|
}),
|
|
3088
3096
|
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */ y(
|
|
3089
|
-
|
|
3097
|
+
wt,
|
|
3090
3098
|
{
|
|
3091
3099
|
block: r,
|
|
3092
3100
|
context: e.context,
|
|
@@ -3098,10 +3106,10 @@ function tr(e) {
|
|
|
3098
3106
|
}
|
|
3099
3107
|
) }) : null });
|
|
3100
3108
|
}
|
|
3101
|
-
function
|
|
3109
|
+
function Yi(e) {
|
|
3102
3110
|
const t = e.repeatContext;
|
|
3103
3111
|
return /* @__PURE__ */ y(
|
|
3104
|
-
|
|
3112
|
+
wt,
|
|
3105
3113
|
{
|
|
3106
3114
|
block: e.block,
|
|
3107
3115
|
context: t,
|
|
@@ -3110,7 +3118,7 @@ function zi(e) {
|
|
|
3110
3118
|
}
|
|
3111
3119
|
);
|
|
3112
3120
|
}
|
|
3113
|
-
function
|
|
3121
|
+
function wt(e) {
|
|
3114
3122
|
var f, g, b;
|
|
3115
3123
|
const t = function() {
|
|
3116
3124
|
return Ni({
|
|
@@ -3119,7 +3127,7 @@ function Ct(e) {
|
|
|
3119
3127
|
registeredComponents: e.registeredComponents
|
|
3120
3128
|
});
|
|
3121
3129
|
}, n = function() {
|
|
3122
|
-
return
|
|
3130
|
+
return Bi({
|
|
3123
3131
|
block: e.block,
|
|
3124
3132
|
context: e.context
|
|
3125
3133
|
});
|
|
@@ -3134,28 +3142,28 @@ function Ct(e) {
|
|
|
3134
3142
|
shouldEvaluateBindings: !0
|
|
3135
3143
|
});
|
|
3136
3144
|
}, i = function() {
|
|
3137
|
-
var
|
|
3138
|
-
return e.block.tagName === "a" || ((
|
|
3145
|
+
var F;
|
|
3146
|
+
return e.block.tagName === "a" || ((F = r().properties) == null ? void 0 : F.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
3139
3147
|
}, a = function() {
|
|
3140
|
-
var V,
|
|
3148
|
+
var V, L;
|
|
3141
3149
|
if ((V = e.block.repeat) != null && V.collection)
|
|
3142
|
-
return !!((
|
|
3150
|
+
return !!((L = n()) != null && L.length);
|
|
3143
3151
|
const j = "hide" in r() ? r().hide : !1;
|
|
3144
3152
|
return ("show" in r() ? r().show : !0) && !j;
|
|
3145
3153
|
}, s = function() {
|
|
3146
|
-
var
|
|
3147
|
-
return !((
|
|
3154
|
+
var F, V;
|
|
3155
|
+
return !((F = t()) != null && F.component) && !n() ? (V = r().children) != null ? V : [] : [];
|
|
3148
3156
|
}, c = function() {
|
|
3149
|
-
var j,
|
|
3157
|
+
var j, F, V, L;
|
|
3150
3158
|
return {
|
|
3151
3159
|
blockChildren: (j = r().children) != null ? j : [],
|
|
3152
|
-
componentRef: (
|
|
3160
|
+
componentRef: (F = t()) == null ? void 0 : F.component,
|
|
3153
3161
|
componentOptions: {
|
|
3154
|
-
...
|
|
3155
|
-
...
|
|
3156
|
-
...
|
|
3157
|
-
...
|
|
3158
|
-
...
|
|
3162
|
+
...ii(r()),
|
|
3163
|
+
...Fi(t(), r()),
|
|
3164
|
+
...Di(t(), e.context),
|
|
3165
|
+
...Li(t(), e.linkComponent),
|
|
3166
|
+
...Mi(
|
|
3159
3167
|
t(),
|
|
3160
3168
|
e.registeredComponents
|
|
3161
3169
|
)
|
|
@@ -3165,13 +3173,13 @@ function Ct(e) {
|
|
|
3165
3173
|
registeredComponents: e.registeredComponents,
|
|
3166
3174
|
builderBlock: r(),
|
|
3167
3175
|
includeBlockProps: ((V = t()) == null ? void 0 : V.noWrap) === !0,
|
|
3168
|
-
isInteractive: !((
|
|
3176
|
+
isInteractive: !((L = t()) != null && L.isRSC)
|
|
3169
3177
|
};
|
|
3170
3178
|
};
|
|
3171
3179
|
return /* @__PURE__ */ y(K, { children: a() ? /* @__PURE__ */ se(K, { children: [
|
|
3172
|
-
/* @__PURE__ */ y(
|
|
3180
|
+
/* @__PURE__ */ y(Ui, { block: e.block, context: e.context }),
|
|
3173
3181
|
(f = t()) != null && f.noWrap ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(
|
|
3174
|
-
|
|
3182
|
+
nr,
|
|
3175
3183
|
{
|
|
3176
3184
|
componentRef: c().componentRef,
|
|
3177
3185
|
componentOptions: c().componentOptions,
|
|
@@ -3184,7 +3192,7 @@ function Ct(e) {
|
|
|
3184
3192
|
isInteractive: c().isInteractive
|
|
3185
3193
|
}
|
|
3186
3194
|
) }) : /* @__PURE__ */ y(K, { children: n() ? /* @__PURE__ */ y(K, { children: (b = n()) == null ? void 0 : b.map((m, j) => /* @__PURE__ */ y(
|
|
3187
|
-
|
|
3195
|
+
Yi,
|
|
3188
3196
|
{
|
|
3189
3197
|
repeatContext: m.context,
|
|
3190
3198
|
block: m.block,
|
|
@@ -3193,14 +3201,14 @@ function Ct(e) {
|
|
|
3193
3201
|
},
|
|
3194
3202
|
j
|
|
3195
3203
|
)) }) : /* @__PURE__ */ se(
|
|
3196
|
-
|
|
3204
|
+
Ki,
|
|
3197
3205
|
{
|
|
3198
3206
|
Wrapper: i(),
|
|
3199
3207
|
block: r(),
|
|
3200
3208
|
context: e.context,
|
|
3201
3209
|
children: [
|
|
3202
3210
|
/* @__PURE__ */ y(
|
|
3203
|
-
|
|
3211
|
+
nr,
|
|
3204
3212
|
{
|
|
3205
3213
|
componentRef: c().componentRef,
|
|
3206
3214
|
componentOptions: c().componentOptions,
|
|
@@ -3214,7 +3222,7 @@ function Ct(e) {
|
|
|
3214
3222
|
}
|
|
3215
3223
|
),
|
|
3216
3224
|
(g = s()) == null ? void 0 : g.map((m) => /* @__PURE__ */ y(
|
|
3217
|
-
|
|
3225
|
+
wt,
|
|
3218
3226
|
{
|
|
3219
3227
|
block: m,
|
|
3220
3228
|
registeredComponents: e.registeredComponents,
|
|
@@ -3228,14 +3236,14 @@ function Ct(e) {
|
|
|
3228
3236
|
) })
|
|
3229
3237
|
] }) : null });
|
|
3230
3238
|
}
|
|
3231
|
-
function
|
|
3239
|
+
function Xi(e) {
|
|
3232
3240
|
function t() {
|
|
3233
3241
|
var i;
|
|
3234
3242
|
return "builder-blocks" + ((i = e.blocks) != null && i.length ? "" : " no-blocks");
|
|
3235
3243
|
}
|
|
3236
3244
|
function n() {
|
|
3237
3245
|
var i, a;
|
|
3238
|
-
|
|
3246
|
+
Ce() && !((i = e.blocks) != null && i.length) && ((a = window.parent) == null || a.postMessage(
|
|
3239
3247
|
{
|
|
3240
3248
|
type: "builder.clickEmptyBlocks",
|
|
3241
3249
|
data: {
|
|
@@ -3248,7 +3256,7 @@ function Yi(e) {
|
|
|
3248
3256
|
}
|
|
3249
3257
|
function r() {
|
|
3250
3258
|
var i, a;
|
|
3251
|
-
|
|
3259
|
+
Ce() && !((i = e.blocks) != null && i.length) && ((a = window.parent) == null || a.postMessage(
|
|
3252
3260
|
{
|
|
3253
3261
|
type: "builder.hoverEmptyBlocks",
|
|
3254
3262
|
data: {
|
|
@@ -3281,10 +3289,10 @@ function Yi(e) {
|
|
|
3281
3289
|
}` })
|
|
3282
3290
|
] });
|
|
3283
3291
|
}
|
|
3284
|
-
function
|
|
3292
|
+
function gn(e) {
|
|
3285
3293
|
var t, n, r;
|
|
3286
3294
|
return /* @__PURE__ */ y(
|
|
3287
|
-
|
|
3295
|
+
Xi,
|
|
3288
3296
|
{
|
|
3289
3297
|
blocks: e.blocks,
|
|
3290
3298
|
parent: e.parent,
|
|
@@ -3293,7 +3301,7 @@ function mn(e) {
|
|
|
3293
3301
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
3294
3302
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
3295
3303
|
children: e.blocks ? /* @__PURE__ */ y(K, { children: (r = e.blocks) == null ? void 0 : r.map((i) => /* @__PURE__ */ y(
|
|
3296
|
-
|
|
3304
|
+
wt,
|
|
3297
3305
|
{
|
|
3298
3306
|
block: i,
|
|
3299
3307
|
linkComponent: e.linkComponent,
|
|
@@ -3305,27 +3313,27 @@ function mn(e) {
|
|
|
3305
3313
|
}
|
|
3306
3314
|
);
|
|
3307
3315
|
}
|
|
3308
|
-
const
|
|
3309
|
-
function
|
|
3310
|
-
var
|
|
3316
|
+
const Ji = (e) => `builder-columns ${e}-breakpoints`;
|
|
3317
|
+
function qi(e) {
|
|
3318
|
+
var L, $;
|
|
3311
3319
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", i = function(v) {
|
|
3312
3320
|
return v.link ? e.builderLinkComponent || "a" : "div";
|
|
3313
3321
|
}, a = function(v) {
|
|
3314
|
-
var
|
|
3315
|
-
return ((
|
|
3322
|
+
var W;
|
|
3323
|
+
return ((W = n[v]) == null ? void 0 : W.width) || 100 / n.length;
|
|
3316
3324
|
}, s = function(v) {
|
|
3317
|
-
const
|
|
3318
|
-
return `calc(${a(v)}% - ${
|
|
3325
|
+
const W = t * (n.length - 1) / n.length;
|
|
3326
|
+
return `calc(${a(v)}% - ${W}px)`;
|
|
3319
3327
|
}, c = function({
|
|
3320
3328
|
stackedStyle: v,
|
|
3321
|
-
desktopStyle:
|
|
3329
|
+
desktopStyle: W
|
|
3322
3330
|
}) {
|
|
3323
|
-
return r === "tablet" ? v :
|
|
3331
|
+
return r === "tablet" ? v : W;
|
|
3324
3332
|
}, f = function({
|
|
3325
3333
|
stackedStyle: v,
|
|
3326
|
-
desktopStyle:
|
|
3334
|
+
desktopStyle: W
|
|
3327
3335
|
}) {
|
|
3328
|
-
return r === "never" ?
|
|
3336
|
+
return r === "never" ? W : v;
|
|
3329
3337
|
}, g = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", b = function() {
|
|
3330
3338
|
return {
|
|
3331
3339
|
"--flex-dir": g,
|
|
@@ -3335,7 +3343,7 @@ function Ji(e) {
|
|
|
3335
3343
|
})
|
|
3336
3344
|
};
|
|
3337
3345
|
}, m = function(v) {
|
|
3338
|
-
const
|
|
3346
|
+
const W = v === 0 ? 0 : t, X = s(v), oe = `${W}px`, _ = "100%", Q = 0;
|
|
3339
3347
|
return {
|
|
3340
3348
|
...{
|
|
3341
3349
|
display: "flex",
|
|
@@ -3366,7 +3374,7 @@ function Ji(e) {
|
|
|
3366
3374
|
return Sr(
|
|
3367
3375
|
((oe = (X = e.builderContext.content) == null ? void 0 : X.meta) == null ? void 0 : oe.breakpoints) || {}
|
|
3368
3376
|
)[v].max;
|
|
3369
|
-
},
|
|
3377
|
+
}, F = function() {
|
|
3370
3378
|
return `
|
|
3371
3379
|
@media (max-width: ${j("medium")}px) {
|
|
3372
3380
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -3392,31 +3400,31 @@ function Ji(e) {
|
|
|
3392
3400
|
}
|
|
3393
3401
|
},
|
|
3394
3402
|
`;
|
|
3395
|
-
}, V = function(v,
|
|
3403
|
+
}, V = function(v, W) {
|
|
3396
3404
|
return {
|
|
3397
3405
|
...v.link ? {
|
|
3398
3406
|
href: v.link
|
|
3399
3407
|
} : {},
|
|
3400
|
-
[
|
|
3401
|
-
style:
|
|
3408
|
+
[et()]: "builder-column",
|
|
3409
|
+
style: br(m(W))
|
|
3402
3410
|
};
|
|
3403
3411
|
};
|
|
3404
3412
|
return /* @__PURE__ */ se(K, { children: [
|
|
3405
3413
|
/* @__PURE__ */ se(
|
|
3406
3414
|
"div",
|
|
3407
3415
|
{
|
|
3408
|
-
className:
|
|
3416
|
+
className: Ji((L = e.builderBlock) == null ? void 0 : L.id) + " div-eeca3604",
|
|
3409
3417
|
style: b(),
|
|
3410
3418
|
children: [
|
|
3411
|
-
/* @__PURE__ */ y(
|
|
3412
|
-
($ = e.columns) == null ? void 0 : $.map((
|
|
3413
|
-
|
|
3419
|
+
/* @__PURE__ */ y(Ct, { id: "builderio-columns", styles: F() }),
|
|
3420
|
+
($ = e.columns) == null ? void 0 : $.map((N, v) => /* @__PURE__ */ y(
|
|
3421
|
+
tn,
|
|
3414
3422
|
{
|
|
3415
|
-
TagName: i(
|
|
3423
|
+
TagName: i(N),
|
|
3416
3424
|
actionAttributes: {},
|
|
3417
|
-
attributes: V(
|
|
3425
|
+
attributes: V(N, v),
|
|
3418
3426
|
children: /* @__PURE__ */ y(
|
|
3419
|
-
|
|
3427
|
+
gn,
|
|
3420
3428
|
{
|
|
3421
3429
|
path: `component.options.columns.${v}.blocks`,
|
|
3422
3430
|
parent: e.builderBlock.id,
|
|
@@ -3426,7 +3434,7 @@ function Ji(e) {
|
|
|
3426
3434
|
context: e.builderContext,
|
|
3427
3435
|
registeredComponents: e.builderComponents,
|
|
3428
3436
|
linkComponent: e.builderLinkComponent,
|
|
3429
|
-
blocks:
|
|
3437
|
+
blocks: N.blocks
|
|
3430
3438
|
}
|
|
3431
3439
|
)
|
|
3432
3440
|
},
|
|
@@ -3441,40 +3449,40 @@ function Ji(e) {
|
|
|
3441
3449
|
}` })
|
|
3442
3450
|
] });
|
|
3443
3451
|
}
|
|
3444
|
-
function
|
|
3452
|
+
function Zi(e) {
|
|
3445
3453
|
return /* @__PURE__ */ y("span", { children: e.children });
|
|
3446
3454
|
}
|
|
3447
|
-
function
|
|
3455
|
+
function rr(e) {
|
|
3448
3456
|
return e.replace(/http(s)?:/, "");
|
|
3449
3457
|
}
|
|
3450
|
-
function
|
|
3458
|
+
function Qi(e = "", t, n) {
|
|
3451
3459
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3452
3460
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + i + t + "=" + encodeURIComponent(n);
|
|
3453
3461
|
}
|
|
3454
|
-
function
|
|
3462
|
+
function eo(e, t) {
|
|
3455
3463
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3456
3464
|
return e;
|
|
3457
3465
|
if (t === "master")
|
|
3458
|
-
return
|
|
3466
|
+
return rr(e);
|
|
3459
3467
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
3460
3468
|
if (n) {
|
|
3461
3469
|
const r = e.split(n[0]), i = n[3], a = t.match("x") ? t : `${t}x`;
|
|
3462
|
-
return
|
|
3470
|
+
return rr(`${r[0]}_${a}${i}`);
|
|
3463
3471
|
}
|
|
3464
3472
|
return null;
|
|
3465
3473
|
}
|
|
3466
|
-
function
|
|
3474
|
+
function Yt(e) {
|
|
3467
3475
|
if (!e)
|
|
3468
3476
|
return e;
|
|
3469
3477
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3470
3478
|
if (e.match(/builder\.io/)) {
|
|
3471
3479
|
let n = e;
|
|
3472
3480
|
const r = Number(e.split("?width=")[1]);
|
|
3473
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((i) => i !== r).map((i) => `${
|
|
3481
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((i) => i !== r).map((i) => `${Qi(e, "width", i)} ${i}w`).concat([n]).join(", ");
|
|
3474
3482
|
}
|
|
3475
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3483
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [eo(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3476
3484
|
}
|
|
3477
|
-
function
|
|
3485
|
+
function to(e) {
|
|
3478
3486
|
var i, a, s, c, f, g;
|
|
3479
3487
|
function t() {
|
|
3480
3488
|
var j;
|
|
@@ -3485,10 +3493,10 @@ function eo(e) {
|
|
|
3485
3493
|
return e.srcset;
|
|
3486
3494
|
if (e.srcset && ((j = e.image) != null && j.includes("builder.io/api/v1/image"))) {
|
|
3487
3495
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3488
|
-
return console.debug("Removed given srcset"),
|
|
3496
|
+
return console.debug("Removed given srcset"), Yt(m);
|
|
3489
3497
|
} else if (e.image && !e.srcset)
|
|
3490
|
-
return
|
|
3491
|
-
return
|
|
3498
|
+
return Yt(m);
|
|
3499
|
+
return Yt(m);
|
|
3492
3500
|
}
|
|
3493
3501
|
function n() {
|
|
3494
3502
|
var b;
|
|
@@ -3558,7 +3566,7 @@ function eo(e) {
|
|
|
3558
3566
|
}` })
|
|
3559
3567
|
] });
|
|
3560
3568
|
}
|
|
3561
|
-
function
|
|
3569
|
+
function no(e) {
|
|
3562
3570
|
return /* @__PURE__ */ y(
|
|
3563
3571
|
"section",
|
|
3564
3572
|
{
|
|
@@ -3579,7 +3587,7 @@ function to(e) {
|
|
|
3579
3587
|
}
|
|
3580
3588
|
);
|
|
3581
3589
|
}
|
|
3582
|
-
const
|
|
3590
|
+
const ro = {
|
|
3583
3591
|
name: "Core:Button",
|
|
3584
3592
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3585
3593
|
defaultStyles: {
|
|
@@ -3611,8 +3619,14 @@ const no = {
|
|
|
3611
3619
|
friendlyName: "Open link in new tab"
|
|
3612
3620
|
}],
|
|
3613
3621
|
static: !0,
|
|
3614
|
-
noWrap: !0
|
|
3615
|
-
|
|
3622
|
+
noWrap: !0,
|
|
3623
|
+
shouldReceiveBuilderProps: {
|
|
3624
|
+
builderBlock: !1,
|
|
3625
|
+
builderContext: !1,
|
|
3626
|
+
builderComponents: !1,
|
|
3627
|
+
builderLinkComponent: !0
|
|
3628
|
+
}
|
|
3629
|
+
}, io = {
|
|
3616
3630
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3617
3631
|
name: "Columns",
|
|
3618
3632
|
isRSC: !0,
|
|
@@ -3812,14 +3826,26 @@ const no = {
|
|
|
3812
3826
|
defaultValue: !1,
|
|
3813
3827
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3814
3828
|
advanced: !0
|
|
3815
|
-
}]
|
|
3816
|
-
|
|
3829
|
+
}],
|
|
3830
|
+
shouldReceiveBuilderProps: {
|
|
3831
|
+
builderBlock: !0,
|
|
3832
|
+
builderContext: !0,
|
|
3833
|
+
builderComponents: !0,
|
|
3834
|
+
builderLinkComponent: !0
|
|
3835
|
+
}
|
|
3836
|
+
}, oo = {
|
|
3837
|
+
shouldReceiveBuilderProps: {
|
|
3838
|
+
builderBlock: !1,
|
|
3839
|
+
builderContext: !1,
|
|
3840
|
+
builderComponents: !1,
|
|
3841
|
+
builderLinkComponent: !1
|
|
3842
|
+
},
|
|
3817
3843
|
name: "Fragment",
|
|
3818
3844
|
static: !0,
|
|
3819
3845
|
hidden: !0,
|
|
3820
3846
|
canHaveChildren: !0,
|
|
3821
3847
|
noWrap: !0
|
|
3822
|
-
},
|
|
3848
|
+
}, ao = {
|
|
3823
3849
|
name: "Image",
|
|
3824
3850
|
static: !0,
|
|
3825
3851
|
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",
|
|
@@ -3923,8 +3949,20 @@ const no = {
|
|
|
3923
3949
|
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
3924
3950
|
advanced: !0,
|
|
3925
3951
|
defaultValue: 0.7041
|
|
3926
|
-
}]
|
|
3927
|
-
|
|
3952
|
+
}],
|
|
3953
|
+
shouldReceiveBuilderProps: {
|
|
3954
|
+
builderBlock: !0,
|
|
3955
|
+
builderContext: !1,
|
|
3956
|
+
builderComponents: !1,
|
|
3957
|
+
builderLinkComponent: !1
|
|
3958
|
+
}
|
|
3959
|
+
}, so = {
|
|
3960
|
+
shouldReceiveBuilderProps: {
|
|
3961
|
+
builderBlock: !1,
|
|
3962
|
+
builderContext: !1,
|
|
3963
|
+
builderComponents: !1,
|
|
3964
|
+
builderLinkComponent: !1
|
|
3965
|
+
},
|
|
3928
3966
|
name: "Core:Section",
|
|
3929
3967
|
static: !0,
|
|
3930
3968
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3963,7 +4001,7 @@ const no = {
|
|
|
3963
4001
|
}
|
|
3964
4002
|
}
|
|
3965
4003
|
}]
|
|
3966
|
-
},
|
|
4004
|
+
}, lo = {
|
|
3967
4005
|
name: "Slot",
|
|
3968
4006
|
isRSC: !0,
|
|
3969
4007
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3975,9 +4013,15 @@ const no = {
|
|
|
3975
4013
|
type: "string",
|
|
3976
4014
|
required: !0,
|
|
3977
4015
|
defaultValue: "children"
|
|
3978
|
-
}]
|
|
4016
|
+
}],
|
|
4017
|
+
shouldReceiveBuilderProps: {
|
|
4018
|
+
builderBlock: !1,
|
|
4019
|
+
builderContext: !0,
|
|
4020
|
+
builderComponents: !1,
|
|
4021
|
+
builderLinkComponent: !1
|
|
4022
|
+
}
|
|
3979
4023
|
};
|
|
3980
|
-
function
|
|
4024
|
+
function co(e) {
|
|
3981
4025
|
var t, n, r;
|
|
3982
4026
|
return /* @__PURE__ */ y(
|
|
3983
4027
|
"div",
|
|
@@ -3989,7 +4033,7 @@ function lo(e) {
|
|
|
3989
4033
|
"builder-slot": e.name
|
|
3990
4034
|
},
|
|
3991
4035
|
children: /* @__PURE__ */ y(
|
|
3992
|
-
|
|
4036
|
+
gn,
|
|
3993
4037
|
{
|
|
3994
4038
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
3995
4039
|
path: `symbol.data.${e.name}`,
|
|
@@ -4000,7 +4044,7 @@ function lo(e) {
|
|
|
4000
4044
|
}
|
|
4001
4045
|
);
|
|
4002
4046
|
}
|
|
4003
|
-
const
|
|
4047
|
+
const uo = {
|
|
4004
4048
|
name: "Symbol",
|
|
4005
4049
|
noWrap: !0,
|
|
4006
4050
|
static: !0,
|
|
@@ -4032,8 +4076,20 @@ const co = {
|
|
|
4032
4076
|
name: "useChildren",
|
|
4033
4077
|
hideFromUI: !0,
|
|
4034
4078
|
type: "boolean"
|
|
4035
|
-
}]
|
|
4036
|
-
|
|
4079
|
+
}],
|
|
4080
|
+
shouldReceiveBuilderProps: {
|
|
4081
|
+
builderBlock: !0,
|
|
4082
|
+
builderContext: !0,
|
|
4083
|
+
builderComponents: !0,
|
|
4084
|
+
builderLinkComponent: !0
|
|
4085
|
+
}
|
|
4086
|
+
}, fo = {
|
|
4087
|
+
shouldReceiveBuilderProps: {
|
|
4088
|
+
builderBlock: !1,
|
|
4089
|
+
builderContext: !1,
|
|
4090
|
+
builderComponents: !1,
|
|
4091
|
+
builderLinkComponent: !1
|
|
4092
|
+
},
|
|
4037
4093
|
name: "Text",
|
|
4038
4094
|
static: !0,
|
|
4039
4095
|
isRSC: !0,
|
|
@@ -4052,7 +4108,7 @@ const co = {
|
|
|
4052
4108
|
textAlign: "center"
|
|
4053
4109
|
}
|
|
4054
4110
|
};
|
|
4055
|
-
function
|
|
4111
|
+
function ho(e) {
|
|
4056
4112
|
var t;
|
|
4057
4113
|
return /* @__PURE__ */ y(
|
|
4058
4114
|
"div",
|
|
@@ -4065,7 +4121,13 @@ function fo(e) {
|
|
|
4065
4121
|
}
|
|
4066
4122
|
);
|
|
4067
4123
|
}
|
|
4068
|
-
const
|
|
4124
|
+
const po = {
|
|
4125
|
+
shouldReceiveBuilderProps: {
|
|
4126
|
+
builderBlock: !1,
|
|
4127
|
+
builderContext: !1,
|
|
4128
|
+
builderComponents: !1,
|
|
4129
|
+
builderLinkComponent: !1
|
|
4130
|
+
},
|
|
4069
4131
|
name: "Custom Code",
|
|
4070
4132
|
static: !0,
|
|
4071
4133
|
requiredPermissions: ["editCode"],
|
|
@@ -4088,8 +4150,8 @@ const ho = {
|
|
|
4088
4150
|
advanced: !0
|
|
4089
4151
|
}]
|
|
4090
4152
|
};
|
|
4091
|
-
function
|
|
4092
|
-
const t =
|
|
4153
|
+
function mo(e) {
|
|
4154
|
+
const t = en(null), [n, r] = ye(() => []), [i, a] = ye(() => []);
|
|
4093
4155
|
return ie(() => {
|
|
4094
4156
|
var c;
|
|
4095
4157
|
if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
@@ -4126,7 +4188,13 @@ function po(e) {
|
|
|
4126
4188
|
}
|
|
4127
4189
|
);
|
|
4128
4190
|
}
|
|
4129
|
-
const
|
|
4191
|
+
const go = {
|
|
4192
|
+
shouldReceiveBuilderProps: {
|
|
4193
|
+
builderBlock: !1,
|
|
4194
|
+
builderContext: !1,
|
|
4195
|
+
builderComponents: !1,
|
|
4196
|
+
builderLinkComponent: !1
|
|
4197
|
+
},
|
|
4130
4198
|
name: "Embed",
|
|
4131
4199
|
static: !0,
|
|
4132
4200
|
inputs: [{
|
|
@@ -4154,9 +4222,9 @@ const mo = {
|
|
|
4154
4222
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4155
4223
|
hideFromUI: !0
|
|
4156
4224
|
}]
|
|
4157
|
-
},
|
|
4158
|
-
function
|
|
4159
|
-
const t =
|
|
4225
|
+
}, yo = ["text/javascript", "application/javascript", "application/ecmascript"], vo = (e) => yo.includes(e.type);
|
|
4226
|
+
function bo(e) {
|
|
4227
|
+
const t = en(null), [n, r] = ye(() => []), [i, a] = ye(() => []), [s, c] = ye(() => !1);
|
|
4160
4228
|
function f() {
|
|
4161
4229
|
if (!t.current || !t.current.getElementsByTagName)
|
|
4162
4230
|
return;
|
|
@@ -4167,7 +4235,7 @@ function vo(e) {
|
|
|
4167
4235
|
n.push(m.src);
|
|
4168
4236
|
const j = document.createElement("script");
|
|
4169
4237
|
j.async = !0, j.src = m.src, document.head.appendChild(j);
|
|
4170
|
-
} else if (
|
|
4238
|
+
} else if (vo(m) && !i.includes(m.innerText))
|
|
4171
4239
|
try {
|
|
4172
4240
|
i.push(m.innerText), new Function(m.innerText)();
|
|
4173
4241
|
} catch (j) {
|
|
@@ -4186,7 +4254,13 @@ function vo(e) {
|
|
|
4186
4254
|
}
|
|
4187
4255
|
);
|
|
4188
4256
|
}
|
|
4189
|
-
const
|
|
4257
|
+
const xo = {
|
|
4258
|
+
shouldReceiveBuilderProps: {
|
|
4259
|
+
builderBlock: !1,
|
|
4260
|
+
builderContext: !1,
|
|
4261
|
+
builderComponents: !1,
|
|
4262
|
+
builderLinkComponent: !1
|
|
4263
|
+
},
|
|
4190
4264
|
// friendlyName?
|
|
4191
4265
|
name: "Raw:Img",
|
|
4192
4266
|
hideFromInsertMenu: !0,
|
|
@@ -4213,10 +4287,10 @@ function So(e) {
|
|
|
4213
4287
|
src: e.imgSrc || e.image,
|
|
4214
4288
|
...e.attributes
|
|
4215
4289
|
},
|
|
4216
|
-
|
|
4290
|
+
Ce() && e.imgSrc || "default-key"
|
|
4217
4291
|
);
|
|
4218
4292
|
}
|
|
4219
|
-
const
|
|
4293
|
+
const ko = {
|
|
4220
4294
|
name: "Video",
|
|
4221
4295
|
canHaveChildren: !0,
|
|
4222
4296
|
defaultStyles: {
|
|
@@ -4296,9 +4370,15 @@ const xo = {
|
|
|
4296
4370
|
helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
|
|
4297
4371
|
defaultValue: !0,
|
|
4298
4372
|
advanced: !0
|
|
4299
|
-
}]
|
|
4373
|
+
}],
|
|
4374
|
+
shouldReceiveBuilderProps: {
|
|
4375
|
+
builderBlock: !0,
|
|
4376
|
+
builderContext: !1,
|
|
4377
|
+
builderComponents: !1,
|
|
4378
|
+
builderLinkComponent: !1
|
|
4379
|
+
}
|
|
4300
4380
|
};
|
|
4301
|
-
function
|
|
4381
|
+
function Co(e) {
|
|
4302
4382
|
var r, i, a, s, c, f, g;
|
|
4303
4383
|
function t() {
|
|
4304
4384
|
return {
|
|
@@ -4399,43 +4479,43 @@ function ko(e) {
|
|
|
4399
4479
|
}
|
|
4400
4480
|
);
|
|
4401
4481
|
}
|
|
4402
|
-
const
|
|
4403
|
-
component:
|
|
4404
|
-
...
|
|
4482
|
+
const wo = () => [{
|
|
4483
|
+
component: mo,
|
|
4484
|
+
...po
|
|
4405
4485
|
}, {
|
|
4406
|
-
component:
|
|
4407
|
-
...
|
|
4486
|
+
component: bo,
|
|
4487
|
+
...go
|
|
4408
4488
|
}, {
|
|
4409
4489
|
component: So,
|
|
4410
|
-
...bo
|
|
4411
|
-
}, {
|
|
4412
|
-
component: ko,
|
|
4413
4490
|
...xo
|
|
4414
|
-
}], rr = () => [{
|
|
4415
|
-
component: ni,
|
|
4416
|
-
...no
|
|
4417
4491
|
}, {
|
|
4418
|
-
component:
|
|
4492
|
+
component: Co,
|
|
4493
|
+
...ko
|
|
4494
|
+
}], ir = () => [{
|
|
4495
|
+
component: ri,
|
|
4419
4496
|
...ro
|
|
4420
4497
|
}, {
|
|
4421
4498
|
component: qi,
|
|
4422
4499
|
...io
|
|
4423
4500
|
}, {
|
|
4424
|
-
component:
|
|
4501
|
+
component: Zi,
|
|
4425
4502
|
...oo
|
|
4426
4503
|
}, {
|
|
4427
4504
|
component: to,
|
|
4428
4505
|
...ao
|
|
4429
4506
|
}, {
|
|
4430
|
-
component:
|
|
4507
|
+
component: no,
|
|
4431
4508
|
...so
|
|
4432
4509
|
}, {
|
|
4433
|
-
component:
|
|
4434
|
-
...
|
|
4510
|
+
component: co,
|
|
4511
|
+
...lo
|
|
4435
4512
|
}, {
|
|
4436
|
-
component:
|
|
4513
|
+
component: Qo,
|
|
4437
4514
|
...uo
|
|
4438
|
-
},
|
|
4515
|
+
}, {
|
|
4516
|
+
component: ho,
|
|
4517
|
+
...fo
|
|
4518
|
+
}, ...wo()], Eo = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4439
4519
|
function getAndSetVariantId() {
|
|
4440
4520
|
function setCookie(name, value, days) {
|
|
4441
4521
|
let expires = '';
|
|
@@ -4491,7 +4571,7 @@ const Co = () => [{
|
|
|
4491
4571
|
}).join('');
|
|
4492
4572
|
styleEl.innerHTML = newStyleStr;
|
|
4493
4573
|
}
|
|
4494
|
-
}`,
|
|
4574
|
+
}`, Io = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4495
4575
|
if (!navigator.cookieEnabled) {
|
|
4496
4576
|
return;
|
|
4497
4577
|
}
|
|
@@ -4525,26 +4605,26 @@ const Co = () => [{
|
|
|
4525
4605
|
thisScriptEl?.remove();
|
|
4526
4606
|
}
|
|
4527
4607
|
return;
|
|
4528
|
-
}`,
|
|
4608
|
+
}`, Cr = "builderIoAbTest", wr = "builderIoRenderContent", gt = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4529
4609
|
...t,
|
|
4530
4610
|
testVariationId: t.id,
|
|
4531
4611
|
id: e == null ? void 0 : e.id
|
|
4532
|
-
})),
|
|
4612
|
+
})), To = ({
|
|
4533
4613
|
canTrack: e,
|
|
4534
4614
|
content: t
|
|
4535
|
-
}) => !(!(gt(t).length > 0) || !e ||
|
|
4536
|
-
window.${kr} = ${wo}
|
|
4615
|
+
}) => !(!(gt(t).length > 0) || !e || Fe()), Ao = (e) => e === "react" || e === "reactNative", Er = Ao(it), jo = () => `
|
|
4537
4616
|
window.${Cr} = ${Eo}
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4617
|
+
window.${wr} = ${Io}
|
|
4618
|
+
`, Ro = (e, t) => `
|
|
4619
|
+
window.${Cr}(
|
|
4620
|
+
"${t}",${JSON.stringify(e)}, ${Er}
|
|
4621
|
+
)`, Oo = ({
|
|
4542
4622
|
contentId: e,
|
|
4543
4623
|
variationId: t
|
|
4544
|
-
}) => `window.${
|
|
4545
|
-
"${t}", "${e}", ${
|
|
4624
|
+
}) => `window.${wr}(
|
|
4625
|
+
"${t}", "${e}", ${Er}
|
|
4546
4626
|
)`;
|
|
4547
|
-
function
|
|
4627
|
+
function Zt(e) {
|
|
4548
4628
|
return /* @__PURE__ */ y(
|
|
4549
4629
|
"script",
|
|
4550
4630
|
{
|
|
@@ -4553,7 +4633,7 @@ function qt(e) {
|
|
|
4553
4633
|
}
|
|
4554
4634
|
);
|
|
4555
4635
|
}
|
|
4556
|
-
const
|
|
4636
|
+
const Po = Qr({
|
|
4557
4637
|
content: null,
|
|
4558
4638
|
context: {},
|
|
4559
4639
|
localState: void 0,
|
|
@@ -4567,7 +4647,7 @@ const Oo = Zr({
|
|
|
4567
4647
|
BlocksWrapper: "div",
|
|
4568
4648
|
BlocksWrapperProps: {}
|
|
4569
4649
|
});
|
|
4570
|
-
function
|
|
4650
|
+
function or(e) {
|
|
4571
4651
|
return Math.round(e * 1e3) / 1e3;
|
|
4572
4652
|
}
|
|
4573
4653
|
const No = (e, t, n = !0) => {
|
|
@@ -4581,28 +4661,28 @@ const No = (e, t, n = !0) => {
|
|
|
4581
4661
|
return r;
|
|
4582
4662
|
} while (r = r.parentElement);
|
|
4583
4663
|
return null;
|
|
4584
|
-
},
|
|
4664
|
+
}, Bo = (e) => No(e, (t) => {
|
|
4585
4665
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4586
4666
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4587
|
-
}),
|
|
4667
|
+
}), ar = ({
|
|
4588
4668
|
event: e,
|
|
4589
4669
|
target: t
|
|
4590
4670
|
}) => {
|
|
4591
|
-
const n = t.getBoundingClientRect(), r = e.clientX - n.left, i = e.clientY - n.top, a =
|
|
4671
|
+
const n = t.getBoundingClientRect(), r = e.clientX - n.left, i = e.clientY - n.top, a = or(r / n.width), s = or(i / n.height);
|
|
4592
4672
|
return {
|
|
4593
4673
|
x: a,
|
|
4594
4674
|
y: s
|
|
4595
4675
|
};
|
|
4596
|
-
},
|
|
4597
|
-
const t = e.target, n = t &&
|
|
4676
|
+
}, Lo = (e) => {
|
|
4677
|
+
const t = e.target, n = t && Bo(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4598
4678
|
return {
|
|
4599
4679
|
targetBuilderElement: r || void 0,
|
|
4600
4680
|
metadata: {
|
|
4601
|
-
targetOffset: t ?
|
|
4681
|
+
targetOffset: t ? ar({
|
|
4602
4682
|
event: e,
|
|
4603
4683
|
target: t
|
|
4604
4684
|
}) : void 0,
|
|
4605
|
-
builderTargetOffset: n ?
|
|
4685
|
+
builderTargetOffset: n ? ar({
|
|
4606
4686
|
event: e,
|
|
4607
4687
|
target: n
|
|
4608
4688
|
}) : void 0,
|
|
@@ -4610,13 +4690,13 @@ const No = (e, t, n = !0) => {
|
|
|
4610
4690
|
}
|
|
4611
4691
|
};
|
|
4612
4692
|
};
|
|
4613
|
-
async function
|
|
4693
|
+
async function Mo({
|
|
4614
4694
|
key: e,
|
|
4615
4695
|
value: t
|
|
4616
4696
|
}) {
|
|
4617
|
-
return
|
|
4697
|
+
return Kr(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
|
|
4618
4698
|
}
|
|
4619
|
-
function
|
|
4699
|
+
function sr(e, ...t) {
|
|
4620
4700
|
const n = Object(e);
|
|
4621
4701
|
for (let r = 1; r < arguments.length; r++) {
|
|
4622
4702
|
const i = arguments[r];
|
|
@@ -4626,16 +4706,16 @@ function ar(e, ...t) {
|
|
|
4626
4706
|
}
|
|
4627
4707
|
return n;
|
|
4628
4708
|
}
|
|
4629
|
-
function
|
|
4709
|
+
function Fo(e) {
|
|
4630
4710
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
4631
4711
|
}
|
|
4632
|
-
function
|
|
4633
|
-
const n =
|
|
4712
|
+
function Do(e, t) {
|
|
4713
|
+
const n = Uo(e), r = getComputedStyle(t), i = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, s = [i, a];
|
|
4634
4714
|
for (const c of s)
|
|
4635
4715
|
for (const f of n)
|
|
4636
4716
|
f in c || (c[f] = r[f]);
|
|
4637
4717
|
}
|
|
4638
|
-
function
|
|
4718
|
+
function Uo(e) {
|
|
4639
4719
|
const t = [];
|
|
4640
4720
|
for (const n of e.steps)
|
|
4641
4721
|
for (const r in n.styles)
|
|
@@ -4645,18 +4725,18 @@ function Do(e) {
|
|
|
4645
4725
|
function Wo(e) {
|
|
4646
4726
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
4647
4727
|
if (!t.length) {
|
|
4648
|
-
|
|
4728
|
+
Fo(e.elementId || e.id || "");
|
|
4649
4729
|
return;
|
|
4650
4730
|
}
|
|
4651
4731
|
Array.from(t).forEach((n) => {
|
|
4652
|
-
|
|
4653
|
-
n.style.transition = `all ${e.duration}s ${
|
|
4732
|
+
Do(e, n), n.style.transition = "none", n.style.transitionDelay = "0", sr(n.style, e.steps[0].styles), setTimeout(() => {
|
|
4733
|
+
n.style.transition = `all ${e.duration}s ${pn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), sr(n.style, e.steps[1].styles), setTimeout(() => {
|
|
4654
4734
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
4655
4735
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
4656
4736
|
});
|
|
4657
4737
|
});
|
|
4658
4738
|
}
|
|
4659
|
-
const
|
|
4739
|
+
const Vo = (e) => {
|
|
4660
4740
|
var a, s;
|
|
4661
4741
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = (s = e.fileUrl) != null ? s : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
4662
4742
|
let i = "";
|
|
@@ -4682,15 +4762,15 @@ font-weight: ${c};
|
|
|
4682
4762
|
`.trim());
|
|
4683
4763
|
}
|
|
4684
4764
|
return i;
|
|
4685
|
-
},
|
|
4765
|
+
}, _o = ({
|
|
4686
4766
|
customFonts: e
|
|
4687
4767
|
}) => {
|
|
4688
4768
|
var t;
|
|
4689
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4690
|
-
},
|
|
4769
|
+
return ((t = e == null ? void 0 : e.map((n) => Vo(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4770
|
+
}, $o = ({
|
|
4691
4771
|
cssCode: e,
|
|
4692
4772
|
contentId: t
|
|
4693
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4773
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ho = `
|
|
4694
4774
|
.builder-button {
|
|
4695
4775
|
all: unset;
|
|
4696
4776
|
}
|
|
@@ -4707,25 +4787,25 @@ font-weight: ${c};
|
|
|
4707
4787
|
text-align: inherit;
|
|
4708
4788
|
font-family: inherit;
|
|
4709
4789
|
}
|
|
4710
|
-
`,
|
|
4711
|
-
function
|
|
4712
|
-
var oe, _, Q, E,
|
|
4713
|
-
const t =
|
|
4790
|
+
`, Ko = (e) => e ? "" : Ho, Go = (e) => `variant-${e}`;
|
|
4791
|
+
function zo(e) {
|
|
4792
|
+
var oe, _, Q, E, Ee, U, Ie;
|
|
4793
|
+
const t = en(null);
|
|
4714
4794
|
function n(I) {
|
|
4715
|
-
var
|
|
4716
|
-
const
|
|
4795
|
+
var P, D;
|
|
4796
|
+
const x = {
|
|
4717
4797
|
...e.builderContextSignal.rootState,
|
|
4718
4798
|
...I
|
|
4719
4799
|
};
|
|
4720
|
-
e.builderContextSignal.rootSetState ? (D = (
|
|
4800
|
+
e.builderContextSignal.rootSetState ? (D = (P = e.builderContextSignal).rootSetState) == null || D.call(P, x) : e.builderContextSignal.rootState = x;
|
|
4721
4801
|
}
|
|
4722
4802
|
function r(I) {
|
|
4723
|
-
var
|
|
4724
|
-
const
|
|
4803
|
+
var P, D, B, J, le;
|
|
4804
|
+
const x = {
|
|
4725
4805
|
...e.builderContextSignal.content,
|
|
4726
4806
|
...I,
|
|
4727
4807
|
data: {
|
|
4728
|
-
...(
|
|
4808
|
+
...(P = e.builderContextSignal.content) == null ? void 0 : P.data,
|
|
4729
4809
|
...I == null ? void 0 : I.data
|
|
4730
4810
|
},
|
|
4731
4811
|
meta: {
|
|
@@ -4734,9 +4814,9 @@ function Go(e) {
|
|
|
4734
4814
|
breakpoints: ((B = I == null ? void 0 : I.meta) == null ? void 0 : B.breakpoints) || ((le = (J = e.builderContextSignal.content) == null ? void 0 : J.meta) == null ? void 0 : le.breakpoints)
|
|
4735
4815
|
}
|
|
4736
4816
|
};
|
|
4737
|
-
|
|
4738
|
-
value:
|
|
4739
|
-
key:
|
|
4817
|
+
Mo({
|
|
4818
|
+
value: x,
|
|
4819
|
+
key: x.id
|
|
4740
4820
|
}).then(() => {
|
|
4741
4821
|
X.refresh();
|
|
4742
4822
|
});
|
|
@@ -4747,36 +4827,36 @@ function Go(e) {
|
|
|
4747
4827
|
"aria-hidden": !0
|
|
4748
4828
|
};
|
|
4749
4829
|
}
|
|
4750
|
-
const [a, s] =
|
|
4830
|
+
const [a, s] = ye(
|
|
4751
4831
|
() => e.contentWrapper || "div"
|
|
4752
4832
|
);
|
|
4753
4833
|
function c(I) {
|
|
4754
|
-
return
|
|
4834
|
+
return zr({
|
|
4755
4835
|
model: e.model,
|
|
4756
4836
|
trustedHosts: e.trustedHosts,
|
|
4757
4837
|
callbacks: {
|
|
4758
|
-
configureSdk: (
|
|
4838
|
+
configureSdk: (x) => {
|
|
4759
4839
|
var B;
|
|
4760
|
-
const { breakpoints:
|
|
4761
|
-
!D || D !== ((B = e.builderContextSignal.content) == null ? void 0 : B.id) ||
|
|
4840
|
+
const { breakpoints: P, contentId: D } = x;
|
|
4841
|
+
!D || D !== ((B = e.builderContextSignal.content) == null ? void 0 : B.id) || P && r({
|
|
4762
4842
|
meta: {
|
|
4763
|
-
breakpoints:
|
|
4843
|
+
breakpoints: P
|
|
4764
4844
|
}
|
|
4765
4845
|
});
|
|
4766
4846
|
},
|
|
4767
|
-
animation: (
|
|
4768
|
-
Wo(
|
|
4847
|
+
animation: (x) => {
|
|
4848
|
+
Wo(x);
|
|
4769
4849
|
},
|
|
4770
|
-
contentUpdate: (
|
|
4771
|
-
r(
|
|
4850
|
+
contentUpdate: (x) => {
|
|
4851
|
+
r(x);
|
|
4772
4852
|
}
|
|
4773
4853
|
}
|
|
4774
4854
|
})(I);
|
|
4775
4855
|
}
|
|
4776
4856
|
function f() {
|
|
4777
|
-
var
|
|
4778
|
-
const I = (
|
|
4779
|
-
I &&
|
|
4857
|
+
var x, P;
|
|
4858
|
+
const I = (P = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : P.jsCode;
|
|
4859
|
+
I && rt({
|
|
4780
4860
|
code: I,
|
|
4781
4861
|
context: e.context || {},
|
|
4782
4862
|
localState: void 0,
|
|
@@ -4788,34 +4868,34 @@ function Go(e) {
|
|
|
4788
4868
|
enableCache: !1
|
|
4789
4869
|
});
|
|
4790
4870
|
}
|
|
4791
|
-
const [g, b] =
|
|
4792
|
-
function
|
|
4793
|
-
var
|
|
4871
|
+
const [g, b] = ye(() => ({})), [m, j] = ye(() => ({})), [F, V] = ye(() => !1);
|
|
4872
|
+
function L(I) {
|
|
4873
|
+
var x, P;
|
|
4794
4874
|
if (e.builderContextSignal.content) {
|
|
4795
|
-
const D = (
|
|
4796
|
-
|
|
4875
|
+
const D = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, B = (P = e.builderContextSignal.content) == null ? void 0 : P.id;
|
|
4876
|
+
zn({
|
|
4797
4877
|
type: "click",
|
|
4798
4878
|
canTrack: vt(e.canTrack),
|
|
4799
4879
|
contentId: B,
|
|
4800
4880
|
apiKey: e.apiKey,
|
|
4801
4881
|
variationId: D !== B ? D : void 0,
|
|
4802
|
-
...
|
|
4803
|
-
unique: !
|
|
4882
|
+
...Lo(I),
|
|
4883
|
+
unique: !F
|
|
4804
4884
|
});
|
|
4805
4885
|
}
|
|
4806
|
-
|
|
4886
|
+
F || V(!0);
|
|
4807
4887
|
}
|
|
4808
4888
|
function $() {
|
|
4809
|
-
var
|
|
4810
|
-
const I = (D = (
|
|
4889
|
+
var x, P, D;
|
|
4890
|
+
const I = (D = (P = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : P.httpRequests) != null ? D : {};
|
|
4811
4891
|
Object.entries(I).forEach(([B, J]) => {
|
|
4812
|
-
if (!J || m[B] || g[B] && !
|
|
4892
|
+
if (!J || m[B] || g[B] && !Ce())
|
|
4813
4893
|
return;
|
|
4814
4894
|
m[B] = !0;
|
|
4815
4895
|
const le = J.replace(
|
|
4816
4896
|
/{{([^}]+)}}/g,
|
|
4817
4897
|
(ce, lt) => String(
|
|
4818
|
-
|
|
4898
|
+
rt({
|
|
4819
4899
|
code: lt,
|
|
4820
4900
|
context: e.context || {},
|
|
4821
4901
|
localState: void 0,
|
|
@@ -4825,7 +4905,7 @@ function Go(e) {
|
|
|
4825
4905
|
})
|
|
4826
4906
|
)
|
|
4827
4907
|
);
|
|
4828
|
-
|
|
4908
|
+
Yr(le).then((ce) => ce.json()).then((ce) => {
|
|
4829
4909
|
n({
|
|
4830
4910
|
[B]: ce
|
|
4831
4911
|
}), g[B] = !0;
|
|
@@ -4836,13 +4916,13 @@ function Go(e) {
|
|
|
4836
4916
|
});
|
|
4837
4917
|
});
|
|
4838
4918
|
}
|
|
4839
|
-
function
|
|
4840
|
-
|
|
4919
|
+
function N() {
|
|
4920
|
+
Ce() && window.dispatchEvent(
|
|
4841
4921
|
new CustomEvent(
|
|
4842
4922
|
"builder:component:stateChange",
|
|
4843
4923
|
{
|
|
4844
4924
|
detail: {
|
|
4845
|
-
state:
|
|
4925
|
+
state: Qt(e.builderContextSignal.rootState),
|
|
4846
4926
|
ref: {
|
|
4847
4927
|
name: e.model
|
|
4848
4928
|
}
|
|
@@ -4852,7 +4932,7 @@ function Go(e) {
|
|
|
4852
4932
|
);
|
|
4853
4933
|
}
|
|
4854
4934
|
function v(I) {
|
|
4855
|
-
window.addEventListener("message", c),
|
|
4935
|
+
window.addEventListener("message", c), Xr(), Jr({
|
|
4856
4936
|
...e.locale ? {
|
|
4857
4937
|
locale: e.locale
|
|
4858
4938
|
} : {},
|
|
@@ -4864,20 +4944,20 @@ function Go(e) {
|
|
|
4864
4944
|
} : {}
|
|
4865
4945
|
}), Object.values(
|
|
4866
4946
|
e.builderContextSignal.componentInfos
|
|
4867
|
-
).forEach((
|
|
4947
|
+
).forEach((x) => {
|
|
4868
4948
|
var D;
|
|
4869
|
-
const
|
|
4870
|
-
(D = window.parent) == null || D.postMessage(
|
|
4949
|
+
const P = qr(x);
|
|
4950
|
+
(D = window.parent) == null || D.postMessage(P, "*");
|
|
4871
4951
|
}), window.addEventListener(
|
|
4872
4952
|
"builder:component:stateChangeListenerActivated",
|
|
4873
|
-
|
|
4953
|
+
N
|
|
4874
4954
|
);
|
|
4875
4955
|
}
|
|
4876
|
-
function
|
|
4877
|
-
const
|
|
4878
|
-
`builder.overrides.${
|
|
4879
|
-
), B =
|
|
4880
|
-
|
|
4956
|
+
function W(I) {
|
|
4957
|
+
const x = new URL(location.href).searchParams, P = x.get("builder.preview"), D = x.get(
|
|
4958
|
+
`builder.overrides.${P}`
|
|
4959
|
+
), B = x.get("apiKey") || x.get("builder.space");
|
|
4960
|
+
P === e.model && B === e.apiKey && (!e.content || D === e.content.id) && cr({
|
|
4881
4961
|
model: e.model,
|
|
4882
4962
|
apiKey: e.apiKey,
|
|
4883
4963
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -4885,15 +4965,15 @@ function Go(e) {
|
|
|
4885
4965
|
J && r(J);
|
|
4886
4966
|
});
|
|
4887
4967
|
}
|
|
4888
|
-
const X =
|
|
4968
|
+
const X = ei();
|
|
4889
4969
|
return ie(() => {
|
|
4890
4970
|
var I;
|
|
4891
4971
|
return (I = t.current) == null || I.addEventListener(
|
|
4892
4972
|
"initeditingbldr",
|
|
4893
4973
|
v
|
|
4894
4974
|
), () => {
|
|
4895
|
-
var
|
|
4896
|
-
return (
|
|
4975
|
+
var x;
|
|
4976
|
+
return (x = t.current) == null ? void 0 : x.removeEventListener(
|
|
4897
4977
|
"initeditingbldr",
|
|
4898
4978
|
v
|
|
4899
4979
|
);
|
|
@@ -4902,20 +4982,20 @@ function Go(e) {
|
|
|
4902
4982
|
var I;
|
|
4903
4983
|
return (I = t.current) == null || I.addEventListener(
|
|
4904
4984
|
"initpreviewingbldr",
|
|
4905
|
-
|
|
4985
|
+
W
|
|
4906
4986
|
), () => {
|
|
4907
|
-
var
|
|
4908
|
-
return (
|
|
4987
|
+
var x;
|
|
4988
|
+
return (x = t.current) == null ? void 0 : x.removeEventListener(
|
|
4909
4989
|
"initpreviewingbldr",
|
|
4910
|
-
|
|
4990
|
+
W
|
|
4911
4991
|
);
|
|
4912
4992
|
};
|
|
4913
4993
|
}, []), ie(() => {
|
|
4914
|
-
var I,
|
|
4915
|
-
if (
|
|
4916
|
-
if (
|
|
4917
|
-
const D = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, B = (
|
|
4918
|
-
|
|
4994
|
+
var I, x;
|
|
4995
|
+
if (Fe()) {
|
|
4996
|
+
if (Ce() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && vt(e.canTrack)) {
|
|
4997
|
+
const D = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, B = (x = e.builderContextSignal.content) == null ? void 0 : x.id, J = e.apiKey;
|
|
4998
|
+
zn({
|
|
4919
4999
|
type: "impression",
|
|
4920
5000
|
canTrack: !0,
|
|
4921
5001
|
contentId: B,
|
|
@@ -4923,19 +5003,19 @@ function Go(e) {
|
|
|
4923
5003
|
variationId: D !== B ? D : void 0
|
|
4924
5004
|
});
|
|
4925
5005
|
}
|
|
4926
|
-
|
|
5006
|
+
Gr() && Ce();
|
|
4927
5007
|
}
|
|
4928
5008
|
}, []), ie(() => {
|
|
4929
5009
|
e.apiKey || ot.error(
|
|
4930
5010
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4931
|
-
), f(), $(),
|
|
5011
|
+
), f(), $(), N();
|
|
4932
5012
|
}, []), ie(() => {
|
|
4933
5013
|
}, [e.content]), ie(() => {
|
|
4934
5014
|
f();
|
|
4935
5015
|
}, [(_ = (oe = e.builderContextSignal.content) == null ? void 0 : oe.data) == null ? void 0 : _.jsCode]), ie(() => {
|
|
4936
5016
|
$();
|
|
4937
5017
|
}, [(E = (Q = e.builderContextSignal.content) == null ? void 0 : Q.data) == null ? void 0 : E.httpRequests]), ie(() => {
|
|
4938
|
-
|
|
5018
|
+
N();
|
|
4939
5019
|
}, [e.builderContextSignal.rootState]), ie(() => {
|
|
4940
5020
|
e.data && n(e.data);
|
|
4941
5021
|
}, [e.data]), ie(() => {
|
|
@@ -4943,40 +5023,40 @@ function Go(e) {
|
|
|
4943
5023
|
locale: e.locale
|
|
4944
5024
|
});
|
|
4945
5025
|
}, [e.locale]), ie(() => () => {
|
|
4946
|
-
|
|
5026
|
+
Fe() && (window.removeEventListener("message", c), window.removeEventListener(
|
|
4947
5027
|
"builder:component:stateChangeListenerActivated",
|
|
4948
|
-
|
|
5028
|
+
N
|
|
4949
5029
|
));
|
|
4950
|
-
}, []), /* @__PURE__ */ y(
|
|
5030
|
+
}, []), /* @__PURE__ */ y(Po.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ y(
|
|
4951
5031
|
a,
|
|
4952
5032
|
{
|
|
4953
5033
|
ref: t,
|
|
4954
|
-
onClick: (I) =>
|
|
4955
|
-
"builder-content-id": (
|
|
5034
|
+
onClick: (I) => L(I),
|
|
5035
|
+
"builder-content-id": (Ee = e.builderContextSignal.content) == null ? void 0 : Ee.id,
|
|
4956
5036
|
"builder-model": e.model,
|
|
4957
5037
|
...i(),
|
|
4958
5038
|
...e.contentWrapperProps,
|
|
4959
|
-
className:
|
|
4960
|
-
((
|
|
5039
|
+
className: Go(
|
|
5040
|
+
((U = e.content) == null ? void 0 : U.testVariationId) || ((Ie = e.content) == null ? void 0 : Ie.id)
|
|
4961
5041
|
),
|
|
4962
5042
|
children: e.children
|
|
4963
5043
|
}
|
|
4964
5044
|
) : null });
|
|
4965
5045
|
}
|
|
4966
|
-
function
|
|
5046
|
+
function Yo(e) {
|
|
4967
5047
|
const t = `
|
|
4968
|
-
${
|
|
5048
|
+
${$o({
|
|
4969
5049
|
cssCode: e.cssCode,
|
|
4970
5050
|
contentId: e.contentId
|
|
4971
5051
|
})}
|
|
4972
|
-
${
|
|
5052
|
+
${_o({
|
|
4973
5053
|
customFonts: e.customFonts
|
|
4974
5054
|
})}
|
|
4975
|
-
${
|
|
5055
|
+
${Ko(e.isNestedRender)}
|
|
4976
5056
|
`.trim();
|
|
4977
|
-
return /* @__PURE__ */ y(
|
|
5057
|
+
return /* @__PURE__ */ y(Ct, { id: "builderio-content", styles: t });
|
|
4978
5058
|
}
|
|
4979
|
-
const
|
|
5059
|
+
const Xo = ({
|
|
4980
5060
|
content: e,
|
|
4981
5061
|
data: t,
|
|
4982
5062
|
locale: n
|
|
@@ -4993,7 +5073,7 @@ const Yo = ({
|
|
|
4993
5073
|
locale: n
|
|
4994
5074
|
} : {}
|
|
4995
5075
|
};
|
|
4996
|
-
},
|
|
5076
|
+
}, Jo = ({
|
|
4997
5077
|
content: e,
|
|
4998
5078
|
data: t
|
|
4999
5079
|
}) => e ? {
|
|
@@ -5004,32 +5084,32 @@ const Yo = ({
|
|
|
5004
5084
|
},
|
|
5005
5085
|
meta: e == null ? void 0 : e.meta
|
|
5006
5086
|
} : void 0;
|
|
5007
|
-
function
|
|
5087
|
+
function lr(e) {
|
|
5008
5088
|
var i, a, s, c, f, g, b, m, j;
|
|
5009
|
-
const t =
|
|
5089
|
+
const t = Oo({
|
|
5010
5090
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5011
5091
|
variationId: (i = e.content) == null ? void 0 : i.testVariationId,
|
|
5012
5092
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5013
5093
|
contentId: (a = e.content) == null ? void 0 : a.id
|
|
5014
5094
|
}), n = [
|
|
5015
|
-
...
|
|
5095
|
+
...ir(),
|
|
5016
5096
|
...e.customComponents || []
|
|
5017
5097
|
].reduce(
|
|
5018
|
-
(
|
|
5019
|
-
...
|
|
5020
|
-
[
|
|
5098
|
+
(F, { component: V, ...L }) => ({
|
|
5099
|
+
...F,
|
|
5100
|
+
[L.name]: {
|
|
5021
5101
|
component: V,
|
|
5022
|
-
...
|
|
5102
|
+
...Yn(L)
|
|
5023
5103
|
}
|
|
5024
5104
|
}),
|
|
5025
5105
|
{}
|
|
5026
5106
|
), r = {
|
|
5027
|
-
content:
|
|
5107
|
+
content: Jo({
|
|
5028
5108
|
content: e.content,
|
|
5029
5109
|
data: e.data
|
|
5030
5110
|
}),
|
|
5031
5111
|
localState: void 0,
|
|
5032
|
-
rootState:
|
|
5112
|
+
rootState: Xo({
|
|
5033
5113
|
content: e.content,
|
|
5034
5114
|
data: e.data,
|
|
5035
5115
|
locale: e.locale
|
|
@@ -5040,12 +5120,12 @@ function sr(e) {
|
|
|
5040
5120
|
apiKey: e.apiKey,
|
|
5041
5121
|
apiVersion: e.apiVersion,
|
|
5042
5122
|
componentInfos: [
|
|
5043
|
-
...
|
|
5123
|
+
...ir(),
|
|
5044
5124
|
...e.customComponents || []
|
|
5045
5125
|
].reduce(
|
|
5046
|
-
(
|
|
5047
|
-
...
|
|
5048
|
-
[
|
|
5126
|
+
(F, { component: V, ...L }) => ({
|
|
5127
|
+
...F,
|
|
5128
|
+
[L.name]: Yn(L)
|
|
5049
5129
|
}),
|
|
5050
5130
|
{}
|
|
5051
5131
|
),
|
|
@@ -5054,7 +5134,7 @@ function sr(e) {
|
|
|
5054
5134
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
5055
5135
|
};
|
|
5056
5136
|
return /* @__PURE__ */ se(
|
|
5057
|
-
|
|
5137
|
+
zo,
|
|
5058
5138
|
{
|
|
5059
5139
|
content: e.content,
|
|
5060
5140
|
data: e.data,
|
|
@@ -5071,14 +5151,14 @@ function sr(e) {
|
|
|
5071
5151
|
trustedHosts: e.trustedHosts,
|
|
5072
5152
|
children: [
|
|
5073
5153
|
e.isSsrAbTest ? /* @__PURE__ */ y(
|
|
5074
|
-
|
|
5154
|
+
Zt,
|
|
5075
5155
|
{
|
|
5076
5156
|
id: "builderio-variant-visibility",
|
|
5077
5157
|
scriptStr: t
|
|
5078
5158
|
}
|
|
5079
5159
|
) : null,
|
|
5080
5160
|
/* @__PURE__ */ y(
|
|
5081
|
-
|
|
5161
|
+
Yo,
|
|
5082
5162
|
{
|
|
5083
5163
|
isNestedRender: e.isNestedRender,
|
|
5084
5164
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
@@ -5087,7 +5167,7 @@ function sr(e) {
|
|
|
5087
5167
|
}
|
|
5088
5168
|
),
|
|
5089
5169
|
/* @__PURE__ */ y(
|
|
5090
|
-
|
|
5170
|
+
gn,
|
|
5091
5171
|
{
|
|
5092
5172
|
blocks: (j = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : j.blocks,
|
|
5093
5173
|
context: r,
|
|
@@ -5099,14 +5179,14 @@ function sr(e) {
|
|
|
5099
5179
|
}
|
|
5100
5180
|
);
|
|
5101
5181
|
}
|
|
5102
|
-
function
|
|
5182
|
+
function qo(e) {
|
|
5103
5183
|
var a;
|
|
5104
|
-
const t =
|
|
5184
|
+
const t = To({
|
|
5105
5185
|
canTrack: vt(e.canTrack),
|
|
5106
5186
|
content: e.content
|
|
5107
5187
|
}), n = function() {
|
|
5108
5188
|
var c;
|
|
5109
|
-
return
|
|
5189
|
+
return Ro(
|
|
5110
5190
|
gt(e.content).map((f) => ({
|
|
5111
5191
|
id: f.testVariationId,
|
|
5112
5192
|
testRatio: f.testRatio
|
|
@@ -5120,36 +5200,36 @@ function Jo(e) {
|
|
|
5120
5200
|
return t ? {
|
|
5121
5201
|
...e.content,
|
|
5122
5202
|
testVariationId: (c = e.content) == null ? void 0 : c.id
|
|
5123
|
-
} :
|
|
5203
|
+
} : Zr({
|
|
5124
5204
|
item: e.content,
|
|
5125
5205
|
canTrack: vt(e.canTrack)
|
|
5126
5206
|
});
|
|
5127
5207
|
};
|
|
5128
5208
|
return /* @__PURE__ */ se(K, { children: [
|
|
5129
|
-
!e.isNestedRender &&
|
|
5130
|
-
|
|
5209
|
+
!e.isNestedRender && it !== "reactNative" ? /* @__PURE__ */ y(
|
|
5210
|
+
Zt,
|
|
5131
5211
|
{
|
|
5132
5212
|
id: "builderio-init-variants-fns",
|
|
5133
|
-
scriptStr:
|
|
5213
|
+
scriptStr: jo()
|
|
5134
5214
|
}
|
|
5135
5215
|
) : null,
|
|
5136
5216
|
t ? /* @__PURE__ */ se(K, { children: [
|
|
5137
5217
|
/* @__PURE__ */ y(
|
|
5138
|
-
|
|
5218
|
+
Ct,
|
|
5139
5219
|
{
|
|
5140
5220
|
id: "builderio-variants",
|
|
5141
5221
|
styles: r()
|
|
5142
5222
|
}
|
|
5143
5223
|
),
|
|
5144
5224
|
/* @__PURE__ */ y(
|
|
5145
|
-
|
|
5225
|
+
Zt,
|
|
5146
5226
|
{
|
|
5147
5227
|
id: "builderio-variants-visibility",
|
|
5148
5228
|
scriptStr: n()
|
|
5149
5229
|
}
|
|
5150
5230
|
),
|
|
5151
5231
|
(a = gt(e.content)) == null ? void 0 : a.map((s) => /* @__PURE__ */ y(
|
|
5152
|
-
|
|
5232
|
+
lr,
|
|
5153
5233
|
{
|
|
5154
5234
|
isNestedRender: e.isNestedRender,
|
|
5155
5235
|
content: s,
|
|
@@ -5175,7 +5255,7 @@ function Jo(e) {
|
|
|
5175
5255
|
))
|
|
5176
5256
|
] }) : null,
|
|
5177
5257
|
/* @__PURE__ */ y(
|
|
5178
|
-
|
|
5258
|
+
lr,
|
|
5179
5259
|
{
|
|
5180
5260
|
isNestedRender: e.isNestedRender,
|
|
5181
5261
|
content: i(),
|
|
@@ -5200,13 +5280,13 @@ function Jo(e) {
|
|
|
5200
5280
|
)
|
|
5201
5281
|
] });
|
|
5202
5282
|
}
|
|
5203
|
-
const
|
|
5283
|
+
const Zo = async ({
|
|
5204
5284
|
builderContextValue: e,
|
|
5205
5285
|
symbol: t
|
|
5206
5286
|
}) => {
|
|
5207
5287
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5208
5288
|
(e != null && e.apiKey))
|
|
5209
|
-
return
|
|
5289
|
+
return cr({
|
|
5210
5290
|
model: t.model,
|
|
5211
5291
|
apiKey: e.apiKey,
|
|
5212
5292
|
apiVersion: e.apiVersion,
|
|
@@ -5219,7 +5299,7 @@ const qo = async ({
|
|
|
5219
5299
|
ot.error("Could not fetch symbol content: ", n);
|
|
5220
5300
|
});
|
|
5221
5301
|
};
|
|
5222
|
-
async function
|
|
5302
|
+
async function Qo(e) {
|
|
5223
5303
|
var a, s, c, f, g;
|
|
5224
5304
|
const t = function() {
|
|
5225
5305
|
return "div";
|
|
@@ -5228,17 +5308,17 @@ async function Zo(e) {
|
|
|
5228
5308
|
}, r = function() {
|
|
5229
5309
|
var m, j;
|
|
5230
5310
|
return [
|
|
5231
|
-
e.attributes[
|
|
5311
|
+
e.attributes[et()],
|
|
5232
5312
|
"builder-symbol",
|
|
5233
5313
|
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
5234
5314
|
(j = e.symbol) != null && j.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5235
5315
|
].filter(Boolean).join(" ");
|
|
5236
|
-
}, i = ((a = e.symbol) == null ? void 0 : a.content) || await
|
|
5316
|
+
}, i = ((a = e.symbol) == null ? void 0 : a.content) || await Zo({
|
|
5237
5317
|
symbol: e.symbol,
|
|
5238
5318
|
builderContextValue: e.builderContext
|
|
5239
5319
|
});
|
|
5240
5320
|
return /* @__PURE__ */ y("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ y(
|
|
5241
|
-
|
|
5321
|
+
qo,
|
|
5242
5322
|
{
|
|
5243
5323
|
isNestedRender: !0,
|
|
5244
5324
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5263,15 +5343,15 @@ async function Zo(e) {
|
|
|
5263
5343
|
) });
|
|
5264
5344
|
}
|
|
5265
5345
|
export {
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5346
|
+
gn as Blocks,
|
|
5347
|
+
Po as BuilderContext,
|
|
5348
|
+
ri as Button,
|
|
5349
|
+
qi as Columns,
|
|
5350
|
+
qo as Content,
|
|
5351
|
+
Zi as Fragment,
|
|
5352
|
+
to as Image,
|
|
5353
|
+
no as Section,
|
|
5354
|
+
Qo as Symbol,
|
|
5355
|
+
ho as Text,
|
|
5356
|
+
Co as Video
|
|
5277
5357
|
};
|