@builder.io/sdk-react 0.7.1-0 → 0.7.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/index.cjs +26 -26
- package/lib/browser/index.mjs +942 -918
- package/lib/{node/server-entry-13b7e1e6.mjs → browser/server-entry-0aebe4be.mjs} +261 -261
- package/lib/browser/server-entry-a5d2c777.js +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/index.cjs +34 -34
- package/lib/edge/index.mjs +1056 -1032
- package/lib/edge/{server-entry-13b7e1e6.mjs → server-entry-0aebe4be.mjs} +261 -261
- package/lib/edge/server-entry-a5d2c777.js +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/index.cjs +16 -16
- package/lib/node/index.mjs +796 -772
- package/lib/node/server-entry-a5d2c777.js +2 -0
- package/lib/{browser/server-entry-13b7e1e6.mjs → node/server-entry-e4cd1e05.mjs} +260 -260
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +5 -3
- package/types/blocks/BaseText.d.ts +2 -2
- package/types/blocks/button/button.d.ts +4 -3
- package/types/blocks/columns/columns.d.ts +2 -2
- package/types/blocks/custom-code/custom-code.d.ts +2 -2
- package/types/blocks/embed/embed.d.ts +2 -2
- package/types/blocks/form/form.d.ts +2 -2
- package/types/blocks/fragment/fragment.d.ts +2 -2
- package/types/blocks/image/image.d.ts +2 -2
- package/types/blocks/img/img.d.ts +4 -3
- package/types/blocks/input/input.d.ts +4 -3
- package/types/blocks/raw-text/raw-text.d.ts +2 -2
- package/types/blocks/section/section.d.ts +4 -3
- package/types/blocks/select/select.d.ts +4 -3
- package/types/blocks/submit-button/submit-button.d.ts +4 -3
- package/types/blocks/symbol/symbol.d.ts +6 -4
- package/types/blocks/text/text.d.ts +2 -2
- package/types/blocks/textarea/textarea.d.ts +4 -3
- package/types/blocks/video/video.d.ts +2 -2
- package/types/components/block/block.d.ts +2 -2
- package/types/components/block/components/block-styles.d.ts +2 -2
- package/types/components/block/components/block-wrapper.d.ts +6 -5
- package/types/components/block/components/component-ref/component-ref.d.ts +2 -2
- package/types/components/block/components/interactive-element.d.ts +2 -2
- package/types/components/block/components/repeated-block.d.ts +2 -2
- package/types/components/blocks/blocks-wrapper.d.ts +2 -2
- package/types/components/blocks/blocks.d.ts +3 -3
- package/types/components/content/components/enable-editor.d.ts +2 -2
- package/types/components/content/components/styles.d.ts +2 -2
- package/types/components/content/content.d.ts +2 -2
- package/types/components/content-variants/content-variants.d.ts +2 -2
- package/types/components/inlined-script.d.ts +2 -2
- package/types/components/inlined-styles.d.ts +2 -2
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/context/types.d.ts +1 -1
- package/types/functions/evaluate/node-runtime/safeDynamicRequire.d.ts +0 -2
- package/types/helpers/ab-tests.d.ts +1 -1
- package/types/server-index.d.ts +2 -2
- package/lib/browser/server-entry-c98db16c.js +0 -2
- package/lib/edge/server-entry-c98db16c.js +0 -2
- package/lib/index.cjs +0 -14
- package/lib/index.mjs +0 -10
- package/lib/node/server-entry-c98db16c.js +0 -2
- package/types/node-runtime/index.d.ts +0 -1
- package/types/node-runtime/node-runtime.d.ts +0 -1
- package/types/node-runtime.d.ts +0 -1
package/lib/edge/index.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as Z, Fragment as U, jsx as g } from "react/jsx-runtime";
|
|
3
3
|
import { createContext as cr, useState as H, useContext as Hn, createElement as ur, useRef as Yt, useEffect as Q } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { _ as Uo, h as Bo, f as _o, g as Lo, e as $o, d as Vo, s as Do, t as Wo } from "./server-entry-
|
|
4
|
+
import { i as Ce, j as Ee, k as Wr, l as Ne, m as qt, n as Ht, T as tt, r as Hr, o as dt, p as Kn, a as Kr, c as Gr, b as dr, q as zr, u as Gn, v as zn, w as Xr } from "./server-entry-0aebe4be.mjs";
|
|
5
|
+
import { _ as Uo, h as Bo, f as _o, g as Lo, e as $o, d as Vo, s as Do, t as Wo } from "./server-entry-0aebe4be.mjs";
|
|
6
6
|
function Jr(e) {
|
|
7
7
|
return /* @__PURE__ */ Z(U, { children: [
|
|
8
8
|
e.link ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
9
9
|
"a",
|
|
10
10
|
{
|
|
11
|
-
role: "button",
|
|
12
11
|
...e.attributes,
|
|
13
12
|
href: e.link,
|
|
14
13
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
14
|
+
role: "button",
|
|
15
15
|
children: e.text
|
|
16
16
|
}
|
|
17
17
|
) }) : /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
@@ -19,58 +19,39 @@ function Jr(e) {
|
|
|
19
19
|
{
|
|
20
20
|
...e.attributes,
|
|
21
21
|
style: e.attributes.style,
|
|
22
|
-
className: e.attributes.className + " button-
|
|
22
|
+
className: e.attributes.className + " button-5294b10c",
|
|
23
23
|
children: e.text
|
|
24
24
|
}
|
|
25
25
|
) }),
|
|
26
|
-
/* @__PURE__ */ g("style", { children: `.button-
|
|
26
|
+
/* @__PURE__ */ g("style", { children: `.button-5294b10c {
|
|
27
27
|
all: unset;
|
|
28
28
|
}` })
|
|
29
29
|
] });
|
|
30
30
|
}
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
medium: {
|
|
38
|
-
min: 641,
|
|
39
|
-
default: 642,
|
|
40
|
-
max: 991
|
|
31
|
+
const Zt = cr({
|
|
32
|
+
content: null,
|
|
33
|
+
context: {},
|
|
34
|
+
localState: void 0,
|
|
35
|
+
rootSetState() {
|
|
41
36
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
min: n,
|
|
58
|
-
default: n + 1
|
|
59
|
-
};
|
|
60
|
-
const i = r.small.max + 1;
|
|
61
|
-
r.medium = {
|
|
62
|
-
max: t,
|
|
63
|
-
min: i,
|
|
64
|
-
default: i + 1
|
|
37
|
+
rootState: {},
|
|
38
|
+
apiKey: null,
|
|
39
|
+
apiVersion: void 0,
|
|
40
|
+
componentInfos: {},
|
|
41
|
+
inheritedStyles: {}
|
|
42
|
+
}), fr = cr({ registeredComponents: {} });
|
|
43
|
+
function Yr(e) {
|
|
44
|
+
var t;
|
|
45
|
+
return {
|
|
46
|
+
...(t = e.component) == null ? void 0 : t.options,
|
|
47
|
+
...e.options,
|
|
48
|
+
/**
|
|
49
|
+
* Our built-in components frequently make use of the block, so we provide all of it under `builderBlock`
|
|
50
|
+
*/
|
|
51
|
+
builderBlock: e
|
|
65
52
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
max: 2e3,
|
|
69
|
-
// TODO: decide upper limit
|
|
70
|
-
min: a,
|
|
71
|
-
default: a + 1
|
|
72
|
-
}, r;
|
|
73
|
-
}, pr = ({
|
|
53
|
+
}
|
|
54
|
+
const hr = ({
|
|
74
55
|
builder: e,
|
|
75
56
|
context: t,
|
|
76
57
|
event: r,
|
|
@@ -82,14 +63,14 @@ const dr = {
|
|
|
82
63
|
builder: e,
|
|
83
64
|
context: t,
|
|
84
65
|
event: r
|
|
85
|
-
}),
|
|
66
|
+
}), qr = () => ({
|
|
86
67
|
isEditing: Ce(),
|
|
87
68
|
isBrowser: Ee(),
|
|
88
69
|
isServer: !Ee(),
|
|
89
70
|
getUserAttributes: () => Wr()
|
|
90
|
-
}),
|
|
71
|
+
}), Zr = (e, {
|
|
91
72
|
isExpression: t = !0
|
|
92
|
-
}) => /* 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,
|
|
73
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, Qr = ({
|
|
93
74
|
code: e,
|
|
94
75
|
builder: t,
|
|
95
76
|
context: r,
|
|
@@ -98,15 +79,15 @@ const dr = {
|
|
|
98
79
|
rootSetState: a,
|
|
99
80
|
rootState: s
|
|
100
81
|
}) => {
|
|
101
|
-
const u =
|
|
82
|
+
const u = hr({
|
|
102
83
|
builder: t,
|
|
103
84
|
context: r,
|
|
104
85
|
event: n,
|
|
105
|
-
state:
|
|
86
|
+
state: ei(s, i, a)
|
|
106
87
|
});
|
|
107
|
-
return new Function(...u.map(([
|
|
88
|
+
return new Function(...u.map(([f]) => f), e)(...u.map(([, f]) => f));
|
|
108
89
|
};
|
|
109
|
-
function
|
|
90
|
+
function ei(e, t, r) {
|
|
110
91
|
if (e === t)
|
|
111
92
|
throw new Error("rootState === localState");
|
|
112
93
|
return new Proxy(e, {
|
|
@@ -118,13 +99,13 @@ function Qr(e, t, r) {
|
|
|
118
99
|
}
|
|
119
100
|
});
|
|
120
101
|
}
|
|
121
|
-
const
|
|
102
|
+
const pr = (e, t, r) => {
|
|
122
103
|
if (Object(e) !== e)
|
|
123
104
|
return e;
|
|
124
105
|
const n = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
125
106
|
return n.slice(0, -1).reduce((i, a, s) => Object(i[a]) === i[a] ? i[a] : i[a] = Math.abs(Number(n[s + 1])) >> 0 === +n[s + 1] ? [] : {}, e)[n[n.length - 1]] = r, e;
|
|
126
107
|
};
|
|
127
|
-
var $,
|
|
108
|
+
var $, ti = function(e) {
|
|
128
109
|
function t(o) {
|
|
129
110
|
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Vr.test(String.fromCharCode(o));
|
|
130
111
|
}
|
|
@@ -143,7 +124,7 @@ var $, ei = function(e) {
|
|
|
143
124
|
throw c = {
|
|
144
125
|
line: h,
|
|
145
126
|
ab: o - R
|
|
146
|
-
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = o, l.X = c, l.o =
|
|
127
|
+
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = o, l.X = c, l.o = d, l;
|
|
147
128
|
}
|
|
148
129
|
function i(o) {
|
|
149
130
|
o = o.split(" ");
|
|
@@ -154,43 +135,43 @@ var $, ei = function(e) {
|
|
|
154
135
|
};
|
|
155
136
|
}
|
|
156
137
|
function a() {
|
|
157
|
-
this.line = we, this.ab =
|
|
138
|
+
this.line = we, this.ab = d - de;
|
|
158
139
|
}
|
|
159
140
|
function s(o, l) {
|
|
160
|
-
Te =
|
|
141
|
+
Te = d, P.C && (It = new a()), A = o, f(), le = l, $e = o.m;
|
|
161
142
|
}
|
|
162
143
|
function u() {
|
|
163
|
-
for (var o =
|
|
164
|
-
++
|
|
165
|
-
|
|
144
|
+
for (var o = d, l = P.va && P.C && new a(), c = S.charCodeAt(d += 2); d < Ie && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
145
|
+
++d, c = S.charCodeAt(d);
|
|
146
|
+
P.va && P.va(!1, S.slice(o + 2, d), o, d, l, P.C && new a());
|
|
166
147
|
}
|
|
167
|
-
function
|
|
168
|
-
for (;
|
|
169
|
-
var o = S.charCodeAt(
|
|
148
|
+
function f() {
|
|
149
|
+
for (; d < Ie; ) {
|
|
150
|
+
var o = S.charCodeAt(d);
|
|
170
151
|
if (o === 32)
|
|
171
|
-
++
|
|
152
|
+
++d;
|
|
172
153
|
else if (o === 13)
|
|
173
|
-
++
|
|
154
|
+
++d, o = S.charCodeAt(d), o === 10 && ++d, P.C && (++we, de = d);
|
|
174
155
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
175
|
-
++
|
|
156
|
+
++d, P.C && (++we, de = d);
|
|
176
157
|
else if (8 < o && 14 > o)
|
|
177
|
-
++
|
|
158
|
+
++d;
|
|
178
159
|
else if (o === 47)
|
|
179
|
-
if (o = S.charCodeAt(
|
|
160
|
+
if (o = S.charCodeAt(d + 1), o === 42) {
|
|
180
161
|
o = void 0;
|
|
181
|
-
var l =
|
|
182
|
-
if (h === -1 && n(
|
|
183
|
-
for (ct.lastIndex = c; (o = ct.exec(S)) && o.index <
|
|
184
|
-
++we,
|
|
185
|
-
|
|
162
|
+
var l = P.va && P.C && new a(), c = d, h = S.indexOf("*/", d += 2);
|
|
163
|
+
if (h === -1 && n(d - 2, "Unterminated comment"), d = h + 2, P.C)
|
|
164
|
+
for (ct.lastIndex = c; (o = ct.exec(S)) && o.index < d; )
|
|
165
|
+
++we, de = o.index + o[0].length;
|
|
166
|
+
P.va && P.va(!0, S.slice(c + 2, h), c, d, l, P.C && new a());
|
|
186
167
|
} else if (o === 47)
|
|
187
168
|
u();
|
|
188
169
|
else
|
|
189
170
|
break;
|
|
190
171
|
else if (o === 160)
|
|
191
|
-
++
|
|
172
|
+
++d;
|
|
192
173
|
else if (5760 <= o && $r.test(String.fromCharCode(o)))
|
|
193
|
-
++
|
|
174
|
+
++d;
|
|
194
175
|
else
|
|
195
176
|
break;
|
|
196
177
|
}
|
|
@@ -198,31 +179,31 @@ var $, ei = function(e) {
|
|
|
198
179
|
function p(o) {
|
|
199
180
|
switch (o) {
|
|
200
181
|
case 46:
|
|
201
|
-
o = S.charCodeAt(
|
|
182
|
+
o = S.charCodeAt(d + 1), 48 <= o && 57 >= o ? C(!0) : (++d, s(Fn));
|
|
202
183
|
return;
|
|
203
184
|
case 40:
|
|
204
|
-
return ++
|
|
185
|
+
return ++d, s(fe);
|
|
205
186
|
case 41:
|
|
206
|
-
return ++
|
|
187
|
+
return ++d, s(ce);
|
|
207
188
|
case 59:
|
|
208
|
-
return ++
|
|
189
|
+
return ++d, s(he);
|
|
209
190
|
case 44:
|
|
210
|
-
return ++
|
|
191
|
+
return ++d, s(xe);
|
|
211
192
|
case 91:
|
|
212
|
-
return ++
|
|
193
|
+
return ++d, s(Ut);
|
|
213
194
|
case 93:
|
|
214
|
-
return ++
|
|
195
|
+
return ++d, s(Bt);
|
|
215
196
|
case 123:
|
|
216
|
-
return ++
|
|
197
|
+
return ++d, s(We);
|
|
217
198
|
case 125:
|
|
218
|
-
return ++
|
|
199
|
+
return ++d, s(Ae);
|
|
219
200
|
case 58:
|
|
220
|
-
return ++
|
|
201
|
+
return ++d, s(He);
|
|
221
202
|
case 63:
|
|
222
|
-
return ++
|
|
203
|
+
return ++d, s(Un);
|
|
223
204
|
case 48:
|
|
224
|
-
if (o = S.charCodeAt(
|
|
225
|
-
|
|
205
|
+
if (o = S.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
206
|
+
d += 2, o = _(16), o === null && n(z + 2, "Expected hexadecimal number"), r(S.charCodeAt(d)) && n(d, "Identifier directly after number"), s(De, o);
|
|
226
207
|
return;
|
|
227
208
|
}
|
|
228
209
|
case 49:
|
|
@@ -237,21 +218,21 @@ var $, ei = function(e) {
|
|
|
237
218
|
return C(!1);
|
|
238
219
|
case 34:
|
|
239
220
|
case 39:
|
|
240
|
-
|
|
221
|
+
d++;
|
|
241
222
|
for (var l = ""; ; ) {
|
|
242
|
-
|
|
243
|
-
var c = S.charCodeAt(
|
|
223
|
+
d >= Ie && n(z, "Unterminated string constant");
|
|
224
|
+
var c = S.charCodeAt(d);
|
|
244
225
|
if (c === o) {
|
|
245
|
-
++
|
|
226
|
+
++d, s(ot, l);
|
|
246
227
|
break;
|
|
247
228
|
}
|
|
248
229
|
if (c === 92) {
|
|
249
|
-
c = S.charCodeAt(++
|
|
250
|
-
var h = /^[0-7]+/.exec(S.slice(
|
|
230
|
+
c = S.charCodeAt(++d);
|
|
231
|
+
var h = /^[0-7]+/.exec(S.slice(d, d + 3));
|
|
251
232
|
for (h && (h = h[0]); h && 255 < parseInt(h, 8); )
|
|
252
233
|
h = h.slice(0, -1);
|
|
253
|
-
if (h === "0" && (h = null), ++
|
|
254
|
-
oe && n(
|
|
234
|
+
if (h === "0" && (h = null), ++d, h)
|
|
235
|
+
oe && n(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(h, 8)), d += h.length - 1;
|
|
255
236
|
else
|
|
256
237
|
switch (c) {
|
|
257
238
|
case 110:
|
|
@@ -286,42 +267,42 @@ var $, ei = function(e) {
|
|
|
286
267
|
l += "\0";
|
|
287
268
|
break;
|
|
288
269
|
case 13:
|
|
289
|
-
S.charCodeAt(
|
|
270
|
+
S.charCodeAt(d) === 10 && ++d;
|
|
290
271
|
case 10:
|
|
291
|
-
|
|
272
|
+
P.C && (de = d, ++we);
|
|
292
273
|
break;
|
|
293
274
|
default:
|
|
294
275
|
l += String.fromCharCode(c);
|
|
295
276
|
}
|
|
296
277
|
} else
|
|
297
|
-
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || n(z, "Unterminated string constant"), l += String.fromCharCode(c), ++
|
|
278
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || n(z, "Unterminated string constant"), l += String.fromCharCode(c), ++d;
|
|
298
279
|
}
|
|
299
280
|
return;
|
|
300
281
|
case 47:
|
|
301
|
-
o = S.charCodeAt(
|
|
282
|
+
o = S.charCodeAt(d + 1), $e ? (++d, N()) : o === 61 ? x(ke, 2) : x(Bn, 1);
|
|
302
283
|
return;
|
|
303
284
|
case 37:
|
|
304
285
|
case 42:
|
|
305
|
-
S.charCodeAt(
|
|
286
|
+
S.charCodeAt(d + 1) === 61 ? x(ke, 2) : x(Br, 1);
|
|
306
287
|
return;
|
|
307
288
|
case 124:
|
|
308
289
|
case 38:
|
|
309
|
-
l = S.charCodeAt(
|
|
290
|
+
l = S.charCodeAt(d + 1), l === o ? x(o === 124 ? $n : Vn, 2) : l === 61 ? x(ke, 2) : x(o === 124 ? Rr : Pr, 1);
|
|
310
291
|
return;
|
|
311
292
|
case 94:
|
|
312
|
-
S.charCodeAt(
|
|
293
|
+
S.charCodeAt(d + 1) === 61 ? x(ke, 2) : x(Or, 1);
|
|
313
294
|
return;
|
|
314
295
|
case 43:
|
|
315
296
|
case 45:
|
|
316
|
-
l = S.charCodeAt(
|
|
297
|
+
l = S.charCodeAt(d + 1), l === o ? l === 45 && S.charCodeAt(d + 2) === 62 && lt.test(S.slice(ve, d)) ? (d += 3, u(), f(), y()) : x(Ar, 2) : l === 61 ? x(ke, 2) : x(Ur, 1);
|
|
317
298
|
return;
|
|
318
299
|
case 60:
|
|
319
300
|
case 62:
|
|
320
|
-
l = S.charCodeAt(
|
|
301
|
+
l = S.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && S.charCodeAt(d + 2) === 62 ? 3 : 2, S.charCodeAt(d + c) === 61 ? x(ke, c + 1) : x(Fr, c)) : l === 33 && o === 60 && S.charCodeAt(d + 2) === 45 && S.charCodeAt(d + 3) === 45 ? (d += 4, u(), f(), y()) : (l === 61 && (c = S.charCodeAt(d + 2) === 61 ? 3 : 2), x(Mr, c));
|
|
321
302
|
return;
|
|
322
303
|
case 61:
|
|
323
304
|
case 33:
|
|
324
|
-
S.charCodeAt(
|
|
305
|
+
S.charCodeAt(d + 1) === 61 ? x(Nr, S.charCodeAt(d + 2) === 61 ? 3 : 2) : x(o === 61 ? _n : Ln, 1);
|
|
325
306
|
return;
|
|
326
307
|
case 126:
|
|
327
308
|
return x(Ln, 1);
|
|
@@ -329,26 +310,26 @@ var $, ei = function(e) {
|
|
|
329
310
|
return !1;
|
|
330
311
|
}
|
|
331
312
|
function y(o) {
|
|
332
|
-
if (o ?
|
|
333
|
-
return
|
|
334
|
-
if (
|
|
313
|
+
if (o ? d = z + 1 : z = d, P.C && (Et = new a()), o)
|
|
314
|
+
return N();
|
|
315
|
+
if (d >= Ie)
|
|
335
316
|
return s(At);
|
|
336
|
-
if (o = S.charCodeAt(
|
|
317
|
+
if (o = S.charCodeAt(d), r(o) || o === 92)
|
|
337
318
|
return V();
|
|
338
319
|
if (p(o) === !1) {
|
|
339
320
|
if (o = String.fromCharCode(o), o === "\\" || Wn.test(o))
|
|
340
321
|
return V();
|
|
341
|
-
n(
|
|
322
|
+
n(d, "Unexpected character '" + o + "'");
|
|
342
323
|
}
|
|
343
324
|
}
|
|
344
325
|
function x(o, l) {
|
|
345
|
-
var c = S.slice(
|
|
346
|
-
|
|
326
|
+
var c = S.slice(d, d + l);
|
|
327
|
+
d += l, s(o, c);
|
|
347
328
|
}
|
|
348
|
-
function
|
|
349
|
-
for (var o, l, c =
|
|
350
|
-
|
|
351
|
-
var h = S.charAt(
|
|
329
|
+
function N() {
|
|
330
|
+
for (var o, l, c = d; ; ) {
|
|
331
|
+
d >= Ie && n(c, "Unterminated regexp");
|
|
332
|
+
var h = S.charAt(d);
|
|
352
333
|
if (lt.test(h) && n(c, "Unterminated regexp"), o)
|
|
353
334
|
o = !1;
|
|
354
335
|
else {
|
|
@@ -360,9 +341,9 @@ var $, ei = function(e) {
|
|
|
360
341
|
break;
|
|
361
342
|
o = h === "\\";
|
|
362
343
|
}
|
|
363
|
-
++
|
|
344
|
+
++d;
|
|
364
345
|
}
|
|
365
|
-
o = S.slice(c,
|
|
346
|
+
o = S.slice(c, d), ++d, (l = L()) && !/^[gmi]*$/.test(l) && n(c, "Invalid regexp flag");
|
|
366
347
|
try {
|
|
367
348
|
var R = new RegExp(o, l);
|
|
368
349
|
} catch (X) {
|
|
@@ -371,17 +352,17 @@ var $, ei = function(e) {
|
|
|
371
352
|
s(gn, R);
|
|
372
353
|
}
|
|
373
354
|
function _(o, l) {
|
|
374
|
-
for (var c =
|
|
375
|
-
var te = S.charCodeAt(
|
|
355
|
+
for (var c = d, h = 0, R = l === void 0 ? 1 / 0 : l, X = 0; X < R; ++X) {
|
|
356
|
+
var te = S.charCodeAt(d);
|
|
376
357
|
if (te = 97 <= te ? te - 97 + 10 : 65 <= te ? te - 65 + 10 : 48 <= te && 57 >= te ? te - 48 : 1 / 0, te >= o)
|
|
377
358
|
break;
|
|
378
|
-
++
|
|
359
|
+
++d, h = h * o + te;
|
|
379
360
|
}
|
|
380
|
-
return
|
|
361
|
+
return d === c || l !== void 0 && d - c !== l ? null : h;
|
|
381
362
|
}
|
|
382
363
|
function C(o) {
|
|
383
|
-
var l =
|
|
384
|
-
o || _(10) !== null || n(l, "Invalid number"), S.charCodeAt(
|
|
364
|
+
var l = d, c = !1, h = S.charCodeAt(d) === 48;
|
|
365
|
+
o || _(10) !== null || n(l, "Invalid number"), S.charCodeAt(d) === 46 && (++d, _(10), c = !0), o = S.charCodeAt(d), (o === 69 || o === 101) && (o = S.charCodeAt(++d), o !== 43 && o !== 45 || ++d, _(10) === null && n(l, "Invalid number"), c = !0), r(S.charCodeAt(d)) && n(d, "Identifier directly after number"), o = S.slice(l, d);
|
|
385
366
|
var R;
|
|
386
367
|
c ? R = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || oe ? n(l, "Invalid number") : R = parseInt(o, 8) : R = parseInt(o, 10), s(De, R);
|
|
387
368
|
}
|
|
@@ -390,19 +371,19 @@ var $, ei = function(e) {
|
|
|
390
371
|
}
|
|
391
372
|
function L() {
|
|
392
373
|
Re = !1;
|
|
393
|
-
for (var o, l = !0, c =
|
|
394
|
-
var h = S.charCodeAt(
|
|
374
|
+
for (var o, l = !0, c = d; ; ) {
|
|
375
|
+
var h = S.charCodeAt(d);
|
|
395
376
|
if (t(h))
|
|
396
|
-
Re && (o += S.charAt(
|
|
377
|
+
Re && (o += S.charAt(d)), ++d;
|
|
397
378
|
else if (h === 92) {
|
|
398
|
-
Re || (o = S.slice(c,
|
|
379
|
+
Re || (o = S.slice(c, d)), Re = !0, S.charCodeAt(++d) !== 117 && n(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = I(4);
|
|
399
380
|
var R = String.fromCharCode(h);
|
|
400
|
-
R || n(
|
|
381
|
+
R || n(d - 1, "Invalid Unicode escape"), (l ? r(h) : t(h)) || n(d - 4, "Invalid Unicode escape"), o += R;
|
|
401
382
|
} else
|
|
402
383
|
break;
|
|
403
384
|
l = !1;
|
|
404
385
|
}
|
|
405
|
-
return Re ? o : S.slice(c,
|
|
386
|
+
return Re ? o : S.slice(c, d);
|
|
406
387
|
}
|
|
407
388
|
function V() {
|
|
408
389
|
var o = L(), l = je;
|
|
@@ -412,11 +393,11 @@ var $, ei = function(e) {
|
|
|
412
393
|
Tt = z, ve = Te, jt = It, y();
|
|
413
394
|
}
|
|
414
395
|
function K(o) {
|
|
415
|
-
if (oe = o,
|
|
416
|
-
for (;
|
|
417
|
-
|
|
418
|
-
`,
|
|
419
|
-
|
|
396
|
+
if (oe = o, d = z, P.C)
|
|
397
|
+
for (; d < de; )
|
|
398
|
+
de = S.lastIndexOf(`
|
|
399
|
+
`, de - 2) + 1, --we;
|
|
400
|
+
f(), y();
|
|
420
401
|
}
|
|
421
402
|
function ae() {
|
|
422
403
|
this.type = null, this.start = z, this.end = null;
|
|
@@ -426,14 +407,14 @@ var $, ei = function(e) {
|
|
|
426
407
|
}
|
|
427
408
|
function W() {
|
|
428
409
|
var o = new ae();
|
|
429
|
-
return
|
|
410
|
+
return P.C && (o.X = new se()), P.vb && (o.sourceFile = P.vb), P.Xa && (o.j = [z, 0]), o;
|
|
430
411
|
}
|
|
431
412
|
function ee(o) {
|
|
432
413
|
var l = new ae();
|
|
433
|
-
return l.start = o.start,
|
|
414
|
+
return l.start = o.start, P.C && (l.X = new se(), l.X.start = o.X.start), P.Xa && (l.j = [o.j[0], 0]), l;
|
|
434
415
|
}
|
|
435
416
|
function T(o, l) {
|
|
436
|
-
return o.type = l, o.end = ve,
|
|
417
|
+
return o.type = l, o.end = ve, P.C && (o.X.end = jt), P.Xa && (o.j[1] = ve), o;
|
|
437
418
|
}
|
|
438
419
|
function O(o) {
|
|
439
420
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
@@ -442,7 +423,7 @@ var $, ei = function(e) {
|
|
|
442
423
|
return A === o ? (v(), !0) : !1;
|
|
443
424
|
}
|
|
444
425
|
function B() {
|
|
445
|
-
return !
|
|
426
|
+
return !P.fc && (A === At || A === Ae || lt.test(S.slice(ve, z)));
|
|
446
427
|
}
|
|
447
428
|
function M() {
|
|
448
429
|
b(he) || B() || D();
|
|
@@ -476,21 +457,21 @@ var $, ei = function(e) {
|
|
|
476
457
|
case Sn:
|
|
477
458
|
return v(), G.push(_t), l.body = ie(), G.pop(), j(Ft), l.test = Be(), M(), T(l, "DoWhileStatement");
|
|
478
459
|
case Cn:
|
|
479
|
-
return v(), G.push(_t), j(
|
|
480
|
-
case
|
|
460
|
+
return v(), G.push(_t), j(fe), A === he ? vt(l, null) : A === Mt ? (o = W(), v(), pn(o, !0), T(o, "VariableDeclaration"), o.fa.length === 1 && b(at) ? hn(l, o) : vt(l, o)) : (o = q(!1, !0), b(at) ? (Se(o), hn(l, o)) : vt(l, o));
|
|
461
|
+
case Pt:
|
|
481
462
|
return v(), wt(l, !0);
|
|
482
463
|
case En:
|
|
483
464
|
return v(), l.test = Be(), l.da = ie(), l.alternate = b(wn) ? ie() : null, T(l, "IfStatement");
|
|
484
465
|
case In:
|
|
485
|
-
return Ve ||
|
|
486
|
-
case
|
|
466
|
+
return Ve || P.Ib || n(z, "'return' outside of function"), v(), b(he) || B() ? l.K = null : (l.K = q(), M()), T(l, "ReturnStatement");
|
|
467
|
+
case Nt:
|
|
487
468
|
for (v(), l.Qb = Be(), l.tb = [], j(We), G.push(Dr); A !== Ae; )
|
|
488
469
|
A === Ot || A === bn ? (o = A === Ot, h && T(h, "SwitchCase"), l.tb.push(h = W()), h.da = [], v(), o ? h.test = q() : (c && n(Tt, "Multiple default clauses"), c = !0, h.test = null), j(He)) : (h || D(), h.da.push(ie()));
|
|
489
470
|
return h && T(h, "SwitchCase"), v(), G.pop(), T(l, "SwitchStatement");
|
|
490
471
|
case Tn:
|
|
491
472
|
return v(), lt.test(S.slice(ve, z)) && n(ve, "Illegal newline after throw"), l.K = q(), M(), T(l, "ThrowStatement");
|
|
492
473
|
case jn:
|
|
493
|
-
return v(), l.block = _e(), l.Ea = null, A === yn && (o = W(), v(), j(
|
|
474
|
+
return v(), l.block = _e(), l.Ea = null, A === yn && (o = W(), v(), j(fe), o.Ua = ue(), oe && st(o.Ua.name) && n(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), j(ce), o.body = _e(), l.Ea = T(o, "CatchClause")), l.fb = b(kn) ? _e() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), T(l, "TryStatement");
|
|
494
475
|
case Mt:
|
|
495
476
|
return v(), pn(l), M(), T(l, "VariableDeclaration");
|
|
496
477
|
case Ft:
|
|
@@ -507,14 +488,14 @@ var $, ei = function(e) {
|
|
|
507
488
|
G[h].name === c && n(R.start, "Label '" + c + "' is already declared");
|
|
508
489
|
return G.push({
|
|
509
490
|
name: c,
|
|
510
|
-
kind: A.W ? "loop" : A ===
|
|
491
|
+
kind: A.W ? "loop" : A === Nt ? "switch" : null
|
|
511
492
|
}), l.body = ie(), G.pop(), l.label = R, T(l, "LabeledStatement");
|
|
512
493
|
}
|
|
513
494
|
return l.la = R, M(), T(l, "ExpressionStatement");
|
|
514
495
|
}
|
|
515
496
|
}
|
|
516
497
|
function Be() {
|
|
517
|
-
j(
|
|
498
|
+
j(fe);
|
|
518
499
|
var o = q();
|
|
519
500
|
return j(ce), o;
|
|
520
501
|
}
|
|
@@ -582,7 +563,7 @@ var $, ei = function(e) {
|
|
|
582
563
|
var c = ee(o);
|
|
583
564
|
return c.object = o, c.Wa = ue(!0), c.bb = !1, Le(T(c, "MemberExpression"), l);
|
|
584
565
|
}
|
|
585
|
-
return b(Ut) ? (c = ee(o), c.object = o, c.Wa = q(), c.bb = !0, j(Bt), Le(T(c, "MemberExpression"), l)) : !l && b(
|
|
566
|
+
return b(Ut) ? (c = ee(o), c.object = o, c.Wa = q(), c.bb = !0, j(Bt), Le(T(c, "MemberExpression"), l)) : !l && b(fe) ? (c = ee(o), c.callee = o, c.arguments = kt(ce, !1), Le(T(c, "CallExpression"), l)) : o;
|
|
586
567
|
}
|
|
587
568
|
function it() {
|
|
588
569
|
switch (A) {
|
|
@@ -595,23 +576,23 @@ var $, ei = function(e) {
|
|
|
595
576
|
case ot:
|
|
596
577
|
case gn:
|
|
597
578
|
return o = W(), o.value = le, o.raw = S.slice(z, Te), v(), T(o, "Literal");
|
|
598
|
-
case Nn:
|
|
599
579
|
case Pn:
|
|
580
|
+
case Nn:
|
|
600
581
|
case Mn:
|
|
601
582
|
return o = W(), o.value = A.$a, o.raw = A.l, v(), T(o, "Literal");
|
|
602
|
-
case
|
|
583
|
+
case fe:
|
|
603
584
|
o = Et;
|
|
604
585
|
var l = z;
|
|
605
586
|
v();
|
|
606
587
|
var c = q();
|
|
607
|
-
return c.start = l, c.end = Te,
|
|
588
|
+
return c.start = l, c.end = Te, P.C && (c.X.start = o, c.X.end = It), P.Xa && (c.j = [l, Te]), j(ce), c;
|
|
608
589
|
case Ut:
|
|
609
590
|
return o = W(), v(), o.elements = kt(Bt, !0, !0), T(o, "ArrayExpression");
|
|
610
591
|
case We:
|
|
611
592
|
for (o = W(), l = !0, c = !1, o.h = [], v(); !b(Ae); ) {
|
|
612
593
|
if (l)
|
|
613
594
|
l = !1;
|
|
614
|
-
else if (j(xe),
|
|
595
|
+
else if (j(xe), P.sb && b(Ae))
|
|
615
596
|
break;
|
|
616
597
|
var h = {
|
|
617
598
|
key: A === De || A === ot ? it() : ue(!0)
|
|
@@ -620,7 +601,7 @@ var $, ei = function(e) {
|
|
|
620
601
|
h.value = q(!0);
|
|
621
602
|
var X = h.kind = "init";
|
|
622
603
|
} else
|
|
623
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? D() : (R = c = !0, X = h.kind = h.key.name, h.key = A === De || A === ot ? it() : ue(!0), A !==
|
|
604
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? D() : (R = c = !0, X = h.kind = h.key.name, h.key = A === De || A === ot ? it() : ue(!0), A !== fe && D(), h.value = wt(W(), !1));
|
|
624
605
|
if (h.key.type === "Identifier" && (oe || c))
|
|
625
606
|
for (var te = 0; te < o.h.length; ++te) {
|
|
626
607
|
var Oe = o.h[te];
|
|
@@ -632,17 +613,17 @@ var $, ei = function(e) {
|
|
|
632
613
|
o.h.push(h);
|
|
633
614
|
}
|
|
634
615
|
return T(o, "ObjectExpression");
|
|
635
|
-
case
|
|
616
|
+
case Pt:
|
|
636
617
|
return o = W(), v(), wt(o, !1);
|
|
637
618
|
case Rn:
|
|
638
|
-
return o = W(), v(), o.callee = Le(it(), !0), o.arguments = b(
|
|
619
|
+
return o = W(), v(), o.callee = Le(it(), !0), o.arguments = b(fe) ? kt(ce, !1) : Tr, T(o, "NewExpression");
|
|
639
620
|
}
|
|
640
621
|
D();
|
|
641
622
|
}
|
|
642
623
|
function wt(o, l) {
|
|
643
624
|
A === je ? o.id = ue() : l ? D() : o.id = null, o.oa = [];
|
|
644
625
|
var c = !0;
|
|
645
|
-
for (j(
|
|
626
|
+
for (j(fe); !b(ce); )
|
|
646
627
|
c ? c = !1 : j(xe), o.oa.push(ue());
|
|
647
628
|
c = Ve;
|
|
648
629
|
var h = G;
|
|
@@ -658,7 +639,7 @@ var $, ei = function(e) {
|
|
|
658
639
|
for (var h = [], R = !0; !b(o); ) {
|
|
659
640
|
if (R)
|
|
660
641
|
R = !1;
|
|
661
|
-
else if (j(xe), l &&
|
|
642
|
+
else if (j(xe), l && P.sb && b(o))
|
|
662
643
|
break;
|
|
663
644
|
h.push(c && A === xe ? null : q(!0));
|
|
664
645
|
}
|
|
@@ -666,15 +647,15 @@ var $, ei = function(e) {
|
|
|
666
647
|
}
|
|
667
648
|
function ue(o) {
|
|
668
649
|
var l = W();
|
|
669
|
-
return o &&
|
|
650
|
+
return o && P.yb === "everywhere" && (o = !1), A === je ? (!o && (P.yb && _r(le) || oe && Dn(le)) && S.slice(z, Te).indexOf("\\") === -1 && n(z, "The keyword '" + le + "' is reserved"), l.name = le) : o && A.l ? l.name = A.l : D(), $e = !1, v(), T(l, "Identifier");
|
|
670
651
|
}
|
|
671
652
|
e.version = "0.5.0";
|
|
672
|
-
var
|
|
653
|
+
var P, S = "", Ie, Ct;
|
|
673
654
|
e.parse = function(o, l) {
|
|
674
|
-
S = String(o), Ie = S.length,
|
|
655
|
+
S = String(o), Ie = S.length, P = l || {};
|
|
675
656
|
for (var c in mn)
|
|
676
|
-
Object.prototype.hasOwnProperty.call(
|
|
677
|
-
for (Ct =
|
|
657
|
+
Object.prototype.hasOwnProperty.call(P, c) || (P[c] = mn[c]);
|
|
658
|
+
for (Ct = P.sourceFile, we = 1, d = de = 0, $e = !0, f(), c = P.dc, Tt = ve = d, P.C && (jt = new a()), Ve = oe = !1, G = [], y(), o = c || W(), l = !0, c || (o.body = []); A !== At; )
|
|
678
659
|
c = ie(), o.body.push(c), l && O(c) && K(!0), l = !1;
|
|
679
660
|
return T(o, "Program");
|
|
680
661
|
};
|
|
@@ -689,7 +670,7 @@ var $, ei = function(e) {
|
|
|
689
670
|
dc: null,
|
|
690
671
|
sourceFile: null,
|
|
691
672
|
vb: null
|
|
692
|
-
},
|
|
673
|
+
}, d = 0, z = 0, Te = 0, Et, It, A, le, $e, we, de, Tt = 0, ve = 0, jt, Ve, G, oe, Tr = [], De = {
|
|
693
674
|
type: "num"
|
|
694
675
|
}, gn = {
|
|
695
676
|
type: "regexp"
|
|
@@ -723,14 +704,14 @@ var $, ei = function(e) {
|
|
|
723
704
|
}, Cn = {
|
|
724
705
|
l: "for",
|
|
725
706
|
W: !0
|
|
726
|
-
},
|
|
707
|
+
}, Pt = {
|
|
727
708
|
l: "function"
|
|
728
709
|
}, En = {
|
|
729
710
|
l: "if"
|
|
730
711
|
}, In = {
|
|
731
712
|
l: "return",
|
|
732
713
|
m: !0
|
|
733
|
-
},
|
|
714
|
+
}, Nt = {
|
|
734
715
|
l: "switch"
|
|
735
716
|
}, Tn = {
|
|
736
717
|
l: "throw",
|
|
@@ -749,10 +730,10 @@ var $, ei = function(e) {
|
|
|
749
730
|
m: !0
|
|
750
731
|
}, On = {
|
|
751
732
|
l: "this"
|
|
752
|
-
},
|
|
733
|
+
}, Pn = {
|
|
753
734
|
l: "null",
|
|
754
735
|
$a: null
|
|
755
|
-
},
|
|
736
|
+
}, Nn = {
|
|
756
737
|
l: "true",
|
|
757
738
|
$a: !0
|
|
758
739
|
}, Mn = {
|
|
@@ -773,17 +754,17 @@ var $, ei = function(e) {
|
|
|
773
754
|
else: wn,
|
|
774
755
|
finally: kn,
|
|
775
756
|
for: Cn,
|
|
776
|
-
function:
|
|
757
|
+
function: Pt,
|
|
777
758
|
if: En,
|
|
778
759
|
return: In,
|
|
779
|
-
switch:
|
|
760
|
+
switch: Nt,
|
|
780
761
|
throw: Tn,
|
|
781
762
|
try: jn,
|
|
782
763
|
var: Mt,
|
|
783
764
|
while: Ft,
|
|
784
765
|
with: An,
|
|
785
|
-
null:
|
|
786
|
-
true:
|
|
766
|
+
null: Pn,
|
|
767
|
+
true: Nn,
|
|
787
768
|
false: Mn,
|
|
788
769
|
new: Rn,
|
|
789
770
|
in: at,
|
|
@@ -818,7 +799,7 @@ var $, ei = function(e) {
|
|
|
818
799
|
m: !0
|
|
819
800
|
}, Ae = {
|
|
820
801
|
type: "}"
|
|
821
|
-
},
|
|
802
|
+
}, fe = {
|
|
822
803
|
type: "(",
|
|
823
804
|
m: !0
|
|
824
805
|
}, ce = {
|
|
@@ -865,10 +846,10 @@ var $, ei = function(e) {
|
|
|
865
846
|
}, Or = {
|
|
866
847
|
L: 4,
|
|
867
848
|
m: !0
|
|
868
|
-
},
|
|
849
|
+
}, Pr = {
|
|
869
850
|
L: 5,
|
|
870
851
|
m: !0
|
|
871
|
-
},
|
|
852
|
+
}, Nr = {
|
|
872
853
|
L: 6,
|
|
873
854
|
m: !0
|
|
874
855
|
}, Mr = {
|
|
@@ -890,7 +871,7 @@ var $, ei = function(e) {
|
|
|
890
871
|
kind: "switch"
|
|
891
872
|
};
|
|
892
873
|
}, Kt = Kt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
893
|
-
|
|
874
|
+
ti(Kt.j || (Kt.j = {}));
|
|
894
875
|
function m(e, t) {
|
|
895
876
|
typeof e == "string" && (e = Me(e, "code"));
|
|
896
877
|
var r = e.constructor;
|
|
@@ -909,10 +890,10 @@ function m(e, t) {
|
|
|
909
890
|
this.N = zt(this, this.ra, null), this.Na = this.N.object, this.ra = Me(this.ba.join(`
|
|
910
891
|
`), "polyfills"), this.ba = void 0, pt(this.ra), a = new k(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = n, a = new k(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
911
892
|
}
|
|
912
|
-
var
|
|
893
|
+
var Xn = {
|
|
913
894
|
C: !0,
|
|
914
895
|
kc: 5
|
|
915
|
-
},
|
|
896
|
+
}, Qt = {
|
|
916
897
|
configurable: !0,
|
|
917
898
|
enumerable: !0,
|
|
918
899
|
writable: !1
|
|
@@ -928,20 +909,20 @@ var Jn = {
|
|
|
928
909
|
configurable: !1,
|
|
929
910
|
enumerable: !1,
|
|
930
911
|
writable: !1
|
|
931
|
-
},
|
|
912
|
+
}, Jn = {
|
|
932
913
|
configurable: !1,
|
|
933
914
|
enumerable: !0,
|
|
934
915
|
writable: !0
|
|
935
|
-
},
|
|
916
|
+
}, mr = {
|
|
936
917
|
STEP_ERROR: !0
|
|
937
918
|
}, Ue = {
|
|
938
919
|
SCOPE_REFERENCE: !0
|
|
939
920
|
}, Ze = {
|
|
940
921
|
VALUE_IN_DESCRIPTOR: !0
|
|
941
|
-
},
|
|
922
|
+
}, Pe = {
|
|
942
923
|
REGEXP_TIMEOUT: !0
|
|
943
|
-
},
|
|
944
|
-
function
|
|
924
|
+
}, Yn = [], me = null, Ye = null, be = typeof globalThis > "u" ? void 0 : globalThis, ni = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
|
|
925
|
+
function en(e) {
|
|
945
926
|
var t = e >>> 0;
|
|
946
927
|
return t === Number(e) ? t : NaN;
|
|
947
928
|
}
|
|
@@ -967,8 +948,8 @@ $.Kb = 0;
|
|
|
967
948
|
$.ic = 0;
|
|
968
949
|
function Me(e, t) {
|
|
969
950
|
var r = {}, n;
|
|
970
|
-
for (n in
|
|
971
|
-
r[n] =
|
|
951
|
+
for (n in Xn)
|
|
952
|
+
r[n] = Xn[n];
|
|
972
953
|
return r.sourceFile = t, be.j.parse(e, r);
|
|
973
954
|
}
|
|
974
955
|
$.Jb = function(e) {
|
|
@@ -991,7 +972,7 @@ $.lb = function() {
|
|
|
991
972
|
if (r = this.ca[0], !r || r.time > Date.now())
|
|
992
973
|
r = null;
|
|
993
974
|
else {
|
|
994
|
-
this.ca.shift(), 0 <= r.interval &&
|
|
975
|
+
this.ca.shift(), 0 <= r.interval && vr(this, r, r.interval);
|
|
995
976
|
var n = new k(r.node, r.scope);
|
|
996
977
|
r.zb && (n.ia = 2, n.B = this.Na, n.U = r.zb, n.Qa = !0, n.F = r.Lb), r = n;
|
|
997
978
|
}
|
|
@@ -1004,7 +985,7 @@ $.lb = function() {
|
|
|
1004
985
|
try {
|
|
1005
986
|
var a = this.rb[n.type](e, r, n);
|
|
1006
987
|
} catch (s) {
|
|
1007
|
-
if (s !==
|
|
988
|
+
if (s !== mr)
|
|
1008
989
|
throw this.value !== s && (this.value = void 0), s;
|
|
1009
990
|
} finally {
|
|
1010
991
|
Ye = i;
|
|
@@ -1022,8 +1003,8 @@ $.Eb = function() {
|
|
|
1022
1003
|
;
|
|
1023
1004
|
return this.za;
|
|
1024
1005
|
};
|
|
1025
|
-
function
|
|
1026
|
-
e.g(t, "NaN", NaN, Ke), e.g(t, "Infinity", 1 / 0, Ke), e.g(t, "undefined", void 0, Ke), e.g(t, "window", t,
|
|
1006
|
+
function ri(e, t) {
|
|
1007
|
+
e.g(t, "NaN", NaN, Ke), e.g(t, "Infinity", 1 / 0, Ke), e.g(t, "undefined", void 0, Ke), e.g(t, "window", t, Qt), e.g(t, "this", t, Ke), e.g(t, "self", t), e.M = new F(null), e.Z = new F(e.M), ii(e, t), oi(e, t), t.xa = e.M, e.g(t, "constructor", e.v, w), ai(e, t), si(e, t), li(e, t), ci(e, t), ui(e, t), di(e, t), fi(e, t), hi(e, t), pi(e, t);
|
|
1027
1008
|
var r = e.i(function() {
|
|
1028
1009
|
throw EvalError("Can't happen");
|
|
1029
1010
|
}, !1);
|
|
@@ -1039,24 +1020,24 @@ function ni(e, t) {
|
|
|
1039
1020
|
};
|
|
1040
1021
|
}(n[i][0]), e.g(t, n[i][1], e.i(r, !1), w);
|
|
1041
1022
|
r = function(a) {
|
|
1042
|
-
return
|
|
1023
|
+
return qn(e, !1, arguments);
|
|
1043
1024
|
}, e.g(t, "setTimeout", e.i(r, !1), w), r = function(a) {
|
|
1044
|
-
return
|
|
1025
|
+
return qn(e, !0, arguments);
|
|
1045
1026
|
}, e.g(t, "setInterval", e.i(r, !1), w), r = function(a) {
|
|
1046
|
-
|
|
1027
|
+
Zn(e, a);
|
|
1047
1028
|
}, e.g(t, "clearTimeout", e.i(r, !1), w), r = function(a) {
|
|
1048
|
-
|
|
1029
|
+
Zn(e, a);
|
|
1049
1030
|
}, e.g(t, "clearInterval", e.i(r, !1), w), 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);
|
|
1050
1031
|
}
|
|
1051
1032
|
$.Wb = 0;
|
|
1052
|
-
function
|
|
1033
|
+
function ii(e, t) {
|
|
1053
1034
|
var r = /^[A-Za-z_$][\w$]*$/, n = function(i) {
|
|
1054
1035
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1055
1036
|
if (s) {
|
|
1056
1037
|
s = s.split(/\s*,\s*/);
|
|
1057
1038
|
for (var u = 0; u < s.length; u++) {
|
|
1058
|
-
var
|
|
1059
|
-
r.test(
|
|
1039
|
+
var f = s[u];
|
|
1040
|
+
r.test(f) || E(e, e.T, "Invalid function argument: " + f);
|
|
1060
1041
|
}
|
|
1061
1042
|
s = s.join(", ");
|
|
1062
1043
|
}
|
|
@@ -1065,12 +1046,12 @@ function ri(e, t) {
|
|
|
1065
1046
|
} catch (y) {
|
|
1066
1047
|
E(e, e.T, "Invalid code: " + y.message);
|
|
1067
1048
|
}
|
|
1068
|
-
return p.body.length !== 1 && E(e, e.T, "Invalid code in function body"),
|
|
1049
|
+
return p.body.length !== 1 && E(e, e.T, "Invalid code in function body"), rn(e, p.body[0].la, e.N, "anonymous");
|
|
1069
1050
|
};
|
|
1070
1051
|
e.O = e.i(n, !0), e.g(t, "Function", e.O, w), e.g(e.O, "prototype", e.Z, w), e.g(e.Z, "constructor", e.O, w), e.Z.Ta = function() {
|
|
1071
1052
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, re), e.Z.H = "Function", n = function(i, a) {
|
|
1072
1053
|
var s = e.o[e.o.length - 1];
|
|
1073
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof F ? s.F =
|
|
1054
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof F ? s.F = gr(e, a) : E(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1074
1055
|
}, J(e, e.O, "apply", n), n = function(i) {
|
|
1075
1056
|
var a = e.o[e.o.length - 1];
|
|
1076
1057
|
a.U = this, a.B = i, a.F = [];
|
|
@@ -1083,7 +1064,7 @@ function ri(e, t) {
|
|
|
1083
1064
|
return this.valueOf();
|
|
1084
1065
|
}, J(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1), w);
|
|
1085
1066
|
}
|
|
1086
|
-
function
|
|
1067
|
+
function oi(e, t) {
|
|
1087
1068
|
function r(i) {
|
|
1088
1069
|
i != null || E(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1089
1070
|
}
|
|
@@ -1128,11 +1109,11 @@ function ii(e, t) {
|
|
|
1128
1109
|
}
|
|
1129
1110
|
}, J(e, e.v, "isPrototypeOf", n);
|
|
1130
1111
|
}
|
|
1131
|
-
function
|
|
1112
|
+
function ai(e, t) {
|
|
1132
1113
|
var r = function(n) {
|
|
1133
1114
|
var i = ye(e) ? this : Fe(e), a = arguments[0];
|
|
1134
1115
|
if (arguments.length === 1 && typeof a == "number")
|
|
1135
|
-
isNaN(
|
|
1116
|
+
isNaN(en(a)) && E(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1136
1117
|
else {
|
|
1137
1118
|
for (a = 0; a < arguments.length; a++)
|
|
1138
1119
|
i.h[a] = arguments[a];
|
|
@@ -1148,7 +1129,7 @@ function oi(e, t) {
|
|
|
1148
1129
|
writable: !0
|
|
1149
1130
|
}), 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(',');", "}", ");", "})();", "");
|
|
1150
1131
|
}
|
|
1151
|
-
function
|
|
1132
|
+
function si(e, t) {
|
|
1152
1133
|
var r = function(n) {
|
|
1153
1134
|
return n = arguments.length ? be.String(n) : "", ye(e) ? (this.data = n, this) : n;
|
|
1154
1135
|
};
|
|
@@ -1169,11 +1150,11 @@ function ai(e, t) {
|
|
|
1169
1150
|
string: s,
|
|
1170
1151
|
separator: n,
|
|
1171
1152
|
limit: i
|
|
1172
|
-
}, n, a), n !==
|
|
1153
|
+
}, n, a), n !== Pe && a(pe(e, n));
|
|
1173
1154
|
else {
|
|
1174
|
-
var u = e.ha(),
|
|
1155
|
+
var u = e.ha(), f = Xe(e, n, u, a);
|
|
1175
1156
|
u.onmessage = function(p) {
|
|
1176
|
-
clearTimeout(
|
|
1157
|
+
clearTimeout(f), a(pe(e, p.data));
|
|
1177
1158
|
}, u.postMessage(["split", s, n, i]);
|
|
1178
1159
|
}
|
|
1179
1160
|
return;
|
|
@@ -1186,11 +1167,11 @@ function ai(e, t) {
|
|
|
1186
1167
|
n = Ge(e, "string.match(regexp)", {
|
|
1187
1168
|
string: a,
|
|
1188
1169
|
regexp: n
|
|
1189
|
-
}, n, i), n !==
|
|
1170
|
+
}, n, i), n !== Pe && i(n && pe(e, n));
|
|
1190
1171
|
else {
|
|
1191
1172
|
var s = e.ha(), u = Xe(e, n, s, i);
|
|
1192
|
-
s.onmessage = function(
|
|
1193
|
-
clearTimeout(u), i(
|
|
1173
|
+
s.onmessage = function(f) {
|
|
1174
|
+
clearTimeout(u), i(f.data && pe(e, f.data));
|
|
1194
1175
|
}, s.postMessage(["match", a, n]);
|
|
1195
1176
|
}
|
|
1196
1177
|
else
|
|
@@ -1202,11 +1183,11 @@ function ai(e, t) {
|
|
|
1202
1183
|
n = Ge(e, "string.search(regexp)", {
|
|
1203
1184
|
string: a,
|
|
1204
1185
|
regexp: n
|
|
1205
|
-
}, n, i), n !==
|
|
1186
|
+
}, n, i), n !== Pe && i(n);
|
|
1206
1187
|
else {
|
|
1207
1188
|
var s = e.ha(), u = Xe(e, n, s, i);
|
|
1208
|
-
s.onmessage = function(
|
|
1209
|
-
clearTimeout(u), i(
|
|
1189
|
+
s.onmessage = function(f) {
|
|
1190
|
+
clearTimeout(u), i(f.data);
|
|
1210
1191
|
}, s.postMessage(["search", a, n]);
|
|
1211
1192
|
}
|
|
1212
1193
|
else
|
|
@@ -1219,11 +1200,11 @@ function ai(e, t) {
|
|
|
1219
1200
|
string: s,
|
|
1220
1201
|
substr: n,
|
|
1221
1202
|
newSubstr: i
|
|
1222
|
-
}, n, a), n !==
|
|
1203
|
+
}, n, a), n !== Pe && a(n);
|
|
1223
1204
|
else {
|
|
1224
|
-
var u = e.ha(),
|
|
1205
|
+
var u = e.ha(), f = Xe(e, n, u, a);
|
|
1225
1206
|
u.onmessage = function(p) {
|
|
1226
|
-
clearTimeout(
|
|
1207
|
+
clearTimeout(f), a(p.data);
|
|
1227
1208
|
}, u.postMessage(["replace", s, n, i]);
|
|
1228
1209
|
}
|
|
1229
1210
|
return;
|
|
@@ -1231,12 +1212,12 @@ function ai(e, t) {
|
|
|
1231
1212
|
a(s.replace(n, i));
|
|
1232
1213
|
}, Je(e, e.J, "replace", r), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1233
1214
|
}
|
|
1234
|
-
function
|
|
1215
|
+
function li(e, t) {
|
|
1235
1216
|
e.mb = e.i(function(r) {
|
|
1236
1217
|
return r = be.Boolean(r), ye(e) ? (this.data = r, this) : r;
|
|
1237
1218
|
}, !0), e.g(t, "Boolean", e.mb, w);
|
|
1238
1219
|
}
|
|
1239
|
-
function
|
|
1220
|
+
function ci(e, t) {
|
|
1240
1221
|
var r = function(n) {
|
|
1241
1222
|
return n = arguments.length ? be.Number(n) : 0, ye(e) ? (this.data = n, this) : n;
|
|
1242
1223
|
};
|
|
@@ -1275,7 +1256,7 @@ function li(e, t) {
|
|
|
1275
1256
|
}
|
|
1276
1257
|
}, J(e, e.aa, "toLocaleString", r);
|
|
1277
1258
|
}
|
|
1278
|
-
function
|
|
1259
|
+
function ui(e, t) {
|
|
1279
1260
|
var r = function(i, a) {
|
|
1280
1261
|
if (!ye(e))
|
|
1281
1262
|
return be.Date();
|
|
@@ -1288,13 +1269,13 @@ function ci(e, t) {
|
|
|
1288
1269
|
return function(a) {
|
|
1289
1270
|
var s = this.data;
|
|
1290
1271
|
s instanceof Date || E(e, e.j, i + " not called on a Date");
|
|
1291
|
-
for (var u = [],
|
|
1292
|
-
u[
|
|
1272
|
+
for (var u = [], f = 0; f < arguments.length; f++)
|
|
1273
|
+
u[f] = e.R(arguments[f]);
|
|
1293
1274
|
return s[i].apply(s, u);
|
|
1294
1275
|
};
|
|
1295
1276
|
}(t[n]), J(e, e.$, t[n], r);
|
|
1296
1277
|
}
|
|
1297
|
-
function
|
|
1278
|
+
function di(e, t) {
|
|
1298
1279
|
var r = function(n, i) {
|
|
1299
1280
|
if (ye(e))
|
|
1300
1281
|
var a = this;
|
|
@@ -1309,7 +1290,7 @@ function ui(e, t) {
|
|
|
1309
1290
|
} catch (u) {
|
|
1310
1291
|
E(e, e.T, u.message);
|
|
1311
1292
|
}
|
|
1312
|
-
return
|
|
1293
|
+
return tn(e, a, s), a;
|
|
1313
1294
|
};
|
|
1314
1295
|
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, w), e.g(e.I.h.prototype, "global", void 0, re), e.g(e.I.h.prototype, "ignoreCase", void 0, re), e.g(e.I.h.prototype, "multiline", void 0, re), e.g(e.I.h.prototype, "source", "(?:)", re), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), r = function(n, i) {
|
|
1315
1296
|
function a(y) {
|
|
@@ -1325,11 +1306,11 @@ function ui(e, t) {
|
|
|
1325
1306
|
n = Ge(e, "regexp.exec(string)", {
|
|
1326
1307
|
string: n,
|
|
1327
1308
|
regexp: s
|
|
1328
|
-
}, s, i), n !==
|
|
1309
|
+
}, s, i), n !== Pe && (e.g(this, "lastIndex", s.lastIndex), i(a(n)));
|
|
1329
1310
|
else {
|
|
1330
|
-
var u = e.ha(),
|
|
1311
|
+
var u = e.ha(), f = Xe(e, s, u, i), p = this;
|
|
1331
1312
|
u.onmessage = function(y) {
|
|
1332
|
-
clearTimeout(
|
|
1313
|
+
clearTimeout(f), e.g(p, "lastIndex", y.data[1]), i(a(y.data[0]));
|
|
1333
1314
|
}, u.postMessage(["exec", s, s.lastIndex, n]);
|
|
1334
1315
|
}
|
|
1335
1316
|
else
|
|
@@ -1349,7 +1330,7 @@ function fi(e, t) {
|
|
|
1349
1330
|
return Gt(e, i, n), i;
|
|
1350
1331
|
}, !0), e.g(t, "Error", e.D, w), e.g(e.D.h.prototype, "message", "", w), e.g(e.D.h.prototype, "name", "Error", w), r("EvalError"), e.ob = r("RangeError"), e.pb = r("ReferenceError"), e.T = r("SyntaxError"), e.j = r("TypeError"), e.Gb = r("URIError");
|
|
1351
1332
|
}
|
|
1352
|
-
function
|
|
1333
|
+
function hi(e, t) {
|
|
1353
1334
|
var r = e.s(e.M);
|
|
1354
1335
|
e.g(t, "Math", r, w);
|
|
1355
1336
|
var n = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1358,7 +1339,7 @@ function di(e, t) {
|
|
|
1358
1339
|
for (n = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < n.length; t++)
|
|
1359
1340
|
e.g(r, n[t], e.i(Math[n[t]], !1), w);
|
|
1360
1341
|
}
|
|
1361
|
-
function
|
|
1342
|
+
function pi(e, t) {
|
|
1362
1343
|
var r = e.s(e.M);
|
|
1363
1344
|
e.g(t, "JSON", r, w), t = function(n) {
|
|
1364
1345
|
try {
|
|
@@ -1368,7 +1349,7 @@ function hi(e, t) {
|
|
|
1368
1349
|
}
|
|
1369
1350
|
return e.Ia(i);
|
|
1370
1351
|
}, e.g(r, "parse", e.i(t, !1)), t = function(n, i, a) {
|
|
1371
|
-
i && i.H === "Function" ? E(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i =
|
|
1352
|
+
i && i.H === "Function" ? E(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = gr(e, i), i = i.filter(function(u) {
|
|
1372
1353
|
return typeof u == "string" || typeof u == "number";
|
|
1373
1354
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), n = e.R(n);
|
|
1374
1355
|
try {
|
|
@@ -1391,7 +1372,7 @@ function Y(e, t, r) {
|
|
|
1391
1372
|
}
|
|
1392
1373
|
return !1;
|
|
1393
1374
|
}
|
|
1394
|
-
function
|
|
1375
|
+
function tn(e, t, r) {
|
|
1395
1376
|
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex, w), e.g(t, "source", r.source, re), e.g(t, "global", r.global, re), e.g(t, "ignoreCase", r.ignoreCase, re), e.g(t, "multiline", r.multiline, re);
|
|
1396
1377
|
}
|
|
1397
1378
|
function Gt(e, t, r) {
|
|
@@ -1413,7 +1394,7 @@ function Gt(e, t, r) {
|
|
|
1413
1394
|
}
|
|
1414
1395
|
$.ha = function() {
|
|
1415
1396
|
var e = this.ha.Mb;
|
|
1416
|
-
return e || (e = new Blob([
|
|
1397
|
+
return e || (e = new Blob([ni.join(`
|
|
1417
1398
|
`)], {
|
|
1418
1399
|
type: "application/javascript"
|
|
1419
1400
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1427,7 +1408,7 @@ function Ge(e, t, r, n, i) {
|
|
|
1427
1408
|
} catch {
|
|
1428
1409
|
i(null), E(e, e.D, "RegExp Timeout: " + n);
|
|
1429
1410
|
}
|
|
1430
|
-
return
|
|
1411
|
+
return Pe;
|
|
1431
1412
|
}
|
|
1432
1413
|
function ze(e, t, r) {
|
|
1433
1414
|
if (e.REGEXP_MODE === 0)
|
|
@@ -1473,19 +1454,19 @@ function Fe(e) {
|
|
|
1473
1454
|
writable: !0
|
|
1474
1455
|
}), t.H = "Array", t;
|
|
1475
1456
|
}
|
|
1476
|
-
function
|
|
1457
|
+
function nn(e, t, r) {
|
|
1477
1458
|
var n = e.s(e.Z);
|
|
1478
1459
|
return r ? (r = e.s(e.M), e.g(n, "prototype", r, w), e.g(r, "constructor", n, w)) : n.Ab = !0, e.g(n, "length", t, re), n.H = "Function", n;
|
|
1479
1460
|
}
|
|
1480
|
-
function
|
|
1481
|
-
var i =
|
|
1461
|
+
function rn(e, t, r, n) {
|
|
1462
|
+
var i = nn(e, t.oa.length, !0);
|
|
1482
1463
|
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "", re), i;
|
|
1483
1464
|
}
|
|
1484
1465
|
$.i = function(e, t) {
|
|
1485
|
-
return t =
|
|
1466
|
+
return t = nn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, re), t;
|
|
1486
1467
|
};
|
|
1487
1468
|
$.ub = function(e) {
|
|
1488
|
-
var t =
|
|
1469
|
+
var t = nn(this, e.length, !0);
|
|
1489
1470
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, re), t;
|
|
1490
1471
|
};
|
|
1491
1472
|
$.Ia = function(e) {
|
|
@@ -1495,7 +1476,7 @@ $.Ia = function(e) {
|
|
|
1495
1476
|
return e;
|
|
1496
1477
|
if (e instanceof RegExp) {
|
|
1497
1478
|
var t = this.s(this.Ma);
|
|
1498
|
-
return
|
|
1479
|
+
return tn(this, t, e), t;
|
|
1499
1480
|
}
|
|
1500
1481
|
if (e instanceof Date)
|
|
1501
1482
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1554,11 +1535,11 @@ function pe(e, t) {
|
|
|
1554
1535
|
e.g(r, n[i], t[n[i]]);
|
|
1555
1536
|
return r;
|
|
1556
1537
|
}
|
|
1557
|
-
function
|
|
1538
|
+
function gr(e, t) {
|
|
1558
1539
|
var r = [], n;
|
|
1559
1540
|
for (n in t.h)
|
|
1560
1541
|
r[n] = e.G(t, n);
|
|
1561
|
-
return r.length =
|
|
1542
|
+
return r.length = en(e.G(t, "length")) || 0, r;
|
|
1562
1543
|
}
|
|
1563
1544
|
function ge(e, t) {
|
|
1564
1545
|
switch (typeof t) {
|
|
@@ -1611,7 +1592,7 @@ $.g = function(e, t, r, n) {
|
|
|
1611
1592
|
if (t = String(t), e != null || E(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof F))
|
|
1612
1593
|
throw TypeError("Expecting native value or pseudo object");
|
|
1613
1594
|
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) && E(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1614
|
-
var i = !this.o ||
|
|
1595
|
+
var i = !this.o || on(this).S;
|
|
1615
1596
|
if (e instanceof F) {
|
|
1616
1597
|
if (Y(this, e, this.J)) {
|
|
1617
1598
|
var a = qe(t);
|
|
@@ -1627,7 +1608,7 @@ $.g = function(e, t, r, n) {
|
|
|
1627
1608
|
return;
|
|
1628
1609
|
r = n.value;
|
|
1629
1610
|
}
|
|
1630
|
-
if (r =
|
|
1611
|
+
if (r = en(r), isNaN(r) && E(this, this.ob, "Invalid array length"), r < a)
|
|
1631
1612
|
for (s in e.h) {
|
|
1632
1613
|
var s = qe(s);
|
|
1633
1614
|
!isNaN(s) && r <= s && delete e.h[s];
|
|
@@ -1679,7 +1660,7 @@ function J(e, t, r, n) {
|
|
|
1679
1660
|
function Je(e, t, r, n) {
|
|
1680
1661
|
e.g(t.h.prototype, r, e.ub(n), w);
|
|
1681
1662
|
}
|
|
1682
|
-
function
|
|
1663
|
+
function on(e) {
|
|
1683
1664
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1684
1665
|
throw Error("No scope found");
|
|
1685
1666
|
return e;
|
|
@@ -1692,15 +1673,15 @@ function zt(e, t, r) {
|
|
|
1692
1673
|
var i = t.body && t.body[0];
|
|
1693
1674
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (n = !0);
|
|
1694
1675
|
}
|
|
1695
|
-
return i = e.s(null), n = new
|
|
1676
|
+
return i = e.s(null), n = new xr(r, n, i), r || ri(e, n.object), Qe(e, t, n), n;
|
|
1696
1677
|
}
|
|
1697
|
-
function
|
|
1678
|
+
function an(e, t, r) {
|
|
1698
1679
|
if (!t)
|
|
1699
1680
|
throw Error("parentScope required");
|
|
1700
|
-
return e = r || e.s(null), new
|
|
1681
|
+
return e = r || e.s(null), new xr(t, t.S, e);
|
|
1701
1682
|
}
|
|
1702
|
-
function
|
|
1703
|
-
for (var r =
|
|
1683
|
+
function sn(e, t) {
|
|
1684
|
+
for (var r = on(e); r && r !== e.N; ) {
|
|
1704
1685
|
if (t in r.object.h)
|
|
1705
1686
|
return r.object.h[t];
|
|
1706
1687
|
r = r.Va;
|
|
@@ -1709,8 +1690,8 @@ function an(e, t) {
|
|
|
1709
1690
|
return e.G(r.object, t);
|
|
1710
1691
|
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || E(e, e.pb, t + " is not defined");
|
|
1711
1692
|
}
|
|
1712
|
-
function
|
|
1713
|
-
for (var n =
|
|
1693
|
+
function yr(e, t, r) {
|
|
1694
|
+
for (var n = on(e), i = n.S; n && n !== e.N; ) {
|
|
1714
1695
|
if (t in n.object.h) {
|
|
1715
1696
|
try {
|
|
1716
1697
|
n.object.h[t] = r;
|
|
@@ -1758,33 +1739,33 @@ function Qe(e, t, r) {
|
|
|
1758
1739
|
if (Array.isArray(u)) {
|
|
1759
1740
|
for (i = 0; i < u.length; i++)
|
|
1760
1741
|
if (u[i] && u[i].constructor === a) {
|
|
1761
|
-
var
|
|
1762
|
-
for (s in
|
|
1763
|
-
n[s] =
|
|
1742
|
+
var f = Qe(e, u[i], r);
|
|
1743
|
+
for (s in f)
|
|
1744
|
+
n[s] = f[s];
|
|
1764
1745
|
}
|
|
1765
1746
|
} else if (u.constructor === a)
|
|
1766
|
-
for (s in
|
|
1767
|
-
n[s] =
|
|
1747
|
+
for (s in f = Qe(e, u, r), f)
|
|
1748
|
+
n[s] = f[s];
|
|
1768
1749
|
}
|
|
1769
1750
|
}
|
|
1770
1751
|
}
|
|
1771
1752
|
t.jb = n;
|
|
1772
1753
|
}
|
|
1773
1754
|
for (s in n)
|
|
1774
|
-
n[s] === !0 ? e.g(r.object, s, void 0,
|
|
1755
|
+
n[s] === !0 ? e.g(r.object, s, void 0, Jn) : e.g(r.object, s, rn(e, n[s], r), Jn);
|
|
1775
1756
|
return n;
|
|
1776
1757
|
}
|
|
1777
1758
|
function ye(e) {
|
|
1778
1759
|
return e.o[e.o.length - 1].isConstructor;
|
|
1779
1760
|
}
|
|
1780
|
-
function
|
|
1781
|
-
return t[0] === Ue ?
|
|
1761
|
+
function ln(e, t) {
|
|
1762
|
+
return t[0] === Ue ? sn(e, t[1]) : e.G(t[0], t[1]);
|
|
1782
1763
|
}
|
|
1783
|
-
function
|
|
1784
|
-
return t[0] === Ue ?
|
|
1764
|
+
function cn(e, t, r) {
|
|
1765
|
+
return t[0] === Ue ? yr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1785
1766
|
}
|
|
1786
1767
|
function E(e, t, r) {
|
|
1787
|
-
throw e.N ? (r !== void 0 && t instanceof F && (t = e.Aa(t), Gt(e, t, r)), nt(e, 4, t),
|
|
1768
|
+
throw e.N ? (r !== void 0 && t instanceof F && (t = e.Aa(t), Gt(e, t, r)), nt(e, 4, t), mr) : r === void 0 ? t : r;
|
|
1788
1769
|
}
|
|
1789
1770
|
function nt(e, t, r, n) {
|
|
1790
1771
|
if (t === 0)
|
|
@@ -1862,7 +1843,7 @@ function ne(e, t) {
|
|
|
1862
1843
|
}
|
|
1863
1844
|
return "???";
|
|
1864
1845
|
}
|
|
1865
|
-
function
|
|
1846
|
+
function qn(e, t, r) {
|
|
1866
1847
|
var n = e.o[e.o.length - 1], i = Array.from(r), a = i.shift();
|
|
1867
1848
|
r = Math.max(Number(i.shift() || 0), 0);
|
|
1868
1849
|
var s = e.ya();
|
|
@@ -1871,20 +1852,20 @@ function Zn(e, t, r) {
|
|
|
1871
1852
|
s.type = "CallExpression", n = n.scope;
|
|
1872
1853
|
} else {
|
|
1873
1854
|
try {
|
|
1874
|
-
var
|
|
1855
|
+
var f = Me(String(a), "taskCode" + e.ic++);
|
|
1875
1856
|
} catch (p) {
|
|
1876
1857
|
E(e, e.T, "Invalid code: " + p.message);
|
|
1877
1858
|
}
|
|
1878
|
-
s.type = "EvalProgram_", s.body =
|
|
1859
|
+
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0], pt(s, n ? n.start : void 0, n ? n.end : void 0), n = e.N, i.length = 0;
|
|
1879
1860
|
}
|
|
1880
|
-
return t = new
|
|
1861
|
+
return t = new mi(u, i, n, s, t ? r : -1), vr(e, t, r), t.Db;
|
|
1881
1862
|
}
|
|
1882
|
-
function
|
|
1863
|
+
function vr(e, t, r) {
|
|
1883
1864
|
t.time = Date.now() + r, e.ca.push(t), e.ca.sort(function(n, i) {
|
|
1884
1865
|
return n.time - i.time;
|
|
1885
1866
|
});
|
|
1886
1867
|
}
|
|
1887
|
-
function
|
|
1868
|
+
function Zn(e, t) {
|
|
1888
1869
|
for (var r = 0; r < e.ca.length; r++)
|
|
1889
1870
|
if (e.ca[r].Db == t) {
|
|
1890
1871
|
e.ca.splice(r, 1);
|
|
@@ -1898,7 +1879,7 @@ function rt(e, t, r) {
|
|
|
1898
1879
|
var n = e.ya();
|
|
1899
1880
|
return n.type = "CallExpression", e = new k(n, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1900
1881
|
}
|
|
1901
|
-
function
|
|
1882
|
+
function un(e, t, r, n) {
|
|
1902
1883
|
if (!e.Ka)
|
|
1903
1884
|
throw Error("Unexpected call to createSetter");
|
|
1904
1885
|
e.Ka = !1, r = Array.isArray(r) ? r[0] : e.Na;
|
|
@@ -1920,7 +1901,7 @@ $.ec = function(e) {
|
|
|
1920
1901
|
function k(e, t) {
|
|
1921
1902
|
this.node = e, this.scope = t;
|
|
1922
1903
|
}
|
|
1923
|
-
function
|
|
1904
|
+
function xr(e, t, r) {
|
|
1924
1905
|
this.Va = e, this.S = t, this.object = r;
|
|
1925
1906
|
}
|
|
1926
1907
|
function F(e) {
|
|
@@ -1936,7 +1917,7 @@ $.toString = function() {
|
|
|
1936
1917
|
if (!(this instanceof F))
|
|
1937
1918
|
return String(this);
|
|
1938
1919
|
if (this.H === "Array") {
|
|
1939
|
-
var e =
|
|
1920
|
+
var e = Yn;
|
|
1940
1921
|
e.push(this);
|
|
1941
1922
|
try {
|
|
1942
1923
|
var t = [], r = this.h.length, n = !1;
|
|
@@ -1952,7 +1933,7 @@ $.toString = function() {
|
|
|
1952
1933
|
return t.join(",");
|
|
1953
1934
|
}
|
|
1954
1935
|
if (this.H === "Error") {
|
|
1955
|
-
if (e =
|
|
1936
|
+
if (e = Yn, e.indexOf(this) !== -1)
|
|
1956
1937
|
return "[object Error]";
|
|
1957
1938
|
r = this;
|
|
1958
1939
|
do
|
|
@@ -1981,10 +1962,10 @@ $.toString = function() {
|
|
|
1981
1962
|
$.valueOf = function() {
|
|
1982
1963
|
return !Ye || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1983
1964
|
};
|
|
1984
|
-
function
|
|
1985
|
-
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++
|
|
1965
|
+
function mi(e, t, r, n, i) {
|
|
1966
|
+
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++gi, this.time = 0;
|
|
1986
1967
|
}
|
|
1987
|
-
var
|
|
1968
|
+
var gi = 0;
|
|
1988
1969
|
m.prototype.stepArrayExpression = function(e, t, r) {
|
|
1989
1970
|
r = r.elements;
|
|
1990
1971
|
var n = t.A || 0;
|
|
@@ -1999,7 +1980,7 @@ m.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
|
1999
1980
|
if (!t.ja)
|
|
2000
1981
|
return t.ja = !0, t = new k(r.left, t.scope), t.sa = !0, t;
|
|
2001
1982
|
if (!t.Da)
|
|
2002
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e =
|
|
1983
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e = ln(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, rt(this, e, t.Fa)) : (t.Da = !0, r.operator === "=" && r.left.type === "Identifier" && (t.Pa = r.left.name), new k(r.right, t.scope));
|
|
2003
1984
|
if (t.ta)
|
|
2004
1985
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2005
1986
|
else {
|
|
@@ -2044,8 +2025,8 @@ m.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
|
2044
2025
|
default:
|
|
2045
2026
|
throw SyntaxError("Unknown assignment expression: " + r.operator);
|
|
2046
2027
|
}
|
|
2047
|
-
if (r =
|
|
2048
|
-
return t.ta = !0, t.ib = n,
|
|
2028
|
+
if (r = cn(this, t.Fa, n))
|
|
2029
|
+
return t.ta = !0, t.ib = n, un(this, r, t.Fa, n);
|
|
2049
2030
|
e.pop(), e[e.length - 1].value = n;
|
|
2050
2031
|
}
|
|
2051
2032
|
};
|
|
@@ -2145,7 +2126,7 @@ m.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2145
2126
|
t.ia = 2;
|
|
2146
2127
|
var i = t.value;
|
|
2147
2128
|
if (Array.isArray(i)) {
|
|
2148
|
-
if (t.U =
|
|
2129
|
+
if (t.U = ln(this, i), i[0] === Ue ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2149
2130
|
return t.ia = 1, rt(this, i, t.value);
|
|
2150
2131
|
} else
|
|
2151
2132
|
t.U = i;
|
|
@@ -2173,7 +2154,7 @@ m.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2173
2154
|
this.g(n, i, t.F[i]);
|
|
2174
2155
|
for (this.g(r.object, "arguments", n), i = 0; i < e.oa.length; i++)
|
|
2175
2156
|
this.g(r.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2176
|
-
return r.S || (t.B = $t(this, t.B)), this.g(r.object, "this", t.B,
|
|
2157
|
+
return r.S || (t.B = $t(this, t.B)), this.g(r.object, "this", t.B, Qt), t.value = void 0, new k(e.body, r);
|
|
2177
2158
|
}
|
|
2178
2159
|
if (i.eval)
|
|
2179
2160
|
if (i = t.F[0], typeof i != "string")
|
|
@@ -2273,8 +2254,8 @@ m.prototype.stepForInStatement = function(e, t, r) {
|
|
|
2273
2254
|
t.pa = [Ue, e.fa[0].id.name];
|
|
2274
2255
|
else
|
|
2275
2256
|
return t.pa = null, t = new k(e, t.scope), t.sa = !0, t;
|
|
2276
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n =
|
|
2277
|
-
return
|
|
2257
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n = cn(this, t.pa, e)))
|
|
2258
|
+
return un(this, n, t.pa, e);
|
|
2278
2259
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, r.body)
|
|
2279
2260
|
return new k(r.body, t.scope);
|
|
2280
2261
|
};
|
|
@@ -2303,13 +2284,13 @@ m.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2303
2284
|
e.pop();
|
|
2304
2285
|
};
|
|
2305
2286
|
m.prototype.stepFunctionExpression = function(e, t, r) {
|
|
2306
|
-
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e =
|
|
2287
|
+
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e = an(this, e)), t.value = rn(this, r, e, t.Pa), r.id && this.g(e.object, r.id.name, t.value, Qt);
|
|
2307
2288
|
};
|
|
2308
2289
|
m.prototype.stepIdentifier = function(e, t, r) {
|
|
2309
2290
|
if (e.pop(), t.sa)
|
|
2310
2291
|
e[e.length - 1].value = [Ue, r.name];
|
|
2311
2292
|
else {
|
|
2312
|
-
if (t =
|
|
2293
|
+
if (t = sn(this, r.name), this.P)
|
|
2313
2294
|
return rt(this, t, this.Na);
|
|
2314
2295
|
e[e.length - 1].value = t;
|
|
2315
2296
|
}
|
|
@@ -2319,7 +2300,7 @@ m.prototype.stepLabeledStatement = function(e, t, r) {
|
|
|
2319
2300
|
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new k(r.body, t.scope), t.labels = e, t;
|
|
2320
2301
|
};
|
|
2321
2302
|
m.prototype.stepLiteral = function(e, t, r) {
|
|
2322
|
-
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma),
|
|
2303
|
+
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma), tn(this, r, t), t = r), e[e.length - 1].value = t;
|
|
2323
2304
|
};
|
|
2324
2305
|
m.prototype.stepLogicalExpression = function(e, t, r) {
|
|
2325
2306
|
if (r.operator !== "&&" && r.operator !== "||")
|
|
@@ -2422,7 +2403,7 @@ m.prototype.stepSwitchStatement = function(e, t, r) {
|
|
|
2422
2403
|
}
|
|
2423
2404
|
};
|
|
2424
2405
|
m.prototype.stepThisExpression = function(e) {
|
|
2425
|
-
e.pop(), e[e.length - 1].value =
|
|
2406
|
+
e.pop(), e[e.length - 1].value = sn(this, "this");
|
|
2426
2407
|
};
|
|
2427
2408
|
m.prototype.stepThrowStatement = function(e, t, r) {
|
|
2428
2409
|
if (t.ka)
|
|
@@ -2434,7 +2415,7 @@ m.prototype.stepTryStatement = function(e, t, r) {
|
|
|
2434
2415
|
if (!t.Rb)
|
|
2435
2416
|
return t.Rb = !0, new k(r.block, t.scope);
|
|
2436
2417
|
if (t.ea && t.ea.type === 4 && !t.Tb && r.Ea)
|
|
2437
|
-
return t.Tb = !0, e =
|
|
2418
|
+
return t.Tb = !0, e = an(this, t.scope), this.g(e.object, r.Ea.Ua.name, t.ea.value), t.ea = void 0, new k(r.Ea.body, e);
|
|
2438
2419
|
if (!t.Sb && r.fb)
|
|
2439
2420
|
return t.Sb = !0, new k(r.fb, t.scope);
|
|
2440
2421
|
e.pop(), t.ea && nt(this, t.ea.type, t.ea.value, t.ea.label);
|
|
@@ -2484,7 +2465,7 @@ m.prototype.stepUpdateExpression = function(e, t, r) {
|
|
|
2484
2465
|
if (!t.ja)
|
|
2485
2466
|
return t.ja = !0, e = new k(r.K, t.scope), e.sa = !0, e;
|
|
2486
2467
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2487
|
-
var n =
|
|
2468
|
+
var n = ln(this, t.Ga);
|
|
2488
2469
|
if (t.ma = n, this.P)
|
|
2489
2470
|
return t.Ba = !0, rt(this, n, t.Ga);
|
|
2490
2471
|
}
|
|
@@ -2497,15 +2478,15 @@ m.prototype.stepUpdateExpression = function(e, t, r) {
|
|
|
2497
2478
|
i = n - 1;
|
|
2498
2479
|
else
|
|
2499
2480
|
throw SyntaxError("Unknown update expression: " + r.operator);
|
|
2500
|
-
if (r = r.prefix ? i : n, n =
|
|
2501
|
-
return t.ta = !0, t.ib = r,
|
|
2481
|
+
if (r = r.prefix ? i : n, n = cn(this, t.Ga, i))
|
|
2482
|
+
return t.ta = !0, t.ib = r, un(this, n, t.Ga, i);
|
|
2502
2483
|
e.pop(), e[e.length - 1].value = r;
|
|
2503
2484
|
}
|
|
2504
2485
|
};
|
|
2505
2486
|
m.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
2506
2487
|
r = r.fa;
|
|
2507
2488
|
var n = t.A || 0, i = r[n];
|
|
2508
|
-
for (t.Bb && i && (
|
|
2489
|
+
for (t.Bb && i && (yr(this, i.id.name, t.value), t.Bb = !1, i = r[++n]); i; ) {
|
|
2509
2490
|
if (i.ua)
|
|
2510
2491
|
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new k(i.ua, t.scope);
|
|
2511
2492
|
i = r[++n];
|
|
@@ -2513,7 +2494,7 @@ m.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
|
2513
2494
|
e.pop();
|
|
2514
2495
|
};
|
|
2515
2496
|
m.prototype.stepWithStatement = function(e, t, r) {
|
|
2516
|
-
return t.Ca ? (e.pop(), e =
|
|
2497
|
+
return t.Ca ? (e.pop(), e = an(this, t.scope, t.value), new k(r.body, e)) : (t.Ca = !0, new k(r.object, t.scope));
|
|
2517
2498
|
};
|
|
2518
2499
|
m.prototype.stepWhileStatement = m.prototype.stepDoWhileStatement;
|
|
2519
2500
|
be.Interpreter = m;
|
|
@@ -2532,7 +2513,7 @@ m.prototype.getGlobalScope = m.prototype.Xb;
|
|
|
2532
2513
|
m.prototype.getStateStack = m.prototype.Yb;
|
|
2533
2514
|
m.prototype.setStateStack = m.prototype.ec;
|
|
2534
2515
|
m.VALUE_IN_DESCRIPTOR = Ze;
|
|
2535
|
-
const
|
|
2516
|
+
const yi = (e) => e.split(`
|
|
2536
2517
|
`).map((t) => {
|
|
2537
2518
|
const r = t.trim();
|
|
2538
2519
|
if (t.includes("__awaiter"))
|
|
@@ -2545,7 +2526,7 @@ const gi = (e) => e.split(`
|
|
|
2545
2526
|
${u}
|
|
2546
2527
|
`;
|
|
2547
2528
|
}).filter(Boolean).join(`
|
|
2548
|
-
`),
|
|
2529
|
+
`), Qn = (e) => e + "JSON", vi = ({
|
|
2549
2530
|
builder: e,
|
|
2550
2531
|
context: t,
|
|
2551
2532
|
event: r,
|
|
@@ -2557,18 +2538,18 @@ const gi = (e) => e.split(`
|
|
|
2557
2538
|
const u = {
|
|
2558
2539
|
...n,
|
|
2559
2540
|
...i
|
|
2560
|
-
},
|
|
2541
|
+
}, f = hr({
|
|
2561
2542
|
builder: e,
|
|
2562
2543
|
context: t,
|
|
2563
2544
|
event: r,
|
|
2564
2545
|
state: u
|
|
2565
|
-
}), p =
|
|
2566
|
-
const I =
|
|
2546
|
+
}), p = f.map(([C]) => {
|
|
2547
|
+
const I = Qn(C);
|
|
2567
2548
|
return `var ${C} = ${I} === undefined ? undefined : JSON.parse(${I});`;
|
|
2568
2549
|
}).join(`
|
|
2569
|
-
`), y =
|
|
2550
|
+
`), y = yi(s);
|
|
2570
2551
|
if (y === "") {
|
|
2571
|
-
|
|
2552
|
+
Ne.warn("Skipping evaluation of empty code block.");
|
|
2572
2553
|
return;
|
|
2573
2554
|
}
|
|
2574
2555
|
const x = `
|
|
@@ -2578,25 +2559,25 @@ function theFunction() {
|
|
|
2578
2559
|
${y}
|
|
2579
2560
|
}
|
|
2580
2561
|
theFunction();
|
|
2581
|
-
`,
|
|
2582
|
-
const L =
|
|
2562
|
+
`, N = (C, I) => {
|
|
2563
|
+
const L = pr(u, C, I);
|
|
2583
2564
|
a == null || a(L);
|
|
2584
2565
|
}, _ = function(C, I) {
|
|
2585
|
-
|
|
2566
|
+
f.forEach(([L, V]) => {
|
|
2586
2567
|
const v = JSON.stringify(V);
|
|
2587
|
-
C.setProperty(I,
|
|
2588
|
-
}), C.setProperty(I, "setRootState", C.createNativeFunction(
|
|
2568
|
+
C.setProperty(I, Qn(L), v);
|
|
2569
|
+
}), C.setProperty(I, "setRootState", C.createNativeFunction(N));
|
|
2589
2570
|
};
|
|
2590
2571
|
try {
|
|
2591
2572
|
const C = new m(x, _);
|
|
2592
2573
|
return C.run(), C.pseudoToNative(C.value);
|
|
2593
2574
|
} catch (C) {
|
|
2594
|
-
|
|
2575
|
+
Ne.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2595
2576
|
e: C
|
|
2596
2577
|
});
|
|
2597
2578
|
return;
|
|
2598
2579
|
}
|
|
2599
|
-
},
|
|
2580
|
+
}, xi = (e) => Ee() ? Qr(e) : vi(e);
|
|
2600
2581
|
function et({
|
|
2601
2582
|
code: e,
|
|
2602
2583
|
context: t,
|
|
@@ -2607,14 +2588,14 @@ function et({
|
|
|
2607
2588
|
isExpression: s = !0
|
|
2608
2589
|
}) {
|
|
2609
2590
|
if (e === "") {
|
|
2610
|
-
|
|
2591
|
+
Ne.warn("Skipping evaluation of empty code block.");
|
|
2611
2592
|
return;
|
|
2612
2593
|
}
|
|
2613
2594
|
const u = {
|
|
2614
|
-
code:
|
|
2595
|
+
code: Zr(e, {
|
|
2615
2596
|
isExpression: s
|
|
2616
2597
|
}),
|
|
2617
|
-
builder:
|
|
2598
|
+
builder: qr(),
|
|
2618
2599
|
context: t,
|
|
2619
2600
|
event: a,
|
|
2620
2601
|
rootSetState: i,
|
|
@@ -2622,15 +2603,15 @@ function et({
|
|
|
2622
2603
|
localState: r
|
|
2623
2604
|
};
|
|
2624
2605
|
try {
|
|
2625
|
-
return
|
|
2626
|
-
} catch (
|
|
2627
|
-
|
|
2606
|
+
return xi(u);
|
|
2607
|
+
} catch (f) {
|
|
2608
|
+
Ne.error("Failed code evaluation: " + f.message, {
|
|
2628
2609
|
code: e
|
|
2629
2610
|
});
|
|
2630
2611
|
return;
|
|
2631
2612
|
}
|
|
2632
2613
|
}
|
|
2633
|
-
const
|
|
2614
|
+
const bi = ({
|
|
2634
2615
|
block: e,
|
|
2635
2616
|
context: t,
|
|
2636
2617
|
localState: r,
|
|
@@ -2649,18 +2630,18 @@ const xi = ({
|
|
|
2649
2630
|
}
|
|
2650
2631
|
};
|
|
2651
2632
|
for (const u in e.bindings) {
|
|
2652
|
-
const
|
|
2653
|
-
code:
|
|
2633
|
+
const f = e.bindings[u], p = et({
|
|
2634
|
+
code: f,
|
|
2654
2635
|
localState: r,
|
|
2655
2636
|
rootState: n,
|
|
2656
2637
|
rootSetState: i,
|
|
2657
2638
|
context: t
|
|
2658
2639
|
});
|
|
2659
|
-
|
|
2640
|
+
pr(s, u, p);
|
|
2660
2641
|
}
|
|
2661
2642
|
return s;
|
|
2662
2643
|
};
|
|
2663
|
-
function
|
|
2644
|
+
function ft({
|
|
2664
2645
|
block: e,
|
|
2665
2646
|
context: t,
|
|
2666
2647
|
shouldEvaluateBindings: r,
|
|
@@ -2669,7 +2650,7 @@ function dt({
|
|
|
2669
2650
|
rootSetState: a
|
|
2670
2651
|
}) {
|
|
2671
2652
|
const s = e;
|
|
2672
|
-
return r ?
|
|
2653
|
+
return r ? bi({
|
|
2673
2654
|
block: s,
|
|
2674
2655
|
localState: n,
|
|
2675
2656
|
rootState: i,
|
|
@@ -2677,91 +2658,13 @@ function dt({
|
|
|
2677
2658
|
context: t
|
|
2678
2659
|
}) : s;
|
|
2679
2660
|
}
|
|
2680
|
-
const
|
|
2681
|
-
if (typeof n == "string")
|
|
2682
|
-
return `${bi(r)}: ${n};`;
|
|
2683
|
-
}).filter(Ht), Si = (e) => Sr(e).join(`
|
|
2684
|
-
`), Vt = ({
|
|
2685
|
-
mediaQuery: e,
|
|
2686
|
-
className: t,
|
|
2687
|
-
styles: r
|
|
2688
|
-
}) => {
|
|
2689
|
-
const n = `.${t} {
|
|
2690
|
-
${Si(r)}
|
|
2691
|
-
}`;
|
|
2692
|
-
return e ? `${e} {
|
|
2693
|
-
${n}
|
|
2694
|
-
}` : n;
|
|
2695
|
-
};
|
|
2696
|
-
function gt(e) {
|
|
2697
|
-
return /* @__PURE__ */ g("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2698
|
-
}
|
|
2699
|
-
function un(e) {
|
|
2700
|
-
function t() {
|
|
2701
|
-
const n = dt({
|
|
2702
|
-
block: e.block,
|
|
2703
|
-
localState: e.context.localState,
|
|
2704
|
-
rootState: e.context.rootState,
|
|
2705
|
-
rootSetState: e.context.rootSetState,
|
|
2706
|
-
context: e.context.context,
|
|
2707
|
-
shouldEvaluateBindings: !0
|
|
2708
|
-
});
|
|
2709
|
-
return Ht(n.hide) ? !n.hide : Ht(n.show) ? n.show : !0;
|
|
2710
|
-
}
|
|
2711
|
-
function r() {
|
|
2712
|
-
var C;
|
|
2713
|
-
const n = dt({
|
|
2714
|
-
block: e.block,
|
|
2715
|
-
localState: e.context.localState,
|
|
2716
|
-
rootState: e.context.rootState,
|
|
2717
|
-
rootSetState: e.context.rootSetState,
|
|
2718
|
-
context: e.context.context,
|
|
2719
|
-
shouldEvaluateBindings: !0
|
|
2720
|
-
}), i = n.responsiveStyles, a = e.context.content, s = hr(
|
|
2721
|
-
((C = a == null ? void 0 : a.meta) == null ? void 0 : C.breakpoints) || {}
|
|
2722
|
-
), u = i == null ? void 0 : i.large, d = i == null ? void 0 : i.medium, p = i == null ? void 0 : i.small, y = n.id;
|
|
2723
|
-
if (!y)
|
|
2724
|
-
return "";
|
|
2725
|
-
const x = u ? Vt({
|
|
2726
|
-
className: y,
|
|
2727
|
-
styles: u
|
|
2728
|
-
}) : "", P = d ? Vt({
|
|
2729
|
-
className: y,
|
|
2730
|
-
styles: d,
|
|
2731
|
-
mediaQuery: Xn(
|
|
2732
|
-
"medium",
|
|
2733
|
-
s
|
|
2734
|
-
)
|
|
2735
|
-
}) : "", _ = p ? Vt({
|
|
2736
|
-
className: y,
|
|
2737
|
-
styles: p,
|
|
2738
|
-
mediaQuery: Xn(
|
|
2739
|
-
"small",
|
|
2740
|
-
s
|
|
2741
|
-
)
|
|
2742
|
-
}) : "";
|
|
2743
|
-
return [x, P, _].join(" ");
|
|
2744
|
-
}
|
|
2745
|
-
return /* @__PURE__ */ g(U, { children: r() && t() ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(gt, { styles: r() }) }) : null });
|
|
2746
|
-
}
|
|
2747
|
-
function wi(e) {
|
|
2748
|
-
var t;
|
|
2749
|
-
return {
|
|
2750
|
-
...(t = e.component) == null ? void 0 : t.options,
|
|
2751
|
-
...e.options,
|
|
2752
|
-
/**
|
|
2753
|
-
* Our built-in components frequently make use of the block, so we provide all of it under `builderBlock`
|
|
2754
|
-
*/
|
|
2755
|
-
builderBlock: e
|
|
2756
|
-
};
|
|
2757
|
-
}
|
|
2758
|
-
const ki = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], Dt = (e) => typeof e == "string" && ki.includes(e.toLowerCase()), Ci = ({
|
|
2661
|
+
const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], Vt = (e) => typeof e == "string" && Si.includes(e.toLowerCase()), wi = ({
|
|
2759
2662
|
block: e,
|
|
2760
2663
|
context: t,
|
|
2761
2664
|
registeredComponents: r
|
|
2762
2665
|
}) => {
|
|
2763
2666
|
var a;
|
|
2764
|
-
const n = (a =
|
|
2667
|
+
const n = (a = ft({
|
|
2765
2668
|
block: e,
|
|
2766
2669
|
localState: t.localState,
|
|
2767
2670
|
rootState: t.rootState,
|
|
@@ -2777,7 +2680,7 @@ const ki = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2777
2680
|
console.warn(`
|
|
2778
2681
|
Could not find a registered component named "${n}".
|
|
2779
2682
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2780
|
-
},
|
|
2683
|
+
}, ki = ({
|
|
2781
2684
|
block: e,
|
|
2782
2685
|
context: t
|
|
2783
2686
|
}) => {
|
|
@@ -2797,109 +2700,239 @@ const ki = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2797
2700
|
if (!Array.isArray(i))
|
|
2798
2701
|
return;
|
|
2799
2702
|
const a = r.collection.split(".").pop(), s = r.itemName || (a ? a + "Item" : "item");
|
|
2800
|
-
return i.map((
|
|
2703
|
+
return i.map((f, p) => ({
|
|
2801
2704
|
context: {
|
|
2802
2705
|
...t,
|
|
2803
2706
|
localState: {
|
|
2804
2707
|
...t.localState,
|
|
2805
2708
|
$index: p,
|
|
2806
|
-
$item:
|
|
2807
|
-
[s]:
|
|
2709
|
+
$item: f,
|
|
2710
|
+
[s]: f,
|
|
2808
2711
|
[`$${s}Index`]: p
|
|
2809
2712
|
}
|
|
2810
2713
|
},
|
|
2811
2714
|
block: n
|
|
2812
2715
|
}));
|
|
2813
|
-
},
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2716
|
+
}, br = {
|
|
2717
|
+
small: {
|
|
2718
|
+
min: 320,
|
|
2719
|
+
default: 321,
|
|
2720
|
+
max: 640
|
|
2818
2721
|
},
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
yt,
|
|
2829
|
-
{
|
|
2830
|
-
block: e.block,
|
|
2831
|
-
context: t,
|
|
2832
|
-
registeredComponents: e.registeredComponents
|
|
2833
|
-
}
|
|
2834
|
-
) });
|
|
2835
|
-
}
|
|
2836
|
-
function Ti(e) {
|
|
2837
|
-
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2838
|
-
}
|
|
2839
|
-
const ji = (e) => `on${Ti(e)}`, Ai = (e, t) => (r) => et({
|
|
2840
|
-
code: e,
|
|
2841
|
-
context: t.context,
|
|
2842
|
-
localState: t.localState,
|
|
2843
|
-
rootState: t.rootState,
|
|
2844
|
-
rootSetState: t.rootSetState,
|
|
2845
|
-
event: r,
|
|
2846
|
-
isExpression: !1
|
|
2847
|
-
});
|
|
2848
|
-
function Xt(e) {
|
|
2849
|
-
const t = {}, r = e.block.actions ?? {};
|
|
2850
|
-
for (const n in r) {
|
|
2851
|
-
if (!r.hasOwnProperty(n))
|
|
2852
|
-
continue;
|
|
2853
|
-
const i = r[n];
|
|
2854
|
-
let a = ji(n);
|
|
2855
|
-
if (e.stripPrefix)
|
|
2856
|
-
switch (tt) {
|
|
2857
|
-
case "vue2":
|
|
2858
|
-
case "vue3":
|
|
2859
|
-
a = a.replace("v-on:", "");
|
|
2860
|
-
break;
|
|
2861
|
-
case "svelte":
|
|
2862
|
-
a = a.replace("on:", "");
|
|
2863
|
-
break;
|
|
2864
|
-
}
|
|
2865
|
-
t[a] = Ai(i, e);
|
|
2722
|
+
medium: {
|
|
2723
|
+
min: 641,
|
|
2724
|
+
default: 642,
|
|
2725
|
+
max: 991
|
|
2726
|
+
},
|
|
2727
|
+
large: {
|
|
2728
|
+
min: 990,
|
|
2729
|
+
default: 991,
|
|
2730
|
+
max: 1200
|
|
2866
2731
|
}
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
var n;
|
|
2880
|
-
const r = {
|
|
2881
|
-
...Oi(e),
|
|
2882
|
-
...e.properties,
|
|
2883
|
-
"builder-id": e.id,
|
|
2884
|
-
style: e.style ? Ni(e.style) : void 0,
|
|
2885
|
-
class: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
|
|
2732
|
+
}, er = (e, t = br) => `@media (max-width: ${t[e].max}px)`, Sr = ({
|
|
2733
|
+
small: e,
|
|
2734
|
+
medium: t
|
|
2735
|
+
}) => {
|
|
2736
|
+
const r = qt(br);
|
|
2737
|
+
if (!e || !t)
|
|
2738
|
+
return r;
|
|
2739
|
+
const n = Math.floor(e / 2);
|
|
2740
|
+
r.small = {
|
|
2741
|
+
max: e,
|
|
2742
|
+
min: n,
|
|
2743
|
+
default: n + 1
|
|
2886
2744
|
};
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2745
|
+
const i = r.small.max + 1;
|
|
2746
|
+
r.medium = {
|
|
2747
|
+
max: t,
|
|
2748
|
+
min: i,
|
|
2749
|
+
default: i + 1
|
|
2750
|
+
};
|
|
2751
|
+
const a = r.medium.max + 1;
|
|
2752
|
+
return r.large = {
|
|
2753
|
+
max: 2e3,
|
|
2754
|
+
// TODO: decide upper limit
|
|
2755
|
+
min: a,
|
|
2756
|
+
default: a + 1
|
|
2757
|
+
}, r;
|
|
2758
|
+
}, Ci = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), wr = (e) => Object.entries(e).map(([r, n]) => {
|
|
2759
|
+
if (typeof n == "string")
|
|
2760
|
+
return `${Ci(r)}: ${n};`;
|
|
2761
|
+
}).filter(Ht), Ei = (e) => wr(e).join(`
|
|
2762
|
+
`), Dt = ({
|
|
2763
|
+
mediaQuery: e,
|
|
2764
|
+
className: t,
|
|
2765
|
+
styles: r
|
|
2766
|
+
}) => {
|
|
2767
|
+
const n = `.${t} {
|
|
2768
|
+
${Ei(r)}
|
|
2769
|
+
}`;
|
|
2770
|
+
return e ? `${e} {
|
|
2771
|
+
${n}
|
|
2772
|
+
}` : n;
|
|
2773
|
+
};
|
|
2774
|
+
function gt(e) {
|
|
2775
|
+
return /* @__PURE__ */ g("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2776
|
+
}
|
|
2777
|
+
function dn(e) {
|
|
2778
|
+
function t() {
|
|
2779
|
+
const n = ft({
|
|
2780
|
+
block: e.block,
|
|
2781
|
+
localState: e.context.localState,
|
|
2782
|
+
rootState: e.context.rootState,
|
|
2783
|
+
rootSetState: e.context.rootSetState,
|
|
2784
|
+
context: e.context.context,
|
|
2785
|
+
shouldEvaluateBindings: !0
|
|
2786
|
+
});
|
|
2787
|
+
return Ht(n.hide) ? !n.hide : Ht(n.show) ? n.show : !0;
|
|
2788
|
+
}
|
|
2789
|
+
function r() {
|
|
2790
|
+
var C;
|
|
2791
|
+
const n = ft({
|
|
2792
|
+
block: e.block,
|
|
2793
|
+
localState: e.context.localState,
|
|
2794
|
+
rootState: e.context.rootState,
|
|
2795
|
+
rootSetState: e.context.rootSetState,
|
|
2796
|
+
context: e.context.context,
|
|
2797
|
+
shouldEvaluateBindings: !0
|
|
2798
|
+
}), i = n.responsiveStyles, a = e.context.content, s = Sr(
|
|
2799
|
+
((C = a == null ? void 0 : a.meta) == null ? void 0 : C.breakpoints) || {}
|
|
2800
|
+
), u = i == null ? void 0 : i.large, f = i == null ? void 0 : i.medium, p = i == null ? void 0 : i.small, y = n.id;
|
|
2801
|
+
if (!y)
|
|
2802
|
+
return "";
|
|
2803
|
+
const x = u ? Dt({
|
|
2804
|
+
className: y,
|
|
2805
|
+
styles: u
|
|
2806
|
+
}) : "", N = f ? Dt({
|
|
2807
|
+
className: y,
|
|
2808
|
+
styles: f,
|
|
2809
|
+
mediaQuery: er(
|
|
2810
|
+
"medium",
|
|
2811
|
+
s
|
|
2812
|
+
)
|
|
2813
|
+
}) : "", _ = p ? Dt({
|
|
2814
|
+
className: y,
|
|
2815
|
+
styles: p,
|
|
2816
|
+
mediaQuery: er(
|
|
2817
|
+
"small",
|
|
2818
|
+
s
|
|
2819
|
+
)
|
|
2820
|
+
}) : "";
|
|
2821
|
+
return [x, N, _].join(" ");
|
|
2822
|
+
}
|
|
2823
|
+
return /* @__PURE__ */ g(U, { children: r() && t() ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(gt, { styles: r() }) }) : null });
|
|
2824
|
+
}
|
|
2825
|
+
function Ii(e) {
|
|
2826
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2827
|
+
}
|
|
2828
|
+
const Ti = (e) => `on${Ii(e)}`, ji = (e, t) => (r) => et({
|
|
2829
|
+
code: e,
|
|
2830
|
+
context: t.context,
|
|
2831
|
+
localState: t.localState,
|
|
2832
|
+
rootState: t.rootState,
|
|
2833
|
+
rootSetState: t.rootSetState,
|
|
2834
|
+
event: r,
|
|
2835
|
+
isExpression: !1
|
|
2836
|
+
});
|
|
2837
|
+
function Xt(e) {
|
|
2838
|
+
const t = {}, r = e.block.actions ?? {};
|
|
2839
|
+
for (const n in r) {
|
|
2840
|
+
if (!r.hasOwnProperty(n))
|
|
2841
|
+
continue;
|
|
2842
|
+
const i = r[n];
|
|
2843
|
+
let a = Ti(n);
|
|
2844
|
+
if (e.stripPrefix)
|
|
2845
|
+
switch (tt) {
|
|
2846
|
+
case "vue2":
|
|
2847
|
+
case "vue3":
|
|
2848
|
+
a = a.replace("v-on:", "");
|
|
2849
|
+
break;
|
|
2850
|
+
case "svelte":
|
|
2851
|
+
a = a.replace("on:", "");
|
|
2852
|
+
break;
|
|
2853
|
+
}
|
|
2854
|
+
t[a] = ji(i, e);
|
|
2855
|
+
}
|
|
2856
|
+
return t;
|
|
2857
|
+
}
|
|
2858
|
+
function Ai(e) {
|
|
2859
|
+
return e.className = e.class, delete e.class, e;
|
|
2860
|
+
}
|
|
2861
|
+
const Ri = (e) => ({
|
|
2862
|
+
href: e.href
|
|
2863
|
+
});
|
|
2864
|
+
function ht({
|
|
2865
|
+
block: e,
|
|
2866
|
+
context: t
|
|
2867
|
+
}) {
|
|
2868
|
+
var n;
|
|
2869
|
+
const r = {
|
|
2870
|
+
...Ri(e),
|
|
2871
|
+
...e.properties,
|
|
2872
|
+
"builder-id": e.id,
|
|
2873
|
+
style: e.style ? Oi(e.style) : void 0,
|
|
2874
|
+
class: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
|
|
2875
|
+
};
|
|
2876
|
+
return Ai(r);
|
|
2877
|
+
}
|
|
2878
|
+
function Oi(e) {
|
|
2879
|
+
switch (tt) {
|
|
2880
|
+
case "svelte":
|
|
2881
|
+
case "vue2":
|
|
2882
|
+
case "vue3":
|
|
2883
|
+
case "solid":
|
|
2884
|
+
return wr(e).join(" ");
|
|
2885
|
+
case "qwik":
|
|
2897
2886
|
case "reactNative":
|
|
2898
2887
|
case "react":
|
|
2899
2888
|
case "rsc":
|
|
2900
2889
|
return e;
|
|
2901
2890
|
}
|
|
2902
2891
|
}
|
|
2892
|
+
function tr(e) {
|
|
2893
|
+
return /* @__PURE__ */ Z(U, { children: [
|
|
2894
|
+
" ",
|
|
2895
|
+
e.hasChildren ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ Z(
|
|
2896
|
+
e.Wrapper,
|
|
2897
|
+
{
|
|
2898
|
+
...ht({
|
|
2899
|
+
block: e.block,
|
|
2900
|
+
context: e.context
|
|
2901
|
+
}),
|
|
2902
|
+
...Xt({
|
|
2903
|
+
block: e.block,
|
|
2904
|
+
rootState: e.context.rootState,
|
|
2905
|
+
rootSetState: e.context.rootSetState,
|
|
2906
|
+
localState: e.context.localState,
|
|
2907
|
+
context: e.context.context,
|
|
2908
|
+
stripPrefix: !0
|
|
2909
|
+
}),
|
|
2910
|
+
children: [
|
|
2911
|
+
" ",
|
|
2912
|
+
e.children,
|
|
2913
|
+
" "
|
|
2914
|
+
]
|
|
2915
|
+
}
|
|
2916
|
+
) }) : /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
2917
|
+
e.Wrapper,
|
|
2918
|
+
{
|
|
2919
|
+
...ht({
|
|
2920
|
+
block: e.block,
|
|
2921
|
+
context: e.context
|
|
2922
|
+
}),
|
|
2923
|
+
...Xt({
|
|
2924
|
+
block: e.block,
|
|
2925
|
+
rootState: e.context.rootState,
|
|
2926
|
+
rootSetState: e.context.rootSetState,
|
|
2927
|
+
localState: e.context.localState,
|
|
2928
|
+
context: e.context.context,
|
|
2929
|
+
stripPrefix: !0
|
|
2930
|
+
})
|
|
2931
|
+
}
|
|
2932
|
+
) }),
|
|
2933
|
+
" "
|
|
2934
|
+
] });
|
|
2935
|
+
}
|
|
2903
2936
|
function Pi(e) {
|
|
2904
2937
|
return /* @__PURE__ */ g(
|
|
2905
2938
|
e.Wrapper,
|
|
@@ -2922,7 +2955,7 @@ function Pi(e) {
|
|
|
2922
2955
|
}
|
|
2923
2956
|
);
|
|
2924
2957
|
}
|
|
2925
|
-
const
|
|
2958
|
+
const Ni = ({
|
|
2926
2959
|
componentOptions: e,
|
|
2927
2960
|
builderBlock: t,
|
|
2928
2961
|
context: r,
|
|
@@ -2948,7 +2981,7 @@ const Mi = ({
|
|
|
2948
2981
|
})
|
|
2949
2982
|
} : {}
|
|
2950
2983
|
};
|
|
2951
|
-
function
|
|
2984
|
+
function nr(e) {
|
|
2952
2985
|
var n, i;
|
|
2953
2986
|
const [t, r] = H(
|
|
2954
2987
|
() => e.isInteractive ? Pi : e.componentRef
|
|
@@ -2956,7 +2989,7 @@ function tr(e) {
|
|
|
2956
2989
|
return /* @__PURE__ */ g(U, { children: e.componentRef ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ Z(
|
|
2957
2990
|
t,
|
|
2958
2991
|
{
|
|
2959
|
-
...
|
|
2992
|
+
...Ni({
|
|
2960
2993
|
componentOptions: e.componentOptions,
|
|
2961
2994
|
builderBlock: e.builderBlock,
|
|
2962
2995
|
context: e.context,
|
|
@@ -2976,7 +3009,7 @@ function tr(e) {
|
|
|
2976
3009
|
"block-" + a.id
|
|
2977
3010
|
)),
|
|
2978
3011
|
(i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ g(
|
|
2979
|
-
|
|
3012
|
+
dn,
|
|
2980
3013
|
{
|
|
2981
3014
|
block: a,
|
|
2982
3015
|
context: e.context
|
|
@@ -2987,67 +3020,34 @@ function tr(e) {
|
|
|
2987
3020
|
}
|
|
2988
3021
|
) }) : null });
|
|
2989
3022
|
}
|
|
2990
|
-
function
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
...Xt({
|
|
3001
|
-
block: e.block,
|
|
3002
|
-
rootState: e.context.rootState,
|
|
3003
|
-
rootSetState: e.context.rootSetState,
|
|
3004
|
-
localState: e.context.localState,
|
|
3005
|
-
context: e.context.context,
|
|
3006
|
-
stripPrefix: !0
|
|
3007
|
-
}),
|
|
3008
|
-
children: [
|
|
3009
|
-
" ",
|
|
3010
|
-
e.children,
|
|
3011
|
-
" "
|
|
3012
|
-
]
|
|
3013
|
-
}
|
|
3014
|
-
) }) : /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
3015
|
-
e.Wrapper,
|
|
3016
|
-
{
|
|
3017
|
-
...ht({
|
|
3018
|
-
block: e.block,
|
|
3019
|
-
context: e.context
|
|
3020
|
-
}),
|
|
3021
|
-
...Xt({
|
|
3022
|
-
block: e.block,
|
|
3023
|
-
rootState: e.context.rootState,
|
|
3024
|
-
rootSetState: e.context.rootSetState,
|
|
3025
|
-
localState: e.context.localState,
|
|
3026
|
-
context: e.context.context,
|
|
3027
|
-
stripPrefix: !0
|
|
3028
|
-
})
|
|
3029
|
-
}
|
|
3030
|
-
) }),
|
|
3031
|
-
" "
|
|
3032
|
-
] });
|
|
3023
|
+
function Mi(e) {
|
|
3024
|
+
const [t, r] = H(() => e.repeatContext);
|
|
3025
|
+
return /* @__PURE__ */ g(Zt.Provider, { value: t, children: /* @__PURE__ */ g(
|
|
3026
|
+
yt,
|
|
3027
|
+
{
|
|
3028
|
+
block: e.block,
|
|
3029
|
+
context: t,
|
|
3030
|
+
registeredComponents: e.registeredComponents
|
|
3031
|
+
}
|
|
3032
|
+
) });
|
|
3033
3033
|
}
|
|
3034
3034
|
function yt(e) {
|
|
3035
|
-
var y, x,
|
|
3035
|
+
var y, x, N, _;
|
|
3036
3036
|
function t() {
|
|
3037
|
-
return
|
|
3037
|
+
return wi({
|
|
3038
3038
|
block: e.block,
|
|
3039
3039
|
context: e.context,
|
|
3040
3040
|
registeredComponents: e.registeredComponents
|
|
3041
3041
|
});
|
|
3042
3042
|
}
|
|
3043
3043
|
function r() {
|
|
3044
|
-
return
|
|
3044
|
+
return ki({
|
|
3045
3045
|
block: e.block,
|
|
3046
3046
|
context: e.context
|
|
3047
3047
|
});
|
|
3048
3048
|
}
|
|
3049
3049
|
function n() {
|
|
3050
|
-
return r() ? e.block :
|
|
3050
|
+
return r() ? e.block : ft({
|
|
3051
3051
|
block: e.block,
|
|
3052
3052
|
localState: e.context.localState,
|
|
3053
3053
|
rootState: e.context.rootState,
|
|
@@ -3072,23 +3072,35 @@ function yt(e) {
|
|
|
3072
3072
|
blockChildren: n().children ?? [],
|
|
3073
3073
|
componentRef: (C = t == null ? void 0 : t()) == null ? void 0 : C.component,
|
|
3074
3074
|
componentOptions: {
|
|
3075
|
-
...
|
|
3075
|
+
...Yr(n()),
|
|
3076
3076
|
builderContext: e.context,
|
|
3077
3077
|
...((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Symbol" || ((L = t == null ? void 0 : t()) == null ? void 0 : L.name) === "Columns" ? {
|
|
3078
3078
|
builderComponents: e.registeredComponents
|
|
3079
3079
|
} : {}
|
|
3080
3080
|
},
|
|
3081
|
-
context:
|
|
3081
|
+
context: f,
|
|
3082
3082
|
registeredComponents: e.registeredComponents,
|
|
3083
3083
|
builderBlock: n(),
|
|
3084
3084
|
includeBlockProps: ((V = t == null ? void 0 : t()) == null ? void 0 : V.noWrap) === !0,
|
|
3085
3085
|
isInteractive: !((v = t == null ? void 0 : t()) != null && v.isRSC)
|
|
3086
3086
|
};
|
|
3087
3087
|
}
|
|
3088
|
-
const [
|
|
3089
|
-
return /* @__PURE__ */ g(U, { children: a() ? /* @__PURE__ */ g(U, { children: (y = t == null ? void 0 : t()) != null && y.noWrap ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
3090
|
-
|
|
3091
|
-
|
|
3088
|
+
const [f, p] = H(() => e.context);
|
|
3089
|
+
return /* @__PURE__ */ g(U, { children: a() ? /* @__PURE__ */ g(U, { children: (y = t == null ? void 0 : t()) != null && y.noWrap ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
3090
|
+
nr,
|
|
3091
|
+
{
|
|
3092
|
+
componentRef: u().componentRef,
|
|
3093
|
+
componentOptions: u().componentOptions,
|
|
3094
|
+
blockChildren: u().blockChildren,
|
|
3095
|
+
context: u().context,
|
|
3096
|
+
registeredComponents: u().registeredComponents,
|
|
3097
|
+
builderBlock: u().builderBlock,
|
|
3098
|
+
includeBlockProps: u().includeBlockProps,
|
|
3099
|
+
isInteractive: u().isInteractive
|
|
3100
|
+
}
|
|
3101
|
+
) }) : /* @__PURE__ */ Z(U, { children: [
|
|
3102
|
+
Vt(i()) ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
3103
|
+
tr,
|
|
3092
3104
|
{
|
|
3093
3105
|
Wrapper: i(),
|
|
3094
3106
|
block: n(),
|
|
@@ -3096,8 +3108,8 @@ function yt(e) {
|
|
|
3096
3108
|
hasChildren: !1
|
|
3097
3109
|
}
|
|
3098
3110
|
) }) : null,
|
|
3099
|
-
!
|
|
3100
|
-
|
|
3111
|
+
!Vt(i()) && r() ? /* @__PURE__ */ g(U, { children: (x = r()) == null ? void 0 : x.map((C, I) => /* @__PURE__ */ g(
|
|
3112
|
+
Mi,
|
|
3101
3113
|
{
|
|
3102
3114
|
repeatContext: C.context,
|
|
3103
3115
|
block: C.block,
|
|
@@ -3105,29 +3117,41 @@ function yt(e) {
|
|
|
3105
3117
|
},
|
|
3106
3118
|
I
|
|
3107
3119
|
)) }) : null,
|
|
3108
|
-
!
|
|
3109
|
-
|
|
3120
|
+
!Vt(i()) && !r() ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ Z(
|
|
3121
|
+
tr,
|
|
3110
3122
|
{
|
|
3111
3123
|
Wrapper: i(),
|
|
3112
3124
|
block: n(),
|
|
3113
3125
|
context: e.context,
|
|
3114
3126
|
hasChildren: !0,
|
|
3115
3127
|
children: [
|
|
3116
|
-
/* @__PURE__ */ g(
|
|
3117
|
-
|
|
3128
|
+
/* @__PURE__ */ g(
|
|
3129
|
+
nr,
|
|
3130
|
+
{
|
|
3131
|
+
componentRef: u().componentRef,
|
|
3132
|
+
componentOptions: u().componentOptions,
|
|
3133
|
+
blockChildren: u().blockChildren,
|
|
3134
|
+
context: u().context,
|
|
3135
|
+
registeredComponents: u().registeredComponents,
|
|
3136
|
+
builderBlock: u().builderBlock,
|
|
3137
|
+
includeBlockProps: u().includeBlockProps,
|
|
3138
|
+
isInteractive: u().isInteractive
|
|
3139
|
+
}
|
|
3140
|
+
),
|
|
3141
|
+
(N = s()) == null ? void 0 : N.map((C) => /* @__PURE__ */ g(
|
|
3118
3142
|
yt,
|
|
3119
3143
|
{
|
|
3120
3144
|
block: C,
|
|
3121
|
-
context:
|
|
3145
|
+
context: f,
|
|
3122
3146
|
registeredComponents: e.registeredComponents
|
|
3123
3147
|
},
|
|
3124
3148
|
"block-" + C.id
|
|
3125
3149
|
)),
|
|
3126
3150
|
(_ = s()) == null ? void 0 : _.map((C) => /* @__PURE__ */ g(
|
|
3127
|
-
|
|
3151
|
+
dn,
|
|
3128
3152
|
{
|
|
3129
3153
|
block: C,
|
|
3130
|
-
context:
|
|
3154
|
+
context: f
|
|
3131
3155
|
},
|
|
3132
3156
|
"block-style-" + C.id
|
|
3133
3157
|
))
|
|
@@ -3188,10 +3212,9 @@ function Fi(e) {
|
|
|
3188
3212
|
}` })
|
|
3189
3213
|
] });
|
|
3190
3214
|
}
|
|
3191
|
-
|
|
3192
|
-
function dn(e) {
|
|
3215
|
+
function fn(e) {
|
|
3193
3216
|
var n, i;
|
|
3194
|
-
const t = Hn(
|
|
3217
|
+
const t = Hn(Zt), r = Hn(fr);
|
|
3195
3218
|
return /* @__PURE__ */ Z(
|
|
3196
3219
|
Fi,
|
|
3197
3220
|
{
|
|
@@ -3210,7 +3233,7 @@ function dn(e) {
|
|
|
3210
3233
|
"render-block-" + a.id
|
|
3211
3234
|
)) }) : null,
|
|
3212
3235
|
e.blocks ? /* @__PURE__ */ g(U, { children: (i = e.blocks) == null ? void 0 : i.map((a) => /* @__PURE__ */ g(
|
|
3213
|
-
|
|
3236
|
+
dn,
|
|
3214
3237
|
{
|
|
3215
3238
|
block: a,
|
|
3216
3239
|
context: e.context || t
|
|
@@ -3232,7 +3255,7 @@ function Ui(e) {
|
|
|
3232
3255
|
var K;
|
|
3233
3256
|
return ((K = n[v]) == null ? void 0 : K.width) || 100 / n.length;
|
|
3234
3257
|
}
|
|
3235
|
-
function
|
|
3258
|
+
function f(v) {
|
|
3236
3259
|
const K = t * (n.length - 1) / n.length;
|
|
3237
3260
|
return `calc(${u(v)}% - ${K}px)`;
|
|
3238
3261
|
}
|
|
@@ -3248,7 +3271,7 @@ function Ui(e) {
|
|
|
3248
3271
|
}) {
|
|
3249
3272
|
return a === "never" ? K : v;
|
|
3250
3273
|
}
|
|
3251
|
-
const [x,
|
|
3274
|
+
const [x, N] = H(
|
|
3252
3275
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
3253
3276
|
);
|
|
3254
3277
|
function _() {
|
|
@@ -3261,7 +3284,7 @@ function Ui(e) {
|
|
|
3261
3284
|
};
|
|
3262
3285
|
}
|
|
3263
3286
|
function C(v) {
|
|
3264
|
-
const K = v === 0 ? 0 : t, ae =
|
|
3287
|
+
const K = v === 0 ? 0 : t, ae = f(v), se = `${K}px`, W = "100%", ee = 0;
|
|
3265
3288
|
return {
|
|
3266
3289
|
width: ae,
|
|
3267
3290
|
["marginLeft"]: se,
|
|
@@ -3285,7 +3308,7 @@ function Ui(e) {
|
|
|
3285
3308
|
}
|
|
3286
3309
|
function I(v) {
|
|
3287
3310
|
var ae, se;
|
|
3288
|
-
return
|
|
3311
|
+
return Sr(
|
|
3289
3312
|
((se = (ae = e.builderContext.content) == null ? void 0 : ae.meta) == null ? void 0 : se.breakpoints) || {}
|
|
3290
3313
|
)[v].max;
|
|
3291
3314
|
}
|
|
@@ -3320,19 +3343,19 @@ function Ui(e) {
|
|
|
3320
3343
|
/* @__PURE__ */ Z(
|
|
3321
3344
|
"div",
|
|
3322
3345
|
{
|
|
3323
|
-
className: `builder-columns ${e.builderBlock.id}-breakpoints div-
|
|
3346
|
+
className: `builder-columns ${e.builderBlock.id}-breakpoints div-53636e90`,
|
|
3324
3347
|
style: _(),
|
|
3325
3348
|
children: [
|
|
3326
3349
|
/* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(gt, { styles: L() }) }),
|
|
3327
3350
|
(V = e.columns) == null ? void 0 : V.map((v, K) => /* @__PURE__ */ ur(
|
|
3328
3351
|
"div",
|
|
3329
3352
|
{
|
|
3330
|
-
className: "builder-column div-
|
|
3353
|
+
className: "builder-column div-53636e90-2",
|
|
3331
3354
|
style: C(K),
|
|
3332
3355
|
key: K
|
|
3333
3356
|
},
|
|
3334
3357
|
/* @__PURE__ */ g(
|
|
3335
|
-
|
|
3358
|
+
fn,
|
|
3336
3359
|
{
|
|
3337
3360
|
path: `component.options.columns.${K}.blocks`,
|
|
3338
3361
|
parent: e.builderBlock.id,
|
|
@@ -3348,10 +3371,10 @@ function Ui(e) {
|
|
|
3348
3371
|
]
|
|
3349
3372
|
}
|
|
3350
3373
|
),
|
|
3351
|
-
/* @__PURE__ */ g("style", { children: `.div-
|
|
3374
|
+
/* @__PURE__ */ g("style", { children: `.div-53636e90 {
|
|
3352
3375
|
display: flex;
|
|
3353
3376
|
line-height: normal;
|
|
3354
|
-
}.div-
|
|
3377
|
+
}.div-53636e90-2 {
|
|
3355
3378
|
display: flex;
|
|
3356
3379
|
flex-direction: column;
|
|
3357
3380
|
align-items: stretch;
|
|
@@ -3408,18 +3431,18 @@ function $i(e) {
|
|
|
3408
3431
|
return Wt(p);
|
|
3409
3432
|
}
|
|
3410
3433
|
function r() {
|
|
3411
|
-
var
|
|
3412
|
-
return (
|
|
3434
|
+
var f;
|
|
3435
|
+
return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
3413
3436
|
}
|
|
3414
3437
|
function n() {
|
|
3415
|
-
const
|
|
3438
|
+
const f = {
|
|
3416
3439
|
position: "absolute",
|
|
3417
3440
|
height: "100%",
|
|
3418
3441
|
width: "100%",
|
|
3419
3442
|
left: "0px",
|
|
3420
3443
|
top: "0px"
|
|
3421
3444
|
};
|
|
3422
|
-
return e.aspectRatio ?
|
|
3445
|
+
return e.aspectRatio ? f : void 0;
|
|
3423
3446
|
}
|
|
3424
3447
|
return /* @__PURE__ */ Z(U, { children: [
|
|
3425
3448
|
/* @__PURE__ */ Z(U, { children: [
|
|
@@ -3436,7 +3459,7 @@ function $i(e) {
|
|
|
3436
3459
|
objectFit: e.backgroundSize || "cover",
|
|
3437
3460
|
...n()
|
|
3438
3461
|
},
|
|
3439
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
3462
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-dbab4030",
|
|
3440
3463
|
src: e.image,
|
|
3441
3464
|
srcSet: t(),
|
|
3442
3465
|
sizes: e.sizes
|
|
@@ -3446,23 +3469,23 @@ function $i(e) {
|
|
|
3446
3469
|
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
3447
3470
|
"div",
|
|
3448
3471
|
{
|
|
3449
|
-
className: "builder-image-sizer div-
|
|
3472
|
+
className: "builder-image-sizer div-dbab4030",
|
|
3450
3473
|
style: {
|
|
3451
3474
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
3452
3475
|
}
|
|
3453
3476
|
}
|
|
3454
3477
|
) }) : null,
|
|
3455
3478
|
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ g(U, { children: e.children }) : null,
|
|
3456
|
-
!e.fitContent && e.children ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g("div", { className: "div-
|
|
3479
|
+
!e.fitContent && e.children ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g("div", { className: "div-dbab4030-2", children: e.children }) }) : null
|
|
3457
3480
|
] }),
|
|
3458
|
-
/* @__PURE__ */ g("style", { children: `.img-
|
|
3481
|
+
/* @__PURE__ */ g("style", { children: `.img-dbab4030 {
|
|
3459
3482
|
opacity: 1;
|
|
3460
3483
|
transition: opacity 0.2s ease-in-out;
|
|
3461
|
-
}.div-
|
|
3484
|
+
}.div-dbab4030 {
|
|
3462
3485
|
width: 100%;
|
|
3463
3486
|
pointer-events: none;
|
|
3464
3487
|
font-size: 0;
|
|
3465
|
-
}.div-
|
|
3488
|
+
}.div-dbab4030-2 {
|
|
3466
3489
|
display: flex;
|
|
3467
3490
|
flex-direction: column;
|
|
3468
3491
|
align-items: stretch;
|
|
@@ -3495,98 +3518,7 @@ function Vi(e) {
|
|
|
3495
3518
|
}
|
|
3496
3519
|
);
|
|
3497
3520
|
}
|
|
3498
|
-
const
|
|
3499
|
-
...t,
|
|
3500
|
-
testVariationId: t.id,
|
|
3501
|
-
id: e == null ? void 0 : e.id
|
|
3502
|
-
})), Di = ({
|
|
3503
|
-
canTrack: e,
|
|
3504
|
-
content: t
|
|
3505
|
-
}) => !(!(ut(t).length > 0) || !e || Ee());
|
|
3506
|
-
function Wi(e, t, r) {
|
|
3507
|
-
var s;
|
|
3508
|
-
function n() {
|
|
3509
|
-
function u(C, I, L) {
|
|
3510
|
-
let V = "";
|
|
3511
|
-
if (L) {
|
|
3512
|
-
const v = /* @__PURE__ */ new Date();
|
|
3513
|
-
v.setTime(v.getTime() + L * 24 * 60 * 60 * 1e3), V = "; expires=" + v.toUTCString();
|
|
3514
|
-
}
|
|
3515
|
-
document.cookie = C + "=" + (I || "") + V + "; path=/; Secure; SameSite=None";
|
|
3516
|
-
}
|
|
3517
|
-
function d(C) {
|
|
3518
|
-
const I = C + "=", L = document.cookie.split(";");
|
|
3519
|
-
for (let V = 0; V < L.length; V++) {
|
|
3520
|
-
let v = L[V];
|
|
3521
|
-
for (; v.charAt(0) === " "; )
|
|
3522
|
-
v = v.substring(1, v.length);
|
|
3523
|
-
if (v.indexOf(I) === 0)
|
|
3524
|
-
return v.substring(I.length, v.length);
|
|
3525
|
-
}
|
|
3526
|
-
return null;
|
|
3527
|
-
}
|
|
3528
|
-
const p = `builder.tests.${e}`, y = d(p), x = t.map((C) => C.id).concat(e);
|
|
3529
|
-
if (y && x.includes(y))
|
|
3530
|
-
return y;
|
|
3531
|
-
let P = 0;
|
|
3532
|
-
const _ = Math.random();
|
|
3533
|
-
for (let C = 0; C < t.length; C++) {
|
|
3534
|
-
const I = t[C], L = I.testRatio;
|
|
3535
|
-
if (P += L, _ < P)
|
|
3536
|
-
return u(p, I.id), I.id;
|
|
3537
|
-
}
|
|
3538
|
-
return u(p, e), e;
|
|
3539
|
-
}
|
|
3540
|
-
const i = n(), a = (s = document.currentScript) == null ? void 0 : s.previousElementSibling;
|
|
3541
|
-
if (r) {
|
|
3542
|
-
a.remove();
|
|
3543
|
-
const u = document.currentScript;
|
|
3544
|
-
u == null || u.remove();
|
|
3545
|
-
} else {
|
|
3546
|
-
const u = t.concat({
|
|
3547
|
-
id: e
|
|
3548
|
-
}).filter((d) => d.id !== i).map((d) => `.variant-${d.id} { display: none; }
|
|
3549
|
-
`).join("");
|
|
3550
|
-
a.innerHTML = u;
|
|
3551
|
-
}
|
|
3552
|
-
}
|
|
3553
|
-
function Hi(e, t, r) {
|
|
3554
|
-
var d;
|
|
3555
|
-
if (!navigator.cookieEnabled)
|
|
3556
|
-
return;
|
|
3557
|
-
function n(p) {
|
|
3558
|
-
const y = p + "=", x = document.cookie.split(";");
|
|
3559
|
-
for (let P = 0; P < x.length; P++) {
|
|
3560
|
-
let _ = x[P];
|
|
3561
|
-
for (; _.charAt(0) === " "; )
|
|
3562
|
-
_ = _.substring(1, _.length);
|
|
3563
|
-
if (_.indexOf(y) === 0)
|
|
3564
|
-
return _.substring(y.length, _.length);
|
|
3565
|
-
}
|
|
3566
|
-
return null;
|
|
3567
|
-
}
|
|
3568
|
-
const i = `builder.tests.${t}`, a = n(i), s = (d = document.currentScript) == null ? void 0 : d.parentElement, u = e === t;
|
|
3569
|
-
if (a === e) {
|
|
3570
|
-
if (u)
|
|
3571
|
-
return;
|
|
3572
|
-
s == null || s.removeAttribute("hidden"), s == null || s.removeAttribute("aria-hidden");
|
|
3573
|
-
} else {
|
|
3574
|
-
u && (r ? s == null || s.remove() : (s == null || s.setAttribute("hidden", "true"), s == null || s.setAttribute("aria-hidden", "true")));
|
|
3575
|
-
return;
|
|
3576
|
-
}
|
|
3577
|
-
}
|
|
3578
|
-
const Ki = (e) => e === "react" || e === "reactNative", kr = Ki(tt), Cr = "builderIoAbTest", Er = "builderIoRenderContent", Gi = () => {
|
|
3579
|
-
const e = Wi.toString().replace(/\s+/g, " "), t = Hi.toString().replace(/\s+/g, " ");
|
|
3580
|
-
return `
|
|
3581
|
-
window.${Cr} = ${e}
|
|
3582
|
-
window.${Er} = ${t}
|
|
3583
|
-
`;
|
|
3584
|
-
}, zi = (e, t) => `
|
|
3585
|
-
window.${Cr}("${t}",${JSON.stringify(e)}, ${kr})`, Xi = ({
|
|
3586
|
-
contentId: e,
|
|
3587
|
-
variationId: t
|
|
3588
|
-
}) => `
|
|
3589
|
-
window.${Er}("${t}", "${e}", ${kr})`, Ji = {
|
|
3521
|
+
const Di = {
|
|
3590
3522
|
name: "Core:Button",
|
|
3591
3523
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3592
3524
|
defaultStyles: {
|
|
@@ -3619,7 +3551,7 @@ const Ki = (e) => e === "react" || e === "reactNative", kr = Ki(tt), Cr = "build
|
|
|
3619
3551
|
}],
|
|
3620
3552
|
static: !0,
|
|
3621
3553
|
noWrap: !0
|
|
3622
|
-
},
|
|
3554
|
+
}, Wi = {
|
|
3623
3555
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3624
3556
|
name: "Columns",
|
|
3625
3557
|
isRSC: !0,
|
|
@@ -3798,7 +3730,7 @@ const Ki = (e) => e === "react" || e === "reactNative", kr = Ki(tt), Cr = "build
|
|
|
3798
3730
|
});
|
|
3799
3731
|
}
|
|
3800
3732
|
const r = e.get("columns");
|
|
3801
|
-
Array.isArray(r) && r.find((i) => i.get("width")) && (r.find((a) => !a.get("width")) || r.reduce((u,
|
|
3733
|
+
Array.isArray(r) && r.find((i) => i.get("width")) && (r.find((a) => !a.get("width")) || r.reduce((u, f) => u + f.get("width"), 0) !== 100) && t();
|
|
3802
3734
|
}
|
|
3803
3735
|
}, {
|
|
3804
3736
|
name: "space",
|
|
@@ -3820,13 +3752,131 @@ const Ki = (e) => e === "react" || e === "reactNative", kr = Ki(tt), Cr = "build
|
|
|
3820
3752
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3821
3753
|
advanced: !0
|
|
3822
3754
|
}]
|
|
3823
|
-
},
|
|
3755
|
+
}, Hi = {
|
|
3756
|
+
name: "Custom Code",
|
|
3757
|
+
static: !0,
|
|
3758
|
+
requiredPermissions: ["editCode"],
|
|
3759
|
+
inputs: [{
|
|
3760
|
+
name: "code",
|
|
3761
|
+
type: "html",
|
|
3762
|
+
required: !0,
|
|
3763
|
+
defaultValue: "<p>Hello there, I am custom HTML code!</p>",
|
|
3764
|
+
code: !0
|
|
3765
|
+
}, {
|
|
3766
|
+
name: "replaceNodes",
|
|
3767
|
+
type: "boolean",
|
|
3768
|
+
helperText: "Preserve server rendered dom nodes",
|
|
3769
|
+
advanced: !0
|
|
3770
|
+
}, {
|
|
3771
|
+
name: "scriptsClientOnly",
|
|
3772
|
+
type: "boolean",
|
|
3773
|
+
defaultValue: !1,
|
|
3774
|
+
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3775
|
+
advanced: !0
|
|
3776
|
+
}]
|
|
3777
|
+
};
|
|
3778
|
+
function Ki(e) {
|
|
3779
|
+
const t = Yt(null), [r, n] = H(() => []), [i, a] = H(() => []);
|
|
3780
|
+
return Q(() => {
|
|
3781
|
+
var u;
|
|
3782
|
+
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window > "u")
|
|
3783
|
+
return;
|
|
3784
|
+
const s = t.current.getElementsByTagName("script");
|
|
3785
|
+
for (let f = 0; f < s.length; f++) {
|
|
3786
|
+
const p = s[f];
|
|
3787
|
+
if (p.src) {
|
|
3788
|
+
if (r.includes(p.src))
|
|
3789
|
+
continue;
|
|
3790
|
+
r.push(p.src);
|
|
3791
|
+
const y = document.createElement("script");
|
|
3792
|
+
y.async = !0, y.src = p.src, document.head.appendChild(y);
|
|
3793
|
+
} else if (!p.type || [
|
|
3794
|
+
"text/javascript",
|
|
3795
|
+
"application/javascript",
|
|
3796
|
+
"application/ecmascript"
|
|
3797
|
+
].includes(p.type)) {
|
|
3798
|
+
if (i.includes(p.innerText))
|
|
3799
|
+
continue;
|
|
3800
|
+
try {
|
|
3801
|
+
i.push(p.innerText), new Function(p.innerText)();
|
|
3802
|
+
} catch (y) {
|
|
3803
|
+
console.warn("`CustomCode`: Error running script:", y);
|
|
3804
|
+
}
|
|
3805
|
+
}
|
|
3806
|
+
}
|
|
3807
|
+
}, []), /* @__PURE__ */ g(
|
|
3808
|
+
"div",
|
|
3809
|
+
{
|
|
3810
|
+
ref: t,
|
|
3811
|
+
className: "builder-custom-code" + (e.replaceNodes ? " replace-nodes" : ""),
|
|
3812
|
+
dangerouslySetInnerHTML: { __html: e.code }
|
|
3813
|
+
}
|
|
3814
|
+
);
|
|
3815
|
+
}
|
|
3816
|
+
const Gi = {
|
|
3817
|
+
name: "Embed",
|
|
3818
|
+
static: !0,
|
|
3819
|
+
inputs: [{
|
|
3820
|
+
name: "url",
|
|
3821
|
+
type: "url",
|
|
3822
|
+
required: !0,
|
|
3823
|
+
defaultValue: "",
|
|
3824
|
+
helperText: "e.g. enter a youtube url, google map, etc",
|
|
3825
|
+
onChange: (e) => {
|
|
3826
|
+
const t = e.get("url");
|
|
3827
|
+
if (t)
|
|
3828
|
+
return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((n) => n.json()).then((n) => {
|
|
3829
|
+
e.get("url") === t && (n.html ? e.set("content", n.html) : e.set("content", "Invalid url, please try another"));
|
|
3830
|
+
}).catch((n) => {
|
|
3831
|
+
e.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
3832
|
+
});
|
|
3833
|
+
e.delete("content");
|
|
3834
|
+
}
|
|
3835
|
+
}, {
|
|
3836
|
+
name: "content",
|
|
3837
|
+
type: "html",
|
|
3838
|
+
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3839
|
+
hideFromUI: !0
|
|
3840
|
+
}]
|
|
3841
|
+
}, zi = ["text/javascript", "application/javascript", "application/ecmascript"], Xi = (e) => zi.includes(e.type);
|
|
3842
|
+
function Ji(e) {
|
|
3843
|
+
const t = Yt(null), [r, n] = H(() => []), [i, a] = H(() => []), [s, u] = H(() => !1);
|
|
3844
|
+
function f() {
|
|
3845
|
+
if (!t.current || !t.current.getElementsByTagName)
|
|
3846
|
+
return;
|
|
3847
|
+
const p = t.current.getElementsByTagName("script");
|
|
3848
|
+
for (let y = 0; y < p.length; y++) {
|
|
3849
|
+
const x = p[y];
|
|
3850
|
+
if (x.src && !r.includes(x.src)) {
|
|
3851
|
+
r.push(x.src);
|
|
3852
|
+
const N = document.createElement("script");
|
|
3853
|
+
N.async = !0, N.src = x.src, document.head.appendChild(N);
|
|
3854
|
+
} else if (Xi(x) && !i.includes(x.innerText))
|
|
3855
|
+
try {
|
|
3856
|
+
i.push(x.innerText), new Function(x.innerText)();
|
|
3857
|
+
} catch (N) {
|
|
3858
|
+
console.warn("`Embed`: Error running script:", N);
|
|
3859
|
+
}
|
|
3860
|
+
}
|
|
3861
|
+
}
|
|
3862
|
+
return Q(() => {
|
|
3863
|
+
t.current && !s && (u(!0), f());
|
|
3864
|
+
}, [t.current, s]), /* @__PURE__ */ g(
|
|
3865
|
+
"div",
|
|
3866
|
+
{
|
|
3867
|
+
className: "builder-embed",
|
|
3868
|
+
ref: t,
|
|
3869
|
+
dangerouslySetInnerHTML: { __html: e.content }
|
|
3870
|
+
}
|
|
3871
|
+
);
|
|
3872
|
+
}
|
|
3873
|
+
const Yi = {
|
|
3824
3874
|
name: "Fragment",
|
|
3825
3875
|
static: !0,
|
|
3826
3876
|
hidden: !0,
|
|
3827
3877
|
canHaveChildren: !0,
|
|
3828
3878
|
noWrap: !0
|
|
3829
|
-
},
|
|
3879
|
+
}, qi = {
|
|
3830
3880
|
name: "Image",
|
|
3831
3881
|
static: !0,
|
|
3832
3882
|
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",
|
|
@@ -3847,13 +3897,13 @@ const Ki = (e) => e === "react" || e === "reactNative", kr = Ki(tt), Cr = "build
|
|
|
3847
3897
|
onChange: (e) => {
|
|
3848
3898
|
e.delete("srcset"), e.delete("noWebp");
|
|
3849
3899
|
function r(s, u = 6e4) {
|
|
3850
|
-
return new Promise((
|
|
3900
|
+
return new Promise((f, p) => {
|
|
3851
3901
|
const y = document.createElement("img");
|
|
3852
3902
|
let x = !1;
|
|
3853
3903
|
y.onload = () => {
|
|
3854
|
-
x = !0,
|
|
3855
|
-
}, y.addEventListener("error", (
|
|
3856
|
-
console.warn("Image load failed",
|
|
3904
|
+
x = !0, f(y);
|
|
3905
|
+
}, y.addEventListener("error", (N) => {
|
|
3906
|
+
console.warn("Image load failed", N.error), p(N.error);
|
|
3857
3907
|
}), y.src = s, setTimeout(() => {
|
|
3858
3908
|
x || p(new Error("Image load timed out"));
|
|
3859
3909
|
}, u);
|
|
@@ -3926,7 +3976,37 @@ const Ki = (e) => e === "react" || e === "reactNative", kr = Ki(tt), Cr = "build
|
|
|
3926
3976
|
advanced: !0,
|
|
3927
3977
|
defaultValue: 0.7041
|
|
3928
3978
|
}]
|
|
3929
|
-
},
|
|
3979
|
+
}, Zi = {
|
|
3980
|
+
// friendlyName?
|
|
3981
|
+
name: "Raw:Img",
|
|
3982
|
+
hideFromInsertMenu: !0,
|
|
3983
|
+
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",
|
|
3984
|
+
inputs: [{
|
|
3985
|
+
name: "image",
|
|
3986
|
+
bubble: !0,
|
|
3987
|
+
type: "file",
|
|
3988
|
+
allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
|
|
3989
|
+
required: !0
|
|
3990
|
+
}],
|
|
3991
|
+
noWrap: !0,
|
|
3992
|
+
static: !0
|
|
3993
|
+
};
|
|
3994
|
+
function Qi(e) {
|
|
3995
|
+
return /* @__PURE__ */ g(
|
|
3996
|
+
"img",
|
|
3997
|
+
{
|
|
3998
|
+
style: {
|
|
3999
|
+
objectFit: e.backgroundSize || "cover",
|
|
4000
|
+
objectPosition: e.backgroundPosition || "center"
|
|
4001
|
+
},
|
|
4002
|
+
alt: e.altText,
|
|
4003
|
+
src: e.imgSrc || e.image,
|
|
4004
|
+
...e.attributes
|
|
4005
|
+
},
|
|
4006
|
+
Ce() && e.imgSrc || "default-key"
|
|
4007
|
+
);
|
|
4008
|
+
}
|
|
4009
|
+
const eo = {
|
|
3930
4010
|
name: "Core:Section",
|
|
3931
4011
|
static: !0,
|
|
3932
4012
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3965,7 +4045,7 @@ const Ki = (e) => e === "react" || e === "reactNative", kr = Ki(tt), Cr = "build
|
|
|
3965
4045
|
}
|
|
3966
4046
|
}
|
|
3967
4047
|
}]
|
|
3968
|
-
},
|
|
4048
|
+
}, to = {
|
|
3969
4049
|
name: "Symbol",
|
|
3970
4050
|
noWrap: !0,
|
|
3971
4051
|
static: !0,
|
|
@@ -3998,7 +4078,7 @@ const Ki = (e) => e === "react" || e === "reactNative", kr = Ki(tt), Cr = "build
|
|
|
3998
4078
|
hideFromUI: !0,
|
|
3999
4079
|
type: "boolean"
|
|
4000
4080
|
}]
|
|
4001
|
-
},
|
|
4081
|
+
}, no = {
|
|
4002
4082
|
name: "Text",
|
|
4003
4083
|
static: !0,
|
|
4004
4084
|
isRSC: !0,
|
|
@@ -4017,7 +4097,7 @@ const Ki = (e) => e === "react" || e === "reactNative", kr = Ki(tt), Cr = "build
|
|
|
4017
4097
|
textAlign: "center"
|
|
4018
4098
|
}
|
|
4019
4099
|
};
|
|
4020
|
-
function
|
|
4100
|
+
function ro(e) {
|
|
4021
4101
|
var t;
|
|
4022
4102
|
return /* @__PURE__ */ g(
|
|
4023
4103
|
"div",
|
|
@@ -4030,7 +4110,7 @@ function no(e) {
|
|
|
4030
4110
|
}
|
|
4031
4111
|
);
|
|
4032
4112
|
}
|
|
4033
|
-
const
|
|
4113
|
+
const io = {
|
|
4034
4114
|
name: "Video",
|
|
4035
4115
|
canHaveChildren: !0,
|
|
4036
4116
|
defaultStyles: {
|
|
@@ -4112,7 +4192,7 @@ const ro = {
|
|
|
4112
4192
|
advanced: !0
|
|
4113
4193
|
}]
|
|
4114
4194
|
};
|
|
4115
|
-
function
|
|
4195
|
+
function oo(e) {
|
|
4116
4196
|
var n;
|
|
4117
4197
|
function t() {
|
|
4118
4198
|
return {
|
|
@@ -4159,281 +4239,183 @@ function io(e) {
|
|
|
4159
4239
|
}
|
|
4160
4240
|
);
|
|
4161
4241
|
}
|
|
4162
|
-
const
|
|
4163
|
-
name: "Embed",
|
|
4164
|
-
static: !0,
|
|
4165
|
-
inputs: [{
|
|
4166
|
-
name: "url",
|
|
4167
|
-
type: "url",
|
|
4168
|
-
required: !0,
|
|
4169
|
-
defaultValue: "",
|
|
4170
|
-
helperText: "e.g. enter a youtube url, google map, etc",
|
|
4171
|
-
onChange: (e) => {
|
|
4172
|
-
const t = e.get("url");
|
|
4173
|
-
if (t)
|
|
4174
|
-
return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((n) => n.json()).then((n) => {
|
|
4175
|
-
e.get("url") === t && (n.html ? e.set("content", n.html) : e.set("content", "Invalid url, please try another"));
|
|
4176
|
-
}).catch((n) => {
|
|
4177
|
-
e.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
4178
|
-
});
|
|
4179
|
-
e.delete("content");
|
|
4180
|
-
}
|
|
4181
|
-
}, {
|
|
4182
|
-
name: "content",
|
|
4183
|
-
type: "html",
|
|
4184
|
-
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4185
|
-
hideFromUI: !0
|
|
4186
|
-
}]
|
|
4187
|
-
}, ao = ["text/javascript", "application/javascript", "application/ecmascript"], so = (e) => ao.includes(e.type);
|
|
4188
|
-
function lo(e) {
|
|
4189
|
-
const t = Yt(null), [r, n] = H(() => []), [i, a] = H(() => []), [s, u] = H(() => !1);
|
|
4190
|
-
function d() {
|
|
4191
|
-
if (!t.current || !t.current.getElementsByTagName)
|
|
4192
|
-
return;
|
|
4193
|
-
const p = t.current.getElementsByTagName("script");
|
|
4194
|
-
for (let y = 0; y < p.length; y++) {
|
|
4195
|
-
const x = p[y];
|
|
4196
|
-
if (x.src && !r.includes(x.src)) {
|
|
4197
|
-
r.push(x.src);
|
|
4198
|
-
const P = document.createElement("script");
|
|
4199
|
-
P.async = !0, P.src = x.src, document.head.appendChild(P);
|
|
4200
|
-
} else if (so(x) && !i.includes(x.innerText))
|
|
4201
|
-
try {
|
|
4202
|
-
i.push(x.innerText), new Function(x.innerText)();
|
|
4203
|
-
} catch (P) {
|
|
4204
|
-
console.warn("`Embed`: Error running script:", P);
|
|
4205
|
-
}
|
|
4206
|
-
}
|
|
4207
|
-
}
|
|
4208
|
-
return Q(() => {
|
|
4209
|
-
t.current && !s && (u(!0), d());
|
|
4210
|
-
}, [t.current, s]), /* @__PURE__ */ g(
|
|
4211
|
-
"div",
|
|
4212
|
-
{
|
|
4213
|
-
className: "builder-embed",
|
|
4214
|
-
ref: t,
|
|
4215
|
-
dangerouslySetInnerHTML: { __html: e.content }
|
|
4216
|
-
}
|
|
4217
|
-
);
|
|
4218
|
-
}
|
|
4219
|
-
function co(e) {
|
|
4220
|
-
return /* @__PURE__ */ g(
|
|
4221
|
-
"img",
|
|
4222
|
-
{
|
|
4223
|
-
style: {
|
|
4224
|
-
objectFit: e.backgroundSize || "cover",
|
|
4225
|
-
objectPosition: e.backgroundPosition || "center"
|
|
4226
|
-
},
|
|
4227
|
-
alt: e.altText,
|
|
4228
|
-
src: e.imgSrc || e.image,
|
|
4229
|
-
...e.attributes
|
|
4230
|
-
},
|
|
4231
|
-
Ce() && e.imgSrc || "default-key"
|
|
4232
|
-
);
|
|
4233
|
-
}
|
|
4234
|
-
const uo = {
|
|
4235
|
-
// friendlyName?
|
|
4236
|
-
name: "Raw:Img",
|
|
4237
|
-
hideFromInsertMenu: !0,
|
|
4238
|
-
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",
|
|
4239
|
-
inputs: [{
|
|
4240
|
-
name: "image",
|
|
4241
|
-
bubble: !0,
|
|
4242
|
-
type: "file",
|
|
4243
|
-
allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
|
|
4244
|
-
required: !0
|
|
4245
|
-
}],
|
|
4246
|
-
noWrap: !0,
|
|
4247
|
-
static: !0
|
|
4248
|
-
};
|
|
4249
|
-
function fo(e) {
|
|
4250
|
-
const t = Yt(null), [r, n] = H(() => []), [i, a] = H(() => []);
|
|
4251
|
-
return Q(() => {
|
|
4252
|
-
var u;
|
|
4253
|
-
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window > "u")
|
|
4254
|
-
return;
|
|
4255
|
-
const s = t.current.getElementsByTagName("script");
|
|
4256
|
-
for (let d = 0; d < s.length; d++) {
|
|
4257
|
-
const p = s[d];
|
|
4258
|
-
if (p.src) {
|
|
4259
|
-
if (r.includes(p.src))
|
|
4260
|
-
continue;
|
|
4261
|
-
r.push(p.src);
|
|
4262
|
-
const y = document.createElement("script");
|
|
4263
|
-
y.async = !0, y.src = p.src, document.head.appendChild(y);
|
|
4264
|
-
} else if (!p.type || [
|
|
4265
|
-
"text/javascript",
|
|
4266
|
-
"application/javascript",
|
|
4267
|
-
"application/ecmascript"
|
|
4268
|
-
].includes(p.type)) {
|
|
4269
|
-
if (i.includes(p.innerText))
|
|
4270
|
-
continue;
|
|
4271
|
-
try {
|
|
4272
|
-
i.push(p.innerText), new Function(p.innerText)();
|
|
4273
|
-
} catch (y) {
|
|
4274
|
-
console.warn("`CustomCode`: Error running script:", y);
|
|
4275
|
-
}
|
|
4276
|
-
}
|
|
4277
|
-
}
|
|
4278
|
-
}, []), /* @__PURE__ */ g(
|
|
4279
|
-
"div",
|
|
4280
|
-
{
|
|
4281
|
-
ref: t,
|
|
4282
|
-
className: "builder-custom-code" + (e.replaceNodes ? " replace-nodes" : ""),
|
|
4283
|
-
dangerouslySetInnerHTML: { __html: e.code }
|
|
4284
|
-
}
|
|
4285
|
-
);
|
|
4286
|
-
}
|
|
4287
|
-
const ho = {
|
|
4288
|
-
name: "Custom Code",
|
|
4289
|
-
static: !0,
|
|
4290
|
-
requiredPermissions: ["editCode"],
|
|
4291
|
-
inputs: [{
|
|
4292
|
-
name: "code",
|
|
4293
|
-
type: "html",
|
|
4294
|
-
required: !0,
|
|
4295
|
-
defaultValue: "<p>Hello there, I am custom HTML code!</p>",
|
|
4296
|
-
code: !0
|
|
4297
|
-
}, {
|
|
4298
|
-
name: "replaceNodes",
|
|
4299
|
-
type: "boolean",
|
|
4300
|
-
helperText: "Preserve server rendered dom nodes",
|
|
4301
|
-
advanced: !0
|
|
4302
|
-
}, {
|
|
4303
|
-
name: "scriptsClientOnly",
|
|
4304
|
-
type: "boolean",
|
|
4305
|
-
defaultValue: !1,
|
|
4306
|
-
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
4307
|
-
advanced: !0
|
|
4308
|
-
}]
|
|
4309
|
-
}, ir = () => [{
|
|
4242
|
+
const ir = () => [{
|
|
4310
4243
|
component: Jr,
|
|
4311
|
-
...
|
|
4244
|
+
...Di
|
|
4312
4245
|
}, {
|
|
4313
4246
|
component: Ui,
|
|
4314
|
-
...
|
|
4247
|
+
...Wi
|
|
4315
4248
|
}, {
|
|
4316
|
-
component:
|
|
4317
|
-
...
|
|
4249
|
+
component: Ki,
|
|
4250
|
+
...Hi
|
|
4318
4251
|
}, {
|
|
4319
|
-
component:
|
|
4320
|
-
...
|
|
4252
|
+
component: Ji,
|
|
4253
|
+
...Gi
|
|
4321
4254
|
}, {
|
|
4322
4255
|
component: Bi,
|
|
4323
|
-
...
|
|
4256
|
+
...Yi
|
|
4324
4257
|
}, {
|
|
4325
4258
|
component: $i,
|
|
4326
|
-
...
|
|
4259
|
+
...qi
|
|
4327
4260
|
}, {
|
|
4328
|
-
component:
|
|
4329
|
-
...
|
|
4261
|
+
component: Qi,
|
|
4262
|
+
...Zi
|
|
4330
4263
|
}, {
|
|
4331
4264
|
component: Vi,
|
|
4332
|
-
...Qi
|
|
4333
|
-
}, {
|
|
4334
|
-
component: jo,
|
|
4335
4265
|
...eo
|
|
4336
4266
|
}, {
|
|
4337
|
-
component:
|
|
4267
|
+
component: jo,
|
|
4338
4268
|
...to
|
|
4339
4269
|
}, {
|
|
4340
|
-
component:
|
|
4341
|
-
...
|
|
4342
|
-
}
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
}
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
@
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4270
|
+
component: ro,
|
|
4271
|
+
...no
|
|
4272
|
+
}, {
|
|
4273
|
+
component: oo,
|
|
4274
|
+
...io
|
|
4275
|
+
}], ut = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4276
|
+
...t,
|
|
4277
|
+
testVariationId: t.id,
|
|
4278
|
+
id: e == null ? void 0 : e.id
|
|
4279
|
+
})), ao = ({
|
|
4280
|
+
canTrack: e,
|
|
4281
|
+
content: t
|
|
4282
|
+
}) => !(!(ut(t).length > 0) || !e || Ee());
|
|
4283
|
+
function so(e, t, r) {
|
|
4284
|
+
var s;
|
|
4285
|
+
function n() {
|
|
4286
|
+
function u(C, I, L) {
|
|
4287
|
+
let V = "";
|
|
4288
|
+
if (L) {
|
|
4289
|
+
const v = /* @__PURE__ */ new Date();
|
|
4290
|
+
v.setTime(v.getTime() + L * 24 * 60 * 60 * 1e3), V = "; expires=" + v.toUTCString();
|
|
4291
|
+
}
|
|
4292
|
+
document.cookie = C + "=" + (I || "") + V + "; path=/; Secure; SameSite=None";
|
|
4293
|
+
}
|
|
4294
|
+
function f(C) {
|
|
4295
|
+
const I = C + "=", L = document.cookie.split(";");
|
|
4296
|
+
for (let V = 0; V < L.length; V++) {
|
|
4297
|
+
let v = L[V];
|
|
4298
|
+
for (; v.charAt(0) === " "; )
|
|
4299
|
+
v = v.substring(1, v.length);
|
|
4300
|
+
if (v.indexOf(I) === 0)
|
|
4301
|
+
return v.substring(I.length, v.length);
|
|
4302
|
+
}
|
|
4303
|
+
return null;
|
|
4366
4304
|
}
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
}
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
.
|
|
4389
|
-
|
|
4305
|
+
const p = `builder.tests.${e}`, y = f(p), x = t.map((C) => C.id).concat(e);
|
|
4306
|
+
if (y && x.includes(y))
|
|
4307
|
+
return y;
|
|
4308
|
+
let N = 0;
|
|
4309
|
+
const _ = Math.random();
|
|
4310
|
+
for (let C = 0; C < t.length; C++) {
|
|
4311
|
+
const I = t[C], L = I.testRatio;
|
|
4312
|
+
if (N += L, _ < N)
|
|
4313
|
+
return u(p, I.id), I.id;
|
|
4314
|
+
}
|
|
4315
|
+
return u(p, e), e;
|
|
4316
|
+
}
|
|
4317
|
+
const i = n(), a = (s = document.currentScript) == null ? void 0 : s.previousElementSibling;
|
|
4318
|
+
if (r) {
|
|
4319
|
+
a.remove();
|
|
4320
|
+
const u = document.currentScript;
|
|
4321
|
+
u == null || u.remove();
|
|
4322
|
+
} else {
|
|
4323
|
+
const u = t.concat({
|
|
4324
|
+
id: e
|
|
4325
|
+
}).filter((f) => f.id !== i).map((f) => `.variant-${f.id} { display: none; }
|
|
4326
|
+
`).join("");
|
|
4327
|
+
a.innerHTML = u;
|
|
4328
|
+
}
|
|
4390
4329
|
}
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4330
|
+
function lo(e, t, r) {
|
|
4331
|
+
var f;
|
|
4332
|
+
if (!navigator.cookieEnabled)
|
|
4333
|
+
return;
|
|
4334
|
+
function n(p) {
|
|
4335
|
+
const y = p + "=", x = document.cookie.split(";");
|
|
4336
|
+
for (let N = 0; N < x.length; N++) {
|
|
4337
|
+
let _ = x[N];
|
|
4338
|
+
for (; _.charAt(0) === " "; )
|
|
4339
|
+
_ = _.substring(1, _.length);
|
|
4340
|
+
if (_.indexOf(y) === 0)
|
|
4341
|
+
return _.substring(y.length, _.length);
|
|
4342
|
+
}
|
|
4343
|
+
return null;
|
|
4344
|
+
}
|
|
4345
|
+
const i = `builder.tests.${t}`, a = n(i), s = (f = document.currentScript) == null ? void 0 : f.parentElement, u = e === t;
|
|
4346
|
+
if (a === e) {
|
|
4347
|
+
if (u)
|
|
4348
|
+
return;
|
|
4349
|
+
s == null || s.removeAttribute("hidden"), s == null || s.removeAttribute("aria-hidden");
|
|
4350
|
+
} else {
|
|
4351
|
+
u && (r ? s == null || s.remove() : (s == null || s.setAttribute("hidden", "true"), s == null || s.setAttribute("aria-hidden", "true")));
|
|
4352
|
+
return;
|
|
4353
|
+
}
|
|
4399
4354
|
}
|
|
4400
|
-
|
|
4355
|
+
const co = (e) => e === "react" || e === "reactNative", kr = co(tt), Cr = "builderIoAbTest", Er = "builderIoRenderContent", uo = () => {
|
|
4356
|
+
const e = so.toString().replace(/\s+/g, " "), t = lo.toString().replace(/\s+/g, " ");
|
|
4357
|
+
return `
|
|
4358
|
+
window.${Cr} = ${e}
|
|
4359
|
+
window.${Er} = ${t}
|
|
4360
|
+
`;
|
|
4361
|
+
}, fo = (e, t) => `
|
|
4362
|
+
window.${Cr}("${t}",${JSON.stringify(e)}, ${kr})`, ho = ({
|
|
4363
|
+
contentId: e,
|
|
4364
|
+
variationId: t
|
|
4365
|
+
}) => `
|
|
4366
|
+
window.${Er}("${t}", "${e}", ${kr})`;
|
|
4367
|
+
function Jt(e) {
|
|
4368
|
+
return /* @__PURE__ */ g(
|
|
4369
|
+
"script",
|
|
4370
|
+
{
|
|
4371
|
+
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
4372
|
+
id: e.id
|
|
4373
|
+
}
|
|
4401
4374
|
);
|
|
4402
|
-
return /* @__PURE__ */ g(gt, { styles: t });
|
|
4403
4375
|
}
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4376
|
+
function or(e) {
|
|
4377
|
+
return Math.round(e * 1e3) / 1e3;
|
|
4378
|
+
}
|
|
4379
|
+
const po = (e, t, r = !0) => {
|
|
4380
|
+
if (!(e instanceof HTMLElement))
|
|
4381
|
+
return null;
|
|
4382
|
+
let n = r ? e : e.parentElement;
|
|
4383
|
+
do {
|
|
4384
|
+
if (!n)
|
|
4385
|
+
return null;
|
|
4386
|
+
if (t(n))
|
|
4387
|
+
return n;
|
|
4388
|
+
} while (n = n.parentElement);
|
|
4389
|
+
return null;
|
|
4390
|
+
}, mo = (e) => po(e, (t) => {
|
|
4391
|
+
const r = t.getAttribute("builder-id") || t.id;
|
|
4392
|
+
return (r == null ? void 0 : r.indexOf("builder-")) === 0;
|
|
4393
|
+
}), ar = ({
|
|
4394
|
+
event: e,
|
|
4395
|
+
target: t
|
|
4408
4396
|
}) => {
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
d.name && d.defaultValue !== void 0 && ((p = e == null ? void 0 : e.data) != null && p.state) && e.data.state[d.name] === void 0 && (n[d.name] = d.defaultValue);
|
|
4414
|
-
});
|
|
4415
|
-
const i = {
|
|
4416
|
-
...(u = e == null ? void 0 : e.data) == null ? void 0 : u.state,
|
|
4417
|
-
...t,
|
|
4418
|
-
...r ? {
|
|
4419
|
-
locale: r
|
|
4420
|
-
} : {}
|
|
4397
|
+
const r = t.getBoundingClientRect(), n = e.clientX - r.left, i = e.clientY - r.top, a = or(n / r.width), s = or(i / r.height);
|
|
4398
|
+
return {
|
|
4399
|
+
x: a,
|
|
4400
|
+
y: s
|
|
4421
4401
|
};
|
|
4402
|
+
}, go = (e) => {
|
|
4403
|
+
const t = e.target, r = t && mo(t), n = (r == null ? void 0 : r.getAttribute("builder-id")) || (r == null ? void 0 : r.id);
|
|
4422
4404
|
return {
|
|
4423
|
-
|
|
4424
|
-
|
|
4405
|
+
targetBuilderElement: n || void 0,
|
|
4406
|
+
metadata: {
|
|
4407
|
+
targetOffset: t ? ar({
|
|
4408
|
+
event: e,
|
|
4409
|
+
target: t
|
|
4410
|
+
}) : void 0,
|
|
4411
|
+
builderTargetOffset: r ? ar({
|
|
4412
|
+
event: e,
|
|
4413
|
+
target: r
|
|
4414
|
+
}) : void 0,
|
|
4415
|
+
builderElementIndex: r && n ? [].slice.call(document.getElementsByClassName(n)).indexOf(r) : void 0
|
|
4416
|
+
}
|
|
4425
4417
|
};
|
|
4426
|
-
},
|
|
4427
|
-
content: e,
|
|
4428
|
-
data: t
|
|
4429
|
-
}) => e ? {
|
|
4430
|
-
...e,
|
|
4431
|
-
data: {
|
|
4432
|
-
...e == null ? void 0 : e.data,
|
|
4433
|
-
...t
|
|
4434
|
-
},
|
|
4435
|
-
meta: e == null ? void 0 : e.meta
|
|
4436
|
-
} : void 0, bo = "0.7.1-0", So = () => {
|
|
4418
|
+
}, yo = "0.7.1", vo = () => {
|
|
4437
4419
|
Hr("insertMenu", {
|
|
4438
4420
|
name: "_default",
|
|
4439
4421
|
default: !0,
|
|
@@ -4456,14 +4438,14 @@ const vo = ({
|
|
|
4456
4438
|
}]
|
|
4457
4439
|
});
|
|
4458
4440
|
};
|
|
4459
|
-
let
|
|
4460
|
-
const
|
|
4441
|
+
let sr = !1;
|
|
4442
|
+
const xo = (e = {}) => {
|
|
4461
4443
|
var t, r;
|
|
4462
|
-
|
|
4444
|
+
sr || (sr = !0, Ee() && ((t = window.parent) == null || t.postMessage({
|
|
4463
4445
|
type: "builder.sdkInfo",
|
|
4464
4446
|
data: {
|
|
4465
4447
|
target: tt,
|
|
4466
|
-
version:
|
|
4448
|
+
version: yo,
|
|
4467
4449
|
supportsPatchUpdates: !1,
|
|
4468
4450
|
// Supports builder-model="..." attribute which is needed to
|
|
4469
4451
|
// scope our '+ add block' button styling
|
|
@@ -4482,33 +4464,33 @@ const wo = (e = {}) => {
|
|
|
4482
4464
|
if (n != null && n.type)
|
|
4483
4465
|
switch (n.type) {
|
|
4484
4466
|
case "builder.evaluate": {
|
|
4485
|
-
const s = n.data.text, u = n.data.arguments || [],
|
|
4467
|
+
const s = n.data.text, u = n.data.arguments || [], f = n.data.id, p = new Function(s);
|
|
4486
4468
|
let y, x = null;
|
|
4487
4469
|
try {
|
|
4488
4470
|
y = p.apply(null, u);
|
|
4489
|
-
} catch (
|
|
4490
|
-
x =
|
|
4471
|
+
} catch (N) {
|
|
4472
|
+
x = N;
|
|
4491
4473
|
}
|
|
4492
4474
|
x ? (i = window.parent) == null || i.postMessage({
|
|
4493
4475
|
type: "builder.evaluateError",
|
|
4494
4476
|
data: {
|
|
4495
|
-
id:
|
|
4477
|
+
id: f,
|
|
4496
4478
|
error: x.message
|
|
4497
4479
|
}
|
|
4498
|
-
}, "*") : y && typeof y.then == "function" ? y.then((
|
|
4480
|
+
}, "*") : y && typeof y.then == "function" ? y.then((N) => {
|
|
4499
4481
|
var _;
|
|
4500
4482
|
(_ = window.parent) == null || _.postMessage({
|
|
4501
4483
|
type: "builder.evaluateResult",
|
|
4502
4484
|
data: {
|
|
4503
|
-
id:
|
|
4504
|
-
result:
|
|
4485
|
+
id: f,
|
|
4486
|
+
result: N
|
|
4505
4487
|
}
|
|
4506
4488
|
}, "*");
|
|
4507
4489
|
}).catch(console.error) : (a = window.parent) == null || a.postMessage({
|
|
4508
4490
|
type: "builder.evaluateResult",
|
|
4509
4491
|
data: {
|
|
4510
4492
|
result: y,
|
|
4511
|
-
id:
|
|
4493
|
+
id: f
|
|
4512
4494
|
}
|
|
4513
4495
|
}, "*");
|
|
4514
4496
|
break;
|
|
@@ -4516,50 +4498,7 @@ const wo = (e = {}) => {
|
|
|
4516
4498
|
}
|
|
4517
4499
|
})));
|
|
4518
4500
|
};
|
|
4519
|
-
function
|
|
4520
|
-
return Math.round(e * 1e3) / 1e3;
|
|
4521
|
-
}
|
|
4522
|
-
const ko = (e, t, r = !0) => {
|
|
4523
|
-
if (!(e instanceof HTMLElement))
|
|
4524
|
-
return null;
|
|
4525
|
-
let n = r ? e : e.parentElement;
|
|
4526
|
-
do {
|
|
4527
|
-
if (!n)
|
|
4528
|
-
return null;
|
|
4529
|
-
if (t(n))
|
|
4530
|
-
return n;
|
|
4531
|
-
} while (n = n.parentElement);
|
|
4532
|
-
return null;
|
|
4533
|
-
}, Co = (e) => ko(e, (t) => {
|
|
4534
|
-
const r = t.getAttribute("builder-id") || t.id;
|
|
4535
|
-
return (r == null ? void 0 : r.indexOf("builder-")) === 0;
|
|
4536
|
-
}), sr = ({
|
|
4537
|
-
event: e,
|
|
4538
|
-
target: t
|
|
4539
|
-
}) => {
|
|
4540
|
-
const r = t.getBoundingClientRect(), n = e.clientX - r.left, i = e.clientY - r.top, a = ar(n / r.width), s = ar(i / r.height);
|
|
4541
|
-
return {
|
|
4542
|
-
x: a,
|
|
4543
|
-
y: s
|
|
4544
|
-
};
|
|
4545
|
-
}, Eo = (e) => {
|
|
4546
|
-
const t = e.target, r = t && Co(t), n = (r == null ? void 0 : r.getAttribute("builder-id")) || (r == null ? void 0 : r.id);
|
|
4547
|
-
return {
|
|
4548
|
-
targetBuilderElement: n || void 0,
|
|
4549
|
-
metadata: {
|
|
4550
|
-
targetOffset: t ? sr({
|
|
4551
|
-
event: e,
|
|
4552
|
-
target: t
|
|
4553
|
-
}) : void 0,
|
|
4554
|
-
builderTargetOffset: r ? sr({
|
|
4555
|
-
event: e,
|
|
4556
|
-
target: r
|
|
4557
|
-
}) : void 0,
|
|
4558
|
-
builderElementIndex: r && n ? [].slice.call(document.getElementsByClassName(n)).indexOf(r) : void 0
|
|
4559
|
-
}
|
|
4560
|
-
};
|
|
4561
|
-
};
|
|
4562
|
-
function Io(e) {
|
|
4501
|
+
function bo(e) {
|
|
4563
4502
|
var ae, se, W, ee, T;
|
|
4564
4503
|
const t = Yt(null), [r, n] = H(() => 0);
|
|
4565
4504
|
function i(O) {
|
|
@@ -4609,7 +4548,7 @@ function Io(e) {
|
|
|
4609
4548
|
}
|
|
4610
4549
|
}
|
|
4611
4550
|
}
|
|
4612
|
-
function
|
|
4551
|
+
function f() {
|
|
4613
4552
|
var b, B;
|
|
4614
4553
|
const O = (B = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : B.jsCode;
|
|
4615
4554
|
O && et({
|
|
@@ -4620,22 +4559,22 @@ function Io(e) {
|
|
|
4620
4559
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4621
4560
|
});
|
|
4622
4561
|
}
|
|
4623
|
-
const [p, y] = H(() => ({})), [x,
|
|
4562
|
+
const [p, y] = H(() => ({})), [x, N] = H(() => !1);
|
|
4624
4563
|
function _(O) {
|
|
4625
4564
|
var b, B;
|
|
4626
4565
|
if (e.builderContextSignal.content) {
|
|
4627
4566
|
const M = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, j = (B = e.builderContextSignal.content) == null ? void 0 : B.id;
|
|
4628
4567
|
Kn({
|
|
4629
4568
|
type: "click",
|
|
4630
|
-
canTrack:
|
|
4569
|
+
canTrack: dt(e.canTrack),
|
|
4631
4570
|
contentId: j,
|
|
4632
4571
|
apiKey: e.apiKey,
|
|
4633
4572
|
variationId: M !== j ? M : void 0,
|
|
4634
|
-
...
|
|
4573
|
+
...go(O),
|
|
4635
4574
|
unique: !x
|
|
4636
4575
|
});
|
|
4637
4576
|
}
|
|
4638
|
-
x ||
|
|
4577
|
+
x || N(!0);
|
|
4639
4578
|
}
|
|
4640
4579
|
function C(O) {
|
|
4641
4580
|
return O.replace(
|
|
@@ -4690,7 +4629,7 @@ function Io(e) {
|
|
|
4690
4629
|
);
|
|
4691
4630
|
}
|
|
4692
4631
|
function v(O) {
|
|
4693
|
-
n(r + 1), window.addEventListener("message", u),
|
|
4632
|
+
n(r + 1), window.addEventListener("message", u), vo(), xo({
|
|
4694
4633
|
...e.locale ? {
|
|
4695
4634
|
locale: e.locale
|
|
4696
4635
|
} : {},
|
|
@@ -4715,7 +4654,7 @@ function Io(e) {
|
|
|
4715
4654
|
const b = new URL(location.href).searchParams, B = b.get("builder.preview"), M = b.get(
|
|
4716
4655
|
`builder.preview.${B}`
|
|
4717
4656
|
), j = b.get("apiKey") || b.get("builder.space");
|
|
4718
|
-
B === e.model && j === e.apiKey && (!e.content || M === e.content.id) &&
|
|
4657
|
+
B === e.model && j === e.apiKey && (!e.content || M === e.content.id) && dr({
|
|
4719
4658
|
model: e.model,
|
|
4720
4659
|
apiKey: e.apiKey,
|
|
4721
4660
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -4750,7 +4689,7 @@ function Io(e) {
|
|
|
4750
4689
|
}, []), Q(() => {
|
|
4751
4690
|
var O, b;
|
|
4752
4691
|
if (Ee()) {
|
|
4753
|
-
if (Ce() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content &&
|
|
4692
|
+
if (Ce() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && dt(e.canTrack)) {
|
|
4754
4693
|
const M = (O = e.builderContextSignal.content) == null ? void 0 : O.testVariationId, j = (b = e.builderContextSignal.content) == null ? void 0 : b.id, D = e.apiKey;
|
|
4755
4694
|
Kn({
|
|
4756
4695
|
type: "impression",
|
|
@@ -4763,14 +4702,14 @@ function Io(e) {
|
|
|
4763
4702
|
Kr() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
4764
4703
|
}
|
|
4765
4704
|
}, []), Q(() => {
|
|
4766
|
-
e.apiKey ||
|
|
4705
|
+
e.apiKey || Ne.error(
|
|
4767
4706
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4768
|
-
),
|
|
4707
|
+
), f(), L(), V();
|
|
4769
4708
|
}, []), Q(() => {
|
|
4770
4709
|
e.content && i(e.content);
|
|
4771
4710
|
}, [e.content]), Q(() => {
|
|
4772
4711
|
}, [a]), Q(() => {
|
|
4773
|
-
|
|
4712
|
+
f();
|
|
4774
4713
|
}, [
|
|
4775
4714
|
(se = (ae = e.builderContextSignal.content) == null ? void 0 : ae.data) == null ? void 0 : se.jsCode,
|
|
4776
4715
|
e.builderContextSignal.rootState
|
|
@@ -4783,7 +4722,7 @@ function Io(e) {
|
|
|
4783
4722
|
"builder:component:stateChangeListenerActivated",
|
|
4784
4723
|
V
|
|
4785
4724
|
));
|
|
4786
|
-
}, []), /* @__PURE__ */ g(
|
|
4725
|
+
}, []), /* @__PURE__ */ g(Zt.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ ur(
|
|
4787
4726
|
"div",
|
|
4788
4727
|
{
|
|
4789
4728
|
key: r,
|
|
@@ -4800,21 +4739,107 @@ function Io(e) {
|
|
|
4800
4739
|
e.children
|
|
4801
4740
|
) }) : null });
|
|
4802
4741
|
}
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4742
|
+
const So = (e) => {
|
|
4743
|
+
var a;
|
|
4744
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), r = t.split(",")[0], n = e.fileUrl ?? ((a = e == null ? void 0 : e.files) == null ? void 0 : a.regular);
|
|
4745
|
+
let i = "";
|
|
4746
|
+
if (n && t && r && (i += `
|
|
4747
|
+
@font-face {
|
|
4748
|
+
font-family: "${t}";
|
|
4749
|
+
src: local("${r}"), url('${n}') format('woff2');
|
|
4750
|
+
font-display: fallback;
|
|
4751
|
+
font-weight: 400;
|
|
4752
|
+
}
|
|
4753
|
+
`.trim()), e.files)
|
|
4754
|
+
for (const s in e.files) {
|
|
4755
|
+
if (!(String(Number(s)) === s))
|
|
4756
|
+
continue;
|
|
4757
|
+
const f = e.files[s];
|
|
4758
|
+
f && f !== n && (i += `
|
|
4759
|
+
@font-face {
|
|
4760
|
+
font-family: "${t}";
|
|
4761
|
+
src: url('${f}') format('woff2');
|
|
4762
|
+
font-display: fallback;
|
|
4763
|
+
font-weight: ${s};
|
|
4764
|
+
}
|
|
4765
|
+
`.trim());
|
|
4809
4766
|
}
|
|
4767
|
+
return i;
|
|
4768
|
+
}, wo = ({
|
|
4769
|
+
customFonts: e
|
|
4770
|
+
}) => {
|
|
4771
|
+
var t;
|
|
4772
|
+
return ((t = e == null ? void 0 : e.map((r) => So(r))) == null ? void 0 : t.join(" ")) || "";
|
|
4773
|
+
}, ko = ({
|
|
4774
|
+
cssCode: e,
|
|
4775
|
+
contentId: t
|
|
4776
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4777
|
+
function Co(e) {
|
|
4778
|
+
const [t, r] = H(
|
|
4779
|
+
() => `
|
|
4780
|
+
${ko({
|
|
4781
|
+
cssCode: e.cssCode,
|
|
4782
|
+
contentId: e.contentId
|
|
4783
|
+
})}
|
|
4784
|
+
${wo({
|
|
4785
|
+
customFonts: e.customFonts
|
|
4786
|
+
})}
|
|
4787
|
+
|
|
4788
|
+
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
4789
|
+
margin: 0;
|
|
4790
|
+
}
|
|
4791
|
+
.builder-text > p, .builder-text > .builder-paragraph {
|
|
4792
|
+
color: inherit;
|
|
4793
|
+
line-height: inherit;
|
|
4794
|
+
letter-spacing: inherit;
|
|
4795
|
+
font-weight: inherit;
|
|
4796
|
+
font-size: inherit;
|
|
4797
|
+
text-align: inherit;
|
|
4798
|
+
font-family: inherit;
|
|
4799
|
+
}
|
|
4800
|
+
`.trim()
|
|
4810
4801
|
);
|
|
4802
|
+
return /* @__PURE__ */ g(gt, { styles: t });
|
|
4811
4803
|
}
|
|
4804
|
+
const Eo = ({
|
|
4805
|
+
content: e,
|
|
4806
|
+
data: t,
|
|
4807
|
+
locale: r
|
|
4808
|
+
}) => {
|
|
4809
|
+
var a, s, u;
|
|
4810
|
+
const n = {};
|
|
4811
|
+
(s = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || s.forEach((f) => {
|
|
4812
|
+
var p;
|
|
4813
|
+
f.name && f.defaultValue !== void 0 && ((p = e == null ? void 0 : e.data) != null && p.state) && e.data.state[f.name] === void 0 && (n[f.name] = f.defaultValue);
|
|
4814
|
+
});
|
|
4815
|
+
const i = {
|
|
4816
|
+
...(u = e == null ? void 0 : e.data) == null ? void 0 : u.state,
|
|
4817
|
+
...t,
|
|
4818
|
+
...r ? {
|
|
4819
|
+
locale: r
|
|
4820
|
+
} : {}
|
|
4821
|
+
};
|
|
4822
|
+
return {
|
|
4823
|
+
...n,
|
|
4824
|
+
...i
|
|
4825
|
+
};
|
|
4826
|
+
}, Io = ({
|
|
4827
|
+
content: e,
|
|
4828
|
+
data: t
|
|
4829
|
+
}) => e ? {
|
|
4830
|
+
...e,
|
|
4831
|
+
data: {
|
|
4832
|
+
...e == null ? void 0 : e.data,
|
|
4833
|
+
...t
|
|
4834
|
+
},
|
|
4835
|
+
meta: e == null ? void 0 : e.meta
|
|
4836
|
+
} : void 0;
|
|
4812
4837
|
function lr(e) {
|
|
4813
|
-
var
|
|
4838
|
+
var f, p, y, x, N, _, C;
|
|
4814
4839
|
const [t, r] = H(
|
|
4815
4840
|
() => {
|
|
4816
4841
|
var I, L;
|
|
4817
|
-
return
|
|
4842
|
+
return ho({
|
|
4818
4843
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4819
4844
|
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
4820
4845
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4849,12 +4874,12 @@ function lr(e) {
|
|
|
4849
4874
|
{}
|
|
4850
4875
|
)
|
|
4851
4876
|
), [s, u] = H(() => ({
|
|
4852
|
-
content:
|
|
4877
|
+
content: Io({
|
|
4853
4878
|
content: e.content,
|
|
4854
4879
|
data: e.data
|
|
4855
4880
|
}),
|
|
4856
4881
|
localState: void 0,
|
|
4857
|
-
rootState:
|
|
4882
|
+
rootState: Eo({
|
|
4858
4883
|
content: e.content,
|
|
4859
4884
|
data: e.data,
|
|
4860
4885
|
locale: e.locale
|
|
@@ -4882,13 +4907,13 @@ function lr(e) {
|
|
|
4882
4907
|
inheritedStyles: {}
|
|
4883
4908
|
}));
|
|
4884
4909
|
return /* @__PURE__ */ g(
|
|
4885
|
-
|
|
4910
|
+
fr.Provider,
|
|
4886
4911
|
{
|
|
4887
4912
|
value: {
|
|
4888
4913
|
registeredComponents: i
|
|
4889
4914
|
},
|
|
4890
4915
|
children: /* @__PURE__ */ Z(
|
|
4891
|
-
|
|
4916
|
+
bo,
|
|
4892
4917
|
{
|
|
4893
4918
|
content: e.content,
|
|
4894
4919
|
model: e.model,
|
|
@@ -4905,15 +4930,15 @@ function lr(e) {
|
|
|
4905
4930
|
children: [
|
|
4906
4931
|
e.isSsrAbTest ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(Jt, { scriptStr: t }) }) : null,
|
|
4907
4932
|
/* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
4908
|
-
|
|
4933
|
+
Co,
|
|
4909
4934
|
{
|
|
4910
|
-
contentId: (
|
|
4935
|
+
contentId: (f = s.content) == null ? void 0 : f.id,
|
|
4911
4936
|
cssCode: (y = (p = s.content) == null ? void 0 : p.data) == null ? void 0 : y.cssCode,
|
|
4912
|
-
customFonts: (
|
|
4937
|
+
customFonts: (N = (x = s.content) == null ? void 0 : x.data) == null ? void 0 : N.customFonts
|
|
4913
4938
|
}
|
|
4914
4939
|
) }),
|
|
4915
4940
|
/* @__PURE__ */ g(
|
|
4916
|
-
|
|
4941
|
+
fn,
|
|
4917
4942
|
{
|
|
4918
4943
|
blocks: (C = (_ = s.content) == null ? void 0 : _.data) == null ? void 0 : C.blocks,
|
|
4919
4944
|
context: s,
|
|
@@ -4927,16 +4952,16 @@ function lr(e) {
|
|
|
4927
4952
|
);
|
|
4928
4953
|
}
|
|
4929
4954
|
function Ir(e) {
|
|
4930
|
-
var s, u,
|
|
4955
|
+
var s, u, f;
|
|
4931
4956
|
const [t, r] = H(
|
|
4932
|
-
() =>
|
|
4933
|
-
canTrack:
|
|
4957
|
+
() => ao({
|
|
4958
|
+
canTrack: dt(e.canTrack),
|
|
4934
4959
|
content: e.content
|
|
4935
4960
|
})
|
|
4936
4961
|
);
|
|
4937
4962
|
function n() {
|
|
4938
4963
|
var p;
|
|
4939
|
-
return
|
|
4964
|
+
return fo(
|
|
4940
4965
|
ut(e.content).map((y) => ({
|
|
4941
4966
|
id: y.testVariationId,
|
|
4942
4967
|
testRatio: y.testRatio
|
|
@@ -4954,12 +4979,12 @@ function Ir(e) {
|
|
|
4954
4979
|
testVariationId: (p = e.content) == null ? void 0 : p.id
|
|
4955
4980
|
} : Xr({
|
|
4956
4981
|
item: e.content,
|
|
4957
|
-
canTrack:
|
|
4982
|
+
canTrack: dt(e.canTrack)
|
|
4958
4983
|
});
|
|
4959
4984
|
}
|
|
4960
4985
|
return Q(() => {
|
|
4961
4986
|
}, []), /* @__PURE__ */ Z(U, { children: [
|
|
4962
|
-
!e.__isNestedRender && tt !== "reactNative" ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(Jt, { scriptStr:
|
|
4987
|
+
!e.__isNestedRender && tt !== "reactNative" ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(Jt, { scriptStr: uo() }) }) : null,
|
|
4963
4988
|
t ? /* @__PURE__ */ Z(U, { children: [
|
|
4964
4989
|
/* @__PURE__ */ g(
|
|
4965
4990
|
gt,
|
|
@@ -4994,7 +5019,7 @@ function Ir(e) {
|
|
|
4994
5019
|
lr,
|
|
4995
5020
|
{
|
|
4996
5021
|
content: a(),
|
|
4997
|
-
classNameProp: `variant-${(
|
|
5022
|
+
classNameProp: `variant-${(f = e.content) == null ? void 0 : f.id}`,
|
|
4998
5023
|
showContent: !0,
|
|
4999
5024
|
model: e.model,
|
|
5000
5025
|
data: e.data,
|
|
@@ -5017,7 +5042,7 @@ const To = async ({
|
|
|
5017
5042
|
}) => {
|
|
5018
5043
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5019
5044
|
(e != null && e.apiKey))
|
|
5020
|
-
return
|
|
5045
|
+
return dr({
|
|
5021
5046
|
model: t.model,
|
|
5022
5047
|
apiKey: e.apiKey,
|
|
5023
5048
|
apiVersion: e.apiVersion,
|
|
@@ -5027,34 +5052,33 @@ const To = async ({
|
|
|
5027
5052
|
}
|
|
5028
5053
|
}
|
|
5029
5054
|
}).catch((r) => {
|
|
5030
|
-
|
|
5055
|
+
Ne.error("Could not fetch symbol content: ", r);
|
|
5031
5056
|
});
|
|
5032
5057
|
};
|
|
5033
5058
|
function jo(e) {
|
|
5034
5059
|
var a, s, u;
|
|
5035
5060
|
function t() {
|
|
5036
|
-
var
|
|
5061
|
+
var f, p;
|
|
5037
5062
|
return [
|
|
5038
5063
|
e.attributes.className,
|
|
5039
5064
|
"builder-symbol",
|
|
5040
|
-
(
|
|
5065
|
+
(f = e.symbol) != null && f.inline ? "builder-inline-symbol" : void 0,
|
|
5041
5066
|
(p = e.symbol) != null && p.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5042
5067
|
].filter(Boolean).join(" ");
|
|
5043
5068
|
}
|
|
5044
5069
|
const [r, n] = H(() => {
|
|
5045
|
-
var
|
|
5046
|
-
return (
|
|
5070
|
+
var f;
|
|
5071
|
+
return (f = e.symbol) == null ? void 0 : f.content;
|
|
5047
5072
|
});
|
|
5048
5073
|
function i() {
|
|
5049
5074
|
r || To({
|
|
5050
5075
|
symbol: e.symbol,
|
|
5051
5076
|
builderContextValue: e.builderContext
|
|
5052
|
-
}).then((
|
|
5053
|
-
|
|
5077
|
+
}).then((f) => {
|
|
5078
|
+
f && n(f);
|
|
5054
5079
|
});
|
|
5055
5080
|
}
|
|
5056
5081
|
return Q(() => {
|
|
5057
|
-
i();
|
|
5058
5082
|
}, []), Q(() => {
|
|
5059
5083
|
i();
|
|
5060
5084
|
}, [e.symbol]), /* @__PURE__ */ g("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ g(
|
|
@@ -5075,25 +5099,25 @@ function jo(e) {
|
|
|
5075
5099
|
}
|
|
5076
5100
|
) });
|
|
5077
5101
|
}
|
|
5078
|
-
const
|
|
5102
|
+
const Po = fn, No = Ir;
|
|
5079
5103
|
export {
|
|
5080
|
-
|
|
5104
|
+
fn as Blocks,
|
|
5081
5105
|
Jr as Button,
|
|
5082
5106
|
Ui as Columns,
|
|
5083
5107
|
Ir as Content,
|
|
5084
5108
|
Bi as Fragment,
|
|
5085
5109
|
$i as Image,
|
|
5086
|
-
|
|
5087
|
-
|
|
5110
|
+
Po as RenderBlocks,
|
|
5111
|
+
No as RenderContent,
|
|
5088
5112
|
Vi as Section,
|
|
5089
5113
|
jo as Symbol,
|
|
5090
|
-
|
|
5091
|
-
|
|
5114
|
+
ro as Text,
|
|
5115
|
+
oo as Video,
|
|
5092
5116
|
Uo as _processContentResult,
|
|
5093
5117
|
Gr as createRegisterComponentMessage,
|
|
5094
5118
|
Bo as fetchBuilderProps,
|
|
5095
5119
|
_o as fetchEntries,
|
|
5096
|
-
|
|
5120
|
+
dr as fetchOneEntry,
|
|
5097
5121
|
Lo as getAllContent,
|
|
5098
5122
|
$o as getBuilderSearchParams,
|
|
5099
5123
|
Vo as getContent,
|