@builder.io/sdk-vue 5.2.6 → 5.2.7
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/{awaiter-fjkJEwL2.cjs → awaiter-0mKQSRRk.cjs} +1 -1
- package/lib/browser/{awaiter-uv2UPA7r.js → awaiter-aT9nEkF0.js} +1 -1
- package/lib/browser/{block-wrapper-78wlnbq2.cjs → block-wrapper-ebPi5330.cjs} +1 -1
- package/lib/browser/{block-wrapper-JeL_jj_h.js → block-wrapper-hsmUEUmJ.js} +3 -3
- package/lib/browser/blocks/personalization-container/helpers.d.ts +2 -0
- package/lib/browser/{component-ref-mKp3QJjb.js → component-ref-2JLic_6J.js} +4 -4
- package/lib/browser/{component-ref-x3D964Ui.cjs → component-ref-5lsY_P2L.cjs} +1 -1
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +1 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-OItA8P2h.cjs → get-block-properties-DMrMpyLe.cjs} +1 -1
- package/lib/browser/{get-block-properties-gsdrxoRd.js → get-block-properties-uAJb6ltf.js} +1 -1
- package/lib/browser/{index-bSLOTVNj.cjs → index-HltbyCkc.cjs} +41 -33
- package/lib/browser/{index-SDeF5ljo.js → index-ODe_HCA4.js} +687 -675
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-G9Y94Fp3.js → live-edit-6Fy-p514.js} +1 -1
- package/lib/browser/{live-edit-tGxAmCBt.cjs → live-edit-jPgkphth.cjs} +1 -1
- package/lib/browser/{repeated-block-WgU2OssJ.js → repeated-block-GCDk4uyK.js} +2 -2
- package/lib/browser/{repeated-block-Fy3-rBBk.cjs → repeated-block-dwcsu5Tf.cjs} +1 -1
- package/lib/browser/{style-wrapper-EIQ0LSdQ.cjs → style-wrapper-uJyikbLw.cjs} +1 -1
- package/lib/browser/{style-wrapper-VY7cdn42.js → style-wrapper-uzjZV5OS.js} +1 -1
- package/lib/edge/{awaiter-To0MGZ0d.cjs → awaiter-eu9BKtnq.cjs} +1 -1
- package/lib/edge/{awaiter-xFN_a7xm.js → awaiter-n2CWjZB1.js} +1 -1
- package/lib/{node/block-wrapper-2UZEHIep.cjs → edge/block-wrapper--rtRhHUc.cjs} +1 -1
- package/lib/edge/{block-wrapper-1dKtPesr.js → block-wrapper-9nBz9JZR.js} +3 -3
- package/lib/edge/blocks/personalization-container/helpers.d.ts +2 -0
- package/lib/edge/{component-ref-e50s6g-8.js → component-ref-S9vJwuiq.js} +4 -4
- package/lib/edge/{component-ref-Yf97BoLu.cjs → component-ref-jnjNzDWr.cjs} +1 -1
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +1 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-EY1VltaD.js → get-block-properties--bKisxsm.js} +1 -1
- package/lib/edge/{get-block-properties-_upYTgwb.cjs → get-block-properties-TpA1c-Zj.cjs} +1 -1
- package/lib/edge/{index-i395EE2u.cjs → index-_nY8Y9dm.cjs} +49 -41
- package/lib/edge/{index-47Iqxag2.js → index-bxo4ghDB.js} +942 -930
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/live-edit-WlaTJPy3.js → edge/live-edit-7g02-2DF.js} +1 -1
- package/lib/{node/live-edit-GjqOXJlY.cjs → edge/live-edit-e8Z6uQ-j.cjs} +1 -1
- package/lib/edge/{repeated-block-PQOSkxIA.cjs → repeated-block-OUui2NbB.cjs} +1 -1
- package/lib/edge/{repeated-block-YtApB6_A.js → repeated-block-R_IWEkxl.js} +2 -2
- package/lib/edge/{style-wrapper-lmmE3giL.cjs → style-wrapper-F_5qcoF-.cjs} +1 -1
- package/lib/edge/{style-wrapper-_yXwiJwO.js → style-wrapper-sQRz1Tz9.js} +1 -1
- package/lib/node/{awaiter-DD7OMOMu.js → awaiter-JSpfFLrt.js} +1 -1
- package/lib/node/{awaiter-ef2JaOpA.cjs → awaiter-N70CU_8O.cjs} +1 -1
- package/lib/node/{block-wrapper-QV4wX7ge.js → block-wrapper-8WuMQvKC.js} +3 -3
- package/lib/{edge/block-wrapper-_thG9C3r.cjs → node/block-wrapper-pbauouda.cjs} +1 -1
- package/lib/node/blocks/personalization-container/helpers.d.ts +2 -0
- package/lib/node/{component-ref-PBLhD067.cjs → component-ref-0QnbZN8R.cjs} +1 -1
- package/lib/node/{component-ref-BVAWbmSM.js → component-ref-Why7x4bF.js} +5 -5
- package/lib/node/components/content-variants/content-variants.vue.d.ts +1 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-FqOAzbbj.cjs → get-block-properties-49Z6hgAn.cjs} +1 -1
- package/lib/node/{get-block-properties-jtxNpCjP.js → get-block-properties-yMS_NiSc.js} +2 -2
- package/lib/node/index-2G2Z-ncC.cjs +350 -0
- package/lib/node/{index-ebgoy2dh.js → index-4BcEpdYg.js} +569 -557
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-NYmL2A7N.cjs → node/live-edit-0eQ2U7us.cjs} +1 -1
- package/lib/{edge/live-edit-pS9LVcQU.js → node/live-edit-959vfTqG.js} +1 -1
- package/lib/node/{repeated-block-M3uZwBiE.cjs → repeated-block-NkQjCyoE.cjs} +1 -1
- package/lib/node/{repeated-block-u2S52SQe.js → repeated-block-uTpfjUj-.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-djPOsLG6.cjs → should-force-browser-runtime-in-node-hS7qkwoE.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-0fyWCMQO.js → should-force-browser-runtime-in-node-k20eAE3E.js} +1 -1
- package/lib/node/{style-wrapper-OtcV4kQU.js → style-wrapper-HY1zLGB7.js} +2 -2
- package/lib/node/{style-wrapper-Kc9lgaOA.cjs → style-wrapper-dYrN4_G9.cjs} +1 -1
- package/package.json +1 -1
- package/lib/node/index-sUYiBczF.cjs +0 -342
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as B, openBlock as v, createElementBlock as w, Fragment as z, createBlock as U, resolveDynamicComponent as dt, mergeProps as q, toHandlers as ye, withCtx as me, renderSlot as pe, resolveComponent as W, createTextVNode as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as B, openBlock as v, createElementBlock as w, Fragment as z, createBlock as U, resolveDynamicComponent as dt, mergeProps as q, toHandlers as ye, withCtx as me, renderSlot as pe, resolveComponent as W, createTextVNode as Qo, toDisplayString as Wt, defineAsyncComponent as st, createVNode as ee, renderList as ve, createCommentVNode as F, h as Jr, createElementVNode as Ge, normalizeStyle as Pe, normalizeClass as gt, markRaw as Zo } from "vue";
|
|
2
|
+
const ei = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ti = (e) => typeof e == "string" && ei.has(e.toLowerCase());
|
|
3
3
|
function de(e = {}, t, n) {
|
|
4
4
|
const r = {};
|
|
5
5
|
for (const o in e) {
|
|
@@ -10,11 +10,11 @@ function de(e = {}, t, n) {
|
|
|
10
10
|
}
|
|
11
11
|
return r;
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const ni = B({
|
|
14
14
|
name: "dynamic-renderer",
|
|
15
15
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
16
16
|
data() {
|
|
17
|
-
return { isEmptyElement:
|
|
17
|
+
return { isEmptyElement: ti };
|
|
18
18
|
}
|
|
19
19
|
}), j = (e, t) => {
|
|
20
20
|
const n = e.__vccOpts || e;
|
|
@@ -22,7 +22,7 @@ const ei = B({
|
|
|
22
22
|
n[r] = o;
|
|
23
23
|
return n;
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function ri(e, t, n, r, o, i) {
|
|
26
26
|
return e.isEmptyElement(e.TagName) ? (v(), U(dt(e.TagName), q({ key: 1 }, e.attributes, ye(e.actionAttributes)), null, 16)) : (v(), w(z, { key: 0 }, [
|
|
27
27
|
typeof e.TagName == "string" ? (v(), U(dt(e.TagName), q({ key: 0 }, e.attributes, ye(e.actionAttributes)), {
|
|
28
28
|
default: me(() => [
|
|
@@ -37,9 +37,9 @@ function ti(e, t, n, r, o, i) {
|
|
|
37
37
|
}, 16))
|
|
38
38
|
], 64));
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const xn = /* @__PURE__ */ j(ni, [["render", ri]]), nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41
41
|
__proto__: null,
|
|
42
|
-
default:
|
|
42
|
+
default: xn
|
|
43
43
|
}, Symbol.toStringTag, { value: "Module" })), G = "vue", Oe = () => {
|
|
44
44
|
switch (G) {
|
|
45
45
|
case "react":
|
|
@@ -53,9 +53,9 @@ const Rn = /* @__PURE__ */ j(ei, [["render", ti]]), Zu = /* @__PURE__ */ Object.
|
|
|
53
53
|
case "angular":
|
|
54
54
|
return "class";
|
|
55
55
|
}
|
|
56
|
-
},
|
|
56
|
+
}, oi = B({
|
|
57
57
|
name: "builder-button",
|
|
58
|
-
components: { DynamicRenderer:
|
|
58
|
+
components: { DynamicRenderer: xn },
|
|
59
59
|
props: [
|
|
60
60
|
"attributes",
|
|
61
61
|
"link",
|
|
@@ -82,7 +82,7 @@ const Rn = /* @__PURE__ */ j(ei, [["render", ti]]), Zu = /* @__PURE__ */ Object.
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
|
-
function
|
|
85
|
+
function ii(e, t, n, r, o, i) {
|
|
86
86
|
const s = W("DynamicRenderer");
|
|
87
87
|
return v(), U(s, {
|
|
88
88
|
attributes: e.attrs(),
|
|
@@ -90,12 +90,12 @@ function ri(e, t, n, r, o, i) {
|
|
|
90
90
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
91
91
|
}, {
|
|
92
92
|
default: me(() => [
|
|
93
|
-
|
|
93
|
+
Qo(Wt(e.text), 1)
|
|
94
94
|
]),
|
|
95
95
|
_: 1
|
|
96
96
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
97
97
|
}
|
|
98
|
-
const
|
|
98
|
+
const si = /* @__PURE__ */ j(oi, [["render", ii]]), ai = Symbol(), vn = {
|
|
99
99
|
Builder: {
|
|
100
100
|
content: null,
|
|
101
101
|
context: {},
|
|
@@ -112,43 +112,43 @@ const oi = /* @__PURE__ */ j(ni, [["render", ri]]), ii = Symbol(), vn = {
|
|
|
112
112
|
nonce: "",
|
|
113
113
|
model: ""
|
|
114
114
|
},
|
|
115
|
-
key:
|
|
116
|
-
},
|
|
115
|
+
key: ai
|
|
116
|
+
}, li = Symbol(), Xr = {
|
|
117
117
|
Components: { registeredComponents: {} },
|
|
118
|
-
key:
|
|
118
|
+
key: li
|
|
119
119
|
}, Pt = "[Builder.io]: ", ue = {
|
|
120
120
|
log: (...e) => console.log(Pt, ...e),
|
|
121
121
|
error: (...e) => console.error(Pt, ...e),
|
|
122
122
|
warn: (...e) => console.warn(Pt, ...e),
|
|
123
123
|
debug: (...e) => console.debug(Pt, ...e)
|
|
124
|
-
},
|
|
124
|
+
}, Yr = (e, t, n) => {
|
|
125
125
|
const r = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, i) => o != null ? o[i] : o, e);
|
|
126
126
|
return r === void 0 || r === e ? n : r;
|
|
127
127
|
};
|
|
128
128
|
function M() {
|
|
129
129
|
return typeof window < "u" && typeof document < "u";
|
|
130
130
|
}
|
|
131
|
-
const
|
|
131
|
+
const ui = (e) => {
|
|
132
132
|
const t = {};
|
|
133
133
|
return e.forEach((n, r) => {
|
|
134
134
|
t[r] = n;
|
|
135
135
|
}), t;
|
|
136
|
-
},
|
|
137
|
-
function
|
|
136
|
+
}, Qr = (e) => e instanceof URLSearchParams ? ui(e) : e, Zr = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
137
|
+
function ci() {
|
|
138
138
|
return M() && window.self !== window.top;
|
|
139
139
|
}
|
|
140
140
|
function oe(e) {
|
|
141
|
-
return
|
|
142
|
-
|
|
141
|
+
return ci() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
142
|
+
Zr(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
143
143
|
}
|
|
144
|
-
const
|
|
144
|
+
const pi = () => {
|
|
145
145
|
if (M()) {
|
|
146
146
|
const e = new URL(location.href);
|
|
147
147
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
148
148
|
} else
|
|
149
149
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
150
|
-
},
|
|
151
|
-
const e =
|
|
150
|
+
}, di = () => typeof navigator == "object" && navigator.userAgent || "", eo = () => {
|
|
151
|
+
const e = di(), t = {
|
|
152
152
|
Android() {
|
|
153
153
|
return e.match(/Android/i);
|
|
154
154
|
},
|
|
@@ -167,17 +167,17 @@ const ui = () => {
|
|
|
167
167
|
any() {
|
|
168
168
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || G === "reactNative";
|
|
169
169
|
}
|
|
170
|
-
}, n = e.match(/Tablet|iPad/i), r =
|
|
170
|
+
}, n = e.match(/Tablet|iPad/i), r = pi();
|
|
171
171
|
return {
|
|
172
172
|
urlPath: r == null ? void 0 : r.pathname,
|
|
173
173
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
174
174
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
175
175
|
};
|
|
176
|
-
},
|
|
176
|
+
}, to = "5.2.7", no = () => ({
|
|
177
177
|
"X-Builder-SDK": G,
|
|
178
178
|
"X-Builder-SDK-GEN": "2",
|
|
179
|
-
"X-Builder-SDK-Version":
|
|
180
|
-
}), Ne = (e) => e != null,
|
|
179
|
+
"X-Builder-SDK-Version": to
|
|
180
|
+
}), Ne = (e) => e != null, fi = (e) => {
|
|
181
181
|
if (e === "localhost" || e === "127.0.0.1")
|
|
182
182
|
return e;
|
|
183
183
|
const t = e.split(".");
|
|
@@ -193,14 +193,14 @@ const ui = () => {
|
|
|
193
193
|
ue.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
|
-
},
|
|
196
|
+
}, ro = async (e) => Lt(e), hi = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(Ne).join("; "), mi = [["secure", ""], ["SameSite", "None"]], gi = ({
|
|
197
197
|
name: e,
|
|
198
198
|
value: t,
|
|
199
199
|
expires: n
|
|
200
200
|
}) => {
|
|
201
|
-
const o = (M() ? location.protocol === "https:" : !0) ?
|
|
202
|
-
return
|
|
203
|
-
},
|
|
201
|
+
const o = (M() ? location.protocol === "https:" : !0) ? mi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", fi(window.location.hostname)], ...o];
|
|
202
|
+
return hi(s);
|
|
203
|
+
}, Pn = async ({
|
|
204
204
|
name: e,
|
|
205
205
|
value: t,
|
|
206
206
|
expires: n,
|
|
@@ -209,7 +209,7 @@ const ui = () => {
|
|
|
209
209
|
try {
|
|
210
210
|
if (!r)
|
|
211
211
|
return;
|
|
212
|
-
const o =
|
|
212
|
+
const o = gi({
|
|
213
213
|
name: e,
|
|
214
214
|
value: t,
|
|
215
215
|
expires: n
|
|
@@ -219,93 +219,93 @@ const ui = () => {
|
|
|
219
219
|
ue.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
|
-
function
|
|
222
|
+
function yi() {
|
|
223
223
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
224
224
|
const t = Math.random() * 16 | 0;
|
|
225
225
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
return
|
|
228
|
+
function oo() {
|
|
229
|
+
return yi().replace(/-/g, "");
|
|
230
230
|
}
|
|
231
|
-
const
|
|
231
|
+
const io = "builderSessionId", vi = async ({
|
|
232
232
|
canTrack: e
|
|
233
233
|
}) => {
|
|
234
234
|
if (!e)
|
|
235
235
|
return;
|
|
236
|
-
const t = await
|
|
237
|
-
name:
|
|
236
|
+
const t = await ro({
|
|
237
|
+
name: io,
|
|
238
238
|
canTrack: e
|
|
239
239
|
});
|
|
240
240
|
if (Ne(t))
|
|
241
241
|
return t;
|
|
242
242
|
{
|
|
243
|
-
const n =
|
|
244
|
-
return
|
|
243
|
+
const n = bi();
|
|
244
|
+
return Si({
|
|
245
245
|
id: n,
|
|
246
246
|
canTrack: e
|
|
247
247
|
}), n;
|
|
248
248
|
}
|
|
249
|
-
},
|
|
249
|
+
}, bi = () => oo(), Si = ({
|
|
250
250
|
id: e,
|
|
251
251
|
canTrack: t
|
|
252
|
-
}) =>
|
|
253
|
-
name:
|
|
252
|
+
}) => Pn({
|
|
253
|
+
name: io,
|
|
254
254
|
value: e,
|
|
255
255
|
canTrack: t
|
|
256
|
-
}),
|
|
256
|
+
}), so = () => M() && typeof localStorage < "u" ? localStorage : void 0, ki = ({
|
|
257
257
|
key: e,
|
|
258
258
|
canTrack: t
|
|
259
259
|
}) => {
|
|
260
260
|
var n;
|
|
261
261
|
try {
|
|
262
|
-
return t ? (n =
|
|
262
|
+
return t ? (n = so()) == null ? void 0 : n.getItem(e) : void 0;
|
|
263
263
|
} catch (r) {
|
|
264
264
|
console.debug("[LocalStorage] GET error: ", r);
|
|
265
265
|
return;
|
|
266
266
|
}
|
|
267
|
-
},
|
|
267
|
+
}, Ci = ({
|
|
268
268
|
key: e,
|
|
269
269
|
canTrack: t,
|
|
270
270
|
value: n
|
|
271
271
|
}) => {
|
|
272
272
|
var r;
|
|
273
273
|
try {
|
|
274
|
-
t && ((r =
|
|
274
|
+
t && ((r = so()) == null || r.setItem(e, n));
|
|
275
275
|
} catch (o) {
|
|
276
276
|
console.debug("[LocalStorage] SET error: ", o);
|
|
277
277
|
}
|
|
278
|
-
},
|
|
278
|
+
}, ao = "builderVisitorId", wi = ({
|
|
279
279
|
canTrack: e
|
|
280
280
|
}) => {
|
|
281
281
|
if (!e)
|
|
282
282
|
return;
|
|
283
|
-
const t =
|
|
284
|
-
key:
|
|
283
|
+
const t = ki({
|
|
284
|
+
key: ao,
|
|
285
285
|
canTrack: e
|
|
286
286
|
});
|
|
287
287
|
if (Ne(t))
|
|
288
288
|
return t;
|
|
289
289
|
{
|
|
290
|
-
const n =
|
|
291
|
-
return
|
|
290
|
+
const n = Ti();
|
|
291
|
+
return Ei({
|
|
292
292
|
id: n,
|
|
293
293
|
canTrack: e
|
|
294
294
|
}), n;
|
|
295
295
|
}
|
|
296
|
-
},
|
|
296
|
+
}, Ti = () => oo(), Ei = ({
|
|
297
297
|
id: e,
|
|
298
298
|
canTrack: t
|
|
299
|
-
}) =>
|
|
300
|
-
key:
|
|
299
|
+
}) => Ci({
|
|
300
|
+
key: ao,
|
|
301
301
|
value: e,
|
|
302
302
|
canTrack: t
|
|
303
303
|
});
|
|
304
|
-
function
|
|
304
|
+
function On(e) {
|
|
305
305
|
var t;
|
|
306
306
|
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && ue.log(e);
|
|
307
307
|
}
|
|
308
|
-
const
|
|
308
|
+
const Ii = async ({
|
|
309
309
|
canTrack: e
|
|
310
310
|
}) => {
|
|
311
311
|
if (!e)
|
|
@@ -313,16 +313,16 @@ const Ti = async ({
|
|
|
313
313
|
visitorId: void 0,
|
|
314
314
|
sessionId: void 0
|
|
315
315
|
};
|
|
316
|
-
const t = await
|
|
316
|
+
const t = await vi({
|
|
317
317
|
canTrack: e
|
|
318
|
-
}), n =
|
|
318
|
+
}), n = wi({
|
|
319
319
|
canTrack: e
|
|
320
320
|
});
|
|
321
321
|
return {
|
|
322
322
|
sessionId: t,
|
|
323
323
|
visitorId: n
|
|
324
324
|
};
|
|
325
|
-
},
|
|
325
|
+
}, Ri = async ({
|
|
326
326
|
type: e,
|
|
327
327
|
canTrack: t,
|
|
328
328
|
apiKey: n,
|
|
@@ -336,10 +336,10 @@ const Ti = async ({
|
|
|
336
336
|
url: location.href,
|
|
337
337
|
...r
|
|
338
338
|
},
|
|
339
|
-
...await
|
|
339
|
+
...await Ii({
|
|
340
340
|
canTrack: t
|
|
341
341
|
}),
|
|
342
|
-
userAttributes:
|
|
342
|
+
userAttributes: eo(),
|
|
343
343
|
ownerId: n
|
|
344
344
|
}
|
|
345
345
|
});
|
|
@@ -354,24 +354,24 @@ async function jt({
|
|
|
354
354
|
if (!t.canTrack || oe() || !(M() || G === "reactNative"))
|
|
355
355
|
return;
|
|
356
356
|
const r = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
357
|
-
return
|
|
357
|
+
return On(r), fetch(r, {
|
|
358
358
|
method: "POST",
|
|
359
359
|
body: JSON.stringify({
|
|
360
|
-
events: [await
|
|
360
|
+
events: [await Ri(t)]
|
|
361
361
|
}),
|
|
362
362
|
headers: {
|
|
363
363
|
"content-type": "application/json",
|
|
364
|
-
...
|
|
364
|
+
...no()
|
|
365
365
|
},
|
|
366
366
|
mode: "cors"
|
|
367
367
|
}).catch((o) => {
|
|
368
368
|
console.error("Failed to track: ", o);
|
|
369
369
|
});
|
|
370
370
|
}
|
|
371
|
-
const
|
|
371
|
+
const rc = (e) => jt({
|
|
372
372
|
...e,
|
|
373
373
|
canTrack: !0
|
|
374
|
-
}),
|
|
374
|
+
}), lo = ({
|
|
375
375
|
builder: e,
|
|
376
376
|
context: t,
|
|
377
377
|
event: n,
|
|
@@ -383,11 +383,11 @@ const ec = (e) => jt({
|
|
|
383
383
|
builder: e,
|
|
384
384
|
context: t,
|
|
385
385
|
event: n
|
|
386
|
-
}),
|
|
386
|
+
}), Ai = (e) => ({
|
|
387
387
|
isEditing: oe(),
|
|
388
388
|
isBrowser: M(),
|
|
389
389
|
isServer: !M(),
|
|
390
|
-
getUserAttributes: () =>
|
|
390
|
+
getUserAttributes: () => eo(),
|
|
391
391
|
trackConversion: (t, n) => {
|
|
392
392
|
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || jt({
|
|
393
393
|
type: "conversion",
|
|
@@ -403,10 +403,10 @@ const ec = (e) => jt({
|
|
|
403
403
|
}
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
|
-
}),
|
|
406
|
+
}), $i = (e, {
|
|
407
407
|
isExpression: t = !0
|
|
408
408
|
}) => /* 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;
|
|
409
|
-
function
|
|
409
|
+
function Nn({
|
|
410
410
|
rootState: e,
|
|
411
411
|
localState: t,
|
|
412
412
|
rootSetState: n
|
|
@@ -416,7 +416,7 @@ function xn({
|
|
|
416
416
|
if (t && o in t)
|
|
417
417
|
return t[o];
|
|
418
418
|
const i = r[o];
|
|
419
|
-
return typeof i == "object" && i !== null ?
|
|
419
|
+
return typeof i == "object" && i !== null ? Nn({
|
|
420
420
|
rootState: i,
|
|
421
421
|
localState: void 0,
|
|
422
422
|
rootSetState: n ? (s) => {
|
|
@@ -431,7 +431,7 @@ function xn({
|
|
|
431
431
|
}
|
|
432
432
|
});
|
|
433
433
|
}
|
|
434
|
-
const
|
|
434
|
+
const xi = ({
|
|
435
435
|
code: e,
|
|
436
436
|
builder: t,
|
|
437
437
|
context: n,
|
|
@@ -440,11 +440,11 @@ const Ai = ({
|
|
|
440
440
|
rootSetState: i,
|
|
441
441
|
rootState: s
|
|
442
442
|
}) => {
|
|
443
|
-
const u =
|
|
443
|
+
const u = lo({
|
|
444
444
|
builder: t,
|
|
445
445
|
context: n,
|
|
446
446
|
event: r,
|
|
447
|
-
state:
|
|
447
|
+
state: Nn({
|
|
448
448
|
rootState: s,
|
|
449
449
|
localState: o,
|
|
450
450
|
rootSetState: i
|
|
@@ -452,24 +452,24 @@ const Ai = ({
|
|
|
452
452
|
});
|
|
453
453
|
return new Function(...u.map(([c]) => c), e)(...u.map(([, c]) => c));
|
|
454
454
|
};
|
|
455
|
-
var V,
|
|
455
|
+
var V, Pi = function(e) {
|
|
456
456
|
function t(a) {
|
|
457
|
-
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a &&
|
|
457
|
+
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Xo.test(String.fromCharCode(a));
|
|
458
458
|
}
|
|
459
459
|
function n(a) {
|
|
460
|
-
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a &&
|
|
460
|
+
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && xr.test(String.fromCharCode(a));
|
|
461
461
|
}
|
|
462
462
|
function r(a, l) {
|
|
463
|
-
for (var p = k,
|
|
463
|
+
for (var p = k, f = 1, P = 0; ; ) {
|
|
464
464
|
xt.lastIndex = P;
|
|
465
465
|
var Q = xt.exec(p);
|
|
466
466
|
if (Q && Q.index < a)
|
|
467
|
-
++
|
|
467
|
+
++f, P = Q.index + Q[0].length;
|
|
468
468
|
else
|
|
469
469
|
break;
|
|
470
470
|
}
|
|
471
471
|
throw p = {
|
|
472
|
-
line:
|
|
472
|
+
line: f,
|
|
473
473
|
ab: a - P
|
|
474
474
|
}, l += " (" + p.line + ":" + p.ab + ")", l = new SyntaxError(l), l.j = a, l.X = p, l.o = d, l;
|
|
475
475
|
}
|
|
@@ -477,15 +477,15 @@ var V, $i = function(e) {
|
|
|
477
477
|
a = a.split(" ");
|
|
478
478
|
for (var l = /* @__PURE__ */ Object.create(null), p = 0; p < a.length; p++)
|
|
479
479
|
l[a[p]] = !0;
|
|
480
|
-
return function(
|
|
481
|
-
return l[
|
|
480
|
+
return function(f) {
|
|
481
|
+
return l[f] || !1;
|
|
482
482
|
};
|
|
483
483
|
}
|
|
484
484
|
function i() {
|
|
485
485
|
this.line = Ve, this.ab = d - ke;
|
|
486
486
|
}
|
|
487
487
|
function s(a, l) {
|
|
488
|
-
Fe = d, O.C && (Qt = new i()), x = a, c(),
|
|
488
|
+
Fe = d, O.C && (Qt = new i()), x = a, c(), fe = l, tt = a.m;
|
|
489
489
|
}
|
|
490
490
|
function u() {
|
|
491
491
|
for (var a = d, l = O.va && O.C && new i(), p = k.charCodeAt(d += 2); d < Le && p !== 10 && p !== 13 && p !== 8232 && p !== 8233; )
|
|
@@ -506,18 +506,18 @@ var V, $i = function(e) {
|
|
|
506
506
|
else if (a === 47)
|
|
507
507
|
if (a = k.charCodeAt(d + 1), a === 42) {
|
|
508
508
|
a = void 0;
|
|
509
|
-
var l = O.va && O.C && new i(), p = d,
|
|
510
|
-
if (
|
|
509
|
+
var l = O.va && O.C && new i(), p = d, f = k.indexOf("*/", d += 2);
|
|
510
|
+
if (f === -1 && r(d - 2, "Unterminated comment"), d = f + 2, O.C)
|
|
511
511
|
for (xt.lastIndex = p; (a = xt.exec(k)) && a.index < d; )
|
|
512
512
|
++Ve, ke = a.index + a[0].length;
|
|
513
|
-
O.va && O.va(!0, k.slice(p + 2,
|
|
513
|
+
O.va && O.va(!0, k.slice(p + 2, f), p, d, l, O.C && new i());
|
|
514
514
|
} else if (a === 47)
|
|
515
515
|
u();
|
|
516
516
|
else
|
|
517
517
|
break;
|
|
518
518
|
else if (a === 160)
|
|
519
519
|
++d;
|
|
520
|
-
else if (5760 <= a &&
|
|
520
|
+
else if (5760 <= a && Jo.test(String.fromCharCode(a)))
|
|
521
521
|
++d;
|
|
522
522
|
else
|
|
523
523
|
break;
|
|
@@ -526,7 +526,7 @@ var V, $i = function(e) {
|
|
|
526
526
|
function m(a) {
|
|
527
527
|
switch (a) {
|
|
528
528
|
case 46:
|
|
529
|
-
a = k.charCodeAt(d + 1), 48 <= a && 57 >= a ? A(!0) : (++d, s(
|
|
529
|
+
a = k.charCodeAt(d + 1), 48 <= a && 57 >= a ? A(!0) : (++d, s(Cr));
|
|
530
530
|
return;
|
|
531
531
|
case 40:
|
|
532
532
|
return ++d, s(Ce);
|
|
@@ -547,7 +547,7 @@ var V, $i = function(e) {
|
|
|
547
547
|
case 58:
|
|
548
548
|
return ++d, s(it);
|
|
549
549
|
case 63:
|
|
550
|
-
return ++d, s(
|
|
550
|
+
return ++d, s(wr);
|
|
551
551
|
case 48:
|
|
552
552
|
if (a = k.charCodeAt(d + 1), a === 120 || a === 88) {
|
|
553
553
|
d += 2, a = S(16), a === null && r(Y + 2, "Expected hexadecimal number"), n(k.charCodeAt(d)) && r(d, "Identifier directly after number"), s(rt, a);
|
|
@@ -575,11 +575,11 @@ var V, $i = function(e) {
|
|
|
575
575
|
}
|
|
576
576
|
if (p === 92) {
|
|
577
577
|
p = k.charCodeAt(++d);
|
|
578
|
-
var
|
|
579
|
-
for (
|
|
580
|
-
|
|
581
|
-
if (
|
|
582
|
-
ce && r(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(
|
|
578
|
+
var f = /^[0-7]+/.exec(k.slice(d, d + 3));
|
|
579
|
+
for (f && (f = f[0]); f && 255 < parseInt(f, 8); )
|
|
580
|
+
f = f.slice(0, -1);
|
|
581
|
+
if (f === "0" && (f = null), ++d, f)
|
|
582
|
+
ce && r(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(f, 8)), d += f.length - 1;
|
|
583
583
|
else
|
|
584
584
|
switch (p) {
|
|
585
585
|
case 110:
|
|
@@ -626,45 +626,45 @@ var V, $i = function(e) {
|
|
|
626
626
|
}
|
|
627
627
|
return;
|
|
628
628
|
case 47:
|
|
629
|
-
a = k.charCodeAt(d + 1), tt ? (++d,
|
|
629
|
+
a = k.charCodeAt(d + 1), tt ? (++d, h()) : a === 61 ? b(De, 2) : b(Tr, 1);
|
|
630
630
|
return;
|
|
631
631
|
case 37:
|
|
632
632
|
case 42:
|
|
633
|
-
k.charCodeAt(d + 1) === 61 ? b(De, 2) : b(
|
|
633
|
+
k.charCodeAt(d + 1) === 61 ? b(De, 2) : b(qo, 1);
|
|
634
634
|
return;
|
|
635
635
|
case 124:
|
|
636
636
|
case 38:
|
|
637
|
-
l = k.charCodeAt(d + 1), l === a ? b(a === 124 ?
|
|
637
|
+
l = k.charCodeAt(d + 1), l === a ? b(a === 124 ? Rr : Ar, 2) : l === 61 ? b(De, 2) : b(a === 124 ? Wo : Fo, 1);
|
|
638
638
|
return;
|
|
639
639
|
case 94:
|
|
640
|
-
k.charCodeAt(d + 1) === 61 ? b(De, 2) : b(
|
|
640
|
+
k.charCodeAt(d + 1) === 61 ? b(De, 2) : b(Lo, 1);
|
|
641
641
|
return;
|
|
642
642
|
case 43:
|
|
643
643
|
case 45:
|
|
644
|
-
l = k.charCodeAt(d + 1), l === a ? l === 45 && k.charCodeAt(d + 2) === 62 && $t.test(k.slice($e, d)) ? (d += 3, u(), c(), y()) : b(
|
|
644
|
+
l = k.charCodeAt(d + 1), l === a ? l === 45 && k.charCodeAt(d + 2) === 62 && $t.test(k.slice($e, d)) ? (d += 3, u(), c(), y()) : b(Uo, 2) : l === 61 ? b(De, 2) : b(zo, 1);
|
|
645
645
|
return;
|
|
646
646
|
case 60:
|
|
647
647
|
case 62:
|
|
648
|
-
l = k.charCodeAt(d + 1), p = 1, l === a ? (p = a === 62 && k.charCodeAt(d + 2) === 62 ? 3 : 2, k.charCodeAt(d + p) === 61 ? b(De, p + 1) : b(
|
|
648
|
+
l = k.charCodeAt(d + 1), p = 1, l === a ? (p = a === 62 && k.charCodeAt(d + 2) === 62 ? 3 : 2, k.charCodeAt(d + p) === 61 ? b(De, p + 1) : b(Ko, p)) : l === 33 && a === 60 && k.charCodeAt(d + 2) === 45 && k.charCodeAt(d + 3) === 45 ? (d += 4, u(), c(), y()) : (l === 61 && (p = k.charCodeAt(d + 2) === 61 ? 3 : 2), b(Ho, p));
|
|
649
649
|
return;
|
|
650
650
|
case 61:
|
|
651
651
|
case 33:
|
|
652
|
-
k.charCodeAt(d + 1) === 61 ? b(
|
|
652
|
+
k.charCodeAt(d + 1) === 61 ? b(Mo, k.charCodeAt(d + 2) === 61 ? 3 : 2) : b(a === 61 ? Er : Ir, 1);
|
|
653
653
|
return;
|
|
654
654
|
case 126:
|
|
655
|
-
return b(
|
|
655
|
+
return b(Ir, 1);
|
|
656
656
|
}
|
|
657
657
|
return !1;
|
|
658
658
|
}
|
|
659
659
|
function y(a) {
|
|
660
660
|
if (a ? d = Y + 1 : Y = d, O.C && (Yt = new i()), a)
|
|
661
|
-
return
|
|
661
|
+
return h();
|
|
662
662
|
if (d >= Le)
|
|
663
663
|
return s(tn);
|
|
664
664
|
if (a = k.charCodeAt(d), n(a) || a === 92)
|
|
665
665
|
return te();
|
|
666
666
|
if (m(a) === !1) {
|
|
667
|
-
if (a = String.fromCharCode(a), a === "\\" ||
|
|
667
|
+
if (a = String.fromCharCode(a), a === "\\" || xr.test(a))
|
|
668
668
|
return te();
|
|
669
669
|
r(d, "Unexpected character '" + a + "'");
|
|
670
670
|
}
|
|
@@ -673,20 +673,20 @@ var V, $i = function(e) {
|
|
|
673
673
|
var p = k.slice(d, d + l);
|
|
674
674
|
d += l, s(a, p);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function h() {
|
|
677
677
|
for (var a, l, p = d; ; ) {
|
|
678
678
|
d >= Le && r(p, "Unterminated regexp");
|
|
679
|
-
var
|
|
680
|
-
if ($t.test(
|
|
679
|
+
var f = k.charAt(d);
|
|
680
|
+
if ($t.test(f) && r(p, "Unterminated regexp"), a)
|
|
681
681
|
a = !1;
|
|
682
682
|
else {
|
|
683
|
-
if (
|
|
683
|
+
if (f === "[")
|
|
684
684
|
l = !0;
|
|
685
|
-
else if (
|
|
685
|
+
else if (f === "]" && l)
|
|
686
686
|
l = !1;
|
|
687
|
-
else if (
|
|
687
|
+
else if (f === "/" && !l)
|
|
688
688
|
break;
|
|
689
|
-
a =
|
|
689
|
+
a = f === "\\";
|
|
690
690
|
}
|
|
691
691
|
++d;
|
|
692
692
|
}
|
|
@@ -696,22 +696,22 @@ var V, $i = function(e) {
|
|
|
696
696
|
} catch (Q) {
|
|
697
697
|
throw Q instanceof SyntaxError && r(p, Q.message), Q;
|
|
698
698
|
}
|
|
699
|
-
s(
|
|
699
|
+
s(rr, P);
|
|
700
700
|
}
|
|
701
701
|
function S(a, l) {
|
|
702
|
-
for (var p = d,
|
|
702
|
+
for (var p = d, f = 0, P = l === void 0 ? 1 / 0 : l, Q = 0; Q < P; ++Q) {
|
|
703
703
|
var se = k.charCodeAt(d);
|
|
704
704
|
if (se = 97 <= se ? se - 97 + 10 : 65 <= se ? se - 65 + 10 : 48 <= se && 57 >= se ? se - 48 : 1 / 0, se >= a)
|
|
705
705
|
break;
|
|
706
|
-
++d,
|
|
706
|
+
++d, f = f * a + se;
|
|
707
707
|
}
|
|
708
|
-
return d === p || l !== void 0 && d - p !== l ? null :
|
|
708
|
+
return d === p || l !== void 0 && d - p !== l ? null : f;
|
|
709
709
|
}
|
|
710
710
|
function A(a) {
|
|
711
|
-
var l = d, p = !1,
|
|
711
|
+
var l = d, p = !1, f = k.charCodeAt(d) === 48;
|
|
712
712
|
a || S(10) !== null || r(l, "Invalid number"), k.charCodeAt(d) === 46 && (++d, S(10), p = !0), a = k.charCodeAt(d), (a === 69 || a === 101) && (a = k.charCodeAt(++d), a !== 43 && a !== 45 || ++d, S(10) === null && r(l, "Invalid number"), p = !0), n(k.charCodeAt(d)) && r(d, "Identifier directly after number"), a = k.slice(l, d);
|
|
713
713
|
var P;
|
|
714
|
-
p ? P = parseFloat(a) :
|
|
714
|
+
p ? P = parseFloat(a) : f && a.length !== 1 ? /[89]/.test(a) || ce ? r(l, "Invalid number") : P = parseInt(a, 8) : P = parseInt(a, 10), s(rt, P);
|
|
715
715
|
}
|
|
716
716
|
function $(a) {
|
|
717
717
|
return a = S(16, a), a === null && r(Y, "Bad character escape sequence"), a;
|
|
@@ -719,13 +719,13 @@ var V, $i = function(e) {
|
|
|
719
719
|
function H() {
|
|
720
720
|
Ke = !1;
|
|
721
721
|
for (var a, l = !0, p = d; ; ) {
|
|
722
|
-
var
|
|
723
|
-
if (t(
|
|
722
|
+
var f = k.charCodeAt(d);
|
|
723
|
+
if (t(f))
|
|
724
724
|
Ke && (a += k.charAt(d)), ++d;
|
|
725
|
-
else if (
|
|
726
|
-
Ke || (a = k.slice(p, d)), Ke = !0, k.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d,
|
|
727
|
-
var P = String.fromCharCode(
|
|
728
|
-
P || r(d - 1, "Invalid Unicode escape"), (l ? n(
|
|
725
|
+
else if (f === 92) {
|
|
726
|
+
Ke || (a = k.slice(p, d)), Ke = !0, k.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, f = $(4);
|
|
727
|
+
var P = String.fromCharCode(f);
|
|
728
|
+
P || r(d - 1, "Invalid Unicode escape"), (l ? n(f) : t(f)) || r(d - 4, "Invalid Unicode escape"), a += P;
|
|
729
729
|
} else
|
|
730
730
|
break;
|
|
731
731
|
l = !1;
|
|
@@ -734,7 +734,7 @@ var V, $i = function(e) {
|
|
|
734
734
|
}
|
|
735
735
|
function te() {
|
|
736
736
|
var a = H(), l = Me;
|
|
737
|
-
!Ke &&
|
|
737
|
+
!Ke && _o(a) && (l = Do[a]), s(l, a);
|
|
738
738
|
}
|
|
739
739
|
function E() {
|
|
740
740
|
Zt = Y, $e = Fe, en = Qt, y();
|
|
@@ -784,59 +784,59 @@ var V, $i = function(e) {
|
|
|
784
784
|
function Tt(a) {
|
|
785
785
|
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), ce && a.type === "Identifier" && At(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
786
786
|
}
|
|
787
|
-
function
|
|
788
|
-
(x ===
|
|
787
|
+
function he() {
|
|
788
|
+
(x === Tr || x === De && fe === "/=") && y(!0);
|
|
789
789
|
var a = x, l = K();
|
|
790
790
|
switch (a) {
|
|
791
791
|
case nn:
|
|
792
|
-
case
|
|
792
|
+
case ir:
|
|
793
793
|
E();
|
|
794
794
|
var p = a === nn;
|
|
795
795
|
L(we) || wt() ? l.label = null : x !== Me ? be() : (l.label = Se(), je());
|
|
796
|
-
for (var
|
|
797
|
-
var P = X[
|
|
796
|
+
for (var f = 0; f < X.length; ++f) {
|
|
797
|
+
var P = X[f];
|
|
798
798
|
if ((l.label === null || P.name === l.label.name) && (P.kind !== null && (p || P.kind === "loop") || l.label && p))
|
|
799
799
|
break;
|
|
800
800
|
}
|
|
801
|
-
return
|
|
802
|
-
case
|
|
801
|
+
return f === X.length && r(l.start, "Unsyntactic " + a.l), R(l, p ? "BreakStatement" : "ContinueStatement");
|
|
802
|
+
case sr:
|
|
803
803
|
return E(), je(), R(l, "DebuggerStatement");
|
|
804
|
-
case ir:
|
|
805
|
-
return E(), X.push(pn), l.body = fe(), X.pop(), J(ln), l.test = Qe(), je(), R(l, "DoWhileStatement");
|
|
806
804
|
case lr:
|
|
807
|
-
return E(), X.push(pn),
|
|
805
|
+
return E(), X.push(pn), l.body = he(), X.pop(), J(ln), l.test = Qe(), je(), R(l, "DoWhileStatement");
|
|
806
|
+
case pr:
|
|
807
|
+
return E(), X.push(pn), J(Ce), x === we ? Kt(l, null) : x === an ? (a = K(), E(), tr(a, !0), R(a, "VariableDeclaration"), a.fa.length === 1 && L(Rt) ? er(l, a) : Kt(l, a)) : (a = re(!1, !0), L(Rt) ? (Tt(a), er(l, a)) : Kt(l, a));
|
|
808
808
|
case on:
|
|
809
809
|
return E(), _t(l, !0);
|
|
810
|
-
case
|
|
811
|
-
return E(), l.test = Qe(), l.da =
|
|
812
|
-
case
|
|
810
|
+
case dr:
|
|
811
|
+
return E(), l.test = Qe(), l.da = he(), l.alternate = L(ur) ? he() : null, R(l, "IfStatement");
|
|
812
|
+
case fr:
|
|
813
813
|
return nt || O.Ib || r(Y, "'return' outside of function"), E(), L(we) || wt() ? l.K = null : (l.K = re(), je()), R(l, "ReturnStatement");
|
|
814
814
|
case sn:
|
|
815
|
-
for (E(), l.Qb = Qe(), l.tb = [], J(ot), X.push(
|
|
816
|
-
x === rn || x ===
|
|
817
|
-
return
|
|
818
|
-
case
|
|
815
|
+
for (E(), l.Qb = Qe(), l.tb = [], J(ot), X.push(Yo); x !== He; )
|
|
816
|
+
x === rn || x === ar ? (a = x === rn, f && R(f, "SwitchCase"), l.tb.push(f = K()), f.da = [], E(), a ? f.test = re() : (p && r(Zt, "Multiple default clauses"), p = !0, f.test = null), J(it)) : (f || be(), f.da.push(he()));
|
|
817
|
+
return f && R(f, "SwitchCase"), E(), X.pop(), R(l, "SwitchStatement");
|
|
818
|
+
case hr:
|
|
819
819
|
return E(), $t.test(k.slice($e, Y)) && r($e, "Illegal newline after throw"), l.K = re(), je(), R(l, "ThrowStatement");
|
|
820
|
-
case
|
|
821
|
-
return E(), l.block = Ze(), l.Ea = null, x ===
|
|
820
|
+
case mr:
|
|
821
|
+
return E(), l.block = Ze(), l.Ea = null, x === or && (a = K(), E(), J(Ce), a.Ua = Se(), ce && At(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), J(ge), a.body = Ze(), l.Ea = R(a, "CatchClause")), l.fb = L(cr) ? Ze() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), R(l, "TryStatement");
|
|
822
822
|
case an:
|
|
823
|
-
return E(),
|
|
823
|
+
return E(), tr(l), je(), R(l, "VariableDeclaration");
|
|
824
824
|
case ln:
|
|
825
|
-
return E(), l.test = Qe(), X.push(pn), l.body =
|
|
826
|
-
case
|
|
827
|
-
return ce && r(Y, "'with' in strict mode"), E(), l.object = Qe(), l.body =
|
|
825
|
+
return E(), l.test = Qe(), X.push(pn), l.body = he(), X.pop(), R(l, "WhileStatement");
|
|
826
|
+
case gr:
|
|
827
|
+
return ce && r(Y, "'with' in strict mode"), E(), l.object = Qe(), l.body = he(), R(l, "WithStatement");
|
|
828
828
|
case ot:
|
|
829
829
|
return Ze();
|
|
830
830
|
case we:
|
|
831
831
|
return E(), R(l, "EmptyStatement");
|
|
832
832
|
default:
|
|
833
|
-
if (p =
|
|
834
|
-
for (
|
|
835
|
-
X[
|
|
833
|
+
if (p = fe, P = re(), a === Me && P.type === "Identifier" && L(it)) {
|
|
834
|
+
for (f = 0; f < X.length; ++f)
|
|
835
|
+
X[f].name === p && r(P.start, "Label '" + p + "' is already declared");
|
|
836
836
|
return X.push({
|
|
837
837
|
name: p,
|
|
838
838
|
kind: x.W ? "loop" : x === sn ? "switch" : null
|
|
839
|
-
}), l.body =
|
|
839
|
+
}), l.body = he(), X.pop(), l.label = P, R(l, "LabeledStatement");
|
|
840
840
|
}
|
|
841
841
|
return l.la = P, je(), R(l, "ExpressionStatement");
|
|
842
842
|
}
|
|
@@ -847,27 +847,27 @@ var V, $i = function(e) {
|
|
|
847
847
|
return J(ge), a;
|
|
848
848
|
}
|
|
849
849
|
function Ze(a) {
|
|
850
|
-
var l = K(), p = !0,
|
|
850
|
+
var l = K(), p = !0, f = !1;
|
|
851
851
|
for (l.body = [], J(ot); !L(He); ) {
|
|
852
|
-
var P =
|
|
852
|
+
var P = he();
|
|
853
853
|
if (l.body.push(P), p && a && We(P)) {
|
|
854
|
-
var Q =
|
|
855
|
-
D(
|
|
854
|
+
var Q = f;
|
|
855
|
+
D(f = !0);
|
|
856
856
|
}
|
|
857
857
|
p = !1;
|
|
858
858
|
}
|
|
859
|
-
return
|
|
859
|
+
return f && !Q && D(!1), R(l, "BlockStatement");
|
|
860
860
|
}
|
|
861
861
|
function Kt(a, l) {
|
|
862
|
-
return a.ua = l, J(we), a.test = x === we ? null : re(), J(we), a.update = x === ge ? null : re(), J(ge), a.body =
|
|
862
|
+
return a.ua = l, J(we), a.test = x === we ? null : re(), J(we), a.update = x === ge ? null : re(), J(ge), a.body = he(), X.pop(), R(a, "ForStatement");
|
|
863
863
|
}
|
|
864
|
-
function
|
|
865
|
-
return a.left = l, a.right = re(), J(ge), a.body =
|
|
864
|
+
function er(a, l) {
|
|
865
|
+
return a.left = l, a.right = re(), J(ge), a.body = he(), X.pop(), R(a, "ForInStatement");
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function tr(a, l) {
|
|
868
868
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
869
869
|
var p = K();
|
|
870
|
-
if (p.id = Se(), ce && At(p.id.name) && r(p.id.start, "Binding " + p.id.name + " in strict mode"), p.ua = L(
|
|
870
|
+
if (p.id = Se(), ce && At(p.id.name) && r(p.id.start, "Binding " + p.id.name + " in strict mode"), p.ua = L(Er) ? re(!0, l) : null, a.fa.push(R(p, "VariableDeclarator")), !L(xe))
|
|
871
871
|
break;
|
|
872
872
|
}
|
|
873
873
|
}
|
|
@@ -882,31 +882,31 @@ var V, $i = function(e) {
|
|
|
882
882
|
}
|
|
883
883
|
function zt(a) {
|
|
884
884
|
var l = qt(Gt(), -1, a);
|
|
885
|
-
if (L(
|
|
885
|
+
if (L(wr)) {
|
|
886
886
|
var p = _(l);
|
|
887
887
|
p.test = l, p.da = re(!0), J(it), p.alternate = re(!0, a), l = R(p, "ConditionalExpression");
|
|
888
888
|
}
|
|
889
|
-
return x.Cb ? (p = _(l), p.operator =
|
|
889
|
+
return x.Cb ? (p = _(l), p.operator = fe, p.left = l, E(), p.right = zt(a), Tt(l), R(p, "AssignmentExpression")) : l;
|
|
890
890
|
}
|
|
891
891
|
function qt(a, l, p) {
|
|
892
|
-
var
|
|
893
|
-
if (
|
|
892
|
+
var f = x.L;
|
|
893
|
+
if (f !== null && (!p || x !== Rt) && f > l) {
|
|
894
894
|
var P = _(a);
|
|
895
|
-
return P.left = a, P.operator =
|
|
895
|
+
return P.left = a, P.operator = fe, a = x, E(), P.right = qt(Gt(), f, p), f = R(P, a === Rr || a === Ar ? "LogicalExpression" : "BinaryExpression"), qt(f, l, p);
|
|
896
896
|
}
|
|
897
897
|
return a;
|
|
898
898
|
}
|
|
899
899
|
function Gt() {
|
|
900
900
|
if (x.prefix) {
|
|
901
901
|
var a = K(), l = x.$b;
|
|
902
|
-
return a.operator =
|
|
902
|
+
return a.operator = fe, tt = a.prefix = !0, E(), a.K = Gt(), l ? Tt(a.K) : ce && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), R(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
903
903
|
}
|
|
904
904
|
for (l = et(Et()); x.cc && !wt(); )
|
|
905
|
-
a = _(l), a.operator =
|
|
905
|
+
a = _(l), a.operator = fe, a.prefix = !1, a.K = l, Tt(l), E(), l = R(a, "UpdateExpression");
|
|
906
906
|
return l;
|
|
907
907
|
}
|
|
908
908
|
function et(a, l) {
|
|
909
|
-
if (L(
|
|
909
|
+
if (L(Cr)) {
|
|
910
910
|
var p = _(a);
|
|
911
911
|
return p.object = a, p.Wa = Se(!0), p.bb = !1, et(R(p, "MemberExpression"), l);
|
|
912
912
|
}
|
|
@@ -914,18 +914,18 @@ var V, $i = function(e) {
|
|
|
914
914
|
}
|
|
915
915
|
function Et() {
|
|
916
916
|
switch (x) {
|
|
917
|
-
case
|
|
917
|
+
case vr:
|
|
918
918
|
var a = K();
|
|
919
919
|
return E(), R(a, "ThisExpression");
|
|
920
920
|
case Me:
|
|
921
921
|
return Se();
|
|
922
922
|
case rt:
|
|
923
923
|
case It:
|
|
924
|
-
case
|
|
925
|
-
return a = K(), a.value =
|
|
926
|
-
case
|
|
927
|
-
case
|
|
928
|
-
case
|
|
924
|
+
case rr:
|
|
925
|
+
return a = K(), a.value = fe, a.raw = k.slice(Y, Fe), E(), R(a, "Literal");
|
|
926
|
+
case br:
|
|
927
|
+
case Sr:
|
|
928
|
+
case kr:
|
|
929
929
|
return a = K(), a.value = x.$a, a.raw = x.l, E(), R(a, "Literal");
|
|
930
930
|
case Ce:
|
|
931
931
|
a = Yt;
|
|
@@ -941,29 +941,29 @@ var V, $i = function(e) {
|
|
|
941
941
|
l = !1;
|
|
942
942
|
else if (J(xe), O.sb && L(He))
|
|
943
943
|
break;
|
|
944
|
-
var
|
|
944
|
+
var f = {
|
|
945
945
|
key: x === rt || x === It ? Et() : Se(!0)
|
|
946
946
|
}, P = !1;
|
|
947
947
|
if (L(it)) {
|
|
948
|
-
|
|
949
|
-
var Q =
|
|
948
|
+
f.value = re(!0);
|
|
949
|
+
var Q = f.kind = "init";
|
|
950
950
|
} else
|
|
951
|
-
|
|
952
|
-
if (
|
|
951
|
+
f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ? be() : (P = p = !0, Q = f.kind = f.key.name, f.key = x === rt || x === It ? Et() : Se(!0), x !== Ce && be(), f.value = _t(K(), !1));
|
|
952
|
+
if (f.key.type === "Identifier" && (ce || p))
|
|
953
953
|
for (var se = 0; se < a.h.length; ++se) {
|
|
954
954
|
var ze = a.h[se];
|
|
955
|
-
if (ze.key.name ===
|
|
955
|
+
if (ze.key.name === f.key.name) {
|
|
956
956
|
var dn = Q === ze.kind || P && ze.kind === "init" || Q === "init" && (ze.kind === "get" || ze.kind === "set");
|
|
957
|
-
dn && !ce && Q === "init" && ze.kind === "init" && (dn = !1), dn && r(
|
|
957
|
+
dn && !ce && Q === "init" && ze.kind === "init" && (dn = !1), dn && r(f.key.start, "Redefinition of property");
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
a.h.push(
|
|
960
|
+
a.h.push(f);
|
|
961
961
|
}
|
|
962
962
|
return R(a, "ObjectExpression");
|
|
963
963
|
case on:
|
|
964
964
|
return a = K(), E(), _t(a, !1);
|
|
965
|
-
case
|
|
966
|
-
return a = K(), E(), a.callee = et(Et(), !0), a.arguments = L(Ce) ? Jt(ge, !1) :
|
|
965
|
+
case yr:
|
|
966
|
+
return a = K(), E(), a.callee = et(Et(), !0), a.arguments = L(Ce) ? Jt(ge, !1) : Vo, R(a, "NewExpression");
|
|
967
967
|
}
|
|
968
968
|
be();
|
|
969
969
|
}
|
|
@@ -973,40 +973,40 @@ var V, $i = function(e) {
|
|
|
973
973
|
for (J(Ce); !L(ge); )
|
|
974
974
|
p ? p = !1 : J(xe), a.oa.push(Se());
|
|
975
975
|
p = nt;
|
|
976
|
-
var
|
|
977
|
-
if (nt = !0, X = [], a.body = Ze(!0), nt = p, X =
|
|
976
|
+
var f = X;
|
|
977
|
+
if (nt = !0, X = [], a.body = Ze(!0), nt = p, X = f, ce || a.body.body.length && We(a.body.body[0])) {
|
|
978
978
|
for (p = a.id ? -1 : 0; p < a.oa.length; ++p)
|
|
979
|
-
if (
|
|
979
|
+
if (f = 0 > p ? a.id : a.oa[p], ($r(f.name) || At(f.name)) && r(f.start, "Defining '" + f.name + "' in strict mode"), 0 <= p)
|
|
980
980
|
for (var P = 0; P < p; ++P)
|
|
981
|
-
|
|
981
|
+
f.name === a.oa[P].name && r(f.start, "Argument name clash in strict mode");
|
|
982
982
|
}
|
|
983
983
|
return R(a, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
984
984
|
}
|
|
985
985
|
function Jt(a, l, p) {
|
|
986
|
-
for (var
|
|
986
|
+
for (var f = [], P = !0; !L(a); ) {
|
|
987
987
|
if (P)
|
|
988
988
|
P = !1;
|
|
989
989
|
else if (J(xe), l && O.sb && L(a))
|
|
990
990
|
break;
|
|
991
|
-
|
|
991
|
+
f.push(p && x === xe ? null : re(!0));
|
|
992
992
|
}
|
|
993
|
-
return
|
|
993
|
+
return f;
|
|
994
994
|
}
|
|
995
995
|
function Se(a) {
|
|
996
996
|
var l = K();
|
|
997
|
-
return a && O.yb === "everywhere" && (a = !1), x === Me ? (!a && (O.yb &&
|
|
997
|
+
return a && O.yb === "everywhere" && (a = !1), x === Me ? (!a && (O.yb && Go(fe) || ce && $r(fe)) && k.slice(Y, Fe).indexOf("\\") === -1 && r(Y, "The keyword '" + fe + "' is reserved"), l.name = fe) : a && x.l ? l.name = x.l : be(), tt = !1, E(), R(l, "Identifier");
|
|
998
998
|
}
|
|
999
999
|
e.version = "0.5.0";
|
|
1000
1000
|
var O, k = "", Le, Xt;
|
|
1001
1001
|
e.parse = function(a, l) {
|
|
1002
1002
|
k = String(a), Le = k.length, O = l || {};
|
|
1003
|
-
for (var p in
|
|
1004
|
-
Object.prototype.hasOwnProperty.call(O, p) || (O[p] =
|
|
1003
|
+
for (var p in nr)
|
|
1004
|
+
Object.prototype.hasOwnProperty.call(O, p) || (O[p] = nr[p]);
|
|
1005
1005
|
for (Xt = O.sourceFile, Ve = 1, d = ke = 0, tt = !0, c(), p = O.dc, Zt = $e = d, O.C && (en = new i()), nt = ce = !1, X = [], y(), a = p || K(), l = !0, p || (a.body = []); x !== tn; )
|
|
1006
|
-
p =
|
|
1006
|
+
p = he(), a.body.push(p), l && We(p) && D(!0), l = !1;
|
|
1007
1007
|
return R(a, "Program");
|
|
1008
1008
|
};
|
|
1009
|
-
var
|
|
1009
|
+
var nr = {
|
|
1010
1010
|
fc: !1,
|
|
1011
1011
|
sb: !0,
|
|
1012
1012
|
yb: !1,
|
|
@@ -1017,9 +1017,9 @@ var V, $i = function(e) {
|
|
|
1017
1017
|
dc: null,
|
|
1018
1018
|
sourceFile: null,
|
|
1019
1019
|
vb: null
|
|
1020
|
-
}, d = 0, Y = 0, Fe = 0, Yt, Qt, x,
|
|
1020
|
+
}, d = 0, Y = 0, Fe = 0, Yt, Qt, x, fe, tt, Ve, ke, Zt = 0, $e = 0, en, nt, X, ce, Vo = [], rt = {
|
|
1021
1021
|
type: "num"
|
|
1022
|
-
},
|
|
1022
|
+
}, rr = {
|
|
1023
1023
|
type: "regexp"
|
|
1024
1024
|
}, It = {
|
|
1025
1025
|
type: "string"
|
|
@@ -1032,95 +1032,95 @@ var V, $i = function(e) {
|
|
|
1032
1032
|
}, rn = {
|
|
1033
1033
|
l: "case",
|
|
1034
1034
|
m: !0
|
|
1035
|
-
},
|
|
1035
|
+
}, or = {
|
|
1036
1036
|
l: "catch"
|
|
1037
|
-
},
|
|
1037
|
+
}, ir = {
|
|
1038
1038
|
l: "continue"
|
|
1039
|
-
},
|
|
1039
|
+
}, sr = {
|
|
1040
1040
|
l: "debugger"
|
|
1041
|
-
},
|
|
1041
|
+
}, ar = {
|
|
1042
1042
|
l: "default"
|
|
1043
|
-
},
|
|
1043
|
+
}, lr = {
|
|
1044
1044
|
l: "do",
|
|
1045
1045
|
W: !0
|
|
1046
|
-
},
|
|
1046
|
+
}, ur = {
|
|
1047
1047
|
l: "else",
|
|
1048
1048
|
m: !0
|
|
1049
|
-
},
|
|
1049
|
+
}, cr = {
|
|
1050
1050
|
l: "finally"
|
|
1051
|
-
},
|
|
1051
|
+
}, pr = {
|
|
1052
1052
|
l: "for",
|
|
1053
1053
|
W: !0
|
|
1054
1054
|
}, on = {
|
|
1055
1055
|
l: "function"
|
|
1056
|
-
},
|
|
1056
|
+
}, dr = {
|
|
1057
1057
|
l: "if"
|
|
1058
|
-
},
|
|
1058
|
+
}, fr = {
|
|
1059
1059
|
l: "return",
|
|
1060
1060
|
m: !0
|
|
1061
1061
|
}, sn = {
|
|
1062
1062
|
l: "switch"
|
|
1063
|
-
},
|
|
1063
|
+
}, hr = {
|
|
1064
1064
|
l: "throw",
|
|
1065
1065
|
m: !0
|
|
1066
|
-
},
|
|
1066
|
+
}, mr = {
|
|
1067
1067
|
l: "try"
|
|
1068
1068
|
}, an = {
|
|
1069
1069
|
l: "var"
|
|
1070
1070
|
}, ln = {
|
|
1071
1071
|
l: "while",
|
|
1072
1072
|
W: !0
|
|
1073
|
-
},
|
|
1073
|
+
}, gr = {
|
|
1074
1074
|
l: "with"
|
|
1075
|
-
},
|
|
1075
|
+
}, yr = {
|
|
1076
1076
|
l: "new",
|
|
1077
1077
|
m: !0
|
|
1078
|
-
},
|
|
1078
|
+
}, vr = {
|
|
1079
1079
|
l: "this"
|
|
1080
|
-
},
|
|
1080
|
+
}, br = {
|
|
1081
1081
|
l: "null",
|
|
1082
1082
|
$a: null
|
|
1083
|
-
},
|
|
1083
|
+
}, Sr = {
|
|
1084
1084
|
l: "true",
|
|
1085
1085
|
$a: !0
|
|
1086
|
-
},
|
|
1086
|
+
}, kr = {
|
|
1087
1087
|
l: "false",
|
|
1088
1088
|
$a: !1
|
|
1089
1089
|
}, Rt = {
|
|
1090
1090
|
l: "in",
|
|
1091
1091
|
L: 7,
|
|
1092
1092
|
m: !0
|
|
1093
|
-
},
|
|
1093
|
+
}, Do = {
|
|
1094
1094
|
break: nn,
|
|
1095
1095
|
case: rn,
|
|
1096
|
-
catch:
|
|
1097
|
-
continue:
|
|
1098
|
-
debugger:
|
|
1099
|
-
default:
|
|
1100
|
-
do:
|
|
1101
|
-
else:
|
|
1102
|
-
finally:
|
|
1103
|
-
for:
|
|
1096
|
+
catch: or,
|
|
1097
|
+
continue: ir,
|
|
1098
|
+
debugger: sr,
|
|
1099
|
+
default: ar,
|
|
1100
|
+
do: lr,
|
|
1101
|
+
else: ur,
|
|
1102
|
+
finally: cr,
|
|
1103
|
+
for: pr,
|
|
1104
1104
|
function: on,
|
|
1105
|
-
if:
|
|
1106
|
-
return:
|
|
1105
|
+
if: dr,
|
|
1106
|
+
return: fr,
|
|
1107
1107
|
switch: sn,
|
|
1108
|
-
throw:
|
|
1109
|
-
try:
|
|
1108
|
+
throw: hr,
|
|
1109
|
+
try: mr,
|
|
1110
1110
|
var: an,
|
|
1111
1111
|
while: ln,
|
|
1112
|
-
with:
|
|
1113
|
-
null:
|
|
1114
|
-
true:
|
|
1115
|
-
false:
|
|
1116
|
-
new:
|
|
1112
|
+
with: gr,
|
|
1113
|
+
null: br,
|
|
1114
|
+
true: Sr,
|
|
1115
|
+
false: kr,
|
|
1116
|
+
new: yr,
|
|
1117
1117
|
in: Rt,
|
|
1118
1118
|
instanceof: {
|
|
1119
1119
|
l: "instanceof",
|
|
1120
1120
|
L: 7,
|
|
1121
1121
|
m: !0
|
|
1122
1122
|
},
|
|
1123
|
-
this:
|
|
1123
|
+
this: vr,
|
|
1124
1124
|
typeof: {
|
|
1125
1125
|
l: "typeof",
|
|
1126
1126
|
prefix: !0,
|
|
@@ -1160,65 +1160,65 @@ var V, $i = function(e) {
|
|
|
1160
1160
|
}, it = {
|
|
1161
1161
|
type: ":",
|
|
1162
1162
|
m: !0
|
|
1163
|
-
},
|
|
1163
|
+
}, Cr = {
|
|
1164
1164
|
type: "."
|
|
1165
|
-
},
|
|
1165
|
+
}, wr = {
|
|
1166
1166
|
type: "?",
|
|
1167
1167
|
m: !0
|
|
1168
|
-
},
|
|
1168
|
+
}, Tr = {
|
|
1169
1169
|
L: 10,
|
|
1170
1170
|
m: !0
|
|
1171
|
-
},
|
|
1171
|
+
}, Er = {
|
|
1172
1172
|
Cb: !0,
|
|
1173
1173
|
m: !0
|
|
1174
1174
|
}, De = {
|
|
1175
1175
|
Cb: !0,
|
|
1176
1176
|
m: !0
|
|
1177
|
-
},
|
|
1177
|
+
}, Uo = {
|
|
1178
1178
|
cc: !0,
|
|
1179
1179
|
prefix: !0,
|
|
1180
1180
|
$b: !0
|
|
1181
|
-
},
|
|
1181
|
+
}, Ir = {
|
|
1182
1182
|
prefix: !0,
|
|
1183
1183
|
m: !0
|
|
1184
|
-
},
|
|
1184
|
+
}, Rr = {
|
|
1185
1185
|
L: 1,
|
|
1186
1186
|
m: !0
|
|
1187
|
-
},
|
|
1187
|
+
}, Ar = {
|
|
1188
1188
|
L: 2,
|
|
1189
1189
|
m: !0
|
|
1190
|
-
},
|
|
1190
|
+
}, Wo = {
|
|
1191
1191
|
L: 3,
|
|
1192
1192
|
m: !0
|
|
1193
|
-
},
|
|
1193
|
+
}, Lo = {
|
|
1194
1194
|
L: 4,
|
|
1195
1195
|
m: !0
|
|
1196
|
-
},
|
|
1196
|
+
}, Fo = {
|
|
1197
1197
|
L: 5,
|
|
1198
1198
|
m: !0
|
|
1199
|
-
},
|
|
1199
|
+
}, Mo = {
|
|
1200
1200
|
L: 6,
|
|
1201
1201
|
m: !0
|
|
1202
|
-
},
|
|
1202
|
+
}, Ho = {
|
|
1203
1203
|
L: 7,
|
|
1204
1204
|
m: !0
|
|
1205
|
-
},
|
|
1205
|
+
}, Ko = {
|
|
1206
1206
|
L: 8,
|
|
1207
1207
|
m: !0
|
|
1208
|
-
},
|
|
1208
|
+
}, zo = {
|
|
1209
1209
|
L: 9,
|
|
1210
1210
|
prefix: !0,
|
|
1211
1211
|
m: !0
|
|
1212
|
-
},
|
|
1212
|
+
}, qo = {
|
|
1213
1213
|
L: 10,
|
|
1214
1214
|
m: !0
|
|
1215
|
-
},
|
|
1215
|
+
}, Go = o("class enum extends super const export import"), $r = o("implements interface let package private protected public static yield"), At = o("eval arguments"), _o = 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"), Jo = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, xr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Xo = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), $t = /[\n\r\u2028\u2029]/, xt = /\r\n|[\n\r\u2028\u2029]/g, Ke, pn = {
|
|
1216
1216
|
kind: "loop"
|
|
1217
|
-
},
|
|
1217
|
+
}, Yo = {
|
|
1218
1218
|
kind: "switch"
|
|
1219
1219
|
};
|
|
1220
1220
|
}, bn = bn = typeof globalThis > "u" ? void 0 : globalThis;
|
|
1221
|
-
|
|
1221
|
+
Pi(bn.j || (bn.j = {}));
|
|
1222
1222
|
function g(e, t) {
|
|
1223
1223
|
typeof e == "string" && (e = _e(e, "code"));
|
|
1224
1224
|
var n = e.constructor;
|
|
@@ -1237,10 +1237,10 @@ function g(e, t) {
|
|
|
1237
1237
|
this.N = kn(this, this.ra, null), this.Na = this.N.object, this.ra = _e(this.ba.join(`
|
|
1238
1238
|
`), "polyfills"), this.ba = void 0, Ft(this.ra), i = new T(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new T(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
1239
1239
|
}
|
|
1240
|
-
var
|
|
1240
|
+
var Pr = {
|
|
1241
1241
|
C: !0,
|
|
1242
1242
|
kc: 5
|
|
1243
|
-
},
|
|
1243
|
+
}, Bn = {
|
|
1244
1244
|
configurable: !0,
|
|
1245
1245
|
enumerable: !0,
|
|
1246
1246
|
writable: !1
|
|
@@ -1256,11 +1256,11 @@ var Ar = {
|
|
|
1256
1256
|
configurable: !1,
|
|
1257
1257
|
enumerable: !1,
|
|
1258
1258
|
writable: !1
|
|
1259
|
-
},
|
|
1259
|
+
}, Or = {
|
|
1260
1260
|
configurable: !1,
|
|
1261
1261
|
enumerable: !0,
|
|
1262
1262
|
writable: !0
|
|
1263
|
-
},
|
|
1263
|
+
}, uo = {
|
|
1264
1264
|
STEP_ERROR: !0
|
|
1265
1265
|
}, Ye = {
|
|
1266
1266
|
SCOPE_REFERENCE: !0
|
|
@@ -1268,12 +1268,12 @@ var Ar = {
|
|
|
1268
1268
|
VALUE_IN_DESCRIPTOR: !0
|
|
1269
1269
|
}, qe = {
|
|
1270
1270
|
REGEXP_TIMEOUT: !0
|
|
1271
|
-
},
|
|
1272
|
-
function
|
|
1271
|
+
}, Nr = [], Ee = null, ft = null, Be = typeof globalThis > "u" ? void 0 : globalThis, Oi = ["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();", "};"];
|
|
1272
|
+
function jn(e) {
|
|
1273
1273
|
var t = e >>> 0;
|
|
1274
1274
|
return t === Number(e) ? t : NaN;
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1276
|
+
function ht(e) {
|
|
1277
1277
|
var t = e >>> 0;
|
|
1278
1278
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
1279
1279
|
}
|
|
@@ -1295,8 +1295,8 @@ V.Kb = 0;
|
|
|
1295
1295
|
V.ic = 0;
|
|
1296
1296
|
function _e(e, t) {
|
|
1297
1297
|
var n = {}, r;
|
|
1298
|
-
for (r in
|
|
1299
|
-
n[r] =
|
|
1298
|
+
for (r in Pr)
|
|
1299
|
+
n[r] = Pr[r];
|
|
1300
1300
|
return n.sourceFile = t, Be.j.parse(e, n);
|
|
1301
1301
|
}
|
|
1302
1302
|
V.Jb = function(e) {
|
|
@@ -1319,7 +1319,7 @@ V.lb = function() {
|
|
|
1319
1319
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
1320
1320
|
n = null;
|
|
1321
1321
|
else {
|
|
1322
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
1322
|
+
this.ca.shift(), 0 <= n.interval && fo(this, n, n.interval);
|
|
1323
1323
|
var r = new T(n.node, n.scope);
|
|
1324
1324
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1325
1325
|
}
|
|
@@ -1327,15 +1327,15 @@ V.lb = function() {
|
|
|
1327
1327
|
break;
|
|
1328
1328
|
}
|
|
1329
1329
|
r = n.node;
|
|
1330
|
-
var o =
|
|
1331
|
-
|
|
1330
|
+
var o = ft;
|
|
1331
|
+
ft = this;
|
|
1332
1332
|
try {
|
|
1333
1333
|
var i = this.rb[r.type](e, n, r);
|
|
1334
1334
|
} catch (s) {
|
|
1335
|
-
if (s !==
|
|
1335
|
+
if (s !== uo)
|
|
1336
1336
|
throw this.value !== s && (this.value = void 0), s;
|
|
1337
1337
|
} finally {
|
|
1338
|
-
|
|
1338
|
+
ft = o;
|
|
1339
1339
|
}
|
|
1340
1340
|
if (i && e.push(i), this.P)
|
|
1341
1341
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -1350,8 +1350,8 @@ V.Eb = function() {
|
|
|
1350
1350
|
;
|
|
1351
1351
|
return this.za;
|
|
1352
1352
|
};
|
|
1353
|
-
function
|
|
1354
|
-
e.g(t, "NaN", NaN, at), e.g(t, "Infinity", 1 / 0, at), e.g(t, "undefined", void 0, at), e.g(t, "window", t,
|
|
1353
|
+
function Ni(e, t) {
|
|
1354
|
+
e.g(t, "NaN", NaN, at), e.g(t, "Infinity", 1 / 0, at), e.g(t, "undefined", void 0, at), e.g(t, "window", t, Bn), e.g(t, "this", t, at), e.g(t, "self", t), e.M = new N(null), e.Z = new N(e.M), Bi(e, t), ji(e, t), t.xa = e.M, e.g(t, "constructor", e.v, C), Vi(e, t), Di(e, t), Ui(e, t), Wi(e, t), Li(e, t), Fi(e, t), Mi(e, t), Hi(e, t), Ki(e, t);
|
|
1355
1355
|
var n = e.i(function() {
|
|
1356
1356
|
throw EvalError("Can't happen");
|
|
1357
1357
|
}, !1);
|
|
@@ -1367,17 +1367,17 @@ function Pi(e, t) {
|
|
|
1367
1367
|
};
|
|
1368
1368
|
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), C);
|
|
1369
1369
|
n = function(i) {
|
|
1370
|
-
return
|
|
1370
|
+
return Br(e, !1, arguments);
|
|
1371
1371
|
}, e.g(t, "setTimeout", e.i(n, !1), C), n = function(i) {
|
|
1372
|
-
return
|
|
1372
|
+
return Br(e, !0, arguments);
|
|
1373
1373
|
}, e.g(t, "setInterval", e.i(n, !1), C), n = function(i) {
|
|
1374
|
-
|
|
1374
|
+
jr(e, i);
|
|
1375
1375
|
}, e.g(t, "clearTimeout", e.i(n, !1), C), n = function(i) {
|
|
1376
|
-
|
|
1376
|
+
jr(e, i);
|
|
1377
1377
|
}, e.g(t, "clearInterval", e.i(n, !1), C), 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);
|
|
1378
1378
|
}
|
|
1379
1379
|
V.Wb = 0;
|
|
1380
|
-
function
|
|
1380
|
+
function Bi(e, t) {
|
|
1381
1381
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1382
1382
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1383
1383
|
if (s) {
|
|
@@ -1393,12 +1393,12 @@ function Oi(e, t) {
|
|
|
1393
1393
|
} catch (y) {
|
|
1394
1394
|
I(e, e.T, "Invalid code: " + y.message);
|
|
1395
1395
|
}
|
|
1396
|
-
return m.body.length !== 1 && I(e, e.T, "Invalid code in function body"),
|
|
1396
|
+
return m.body.length !== 1 && I(e, e.T, "Invalid code in function body"), Un(e, m.body[0].la, e.N, "anonymous");
|
|
1397
1397
|
};
|
|
1398
1398
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, C), e.g(e.O, "prototype", e.Z, C), e.g(e.Z, "constructor", e.O, C), e.Z.Ta = function() {
|
|
1399
1399
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, le), e.Z.H = "Function", r = function(o, i) {
|
|
1400
1400
|
var s = e.o[e.o.length - 1];
|
|
1401
|
-
s.U = this, s.B = o, s.F = [], i != null && (i instanceof N ? s.F =
|
|
1401
|
+
s.U = this, s.B = o, s.F = [], i != null && (i instanceof N ? s.F = co(e, i) : I(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1402
1402
|
}, Z(e, e.O, "apply", r), r = function(o) {
|
|
1403
1403
|
var i = e.o[e.o.length - 1];
|
|
1404
1404
|
i.U = this, i.B = o, i.F = [];
|
|
@@ -1411,7 +1411,7 @@ function Oi(e, t) {
|
|
|
1411
1411
|
return this.valueOf();
|
|
1412
1412
|
}, Z(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), C);
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1414
|
+
function ji(e, t) {
|
|
1415
1415
|
function n(o) {
|
|
1416
1416
|
o != null || I(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1417
1417
|
}
|
|
@@ -1456,11 +1456,11 @@ function Ni(e, t) {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
}, Z(e, e.v, "isPrototypeOf", r);
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1459
|
+
function Vi(e, t) {
|
|
1460
1460
|
var n = function(r) {
|
|
1461
1461
|
var o = Re(e) ? this : Je(e), i = arguments[0];
|
|
1462
1462
|
if (arguments.length === 1 && typeof i == "number")
|
|
1463
|
-
isNaN(
|
|
1463
|
+
isNaN(jn(i)) && I(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1464
1464
|
else {
|
|
1465
1465
|
for (i = 0; i < arguments.length; i++)
|
|
1466
1466
|
o.h[i] = arguments[i];
|
|
@@ -1476,7 +1476,7 @@ function Bi(e, t) {
|
|
|
1476
1476
|
writable: !0
|
|
1477
1477
|
}), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
|
|
1478
1478
|
}
|
|
1479
|
-
function
|
|
1479
|
+
function Di(e, t) {
|
|
1480
1480
|
var n = function(r) {
|
|
1481
1481
|
return r = arguments.length ? Be.String(r) : "", Re(e) ? (this.data = r, this) : r;
|
|
1482
1482
|
};
|
|
@@ -1559,12 +1559,12 @@ function ji(e, t) {
|
|
|
1559
1559
|
i(s.replace(r, o));
|
|
1560
1560
|
}, pt(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;", "};", "})();", "");
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function Ui(e, t) {
|
|
1563
1563
|
e.mb = e.i(function(n) {
|
|
1564
1564
|
return n = Be.Boolean(n), Re(e) ? (this.data = n, this) : n;
|
|
1565
1565
|
}, !0), e.g(t, "Boolean", e.mb, C);
|
|
1566
1566
|
}
|
|
1567
|
-
function
|
|
1567
|
+
function Wi(e, t) {
|
|
1568
1568
|
var n = function(r) {
|
|
1569
1569
|
return r = arguments.length ? Be.Number(r) : 0, Re(e) ? (this.data = r, this) : r;
|
|
1570
1570
|
};
|
|
@@ -1603,7 +1603,7 @@ function Di(e, t) {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
}, Z(e, e.aa, "toLocaleString", n);
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1606
|
+
function Li(e, t) {
|
|
1607
1607
|
var n = function(o, i) {
|
|
1608
1608
|
if (!Re(e))
|
|
1609
1609
|
return Be.Date();
|
|
@@ -1622,7 +1622,7 @@ function Ui(e, t) {
|
|
|
1622
1622
|
};
|
|
1623
1623
|
}(t[r]), Z(e, e.$, t[r], n);
|
|
1624
1624
|
}
|
|
1625
|
-
function
|
|
1625
|
+
function Fi(e, t) {
|
|
1626
1626
|
var n = function(r, o) {
|
|
1627
1627
|
if (Re(e))
|
|
1628
1628
|
var i = this;
|
|
@@ -1637,7 +1637,7 @@ function Wi(e, t) {
|
|
|
1637
1637
|
} catch (u) {
|
|
1638
1638
|
I(e, e.T, u.message);
|
|
1639
1639
|
}
|
|
1640
|
-
return
|
|
1640
|
+
return Vn(e, i, s), i;
|
|
1641
1641
|
};
|
|
1642
1642
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, C), e.g(e.I.h.prototype, "global", void 0, le), e.g(e.I.h.prototype, "ignoreCase", void 0, le), e.g(e.I.h.prototype, "multiline", void 0, le), e.g(e.I.h.prototype, "source", "(?:)", le), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1643
1643
|
function i(y) {
|
|
@@ -1664,7 +1664,7 @@ function Wi(e, t) {
|
|
|
1664
1664
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(i(r));
|
|
1665
1665
|
}, pt(e, e.I, "exec", n);
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1667
|
+
function Mi(e, t) {
|
|
1668
1668
|
function n(r) {
|
|
1669
1669
|
var o = e.i(function(i) {
|
|
1670
1670
|
var s = Re(e) ? this : e.Aa(o);
|
|
@@ -1677,7 +1677,7 @@ function Li(e, t) {
|
|
|
1677
1677
|
return Sn(e, o, r), o;
|
|
1678
1678
|
}, !0), e.g(t, "Error", e.D, C), e.g(e.D.h.prototype, "message", "", C), e.g(e.D.h.prototype, "name", "Error", C), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function Hi(e, t) {
|
|
1681
1681
|
var n = e.s(e.M);
|
|
1682
1682
|
e.g(t, "Math", n, C);
|
|
1683
1683
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1686,7 +1686,7 @@ function Fi(e, t) {
|
|
|
1686
1686
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1687
1687
|
e.g(n, r[t], e.i(Math[r[t]], !1), C);
|
|
1688
1688
|
}
|
|
1689
|
-
function
|
|
1689
|
+
function Ki(e, t) {
|
|
1690
1690
|
var n = e.s(e.M);
|
|
1691
1691
|
e.g(t, "JSON", n, C), t = function(r) {
|
|
1692
1692
|
try {
|
|
@@ -1696,7 +1696,7 @@ function Mi(e, t) {
|
|
|
1696
1696
|
}
|
|
1697
1697
|
return e.Ia(o);
|
|
1698
1698
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
|
|
1699
|
-
o && o.H === "Function" ? I(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o =
|
|
1699
|
+
o && o.H === "Function" ? I(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = co(e, o), o = o.filter(function(u) {
|
|
1700
1700
|
return typeof u == "string" || typeof u == "number";
|
|
1701
1701
|
})) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
|
|
1702
1702
|
try {
|
|
@@ -1719,7 +1719,7 @@ function ne(e, t, n) {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
return !1;
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function Vn(e, t, n) {
|
|
1723
1723
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, C), e.g(t, "source", n.source, le), e.g(t, "global", n.global, le), e.g(t, "ignoreCase", n.ignoreCase, le), e.g(t, "multiline", n.multiline, le);
|
|
1724
1724
|
}
|
|
1725
1725
|
function Sn(e, t, n) {
|
|
@@ -1741,7 +1741,7 @@ function Sn(e, t, n) {
|
|
|
1741
1741
|
}
|
|
1742
1742
|
V.ha = function() {
|
|
1743
1743
|
var e = this.ha.Mb;
|
|
1744
|
-
return e || (e = new Blob([
|
|
1744
|
+
return e || (e = new Blob([Oi.join(`
|
|
1745
1745
|
`)], {
|
|
1746
1746
|
type: "application/javascript"
|
|
1747
1747
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1801,19 +1801,19 @@ function Je(e) {
|
|
|
1801
1801
|
writable: !0
|
|
1802
1802
|
}), t.H = "Array", t;
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1804
|
+
function Dn(e, t, n) {
|
|
1805
1805
|
var r = e.s(e.Z);
|
|
1806
1806
|
return n ? (n = e.s(e.M), e.g(r, "prototype", n, C), e.g(n, "constructor", r, C)) : r.Ab = !0, e.g(r, "length", t, le), r.H = "Function", r;
|
|
1807
1807
|
}
|
|
1808
|
-
function
|
|
1809
|
-
var o =
|
|
1808
|
+
function Un(e, t, n, r) {
|
|
1809
|
+
var o = Dn(e, t.oa.length, !0);
|
|
1810
1810
|
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", le), o;
|
|
1811
1811
|
}
|
|
1812
1812
|
V.i = function(e, t) {
|
|
1813
|
-
return t =
|
|
1813
|
+
return t = Dn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, le), t;
|
|
1814
1814
|
};
|
|
1815
1815
|
V.ub = function(e) {
|
|
1816
|
-
var t =
|
|
1816
|
+
var t = Dn(this, e.length, !0);
|
|
1817
1817
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, le), t;
|
|
1818
1818
|
};
|
|
1819
1819
|
V.Ia = function(e) {
|
|
@@ -1823,7 +1823,7 @@ V.Ia = function(e) {
|
|
|
1823
1823
|
return e;
|
|
1824
1824
|
if (e instanceof RegExp) {
|
|
1825
1825
|
var t = this.s(this.Ma);
|
|
1826
|
-
return
|
|
1826
|
+
return Vn(this, t, e), t;
|
|
1827
1827
|
}
|
|
1828
1828
|
if (e instanceof Date)
|
|
1829
1829
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1882,11 +1882,11 @@ function Te(e, t) {
|
|
|
1882
1882
|
e.g(n, r[o], t[r[o]]);
|
|
1883
1883
|
return n;
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function co(e, t) {
|
|
1886
1886
|
var n = [], r;
|
|
1887
1887
|
for (r in t.h)
|
|
1888
1888
|
n[r] = e.G(t, r);
|
|
1889
|
-
return n.length =
|
|
1889
|
+
return n.length = jn(e.G(t, "length")) || 0, n;
|
|
1890
1890
|
}
|
|
1891
1891
|
function Ie(e, t) {
|
|
1892
1892
|
switch (typeof t) {
|
|
@@ -1908,7 +1908,7 @@ V.G = function(e, t) {
|
|
|
1908
1908
|
if (ne(this, e, this.J))
|
|
1909
1909
|
return String(e).length;
|
|
1910
1910
|
} else if (64 > t.charCodeAt(0) && ne(this, e, this.J)) {
|
|
1911
|
-
var n =
|
|
1911
|
+
var n = ht(t);
|
|
1912
1912
|
if (!isNaN(n) && n < String(e).length)
|
|
1913
1913
|
return String(e)[n];
|
|
1914
1914
|
}
|
|
@@ -1923,7 +1923,7 @@ function Mt(e, t, n) {
|
|
|
1923
1923
|
if (n = String(n), n === "length" && ne(e, t, e.J))
|
|
1924
1924
|
return !0;
|
|
1925
1925
|
if (ne(e, t, e.J)) {
|
|
1926
|
-
var r =
|
|
1926
|
+
var r = ht(n);
|
|
1927
1927
|
if (!isNaN(r) && r < String(t).length)
|
|
1928
1928
|
return !0;
|
|
1929
1929
|
}
|
|
@@ -1939,10 +1939,10 @@ V.g = function(e, t, n, r) {
|
|
|
1939
1939
|
if (t = String(t), e != null || I(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof N))
|
|
1940
1940
|
throw TypeError("Expecting native value or pseudo object");
|
|
1941
1941
|
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && I(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1942
|
-
var o = !this.o ||
|
|
1942
|
+
var o = !this.o || Wn(this).S;
|
|
1943
1943
|
if (e instanceof N) {
|
|
1944
1944
|
if (ne(this, e, this.J)) {
|
|
1945
|
-
var i =
|
|
1945
|
+
var i = ht(t);
|
|
1946
1946
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1947
1947
|
o && I(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1948
1948
|
return;
|
|
@@ -1955,13 +1955,13 @@ V.g = function(e, t, n, r) {
|
|
|
1955
1955
|
return;
|
|
1956
1956
|
n = r.value;
|
|
1957
1957
|
}
|
|
1958
|
-
if (n =
|
|
1958
|
+
if (n = jn(n), isNaN(n) && I(this, this.ob, "Invalid array length"), n < i)
|
|
1959
1959
|
for (s in e.h) {
|
|
1960
|
-
var s =
|
|
1960
|
+
var s = ht(s);
|
|
1961
1961
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
1962
1962
|
}
|
|
1963
1963
|
} else
|
|
1964
|
-
isNaN(s =
|
|
1964
|
+
isNaN(s = ht(t)) || (e.h.length = Math.max(i, s + 1));
|
|
1965
1965
|
if (!e.preventExtensions || t in e.h)
|
|
1966
1966
|
if (r) {
|
|
1967
1967
|
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 !== yt && (o.value = n, delete e.V[t], delete e.Y[t]);
|
|
@@ -2007,7 +2007,7 @@ function Z(e, t, n, r) {
|
|
|
2007
2007
|
function pt(e, t, n, r) {
|
|
2008
2008
|
e.g(t.h.prototype, n, e.ub(r), C);
|
|
2009
2009
|
}
|
|
2010
|
-
function
|
|
2010
|
+
function Wn(e) {
|
|
2011
2011
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
2012
2012
|
throw Error("No scope found");
|
|
2013
2013
|
return e;
|
|
@@ -2020,15 +2020,15 @@ function kn(e, t, n) {
|
|
|
2020
2020
|
var o = t.body && t.body[0];
|
|
2021
2021
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
2022
2022
|
}
|
|
2023
|
-
return o = e.s(null), r = new
|
|
2023
|
+
return o = e.s(null), r = new ho(n, r, o), n || Ni(e, r.object), vt(e, t, r), r;
|
|
2024
2024
|
}
|
|
2025
|
-
function
|
|
2025
|
+
function Ln(e, t, n) {
|
|
2026
2026
|
if (!t)
|
|
2027
2027
|
throw Error("parentScope required");
|
|
2028
|
-
return e = n || e.s(null), new
|
|
2028
|
+
return e = n || e.s(null), new ho(t, t.S, e);
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2031
|
-
for (var n =
|
|
2030
|
+
function Fn(e, t) {
|
|
2031
|
+
for (var n = Wn(e); n && n !== e.N; ) {
|
|
2032
2032
|
if (t in n.object.h)
|
|
2033
2033
|
return n.object.h[t];
|
|
2034
2034
|
n = n.Va;
|
|
@@ -2037,8 +2037,8 @@ function Un(e, t) {
|
|
|
2037
2037
|
return e.G(n.object, t);
|
|
2038
2038
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || I(e, e.pb, t + " is not defined");
|
|
2039
2039
|
}
|
|
2040
|
-
function
|
|
2041
|
-
for (var r =
|
|
2040
|
+
function po(e, t, n) {
|
|
2041
|
+
for (var r = Wn(e), o = r.S; r && r !== e.N; ) {
|
|
2042
2042
|
if (t in r.object.h) {
|
|
2043
2043
|
try {
|
|
2044
2044
|
r.object.h[t] = n;
|
|
@@ -2099,20 +2099,20 @@ function vt(e, t, n) {
|
|
|
2099
2099
|
t.jb = r;
|
|
2100
2100
|
}
|
|
2101
2101
|
for (s in r)
|
|
2102
|
-
r[s] === !0 ? e.g(n.object, s, void 0,
|
|
2102
|
+
r[s] === !0 ? e.g(n.object, s, void 0, Or) : e.g(n.object, s, Un(e, r[s], n), Or);
|
|
2103
2103
|
return r;
|
|
2104
2104
|
}
|
|
2105
2105
|
function Re(e) {
|
|
2106
2106
|
return e.o[e.o.length - 1].isConstructor;
|
|
2107
2107
|
}
|
|
2108
|
-
function
|
|
2109
|
-
return t[0] === Ye ?
|
|
2108
|
+
function Mn(e, t) {
|
|
2109
|
+
return t[0] === Ye ? Fn(e, t[1]) : e.G(t[0], t[1]);
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2112
|
-
return t[0] === Ye ?
|
|
2111
|
+
function Hn(e, t, n) {
|
|
2112
|
+
return t[0] === Ye ? po(e, t[1], n) : e.g(t[0], t[1], n);
|
|
2113
2113
|
}
|
|
2114
2114
|
function I(e, t, n) {
|
|
2115
|
-
throw e.N ? (n !== void 0 && t instanceof N && (t = e.Aa(t), Sn(e, t, n)), bt(e, 4, t),
|
|
2115
|
+
throw e.N ? (n !== void 0 && t instanceof N && (t = e.Aa(t), Sn(e, t, n)), bt(e, 4, t), uo) : n === void 0 ? t : n;
|
|
2116
2116
|
}
|
|
2117
2117
|
function bt(e, t, n, r) {
|
|
2118
2118
|
if (t === 0)
|
|
@@ -2190,7 +2190,7 @@ function ae(e, t) {
|
|
|
2190
2190
|
}
|
|
2191
2191
|
return "???";
|
|
2192
2192
|
}
|
|
2193
|
-
function
|
|
2193
|
+
function Br(e, t, n) {
|
|
2194
2194
|
var r = e.o[e.o.length - 1], o = Array.from(n), i = o.shift();
|
|
2195
2195
|
n = Math.max(Number(o.shift() || 0), 0);
|
|
2196
2196
|
var s = e.ya();
|
|
@@ -2205,14 +2205,14 @@ function Pr(e, t, n) {
|
|
|
2205
2205
|
}
|
|
2206
2206
|
s.type = "EvalProgram_", s.body = c.body, r = r.node.arguments[0], Ft(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
2207
2207
|
}
|
|
2208
|
-
return t = new
|
|
2208
|
+
return t = new zi(u, o, r, s, t ? n : -1), fo(e, t, n), t.Db;
|
|
2209
2209
|
}
|
|
2210
|
-
function
|
|
2210
|
+
function fo(e, t, n) {
|
|
2211
2211
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
2212
2212
|
return r.time - o.time;
|
|
2213
2213
|
});
|
|
2214
2214
|
}
|
|
2215
|
-
function
|
|
2215
|
+
function jr(e, t) {
|
|
2216
2216
|
for (var n = 0; n < e.ca.length; n++)
|
|
2217
2217
|
if (e.ca[n].Db == t) {
|
|
2218
2218
|
e.ca.splice(n, 1);
|
|
@@ -2226,14 +2226,14 @@ function St(e, t, n) {
|
|
|
2226
2226
|
var r = e.ya();
|
|
2227
2227
|
return r.type = "CallExpression", e = new T(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
2228
2228
|
}
|
|
2229
|
-
function
|
|
2229
|
+
function Kn(e, t, n, r) {
|
|
2230
2230
|
if (!e.Ka)
|
|
2231
2231
|
throw Error("Unexpected call to createSetter");
|
|
2232
2232
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
2233
2233
|
var o = e.ya();
|
|
2234
2234
|
return o.type = "CallExpression", e = new T(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
2235
2235
|
}
|
|
2236
|
-
function
|
|
2236
|
+
function fn(e, t) {
|
|
2237
2237
|
return t == null ? e.Na : t instanceof N ? t : (e = e.s(Ie(e, t)), e.data = t, e);
|
|
2238
2238
|
}
|
|
2239
2239
|
V.Xb = function() {
|
|
@@ -2248,7 +2248,7 @@ V.ec = function(e) {
|
|
|
2248
2248
|
function T(e, t) {
|
|
2249
2249
|
this.node = e, this.scope = t;
|
|
2250
2250
|
}
|
|
2251
|
-
function
|
|
2251
|
+
function ho(e, t, n) {
|
|
2252
2252
|
this.Va = e, this.S = t, this.object = n;
|
|
2253
2253
|
}
|
|
2254
2254
|
function N(e) {
|
|
@@ -2259,12 +2259,12 @@ V.xa = null;
|
|
|
2259
2259
|
V.H = "Object";
|
|
2260
2260
|
V.data = null;
|
|
2261
2261
|
V.toString = function() {
|
|
2262
|
-
if (!
|
|
2262
|
+
if (!ft)
|
|
2263
2263
|
return "[object Interpreter.Object]";
|
|
2264
2264
|
if (!(this instanceof N))
|
|
2265
2265
|
return String(this);
|
|
2266
2266
|
if (this.H === "Array") {
|
|
2267
|
-
var e =
|
|
2267
|
+
var e = Nr;
|
|
2268
2268
|
e.push(this);
|
|
2269
2269
|
try {
|
|
2270
2270
|
var t = [], n = this.h.length, r = !1;
|
|
@@ -2280,7 +2280,7 @@ V.toString = function() {
|
|
|
2280
2280
|
return t.join(",");
|
|
2281
2281
|
}
|
|
2282
2282
|
if (this.H === "Error") {
|
|
2283
|
-
if (e =
|
|
2283
|
+
if (e = Nr, e.indexOf(this) !== -1)
|
|
2284
2284
|
return "[object Error]";
|
|
2285
2285
|
n = this;
|
|
2286
2286
|
do
|
|
@@ -2307,12 +2307,12 @@ V.toString = function() {
|
|
|
2307
2307
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
2308
2308
|
};
|
|
2309
2309
|
V.valueOf = function() {
|
|
2310
|
-
return !
|
|
2310
|
+
return !ft || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2311
2311
|
};
|
|
2312
|
-
function
|
|
2313
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++
|
|
2312
|
+
function zi(e, t, n, r, o) {
|
|
2313
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++qi, this.time = 0;
|
|
2314
2314
|
}
|
|
2315
|
-
var
|
|
2315
|
+
var qi = 0;
|
|
2316
2316
|
g.prototype.stepArrayExpression = function(e, t, n) {
|
|
2317
2317
|
n = n.elements;
|
|
2318
2318
|
var r = t.A || 0;
|
|
@@ -2327,7 +2327,7 @@ g.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2327
2327
|
if (!t.ja)
|
|
2328
2328
|
return t.ja = !0, t = new T(n.left, t.scope), t.sa = !0, t;
|
|
2329
2329
|
if (!t.Da)
|
|
2330
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e =
|
|
2330
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = Mn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, St(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new T(n.right, t.scope));
|
|
2331
2331
|
if (t.ta)
|
|
2332
2332
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2333
2333
|
else {
|
|
@@ -2372,8 +2372,8 @@ g.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2372
2372
|
default:
|
|
2373
2373
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
2374
2374
|
}
|
|
2375
|
-
if (n =
|
|
2376
|
-
return t.ta = !0, t.ib = r,
|
|
2375
|
+
if (n = Hn(this, t.Fa, r))
|
|
2376
|
+
return t.ta = !0, t.ib = r, Kn(this, n, t.Fa, r);
|
|
2377
2377
|
e.pop(), e[e.length - 1].value = r;
|
|
2378
2378
|
}
|
|
2379
2379
|
};
|
|
@@ -2473,7 +2473,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2473
2473
|
t.ia = 2;
|
|
2474
2474
|
var o = t.value;
|
|
2475
2475
|
if (Array.isArray(o)) {
|
|
2476
|
-
if (t.U =
|
|
2476
|
+
if (t.U = Mn(this, o), o[0] === Ye ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2477
2477
|
return t.ia = 1, St(this, o, t.value);
|
|
2478
2478
|
} else
|
|
2479
2479
|
t.U = o;
|
|
@@ -2501,7 +2501,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2501
2501
|
this.g(r, o, t.F[o]);
|
|
2502
2502
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2503
2503
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2504
|
-
return n.S || (t.B =
|
|
2504
|
+
return n.S || (t.B = fn(this, t.B)), this.g(n.object, "this", t.B, Bn), t.value = void 0, new T(e.body, n);
|
|
2505
2505
|
}
|
|
2506
2506
|
if (o.eval)
|
|
2507
2507
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2515,12 +2515,12 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2515
2515
|
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, Ft(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = kn(this, r, n) : vt(this, r, n), this.value = void 0, new T(o, n);
|
|
2516
2516
|
}
|
|
2517
2517
|
else if (o.Ta)
|
|
2518
|
-
t.scope.S || (t.B =
|
|
2518
|
+
t.scope.S || (t.B = fn(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2519
2519
|
else if (o.Za) {
|
|
2520
2520
|
var s = this;
|
|
2521
2521
|
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
|
|
2522
2522
|
t.value = u, s.za = !1;
|
|
2523
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2523
|
+
}), this.za = !0, t.scope.S || (t.B = fn(this, t.B)), o.Za.apply(t.B, r);
|
|
2524
2524
|
} else
|
|
2525
2525
|
I(this, this.j, ae(this, n.callee) + " is not callable");
|
|
2526
2526
|
}
|
|
@@ -2601,8 +2601,8 @@ g.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2601
2601
|
t.pa = [Ye, e.fa[0].id.name];
|
|
2602
2602
|
else
|
|
2603
2603
|
return t.pa = null, t = new T(e, t.scope), t.sa = !0, t;
|
|
2604
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r =
|
|
2605
|
-
return
|
|
2604
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = Hn(this, t.pa, e)))
|
|
2605
|
+
return Kn(this, r, t.pa, e);
|
|
2606
2606
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2607
2607
|
return new T(n.body, t.scope);
|
|
2608
2608
|
};
|
|
@@ -2631,13 +2631,13 @@ g.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2631
2631
|
e.pop();
|
|
2632
2632
|
};
|
|
2633
2633
|
g.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2634
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e =
|
|
2634
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = Ln(this, e)), t.value = Un(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Bn);
|
|
2635
2635
|
};
|
|
2636
2636
|
g.prototype.stepIdentifier = function(e, t, n) {
|
|
2637
2637
|
if (e.pop(), t.sa)
|
|
2638
2638
|
e[e.length - 1].value = [Ye, n.name];
|
|
2639
2639
|
else {
|
|
2640
|
-
if (t =
|
|
2640
|
+
if (t = Fn(this, n.name), this.P)
|
|
2641
2641
|
return St(this, t, this.Na);
|
|
2642
2642
|
e[e.length - 1].value = t;
|
|
2643
2643
|
}
|
|
@@ -2647,7 +2647,7 @@ g.prototype.stepLabeledStatement = function(e, t, n) {
|
|
|
2647
2647
|
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new T(n.body, t.scope), t.labels = e, t;
|
|
2648
2648
|
};
|
|
2649
2649
|
g.prototype.stepLiteral = function(e, t, n) {
|
|
2650
|
-
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma),
|
|
2650
|
+
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), Vn(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2651
2651
|
};
|
|
2652
2652
|
g.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2653
2653
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
@@ -2750,7 +2750,7 @@ g.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2750
2750
|
}
|
|
2751
2751
|
};
|
|
2752
2752
|
g.prototype.stepThisExpression = function(e) {
|
|
2753
|
-
e.pop(), e[e.length - 1].value =
|
|
2753
|
+
e.pop(), e[e.length - 1].value = Fn(this, "this");
|
|
2754
2754
|
};
|
|
2755
2755
|
g.prototype.stepThrowStatement = function(e, t, n) {
|
|
2756
2756
|
if (t.ka)
|
|
@@ -2762,7 +2762,7 @@ g.prototype.stepTryStatement = function(e, t, n) {
|
|
|
2762
2762
|
if (!t.Rb)
|
|
2763
2763
|
return t.Rb = !0, new T(n.block, t.scope);
|
|
2764
2764
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2765
|
-
return t.Tb = !0, e =
|
|
2765
|
+
return t.Tb = !0, e = Ln(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new T(n.Ea.body, e);
|
|
2766
2766
|
if (!t.Sb && n.fb)
|
|
2767
2767
|
return t.Sb = !0, new T(n.fb, t.scope);
|
|
2768
2768
|
e.pop(), t.ea && bt(this, t.ea.type, t.ea.value, t.ea.label);
|
|
@@ -2812,7 +2812,7 @@ g.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2812
2812
|
if (!t.ja)
|
|
2813
2813
|
return t.ja = !0, e = new T(n.K, t.scope), e.sa = !0, e;
|
|
2814
2814
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2815
|
-
var r =
|
|
2815
|
+
var r = Mn(this, t.Ga);
|
|
2816
2816
|
if (t.ma = r, this.P)
|
|
2817
2817
|
return t.Ba = !0, St(this, r, t.Ga);
|
|
2818
2818
|
}
|
|
@@ -2825,15 +2825,15 @@ g.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2825
2825
|
o = r - 1;
|
|
2826
2826
|
else
|
|
2827
2827
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2828
|
-
if (n = n.prefix ? o : r, r =
|
|
2829
|
-
return t.ta = !0, t.ib = n,
|
|
2828
|
+
if (n = n.prefix ? o : r, r = Hn(this, t.Ga, o))
|
|
2829
|
+
return t.ta = !0, t.ib = n, Kn(this, r, t.Ga, o);
|
|
2830
2830
|
e.pop(), e[e.length - 1].value = n;
|
|
2831
2831
|
}
|
|
2832
2832
|
};
|
|
2833
2833
|
g.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2834
2834
|
n = n.fa;
|
|
2835
2835
|
var r = t.A || 0, o = n[r];
|
|
2836
|
-
for (t.Bb && o && (
|
|
2836
|
+
for (t.Bb && o && (po(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2837
2837
|
if (o.ua)
|
|
2838
2838
|
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new T(o.ua, t.scope);
|
|
2839
2839
|
o = n[++r];
|
|
@@ -2841,7 +2841,7 @@ g.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2841
2841
|
e.pop();
|
|
2842
2842
|
};
|
|
2843
2843
|
g.prototype.stepWithStatement = function(e, t, n) {
|
|
2844
|
-
return t.Ca ? (e.pop(), e =
|
|
2844
|
+
return t.Ca ? (e.pop(), e = Ln(this, t.scope, t.value), new T(n.body, e)) : (t.Ca = !0, new T(n.object, t.scope));
|
|
2845
2845
|
};
|
|
2846
2846
|
g.prototype.stepWhileStatement = g.prototype.stepDoWhileStatement;
|
|
2847
2847
|
Be.Interpreter = g;
|
|
@@ -2860,7 +2860,7 @@ g.prototype.getGlobalScope = g.prototype.Xb;
|
|
|
2860
2860
|
g.prototype.getStateStack = g.prototype.Yb;
|
|
2861
2861
|
g.prototype.setStateStack = g.prototype.ec;
|
|
2862
2862
|
g.VALUE_IN_DESCRIPTOR = yt;
|
|
2863
|
-
function
|
|
2863
|
+
function Gi() {
|
|
2864
2864
|
const e = g.prototype.getProperty, t = g.prototype.setProperty;
|
|
2865
2865
|
function n(s, u) {
|
|
2866
2866
|
if (s == null || !s._connected)
|
|
@@ -2885,11 +2885,11 @@ function zi() {
|
|
|
2885
2885
|
return u._connected = s, u;
|
|
2886
2886
|
};
|
|
2887
2887
|
}
|
|
2888
|
-
|
|
2889
|
-
const
|
|
2888
|
+
Gi();
|
|
2889
|
+
const _i = (e) => e.replace(/^.*?function main\(\)/, `
|
|
2890
2890
|
var __awaiter = function (e, t, n, r) {return r()},
|
|
2891
2891
|
__generator = function (e, t) { return t() };
|
|
2892
|
-
function main()`).replace(/\?\./g, "."),
|
|
2892
|
+
function main()`).replace(/\?\./g, "."), Vr = (e) => e + "JSON", Ji = ({
|
|
2893
2893
|
builder: e,
|
|
2894
2894
|
context: t,
|
|
2895
2895
|
event: n,
|
|
@@ -2898,20 +2898,20 @@ function main()`).replace(/\?\./g, "."), Nr = (e) => e + "JSON", Gi = ({
|
|
|
2898
2898
|
rootSetState: i,
|
|
2899
2899
|
code: s
|
|
2900
2900
|
}) => {
|
|
2901
|
-
const u =
|
|
2901
|
+
const u = Nn({
|
|
2902
2902
|
rootState: r,
|
|
2903
2903
|
localState: o,
|
|
2904
2904
|
rootSetState: i
|
|
2905
|
-
}), c =
|
|
2905
|
+
}), c = lo({
|
|
2906
2906
|
builder: e,
|
|
2907
2907
|
context: t,
|
|
2908
2908
|
event: n,
|
|
2909
2909
|
state: u
|
|
2910
2910
|
}), m = c.map(([$]) => {
|
|
2911
|
-
const H =
|
|
2911
|
+
const H = Vr($);
|
|
2912
2912
|
return $ === "state" ? "" : `var ${$} = ${H} === undefined ? undefined : JSON.parse(${H});`;
|
|
2913
2913
|
}).join(`
|
|
2914
|
-
`), y =
|
|
2914
|
+
`), y = _i(s);
|
|
2915
2915
|
if (y === "")
|
|
2916
2916
|
return;
|
|
2917
2917
|
const b = `
|
|
@@ -2921,35 +2921,35 @@ function theFunction() {
|
|
|
2921
2921
|
${y}
|
|
2922
2922
|
}
|
|
2923
2923
|
theFunction();
|
|
2924
|
-
`,
|
|
2924
|
+
`, h = function($, H) {
|
|
2925
2925
|
c.forEach(([te, E]) => {
|
|
2926
2926
|
if (te === "state")
|
|
2927
2927
|
$.setProperty(H, te, $.createConnectedObject(E), $.READONLY_DESCRIPTOR);
|
|
2928
2928
|
else {
|
|
2929
2929
|
const D = JSON.stringify(E);
|
|
2930
|
-
$.setProperty(H,
|
|
2930
|
+
$.setProperty(H, Vr(te), D);
|
|
2931
2931
|
}
|
|
2932
2932
|
});
|
|
2933
|
-
}, S = new g(b,
|
|
2933
|
+
}, S = new g(b, h);
|
|
2934
2934
|
return S.run(), S.pseudoToNative(S.value);
|
|
2935
2935
|
};
|
|
2936
|
-
function
|
|
2936
|
+
function Xi() {
|
|
2937
2937
|
var e;
|
|
2938
2938
|
return typeof process < "u" && Ne((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2939
2939
|
}
|
|
2940
|
-
const
|
|
2940
|
+
const Yi = ({
|
|
2941
2941
|
shouldLogWarning: e
|
|
2942
2942
|
}) => {
|
|
2943
2943
|
var o;
|
|
2944
|
-
if (!
|
|
2944
|
+
if (!Xi())
|
|
2945
2945
|
return !1;
|
|
2946
2946
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), r = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
2947
2947
|
return t && n && !r ? (e && ue.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2948
|
-
},
|
|
2948
|
+
}, Qi = (e) => M() || Yi({
|
|
2949
2949
|
shouldLogWarning: !0
|
|
2950
|
-
}) ?
|
|
2950
|
+
}) ? xi(e) : Ji(e), Zi = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, es = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, ts = (e) => {
|
|
2951
2951
|
var t, n, r, o, i, s;
|
|
2952
|
-
return ((r = (n = (t =
|
|
2952
|
+
return ((r = (n = (t = Zi.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : r.slice(1)) || ((s = (i = (o = es.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
2953
2953
|
};
|
|
2954
2954
|
function kt({
|
|
2955
2955
|
code: e,
|
|
@@ -2963,17 +2963,17 @@ function kt({
|
|
|
2963
2963
|
}) {
|
|
2964
2964
|
if (e.trim() === "")
|
|
2965
2965
|
return;
|
|
2966
|
-
const c =
|
|
2966
|
+
const c = ts(e.trim());
|
|
2967
2967
|
if (c)
|
|
2968
|
-
return
|
|
2968
|
+
return Yr({
|
|
2969
2969
|
...r,
|
|
2970
2970
|
...n
|
|
2971
2971
|
}, c);
|
|
2972
2972
|
const m = {
|
|
2973
|
-
code:
|
|
2973
|
+
code: $i(e, {
|
|
2974
2974
|
isExpression: s
|
|
2975
2975
|
}),
|
|
2976
|
-
builder:
|
|
2976
|
+
builder: Ai(u),
|
|
2977
2977
|
context: t,
|
|
2978
2978
|
event: i,
|
|
2979
2979
|
rootSetState: o,
|
|
@@ -2981,7 +2981,7 @@ function kt({
|
|
|
2981
2981
|
localState: n
|
|
2982
2982
|
};
|
|
2983
2983
|
try {
|
|
2984
|
-
return
|
|
2984
|
+
return Qi(m);
|
|
2985
2985
|
} catch (y) {
|
|
2986
2986
|
ue.error("Failed code evaluation: " + y.message, {
|
|
2987
2987
|
code: e
|
|
@@ -2989,15 +2989,15 @@ function kt({
|
|
|
2989
2989
|
return;
|
|
2990
2990
|
}
|
|
2991
2991
|
}
|
|
2992
|
-
function
|
|
2992
|
+
function ns(e, t) {
|
|
2993
2993
|
var n;
|
|
2994
2994
|
return {
|
|
2995
2995
|
...(n = e.component) == null ? void 0 : n.options,
|
|
2996
2996
|
...e.options,
|
|
2997
|
-
...
|
|
2997
|
+
...rs(e, t)
|
|
2998
2998
|
};
|
|
2999
2999
|
}
|
|
3000
|
-
const
|
|
3000
|
+
const rs = (e, t) => {
|
|
3001
3001
|
var n, r;
|
|
3002
3002
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((r = e.component.options) != null && r.text) && typeof e.component.options.text == "string")
|
|
3003
3003
|
return {
|
|
@@ -3011,7 +3011,7 @@ const ts = (e, t) => {
|
|
|
3011
3011
|
}))
|
|
3012
3012
|
};
|
|
3013
3013
|
};
|
|
3014
|
-
function
|
|
3014
|
+
function os(e, ...t) {
|
|
3015
3015
|
const n = Object.assign({}, e);
|
|
3016
3016
|
for (const r of t)
|
|
3017
3017
|
delete n[r];
|
|
@@ -3034,30 +3034,30 @@ function Vt(e, t, n = null, r = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
|
3034
3034
|
}), Vt(s, t, e, i, o);
|
|
3035
3035
|
}));
|
|
3036
3036
|
}
|
|
3037
|
-
function
|
|
3037
|
+
function mo(e) {
|
|
3038
3038
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
3039
3039
|
}
|
|
3040
|
-
function
|
|
3040
|
+
function is(e) {
|
|
3041
3041
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
3042
3042
|
return !1;
|
|
3043
3043
|
let t = !1;
|
|
3044
3044
|
return Vt(e, (n) => {
|
|
3045
|
-
if (
|
|
3045
|
+
if (mo(n)) {
|
|
3046
3046
|
t = !0;
|
|
3047
3047
|
return;
|
|
3048
3048
|
}
|
|
3049
3049
|
}), t;
|
|
3050
3050
|
}
|
|
3051
|
-
function
|
|
3051
|
+
function ss(e, t) {
|
|
3052
3052
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (Vt(e, (n, r) => {
|
|
3053
|
-
|
|
3053
|
+
mo(n) && r(n[t] ?? void 0);
|
|
3054
3054
|
}), e);
|
|
3055
3055
|
}
|
|
3056
|
-
function
|
|
3056
|
+
function as(e, t) {
|
|
3057
3057
|
var n, r;
|
|
3058
|
-
return (n = e.component) != null && n.options &&
|
|
3058
|
+
return (n = e.component) != null && n.options && is((r = e.component) == null ? void 0 : r.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = ss(e.component.options, t ?? "Default")), e;
|
|
3059
3059
|
}
|
|
3060
|
-
const
|
|
3060
|
+
const zn = (e) => JSON.parse(JSON.stringify(e)), go = (e, t, n) => {
|
|
3061
3061
|
if (Object(e) !== e)
|
|
3062
3062
|
return e;
|
|
3063
3063
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
@@ -3075,9 +3075,9 @@ function Cn(e) {
|
|
|
3075
3075
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Cn(e[n]));
|
|
3076
3076
|
return t;
|
|
3077
3077
|
}
|
|
3078
|
-
const
|
|
3079
|
-
if (
|
|
3080
|
-
const t =
|
|
3078
|
+
const ls = ["svelte", "vue", "angular", "qwik", "solid"].includes(G), us = (e) => {
|
|
3079
|
+
if (ls) {
|
|
3080
|
+
const t = zn(e);
|
|
3081
3081
|
return {
|
|
3082
3082
|
...t,
|
|
3083
3083
|
properties: {
|
|
@@ -3088,7 +3088,7 @@ const ss = ["svelte", "vue", "angular", "qwik", "solid"].includes(G), as = (e) =
|
|
|
3088
3088
|
}
|
|
3089
3089
|
};
|
|
3090
3090
|
} else {
|
|
3091
|
-
const t = Cn(
|
|
3091
|
+
const t = Cn(os(e, "children", "meta"));
|
|
3092
3092
|
return {
|
|
3093
3093
|
...t,
|
|
3094
3094
|
properties: {
|
|
@@ -3101,7 +3101,7 @@ const ss = ["svelte", "vue", "angular", "qwik", "solid"].includes(G), as = (e) =
|
|
|
3101
3101
|
meta: e.meta
|
|
3102
3102
|
};
|
|
3103
3103
|
}
|
|
3104
|
-
},
|
|
3104
|
+
}, cs = ({
|
|
3105
3105
|
block: e,
|
|
3106
3106
|
context: t,
|
|
3107
3107
|
localState: n,
|
|
@@ -3110,7 +3110,7 @@ const ss = ["svelte", "vue", "angular", "qwik", "solid"].includes(G), as = (e) =
|
|
|
3110
3110
|
}) => {
|
|
3111
3111
|
if (!e.bindings)
|
|
3112
3112
|
return e;
|
|
3113
|
-
const i =
|
|
3113
|
+
const i = us(e);
|
|
3114
3114
|
for (const s in e.bindings) {
|
|
3115
3115
|
const u = e.bindings[s], c = kt({
|
|
3116
3116
|
code: u,
|
|
@@ -3119,11 +3119,11 @@ const ss = ["svelte", "vue", "angular", "qwik", "solid"].includes(G), as = (e) =
|
|
|
3119
3119
|
rootSetState: o,
|
|
3120
3120
|
context: t
|
|
3121
3121
|
});
|
|
3122
|
-
|
|
3122
|
+
go(i, s, c);
|
|
3123
3123
|
}
|
|
3124
3124
|
return i;
|
|
3125
3125
|
};
|
|
3126
|
-
function
|
|
3126
|
+
function ps({
|
|
3127
3127
|
block: e,
|
|
3128
3128
|
context: t,
|
|
3129
3129
|
localState: n,
|
|
@@ -3131,33 +3131,33 @@ function us({
|
|
|
3131
3131
|
rootSetState: o
|
|
3132
3132
|
}) {
|
|
3133
3133
|
let i = e;
|
|
3134
|
-
return i =
|
|
3134
|
+
return i = cs({
|
|
3135
3135
|
block: i,
|
|
3136
3136
|
localState: n,
|
|
3137
3137
|
rootState: r,
|
|
3138
3138
|
rootSetState: o,
|
|
3139
3139
|
context: t
|
|
3140
|
-
}), i =
|
|
3140
|
+
}), i = as(i, r.locale), i;
|
|
3141
3141
|
}
|
|
3142
|
-
function
|
|
3142
|
+
function qn(e) {
|
|
3143
3143
|
const t = e || (M() ? window.location.search : void 0);
|
|
3144
|
-
return t ?
|
|
3144
|
+
return t ? Zr(t).indexOf("builder.preview=") !== -1 : !1;
|
|
3145
3145
|
}
|
|
3146
|
-
const
|
|
3146
|
+
const ds = (e) => ({
|
|
3147
3147
|
type: "builder.registerComponent",
|
|
3148
3148
|
data: Dt(e)
|
|
3149
|
-
}),
|
|
3149
|
+
}), fs = (e) => {
|
|
3150
3150
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
3151
3151
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
3152
3152
|
};
|
|
3153
3153
|
function Dt(e) {
|
|
3154
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
3154
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? fs(n) : n));
|
|
3155
3155
|
}
|
|
3156
|
-
const
|
|
3157
|
-
function
|
|
3156
|
+
const Dr = {};
|
|
3157
|
+
function oc(e, t) {
|
|
3158
3158
|
e === "plugin" && (t = Dt(t));
|
|
3159
|
-
let n =
|
|
3160
|
-
if (n || (n =
|
|
3159
|
+
let n = Dr[e];
|
|
3160
|
+
if (n || (n = Dr[e] = []), n.push(t), M()) {
|
|
3161
3161
|
const r = {
|
|
3162
3162
|
type: "builder.register",
|
|
3163
3163
|
data: {
|
|
@@ -3172,7 +3172,7 @@ function tc(e, t) {
|
|
|
3172
3172
|
}
|
|
3173
3173
|
}
|
|
3174
3174
|
}
|
|
3175
|
-
function
|
|
3175
|
+
function ic(e) {
|
|
3176
3176
|
var t;
|
|
3177
3177
|
if (M()) {
|
|
3178
3178
|
const n = JSON.parse(JSON.stringify(e));
|
|
@@ -3182,50 +3182,50 @@ function nc(e) {
|
|
|
3182
3182
|
}, "*");
|
|
3183
3183
|
}
|
|
3184
3184
|
}
|
|
3185
|
-
const
|
|
3186
|
-
function
|
|
3185
|
+
const Ur = {};
|
|
3186
|
+
function sc(e) {
|
|
3187
3187
|
if (M()) {
|
|
3188
|
-
Object.assign(
|
|
3188
|
+
Object.assign(Ur, e);
|
|
3189
3189
|
const t = {
|
|
3190
3190
|
type: "builder.settingsChange",
|
|
3191
|
-
data:
|
|
3191
|
+
data: Ur
|
|
3192
3192
|
};
|
|
3193
3193
|
parent.postMessage(t, "*");
|
|
3194
3194
|
}
|
|
3195
3195
|
}
|
|
3196
|
-
const
|
|
3196
|
+
const Wr = "builder.", hs = "options.", yo = (e) => {
|
|
3197
3197
|
if (!e)
|
|
3198
3198
|
return {};
|
|
3199
|
-
const t =
|
|
3199
|
+
const t = Qr(e), n = {};
|
|
3200
3200
|
return Object.keys(t).forEach((r) => {
|
|
3201
|
-
if (r.startsWith(
|
|
3202
|
-
const o = r.replace(
|
|
3201
|
+
if (r.startsWith(Wr)) {
|
|
3202
|
+
const o = r.replace(Wr, "").replace(hs, "");
|
|
3203
3203
|
n[o] = t[r];
|
|
3204
3204
|
}
|
|
3205
3205
|
}), n;
|
|
3206
|
-
},
|
|
3206
|
+
}, ms = () => {
|
|
3207
3207
|
if (!M())
|
|
3208
3208
|
return {};
|
|
3209
3209
|
const e = new URLSearchParams(window.location.search);
|
|
3210
|
-
return
|
|
3211
|
-
},
|
|
3212
|
-
function
|
|
3210
|
+
return yo(e);
|
|
3211
|
+
}, gs = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
3212
|
+
function vo(e, t) {
|
|
3213
3213
|
let n;
|
|
3214
3214
|
try {
|
|
3215
3215
|
n = new URL(t.origin);
|
|
3216
3216
|
} catch {
|
|
3217
3217
|
return !1;
|
|
3218
3218
|
}
|
|
3219
|
-
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e ||
|
|
3219
|
+
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || gs).findIndex((r) => r.startsWith("*.") ? n.hostname.endsWith(r.slice(1)) : r === n.hostname) > -1;
|
|
3220
3220
|
}
|
|
3221
|
-
let
|
|
3222
|
-
const
|
|
3221
|
+
let Lr = !1;
|
|
3222
|
+
const bo = (e) => {
|
|
3223
3223
|
var t, n;
|
|
3224
|
-
|
|
3224
|
+
Lr || (Lr = !0, M() && ((t = window.parent) == null || t.postMessage({
|
|
3225
3225
|
type: "builder.sdkInfo",
|
|
3226
3226
|
data: {
|
|
3227
3227
|
target: G,
|
|
3228
|
-
version:
|
|
3228
|
+
version: to,
|
|
3229
3229
|
supportsPatchUpdates: !1,
|
|
3230
3230
|
// Supports builder-model="..." attribute which is needed to
|
|
3231
3231
|
// scope our '+ add block' button styling
|
|
@@ -3243,7 +3243,7 @@ const mo = (e) => {
|
|
|
3243
3243
|
}
|
|
3244
3244
|
}, "*"), window.addEventListener("message", (r) => {
|
|
3245
3245
|
var i, s;
|
|
3246
|
-
if (!
|
|
3246
|
+
if (!vo(e.trustedHosts, r))
|
|
3247
3247
|
return;
|
|
3248
3248
|
const {
|
|
3249
3249
|
data: o
|
|
@@ -3252,17 +3252,17 @@ const mo = (e) => {
|
|
|
3252
3252
|
switch (o.type) {
|
|
3253
3253
|
case "builder.evaluate": {
|
|
3254
3254
|
const u = o.data.text, c = o.data.arguments || [], m = o.data.id, y = new Function(u);
|
|
3255
|
-
let b,
|
|
3255
|
+
let b, h = null;
|
|
3256
3256
|
try {
|
|
3257
3257
|
b = y.apply(null, c);
|
|
3258
3258
|
} catch (S) {
|
|
3259
|
-
|
|
3259
|
+
h = S;
|
|
3260
3260
|
}
|
|
3261
|
-
|
|
3261
|
+
h ? (i = window.parent) == null || i.postMessage({
|
|
3262
3262
|
type: "builder.evaluateError",
|
|
3263
3263
|
data: {
|
|
3264
3264
|
id: m,
|
|
3265
|
-
error:
|
|
3265
|
+
error: h.message
|
|
3266
3266
|
}
|
|
3267
3267
|
}, "*") : b && typeof b.then == "function" ? b.then((S) => {
|
|
3268
3268
|
var A;
|
|
@@ -3284,12 +3284,12 @@ const mo = (e) => {
|
|
|
3284
3284
|
}
|
|
3285
3285
|
}
|
|
3286
3286
|
})));
|
|
3287
|
-
},
|
|
3287
|
+
}, So = ({
|
|
3288
3288
|
model: e,
|
|
3289
3289
|
trustedHosts: t,
|
|
3290
3290
|
callbacks: n
|
|
3291
3291
|
}) => (r) => {
|
|
3292
|
-
if (!
|
|
3292
|
+
if (!vo(t, r))
|
|
3293
3293
|
return;
|
|
3294
3294
|
const {
|
|
3295
3295
|
data: o
|
|
@@ -3315,7 +3315,7 @@ const mo = (e) => {
|
|
|
3315
3315
|
break;
|
|
3316
3316
|
}
|
|
3317
3317
|
}
|
|
3318
|
-
},
|
|
3318
|
+
}, ac = ({
|
|
3319
3319
|
model: e,
|
|
3320
3320
|
apiKey: t,
|
|
3321
3321
|
callback: n,
|
|
@@ -3324,11 +3324,11 @@ const mo = (e) => {
|
|
|
3324
3324
|
if (!M)
|
|
3325
3325
|
return ue.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
3326
3326
|
};
|
|
3327
|
-
|
|
3327
|
+
bo({
|
|
3328
3328
|
modelName: e,
|
|
3329
3329
|
apiKey: t
|
|
3330
3330
|
});
|
|
3331
|
-
const o =
|
|
3331
|
+
const o = So({
|
|
3332
3332
|
callbacks: {
|
|
3333
3333
|
contentUpdate: n,
|
|
3334
3334
|
animation: () => {
|
|
@@ -3344,24 +3344,24 @@ const mo = (e) => {
|
|
|
3344
3344
|
return window.addEventListener("message", o), () => {
|
|
3345
3345
|
window.removeEventListener("message", o);
|
|
3346
3346
|
};
|
|
3347
|
-
},
|
|
3347
|
+
}, ys = "builder.tests", Gn = (e) => `${ys}.${e}`, vs = ({
|
|
3348
3348
|
contentId: e
|
|
3349
|
-
}) =>
|
|
3350
|
-
name:
|
|
3349
|
+
}) => ro({
|
|
3350
|
+
name: Gn(e),
|
|
3351
3351
|
canTrack: !0
|
|
3352
|
-
}),
|
|
3352
|
+
}), bs = ({
|
|
3353
3353
|
contentId: e
|
|
3354
3354
|
}) => Lt({
|
|
3355
|
-
name:
|
|
3355
|
+
name: Gn(e),
|
|
3356
3356
|
canTrack: !0
|
|
3357
|
-
}),
|
|
3357
|
+
}), Ss = ({
|
|
3358
3358
|
contentId: e,
|
|
3359
3359
|
value: t
|
|
3360
|
-
}) =>
|
|
3361
|
-
name:
|
|
3360
|
+
}) => Pn({
|
|
3361
|
+
name: Gn(e),
|
|
3362
3362
|
value: t,
|
|
3363
3363
|
canTrack: !0
|
|
3364
|
-
}),
|
|
3364
|
+
}), ko = (e) => Ne(e.id) && Ne(e.variations) && Object.keys(e.variations).length > 0, ks = ({
|
|
3365
3365
|
id: e,
|
|
3366
3366
|
variations: t
|
|
3367
3367
|
}) => {
|
|
@@ -3374,15 +3374,15 @@ const mo = (e) => {
|
|
|
3374
3374
|
return i;
|
|
3375
3375
|
}
|
|
3376
3376
|
return e;
|
|
3377
|
-
},
|
|
3378
|
-
const t =
|
|
3379
|
-
return
|
|
3377
|
+
}, Co = (e) => {
|
|
3378
|
+
const t = ks(e);
|
|
3379
|
+
return Ss({
|
|
3380
3380
|
contentId: e.id,
|
|
3381
3381
|
value: t
|
|
3382
3382
|
}).catch((n) => {
|
|
3383
3383
|
ue.error("could not store A/B test variation: ", n);
|
|
3384
3384
|
}), t;
|
|
3385
|
-
},
|
|
3385
|
+
}, wo = ({
|
|
3386
3386
|
item: e,
|
|
3387
3387
|
testGroupId: t
|
|
3388
3388
|
}) => {
|
|
@@ -3396,7 +3396,7 @@ const mo = (e) => {
|
|
|
3396
3396
|
testVariationId: n.id,
|
|
3397
3397
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3398
3398
|
};
|
|
3399
|
-
},
|
|
3399
|
+
}, Cs = ({
|
|
3400
3400
|
item: e,
|
|
3401
3401
|
canTrack: t
|
|
3402
3402
|
}) => {
|
|
@@ -3404,14 +3404,14 @@ const mo = (e) => {
|
|
|
3404
3404
|
return e;
|
|
3405
3405
|
if (!e)
|
|
3406
3406
|
return;
|
|
3407
|
-
if (!
|
|
3407
|
+
if (!ko(e))
|
|
3408
3408
|
return e;
|
|
3409
|
-
const n =
|
|
3409
|
+
const n = bs({
|
|
3410
3410
|
contentId: e.id
|
|
3411
|
-
}) ||
|
|
3411
|
+
}) || Co({
|
|
3412
3412
|
variations: e.variations,
|
|
3413
3413
|
id: e.id
|
|
3414
|
-
}), r =
|
|
3414
|
+
}), r = wo({
|
|
3415
3415
|
item: e,
|
|
3416
3416
|
testGroupId: n
|
|
3417
3417
|
});
|
|
@@ -3419,18 +3419,18 @@ const mo = (e) => {
|
|
|
3419
3419
|
...e,
|
|
3420
3420
|
...r
|
|
3421
3421
|
};
|
|
3422
|
-
},
|
|
3422
|
+
}, ws = async ({
|
|
3423
3423
|
item: e,
|
|
3424
3424
|
canTrack: t
|
|
3425
3425
|
}) => {
|
|
3426
|
-
if (!t || !
|
|
3426
|
+
if (!t || !ko(e))
|
|
3427
3427
|
return e;
|
|
3428
|
-
const r = await
|
|
3428
|
+
const r = await vs({
|
|
3429
3429
|
contentId: e.id
|
|
3430
|
-
}) ||
|
|
3430
|
+
}) || Co({
|
|
3431
3431
|
variations: e.variations,
|
|
3432
3432
|
id: e.id
|
|
3433
|
-
}), o =
|
|
3433
|
+
}), o = wo({
|
|
3434
3434
|
item: e,
|
|
3435
3435
|
testGroupId: r
|
|
3436
3436
|
});
|
|
@@ -3439,8 +3439,8 @@ const mo = (e) => {
|
|
|
3439
3439
|
...o
|
|
3440
3440
|
};
|
|
3441
3441
|
};
|
|
3442
|
-
const
|
|
3443
|
-
function
|
|
3442
|
+
const Fr = "builder.userAttributes";
|
|
3443
|
+
function Mr() {
|
|
3444
3444
|
let e = !0;
|
|
3445
3445
|
const t = /* @__PURE__ */ new Set();
|
|
3446
3446
|
return {
|
|
@@ -3451,15 +3451,15 @@ function Wr() {
|
|
|
3451
3451
|
...this.getUserAttributes(),
|
|
3452
3452
|
...n
|
|
3453
3453
|
};
|
|
3454
|
-
|
|
3455
|
-
name:
|
|
3454
|
+
Pn({
|
|
3455
|
+
name: Fr,
|
|
3456
3456
|
value: JSON.stringify(r),
|
|
3457
3457
|
canTrack: e
|
|
3458
3458
|
}), t.forEach((o) => o(r));
|
|
3459
3459
|
},
|
|
3460
3460
|
getUserAttributes() {
|
|
3461
3461
|
return M() ? JSON.parse(Lt({
|
|
3462
|
-
name:
|
|
3462
|
+
name: Fr,
|
|
3463
3463
|
canTrack: e
|
|
3464
3464
|
}) || "{}") : {};
|
|
3465
3465
|
},
|
|
@@ -3476,24 +3476,24 @@ function Wr() {
|
|
|
3476
3476
|
};
|
|
3477
3477
|
}
|
|
3478
3478
|
let wn;
|
|
3479
|
-
M() && G === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ =
|
|
3480
|
-
const Ut = wn,
|
|
3479
|
+
M() && G === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Mr()), wn = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : wn = Mr();
|
|
3480
|
+
const Ut = wn, lc = (e) => {
|
|
3481
3481
|
Ut.setUserAttributes(e);
|
|
3482
3482
|
}, Xe = (e) => {
|
|
3483
3483
|
const t = Ne(e) ? e : !0;
|
|
3484
3484
|
return Ut.setCanTrack(t), t;
|
|
3485
3485
|
};
|
|
3486
|
-
function
|
|
3486
|
+
function Ts() {
|
|
3487
3487
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
3488
3488
|
}
|
|
3489
|
-
function
|
|
3490
|
-
const e =
|
|
3489
|
+
function Es() {
|
|
3490
|
+
const e = Ts().fetch;
|
|
3491
3491
|
if (typeof e > "u")
|
|
3492
3492
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
3493
3493
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
3494
3494
|
return e;
|
|
3495
3495
|
}
|
|
3496
|
-
const
|
|
3496
|
+
const Is = Es();
|
|
3497
3497
|
function Tn(e, t = null, n = ".") {
|
|
3498
3498
|
return Object.keys(e).reduce((r, o) => {
|
|
3499
3499
|
const i = e[o], s = [t, o].filter(Boolean).join(n);
|
|
@@ -3506,14 +3506,14 @@ function Tn(e, t = null, n = ".") {
|
|
|
3506
3506
|
};
|
|
3507
3507
|
}, {});
|
|
3508
3508
|
}
|
|
3509
|
-
function
|
|
3509
|
+
function To(e, t, n = {}) {
|
|
3510
3510
|
for (const r in e) {
|
|
3511
3511
|
const o = e[r], i = t ? t + "." + r : r;
|
|
3512
|
-
o && typeof o == "object" && !Array.isArray(o) && !Object.keys(o).find((s) => s.startsWith("$")) ?
|
|
3512
|
+
o && typeof o == "object" && !Array.isArray(o) && !Object.keys(o).find((s) => s.startsWith("$")) ? To(o, i, n) : n[i] = o;
|
|
3513
3513
|
}
|
|
3514
3514
|
return n;
|
|
3515
3515
|
}
|
|
3516
|
-
function
|
|
3516
|
+
function Rs(e) {
|
|
3517
3517
|
const t = {};
|
|
3518
3518
|
for (const n in e) {
|
|
3519
3519
|
const r = n.split(".");
|
|
@@ -3525,7 +3525,7 @@ function Es(e) {
|
|
|
3525
3525
|
}
|
|
3526
3526
|
return t;
|
|
3527
3527
|
}
|
|
3528
|
-
const
|
|
3528
|
+
const As = "v3", Hr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, _n = (e) => {
|
|
3529
3529
|
const {
|
|
3530
3530
|
limit: t = 30,
|
|
3531
3531
|
userAttributes: n,
|
|
@@ -3534,11 +3534,11 @@ const Is = "v3", Lr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, zn = (
|
|
|
3534
3534
|
apiKey: i,
|
|
3535
3535
|
enrich: s,
|
|
3536
3536
|
locale: u,
|
|
3537
|
-
apiVersion: c =
|
|
3537
|
+
apiVersion: c = As,
|
|
3538
3538
|
fields: m,
|
|
3539
3539
|
omit: y,
|
|
3540
3540
|
offset: b,
|
|
3541
|
-
cacheSeconds:
|
|
3541
|
+
cacheSeconds: h,
|
|
3542
3542
|
staleCacheSeconds: S,
|
|
3543
3543
|
sort: A,
|
|
3544
3544
|
includeUnpublished: $,
|
|
@@ -3551,7 +3551,7 @@ const Is = "v3", Lr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, zn = (
|
|
|
3551
3551
|
const te = t !== 1, E = H || "https://cdn.builder.io", D = new URL(`${E}/api/${c}/content/${o}`);
|
|
3552
3552
|
D.searchParams.set("apiKey", i), D.searchParams.set("limit", String(t)), D.searchParams.set("noTraverse", String(te)), D.searchParams.set("includeRefs", String(!0)), u && D.searchParams.set("locale", u);
|
|
3553
3553
|
let ie = n || {};
|
|
3554
|
-
if (s && D.searchParams.set("enrich", String(s)), D.searchParams.set("omit", y ?? "meta.componentsUsed"), m && D.searchParams.set("fields", m), Number.isFinite(b) && b > -1 && D.searchParams.set("offset", String(Math.floor(b))), typeof $ == "boolean" && D.searchParams.set("includeUnpublished", String($)),
|
|
3554
|
+
if (s && D.searchParams.set("enrich", String(s)), D.searchParams.set("omit", y ?? "meta.componentsUsed"), m && D.searchParams.set("fields", m), Number.isFinite(b) && b > -1 && D.searchParams.set("offset", String(Math.floor(b))), typeof $ == "boolean" && D.searchParams.set("includeUnpublished", String($)), h && Hr(h) && D.searchParams.set("cacheSeconds", String(h)), S && Hr(S) && D.searchParams.set("staleCacheSeconds", String(S)), A) {
|
|
3555
3555
|
const _ = Tn({
|
|
3556
3556
|
sort: A
|
|
3557
3557
|
});
|
|
@@ -3559,70 +3559,70 @@ const Is = "v3", Lr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, zn = (
|
|
|
3559
3559
|
D.searchParams.set(R, JSON.stringify(_[R]));
|
|
3560
3560
|
}
|
|
3561
3561
|
const Ae = {
|
|
3562
|
-
...
|
|
3563
|
-
...
|
|
3562
|
+
...ms(),
|
|
3563
|
+
...Qr(e.options || {})
|
|
3564
3564
|
};
|
|
3565
3565
|
ie = {
|
|
3566
3566
|
...ie,
|
|
3567
|
-
...
|
|
3567
|
+
...xs(Ae)
|
|
3568
3568
|
};
|
|
3569
3569
|
const K = Tn(Ae);
|
|
3570
3570
|
for (const _ in K)
|
|
3571
3571
|
D.searchParams.set(_, String(K[_]));
|
|
3572
3572
|
if (Object.keys(ie).length > 0 && D.searchParams.set("userAttributes", JSON.stringify(ie)), r) {
|
|
3573
|
-
const _ =
|
|
3573
|
+
const _ = To({
|
|
3574
3574
|
query: r
|
|
3575
3575
|
});
|
|
3576
3576
|
for (const R in _)
|
|
3577
3577
|
D.searchParams.set(R, JSON.stringify(_[R]));
|
|
3578
3578
|
}
|
|
3579
3579
|
return D;
|
|
3580
|
-
},
|
|
3580
|
+
}, $s = (e) => {
|
|
3581
3581
|
const t = {};
|
|
3582
3582
|
for (const n in e)
|
|
3583
3583
|
n.startsWith("userAttributes.") && (t[n] = e[n], delete e[n]);
|
|
3584
3584
|
return t;
|
|
3585
|
-
},
|
|
3585
|
+
}, xs = (e) => {
|
|
3586
3586
|
if (M() && e.preview === "BUILDER_STUDIO") {
|
|
3587
3587
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
3588
|
-
const t =
|
|
3588
|
+
const t = $s(e), {
|
|
3589
3589
|
userAttributes: n
|
|
3590
|
-
} =
|
|
3590
|
+
} = Rs(t);
|
|
3591
3591
|
return n;
|
|
3592
3592
|
}
|
|
3593
3593
|
return {};
|
|
3594
|
-
},
|
|
3595
|
-
async function
|
|
3594
|
+
}, Ps = (e) => "results" in e;
|
|
3595
|
+
async function Jn(e) {
|
|
3596
3596
|
var r;
|
|
3597
3597
|
const t = e.locale || ((r = e.userAttributes) == null ? void 0 : r.locale);
|
|
3598
3598
|
t && (e.locale = t, e.userAttributes = {
|
|
3599
3599
|
locale: t,
|
|
3600
3600
|
...e.userAttributes
|
|
3601
3601
|
});
|
|
3602
|
-
const n = await
|
|
3602
|
+
const n = await Bs({
|
|
3603
3603
|
...e,
|
|
3604
3604
|
limit: 1
|
|
3605
3605
|
});
|
|
3606
3606
|
return n && n[0] || null;
|
|
3607
3607
|
}
|
|
3608
|
-
const
|
|
3608
|
+
const Os = async (e) => {
|
|
3609
3609
|
var s;
|
|
3610
|
-
const t =
|
|
3610
|
+
const t = _n(e), n = e.fetch ?? Is, r = {
|
|
3611
3611
|
...e.fetchOptions,
|
|
3612
3612
|
headers: {
|
|
3613
3613
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
3614
|
-
...
|
|
3614
|
+
...no()
|
|
3615
3615
|
}
|
|
3616
3616
|
};
|
|
3617
3617
|
return await (await n(t.href, r)).json();
|
|
3618
|
-
},
|
|
3618
|
+
}, Ns = async (e, t, n = _n(e)) => {
|
|
3619
3619
|
const r = Xe(e.canTrack);
|
|
3620
3620
|
if (n.search.includes("preview="), !r || !(M() || G === "reactNative"))
|
|
3621
3621
|
return t.results;
|
|
3622
3622
|
try {
|
|
3623
3623
|
const o = [];
|
|
3624
3624
|
for (const i of t.results)
|
|
3625
|
-
o.push(await
|
|
3625
|
+
o.push(await ws({
|
|
3626
3626
|
item: i,
|
|
3627
3627
|
canTrack: r
|
|
3628
3628
|
}));
|
|
@@ -3632,17 +3632,17 @@ const xs = async (e) => {
|
|
|
3632
3632
|
}
|
|
3633
3633
|
return t.results;
|
|
3634
3634
|
};
|
|
3635
|
-
async function
|
|
3636
|
-
const t =
|
|
3637
|
-
if (
|
|
3635
|
+
async function Bs(e) {
|
|
3636
|
+
const t = _n(e), n = await Os(e);
|
|
3637
|
+
if (!Ps(n))
|
|
3638
3638
|
throw ue.error("Error fetching data. ", {
|
|
3639
3639
|
url: t,
|
|
3640
3640
|
content: n,
|
|
3641
3641
|
options: e
|
|
3642
3642
|
}), n;
|
|
3643
|
-
return
|
|
3643
|
+
return Ns(e, n);
|
|
3644
3644
|
}
|
|
3645
|
-
const
|
|
3645
|
+
const uc = async (e) => {
|
|
3646
3646
|
var r, o, i;
|
|
3647
3647
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
3648
3648
|
...e,
|
|
@@ -3654,15 +3654,15 @@ const sc = async (e) => {
|
|
|
3654
3654
|
urlPath: t
|
|
3655
3655
|
} : {}
|
|
3656
3656
|
},
|
|
3657
|
-
options:
|
|
3657
|
+
options: yo(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
3658
3658
|
};
|
|
3659
3659
|
return {
|
|
3660
3660
|
apiKey: n.apiKey,
|
|
3661
3661
|
model: n.model,
|
|
3662
|
-
content: await
|
|
3662
|
+
content: await Jn(n)
|
|
3663
3663
|
};
|
|
3664
|
-
},
|
|
3665
|
-
function
|
|
3664
|
+
}, Xn = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
3665
|
+
function js(e, t, n = {}) {
|
|
3666
3666
|
let r, o, i, s = null, u = 0;
|
|
3667
3667
|
const c = function() {
|
|
3668
3668
|
u = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(r, o), s || (r = o = null);
|
|
@@ -3684,55 +3684,55 @@ function mt(e, ...t) {
|
|
|
3684
3684
|
}
|
|
3685
3685
|
return n;
|
|
3686
3686
|
}
|
|
3687
|
-
function
|
|
3687
|
+
function Vs(e) {
|
|
3688
3688
|
for (const t of e)
|
|
3689
3689
|
switch (t.trigger) {
|
|
3690
3690
|
case "pageLoad":
|
|
3691
|
-
|
|
3691
|
+
Ro(t);
|
|
3692
3692
|
break;
|
|
3693
3693
|
case "scrollInView":
|
|
3694
|
-
|
|
3694
|
+
Us(t);
|
|
3695
3695
|
break;
|
|
3696
3696
|
}
|
|
3697
3697
|
}
|
|
3698
|
-
function
|
|
3698
|
+
function Eo(e) {
|
|
3699
3699
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
3700
3700
|
}
|
|
3701
|
-
function
|
|
3702
|
-
const n =
|
|
3701
|
+
function Io(e, t) {
|
|
3702
|
+
const n = Ds(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
3703
3703
|
for (const u of s)
|
|
3704
3704
|
for (const c of n)
|
|
3705
3705
|
c in u || (u[c] = r[c]);
|
|
3706
3706
|
}
|
|
3707
|
-
function
|
|
3707
|
+
function Ds(e) {
|
|
3708
3708
|
const t = [];
|
|
3709
3709
|
for (const n of e.steps)
|
|
3710
3710
|
for (const r in n.styles)
|
|
3711
3711
|
t.indexOf(r) === -1 && t.push(r);
|
|
3712
3712
|
return t;
|
|
3713
3713
|
}
|
|
3714
|
-
function
|
|
3714
|
+
function Ro(e) {
|
|
3715
3715
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
3716
3716
|
if (!t.length) {
|
|
3717
|
-
|
|
3717
|
+
Eo(e.elementId || e.id || "");
|
|
3718
3718
|
return;
|
|
3719
3719
|
}
|
|
3720
3720
|
Array.from(t).forEach((n) => {
|
|
3721
|
-
|
|
3722
|
-
n.style.transition = `all ${e.duration}s ${
|
|
3721
|
+
Io(e, n), n.style.transition = "none", n.style.transitionDelay = "0", mt(n.style, e.steps[0].styles), setTimeout(() => {
|
|
3722
|
+
n.style.transition = `all ${e.duration}s ${Xn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), mt(n.style, e.steps[1].styles), setTimeout(() => {
|
|
3723
3723
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
3724
3724
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
3725
3725
|
});
|
|
3726
3726
|
});
|
|
3727
3727
|
}
|
|
3728
|
-
function
|
|
3728
|
+
function Us(e) {
|
|
3729
3729
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
3730
3730
|
if (!t.length) {
|
|
3731
|
-
|
|
3731
|
+
Eo(e.elementId || e.id || "");
|
|
3732
3732
|
return;
|
|
3733
3733
|
}
|
|
3734
3734
|
Array.from(t).forEach((n) => {
|
|
3735
|
-
|
|
3735
|
+
Io(e, n);
|
|
3736
3736
|
let r = !1, o = !1;
|
|
3737
3737
|
function i() {
|
|
3738
3738
|
!r && u(n) ? (r = !0, o = !0, setTimeout(() => {
|
|
@@ -3741,61 +3741,61 @@ function Vs(e) {
|
|
|
3741
3741
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
3742
3742
|
})) : e.repeat && r && !o && !u(n) && (r = !1, mt(n.style, e.steps[0].styles));
|
|
3743
3743
|
}
|
|
3744
|
-
const s =
|
|
3744
|
+
const s = js(i, 200, {
|
|
3745
3745
|
leading: !1
|
|
3746
3746
|
});
|
|
3747
3747
|
function u(y) {
|
|
3748
|
-
const b = y.getBoundingClientRect(),
|
|
3749
|
-
return b.bottom > A && b.top <
|
|
3748
|
+
const b = y.getBoundingClientRect(), h = window.innerHeight, A = (e.thresholdPercent || 0) / 100 * h;
|
|
3749
|
+
return b.bottom > A && b.top < h - A;
|
|
3750
3750
|
}
|
|
3751
3751
|
const c = e.steps[0].styles;
|
|
3752
3752
|
function m() {
|
|
3753
3753
|
mt(n.style, c);
|
|
3754
3754
|
}
|
|
3755
3755
|
m(), setTimeout(() => {
|
|
3756
|
-
n.style.transition = `all ${e.duration}s ${
|
|
3756
|
+
n.style.transition = `all ${e.duration}s ${Xn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
3757
3757
|
}), document.addEventListener("scroll", s, {
|
|
3758
3758
|
capture: !0,
|
|
3759
3759
|
passive: !0
|
|
3760
3760
|
}), i();
|
|
3761
3761
|
});
|
|
3762
3762
|
}
|
|
3763
|
-
const
|
|
3763
|
+
const Ao = (e) => Object.entries(e).map(([n, r]) => {
|
|
3764
3764
|
if (typeof r == "string")
|
|
3765
|
-
return `${
|
|
3766
|
-
}).filter(Ne),
|
|
3767
|
-
`),
|
|
3765
|
+
return `${Xn(n)}: ${r};`;
|
|
3766
|
+
}).filter(Ne), Ws = (e) => Ao(e).join(`
|
|
3767
|
+
`), cc = ({
|
|
3768
3768
|
mediaQuery: e,
|
|
3769
3769
|
className: t,
|
|
3770
3770
|
styles: n
|
|
3771
3771
|
}) => {
|
|
3772
3772
|
const r = `.${t} {
|
|
3773
|
-
${
|
|
3773
|
+
${Ws(n)}
|
|
3774
3774
|
}`;
|
|
3775
3775
|
return e ? `${e} {
|
|
3776
3776
|
${r}
|
|
3777
3777
|
}` : r;
|
|
3778
3778
|
};
|
|
3779
|
-
function
|
|
3779
|
+
function Ls({
|
|
3780
3780
|
style: e
|
|
3781
3781
|
}) {
|
|
3782
3782
|
return e;
|
|
3783
3783
|
}
|
|
3784
|
-
const
|
|
3784
|
+
const pc = ({
|
|
3785
3785
|
block: e,
|
|
3786
3786
|
context: t
|
|
3787
|
-
}) =>
|
|
3787
|
+
}) => $o(Ls({
|
|
3788
3788
|
style: e.style || {},
|
|
3789
3789
|
context: t,
|
|
3790
3790
|
block: e
|
|
3791
3791
|
}));
|
|
3792
|
-
function
|
|
3792
|
+
function $o(e) {
|
|
3793
3793
|
switch (G) {
|
|
3794
3794
|
case "svelte":
|
|
3795
3795
|
case "vue":
|
|
3796
3796
|
case "solid":
|
|
3797
3797
|
case "angular":
|
|
3798
|
-
return
|
|
3798
|
+
return Ao(e).join(" ");
|
|
3799
3799
|
case "qwik":
|
|
3800
3800
|
case "reactNative":
|
|
3801
3801
|
case "react":
|
|
@@ -3803,7 +3803,7 @@ function Eo(e) {
|
|
|
3803
3803
|
return e;
|
|
3804
3804
|
}
|
|
3805
3805
|
}
|
|
3806
|
-
const
|
|
3806
|
+
const xo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Fs = ({
|
|
3807
3807
|
block: e,
|
|
3808
3808
|
registeredComponents: t,
|
|
3809
3809
|
model: n
|
|
@@ -3813,14 +3813,14 @@ const Io = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3813
3813
|
if (!r)
|
|
3814
3814
|
return null;
|
|
3815
3815
|
const o = t[r];
|
|
3816
|
-
if (!o ||
|
|
3816
|
+
if (!o || xo(o, n)) {
|
|
3817
3817
|
console.warn(`
|
|
3818
3818
|
Could not find a registered component named "${r}".
|
|
3819
3819
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
3820
3820
|
return;
|
|
3821
3821
|
} else
|
|
3822
3822
|
return o;
|
|
3823
|
-
},
|
|
3823
|
+
}, Ms = ({
|
|
3824
3824
|
block: e,
|
|
3825
3825
|
context: t
|
|
3826
3826
|
}) => {
|
|
@@ -3853,59 +3853,59 @@ const Io = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3853
3853
|
},
|
|
3854
3854
|
block: r
|
|
3855
3855
|
}));
|
|
3856
|
-
},
|
|
3856
|
+
}, Hs = (e, t) => {
|
|
3857
3857
|
var n;
|
|
3858
3858
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
3859
3859
|
builderLinkComponent: t
|
|
3860
3860
|
} : {};
|
|
3861
|
-
},
|
|
3861
|
+
}, Ks = (e, t, n) => {
|
|
3862
3862
|
var r;
|
|
3863
3863
|
return (r = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && r.builderComponents ? {
|
|
3864
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !
|
|
3864
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !xo(s, n)))
|
|
3865
3865
|
} : {};
|
|
3866
|
-
},
|
|
3866
|
+
}, zs = (e, t) => {
|
|
3867
3867
|
var n;
|
|
3868
3868
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
3869
3869
|
builderBlock: t
|
|
3870
3870
|
} : {};
|
|
3871
|
-
},
|
|
3871
|
+
}, qs = (e, t) => {
|
|
3872
3872
|
var n;
|
|
3873
3873
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
3874
3874
|
builderContext: t
|
|
3875
3875
|
} : {};
|
|
3876
|
-
},
|
|
3876
|
+
}, Gs = (e) => e.toString(), _s = () => Promise.resolve().then(() => la).then((e) => e.default).catch((e) => {
|
|
3877
3877
|
throw console.error(
|
|
3878
3878
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3879
3879
|
e
|
|
3880
3880
|
), e;
|
|
3881
|
-
}),
|
|
3881
|
+
}), Js = () => import("./block-wrapper-9nBz9JZR.js").then((e) => e.default).catch((e) => {
|
|
3882
3882
|
throw console.error(
|
|
3883
3883
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3884
3884
|
e
|
|
3885
3885
|
), e;
|
|
3886
|
-
}),
|
|
3886
|
+
}), Xs = () => import("./component-ref-S9vJwuiq.js").then((e) => e.default).catch((e) => {
|
|
3887
3887
|
throw console.error(
|
|
3888
3888
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3889
3889
|
e
|
|
3890
3890
|
), e;
|
|
3891
|
-
}),
|
|
3891
|
+
}), Ys = () => import("./repeated-block-R_IWEkxl.js").then((e) => e.default).catch((e) => {
|
|
3892
3892
|
throw console.error(
|
|
3893
3893
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3894
3894
|
e
|
|
3895
3895
|
), e;
|
|
3896
|
-
}),
|
|
3896
|
+
}), Qs = () => import("./style-wrapper-sQRz1Tz9.js").then((e) => e.default).catch((e) => {
|
|
3897
3897
|
throw console.error(
|
|
3898
3898
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
3899
3899
|
e
|
|
3900
3900
|
), e;
|
|
3901
|
-
}),
|
|
3901
|
+
}), Zs = B({
|
|
3902
3902
|
name: "block",
|
|
3903
3903
|
components: {
|
|
3904
|
-
StyleWrapper: st(
|
|
3905
|
-
RepeatedBlock: st(
|
|
3906
|
-
ComponentRef: st(
|
|
3907
|
-
BlockWrapper: st(
|
|
3908
|
-
DynamicDiv: st(
|
|
3904
|
+
StyleWrapper: st(Qs),
|
|
3905
|
+
RepeatedBlock: st(Ys),
|
|
3906
|
+
ComponentRef: st(Xs),
|
|
3907
|
+
BlockWrapper: st(Js),
|
|
3908
|
+
DynamicDiv: st(_s)
|
|
3909
3909
|
},
|
|
3910
3910
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
3911
3911
|
data() {
|
|
@@ -3914,12 +3914,12 @@ const Io = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3914
3914
|
value: null,
|
|
3915
3915
|
update: !1
|
|
3916
3916
|
},
|
|
3917
|
-
generateKey:
|
|
3917
|
+
generateKey: Gs
|
|
3918
3918
|
};
|
|
3919
3919
|
},
|
|
3920
3920
|
mounted() {
|
|
3921
3921
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
3922
|
-
t && e &&
|
|
3922
|
+
t && e && Vs(
|
|
3923
3923
|
t.map((n) => ({
|
|
3924
3924
|
...n,
|
|
3925
3925
|
elementId: e
|
|
@@ -3930,14 +3930,14 @@ const Io = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3930
3930
|
},
|
|
3931
3931
|
computed: {
|
|
3932
3932
|
repeatItem() {
|
|
3933
|
-
return
|
|
3933
|
+
return Ms({
|
|
3934
3934
|
block: this.block,
|
|
3935
3935
|
context: this.context
|
|
3936
3936
|
});
|
|
3937
3937
|
},
|
|
3938
3938
|
processedBlock() {
|
|
3939
3939
|
var t;
|
|
3940
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
3940
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : ps({
|
|
3941
3941
|
block: this.block,
|
|
3942
3942
|
localState: this.context.localState,
|
|
3943
3943
|
rootState: this.context.rootState,
|
|
@@ -3946,7 +3946,7 @@ const Io = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3946
3946
|
});
|
|
3947
3947
|
},
|
|
3948
3948
|
blockComponent() {
|
|
3949
|
-
return
|
|
3949
|
+
return Fs({
|
|
3950
3950
|
block: this.processedBlock,
|
|
3951
3951
|
registeredComponents: this.registeredComponents,
|
|
3952
3952
|
model: this.context.model
|
|
@@ -3973,11 +3973,11 @@ const Io = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3973
3973
|
blockChildren: this.processedBlock.children ?? [],
|
|
3974
3974
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
3975
3975
|
componentOptions: {
|
|
3976
|
-
...
|
|
3977
|
-
...
|
|
3978
|
-
...
|
|
3979
|
-
...
|
|
3980
|
-
...
|
|
3976
|
+
...ns(this.processedBlock, this.context),
|
|
3977
|
+
...zs(this.blockComponent, this.processedBlock),
|
|
3978
|
+
...qs(this.blockComponent, this.context),
|
|
3979
|
+
...Hs(this.blockComponent, this.linkComponent),
|
|
3980
|
+
...Ks(
|
|
3981
3981
|
this.blockComponent,
|
|
3982
3982
|
this.registeredComponents,
|
|
3983
3983
|
this.context.model
|
|
@@ -3993,7 +3993,7 @@ const Io = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3993
3993
|
}
|
|
3994
3994
|
}
|
|
3995
3995
|
});
|
|
3996
|
-
function
|
|
3996
|
+
function ea(e, t, n, r, o, i) {
|
|
3997
3997
|
var b;
|
|
3998
3998
|
const s = W("StyleWrapper"), u = W("ComponentRef"), c = W("Block", !0), m = W("BlockWrapper"), y = W("RepeatedBlock");
|
|
3999
3999
|
return e.canShowBlock ? (v(), w(z, { key: 0 }, [
|
|
@@ -4003,10 +4003,10 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4003
4003
|
id: e.block.id
|
|
4004
4004
|
}, null, 8, ["block", "context", "id"]),
|
|
4005
4005
|
(b = e.blockComponent) != null && b.noWrap ? (v(), w(z, { key: 1 }, [
|
|
4006
|
-
e.repeatItem ? (v(!0), w(z, { key: 1 }, ve(e.repeatItem, (
|
|
4006
|
+
e.repeatItem ? (v(!0), w(z, { key: 1 }, ve(e.repeatItem, (h, S) => (v(), U(y, {
|
|
4007
4007
|
key: e.generateKey(S),
|
|
4008
|
-
repeatContext:
|
|
4009
|
-
block:
|
|
4008
|
+
repeatContext: h.context,
|
|
4009
|
+
block: h.block,
|
|
4010
4010
|
registeredComponents: e.registeredComponents,
|
|
4011
4011
|
linkComponent: e.linkComponent
|
|
4012
4012
|
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (v(), U(u, {
|
|
@@ -4022,10 +4022,10 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4022
4022
|
isInteractive: e.componentRefProps.isInteractive
|
|
4023
4023
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
4024
4024
|
], 64)) : (v(), w(z, { key: 0 }, [
|
|
4025
|
-
e.repeatItem ? (v(!0), w(z, { key: 1 }, ve(e.repeatItem, (
|
|
4025
|
+
e.repeatItem ? (v(!0), w(z, { key: 1 }, ve(e.repeatItem, (h, S) => (v(), U(y, {
|
|
4026
4026
|
key: e.generateKey(S),
|
|
4027
|
-
repeatContext:
|
|
4028
|
-
block:
|
|
4027
|
+
repeatContext: h.context,
|
|
4028
|
+
block: h.block,
|
|
4029
4029
|
registeredComponents: e.registeredComponents,
|
|
4030
4030
|
linkComponent: e.linkComponent
|
|
4031
4031
|
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (v(), U(m, {
|
|
@@ -4046,9 +4046,9 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4046
4046
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
4047
4047
|
isInteractive: e.componentRefProps.isInteractive
|
|
4048
4048
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
4049
|
-
(v(!0), w(z, null, ve(e.childrenWithoutParentComponent, (
|
|
4050
|
-
key:
|
|
4051
|
-
block:
|
|
4049
|
+
(v(!0), w(z, null, ve(e.childrenWithoutParentComponent, (h, S) => (v(), U(c, {
|
|
4050
|
+
key: h.id,
|
|
4051
|
+
block: h,
|
|
4052
4052
|
registeredComponents: e.registeredComponents,
|
|
4053
4053
|
linkComponent: e.linkComponent,
|
|
4054
4054
|
context: e.context
|
|
@@ -4059,10 +4059,10 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4059
4059
|
], 64))
|
|
4060
4060
|
], 64)) : F("", !0);
|
|
4061
4061
|
}
|
|
4062
|
-
const
|
|
4062
|
+
const Po = /* @__PURE__ */ j(Zs, [["render", ea]]), dc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4063
4063
|
__proto__: null,
|
|
4064
|
-
default:
|
|
4065
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4064
|
+
default: Po
|
|
4065
|
+
}, Symbol.toStringTag, { value: "Module" })), ta = B({
|
|
4066
4066
|
name: "builder-blocks-wrapper",
|
|
4067
4067
|
props: [
|
|
4068
4068
|
"blocks",
|
|
@@ -4132,7 +4132,7 @@ const Ro = /* @__PURE__ */ j(Ys, [["render", Qs]]), uc = /* @__PURE__ */ Object.
|
|
|
4132
4132
|
}
|
|
4133
4133
|
}
|
|
4134
4134
|
});
|
|
4135
|
-
function
|
|
4135
|
+
function na(e, t, n, r, o, i) {
|
|
4136
4136
|
return v(), U(dt(e.BlocksWrapper), q({
|
|
4137
4137
|
ref: "blocksWrapperRef",
|
|
4138
4138
|
class: e.className + " component-5vz8uirn7sc",
|
|
@@ -4149,9 +4149,9 @@ function ea(e, t, n, r, o, i) {
|
|
|
4149
4149
|
_: 3
|
|
4150
4150
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
4151
4151
|
}
|
|
4152
|
-
const
|
|
4152
|
+
const ra = /* @__PURE__ */ j(ta, [["render", na], ["__scopeId", "data-v-82fc93d6"]]), oa = B({
|
|
4153
4153
|
name: "builder-blocks",
|
|
4154
|
-
components: { BlocksWrapper:
|
|
4154
|
+
components: { BlocksWrapper: ra, Block: Po },
|
|
4155
4155
|
props: [
|
|
4156
4156
|
"blocks",
|
|
4157
4157
|
"parent",
|
|
@@ -4165,10 +4165,10 @@ const ta = /* @__PURE__ */ j(Zs, [["render", ea], ["__scopeId", "data-v-82fc93d6
|
|
|
4165
4165
|
],
|
|
4166
4166
|
inject: {
|
|
4167
4167
|
builderContext: vn.key,
|
|
4168
|
-
componentsContext:
|
|
4168
|
+
componentsContext: Xr.key
|
|
4169
4169
|
}
|
|
4170
4170
|
});
|
|
4171
|
-
function
|
|
4171
|
+
function ia(e, t, n, r, o, i) {
|
|
4172
4172
|
var c, m, y, b;
|
|
4173
4173
|
const s = W("Block"), u = W("BlocksWrapper");
|
|
4174
4174
|
return v(), U(u, {
|
|
@@ -4182,11 +4182,11 @@ function ra(e, t, n, r, o, i) {
|
|
|
4182
4182
|
}, {
|
|
4183
4183
|
default: me(() => [
|
|
4184
4184
|
pe(e.$slots, "default"),
|
|
4185
|
-
e.blocks ? (v(!0), w(z, { key: 0 }, ve(e.blocks, (
|
|
4185
|
+
e.blocks ? (v(!0), w(z, { key: 0 }, ve(e.blocks, (h, S) => {
|
|
4186
4186
|
var A;
|
|
4187
4187
|
return v(), U(s, {
|
|
4188
|
-
key:
|
|
4189
|
-
block:
|
|
4188
|
+
key: h.id,
|
|
4189
|
+
block: h,
|
|
4190
4190
|
linkComponent: e.linkComponent,
|
|
4191
4191
|
context: e.context || e.builderContext,
|
|
4192
4192
|
registeredComponents: e.registeredComponents || ((A = e.componentsContext) == null ? void 0 : A.registeredComponents)
|
|
@@ -4196,21 +4196,21 @@ function ra(e, t, n, r, o, i) {
|
|
|
4196
4196
|
_: 3
|
|
4197
4197
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
|
|
4198
4198
|
}
|
|
4199
|
-
const Ue = /* @__PURE__ */ j(
|
|
4199
|
+
const Ue = /* @__PURE__ */ j(oa, [["render", ia]]), sa = B({
|
|
4200
4200
|
name: "dynamic-div",
|
|
4201
4201
|
props: []
|
|
4202
4202
|
});
|
|
4203
|
-
function
|
|
4203
|
+
function aa(e, t, n, r, o, i) {
|
|
4204
4204
|
return v(), w("div", null, [
|
|
4205
4205
|
pe(e.$slots, "default")
|
|
4206
4206
|
]);
|
|
4207
4207
|
}
|
|
4208
|
-
const Ct = /* @__PURE__ */ j(
|
|
4208
|
+
const Ct = /* @__PURE__ */ j(sa, [["render", aa]]), la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4209
4209
|
__proto__: null,
|
|
4210
4210
|
default: Ct
|
|
4211
4211
|
}, Symbol.toStringTag, { value: "Module" })), Ht = B({
|
|
4212
4212
|
render() {
|
|
4213
|
-
return
|
|
4213
|
+
return Jr("style", {
|
|
4214
4214
|
innerHTML: this.styles,
|
|
4215
4215
|
"data-id": this.id,
|
|
4216
4216
|
nonce: this.nonce
|
|
@@ -4218,7 +4218,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4218
4218
|
},
|
|
4219
4219
|
name: "inlined-styles",
|
|
4220
4220
|
props: ["styles", "id", "nonce"]
|
|
4221
|
-
}),
|
|
4221
|
+
}), Oo = {
|
|
4222
4222
|
xsmall: {
|
|
4223
4223
|
min: 0,
|
|
4224
4224
|
default: 160,
|
|
@@ -4239,8 +4239,8 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4239
4239
|
default: 991,
|
|
4240
4240
|
max: 1200
|
|
4241
4241
|
}
|
|
4242
|
-
},
|
|
4243
|
-
const t =
|
|
4242
|
+
}, fc = (e, t = Oo) => `@media (max-width: ${t[e].max}px)`, ua = (e) => {
|
|
4243
|
+
const t = zn(Oo);
|
|
4244
4244
|
if (!e)
|
|
4245
4245
|
return t;
|
|
4246
4246
|
const {
|
|
@@ -4277,11 +4277,11 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4277
4277
|
min: u,
|
|
4278
4278
|
default: u + 1
|
|
4279
4279
|
}, t;
|
|
4280
|
-
},
|
|
4280
|
+
}, ca = (e) => `builder-columns ${e}-breakpoints`, pa = B({
|
|
4281
4281
|
name: "builder-columns",
|
|
4282
4282
|
components: {
|
|
4283
4283
|
InlinedStyles: Ht,
|
|
4284
|
-
DynamicRenderer:
|
|
4284
|
+
DynamicRenderer: xn,
|
|
4285
4285
|
Blocks: Ue,
|
|
4286
4286
|
DynamicDiv: Ct
|
|
4287
4287
|
},
|
|
@@ -4296,7 +4296,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4296
4296
|
"builderComponents"
|
|
4297
4297
|
],
|
|
4298
4298
|
data() {
|
|
4299
|
-
return { TARGET: G, getColumnsClass:
|
|
4299
|
+
return { TARGET: G, getColumnsClass: ca };
|
|
4300
4300
|
},
|
|
4301
4301
|
computed: {
|
|
4302
4302
|
gutterSize() {
|
|
@@ -4375,7 +4375,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4375
4375
|
},
|
|
4376
4376
|
getWidthForBreakpointSize(e) {
|
|
4377
4377
|
var n, r;
|
|
4378
|
-
return
|
|
4378
|
+
return ua(
|
|
4379
4379
|
((r = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : r.breakpoints) || {}
|
|
4380
4380
|
)[e].max;
|
|
4381
4381
|
},
|
|
@@ -4413,12 +4413,12 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4413
4413
|
href: e.link
|
|
4414
4414
|
} : {},
|
|
4415
4415
|
[Oe()]: "builder-column",
|
|
4416
|
-
style:
|
|
4416
|
+
style: $o(this.columnCssVars(t))
|
|
4417
4417
|
};
|
|
4418
4418
|
}
|
|
4419
4419
|
}
|
|
4420
4420
|
});
|
|
4421
|
-
function
|
|
4421
|
+
function da(e, t, n, r, o, i) {
|
|
4422
4422
|
var m;
|
|
4423
4423
|
const s = W("InlinedStyles"), u = W("Blocks"), c = W("DynamicRenderer");
|
|
4424
4424
|
return v(), w("div", q({
|
|
@@ -4454,32 +4454,32 @@ function ca(e, t, n, r, o, i) {
|
|
|
4454
4454
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
4455
4455
|
], 16);
|
|
4456
4456
|
}
|
|
4457
|
-
const
|
|
4457
|
+
const fa = /* @__PURE__ */ j(pa, [["render", da], ["__scopeId", "data-v-ab15749a"]]), ha = B({
|
|
4458
4458
|
name: "builder-fragment-component",
|
|
4459
4459
|
props: []
|
|
4460
4460
|
});
|
|
4461
|
-
function
|
|
4461
|
+
function ma(e, t, n, r, o, i) {
|
|
4462
4462
|
return v(), w("span", null, [
|
|
4463
4463
|
pe(e.$slots, "default")
|
|
4464
4464
|
]);
|
|
4465
4465
|
}
|
|
4466
|
-
const
|
|
4467
|
-
function
|
|
4466
|
+
const ga = /* @__PURE__ */ j(ha, [["render", ma]]);
|
|
4467
|
+
function Kr(e) {
|
|
4468
4468
|
return e.replace(/http(s)?:/, "");
|
|
4469
4469
|
}
|
|
4470
|
-
function
|
|
4470
|
+
function ya(e = "", t, n) {
|
|
4471
4471
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
4472
4472
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
4473
4473
|
}
|
|
4474
|
-
function
|
|
4474
|
+
function va(e, t) {
|
|
4475
4475
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
4476
4476
|
return e;
|
|
4477
4477
|
if (t === "master")
|
|
4478
|
-
return
|
|
4478
|
+
return Kr(e);
|
|
4479
4479
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
4480
4480
|
if (n) {
|
|
4481
4481
|
const r = e.split(n[0]), o = n[3], i = t.match("x") ? t : `${t}x`;
|
|
4482
|
-
return
|
|
4482
|
+
return Kr(`${r[0]}_${i}${o}`);
|
|
4483
4483
|
}
|
|
4484
4484
|
return null;
|
|
4485
4485
|
}
|
|
@@ -4490,11 +4490,11 @@ function Ot(e) {
|
|
|
4490
4490
|
if (e.match(/builder\.io/)) {
|
|
4491
4491
|
let n = e;
|
|
4492
4492
|
const r = Number(e.split("?width=")[1]);
|
|
4493
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
4493
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${ya(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
4494
4494
|
}
|
|
4495
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
4495
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [va(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
4496
4496
|
}
|
|
4497
|
-
const
|
|
4497
|
+
const ba = B({
|
|
4498
4498
|
name: "builder-image",
|
|
4499
4499
|
props: [
|
|
4500
4500
|
"lazy",
|
|
@@ -4548,11 +4548,11 @@ const ya = B({
|
|
|
4548
4548
|
return this.aspectRatio ? e : void 0;
|
|
4549
4549
|
}
|
|
4550
4550
|
}
|
|
4551
|
-
}),
|
|
4551
|
+
}), Sa = ["srcset", "sizes"], ka = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Ca = {
|
|
4552
4552
|
key: 2,
|
|
4553
4553
|
class: "div-t43jfuqn6g-2"
|
|
4554
4554
|
};
|
|
4555
|
-
function
|
|
4555
|
+
function wa(e, t, n, r, o, i) {
|
|
4556
4556
|
var s, u, c, m, y, b;
|
|
4557
4557
|
return v(), w(z, null, [
|
|
4558
4558
|
Ge("picture", null, [
|
|
@@ -4561,7 +4561,7 @@ function ka(e, t, n, r, o, i) {
|
|
|
4561
4561
|
type: "image/webp",
|
|
4562
4562
|
srcset: e.webpSrcSet,
|
|
4563
4563
|
sizes: e.sizesToUse
|
|
4564
|
-
}, null, 8,
|
|
4564
|
+
}, null, 8, Sa)) : F("", !0),
|
|
4565
4565
|
Ge("img", {
|
|
4566
4566
|
loading: e.highPriority ? "eager" : "lazy",
|
|
4567
4567
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
@@ -4579,7 +4579,7 @@ function ka(e, t, n, r, o, i) {
|
|
|
4579
4579
|
src: e.image,
|
|
4580
4580
|
srcset: e.srcSetToUse,
|
|
4581
4581
|
sizes: e.sizesToUse
|
|
4582
|
-
}, null, 14,
|
|
4582
|
+
}, null, 14, ka)
|
|
4583
4583
|
]),
|
|
4584
4584
|
e.aspectRatio && !((u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent) ? (v(), w("div", {
|
|
4585
4585
|
key: 0,
|
|
@@ -4589,19 +4589,19 @@ function ka(e, t, n, r, o, i) {
|
|
|
4589
4589
|
})
|
|
4590
4590
|
}, null, 4)) : F("", !0),
|
|
4591
4591
|
(m = (c = e.builderBlock) == null ? void 0 : c.children) != null && m.length && e.fitContent ? pe(e.$slots, "default", { key: 1 }, void 0, !0) : F("", !0),
|
|
4592
|
-
!e.fitContent && ((b = (y = e.builderBlock) == null ? void 0 : y.children) != null && b.length) ? (v(), w("div",
|
|
4592
|
+
!e.fitContent && ((b = (y = e.builderBlock) == null ? void 0 : y.children) != null && b.length) ? (v(), w("div", Ca, [
|
|
4593
4593
|
pe(e.$slots, "default", {}, void 0, !0)
|
|
4594
4594
|
])) : F("", !0)
|
|
4595
4595
|
], 64);
|
|
4596
4596
|
}
|
|
4597
|
-
const
|
|
4597
|
+
const Ta = /* @__PURE__ */ j(ba, [["render", wa], ["__scopeId", "data-v-17b592cd"]]), Ea = B({
|
|
4598
4598
|
name: "builder-section-component",
|
|
4599
4599
|
props: ["attributes", "maxWidth"],
|
|
4600
4600
|
data() {
|
|
4601
4601
|
return { filterAttrs: de };
|
|
4602
4602
|
}
|
|
4603
4603
|
});
|
|
4604
|
-
function
|
|
4604
|
+
function Ia(e, t, n, r, o, i) {
|
|
4605
4605
|
return v(), w("section", q({
|
|
4606
4606
|
style: {
|
|
4607
4607
|
width: "100%",
|
|
@@ -4619,8 +4619,8 @@ function Ta(e, t, n, r, o, i) {
|
|
|
4619
4619
|
pe(e.$slots, "default")
|
|
4620
4620
|
], 16);
|
|
4621
4621
|
}
|
|
4622
|
-
const
|
|
4623
|
-
function
|
|
4622
|
+
const Ra = /* @__PURE__ */ j(Ea, [["render", Ia]]);
|
|
4623
|
+
function Aa(e, t, n, r) {
|
|
4624
4624
|
function o(m) {
|
|
4625
4625
|
return typeof m == "string";
|
|
4626
4626
|
}
|
|
@@ -4629,21 +4629,21 @@ function Ia(e, t, n, r) {
|
|
|
4629
4629
|
}
|
|
4630
4630
|
function s(m, y) {
|
|
4631
4631
|
return (() => {
|
|
4632
|
-
const
|
|
4632
|
+
const h = y.property, S = y.operator;
|
|
4633
4633
|
let A = y.value;
|
|
4634
|
-
if (y && y.property === "urlPath" && y.value && typeof y.value == "string" && y.value !== "/" && y.value.endsWith("/") && (A = y.value.slice(0, -1)), !(
|
|
4634
|
+
if (y && y.property === "urlPath" && y.value && typeof y.value == "string" && y.value !== "/" && y.value.endsWith("/") && (A = y.value.slice(0, -1)), !(h && S))
|
|
4635
4635
|
return !0;
|
|
4636
4636
|
if (Array.isArray(A))
|
|
4637
4637
|
return S === "isNot" ? A.every((H) => s(m, {
|
|
4638
|
-
property:
|
|
4638
|
+
property: h,
|
|
4639
4639
|
operator: S,
|
|
4640
4640
|
value: H
|
|
4641
4641
|
})) : !!A.find((H) => s(m, {
|
|
4642
|
-
property:
|
|
4642
|
+
property: h,
|
|
4643
4643
|
operator: S,
|
|
4644
4644
|
value: H
|
|
4645
4645
|
}));
|
|
4646
|
-
const $ = m[
|
|
4646
|
+
const $ = m[h];
|
|
4647
4647
|
if (Array.isArray($))
|
|
4648
4648
|
return $.includes(A);
|
|
4649
4649
|
switch (S) {
|
|
@@ -4677,7 +4677,7 @@ function Ia(e, t, n, r) {
|
|
|
4677
4677
|
}, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
4678
4678
|
return u.startDate && new Date(u.startDate) > c || u.endDate && new Date(u.endDate) < c ? !1 : !u.query || !u.query.length ? !0 : u.query.every((m) => s(e, m));
|
|
4679
4679
|
}
|
|
4680
|
-
const
|
|
4680
|
+
const $a = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
4681
4681
|
if (!navigator.cookieEnabled) {
|
|
4682
4682
|
return;
|
|
4683
4683
|
}
|
|
@@ -4722,7 +4722,7 @@ const Ra = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
4722
4722
|
thisScript.remove();
|
|
4723
4723
|
}
|
|
4724
4724
|
}
|
|
4725
|
-
}`,
|
|
4725
|
+
}`, xa = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
4726
4726
|
function isString(val) {
|
|
4727
4727
|
return typeof val === 'string';
|
|
4728
4728
|
}
|
|
@@ -4800,7 +4800,7 @@ const Ra = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
4800
4800
|
return item.query.every(filter => {
|
|
4801
4801
|
return objectMatchesQuery(userAttributes, filter);
|
|
4802
4802
|
});
|
|
4803
|
-
}`,
|
|
4803
|
+
}`, Pa = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
4804
4804
|
function getCookie(name) {
|
|
4805
4805
|
const nameEQ = name + '=';
|
|
4806
4806
|
const ca = document.cookie.split(';');
|
|
@@ -4838,11 +4838,11 @@ const Ra = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
4838
4838
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
4839
4839
|
}
|
|
4840
4840
|
}
|
|
4841
|
-
}`, Nt = "default",
|
|
4842
|
-
function
|
|
4843
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
4841
|
+
}`, Nt = "default", zr = "filterWithCustomTargeting", En = "builderIoPersonalization", In = "updateVisibilityStylesScript", Oa = "PersonalizationContainer", No = ["react", "vue", "svelte", "qwik"], Bo = ["vue", "svelte", "qwik"];
|
|
4842
|
+
function Na(e, t) {
|
|
4843
|
+
return !(e && e.length > 0) || !t ? !1 : Bo.includes(G) ? !0 : !M();
|
|
4844
4844
|
}
|
|
4845
|
-
function
|
|
4845
|
+
function Ba({
|
|
4846
4846
|
variants: e,
|
|
4847
4847
|
previewingIndex: t,
|
|
4848
4848
|
isHydrated: n,
|
|
@@ -4880,11 +4880,22 @@ function Oa({
|
|
|
4880
4880
|
}
|
|
4881
4881
|
return i;
|
|
4882
4882
|
}
|
|
4883
|
-
const
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4883
|
+
const Rn = (e) => {
|
|
4884
|
+
var t;
|
|
4885
|
+
return Array.isArray(e) ? e.some(Rn) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === Oa ? !0 : Object.values(e).some(Rn);
|
|
4886
|
+
}, ja = (e) => Rn(e), Va = () => `
|
|
4887
|
+
(function() {
|
|
4888
|
+
if (!window.${zr}) {
|
|
4889
|
+
window.${zr} = ${xa};
|
|
4890
|
+
}
|
|
4891
|
+
if (!window.${En}) {
|
|
4892
|
+
window.${En} = ${$a};
|
|
4893
|
+
}
|
|
4894
|
+
if (!window.${In}) {
|
|
4895
|
+
window.${In} = ${Pa};
|
|
4896
|
+
}
|
|
4897
|
+
})();
|
|
4898
|
+
`, jo = G === "react", Da = (e, t, n) => `window.${En}(${JSON.stringify(e)}, "${t}", ${jo}${n ? `, "${n}"` : ""})`, Ua = (e, t, n) => `window.${In}(${JSON.stringify(e)}, "${t}", ${jo}${n ? `, "${n}"` : ""})`, hn = {
|
|
4888
4899
|
"@type": "@builder.io/sdk:Element",
|
|
4889
4900
|
layerName: "Accordion item title",
|
|
4890
4901
|
responsiveStyles: {
|
|
@@ -4944,7 +4955,7 @@ const Na = () => `
|
|
|
4944
4955
|
}
|
|
4945
4956
|
}
|
|
4946
4957
|
}]
|
|
4947
|
-
},
|
|
4958
|
+
}, Wa = {
|
|
4948
4959
|
name: "Builder:Accordion",
|
|
4949
4960
|
canHaveChildren: !0,
|
|
4950
4961
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -4961,7 +4972,7 @@ const Na = () => `
|
|
|
4961
4972
|
name: "title",
|
|
4962
4973
|
type: "uiBlocks",
|
|
4963
4974
|
hideFromUI: !0,
|
|
4964
|
-
defaultValue: [
|
|
4975
|
+
defaultValue: [hn]
|
|
4965
4976
|
}, {
|
|
4966
4977
|
name: "detail",
|
|
4967
4978
|
type: "uiBlocks",
|
|
@@ -4969,10 +4980,10 @@ const Na = () => `
|
|
|
4969
4980
|
defaultValue: [mn]
|
|
4970
4981
|
}],
|
|
4971
4982
|
defaultValue: [{
|
|
4972
|
-
title: [
|
|
4983
|
+
title: [hn],
|
|
4973
4984
|
detail: [mn]
|
|
4974
4985
|
}, {
|
|
4975
|
-
title: [
|
|
4986
|
+
title: [hn],
|
|
4976
4987
|
detail: [mn]
|
|
4977
4988
|
}],
|
|
4978
4989
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
@@ -5008,7 +5019,7 @@ const Na = () => `
|
|
|
5008
5019
|
builderComponents: !0,
|
|
5009
5020
|
builderLinkComponent: !0
|
|
5010
5021
|
}
|
|
5011
|
-
},
|
|
5022
|
+
}, La = (e) => e.toString(), Fa = B({
|
|
5012
5023
|
name: "builder-accordion",
|
|
5013
5024
|
components: { Blocks: Ue },
|
|
5014
5025
|
props: [
|
|
@@ -5022,7 +5033,7 @@ const Na = () => `
|
|
|
5022
5033
|
"builderLinkComponent"
|
|
5023
5034
|
],
|
|
5024
5035
|
data() {
|
|
5025
|
-
return { open: [], convertOrderNumberToString:
|
|
5036
|
+
return { open: [], convertOrderNumberToString: La };
|
|
5026
5037
|
},
|
|
5027
5038
|
computed: {
|
|
5028
5039
|
onlyOneAtATime() {
|
|
@@ -5103,8 +5114,8 @@ const Na = () => `
|
|
|
5103
5114
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
5104
5115
|
}
|
|
5105
5116
|
}
|
|
5106
|
-
}),
|
|
5107
|
-
function
|
|
5117
|
+
}), Ma = ["data-index", "onClick"];
|
|
5118
|
+
function Ha(e, t, n, r, o, i) {
|
|
5108
5119
|
const s = W("Blocks");
|
|
5109
5120
|
return v(), w("div", {
|
|
5110
5121
|
class: "builder-accordion",
|
|
@@ -5131,7 +5142,7 @@ function La(e, t, n, r, o, i) {
|
|
|
5131
5142
|
registeredComponents: e.builderComponents,
|
|
5132
5143
|
linkComponent: e.builderLinkComponent
|
|
5133
5144
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
5134
|
-
], 14,
|
|
5145
|
+
], 14, Ma),
|
|
5135
5146
|
e.open.includes(c) ? (v(), w("div", {
|
|
5136
5147
|
key: 0,
|
|
5137
5148
|
class: gt(e.getAccordionDetailClassName(c)),
|
|
@@ -5149,7 +5160,7 @@ function La(e, t, n, r, o, i) {
|
|
|
5149
5160
|
], 64))), 128))
|
|
5150
5161
|
], 4);
|
|
5151
5162
|
}
|
|
5152
|
-
const
|
|
5163
|
+
const Ka = /* @__PURE__ */ j(Fa, [["render", Ha]]), za = {
|
|
5153
5164
|
name: "Core:Button",
|
|
5154
5165
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
5155
5166
|
defaultStyles: {
|
|
@@ -5185,7 +5196,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5185
5196
|
shouldReceiveBuilderProps: {
|
|
5186
5197
|
builderLinkComponent: !0
|
|
5187
5198
|
}
|
|
5188
|
-
},
|
|
5199
|
+
}, qa = {
|
|
5189
5200
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
5190
5201
|
name: "Columns",
|
|
5191
5202
|
isRSC: !0,
|
|
@@ -5392,13 +5403,13 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5392
5403
|
builderComponents: !0,
|
|
5393
5404
|
builderLinkComponent: !0
|
|
5394
5405
|
}
|
|
5395
|
-
},
|
|
5406
|
+
}, Ga = {
|
|
5396
5407
|
name: "Fragment",
|
|
5397
5408
|
static: !0,
|
|
5398
5409
|
hidden: !0,
|
|
5399
5410
|
canHaveChildren: !0,
|
|
5400
5411
|
noWrap: !0
|
|
5401
|
-
},
|
|
5412
|
+
}, Yn = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], _a = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Ja = {
|
|
5402
5413
|
name: "Image",
|
|
5403
5414
|
static: !0,
|
|
5404
5415
|
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",
|
|
@@ -5413,7 +5424,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5413
5424
|
name: "image",
|
|
5414
5425
|
type: "file",
|
|
5415
5426
|
bubble: !0,
|
|
5416
|
-
allowedFileTypes:
|
|
5427
|
+
allowedFileTypes: Yn,
|
|
5417
5428
|
required: !0,
|
|
5418
5429
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
5419
5430
|
onChange: (e) => {
|
|
@@ -5424,8 +5435,8 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5424
5435
|
let b = !1;
|
|
5425
5436
|
y.onload = () => {
|
|
5426
5437
|
b = !0, c(y);
|
|
5427
|
-
}, y.addEventListener("error", (
|
|
5428
|
-
console.warn("Image load failed",
|
|
5438
|
+
}, y.addEventListener("error", (h) => {
|
|
5439
|
+
console.warn("Image load failed", h.error), m(h.error);
|
|
5429
5440
|
}), y.src = s, setTimeout(() => {
|
|
5430
5441
|
b || m(new Error("Image load timed out"));
|
|
5431
5442
|
}, u);
|
|
@@ -5511,7 +5522,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5511
5522
|
shouldReceiveBuilderProps: {
|
|
5512
5523
|
builderBlock: !0
|
|
5513
5524
|
}
|
|
5514
|
-
},
|
|
5525
|
+
}, Xa = {
|
|
5515
5526
|
name: "PersonalizationContainer",
|
|
5516
5527
|
shouldReceiveBuilderProps: {
|
|
5517
5528
|
builderBlock: !0,
|
|
@@ -5547,9 +5558,9 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5547
5558
|
defaultValue: []
|
|
5548
5559
|
}]
|
|
5549
5560
|
}]
|
|
5550
|
-
},
|
|
5561
|
+
}, Qn = B({
|
|
5551
5562
|
render() {
|
|
5552
|
-
return
|
|
5563
|
+
return Jr("script", {
|
|
5553
5564
|
innerHTML: this.scriptStr,
|
|
5554
5565
|
"data-id": this.id,
|
|
5555
5566
|
nonce: this.nonce
|
|
@@ -5557,12 +5568,12 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5557
5568
|
},
|
|
5558
5569
|
name: "inlined-script",
|
|
5559
5570
|
props: ["scriptStr", "id", "nonce"]
|
|
5560
|
-
}),
|
|
5571
|
+
}), Ya = B({
|
|
5561
5572
|
name: "builder-personalization-container",
|
|
5562
5573
|
components: {
|
|
5563
5574
|
Blocks: Ue,
|
|
5564
5575
|
InlinedStyles: Ht,
|
|
5565
|
-
InlinedScript:
|
|
5576
|
+
InlinedScript: Qn
|
|
5566
5577
|
},
|
|
5567
5578
|
props: [
|
|
5568
5579
|
"builderContext",
|
|
@@ -5576,25 +5587,25 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5576
5587
|
var e, t, n, r, o, i, s;
|
|
5577
5588
|
return {
|
|
5578
5589
|
userAttributes: Ut.getUserAttributes(),
|
|
5579
|
-
scriptStr:
|
|
5590
|
+
scriptStr: Da(
|
|
5580
5591
|
this.variants,
|
|
5581
5592
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
5582
5593
|
(n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
|
|
5583
5594
|
),
|
|
5584
|
-
updateVisibilityStylesScript:
|
|
5595
|
+
updateVisibilityStylesScript: Ua(
|
|
5585
5596
|
this.variants,
|
|
5586
5597
|
((r = this.builderBlock) == null ? void 0 : r.id) || "none",
|
|
5587
5598
|
(i = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : i.locale
|
|
5588
5599
|
),
|
|
5589
5600
|
unsubscribers: [],
|
|
5590
|
-
shouldRenderVariants:
|
|
5601
|
+
shouldRenderVariants: Na(
|
|
5591
5602
|
this.variants,
|
|
5592
5603
|
Xe((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
5593
5604
|
),
|
|
5594
5605
|
shouldResetVariants: !1,
|
|
5595
5606
|
TARGET: G,
|
|
5596
5607
|
DEFAULT_INDEX: Nt,
|
|
5597
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
5608
|
+
SDKS_REQUIRING_RESET_APPROACH: Bo
|
|
5598
5609
|
};
|
|
5599
5610
|
},
|
|
5600
5611
|
mounted() {
|
|
@@ -5608,7 +5619,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5608
5619
|
fireImmediately: G === "qwik"
|
|
5609
5620
|
}
|
|
5610
5621
|
);
|
|
5611
|
-
if (!(oe() ||
|
|
5622
|
+
if (!(oe() || qn())) {
|
|
5612
5623
|
const n = this.filteredVariants[0];
|
|
5613
5624
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
5614
5625
|
new CustomEvent("builder.variantLoaded", {
|
|
@@ -5649,7 +5660,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5649
5660
|
filteredVariants() {
|
|
5650
5661
|
return (this.variants || []).filter((e) => {
|
|
5651
5662
|
var t, n, r, o;
|
|
5652
|
-
return
|
|
5663
|
+
return Aa(
|
|
5653
5664
|
{
|
|
5654
5665
|
...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
|
|
5655
5666
|
locale: (o = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : o.locale
|
|
@@ -5664,7 +5675,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5664
5675
|
},
|
|
5665
5676
|
blocksToRender() {
|
|
5666
5677
|
var e;
|
|
5667
|
-
return
|
|
5678
|
+
return Ba({
|
|
5668
5679
|
variants: this.variants,
|
|
5669
5680
|
fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
|
|
5670
5681
|
isHydrated: this.shouldResetVariants,
|
|
@@ -5682,8 +5693,8 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5682
5693
|
}
|
|
5683
5694
|
}
|
|
5684
5695
|
});
|
|
5685
|
-
function
|
|
5686
|
-
var m, y, b,
|
|
5696
|
+
function Qa(e, t, n, r, o, i) {
|
|
5697
|
+
var m, y, b, h, S, A, $, H, te, E;
|
|
5687
5698
|
const s = W("Blocks"), u = W("InlinedStyles"), c = W("InlinedScript");
|
|
5688
5699
|
return v(), w("div", q({ ref: "rootRef" }, e.attrs), [
|
|
5689
5700
|
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (v(), U(s, {
|
|
@@ -5701,7 +5712,7 @@ function Ja(e, t, n, r, o, i) {
|
|
|
5701
5712
|
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (v(), w(z, { key: 1 }, [
|
|
5702
5713
|
e.shouldRenderVariants ? (v(), w(z, { key: 0 }, [
|
|
5703
5714
|
ee(u, {
|
|
5704
|
-
nonce: ((
|
|
5715
|
+
nonce: ((h = e.builderContext) == null ? void 0 : h.nonce) || "",
|
|
5705
5716
|
styles: e.hideVariantsStyleString,
|
|
5706
5717
|
id: `variants-styles-${(S = e.builderBlock) == null ? void 0 : S.id}`
|
|
5707
5718
|
}, null, 8, ["nonce", "styles", "id"]),
|
|
@@ -5767,7 +5778,7 @@ function Ja(e, t, n, r, o, i) {
|
|
|
5767
5778
|
], 64)) : F("", !0)
|
|
5768
5779
|
], 16);
|
|
5769
5780
|
}
|
|
5770
|
-
const
|
|
5781
|
+
const Za = /* @__PURE__ */ j(Ya, [["render", Qa]]), el = {
|
|
5771
5782
|
name: "Core:Section",
|
|
5772
5783
|
static: !0,
|
|
5773
5784
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -5806,7 +5817,7 @@ const Xa = /* @__PURE__ */ j(_a, [["render", Ja]]), Ya = {
|
|
|
5806
5817
|
}
|
|
5807
5818
|
}
|
|
5808
5819
|
}]
|
|
5809
|
-
},
|
|
5820
|
+
}, tl = {
|
|
5810
5821
|
name: "Slot",
|
|
5811
5822
|
isRSC: !0,
|
|
5812
5823
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -5823,12 +5834,12 @@ const Xa = /* @__PURE__ */ j(_a, [["render", Ja]]), Ya = {
|
|
|
5823
5834
|
builderContext: !0,
|
|
5824
5835
|
builderComponents: !0
|
|
5825
5836
|
}
|
|
5826
|
-
},
|
|
5837
|
+
}, nl = B({
|
|
5827
5838
|
name: "builder-slot",
|
|
5828
5839
|
components: { Blocks: Ue },
|
|
5829
5840
|
props: ["builderContext", "name", "builderComponents"]
|
|
5830
5841
|
});
|
|
5831
|
-
function
|
|
5842
|
+
function rl(e, t, n, r, o, i) {
|
|
5832
5843
|
var u, c, m;
|
|
5833
5844
|
const s = W("Blocks");
|
|
5834
5845
|
return v(), w("div", q(
|
|
@@ -5848,7 +5859,7 @@ function el(e, t, n, r, o, i) {
|
|
|
5848
5859
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
5849
5860
|
], 16);
|
|
5850
5861
|
}
|
|
5851
|
-
const
|
|
5862
|
+
const ol = /* @__PURE__ */ j(nl, [["render", rl]]), il = {
|
|
5852
5863
|
name: "Symbol",
|
|
5853
5864
|
noWrap: !0,
|
|
5854
5865
|
static: !0,
|
|
@@ -5925,7 +5936,7 @@ const tl = /* @__PURE__ */ j(Za, [["render", el]]), nl = {
|
|
|
5925
5936
|
text: "New tab content "
|
|
5926
5937
|
}
|
|
5927
5938
|
}
|
|
5928
|
-
},
|
|
5939
|
+
}, sl = {
|
|
5929
5940
|
name: "Builder: Tabs",
|
|
5930
5941
|
inputs: [{
|
|
5931
5942
|
name: "tabs",
|
|
@@ -6028,7 +6039,7 @@ const tl = /* @__PURE__ */ j(Za, [["render", el]]), nl = {
|
|
|
6028
6039
|
builderComponents: !0,
|
|
6029
6040
|
builderLinkComponent: !0
|
|
6030
6041
|
}
|
|
6031
|
-
},
|
|
6042
|
+
}, al = B({
|
|
6032
6043
|
name: "builder-tabs",
|
|
6033
6044
|
components: { Blocks: Ue },
|
|
6034
6045
|
props: [
|
|
@@ -6056,8 +6067,8 @@ const tl = /* @__PURE__ */ j(Za, [["render", el]]), nl = {
|
|
|
6056
6067
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
6057
6068
|
}
|
|
6058
6069
|
}
|
|
6059
|
-
}),
|
|
6060
|
-
function
|
|
6070
|
+
}), ll = ["onClick"], ul = { key: 0 };
|
|
6071
|
+
function cl(e, t, n, r, o, i) {
|
|
6061
6072
|
const s = W("Blocks");
|
|
6062
6073
|
return v(), w("div", null, [
|
|
6063
6074
|
Ge("div", {
|
|
@@ -6083,9 +6094,9 @@ function al(e, t, n, r, o, i) {
|
|
|
6083
6094
|
registeredComponents: e.builderComponents,
|
|
6084
6095
|
linkComponent: e.builderLinkComponent
|
|
6085
6096
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
6086
|
-
], 14,
|
|
6097
|
+
], 14, ll))), 128))
|
|
6087
6098
|
], 4),
|
|
6088
|
-
e.activeTabContent(e.activeTab) ? (v(), w("div",
|
|
6099
|
+
e.activeTabContent(e.activeTab) ? (v(), w("div", ul, [
|
|
6089
6100
|
ee(s, {
|
|
6090
6101
|
parent: e.builderBlock.id,
|
|
6091
6102
|
path: `tabs.${e.activeTab}.content`,
|
|
@@ -6097,7 +6108,7 @@ function al(e, t, n, r, o, i) {
|
|
|
6097
6108
|
])) : F("", !0)
|
|
6098
6109
|
]);
|
|
6099
6110
|
}
|
|
6100
|
-
const
|
|
6111
|
+
const pl = /* @__PURE__ */ j(al, [["render", cl]]), dl = {
|
|
6101
6112
|
shouldReceiveBuilderProps: {},
|
|
6102
6113
|
name: "Text",
|
|
6103
6114
|
static: !0,
|
|
@@ -6115,11 +6126,11 @@ const ll = /* @__PURE__ */ j(ol, [["render", al]]), ul = {
|
|
|
6115
6126
|
height: "auto",
|
|
6116
6127
|
textAlign: "center"
|
|
6117
6128
|
}
|
|
6118
|
-
},
|
|
6129
|
+
}, fl = B({
|
|
6119
6130
|
name: "builder-text",
|
|
6120
6131
|
props: ["text"]
|
|
6121
|
-
}),
|
|
6122
|
-
function
|
|
6132
|
+
}), hl = ["innerHTML"];
|
|
6133
|
+
function ml(e, t, n, r, o, i) {
|
|
6123
6134
|
var s;
|
|
6124
6135
|
return v(), w("div", {
|
|
6125
6136
|
class: "builder-text",
|
|
@@ -6127,9 +6138,9 @@ function dl(e, t, n, r, o, i) {
|
|
|
6127
6138
|
style: {
|
|
6128
6139
|
outline: "none"
|
|
6129
6140
|
}
|
|
6130
|
-
}, null, 8,
|
|
6141
|
+
}, null, 8, hl);
|
|
6131
6142
|
}
|
|
6132
|
-
const
|
|
6143
|
+
const gl = /* @__PURE__ */ j(fl, [["render", ml]]), yl = {
|
|
6133
6144
|
name: "Custom Code",
|
|
6134
6145
|
static: !0,
|
|
6135
6146
|
requiredPermissions: ["editCode"],
|
|
@@ -6151,7 +6162,7 @@ const hl = /* @__PURE__ */ j(cl, [["render", dl]]), fl = {
|
|
|
6151
6162
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
6152
6163
|
advanced: !0
|
|
6153
6164
|
}]
|
|
6154
|
-
},
|
|
6165
|
+
}, vl = B({
|
|
6155
6166
|
name: "builder-custom-code",
|
|
6156
6167
|
props: ["code", "replaceNodes"],
|
|
6157
6168
|
data() {
|
|
@@ -6210,15 +6221,15 @@ const hl = /* @__PURE__ */ j(cl, [["render", dl]]), fl = {
|
|
|
6210
6221
|
}
|
|
6211
6222
|
}
|
|
6212
6223
|
}
|
|
6213
|
-
}),
|
|
6214
|
-
function
|
|
6224
|
+
}), bl = ["innerHTML"];
|
|
6225
|
+
function Sl(e, t, n, r, o, i) {
|
|
6215
6226
|
return v(), w("div", {
|
|
6216
6227
|
ref: "elementRef",
|
|
6217
6228
|
class: gt("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
6218
6229
|
innerHTML: e.code
|
|
6219
|
-
}, null, 10,
|
|
6230
|
+
}, null, 10, bl);
|
|
6220
6231
|
}
|
|
6221
|
-
const
|
|
6232
|
+
const kl = /* @__PURE__ */ j(vl, [["render", Sl]]), Cl = {
|
|
6222
6233
|
name: "Embed",
|
|
6223
6234
|
static: !0,
|
|
6224
6235
|
inputs: [{
|
|
@@ -6233,7 +6244,7 @@ const vl = /* @__PURE__ */ j(ml, [["render", yl]]), bl = {
|
|
|
6233
6244
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
6234
6245
|
hideFromUI: !0
|
|
6235
6246
|
}]
|
|
6236
|
-
},
|
|
6247
|
+
}, wl = ["text/javascript", "application/javascript", "application/ecmascript"], Tl = (e) => wl.includes(e.type), El = B({
|
|
6237
6248
|
name: "builder-embed",
|
|
6238
6249
|
props: ["content"],
|
|
6239
6250
|
data() {
|
|
@@ -6266,7 +6277,7 @@ const vl = /* @__PURE__ */ j(ml, [["render", yl]]), bl = {
|
|
|
6266
6277
|
this.scriptsInserted.push(n.src);
|
|
6267
6278
|
const r = document.createElement("script");
|
|
6268
6279
|
r.async = !0, r.src = n.src, document.head.appendChild(r);
|
|
6269
|
-
} else if (
|
|
6280
|
+
} else if (Tl(n) && !this.scriptsRun.includes(n.innerText))
|
|
6270
6281
|
try {
|
|
6271
6282
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
6272
6283
|
} catch (r) {
|
|
@@ -6275,15 +6286,15 @@ const vl = /* @__PURE__ */ j(ml, [["render", yl]]), bl = {
|
|
|
6275
6286
|
}
|
|
6276
6287
|
}
|
|
6277
6288
|
}
|
|
6278
|
-
}),
|
|
6279
|
-
function
|
|
6289
|
+
}), Il = ["innerHTML"];
|
|
6290
|
+
function Rl(e, t, n, r, o, i) {
|
|
6280
6291
|
return v(), w("div", {
|
|
6281
6292
|
class: "builder-embed",
|
|
6282
6293
|
ref: "elem",
|
|
6283
6294
|
innerHTML: e.content
|
|
6284
|
-
}, null, 8,
|
|
6295
|
+
}, null, 8, Il);
|
|
6285
6296
|
}
|
|
6286
|
-
const
|
|
6297
|
+
const Al = /* @__PURE__ */ j(El, [["render", Rl]]), $l = {
|
|
6287
6298
|
name: "Form:Form",
|
|
6288
6299
|
// editableTags: ['builder-form-error']
|
|
6289
6300
|
defaults: {
|
|
@@ -6520,10 +6531,10 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6520
6531
|
builderComponents: !0,
|
|
6521
6532
|
builderLinkComponent: !0
|
|
6522
6533
|
}
|
|
6523
|
-
},
|
|
6534
|
+
}, xl = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Pl = () => {
|
|
6524
6535
|
const e = process.env.NODE_ENV || "production";
|
|
6525
|
-
return
|
|
6526
|
-
},
|
|
6536
|
+
return xl.includes(e) ? e : "production";
|
|
6537
|
+
}, Ol = B({
|
|
6527
6538
|
name: "builder-form-component",
|
|
6528
6539
|
components: { Blocks: Ue },
|
|
6529
6540
|
props: [
|
|
@@ -6582,42 +6593,42 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6582
6593
|
e.preventDefault();
|
|
6583
6594
|
const r = e.currentTarget || e.target, o = this.customHeaders || {};
|
|
6584
6595
|
let i;
|
|
6585
|
-
const s = new FormData(r), u = Array.from(r.querySelectorAll("input,select,textarea")).filter((
|
|
6586
|
-
(
|
|
6587
|
-
).map((
|
|
6596
|
+
const s = new FormData(r), u = Array.from(r.querySelectorAll("input,select,textarea")).filter((h) => !!h.name).filter(
|
|
6597
|
+
(h) => !!h.name && (h.type !== "radio" || h.checked)
|
|
6598
|
+
).map((h) => {
|
|
6588
6599
|
let S;
|
|
6589
|
-
const A =
|
|
6590
|
-
if (
|
|
6591
|
-
if (
|
|
6592
|
-
if (
|
|
6593
|
-
return S =
|
|
6600
|
+
const A = h.name;
|
|
6601
|
+
if (h instanceof HTMLInputElement)
|
|
6602
|
+
if (h.type === "radio") {
|
|
6603
|
+
if (h.checked)
|
|
6604
|
+
return S = h.value, {
|
|
6594
6605
|
key: A,
|
|
6595
6606
|
value: S
|
|
6596
6607
|
};
|
|
6597
|
-
} else if (
|
|
6598
|
-
S =
|
|
6599
|
-
else if (
|
|
6600
|
-
const $ =
|
|
6608
|
+
} else if (h.type === "checkbox")
|
|
6609
|
+
S = h.checked;
|
|
6610
|
+
else if (h.type === "number" || h.type === "range") {
|
|
6611
|
+
const $ = h.valueAsNumber;
|
|
6601
6612
|
isNaN($) || (S = $);
|
|
6602
6613
|
} else
|
|
6603
|
-
|
|
6614
|
+
h.type === "file" ? S = h.files : S = h.value;
|
|
6604
6615
|
else
|
|
6605
|
-
S =
|
|
6616
|
+
S = h.value;
|
|
6606
6617
|
return {
|
|
6607
6618
|
key: A,
|
|
6608
6619
|
value: S
|
|
6609
6620
|
};
|
|
6610
6621
|
});
|
|
6611
6622
|
let c = this.contentType;
|
|
6612
|
-
if (this.sendSubmissionsTo === "email" && (c = "multipart/form-data"), Array.from(u).forEach(({ value:
|
|
6613
|
-
(
|
|
6623
|
+
if (this.sendSubmissionsTo === "email" && (c = "multipart/form-data"), Array.from(u).forEach(({ value: h }) => {
|
|
6624
|
+
(h instanceof File || Array.isArray(h) && h[0] instanceof File || h instanceof FileList) && (c = "multipart/form-data");
|
|
6614
6625
|
}), c !== "application/json")
|
|
6615
6626
|
i = s;
|
|
6616
6627
|
else {
|
|
6617
|
-
const
|
|
6628
|
+
const h = {};
|
|
6618
6629
|
Array.from(u).forEach(({ value: S, key: A }) => {
|
|
6619
|
-
|
|
6620
|
-
}), i = JSON.stringify(
|
|
6630
|
+
go(h, A, S);
|
|
6631
|
+
}), i = JSON.stringify(h);
|
|
6621
6632
|
}
|
|
6622
6633
|
c && c !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (o["content-type"] = c));
|
|
6623
6634
|
const m = new CustomEvent("presubmit", {
|
|
@@ -6628,29 +6639,29 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6628
6639
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(m), m.defaultPrevented))
|
|
6629
6640
|
return;
|
|
6630
6641
|
if (this.formState = "sending", this.sendSubmissionsTo === "email" && (this.sendSubmissionsToEmail === "your@email.com" || !this.sendSubmissionsToEmail)) {
|
|
6631
|
-
const
|
|
6632
|
-
console.error(
|
|
6633
|
-
formErrorMessage:
|
|
6642
|
+
const h = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
6643
|
+
console.error(h), this.formState = "error", this.mergeNewRootState({
|
|
6644
|
+
formErrorMessage: h
|
|
6634
6645
|
});
|
|
6635
6646
|
return;
|
|
6636
6647
|
}
|
|
6637
|
-
const y = `${
|
|
6648
|
+
const y = `${Pl() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
6638
6649
|
this.sendSubmissionsToEmail || ""
|
|
6639
6650
|
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? y : this.action;
|
|
6640
|
-
|
|
6651
|
+
On(b), fetch(b, {
|
|
6641
6652
|
body: i,
|
|
6642
6653
|
headers: o,
|
|
6643
6654
|
method: this.method || "post"
|
|
6644
6655
|
}).then(
|
|
6645
|
-
async (
|
|
6656
|
+
async (h) => {
|
|
6646
6657
|
var $, H;
|
|
6647
6658
|
let S;
|
|
6648
|
-
const A =
|
|
6649
|
-
if (A && A.indexOf("application/json") !== -1 ? S = await
|
|
6659
|
+
const A = h.headers.get("content-type");
|
|
6660
|
+
if (A && A.indexOf("application/json") !== -1 ? S = await h.json() : S = await h.text(), !h.ok) {
|
|
6650
6661
|
const te = new CustomEvent("submit:error", {
|
|
6651
6662
|
detail: {
|
|
6652
6663
|
error: S,
|
|
6653
|
-
status:
|
|
6664
|
+
status: h.status
|
|
6654
6665
|
}
|
|
6655
6666
|
});
|
|
6656
6667
|
if (($ = this.$refs.formRef) != null && $.nativeElement && ((H = this.$refs.formRef) == null || H.nativeElement.dispatchEvent(
|
|
@@ -6658,16 +6669,16 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6658
6669
|
), te.defaultPrevented))
|
|
6659
6670
|
return;
|
|
6660
6671
|
this.responseData = S, this.formState = "error";
|
|
6661
|
-
let E = this.errorMessagePath ?
|
|
6672
|
+
let E = this.errorMessagePath ? Yr(S, this.errorMessagePath) : S.message || S.error || S;
|
|
6662
6673
|
typeof E != "string" && (E = JSON.stringify(E)), this.formErrorMessage = E, this.mergeNewRootState({
|
|
6663
6674
|
formErrorMessage: E
|
|
6664
6675
|
});
|
|
6665
6676
|
return;
|
|
6666
6677
|
}
|
|
6667
|
-
if (this.responseData = S, this.formState =
|
|
6678
|
+
if (this.responseData = S, this.formState = h.ok ? "success" : "error", h.ok) {
|
|
6668
6679
|
const te = new CustomEvent("submit:success", {
|
|
6669
6680
|
detail: {
|
|
6670
|
-
res:
|
|
6681
|
+
res: h,
|
|
6671
6682
|
body: S
|
|
6672
6683
|
}
|
|
6673
6684
|
});
|
|
@@ -6688,23 +6699,23 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6688
6699
|
location.href = this.successUrl;
|
|
6689
6700
|
}
|
|
6690
6701
|
},
|
|
6691
|
-
(
|
|
6702
|
+
(h) => {
|
|
6692
6703
|
const S = new CustomEvent("submit:error", {
|
|
6693
6704
|
detail: {
|
|
6694
|
-
error:
|
|
6705
|
+
error: h
|
|
6695
6706
|
}
|
|
6696
6707
|
});
|
|
6697
|
-
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(S), S.defaultPrevented) || (this.responseData =
|
|
6708
|
+
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(S), S.defaultPrevented) || (this.responseData = h, this.formState = "error");
|
|
6698
6709
|
}
|
|
6699
6710
|
);
|
|
6700
6711
|
}
|
|
6701
6712
|
}
|
|
6702
6713
|
}
|
|
6703
|
-
}),
|
|
6714
|
+
}), Nl = ["validate", "action", "method", "name"], Bl = {
|
|
6704
6715
|
key: 2,
|
|
6705
6716
|
class: "builder-form-error-text pre-2oa2wtipkzk"
|
|
6706
6717
|
};
|
|
6707
|
-
function
|
|
6718
|
+
function jl(e, t, n, r, o, i) {
|
|
6708
6719
|
const s = W("Blocks");
|
|
6709
6720
|
return v(), w("form", q({
|
|
6710
6721
|
validate: e.validate,
|
|
@@ -6727,16 +6738,16 @@ function Ol(e, t, n, r, o, i) {
|
|
|
6727
6738
|
blocks: e.sendingMessage,
|
|
6728
6739
|
context: e.builderContext
|
|
6729
6740
|
}, null, 8, ["blocks", "context"])) : F("", !0),
|
|
6730
|
-
e.submissionState() === "error" && e.responseData ? (v(), w("pre",
|
|
6741
|
+
e.submissionState() === "error" && e.responseData ? (v(), w("pre", Bl, Wt(e.errorResponse(e.responseData)), 1)) : F("", !0),
|
|
6731
6742
|
e.submissionState() === "success" ? (v(), U(s, {
|
|
6732
6743
|
key: 3,
|
|
6733
6744
|
path: "successMessage",
|
|
6734
6745
|
blocks: e.successMessage,
|
|
6735
6746
|
context: e.builderContext
|
|
6736
6747
|
}, null, 8, ["blocks", "context"])) : F("", !0)
|
|
6737
|
-
], 16,
|
|
6748
|
+
], 16, Nl);
|
|
6738
6749
|
}
|
|
6739
|
-
const
|
|
6750
|
+
const Vl = /* @__PURE__ */ j(Ol, [["render", jl], ["__scopeId", "data-v-77c7888c"]]), Dl = {
|
|
6740
6751
|
name: "Form:Input",
|
|
6741
6752
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
6742
6753
|
inputs: [
|
|
@@ -6787,7 +6798,7 @@ const Nl = /* @__PURE__ */ j($l, [["render", Ol], ["__scopeId", "data-v-77c7888c
|
|
|
6787
6798
|
borderStyle: "solid",
|
|
6788
6799
|
borderColor: "#ccc"
|
|
6789
6800
|
}
|
|
6790
|
-
},
|
|
6801
|
+
}, Ul = B({
|
|
6791
6802
|
name: "builder-form-input-component",
|
|
6792
6803
|
props: [
|
|
6793
6804
|
"attributes",
|
|
@@ -6801,8 +6812,8 @@ const Nl = /* @__PURE__ */ j($l, [["render", Ol], ["__scopeId", "data-v-77c7888c
|
|
|
6801
6812
|
data() {
|
|
6802
6813
|
return { isEditing: oe, filterAttrs: de };
|
|
6803
6814
|
}
|
|
6804
|
-
}),
|
|
6805
|
-
function
|
|
6815
|
+
}), Wl = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
6816
|
+
function Ll(e, t, n, r, o, i) {
|
|
6806
6817
|
return v(), w("input", q({
|
|
6807
6818
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
6808
6819
|
placeholder: e.placeholder,
|
|
@@ -6811,9 +6822,9 @@ function Dl(e, t, n, r, o, i) {
|
|
|
6811
6822
|
value: e.value,
|
|
6812
6823
|
defaultValue: e.defaultValue,
|
|
6813
6824
|
required: e.required
|
|
6814
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), ye(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
6825
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), ye(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Wl);
|
|
6815
6826
|
}
|
|
6816
|
-
const
|
|
6827
|
+
const Fl = /* @__PURE__ */ j(Ul, [["render", Ll]]), Ml = {
|
|
6817
6828
|
name: "Form:Select",
|
|
6818
6829
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
6819
6830
|
defaultStyles: {
|
|
@@ -6855,14 +6866,14 @@ const Ul = /* @__PURE__ */ j(jl, [["render", Dl]]), Wl = {
|
|
|
6855
6866
|
}],
|
|
6856
6867
|
static: !0,
|
|
6857
6868
|
noWrap: !0
|
|
6858
|
-
},
|
|
6869
|
+
}, Hl = B({
|
|
6859
6870
|
name: "builder-select-component",
|
|
6860
6871
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
6861
6872
|
data() {
|
|
6862
6873
|
return { isEditing: oe, filterAttrs: de };
|
|
6863
6874
|
}
|
|
6864
|
-
}),
|
|
6865
|
-
function
|
|
6875
|
+
}), Kl = ["value", "defaultValue", "name", "required"], zl = ["value"];
|
|
6876
|
+
function ql(e, t, n, r, o, i) {
|
|
6866
6877
|
return v(), w("select", q({
|
|
6867
6878
|
value: e.value,
|
|
6868
6879
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
@@ -6873,10 +6884,10 @@ function Hl(e, t, n, r, o, i) {
|
|
|
6873
6884
|
(v(!0), w(z, null, ve(e.options, (s, u) => (v(), w("option", {
|
|
6874
6885
|
key: `${s.name}-${u}`,
|
|
6875
6886
|
value: s.value
|
|
6876
|
-
}, Wt(s.name || s.value), 9,
|
|
6877
|
-
], 16,
|
|
6887
|
+
}, Wt(s.name || s.value), 9, zl))), 128))
|
|
6888
|
+
], 16, Kl);
|
|
6878
6889
|
}
|
|
6879
|
-
const
|
|
6890
|
+
const Gl = /* @__PURE__ */ j(Hl, [["render", ql]]), _l = {
|
|
6880
6891
|
name: "Form:SubmitButton",
|
|
6881
6892
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
6882
6893
|
defaultStyles: {
|
|
@@ -6901,17 +6912,17 @@ const Kl = /* @__PURE__ */ j(Ll, [["render", Hl]]), zl = {
|
|
|
6901
6912
|
// that only shows if advanced setting is flipped
|
|
6902
6913
|
// TODO: defaultChildren
|
|
6903
6914
|
// canHaveChildren: true,
|
|
6904
|
-
},
|
|
6915
|
+
}, Jl = B({
|
|
6905
6916
|
name: "builder-submit-button",
|
|
6906
6917
|
props: ["attributes", "text"],
|
|
6907
6918
|
data() {
|
|
6908
6919
|
return { filterAttrs: de };
|
|
6909
6920
|
}
|
|
6910
6921
|
});
|
|
6911
|
-
function
|
|
6922
|
+
function Xl(e, t, n, r, o, i) {
|
|
6912
6923
|
return v(), w("button", q({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), ye(e.filterAttrs(e.attributes, "v-on:", !0), !0)), Wt(e.text), 17);
|
|
6913
6924
|
}
|
|
6914
|
-
const
|
|
6925
|
+
const Yl = /* @__PURE__ */ j(Jl, [["render", Xl]]), Ql = {
|
|
6915
6926
|
name: "Form:TextArea",
|
|
6916
6927
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
6917
6928
|
inputs: [{
|
|
@@ -6947,7 +6958,7 @@ const _l = /* @__PURE__ */ j(ql, [["render", Gl]]), Jl = {
|
|
|
6947
6958
|
},
|
|
6948
6959
|
static: !0,
|
|
6949
6960
|
noWrap: !0
|
|
6950
|
-
},
|
|
6961
|
+
}, Zl = B({
|
|
6951
6962
|
name: "builder-textarea",
|
|
6952
6963
|
props: [
|
|
6953
6964
|
"attributes",
|
|
@@ -6960,17 +6971,17 @@ const _l = /* @__PURE__ */ j(ql, [["render", Gl]]), Jl = {
|
|
|
6960
6971
|
data() {
|
|
6961
6972
|
return { filterAttrs: de };
|
|
6962
6973
|
}
|
|
6963
|
-
}),
|
|
6964
|
-
function
|
|
6974
|
+
}), eu = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
6975
|
+
function tu(e, t, n, r, o, i) {
|
|
6965
6976
|
return v(), w("textarea", q({
|
|
6966
6977
|
placeholder: e.placeholder,
|
|
6967
6978
|
name: e.name,
|
|
6968
6979
|
value: e.value,
|
|
6969
6980
|
defaultValue: e.defaultValue,
|
|
6970
6981
|
required: e.required
|
|
6971
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), ye(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
6982
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), ye(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, eu);
|
|
6972
6983
|
}
|
|
6973
|
-
const
|
|
6984
|
+
const nu = /* @__PURE__ */ j(Zl, [["render", tu]]), ru = {
|
|
6974
6985
|
name: "Raw:Img",
|
|
6975
6986
|
hideFromInsertMenu: !0,
|
|
6976
6987
|
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",
|
|
@@ -6978,7 +6989,7 @@ const Zl = /* @__PURE__ */ j(Xl, [["render", Ql]]), eu = {
|
|
|
6978
6989
|
name: "image",
|
|
6979
6990
|
bubble: !0,
|
|
6980
6991
|
type: "file",
|
|
6981
|
-
allowedFileTypes:
|
|
6992
|
+
allowedFileTypes: Yn,
|
|
6982
6993
|
required: !0
|
|
6983
6994
|
}, {
|
|
6984
6995
|
name: "backgroundSize",
|
|
@@ -7014,7 +7025,7 @@ const Zl = /* @__PURE__ */ j(Xl, [["render", Ql]]), eu = {
|
|
|
7014
7025
|
defaultValue: 0.7041
|
|
7015
7026
|
}],
|
|
7016
7027
|
noWrap: !0
|
|
7017
|
-
},
|
|
7028
|
+
}, ou = B({
|
|
7018
7029
|
name: "builder-img-component",
|
|
7019
7030
|
props: [
|
|
7020
7031
|
"imgSrc",
|
|
@@ -7044,8 +7055,8 @@ const Zl = /* @__PURE__ */ j(Xl, [["render", Ql]]), eu = {
|
|
|
7044
7055
|
return delete e.style, e;
|
|
7045
7056
|
}
|
|
7046
7057
|
}
|
|
7047
|
-
}),
|
|
7048
|
-
function
|
|
7058
|
+
}), iu = ["alt", "title", "src"];
|
|
7059
|
+
function su(e, t, n, r, o, i) {
|
|
7049
7060
|
var s;
|
|
7050
7061
|
return v(), w("img", q({
|
|
7051
7062
|
loading: "lazy",
|
|
@@ -7059,9 +7070,9 @@ function ru(e, t, n, r, o, i) {
|
|
|
7059
7070
|
aspectRatio: e.aspectRatio || void 0,
|
|
7060
7071
|
...((s = e.attributes) == null ? void 0 : s.style) || {}
|
|
7061
7072
|
}
|
|
7062
|
-
}, e.imgAttrs), null, 16,
|
|
7073
|
+
}, e.imgAttrs), null, 16, iu);
|
|
7063
7074
|
}
|
|
7064
|
-
const
|
|
7075
|
+
const au = /* @__PURE__ */ j(ou, [["render", su]]), lu = {
|
|
7065
7076
|
name: "Video",
|
|
7066
7077
|
canHaveChildren: !0,
|
|
7067
7078
|
defaultStyles: {
|
|
@@ -7072,14 +7083,14 @@ const ou = /* @__PURE__ */ j(tu, [["render", ru]]), iu = {
|
|
|
7072
7083
|
inputs: [{
|
|
7073
7084
|
name: "video",
|
|
7074
7085
|
type: "file",
|
|
7075
|
-
allowedFileTypes:
|
|
7086
|
+
allowedFileTypes: _a,
|
|
7076
7087
|
bubble: !0,
|
|
7077
7088
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
7078
7089
|
required: !0
|
|
7079
7090
|
}, {
|
|
7080
7091
|
name: "posterImage",
|
|
7081
7092
|
type: "file",
|
|
7082
|
-
allowedFileTypes:
|
|
7093
|
+
allowedFileTypes: Yn,
|
|
7083
7094
|
helperText: "Image to show before the video plays"
|
|
7084
7095
|
}, {
|
|
7085
7096
|
name: "autoPlay",
|
|
@@ -7145,7 +7156,7 @@ const ou = /* @__PURE__ */ j(tu, [["render", ru]]), iu = {
|
|
|
7145
7156
|
shouldReceiveBuilderProps: {
|
|
7146
7157
|
builderBlock: !0
|
|
7147
7158
|
}
|
|
7148
|
-
},
|
|
7159
|
+
}, uu = B({
|
|
7149
7160
|
name: "builder-video",
|
|
7150
7161
|
props: [
|
|
7151
7162
|
"lazyLoad",
|
|
@@ -7218,16 +7229,16 @@ const ou = /* @__PURE__ */ j(tu, [["render", ru]]), iu = {
|
|
|
7218
7229
|
};
|
|
7219
7230
|
}
|
|
7220
7231
|
}
|
|
7221
|
-
}),
|
|
7232
|
+
}), cu = { style: {
|
|
7222
7233
|
position: "relative"
|
|
7223
|
-
} },
|
|
7234
|
+
} }, pu = ["preload", "poster"], du = {
|
|
7224
7235
|
key: 1,
|
|
7225
7236
|
style: {
|
|
7226
7237
|
display: "flex",
|
|
7227
7238
|
flexDirection: "column",
|
|
7228
7239
|
alignItems: "stretch"
|
|
7229
7240
|
}
|
|
7230
|
-
},
|
|
7241
|
+
}, fu = {
|
|
7231
7242
|
key: 2,
|
|
7232
7243
|
style: {
|
|
7233
7244
|
pointerEvents: "none",
|
|
@@ -7241,9 +7252,9 @@ const ou = /* @__PURE__ */ j(tu, [["render", ru]]), iu = {
|
|
|
7241
7252
|
height: "100%"
|
|
7242
7253
|
}
|
|
7243
7254
|
};
|
|
7244
|
-
function
|
|
7245
|
-
var s, u, c, m, y, b,
|
|
7246
|
-
return v(), w("div",
|
|
7255
|
+
function hu(e, t, n, r, o, i) {
|
|
7256
|
+
var s, u, c, m, y, b, h;
|
|
7257
|
+
return v(), w("div", cu, [
|
|
7247
7258
|
Ge("video", q({
|
|
7248
7259
|
class: "builder-video",
|
|
7249
7260
|
ref: "videoRef",
|
|
@@ -7271,7 +7282,7 @@ function pu(e, t, n, r, o, i) {
|
|
|
7271
7282
|
src: e.video
|
|
7272
7283
|
}
|
|
7273
7284
|
), null, 16)
|
|
7274
|
-
], 16,
|
|
7285
|
+
], 16, pu),
|
|
7275
7286
|
e.aspectRatio && !(e.fitContent && ((c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length)) ? (v(), w("div", {
|
|
7276
7287
|
key: 0,
|
|
7277
7288
|
style: Pe({
|
|
@@ -7281,75 +7292,75 @@ function pu(e, t, n, r, o, i) {
|
|
|
7281
7292
|
fontSize: "0px"
|
|
7282
7293
|
})
|
|
7283
7294
|
}, null, 4)) : F("", !0),
|
|
7284
|
-
(y = (m = e.builderBlock) == null ? void 0 : m.children) != null && y.length && e.fitContent ? (v(), w("div",
|
|
7295
|
+
(y = (m = e.builderBlock) == null ? void 0 : m.children) != null && y.length && e.fitContent ? (v(), w("div", du, [
|
|
7285
7296
|
pe(e.$slots, "default")
|
|
7286
7297
|
])) : F("", !0),
|
|
7287
|
-
(
|
|
7298
|
+
(h = (b = e.builderBlock) == null ? void 0 : b.children) != null && h.length && !e.fitContent ? (v(), w("div", fu, [
|
|
7288
7299
|
pe(e.$slots, "default")
|
|
7289
7300
|
])) : F("", !0)
|
|
7290
7301
|
]);
|
|
7291
7302
|
}
|
|
7292
|
-
const
|
|
7293
|
-
component:
|
|
7294
|
-
...
|
|
7295
|
-
}, {
|
|
7296
|
-
component: El,
|
|
7297
|
-
...bl
|
|
7303
|
+
const mu = /* @__PURE__ */ j(uu, [["render", hu]]), gu = () => [{
|
|
7304
|
+
component: kl,
|
|
7305
|
+
...yl
|
|
7298
7306
|
}, {
|
|
7299
|
-
component:
|
|
7300
|
-
...
|
|
7307
|
+
component: Al,
|
|
7308
|
+
...Cl
|
|
7301
7309
|
}, {
|
|
7302
|
-
component:
|
|
7303
|
-
|
|
7310
|
+
component: Vl,
|
|
7311
|
+
...$l
|
|
7304
7312
|
}, {
|
|
7305
|
-
component:
|
|
7306
|
-
...
|
|
7313
|
+
component: Fl,
|
|
7314
|
+
...Dl
|
|
7307
7315
|
}, {
|
|
7308
|
-
component:
|
|
7309
|
-
...
|
|
7316
|
+
component: Yl,
|
|
7317
|
+
..._l
|
|
7310
7318
|
}, {
|
|
7311
|
-
component:
|
|
7312
|
-
...
|
|
7319
|
+
component: Gl,
|
|
7320
|
+
...Ml
|
|
7313
7321
|
}, {
|
|
7314
|
-
component:
|
|
7315
|
-
...
|
|
7322
|
+
component: nu,
|
|
7323
|
+
...Ql
|
|
7316
7324
|
}, {
|
|
7317
|
-
component:
|
|
7318
|
-
...
|
|
7319
|
-
}], Mr = () => [{
|
|
7320
|
-
component: oi,
|
|
7321
|
-
...Ma
|
|
7325
|
+
component: au,
|
|
7326
|
+
...ru
|
|
7322
7327
|
}, {
|
|
7323
|
-
component:
|
|
7324
|
-
...
|
|
7328
|
+
component: mu,
|
|
7329
|
+
...lu
|
|
7330
|
+
}], qr = () => [{
|
|
7331
|
+
component: si,
|
|
7332
|
+
...za
|
|
7325
7333
|
}, {
|
|
7326
7334
|
component: fa,
|
|
7327
|
-
...Ka
|
|
7328
|
-
}, {
|
|
7329
|
-
component: Ca,
|
|
7330
7335
|
...qa
|
|
7331
7336
|
}, {
|
|
7332
|
-
component:
|
|
7333
|
-
...
|
|
7337
|
+
component: ga,
|
|
7338
|
+
...Ga
|
|
7339
|
+
}, {
|
|
7340
|
+
component: Ta,
|
|
7341
|
+
...Ja
|
|
7334
7342
|
}, {
|
|
7335
|
-
component:
|
|
7336
|
-
...
|
|
7343
|
+
component: Ra,
|
|
7344
|
+
...el
|
|
7337
7345
|
}, {
|
|
7338
|
-
component:
|
|
7339
|
-
...
|
|
7346
|
+
component: ol,
|
|
7347
|
+
...tl
|
|
7340
7348
|
}, {
|
|
7341
|
-
component:
|
|
7342
|
-
...
|
|
7343
|
-
},
|
|
7344
|
-
component:
|
|
7345
|
-
...
|
|
7349
|
+
component: ec,
|
|
7350
|
+
...il
|
|
7351
|
+
}, {
|
|
7352
|
+
component: gl,
|
|
7353
|
+
...dl
|
|
7354
|
+
}, ...No.includes(G) ? [{
|
|
7355
|
+
component: Za,
|
|
7356
|
+
...Xa
|
|
7346
7357
|
}] : [], {
|
|
7347
|
-
component:
|
|
7348
|
-
...
|
|
7358
|
+
component: pl,
|
|
7359
|
+
...sl
|
|
7349
7360
|
}, {
|
|
7350
|
-
component:
|
|
7351
|
-
...
|
|
7352
|
-
}, ...
|
|
7361
|
+
component: Ka,
|
|
7362
|
+
...Wa
|
|
7363
|
+
}, ...gu()], yu = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
7353
7364
|
function getAndSetVariantId() {
|
|
7354
7365
|
function setCookie(name, value, days) {
|
|
7355
7366
|
let expires = '';
|
|
@@ -7408,7 +7419,7 @@ const du = /* @__PURE__ */ j(su, [["render", pu]]), hu = () => [{
|
|
|
7408
7419
|
}).join('');
|
|
7409
7420
|
styleEl.innerHTML = newStyleStr;
|
|
7410
7421
|
}
|
|
7411
|
-
}`,
|
|
7422
|
+
}`, vu = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
7412
7423
|
if (!navigator.cookieEnabled) {
|
|
7413
7424
|
return;
|
|
7414
7425
|
}
|
|
@@ -7442,37 +7453,37 @@ const du = /* @__PURE__ */ j(su, [["render", pu]]), hu = () => [{
|
|
|
7442
7453
|
thisScriptEl?.remove();
|
|
7443
7454
|
}
|
|
7444
7455
|
return;
|
|
7445
|
-
}`,
|
|
7456
|
+
}`, An = "builderIoAbTest", $n = "builderIoRenderContent", Bt = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
7446
7457
|
...t,
|
|
7447
7458
|
testVariationId: t.id,
|
|
7448
7459
|
id: e == null ? void 0 : e.id
|
|
7449
|
-
})),
|
|
7460
|
+
})), bu = ({
|
|
7450
7461
|
canTrack: e,
|
|
7451
7462
|
content: t
|
|
7452
|
-
}) => !(!(Bt(t).length > 0) || !e),
|
|
7463
|
+
}) => !(!(Bt(t).length > 0) || !e), Su = (e) => e === "react" || e === "reactNative", ku = G === "angular", Zn = Su(G), Cu = () => `
|
|
7453
7464
|
(function() {
|
|
7454
|
-
if (!window.${
|
|
7455
|
-
window.${
|
|
7465
|
+
if (!window.${An}) {
|
|
7466
|
+
window.${An} = ${yu};
|
|
7456
7467
|
}
|
|
7457
|
-
if (!window.${
|
|
7458
|
-
window.${
|
|
7459
|
-
}${
|
|
7468
|
+
if (!window.${$n}) {
|
|
7469
|
+
window.${$n} = ${vu};
|
|
7470
|
+
}${Zn ? `
|
|
7460
7471
|
var thisScriptEl = document.currentScript;
|
|
7461
7472
|
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
7462
7473
|
})();
|
|
7463
|
-
`,
|
|
7464
|
-
window.${
|
|
7465
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
7466
|
-
)`,
|
|
7474
|
+
`, wu = (e, t) => `
|
|
7475
|
+
window.${An}(
|
|
7476
|
+
"${t}",${JSON.stringify(e)}, ${Zn}, ${ku}
|
|
7477
|
+
)`, Tu = ({
|
|
7467
7478
|
contentId: e,
|
|
7468
7479
|
variationId: t
|
|
7469
|
-
}) => `window.${
|
|
7470
|
-
"${t}", "${e}", ${
|
|
7480
|
+
}) => `window.${$n}(
|
|
7481
|
+
"${t}", "${e}", ${Zn}
|
|
7471
7482
|
)`;
|
|
7472
|
-
function
|
|
7483
|
+
function Gr(e) {
|
|
7473
7484
|
return Math.round(e * 1e3) / 1e3;
|
|
7474
7485
|
}
|
|
7475
|
-
const
|
|
7486
|
+
const Eu = (e, t, n = !0) => {
|
|
7476
7487
|
if (!(e instanceof HTMLElement))
|
|
7477
7488
|
return null;
|
|
7478
7489
|
let r = n ? e : e.parentElement;
|
|
@@ -7483,35 +7494,35 @@ const Cu = (e, t, n = !0) => {
|
|
|
7483
7494
|
return r;
|
|
7484
7495
|
} while (r = r.parentElement);
|
|
7485
7496
|
return null;
|
|
7486
|
-
},
|
|
7497
|
+
}, Iu = (e) => Eu(e, (t) => {
|
|
7487
7498
|
const n = t.getAttribute("builder-id") || t.id;
|
|
7488
7499
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
7489
|
-
}),
|
|
7500
|
+
}), _r = ({
|
|
7490
7501
|
event: e,
|
|
7491
7502
|
target: t
|
|
7492
7503
|
}) => {
|
|
7493
|
-
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i =
|
|
7504
|
+
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i = Gr(r / n.width), s = Gr(o / n.height);
|
|
7494
7505
|
return {
|
|
7495
7506
|
x: i,
|
|
7496
7507
|
y: s
|
|
7497
7508
|
};
|
|
7498
|
-
},
|
|
7499
|
-
const t = e.target, n = t &&
|
|
7509
|
+
}, Ru = (e) => {
|
|
7510
|
+
const t = e.target, n = t && Iu(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
7500
7511
|
return {
|
|
7501
7512
|
targetBuilderElement: r || void 0,
|
|
7502
7513
|
metadata: {
|
|
7503
|
-
targetOffset: t ?
|
|
7514
|
+
targetOffset: t ? _r({
|
|
7504
7515
|
event: e,
|
|
7505
7516
|
target: t
|
|
7506
7517
|
}) : void 0,
|
|
7507
|
-
builderTargetOffset: n ?
|
|
7518
|
+
builderTargetOffset: n ? _r({
|
|
7508
7519
|
event: e,
|
|
7509
7520
|
target: n
|
|
7510
7521
|
}) : void 0,
|
|
7511
7522
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
7512
7523
|
}
|
|
7513
7524
|
};
|
|
7514
|
-
},
|
|
7525
|
+
}, Au = ["svelte", "qwik", "vue"], $u = () => Au.includes(G) && (oe() || qn()), xu = (e) => {
|
|
7515
7526
|
var i;
|
|
7516
7527
|
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);
|
|
7517
7528
|
let o = "";
|
|
@@ -7537,15 +7548,15 @@ font-weight: ${s};
|
|
|
7537
7548
|
`.trim());
|
|
7538
7549
|
}
|
|
7539
7550
|
return o;
|
|
7540
|
-
},
|
|
7551
|
+
}, Pu = ({
|
|
7541
7552
|
customFonts: e
|
|
7542
7553
|
}) => {
|
|
7543
7554
|
var t;
|
|
7544
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
7545
|
-
},
|
|
7555
|
+
return ((t = e == null ? void 0 : e.map((n) => xu(n))) == null ? void 0 : t.join(" ")) || "";
|
|
7556
|
+
}, Ou = ({
|
|
7546
7557
|
cssCode: e,
|
|
7547
7558
|
contentId: t
|
|
7548
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
7559
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Nu = `
|
|
7549
7560
|
.builder-button {
|
|
7550
7561
|
all: unset;
|
|
7551
7562
|
}
|
|
@@ -7562,7 +7573,7 @@ font-weight: ${s};
|
|
|
7562
7573
|
text-align: inherit;
|
|
7563
7574
|
font-family: inherit;
|
|
7564
7575
|
}
|
|
7565
|
-
`,
|
|
7576
|
+
`, Bu = (e) => e ? "" : Nu, ju = (e) => `variant-${e}`, Vu = B({
|
|
7566
7577
|
name: "enable-editor",
|
|
7567
7578
|
components: { DynamicDiv: Ct },
|
|
7568
7579
|
props: [
|
|
@@ -7594,8 +7605,8 @@ font-weight: ${s};
|
|
|
7594
7605
|
httpReqsPending: {},
|
|
7595
7606
|
clicked: !1,
|
|
7596
7607
|
builderContext: vn,
|
|
7597
|
-
needsElementRefDivForEditing:
|
|
7598
|
-
getWrapperClassName:
|
|
7608
|
+
needsElementRefDivForEditing: $u,
|
|
7609
|
+
getWrapperClassName: ju
|
|
7599
7610
|
};
|
|
7600
7611
|
},
|
|
7601
7612
|
provide() {
|
|
@@ -7628,7 +7639,7 @@ font-weight: ${s};
|
|
|
7628
7639
|
variationId: o !== s ? o : void 0
|
|
7629
7640
|
});
|
|
7630
7641
|
}
|
|
7631
|
-
|
|
7642
|
+
qn() && !oe() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
7632
7643
|
new CustomEvent("initpreviewingbldr")
|
|
7633
7644
|
);
|
|
7634
7645
|
}
|
|
@@ -7730,7 +7741,7 @@ font-weight: ${s};
|
|
|
7730
7741
|
this.builderContextSignal.content = n;
|
|
7731
7742
|
},
|
|
7732
7743
|
processMessage(e) {
|
|
7733
|
-
return
|
|
7744
|
+
return So({
|
|
7734
7745
|
model: this.model,
|
|
7735
7746
|
trustedHosts: this.trustedHosts,
|
|
7736
7747
|
callbacks: {
|
|
@@ -7744,7 +7755,7 @@ font-weight: ${s};
|
|
|
7744
7755
|
});
|
|
7745
7756
|
},
|
|
7746
7757
|
animation: (t) => {
|
|
7747
|
-
|
|
7758
|
+
Ro(t);
|
|
7748
7759
|
},
|
|
7749
7760
|
contentUpdate: (t, n) => {
|
|
7750
7761
|
this.mergeNewContent(t, n);
|
|
@@ -7766,7 +7777,7 @@ font-weight: ${s};
|
|
|
7766
7777
|
contentId: o,
|
|
7767
7778
|
apiKey: this.apiKey,
|
|
7768
7779
|
variationId: r !== o ? r : void 0,
|
|
7769
|
-
...
|
|
7780
|
+
...Ru(e),
|
|
7770
7781
|
unique: !this.clicked
|
|
7771
7782
|
});
|
|
7772
7783
|
}
|
|
@@ -7804,7 +7815,7 @@ font-weight: ${s};
|
|
|
7804
7815
|
url: u,
|
|
7805
7816
|
method: "GET"
|
|
7806
7817
|
};
|
|
7807
|
-
|
|
7818
|
+
On(JSON.stringify(c));
|
|
7808
7819
|
const m = {
|
|
7809
7820
|
method: c.method,
|
|
7810
7821
|
headers: c.headers,
|
|
@@ -7832,7 +7843,7 @@ font-weight: ${s};
|
|
|
7832
7843
|
"builder:component:stateChange",
|
|
7833
7844
|
{
|
|
7834
7845
|
detail: {
|
|
7835
|
-
state:
|
|
7846
|
+
state: zn(this.builderContextSignal.rootState),
|
|
7836
7847
|
ref: {
|
|
7837
7848
|
name: this.model
|
|
7838
7849
|
}
|
|
@@ -7842,7 +7853,7 @@ font-weight: ${s};
|
|
|
7842
7853
|
);
|
|
7843
7854
|
},
|
|
7844
7855
|
elementRef_onIniteditingbldr(e) {
|
|
7845
|
-
window.addEventListener("message", this.processMessage),
|
|
7856
|
+
window.addEventListener("message", this.processMessage), bo({
|
|
7846
7857
|
...this.locale ? {
|
|
7847
7858
|
locale: this.locale
|
|
7848
7859
|
} : {},
|
|
@@ -7859,7 +7870,7 @@ font-weight: ${s};
|
|
|
7859
7870
|
).forEach((t) => {
|
|
7860
7871
|
var n, r;
|
|
7861
7872
|
if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
7862
|
-
const o =
|
|
7873
|
+
const o = ds(t);
|
|
7863
7874
|
(r = window.parent) == null || r.postMessage(o, "*");
|
|
7864
7875
|
}
|
|
7865
7876
|
}), window.addEventListener(
|
|
@@ -7872,7 +7883,7 @@ font-weight: ${s};
|
|
|
7872
7883
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), r = t.get(
|
|
7873
7884
|
`builder.overrides.${n}`
|
|
7874
7885
|
), o = t.get("apiKey") || t.get("builder.space");
|
|
7875
|
-
(n === "BUILDER_STUDIO" || n === this.model && o === this.apiKey && (!this.content || r === this.content.id)) &&
|
|
7886
|
+
(n === "BUILDER_STUDIO" || n === this.model && o === this.apiKey && (!this.content || r === this.content.id)) && Jn({
|
|
7876
7887
|
model: this.model,
|
|
7877
7888
|
apiKey: this.apiKey,
|
|
7878
7889
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -7887,7 +7898,7 @@ font-weight: ${s};
|
|
|
7887
7898
|
}
|
|
7888
7899
|
}
|
|
7889
7900
|
});
|
|
7890
|
-
function
|
|
7901
|
+
function Du(e, t, n, r, o, i) {
|
|
7891
7902
|
var s, u, c;
|
|
7892
7903
|
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (v(), U(dt(e.ContentWrapper), q({
|
|
7893
7904
|
key: 0,
|
|
@@ -7908,26 +7919,26 @@ function Bu(e, t, n, r, o, i) {
|
|
|
7908
7919
|
_: 3
|
|
7909
7920
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : F("", !0);
|
|
7910
7921
|
}
|
|
7911
|
-
const
|
|
7922
|
+
const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = B({
|
|
7912
7923
|
name: "content-styles",
|
|
7913
7924
|
components: { InlinedStyles: Ht },
|
|
7914
7925
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
7915
7926
|
data() {
|
|
7916
7927
|
return {
|
|
7917
7928
|
injectedStyles: `
|
|
7918
|
-
${
|
|
7929
|
+
${Ou({
|
|
7919
7930
|
cssCode: this.cssCode,
|
|
7920
7931
|
contentId: this.contentId
|
|
7921
7932
|
})}
|
|
7922
|
-
${
|
|
7933
|
+
${Pu({
|
|
7923
7934
|
customFonts: this.customFonts
|
|
7924
7935
|
})}
|
|
7925
|
-
${
|
|
7936
|
+
${Bu(this.isNestedRender)}
|
|
7926
7937
|
`.trim()
|
|
7927
7938
|
};
|
|
7928
7939
|
}
|
|
7929
7940
|
});
|
|
7930
|
-
function
|
|
7941
|
+
function Lu(e, t, n, r, o, i) {
|
|
7931
7942
|
const s = W("InlinedStyles");
|
|
7932
7943
|
return v(), U(s, {
|
|
7933
7944
|
id: "builderio-content",
|
|
@@ -7935,7 +7946,7 @@ function Du(e, t, n, r, o, i) {
|
|
|
7935
7946
|
nonce: e.nonce
|
|
7936
7947
|
}, null, 8, ["styles", "nonce"]);
|
|
7937
7948
|
}
|
|
7938
|
-
const
|
|
7949
|
+
const Fu = /* @__PURE__ */ j(Wu, [["render", Lu]]), Mu = ({
|
|
7939
7950
|
content: e,
|
|
7940
7951
|
data: t,
|
|
7941
7952
|
locale: n
|
|
@@ -7952,7 +7963,7 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
7952
7963
|
locale: n
|
|
7953
7964
|
} : {}
|
|
7954
7965
|
};
|
|
7955
|
-
},
|
|
7966
|
+
}, Hu = ({
|
|
7956
7967
|
content: e,
|
|
7957
7968
|
data: t
|
|
7958
7969
|
}) => e ? {
|
|
@@ -7962,12 +7973,12 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
7962
7973
|
...t
|
|
7963
7974
|
},
|
|
7964
7975
|
meta: e == null ? void 0 : e.meta
|
|
7965
|
-
} : void 0,
|
|
7976
|
+
} : void 0, Ku = Zo, zu = B({
|
|
7966
7977
|
name: "content-component",
|
|
7967
7978
|
components: {
|
|
7968
|
-
EnableEditor:
|
|
7969
|
-
InlinedScript:
|
|
7970
|
-
ContentStyles:
|
|
7979
|
+
EnableEditor: Uu,
|
|
7980
|
+
InlinedScript: Qn,
|
|
7981
|
+
ContentStyles: Fu,
|
|
7971
7982
|
Blocks: Ue,
|
|
7972
7983
|
DynamicDiv: Ct
|
|
7973
7984
|
},
|
|
@@ -7997,32 +8008,32 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
7997
8008
|
data() {
|
|
7998
8009
|
var e, t;
|
|
7999
8010
|
return {
|
|
8000
|
-
scriptStr:
|
|
8011
|
+
scriptStr: Tu({
|
|
8001
8012
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
8002
8013
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
8003
8014
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
8004
8015
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
8005
8016
|
}),
|
|
8006
8017
|
registeredComponents: [
|
|
8007
|
-
...
|
|
8018
|
+
...qr(),
|
|
8008
8019
|
...this.customComponents || []
|
|
8009
8020
|
].reduce(
|
|
8010
8021
|
(n, { component: r, ...o }) => ({
|
|
8011
8022
|
...n,
|
|
8012
8023
|
[o.name]: {
|
|
8013
|
-
component:
|
|
8024
|
+
component: Ku(r),
|
|
8014
8025
|
...Dt(o)
|
|
8015
8026
|
}
|
|
8016
8027
|
}),
|
|
8017
8028
|
{}
|
|
8018
8029
|
),
|
|
8019
8030
|
builderContextSignal: {
|
|
8020
|
-
content:
|
|
8031
|
+
content: Hu({
|
|
8021
8032
|
content: this.content,
|
|
8022
8033
|
data: this.data
|
|
8023
8034
|
}),
|
|
8024
8035
|
localState: void 0,
|
|
8025
|
-
rootState:
|
|
8036
|
+
rootState: Mu({
|
|
8026
8037
|
content: this.content,
|
|
8027
8038
|
data: this.data,
|
|
8028
8039
|
locale: this.locale
|
|
@@ -8033,7 +8044,7 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
8033
8044
|
apiKey: this.apiKey,
|
|
8034
8045
|
apiVersion: this.apiVersion,
|
|
8035
8046
|
componentInfos: [
|
|
8036
|
-
...
|
|
8047
|
+
...qr(),
|
|
8037
8048
|
...this.customComponents || []
|
|
8038
8049
|
].reduce(
|
|
8039
8050
|
(n, { component: r, ...o }) => ({
|
|
@@ -8054,7 +8065,7 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
8054
8065
|
provide() {
|
|
8055
8066
|
const e = this;
|
|
8056
8067
|
return {
|
|
8057
|
-
[
|
|
8068
|
+
[Xr.key]: {
|
|
8058
8069
|
registeredComponents: e.registeredComponents
|
|
8059
8070
|
}
|
|
8060
8071
|
};
|
|
@@ -8098,7 +8109,7 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
8098
8109
|
}
|
|
8099
8110
|
}
|
|
8100
8111
|
});
|
|
8101
|
-
function
|
|
8112
|
+
function qu(e, t, n, r, o, i) {
|
|
8102
8113
|
const s = W("InlinedScript"), u = W("ContentStyles"), c = W("Blocks"), m = W("EnableEditor");
|
|
8103
8114
|
return v(), U(m, q({
|
|
8104
8115
|
apiHost: e.apiHost,
|
|
@@ -8119,7 +8130,7 @@ function Hu(e, t, n, r, o, i) {
|
|
|
8119
8130
|
isNestedRender: e.isNestedRender
|
|
8120
8131
|
}, {}), {
|
|
8121
8132
|
default: me(() => {
|
|
8122
|
-
var y, b,
|
|
8133
|
+
var y, b, h, S, A, $, H;
|
|
8123
8134
|
return [
|
|
8124
8135
|
e.isSsrAbTest ? (v(), U(s, {
|
|
8125
8136
|
key: 0,
|
|
@@ -8132,7 +8143,7 @@ function Hu(e, t, n, r, o, i) {
|
|
|
8132
8143
|
nonce: e.nonce || "",
|
|
8133
8144
|
isNestedRender: e.isNestedRender,
|
|
8134
8145
|
contentId: (y = e.builderContextSignal.content) == null ? void 0 : y.id,
|
|
8135
|
-
cssCode: (
|
|
8146
|
+
cssCode: (h = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : h.cssCode,
|
|
8136
8147
|
customFonts: (A = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : A.customFonts
|
|
8137
8148
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : F("", !0),
|
|
8138
8149
|
ee(c, {
|
|
@@ -8146,19 +8157,19 @@ function Hu(e, t, n, r, o, i) {
|
|
|
8146
8157
|
_: 1
|
|
8147
8158
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
8148
8159
|
}
|
|
8149
|
-
const
|
|
8160
|
+
const Gu = /* @__PURE__ */ j(zu, [["render", qu]]), _u = B({
|
|
8150
8161
|
name: "content-variants",
|
|
8151
8162
|
components: {
|
|
8152
|
-
InlinedScript:
|
|
8163
|
+
InlinedScript: Qn,
|
|
8153
8164
|
InlinedStyles: Ht,
|
|
8154
|
-
ContentComponent:
|
|
8165
|
+
ContentComponent: Gu
|
|
8155
8166
|
},
|
|
8156
8167
|
props: [
|
|
8157
8168
|
"canTrack",
|
|
8158
8169
|
"content",
|
|
8159
|
-
"isNestedRender",
|
|
8160
8170
|
"nonce",
|
|
8161
8171
|
"apiHost",
|
|
8172
|
+
"isNestedRender",
|
|
8162
8173
|
"model",
|
|
8163
8174
|
"data",
|
|
8164
8175
|
"context",
|
|
@@ -8176,14 +8187,15 @@ const Ku = /* @__PURE__ */ j(Mu, [["render", Hu]]), zu = B({
|
|
|
8176
8187
|
],
|
|
8177
8188
|
data() {
|
|
8178
8189
|
return {
|
|
8179
|
-
shouldRenderVariants:
|
|
8190
|
+
shouldRenderVariants: bu({
|
|
8180
8191
|
canTrack: Xe(this.canTrack),
|
|
8181
8192
|
content: this.content
|
|
8182
8193
|
}),
|
|
8183
|
-
|
|
8184
|
-
|
|
8194
|
+
shouldEmitPersonalizationFns: ja(this.content),
|
|
8195
|
+
SDKS_SUPPORTING_PERSONALIZATION: No,
|
|
8196
|
+
getInitPersonalizationVariantsFnsScriptString: Va,
|
|
8185
8197
|
TARGET: G,
|
|
8186
|
-
getInitVariantsFnsScriptString:
|
|
8198
|
+
getInitVariantsFnsScriptString: Cu,
|
|
8187
8199
|
getVariants: Bt
|
|
8188
8200
|
};
|
|
8189
8201
|
},
|
|
@@ -8192,7 +8204,7 @@ const Ku = /* @__PURE__ */ j(Mu, [["render", Hu]]), zu = B({
|
|
|
8192
8204
|
computed: {
|
|
8193
8205
|
updateCookieAndStylesScriptStr() {
|
|
8194
8206
|
var e;
|
|
8195
|
-
return
|
|
8207
|
+
return wu(
|
|
8196
8208
|
Bt(this.content).map((t) => ({
|
|
8197
8209
|
id: t.testVariationId,
|
|
8198
8210
|
testRatio: t.testRatio
|
|
@@ -8208,17 +8220,17 @@ const Ku = /* @__PURE__ */ j(Mu, [["render", Hu]]), zu = B({
|
|
|
8208
8220
|
return this.shouldRenderVariants ? {
|
|
8209
8221
|
...this.content,
|
|
8210
8222
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
8211
|
-
} :
|
|
8223
|
+
} : Cs({
|
|
8212
8224
|
item: this.content,
|
|
8213
8225
|
canTrack: Xe(this.canTrack)
|
|
8214
8226
|
});
|
|
8215
8227
|
}
|
|
8216
8228
|
}
|
|
8217
8229
|
});
|
|
8218
|
-
function
|
|
8230
|
+
function Ju(e, t, n, r, o, i) {
|
|
8219
8231
|
const s = W("InlinedScript"), u = W("InlinedStyles"), c = W("ContentComponent");
|
|
8220
8232
|
return v(), w(z, null, [
|
|
8221
|
-
|
|
8233
|
+
e.shouldEmitPersonalizationFns ? (v(), w(z, { key: 0 }, [
|
|
8222
8234
|
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (v(), U(s, {
|
|
8223
8235
|
key: 0,
|
|
8224
8236
|
id: "builderio-init-personalization-variants-fns",
|
|
@@ -8294,13 +8306,13 @@ function qu(e, t, n, r, o, i) {
|
|
|
8294
8306
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
8295
8307
|
], 64);
|
|
8296
8308
|
}
|
|
8297
|
-
const
|
|
8309
|
+
const Xu = /* @__PURE__ */ j(_u, [["render", Ju]]), Yu = async ({
|
|
8298
8310
|
builderContextValue: e,
|
|
8299
8311
|
symbol: t
|
|
8300
8312
|
}) => {
|
|
8301
8313
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
8302
8314
|
(e != null && e.apiKey))
|
|
8303
|
-
return
|
|
8315
|
+
return Jn({
|
|
8304
8316
|
model: t.model,
|
|
8305
8317
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
8306
8318
|
apiVersion: e.apiVersion,
|
|
@@ -8312,9 +8324,9 @@ const Gu = /* @__PURE__ */ j(zu, [["render", qu]]), _u = async ({
|
|
|
8312
8324
|
}).catch((n) => {
|
|
8313
8325
|
ue.error("Could not fetch symbol content: ", n);
|
|
8314
8326
|
});
|
|
8315
|
-
},
|
|
8327
|
+
}, Qu = B({
|
|
8316
8328
|
name: "builder-symbol",
|
|
8317
|
-
components: { ContentVariants:
|
|
8329
|
+
components: { ContentVariants: Xu, DynamicDiv: Ct },
|
|
8318
8330
|
props: [
|
|
8319
8331
|
"symbol",
|
|
8320
8332
|
"builderComponents",
|
|
@@ -8371,7 +8383,7 @@ const Gu = /* @__PURE__ */ j(zu, [["render", qu]]), _u = async ({
|
|
|
8371
8383
|
methods: {
|
|
8372
8384
|
setContent() {
|
|
8373
8385
|
var e;
|
|
8374
|
-
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) ||
|
|
8386
|
+
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || Yu({
|
|
8375
8387
|
symbol: this.symbol,
|
|
8376
8388
|
builderContextValue: this.builderContext
|
|
8377
8389
|
}).then((t) => {
|
|
@@ -8381,8 +8393,8 @@ const Gu = /* @__PURE__ */ j(zu, [["render", qu]]), _u = async ({
|
|
|
8381
8393
|
}
|
|
8382
8394
|
}
|
|
8383
8395
|
});
|
|
8384
|
-
function
|
|
8385
|
-
var u, c, m, y, b,
|
|
8396
|
+
function Zu(e, t, n, r, o, i) {
|
|
8397
|
+
var u, c, m, y, b, h, S;
|
|
8386
8398
|
const s = W("ContentVariants");
|
|
8387
8399
|
return v(), w("div", q({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, ye(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
8388
8400
|
ee(s, {
|
|
@@ -8398,7 +8410,7 @@ function Xu(e, t, n, r, o, i) {
|
|
|
8398
8410
|
data: {
|
|
8399
8411
|
...(y = e.symbol) == null ? void 0 : y.data,
|
|
8400
8412
|
...e.builderContext.localState,
|
|
8401
|
-
...(
|
|
8413
|
+
...(h = (b = e.contentToUse) == null ? void 0 : b.data) == null ? void 0 : h.state
|
|
8402
8414
|
},
|
|
8403
8415
|
canTrack: e.builderContext.canTrack,
|
|
8404
8416
|
model: ((S = e.symbol) == null ? void 0 : S.model) ?? "",
|
|
@@ -8409,47 +8421,47 @@ function Xu(e, t, n, r, o, i) {
|
|
|
8409
8421
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
8410
8422
|
], 16);
|
|
8411
8423
|
}
|
|
8412
|
-
const
|
|
8424
|
+
const ec = /* @__PURE__ */ j(Qu, [["render", Zu]]);
|
|
8413
8425
|
export {
|
|
8414
|
-
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8418
|
-
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
+
ac as A,
|
|
8427
|
+
Po as B,
|
|
8428
|
+
fa as C,
|
|
8429
|
+
uc as D,
|
|
8430
|
+
Ns as E,
|
|
8431
|
+
ga as F,
|
|
8432
|
+
Bs as G,
|
|
8433
|
+
Jn as H,
|
|
8434
|
+
Ta as I,
|
|
8435
|
+
nc as J,
|
|
8436
|
+
dc as K,
|
|
8437
|
+
Ra as S,
|
|
8426
8438
|
G as T,
|
|
8427
|
-
|
|
8439
|
+
mu as V,
|
|
8428
8440
|
j as _,
|
|
8429
8441
|
Oe as a,
|
|
8430
8442
|
vn as b,
|
|
8431
8443
|
Ht as c,
|
|
8432
8444
|
Ne as d,
|
|
8433
8445
|
kt as e,
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8446
|
+
ua as f,
|
|
8447
|
+
pc as g,
|
|
8448
|
+
cc as h,
|
|
8437
8449
|
oe as i,
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8450
|
+
fc as j,
|
|
8451
|
+
Xn as k,
|
|
8452
|
+
ps as l,
|
|
8453
|
+
si as m,
|
|
8454
|
+
ec as n,
|
|
8455
|
+
gl as o,
|
|
8444
8456
|
Ue as p,
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8457
|
+
Xu as q,
|
|
8458
|
+
qn as r,
|
|
8459
|
+
lc as s,
|
|
8460
|
+
ds as t,
|
|
8461
|
+
oc as u,
|
|
8462
|
+
ic as v,
|
|
8463
|
+
Ku as w,
|
|
8464
|
+
sc as x,
|
|
8465
|
+
yo as y,
|
|
8466
|
+
rc as z
|
|
8455
8467
|
};
|