@builder.io/sdk-vue 1.0.21 → 1.0.22
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-VImRioSm.js +87 -0
- package/lib/browser/block-styles-WIrvoyUF.cjs +1 -0
- package/lib/browser/{block-wrapper-a1zxMruE.js → block-wrapper--ZG8uXgi.js} +3 -3
- package/lib/browser/{block-wrapper-mlbE709c.cjs → block-wrapper-PG29yePT.cjs} +1 -1
- package/lib/browser/{component-ref-5K3RMLKh.js → component-ref-AbXXG_wD.js} +2 -2
- package/lib/browser/{component-ref-mNbBuzhy.cjs → component-ref-Oh6emZ2D.cjs} +1 -1
- package/lib/browser/components/block/animator.d.ts +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/is-previewing.d.ts +1 -1
- package/lib/browser/{get-block-properties-PuGrG7pm.cjs → get-block-properties-iG0EdCc7.cjs} +1 -1
- package/lib/browser/{get-block-properties-4MopDiTP.js → get-block-properties-jSTzat9q.js} +6 -6
- package/lib/browser/{index-OSGu6alT.cjs → index-3lFzntkG.cjs} +19 -19
- package/lib/browser/{index-mwZzSIN7.js → index-_VfPZEOT.js} +401 -424
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.js +3 -3
- package/lib/browser/{repeated-block-VP4euR8a.cjs → repeated-block-GitdVuPz.cjs} +1 -1
- package/lib/browser/{repeated-block-hUFMTXXS.js → repeated-block-LywEnyR6.js} +2 -2
- package/lib/edge/block-styles-ZxWEJSxb.js +86 -0
- package/lib/edge/block-styles-eJqBAPHH.cjs +1 -0
- package/lib/{node/block-wrapper-bGeMckW5.cjs → edge/block-wrapper-2Crn7tbG.cjs} +1 -1
- package/lib/edge/{block-wrapper-xgShkhuq.js → block-wrapper-E58yJMa2.js} +3 -3
- package/lib/{node/component-ref-YhLendyR.cjs → edge/component-ref-4M72dsyI.cjs} +1 -1
- package/lib/{node/component-ref-PGVczQrW.js → edge/component-ref-lMVExvau.js} +2 -2
- package/lib/edge/components/block/animator.d.ts +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/is-previewing.d.ts +1 -1
- package/lib/{node/get-block-properties-kAmm-X1q.js → edge/get-block-properties-RLx998wH.js} +4 -4
- package/lib/edge/{get-block-properties-v6bf_R5d.cjs → get-block-properties-ozEWpZlZ.cjs} +1 -1
- package/lib/edge/{index-Ua4OW_gh.js → index-53gkK1JA.js} +641 -664
- package/lib/edge/{index-xnWjf2tW.cjs → index-nVP8G4zp.cjs} +26 -26
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +4 -4
- package/lib/edge/{repeated-block-qRyqdxjD.cjs → repeated-block-_7bmUv-Z.cjs} +1 -1
- package/lib/{node/repeated-block-tjhtQDPA.js → edge/repeated-block-kei-SmhT.js} +13 -13
- package/lib/node/block-styles-_OMTv9sJ.js +86 -0
- package/lib/node/block-styles-cJg0zG2x.cjs +1 -0
- package/lib/node/{block-wrapper--vej-Ae6.js → block-wrapper-WFhgV7rM.js} +3 -3
- package/lib/{edge/block-wrapper-4RaFHsBw.cjs → node/block-wrapper-olhoZ1Gm.cjs} +1 -1
- package/lib/{edge/component-ref-kGbDg8GR.js → node/component-ref-CnP6F8zd.js} +2 -2
- package/lib/{edge/component-ref-KD6yANwg.cjs → node/component-ref-Wy04EyRy.cjs} +1 -1
- package/lib/node/components/block/animator.d.ts +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/is-previewing.d.ts +1 -1
- package/lib/{edge/get-block-properties-yFfbPH85.js → node/get-block-properties-3AHBPypn.js} +4 -4
- package/lib/node/{get-block-properties-GTVEiEYp.cjs → get-block-properties-azp9C2XD.cjs} +1 -1
- package/lib/node/{index-mnDtU0q8.js → index-eF57HLR1.js} +36 -59
- package/lib/node/{index-XIqTnRyC.cjs → index-my4sBiPM.cjs} +5 -5
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +4 -4
- package/lib/node/{repeated-block-SWSMCPvd.cjs → repeated-block-AtgGXQbg.cjs} +1 -1
- package/lib/{edge/repeated-block-uiPuS74Z.js → node/repeated-block-uRrCR8KR.js} +13 -13
- package/package.json +1 -1
- package/lib/browser/block-styles-2lYNYVH3.js +0 -70
- package/lib/browser/block-styles-y6pFfJz3.cjs +0 -1
- package/lib/edge/block-styles-_eYB_Fxz.cjs +0 -1
- package/lib/edge/block-styles-nhMA9R4s.js +0 -69
- package/lib/node/block-styles-h0iWFk09.cjs +0 -1
- package/lib/node/block-styles-rz8jpORX.js +0 -69
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ao = Object.defineProperty;
|
|
2
2
|
var $o = (e, t, n) => t in e ? Ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var rn = (e, t, n) => ($o(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { defineComponent as N, openBlock as v, createElementBlock as $, Fragment as re, createBlock as B, resolveDynamicComponent as
|
|
4
|
+
import { defineComponent as N, openBlock as v, createElementBlock as $, Fragment as re, createBlock as B, resolveDynamicComponent as at, mergeProps as J, toHandlers as ce, withCtx as we, renderSlot as pe, resolveComponent as U, createTextVNode as Po, toDisplayString as $t, defineAsyncComponent as It, createVNode as Se, renderList as Be, createCommentVNode as D, h as Tr, createElementVNode as an, normalizeStyle as ln, normalizeClass as xr, markRaw as Oo } from "vue";
|
|
5
5
|
const jo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), No = (e) => typeof e == "string" && jo.has(e.toLowerCase());
|
|
6
6
|
function Pe(e = {}, t, n) {
|
|
7
7
|
const r = {};
|
|
@@ -26,13 +26,13 @@ const Bo = N({
|
|
|
26
26
|
return n;
|
|
27
27
|
};
|
|
28
28
|
function Vo(e, t, n, r, o, i) {
|
|
29
|
-
return e.isEmptyElement(e.TagName) ? (v(), B(
|
|
30
|
-
typeof e.TagName == "string" ? (v(), B(
|
|
29
|
+
return e.isEmptyElement(e.TagName) ? (v(), B(at(e.TagName), J({ key: 1 }, e.attributes, ce(e.actionAttributes)), null, 16)) : (v(), $(re, { key: 0 }, [
|
|
30
|
+
typeof e.TagName == "string" ? (v(), B(at(e.TagName), J({ key: 0 }, e.attributes, ce(e.actionAttributes)), {
|
|
31
31
|
default: we(() => [
|
|
32
32
|
pe(e.$slots, "default")
|
|
33
33
|
]),
|
|
34
34
|
_: 3
|
|
35
|
-
}, 16)) : (v(), B(
|
|
35
|
+
}, 16)) : (v(), B(at(e.TagName), J({ key: 1 }, e.attributes, ce(e.actionAttributes)), {
|
|
36
36
|
default: we(() => [
|
|
37
37
|
pe(e.$slots, "default")
|
|
38
38
|
]),
|
|
@@ -40,7 +40,7 @@ function Vo(e, t, n, r, o, i) {
|
|
|
40
40
|
}, 16))
|
|
41
41
|
], 64));
|
|
42
42
|
}
|
|
43
|
-
const mn = /* @__PURE__ */ V(Bo, [["render", Vo]]),
|
|
43
|
+
const mn = /* @__PURE__ */ V(Bo, [["render", Vo]]), Bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
44
44
|
__proto__: null,
|
|
45
45
|
default: mn
|
|
46
46
|
}, Symbol.toStringTag, { value: "Module" })), de = "vue", gn = () => {
|
|
@@ -108,7 +108,7 @@ const Fo = /* @__PURE__ */ V(Mo, [["render", Uo]]), Wo = Symbol(), un = {
|
|
|
108
108
|
BlocksWrapperProps: {}
|
|
109
109
|
},
|
|
110
110
|
key: Wo
|
|
111
|
-
}, Do = Symbol(),
|
|
111
|
+
}, Do = Symbol(), Rr = {
|
|
112
112
|
Components: { registeredComponents: {} },
|
|
113
113
|
key: Do
|
|
114
114
|
};
|
|
@@ -137,12 +137,13 @@ const Ho = (e) => {
|
|
|
137
137
|
return e.forEach((n, r) => {
|
|
138
138
|
t[r] = n;
|
|
139
139
|
}), t;
|
|
140
|
-
},
|
|
140
|
+
}, Ar = (e) => e instanceof URLSearchParams ? Ho(e) : e, $r = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
141
141
|
function Ko() {
|
|
142
142
|
return X() && window.self !== window.top;
|
|
143
143
|
}
|
|
144
144
|
function ie(e) {
|
|
145
|
-
return Ko() &&
|
|
145
|
+
return Ko() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
146
|
+
$r(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
146
147
|
}
|
|
147
148
|
const _o = () => {
|
|
148
149
|
if (X()) {
|
|
@@ -150,7 +151,7 @@ const _o = () => {
|
|
|
150
151
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
151
152
|
} else
|
|
152
153
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
153
|
-
}, zo = () => typeof navigator == "object" && navigator.userAgent || "",
|
|
154
|
+
}, zo = () => typeof navigator == "object" && navigator.userAgent || "", Pr = () => {
|
|
154
155
|
const e = zo(), t = {
|
|
155
156
|
Android() {
|
|
156
157
|
return e.match(/Android/i);
|
|
@@ -176,7 +177,7 @@ const _o = () => {
|
|
|
176
177
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
177
178
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
178
179
|
};
|
|
179
|
-
},
|
|
180
|
+
}, Or = ({
|
|
180
181
|
builder: e,
|
|
181
182
|
context: t,
|
|
182
183
|
event: n,
|
|
@@ -192,7 +193,7 @@ const _o = () => {
|
|
|
192
193
|
isEditing: ie(),
|
|
193
194
|
isBrowser: X(),
|
|
194
195
|
isServer: !X(),
|
|
195
|
-
getUserAttributes: () =>
|
|
196
|
+
getUserAttributes: () => Pr()
|
|
196
197
|
}), qo = (e, {
|
|
197
198
|
isExpression: t = !0
|
|
198
199
|
}) => /* 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, Jo = ({
|
|
@@ -204,11 +205,11 @@ const _o = () => {
|
|
|
204
205
|
rootSetState: i,
|
|
205
206
|
rootState: a
|
|
206
207
|
}) => {
|
|
207
|
-
const u =
|
|
208
|
+
const u = Or({
|
|
208
209
|
builder: t,
|
|
209
210
|
context: n,
|
|
210
211
|
event: r,
|
|
211
|
-
state:
|
|
212
|
+
state: jr({
|
|
212
213
|
rootState: a,
|
|
213
214
|
localState: o,
|
|
214
215
|
rootSetState: i
|
|
@@ -216,7 +217,7 @@ const _o = () => {
|
|
|
216
217
|
});
|
|
217
218
|
return new Function(...u.map(([d]) => d), e)(...u.map(([, d]) => d));
|
|
218
219
|
};
|
|
219
|
-
function
|
|
220
|
+
function jr({
|
|
220
221
|
rootState: e,
|
|
221
222
|
localState: t,
|
|
222
223
|
rootSetState: n
|
|
@@ -226,7 +227,7 @@ function Vr({
|
|
|
226
227
|
if (t && o in t)
|
|
227
228
|
return t[o];
|
|
228
229
|
const i = r[o];
|
|
229
|
-
return typeof i == "object" && i !== null ?
|
|
230
|
+
return typeof i == "object" && i !== null ? jr({
|
|
230
231
|
rootState: i,
|
|
231
232
|
localState: void 0,
|
|
232
233
|
rootSetState: n ? (a) => {
|
|
@@ -252,7 +253,7 @@ var j, Xo = function(e) {
|
|
|
252
253
|
return 48 > s ? s === 36 : 58 > s ? !0 : 65 > s ? !1 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s && xo.test(String.fromCharCode(s));
|
|
253
254
|
}
|
|
254
255
|
function n(s) {
|
|
255
|
-
return 65 > s ? s === 36 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s &&
|
|
256
|
+
return 65 > s ? s === 36 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s && cr.test(String.fromCharCode(s));
|
|
256
257
|
}
|
|
257
258
|
function r(s, l) {
|
|
258
259
|
for (var c = b, h = 1, T = 0; ; ) {
|
|
@@ -280,15 +281,15 @@ var j, Xo = function(e) {
|
|
|
280
281
|
this.line = je, this.ab = p - me;
|
|
281
282
|
}
|
|
282
283
|
function a(s, l) {
|
|
283
|
-
|
|
284
|
+
Ue = p, R.C && (Ht = new i()), I = s, d(), oe = l, Ye = s.m;
|
|
284
285
|
}
|
|
285
286
|
function u() {
|
|
286
|
-
for (var s = p, l = R.va && R.C && new i(), c = b.charCodeAt(p += 2); p <
|
|
287
|
+
for (var s = p, l = R.va && R.C && new i(), c = b.charCodeAt(p += 2); p < Me && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
287
288
|
++p, c = b.charCodeAt(p);
|
|
288
289
|
R.va && R.va(!1, b.slice(s + 2, p), s, p, l, R.C && new i());
|
|
289
290
|
}
|
|
290
291
|
function d() {
|
|
291
|
-
for (; p <
|
|
292
|
+
for (; p < Me; ) {
|
|
292
293
|
var s = b.charCodeAt(p);
|
|
293
294
|
if (s === 32)
|
|
294
295
|
++p;
|
|
@@ -321,7 +322,7 @@ var j, Xo = function(e) {
|
|
|
321
322
|
function m(s) {
|
|
322
323
|
switch (s) {
|
|
323
324
|
case 46:
|
|
324
|
-
s = b.charCodeAt(p + 1), 48 <= s && 57 >= s ? E(!0) : (++p, a(
|
|
325
|
+
s = b.charCodeAt(p + 1), 48 <= s && 57 >= s ? E(!0) : (++p, a(nr));
|
|
325
326
|
return;
|
|
326
327
|
case 40:
|
|
327
328
|
return ++p, a(ge);
|
|
@@ -336,16 +337,16 @@ var j, Xo = function(e) {
|
|
|
336
337
|
case 93:
|
|
337
338
|
return ++p, a(en);
|
|
338
339
|
case 123:
|
|
339
|
-
return ++p, a(
|
|
340
|
+
return ++p, a(et);
|
|
340
341
|
case 125:
|
|
341
|
-
return ++p, a(
|
|
342
|
+
return ++p, a(We);
|
|
342
343
|
case 58:
|
|
343
|
-
return ++p, a(
|
|
344
|
+
return ++p, a(tt);
|
|
344
345
|
case 63:
|
|
345
|
-
return ++p, a(
|
|
346
|
+
return ++p, a(rr);
|
|
346
347
|
case 48:
|
|
347
348
|
if (s = b.charCodeAt(p + 1), s === 120 || s === 88) {
|
|
348
|
-
p += 2, s = O(16), s === null && r(K + 2, "Expected hexadecimal number"), n(b.charCodeAt(p)) && r(p, "Identifier directly after number"), a(
|
|
349
|
+
p += 2, s = O(16), s === null && r(K + 2, "Expected hexadecimal number"), n(b.charCodeAt(p)) && r(p, "Identifier directly after number"), a(Qe, s);
|
|
349
350
|
return;
|
|
350
351
|
}
|
|
351
352
|
case 49:
|
|
@@ -362,7 +363,7 @@ var j, Xo = function(e) {
|
|
|
362
363
|
case 39:
|
|
363
364
|
p++;
|
|
364
365
|
for (var l = ""; ; ) {
|
|
365
|
-
p >=
|
|
366
|
+
p >= Me && r(K, "Unterminated string constant");
|
|
366
367
|
var c = b.charCodeAt(p);
|
|
367
368
|
if (c === s) {
|
|
368
369
|
++p, a(kt, l);
|
|
@@ -421,7 +422,7 @@ var j, Xo = function(e) {
|
|
|
421
422
|
}
|
|
422
423
|
return;
|
|
423
424
|
case 47:
|
|
424
|
-
s = b.charCodeAt(p + 1),
|
|
425
|
+
s = b.charCodeAt(p + 1), Ye ? (++p, C()) : s === 61 ? f(Ne, 2) : f(or, 1);
|
|
425
426
|
return;
|
|
426
427
|
case 37:
|
|
427
428
|
case 42:
|
|
@@ -429,7 +430,7 @@ var j, Xo = function(e) {
|
|
|
429
430
|
return;
|
|
430
431
|
case 124:
|
|
431
432
|
case 38:
|
|
432
|
-
l = b.charCodeAt(p + 1), l === s ? f(s === 124 ?
|
|
433
|
+
l = b.charCodeAt(p + 1), l === s ? f(s === 124 ? ar : lr, 2) : l === 61 ? f(Ne, 2) : f(s === 124 ? go : vo, 1);
|
|
433
434
|
return;
|
|
434
435
|
case 94:
|
|
435
436
|
b.charCodeAt(p + 1) === 61 ? f(Ne, 2) : f(yo, 1);
|
|
@@ -444,22 +445,22 @@ var j, Xo = function(e) {
|
|
|
444
445
|
return;
|
|
445
446
|
case 61:
|
|
446
447
|
case 33:
|
|
447
|
-
b.charCodeAt(p + 1) === 61 ? f(bo, b.charCodeAt(p + 2) === 61 ? 3 : 2) : f(s === 61 ?
|
|
448
|
+
b.charCodeAt(p + 1) === 61 ? f(bo, b.charCodeAt(p + 2) === 61 ? 3 : 2) : f(s === 61 ? ir : sr, 1);
|
|
448
449
|
return;
|
|
449
450
|
case 126:
|
|
450
|
-
return f(
|
|
451
|
+
return f(sr, 1);
|
|
451
452
|
}
|
|
452
453
|
return !1;
|
|
453
454
|
}
|
|
454
455
|
function y(s) {
|
|
455
456
|
if (s ? p = K + 1 : K = p, R.C && (Lt = new i()), s)
|
|
456
457
|
return C();
|
|
457
|
-
if (p >=
|
|
458
|
+
if (p >= Me)
|
|
458
459
|
return a(zt);
|
|
459
460
|
if (s = b.charCodeAt(p), n(s) || s === 92)
|
|
460
461
|
return W();
|
|
461
462
|
if (m(s) === !1) {
|
|
462
|
-
if (s = String.fromCharCode(s), s === "\\" ||
|
|
463
|
+
if (s = String.fromCharCode(s), s === "\\" || cr.test(s))
|
|
463
464
|
return W();
|
|
464
465
|
r(p, "Unexpected character '" + s + "'");
|
|
465
466
|
}
|
|
@@ -470,7 +471,7 @@ var j, Xo = function(e) {
|
|
|
470
471
|
}
|
|
471
472
|
function C() {
|
|
472
473
|
for (var s, l, c = p; ; ) {
|
|
473
|
-
p >=
|
|
474
|
+
p >= Me && r(c, "Unterminated regexp");
|
|
474
475
|
var h = b.charAt(p);
|
|
475
476
|
if (wt.test(h) && r(c, "Unterminated regexp"), s)
|
|
476
477
|
s = !1;
|
|
@@ -491,7 +492,7 @@ var j, Xo = function(e) {
|
|
|
491
492
|
} catch (_) {
|
|
492
493
|
throw _ instanceof SyntaxError && r(c, _.message), _;
|
|
493
494
|
}
|
|
494
|
-
a(
|
|
495
|
+
a(Mn, T);
|
|
495
496
|
}
|
|
496
497
|
function O(s, l) {
|
|
497
498
|
for (var c = p, h = 0, T = l === void 0 ? 1 / 0 : l, _ = 0; _ < T; ++_) {
|
|
@@ -506,35 +507,35 @@ var j, Xo = function(e) {
|
|
|
506
507
|
var l = p, c = !1, h = b.charCodeAt(p) === 48;
|
|
507
508
|
s || O(10) !== null || r(l, "Invalid number"), b.charCodeAt(p) === 46 && (++p, O(10), c = !0), s = b.charCodeAt(p), (s === 69 || s === 101) && (s = b.charCodeAt(++p), s !== 43 && s !== 45 || ++p, O(10) === null && r(l, "Invalid number"), c = !0), n(b.charCodeAt(p)) && r(p, "Identifier directly after number"), s = b.slice(l, p);
|
|
508
509
|
var T;
|
|
509
|
-
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(
|
|
510
|
+
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(Qe, T);
|
|
510
511
|
}
|
|
511
512
|
function F(s) {
|
|
512
513
|
return s = O(16, s), s === null && r(K, "Bad character escape sequence"), s;
|
|
513
514
|
}
|
|
514
515
|
function se() {
|
|
515
|
-
|
|
516
|
+
De = !1;
|
|
516
517
|
for (var s, l = !0, c = p; ; ) {
|
|
517
518
|
var h = b.charCodeAt(p);
|
|
518
519
|
if (t(h))
|
|
519
|
-
|
|
520
|
+
De && (s += b.charAt(p)), ++p;
|
|
520
521
|
else if (h === 92) {
|
|
521
|
-
|
|
522
|
+
De || (s = b.slice(c, p)), De = !0, b.charCodeAt(++p) !== 117 && r(p, "Expecting Unicode escape sequence \\uXXXX"), ++p, h = F(4);
|
|
522
523
|
var T = String.fromCharCode(h);
|
|
523
524
|
T || r(p - 1, "Invalid Unicode escape"), (l ? n(h) : t(h)) || r(p - 4, "Invalid Unicode escape"), s += T;
|
|
524
525
|
} else
|
|
525
526
|
break;
|
|
526
527
|
l = !1;
|
|
527
528
|
}
|
|
528
|
-
return
|
|
529
|
+
return De ? s : b.slice(c, p);
|
|
529
530
|
}
|
|
530
531
|
function W() {
|
|
531
|
-
var s = se(), l =
|
|
532
|
-
!
|
|
532
|
+
var s = se(), l = Fe;
|
|
533
|
+
!De && Io(s) && (l = fo[s]), a(l, s);
|
|
533
534
|
}
|
|
534
535
|
function A() {
|
|
535
|
-
Kt = K, xe =
|
|
536
|
+
Kt = K, xe = Ue, _t = Ht, y();
|
|
536
537
|
}
|
|
537
|
-
function
|
|
538
|
+
function Ve(s) {
|
|
538
539
|
if (ne = s, p = K, R.C)
|
|
539
540
|
for (; p < me; )
|
|
540
541
|
me = b.lastIndexOf(`
|
|
@@ -565,7 +566,7 @@ var j, Xo = function(e) {
|
|
|
565
566
|
return I === s ? (A(), !0) : !1;
|
|
566
567
|
}
|
|
567
568
|
function yt() {
|
|
568
|
-
return !R.fc && (I === zt || I ===
|
|
569
|
+
return !R.fc && (I === zt || I === We || wt.test(b.slice(xe, K)));
|
|
569
570
|
}
|
|
570
571
|
function Oe() {
|
|
571
572
|
M(ye) || yt() || he();
|
|
@@ -580,52 +581,52 @@ var j, Xo = function(e) {
|
|
|
580
581
|
s.type !== "Identifier" && s.type !== "MemberExpression" && r(s.start, "Assigning to rvalue"), ne && s.type === "Identifier" && Ct(s.name) && r(s.start, "Assigning to " + s.name + " in strict mode");
|
|
581
582
|
}
|
|
582
583
|
function le() {
|
|
583
|
-
(I ===
|
|
584
|
+
(I === or || I === Ne && oe === "/=") && y(!0);
|
|
584
585
|
var s = I, l = G();
|
|
585
586
|
switch (s) {
|
|
586
587
|
case Gt:
|
|
587
|
-
case
|
|
588
|
+
case Fn:
|
|
588
589
|
A();
|
|
589
590
|
var c = s === Gt;
|
|
590
|
-
M(ye) || yt() ? l.label = null : I !==
|
|
591
|
+
M(ye) || yt() ? l.label = null : I !== Fe ? he() : (l.label = fe(), Oe());
|
|
591
592
|
for (var h = 0; h < H.length; ++h) {
|
|
592
593
|
var T = H[h];
|
|
593
594
|
if ((l.label === null || T.name === l.label.name) && (T.kind !== null && (c || T.kind === "loop") || l.label && c))
|
|
594
595
|
break;
|
|
595
596
|
}
|
|
596
597
|
return h === H.length && r(l.start, "Unsyntactic " + s.l), x(l, c ? "BreakStatement" : "ContinueStatement");
|
|
597
|
-
case
|
|
598
|
+
case Wn:
|
|
598
599
|
return A(), Oe(), x(l, "DebuggerStatement");
|
|
600
|
+
case Ln:
|
|
601
|
+
return A(), H.push(tn), l.body = le(), H.pop(), L(Zt), l.test = qe(), Oe(), x(l, "DoWhileStatement");
|
|
599
602
|
case _n:
|
|
600
|
-
return A(), H.push(tn), l
|
|
601
|
-
case qn:
|
|
602
|
-
return A(), H.push(tn), L(ge), I === ye ? Bt(l, null) : I === Yt ? (s = G(), A(), Un(s, !0), x(s, "VariableDeclaration"), s.fa.length === 1 && M(St) ? Mn(l, s) : Bt(l, s)) : (s = Y(!1, !0), M(St) ? (vt(s), Mn(l, s)) : Bt(l, s));
|
|
603
|
+
return A(), H.push(tn), L(ge), I === ye ? Bt(l, null) : I === Yt ? (s = G(), A(), Bn(s, !0), x(s, "VariableDeclaration"), s.fa.length === 1 && M(St) ? Nn(l, s) : Bt(l, s)) : (s = Y(!1, !0), M(St) ? (vt(s), Nn(l, s)) : Bt(l, s));
|
|
603
604
|
case Jt:
|
|
604
605
|
return A(), Ft(l, !0);
|
|
605
|
-
case
|
|
606
|
-
return A(), l.test =
|
|
607
|
-
case
|
|
608
|
-
return
|
|
606
|
+
case zn:
|
|
607
|
+
return A(), l.test = qe(), l.da = le(), l.alternate = M(Hn) ? le() : null, x(l, "IfStatement");
|
|
608
|
+
case Gn:
|
|
609
|
+
return Ze || R.Ib || r(K, "'return' outside of function"), A(), M(ye) || yt() ? l.K = null : (l.K = Y(), Oe()), x(l, "ReturnStatement");
|
|
609
610
|
case Xt:
|
|
610
|
-
for (A(), l.Qb =
|
|
611
|
-
I === qt || I ===
|
|
611
|
+
for (A(), l.Qb = qe(), l.tb = [], L(et), H.push(Ro); I !== We; )
|
|
612
|
+
I === qt || I === Dn ? (s = I === qt, h && x(h, "SwitchCase"), l.tb.push(h = G()), h.da = [], A(), s ? h.test = Y() : (c && r(Kt, "Multiple default clauses"), c = !0, h.test = null), L(tt)) : (h || he(), h.da.push(le()));
|
|
612
613
|
return h && x(h, "SwitchCase"), A(), H.pop(), x(l, "SwitchStatement");
|
|
613
|
-
case
|
|
614
|
+
case qn:
|
|
614
615
|
return A(), wt.test(b.slice(xe, K)) && r(xe, "Illegal newline after throw"), l.K = Y(), Oe(), x(l, "ThrowStatement");
|
|
615
|
-
case
|
|
616
|
-
return A(), l.block =
|
|
616
|
+
case Jn:
|
|
617
|
+
return A(), l.block = Je(), l.Ea = null, I === Un && (s = G(), A(), L(ge), s.Ua = fe(), ne && Ct(s.Ua.name) && r(s.Ua.start, "Binding " + s.Ua.name + " in strict mode"), L(ue), s.body = Je(), l.Ea = x(s, "CatchClause")), l.fb = M(Kn) ? Je() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), x(l, "TryStatement");
|
|
617
618
|
case Yt:
|
|
618
|
-
return A(),
|
|
619
|
+
return A(), Bn(l), Oe(), x(l, "VariableDeclaration");
|
|
619
620
|
case Zt:
|
|
620
|
-
return A(), l.test =
|
|
621
|
-
case
|
|
622
|
-
return ne && r(K, "'with' in strict mode"), A(), l.object =
|
|
623
|
-
case
|
|
624
|
-
return
|
|
621
|
+
return A(), l.test = qe(), H.push(tn), l.body = le(), H.pop(), x(l, "WhileStatement");
|
|
622
|
+
case Xn:
|
|
623
|
+
return ne && r(K, "'with' in strict mode"), A(), l.object = qe(), l.body = le(), x(l, "WithStatement");
|
|
624
|
+
case et:
|
|
625
|
+
return Je();
|
|
625
626
|
case ye:
|
|
626
627
|
return A(), x(l, "EmptyStatement");
|
|
627
628
|
default:
|
|
628
|
-
if (c = oe, T = Y(), s ===
|
|
629
|
+
if (c = oe, T = Y(), s === Fe && T.type === "Identifier" && M(tt)) {
|
|
629
630
|
for (h = 0; h < H.length; ++h)
|
|
630
631
|
H[h].name === c && r(T.start, "Label '" + c + "' is already declared");
|
|
631
632
|
return H.push({
|
|
@@ -636,33 +637,33 @@ var j, Xo = function(e) {
|
|
|
636
637
|
return l.la = T, Oe(), x(l, "ExpressionStatement");
|
|
637
638
|
}
|
|
638
639
|
}
|
|
639
|
-
function
|
|
640
|
+
function qe() {
|
|
640
641
|
L(ge);
|
|
641
642
|
var s = Y();
|
|
642
643
|
return L(ue), s;
|
|
643
644
|
}
|
|
644
|
-
function
|
|
645
|
+
function Je(s) {
|
|
645
646
|
var l = G(), c = !0, h = !1;
|
|
646
|
-
for (l.body = [], L(
|
|
647
|
+
for (l.body = [], L(et); !M(We); ) {
|
|
647
648
|
var T = le();
|
|
648
649
|
if (l.body.push(T), c && s && Nt(T)) {
|
|
649
650
|
var _ = h;
|
|
650
|
-
|
|
651
|
+
Ve(h = !0);
|
|
651
652
|
}
|
|
652
653
|
c = !1;
|
|
653
654
|
}
|
|
654
|
-
return h && !_ &&
|
|
655
|
+
return h && !_ && Ve(!1), x(l, "BlockStatement");
|
|
655
656
|
}
|
|
656
657
|
function Bt(s, l) {
|
|
657
658
|
return s.ua = l, L(ye), s.test = I === ye ? null : Y(), L(ye), s.update = I === ue ? null : Y(), L(ue), s.body = le(), H.pop(), x(s, "ForStatement");
|
|
658
659
|
}
|
|
659
|
-
function
|
|
660
|
+
function Nn(s, l) {
|
|
660
661
|
return s.left = l, s.right = Y(), L(ue), s.body = le(), H.pop(), x(s, "ForInStatement");
|
|
661
662
|
}
|
|
662
|
-
function
|
|
663
|
+
function Bn(s, l) {
|
|
663
664
|
for (s.fa = [], s.kind = "var"; ; ) {
|
|
664
665
|
var c = G();
|
|
665
|
-
if (c.id = fe(), ne && Ct(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = M(
|
|
666
|
+
if (c.id = fe(), ne && Ct(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = M(ir) ? Y(!0, l) : null, s.fa.push(x(c, "VariableDeclarator")), !M(Re))
|
|
666
667
|
break;
|
|
667
668
|
}
|
|
668
669
|
}
|
|
@@ -677,9 +678,9 @@ var j, Xo = function(e) {
|
|
|
677
678
|
}
|
|
678
679
|
function Vt(s) {
|
|
679
680
|
var l = Mt(Ut(), -1, s);
|
|
680
|
-
if (M(
|
|
681
|
+
if (M(rr)) {
|
|
681
682
|
var c = Te(l);
|
|
682
|
-
c.test = l, c.da = Y(!0), L(
|
|
683
|
+
c.test = l, c.da = Y(!0), L(tt), c.alternate = Y(!0, s), l = x(c, "ConditionalExpression");
|
|
683
684
|
}
|
|
684
685
|
return I.Cb ? (c = Te(l), c.operator = oe, c.left = l, A(), c.right = Vt(s), vt(l), x(c, "AssignmentExpression")) : l;
|
|
685
686
|
}
|
|
@@ -687,69 +688,69 @@ var j, Xo = function(e) {
|
|
|
687
688
|
var h = I.L;
|
|
688
689
|
if (h !== null && (!c || I !== St) && h > l) {
|
|
689
690
|
var T = Te(s);
|
|
690
|
-
return T.left = s, T.operator = oe, s = I, A(), T.right = Mt(Ut(), h, c), h = x(T, s ===
|
|
691
|
+
return T.left = s, T.operator = oe, s = I, A(), T.right = Mt(Ut(), h, c), h = x(T, s === ar || s === lr ? "LogicalExpression" : "BinaryExpression"), Mt(h, l, c);
|
|
691
692
|
}
|
|
692
693
|
return s;
|
|
693
694
|
}
|
|
694
695
|
function Ut() {
|
|
695
696
|
if (I.prefix) {
|
|
696
697
|
var s = G(), l = I.$b;
|
|
697
|
-
return s.operator = oe,
|
|
698
|
+
return s.operator = oe, Ye = s.prefix = !0, A(), s.K = Ut(), l ? vt(s.K) : ne && s.operator === "delete" && s.K.type === "Identifier" && r(s.start, "Deleting local variable in strict mode"), x(s, l ? "UpdateExpression" : "UnaryExpression");
|
|
698
699
|
}
|
|
699
|
-
for (l =
|
|
700
|
+
for (l = Xe(bt()); I.cc && !yt(); )
|
|
700
701
|
s = Te(l), s.operator = oe, s.prefix = !1, s.K = l, vt(l), A(), l = x(s, "UpdateExpression");
|
|
701
702
|
return l;
|
|
702
703
|
}
|
|
703
|
-
function
|
|
704
|
-
if (M(
|
|
704
|
+
function Xe(s, l) {
|
|
705
|
+
if (M(nr)) {
|
|
705
706
|
var c = Te(s);
|
|
706
|
-
return c.object = s, c.Wa = fe(!0), c.bb = !1,
|
|
707
|
+
return c.object = s, c.Wa = fe(!0), c.bb = !1, Xe(x(c, "MemberExpression"), l);
|
|
707
708
|
}
|
|
708
|
-
return M(Qt) ? (c = Te(s), c.object = s, c.Wa = Y(), c.bb = !0, L(en),
|
|
709
|
+
return M(Qt) ? (c = Te(s), c.object = s, c.Wa = Y(), c.bb = !0, L(en), Xe(x(c, "MemberExpression"), l)) : !l && M(ge) ? (c = Te(s), c.callee = s, c.arguments = Wt(ue, !1), Xe(x(c, "CallExpression"), l)) : s;
|
|
709
710
|
}
|
|
710
711
|
function bt() {
|
|
711
712
|
switch (I) {
|
|
712
|
-
case
|
|
713
|
+
case Zn:
|
|
713
714
|
var s = G();
|
|
714
715
|
return A(), x(s, "ThisExpression");
|
|
715
|
-
case
|
|
716
|
+
case Fe:
|
|
716
717
|
return fe();
|
|
717
|
-
case
|
|
718
|
+
case Qe:
|
|
718
719
|
case kt:
|
|
719
|
-
case
|
|
720
|
-
return s = G(), s.value = oe, s.raw = b.slice(K,
|
|
721
|
-
case
|
|
722
|
-
case
|
|
723
|
-
case
|
|
720
|
+
case Mn:
|
|
721
|
+
return s = G(), s.value = oe, s.raw = b.slice(K, Ue), A(), x(s, "Literal");
|
|
722
|
+
case Qn:
|
|
723
|
+
case er:
|
|
724
|
+
case tr:
|
|
724
725
|
return s = G(), s.value = I.$a, s.raw = I.l, A(), x(s, "Literal");
|
|
725
726
|
case ge:
|
|
726
727
|
s = Lt;
|
|
727
728
|
var l = K;
|
|
728
729
|
A();
|
|
729
730
|
var c = Y();
|
|
730
|
-
return c.start = l, c.end =
|
|
731
|
+
return c.start = l, c.end = Ue, R.C && (c.X.start = s, c.X.end = Ht), R.Xa && (c.j = [l, Ue]), L(ue), c;
|
|
731
732
|
case Qt:
|
|
732
733
|
return s = G(), A(), s.elements = Wt(en, !0, !0), x(s, "ArrayExpression");
|
|
733
|
-
case
|
|
734
|
-
for (s = G(), l = !0, c = !1, s.h = [], A(); !M(
|
|
734
|
+
case et:
|
|
735
|
+
for (s = G(), l = !0, c = !1, s.h = [], A(); !M(We); ) {
|
|
735
736
|
if (l)
|
|
736
737
|
l = !1;
|
|
737
|
-
else if (L(Re), R.sb && M(
|
|
738
|
+
else if (L(Re), R.sb && M(We))
|
|
738
739
|
break;
|
|
739
740
|
var h = {
|
|
740
|
-
key: I ===
|
|
741
|
+
key: I === Qe || I === kt ? bt() : fe(!0)
|
|
741
742
|
}, T = !1;
|
|
742
|
-
if (M(
|
|
743
|
+
if (M(tt)) {
|
|
743
744
|
h.value = Y(!0);
|
|
744
745
|
var _ = h.kind = "init";
|
|
745
746
|
} else
|
|
746
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? he() : (T = c = !0, _ = h.kind = h.key.name, h.key = I ===
|
|
747
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? he() : (T = c = !0, _ = h.kind = h.key.name, h.key = I === Qe || I === kt ? bt() : fe(!0), I !== ge && he(), h.value = Ft(G(), !1));
|
|
747
748
|
if (h.key.type === "Identifier" && (ne || c))
|
|
748
749
|
for (var Q = 0; Q < s.h.length; ++Q) {
|
|
749
|
-
var
|
|
750
|
-
if (
|
|
751
|
-
var nn = _ ===
|
|
752
|
-
nn && !ne && _ === "init" &&
|
|
750
|
+
var Le = s.h[Q];
|
|
751
|
+
if (Le.key.name === h.key.name) {
|
|
752
|
+
var nn = _ === Le.kind || T && Le.kind === "init" || _ === "init" && (Le.kind === "get" || Le.kind === "set");
|
|
753
|
+
nn && !ne && _ === "init" && Le.kind === "init" && (nn = !1), nn && r(h.key.start, "Redefinition of property");
|
|
753
754
|
}
|
|
754
755
|
}
|
|
755
756
|
s.h.push(h);
|
|
@@ -757,21 +758,21 @@ var j, Xo = function(e) {
|
|
|
757
758
|
return x(s, "ObjectExpression");
|
|
758
759
|
case Jt:
|
|
759
760
|
return s = G(), A(), Ft(s, !1);
|
|
760
|
-
case
|
|
761
|
-
return s = G(), A(), s.callee =
|
|
761
|
+
case Yn:
|
|
762
|
+
return s = G(), A(), s.callee = Xe(bt(), !0), s.arguments = M(ge) ? Wt(ue, !1) : ho, x(s, "NewExpression");
|
|
762
763
|
}
|
|
763
764
|
he();
|
|
764
765
|
}
|
|
765
766
|
function Ft(s, l) {
|
|
766
|
-
I ===
|
|
767
|
+
I === Fe ? s.id = fe() : l ? he() : s.id = null, s.oa = [];
|
|
767
768
|
var c = !0;
|
|
768
769
|
for (L(ge); !M(ue); )
|
|
769
770
|
c ? c = !1 : L(Re), s.oa.push(fe());
|
|
770
|
-
c =
|
|
771
|
+
c = Ze;
|
|
771
772
|
var h = H;
|
|
772
|
-
if (
|
|
773
|
+
if (Ze = !0, H = [], s.body = Je(!0), Ze = c, H = h, ne || s.body.body.length && Nt(s.body.body[0])) {
|
|
773
774
|
for (c = s.id ? -1 : 0; c < s.oa.length; ++c)
|
|
774
|
-
if (h = 0 > c ? s.id : s.oa[c], (
|
|
775
|
+
if (h = 0 > c ? s.id : s.oa[c], (ur(h.name) || Ct(h.name)) && r(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
775
776
|
for (var T = 0; T < c; ++T)
|
|
776
777
|
h.name === s.oa[T].name && r(h.start, "Argument name clash in strict mode");
|
|
777
778
|
}
|
|
@@ -789,19 +790,19 @@ var j, Xo = function(e) {
|
|
|
789
790
|
}
|
|
790
791
|
function fe(s) {
|
|
791
792
|
var l = G();
|
|
792
|
-
return s && R.yb === "everywhere" && (s = !1), I ===
|
|
793
|
+
return s && R.yb === "everywhere" && (s = !1), I === Fe ? (!s && (R.yb && Eo(oe) || ne && ur(oe)) && b.slice(K, Ue).indexOf("\\") === -1 && r(K, "The keyword '" + oe + "' is reserved"), l.name = oe) : s && I.l ? l.name = I.l : he(), Ye = !1, A(), x(l, "Identifier");
|
|
793
794
|
}
|
|
794
795
|
e.version = "0.5.0";
|
|
795
|
-
var R, b = "",
|
|
796
|
+
var R, b = "", Me, Dt;
|
|
796
797
|
e.parse = function(s, l) {
|
|
797
|
-
b = String(s),
|
|
798
|
-
for (var c in
|
|
799
|
-
Object.prototype.hasOwnProperty.call(R, c) || (R[c] =
|
|
800
|
-
for (Dt = R.sourceFile, je = 1, p = me = 0,
|
|
801
|
-
c = le(), s.body.push(c), l && Nt(c) &&
|
|
798
|
+
b = String(s), Me = b.length, R = l || {};
|
|
799
|
+
for (var c in Vn)
|
|
800
|
+
Object.prototype.hasOwnProperty.call(R, c) || (R[c] = Vn[c]);
|
|
801
|
+
for (Dt = R.sourceFile, je = 1, p = me = 0, Ye = !0, d(), c = R.dc, Kt = xe = p, R.C && (_t = new i()), Ze = ne = !1, H = [], y(), s = c || G(), l = !0, c || (s.body = []); I !== zt; )
|
|
802
|
+
c = le(), s.body.push(c), l && Nt(c) && Ve(!0), l = !1;
|
|
802
803
|
return x(s, "Program");
|
|
803
804
|
};
|
|
804
|
-
var
|
|
805
|
+
var Vn = {
|
|
805
806
|
fc: !1,
|
|
806
807
|
sb: !0,
|
|
807
808
|
yb: !1,
|
|
@@ -812,13 +813,13 @@ var j, Xo = function(e) {
|
|
|
812
813
|
dc: null,
|
|
813
814
|
sourceFile: null,
|
|
814
815
|
vb: null
|
|
815
|
-
}, p = 0, K = 0,
|
|
816
|
+
}, p = 0, K = 0, Ue = 0, Lt, Ht, I, oe, Ye, je, me, Kt = 0, xe = 0, _t, Ze, H, ne, ho = [], Qe = {
|
|
816
817
|
type: "num"
|
|
817
|
-
},
|
|
818
|
+
}, Mn = {
|
|
818
819
|
type: "regexp"
|
|
819
820
|
}, kt = {
|
|
820
821
|
type: "string"
|
|
821
|
-
},
|
|
822
|
+
}, Fe = {
|
|
822
823
|
type: "name"
|
|
823
824
|
}, zt = {
|
|
824
825
|
type: "eof"
|
|
@@ -827,58 +828,58 @@ var j, Xo = function(e) {
|
|
|
827
828
|
}, qt = {
|
|
828
829
|
l: "case",
|
|
829
830
|
m: !0
|
|
830
|
-
},
|
|
831
|
+
}, Un = {
|
|
831
832
|
l: "catch"
|
|
832
|
-
},
|
|
833
|
+
}, Fn = {
|
|
833
834
|
l: "continue"
|
|
834
|
-
},
|
|
835
|
+
}, Wn = {
|
|
835
836
|
l: "debugger"
|
|
836
|
-
},
|
|
837
|
+
}, Dn = {
|
|
837
838
|
l: "default"
|
|
838
|
-
},
|
|
839
|
+
}, Ln = {
|
|
839
840
|
l: "do",
|
|
840
841
|
W: !0
|
|
841
|
-
},
|
|
842
|
+
}, Hn = {
|
|
842
843
|
l: "else",
|
|
843
844
|
m: !0
|
|
844
|
-
},
|
|
845
|
+
}, Kn = {
|
|
845
846
|
l: "finally"
|
|
846
|
-
},
|
|
847
|
+
}, _n = {
|
|
847
848
|
l: "for",
|
|
848
849
|
W: !0
|
|
849
850
|
}, Jt = {
|
|
850
851
|
l: "function"
|
|
851
|
-
},
|
|
852
|
+
}, zn = {
|
|
852
853
|
l: "if"
|
|
853
|
-
},
|
|
854
|
+
}, Gn = {
|
|
854
855
|
l: "return",
|
|
855
856
|
m: !0
|
|
856
857
|
}, Xt = {
|
|
857
858
|
l: "switch"
|
|
858
|
-
},
|
|
859
|
+
}, qn = {
|
|
859
860
|
l: "throw",
|
|
860
861
|
m: !0
|
|
861
|
-
},
|
|
862
|
+
}, Jn = {
|
|
862
863
|
l: "try"
|
|
863
864
|
}, Yt = {
|
|
864
865
|
l: "var"
|
|
865
866
|
}, Zt = {
|
|
866
867
|
l: "while",
|
|
867
868
|
W: !0
|
|
868
|
-
},
|
|
869
|
+
}, Xn = {
|
|
869
870
|
l: "with"
|
|
870
|
-
},
|
|
871
|
+
}, Yn = {
|
|
871
872
|
l: "new",
|
|
872
873
|
m: !0
|
|
873
|
-
},
|
|
874
|
+
}, Zn = {
|
|
874
875
|
l: "this"
|
|
875
|
-
},
|
|
876
|
+
}, Qn = {
|
|
876
877
|
l: "null",
|
|
877
878
|
$a: null
|
|
878
|
-
},
|
|
879
|
+
}, er = {
|
|
879
880
|
l: "true",
|
|
880
881
|
$a: !0
|
|
881
|
-
},
|
|
882
|
+
}, tr = {
|
|
882
883
|
l: "false",
|
|
883
884
|
$a: !1
|
|
884
885
|
}, St = {
|
|
@@ -888,34 +889,34 @@ var j, Xo = function(e) {
|
|
|
888
889
|
}, fo = {
|
|
889
890
|
break: Gt,
|
|
890
891
|
case: qt,
|
|
891
|
-
catch:
|
|
892
|
-
continue:
|
|
893
|
-
debugger:
|
|
894
|
-
default:
|
|
895
|
-
do:
|
|
896
|
-
else:
|
|
897
|
-
finally:
|
|
898
|
-
for:
|
|
892
|
+
catch: Un,
|
|
893
|
+
continue: Fn,
|
|
894
|
+
debugger: Wn,
|
|
895
|
+
default: Dn,
|
|
896
|
+
do: Ln,
|
|
897
|
+
else: Hn,
|
|
898
|
+
finally: Kn,
|
|
899
|
+
for: _n,
|
|
899
900
|
function: Jt,
|
|
900
|
-
if:
|
|
901
|
-
return:
|
|
901
|
+
if: zn,
|
|
902
|
+
return: Gn,
|
|
902
903
|
switch: Xt,
|
|
903
|
-
throw:
|
|
904
|
-
try:
|
|
904
|
+
throw: qn,
|
|
905
|
+
try: Jn,
|
|
905
906
|
var: Yt,
|
|
906
907
|
while: Zt,
|
|
907
|
-
with:
|
|
908
|
-
null:
|
|
909
|
-
true:
|
|
910
|
-
false:
|
|
911
|
-
new:
|
|
908
|
+
with: Xn,
|
|
909
|
+
null: Qn,
|
|
910
|
+
true: er,
|
|
911
|
+
false: tr,
|
|
912
|
+
new: Yn,
|
|
912
913
|
in: St,
|
|
913
914
|
instanceof: {
|
|
914
915
|
l: "instanceof",
|
|
915
916
|
L: 7,
|
|
916
917
|
m: !0
|
|
917
918
|
},
|
|
918
|
-
this:
|
|
919
|
+
this: Zn,
|
|
919
920
|
typeof: {
|
|
920
921
|
l: "typeof",
|
|
921
922
|
prefix: !0,
|
|
@@ -936,10 +937,10 @@ var j, Xo = function(e) {
|
|
|
936
937
|
m: !0
|
|
937
938
|
}, en = {
|
|
938
939
|
type: "]"
|
|
939
|
-
},
|
|
940
|
+
}, et = {
|
|
940
941
|
type: "{",
|
|
941
942
|
m: !0
|
|
942
|
-
},
|
|
943
|
+
}, We = {
|
|
943
944
|
type: "}"
|
|
944
945
|
}, ge = {
|
|
945
946
|
type: "(",
|
|
@@ -952,18 +953,18 @@ var j, Xo = function(e) {
|
|
|
952
953
|
}, ye = {
|
|
953
954
|
type: ";",
|
|
954
955
|
m: !0
|
|
955
|
-
},
|
|
956
|
+
}, tt = {
|
|
956
957
|
type: ":",
|
|
957
958
|
m: !0
|
|
958
|
-
},
|
|
959
|
+
}, nr = {
|
|
959
960
|
type: "."
|
|
960
|
-
},
|
|
961
|
+
}, rr = {
|
|
961
962
|
type: "?",
|
|
962
963
|
m: !0
|
|
963
|
-
},
|
|
964
|
+
}, or = {
|
|
964
965
|
L: 10,
|
|
965
966
|
m: !0
|
|
966
|
-
},
|
|
967
|
+
}, ir = {
|
|
967
968
|
Cb: !0,
|
|
968
969
|
m: !0
|
|
969
970
|
}, Ne = {
|
|
@@ -973,13 +974,13 @@ var j, Xo = function(e) {
|
|
|
973
974
|
cc: !0,
|
|
974
975
|
prefix: !0,
|
|
975
976
|
$b: !0
|
|
976
|
-
},
|
|
977
|
+
}, sr = {
|
|
977
978
|
prefix: !0,
|
|
978
979
|
m: !0
|
|
979
|
-
},
|
|
980
|
+
}, ar = {
|
|
980
981
|
L: 1,
|
|
981
982
|
m: !0
|
|
982
|
-
},
|
|
983
|
+
}, lr = {
|
|
983
984
|
L: 2,
|
|
984
985
|
m: !0
|
|
985
986
|
}, go = {
|
|
@@ -1007,7 +1008,7 @@ var j, Xo = function(e) {
|
|
|
1007
1008
|
}, wo = {
|
|
1008
1009
|
L: 10,
|
|
1009
1010
|
m: !0
|
|
1010
|
-
}, Eo = o("class enum extends super const export import"),
|
|
1011
|
+
}, Eo = o("class enum extends super const export import"), ur = o("implements interface let package private protected public static yield"), Ct = o("eval arguments"), Io = 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"), To = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, cr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), xo = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), wt = /[\n\r\u2028\u2029]/, Et = /\r\n|[\n\r\u2028\u2029]/g, De, tn = {
|
|
1011
1012
|
kind: "loop"
|
|
1012
1013
|
}, Ro = {
|
|
1013
1014
|
kind: "switch"
|
|
@@ -1015,7 +1016,7 @@ var j, Xo = function(e) {
|
|
|
1015
1016
|
}, cn = cn = typeof globalThis > "u" ? void 0 : globalThis;
|
|
1016
1017
|
Xo(cn.j || (cn.j = {}));
|
|
1017
1018
|
function g(e, t) {
|
|
1018
|
-
typeof e == "string" && (e =
|
|
1019
|
+
typeof e == "string" && (e = _e(e, "code"));
|
|
1019
1020
|
var n = e.constructor;
|
|
1020
1021
|
this.ya = function() {
|
|
1021
1022
|
return new n({
|
|
@@ -1029,10 +1030,10 @@ function g(e, t) {
|
|
|
1029
1030
|
var i, a;
|
|
1030
1031
|
for (a in this)
|
|
1031
1032
|
typeof this[a] == "function" && (i = a.match(e)) && (this.rb[i[1]] = this[a].bind(this));
|
|
1032
|
-
this.N = dn(this, this.ra, null), this.Na = this.N.object, this.ra =
|
|
1033
|
+
this.N = dn(this, this.ra, null), this.Na = this.N.object, this.ra = _e(this.ba.join(`
|
|
1033
1034
|
`), "polyfills"), this.ba = void 0, Pt(this.ra), i = new S(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new S(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
1034
1035
|
}
|
|
1035
|
-
var
|
|
1036
|
+
var pr = {
|
|
1036
1037
|
C: !0,
|
|
1037
1038
|
kc: 5
|
|
1038
1039
|
}, vn = {
|
|
@@ -1047,28 +1048,28 @@ var fr = {
|
|
|
1047
1048
|
configurable: !0,
|
|
1048
1049
|
enumerable: !1,
|
|
1049
1050
|
writable: !1
|
|
1050
|
-
},
|
|
1051
|
+
}, nt = {
|
|
1051
1052
|
configurable: !1,
|
|
1052
1053
|
enumerable: !1,
|
|
1053
1054
|
writable: !1
|
|
1054
|
-
},
|
|
1055
|
+
}, dr = {
|
|
1055
1056
|
configurable: !1,
|
|
1056
1057
|
enumerable: !0,
|
|
1057
1058
|
writable: !0
|
|
1058
|
-
},
|
|
1059
|
+
}, Nr = {
|
|
1059
1060
|
STEP_ERROR: !0
|
|
1060
|
-
},
|
|
1061
|
+
}, Ge = {
|
|
1061
1062
|
SCOPE_REFERENCE: !0
|
|
1062
1063
|
}, pt = {
|
|
1063
1064
|
VALUE_IN_DESCRIPTOR: !0
|
|
1064
|
-
},
|
|
1065
|
+
}, He = {
|
|
1065
1066
|
REGEXP_TIMEOUT: !0
|
|
1066
|
-
},
|
|
1067
|
+
}, hr = [], ke = null, lt = null, Ae = typeof globalThis > "u" ? void 0 : globalThis, Yo = ["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();", "};"];
|
|
1067
1068
|
function bn(e) {
|
|
1068
1069
|
var t = e >>> 0;
|
|
1069
1070
|
return t === Number(e) ? t : NaN;
|
|
1070
1071
|
}
|
|
1071
|
-
function
|
|
1072
|
+
function ut(e) {
|
|
1072
1073
|
var t = e >>> 0;
|
|
1073
1074
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
1074
1075
|
}
|
|
@@ -1088,17 +1089,17 @@ j.P = !1;
|
|
|
1088
1089
|
j.Ka = !1;
|
|
1089
1090
|
j.Kb = 0;
|
|
1090
1091
|
j.ic = 0;
|
|
1091
|
-
function
|
|
1092
|
+
function _e(e, t) {
|
|
1092
1093
|
var n = {}, r;
|
|
1093
|
-
for (r in
|
|
1094
|
-
n[r] =
|
|
1094
|
+
for (r in pr)
|
|
1095
|
+
n[r] = pr[r];
|
|
1095
1096
|
return n.sourceFile = t, Ae.j.parse(e, n);
|
|
1096
1097
|
}
|
|
1097
1098
|
j.Jb = function(e) {
|
|
1098
1099
|
var t = this.o[0];
|
|
1099
1100
|
if (!t || t.node.type !== "Program")
|
|
1100
1101
|
throw Error("Expecting original AST to start with a Program node");
|
|
1101
|
-
if (typeof e == "string" && (e =
|
|
1102
|
+
if (typeof e == "string" && (e = _e(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
1102
1103
|
throw Error("Expecting new AST to start with a Program node");
|
|
1103
1104
|
dt(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
1104
1105
|
};
|
|
@@ -1114,7 +1115,7 @@ j.lb = function() {
|
|
|
1114
1115
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
1115
1116
|
n = null;
|
|
1116
1117
|
else {
|
|
1117
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
1118
|
+
this.ca.shift(), 0 <= n.interval && Mr(this, n, n.interval);
|
|
1118
1119
|
var r = new S(n.node, n.scope);
|
|
1119
1120
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1120
1121
|
}
|
|
@@ -1122,15 +1123,15 @@ j.lb = function() {
|
|
|
1122
1123
|
break;
|
|
1123
1124
|
}
|
|
1124
1125
|
r = n.node;
|
|
1125
|
-
var o =
|
|
1126
|
-
|
|
1126
|
+
var o = lt;
|
|
1127
|
+
lt = this;
|
|
1127
1128
|
try {
|
|
1128
1129
|
var i = this.rb[r.type](e, n, r);
|
|
1129
1130
|
} catch (a) {
|
|
1130
|
-
if (a !==
|
|
1131
|
+
if (a !== Nr)
|
|
1131
1132
|
throw this.value !== a && (this.value = void 0), a;
|
|
1132
1133
|
} finally {
|
|
1133
|
-
|
|
1134
|
+
lt = o;
|
|
1134
1135
|
}
|
|
1135
1136
|
if (i && e.push(i), this.P)
|
|
1136
1137
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -1146,7 +1147,7 @@ j.Eb = function() {
|
|
|
1146
1147
|
return this.za;
|
|
1147
1148
|
};
|
|
1148
1149
|
function Zo(e, t) {
|
|
1149
|
-
e.g(t, "NaN", NaN,
|
|
1150
|
+
e.g(t, "NaN", NaN, nt), e.g(t, "Infinity", 1 / 0, nt), e.g(t, "undefined", void 0, nt), e.g(t, "window", t, vn), e.g(t, "this", t, nt), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), Qo(e, t), ei(e, t), t.xa = e.M, e.g(t, "constructor", e.v, k), ti(e, t), ni(e, t), ri(e, t), oi(e, t), ii(e, t), si(e, t), ai(e, t), li(e, t), ui(e, t);
|
|
1150
1151
|
var n = e.i(function() {
|
|
1151
1152
|
throw EvalError("Can't happen");
|
|
1152
1153
|
}, !1);
|
|
@@ -1162,13 +1163,13 @@ function Zo(e, t) {
|
|
|
1162
1163
|
};
|
|
1163
1164
|
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), k);
|
|
1164
1165
|
n = function(i) {
|
|
1165
|
-
return
|
|
1166
|
+
return fr(e, !1, arguments);
|
|
1166
1167
|
}, e.g(t, "setTimeout", e.i(n, !1), k), n = function(i) {
|
|
1167
|
-
return
|
|
1168
|
+
return fr(e, !0, arguments);
|
|
1168
1169
|
}, e.g(t, "setInterval", e.i(n, !1), k), n = function(i) {
|
|
1169
|
-
|
|
1170
|
+
mr(e, i);
|
|
1170
1171
|
}, e.g(t, "clearTimeout", e.i(n, !1), k), n = function(i) {
|
|
1171
|
-
|
|
1172
|
+
mr(e, i);
|
|
1172
1173
|
}, 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);
|
|
1173
1174
|
}
|
|
1174
1175
|
j.Wb = 0;
|
|
@@ -1184,7 +1185,7 @@ function Qo(e, t) {
|
|
|
1184
1185
|
a = a.join(", ");
|
|
1185
1186
|
}
|
|
1186
1187
|
try {
|
|
1187
|
-
var m =
|
|
1188
|
+
var m = _e("(function(" + a + ") {" + i + "})", "function" + e.Wb++);
|
|
1188
1189
|
} catch (y) {
|
|
1189
1190
|
w(e, e.T, "Invalid code: " + y.message);
|
|
1190
1191
|
}
|
|
@@ -1193,7 +1194,7 @@ function Qo(e, t) {
|
|
|
1193
1194
|
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() {
|
|
1194
1195
|
}, 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) {
|
|
1195
1196
|
var a = e.o[e.o.length - 1];
|
|
1196
|
-
a.U = this, a.B = o, a.F = [], i != null && (i instanceof P ? a.F =
|
|
1197
|
+
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;
|
|
1197
1198
|
}, z(e, e.O, "apply", r), r = function(o) {
|
|
1198
1199
|
var i = e.o[e.o.length - 1];
|
|
1199
1200
|
i.U = this, i.B = o, i.F = [];
|
|
@@ -1253,7 +1254,7 @@ function ei(e, t) {
|
|
|
1253
1254
|
}
|
|
1254
1255
|
function ti(e, t) {
|
|
1255
1256
|
var n = function(r) {
|
|
1256
|
-
var o = Ee(e) ? this :
|
|
1257
|
+
var o = Ee(e) ? this : ze(e), i = arguments[0];
|
|
1257
1258
|
if (arguments.length === 1 && typeof i == "number")
|
|
1258
1259
|
isNaN(bn(i)) && w(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1259
1260
|
else {
|
|
@@ -1286,15 +1287,15 @@ function ni(e, t) {
|
|
|
1286
1287
|
}
|
|
1287
1288
|
}, z(e, e.J, "localeCompare", n), n = function(r, o, i) {
|
|
1288
1289
|
var a = String(this);
|
|
1289
|
-
if (o = o ? Number(o) : void 0, q(e, r, e.I) && (r = r.data,
|
|
1290
|
+
if (o = o ? Number(o) : void 0, q(e, r, e.I) && (r = r.data, ot(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1290
1291
|
if (ke)
|
|
1291
|
-
r =
|
|
1292
|
+
r = rt(e, "string.split(separator, limit)", {
|
|
1292
1293
|
string: a,
|
|
1293
1294
|
separator: r,
|
|
1294
1295
|
limit: o
|
|
1295
|
-
}, r, i), r !==
|
|
1296
|
+
}, r, i), r !== He && i(be(e, r));
|
|
1296
1297
|
else {
|
|
1297
|
-
var u = e.ha(), d =
|
|
1298
|
+
var u = e.ha(), d = it(e, r, u, i);
|
|
1298
1299
|
u.onmessage = function(m) {
|
|
1299
1300
|
clearTimeout(d), i(be(e, m.data));
|
|
1300
1301
|
}, u.postMessage(["split", a, r, o]);
|
|
@@ -1302,49 +1303,49 @@ function ni(e, t) {
|
|
|
1302
1303
|
return;
|
|
1303
1304
|
}
|
|
1304
1305
|
r = a.split(r, o), i(be(e, r));
|
|
1305
|
-
},
|
|
1306
|
+
}, st(e, e.J, "split", n), n = function(r, o) {
|
|
1306
1307
|
var i = String(this);
|
|
1307
|
-
if (r = q(e, r, e.I) ? r.data : new RegExp(r),
|
|
1308
|
+
if (r = q(e, r, e.I) ? r.data : new RegExp(r), ot(e, r, o), e.REGEXP_MODE === 2)
|
|
1308
1309
|
if (ke)
|
|
1309
|
-
r =
|
|
1310
|
+
r = rt(e, "string.match(regexp)", {
|
|
1310
1311
|
string: i,
|
|
1311
1312
|
regexp: r
|
|
1312
|
-
}, r, o), r !==
|
|
1313
|
+
}, r, o), r !== He && o(r && be(e, r));
|
|
1313
1314
|
else {
|
|
1314
|
-
var a = e.ha(), u =
|
|
1315
|
+
var a = e.ha(), u = it(e, r, a, o);
|
|
1315
1316
|
a.onmessage = function(d) {
|
|
1316
1317
|
clearTimeout(u), o(d.data && be(e, d.data));
|
|
1317
1318
|
}, a.postMessage(["match", i, r]);
|
|
1318
1319
|
}
|
|
1319
1320
|
else
|
|
1320
1321
|
r = i.match(r), o(r && be(e, r));
|
|
1321
|
-
},
|
|
1322
|
+
}, st(e, e.J, "match", n), n = function(r, o) {
|
|
1322
1323
|
var i = String(this);
|
|
1323
|
-
if (q(e, r, e.I) ? r = r.data : r = new RegExp(r),
|
|
1324
|
+
if (q(e, r, e.I) ? r = r.data : r = new RegExp(r), ot(e, r, o), e.REGEXP_MODE === 2)
|
|
1324
1325
|
if (ke)
|
|
1325
|
-
r =
|
|
1326
|
+
r = rt(e, "string.search(regexp)", {
|
|
1326
1327
|
string: i,
|
|
1327
1328
|
regexp: r
|
|
1328
|
-
}, r, o), r !==
|
|
1329
|
+
}, r, o), r !== He && o(r);
|
|
1329
1330
|
else {
|
|
1330
|
-
var a = e.ha(), u =
|
|
1331
|
+
var a = e.ha(), u = it(e, r, a, o);
|
|
1331
1332
|
a.onmessage = function(d) {
|
|
1332
1333
|
clearTimeout(u), o(d.data);
|
|
1333
1334
|
}, a.postMessage(["search", i, r]);
|
|
1334
1335
|
}
|
|
1335
1336
|
else
|
|
1336
1337
|
o(i.search(r));
|
|
1337
|
-
},
|
|
1338
|
+
}, st(e, e.J, "search", n), n = function(r, o, i) {
|
|
1338
1339
|
var a = String(this);
|
|
1339
|
-
if (o = String(o), q(e, r, e.I) && (r = r.data,
|
|
1340
|
+
if (o = String(o), q(e, r, e.I) && (r = r.data, ot(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1340
1341
|
if (ke)
|
|
1341
|
-
r =
|
|
1342
|
+
r = rt(e, "string.replace(substr, newSubstr)", {
|
|
1342
1343
|
string: a,
|
|
1343
1344
|
substr: r,
|
|
1344
1345
|
newSubstr: o
|
|
1345
|
-
}, r, i), r !==
|
|
1346
|
+
}, r, i), r !== He && i(r);
|
|
1346
1347
|
else {
|
|
1347
|
-
var u = e.ha(), d =
|
|
1348
|
+
var u = e.ha(), d = it(e, r, u, i);
|
|
1348
1349
|
u.onmessage = function(m) {
|
|
1349
1350
|
clearTimeout(d), i(m.data);
|
|
1350
1351
|
}, u.postMessage(["replace", a, r, o]);
|
|
@@ -1352,7 +1353,7 @@ function ni(e, t) {
|
|
|
1352
1353
|
return;
|
|
1353
1354
|
}
|
|
1354
1355
|
i(a.replace(r, o));
|
|
1355
|
-
},
|
|
1356
|
+
}, st(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;", "};", "})();", "");
|
|
1356
1357
|
}
|
|
1357
1358
|
function ri(e, t) {
|
|
1358
1359
|
e.mb = e.i(function(n) {
|
|
@@ -1364,7 +1365,7 @@ function oi(e, t) {
|
|
|
1364
1365
|
return r = arguments.length ? Ae.Number(r) : 0, Ee(e) ? (this.data = r, this) : r;
|
|
1365
1366
|
};
|
|
1366
1367
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, k), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1367
|
-
e.g(e.aa, t[n], Number[t[n]],
|
|
1368
|
+
e.g(e.aa, t[n], Number[t[n]], nt);
|
|
1368
1369
|
n = function(r) {
|
|
1369
1370
|
try {
|
|
1370
1371
|
return Number(this).toExponential(r);
|
|
@@ -1443,21 +1444,21 @@ function si(e, t) {
|
|
|
1443
1444
|
return null;
|
|
1444
1445
|
}
|
|
1445
1446
|
var a = this.data;
|
|
1446
|
-
if (r = String(r), a.lastIndex = Number(e.G(this, "lastIndex")),
|
|
1447
|
+
if (r = String(r), a.lastIndex = Number(e.G(this, "lastIndex")), ot(e, a, o), e.REGEXP_MODE === 2)
|
|
1447
1448
|
if (ke)
|
|
1448
|
-
r =
|
|
1449
|
+
r = rt(e, "regexp.exec(string)", {
|
|
1449
1450
|
string: r,
|
|
1450
1451
|
regexp: a
|
|
1451
|
-
}, a, o), r !==
|
|
1452
|
+
}, a, o), r !== He && (e.g(this, "lastIndex", a.lastIndex), o(i(r)));
|
|
1452
1453
|
else {
|
|
1453
|
-
var u = e.ha(), d =
|
|
1454
|
+
var u = e.ha(), d = it(e, a, u, o), m = this;
|
|
1454
1455
|
u.onmessage = function(y) {
|
|
1455
1456
|
clearTimeout(d), e.g(m, "lastIndex", y.data[1]), o(i(y.data[0]));
|
|
1456
1457
|
}, u.postMessage(["exec", a, a.lastIndex, r]);
|
|
1457
1458
|
}
|
|
1458
1459
|
else
|
|
1459
1460
|
r = a.exec(r), e.g(this, "lastIndex", a.lastIndex), o(i(r));
|
|
1460
|
-
},
|
|
1461
|
+
}, st(e, e.I, "exec", n);
|
|
1461
1462
|
}
|
|
1462
1463
|
function ai(e, t) {
|
|
1463
1464
|
function n(r) {
|
|
@@ -1491,7 +1492,7 @@ function ui(e, t) {
|
|
|
1491
1492
|
}
|
|
1492
1493
|
return e.Ia(o);
|
|
1493
1494
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
|
|
1494
|
-
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o =
|
|
1495
|
+
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) {
|
|
1495
1496
|
return typeof u == "string" || typeof u == "number";
|
|
1496
1497
|
})) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
|
|
1497
1498
|
try {
|
|
@@ -1541,7 +1542,7 @@ j.ha = function() {
|
|
|
1541
1542
|
type: "application/javascript"
|
|
1542
1543
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1543
1544
|
};
|
|
1544
|
-
function
|
|
1545
|
+
function rt(e, t, n, r, o) {
|
|
1545
1546
|
var i = {
|
|
1546
1547
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1547
1548
|
};
|
|
@@ -1550,9 +1551,9 @@ function ot(e, t, n, r, o) {
|
|
|
1550
1551
|
} catch {
|
|
1551
1552
|
o(null), w(e, e.D, "RegExp Timeout: " + r);
|
|
1552
1553
|
}
|
|
1553
|
-
return
|
|
1554
|
+
return He;
|
|
1554
1555
|
}
|
|
1555
|
-
function
|
|
1556
|
+
function ot(e, t, n) {
|
|
1556
1557
|
if (e.REGEXP_MODE === 0)
|
|
1557
1558
|
var r = !1;
|
|
1558
1559
|
else if (e.REGEXP_MODE === 1)
|
|
@@ -1571,7 +1572,7 @@ function it(e, t, n) {
|
|
|
1571
1572
|
r = !1;
|
|
1572
1573
|
r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
1573
1574
|
}
|
|
1574
|
-
function
|
|
1575
|
+
function it(e, t, n, r) {
|
|
1575
1576
|
return setTimeout(function() {
|
|
1576
1577
|
n.terminate(), r(null);
|
|
1577
1578
|
try {
|
|
@@ -1588,7 +1589,7 @@ j.s = function(e) {
|
|
|
1588
1589
|
throw Error("Non object prototype");
|
|
1589
1590
|
return e = new P(e), q(this, e, this.D) && (e.H = "Error"), e;
|
|
1590
1591
|
};
|
|
1591
|
-
function
|
|
1592
|
+
function ze(e) {
|
|
1592
1593
|
var t = e.s(e.La);
|
|
1593
1594
|
return e.g(t, "length", 0, {
|
|
1594
1595
|
configurable: !1,
|
|
@@ -1632,7 +1633,7 @@ j.Ia = function(e) {
|
|
|
1632
1633
|
}, !!t);
|
|
1633
1634
|
}
|
|
1634
1635
|
if (Array.isArray(e)) {
|
|
1635
|
-
t =
|
|
1636
|
+
t = ze(this);
|
|
1636
1637
|
for (var r = 0; r < e.length; r++)
|
|
1637
1638
|
r in e && this.g(t, r, this.Ia(e[r]));
|
|
1638
1639
|
return t;
|
|
@@ -1673,11 +1674,11 @@ j.R = function(e, t) {
|
|
|
1673
1674
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1674
1675
|
};
|
|
1675
1676
|
function be(e, t) {
|
|
1676
|
-
for (var n =
|
|
1677
|
+
for (var n = ze(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
|
|
1677
1678
|
e.g(n, r[o], t[r[o]]);
|
|
1678
1679
|
return n;
|
|
1679
1680
|
}
|
|
1680
|
-
function
|
|
1681
|
+
function Br(e, t) {
|
|
1681
1682
|
var n = [], r;
|
|
1682
1683
|
for (r in t.h)
|
|
1683
1684
|
n[r] = e.G(t, r);
|
|
@@ -1703,7 +1704,7 @@ j.G = function(e, t) {
|
|
|
1703
1704
|
if (q(this, e, this.J))
|
|
1704
1705
|
return String(e).length;
|
|
1705
1706
|
} else if (64 > t.charCodeAt(0) && q(this, e, this.J)) {
|
|
1706
|
-
var n =
|
|
1707
|
+
var n = ut(t);
|
|
1707
1708
|
if (!isNaN(n) && n < String(e).length)
|
|
1708
1709
|
return String(e)[n];
|
|
1709
1710
|
}
|
|
@@ -1718,7 +1719,7 @@ function Ot(e, t, n) {
|
|
|
1718
1719
|
if (n = String(n), n === "length" && q(e, t, e.J))
|
|
1719
1720
|
return !0;
|
|
1720
1721
|
if (q(e, t, e.J)) {
|
|
1721
|
-
var r =
|
|
1722
|
+
var r = ut(n);
|
|
1722
1723
|
if (!isNaN(r) && r < String(t).length)
|
|
1723
1724
|
return !0;
|
|
1724
1725
|
}
|
|
@@ -1737,7 +1738,7 @@ j.g = function(e, t, n, r) {
|
|
|
1737
1738
|
var o = !this.o || wn(this).S;
|
|
1738
1739
|
if (e instanceof P) {
|
|
1739
1740
|
if (q(this, e, this.J)) {
|
|
1740
|
-
var i =
|
|
1741
|
+
var i = ut(t);
|
|
1741
1742
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1742
1743
|
o && w(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1743
1744
|
return;
|
|
@@ -1752,11 +1753,11 @@ j.g = function(e, t, n, r) {
|
|
|
1752
1753
|
}
|
|
1753
1754
|
if (n = bn(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < i)
|
|
1754
1755
|
for (a in e.h) {
|
|
1755
|
-
var a =
|
|
1756
|
+
var a = ut(a);
|
|
1756
1757
|
!isNaN(a) && n <= a && delete e.h[a];
|
|
1757
1758
|
}
|
|
1758
1759
|
} else
|
|
1759
|
-
isNaN(a =
|
|
1760
|
+
isNaN(a = ut(t)) || (e.h.length = Math.max(i, a + 1));
|
|
1760
1761
|
if (!e.preventExtensions || t in e.h)
|
|
1761
1762
|
if (r) {
|
|
1762
1763
|
o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== pt && (o.value = n, delete e.V[t], delete e.Y[t]);
|
|
@@ -1799,7 +1800,7 @@ j.g.bc = function() {
|
|
|
1799
1800
|
function z(e, t, n, r) {
|
|
1800
1801
|
e.g(t.h.prototype, n, e.i(r, !1), k);
|
|
1801
1802
|
}
|
|
1802
|
-
function
|
|
1803
|
+
function st(e, t, n, r) {
|
|
1803
1804
|
e.g(t.h.prototype, n, e.ub(r), k);
|
|
1804
1805
|
}
|
|
1805
1806
|
function wn(e) {
|
|
@@ -1815,12 +1816,12 @@ function dn(e, t, n) {
|
|
|
1815
1816
|
var o = t.body && t.body[0];
|
|
1816
1817
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1817
1818
|
}
|
|
1818
|
-
return o = e.s(null), r = new
|
|
1819
|
+
return o = e.s(null), r = new Ur(n, r, o), n || Zo(e, r.object), dt(e, t, r), r;
|
|
1819
1820
|
}
|
|
1820
1821
|
function En(e, t, n) {
|
|
1821
1822
|
if (!t)
|
|
1822
1823
|
throw Error("parentScope required");
|
|
1823
|
-
return e = n || e.s(null), new
|
|
1824
|
+
return e = n || e.s(null), new Ur(t, t.S, e);
|
|
1824
1825
|
}
|
|
1825
1826
|
function In(e, t) {
|
|
1826
1827
|
for (var n = wn(e); n && n !== e.N; ) {
|
|
@@ -1832,7 +1833,7 @@ function In(e, t) {
|
|
|
1832
1833
|
return e.G(n.object, t);
|
|
1833
1834
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1834
1835
|
}
|
|
1835
|
-
function
|
|
1836
|
+
function Vr(e, t, n) {
|
|
1836
1837
|
for (var r = wn(e), o = r.S; r && r !== e.N; ) {
|
|
1837
1838
|
if (t in r.object.h) {
|
|
1838
1839
|
try {
|
|
@@ -1894,20 +1895,20 @@ function dt(e, t, n) {
|
|
|
1894
1895
|
t.jb = r;
|
|
1895
1896
|
}
|
|
1896
1897
|
for (a in r)
|
|
1897
|
-
r[a] === !0 ? e.g(n.object, a, void 0,
|
|
1898
|
+
r[a] === !0 ? e.g(n.object, a, void 0, dr) : e.g(n.object, a, Cn(e, r[a], n), dr);
|
|
1898
1899
|
return r;
|
|
1899
1900
|
}
|
|
1900
1901
|
function Ee(e) {
|
|
1901
1902
|
return e.o[e.o.length - 1].isConstructor;
|
|
1902
1903
|
}
|
|
1903
1904
|
function Tn(e, t) {
|
|
1904
|
-
return t[0] ===
|
|
1905
|
+
return t[0] === Ge ? In(e, t[1]) : e.G(t[0], t[1]);
|
|
1905
1906
|
}
|
|
1906
1907
|
function xn(e, t, n) {
|
|
1907
|
-
return t[0] ===
|
|
1908
|
+
return t[0] === Ge ? Vr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1908
1909
|
}
|
|
1909
1910
|
function w(e, t, n) {
|
|
1910
|
-
throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t), pn(e, t, n)), ft(e, 4, t),
|
|
1911
|
+
throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t), pn(e, t, n)), ft(e, 4, t), Nr) : n === void 0 ? t : n;
|
|
1911
1912
|
}
|
|
1912
1913
|
function ft(e, t, n, r) {
|
|
1913
1914
|
if (t === 0)
|
|
@@ -1985,7 +1986,7 @@ function ee(e, t) {
|
|
|
1985
1986
|
}
|
|
1986
1987
|
return "???";
|
|
1987
1988
|
}
|
|
1988
|
-
function
|
|
1989
|
+
function fr(e, t, n) {
|
|
1989
1990
|
var r = e.o[e.o.length - 1], o = Array.from(n), i = o.shift();
|
|
1990
1991
|
n = Math.max(Number(o.shift() || 0), 0);
|
|
1991
1992
|
var a = e.ya();
|
|
@@ -1994,20 +1995,20 @@ function yr(e, t, n) {
|
|
|
1994
1995
|
a.type = "CallExpression", r = r.scope;
|
|
1995
1996
|
} else {
|
|
1996
1997
|
try {
|
|
1997
|
-
var d =
|
|
1998
|
+
var d = _e(String(i), "taskCode" + e.ic++);
|
|
1998
1999
|
} catch (m) {
|
|
1999
2000
|
w(e, e.T, "Invalid code: " + m.message);
|
|
2000
2001
|
}
|
|
2001
2002
|
a.type = "EvalProgram_", a.body = d.body, r = r.node.arguments[0], Pt(a, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
2002
2003
|
}
|
|
2003
|
-
return t = new ci(u, o, r, a, t ? n : -1),
|
|
2004
|
+
return t = new ci(u, o, r, a, t ? n : -1), Mr(e, t, n), t.Db;
|
|
2004
2005
|
}
|
|
2005
|
-
function
|
|
2006
|
+
function Mr(e, t, n) {
|
|
2006
2007
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
2007
2008
|
return r.time - o.time;
|
|
2008
2009
|
});
|
|
2009
2010
|
}
|
|
2010
|
-
function
|
|
2011
|
+
function mr(e, t) {
|
|
2011
2012
|
for (var n = 0; n < e.ca.length; n++)
|
|
2012
2013
|
if (e.ca[n].Db == t) {
|
|
2013
2014
|
e.ca.splice(n, 1);
|
|
@@ -2043,7 +2044,7 @@ j.ec = function(e) {
|
|
|
2043
2044
|
function S(e, t) {
|
|
2044
2045
|
this.node = e, this.scope = t;
|
|
2045
2046
|
}
|
|
2046
|
-
function
|
|
2047
|
+
function Ur(e, t, n) {
|
|
2047
2048
|
this.Va = e, this.S = t, this.object = n;
|
|
2048
2049
|
}
|
|
2049
2050
|
function P(e) {
|
|
@@ -2054,12 +2055,12 @@ j.xa = null;
|
|
|
2054
2055
|
j.H = "Object";
|
|
2055
2056
|
j.data = null;
|
|
2056
2057
|
j.toString = function() {
|
|
2057
|
-
if (!
|
|
2058
|
+
if (!lt)
|
|
2058
2059
|
return "[object Interpreter.Object]";
|
|
2059
2060
|
if (!(this instanceof P))
|
|
2060
2061
|
return String(this);
|
|
2061
2062
|
if (this.H === "Array") {
|
|
2062
|
-
var e =
|
|
2063
|
+
var e = hr;
|
|
2063
2064
|
e.push(this);
|
|
2064
2065
|
try {
|
|
2065
2066
|
var t = [], n = this.h.length, r = !1;
|
|
@@ -2075,7 +2076,7 @@ j.toString = function() {
|
|
|
2075
2076
|
return t.join(",");
|
|
2076
2077
|
}
|
|
2077
2078
|
if (this.H === "Error") {
|
|
2078
|
-
if (e =
|
|
2079
|
+
if (e = hr, e.indexOf(this) !== -1)
|
|
2079
2080
|
return "[object Error]";
|
|
2080
2081
|
n = this;
|
|
2081
2082
|
do
|
|
@@ -2102,7 +2103,7 @@ j.toString = function() {
|
|
|
2102
2103
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
2103
2104
|
};
|
|
2104
2105
|
j.valueOf = function() {
|
|
2105
|
-
return !
|
|
2106
|
+
return !lt || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2106
2107
|
};
|
|
2107
2108
|
function ci(e, t, n, r, o) {
|
|
2108
2109
|
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++pi, this.time = 0;
|
|
@@ -2111,7 +2112,7 @@ var pi = 0;
|
|
|
2111
2112
|
g.prototype.stepArrayExpression = function(e, t, n) {
|
|
2112
2113
|
n = n.elements;
|
|
2113
2114
|
var r = t.A || 0;
|
|
2114
|
-
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa =
|
|
2115
|
+
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = ze(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
2115
2116
|
if (n[r])
|
|
2116
2117
|
return t.A = r, new S(n[r], t.scope);
|
|
2117
2118
|
r++;
|
|
@@ -2268,7 +2269,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2268
2269
|
t.ia = 2;
|
|
2269
2270
|
var o = t.value;
|
|
2270
2271
|
if (Array.isArray(o)) {
|
|
2271
|
-
if (t.U = Tn(this, o), o[0] ===
|
|
2272
|
+
if (t.U = Tn(this, o), o[0] === Ge ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2272
2273
|
return t.ia = 1, mt(this, o, t.value);
|
|
2273
2274
|
} else
|
|
2274
2275
|
t.U = o;
|
|
@@ -2279,7 +2280,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2279
2280
|
return new S(n.arguments[t.A++], t.scope);
|
|
2280
2281
|
if (n.type === "NewExpression") {
|
|
2281
2282
|
if (o instanceof P && !o.Ab || w(this, this.j, ee(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2282
|
-
t.B =
|
|
2283
|
+
t.B = ze(this);
|
|
2283
2284
|
else {
|
|
2284
2285
|
var i = o.h.prototype;
|
|
2285
2286
|
(typeof i != "object" || i === null) && (i = this.M), t.B = this.s(i);
|
|
@@ -2292,7 +2293,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2292
2293
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2293
2294
|
else {
|
|
2294
2295
|
if (t.eb = !0, o instanceof P || w(this, this.j, ee(this, n.callee) + " is not a function"), e = o.node) {
|
|
2295
|
-
for (n = dn(this, e.body, o.Va), r =
|
|
2296
|
+
for (n = dn(this, e.body, o.Va), r = ze(this), o = 0; o < t.F.length; o++)
|
|
2296
2297
|
this.g(r, o, t.F[o]);
|
|
2297
2298
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2298
2299
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
@@ -2303,7 +2304,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2303
2304
|
t.value = o;
|
|
2304
2305
|
else {
|
|
2305
2306
|
try {
|
|
2306
|
-
r =
|
|
2307
|
+
r = _e(String(o), "eval" + this.Hb++);
|
|
2307
2308
|
} catch (u) {
|
|
2308
2309
|
w(this, this.T, "Invalid code: " + u.message);
|
|
2309
2310
|
}
|
|
@@ -2393,7 +2394,7 @@ g.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2393
2394
|
}
|
|
2394
2395
|
if (!t.wb)
|
|
2395
2396
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2396
|
-
t.pa = [
|
|
2397
|
+
t.pa = [Ge, e.fa[0].id.name];
|
|
2397
2398
|
else
|
|
2398
2399
|
return t.pa = null, t = new S(e, t.scope), t.sa = !0, t;
|
|
2399
2400
|
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = xn(this, t.pa, e)))
|
|
@@ -2430,7 +2431,7 @@ g.prototype.stepFunctionExpression = function(e, t, n) {
|
|
|
2430
2431
|
};
|
|
2431
2432
|
g.prototype.stepIdentifier = function(e, t, n) {
|
|
2432
2433
|
if (e.pop(), t.sa)
|
|
2433
|
-
e[e.length - 1].value = [
|
|
2434
|
+
e[e.length - 1].value = [Ge, n.name];
|
|
2434
2435
|
else {
|
|
2435
2436
|
if (t = In(this, n.name), this.P)
|
|
2436
2437
|
return mt(this, t, this.Na);
|
|
@@ -2583,7 +2584,7 @@ g.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2583
2584
|
case "delete":
|
|
2584
2585
|
if (n = !0, Array.isArray(r)) {
|
|
2585
2586
|
var o = r[0];
|
|
2586
|
-
o ===
|
|
2587
|
+
o === Ge && (o = t.scope), r = String(r[1]);
|
|
2587
2588
|
try {
|
|
2588
2589
|
delete o.h[r];
|
|
2589
2590
|
} catch {
|
|
@@ -2628,7 +2629,7 @@ g.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2628
2629
|
g.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2629
2630
|
n = n.fa;
|
|
2630
2631
|
var r = t.A || 0, o = n[r];
|
|
2631
|
-
for (t.Bb && o && (
|
|
2632
|
+
for (t.Bb && o && (Vr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2632
2633
|
if (o.ua)
|
|
2633
2634
|
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new S(o.ua, t.scope);
|
|
2634
2635
|
o = n[++r];
|
|
@@ -2668,7 +2669,7 @@ const di = (e) => e.split(`
|
|
|
2668
2669
|
${u}
|
|
2669
2670
|
`;
|
|
2670
2671
|
}).filter(Boolean).join(`
|
|
2671
|
-
`),
|
|
2672
|
+
`), gr = (e) => e + "JSON", hi = ({
|
|
2672
2673
|
builder: e,
|
|
2673
2674
|
context: t,
|
|
2674
2675
|
event: n,
|
|
@@ -2680,13 +2681,13 @@ const di = (e) => e.split(`
|
|
|
2680
2681
|
const u = {
|
|
2681
2682
|
...r,
|
|
2682
2683
|
...o
|
|
2683
|
-
}, d =
|
|
2684
|
+
}, d = Or({
|
|
2684
2685
|
builder: e,
|
|
2685
2686
|
context: t,
|
|
2686
2687
|
event: n,
|
|
2687
2688
|
state: u
|
|
2688
2689
|
}), m = d.map(([E]) => {
|
|
2689
|
-
const F =
|
|
2690
|
+
const F = gr(E);
|
|
2690
2691
|
return `var ${E} = ${F} === undefined ? undefined : JSON.parse(${F});`;
|
|
2691
2692
|
}).join(`
|
|
2692
2693
|
`), y = di(a);
|
|
@@ -2707,7 +2708,7 @@ theFunction();
|
|
|
2707
2708
|
}, O = function(E, F) {
|
|
2708
2709
|
d.forEach(([se, W]) => {
|
|
2709
2710
|
const A = JSON.stringify(W);
|
|
2710
|
-
E.setProperty(F,
|
|
2711
|
+
E.setProperty(F, gr(se), A);
|
|
2711
2712
|
}), E.setProperty(F, "setRootState", E.createNativeFunction(C));
|
|
2712
2713
|
};
|
|
2713
2714
|
try {
|
|
@@ -2749,7 +2750,7 @@ const mi = () => {
|
|
|
2749
2750
|
}
|
|
2750
2751
|
};
|
|
2751
2752
|
rn(ve, "cacheLimit", 20), rn(ve, "cache", /* @__PURE__ */ new Map());
|
|
2752
|
-
let
|
|
2753
|
+
let Ke = ve;
|
|
2753
2754
|
function At({
|
|
2754
2755
|
code: e,
|
|
2755
2756
|
context: t,
|
|
@@ -2776,15 +2777,15 @@ function At({
|
|
|
2776
2777
|
localState: n
|
|
2777
2778
|
};
|
|
2778
2779
|
if (u) {
|
|
2779
|
-
const m =
|
|
2780
|
+
const m = Ke.getCacheKey(d), y = Ke.getCachedValue(m);
|
|
2780
2781
|
if (y)
|
|
2781
2782
|
return y.value;
|
|
2782
2783
|
}
|
|
2783
2784
|
try {
|
|
2784
2785
|
const m = gi(d);
|
|
2785
2786
|
if (u) {
|
|
2786
|
-
const y =
|
|
2787
|
-
|
|
2787
|
+
const y = Ke.getCacheKey(d);
|
|
2788
|
+
Ke.setCachedValue(y, m);
|
|
2788
2789
|
}
|
|
2789
2790
|
return m;
|
|
2790
2791
|
} catch (m) {
|
|
@@ -2826,7 +2827,7 @@ const yi = ({
|
|
|
2826
2827
|
}
|
|
2827
2828
|
return a;
|
|
2828
2829
|
};
|
|
2829
|
-
function
|
|
2830
|
+
function Fr({
|
|
2830
2831
|
block: e,
|
|
2831
2832
|
context: t,
|
|
2832
2833
|
shouldEvaluateBindings: n,
|
|
@@ -2855,7 +2856,7 @@ function vi(e, t, n = {}) {
|
|
|
2855
2856
|
return r = this, o = arguments, y <= 0 || y > t ? (a && (clearTimeout(a), a = null), u = m, i = e.apply(r, o), a || (r = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, y)), i;
|
|
2856
2857
|
};
|
|
2857
2858
|
}
|
|
2858
|
-
function
|
|
2859
|
+
function ct(e, ...t) {
|
|
2859
2860
|
const n = Object(e);
|
|
2860
2861
|
for (let r = 1; r < arguments.length; r++) {
|
|
2861
2862
|
const o = arguments[r];
|
|
@@ -2865,25 +2866,22 @@ function Be(e, ...t) {
|
|
|
2865
2866
|
}
|
|
2866
2867
|
return n;
|
|
2867
2868
|
}
|
|
2868
|
-
const
|
|
2869
|
+
const Wr = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
2869
2870
|
function bi(e) {
|
|
2870
2871
|
for (const t of e)
|
|
2871
2872
|
switch (t.trigger) {
|
|
2872
2873
|
case "pageLoad":
|
|
2873
2874
|
Hr(t);
|
|
2874
2875
|
break;
|
|
2875
|
-
case "hover":
|
|
2876
|
-
Si(t);
|
|
2877
|
-
break;
|
|
2878
2876
|
case "scrollInView":
|
|
2879
|
-
|
|
2877
|
+
Si(t);
|
|
2880
2878
|
break;
|
|
2881
2879
|
}
|
|
2882
2880
|
}
|
|
2883
|
-
function
|
|
2881
|
+
function Dr(e) {
|
|
2884
2882
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2885
2883
|
}
|
|
2886
|
-
function
|
|
2884
|
+
function Lr(e, t) {
|
|
2887
2885
|
const n = ki(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, a = [o, i];
|
|
2888
2886
|
for (const u of a)
|
|
2889
2887
|
for (const d of n)
|
|
@@ -2899,12 +2897,12 @@ function ki(e) {
|
|
|
2899
2897
|
function Hr(e) {
|
|
2900
2898
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2901
2899
|
if (!t.length) {
|
|
2902
|
-
|
|
2900
|
+
Dr(e.elementId || e.id || "");
|
|
2903
2901
|
return;
|
|
2904
2902
|
}
|
|
2905
2903
|
Array.from(t).forEach((n) => {
|
|
2906
|
-
|
|
2907
|
-
n.style.transition = `all ${e.duration}s ${
|
|
2904
|
+
Lr(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ct(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2905
|
+
n.style.transition = `all ${e.duration}s ${Wr(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ct(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2908
2906
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
2909
2907
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2910
2908
|
});
|
|
@@ -2913,38 +2911,18 @@ function Hr(e) {
|
|
|
2913
2911
|
function Si(e) {
|
|
2914
2912
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2915
2913
|
if (!t.length) {
|
|
2916
|
-
|
|
2917
|
-
return;
|
|
2918
|
-
}
|
|
2919
|
-
Array.from(t).forEach((n) => {
|
|
2920
|
-
Pn(e, n);
|
|
2921
|
-
const r = e.steps[0].styles, o = e.steps[1].styles;
|
|
2922
|
-
function i() {
|
|
2923
|
-
Be(n.style, r);
|
|
2924
|
-
}
|
|
2925
|
-
function a() {
|
|
2926
|
-
Be(n.style, o);
|
|
2927
|
-
}
|
|
2928
|
-
i(), n.addEventListener("mouseenter", a), n.addEventListener("mouseleave", i), setTimeout(() => {
|
|
2929
|
-
n.style.transition = `all ${e.duration}s ${An(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
2930
|
-
});
|
|
2931
|
-
});
|
|
2932
|
-
}
|
|
2933
|
-
function Ci(e) {
|
|
2934
|
-
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2935
|
-
if (!t.length) {
|
|
2936
|
-
$n(e.elementId || e.id || "");
|
|
2914
|
+
Dr(e.elementId || e.id || "");
|
|
2937
2915
|
return;
|
|
2938
2916
|
}
|
|
2939
2917
|
Array.from(t).forEach((n) => {
|
|
2940
|
-
|
|
2918
|
+
Lr(e, n);
|
|
2941
2919
|
let r = !1, o = !1;
|
|
2942
2920
|
function i() {
|
|
2943
2921
|
!r && u(n) ? (r = !0, o = !0, setTimeout(() => {
|
|
2944
|
-
|
|
2922
|
+
ct(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
2945
2923
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
2946
2924
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
2947
|
-
})) : e.repeat && r && !o && !u(n) && (r = !1,
|
|
2925
|
+
})) : e.repeat && r && !o && !u(n) && (r = !1, ct(n.style, e.steps[0].styles));
|
|
2948
2926
|
}
|
|
2949
2927
|
const a = vi(i, 200, {
|
|
2950
2928
|
leading: !1
|
|
@@ -2955,41 +2933,41 @@ function Ci(e) {
|
|
|
2955
2933
|
}
|
|
2956
2934
|
const d = e.steps[0].styles;
|
|
2957
2935
|
function m() {
|
|
2958
|
-
|
|
2936
|
+
ct(n.style, d);
|
|
2959
2937
|
}
|
|
2960
2938
|
m(), setTimeout(() => {
|
|
2961
|
-
n.style.transition = `all ${e.duration}s ${
|
|
2939
|
+
n.style.transition = `all ${e.duration}s ${Wr(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
2962
2940
|
}), document.addEventListener("scroll", a, {
|
|
2963
2941
|
capture: !0,
|
|
2964
2942
|
passive: !0
|
|
2965
2943
|
}), i();
|
|
2966
2944
|
});
|
|
2967
2945
|
}
|
|
2968
|
-
const
|
|
2946
|
+
const Ci = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Kr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2969
2947
|
if (typeof r == "string")
|
|
2970
|
-
return `${
|
|
2971
|
-
}).filter($e),
|
|
2972
|
-
`),
|
|
2948
|
+
return `${Ci(n)}: ${r};`;
|
|
2949
|
+
}).filter($e), wi = (e) => Kr(e).join(`
|
|
2950
|
+
`), Vl = ({
|
|
2973
2951
|
mediaQuery: e,
|
|
2974
2952
|
className: t,
|
|
2975
2953
|
styles: n
|
|
2976
2954
|
}) => {
|
|
2977
2955
|
const r = `.${t} {
|
|
2978
|
-
${
|
|
2956
|
+
${wi(n)}
|
|
2979
2957
|
}`;
|
|
2980
2958
|
return e ? `${e} {
|
|
2981
2959
|
${r}
|
|
2982
2960
|
}` : r;
|
|
2983
2961
|
};
|
|
2984
|
-
function
|
|
2962
|
+
function Ei({
|
|
2985
2963
|
style: e
|
|
2986
2964
|
}) {
|
|
2987
2965
|
return e;
|
|
2988
2966
|
}
|
|
2989
|
-
const
|
|
2967
|
+
const Ml = ({
|
|
2990
2968
|
block: e,
|
|
2991
2969
|
context: t
|
|
2992
|
-
}) => _r(
|
|
2970
|
+
}) => _r(Ei({
|
|
2993
2971
|
style: e.style || {},
|
|
2994
2972
|
context: t,
|
|
2995
2973
|
block: e
|
|
@@ -3007,13 +2985,13 @@ function _r(e) {
|
|
|
3007
2985
|
return e;
|
|
3008
2986
|
}
|
|
3009
2987
|
}
|
|
3010
|
-
const
|
|
2988
|
+
const Ii = ({
|
|
3011
2989
|
block: e,
|
|
3012
2990
|
context: t,
|
|
3013
2991
|
registeredComponents: n
|
|
3014
2992
|
}) => {
|
|
3015
2993
|
var i;
|
|
3016
|
-
const r = (i =
|
|
2994
|
+
const r = (i = Fr({
|
|
3017
2995
|
block: e,
|
|
3018
2996
|
localState: t.localState,
|
|
3019
2997
|
rootState: t.rootState,
|
|
@@ -3029,7 +3007,7 @@ const Ti = ({
|
|
|
3029
3007
|
console.warn(`
|
|
3030
3008
|
Could not find a registered component named "${r}".
|
|
3031
3009
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
3032
|
-
},
|
|
3010
|
+
}, Ti = ({
|
|
3033
3011
|
block: e,
|
|
3034
3012
|
context: t
|
|
3035
3013
|
}) => {
|
|
@@ -3063,39 +3041,39 @@ const Ti = ({
|
|
|
3063
3041
|
},
|
|
3064
3042
|
block: r
|
|
3065
3043
|
}));
|
|
3066
|
-
},
|
|
3044
|
+
}, xi = () => import("./block-styles-ZxWEJSxb.js").then((e) => e.default).catch((e) => {
|
|
3067
3045
|
throw console.error(
|
|
3068
3046
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
3069
3047
|
e
|
|
3070
3048
|
), e;
|
|
3071
|
-
}),
|
|
3049
|
+
}), Ri = () => import("./block-wrapper-E58yJMa2.js").then((e) => e.default).catch((e) => {
|
|
3072
3050
|
throw console.error(
|
|
3073
3051
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3074
3052
|
e
|
|
3075
3053
|
), e;
|
|
3076
|
-
}),
|
|
3054
|
+
}), Ai = () => import("./component-ref-lMVExvau.js").then((e) => e.default).catch((e) => {
|
|
3077
3055
|
throw console.error(
|
|
3078
3056
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3079
3057
|
e
|
|
3080
3058
|
), e;
|
|
3081
|
-
}),
|
|
3059
|
+
}), $i = () => import("./repeated-block-kei-SmhT.js").then((e) => e.default).catch((e) => {
|
|
3082
3060
|
throw console.error(
|
|
3083
3061
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3084
3062
|
e
|
|
3085
3063
|
), e;
|
|
3086
|
-
}),
|
|
3064
|
+
}), Pi = N({
|
|
3087
3065
|
name: "block",
|
|
3088
3066
|
components: {
|
|
3089
|
-
BlockStyles: It(
|
|
3090
|
-
ComponentRef: It(
|
|
3091
|
-
RepeatedBlock: It(
|
|
3092
|
-
BlockWrapper: It(
|
|
3067
|
+
BlockStyles: It(xi),
|
|
3068
|
+
ComponentRef: It(Ai),
|
|
3069
|
+
RepeatedBlock: It($i),
|
|
3070
|
+
BlockWrapper: It(Ri)
|
|
3093
3071
|
},
|
|
3094
3072
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
3095
3073
|
mounted() {
|
|
3096
3074
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
3097
3075
|
t && e && bi(
|
|
3098
|
-
t.
|
|
3076
|
+
t.map((n) => ({
|
|
3099
3077
|
...n,
|
|
3100
3078
|
elementId: e
|
|
3101
3079
|
}))
|
|
@@ -3103,21 +3081,21 @@ const Ti = ({
|
|
|
3103
3081
|
},
|
|
3104
3082
|
computed: {
|
|
3105
3083
|
blockComponent() {
|
|
3106
|
-
return
|
|
3084
|
+
return Ii({
|
|
3107
3085
|
block: this.block,
|
|
3108
3086
|
context: this.context,
|
|
3109
3087
|
registeredComponents: this.registeredComponents
|
|
3110
3088
|
});
|
|
3111
3089
|
},
|
|
3112
3090
|
repeatItem() {
|
|
3113
|
-
return
|
|
3091
|
+
return Ti({
|
|
3114
3092
|
block: this.block,
|
|
3115
3093
|
context: this.context
|
|
3116
3094
|
});
|
|
3117
3095
|
},
|
|
3118
3096
|
processedBlock() {
|
|
3119
3097
|
var e;
|
|
3120
|
-
return (e = this.block.repeat) != null && e.collection ? this.block :
|
|
3098
|
+
return (e = this.block.repeat) != null && e.collection ? this.block : Fr({
|
|
3121
3099
|
block: this.block,
|
|
3122
3100
|
localState: this.context.localState,
|
|
3123
3101
|
rootState: this.context.rootState,
|
|
@@ -3166,7 +3144,7 @@ const Ti = ({
|
|
|
3166
3144
|
}
|
|
3167
3145
|
}
|
|
3168
3146
|
});
|
|
3169
|
-
function
|
|
3147
|
+
function Oi(e, t, n, r, o, i) {
|
|
3170
3148
|
var f;
|
|
3171
3149
|
const a = U("block-styles"), u = U("component-ref"), d = U("block", !0), m = U("block-wrapper"), y = U("repeated-block");
|
|
3172
3150
|
return e.canShowBlock ? (v(), $(re, { key: 0 }, [
|
|
@@ -3186,7 +3164,7 @@ function ji(e, t, n, r, o, i) {
|
|
|
3186
3164
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
3187
3165
|
isInteractive: e.componentRefProps.isInteractive
|
|
3188
3166
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (v(), $(re, { key: 0 }, [
|
|
3189
|
-
e.repeatItem ? (v(!0), $(re, { key: 1 },
|
|
3167
|
+
e.repeatItem ? (v(!0), $(re, { key: 1 }, Be(e.repeatItem, (C, O) => (v(), B(y, {
|
|
3190
3168
|
key: O,
|
|
3191
3169
|
repeatContext: C.context,
|
|
3192
3170
|
block: C.block,
|
|
@@ -3211,7 +3189,7 @@ function ji(e, t, n, r, o, i) {
|
|
|
3211
3189
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
3212
3190
|
isInteractive: e.componentRefProps.isInteractive
|
|
3213
3191
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
3214
|
-
(v(!0), $(re, null,
|
|
3192
|
+
(v(!0), $(re, null, Be(e.childrenWithoutParentComponent, (C, O) => (v(), B(d, {
|
|
3215
3193
|
key: C.id,
|
|
3216
3194
|
block: C,
|
|
3217
3195
|
registeredComponents: e.registeredComponents,
|
|
@@ -3224,10 +3202,10 @@ function ji(e, t, n, r, o, i) {
|
|
|
3224
3202
|
], 64))
|
|
3225
3203
|
], 64)) : D("", !0);
|
|
3226
3204
|
}
|
|
3227
|
-
const
|
|
3205
|
+
const An = /* @__PURE__ */ V(Pi, [["render", Oi]]), Ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3228
3206
|
__proto__: null,
|
|
3229
|
-
default:
|
|
3230
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3207
|
+
default: An
|
|
3208
|
+
}, Symbol.toStringTag, { value: "Module" })), ji = N({
|
|
3231
3209
|
name: "builder-blocks-wrapper",
|
|
3232
3210
|
props: [
|
|
3233
3211
|
"blocks",
|
|
@@ -3272,8 +3250,8 @@ const On = /* @__PURE__ */ V(Oi, [["render", ji]]), Fl = /* @__PURE__ */ Object.
|
|
|
3272
3250
|
}
|
|
3273
3251
|
}
|
|
3274
3252
|
});
|
|
3275
|
-
function
|
|
3276
|
-
return v(), B(
|
|
3253
|
+
function Ni(e, t, n, r, o, i) {
|
|
3254
|
+
return v(), B(at(e.BlocksWrapper), J({
|
|
3277
3255
|
class: e.className + " component-1o2kztlxdt6",
|
|
3278
3256
|
"builder-path": e.path,
|
|
3279
3257
|
"builder-parent-id": e.parent,
|
|
@@ -3288,9 +3266,9 @@ function Bi(e, t, n, r, o, i) {
|
|
|
3288
3266
|
_: 3
|
|
3289
3267
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
3290
3268
|
}
|
|
3291
|
-
const
|
|
3269
|
+
const Bi = /* @__PURE__ */ V(ji, [["render", Ni], ["__scopeId", "data-v-9724ab41"]]), Vi = N({
|
|
3292
3270
|
name: "builder-blocks",
|
|
3293
|
-
components: { BlocksWrapper:
|
|
3271
|
+
components: { BlocksWrapper: Bi, Block: An },
|
|
3294
3272
|
props: [
|
|
3295
3273
|
"blocks",
|
|
3296
3274
|
"parent",
|
|
@@ -3302,10 +3280,10 @@ const Vi = /* @__PURE__ */ V(Ni, [["render", Bi], ["__scopeId", "data-v-9724ab41
|
|
|
3302
3280
|
],
|
|
3303
3281
|
inject: {
|
|
3304
3282
|
builderContext: un.key,
|
|
3305
|
-
componentsContext:
|
|
3283
|
+
componentsContext: Rr.key
|
|
3306
3284
|
}
|
|
3307
3285
|
});
|
|
3308
|
-
function
|
|
3286
|
+
function Mi(e, t, n, r, o, i) {
|
|
3309
3287
|
var d, m;
|
|
3310
3288
|
const a = U("block"), u = U("blocks-wrapper");
|
|
3311
3289
|
return v(), B(u, {
|
|
@@ -3317,7 +3295,7 @@ function Ui(e, t, n, r, o, i) {
|
|
|
3317
3295
|
BlocksWrapperProps: ((m = e.context) == null ? void 0 : m.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
|
|
3318
3296
|
}, {
|
|
3319
3297
|
default: we(() => [
|
|
3320
|
-
e.blocks ? (v(!0), $(re, { key: 0 },
|
|
3298
|
+
e.blocks ? (v(!0), $(re, { key: 0 }, Be(e.blocks, (y, f) => (v(), B(a, {
|
|
3321
3299
|
key: y.id,
|
|
3322
3300
|
block: y,
|
|
3323
3301
|
linkComponent: e.linkComponent,
|
|
@@ -3328,9 +3306,9 @@ function Ui(e, t, n, r, o, i) {
|
|
|
3328
3306
|
_: 1
|
|
3329
3307
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
3330
3308
|
}
|
|
3331
|
-
const jt = /* @__PURE__ */ V(
|
|
3309
|
+
const jt = /* @__PURE__ */ V(Vi, [["render", Mi]]), $n = N({
|
|
3332
3310
|
render() {
|
|
3333
|
-
return
|
|
3311
|
+
return Tr("style", {
|
|
3334
3312
|
innerHTML: this.styles,
|
|
3335
3313
|
"data-id": this.id
|
|
3336
3314
|
});
|
|
@@ -3353,7 +3331,7 @@ const jt = /* @__PURE__ */ V(Mi, [["render", Ui]]), jn = N({
|
|
|
3353
3331
|
default: 991,
|
|
3354
3332
|
max: 1200
|
|
3355
3333
|
}
|
|
3356
|
-
},
|
|
3334
|
+
}, Fl = (e, t = zr) => `@media (max-width: ${t[e].max}px)`, Ui = ({
|
|
3357
3335
|
small: e,
|
|
3358
3336
|
medium: t
|
|
3359
3337
|
}) => {
|
|
@@ -3379,10 +3357,10 @@ const jt = /* @__PURE__ */ V(Mi, [["render", Ui]]), jn = N({
|
|
|
3379
3357
|
min: i,
|
|
3380
3358
|
default: i + 1
|
|
3381
3359
|
}, n;
|
|
3382
|
-
},
|
|
3360
|
+
}, Fi = N({
|
|
3383
3361
|
name: "builder-columns",
|
|
3384
3362
|
components: {
|
|
3385
|
-
InlinedStyles:
|
|
3363
|
+
InlinedStyles: $n,
|
|
3386
3364
|
DynamicRenderer: mn,
|
|
3387
3365
|
Blocks: jt
|
|
3388
3366
|
},
|
|
@@ -3496,13 +3474,13 @@ const jt = /* @__PURE__ */ V(Mi, [["render", Ui]]), jn = N({
|
|
|
3496
3474
|
},
|
|
3497
3475
|
getWidthForBreakpointSize(e) {
|
|
3498
3476
|
var n, r;
|
|
3499
|
-
return
|
|
3477
|
+
return Ui(
|
|
3500
3478
|
((r = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : r.breakpoints) || {}
|
|
3501
3479
|
)[e].max;
|
|
3502
3480
|
}
|
|
3503
3481
|
}
|
|
3504
3482
|
});
|
|
3505
|
-
function
|
|
3483
|
+
function Wi(e, t, n, r, o, i) {
|
|
3506
3484
|
const a = U("inlined-styles"), u = U("blocks"), d = U("dynamic-renderer");
|
|
3507
3485
|
return v(), $("div", J({
|
|
3508
3486
|
class: `builder-columns ${e.builderBlock.id}-breakpoints div-2fnk003dqad`,
|
|
@@ -3513,7 +3491,7 @@ function Di(e, t, n, r, o, i) {
|
|
|
3513
3491
|
id: "builderio-columns",
|
|
3514
3492
|
styles: e.columnsStyles
|
|
3515
3493
|
}, null, 8, ["styles"])) : D("", !0),
|
|
3516
|
-
(v(!0), $(re, null,
|
|
3494
|
+
(v(!0), $(re, null, Be(e.columns, (m, y) => (v(), B(d, {
|
|
3517
3495
|
key: y,
|
|
3518
3496
|
TagName: m.link ? e.builderLinkComponent || "a" : "div",
|
|
3519
3497
|
actionAttributes: {},
|
|
@@ -3542,32 +3520,32 @@ function Di(e, t, n, r, o, i) {
|
|
|
3542
3520
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
3543
3521
|
], 16);
|
|
3544
3522
|
}
|
|
3545
|
-
const
|
|
3523
|
+
const Di = /* @__PURE__ */ V(Fi, [["render", Wi], ["__scopeId", "data-v-6caab097"]]), Li = N({
|
|
3546
3524
|
name: "builder-fragment-component",
|
|
3547
3525
|
props: []
|
|
3548
3526
|
});
|
|
3549
|
-
function
|
|
3527
|
+
function Hi(e, t, n, r, o, i) {
|
|
3550
3528
|
return v(), $("span", null, [
|
|
3551
3529
|
pe(e.$slots, "default")
|
|
3552
3530
|
]);
|
|
3553
3531
|
}
|
|
3554
|
-
const
|
|
3555
|
-
function
|
|
3532
|
+
const Ki = /* @__PURE__ */ V(Li, [["render", Hi]]);
|
|
3533
|
+
function yr(e) {
|
|
3556
3534
|
return e.replace(/http(s)?:/, "");
|
|
3557
3535
|
}
|
|
3558
|
-
function
|
|
3536
|
+
function _i(e = "", t, n) {
|
|
3559
3537
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3560
3538
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
3561
3539
|
}
|
|
3562
|
-
function
|
|
3540
|
+
function zi(e, t) {
|
|
3563
3541
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3564
3542
|
return e;
|
|
3565
3543
|
if (t === "master")
|
|
3566
|
-
return
|
|
3544
|
+
return yr(e);
|
|
3567
3545
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
3568
3546
|
if (n) {
|
|
3569
3547
|
const r = e.split(n[0]), o = n[3], i = t.match("x") ? t : `${t}x`;
|
|
3570
|
-
return
|
|
3548
|
+
return yr(`${r[0]}_${i}${o}`);
|
|
3571
3549
|
}
|
|
3572
3550
|
return null;
|
|
3573
3551
|
}
|
|
@@ -3578,11 +3556,11 @@ function sn(e) {
|
|
|
3578
3556
|
if (e.match(/builder\.io/)) {
|
|
3579
3557
|
let n = e;
|
|
3580
3558
|
const r = Number(e.split("?width=")[1]);
|
|
3581
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
3559
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${_i(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
3582
3560
|
}
|
|
3583
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3561
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [zi(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3584
3562
|
}
|
|
3585
|
-
const
|
|
3563
|
+
const Gi = N({
|
|
3586
3564
|
name: "builder-image",
|
|
3587
3565
|
props: [
|
|
3588
3566
|
"image",
|
|
@@ -3628,11 +3606,11 @@ const qi = N({
|
|
|
3628
3606
|
return this.aspectRatio ? e : void 0;
|
|
3629
3607
|
}
|
|
3630
3608
|
}
|
|
3631
|
-
}),
|
|
3609
|
+
}), qi = ["srcset"], Ji = ["alt", "role", "src", "srcset", "sizes"], Xi = {
|
|
3632
3610
|
key: 2,
|
|
3633
3611
|
class: "div-1be3j8m9ewb-2"
|
|
3634
3612
|
};
|
|
3635
|
-
function
|
|
3613
|
+
function Yi(e, t, n, r, o, i) {
|
|
3636
3614
|
var a, u, d, m;
|
|
3637
3615
|
return v(), $(re, null, [
|
|
3638
3616
|
an("picture", null, [
|
|
@@ -3640,7 +3618,7 @@ function Zi(e, t, n, r, o, i) {
|
|
|
3640
3618
|
key: 0,
|
|
3641
3619
|
type: "image/webp",
|
|
3642
3620
|
srcset: e.webpSrcSet
|
|
3643
|
-
}, null, 8,
|
|
3621
|
+
}, null, 8, qi)) : D("", !0),
|
|
3644
3622
|
an("img", {
|
|
3645
3623
|
loading: "lazy",
|
|
3646
3624
|
alt: e.altText,
|
|
@@ -3650,13 +3628,13 @@ function Zi(e, t, n, r, o, i) {
|
|
|
3650
3628
|
objectFit: e.backgroundSize || "cover",
|
|
3651
3629
|
...e.aspectRatioCss
|
|
3652
3630
|
}),
|
|
3653
|
-
class:
|
|
3631
|
+
class: xr(
|
|
3654
3632
|
"builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
|
|
3655
3633
|
),
|
|
3656
3634
|
src: e.image,
|
|
3657
3635
|
srcset: e.srcSetToUse,
|
|
3658
3636
|
sizes: e.sizes
|
|
3659
|
-
}, null, 14,
|
|
3637
|
+
}, null, 14, Ji)
|
|
3660
3638
|
]),
|
|
3661
3639
|
e.aspectRatio && !((u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent) ? (v(), $("div", {
|
|
3662
3640
|
key: 0,
|
|
@@ -3666,19 +3644,19 @@ function Zi(e, t, n, r, o, i) {
|
|
|
3666
3644
|
})
|
|
3667
3645
|
}, null, 4)) : D("", !0),
|
|
3668
3646
|
(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),
|
|
3669
|
-
!e.fitContent && e.$slots.default ? (v(), $("div",
|
|
3647
|
+
!e.fitContent && e.$slots.default ? (v(), $("div", Xi, [
|
|
3670
3648
|
pe(e.$slots, "default", {}, void 0, !0)
|
|
3671
3649
|
])) : D("", !0)
|
|
3672
3650
|
], 64);
|
|
3673
3651
|
}
|
|
3674
|
-
const
|
|
3652
|
+
const Zi = /* @__PURE__ */ V(Gi, [["render", Yi], ["__scopeId", "data-v-dde76a35"]]), Qi = N({
|
|
3675
3653
|
name: "builder-section-component",
|
|
3676
3654
|
props: ["attributes", "maxWidth"],
|
|
3677
3655
|
data() {
|
|
3678
3656
|
return { filterAttrs: Pe };
|
|
3679
3657
|
}
|
|
3680
3658
|
});
|
|
3681
|
-
function
|
|
3659
|
+
function es(e, t, n, r, o, i) {
|
|
3682
3660
|
return v(), $("section", J({
|
|
3683
3661
|
style: {
|
|
3684
3662
|
width: "100%",
|
|
@@ -3696,7 +3674,7 @@ function ts(e, t, n, r, o, i) {
|
|
|
3696
3674
|
pe(e.$slots, "default")
|
|
3697
3675
|
], 16);
|
|
3698
3676
|
}
|
|
3699
|
-
const
|
|
3677
|
+
const ts = /* @__PURE__ */ V(Qi, [["render", es]]), ns = (e) => {
|
|
3700
3678
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3701
3679
|
return e;
|
|
3702
3680
|
const t = e.split(".");
|
|
@@ -3712,13 +3690,13 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
3712
3690
|
Z.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3713
3691
|
return;
|
|
3714
3692
|
}
|
|
3715
|
-
}, qr = async (e) => Gr(e),
|
|
3693
|
+
}, qr = async (e) => Gr(e), rs = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter($e).join("; "), os = [["secure", ""], ["SameSite", "None"]], is = ({
|
|
3716
3694
|
name: e,
|
|
3717
3695
|
value: t,
|
|
3718
3696
|
expires: n
|
|
3719
3697
|
}) => {
|
|
3720
|
-
const o = (X() ? location.protocol === "https:" : !0) ?
|
|
3721
|
-
return
|
|
3698
|
+
const o = (X() ? location.protocol === "https:" : !0) ? os : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], a = [[e, t], ...i, ["path", "/"], ["domain", ns(window.location.hostname)], ...o];
|
|
3699
|
+
return rs(a);
|
|
3722
3700
|
}, Jr = async ({
|
|
3723
3701
|
name: e,
|
|
3724
3702
|
value: t,
|
|
@@ -3728,7 +3706,7 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
3728
3706
|
try {
|
|
3729
3707
|
if (!r)
|
|
3730
3708
|
return;
|
|
3731
|
-
const o =
|
|
3709
|
+
const o = is({
|
|
3732
3710
|
name: e,
|
|
3733
3711
|
value: t,
|
|
3734
3712
|
expires: n
|
|
@@ -3737,24 +3715,24 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
3737
3715
|
} catch (o) {
|
|
3738
3716
|
Z.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3739
3717
|
}
|
|
3740
|
-
},
|
|
3718
|
+
}, ss = "builder.tests", Pn = (e) => `${ss}.${e}`, as = ({
|
|
3741
3719
|
contentId: e
|
|
3742
3720
|
}) => qr({
|
|
3743
|
-
name:
|
|
3721
|
+
name: Pn(e),
|
|
3744
3722
|
canTrack: !0
|
|
3745
|
-
}),
|
|
3723
|
+
}), ls = ({
|
|
3746
3724
|
contentId: e
|
|
3747
3725
|
}) => Gr({
|
|
3748
|
-
name:
|
|
3726
|
+
name: Pn(e),
|
|
3749
3727
|
canTrack: !0
|
|
3750
|
-
}),
|
|
3728
|
+
}), us = ({
|
|
3751
3729
|
contentId: e,
|
|
3752
3730
|
value: t
|
|
3753
3731
|
}) => Jr({
|
|
3754
|
-
name:
|
|
3732
|
+
name: Pn(e),
|
|
3755
3733
|
value: t,
|
|
3756
3734
|
canTrack: !0
|
|
3757
|
-
}), Xr = (e) => $e(e.id) && $e(e.variations) && Object.keys(e.variations).length > 0,
|
|
3735
|
+
}), Xr = (e) => $e(e.id) && $e(e.variations) && Object.keys(e.variations).length > 0, cs = ({
|
|
3758
3736
|
id: e,
|
|
3759
3737
|
variations: t
|
|
3760
3738
|
}) => {
|
|
@@ -3768,8 +3746,8 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
3768
3746
|
}
|
|
3769
3747
|
return e;
|
|
3770
3748
|
}, Yr = (e) => {
|
|
3771
|
-
const t =
|
|
3772
|
-
return
|
|
3749
|
+
const t = cs(e);
|
|
3750
|
+
return us({
|
|
3773
3751
|
contentId: e.id,
|
|
3774
3752
|
value: t
|
|
3775
3753
|
}).catch((n) => {
|
|
@@ -3789,7 +3767,7 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
3789
3767
|
testVariationId: n.id,
|
|
3790
3768
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3791
3769
|
};
|
|
3792
|
-
},
|
|
3770
|
+
}, ps = ({
|
|
3793
3771
|
item: e,
|
|
3794
3772
|
canTrack: t
|
|
3795
3773
|
}) => {
|
|
@@ -3799,7 +3777,7 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
3799
3777
|
return;
|
|
3800
3778
|
if (!Xr(e))
|
|
3801
3779
|
return e;
|
|
3802
|
-
const n =
|
|
3780
|
+
const n = ls({
|
|
3803
3781
|
contentId: e.id
|
|
3804
3782
|
}) || Yr({
|
|
3805
3783
|
variations: e.variations,
|
|
@@ -3812,13 +3790,13 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
3812
3790
|
...e,
|
|
3813
3791
|
...r
|
|
3814
3792
|
};
|
|
3815
|
-
},
|
|
3793
|
+
}, ds = async ({
|
|
3816
3794
|
item: e,
|
|
3817
3795
|
canTrack: t
|
|
3818
3796
|
}) => {
|
|
3819
3797
|
if (!t || !Xr(e))
|
|
3820
3798
|
return e;
|
|
3821
|
-
const r = await
|
|
3799
|
+
const r = await as({
|
|
3822
3800
|
contentId: e.id
|
|
3823
3801
|
}) || Yr({
|
|
3824
3802
|
variations: e.variations,
|
|
@@ -3831,7 +3809,7 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
3831
3809
|
...e,
|
|
3832
3810
|
...o
|
|
3833
3811
|
};
|
|
3834
|
-
}, ht = (e) => $e(e) ? e : !0,
|
|
3812
|
+
}, ht = (e) => $e(e) ? e : !0, hs = {
|
|
3835
3813
|
name: "Core:Button",
|
|
3836
3814
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3837
3815
|
defaultStyles: {
|
|
@@ -3864,7 +3842,7 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
3864
3842
|
}],
|
|
3865
3843
|
static: !0,
|
|
3866
3844
|
noWrap: !0
|
|
3867
|
-
},
|
|
3845
|
+
}, fs = {
|
|
3868
3846
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3869
3847
|
name: "Columns",
|
|
3870
3848
|
isRSC: !0,
|
|
@@ -4065,13 +4043,13 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
4065
4043
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
4066
4044
|
advanced: !0
|
|
4067
4045
|
}]
|
|
4068
|
-
},
|
|
4046
|
+
}, ms = {
|
|
4069
4047
|
name: "Fragment",
|
|
4070
4048
|
static: !0,
|
|
4071
4049
|
hidden: !0,
|
|
4072
4050
|
canHaveChildren: !0,
|
|
4073
4051
|
noWrap: !0
|
|
4074
|
-
},
|
|
4052
|
+
}, gs = {
|
|
4075
4053
|
name: "Image",
|
|
4076
4054
|
static: !0,
|
|
4077
4055
|
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",
|
|
@@ -4171,7 +4149,7 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
4171
4149
|
advanced: !0,
|
|
4172
4150
|
defaultValue: 0.7041
|
|
4173
4151
|
}]
|
|
4174
|
-
},
|
|
4152
|
+
}, ys = {
|
|
4175
4153
|
name: "Core:Section",
|
|
4176
4154
|
static: !0,
|
|
4177
4155
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -4210,7 +4188,7 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
4210
4188
|
}
|
|
4211
4189
|
}
|
|
4212
4190
|
}]
|
|
4213
|
-
},
|
|
4191
|
+
}, vs = {
|
|
4214
4192
|
name: "Slot",
|
|
4215
4193
|
isRSC: !0,
|
|
4216
4194
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -4223,12 +4201,12 @@ const ns = /* @__PURE__ */ V(es, [["render", ts]]), rs = (e) => {
|
|
|
4223
4201
|
required: !0,
|
|
4224
4202
|
defaultValue: "children"
|
|
4225
4203
|
}]
|
|
4226
|
-
},
|
|
4204
|
+
}, bs = N({
|
|
4227
4205
|
name: "builder-slot",
|
|
4228
4206
|
components: { Blocks: jt },
|
|
4229
4207
|
props: ["builderContext", "name"]
|
|
4230
4208
|
});
|
|
4231
|
-
function
|
|
4209
|
+
function ks(e, t, n, r, o, i) {
|
|
4232
4210
|
var u, d, m;
|
|
4233
4211
|
const a = U("blocks");
|
|
4234
4212
|
return v(), $("div", J(
|
|
@@ -4247,7 +4225,7 @@ function Ss(e, t, n, r, o, i) {
|
|
|
4247
4225
|
}, null, 8, ["parent", "path", "context", "blocks"])
|
|
4248
4226
|
], 16);
|
|
4249
4227
|
}
|
|
4250
|
-
const
|
|
4228
|
+
const Ss = /* @__PURE__ */ V(bs, [["render", ks]]), Cs = {
|
|
4251
4229
|
name: "Symbol",
|
|
4252
4230
|
noWrap: !0,
|
|
4253
4231
|
static: !0,
|
|
@@ -4280,7 +4258,7 @@ const Cs = /* @__PURE__ */ V(ks, [["render", Ss]]), ws = {
|
|
|
4280
4258
|
hideFromUI: !0,
|
|
4281
4259
|
type: "boolean"
|
|
4282
4260
|
}]
|
|
4283
|
-
},
|
|
4261
|
+
}, ws = {
|
|
4284
4262
|
name: "Text",
|
|
4285
4263
|
static: !0,
|
|
4286
4264
|
isRSC: !0,
|
|
@@ -4298,11 +4276,11 @@ const Cs = /* @__PURE__ */ V(ks, [["render", Ss]]), ws = {
|
|
|
4298
4276
|
height: "auto",
|
|
4299
4277
|
textAlign: "center"
|
|
4300
4278
|
}
|
|
4301
|
-
},
|
|
4279
|
+
}, Es = N({
|
|
4302
4280
|
name: "builder-text",
|
|
4303
4281
|
props: ["text"]
|
|
4304
|
-
}),
|
|
4305
|
-
function
|
|
4282
|
+
}), Is = ["innerHTML"];
|
|
4283
|
+
function Ts(e, t, n, r, o, i) {
|
|
4306
4284
|
var a;
|
|
4307
4285
|
return v(), $("div", {
|
|
4308
4286
|
class: "builder-text",
|
|
@@ -4310,9 +4288,9 @@ function xs(e, t, n, r, o, i) {
|
|
|
4310
4288
|
style: {
|
|
4311
4289
|
outline: "none"
|
|
4312
4290
|
}
|
|
4313
|
-
}, null, 8,
|
|
4291
|
+
}, null, 8, Is);
|
|
4314
4292
|
}
|
|
4315
|
-
const
|
|
4293
|
+
const xs = /* @__PURE__ */ V(Es, [["render", Ts]]), Rs = {
|
|
4316
4294
|
name: "Custom Code",
|
|
4317
4295
|
static: !0,
|
|
4318
4296
|
requiredPermissions: ["editCode"],
|
|
@@ -4334,7 +4312,7 @@ const Rs = /* @__PURE__ */ V(Is, [["render", xs]]), As = {
|
|
|
4334
4312
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
4335
4313
|
advanced: !0
|
|
4336
4314
|
}]
|
|
4337
|
-
},
|
|
4315
|
+
}, As = N({
|
|
4338
4316
|
name: "builder-custom-code",
|
|
4339
4317
|
props: ["replaceNodes", "code"],
|
|
4340
4318
|
data() {
|
|
@@ -4368,15 +4346,15 @@ const Rs = /* @__PURE__ */ V(Is, [["render", xs]]), As = {
|
|
|
4368
4346
|
}
|
|
4369
4347
|
}
|
|
4370
4348
|
}
|
|
4371
|
-
}),
|
|
4372
|
-
function
|
|
4349
|
+
}), $s = ["innerHTML"];
|
|
4350
|
+
function Ps(e, t, n, r, o, i) {
|
|
4373
4351
|
return v(), $("div", {
|
|
4374
4352
|
ref: "elementRef",
|
|
4375
|
-
class:
|
|
4353
|
+
class: xr("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
4376
4354
|
innerHTML: e.code
|
|
4377
|
-
}, null, 10,
|
|
4355
|
+
}, null, 10, $s);
|
|
4378
4356
|
}
|
|
4379
|
-
const
|
|
4357
|
+
const Os = /* @__PURE__ */ V(As, [["render", Ps]]), js = {
|
|
4380
4358
|
name: "Embed",
|
|
4381
4359
|
static: !0,
|
|
4382
4360
|
inputs: [{
|
|
@@ -4401,7 +4379,7 @@ const js = /* @__PURE__ */ V($s, [["render", Os]]), Ns = {
|
|
|
4401
4379
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4402
4380
|
hideFromUI: !0
|
|
4403
4381
|
}]
|
|
4404
|
-
},
|
|
4382
|
+
}, Ns = ["text/javascript", "application/javascript", "application/ecmascript"], Bs = (e) => Ns.includes(e.type), Vs = N({
|
|
4405
4383
|
name: "builder-embed",
|
|
4406
4384
|
props: ["content"],
|
|
4407
4385
|
data() {
|
|
@@ -4434,7 +4412,7 @@ const js = /* @__PURE__ */ V($s, [["render", Os]]), Ns = {
|
|
|
4434
4412
|
this.scriptsInserted.push(n.src);
|
|
4435
4413
|
const r = document.createElement("script");
|
|
4436
4414
|
r.async = !0, r.src = n.src, document.head.appendChild(r);
|
|
4437
|
-
} else if (
|
|
4415
|
+
} else if (Bs(n) && !this.scriptsRun.includes(n.innerText))
|
|
4438
4416
|
try {
|
|
4439
4417
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
4440
4418
|
} catch (r) {
|
|
@@ -4443,15 +4421,15 @@ const js = /* @__PURE__ */ V($s, [["render", Os]]), Ns = {
|
|
|
4443
4421
|
}
|
|
4444
4422
|
}
|
|
4445
4423
|
}
|
|
4446
|
-
}),
|
|
4447
|
-
function
|
|
4424
|
+
}), Ms = ["innerHTML"];
|
|
4425
|
+
function Us(e, t, n, r, o, i) {
|
|
4448
4426
|
return v(), $("div", {
|
|
4449
4427
|
class: "builder-embed",
|
|
4450
4428
|
ref: "elem",
|
|
4451
4429
|
innerHTML: e.content
|
|
4452
|
-
}, null, 8,
|
|
4430
|
+
}, null, 8, Ms);
|
|
4453
4431
|
}
|
|
4454
|
-
const
|
|
4432
|
+
const Fs = /* @__PURE__ */ V(Vs, [["render", Us]]), Ws = {
|
|
4455
4433
|
name: "Form:Form",
|
|
4456
4434
|
// editableTags: ['builder-form-error']
|
|
4457
4435
|
defaults: {
|
|
@@ -4682,15 +4660,15 @@ const Ws = /* @__PURE__ */ V(Ms, [["render", Fs]]), Ds = {
|
|
|
4682
4660
|
}
|
|
4683
4661
|
}
|
|
4684
4662
|
}]
|
|
4685
|
-
},
|
|
4663
|
+
}, Ds = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Ls = () => {
|
|
4686
4664
|
const e = process.env.NODE_ENV || "production";
|
|
4687
|
-
return
|
|
4688
|
-
},
|
|
4665
|
+
return Ds.includes(e) ? e : "production";
|
|
4666
|
+
}, Hs = (e, t, n) => {
|
|
4689
4667
|
const r = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, i) => o != null ? o[i] : o, e);
|
|
4690
4668
|
return r === void 0 || r === e ? n : r;
|
|
4691
|
-
},
|
|
4669
|
+
}, Ks = N({
|
|
4692
4670
|
name: "builder-form-component",
|
|
4693
|
-
components: { Block:
|
|
4671
|
+
components: { Block: An, Blocks: jt },
|
|
4694
4672
|
props: [
|
|
4695
4673
|
"builderContext",
|
|
4696
4674
|
"previewState",
|
|
@@ -4793,7 +4771,7 @@ const Ws = /* @__PURE__ */ V(Ms, [["render", Fs]]), Ds = {
|
|
|
4793
4771
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(m), m.defaultPrevented))
|
|
4794
4772
|
return;
|
|
4795
4773
|
this.formState = "sending";
|
|
4796
|
-
const y = `${
|
|
4774
|
+
const y = `${Ls() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
4797
4775
|
this.sendSubmissionsToEmail || ""
|
|
4798
4776
|
)}&name=${encodeURIComponent(this.name || "")}`;
|
|
4799
4777
|
fetch(
|
|
@@ -4808,7 +4786,7 @@ const Ws = /* @__PURE__ */ V(Ms, [["render", Fs]]), Ds = {
|
|
|
4808
4786
|
let C;
|
|
4809
4787
|
const O = f.headers.get("content-type");
|
|
4810
4788
|
if (O && O.indexOf("application/json") !== -1 ? C = await f.json() : C = await f.text(), !f.ok && this.errorMessagePath) {
|
|
4811
|
-
let E =
|
|
4789
|
+
let E = Hs(C, this.errorMessagePath);
|
|
4812
4790
|
E && (typeof E != "string" && (E = JSON.stringify(E)), this.formErrorMessage = E, this.mergeNewRootState({
|
|
4813
4791
|
formErrorMessage: E
|
|
4814
4792
|
}));
|
|
@@ -4849,11 +4827,11 @@ const Ws = /* @__PURE__ */ V(Ms, [["render", Fs]]), Ds = {
|
|
|
4849
4827
|
}
|
|
4850
4828
|
}
|
|
4851
4829
|
}
|
|
4852
|
-
}),
|
|
4830
|
+
}), _s = ["validate", "action", "method", "name"], zs = {
|
|
4853
4831
|
key: 3,
|
|
4854
4832
|
class: "builder-form-error-text pre-5vz8uirn7sc"
|
|
4855
4833
|
};
|
|
4856
|
-
function
|
|
4834
|
+
function Gs(e, t, n, r, o, i) {
|
|
4857
4835
|
var d;
|
|
4858
4836
|
const a = U("block"), u = U("blocks");
|
|
4859
4837
|
return v(), $("form", J({
|
|
@@ -4864,7 +4842,7 @@ function qs(e, t, n, r, o, i) {
|
|
|
4864
4842
|
name: e.name,
|
|
4865
4843
|
onSubmit: t[0] || (t[0] = (m) => e.onSubmit(m))
|
|
4866
4844
|
}, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4867
|
-
e.builderBlock && e.builderBlock.children ? (v(!0), $(re, { key: 0 },
|
|
4845
|
+
e.builderBlock && e.builderBlock.children ? (v(!0), $(re, { key: 0 }, Be((d = e.builderBlock) == null ? void 0 : d.children, (m, y) => (v(), B(a, {
|
|
4868
4846
|
key: `form-block-${e.idx}`,
|
|
4869
4847
|
block: m,
|
|
4870
4848
|
context: e.builderContext,
|
|
@@ -4883,16 +4861,16 @@ function qs(e, t, n, r, o, i) {
|
|
|
4883
4861
|
blocks: e.sendingMessage,
|
|
4884
4862
|
context: e.builderContext
|
|
4885
4863
|
}, null, 8, ["blocks", "context"])) : D("", !0),
|
|
4886
|
-
e.submissionState() === "error" && e.responseData ? (v(), $("pre",
|
|
4864
|
+
e.submissionState() === "error" && e.responseData ? (v(), $("pre", zs, $t(JSON.stringify(e.responseData, null, 2)), 1)) : D("", !0),
|
|
4887
4865
|
e.submissionState() === "success" ? (v(), B(u, {
|
|
4888
4866
|
key: 4,
|
|
4889
4867
|
path: "successMessage",
|
|
4890
4868
|
blocks: e.successMessage,
|
|
4891
4869
|
context: e.builderContext
|
|
4892
4870
|
}, null, 8, ["blocks", "context"])) : D("", !0)
|
|
4893
|
-
], 16,
|
|
4871
|
+
], 16, _s);
|
|
4894
4872
|
}
|
|
4895
|
-
const
|
|
4873
|
+
const qs = /* @__PURE__ */ V(Ks, [["render", Gs], ["__scopeId", "data-v-83a4b1d9"]]), Js = {
|
|
4896
4874
|
name: "Form:Input",
|
|
4897
4875
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4898
4876
|
inputs: [
|
|
@@ -4943,7 +4921,7 @@ const Js = /* @__PURE__ */ V(_s, [["render", qs], ["__scopeId", "data-v-83a4b1d9
|
|
|
4943
4921
|
borderStyle: "solid",
|
|
4944
4922
|
borderColor: "#ccc"
|
|
4945
4923
|
}
|
|
4946
|
-
},
|
|
4924
|
+
}, Xs = N({
|
|
4947
4925
|
name: "builder-form-input-component",
|
|
4948
4926
|
props: [
|
|
4949
4927
|
"attributes",
|
|
@@ -4957,8 +4935,8 @@ const Js = /* @__PURE__ */ V(_s, [["render", qs], ["__scopeId", "data-v-83a4b1d9
|
|
|
4957
4935
|
data() {
|
|
4958
4936
|
return { isEditing: ie, filterAttrs: Pe };
|
|
4959
4937
|
}
|
|
4960
|
-
}),
|
|
4961
|
-
function
|
|
4938
|
+
}), Ys = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4939
|
+
function Zs(e, t, n, r, o, i) {
|
|
4962
4940
|
return v(), $("input", J({
|
|
4963
4941
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4964
4942
|
placeholder: e.placeholder,
|
|
@@ -4967,9 +4945,9 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4967
4945
|
value: e.value,
|
|
4968
4946
|
defaultValue: e.defaultValue,
|
|
4969
4947
|
required: e.required
|
|
4970
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
4948
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ys);
|
|
4971
4949
|
}
|
|
4972
|
-
const
|
|
4950
|
+
const Qs = /* @__PURE__ */ V(Xs, [["render", Zs]]), ea = {
|
|
4973
4951
|
name: "Form:Select",
|
|
4974
4952
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4975
4953
|
defaultStyles: {
|
|
@@ -5011,27 +4989,27 @@ const ea = /* @__PURE__ */ V(Ys, [["render", Qs]]), ta = {
|
|
|
5011
4989
|
}],
|
|
5012
4990
|
static: !0,
|
|
5013
4991
|
noWrap: !0
|
|
5014
|
-
},
|
|
4992
|
+
}, ta = N({
|
|
5015
4993
|
name: "builder-select-component",
|
|
5016
4994
|
props: ["attributes", "value", "defaultValue", "name", "options"],
|
|
5017
4995
|
data() {
|
|
5018
4996
|
return { isEditing: ie, filterAttrs: Pe };
|
|
5019
4997
|
}
|
|
5020
|
-
}),
|
|
5021
|
-
function
|
|
4998
|
+
}), na = ["value", "defaultValue", "name"], ra = ["value"];
|
|
4999
|
+
function oa(e, t, n, r, o, i) {
|
|
5022
5000
|
return v(), $("select", J({
|
|
5023
5001
|
value: e.value,
|
|
5024
5002
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
5025
5003
|
defaultValue: e.defaultValue,
|
|
5026
5004
|
name: e.name
|
|
5027
5005
|
}, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5028
|
-
(v(!0), $(re, null,
|
|
5006
|
+
(v(!0), $(re, null, Be(e.options, (a, u) => (v(), $("option", {
|
|
5029
5007
|
key: `${a.name}-${u}`,
|
|
5030
5008
|
value: a.value
|
|
5031
|
-
}, $t(a.name || a.value), 9,
|
|
5032
|
-
], 16,
|
|
5009
|
+
}, $t(a.name || a.value), 9, ra))), 128))
|
|
5010
|
+
], 16, na);
|
|
5033
5011
|
}
|
|
5034
|
-
const
|
|
5012
|
+
const ia = /* @__PURE__ */ V(ta, [["render", oa]]), sa = {
|
|
5035
5013
|
name: "Form:SubmitButton",
|
|
5036
5014
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
5037
5015
|
defaultStyles: {
|
|
@@ -5056,17 +5034,17 @@ const sa = /* @__PURE__ */ V(na, [["render", ia]]), aa = {
|
|
|
5056
5034
|
// that only shows if advanced setting is flipped
|
|
5057
5035
|
// TODO: defaultChildren
|
|
5058
5036
|
// canHaveChildren: true,
|
|
5059
|
-
},
|
|
5037
|
+
}, aa = N({
|
|
5060
5038
|
name: "builder-submit-button",
|
|
5061
5039
|
props: ["attributes", "text"],
|
|
5062
5040
|
data() {
|
|
5063
5041
|
return { filterAttrs: Pe };
|
|
5064
5042
|
}
|
|
5065
5043
|
});
|
|
5066
|
-
function
|
|
5044
|
+
function la(e, t, n, r, o, i) {
|
|
5067
5045
|
return v(), $("button", J({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), $t(e.text), 17);
|
|
5068
5046
|
}
|
|
5069
|
-
const
|
|
5047
|
+
const ua = /* @__PURE__ */ V(aa, [["render", la]]), ca = {
|
|
5070
5048
|
// friendlyName?
|
|
5071
5049
|
name: "Raw:Img",
|
|
5072
5050
|
hideFromInsertMenu: !0,
|
|
@@ -5080,7 +5058,7 @@ const ca = /* @__PURE__ */ V(la, [["render", ua]]), pa = {
|
|
|
5080
5058
|
}],
|
|
5081
5059
|
noWrap: !0,
|
|
5082
5060
|
static: !0
|
|
5083
|
-
},
|
|
5061
|
+
}, pa = N({
|
|
5084
5062
|
name: "builder-img-component",
|
|
5085
5063
|
props: [
|
|
5086
5064
|
"backgroundSize",
|
|
@@ -5093,8 +5071,8 @@ const ca = /* @__PURE__ */ V(la, [["render", ua]]), pa = {
|
|
|
5093
5071
|
data() {
|
|
5094
5072
|
return { isEditing: ie, filterAttrs: Pe };
|
|
5095
5073
|
}
|
|
5096
|
-
}),
|
|
5097
|
-
function
|
|
5074
|
+
}), da = ["alt", "src"];
|
|
5075
|
+
function ha(e, t, n, r, o, i) {
|
|
5098
5076
|
return v(), $("img", J({
|
|
5099
5077
|
style: {
|
|
5100
5078
|
objectFit: e.backgroundSize || "cover",
|
|
@@ -5103,9 +5081,9 @@ function fa(e, t, n, r, o, i) {
|
|
|
5103
5081
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
5104
5082
|
alt: e.altText,
|
|
5105
5083
|
src: e.imgSrc || e.image
|
|
5106
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
5084
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, da);
|
|
5107
5085
|
}
|
|
5108
|
-
const
|
|
5086
|
+
const fa = /* @__PURE__ */ V(pa, [["render", ha]]), ma = {
|
|
5109
5087
|
name: "Video",
|
|
5110
5088
|
canHaveChildren: !0,
|
|
5111
5089
|
defaultStyles: {
|
|
@@ -5186,7 +5164,7 @@ const ma = /* @__PURE__ */ V(da, [["render", fa]]), ga = {
|
|
|
5186
5164
|
defaultValue: !0,
|
|
5187
5165
|
advanced: !0
|
|
5188
5166
|
}]
|
|
5189
|
-
},
|
|
5167
|
+
}, ga = N({
|
|
5190
5168
|
name: "builder-video",
|
|
5191
5169
|
props: [
|
|
5192
5170
|
"autoPlay",
|
|
@@ -5231,16 +5209,16 @@ const ma = /* @__PURE__ */ V(da, [["render", fa]]), ga = {
|
|
|
5231
5209
|
};
|
|
5232
5210
|
}
|
|
5233
5211
|
}
|
|
5234
|
-
}),
|
|
5212
|
+
}), ya = { style: {
|
|
5235
5213
|
position: "relative"
|
|
5236
|
-
} },
|
|
5214
|
+
} }, va = ["preload", "src", "poster"], ba = ["src"], ka = {
|
|
5237
5215
|
key: 1,
|
|
5238
5216
|
style: {
|
|
5239
5217
|
display: "flex",
|
|
5240
5218
|
flexDirection: "column",
|
|
5241
5219
|
alignItems: "stretch"
|
|
5242
5220
|
}
|
|
5243
|
-
},
|
|
5221
|
+
}, Sa = {
|
|
5244
5222
|
key: 2,
|
|
5245
5223
|
style: {
|
|
5246
5224
|
pointerEvents: "none",
|
|
@@ -5254,9 +5232,9 @@ const ma = /* @__PURE__ */ V(da, [["render", fa]]), ga = {
|
|
|
5254
5232
|
height: "100%"
|
|
5255
5233
|
}
|
|
5256
5234
|
};
|
|
5257
|
-
function
|
|
5235
|
+
function Ca(e, t, n, r, o, i) {
|
|
5258
5236
|
var a, u, d, m, y, f, C;
|
|
5259
|
-
return v(), $("div",
|
|
5237
|
+
return v(), $("div", ya, [
|
|
5260
5238
|
an("video", J({
|
|
5261
5239
|
class: "builder-video",
|
|
5262
5240
|
preload: e.preload || "metadata",
|
|
@@ -5281,8 +5259,8 @@ function wa(e, t, n, r, o, i) {
|
|
|
5281
5259
|
key: 0,
|
|
5282
5260
|
type: "video/mp4",
|
|
5283
5261
|
src: e.video
|
|
5284
|
-
}, null, 8,
|
|
5285
|
-
], 16,
|
|
5262
|
+
}, null, 8, ba))
|
|
5263
|
+
], 16, va),
|
|
5286
5264
|
e.aspectRatio && !(e.fitContent && ((d = (u = e.builderBlock) == null ? void 0 : u.children) != null && d.length)) ? (v(), $("div", {
|
|
5287
5265
|
key: 0,
|
|
5288
5266
|
style: ln({
|
|
@@ -5292,78 +5270,78 @@ function wa(e, t, n, r, o, i) {
|
|
|
5292
5270
|
fontSize: "0px"
|
|
5293
5271
|
})
|
|
5294
5272
|
}, null, 4)) : D("", !0),
|
|
5295
|
-
(y = (m = e.builderBlock) == null ? void 0 : m.children) != null && y.length && e.fitContent ? (v(), $("div",
|
|
5273
|
+
(y = (m = e.builderBlock) == null ? void 0 : m.children) != null && y.length && e.fitContent ? (v(), $("div", ka, [
|
|
5296
5274
|
pe(e.$slots, "default")
|
|
5297
5275
|
])) : D("", !0),
|
|
5298
|
-
(C = (f = e.builderBlock) == null ? void 0 : f.children) != null && C.length && !e.fitContent ? (v(), $("div",
|
|
5276
|
+
(C = (f = e.builderBlock) == null ? void 0 : f.children) != null && C.length && !e.fitContent ? (v(), $("div", Sa, [
|
|
5299
5277
|
pe(e.$slots, "default")
|
|
5300
5278
|
])) : D("", !0)
|
|
5301
5279
|
]);
|
|
5302
5280
|
}
|
|
5303
|
-
const
|
|
5304
|
-
component:
|
|
5305
|
-
...
|
|
5281
|
+
const wa = /* @__PURE__ */ V(ga, [["render", Ca]]), Ea = () => [{
|
|
5282
|
+
component: Os,
|
|
5283
|
+
...Rs
|
|
5306
5284
|
}, {
|
|
5307
|
-
component:
|
|
5308
|
-
...
|
|
5285
|
+
component: Fs,
|
|
5286
|
+
...js
|
|
5309
5287
|
}, {
|
|
5310
|
-
component:
|
|
5311
|
-
...
|
|
5288
|
+
component: qs,
|
|
5289
|
+
...Ws
|
|
5312
5290
|
}, {
|
|
5313
|
-
component:
|
|
5314
|
-
...
|
|
5291
|
+
component: Qs,
|
|
5292
|
+
...Js
|
|
5315
5293
|
}, {
|
|
5316
|
-
component:
|
|
5317
|
-
...
|
|
5294
|
+
component: ua,
|
|
5295
|
+
...sa
|
|
5318
5296
|
}, {
|
|
5319
|
-
component:
|
|
5320
|
-
...
|
|
5297
|
+
component: ia,
|
|
5298
|
+
...ea
|
|
5321
5299
|
}, {
|
|
5322
|
-
component:
|
|
5323
|
-
...
|
|
5300
|
+
component: fa,
|
|
5301
|
+
...ca
|
|
5324
5302
|
}, {
|
|
5325
|
-
component:
|
|
5326
|
-
...
|
|
5327
|
-
}],
|
|
5303
|
+
component: wa,
|
|
5304
|
+
...ma
|
|
5305
|
+
}], vr = () => [{
|
|
5328
5306
|
component: Fo,
|
|
5307
|
+
...hs
|
|
5308
|
+
}, {
|
|
5309
|
+
component: Di,
|
|
5329
5310
|
...fs
|
|
5330
5311
|
}, {
|
|
5331
|
-
component:
|
|
5312
|
+
component: Ki,
|
|
5332
5313
|
...ms
|
|
5333
5314
|
}, {
|
|
5334
|
-
component:
|
|
5315
|
+
component: Zi,
|
|
5335
5316
|
...gs
|
|
5336
5317
|
}, {
|
|
5337
|
-
component:
|
|
5318
|
+
component: ts,
|
|
5338
5319
|
...ys
|
|
5339
5320
|
}, {
|
|
5340
|
-
component:
|
|
5321
|
+
component: Ss,
|
|
5341
5322
|
...vs
|
|
5342
5323
|
}, {
|
|
5343
|
-
component:
|
|
5344
|
-
...
|
|
5324
|
+
component: Ol,
|
|
5325
|
+
...Cs
|
|
5345
5326
|
}, {
|
|
5346
|
-
component:
|
|
5327
|
+
component: xs,
|
|
5347
5328
|
...ws
|
|
5348
|
-
}, {
|
|
5349
|
-
component: Rs,
|
|
5350
|
-
...Es
|
|
5351
|
-
}, ...Ia()], Ta = (e) => ({
|
|
5329
|
+
}, ...Ea()], Ia = (e) => ({
|
|
5352
5330
|
type: "builder.registerComponent",
|
|
5353
5331
|
data: hn(e)
|
|
5354
|
-
}),
|
|
5332
|
+
}), Ta = (e) => {
|
|
5355
5333
|
const t = e.toString().trim();
|
|
5356
5334
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
5357
|
-
},
|
|
5335
|
+
}, xa = (e) => typeof e == "function" ? Ta(e) : gt(e), hn = ({
|
|
5358
5336
|
inputs: e,
|
|
5359
5337
|
...t
|
|
5360
5338
|
}) => ({
|
|
5361
5339
|
...gt(t),
|
|
5362
5340
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
|
|
5363
5341
|
...r,
|
|
5364
|
-
[o]:
|
|
5342
|
+
[o]: xa(i)
|
|
5365
5343
|
}), {}))
|
|
5366
|
-
}),
|
|
5344
|
+
}), Ra = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
5367
5345
|
function getAndSetVariantId() {
|
|
5368
5346
|
function setCookie(name, value, days) {
|
|
5369
5347
|
let expires = '';
|
|
@@ -5419,7 +5397,7 @@ const Ea = /* @__PURE__ */ V(ya, [["render", wa]]), Ia = () => [{
|
|
|
5419
5397
|
}).join('');
|
|
5420
5398
|
styleEl.innerHTML = newStyleStr;
|
|
5421
5399
|
}
|
|
5422
|
-
}`,
|
|
5400
|
+
}`, Aa = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
5423
5401
|
if (!navigator.cookieEnabled) {
|
|
5424
5402
|
return;
|
|
5425
5403
|
}
|
|
@@ -5457,23 +5435,23 @@ const Ea = /* @__PURE__ */ V(ya, [["render", wa]]), Ia = () => [{
|
|
|
5457
5435
|
...t,
|
|
5458
5436
|
testVariationId: t.id,
|
|
5459
5437
|
id: e == null ? void 0 : e.id
|
|
5460
|
-
})),
|
|
5438
|
+
})), $a = ({
|
|
5461
5439
|
canTrack: e,
|
|
5462
5440
|
content: t
|
|
5463
|
-
}) => !(!(xt(t).length > 0) || !e),
|
|
5464
|
-
window.${Qr} = ${
|
|
5465
|
-
window.${eo} = ${
|
|
5466
|
-
`,
|
|
5441
|
+
}) => !(!(xt(t).length > 0) || !e), Pa = (e) => e === "react" || e === "reactNative", to = Pa(de), Oa = () => `
|
|
5442
|
+
window.${Qr} = ${Ra}
|
|
5443
|
+
window.${eo} = ${Aa}
|
|
5444
|
+
`, ja = (e, t) => `
|
|
5467
5445
|
window.${Qr}(
|
|
5468
5446
|
"${t}",${JSON.stringify(e)}, ${to}
|
|
5469
|
-
)`,
|
|
5447
|
+
)`, Na = ({
|
|
5470
5448
|
contentId: e,
|
|
5471
5449
|
variationId: t
|
|
5472
5450
|
}) => `window.${eo}(
|
|
5473
5451
|
"${t}", "${e}", ${to}
|
|
5474
5452
|
)`, no = N({
|
|
5475
5453
|
render() {
|
|
5476
|
-
return
|
|
5454
|
+
return Tr("script", {
|
|
5477
5455
|
innerHTML: this.scriptStr,
|
|
5478
5456
|
"data-id": this.id
|
|
5479
5457
|
});
|
|
@@ -5481,17 +5459,17 @@ const Ea = /* @__PURE__ */ V(ya, [["render", wa]]), Ia = () => [{
|
|
|
5481
5459
|
name: "inlined-script",
|
|
5482
5460
|
props: ["scriptStr", "id"]
|
|
5483
5461
|
});
|
|
5484
|
-
function
|
|
5462
|
+
function Ba() {
|
|
5485
5463
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
5486
5464
|
}
|
|
5487
|
-
function
|
|
5488
|
-
const e =
|
|
5465
|
+
function Va() {
|
|
5466
|
+
const e = Ba().fetch;
|
|
5489
5467
|
if (typeof e > "u")
|
|
5490
5468
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
5491
5469
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
5492
5470
|
return e;
|
|
5493
5471
|
}
|
|
5494
|
-
const ro =
|
|
5472
|
+
const ro = Va();
|
|
5495
5473
|
function Rt(e, t = null, n = ".") {
|
|
5496
5474
|
return Object.keys(e).reduce((r, o) => {
|
|
5497
5475
|
const i = e[o], a = [t, o].filter(Boolean).join(n);
|
|
@@ -5504,22 +5482,22 @@ function Rt(e, t = null, n = ".") {
|
|
|
5504
5482
|
};
|
|
5505
5483
|
}, {});
|
|
5506
5484
|
}
|
|
5507
|
-
const
|
|
5485
|
+
const Ma = "v3", br = "builder.", Ua = "options.", oo = (e) => {
|
|
5508
5486
|
if (!e)
|
|
5509
5487
|
return {};
|
|
5510
|
-
const t =
|
|
5488
|
+
const t = Ar(e), n = {};
|
|
5511
5489
|
return Object.keys(t).forEach((r) => {
|
|
5512
|
-
if (r.startsWith(
|
|
5513
|
-
const o = r.replace(
|
|
5490
|
+
if (r.startsWith(br)) {
|
|
5491
|
+
const o = r.replace(br, "").replace(Ua, "");
|
|
5514
5492
|
n[o] = t[r];
|
|
5515
5493
|
}
|
|
5516
5494
|
}), n;
|
|
5517
|
-
},
|
|
5495
|
+
}, Fa = () => {
|
|
5518
5496
|
if (!X())
|
|
5519
5497
|
return {};
|
|
5520
5498
|
const e = new URLSearchParams(window.location.search);
|
|
5521
5499
|
return oo(e);
|
|
5522
|
-
},
|
|
5500
|
+
}, kr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, On = (e) => {
|
|
5523
5501
|
const {
|
|
5524
5502
|
limit: t = 30,
|
|
5525
5503
|
userAttributes: n,
|
|
@@ -5528,7 +5506,7 @@ const Ua = "v3", Cr = "builder.", Fa = "options.", oo = (e) => {
|
|
|
5528
5506
|
apiKey: i,
|
|
5529
5507
|
enrich: a,
|
|
5530
5508
|
locale: u,
|
|
5531
|
-
apiVersion: d =
|
|
5509
|
+
apiVersion: d = Ma,
|
|
5532
5510
|
fields: m,
|
|
5533
5511
|
omit: y,
|
|
5534
5512
|
offset: f,
|
|
@@ -5542,7 +5520,7 @@ const Ua = "v3", Cr = "builder.", Fa = "options.", oo = (e) => {
|
|
|
5542
5520
|
if (!["v3"].includes(d))
|
|
5543
5521
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${d}'`);
|
|
5544
5522
|
const se = t !== 1, W = new URL(`https://cdn.builder.io/api/${d}/content/${o}`);
|
|
5545
|
-
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", y || "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 &&
|
|
5523
|
+
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", y || "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)), O && kr(O) && W.searchParams.set("staleCacheSeconds", String(O)), E) {
|
|
5546
5524
|
const ae = Rt({
|
|
5547
5525
|
sort: E
|
|
5548
5526
|
});
|
|
@@ -5550,11 +5528,11 @@ const Ua = "v3", Cr = "builder.", Fa = "options.", oo = (e) => {
|
|
|
5550
5528
|
W.searchParams.set(Ie, JSON.stringify(ae[Ie]));
|
|
5551
5529
|
}
|
|
5552
5530
|
const A = {
|
|
5553
|
-
...
|
|
5554
|
-
...
|
|
5555
|
-
},
|
|
5556
|
-
for (const ae in
|
|
5557
|
-
W.searchParams.set(ae, String(
|
|
5531
|
+
...Fa(),
|
|
5532
|
+
...Ar(e.options || {})
|
|
5533
|
+
}, Ve = Rt(A);
|
|
5534
|
+
for (const ae in Ve)
|
|
5535
|
+
W.searchParams.set(ae, String(Ve[ae]));
|
|
5558
5536
|
if (n && W.searchParams.set("userAttributes", JSON.stringify(n)), r) {
|
|
5559
5537
|
const ae = Rt({
|
|
5560
5538
|
query: r
|
|
@@ -5563,25 +5541,25 @@ const Ua = "v3", Cr = "builder.", Fa = "options.", oo = (e) => {
|
|
|
5563
5541
|
W.searchParams.set(Ie, JSON.stringify(ae[Ie]));
|
|
5564
5542
|
}
|
|
5565
5543
|
return W;
|
|
5566
|
-
},
|
|
5567
|
-
async function
|
|
5568
|
-
const t = await
|
|
5544
|
+
}, Wa = (e) => "results" in e;
|
|
5545
|
+
async function jn(e) {
|
|
5546
|
+
const t = await Ha({
|
|
5569
5547
|
...e,
|
|
5570
5548
|
limit: 1
|
|
5571
5549
|
});
|
|
5572
5550
|
return t && t[0] || null;
|
|
5573
5551
|
}
|
|
5574
|
-
const
|
|
5575
|
-
const t =
|
|
5552
|
+
const Da = async (e) => {
|
|
5553
|
+
const t = On(e);
|
|
5576
5554
|
return await (await (e.fetch ?? ro)(t.href, e.fetchOptions)).json();
|
|
5577
|
-
},
|
|
5555
|
+
}, La = async (e, t, n = On(e)) => {
|
|
5578
5556
|
const r = ht(e.canTrack);
|
|
5579
5557
|
if (n.search.includes("preview="), !r || !(X() || de === "reactNative"))
|
|
5580
5558
|
return t.results;
|
|
5581
5559
|
try {
|
|
5582
5560
|
const o = [];
|
|
5583
5561
|
for (const i of t.results)
|
|
5584
|
-
o.push(await
|
|
5562
|
+
o.push(await ds({
|
|
5585
5563
|
item: i,
|
|
5586
5564
|
canTrack: r
|
|
5587
5565
|
}));
|
|
@@ -5591,10 +5569,10 @@ const La = async (e) => {
|
|
|
5591
5569
|
}
|
|
5592
5570
|
return t.results;
|
|
5593
5571
|
};
|
|
5594
|
-
async function
|
|
5572
|
+
async function Ha(e) {
|
|
5595
5573
|
try {
|
|
5596
|
-
const t =
|
|
5597
|
-
return
|
|
5574
|
+
const t = On(e), n = await Da(e);
|
|
5575
|
+
return Wa(n) ? La(e, n) : (Z.error("Error fetching data. ", {
|
|
5598
5576
|
url: t,
|
|
5599
5577
|
content: n,
|
|
5600
5578
|
options: e
|
|
@@ -5603,22 +5581,20 @@ async function Ka(e) {
|
|
|
5603
5581
|
return Z.error("Error fetching data. ", t), null;
|
|
5604
5582
|
}
|
|
5605
5583
|
}
|
|
5606
|
-
function
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
const t = jr(e || window.location.search);
|
|
5610
|
-
return ie(t) ? !1 : t.indexOf("builder.preview=") !== -1;
|
|
5584
|
+
function Ka(e) {
|
|
5585
|
+
const t = e || (X() ? window.location.search : void 0);
|
|
5586
|
+
return t ? $r(t).indexOf("builder.preview=") !== -1 : !1;
|
|
5611
5587
|
}
|
|
5612
|
-
function
|
|
5588
|
+
function _a() {
|
|
5613
5589
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
5614
5590
|
const t = Math.random() * 16 | 0;
|
|
5615
5591
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
5616
5592
|
});
|
|
5617
5593
|
}
|
|
5618
5594
|
function io() {
|
|
5619
|
-
return
|
|
5595
|
+
return _a().replace(/-/g, "");
|
|
5620
5596
|
}
|
|
5621
|
-
const so = "builderSessionId",
|
|
5597
|
+
const so = "builderSessionId", za = async ({
|
|
5622
5598
|
canTrack: e
|
|
5623
5599
|
}) => {
|
|
5624
5600
|
if (!e)
|
|
@@ -5630,20 +5606,20 @@ const so = "builderSessionId", Ga = async ({
|
|
|
5630
5606
|
if ($e(t))
|
|
5631
5607
|
return t;
|
|
5632
5608
|
{
|
|
5633
|
-
const n =
|
|
5634
|
-
return
|
|
5609
|
+
const n = Ga();
|
|
5610
|
+
return qa({
|
|
5635
5611
|
id: n,
|
|
5636
5612
|
canTrack: e
|
|
5637
5613
|
}), n;
|
|
5638
5614
|
}
|
|
5639
|
-
},
|
|
5615
|
+
}, Ga = () => io(), qa = ({
|
|
5640
5616
|
id: e,
|
|
5641
5617
|
canTrack: t
|
|
5642
5618
|
}) => Jr({
|
|
5643
5619
|
name: so,
|
|
5644
5620
|
value: e,
|
|
5645
5621
|
canTrack: t
|
|
5646
|
-
}), ao = () => X() && typeof localStorage < "u" ? localStorage : void 0,
|
|
5622
|
+
}), ao = () => X() && typeof localStorage < "u" ? localStorage : void 0, Ja = ({
|
|
5647
5623
|
key: e,
|
|
5648
5624
|
canTrack: t
|
|
5649
5625
|
}) => {
|
|
@@ -5654,7 +5630,7 @@ const so = "builderSessionId", Ga = async ({
|
|
|
5654
5630
|
console.debug("[LocalStorage] GET error: ", r);
|
|
5655
5631
|
return;
|
|
5656
5632
|
}
|
|
5657
|
-
},
|
|
5633
|
+
}, Xa = ({
|
|
5658
5634
|
key: e,
|
|
5659
5635
|
canTrack: t,
|
|
5660
5636
|
value: n
|
|
@@ -5665,32 +5641,32 @@ const so = "builderSessionId", Ga = async ({
|
|
|
5665
5641
|
} catch (o) {
|
|
5666
5642
|
console.debug("[LocalStorage] SET error: ", o);
|
|
5667
5643
|
}
|
|
5668
|
-
}, lo = "builderVisitorId",
|
|
5644
|
+
}, lo = "builderVisitorId", Ya = ({
|
|
5669
5645
|
canTrack: e
|
|
5670
5646
|
}) => {
|
|
5671
5647
|
if (!e)
|
|
5672
5648
|
return;
|
|
5673
|
-
const t =
|
|
5649
|
+
const t = Ja({
|
|
5674
5650
|
key: lo,
|
|
5675
5651
|
canTrack: e
|
|
5676
5652
|
});
|
|
5677
5653
|
if ($e(t))
|
|
5678
5654
|
return t;
|
|
5679
5655
|
{
|
|
5680
|
-
const n =
|
|
5681
|
-
return
|
|
5656
|
+
const n = Za();
|
|
5657
|
+
return Qa({
|
|
5682
5658
|
id: n,
|
|
5683
5659
|
canTrack: e
|
|
5684
5660
|
}), n;
|
|
5685
5661
|
}
|
|
5686
|
-
},
|
|
5662
|
+
}, Za = () => io(), Qa = ({
|
|
5687
5663
|
id: e,
|
|
5688
5664
|
canTrack: t
|
|
5689
|
-
}) =>
|
|
5665
|
+
}) => Xa({
|
|
5690
5666
|
key: lo,
|
|
5691
5667
|
value: e,
|
|
5692
5668
|
canTrack: t
|
|
5693
|
-
}),
|
|
5669
|
+
}), el = async ({
|
|
5694
5670
|
canTrack: e
|
|
5695
5671
|
}) => {
|
|
5696
5672
|
if (!e)
|
|
@@ -5698,16 +5674,16 @@ const so = "builderSessionId", Ga = async ({
|
|
|
5698
5674
|
visitorId: void 0,
|
|
5699
5675
|
sessionId: void 0
|
|
5700
5676
|
};
|
|
5701
|
-
const t = await
|
|
5677
|
+
const t = await za({
|
|
5702
5678
|
canTrack: e
|
|
5703
|
-
}), n =
|
|
5679
|
+
}), n = Ya({
|
|
5704
5680
|
canTrack: e
|
|
5705
5681
|
});
|
|
5706
5682
|
return {
|
|
5707
5683
|
sessionId: t,
|
|
5708
5684
|
visitorId: n
|
|
5709
5685
|
};
|
|
5710
|
-
},
|
|
5686
|
+
}, tl = async ({
|
|
5711
5687
|
type: e,
|
|
5712
5688
|
canTrack: t,
|
|
5713
5689
|
apiKey: n,
|
|
@@ -5721,10 +5697,10 @@ const so = "builderSessionId", Ga = async ({
|
|
|
5721
5697
|
url: location.href,
|
|
5722
5698
|
...r
|
|
5723
5699
|
},
|
|
5724
|
-
...await
|
|
5700
|
+
...await el({
|
|
5725
5701
|
canTrack: t
|
|
5726
5702
|
}),
|
|
5727
|
-
userAttributes:
|
|
5703
|
+
userAttributes: Pr(),
|
|
5728
5704
|
ownerId: n
|
|
5729
5705
|
}
|
|
5730
5706
|
});
|
|
@@ -5737,7 +5713,7 @@ async function fn(e) {
|
|
|
5737
5713
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
5738
5714
|
method: "POST",
|
|
5739
5715
|
body: JSON.stringify({
|
|
5740
|
-
events: [await
|
|
5716
|
+
events: [await tl(e)]
|
|
5741
5717
|
}),
|
|
5742
5718
|
headers: {
|
|
5743
5719
|
"content-type": "application/json"
|
|
@@ -5747,14 +5723,14 @@ async function fn(e) {
|
|
|
5747
5723
|
console.error("Failed to track: ", t);
|
|
5748
5724
|
});
|
|
5749
5725
|
}
|
|
5750
|
-
const
|
|
5726
|
+
const Wl = (e) => fn({
|
|
5751
5727
|
...e,
|
|
5752
5728
|
canTrack: !0
|
|
5753
5729
|
});
|
|
5754
|
-
function
|
|
5730
|
+
function Sr(e) {
|
|
5755
5731
|
return Math.round(e * 1e3) / 1e3;
|
|
5756
5732
|
}
|
|
5757
|
-
const
|
|
5733
|
+
const nl = (e, t, n = !0) => {
|
|
5758
5734
|
if (!(e instanceof HTMLElement))
|
|
5759
5735
|
return null;
|
|
5760
5736
|
let r = n ? e : e.parentElement;
|
|
@@ -5765,43 +5741,43 @@ const rl = (e, t, n = !0) => {
|
|
|
5765
5741
|
return r;
|
|
5766
5742
|
} while (r = r.parentElement);
|
|
5767
5743
|
return null;
|
|
5768
|
-
},
|
|
5744
|
+
}, rl = (e) => nl(e, (t) => {
|
|
5769
5745
|
const n = t.getAttribute("builder-id") || t.id;
|
|
5770
5746
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
5771
|
-
}),
|
|
5747
|
+
}), Cr = ({
|
|
5772
5748
|
event: e,
|
|
5773
5749
|
target: t
|
|
5774
5750
|
}) => {
|
|
5775
|
-
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i =
|
|
5751
|
+
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i = Sr(r / n.width), a = Sr(o / n.height);
|
|
5776
5752
|
return {
|
|
5777
5753
|
x: i,
|
|
5778
5754
|
y: a
|
|
5779
5755
|
};
|
|
5780
|
-
},
|
|
5781
|
-
const t = e.target, n = t &&
|
|
5756
|
+
}, ol = (e) => {
|
|
5757
|
+
const t = e.target, n = t && rl(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
5782
5758
|
return {
|
|
5783
5759
|
targetBuilderElement: r || void 0,
|
|
5784
5760
|
metadata: {
|
|
5785
|
-
targetOffset: t ?
|
|
5761
|
+
targetOffset: t ? Cr({
|
|
5786
5762
|
event: e,
|
|
5787
5763
|
target: t
|
|
5788
5764
|
}) : void 0,
|
|
5789
|
-
builderTargetOffset: n ?
|
|
5765
|
+
builderTargetOffset: n ? Cr({
|
|
5790
5766
|
event: e,
|
|
5791
5767
|
target: n
|
|
5792
5768
|
}) : void 0,
|
|
5793
5769
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
5794
5770
|
}
|
|
5795
5771
|
};
|
|
5796
|
-
},
|
|
5772
|
+
}, il = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
5797
5773
|
function uo(e, t) {
|
|
5798
5774
|
const n = new URL(t.origin), r = n.hostname;
|
|
5799
|
-
return (e ||
|
|
5775
|
+
return (e || il).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
5800
5776
|
}
|
|
5801
|
-
const
|
|
5802
|
-
function
|
|
5803
|
-
let n =
|
|
5804
|
-
if (n || (n =
|
|
5777
|
+
const sl = "1.0.22", wr = {};
|
|
5778
|
+
function al(e, t) {
|
|
5779
|
+
let n = wr[e];
|
|
5780
|
+
if (n || (n = wr[e] = []), n.push(t), X()) {
|
|
5805
5781
|
const r = {
|
|
5806
5782
|
type: "builder.register",
|
|
5807
5783
|
data: {
|
|
@@ -5816,8 +5792,8 @@ function ll(e, t) {
|
|
|
5816
5792
|
}
|
|
5817
5793
|
}
|
|
5818
5794
|
}
|
|
5819
|
-
const
|
|
5820
|
-
|
|
5795
|
+
const ll = () => {
|
|
5796
|
+
al("insertMenu", {
|
|
5821
5797
|
name: "_default",
|
|
5822
5798
|
default: !0,
|
|
5823
5799
|
items: [{
|
|
@@ -5839,14 +5815,14 @@ const ul = () => {
|
|
|
5839
5815
|
}]
|
|
5840
5816
|
});
|
|
5841
5817
|
};
|
|
5842
|
-
let
|
|
5818
|
+
let Er = !1;
|
|
5843
5819
|
const co = (e = {}) => {
|
|
5844
5820
|
var t, n;
|
|
5845
|
-
|
|
5821
|
+
Er || (Er = !0, X() && ((t = window.parent) == null || t.postMessage({
|
|
5846
5822
|
type: "builder.sdkInfo",
|
|
5847
5823
|
data: {
|
|
5848
5824
|
target: de,
|
|
5849
|
-
version:
|
|
5825
|
+
version: sl,
|
|
5850
5826
|
supportsPatchUpdates: !1,
|
|
5851
5827
|
// Supports builder-model="..." attribute which is needed to
|
|
5852
5828
|
// scope our '+ add block' button styling
|
|
@@ -5927,7 +5903,7 @@ const co = (e = {}) => {
|
|
|
5927
5903
|
break;
|
|
5928
5904
|
}
|
|
5929
5905
|
}
|
|
5930
|
-
},
|
|
5906
|
+
}, Dl = (e, t, n) => {
|
|
5931
5907
|
if (!X)
|
|
5932
5908
|
return Z.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
5933
5909
|
};
|
|
@@ -5946,7 +5922,7 @@ const co = (e = {}) => {
|
|
|
5946
5922
|
return window.addEventListener("message", r), () => {
|
|
5947
5923
|
window.removeEventListener("message", r);
|
|
5948
5924
|
};
|
|
5949
|
-
},
|
|
5925
|
+
}, ul = N({
|
|
5950
5926
|
name: "enable-editor",
|
|
5951
5927
|
props: [
|
|
5952
5928
|
"builderContextSignal",
|
|
@@ -5994,7 +5970,7 @@ const co = (e = {}) => {
|
|
|
5994
5970
|
variationId: i !== a ? i : void 0
|
|
5995
5971
|
});
|
|
5996
5972
|
}
|
|
5997
|
-
|
|
5973
|
+
Ka() && !ie() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5998
5974
|
new CustomEvent("initpreviewingbldr")
|
|
5999
5975
|
);
|
|
6000
5976
|
}
|
|
@@ -6158,7 +6134,7 @@ const co = (e = {}) => {
|
|
|
6158
6134
|
contentId: o,
|
|
6159
6135
|
apiKey: this.apiKey,
|
|
6160
6136
|
variationId: r !== o ? r : void 0,
|
|
6161
|
-
...
|
|
6137
|
+
...ol(e),
|
|
6162
6138
|
unique: !this.clicked
|
|
6163
6139
|
});
|
|
6164
6140
|
}
|
|
@@ -6211,7 +6187,7 @@ const co = (e = {}) => {
|
|
|
6211
6187
|
);
|
|
6212
6188
|
},
|
|
6213
6189
|
elementRef_onIniteditingbldr(e) {
|
|
6214
|
-
window.addEventListener("message", this.processMessage),
|
|
6190
|
+
window.addEventListener("message", this.processMessage), ll(), co({
|
|
6215
6191
|
...this.locale ? {
|
|
6216
6192
|
locale: this.locale
|
|
6217
6193
|
} : {},
|
|
@@ -6225,7 +6201,7 @@ const co = (e = {}) => {
|
|
|
6225
6201
|
this.builderContextSignal.componentInfos
|
|
6226
6202
|
).forEach((t) => {
|
|
6227
6203
|
var r;
|
|
6228
|
-
const n =
|
|
6204
|
+
const n = Ia(t);
|
|
6229
6205
|
(r = window.parent) == null || r.postMessage(n, "*");
|
|
6230
6206
|
}), window.addEventListener(
|
|
6231
6207
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -6236,7 +6212,7 @@ const co = (e = {}) => {
|
|
|
6236
6212
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), r = t.get(
|
|
6237
6213
|
`builder.preview.${n}`
|
|
6238
6214
|
), o = t.get("apiKey") || t.get("builder.space");
|
|
6239
|
-
n === this.model && o === this.apiKey && (!this.content || r === this.content.id) &&
|
|
6215
|
+
n === this.model && o === this.apiKey && (!this.content || r === this.content.id) && jn({
|
|
6240
6216
|
model: this.model,
|
|
6241
6217
|
apiKey: this.apiKey,
|
|
6242
6218
|
apiVersion: this.builderContextSignal.apiVersion
|
|
@@ -6246,9 +6222,9 @@ const co = (e = {}) => {
|
|
|
6246
6222
|
}
|
|
6247
6223
|
}
|
|
6248
6224
|
});
|
|
6249
|
-
function
|
|
6225
|
+
function cl(e, t, n, r, o, i) {
|
|
6250
6226
|
var a, u, d;
|
|
6251
|
-
return e.builderContextSignal.content ? (v(), B(
|
|
6227
|
+
return e.builderContextSignal.content ? (v(), B(at(e.ContentWrapper), J({
|
|
6252
6228
|
key: 0,
|
|
6253
6229
|
ref: "elementRef",
|
|
6254
6230
|
onClick: (m) => e.onClick(m),
|
|
@@ -6270,7 +6246,7 @@ function pl(e, t, n, r, o, i) {
|
|
|
6270
6246
|
_: 3
|
|
6271
6247
|
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : D("", !0);
|
|
6272
6248
|
}
|
|
6273
|
-
const
|
|
6249
|
+
const pl = /* @__PURE__ */ V(ul, [["render", cl]]), dl = (e) => {
|
|
6274
6250
|
var i;
|
|
6275
6251
|
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);
|
|
6276
6252
|
let o = "";
|
|
@@ -6296,15 +6272,15 @@ font-weight: ${a};
|
|
|
6296
6272
|
`.trim());
|
|
6297
6273
|
}
|
|
6298
6274
|
return o;
|
|
6299
|
-
},
|
|
6275
|
+
}, hl = ({
|
|
6300
6276
|
customFonts: e
|
|
6301
6277
|
}) => {
|
|
6302
6278
|
var t;
|
|
6303
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
6304
|
-
},
|
|
6279
|
+
return ((t = e == null ? void 0 : e.map((n) => dl(n))) == null ? void 0 : t.join(" ")) || "";
|
|
6280
|
+
}, fl = ({
|
|
6305
6281
|
cssCode: e,
|
|
6306
6282
|
contentId: t
|
|
6307
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
6283
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ml = `
|
|
6308
6284
|
.builder-button {
|
|
6309
6285
|
all: unset;
|
|
6310
6286
|
}
|
|
@@ -6321,33 +6297,33 @@ font-weight: ${a};
|
|
|
6321
6297
|
text-align: inherit;
|
|
6322
6298
|
font-family: inherit;
|
|
6323
6299
|
}
|
|
6324
|
-
`,
|
|
6300
|
+
`, gl = (e) => e ? "" : ml, yl = N({
|
|
6325
6301
|
name: "content-styles",
|
|
6326
|
-
components: { InlinedStyles:
|
|
6302
|
+
components: { InlinedStyles: $n },
|
|
6327
6303
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender"],
|
|
6328
6304
|
data() {
|
|
6329
6305
|
return {
|
|
6330
6306
|
injectedStyles: `
|
|
6331
|
-
${
|
|
6307
|
+
${fl({
|
|
6332
6308
|
cssCode: this.cssCode,
|
|
6333
6309
|
contentId: this.contentId
|
|
6334
6310
|
})}
|
|
6335
|
-
${
|
|
6311
|
+
${hl({
|
|
6336
6312
|
customFonts: this.customFonts
|
|
6337
6313
|
})}
|
|
6338
|
-
${
|
|
6314
|
+
${gl(this.isNestedRender)}
|
|
6339
6315
|
`.trim()
|
|
6340
6316
|
};
|
|
6341
6317
|
}
|
|
6342
6318
|
});
|
|
6343
|
-
function
|
|
6319
|
+
function vl(e, t, n, r, o, i) {
|
|
6344
6320
|
const a = U("inlined-styles");
|
|
6345
6321
|
return v(), B(a, {
|
|
6346
6322
|
id: "builderio-content",
|
|
6347
6323
|
styles: e.injectedStyles
|
|
6348
6324
|
}, null, 8, ["styles"]);
|
|
6349
6325
|
}
|
|
6350
|
-
const
|
|
6326
|
+
const bl = /* @__PURE__ */ V(yl, [["render", vl]]), kl = ({
|
|
6351
6327
|
content: e,
|
|
6352
6328
|
data: t,
|
|
6353
6329
|
locale: n
|
|
@@ -6364,7 +6340,7 @@ const kl = /* @__PURE__ */ V(vl, [["render", bl]]), Sl = ({
|
|
|
6364
6340
|
locale: n
|
|
6365
6341
|
} : {}
|
|
6366
6342
|
};
|
|
6367
|
-
},
|
|
6343
|
+
}, Sl = ({
|
|
6368
6344
|
content: e,
|
|
6369
6345
|
data: t
|
|
6370
6346
|
}) => e ? {
|
|
@@ -6374,12 +6350,12 @@ const kl = /* @__PURE__ */ V(vl, [["render", bl]]), Sl = ({
|
|
|
6374
6350
|
...t
|
|
6375
6351
|
},
|
|
6376
6352
|
meta: e == null ? void 0 : e.meta
|
|
6377
|
-
} : void 0,
|
|
6353
|
+
} : void 0, Cl = Oo, wl = N({
|
|
6378
6354
|
name: "content-component",
|
|
6379
6355
|
components: {
|
|
6380
|
-
EnableEditor:
|
|
6356
|
+
EnableEditor: pl,
|
|
6381
6357
|
InlinedScript: no,
|
|
6382
|
-
ContentStyles:
|
|
6358
|
+
ContentStyles: bl,
|
|
6383
6359
|
Blocks: jt
|
|
6384
6360
|
},
|
|
6385
6361
|
props: [
|
|
@@ -6406,32 +6382,32 @@ const kl = /* @__PURE__ */ V(vl, [["render", bl]]), Sl = ({
|
|
|
6406
6382
|
data() {
|
|
6407
6383
|
var e, t;
|
|
6408
6384
|
return {
|
|
6409
|
-
scriptStr:
|
|
6385
|
+
scriptStr: Na({
|
|
6410
6386
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
6411
6387
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
6412
6388
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
6413
6389
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
6414
6390
|
}),
|
|
6415
6391
|
registeredComponents: [
|
|
6416
|
-
...
|
|
6392
|
+
...vr(),
|
|
6417
6393
|
...this.customComponents || []
|
|
6418
6394
|
].reduce(
|
|
6419
6395
|
(n, { component: r, ...o }) => ({
|
|
6420
6396
|
...n,
|
|
6421
6397
|
[o.name]: {
|
|
6422
|
-
component:
|
|
6398
|
+
component: Cl(r),
|
|
6423
6399
|
...hn(o)
|
|
6424
6400
|
}
|
|
6425
6401
|
}),
|
|
6426
6402
|
{}
|
|
6427
6403
|
),
|
|
6428
6404
|
builderContextSignal: {
|
|
6429
|
-
content:
|
|
6405
|
+
content: Sl({
|
|
6430
6406
|
content: this.content,
|
|
6431
6407
|
data: this.data
|
|
6432
6408
|
}),
|
|
6433
6409
|
localState: void 0,
|
|
6434
|
-
rootState:
|
|
6410
|
+
rootState: kl({
|
|
6435
6411
|
content: this.content,
|
|
6436
6412
|
data: this.data,
|
|
6437
6413
|
locale: this.locale
|
|
@@ -6441,7 +6417,7 @@ const kl = /* @__PURE__ */ V(vl, [["render", bl]]), Sl = ({
|
|
|
6441
6417
|
apiKey: this.apiKey,
|
|
6442
6418
|
apiVersion: this.apiVersion,
|
|
6443
6419
|
componentInfos: [
|
|
6444
|
-
...
|
|
6420
|
+
...vr(),
|
|
6445
6421
|
...this.customComponents || []
|
|
6446
6422
|
].reduce(
|
|
6447
6423
|
(n, { component: r, ...o }) => ({
|
|
@@ -6460,7 +6436,7 @@ const kl = /* @__PURE__ */ V(vl, [["render", bl]]), Sl = ({
|
|
|
6460
6436
|
provide() {
|
|
6461
6437
|
const e = this;
|
|
6462
6438
|
return {
|
|
6463
|
-
[
|
|
6439
|
+
[Rr.key]: {
|
|
6464
6440
|
registeredComponents: e.registeredComponents
|
|
6465
6441
|
}
|
|
6466
6442
|
};
|
|
@@ -6471,7 +6447,7 @@ const kl = /* @__PURE__ */ V(vl, [["render", bl]]), Sl = ({
|
|
|
6471
6447
|
}
|
|
6472
6448
|
}
|
|
6473
6449
|
});
|
|
6474
|
-
function
|
|
6450
|
+
function El(e, t, n, r, o, i) {
|
|
6475
6451
|
const a = U("inlined-script"), u = U("content-styles"), d = U("blocks"), m = U("enable-editor");
|
|
6476
6452
|
return v(), B(m, J({
|
|
6477
6453
|
content: e.content,
|
|
@@ -6515,12 +6491,12 @@ function Il(e, t, n, r, o, i) {
|
|
|
6515
6491
|
_: 1
|
|
6516
6492
|
}, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "linkComponent", "trustedHosts"]);
|
|
6517
6493
|
}
|
|
6518
|
-
const
|
|
6494
|
+
const Il = /* @__PURE__ */ V(wl, [["render", El]]), Tl = N({
|
|
6519
6495
|
name: "content-variants",
|
|
6520
6496
|
components: {
|
|
6521
6497
|
InlinedScript: no,
|
|
6522
|
-
InlinedStyles:
|
|
6523
|
-
ContentComponent:
|
|
6498
|
+
InlinedStyles: $n,
|
|
6499
|
+
ContentComponent: Il
|
|
6524
6500
|
},
|
|
6525
6501
|
props: [
|
|
6526
6502
|
"canTrack",
|
|
@@ -6543,12 +6519,12 @@ const Tl = /* @__PURE__ */ V(El, [["render", Il]]), xl = N({
|
|
|
6543
6519
|
],
|
|
6544
6520
|
data() {
|
|
6545
6521
|
return {
|
|
6546
|
-
shouldRenderVariants:
|
|
6522
|
+
shouldRenderVariants: $a({
|
|
6547
6523
|
canTrack: ht(this.canTrack),
|
|
6548
6524
|
content: this.content
|
|
6549
6525
|
}),
|
|
6550
6526
|
TARGET: de,
|
|
6551
|
-
getInitVariantsFnsScriptString:
|
|
6527
|
+
getInitVariantsFnsScriptString: Oa,
|
|
6552
6528
|
getVariants: xt
|
|
6553
6529
|
};
|
|
6554
6530
|
},
|
|
@@ -6557,7 +6533,7 @@ const Tl = /* @__PURE__ */ V(El, [["render", Il]]), xl = N({
|
|
|
6557
6533
|
computed: {
|
|
6558
6534
|
updateCookieAndStylesScriptStr() {
|
|
6559
6535
|
var e;
|
|
6560
|
-
return
|
|
6536
|
+
return ja(
|
|
6561
6537
|
xt(this.content).map((t) => ({
|
|
6562
6538
|
id: t.testVariationId,
|
|
6563
6539
|
testRatio: t.testRatio
|
|
@@ -6573,14 +6549,14 @@ const Tl = /* @__PURE__ */ V(El, [["render", Il]]), xl = N({
|
|
|
6573
6549
|
return this.shouldRenderVariants ? {
|
|
6574
6550
|
...this.content,
|
|
6575
6551
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
6576
|
-
} :
|
|
6552
|
+
} : ps({
|
|
6577
6553
|
item: this.content,
|
|
6578
6554
|
canTrack: ht(this.canTrack)
|
|
6579
6555
|
});
|
|
6580
6556
|
}
|
|
6581
6557
|
}
|
|
6582
6558
|
});
|
|
6583
|
-
function
|
|
6559
|
+
function xl(e, t, n, r, o, i) {
|
|
6584
6560
|
const a = U("inlined-script"), u = U("inlined-styles"), d = U("content-component");
|
|
6585
6561
|
return v(), $(re, null, [
|
|
6586
6562
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (v(), B(a, {
|
|
@@ -6597,7 +6573,7 @@ function Rl(e, t, n, r, o, i) {
|
|
|
6597
6573
|
id: "builderio-variants-visibility",
|
|
6598
6574
|
scriptStr: e.updateCookieAndStylesScriptStr
|
|
6599
6575
|
}, null, 8, ["scriptStr"]),
|
|
6600
|
-
(v(!0), $(re, null,
|
|
6576
|
+
(v(!0), $(re, null, Be(e.getVariants(e.content), (m, y) => (v(), B(d, {
|
|
6601
6577
|
key: m.testVariationId,
|
|
6602
6578
|
isNestedRender: e.isNestedRender,
|
|
6603
6579
|
content: m,
|
|
@@ -6645,13 +6621,13 @@ function Rl(e, t, n, r, o, i) {
|
|
|
6645
6621
|
}), null, 16, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
6646
6622
|
], 64);
|
|
6647
6623
|
}
|
|
6648
|
-
const
|
|
6624
|
+
const Rl = /* @__PURE__ */ V(Tl, [["render", xl]]), Al = async ({
|
|
6649
6625
|
builderContextValue: e,
|
|
6650
6626
|
symbol: t
|
|
6651
6627
|
}) => {
|
|
6652
6628
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
6653
6629
|
(e != null && e.apiKey))
|
|
6654
|
-
return
|
|
6630
|
+
return jn({
|
|
6655
6631
|
model: t.model,
|
|
6656
6632
|
apiKey: e.apiKey,
|
|
6657
6633
|
apiVersion: e.apiVersion,
|
|
@@ -6663,9 +6639,9 @@ const Al = /* @__PURE__ */ V(xl, [["render", Rl]]), $l = async ({
|
|
|
6663
6639
|
}).catch((n) => {
|
|
6664
6640
|
Z.error("Could not fetch symbol content: ", n);
|
|
6665
6641
|
});
|
|
6666
|
-
},
|
|
6642
|
+
}, $l = N({
|
|
6667
6643
|
name: "builder-symbol",
|
|
6668
|
-
components: { ContentVariants:
|
|
6644
|
+
components: { ContentVariants: Rl },
|
|
6669
6645
|
props: [
|
|
6670
6646
|
"symbol",
|
|
6671
6647
|
"attributes",
|
|
@@ -6708,7 +6684,7 @@ const Al = /* @__PURE__ */ V(xl, [["render", Rl]]), $l = async ({
|
|
|
6708
6684
|
},
|
|
6709
6685
|
methods: {
|
|
6710
6686
|
setContent() {
|
|
6711
|
-
this.contentToUse ||
|
|
6687
|
+
this.contentToUse || Al({
|
|
6712
6688
|
symbol: this.symbol,
|
|
6713
6689
|
builderContextValue: this.builderContext
|
|
6714
6690
|
}).then((e) => {
|
|
@@ -6717,7 +6693,7 @@ const Al = /* @__PURE__ */ V(xl, [["render", Rl]]), $l = async ({
|
|
|
6717
6693
|
}
|
|
6718
6694
|
}
|
|
6719
6695
|
});
|
|
6720
|
-
function
|
|
6696
|
+
function Pl(e, t, n, r, o, i) {
|
|
6721
6697
|
var u, d, m, y, f;
|
|
6722
6698
|
const a = U("content-variants");
|
|
6723
6699
|
return v(), $("div", J({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, ce(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
@@ -6743,18 +6719,18 @@ function Ol(e, t, n, r, o, i) {
|
|
|
6743
6719
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent"])
|
|
6744
6720
|
], 16);
|
|
6745
6721
|
}
|
|
6746
|
-
const
|
|
6747
|
-
function
|
|
6722
|
+
const Ol = /* @__PURE__ */ V($l, [["render", Pl]]), Ir = {};
|
|
6723
|
+
function Ll(e) {
|
|
6748
6724
|
if (X()) {
|
|
6749
|
-
Object.assign(
|
|
6725
|
+
Object.assign(Ir, e);
|
|
6750
6726
|
const t = {
|
|
6751
6727
|
type: "builder.settingsChange",
|
|
6752
|
-
data:
|
|
6728
|
+
data: Ir
|
|
6753
6729
|
};
|
|
6754
6730
|
parent.postMessage(t, "*");
|
|
6755
6731
|
}
|
|
6756
6732
|
}
|
|
6757
|
-
const
|
|
6733
|
+
const Hl = async (e) => {
|
|
6758
6734
|
var r, o, i;
|
|
6759
6735
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
6760
6736
|
...e,
|
|
@@ -6771,46 +6747,47 @@ const Kl = async (e) => {
|
|
|
6771
6747
|
return {
|
|
6772
6748
|
apiKey: n.apiKey,
|
|
6773
6749
|
model: n.model,
|
|
6774
|
-
content: await
|
|
6750
|
+
content: await jn(n)
|
|
6775
6751
|
};
|
|
6776
6752
|
};
|
|
6777
6753
|
export {
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6754
|
+
La as A,
|
|
6755
|
+
An as B,
|
|
6756
|
+
Di as C,
|
|
6757
|
+
Ha as D,
|
|
6758
|
+
jn as E,
|
|
6759
|
+
Ki as F,
|
|
6760
|
+
Bl as G,
|
|
6761
|
+
Ul as H,
|
|
6762
|
+
Zi as I,
|
|
6763
|
+
ts as S,
|
|
6787
6764
|
de as T,
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6765
|
+
wa as V,
|
|
6766
|
+
$n as _,
|
|
6767
|
+
Ui as a,
|
|
6768
|
+
Vl as b,
|
|
6792
6769
|
$e as c,
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6770
|
+
Fl as d,
|
|
6771
|
+
Wr as e,
|
|
6772
|
+
V as f,
|
|
6773
|
+
Fr as g,
|
|
6774
|
+
At as h,
|
|
6775
|
+
Ml as i,
|
|
6776
|
+
gn as j,
|
|
6777
|
+
un as k,
|
|
6778
|
+
Fo as l,
|
|
6779
|
+
Ol as m,
|
|
6780
|
+
xs as n,
|
|
6781
|
+
jt as o,
|
|
6782
|
+
Rl as p,
|
|
6783
|
+
ie as q,
|
|
6784
|
+
Ka as r,
|
|
6785
|
+
Ia as s,
|
|
6786
|
+
al as t,
|
|
6787
|
+
Ll as u,
|
|
6788
|
+
oo as v,
|
|
6789
|
+
Cl as w,
|
|
6790
|
+
Wl as x,
|
|
6791
|
+
Dl as y,
|
|
6792
|
+
Hl as z
|
|
6816
6793
|
};
|