@builder.io/sdk-vue 5.2.3 → 5.2.5
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-TGpflqNO.js → awaiter-BKtN2AMs.js} +1 -1
- package/lib/browser/{awaiter-0ES-HtKy.cjs → awaiter-RQWxLPh7.cjs} +1 -1
- package/lib/browser/{block-wrapper-6JBj9wlj.cjs → block-wrapper-nMKh8p11.cjs} +1 -1
- package/lib/browser/{block-wrapper-M2woB-L4.js → block-wrapper-tny9tjLX.js} +3 -3
- package/lib/browser/{component-ref-TmVziQMC.cjs → component-ref-Mw4IXQsf.cjs} +1 -1
- package/lib/browser/{component-ref-7xUvXH6j.js → component-ref-d2TAsp69.js} +4 -4
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-IPH_xTi-.js → get-block-properties-DXgJ283y.js} +1 -1
- package/lib/browser/{get-block-properties-2RZMZvVf.cjs → get-block-properties-yuV5qbSy.cjs} +1 -1
- package/lib/browser/{index-bHeXSwpO.js → index-NzYhd2fP.js} +212 -201
- package/lib/browser/{index-yGDaT-4c.cjs → index-yyjVNpWr.cjs} +27 -19
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-zea3UB3U.cjs → live-edit-2xpHwDC6.cjs} +1 -1
- package/lib/browser/{live-edit-ncQFzx-S.js → live-edit-MYo3p6a8.js} +1 -1
- package/lib/browser/{repeated-block-6Car73NY.cjs → repeated-block-2EBzVyUu.cjs} +1 -1
- package/lib/browser/{repeated-block-Mk8O3Rpy.js → repeated-block-Ga5ASejd.js} +2 -2
- package/lib/browser/{style-wrapper-5rtVLsI3.cjs → style-wrapper-L7DnOyfm.cjs} +1 -1
- package/lib/browser/{style-wrapper-r-s-if-A.js → style-wrapper-dI5wRv59.js} +1 -1
- package/lib/edge/{awaiter-rfhkeWZf.js → awaiter-4nEUChYV.js} +1 -1
- package/lib/edge/{awaiter-S6rT9Vve.cjs → awaiter-6AjvWUxL.cjs} +1 -1
- package/lib/edge/{block-wrapper-C8-WoYjv.js → block-wrapper-46vOpFGy.js} +3 -3
- package/lib/{node/block-wrapper-1Y-CVNTM.cjs → edge/block-wrapper-97OfjwlX.cjs} +1 -1
- package/lib/edge/{component-ref-Gc_mK-yZ.cjs → component-ref-DUyRq-EJ.cjs} +1 -1
- package/lib/edge/{component-ref-u0-6ifHM.js → component-ref-yTXpKy_r.js} +4 -4
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-HX4IkuJ7.js → get-block-properties-W3W_9H-Z.js} +1 -1
- package/lib/edge/{get-block-properties-YVTdp4N_.cjs → get-block-properties-jJLbFHeq.cjs} +1 -1
- package/lib/edge/{index-z9siWBN1.js → index-DHXkBA25.js} +370 -359
- package/lib/edge/{index-Ep-06GOr.cjs → index-jpFEl6o1.cjs} +33 -25
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/live-edit-YzqrW2ZO.cjs → edge/live-edit-WpboQZDv.cjs} +1 -1
- package/lib/{node/live-edit-k8OIvz20.js → edge/live-edit-nhAMI-64.js} +1 -1
- package/lib/edge/{repeated-block-QAF0iXDX.cjs → repeated-block-dGVzaSM5.cjs} +1 -1
- package/lib/edge/{repeated-block-e-bO_PW3.js → repeated-block-eANZkOUH.js} +2 -2
- package/lib/edge/{style-wrapper-IpBgNlUT.cjs → style-wrapper-CvNVb0wT.cjs} +1 -1
- package/lib/edge/{style-wrapper-UVIpB1x8.js → style-wrapper-GqtgkGuc.js} +1 -1
- package/lib/node/{awaiter-iuox8UDW.js → awaiter-6JHJCJgG.js} +1 -1
- package/lib/node/{awaiter-o04icQ1E.cjs → awaiter-_rQTvMWR.cjs} +1 -1
- package/lib/node/{block-wrapper-Lg6Dv_gm.js → block-wrapper-3P0_XOfk.js} +3 -3
- package/lib/{edge/block-wrapper-SyvaobbZ.cjs → node/block-wrapper-CVcdunhe.cjs} +1 -1
- package/lib/node/{component-ref-MVFxzC_h.js → component-ref-RHwChjOp.js} +5 -5
- package/lib/node/{component-ref-k5AyvYBo.cjs → component-ref-tWjNsmU5.cjs} +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-Rq2VRXzM.js → get-block-properties-9gqKfU1J.js} +2 -2
- package/lib/node/{get-block-properties-Kb0sj2FV.cjs → get-block-properties-jknWz7As.cjs} +1 -1
- package/lib/node/{index-9hkAOr_P.js → index-CwfwLkvc.js} +182 -171
- package/lib/node/{index-yxMSSBrC.cjs → index-eeU-4w7r.cjs} +27 -19
- 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-XsT9ZiMs.js → node/live-edit-NBkhYc-u.js} +1 -1
- package/lib/{edge/live-edit-nkpalAUa.cjs → node/live-edit-iOkS0wUg.cjs} +1 -1
- package/lib/node/{repeated-block-0laikCiE.cjs → repeated-block-BqCLqE8_.cjs} +1 -1
- package/lib/node/{repeated-block-km0tNI0j.js → repeated-block-aHj4jtJt.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-o843UKK7.js → should-force-browser-runtime-in-node-2bRYXF-W.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-HK08_EA6.cjs → should-force-browser-runtime-in-node-j9YDACzy.cjs} +1 -1
- package/lib/node/{style-wrapper-O4HZcJNK.cjs → style-wrapper-WxU8Uo4d.cjs} +1 -1
- package/lib/node/{style-wrapper-tc5B1slA.js → style-wrapper-kcTKCb_j.js} +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
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 Xo, toDisplayString as Wt, defineAsyncComponent as st, createVNode as ee, renderList as ve, createCommentVNode as F, h as
|
|
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 Xo, toDisplayString as Wt, defineAsyncComponent as st, createVNode as ee, renderList as ve, createCommentVNode as F, h as zr, createElementVNode as Ge, normalizeStyle as Pe, normalizeClass as gt, markRaw as Yo } from "vue";
|
|
2
2
|
const Qo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Zo = (e) => typeof e == "string" && Qo.has(e.toLowerCase());
|
|
3
3
|
function de(e = {}, t, n) {
|
|
4
4
|
const r = {};
|
|
@@ -37,9 +37,9 @@ function ti(e, t, n, r, o, i) {
|
|
|
37
37
|
}, 16))
|
|
38
38
|
], 64));
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const Rn = /* @__PURE__ */ j(ei, [["render", ti]]), Zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41
41
|
__proto__: null,
|
|
42
|
-
default:
|
|
42
|
+
default: Rn
|
|
43
43
|
}, Symbol.toStringTag, { value: "Module" })), G = "vue", Oe = () => {
|
|
44
44
|
switch (G) {
|
|
45
45
|
case "react":
|
|
@@ -55,7 +55,7 @@ const En = /* @__PURE__ */ j(ei, [["render", ti]]), Zu = /* @__PURE__ */ Object.
|
|
|
55
55
|
}
|
|
56
56
|
}, ni = B({
|
|
57
57
|
name: "builder-button",
|
|
58
|
-
components: { DynamicRenderer:
|
|
58
|
+
components: { DynamicRenderer: Rn },
|
|
59
59
|
props: [
|
|
60
60
|
"attributes",
|
|
61
61
|
"link",
|
|
@@ -113,7 +113,7 @@ const oi = /* @__PURE__ */ j(ni, [["render", ri]]), ii = Symbol(), vn = {
|
|
|
113
113
|
model: ""
|
|
114
114
|
},
|
|
115
115
|
key: ii
|
|
116
|
-
}, si = Symbol(),
|
|
116
|
+
}, si = Symbol(), qr = {
|
|
117
117
|
Components: { registeredComponents: {} },
|
|
118
118
|
key: si
|
|
119
119
|
}, Pt = "[Builder.io]: ", ue = {
|
|
@@ -121,7 +121,7 @@ const oi = /* @__PURE__ */ j(ni, [["render", ri]]), ii = Symbol(), vn = {
|
|
|
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
|
+
}, Gr = (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
|
};
|
|
@@ -133,13 +133,13 @@ const ai = (e) => {
|
|
|
133
133
|
return e.forEach((n, r) => {
|
|
134
134
|
t[r] = n;
|
|
135
135
|
}), t;
|
|
136
|
-
},
|
|
136
|
+
}, _r = (e) => e instanceof URLSearchParams ? ai(e) : e, Jr = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
137
137
|
function li() {
|
|
138
138
|
return M() && window.self !== window.top;
|
|
139
139
|
}
|
|
140
140
|
function oe(e) {
|
|
141
141
|
return li() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
142
|
-
|
|
142
|
+
Jr(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
143
143
|
}
|
|
144
144
|
const ui = () => {
|
|
145
145
|
if (M()) {
|
|
@@ -147,7 +147,7 @@ const ui = () => {
|
|
|
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
|
-
}, ci = () => typeof navigator == "object" && navigator.userAgent || "",
|
|
150
|
+
}, ci = () => typeof navigator == "object" && navigator.userAgent || "", Xr = () => {
|
|
151
151
|
const e = ci(), t = {
|
|
152
152
|
Android() {
|
|
153
153
|
return e.match(/Android/i);
|
|
@@ -173,10 +173,10 @@ const ui = () => {
|
|
|
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
|
+
}, Yr = "5.2.5", Qr = () => ({
|
|
177
177
|
"X-Builder-SDK": G,
|
|
178
178
|
"X-Builder-SDK-GEN": "2",
|
|
179
|
-
"X-Builder-SDK-Version":
|
|
179
|
+
"X-Builder-SDK-Version": Yr
|
|
180
180
|
}), Ne = (e) => e != null, pi = (e) => {
|
|
181
181
|
if (e === "localhost" || e === "127.0.0.1")
|
|
182
182
|
return e;
|
|
@@ -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
|
+
}, Zr = async (e) => Lt(e), di = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(Ne).join("; "), fi = [["secure", ""], ["SameSite", "None"]], hi = ({
|
|
197
197
|
name: e,
|
|
198
198
|
value: t,
|
|
199
199
|
expires: n
|
|
200
200
|
}) => {
|
|
201
201
|
const o = (M() ? location.protocol === "https:" : !0) ? fi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", pi(window.location.hostname)], ...o];
|
|
202
202
|
return di(s);
|
|
203
|
-
},
|
|
203
|
+
}, An = async ({
|
|
204
204
|
name: e,
|
|
205
205
|
value: t,
|
|
206
206
|
expires: n,
|
|
@@ -225,16 +225,16 @@ function mi() {
|
|
|
225
225
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function eo() {
|
|
229
229
|
return mi().replace(/-/g, "");
|
|
230
230
|
}
|
|
231
|
-
const
|
|
231
|
+
const to = "builderSessionId", gi = async ({
|
|
232
232
|
canTrack: e
|
|
233
233
|
}) => {
|
|
234
234
|
if (!e)
|
|
235
235
|
return;
|
|
236
|
-
const t = await
|
|
237
|
-
name:
|
|
236
|
+
const t = await Zr({
|
|
237
|
+
name: to,
|
|
238
238
|
canTrack: e
|
|
239
239
|
});
|
|
240
240
|
if (Ne(t))
|
|
@@ -246,20 +246,20 @@ const Qr = "builderSessionId", gi = async ({
|
|
|
246
246
|
canTrack: e
|
|
247
247
|
}), n;
|
|
248
248
|
}
|
|
249
|
-
}, yi = () =>
|
|
249
|
+
}, yi = () => eo(), vi = ({
|
|
250
250
|
id: e,
|
|
251
251
|
canTrack: t
|
|
252
|
-
}) =>
|
|
253
|
-
name:
|
|
252
|
+
}) => An({
|
|
253
|
+
name: to,
|
|
254
254
|
value: e,
|
|
255
255
|
canTrack: t
|
|
256
|
-
}),
|
|
256
|
+
}), no = () => M() && typeof localStorage < "u" ? localStorage : void 0, bi = ({
|
|
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 = no()) == null ? void 0 : n.getItem(e) : void 0;
|
|
263
263
|
} catch (r) {
|
|
264
264
|
console.debug("[LocalStorage] GET error: ", r);
|
|
265
265
|
return;
|
|
@@ -271,17 +271,17 @@ const Qr = "builderSessionId", gi = async ({
|
|
|
271
271
|
}) => {
|
|
272
272
|
var r;
|
|
273
273
|
try {
|
|
274
|
-
t && ((r =
|
|
274
|
+
t && ((r = no()) == null || r.setItem(e, n));
|
|
275
275
|
} catch (o) {
|
|
276
276
|
console.debug("[LocalStorage] SET error: ", o);
|
|
277
277
|
}
|
|
278
|
-
},
|
|
278
|
+
}, ro = "builderVisitorId", ki = ({
|
|
279
279
|
canTrack: e
|
|
280
280
|
}) => {
|
|
281
281
|
if (!e)
|
|
282
282
|
return;
|
|
283
283
|
const t = bi({
|
|
284
|
-
key:
|
|
284
|
+
key: ro,
|
|
285
285
|
canTrack: e
|
|
286
286
|
});
|
|
287
287
|
if (Ne(t))
|
|
@@ -293,15 +293,15 @@ const Qr = "builderSessionId", gi = async ({
|
|
|
293
293
|
canTrack: e
|
|
294
294
|
}), n;
|
|
295
295
|
}
|
|
296
|
-
}, Ci = () =>
|
|
296
|
+
}, Ci = () => eo(), wi = ({
|
|
297
297
|
id: e,
|
|
298
298
|
canTrack: t
|
|
299
299
|
}) => Si({
|
|
300
|
-
key:
|
|
300
|
+
key: ro,
|
|
301
301
|
value: e,
|
|
302
302
|
canTrack: t
|
|
303
303
|
});
|
|
304
|
-
function
|
|
304
|
+
function $n(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
|
}
|
|
@@ -339,7 +339,7 @@ const Ti = async ({
|
|
|
339
339
|
...await Ti({
|
|
340
340
|
canTrack: t
|
|
341
341
|
}),
|
|
342
|
-
userAttributes:
|
|
342
|
+
userAttributes: Xr(),
|
|
343
343
|
ownerId: n
|
|
344
344
|
}
|
|
345
345
|
});
|
|
@@ -354,14 +354,14 @@ 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 $n(r), fetch(r, {
|
|
358
358
|
method: "POST",
|
|
359
359
|
body: JSON.stringify({
|
|
360
360
|
events: [await Ei(t)]
|
|
361
361
|
}),
|
|
362
362
|
headers: {
|
|
363
363
|
"content-type": "application/json",
|
|
364
|
-
...
|
|
364
|
+
...Qr()
|
|
365
365
|
},
|
|
366
366
|
mode: "cors"
|
|
367
367
|
}).catch((o) => {
|
|
@@ -371,7 +371,7 @@ async function jt({
|
|
|
371
371
|
const ec = (e) => jt({
|
|
372
372
|
...e,
|
|
373
373
|
canTrack: !0
|
|
374
|
-
}),
|
|
374
|
+
}), oo = ({
|
|
375
375
|
builder: e,
|
|
376
376
|
context: t,
|
|
377
377
|
event: n,
|
|
@@ -387,7 +387,7 @@ const ec = (e) => jt({
|
|
|
387
387
|
isEditing: oe(),
|
|
388
388
|
isBrowser: M(),
|
|
389
389
|
isServer: !M(),
|
|
390
|
-
getUserAttributes: () =>
|
|
390
|
+
getUserAttributes: () => Xr(),
|
|
391
391
|
trackConversion: (t, n) => {
|
|
392
392
|
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || jt({
|
|
393
393
|
type: "conversion",
|
|
@@ -406,7 +406,7 @@ const ec = (e) => jt({
|
|
|
406
406
|
}), Ri = (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 xn({
|
|
410
410
|
rootState: e,
|
|
411
411
|
localState: t,
|
|
412
412
|
rootSetState: n
|
|
@@ -416,7 +416,7 @@ function An({
|
|
|
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 ? xn({
|
|
420
420
|
rootState: i,
|
|
421
421
|
localState: void 0,
|
|
422
422
|
rootSetState: n ? (s) => {
|
|
@@ -440,11 +440,11 @@ const Ai = ({
|
|
|
440
440
|
rootSetState: i,
|
|
441
441
|
rootState: s
|
|
442
442
|
}) => {
|
|
443
|
-
const u =
|
|
443
|
+
const u = oo({
|
|
444
444
|
builder: t,
|
|
445
445
|
context: n,
|
|
446
446
|
event: r,
|
|
447
|
-
state:
|
|
447
|
+
state: xn({
|
|
448
448
|
rootState: s,
|
|
449
449
|
localState: o,
|
|
450
450
|
rootSetState: i
|
|
@@ -457,7 +457,7 @@ var V, $i = function(e) {
|
|
|
457
457
|
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && _o.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 && Rr.test(String.fromCharCode(a));
|
|
461
461
|
}
|
|
462
462
|
function r(a, l) {
|
|
463
463
|
for (var p = k, f = 1, P = 0; ; ) {
|
|
@@ -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(br));
|
|
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(Sr);
|
|
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);
|
|
@@ -626,7 +626,7 @@ var V, $i = function(e) {
|
|
|
626
626
|
}
|
|
627
627
|
return;
|
|
628
628
|
case 47:
|
|
629
|
-
a = k.charCodeAt(d + 1), tt ? (++d, h()) : a === 61 ? b(De, 2) : b(
|
|
629
|
+
a = k.charCodeAt(d + 1), tt ? (++d, h()) : a === 61 ? b(De, 2) : b(kr, 1);
|
|
630
630
|
return;
|
|
631
631
|
case 37:
|
|
632
632
|
case 42:
|
|
@@ -634,7 +634,7 @@ var V, $i = function(e) {
|
|
|
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 ? Tr : Er, 2) : l === 61 ? b(De, 2) : b(a === 124 ? Do : Wo, 1);
|
|
638
638
|
return;
|
|
639
639
|
case 94:
|
|
640
640
|
k.charCodeAt(d + 1) === 61 ? b(De, 2) : b(Uo, 1);
|
|
@@ -649,10 +649,10 @@ var V, $i = function(e) {
|
|
|
649
649
|
return;
|
|
650
650
|
case 61:
|
|
651
651
|
case 33:
|
|
652
|
-
k.charCodeAt(d + 1) === 61 ? b(Lo, k.charCodeAt(d + 2) === 61 ? 3 : 2) : b(a === 61 ?
|
|
652
|
+
k.charCodeAt(d + 1) === 61 ? b(Lo, k.charCodeAt(d + 2) === 61 ? 3 : 2) : b(a === 61 ? Cr : wr, 1);
|
|
653
653
|
return;
|
|
654
654
|
case 126:
|
|
655
|
-
return b(
|
|
655
|
+
return b(wr, 1);
|
|
656
656
|
}
|
|
657
657
|
return !1;
|
|
658
658
|
}
|
|
@@ -664,7 +664,7 @@ var V, $i = function(e) {
|
|
|
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 === "\\" || Rr.test(a))
|
|
668
668
|
return te();
|
|
669
669
|
r(d, "Unexpected character '" + a + "'");
|
|
670
670
|
}
|
|
@@ -696,7 +696,7 @@ 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(er, P);
|
|
700
700
|
}
|
|
701
701
|
function S(a, l) {
|
|
702
702
|
for (var p = d, f = 0, P = l === void 0 ? 1 / 0 : l, Q = 0; Q < P; ++Q) {
|
|
@@ -785,11 +785,11 @@ var V, $i = function(e) {
|
|
|
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
787
|
function he() {
|
|
788
|
-
(x ===
|
|
788
|
+
(x === kr || x === De && fe === "/=") && y(!0);
|
|
789
789
|
var a = x, l = K();
|
|
790
790
|
switch (a) {
|
|
791
791
|
case nn:
|
|
792
|
-
case
|
|
792
|
+
case nr:
|
|
793
793
|
E();
|
|
794
794
|
var p = a === nn;
|
|
795
795
|
L(we) || wt() ? l.label = null : x !== Me ? be() : (l.label = Se(), je());
|
|
@@ -799,31 +799,31 @@ var V, $i = function(e) {
|
|
|
799
799
|
break;
|
|
800
800
|
}
|
|
801
801
|
return f === X.length && r(l.start, "Unsyntactic " + a.l), R(l, p ? "BreakStatement" : "ContinueStatement");
|
|
802
|
-
case
|
|
802
|
+
case rr:
|
|
803
803
|
return E(), je(), R(l, "DebuggerStatement");
|
|
804
|
-
case nr:
|
|
805
|
-
return E(), X.push(pn), l.body = he(), X.pop(), J(ln), l.test = Qe(), je(), R(l, "DoWhileStatement");
|
|
806
804
|
case ir:
|
|
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 lr:
|
|
807
|
+
return E(), X.push(pn), J(Ce), x === we ? Kt(l, null) : x === an ? (a = K(), E(), Qn(a, !0), R(a, "VariableDeclaration"), a.fa.length === 1 && L(Rt) ? Yn(l, a) : Kt(l, a)) : (a = re(!1, !0), L(Rt) ? (Tt(a), Yn(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 = he(), l.alternate = L(
|
|
812
|
-
case
|
|
810
|
+
case ur:
|
|
811
|
+
return E(), l.test = Qe(), l.da = he(), l.alternate = L(sr) ? he() : null, R(l, "IfStatement");
|
|
812
|
+
case cr:
|
|
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
815
|
for (E(), l.Qb = Qe(), l.tb = [], J(ot), X.push(Jo); x !== He; )
|
|
816
|
-
x === rn || x ===
|
|
816
|
+
x === rn || x === or ? (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
817
|
return f && R(f, "SwitchCase"), E(), X.pop(), R(l, "SwitchStatement");
|
|
818
|
-
case
|
|
818
|
+
case pr:
|
|
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 dr:
|
|
821
|
+
return E(), l.block = Ze(), l.Ea = null, x === tr && (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(ar) ? 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(), Qn(l), je(), R(l, "VariableDeclaration");
|
|
824
824
|
case ln:
|
|
825
825
|
return E(), l.test = Qe(), X.push(pn), l.body = he(), X.pop(), R(l, "WhileStatement");
|
|
826
|
-
case
|
|
826
|
+
case fr:
|
|
827
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();
|
|
@@ -861,13 +861,13 @@ var V, $i = function(e) {
|
|
|
861
861
|
function Kt(a, l) {
|
|
862
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
|
|
864
|
+
function Yn(a, l) {
|
|
865
865
|
return a.left = l, a.right = re(), J(ge), a.body = he(), X.pop(), R(a, "ForInStatement");
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Qn(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(Cr) ? re(!0, l) : null, a.fa.push(R(p, "VariableDeclarator")), !L(xe))
|
|
871
871
|
break;
|
|
872
872
|
}
|
|
873
873
|
}
|
|
@@ -882,7 +882,7 @@ 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(Sr)) {
|
|
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
|
}
|
|
@@ -892,7 +892,7 @@ var V, $i = function(e) {
|
|
|
892
892
|
var f = x.L;
|
|
893
893
|
if (f !== null && (!p || x !== Rt) && f > l) {
|
|
894
894
|
var P = _(a);
|
|
895
|
-
return P.left = a, P.operator = fe, a = x, E(), P.right = qt(Gt(), f, p), f = R(P, a ===
|
|
895
|
+
return P.left = a, P.operator = fe, a = x, E(), P.right = qt(Gt(), f, p), f = R(P, a === Tr || a === Er ? "LogicalExpression" : "BinaryExpression"), qt(f, l, p);
|
|
896
896
|
}
|
|
897
897
|
return a;
|
|
898
898
|
}
|
|
@@ -906,7 +906,7 @@ var V, $i = function(e) {
|
|
|
906
906
|
return l;
|
|
907
907
|
}
|
|
908
908
|
function et(a, l) {
|
|
909
|
-
if (L(
|
|
909
|
+
if (L(br)) {
|
|
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 mr:
|
|
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
|
|
924
|
+
case er:
|
|
925
925
|
return a = K(), a.value = fe, a.raw = k.slice(Y, Fe), E(), R(a, "Literal");
|
|
926
|
-
case
|
|
927
|
-
case
|
|
928
|
-
case
|
|
926
|
+
case gr:
|
|
927
|
+
case yr:
|
|
928
|
+
case vr:
|
|
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;
|
|
@@ -962,7 +962,7 @@ var V, $i = function(e) {
|
|
|
962
962
|
return R(a, "ObjectExpression");
|
|
963
963
|
case on:
|
|
964
964
|
return a = K(), E(), _t(a, !1);
|
|
965
|
-
case
|
|
965
|
+
case hr:
|
|
966
966
|
return a = K(), E(), a.callee = et(Et(), !0), a.arguments = L(Ce) ? Jt(ge, !1) : Bo, R(a, "NewExpression");
|
|
967
967
|
}
|
|
968
968
|
be();
|
|
@@ -976,7 +976,7 @@ var V, $i = function(e) {
|
|
|
976
976
|
var f = X;
|
|
977
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 (f = 0 > p ? a.id : a.oa[p], (
|
|
979
|
+
if (f = 0 > p ? a.id : a.oa[p], (Ir(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
|
}
|
|
@@ -994,19 +994,19 @@ var V, $i = function(e) {
|
|
|
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 && zo(fe) || ce &&
|
|
997
|
+
return a && O.yb === "everywhere" && (a = !1), x === Me ? (!a && (O.yb && zo(fe) || ce && Ir(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 Zn)
|
|
1004
|
+
Object.prototype.hasOwnProperty.call(O, p) || (O[p] = Zn[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
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 Zn = {
|
|
1010
1010
|
fc: !1,
|
|
1011
1011
|
sb: !0,
|
|
1012
1012
|
yb: !1,
|
|
@@ -1019,7 +1019,7 @@ var V, $i = function(e) {
|
|
|
1019
1019
|
vb: null
|
|
1020
1020
|
}, d = 0, Y = 0, Fe = 0, Yt, Qt, x, fe, tt, Ve, ke, Zt = 0, $e = 0, en, nt, X, ce, Bo = [], rt = {
|
|
1021
1021
|
type: "num"
|
|
1022
|
-
},
|
|
1022
|
+
}, er = {
|
|
1023
1023
|
type: "regexp"
|
|
1024
1024
|
}, It = {
|
|
1025
1025
|
type: "string"
|
|
@@ -1032,58 +1032,58 @@ var V, $i = function(e) {
|
|
|
1032
1032
|
}, rn = {
|
|
1033
1033
|
l: "case",
|
|
1034
1034
|
m: !0
|
|
1035
|
-
},
|
|
1035
|
+
}, tr = {
|
|
1036
1036
|
l: "catch"
|
|
1037
|
-
},
|
|
1037
|
+
}, nr = {
|
|
1038
1038
|
l: "continue"
|
|
1039
|
-
},
|
|
1039
|
+
}, rr = {
|
|
1040
1040
|
l: "debugger"
|
|
1041
|
-
},
|
|
1041
|
+
}, or = {
|
|
1042
1042
|
l: "default"
|
|
1043
|
-
},
|
|
1043
|
+
}, ir = {
|
|
1044
1044
|
l: "do",
|
|
1045
1045
|
W: !0
|
|
1046
|
-
},
|
|
1046
|
+
}, sr = {
|
|
1047
1047
|
l: "else",
|
|
1048
1048
|
m: !0
|
|
1049
|
-
},
|
|
1049
|
+
}, ar = {
|
|
1050
1050
|
l: "finally"
|
|
1051
|
-
},
|
|
1051
|
+
}, lr = {
|
|
1052
1052
|
l: "for",
|
|
1053
1053
|
W: !0
|
|
1054
1054
|
}, on = {
|
|
1055
1055
|
l: "function"
|
|
1056
|
-
},
|
|
1056
|
+
}, ur = {
|
|
1057
1057
|
l: "if"
|
|
1058
|
-
},
|
|
1058
|
+
}, cr = {
|
|
1059
1059
|
l: "return",
|
|
1060
1060
|
m: !0
|
|
1061
1061
|
}, sn = {
|
|
1062
1062
|
l: "switch"
|
|
1063
|
-
},
|
|
1063
|
+
}, pr = {
|
|
1064
1064
|
l: "throw",
|
|
1065
1065
|
m: !0
|
|
1066
|
-
},
|
|
1066
|
+
}, dr = {
|
|
1067
1067
|
l: "try"
|
|
1068
1068
|
}, an = {
|
|
1069
1069
|
l: "var"
|
|
1070
1070
|
}, ln = {
|
|
1071
1071
|
l: "while",
|
|
1072
1072
|
W: !0
|
|
1073
|
-
},
|
|
1073
|
+
}, fr = {
|
|
1074
1074
|
l: "with"
|
|
1075
|
-
},
|
|
1075
|
+
}, hr = {
|
|
1076
1076
|
l: "new",
|
|
1077
1077
|
m: !0
|
|
1078
|
-
},
|
|
1078
|
+
}, mr = {
|
|
1079
1079
|
l: "this"
|
|
1080
|
-
},
|
|
1080
|
+
}, gr = {
|
|
1081
1081
|
l: "null",
|
|
1082
1082
|
$a: null
|
|
1083
|
-
},
|
|
1083
|
+
}, yr = {
|
|
1084
1084
|
l: "true",
|
|
1085
1085
|
$a: !0
|
|
1086
|
-
},
|
|
1086
|
+
}, vr = {
|
|
1087
1087
|
l: "false",
|
|
1088
1088
|
$a: !1
|
|
1089
1089
|
}, Rt = {
|
|
@@ -1093,34 +1093,34 @@ var V, $i = function(e) {
|
|
|
1093
1093
|
}, jo = {
|
|
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: tr,
|
|
1097
|
+
continue: nr,
|
|
1098
|
+
debugger: rr,
|
|
1099
|
+
default: or,
|
|
1100
|
+
do: ir,
|
|
1101
|
+
else: sr,
|
|
1102
|
+
finally: ar,
|
|
1103
|
+
for: lr,
|
|
1104
1104
|
function: on,
|
|
1105
|
-
if:
|
|
1106
|
-
return:
|
|
1105
|
+
if: ur,
|
|
1106
|
+
return: cr,
|
|
1107
1107
|
switch: sn,
|
|
1108
|
-
throw:
|
|
1109
|
-
try:
|
|
1108
|
+
throw: pr,
|
|
1109
|
+
try: dr,
|
|
1110
1110
|
var: an,
|
|
1111
1111
|
while: ln,
|
|
1112
|
-
with:
|
|
1113
|
-
null:
|
|
1114
|
-
true:
|
|
1115
|
-
false:
|
|
1116
|
-
new:
|
|
1112
|
+
with: fr,
|
|
1113
|
+
null: gr,
|
|
1114
|
+
true: yr,
|
|
1115
|
+
false: vr,
|
|
1116
|
+
new: hr,
|
|
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: mr,
|
|
1124
1124
|
typeof: {
|
|
1125
1125
|
l: "typeof",
|
|
1126
1126
|
prefix: !0,
|
|
@@ -1160,15 +1160,15 @@ var V, $i = function(e) {
|
|
|
1160
1160
|
}, it = {
|
|
1161
1161
|
type: ":",
|
|
1162
1162
|
m: !0
|
|
1163
|
-
},
|
|
1163
|
+
}, br = {
|
|
1164
1164
|
type: "."
|
|
1165
|
-
},
|
|
1165
|
+
}, Sr = {
|
|
1166
1166
|
type: "?",
|
|
1167
1167
|
m: !0
|
|
1168
|
-
},
|
|
1168
|
+
}, kr = {
|
|
1169
1169
|
L: 10,
|
|
1170
1170
|
m: !0
|
|
1171
|
-
},
|
|
1171
|
+
}, Cr = {
|
|
1172
1172
|
Cb: !0,
|
|
1173
1173
|
m: !0
|
|
1174
1174
|
}, De = {
|
|
@@ -1178,13 +1178,13 @@ var V, $i = function(e) {
|
|
|
1178
1178
|
cc: !0,
|
|
1179
1179
|
prefix: !0,
|
|
1180
1180
|
$b: !0
|
|
1181
|
-
},
|
|
1181
|
+
}, wr = {
|
|
1182
1182
|
prefix: !0,
|
|
1183
1183
|
m: !0
|
|
1184
|
-
},
|
|
1184
|
+
}, Tr = {
|
|
1185
1185
|
L: 1,
|
|
1186
1186
|
m: !0
|
|
1187
|
-
},
|
|
1187
|
+
}, Er = {
|
|
1188
1188
|
L: 2,
|
|
1189
1189
|
m: !0
|
|
1190
1190
|
}, Do = {
|
|
@@ -1212,7 +1212,7 @@ var V, $i = function(e) {
|
|
|
1212
1212
|
}, Ko = {
|
|
1213
1213
|
L: 10,
|
|
1214
1214
|
m: !0
|
|
1215
|
-
}, zo = o("class enum extends super const export import"),
|
|
1215
|
+
}, zo = o("class enum extends super const export import"), Ir = o("implements interface let package private protected public static yield"), At = o("eval arguments"), qo = 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"), Go = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Rr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), _o = 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
|
}, Jo = {
|
|
1218
1218
|
kind: "switch"
|
|
@@ -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 Ar = {
|
|
1241
1241
|
C: !0,
|
|
1242
1242
|
kc: 5
|
|
1243
|
-
},
|
|
1243
|
+
}, Pn = {
|
|
1244
1244
|
configurable: !0,
|
|
1245
1245
|
enumerable: !0,
|
|
1246
1246
|
writable: !1
|
|
@@ -1256,11 +1256,11 @@ var Er = {
|
|
|
1256
1256
|
configurable: !1,
|
|
1257
1257
|
enumerable: !1,
|
|
1258
1258
|
writable: !1
|
|
1259
|
-
},
|
|
1259
|
+
}, $r = {
|
|
1260
1260
|
configurable: !1,
|
|
1261
1261
|
enumerable: !0,
|
|
1262
1262
|
writable: !0
|
|
1263
|
-
},
|
|
1263
|
+
}, io = {
|
|
1264
1264
|
STEP_ERROR: !0
|
|
1265
1265
|
}, Ye = {
|
|
1266
1266
|
SCOPE_REFERENCE: !0
|
|
@@ -1268,8 +1268,8 @@ var Er = {
|
|
|
1268
1268
|
VALUE_IN_DESCRIPTOR: !0
|
|
1269
1269
|
}, qe = {
|
|
1270
1270
|
REGEXP_TIMEOUT: !0
|
|
1271
|
-
},
|
|
1272
|
-
function
|
|
1271
|
+
}, xr = [], Ee = null, ft = null, Be = typeof globalThis > "u" ? void 0 : globalThis, xi = ["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 On(e) {
|
|
1273
1273
|
var t = e >>> 0;
|
|
1274
1274
|
return t === Number(e) ? t : NaN;
|
|
1275
1275
|
}
|
|
@@ -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 Ar)
|
|
1299
|
+
n[r] = Ar[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 && lo(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
|
}
|
|
@@ -1332,7 +1332,7 @@ V.lb = function() {
|
|
|
1332
1332
|
try {
|
|
1333
1333
|
var i = this.rb[r.type](e, n, r);
|
|
1334
1334
|
} catch (s) {
|
|
1335
|
-
if (s !==
|
|
1335
|
+
if (s !== io)
|
|
1336
1336
|
throw this.value !== s && (this.value = void 0), s;
|
|
1337
1337
|
} finally {
|
|
1338
1338
|
ft = o;
|
|
@@ -1351,7 +1351,7 @@ V.Eb = function() {
|
|
|
1351
1351
|
return this.za;
|
|
1352
1352
|
};
|
|
1353
1353
|
function Pi(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,
|
|
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, Pn), e.g(t, "this", t, at), e.g(t, "self", t), e.M = new N(null), e.Z = new N(e.M), Oi(e, t), Ni(e, t), t.xa = e.M, e.g(t, "constructor", e.v, C), Bi(e, t), ji(e, t), Vi(e, t), Di(e, t), Ui(e, t), Wi(e, t), Li(e, t), Fi(e, t), Mi(e, t);
|
|
1355
1355
|
var n = e.i(function() {
|
|
1356
1356
|
throw EvalError("Can't happen");
|
|
1357
1357
|
}, !1);
|
|
@@ -1367,13 +1367,13 @@ 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 Pr(e, !1, arguments);
|
|
1371
1371
|
}, e.g(t, "setTimeout", e.i(n, !1), C), n = function(i) {
|
|
1372
|
-
return
|
|
1372
|
+
return Pr(e, !0, arguments);
|
|
1373
1373
|
}, e.g(t, "setInterval", e.i(n, !1), C), n = function(i) {
|
|
1374
|
-
|
|
1374
|
+
Or(e, i);
|
|
1375
1375
|
}, e.g(t, "clearTimeout", e.i(n, !1), C), n = function(i) {
|
|
1376
|
-
|
|
1376
|
+
Or(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;
|
|
@@ -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"), jn(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 = so(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 = [];
|
|
@@ -1460,7 +1460,7 @@ function Bi(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(On(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];
|
|
@@ -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 Nn(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) {
|
|
@@ -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 = so(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 Nn(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) {
|
|
@@ -1801,19 +1801,19 @@ function Je(e) {
|
|
|
1801
1801
|
writable: !0
|
|
1802
1802
|
}), t.H = "Array", t;
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1804
|
+
function Bn(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 jn(e, t, n, r) {
|
|
1809
|
+
var o = Bn(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 = Bn(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 = Bn(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 Nn(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 so(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 = On(e.G(t, "length")) || 0, n;
|
|
1890
1890
|
}
|
|
1891
1891
|
function Ie(e, t) {
|
|
1892
1892
|
switch (typeof t) {
|
|
@@ -1939,7 +1939,7 @@ 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 || Vn(this).S;
|
|
1943
1943
|
if (e instanceof N) {
|
|
1944
1944
|
if (ne(this, e, this.J)) {
|
|
1945
1945
|
var i = ht(t);
|
|
@@ -1955,7 +1955,7 @@ V.g = function(e, t, n, r) {
|
|
|
1955
1955
|
return;
|
|
1956
1956
|
n = r.value;
|
|
1957
1957
|
}
|
|
1958
|
-
if (n =
|
|
1958
|
+
if (n = On(n), isNaN(n) && I(this, this.ob, "Invalid array length"), n < i)
|
|
1959
1959
|
for (s in e.h) {
|
|
1960
1960
|
var s = ht(s);
|
|
1961
1961
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
@@ -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 Vn(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 uo(n, r, o), n || Pi(e, r.object), vt(e, t, r), r;
|
|
2024
2024
|
}
|
|
2025
|
-
function
|
|
2025
|
+
function Dn(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 uo(t, t.S, e);
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2031
|
-
for (var n =
|
|
2030
|
+
function Un(e, t) {
|
|
2031
|
+
for (var n = Vn(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 Vn(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 ao(e, t, n) {
|
|
2041
|
+
for (var r = Vn(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, $r) : e.g(n.object, s, jn(e, r[s], n), $r);
|
|
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 Wn(e, t) {
|
|
2109
|
+
return t[0] === Ye ? Un(e, t[1]) : e.G(t[0], t[1]);
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2112
|
-
return t[0] === Ye ?
|
|
2111
|
+
function Ln(e, t, n) {
|
|
2112
|
+
return t[0] === Ye ? ao(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), io) : 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 Pr(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 Ar(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 Hi(u, o, r, s, t ? n : -1),
|
|
2208
|
+
return t = new Hi(u, o, r, s, t ? n : -1), lo(e, t, n), t.Db;
|
|
2209
2209
|
}
|
|
2210
|
-
function
|
|
2210
|
+
function lo(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 Or(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,7 +2226,7 @@ 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 Fn(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;
|
|
@@ -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 uo(e, t, n) {
|
|
2252
2252
|
this.Va = e, this.S = t, this.object = n;
|
|
2253
2253
|
}
|
|
2254
2254
|
function N(e) {
|
|
@@ -2264,7 +2264,7 @@ V.toString = function() {
|
|
|
2264
2264
|
if (!(this instanceof N))
|
|
2265
2265
|
return String(this);
|
|
2266
2266
|
if (this.H === "Array") {
|
|
2267
|
-
var e =
|
|
2267
|
+
var e = xr;
|
|
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 = xr, e.indexOf(this) !== -1)
|
|
2284
2284
|
return "[object Error]";
|
|
2285
2285
|
n = this;
|
|
2286
2286
|
do
|
|
@@ -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 = Wn(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 = Ln(this, t.Fa, r))
|
|
2376
|
+
return t.ta = !0, t.ib = r, Fn(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 = Wn(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 = fn(this, t.B)), this.g(n.object, "this", t.B,
|
|
2504
|
+
return n.S || (t.B = fn(this, t.B)), this.g(n.object, "this", t.B, Pn), 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")
|
|
@@ -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 = Ln(this, t.pa, e)))
|
|
2605
|
+
return Fn(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 = Dn(this, e)), t.value = jn(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Pn);
|
|
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 = Un(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), Nn(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 = Un(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 = Dn(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 = Wn(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 = Ln(this, t.Ga, o))
|
|
2829
|
+
return t.ta = !0, t.ib = n, Fn(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 && (ao(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 = Dn(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;
|
|
@@ -2889,7 +2889,7 @@ zi();
|
|
|
2889
2889
|
const qi = (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, "."), Nr = (e) => e + "JSON", Gi = ({
|
|
2893
2893
|
builder: e,
|
|
2894
2894
|
context: t,
|
|
2895
2895
|
event: n,
|
|
@@ -2898,17 +2898,17 @@ function main()`).replace(/\?\./g, "."), xr = (e) => e + "JSON", Gi = ({
|
|
|
2898
2898
|
rootSetState: i,
|
|
2899
2899
|
code: s
|
|
2900
2900
|
}) => {
|
|
2901
|
-
const u =
|
|
2901
|
+
const u = xn({
|
|
2902
2902
|
rootState: r,
|
|
2903
2903
|
localState: o,
|
|
2904
2904
|
rootSetState: i
|
|
2905
|
-
}), c =
|
|
2905
|
+
}), c = oo({
|
|
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 = Nr($);
|
|
2912
2912
|
return $ === "state" ? "" : `var ${$} = ${H} === undefined ? undefined : JSON.parse(${H});`;
|
|
2913
2913
|
}).join(`
|
|
2914
2914
|
`), y = qi(s);
|
|
@@ -2927,7 +2927,7 @@ theFunction();
|
|
|
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, Nr(te), D);
|
|
2931
2931
|
}
|
|
2932
2932
|
});
|
|
2933
2933
|
}, S = new g(b, h);
|
|
@@ -2965,7 +2965,7 @@ function kt({
|
|
|
2965
2965
|
return;
|
|
2966
2966
|
const c = Zi(e.trim());
|
|
2967
2967
|
if (c)
|
|
2968
|
-
return
|
|
2968
|
+
return Gr({
|
|
2969
2969
|
...r,
|
|
2970
2970
|
...n
|
|
2971
2971
|
}, c);
|
|
@@ -3034,7 +3034,7 @@ 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 co(e) {
|
|
3038
3038
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
3039
3039
|
}
|
|
3040
3040
|
function rs(e) {
|
|
@@ -3042,7 +3042,7 @@ function rs(e) {
|
|
|
3042
3042
|
return !1;
|
|
3043
3043
|
let t = !1;
|
|
3044
3044
|
return Vt(e, (n) => {
|
|
3045
|
-
if (
|
|
3045
|
+
if (co(n)) {
|
|
3046
3046
|
t = !0;
|
|
3047
3047
|
return;
|
|
3048
3048
|
}
|
|
@@ -3050,14 +3050,14 @@ function rs(e) {
|
|
|
3050
3050
|
}
|
|
3051
3051
|
function os(e, t) {
|
|
3052
3052
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (Vt(e, (n, r) => {
|
|
3053
|
-
|
|
3053
|
+
co(n) && r(n[t] ?? void 0);
|
|
3054
3054
|
}), e);
|
|
3055
3055
|
}
|
|
3056
3056
|
function is(e, t) {
|
|
3057
3057
|
var n, r;
|
|
3058
3058
|
return (n = e.component) != null && n.options && rs((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 = os(e.component.options, t ?? "Default")), e;
|
|
3059
3059
|
}
|
|
3060
|
-
const
|
|
3060
|
+
const Mn = (e) => JSON.parse(JSON.stringify(e)), po = (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);
|
|
@@ -3077,7 +3077,7 @@ function Cn(e) {
|
|
|
3077
3077
|
}
|
|
3078
3078
|
const ss = ["svelte", "vue", "angular", "qwik", "solid"].includes(G), as = (e) => {
|
|
3079
3079
|
if (ss) {
|
|
3080
|
-
const t =
|
|
3080
|
+
const t = Mn(e);
|
|
3081
3081
|
return {
|
|
3082
3082
|
...t,
|
|
3083
3083
|
properties: {
|
|
@@ -3119,7 +3119,7 @@ const ss = ["svelte", "vue", "angular", "qwik", "solid"].includes(G), as = (e) =
|
|
|
3119
3119
|
rootSetState: o,
|
|
3120
3120
|
context: t
|
|
3121
3121
|
});
|
|
3122
|
-
|
|
3122
|
+
po(i, s, c);
|
|
3123
3123
|
}
|
|
3124
3124
|
return i;
|
|
3125
3125
|
};
|
|
@@ -3139,9 +3139,9 @@ function us({
|
|
|
3139
3139
|
context: t
|
|
3140
3140
|
}), i = is(i, r.locale), i;
|
|
3141
3141
|
}
|
|
3142
|
-
function
|
|
3142
|
+
function Hn(e) {
|
|
3143
3143
|
const t = e || (M() ? window.location.search : void 0);
|
|
3144
|
-
return t ?
|
|
3144
|
+
return t ? Jr(t).indexOf("builder.preview=") !== -1 : !1;
|
|
3145
3145
|
}
|
|
3146
3146
|
const cs = (e) => ({
|
|
3147
3147
|
type: "builder.registerComponent",
|
|
@@ -3153,11 +3153,11 @@ const cs = (e) => ({
|
|
|
3153
3153
|
function Dt(e) {
|
|
3154
3154
|
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? ps(n) : n));
|
|
3155
3155
|
}
|
|
3156
|
-
const
|
|
3156
|
+
const Br = {};
|
|
3157
3157
|
function tc(e, t) {
|
|
3158
3158
|
e === "plugin" && (t = Dt(t));
|
|
3159
|
-
let n =
|
|
3160
|
-
if (n || (n =
|
|
3159
|
+
let n = Br[e];
|
|
3160
|
+
if (n || (n = Br[e] = []), n.push(t), M()) {
|
|
3161
3161
|
const r = {
|
|
3162
3162
|
type: "builder.register",
|
|
3163
3163
|
data: {
|
|
@@ -3182,24 +3182,24 @@ function nc(e) {
|
|
|
3182
3182
|
}, "*");
|
|
3183
3183
|
}
|
|
3184
3184
|
}
|
|
3185
|
-
const
|
|
3185
|
+
const jr = {};
|
|
3186
3186
|
function rc(e) {
|
|
3187
3187
|
if (M()) {
|
|
3188
|
-
Object.assign(
|
|
3188
|
+
Object.assign(jr, e);
|
|
3189
3189
|
const t = {
|
|
3190
3190
|
type: "builder.settingsChange",
|
|
3191
|
-
data:
|
|
3191
|
+
data: jr
|
|
3192
3192
|
};
|
|
3193
3193
|
parent.postMessage(t, "*");
|
|
3194
3194
|
}
|
|
3195
3195
|
}
|
|
3196
|
-
const
|
|
3196
|
+
const Vr = "builder.", ds = "options.", fo = (e) => {
|
|
3197
3197
|
if (!e)
|
|
3198
3198
|
return {};
|
|
3199
|
-
const t =
|
|
3199
|
+
const t = _r(e), n = {};
|
|
3200
3200
|
return Object.keys(t).forEach((r) => {
|
|
3201
|
-
if (r.startsWith(
|
|
3202
|
-
const o = r.replace(
|
|
3201
|
+
if (r.startsWith(Vr)) {
|
|
3202
|
+
const o = r.replace(Vr, "").replace(ds, "");
|
|
3203
3203
|
n[o] = t[r];
|
|
3204
3204
|
}
|
|
3205
3205
|
}), n;
|
|
@@ -3207,22 +3207,25 @@ const Nr = "builder.", ds = "options.", uo = (e) => {
|
|
|
3207
3207
|
if (!M())
|
|
3208
3208
|
return {};
|
|
3209
3209
|
const e = new URLSearchParams(window.location.search);
|
|
3210
|
-
return
|
|
3210
|
+
return fo(e);
|
|
3211
3211
|
}, hs = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
3212
|
-
function
|
|
3213
|
-
|
|
3212
|
+
function ho(e, t) {
|
|
3213
|
+
let n;
|
|
3214
|
+
try {
|
|
3215
|
+
n = new URL(t.origin);
|
|
3216
|
+
} catch {
|
|
3214
3217
|
return !1;
|
|
3215
|
-
|
|
3216
|
-
return (e || hs).findIndex((
|
|
3218
|
+
}
|
|
3219
|
+
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || hs).findIndex((r) => r.startsWith("*.") ? n.hostname.endsWith(r.slice(1)) : r === n.hostname) > -1;
|
|
3217
3220
|
}
|
|
3218
|
-
let
|
|
3219
|
-
const
|
|
3221
|
+
let Dr = !1;
|
|
3222
|
+
const mo = (e) => {
|
|
3220
3223
|
var t, n;
|
|
3221
|
-
|
|
3224
|
+
Dr || (Dr = !0, M() && ((t = window.parent) == null || t.postMessage({
|
|
3222
3225
|
type: "builder.sdkInfo",
|
|
3223
3226
|
data: {
|
|
3224
3227
|
target: G,
|
|
3225
|
-
version:
|
|
3228
|
+
version: Yr,
|
|
3226
3229
|
supportsPatchUpdates: !1,
|
|
3227
3230
|
// Supports builder-model="..." attribute which is needed to
|
|
3228
3231
|
// scope our '+ add block' button styling
|
|
@@ -3240,7 +3243,7 @@ const po = (e) => {
|
|
|
3240
3243
|
}
|
|
3241
3244
|
}, "*"), window.addEventListener("message", (r) => {
|
|
3242
3245
|
var i, s;
|
|
3243
|
-
if (!
|
|
3246
|
+
if (!ho(e.trustedHosts, r))
|
|
3244
3247
|
return;
|
|
3245
3248
|
const {
|
|
3246
3249
|
data: o
|
|
@@ -3281,12 +3284,12 @@ const po = (e) => {
|
|
|
3281
3284
|
}
|
|
3282
3285
|
}
|
|
3283
3286
|
})));
|
|
3284
|
-
},
|
|
3287
|
+
}, go = ({
|
|
3285
3288
|
model: e,
|
|
3286
3289
|
trustedHosts: t,
|
|
3287
3290
|
callbacks: n
|
|
3288
3291
|
}) => (r) => {
|
|
3289
|
-
if (!
|
|
3292
|
+
if (!ho(t, r))
|
|
3290
3293
|
return;
|
|
3291
3294
|
const {
|
|
3292
3295
|
data: o
|
|
@@ -3321,11 +3324,11 @@ const po = (e) => {
|
|
|
3321
3324
|
if (!M)
|
|
3322
3325
|
return ue.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
3323
3326
|
};
|
|
3324
|
-
|
|
3327
|
+
mo({
|
|
3325
3328
|
modelName: e,
|
|
3326
3329
|
apiKey: t
|
|
3327
3330
|
});
|
|
3328
|
-
const o =
|
|
3331
|
+
const o = go({
|
|
3329
3332
|
callbacks: {
|
|
3330
3333
|
contentUpdate: n,
|
|
3331
3334
|
animation: () => {
|
|
@@ -3341,24 +3344,24 @@ const po = (e) => {
|
|
|
3341
3344
|
return window.addEventListener("message", o), () => {
|
|
3342
3345
|
window.removeEventListener("message", o);
|
|
3343
3346
|
};
|
|
3344
|
-
}, ms = "builder.tests",
|
|
3347
|
+
}, ms = "builder.tests", Kn = (e) => `${ms}.${e}`, gs = ({
|
|
3345
3348
|
contentId: e
|
|
3346
|
-
}) =>
|
|
3347
|
-
name:
|
|
3349
|
+
}) => Zr({
|
|
3350
|
+
name: Kn(e),
|
|
3348
3351
|
canTrack: !0
|
|
3349
3352
|
}), ys = ({
|
|
3350
3353
|
contentId: e
|
|
3351
3354
|
}) => Lt({
|
|
3352
|
-
name:
|
|
3355
|
+
name: Kn(e),
|
|
3353
3356
|
canTrack: !0
|
|
3354
3357
|
}), vs = ({
|
|
3355
3358
|
contentId: e,
|
|
3356
3359
|
value: t
|
|
3357
|
-
}) =>
|
|
3358
|
-
name:
|
|
3360
|
+
}) => An({
|
|
3361
|
+
name: Kn(e),
|
|
3359
3362
|
value: t,
|
|
3360
3363
|
canTrack: !0
|
|
3361
|
-
}),
|
|
3364
|
+
}), yo = (e) => Ne(e.id) && Ne(e.variations) && Object.keys(e.variations).length > 0, bs = ({
|
|
3362
3365
|
id: e,
|
|
3363
3366
|
variations: t
|
|
3364
3367
|
}) => {
|
|
@@ -3371,7 +3374,7 @@ const po = (e) => {
|
|
|
3371
3374
|
return i;
|
|
3372
3375
|
}
|
|
3373
3376
|
return e;
|
|
3374
|
-
},
|
|
3377
|
+
}, vo = (e) => {
|
|
3375
3378
|
const t = bs(e);
|
|
3376
3379
|
return vs({
|
|
3377
3380
|
contentId: e.id,
|
|
@@ -3379,7 +3382,7 @@ const po = (e) => {
|
|
|
3379
3382
|
}).catch((n) => {
|
|
3380
3383
|
ue.error("could not store A/B test variation: ", n);
|
|
3381
3384
|
}), t;
|
|
3382
|
-
},
|
|
3385
|
+
}, bo = ({
|
|
3383
3386
|
item: e,
|
|
3384
3387
|
testGroupId: t
|
|
3385
3388
|
}) => {
|
|
@@ -3401,14 +3404,14 @@ const po = (e) => {
|
|
|
3401
3404
|
return e;
|
|
3402
3405
|
if (!e)
|
|
3403
3406
|
return;
|
|
3404
|
-
if (!
|
|
3407
|
+
if (!yo(e))
|
|
3405
3408
|
return e;
|
|
3406
3409
|
const n = ys({
|
|
3407
3410
|
contentId: e.id
|
|
3408
|
-
}) ||
|
|
3411
|
+
}) || vo({
|
|
3409
3412
|
variations: e.variations,
|
|
3410
3413
|
id: e.id
|
|
3411
|
-
}), r =
|
|
3414
|
+
}), r = bo({
|
|
3412
3415
|
item: e,
|
|
3413
3416
|
testGroupId: n
|
|
3414
3417
|
});
|
|
@@ -3420,14 +3423,14 @@ const po = (e) => {
|
|
|
3420
3423
|
item: e,
|
|
3421
3424
|
canTrack: t
|
|
3422
3425
|
}) => {
|
|
3423
|
-
if (!t || !
|
|
3426
|
+
if (!t || !yo(e))
|
|
3424
3427
|
return e;
|
|
3425
3428
|
const r = await gs({
|
|
3426
3429
|
contentId: e.id
|
|
3427
|
-
}) ||
|
|
3430
|
+
}) || vo({
|
|
3428
3431
|
variations: e.variations,
|
|
3429
3432
|
id: e.id
|
|
3430
|
-
}), o =
|
|
3433
|
+
}), o = bo({
|
|
3431
3434
|
item: e,
|
|
3432
3435
|
testGroupId: r
|
|
3433
3436
|
});
|
|
@@ -3436,8 +3439,8 @@ const po = (e) => {
|
|
|
3436
3439
|
...o
|
|
3437
3440
|
};
|
|
3438
3441
|
};
|
|
3439
|
-
const
|
|
3440
|
-
function
|
|
3442
|
+
const Ur = "builder.userAttributes";
|
|
3443
|
+
function Wr() {
|
|
3441
3444
|
let e = !0;
|
|
3442
3445
|
const t = /* @__PURE__ */ new Set();
|
|
3443
3446
|
return {
|
|
@@ -3448,15 +3451,15 @@ function Vr() {
|
|
|
3448
3451
|
...this.getUserAttributes(),
|
|
3449
3452
|
...n
|
|
3450
3453
|
};
|
|
3451
|
-
|
|
3452
|
-
name:
|
|
3454
|
+
An({
|
|
3455
|
+
name: Ur,
|
|
3453
3456
|
value: JSON.stringify(r),
|
|
3454
3457
|
canTrack: e
|
|
3455
3458
|
}), t.forEach((o) => o(r));
|
|
3456
3459
|
},
|
|
3457
3460
|
getUserAttributes() {
|
|
3458
3461
|
return M() ? JSON.parse(Lt({
|
|
3459
|
-
name:
|
|
3462
|
+
name: Ur,
|
|
3460
3463
|
canTrack: e
|
|
3461
3464
|
}) || "{}") : {};
|
|
3462
3465
|
},
|
|
@@ -3473,7 +3476,7 @@ function Vr() {
|
|
|
3473
3476
|
};
|
|
3474
3477
|
}
|
|
3475
3478
|
let wn;
|
|
3476
|
-
M() && G === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ =
|
|
3479
|
+
M() && G === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Wr()), wn = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : wn = Wr();
|
|
3477
3480
|
const Ut = wn, ic = (e) => {
|
|
3478
3481
|
Ut.setUserAttributes(e);
|
|
3479
3482
|
}, Xe = (e) => {
|
|
@@ -3503,10 +3506,10 @@ function Tn(e, t = null, n = ".") {
|
|
|
3503
3506
|
};
|
|
3504
3507
|
}, {});
|
|
3505
3508
|
}
|
|
3506
|
-
function
|
|
3509
|
+
function So(e, t, n = {}) {
|
|
3507
3510
|
for (const r in e) {
|
|
3508
3511
|
const o = e[r], i = t ? t + "." + r : r;
|
|
3509
|
-
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("$")) ? So(o, i, n) : n[i] = o;
|
|
3510
3513
|
}
|
|
3511
3514
|
return n;
|
|
3512
3515
|
}
|
|
@@ -3522,7 +3525,7 @@ function Es(e) {
|
|
|
3522
3525
|
}
|
|
3523
3526
|
return t;
|
|
3524
3527
|
}
|
|
3525
|
-
const Is = "v3",
|
|
3528
|
+
const Is = "v3", Lr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, zn = (e) => {
|
|
3526
3529
|
const {
|
|
3527
3530
|
limit: t = 30,
|
|
3528
3531
|
userAttributes: n,
|
|
@@ -3548,7 +3551,7 @@ const Is = "v3", Dr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Hn = (
|
|
|
3548
3551
|
const te = t !== 1, E = H || "https://cdn.builder.io", D = new URL(`${E}/api/${c}/content/${o}`);
|
|
3549
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);
|
|
3550
3553
|
let ie = n || {};
|
|
3551
|
-
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 &&
|
|
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 && Lr(h) && D.searchParams.set("cacheSeconds", String(h)), S && Lr(S) && D.searchParams.set("staleCacheSeconds", String(S)), A) {
|
|
3552
3555
|
const _ = Tn({
|
|
3553
3556
|
sort: A
|
|
3554
3557
|
});
|
|
@@ -3557,7 +3560,7 @@ const Is = "v3", Dr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Hn = (
|
|
|
3557
3560
|
}
|
|
3558
3561
|
const Ae = {
|
|
3559
3562
|
...fs(),
|
|
3560
|
-
...
|
|
3563
|
+
..._r(e.options || {})
|
|
3561
3564
|
};
|
|
3562
3565
|
ie = {
|
|
3563
3566
|
...ie,
|
|
@@ -3567,7 +3570,7 @@ const Is = "v3", Dr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Hn = (
|
|
|
3567
3570
|
for (const _ in K)
|
|
3568
3571
|
D.searchParams.set(_, String(K[_]));
|
|
3569
3572
|
if (Object.keys(ie).length > 0 && D.searchParams.set("userAttributes", JSON.stringify(ie)), r) {
|
|
3570
|
-
const _ =
|
|
3573
|
+
const _ = So({
|
|
3571
3574
|
query: r
|
|
3572
3575
|
});
|
|
3573
3576
|
for (const R in _)
|
|
@@ -3589,7 +3592,7 @@ const Is = "v3", Dr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Hn = (
|
|
|
3589
3592
|
}
|
|
3590
3593
|
return {};
|
|
3591
3594
|
}, $s = (e) => "results" in e;
|
|
3592
|
-
async function
|
|
3595
|
+
async function qn(e) {
|
|
3593
3596
|
var r;
|
|
3594
3597
|
const t = e.locale || ((r = e.userAttributes) == null ? void 0 : r.locale);
|
|
3595
3598
|
t && (e.locale = t, e.userAttributes = {
|
|
@@ -3604,15 +3607,15 @@ async function Kn(e) {
|
|
|
3604
3607
|
}
|
|
3605
3608
|
const xs = async (e) => {
|
|
3606
3609
|
var s;
|
|
3607
|
-
const t =
|
|
3610
|
+
const t = zn(e), n = e.fetch ?? Ts, r = {
|
|
3608
3611
|
...e.fetchOptions,
|
|
3609
3612
|
headers: {
|
|
3610
3613
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
3611
|
-
...
|
|
3614
|
+
...Qr()
|
|
3612
3615
|
}
|
|
3613
3616
|
};
|
|
3614
3617
|
return await (await n(t.href, r)).json();
|
|
3615
|
-
}, Ps = async (e, t, n =
|
|
3618
|
+
}, Ps = async (e, t, n = zn(e)) => {
|
|
3616
3619
|
const r = Xe(e.canTrack);
|
|
3617
3620
|
if (n.search.includes("preview="), !r || !(M() || G === "reactNative"))
|
|
3618
3621
|
return t.results;
|
|
@@ -3630,7 +3633,7 @@ const xs = async (e) => {
|
|
|
3630
3633
|
return t.results;
|
|
3631
3634
|
};
|
|
3632
3635
|
async function Os(e) {
|
|
3633
|
-
const t =
|
|
3636
|
+
const t = zn(e), n = await xs(e);
|
|
3634
3637
|
if (!$s(n))
|
|
3635
3638
|
throw ue.error("Error fetching data. ", {
|
|
3636
3639
|
url: t,
|
|
@@ -3651,14 +3654,14 @@ const sc = async (e) => {
|
|
|
3651
3654
|
urlPath: t
|
|
3652
3655
|
} : {}
|
|
3653
3656
|
},
|
|
3654
|
-
options:
|
|
3657
|
+
options: fo(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
3655
3658
|
};
|
|
3656
3659
|
return {
|
|
3657
3660
|
apiKey: n.apiKey,
|
|
3658
3661
|
model: n.model,
|
|
3659
|
-
content: await
|
|
3662
|
+
content: await qn(n)
|
|
3660
3663
|
};
|
|
3661
|
-
},
|
|
3664
|
+
}, Gn = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
3662
3665
|
function Ns(e, t, n = {}) {
|
|
3663
3666
|
let r, o, i, s = null, u = 0;
|
|
3664
3667
|
const c = function() {
|
|
@@ -3685,17 +3688,17 @@ function Bs(e) {
|
|
|
3685
3688
|
for (const t of e)
|
|
3686
3689
|
switch (t.trigger) {
|
|
3687
3690
|
case "pageLoad":
|
|
3688
|
-
|
|
3691
|
+
wo(t);
|
|
3689
3692
|
break;
|
|
3690
3693
|
case "scrollInView":
|
|
3691
3694
|
Vs(t);
|
|
3692
3695
|
break;
|
|
3693
3696
|
}
|
|
3694
3697
|
}
|
|
3695
|
-
function
|
|
3698
|
+
function ko(e) {
|
|
3696
3699
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
3697
3700
|
}
|
|
3698
|
-
function
|
|
3701
|
+
function Co(e, t) {
|
|
3699
3702
|
const n = js(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
3700
3703
|
for (const u of s)
|
|
3701
3704
|
for (const c of n)
|
|
@@ -3708,15 +3711,15 @@ function js(e) {
|
|
|
3708
3711
|
t.indexOf(r) === -1 && t.push(r);
|
|
3709
3712
|
return t;
|
|
3710
3713
|
}
|
|
3711
|
-
function
|
|
3714
|
+
function wo(e) {
|
|
3712
3715
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
3713
3716
|
if (!t.length) {
|
|
3714
|
-
|
|
3717
|
+
ko(e.elementId || e.id || "");
|
|
3715
3718
|
return;
|
|
3716
3719
|
}
|
|
3717
3720
|
Array.from(t).forEach((n) => {
|
|
3718
|
-
|
|
3719
|
-
n.style.transition = `all ${e.duration}s ${
|
|
3721
|
+
Co(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 ${Gn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), mt(n.style, e.steps[1].styles), setTimeout(() => {
|
|
3720
3723
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
3721
3724
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
3722
3725
|
});
|
|
@@ -3725,11 +3728,11 @@ function So(e) {
|
|
|
3725
3728
|
function Vs(e) {
|
|
3726
3729
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
3727
3730
|
if (!t.length) {
|
|
3728
|
-
|
|
3731
|
+
ko(e.elementId || e.id || "");
|
|
3729
3732
|
return;
|
|
3730
3733
|
}
|
|
3731
3734
|
Array.from(t).forEach((n) => {
|
|
3732
|
-
|
|
3735
|
+
Co(e, n);
|
|
3733
3736
|
let r = !1, o = !1;
|
|
3734
3737
|
function i() {
|
|
3735
3738
|
!r && u(n) ? (r = !0, o = !0, setTimeout(() => {
|
|
@@ -3750,17 +3753,17 @@ function Vs(e) {
|
|
|
3750
3753
|
mt(n.style, c);
|
|
3751
3754
|
}
|
|
3752
3755
|
m(), setTimeout(() => {
|
|
3753
|
-
n.style.transition = `all ${e.duration}s ${
|
|
3756
|
+
n.style.transition = `all ${e.duration}s ${Gn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
3754
3757
|
}), document.addEventListener("scroll", s, {
|
|
3755
3758
|
capture: !0,
|
|
3756
3759
|
passive: !0
|
|
3757
3760
|
}), i();
|
|
3758
3761
|
});
|
|
3759
3762
|
}
|
|
3760
|
-
const
|
|
3763
|
+
const To = (e) => Object.entries(e).map(([n, r]) => {
|
|
3761
3764
|
if (typeof r == "string")
|
|
3762
|
-
return `${
|
|
3763
|
-
}).filter(Ne), Ds = (e) =>
|
|
3765
|
+
return `${Gn(n)}: ${r};`;
|
|
3766
|
+
}).filter(Ne), Ds = (e) => To(e).join(`
|
|
3764
3767
|
`), ac = ({
|
|
3765
3768
|
mediaQuery: e,
|
|
3766
3769
|
className: t,
|
|
@@ -3781,18 +3784,18 @@ function Us({
|
|
|
3781
3784
|
const lc = ({
|
|
3782
3785
|
block: e,
|
|
3783
3786
|
context: t
|
|
3784
|
-
}) =>
|
|
3787
|
+
}) => Eo(Us({
|
|
3785
3788
|
style: e.style || {},
|
|
3786
3789
|
context: t,
|
|
3787
3790
|
block: e
|
|
3788
3791
|
}));
|
|
3789
|
-
function
|
|
3792
|
+
function Eo(e) {
|
|
3790
3793
|
switch (G) {
|
|
3791
3794
|
case "svelte":
|
|
3792
3795
|
case "vue":
|
|
3793
3796
|
case "solid":
|
|
3794
3797
|
case "angular":
|
|
3795
|
-
return
|
|
3798
|
+
return To(e).join(" ");
|
|
3796
3799
|
case "qwik":
|
|
3797
3800
|
case "reactNative":
|
|
3798
3801
|
case "react":
|
|
@@ -3800,7 +3803,7 @@ function Co(e) {
|
|
|
3800
3803
|
return e;
|
|
3801
3804
|
}
|
|
3802
3805
|
}
|
|
3803
|
-
const
|
|
3806
|
+
const Io = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Ws = ({
|
|
3804
3807
|
block: e,
|
|
3805
3808
|
registeredComponents: t,
|
|
3806
3809
|
model: n
|
|
@@ -3810,7 +3813,7 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3810
3813
|
if (!r)
|
|
3811
3814
|
return null;
|
|
3812
3815
|
const o = t[r];
|
|
3813
|
-
if (!o ||
|
|
3816
|
+
if (!o || Io(o, n)) {
|
|
3814
3817
|
console.warn(`
|
|
3815
3818
|
Could not find a registered component named "${r}".
|
|
3816
3819
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
@@ -3858,7 +3861,7 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3858
3861
|
}, Ms = (e, t, n) => {
|
|
3859
3862
|
var r;
|
|
3860
3863
|
return (r = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && r.builderComponents ? {
|
|
3861
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !
|
|
3864
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !Io(s, n)))
|
|
3862
3865
|
} : {};
|
|
3863
3866
|
}, Hs = (e, t) => {
|
|
3864
3867
|
var n;
|
|
@@ -3875,22 +3878,22 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3875
3878
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3876
3879
|
e
|
|
3877
3880
|
), e;
|
|
3878
|
-
}), Gs = () => import("./block-wrapper-
|
|
3881
|
+
}), Gs = () => import("./block-wrapper-46vOpFGy.js").then((e) => e.default).catch((e) => {
|
|
3879
3882
|
throw console.error(
|
|
3880
3883
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3881
3884
|
e
|
|
3882
3885
|
), e;
|
|
3883
|
-
}), _s = () => import("./component-ref-
|
|
3886
|
+
}), _s = () => import("./component-ref-yTXpKy_r.js").then((e) => e.default).catch((e) => {
|
|
3884
3887
|
throw console.error(
|
|
3885
3888
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3886
3889
|
e
|
|
3887
3890
|
), e;
|
|
3888
|
-
}), Js = () => import("./repeated-block-
|
|
3891
|
+
}), Js = () => import("./repeated-block-eANZkOUH.js").then((e) => e.default).catch((e) => {
|
|
3889
3892
|
throw console.error(
|
|
3890
3893
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3891
3894
|
e
|
|
3892
3895
|
), e;
|
|
3893
|
-
}), Xs = () => import("./style-wrapper-
|
|
3896
|
+
}), Xs = () => import("./style-wrapper-GqtgkGuc.js").then((e) => e.default).catch((e) => {
|
|
3894
3897
|
throw console.error(
|
|
3895
3898
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
3896
3899
|
e
|
|
@@ -4056,9 +4059,9 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4056
4059
|
], 64))
|
|
4057
4060
|
], 64)) : F("", !0);
|
|
4058
4061
|
}
|
|
4059
|
-
const
|
|
4062
|
+
const Ro = /* @__PURE__ */ j(Ys, [["render", Qs]]), uc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4060
4063
|
__proto__: null,
|
|
4061
|
-
default:
|
|
4064
|
+
default: Ro
|
|
4062
4065
|
}, Symbol.toStringTag, { value: "Module" })), Zs = B({
|
|
4063
4066
|
name: "builder-blocks-wrapper",
|
|
4064
4067
|
props: [
|
|
@@ -4148,7 +4151,7 @@ function ea(e, t, n, r, o, i) {
|
|
|
4148
4151
|
}
|
|
4149
4152
|
const ta = /* @__PURE__ */ j(Zs, [["render", ea], ["__scopeId", "data-v-82fc93d6"]]), na = B({
|
|
4150
4153
|
name: "builder-blocks",
|
|
4151
|
-
components: { BlocksWrapper: ta, Block:
|
|
4154
|
+
components: { BlocksWrapper: ta, Block: Ro },
|
|
4152
4155
|
props: [
|
|
4153
4156
|
"blocks",
|
|
4154
4157
|
"parent",
|
|
@@ -4162,7 +4165,7 @@ const ta = /* @__PURE__ */ j(Zs, [["render", ea], ["__scopeId", "data-v-82fc93d6
|
|
|
4162
4165
|
],
|
|
4163
4166
|
inject: {
|
|
4164
4167
|
builderContext: vn.key,
|
|
4165
|
-
componentsContext:
|
|
4168
|
+
componentsContext: qr.key
|
|
4166
4169
|
}
|
|
4167
4170
|
});
|
|
4168
4171
|
function ra(e, t, n, r, o, i) {
|
|
@@ -4207,7 +4210,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4207
4210
|
default: Ct
|
|
4208
4211
|
}, Symbol.toStringTag, { value: "Module" })), Ht = B({
|
|
4209
4212
|
render() {
|
|
4210
|
-
return
|
|
4213
|
+
return zr("style", {
|
|
4211
4214
|
innerHTML: this.styles,
|
|
4212
4215
|
"data-id": this.id,
|
|
4213
4216
|
nonce: this.nonce
|
|
@@ -4215,7 +4218,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4215
4218
|
},
|
|
4216
4219
|
name: "inlined-styles",
|
|
4217
4220
|
props: ["styles", "id", "nonce"]
|
|
4218
|
-
}),
|
|
4221
|
+
}), Ao = {
|
|
4219
4222
|
xsmall: {
|
|
4220
4223
|
min: 0,
|
|
4221
4224
|
default: 160,
|
|
@@ -4236,8 +4239,8 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4236
4239
|
default: 991,
|
|
4237
4240
|
max: 1200
|
|
4238
4241
|
}
|
|
4239
|
-
}, cc = (e, t =
|
|
4240
|
-
const t =
|
|
4242
|
+
}, cc = (e, t = Ao) => `@media (max-width: ${t[e].max}px)`, aa = (e) => {
|
|
4243
|
+
const t = Mn(Ao);
|
|
4241
4244
|
if (!e)
|
|
4242
4245
|
return t;
|
|
4243
4246
|
const {
|
|
@@ -4278,7 +4281,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4278
4281
|
name: "builder-columns",
|
|
4279
4282
|
components: {
|
|
4280
4283
|
InlinedStyles: Ht,
|
|
4281
|
-
DynamicRenderer:
|
|
4284
|
+
DynamicRenderer: Rn,
|
|
4282
4285
|
Blocks: Ue,
|
|
4283
4286
|
DynamicDiv: Ct
|
|
4284
4287
|
},
|
|
@@ -4410,7 +4413,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4410
4413
|
href: e.link
|
|
4411
4414
|
} : {},
|
|
4412
4415
|
[Oe()]: "builder-column",
|
|
4413
|
-
style:
|
|
4416
|
+
style: Eo(this.columnCssVars(t))
|
|
4414
4417
|
};
|
|
4415
4418
|
}
|
|
4416
4419
|
}
|
|
@@ -4461,7 +4464,7 @@ function fa(e, t, n, r, o, i) {
|
|
|
4461
4464
|
]);
|
|
4462
4465
|
}
|
|
4463
4466
|
const ha = /* @__PURE__ */ j(da, [["render", fa]]);
|
|
4464
|
-
function
|
|
4467
|
+
function Fr(e) {
|
|
4465
4468
|
return e.replace(/http(s)?:/, "");
|
|
4466
4469
|
}
|
|
4467
4470
|
function ma(e = "", t, n) {
|
|
@@ -4472,11 +4475,11 @@ function ga(e, t) {
|
|
|
4472
4475
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
4473
4476
|
return e;
|
|
4474
4477
|
if (t === "master")
|
|
4475
|
-
return
|
|
4478
|
+
return Fr(e);
|
|
4476
4479
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
4477
4480
|
if (n) {
|
|
4478
4481
|
const r = e.split(n[0]), o = n[3], i = t.match("x") ? t : `${t}x`;
|
|
4479
|
-
return
|
|
4482
|
+
return Fr(`${r[0]}_${i}${o}`);
|
|
4480
4483
|
}
|
|
4481
4484
|
return null;
|
|
4482
4485
|
}
|
|
@@ -4831,9 +4834,9 @@ const Ra = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
4831
4834
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
4832
4835
|
}
|
|
4833
4836
|
}
|
|
4834
|
-
}`, Nt = "default", xa = "filterWithCustomTargeting",
|
|
4837
|
+
}`, Nt = "default", xa = "filterWithCustomTargeting", $o = "builderIoPersonalization", xo = "updateVisibilityStylesScript", Po = ["react", "vue", "svelte", "qwik"], Oo = ["vue", "svelte", "qwik"];
|
|
4835
4838
|
function Pa(e, t) {
|
|
4836
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
4839
|
+
return !(e && e.length > 0) || !t ? !1 : Oo.includes(G) ? !0 : !M();
|
|
4837
4840
|
}
|
|
4838
4841
|
function Oa({
|
|
4839
4842
|
variants: e,
|
|
@@ -4875,9 +4878,9 @@ function Oa({
|
|
|
4875
4878
|
}
|
|
4876
4879
|
const Na = () => `
|
|
4877
4880
|
window.${xa} = ${Aa}
|
|
4878
|
-
window.${
|
|
4879
|
-
window.${
|
|
4880
|
-
`,
|
|
4881
|
+
window.${$o} = ${Ra}
|
|
4882
|
+
window.${xo} = ${$a}
|
|
4883
|
+
`, No = G === "react", Ba = (e, t, n) => `window.${$o}(${JSON.stringify(e)}, "${t}", ${No}${n ? `, "${n}"` : ""})`, ja = (e, t, n) => `window.${xo}(${JSON.stringify(e)}, "${t}", ${No}${n ? `, "${n}"` : ""})`, hn = {
|
|
4881
4884
|
"@type": "@builder.io/sdk:Element",
|
|
4882
4885
|
layerName: "Accordion item title",
|
|
4883
4886
|
responsiveStyles: {
|
|
@@ -5391,7 +5394,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5391
5394
|
hidden: !0,
|
|
5392
5395
|
canHaveChildren: !0,
|
|
5393
5396
|
noWrap: !0
|
|
5394
|
-
},
|
|
5397
|
+
}, _n = ["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"], za = ["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"], qa = {
|
|
5395
5398
|
name: "Image",
|
|
5396
5399
|
static: !0,
|
|
5397
5400
|
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",
|
|
@@ -5406,7 +5409,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5406
5409
|
name: "image",
|
|
5407
5410
|
type: "file",
|
|
5408
5411
|
bubble: !0,
|
|
5409
|
-
allowedFileTypes:
|
|
5412
|
+
allowedFileTypes: _n,
|
|
5410
5413
|
required: !0,
|
|
5411
5414
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
5412
5415
|
onChange: (e) => {
|
|
@@ -5539,9 +5542,9 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5539
5542
|
defaultValue: []
|
|
5540
5543
|
}]
|
|
5541
5544
|
}]
|
|
5542
|
-
},
|
|
5545
|
+
}, Jn = B({
|
|
5543
5546
|
render() {
|
|
5544
|
-
return
|
|
5547
|
+
return zr("script", {
|
|
5545
5548
|
innerHTML: this.scriptStr,
|
|
5546
5549
|
"data-id": this.id,
|
|
5547
5550
|
nonce: this.nonce
|
|
@@ -5554,7 +5557,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5554
5557
|
components: {
|
|
5555
5558
|
Blocks: Ue,
|
|
5556
5559
|
InlinedStyles: Ht,
|
|
5557
|
-
InlinedScript:
|
|
5560
|
+
InlinedScript: Jn
|
|
5558
5561
|
},
|
|
5559
5562
|
props: [
|
|
5560
5563
|
"builderContext",
|
|
@@ -5586,7 +5589,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5586
5589
|
shouldResetVariants: !1,
|
|
5587
5590
|
TARGET: G,
|
|
5588
5591
|
DEFAULT_INDEX: Nt,
|
|
5589
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
5592
|
+
SDKS_REQUIRING_RESET_APPROACH: Oo
|
|
5590
5593
|
};
|
|
5591
5594
|
},
|
|
5592
5595
|
mounted() {
|
|
@@ -5600,7 +5603,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5600
5603
|
fireImmediately: G === "qwik"
|
|
5601
5604
|
}
|
|
5602
5605
|
);
|
|
5603
|
-
if (!(oe() ||
|
|
5606
|
+
if (!(oe() || Hn())) {
|
|
5604
5607
|
const n = this.filteredVariants[0];
|
|
5605
5608
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
5606
5609
|
new CustomEvent("builder.variantLoaded", {
|
|
@@ -6608,7 +6611,7 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6608
6611
|
else {
|
|
6609
6612
|
const h = {};
|
|
6610
6613
|
Array.from(u).forEach(({ value: S, key: A }) => {
|
|
6611
|
-
|
|
6614
|
+
po(h, A, S);
|
|
6612
6615
|
}), i = JSON.stringify(h);
|
|
6613
6616
|
}
|
|
6614
6617
|
c && c !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (o["content-type"] = c));
|
|
@@ -6629,7 +6632,7 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6629
6632
|
const y = `${Al() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
6630
6633
|
this.sendSubmissionsToEmail || ""
|
|
6631
6634
|
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? y : this.action;
|
|
6632
|
-
|
|
6635
|
+
$n(b), fetch(b, {
|
|
6633
6636
|
body: i,
|
|
6634
6637
|
headers: o,
|
|
6635
6638
|
method: this.method || "post"
|
|
@@ -6650,7 +6653,7 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6650
6653
|
), te.defaultPrevented))
|
|
6651
6654
|
return;
|
|
6652
6655
|
this.responseData = S, this.formState = "error";
|
|
6653
|
-
let E = this.errorMessagePath ?
|
|
6656
|
+
let E = this.errorMessagePath ? Gr(S, this.errorMessagePath) : S.message || S.error || S;
|
|
6654
6657
|
typeof E != "string" && (E = JSON.stringify(E)), this.formErrorMessage = E, this.mergeNewRootState({
|
|
6655
6658
|
formErrorMessage: E
|
|
6656
6659
|
});
|
|
@@ -6970,7 +6973,7 @@ const Zl = /* @__PURE__ */ j(Xl, [["render", Ql]]), eu = {
|
|
|
6970
6973
|
name: "image",
|
|
6971
6974
|
bubble: !0,
|
|
6972
6975
|
type: "file",
|
|
6973
|
-
allowedFileTypes:
|
|
6976
|
+
allowedFileTypes: _n,
|
|
6974
6977
|
required: !0
|
|
6975
6978
|
}, {
|
|
6976
6979
|
name: "backgroundSize",
|
|
@@ -7071,7 +7074,7 @@ const ou = /* @__PURE__ */ j(tu, [["render", ru]]), iu = {
|
|
|
7071
7074
|
}, {
|
|
7072
7075
|
name: "posterImage",
|
|
7073
7076
|
type: "file",
|
|
7074
|
-
allowedFileTypes:
|
|
7077
|
+
allowedFileTypes: _n,
|
|
7075
7078
|
helperText: "Image to show before the video plays"
|
|
7076
7079
|
}, {
|
|
7077
7080
|
name: "autoPlay",
|
|
@@ -7308,7 +7311,7 @@ const du = /* @__PURE__ */ j(su, [["render", pu]]), fu = () => [{
|
|
|
7308
7311
|
}, {
|
|
7309
7312
|
component: du,
|
|
7310
7313
|
...iu
|
|
7311
|
-
}],
|
|
7314
|
+
}], Mr = () => [{
|
|
7312
7315
|
component: oi,
|
|
7313
7316
|
...Ma
|
|
7314
7317
|
}, {
|
|
@@ -7332,7 +7335,7 @@ const du = /* @__PURE__ */ j(su, [["render", pu]]), fu = () => [{
|
|
|
7332
7335
|
}, {
|
|
7333
7336
|
component: fl,
|
|
7334
7337
|
...ul
|
|
7335
|
-
}, ...
|
|
7338
|
+
}, ...Po.includes(G) ? [{
|
|
7336
7339
|
component: Xa,
|
|
7337
7340
|
...Ga
|
|
7338
7341
|
}] : [], {
|
|
@@ -7434,26 +7437,34 @@ const du = /* @__PURE__ */ j(su, [["render", pu]]), fu = () => [{
|
|
|
7434
7437
|
thisScriptEl?.remove();
|
|
7435
7438
|
}
|
|
7436
7439
|
return;
|
|
7437
|
-
}`,
|
|
7440
|
+
}`, En = "builderIoAbTest", In = "builderIoRenderContent", Bt = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
7438
7441
|
...t,
|
|
7439
7442
|
testVariationId: t.id,
|
|
7440
7443
|
id: e == null ? void 0 : e.id
|
|
7441
7444
|
})), gu = ({
|
|
7442
7445
|
canTrack: e,
|
|
7443
7446
|
content: t
|
|
7444
|
-
}) => !(!(Bt(t).length > 0) || !e), yu = (e) => e === "react" || e === "reactNative", vu = G === "angular",
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
+
}) => !(!(Bt(t).length > 0) || !e), yu = (e) => e === "react" || e === "reactNative", vu = G === "angular", Xn = yu(G), bu = () => `
|
|
7448
|
+
(function() {
|
|
7449
|
+
if (!window.${En}) {
|
|
7450
|
+
window.${En} = ${hu};
|
|
7451
|
+
}
|
|
7452
|
+
if (!window.${In}) {
|
|
7453
|
+
window.${In} = ${mu};
|
|
7454
|
+
}${Xn ? `
|
|
7455
|
+
var thisScriptEl = document.currentScript;
|
|
7456
|
+
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
7457
|
+
})();
|
|
7447
7458
|
`, Su = (e, t) => `
|
|
7448
|
-
window.${
|
|
7449
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
7459
|
+
window.${En}(
|
|
7460
|
+
"${t}",${JSON.stringify(e)}, ${Xn}, ${vu}
|
|
7450
7461
|
)`, ku = ({
|
|
7451
7462
|
contentId: e,
|
|
7452
7463
|
variationId: t
|
|
7453
|
-
}) => `window.${
|
|
7454
|
-
"${t}", "${e}", ${
|
|
7464
|
+
}) => `window.${In}(
|
|
7465
|
+
"${t}", "${e}", ${Xn}
|
|
7455
7466
|
)`;
|
|
7456
|
-
function
|
|
7467
|
+
function Hr(e) {
|
|
7457
7468
|
return Math.round(e * 1e3) / 1e3;
|
|
7458
7469
|
}
|
|
7459
7470
|
const Cu = (e, t, n = !0) => {
|
|
@@ -7470,11 +7481,11 @@ const Cu = (e, t, n = !0) => {
|
|
|
7470
7481
|
}, wu = (e) => Cu(e, (t) => {
|
|
7471
7482
|
const n = t.getAttribute("builder-id") || t.id;
|
|
7472
7483
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
7473
|
-
}),
|
|
7484
|
+
}), Kr = ({
|
|
7474
7485
|
event: e,
|
|
7475
7486
|
target: t
|
|
7476
7487
|
}) => {
|
|
7477
|
-
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i =
|
|
7488
|
+
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i = Hr(r / n.width), s = Hr(o / n.height);
|
|
7478
7489
|
return {
|
|
7479
7490
|
x: i,
|
|
7480
7491
|
y: s
|
|
@@ -7484,18 +7495,18 @@ const Cu = (e, t, n = !0) => {
|
|
|
7484
7495
|
return {
|
|
7485
7496
|
targetBuilderElement: r || void 0,
|
|
7486
7497
|
metadata: {
|
|
7487
|
-
targetOffset: t ?
|
|
7498
|
+
targetOffset: t ? Kr({
|
|
7488
7499
|
event: e,
|
|
7489
7500
|
target: t
|
|
7490
7501
|
}) : void 0,
|
|
7491
|
-
builderTargetOffset: n ?
|
|
7502
|
+
builderTargetOffset: n ? Kr({
|
|
7492
7503
|
event: e,
|
|
7493
7504
|
target: n
|
|
7494
7505
|
}) : void 0,
|
|
7495
7506
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
7496
7507
|
}
|
|
7497
7508
|
};
|
|
7498
|
-
}, Eu = ["svelte", "qwik", "vue"], Iu = () => Eu.includes(G) && (oe() ||
|
|
7509
|
+
}, Eu = ["svelte", "qwik", "vue"], Iu = () => Eu.includes(G) && (oe() || Hn()), Ru = (e) => {
|
|
7499
7510
|
var i;
|
|
7500
7511
|
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);
|
|
7501
7512
|
let o = "";
|
|
@@ -7611,7 +7622,7 @@ font-weight: ${s};
|
|
|
7611
7622
|
variationId: o !== s ? o : void 0
|
|
7612
7623
|
});
|
|
7613
7624
|
}
|
|
7614
|
-
|
|
7625
|
+
Hn() && !oe() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
7615
7626
|
new CustomEvent("initpreviewingbldr")
|
|
7616
7627
|
);
|
|
7617
7628
|
}
|
|
@@ -7713,7 +7724,7 @@ font-weight: ${s};
|
|
|
7713
7724
|
this.builderContextSignal.content = n;
|
|
7714
7725
|
},
|
|
7715
7726
|
processMessage(e) {
|
|
7716
|
-
return
|
|
7727
|
+
return go({
|
|
7717
7728
|
model: this.model,
|
|
7718
7729
|
trustedHosts: this.trustedHosts,
|
|
7719
7730
|
callbacks: {
|
|
@@ -7727,7 +7738,7 @@ font-weight: ${s};
|
|
|
7727
7738
|
});
|
|
7728
7739
|
},
|
|
7729
7740
|
animation: (t) => {
|
|
7730
|
-
|
|
7741
|
+
wo(t);
|
|
7731
7742
|
},
|
|
7732
7743
|
contentUpdate: (t, n) => {
|
|
7733
7744
|
this.mergeNewContent(t, n);
|
|
@@ -7787,7 +7798,7 @@ font-weight: ${s};
|
|
|
7787
7798
|
url: u,
|
|
7788
7799
|
method: "GET"
|
|
7789
7800
|
};
|
|
7790
|
-
|
|
7801
|
+
$n(JSON.stringify(c));
|
|
7791
7802
|
const m = {
|
|
7792
7803
|
method: c.method,
|
|
7793
7804
|
headers: c.headers,
|
|
@@ -7815,7 +7826,7 @@ font-weight: ${s};
|
|
|
7815
7826
|
"builder:component:stateChange",
|
|
7816
7827
|
{
|
|
7817
7828
|
detail: {
|
|
7818
|
-
state:
|
|
7829
|
+
state: Mn(this.builderContextSignal.rootState),
|
|
7819
7830
|
ref: {
|
|
7820
7831
|
name: this.model
|
|
7821
7832
|
}
|
|
@@ -7825,7 +7836,7 @@ font-weight: ${s};
|
|
|
7825
7836
|
);
|
|
7826
7837
|
},
|
|
7827
7838
|
elementRef_onIniteditingbldr(e) {
|
|
7828
|
-
window.addEventListener("message", this.processMessage),
|
|
7839
|
+
window.addEventListener("message", this.processMessage), mo({
|
|
7829
7840
|
...this.locale ? {
|
|
7830
7841
|
locale: this.locale
|
|
7831
7842
|
} : {},
|
|
@@ -7855,7 +7866,7 @@ font-weight: ${s};
|
|
|
7855
7866
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), r = t.get(
|
|
7856
7867
|
`builder.overrides.${n}`
|
|
7857
7868
|
), o = t.get("apiKey") || t.get("builder.space");
|
|
7858
|
-
(n === "BUILDER_STUDIO" || n === this.model && o === this.apiKey && (!this.content || r === this.content.id)) &&
|
|
7869
|
+
(n === "BUILDER_STUDIO" || n === this.model && o === this.apiKey && (!this.content || r === this.content.id)) && qn({
|
|
7859
7870
|
model: this.model,
|
|
7860
7871
|
apiKey: this.apiKey,
|
|
7861
7872
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -7949,7 +7960,7 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
7949
7960
|
name: "content-component",
|
|
7950
7961
|
components: {
|
|
7951
7962
|
EnableEditor: ju,
|
|
7952
|
-
InlinedScript:
|
|
7963
|
+
InlinedScript: Jn,
|
|
7953
7964
|
ContentStyles: Uu,
|
|
7954
7965
|
Blocks: Ue,
|
|
7955
7966
|
DynamicDiv: Ct
|
|
@@ -7987,7 +7998,7 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
7987
7998
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
7988
7999
|
}),
|
|
7989
8000
|
registeredComponents: [
|
|
7990
|
-
...
|
|
8001
|
+
...Mr(),
|
|
7991
8002
|
...this.customComponents || []
|
|
7992
8003
|
].reduce(
|
|
7993
8004
|
(n, { component: r, ...o }) => ({
|
|
@@ -8016,7 +8027,7 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
8016
8027
|
apiKey: this.apiKey,
|
|
8017
8028
|
apiVersion: this.apiVersion,
|
|
8018
8029
|
componentInfos: [
|
|
8019
|
-
...
|
|
8030
|
+
...Mr(),
|
|
8020
8031
|
...this.customComponents || []
|
|
8021
8032
|
].reduce(
|
|
8022
8033
|
(n, { component: r, ...o }) => ({
|
|
@@ -8037,7 +8048,7 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
8037
8048
|
provide() {
|
|
8038
8049
|
const e = this;
|
|
8039
8050
|
return {
|
|
8040
|
-
[
|
|
8051
|
+
[qr.key]: {
|
|
8041
8052
|
registeredComponents: e.registeredComponents
|
|
8042
8053
|
}
|
|
8043
8054
|
};
|
|
@@ -8132,7 +8143,7 @@ function Hu(e, t, n, r, o, i) {
|
|
|
8132
8143
|
const Ku = /* @__PURE__ */ j(Mu, [["render", Hu]]), zu = B({
|
|
8133
8144
|
name: "content-variants",
|
|
8134
8145
|
components: {
|
|
8135
|
-
InlinedScript:
|
|
8146
|
+
InlinedScript: Jn,
|
|
8136
8147
|
InlinedStyles: Ht,
|
|
8137
8148
|
ContentComponent: Ku
|
|
8138
8149
|
},
|
|
@@ -8163,7 +8174,7 @@ const Ku = /* @__PURE__ */ j(Mu, [["render", Hu]]), zu = B({
|
|
|
8163
8174
|
canTrack: Xe(this.canTrack),
|
|
8164
8175
|
content: this.content
|
|
8165
8176
|
}),
|
|
8166
|
-
SDKS_SUPPORTING_PERSONALIZATION:
|
|
8177
|
+
SDKS_SUPPORTING_PERSONALIZATION: Po,
|
|
8167
8178
|
getInitPersonalizationVariantsFnsScriptString: Na,
|
|
8168
8179
|
TARGET: G,
|
|
8169
8180
|
getInitVariantsFnsScriptString: bu,
|
|
@@ -8202,11 +8213,6 @@ function qu(e, t, n, r, o, i) {
|
|
|
8202
8213
|
const s = W("InlinedScript"), u = W("InlinedStyles"), c = W("ContentComponent");
|
|
8203
8214
|
return v(), w(z, null, [
|
|
8204
8215
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (v(), w(z, { key: 0 }, [
|
|
8205
|
-
ee(s, {
|
|
8206
|
-
id: "builderio-init-variants-fns",
|
|
8207
|
-
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
8208
|
-
nonce: e.nonce || ""
|
|
8209
|
-
}, null, 8, ["scriptStr", "nonce"]),
|
|
8210
8216
|
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (v(), U(s, {
|
|
8211
8217
|
key: 0,
|
|
8212
8218
|
id: "builderio-init-personalization-variants-fns",
|
|
@@ -8215,6 +8221,11 @@ function qu(e, t, n, r, o, i) {
|
|
|
8215
8221
|
}, null, 8, ["nonce", "scriptStr"])) : F("", !0)
|
|
8216
8222
|
], 64)) : F("", !0),
|
|
8217
8223
|
e.shouldRenderVariants ? (v(), w(z, { key: 1 }, [
|
|
8224
|
+
ee(s, {
|
|
8225
|
+
id: "builderio-init-variants-fns",
|
|
8226
|
+
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
8227
|
+
nonce: e.nonce || ""
|
|
8228
|
+
}, null, 8, ["scriptStr", "nonce"]),
|
|
8218
8229
|
ee(u, {
|
|
8219
8230
|
id: "builderio-variants",
|
|
8220
8231
|
styles: e.hideVariantsStyleString,
|
|
@@ -8283,7 +8294,7 @@ const Gu = /* @__PURE__ */ j(zu, [["render", qu]]), _u = async ({
|
|
|
8283
8294
|
}) => {
|
|
8284
8295
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
8285
8296
|
(e != null && e.apiKey))
|
|
8286
|
-
return
|
|
8297
|
+
return qn({
|
|
8287
8298
|
model: t.model,
|
|
8288
8299
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
8289
8300
|
apiVersion: e.apiVersion,
|
|
@@ -8395,13 +8406,13 @@ function Xu(e, t, n, r, o, i) {
|
|
|
8395
8406
|
const Yu = /* @__PURE__ */ j(Ju, [["render", Xu]]);
|
|
8396
8407
|
export {
|
|
8397
8408
|
oc as A,
|
|
8398
|
-
|
|
8409
|
+
Ro as B,
|
|
8399
8410
|
pa as C,
|
|
8400
8411
|
sc as D,
|
|
8401
8412
|
Ps as E,
|
|
8402
8413
|
ha as F,
|
|
8403
8414
|
Os as G,
|
|
8404
|
-
|
|
8415
|
+
qn as H,
|
|
8405
8416
|
Ca as I,
|
|
8406
8417
|
Zu as J,
|
|
8407
8418
|
uc as K,
|
|
@@ -8419,20 +8430,20 @@ export {
|
|
|
8419
8430
|
ac as h,
|
|
8420
8431
|
oe as i,
|
|
8421
8432
|
cc as j,
|
|
8422
|
-
|
|
8433
|
+
Gn as k,
|
|
8423
8434
|
us as l,
|
|
8424
8435
|
oi as m,
|
|
8425
8436
|
Yu as n,
|
|
8426
8437
|
fl as o,
|
|
8427
8438
|
Ue as p,
|
|
8428
8439
|
Gu as q,
|
|
8429
|
-
|
|
8440
|
+
Hn as r,
|
|
8430
8441
|
ic as s,
|
|
8431
8442
|
cs as t,
|
|
8432
8443
|
tc as u,
|
|
8433
8444
|
nc as v,
|
|
8434
8445
|
Fu as w,
|
|
8435
8446
|
rc as x,
|
|
8436
|
-
|
|
8447
|
+
fo as y,
|
|
8437
8448
|
ec as z
|
|
8438
8449
|
};
|