@builder.io/sdk-vue 1.0.4 → 1.0.8
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/{block-styles-ukxa2-Zu.cjs → block-styles-AAxOlclQ.cjs} +1 -1
- package/lib/browser/{block-styles-j9np3P-r.js → block-styles-gyTa8_cM.js} +1 -1
- package/lib/browser/{block-wrapper-FxyYLXqG.js → block-wrapper-Bq8tasBV.js} +3 -3
- package/lib/browser/{block-wrapper-_qLR80a4.cjs → block-wrapper-ZzTouD9Y.cjs} +1 -1
- package/lib/browser/{component-ref-ef4o2sj2.cjs → component-ref-WqZNJLMG.cjs} +1 -1
- package/lib/browser/{component-ref-EbQVULbj.js → component-ref-nCjiM4wU.js} +2 -2
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/get-builder-search-params/index.d.ts +1 -4
- package/lib/browser/functions/is-editing.d.ts +2 -1
- package/lib/browser/functions/is-previewing.d.ts +2 -1
- package/lib/browser/{get-block-properties-o2be_Wxk.cjs → get-block-properties-NNYz1VUS.cjs} +1 -1
- package/lib/browser/{get-block-properties-Rh4X_YUt.js → get-block-properties-scPeiCGw.js} +1 -1
- package/lib/browser/helpers/search/search.d.ts +5 -0
- package/lib/browser/{index-e70TYoUr.cjs → index-CE_7JN_L.cjs} +22 -22
- package/lib/browser/{index-GygQh2Rk.js → index-e7JzGvNr.js} +418 -414
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.d.cts +5 -2
- package/lib/browser/index.d.mts +5 -2
- package/lib/browser/index.js +1 -1
- package/lib/browser/{repeated-block-RuvksQ92.cjs → repeated-block-1QyTc_Ge.cjs} +1 -1
- package/lib/browser/{repeated-block-EjD4PExV.js → repeated-block-Lae75ASu.js} +2 -2
- package/lib/edge/{block-styles--O0l0Z9P.cjs → block-styles-Y_SDBrFL.cjs} +1 -1
- package/lib/{node/block-styles-r9wURB-0.js → edge/block-styles-t6BdrZRo.js} +1 -1
- package/lib/edge/{block-wrapper-gb29rdP4.js → block-wrapper--RDdE8Xa.js} +3 -3
- package/lib/{node/block-wrapper-B_V9SIlS.cjs → edge/block-wrapper-sT4llKTw.cjs} +1 -1
- package/lib/{node/component-ref-YacFSt-X.js → edge/component-ref-TDfuL1PH.js} +2 -2
- package/lib/{node/component-ref-ap55YBte.cjs → edge/component-ref-ZK5Q5tpH.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/get-builder-search-params/index.d.ts +1 -4
- package/lib/edge/functions/is-editing.d.ts +2 -1
- package/lib/edge/functions/is-previewing.d.ts +2 -1
- package/lib/{node/get-block-properties-qrTxzWJ0.js → edge/get-block-properties--oDxym9c.js} +1 -1
- package/lib/edge/{get-block-properties-0gL7ciO6.cjs → get-block-properties-vTv831p0.cjs} +1 -1
- package/lib/edge/helpers/search/search.d.ts +5 -0
- package/lib/edge/{index-0_TXnqeC.cjs → index-2hB96A6m.cjs} +30 -30
- package/lib/edge/{index-d-VaM23f.js → index-HfAkZYqK.js} +550 -546
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.d.cts +5 -2
- package/lib/edge/index.d.mts +5 -2
- package/lib/edge/index.js +1 -1
- package/lib/{node/repeated-block-QEaWmQ3H.js → edge/repeated-block-QlWFWzl3.js} +2 -2
- package/lib/edge/{repeated-block-tJccBEG3.cjs → repeated-block-mTvXOtgX.cjs} +1 -1
- package/lib/{edge/block-styles-j3USwD3t.js → node/block-styles-TMZzzEym.js} +1 -1
- package/lib/node/{block-styles-5A29R26b.cjs → block-styles-VXzLF18j.cjs} +1 -1
- package/lib/node/{block-wrapper-_4dHa6F_.js → block-wrapper-P29FOF5s.js} +3 -3
- package/lib/{edge/block-wrapper-M9NUhWGH.cjs → node/block-wrapper-lY4KuAoh.cjs} +1 -1
- package/lib/{edge/component-ref-3ett8l8W.js → node/component-ref-iQDwDDn1.js} +2 -2
- package/lib/{edge/component-ref-3csDQ7HK.cjs → node/component-ref-yNViYBX7.cjs} +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/get-builder-search-params/index.d.ts +1 -4
- package/lib/node/functions/is-editing.d.ts +2 -1
- package/lib/node/functions/is-previewing.d.ts +2 -1
- package/lib/{edge/get-block-properties-Ulj_6ST2.js → node/get-block-properties-7XzE1Wt8.js} +1 -1
- package/lib/node/{get-block-properties-YuIrE2ch.cjs → get-block-properties-k6EZWlbR.cjs} +1 -1
- package/lib/node/helpers/search/search.d.ts +5 -0
- package/lib/node/{index-zohROqUT.cjs → index-UG1lEFOg.cjs} +3 -3
- package/lib/node/{index-r1pyGeuy.js → index-XuArWqRY.js} +22 -18
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.d.cts +5 -2
- package/lib/node/index.d.mts +5 -2
- package/lib/node/index.js +1 -1
- package/lib/{edge/repeated-block-nv-GpmWU.js → node/repeated-block-GHkPBpsU.js} +2 -2
- package/lib/node/{repeated-block-pNU308ur.cjs → repeated-block-ziSYMWGM.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as N, openBlock as y, createElementBlock as $, Fragment as re, createBlock as B, resolveDynamicComponent as st, mergeProps as J, toHandlers as ce, withCtx as Ce, renderSlot as pe, resolveComponent as V, createTextVNode as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as N, openBlock as y, createElementBlock as $, Fragment as re, createBlock as B, resolveDynamicComponent as st, mergeProps as J, toHandlers as ce, withCtx as Ce, renderSlot as pe, resolveComponent as V, createTextVNode as To, toDisplayString as Rt, defineAsyncComponent as wt, createVNode as ke, renderList as Be, createCommentVNode as D, h as Tr, createElementVNode as rn, normalizeStyle as on, normalizeClass as xr, markRaw as xo } from "vue";
|
|
2
|
+
const Ro = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ao = (e) => typeof e == "string" && Ro.has(e.toLowerCase());
|
|
3
3
|
function $e(e = {}, t, n) {
|
|
4
4
|
const r = {};
|
|
5
5
|
for (const o in e) {
|
|
@@ -10,11 +10,11 @@ function $e(e = {}, t, n) {
|
|
|
10
10
|
}
|
|
11
11
|
return r;
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const $o = N({
|
|
14
14
|
name: "dynamic-renderer",
|
|
15
15
|
props: ["attributes", "actionAttributes", "TagName"],
|
|
16
16
|
data() {
|
|
17
|
-
return { isEmptyElement:
|
|
17
|
+
return { isEmptyElement: Ao };
|
|
18
18
|
}
|
|
19
19
|
}), U = (e, t) => {
|
|
20
20
|
const n = e.__vccOpts || e;
|
|
@@ -22,7 +22,7 @@ const Ao = N({
|
|
|
22
22
|
n[r] = o;
|
|
23
23
|
return n;
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function Po(e, t, n, r, o, i) {
|
|
26
26
|
return e.isEmptyElement(e.TagName) ? (y(), B(st(e.TagName), J({ key: 1 }, e.attributes, ce(e.actionAttributes)), null, 16)) : (y(), $(re, { key: 0 }, [
|
|
27
27
|
typeof e.TagName == "string" ? (y(), B(st(e.TagName), J({ key: 0 }, e.attributes, ce(e.actionAttributes)), {
|
|
28
28
|
default: Ce(() => [
|
|
@@ -37,7 +37,7 @@ function $o(e, t, n, r, o, i) {
|
|
|
37
37
|
}, 16))
|
|
38
38
|
], 64));
|
|
39
39
|
}
|
|
40
|
-
const dn = /* @__PURE__ */ U(
|
|
40
|
+
const dn = /* @__PURE__ */ U($o, [["render", Po]]), Rl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41
41
|
__proto__: null,
|
|
42
42
|
default: dn
|
|
43
43
|
}, Symbol.toStringTag, { value: "Module" })), de = "vue", hn = () => {
|
|
@@ -66,7 +66,7 @@ const dn = /* @__PURE__ */ U(Ao, [["render", $o]]), xl = /* @__PURE__ */ Object.
|
|
|
66
66
|
return { getClassPropName: hn, filterAttrs: $e };
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
|
-
function
|
|
69
|
+
function Oo(e, t, n, r, o, i) {
|
|
70
70
|
const a = V("dynamic-renderer");
|
|
71
71
|
return y(), B(a, {
|
|
72
72
|
attributes: {
|
|
@@ -84,12 +84,12 @@ function Po(e, t, n, r, o, i) {
|
|
|
84
84
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
85
85
|
}, {
|
|
86
86
|
default: Ce(() => [
|
|
87
|
-
|
|
87
|
+
To(Rt(e.text), 1)
|
|
88
88
|
]),
|
|
89
89
|
_: 1
|
|
90
90
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
91
91
|
}
|
|
92
|
-
const
|
|
92
|
+
const No = /* @__PURE__ */ U(jo, [["render", Oo]]), Bo = Symbol(), sn = {
|
|
93
93
|
Builder: {
|
|
94
94
|
content: null,
|
|
95
95
|
context: {},
|
|
@@ -104,12 +104,12 @@ const Oo = /* @__PURE__ */ U(jo, [["render", Po]]), No = Symbol(), sn = {
|
|
|
104
104
|
BlocksWrapper: "div",
|
|
105
105
|
BlocksWrapperProps: {}
|
|
106
106
|
},
|
|
107
|
-
key: No
|
|
108
|
-
}, Bo = Symbol(), Rr = {
|
|
109
|
-
Components: { registeredComponents: {} },
|
|
110
107
|
key: Bo
|
|
108
|
+
}, Uo = Symbol(), Rr = {
|
|
109
|
+
Components: { registeredComponents: {} },
|
|
110
|
+
key: Uo
|
|
111
111
|
};
|
|
112
|
-
function
|
|
112
|
+
function Mo(e) {
|
|
113
113
|
var t;
|
|
114
114
|
return {
|
|
115
115
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -129,20 +129,26 @@ const Et = "[Builder.io]: ", Z = {
|
|
|
129
129
|
function X() {
|
|
130
130
|
return typeof window < "u" && typeof document < "u";
|
|
131
131
|
}
|
|
132
|
-
|
|
132
|
+
const Vo = (e) => {
|
|
133
|
+
const t = {};
|
|
134
|
+
return e.forEach((n, r) => {
|
|
135
|
+
t[r] = n;
|
|
136
|
+
}), t;
|
|
137
|
+
}, Ar = (e) => e instanceof URLSearchParams ? Vo(e) : e, $r = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
138
|
+
function Fo() {
|
|
133
139
|
return X() && window.self !== window.top;
|
|
134
140
|
}
|
|
135
|
-
function ie() {
|
|
136
|
-
return
|
|
141
|
+
function ie(e) {
|
|
142
|
+
return Fo() && $r(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
137
143
|
}
|
|
138
|
-
const
|
|
144
|
+
const Wo = () => {
|
|
139
145
|
if (X()) {
|
|
140
146
|
const e = new URL(location.href);
|
|
141
147
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
142
148
|
} else
|
|
143
149
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
144
|
-
},
|
|
145
|
-
const e =
|
|
150
|
+
}, Do = () => typeof navigator == "object" && navigator.userAgent || "", Pr = () => {
|
|
151
|
+
const e = Do(), t = {
|
|
146
152
|
Android() {
|
|
147
153
|
return e.match(/Android/i);
|
|
148
154
|
},
|
|
@@ -161,13 +167,13 @@ const Vo = () => {
|
|
|
161
167
|
any() {
|
|
162
168
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || de === "reactNative";
|
|
163
169
|
}
|
|
164
|
-
}, n = e.match(/Tablet|iPad/i), r =
|
|
170
|
+
}, n = e.match(/Tablet|iPad/i), r = Wo();
|
|
165
171
|
return {
|
|
166
172
|
urlPath: r == null ? void 0 : r.pathname,
|
|
167
173
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
168
174
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
169
175
|
};
|
|
170
|
-
},
|
|
176
|
+
}, jr = ({
|
|
171
177
|
builder: e,
|
|
172
178
|
context: t,
|
|
173
179
|
event: n,
|
|
@@ -179,14 +185,14 @@ const Vo = () => {
|
|
|
179
185
|
builder: e,
|
|
180
186
|
context: t,
|
|
181
187
|
event: n
|
|
182
|
-
}),
|
|
188
|
+
}), Lo = () => ({
|
|
183
189
|
isEditing: ie(),
|
|
184
190
|
isBrowser: X(),
|
|
185
191
|
isServer: !X(),
|
|
186
|
-
getUserAttributes: () =>
|
|
187
|
-
}),
|
|
192
|
+
getUserAttributes: () => Pr()
|
|
193
|
+
}), Ho = (e, {
|
|
188
194
|
isExpression: t = !0
|
|
189
|
-
}) => /* 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,
|
|
195
|
+
}) => /* 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, Ko = ({
|
|
190
196
|
code: e,
|
|
191
197
|
builder: t,
|
|
192
198
|
context: n,
|
|
@@ -195,11 +201,11 @@ const Vo = () => {
|
|
|
195
201
|
rootSetState: i,
|
|
196
202
|
rootState: a
|
|
197
203
|
}) => {
|
|
198
|
-
const u =
|
|
204
|
+
const u = jr({
|
|
199
205
|
builder: t,
|
|
200
206
|
context: n,
|
|
201
207
|
event: r,
|
|
202
|
-
state:
|
|
208
|
+
state: Or({
|
|
203
209
|
rootState: a,
|
|
204
210
|
localState: o,
|
|
205
211
|
rootSetState: i
|
|
@@ -207,7 +213,7 @@ const Vo = () => {
|
|
|
207
213
|
});
|
|
208
214
|
return new Function(...u.map(([d]) => d), e)(...u.map(([, d]) => d));
|
|
209
215
|
};
|
|
210
|
-
function
|
|
216
|
+
function Or({
|
|
211
217
|
rootState: e,
|
|
212
218
|
localState: t,
|
|
213
219
|
rootSetState: n
|
|
@@ -217,7 +223,7 @@ function jr({
|
|
|
217
223
|
if (t && o in t)
|
|
218
224
|
return t[o];
|
|
219
225
|
const i = r[o];
|
|
220
|
-
return typeof i == "object" ?
|
|
226
|
+
return typeof i == "object" ? Or({
|
|
221
227
|
rootState: i,
|
|
222
228
|
localState: void 0,
|
|
223
229
|
rootSetState: n ? (a) => {
|
|
@@ -238,9 +244,9 @@ const fn = (e, t, n) => {
|
|
|
238
244
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
239
245
|
return r.slice(0, -1).reduce((o, i, a) => Object(o[i]) === o[i] ? o[i] : o[i] = Math.abs(Number(r[a + 1])) >> 0 === +r[a + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
240
246
|
};
|
|
241
|
-
var O,
|
|
247
|
+
var O, _o = function(e) {
|
|
242
248
|
function t(s) {
|
|
243
|
-
return 48 > s ? s === 36 : 58 > s ? !0 : 65 > s ? !1 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s &&
|
|
249
|
+
return 48 > s ? s === 36 : 58 > s ? !0 : 65 > s ? !1 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s && Eo.test(String.fromCharCode(s));
|
|
244
250
|
}
|
|
245
251
|
function n(s) {
|
|
246
252
|
return 65 > s ? s === 36 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s && cr.test(String.fromCharCode(s));
|
|
@@ -268,7 +274,7 @@ var O, Ho = function(e) {
|
|
|
268
274
|
};
|
|
269
275
|
}
|
|
270
276
|
function i() {
|
|
271
|
-
this.line =
|
|
277
|
+
this.line = je, this.ab = p - me;
|
|
272
278
|
}
|
|
273
279
|
function a(s, l) {
|
|
274
280
|
Ve = p, R.C && (Dt = new i()), I = s, d(), oe = l, Xe = s.m;
|
|
@@ -284,9 +290,9 @@ var O, Ho = function(e) {
|
|
|
284
290
|
if (s === 32)
|
|
285
291
|
++p;
|
|
286
292
|
else if (s === 13)
|
|
287
|
-
++p, s = b.charCodeAt(p), s === 10 && ++p, R.C && (++
|
|
293
|
+
++p, s = b.charCodeAt(p), s === 10 && ++p, R.C && (++je, me = p);
|
|
288
294
|
else if (s === 10 || s === 8232 || s === 8233)
|
|
289
|
-
++p, R.C && (++
|
|
295
|
+
++p, R.C && (++je, me = p);
|
|
290
296
|
else if (8 < s && 14 > s)
|
|
291
297
|
++p;
|
|
292
298
|
else if (s === 47)
|
|
@@ -295,7 +301,7 @@ var O, Ho = function(e) {
|
|
|
295
301
|
var l = R.va && R.C && new i(), c = p, h = b.indexOf("*/", p += 2);
|
|
296
302
|
if (h === -1 && r(p - 2, "Unterminated comment"), p = h + 2, R.C)
|
|
297
303
|
for (Ct.lastIndex = c; (s = Ct.exec(b)) && s.index < p; )
|
|
298
|
-
++
|
|
304
|
+
++je, me = s.index + s[0].length;
|
|
299
305
|
R.va && R.va(!0, b.slice(c + 2, h), c, p, l, R.C && new i());
|
|
300
306
|
} else if (s === 47)
|
|
301
307
|
u();
|
|
@@ -303,7 +309,7 @@ var O, Ho = function(e) {
|
|
|
303
309
|
break;
|
|
304
310
|
else if (s === 160)
|
|
305
311
|
++p;
|
|
306
|
-
else if (5760 <= s &&
|
|
312
|
+
else if (5760 <= s && wo.test(String.fromCharCode(s)))
|
|
307
313
|
++p;
|
|
308
314
|
else
|
|
309
315
|
break;
|
|
@@ -336,7 +342,7 @@ var O, Ho = function(e) {
|
|
|
336
342
|
return ++p, a(rr);
|
|
337
343
|
case 48:
|
|
338
344
|
if (s = b.charCodeAt(p + 1), s === 120 || s === 88) {
|
|
339
|
-
p += 2, s =
|
|
345
|
+
p += 2, s = j(16), s === null && r(K + 2, "Expected hexadecimal number"), n(b.charCodeAt(p)) && r(p, "Identifier directly after number"), a(Ze, s);
|
|
340
346
|
return;
|
|
341
347
|
}
|
|
342
348
|
case 49:
|
|
@@ -402,7 +408,7 @@ var O, Ho = function(e) {
|
|
|
402
408
|
case 13:
|
|
403
409
|
b.charCodeAt(p) === 10 && ++p;
|
|
404
410
|
case 10:
|
|
405
|
-
R.C && (me = p, ++
|
|
411
|
+
R.C && (me = p, ++je);
|
|
406
412
|
break;
|
|
407
413
|
default:
|
|
408
414
|
l += String.fromCharCode(c);
|
|
@@ -416,26 +422,26 @@ var O, Ho = function(e) {
|
|
|
416
422
|
return;
|
|
417
423
|
case 37:
|
|
418
424
|
case 42:
|
|
419
|
-
b.charCodeAt(p + 1) === 61 ? f(Oe, 2) : f(
|
|
425
|
+
b.charCodeAt(p + 1) === 61 ? f(Oe, 2) : f(ko, 1);
|
|
420
426
|
return;
|
|
421
427
|
case 124:
|
|
422
428
|
case 38:
|
|
423
|
-
l = b.charCodeAt(p + 1), l === s ? f(s === 124 ? ar : lr, 2) : l === 61 ? f(Oe, 2) : f(s === 124 ?
|
|
429
|
+
l = b.charCodeAt(p + 1), l === s ? f(s === 124 ? ar : lr, 2) : l === 61 ? f(Oe, 2) : f(s === 124 ? ho : mo, 1);
|
|
424
430
|
return;
|
|
425
431
|
case 94:
|
|
426
|
-
b.charCodeAt(p + 1) === 61 ? f(Oe, 2) : f(
|
|
432
|
+
b.charCodeAt(p + 1) === 61 ? f(Oe, 2) : f(fo, 1);
|
|
427
433
|
return;
|
|
428
434
|
case 43:
|
|
429
435
|
case 45:
|
|
430
|
-
l = b.charCodeAt(p + 1), l === s ? l === 45 && b.charCodeAt(p + 2) === 62 && St.test(b.slice(Te, p)) ? (p += 3, u(), d(), v()) : f(
|
|
436
|
+
l = b.charCodeAt(p + 1), l === s ? l === 45 && b.charCodeAt(p + 2) === 62 && St.test(b.slice(Te, p)) ? (p += 3, u(), d(), v()) : f(po, 2) : l === 61 ? f(Oe, 2) : f(bo, 1);
|
|
431
437
|
return;
|
|
432
438
|
case 60:
|
|
433
439
|
case 62:
|
|
434
|
-
l = b.charCodeAt(p + 1), c = 1, l === s ? (c = s === 62 && b.charCodeAt(p + 2) === 62 ? 3 : 2, b.charCodeAt(p + c) === 61 ? f(Oe, c + 1) : f(
|
|
440
|
+
l = b.charCodeAt(p + 1), c = 1, l === s ? (c = s === 62 && b.charCodeAt(p + 2) === 62 ? 3 : 2, b.charCodeAt(p + c) === 61 ? f(Oe, c + 1) : f(vo, c)) : l === 33 && s === 60 && b.charCodeAt(p + 2) === 45 && b.charCodeAt(p + 3) === 45 ? (p += 4, u(), d(), v()) : (l === 61 && (c = b.charCodeAt(p + 2) === 61 ? 3 : 2), f(yo, c));
|
|
435
441
|
return;
|
|
436
442
|
case 61:
|
|
437
443
|
case 33:
|
|
438
|
-
b.charCodeAt(p + 1) === 61 ? f(
|
|
444
|
+
b.charCodeAt(p + 1) === 61 ? f(go, b.charCodeAt(p + 2) === 61 ? 3 : 2) : f(s === 61 ? ir : sr, 1);
|
|
439
445
|
return;
|
|
440
446
|
case 126:
|
|
441
447
|
return f(sr, 1);
|
|
@@ -484,7 +490,7 @@ var O, Ho = function(e) {
|
|
|
484
490
|
}
|
|
485
491
|
a(Mn, T);
|
|
486
492
|
}
|
|
487
|
-
function
|
|
493
|
+
function j(s, l) {
|
|
488
494
|
for (var c = p, h = 0, T = l === void 0 ? 1 / 0 : l, _ = 0; _ < T; ++_) {
|
|
489
495
|
var Q = b.charCodeAt(p);
|
|
490
496
|
if (Q = 97 <= Q ? Q - 97 + 10 : 65 <= Q ? Q - 65 + 10 : 48 <= Q && 57 >= Q ? Q - 48 : 1 / 0, Q >= s)
|
|
@@ -495,12 +501,12 @@ var O, Ho = function(e) {
|
|
|
495
501
|
}
|
|
496
502
|
function E(s) {
|
|
497
503
|
var l = p, c = !1, h = b.charCodeAt(p) === 48;
|
|
498
|
-
s ||
|
|
504
|
+
s || j(10) !== null || r(l, "Invalid number"), b.charCodeAt(p) === 46 && (++p, j(10), c = !0), s = b.charCodeAt(p), (s === 69 || s === 101) && (s = b.charCodeAt(++p), s !== 43 && s !== 45 || ++p, j(10) === null && r(l, "Invalid number"), c = !0), n(b.charCodeAt(p)) && r(p, "Identifier directly after number"), s = b.slice(l, p);
|
|
499
505
|
var T;
|
|
500
506
|
c ? T = parseFloat(s) : h && s.length !== 1 ? /[89]/.test(s) || ne ? r(l, "Invalid number") : T = parseInt(s, 8) : T = parseInt(s, 10), a(Ze, T);
|
|
501
507
|
}
|
|
502
508
|
function F(s) {
|
|
503
|
-
return s =
|
|
509
|
+
return s = j(16, s), s === null && r(K, "Bad character escape sequence"), s;
|
|
504
510
|
}
|
|
505
511
|
function se() {
|
|
506
512
|
De = !1;
|
|
@@ -520,7 +526,7 @@ var O, Ho = function(e) {
|
|
|
520
526
|
}
|
|
521
527
|
function W() {
|
|
522
528
|
var s = se(), l = Fe;
|
|
523
|
-
!De &&
|
|
529
|
+
!De && Co(s) && (l = co[s]), a(l, s);
|
|
524
530
|
}
|
|
525
531
|
function A() {
|
|
526
532
|
Lt = K, Te = Ve, Ht = Dt, v();
|
|
@@ -529,7 +535,7 @@ var O, Ho = function(e) {
|
|
|
529
535
|
if (ne = s, p = K, R.C)
|
|
530
536
|
for (; p < me; )
|
|
531
537
|
me = b.lastIndexOf(`
|
|
532
|
-
`, me - 2) + 1, --
|
|
538
|
+
`, me - 2) + 1, --je;
|
|
533
539
|
d(), v();
|
|
534
540
|
}
|
|
535
541
|
function ae() {
|
|
@@ -549,7 +555,7 @@ var O, Ho = function(e) {
|
|
|
549
555
|
function x(s, l) {
|
|
550
556
|
return s.type = l, s.end = Te, R.C && (s.X.end = Ht), R.Xa && (s.j[1] = Te), s;
|
|
551
557
|
}
|
|
552
|
-
function
|
|
558
|
+
function jt(s) {
|
|
553
559
|
return s.type === "ExpressionStatement" && s.la.type === "Literal" && s.la.value === "use strict";
|
|
554
560
|
}
|
|
555
561
|
function M(s) {
|
|
@@ -558,7 +564,7 @@ var O, Ho = function(e) {
|
|
|
558
564
|
function mt() {
|
|
559
565
|
return !R.fc && (I === Kt || I === We || St.test(b.slice(Te, K)));
|
|
560
566
|
}
|
|
561
|
-
function
|
|
567
|
+
function Pe() {
|
|
562
568
|
M(ye) || mt() || he();
|
|
563
569
|
}
|
|
564
570
|
function L(s) {
|
|
@@ -578,7 +584,7 @@ var O, Ho = function(e) {
|
|
|
578
584
|
case Fn:
|
|
579
585
|
A();
|
|
580
586
|
var c = s === _t;
|
|
581
|
-
M(ye) || mt() ? l.label = null : I !== Fe ? he() : (l.label = fe(),
|
|
587
|
+
M(ye) || mt() ? l.label = null : I !== Fe ? he() : (l.label = fe(), Pe());
|
|
582
588
|
for (var h = 0; h < H.length; ++h) {
|
|
583
589
|
var T = H[h];
|
|
584
590
|
if ((l.label === null || T.name === l.label.name) && (T.kind !== null && (c || T.kind === "loop") || l.label && c))
|
|
@@ -586,9 +592,9 @@ var O, Ho = function(e) {
|
|
|
586
592
|
}
|
|
587
593
|
return h === H.length && r(l.start, "Unsyntactic " + s.l), x(l, c ? "BreakStatement" : "ContinueStatement");
|
|
588
594
|
case Wn:
|
|
589
|
-
return A(),
|
|
595
|
+
return A(), Pe(), x(l, "DebuggerStatement");
|
|
590
596
|
case Ln:
|
|
591
|
-
return A(), H.push(Qt), l.body = le(), H.pop(), L(Xt), l.test = Ge(),
|
|
597
|
+
return A(), H.push(Qt), l.body = le(), H.pop(), L(Xt), l.test = Ge(), Pe(), x(l, "DoWhileStatement");
|
|
592
598
|
case _n:
|
|
593
599
|
return A(), H.push(Qt), L(ge), I === ye ? Ot(l, null) : I === Jt ? (s = G(), A(), Bn(s, !0), x(s, "VariableDeclaration"), s.fa.length === 1 && M(bt) ? Nn(l, s) : Ot(l, s)) : (s = Y(!1, !0), M(bt) ? (gt(s), Nn(l, s)) : Ot(l, s));
|
|
594
600
|
case Gt:
|
|
@@ -596,17 +602,17 @@ var O, Ho = function(e) {
|
|
|
596
602
|
case zn:
|
|
597
603
|
return A(), l.test = Ge(), l.da = le(), l.alternate = M(Hn) ? le() : null, x(l, "IfStatement");
|
|
598
604
|
case Gn:
|
|
599
|
-
return Ye || R.Ib || r(K, "'return' outside of function"), A(), M(ye) || mt() ? l.K = null : (l.K = Y(),
|
|
605
|
+
return Ye || R.Ib || r(K, "'return' outside of function"), A(), M(ye) || mt() ? l.K = null : (l.K = Y(), Pe()), x(l, "ReturnStatement");
|
|
600
606
|
case qt:
|
|
601
|
-
for (A(), l.Qb = Ge(), l.tb = [], L(Qe), H.push(
|
|
607
|
+
for (A(), l.Qb = Ge(), l.tb = [], L(Qe), H.push(Io); I !== We; )
|
|
602
608
|
I === zt || I === Dn ? (s = I === zt, h && x(h, "SwitchCase"), l.tb.push(h = G()), h.da = [], A(), s ? h.test = Y() : (c && r(Lt, "Multiple default clauses"), c = !0, h.test = null), L(et)) : (h || he(), h.da.push(le()));
|
|
603
609
|
return h && x(h, "SwitchCase"), A(), H.pop(), x(l, "SwitchStatement");
|
|
604
610
|
case qn:
|
|
605
|
-
return A(), St.test(b.slice(Te, K)) && r(Te, "Illegal newline after throw"), l.K = Y(),
|
|
611
|
+
return A(), St.test(b.slice(Te, K)) && r(Te, "Illegal newline after throw"), l.K = Y(), Pe(), x(l, "ThrowStatement");
|
|
606
612
|
case Jn:
|
|
607
613
|
return A(), l.block = qe(), l.Ea = null, I === Vn && (s = G(), A(), L(ge), s.Ua = fe(), ne && kt(s.Ua.name) && r(s.Ua.start, "Binding " + s.Ua.name + " in strict mode"), L(ue), s.body = qe(), l.Ea = x(s, "CatchClause")), l.fb = M(Kn) ? qe() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), x(l, "TryStatement");
|
|
608
614
|
case Jt:
|
|
609
|
-
return A(), Bn(l),
|
|
615
|
+
return A(), Bn(l), Pe(), x(l, "VariableDeclaration");
|
|
610
616
|
case Xt:
|
|
611
617
|
return A(), l.test = Ge(), H.push(Qt), l.body = le(), H.pop(), x(l, "WhileStatement");
|
|
612
618
|
case Xn:
|
|
@@ -624,7 +630,7 @@ var O, Ho = function(e) {
|
|
|
624
630
|
kind: I.W ? "loop" : I === qt ? "switch" : null
|
|
625
631
|
}), l.body = le(), H.pop(), l.label = T, x(l, "LabeledStatement");
|
|
626
632
|
}
|
|
627
|
-
return l.la = T,
|
|
633
|
+
return l.la = T, Pe(), x(l, "ExpressionStatement");
|
|
628
634
|
}
|
|
629
635
|
}
|
|
630
636
|
function Ge() {
|
|
@@ -636,7 +642,7 @@ var O, Ho = function(e) {
|
|
|
636
642
|
var l = G(), c = !0, h = !1;
|
|
637
643
|
for (l.body = [], L(Qe); !M(We); ) {
|
|
638
644
|
var T = le();
|
|
639
|
-
if (l.body.push(T), c && s &&
|
|
645
|
+
if (l.body.push(T), c && s && jt(T)) {
|
|
640
646
|
var _ = h;
|
|
641
647
|
Ue(h = !0);
|
|
642
648
|
}
|
|
@@ -749,7 +755,7 @@ var O, Ho = function(e) {
|
|
|
749
755
|
case Gt:
|
|
750
756
|
return s = G(), A(), Mt(s, !1);
|
|
751
757
|
case Yn:
|
|
752
|
-
return s = G(), A(), s.callee = Je(yt(), !0), s.arguments = M(ge) ? Vt(ue, !1) :
|
|
758
|
+
return s = G(), A(), s.callee = Je(yt(), !0), s.arguments = M(ge) ? Vt(ue, !1) : uo, x(s, "NewExpression");
|
|
753
759
|
}
|
|
754
760
|
he();
|
|
755
761
|
}
|
|
@@ -760,7 +766,7 @@ var O, Ho = function(e) {
|
|
|
760
766
|
c ? c = !1 : L(xe), s.oa.push(fe());
|
|
761
767
|
c = Ye;
|
|
762
768
|
var h = H;
|
|
763
|
-
if (Ye = !0, H = [], s.body = qe(!0), Ye = c, H = h, ne || s.body.body.length &&
|
|
769
|
+
if (Ye = !0, H = [], s.body = qe(!0), Ye = c, H = h, ne || s.body.body.length && jt(s.body.body[0])) {
|
|
764
770
|
for (c = s.id ? -1 : 0; c < s.oa.length; ++c)
|
|
765
771
|
if (h = 0 > c ? s.id : s.oa[c], (ur(h.name) || kt(h.name)) && r(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
766
772
|
for (var T = 0; T < c; ++T)
|
|
@@ -780,7 +786,7 @@ var O, Ho = function(e) {
|
|
|
780
786
|
}
|
|
781
787
|
function fe(s) {
|
|
782
788
|
var l = G();
|
|
783
|
-
return s && R.yb === "everywhere" && (s = !1), I === Fe ? (!s && (R.yb &&
|
|
789
|
+
return s && R.yb === "everywhere" && (s = !1), I === Fe ? (!s && (R.yb && So(oe) || ne && ur(oe)) && b.slice(K, Ve).indexOf("\\") === -1 && r(K, "The keyword '" + oe + "' is reserved"), l.name = oe) : s && I.l ? l.name = I.l : he(), Xe = !1, A(), x(l, "Identifier");
|
|
784
790
|
}
|
|
785
791
|
e.version = "0.5.0";
|
|
786
792
|
var R, b = "", Me, Ft;
|
|
@@ -788,8 +794,8 @@ var O, Ho = function(e) {
|
|
|
788
794
|
b = String(s), Me = b.length, R = l || {};
|
|
789
795
|
for (var c in Un)
|
|
790
796
|
Object.prototype.hasOwnProperty.call(R, c) || (R[c] = Un[c]);
|
|
791
|
-
for (Ft = R.sourceFile,
|
|
792
|
-
c = le(), s.body.push(c), l &&
|
|
797
|
+
for (Ft = R.sourceFile, je = 1, p = me = 0, Xe = !0, d(), c = R.dc, Lt = Te = p, R.C && (Ht = new i()), Ye = ne = !1, H = [], v(), s = c || G(), l = !0, c || (s.body = []); I !== Kt; )
|
|
798
|
+
c = le(), s.body.push(c), l && jt(c) && Ue(!0), l = !1;
|
|
793
799
|
return x(s, "Program");
|
|
794
800
|
};
|
|
795
801
|
var Un = {
|
|
@@ -803,7 +809,7 @@ var O, Ho = function(e) {
|
|
|
803
809
|
dc: null,
|
|
804
810
|
sourceFile: null,
|
|
805
811
|
vb: null
|
|
806
|
-
}, p = 0, K = 0, Ve = 0, Wt, Dt, I, oe, Xe,
|
|
812
|
+
}, p = 0, K = 0, Ve = 0, Wt, Dt, I, oe, Xe, je, me, Lt = 0, Te = 0, Ht, Ye, H, ne, uo = [], Ze = {
|
|
807
813
|
type: "num"
|
|
808
814
|
}, Mn = {
|
|
809
815
|
type: "regexp"
|
|
@@ -876,7 +882,7 @@ var O, Ho = function(e) {
|
|
|
876
882
|
l: "in",
|
|
877
883
|
L: 7,
|
|
878
884
|
m: !0
|
|
879
|
-
},
|
|
885
|
+
}, co = {
|
|
880
886
|
break: _t,
|
|
881
887
|
case: zt,
|
|
882
888
|
catch: Vn,
|
|
@@ -960,7 +966,7 @@ var O, Ho = function(e) {
|
|
|
960
966
|
}, Oe = {
|
|
961
967
|
Cb: !0,
|
|
962
968
|
m: !0
|
|
963
|
-
},
|
|
969
|
+
}, po = {
|
|
964
970
|
cc: !0,
|
|
965
971
|
prefix: !0,
|
|
966
972
|
$b: !0
|
|
@@ -973,38 +979,38 @@ var O, Ho = function(e) {
|
|
|
973
979
|
}, lr = {
|
|
974
980
|
L: 2,
|
|
975
981
|
m: !0
|
|
976
|
-
},
|
|
982
|
+
}, ho = {
|
|
977
983
|
L: 3,
|
|
978
984
|
m: !0
|
|
979
|
-
},
|
|
985
|
+
}, fo = {
|
|
980
986
|
L: 4,
|
|
981
987
|
m: !0
|
|
982
|
-
},
|
|
988
|
+
}, mo = {
|
|
983
989
|
L: 5,
|
|
984
990
|
m: !0
|
|
985
|
-
},
|
|
991
|
+
}, go = {
|
|
986
992
|
L: 6,
|
|
987
993
|
m: !0
|
|
988
|
-
},
|
|
994
|
+
}, yo = {
|
|
989
995
|
L: 7,
|
|
990
996
|
m: !0
|
|
991
|
-
},
|
|
997
|
+
}, vo = {
|
|
992
998
|
L: 8,
|
|
993
999
|
m: !0
|
|
994
|
-
},
|
|
1000
|
+
}, bo = {
|
|
995
1001
|
L: 9,
|
|
996
1002
|
prefix: !0,
|
|
997
1003
|
m: !0
|
|
998
|
-
},
|
|
1004
|
+
}, ko = {
|
|
999
1005
|
L: 10,
|
|
1000
1006
|
m: !0
|
|
1001
|
-
},
|
|
1007
|
+
}, So = o("class enum extends super const export import"), ur = o("implements interface let package private protected public static yield"), kt = o("eval arguments"), Co = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), wo = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, cr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Eo = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), St = /[\n\r\u2028\u2029]/, Ct = /\r\n|[\n\r\u2028\u2029]/g, De, Qt = {
|
|
1002
1008
|
kind: "loop"
|
|
1003
|
-
},
|
|
1009
|
+
}, Io = {
|
|
1004
1010
|
kind: "switch"
|
|
1005
1011
|
};
|
|
1006
1012
|
}, an = an = typeof globalThis > "u" ? void 0 : globalThis;
|
|
1007
|
-
|
|
1013
|
+
_o(an.j || (an.j = {}));
|
|
1008
1014
|
function g(e, t) {
|
|
1009
1015
|
typeof e == "string" && (e = Ke(e, "code"));
|
|
1010
1016
|
var n = e.constructor;
|
|
@@ -1046,7 +1052,7 @@ var pr = {
|
|
|
1046
1052
|
configurable: !1,
|
|
1047
1053
|
enumerable: !0,
|
|
1048
1054
|
writable: !0
|
|
1049
|
-
},
|
|
1055
|
+
}, Nr = {
|
|
1050
1056
|
STEP_ERROR: !0
|
|
1051
1057
|
}, ze = {
|
|
1052
1058
|
SCOPE_REFERENCE: !0
|
|
@@ -1054,7 +1060,7 @@ var pr = {
|
|
|
1054
1060
|
VALUE_IN_DESCRIPTOR: !0
|
|
1055
1061
|
}, He = {
|
|
1056
1062
|
REGEXP_TIMEOUT: !0
|
|
1057
|
-
}, hr = [], be = null, at = null, Re = typeof globalThis > "u" ? void 0 : globalThis,
|
|
1063
|
+
}, hr = [], be = null, at = null, Re = typeof globalThis > "u" ? void 0 : globalThis, zo = ["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();", "};"];
|
|
1058
1064
|
function gn(e) {
|
|
1059
1065
|
var t = e >>> 0;
|
|
1060
1066
|
return t === Number(e) ? t : NaN;
|
|
@@ -1105,7 +1111,7 @@ O.lb = function() {
|
|
|
1105
1111
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
1106
1112
|
n = null;
|
|
1107
1113
|
else {
|
|
1108
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
1114
|
+
this.ca.shift(), 0 <= n.interval && Mr(this, n, n.interval);
|
|
1109
1115
|
var r = new S(n.node, n.scope);
|
|
1110
1116
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1111
1117
|
}
|
|
@@ -1118,7 +1124,7 @@ O.lb = function() {
|
|
|
1118
1124
|
try {
|
|
1119
1125
|
var i = this.rb[r.type](e, n, r);
|
|
1120
1126
|
} catch (a) {
|
|
1121
|
-
if (a !==
|
|
1127
|
+
if (a !== Nr)
|
|
1122
1128
|
throw this.value !== a && (this.value = void 0), a;
|
|
1123
1129
|
} finally {
|
|
1124
1130
|
at = o;
|
|
@@ -1136,8 +1142,8 @@ O.Eb = function() {
|
|
|
1136
1142
|
;
|
|
1137
1143
|
return this.za;
|
|
1138
1144
|
};
|
|
1139
|
-
function
|
|
1140
|
-
e.g(t, "NaN", NaN, tt), e.g(t, "Infinity", 1 / 0, tt), e.g(t, "undefined", void 0, tt), e.g(t, "window", t, mn), e.g(t, "this", t, tt), e.g(t, "self", t), e.M = new
|
|
1145
|
+
function Go(e, t) {
|
|
1146
|
+
e.g(t, "NaN", NaN, tt), e.g(t, "Infinity", 1 / 0, tt), e.g(t, "undefined", void 0, tt), e.g(t, "window", t, mn), e.g(t, "this", t, tt), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), qo(e, t), Jo(e, t), t.xa = e.M, e.g(t, "constructor", e.v, k), Xo(e, t), Yo(e, t), Zo(e, t), Qo(e, t), ei(e, t), ti(e, t), ni(e, t), ri(e, t), oi(e, t);
|
|
1141
1147
|
var n = e.i(function() {
|
|
1142
1148
|
throw EvalError("Can't happen");
|
|
1143
1149
|
}, !1);
|
|
@@ -1163,7 +1169,7 @@ function _o(e, t) {
|
|
|
1163
1169
|
}, e.g(t, "clearInterval", e.i(n, !1), k), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
1164
1170
|
}
|
|
1165
1171
|
O.Wb = 0;
|
|
1166
|
-
function
|
|
1172
|
+
function qo(e, t) {
|
|
1167
1173
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1168
1174
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", a = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1169
1175
|
if (a) {
|
|
@@ -1184,7 +1190,7 @@ function zo(e, t) {
|
|
|
1184
1190
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, k), e.g(e.O, "prototype", e.Z, k), e.g(e.Z, "constructor", e.O, k), e.Z.Ta = function() {
|
|
1185
1191
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, te), e.Z.H = "Function", r = function(o, i) {
|
|
1186
1192
|
var a = e.o[e.o.length - 1];
|
|
1187
|
-
a.U = this, a.B = o, a.F = [], i != null && (i instanceof
|
|
1193
|
+
a.U = this, a.B = o, a.F = [], i != null && (i instanceof P ? a.F = Br(e, i) : w(e, e.j, "CreateListFromArrayLike called on non-object")), a.eb = !1;
|
|
1188
1194
|
}, z(e, e.O, "apply", r), r = function(o) {
|
|
1189
1195
|
var i = e.o[e.o.length - 1];
|
|
1190
1196
|
i.U = this, i.B = o, i.F = [];
|
|
@@ -1197,29 +1203,29 @@ function zo(e, t) {
|
|
|
1197
1203
|
return this.valueOf();
|
|
1198
1204
|
}, z(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), k);
|
|
1199
1205
|
}
|
|
1200
|
-
function
|
|
1206
|
+
function Jo(e, t) {
|
|
1201
1207
|
function n(o) {
|
|
1202
1208
|
o != null || w(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1203
1209
|
}
|
|
1204
1210
|
var r = function(o) {
|
|
1205
1211
|
if (o == null)
|
|
1206
1212
|
return we(e) ? this : e.s(e.M);
|
|
1207
|
-
if (!(o instanceof
|
|
1213
|
+
if (!(o instanceof P)) {
|
|
1208
1214
|
var i = e.s(Se(e, o));
|
|
1209
1215
|
return i.data = o, i;
|
|
1210
1216
|
}
|
|
1211
1217
|
return o;
|
|
1212
1218
|
};
|
|
1213
1219
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, k), e.g(e.M, "constructor", e.v, k), e.g(t, "Object", e.v, k), r = function(o) {
|
|
1214
|
-
return n(o), ve(e, Object.getOwnPropertyNames(o instanceof
|
|
1220
|
+
return n(o), ve(e, Object.getOwnPropertyNames(o instanceof P ? o.h : o));
|
|
1215
1221
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), k), r = function(o) {
|
|
1216
|
-
return n(o), o instanceof
|
|
1222
|
+
return n(o), o instanceof P && (o = o.h), ve(e, Object.keys(o));
|
|
1217
1223
|
}, e.g(e.v, "keys", e.i(r, !1), k), r = function(o) {
|
|
1218
|
-
return o === null ? e.s(null) : (o instanceof
|
|
1224
|
+
return o === null ? e.s(null) : (o instanceof P || w(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1219
1225
|
}, e.g(e.v, "create", e.i(r, !1), k), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, i, a) {
|
|
1220
|
-
return i = String(i), o instanceof
|
|
1226
|
+
return i = String(i), o instanceof P || w(e, e.j, "Object.defineProperty called on non-object: " + o), a instanceof P || w(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || w(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, ut, a.h), o;
|
|
1221
1227
|
}, e.g(e.v, "defineProperty", e.i(r, !1), k), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, i) {
|
|
1222
|
-
if (o instanceof
|
|
1228
|
+
if (o instanceof P || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
|
|
1223
1229
|
var a = Object.getOwnPropertyDescriptor(o.h, i), u = o.V[i];
|
|
1224
1230
|
return o = o.Y[i], i = e.s(e.M), u || o ? (e.g(i, "get", u), e.g(i, "set", o)) : (e.g(i, "value", a.value), e.g(i, "writable", a.writable)), e.g(i, "configurable", a.configurable), e.g(i, "enumerable", a.enumerable), i;
|
|
1225
1231
|
}
|
|
@@ -1228,11 +1234,11 @@ function Go(e, t) {
|
|
|
1228
1234
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), k), r = function(o) {
|
|
1229
1235
|
return !!o && !o.preventExtensions;
|
|
1230
1236
|
}, e.g(e.v, "isExtensible", e.i(r, !1), k), r = function(o) {
|
|
1231
|
-
return o instanceof
|
|
1232
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), k), z(e, e.v, "toString",
|
|
1233
|
-
return n(this), this instanceof
|
|
1237
|
+
return o instanceof P && (o.preventExtensions = !0), o;
|
|
1238
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), k), z(e, e.v, "toString", P.prototype.toString), z(e, e.v, "toLocaleString", P.prototype.toString), z(e, e.v, "valueOf", P.prototype.valueOf), r = function(o) {
|
|
1239
|
+
return n(this), this instanceof P ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1234
1240
|
}, z(e, e.v, "hasOwnProperty", r), r = function(o) {
|
|
1235
|
-
return n(this), this instanceof
|
|
1241
|
+
return n(this), this instanceof P ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1236
1242
|
}, z(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1237
1243
|
for (; ; ) {
|
|
1238
1244
|
if (o = Se(e, o), !o)
|
|
@@ -1242,7 +1248,7 @@ function Go(e, t) {
|
|
|
1242
1248
|
}
|
|
1243
1249
|
}, z(e, e.v, "isPrototypeOf", r);
|
|
1244
1250
|
}
|
|
1245
|
-
function
|
|
1251
|
+
function Xo(e, t) {
|
|
1246
1252
|
var n = function(r) {
|
|
1247
1253
|
var o = we(e) ? this : _e(e), i = arguments[0];
|
|
1248
1254
|
if (arguments.length === 1 && typeof i == "number")
|
|
@@ -1262,7 +1268,7 @@ function qo(e, t) {
|
|
|
1262
1268
|
writable: !0
|
|
1263
1269
|
}), 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(',');", "}", ");", "})();", "");
|
|
1264
1270
|
}
|
|
1265
|
-
function
|
|
1271
|
+
function Yo(e, t) {
|
|
1266
1272
|
var n = function(r) {
|
|
1267
1273
|
return r = arguments.length ? Re.String(r) : "", we(e) ? (this.data = r, this) : r;
|
|
1268
1274
|
};
|
|
@@ -1345,12 +1351,12 @@ function Jo(e, t) {
|
|
|
1345
1351
|
i(a.replace(r, o));
|
|
1346
1352
|
}, it(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1347
1353
|
}
|
|
1348
|
-
function
|
|
1354
|
+
function Zo(e, t) {
|
|
1349
1355
|
e.mb = e.i(function(n) {
|
|
1350
1356
|
return n = Re.Boolean(n), we(e) ? (this.data = n, this) : n;
|
|
1351
1357
|
}, !0), e.g(t, "Boolean", e.mb, k);
|
|
1352
1358
|
}
|
|
1353
|
-
function
|
|
1359
|
+
function Qo(e, t) {
|
|
1354
1360
|
var n = function(r) {
|
|
1355
1361
|
return r = arguments.length ? Re.Number(r) : 0, we(e) ? (this.data = r, this) : r;
|
|
1356
1362
|
};
|
|
@@ -1389,7 +1395,7 @@ function Yo(e, t) {
|
|
|
1389
1395
|
}
|
|
1390
1396
|
}, z(e, e.aa, "toLocaleString", n);
|
|
1391
1397
|
}
|
|
1392
|
-
function
|
|
1398
|
+
function ei(e, t) {
|
|
1393
1399
|
var n = function(o, i) {
|
|
1394
1400
|
if (!we(e))
|
|
1395
1401
|
return Re.Date();
|
|
@@ -1408,7 +1414,7 @@ function Zo(e, t) {
|
|
|
1408
1414
|
};
|
|
1409
1415
|
}(t[r]), z(e, e.$, t[r], n);
|
|
1410
1416
|
}
|
|
1411
|
-
function
|
|
1417
|
+
function ti(e, t) {
|
|
1412
1418
|
var n = function(r, o) {
|
|
1413
1419
|
if (we(e))
|
|
1414
1420
|
var i = this;
|
|
@@ -1450,7 +1456,7 @@ function Qo(e, t) {
|
|
|
1450
1456
|
r = a.exec(r), e.g(this, "lastIndex", a.lastIndex), o(i(r));
|
|
1451
1457
|
}, it(e, e.I, "exec", n);
|
|
1452
1458
|
}
|
|
1453
|
-
function
|
|
1459
|
+
function ni(e, t) {
|
|
1454
1460
|
function n(r) {
|
|
1455
1461
|
var o = e.i(function(i) {
|
|
1456
1462
|
var a = we(e) ? this : e.Aa(o);
|
|
@@ -1463,7 +1469,7 @@ function ei(e, t) {
|
|
|
1463
1469
|
return ln(e, o, r), o;
|
|
1464
1470
|
}, !0), e.g(t, "Error", e.D, k), e.g(e.D.h.prototype, "message", "", k), e.g(e.D.h.prototype, "name", "Error", k), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1465
1471
|
}
|
|
1466
|
-
function
|
|
1472
|
+
function ri(e, t) {
|
|
1467
1473
|
var n = e.s(e.M);
|
|
1468
1474
|
e.g(t, "Math", n, k);
|
|
1469
1475
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1472,7 +1478,7 @@ function ti(e, t) {
|
|
|
1472
1478
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1473
1479
|
e.g(n, r[t], e.i(Math[r[t]], !1), k);
|
|
1474
1480
|
}
|
|
1475
|
-
function
|
|
1481
|
+
function oi(e, t) {
|
|
1476
1482
|
var n = e.s(e.M);
|
|
1477
1483
|
e.g(t, "JSON", n, k), t = function(r) {
|
|
1478
1484
|
try {
|
|
@@ -1482,7 +1488,7 @@ function ni(e, t) {
|
|
|
1482
1488
|
}
|
|
1483
1489
|
return e.Ia(o);
|
|
1484
1490
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
|
|
1485
|
-
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o =
|
|
1491
|
+
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = Br(e, o), o = o.filter(function(u) {
|
|
1486
1492
|
return typeof u == "string" || typeof u == "number";
|
|
1487
1493
|
})) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
|
|
1488
1494
|
try {
|
|
@@ -1527,7 +1533,7 @@ function ln(e, t, n) {
|
|
|
1527
1533
|
}
|
|
1528
1534
|
O.ha = function() {
|
|
1529
1535
|
var e = this.ha.Mb;
|
|
1530
|
-
return e || (e = new Blob([
|
|
1536
|
+
return e || (e = new Blob([zo.join(`
|
|
1531
1537
|
`)], {
|
|
1532
1538
|
type: "application/javascript"
|
|
1533
1539
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1577,7 +1583,7 @@ O.Aa = function(e) {
|
|
|
1577
1583
|
O.s = function(e) {
|
|
1578
1584
|
if (typeof e != "object")
|
|
1579
1585
|
throw Error("Non object prototype");
|
|
1580
|
-
return e = new
|
|
1586
|
+
return e = new P(e), q(this, e, this.D) && (e.H = "Error"), e;
|
|
1581
1587
|
};
|
|
1582
1588
|
function _e(e) {
|
|
1583
1589
|
var t = e.s(e.La);
|
|
@@ -1603,7 +1609,7 @@ O.ub = function(e) {
|
|
|
1603
1609
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, te), t;
|
|
1604
1610
|
};
|
|
1605
1611
|
O.Ia = function(e) {
|
|
1606
|
-
if (e instanceof
|
|
1612
|
+
if (e instanceof P)
|
|
1607
1613
|
throw Error("Object is already pseudo");
|
|
1608
1614
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1609
1615
|
return e;
|
|
@@ -1636,7 +1642,7 @@ O.Ia = function(e) {
|
|
|
1636
1642
|
O.R = function(e, t) {
|
|
1637
1643
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1638
1644
|
return e;
|
|
1639
|
-
if (!(e instanceof
|
|
1645
|
+
if (!(e instanceof P))
|
|
1640
1646
|
throw Error("Object is not pseudo");
|
|
1641
1647
|
if (q(this, e, this.I))
|
|
1642
1648
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
@@ -1668,7 +1674,7 @@ function ve(e, t) {
|
|
|
1668
1674
|
e.g(n, r[o], t[r[o]]);
|
|
1669
1675
|
return n;
|
|
1670
1676
|
}
|
|
1671
|
-
function
|
|
1677
|
+
function Br(e, t) {
|
|
1672
1678
|
var n = [], r;
|
|
1673
1679
|
for (r in t.h)
|
|
1674
1680
|
n[r] = e.G(t, r);
|
|
@@ -1688,7 +1694,7 @@ function Se(e, t) {
|
|
|
1688
1694
|
O.G = function(e, t) {
|
|
1689
1695
|
if (this.P)
|
|
1690
1696
|
throw Error("Getter not supported in that context");
|
|
1691
|
-
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof
|
|
1697
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
|
|
1692
1698
|
throw TypeError("Expecting native value or pseudo object");
|
|
1693
1699
|
if (t === "length") {
|
|
1694
1700
|
if (q(this, e, this.J))
|
|
@@ -1704,7 +1710,7 @@ O.G = function(e, t) {
|
|
|
1704
1710
|
while (e = Se(this, e));
|
|
1705
1711
|
};
|
|
1706
1712
|
function $t(e, t, n) {
|
|
1707
|
-
if (!(t instanceof
|
|
1713
|
+
if (!(t instanceof P))
|
|
1708
1714
|
throw TypeError("Primitive data type has no properties");
|
|
1709
1715
|
if (n = String(n), n === "length" && q(e, t, e.J))
|
|
1710
1716
|
return !0;
|
|
@@ -1722,11 +1728,11 @@ function $t(e, t, n) {
|
|
|
1722
1728
|
O.g = function(e, t, n, r) {
|
|
1723
1729
|
if (this.Ka)
|
|
1724
1730
|
throw Error("Setter not supported in that context");
|
|
1725
|
-
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof
|
|
1731
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
|
|
1726
1732
|
throw TypeError("Expecting native value or pseudo object");
|
|
1727
1733
|
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && w(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1728
1734
|
var o = !this.o || kn(this).S;
|
|
1729
|
-
if (e instanceof
|
|
1735
|
+
if (e instanceof P) {
|
|
1730
1736
|
if (q(this, e, this.J)) {
|
|
1731
1737
|
var i = lt(t);
|
|
1732
1738
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
@@ -1806,12 +1812,12 @@ function un(e, t, n) {
|
|
|
1806
1812
|
var o = t.body && t.body[0];
|
|
1807
1813
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1808
1814
|
}
|
|
1809
|
-
return o = e.s(null), r = new
|
|
1815
|
+
return o = e.s(null), r = new Vr(n, r, o), n || Go(e, r.object), ct(e, t, r), r;
|
|
1810
1816
|
}
|
|
1811
1817
|
function Sn(e, t, n) {
|
|
1812
1818
|
if (!t)
|
|
1813
1819
|
throw Error("parentScope required");
|
|
1814
|
-
return e = n || e.s(null), new
|
|
1820
|
+
return e = n || e.s(null), new Vr(t, t.S, e);
|
|
1815
1821
|
}
|
|
1816
1822
|
function Cn(e, t) {
|
|
1817
1823
|
for (var n = kn(e); n && n !== e.N; ) {
|
|
@@ -1823,7 +1829,7 @@ function Cn(e, t) {
|
|
|
1823
1829
|
return e.G(n.object, t);
|
|
1824
1830
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1825
1831
|
}
|
|
1826
|
-
function
|
|
1832
|
+
function Ur(e, t, n) {
|
|
1827
1833
|
for (var r = kn(e), o = r.S; r && r !== e.N; ) {
|
|
1828
1834
|
if (t in r.object.h) {
|
|
1829
1835
|
try {
|
|
@@ -1895,10 +1901,10 @@ function wn(e, t) {
|
|
|
1895
1901
|
return t[0] === ze ? Cn(e, t[1]) : e.G(t[0], t[1]);
|
|
1896
1902
|
}
|
|
1897
1903
|
function En(e, t, n) {
|
|
1898
|
-
return t[0] === ze ?
|
|
1904
|
+
return t[0] === ze ? Ur(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1899
1905
|
}
|
|
1900
1906
|
function w(e, t, n) {
|
|
1901
|
-
throw e.N ? (n !== void 0 && t instanceof
|
|
1907
|
+
throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t), ln(e, t, n)), dt(e, 4, t), Nr) : n === void 0 ? t : n;
|
|
1902
1908
|
}
|
|
1903
1909
|
function dt(e, t, n, r) {
|
|
1904
1910
|
if (t === 0)
|
|
@@ -1980,7 +1986,7 @@ function fr(e, t, n) {
|
|
|
1980
1986
|
var r = e.o[e.o.length - 1], o = Array.from(n), i = o.shift();
|
|
1981
1987
|
n = Math.max(Number(o.shift() || 0), 0);
|
|
1982
1988
|
var a = e.ya();
|
|
1983
|
-
if (i instanceof
|
|
1989
|
+
if (i instanceof P && i.H === "Function") {
|
|
1984
1990
|
var u = i;
|
|
1985
1991
|
a.type = "CallExpression", r = r.scope;
|
|
1986
1992
|
} else {
|
|
@@ -1991,9 +1997,9 @@ function fr(e, t, n) {
|
|
|
1991
1997
|
}
|
|
1992
1998
|
a.type = "EvalProgram_", a.body = d.body, r = r.node.arguments[0], At(a, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1993
1999
|
}
|
|
1994
|
-
return t = new
|
|
2000
|
+
return t = new ii(u, o, r, a, t ? n : -1), Mr(e, t, n), t.Db;
|
|
1995
2001
|
}
|
|
1996
|
-
function
|
|
2002
|
+
function Mr(e, t, n) {
|
|
1997
2003
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
1998
2004
|
return r.time - o.time;
|
|
1999
2005
|
});
|
|
@@ -2020,7 +2026,7 @@ function In(e, t, n, r) {
|
|
|
2020
2026
|
return o.type = "CallExpression", e = new S(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
2021
2027
|
}
|
|
2022
2028
|
function tn(e, t) {
|
|
2023
|
-
return t == null ? e.Na : t instanceof
|
|
2029
|
+
return t == null ? e.Na : t instanceof P ? t : (e = e.s(Se(e, t)), e.data = t, e);
|
|
2024
2030
|
}
|
|
2025
2031
|
O.Xb = function() {
|
|
2026
2032
|
return this.N;
|
|
@@ -2034,20 +2040,20 @@ O.ec = function(e) {
|
|
|
2034
2040
|
function S(e, t) {
|
|
2035
2041
|
this.node = e, this.scope = t;
|
|
2036
2042
|
}
|
|
2037
|
-
function
|
|
2043
|
+
function Vr(e, t, n) {
|
|
2038
2044
|
this.Va = e, this.S = t, this.object = n;
|
|
2039
2045
|
}
|
|
2040
|
-
function
|
|
2046
|
+
function P(e) {
|
|
2041
2047
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
2042
2048
|
}
|
|
2043
|
-
O =
|
|
2049
|
+
O = P.prototype;
|
|
2044
2050
|
O.xa = null;
|
|
2045
2051
|
O.H = "Object";
|
|
2046
2052
|
O.data = null;
|
|
2047
2053
|
O.toString = function() {
|
|
2048
2054
|
if (!at)
|
|
2049
2055
|
return "[object Interpreter.Object]";
|
|
2050
|
-
if (!(this instanceof
|
|
2056
|
+
if (!(this instanceof P))
|
|
2051
2057
|
return String(this);
|
|
2052
2058
|
if (this.H === "Array") {
|
|
2053
2059
|
var e = hr;
|
|
@@ -2057,7 +2063,7 @@ O.toString = function() {
|
|
|
2057
2063
|
1024 < n && (n = 1e3, r = !0);
|
|
2058
2064
|
for (var o = 0; o < n; o++) {
|
|
2059
2065
|
var i = this.h[o];
|
|
2060
|
-
t[o] = i instanceof
|
|
2066
|
+
t[o] = i instanceof P && e.indexOf(i) !== -1 ? "..." : i;
|
|
2061
2067
|
}
|
|
2062
2068
|
r && t.push("...");
|
|
2063
2069
|
} finally {
|
|
@@ -2095,10 +2101,10 @@ O.toString = function() {
|
|
|
2095
2101
|
O.valueOf = function() {
|
|
2096
2102
|
return !at || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2097
2103
|
};
|
|
2098
|
-
function
|
|
2099
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++
|
|
2104
|
+
function ii(e, t, n, r, o) {
|
|
2105
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++si, this.time = 0;
|
|
2100
2106
|
}
|
|
2101
|
-
var
|
|
2107
|
+
var si = 0;
|
|
2102
2108
|
g.prototype.stepArrayExpression = function(e, t, n) {
|
|
2103
2109
|
n = n.elements;
|
|
2104
2110
|
var r = t.A || 0;
|
|
@@ -2229,10 +2235,10 @@ g.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2229
2235
|
n = r >>> t;
|
|
2230
2236
|
break;
|
|
2231
2237
|
case "in":
|
|
2232
|
-
t instanceof
|
|
2238
|
+
t instanceof P || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = $t(this, t, r);
|
|
2233
2239
|
break;
|
|
2234
2240
|
case "instanceof":
|
|
2235
|
-
q(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof
|
|
2241
|
+
q(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof P ? q(this, r, t) : !1;
|
|
2236
2242
|
break;
|
|
2237
2243
|
default:
|
|
2238
2244
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2269,7 +2275,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2269
2275
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2270
2276
|
return new S(n.arguments[t.A++], t.scope);
|
|
2271
2277
|
if (n.type === "NewExpression") {
|
|
2272
|
-
if (o instanceof
|
|
2278
|
+
if (o instanceof P && !o.Ab || w(this, this.j, ee(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2273
2279
|
t.B = _e(this);
|
|
2274
2280
|
else {
|
|
2275
2281
|
var i = o.h.prototype;
|
|
@@ -2282,7 +2288,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2282
2288
|
if (t.eb)
|
|
2283
2289
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2284
2290
|
else {
|
|
2285
|
-
if (t.eb = !0, o instanceof
|
|
2291
|
+
if (t.eb = !0, o instanceof P || w(this, this.j, ee(this, n.callee) + " is not a function"), e = o.node) {
|
|
2286
2292
|
for (n = un(this, e.body, o.Va), r = _e(this), o = 0; o < t.F.length; o++)
|
|
2287
2293
|
this.g(r, o, t.F[o]);
|
|
2288
2294
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
@@ -2360,7 +2366,7 @@ g.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2360
2366
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2361
2367
|
e:
|
|
2362
2368
|
for (; ; ) {
|
|
2363
|
-
if (t.u instanceof
|
|
2369
|
+
if (t.u instanceof P)
|
|
2364
2370
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2365
2371
|
var r = t.wa.shift();
|
|
2366
2372
|
if (r === void 0)
|
|
@@ -2619,7 +2625,7 @@ g.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2619
2625
|
g.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2620
2626
|
n = n.fa;
|
|
2621
2627
|
var r = t.A || 0, o = n[r];
|
|
2622
|
-
for (t.Bb && o && (
|
|
2628
|
+
for (t.Bb && o && (Ur(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2623
2629
|
if (o.ua)
|
|
2624
2630
|
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new S(o.ua, t.scope);
|
|
2625
2631
|
o = n[++r];
|
|
@@ -2646,7 +2652,7 @@ g.prototype.getGlobalScope = g.prototype.Xb;
|
|
|
2646
2652
|
g.prototype.getStateStack = g.prototype.Yb;
|
|
2647
2653
|
g.prototype.setStateStack = g.prototype.ec;
|
|
2648
2654
|
g.VALUE_IN_DESCRIPTOR = ut;
|
|
2649
|
-
const
|
|
2655
|
+
const ai = (e) => e.split(`
|
|
2650
2656
|
`).map((t) => {
|
|
2651
2657
|
const n = t.trim();
|
|
2652
2658
|
if (t.includes("__awaiter"))
|
|
@@ -2659,7 +2665,7 @@ const ii = (e) => e.split(`
|
|
|
2659
2665
|
${u}
|
|
2660
2666
|
`;
|
|
2661
2667
|
}).filter(Boolean).join(`
|
|
2662
|
-
`), gr = (e) => e + "JSON",
|
|
2668
|
+
`), gr = (e) => e + "JSON", li = ({
|
|
2663
2669
|
builder: e,
|
|
2664
2670
|
context: t,
|
|
2665
2671
|
event: n,
|
|
@@ -2671,7 +2677,7 @@ const ii = (e) => e.split(`
|
|
|
2671
2677
|
const u = {
|
|
2672
2678
|
...r,
|
|
2673
2679
|
...o
|
|
2674
|
-
}, d =
|
|
2680
|
+
}, d = jr({
|
|
2675
2681
|
builder: e,
|
|
2676
2682
|
context: t,
|
|
2677
2683
|
event: n,
|
|
@@ -2680,7 +2686,7 @@ const ii = (e) => e.split(`
|
|
|
2680
2686
|
const F = gr(E);
|
|
2681
2687
|
return `var ${E} = ${F} === undefined ? undefined : JSON.parse(${F});`;
|
|
2682
2688
|
}).join(`
|
|
2683
|
-
`), v =
|
|
2689
|
+
`), v = ai(a);
|
|
2684
2690
|
if (v === "") {
|
|
2685
2691
|
Z.warn("Skipping evaluation of empty code block.");
|
|
2686
2692
|
return;
|
|
@@ -2695,14 +2701,14 @@ theFunction();
|
|
|
2695
2701
|
`, C = (E, F) => {
|
|
2696
2702
|
const se = fn(u, E, F);
|
|
2697
2703
|
i == null || i(se);
|
|
2698
|
-
},
|
|
2704
|
+
}, j = function(E, F) {
|
|
2699
2705
|
d.forEach(([se, W]) => {
|
|
2700
2706
|
const A = JSON.stringify(W);
|
|
2701
2707
|
E.setProperty(F, gr(se), A);
|
|
2702
2708
|
}), E.setProperty(F, "setRootState", E.createNativeFunction(C));
|
|
2703
2709
|
};
|
|
2704
2710
|
try {
|
|
2705
|
-
const E = new g(f,
|
|
2711
|
+
const E = new g(f, j);
|
|
2706
2712
|
return E.run(), E.pseudoToNative(E.value);
|
|
2707
2713
|
} catch (E) {
|
|
2708
2714
|
Z.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
@@ -2711,17 +2717,17 @@ theFunction();
|
|
|
2711
2717
|
return;
|
|
2712
2718
|
}
|
|
2713
2719
|
}, Ae = (e) => e != null;
|
|
2714
|
-
function
|
|
2720
|
+
function ui() {
|
|
2715
2721
|
var e;
|
|
2716
2722
|
return typeof process < "u" && Ae((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2717
2723
|
}
|
|
2718
|
-
const
|
|
2724
|
+
const ci = () => {
|
|
2719
2725
|
var r;
|
|
2720
|
-
if (!
|
|
2726
|
+
if (!ui())
|
|
2721
2727
|
return !1;
|
|
2722
2728
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2723
2729
|
return e && t && !n ? (Z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2724
|
-
},
|
|
2730
|
+
}, pi = (e) => X() || ci() ? Ko(e) : li(e);
|
|
2725
2731
|
function xt({
|
|
2726
2732
|
code: e,
|
|
2727
2733
|
context: t,
|
|
@@ -2736,10 +2742,10 @@ function xt({
|
|
|
2736
2742
|
return;
|
|
2737
2743
|
}
|
|
2738
2744
|
const u = {
|
|
2739
|
-
code:
|
|
2745
|
+
code: Ho(e, {
|
|
2740
2746
|
isExpression: a
|
|
2741
2747
|
}),
|
|
2742
|
-
builder:
|
|
2748
|
+
builder: Lo(),
|
|
2743
2749
|
context: t,
|
|
2744
2750
|
event: i,
|
|
2745
2751
|
rootSetState: o,
|
|
@@ -2747,7 +2753,7 @@ function xt({
|
|
|
2747
2753
|
localState: n
|
|
2748
2754
|
};
|
|
2749
2755
|
try {
|
|
2750
|
-
return
|
|
2756
|
+
return pi(u);
|
|
2751
2757
|
} catch (d) {
|
|
2752
2758
|
Z.error("Failed code evaluation: " + d.message, {
|
|
2753
2759
|
code: e
|
|
@@ -2756,7 +2762,7 @@ function xt({
|
|
|
2756
2762
|
}
|
|
2757
2763
|
}
|
|
2758
2764
|
const ft = (e) => JSON.parse(JSON.stringify(e));
|
|
2759
|
-
const
|
|
2765
|
+
const di = ({
|
|
2760
2766
|
block: e,
|
|
2761
2767
|
context: t,
|
|
2762
2768
|
localState: n,
|
|
@@ -2786,7 +2792,7 @@ const ci = ({
|
|
|
2786
2792
|
}
|
|
2787
2793
|
return a;
|
|
2788
2794
|
};
|
|
2789
|
-
function
|
|
2795
|
+
function Fr({
|
|
2790
2796
|
block: e,
|
|
2791
2797
|
context: t,
|
|
2792
2798
|
shouldEvaluateBindings: n,
|
|
@@ -2795,7 +2801,7 @@ function Mr({
|
|
|
2795
2801
|
rootSetState: i
|
|
2796
2802
|
}) {
|
|
2797
2803
|
const a = e;
|
|
2798
|
-
return n ?
|
|
2804
|
+
return n ? di({
|
|
2799
2805
|
block: a,
|
|
2800
2806
|
localState: r,
|
|
2801
2807
|
rootState: o,
|
|
@@ -2803,41 +2809,41 @@ function Mr({
|
|
|
2803
2809
|
context: t
|
|
2804
2810
|
}) : a;
|
|
2805
2811
|
}
|
|
2806
|
-
const
|
|
2812
|
+
const hi = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Wr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2807
2813
|
if (typeof r == "string")
|
|
2808
|
-
return `${
|
|
2809
|
-
}).filter(Ae),
|
|
2810
|
-
`),
|
|
2814
|
+
return `${hi(n)}: ${r};`;
|
|
2815
|
+
}).filter(Ae), fi = (e) => Wr(e).join(`
|
|
2816
|
+
`), Al = ({
|
|
2811
2817
|
mediaQuery: e,
|
|
2812
2818
|
className: t,
|
|
2813
2819
|
styles: n
|
|
2814
2820
|
}) => {
|
|
2815
2821
|
const r = `.${t} {
|
|
2816
|
-
${
|
|
2822
|
+
${fi(n)}
|
|
2817
2823
|
}`;
|
|
2818
2824
|
return e ? `${e} {
|
|
2819
2825
|
${r}
|
|
2820
2826
|
}` : r;
|
|
2821
2827
|
};
|
|
2822
|
-
function
|
|
2828
|
+
function mi({
|
|
2823
2829
|
style: e
|
|
2824
2830
|
}) {
|
|
2825
2831
|
return e;
|
|
2826
2832
|
}
|
|
2827
|
-
const
|
|
2833
|
+
const $l = ({
|
|
2828
2834
|
block: e,
|
|
2829
2835
|
context: t
|
|
2830
|
-
}) =>
|
|
2836
|
+
}) => Dr(mi({
|
|
2831
2837
|
style: e.style || {},
|
|
2832
2838
|
context: t,
|
|
2833
2839
|
block: e
|
|
2834
2840
|
}));
|
|
2835
|
-
function
|
|
2841
|
+
function Dr(e) {
|
|
2836
2842
|
switch (de) {
|
|
2837
2843
|
case "svelte":
|
|
2838
2844
|
case "vue":
|
|
2839
2845
|
case "solid":
|
|
2840
|
-
return
|
|
2846
|
+
return Wr(e).join(" ");
|
|
2841
2847
|
case "qwik":
|
|
2842
2848
|
case "reactNative":
|
|
2843
2849
|
case "react":
|
|
@@ -2845,7 +2851,7 @@ function Fr(e) {
|
|
|
2845
2851
|
return e;
|
|
2846
2852
|
}
|
|
2847
2853
|
}
|
|
2848
|
-
function
|
|
2854
|
+
function gi(e, t, n = {}) {
|
|
2849
2855
|
let r, o, i, a = null, u = 0;
|
|
2850
2856
|
const d = function() {
|
|
2851
2857
|
u = n.leading === !1 ? 0 : Date.now(), a = null, i = e.apply(r, o), a || (r = o = null);
|
|
@@ -2868,17 +2874,17 @@ function Ne(e, ...t) {
|
|
|
2868
2874
|
return n;
|
|
2869
2875
|
}
|
|
2870
2876
|
const Tn = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
2871
|
-
function
|
|
2877
|
+
function yi(e) {
|
|
2872
2878
|
for (const t of e)
|
|
2873
2879
|
switch (t.trigger) {
|
|
2874
2880
|
case "pageLoad":
|
|
2875
|
-
|
|
2881
|
+
Lr(t);
|
|
2876
2882
|
break;
|
|
2877
2883
|
case "hover":
|
|
2878
|
-
|
|
2884
|
+
bi(t);
|
|
2879
2885
|
break;
|
|
2880
2886
|
case "scrollInView":
|
|
2881
|
-
|
|
2887
|
+
ki(t);
|
|
2882
2888
|
break;
|
|
2883
2889
|
}
|
|
2884
2890
|
}
|
|
@@ -2886,19 +2892,19 @@ function xn(e) {
|
|
|
2886
2892
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2887
2893
|
}
|
|
2888
2894
|
function Rn(e, t) {
|
|
2889
|
-
const n =
|
|
2895
|
+
const n = vi(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, a = [o, i];
|
|
2890
2896
|
for (const u of a)
|
|
2891
2897
|
for (const d of n)
|
|
2892
2898
|
d in u || (u[d] = r[d]);
|
|
2893
2899
|
}
|
|
2894
|
-
function
|
|
2900
|
+
function vi(e) {
|
|
2895
2901
|
const t = [];
|
|
2896
2902
|
for (const n of e.steps)
|
|
2897
2903
|
for (const r in n.styles)
|
|
2898
2904
|
t.indexOf(r) === -1 && t.push(r);
|
|
2899
2905
|
return t;
|
|
2900
2906
|
}
|
|
2901
|
-
function
|
|
2907
|
+
function Lr(e) {
|
|
2902
2908
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2903
2909
|
if (!t.length) {
|
|
2904
2910
|
xn(e.elementId || e.id || "");
|
|
@@ -2912,7 +2918,7 @@ function Wr(e) {
|
|
|
2912
2918
|
});
|
|
2913
2919
|
});
|
|
2914
2920
|
}
|
|
2915
|
-
function
|
|
2921
|
+
function bi(e) {
|
|
2916
2922
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2917
2923
|
if (!t.length) {
|
|
2918
2924
|
xn(e.elementId || e.id || "");
|
|
@@ -2932,7 +2938,7 @@ function yi(e) {
|
|
|
2932
2938
|
});
|
|
2933
2939
|
});
|
|
2934
2940
|
}
|
|
2935
|
-
function
|
|
2941
|
+
function ki(e) {
|
|
2936
2942
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2937
2943
|
if (!t.length) {
|
|
2938
2944
|
xn(e.elementId || e.id || "");
|
|
@@ -2948,7 +2954,7 @@ function vi(e) {
|
|
|
2948
2954
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
2949
2955
|
})) : e.repeat && r && !o && !u(n) && (r = !1, Ne(n.style, e.steps[0].styles));
|
|
2950
2956
|
}
|
|
2951
|
-
const a =
|
|
2957
|
+
const a = gi(i, 200, {
|
|
2952
2958
|
leading: !1
|
|
2953
2959
|
});
|
|
2954
2960
|
function u(v) {
|
|
@@ -2967,13 +2973,13 @@ function vi(e) {
|
|
|
2967
2973
|
}), i();
|
|
2968
2974
|
});
|
|
2969
2975
|
}
|
|
2970
|
-
const
|
|
2976
|
+
const Si = ({
|
|
2971
2977
|
block: e,
|
|
2972
2978
|
context: t,
|
|
2973
2979
|
registeredComponents: n
|
|
2974
2980
|
}) => {
|
|
2975
2981
|
var i;
|
|
2976
|
-
const r = (i =
|
|
2982
|
+
const r = (i = Fr({
|
|
2977
2983
|
block: e,
|
|
2978
2984
|
localState: t.localState,
|
|
2979
2985
|
rootState: t.rootState,
|
|
@@ -2989,7 +2995,7 @@ const bi = ({
|
|
|
2989
2995
|
console.warn(`
|
|
2990
2996
|
Could not find a registered component named "${r}".
|
|
2991
2997
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2992
|
-
},
|
|
2998
|
+
}, Ci = ({
|
|
2993
2999
|
block: e,
|
|
2994
3000
|
context: t
|
|
2995
3001
|
}) => {
|
|
@@ -3022,33 +3028,33 @@ const bi = ({
|
|
|
3022
3028
|
},
|
|
3023
3029
|
block: r
|
|
3024
3030
|
}));
|
|
3025
|
-
},
|
|
3031
|
+
}, wi = () => import("./block-styles-t6BdrZRo.js").then((e) => e.default).catch((e) => {
|
|
3026
3032
|
throw console.error(
|
|
3027
3033
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
3028
3034
|
e
|
|
3029
3035
|
), e;
|
|
3030
|
-
}),
|
|
3036
|
+
}), Ei = () => import("./block-wrapper--RDdE8Xa.js").then((e) => e.default).catch((e) => {
|
|
3031
3037
|
throw console.error(
|
|
3032
3038
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3033
3039
|
e
|
|
3034
3040
|
), e;
|
|
3035
|
-
}),
|
|
3041
|
+
}), Ii = () => import("./component-ref-TDfuL1PH.js").then((e) => e.default).catch((e) => {
|
|
3036
3042
|
throw console.error(
|
|
3037
3043
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3038
3044
|
e
|
|
3039
3045
|
), e;
|
|
3040
|
-
}),
|
|
3046
|
+
}), Ti = () => import("./repeated-block-QlWFWzl3.js").then((e) => e.default).catch((e) => {
|
|
3041
3047
|
throw console.error(
|
|
3042
3048
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3043
3049
|
e
|
|
3044
3050
|
), e;
|
|
3045
|
-
}),
|
|
3051
|
+
}), xi = N({
|
|
3046
3052
|
name: "block",
|
|
3047
3053
|
components: {
|
|
3048
|
-
BlockStyles: wt(
|
|
3049
|
-
ComponentRef: wt(
|
|
3050
|
-
RepeatedBlock: wt(
|
|
3051
|
-
BlockWrapper: wt(
|
|
3054
|
+
BlockStyles: wt(wi),
|
|
3055
|
+
ComponentRef: wt(Ii),
|
|
3056
|
+
RepeatedBlock: wt(Ti),
|
|
3057
|
+
BlockWrapper: wt(Ei)
|
|
3052
3058
|
},
|
|
3053
3059
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
3054
3060
|
data() {
|
|
@@ -3056,7 +3062,7 @@ const bi = ({
|
|
|
3056
3062
|
},
|
|
3057
3063
|
mounted() {
|
|
3058
3064
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
3059
|
-
t && e &&
|
|
3065
|
+
t && e && yi(
|
|
3060
3066
|
t.filter((n) => n.trigger !== "hover").map((n) => ({
|
|
3061
3067
|
...n,
|
|
3062
3068
|
elementId: e
|
|
@@ -3065,21 +3071,21 @@ const bi = ({
|
|
|
3065
3071
|
},
|
|
3066
3072
|
computed: {
|
|
3067
3073
|
blockComponent() {
|
|
3068
|
-
return
|
|
3074
|
+
return Si({
|
|
3069
3075
|
block: this.block,
|
|
3070
3076
|
context: this.context,
|
|
3071
3077
|
registeredComponents: this.registeredComponents
|
|
3072
3078
|
});
|
|
3073
3079
|
},
|
|
3074
3080
|
repeatItem() {
|
|
3075
|
-
return
|
|
3081
|
+
return Ci({
|
|
3076
3082
|
block: this.block,
|
|
3077
3083
|
context: this.context
|
|
3078
3084
|
});
|
|
3079
3085
|
},
|
|
3080
3086
|
processedBlock() {
|
|
3081
3087
|
var e;
|
|
3082
|
-
return (e = this.block.repeat) != null && e.collection ? this.block :
|
|
3088
|
+
return (e = this.block.repeat) != null && e.collection ? this.block : Fr({
|
|
3083
3089
|
block: this.block,
|
|
3084
3090
|
localState: this.context.localState,
|
|
3085
3091
|
rootState: this.context.rootState,
|
|
@@ -3109,7 +3115,7 @@ const bi = ({
|
|
|
3109
3115
|
blockChildren: this.processedBlock.children ?? [],
|
|
3110
3116
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
3111
3117
|
componentOptions: {
|
|
3112
|
-
...
|
|
3118
|
+
...Mo(this.processedBlock),
|
|
3113
3119
|
builderContext: this.context,
|
|
3114
3120
|
...((t = this.blockComponent) == null ? void 0 : t.name) === "Core:Button" || ((n = this.blockComponent) == null ? void 0 : n.name) === "Symbol" || ((r = this.blockComponent) == null ? void 0 : r.name) === "Columns" || ((o = this.blockComponent) == null ? void 0 : o.name) === "Form:Form" ? {
|
|
3115
3121
|
builderLinkComponent: this.linkComponent
|
|
@@ -3128,7 +3134,7 @@ const bi = ({
|
|
|
3128
3134
|
}
|
|
3129
3135
|
}
|
|
3130
3136
|
});
|
|
3131
|
-
function
|
|
3137
|
+
function Ri(e, t, n, r, o, i) {
|
|
3132
3138
|
var f;
|
|
3133
3139
|
const a = V("block-styles"), u = V("component-ref"), d = V("block", !0), m = V("block-wrapper"), v = V("repeated-block");
|
|
3134
3140
|
return e.canShowBlock ? (y(), $(re, { key: 0 }, [
|
|
@@ -3148,8 +3154,8 @@ function Ti(e, t, n, r, o, i) {
|
|
|
3148
3154
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
3149
3155
|
isInteractive: e.componentRefProps.isInteractive
|
|
3150
3156
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (y(), $(re, { key: 0 }, [
|
|
3151
|
-
e.repeatItem ? (y(!0), $(re, { key: 1 }, Be(e.repeatItem, (C,
|
|
3152
|
-
key:
|
|
3157
|
+
e.repeatItem ? (y(!0), $(re, { key: 1 }, Be(e.repeatItem, (C, j) => (y(), B(v, {
|
|
3158
|
+
key: j,
|
|
3153
3159
|
repeatContext: C.context,
|
|
3154
3160
|
block: C.block,
|
|
3155
3161
|
registeredComponents: e.registeredComponents,
|
|
@@ -3173,7 +3179,7 @@ function Ti(e, t, n, r, o, i) {
|
|
|
3173
3179
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
3174
3180
|
isInteractive: e.componentRefProps.isInteractive
|
|
3175
3181
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
3176
|
-
(y(!0), $(re, null, Be(e.childrenWithoutParentComponent, (C,
|
|
3182
|
+
(y(!0), $(re, null, Be(e.childrenWithoutParentComponent, (C, j) => (y(), B(d, {
|
|
3177
3183
|
key: C.id,
|
|
3178
3184
|
block: C,
|
|
3179
3185
|
context: e.childrenContext,
|
|
@@ -3186,10 +3192,10 @@ function Ti(e, t, n, r, o, i) {
|
|
|
3186
3192
|
], 64))
|
|
3187
3193
|
], 64)) : D("", !0);
|
|
3188
3194
|
}
|
|
3189
|
-
const An = /* @__PURE__ */ U(
|
|
3195
|
+
const An = /* @__PURE__ */ U(xi, [["render", Ri]]), Pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3190
3196
|
__proto__: null,
|
|
3191
3197
|
default: An
|
|
3192
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3198
|
+
}, Symbol.toStringTag, { value: "Module" })), Ai = N({
|
|
3193
3199
|
name: "builder-blocks-wrapper",
|
|
3194
3200
|
props: [
|
|
3195
3201
|
"BlocksWrapper",
|
|
@@ -3234,7 +3240,7 @@ const An = /* @__PURE__ */ U(Ii, [["render", Ti]]), $l = /* @__PURE__ */ Object.
|
|
|
3234
3240
|
}
|
|
3235
3241
|
}
|
|
3236
3242
|
});
|
|
3237
|
-
function
|
|
3243
|
+
function $i(e, t, n, r, o, i) {
|
|
3238
3244
|
return y(), B(st(e.BlocksWrapper), J({
|
|
3239
3245
|
class: e.className + " component-1o2kztlxdt6",
|
|
3240
3246
|
"builder-path": e.path,
|
|
@@ -3250,9 +3256,9 @@ function Ri(e, t, n, r, o, i) {
|
|
|
3250
3256
|
_: 3
|
|
3251
3257
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
3252
3258
|
}
|
|
3253
|
-
const
|
|
3259
|
+
const Pi = /* @__PURE__ */ U(Ai, [["render", $i], ["__scopeId", "data-v-6fabd81c"]]), ji = N({
|
|
3254
3260
|
name: "builder-blocks",
|
|
3255
|
-
components: { BlocksWrapper:
|
|
3261
|
+
components: { BlocksWrapper: Pi, Block: An },
|
|
3256
3262
|
props: [
|
|
3257
3263
|
"blocks",
|
|
3258
3264
|
"parent",
|
|
@@ -3267,7 +3273,7 @@ const Ai = /* @__PURE__ */ U(xi, [["render", Ri], ["__scopeId", "data-v-6fabd81c
|
|
|
3267
3273
|
componentsContext: Rr.key
|
|
3268
3274
|
}
|
|
3269
3275
|
});
|
|
3270
|
-
function
|
|
3276
|
+
function Oi(e, t, n, r, o, i) {
|
|
3271
3277
|
var d, m;
|
|
3272
3278
|
const a = V("block"), u = V("blocks-wrapper");
|
|
3273
3279
|
return y(), B(u, {
|
|
@@ -3275,8 +3281,8 @@ function ji(e, t, n, r, o, i) {
|
|
|
3275
3281
|
parent: e.parent,
|
|
3276
3282
|
path: e.path,
|
|
3277
3283
|
styleProp: e.styleProp,
|
|
3278
|
-
BlocksWrapper: (d = e.context) == null ? void 0 : d.BlocksWrapper,
|
|
3279
|
-
BlocksWrapperProps: (m = e.context) == null ? void 0 : m.BlocksWrapperProps
|
|
3284
|
+
BlocksWrapper: ((d = e.context) == null ? void 0 : d.BlocksWrapper) || e.builderContext.BlocksWrapper,
|
|
3285
|
+
BlocksWrapperProps: ((m = e.context) == null ? void 0 : m.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
|
|
3280
3286
|
}, {
|
|
3281
3287
|
default: Ce(() => [
|
|
3282
3288
|
e.blocks ? (y(!0), $(re, { key: 0 }, Be(e.blocks, (v, f) => (y(), B(a, {
|
|
@@ -3290,13 +3296,13 @@ function ji(e, t, n, r, o, i) {
|
|
|
3290
3296
|
_: 1
|
|
3291
3297
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
3292
3298
|
}
|
|
3293
|
-
const
|
|
3299
|
+
const Pt = /* @__PURE__ */ U(ji, [["render", Oi]]), $n = N({
|
|
3294
3300
|
render() {
|
|
3295
3301
|
return Tr("style", { id: this.id, innerHTML: this.styles });
|
|
3296
3302
|
},
|
|
3297
3303
|
name: "inlined-styles",
|
|
3298
3304
|
props: ["styles", "id"]
|
|
3299
|
-
}),
|
|
3305
|
+
}), Hr = {
|
|
3300
3306
|
small: {
|
|
3301
3307
|
min: 320,
|
|
3302
3308
|
default: 321,
|
|
@@ -3312,11 +3318,11 @@ const jt = /* @__PURE__ */ U($i, [["render", ji]]), $n = N({
|
|
|
3312
3318
|
default: 991,
|
|
3313
3319
|
max: 1200
|
|
3314
3320
|
}
|
|
3315
|
-
}, jl = (e, t =
|
|
3321
|
+
}, jl = (e, t = Hr) => `@media (max-width: ${t[e].max}px)`, Ni = ({
|
|
3316
3322
|
small: e,
|
|
3317
3323
|
medium: t
|
|
3318
3324
|
}) => {
|
|
3319
|
-
const n = ft(
|
|
3325
|
+
const n = ft(Hr);
|
|
3320
3326
|
if (!e || !t)
|
|
3321
3327
|
return n;
|
|
3322
3328
|
const r = Math.floor(e / 2);
|
|
@@ -3338,12 +3344,12 @@ const jt = /* @__PURE__ */ U($i, [["render", ji]]), $n = N({
|
|
|
3338
3344
|
min: i,
|
|
3339
3345
|
default: i + 1
|
|
3340
3346
|
}, n;
|
|
3341
|
-
},
|
|
3347
|
+
}, Bi = N({
|
|
3342
3348
|
name: "builder-columns",
|
|
3343
3349
|
components: {
|
|
3344
3350
|
InlinedStyles: $n,
|
|
3345
3351
|
DynamicRenderer: dn,
|
|
3346
|
-
Blocks:
|
|
3352
|
+
Blocks: Pt
|
|
3347
3353
|
},
|
|
3348
3354
|
props: [
|
|
3349
3355
|
"space",
|
|
@@ -3363,7 +3369,7 @@ const jt = /* @__PURE__ */ U($i, [["render", ji]]), $n = N({
|
|
|
3363
3369
|
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
3364
3370
|
TARGET: de,
|
|
3365
3371
|
getClassPropName: hn,
|
|
3366
|
-
mapStyleObjToStrIfNeeded:
|
|
3372
|
+
mapStyleObjToStrIfNeeded: Dr
|
|
3367
3373
|
};
|
|
3368
3374
|
},
|
|
3369
3375
|
computed: {
|
|
@@ -3455,13 +3461,13 @@ const jt = /* @__PURE__ */ U($i, [["render", ji]]), $n = N({
|
|
|
3455
3461
|
},
|
|
3456
3462
|
getWidthForBreakpointSize(e) {
|
|
3457
3463
|
var n, r;
|
|
3458
|
-
return
|
|
3464
|
+
return Ni(
|
|
3459
3465
|
((r = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : r.breakpoints) || {}
|
|
3460
3466
|
)[e].max;
|
|
3461
3467
|
}
|
|
3462
3468
|
}
|
|
3463
3469
|
});
|
|
3464
|
-
function
|
|
3470
|
+
function Ui(e, t, n, r, o, i) {
|
|
3465
3471
|
const a = V("inlined-styles"), u = V("blocks"), d = V("dynamic-renderer");
|
|
3466
3472
|
return y(), $("div", J({
|
|
3467
3473
|
class: `builder-columns ${e.builderBlock.id}-breakpoints div-2fnk003dqad`,
|
|
@@ -3500,24 +3506,24 @@ function Ni(e, t, n, r, o, i) {
|
|
|
3500
3506
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
3501
3507
|
], 16);
|
|
3502
3508
|
}
|
|
3503
|
-
const
|
|
3509
|
+
const Mi = /* @__PURE__ */ U(Bi, [["render", Ui], ["__scopeId", "data-v-0777f1ce"]]), Vi = N({
|
|
3504
3510
|
name: "builder-fragment-component",
|
|
3505
3511
|
props: []
|
|
3506
3512
|
});
|
|
3507
|
-
function
|
|
3513
|
+
function Fi(e, t, n, r, o, i) {
|
|
3508
3514
|
return y(), $("span", null, [
|
|
3509
3515
|
pe(e.$slots, "default")
|
|
3510
3516
|
]);
|
|
3511
3517
|
}
|
|
3512
|
-
const
|
|
3518
|
+
const Wi = /* @__PURE__ */ U(Vi, [["render", Fi]]);
|
|
3513
3519
|
function yr(e) {
|
|
3514
3520
|
return e.replace(/http(s)?:/, "");
|
|
3515
3521
|
}
|
|
3516
|
-
function
|
|
3522
|
+
function Di(e = "", t, n) {
|
|
3517
3523
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3518
3524
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
3519
3525
|
}
|
|
3520
|
-
function
|
|
3526
|
+
function Li(e, t) {
|
|
3521
3527
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3522
3528
|
return e;
|
|
3523
3529
|
if (t === "master")
|
|
@@ -3536,11 +3542,11 @@ function nn(e) {
|
|
|
3536
3542
|
if (e.match(/builder\.io/)) {
|
|
3537
3543
|
let n = e;
|
|
3538
3544
|
const r = Number(e.split("?width=")[1]);
|
|
3539
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
3545
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${Di(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
3540
3546
|
}
|
|
3541
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3547
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Li(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3542
3548
|
}
|
|
3543
|
-
const
|
|
3549
|
+
const Hi = N({
|
|
3544
3550
|
name: "builder-image",
|
|
3545
3551
|
props: [
|
|
3546
3552
|
"image",
|
|
@@ -3586,11 +3592,11 @@ const Di = N({
|
|
|
3586
3592
|
return this.aspectRatio ? e : void 0;
|
|
3587
3593
|
}
|
|
3588
3594
|
}
|
|
3589
|
-
}),
|
|
3595
|
+
}), Ki = ["srcset"], _i = ["alt", "role", "src", "srcset", "sizes"], zi = {
|
|
3590
3596
|
key: 2,
|
|
3591
3597
|
class: "div-1be3j8m9ewb-2"
|
|
3592
3598
|
};
|
|
3593
|
-
function
|
|
3599
|
+
function Gi(e, t, n, r, o, i) {
|
|
3594
3600
|
var a, u, d, m;
|
|
3595
3601
|
return y(), $(re, null, [
|
|
3596
3602
|
rn("picture", null, [
|
|
@@ -3598,7 +3604,7 @@ function _i(e, t, n, r, o, i) {
|
|
|
3598
3604
|
key: 0,
|
|
3599
3605
|
type: "image/webp",
|
|
3600
3606
|
srcset: e.webpSrcSet
|
|
3601
|
-
}, null, 8,
|
|
3607
|
+
}, null, 8, Ki)) : D("", !0),
|
|
3602
3608
|
rn("img", {
|
|
3603
3609
|
loading: "lazy",
|
|
3604
3610
|
alt: e.altText,
|
|
@@ -3614,7 +3620,7 @@ function _i(e, t, n, r, o, i) {
|
|
|
3614
3620
|
src: e.image,
|
|
3615
3621
|
srcset: e.srcSetToUse,
|
|
3616
3622
|
sizes: e.sizes
|
|
3617
|
-
}, null, 14,
|
|
3623
|
+
}, null, 14, _i)
|
|
3618
3624
|
]),
|
|
3619
3625
|
e.aspectRatio && !((u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent) ? (y(), $("div", {
|
|
3620
3626
|
key: 0,
|
|
@@ -3624,19 +3630,19 @@ function _i(e, t, n, r, o, i) {
|
|
|
3624
3630
|
})
|
|
3625
3631
|
}, null, 4)) : D("", !0),
|
|
3626
3632
|
(m = (d = e.builderBlock) == null ? void 0 : d.children) != null && m.length && e.fitContent ? pe(e.$slots, "default", { key: 1 }, void 0, !0) : D("", !0),
|
|
3627
|
-
!e.fitContent && e.$slots.default ? (y(), $("div",
|
|
3633
|
+
!e.fitContent && e.$slots.default ? (y(), $("div", zi, [
|
|
3628
3634
|
pe(e.$slots, "default", {}, void 0, !0)
|
|
3629
3635
|
])) : D("", !0)
|
|
3630
3636
|
], 64);
|
|
3631
3637
|
}
|
|
3632
|
-
const
|
|
3638
|
+
const qi = /* @__PURE__ */ U(Hi, [["render", Gi], ["__scopeId", "data-v-8b807426"]]), Ji = N({
|
|
3633
3639
|
name: "builder-section-component",
|
|
3634
3640
|
props: ["attributes", "maxWidth"],
|
|
3635
3641
|
data() {
|
|
3636
3642
|
return { filterAttrs: $e };
|
|
3637
3643
|
}
|
|
3638
3644
|
});
|
|
3639
|
-
function
|
|
3645
|
+
function Xi(e, t, n, r, o, i) {
|
|
3640
3646
|
return y(), $("section", J({
|
|
3641
3647
|
style: {
|
|
3642
3648
|
width: "100%",
|
|
@@ -3654,12 +3660,12 @@ function qi(e, t, n, r, o, i) {
|
|
|
3654
3660
|
pe(e.$slots, "default")
|
|
3655
3661
|
], 16);
|
|
3656
3662
|
}
|
|
3657
|
-
const
|
|
3663
|
+
const Yi = /* @__PURE__ */ U(Ji, [["render", Xi]]), Zi = (e) => {
|
|
3658
3664
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3659
3665
|
return e;
|
|
3660
3666
|
const t = e.split(".");
|
|
3661
3667
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
3662
|
-
},
|
|
3668
|
+
}, Kr = ({
|
|
3663
3669
|
name: e,
|
|
3664
3670
|
canTrack: t
|
|
3665
3671
|
}) => {
|
|
@@ -3670,14 +3676,14 @@ const Ji = /* @__PURE__ */ U(Gi, [["render", qi]]), Xi = (e) => {
|
|
|
3670
3676
|
Z.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3671
3677
|
return;
|
|
3672
3678
|
}
|
|
3673
|
-
},
|
|
3679
|
+
}, _r = async (e) => Kr(e), Qi = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(Ae).join("; "), es = [["secure", ""], ["SameSite", "None"]], ts = ({
|
|
3674
3680
|
name: e,
|
|
3675
3681
|
value: t,
|
|
3676
3682
|
expires: n
|
|
3677
3683
|
}) => {
|
|
3678
|
-
const o = (X() ? location.protocol === "https:" : !0) ?
|
|
3679
|
-
return
|
|
3680
|
-
},
|
|
3684
|
+
const o = (X() ? location.protocol === "https:" : !0) ? es : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], a = [[e, t], ...i, ["path", "/"], ["domain", Zi(window.location.hostname)], ...o];
|
|
3685
|
+
return Qi(a);
|
|
3686
|
+
}, zr = async ({
|
|
3681
3687
|
name: e,
|
|
3682
3688
|
value: t,
|
|
3683
3689
|
expires: n,
|
|
@@ -3686,7 +3692,7 @@ const Ji = /* @__PURE__ */ U(Gi, [["render", qi]]), Xi = (e) => {
|
|
|
3686
3692
|
try {
|
|
3687
3693
|
if (!r)
|
|
3688
3694
|
return;
|
|
3689
|
-
const o =
|
|
3695
|
+
const o = ts({
|
|
3690
3696
|
name: e,
|
|
3691
3697
|
value: t,
|
|
3692
3698
|
expires: n
|
|
@@ -3695,24 +3701,24 @@ const Ji = /* @__PURE__ */ U(Gi, [["render", qi]]), Xi = (e) => {
|
|
|
3695
3701
|
} catch (o) {
|
|
3696
3702
|
Z.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3697
3703
|
}
|
|
3698
|
-
},
|
|
3704
|
+
}, ns = "builder.tests", Pn = (e) => `${ns}.${e}`, rs = ({
|
|
3699
3705
|
contentId: e
|
|
3700
|
-
}) =>
|
|
3701
|
-
name:
|
|
3706
|
+
}) => _r({
|
|
3707
|
+
name: Pn(e),
|
|
3702
3708
|
canTrack: !0
|
|
3703
|
-
}),
|
|
3709
|
+
}), os = ({
|
|
3704
3710
|
contentId: e
|
|
3705
|
-
}) =>
|
|
3706
|
-
name:
|
|
3711
|
+
}) => Kr({
|
|
3712
|
+
name: Pn(e),
|
|
3707
3713
|
canTrack: !0
|
|
3708
|
-
}),
|
|
3714
|
+
}), is = ({
|
|
3709
3715
|
contentId: e,
|
|
3710
3716
|
value: t
|
|
3711
|
-
}) =>
|
|
3712
|
-
name:
|
|
3717
|
+
}) => zr({
|
|
3718
|
+
name: Pn(e),
|
|
3713
3719
|
value: t,
|
|
3714
3720
|
canTrack: !0
|
|
3715
|
-
}),
|
|
3721
|
+
}), Gr = (e) => Ae(e.id) && Ae(e.variations) && Object.keys(e.variations).length > 0, ss = ({
|
|
3716
3722
|
id: e,
|
|
3717
3723
|
variations: t
|
|
3718
3724
|
}) => {
|
|
@@ -3725,15 +3731,15 @@ const Ji = /* @__PURE__ */ U(Gi, [["render", qi]]), Xi = (e) => {
|
|
|
3725
3731
|
return i;
|
|
3726
3732
|
}
|
|
3727
3733
|
return e;
|
|
3728
|
-
},
|
|
3729
|
-
const t =
|
|
3730
|
-
return
|
|
3734
|
+
}, qr = (e) => {
|
|
3735
|
+
const t = ss(e);
|
|
3736
|
+
return is({
|
|
3731
3737
|
contentId: e.id,
|
|
3732
3738
|
value: t
|
|
3733
3739
|
}).catch((n) => {
|
|
3734
3740
|
Z.error("could not store A/B test variation: ", n);
|
|
3735
3741
|
}), t;
|
|
3736
|
-
},
|
|
3742
|
+
}, Jr = ({
|
|
3737
3743
|
item: e,
|
|
3738
3744
|
testGroupId: t
|
|
3739
3745
|
}) => {
|
|
@@ -3747,7 +3753,7 @@ const Ji = /* @__PURE__ */ U(Gi, [["render", qi]]), Xi = (e) => {
|
|
|
3747
3753
|
testVariationId: n.id,
|
|
3748
3754
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3749
3755
|
};
|
|
3750
|
-
},
|
|
3756
|
+
}, as = ({
|
|
3751
3757
|
item: e,
|
|
3752
3758
|
canTrack: t
|
|
3753
3759
|
}) => {
|
|
@@ -3755,14 +3761,14 @@ const Ji = /* @__PURE__ */ U(Gi, [["render", qi]]), Xi = (e) => {
|
|
|
3755
3761
|
return e;
|
|
3756
3762
|
if (!e)
|
|
3757
3763
|
return;
|
|
3758
|
-
if (!
|
|
3764
|
+
if (!Gr(e))
|
|
3759
3765
|
return e;
|
|
3760
|
-
const n =
|
|
3766
|
+
const n = os({
|
|
3761
3767
|
contentId: e.id
|
|
3762
|
-
}) ||
|
|
3768
|
+
}) || qr({
|
|
3763
3769
|
variations: e.variations,
|
|
3764
3770
|
id: e.id
|
|
3765
|
-
}), r =
|
|
3771
|
+
}), r = Jr({
|
|
3766
3772
|
item: e,
|
|
3767
3773
|
testGroupId: n
|
|
3768
3774
|
});
|
|
@@ -3770,18 +3776,18 @@ const Ji = /* @__PURE__ */ U(Gi, [["render", qi]]), Xi = (e) => {
|
|
|
3770
3776
|
...e,
|
|
3771
3777
|
...r
|
|
3772
3778
|
};
|
|
3773
|
-
},
|
|
3779
|
+
}, ls = async ({
|
|
3774
3780
|
item: e,
|
|
3775
3781
|
canTrack: t
|
|
3776
3782
|
}) => {
|
|
3777
|
-
if (!t || !
|
|
3783
|
+
if (!t || !Gr(e))
|
|
3778
3784
|
return e;
|
|
3779
|
-
const r = await
|
|
3785
|
+
const r = await rs({
|
|
3780
3786
|
contentId: e.id
|
|
3781
|
-
}) ||
|
|
3787
|
+
}) || qr({
|
|
3782
3788
|
variations: e.variations,
|
|
3783
3789
|
id: e.id
|
|
3784
|
-
}), o =
|
|
3790
|
+
}), o = Jr({
|
|
3785
3791
|
item: e,
|
|
3786
3792
|
testGroupId: r
|
|
3787
3793
|
});
|
|
@@ -3789,7 +3795,7 @@ const Ji = /* @__PURE__ */ U(Gi, [["render", qi]]), Xi = (e) => {
|
|
|
3789
3795
|
...e,
|
|
3790
3796
|
...o
|
|
3791
3797
|
};
|
|
3792
|
-
}, pt = (e) => Ae(e) ? e : !0,
|
|
3798
|
+
}, pt = (e) => Ae(e) ? e : !0, us = {
|
|
3793
3799
|
name: "Core:Button",
|
|
3794
3800
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3795
3801
|
defaultStyles: {
|
|
@@ -3822,7 +3828,7 @@ const Ji = /* @__PURE__ */ U(Gi, [["render", qi]]), Xi = (e) => {
|
|
|
3822
3828
|
}],
|
|
3823
3829
|
static: !0,
|
|
3824
3830
|
noWrap: !0
|
|
3825
|
-
},
|
|
3831
|
+
}, cs = {
|
|
3826
3832
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3827
3833
|
name: "Columns",
|
|
3828
3834
|
isRSC: !0,
|
|
@@ -4023,13 +4029,13 @@ const Ji = /* @__PURE__ */ U(Gi, [["render", qi]]), Xi = (e) => {
|
|
|
4023
4029
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
4024
4030
|
advanced: !0
|
|
4025
4031
|
}]
|
|
4026
|
-
},
|
|
4032
|
+
}, ps = {
|
|
4027
4033
|
name: "Fragment",
|
|
4028
4034
|
static: !0,
|
|
4029
4035
|
hidden: !0,
|
|
4030
4036
|
canHaveChildren: !0,
|
|
4031
4037
|
noWrap: !0
|
|
4032
|
-
},
|
|
4038
|
+
}, ds = {
|
|
4033
4039
|
name: "Image",
|
|
4034
4040
|
static: !0,
|
|
4035
4041
|
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",
|
|
@@ -4129,7 +4135,7 @@ const Ji = /* @__PURE__ */ U(Gi, [["render", qi]]), Xi = (e) => {
|
|
|
4129
4135
|
advanced: !0,
|
|
4130
4136
|
defaultValue: 0.7041
|
|
4131
4137
|
}]
|
|
4132
|
-
},
|
|
4138
|
+
}, hs = {
|
|
4133
4139
|
name: "Core:Section",
|
|
4134
4140
|
static: !0,
|
|
4135
4141
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -4168,7 +4174,7 @@ const Ji = /* @__PURE__ */ U(Gi, [["render", qi]]), Xi = (e) => {
|
|
|
4168
4174
|
}
|
|
4169
4175
|
}
|
|
4170
4176
|
}]
|
|
4171
|
-
},
|
|
4177
|
+
}, fs = {
|
|
4172
4178
|
name: "Slot",
|
|
4173
4179
|
isRSC: !0,
|
|
4174
4180
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -4181,12 +4187,12 @@ const Ji = /* @__PURE__ */ U(Gi, [["render", qi]]), Xi = (e) => {
|
|
|
4181
4187
|
required: !0,
|
|
4182
4188
|
defaultValue: "children"
|
|
4183
4189
|
}]
|
|
4184
|
-
},
|
|
4190
|
+
}, ms = N({
|
|
4185
4191
|
name: "builder-slot",
|
|
4186
|
-
components: { Blocks:
|
|
4192
|
+
components: { Blocks: Pt },
|
|
4187
4193
|
props: ["js", "builderContext", "name"]
|
|
4188
4194
|
});
|
|
4189
|
-
function
|
|
4195
|
+
function gs(e, t, n, r, o, i) {
|
|
4190
4196
|
var u, d, m;
|
|
4191
4197
|
const a = V("blocks");
|
|
4192
4198
|
return y(), $("div", J(
|
|
@@ -4205,7 +4211,7 @@ function fs(e, t, n, r, o, i) {
|
|
|
4205
4211
|
}, null, 8, ["parent", "path", "context", "blocks"])
|
|
4206
4212
|
], 16);
|
|
4207
4213
|
}
|
|
4208
|
-
const
|
|
4214
|
+
const ys = /* @__PURE__ */ U(ms, [["render", gs]]), vs = {
|
|
4209
4215
|
name: "Symbol",
|
|
4210
4216
|
noWrap: !0,
|
|
4211
4217
|
static: !0,
|
|
@@ -4238,7 +4244,7 @@ const ms = /* @__PURE__ */ U(hs, [["render", fs]]), gs = {
|
|
|
4238
4244
|
hideFromUI: !0,
|
|
4239
4245
|
type: "boolean"
|
|
4240
4246
|
}]
|
|
4241
|
-
},
|
|
4247
|
+
}, bs = {
|
|
4242
4248
|
name: "Text",
|
|
4243
4249
|
static: !0,
|
|
4244
4250
|
isRSC: !0,
|
|
@@ -4256,11 +4262,11 @@ const ms = /* @__PURE__ */ U(hs, [["render", fs]]), gs = {
|
|
|
4256
4262
|
height: "auto",
|
|
4257
4263
|
textAlign: "center"
|
|
4258
4264
|
}
|
|
4259
|
-
},
|
|
4265
|
+
}, ks = N({
|
|
4260
4266
|
name: "builder-text",
|
|
4261
4267
|
props: ["text"]
|
|
4262
|
-
}),
|
|
4263
|
-
function
|
|
4268
|
+
}), Ss = ["innerHTML"];
|
|
4269
|
+
function Cs(e, t, n, r, o, i) {
|
|
4264
4270
|
var a;
|
|
4265
4271
|
return y(), $("div", {
|
|
4266
4272
|
class: "builder-text",
|
|
@@ -4268,9 +4274,9 @@ function ks(e, t, n, r, o, i) {
|
|
|
4268
4274
|
style: {
|
|
4269
4275
|
outline: "none"
|
|
4270
4276
|
}
|
|
4271
|
-
}, null, 8,
|
|
4277
|
+
}, null, 8, Ss);
|
|
4272
4278
|
}
|
|
4273
|
-
const
|
|
4279
|
+
const ws = /* @__PURE__ */ U(ks, [["render", Cs]]), Es = {
|
|
4274
4280
|
name: "Custom Code",
|
|
4275
4281
|
static: !0,
|
|
4276
4282
|
requiredPermissions: ["editCode"],
|
|
@@ -4292,7 +4298,7 @@ const Ss = /* @__PURE__ */ U(vs, [["render", ks]]), Cs = {
|
|
|
4292
4298
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
4293
4299
|
advanced: !0
|
|
4294
4300
|
}]
|
|
4295
|
-
},
|
|
4301
|
+
}, Is = N({
|
|
4296
4302
|
name: "builder-custom-code",
|
|
4297
4303
|
props: ["replaceNodes", "code"],
|
|
4298
4304
|
data() {
|
|
@@ -4326,15 +4332,15 @@ const Ss = /* @__PURE__ */ U(vs, [["render", ks]]), Cs = {
|
|
|
4326
4332
|
}
|
|
4327
4333
|
}
|
|
4328
4334
|
}
|
|
4329
|
-
}),
|
|
4330
|
-
function
|
|
4335
|
+
}), Ts = ["innerHTML"];
|
|
4336
|
+
function xs(e, t, n, r, o, i) {
|
|
4331
4337
|
return y(), $("div", {
|
|
4332
4338
|
ref: "elementRef",
|
|
4333
4339
|
class: xr("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
4334
4340
|
innerHTML: e.code
|
|
4335
|
-
}, null, 10,
|
|
4341
|
+
}, null, 10, Ts);
|
|
4336
4342
|
}
|
|
4337
|
-
const
|
|
4343
|
+
const Rs = /* @__PURE__ */ U(Is, [["render", xs]]), As = {
|
|
4338
4344
|
name: "Embed",
|
|
4339
4345
|
static: !0,
|
|
4340
4346
|
inputs: [{
|
|
@@ -4359,7 +4365,7 @@ const Ts = /* @__PURE__ */ U(ws, [["render", Is]]), xs = {
|
|
|
4359
4365
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4360
4366
|
hideFromUI: !0
|
|
4361
4367
|
}]
|
|
4362
|
-
},
|
|
4368
|
+
}, $s = ["text/javascript", "application/javascript", "application/ecmascript"], Ps = (e) => $s.includes(e.type), js = N({
|
|
4363
4369
|
name: "builder-embed",
|
|
4364
4370
|
props: ["content"],
|
|
4365
4371
|
data() {
|
|
@@ -4392,7 +4398,7 @@ const Ts = /* @__PURE__ */ U(ws, [["render", Is]]), xs = {
|
|
|
4392
4398
|
this.scriptsInserted.push(n.src);
|
|
4393
4399
|
const r = document.createElement("script");
|
|
4394
4400
|
r.async = !0, r.src = n.src, document.head.appendChild(r);
|
|
4395
|
-
} else if (
|
|
4401
|
+
} else if (Ps(n) && !this.scriptsRun.includes(n.innerText))
|
|
4396
4402
|
try {
|
|
4397
4403
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
4398
4404
|
} catch (r) {
|
|
@@ -4401,15 +4407,15 @@ const Ts = /* @__PURE__ */ U(ws, [["render", Is]]), xs = {
|
|
|
4401
4407
|
}
|
|
4402
4408
|
}
|
|
4403
4409
|
}
|
|
4404
|
-
}),
|
|
4405
|
-
function
|
|
4410
|
+
}), Os = ["innerHTML"];
|
|
4411
|
+
function Ns(e, t, n, r, o, i) {
|
|
4406
4412
|
return y(), $("div", {
|
|
4407
4413
|
class: "builder-embed",
|
|
4408
4414
|
ref: "elem",
|
|
4409
4415
|
innerHTML: e.content
|
|
4410
|
-
}, null, 8,
|
|
4416
|
+
}, null, 8, Os);
|
|
4411
4417
|
}
|
|
4412
|
-
const
|
|
4418
|
+
const Bs = /* @__PURE__ */ U(js, [["render", Ns]]), Us = {
|
|
4413
4419
|
name: "Form:Form",
|
|
4414
4420
|
// editableTags: ['builder-form-error']
|
|
4415
4421
|
defaults: {
|
|
@@ -4640,15 +4646,15 @@ const Os = /* @__PURE__ */ U($s, [["render", Ps]]), Ns = {
|
|
|
4640
4646
|
}
|
|
4641
4647
|
}
|
|
4642
4648
|
}]
|
|
4643
|
-
},
|
|
4649
|
+
}, Ms = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Vs = () => {
|
|
4644
4650
|
const e = process.env.NODE_ENV || "production";
|
|
4645
|
-
return
|
|
4646
|
-
},
|
|
4651
|
+
return Ms.includes(e) ? e : "production";
|
|
4652
|
+
}, Fs = (e, t, n) => {
|
|
4647
4653
|
const r = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, i) => o != null ? o[i] : o, e);
|
|
4648
4654
|
return r === void 0 || r === e ? n : r;
|
|
4649
|
-
},
|
|
4655
|
+
}, Ws = N({
|
|
4650
4656
|
name: "builder-form-component",
|
|
4651
|
-
components: { Block: An, Blocks:
|
|
4657
|
+
components: { Block: An, Blocks: Pt },
|
|
4652
4658
|
props: [
|
|
4653
4659
|
"js",
|
|
4654
4660
|
"builderContext",
|
|
@@ -4710,12 +4716,12 @@ const Os = /* @__PURE__ */ U($s, [["render", Ps]]), Ns = {
|
|
|
4710
4716
|
e.currentTarget.querySelectorAll("input,select,textarea")
|
|
4711
4717
|
).filter((f) => !!f.name).map((f) => {
|
|
4712
4718
|
let C;
|
|
4713
|
-
const
|
|
4719
|
+
const j = f.name;
|
|
4714
4720
|
if (f instanceof HTMLInputElement)
|
|
4715
4721
|
if (f.type === "radio") {
|
|
4716
4722
|
if (f.checked)
|
|
4717
4723
|
return C = f.name, {
|
|
4718
|
-
key:
|
|
4724
|
+
key: j,
|
|
4719
4725
|
value: C
|
|
4720
4726
|
};
|
|
4721
4727
|
} else if (f.type === "checkbox")
|
|
@@ -4728,7 +4734,7 @@ const Os = /* @__PURE__ */ U($s, [["render", Ps]]), Ns = {
|
|
|
4728
4734
|
else
|
|
4729
4735
|
C = f.value;
|
|
4730
4736
|
return {
|
|
4731
|
-
key:
|
|
4737
|
+
key: j,
|
|
4732
4738
|
value: C
|
|
4733
4739
|
};
|
|
4734
4740
|
});
|
|
@@ -4739,8 +4745,8 @@ const Os = /* @__PURE__ */ U($s, [["render", Ps]]), Ns = {
|
|
|
4739
4745
|
i = a;
|
|
4740
4746
|
else {
|
|
4741
4747
|
const f = {};
|
|
4742
|
-
Array.from(u).forEach(({ value: C, key:
|
|
4743
|
-
fn(f,
|
|
4748
|
+
Array.from(u).forEach(({ value: C, key: j }) => {
|
|
4749
|
+
fn(f, j, C);
|
|
4744
4750
|
}), i = JSON.stringify(f);
|
|
4745
4751
|
}
|
|
4746
4752
|
d && d !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (o["content-type"] = d));
|
|
@@ -4752,7 +4758,7 @@ const Os = /* @__PURE__ */ U($s, [["render", Ps]]), Ns = {
|
|
|
4752
4758
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(m), m.defaultPrevented))
|
|
4753
4759
|
return;
|
|
4754
4760
|
this.formState = "sending";
|
|
4755
|
-
const v = `${
|
|
4761
|
+
const v = `${Vs() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
4756
4762
|
this.sendSubmissionsToEmail || ""
|
|
4757
4763
|
)}&name=${encodeURIComponent(this.name || "")}`;
|
|
4758
4764
|
fetch(
|
|
@@ -4765,9 +4771,9 @@ const Os = /* @__PURE__ */ U($s, [["render", Ps]]), Ns = {
|
|
|
4765
4771
|
).then(
|
|
4766
4772
|
async (f) => {
|
|
4767
4773
|
let C;
|
|
4768
|
-
const
|
|
4769
|
-
if (
|
|
4770
|
-
let E =
|
|
4774
|
+
const j = f.headers.get("content-type");
|
|
4775
|
+
if (j && j.indexOf("application/json") !== -1 ? C = await f.json() : C = await f.text(), !f.ok && this.errorMessagePath) {
|
|
4776
|
+
let E = Fs(C, this.errorMessagePath);
|
|
4771
4777
|
E && (typeof E != "string" && (E = JSON.stringify(E)), this.formErrorMessage = E, this.mergeNewRootState({
|
|
4772
4778
|
formErrorMessage: E
|
|
4773
4779
|
}));
|
|
@@ -4808,11 +4814,11 @@ const Os = /* @__PURE__ */ U($s, [["render", Ps]]), Ns = {
|
|
|
4808
4814
|
}
|
|
4809
4815
|
}
|
|
4810
4816
|
}
|
|
4811
|
-
}),
|
|
4817
|
+
}), Ds = ["validate", "action", "method", "name"], Ls = {
|
|
4812
4818
|
key: 3,
|
|
4813
4819
|
class: "builder-form-error-text pre-5vz8uirn7sc"
|
|
4814
4820
|
};
|
|
4815
|
-
function
|
|
4821
|
+
function Hs(e, t, n, r, o, i) {
|
|
4816
4822
|
var d;
|
|
4817
4823
|
const a = V("block"), u = V("blocks");
|
|
4818
4824
|
return y(), $("form", J({
|
|
@@ -4842,7 +4848,7 @@ function Ds(e, t, n, r, o, i) {
|
|
|
4842
4848
|
blocks: e.sendingMessage,
|
|
4843
4849
|
context: e.builderContext
|
|
4844
4850
|
}, null, 8, ["blocks", "context"])) : D("", !0),
|
|
4845
|
-
e.submissionState() === "error" && e.responseData ? (y(), $("pre",
|
|
4851
|
+
e.submissionState() === "error" && e.responseData ? (y(), $("pre", Ls, " " + Rt(JSON.stringify(e.responseData, null, 2)) + `
|
|
4846
4852
|
`, 1)) : D("", !0),
|
|
4847
4853
|
e.submissionState() === "success" ? (y(), B(u, {
|
|
4848
4854
|
key: 4,
|
|
@@ -4850,9 +4856,9 @@ function Ds(e, t, n, r, o, i) {
|
|
|
4850
4856
|
blocks: e.successMessage,
|
|
4851
4857
|
context: e.builderContext
|
|
4852
4858
|
}, null, 8, ["blocks", "context"])) : D("", !0)
|
|
4853
|
-
], 16,
|
|
4859
|
+
], 16, Ds);
|
|
4854
4860
|
}
|
|
4855
|
-
const
|
|
4861
|
+
const Ks = /* @__PURE__ */ U(Ws, [["render", Hs], ["__scopeId", "data-v-c1bb70af"]]), _s = {
|
|
4856
4862
|
name: "Form:Input",
|
|
4857
4863
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4858
4864
|
inputs: [
|
|
@@ -4903,7 +4909,7 @@ const Ls = /* @__PURE__ */ U(Vs, [["render", Ds], ["__scopeId", "data-v-c1bb70af
|
|
|
4903
4909
|
borderStyle: "solid",
|
|
4904
4910
|
borderColor: "#ccc"
|
|
4905
4911
|
}
|
|
4906
|
-
},
|
|
4912
|
+
}, zs = N({
|
|
4907
4913
|
name: "builder-form-input-component",
|
|
4908
4914
|
props: [
|
|
4909
4915
|
"attributes",
|
|
@@ -4917,8 +4923,8 @@ const Ls = /* @__PURE__ */ U(Vs, [["render", Ds], ["__scopeId", "data-v-c1bb70af
|
|
|
4917
4923
|
data() {
|
|
4918
4924
|
return { isEditing: ie, filterAttrs: $e };
|
|
4919
4925
|
}
|
|
4920
|
-
}),
|
|
4921
|
-
function
|
|
4926
|
+
}), Gs = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4927
|
+
function qs(e, t, n, r, o, i) {
|
|
4922
4928
|
return y(), $("input", J({
|
|
4923
4929
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4924
4930
|
placeholder: e.placeholder,
|
|
@@ -4927,9 +4933,9 @@ function zs(e, t, n, r, o, i) {
|
|
|
4927
4933
|
value: e.value,
|
|
4928
4934
|
defaultValue: e.defaultValue,
|
|
4929
4935
|
required: e.required
|
|
4930
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
4936
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Gs);
|
|
4931
4937
|
}
|
|
4932
|
-
const
|
|
4938
|
+
const Js = /* @__PURE__ */ U(zs, [["render", qs]]), Xs = {
|
|
4933
4939
|
name: "Form:Select",
|
|
4934
4940
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4935
4941
|
defaultStyles: {
|
|
@@ -4971,14 +4977,14 @@ const Gs = /* @__PURE__ */ U(Ks, [["render", zs]]), qs = {
|
|
|
4971
4977
|
}],
|
|
4972
4978
|
static: !0,
|
|
4973
4979
|
noWrap: !0
|
|
4974
|
-
},
|
|
4980
|
+
}, Ys = N({
|
|
4975
4981
|
name: "builder-select-component",
|
|
4976
4982
|
props: ["attributes", "value", "defaultValue", "name", "options"],
|
|
4977
4983
|
data() {
|
|
4978
4984
|
return { isEditing: ie, filterAttrs: $e };
|
|
4979
4985
|
}
|
|
4980
|
-
}),
|
|
4981
|
-
function
|
|
4986
|
+
}), Zs = ["value", "defaultValue", "name"], Qs = ["value"];
|
|
4987
|
+
function ea(e, t, n, r, o, i) {
|
|
4982
4988
|
return y(), $("select", J({
|
|
4983
4989
|
value: e.value,
|
|
4984
4990
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
@@ -4988,10 +4994,10 @@ function Zs(e, t, n, r, o, i) {
|
|
|
4988
4994
|
(y(!0), $(re, null, Be(e.options, (a, u) => (y(), $("option", {
|
|
4989
4995
|
key: u,
|
|
4990
4996
|
value: a.value
|
|
4991
|
-
}, Rt(a.name || a.value), 9,
|
|
4992
|
-
], 16,
|
|
4997
|
+
}, Rt(a.name || a.value), 9, Qs))), 128))
|
|
4998
|
+
], 16, Zs);
|
|
4993
4999
|
}
|
|
4994
|
-
const
|
|
5000
|
+
const ta = /* @__PURE__ */ U(Ys, [["render", ea]]), na = {
|
|
4995
5001
|
name: "Form:SubmitButton",
|
|
4996
5002
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
4997
5003
|
defaultStyles: {
|
|
@@ -5016,17 +5022,17 @@ const Qs = /* @__PURE__ */ U(Js, [["render", Zs]]), ea = {
|
|
|
5016
5022
|
// that only shows if advanced setting is flipped
|
|
5017
5023
|
// TODO: defaultChildren
|
|
5018
5024
|
// canHaveChildren: true,
|
|
5019
|
-
},
|
|
5025
|
+
}, ra = N({
|
|
5020
5026
|
name: "builder-submit-button",
|
|
5021
5027
|
props: ["attributes", "text"],
|
|
5022
5028
|
data() {
|
|
5023
5029
|
return { filterAttrs: $e };
|
|
5024
5030
|
}
|
|
5025
5031
|
});
|
|
5026
|
-
function
|
|
5032
|
+
function oa(e, t, n, r, o, i) {
|
|
5027
5033
|
return y(), $("button", J({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), Rt(e.text), 17);
|
|
5028
5034
|
}
|
|
5029
|
-
const
|
|
5035
|
+
const ia = /* @__PURE__ */ U(ra, [["render", oa]]), sa = {
|
|
5030
5036
|
// friendlyName?
|
|
5031
5037
|
name: "Raw:Img",
|
|
5032
5038
|
hideFromInsertMenu: !0,
|
|
@@ -5040,7 +5046,7 @@ const ra = /* @__PURE__ */ U(ta, [["render", na]]), oa = {
|
|
|
5040
5046
|
}],
|
|
5041
5047
|
noWrap: !0,
|
|
5042
5048
|
static: !0
|
|
5043
|
-
},
|
|
5049
|
+
}, aa = N({
|
|
5044
5050
|
name: "builder-img-component",
|
|
5045
5051
|
props: [
|
|
5046
5052
|
"backgroundSize",
|
|
@@ -5053,8 +5059,8 @@ const ra = /* @__PURE__ */ U(ta, [["render", na]]), oa = {
|
|
|
5053
5059
|
data() {
|
|
5054
5060
|
return { isEditing: ie, filterAttrs: $e };
|
|
5055
5061
|
}
|
|
5056
|
-
}),
|
|
5057
|
-
function
|
|
5062
|
+
}), la = ["alt", "src"];
|
|
5063
|
+
function ua(e, t, n, r, o, i) {
|
|
5058
5064
|
return y(), $("img", J({
|
|
5059
5065
|
style: {
|
|
5060
5066
|
objectFit: e.backgroundSize || "cover",
|
|
@@ -5063,9 +5069,9 @@ function aa(e, t, n, r, o, i) {
|
|
|
5063
5069
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
5064
5070
|
alt: e.altText,
|
|
5065
5071
|
src: e.imgSrc || e.image
|
|
5066
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
5072
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, la);
|
|
5067
5073
|
}
|
|
5068
|
-
const
|
|
5074
|
+
const ca = /* @__PURE__ */ U(aa, [["render", ua]]), pa = {
|
|
5069
5075
|
name: "Video",
|
|
5070
5076
|
canHaveChildren: !0,
|
|
5071
5077
|
defaultStyles: {
|
|
@@ -5146,7 +5152,7 @@ const la = /* @__PURE__ */ U(ia, [["render", aa]]), ua = {
|
|
|
5146
5152
|
defaultValue: !0,
|
|
5147
5153
|
advanced: !0
|
|
5148
5154
|
}]
|
|
5149
|
-
},
|
|
5155
|
+
}, da = N({
|
|
5150
5156
|
name: "builder-video",
|
|
5151
5157
|
props: [
|
|
5152
5158
|
"autoPlay",
|
|
@@ -5191,16 +5197,16 @@ const la = /* @__PURE__ */ U(ia, [["render", aa]]), ua = {
|
|
|
5191
5197
|
};
|
|
5192
5198
|
}
|
|
5193
5199
|
}
|
|
5194
|
-
}),
|
|
5200
|
+
}), ha = { style: {
|
|
5195
5201
|
position: "relative"
|
|
5196
|
-
} },
|
|
5202
|
+
} }, fa = ["preload", "src", "poster"], ma = ["src"], ga = {
|
|
5197
5203
|
key: 1,
|
|
5198
5204
|
style: {
|
|
5199
5205
|
display: "flex",
|
|
5200
5206
|
flexDirection: "column",
|
|
5201
5207
|
alignItems: "stretch"
|
|
5202
5208
|
}
|
|
5203
|
-
},
|
|
5209
|
+
}, ya = {
|
|
5204
5210
|
key: 2,
|
|
5205
5211
|
style: {
|
|
5206
5212
|
pointerEvents: "none",
|
|
@@ -5214,9 +5220,9 @@ const la = /* @__PURE__ */ U(ia, [["render", aa]]), ua = {
|
|
|
5214
5220
|
height: "100%"
|
|
5215
5221
|
}
|
|
5216
5222
|
};
|
|
5217
|
-
function
|
|
5223
|
+
function va(e, t, n, r, o, i) {
|
|
5218
5224
|
var a, u, d, m, v, f, C;
|
|
5219
|
-
return y(), $("div",
|
|
5225
|
+
return y(), $("div", ha, [
|
|
5220
5226
|
rn("video", J({
|
|
5221
5227
|
class: "builder-video",
|
|
5222
5228
|
preload: e.preload || "metadata",
|
|
@@ -5241,8 +5247,8 @@ function ga(e, t, n, r, o, i) {
|
|
|
5241
5247
|
key: 0,
|
|
5242
5248
|
type: "video/mp4",
|
|
5243
5249
|
src: e.video
|
|
5244
|
-
}, null, 8,
|
|
5245
|
-
], 16,
|
|
5250
|
+
}, null, 8, ma))
|
|
5251
|
+
], 16, fa),
|
|
5246
5252
|
e.aspectRatio && !(e.fitContent && ((d = (u = e.builderBlock) == null ? void 0 : u.children) != null && d.length)) ? (y(), $("div", {
|
|
5247
5253
|
key: 0,
|
|
5248
5254
|
style: on({
|
|
@@ -5252,78 +5258,78 @@ function ga(e, t, n, r, o, i) {
|
|
|
5252
5258
|
fontSize: "0px"
|
|
5253
5259
|
})
|
|
5254
5260
|
}, null, 4)) : D("", !0),
|
|
5255
|
-
(v = (m = e.builderBlock) == null ? void 0 : m.children) != null && v.length && e.fitContent ? (y(), $("div",
|
|
5261
|
+
(v = (m = e.builderBlock) == null ? void 0 : m.children) != null && v.length && e.fitContent ? (y(), $("div", ga, [
|
|
5256
5262
|
pe(e.$slots, "default")
|
|
5257
5263
|
])) : D("", !0),
|
|
5258
|
-
(C = (f = e.builderBlock) == null ? void 0 : f.children) != null && C.length && !e.fitContent ? (y(), $("div",
|
|
5264
|
+
(C = (f = e.builderBlock) == null ? void 0 : f.children) != null && C.length && !e.fitContent ? (y(), $("div", ya, [
|
|
5259
5265
|
pe(e.$slots, "default")
|
|
5260
5266
|
])) : D("", !0)
|
|
5261
5267
|
]);
|
|
5262
5268
|
}
|
|
5263
|
-
const
|
|
5264
|
-
component:
|
|
5265
|
-
...
|
|
5269
|
+
const ba = /* @__PURE__ */ U(da, [["render", va]]), ka = () => [{
|
|
5270
|
+
component: Rs,
|
|
5271
|
+
...Es
|
|
5266
5272
|
}, {
|
|
5267
|
-
component:
|
|
5268
|
-
...
|
|
5273
|
+
component: Bs,
|
|
5274
|
+
...As
|
|
5269
5275
|
}, {
|
|
5270
|
-
component:
|
|
5271
|
-
...
|
|
5276
|
+
component: Ks,
|
|
5277
|
+
...Us
|
|
5272
5278
|
}, {
|
|
5273
|
-
component:
|
|
5274
|
-
...
|
|
5279
|
+
component: Js,
|
|
5280
|
+
..._s
|
|
5275
5281
|
}, {
|
|
5276
|
-
component:
|
|
5277
|
-
...
|
|
5282
|
+
component: ia,
|
|
5283
|
+
...na
|
|
5278
5284
|
}, {
|
|
5279
|
-
component:
|
|
5280
|
-
...
|
|
5285
|
+
component: ta,
|
|
5286
|
+
...Xs
|
|
5281
5287
|
}, {
|
|
5282
|
-
component:
|
|
5283
|
-
...
|
|
5288
|
+
component: ca,
|
|
5289
|
+
...sa
|
|
5284
5290
|
}, {
|
|
5285
|
-
component:
|
|
5286
|
-
...
|
|
5291
|
+
component: ba,
|
|
5292
|
+
...pa
|
|
5287
5293
|
}], vr = () => [{
|
|
5288
|
-
component:
|
|
5289
|
-
...as
|
|
5290
|
-
}, {
|
|
5291
|
-
component: Bi,
|
|
5292
|
-
...ls
|
|
5293
|
-
}, {
|
|
5294
|
-
component: Vi,
|
|
5294
|
+
component: No,
|
|
5295
5295
|
...us
|
|
5296
5296
|
}, {
|
|
5297
|
-
component:
|
|
5297
|
+
component: Mi,
|
|
5298
5298
|
...cs
|
|
5299
5299
|
}, {
|
|
5300
|
-
component:
|
|
5300
|
+
component: Wi,
|
|
5301
5301
|
...ps
|
|
5302
5302
|
}, {
|
|
5303
|
-
component:
|
|
5303
|
+
component: qi,
|
|
5304
5304
|
...ds
|
|
5305
5305
|
}, {
|
|
5306
|
-
component:
|
|
5307
|
-
...
|
|
5306
|
+
component: Yi,
|
|
5307
|
+
...hs
|
|
5308
|
+
}, {
|
|
5309
|
+
component: ys,
|
|
5310
|
+
...fs
|
|
5311
|
+
}, {
|
|
5312
|
+
component: Tl,
|
|
5313
|
+
...vs
|
|
5308
5314
|
}, {
|
|
5309
|
-
component:
|
|
5310
|
-
...
|
|
5311
|
-
}, ...
|
|
5315
|
+
component: ws,
|
|
5316
|
+
...bs
|
|
5317
|
+
}, ...ka()], Sa = (e) => ({
|
|
5312
5318
|
type: "builder.registerComponent",
|
|
5313
5319
|
data: cn(e)
|
|
5314
|
-
}),
|
|
5320
|
+
}), Ca = (e) => {
|
|
5315
5321
|
const t = e.toString().trim();
|
|
5316
5322
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
5317
|
-
},
|
|
5323
|
+
}, wa = (e) => typeof e == "function" ? Ca(e) : ft(e), cn = ({
|
|
5318
5324
|
inputs: e,
|
|
5319
5325
|
...t
|
|
5320
5326
|
}) => ({
|
|
5321
5327
|
...ft(t),
|
|
5322
5328
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
|
|
5323
5329
|
...r,
|
|
5324
|
-
[o]:
|
|
5330
|
+
[o]: wa(i)
|
|
5325
5331
|
}), {}))
|
|
5326
|
-
}),
|
|
5332
|
+
}), Ea = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
5327
5333
|
function getAndSetVariantId() {
|
|
5328
5334
|
function setCookie(name, value, days) {
|
|
5329
5335
|
let expires = '';
|
|
@@ -5379,7 +5385,7 @@ const ya = /* @__PURE__ */ U(ca, [["render", ga]]), va = () => [{
|
|
|
5379
5385
|
}).join('');
|
|
5380
5386
|
styleEl.innerHTML = newStyleStr;
|
|
5381
5387
|
}
|
|
5382
|
-
}`,
|
|
5388
|
+
}`, Ia = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
5383
5389
|
if (!navigator.cookieEnabled) {
|
|
5384
5390
|
return;
|
|
5385
5391
|
}
|
|
@@ -5413,42 +5419,42 @@ const ya = /* @__PURE__ */ U(ca, [["render", ga]]), va = () => [{
|
|
|
5413
5419
|
thisScriptEl?.remove();
|
|
5414
5420
|
}
|
|
5415
5421
|
return;
|
|
5416
|
-
}`,
|
|
5422
|
+
}`, Xr = "builderIoAbTest", Yr = "builderIoRenderContent", It = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
5417
5423
|
...t,
|
|
5418
5424
|
testVariationId: t.id,
|
|
5419
5425
|
id: e == null ? void 0 : e.id
|
|
5420
|
-
})),
|
|
5426
|
+
})), Ta = ({
|
|
5421
5427
|
canTrack: e,
|
|
5422
5428
|
content: t
|
|
5423
|
-
}) => !(!(It(t).length > 0) || !e),
|
|
5424
|
-
window.${
|
|
5425
|
-
window.${
|
|
5426
|
-
`,
|
|
5427
|
-
window.${
|
|
5428
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
5429
|
-
)`,
|
|
5429
|
+
}) => !(!(It(t).length > 0) || !e), xa = (e) => e === "react" || e === "reactNative", Zr = xa(de), Ra = () => `
|
|
5430
|
+
window.${Xr} = ${Ea}
|
|
5431
|
+
window.${Yr} = ${Ia}
|
|
5432
|
+
`, Aa = (e, t) => `
|
|
5433
|
+
window.${Xr}(
|
|
5434
|
+
"${t}",${JSON.stringify(e)}, ${Zr}
|
|
5435
|
+
)`, $a = ({
|
|
5430
5436
|
contentId: e,
|
|
5431
5437
|
variationId: t
|
|
5432
|
-
}) => `window.${
|
|
5433
|
-
"${t}", "${e}", ${
|
|
5434
|
-
)`,
|
|
5438
|
+
}) => `window.${Yr}(
|
|
5439
|
+
"${t}", "${e}", ${Zr}
|
|
5440
|
+
)`, Qr = N({
|
|
5435
5441
|
render() {
|
|
5436
5442
|
return Tr("script", { id: this.id, innerHTML: this.scriptStr });
|
|
5437
5443
|
},
|
|
5438
5444
|
name: "inlined-script",
|
|
5439
5445
|
props: ["scriptStr", "id"]
|
|
5440
5446
|
});
|
|
5441
|
-
function
|
|
5447
|
+
function Pa() {
|
|
5442
5448
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
5443
5449
|
}
|
|
5444
|
-
function
|
|
5445
|
-
const e =
|
|
5450
|
+
function ja() {
|
|
5451
|
+
const e = Pa().fetch;
|
|
5446
5452
|
if (typeof e > "u")
|
|
5447
5453
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
5448
5454
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
5449
5455
|
return e;
|
|
5450
5456
|
}
|
|
5451
|
-
const
|
|
5457
|
+
const eo = ja();
|
|
5452
5458
|
function Tt(e, t = null, n = ".") {
|
|
5453
5459
|
return Object.keys(e).reduce((r, o) => {
|
|
5454
5460
|
const i = e[o], a = [t, o].filter(Boolean).join(n);
|
|
@@ -5461,27 +5467,22 @@ function Tt(e, t = null, n = ".") {
|
|
|
5461
5467
|
};
|
|
5462
5468
|
}, {});
|
|
5463
5469
|
}
|
|
5464
|
-
const
|
|
5465
|
-
const t = {};
|
|
5466
|
-
return e.forEach((n, r) => {
|
|
5467
|
-
t[r] = n;
|
|
5468
|
-
}), t;
|
|
5469
|
-
}, Qr = (e) => {
|
|
5470
|
+
const Oa = "v3", br = "builder.", Na = "options.", to = (e) => {
|
|
5470
5471
|
if (!e)
|
|
5471
5472
|
return {};
|
|
5472
|
-
const t =
|
|
5473
|
+
const t = Ar(e), n = {};
|
|
5473
5474
|
return Object.keys(t).forEach((r) => {
|
|
5474
5475
|
if (r.startsWith(br)) {
|
|
5475
|
-
const o = r.replace(br, "").replace(
|
|
5476
|
+
const o = r.replace(br, "").replace(Na, "");
|
|
5476
5477
|
n[o] = t[r];
|
|
5477
5478
|
}
|
|
5478
5479
|
}), n;
|
|
5479
|
-
},
|
|
5480
|
+
}, Ba = () => {
|
|
5480
5481
|
if (!X())
|
|
5481
5482
|
return {};
|
|
5482
5483
|
const e = new URLSearchParams(window.location.search);
|
|
5483
|
-
return
|
|
5484
|
-
},
|
|
5484
|
+
return to(e);
|
|
5485
|
+
}, kr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, jn = (e) => {
|
|
5485
5486
|
const {
|
|
5486
5487
|
limit: t = 30,
|
|
5487
5488
|
userAttributes: n,
|
|
@@ -5490,12 +5491,12 @@ const ja = "v3", br = "builder.", Pa = "options.", Oa = (e) => {
|
|
|
5490
5491
|
apiKey: i,
|
|
5491
5492
|
enrich: a,
|
|
5492
5493
|
locale: u,
|
|
5493
|
-
apiVersion: d =
|
|
5494
|
+
apiVersion: d = Oa,
|
|
5494
5495
|
fields: m,
|
|
5495
5496
|
omit: v,
|
|
5496
5497
|
offset: f,
|
|
5497
5498
|
cacheSeconds: C,
|
|
5498
|
-
staleCacheSeconds:
|
|
5499
|
+
staleCacheSeconds: j,
|
|
5499
5500
|
sort: E,
|
|
5500
5501
|
includeUnpublished: F
|
|
5501
5502
|
} = e;
|
|
@@ -5504,7 +5505,7 @@ const ja = "v3", br = "builder.", Pa = "options.", Oa = (e) => {
|
|
|
5504
5505
|
if (!["v3"].includes(d))
|
|
5505
5506
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${d}'`);
|
|
5506
5507
|
const se = t !== 1, W = new URL(`https://cdn.builder.io/api/${d}/content/${o}`);
|
|
5507
|
-
if (W.searchParams.set("apiKey", i), W.searchParams.set("limit", String(t)), W.searchParams.set("noTraverse", String(se)), W.searchParams.set("includeRefs", String(!0)), u && W.searchParams.set("locale", u), a && W.searchParams.set("enrich", String(a)), W.searchParams.set("omit", v || "meta.componentsUsed"), m && W.searchParams.set("fields", m), Number.isFinite(f) && f > -1 && W.searchParams.set("offset", String(Math.floor(f))), typeof F == "boolean" && W.searchParams.set("includeUnpublished", String(F)), C && kr(C) && W.searchParams.set("cacheSeconds", String(C)),
|
|
5508
|
+
if (W.searchParams.set("apiKey", i), W.searchParams.set("limit", String(t)), W.searchParams.set("noTraverse", String(se)), W.searchParams.set("includeRefs", String(!0)), u && W.searchParams.set("locale", u), a && W.searchParams.set("enrich", String(a)), W.searchParams.set("omit", v || "meta.componentsUsed"), m && W.searchParams.set("fields", m), Number.isFinite(f) && f > -1 && W.searchParams.set("offset", String(Math.floor(f))), typeof F == "boolean" && W.searchParams.set("includeUnpublished", String(F)), C && kr(C) && W.searchParams.set("cacheSeconds", String(C)), j && kr(j) && W.searchParams.set("staleCacheSeconds", String(j)), E) {
|
|
5508
5509
|
const ae = Tt({
|
|
5509
5510
|
sort: E
|
|
5510
5511
|
});
|
|
@@ -5512,8 +5513,8 @@ const ja = "v3", br = "builder.", Pa = "options.", Oa = (e) => {
|
|
|
5512
5513
|
W.searchParams.set(Ee, JSON.stringify(ae[Ee]));
|
|
5513
5514
|
}
|
|
5514
5515
|
const A = {
|
|
5515
|
-
...
|
|
5516
|
-
...
|
|
5516
|
+
...Ba(),
|
|
5517
|
+
...Ar(e.options || {})
|
|
5517
5518
|
}, Ue = Tt(A);
|
|
5518
5519
|
for (const ae in Ue)
|
|
5519
5520
|
W.searchParams.set(ae, String(Ue[ae]));
|
|
@@ -5525,25 +5526,25 @@ const ja = "v3", br = "builder.", Pa = "options.", Oa = (e) => {
|
|
|
5525
5526
|
W.searchParams.set(Ee, JSON.stringify(ae[Ee]));
|
|
5526
5527
|
}
|
|
5527
5528
|
return W;
|
|
5528
|
-
},
|
|
5529
|
+
}, Ua = (e) => "results" in e;
|
|
5529
5530
|
async function On(e) {
|
|
5530
|
-
const t = await
|
|
5531
|
+
const t = await Fa({
|
|
5531
5532
|
...e,
|
|
5532
5533
|
limit: 1
|
|
5533
5534
|
});
|
|
5534
5535
|
return t && t[0] || null;
|
|
5535
5536
|
}
|
|
5536
|
-
const
|
|
5537
|
-
const t =
|
|
5538
|
-
return await (await
|
|
5539
|
-
},
|
|
5537
|
+
const Ma = async (e) => {
|
|
5538
|
+
const t = jn(e);
|
|
5539
|
+
return await (await eo(t.href)).json();
|
|
5540
|
+
}, Va = async (e, t, n = jn(e)) => {
|
|
5540
5541
|
const r = pt(e.canTrack);
|
|
5541
5542
|
if (n.search.includes("preview="), !r || !(X() || de === "reactNative"))
|
|
5542
5543
|
return t.results;
|
|
5543
5544
|
try {
|
|
5544
5545
|
const o = [];
|
|
5545
5546
|
for (const i of t.results)
|
|
5546
|
-
o.push(await
|
|
5547
|
+
o.push(await ls({
|
|
5547
5548
|
item: i,
|
|
5548
5549
|
canTrack: r
|
|
5549
5550
|
}));
|
|
@@ -5553,10 +5554,10 @@ const Ua = async (e) => {
|
|
|
5553
5554
|
}
|
|
5554
5555
|
return t.results;
|
|
5555
5556
|
};
|
|
5556
|
-
async function
|
|
5557
|
+
async function Fa(e) {
|
|
5557
5558
|
try {
|
|
5558
|
-
const t =
|
|
5559
|
-
return
|
|
5559
|
+
const t = jn(e), n = await Ma(e);
|
|
5560
|
+
return Ua(n) ? Va(e, n) : (Z.error("Error fetching data. ", {
|
|
5560
5561
|
url: t,
|
|
5561
5562
|
content: n,
|
|
5562
5563
|
options: e
|
|
@@ -5565,91 +5566,94 @@ async function Va(e) {
|
|
|
5565
5566
|
return Z.error("Error fetching data. ", t), null;
|
|
5566
5567
|
}
|
|
5567
5568
|
}
|
|
5568
|
-
function
|
|
5569
|
-
|
|
5569
|
+
function Wa(e) {
|
|
5570
|
+
if (!X())
|
|
5571
|
+
return !1;
|
|
5572
|
+
const t = $r(e || window.location.search);
|
|
5573
|
+
return ie(t) ? !1 : t.indexOf("builder.preview=") !== -1;
|
|
5570
5574
|
}
|
|
5571
|
-
function
|
|
5575
|
+
function Da() {
|
|
5572
5576
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
5573
5577
|
const t = Math.random() * 16 | 0;
|
|
5574
5578
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
5575
5579
|
});
|
|
5576
5580
|
}
|
|
5577
|
-
function
|
|
5578
|
-
return
|
|
5581
|
+
function no() {
|
|
5582
|
+
return Da().replace(/-/g, "");
|
|
5579
5583
|
}
|
|
5580
|
-
const
|
|
5584
|
+
const ro = "builderSessionId", La = async ({
|
|
5581
5585
|
canTrack: e
|
|
5582
5586
|
}) => {
|
|
5583
5587
|
if (!e)
|
|
5584
5588
|
return;
|
|
5585
|
-
const t = await
|
|
5586
|
-
name:
|
|
5589
|
+
const t = await _r({
|
|
5590
|
+
name: ro,
|
|
5587
5591
|
canTrack: e
|
|
5588
5592
|
});
|
|
5589
5593
|
if (Ae(t))
|
|
5590
5594
|
return t;
|
|
5591
5595
|
{
|
|
5592
|
-
const n =
|
|
5593
|
-
return
|
|
5596
|
+
const n = Ha();
|
|
5597
|
+
return Ka({
|
|
5594
5598
|
id: n,
|
|
5595
5599
|
canTrack: e
|
|
5596
5600
|
}), n;
|
|
5597
5601
|
}
|
|
5598
|
-
},
|
|
5602
|
+
}, Ha = () => no(), Ka = ({
|
|
5599
5603
|
id: e,
|
|
5600
5604
|
canTrack: t
|
|
5601
|
-
}) =>
|
|
5602
|
-
name:
|
|
5605
|
+
}) => zr({
|
|
5606
|
+
name: ro,
|
|
5603
5607
|
value: e,
|
|
5604
5608
|
canTrack: t
|
|
5605
|
-
}),
|
|
5609
|
+
}), oo = () => X() && typeof localStorage < "u" ? localStorage : void 0, _a = ({
|
|
5606
5610
|
key: e,
|
|
5607
5611
|
canTrack: t
|
|
5608
5612
|
}) => {
|
|
5609
5613
|
var n;
|
|
5610
5614
|
try {
|
|
5611
|
-
return t ? (n =
|
|
5615
|
+
return t ? (n = oo()) == null ? void 0 : n.getItem(e) : void 0;
|
|
5612
5616
|
} catch (r) {
|
|
5613
5617
|
console.debug("[LocalStorage] GET error: ", r);
|
|
5614
5618
|
return;
|
|
5615
5619
|
}
|
|
5616
|
-
},
|
|
5620
|
+
}, za = ({
|
|
5617
5621
|
key: e,
|
|
5618
5622
|
canTrack: t,
|
|
5619
5623
|
value: n
|
|
5620
5624
|
}) => {
|
|
5621
5625
|
var r;
|
|
5622
5626
|
try {
|
|
5623
|
-
t && ((r =
|
|
5627
|
+
t && ((r = oo()) == null || r.setItem(e, n));
|
|
5624
5628
|
} catch (o) {
|
|
5625
5629
|
console.debug("[LocalStorage] SET error: ", o);
|
|
5626
5630
|
}
|
|
5627
|
-
},
|
|
5631
|
+
}, io = "builderVisitorId", Ga = ({
|
|
5628
5632
|
canTrack: e
|
|
5629
5633
|
}) => {
|
|
5630
5634
|
if (!e)
|
|
5631
5635
|
return;
|
|
5632
|
-
const t =
|
|
5633
|
-
key:
|
|
5636
|
+
const t = _a({
|
|
5637
|
+
key: io,
|
|
5634
5638
|
canTrack: e
|
|
5635
5639
|
});
|
|
5636
5640
|
if (Ae(t))
|
|
5637
5641
|
return t;
|
|
5638
5642
|
{
|
|
5639
|
-
const n =
|
|
5640
|
-
return
|
|
5643
|
+
const n = qa();
|
|
5644
|
+
return Ja({
|
|
5641
5645
|
id: n,
|
|
5642
5646
|
canTrack: e
|
|
5643
5647
|
}), n;
|
|
5644
5648
|
}
|
|
5645
|
-
},
|
|
5649
|
+
}, qa = () => no(), Ja = ({
|
|
5646
5650
|
id: e,
|
|
5647
5651
|
canTrack: t
|
|
5648
|
-
}) =>
|
|
5649
|
-
key:
|
|
5652
|
+
}) => za({
|
|
5653
|
+
key: io,
|
|
5650
5654
|
value: e,
|
|
5651
5655
|
canTrack: t
|
|
5652
|
-
}),
|
|
5656
|
+
}), Xa = async ({
|
|
5653
5657
|
canTrack: e
|
|
5654
5658
|
}) => {
|
|
5655
5659
|
if (!e)
|
|
@@ -5657,16 +5661,16 @@ const no = "builderSessionId", Da = async ({
|
|
|
5657
5661
|
visitorId: void 0,
|
|
5658
5662
|
sessionId: void 0
|
|
5659
5663
|
};
|
|
5660
|
-
const t = await
|
|
5664
|
+
const t = await La({
|
|
5661
5665
|
canTrack: e
|
|
5662
|
-
}), n =
|
|
5666
|
+
}), n = Ga({
|
|
5663
5667
|
canTrack: e
|
|
5664
5668
|
});
|
|
5665
5669
|
return {
|
|
5666
5670
|
sessionId: t,
|
|
5667
5671
|
visitorId: n
|
|
5668
5672
|
};
|
|
5669
|
-
},
|
|
5673
|
+
}, Ya = async ({
|
|
5670
5674
|
type: e,
|
|
5671
5675
|
canTrack: t,
|
|
5672
5676
|
apiKey: n,
|
|
@@ -5680,10 +5684,10 @@ const no = "builderSessionId", Da = async ({
|
|
|
5680
5684
|
url: location.href,
|
|
5681
5685
|
...r
|
|
5682
5686
|
},
|
|
5683
|
-
...await
|
|
5687
|
+
...await Xa({
|
|
5684
5688
|
canTrack: t
|
|
5685
5689
|
}),
|
|
5686
|
-
userAttributes:
|
|
5690
|
+
userAttributes: Pr(),
|
|
5687
5691
|
ownerId: n
|
|
5688
5692
|
}
|
|
5689
5693
|
});
|
|
@@ -5696,7 +5700,7 @@ async function pn(e) {
|
|
|
5696
5700
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
5697
5701
|
method: "POST",
|
|
5698
5702
|
body: JSON.stringify({
|
|
5699
|
-
events: [await
|
|
5703
|
+
events: [await Ya(e)]
|
|
5700
5704
|
}),
|
|
5701
5705
|
headers: {
|
|
5702
5706
|
"content-type": "application/json"
|
|
@@ -5706,14 +5710,14 @@ async function pn(e) {
|
|
|
5706
5710
|
console.error("Failed to track: ", t);
|
|
5707
5711
|
});
|
|
5708
5712
|
}
|
|
5709
|
-
const
|
|
5713
|
+
const Ol = (e) => pn({
|
|
5710
5714
|
...e,
|
|
5711
5715
|
canTrack: !0
|
|
5712
5716
|
});
|
|
5713
5717
|
function Sr(e) {
|
|
5714
5718
|
return Math.round(e * 1e3) / 1e3;
|
|
5715
5719
|
}
|
|
5716
|
-
const
|
|
5720
|
+
const Za = (e, t, n = !0) => {
|
|
5717
5721
|
if (!(e instanceof HTMLElement))
|
|
5718
5722
|
return null;
|
|
5719
5723
|
let r = n ? e : e.parentElement;
|
|
@@ -5724,7 +5728,7 @@ const Ya = (e, t, n = !0) => {
|
|
|
5724
5728
|
return r;
|
|
5725
5729
|
} while (r = r.parentElement);
|
|
5726
5730
|
return null;
|
|
5727
|
-
},
|
|
5731
|
+
}, Qa = (e) => Za(e, (t) => {
|
|
5728
5732
|
const n = t.getAttribute("builder-id") || t.id;
|
|
5729
5733
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
5730
5734
|
}), Cr = ({
|
|
@@ -5736,8 +5740,8 @@ const Ya = (e, t, n = !0) => {
|
|
|
5736
5740
|
x: i,
|
|
5737
5741
|
y: a
|
|
5738
5742
|
};
|
|
5739
|
-
},
|
|
5740
|
-
const t = e.target, n = t &&
|
|
5743
|
+
}, el = (e) => {
|
|
5744
|
+
const t = e.target, n = t && Qa(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
5741
5745
|
return {
|
|
5742
5746
|
targetBuilderElement: r || void 0,
|
|
5743
5747
|
metadata: {
|
|
@@ -5752,13 +5756,13 @@ const Ya = (e, t, n = !0) => {
|
|
|
5752
5756
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
5753
5757
|
}
|
|
5754
5758
|
};
|
|
5755
|
-
},
|
|
5756
|
-
function
|
|
5759
|
+
}, tl = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
5760
|
+
function so(e, t) {
|
|
5757
5761
|
const n = new URL(t.origin), r = n.hostname;
|
|
5758
|
-
return (e ||
|
|
5762
|
+
return (e || tl).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
5759
5763
|
}
|
|
5760
|
-
const
|
|
5761
|
-
function
|
|
5764
|
+
const nl = "1.0.8", wr = {};
|
|
5765
|
+
function rl(e, t) {
|
|
5762
5766
|
let n = wr[e];
|
|
5763
5767
|
if (n || (n = wr[e] = []), n.push(t), X()) {
|
|
5764
5768
|
const r = {
|
|
@@ -5775,8 +5779,8 @@ function nl(e, t) {
|
|
|
5775
5779
|
}
|
|
5776
5780
|
}
|
|
5777
5781
|
}
|
|
5778
|
-
const
|
|
5779
|
-
|
|
5782
|
+
const ol = () => {
|
|
5783
|
+
rl("insertMenu", {
|
|
5780
5784
|
name: "_default",
|
|
5781
5785
|
default: !0,
|
|
5782
5786
|
items: [{
|
|
@@ -5799,13 +5803,13 @@ const rl = () => {
|
|
|
5799
5803
|
});
|
|
5800
5804
|
};
|
|
5801
5805
|
let Er = !1;
|
|
5802
|
-
const
|
|
5806
|
+
const ao = (e = {}) => {
|
|
5803
5807
|
var t, n;
|
|
5804
5808
|
Er || (Er = !0, X() && ((t = window.parent) == null || t.postMessage({
|
|
5805
5809
|
type: "builder.sdkInfo",
|
|
5806
5810
|
data: {
|
|
5807
5811
|
target: de,
|
|
5808
|
-
version:
|
|
5812
|
+
version: nl,
|
|
5809
5813
|
supportsPatchUpdates: !1,
|
|
5810
5814
|
// Supports builder-model="..." attribute which is needed to
|
|
5811
5815
|
// scope our '+ add block' button styling
|
|
@@ -5819,7 +5823,7 @@ const so = (e = {}) => {
|
|
|
5819
5823
|
}
|
|
5820
5824
|
}, "*"), window.addEventListener("message", (r) => {
|
|
5821
5825
|
var i, a;
|
|
5822
|
-
if (!
|
|
5826
|
+
if (!so(e.trustedHosts, r))
|
|
5823
5827
|
return;
|
|
5824
5828
|
const {
|
|
5825
5829
|
data: o
|
|
@@ -5831,8 +5835,8 @@ const so = (e = {}) => {
|
|
|
5831
5835
|
let f, C = null;
|
|
5832
5836
|
try {
|
|
5833
5837
|
f = v.apply(null, d);
|
|
5834
|
-
} catch (
|
|
5835
|
-
C =
|
|
5838
|
+
} catch (j) {
|
|
5839
|
+
C = j;
|
|
5836
5840
|
}
|
|
5837
5841
|
C ? (i = window.parent) == null || i.postMessage({
|
|
5838
5842
|
type: "builder.evaluateError",
|
|
@@ -5840,13 +5844,13 @@ const so = (e = {}) => {
|
|
|
5840
5844
|
id: m,
|
|
5841
5845
|
error: C.message
|
|
5842
5846
|
}
|
|
5843
|
-
}, "*") : f && typeof f.then == "function" ? f.then((
|
|
5847
|
+
}, "*") : f && typeof f.then == "function" ? f.then((j) => {
|
|
5844
5848
|
var E;
|
|
5845
5849
|
(E = window.parent) == null || E.postMessage({
|
|
5846
5850
|
type: "builder.evaluateResult",
|
|
5847
5851
|
data: {
|
|
5848
5852
|
id: m,
|
|
5849
|
-
result:
|
|
5853
|
+
result: j
|
|
5850
5854
|
}
|
|
5851
5855
|
}, "*");
|
|
5852
5856
|
}).catch(console.error) : (a = window.parent) == null || a.postMessage({
|
|
@@ -5860,12 +5864,12 @@ const so = (e = {}) => {
|
|
|
5860
5864
|
}
|
|
5861
5865
|
}
|
|
5862
5866
|
})));
|
|
5863
|
-
},
|
|
5867
|
+
}, lo = ({
|
|
5864
5868
|
model: e,
|
|
5865
5869
|
trustedHosts: t,
|
|
5866
5870
|
callbacks: n
|
|
5867
5871
|
}) => (r) => {
|
|
5868
|
-
if (!
|
|
5872
|
+
if (!so(t, r))
|
|
5869
5873
|
return;
|
|
5870
5874
|
const {
|
|
5871
5875
|
data: o
|
|
@@ -5886,12 +5890,12 @@ const so = (e = {}) => {
|
|
|
5886
5890
|
break;
|
|
5887
5891
|
}
|
|
5888
5892
|
}
|
|
5889
|
-
},
|
|
5893
|
+
}, Nl = (e, t, n) => {
|
|
5890
5894
|
if (!X)
|
|
5891
5895
|
return Z.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
5892
5896
|
};
|
|
5893
|
-
|
|
5894
|
-
const r =
|
|
5897
|
+
ao();
|
|
5898
|
+
const r = lo({
|
|
5895
5899
|
callbacks: {
|
|
5896
5900
|
contentUpdate: t,
|
|
5897
5901
|
animation: () => {
|
|
@@ -5905,7 +5909,7 @@ const so = (e = {}) => {
|
|
|
5905
5909
|
return window.addEventListener("message", r), () => {
|
|
5906
5910
|
window.removeEventListener("message", r);
|
|
5907
5911
|
};
|
|
5908
|
-
},
|
|
5912
|
+
}, il = N({
|
|
5909
5913
|
name: "enable-editor",
|
|
5910
5914
|
props: [
|
|
5911
5915
|
"builderContextSignal",
|
|
@@ -5956,7 +5960,7 @@ const so = (e = {}) => {
|
|
|
5956
5960
|
variationId: i !== a ? i : void 0
|
|
5957
5961
|
});
|
|
5958
5962
|
}
|
|
5959
|
-
|
|
5963
|
+
Wa() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5960
5964
|
new CustomEvent("initpreviewingbldr")
|
|
5961
5965
|
);
|
|
5962
5966
|
}
|
|
@@ -6080,7 +6084,7 @@ const so = (e = {}) => {
|
|
|
6080
6084
|
this.builderContextSignal.content = t;
|
|
6081
6085
|
},
|
|
6082
6086
|
processMessage(e) {
|
|
6083
|
-
return
|
|
6087
|
+
return lo({
|
|
6084
6088
|
model: this.model,
|
|
6085
6089
|
trustedHosts: this.trustedHosts,
|
|
6086
6090
|
callbacks: {
|
|
@@ -6094,7 +6098,7 @@ const so = (e = {}) => {
|
|
|
6094
6098
|
}), this.forceReRenderCount = this.forceReRenderCount + 1);
|
|
6095
6099
|
},
|
|
6096
6100
|
animation: (t) => {
|
|
6097
|
-
|
|
6101
|
+
Lr(t);
|
|
6098
6102
|
},
|
|
6099
6103
|
contentUpdate: (t) => {
|
|
6100
6104
|
this.mergeNewContent(t), this.forceReRenderCount = this.forceReRenderCount + 1;
|
|
@@ -6123,7 +6127,7 @@ const so = (e = {}) => {
|
|
|
6123
6127
|
contentId: o,
|
|
6124
6128
|
apiKey: this.apiKey,
|
|
6125
6129
|
variationId: r !== o ? r : void 0,
|
|
6126
|
-
...
|
|
6130
|
+
...el(e),
|
|
6127
6131
|
unique: !this.clicked
|
|
6128
6132
|
});
|
|
6129
6133
|
}
|
|
@@ -6142,7 +6146,7 @@ const so = (e = {}) => {
|
|
|
6142
6146
|
);
|
|
6143
6147
|
},
|
|
6144
6148
|
handleRequest({ url: e, key: t }) {
|
|
6145
|
-
|
|
6149
|
+
eo(e).then((n) => n.json()).then((n) => {
|
|
6146
6150
|
var o, i;
|
|
6147
6151
|
const r = {
|
|
6148
6152
|
...this.builderContextSignal.rootState,
|
|
@@ -6182,7 +6186,7 @@ const so = (e = {}) => {
|
|
|
6182
6186
|
);
|
|
6183
6187
|
},
|
|
6184
6188
|
elementRef_onIniteditingbldr(e) {
|
|
6185
|
-
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage),
|
|
6189
|
+
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), ol(), ao({
|
|
6186
6190
|
...this.locale ? {
|
|
6187
6191
|
locale: this.locale
|
|
6188
6192
|
} : {},
|
|
@@ -6196,7 +6200,7 @@ const so = (e = {}) => {
|
|
|
6196
6200
|
this.builderContextSignal.componentInfos
|
|
6197
6201
|
).forEach((t) => {
|
|
6198
6202
|
var r;
|
|
6199
|
-
const n =
|
|
6203
|
+
const n = Sa(t);
|
|
6200
6204
|
(r = window.parent) == null || r.postMessage(n, "*");
|
|
6201
6205
|
}), window.addEventListener(
|
|
6202
6206
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -6217,7 +6221,7 @@ const so = (e = {}) => {
|
|
|
6217
6221
|
}
|
|
6218
6222
|
}
|
|
6219
6223
|
});
|
|
6220
|
-
function
|
|
6224
|
+
function sl(e, t, n, r, o, i) {
|
|
6221
6225
|
var a, u, d;
|
|
6222
6226
|
return e.builderContextSignal.content ? (y(), B(st(e.ContentWrapper), J({
|
|
6223
6227
|
key: e.forceReRenderCount,
|
|
@@ -6241,7 +6245,7 @@ function il(e, t, n, r, o, i) {
|
|
|
6241
6245
|
_: 3
|
|
6242
6246
|
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : D("", !0);
|
|
6243
6247
|
}
|
|
6244
|
-
const
|
|
6248
|
+
const al = /* @__PURE__ */ U(il, [["render", sl]]), ll = (e) => {
|
|
6245
6249
|
var i;
|
|
6246
6250
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
6247
6251
|
let o = "";
|
|
@@ -6267,26 +6271,26 @@ font-weight: ${a};
|
|
|
6267
6271
|
`.trim());
|
|
6268
6272
|
}
|
|
6269
6273
|
return o;
|
|
6270
|
-
},
|
|
6274
|
+
}, ul = ({
|
|
6271
6275
|
customFonts: e
|
|
6272
6276
|
}) => {
|
|
6273
6277
|
var t;
|
|
6274
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
6275
|
-
},
|
|
6278
|
+
return ((t = e == null ? void 0 : e.map((n) => ll(n))) == null ? void 0 : t.join(" ")) || "";
|
|
6279
|
+
}, cl = ({
|
|
6276
6280
|
cssCode: e,
|
|
6277
6281
|
contentId: t
|
|
6278
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
6282
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", pl = N({
|
|
6279
6283
|
name: "content-styles",
|
|
6280
6284
|
components: { InlinedStyles: $n },
|
|
6281
6285
|
props: ["cssCode", "contentId", "customFonts"],
|
|
6282
6286
|
data() {
|
|
6283
6287
|
return {
|
|
6284
6288
|
injectedStyles: `
|
|
6285
|
-
${
|
|
6289
|
+
${cl({
|
|
6286
6290
|
cssCode: this.cssCode,
|
|
6287
6291
|
contentId: this.contentId
|
|
6288
6292
|
})}
|
|
6289
|
-
${
|
|
6293
|
+
${ul({
|
|
6290
6294
|
customFonts: this.customFonts
|
|
6291
6295
|
})}
|
|
6292
6296
|
|
|
@@ -6310,11 +6314,11 @@ ${ll({
|
|
|
6310
6314
|
};
|
|
6311
6315
|
}
|
|
6312
6316
|
});
|
|
6313
|
-
function
|
|
6317
|
+
function dl(e, t, n, r, o, i) {
|
|
6314
6318
|
const a = V("inlined-styles");
|
|
6315
6319
|
return y(), B(a, { styles: e.injectedStyles }, null, 8, ["styles"]);
|
|
6316
6320
|
}
|
|
6317
|
-
const
|
|
6321
|
+
const hl = /* @__PURE__ */ U(pl, [["render", dl]]), fl = ({
|
|
6318
6322
|
content: e,
|
|
6319
6323
|
data: t,
|
|
6320
6324
|
locale: n
|
|
@@ -6331,7 +6335,7 @@ const dl = /* @__PURE__ */ U(cl, [["render", pl]]), hl = ({
|
|
|
6331
6335
|
locale: n
|
|
6332
6336
|
} : {}
|
|
6333
6337
|
};
|
|
6334
|
-
},
|
|
6338
|
+
}, ml = ({
|
|
6335
6339
|
content: e,
|
|
6336
6340
|
data: t
|
|
6337
6341
|
}) => e ? {
|
|
@@ -6341,13 +6345,13 @@ const dl = /* @__PURE__ */ U(cl, [["render", pl]]), hl = ({
|
|
|
6341
6345
|
...t
|
|
6342
6346
|
},
|
|
6343
6347
|
meta: e == null ? void 0 : e.meta
|
|
6344
|
-
} : void 0,
|
|
6348
|
+
} : void 0, gl = xo, yl = N({
|
|
6345
6349
|
name: "content-component",
|
|
6346
6350
|
components: {
|
|
6347
|
-
EnableEditor:
|
|
6348
|
-
InlinedScript:
|
|
6349
|
-
ContentStyles:
|
|
6350
|
-
Blocks:
|
|
6351
|
+
EnableEditor: al,
|
|
6352
|
+
InlinedScript: Qr,
|
|
6353
|
+
ContentStyles: hl,
|
|
6354
|
+
Blocks: Pt
|
|
6351
6355
|
},
|
|
6352
6356
|
props: [
|
|
6353
6357
|
"content",
|
|
@@ -6372,7 +6376,7 @@ const dl = /* @__PURE__ */ U(cl, [["render", pl]]), hl = ({
|
|
|
6372
6376
|
data() {
|
|
6373
6377
|
var e, t;
|
|
6374
6378
|
return {
|
|
6375
|
-
scriptStr:
|
|
6379
|
+
scriptStr: $a({
|
|
6376
6380
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
6377
6381
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
6378
6382
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -6385,19 +6389,19 @@ const dl = /* @__PURE__ */ U(cl, [["render", pl]]), hl = ({
|
|
|
6385
6389
|
(n, { component: r, ...o }) => ({
|
|
6386
6390
|
...n,
|
|
6387
6391
|
[o.name]: {
|
|
6388
|
-
component:
|
|
6392
|
+
component: gl(r),
|
|
6389
6393
|
...cn(o)
|
|
6390
6394
|
}
|
|
6391
6395
|
}),
|
|
6392
6396
|
{}
|
|
6393
6397
|
),
|
|
6394
6398
|
builderContextSignal: {
|
|
6395
|
-
content:
|
|
6399
|
+
content: ml({
|
|
6396
6400
|
content: this.content,
|
|
6397
6401
|
data: this.data
|
|
6398
6402
|
}),
|
|
6399
6403
|
localState: void 0,
|
|
6400
|
-
rootState:
|
|
6404
|
+
rootState: fl({
|
|
6401
6405
|
content: this.content,
|
|
6402
6406
|
data: this.data,
|
|
6403
6407
|
locale: this.locale
|
|
@@ -6437,7 +6441,7 @@ const dl = /* @__PURE__ */ U(cl, [["render", pl]]), hl = ({
|
|
|
6437
6441
|
}
|
|
6438
6442
|
}
|
|
6439
6443
|
});
|
|
6440
|
-
function
|
|
6444
|
+
function vl(e, t, n, r, o, i) {
|
|
6441
6445
|
const a = V("inlined-script"), u = V("content-styles"), d = V("blocks"), m = V("enable-editor");
|
|
6442
6446
|
return y(), B(m, J({
|
|
6443
6447
|
content: e.content,
|
|
@@ -6456,7 +6460,7 @@ function yl(e, t, n, r, o, i) {
|
|
|
6456
6460
|
trustedHosts: e.trustedHosts
|
|
6457
6461
|
}, {}), {
|
|
6458
6462
|
default: Ce(() => {
|
|
6459
|
-
var v, f, C,
|
|
6463
|
+
var v, f, C, j, E, F, se;
|
|
6460
6464
|
return [
|
|
6461
6465
|
e.isSsrAbTest ? (y(), B(a, {
|
|
6462
6466
|
key: 0,
|
|
@@ -6466,7 +6470,7 @@ function yl(e, t, n, r, o, i) {
|
|
|
6466
6470
|
key: 1,
|
|
6467
6471
|
contentId: (v = e.builderContextSignal.content) == null ? void 0 : v.id,
|
|
6468
6472
|
cssCode: (C = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : C.cssCode,
|
|
6469
|
-
customFonts: (E = (
|
|
6473
|
+
customFonts: (E = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : E.customFonts
|
|
6470
6474
|
}, null, 8, ["contentId", "cssCode", "customFonts"])) : D("", !0),
|
|
6471
6475
|
ke(d, {
|
|
6472
6476
|
blocks: (se = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : se.blocks,
|
|
@@ -6479,12 +6483,12 @@ function yl(e, t, n, r, o, i) {
|
|
|
6479
6483
|
_: 1
|
|
6480
6484
|
}, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "linkComponent", "trustedHosts"]);
|
|
6481
6485
|
}
|
|
6482
|
-
const
|
|
6486
|
+
const bl = /* @__PURE__ */ U(yl, [["render", vl]]), kl = N({
|
|
6483
6487
|
name: "content-variants",
|
|
6484
6488
|
components: {
|
|
6485
|
-
InlinedScript:
|
|
6489
|
+
InlinedScript: Qr,
|
|
6486
6490
|
InlinedStyles: $n,
|
|
6487
|
-
ContentComponent:
|
|
6491
|
+
ContentComponent: bl
|
|
6488
6492
|
},
|
|
6489
6493
|
props: [
|
|
6490
6494
|
"canTrack",
|
|
@@ -6507,12 +6511,12 @@ const vl = /* @__PURE__ */ U(gl, [["render", yl]]), bl = N({
|
|
|
6507
6511
|
],
|
|
6508
6512
|
data() {
|
|
6509
6513
|
return {
|
|
6510
|
-
shouldRenderVariants:
|
|
6514
|
+
shouldRenderVariants: Ta({
|
|
6511
6515
|
canTrack: pt(this.canTrack),
|
|
6512
6516
|
content: this.content
|
|
6513
6517
|
}),
|
|
6514
6518
|
TARGET: de,
|
|
6515
|
-
getScriptString:
|
|
6519
|
+
getScriptString: Ra,
|
|
6516
6520
|
getVariants: It
|
|
6517
6521
|
};
|
|
6518
6522
|
},
|
|
@@ -6522,7 +6526,7 @@ const vl = /* @__PURE__ */ U(gl, [["render", yl]]), bl = N({
|
|
|
6522
6526
|
computed: {
|
|
6523
6527
|
updateCookieAndStylesScriptStr() {
|
|
6524
6528
|
var e;
|
|
6525
|
-
return
|
|
6529
|
+
return Aa(
|
|
6526
6530
|
It(this.content).map((t) => ({
|
|
6527
6531
|
id: t.testVariationId,
|
|
6528
6532
|
testRatio: t.testRatio
|
|
@@ -6538,14 +6542,14 @@ const vl = /* @__PURE__ */ U(gl, [["render", yl]]), bl = N({
|
|
|
6538
6542
|
return this.shouldRenderVariants ? {
|
|
6539
6543
|
...this.content,
|
|
6540
6544
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
6541
|
-
} :
|
|
6545
|
+
} : as({
|
|
6542
6546
|
item: this.content,
|
|
6543
6547
|
canTrack: pt(this.canTrack)
|
|
6544
6548
|
});
|
|
6545
6549
|
}
|
|
6546
6550
|
}
|
|
6547
6551
|
});
|
|
6548
|
-
function
|
|
6552
|
+
function Sl(e, t, n, r, o, i) {
|
|
6549
6553
|
var m;
|
|
6550
6554
|
const a = V("inlined-script"), u = V("inlined-styles"), d = V("content-component");
|
|
6551
6555
|
return y(), $(re, null, [
|
|
@@ -6605,7 +6609,7 @@ function kl(e, t, n, r, o, i) {
|
|
|
6605
6609
|
}), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
6606
6610
|
], 64);
|
|
6607
6611
|
}
|
|
6608
|
-
const
|
|
6612
|
+
const Cl = /* @__PURE__ */ U(kl, [["render", Sl]]), wl = async ({
|
|
6609
6613
|
builderContextValue: e,
|
|
6610
6614
|
symbol: t
|
|
6611
6615
|
}) => {
|
|
@@ -6623,9 +6627,9 @@ const Sl = /* @__PURE__ */ U(bl, [["render", kl]]), Cl = async ({
|
|
|
6623
6627
|
}).catch((n) => {
|
|
6624
6628
|
Z.error("Could not fetch symbol content: ", n);
|
|
6625
6629
|
});
|
|
6626
|
-
},
|
|
6630
|
+
}, El = N({
|
|
6627
6631
|
name: "builder-symbol",
|
|
6628
|
-
components: { ContentVariants:
|
|
6632
|
+
components: { ContentVariants: Cl },
|
|
6629
6633
|
props: [
|
|
6630
6634
|
"attributes",
|
|
6631
6635
|
"symbol",
|
|
@@ -6668,7 +6672,7 @@ const Sl = /* @__PURE__ */ U(bl, [["render", kl]]), Cl = async ({
|
|
|
6668
6672
|
},
|
|
6669
6673
|
methods: {
|
|
6670
6674
|
setContent() {
|
|
6671
|
-
this.contentToUse ||
|
|
6675
|
+
this.contentToUse || wl({
|
|
6672
6676
|
symbol: this.symbol,
|
|
6673
6677
|
builderContextValue: this.builderContext
|
|
6674
6678
|
}).then((e) => {
|
|
@@ -6677,7 +6681,7 @@ const Sl = /* @__PURE__ */ U(bl, [["render", kl]]), Cl = async ({
|
|
|
6677
6681
|
}
|
|
6678
6682
|
}
|
|
6679
6683
|
});
|
|
6680
|
-
function
|
|
6684
|
+
function Il(e, t, n, r, o, i) {
|
|
6681
6685
|
var u, d, m, v, f;
|
|
6682
6686
|
const a = V("content-variants");
|
|
6683
6687
|
return y(), $("div", J({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
@@ -6703,8 +6707,8 @@ function El(e, t, n, r, o, i) {
|
|
|
6703
6707
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent"])
|
|
6704
6708
|
], 16);
|
|
6705
6709
|
}
|
|
6706
|
-
const
|
|
6707
|
-
function
|
|
6710
|
+
const Tl = /* @__PURE__ */ U(El, [["render", Il]]), Ir = {};
|
|
6711
|
+
function Bl(e) {
|
|
6708
6712
|
if (X()) {
|
|
6709
6713
|
Object.assign(Ir, e);
|
|
6710
6714
|
const t = {
|
|
@@ -6714,7 +6718,7 @@ function Nl(e) {
|
|
|
6714
6718
|
parent.postMessage(t, "*");
|
|
6715
6719
|
}
|
|
6716
6720
|
}
|
|
6717
|
-
const
|
|
6721
|
+
const Ul = async (e) => {
|
|
6718
6722
|
var r, o, i;
|
|
6719
6723
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
6720
6724
|
...e,
|
|
@@ -6726,7 +6730,7 @@ const Bl = async (e) => {
|
|
|
6726
6730
|
urlPath: t
|
|
6727
6731
|
} : {}
|
|
6728
6732
|
},
|
|
6729
|
-
options:
|
|
6733
|
+
options: to(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
6730
6734
|
};
|
|
6731
6735
|
return {
|
|
6732
6736
|
apiKey: n.apiKey,
|
|
@@ -6735,42 +6739,42 @@ const Bl = async (e) => {
|
|
|
6735
6739
|
};
|
|
6736
6740
|
};
|
|
6737
6741
|
export {
|
|
6738
|
-
|
|
6742
|
+
Fa as A,
|
|
6739
6743
|
An as B,
|
|
6740
|
-
|
|
6744
|
+
Mi as C,
|
|
6741
6745
|
On as D,
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6746
|
+
Rl as E,
|
|
6747
|
+
Wi as F,
|
|
6748
|
+
Pl as G,
|
|
6749
|
+
qi as I,
|
|
6750
|
+
Yi as S,
|
|
6747
6751
|
de as T,
|
|
6748
|
-
|
|
6752
|
+
ba as V,
|
|
6749
6753
|
$n as _,
|
|
6750
|
-
|
|
6751
|
-
|
|
6754
|
+
Ni as a,
|
|
6755
|
+
Al as b,
|
|
6752
6756
|
Ae as c,
|
|
6753
6757
|
jl as d,
|
|
6754
6758
|
U as e,
|
|
6755
6759
|
xt as f,
|
|
6756
|
-
|
|
6757
|
-
|
|
6760
|
+
Fr as g,
|
|
6761
|
+
$l as h,
|
|
6758
6762
|
hn as i,
|
|
6759
6763
|
sn as j,
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6764
|
+
No as k,
|
|
6765
|
+
Tl as l,
|
|
6766
|
+
ws as m,
|
|
6767
|
+
Pt as n,
|
|
6768
|
+
Cl as o,
|
|
6765
6769
|
ie as p,
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6770
|
+
Wa as q,
|
|
6771
|
+
Sa as r,
|
|
6772
|
+
rl as s,
|
|
6773
|
+
Bl as t,
|
|
6774
|
+
to as u,
|
|
6775
|
+
Ol as v,
|
|
6776
|
+
gl as w,
|
|
6777
|
+
Nl as x,
|
|
6778
|
+
Ul as y,
|
|
6779
|
+
Va as z
|
|
6776
6780
|
};
|